MCPcopy
hub / github.com/pytorch/vision / get_features

Function get_features

scripts/release_notes/retrieve_prs_data.py:123–136  ·  view source on GitHub ↗
(commit_hash, return_dict=False)

Source from the content-addressed store, hash-verified

121
122
123def get_features(commit_hash, return_dict=False):
124 title, body, files_changed = (
125 commit_title(commit_hash),
126 commit_body(commit_hash),
127 commit_files_changed(commit_hash),
128 )
129 pr_number = parse_pr_number(body, commit_hash, title)
130 labels = []
131 if pr_number is not None:
132 labels = gh_labels(pr_number)
133 result = Features(title, body, pr_number, files_changed, labels)
134 if return_dict:
135 return features_to_dict(result)
136 return result
137
138
139class CommitDataCache:

Callers 1

getMethod · 0.85

Calls 6

commit_titleFunction · 0.85
commit_bodyFunction · 0.85
commit_files_changedFunction · 0.85
parse_pr_numberFunction · 0.85
gh_labelsFunction · 0.85
features_to_dictFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…