query
stringlengths
10
2k
document
stringlengths
20
51.2k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
__ne__(self, Bitmap other) > bool
def __ne__(*args, **kwargs): return _gdi_.Bitmap___ne__(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return np.all(self.grid != other.grid) or np.all(self.pos != other.pos)", "def __ne__(self, other):\n return self.x != other.x or self.y != other.y", "def __ne__(self, other):\r\n return self._real != other.real or self._imag != other.imag", "def __ne__(self,ot...
[ "0.7662945", "0.76599", "0.76184773", "0.7587923", "0.7576424", "0.745622", "0.7455657", "0.7455657", "0.7455657", "0.74555784", "0.74555784", "0.744107", "0.7432471", "0.7432471", "0.7430871", "0.74269414", "0.7421976", "0.74164134", "0.74164134", "0.74164134", "0.7408413", ...
0.74054724
21
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 BitmapFromImage(*args, **kwargs): val = _gdi_.new_BitmapFromImage(*args, **kwargs) return val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CreateBitmapFromImage(*args, **kwargs):\n return _gdi_.GraphicsContext_CreateBitmapFromImage(*args, **kwargs)", "def CreateBitmapFromImage(*args, **kwargs):\n return _gdi_.GraphicsRenderer_CreateBitmapFromImage(*args, **kwargs)", "def from_image(img):\n canvas = Canvas(100, 100)\n canva...
[ "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 __iter__(self): width = self.GetWidth() height = self.GetHeight() pixels = self.GetPixels() class PixelFacade(object): def Get(self): return pixels.Get() def Set(self, *args, **kw): return pixels.Set(*args, **kw) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __iter__(self):\n return iter((self.r, self.g, self.b))", "def __iter__(self) -> Iterator[Position]:\n for row in range(self.width):\n for col in range(self.height):\n yield (row, col)", "def __iter__(self):\n return self.new_generator()", "def __iter__(self...
[ "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 __iter__(self): width = self.GetWidth() height = self.GetHeight() pixels = self.GetPixels() class PixelFacade(object): def Get(self): return pixels.Get() def Set(self, *args, **kw): return pixels.Set(*args, **kw) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __iter__(self):\n return iter((self.r, self.g, self.b))", "def __iter__(self) -> Iterator[Position]:\n for row in range(self.width):\n for col in range(self.height):\n yield (row, col)", "def __iter__(self):\n return self.new_generator()", "def __iter__(self...
[ "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 GetIcon(*args, **kwargs): return _gdi_.IconBundle_GetIcon(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetIconOfExactSize(*args, **kwargs):\n return _gdi_.IconBundle_GetIconOfExactSize(*args, **kwargs)", "def Icon(self, size, name):\n # ------------------------------------------------------------------------\n bitmap = self.Bitmap(size, name)\n if not bitmap:\n return None...
[ "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 CursorFromImage(*args, **kwargs): val = _gdi_.new_CursorFromImage(*args, **kwargs) return val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from_image(cls, image):\n if not isinstance(image, QtImage):\n msg = 'Image must be an instance of QtImage. Got %s instead.'\n raise TypeError(msg % type(image))\n new_icon = cls()\n new_icon.add_image(image, 'normal', 'on')\n return new_icon", "def from_imag...
[ "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 ContainsRect(*args, **kwargs): return _gdi_.Region_ContainsRect(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_intersects(self, rect):\n\tb = (self.left() > rect.right() or \n\t\tself.right() < rect.left() or \n\t\tself.top() < rect.bottom() or \n\t\tself.bottom() > rect.top())\n\treturn not b", "def intersects(self, rect):\n\t\treturn ( rect.right >= self.left and rect.left < self.right\n\t\t\tand rect.bottom ...
[ "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 IntersectRect(*args, **kwargs): return _gdi_.Region_IntersectRect(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def intersects(self, rect):\n\t\treturn ( rect.right >= self.left and rect.left < self.right\n\t\t\tand rect.bottom >= self.top and rect.top < self.bottom )", "def _rect_intersects(self, rect):\n\tb = (self.left() > rect.right() or \n\t\tself.right() < rect.left() or \n\t\tself.top() < rect.bottom() or \n\t\tsel...
[ "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 IntersectRegion(*args, **kwargs): return _gdi_.Region_IntersectRegion(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def contains(self, region):\n region = as_region(region)\n\n if region.chromosome != self.chromosome:\n return False\n\n if region.start >= self.start and region.end <= self.end:\n return True\n return False", "def is_overlapping(self, region):\n if self.x...
[ "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 IsEqual(*args, **kwargs): return _gdi_.Region_IsEqual(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _equals(self, region):\n\n region = as_region(region)\n\n if region.chromosome != self.chromosome:\n return False\n if region.start != self.start:\n return False\n if region.end != self.end:\n return False\n if region.strand != self.strand:\n ...
[ "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 Union(*args, **kwargs): return _gdi_.Region_Union(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _isPoint(self):\n return (self.width == 0 and self.height == 1) or (self.height == 0 and self.width == 1)", "def _isPoint(self):\n return (self.width == 0 and self.height == 1) or (self.height == 0 and self.width == 1)", "def is_union(self) -> bool:\n return False", "def issquare(sel...
[ "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 UnionRect(*args, **kwargs): return _gdi_.Region_UnionRect(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rect_intersects(self, rect):\n\tb = (self.left() > rect.right() or \n\t\tself.right() < rect.left() or \n\t\tself.top() < rect.bottom() or \n\t\tself.bottom() > rect.top())\n\treturn not b", "def intersects(self, rect):\n\t\treturn ( rect.right >= self.left and rect.left < self.right\n\t\t\tand rect.bottom ...
[ "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 TestFontEncoding(*args, **kwargs): return _gdi_.TestFontEncoding(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_the_same_encodings_of_glyphs_across_family(self):\n encoding = None\n for font_metadata in self.familymetadata.fonts:\n ttfont = Font.get_ttfont_from_metadata(self.operator.path, font_metadata)\n cmap = ttfont.retrieve_cmap_format_4()\n\n if not encoding:\n ...
[ "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 IsOk(*args, **kwargs): return _gdi_.Font_IsOk(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsOk(self):\r\n \r\n return True", "def isOk(self):\n return self._isOk", "def HasFont(self):\r\n\r\n return self._font != wx.NullFont", "def IsOk(self):\r\n \r\n return self.window != None", "def ok(cls):\n return cls.autograder_format == \"ok\"", "de...
[ "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 __eq__(*args, **kwargs): return _gdi_.Font___eq__(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n if not isinstance(other, DocxStyle):\n return False\n\n return self.__dict__ == other.__dict__", "def __eq__(self, other):\n if not isinstance(other, Border):\n return False\n\n return self.__dict__ == other.__dict__", "def __eq__(sel...
[ "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 __ne__(*args, **kwargs): return _gdi_.Font___ne__(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self: _TT, other: object) -> bool:\n return self.ne(other) # type: ignore", "def __ne__(self, other):\n return not isinstance(other, self.__class__)", "def __ne__(self, *args):\n return _ida_hexrays.ctext_position_t___ne__(self, *args)", "def __ne__(self, other: 'LTL'):\n ...
[ "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 GetPointSize(*args, **kwargs): return _gdi_.Font_GetPointSize(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pointsize(self):\n\treturn self.m_pointsize", "def size(self) -> Point:\n\t\treturn self._size", "def getPointSize(self):\n l = [point.size for point in self.points]\n if l.count(l[0]) == len(l):\n return l[0]\n else:\n raise ValueError(\"The sizes of the points m...
[ "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 GetFaceName(*args, **kwargs): return _gdi_.Font_GetFaceName(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getFontFace(self):\n return self.fontFace", "def SetFaceName(*args, **kwargs):\n return _gdi_.Font_SetFaceName(*args, **kwargs)", "def SetFaceName(*args, **kwargs):\n return _gdi_.NativeFontInfo_SetFaceName(*args, **kwargs)", "def GetFamilyString(*args, **kwargs):\n return _gd...
[ "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 IsFixedWidth(*args, **kwargs): return _gdi_.Font_IsFixedWidth(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fixed_width(self) -> bool:\n return self._fixed_width", "def fixed_width(self, fixed_width: bool):\n\n self._fixed_width = fixed_width", "def IsFixed(self):\r\n \r\n return not self.HasFlag(self.optionResizable)", "def HasFont(self):\r\n\r\n return self._font != wx.Null...
[ "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 GetNativeFontInfoDesc(*args, **kwargs): return _gdi_.Font_GetNativeFontInfoDesc(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetNativeFontInfoUserDesc(*args, **kwargs):\n return _gdi_.Font_GetNativeFontInfoUserDesc(*args, **kwargs)", "def GetNativeFontInfo(*args, **kwargs):\n return _gdi_.Font_GetNativeFontInfo(*args, **kwargs)", "def _get_font_descriptor(self) -> dict:\n self._base_font = self.font['name']....
[ "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 SetPointSize(*args, **kwargs): return _gdi_.Font_SetPointSize(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_point_size(self, pointSize):\n self.pointSize = pointSize", "def set_pointsize(self, pointsize):\n\tself.m_pointsize = pointsize", "def setPointSize(self, size):\n for point in self.points:\n point.size = size", "def set_point_size(self, point_size=0.0):\r\n for b in self....
[ "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 EnumerateFacenames(*args, **kwargs): return _gdi_.FontEnumerator_EnumerateFacenames(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsValidFacename(*args, **kwargs):\n return _gdi_.FontEnumerator_IsValidFacename(*args, **kwargs)", "def FontEnumerator_IsValidFacename(*args, **kwargs):\n return _gdi_.FontEnumerator_IsValidFacename(*args, **kwargs)", "def fl_enumerate_fonts(pyfn_output, shortform):\n cfunc_none_string = cty.CFU...
[ "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 GetPluralString(*args, **kwargs): return _gdi_.PyLocale_GetPluralString(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plural(n):\n\n if n == 1:\n return ''\n else:\n return 's'", "def plural(n):\n if n != 1:\n return \"s\"\n else:\n return \"\"", "def pluralize(cls, singular):\n plural = singular\n if not singular or singular.strip() == ''\\\n 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 DrawArcPoint(*args, **kwargs): return _gdi_.DC_DrawArcPoint(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawArcPoint(*args, **kwargs):\n return _gdi_.PseudoDC_DrawArcPoint(*args, **kwargs)", "def draw_arc(ax, center, height, width, theta1=0, theta2=numpy.pi, color='k', direction='down',\n num_points=DEFAULT_ARC_POINTS):\n LEFT_END_THETA = numpy.pi / 2\n RIGHT_END_THETA = numpy.pi * 1.5...
[ "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 DrawEllipticArc(*args, **kwargs): return _gdi_.DC_DrawEllipticArc(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawEllipticArc(*args, **kwargs):\n return _gdi_.PseudoDC_DrawEllipticArc(*args, **kwargs)", "def drawEllipticArc(x,y,a,b,alpha,beta,theta,ucoords=1):\n if ucoords:\n dislin.rlarc(x,y,a,b,alpha,beta,theta)\n else:\n dislin.arcell(x,y,a,b,alpha,beta,theta)", "def arc(self, x, y, r...
[ "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 DrawEllipticArcPointSize(*args, **kwargs): return _gdi_.DC_DrawEllipticArcPointSize(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawEllipticArcPointSize(*args, **kwargs):\n return _gdi_.PseudoDC_DrawEllipticArcPointSize(*args, **kwargs)", "def DrawEllipticArc(*args, **kwargs):\n return _gdi_.PseudoDC_DrawEllipticArc(*args, **kwargs)", "def DrawEllipticArc(*args, **kwargs):\n return _gdi_.DC_DrawEllipticArc(*arg...
[ "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 DrawEllipsePointSize(*args, **kwargs): return _gdi_.DC_DrawEllipsePointSize(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawEllipsePointSize(*args, **kwargs):\n return _gdi_.PseudoDC_DrawEllipsePointSize(*args, **kwargs)", "def draw_ellipse(self, color, position, size, border_width = 0, anchor= 'topleft'):\n # We'll try to make sure that everything is okay later\n \n color = spyral.color._determine...
[ "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 SetClippingRegionAsRegion(*args, **kwargs): return _gdi_.DC_SetClippingRegionAsRegion(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetClippingRegion(*args, **kwargs):\n return _gdi_.DC_SetClippingRegion(*args, **kwargs)", "def SetDeviceClippingRegion(*args, **kwargs):\n return _gdi_.DC_SetDeviceClippingRegion(*args, **kwargs)", "def ClipRegion(*args, **kwargs):\n return _gdi_.GraphicsContext_ClipRegion(*args, **kw...
[ "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 DrawLines(*args, **kwargs): return _gdi_.DC_DrawLines(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawLineList(self, lines, pens=None):\n if pens is None:\n pens = []\n elif isinstance(pens, wx.Pen):\n pens = [pens]\n elif len(pens) != len(lines):\n raise ValueError('lines and pens must have same length')\n return self._DrawLineList(lines, pens, [])...
[ "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 SetBrush(*args, **kwargs): return _gdi_.DC_SetBrush(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetBrush(*args, **kwargs):\n return _gdi_.PseudoDC_SetBrush(*args, **kwargs)", "def SetBrush(*args):\n return _gdi_.GraphicsContext_SetBrush(*args)", "def setTextBackgroundBrush(self, brush=None):\n self._text_bg_brush = brush", "def setBackground(self, brush):\n self.format.s...
[ "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 GetCharHeight(*args, **kwargs): return _gdi_.DC_GetCharHeight(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calc_text_size(self, text, font):\n w = 0\n for c in text:\n o = ord(c)\n if o > 0xff: # Translate Cyrillic Unicode to ASCII\n o -= 848\n if o > 255:\n o = 32\n w += font.char_size(o)[1]\n return(w, font.height())", ...
[ "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 GetTextExtent(*args, **kwargs): return _gdi_.DC_GetTextExtent(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetTextExtent(*args, **kwargs):\n return _gdi_.GraphicsContext_GetTextExtent(*args, **kwargs)", "def GetMultiLineTextExtent(*args, **kwargs):\n return _gdi_.DC_GetMultiLineTextExtent(*args, **kwargs)", "def get_text_size(self):\n return self.__text_surface.get_width(), self.__text_surf...
[ "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 GetSizeMM(*args, **kwargs): return _gdi_.DC_GetSizeMM(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetSizeMMTuple(*args, **kwargs):\n return _gdi_.DC_GetSizeMMTuple(*args, **kwargs)", "def GetSize(*args, **kwargs):\n return _gdi_.DC_GetSize(*args, **kwargs)", "def MSC_size(self):\n return len(self.get_MSC())", "def get_size_on_disk(self):\n\t\treturn call_sdk_function('PrlVmDevHd_...
[ "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 DeviceToLogicalX(*args, **kwargs): return _gdi_.DC_DeviceToLogicalX(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LogicalToDeviceX(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceX(*args, **kwargs)", "def DeviceToLogicalXRel(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalXRel(*args, **kwargs)", "def LogicalToDeviceXRel(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceXRel(*args, **kwargs)...
[ "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 DeviceToLogicalY(*args, **kwargs): return _gdi_.DC_DeviceToLogicalY(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeviceToLogicalYRel(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalYRel(*args, **kwargs)", "def LogicalToDeviceY(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceY(*args, **kwargs)", "def LogicalToDeviceYRel(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceYRel(*args, **kwargs)...
[ "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 DeviceToLogicalXRel(*args, **kwargs): return _gdi_.DC_DeviceToLogicalXRel(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LogicalToDeviceXRel(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceXRel(*args, **kwargs)", "def DeviceToLogicalX(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalX(*args, **kwargs)", "def LogicalToDeviceX(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceX(*args, **kwargs)", "...
[ "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 DeviceToLogicalYRel(*args, **kwargs): return _gdi_.DC_DeviceToLogicalYRel(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LogicalToDeviceYRel(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceYRel(*args, **kwargs)", "def DeviceToLogicalY(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalY(*args, **kwargs)", "def LogicalToDeviceY(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceY(*args, **kwargs)", "...
[ "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 LogicalToDeviceX(*args, **kwargs): return _gdi_.DC_LogicalToDeviceX(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeviceToLogicalX(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalX(*args, **kwargs)", "def LogicalToDeviceXRel(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceXRel(*args, **kwargs)", "def DeviceToLogicalXRel(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalXRel(*args, **kwargs)...
[ "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 LogicalToDeviceY(*args, **kwargs): return _gdi_.DC_LogicalToDeviceY(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeviceToLogicalY(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalY(*args, **kwargs)", "def LogicalToDeviceYRel(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceYRel(*args, **kwargs)", "def DeviceToLogicalYRel(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalYRel(*args, **kwargs)...
[ "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 LogicalToDeviceXRel(*args, **kwargs): return _gdi_.DC_LogicalToDeviceXRel(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeviceToLogicalXRel(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalXRel(*args, **kwargs)", "def LogicalToDeviceX(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceX(*args, **kwargs)", "def DeviceToLogicalX(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalX(*args, **kwargs)", "...
[ "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 LogicalToDeviceYRel(*args, **kwargs): return _gdi_.DC_LogicalToDeviceYRel(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeviceToLogicalYRel(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalYRel(*args, **kwargs)", "def LogicalToDeviceY(*args, **kwargs):\n return _gdi_.DC_LogicalToDeviceY(*args, **kwargs)", "def DeviceToLogicalY(*args, **kwargs):\n return _gdi_.DC_DeviceToLogicalY(*args, **kwargs)", "...
[ "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 GetDepth(*args, **kwargs): return _gdi_.DC_GetDepth(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def color_depth(self):\n return self._color_depth", "def getDepth(self):\n return _libsbml.Dimensions_getDepth(self)", "def depth(self):\n return _libsbml.Dimensions_depth(self)", "def depth(self):\n \n return self._depth", "def depth(self) -> int:\n return self.__...
[ "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 GetBackgroundMode(*args, **kwargs): return _gdi_.DC_GetBackgroundMode(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetBackgroundMode(*args, **kwargs):\n return _gdi_.DC_SetBackgroundMode(*args, **kwargs)", "def SetBackgroundMode(*args, **kwargs):\n return _gdi_.PseudoDC_SetBackgroundMode(*args, **kwargs)", "def bg(self):\n return self._bg", "def GetBackgroundColour(self):\r\n\r\n return se...
[ "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 GetBackground(*args, **kwargs): return _gdi_.DC_GetBackground(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def textBackgroundBrush(self):\n return self._text_bg_brush", "def GetBackgroundImage(self):\r\n\r\n return self._backgroundImage", "def GetBrush(*args, **kwargs):\n return _gdi_.DC_GetBrush(*args, **kwargs)", "def background_color(self):\n return Color(self.GetBackground())", "...
[ "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 GetBrush(*args, **kwargs): return _gdi_.DC_GetBrush(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetBrush(*args, **kwargs):\n return _gdi_.StockGDI_GetBrush(*args, **kwargs)", "def _get_brush(self, color):\n result = self._brushes.get(color)\n if result is None:\n qcolor = self._get_color(color)\n result = QtGui.QBrush(qcolor)\n self._brushes[color] ...
[ "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 GetLogicalFunction(*args, **kwargs): return _gdi_.DC_GetLogicalFunction(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetLogicalFunction(*args, **kwargs):\n return _gdi_.DC_SetLogicalFunction(*args, **kwargs)", "def functional(self):\n return self.__functional", "def SetLogicalFunction(*args, **kwargs):\n return _gdi_.PseudoDC_SetLogicalFunction(*args, **kwargs)", "def _func(self):\n return s...
[ "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 MinX(*args, **kwargs): return _gdi_.DC_MinX(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getMinX(self):\n return self.minx", "def minX(self):\n self._updateExtents()\n return self._mMinX", "def minX(self):\n return min(self.getx())", "def x_min(self):\n return self.get_min_value(self.X_INDEX)", "def min_x_arg(self):\n return self.T.min_y_arg", "d...
[ "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 MinY(*args, **kwargs): return _gdi_.DC_MinY(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getMinY(self):\n return self.miny", "def min_y_arg(self):\n return min((self(0).y,0), (self(1).y,1))[1]", "def y_min(self):\n return self.get_min_value(self.Y_INDEX)", "def minY(self):\n self._updateExtents()\n return self._mMinY", "def minY(self):\n return min...
[ "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 MaxY(*args, **kwargs): return _gdi_.DC_MaxY(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getMaxY(self):\n return self.maxy", "def maxY(self):\n self._updateExtents()\n return self._mMaxY", "def maxY(self):\n return max(self.gety())", "def y_max(self):\n return self.get_max_value(self.Y_INDEX)", "def max_y_arg(self):\n return max((self(0).y,0), (sel...
[ "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 GetLayoutDirection(*args, **kwargs): return _gdi_.DC_GetLayoutDirection(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetLayoutDirection(*args, **kwargs):\n return _gdi_.DC_SetLayoutDirection(*args, **kwargs)", "def direction(self) -> int:\n return self._direction", "def direction(self):\n _direction = self._custom.get(\"direction\")\n if _direction is not None:\n return _direction\n...
[ "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 SetLayoutDirection(*args, **kwargs): return _gdi_.DC_SetLayoutDirection(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_direction(self, dir):\n if dir == 0:\n self.direction = [0, -1]\n elif dir == 1:\n self.direction = [1, 0]\n elif dir == 2:\n self.direction = [0, 1]\n elif dir == 3:\n self.direction = [-1, 0]", "def direction(self, direction):\n ...
[ "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 __init__(self, *args, **kwargs): _gdi_.PostScriptDC_swiginit(self,_gdi_.new_PostScriptDC(*args, **kwargs))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args, **kwargs):\n _gdi_.PrinterDC_swiginit(self,_gdi_.new_PrinterDC(*args, **kwargs))", "def __init__(self, *args, **kwargs):\n _gdi_.PaintDC_swiginit(self,_gdi_.new_PaintDC(*args, **kwargs))", "def __init__(self, *args, **kwargs):\n _gdi_.PseudoDC_swiginit(self,_gdi_....
[ "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 GetRenderer(*args, **kwargs): return _gdi_.GraphicsObject_GetRenderer(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_renderer(self) :\n \n return self._renderer", "def get_renderer ( self, object ):\n return self.renderer", "def GetCurrentRenderer(self):\n renderer = str(pm.mel.currentRenderer())\n if renderer == \"_3delight\":\n renderer = \"3delight\"\n\n return...
[ "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 __init__(self, *args, **kwargs): _gdi_.GraphicsBrush_swiginit(self,_gdi_.new_GraphicsBrush(*args, **kwargs))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args, **kwargs):\n _gdi_.Brush_swiginit(self,_gdi_.new_Brush(*args, **kwargs))", "def CreateBrush(*args, **kwargs):\n return _gdi_.GraphicsRenderer_CreateBrush(*args, **kwargs)", "def __init__(self, *args, **kwargs):\n _gdi_.DCBrushChanger_swiginit(self,_gdi_.new_DCBrus...
[ "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 IsEqual(*args, **kwargs): return _gdi_.GraphicsMatrix_IsEqual(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_equal(self, g, a, b):\n return self.matrix[a][b] == g[a][b]", "def all_equal(self, mtrx):\n if not isinstance(mtrx, Matrix):\n return False\n if not (self.m == mtrx.m and self.n == mtrx.n):\n return False\n if not type(self) == type(mtrx):\n ret...
[ "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 Rotate(*args, **kwargs): return _gdi_.GraphicsMatrix_Rotate(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rotate(self, angle):\n\t\tif not isinstance(angle, Angle):\n\t\t\tangle = Angle(angle)\n\t\treturn angle.matrix() * self", "def rotate(self, angle=0.0):\n # TODO: Implement the rotate function. Remember to record the value of\n # rotation degree.\n self.rotDegree = angle\n self.x ...
[ "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 TransformDistance(*args, **kwargs): return _gdi_.GraphicsMatrix_TransformDistance(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def translate(dx,dy,Mat):\r\n # MT is the Translation (3 X 3) Matrix\r\n MT=[[1,0,dx],[0,1,dy],[0,0,1]]\r\n Translated= Multiply(MT,Mat)\r\n # Translated[0][0] is the updated x coordinate\r\n # Translated[1][0] is the updated y coordinate\r\n return Translated[0][0],Translated[1][0],Translated[2]...
[ "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 AddEllipse(*args, **kwargs): return _gdi_.GraphicsPath_AddEllipse(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_ellipse(self, x, y, w, h, fill_style=None, outline_style=None):\n if w < 1 or h < 1:\n return\n fill_style = self.__prepare_style(fill_style, self.style.char)\n outline_style = self.__prepare_style(outline_style, 'o')\n # Bresenham's algorithm to plot ellipse is used\...
[ "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 Contains(*args): return _gdi_.GraphicsPath_Contains(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_point_within(self, x, y):\n return abs(x - self._x_position) <= self._x_length / 2 and abs(y - self._y_position) <= self._y_length / 2", "def contains_point(self, x, y = None):\n x, y = y is not None and Point(x, y) or Point(x[0], x[1])\n\n cond1 = self.min_x() <= x <= self.max_x()\n ...
[ "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 __init__(self, *args, **kwargs): _gdi_.GraphicsGradientStops_swiginit(self,_gdi_.new_GraphicsGradientStops(*args, **kwargs))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args, **kwargs):\n _gdi_.GraphicsGradientStop_swiginit(self,_gdi_.new_GraphicsGradientStop(*args, **kwargs))", "def Item(*args, **kwargs):\n return _gdi_.GraphicsGradientStops_Item(*args, **kwargs)", "def Add(*args):\n return _gdi_.GraphicsGradientStops_Add(*args)", "...
[ "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 Item(*args, **kwargs): return _gdi_.GraphicsGradientStops_Item(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __getitem__(*args, **kwargs):\n return _gdi_.GraphicsGradientStops___getitem__(*args, **kwargs)", "def Add(*args):\n return _gdi_.GraphicsGradientStops_Add(*args)", "def __init__(self, *args, **kwargs):\n _gdi_.GraphicsGradientStop_swiginit(self,_gdi_.new_GraphicsGradientStop(*args, **...
[ "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 CreateBrush(*args, **kwargs): return _gdi_.GraphicsContext_CreateBrush(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CreateBrush(*args, **kwargs):\n return _gdi_.GraphicsRenderer_CreateBrush(*args, **kwargs)", "def BrushFromBitmap(*args, **kwargs):\n val = _gdi_.new_BrushFromBitmap(*args, **kwargs)\n return val", "def SetBrush(*args, **kwargs):\n return _gdi_.PseudoDC_SetBrush(*args, **kwargs)", "de...
[ "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 CreateBitmap(*args, **kwargs): return _gdi_.GraphicsContext_CreateBitmap(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CreateBitmap(*args, **kwargs):\n return _gdi_.GraphicsRenderer_CreateBitmap(*args, **kwargs)", "def CreateBitmapFromImage(*args, **kwargs):\n return _gdi_.GraphicsRenderer_CreateBitmapFromImage(*args, **kwargs)", "def CreateBitmapFromImage(*args, **kwargs):\n return _gdi_.GraphicsConte...
[ "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 ClipRegion(*args, **kwargs): return _gdi_.GraphicsContext_ClipRegion(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetClippingRegionAsRegion(*args, **kwargs):\n return _gdi_.DC_SetClippingRegionAsRegion(*args, **kwargs)", "def SetClippingRegion(*args, **kwargs):\n return _gdi_.DC_SetClippingRegion(*args, **kwargs)", "def Clip(*args, **kwargs):\n return _gdi_.GraphicsContext_Clip(*args, **kwargs)", ...
[ "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 ResetClip(*args, **kwargs): return _gdi_.GraphicsContext_ResetClip(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resetClipping(self):\n if self.ui.checkBox.isChecked():\n self.changeClippingPlane()", "def reset_camera_clipping_range(self):\n self.ResetCameraClippingRange()", "def reset(self):\n self._x = 0\n self._y = 0", "def _reset_mask(self, reset_to=False):\n self.d...
[ "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 GetAntialiasMode(*args, **kwargs): return _gdi_.GraphicsContext_GetAntialiasMode(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetAntialiasMode(*args, **kwargs):\n return _gdi_.GraphicsContext_SetAntialiasMode(*args, **kwargs)", "def get_antialias(self):\n _lib.caca_get_dither_antialias.argtypes = [_Dither]\n _lib.caca_get_dither_antialias.restype = ctypes.c_char_p\n\n return _lib.caca_get_dither_antiali...
[ "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 GetDPI(*args, **kwargs): return _gdi_.GraphicsContext_GetDPI(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getResolution(self):\n return self._lowLevelGetDeviceResolution()", "def get_current_resolution(self):\n return self.display_info[\"width\"], self.display_info[\"height\"]", "def get_fig_size(fig):\n return fig.get_figwidth() * __dpi__, fig.get_figheight() * __dpi__", "def _get_scaling(r...
[ "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 Rotate(*args, **kwargs): return _gdi_.GraphicsContext_Rotate(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rotate(self, angle):\n\t\tif not isinstance(angle, Angle):\n\t\t\tangle = Angle(angle)\n\t\treturn angle.matrix() * self", "def rotate(self, angle=0.0):\n # TODO: Implement the rotate function. Remember to record the value of\n # rotation degree.\n self.rotDegree = angle\n self.x ...
[ "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 GetTransform(*args, **kwargs): return _gdi_.GraphicsContext_GetTransform(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetCoordinateSystemTransformMatrix(self):\n return _gmat_py.Spacecraft_GetCoordinateSystemTransformMatrix(self)", "def transformation_matrix(self) -> TransformationMatrixType:\n # camera translation\n if self._transformation_matrix is None:\n self._transformation_matrix = nump...
[ "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 DrawEllipse(*args, **kwargs): return _gdi_.GraphicsContext_DrawEllipse(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawEllipse(*args, **kwargs):\n return _gdi_.DC_DrawEllipse(*args, **kwargs)", "def DrawEllipse(*args, **kwargs):\n return _gdi_.PseudoDC_DrawEllipse(*args, **kwargs)", "def add_ellipse(self, x, y, w, h, fill_style=None, outline_style=None):\n if w < 1 or h < 1:\n return\n ...
[ "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 GetBrush(*args, **kwargs): return _gdi_.StockGDI_GetBrush(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def StockGDI_GetBrush(*args, **kwargs):\n return _gdi_.StockGDI_GetBrush(*args, **kwargs)", "def _get_brush(self, color):\n result = self._brushes.get(color)\n if result is None:\n qcolor = self._get_color(color)\n result = QtGui.QBrush(qcolor)\n self._brushes[colo...
[ "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 StockGDI_GetBrush(*args, **kwargs): return _gdi_.StockGDI_GetBrush(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetBrush(*args, **kwargs):\n return _gdi_.StockGDI_GetBrush(*args, **kwargs)", "def GetBrush(*args, **kwargs):\n return _gdi_.DC_GetBrush(*args, **kwargs)", "def _get_brush(self, color):\n result = self._brushes.get(color)\n if result is None:\n qcolor = self._get_col...
[ "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 Find(*args, **kwargs): return _gdi_.ColourDatabase_Find(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_byname(self, name):\n name = name.lower()\n try:\n return self.__byname[name]\n except KeyError:\n raise BadColor(name)", "def FindColor(self, *args):\n return _XCAFDoc.XCAFDoc_ColorTool_FindColor(self, *args)", "def FindName(*args, **kwargs):\n ...
[ "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 DrawComboBoxDropButton(*args, **kwargs): return _gdi_.RendererNative_DrawComboBoxDropButton(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawDropDownButton(self, dc, wnd, item, rect):\r\n \r\n dropbmp_x = dropbmp_y = 0\r\n\r\n button_rect = wx.Rect(rect.x, rect.y, rect.width-BUTTON_DROPDOWN_WIDTH, rect.height)\r\n dropdown_rect = wx.Rect(rect.x+rect.width-BUTTON_DROPDOWN_WIDTH-1, rect.y, BUTTON_DROPDOWN_WIDTH+1, rect...
[ "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 DrawDropArrow(*args, **kwargs): return _gdi_.RendererNative_DrawDropArrow(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawComboBoxDropButton(*args, **kwargs):\n return _gdi_.RendererNative_DrawComboBoxDropButton(*args, **kwargs)", "def DrawDropDownButton(self, dc, wnd, item, rect):\r\n \r\n dropbmp_x = dropbmp_y = 0\r\n\r\n button_rect = wx.Rect(rect.x, rect.y, rect.width-BUTTON_DROPDOWN_WIDTH, r...
[ "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 DrawCheckBox(*args, **kwargs): return _gdi_.RendererNative_DrawCheckBox(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkBox(parent,label='',pos=defPos,size=defSize,style=0,val=defVal,\r\n name='checkBox',id=defId,onCheck=None,tip=None):\r\n gCheckBox = wx.CheckBox(parent,id,label,pos,size,style,val,name)\r\n if onCheck: gCheckBox.Bind(wx.EVT_CHECKBOX,onCheck)\r\n if tip: gCheckBox.SetToolTip(tooltip(tip))\r...
[ "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 DrawPushButton(*args, **kwargs): return _gdi_.RendererNative_DrawPushButton(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_but(self, window):\n # draws the rectangular button\n p1 = graphics.Point(self.cen_point_x - self.width / 2, \n self.cen_point_y - self.height / 2)\n p2 = graphics.Point(self.cen_point_x + self.width / 2, \n self.cen_point_y + self...
[ "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 DrawComboBox(*args, **kwargs): return _gdi_.RendererNative_DrawComboBox(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawComboBoxDropButton(*args, **kwargs):\n return _gdi_.RendererNative_DrawComboBoxDropButton(*args, **kwargs)", "def test_rendering_combobox(qtbot):\n layer = Image(np.random.rand(8, 8))\n qtctrl = QtImageControls(layer)\n qtbot.addWidget(qtctrl)\n combo = qtctrl.renderComboBox\n opts ...
[ "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 GetVersion(*args, **kwargs): return _gdi_.RendererNative_GetVersion(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RendererVersion_IsCompatible(*args, **kwargs):\n return _gdi_.RendererVersion_IsCompatible(*args, **kwargs)", "def IsCompatible(*args, **kwargs):\n return _gdi_.RendererVersion_IsCompatible(*args, **kwargs)", "def GetVersion(self) -> \"char const *\":\n return _itkVTKPolyDataReaderPython.itk...
[ "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 RendererNative_Get(*args): return _gdi_.RendererNative_Get(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_renderer(self) :\n \n return self._renderer", "def RendererNative_GetDefault(*args):\n return _gdi_.RendererNative_GetDefault(*args)", "def Get(*args, **kwargs):\n return _gdi_.RendererNative_Get(*args, **kwargs)", "def get_renderer ( self, object ):\n return self.render...
[ "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 GetLen(*args, **kwargs): return _gdi_.PseudoDC_GetLen(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getLength(self):\r\n return len(self.list)", "def __len__(self):\n return self._list_size", "def __len__(self):\n return self.count", "def __len__(self):\n return self._count", "def __len__(self):\n return self._count", "def __len__(self):\n return self._coun...
[ "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 SetId(*args, **kwargs): return _gdi_.PseudoDC_SetId(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetId(self, id):\n self.id = int(id)", "def set_id(self, id_):\n\n self.id_ = id_", "def set_id(self, id):\n self.__id = id", "def id(self, id):\n \n self._id = id", "def id(self, id):\n \n self._id = id", "def id(self, id):\n \n self._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 SetIdBounds(*args, **kwargs): return _gdi_.PseudoDC_SetIdBounds(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_rect(self, rect):\n pass", "def insert(self, id, rect):\n if hasattr(self, 'leaves'):\n self.leaves[rect] = id\n else:\n for c in self.children:\n if c.rect.intersects(rect):\n c.insert(id, rect)", "def object_rect(self, objec...
[ "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 DrawArcPoint(*args, **kwargs): return _gdi_.PseudoDC_DrawArcPoint(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawArcPoint(*args, **kwargs):\n return _gdi_.DC_DrawArcPoint(*args, **kwargs)", "def draw_arc(ax, center, height, width, theta1=0, theta2=numpy.pi, color='k', direction='down',\n num_points=DEFAULT_ARC_POINTS):\n LEFT_END_THETA = numpy.pi / 2\n RIGHT_END_THETA = numpy.pi * 1.5\n ...
[ "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 DrawEllipticArc(*args, **kwargs): return _gdi_.PseudoDC_DrawEllipticArc(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawEllipticArc(*args, **kwargs):\n return _gdi_.DC_DrawEllipticArc(*args, **kwargs)", "def drawEllipticArc(x,y,a,b,alpha,beta,theta,ucoords=1):\n if ucoords:\n dislin.rlarc(x,y,a,b,alpha,beta,theta)\n else:\n dislin.arcell(x,y,a,b,alpha,beta,theta)", "def arc(self, x, y, radius,...
[ "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 DrawEllipticArcPointSize(*args, **kwargs): return _gdi_.PseudoDC_DrawEllipticArcPointSize(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawEllipticArcPointSize(*args, **kwargs):\n return _gdi_.DC_DrawEllipticArcPointSize(*args, **kwargs)", "def DrawEllipticArc(*args, **kwargs):\n return _gdi_.PseudoDC_DrawEllipticArc(*args, **kwargs)", "def DrawEllipticArc(*args, **kwargs):\n return _gdi_.DC_DrawEllipticArc(*args, **k...
[ "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 DrawEllipsePointSize(*args, **kwargs): return _gdi_.PseudoDC_DrawEllipsePointSize(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawEllipsePointSize(*args, **kwargs):\n return _gdi_.DC_DrawEllipsePointSize(*args, **kwargs)", "def draw_ellipse(self, color, position, size, border_width = 0, anchor= 'topleft'):\n # We'll try to make sure that everything is okay later\n \n color = spyral.color._determine(color...
[ "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 DrawLines(*args, **kwargs): return _gdi_.PseudoDC_DrawLines(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrawLineList(self, lines, pens=None):\n if pens is None:\n pens = []\n elif isinstance(pens, wx.Pen):\n pens = [pens]\n elif len(pens) != len(lines):\n raise ValueError('lines and pens must have same length')\n return self._DrawLineList(lines, pens, [])...
[ "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 SetBrush(*args, **kwargs): return _gdi_.PseudoDC_SetBrush(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetBrush(*args, **kwargs):\n return _gdi_.DC_SetBrush(*args, **kwargs)", "def SetBrush(*args):\n return _gdi_.GraphicsContext_SetBrush(*args)", "def setTextBackgroundBrush(self, brush=None):\n self._text_bg_brush = brush", "def setBackground(self, brush):\n self.format.setBack...
[ "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 test_landing_page(self): # Create a test client client = server.app.test_client() # Use the test client to make requests result = client.get('/', follow_redirects=True) # Compare result.data with assert method self.assertIn(b'<p class="navbar-text">Already have an a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_index_html(self):\n response = self.setup_get_html_test('/api/index')\n self.assertEqual(response.status_code, 200)", "def index_page():\n\n return render_template(\"index.html\")", "def index_page():\n\n return render_template(\"index.html\")", "def index_page():\n\n retu...
[ "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 test_logPage(self): # Create a test client client = server.app.test_client() # Use the test client to make requests result = client.post('/login', follow_redirects=True, data={'username':'sadaqiq@gmail.com', 'password':'hadis'}) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_index_html(self):\n response = self.setup_get_html_test('/api/index')\n self.assertEqual(response.status_code, 200)", "def index_page():\n\n return render_template(\"index.html\")", "def index_page():\n\n return render_template(\"index.html\")", "def index_page():\n\n retu...
[ "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 highlight(val, conditions: dict, tablefmt): val = round(val, ROUND) for color, cond in conditions.items(): if tablefmt == 'simple': if cond: return pfont([color, 'BOLD'], format(round(val, ROUND), f".{ROUND}f"), PrintFont) elif tablefmt in ['latex', 'latex_raw']: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def highlight_cells(c, c_dict):\n colour= c_dict.get(c)\n return 'background-color: %s' % colour", "def render_cell(column, row):\n return column.render_cell(row)", "def color_domain_record_cells(val):\n if isinstance(val, int):\n color = \"yellow\" if val < 3 else None\n ...
[ "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 wn_concreteness(word, similarity_fn=wn.path_similarity): syns = wn.synsets(word) dists = [1 - similarity_fn(s, s.root_hypernyms()[0]) for s in syns] return np.median(dists), max(dists)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def norm_distance(self):\n graph_size = self.N + self.M\n return self.distance() / (1. * graph_size)", "def get_distance(self, vec):\r\n\r\n sum = 0\r\n if len(self.weights) == len(vec):\r\n for i in range(len(vec)):\r\n sum += (self.weights[i] - vec[i]) * (s...
[ "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 _(x: DataFrame, y: DataFrame) -> bool: _check_xy(x, y) x = x.sort_values(by=x.columns.to_list()).reset_index(drop=True) y = y.sort_values(by=y.columns.to_list()).reset_index(drop=True) return x.equals(y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def df_equal(left: pd.DataFrame, right: pd.DataFrame, **kwargs) -> bool:\n pd.testing.assert_frame_equal(left, right, **kwargs)\n return True", "def assertFrameEqual( df1, df2 ):\n\n return assert_frame_equal( df1.sort( axis=1) , df2.sort( axis=1) , check_names = True )", "def df_equal( df1, d...
[ "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 data_path(path: Path | str, is_folder: bool = False) -> Path: if os.environ.get("RUNNING_IN_DOCKER", False): _path = Path("/data") / path else: _path = Path("./data") / path folder = _path if not is_folder: folder = _path.parent # Create folders if necessarey if no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_data_dir():\r\n assert sys.argv\r\n prefix_path = os.path.dirname(sys.argv[0])\r\n local_data = os.path.join(prefix_path, \"data\")\r\n return local_data", "def get_data_path():\n return os.getcwd() + \"/data/\"", "def _LocalDataPath(local_file):\n return data.ResourcePath(local_file)...
[ "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 bson_ts_to_long(timestamp): converted_time = (timestamp.time << 32) + timestamp.inc return converted_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_timestamp(self, timestamp):\n return int(timestamp * 1e6)", "def convert_to_bson_timestamp(ts):\n lowpart = int(ts)\n return Timestamp(lowpart, 1)", "def convert_to_bson_timestamp(ts):\n lowpart = int(ts)\n return Timestamp(lowpart, 1)", "def execute_cast_timestamp_to_integer(op, ...
[ "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 setUp(self): set_environment_vars() # Careful! We must set the environment variables to test values # _before_ importing the espresso app, otherwise, those env vars will # still have their normal values when instantiating the app. from espresso import app from espres...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setUp(self):\n self.app = api.app\n self.client = self.app.test_client\n \n setup_db(self.app)\n\n # binds the app to the current context\n with self.app.app_context():\n self.db = SQLAlchemy()\n self.db.init_app(self.app)", "def setUp(self):\n\...
[ "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 test_get_restaurant_unauthorized(self): resp = self.test_client.get(self.API_BASE, headers={}) self.assertEqual(resp.status_code, 401) resp_dict = json.loads(resp.data) self.assertEqual(resp_dict['success'], False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_without_oauth(self):\n self.client = trovebox.Trovebox(host=self.test_host)\n self._register_uri(httpretty.GET)\n response = self.client.get(self.test_endpoint)\n self.assertNotIn(\"authorization\", self._last_request().headers)\n self.assertEqual(response, self.test...
[ "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 test_create_restaurant_unauthorized(self): headers = {'Content-Type': 'application/json'} info = {'name': 'Restaurant Pho 2000', 'creator': 'test-user@gmail.com'} resp = self.test_client.post(self.API_BASE + '/create', headers=headers, data=json.dumps(info)) self.assertEqual(resp.st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_post_answer_if_not_autheticated(self):\n response = self.post_answer()\n self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)", "def test_post_without_token(self):\n client = Client()\n data = {\n 'rating': '1',\n 'title': 'Hated It!',\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 test_update_restaurant_blank_name(self): from espresso import db from espresso import Restaurant name = 'Restaurant Mexicano' db.session.add(Restaurant(name=name, creator='test-user@gmail.com')) db.session.commit() headers = {'Content-Type': 'application/json'} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_restaurant(self):\n from espresso import db\n from espresso import Restaurant\n\n name = 'Restaurant Mexicano'\n zip_code = \"94110\"\n db.session.add(Restaurant(name=name, creator='test-user@gmail.com', zip_code=zip_code))\n db.session.commit()\n\n ...
[ "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