bd2ffb813d595dcd717476027a659538c5b3f26f,src/fetch_tse_data.py,,,#,26

Before Change


    filename=FILENAME_PREFIX+year+".zip"
    file_url=TSE_CANDIDATES_URL+filename
    output_file=os.path.join(TEMP_PATH,filename)
    print ("downloading",filename, "from",TSE_CANDIDATES_URL)
    urllib.request.urlretrieve(file_url,output_file)


// In[ ]:

After Change


TEMP_PATH = "../data/tse_temp"
TSE_CANDIDATES_URL="http://agencia.tse.jus.br/estatistica/sead/odsele/consulta_cand/"
OUTPUT_DATASET_PATH = "../data/2017-03-31-tse-candidates.xz"
os.makedirs(TEMP_PATH)

// setting year range from 2004 to 2016. this will be modified further to "from 1994 to 2016"
year_list=[str(year) for year in (range(2004,2017,2))]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: bd2ffb813d595dcd717476027a659538c5b3f26f
Time: 2017-03-31
Author: renanfonseca@gmail.com
File Name: src/fetch_tse_data.py
Class Name:
Method Name:


Project Name: abhiskk/fast-neural-style
Commit Name: 4c9ad27a352d790763ca9b027835d8dc91db8c02
Time: 2017-04-03
Author: abhishekkadiyan@gmail.com
File Name: neural_style/neural_style.py
Class Name:
Method Name: check_paths


Project Name: autoreject/autoreject
Commit Name: ec70118625aa40a8ce038784005b877d79e58359
Time: 2021-03-26
Author: aprockhill@mailbox.org
File Name: examples/plot_visualize_bad_epochs.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: 16a31e2c9fedc654e9117b42b8144adf1d0e4900
Time: 2020-02-03
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_A3C.py
Class Name:
Method Name: