query stringlengths 10 2k | document stringlengths 20 51.2k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Sets the name of this Account. | def name(self, name):
self._name = name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_name(self, name):\n self._name = name",
"def SetName(self, name):\n self.name = name",
"def set_name(self, name: str):\n self._name = name",
"def set_name(self, name):\n self.name = name",
"def set_name(self, name):\n self.name = name",
"def set_name(self, name)... | [
"0.823638",
"0.8215202",
"0.8214959",
"0.8180439",
"0.8180439",
"0.8180439",
"0.8180439",
"0.8180439",
"0.8036948",
"0.8036948",
"0.8019196",
"0.80168986",
"0.7987468",
"0.7987468",
"0.796202",
"0.796202",
"0.7951831",
"0.7897971",
"0.7836926",
"0.77722913",
"0.7768749",
"0... | 0.7463994 | 97 |
Unload a config entry. | async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
if unload_ok:
del hass.data[DOMAIN][entry.entry_id]
return unload_ok | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(hass, config_entry):\n unload_ok = await hass.config_entries.async_forward_entry_unload(\n config_entry, \"climate\"\n )\n return unload_ok",
"async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:\n hass.data.pop(DOMAIN)\n return True",
... | [
"0.697284",
"0.6888074",
"0.6779855",
"0.6747459",
"0.6689002",
"0.6657831",
"0.66162205",
"0.6603433",
"0.65925974",
"0.65595686",
"0.65411645",
"0.6507643",
"0.6507643",
"0.6507643",
"0.6507643",
"0.64977276",
"0.64931643",
"0.6486601",
"0.6486601",
"0.6486601",
"0.6486601"... | 0.639415 | 44 |
Compares naive arrow objects, returning the average. Optionally can determine if timestamps are too disparate to be used. Returns an arrow object, with optional timezone. | def timestamp_processor(timestamps, with_tz=False, check_delta=False):
if timestamps.count(timestamps[0]) == len(timestamps):
unified_timestamp = timestamps[0]
else:
average_timestamp = sum([dt.timestamp for dt in timestamps])/len(timestamps)
unified_timestamp = arrow.get(average_timesta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_average_all_different(self):\n\n temp_data = [(1.00, time.localtime()), (2.00, time.localtime()),\n (3.00, time.localtime()), (4.00, time.localtime())]\n\n tt = TemperatureTracker()\n result = tt.average_from(temp_data)\n self.assertEqual(result, 2.5)",
"d... | [
"0.52611256",
"0.52125275",
"0.5051799",
"0.5022453",
"0.49895477",
"0.4967517",
"0.48423463",
"0.48233363",
"0.4791975",
"0.44999132",
"0.44736728",
"0.44720384",
"0.44687858",
"0.44671124",
"0.4450835",
"0.4449644",
"0.44333333",
"0.4400922",
"0.43883348",
"0.43759522",
"0.... | 0.5064656 | 2 |
get the timezone to be used for display in e.g. mails | def display_tzname(self):
return settings.TIME_ZONES_BY_LANG.get(self.language, settings.TIME_ZONE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def timezone():\n\n return time.timezone",
"def get_timezone():\n return dates.get_timezone(_get_tz())",
"def get_timezone(self) -> str:\n return self.AD.time_zone",
"def timezone(self) -> str:\n return self._tz",
"def _get_tz():\n return 'UTC'",
"def timezone(self):\n retur... | [
"0.83409214",
"0.82212543",
"0.81527114",
"0.79555774",
"0.784473",
"0.78415716",
"0.7838738",
"0.7794878",
"0.77227634",
"0.77046794",
"0.77046794",
"0.77046794",
"0.7559666",
"0.7480259",
"0.7457244",
"0.74360734",
"0.73757833",
"0.73732764",
"0.7340009",
"0.7336194",
"0.72... | 0.7072842 | 24 |
Provides the index.html page. | def get(self):
upload_info = self.request.GET.get('upload_info')
if upload_info:
self.response.headers['content-type'] = 'text/plain'
self.response.out.write(upload_info)
return
blobs = reversed(blobstore.BlobInfo.all().fetch(10))
output = template.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index():\r\n return render_template('index.html')",
"def index_page():\n\n return render_template(\"index.html\")",
"def index_page():\n\n return render_template(\"index.html\")",
"def index_page():\n\n return render_template(\"index.html\")",
"def index_page():\n \n return re... | [
"0.8845413",
"0.88451236",
"0.88451236",
"0.88451236",
"0.8841259",
"0.8824585",
"0.88221157",
"0.88221157",
"0.8788125",
"0.8788125",
"0.8783742",
"0.8772863",
"0.8750255",
"0.87474686",
"0.8719731",
"0.8717896",
"0.87125355",
"0.86622924",
"0.86622924",
"0.86622924",
"0.866... | 0.0 | -1 |
Return a dict of all variable that distributed training may use. | def dist_env():
trainer_id = int(os.getenv("PADDLE_TRAINER_ID", "0"))
num_trainers = 1
training_role = os.getenv("PADDLE_TRAINING_ROLE", "TRAINER")
assert (training_role == "PSERVER" or training_role == "TRAINER")
# - PADDLE_TRAINER_ENDPOINTS means nccl2 mode.
# - PADDLE_PSERVER_ENDPOINTS means... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_trainable_vars(self):\n return self.arch.variables",
"def get_trainable_vars(self):\n params = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, self.scope)\n return params",
"def variables_used (self) :\r\n\t\treturn []",
"def trainable_variables(self):\n return [v for ... | [
"0.77963966",
"0.69466335",
"0.6910702",
"0.6754934",
"0.6676022",
"0.66448104",
"0.6641467",
"0.6635972",
"0.66293365",
"0.65779173",
"0.6568637",
"0.65643334",
"0.6549421",
"0.65371823",
"0.6520008",
"0.65055823",
"0.6485963",
"0.64841485",
"0.6469209",
"0.64555323",
"0.644... | 0.0 | -1 |
Return the application name of this resource. Provides the return value of the `app_name` property. | def get_app_name(self):
return getattr(self, '_app_name', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def app_name(self) -> str:\n return self._app_name",
"def app_name(self):\n return self._app_name",
"def application_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"application_name\")",
"def application_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"a... | [
"0.8678612",
"0.8637979",
"0.8572737",
"0.8572737",
"0.85671264",
"0.84264404",
"0.8397032",
"0.833802",
"0.8224685",
"0.80858433",
"0.8082026",
"0.80178773",
"0.7993415",
"0.7990277",
"0.7990277",
"0.7990277",
"0.7990277",
"0.79337734",
"0.77881044",
"0.7625291",
"0.74047595... | 0.85155594 | 5 |
Return the name of this resource. Provides the return value of the `resource_name` property. | def get_resource_name(self):
return self._resource_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def name(self):\n\n return self.resource[\"metadata\"][\"name\"]",
"def name(self):\n return self.raw_resource[\"name\"]",
"def resource_name(self) -> Optional[str]:\n return pulumi.get(self, \"resource_name\")",
"def resource_name(self) -> Optional[str]:\n return pulumi.get(self,... | [
"0.87285066",
"0.865305",
"0.8649713",
"0.8649713",
"0.83374757",
"0.83374757",
"0.83374757",
"0.83374757",
"0.83374757",
"0.8295308",
"0.789711",
"0.7600062",
"0.75882506",
"0.75882506",
"0.7575456",
"0.75700283",
"0.756709",
"0.7557709",
"0.7557709",
"0.7557709",
"0.7557709... | 0.91224426 | 0 |
Return the slug of this resource. Provides the return value of the `resource_slug` property. | def get_resource_slug(self):
if hasattr(self, '_resource_slug'):
return self._resource_slug
return slugify(self.get_resource_name()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slug(self) -> str:\n return pulumi.get(self, \"slug\")",
"def slug(self) -> str:\n return self._slug",
"def get_canonical_slug(self):\n return self.get_object().slug",
"def full_slug(self):\n return self.get_full_slug()",
"def get_slug(self):\n slug = self.kwargs.get(... | [
"0.7910024",
"0.78643084",
"0.73431146",
"0.713667",
"0.71215296",
"0.70197934",
"0.66599506",
"0.644125",
"0.6428954",
"0.6399984",
"0.6399984",
"0.6379692",
"0.63675547",
"0.63675547",
"0.63675547",
"0.63649",
"0.63288915",
"0.630125",
"0.6268092",
"0.6186707",
"0.6186707",... | 0.8841973 | 0 |
Returns the JSON rep of the block from a blockhash. | def get_block(blockhash):
return requests.get(BASE+f'/api/block/{blockhash}').json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_rawblock(blockhash):\n return requests.get(BASE+f'/api/rawblock/{blockhash}').json()['rawblock']",
"def get_block_hash(height):\n return requests.get(BASE+f'/api/block-index/{height}').json()['blockHash']",
"def getblock(self, hash):\n return self.proxy.getblock(hash)",
"def hash(block):... | [
"0.7655419",
"0.7003961",
"0.6995573",
"0.67740613",
"0.6713909",
"0.67102206",
"0.6668687",
"0.66355294",
"0.66355294",
"0.663447",
"0.6630297",
"0.6604543",
"0.65581083",
"0.6538904",
"0.64716905",
"0.64219975",
"0.6353727",
"0.6302866",
"0.6302866",
"0.6302866",
"0.6302866... | 0.78445256 | 0 |
Download the COCO dataset/annotations if requested. | def auto_download(dataDir, dataType, dataYear):
# Setup paths and file names
if dataType == "minival" or dataType == "valminusminival":
imgDir = "{}/{}{}".format(dataDir, "val", dataYear)
imgZipFile = "{}/{}{}.zip".format(dataDir, "val", dataYear)
imgURL = "http://images.cocodataset.org... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def download_coco_dataset():\n # Create file structure\n os.makedirs(os.path.join(\"data\", \"coco\", \"train\"), exist_ok=True)\n os.makedirs(os.path.join(\"data\", \"coco\", \"dev\"), exist_ok=True)\n os.makedirs(os.path.join(\"data\", \"coco\", \"test\"), exist_ok=True)\n # Download the train, de... | [
"0.72907704",
"0.71969664",
"0.64465344",
"0.633483",
"0.61967856",
"0.61923695",
"0.59949607",
"0.59754235",
"0.5947754",
"0.5928412",
"0.5897793",
"0.5720691",
"0.5706716",
"0.56930333",
"0.56358683",
"0.5610616",
"0.5585786",
"0.55818254",
"0.553139",
"0.55226374",
"0.5510... | 0.54686177 | 24 |
Returns the maximum element in the stack | def max_stack(self):
if self.maxx == []:
return None
return self.maxx[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def return_the_maximum(self):\n\n return self.__max_stack[-1]",
"def get_max(self):\n # 0(1)\n return self.max_stack.peek()\n\n # Don't need find_max we returned max_stack.peek()",
"def max(self):\n assert self.__stack\n return self.__max_values[-1]",
"def max(self):... | [
"0.8688438",
"0.86467665",
"0.8364399",
"0.8186342",
"0.7719098",
"0.7625215",
"0.761645",
"0.75714076",
"0.7570045",
"0.7554584",
"0.7525141",
"0.74952424",
"0.73993707",
"0.73727643",
"0.72877073",
"0.72793996",
"0.72785616",
"0.7251507",
"0.7250974",
"0.719736",
"0.716051"... | 0.85784376 | 2 |
Extract a set of ngrams from a list of integers. >>> create_ngram_set([1, 4, 9, 4, 1, 4], ngram_value=2) {(4, 9), (4, 1), (1, 4), (9, 4)} >>> create_ngram_set([1, 4, 9, 4, 1, 4], ngram_value=3) [(1, 4, 9), (4, 9, 4), (9, 4, 1), (4, 1, 4)] | def create_ngram_set(input_list, ngram_value=2):
return set(zip(*[input_list[i:] for i in range(ngram_value)])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_ngram_set(input_list, ngram_value=2):\n return set(zip(*[input_list[i:] for i in range(ngram_value)]))",
"def create_ngram_set(self, input_list, ngram_value=2):\n return set(zip(*[input_list[i:] for i in range(ngram_value)]))",
"def gen_ngrams(items, n):\n ngs = {}\n ilen = len(items... | [
"0.8522087",
"0.84540397",
"0.64337987",
"0.62320316",
"0.61659044",
"0.6159629",
"0.6086561",
"0.6046759",
"0.60380584",
"0.6037468",
"0.5943439",
"0.5931084",
"0.58908975",
"0.5889534",
"0.58848083",
"0.5870601",
"0.5833631",
"0.5832392",
"0.5829241",
"0.5815205",
"0.580376... | 0.8551329 | 0 |
Augment the input list of list (sequences) by appending ngrams values. | def add_ngram(sequences, token_indice, ngram_range=2):
new_sequences = []
for input_list in sequences:
new_list = input_list[:]
for ngram_value in range(2, ngram_range + 1):
for i in range(len(new_list) - ngram_value + 1):
ngram = tuple(new_lis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_ngram(sequences, token_indice, ngram_range=2):\n new_sequences = []\n for input_list in sequences:\n new_list = input_list[:]\n for ngram_value in range(2, ngram_range + 1):\n for i in range(len(new_list) - ngram_value + 1):\n ngram = tuple(new_list[i:i + ngram... | [
"0.74295753",
"0.7410028",
"0.7320626",
"0.6396793",
"0.6231986",
"0.6206222",
"0.6147639",
"0.59835243",
"0.59753174",
"0.59672713",
"0.59361875",
"0.59320176",
"0.5872888",
"0.58364654",
"0.5821923",
"0.58002406",
"0.5799347",
"0.57877827",
"0.5746434",
"0.5745108",
"0.5725... | 0.7459934 | 0 |
This is complicated because we converted the base model to be fully convolutional, so some surgery needs to happen here. | def load_base_weights(self):
base_state_dict = model_zoo.load_url(vgg.model_urls['vgg16'])
vgg_state_dict = {k[len('features.'):]: v
for k, v in base_state_dict.items()
if k.startswith('features.')}
self.vgg.load_state_dict(vgg_state_dict)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def base_model(input_shape):\n\n # Layer 0: input layer\n input_layer = Input(shape=input_shape)\n # layer 1: Conv2D layer\n x = layers.Conv2D(filters=64, kernel_size=(10,10), activation='relu')(input_layer)\n # layer 2: MaxPool2D layer\n x = layers.MaxPool2D(pool_size=(2,2))(x)\n # layer 3: C... | [
"0.68328696",
"0.66408205",
"0.66099334",
"0.65705645",
"0.65225106",
"0.65076876",
"0.64224476",
"0.6420851",
"0.64166594",
"0.64090234",
"0.6401847",
"0.6397265",
"0.63963234",
"0.63783616",
"0.6375157",
"0.6360211",
"0.6357991",
"0.6355158",
"0.6350107",
"0.634953",
"0.634... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def adjust_learning_rate(optimizer, epoch, args):
lr = args.lr * (0.1 ** (epoch // 30))
for param_group in optimizer.param_groups:
param_group['lr'] = lr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def adjust_learning_rate(init_lr, optimizer, epoch, n=100):\n init_lr = init_lr * (0.1 ** (epoch // n))\n print('learning rate : ', init_lr)\n for param_group in optimizer.param_groups:\n param_group['lr'] = init_lr",
"def adjust_learning_rate(start_lr, optimizer, epoch, total_epoch_num):\n #l... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585",
"0.7621199",
"0.761903",
"0.7618124"... | 0.7665748 | 14 |
Computes the accuracy over the k top predictions for the specified values of k | def accuracy(output, target, topk=(1,)):
with torch.no_grad():
maxk = max(topk)
batch_size = target.size(0)
_, pred = output.topk(maxk, 1, True, True)
pred = pred.t()
correct = pred.eq(target.view(1, -1).expand_as(pred))
res = []
for k in topk:
c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def topk_accuracy(y, y_pred, k=2):\n pred = []\n for i in range(len(y)):\n if y[i] in y_pred[i][:k]:\n pred.append(1)\n else:\n pred.append(0)\n return sum(pred) / len(pred)",
"def accuracy(y_pred, y_actual, topk=(1, )):\n maxk = max(topk)\n batch_size = y_actua... | [
"0.8331214",
"0.8284662",
"0.82381004",
"0.8229767",
"0.82202226",
"0.81864446",
"0.81847763",
"0.8175173",
"0.8171541",
"0.81699467",
"0.81664646",
"0.81645083",
"0.81637454",
"0.81622064",
"0.81622064",
"0.81622064",
"0.81622064",
"0.81622064",
"0.81622064",
"0.81622064",
"... | 0.7847017 | 91 |
Sets port constraints to fixed! | def addPortOnSide(self, node: LNode, portSide: PortSide) -> LPort:
side = node.getPortSideView(portSide)
port = LPort(node, None, side=portSide, name="port%d" % len(side))
side.append(port)
if not node.portConstraints.isSideFixed():
node.portConstraints = PortConstraints.FIX... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_port_update_deferred_allocation_no_ipam(self):\n with self.network() as network:\n with self.subnet(network=network):\n pass\n\n response = self._create_port(self.fmt,\n net_id=network['network']['id'],\n ... | [
"0.6453972",
"0.6358298",
"0.6339153",
"0.62946296",
"0.6283312",
"0.612892",
"0.61025316",
"0.6059359",
"0.60431904",
"0.60171366",
"0.6003638",
"0.6001019",
"0.595165",
"0.5933145",
"0.5893807",
"0.5883451",
"0.58478254",
"0.5833414",
"0.57863545",
"0.57841134",
"0.571717",... | 0.0 | -1 |
Testing if correct response is given with empty inputs | def test_add_tag_invalid(self):
with app.test_client() as client:
d = {"name": ""}
resp = client.post("/tags/new", data=d, follow_redirects=True)
html = resp.get_data(as_text=True)
self.assertEqual(resp.status_code, 200)
self.assertIn("Pl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_02_predict_empty(self):\n \n ## provide no data at all \n r = requests.post('http://localhost:{}/predict'.format(port))\n self.assertEqual(re.sub('\\n|\"','',r.text),\"[]\")\n\n ## provide improperly formatted data\n r = requests.post('http://localhost:{}/predict'.for... | [
"0.7111032",
"0.7074366",
"0.7041965",
"0.7028098",
"0.7020183",
"0.6899901",
"0.68607277",
"0.6837843",
"0.6806228",
"0.6800351",
"0.67535645",
"0.6742618",
"0.67409813",
"0.6650436",
"0.66071326",
"0.6595789",
"0.65814877",
"0.6577626",
"0.65348554",
"0.6502536",
"0.6490961... | 0.0 | -1 |
Testing if correct response is given with empty inputs | def test_edit_tag_invalid(self):
with app.test_client() as client:
d = {"name": ""}
resp = client.post(f"/tags/{self.tag.id}/edit", data=d, follow_redirects=True)
html = resp.get_data(as_text=True)
self.assertEqual(resp.status_code, 200)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_02_predict_empty(self):\n \n ## provide no data at all \n r = requests.post('http://localhost:{}/predict'.format(port))\n self.assertEqual(re.sub('\\n|\"','',r.text),\"[]\")\n\n ## provide improperly formatted data\n r = requests.post('http://localhost:{}/predict'.for... | [
"0.7111032",
"0.7074366",
"0.7041965",
"0.7028098",
"0.7020183",
"0.6899901",
"0.68607277",
"0.6837843",
"0.6806228",
"0.6800351",
"0.67535645",
"0.6742618",
"0.67409813",
"0.6650436",
"0.66071326",
"0.6595789",
"0.65814877",
"0.6577626",
"0.65348554",
"0.6502536",
"0.6490961... | 0.0 | -1 |
Return the resource corresponding to all assigned todos. | def assigned_todos(self):
return AssignedTodos(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self):\n todos = {\n 'todos': [\n {\n 'id': 1,\n 'description': 'Create README file'\n },\n {\n 'id': 2,\n 'description': 'Publish to Github'\n }\n ... | [
"0.6394209",
"0.63328564",
"0.61376697",
"0.6072466",
"0.60592985",
"0.59929866",
"0.5916101",
"0.5830813",
"0.58258146",
"0.5613045",
"0.56018406",
"0.5589191",
"0.5574604",
"0.5547995",
"0.552246",
"0.5427182",
"0.5420435",
"0.5417943",
"0.53663105",
"0.5366282",
"0.5328288... | 0.712556 | 0 |
Return the resource corresponding to all project topics. | def topics(self):
return ProjectTopics(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def topics(self, project: str) -> list:\n assert self.exists(project), f'Project {project} inesistente'\n\n cursor = self.projects(\n {\n 'url': project\n }\n )\n try:\n return cursor.next()['topics']\n except StopIteration:\n ... | [
"0.75663203",
"0.7163532",
"0.6901943",
"0.6788634",
"0.6742325",
"0.6624831",
"0.6606077",
"0.6597777",
"0.6475895",
"0.6371308",
"0.6360476",
"0.6231553",
"0.6191351",
"0.6178749",
"0.6116505",
"0.58817506",
"0.58547723",
"0.5804122",
"0.57877487",
"0.5702133",
"0.56771046"... | 0.7773839 | 0 |
Return the resource corresponding to all projects. | def projects(self):
return p.Projects(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_all_projects():\n return jsonify(admin.get_all_projects(current_app.scoped_session()))",
"def get_projects():\n return Project.query.all()",
"def get_projects(self):\n res = self.conn.cursor().execute(\"SELECT * FROM projects\")\n return res.fetchall()",
"def get_projects(self):\n... | [
"0.7323994",
"0.72932345",
"0.7224279",
"0.71503544",
"0.712026",
"0.7105531",
"0.70301366",
"0.70121974",
"0.68971497",
"0.6894967",
"0.68755764",
"0.6875001",
"0.68356454",
"0.6830718",
"0.6801205",
"0.6797556",
"0.6740087",
"0.6691277",
"0.6687683",
"0.66876507",
"0.66704"... | 0.7219801 | 3 |
Return the resource corresponding to all todos. | def todos(self):
return Todos(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self):\n todos = {\n 'todos': [\n {\n 'id': 1,\n 'description': 'Create README file'\n },\n {\n 'id': 2,\n 'description': 'Publish to Github'\n }\n ... | [
"0.72186714",
"0.7099044",
"0.70909005",
"0.7040445",
"0.68051237",
"0.65115935",
"0.643919",
"0.6432408",
"0.6250289",
"0.6217959",
"0.60417974",
"0.60333276",
"0.6029204",
"0.5984895",
"0.59778684",
"0.5932331",
"0.5930719",
"0.5917546",
"0.5832678",
"0.5783606",
"0.5781954... | 0.7091902 | 2 |
Set this email as de primary email. | def primary(self):
return http.Request('POST', '{0}'.format(self.get_url()),
self.wrap_object({'primary': 'true'})), parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def primary_email(self, primary_email):\n\n self._primary_email = primary_email",
"def primary_contact_email(self, primary_contact_email):\n\n self._primary_contact_email = primary_contact_email",
"def change_email(self, email):\n self.active = False\n self.other_email = email\n ... | [
"0.8075227",
"0.77879304",
"0.70052874",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6709349",
"0.6707178",
"0.6641774",
"0.6504413",
"0.6495086",
"0.6382523",
"0.6265887",
"0.61350644",
"0.61350644",... | 0.0 | -1 |
Return the resource corresponding to a single metric for the site. | def metric(self, metric_id):
return Metric(self, metric_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def query(self, metric):\n name = metric.spec.provider.metric\n\n try:\n return self.metrics_provider.spec.static.metrics[name]\n except KeyError as err:\n raise MetricError(f\"Metric {name!r} not defined\") from err",
"def get(metric_name: Text, dataset_info=None... | [
"0.70235133",
"0.66718805",
"0.6632153",
"0.6513782",
"0.6289005",
"0.6282367",
"0.61450523",
"0.613329",
"0.6121238",
"0.6069122",
"0.60628355",
"0.60054636",
"0.59849554",
"0.5921312",
"0.5865739",
"0.5847851",
"0.5812519",
"0.5796978",
"0.57809114",
"0.5764513",
"0.5750572... | 0.5919209 | 14 |
Return the resource corresponding to a single topic. | def topic(self, topic_id):
return contents.Topic(self, topic_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_by_topic(cls, topic):\n\t\treturn cls.get_by_key_name(get_hash_key_name(topic))",
"def topic(self, topic_id):\r\n return topics.Topic(self, topic_id)",
"def get(cls, topic_info):\n try: #to treat topic info as topic.id\n return Topic.query.get(int(topic_info))\n except E... | [
"0.7940782",
"0.76852065",
"0.75134045",
"0.74493676",
"0.7446173",
"0.73537135",
"0.7279943",
"0.7079811",
"0.70626545",
"0.7029655",
"0.69810176",
"0.6888377",
"0.67448634",
"0.6743823",
"0.6720487",
"0.6579327",
"0.6501897",
"0.6475651",
"0.6468703",
"0.6453959",
"0.637572... | 0.7648147 | 2 |
Get a datasource resource. | def __init__(self, apikey, label):
self.url_tmpl = port.to_u('https://{0}.ducksboard.com/values/{1}')
self.label = label
self.add_filter(auth.BasicAuth(apikey, 'x'))
self.add_filter(self.use_json) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_datasource_of():\n global datasource_of\n\n if not datasource_of:\n datasource_of = stixhelpers.datasource_of()\n \n return datasource_of",
"def get_datasource(self):\n return None",
"def get_datasource_instance(connection, id, error_msg=None):\n url = f\"{connection.base_u... | [
"0.71492094",
"0.7085759",
"0.6892525",
"0.6239735",
"0.6239735",
"0.61886305",
"0.61840904",
"0.61104",
"0.6099817",
"0.6042823",
"0.60223293",
"0.5943057",
"0.5898761",
"0.58914053",
"0.58745027",
"0.5851674",
"0.5851674",
"0.5851674",
"0.5851674",
"0.5808784",
"0.5719957",... | 0.0 | -1 |
Return the resource corresponding to a single account. | def account(self, account_id):
return resources.Account(self, account_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_account(self, account):\n \n pass",
"def account(self, account_id: str):\n return get_from_list(self.accounts, \"id\", account_id)",
"def get_account():\n account_id = request.json['id']\n account = [account for account in accounts if account['id'] == account_id]\n if len(... | [
"0.7380848",
"0.73575646",
"0.7338808",
"0.7270142",
"0.72385705",
"0.70911646",
"0.70820713",
"0.7064911",
"0.7064911",
"0.7062834",
"0.6954613",
"0.69520134",
"0.68924695",
"0.6873549",
"0.6848123",
"0.68437535",
"0.6836343",
"0.6813176",
"0.6812028",
"0.667415",
"0.6651534... | 0.8127692 | 0 |
Return the resource corresponding to a datasource. Datasources can only be accesed using the API key | def data_source(self, label):
return datasource.Datasource(self.apikey_or_username, label) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_datasource(self):\n return None",
"def get_datasource_instance(connection, id, error_msg=None):\n url = f\"{connection.base_url}/api/datasources/{id}\"\n response = connection.session.get(url=url)\n if not response.ok:\n if error_msg is None:\n error_msg = f\"Error getti... | [
"0.6629204",
"0.6587073",
"0.65699804",
"0.63341093",
"0.6035097",
"0.5978253",
"0.5977595",
"0.5845297",
"0.5766508",
"0.57485",
"0.5735751",
"0.5734101",
"0.5734101",
"0.5723912",
"0.57094795",
"0.57094795",
"0.57094795",
"0.5677892",
"0.5677154",
"0.56443125",
"0.5614647",... | 0.68109477 | 0 |
Returns the total number of unique users who accessed the application per day. | def active_users(self, *args, **kwargs):
return self._get('ActiveUsers', *args, **kwargs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_signups_per_day(day_date, still_active=False):\n qs = User.objects.filter(date_joined__contains=day_date)\n\n if still_active:\n qs = qs.filter(is_active=True, last_login__isnull=False)\n\n return qs.count()",
"def number_users_active(self) -> int:\r\n unique_users = {\r\n ... | [
"0.66701996",
"0.66541994",
"0.6580989",
"0.6538096",
"0.65180594",
"0.641923",
"0.6406685",
"0.64057493",
"0.6370457",
"0.6355587",
"0.632646",
"0.6282262",
"0.62467796",
"0.6211388",
"0.61851877",
"0.61704445",
"0.6123616",
"0.60814434",
"0.6003995",
"0.59931296",
"0.597552... | 0.0 | -1 |
Returns the total number of times users accessed the application per day. | def sessions(self, *args, **kwargs):
return self._get('Sessions', *args, **kwargs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getAppCount(self):\n logger.debug('Getting the number of apps discovered...')\n return get_text(get_element_by_css(\"span[data-nsmodule='totalAppCount']\"))",
"def getViewPortAppCount(self):\n logger.debug('Getting map view port app count...')\n elements = get_elements_by_css(\".l... | [
"0.6648792",
"0.6478566",
"0.6399356",
"0.63749766",
"0.6304291",
"0.62111324",
"0.61642975",
"0.6083162",
"0.60718477",
"0.60381734",
"0.59702057",
"0.59678257",
"0.5934465",
"0.5932513",
"0.59099543",
"0.5902558",
"0.5902066",
"0.5852915",
"0.5840016",
"0.58247036",
"0.5798... | 0.0 | -1 |
Return structured location data for a indicated place. | def normalizer(self, place, includeZeroPopulation=False, casing=None):
params = base.get_params(None, locals())
url = '{0}/{1}'.format(self.get_url(), 'locationNormalizer')
request = http.Request('GET', url, params)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_place_details(self):\n self.google_api_url = 'https://maps.googleapis.com/maps/api/place/details/json?placeid={}&key={}'.format(self.place_id, api_key)\n self.r = requests.get(url=self.google_api_url)\n self.data = self.r.json()\n self.address_components = self.data['result']['a... | [
"0.66670597",
"0.6458146",
"0.6255961",
"0.6242692",
"0.6235443",
"0.6179166",
"0.6143566",
"0.61357784",
"0.61194885",
"0.6037531",
"0.60336125",
"0.602371",
"0.5974014",
"0.5963086",
"0.5958936",
"0.5922779",
"0.59208524",
"0.591261",
"0.59069395",
"0.5903599",
"0.59019995"... | 0.0 | -1 |
Check if this pull request has been merged. | def is_merged(self):
url = '{0}/merge'.format(self.get_url())
return http.Request('GET', url), resource.parse_boolean | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_merged(self):\n return self.get_data(\"state\") == self.STATE_MERGED",
"def merged(self) -> bool:\n return pulumi.get(self, \"merged\")",
"def has_merge(self) -> Optional[str]:\n return self.source_name is not None",
"def has_merge(self) -> Optional[str]:\n return None",
... | [
"0.7081372",
"0.6922528",
"0.6640395",
"0.6620566",
"0.65661705",
"0.6439011",
"0.6296618",
"0.5907579",
"0.5884287",
"0.5873943",
"0.5825165",
"0.57755274",
"0.5703678",
"0.5675634",
"0.5665786",
"0.56168795",
"0.55538344",
"0.5546508",
"0.5539553",
"0.55354935",
"0.5501587"... | 0.67118824 | 2 |
Return the resource corresponding to a single comment of this commit. | def comment(self, comment_id):
return RepoCommitsComment(self.parent, comment_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_comment(self, comment_id):\n # Implemented from template for\n # osid.resource.ResourceLookupSession.get_resource\n # NOTE: This implementation currently ignores plenary view\n collection = JSONClientValidated('commenting',\n collection='C... | [
"0.70670056",
"0.67669195",
"0.65930974",
"0.6577959",
"0.6522093",
"0.6522093",
"0.6403189",
"0.6389157",
"0.63364905",
"0.63331276",
"0.63274574",
"0.6297244",
"0.62687457",
"0.61757797",
"0.6171158",
"0.6110279",
"0.61002636",
"0.60980755",
"0.60723585",
"0.60182977",
"0.5... | 0.6897512 | 1 |
Check if a user is a collaborator in this repo. | def is_collaborator(self, user):
url = '{0}/{1}'.format(self.get_url(), user)
return http.Request('GET', url), resource.parse_boolean | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_collaborator(request_session, build_user, repo, user=None):\n server = repo.server()\n if not user:\n user = server.signed_in_user(request_session)\n if not user:\n return False\n\n auth = server.auth()\n if auth._collaborators_key in request_session:\n collab_dict = requ... | [
"0.79890954",
"0.69090825",
"0.68971753",
"0.6650849",
"0.6488459",
"0.6431783",
"0.64220166",
"0.6378916",
"0.6378383",
"0.62948376",
"0.6294349",
"0.6268596",
"0.62265265",
"0.6204665",
"0.6192069",
"0.6175863",
"0.615614",
"0.615614",
"0.6155415",
"0.6121979",
"0.61182",
... | 0.8388748 | 0 |
Return a resource corresponding to all milestones in this repo. | def milestones(self):
return milestones.Milestones(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def milestones(self):\r\n return IssueMilestones(self)",
"def milestones(self, predicate=None):\n \n if predicate is None:\n return self._get(\"milestones\").json()\n else:\n return self._get(\"milestones/search\", params={\"predicate\":predicate}).json()",
"de... | [
"0.7122542",
"0.7099593",
"0.65406495",
"0.6486796",
"0.5966018",
"0.57236016",
"0.55091465",
"0.54887",
"0.54673934",
"0.5424079",
"0.54195726",
"0.537403",
"0.53455675",
"0.5166093",
"0.50337106",
"0.49760738",
"0.49586272",
"0.49510625",
"0.49381253",
"0.48292547",
"0.4827... | 0.71293133 | 0 |
Return the resource corresponding to a single account | def account(self, account_id):
return Account(self, account_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account(self, account_id):\r\n return resources.Account(self, account_id)",
"def get_account(self, account):\n \n pass",
"def get_account():\n account_id = request.json['id']\n account = [account for account in accounts if account['id'] == account_id]\n if len(account) == 0:\n... | [
"0.7924042",
"0.7424701",
"0.7421179",
"0.7230385",
"0.7230231",
"0.7186417",
"0.7073585",
"0.7065",
"0.7029034",
"0.70180243",
"0.70159304",
"0.70130324",
"0.7004277",
"0.7004277",
"0.69435054",
"0.6915013",
"0.6856333",
"0.6842421",
"0.6771248",
"0.6740415",
"0.6730562",
... | 0.64705354 | 32 |
Return the resource corresponding to a single rule | def rule(self, rule_id):
return Acl(self, rule_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_rule(self, rule):\n for kbrule in self.rules:\n if rule == kbrule:\n return kbrule",
"def _get_rule(self, rule):\n for kbrule in self.rules:\n if rule == kbrule:\n return kbrule",
"def _get_rule(self, rule):\n for kbrule in self.... | [
"0.7648211",
"0.7648211",
"0.7648211",
"0.7144423",
"0.70796853",
"0.70652825",
"0.69663686",
"0.68750423",
"0.67374355",
"0.6712709",
"0.66947585",
"0.66947585",
"0.66947585",
"0.66834855",
"0.66834855",
"0.66834855",
"0.66834855",
"0.66834855",
"0.66834855",
"0.66834855",
"... | 0.62579495 | 27 |
Return the resource corresponding to a single cell | def cell(self, cell_id):
return Cell(self, cell_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getCell(self, row, column):\n\t\t\t\t\n\t\t\t\tif ((row is None) or (column is None)):\n\t\t\t\t\traise NotImplementedError()\n\n\t\t\t\treturn self.thing[self.convertColumn(row = row, column = column)]",
"def cell(self):\n return self._cell",
"def get_cell():\n q = request.query.decode()\n worksh... | [
"0.6659359",
"0.6550773",
"0.6546822",
"0.6539214",
"0.6530476",
"0.64816475",
"0.641218",
"0.63800657",
"0.6359693",
"0.635894",
"0.63518006",
"0.6343449",
"0.63204753",
"0.6220309",
"0.6205561",
"0.6170335",
"0.6169605",
"0.6129465",
"0.61242783",
"0.60945255",
"0.60893804"... | 0.596127 | 37 |
Return the resource corresponding to the authenticated user. | def authenticated_user(self):
return AuthenticatedUser(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_object(self):\n return get_object_or_404(User, pk__iexact=self.request.user.id)",
"def get_object(self):\n return get_object_or_404(User, id__iexact=self.request.user.id)",
"def get_object(self):\n return get_object_or_404(User, id__iexact=self.request.user.id)",
"def user(self):... | [
"0.75508296",
"0.751528",
"0.751528",
"0.74988383",
"0.7493719",
"0.74149364",
"0.73673606",
"0.7349706",
"0.7326319",
"0.7326319",
"0.7326319",
"0.7326319",
"0.7326319",
"0.72898763",
"0.7260097",
"0.72365737",
"0.7171266",
"0.7134324",
"0.7120911",
"0.70390886",
"0.6949711"... | 0.64565825 | 54 |
Return the resource corresponding to a single message thread. | def message_thread(self):
return resource.MessageThread(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_thread(self):\n return self.threads[self.thread_id]",
"def get_thread_for_message(id):\n query = 'SELECT thread_id from messages WHERE id like %s'\n return __perform__(query, (id,), method='fetchone')",
"def get_thread(self):\n url = (\"https://api.imgur.com/3/message/{0}/thread\".f... | [
"0.70643646",
"0.7045368",
"0.6356651",
"0.630255",
"0.6224088",
"0.6221515",
"0.6090217",
"0.6090217",
"0.60104173",
"0.5891411",
"0.57851756",
"0.5688699",
"0.5676713",
"0.5671787",
"0.5595729",
"0.5574622",
"0.5573048",
"0.5569139",
"0.5558287",
"0.5543798",
"0.5529692",
... | 0.7586208 | 0 |
Return the resource corresponding to events. | def events(self):
return resources.Events(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self, request):\n return self.serviceHandler.getEvent(request.data)",
"def get_event(self):\r\n return self.events[0]",
"def events(self):\n return self.properties.get('events', EventCollection(self.context, ResourcePath(\"events\", self.resource_path)))",
"def get_event():\n ... | [
"0.64481264",
"0.6310391",
"0.6283729",
"0.62282956",
"0.61807865",
"0.6180735",
"0.6136943",
"0.6100712",
"0.60879517",
"0.6055846",
"0.60509944",
"0.60120904",
"0.60120904",
"0.59921575",
"0.598042",
"0.5978823",
"0.5978823",
"0.5978823",
"0.5978823",
"0.5978823",
"0.597882... | 0.7324964 | 0 |
Fetch the advertisers that show ads for this keyword. | def advertisers(self, offset=None, page_size=None, min_times_seen=None,
max_times_seen=None, first_seen_before=None,
first_seen_after=None, last_seen_before=None,
last_seen_after=None, sort_field=None, sort_order=None):
params = base.get_params(Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_ads():\n return coll_ad.distinct(KEY_AD_ID)",
"def _get_ads(self, params):\n return self._api.account.get_ads(params={**params, **self._state_filter()}, fields=[self.state_pk])",
"def queryset(self, request):\n qs = super(AdRepAdvertiserAdmin, self).queryset(request)\n qs = AdRe... | [
"0.6457942",
"0.6212869",
"0.5759101",
"0.57580024",
"0.5492555",
"0.53788126",
"0.5376768",
"0.5313168",
"0.5258755",
"0.52472174",
"0.52064973",
"0.51621693",
"0.5138294",
"0.5092243",
"0.50817555",
"0.506304",
"0.5062834",
"0.5056247",
"0.5033874",
"0.5033874",
"0.5033874"... | 0.53490025 | 7 |
Return the resource corresponding to an advertiser. | def advertiser(self, advertiser):
return advertisers.Advertiser(self, advertiser) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def advertise_id(self):\n return self._advertise_id",
"def resource(self):\n return self._resource",
"def resource(self):\n return self._resource",
"def resource(self):\n return self._resource",
"def resource(self):\n return self._resource",
"def resource(self):\n ... | [
"0.5642002",
"0.5526931",
"0.5526931",
"0.5526931",
"0.5526931",
"0.5526931",
"0.5526931",
"0.5526931",
"0.54480636",
"0.53788036",
"0.53634953",
"0.53497136",
"0.53379774",
"0.53363",
"0.53091246",
"0.52617663",
"0.5251269",
"0.5249564",
"0.52322835",
"0.52322835",
"0.523228... | 0.7677939 | 0 |
Returns a list of actions (alerts) that have been generated for your account. | def get(self, from_=None, to=None, limit=None, offset=None, checkids=None,
contactids=None, status=None, via=None):
params = base.get_params(None, locals(),
translate_param=resource.translate_param)
return http.Request('GET', self.get_url(), params), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_actions(self):\n return self.agent.get_actions()",
"def get_actions(self):\n return []",
"def get_list_of_actions(self):\n return self.actions",
"def actions(self):\n return self._action_list",
"def list(self):\n\n return list(\n filter(\n ... | [
"0.7012529",
"0.6941333",
"0.68760794",
"0.67009044",
"0.65287685",
"0.64811665",
"0.64275473",
"0.6408293",
"0.64079785",
"0.6407594",
"0.631326",
"0.6302232",
"0.63006383",
"0.6286536",
"0.62532675",
"0.62262446",
"0.621462",
"0.6195643",
"0.6160795",
"0.6160795",
"0.615357... | 0.0 | -1 |
Lists activities associated with a deal. | def activities(self, start=None, limit=None, done=None, exclude=None):
params = base.get_params(None, locals())
url = '{0}/activities'.format(self.get_url())
return http.Request('GET', url, params), parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_activity_list(self):\n return self._request_activity_list(self.athlete)",
"def __ui_list_all_activities(self):\n activities_list = self.__activity_service.service_get_list_of_activities()\n if len(activities_list) == 0:\n print(\"The list of activities is empty!\\n\")\n ... | [
"0.6480045",
"0.6100882",
"0.5895798",
"0.588888",
"0.57327014",
"0.5577144",
"0.55690104",
"0.55413055",
"0.55337745",
"0.54681814",
"0.54448557",
"0.5419641",
"0.53565603",
"0.5329509",
"0.5320559",
"0.53106475",
"0.5287538",
"0.528293",
"0.5280365",
"0.5168517",
"0.5152365... | 0.5914935 | 3 |
Returns the resource corresponding to the deal products | def products(self):
return Products(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def retrieve_product_infos(self):\n\n # PRODUCT NAME\n try:\n product_name = self.product['product_name'].capitalize()\n except KeyError:\n product_name = None\n\n # PRODUCT CODE\n try:\n product_code = self.product['code'].capitalize()\n e... | [
"0.6540507",
"0.6138462",
"0.6125444",
"0.61155856",
"0.60915554",
"0.6084319",
"0.6075715",
"0.5987189",
"0.59845585",
"0.59619784",
"0.59331703",
"0.5929177",
"0.5900051",
"0.58784765",
"0.5872844",
"0.5865177",
"0.5861767",
"0.584453",
"0.5839231",
"0.5838093",
"0.5833882"... | 0.5580003 | 48 |
Lists activities associated with an organization. | def activities(self, start=None, limit=None, done=None, exclude=None):
params = base.get_params(None, locals())
url = '{0}/activities'.format(self.get_url())
return http.Request('GET', url, params), parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __ui_list_all_activities(self):\n activities_list = self.__activity_service.service_get_list_of_activities()\n if len(activities_list) == 0:\n print(\"The list of activities is empty!\\n\")\n else:\n for activity in activities_list:\n print(activity)\n ... | [
"0.62916046",
"0.5922097",
"0.5847519",
"0.5844929",
"0.5781588",
"0.5778318",
"0.5691157",
"0.5653156",
"0.56231683",
"0.5612226",
"0.55737203",
"0.5562085",
"0.5554293",
"0.55257255",
"0.552126",
"0.5504269",
"0.54944295",
"0.5459236",
"0.5438632",
"0.54165196",
"0.5404379"... | 0.57678133 | 6 |
Lists updates about an organization. | def updates(self, start=None, limit=None):
params = base.get_params(None, locals())
url = '{0}/updates'.format(self.get_url())
return http.Request('GET', url, params), parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update(self, organisation: Organisation) -> None:\n ...",
"def list_all_organizations(ctx):\n pprint(ctx.obj.orgs.get().data)",
"def update_list(self, apikey):\n\n file = self.retrieve_update(apikey)\n self.parse_update(file)\n self.log.debug(self)",
"def updateOrgAdmins(re... | [
"0.61557627",
"0.5981603",
"0.5933018",
"0.5909555",
"0.5812492",
"0.578169",
"0.5748613",
"0.5640388",
"0.5616038",
"0.5493969",
"0.54919547",
"0.5481065",
"0.5479913",
"0.5476297",
"0.5474336",
"0.54568845",
"0.54399633",
"0.542901",
"0.5426323",
"0.54198015",
"0.5410175",
... | 0.5078358 | 37 |
Returns data about the products that were found. If currency was set in request, prices in that currency are served back. | def find(self, term, currency=None, start=None, limit=None):
params = base.get_params(None, locals())
url = '{0}/find'.format(self.get_url())
return http.Request('GET', url, params), parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_products(self):\n con = dbcon()\n cur = con.cursor()\n cur.execute(\"SELECT * FROM products;\")\n res = cur.fetchall()\n if res:\n prdcts=[]\n for prodct_item in res:\n picked_prdct = {\n 'product_id':prodct_item[0],\n ... | [
"0.646863",
"0.635321",
"0.6339685",
"0.6336046",
"0.63234943",
"0.62833464",
"0.6275248",
"0.6269912",
"0.62589645",
"0.62433374",
"0.6229178",
"0.6227062",
"0.6215664",
"0.61974776",
"0.6172122",
"0.61691254",
"0.61619794",
"0.6144976",
"0.60849583",
"0.60476404",
"0.602468... | 0.0 | -1 |
Return the resource corresponding to a single activity type | def activity_type(self, type_id):
return activities.ActivityType(self, type_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_activityType(activity_task):\n try:\n return activity_task[\"activityType\"][\"name\"]\n except KeyError:\n # No activityType found\n return None",
"def get_type(self):\n types = dict(ACTIVITY_TYPES)\n return types.get(self.activity_type, \"N/A\")",
"def activit... | [
"0.7062258",
"0.69407135",
"0.6939851",
"0.67984754",
"0.64483666",
"0.6264218",
"0.6202323",
"0.6120818",
"0.6034127",
"0.6034127",
"0.5981062",
"0.5850776",
"0.5850776",
"0.5850776",
"0.5850776",
"0.5850776",
"0.58492607",
"0.5846781",
"0.57999116",
"0.579411",
"0.5792934",... | 0.7384097 | 0 |
Return the resource corresponding to a single organization field | def organization_field(self, field_id):
return organizations.OrganizationField(self, field_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_organization(self):\n return self.reference[REF_ORGANIZATION][REF_VALUE]",
"async def get_organization(request: Request, org: str):\n\n redis = request.app.state.redis\n organizations_obj = orjson.loads(await redis.get_key(\"influxdb_organizations\"))\n if org not in organizations_obj:\n ... | [
"0.6930801",
"0.6715217",
"0.6647381",
"0.66158146",
"0.66126645",
"0.6545849",
"0.64904004",
"0.6488252",
"0.64248866",
"0.6219907",
"0.6145375",
"0.61448634",
"0.61298025",
"0.60852987",
"0.60852987",
"0.60852987",
"0.60656726",
"0.60595125",
"0.60362685",
"0.6031972",
"0.6... | 0.6862784 | 1 |
Return the resource corresponding to a single organization | def organization(self, organization_id):
return organizations.Organization(self, organization_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def organization(self):\n return self._tower.get_organization_by_id(self._data.get('organization'))",
"def fetch_organization(organization):\n return fetch_json(organization_url, organization)",
"async def get_organization(request: Request, org: str):\n\n redis = request.app.state.redis\n organ... | [
"0.7391405",
"0.7290873",
"0.7167246",
"0.7093252",
"0.70249563",
"0.67316294",
"0.66973937",
"0.66914135",
"0.6678021",
"0.6678021",
"0.6678021",
"0.6671033",
"0.6619319",
"0.65803045",
"0.6566961",
"0.6531935",
"0.6525425",
"0.6509351",
"0.65047204",
"0.646267",
"0.6445564"... | 0.6769931 | 5 |
Return the resource corresponding to a single product | def product(self, product_id):
return products.Product(self, product_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_product(cls, product_id):\n return Product.query.get(product_id)",
"def get(self, product_id):\n\n return product.get_single_product(product_id)",
"def get(self, product_id):\n product = ProductModel.query.filter_by(id=product_id).first()\n if not product:\n produ... | [
"0.75709",
"0.7554958",
"0.7493217",
"0.73782104",
"0.72632766",
"0.7226201",
"0.72174937",
"0.7117904",
"0.7112208",
"0.7109329",
"0.70531887",
"0.70488113",
"0.70392674",
"0.70315427",
"0.7016355",
"0.69728744",
"0.69495016",
"0.6908141",
"0.68436474",
"0.6836462",
"0.68157... | 0.75878143 | 0 |
Returns all authorizations for a particular user. Authorization objects contain the API tokens the user has with different company accounts in Pipedrive. | def get(self, email, password):
params = base.get_params(None, locals())
return http.Request('POST', self.get_url(), params), parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_all_authorizations_for_user(cls, keycloak_guid):\n return cls.query.filter_by(keycloak_guid=keycloak_guid).all()",
"def authorizations(self) -> Sequence['outputs.AuthorizationResponse']:\n return pulumi.get(self, \"authorizations\")",
"def authorizations(self):\r\n return users.Au... | [
"0.7332088",
"0.6957345",
"0.6895876",
"0.6601643",
"0.6454145",
"0.5681592",
"0.5628294",
"0.5414186",
"0.53688306",
"0.5362595",
"0.53599256",
"0.53599256",
"0.53599256",
"0.53599256",
"0.5357471",
"0.53380436",
"0.5323717",
"0.5307073",
"0.52951485",
"0.5277943",
"0.527566... | 0.0 | -1 |
Lists activities associated with a user. | def activities(self, start=None, limit=None, done=None, exclude=None):
params = base.get_params(None, locals())
url = '{0}/activities'.format(self.get_url())
return http.Request('GET', url, params), parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_activities_by_user(request, user_id):\n\n activities_info = []\n\n for activity in Activity.objects.filter(user=user_id):\n\n result = activity.result\n goal = result.goal\n ch = goal.cost_holder\n\n for record in activity.activityrecord_set.all():\n\n activitie... | [
"0.6935108",
"0.6729551",
"0.66824585",
"0.66713315",
"0.66278684",
"0.65480596",
"0.6536848",
"0.6509207",
"0.6309157",
"0.62227875",
"0.6179896",
"0.6154002",
"0.6061939",
"0.6009504",
"0.5979956",
"0.58931637",
"0.58268803",
"0.58050233",
"0.580071",
"0.5781538",
"0.575751... | 0.6064055 | 15 |
Return the resource corresponding to all subscriptions for the account. | def subscriptions(self):
return subs.AccountSubscriptions(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getAllSubscriptions(self):\n return self.request(\n \"getAllSubscriptions\",\n )",
"def get_subscriptions(self):\n url = '{}/v2/subscriptions'.format(self.url)\n r = requests.get(url, headers=self.headers_v2)\n return r.json()",
"def get_subscriptions(self):\n ... | [
"0.8053855",
"0.7719944",
"0.7707207",
"0.7692354",
"0.76446974",
"0.7604716",
"0.737493",
"0.7330857",
"0.7323026",
"0.7282235",
"0.7180505",
"0.7172677",
"0.7157673",
"0.71288884",
"0.7024225",
"0.7007353",
"0.69198316",
"0.6861299",
"0.6846439",
"0.6839854",
"0.679515",
... | 0.82293093 | 0 |
Return the resource corresponding to all transactions for the account. | def transactions(self):
return tx.AccountTransactions(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transactions(self):\n return self._call_account_method(\n 'transactions'\n )",
"def all_transactions(self, request):\n user_id = request.data[\"user\"]\n user = User.objects.get(id=user_id)\n user_transactions = user.transactions.all()\n serializer = Trans... | [
"0.7526518",
"0.71408194",
"0.6976082",
"0.68460256",
"0.67738324",
"0.6766985",
"0.6754182",
"0.67474926",
"0.6738625",
"0.6702868",
"0.6593533",
"0.6542935",
"0.6522238",
"0.6433418",
"0.6431116",
"0.6430584",
"0.64172035",
"0.6301153",
"0.6284116",
"0.62283427",
"0.6218489... | 0.77615017 | 0 |
Return the resource corresponding to a single plan. | def plan(self, plan_code):
return pl.Plan(self, plan_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_plan(plan_id):\n try:\n return Plan.objects.get(id=plan_id)\n except ObjectDoesNotExist:\n raise ObjectDoesNotFound(\n 'There is no plan with id={}.'.format(plan_id))",
"def get(cls, plan_id):\n return cls().requests.get(f\"plan/{plan_id}\")",
"def get_plan(self):\... | [
"0.7526946",
"0.7325535",
"0.7237401",
"0.6866178",
"0.6831494",
"0.66995794",
"0.6646056",
"0.64993256",
"0.64782363",
"0.63909763",
"0.6275059",
"0.6132944",
"0.6132793",
"0.6105433",
"0.60860485",
"0.6016725",
"0.5993888",
"0.5990355",
"0.5987716",
"0.5968584",
"0.5949632"... | 0.6347137 | 10 |
Return the resource corresponding to a single account. | def account(self, account_code):
return acc.Account(self, account_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account(self, account_id):\r\n return resources.Account(self, account_id)",
"def get_account(self, account):\n \n pass",
"def account(self, account_id: str):\n return get_from_list(self.accounts, \"id\", account_id)",
"def get_account():\n account_id = request.json['id']\n ... | [
"0.8128518",
"0.7381873",
"0.735797",
"0.7338838",
"0.7271011",
"0.7238692",
"0.7091256",
"0.7081743",
"0.70659566",
"0.70659566",
"0.706309",
"0.6953943",
"0.69525546",
"0.6892487",
"0.6873347",
"0.6849672",
"0.684347",
"0.68366426",
"0.6813629",
"0.66748565",
"0.6651347",
... | 0.6813448 | 19 |
Return the resource corresponding to a single adjustment. | def adjustment(self, uuid):
return ads.Adjustment(self, uuid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_settings_resource(res_type, abbr, res_name):\n\t\n\tif zen_settings.has_key(res_type):\n\t\tresource = zen_settings[res_type];\n\t\tif (has_deep_key(resource, [res_name, abbr])):\n\t\t\treturn resource[res_name][abbr]\n\t\telif 'extends' in resource:\n\t#\t\tfind abbreviation in ancestors\n\t\t\tfor v in r... | [
"0.5987215",
"0.57111496",
"0.5646641",
"0.5646641",
"0.5646641",
"0.5646641",
"0.5646641",
"0.5646641",
"0.5646641",
"0.5646641",
"0.5644025",
"0.5434678",
"0.5403355",
"0.5393617",
"0.5336554",
"0.52584124",
"0.52572834",
"0.52493984",
"0.52330834",
"0.5210756",
"0.5210756"... | 0.5821014 | 1 |
Return the resource corresponding to a single coupon. | def coupon(self, coupon_code):
return coup.Coupon(self, coupon_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def coupon(self, id):\r\n return Coupon(self, id)",
"def test_get_coupon_definition_by_id(self):\n pass",
"def read_from_coupon_collection(self):\n try:\n result = db.collection_coupon.find()\n except Exception as e:\n raise e\n \n return result",
"... | [
"0.6929826",
"0.5898194",
"0.5634547",
"0.5528798",
"0.5330391",
"0.5230503",
"0.5221917",
"0.5127511",
"0.51226026",
"0.50562686",
"0.505469",
"0.5012701",
"0.49900103",
"0.49095112",
"0.48785675",
"0.48785064",
"0.48678178",
"0.48467252",
"0.4841352",
"0.47879466",
"0.47756... | 0.6934339 | 0 |
Return the resource corresponding to all subscriptions. | def subscriptions(self):
return subs.Subscriptions(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getAllSubscriptions(self):\n return self.request(\n \"getAllSubscriptions\",\n )",
"def get_subscriptions(self):\n return self.subscriptions.all()",
"def subscriptions(self) -> pulumi.Output[Optional[Sequence['outputs.ResourceIdResponse']]]:\n return pulumi.get(self, ... | [
"0.7771157",
"0.76652706",
"0.7539855",
"0.7384806",
"0.73519516",
"0.7317998",
"0.7270938",
"0.7269803",
"0.71825284",
"0.7179463",
"0.7170762",
"0.716839",
"0.7071887",
"0.70526844",
"0.7009471",
"0.6909305",
"0.68960893",
"0.6866779",
"0.68073374",
"0.67964214",
"0.6628461... | 0.7371403 | 4 |
Return the resource corresponding to a single subscription. | def subscription(self, uuid):
return subs.Subscription(self, uuid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_one(cls, sid):\n return Subscription.query.get_or_404(sid)",
"def get_subscription(self):\n return self.request({\n 'path': '/' + UUID + '/subscription'})",
"def subscription(self):\r\n return SubscriptionResource(self)",
"def get_subscription(\n connection, subscri... | [
"0.7970475",
"0.79435897",
"0.7608279",
"0.7318075",
"0.72465676",
"0.69881535",
"0.69753796",
"0.69753796",
"0.6954161",
"0.68925893",
"0.68854374",
"0.68854374",
"0.6805445",
"0.67747205",
"0.67624706",
"0.67102486",
"0.66228145",
"0.6602828",
"0.6484358",
"0.6445478",
"0.6... | 0.72710663 | 4 |
Return the resource corresponding to all transactions. | def transactions(self):
return tx.Transactions(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def all_transactions(self, request):\n user_id = request.data[\"user\"]\n user = User.objects.get(id=user_id)\n user_transactions = user.transactions.all()\n serializer = TransactionSerializer(user_transactions, many=True)\n\n return Response(serializer.data)",
"def _get_all_tr... | [
"0.67235774",
"0.6708753",
"0.6648714",
"0.65441036",
"0.64851654",
"0.6409983",
"0.6339409",
"0.62841237",
"0.6213114",
"0.6186006",
"0.60582733",
"0.5972553",
"0.5932297",
"0.5930556",
"0.59296864",
"0.5887186",
"0.5884038",
"0.5873803",
"0.5851857",
"0.58434224",
"0.583558... | 0.667316 | 2 |
Fetch all your subscription. | def get(self, state='live', cursor=None, per_page=None):
params = base.get_params(('cursor', 'per_page'), locals())
params['state'] = state
request = http.Request('GET', self.get_url(), params)
return request, parsers.parse_xml | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getAllSubscriptions(self):\n return self.request(\n \"getAllSubscriptions\",\n )",
"def get_subscriptions(self):\n url = '{}/v2/subscriptions'.format(self.url)\n r = requests.get(url, headers=self.headers_v2)\n return r.json()",
"def get_subscriptions(self):\n ... | [
"0.7639306",
"0.7574515",
"0.75399256",
"0.74141645",
"0.7359277",
"0.7186401",
"0.70600295",
"0.70275503",
"0.6898822",
"0.6890473",
"0.68042815",
"0.67482805",
"0.66762334",
"0.66549206",
"0.6632294",
"0.6584442",
"0.65522933",
"0.65425277",
"0.6535706",
"0.6516914",
"0.651... | 0.0 | -1 |
Lookup for an artist in the Spotify's music catalogue | def artist(self, uri, detail=None):
extras = self.ARTIST_DETAIL.get(detail)
return self.get(uri, extras) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def search_for_artist(name):\n\ttoken = get_token()\n\tif token:\n\t\theaders = {\"Content-Type\": \"application/json\", \"Authorization\": \"Bearer \" + token}\n\t\toptions = {\n\t\t\t'q': name, 'type': 'artist', 'limit': '1'\n\t\t}\n\n\t\tresponse = requests.get(\n\t\t\t'https://api.spotify.com/v1/search',\n\t\t... | [
"0.7612155",
"0.74814093",
"0.74630946",
"0.7243213",
"0.71450955",
"0.71277326",
"0.7112105",
"0.7012895",
"0.70094305",
"0.6993691",
"0.6967492",
"0.69579184",
"0.6950785",
"0.6914779",
"0.6911069",
"0.6899246",
"0.6806626",
"0.6780985",
"0.67740864",
"0.6651638",
"0.655171... | 0.6933512 | 13 |
Return the resource corresponding to all invoice's lines. | def lines(self):
return LineItems(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def invoices(self):\r\n return inv.Invoices(self)",
"def invoices(self):\r\n return Invoices(self)",
"def getInvoice(self):\n return self.base.get(\"invoice\", [])",
"def invoiceitems(self):\r\n return InvoiceItems(self)",
"def invoices(self,org_id=None,invoice_id=''):\n if o... | [
"0.6430994",
"0.638287",
"0.6368535",
"0.6352913",
"0.6113739",
"0.6063186",
"0.604058",
"0.602863",
"0.6027646",
"0.6021966",
"0.59767306",
"0.59546477",
"0.59404945",
"0.5907914",
"0.58252996",
"0.5630753",
"0.56269646",
"0.55938613",
"0.55925006",
"0.5564038",
"0.5563137",... | 0.57993525 | 15 |
Return the resource corresponding to the logged account. | def account(self):
return Account(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account(self):\n return self.request('/account')",
"def get_account(self):\n return self._account",
"def get_account(self):\n return self._account",
"def get_object(self):\n account = Account.get_account_with_admins(account.id)\n\n return account[0] if account else None... | [
"0.6918726",
"0.67704624",
"0.67704624",
"0.6463876",
"0.6405638",
"0.6395634",
"0.62898",
"0.62471163",
"0.62386453",
"0.6206183",
"0.61631286",
"0.6141372",
"0.6108283",
"0.6108283",
"0.61025655",
"0.60753953",
"0.60482544",
"0.6039961",
"0.6036206",
"0.6035312",
"0.601598"... | 0.58267415 | 45 |
Return the resource corresponding to a single plan. | def plan(self, id):
return Plan(self, id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_plan(plan_id):\n try:\n return Plan.objects.get(id=plan_id)\n except ObjectDoesNotExist:\n raise ObjectDoesNotFound(\n 'There is no plan with id={}.'.format(plan_id))",
"def get(cls, plan_id):\n return cls().requests.get(f\"plan/{plan_id}\")",
"def get_plan(self):\... | [
"0.7526946",
"0.7325535",
"0.7237401",
"0.6866178",
"0.6831494",
"0.66995794",
"0.6646056",
"0.64993256",
"0.63909763",
"0.6347137",
"0.6275059",
"0.6132944",
"0.6132793",
"0.6105433",
"0.60860485",
"0.6016725",
"0.5993888",
"0.5990355",
"0.5987716",
"0.5968584",
"0.5949632",... | 0.64782363 | 8 |
Return the resource corresponding to a single charge. | def charge(self, id):
return Charge(self, id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def retrieve(self, **params):\n self.__requireParams(params, ['id'])\n return self.__req('retrieve_charge', params)",
"def charge(self):\n return self._charge",
"def get_by_name(self, charge_method, molecule):\n\n if charge_method.lower() not in self._AVAILABLE_TYPES:\n raise Val... | [
"0.6999501",
"0.65195316",
"0.6408516",
"0.6349711",
"0.63396496",
"0.6260681",
"0.6229427",
"0.60075676",
"0.58554894",
"0.56894743",
"0.56767714",
"0.56497365",
"0.56197315",
"0.56197315",
"0.56197315",
"0.56197315",
"0.56197315",
"0.56197315",
"0.56197315",
"0.5617185",
"0... | 0.6602577 | 1 |
Return the resource corresponding to a single coupon. | def coupon(self, id):
return Coupon(self, id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def coupon(self, coupon_code):\r\n return coup.Coupon(self, coupon_code)",
"def test_get_coupon_definition_by_id(self):\n pass",
"def read_from_coupon_collection(self):\n try:\n result = db.collection_coupon.find()\n except Exception as e:\n raise e\n \n ... | [
"0.6934339",
"0.5898194",
"0.5634547",
"0.5528798",
"0.5330391",
"0.5230503",
"0.5221917",
"0.5127511",
"0.51226026",
"0.50562686",
"0.505469",
"0.5012701",
"0.49900103",
"0.49095112",
"0.48785675",
"0.48785064",
"0.48678178",
"0.48467252",
"0.4841352",
"0.47879466",
"0.47756... | 0.6929826 | 1 |
Returns a single organization | def organization(self):
return Organization(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def organization(self):\n return self._tower.get_organization_by_id(self._data.get('organization'))",
"def find_organization(self):\n if self.org_id is not None:\n ItopapiPrototype.get_itop_class('Organization').find(self.org_id)\n return None",
"def get_organization(self):\n ... | [
"0.79743236",
"0.78914934",
"0.77270484",
"0.75255895",
"0.74935895",
"0.7492418",
"0.74534506",
"0.7300926",
"0.72920835",
"0.725626",
"0.7254059",
"0.7252241",
"0.7226458",
"0.7205238",
"0.7141129",
"0.7100673",
"0.70939076",
"0.70739144",
"0.70441675",
"0.7022772",
"0.6985... | 0.7306838 | 7 |
Returns a single organization | def organization(self):
return Organization(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def organization(self):\n return self._tower.get_organization_by_id(self._data.get('organization'))",
"def find_organization(self):\n if self.org_id is not None:\n ItopapiPrototype.get_itop_class('Organization').find(self.org_id)\n return None",
"def get_organization(self):\n ... | [
"0.79743236",
"0.78914934",
"0.77270484",
"0.75255895",
"0.74935895",
"0.7492418",
"0.74534506",
"0.7300926",
"0.72920835",
"0.725626",
"0.7254059",
"0.7252241",
"0.7226458",
"0.7205238",
"0.7141129",
"0.7100673",
"0.70939076",
"0.70739144",
"0.70441675",
"0.7022772",
"0.6985... | 0.7306838 | 9 |
Returns a single organization | def organization(self):
return Organization(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def organization(self):\n return self._tower.get_organization_by_id(self._data.get('organization'))",
"def find_organization(self):\n if self.org_id is not None:\n ItopapiPrototype.get_itop_class('Organization').find(self.org_id)\n return None",
"def get_organization(self):\n ... | [
"0.79743236",
"0.78914934",
"0.77270484",
"0.75255895",
"0.74935895",
"0.7492418",
"0.74534506",
"0.7300926",
"0.72920835",
"0.725626",
"0.7254059",
"0.7252241",
"0.7226458",
"0.7205238",
"0.7141129",
"0.7100673",
"0.70939076",
"0.70739144",
"0.70441675",
"0.7022772",
"0.6985... | 0.7306838 | 8 |
Returns a single resource field. | def field(self, field):
url = '{0}/{1}'.format(self.get_url(), field)
request = http.Request('GET', url)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def specific(self):\n field_attr = field_registry.field_map[self.type]\n return getattr(self, field_attr, None)",
"def get_field(self, field):\n return self._dict.get(field)",
"def field(self) -> Optional[str]:\n return pulumi.get(self, \"field\")",
"def find_field():\n _id = r... | [
"0.7155468",
"0.7021437",
"0.7002242",
"0.6941827",
"0.6932042",
"0.690748",
"0.6895942",
"0.6895942",
"0.6895942",
"0.6895942",
"0.6809187",
"0.68033683",
"0.67939734",
"0.66970205",
"0.66944474",
"0.6684044",
"0.6654111",
"0.66519517",
"0.66490436",
"0.66221195",
"0.6622119... | 0.6167049 | 41 |
Return the resource corresponding to a single organization | def organization(self, organization_id_or_name):
return Organization(self, organization_id_or_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def organization(self):\n return self._tower.get_organization_by_id(self._data.get('organization'))",
"def fetch_organization(organization):\n return fetch_json(organization_url, organization)",
"async def get_organization(request: Request, org: str):\n\n redis = request.app.state.redis\n organ... | [
"0.73918945",
"0.72905105",
"0.7166894",
"0.7094288",
"0.7025045",
"0.6770693",
"0.6732728",
"0.6698229",
"0.6691838",
"0.66786385",
"0.66786385",
"0.66786385",
"0.6671616",
"0.6620091",
"0.65804183",
"0.6567769",
"0.6532047",
"0.65256435",
"0.6509332",
"0.6503715",
"0.644619... | 0.6463524 | 20 |
Return a list of Connect App resource representations, each representing a Connect App you've authorized to access this account. | def authorized_connect_apps(self):
return applications.AuthorizedConnectApps(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def retr_auth_apps() :\n\n\t\t\t_logger.info( '...retr_auth_apps...' )\n\t\t\toutput = []\n\t\t\tdb = mongo.db.auth_apps\n\n\t\t\tcur = db.find()\n\t\t\tif cur.count() == 0 :\n\t\t\t\traise mongo_no_resource_exception( 'no authorized apps found' )\n\t\t\tfor app in db.find() :\n\t\t\t\toutput.append( { 'moniker' :... | [
"0.73646885",
"0.6867764",
"0.6645328",
"0.663292",
"0.64629304",
"0.64139235",
"0.6390467",
"0.6269729",
"0.61966044",
"0.6195805",
"0.61800545",
"0.6150611",
"0.6140567",
"0.6138532",
"0.60628945",
"0.60573214",
"0.6052115",
"0.60419977",
"0.60325485",
"0.6032442",
"0.60234... | 0.7757862 | 0 |
Return a list of conferences within this account. | def conferences(self):
return conferences.Conferences(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_conferences():\n conferences = []\n for confId in range(1, 8):\n c = requests.get(CONFERENCES_URL.format(confId)).json()\n conf_list = c.get('conferences')\n if conf_list is None or len(conf_list) == 0:\n continue\n conferences.append(Conference.from_json(conf_l... | [
"0.7965614",
"0.6773098",
"0.6699745",
"0.65622234",
"0.652843",
"0.6373869",
"0.637163",
"0.6267963",
"0.6244966",
"0.62361175",
"0.6013377",
"0.59106576",
"0.58997357",
"0.5856392",
"0.583688",
"0.5774325",
"0.57633275",
"0.5725822",
"0.57239246",
"0.571662",
"0.5709659",
... | 0.86587554 | 0 |
Return a queue within this account. | def queue(self, sid):
return queues.Queue(self, sid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_queue(self):\n return self.queue",
"def get_queue(self):\n return self.queue",
"def queue(self):\n if self._queue is None:\n qstr = self.query_queue(user=self._user)\n self._queue = self.parse_queue_str(qstr)\n\n return self._queue",
"async def get_qu... | [
"0.79370624",
"0.79370624",
"0.7914794",
"0.7902332",
"0.7765085",
"0.7743281",
"0.7590166",
"0.75684285",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"0.74941844",
"... | 0.7246694 | 27 |
Return a list of queues within this account. | def queues(self):
return queues.Queues(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_queue_list(self):\n return self.manager.get_queue_list()",
"def queues(self) -> pulumi.Output[Optional[Sequence[str]]]:\n return pulumi.get(self, \"queues\")",
"def get_queues(self, tags=None):\r\n params = {}\r\n if tags:\r\n params['tags'] = ','.join(tags)\r\n ... | [
"0.8071654",
"0.740453",
"0.7297489",
"0.7247139",
"0.72376764",
"0.72376764",
"0.72376764",
"0.72376764",
"0.72376764",
"0.72376764",
"0.72376764",
"0.72376764",
"0.72376764",
"0.7201019",
"0.7183742",
"0.70857614",
"0.7085665",
"0.699331",
"0.6956612",
"0.69165325",
"0.6887... | 0.786927 | 1 |
Return a Transcription resource representation for call made to of from this account. | def transcription(self, sid):
return recordings.Transcription(self, sid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transcriptions(self):\r\n return Transcriptions(self)",
"def transcriptions(self):\r\n return recordings.Transcriptions(self)",
"def get_transcription(self):\n q_tscript1 = prefixes + \"\"\"\n SELECT ?tfName ?targetName ?stmt ?tf ?target ?rel\n WHERE {\n ... | [
"0.6599057",
"0.6410139",
"0.60449624",
"0.54620665",
"0.5438918",
"0.5411658",
"0.5380303",
"0.5273315",
"0.52333087",
"0.5220136",
"0.52134097",
"0.5166406",
"0.51530415",
"0.51014346",
"0.50859594",
"0.50716203",
"0.50629324",
"0.5053882",
"0.5047109",
"0.5004518",
"0.4976... | 0.73041433 | 0 |
Return a set of Transcription resource representations for this account. | def transcriptions(self):
return recordings.Transcriptions(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transcriptions(self):\r\n return Transcriptions(self)",
"def transcription(self, sid):\r\n return recordings.Transcription(self, sid)",
"def subscriptions(self):\r\n return subs.AccountSubscriptions(self)",
"def transcripts(self):\n transcript_id_results = self.db.query(\n ... | [
"0.7307224",
"0.6383597",
"0.6290204",
"0.6209634",
"0.6190057",
"0.6178731",
"0.6166927",
"0.6062595",
"0.5965986",
"0.5769659",
"0.5764732",
"0.56911665",
"0.56413084",
"0.5610103",
"0.55506176",
"0.54900235",
"0.5481813",
"0.54550457",
"0.5447621",
"0.5406887",
"0.5351717"... | 0.7552313 | 0 |
Fetch the Authorized Connect Apps belonging to an account. | def get(self, Page=None, PageSize=None, AfterSid=None):
params = resource.get_params(None, locals())
request = http.Request('GET', self.get_url(), params)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def authorized_connect_apps(self):\r\n return applications.AuthorizedConnectApps(self)",
"def retr_auth_apps() :\n\n\t\t\t_logger.info( '...retr_auth_apps...' )\n\t\t\toutput = []\n\t\t\tdb = mongo.db.auth_apps\n\n\t\t\tcur = db.find()\n\t\t\tif cur.count() == 0 :\n\t\t\t\traise mongo_no_resource_exceptio... | [
"0.7179072",
"0.70386904",
"0.62644506",
"0.6255303",
"0.6244583",
"0.6132727",
"0.6106223",
"0.60424685",
"0.6036278",
"0.5918201",
"0.5885773",
"0.5879607",
"0.58637774",
"0.5805865",
"0.5749693",
"0.5747921",
"0.5743191",
"0.57382995",
"0.5735737",
"0.57346284",
"0.5730953... | 0.0 | -1 |
Return a participant in this conference. | def participant(self, sid):
return Participant(self, sid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getParticipant(self, discordId):\n if discordId in participants:\n return participants[discordId]\n else:\n return None",
"def participant(self, sid):\n return Participant(self, sid)",
"def participant_id(self):\n return self.data[\"id\"]",
"def participa... | [
"0.72046083",
"0.7080376",
"0.67052925",
"0.6300894",
"0.6294788",
"0.62100816",
"0.6181115",
"0.6156547",
"0.6144625",
"0.60970587",
"0.60328543",
"0.59512925",
"0.589766",
"0.5822871",
"0.58099806",
"0.5790752",
"0.57761496",
"0.5708563",
"0.55543476",
"0.5511341",
"0.54985... | 0.703881 | 2 |
Fetch the list of conferences of an account. | def get(self, Page=None, PageSize=None, AfterSid=None):
params = resource.get_params(None, locals())
request = http.Request('GET', self.get_url(), params)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_conferences():\n conferences = []\n for confId in range(1, 8):\n c = requests.get(CONFERENCES_URL.format(confId)).json()\n conf_list = c.get('conferences')\n if conf_list is None or len(conf_list) == 0:\n continue\n conferences.append(Conference.from_json(conf_l... | [
"0.7437801",
"0.6874706",
"0.6280792",
"0.61054516",
"0.6062059",
"0.58969957",
"0.58946455",
"0.5878617",
"0.5860471",
"0.57981586",
"0.57679236",
"0.56530017",
"0.5580158",
"0.55774105",
"0.5549596",
"0.55274695",
"0.55215913",
"0.5514898",
"0.5473383",
"0.54512674",
"0.541... | 0.0 | -1 |
Fetch the list of transcriptions for an account or call. | def get(self, Page=None, PageSize=None, AfterSid=None):
params = resource.get_params(None, locals())
request = http.Request('GET', self.get_url(), params)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transcriptions(self):\r\n return recordings.Transcriptions(self)",
"def subscriptions(self):\r\n return subs.AccountSubscriptions(self)",
"def query_accounts(self):\n return self._call_txtrader_api('query_accounts', {})",
"def getAllSubscriptions(self):\n return self.request(\... | [
"0.6815294",
"0.6579181",
"0.6554846",
"0.649452",
"0.63904464",
"0.6373254",
"0.63363737",
"0.63038397",
"0.6245856",
"0.6233953",
"0.6190501",
"0.616183",
"0.60744774",
"0.5977976",
"0.5932061",
"0.58430946",
"0.58301294",
"0.581357",
"0.5812477",
"0.5811506",
"0.57921124",... | 0.0 | -1 |
Return a set of Transcription resource representations for this recording. | def transcriptions(self):
return Transcriptions(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transcriptions(self):\r\n return recordings.Transcriptions(self)",
"def transcription(self, sid):\r\n return recordings.Transcription(self, sid)",
"def get_transcripts(self):\n\n return self.features['transcript']",
"def transcripts(self):\n transcript_id_results = self.db.que... | [
"0.73712873",
"0.64654416",
"0.5971422",
"0.58951336",
"0.587654",
"0.587141",
"0.58644354",
"0.5694314",
"0.5573047",
"0.55492616",
"0.5532413",
"0.54915434",
"0.54915434",
"0.54562694",
"0.54386383",
"0.5433862",
"0.54206777",
"0.5414929",
"0.5367946",
"0.5354777",
"0.53223... | 0.6829605 | 1 |
Fetch the list of transcriptions for an account or call. | def get(self, CallSid=None, DateCreated=None, DateCreatedGT=None,
DateCreatedLT=None, Page=None, PageSize=None, AfterSid=None):
params = resource.get_params(None, locals())
request = http.Request('GET', self.get_url(), params)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transcriptions(self):\r\n return recordings.Transcriptions(self)",
"def subscriptions(self):\r\n return subs.AccountSubscriptions(self)",
"def query_accounts(self):\n return self._call_txtrader_api('query_accounts', {})",
"def getAllSubscriptions(self):\n return self.request(\... | [
"0.6815294",
"0.6579181",
"0.6554846",
"0.649452",
"0.63904464",
"0.6373254",
"0.63363737",
"0.63038397",
"0.6245856",
"0.6233953",
"0.6190501",
"0.616183",
"0.60744774",
"0.5977976",
"0.5932061",
"0.58430946",
"0.58301294",
"0.581357",
"0.5812477",
"0.5811506",
"0.57921124",... | 0.0 | -1 |
Return the representation of an Account or SubAccount. | def account(self, sid):
return accounts.Account(self, sid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account(self, account_id):\r\n return resources.Account(self, account_id)",
"def account(self, account_code):\r\n return acc.Account(self, account_code)",
"def account(self):\n return Account(self)",
"def account(self):\r\n return Account(self)",
"def to_representation(self,... | [
"0.6601515",
"0.6337376",
"0.6280336",
"0.6220046",
"0.62023866",
"0.6126081",
"0.6113254",
"0.58139014",
"0.5807296",
"0.58052355",
"0.57907903",
"0.57645214",
"0.5762134",
"0.5756308",
"0.57545376",
"0.5747356",
"0.5713032",
"0.5707828",
"0.5693903",
"0.56699544",
"0.566689... | 0.58561975 | 7 |
Fetch the list of short codes for an account. | def get(self, ShortCode=None, FriendlyName=None,
Page=None, PageSize=None, AfterSid=None):
params = resource.get_params(None, locals())
request = http.Request('GET', self.get_url(), params)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_short_code_stats():\n return rh.get_short_code_stats(request)",
"def short_codes(self):\r\n return ShortCodes(self)",
"def get_short_code():\n return rh.get_short_code(request)",
"def get_short_currencies_names():\n short_names = [[x, cur_dict[x][1]] for x in cur_dict]\n re... | [
"0.64410114",
"0.5948188",
"0.5765666",
"0.559726",
"0.5374711",
"0.53661543",
"0.53566295",
"0.5222402",
"0.5222402",
"0.51788604",
"0.516076",
"0.5158573",
"0.51580346",
"0.5153744",
"0.5152017",
"0.5103542",
"0.50182986",
"0.49918157",
"0.4976895",
"0.49562365",
"0.4950728... | 0.4718278 | 33 |
Return a ShortCode resource representation, representing a short code within this account. | def short_code(self, sid):
return ShortCode(self, sid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_short_code():\n return rh.get_short_code(request)",
"def short_codes(self):\r\n return ShortCodes(self)",
"def to_short_string(self):\n return f'{self.name} - {self.resource_type}'",
"def getShortName(self) -> str:\n return self.short_name",
"def short_name(self):\n r... | [
"0.709281",
"0.7010221",
"0.6468302",
"0.6237646",
"0.6101673",
"0.59947944",
"0.5946449",
"0.5935559",
"0.5930111",
"0.5758271",
"0.5722493",
"0.56827974",
"0.5676695",
"0.5668742",
"0.56657785",
"0.56657785",
"0.56657785",
"0.56657785",
"0.56657785",
"0.56657785",
"0.566577... | 0.7520117 | 0 |
Return multiple usage records for each usage category, each representing usage over a yearly timeinterval. | def yearly(self):
return RecordsYearly(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_this_year_stat(cls):\n year = dt.date.today().year\n stat = []\n for item in Item.objects.all():\n duration_sum = sum(cls.objects.filter(item=item).filter(\n time__year=year).values_list('duration', flat=True))\n # drop item whoes duration_sum i... | [
"0.5697391",
"0.55807483",
"0.54135716",
"0.5404515",
"0.53542763",
"0.5310282",
"0.5303087",
"0.5283248",
"0.52699447",
"0.5212913",
"0.5181297",
"0.5177674",
"0.51563054",
"0.5153314",
"0.5081425",
"0.505911",
"0.50564486",
"0.49952403",
"0.4995231",
"0.49883223",
"0.494384... | 0.475229 | 41 |
Return a list of usage triggers set on this account. | def triggers(self):
return Triggers(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_triggers(self, table_name=None):\n if not table_name:\n table_name = self.name\n\n triggers = self.execute(self.commands.get_triggers(self.db.name, table_name))\n return [x[0] for x in triggers]",
"def triggers(self) -> pulumi.Output[Optional[Mapping[str, str]]]:\n ... | [
"0.6390115",
"0.6300748",
"0.6181421",
"0.6032892",
"0.6032892",
"0.5839238",
"0.5823413",
"0.57988596",
"0.57137644",
"0.5564016",
"0.55524576",
"0.5531238",
"0.54527235",
"0.5430462",
"0.52811676",
"0.51811767",
"0.51202834",
"0.5046408",
"0.5046408",
"0.49950087",
"0.49168... | 0.61680126 | 3 |
Return an usage trigger set on this account. | def trigger(self, sid):
return Trigger(self, sid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getUseValuesFromTriggerTime(self):\n return _libsbml.Event_getUseValuesFromTriggerTime(self)",
"def triggers(self):\r\n return Triggers(self)",
"def trigger(self):\n index = self._ordered_input_names.index('trigger')\n return self._inputs[index]",
"def frequency_trigger(self):... | [
"0.55246204",
"0.5376687",
"0.52279264",
"0.5178762",
"0.50629437",
"0.50337714",
"0.5015423",
"0.5015404",
"0.4952651",
"0.49436677",
"0.49436677",
"0.49381763",
"0.48984218",
"0.48805693",
"0.4870615",
"0.48600835",
"0.4852071",
"0.48068815",
"0.47918013",
"0.47865456",
"0.... | 0.0 | -1 |
Fetch comments from this user. | def get(self, page=None, per_page=None, filter=None, sort=None):
params = base.get_params(None, locals())
request = http.Request('GET', self.get_url(), params)
return request, parsers.parse_json | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def comments(self):\r\n return comments.UserComments(self)",
"def get_comments(self):\n\t\treturn self._client.get_comments(self)",
"def fetch_comment(self, comment_id, **args):\n return self.fetch(\"/comment/\" + comment_id, **args)",
"def all_user_comments(username):\n return commentslist"... | [
"0.71072656",
"0.69039035",
"0.68884176",
"0.68337446",
"0.6790327",
"0.65666366",
"0.6556634",
"0.6548472",
"0.6491756",
"0.6489634",
"0.64505917",
"0.6349408",
"0.6316671",
"0.62155616",
"0.62092125",
"0.62049437",
"0.6146139",
"0.61304915",
"0.6108547",
"0.6097293",
"0.608... | 0.0 | -1 |
Return the resource corresponding to all the support queues. | def support_queues(self):
return support_queues.SupportQueues(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def support_queues(self):\n return support_queues.SupportQueues(self)",
"def _get_queues(self):\n return self.__queues",
"def _get_queues(self):\n return self.__queues",
"def _get_queues(self):\n return self.__queues",
"def _get_queues(self):\n return self.__queues",
"def _get_queues(s... | [
"0.73946834",
"0.6741674",
"0.6741674",
"0.6741674",
"0.6741674",
"0.6741674",
"0.6741674",
"0.6741674",
"0.6741674",
"0.6741674",
"0.66001564",
"0.6442839",
"0.63554645",
"0.63447565",
"0.62543947",
"0.6226701",
"0.6211482",
"0.61988103",
"0.6141937",
"0.6063048",
"0.5991709... | 0.7525037 | 0 |
Return the resource corresponding to a UserVoice subdomain. | def subdomain(self, subdomain):
return subdomains.Subdomain(self, subdomain) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def fetch_subdomain(self, subdomain: str):\n value = await self.http.check_subdomain(subdomain)\n if (value or {}).get('exists') is True:\n # currently this endpoint returns {} if the subdomain does not\n # exist, but just in case it eventually returns 204 or something,\n ... | [
"0.6071135",
"0.59983885",
"0.5925243",
"0.5894778",
"0.5831165",
"0.5815013",
"0.5686056",
"0.56554943",
"0.56464046",
"0.5641134",
"0.5558",
"0.5535394",
"0.5499313",
"0.5430878",
"0.5391436",
"0.53455603",
"0.5315503",
"0.52796054",
"0.52599305",
"0.52186024",
"0.52186024"... | 0.61574084 | 0 |
Return the resource corresponding a single topic. | def topic(self, topic_id):
return topics.Topic(self, topic_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_by_topic(cls, topic):\n\t\treturn cls.get_by_key_name(get_hash_key_name(topic))",
"def topic(self, topic_id):\r\n return contents.Topic(self, topic_id)",
"def get(cls, topic_info):\n try: #to treat topic info as topic.id\n return Topic.query.get(int(topic_info))\n except... | [
"0.77936524",
"0.76120025",
"0.74751496",
"0.74251604",
"0.7414128",
"0.7413474",
"0.7396459",
"0.7221562",
"0.7073522",
"0.70233667",
"0.7011321",
"0.6974128",
"0.6852488",
"0.68186575",
"0.6699024",
"0.6636869",
"0.6583493",
"0.65284437",
"0.64648676",
"0.64530957",
"0.6440... | 0.76671416 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.