code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class DefuseCommand(default_cmds.MuxCommand): <NEW_LINE> <INDENT> key = "+defuse" <NEW_LINE> aliases = [] <NEW_LINE> locks = "cmd:all()" <NEW_LINE> help_category = "General" <NEW_LINE> def func(self): <NEW_LINE> <INDENT> pass
Deactivates a currently activated bomb.
62598ef1442bda511e95ac5e
class UserMessage(models.Model): <NEW_LINE> <INDENT> user = models.IntegerField(default=0,verbose_name="用户s") <NEW_LINE> message = models.CharField(max_length=500,verbose_name="消息内容") <NEW_LINE> has_read = models.BooleanField(default=False, verbose_name="是否已读") <NEW_LINE> add_time = models.DateTimeField(default=datetim...
user字段,默认0代表消息是发给所有用户,而不是某个单独的用户; 可以通过user.id发给特定用户消息
62598ef167a9b606de5447ca
class Scheduler: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def valid_cookie(cycle=CYCLE): <NEW_LINE> <INDENT> while True: <NEW_LINE> <INDENT> print('Cookies检测进程开始执行') <NEW_LINE> try: <NEW_LINE> <INDENT> for website, cls in TESTER_MAP.items(): <NEW_LINE> <INDENT> tester = eval(cls + '(website="' + website + '")') <NE...
调度类
62598ef163d6d428bbee0fca
class SaveDb(): <NEW_LINE> <INDENT> def __init__(self, data, key, db='test_shelve-db'): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.key = key <NEW_LINE> self.db = OpenDbShelve(d_b=db).open_shelve() <NEW_LINE> <DEDENT> def save_db(self): <NEW_LINE> <INDENT> self.db[str(self.key)] = self.data <NEW_LINE> self.db....
This class save database in shevle file.
62598ef11b99ca400228e90c
@enum.unique <NEW_LINE> class Step(enum.IntEnum): <NEW_LINE> <INDENT> PULL = 1 <NEW_LINE> OVERLAY = 2 <NEW_LINE> BUILD = 3 <NEW_LINE> STAGE = 4 <NEW_LINE> PRIME = 5 <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return f"{self.__class__.__name__}.{self.name}" <NEW_LINE> <DEDENT> def previous_steps(self) -> List["St...
All the steps needed to fully process a part. Steps correspond to the tasks that must be fulfilled in order to process each of the parts in the project specification. In the ``PULL`` step sources for a part are retrieved and unpacked. The ``OVERLAY`` step is used to change the underlying filesystem. In the ``BUILD`` s...
62598ef11f5feb6acb16144f
@dataclass <NEW_LINE> class TemplateExtensionTypeError(Exception): <NEW_LINE> <INDENT> extension: str <NEW_LINE> type: str
The template extension does not have the expected type.
62598ef14a966d76dd5ed6d7
@register_p1(r"0-0:96\.14\.0") <NEW_LINE> class P1EnergyTariff(P1OctetString): <NEW_LINE> <INDENT> pass
Represent the current tariff
62598ef17d847024c075abcb
class Volunteer(models.Model): <NEW_LINE> <INDENT> SEX_CHOICES = ( ('M', 'Male'), ('F', 'Female'), ) <NEW_LINE> first_name = models.CharField(max_length=128) <NEW_LINE> middle_name = models.CharField(null=True, blank=True, max_length=128) <NEW_LINE> last_name = models.CharField(max_length=128, help_text="Volunteer'...
A volunteer is any person willing to offer his/her service to the center, and spend some time at the center.
62598ef132920d7e50bc4828
class SSHFPRecord(DNSRecord): <NEW_LINE> <INDENT> def __init__(self, zone, fqdn, *args, **kwargs): <NEW_LINE> <INDENT> if 'create' in kwargs: <NEW_LINE> <INDENT> super(SSHFPRecord, self).__init__(zone, fqdn, kwargs['create']) <NEW_LINE> del kwargs['create'] <NEW_LINE> self._build(kwargs) <NEW_LINE> self._record_type = ...
"SSHFP Record
62598ef1ff9c53063f518e5c
class Rectangle(BaseGeometry): <NEW_LINE> <INDENT> def __init__(self, width, height): <NEW_LINE> <INDENT> super().integer_validator("width", width) <NEW_LINE> self.__width = width <NEW_LINE> super().integer_validator("height", height) <NEW_LINE> self.__height = height <NEW_LINE> <DEDENT> def area(self): <NEW_LINE> <IND...
Represent a rectangle using BaseGeometry.
62598ef185dfad0860cbee65
@dataclass <NEW_LINE> class EarlyStoppingCallback(TrackerCallback): <NEW_LINE> <INDENT> def __init__(self, learn:Learner, monitor:str='val_loss', mode:str='auto', min_delta:int=0, patience:int=0): <NEW_LINE> <INDENT> super().__init__(learn, monitor=monitor, mode=mode) <NEW_LINE> self.min_delta,self.patience = min_delta...
A `TrackerCallback` that terminates training when monitored quantity stops improving.
62598ef1adb09d7d5dc08dc5
class HostingEnv(object): <NEW_LINE> <INDENT> def __init__(self, xml_text): <NEW_LINE> <INDENT> if xml_text is None: <NEW_LINE> <INDENT> raise ValueError("HostingEnvironmentConfig.xml is None") <NEW_LINE> <DEDENT> logger.verbose("Load HostingEnvironmentConfig.xml") <NEW_LINE> self.vm_name = None <NEW_LINE> self.role_na...
parse Hosting enviromnet config and store in HostingEnvironmentConfig.xml
62598ef157b8e32f52507502
class Command(BaseCommand): <NEW_LINE> <INDENT> help = dedent(__doc__) <NEW_LINE> def add_arguments(self, parser): <NEW_LINE> <INDENT> parser.add_argument('--all', action='store_true', help='reindex all course teams (do not specify any course teams)') <NEW_LINE> parser.add_argument('course_team_ids', nargs='*', metavar...
Reindex course_teams (single, multiple or all available).
62598ef132920d7e50bc4829
class BCNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self, v_dim, q_dim, h_dim, h_out, act='ReLU', dropout=[.2,.5], k=3): <NEW_LINE> <INDENT> super(BCNet, self).__init__() <NEW_LINE> self.c = 32 <NEW_LINE> self.k = k <NEW_LINE> self.v_dim = v_dim; self.q_dim = q_dim <NEW_LINE> self.h_dim = h_dim; self.h_out = h_out...
Simple class for non-linear bilinear connect network
62598ef176e4537e8c3eddb3
class SearchZigZag(Searching): <NEW_LINE> <INDENT> TIMEOUT = core.declareEventType('TIMEOUT') <NEW_LINE> @staticmethod <NEW_LINE> def transitions(): <NEW_LINE> <INDENT> trans = Searching.transitions() <NEW_LINE> trans.update({ SearchZigZag.TIMEOUT : SearchMap }) <NEW_LINE> return trans <NEW_LINE> <DEDENT> @staticmethod...
Searches in a zig zag pattern with no regard to the map
62598ef1009cb60464cffd4c
class UnramifiedExtensionRingCappedAbsolute(UnramifiedExtensionGeneric, pAdicCappedAbsoluteRingGeneric): <NEW_LINE> <INDENT> def __init__(self, prepoly, poly, prec, halt, print_mode, shift_seed, names): <NEW_LINE> <INDENT> ntl_poly = ntl_ZZ_pX([a.lift() for a in poly.list()], poly.base_ring().prime()**prec) <NEW_LINE> ...
TESTS:: sage: R.<a> = ZqCA(27,10000); R == loads(dumps(R)) True
62598ef1498bea3a75a56330
class StudentScoreDetailViewSet(mixins.CreateModelMixin, mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.UpdateModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> queryset = StudentScoreDetail.objects.all() <NEW_LINE> serializer_class = StudentScoreDetailSerializer <NEW_LINE> def get_queryset(self): <NEW...
成绩单寄送地址视图
62598ef1b7558d5895461e44
class CommonIntegrationAction(object): <NEW_LINE> <INDENT> swagger_types = { 'user': 'str', 'note': 'str', 'alias': 'str' } <NEW_LINE> attribute_map = { 'user': 'user', 'note': 'note', 'alias': 'alias' } <NEW_LINE> def __init__(self, user=None, note=None, alias=None): <NEW_LINE> <INDENT> self._user = None <NEW_LINE> se...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ef1e1aae11d1e7cdc3f
class Idle(State): <NEW_LINE> <INDENT> def __init__(self, enemy, player): <NEW_LINE> <INDENT> State.__init__(self, "idle") <NEW_LINE> self.enemy = enemy <NEW_LINE> self.player = player <NEW_LINE> <DEDENT> def do_actions(self, tick): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def check_conditions(self): <NEW_LINE> <IN...
The player is too far away and we want to stay in a low memory usage state
62598ef12c8b7c6e89bd1fbf
class UIFetchRequest(extension.Extension): <NEW_LINE> <INDENT> ns_alias = 'ui' <NEW_LINE> ns_uri = 'http://specs.openid.net/extensions/ui/1.0' <NEW_LINE> def __init__(self, mode=None, icon=False, x_has_session=False): <NEW_LINE> <INDENT> super(UIFetchRequest, self).__init__() <NEW_LINE> self._args = {} <NEW_LINE> mode ...
User Interface extension for OpenID.
62598ef1cc0a2c1114479803
class SqlServer: <NEW_LINE> <INDENT> def __init__(self, database): <NEW_LINE> <INDENT> self.data_base = database <NEW_LINE> self.query_string = None <NEW_LINE> self.conn = None <NEW_LINE> self.cursor = None <NEW_LINE> <DEDENT> def set_query_string(self, query_string): <NEW_LINE> <INDENT> self.query_string = query_strin...
Make sure you're authenticated to PayScale's firewall or else this will fail.
62598ef156b00c62f0fb10d1
class Gallery(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=200) <NEW_LINE> identifier = models.CharField(max_length=200, unique=True) <NEW_LINE> start_date = models.DateField(null=True, blank=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta...
Represents a collection of Photos.
62598ef1be7bc26dc9251261
class Classroom(models.Model): <NEW_LINE> <INDENT> project = models.OneToOneField(Project, related_name="classroom") <NEW_LINE> session_id = models.CharField(max_length=100, null=True) <NEW_LINE> created = models.DateTimeField(auto_now_add=True) <NEW_LINE> modified = models.DateTimeField(auto_now=True) <NEW_LINE> def _...
Chatrooms for projects. The session_id field stores the session id generated by the TokBox SDK.
62598ef126068e7796d4b15a
class LoggingTensorHook(tf.estimator.SessionRunHook): <NEW_LINE> <INDENT> def __init__(self, collection, every_n_iter=None, every_n_secs=None, batch=False, first_k=None): <NEW_LINE> <INDENT> self._collection = collection <NEW_LINE> self._batch = batch <NEW_LINE> self._first_k = first_k <NEW_LINE> self._timer = tf.estim...
Hook to print batch of tensors.
62598ef166673b3332c2eba8
class uEyeExposureInfo(object): <NEW_LINE> <INDENT> def __init__(self, cam): <NEW_LINE> <INDENT> self.exposureRange = (ueye.double * 3) (0,0,0) <NEW_LINE> uEyeCheck(ueye.is_Exposure( cam, ueye.IS_EXPOSURE_CMD_GET_EXPOSURE_RANGE, self.exposureRange, sizeof(self.exposureRange) ), msg='Get exposure range') <NEW_LINE> self...
Container for all things fun about the uEye exposure settings.
62598ef1796e427e5384cf96
class AttrVI_ATTR_PXI_STAR_TRIG_BUS(RangeAttribute): <NEW_LINE> <INDENT> resources = [(constants.InterfaceType.pxi, 'INSTR')] <NEW_LINE> py_name = '' <NEW_LINE> visa_name = 'VI_ATTR_PXI_STAR_TRIG_BUS' <NEW_LINE> visa_type = 'ViInt16' <NEW_LINE> default = NotAvailable <NEW_LINE> read, write, local = True, False, False <...
VI_ATTR_PXI_STAR_TRIG_BUS specifies the star trigger bus number of this device.
62598ef1d486a94d0ba2a7c5
@base.vectorize <NEW_LINE> class divint(base.Instruction): <NEW_LINE> <INDENT> __slots__ = [] <NEW_LINE> arg_format = ['rw', 'r', 'r'] <NEW_LINE> code = base.opcodes['DIVINT']
DIVINT i j k Division of regint registers r_i=r_j/r_k. This instruction is vectorizable
62598ef156ac1b37e63009ea
class FakeQueue(BaseQueue): <NEW_LINE> <INDENT> def __init__(self, options): <NEW_LINE> <INDENT> BaseQueue.__init__(self, options) <NEW_LINE> self._jobs = {} <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> @property <NEW_LINE> def jobs(self): <NEW_LINE> <INDENT> return self._jobs <NEW_LINE> <DEDENT> def reset(self): <NEW_L...
A queue class that keeps track of enqueued jobs, for usage in unit tests.
62598ef18e7ae83300ee788d
class ValidatorTestMixin(object): <NEW_LINE> <INDENT> @contextmanager <NEW_LINE> def assert_sysexit(self, error): <NEW_LINE> <INDENT> with mock.patch('sys.exit') as mock_exit: <NEW_LINE> <INDENT> yield <NEW_LINE> mock_exit.assert_called_once_with(error)
Add methods for testing functions producing a system exit.
62598ef132920d7e50bc482a
class Database(object): <NEW_LINE> <INDENT> def __init__(self, app=None): <NEW_LINE> <INDENT> self.engine = None <NEW_LINE> self.session = None <NEW_LINE> self.Base = self.make_declarative_base() <NEW_LINE> if app: <NEW_LINE> <INDENT> self.init_app(app) <NEW_LINE> <DEDENT> <DEDENT> def make_declarative_base(self): <NEW...
A class that serves as the accesspoint for database operations using an SQLAlchemy scoped_session. It also sets up an obscure id function in the database.
62598ef199fddb7c1ca62203
class Queue: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.queue = [] <NEW_LINE> <DEDENT> def enqueue(self, item): <NEW_LINE> <INDENT> self.queue.append(item) <NEW_LINE> <DEDENT> def dequeue(self): <NEW_LINE> <INDENT> return self.queue.pop(0) <NEW_LINE> <DEDENT> def isEmpty(self): <NEW_LINE> <INDENT>...
Queue that uses the back of the list as the rear of the queue. Enqueue performs at speed O(1) Dequeue performs at speed O(n)
62598ef13317a56b869bd965
class Content(models.Model): <NEW_LINE> <INDENT> uuid = models.UUIDField(primary_key=True, default=uuid4) <NEW_LINE> title = models.TextField(blank=True) <NEW_LINE> body = models.TextField(blank=True) <NEW_LINE> created = models.DateTimeField(auto_now_add=True) <NEW_LINE> start_date = models.DateTimeField(blank=True, n...
A basic content piece
62598ef17b25080760ed5c9a
class CastToInteger(Func): <NEW_LINE> <INDENT> function = 'CAST' <NEW_LINE> template = '%(function)s(%(expressions)s as %(integer_type)s)' <NEW_LINE> def __init__(self, *expressions, **extra): <NEW_LINE> <INDENT> super().__init__(*expressions, **extra) <NEW_LINE> self.extra['integer_type'] = 'INTEGER' <NEW_LINE> <DEDEN...
A helper class for casting values to signed integer in database.
62598ef1dc8b845886d51dc3
class OVSQuantumPluginDriverBase(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractmethod <NEW_LINE> def create_network(self, net): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def delete_network(self, net): <NEW_LINE> <INDENT> pass
Base class for OVS quantum plugin driver
62598ef15fc7496912d47671
class Locationunit(FolioApi): <NEW_LINE> <INDENT> def get_institutions(self, **kwargs): <NEW_LINE> <INDENT> return self.call("GET", "/location-units/institutions", query=kwargs) <NEW_LINE> <DEDENT> def set_institution(self, institution: dict): <NEW_LINE> <INDENT> return self.call("POST", "/location-units/institutions",...
Location units This documents the API calls that can be made to query and manage location units like institutions, campuses, and libraries
62598ef12c8b7c6e89bd1fc1
class Address(BaseAddress): <NEW_LINE> <INDENT> values_before_postal = ("firstname+", "lastname+", "company_name") <NEW_LINE> values_after_postal = ("phone", "email") <NEW_LINE> company_name = models.CharField(_("Company name"), max_length=50, blank=True, null=True) <NEW_LINE> phone = models.CharField(_("Phone"), blank...
The default address of LFS which is used as invoice and shipping address. This can be replaced by an own model.
62598ef1e1aae11d1e7cdc40
class Organization(BaseModel): <NEW_LINE> <INDENT> class Meta(BaseModel.Meta): <NEW_LINE> <INDENT> ordering = ('name',) <NEW_LINE> unique_together = tuple(('name_%s' % lang[0], 'monitoring') for lang in settings.LANGUAGES) <NEW_LINE> verbose_name = pgettext_lazy(u'change organization in admin', u'Organization') <NEW_LI...
Fields: name -- Unique organization name url -- Internet site URL email -- list of emails phone -- list of phones
62598ef121bff66bcd721455
class FacetedFeed(FolderFeed): <NEW_LINE> <INDENT> def _brains(self): <NEW_LINE> <INDENT> request = getattr(self.context, 'REQUEST', getattr(self.context, 'request', None)) <NEW_LINE> handler = component.getMultiAdapter((self.context, request), name=u'faceted_query') <NEW_LINE> return handler.query(ajax=False)
Feed
62598ef1a05bb46b38489071
class EnergyTransductor(Transductor): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return self.description
Class responsible to represent a Energy Transductor which will collect energy measurements. Example of use: >>> from django.utils import timezone >>> t_model = TransductorModel(name="Test Name", transport_protocol="UDP", serial_protocol="Modbus RTU", register_addresses=[[68, 0], [70, 1]]) >>> EnergyTransductor(model=...
62598ef156b00c62f0fb10d3
class ArgoTable(OceanObsTBase): <NEW_LINE> <INDENT> __tablename__='argo2' <NEW_LINE> id=Column(Integer,primary_key=True) <NEW_LINE> wmoid=Column(String) <NEW_LINE> uri=Column(String, index=True,unique=True) <NEW_LINE> datacenter=Column(String) <NEW_LINE> lastupdate=Column(TIMESTAMP) <NEW_LINE> tstart=Column(TIMESTAMP) ...
Defines the Argo PostgreSQL table
62598ef1dd821e528d6d773e
class Stack(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.top = None <NEW_LINE> <DEDENT> def push(self, data): <NEW_LINE> <INDENT> self.top = Item(data, self.top) <NEW_LINE> <DEDENT> def pop(self): <NEW_LINE> <INDENT> prevTop = self.top <NEW_LINE> try: <NEW_LINE> <INDENT> self.top = self.top...
Implements a stack data structure
62598ef126068e7796d4b15c
class DataIsNotDictException(Exception): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> Exception.__init__(self, *args, **kwargs)
Indicates that a Dictionary was not passed as Data
62598ef1283ffb24f3cf20b1
class _AttributeBase(AutoUnload): <NEW_LINE> <INDENT> def __init__(self, attribute): <NEW_LINE> <INDENT> self.attribute = attribute <NEW_LINE> self.callback = None <NEW_LINE> <DEDENT> def __call__(self, callback): <NEW_LINE> <INDENT> self.callback = callback <NEW_LINE> self.hook_instance.register_callback(self.attribut...
Decorator class used to register callbacks to an attribute.
62598ef192d797404e387f7b
class ApplicationsModelTest(BaseTestCase): <NEW_LINE> <INDENT> def test_saving_and_retrieving_applications(self): <NEW_LINE> <INDENT> saved_application = Applications.objects.all() <NEW_LINE> self.assertEqual(saved_application.count(), 1) <NEW_LINE> self.assertEqual(saved_application[0].position, self.position_1)
test out the applications model
62598ef18a43f66fc4bf0974
class TermHandler(logging.Handler): <NEW_LINE> <INDENT> def __init__(self, msg='', *args, **kwargs): <NEW_LINE> <INDENT> super(TermHandler, self).__init__(*args, **kwargs) <NEW_LINE> self.stop = threading.Event() <NEW_LINE> self.spinner = context.thread(target=self.spin, args=[term.output('')]) <NEW_LINE> self.spinn...
Log handler for a progress aka 'waitfor' log message, when using terminal mode. Creates a thread to animate the spinner in :func:`spin`, and updates the message following it whenever a message is emitted.
62598ef1442bda511e95ac62
class Installation(github.GithubObject.NonCompletableGithubObject): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return self.get__repr__({"id": self._id.value}) <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self): <NEW_LINE> <INDENT> return self._id <NEW_LINE> <DEDENT> def get_repos(self): <NEW_LINE> <...
This class represents Installations. The reference can be found here https://developer.github.com/v3/apps/installations/
62598ef18e7ae83300ee788f
class Solution: <NEW_LINE> <INDENT> def permute(self, nums): <NEW_LINE> <INDENT> if nums is None: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> result = [] <NEW_LINE> self.dfs(nums, [], dict.fromkeys(range(len(nums)), 0), result) <NEW_LINE> return result <NEW_LINE> <DEDENT> def dfs(self, nums, permutation, visited,...
@param nums: A list of Integers. @return: A list of permutations.
62598ef17d847024c075abce
class SessionAuthentication(Authentication): <NEW_LINE> <INDENT> def is_authenticated(self, request, **kwargs): <NEW_LINE> <INDENT> if request.method in ('GET', 'HEAD', 'OPTIONS', 'TRACE'): <NEW_LINE> <INDENT> return request.user.is_authenticated() <NEW_LINE> <DEDENT> if getattr(request, '_dont_enforce_csrf_checks', Fa...
An authentication mechanism that piggy-backs on Django sessions. This is useful when the API is talking to Javascript on the same site. Relies on the user being logged in through the standard Django login setup. Requires a valid CSRF token.
62598ef132920d7e50bc482c
class PhotoAboutRetrieveView(generics.RetrieveAPIView): <NEW_LINE> <INDENT> queryset = Photo.objects.filter(is_about_preview=True) <NEW_LINE> serializer_class = PhotoSerializer
Photo list view class
62598ef1fff4ab517ebcbfd8
class IPConfiguration(SubResource): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, 'subnet': {'key': 'properties.subnet...
IPConfiguration. :param id: Resource ID. :type id: str :param private_ip_address: The private IP address of the IP configuration. :type private_ip_address: str :param private_ip_allocation_method: The private IP allocation method. Possible values are 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynami...
62598ef1f548e778e5969d8c
class PoliciesView(ResourceView): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> model = Policy <NEW_LINE> super().__init__(model)
策略的增、删、改、查
62598ef13317a56b869bd966
class SmsCodeViewset(mixins.CreateModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> serializer_class = SmsSerializer <NEW_LINE> def generate_code(self): <NEW_LINE> <INDENT> seeds = '1234567890' <NEW_LINE> random_str = [] <NEW_LINE> for i in range(4): <NEW_LINE> <INDENT> random_str.append(random.choice(seeds)) <...
云片网发送短信验证码接口
62598ef176e4537e8c3eddb7
class Weapon_HeavyArtillery(Weapon_ArtilleryGen_Base, Weapon_SpendAmmo_Base): <NEW_LINE> <INDENT> def __init__(self, power1=False, power2=False, ammo=1): <NEW_LINE> <INDENT> self.ammo = ammo <NEW_LINE> self.damage = 2 <NEW_LINE> if power2: <NEW_LINE> <INDENT> self.damage += 1 <NEW_LINE> <DEDENT> <DEDENT> def shoot(self...
Powerful attack that damages a large area.
62598ef1009cb60464cffd50
class MainPage(webapp2.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> template = JINJA2_ENVIRONMENT.get_template('index.html') <NEW_LINE> template_values = {} <NEW_LINE> self.response.out.write(template.render(template_values))
Start up function that loads the html template.
62598ef12ae34c7f260a98e6
class JFUResponse( HttpResponse ): <NEW_LINE> <INDENT> def __init__( self, request, data = True, *args, **kwargs ): <NEW_LINE> <INDENT> data = simplejson.dumps( data ) <NEW_LINE> j = "application/json" <NEW_LINE> mime = j if j in request.META['HTTP_ACCEPT_ENCODING'] else 'text/plain' <NEW_LINE> super( JFUResponse, s...
Returns an HTTP response with its data encoded in JSON format. Content-Type negotation is handled transparently for uploads using the Iframe Transport module through inspection of the original request object.
62598ef1d58c6744b42db6b6
class ProcessorResult(object): <NEW_LINE> <INDENT> def __init__(self, result=None, follows=(), messages=(), logs=(), exception=None, extinfo={}, save=None): <NEW_LINE> <INDENT> self.result = result <NEW_LINE> self.follows = follows <NEW_LINE> self.messages = messages <NEW_LINE> self.logs = logs <NEW_LINE> self.exceptio...
The result and logs producted by a callback
62598ef1a05bb46b38489073
class CoreHelper(WMStepHelper): <NEW_LINE> <INDENT> def stepName(self): <NEW_LINE> <INDENT> return nodeName(self.data) <NEW_LINE> <DEDENT> def addEnvironmentVariable(self, varname, setting): <NEW_LINE> <INDENT> setattr(self.data.environment.variables, varname, setting) <NEW_LINE> return <NEW_LINE> <DEDENT> def addEnvir...
_CoreHelper_ Helper API for core settings
62598ef1fff4ab517ebcbfd9
class PaymentProcessor(BasePaymentProcessor): <NEW_LINE> <INDENT> def __init__(self, settings): <NEW_LINE> <INDENT> super(PaymentProcessor, self).__init__('autosuccess', settings) <NEW_LINE> <DEDENT> def capture_payment(self, testing=False, order=None, amount=NOTSET): <NEW_LINE> <INDENT> if not order: <NEW_LINE> <INDEN...
Autosuccess Payment Module
62598ef13d592f4c4edb96ee
class SearchDict(dict): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(SearchDict, self).__init__() <NEW_LINE> self.clear() <NEW_LINE> <DEDENT> def search(self, string, max_length=10): <NEW_LINE> <INDENT> final_list = [] <NEW_LINE> try: <NEW_LINE> <INDENT> str_list = self[string[:max_length]] <NEW_LI...
SearchDict is a dictionary whose keys are sub-strings of strings that have been added to the dictionary. The sub-strings are case-sensitive. The values are a list of retVals associated with the original string.
62598ef156ac1b37e63009ed
class energy_filter(): <NEW_LINE> <INDENT> def __init__(self, minEnergy=-1, maxEnergy=9999): <NEW_LINE> <INDENT> self.minEnergy = minEnergy <NEW_LINE> self.maxEnergy = maxEnergy <NEW_LINE> self.featuresUsed = ['energy'] <NEW_LINE> <DEDENT> def get_passing_events(self, event_data): <NEW_LINE> <INDENT> return (event_data...
filters input event_data based on energy range modifies input event_data in place
62598ef1be7bc26dc9251263
class UserAddress(db.Model): <NEW_LINE> <INDENT> username = db.StringListProperty()
model 的 key_name 由tel的密文构成
62598ef1cc0a2c1114479808
class StatusField(object): <NEW_LINE> <INDENT> FIELD_TEXT = 0x001 <NEW_LINE> FIELD_HTML = 0x002 <NEW_LINE> def __init__(self, key, label, value, flags=0): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.label = label <NEW_LINE> self.value = value <NEW_LINE> self.flags = flags
Field of an account status.
62598ef1a8370b77170eebe5
class ProcessingInstructionNP(NodeParser): <NEW_LINE> <INDENT> def make_node(self): <NEW_LINE> <INDENT> parser = self.parser <NEW_LINE> caret = parser.caret <NEW_LINE> if parser.text[caret:caret+2] != '<?': <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> pos = parser.copy_pos() <NEW_LINE> match = RE.search(parser.t...
Parses content enclosed within `<?PITarget` and `?>`. Note that the target of the `ProcessingInstruction` object that it returns has `?` preappended to it.
62598ef14e4d562566370c16
class SecsS12F01(SecsStreamFunction): <NEW_LINE> <INDENT> _stream = 12 <NEW_LINE> _function = 1 <NEW_LINE> _data_format = [ MID, IDTYP, FNLOC, FFROT, ORLOC, RPSEL, [REFP], DUTMS, XDIES, YDIES, ROWCT, COLCT, NULBC, PRDCT, PRAXI ] <NEW_LINE> _to_host = True <NEW_LINE> _to_equipment = False <NEW_LINE> _has_reply = True <N...
map setup data - send. **Data Items** - :class:`MID <secsgem.secs.data_items.MID>` - :class:`IDTYP <secsgem.secs.data_items.IDTYP>` - :class:`FNLOC <secsgem.secs.data_items.FNLOC>` - :class:`FFROT <secsgem.secs.data_items.FFROT>` - :class:`ORLOC <secsgem.secs.data_items.ORLOC>` - :class:`RPSEL <secsgem.secs.data_item...
62598ef13539df3088ecaab4
class BernoulliAdjacencyDistribution(AdjacencyDistribution, GibbsSampling): <NEW_LINE> <INDENT> def __init__(self, N, p=None, P=None, p_self=None): <NEW_LINE> <INDENT> super(BernoulliAdjacencyDistribution, self).__init__(N) <NEW_LINE> if P is not None: <NEW_LINE> <INDENT> assert P.shape == (N, N) <NEW_LINE> assert np.a...
Bernoulli edge model with fixed probability
62598ef1a219f33f346c5035
class TrackableWeightHandler(object): <NEW_LINE> <INDENT> def __init__(self, trackable): <NEW_LINE> <INDENT> if not isinstance(trackable, tracking.Trackable): <NEW_LINE> <INDENT> raise ValueError('%s is not a Trackable object.' % (trackable,)) <NEW_LINE> <DEDENT> self._trackable = trackable <NEW_LINE> saveables = track...
Keras wrapper for handling tracking.Trackable object saving and restoring. This class handles Trackables in both V1 and V2 modes, ensuring that they can be saved and restored with the correct data and without adding additional ops on every save. Attributes: trackable: The trackable to wrap. num_tensors: The numbe...
62598ef11b99ca400228e90f
class SVMClassifier: <NEW_LINE> <INDENT> def __init__( self, legalLabels): <NEW_LINE> <INDENT> self.legalLabels = legalLabels <NEW_LINE> self.type = "svm" <NEW_LINE> self.clf = LinearSVC(multi_class='ovr') <NEW_LINE> <DEDENT> def train( self, trainingData, trainingLabels, validationData, validationLabels ): <NEW_LINE> ...
svm classifier
62598ef17d847024c075abd1
class Tracker(AWSObject): <NEW_LINE> <INDENT> resource_type = "AWS::Location::Tracker" <NEW_LINE> props: PropsDictType = { "Description": (str, False), "KmsKeyId": (str, False), "PositionFiltering": (str, False), "PricingPlan": (str, False), "PricingPlanDataSource": (str, False), "TrackerName": (str, True), }
`Tracker <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-tracker.html>`__
62598ef1a8370b77170eebe6
class RawTextQuery(object): <NEW_LINE> <INDENT> def __init__(self, query, disabled_engines): <NEW_LINE> <INDENT> self.query = query <NEW_LINE> self.disabled_engines = [] <NEW_LINE> if disabled_engines: <NEW_LINE> <INDENT> self.disabled_engines = disabled_engines <NEW_LINE> <DEDENT> self.query_parts = [] <NEW_LINE> self...
parse raw text query (the value from the html input)
62598ef130bbd72246468437
class VCardField: <NEW_LINE> <INDENT> def __init__(self,name): <NEW_LINE> <INDENT> self.name=name <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<%s %r>" % (self.__class__,self.rfc2426()) <NEW_LINE> <DEDENT> def rfc2426(self): <NEW_LINE> <INDENT> return ""
Base class for vCard fields. :Ivariables: - `name`: name of the field.
62598ef19c8ee8231303f55b
class TestIteratorColumn2(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.samfile = pysam.AlignmentFile( os.path.join(BAM_DATADIR, "ex1.bam"), "rb") <NEW_LINE> <DEDENT> def testStart(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testTruncate(self): <NEW_LINE> <INDENT> p = sel...
test iterator column against contents of ex1.bam.
62598ef1f9cc0f698b1c46d0
class CachedQueryset(object): <NEW_LINE> <INDENT> def __init__(self, cache, queryset, primary_keys=None): <NEW_LINE> <INDENT> self.cache = cache <NEW_LINE> assert queryset is not None <NEW_LINE> self.queryset = queryset <NEW_LINE> self.model = queryset.model <NEW_LINE> self.filter_kwargs = {} <NEW_LINE> self._primary_k...
Emulate a Djange queryset, but with data loaded from the cache. A real queryset is used to get filtered lists of primary keys, but the cache is used instead of the database to get the instance data.
62598ef144b2445a339b5d6d
class ImageInfoListResponse(object): <NEW_LINE> <INDENT> openapi_types = { 'response': 'list[ImageInfoListResponseResponse]', 'version': 'str' } <NEW_LINE> attribute_map = { 'response': 'response', 'version': 'version' } <NEW_LINE> def __init__(self, response=None, version=None): <NEW_LINE> <INDENT> self._response = No...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598ef13d592f4c4edb96ef
@dataclass <NEW_LINE> class Cell: <NEW_LINE> <INDENT> alive: bool = False <NEW_LINE> alive_next: bool = False <NEW_LINE> age: int = -1 <NEW_LINE> def get_color(self): <NEW_LINE> <INDENT> if self.age < 0: <NEW_LINE> <INDENT> return BACKGROUND_COLOR <NEW_LINE> <DEDENT> elif self.age >= len(CELL_COLORS): <NEW_LINE> <INDEN...
A cell in the game of life.
62598ef14a966d76dd5ed6de
class LockTests(BaseLockTests): <NEW_LINE> <INDENT> @unittest.skipIf(support.is_jython, "FIXME: not working properly on Jython") <NEW_LINE> def test_reacquire(self): <NEW_LINE> <INDENT> lock = self.locktype() <NEW_LINE> phase = [] <NEW_LINE> def f(): <NEW_LINE> <INDENT> lock.acquire() <NEW_LINE> phase.append(None) <NEW...
Tests for non-recursive, weak locks (which can be acquired and released from different threads).
62598ef15fc7496912d47673
class ReUtils(): <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> self.conn = bot.conn <NEW_LINE> self.re = bot.re <NEW_LINE> self.rdb = bot.rdb <NEW_LINE> self.rtables = bot.rtables <NEW_LINE> <DEDENT> async def ensure_tables(self, *wanted_tables: str) -> List[str]: <NEW_LINE>...
Provides RethinkDB utilities for bots.
62598ef1b7558d5895461e4a
class Experiment(ABC): <NEW_LINE> <INDENT> def __init__(self, table, **data): <NEW_LINE> <INDENT> self._table = table <NEW_LINE> self.id = data['id'] <NEW_LINE> self.feature = data['feature'] <NEW_LINE> self.name = data['name'] <NEW_LINE> self.status = data['status'] <NEW_LINE> self.type = data['type'] <NEW_LINE> self....
Base class for all experiment types
62598ef1e5267d203ee6a10b
class TankAnt(BodyguardAnt): <NEW_LINE> <INDENT> name = 'Tank' <NEW_LINE> damage = 1 <NEW_LINE> food_cost = 6 <NEW_LINE> container = True <NEW_LINE> implemented = False <NEW_LINE> def __init__(self,armor = 2): <NEW_LINE> <INDENT> Insect.__init__(self, armor) <NEW_LINE> self.ant = None <NEW_LINE> <DEDENT> def contain_an...
TankAnt provides both offensive and defensive capabilities.
62598ef1aad79263cf42d010
class AsyncSubject(Subject[_T]): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.value: _T = cast(_T, None) <NEW_LINE> self.has_value: bool = False <NEW_LINE> <DEDENT> def _subscribe_core( self, observer: abc.ObserverBase[_T], scheduler: Optional[abc.SchedulerBase]...
Represents the result of an asynchronous operation. The last value before the close notification, or the error received through on_error, is sent to all subscribed observers.
62598ef1627d3e7fe0e0568e
class WorkspaceViewTestCase(base.WorkspaceBrowserDocTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(WorkspaceViewTestCase, self).setUp() <NEW_LINE> self.makeExternalWorkspace() <NEW_LINE> <DEDENT> def test_standard_render(self): <NEW_LINE> <INDENT> request = TestRequest() <NEW_LINE> page = bro...
Collection of miscellaneous tests.
62598ef14c34283577618ae9
class Point(models.Model): <NEW_LINE> <INDENT> address = models.CharField(blank=True, max_length=500) <NEW_LINE> lat = models.DecimalField(max_digits=20, decimal_places=10) <NEW_LINE> lng = models.DecimalField(max_digits=20, decimal_places=10) <NEW_LINE> def deserialize(self,content): <NEW_LINE> <INDENT> data = json.lo...
Point in map
62598ef1dd821e528d6d7742
class Page(MPTTModel): <NEW_LINE> <INDENT> title = models.CharField(verbose_name=u'标题', max_length=50, unique=True) <NEW_LINE> parent = TreeForeignKey('self', verbose_name=u'父级页面', null=True, blank=True, related_name='children', help_text=u'置空该选项即可创建顶级页面。') <NEW_LINE> content = models.TextField(verbose_name=u'内容') <NEW...
简单页面
62598ef1cc0a2c111447980a
class PyCftime(PythonPackage): <NEW_LINE> <INDENT> homepage = "https://unidata.github.io/cftime/" <NEW_LINE> url = "https://github.com/Unidata/cftime/archive/v1.0.3.4rel.tar.gz" <NEW_LINE> version('1.0.3.4', sha256='f261ff8c65ceef4799784cd999b256d608c177d4c90b083553aceec3b6c23fd3') <NEW_LINE> depends_on('py-setupt...
Python library for decoding time units and variable values in a netCDF file conforming to the Climate and Forecasting (CF) netCDF conventions
62598ef1a8370b77170eebe7
class Identifier(Base, Versioned, IdNameDescriptionMixin): <NEW_LINE> <INDENT> __table_args__ = (UniqueConstraint('name', 'type', 'description', 'lang'),) <NEW_LINE> id = Column(String) <NEW_LINE> type = Column(String) <NEW_LINE> lang = Column(String(3), default='en') <NEW_LINE> def url(self): <NEW_LINE> <INDENT> try: ...
A language identifier. We want to be able to link languages to languages in other systems. Thus, we store identifiers of various types like 'wals', 'iso639-3', 'glottolog'. But we might as well just store alternative names for languages.
62598ef14f88993c371ef8eb
class TemporaryFile(FileProxyMixin): <NEW_LINE> <INDENT> def __init__(self, mode='w+b', bufsize=-1, suffix='', prefix='', dir=None): <NEW_LINE> <INDENT> fd, name = tempfile.mkstemp(suffix=suffix, prefix=prefix, dir=dir) <NEW_LINE> self.name = name <NEW_LINE> self.file = os.fdopen(fd, mode, bufsize) <NEW_LINE> self.clos...
Temporary file object constructor that supports reopening of the temporary file in Windows. Note that __init__() does not support the 'delete' keyword argument in Python 2.6+, or the 'delete', 'buffering', 'encoding', or 'newline' keyword arguments in Python 3.0+.
62598ef1442bda511e95ac66
class PolicyRuleObjectAccess(object): <NEW_LINE> <INDENT> swagger_types = { 'name': 'str', 'actions': 'list[str]', 'conditions': 'PolicyRuleObjectAccessCondition', 'effect': 'str', 'policy': 'FixedReference', 'resources': 'list[str]' } <NEW_LINE> attribute_map = { 'name': 'name', 'actions': 'actions', 'conditions': 'co...
Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition.
62598ef1167d2b6e312b579e
@GerritEventFactory.register("change-restored") <NEW_LINE> class ChangeRestoredEvent(GerritEvent): <NEW_LINE> <INDENT> def __init__(self, json_data): <NEW_LINE> <INDENT> super(ChangeRestoredEvent, self).__init__(json_data) <NEW_LINE> try: <NEW_LINE> <INDENT> self.change = Change(json_data["change"]) <NEW_LINE> self.pat...
Gerrit "change-restored" event.
62598ef19c8ee8231303f55c
class Missile(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, screen, image, angle, speed, x, y, px, py, damage, points, death, frames): <NEW_LINE> <INDENT> pygame.sprite.Sprite.__init__(self) <NEW_LINE> self.image = pygame.image.load(image) <NEW_LINE> self.image.set_colorkey((255,0,255)) <NEW_LINE> self....
This class defines the sprite for the missiles.
62598ef123849d37ff84f8bf
class ExampleIConfigurerPlugin(plugins.SingletonPlugin): <NEW_LINE> <INDENT> plugins.implements(plugins.IConfigurer) <NEW_LINE> plugins.implements(plugins.IRoutes, inherit=True) <NEW_LINE> def update_config(self, config): <NEW_LINE> <INDENT> toolkit.add_template_directory(config, 'templates') <NEW_LINE> toolkit.add_cka...
An example IConfigurer plugin that shows: 1. How to implement ``toolkit.add_ckan_admin_tab()`` in the ``update_config`` method to add a custom config tab in the admin pages. 2. How to make CKAN configuration options runtime-editable via the web frontend or the API
62598ef1dc8b845886d51dc9
class TestDpsOrder(TestBase2): <NEW_LINE> <INDENT> name = "私密代理测试" <NEW_LINE> def test_get_proxy(self): <NEW_LINE> <INDENT> ips = self.client.get_dps(2, sign_type='hmacsha1', format='text', area='云南,广东', pt=2, f_citycode=1) <NEW_LINE> print(ips) <NEW_LINE> assert isinstance(ips, list) or isinstance(ips, str) or isinsta...
私密代理
62598ef14a966d76dd5ed6e0
class PerformedRxnAdminForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> fields = ('valid', 'legacyRecommendedFlag') <NEW_LINE> model = PerformedReaction
A form for the performed reactions in the Django admin. The only things we want editing from there are whether a Reaction is invalid or if it should have the legacy recommended flag set.
62598ef1f548e778e5969d91
class Detect(Detector): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> <DEDENT> def set_model_path(self): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def initialize(self, *args, **kwargs): <NEW_LINE> <INDENT> super().initialize(*args, **kwargs) <NEW_L...
Manual Detector
62598ef17047854f4633dbd5
class TodoListSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = TodoList <NEW_LINE> fields = ('id', 'name', 'description', 'done', 'date_created', 'created_by')
Changing data from the database from complex querysets. Serialized data is more readable.
62598ef1091ae3566870341e
class Pols2EdgsNode(bpy.types.Node, SverchCustomTreeNode): <NEW_LINE> <INDENT> bl_idname = 'Pols2EdgsNode' <NEW_LINE> bl_label = 'Polygons 2 Edges' <NEW_LINE> bl_icon = 'OUTLINER_OB_EMPTY' <NEW_LINE> def sv_init(self, context): <NEW_LINE> <INDENT> self.inputs.new('StringsSocket', "pols", "pols") <NEW_LINE> self.outputs...
take polygon and to edges
62598ef1aad79263cf42d012
class SshkeyMapEntry(maps.MapEntry): <NEW_LINE> <INDENT> __slots__ = ('name', 'sshkey') <NEW_LINE> _KEY = 'name' <NEW_LINE> _ATTRS = ('name', 'sshkey') <NEW_LINE> def __init__(self, data=None): <NEW_LINE> <INDENT> self.name = None <NEW_LINE> self.sshkey = None <NEW_LINE> super(SshkeyMapEntry, self).__init__(data) <NEW_...
This class represents NSS sshkey map entries.
62598ef1fff4ab517ebcbfdd
class PlaybookOperation(AnsibleReadOperation): <NEW_LINE> <INDENT> def __init__(self, client, playbook, logger, result_pattern, params, querystr_dict={}): <NEW_LINE> <INDENT> super(PlaybookOperation, self).__init__(client, logger) <NEW_LINE> self.playbook = playbook <NEW_LINE> self.event_filter = "" <NEW_LINE> self.pb_...
Execute a playbook using the Ansible Runner Service
62598ef13539df3088ecaab7
class CompareWindow(KQMainWindow): <NEW_LINE> <INDENT> def __init__(self, files = [], parent = None): <NEW_LINE> <INDENT> KQMainWindow.__init__(self, parent) <NEW_LINE> self.cw = CompareDialog(files, self) <NEW_LINE> self.cw.installEventFilter(self) <NEW_LINE> size = self.cw.size() <NEW_LINE> self.setCentralWidget(self...
Main window class for the standalone dialog.
62598ef12c8b7c6e89bd1fc8
class FindSupport(object): <NEW_LINE> <INDENT> def __init__(self, data_frame=None): <NEW_LINE> <INDENT> self.count_dict = dict() <NEW_LINE> self.support_dict = dict() <NEW_LINE> self.total_count = 0 <NEW_LINE> try: <NEW_LINE> <INDENT> self.df = data_frame.copy(deep=True) <NEW_LINE> self.create_count_dict(data_frame) <N...
Example usage: >>> fs = FindSupport(data_frame = df1) >>> supportDF = fs.support_df Anodhter example: >>> support_df = FindSupport(data_frame = df1).support_df
62598ef1283ffb24f3cf20b7
class ParserError(DataQLException): <NEW_LINE> <INDENT> def __init__(self, original_exception): <NEW_LINE> <INDENT> self.original_exception = original_exception <NEW_LINE> super().__init__(str(self)) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> pos = self.original_exception.pos <NEW_LINE> return ( 'Proble...
Exception raised when the parser failed to parse a query. It is raised when a ``parsimonious.exceptions.ParseError`` is raised, to provide a more friendly message, keeping the original exception as attribute. This exception string only exposes line and column of the error with a abstract from the query starting at th...
62598ef126068e7796d4b162
class TestSearchApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = opendota_client.api.search_api.SearchApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_search_get(self): <NEW_LINE> <INDENT> pass
SearchApi unit test stubs
62598ef18a43f66fc4bf097a