Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/c/e/census_explorer-HEAD/scripts/translation_for_i18next.py   census_explorer(Download)
# [ (prefix, path), ...]
sources = [
    ('area', path.join(config.DIR_DATA_GEO_NAME, 'translation-areas.json')),
    ('district', path.join(config.DIR_DATA_GEO_NAME, 'translation-districts.json')),
    ('region', path.join(config.DIR_DATA_GEO_NAME, 'translation-regions.json')),

src/c/e/census_explorer-HEAD/scripts/combine_json.py   census_explorer(Download)
def translate_datapoints(df, language):
    #return translate_one(df, language, 'translation-regions.json', 'region', 'region_name'
    #        ).translate_one(df, language, 'translation-regions.json', 'region', 'region_name'
    #        )
    dataframe_region = load_trans_dataframe(path.join(config.DIR_DATA_GEO_NAME, 'translation-regions.json'), 'region', 'region_name', language)
    dataframe_district = load_trans_dataframe(path.join(config.DIR_DATA_GEO_NAME, 'translation-districts.json'), 'district', 'district_name', language)
    dataframe_area = load_trans_dataframe(path.join(config.DIR_DATA_GEO_NAME, 'translation-areas.json'), 'area', 'area_name', language)

src/c/e/census_explorer-HEAD/scripts/geo_naming.py   census_explorer(Download)
def output(obj, filename):
    json.dump(obj, open(path.join(config.DIR_DATA_GEO_NAME, filename), 'w'))
 
def main():
    sh.mkdir('-p', config.DIR_DATA_GEO_NAME)