(self, commit)
| 144 | self.data = self.read_from_disk() |
| 145 | |
| 146 | def get(self, commit): |
| 147 | if commit not in self.data.keys(): |
| 148 | # Fetch and cache the data |
| 149 | self.data[commit] = get_features(commit) |
| 150 | self.write_to_disk() |
| 151 | return self.data[commit] |
| 152 | |
| 153 | def read_from_disk(self): |
| 154 | with open(self.path) as f: |