fixing path issues
This commit is contained in:
parent
41c79f0a73
commit
61b3437656
6
main.py
6
main.py
@ -37,6 +37,7 @@ def main():
|
|||||||
get_everything(f, largest_object, early_cutoff)
|
get_everything(f, largest_object, early_cutoff)
|
||||||
#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
|
||||||
if count_of_dir > 2:
|
if count_of_dir > 2:
|
||||||
break
|
break
|
||||||
print(largest_object.keys())
|
print(largest_object.keys())
|
||||||
@ -45,7 +46,7 @@ def main():
|
|||||||
for repo in largest_object:
|
for repo in largest_object:
|
||||||
print(largest_object[repo]['new_formality'])
|
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)
|
json.dump(largest_object, results_path)
|
||||||
|
|
||||||
def get_everything(manifest_path, largest_object, early_cutoff):
|
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:
|
# testing out beneath:
|
||||||
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('/')
|
||||||
|
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:
|
except yaml.YAMLOError as err:
|
||||||
print(err)
|
print(err)
|
||||||
print("----------------------")
|
print("----------------------")
|
||||||
|
Loading…
Reference in New Issue
Block a user