diff --git a/main.py b/main.py index 306ac4c..8238677 100644 --- a/main.py +++ b/main.py @@ -37,6 +37,7 @@ def main(): get_everything(f, largest_object, early_cutoff) #remove this and it should just run? for the most part at least I think count_of_dir += 1 + #this is what needs to be commented out if count_of_dir > 2: break print(largest_object.keys()) @@ -45,7 +46,7 @@ def main(): for repo in largest_object: print(largest_object[repo]['new_formality']) ''' - with open('result.json', 'w') as results_path: + with open('/data/users/mgaughan/kkex_data_110723/result.json', 'w') as results_path: json.dump(largest_object, results_path) def get_everything(manifest_path, largest_object, early_cutoff): @@ -81,6 +82,9 @@ def get_everything(manifest_path, largest_object, early_cutoff): # testing out beneath: largest_object[repo_path]['ghs_obj'] = ghs.main(vcs_path, early_cutoff) #print(ghs_obj["time_cleaned_comm"]) + repo_uri_list = repo_path.split('/') + with open('/data/users/mgaughan/kkex_data_110723/' + repo_uri_list[-2] + '_' + repo_uri_list[-1] + '_result.json', 'w') as data_path: + json.dump(largest_object[repo_path], data_path) except yaml.YAMLOError as err: print(err) print("----------------------")