query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
BitmapFromImage(Image image, int depth=BITMAP_SCREEN_DEPTH) > Bitmap Creates bitmap object from a `wx.Image`. This has to be done to actually display a `wx.Image` as you cannot draw an image directly on a window. The resulting bitmap will use the provided colour depth (or that of the current screen colour depth if dept... | def wjpS(*qIxc, **B2fa):
wEf2 = nAU3.new_BitmapFromImage(*qIxc, **B2fa)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1mm(*qIxc, **B2fa):\n return nAU3.GraphicsContext_CreateBitmapFromImage(*qIxc, **B2fa)",
"def H1mm(*qIxc, **B2fa):\n return nAU3.GraphicsRenderer_CreateBitmapFromImage(*qIxc, **B2fa)",
"def cPjZ(VXjJ):\n g_NO = _EyF(100, 100)\n g_NO.img = VXjJ\n if not g_NO.img.mode in ('RGB', 'RGBA'):\n ... | [
"0.69020206",
"0.68821186",
"0.6081642",
"0.5737631",
"0.528582",
"0.5036075",
"0.5006972",
"0.4954756",
"0.48938522",
"0.48911813",
"0.48620242",
"0.48513743",
"0.4844292",
"0.4820692",
"0.4752281",
"0.4740078",
"0.47379437",
"0.47205204",
"0.47056055",
"0.4676553",
"0.46422... | 0.6748064 | 2 |
Create and return an iterator object for this pixel data object. (It's really a generator but I won't tell if you don't tell.) | def Vs4Q(YKHO):
TVTK = YKHO.GetWidth()
H2v2 = YKHO.GetHeight()
lEHr = YKHO.GetPixels()
class PixelFacade(object):
def xP7V(YKHO):
return lEHr.Get()
def fHNa(YKHO, *qIxc, **YSA3):
return lEHr.Set(*qIxc, **YSA3)
def zAg0(YKHO):
return str(YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return iter((YKHO.r, YKHO.g, YKHO.b))",
"def Vs4Q(YKHO) -> bDy6[DhiK]:\n for rdlD in range(YKHO.width):\n for fvDH in range(YKHO.height):\n yield (rdlD, fvDH)",
"def Vs4Q(YKHO):\n return YKHO.new_generator()",
"def Vs4Q(YKHO) -> bDy6[oyIN.ndarray]:\n return ite... | [
"0.7185932",
"0.704195",
"0.7009424",
"0.70085984",
"0.69445497",
"0.6707369",
"0.6656521",
"0.66507304",
"0.6626544",
"0.6603973",
"0.65893775",
"0.65809673",
"0.65670127",
"0.65628535",
"0.65628535",
"0.65628535",
"0.656241",
"0.6554855",
"0.6551232",
"0.6530925",
"0.648036... | 0.80068564 | 0 |
Create and return an iterator object for this pixel data object. (It's really a generator but I won't tell if you don't tell.) | def Vs4Q(YKHO):
TVTK = YKHO.GetWidth()
H2v2 = YKHO.GetHeight()
lEHr = YKHO.GetPixels()
class PixelFacade(object):
def xP7V(YKHO):
return lEHr.Get()
def fHNa(YKHO, *qIxc, **YSA3):
return lEHr.Set(*qIxc, **YSA3)
def zAg0(YKHO):
return str(YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return iter((YKHO.r, YKHO.g, YKHO.b))",
"def Vs4Q(YKHO) -> bDy6[DhiK]:\n for rdlD in range(YKHO.width):\n for fvDH in range(YKHO.height):\n yield (rdlD, fvDH)",
"def Vs4Q(YKHO):\n return YKHO.new_generator()",
"def Vs4Q(YKHO) -> bDy6[oyIN.ndarray]:\n return ite... | [
"0.7185932",
"0.704195",
"0.7009424",
"0.70085984",
"0.69445497",
"0.6707369",
"0.6656521",
"0.66507304",
"0.6626544",
"0.6603973",
"0.65893775",
"0.65809673",
"0.65670127",
"0.65628535",
"0.65628535",
"0.65628535",
"0.656241",
"0.6554855",
"0.6551232",
"0.6530925",
"0.648036... | 0.80068564 | 1 |
GetIcon(self, Size size, int flags=FALLBACK_SYSTEM) > Icon Returns the icon with the given size; if no such icon exists, returns the icon with size wxSYS_ICON_[XY]; if no such icon exists, returns the first icon in the bundle | def igU3(*qIxc, **B2fa):
return nAU3.IconBundle_GetIcon(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JRPO(*qIxc, **B2fa):\n return nAU3.IconBundle_GetIconOfExactSize(*qIxc, **B2fa)",
"def RMo0(YKHO, zNig, mWFP):\n RRxr = YKHO.Bitmap(zNig, mWFP)\n if not RRxr:\n return None\n _G4g = lnPd.EmptyIcon()\n _G4g.CopyFromBitmap(RRxr)\n return _G4g",
"def igU3(*qIxc, **B2fa):\n return n... | [
"0.77854365",
"0.7516236",
"0.6718111",
"0.6566577",
"0.6448748",
"0.630204",
"0.6273526",
"0.6244379",
"0.6107359",
"0.60509676",
"0.60171044",
"0.59989595",
"0.59839815",
"0.59307426",
"0.5878562",
"0.58748573",
"0.58705455",
"0.58486664",
"0.5845714",
"0.58413404",
"0.5840... | 0.7415483 | 2 |
CursorFromImage(Image image) > Cursor Constructs a cursor from a `wx.Image`. The mask (if any) will be used for setting the transparent portions of the cursor. | def uqIh(*qIxc, **B2fa):
wEf2 = nAU3.new_CursorFromImage(*qIxc, **B2fa)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cPjZ(Emd4, LNo8):\n if not isinstance(LNo8, j95N):\n tO9_ = 'Image must be an instance of QtImage. Got %s instead.'\n raise TypeError(tO9_ % type(LNo8))\n OD6s = Emd4()\n OD6s.add_image(LNo8, 'normal', 'on')\n return OD6s",
"def cPjZ(VXjJ):\n g_NO = _EyF(100, 100)\n g_NO.img =... | [
"0.5409688",
"0.52941555",
"0.5252865",
"0.5151481",
"0.50249416",
"0.49525768",
"0.49133223",
"0.48522064",
"0.47923043",
"0.46742597",
"0.45707953",
"0.44529173",
"0.4446382",
"0.44455945",
"0.4433005",
"0.44113636",
"0.43914685",
"0.4387616",
"0.43781245",
"0.4377276",
"0.... | 0.7501796 | 0 |
ContainsRect(self, Rect rect) > int | def be_r(*qIxc, **B2fa):
return nAU3.Region_ContainsRect(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CuUu(YKHO, mawX):\n Fg_i = YKHO.left() > mawX.right() or YKHO.right() < mawX.left() or YKHO.top() < mawX.bottom() or (YKHO.bottom() > mawX.top())\n return not Fg_i",
"def P10m(YKHO, mawX):\n return mawX.right >= YKHO.left and mawX.left < YKHO.right and (mawX.bottom >= YKHO.top) and (mawX.top < YKHO.... | [
"0.7654775",
"0.7641278",
"0.76239204",
"0.7585947",
"0.7488703",
"0.71274495",
"0.70882636",
"0.70691985",
"0.7032989",
"0.68949074",
"0.68255836",
"0.6813473",
"0.6725578",
"0.66745156",
"0.66694385",
"0.6660935",
"0.6637035",
"0.6634642",
"0.65776503",
"0.657046",
"0.65704... | 0.8185169 | 0 |
IntersectRect(self, Rect rect) > bool | def BJom(*qIxc, **B2fa):
return nAU3.Region_IntersectRect(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P10m(YKHO, mawX):\n return mawX.right >= YKHO.left and mawX.left < YKHO.right and (mawX.bottom >= YKHO.top) and (mawX.top < YKHO.bottom)",
"def CuUu(YKHO, mawX):\n Fg_i = YKHO.left() > mawX.right() or YKHO.right() < mawX.left() or YKHO.top() < mawX.bottom() or (YKHO.bottom() > mawX.top())\n return n... | [
"0.8588445",
"0.83664674",
"0.78721267",
"0.78368074",
"0.77296084",
"0.71921676",
"0.7161763",
"0.70858985",
"0.70432144",
"0.7007826",
"0.692185",
"0.6862382",
"0.6847731",
"0.68463695",
"0.6836487",
"0.6805177",
"0.67513853",
"0.67375225",
"0.6723773",
"0.671523",
"0.67047... | 0.75442225 | 5 |
IntersectRegion(self, Region region) > bool | def dy22(*qIxc, **B2fa):
return nAU3.Region_IntersectRegion(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sjXf(YKHO, zn0c):\n zn0c = Bysn(zn0c)\n if zn0c.chromosome != YKHO.chromosome:\n return False\n if zn0c.start >= YKHO.start and zn0c.end <= YKHO.end:\n return True\n return False",
"def AF88(YKHO, zn0c):\n if YKHO.x2 < zn0c.x1:\n return False\n if YKHO.x1 > zn0c.x2:\n ... | [
"0.747297",
"0.7328016",
"0.7067744",
"0.6959641",
"0.67782056",
"0.6774933",
"0.6713696",
"0.67052037",
"0.66046923",
"0.64609253",
"0.6409899",
"0.63820416",
"0.63743526",
"0.6337183",
"0.63020235",
"0.6277946",
"0.62449986",
"0.6144224",
"0.61157143",
"0.6066029",
"0.59996... | 0.7586005 | 0 |
IsEqual(self, Region region) > bool | def vTRD(*qIxc, **B2fa):
return nAU3.Region_IsEqual(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zv_m(YKHO, zn0c):\n zn0c = Bysn(zn0c)\n if zn0c.chromosome != YKHO.chromosome:\n return False\n if zn0c.start != YKHO.start:\n return False\n if zn0c.end != YKHO.end:\n return False\n if zn0c.strand != YKHO.strand:\n return False\n return True",
"def xa14(YKHO, E... | [
"0.83343697",
"0.7722702",
"0.7552778",
"0.71495825",
"0.67717344",
"0.6745945",
"0.6688259",
"0.6644151",
"0.65456533",
"0.65098184",
"0.64265275",
"0.6378137",
"0.6356587",
"0.63530624",
"0.63265294",
"0.62632054",
"0.6144454",
"0.60791034",
"0.60724455",
"0.60721755",
"0.6... | 0.8187978 | 1 |
Union(self, int x, int y, int width, int height) > bool | def uLKX(*qIxc, **B2fa):
return nAU3.Region_Union(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNfO(YKHO):\n return YKHO.width == 0 and YKHO.height == 1 or (YKHO.height == 0 and YKHO.width == 1)",
"def XNfO(YKHO):\n return YKHO.width == 0 and YKHO.height == 1 or (YKHO.height == 0 and YKHO.width == 1)",
"def AD5J(YKHO) -> bool:\n return False",
"def e9Vo(YKHO):\n if YKHO.width == YKHO.h... | [
"0.6277658",
"0.6277658",
"0.5952863",
"0.59489214",
"0.58658445",
"0.58251935",
"0.5807935",
"0.58072406",
"0.5806756",
"0.57775116",
"0.5722259",
"0.57201093",
"0.57137823",
"0.57016563",
"0.56889737",
"0.5682967",
"0.56390333",
"0.5623754",
"0.5600742",
"0.5563228",
"0.555... | 0.0 | -1 |
UnionRect(self, Rect rect) > bool | def iaWb(*qIxc, **B2fa):
return nAU3.Region_UnionRect(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CuUu(YKHO, mawX):\n Fg_i = YKHO.left() > mawX.right() or YKHO.right() < mawX.left() or YKHO.top() < mawX.bottom() or (YKHO.bottom() > mawX.top())\n return not Fg_i",
"def P10m(YKHO, mawX):\n return mawX.right >= YKHO.left and mawX.left < YKHO.right and (mawX.bottom >= YKHO.top) and (mawX.top < YKHO.... | [
"0.6924844",
"0.6549402",
"0.62920314",
"0.62756175",
"0.6275482",
"0.6248431",
"0.61027765",
"0.6036783",
"0.600729",
"0.6001242",
"0.5982431",
"0.5889969",
"0.588329",
"0.585703",
"0.58193755",
"0.58173674",
"0.5798595",
"0.57926744",
"0.5791416",
"0.5780968",
"0.576185",
... | 0.69575334 | 0 |
TestFontEncoding(NativeEncodingInfo info) > bool | def pV3f(*qIxc, **B2fa):
return nAU3.TestFontEncoding(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mdbD(YKHO):\n tZ2K = None\n for yOSH in YKHO.familymetadata.fonts:\n HueL = krdV.get_ttfont_from_metadata(YKHO.operator.path, yOSH)\n iMGt = HueL.retrieve_cmap_format_4()\n if not tZ2K:\n tZ2K = iMGt.platEncID\n if tZ2K != iMGt.platEncID:\n YKHO.fail('Fam... | [
"0.7108178",
"0.7025733",
"0.64120114",
"0.62845725",
"0.6219237",
"0.61110777",
"0.6038647",
"0.6014404",
"0.5962978",
"0.59390813",
"0.5921046",
"0.58893526",
"0.5877022",
"0.5859234",
"0.5859234",
"0.58474845",
"0.57741433",
"0.5750997",
"0.5736329",
"0.5728256",
"0.570865... | 0.76586574 | 0 |
IsOk(self) > bool Returns ``True`` if this font was successfully created. | def plAY(*qIxc, **B2fa):
return nAU3.Font_IsOk(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plAY(YKHO):\n return True",
"def lDnS(YKHO):\n return YKHO._isOk",
"def RegT(YKHO):\n return YKHO._font != lnPd.NullFont",
"def plAY(YKHO):\n return YKHO.window != None",
"def raTX(Emd4):\n return Emd4.autograder_format == 'ok'",
"def raTX(YKHO):\n return YKHO['webok'] == 'OK'",
"... | [
"0.6781799",
"0.63562924",
"0.62039006",
"0.60539794",
"0.60244966",
"0.59593153",
"0.58627665",
"0.58378404",
"0.57968116",
"0.5785021",
"0.5733314",
"0.57150173",
"0.5679282",
"0.5678611",
"0.5654795",
"0.56323177",
"0.56269306",
"0.5573083",
"0.5562788",
"0.54954225",
"0.5... | 0.7682857 | 0 |
__eq__(self, Font other) > bool | def xa14(*qIxc, **B2fa):
return nAU3.Font___eq__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, EXx5):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, vQcQ):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return YKHO.is_red() == Elif.is_... | [
"0.7364878",
"0.70940924",
"0.7069162",
"0.70388055",
"0.70234096",
"0.69830984",
"0.6960613",
"0.6921592",
"0.6907473",
"0.68856883",
"0.6875403",
"0.6823857",
"0.68054557",
"0.6786141",
"0.67783356",
"0.67530346",
"0.674755",
"0.673772",
"0.67352873",
"0.6707512",
"0.670426... | 0.81658995 | 0 |
__ne__(self, Font other) > bool | def Vdqg(*qIxc, **B2fa):
return nAU3.Font___ne__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO: _TT, Elif: object) -> bool:\n return YKHO.ne(Elif)",
"def Vdqg(YKHO, Elif):\n return not isinstance(Elif, YKHO.__class__)",
"def Vdqg(YKHO, *qIxc):\n return gEqO.ctext_position_t___ne__(YKHO, *qIxc)",
"def Vdqg(YKHO, Elif: 'LTL'):\n return not YKHO == Elif",
"def xa14(*qIxc, **B2... | [
"0.70447034",
"0.7026394",
"0.69051564",
"0.68815744",
"0.68677807",
"0.68538517",
"0.68260777",
"0.6804514",
"0.6795833",
"0.67813313",
"0.67813313",
"0.67813313",
"0.6776727",
"0.67296255",
"0.6725555",
"0.67006457",
"0.66957164",
"0.66866666",
"0.66849375",
"0.66849375",
"... | 0.7611465 | 0 |
GetPointSize(self) > int Gets the point size. | def jh6B(*qIxc, **B2fa):
return nAU3.Font_GetPointSize(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cCr9(YKHO):\n return YKHO.m_pointsize",
"def zNig(YKHO) -> PvyL:\n return YKHO._size",
"def SFuN(YKHO):\n vC9B = [AU8u.size for AU8u in YKHO.points]\n if vC9B.count(vC9B[0]) == len(vC9B):\n return vC9B[0]\n else:\n raise ValueError('The sizes of the points must be the same othe... | [
"0.8984331",
"0.85684025",
"0.8374234",
"0.7276756",
"0.721458",
"0.72066224",
"0.7196503",
"0.7172458",
"0.7123833",
"0.71152735",
"0.7020707",
"0.7020557",
"0.699656",
"0.69916517",
"0.69854224",
"0.69641274",
"0.696018",
"0.69519925",
"0.69404143",
"0.6934827",
"0.69334215... | 0.78256816 | 3 |
GetFaceName(self) > String Returns the typeface name associated with the font, or the empty string if there is no typeface information. | def SmeQ(*qIxc, **B2fa):
return nAU3.Font_GetFaceName(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQLJ(YKHO):\n return YKHO.fontFace",
"def rSR3(*qIxc, **B2fa):\n return nAU3.Font_SetFaceName(*qIxc, **B2fa)",
"def rSR3(*qIxc, **B2fa):\n return nAU3.NativeFontInfo_SetFaceName(*qIxc, **B2fa)",
"def ZDXm(*qIxc, **B2fa):\n return nAU3.Font_GetFamilyString(*qIxc, **B2fa)",
"def bdT_(YKHO):\n... | [
"0.7307228",
"0.661588",
"0.65323544",
"0.6130805",
"0.58874154",
"0.58760816",
"0.58760816",
"0.58760816",
"0.5838956",
"0.5838956",
"0.5838956",
"0.5795471",
"0.5776557",
"0.57105505",
"0.57024235",
"0.56290233",
"0.56290233",
"0.5553436",
"0.55468684",
"0.54783267",
"0.544... | 0.7989939 | 0 |
IsFixedWidth(self) > bool Returns true if the font is a fixed width (or monospaced) font, false if it is a proportional one or font is invalid. | def AXuC(*qIxc, **B2fa):
return nAU3.Font_IsFixedWidth(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fsCi(YKHO) -> bool:\n return YKHO._fixed_width",
"def fsCi(YKHO, fsCi: bool):\n YKHO._fixed_width = fsCi",
"def WJV8(YKHO):\n return not YKHO.HasFlag(YKHO.optionResizable)",
"def RegT(YKHO):\n return YKHO._font != lnPd.NullFont",
"def yNcc(YKHO):\n kGys = YKHO.read_metadata_contents()\n ... | [
"0.7641022",
"0.6397705",
"0.5892481",
"0.57712626",
"0.56069785",
"0.53210586",
"0.5248856",
"0.5092102",
"0.50403565",
"0.49643713",
"0.49553397",
"0.491208",
"0.48747966",
"0.48703015",
"0.4868395",
"0.48593172",
"0.48301837",
"0.48301837",
"0.48301837",
"0.48021933",
"0.4... | 0.86420524 | 0 |
GetNativeFontInfoDesc(self) > String Returns the platformdependent string completely describing this font or an empty string if the font isn't valid. | def GRsS(*qIxc, **B2fa):
return nAU3.Font_GetNativeFontInfoDesc(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phHv(*qIxc, **B2fa):\n return nAU3.Font_GetNativeFontInfoUserDesc(*qIxc, **B2fa)",
"def HHUq(*qIxc, **B2fa):\n return nAU3.Font_GetNativeFontInfo(*qIxc, **B2fa)",
"def FAzY(YKHO) -> dict:\n YKHO._base_font = YKHO.font['name'].names[6].toStr()\n sdCG = YKHO.font['head']\n YKHO.units_per_em = ... | [
"0.748098",
"0.67915636",
"0.61610997",
"0.60421664",
"0.59013075",
"0.5884825",
"0.57359874",
"0.573195",
"0.57117575",
"0.57117575",
"0.5695575",
"0.5695183",
"0.5662817",
"0.56319",
"0.562287",
"0.562287",
"0.562287",
"0.56160456",
"0.5605192",
"0.5587273",
"0.5534901",
... | 0.80834395 | 0 |
SetPointSize(self, int pointSize) Sets the point size. | def kUwm(*qIxc, **B2fa):
return nAU3.Font_SetPointSize(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LbPV(YKHO, WeHv):\n YKHO.pointSize = WeHv",
"def TahO(YKHO, cCr9):\n YKHO.m_pointsize = cCr9",
"def aZOO(YKHO, zNig):\n for AU8u in YKHO.points:\n AU8u.size = zNig",
"def LbPV(YKHO, BrPC=0.0):\n for Fg_i in YKHO.buf:\n Fg_i.unib[8] = BrPC",
"def n9U1(YKHO, Y7KK):\n raise No... | [
"0.90966725",
"0.8450297",
"0.8064313",
"0.766912",
"0.644471",
"0.6389738",
"0.6348503",
"0.62216663",
"0.6174961",
"0.6000606",
"0.6000357",
"0.5887566",
"0.5833066",
"0.5833066",
"0.58257145",
"0.57932657",
"0.577058",
"0.57410514",
"0.57405686",
"0.57367057",
"0.5719564",... | 0.73289895 | 4 |
EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) > bool | def VXnt(*qIxc, **B2fa):
return nAU3.FontEnumerator_EnumerateFacenames(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PhVN(*qIxc, **B2fa):\n return nAU3.FontEnumerator_IsValidFacename(*qIxc, **B2fa)",
"def waB7(*qIxc, **B2fa):\n return nAU3.FontEnumerator_IsValidFacename(*qIxc, **B2fa)",
"def FhO9(_QkZ, cxvV):\n s6HO = Bo55.CFUNCTYPE(None, Iqz3.STRING)\n zsh0 = xuBC.cfuncproto(xuBC.load_so_libforms(), 'fl_enum... | [
"0.6518893",
"0.6510752",
"0.57216096",
"0.5592294",
"0.5402896",
"0.53533864",
"0.51959306",
"0.50898504",
"0.5058354",
"0.49818152",
"0.49619123",
"0.4959566",
"0.49586543",
"0.4942586",
"0.49401036",
"0.49269423",
"0.48871282",
"0.48861945",
"0.48398796",
"0.4826268",
"0.4... | 0.7060298 | 0 |
GetPluralString(self, String origString, String origString2, size_t n, String domain=EmptyString) > String | def v7Ih(*qIxc, **B2fa):
return nAU3.PyLocale_GetPluralString(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nd0d(exwG):\n if exwG == 1:\n return ''\n else:\n return 's'",
"def nd0d(exwG):\n if exwG != 1:\n return 's'\n else:\n return ''",
"def hQ0A(Emd4, jrSF):\n nd0d = jrSF\n if not jrSF or jrSF.strip() == '' or jrSF[-2:] in ('es', 'ds', 'ts', 'ms', 'hs', 'ps') or (... | [
"0.6434152",
"0.64105225",
"0.63180745",
"0.61628944",
"0.6159759",
"0.60854733",
"0.6061369",
"0.59920263",
"0.5984783",
"0.5947351",
"0.5925836",
"0.5880734",
"0.5838781",
"0.57532567",
"0.5718056",
"0.56862044",
"0.5627794",
"0.5578206",
"0.5494169",
"0.53541",
"0.53286624... | 0.65468746 | 0 |
DrawArcPoint(self, Point pt1, Point pt2, Point center) Draws an arc of a circle, centred on the center point (xc, yc), from the first point to the second. The current pen is used for the outline and the current brush for filling the shape. The arc is drawn in an anticlockwise direction from the start point to the end p... | def UHmV(*qIxc, **B2fa):
return nAU3.DC_DrawArcPoint(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHmV(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawArcPoint(*qIxc, **B2fa)",
"def aGEO(aNZO, hgjH, H2v2, TVTK, snrU=0, M5jx=XTiz.pi, qfpW='k', XSoh='down', UoOD=Is2c):\n elFl = XTiz.pi / 2\n fFgL = XTiz.pi * 1.5\n Mt5V = XTiz.pi\n uNXM = hgjH[1]\n assert elFl <= snrU <= M5jx <= fFgL\n Fg_i ... | [
"0.7549954",
"0.70214677",
"0.6821592",
"0.66507584",
"0.66230494",
"0.66191393",
"0.6500745",
"0.64806986",
"0.6430331",
"0.63172454",
"0.62540984",
"0.6211109",
"0.61930823",
"0.61807275",
"0.59515774",
"0.5870684",
"0.58365405",
"0.5727422",
"0.57171893",
"0.57137656",
"0.... | 0.75487953 | 1 |
DrawEllipticArc(self, int x, int y, int w, int h, double start, double end) Draws an arc of an ellipse, with the given rectangle defining the bounds of the ellipse. The current pen is used for drawing the arc and the current brush is used for drawing the pie. The start and end parameters specify the start and end of th... | def GRsW(*qIxc, **B2fa):
return nAU3.DC_DrawEllipticArc(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GRsW(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawEllipticArc(*qIxc, **B2fa)",
"def qm7q(WKvO, LVAh, jzdc, Fg_i, Cwt5, UqYS, q7In, DZOe=1):\n if DZOe:\n KUch.rlarc(WKvO, LVAh, jzdc, Fg_i, Cwt5, UqYS, q7In)\n else:\n KUch.arcell(WKvO, LVAh, jzdc, Fg_i, Cwt5, UqYS, q7In)",
"def Io6r(YKHO... | [
"0.7739974",
"0.66603756",
"0.6606885",
"0.64217466",
"0.6405907",
"0.6332942",
"0.6300298",
"0.6286634",
"0.62635165",
"0.6234921",
"0.62293804",
"0.62160283",
"0.6172464",
"0.61640507",
"0.61417806",
"0.6087115",
"0.60197777",
"0.60150427",
"0.6006247",
"0.59954596",
"0.597... | 0.7730427 | 1 |
DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end) Draws an arc of an ellipse, with the given rectangle defining the bounds of the ellipse. The current pen is used for drawing the arc and the current brush is used for drawing the pie. The start and end parameters specify the start and end of th... | def CJRq(*qIxc, **B2fa):
return nAU3.DC_DrawEllipticArcPointSize(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJRq(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawEllipticArcPointSize(*qIxc, **B2fa)",
"def GRsW(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawEllipticArc(*qIxc, **B2fa)",
"def GRsW(*qIxc, **B2fa):\n return nAU3.DC_DrawEllipticArc(*qIxc, **B2fa)",
"def MVzo(*qIxc, **B2fa):\n return nAU3.PseudoDC_... | [
"0.749016",
"0.675111",
"0.67348963",
"0.66469735",
"0.65797347",
"0.6363282",
"0.6299479",
"0.6208628",
"0.60571945",
"0.6057119",
"0.5952966",
"0.5941457",
"0.58783364",
"0.5873323",
"0.5862497",
"0.5728066",
"0.5715251",
"0.5709772",
"0.57077706",
"0.5662245",
"0.56450224"... | 0.7464765 | 1 |
DrawEllipsePointSize(self, Point pt, Size sz) Draws an ellipse contained in the specified rectangle. The current pen is used for the outline and the current brush for filling the shape. | def MVzo(*qIxc, **B2fa):
return nAU3.DC_DrawEllipsePointSize(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MVzo(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawEllipsePointSize(*qIxc, **B2fa)",
"def A40V(YKHO, qfpW, dQgj, zNig, e7ZM=0, DNwW='topleft'):\n qfpW = P3Um.color._determine(qfpW)\n vgXP = YKHO._calculate_offset(DNwW, zNig)\n a9eO.draw.ellipse(YKHO._surf, qfpW, (dQgj + vgXP, zNig), e7ZM)",
"def A... | [
"0.7716707",
"0.6849545",
"0.6672307",
"0.64486855",
"0.64368516",
"0.6341244",
"0.62960666",
"0.6289657",
"0.61951876",
"0.60397685",
"0.601995",
"0.6003291",
"0.59946954",
"0.5956701",
"0.5923084",
"0.59221673",
"0.5833862",
"0.58207697",
"0.5796389",
"0.5778846",
"0.572628... | 0.77995795 | 0 |
SetClippingRegionAsRegion(self, Region region) Sets the clipping region for this device context to the intersection of the given region described by the parameters of this method and the previously set clipping region. You should call `DestroyClippingRegion` if you want to set the clipping region exactly to the region ... | def hJXW(*qIxc, **B2fa):
return nAU3.DC_SetClippingRegionAsRegion(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XDEh(*qIxc, **B2fa):\n return nAU3.DC_SetClippingRegion(*qIxc, **B2fa)",
"def rD3g(*qIxc, **B2fa):\n return nAU3.DC_SetDeviceClippingRegion(*qIxc, **B2fa)",
"def gc8l(*qIxc, **B2fa):\n return nAU3.GraphicsContext_ClipRegion(*qIxc, **B2fa)",
"def thdP(*qIxc, **B2fa):\n return nAU3.DC_SetClippi... | [
"0.75336987",
"0.7495426",
"0.6367325",
"0.6096312",
"0.58777833",
"0.57187986",
"0.57187986",
"0.57187986",
"0.5714102",
"0.56889945",
"0.56576574",
"0.5415977",
"0.50504667",
"0.50348496",
"0.49929795",
"0.49878094",
"0.49530402",
"0.49421245",
"0.49283013",
"0.49204388",
"... | 0.7945865 | 0 |
DrawLines(self, List points, int xoffset=0, int yoffset=0) Draws lines using a sequence of `wx.Point` objects, adding the optional offset coordinate. The current pen is used for drawing the lines. | def fkJ3(*qIxc, **B2fa):
return nAU3.DC_DrawLines(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AvEV(YKHO, Nqlg, oxZz=None):\n if oxZz is None:\n oxZz = []\n elif isinstance(oxZz, lnPd.Pen):\n oxZz = [oxZz]\n elif len(oxZz) != len(Nqlg):\n raise ValueError('lines and pens must have same length')\n return YKHO._DrawLineList(Nqlg, oxZz, [])",
"def DAlO(YKHO, LTIa, oxZz=No... | [
"0.7494864",
"0.71910995",
"0.70192957",
"0.6980393",
"0.6914278",
"0.6833212",
"0.6820183",
"0.6802696",
"0.65771294",
"0.6536516",
"0.64161557",
"0.64119154",
"0.63316363",
"0.6304022",
"0.62054",
"0.60925126",
"0.6054521",
"0.60483575",
"0.60483575",
"0.6041945",
"0.602093... | 0.67479354 | 8 |
SetBrush(self, Brush brush) Sets the current brush for the DC. If the argument is ``wx.NullBrush``, the current brush is selected out of the device context, and the original brush restored, allowing the current brush to be destroyed safely. | def Nq5f(*qIxc, **B2fa):
return nAU3.DC_SetBrush(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nq5f(*qIxc, **B2fa):\n return nAU3.PseudoDC_SetBrush(*qIxc, **B2fa)",
"def Nq5f(*qIxc):\n return nAU3.GraphicsContext_SetBrush(*qIxc)",
"def kE0h(YKHO, u7tq=None):\n YKHO._text_bg_brush = u7tq",
"def MOvd(YKHO, u7tq):\n YKHO.format.setBackground(u7tq)",
"def MprG(YKHO):\n j46J = YKHO.bru... | [
"0.73580915",
"0.7185952",
"0.6570825",
"0.6308294",
"0.62362653",
"0.5924822",
"0.56790197",
"0.56753075",
"0.5353009",
"0.5085986",
"0.50730205",
"0.4866775",
"0.48299396",
"0.47573894",
"0.47522932",
"0.47242418",
"0.46350864",
"0.45323265",
"0.4524473",
"0.43942478",
"0.4... | 0.7622084 | 0 |
GetCharHeight(self) > int Gets the character height of the currently set font. | def UEpX(*qIxc, **B2fa):
return nAU3.DC_GetCharHeight(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t9jJ(YKHO, l5Ny, o9av):\n yzQ0 = 0\n for Z9rn in l5Ny:\n z1Rg = ord(Z9rn)\n if z1Rg > 255:\n z1Rg -= 848\n if z1Rg > 255:\n z1Rg = 32\n yzQ0 += o9av.char_size(z1Rg)[1]\n return (yzQ0, o9av.height())",
"def Qk7T(YKHO, hcXw: str) -> float:\n return ... | [
"0.6621948",
"0.6310032",
"0.63009757",
"0.62962526",
"0.62667215",
"0.6259808",
"0.6259808",
"0.6259808",
"0.6256875",
"0.6247732",
"0.6247732",
"0.6247732",
"0.6247732",
"0.62052554",
"0.6187812",
"0.61854815",
"0.61854815",
"0.6148468",
"0.61117357",
"0.608552",
"0.6045424... | 0.7673449 | 0 |
GetTextExtent(wxString string) > (width, height) Get the width and height of the text using the current font. Only works for single line strings. | def nv3s(*qIxc, **B2fa):
return nAU3.DC_GetTextExtent(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nv3s(*qIxc, **B2fa):\n return nAU3.GraphicsContext_GetTextExtent(*qIxc, **B2fa)",
"def Co22(*qIxc, **B2fa):\n return nAU3.DC_GetMultiLineTextExtent(*qIxc, **B2fa)",
"def ox1Q(YKHO):\n return (YKHO.__text_surface.get_width(), YKHO.__text_surface.get_height())",
"def Rdvo(*qIxc, **B2fa):\n retu... | [
"0.76988524",
"0.68201995",
"0.6818598",
"0.66709673",
"0.66114795",
"0.65438724",
"0.6495569",
"0.6493479",
"0.64841586",
"0.64297587",
"0.63871",
"0.6179721",
"0.61521953",
"0.614332",
"0.61215705",
"0.5974995",
"0.59634846",
"0.59402925",
"0.5836081",
"0.5832865",
"0.58186... | 0.745032 | 1 |
GetSizeMM(self) > Size Get the DC size in milimeters. | def z6WV(*qIxc, **B2fa):
return nAU3.DC_GetSizeMM(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raPL(*qIxc, **B2fa):\n return nAU3.DC_GetSizeMMTuple(*qIxc, **B2fa)",
"def VMOf(*qIxc, **B2fa):\n return nAU3.DC_GetSize(*qIxc, **B2fa)",
"def So8X(YKHO):\n return len(YKHO.get_MSC())",
"def El62(YKHO):\n return gTEQ('PrlVmDevHd_GetSizeOnDisk', YKHO.handle)",
"def lBIw(YKHO):\n return YK... | [
"0.6923193",
"0.6889626",
"0.66115886",
"0.6190755",
"0.6120674",
"0.61153513",
"0.60669327",
"0.5935682",
"0.59348947",
"0.59058857",
"0.5890586",
"0.58768827",
"0.58674425",
"0.58609605",
"0.58609605",
"0.58609605",
"0.58609605",
"0.58609605",
"0.58609605",
"0.58609605",
"0... | 0.85236686 | 0 |
DeviceToLogicalX(self, int x) > int Convert device X coordinate to logical coordinate, using the current mapping mode. | def GONL(*qIxc, **B2fa):
return nAU3.DC_DeviceToLogicalX(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M8dP(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceX(*qIxc, **B2fa)",
"def skIj(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalXRel(*qIxc, **B2fa)",
"def vR_l(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceXRel(*qIxc, **B2fa)",
"def NBh5(YKHO, WKvO):\n fsgT = WKvO * YKHO.column_width + WK... | [
"0.7376741",
"0.69757336",
"0.6549847",
"0.5850794",
"0.5596633",
"0.5524838",
"0.5380519",
"0.5212835",
"0.52004206",
"0.51926625",
"0.51720285",
"0.51655877",
"0.51655877",
"0.51314676",
"0.51196235",
"0.5114255",
"0.5081518",
"0.5052117",
"0.5052117",
"0.5050318",
"0.50312... | 0.79101884 | 0 |
DeviceToLogicalY(self, int y) > int Converts device Y coordinate to logical coordinate, using the current mapping mode. | def upyv(*qIxc, **B2fa):
return nAU3.DC_DeviceToLogicalY(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1_K(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalYRel(*qIxc, **B2fa)",
"def wamM(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceY(*qIxc, **B2fa)",
"def vcKf(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceYRel(*qIxc, **B2fa)",
"def LVAh(YKHO):\n return YKHO._reg2val(Vfxy)",
"def VwgC(Y... | [
"0.7777174",
"0.77476174",
"0.7426388",
"0.64042777",
"0.60187757",
"0.5956547",
"0.5956547",
"0.5864196",
"0.5856581",
"0.57710296",
"0.5745592",
"0.57395834",
"0.5667045",
"0.56340945",
"0.55884373",
"0.55774593",
"0.55774593",
"0.5574033",
"0.55533105",
"0.5546658",
"0.553... | 0.8174799 | 0 |
DeviceToLogicalXRel(self, int x) > int Convert device X coordinate to relative logical coordinate, using the current mapping mode but ignoring the x axis orientation. Use this function for converting a width, for example. | def skIj(*qIxc, **B2fa):
return nAU3.DC_DeviceToLogicalXRel(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vR_l(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceXRel(*qIxc, **B2fa)",
"def GONL(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalX(*qIxc, **B2fa)",
"def M8dP(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceX(*qIxc, **B2fa)",
"def NBh5(YKHO, WKvO):\n fsgT = WKvO * YKHO.column_width + WKvO ... | [
"0.75888026",
"0.67370856",
"0.6361497",
"0.57422554",
"0.57376105",
"0.540018",
"0.53599364",
"0.52632266",
"0.5214254",
"0.5128621",
"0.512268",
"0.512268",
"0.50830334",
"0.50785077",
"0.50363797",
"0.49305165",
"0.49236837",
"0.48917577",
"0.48771182",
"0.48684195",
"0.48... | 0.77279866 | 0 |
DeviceToLogicalYRel(self, int y) > int Convert device Y coordinate to relative logical coordinate, using the current mapping mode but ignoring the y axis orientation. Use this function for converting a height, for example. | def C1_K(*qIxc, **B2fa):
return nAU3.DC_DeviceToLogicalYRel(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vcKf(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceYRel(*qIxc, **B2fa)",
"def upyv(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalY(*qIxc, **B2fa)",
"def wamM(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceY(*qIxc, **B2fa)",
"def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.... | [
"0.8116014",
"0.71209306",
"0.6790265",
"0.5837786",
"0.58159393",
"0.57464564",
"0.57464564",
"0.5745437",
"0.57192796",
"0.57131827",
"0.56391793",
"0.5604662",
"0.5598327",
"0.5581331",
"0.5567923",
"0.55128545",
"0.5483403",
"0.5426777",
"0.5422154",
"0.5418484",
"0.54181... | 0.8205571 | 0 |
LogicalToDeviceX(self, int x) > int Converts logical X coordinate to device coordinate, using the current mapping mode. | def M8dP(*qIxc, **B2fa):
return nAU3.DC_LogicalToDeviceX(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GONL(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalX(*qIxc, **B2fa)",
"def vR_l(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceXRel(*qIxc, **B2fa)",
"def skIj(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalXRel(*qIxc, **B2fa)",
"def qibS(begE, WKvO):\n if begE is None:\n return WKv... | [
"0.7707207",
"0.6982503",
"0.6882522",
"0.55911726",
"0.5453046",
"0.540044",
"0.5246609",
"0.51037043",
"0.5070627",
"0.5066891",
"0.50255525",
"0.49967262",
"0.49557465",
"0.49544647",
"0.49544647",
"0.4932675",
"0.49250376",
"0.47672644",
"0.47644648",
"0.4754725",
"0.4730... | 0.80909497 | 0 |
LogicalToDeviceY(self, int y) > int Converts logical Y coordinate to device coordinate, using the current mapping mode. | def wamM(*qIxc, **B2fa):
return nAU3.DC_LogicalToDeviceY(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upyv(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalY(*qIxc, **B2fa)",
"def vcKf(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceYRel(*qIxc, **B2fa)",
"def C1_K(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalYRel(*qIxc, **B2fa)",
"def LVAh(YKHO):\n return YKHO._reg2val(Vfxy)",
"def e8im(Y... | [
"0.8053242",
"0.77793914",
"0.77053195",
"0.5880762",
"0.5628454",
"0.55180216",
"0.5434022",
"0.534012",
"0.534012",
"0.5329452",
"0.5304915",
"0.5301006",
"0.52998763",
"0.52707195",
"0.52691656",
"0.5197372",
"0.5184618",
"0.5159402",
"0.5123248",
"0.50981754",
"0.5092176"... | 0.8409092 | 0 |
LogicalToDeviceXRel(self, int x) > int Converts logical X coordinate to relative device coordinate, using the current mapping mode but ignoring the x axis orientation. Use this for converting a width, for example. | def vR_l(*qIxc, **B2fa):
return nAU3.DC_LogicalToDeviceXRel(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def skIj(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalXRel(*qIxc, **B2fa)",
"def M8dP(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceX(*qIxc, **B2fa)",
"def GONL(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalX(*qIxc, **B2fa)",
"def NBh5(YKHO, WKvO):\n fsgT = WKvO * YKHO.column_width + WKvO ... | [
"0.7868927",
"0.68012625",
"0.6646828",
"0.55169237",
"0.539977",
"0.5178532",
"0.51094085",
"0.5074976",
"0.5041483",
"0.49992615",
"0.4990227",
"0.49289066",
"0.49253038",
"0.49253038",
"0.48979956",
"0.4803484",
"0.47917378",
"0.47702265",
"0.4750202",
"0.47321114",
"0.469... | 0.8162727 | 0 |
LogicalToDeviceYRel(self, int y) > int Converts logical Y coordinate to relative device coordinate, using the current mapping mode but ignoring the y axis orientation. Use this for converting a height, for example. | def vcKf(*qIxc, **B2fa):
return nAU3.DC_LogicalToDeviceYRel(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1_K(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalYRel(*qIxc, **B2fa)",
"def wamM(*qIxc, **B2fa):\n return nAU3.DC_LogicalToDeviceY(*qIxc, **B2fa)",
"def upyv(*qIxc, **B2fa):\n return nAU3.DC_DeviceToLogicalY(*qIxc, **B2fa)",
"def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.... | [
"0.8278442",
"0.7325505",
"0.7156164",
"0.55619574",
"0.5477981",
"0.5477981",
"0.5422316",
"0.5401102",
"0.5380287",
"0.5365581",
"0.53582317",
"0.53399605",
"0.5318654",
"0.5297387",
"0.5291569",
"0.5278467",
"0.52714586",
"0.51822466",
"0.50949806",
"0.509231",
"0.5075638"... | 0.85540307 | 0 |
GetDepth(self) > int Returns the colour depth of the DC. | def k2Z_(*qIxc, **B2fa):
return nAU3.DC_GetDepth(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YHnl(YKHO):\n return YKHO._color_depth",
"def oGYc(YKHO):\n return _VfD.Dimensions_getDepth(YKHO)",
"def rb7a(YKHO):\n return _VfD.Dimensions_depth(YKHO)",
"def rb7a(YKHO):\n return YKHO._depth",
"def rb7a(YKHO) -> int:\n return YKHO.__depth",
"def k2Z_(*qIxc, **B2fa):\n return nAU3... | [
"0.83053255",
"0.77712494",
"0.76302",
"0.74444103",
"0.7395581",
"0.71542126",
"0.71419793",
"0.70328665",
"0.6866005",
"0.6811985",
"0.6811985",
"0.6799183",
"0.673193",
"0.673193",
"0.67252094",
"0.6718501",
"0.6706763",
"0.66898715",
"0.66531146",
"0.6602649",
"0.6598108"... | 0.80755144 | 1 |
GetBackgroundMode(self) > int Returns the current background mode, either ``wx.SOLID`` or ``wx.TRANSPARENT``. | def A7Nw(*qIxc, **B2fa):
return nAU3.DC_GetBackgroundMode(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UOi3(*qIxc, **B2fa):\n return nAU3.DC_SetBackgroundMode(*qIxc, **B2fa)",
"def UOi3(*qIxc, **B2fa):\n return nAU3.PseudoDC_SetBackgroundMode(*qIxc, **B2fa)",
"def dnR4(YKHO):\n return YKHO._bg",
"def gdTH(YKHO):\n return YKHO._colBack",
"def QPVU(YKHO):\n return HRmL(YKHO.GetBackground())... | [
"0.713815",
"0.7012122",
"0.6510245",
"0.6297968",
"0.6272777",
"0.62682295",
"0.62595606",
"0.610099",
"0.60841846",
"0.6076939",
"0.6034106",
"0.5975382",
"0.5968086",
"0.5958823",
"0.5944832",
"0.5940993",
"0.5836859",
"0.5794668",
"0.5780994",
"0.5712116",
"0.5683207",
... | 0.82226104 | 0 |
GetBackground(self) > Brush Gets the brush used for painting the background. | def _Zjm(*qIxc, **B2fa):
return nAU3.DC_GetBackground(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def st5k(YKHO):\n return YKHO._text_bg_brush",
"def r5WW(YKHO):\n return YKHO._backgroundImage",
"def GkmA(*qIxc, **B2fa):\n return nAU3.DC_GetBrush(*qIxc, **B2fa)",
"def QPVU(YKHO):\n return HRmL(YKHO.GetBackground())",
"def GkmA(*qIxc, **B2fa):\n return nAU3.StockGDI_GetBrush(*qIxc, **B2fa... | [
"0.74026394",
"0.72551477",
"0.70257884",
"0.7021054",
"0.6978223",
"0.6957726",
"0.67274094",
"0.6694821",
"0.66786057",
"0.6610619",
"0.65732706",
"0.650717",
"0.6505297",
"0.63911444",
"0.636438",
"0.63637924",
"0.6355335",
"0.6263685",
"0.624268",
"0.6212867",
"0.619503",... | 0.69163656 | 6 |
GetBrush(self) > Brush Gets the current brush | def GkmA(*qIxc, **B2fa):
return nAU3.DC_GetBrush(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GkmA(*qIxc, **B2fa):\n return nAU3.StockGDI_GetBrush(*qIxc, **B2fa)",
"def CH3f(YKHO, qfpW):\n Aofo = YKHO._brushes.get(qfpW)\n if Aofo is None:\n GGcq = YKHO._get_color(qfpW)\n Aofo = CsJA.QBrush(GGcq)\n YKHO._brushes[qfpW] = Aofo\n return Aofo",
"def KZ29(*qIxc, **B2fa):\... | [
"0.78389597",
"0.7782004",
"0.7640001",
"0.72868943",
"0.7159138",
"0.69519794",
"0.6943571",
"0.6917845",
"0.68292475",
"0.67318815",
"0.65425825",
"0.65310746",
"0.6501217",
"0.6498092",
"0.6449595",
"0.6427768",
"0.6302327",
"0.6279998",
"0.6202978",
"0.61968565",
"0.61399... | 0.7690037 | 2 |
GetLogicalFunction(self) > int Gets the current logical function (set by `SetLogicalFunction`). | def GCeN(*qIxc, **B2fa):
return nAU3.DC_GetLogicalFunction(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DgJy(*qIxc, **B2fa):\n return nAU3.DC_SetLogicalFunction(*qIxc, **B2fa)",
"def MWA5(YKHO):\n return YKHO.__functional",
"def DgJy(*qIxc, **B2fa):\n return nAU3.PseudoDC_SetLogicalFunction(*qIxc, **B2fa)",
"def a4HF(YKHO):\n return YKHO._get_flint_func(YKHO.domain)",
"def m2Zb(YKHO):\n re... | [
"0.6381921",
"0.6177765",
"0.6139528",
"0.6129923",
"0.61102396",
"0.60451317",
"0.60052663",
"0.5899895",
"0.5892116",
"0.58888257",
"0.57314396",
"0.5707054",
"0.56696576",
"0.55658567",
"0.5539223",
"0.5526902",
"0.5505196",
"0.5501919",
"0.54982615",
"0.5488975",
"0.54871... | 0.78719765 | 0 |
MinX(self) > int Gets the minimum horizontal extent used in drawing commands so far. | def btQX(*qIxc, **B2fa):
return nAU3.DC_MinX(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dpeR(YKHO):\n return YKHO.minx",
"def qwA9(YKHO):\n YKHO._updateExtents()\n return YKHO._mMinX",
"def qwA9(YKHO):\n return min(YKHO.getx())",
"def wBZN(YKHO):\n return YKHO.get_min_value(YKHO.X_INDEX)",
"def ZB8m(YKHO):\n return YKHO.T.min_y_arg",
"def Rm45(YKHO):\n return min(YK... | [
"0.79782677",
"0.78130573",
"0.7761067",
"0.7479209",
"0.73147947",
"0.72097635",
"0.7189704",
"0.716683",
"0.708826",
"0.708669",
"0.69932956",
"0.6896304",
"0.680199",
"0.67690754",
"0.6768888",
"0.6721715",
"0.6719635",
"0.671005",
"0.6709772",
"0.67002094",
"0.66974396",
... | 0.7518478 | 3 |
MinY(self) > int Gets the minimum vertical extent used in drawing commands so far. | def U8_q(*qIxc, **B2fa):
return nAU3.DC_MinY(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zQe_(YKHO):\n return YKHO.miny",
"def v6e1(YKHO):\n return min((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def KDmU(YKHO):\n return YKHO.get_min_value(YKHO.Y_INDEX)",
"def B4jR(YKHO):\n YKHO._updateExtents()\n return YKHO._mMinY",
"def B4jR(YKHO):\n return min(YKHO.gety())",
"def tST4(YKH... | [
"0.81034726",
"0.7609181",
"0.7472793",
"0.74144965",
"0.7288665",
"0.72847915",
"0.7196124",
"0.71931636",
"0.71691084",
"0.7148122",
"0.7092513",
"0.6973238",
"0.6954741",
"0.68965673",
"0.6833407",
"0.6810888",
"0.68067247",
"0.6802757",
"0.6746011",
"0.6712352",
"0.669366... | 0.7003386 | 11 |
MaxY(self) > int Gets the maximum vertical extent used in drawing commands so far. | def T9yE(*qIxc, **B2fa):
return nAU3.DC_MaxY(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oiMZ(YKHO):\n return YKHO.maxy",
"def vvwy(YKHO):\n YKHO._updateExtents()\n return YKHO._mMaxY",
"def vvwy(YKHO):\n return max(YKHO.gety())",
"def rwK9(YKHO):\n return YKHO.get_max_value(YKHO.Y_INDEX)",
"def c4gB(YKHO):\n return max((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def tXvl(YKH... | [
"0.8222418",
"0.7826507",
"0.7685846",
"0.7602106",
"0.7581735",
"0.7552504",
"0.7545786",
"0.74764925",
"0.72275215",
"0.7200854",
"0.7078503",
"0.70258576",
"0.7013705",
"0.69229555",
"0.6917736",
"0.69113857",
"0.6898251",
"0.6880373",
"0.6859631",
"0.6842059",
"0.68255717... | 0.73062855 | 8 |
GetLayoutDirection(self) > int Get the layout direction (LTR or RTL)_ for this dc. On platforms where RTL layout is supported, the return value will either be ``wx.Layout_LeftToRight`` or ``wx.Layout_RightToLeft``. ``wx.Layout_Default`` is returned if layout direction is not supported. | def kWyH(*qIxc, **B2fa):
return nAU3.DC_GetLayoutDirection(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jERD(*qIxc, **B2fa):\n return nAU3.DC_SetLayoutDirection(*qIxc, **B2fa)",
"def XSoh(YKHO) -> int:\n return YKHO._direction",
"def XSoh(YKHO):\n wUXB = YKHO._custom.get('direction')\n if wUXB is not None:\n return wUXB\n wUXB = YKHO._infer_direction()\n YKHO._custom['direction'] = w... | [
"0.6821548",
"0.63275385",
"0.6075649",
"0.60469955",
"0.60103697",
"0.5995286",
"0.5909713",
"0.5879954",
"0.5865655",
"0.58491814",
"0.58286065",
"0.58074814",
"0.5741783",
"0.5733046",
"0.56667536",
"0.56516373",
"0.56312203",
"0.55854976",
"0.5577806",
"0.55760705",
"0.55... | 0.8217177 | 0 |
SetLayoutDirection(self, int dir) Change the layout direction for this dc. | def jERD(*qIxc, **B2fa):
return nAU3.DC_SetLayoutDirection(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oivB(YKHO, dir):\n if dir == 0:\n YKHO.direction = [0, -1]\n elif dir == 1:\n YKHO.direction = [1, 0]\n elif dir == 2:\n YKHO.direction = [0, 1]\n elif dir == 3:\n YKHO.direction = [-1, 0]",
"def XSoh(YKHO, XSoh):\n km9X.check_in_list(['horizontal', 'vertical'], dir... | [
"0.6763596",
"0.6604187",
"0.62859684",
"0.61577505",
"0.61390865",
"0.61306304",
"0.6063604",
"0.6016752",
"0.5847704",
"0.58346796",
"0.5825331",
"0.57590944",
"0.57527167",
"0.5690778",
"0.5678775",
"0.56265366",
"0.5592893",
"0.5503324",
"0.54901874",
"0.5407517",
"0.5407... | 0.8110888 | 0 |
__init__(self, wxPrintData printData) > PostScriptDC Constructs a PostScript printer device context from a `wx.PrintData` object. | def FIMM(YKHO, *qIxc, **B2fa):
nAU3.PostScriptDC_swiginit(YKHO, nAU3.new_PostScriptDC(*qIxc, **B2fa)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n nAU3.PrinterDC_swiginit(YKHO, nAU3.new_PrinterDC(*qIxc, **B2fa))",
"def FIMM(YKHO, *qIxc, **B2fa):\n nAU3.PaintDC_swiginit(YKHO, nAU3.new_PaintDC(*qIxc, **B2fa))",
"def FIMM(YKHO, *qIxc, **B2fa):\n nAU3.PseudoDC_swiginit(YKHO, nAU3.new_PseudoDC(*qIxc, **B2fa))",
"def... | [
"0.6627292",
"0.55769974",
"0.5498821",
"0.52433586",
"0.5235847",
"0.52232265",
"0.5218681",
"0.52083486",
"0.5045143",
"0.49230167",
"0.49207607",
"0.49161205",
"0.47949085",
"0.47943497",
"0.47890753",
"0.47830683",
"0.47491598",
"0.474897",
"0.47423297",
"0.4699378",
"0.4... | 0.70009905 | 0 |
GetRenderer(self) > GraphicsRenderer Returns the renderer that was used to create this instance, or ``None`` if it has not been initialized yet. | def Jetj(*qIxc, **B2fa):
return nAU3.GraphicsObject_GetRenderer(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RaSQ(YKHO):\n return YKHO._renderer",
"def ManU(YKHO, object):\n return YKHO.renderer",
"def KzNE(YKHO):\n pFW3 = str(TlDD.mel.currentRenderer())\n if pFW3 == '_3delight':\n pFW3 = '3delight'\n return pFW3",
"def KzNE(YKHO):\n pFW3 = str(TlDD.mel.currentRenderer())\n if pFW3 =... | [
"0.82801265",
"0.7790156",
"0.6966468",
"0.6693779",
"0.66867924",
"0.66639113",
"0.66594243",
"0.64196604",
"0.63646525",
"0.63106334",
"0.61746967",
"0.61444986",
"0.6105642",
"0.6105642",
"0.60079336",
"0.587281",
"0.58469546",
"0.5796721",
"0.57646734",
"0.57406914",
"0.5... | 0.8279501 | 1 |
__init__(self) > GraphicsBrush A wx.GraphicsBrush is a native representation of a brush. It is used for filling a path on a `wx.GraphicsContext`. The contents are specific and private to the respective renderer. The only way to get a valid instance is via a Create...Brush call on the graphics context or the renderer in... | def FIMM(YKHO, *qIxc, **B2fa):
nAU3.GraphicsBrush_swiginit(YKHO, nAU3.new_GraphicsBrush(*qIxc, **B2fa)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n nAU3.Brush_swiginit(YKHO, nAU3.new_Brush(*qIxc, **B2fa))",
"def k9bq(*qIxc, **B2fa):\n return nAU3.GraphicsRenderer_CreateBrush(*qIxc, **B2fa)",
"def FIMM(YKHO, *qIxc, **B2fa):\n nAU3.DCBrushChanger_swiginit(YKHO, nAU3.new_DCBrushChanger(*qIxc, **B2fa))",
"def k9bq(*... | [
"0.80910987",
"0.7026085",
"0.6963474",
"0.6924842",
"0.6809515",
"0.6470307",
"0.6467691",
"0.6280965",
"0.6248582",
"0.60682994",
"0.6031511",
"0.5992668",
"0.5990474",
"0.59255993",
"0.59239125",
"0.59070736",
"0.58806044",
"0.5875129",
"0.58329314",
"0.58192146",
"0.58025... | 0.8297617 | 0 |
IsEqual(self, GraphicsMatrix t) > bool Returns ``True`` if the elements of the transformation matrix are equal | def vTRD(*qIxc, **B2fa):
return nAU3.GraphicsMatrix_IsEqual(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IzcV(YKHO, Oa1e, jzdc, Fg_i):\n return YKHO.matrix[jzdc][Fg_i] == Oa1e[jzdc][Fg_i]",
"def ac8g(YKHO, kChg):\n if not isinstance(kChg, aLMY):\n return False\n if not (YKHO.m == kChg.m and YKHO.n == kChg.n):\n return False\n if not type(YKHO) == type(kChg):\n return False\n ... | [
"0.6903308",
"0.6511836",
"0.6341457",
"0.62287164",
"0.6143723",
"0.60640174",
"0.60561776",
"0.5996489",
"0.5951536",
"0.59447163",
"0.5865175",
"0.58625144",
"0.58365774",
"0.58311373",
"0.5829011",
"0.5791714",
"0.5785767",
"0.5765052",
"0.5757929",
"0.5699373",
"0.568260... | 0.75000954 | 0 |
Rotate(self, Double angle) Rotates this matrix. The angle should be specified in radians. | def j4mP(*qIxc, **B2fa):
return nAU3.GraphicsMatrix_Rotate(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0Pp(YKHO, YylR):\n if not isinstance(YylR, CEWs):\n YylR = CEWs(YylR)\n return YylR.matrix() * YKHO",
"def N0Pp(YKHO, YylR=0.0):\n YKHO.rotDegree = YylR\n YKHO.x = N0Pp(YKHO.x, angle=YylR, axes=(0, 1), reshape=False, output=None, order=3, mode='constant', cval=0.0, prefilter=True)",
"de... | [
"0.8093042",
"0.770695",
"0.72951525",
"0.72113276",
"0.7108223",
"0.7081033",
"0.7077026",
"0.704972",
"0.7033168",
"0.7030295",
"0.70264727",
"0.70071954",
"0.69756603",
"0.69745517",
"0.6859047",
"0.6829015",
"0.6755536",
"0.6750724",
"0.67404574",
"0.6714952",
"0.67117554... | 0.68461967 | 15 |
TransformDistance(self, dx, dy) > (dx, dy) Applies this matrix to a distance (ie. performs all transforms except translations) | def My9l(*qIxc, **B2fa):
return nAU3.GraphicsMatrix_TransformDistance(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hBUG(Jw7X, eUWA, I7o1):\n dk8F = [[1, 0, Jw7X], [0, 1, eUWA], [0, 0, 1]]\n Z3Aa = dzCf(dk8F, I7o1)\n return (Z3Aa[0][0], Z3Aa[1][0], Z3Aa[2][0])",
"def hBUG(YKHO, Jw7X, eUWA):\n YKHO.position = XTiz.array((Jw7X + YKHO.position[0], eUWA + YKHO.position[1]))\n return YKHO",
"def hBUG(YKHO, Jw7... | [
"0.60417557",
"0.5952418",
"0.5842331",
"0.5842331",
"0.57871807",
"0.5741904",
"0.57407415",
"0.57346255",
"0.546482",
"0.5405042",
"0.539548",
"0.53631365",
"0.53615415",
"0.5360233",
"0.5325403",
"0.5291083",
"0.5285573",
"0.526091",
"0.5258028",
"0.52485776",
"0.5243578",... | 0.758866 | 0 |
AddEllipse(self, Double x, Double y, Double w, Double h) Appends an ellipse fitting into the passed in rectangle. | def qe7U(*qIxc, **B2fa):
return nAU3.GraphicsPath_AddEllipse(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NCDP(YKHO, WKvO, LVAh, yzQ0, MKlR, nmDE=None, TvGz=None):\n if yzQ0 < 1 or MKlR < 1:\n return\n nmDE = YKHO.__prepare_style(nmDE, YKHO.style.char)\n TvGz = YKHO.__prepare_style(TvGz, 'o')\n jzdc = yzQ0\n Fg_i = MKlR - 1\n oPA2 = 8 * jzdc * jzdc\n m6vb = 8 * Fg_i * Fg_i\n HSlT = 4... | [
"0.72410196",
"0.7085039",
"0.7063051",
"0.69767064",
"0.6853982",
"0.6786084",
"0.6773635",
"0.6624767",
"0.66011614",
"0.65563107",
"0.639627",
"0.6213364",
"0.6148623",
"0.61088854",
"0.6094177",
"0.60747594",
"0.605296",
"0.6029079",
"0.5997824",
"0.5985459",
"0.5973904",... | 0.7330569 | 0 |
Contains(self, Double x, Double y, int fillStyle=ODDEVEN_RULE) > bool Contains(self, Point2D c, int fillStyle=ODDEVEN_RULE) > bool Returns ``True`` if the point is within the path. | def szOC(*qIxc):
return nAU3.GraphicsPath_Contains(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SyhA(YKHO, WKvO, LVAh):\n return abs(WKvO - YKHO._x_position) <= YKHO._x_length / 2 and abs(LVAh - YKHO._y_position) <= YKHO._y_length / 2",
"def S8eX(YKHO, WKvO, LVAh=None):\n WKvO, LVAh = LVAh is not None and PvyL(WKvO, LVAh) or PvyL(WKvO[0], WKvO[1])\n bsfr = YKHO.min_x() <= WKvO <= YKHO.max_x()\... | [
"0.68283975",
"0.65052503",
"0.6492942",
"0.6403724",
"0.6367342",
"0.6171986",
"0.61165446",
"0.6111398",
"0.61015403",
"0.6098627",
"0.6095681",
"0.6093683",
"0.6073181",
"0.6071048",
"0.6060477",
"0.6051549",
"0.6051549",
"0.6033557",
"0.6022265",
"0.59782445",
"0.5883873"... | 0.6671911 | 1 |
__init__(self, Colour startCol=wxTransparentColour, Colour endCol=wxTransparentColour) > GraphicsGradientStops | def FIMM(YKHO, *qIxc, **B2fa):
nAU3.GraphicsGradientStops_swiginit(YKHO, nAU3.new_GraphicsGradientStops(*qIxc, **B2fa)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n nAU3.GraphicsGradientStop_swiginit(YKHO, nAU3.new_GraphicsGradientStop(*qIxc, **B2fa))",
"def kLxY(*qIxc, **B2fa):\n return nAU3.GraphicsGradientStops_Item(*qIxc, **B2fa)",
"def XVRe(*qIxc):\n return nAU3.GraphicsGradientStops_Add(*qIxc)",
"def OP2O(*qIxc, **B2fa):\n... | [
"0.8041083",
"0.76871014",
"0.75039935",
"0.72369665",
"0.70339566",
"0.69550365",
"0.6240276",
"0.60976833",
"0.6091771",
"0.59750694",
"0.58653957",
"0.5829068",
"0.57306105",
"0.56590885",
"0.56390345",
"0.5625539",
"0.55978477",
"0.5591013",
"0.55825067",
"0.55040044",
"0... | 0.8254661 | 0 |
Item(self, unsigned int n) > GraphicsGradientStop | def kLxY(*qIxc, **B2fa):
return nAU3.GraphicsGradientStops_Item(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(*qIxc, **B2fa):\n return nAU3.GraphicsGradientStops___getitem__(*qIxc, **B2fa)",
"def XVRe(*qIxc):\n return nAU3.GraphicsGradientStops_Add(*qIxc)",
"def FIMM(YKHO, *qIxc, **B2fa):\n nAU3.GraphicsGradientStop_swiginit(YKHO, nAU3.new_GraphicsGradientStop(*qIxc, **B2fa))",
"def szAg(*qIxc, **B... | [
"0.72160256",
"0.67016673",
"0.6621613",
"0.6576009",
"0.64979047",
"0.5591437",
"0.55512017",
"0.54179156",
"0.53620625",
"0.5346018",
"0.5339097",
"0.52489483",
"0.51869196",
"0.5184342",
"0.51815486",
"0.5162053",
"0.5161982",
"0.50897837",
"0.5076836",
"0.50677735",
"0.50... | 0.8141924 | 0 |
CreateBrush(self, Brush brush) > GraphicsBrush Creates a native brush from a `wx.Brush`. | def k9bq(*qIxc, **B2fa):
return nAU3.GraphicsContext_CreateBrush(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k9bq(*qIxc, **B2fa):\n return nAU3.GraphicsRenderer_CreateBrush(*qIxc, **B2fa)",
"def mJhP(*qIxc, **B2fa):\n wEf2 = nAU3.new_BrushFromBitmap(*qIxc, **B2fa)\n return wEf2",
"def Nq5f(*qIxc, **B2fa):\n return nAU3.PseudoDC_SetBrush(*qIxc, **B2fa)",
"def Nq5f(*qIxc):\n return nAU3.GraphicsCon... | [
"0.8232847",
"0.69264555",
"0.69116765",
"0.6888303",
"0.6752329",
"0.6561244",
"0.6546954",
"0.6487892",
"0.6410924",
"0.6378654",
"0.62426686",
"0.6215095",
"0.59484494",
"0.5919763",
"0.5688286",
"0.5588821",
"0.55504495",
"0.549715",
"0.548766",
"0.5484719",
"0.5462824",
... | 0.8116366 | 1 |
CreateBitmap(self, Bitmap bitmap) > GraphicsBitmap Create a native bitmap representation. | def O7iW(*qIxc, **B2fa):
return nAU3.GraphicsContext_CreateBitmap(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O7iW(*qIxc, **B2fa):\n return nAU3.GraphicsRenderer_CreateBitmap(*qIxc, **B2fa)",
"def H1mm(*qIxc, **B2fa):\n return nAU3.GraphicsRenderer_CreateBitmapFromImage(*qIxc, **B2fa)",
"def H1mm(*qIxc, **B2fa):\n return nAU3.GraphicsContext_CreateBitmapFromImage(*qIxc, **B2fa)",
"def wjpS(*qIxc, **B2fa... | [
"0.7502553",
"0.7007724",
"0.69095236",
"0.6790292",
"0.65452826",
"0.6530703",
"0.6499759",
"0.64792544",
"0.6478002",
"0.6476131",
"0.6410944",
"0.6376336",
"0.6302367",
"0.6010613",
"0.59891057",
"0.59664065",
"0.5893242",
"0.587906",
"0.58728784",
"0.58208627",
"0.5815120... | 0.7603163 | 0 |
ClipRegion(self, Region region) Clips drawings to the region intersected with the current clipping region. | def gc8l(*qIxc, **B2fa):
return nAU3.GraphicsContext_ClipRegion(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hJXW(*qIxc, **B2fa):\n return nAU3.DC_SetClippingRegionAsRegion(*qIxc, **B2fa)",
"def XDEh(*qIxc, **B2fa):\n return nAU3.DC_SetClippingRegion(*qIxc, **B2fa)",
"def Xloi(*qIxc, **B2fa):\n return nAU3.GraphicsContext_Clip(*qIxc, **B2fa)",
"def rD3g(*qIxc, **B2fa):\n return nAU3.DC_SetDeviceClip... | [
"0.6118964",
"0.60169363",
"0.5943024",
"0.56975824",
"0.534678",
"0.5260228",
"0.525321",
"0.5248036",
"0.5247204",
"0.50462407",
"0.5039996",
"0.49686107",
"0.49299106",
"0.49217564",
"0.48909178",
"0.4859415",
"0.48486316",
"0.4817046",
"0.4803144",
"0.47583982",
"0.473627... | 0.7542864 | 0 |
ResetClip(self) Resets the clipping to original shape. | def NDE0(*qIxc, **B2fa):
return nAU3.GraphicsContext_ResetClip(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_TI(YKHO):\n if YKHO.ui.checkBox.isChecked():\n YKHO.changeClippingPlane()",
"def rQzg(YKHO):\n YKHO.ResetCameraClippingRange()",
"def SiRx(YKHO):\n YKHO._x = 0\n YKHO._y = 0",
"def IyQ5(YKHO, o8Uo=False):\n YKHO.data.mask = o8Uo",
"def SiRx(YKHO):\n super(qy7k, YKHO).reset()\... | [
"0.67099875",
"0.6461373",
"0.6280754",
"0.6087412",
"0.60445565",
"0.6035751",
"0.593384",
"0.5902362",
"0.5855446",
"0.58213454",
"0.5808782",
"0.5787206",
"0.5786947",
"0.57867193",
"0.5775926",
"0.57567334",
"0.57552665",
"0.5709666",
"0.5704816",
"0.5696426",
"0.5685188"... | 0.83034784 | 0 |
GetAntialiasMode(self) > int Returns the current shape antialiasing mode | def l1Nn(*qIxc, **B2fa):
return nAU3.GraphicsContext_GetAntialiasMode(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def izj_(*qIxc, **B2fa):\n return nAU3.GraphicsContext_SetAntialiasMode(*qIxc, **B2fa)",
"def oRLX(YKHO):\n dSjZ.caca_get_dither_antialias.argtypes = [xvks]\n dSjZ.caca_get_dither_antialias.restype = gk2W.c_char_p\n return dSjZ.caca_get_dither_antialias(YKHO)",
"def u0jW(YKHO, BWXx):\n dSjZ.caca... | [
"0.7742628",
"0.7171339",
"0.67590255",
"0.6226251",
"0.56632394",
"0.5142588",
"0.5129673",
"0.48914623",
"0.48595712",
"0.47780567",
"0.47474778",
"0.4710508",
"0.47051233",
"0.46946365",
"0.4691896",
"0.46499568",
"0.4619785",
"0.4610968",
"0.45927444",
"0.45836878",
"0.45... | 0.86162996 | 0 |
GetDPI(self) > (dpiX, dpiY) Returns the resolution of the graphics context in device points per inch | def lPsV(*qIxc, **B2fa):
return nAU3.GraphicsContext_GetDPI(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMN5(YKHO):\n return YKHO._lowLevelGetDeviceResolution()",
"def CMuK(YKHO):\n return (YKHO.display_info['width'], YKHO.display_info['height'])",
"def rKYB(LZpg):\n return (LZpg.get_figwidth() * geWR, LZpg.get_figheight() * geWR)",
"def ZnSt(tk5Y):\n weqM = tk5Y.winfo_fpixels('1i')\n X6rE =... | [
"0.6357211",
"0.6317563",
"0.6225718",
"0.6151055",
"0.604814",
"0.5992189",
"0.59840673",
"0.59682363",
"0.59487927",
"0.5861387",
"0.5845064",
"0.5800081",
"0.57972467",
"0.571255",
"0.5683721",
"0.5675237",
"0.56622845",
"0.5584634",
"0.5567718",
"0.5551507",
"0.5512414",
... | 0.8161505 | 0 |
Rotate(self, Double angle) Rotate the current transformation matrix of the context. ``angle`` is specified in radians. | def j4mP(*qIxc, **B2fa):
return nAU3.GraphicsContext_Rotate(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0Pp(YKHO, YylR):\n if not isinstance(YylR, CEWs):\n YylR = CEWs(YylR)\n return YylR.matrix() * YKHO",
"def N0Pp(YKHO, YylR=0.0):\n YKHO.rotDegree = YylR\n YKHO.x = N0Pp(YKHO.x, angle=YylR, axes=(0, 1), reshape=False, output=None, order=3, mode='constant', cval=0.0, prefilter=True)",
"de... | [
"0.81348765",
"0.79441965",
"0.7892765",
"0.7257743",
"0.721552",
"0.72072345",
"0.7169503",
"0.7150962",
"0.7149613",
"0.7119522",
"0.7109902",
"0.7054903",
"0.7044321",
"0.7038549",
"0.70223594",
"0.6963677",
"0.69541365",
"0.69185656",
"0.6856111",
"0.68250316",
"0.6745201... | 0.5998495 | 88 |
GetTransform(self) > GraphicsMatrix Gets the current transformation matrix of this context. | def qMpe(*qIxc, **B2fa):
return nAU3.GraphicsContext_GetTransform(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LAsJ(YKHO):\n return mJjH.Spacecraft_GetCoordinateSystemTransformMatrix(YKHO)",
"def cFTJ(YKHO) -> KCsE:\n if YKHO._transformation_matrix is None:\n YKHO._transformation_matrix = XTiz.matmul(YKHO.projection_matrix, YKHO.camera_matrix)\n return YKHO._transformation_matrix",
"def Dh6P(YKHO):\... | [
"0.7405549",
"0.7143793",
"0.70235795",
"0.6855305",
"0.676638",
"0.6591648",
"0.6459002",
"0.6418789",
"0.6396801",
"0.6332562",
"0.626763",
"0.6253927",
"0.62492496",
"0.6210323",
"0.62030774",
"0.6170639",
"0.6163065",
"0.612333",
"0.61212504",
"0.61100924",
"0.6105858",
... | 0.7118896 | 2 |
DrawEllipse(self, Double x, Double y, Double w, Double h) Draws an ellipse. | def _3pH(*qIxc, **B2fa):
return nAU3.GraphicsContext_DrawEllipse(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _3pH(*qIxc, **B2fa):\n return nAU3.DC_DrawEllipse(*qIxc, **B2fa)",
"def _3pH(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawEllipse(*qIxc, **B2fa)",
"def NCDP(YKHO, WKvO, LVAh, yzQ0, MKlR, nmDE=None, TvGz=None):\n if yzQ0 < 1 or MKlR < 1:\n return\n nmDE = YKHO.__prepare_style(nmDE, YKHO.sty... | [
"0.77952397",
"0.75143325",
"0.7390189",
"0.7070522",
"0.704883",
"0.6955971",
"0.69000494",
"0.6801999",
"0.67413443",
"0.6726186",
"0.6718737",
"0.6705709",
"0.6569845",
"0.6562523",
"0.65273833",
"0.652095",
"0.65059704",
"0.6505433",
"0.6466475",
"0.64439154",
"0.64119035... | 0.7706246 | 1 |
GetBrush(int item) > Brush | def GkmA(*qIxc, **B2fa):
return nAU3.StockGDI_GetBrush(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZ29(*qIxc, **B2fa):\n return nAU3.StockGDI_GetBrush(*qIxc, **B2fa)",
"def CH3f(YKHO, qfpW):\n Aofo = YKHO._brushes.get(qfpW)\n if Aofo is None:\n GGcq = YKHO._get_color(qfpW)\n Aofo = CsJA.QBrush(GGcq)\n YKHO._brushes[qfpW] = Aofo\n return Aofo",
"def GkmA(*qIxc, **B2fa):\... | [
"0.7166986",
"0.7123134",
"0.6952175",
"0.6716421",
"0.6553569",
"0.642009",
"0.6400503",
"0.6309028",
"0.6195774",
"0.6058545",
"0.5990012",
"0.5983496",
"0.5857215",
"0.5814818",
"0.58020604",
"0.5801466",
"0.578056",
"0.5759894",
"0.568471",
"0.56815755",
"0.5632249",
"0... | 0.7023911 | 2 |
StockGDI_GetBrush(int item) > Brush | def KZ29(*qIxc, **B2fa):
return nAU3.StockGDI_GetBrush(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GkmA(*qIxc, **B2fa):\n return nAU3.StockGDI_GetBrush(*qIxc, **B2fa)",
"def GkmA(*qIxc, **B2fa):\n return nAU3.DC_GetBrush(*qIxc, **B2fa)",
"def CH3f(YKHO, qfpW):\n Aofo = YKHO._brushes.get(qfpW)\n if Aofo is None:\n GGcq = YKHO._get_color(qfpW)\n Aofo = CsJA.QBrush(GGcq)\n ... | [
"0.78912807",
"0.73236567",
"0.69892097",
"0.68370295",
"0.66583973",
"0.6544787",
"0.6498707",
"0.64183027",
"0.6245086",
"0.6185694",
"0.61850125",
"0.6171845",
"0.6154883",
"0.61354357",
"0.60343456",
"0.5931299",
"0.5901045",
"0.5857192",
"0.5752734",
"0.5746563",
"0.5746... | 0.82893646 | 0 |
Find(self, String name) > Colour | def vuxv(*qIxc, **B2fa):
return nAU3.ColourDatabase_Find(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UwWb(YKHO, mWFP):\n mWFP = mWFP.lower()\n try:\n return YKHO.__byname[mWFP]\n except KeyError:\n raise BeFi(mWFP)",
"def pRcj(YKHO, *qIxc):\n return EdJ_.XCAFDoc_ColorTool_FindColor(YKHO, *qIxc)",
"def quSf(*qIxc, **B2fa):\n return nAU3.ColourDatabase_FindName(*qIxc, **B2fa)",
... | [
"0.7562506",
"0.7238627",
"0.71798253",
"0.6508098",
"0.6423682",
"0.63561803",
"0.625689",
"0.6222283",
"0.61898416",
"0.6087063",
"0.6082622",
"0.6073002",
"0.60489076",
"0.6022492",
"0.6016488",
"0.6011766",
"0.59935987",
"0.5972119",
"0.5922487",
"0.5900979",
"0.5885039",... | 0.7492734 | 1 |
DrawComboBoxDropButton(self, Window win, DC dc, Rect rect, int flags=0) Draw a button like the one used by `wx.ComboBox` to show a drop down window. The usual appearance is a downwards pointing arrow. The ``flags`` parameter may have the ``wx.CONTROL_PRESSED`` or ``wx.CONTROL_CURRENT`` bits set. | def BtR5(*qIxc, **B2fa):
return nAU3.RendererNative_DrawComboBoxDropButton(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BUDN(YKHO, Bc4p, NMrk, ZfUD, mawX):\n pea6 = Xv7z = 0\n OZPp = lnPd.Rect(mawX.x, mawX.y, mawX.width - OneO, mawX.height)\n N0w2 = lnPd.Rect(mawX.x + mawX.width - OneO - 1, mawX.y, OneO + 1, mawX.height)\n H4hf = ZfUD.GetOrientation() == TKuO\n if H4hf:\n OZPp = lnPd.Rect(mawX.x, mawX.y, m... | [
"0.76593125",
"0.6662706",
"0.59694374",
"0.5676883",
"0.5545846",
"0.54394364",
"0.5366716",
"0.5349982",
"0.5285864",
"0.5244842",
"0.5133314",
"0.5127412",
"0.5071245",
"0.5067291",
"0.5063803",
"0.49870348",
"0.49694335",
"0.49336824",
"0.48685548",
"0.4853486",
"0.483218... | 0.8715169 | 0 |
DrawDropArrow(self, Window win, DC dc, Rect rect, int flags=0) Draw a drop down arrow that is suitable for use outside a combo box. Arrow will have a transparent background. ``rect`` is not entirely filled by the arrow. Instead, you should use bounding rectangle of a drop down button which arrow matches the size you ne... | def Ucmz(*qIxc, **B2fa):
return nAU3.RendererNative_DrawDropArrow(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BtR5(*qIxc, **B2fa):\n return nAU3.RendererNative_DrawComboBoxDropButton(*qIxc, **B2fa)",
"def BUDN(YKHO, Bc4p, NMrk, ZfUD, mawX):\n pea6 = Xv7z = 0\n OZPp = lnPd.Rect(mawX.x, mawX.y, mawX.width - OneO, mawX.height)\n N0w2 = lnPd.Rect(mawX.x + mawX.width - OneO - 1, mawX.y, OneO + 1, mawX.height)... | [
"0.7318491",
"0.6992982",
"0.6417645",
"0.5917673",
"0.5816695",
"0.5467198",
"0.5369664",
"0.530963",
"0.52288103",
"0.5194493",
"0.51941293",
"0.5189423",
"0.51787627",
"0.51473963",
"0.5096197",
"0.50864285",
"0.50747424",
"0.48910204",
"0.4878238",
"0.48641682",
"0.484939... | 0.72934014 | 1 |
DrawCheckBox(self, Window win, DC dc, Rect rect, int flags=0) Draw a check button. Flags may use wx.CONTROL_CHECKED, wx.CONTROL_UNDETERMINED and wx.CONTROL_CURRENT. | def nsuM(*qIxc, **B2fa):
return nAU3.RendererNative_DrawCheckBox(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKt5(_AKB, UXqs='', oeNL=QCtM, zNig=Vjkb, _Cnz=0, wEf2=gJVE, mWFP='checkBox', id=tXeu, Ahgi=None, Y9ei=None):\n l69l = lnPd.CheckBox(_AKB, id, UXqs, oeNL, zNig, _Cnz, wEf2, mWFP)\n if Ahgi:\n l69l.Bind(lnPd.EVT_CHECKBOX, Ahgi)\n if Y9ei:\n l69l.SetToolTip(MWtk(Y9ei))\n return l69l",
... | [
"0.6680226",
"0.6070683",
"0.60555065",
"0.60488456",
"0.6046832",
"0.6018702",
"0.59610635",
"0.5915147",
"0.5776706",
"0.56807315",
"0.56525016",
"0.5633793",
"0.56115794",
"0.5607222",
"0.55667365",
"0.5541556",
"0.55049855",
"0.54901105",
"0.5488723",
"0.548554",
"0.54098... | 0.8053374 | 0 |
DrawPushButton(self, Window win, DC dc, Rect rect, int flags=0) Draw a blank button. Flags may be wx.CONTROL_PRESSED, wx.CONTROL_CURRENT and wx.CONTROL_ISDEFAULT | def s2WA(*qIxc, **B2fa):
return nAU3.RendererNative_DrawPushButton(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XHAL(YKHO, KnxT):\n EBgd = ksmO.Point(YKHO.cen_point_x - YKHO.width / 2, YKHO.cen_point_y - YKHO.height / 2)\n HpuQ = ksmO.Point(YKHO.cen_point_x + YKHO.width / 2, YKHO.cen_point_y + YKHO.height / 2)\n YKHO.button = ksmO.Rectangle(EBgd, HpuQ)\n YKHO.button.setOutline('Orange')\n YKHO.button.draw... | [
"0.70560145",
"0.6778607",
"0.6686541",
"0.65693283",
"0.654103",
"0.653299",
"0.6290433",
"0.62687343",
"0.60929114",
"0.60749924",
"0.604924",
"0.59718156",
"0.59577626",
"0.5918089",
"0.58294517",
"0.5781291",
"0.5779622",
"0.5751699",
"0.57453424",
"0.5735499",
"0.5699476... | 0.7672504 | 0 |
DrawComboBox(self, Window win, DC dc, Rect rect, int flags=0) Draw a native wxComboBox | def Q9ja(*qIxc, **B2fa):
return nAU3.RendererNative_DrawComboBox(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BtR5(*qIxc, **B2fa):\n return nAU3.RendererNative_DrawComboBoxDropButton(*qIxc, **B2fa)",
"def Uztl(gJd6):\n gEmA = hnIv(oyIN.random.rand(8, 8))\n nXzw = VO52(gEmA)\n gJd6.addWidget(nXzw)\n xnVy = nXzw.renderComboBox\n VKhi = {xnVy.itemText(YRbF) for YRbF in range(xnVy.count())}\n _3F6 =... | [
"0.76284766",
"0.66880083",
"0.64532244",
"0.60422045",
"0.5992079",
"0.5891338",
"0.58814335",
"0.57120377",
"0.5657657",
"0.56155926",
"0.5547267",
"0.54994607",
"0.54950464",
"0.54498297",
"0.54258305",
"0.54061306",
"0.53530174",
"0.5334307",
"0.5316815",
"0.53102154",
"0... | 0.86188096 | 0 |
GetVersion(self) > RendererVersion Returns the version of the renderer. Will be used for ensuring compatibility of dynamically loaded renderers. | def CPyo(*qIxc, **B2fa):
return nAU3.RendererNative_GetVersion(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rWrN(*qIxc, **B2fa):\n return nAU3.RendererVersion_IsCompatible(*qIxc, **B2fa)",
"def _TU8(*qIxc, **B2fa):\n return nAU3.RendererVersion_IsCompatible(*qIxc, **B2fa)",
"def CPyo(YKHO) -> 'char const *':\n return VW7C.itkVTKPolyDataReaderMF2_GetVersion(YKHO)",
"def kaPv(YKHO):\n return DpZH.__v... | [
"0.6882393",
"0.6380028",
"0.6210639",
"0.6126574",
"0.6126574",
"0.6087837",
"0.60563874",
"0.60217214",
"0.601648",
"0.6012295",
"0.59921896",
"0.59848994",
"0.5968239",
"0.5949565",
"0.5949565",
"0.5933039",
"0.5933039",
"0.5919101",
"0.5909593",
"0.5909593",
"0.5909593",
... | 0.71863675 | 0 |
RendererNative_Get() > RendererNative Return the currently used renderer | def D_Qf(*qIxc):
return nAU3.RendererNative_Get(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RaSQ(YKHO):\n return YKHO._renderer",
"def tc9x(*qIxc):\n return nAU3.RendererNative_GetDefault(*qIxc)",
"def xP7V(*qIxc, **B2fa):\n return nAU3.RendererNative_Get(*qIxc, **B2fa)",
"def ManU(YKHO, object):\n return YKHO.renderer",
"def KzNE(YKHO):\n pFW3 = str(TlDD.mel.currentRenderer())... | [
"0.7815131",
"0.7593252",
"0.743837",
"0.73018354",
"0.7297417",
"0.72406906",
"0.71242607",
"0.702849",
"0.6896884",
"0.68647754",
"0.68399894",
"0.6599295",
"0.6580494",
"0.6454956",
"0.6264135",
"0.62195516",
"0.61737067",
"0.61633193",
"0.5784827",
"0.5739537",
"0.5724518... | 0.82467645 | 0 |
GetLen(self) > int Returns the number of operations in the recorded list. | def aNvx(*qIxc, **B2fa):
return nAU3.PseudoDC_GetLen(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCBL(YKHO):\n return len(YKHO.list)",
"def szAg(YKHO):\n return YKHO._list_size",
"def szAg(YKHO):\n return YKHO.count",
"def szAg(YKHO):\n return YKHO._count",
"def szAg(YKHO):\n return YKHO._count",
"def szAg(YKHO):\n return YKHO._count()",
"def szAg(YKHO):\n return len(YKHO.... | [
"0.7785971",
"0.7781052",
"0.7682183",
"0.7670979",
"0.7670979",
"0.7650478",
"0.7633049",
"0.7629848",
"0.76096946",
"0.76096946",
"0.76091665",
"0.7585334",
"0.75841326",
"0.7580162",
"0.7560508",
"0.7555701",
"0.7554578",
"0.75458455",
"0.7539726",
"0.753282",
"0.7525722",... | 0.0 | -1 |
SetId(self, int id) Sets the id to be associated with subsequent operations. | def psjw(*qIxc, **B2fa):
return nAU3.PseudoDC_SetId(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YKHO, id):\n YKHO._id = id",
"def id... | [
"0.76010805",
"0.75870514",
"0.7557918",
"0.7402723",
"0.7402723",
"0.7402723",
"0.7402723",
"0.7402723",
"0.739485",
"0.73852074",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
"0.7349676",
... | 0.0 | -1 |
SetIdBounds(self, int id, Rect rect) Set the bounding rect of a given object. This will create an object node if one doesn't exist. | def PMnq(*qIxc, **B2fa):
return nAU3.PseudoDC_SetIdBounds(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yV7i(YKHO, mawX):\n pass",
"def JPHp(YKHO, id, mawX):\n if hasattr(YKHO, 'leaves'):\n YKHO.leaves[mawX] = id\n else:\n for Z9rn in YKHO.children:\n if Z9rn.rect.intersects(mawX):\n Z9rn.insert(id, mawX)",
"def dhQr(YKHO, dhQr):\n YKHO._object_rect = dhQr"... | [
"0.66206545",
"0.6436561",
"0.621927",
"0.5603806",
"0.5570263",
"0.546322",
"0.5437625",
"0.5412281",
"0.5402265",
"0.5374178",
"0.5280173",
"0.52391034",
"0.5217509",
"0.51818943",
"0.5130875",
"0.5119906",
"0.509003",
"0.5086958",
"0.50695986",
"0.50590056",
"0.5043505",
... | 0.6670591 | 0 |
DrawArcPoint(self, Point pt1, Point pt2, Point center) Draws an arc of a circle, centred on the center point (xc, yc), from the first point to the second. The current pen is used for the outline and the current brush for filling the shape. The arc is drawn in an anticlockwise direction from the start point to the end p... | def UHmV(*qIxc, **B2fa):
return nAU3.PseudoDC_DrawArcPoint(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHmV(*qIxc, **B2fa):\n return nAU3.DC_DrawArcPoint(*qIxc, **B2fa)",
"def aGEO(aNZO, hgjH, H2v2, TVTK, snrU=0, M5jx=XTiz.pi, qfpW='k', XSoh='down', UoOD=Is2c):\n elFl = XTiz.pi / 2\n fFgL = XTiz.pi * 1.5\n Mt5V = XTiz.pi\n uNXM = hgjH[1]\n assert elFl <= snrU <= M5jx <= fFgL\n Fg_i = H2v2... | [
"0.75487953",
"0.70214677",
"0.6821592",
"0.66507584",
"0.66230494",
"0.66191393",
"0.6500745",
"0.64806986",
"0.6430331",
"0.63172454",
"0.62540984",
"0.6211109",
"0.61930823",
"0.61807275",
"0.59515774",
"0.5870684",
"0.58365405",
"0.5727422",
"0.57171893",
"0.57137656",
"0... | 0.7549954 | 0 |
DrawEllipticArc(self, int x, int y, int w, int h, double start, double end) Draws an arc of an ellipse, with the given rectangle defining the bounds of the ellipse. The current pen is used for drawing the arc and the current brush is used for drawing the pie. The start and end parameters specify the start and end of th... | def GRsW(*qIxc, **B2fa):
return nAU3.PseudoDC_DrawEllipticArc(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GRsW(*qIxc, **B2fa):\n return nAU3.DC_DrawEllipticArc(*qIxc, **B2fa)",
"def qm7q(WKvO, LVAh, jzdc, Fg_i, Cwt5, UqYS, q7In, DZOe=1):\n if DZOe:\n KUch.rlarc(WKvO, LVAh, jzdc, Fg_i, Cwt5, UqYS, q7In)\n else:\n KUch.arcell(WKvO, LVAh, jzdc, Fg_i, Cwt5, UqYS, q7In)",
"def Io6r(YKHO, WKvO... | [
"0.77310556",
"0.666083",
"0.6609125",
"0.64216655",
"0.6405404",
"0.6334007",
"0.6299172",
"0.6287554",
"0.62615395",
"0.6233775",
"0.62303245",
"0.6216891",
"0.6172199",
"0.6163228",
"0.6142285",
"0.60886174",
"0.6018407",
"0.6015129",
"0.6006408",
"0.599503",
"0.5978285",
... | 0.7740569 | 0 |
DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end) Draws an arc of an ellipse, with the given rectangle defining the bounds of the ellipse. The current pen is used for drawing the arc and the current brush is used for drawing the pie. The start and end parameters specify the start and end of th... | def CJRq(*qIxc, **B2fa):
return nAU3.PseudoDC_DrawEllipticArcPointSize(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJRq(*qIxc, **B2fa):\n return nAU3.DC_DrawEllipticArcPointSize(*qIxc, **B2fa)",
"def GRsW(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawEllipticArc(*qIxc, **B2fa)",
"def GRsW(*qIxc, **B2fa):\n return nAU3.DC_DrawEllipticArc(*qIxc, **B2fa)",
"def MVzo(*qIxc, **B2fa):\n return nAU3.PseudoDC_DrawEl... | [
"0.7464765",
"0.675111",
"0.67348963",
"0.66469735",
"0.65797347",
"0.6363282",
"0.6299479",
"0.6208628",
"0.60571945",
"0.6057119",
"0.5952966",
"0.5941457",
"0.58783364",
"0.5873323",
"0.5862497",
"0.5728066",
"0.5715251",
"0.5709772",
"0.57077706",
"0.5662245",
"0.56450224... | 0.749016 | 0 |
DrawEllipsePointSize(self, Point pt, Size sz) Draws an ellipse contained in the specified rectangle. The current pen is used for the outline and the current brush for filling the shape. | def MVzo(*qIxc, **B2fa):
return nAU3.PseudoDC_DrawEllipsePointSize(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MVzo(*qIxc, **B2fa):\n return nAU3.DC_DrawEllipsePointSize(*qIxc, **B2fa)",
"def A40V(YKHO, qfpW, dQgj, zNig, e7ZM=0, DNwW='topleft'):\n qfpW = P3Um.color._determine(qfpW)\n vgXP = YKHO._calculate_offset(DNwW, zNig)\n a9eO.draw.ellipse(YKHO._surf, qfpW, (dQgj + vgXP, zNig), e7ZM)",
"def A40V(YK... | [
"0.7800147",
"0.68519264",
"0.6674449",
"0.6451671",
"0.6439608",
"0.6344289",
"0.62988687",
"0.6290144",
"0.6195912",
"0.6042562",
"0.60226065",
"0.6003999",
"0.5995427",
"0.59587413",
"0.59253335",
"0.5924512",
"0.58367085",
"0.5823704",
"0.5798742",
"0.5780746",
"0.5728426... | 0.7717285 | 1 |
DrawLines(self, List points, int xoffset=0, int yoffset=0) Draws lines using a sequence of `wx.Point` objects, adding the optional offset coordinate. The current pen is used for drawing the lines. | def fkJ3(*qIxc, **B2fa):
return nAU3.PseudoDC_DrawLines(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AvEV(YKHO, Nqlg, oxZz=None):\n if oxZz is None:\n oxZz = []\n elif isinstance(oxZz, lnPd.Pen):\n oxZz = [oxZz]\n elif len(oxZz) != len(Nqlg):\n raise ValueError('lines and pens must have same length')\n return YKHO._DrawLineList(Nqlg, oxZz, [])",
"def DAlO(YKHO, LTIa, oxZz=No... | [
"0.74947006",
"0.7190394",
"0.7018961",
"0.6980155",
"0.6914404",
"0.6832856",
"0.68032837",
"0.6748354",
"0.65765494",
"0.6536526",
"0.6414988",
"0.64143753",
"0.633158",
"0.63033926",
"0.6205687",
"0.6092409",
"0.60557073",
"0.6047442",
"0.6047442",
"0.60428524",
"0.6021549... | 0.6820591 | 6 |
SetBrush(self, Brush brush) Sets the current brush for the DC. If the argument is ``wx.NullBrush``, the current brush is selected out of the device context, and the original brush restored, allowing the current brush to be destroyed safely. | def Nq5f(*qIxc, **B2fa):
return nAU3.PseudoDC_SetBrush(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nq5f(*qIxc, **B2fa):\n return nAU3.DC_SetBrush(*qIxc, **B2fa)",
"def Nq5f(*qIxc):\n return nAU3.GraphicsContext_SetBrush(*qIxc)",
"def kE0h(YKHO, u7tq=None):\n YKHO._text_bg_brush = u7tq",
"def MOvd(YKHO, u7tq):\n YKHO.format.setBackground(u7tq)",
"def MprG(YKHO):\n j46J = YKHO.brushset\... | [
"0.76229596",
"0.7186127",
"0.6570781",
"0.63088095",
"0.62353164",
"0.59262836",
"0.56783473",
"0.5676502",
"0.53536505",
"0.5085852",
"0.507248",
"0.4867964",
"0.48297256",
"0.4756975",
"0.47530127",
"0.4725473",
"0.4633377",
"0.4533273",
"0.45251176",
"0.43942085",
"0.4289... | 0.7358774 | 1 |
Make sure index page returns correct HTML. | def W82A(YKHO):
x0hE = N5z6.app.test_client()
Aofo = x0hE.get('/', follow_redirects=True)
YKHO.assertIn(b'<p class="navbar-text">Already have an account?</p>', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2ox(YKHO):\n geh0 = YKHO.setup_get_html_test('/api/index')\n YKHO.assertEqual(geh0.status_code, 200)",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def lpRE(YKHO):\n geh0 = YKHO.client.get('')\n Y... | [
"0.7524154",
"0.74661136",
"0.74661136",
"0.74661136",
"0.74646103",
"0.7411164",
"0.7410331",
"0.73919886",
"0.7380661",
"0.73767",
"0.7321972",
"0.72560066",
"0.7215818",
"0.7215818",
"0.7207246",
"0.72048974",
"0.71803975",
"0.7164717",
"0.7164717",
"0.7164717",
"0.7164717... | 0.0 | -1 |
Make sure index page returns correct HTML. | def P1rF(YKHO):
x0hE = N5z6.app.test_client()
Aofo = x0hE.post('/login', follow_redirects=True, data={'username': 'sadaqiq@gmail.com', 'password': 'hadis'})
print('it is printing ')
YKHO.assertIn(b'New Event', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2ox(YKHO):\n geh0 = YKHO.setup_get_html_test('/api/index')\n YKHO.assertEqual(geh0.status_code, 200)",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def lpRE(YKHO):\n geh0 = YKHO.client.get('')\n Y... | [
"0.7524154",
"0.74661136",
"0.74661136",
"0.74661136",
"0.74646103",
"0.7411164",
"0.7410331",
"0.73919886",
"0.7380661",
"0.73767",
"0.7321972",
"0.72560066",
"0.7215818",
"0.7215818",
"0.7207246",
"0.72048974",
"0.71803975",
"0.7164717",
"0.7164717",
"0.7164717",
"0.7164717... | 0.0 | -1 |
Highlight value in a table column. | def ZUDr(wEf2, iPqd: dict, acoq):
wEf2 = round(wEf2, eum2)
for qfpW, Q3Ge in iPqd.items():
if acoq == 'simple':
if Q3Ge:
return zWv4([qfpW, 'BOLD'], format(round(wEf2, eum2), f'.{eum2}f'), GGQQ)
elif acoq in ['latex', 'latex_raw']:
if Q3Ge:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JieL(Z9rn, TyAe):\n OfK8 = TyAe.get(Z9rn)\n return 'background-color: %s' % OfK8",
"def fCZ6(iVRZ, rdlD):\n return iVRZ.render_cell(rdlD)",
"def mZuj(wEf2):\n if isinstance(wEf2, int):\n qfpW = 'yellow' if wEf2 < 3 else None\n elif isinstance(wEf2, float):\n qfpW = 'yellow' if ... | [
"0.66351354",
"0.6112501",
"0.5862808",
"0.57622945",
"0.5573466",
"0.555157",
"0.55086154",
"0.5491441",
"0.5408074",
"0.540512",
"0.54039955",
"0.5401893",
"0.5359994",
"0.53577113",
"0.53269756",
"0.5310603",
"0.52906305",
"0.5248661",
"0.52341217",
"0.52171606",
"0.521704... | 0.5771841 | 3 |
WordNet distance of a word from its root hypernym. | def mr5M(GIN8, wSqE=X1AK.path_similarity):
odDj = X1AK.synsets(GIN8)
eFr6 = [1 - wSqE(KCHu, KCHu.root_hypernyms()[0]) for KCHu in odDj]
return (oyIN.median(eFr6), max(eFr6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PRFS(YKHO):\n WtOP = YKHO.N + YKHO.M\n return YKHO.distance() / (1.0 * WtOP)",
"def zG70(YKHO, he6J):\n sum = 0\n if len(YKHO.weights) == len(he6J):\n for YRbF in range(len(he6J)):\n sum += (YKHO.weights[YRbF] - he6J[YRbF]) * (YKHO.weights[YRbF] - he6J[YRbF])\n return oyI... | [
"0.6421804",
"0.6406078",
"0.63416946",
"0.6300237",
"0.62801826",
"0.62660646",
"0.61479735",
"0.6123308",
"0.6095488",
"0.6039997",
"0.6034019",
"0.599532",
"0.59791833",
"0.5970505",
"0.59680897",
"0.5951202",
"0.5946592",
"0.5944113",
"0.5940263",
"0.5937892",
"0.5936845"... | 0.0 | -1 |
Check if two dataframes equal | def bGrB(WKvO: DataFrame, LVAh: DataFrame) -> bool:
NEUP(WKvO, LVAh)
WKvO = WKvO.sort_values(by=WKvO.columns.to_list()).reset_index(drop=True)
LVAh = LVAh.sort_values(by=LVAh.columns.to_list()).reset_index(drop=True)
return WKvO.equals(LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kRZn(LFlW: pd.DataFrame, _tIi: pd.DataFrame, **B2fa) -> bool:\n rLdf.testing.assert_frame_equal(LFlW, _tIi, **B2fa)\n return True",
"def P95a(_lYe, qaAi):\n return J3WZ(_lYe.sort(axis=1), qaAi.sort(axis=1), check_names=True)",
"def kRZn(_lYe, qaAi):\n return _lYe.fillna(1).sort(axis=1).eq(qaAi.... | [
"0.83126795",
"0.7788485",
"0.76262283",
"0.7366375",
"0.71489763",
"0.7102543",
"0.699658",
"0.6985538",
"0.6939839",
"0.6924726",
"0.6889881",
"0.68472826",
"0.6841531",
"0.68319726",
"0.6826573",
"0.67900854",
"0.6684694",
"0.66773725",
"0.6649713",
"0.664569",
"0.6642423"... | 0.7897618 | 1 |
Return a valid local data path, dockeraware | def i0XC(pmON: Path | str, N6Kn: bool=False) -> GkAb:
if Hy7s.environ.get('RUNNING_IN_DOCKER', False):
j6_k = GkAb('/data') / pmON
else:
j6_k = GkAb('./data') / pmON
xtX7 = j6_k
if not N6Kn:
xtX7 = j6_k.parent
if not xtX7.exists():
Hy7s.makedirs(xtX7, exist_ok=True)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSAn():\n assert HwRy.argv\n JlYP = Hy7s.path.dirname(HwRy.argv[0])\n ftyx = Hy7s.path.join(JlYP, 'data')\n return ftyx",
"def s8df():\n return Hy7s.getcwd() + '/data/'",
"def c6k1(hvL1):\n return nPrm.ResourcePath(hvL1)",
"def s8df():\n pmON = Hy7s.path.join(Hy7s.path.dirname(xAKo),... | [
"0.7865911",
"0.7613403",
"0.75670177",
"0.73154575",
"0.7230811",
"0.69913393",
"0.6987328",
"0.6847899",
"0.68185514",
"0.6817221",
"0.6794067",
"0.6788448",
"0.6784157",
"0.6780721",
"0.67534333",
"0.6749666",
"0.6746128",
"0.6728376",
"0.6720261",
"0.66953397",
"0.6689340... | 0.0 | -1 |
Convert BSON timestamp into integer. Conversion rule is based from the specs | def yx1G(E3oo):
_szS = (E3oo.time << 32) + E3oo.inc
return _szS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2x9(YKHO, E3oo):\n return int(E3oo * 1000000.0)",
"def Y0D3(i8WE):\n I_Zf = int(i8WE)\n return umfa(I_Zf, 1)",
"def Y0D3(i8WE):\n I_Zf = int(i8WE)\n return umfa(I_Zf, 1)",
"def xYQD(khtY, nPrm, type, **B2fa):\n return nPrm.value",
"def tHmw(YEnM: 'date') -> int:\n return (YEnM - _... | [
"0.72860867",
"0.7036924",
"0.7036924",
"0.69689286",
"0.64686406",
"0.6460436",
"0.63578105",
"0.63222986",
"0.62904793",
"0.62590975",
"0.62392986",
"0.619101",
"0.61675394",
"0.61518735",
"0.6151356",
"0.6150323",
"0.6141545",
"0.6138142",
"0.61216384",
"0.6106528",
"0.608... | 0.7458911 | 0 |
Set up the environment variables for testing, instantiate the backend app and its database ORM object | def FCbF(YKHO):
SGZM()
from espresso import app
from espresso import db
from espresso import RESTAURANTS_API_BASE
from espresso import DEF_MAX_STR_LEN
YKHO.app = app
YKHO.test_client = app.test_client()
YKHO.API_BASE = RESTAURANTS_API_BASE
YKHO.DEFAULT_MAX_STRING = DEF_MAX_STR_LEN
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.app = nNXP.app\n YKHO.client = YKHO.app.test_client\n aiy_(YKHO.app)\n with YKHO.app.app_context():\n YKHO.db = PZx4()\n YKHO.db.init_app(YKHO.app)",
"def FCbF(YKHO):\n from . import main\n from .models import get_engine, get_session_factory, get_tm_session\... | [
"0.76468724",
"0.7508208",
"0.7496233",
"0.73988837",
"0.7381665",
"0.7370786",
"0.73674583",
"0.73553485",
"0.73532945",
"0.7338416",
"0.7337129",
"0.7320333",
"0.73201746",
"0.7311049",
"0.73107636",
"0.7310685",
"0.7310578",
"0.7308091",
"0.73069507",
"0.7306886",
"0.73065... | 0.74335957 | 3 |
Test get request that lacks authorization header | def i8vF(YKHO):
_hkX = YKHO.test_client.get(YKHO.API_BASE, headers={})
YKHO.assertEqual(_hkX.status_code, 401)
V6me = qQXR.loads(_hkX.data)
YKHO.assertEqual(V6me['success'], False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vtxZ(YKHO):\n YKHO.client = dyGo.Trovebox(host=YKHO.test_host)\n YKHO._register_uri(_sCb.GET)\n geh0 = YKHO.client.get(YKHO.test_endpoint)\n YKHO.assertNotIn('authorization', YKHO._last_request().headers)\n YKHO.assertEqual(geh0, YKHO.test_data)",
"def UDfU(YKHO):\n geh0 = YKHO.client.get(X... | [
"0.8213996",
"0.80769855",
"0.7923827",
"0.7804627",
"0.77769506",
"0.77681875",
"0.7765896",
"0.7752595",
"0.77464706",
"0.7721463",
"0.7664848",
"0.7662464",
"0.7662464",
"0.766242",
"0.766242",
"0.76435935",
"0.75937563",
"0.7585545",
"0.7585545",
"0.7525249",
"0.75122124"... | 0.71540534 | 44 |
Test post request that lacks authorization header | def FCGx(YKHO):
MOPg = {'Content-Type': 'application/json'}
U34r = {'name': 'Restaurant Pho 2000', 'creator': 'test-user@gmail.com'}
_hkX = YKHO.test_client.post(YKHO.API_BASE + '/create', headers=MOPg, data=qQXR.dumps(U34r))
YKHO.assertEqual(_hkX.status_code, 401) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GglH(YKHO):\n geh0 = YKHO.post_answer()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)",
"def dTPG(YKHO):\n x0hE = i9zE()\n nPrm = {'rating': '1', 'title': 'Hated It!', 'summary': 'A little text to say that I hated it!', 'company': '1'}\n geh0 = x0hE.post('/reviews/', nPrm)\n... | [
"0.76773566",
"0.7538714",
"0.74834776",
"0.741247",
"0.73485553",
"0.7325198",
"0.7308628",
"0.7217255",
"0.72150046",
"0.71854395",
"0.71850073",
"0.7152122",
"0.71369773",
"0.70851964",
"0.70820343",
"0.70707595",
"0.70449907",
"0.7029621",
"0.70264417",
"0.7014388",
"0.70... | 0.6531432 | 76 |
Test update of a restaurant with the name field an empty string | def V5_Y(YKHO):
from espresso import db
from espresso import Restaurant
mWFP = 'Restaurant Mexicano'
db.session.add(Restaurant(name=mWFP, creator='test-user@gmail.com'))
db.session.commit()
MOPg = {'Content-Type': 'application/json'}
MOPg.update(IOEl)
U34r = {'name': ''}
_hkX = YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTKv(YKHO):\n from espresso import db\n from espresso import Restaurant\n mWFP = 'Restaurant Mexicano'\n jLqg = '94110'\n db.session.add(Restaurant(name=mWFP, creator='test-user@gmail.com', zip_code=jLqg))\n db.session.commit()\n MOPg = {'Content-Type': 'application/json'}\n MOPg.update... | [
"0.68666565",
"0.6820601",
"0.6778692",
"0.6480058",
"0.64745563",
"0.6445996",
"0.6424706",
"0.6357221",
"0.6345362",
"0.63002115",
"0.62237555",
"0.6217124",
"0.6186716",
"0.6180021",
"0.61762893",
"0.6165687",
"0.61569536",
"0.61569536",
"0.61569536",
"0.6150661",
"0.61437... | 0.84847665 | 0 |
Test put request that lacks authorization header | def FF2o(YKHO):
from espresso import db
from espresso import Restaurant
mWFP = 'Restaurant Pho 2000'
db.session.add(Restaurant(name=mWFP, creator='test-user@gmail.com'))
db.session.commit()
MOPg = {'Content-Type': 'application/json'}
U34r = {'name': 'Php 2048'}
_hkX = YKHO.test_client.pu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jz0j(YKHO):\n bD7m = gxEw('file')\n nPrm = {}\n geh0 = YKHO.client.put(bD7m, nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)",
"def xlwL(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.put(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code... | [
"0.8219277",
"0.81385034",
"0.76043105",
"0.75561446",
"0.7546201",
"0.74603117",
"0.73930216",
"0.7288313",
"0.7287579",
"0.7271832",
"0.7248393",
"0.72455657",
"0.7161328",
"0.7131661",
"0.70852363",
"0.7061233",
"0.7051016",
"0.69993466",
"0.6959493",
"0.6958941",
"0.69411... | 0.7059662 | 16 |