changes to main

This commit is contained in:
Matthew Gaughan 2023-11-08 10:45:45 -06:00
parent f2b3396b0d
commit 2422b0ea69

View File

@ -38,8 +38,8 @@ def main():
#remove this and it should just run? for the most part at least I think #remove this and it should just run? for the most part at least I think
count_of_dir += 1 count_of_dir += 1
#this is what needs to be commented out #this is what needs to be commented out
if count_of_dir > 4: #if count_of_dir > 4:
break # break
#print(largest_object.keys()) #print(largest_object.keys())
#print(len(largest_object.keys())) #print(len(largest_object.keys()))
''' '''
@ -84,7 +84,7 @@ def get_everything(manifest_path, early_cutoff):
largest_object[repo_path]['ghs_obj'] = ghs.main(vcs_path, early_cutoff) largest_object[repo_path]['ghs_obj'] = ghs.main(vcs_path, early_cutoff)
#print(ghs_obj["time_cleaned_comm"]) #print(ghs_obj["time_cleaned_comm"])
repo_uri_list = repo_path.split('/') 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: with open('/data/users/mgaughan/kkex_data_110823/' + repo_uri_list[-2] + '_' + repo_uri_list[-1] + '_result.json', 'w') as data_path:
json.dump(largest_object[repo_path], data_path) json.dump(largest_object[repo_path], data_path)
except yaml.YAMLError as err: except yaml.YAMLError as err:
print(err) print(err)