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 |
|---|---|---|---|---|---|---|
GetOutput(itkMeshSourcePSUC2 self) > itkPointSetUC2 GetOutput(itkMeshSourcePSUC2 self, unsigned int idx) > itkPointSetUC2 | def GetOutput(self, *args) -> "itkPointSetUC2 *":
return _itkMeshSourcePython.itkMeshSourcePSUC2_GetOutput(self, *args) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetOutput(self, *args) -> \"itkPointSetUC3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUC3_GetOutput(self, *args)",
"def GetOutput(self, *args) -> \"itkPointSetUS2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUS2_GetOutput(self, *args)",
"def SetOutput(self, output: 'itkPointSetUC2... | [
"0.7449316",
"0.72313404",
"0.7176138",
"0.7068679",
"0.6862089",
"0.666869",
"0.66496766",
"0.66102684",
"0.65576005",
"0.6547045",
"0.65321976",
"0.62549317",
"0.62200105",
"0.62063175",
"0.62035817",
"0.6187611",
"0.6122308",
"0.5948528",
"0.5914114",
"0.58659565",
"0.5861... | 0.8037232 | 0 |
GraftOutput(itkMeshSourcePSUC2 self, itkDataObject output) | def GraftOutput(self, *args) -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUC2_GraftOutput(self, *args) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUC2_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUS2_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _it... | [
"0.83175445",
"0.81929535",
"0.81345725",
"0.8020296",
"0.7905972",
"0.78337735",
"0.78118104",
"0.77942514",
"0.77619594",
"0.77189493",
"0.7697298",
"0.7658432",
"0.7629894",
"0.75813866",
"0.752965",
"0.7441792",
"0.7440598",
"0.73319453",
"0.73219144",
"0.7315991",
"0.727... | 0.85735244 | 0 |
GraftNthOutput(itkMeshSourcePSUC2 self, unsigned int idx, itkDataObject output) | def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUC2_GraftNthOutput(self, idx, output) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUC2_GraftNthOutput(self, idx, output)",
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUS... | [
"0.8851953",
"0.8838385",
"0.88222903",
"0.8713084",
"0.86860025",
"0.86765647",
"0.86521673",
"0.8609456",
"0.8535423",
"0.8519198",
"0.84898305",
"0.8469176",
"0.84652954",
"0.84652317",
"0.8396122",
"0.8329466",
"0.83049655",
"0.82909364",
"0.828476",
"0.8278706",
"0.82140... | 0.90847176 | 0 |
cast(itkLightObject obj) > itkMeshSourcePSUC2 | def cast(obj: 'itkLightObject') -> "itkMeshSourcePSUC2 *":
return _itkMeshSourcePython.itkMeshSourcePSUC2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkMeshSourcePSUC2_cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUC2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUC2_cast(obj)",
"def itkMeshSourceMUC2_cast(obj: 'itkLightObject') -> \"itkMeshSourceMUC2 *\":\n return _itkMeshSourcePython.itkMeshSourceMUC2_cast(obj)",
"def cast(obj: 'itkLightO... | [
"0.8694579",
"0.85207385",
"0.844952",
"0.8343486",
"0.82992333",
"0.8286681",
"0.8277568",
"0.81763357",
"0.81734955",
"0.8156327",
"0.8094765",
"0.8088092",
"0.8070664",
"0.80397934",
"0.8038174",
"0.7952944",
"0.79455155",
"0.7934116",
"0.79247147",
"0.79037416",
"0.789892... | 0.8671686 | 1 |
New() > itkMeshSourcePSUC2 Create a new object of the class itkMeshSourcePSUC2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, etc. The... | def New(*args, **kargs):
obj = itkMeshSourcePSUC2.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkMeshSourcePSUS2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkMeshSourceMUC2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **ka... | [
"0.7574598",
"0.74175084",
"0.73834777",
"0.72771704",
"0.71967626",
"0.71840763",
"0.71526045",
"0.69062614",
"0.68574655",
"0.6848032",
"0.68013614",
"0.6799172",
"0.6794228",
"0.6774563",
"0.6732404",
"0.6726245",
"0.66917896",
"0.6655425",
"0.66428375",
"0.66379035",
"0.6... | 0.8114572 | 0 |
itkMeshSourcePSUC2_cast(itkLightObject obj) > itkMeshSourcePSUC2 | def itkMeshSourcePSUC2_cast(obj: 'itkLightObject') -> "itkMeshSourcePSUC2 *":
return _itkMeshSourcePython.itkMeshSourcePSUC2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUC2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUC2_cast(obj)",
"def itkMeshSourceMUC2_cast(obj: 'itkLightObject') -> \"itkMeshSourceMUC2 *\":\n return _itkMeshSourcePython.itkMeshSourceMUC2_cast(obj)",
"def itkMeshSourcePSUS2_cast(obj: 'itkLi... | [
"0.90038973",
"0.8677548",
"0.8485836",
"0.84390056",
"0.8392815",
"0.8358023",
"0.82720053",
"0.8228054",
"0.82081413",
"0.81429857",
"0.81375337",
"0.81254745",
"0.8106261",
"0.80853134",
"0.8019542",
"0.78082776",
"0.779152",
"0.77889335",
"0.77854407",
"0.7750797",
"0.772... | 0.9284943 | 0 |
Clone(itkMeshSourcePSUC3 self) > itkMeshSourcePSUC3_Pointer | def Clone(self) -> "itkMeshSourcePSUC3_Pointer":
return _itkMeshSourcePython.itkMeshSourcePSUC3_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkMeshSourcePSUS3_Pointer\":\n return _itkMeshSourcePython.itkMeshSourcePSUS3_Clone(self)",
"def Clone(self) -> \"itkMeshSourceMUC3_Pointer\":\n return _itkMeshSourcePython.itkMeshSourceMUC3_Clone(self)",
"def Clone(self) -> \"itkMeshSourceMUS3_Pointer\":\n return _it... | [
"0.8929167",
"0.89167434",
"0.88395655",
"0.8640794",
"0.85843307",
"0.8579115",
"0.8559196",
"0.8316792",
"0.8292702",
"0.8133379",
"0.79755086",
"0.7955598",
"0.78870094",
"0.76441747",
"0.7591937",
"0.7563628",
"0.75149286",
"0.74944425",
"0.7474778",
"0.746309",
"0.745766... | 0.92528933 | 0 |
GetOutput(itkMeshSourcePSUC3 self) > itkPointSetUC3 GetOutput(itkMeshSourcePSUC3 self, unsigned int idx) > itkPointSetUC3 | def GetOutput(self, *args) -> "itkPointSetUC3 *":
return _itkMeshSourcePython.itkMeshSourcePSUC3_GetOutput(self, *args) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetOutput(self, *args) -> \"itkPointSetUS3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUS3_GetOutput(self, *args)",
"def GetOutput(self, *args) -> \"itkPointSetUC2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUC2_GetOutput(self, *args)",
"def GetOutput(self, *args) -> \"itkMeshUC3 ... | [
"0.7510069",
"0.7383289",
"0.7315574",
"0.7202143",
"0.7043494",
"0.70056593",
"0.6930632",
"0.6911915",
"0.6779434",
"0.6674864",
"0.65781265",
"0.6445929",
"0.64049256",
"0.63294894",
"0.63057584",
"0.6301359",
"0.622045",
"0.6119313",
"0.6087292",
"0.60685664",
"0.6057255"... | 0.81426156 | 0 |
SetOutput(itkMeshSourcePSUC3 self, itkPointSetUC3 output) | def SetOutput(self, output: 'itkPointSetUC3') -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUC3_SetOutput(self, output) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetOutput(self, output: 'itkPointSetUS3') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourcePSUS3_SetOutput(self, output)",
"def SetOutput(self, output: 'itkPointSetUC2') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourcePSUC2_SetOutput(self, output)",
"def SetOutput(self, output:... | [
"0.8654613",
"0.8569586",
"0.8310337",
"0.8072555",
"0.80593354",
"0.80587614",
"0.80536705",
"0.79730326",
"0.7829674",
"0.7692601",
"0.7571115",
"0.75150734",
"0.73880017",
"0.73503345",
"0.73343134",
"0.73179376",
"0.72224534",
"0.721122",
"0.70793915",
"0.70757127",
"0.70... | 0.9129344 | 0 |
GraftOutput(itkMeshSourcePSUC3 self, itkDataObject output) | def GraftOutput(self, *args) -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUC3_GraftOutput(self, *args) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUC3_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUS3_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _it... | [
"0.83551675",
"0.8264828",
"0.82347924",
"0.80968004",
"0.8056896",
"0.80412984",
"0.8014192",
"0.78964096",
"0.7890744",
"0.78559256",
"0.7852738",
"0.77826196",
"0.7708483",
"0.7498346",
"0.7417241",
"0.73535866",
"0.73196256",
"0.72493124",
"0.7208255",
"0.7204205",
"0.714... | 0.86003214 | 0 |
GraftNthOutput(itkMeshSourcePSUC3 self, unsigned int idx, itkDataObject output) | def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUC3_GraftNthOutput(self, idx, output) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourcePSUC2_GraftNthOutput(self, idx, output)",
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMU... | [
"0.8953565",
"0.890549",
"0.88774985",
"0.8869218",
"0.87587136",
"0.8744481",
"0.87385744",
"0.8732917",
"0.8731471",
"0.8723616",
"0.87056684",
"0.8581202",
"0.8566251",
"0.8519179",
"0.8498315",
"0.8466775",
"0.8456124",
"0.842806",
"0.8418214",
"0.8412559",
"0.8334726",
... | 0.90767574 | 0 |
cast(itkLightObject obj) > itkMeshSourcePSUC3 | def cast(obj: 'itkLightObject') -> "itkMeshSourcePSUC3 *":
return _itkMeshSourcePython.itkMeshSourcePSUC3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkMeshSourcePSUC3_cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUC3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUC3_cast(obj)",
"def itkMeshSourceMUC3_cast(obj: 'itkLightObject') -> \"itkMeshSourceMUC3 *\":\n return _itkMeshSourcePython.itkMeshSourceMUC3_cast(obj)",
"def cast(obj: 'itkLightO... | [
"0.8693156",
"0.8582807",
"0.85529596",
"0.849892",
"0.8477881",
"0.8431753",
"0.84116125",
"0.84036845",
"0.83339256",
"0.8331853",
"0.8306207",
"0.82859707",
"0.8283986",
"0.8231723",
"0.82311076",
"0.8205312",
"0.8166957",
"0.81293523",
"0.81072575",
"0.80997014",
"0.80966... | 0.8671941 | 1 |
New() > itkMeshSourcePSUC3 Create a new object of the class itkMeshSourcePSUC3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, etc. The... | def New(*args, **kargs):
obj = itkMeshSourcePSUC3.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkMeshSourcePSUS3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkMeshSourceMUC3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **ka... | [
"0.7784782",
"0.7706054",
"0.7593333",
"0.7487501",
"0.739783",
"0.73185456",
"0.7290891",
"0.71456885",
"0.7014468",
"0.69657767",
"0.6952734",
"0.69519395",
"0.69493794",
"0.69480556",
"0.69463956",
"0.69398373",
"0.6902505",
"0.6897495",
"0.6885862",
"0.6885846",
"0.688051... | 0.8283007 | 0 |
itkMeshSourcePSUC3_cast(itkLightObject obj) > itkMeshSourcePSUC3 | def itkMeshSourcePSUC3_cast(obj: 'itkLightObject') -> "itkMeshSourcePSUC3 *":
return _itkMeshSourcePython.itkMeshSourcePSUC3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUC3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUC3_cast(obj)",
"def itkMeshSourceMUC3_cast(obj: 'itkLightObject') -> \"itkMeshSourceMUC3 *\":\n return _itkMeshSourcePython.itkMeshSourceMUC3_cast(obj)",
"def itkMeshSourcePSUS3_cast(obj: 'itkLi... | [
"0.90401703",
"0.88774675",
"0.87053853",
"0.86921483",
"0.8688729",
"0.86009884",
"0.8519938",
"0.84696555",
"0.8434495",
"0.8392286",
"0.83756757",
"0.83694774",
"0.83325016",
"0.83007944",
"0.824825",
"0.8186022",
"0.81430894",
"0.81014746",
"0.8080302",
"0.79666775",
"0.7... | 0.9295451 | 0 |
Clone(itkMeshSourcePSUS2 self) > itkMeshSourcePSUS2_Pointer | def Clone(self) -> "itkMeshSourcePSUS2_Pointer":
return _itkMeshSourcePython.itkMeshSourcePSUS2_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkMeshSourcePSSS2_Pointer\":\n return _itkMeshSourcePython.itkMeshSourcePSSS2_Clone(self)",
"def Clone(self) -> \"itkMeshSourceMUS2_Pointer\":\n return _itkMeshSourcePython.itkMeshSourceMUS2_Clone(self)",
"def Clone(self) -> \"itkMeshSourceMSS2_Pointer\":\n return _it... | [
"0.8850906",
"0.8829305",
"0.8796623",
"0.8758585",
"0.8703899",
"0.86695176",
"0.8492304",
"0.8357037",
"0.83073395",
"0.819228",
"0.815639",
"0.8099935",
"0.8075834",
"0.80728567",
"0.80198205",
"0.79946774",
"0.761007",
"0.7570088",
"0.7450955",
"0.72351176",
"0.7195941",
... | 0.9232925 | 0 |
GraftOutput(itkMeshSourcePSUS2 self, itkDataObject output) | def GraftOutput(self, *args) -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUS2_GraftOutput(self, *args) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUS2_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourcePSD2_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _it... | [
"0.8409701",
"0.82417244",
"0.8163046",
"0.8096602",
"0.8087122",
"0.8078784",
"0.80690503",
"0.8006872",
"0.7976756",
"0.7966267",
"0.79624903",
"0.79030997",
"0.78608197",
"0.7726359",
"0.7717968",
"0.7703909",
"0.7665137",
"0.7597915",
"0.7551461",
"0.7484995",
"0.74699026... | 0.84045357 | 1 |
GraftNthOutput(itkMeshSourcePSUS2 self, unsigned int idx, itkDataObject output) | def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUS2_GraftNthOutput(self, idx, output) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUS2_GraftNthOutput(self, idx, output)",
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourcePSS... | [
"0.90075594",
"0.8896542",
"0.8892129",
"0.887637",
"0.88632065",
"0.881746",
"0.8786319",
"0.87430686",
"0.87076366",
"0.86822367",
"0.8667914",
"0.86466026",
"0.86335856",
"0.86047715",
"0.85502744",
"0.8543644",
"0.85231435",
"0.85125095",
"0.84193355",
"0.8417785",
"0.840... | 0.90109134 | 0 |
cast(itkLightObject obj) > itkMeshSourcePSUS2 | def cast(obj: 'itkLightObject') -> "itkMeshSourcePSUS2 *":
return _itkMeshSourcePython.itkMeshSourcePSUS2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkMeshSourcePSUS2_cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUS2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUS2_cast(obj)",
"def itkMeshSourceMUS2_cast(obj: 'itkLightObject') -> \"itkMeshSourceMUS2 *\":\n return _itkMeshSourcePython.itkMeshSourceMUS2_cast(obj)",
"def cast(obj: 'itkLightO... | [
"0.8589492",
"0.84767836",
"0.8433743",
"0.83833015",
"0.8375645",
"0.8361765",
"0.8291348",
"0.82667387",
"0.8264334",
"0.82404536",
"0.8236893",
"0.81141376",
"0.8112286",
"0.8110586",
"0.80648917",
"0.8064878",
"0.805027",
"0.8041939",
"0.8035623",
"0.80313617",
"0.7985372... | 0.8595423 | 0 |
New() > itkMeshSourcePSUS2 Create a new object of the class itkMeshSourcePSUS2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, etc. The... | def New(*args, **kargs):
obj = itkMeshSourcePSUS2.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkMeshSourcePSSS2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkMeshSourcePSF2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **ka... | [
"0.78400856",
"0.75566983",
"0.7530548",
"0.7509825",
"0.75087935",
"0.7449549",
"0.73007166",
"0.70640826",
"0.6860217",
"0.68227565",
"0.68195975",
"0.6812487",
"0.67577994",
"0.67387",
"0.6718888",
"0.6713773",
"0.6704646",
"0.66669405",
"0.65619016",
"0.65349007",
"0.6492... | 0.80998397 | 0 |
itkMeshSourcePSUS2_cast(itkLightObject obj) > itkMeshSourcePSUS2 | def itkMeshSourcePSUS2_cast(obj: 'itkLightObject') -> "itkMeshSourcePSUS2 *":
return _itkMeshSourcePython.itkMeshSourcePSUS2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUS2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUS2_cast(obj)",
"def itkMeshSourcePSSS2_cast(obj: 'itkLightObject') -> \"itkMeshSourcePSSS2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSSS2_cast(obj)",
"def itkMeshSourceMUS2_cast(obj: 'itk... | [
"0.8919591",
"0.86714363",
"0.8570516",
"0.8537658",
"0.8520125",
"0.8493309",
"0.84350514",
"0.8429861",
"0.83943623",
"0.83860004",
"0.82787406",
"0.8271327",
"0.82144326",
"0.81945246",
"0.81266",
"0.80645984",
"0.78822374",
"0.7824618",
"0.7787774",
"0.7736635",
"0.769607... | 0.9226743 | 0 |
Clone(itkMeshSourcePSUS3 self) > itkMeshSourcePSUS3_Pointer | def Clone(self) -> "itkMeshSourcePSUS3_Pointer":
return _itkMeshSourcePython.itkMeshSourcePSUS3_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkMeshSourceMSS3_Pointer\":\n return _itkMeshSourcePython.itkMeshSourceMSS3_Clone(self)",
"def Clone(self) -> \"itkMeshSourceMUS3_Pointer\":\n return _itkMeshSourcePython.itkMeshSourceMUS3_Clone(self)",
"def Clone(self) -> \"itkMeshSourcePSF3_Pointer\":\n return _itkM... | [
"0.8934857",
"0.8888322",
"0.8879939",
"0.88791585",
"0.8844142",
"0.88360536",
"0.85970277",
"0.85207635",
"0.83628446",
"0.83578086",
"0.82062125",
"0.81530446",
"0.8150847",
"0.81481075",
"0.8029538",
"0.7946096",
"0.78511727",
"0.7717971",
"0.76860833",
"0.76226616",
"0.7... | 0.92531514 | 0 |
GetOutput(itkMeshSourcePSUS3 self) > itkPointSetUS3 GetOutput(itkMeshSourcePSUS3 self, unsigned int idx) > itkPointSetUS3 | def GetOutput(self, *args) -> "itkPointSetUS3 *":
return _itkMeshSourcePython.itkMeshSourcePSUS3_GetOutput(self, *args) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetOutput(self, *args) -> \"itkPointSetD3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSD3_GetOutput(self, *args)",
"def GetOutput(self, *args) -> \"itkPointSetUS2 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUS2_GetOutput(self, *args)",
"def GetOutput(self, *args) -> \"itkPointSetUC... | [
"0.74372673",
"0.7434274",
"0.7424139",
"0.7417688",
"0.7274248",
"0.6926704",
"0.6914821",
"0.68804914",
"0.6830165",
"0.68245006",
"0.6769269",
"0.667413",
"0.6649643",
"0.6544598",
"0.65227234",
"0.64785606",
"0.64726275",
"0.64460087",
"0.6336545",
"0.6332153",
"0.6324658... | 0.77877283 | 0 |
GraftOutput(itkMeshSourcePSUS3 self, itkDataObject output) | def GraftOutput(self, *args) -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUS3_GraftOutput(self, *args) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUS3_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _itkMeshSourcePython.itkMeshSourcePSD3_GraftOutput(self, *args)",
"def GraftOutput(self, *args) -> \"void\":\n return _it... | [
"0.84442824",
"0.8375635",
"0.8294843",
"0.8292518",
"0.82691514",
"0.82250446",
"0.8195238",
"0.81798005",
"0.8116114",
"0.81095856",
"0.80206615",
"0.786295",
"0.78425217",
"0.7800757",
"0.77757514",
"0.7744356",
"0.76579094",
"0.763478",
"0.7629632",
"0.7576807",
"0.753879... | 0.84510195 | 0 |
GraftNthOutput(itkMeshSourcePSUS3 self, unsigned int idx, itkDataObject output) | def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> "void":
return _itkMeshSourcePython.itkMeshSourcePSUS3_GraftNthOutput(self, idx, output) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMUS3_GraftNthOutput(self, idx, output)",
"def GraftNthOutput(self, idx: 'unsigned int', output: 'itkDataObject') -> \"void\":\n return _itkMeshSourcePython.itkMeshSourceMSS... | [
"0.9026587",
"0.89918345",
"0.89893323",
"0.8974692",
"0.8970153",
"0.8935113",
"0.89029",
"0.890003",
"0.8891673",
"0.88464457",
"0.88104546",
"0.8805223",
"0.8789301",
"0.87796617",
"0.87783855",
"0.87416077",
"0.873594",
"0.8673628",
"0.85918504",
"0.8564406",
"0.8558791",... | 0.9033194 | 0 |
cast(itkLightObject obj) > itkMeshSourcePSUS3 | def cast(obj: 'itkLightObject') -> "itkMeshSourcePSUS3 *":
return _itkMeshSourcePython.itkMeshSourcePSUS3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkMeshSourcePSUS3_cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUS3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUS3_cast(obj)",
"def itkMeshSourceMUS3_cast(obj: 'itkLightObject') -> \"itkMeshSourceMUS3 *\":\n return _itkMeshSourcePython.itkMeshSourceMUS3_cast(obj)",
"def itkMeshSourcePSD3_ca... | [
"0.8574099",
"0.85431874",
"0.8533537",
"0.8525252",
"0.85063845",
"0.8491273",
"0.8453738",
"0.84362024",
"0.83994806",
"0.8335662",
"0.8281133",
"0.8273052",
"0.82557523",
"0.8250564",
"0.8247906",
"0.82425076",
"0.82269263",
"0.8206874",
"0.81833786",
"0.8105235",
"0.81035... | 0.85935366 | 0 |
New() > itkMeshSourcePSUS3 Create a new object of the class itkMeshSourcePSUS3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, etc. The... | def New(*args, **kargs):
obj = itkMeshSourcePSUS3.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkMeshSourcePSSS3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkMeshSourcePSUC3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **k... | [
"0.7833691",
"0.7802501",
"0.7793215",
"0.77614415",
"0.77032983",
"0.7650014",
"0.7501455",
"0.7399301",
"0.71328354",
"0.7110867",
"0.7009365",
"0.6986112",
"0.6948885",
"0.6942402",
"0.69172496",
"0.6891206",
"0.67850274",
"0.6732052",
"0.66955405",
"0.6668632",
"0.6631529... | 0.8227737 | 0 |
itkMeshSourcePSUS3_cast(itkLightObject obj) > itkMeshSourcePSUS3 | def itkMeshSourcePSUS3_cast(obj: 'itkLightObject') -> "itkMeshSourcePSUS3 *":
return _itkMeshSourcePython.itkMeshSourcePSUS3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkMeshSourcePSUS3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSUS3_cast(obj)",
"def itkMeshSourcePSF3_cast(obj: 'itkLightObject') -> \"itkMeshSourcePSF3 *\":\n return _itkMeshSourcePython.itkMeshSourcePSF3_cast(obj)",
"def itkMeshSourcePSD3_cast(obj: 'itkLig... | [
"0.8953506",
"0.87557834",
"0.8742907",
"0.8723548",
"0.86374336",
"0.8626692",
"0.86145335",
"0.8609786",
"0.8556835",
"0.8493477",
"0.84838206",
"0.84718615",
"0.8446365",
"0.8429915",
"0.8345684",
"0.8337039",
"0.82144034",
"0.81832916",
"0.81102926",
"0.8021958",
"0.80139... | 0.91880876 | 0 |
Return a 'fixed' version of filename. | def get_fixed_filename(filename):
new_name = filename.replace(" ", "_").replace(".TXT", ".txt")
new_filename = ""
check_symbol = ["(", "_"] # A list of symbols where uppercase must follow
for count, character in enumerate(new_name):
current_character = character
substitute_character = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _safe_filename(filename):\n date = datetime.datetime.utcnow().strftime(\"%Y-%m-%d-%H%M%S\")\n basename, extension = filename.rsplit('.', 1)\n return \"{0}-{1}.{2}\".format(basename, date, extension)",
"def _safe_filename(filename):\n filename = secure_filename(filename)\n date = datetime.datet... | [
"0.7250059",
"0.71424264",
"0.7099398",
"0.7067578",
"0.70534736",
"0.6940534",
"0.68074816",
"0.6781198",
"0.673747",
"0.6724021",
"0.67217356",
"0.6685823",
"0.6665831",
"0.6630088",
"0.661831",
"0.6595872",
"0.658626",
"0.65764874",
"0.6531638",
"0.6502819",
"0.64971834",
... | 0.67568046 | 8 |
Creates a random string with the predetermined size | def create_random_code(chars=AVAIABLE_CHARS):
return "".join(
[choice(chars) for _ in range(SIZE)]
) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def stringGen(size, chars=string.ascii_uppercase + string.digits):\n\treturn ''.join(random.choice(chars) for _ in range(size))",
"def _random_string(self, size, chars=None):\n return ''.join(random.choice(chars or _DEFAULT_CHARS) for _ in range(size))",
"def rand_string(nSize=20):\n cString = ''\n while ... | [
"0.85477656",
"0.8432733",
"0.82163954",
"0.8173951",
"0.7781767",
"0.7704748",
"0.76952773",
"0.7655447",
"0.7636707",
"0.7619968",
"0.75256294",
"0.749667",
"0.749149",
"0.7454034",
"0.7429511",
"0.73944837",
"0.73866475",
"0.73849434",
"0.7384268",
"0.73805106",
"0.7373076... | 0.0 | -1 |
Auth mocking repositories and db engine (i.e. does not require db up) | def auth(mocker, app: FastAPI, faker: Faker) -> HTTPBasicAuth:
# mock engine if db was not init
if app.state.settings.API_SERVER_POSTGRES is None:
engine = mocker.MagicMock()
engine.minsize = 1
engine.size = 10
engine.freesize = 3
engine.maxsize = 10
app.state.eng... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setUp(self):\n self.database = Mock()",
"def test_dummydb_basic(self):\n db = DummyDB()",
"def test_authtoken_all(self):\n auth_client = self.fixtures.auth_client\n\n # scenario 1: When users passed are an instance of Query class\n hermione = models.User(username='hermino... | [
"0.661728",
"0.6435893",
"0.6421714",
"0.64034194",
"0.63424546",
"0.6315468",
"0.6293992",
"0.6288883",
"0.6280207",
"0.6262793",
"0.6239416",
"0.62237763",
"0.62212336",
"0.6197688",
"0.6182217",
"0.61815876",
"0.6170445",
"0.61642575",
"0.61473274",
"0.6115039",
"0.6095477... | 0.63757414 | 4 |
Converts a string denoting a date into a Date | def string_to_date(string):
params = string.strip().split('-')
year = int(params[0])
month = int(params[1])
day = int(params[2])
d = date(year, month, day)
return d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def string_to_date(date_string):\n\n return date(int(date_string[:4]),\n int(date_string[5:7]),\n int(date_string[8:10]))",
"def _str_to_date(self, date):\n return datetools.date_parser(date)",
"def string_to_date(given_date: str) -> date:\n return datetime.strptime(g... | [
"0.84212214",
"0.83577985",
"0.8186671",
"0.81854594",
"0.8091371",
"0.8041153",
"0.8021707",
"0.8003732",
"0.80022705",
"0.7989688",
"0.7965866",
"0.7915503",
"0.79149956",
"0.79107195",
"0.7880696",
"0.7877387",
"0.7838969",
"0.78325087",
"0.77930415",
"0.7775685",
"0.77366... | 0.85672265 | 0 |
Replacer used by `re.sub` to replace ANSI markers with correct ANSI sequences | def sub_ansi(self, ansimatch):
return self.ansi_map_dict.get(ansimatch.group(), "") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def strip_ansi(content):\n return ANSI_ESCAPES_REGEX.sub('', content)",
"def strip_ansi(text: str):\n return _ANSI_SEQUENCE_REGEX.sub('', text)",
"def _handle_ansi_color_codes(self, s):\r\n def ansi_code_to_css(code):\r\n return ' '.join(['ansi-%s' % c for c in code.split(';')])\r\n return '<s... | [
"0.6933452",
"0.6849318",
"0.66116655",
"0.66021436",
"0.65607053",
"0.6471191",
"0.64361584",
"0.6394402",
"0.63243556",
"0.6296387",
"0.6182054",
"0.61468583",
"0.60880816",
"0.60257787",
"0.59586823",
"0.5953107",
"0.59474933",
"0.59420395",
"0.59099364",
"0.58707035",
"0.... | 0.5630726 | 25 |
Strips raw ANSI codes from a string. | def strip_raw_codes(self, string):
return self.ansi_regex.sub("", string) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def strip_raw_ansi(string, parser=ANSI_PARSER):\n string = string or \"\"\n return parser.strip_raw_codes(string)",
"def _strip_ansi(s):\n if isinstance(s, str):\n return _ansi_codes.sub(r\"\\4\", s)\n else: # a bytestring\n return _ansi_codes_bytes.sub(r\"\\4\", s)",
"def strip_ansi... | [
"0.8583735",
"0.84688604",
"0.790474",
"0.79022145",
"0.7796275",
"0.757807",
"0.74281824",
"0.7311574",
"0.7258962",
"0.7124093",
"0.69578475",
"0.68002397",
"0.66807437",
"0.63917094",
"0.63736475",
"0.6356841",
"0.6349309",
"0.63168466",
"0.62583375",
"0.62440014",
"0.6224... | 0.8854638 | 0 |
Strip all ansi from the string. This handles the Evenniaspecific markup. | def strip_ansi(string, parser=ANSI_PARSER):
string = string or ""
return parser.parse_ansi(string, strip_ansi=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _strip_ansi(s):\n if isinstance(s, str):\n return _ansi_codes.sub(r\"\\4\", s)\n else: # a bytestring\n return _ansi_codes_bytes.sub(r\"\\4\", s)",
"def strip_ansi(text: str):\n return _ANSI_SEQUENCE_REGEX.sub('', text)",
"def strip_ansi(text):\n return ANSI_ESCAPE_RE.sub('', tex... | [
"0.81697357",
"0.8144217",
"0.8051035",
"0.7908884",
"0.7888175",
"0.78559905",
"0.7568742",
"0.7317749",
"0.72191423",
"0.7159977",
"0.69688493",
"0.69501877",
"0.69316775",
"0.6871945",
"0.68234944",
"0.68102086",
"0.68014073",
"0.6753063",
"0.6722859",
"0.6484509",
"0.6474... | 0.80569226 | 2 |
Remove raw ansi codes from string. This assumes pure ANSIbytecodes in the string. | def strip_raw_ansi(string, parser=ANSI_PARSER):
string = string or ""
return parser.strip_raw_codes(string) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def strip_raw_codes(self, string):\n return self.ansi_regex.sub(\"\", string)",
"def _strip_ansi(s):\n if isinstance(s, str):\n return _ansi_codes.sub(r\"\\4\", s)\n else: # a bytestring\n return _ansi_codes_bytes.sub(r\"\\4\", s)",
"def strip_ansi(text: str):\n return _ANSI_SEQU... | [
"0.87081766",
"0.8648034",
"0.8256086",
"0.8233349",
"0.80976576",
"0.7904934",
"0.7811391",
"0.7804214",
"0.77672875",
"0.7241911",
"0.7163675",
"0.6972363",
"0.6726093",
"0.6719307",
"0.6691575",
"0.66256243",
"0.65370584",
"0.65299976",
"0.65225595",
"0.6421508",
"0.639212... | 0.87666535 | 0 |
When the ANSIString is first initialized, a few internal variables have to be set. The first is the parser. It is possible to replace Evennia's standard ANSI parser with one of your own syntax if you wish, so long as it implements the same interface. The second is the _raw_string. This is the original "dumb" string wit... | def __init__(self, *_, **kwargs):
self.parser = kwargs.pop("parser", ANSI_PARSER)
super().__init__()
if self._code_indexes is None:
self._code_indexes, self._char_indexes = self._get_indexes() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __new__(cls, *args, **kwargs):\n string = args[0]\n if not isinstance(string, str):\n string = to_str(string)\n parser = kwargs.get(\"parser\", ANSI_PARSER)\n decoded = kwargs.get(\"decoded\", False) or hasattr(string, \"_raw_string\")\n code_indexes = kwargs.pop(\... | [
"0.759578",
"0.66299665",
"0.6511502",
"0.6430652",
"0.6373246",
"0.5962795",
"0.595026",
"0.5923143",
"0.58111674",
"0.56774193",
"0.56453425",
"0.5592914",
"0.5546205",
"0.5448481",
"0.5434965",
"0.54049385",
"0.5396696",
"0.5311666",
"0.5299722",
"0.52903295",
"0.52667505"... | 0.64330405 | 3 |
Get the code characters from the given slice end to the next character. | def _get_interleving(self, index):
try:
index = self._char_indexes[index - 1]
except IndexError:
return ""
s = ""
while True:
index += 1
if index in self._char_indexes:
break
elif index in self._code_indexes:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _slice(self, slc):\n char_indexes = self._char_indexes\n slice_indexes = char_indexes[slc]\n # If it's the end of the string, we need to append final color codes.\n if not slice_indexes:\n # if we find no characters it may be because we are just outside\n # of ... | [
"0.66904676",
"0.56272787",
"0.5601637",
"0.5597977",
"0.5489332",
"0.5407429",
"0.5242382",
"0.5232866",
"0.5230355",
"0.5193014",
"0.51772743",
"0.51557153",
"0.5117892",
"0.51112586",
"0.5071772",
"0.50680083",
"0.50404",
"0.50283754",
"0.50283754",
"0.50283754",
"0.502693... | 0.53553426 | 6 |
Center some text with some spaces padding both sides. | def center(self, width, fillchar, _difference):
remainder = _difference % 2
_difference //= 2
spacing = self._filler(fillchar, _difference)
result = spacing + self + spacing + self._filler(fillchar, remainder)
return result | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def center(text, width=72, pad_character=\" \"):\n\n length = len(text)\n prefix = (width - length) // 2\n suffix = width - prefix - length\n return (prefix * \" \") + text + (suffix * \" \")",
"def center(self, y, text):\n text_length = len(text)\n center = (self.width - text_length) /... | [
"0.80811554",
"0.7658166",
"0.7238068",
"0.71484196",
"0.70411265",
"0.6732327",
"0.67026734",
"0.65578246",
"0.64217985",
"0.6413542",
"0.6373501",
"0.6365376",
"0.62086755",
"0.61123294",
"0.6103946",
"0.6038948",
"0.59886575",
"0.592724",
"0.5916673",
"0.58718437",
"0.5857... | 0.6846529 | 5 |
Left justify some text. | def ljust(self, width, fillchar, _difference):
return self + self._filler(fillchar, _difference) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def left_justify_string(keyword, value):\n return '%s' % keyword .ljust(40, \".\") + \": \" + '%s\\n' % value",
"def setTextJustification(justify='left'):\n dislin.txtjus(justdict[justify])",
"def _justifyText(text):\n chunks = text.split()\n line = []\n lineL... | [
"0.70211446",
"0.6973274",
"0.6926002",
"0.66053665",
"0.64391816",
"0.608226",
"0.60058796",
"0.5964261",
"0.58966905",
"0.5826484",
"0.5807397",
"0.57425207",
"0.5722568",
"0.57030445",
"0.570116",
"0.5676545",
"0.56101453",
"0.56056225",
"0.56056225",
"0.5562538",
"0.55583... | 0.58786225 | 9 |
Computes the precision for the specified values of k | def cls_acc(output, target, topk=(1,)):
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:
correct_k = correct[:k].view(-1).float().sum(0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def precision(gt, pred, k):\n k = min(len(pred), k)\n den = min(len(gt), k)\n return sum([int(pred[i] in gt) for i in range(k)]) / den",
"def precision_at_k(r, k):\n assert k >= 1\n r = np.asarray(r)[:k] != 0\n if r.size != k:\n raise ValueError('Relevance score length < k')\... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Create rotation matrix (or matrices) from rotation vector(s). This requires ``scipy`` to be installed, as is wraps ``Rotation.from_rotvec()`` from ``scipy.spatial.transform``. A rotation vector is a 3 dimensional vector which is codirectional to the axis of rotation and whose norm gives the angle of rotation. | def from_rotvec(rotvec: Variable) -> Variable:
from scipy.spatial.transform import Rotation as R
supported = [units.deg, units.rad]
if rotvec.unit not in supported:
raise UnitError(f"Rotation vector unit must be one of {supported}.")
r = R.from_rotvec(rotvec.values, degrees=rotvec.unit == units.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rotvec_to_rotmat(rot_vecs):\n l1norm = torch.norm(rot_vecs + 1e-8, p=2, dim=1)\n angle = torch.unsqueeze(l1norm, -1)\n normalized = torch.div(rot_vecs, angle)\n angle = angle * 0.5\n v_cos = torch.cos(angle)\n v_sin = torch.sin(angle)\n quat = torch.cat([v_cos, v_sin * normalized], dim=1)\... | [
"0.7482326",
"0.74473864",
"0.74473864",
"0.74473864",
"0.744278",
"0.7276563",
"0.72197217",
"0.6919554",
"0.68865687",
"0.68424106",
"0.66304725",
"0.6563758",
"0.65410846",
"0.65309316",
"0.65082085",
"0.6438759",
"0.64297515",
"0.6389899",
"0.6381062",
"0.63424873",
"0.63... | 0.7905172 | 0 |
Represent a rotation matrix (or matrices) as rotation vector(s). This requires ``scipy`` to be installed, as is wraps ``Rotation.as_rotvec()`` from ``scipy.spatial.transform``. A rotation vector is a 3 dimensional vector which is codirectional to the axis of rotation and whose norm gives the angle of rotation. | def as_rotvec(rotation: Variable, *, unit='rad') -> Variable:
unit = Unit(unit)
supported = [units.deg, units.rad]
if unit not in supported:
raise UnitError(f"Rotation vector unit must be one of {supported}.")
from scipy.spatial.transform import Rotation as R
r = R.from_matrix(rotation.value... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rotvec_to_rotmat(rot_vecs):\n l1norm = torch.norm(rot_vecs + 1e-8, p=2, dim=1)\n angle = torch.unsqueeze(l1norm, -1)\n normalized = torch.div(rot_vecs, angle)\n angle = angle * 0.5\n v_cos = torch.cos(angle)\n v_sin = torch.sin(angle)\n quat = torch.cat([v_cos, v_sin * normalized], dim=1)\... | [
"0.7438291",
"0.7256614",
"0.70737773",
"0.69687724",
"0.6920612",
"0.68877596",
"0.68676823",
"0.6716539",
"0.6704537",
"0.6700242",
"0.66728187",
"0.66679",
"0.6662237",
"0.66551524",
"0.6653858",
"0.6630582",
"0.66219443",
"0.65896475",
"0.6561349",
"0.65157056",
"0.651130... | 0.74233806 | 1 |
Initialize media player for speaker group. | def __init__(self, rooms, raumfeld):
self._room = None
self._rooms = rooms
self._raumfeld = raumfeld
self._mute = None
self._media_position = None
self._media_position_updated_at = None
self._name = GROUP_PREFIX + repr(self._rooms)
self._state = None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def initAudio(self):\n\t\t# Initialize pitch detection\n\t\tself.listener = PitchDetect(channels=1)\n\t\tself.listener.listen()\n\t\tself.recording = False\n\t\tself.paused = False",
"def start(self):\n try:\n print(\"Initializing driver\")\n pcms = alsaaudio.pcms()\n mixe... | [
"0.62954795",
"0.5722663",
"0.54957545",
"0.54957545",
"0.54879105",
"0.548655",
"0.5472965",
"0.54660594",
"0.54404175",
"0.5276186",
"0.5273265",
"0.52257246",
"0.5203693",
"0.51476884",
"0.51429206",
"0.51200736",
"0.5115708",
"0.5101833",
"0.5067604",
"0.5062568",
"0.5057... | 0.52018404 | 13 |
Return the name of the entity. | def name(self):
return self._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def entity_name(self):\n return self.__entity_name",
"def entity_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"entity_name\")",
"def entity_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"entity_name\")",
"def name(self):\n return \"{} {}\".format(self.... | [
"0.8988123",
"0.8301365",
"0.8301365",
"0.7979657",
"0.79686373",
"0.7554025",
"0.75444305",
"0.7536728",
"0.7536728",
"0.7536728",
"0.7533515",
"0.7524631",
"0.7497374",
"0.74894994",
"0.74781936",
"0.74758714",
"0.74630326",
"0.74510914",
"0.74510914",
"0.74510914",
"0.7451... | 0.0 | -1 |
Return the class of this device, from component DEVICE_CLASSES. | def device_class(self):
return DEVICE_CLASS_SPEAKER | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def device_class(self):\n return DEVICE_CLASSES.get(self.sensor_data[\"model\"])",
"def device_class(self):\n return self.sensor_type[\"class\"]",
"def device_class(self):\n return SENSOR_TYPES[self.sensor][3].get(\"device_class\")",
"def get_class(self):\n return devices.get_clas... | [
"0.8727323",
"0.85219014",
"0.8472451",
"0.84448344",
"0.83117115",
"0.8308506",
"0.82424814",
"0.82424814",
"0.82424814",
"0.82424814",
"0.82424814",
"0.81989235",
"0.81953436",
"0.8126253",
"0.81106085",
"0.81106085",
"0.81106085",
"0.8061455",
"0.80546206",
"0.80546206",
"... | 0.5853706 | 81 |
Boolean if volume is currently muted. | def is_volume_muted(self):
return self._mute | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_volume_muted(self):\n return self._isMuted",
"def is_volume_muted(self):\n return self._muted",
"def is_volume_muted(self):\n return self._muted",
"def is_volume_muted(self):\n return self._muted",
"def is_volume_muted(self):\n return self._state.get(\"mute\", None... | [
"0.8894596",
"0.8876421",
"0.8876421",
"0.8876421",
"0.8850575",
"0.8813943",
"0.8236009",
"0.8189677",
"0.79365957",
"0.7864594",
"0.7705268",
"0.76767814",
"0.6824748",
"0.6756371",
"0.65655065",
"0.6539784",
"0.6454244",
"0.6447185",
"0.6404883",
"0.6397594",
"0.6362873",
... | 0.878747 | 6 |
Duration of current playing media in seconds. | def media_duration(self):
return self._media_duration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def media_duration(self):\n return self._table.active_track_total_time.total_seconds()",
"def media_duration(self):\n if (self._playing_localfile or self._playing_spotify or self._slave_mode or self._playing_mediabrowser or self._playing_mass) and self._state != STATE_UNAVAILABLE:\n retu... | [
"0.8430361",
"0.8334683",
"0.8277018",
"0.8223718",
"0.82231116",
"0.8073512",
"0.7930315",
"0.77955306",
"0.7728377",
"0.76674944",
"0.7623453",
"0.76180184",
"0.7517885",
"0.75135094",
"0.745792",
"0.74488115",
"0.74488115",
"0.74488115",
"0.74488115",
"0.74488115",
"0.7448... | 0.8319395 | 2 |
Album artist of current playing media, music track only. | def media_album_artist(self):
return self._media_album_artist | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def media_album_artist(self):\n media_status = self._media_status()[0]\n return media_status.album_artist if media_status else None",
"def get_album_artist(self) -> Optional[str]:\n return self.album_artist",
"def media_album_name(self):\n return self.coordinator.data.nowplaying[sel... | [
"0.8166083",
"0.7536242",
"0.7503102",
"0.7443186",
"0.73954284",
"0.7297919",
"0.72599804",
"0.7141392",
"0.70702606",
"0.70702606",
"0.7044305",
"0.701592",
"0.6992909",
"0.69480604",
"0.6943598",
"0.6873777",
"0.68483007",
"0.68429667",
"0.6745337",
"0.66968423",
"0.666276... | 0.78900635 | 1 |
Turn the media player on. | async def async_turn_on(self):
if not self._raumfeld.group_is_valid(self._rooms):
await self._raumfeld.async_create_group(self._rooms)
await self.async_update_transport_state()
else:
log_debug(
"Method was called although speaker group '%s' is invalid"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def media_play(self):\n self._state = STATE_PLAYING",
"def media_play(self):\n self._state = STATE_PLAYING",
"def turn_on(self) -> None:\n\n chromecast = self._get_chromecast()\n if not chromecast.is_idle:\n # Already turned on\n return\n\n if chromecast... | [
"0.73519504",
"0.73519504",
"0.7078982",
"0.6949333",
"0.69321245",
"0.691754",
"0.6683745",
"0.66493744",
"0.6647208",
"0.65766925",
"0.6549777",
"0.6524515",
"0.6471632",
"0.64542395",
"0.645368",
"0.6441062",
"0.63707316",
"0.6313826",
"0.6308783",
"0.6301015",
"0.6294558"... | 0.0 | -1 |
Update volume level of the player. | async def async_update_volume_level(self):
if self._raumfeld.group_is_valid(self._rooms):
group_volume = await self._raumfeld.async_get_group_volume(self._rooms)
elif self._is_spotify_sroom:
group_volume = await self._raumfeld.async_get_room_volume(self._room)
if group_vo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def volume(self, ctx, level:int):\n voice = discord.utils.get(self.bot.voice_clients, guild=ctx.guild)\n\n if voice:\n if voice.is_playing():\n if 0 <= level <= 200:\n voice.source.volume = level / 100\n await ctx.send(f\"Adjusted ... | [
"0.7791427",
"0.76886475",
"0.76133066",
"0.75246054",
"0.7487051",
"0.74683243",
"0.7429298",
"0.7367068",
"0.73243827",
"0.7320727",
"0.73177016",
"0.7285377",
"0.725924",
"0.7255115",
"0.7252458",
"0.72327656",
"0.722859",
"0.7212008",
"0.7203099",
"0.7202986",
"0.7199893"... | 0.79557216 | 0 |
Initialize media player for room. | def __init__(self, room, raumfeld):
super().__init__(room, raumfeld)
self._room = room
self._rooms = [room]
self._raumfeld = raumfeld
self._name = ROOM_PREFIX + repr(self._rooms)
self._unique_id = obj_to_uid([room])
self._icon = "mdi:speaker" | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def on_room_init(self, room_obj):\n pass",
"def __init__(self, rooms, raumfeld):\n self._room = None\n self._rooms = rooms\n self._raumfeld = raumfeld\n self._mute = None\n self._media_position = None\n self._media_position_updated_at = None\n self._n... | [
"0.6620439",
"0.60427153",
"0.58115286",
"0.57517445",
"0.5751311",
"0.56645346",
"0.5613298",
"0.56061417",
"0.5441234",
"0.5429454",
"0.5400468",
"0.5352614",
"0.5340262",
"0.5340262",
"0.5329958",
"0.53090507",
"0.5305883",
"0.530271",
"0.5298461",
"0.5277964",
"0.52687293... | 0.4907005 | 65 |
Sets the tag_id1 of this TagArithmeticsRequest. | def tag_id1(self, tag_id1):
if self._configuration.client_side_validation and tag_id1 is None:
raise ValueError("Invalid value for `tag_id1`, must not be `None`") # noqa: E501
self._tag_id1 = tag_id1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def trilha1(self, trilha1):\n self._trilha1 = trilha1",
"def y1_min(self, y1_min):\n\n self._y1_min = y1_min",
"def id_tag(self, id_tag):\n\n self._id_tag = id_tag",
"def tag_id2(self, tag_id2):\n if self._configuration.client_side_validation and tag_id2 is None:\n rais... | [
"0.534883",
"0.5223815",
"0.51764494",
"0.5052252",
"0.5029176",
"0.49238503",
"0.49195242",
"0.49195242",
"0.49195242",
"0.49195242",
"0.48786312",
"0.48618054",
"0.48499668",
"0.48447695",
"0.4796234",
"0.47526667",
"0.47308666",
"0.46755943",
"0.4663619",
"0.46458504",
"0.... | 0.8012396 | 0 |
Sets the tag_id2 of this TagArithmeticsRequest. | def tag_id2(self, tag_id2):
if self._configuration.client_side_validation and tag_id2 is None:
raise ValueError("Invalid value for `tag_id2`, must not be `None`") # noqa: E501
self._tag_id2 = tag_id2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def api_token2(self, api_token2):\n\n self._api_token2 = api_token2",
"def trilha2(self, trilha2):\n self._trilha2 = trilha2",
"def address_2(self, address_2):\n\n self._address_2 = address_2",
"def set_count2(self, count2):\n self._count2 = count2",
"def address2(self, address2... | [
"0.553788",
"0.5498336",
"0.54320604",
"0.54060537",
"0.5397963",
"0.5348048",
"0.5263469",
"0.521266",
"0.5204049",
"0.5124086",
"0.51215476",
"0.51154023",
"0.5074828",
"0.5021198",
"0.49872315",
"0.49452",
"0.4932307",
"0.49146548",
"0.49082518",
"0.4883271",
"0.48774037",... | 0.8170074 | 0 |
Sets the operation of this TagArithmeticsRequest. | def operation(self, operation):
if self._configuration.client_side_validation and operation is None:
raise ValueError("Invalid value for `operation`, must not be `None`") # noqa: E501
self._operation = operation | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def operation(self, operation: str):\n\n self._operation = operation",
"def setOp(self, op):\n self.__op = op",
"def setOp(self, op):\n self.__op = op",
"def set_operator(self, op):\n self.operator = op",
"def set_operation(self, operation):\n self._data_dict[self.OP_GID]... | [
"0.7114669",
"0.70916855",
"0.70916855",
"0.6847067",
"0.6434885",
"0.6303979",
"0.62890697",
"0.626162",
"0.622455",
"0.6220097",
"0.60940593",
"0.60939014",
"0.6092764",
"0.6064407",
"0.6036385",
"0.6025825",
"0.59361255",
"0.5904367",
"0.58845437",
"0.58740306",
"0.5874030... | 0.6517532 | 4 |
Sets the new_tag_name of this TagArithmeticsRequest. | def new_tag_name(self, new_tag_name):
self._new_tag_name = new_tag_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def newname(self, newname) :\n\t\ttry :\n\t\t\tself._newname = newname\n\t\texcept Exception as e:\n\t\t\traise e",
"def name(self, new_name: str) -> None:\n raise NotImplementedError()",
"def name(self, new_name):\n if type(new_name) != str:\n raise TypeError\n elif len(new_nam... | [
"0.63063127",
"0.6124158",
"0.6080761",
"0.5998559",
"0.5891454",
"0.5850964",
"0.5757254",
"0.5597206",
"0.5597206",
"0.5516831",
"0.5460057",
"0.5368667",
"0.5368312",
"0.5368312",
"0.5368312",
"0.5266484",
"0.52416307",
"0.5209401",
"0.51822025",
"0.51619345",
"0.5160548",... | 0.8100745 | 0 |
Returns true if both objects are equal | def __eq__(self, other):
if not isinstance(other, TagArithmeticsRequest):
return False
return self.to_dict() == other.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False",
"def __eq__(self, other):\n if i... | [
"0.8088463",
"0.8088463",
"0.80553037",
"0.7983272",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
... | 0.0 | -1 |
Returns true if both objects are not equal | def __ne__(self, other):
if not isinstance(other, TagArithmeticsRequest):
return True
return self.to_dict() != other.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True",
"def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)",
"def __ne__(self, other) -> bool:\n return not self.__eq__(other)",
"def __eq__(self, other):\n ... | [
"0.84560555",
"0.83913696",
"0.8143685",
"0.81403786",
"0.8131871",
"0.8093231",
"0.80915105",
"0.80915105",
"0.80915105",
"0.8084564",
"0.8084564",
"0.8075547",
"0.8075547",
"0.8065006",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.8... | 0.0 | -1 |
Applies batch normalization. Using the implementation in github.com/ tensorflow/tpu/blob/master/models/official/amoeba_net/network_utils.pyL550 | def FProp(self, theta, inputs):
p = self.params
inputs_dtype = inputs.dtype
inputs = tf.cast(inputs, p.dtype)
inputs = py_utils.with_dependencies([
py_utils.assert_shape_match([tf.shape(inputs)[-1]], tf.shape(
theta.beta))
], inputs)
with tf.name_scope(p.name) as scope:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def batch_norm(inputs, training, data_format):\n # We set fused=True for a significant performance boost. See\n # https://www.tensorflow.org/performance/performance_guide#common_fused_ops\n return tf.compat.v1.layers.batch_normalization(\n inputs=inputs, axis=1 if data_format == 'channels_first' else 3,\n ... | [
"0.75918204",
"0.75173163",
"0.7237173",
"0.7201931",
"0.7191914",
"0.71727455",
"0.7151578",
"0.7123964",
"0.70798963",
"0.70748615",
"0.7063239",
"0.7060265",
"0.7038132",
"0.7017438",
"0.70064837",
"0.69978297",
"0.6991045",
"0.6938585",
"0.6909809",
"0.6883395",
"0.685426... | 0.0 | -1 |
Specification for the hosting environment (App Service Environment) to use for the App Service Plan | def hosting_environment_profile(self) -> pulumi.Output[Optional['outputs.HostingEnvironmentProfileResponse']]:
return pulumi.get(self, "hosting_environment_profile") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_appengine():\n runtime = os.environ.get('SERVER_SOFTWARE', '')\n return (runtime.startswith('Development/') or\n runtime.startswith('Google App Engine/'))",
"def _get_environment():\n namespace = current_app.config.get('POD_NAMESPACE').lower()\n if namespace.endswith('dev'):... | [
"0.62409717",
"0.6178254",
"0.61509526",
"0.61245",
"0.6085321",
"0.60623527",
"0.6046915",
"0.60023123",
"0.5833074",
"0.5808407",
"0.5691482",
"0.56674993",
"0.5662941",
"0.56385934",
"0.563557",
"0.56213295",
"0.561972",
"0.5601653",
"0.55928576",
"0.558175",
"0.5570957",
... | 0.5582363 | 19 |
Reshape anchors and features and adjust predictions to each spatial grid point and anchor size. | def yolo_head_base(features, anchors, num_classes, input_shape):
dtype = K.dtype(features)
num_anchors = len(anchors)
grid, grid_shape = construct_grid(features)
# Reshape anchors and features
anchors_shape = [1, 1, 1, num_anchors, 2] # batch, height, width, num_anchors, box_params
anchors_t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_anchor_grid(self, width, height, batch_size):\n anchors = tf.cast(self._anchors, dtype = self.dtype)\n anchors = tf.reshape(anchors, [1, -1])\n anchors = tf.repeat(anchors, width*height, axis = 0)\n anchors = tf.reshape(anchors, [1, width, height, self._num, -1])\n ancho... | [
"0.6306878",
"0.62741494",
"0.5864684",
"0.5862728",
"0.58572406",
"0.58340627",
"0.58318233",
"0.5824073",
"0.5784691",
"0.5782567",
"0.5772264",
"0.57259905",
"0.57013845",
"0.5698426",
"0.5614189",
"0.5600865",
"0.5572389",
"0.55572",
"0.5542743",
"0.55130154",
"0.5512533"... | 0.57401454 | 11 |
Normalize box confidence and conditional class probability using sigmoid (logistic) function. | def yolo_head_sigmoid(features, anchors, num_classes, input_shape):
_, features, box_xy, box_wh = yolo_head_base(features, anchors, num_classes, input_shape)
box_confidence = K.sigmoid(features[..., 4:5])
box_class_probabilities = K.sigmoid(features[..., 5:])
return box_xy, box_wh, box_confidence, bo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_sigmoid_function_returns_correct_value(self):\n self.assertAlmostEqual(sigmoid(0), 0.5)\n self.assertAlmostEqual(sigmoid(1), 1 / (1 + math.e**-1))\n np.testing.assert_array_almost_equal(sigmoid([0, 0, 0]),\n np.array([0.5, 0.5, 0.5]))",
"d... | [
"0.63233954",
"0.6314292",
"0.6185349",
"0.6171512",
"0.61469966",
"0.6127622",
"0.6125243",
"0.6125243",
"0.6118298",
"0.61178476",
"0.6112208",
"0.610942",
"0.610942",
"0.610942",
"0.610942",
"0.610942",
"0.610942",
"0.61067116",
"0.61011183",
"0.61001694",
"0.6099178",
"... | 0.6021711 | 32 |
Convert final layer features to bounding box parameters. | def yolo_head(features, anchors, num_classes, input_shape, calc_loss=False):
if calc_loss:
return yolo_head_base(features, anchors, num_classes, input_shape)
else:
return yolo_head_sigmoid(features, anchors, num_classes, input_shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _recover_boundingboxes(features):\n ymin = features['image/object/bbox/ymin'].values\n xmin = features['image/object/bbox/xmin'].values\n ymax = features['image/object/bbox/ymax'].values\n xmax = features['image/object/bbox/xmax'].values\n return tf.transpose([ymin, xmin, ymax, xmax])",
"def t... | [
"0.7014735",
"0.63791776",
"0.630396",
"0.6226149",
"0.6146508",
"0.6130948",
"0.61238664",
"0.61238664",
"0.61097616",
"0.60883397",
"0.60687864",
"0.6041045",
"0.6035037",
"0.5999887",
"0.59981453",
"0.599375",
"0.59856915",
"0.59845275",
"0.59782374",
"0.59268117",
"0.5925... | 0.0 | -1 |
Returns True if any preset positions are defined. | def has_presets(self):
return bool(self.positions.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def has_positions(self):\n return self.positions.exists()",
"def hasAtlasPos(self):\n return self.doesHaveAtlasPos",
"def is_there_open_positions(self):\n if len(self.active_long_positions + self.active_short_positions) > 0:\n return True\n else:\n return False... | [
"0.7677596",
"0.69187546",
"0.6715942",
"0.6642761",
"0.66015834",
"0.65138274",
"0.63122183",
"0.62715316",
"0.62039334",
"0.61716396",
"0.6133338",
"0.6078412",
"0.6068841",
"0.6055665",
"0.6038014",
"0.6032362",
"0.6010009",
"0.6003128",
"0.5981785",
"0.5975871",
"0.597585... | 0.79911655 | 0 |
The set position of this preset, returned as a float. | def pos(self):
return self.info['value'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_position(self):\n return self.position",
"def get_position(self):\n return self.position",
"def get_position(self):\n return self.__position",
"def position(self):\n return self.properties.get('position')",
"def get_position(self):\n return self._position",
"def... | [
"0.71680695",
"0.71680695",
"0.71537524",
"0.7127139",
"0.71192497",
"0.7108307",
"0.7108307",
"0.7108307",
"0.71032614",
"0.7101326",
"0.7073675",
"0.7073675",
"0.7049938",
"0.7049892",
"0.7049892",
"0.7049892",
"0.7049892",
"0.7049892",
"0.7049892",
"0.7049892",
"0.7049892"... | 0.6831233 | 41 |
Force a doc to be saved to a specific locale. When docs have a default locale that differs from the collection default it causes issues since the cache does not know that None locale is not correct. This allows for the None locale to be forced to the default locale from the doc. | def add_document_locale(self, doc, locale):
col = doc.collection
self.ensure_collection(col)
cache_key = CollectionCache.generate_cache_key(
doc.pod_path, locale)
self._cache[col.collection_path]['docs'][cache_key] = doc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setDocumentDefaultLanguage(self,languageCode): \n self.PDFreactorConfiguration.in1[\"documentDefaultLanguage\"] = languageCode",
"def setPortalLocale( self ):\n info = getLanguageInfo( self )\n\n # find default and effective locale settings\n def_locale = info.get( sys.platform + ... | [
"0.5911646",
"0.5709746",
"0.5682461",
"0.5682461",
"0.56811845",
"0.56660455",
"0.56126976",
"0.55552644",
"0.5536602",
"0.5496984",
"0.5496984",
"0.5452629",
"0.5360123",
"0.53300834",
"0.5286195",
"0.51741016",
"0.5164684",
"0.5157162",
"0.50978625",
"0.50603145",
"0.50360... | 0.6667687 | 0 |
A list of tuples of ngram length and entropies | def solution(self):
return [("simple 1", 1.),
("simple 2", 1.),
("simple 3", 1.),
("simple 4", 1.),
("simple 5", 1.),
("simple 10", 1.),
("simple 15", 1.),
("thai 1", 1.),
("thai 2", 1.),
("thai 3", 1.),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngrams(words, n=1):\n return [tuple(words[j:j + n]) for j in range(len(words) - n + 1)]",
"def iter_ngrams(self, sentence, n):\n return [tuple(sentence[i : i+n]) for i in range(len(sentence)-n+1)]",
"def ngrams_(text, n):\n return zip(*[text[i:] for i in range(n)])",
"def ngrams(sequence, n)... | [
"0.740325",
"0.7178153",
"0.70330185",
"0.70074934",
"0.70030904",
"0.69194",
"0.68814766",
"0.6878361",
"0.6877113",
"0.68658435",
"0.676842",
"0.6690688",
"0.66723615",
"0.66700286",
"0.66164297",
"0.6609132",
"0.6598335",
"0.65886",
"0.65826875",
"0.6524003",
"0.64944375",... | 0.0 | -1 |
Erodibility (units depend on m_sp). | def K(self):
return self._K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def calculate_E(self):\n \n E = 0\n for i in xrange(self.size):\n Ei = self.h[i]\n Ei += 0.5*sum((1 if self.spins[j] else -1)*self.J[i,j] for j in self.adjacency[i])\n if not self.spins[i]:\n Ei *= -1\n E += Ei\n \n retur... | [
"0.6574589",
"0.6383843",
"0.63556284",
"0.62234074",
"0.62164634",
"0.6160409",
"0.60991687",
"0.6078346",
"0.6075852",
"0.6075852",
"0.6035426",
"0.60313797",
"0.5998661",
"0.59906566",
"0.59837174",
"0.5983408",
"0.59821844",
"0.59819335",
"0.595832",
"0.59577554",
"0.5954... | 0.0 | -1 |
The kind of the event. | def kind(self) -> EventKind:
return EventKind.CREATE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_type(self):\n return self.event_type",
"def event_type(self) -> int:\n return self.data[\"args\"][\"eventType\"]",
"def type(self) -> str:\n return self._event.get('type')",
"def _get_event_type(event):\n return event.type()",
"def _get_event_type(event):\n return... | [
"0.80608773",
"0.7927376",
"0.7807758",
"0.756466",
"0.756466",
"0.7408034",
"0.7215459",
"0.71347666",
"0.71136683",
"0.7104409",
"0.7102366",
"0.7102366",
"0.700157",
"0.69130903",
"0.6896759",
"0.68965006",
"0.68674403",
"0.68600154",
"0.68600154",
"0.68600154",
"0.6860015... | 0.69320023 | 13 |
The kind of the event. | def kind(self) -> EventKind:
return EventKind.UPDATE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_type(self):\n return self.event_type",
"def event_type(self) -> int:\n return self.data[\"args\"][\"eventType\"]",
"def type(self) -> str:\n return self._event.get('type')",
"def _get_event_type(event):\n return event.type()",
"def _get_event_type(event):\n return... | [
"0.80608773",
"0.7927376",
"0.7807758",
"0.756466",
"0.756466",
"0.7408034",
"0.7215459",
"0.71347666",
"0.71136683",
"0.7104409",
"0.7102366",
"0.7102366",
"0.700157",
"0.69320023",
"0.6896759",
"0.68965006",
"0.68674403",
"0.68600154",
"0.68600154",
"0.68600154",
"0.6860015... | 0.69130903 | 14 |
The kind of the event. | def kind(self) -> EventKind:
return EventKind.ARCHIVE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_type(self):\n return self.event_type",
"def event_type(self) -> int:\n return self.data[\"args\"][\"eventType\"]",
"def type(self) -> str:\n return self._event.get('type')",
"def _get_event_type(event):\n return event.type()",
"def _get_event_type(event):\n return... | [
"0.80608773",
"0.7927376",
"0.7807758",
"0.756466",
"0.756466",
"0.7408034",
"0.7215459",
"0.71347666",
"0.71136683",
"0.7104409",
"0.7102366",
"0.7102366",
"0.700157",
"0.69320023",
"0.69130903",
"0.6896759",
"0.68965006",
"0.68674403",
"0.68600154",
"0.68600154",
"0.6860015... | 0.0 | -1 |
Assign a ref id to the root. | def assign_ref_id(self: _EntityT, ref_id: EntityId) -> _EntityT:
return dataclasses.replace(self, ref_id=ref_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tree_id(self, value):\n self._tree_id = value",
"def set_id(self, refobj, identifier):\n cmds.setAttr(\"%s.identifier\" %refobj, identifier)",
"def _refresh_tree_ref(self):\n self._tree_ref = RedBlackNodeRef(\n address=self._storage.get_root_address())",
"def _set_id(self,... | [
"0.67013055",
"0.63905144",
"0.6273029",
"0.6264495",
"0.6264495",
"0.6264495",
"0.6264495",
"0.6264495",
"0.6264495",
"0.62510186",
"0.62510186",
"0.62510186",
"0.62510186",
"0.62510186",
"0.62510186",
"0.62284154",
"0.6214882",
"0.6193825",
"0.6180954",
"0.6180954",
"0.6180... | 0.6294308 | 2 |
Wait on the pool to clear and shut down the worker threads. | def join(self):
# A nicer place for this would be shutdown(), but this being a mixin,
# that method can't safely do anything with that method, thus we add
# an extra method explicitly for clearing the queue and shutting
# down the workers.
self._request_queue.join()
self.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def end_thread_pool():\n main_thread = threading.currentThread()\n for aThread in threading.enumerate():\n if aThread is main_thread:\n continue\n aThread.join()\n\n fout.debug(\"Waiting for threads to finish\")",
"def shutdown(self):\n self.all_wo... | [
"0.7567947",
"0.7478775",
"0.72960865",
"0.7208273",
"0.7014648",
"0.6934748",
"0.682342",
"0.68124866",
"0.68110824",
"0.67961574",
"0.6664155",
"0.66541857",
"0.66436934",
"0.6625442",
"0.6571183",
"0.6543631",
"0.6541847",
"0.6501322",
"0.64709294",
"0.6456565",
"0.6435285... | 0.0 | -1 |
Initializes a new CreateVnicDetails object with values from keyword arguments. | def __init__(self, **kwargs):
self.swagger_types = {
'assign_public_ip': 'bool',
'defined_tags': 'dict(str, dict(str, object))',
'display_name': 'str',
'freeform_tags': 'dict(str, str)',
'hostname_label': 'str',
'nsg_ids': 'list[str]',
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self, **kwargs):\n\n super(NUVM, self).__init__()\n\n # Read/Write Attributes\n \n self._l2_domain_ids = None\n self._vrsid = None\n self._uuid = None\n self._name = None\n self._last_updated_by = None\n self._reason_type = None\n s... | [
"0.58486354",
"0.57350373",
"0.57325184",
"0.5668717",
"0.566034",
"0.56057274",
"0.5588939",
"0.5509166",
"0.5442281",
"0.5425176",
"0.5423274",
"0.5352699",
"0.5343244",
"0.5340169",
"0.53383154",
"0.53373766",
"0.5330697",
"0.5315409",
"0.53100806",
"0.53028905",
"0.528039... | 0.5162869 | 36 |
Gets the assign_public_ip of this CreateVnicDetails. Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the | def assign_public_ip(self):
return self._assign_public_ip | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def assign_public_ip(self) -> Optional[bool]:\n return pulumi.get(self, \"assign_public_ip\")",
"def use_public_ip(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"use_public_ip\")",
"def assign_public_ip(self, assign_public_ip):\n self._assign_public_ip = assign_public_i... | [
"0.78636384",
"0.70923126",
"0.70799303",
"0.6999729",
"0.65479636",
"0.65089864",
"0.65089864",
"0.65089864",
"0.65089864",
"0.65089864",
"0.65089864",
"0.64448804",
"0.6405674",
"0.6405674",
"0.6396353",
"0.6391225",
"0.6206045",
"0.6151504",
"0.61391056",
"0.60572886",
"0.... | 0.7525753 | 1 |
Sets the assign_public_ip of this CreateVnicDetails. Whether the VNIC should be assigned a public IP address. Defaults to whether the subnet is public or private. If not set and the VNIC is being created in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the | def assign_public_ip(self, assign_public_ip):
self._assign_public_ip = assign_public_ip | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def assign_public_ip(self) -> Optional[bool]:\n return pulumi.get(self, \"assign_public_ip\")",
"def assign_public_ip(self):\n return self._assign_public_ip",
"def associate_public_ip_address(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"associate_public_ip_address\")"... | [
"0.764933",
"0.7273591",
"0.6556234",
"0.6522335",
"0.63009053",
"0.5979417",
"0.5810844",
"0.5726747",
"0.5710008",
"0.5710008",
"0.5710008",
"0.5710008",
"0.5710008",
"0.5710008",
"0.5648342",
"0.5565235",
"0.5558319",
"0.5518411",
"0.55051625",
"0.55051625",
"0.5418474",
... | 0.8156481 | 0 |
Gets the defined_tags of this CreateVnicDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. | def defined_tags(self):
return self._defined_tags | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tags(self):\r\n return resources.Tags(self)",
"def get_tags(self) -> Dict:\n return self.orthanc.get_instance_tags(self.identifier)",
"def tags(self) -> Dict:\n return dict(self.client.get_instances_id_tags(self.id_))",
"def tags(self) -> Mapping[str, Any]:\n return pulumi.get... | [
"0.63338214",
"0.6283461",
"0.6166718",
"0.5957627",
"0.5957627",
"0.5919683",
"0.590049",
"0.590049",
"0.590049",
"0.590049",
"0.58847785",
"0.58345073",
"0.58237463",
"0.5794445",
"0.576102",
"0.5735706",
"0.57183737",
"0.5655126",
"0.5641513",
"0.56313336",
"0.56313336",
... | 0.7247401 | 0 |
Gets the display_name of this CreateVnicDetails. A userfriendly name for the VNIC. Does not have to be unique. Avoid entering confidential information. | def display_name(self):
return self._display_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")",
"def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")",
"def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")",
"def display_name(self) -> str:\n return pulumi.... | [
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.7181758",
"0.71800166",
"0.70896244",
"0.7076876",
"0.70541644",
"0.70335066",
"0.7022425",
"0.6979298",
"0.6968414",
"0.69625145"... | 0.6942108 | 28 |
Sets the display_name of this CreateVnicDetails. A userfriendly name for the VNIC. Does not have to be unique. Avoid entering confidential information. | def display_name(self, display_name):
self._display_name = display_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_display_name(self, display_name):\n self._call('set_display_name', display_name=display_name)",
"def display_name(self, display_name: str):\n\n self._display_name = display_name",
"def display_name(self, display_name):\n\n self._display_name = display_name",
"def display_name(sel... | [
"0.727378",
"0.7195423",
"0.7008682",
"0.7008682",
"0.7008682",
"0.7008682",
"0.7008682",
"0.7008682",
"0.6817739",
"0.6639191",
"0.6578641",
"0.6397187",
"0.63337225",
"0.6252147",
"0.602324",
"0.5998106",
"0.57858413",
"0.5754983",
"0.56943053",
"0.56868285",
"0.5678908",
... | 0.70082307 | 12 |
Gets the freeform_tags of this CreateVnicDetails. Freeform tags for this resource. Each tag is a simple keyvalue pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. | def freeform_tags(self):
return self._freeform_tags | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tags(self):\r\n return resources.Tags(self)",
"def freeform_tags(self, freeform_tags):\n self._freeform_tags = freeform_tags",
"def tags(self):\n return self.get(\"tags\")",
"def tags(self):\n if not hasattr(self, \"_tags\"):\n self._parse_tags()\n return sel... | [
"0.59077364",
"0.57854223",
"0.5670684",
"0.55802965",
"0.55778",
"0.5572226",
"0.55591494",
"0.55469686",
"0.55392224",
"0.54917574",
"0.54872376",
"0.54871",
"0.54871",
"0.54871",
"0.54871",
"0.54871",
"0.54871",
"0.54871",
"0.54871",
"0.5457713",
"0.5440907",
"0.5437699"... | 0.7862045 | 0 |
Sets the private_ip of this CreateVnicDetails. A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet. This is the VNIC's primary private IP address. The value ap... | def private_ip(self, private_ip):
self._private_ip = private_ip | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(__self__, *,\n id: str,\n private_ip_address: Optional[str] = None):\n pulumi.set(__self__, \"id\", id)\n if private_ip_address is not None:\n pulumi.set(__self__, \"private_ip_address\", private_ip_address)",
"def private_ip_address(self) -> ... | [
"0.638079",
"0.61898994",
"0.6175905",
"0.6146835",
"0.6146835",
"0.6146835",
"0.6146835",
"0.6146835",
"0.6101162",
"0.607943",
"0.6068279",
"0.6068279",
"0.5918183",
"0.58367217",
"0.58081955",
"0.57626927",
"0.5704763",
"0.5645053",
"0.5548014",
"0.5520615",
"0.5469422",
... | 0.7833556 | 0 |
Gets the skip_source_dest_check of this CreateVnicDetails. Whether the source/destination check is disabled on the VNIC. Defaults to `false`, which means the check is performed. For information about why you would skip the source/destination check, see `Using a Private IP as a Route Target`__. | def skip_source_dest_check(self):
return self._skip_source_dest_check | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def skip_source_dest_check(self, skip_source_dest_check):\n self._skip_source_dest_check = skip_source_dest_check",
"def DisableSourceDestCheck(gwtable):\n ec2 = boto3.client(\"ec2\")\n for gw in gwtable:\n for networkif in gw[4]:\n if networkif[2] == True:\n ec2.mod... | [
"0.6896847",
"0.6282156",
"0.5142588",
"0.51289034",
"0.49770653",
"0.49345666",
"0.49245128",
"0.48808187",
"0.47942525",
"0.47330987",
"0.46501604",
"0.46486917",
"0.46113053",
"0.46049777",
"0.4575067",
"0.45608696",
"0.45444298",
"0.45275983",
"0.4522171",
"0.45089605",
"... | 0.7547208 | 0 |
Returns the config of the metric. | def get_config(self):
config = {
'multichannel': self._multichannel,
'complex_part': self._complex_part
}
base_config = super().get_config()
return {**base_config, **config} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_config(self):\n return self.config",
"def getConfig(self):\n \n return self.config",
"def _get_metric_config(self, config):\n metric_config = dict()\n metric_config['include_metrics'] = config.get('include_metrics', {})\n metric_config['exclude_metrics'] = conf... | [
"0.7521498",
"0.7379856",
"0.734749",
"0.73155147",
"0.73065525",
"0.7290282",
"0.7246697",
"0.71715665",
"0.71366733",
"0.708442",
"0.70828646",
"0.70828646",
"0.70828646",
"0.70828646",
"0.70828646",
"0.70828646",
"0.70828646",
"0.70828646",
"0.70828646",
"0.70828646",
"0.7... | 0.0 | -1 |
Saves user data to json file | def saveUser(self):
self.user["Video"] = ""
with open(self.user_file, "w+") as json_file:
json.dump(self.user, json_file, indent=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def save(self):\n settings_path = os.path.join(self.file_path, \"__file_data.json\")\n f = open( settings_path, 'w' )\n f.write( simplejson.dumps( self.fileList ) )\n f.close()\n\n settings_path = os.path.join(self.file_path, \"__user_data.json\")\n f = open( settings_path... | [
"0.78824675",
"0.77858216",
"0.7770097",
"0.7681449",
"0.7676774",
"0.75831914",
"0.7577822",
"0.7486958",
"0.7471856",
"0.7464171",
"0.7461964",
"0.7445167",
"0.7400255",
"0.7352219",
"0.7315982",
"0.73034674",
"0.73022413",
"0.72822946",
"0.72621244",
"0.72465557",
"0.72167... | 0.7748757 | 3 |
Return cluster name associated to this cluster. | def cluster_name(self):
return self.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cluster_name(self) -> str:\n return pulumi.get(self, \"cluster_name\")",
"def cluster_name(self) -> str:\n return pulumi.get(self, \"cluster_name\")",
"def cluster_name(self):\n return self._data['cluster_name']",
"def cluster_name(self) -> pulumi.Output[Optional[str]]:\n retu... | [
"0.93483365",
"0.93483365",
"0.93440086",
"0.9003979",
"0.857017",
"0.857017",
"0.857017",
"0.857017",
"0.857017",
"0.85378623",
"0.85378623",
"0.78946346",
"0.7676908",
"0.7676908",
"0.7676908",
"0.7676908",
"0.7676908",
"0.7584172",
"0.7584172",
"0.7584172",
"0.7584172",
... | 0.9224731 | 3 |
Return the version of ParallelCluster used to create the stack. | def version(self):
return self.get_tag(PCLUSTER_VERSION_TAG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_installed_parallelcluster_version():\n try:\n return pkg_resources.get_distribution(\"aws-parallelcluster\").version\n except Exception:\n logging.info(\"aws-parallelcluster is not installed through Python. Getting version from `pcluster version`.\")\n return json.loads(run_comma... | [
"0.7172301",
"0.69114655",
"0.61226064",
"0.6076605",
"0.6008926",
"0.5982086",
"0.59246606",
"0.58666533",
"0.5866092",
"0.58331037",
"0.5779591",
"0.5768975",
"0.57625335",
"0.57350236",
"0.57344544",
"0.5726138",
"0.57057726",
"0.5704155",
"0.5701811",
"0.56674147",
"0.566... | 0.7456593 | 0 |
Return the name of the bucket used to store cluster information. | def s3_bucket_name(self):
return self._get_param("ResourcesS3Bucket") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bucket_name(self) -> str:\n return pulumi.get(self, \"bucket_name\")",
"def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")",
"def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")",
"def bucket_name(self) -> str:\n ...",
"def bucket_name(se... | [
"0.8481708",
"0.84170717",
"0.84170717",
"0.8379437",
"0.8358847",
"0.8180422",
"0.78647774",
"0.78647774",
"0.78647774",
"0.78647774",
"0.78647774",
"0.7822855",
"0.7822855",
"0.7821484",
"0.77767867",
"0.77767867",
"0.77767867",
"0.77767867",
"0.77767867",
"0.77767867",
"0.... | 0.7356446 | 32 |
Return the artifact directory of the bucket used to store cluster information. | def s3_artifact_directory(self):
return self._get_param("ArtifactS3RootDirectory") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def artifact_s3_location(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"artifact_s3_location\")",
"def get_bucket():\n return FileBucket(os.path.join(context.site.data_path, 'buckets'))",
"def artifact_s3_location(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"artifact_s3_lo... | [
"0.68418944",
"0.6555396",
"0.65126324",
"0.63587976",
"0.63246346",
"0.63246346",
"0.6271472",
"0.6237503",
"0.62172496",
"0.61885023",
"0.6158658",
"0.61312306",
"0.61160827",
"0.6029655",
"0.6022836",
"0.60116494",
"0.59768504",
"0.596979",
"0.59576106",
"0.59367585",
"0.5... | 0.8010886 | 0 |
Return the log group name used in the cluster. | def log_group_name(self):
return self._get_param(CW_LOGS_CFN_PARAM_NAME) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def log_group_name(self) -> str:\n return jsii.get(self, \"logGroupName\")",
"def log_group_name(self) -> str:\n return jsii.get(self, \"logGroupName\")",
"def log_group_name(self) -> str:\n ...",
"def log_group_name(self) -> typing.Optional[str]:\n return self._values.get('log_gr... | [
"0.872002",
"0.872002",
"0.8630862",
"0.8413328",
"0.830252",
"0.7805423",
"0.76843417",
"0.7647623",
"0.7587739",
"0.7562975",
"0.7562975",
"0.7562975",
"0.75030464",
"0.7362719",
"0.7362719",
"0.72959495",
"0.71225375",
"0.7121467",
"0.70568",
"0.6989893",
"0.69807994",
"... | 0.8683248 | 2 |
Return the log group name used in the cluster. | def original_config_version(self):
return self._get_param("ConfigVersion") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def log_group_name(self) -> str:\n return jsii.get(self, \"logGroupName\")",
"def log_group_name(self) -> str:\n return jsii.get(self, \"logGroupName\")",
"def log_group_name(self):\n return self._get_param(CW_LOGS_CFN_PARAM_NAME)",
"def log_group_name(self) -> str:\n ...",
"def... | [
"0.87203085",
"0.87203085",
"0.8683434",
"0.8632139",
"0.8414106",
"0.8303147",
"0.7803401",
"0.7682674",
"0.7645446",
"0.75864524",
"0.7563832",
"0.7563832",
"0.7563832",
"0.75010806",
"0.73629755",
"0.73629755",
"0.7294274",
"0.71242005",
"0.7119935",
"0.7055076",
"0.698937... | 0.0 | -1 |
Return os of the instance. | def os(self) -> str:
os = None
attributes_tag = self._get_tag("parallelcluster:attributes")
if attributes_tag:
# tag is in the form "{BaseOS}, {Scheduler}, {Version}, {Architecture}"
os = attributes_tag.split(",")[0].strip()
return os | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def os(self):\n\n return self._os",
"def os(self):\n if not self._os:\n self._os = OperatingSystem().fullname\n return self._os",
"def os_type(self):\n\n return self._os_type",
"def operating_system(self):\n return self._operating_system",
"def get_os_name(cls)... | [
"0.8675697",
"0.83920884",
"0.7853757",
"0.7778958",
"0.7713059",
"0.76644206",
"0.76450473",
"0.7610751",
"0.75354135",
"0.74978125",
"0.74978125",
"0.739519",
"0.73583156",
"0.7314309",
"0.7195551",
"0.7172161",
"0.71512324",
"0.70368487",
"0.6979784",
"0.69445956",
"0.6923... | 0.769671 | 5 |
Return os of the instance. | def node_type(self) -> str:
return self._get_tag(PCLUSTER_NODE_TYPE_TAG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def os(self):\n\n return self._os",
"def os(self):\n if not self._os:\n self._os = OperatingSystem().fullname\n return self._os",
"def os_type(self):\n\n return self._os_type",
"def operating_system(self):\n return self._operating_system",
"def get_os_name(cls)... | [
"0.86758107",
"0.83920795",
"0.7853952",
"0.77793676",
"0.77133447",
"0.7696541",
"0.76648915",
"0.76452595",
"0.7612183",
"0.7535719",
"0.7497949",
"0.7497949",
"0.73951495",
"0.73588586",
"0.7313637",
"0.71950144",
"0.7172339",
"0.71512264",
"0.7037204",
"0.69802564",
"0.69... | 0.0 | -1 |
Get start time parameter. | def start_time(self):
return self.time_parser.start_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def start_time(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"start_time\")",
"def start_time(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"start_time\")",
"def start_time(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"start_time\")... | [
"0.824051",
"0.824051",
"0.81728613",
"0.81728613",
"0.81728613",
"0.81728613",
"0.81728613",
"0.81728613",
"0.8112851",
"0.8095657",
"0.79646844",
"0.79519874",
"0.79519874",
"0.7809111",
"0.7749493",
"0.7726916",
"0.7709826",
"0.76899356",
"0.7674112",
"0.76648027",
"0.7664... | 0.7864292 | 13 |
Get end time parameter. | def end_time(self):
return self.time_parser.end_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def endTime(self):\n return self.params['tend']",
"def end_time(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"end_time\")",
"def end_time(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"end_time\")",
"def end_time(self) -> Optional[pulumi.Input[str]]... | [
"0.8393331",
"0.8367724",
"0.8367724",
"0.83178",
"0.83023673",
"0.829464",
"0.8167978",
"0.79447854",
"0.79311675",
"0.79311675",
"0.79311675",
"0.79311675",
"0.79311675",
"0.79311675",
"0.7881161",
"0.78635037",
"0.7848844",
"0.7735988",
"0.76466817",
"0.7585127",
"0.749651... | 0.79901326 | 7 |
Given the request.data for a POST/PUT request, return a list containing the string values of all required keys that were not found in the request body | def _get_missing_keys(self):
REQUIRED_KEYS = [
'date_purchased', 'cost', 'supply_type_id'
]
return [key for key in REQUIRED_KEYS if not key in self.request.data] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def missing_data(self, data):\n missing_fields = []\n for key in data:\n if not key in request.json:\n missing_fields.append(key)\n if missing_fields:\n message = 'Missing ' + ', '.join(missing_fields)\n return self.bad_request(message)\n ... | [
"0.7066872",
"0.65371805",
"0.6352682",
"0.63181025",
"0.6304641",
"0.6144123",
"0.6057985",
"0.60222304",
"0.60209376",
"0.59523225",
"0.57802284",
"0.57345515",
"0.57011354",
"0.5668694",
"0.5663495",
"0.5661445",
"0.5650161",
"0.5640672",
"0.5596534",
"0.5560408",
"0.55574... | 0.6779446 | 1 |
Test behavior when user enters a nonexistent airport | def test_bad_airport(self):
result = self.client.get("/search?origin=foo&destination=DFW%2C+Dallas+TX&date=2018-05-21")
self.assertNotIn('<meter', result.data)
self.assertIn('enter a valid airport', result.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def validateAirport(self, code):\n print(code)\n if code in self.travel_db.airports:\n return True\n else:\n return False",
"def airportCodeInput(self, prompt):\n while True:\n code = input(prompt).upper()\n if code not in self.travel_db.air... | [
"0.6765042",
"0.627579",
"0.6072623",
"0.57010883",
"0.5679041",
"0.56602025",
"0.56072724",
"0.5607026",
"0.5599046",
"0.55974066",
"0.55877364",
"0.55098706",
"0.5479136",
"0.5456873",
"0.54414546",
"0.54117745",
"0.5397106",
"0.53923446",
"0.53829306",
"0.53717566",
"0.533... | 0.78061116 | 0 |
Compte le nombre de homicides par departement et renvoie une liste de dictionnaires. | def leadersmorts_dpt(source):
with open(source,encoding="utf-8",mode="r") as file:
nbmpd= {}
line = file.readline() # Lit la ligne d'entete
for line in file:
line = line.strip()
if len(line) > 0:
l = line.split(";")
leader = netoyer_donnees(l)
# tri departements
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_listu_dilucijskih_jedinica(self):\n popis = sorted(list(self.dilucijskeJedinice.keys()))\n return popis",
"def __qualitaetsListeProteins(self):\n rv = []\n pam30_sortierbar = {}\n for key in pam30.keys():\n pam30_sortierbar[str(pam30[key]) + \";\" + ''.join(k... | [
"0.56722075",
"0.5294771",
"0.5230781",
"0.5164404",
"0.5146248",
"0.514453",
"0.5136655",
"0.51231486",
"0.5116919",
"0.50965405",
"0.5060163",
"0.50564706",
"0.50479406",
"0.50393456",
"0.5027535",
"0.5027262",
"0.5000547",
"0.49811926",
"0.4973105",
"0.4951132",
"0.4936616... | 0.57043993 | 0 |
Create one hot vector(s) with the given index(indices). | def one_hot(index, dims, dtype=np.uint8):
if isinstance(index, int):
ret = np.zeros((dims,), dtype)
ret[index] = 1
elif isinstance(index, (list, tuple)):
seq_len = len(index)
ret = np.zeros((seq_len, dims), dtype)
ret[range(seq_len), index] = 1.0
else:
raise V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def to_one_hot(class_indices, num_classes):\n one_hot_vectors = np.zeros((len(class_indices), num_classes))\n for vector_arg, class_args in enumerate(class_indices):\n one_hot_vectors[vector_arg, class_args] = 1.0\n return one_hot_vectors",
"def indices_one_hot(labels_indices, num_classes=10):\n\... | [
"0.8203207",
"0.80401516",
"0.802442",
"0.7806052",
"0.7742916",
"0.7690608",
"0.76778626",
"0.7642406",
"0.76272255",
"0.76269335",
"0.7618186",
"0.76020956",
"0.74218327",
"0.7380696",
"0.73694414",
"0.7367286",
"0.7367286",
"0.7367286",
"0.7367286",
"0.73337185",
"0.710486... | 0.7622496 | 10 |
Equality comparator for pieces based on unique id. | def __eq__(self, other):
return type(self) == type(other) and self.id == other.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __cmp__(self, other):\n return cmp(self.id, other.id)",
"def __eq__(self, other):\n\n if isinstance(other, Board):\n if len(self.game_pieces) != len(other.game_pieces):\n return False\n for i in range(len(self.game_pieces)):\n if self.game_pie... | [
"0.59910655",
"0.5905149",
"0.574085",
"0.5656587",
"0.5581907",
"0.55629",
"0.5540001",
"0.55365694",
"0.5513981",
"0.54884505",
"0.5462814",
"0.5437914",
"0.5435172",
"0.5431115",
"0.5431115",
"0.5431115",
"0.5431115",
"0.54191816",
"0.5417348",
"0.5357102",
"0.5327266",
... | 0.53175986 | 22 |
returns a grid of NxN random values | def randomGrid(N):
grid = np.zeros((N,N), dtype=int)
for i in range(N):
for j in range(N):
if np.random.uniform() < 0.2:
# cell alive
grid[i,j] = int(np.random.uniform(low=1, high=(256*256*256)-1))
return grid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_random_grid(N):\n return np.random.choice(values, N*N, p=[0.2, 0.8]).reshape(N, N)",
"def generate_grid(height, width):\n return [[random.randint(0, 9) for _ in range(width)] for _ in range(height)]",
"def create_rand_grid(grid_size):\n\n return [[randint(0, 1) for x in range(0, grid_si... | [
"0.8541798",
"0.8015442",
"0.79219055",
"0.76515806",
"0.75354034",
"0.73701215",
"0.7245166",
"0.7208444",
"0.70687795",
"0.70450264",
"0.7014783",
"0.69634783",
"0.6945121",
"0.6873938",
"0.6846362",
"0.6846045",
"0.68194216",
"0.6780527",
"0.6752545",
"0.6751573",
"0.67304... | 0.79248273 | 2 |
Plot correlation matrix for given dataset. Returns correlation matrix. | def create_corr_mat(data, annot_sz=30):
assert isinstance(data, pd.DataFrame)
assert isinstance(annot_sz, int)
corr = data.corr()
ax = plt.figure()
ax.set_facecolor('xkcd:black')
mat = sns.heatmap(corr, vmin=-1, vmax=1, center=0, cmap=sns.diverging_palette(20, 220, n=200), square=True... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plot_corr_matrix(dataset):\n\tprint(\"\\tGenerating correlation matrix\")\n\n\tsns.set(style=\"white\")\n\tmatrix = dataset.corr(method=\"pearson\")\n\n\tmask = np.zeros_like(matrix, dtype=np.bool)\n\tmask[np.triu_indices_from(mask)] = True\n\n\tplt.subplots(figsize=(7, 7))\n\tcmap = sns.diverging_palette(220,... | [
"0.8344163",
"0.76961446",
"0.7539886",
"0.7494586",
"0.6970808",
"0.6865077",
"0.68142223",
"0.6723741",
"0.6610144",
"0.65412414",
"0.6503115",
"0.64569545",
"0.64488536",
"0.64392185",
"0.6428488",
"0.6402683",
"0.63358045",
"0.6280036",
"0.6260373",
"0.6253112",
"0.616041... | 0.57898575 | 37 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.