MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / _load_data

Method _load_data

client/node/app.py:70–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 return os.path.join(data_dir, 'appdata.json')
69
70 def _load_data(self):
71 if not self._data:
72 datafile = self._get_data_file()
73 if os.path.exists(datafile):
74 with open(self._get_data_file(), 'r') as f:
75 self._data = json.load(f)
76
77 def __getitem__(self, key):
78 self._load_data()

Callers 2

__getitem__Method · 0.95
getMethod · 0.95

Calls 2

_get_data_fileMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected