query stringlengths 9 9.05k | document stringlengths 10 222k | metadata dict | negatives listlengths 30 30 | negative_scores listlengths 30 30 | document_score stringlengths 4 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|
Gets the dhl_account_number of this Customer. DHL account number | def dhl_account_number(self):
return self._dhl_account_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_number(self):\n return self.__account_number",
"def fedex_account_number(self):\n return self._fedex_account_number",
"def account_id(self) -> pulumi.Output[int]:\n return pulumi.get(self, \"account_id\")",
"def account_id(self):\n return self._account_id",
"def acco... | [
"0.7401053",
"0.7113728",
"0.6644579",
"0.66252136",
"0.65284073",
"0.64544874",
"0.6369937",
"0.6369937",
"0.6369937",
"0.6369937",
"0.6369937",
"0.6369937",
"0.6369937",
"0.6369937",
"0.6347585",
"0.6347585",
"0.6347585",
"0.6261331",
"0.6258378",
"0.61720884",
"0.614197",
... | 0.87155145 | 0 |
Sets the dhl_account_number of this Customer. DHL account number | def dhl_account_number(self, dhl_account_number):
if dhl_account_number is not None and len(dhl_account_number) > 20:
raise ValueError("Invalid value for `dhl_account_number`, length must be less than or equal to `20`")
self._dhl_account_number = dhl_account_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_number(self, account_number):\n\n self._account_number = account_number",
"def dhl_account_number(self):\n return self._dhl_account_number",
"def account_id(self, account_id):\n self._account_id = account_id",
"def account_id(self, account_id):\n\n self._account_id = a... | [
"0.7060354",
"0.6705006",
"0.6658462",
"0.6630897",
"0.6630897",
"0.6630897",
"0.6630897",
"0.6630897",
"0.6630897",
"0.6452872",
"0.62505466",
"0.6250299",
"0.6205293",
"0.6181864",
"0.6048758",
"0.59952277",
"0.5972092",
"0.5875164",
"0.5875164",
"0.5654062",
"0.56170523",
... | 0.79253507 | 0 |
Gets the exempt_shipping_handling_charge of this Customer. Exempt shipping handling charge | def exempt_shipping_handling_charge(self):
return self._exempt_shipping_handling_charge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def exempt_shipping_handling_charge(self, exempt_shipping_handling_charge):\n\n self._exempt_shipping_handling_charge = exempt_shipping_handling_charge",
"def free_shipping(self):\n return self._free_shipping",
"def shipping(self):\n return self._shipping",
"def no_free_shipping(self):\n... | [
"0.77267236",
"0.604075",
"0.58197254",
"0.57920736",
"0.55682796",
"0.5441815",
"0.5383163",
"0.51727533",
"0.512057",
"0.5114849",
"0.50728697",
"0.5069911",
"0.49859795",
"0.49859795",
"0.49859795",
"0.49800357",
"0.49667436",
"0.48684055",
"0.4787322",
"0.46924272",
"0.46... | 0.8105245 | 0 |
Sets the exempt_shipping_handling_charge of this Customer. Exempt shipping handling charge | def exempt_shipping_handling_charge(self, exempt_shipping_handling_charge):
self._exempt_shipping_handling_charge = exempt_shipping_handling_charge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def exempt_shipping_handling_charge(self):\n return self._exempt_shipping_handling_charge",
"def no_free_shipping(self, no_free_shipping):\n\n self._no_free_shipping = no_free_shipping",
"def tax_exempt(self, tax_exempt):\n\n self._tax_exempt = tax_exempt",
"def free_shipping(self, free_... | [
"0.79578286",
"0.54807913",
"0.5474637",
"0.54365635",
"0.5346015",
"0.5248646",
"0.47101182",
"0.46609193",
"0.46326584",
"0.46292448",
"0.45893466",
"0.45323163",
"0.45199633",
"0.44818446",
"0.44588333",
"0.44529906",
"0.4424894",
"0.4367088",
"0.434525",
"0.43007925",
"0.... | 0.87965477 | 0 |
Gets the fedex_account_number of this Customer. FedEx account number | def fedex_account_number(self):
return self._fedex_account_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_number(self):\n return self.__account_number",
"def dhl_account_number(self):\n return self._dhl_account_number",
"def fax_number(self) -> str:\n return self._fax_number",
"def fedex_account_number(self, fedex_account_number):\n if fedex_account_number is not None and ... | [
"0.74003214",
"0.71416545",
"0.6356235",
"0.63208187",
"0.6290778",
"0.62107015",
"0.6193884",
"0.6193884",
"0.6128988",
"0.6084942",
"0.6035027",
"0.60067254",
"0.5984775",
"0.59829587",
"0.59829587",
"0.59829587",
"0.59829587",
"0.59829587",
"0.59829587",
"0.59829587",
"0.5... | 0.89876455 | 0 |
Sets the fedex_account_number of this Customer. FedEx account number | def fedex_account_number(self, fedex_account_number):
if fedex_account_number is not None and len(fedex_account_number) > 20:
raise ValueError("Invalid value for `fedex_account_number`, length must be less than or equal to `20`")
self._fedex_account_number = fedex_account_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_number(self, account_number):\n\n self._account_number = account_number",
"def funding_account_account_number(self, funding_account_account_number):\n\n self._funding_account_account_number = funding_account_account_number",
"def set_AccountNumber(self, value):\n super(AddressV... | [
"0.74573594",
"0.7229201",
"0.71216977",
"0.70944804",
"0.6651318",
"0.6646043",
"0.65071005",
"0.6290016",
"0.6272736",
"0.6272736",
"0.6272736",
"0.6272736",
"0.6272736",
"0.6272736",
"0.6218557",
"0.6111127",
"0.6037672",
"0.6011316",
"0.6011316",
"0.6010286",
"0.60044",
... | 0.813925 | 0 |
Gets the free_shipping of this Customer. This customer always receives free shipping | def free_shipping(self):
return self._free_shipping | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def no_free_shipping(self):\n return self._no_free_shipping",
"def shipping(self):\n return self._shipping",
"def free_shipping_minimum(self):\n return self._free_shipping_minimum",
"def free_shipping(self, free_shipping):\n\n self._free_shipping = free_shipping",
"def default_s... | [
"0.7669286",
"0.741889",
"0.71900266",
"0.70521456",
"0.67583835",
"0.6373855",
"0.6373855",
"0.6373855",
"0.61251867",
"0.60634303",
"0.60438746",
"0.5983843",
"0.5968113",
"0.5928866",
"0.5830658",
"0.5830658",
"0.5830658",
"0.5739227",
"0.56944793",
"0.5381744",
"0.5336955... | 0.8760745 | 0 |
Sets the free_shipping of this Customer. This customer always receives free shipping | def free_shipping(self, free_shipping):
self._free_shipping = free_shipping | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def no_free_shipping(self, no_free_shipping):\n\n self._no_free_shipping = no_free_shipping",
"def free_shipping_minimum(self, free_shipping_minimum):\n\n self._free_shipping_minimum = free_shipping_minimum",
"def free_shipping(self):\n return self._free_shipping",
"def shipping(self, sh... | [
"0.76049024",
"0.74291825",
"0.7088798",
"0.69693017",
"0.6842088",
"0.64798516",
"0.6400927",
"0.6377615",
"0.60017496",
"0.5938942",
"0.58684",
"0.57832587",
"0.5568632",
"0.5559777",
"0.551827",
"0.5496339",
"0.548488",
"0.53332",
"0.5299109",
"0.5283655",
"0.5253552",
"... | 0.8968495 | 0 |
Gets the free_shipping_minimum of this Customer. If free_shipping is true, this is the minimum subtotal required for free shipping | def free_shipping_minimum(self):
return self._free_shipping_minimum | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def free_shipping_minimum(self, free_shipping_minimum):\n\n self._free_shipping_minimum = free_shipping_minimum",
"def free_shipping(self):\n return self._free_shipping",
"def minimum_subtotal(self):\n return self._minimum_subtotal",
"def get_cost_min(self) -> float:\n\n return mi... | [
"0.71919805",
"0.65706813",
"0.62824637",
"0.61553365",
"0.6098792",
"0.6017739",
"0.5893278",
"0.5801281",
"0.5801281",
"0.5801281",
"0.5702375",
"0.5702375",
"0.56869984",
"0.56866705",
"0.563594",
"0.5615321",
"0.56026393",
"0.5598942",
"0.5598942",
"0.55741274",
"0.557122... | 0.859469 | 0 |
Sets the free_shipping_minimum of this Customer. If free_shipping is true, this is the minimum subtotal required for free shipping | def free_shipping_minimum(self, free_shipping_minimum):
self._free_shipping_minimum = free_shipping_minimum | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def free_shipping_minimum(self):\n return self._free_shipping_minimum",
"def free_shipping(self, free_shipping):\n\n self._free_shipping = free_shipping",
"def minimum_subtotal(self, minimum_subtotal):\n\n self._minimum_subtotal = minimum_subtotal",
"def userMinimum(self, new_min: float)... | [
"0.77676463",
"0.6570098",
"0.62843555",
"0.57924306",
"0.57408816",
"0.56441414",
"0.55142075",
"0.55142075",
"0.55142075",
"0.5502578",
"0.55017036",
"0.54843414",
"0.5362469",
"0.5362469",
"0.5357235",
"0.532357",
"0.53184587",
"0.52887356",
"0.52453333",
"0.5228891",
"0.5... | 0.87866485 | 0 |
Gets the last_modified_by of this Customer. Last modified by | def last_modified_by(self):
return self._last_modified_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def last_modified_by(self) -> str:\n return pulumi.get(self, \"last_modified_by\")",
"def last_modified_by(self) -> Optional[str]:\n return pulumi.get(self, \"last_modified_by\")",
"def last_modified_by(self) -> Optional[str]:\n return pulumi.get(self, \"last_modified_by\")",
"def last_m... | [
"0.8235685",
"0.8017792",
"0.8017792",
"0.8017792",
"0.8017792",
"0.8017792",
"0.8017792",
"0.7639493",
"0.70534116",
"0.6773382",
"0.67333853",
"0.67116463",
"0.67116463",
"0.67065734",
"0.67065734",
"0.67065734",
"0.66933197",
"0.66126966",
"0.66126966",
"0.66126966",
"0.66... | 0.83475846 | 0 |
Gets the last_modified_dts of this Customer. Last modified date | def last_modified_dts(self):
return self._last_modified_dts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_last_modified_date(self):\n\t\treturn call_sdk_function('PrlFsEntry_GetLastModifiedDate', self.handle)",
"def get_last_modified_date(self):\n\t\treturn call_sdk_function('PrlVmCfg_GetLastModifiedDate', self.handle)",
"def last_modified_at(self) -> str:\n return pulumi.get(self, \"last_modified_a... | [
"0.7564961",
"0.7495933",
"0.73171884",
"0.73171884",
"0.7189637",
"0.7161535",
"0.70893425",
"0.7067707",
"0.7067707",
"0.7011993",
"0.6945741",
"0.6910463",
"0.6874725",
"0.6874725",
"0.6874725",
"0.6874725",
"0.6874725",
"0.6874725",
"0.6866116",
"0.68349165",
"0.6806009",... | 0.8121938 | 0 |
Sets the last_modified_dts of this Customer. Last modified date | def last_modified_dts(self, last_modified_dts):
self._last_modified_dts = last_modified_dts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def last_modified(self, last_modified):\n\n self._last_modified = last_modified",
"def date_modified(self, date_modified):\n \n self._date_modified = date_modified",
"def date_modified(self, date_modified):\n\n self._date_modified = date_modified",
"def date_modified(self, date_mo... | [
"0.71956384",
"0.7025476",
"0.6965218",
"0.6965218",
"0.6965218",
"0.6965218",
"0.6965218",
"0.6965218",
"0.6965218",
"0.68216956",
"0.68216956",
"0.68107176",
"0.6682766",
"0.6682766",
"0.64306533",
"0.64306533",
"0.63529325",
"0.62970275",
"0.62530446",
"0.6242043",
"0.6242... | 0.8148576 | 0 |
Gets the maximum_item_count of this Customer. Maximum item count | def maximum_item_count(self):
return self._maximum_item_count | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maximum_count(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"maximum_count\")",
"def max_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"max_count\")",
"def max_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"max_count\")",
"de... | [
"0.75995594",
"0.7265897",
"0.7265897",
"0.7265897",
"0.7265897",
"0.7265897",
"0.7142318",
"0.6973748",
"0.6787457",
"0.67863685",
"0.6613611",
"0.65463185",
"0.6467402",
"0.64218104",
"0.63996893",
"0.6346469",
"0.6316261",
"0.6314151",
"0.6259814",
"0.6258982",
"0.6200801"... | 0.845394 | 0 |
Sets the maximum_item_count of this Customer. Maximum item count | def maximum_item_count(self, maximum_item_count):
self._maximum_item_count = maximum_item_count | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maximum_item_count(self):\n return self._maximum_item_count",
"def set_max_order_count(self, max_count, on_error='fail'):\n control = MaxOrderCount(on_error, max_count)\n self.register_trading_control(control)",
"def test_maximum_items(self):\n total = 4711\n self.es.set_... | [
"0.7334156",
"0.70443636",
"0.6796199",
"0.67268306",
"0.655104",
"0.655104",
"0.64147395",
"0.6372613",
"0.63654196",
"0.634501",
"0.6318012",
"0.6311085",
"0.62831736",
"0.62468594",
"0.62468594",
"0.62468594",
"0.6206086",
"0.61387783",
"0.61294806",
"0.6127082",
"0.610306... | 0.872912 | 0 |
Gets the minimum_item_count of this Customer. Minimum item count | def minimum_item_count(self):
return self._minimum_item_count | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def minimum_count(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"minimum_count\")",
"def min_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"min_count\")",
"def min_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"min_count\")",
"de... | [
"0.7816407",
"0.7625865",
"0.7625865",
"0.7625865",
"0.7625865",
"0.7296524",
"0.72911197",
"0.72911197",
"0.69191253",
"0.68725276",
"0.67676115",
"0.6743445",
"0.6742978",
"0.6685081",
"0.66655296",
"0.64354056",
"0.64217025",
"0.6236613",
"0.620296",
"0.6189136",
"0.611279... | 0.85860914 | 0 |
Sets the minimum_item_count of this Customer. Minimum item count | def minimum_item_count(self, minimum_item_count):
self._minimum_item_count = minimum_item_count | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setMinCount(self, count):\n return self._set(minCount=count)",
"def setMinCount(self, minCount):\n return self._set(minCount=minCount)",
"def setMinCount(self, minCount):\n return self._set(minCount=minCount)",
"def minimum_item_count(self):\n return self._minimum_item_count",... | [
"0.7642084",
"0.74678373",
"0.74678373",
"0.743934",
"0.6563707",
"0.64136785",
"0.6410881",
"0.6410881",
"0.63819873",
"0.62920946",
"0.6269155",
"0.6251639",
"0.62381595",
"0.6220323",
"0.6220323",
"0.6220323",
"0.616319",
"0.6150114",
"0.61369026",
"0.61369026",
"0.6056168... | 0.88710034 | 0 |
Gets the minimum_subtotal of this Customer. Minimum subtotal | def minimum_subtotal(self):
return self._minimum_subtotal | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def minimum_subtotal(self, minimum_subtotal):\n\n self._minimum_subtotal = minimum_subtotal",
"def min_qty(self):\n return self._min_qty",
"def min_sale_qty(self):\n return self._min_sale_qty",
"def _get_minimum(self):\n return self._minimum",
"def min(self):\n return sel... | [
"0.762988",
"0.63574404",
"0.62578213",
"0.6119958",
"0.609414",
"0.6035749",
"0.6033182",
"0.5990075",
"0.59808767",
"0.59447646",
"0.593769",
"0.5923251",
"0.5911233",
"0.5893297",
"0.5893297",
"0.58926266",
"0.5891071",
"0.5867106",
"0.5867106",
"0.58617187",
"0.5806587",
... | 0.8682387 | 0 |
Sets the minimum_subtotal of this Customer. Minimum subtotal | def minimum_subtotal(self, minimum_subtotal):
self._minimum_subtotal = minimum_subtotal | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def minimum_subtotal(self):\n return self._minimum_subtotal",
"def min_value(self, min_value):\n\n self._min_value = min_value",
"def min_value(self, min_value):\n\n self._min_value = min_value",
"def min_value(self, min_value):\n\n self._min_value = min_value",
"def min_sale_qt... | [
"0.75220066",
"0.6253324",
"0.6253324",
"0.6253324",
"0.62453973",
"0.619761",
"0.6030935",
"0.59983313",
"0.5970749",
"0.59042466",
"0.59042466",
"0.59038216",
"0.59038216",
"0.58876675",
"0.58567154",
"0.5769353",
"0.56948346",
"0.5668504",
"0.5617014",
"0.5616412",
"0.5605... | 0.91217035 | 0 |
Gets the no_coupons of this Customer. No coupons | def no_coupons(self):
return self._no_coupons | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def no_coupons(self, no_coupons):\n\n self._no_coupons = no_coupons",
"def get_customer_count(self):\n return self._df_invoice_original.CustomerID.unique().shape[0]",
"def count_codon_all(self):\n return Counter(list(self))",
"def coupons(self):\r\n return coup.Coupons(self)",
"de... | [
"0.6109418",
"0.6065169",
"0.600353",
"0.5981188",
"0.59681046",
"0.58282405",
"0.58179194",
"0.5759666",
"0.5717092",
"0.56691134",
"0.5622092",
"0.55998003",
"0.559923",
"0.55969113",
"0.5569218",
"0.5562735",
"0.5544317",
"0.5513898",
"0.5458888",
"0.5443288",
"0.5426624",... | 0.76301444 | 0 |
Sets the no_coupons of this Customer. No coupons | def no_coupons(self, no_coupons):
self._no_coupons = no_coupons | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def no_coupons(self):\n return self._no_coupons",
"def nic_num_not(self, nic_num_not):\n\n self._nic_num_not = nic_num_not",
"def nics_none(self, nics_none):\n\n self._nics_none = nics_none",
"def setNoCheckout(self) -> None:\n ...",
"def _setbeneficiary_customer_no_option_59(se... | [
"0.6798268",
"0.56734955",
"0.5639737",
"0.56070703",
"0.5552857",
"0.5457696",
"0.543087",
"0.5282103",
"0.5178031",
"0.5104693",
"0.50901735",
"0.504551",
"0.498055",
"0.49425092",
"0.4910478",
"0.4806957",
"0.47794423",
"0.47633263",
"0.47601724",
"0.47454318",
"0.47357714... | 0.8192381 | 0 |
Gets the no_free_shipping of this Customer. No free shipping regardless of coupons or item level settings | def no_free_shipping(self):
return self._no_free_shipping | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def free_shipping(self):\n return self._free_shipping",
"def no_free_shipping(self, no_free_shipping):\n\n self._no_free_shipping = no_free_shipping",
"def free_shipping_minimum(self):\n return self._free_shipping_minimum",
"def default_shipping(self):\n return self._default_shipp... | [
"0.7665522",
"0.73656595",
"0.65133053",
"0.63646",
"0.6226598",
"0.600938",
"0.59900576",
"0.54750156",
"0.525845",
"0.52528745",
"0.51764166",
"0.51730335",
"0.51652545",
"0.51652545",
"0.5153403",
"0.50550425",
"0.50550425",
"0.5038398",
"0.501665",
"0.49576914",
"0.491602... | 0.8383063 | 0 |
Sets the no_free_shipping of this Customer. No free shipping regardless of coupons or item level settings | def no_free_shipping(self, no_free_shipping):
self._no_free_shipping = no_free_shipping | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def no_free_shipping(self):\n return self._no_free_shipping",
"def free_shipping(self, free_shipping):\n\n self._free_shipping = free_shipping",
"def free_shipping_minimum(self, free_shipping_minimum):\n\n self._free_shipping_minimum = free_shipping_minimum",
"def free_shipping(self):\n ... | [
"0.75381494",
"0.74738586",
"0.63112646",
"0.61747354",
"0.5913663",
"0.5770146",
"0.5701682",
"0.56672084",
"0.5556342",
"0.5526695",
"0.5499904",
"0.54952276",
"0.5378432",
"0.53305084",
"0.53238916",
"0.5291304",
"0.5207163",
"0.5204481",
"0.5157471",
"0.51471645",
"0.5108... | 0.8749064 | 0 |
Gets the no_realtime_charge of this Customer. No realtime charge | def no_realtime_charge(self):
return self._no_realtime_charge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def no_realtime_charge(self, no_realtime_charge):\n\n self._no_realtime_charge = no_realtime_charge",
"def discharge(self):\n return self._discharge",
"def get_charge(self):\n return -self.get_len() - 1",
"def get_charge(self):\n return -self.get_len() - 1",
"def get_clean_disch... | [
"0.7128551",
"0.6316817",
"0.57792705",
"0.57792705",
"0.5406074",
"0.53573275",
"0.5354885",
"0.53468347",
"0.5264393",
"0.5264393",
"0.51890665",
"0.5186896",
"0.51187587",
"0.5111241",
"0.5102094",
"0.50567853",
"0.50410247",
"0.50095206",
"0.5004826",
"0.5002992",
"0.4996... | 0.80350363 | 0 |
Sets the no_realtime_charge of this Customer. No realtime charge | def no_realtime_charge(self, no_realtime_charge):
self._no_realtime_charge = no_realtime_charge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def no_realtime_charge(self):\n return self._no_realtime_charge",
"def discharge(self, discharge):\n\n self._discharge = discharge",
"def nics_none(self, nics_none):\n\n self._nics_none = nics_none",
"def no_data_value(self, no_data_value):\n\n self._no_data_value = no_data_value"... | [
"0.7137746",
"0.5783357",
"0.5645974",
"0.5622024",
"0.56196016",
"0.55476874",
"0.54859304",
"0.5387572",
"0.53597784",
"0.5171517",
"0.51327986",
"0.5120568",
"0.5117239",
"0.5086328",
"0.50426686",
"0.5030067",
"0.4928249",
"0.4926255",
"0.49086693",
"0.4908434",
"0.486687... | 0.8610736 | 0 |
Sets the orders of this Customer. Orders associated with this customer profile | def orders(self, orders):
self._orders = orders | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def on_orders_replaced(self, orders: List[MetatraderOrder]):\n self._orders = orders",
"def setOrder(self, order):\n\t\tself.orderInData = order",
"def set_order(self, order):\n self.order = order",
"def set_order(self, order):\n self.order = order",
"def affected_orders(self, af... | [
"0.6170456",
"0.60221905",
"0.6002594",
"0.6002594",
"0.59244764",
"0.5896776",
"0.5889775",
"0.57909524",
"0.57447034",
"0.57447034",
"0.57447034",
"0.5681902",
"0.5602448",
"0.55998385",
"0.5557742",
"0.5378232",
"0.53428847",
"0.53143555",
"0.53033465",
"0.5286973",
"0.526... | 0.7560337 | 1 |
Gets the orders_summary of this Customer. | def orders_summary(self):
return self._orders_summary | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def orders_summary(self, orders_summary):\n\n self._orders_summary = orders_summary",
"def quotes_summary(self):\n return self._quotes_summary",
"def getSummary(self):\n return self.summary",
"def get_account_summary(self):\r\n return self.get_object('GetAccountSummary', {}, Summa... | [
"0.6225125",
"0.5852523",
"0.5819513",
"0.57730734",
"0.5728029",
"0.5728029",
"0.5728029",
"0.5728029",
"0.5728029",
"0.5728029",
"0.5728029",
"0.56985295",
"0.5676982",
"0.5664539",
"0.56380343",
"0.56321746",
"0.5554446",
"0.5535171",
"0.5526277",
"0.54887295",
"0.5462971"... | 0.82815146 | 0 |
Sets the orders_summary of this Customer. | def orders_summary(self, orders_summary):
self._orders_summary = orders_summary | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quotes_summary(self, quotes_summary):\n\n self._quotes_summary = quotes_summary",
"def summary(self, summary):\n\n self._summary = summary",
"def summary(self, summary):\n\n self._summary = summary",
"def summary(self, summary):\n\n self._summary = summary",
"def orders_summ... | [
"0.66567683",
"0.61575073",
"0.61575073",
"0.61575073",
"0.6099802",
"0.5881713",
"0.5597297",
"0.53620267",
"0.53620267",
"0.5239325",
"0.51814634",
"0.5160761",
"0.51317596",
"0.5048169",
"0.49100584",
"0.48744413",
"0.4751181",
"0.47366503",
"0.47317258",
"0.46597114",
"0.... | 0.8527585 | 0 |
Gets the pricing_tiers of this Customer. Pricing tiers for this customer | def pricing_tiers(self):
return self._pricing_tiers | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pricing_tiers(self, pricing_tiers):\n\n self._pricing_tiers = pricing_tiers",
"def pricing(self):\n if self._pricing is None:\n self._pricing = Pricing(self)\n return self._pricing",
"def tiers(self):\n return Parent.objects.filter(\n name=self.name,\n ... | [
"0.6651722",
"0.61460286",
"0.61395335",
"0.5960401",
"0.58841896",
"0.57348555",
"0.5522765",
"0.5416581",
"0.53195536",
"0.53066117",
"0.52134603",
"0.5183166",
"0.5155178",
"0.5063668",
"0.5020369",
"0.49620152",
"0.49620152",
"0.49620152",
"0.49557093",
"0.49557093",
"0.4... | 0.84360576 | 0 |
Sets the pricing_tiers of this Customer. Pricing tiers for this customer | def pricing_tiers(self, pricing_tiers):
self._pricing_tiers = pricing_tiers | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pricing_tiers(self):\n return self._pricing_tiers",
"def export_tier_prices_to_magento(self):\n instance = self.website.instance\n\n for mag_product_template in self.website.magento_product_templates:\n product_template = mag_product_template.template\n product = pr... | [
"0.68516016",
"0.5513592",
"0.5450849",
"0.5375545",
"0.52523065",
"0.520618",
"0.50939506",
"0.5035833",
"0.50312066",
"0.501278",
"0.49883044",
"0.49298832",
"0.4861244",
"0.48602608",
"0.48424968",
"0.48408434",
"0.48185816",
"0.48037457",
"0.4803392",
"0.47980636",
"0.478... | 0.86758703 | 0 |
Gets the qb_class of this Customer. QuickBooks class to import this customer as | def qb_class(self):
return self._qb_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_query_builder_class(self):\n assert self.query_builder_class is not None, (\n \"'%s' should either include a `query_builder_class` attribute, \"\n \"or override the `get_query_builder_class()` method.\" % self.__class__.__name__\n )\n return self.query_builder_cla... | [
"0.61396956",
"0.5806494",
"0.57493824",
"0.5713907",
"0.5713612",
"0.5540221",
"0.5487067",
"0.5426593",
"0.5388942",
"0.5372061",
"0.5346787",
"0.533198",
"0.5316744",
"0.5269363",
"0.5269363",
"0.51829964",
"0.5177156",
"0.51753557",
"0.51194644",
"0.5113043",
"0.5076741",... | 0.7880745 | 0 |
Sets the qb_class of this Customer. QuickBooks class to import this customer as | def qb_class(self, qb_class):
self._qb_class = qb_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qb_class(self):\n return self._qb_class",
"def set_schema_class(self, schema):\n self.schema_class = schema",
"def set_bucket_class(self, bucket_class):\r\n self.bucket_class = bucket_class",
"def _class(self, _class):\n\n self.__class = _class",
"def _class(self, _class):\n... | [
"0.6828948",
"0.6023601",
"0.5749726",
"0.5335535",
"0.5335535",
"0.52978593",
"0.5121383",
"0.49000156",
"0.48305717",
"0.48302957",
"0.48302957",
"0.4722899",
"0.46998164",
"0.46932557",
"0.4653209",
"0.4643532",
"0.4643203",
"0.4643203",
"0.46361798",
"0.4593775",
"0.45887... | 0.7900194 | 0 |
Gets the qb_code of this Customer. QuickBooks name to import this customer as | def qb_code(self):
return self._qb_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def customer_name(self):\n return self._customer_name",
"def get_asx_code(self):\n # Connect to the database and return cursor\n database = DatabaseMySQL()\n\n # Query database.\n sql = \"Select short_name from companies where id =\" + str(self.company_id)\n df = databas... | [
"0.6488982",
"0.607789",
"0.60215694",
"0.57430094",
"0.55977136",
"0.5554987",
"0.5529009",
"0.5529009",
"0.55076325",
"0.54610777",
"0.54610777",
"0.54303706",
"0.54169154",
"0.54012626",
"0.5359292",
"0.535751",
"0.535751",
"0.5312546",
"0.53049797",
"0.53049797",
"0.53049... | 0.71089536 | 0 |
Sets the qb_code of this Customer. QuickBooks name to import this customer as | def qb_code(self, qb_code):
self._qb_code = qb_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qb_code(self):\n return self._qb_code",
"def customer_name(self, customer_name):\n self._customer_name = customer_name",
"def set_vendor_name(self, vendor_name_prefix):\n global vendor_name\n self.vendor_unique_id = self.random_string_generator(6)\n vendor_name = vendor_n... | [
"0.61895883",
"0.5890012",
"0.57990825",
"0.56052274",
"0.55832756",
"0.5481956",
"0.5417983",
"0.54019964",
"0.53624874",
"0.5277678",
"0.52601445",
"0.52298826",
"0.52298826",
"0.52252555",
"0.5164064",
"0.5092281",
"0.5086345",
"0.5085653",
"0.5085653",
"0.50834346",
"0.50... | 0.7676602 | 0 |
Gets the quotes of this Customer. Quotes associated with this customer profile | def quotes(self):
return self._quotes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_quotes(self) -> dict:\n return get(self.link).json()",
"def get_all_quotes(self) -> List[Quote]:\n query = '''\n SELECT *\n FROM quotes\n ORDER BY created_at DESC\n '''\n\n ret = self.__execute_query(query)\n\n return self.__build_quotes... | [
"0.6481341",
"0.60692996",
"0.59913635",
"0.5960073",
"0.59276193",
"0.58264714",
"0.5769427",
"0.57567483",
"0.56599224",
"0.5654448",
"0.5609809",
"0.5576008",
"0.5478004",
"0.54660064",
"0.5444158",
"0.5392108",
"0.5354991",
"0.5354991",
"0.5342629",
"0.5331433",
"0.531292... | 0.69728374 | 1 |
Sets the quotes of this Customer. Quotes associated with this customer profile | def quotes(self, quotes):
self._quotes = quotes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quotes(self):\n return self._quotes",
"def quotes(self):\n return self._quotes",
"async def quotes(self, ctx):\n\n\t\tawait self.message_leaderboard(ctx, \"quotes\")",
"def set_quotes_properties(self, target_properties = 'nsl1opvkj' ):\n self.cur_quotes_property_str = target_properti... | [
"0.5903956",
"0.5903956",
"0.58998775",
"0.58332413",
"0.5320316",
"0.51927716",
"0.51484543",
"0.51184916",
"0.49805704",
"0.49743798",
"0.49639794",
"0.49601328",
"0.49334046",
"0.49334046",
"0.48992035",
"0.4794737",
"0.4780808",
"0.4745896",
"0.47412536",
"0.47398895",
"0... | 0.77030873 | 0 |
Gets the quotes_summary of this Customer. | def quotes_summary(self):
return self._quotes_summary | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def orders_summary(self):\n return self._orders_summary",
"def getSummary(self):\n return self.summary",
"def summary(self):\n return self._fastqc_summary",
"def summary(self):\n return self._summary",
"def summary(self):\n return self._summary",
"def summary(self):\n ... | [
"0.6940369",
"0.60127175",
"0.5912977",
"0.57576174",
"0.57576174",
"0.57576174",
"0.57576174",
"0.57576174",
"0.57576174",
"0.57576174",
"0.575651",
"0.57366425",
"0.552283",
"0.54979205",
"0.5471995",
"0.5469999",
"0.5467433",
"0.5456768",
"0.5456768",
"0.54533",
"0.54533",... | 0.7995163 | 0 |
Sets the quotes_summary of this Customer. | def quotes_summary(self, quotes_summary):
self._quotes_summary = quotes_summary | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def orders_summary(self, orders_summary):\n\n self._orders_summary = orders_summary",
"def summary(self, summary):\n\n self._summary = summary",
"def summary(self, summary):\n\n self._summary = summary",
"def summary(self, summary):\n\n self._summary = summary",
"def quotes_summ... | [
"0.68785226",
"0.5987959",
"0.5987959",
"0.5987959",
"0.579204",
"0.5552133",
"0.53600645",
"0.51168597",
"0.50976694",
"0.49874324",
"0.4810295",
"0.46902573",
"0.46039543",
"0.4547432",
"0.45389944",
"0.45062333",
"0.44955465",
"0.44818652",
"0.44674093",
"0.44570747",
"0.4... | 0.835892 | 0 |
Gets the referral_source of this Customer. Referral Source | def referral_source(self):
return self._referral_source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def source_contact(self):\n return self._source_contact",
"def getSource(self):\n return self.__source",
"def get_source(self):\n return self.source",
"def GetSourceReference(self):\n #return self.reactants[0].compound._GetDGSource()\n source_names = set(map(lambda x : str(... | [
"0.6842226",
"0.62641627",
"0.6249271",
"0.62471145",
"0.62315995",
"0.60604966",
"0.60067713",
"0.59297824",
"0.5924707",
"0.59041345",
"0.58916473",
"0.58916473",
"0.58916473",
"0.58916473",
"0.58916473",
"0.5854461",
"0.5846638",
"0.58164066",
"0.56735975",
"0.56332153",
"... | 0.8129386 | 0 |
Sets the referral_source of this Customer. Referral Source | def referral_source(self, referral_source):
if referral_source is not None and len(referral_source) > 50:
raise ValueError("Invalid value for `referral_source`, length must be less than or equal to `50`")
self._referral_source = referral_source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def source_contact(self, source_contact):\n \n self._source_contact = source_contact",
"def referral_source(self):\n return self._referral_source",
"def setAddressSource(self, address_source):\n # type: (str)->None\n\n self._validator.validate_one(\n 'source', VALI... | [
"0.67669284",
"0.6725081",
"0.61584383",
"0.6062122",
"0.60146266",
"0.5965083",
"0.5965083",
"0.59629184",
"0.5939816",
"0.5939816",
"0.5939816",
"0.5939816",
"0.5939816",
"0.5939816",
"0.5939816",
"0.5845459",
"0.5810408",
"0.5809826",
"0.5802448",
"0.57876754",
"0.5769534"... | 0.7728845 | 0 |
Gets the sales_rep_code of this Customer. Sales rep code | def sales_rep_code(self):
return self._sales_rep_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_sales_rep(self):\r\n return self._sales_rep",
"def sales_rep_code(self, sales_rep_code):\n if sales_rep_code is not None and len(sales_rep_code) > 10:\n raise ValueError(\"Invalid value for `sales_rep_code`, length must be less than or equal to `10`\")\n\n self._sales_rep_... | [
"0.70277154",
"0.61649674",
"0.55058897",
"0.54861367",
"0.5480432",
"0.54520625",
"0.54520625",
"0.54520625",
"0.54520625",
"0.5445934",
"0.54166645",
"0.54132307",
"0.53935033",
"0.5382975",
"0.5382975",
"0.5382975",
"0.5363438",
"0.53279847",
"0.53051496",
"0.5264629",
"0.... | 0.88858366 | 0 |
Sets the sales_rep_code of this Customer. Sales rep code | def sales_rep_code(self, sales_rep_code):
if sales_rep_code is not None and len(sales_rep_code) > 10:
raise ValueError("Invalid value for `sales_rep_code`, length must be less than or equal to `10`")
self._sales_rep_code = sales_rep_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_sales_rep(self, sales_rep):\r\n self._sales_rep = sales_rep",
"def sales_rep_code(self):\n return self._sales_rep_code",
"def set_code(self, code):\n self.set_payload(code)",
"def order_code(self, order_code):\n\n self._order_code = order_code",
"def sales(self, sales):\... | [
"0.7868857",
"0.74802554",
"0.5507848",
"0.5417606",
"0.5411955",
"0.53564364",
"0.52896523",
"0.52877074",
"0.52456766",
"0.5195758",
"0.5195758",
"0.5185398",
"0.5171757",
"0.5165414",
"0.5142551",
"0.5142551",
"0.5142551",
"0.5131162",
"0.51238906",
"0.51238906",
"0.507975... | 0.8107233 | 0 |
Gets the send_signup_notification of this Customer. Send signup notification, if true during customer creation, will send a notification. | def send_signup_notification(self):
return self._send_signup_notification | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_signup_notification(self, send_signup_notification):\n\n self._send_signup_notification = send_signup_notification",
"def send_notification(self) -> bool:\n return pulumi.get(self, \"send_notification\")",
"def notification_sender_email(self) -> pulumi.Output[str]:\n return pulumi... | [
"0.71803933",
"0.5925139",
"0.5300869",
"0.5293549",
"0.5293549",
"0.5197487",
"0.5079532",
"0.5079532",
"0.502504",
"0.5015267",
"0.5015267",
"0.5013039",
"0.48122773",
"0.4807275",
"0.47662315",
"0.47435644",
"0.4704062",
"0.46992734",
"0.46731335",
"0.46690765",
"0.4614563... | 0.7648319 | 0 |
Sets the send_signup_notification of this Customer. Send signup notification, if true during customer creation, will send a notification. | def send_signup_notification(self, send_signup_notification):
self._send_signup_notification = send_signup_notification | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_signup_notification(self):\n return self._send_signup_notification",
"def send_notification(self) -> bool:\n return pulumi.get(self, \"send_notification\")",
"def should_send_notifications(self, should_send_notifications):\n\n self._should_send_notifications = should_send_notifica... | [
"0.7106537",
"0.5648593",
"0.54096174",
"0.4998649",
"0.49810722",
"0.49696782",
"0.49017224",
"0.48900005",
"0.488889",
"0.4874254",
"0.48708162",
"0.48428136",
"0.48140746",
"0.48114967",
"0.47523695",
"0.4748049",
"0.47375968",
"0.4706923",
"0.46768188",
"0.46737933",
"0.4... | 0.86170495 | 0 |
Gets the shipping of this Customer. Shipping addresses for this customer | def shipping(self):
return self._shipping | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shipping_address(self) -> 'outputs.ShippingAddressResponse':\n return pulumi.get(self, \"shipping_address\")",
"def shipping_address(self) -> 'outputs.ShippingAddressResponse':\n return pulumi.get(self, \"shipping_address\")",
"def shipping_address(self) -> 'outputs.ShippingAddressResponse':\... | [
"0.7763449",
"0.7763449",
"0.7763449",
"0.767562",
"0.67779243",
"0.6644838",
"0.64475065",
"0.6420661",
"0.6348562",
"0.59039724",
"0.5735479",
"0.5734318",
"0.5546499",
"0.55390173",
"0.54865503",
"0.548645",
"0.5476888",
"0.5474502",
"0.54233736",
"0.54111916",
"0.5390986"... | 0.7878591 | 0 |
Sets the shipping of this Customer. Shipping addresses for this customer | def shipping(self, shipping):
self._shipping = shipping | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shipping_address(self, shipping_address):\n\n self._shipping_address = shipping_address",
"def default_shipping(self, default_shipping):\n\n self._default_shipping = default_shipping",
"def free_shipping(self, free_shipping):\n\n self._free_shipping = free_shipping",
"def shipping(se... | [
"0.69228005",
"0.6704406",
"0.6394261",
"0.6301339",
"0.6243967",
"0.61268187",
"0.6044921",
"0.6044921",
"0.6044921",
"0.5902127",
"0.5887174",
"0.5809757",
"0.57027364",
"0.56374604",
"0.55451035",
"0.5504729",
"0.54225284",
"0.5401595",
"0.53113043",
"0.529216",
"0.5259141... | 0.7853938 | 0 |
Gets the signup_dts of this Customer. Signup date | def signup_dts(self):
return self._signup_dts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def signup_dts(self, signup_dts):\n\n self._signup_dts = signup_dts",
"def getUserSignupDate(self):\r\n userinfo = self.getUserInfo()\r\n timestamp = int(float(userinfo[\"signupTimeSec\"]))\r\n return time.strftime(\"%m/%d/%Y %H:%M\", time.gmtime(timestamp))",
"def get_account_creat... | [
"0.65081435",
"0.63510865",
"0.59054834",
"0.5811228",
"0.5504573",
"0.53848994",
"0.5384413",
"0.53592855",
"0.52790797",
"0.52790797",
"0.52790797",
"0.52769595",
"0.52705914",
"0.5242916",
"0.5242916",
"0.5242916",
"0.51934034",
"0.5191108",
"0.51809996",
"0.51764023",
"0.... | 0.80204034 | 0 |
Sets the signup_dts of this Customer. Signup date | def signup_dts(self, signup_dts):
self._signup_dts = signup_dts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def signup_dts(self):\n return self._signup_dts",
"def transaction_dts(self, transaction_dts):\n\n self._transaction_dts = transaction_dts",
"def create_date(self, create_date):\n\n self._create_date = create_date",
"def create_date(self, create_date):\n\n self._create_date = crea... | [
"0.6255517",
"0.58527696",
"0.5739159",
"0.5739159",
"0.5739159",
"0.57140493",
"0.56973153",
"0.5633951",
"0.54348123",
"0.527817",
"0.527817",
"0.52758706",
"0.52758706",
"0.5260253",
"0.5258979",
"0.5224738",
"0.52178895",
"0.52178895",
"0.52178895",
"0.5173267",
"0.516910... | 0.8307224 | 0 |
Gets the suppress_buysafe of this Customer. Suppress buySAFE | def suppress_buysafe(self):
return self._suppress_buysafe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def suppress_buysafe(self, suppress_buysafe):\n\n self._suppress_buysafe = suppress_buysafe",
"def suppress(self):\n return Suppress(self)",
"def tax_exempt(self):\n return self._tax_exempt",
"def getSilence(self):\n return self.__silence",
"def suppress(self):\n return s... | [
"0.7212473",
"0.59909064",
"0.5460177",
"0.5459144",
"0.5428537",
"0.53602356",
"0.5354851",
"0.5318312",
"0.5275436",
"0.5254636",
"0.52455634",
"0.5209804",
"0.52009916",
"0.51474416",
"0.509824",
"0.5074139",
"0.5060088",
"0.5060088",
"0.5060088",
"0.5019574",
"0.501508",
... | 0.77869606 | 0 |
Sets the suppress_buysafe of this Customer. Suppress buySAFE | def suppress_buysafe(self, suppress_buysafe):
self._suppress_buysafe = suppress_buysafe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def suppress_buysafe(self):\n return self._suppress_buysafe",
"async def set_exclude_unsafe(self, ctx: commands.Context, not_a_bool: str = \"\"):\n not_a_bool = not_a_bool.lower()\n # default with no arguments: set it to exclude\n if not_a_bool in ['true', 'yes', '1', 'exclude', '']:\... | [
"0.75203484",
"0.5822309",
"0.5821621",
"0.57506245",
"0.5730033",
"0.5728787",
"0.5607576",
"0.5528452",
"0.5487261",
"0.54654676",
"0.5421102",
"0.5360081",
"0.52726924",
"0.52568585",
"0.52142954",
"0.5204017",
"0.52031827",
"0.5177184",
"0.51749104",
"0.51344675",
"0.5133... | 0.84511095 | 0 |
Gets the tax_exempt of this Customer. True if the customer is tax exempt | def tax_exempt(self):
return self._tax_exempt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tax_exempt(self, tax_exempt):\n\n self._tax_exempt = tax_exempt",
"def tax_included(self):\n return self._tax_included",
"def is_exempt(self) -> bool:\n\n if self.exempt_when:\n return self.exempt_when()\n return False",
"def is_taxable(self) -> bool:\n retur... | [
"0.6794746",
"0.66627544",
"0.63433504",
"0.6306556",
"0.6255803",
"0.5895082",
"0.58804166",
"0.5858941",
"0.5854297",
"0.5771094",
"0.5757708",
"0.5583154",
"0.5568775",
"0.5542933",
"0.5397456",
"0.53434366",
"0.5254393",
"0.52244526",
"0.5212916",
"0.52091277",
"0.5167711... | 0.8298218 | 0 |
Sets the tax_exempt of this Customer. True if the customer is tax exempt | def tax_exempt(self, tax_exempt):
self._tax_exempt = tax_exempt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tax_exempt(self):\n return self._tax_exempt",
"def tax_included(self, tax_included):\n\n self._tax_included = tax_included",
"def tax_override(self, tax_override):\n\n self._tax_override = tax_override",
"def tax_amount(self, tax_amount):\n\n self._tax_amount = tax_amount",
... | [
"0.74209034",
"0.595756",
"0.59306157",
"0.592274",
"0.592274",
"0.57438374",
"0.56471366",
"0.5608581",
"0.5532864",
"0.5427848",
"0.5369421",
"0.53670645",
"0.5366274",
"0.53470767",
"0.5332247",
"0.532157",
"0.51891",
"0.5170744",
"0.51624745",
"0.5158186",
"0.51524717",
... | 0.8613695 | 0 |
Gets the tax_id of this Customer. Tax ID | def tax_id(self):
return self._tax_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tax_id(self) -> str:\n return self._tax_id",
"def get_tax_id_value(self):\n return self.tax_id_value",
"def tax_code(self):\n return self._tax_code",
"def get_tax_id_label(self):\n return self.tax_id_label",
"def tax_id(self, tax_id: str):\n\n self._tax_id = tax_id",
... | [
"0.838651",
"0.74859643",
"0.73361886",
"0.68750715",
"0.66069454",
"0.6577637",
"0.651494",
"0.6395659",
"0.6254771",
"0.6201722",
"0.60669565",
"0.6045484",
"0.5928495",
"0.58388644",
"0.5807522",
"0.56594807",
"0.56381005",
"0.56169325",
"0.5577885",
"0.5514831",
"0.547405... | 0.870362 | 0 |
Gets the terms of this Customer. Terms for this customer | def terms(self):
return self._terms | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def terms(self) -> CustomTerms:\n enforce(self.is_set(\"terms\"), \"'terms' content is not set.\")\n return cast(CustomTerms, self.get(\"terms\"))",
"def _get_terms(self):\n return self.__terms",
"def _get_terms(self):\n return self.__terms",
"def _get_terms(self):\n return self.__term... | [
"0.71746844",
"0.70234215",
"0.70234215",
"0.70234215",
"0.70234215",
"0.70234215",
"0.70234215",
"0.70234215",
"0.70234215",
"0.70234215",
"0.6917389",
"0.6809697",
"0.6771712",
"0.66956156",
"0.65578234",
"0.6422182",
"0.63470817",
"0.6236221",
"0.6201545",
"0.61737543",
"0... | 0.74477917 | 0 |
Sets the terms of this Customer. Terms for this customer | def terms(self, terms):
self._terms = terms | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _set_terms(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_terms_openconfig_qos_interfaces__qos_classifiers_classifier_terms, is_container='container', yang_name=\"terms\", parent=self, path_helper=self._path_helper, extmethods=self._extm... | [
"0.6385172",
"0.6381159",
"0.63380116",
"0.6307126",
"0.6306997",
"0.6294064",
"0.6233095",
"0.62309605",
"0.6224185",
"0.6186878",
"0.5709692",
"0.5626066",
"0.56015617",
"0.548955",
"0.54546046",
"0.5426041",
"0.5384875",
"0.53333557",
"0.52874404",
"0.5196423",
"0.5190014"... | 0.7506621 | 0 |
Gets the track_separately of this Customer. True if the customer should be tracked separately in QuickBooks | def track_separately(self):
return self._track_separately | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_track(self):\n for account in self.accounts:\n if not account.on_track:\n return False\n return True",
"def on_track(self):\n for account in self.accounts.all():\n if not account.on_track:\n return False\n return True",
"def... | [
"0.5785258",
"0.57484245",
"0.5503403",
"0.54018587",
"0.53501976",
"0.5269997",
"0.5265373",
"0.5162521",
"0.51327646",
"0.5125616",
"0.5111509",
"0.49465573",
"0.49465573",
"0.49436694",
"0.49197856",
"0.49194705",
"0.4916178",
"0.49089986",
"0.4897925",
"0.48731837",
"0.48... | 0.7027527 | 0 |
Sets the track_separately of this Customer. True if the customer should be tracked separately in QuickBooks | def track_separately(self, track_separately):
self._track_separately = track_separately | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def track_separately(self):\n return self._track_separately",
"def enable_track(self):\n self._track = True",
"def on_track(self):\n for account in self.accounts:\n if not account.on_track:\n return False\n return True",
"def on_track(self):\n for ... | [
"0.6168079",
"0.5940756",
"0.5257518",
"0.51044875",
"0.49635157",
"0.4886738",
"0.48818314",
"0.48709458",
"0.48581722",
"0.48013878",
"0.4739656",
"0.47349718",
"0.46360645",
"0.45997217",
"0.44994408",
"0.4466775",
"0.44513705",
"0.44399482",
"0.44399482",
"0.44355068",
"0... | 0.7308845 | 0 |
Gets the unapproved of this Customer. Unapproved | def unapproved(self):
return self._unapproved | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_unapproved(self, guild_id, user):\n doc = await self.db[str(guild_id)].find_one({'id': user.id})\n if doc is None or len(doc['unapproved']) == 0:\n return -1\n else:\n return doc['unapproved']",
"def unapproved(self, unapproved):\n\n self._unapprove... | [
"0.68862796",
"0.6682904",
"0.6192706",
"0.55028456",
"0.5488881",
"0.5446353",
"0.53884095",
"0.53799593",
"0.53354764",
"0.53019124",
"0.5245403",
"0.51704144",
"0.51652676",
"0.5092612",
"0.50110024",
"0.50084156",
"0.50083715",
"0.50002396",
"0.4994726",
"0.49889553",
"0.... | 0.82201564 | 0 |
Sets the unapproved of this Customer. Unapproved | def unapproved(self, unapproved):
self._unapproved = unapproved | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unapproved(self):\n return self._unapproved",
"def set_unauthorized_mode(unauthorized):\n BonsaiWS._UNAUTHORIZED = unauthorized",
"def unequal_paid(self, unequal_paid):\n allowed_values = [\"Allow\", \"Disallow\", \"AdminReview\"]\n if unequal_paid.lower() not in map(str.lower, allo... | [
"0.6685284",
"0.58883953",
"0.57462066",
"0.566149",
"0.566149",
"0.562006",
"0.550862",
"0.5459612",
"0.5207823",
"0.51709485",
"0.5163259",
"0.50850445",
"0.505899",
"0.505744",
"0.5033902",
"0.50197905",
"0.49518418",
"0.49372715",
"0.49184358",
"0.49184358",
"0.49184358",... | 0.8636987 | 0 |
Gets the ups_account_number of this Customer. UPS account number | def ups_account_number(self):
return self._ups_account_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_number(self):\n return self.__account_number",
"def account_id(self) -> pulumi.Output[int]:\n return pulumi.get(self, \"account_id\")",
"def fedex_account_number(self):\n return self._fedex_account_number",
"def dhl_account_number(self):\n return self._dhl_account_numb... | [
"0.72434944",
"0.63800204",
"0.63280016",
"0.62756574",
"0.6243746",
"0.6039854",
"0.6039854",
"0.6039854",
"0.6039854",
"0.6039854",
"0.6039854",
"0.6039854",
"0.6039854",
"0.6014761",
"0.6014761",
"0.6014761",
"0.5931466",
"0.5894432",
"0.58716",
"0.58716",
"0.58613265",
... | 0.87114334 | 0 |
Sets the ups_account_number of this Customer. UPS account number | def ups_account_number(self, ups_account_number):
if ups_account_number is not None and len(ups_account_number) > 20:
raise ValueError("Invalid value for `ups_account_number`, length must be less than or equal to `20`")
self._ups_account_number = ups_account_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ups_account_number(self):\n return self._ups_account_number",
"def account_number(self, account_number):\n\n self._account_number = account_number",
"def set_AccountNumber(self, value):\n super(AddressValidationInputSet, self)._set_input('AccountNumber', value)",
"def account_number(... | [
"0.73011833",
"0.61575526",
"0.6116316",
"0.5710462",
"0.56410694",
"0.5621671",
"0.55324125",
"0.54282975",
"0.54127693",
"0.53927803",
"0.53899014",
"0.5388867",
"0.53663903",
"0.5346569",
"0.5344434",
"0.5344434",
"0.5335364",
"0.52997404",
"0.5191926",
"0.5191926",
"0.519... | 0.7239268 | 1 |
Gets the website_url of this Customer. Website url | def website_url(self):
return self._website_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_website_url(self):\n if self.website:\n return self.website.get_absolute_url()\n elif self.external_url:\n return self.external_url.url\n elif self.parent:\n # try\n return self.parent.get_website_url()\n else: # except\n ... | [
"0.7666433",
"0.7439449",
"0.7200491",
"0.709269",
"0.709269",
"0.7063683",
"0.6974808",
"0.6974808",
"0.6973805",
"0.6973805",
"0.6923577",
"0.6919077",
"0.6878103",
"0.68396145",
"0.6757848",
"0.67456084",
"0.6742248",
"0.67288554",
"0.6726163",
"0.67114943",
"0.6692765",
... | 0.82670254 | 0 |
Sets the website_url of this Customer. Website url | def website_url(self, website_url):
if website_url is not None and len(website_url) > 100:
raise ValueError("Invalid value for `website_url`, length must be less than or equal to `100`")
self._website_url = website_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def website(self, website):\n\n self._website = website",
"def website(self, website):\n\n self._website = website",
"def _set_url(self): \n self.url = self.geturl()",
"def website_url(self):\n return self._website_url",
"def website(self, website):\n if (self.loca... | [
"0.7007347",
"0.7007347",
"0.6794254",
"0.6678651",
"0.66637355",
"0.6613983",
"0.6592579",
"0.6382547",
"0.6377186",
"0.6359433",
"0.6268472",
"0.62619215",
"0.615041",
"0.60849524",
"0.5983095",
"0.5977765",
"0.5977765",
"0.5977765",
"0.5977765",
"0.5977765",
"0.5977765",
... | 0.7221358 | 0 |
Override save to set the expire_date field. | def save(self, *args, **kwargs):
self.expire_date = self.sent_date + timedelta(days=self.period)
super(Referral, self).save(*args, **kwargs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def expire_date(self, expire_date):\n\n self._expire_date = expire_date",
"def save(self, *args, **kwargs):\n self.modify_ts = datetime.now()\n super(ModelBase, self).save(*args, **kwargs)",
"def expire(self, expire):\n\n self._expire = expire",
"def save(self, *args, **kwargs):\n... | [
"0.72531503",
"0.6751157",
"0.6709668",
"0.67068225",
"0.66698235",
"0.6593257",
"0.6593257",
"0.6570706",
"0.65098894",
"0.64543635",
"0.64344317",
"0.64227086",
"0.6394009",
"0.6288463",
"0.6288463",
"0.62290776",
"0.62290776",
"0.62101007",
"0.616072",
"0.616072",
"0.61278... | 0.7848873 | 0 |
Returns a test_id > analysis dict to be used by the luci_analysis module | def query_failure_rate_results(analysis_list):
return {analysis['testId']: analysis for analysis in analysis_list} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_test(self, id):\n id = int(id)\n workflow = Workflow.get(id)\n scufl = Scufl(workflow.data)\n match_types = [\"exact\", \"ignore\", \"regex\"]\n \n return dict(id=None, workflow_id=id, name=workflow.name,\n description=workflow.description, scufl=scu... | [
"0.57994795",
"0.57925236",
"0.57106864",
"0.5523076",
"0.5521693",
"0.55172753",
"0.5449176",
"0.54467595",
"0.54372984",
"0.5344381",
"0.5274841",
"0.52692276",
"0.5260479",
"0.52421033",
"0.51914734",
"0.51741135",
"0.5172556",
"0.51677525",
"0.5151072",
"0.5131918",
"0.51... | 0.5918042 | 0 |
Emulates query_test_history() return value. | def query_test_history(self,
response,
test_id,
parent_step_name=None,
step_iteration=1):
parent_step_prefix = ''
if parent_step_name:
parent_step_prefix = ('%s.' % parent_step_name)
step_suffix = ''
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_get_derived_metric_history(self):\n pass",
"def QueryHistory(self):\n return []",
"def test_get_team_history(self):\n pass",
"def test_get_sync_history(self):\n pass",
"def test_calculator_add(clear_history):\n assert Calculator.add_number(1, 2) == 3\n assert Calculat... | [
"0.68441546",
"0.6820414",
"0.65348214",
"0.64808416",
"0.6407172",
"0.6323544",
"0.627739",
"0.61318046",
"0.6051552",
"0.60477054",
"0.6012223",
"0.60089743",
"0.6001946",
"0.5973127",
"0.59545016",
"0.5936581",
"0.59126556",
"0.58997273",
"0.58655345",
"0.58568096",
"0.581... | 0.6962921 | 0 |
Emulates lookup_bug() return value. | def lookup_bug(self,
rules,
bug_id,
system='monorail',
parent_step_name=None,
step_iteration=1):
parent_step_prefix = ('%s.' % parent_step_name) if parent_step_name else ''
step_suffix = (' (%d)' % step_iteration) if step_itera... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_findBugfixes(self):\n bugfixes = self.builder._findChanges(\n self.project, self.builder._BUGFIX)\n self.assertEquals(\n bugfixes,\n [(23, 'Broken stuff was fixed.')])",
"def get_bug_info_tuple(a_bug):\n bugInfo = a_bug.bug\n bugInfoId = bugInfo.id\n ... | [
"0.60189587",
"0.5960812",
"0.5825982",
"0.5788504",
"0.56643885",
"0.56350654",
"0.5610512",
"0.5588375",
"0.5509151",
"0.5450191",
"0.5440837",
"0.5420743",
"0.5414947",
"0.5410764",
"0.5405088",
"0.5335705",
"0.5334501",
"0.53211695",
"0.5317453",
"0.5300127",
"0.52758044"... | 0.6031016 | 0 |
Emulates query_cluster_failures() return value. | def query_cluster_failures(self,
failures,
cluster_name,
parent_step_name=None,
step_iteration=1):
parent_step_prefix = ('%s.' % parent_step_name) if parent_step_name else ''
step_suffix = (' (%d)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetFailures(self):\n return self._compute_client.all_failures",
"def cluster_count_failure_report(self, node_id: str) -> ResponseT:\n return self.execute_command(\"CLUSTER COUNT-FAILURE-REPORTS\", node_id)",
"def clustering_error(examples):\n\n cluster_examples = partition(examples)\n c... | [
"0.6335246",
"0.62655324",
"0.62037885",
"0.6104119",
"0.60683554",
"0.60210466",
"0.593507",
"0.59235466",
"0.5898909",
"0.587806",
"0.5825421",
"0.57746",
"0.5740375",
"0.5734677",
"0.5696389",
"0.56960607",
"0.56793845",
"0.5666179",
"0.5659773",
"0.5613092",
"0.5595074",
... | 0.7443654 | 0 |
Create HamiltonPumpIO from config. | def from_config(cls, config):
configuration = HamiltonPumpIO.DEFAULT_CONFIG | config
try:
serial_object = aioserial.AioSerial(**configuration)
except aioserial.SerialException as serial_exception:
raise InvalidConfiguration(
f"Cannot connect to the pump o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def from_config(cls, **config):\n # Many pump can be present on the same serial port with different addresses.\n # This shared list of HamiltonPumpIO objects allow shared state in a borg-inspired way, avoiding singletons\n # This is only relevant to programmatic instantiation, i.e. when from_c... | [
"0.74605507",
"0.5997917",
"0.5847925",
"0.5671282",
"0.5662894",
"0.5617371",
"0.552764",
"0.5455866",
"0.5447913",
"0.5447023",
"0.5441524",
"0.54315835",
"0.54092425",
"0.5407719",
"0.54075193",
"0.54042464",
"0.54042464",
"0.53976077",
"0.53976077",
"0.5393535",
"0.536767... | 0.68302435 | 1 |
Ensure connection with pump and initialize it (if hw_initialization is True). | async def initialize(self, hw_initialization: bool = True):
self.num_pump_connected = await self._assign_pump_address()
if hw_initialization:
await self._hw_init() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def initialize(self, hw_init=False, init_speed: str = \"200 sec / stroke\"):\n await self.pump_io.initialize()\n # Test connectivity by querying the pump's firmware version\n fw_cmd = Protocol1Command(command=\"U\", target_pump_num=self.address)\n self.metadata.version = await sel... | [
"0.7501148",
"0.674327",
"0.6710948",
"0.6455718",
"0.64193135",
"0.63453966",
"0.6315943",
"0.6209614",
"0.6203276",
"0.61164534",
"0.6042481",
"0.604241",
"0.59469867",
"0.59414846",
"0.59285074",
"0.59215885",
"0.59179705",
"0.5903601",
"0.58904904",
"0.58766943",
"0.58510... | 0.8259846 | 0 |
Auto assign pump addresses. To be run on init, auto assign addresses to pumps based on their position in the daisy chain. A custom command syntax with no addresses is used here so read and write has been rewritten | async def _assign_pump_address(self) -> int:
try:
await self._write_async(b"1a\r")
except aioserial.SerialException as e:
raise InvalidConfiguration from e
reply = await self._read_reply_async()
if not reply or reply[:1] != "1":
raise InvalidConfigura... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_offset_address(address):\n command(address + \"O\")",
"def __init__(self, commands, address, delay, ascii, logging_p = 0): \n self.command_list = commands\n self.addr = address\n self.delay_time = delay\n self.ascii_time = ascii\n self.logging_p = logging_p",
... | [
"0.5724081",
"0.556541",
"0.5493354",
"0.54381365",
"0.53779304",
"0.5323204",
"0.5188598",
"0.5175064",
"0.5139313",
"0.49998933",
"0.49537227",
"0.4953575",
"0.49468356",
"0.49037266",
"0.49029255",
"0.48590857",
"0.48486108",
"0.4841542",
"0.48303583",
"0.48303166",
"0.482... | 0.600717 | 0 |
Send to all pumps the HW initialization command (i.e. homing). | async def _hw_init(self):
await self._write_async(b":XR\r") # Broadcast: initialize + execute
# Note: no need to consume reply here because there is none (since we are using broadcast) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def initialize(self, hw_init=False, init_speed: str = \"200 sec / stroke\"):\n await self.pump_io.initialize()\n # Test connectivity by querying the pump's firmware version\n fw_cmd = Protocol1Command(command=\"U\", target_pump_num=self.address)\n self.metadata.version = await sel... | [
"0.7113058",
"0.71062565",
"0.68218607",
"0.66104543",
"0.6586496",
"0.6310045",
"0.63089013",
"0.6266364",
"0.6213847",
"0.62028474",
"0.61739516",
"0.6138218",
"0.6079187",
"0.60638446",
"0.60593146",
"0.60468423",
"0.60053986",
"0.59695786",
"0.5962107",
"0.5914323",
"0.59... | 0.7641668 | 0 |
Read the pump reply from serial communication. | async def _read_reply_async(self) -> str:
reply_string = await self._serial.readline_async()
logger.debug(f"Reply received: {reply_string}")
return reply_string.decode("ascii") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __get_response(serial_port):\n read_data = \"\"\n while not read_data.endswith(\"\\n>> \"):\n ready = select.select([serial_port], [], [], 25)[0]\n if ready:\n read_data += serial_port.read(serial_port.inWaiting()).decode(\n \"utf-8\", \"replace\")\n else:\n raise ... | [
"0.73131716",
"0.7025574",
"0.6960071",
"0.678878",
"0.67700994",
"0.67255175",
"0.6704438",
"0.6690512",
"0.66603696",
"0.6637128",
"0.6632278",
"0.6611",
"0.6609113",
"0.6581664",
"0.6579376",
"0.65740544",
"0.6557907",
"0.65567",
"0.65290964",
"0.6520448",
"0.65120345",
... | 0.72932434 | 1 |
Send a command to the pump, read the replies and returns it, optionally parsed. | async def write_and_read_reply_async(self, command: Protocol1Command) -> str:
self._serial.reset_input_buffer()
await self._write_async(f"{command.compile()}\r".encode("ascii"))
response = await self._read_reply_async()
if not response:
raise InvalidConfiguration(
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def send_command_and_read_reply(self, command: Protocol1Command) -> str:\n command.target_pump_num = self.address\n return await self.pump_io.write_and_read_reply_async(command)",
"def do_command(command):\n send_command(command)\n response = get_response()\n print(\"Rcvd: <<< \\n\" ... | [
"0.7315459",
"0.6671322",
"0.64391506",
"0.64347833",
"0.6399196",
"0.62847614",
"0.62592447",
"0.62570816",
"0.61972386",
"0.6191931",
"0.61785334",
"0.61240774",
"0.6102463",
"0.60920614",
"0.5977951",
"0.59615463",
"0.5940376",
"0.59384334",
"0.5921652",
"0.5918296",
"0.59... | 0.6907373 | 1 |
Default constructor, needs an HamiltonPumpIO object. See from_config() class method for configbased init. | def __init__(
self,
pump_io: HamiltonPumpIO,
syringe_volume: str,
name: str,
address: int = 1,
**config,
):
super().__init__(name)
# HamiltonPumpIO
self.pump_io = pump_io
ML600._io_instances.add(self.pump_io) # See above for details.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def from_config(cls, **config):\n # Many pump can be present on the same serial port with different addresses.\n # This shared list of HamiltonPumpIO objects allow shared state in a borg-inspired way, avoiding singletons\n # This is only relevant to programmatic instantiation, i.e. when from_c... | [
"0.70586556",
"0.6546689",
"0.63800234",
"0.6209799",
"0.6199013",
"0.6180446",
"0.6166566",
"0.61274284",
"0.6088315",
"0.6086884",
"0.60534275",
"0.60529065",
"0.598361",
"0.59821475",
"0.59808123",
"0.59459066",
"0.5935069",
"0.59107095",
"0.5906097",
"0.5895807",
"0.58949... | 0.6770748 | 1 |
Validate the speed. Given a speed (seconds/stroke) returns a valid value for it, and a warning if out of bounds. | def _validate_speed(self, speed: pint.Quantity | None) -> str:
# Validated speeds are used as command argument, with empty string being the default for None
if speed is None:
return ""
# Alert if out of bounds but don't raise exceptions, according to general philosophy.
# Ta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _is_valid_interface_speed(speed):\n if 'ten' in speed:\n speed = \"tengigabitethernet\"\n return True\n elif 'gig' in speed:\n speed = \"gigabitEthernet\"\n return True\n elif 'for' in speed:\n speed = \"fortyGigabitEthernet\"\n return True\n elif 'hun' in ... | [
"0.6687735",
"0.6290846",
"0.6267444",
"0.62362605",
"0.60586643",
"0.59345317",
"0.5909811",
"0.5814639",
"0.57316536",
"0.57276464",
"0.5699951",
"0.5681812",
"0.5681812",
"0.5668335",
"0.56538755",
"0.56499726",
"0.5577333",
"0.5530001",
"0.55272543",
"0.552042",
"0.549160... | 0.7727387 | 0 |
Converts seconds per stroke to flow rate. Only internal use. | def _seconds_per_stroke_to_flowrate(self, second_per_stroke) -> float:
flowrate = 1 / (second_per_stroke * self._steps_per_ml)
return flowrate.to("ml/min") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def flowrate_to_seconds_per_stroke(self, flowrate: pint.Quantity):\n flowrate_in_steps_sec = flowrate * self._steps_per_ml\n return (1 / flowrate_in_steps_sec).to(\"second/stroke\")",
"def convert_flowrate(setting):\r\n return 0.8991*setting - 62.339",
"def to_factor(self, time: float) -> floa... | [
"0.7678216",
"0.64650065",
"0.6276242",
"0.5845308",
"0.5752928",
"0.57394737",
"0.5720633",
"0.57125014",
"0.56658083",
"0.5643326",
"0.56370807",
"0.56363714",
"0.563293",
"0.5608137",
"0.5585392",
"0.5585392",
"0.55536073",
"0.55345047",
"0.5521035",
"0.5489287",
"0.548773... | 0.79884374 | 0 |
Convert a volume to a step position. | def _volume_to_step_position(self, volume: pint.Quantity) -> int:
# noinspection PyArgumentEqualDefault
steps = volume * self._steps_per_ml
return round(steps.m_as("steps")) + self._offset_steps | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def compute_step(self, step):\n #print(self.velocity)\n self.position += step * self.velocity\n #print(self.position)",
"def _ulToSteps(self, volume_ul, microstep=None):\n if not microstep: microstep = self.state['microstep']\n if microstep:\n steps = volume_ul * (24... | [
"0.61086553",
"0.6042127",
"0.5937995",
"0.5900614",
"0.5697464",
"0.56689286",
"0.56409675",
"0.559207",
"0.55617213",
"0.55281156",
"0.5518742",
"0.55128884",
"0.55128884",
"0.5498084",
"0.54919136",
"0.5474229",
"0.5472948",
"0.54260826",
"0.53253824",
"0.5283752",
"0.5217... | 0.8583199 | 0 |
Set valve position. wait_for_movement_end is defaulted to True as it is a common mistake not to wait... | async def set_valve_position(
self,
target_position: str,
wait_for_movement_end: bool = True,
):
await self.send_command_and_read_reply(
Protocol1Command(command="LP0", command_value=target_position)
)
logger.debug(f"{self.name} valve position set to posit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setPosition(self, motor, position, timeout):\n \n _set = motor + \".SET\"\n _rbv = motor + \".RBV\"\n _dval = motor + \".DVAL\"\n _off = motor + \".OFF\"\n\n offset = caget(_off)\n\n caput(_set, 1, wait=True, timeout=timeout)\n caput(_dval, position, wait... | [
"0.6958645",
"0.6801454",
"0.6782694",
"0.6777199",
"0.67463166",
"0.67280555",
"0.6620794",
"0.65678567",
"0.65187526",
"0.6446843",
"0.6435764",
"0.6379243",
"0.63466173",
"0.6332484",
"0.62902045",
"0.628838",
"0.6274625",
"0.623349",
"0.623349",
"0.6218213",
"0.6217164",
... | 0.7992361 | 0 |
Add the callback function defination to the stack of the GET method of given path | def get(self, path, callback):
self.appstack.append({'callback':callback, 'method': 'GET', 'path': path})
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def use(self, path, callback):\n self.appstack.append({'callback':callback, 'method': '*', 'path': path})\n return self",
"def route(self, path: str, **args: t.Any) -> t.Callable:\n def decorator(f: t.Callable) -> None:\n RouteMap.add_route(Route(path, f, args.get('methods', ['GET... | [
"0.68484503",
"0.62259364",
"0.6172646",
"0.61308944",
"0.5883517",
"0.5860388",
"0.5824755",
"0.58103776",
"0.579866",
"0.5772217",
"0.57533085",
"0.57255864",
"0.56848615",
"0.5590832",
"0.555539",
"0.5528529",
"0.5517576",
"0.5501589",
"0.547163",
"0.54659814",
"0.54584736... | 0.6696036 | 1 |
Add the callback function defination to the stack of the POST method of given path | def post(self, path, callback):
self.appstack.append({'callback':callback, 'method': 'POST', 'path': path})
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def after_request(self, func: typing.Callable):\n return self.add_hook(type_=\"post\", hook=func)",
"def registerHTTPPostCallbacks():\n libxml2mod.xmlRegisterHTTPPostCallbacks()",
"def post(path, *params, **kwparams):\n def method(f):\n return config(f, 'POST', path, **kwparams)\n return... | [
"0.6451343",
"0.6366479",
"0.62964237",
"0.6007849",
"0.5977993",
"0.59439945",
"0.5930449",
"0.58591723",
"0.5846569",
"0.5846569",
"0.582057",
"0.5808128",
"0.57695043",
"0.57575995",
"0.57261205",
"0.5707414",
"0.5621028",
"0.5613712",
"0.560676",
"0.5575416",
"0.55744344"... | 0.7202727 | 0 |
Add the callback function defination to the stack of the PUT method of given path | def put(self, path, callback):
self.appstack.append({'callback':callback, 'method': 'PUT', 'path': path})
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def put(path, *params, **kwparams):\n def method(f):\n return config(f, 'PUT', path, **kwparams)\n return method",
"def _put(self, path=\"\", **kwargs):\n uri = force_json(self.uri + path)\n return self.client.request(uri, method=\"PUT\", **kwargs)",
"def patch(self, path, callback):... | [
"0.6521348",
"0.6275419",
"0.6166488",
"0.60266846",
"0.5996405",
"0.59955525",
"0.58681905",
"0.58588886",
"0.5851986",
"0.5841569",
"0.58282465",
"0.58065283",
"0.57579166",
"0.57215935",
"0.571797",
"0.5683059",
"0.562321",
"0.5600009",
"0.55975044",
"0.5589572",
"0.554288... | 0.74597234 | 0 |
Add the callback function defination to the stack of the PATCH method of given path | def patch(self, path, callback):
self.appstack.append({'callback':callback, 'method': 'PATCH', 'path': path})
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def simulate_patch(self, path='/', **kwargs):\n return self.simulate_request('PATCH', path, **kwargs)",
"def simulate_patch(self, path='/', **kwargs) -> _ResultBase:\n return self.simulate_request('PATCH', path, **kwargs)",
"async def simulate_patch(self, path='/', **kwargs) -> _ResultBase:\n ... | [
"0.6209439",
"0.6060631",
"0.5975992",
"0.5961497",
"0.5921282",
"0.58565015",
"0.5791314",
"0.5737086",
"0.5701678",
"0.568914",
"0.56344783",
"0.56255174",
"0.5622004",
"0.5607359",
"0.5542167",
"0.55382186",
"0.5509646",
"0.54888016",
"0.54885495",
"0.5482315",
"0.5480366"... | 0.7592002 | 0 |
Add the callback function defination to the stack of the DELETE method of given path | def delete(self, path, callback):
self.appstack.append({'callback':callback, 'method': 'DELETE', 'path': path})
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_callback(self, chain, value):",
"def delete_callback(self):\n pass",
"def delete(path, *params, **kwparams):\n def method(f):\n return config(f, 'DELETE', path, **kwparams)\n return method",
"def on_delete(key):\n pass",
"def on_del(self, callback):\n self._del_... | [
"0.6947494",
"0.6786732",
"0.6382076",
"0.62518567",
"0.6221052",
"0.6221052",
"0.60669965",
"0.60638654",
"0.60336417",
"0.60094917",
"0.60057694",
"0.5954521",
"0.5952305",
"0.59283113",
"0.5918095",
"0.5883172",
"0.58285695",
"0.5791936",
"0.578688",
"0.57796764",
"0.57723... | 0.7404678 | 0 |
Sets the html of this BaseCommitAllOfSummary. | def html(self, html):
self._html = html | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raw_html(self, HTML):\n self._html = HTML",
"def html(self, html: str):\n self._html = html",
"def html(self, html):\n if html is None:\n raise ValueError(\"Invalid value for `html`, must not be `None`\")\n\n self._html = html",
"def html_body(self, val: str):\n ... | [
"0.65854645",
"0.64926213",
"0.6214061",
"0.6109512",
"0.59104127",
"0.5831037",
"0.5785543",
"0.5785543",
"0.5746087",
"0.5692998",
"0.56846076",
"0.5649801",
"0.564889",
"0.5641201",
"0.55111074",
"0.550186",
"0.54857886",
"0.5482595",
"0.5467135",
"0.54434156",
"0.5398906"... | 0.65816945 | 1 |
Sets the raw of this BaseCommitAllOfSummary. | def raw(self, raw):
self._raw = raw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def state_raw(self, state_raw):\n\n self._state_raw = state_raw",
"def summary(self, summary):\n\n self._summary = summary",
"def summary(self, summary):\n\n self._summary = summary",
"def summary(self, summary):\n\n self._summary = summary",
"def override_raw(self):\n\n ... | [
"0.5654203",
"0.55689496",
"0.55689496",
"0.55689496",
"0.545658",
"0.5227142",
"0.52258164",
"0.5193248",
"0.51710397",
"0.5166246",
"0.5156597",
"0.5119031",
"0.5071086",
"0.5071086",
"0.5012163",
"0.48664403",
"0.48442292",
"0.47977427",
"0.47976235",
"0.47655225",
"0.4744... | 0.6492932 | 0 |
Iterate over all of the result files. | def iter_results(results):
for root, dirs, files in os.walk(results):
for filename in files:
if filename.endswith('.json'):
path = os.path.join(root, filename)
try:
result = Results.load(path)
except:
continu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iterate_over_files(self):\n stats = Statistics()\n\n args = arguments.Args()\n\n for file in args.files:\n\n if isimage(file):\n before_size = stats.calculate_before_optimization(file)\n\n puts(\"%s %s\" % (\n e(\"==>\"),\n ... | [
"0.71217513",
"0.7014472",
"0.7003334",
"0.6964161",
"0.6925101",
"0.6844512",
"0.6735751",
"0.6721378",
"0.66641206",
"0.6628046",
"0.66196346",
"0.65127623",
"0.64446855",
"0.6429094",
"0.64272517",
"0.6415663",
"0.63671005",
"0.6356281",
"0.6327547",
"0.63146037",
"0.63144... | 0.7299493 | 0 |
Iterate over all of the result commit hashes and dates. Each element yielded is the pair (hash, date). May return duplicates. Use `get_existing_hashes` if that matters. | def iter_existing_hashes(results):
for result in iter_results(results):
yield result.commit_hash, result.date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def commits(self):\n p = Popen(['git', 'rev-list', '--all', '--timestamp', '--parents'], \n cwd=self.path, stdout=PIPE)\n for line in p.stdout:\n commit_info = line.split()\n if len(commit_info) < 2:\n print >> sys.stderr, \"error: bad line: %r\" ... | [
"0.6098887",
"0.6085042",
"0.5793108",
"0.57254565",
"0.5601314",
"0.5521162",
"0.5488508",
"0.5434667",
"0.5414534",
"0.5409861",
"0.54018795",
"0.5381534",
"0.5356087",
"0.5310377",
"0.52936226",
"0.52679825",
"0.52197486",
"0.5150203",
"0.51367986",
"0.5116467",
"0.5113787... | 0.8672292 | 0 |
Find the latest result for the given machine. | def find_latest_result_hash(machine, root):
root = os.path.join(root, machine)
latest_date = 0
latest_hash = ''
for commit_hash, date in iter_existing_hashes(machine, root):
if date > latest_date:
latest_date = date
latest_hash = commit_hash
return latest_hash | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _find_latest():\n try:\n db = get_master_collection()\n service_details = db.find({\"master.key\": \"release\"}).sort([(\"master.value\", pymongo.DESCENDING)]).limit(1)\n for service in service_details:\n for r in sorted(service[\"master\"][\"value\"], reverse=True):\n ... | [
"0.57544327",
"0.5570618",
"0.5363662",
"0.5359436",
"0.53419656",
"0.5230649",
"0.5197605",
"0.5197128",
"0.51916146",
"0.5146465",
"0.51055187",
"0.5103569",
"0.50905174",
"0.5045628",
"0.5045187",
"0.5023017",
"0.49986494",
"0.49860263",
"0.49852407",
"0.49763316",
"0.4967... | 0.7216099 | 0 |
Returns a sample session with the specified properties. | def sample_session(
study_id: str,
session_id: str = 'test',
state: study_pb2.Session.State = study_pb2.Session.STATE_VALID,
start_time: Optional[datetime.datetime] = None,
email: str = 'user@test.com') -> study_pb2.Session:
session = study_pb2.Session(
study_id=study_id,
id=session_id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sample_generator(self, sess):\n\n to_return = {\n 'g_sample': self.G_sample_test,\n }\n return sess.run(to_return)",
"def test_create_session(self):\n study_id = self.storage.create_study(sample_study_spec())\n\n session = sample_session(study_id=study_id)\n self.storage.create_session... | [
"0.6047841",
"0.6036659",
"0.58540124",
"0.56138206",
"0.56015176",
"0.5599999",
"0.5592803",
"0.55889213",
"0.55469686",
"0.5496594",
"0.5468546",
"0.54579407",
"0.544983",
"0.5444202",
"0.5443433",
"0.5415451",
"0.5404916",
"0.5396477",
"0.5392095",
"0.53710115",
"0.5352602... | 0.6099506 | 0 |
Returns a sample episode with the specified properties. | def sample_episode(
study_id: str,
session_id: str,
episode_id: str = 'test',
state: study_pb2.Episode.State = study_pb2.Episode.STATE_COMPLETED,
start_time: Optional[datetime.datetime] = None,
email: str = 'user@test.com',
num_steps: int = 100,
total_reward: float = 1.0) -> study_pb2.Ep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _create_sample_episode(self) -> study_pb2.Episode:\n study_id, session_id = self.init_session()\n episode = sample_episode(study_id=study_id, session_id=session_id)\n self.storage.create_episode(episode)\n return episode",
"def pick(episodes, debug=False):\n\n if debug:\n print(\"begin ... | [
"0.72086316",
"0.6239541",
"0.61527044",
"0.60607415",
"0.605942",
"0.6039134",
"0.583649",
"0.5668083",
"0.56532997",
"0.5635938",
"0.56258506",
"0.55388325",
"0.55372655",
"0.5467098",
"0.5444407",
"0.541577",
"0.5410256",
"0.52958596",
"0.52831566",
"0.52556425",
"0.522248... | 0.6528022 | 1 |
Tests creating a study. | def test_create_study(self):
study_spec = sample_study_spec()
now = datetime.datetime.now()
study_id = self.storage.create_study(study_spec)
# Study ID must be a 32 char string.
self.assertLen(study_id, 32)
self.assertEqual(study_id, study_spec.id)
self.assertGreaterEqual(study_spec.creatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_create_scenario(self):\n pass",
"def test_study_id(self):\n self.assertEqual(self.tester.study_id, 1)",
"def test_study_id(self):\n self.assertEqual(self.tester.study_id, 1)",
"def create_study(\n study_id,\n name,\n description,\n organization,\n ... | [
"0.7079039",
"0.70681155",
"0.70681155",
"0.69669133",
"0.6922517",
"0.6851031",
"0.6836812",
"0.6836812",
"0.6719829",
"0.67172146",
"0.6712975",
"0.6672661",
"0.6653649",
"0.66388077",
"0.66309947",
"0.65805256",
"0.65764785",
"0.6504011",
"0.6458501",
"0.6404108",
"0.63783... | 0.78815556 | 0 |
Tests getting a missing study. | def test_get_study_missing(self):
self.assertIsNone(self.storage.get_study('missing')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_update_study_missing(self):\n study_spec = sample_study_spec()\n with self.assertRaises(ValueError):\n self.storage.update_study(study_spec)",
"def test_returns_all_studies_with_no_query(self):\n url = self.get_url()\n response = self.client.get(url)\n pks = get_autocompl... | [
"0.71964467",
"0.68617964",
"0.68617964",
"0.68524545",
"0.67670447",
"0.6757489",
"0.6757489",
"0.6757489",
"0.6757489",
"0.6753798",
"0.67430204",
"0.66788816",
"0.6668998",
"0.6668998",
"0.6660492",
"0.66139245",
"0.6612867",
"0.66102505",
"0.6548558",
"0.6548558",
"0.6522... | 0.81518245 | 0 |
Tests updating the state of a study. | def test_update_study_state(self):
study_spec = sample_study_spec()
study_id = self.storage.create_study(study_spec)
self.assertEqual(study_pb2.StudySpec.STATE_ENABLED, study_spec.state)
# Update the state.
self.storage.update_study_state(study_id,
study_pb2.Stud... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_update_study(self):\n study_spec = sample_study_spec()\n study_id = self.storage.create_study(study_spec)\n self.assertEqual(study_pb2.StudySpec.STATE_ENABLED, study_spec.state)\n self.assertEqual('test', study_spec.name)\n creation_time = study_spec.creation_time.ToDatetime()\n\n study_... | [
"0.78230596",
"0.7498204",
"0.7435541",
"0.7234746",
"0.71625173",
"0.70140386",
"0.681868",
"0.66858053",
"0.662168",
"0.6595936",
"0.6593869",
"0.6506648",
"0.6506648",
"0.6506648",
"0.6370141",
"0.6320166",
"0.6292186",
"0.6292186",
"0.6262718",
"0.6188326",
"0.61799145",
... | 0.7922583 | 0 |
Tests updating the state of a missing study. | def test_update_study_state_missing(self):
with self.assertRaises(ValueError):
self.storage.update_study_state('missing',
study_pb2.StudySpec.STATE_ENABLED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_update_study_missing(self):\n study_spec = sample_study_spec()\n with self.assertRaises(ValueError):\n self.storage.update_study(study_spec)",
"def test_update_study_state(self):\n study_spec = sample_study_spec()\n study_id = self.storage.create_study(study_spec)\n self.assertEqual(... | [
"0.7876338",
"0.756133",
"0.74866223",
"0.68596566",
"0.67913425",
"0.6691316",
"0.66512007",
"0.66417116",
"0.6551547",
"0.6285016",
"0.6227183",
"0.618581",
"0.6152985",
"0.6152985",
"0.61153185",
"0.610636",
"0.6090624",
"0.6064854",
"0.60633194",
"0.60519874",
"0.59716755... | 0.8176927 | 0 |
Tests updating a study. | def test_update_study(self):
study_spec = sample_study_spec()
study_id = self.storage.create_study(study_spec)
self.assertEqual(study_pb2.StudySpec.STATE_ENABLED, study_spec.state)
self.assertEqual('test', study_spec.name)
creation_time = study_spec.creation_time.ToDatetime()
study_spec.name = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_update_scenario(self):\n pass",
"def test_update_study_state(self):\n study_spec = sample_study_spec()\n study_id = self.storage.create_study(study_spec)\n self.assertEqual(study_pb2.StudySpec.STATE_ENABLED, study_spec.state)\n\n # Update the state.\n self.storage.update_study_stat... | [
"0.71050614",
"0.70910466",
"0.70341396",
"0.69643587",
"0.6866711",
"0.6848159",
"0.6848159",
"0.6848159",
"0.6750586",
"0.6669218",
"0.66549283",
"0.6634532",
"0.65535563",
"0.65535563",
"0.65378463",
"0.65145755",
"0.64630735",
"0.63995516",
"0.634202",
"0.62341183",
"0.62... | 0.7856318 | 0 |
Tests updating a missing study. | def test_update_study_missing(self):
study_spec = sample_study_spec()
with self.assertRaises(ValueError):
self.storage.update_study(study_spec) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_update_study(self):\n study_spec = sample_study_spec()\n study_id = self.storage.create_study(study_spec)\n self.assertEqual(study_pb2.StudySpec.STATE_ENABLED, study_spec.state)\n self.assertEqual('test', study_spec.name)\n creation_time = study_spec.creation_time.ToDatetime()\n\n study_... | [
"0.7637461",
"0.7224611",
"0.6900326",
"0.6744525",
"0.6623599",
"0.6599874",
"0.64857274",
"0.6452709",
"0.6452709",
"0.6424584",
"0.6424584",
"0.6424584",
"0.6419779",
"0.638175",
"0.6346849",
"0.6325708",
"0.6312447",
"0.625581",
"0.62455684",
"0.6214897",
"0.6214801",
"... | 0.8167678 | 0 |
Tests getting the studies. | def test_get_studies(self):
states = [
study_pb2.StudySpec.STATE_ENABLED, study_pb2.StudySpec.STATE_DISABLED
]
studies = []
for i in range(5):
study_spec = sample_study_spec(name=str(i), state=states[i % len(states)])
self.storage.create_study(study_spec)
studies.append(study_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def studies(self):\n return self._study_queryset",
"def test_returns_all_studies_with_no_query(self):\n url = self.get_url()\n response = self.client.get(url)\n pks = get_autocomplete_view_ids(response)\n self.assertEqual(sorted([study.pk for study in self.studies]), sorted(pks... | [
"0.71166706",
"0.6897096",
"0.6897096",
"0.6645681",
"0.6571701",
"0.6490734",
"0.6454922",
"0.6420926",
"0.6388161",
"0.6375867",
"0.6209471",
"0.61989015",
"0.61782193",
"0.61782193",
"0.61782193",
"0.6165121",
"0.61500394",
"0.61398435",
"0.61371577",
"0.61324483",
"0.6099... | 0.743039 | 0 |
Tests getting the studies of a user. | def test_get_studies_by_user(self):
studies = [
sample_study_spec(name='foo1', email='foo'),
sample_study_spec(name='bar1', email='bar'),
sample_study_spec(name='foo2', email='foo'),
]
for study_spec in studies:
self.storage.create_study(study_spec)
self.assertListEqual([s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def studies(self):\n return self._study_queryset",
"def test_get_studies(self):\n states = [\n study_pb2.StudySpec.STATE_ENABLED, study_pb2.StudySpec.STATE_DISABLED\n ]\n studies = []\n for i in range(5):\n study_spec = sample_study_spec(name=str(i), state=states[i % len(states)])\... | [
"0.66212153",
"0.6542055",
"0.63157564",
"0.63157564",
"0.6238144",
"0.618479",
"0.5915699",
"0.5904569",
"0.5904569",
"0.5904569",
"0.5901152",
"0.58702815",
"0.58436954",
"0.5815956",
"0.580979",
"0.5806838",
"0.5798639",
"0.57761776",
"0.5683308",
"0.56721437",
"0.5670014"... | 0.7741298 | 0 |
Tests creating a session. | def test_create_session(self):
study_id = self.storage.create_study(sample_study_spec())
session = sample_session(study_id=study_id)
self.storage.create_session(session)
self.assertEqual(self.storage.get_session(study_id, session.id), session) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_create_session(self):\n finder = FinderInsidePro(self.test_key)\n session_id = finder.create_session(2811)\n assert isinstance(session_id, str)\n assert session_id == finder.session_id\n assert len(session_id)",
"def test_set_session():",
"def test_new_session(self):... | [
"0.7988973",
"0.7757771",
"0.76874",
"0.7535082",
"0.7488595",
"0.7442011",
"0.7316761",
"0.70193493",
"0.6902857",
"0.6899119",
"0.68311393",
"0.6819226",
"0.68160653",
"0.6813171",
"0.6770946",
"0.6693685",
"0.6664475",
"0.66461456",
"0.65392816",
"0.6524789",
"0.6517613",
... | 0.8001905 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.