800dcf66028cc6d35a9d3984d9bff1992a13f16e,textacy/data.py,,load_depechemood,#Any#Any#,84

Before Change


    // let"s make sure this file exists...
    _ = os.path.isfile(fname)
    logger.info("Loading DepecheMood lexicon from %s", fname)
    return json.loads(read_csv(
        fname, sep="\t", index_col="Lemma//PoS").to_json(orient="index"))

After Change


        csvreader = csv.reader(csvfile, delimiter="\t")
        rows = list(csvreader)
    cols = rows[0]
    return {row[0]: {cols[i]: float(row[i]) for i in range(1, 9)}
            for row in rows[1:]}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 800dcf66028cc6d35a9d3984d9bff1992a13f16e
Time: 2016-02-11
Author: burton@chartbeat.com
File Name: textacy/data.py
Class Name:
Method Name: load_depechemood


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: fa93a0d733bd88e236e2b5090c433088b729d113
Time: 2020-08-04
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_list


Project Name: nilmtk/nilmtk
Commit Name: 0568d97009745b14910432b46a29f0c2f4a788b4
Time: 2013-12-17
Author: jack-list@xlk.org.uk
File Name: nilmtk/dataset/redd.py
Class Name:
Method Name: load_chan


Project Name: biocore/scikit-bio
Commit Name: 95ae997f265381950b8597ab6636574564e7ef01
Time: 2015-10-07
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/blast6.py
Class Name:
Method Name: _blast6_to_data_frame