5e7b526ff901450d2b5f7ada52274ec9db7cb45d,bears/js/JSONFormatBear.py,JSONFormatBear,run,#JSONFormatBear#Any#Any#Any#Any#Any#,24
Before Change
json_content = json.loads("".join(file),
object_pairs_hook=OrderedDict)
except JSONDecodeError as err:
yield Result.from_values(
self,
"This file does not contain parsable JSON. " + repr(str(err)),
file=filename)
return
corrected = json.dumps(json_content,
sort_keys=json_sort,
After Change
json_content = json.loads("".join(file),
object_pairs_hook=OrderedDict)
except JSONDecodeError as err:
err_content = match(r"(.*): line (\d+) column (\d+)", str(err))
yield Result.from_values(
self,
"This file does not contain parsable JSON. " +
err_content.group(1) + ".",
file=filename,
line=int(err_content.group(2)),
column=int(err_content.group(3)))
return
corrected = json.dumps(json_content,
sort_keys=json_sort,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: coala/coala-bears
Commit Name: 5e7b526ff901450d2b5f7ada52274ec9db7cb45d
Time: 2017-02-14
Author: santhoshini.g14@iiits.in
File Name: bears/js/JSONFormatBear.py
Class Name: JSONFormatBear
Method Name: run
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a9e134238e0e057fe9b66bf896aee2b584dd9cef
Time: 2020-01-21
Author: jonathanlui@google.com
File Name: storage/cloud-client/iam_test.py
Class Name:
Method Name: bucket
Project Name: HazyResearch/fonduer
Commit Name: ba2af6efeb086391d286ee5d86635f723e806c15
Time: 2018-05-17
Author: senwu@cs.stanford.edu
File Name: fonduer/parser/parser.py
Class Name: SimpleTokenizer
Method Name: parse