3e80a81f04091891e065fae96ad33075a41a19ba,cube/io_utils/model_store.py,ModelStore,list_online_models,#ModelStore#Any#,474
Before Change
ex: [("en",1.0),("en",1.1),("es",1.0)...]
request = requests.get(self.MODELS_PATH_CLOUD_ALL)
data = xmltodict.parse(request.content)
// Make a list with all the archives in the container.
online_models = [item["Name"]
for item in data["EnumerationResults"]["Blobs"]["Blob"]
After Change
// now parse HTML page
from bs4 import BeautifulSoup
page = requests .get(cloud_path).text
//print (page) // debug
soup = BeautifulSoup(page, "html.parser")
online_models = [node.get("href") for node in soup.find_all("a") if node.get("href").endswith("zip")]
// old version, interrogating azure repo
request = requests.get(self.MODELS_PATH_CLOUD_ALL)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: adobe/NLP-Cube
Commit Name: 3e80a81f04091891e065fae96ad33075a41a19ba
Time: 2019-01-21
Author: dumitrescu.stefan@gmail.com
File Name: cube/io_utils/model_store.py
Class Name: ModelStore
Method Name: list_online_models
Project Name: facebook/FAI-PEP
Commit Name: a26fa88ae02e8db7ff51924735f57d95e57d26d5
Time: 2019-01-29
Author: huaminli@fb.com
File Name: benchmarking/reboot_device.py
Class Name:
Method Name: reboot
Project Name: facebook/FAI-PEP
Commit Name: a26fa88ae02e8db7ff51924735f57d95e57d26d5
Time: 2019-01-29
Author: huaminli@fb.com
File Name: benchmarking/get_connected_devices.py
Class Name: GetConnectedDevices
Method Name: __init__