code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class ALIEN_COLLECTION_EL(NamedTuple): <NEW_LINE> <INDENT> name: str = '' <NEW_LINE> aclId: str = '' <NEW_LINE> broken: str = '' <NEW_LINE> ctime: str = '' <NEW_LINE> dir: str = '' <NEW_LINE> entryId: str = '' <NEW_LINE> expiretime: str = '' <NEW_LINE> gowner: str = '' <NEW_LINE> guid: str = '' <NEW_LINE> guidtime: str...
AliEn style xml collection element strucure
62599079fff4ab517ebcf1f5
class cooked_mode(raw_mode): <NEW_LINE> <INDENT> def _patch(self): <NEW_LINE> <INDENT> ENABLE_ECHO_INPUT = 0x0004 <NEW_LINE> ENABLE_LINE_INPUT = 0x0002 <NEW_LINE> ENABLE_PROCESSED_INPUT = 0x0001 <NEW_LINE> windll.kernel32.SetConsoleMode( self.handle, self.original_mode.value | (ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT | E...
:: with cooked_mode(stdin): ''' The pseudo-terminal stdin is now used in cooked mode. '''
6259907923849d37ff852a95
class V1DaemonSetUpdateStrategy(object): <NEW_LINE> <INDENT> openapi_types = { 'rolling_update': 'V1RollingUpdateDaemonSet', 'type': 'str' } <NEW_LINE> attribute_map = { 'rolling_update': 'rollingUpdate', 'type': 'type' } <NEW_LINE> def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): <NEW...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
6259907901c39578d7f14423
class IObjectInvitation(IInvitation): <NEW_LINE> <INDENT> oid = interface.Attribute('Object id') <NEW_LINE> object = interface.Attribute('Object')
object invitation
62599079442bda511e95da46
class HtmlPageParsedRegion(HtmlPageRegion): <NEW_LINE> <INDENT> def __new__(cls, htmlpage, start_index, end_index): <NEW_LINE> <INDENT> text_start = htmlpage.parsed_body[start_index].start <NEW_LINE> text_end = htmlpage.parsed_body[end_index or -1].end <NEW_LINE> text = htmlpage.body[text_start:text_end] <NEW_LINE> ret...
A region of an HtmlPage that has been extracted This has a parsed_fragments property that contains the parsed html fragments contained within this region
625990797d847024c075ddba
class PODaggrKriging(ot.OpenTURNSPythonFunction): <NEW_LINE> <INDENT> def __init__(self, krigingPOD, dim, defectSizes, detection): <NEW_LINE> <INDENT> super(PODaggrKriging, self).__init__(dim, defectSizes.shape[0]) <NEW_LINE> self.krigingResult = krigingPOD.getKrigingResult() <NEW_LINE> self.defectNumber = len(defectSi...
Aggregate function that compute the POD for a given points for all defect sizes given as parameter. Parameters ---------- krigingPOD : :class:`KrigingPOD` or :class:`AdaptiveSignalPOD` The kriging POD object obtained after building the POD. dim : integer The number of input parameters of the function without ...
6259907960cbc95b06365a5c
class Language(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=200, help_text="Enter a the book's natural language (e.g. English, French, Japanese etc.)") <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name
Model representing a Language (e.g. English, French, Japanese, etc.)
625990797cff6e4e811b741d
class Base: <NEW_LINE> <INDENT> __nb_object = 0 <NEW_LINE> def __init__(self, id=None): <NEW_LINE> <INDENT> if id is not None: <NEW_LINE> <INDENT> self.id = id <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> Base.__nb_object += 1 <NEW_LINE> self.id = Base.__nb_object <NEW_LINE> <DEDENT> <DEDENT> @staticmethod <NEW_LINE> ...
Class that makes the base for other classes. Manages __nb_objects and public instance attribute id.
625990799c8ee82313040e76
class GroveSlidePotentiometer(ADC): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.channel = channel <NEW_LINE> self.adc = ADC() <NEW_LINE> <DEDENT> @property <NEW_LINE> def value(self): <NEW_LINE> <INDENT> return self.adc.read(self.channel)
Grove Slide Poteniometer Sensor class Args: pin(int): number of analog pin/channel the sensor connected.
625990792c8b7c6e89bd51c9
class WeibullFitter(KnownModelParametricUnivariateFitter): <NEW_LINE> <INDENT> lambda_: float <NEW_LINE> rho_: float <NEW_LINE> _fitted_parameter_names = ["lambda_", "rho_"] <NEW_LINE> _compare_to_values = np.array([1.0, 1.0]) <NEW_LINE> _scipy_fit_options = {"ftol": 1e-14} <NEW_LINE> def _create_initial_point(self, Ts...
This class implements a Weibull model for univariate data. The model has parameterized form: .. math:: S(t) = \exp\left(-\left(\frac{t}{\lambda}\right)^\rho\right), \lambda > 0, \rho > 0, The :math:`\lambda` (scale) parameter has an applicable interpretation: it represents the time when 63.2% of the population has...
62599079bf627c535bcb2ead
class IMultiLayoutPossibleFacetedNavigable(IPossibleFacetedNavigable): <NEW_LINE> <INDENT> pass
Marker interface for all objects that should have the ability to be faceted navigable
6259907967a9b606de547795
class TextInfo: <NEW_LINE> <INDENT> def __init__(self, face="Arial", bold=False, size=8, padding=3, color=(0, 0, 0)): <NEW_LINE> <INDENT> self.face = (face, cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_BOLD if bold else cairo.FONT_WEIGHT_NORMAL) <NEW_LINE> self.size = size <NEW_LINE> self.padding = padding <NEW_LINE> sel...
Class to hold text font and padding information. Public methods: __init()__
62599079fff4ab517ebcf1f7
class ManagementGroupChildInfo(Model): <NEW_LINE> <INDENT> _attribute_map = { 'child_type': {'key': 'childType', 'type': 'str'}, 'child_id': {'key': 'childId', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'children': {'key': 'children', 'type': '[ManagementGroupChildInfo]'}, } <NEW_LINE> def _...
The child information of a management group. :param child_type: The type of child resource. Possible values include: 'ManagementGroup', 'Subscription' :type child_type: str or ~azure.mgmt.managementgroups.models.enum :param child_id: The fully qualified ID for the child resource (management group or subscription). ...
625990794f88993c371f1211
class FilesystemResolver(etree.Resolver): <NEW_LINE> <INDENT> def resolve(self, system_url, public_id, context): <NEW_LINE> <INDENT> if not '://' in system_url and os.path.exists(system_url): <NEW_LINE> <INDENT> return self.resolve_filename(system_url, context) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return None
Resolver for filesystem paths
625990794f6381625f19a19c
class TestGatewayOption(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testGatewayOption(self): <NEW_LINE> <INDENT> pass
GatewayOption unit test stubs
6259907960cbc95b06365a5d
class LTIJohnProvider(tornado.web.RequestHandler): <NEW_LINE> <INDENT> eventDispatcherURL = 'http://mono.stanford.edu:6969/ltiResponse' <NEW_LINE> def post(self): <NEW_LINE> <INDENT> postBodyForm = self.request.body <NEW_LINE> postBodyDict = eval(postBodyForm) <NEW_LINE> self.echoParmsToEventDispatcher(postBodyDict) <N...
This class is a Web service that listens to POST requests from an LTI consumer. The module simply echoes all the parameters that the consumer passes in. This class differs from the corresponding classes in lti_candace_provider.py and lti_dill_provider.py in that this service participates in a service registration sc...
62599079baa26c4b54d50c91
class CaveSurveyDialogTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_icon_png(self): <NEW_LINE> <INDENT> path = ':/plugins/CaveSurvey/icon.png' <NEW_LINE> icon = QIcon(path) <NEW_LINE> s...
Test rerources work.
62599079283ffb24f3cf5280
class CustomResponseXMLFactory(ResponseXMLFactory): <NEW_LINE> <INDENT> def create_response_element(self, **kwargs): <NEW_LINE> <INDENT> cfn = kwargs.get('cfn', None) <NEW_LINE> expect = kwargs.get('expect', None) <NEW_LINE> answer_attr = kwargs.get('answer_attr', None) <NEW_LINE> answer = kwargs.get('answer', None) <N...
Factory for producing <customresponse> XML trees
6259907af9cc0f698b1c5fbc
class UQSpecification(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__filename = 'uq_setting.gz' <NEW_LINE> self.__preprocessor = None <NEW_LINE> self.__simulation = None <NEW_LINE> def postprocessor(x, *args, **kws): <NEW_LINE> <INDENT> return {'_': [x]} <NEW_LINE> <DEDENT> self.__postproce...
UQ specification object
6259907a76e4537e8c3f0f5f
class FileUtils: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def open(filePath, permArgs): <NEW_LINE> <INDENT> return open(filePath, permArgs)
Contains utilities related to file system operations.
6259907a7047854f46340d9b
class HomeView(web.View): <NEW_LINE> <INDENT> @aiohttp_jinja2.template('radio/landing.html') <NEW_LINE> async def get(self): <NEW_LINE> <INDENT> return {'filter_class': get_day_time(), 'DEBUG': settings.DEBUG, 'GA': settings.GOOGLE_ANALYTICS}
Base view that return index page with all JS fancy stuff on it
6259907a796e427e5385015b
class PointerInput: <NEW_LINE> <INDENT> def __init__(self, pos, length): <NEW_LINE> <INDENT> self.pos = pos <NEW_LINE> self.length = length
Base class for various pointer input types.
6259907af548e778e596cf72
class ItemAttribute(): <NEW_LINE> <INDENT> ATTRIB_EXCLUSION_LIST = 'copy' <NEW_LINE> def __repr__(self, indent=2): <NEW_LINE> <INDENT> result = self.__class__.__name__ + '\n' <NEW_LINE> for k,v in self._attribs(): <NEW_LINE> <INDENT> result += ' '*indent + k + ': ' + str(v) <NEW_LINE> <DEDENT> result += '\n' <NEW_LINE>...
An attribute about an item which, in turn, contains attributes in the form of Python attributes, set and retrieved using setattr() and getattr()
6259907a32920d7e50bc7a29
class Categories(Resource): <NEW_LINE> <INDENT> @jwt_required <NEW_LINE> @admin_only <NEW_LINE> def get(self): <NEW_LINE> <INDENT> return category.get_all_categories() <NEW_LINE> <DEDENT> @jwt_required <NEW_LINE> @admin_only <NEW_LINE> @expects_json(category_schema) <NEW_LINE> def post(self): <NEW_LINE> <INDENT> cat_na...
Creates the endpoint for categories
6259907a16aa5153ce401eba
class ExecutorError(Exception): <NEW_LINE> <INDENT> def __init__(self, executor, reason): <NEW_LINE> <INDENT> self.executor = executor <NEW_LINE> self.reason = reason <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Executor {0} failed due to {1}".format(self.executor, self.reason) <NEW_LINE> <DEDENT...
Base class for all exceptions. Only to be invoked when only a more specific error is not available.
6259907aadb09d7d5dc0bf4a
class ConnectionStringAuthentication(ConnectionString, Authentication): <NEW_LINE> <INDENT> def __init__(self, connection_string): <NEW_LINE> <INDENT> super(ConnectionStringAuthentication, self).__init__( connection_string ) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def create_with_parsed_values(cls, host_name, share...
ConnectionString class that can be used with msrest to provide SasToken authentication :param connection_string: The connection string to generate SasToken with
6259907a7d847024c075ddbe
class cm_shell_slurm: <NEW_LINE> <INDENT> def activate_cm_shell_slurm(self): <NEW_LINE> <INDENT> self.register_command_topic('platform', 'slurm') <NEW_LINE> pass <NEW_LINE> <DEDENT> @command <NEW_LINE> def do_slurm(self, args, arguments): <NEW_LINE> <INDENT> log.info(arguments) <NEW_LINE> if(arguments["deploy"] and arg...
Creating a slurm cluster
6259907a656771135c48ad20
class EAP_TTLS(EAP): <NEW_LINE> <INDENT> name = "EAP-TTLS" <NEW_LINE> fields_desc = [ ByteEnumField("code", 1, eap_codes), ByteField("id", 0), FieldLenField("len", None, fmt="H", length_of="data", adjust=lambda p, x: x + 10 if p.L == 1 else x + 6), ByteEnumField("type", 21, eap_types), BitField("L", 0, 1), BitField("M"...
RFC 5281 - "Extensible Authentication Protocol Tunneled Transport Layer Security Authenticated Protocol Version 0 (EAP-TTLSv0)"
6259907a4a966d76dd5f08c7
class RootViaSudoExecutionController( CheckBoxDifferentialExecutionController): <NEW_LINE> <INDENT> def __init__(self, session_dir, provider_list): <NEW_LINE> <INDENT> super().__init__(session_dir, provider_list) <NEW_LINE> try: <NEW_LINE> <INDENT> in_sudo_group = grp.getgrnam("sudo").gr_gid in posix.getgroups() <NEW_L...
Execution controller that gains root by using sudo. This controller should be used for jobs that need root but cannot be executed by the plainbox-trusted-launcher-1. This happens whenever the job is not in the system-wide provider location. In practice it is used when working with the special 'checkbox-in-source-tree...
6259907a460517430c432d4a
class FixHeaderApplyTransforms(ApplyTransforms): <NEW_LINE> <INDENT> def _run_interface(self, runtime, correct_return_codes=(0,)): <NEW_LINE> <INDENT> runtime = super(FixHeaderApplyTransforms, self)._run_interface( runtime, correct_return_codes) <NEW_LINE> _copyxform(self.inputs.reference_image, os.path.abspath(self._g...
A replacement for nipype.interfaces.ants.resampling.ApplyTransforms that fixes the resampled image header to match the xform of the reference image
6259907ae1aae11d1e7cf501
class WiktionaryTerm: <NEW_LINE> <INDENT> def __init__(self, text: AccentedText): <NEW_LINE> <INDENT> self.text = AccentedText(text) <NEW_LINE> self.etymology = AccentedText() <NEW_LINE> self.words = {} <NEW_LINE> self.audio_sources = {} <NEW_LINE> self.download_timestamp = time.time() <NEW_LINE> <DEDENT> def get_audio...
Data representing a single page on Wiktionary for a term.
6259907a4527f215b58eb691
class MigrateServer(command.Command): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.MigrateServer') <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(MigrateServer, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'server', metavar='<server>', help=_('Server (name or I...
Migrate server to different host
6259907aaad79263cf43019b
class MyApp(wx.App): <NEW_LINE> <INDENT> def OnInit(self): <NEW_LINE> <INDENT> img = wx.Image(util.resource_path('resources/f22.jpg'), wx.BITMAP_TYPE_JPEG) <NEW_LINE> self.frame = MyFrame(image=img) <NEW_LINE> self.frame.Show(True) <NEW_LINE> self.SetTopWindow(self.frame) <NEW_LINE> return True
Application class.
6259907a5fc7496912d48f5b
class AttackBase(object): <NEW_LINE> <INDENT> name = None <NEW_LINE> targeted = False <NEW_LINE> def __init__(self, model, classifier, options): <NEW_LINE> <INDENT> assert self.name, 'Each attack must define a name attribute.' <NEW_LINE> self.session = model.session <NEW_LINE> self.model = model <NEW_LINE> self.classif...
Abstract attack.
6259907a56b00c62f0fb42b5
class UNG_917t1: <NEW_LINE> <INDENT> activate = Buff(TARGET, "UNG_917e")
Dinomancy - (HeroPower) Hero Power Give a Beast +2/+2. https://hearthstone.gamepedia.com/Dinomancy
6259907abf627c535bcb2eb1
class PyramidalFlowFilter(FlowFilter): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._H = kwargs.pop('levels', 1) <NEW_LINE> pIter = kwargs.pop('propIterations', 1) <NEW_LINE> sIter = kwargs.pop('smoothIterations', 1) <NEW_LINE> gamma = kwargs.pop('gamma', 1.0) <NEW_LINE> self._maxflow = kw...
Pyramidal optical flow filter See also -------- SimpleFlowFilter : DeltaFlowFilter : Examples --------
6259907a7047854f46340d9e
class PaidTask(models.Model): <NEW_LINE> <INDENT> type_choices = [ (PaidTaskTypes.TRANSLATION, _("Translation")), (PaidTaskTypes.REVIEW, _("Review")), (PaidTaskTypes.HOURLY_WORK, _("Hourly Work")), (PaidTaskTypes.CORRECTION, _("Correction")), ] <NEW_LINE> task_type = models.PositiveSmallIntegerField( _("Type"), choices...
The Paid Task. ``task_type``, ``amount`` and ``date`` are required.
6259907a67a9b606de547797
class C3H10N(Fragment): <NEW_LINE> <INDENT> def __init__(self, lipid, adduct, intensity): <NEW_LINE> <INDENT> assert not self.Formula() > lipid.formula <NEW_LINE> super().__init__(lipid, adduct, intensity) <NEW_LINE> <DEDENT> def MZ(self): <NEW_LINE> <INDENT> return 60.080776 <NEW_LINE> <DEDENT> def Formula(self): <NEW...
X-H Fragment common to phospholipids under negative ESI MZ: 60.080776
6259907a23849d37ff852a9b
class Libro: <NEW_LINE> <INDENT> ISBN="" <NEW_LINE> nombre="" <NEW_LINE> anno=0 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.ISBN="" <NEW_LINE> self.nombre="xxx" <NEW_LINE> self.anno=0 <NEW_LINE> <DEDENT> def setISBN(self,pISBN): <NEW_LINE> <INDENT> self.ISBN=pISBN <NEW_LINE> <DEDENT> def setNombre(self,pnom...
Definición de atibutos
6259907afff4ab517ebcf1fb
class MetadataFileSystemAdapterTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._osStatResult = SimpleMock() <NEW_LINE> self._osStatResult.st_ctime = 788999998.0 <NEW_LINE> self._osStatResult.st_mtime = 788999998.0 <NEW_LINE> self._osStatResult.st_size = 788999998.0 <NEW_LINE> ...
Test cases of the meta data adapter.
6259907aadb09d7d5dc0bf4c
class Command(BaseCommand): <NEW_LINE> <INDENT> help = 'import csv file and create records.' <NEW_LINE> def add_arguments(self, parser: CommandParser) -> None: <NEW_LINE> <INDENT> parser.add_argument('csv', nargs='+', type=str) <NEW_LINE> <DEDENT> def handle(self, *args: Any, **options: Any) -> Optional[str]: <NEW_LINE...
Read csv and import data to database. python manage.py import_csv [csv file path] csv header need to contain 'description' and 'photo' columns. description(str): description photo(str): file path Args: BaseCommand ([type]): BaseCommand
6259907a1b99ca4002290227
class UnknownAnnotationTypeException(Exception): <NEW_LINE> <INDENT> pass
error raised when an annotation type is not found
6259907a44b2445a339b764f
class BitmapBuffer(wx.MemoryDC): <NEW_LINE> <INDENT> def __init__(self, width, height, colour): <NEW_LINE> <INDENT> wx.MemoryDC.__init__(self) <NEW_LINE> self.width = width <NEW_LINE> self.height = height <NEW_LINE> self.colour = colour <NEW_LINE> self.bitmap = wx.Bitmap(self.width, self.height) <NEW_LINE> self.SelectO...
A screen buffer class. This class implements a screen output buffer. Data is meant to be drawn in the buffer class and then blitted directly to the output device, or on-screen window.
6259907a97e22403b383c8e5
class Or(Operator): <NEW_LINE> <INDENT> def op(self, arg1, arg2): <NEW_LINE> <INDENT> return arg1 or arg2 <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '(%s | %s)' % tuple(self)
Prop Cal Or
6259907a460517430c432d4b
class AttrEncoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, outdims=40): <NEW_LINE> <INDENT> super(AttrEncoder, self).__init__() <NEW_LINE> self.resnet = resnet50(pretrained=True) <NEW_LINE> self.reslayers = list(self.resnet.children())[:-2] <NEW_LINE> self.reslayers.append(nn.Conv2d(2048, 2048, 2)) <NEW_LINE>...
Attribute predictor class (encoder)
6259907a283ffb24f3cf5284
class Atype8(Atype): <NEW_LINE> <INDENT> def __init__(self, tik: int, object_id: int, coal_id: int, task_type_id: int, success: bool, icon_type_id: int, pos: dict): <NEW_LINE> <INDENT> super().__init__(tik) <NEW_LINE> self.object_id = object_id <NEW_LINE> self.coal_id = coal_id <NEW_LINE> self.task_type_id = task_type_...
Mission Objective
6259907aad47b63b2c5a9233
class WrathOfTheStorm(Feature): <NEW_LINE> <INDENT> _name = "Wrath of the Storm" <NEW_LINE> source = "Cleric (Tempest Domain)" <NEW_LINE> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> num_uses = max(1, self.owner.wisdom.modifier) <NEW_LINE> return self._name + ' ({:d}x/LR)'.format(num_uses)
Also at 1st level, you can thunderously rebuke attackers. When a creature within 5 feet of you that you can see hits you with an attack, you can use your reaction to cause the creature to make a Dexterity saving throw. The creature takes 2d8 lightning or thunder damage (your choice) on a failed saving throw, and half a...
6259907af9cc0f698b1c5fbe
class NoErrors(LogValidator): <NEW_LINE> <INDENT> def parseLogLine(self,proc,date,time,level,msg): <NEW_LINE> <INDENT> if level in ["FATAL","ERROR","EXCEPTION"]: <NEW_LINE> <INDENT> raise ValidationError( "Encountered an %s" % (level,) )
Considers a log valid if there are no errors or exceptions.
6259907aaad79263cf43019d
class ArticleCreateView(LoginRequiredMixin, CustomSuccessMessageMixin, CreateView): <NEW_LINE> <INDENT> login_url = reverse_lazy('login_page') <NEW_LINE> model = Articles <NEW_LINE> template_name = 'edit_page.html' <NEW_LINE> form_class = ArticleForm <NEW_LINE> success_url = reverse_lazy('edit_page') <NEW_LINE> success...
Класс вида создания статьи
6259907abf627c535bcb2eb3
class GoogleSheetsOptions(object): <NEW_LINE> <INDENT> _SOURCE_FORMAT = 'GOOGLE_SHEETS' <NEW_LINE> _RESOURCE_NAME = 'googleSheetsOptions' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._properties = {} <NEW_LINE> <DEDENT> skip_leading_rows = _TypedApiResourceProperty( 'skip_leading_rows', 'skipLeadingRows', si...
Options that describe how to treat Google Sheets as BigQuery tables.
6259907a67a9b606de547798
class ColormapDialog(QtWidgets.QDialog): <NEW_LINE> <INDENT> @docstrings.with_indent(8) <NEW_LINE> def __init__(self, names=[], N=10, editable=True, *args, **kwargs): <NEW_LINE> <INDENT> super(QtWidgets.QDialog, self).__init__(*args, **kwargs) <NEW_LINE> vbox = QtWidgets.QVBoxLayout() <NEW_LINE> self.table = ColormapTa...
A widget for selecting a colormap
6259907ad486a94d0ba2d99c
class FileImager(USBImager): <NEW_LINE> <INDENT> def Run(self): <NEW_LINE> <INDENT> if not os.path.exists(self.device): <NEW_LINE> <INDENT> cros_build_lib.Die('Path %s does not exist.' % self.device) <NEW_LINE> <DEDENT> image_path = self._GetImagePath() <NEW_LINE> if os.path.isdir(self.device): <NEW_LINE> <INDENT> logg...
Copy image to the target path.
6259907aadb09d7d5dc0bf4e
class ExtFileField(forms.FileField): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> ext_whitelist = kwargs.pop("ext_whitelist") <NEW_LINE> self.ext_whitelist = [i.lower() for i in ext_whitelist] <NEW_LINE> super(ExtFileField, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def clean(se...
Same as forms.FileField, but you can specify a file extension whitelist. >>> from django.core.files.uploadedfile import SimpleUploadedFile >>> >>> t = ExtFileField(ext_whitelist=(".pdf", ".txt")) >>> >>> t.clean(SimpleUploadedFile('filename.pdf', 'Some File Content')) >>> t.clean(SimpleUploadedFile('filename.txt', 'So...
6259907a1b99ca4002290228
class DashboardLoginView(APIView): <NEW_LINE> <INDENT> def post(self, request, format=None): <NEW_LINE> <INDENT> username = request.data['username'] <NEW_LINE> password = request.data['password'] <NEW_LINE> role = request.data['role'] <NEW_LINE> county=request.data["county"] <NEW_LINE> school=request.data["school"] <NE...
{ "username": "marlinek", "school": 1, "county": 1, "token": "73a8ac6d849d4af2cf001d07d42f83c80d4c2ce9", "role": "teacher", "user": 8 } "error": "Username is invalid" HTTP 401 Unauthorized HTTP 200 OK
6259907a66673b3332c31de4
class CryptoAddressOperation(CryptoOperation): <NEW_LINE> <INDENT> address_id = Column(ForeignKey("crypto_address.id")) <NEW_LINE> address = relationship(CryptoAddress, single_parent=True, cascade="all, delete-orphan", primaryjoin=address_id == CryptoAddress.id, backref="user_owned_crypto_accounts") <NEW_LINE> __mapper...
Operation which has one cryptonetwork address as source/destination.
6259907a1f5feb6acb1645dc
class LayerFactory(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._layer_dict = { "ConvBN": (nn_blocks.ConvBN, self.conv_bn_config_todict), "MaxPool": (tf.keras.layers.MaxPool2D, self.maxpool_config_todict) } <NEW_LINE> <DEDENT> def conv_bn_config_todict(self, config, kwargs): <NEW_LINE> <IND...
Class for quick look up of default layers. Used by darknet to connect, introduce or exit a level. Used in place of an if condition or switch to make adding new layers easier and to reduce redundant code.
6259907aec188e330fdfa28d
class DATA_PT_ribmosaic_panels(RibmosaicPipelinePanels, bpy.types.Panel): <NEW_LINE> <INDENT> bl_space_type = 'PROPERTIES' <NEW_LINE> bl_region_type = 'WINDOW' <NEW_LINE> bl_context = "data" <NEW_LINE> filter_type = ('MESH', 'CURVE', 'SURFACE', 'META', 'LAMP', 'CAMERA') <NEW_LINE> shader_panels = True <NEW_LINE> utilit...
Pipeline shader and utility control panel for object data
6259907ae1aae11d1e7cf503
class MDP: <NEW_LINE> <INDENT> def __init__(self, nS, nA, discount): <NEW_LINE> <INDENT> assert 0 <= discount, 'discount must be non-negative' <NEW_LINE> assert discount <= 1, 'value too large' <NEW_LINE> self.S = np.arange(nS) <NEW_LINE> self.A = np.arange(nA) <NEW_LINE> self.discount = discount <NEW_LINE> self.policy...
S : set of states (implemented as vector of integers) A : set of actions (which i think should also just be a vector of integer labels for now) P : matrix of transition probabilities (A x S x S) -> [0,1] from Wiki: "...sometimes written as Pr(s,a,s'), Pr(s'|s,a)..." TODO which is correct? R : reward for taking ...
6259907aad47b63b2c5a9235
class Foo(RefinableObject): <NEW_LINE> <INDENT> name = Refinable() <NEW_LINE> @dispatch <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(Foo, self).__init__(**kwargs)
First description
6259907af9cc0f698b1c5fbf
class MarkTicketClosed(TicketAction): <NEW_LINE> <INDENT> action_name = 'mark_closed' <NEW_LINE> required_states = 'talk started opened ready' <NEW_LINE> veto_vote_states = 'assigned'
Mark this ticket as closed.
6259907ad268445f2663a851
class ImportRIP(bpy.types.Operator, ImportHelper): <NEW_LINE> <INDENT> bl_idname = "import_scene.rip" <NEW_LINE> bl_label = 'Import NinjaRipper (*.rip)' <NEW_LINE> bl_options = {'UNDO'} <NEW_LINE> filename_ext = ".rip" <NEW_LINE> filter_glob = StringProperty(default="*.rip", options={'HIDDEN'}) <NEW_LINE> semantic_sett...
Import from RIP file format (.rip)
6259907a7047854f46340da2
class KayakError(Exception): <NEW_LINE> <INDENT> pass
Generic exception for kayak module.
6259907a21bff66bcd72464f
class StudyGuideMetaCampaign(MetaCampaign): <NEW_LINE> <INDENT> event = models.ForeignKey(CalendarEvent, primary_key=True) <NEW_LINE> campaigns = models.ManyToManyField(StudyGuideCampaign, blank=True, null=True) <NEW_LINE> documents = models.ManyToManyField(Document, blank=True, null=True) <NEW_LINE> def __str__(self):...
Campaign builder for study guide mailings. Attributes ---------- event : django.db.models.ForeignKey An event for this campaign. campaigns : django.db.models.ManyToManyField Campaigns associated with this builder. documents : django.db.models.ManyToManyField Documents associated with this builder. Notes -...
6259907a3539df3088ecdc7e
class _Functional(Pipe): <NEW_LINE> <INDENT> class __knobs__: <NEW_LINE> <INDENT> fun = None
Base class for Transform, Monitor and Filter. Implements wrapping up a custom python function into a functional pipe.
6259907a7cff6e4e811b7426
class ParticleCS(AnalysisBase): <NEW_LINE> <INDENT> def __init__(self, mobile, reference=None, rotation=None, **kwargs): <NEW_LINE> <INDENT> if 'start' not in kwargs: <NEW_LINE> <INDENT> kwargs['start'] = 1 <NEW_LINE> <DEDENT> if 'step' in kwargs: <NEW_LINE> <INDENT> kwargs['start'] += kwargs['step'] <NEW_LINE> <DEDENT...
Transform a trajectory of a rigid body in the laboratory coordinate system into the particle coordinate system (PCS). This removes all rotations and recovers the pure translational movement in the PCS. Attributes ---------- pcs : ndarray trajectory in the PCS
6259907a99fddb7c1ca63aca
class Schema(GenericSchema): <NEW_LINE> <INDENT> LABEL = 'l' <NEW_LINE> def __init__(self, mapping, fallback=None): <NEW_LINE> <INDENT> self._label_key = self._get_unique_mapping(mapping, fallback, self.LABEL, 'LABEL') <NEW_LINE> super(Schema, self).__init__(mapping, fallback) <NEW_LINE> <DEDENT> def transform(self, ro...
Schema for Classifier service.
6259907a5fcc89381b266e4e
class ApplicationMessage: <NEW_LINE> <INDENT> def __init__(self, packet_id, topic, qos, data, retain): <NEW_LINE> <INDENT> self.packet_id = packet_id <NEW_LINE> self.topic = topic <NEW_LINE> self.qos = qos <NEW_LINE> self.data = data <NEW_LINE> self.retain = retain <NEW_LINE> self.publish_packet = None <NEW_LINE> self....
ApplicationMessage and subclasses are used to store published message information flow. These objects can contain different information depending on the way they were created (incoming or outgoing) and the quality of service used between peers.
6259907a1b99ca4002290229
class ServiceBuilderException(BaseException): <NEW_LINE> <INDENT> pass
Class for exceptions in BuilderService
6259907a44b2445a339b7651
class ToTensor(object): <NEW_LINE> <INDENT> def __call__(self, sample): <NEW_LINE> <INDENT> image, mask , img_name = sample['image'], sample['mask'], sample['image_name'] <NEW_LINE> image = image.transpose((2, 0, 1)) <NEW_LINE> return {'image': torch.from_numpy(image), 'mask': torch.from_numpy(mask), 'image_name': img_...
Convert ndarrays in sample to Tensors.
6259907a60cbc95b06365a61
class Encoder(nn.Module): <NEW_LINE> <INDENT> def __init__( self, d_word_vec, n_layers, n_head, d_k, d_v, d_model, d_inner, dropout=0.1, n_position=200): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.position_enc = PositionalEncoding(d_word_vec, n_position=n_position) <NEW_LINE> self.dropout = nn.Dropout(p=dr...
A encoder model with self attention mechanism.
6259907a460517430c432d4d
class CylinderToImageMap(PointMap): <NEW_LINE> <INDENT> def __init__(self, L): <NEW_LINE> <INDENT> self._L = L <NEW_LINE> <DEDENT> def map(self, z, theta): <NEW_LINE> <INDENT> return (self._L/2 - self._L*theta/PI, z) <NEW_LINE> <DEDENT> def invmap(self, x, y): <NEW_LINE> <INDENT> return (y, PI*(0.5-x/self._L))
Performs a mapping from a cylinder to a plane and back
6259907a4a966d76dd5f08cd
class ConfigReader(object): <NEW_LINE> <INDENT> def __init__(self, config_file="./OECluster.cfg"): <NEW_LINE> <INDENT> self._config_file = config_file <NEW_LINE> self._config_parser = cp.ConfigParser() <NEW_LINE> self._config_parser.read(config_file) <NEW_LINE> <DEDENT> def get_config_section(self, section): <NEW_LINE>...
This class holds information on devices in the network This class holds information about people and their contact information: first- and last name, the cell phone number and the email address.
6259907a283ffb24f3cf5288
class MultiplayerMenu(Menu): <NEW_LINE> <INDENT> def __init__(self, gui, surface): <NEW_LINE> <INDENT> super(MultiplayerMenu, self).__init__(gui, surface) <NEW_LINE> option_two_player = MenuOption("2 PLAYER", function=self.two_player) <NEW_LINE> width, height = option_two_player.get_size() <NEW_LINE> option_two_player....
The menu that allows selection of the amount of players in the game
6259907a5166f23b2e244dbf
class NovellBugzilla(_parent): <NEW_LINE> <INDENT> version = '0.3' <NEW_LINE> OBS_URL = 'https://api.opensuse.org' <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(NovellBugzilla, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def _login(self, user, password): <NEW_LINE> <INDENT> self._transport.auth_pa...
bugzilla.novell.com is a standard bugzilla 4.4 with some extensions. By default, it uses a proprietary AccessManager login system, but by using a special domain, you can force it to use HTTP Basic Auth instead. This class can also read credentials from ~/.oscrc if exists, so it does not have to be duplicated in /etc/b...
6259907aad47b63b2c5a9237
class PageHistoryView(PermissionRequiredMixin, PageTabsContentMixin, generic.DetailView): <NEW_LINE> <INDENT> model = Page <NEW_LINE> context_object_name = "page_instance" <NEW_LINE> template_name = "sveedocuments/board/page_history.html" <NEW_LINE> permission_required = "sveedocuments.change_page" <NEW_LINE> raise_exc...
*Page* history
6259907a627d3e7fe0e0886f
class HTTPConfiguration(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'method': {'key': 'method', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[HTTPHeader]'}, 'valid_status_codes': {'key': 'validStatusCodes', 'type': '[int]'}, } <NEW_LINE> def __init__( self, *, method: Optional[Union[st...
HTTP configuration of the connectivity check. :param method: HTTP method. Possible values include: "Get". :type method: str or ~azure.mgmt.network.v2018_02_01.models.HTTPMethod :param headers: List of HTTP headers. :type headers: list[~azure.mgmt.network.v2018_02_01.models.HTTPHeader] :param valid_status_codes: Valid ...
6259907a26068e7796d4e326
class Pagination(object): <NEW_LINE> <INDENT> def __init__(self, page, per_page, total_count): <NEW_LINE> <INDENT> self.page = page <NEW_LINE> self.per_page = per_page <NEW_LINE> self.total_count = total_count <NEW_LINE> self.max_page = self.total_count / self.per_page <NEW_LINE> <DEDENT> @property <NEW_LINE> def has_p...
http://flask.pocoo.org/snippets/44/
6259907aaad79263cf4301a1
class GVG_099: <NEW_LINE> <INDENT> play = Hit(RANDOM_ENEMY_MINION, 4)
Bomb Lobber
6259907ad268445f2663a852
class FreeLieAlgebraBases(Category_realization_of_parent): <NEW_LINE> <INDENT> r <NEW_LINE> def __init__(self, base): <NEW_LINE> <INDENT> Category_realization_of_parent.__init__(self, base) <NEW_LINE> <DEDENT> def _repr_(self): <NEW_LINE> <INDENT> return "Category of bases of %s" % self.base() <NEW_LINE> <DEDENT> def s...
The category of bases of a free Lie algebra.
6259907a91f36d47f2231b83
class Event(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._future = Future() <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<%s %s>' % ( self.__class__.__name__, 'set' if self.is_set() else 'clear') <NEW_LINE> <DEDENT> def is_set(self): <NEW_LINE> <INDENT> return self._f...
An event blocks coroutines until its internal flag is set to True. Similar to `threading.Event`.
6259907af548e778e596cf79
class DoneRead(object): <NEW_LINE> <INDENT> def doneRead(self, token, error, lost_size, data, eos): <NEW_LINE> <INDENT> pass
Call back interface for 'read' command.
6259907a3317a56b869bf23a
class DeferredJobContext(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self._on_success = [] <NEW_LINE> self._on_failure = [] <NEW_LINE> <DEDENT> def add_deferred_job(self, def_job): <NEW_LINE> <INDENT> self.add_on_success_job(def_job) <NEW_LINE> self.add_on_failure_job(def_job) ...
Generic deferred job context. It supports registering deferred actions to be called in case of * success * failure * always Each action should have a `run()` method, which will be called to execute the deferred action. Each action must be independent from other actions, and if one depends on other actions, this depen...
6259907a3346ee7daa338355
class JSONPSerializer(JSONSerializer): <NEW_LINE> <INDENT> _mime = 'application/javascript' <NEW_LINE> def __init__(self, jsonp='read', **kwargs): <NEW_LINE> <INDENT> super(JSONPSerializer, self).__init__(**kwargs) <NEW_LINE> self._prefix = jsonp <NEW_LINE> <DEDENT> def __call__(self, results): <NEW_LINE> <INDENT> retu...
Just adds prefix
6259907a23849d37ff852aa1
class HttpBodyConsumer(Protocol): <NEW_LINE> <INDENT> def __init__(self, length, finished): <NEW_LINE> <INDENT> self.remaining = length <NEW_LINE> self.finished = finished <NEW_LINE> self.body = '' <NEW_LINE> <DEDENT> def dataReceived(self, data): <NEW_LINE> <INDENT> if self.remaining: <NEW_LINE> <INDENT> self.body += ...
asynchronous http response consumer.
6259907a4f6381625f19a1a1
class _MouseEvent(wx.PyCommandEvent): <NEW_LINE> <INDENT> def __init__(self, EventType, NativeEvent, WinID, Coords = None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.SetEventType( EventType ) <NEW_LINE> self._NativeEvent = NativeEvent <NEW_LINE> self.Coords = Coords <NEW_LINE> <DEDENT> def GetCoords(self):...
This event class takes a regular wxWindows mouse event as a parameter, and wraps it so that there is access to all the original methods. This is similar to subclassing, but you can't subclass a wxWindows event The goal is to be able to it just like a regular mouse event. It adds the method: GetCoords() , which retur...
6259907a4c3428357761bca2
class BufferedReader: <NEW_LINE> <INDENT> def __init__(self, path, max_in_mem=256 * 1024, chunk_size=32 * 1024, mode="r"): <NEW_LINE> <INDENT> if "a" in mode or "w" in mode: <NEW_LINE> <INDENT> raise InvalidFileMode("Cannot open file in write or append mode") <NEW_LINE> <DEDENT> self.__path = path <NEW_LINE> self.__fil...
This object allows iterating through the contents of a file keeping X configurable bytes in memory which can be used to, for example, do regex search/matching on more than a single line. So, **an imaginary, non accurate**, example could be: 1 - Initiate the BufferedReader filling it to max_in_men: br = [1...
6259907a56ac1b37e63039d7
class IPaymentFailedEvent(IPaymentEvent): <NEW_LINE> <INDENT> pass
This event gets triggered when payment failed.
6259907abe8e80087fbc0a7f
class Seedable(Describable): <NEW_LINE> <INDENT> __undescribed__ = {'rnd'} <NEW_LINE> def __init__(self, seed=None): <NEW_LINE> <INDENT> self.rnd = RandomState(seed) <NEW_LINE> <DEDENT> def __init_from_description__(self, description): <NEW_LINE> <INDENT> Seedable.__init__(self)
Base class for all objects that use randomness. It offers a self.rnd which is a RandomState. Dev-note: It inherits from Describable in order to implement __init_from_description__ and to make rnd undescribed.
6259907a5166f23b2e244dc1
class UserAfterLoginSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> token = serializers.SerializerMethodField() <NEW_LINE> def get_token(self, value): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return f'Token {Token.objects.get(user=value).key}' <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> return '' <...
Must be read only
6259907aad47b63b2c5a9239
class Discovery(Pluggable): <NEW_LINE> <INDENT> config_subdirectory = "discovery" <NEW_LINE> entry_point = "lighthouse.discovery" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.shutdown = threading.Event() <NEW_LINE> <DEDENT> def connect(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> ...
Base class for discovery method plugins. Unlike the `Balancer` base class for load balancer plugins, this discovery method plugin has several methods that subclasses are expected to define. Subclasses are used for both the writer process *and* the reporter process so each subclass needs to be able to report on indivi...
6259907a2c8b7c6e89bd51d4
class ResetAction(Action): <NEW_LINE> <INDENT> name = "reset" <NEW_LINE> def __init__(self, app): <NEW_LINE> <INDENT> super(ResetAction, self).__init__(app) <NEW_LINE> <DEDENT> def anonymize(self, value): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def discover(self, value): <NEW_LINE> <INDENT> pass
Action plugin that reset a field to None
6259907aaad79263cf4301a3
class PhysicalObject: <NEW_LINE> <INDENT> def __init__(self, available_copies, reserved_copies, location): <NEW_LINE> <INDENT> self.__available_copies = available_copies <NEW_LINE> self.__reserved_copies = reserved_copies <NEW_LINE> self.__location = location <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> r...
Class used as superclass for items only physically available in a library. Currently for the class PhysicalBook
6259907a8a349b6b43687c45
class DeleteObjectMixin: <NEW_LINE> <INDENT> @coroutine <NEW_LINE> def register_viewset(self): <NEW_LINE> <INDENT> yield from self.app_session.register( self.delete_object, self.get_uri('delete')) <NEW_LINE> self.logger.debug( 'Remote procedure to delete {} registered.'.format(self.name)) <NEW_LINE> if hasattr(super(),...
Interactions to delete an existing object in the database.
6259907ad268445f2663a853
class Update(models.Model): <NEW_LINE> <INDENT> event = models.ForeignKey( Event, on_delete=models.CASCADE, limit_choices_to={'featured': True}, db_index=True ) <NEW_LINE> title = models.CharField("Update title", max_length=200) <NEW_LINE> author = models.ForeignKey( UserModel, on_delete=models.CASCADE, limit_choices_t...
Allows updating the event in near real-time, with blog-style content updates.
6259907a7b180e01f3e49d5a
class DiscussionAPIUtilsTestCase(ModuleStoreTestCase): <NEW_LINE> <INDENT> CREATE_USER = False <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(DiscussionAPIUtilsTestCase, self).setUp() <NEW_LINE> self.course = CourseFactory.create() <NEW_LINE> self.course.discussion_blackouts = [datetime.now(UTC) - timedelta(days...
Base test-case class for utils for Discussion REST API.
6259907a91f36d47f2231b84
class AddNoExplosionOcclusionProperty(bpy.types.Operator): <NEW_LINE> <INDENT> bl_label = "No Explosion Occlusion" <NEW_LINE> bl_idname = "object.add_no_explosion_occlusion_property" <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> message = "Adding No Explosion Occlusion Property" <NEW_LINE> self.report({'IN...
Click to add a no explosion occlusion property.
6259907aa05bb46b3848be1e
class GridNAS_Model_CIFS(DDNModelPlugin): <NEW_LINE> <INDENT> relname = 'cifss' <NEW_LINE> modname = 'ZenPacks.DDN.GridScalerv2.CIFS' <NEW_LINE> def prepTask(self, device, log): <NEW_LINE> <INDENT> self.device = device <NEW_LINE> log.debug("%s: preparing for CIFS info", device.id) <NEW_LINE> cmdinfo = [{ 'cmd': 'nasctl...
Models GridNas CIFS
6259907a7cff6e4e811b742a
class Refresh(BaseCommand): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> options = self.options <NEW_LINE> ref = options["<ref>"] <NEW_LINE> with PaperDatabase(self.database_path) as paper_database: <NEW_LINE> <INDENT> processed_ref = process_and_validate_ref(ref, paper_database) <NEW_LINE> paper_database.ref...
Refreshes information about a paper from the arxiv. Usefull if new versions were released with updated information.
6259907a92d797404e389851
class UpcommingMeetingWithTimeline: <NEW_LINE> <INDENT> def __init__(self, meeting: Meeting, height: int): <NEW_LINE> <INDENT> medium_font = pygame.font.Font("assets/FreeSansBold.ttf", 15) <NEW_LINE> self._time_line = TimeLine((0, 30), meeting.get_start_time_datetime(), medium_font, (20, 20, 20)) <NEW_LINE> self._next_...
Composes the texts to be displayed
6259907a01c39578d7f1442a
class SplitComponentState(SplitComponentStateRefMut): <NEW_LINE> <INDENT> def drop(self): <NEW_LINE> <INDENT> if self.ptr != None: <NEW_LINE> <INDENT> self.ptr = None <NEW_LINE> <DEDENT> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> self.drop() <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> return self ...
The state object that describes a single segment's information to visualize.
6259907a4c3428357761bca4