code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class MergeError(Exception): <NEW_LINE> <INDENT> pass
Failure to merge two objects.
62598f7f50485f2cf55da96f
class _EventGenerator(object): <NEW_LINE> <INDENT> def __init__(self, zero_out_timestamps=False): <NEW_LINE> <INDENT> self.items = [] <NEW_LINE> self.zero_out_timestamps = zero_out_timestamps <NEW_LINE> <DEDENT> def Load(self): <NEW_LINE> <INDENT> while self.items: <NEW_LINE> <INDENT> yield self.items.pop(0) <NEW_LINE>...
Class that can add_events and then yield them back. Satisfies the EventGenerator API required for the EventAccumulator. Satisfies the EventWriter API required to create a SummaryWriter. Has additional convenience methods for adding test events.
62598f7f71ff763f4b5e716a
class Node(): <NEW_LINE> <INDENT> __slots__ = ('_item', 'next') <NEW_LINE> def __init__(self, item, next_=None): <NEW_LINE> <INDENT> self._item = item <NEW_LINE> self.next = next_ <NEW_LINE> <DEDENT> def get_item(self): <NEW_LINE> <INDENT> return self._item <NEW_LINE> <DEDENT> def get_next(self): <NEW_LINE> <INDENT> re...
node
62598f7ffb3f5b602db47eaf
class UnitTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> class CfgTest(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.url = "git@github.com:JAC-IDM/" <NEW_LINE> self.work_dir = "/data/merge-repo/work_dir" <NEW_LINE> self.err_dir = "/data/merge-repo/error_dir...
Class: UnitTest Description: Class which is a representation of a unit testing. Methods: setUp -> Unit testing initilization. test_send_mail -> Test send_mail function.
62598f7fbde94217f3707365
class Config: <NEW_LINE> <INDENT> NEWS_API_KEY = 'a0105d92777949db8ce68f1b4952b724' <NEW_LINE> NEWS_API_BASE_URL = 'https://newsapi.org/v1/sources/'
This is the config class for the whole app
62598f7f8e71fb1e983bb4b6
class TaskCheckUpdateView(APIView): <NEW_LINE> <INDENT> def put(self, request, id_task): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> task = TasksCheck.objects.get(id=id_task) <NEW_LINE> <DEDENT> except TasksCheck.DoesNotExist: <NEW_LINE> <INDENT> return Response(status=status.HTTP_404_NOT_FOUND) <NEW_LINE> <DEDENT> se...
Edita una tarea de una Revision
62598f7fdc8b845886d52fb4
class Level(models.Model): <NEW_LINE> <INDENT> year_name = models.CharField(max_length=20) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.year_name
Subject level :year: Year of the subject teaching on the degree
62598f7f3eb6a72ae038a040
class TestShapes(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 testShapes(self): <NEW_LINE> <INDENT> pass
Shapes unit test stubs
62598f7f29b78933be269dda
class LoncapaSystem(object): <NEW_LINE> <INDENT> def __init__( self, ajax_url, anonymous_student_id, cache, can_execute_unsafe_code, DEBUG, filestore, i18n, node_path, render_template, seed, STATIC_URL, xqueue, matlab_api_key=None ): <NEW_LINE> <INDENT> self.ajax_url = ajax_url <NEW_LINE> self.anonymous_student_id = an...
An encapsulation of resources needed from the outside. These interfaces are collected here so that a caller of LoncapaProblem can provide these resources however make sense for their environment, and this code can remain independent. Attributes: i18n: an object implementing the `gettext.Translations` interface so...
62598f7ff8510a7c17d7de77
class NewWordCandidateInfo(object): <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> super(NewWordCandidateInfo, self).__init__() <NEW_LINE> self.text = text <NEW_LINE> self.freq = 0.0 <NEW_LINE> self.left = [] <NEW_LINE> self.left_dict = {} <NEW_LINE> self.right = [] <NEW_LINE> self.right_dict = {} <N...
记录N-gram信息,包括左邻居,右邻居,频率,PMI :param text: N-gram单词 Reference: https://github.com/DenseAI/kaitian-xinci
62598f7fa4f1c619b294dfeb
class Positioner(tf.keras.layers.Layer): <NEW_LINE> <INDENT> def __init__(self, dropout, outsize=None, **kwargs): <NEW_LINE> <INDENT> super(Positioner, self).__init__(**kwargs) <NEW_LINE> self.dropout = dropout <NEW_LINE> self.outsize = outsize <NEW_LINE> <DEDENT> def get_config(self): <NEW_LINE> <INDENT> config = supe...
Takes a sequence of shape: [batchsize, numitems, itemsize] and adds position information
62598f7f7c178a314d78cea9
class TestZaimRowFactory: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> @pytest.mark.parametrize( "database_session_with_schema, zaim_row_converter_class, input_row_class, waon_row_data, expected", [ ( [InstanceResource.FIXTURE_RECORD_STORE_WAON_ITABASHIMAENOCHO], WaonZaimIncomeRowConverter, WaonChargeRow, InstanceResou...
Tests for ZaimRowFactory.
62598f7fa17c0f6771d5bc42
class Vdl2MacTableParser(Vdl2TableParser): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> delimiter_title = "MAC Entry Count" <NEW_LINE> expected_keys = ['Inner MAC', 'Outer MAC', 'Outer IP', 'Flags'] <NEW_LINE> super(Vdl2MacTableParser, self). __init__(delimiter_title=delimiter_title, expected_...
To parse the net-vdl2 mac table # net-vdl2 -M mac -s nsxvswitch -n switch_vni >>> import pprint >>> vdl2 = Vdl2MacTableParser() >>> raw_data = ''' ... MAC Entry Count: 1 ... Inner MAC: 00:0c:29:5a:ca:f5 ... Outer MAC: 00:50:56:66:b2:5e ... Outer IP: 172.22.142.198 ... ...
62598f7f23849d37ff850abc
class AlphabeticFilterSpec(ChoicesFilterSpec): <NEW_LINE> <INDENT> def __init__(self, f, request, params, model, model_admin): <NEW_LINE> <INDENT> super(AlphabeticFilterSpec, self).__init__(f, request, params, model, model_admin) <NEW_LINE> self.lookup_kwarg = '%s__istartswith' % f.name <NEW_LINE> self.lookup_val = req...
Adds filtering by first char (alphabetic style) of values in the admin filter sidebar. Set the alphabetic filter in the model field attribute 'alphabetic_filter'. my_model_field.alphabetic_filter = True
62598f7fd10714528d69d8ce
class AvailableProvidersListCountry(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'country_name': {'key': 'countryName', 'type': 'str'}, 'providers': {'key': 'providers', 'type': '[str]'}, 'states': {'key': 'states', 'type': '[AvailableProvidersListState]'}, } <NEW_LINE> def __init__( self, *, cou...
Country details. :param country_name: The country name. :type country_name: str :param providers: A list of Internet service providers. :type providers: list[str] :param states: List of available states in the country. :type states: list[~azure.mgmt.network.v2018_02_01.models.AvailableProvidersListState]
62598f7f07f4c71912baee4e
class ClusterNodesExtendedExtended(object): <NEW_LINE> <INDENT> swagger_types = { 'nodes': 'list[ClusterNodeExtended]', 'total': 'int' } <NEW_LINE> attribute_map = { 'nodes': 'nodes', 'total': 'total' } <NEW_LINE> def __init__(self, nodes=None, total=None): <NEW_LINE> <INDENT> self._nodes = None <NEW_LINE> self._total ...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f7f16aa5153ce3fff00
class SampleTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.seq = range(10) <NEW_LINE> <DEDENT> def test_sample(self): <NEW_LINE> <INDENT> self.assertRaises(ValueError, random.sample, self.seq, 20) <NEW_LINE> for element in random.sample(self.seq, 5): <NEW_LINE> <INDENT> self.a...
Example test, to check the test runner.
62598f7f498bea3a75a57524
class _ACQ400_TR_BASE(_ACQ400_BASE): <NEW_LINE> <INDENT> def arm(self): <NEW_LINE> <INDENT> import acq400_hapi <NEW_LINE> uut = acq400_hapi.Acq400(self.node.data()) <NEW_LINE> shot_controller = acq400_hapi.ShotController([uut]) <NEW_LINE> shot_controller.run_shot() <NEW_LINE> <DEDENT> ARM = arm <NEW_LINE> def store(sel...
A child class of _ACQ400_BASE that contains the specific methods for taking a transient capture.
62598f7fc432627299fa29ce
class Moveable: <NEW_LINE> <INDENT> def SetOrder(self, orderList): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def DoOrder(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def SetPosition(self, x, y): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetX(): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetY(): <...
캐릭터를 조작할 수 있는 경우는 Moveable 인터페이스를 상속 받는다.
62598f7f15baa7234946197e
class Status: <NEW_LINE> <INDENT> def __init__(self, p_code = 1, p_name = 'Nenhum'): <NEW_LINE> <INDENT> if not isinstance(p_code, int): <NEW_LINE> <INDENT> raise exception.Exception('Erro durante a instanciação da classe "classes.Status": O parâmetro "p_code" deve ser do tipo "int".') <NEW_LINE> <DEDENT> if not isinst...
Represent a chat status from database. Attributes: code (int): the status code. name (str): the status name.
62598f7f711fe17d825e00e8
class MaserDataFromFileFITS(MaserDataFromFile): <NEW_LINE> <INDENT> def __init__(self, file, verbose=True, debug=False): <NEW_LINE> <INDENT> MaserDataFromFile.__init__(file, verbose, debug) <NEW_LINE> self.format = 'FITS' <NEW_LINE> <DEDENT> def get_mime_type(self): <NEW_LINE> <INDENT> return 'application/fits'
This class inherits from the MaserDataFromFile class, and is used for CDF file types. :ivar format: this attribute is set to 'fits'
62598f7f07d97122c42166a2
class ListHolderView: <NEW_LINE> <INDENT> __slots__ = ('__list') <NEW_LINE> def __init__(self, list_): <NEW_LINE> <INDENT> self.__list = list_ <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return (item for item in self.__list if item is not None) <NEW_LINE> <DEDENT> def __contains__(self, value): <NEW_LIN...
Simple class to implement view-like functionality over passed list.
62598f7f66673b3332c2fdc5
class MediaInfo(object): <NEW_LINE> <INDENT> file_info = None <NEW_LINE> volume = 100 <NEW_LINE> is_flash = False <NEW_LINE> is_background = False <NEW_LINE> length = 0 <NEW_LINE> start_time = 0 <NEW_LINE> end_time = 0 <NEW_LINE> media_type = MediaType()
This class hold the media related info
62598f7f7b25080760ed6ea4
class GraphiteServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): <NEW_LINE> <INDENT> allow_reuse_address = True <NEW_LINE> def __init__(self, address, *args, **kwargs): <NEW_LINE> <INDENT> SocketServer.TCPServer.__init__(self, address, *args, **kwargs) <NEW_LINE> self.host, self.port = address <NEW_LINE> self...
A fake Graphite server. This server stores all the messages received by Graphite in the `messages` list.
62598f7f1d351010ab8f353e
class TransDataProvider: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._config = Config() <NEW_LINE> <DEDENT> def get_orm_engine(self, engine_name=None): <NEW_LINE> <INDENT> config = self._config.get_orm_engine(engine_name) <NEW_LINE> return create_engine(config) <NEW_LINE> <DEDENT> def get_orm_sessi...
传输工具数据提供接口
62598f7fa79ad16197769a60
class TestFileFilterApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = isi_sdk_8_2_2.api.file_filter_api.FileFilterApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_get_file_filter_settings(self): <NEW_LINE> <INDENT> pass <NEW_LI...
FileFilterApi unit test stubs
62598f7f3eb6a72ae038a042
class TestRMarkdownComments(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_name_to_func_map(self): <NEW_LINE> <INDENT> test_file = 'tests/commentsForRMarkdown' <NEW_LINE> options = Namespace(...
Test line couters for R's version of Markdown.
62598f7f8c3a8732951f5f47
@pulumi.output_type <NEW_LINE> class GetExportResult: <NEW_LINE> <INDENT> def __init__(__self__, exporting_stack_id=None, id=None, name=None, value=None): <NEW_LINE> <INDENT> if exporting_stack_id and not isinstance(exporting_stack_id, str): <NEW_LINE> <INDENT> raise TypeError("Expected argument 'exporting_stack_id' to...
A collection of values returned by getExport.
62598f7f6aa9bd52df0d48db
class AlertConfigsTests(TestCase): <NEW_LINE> <INDENT> def test_pagerduty(self): <NEW_LINE> <INDENT> service_key = 'bb7aad43abd9401a9e4f065c9e5ab89f' <NEW_LINE> alert = PagerDutyAlertConfig(description='testing', service_key=service_key) <NEW_LINE> self.assertDictEqual( alert.args(), { 'args': { 'description': 'testing...
Test each alert type
62598f7f73bcbd0ca4bc9c51
class ExampleStrategy(AbstractStrategy): <NEW_LINE> <INDENT> def __init__(self, tickers, events_queue): <NEW_LINE> <INDENT> self.tickers = tickers <NEW_LINE> self.events_queue = events_queue <NEW_LINE> self.ticks = {ticker: 0 for ticker in self.tickers} <NEW_LINE> self.invested = {ticker: False for ticker in self.ticke...
Testing strategy that alternates buying and selling a ticker on every 5th tick. This has the effect of continuously "crossing the spread" and so will be loss-making strategy. It is used to test that the backtester/live trading system is behaving as expected.
62598f7f7c178a314d78ceab
class boleto_boleto(osv.osv): <NEW_LINE> <INDENT> _name = 'boleto.boleto' <NEW_LINE> def _get_data_documento(self, cr, uid, ids, context=None): <NEW_LINE> <INDENT> dt_atual = datetime.datetime.today() <NEW_LINE> return dt_atual.strftime('%Y-%m-%d') <NEW_LINE> <DEDENT> _columns = { 'name': fields.char('Name', size=20, r...
Boleto
62598f7f596a897236127672
class PermissionWare(): <NEW_LINE> <INDENT> def process_view(self,request,view_func,view_args,view_kwargs): <NEW_LINE> <INDENT> if(request.path.startswith("/admin")): <NEW_LINE> <INDENT> if(view_kwargs.get("obj")): <NEW_LINE> <INDENT> requiredResource = view_func.__name__.split("_")[0]+"_"+view_kwargs.get("obj") <NEW_L...
处理权限
62598f7fd164cc6175820979
class ShowMdnsSdSummaryInterfaceVlan(ShowMdnsSdSummaryInterfaceVlanSchema): <NEW_LINE> <INDENT> cli_command = 'show mdns-sd summary interface vlan {vlan}' <NEW_LINE> def cli(self, output=None,vlan=None): <NEW_LINE> <INDENT> if output is None: <NEW_LINE> <INDENT> output = self.device.execute(self.cli_command.format(vlan...
Parser for * show mdns-sd summary interface vlan 300
62598f7f91af0d3eaad3980c
class MessageBindingId(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=MAX_TITLE_LEN, blank=True) <NEW_LINE> description = models.TextField(blank=True) <NEW_LINE> binding_id = models.CharField(max_length=MAX_ID_LEN) <NEW_LINE> date_created = models.DateTimeField(auto_now_add=True) <NEW_LINE> date...
Represents a message binding id, used to establish the supported syntax for a given TAXII exchange, "e.g., XML". Ex: XML message binding id : "urn:taxii.mitre.org:message:xml:1.0"
62598f7fc432627299fa29d0
class g_random(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.number = 1 <NEW_LINE> <DEDENT> def control(self, number, blub0, blub1): <NEW_LINE> <INDENT> self.number = int((number*20)+1) <NEW_LINE> <DEDENT> def label(self): <NEW_LINE> <INDENT> return ['number',self.number,'empty', 'empty','empty','...
Generator: random Turns on random LEDs with a random color Parameters: - number: Number of LEDs to turned on per call
62598f7fd10714528d69d8d1
class Test_WordFileParser(unittest.TestCase): <NEW_LINE> <INDENT> def test_get_word_and_validate(self): <NEW_LINE> <INDENT> self.assertEqual(WordFileParser._get_word_and_validate("hello\n"), "hello") <NEW_LINE> self.assertEqual(WordFileParser._get_word_and_validate("HELLO\n"), "HELLO") <NEW_LINE> self.assertEqual(WordF...
A class for testing the WordFileParser class
62598f7fb830903b9686e172
class OSMWidget(TextInput): <NEW_LINE> <INDENT> @property <NEW_LINE> def media(self): <NEW_LINE> <INDENT> return Media( css={"screen": _get_css(settings.DEBUG)}, js=_get_js(settings.DEBUG) ) <NEW_LINE> <DEDENT> def __init__(self, lat_field, lon_field, data_field=None, attrs=None): <NEW_LINE> <INDENT> attrs = {} if attr...
Adds a OpenStreetMap Leaflet dropdown map to the front-end once the user focuses the form field. See :ref:`the usage chapter <usage-template-layer>` on how to integrate the CSS and JavaScript code.
62598f7f71ff763f4b5e716e
class AdamWeightDecayOptimizer(tf.train.Optimizer): <NEW_LINE> <INDENT> def __init__(self, learning_rate, weight_decay_rate=0.0, beta_1=0.9, beta_2=0.999, epsilon=1e-6, exclude_from_weight_decay=None, name="AdamWeightDecayOptimizer"): <NEW_LINE> <INDENT> super(AdamWeightDecayOptimizer, self).__init__(False, name) <NEW_...
A basic Adam optimizer that includes "correct" L2 weight decay. Implemented apply_gradients so ignore abstract-method warning
62598f7fec188e330fdf82a1
class UserViewSet(DefaultsMixin, UpdateHookMixin, viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> lookup_field = User.USERNAME_FIELD <NEW_LINE> lookup_url_kwarg = User.USERNAME_FIELD <NEW_LINE> queryset = User.objects.order_by(User.USERNAME_FIELD) <NEW_LINE> serializer_class = UserSerializer <NEW_LINE> search_field...
API endpoint for listing users.
62598f7f004d5f362081ecfc
class CountingBehavior(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> db_table = "counting_behavior" <NEW_LINE> app_label = "core"
Should be used as part of assigning another class that references CountingBehavior, but could be used as an 'emergency catch' for String evaluation to take specific action in-code.
62598f7f07d97122c42166a5
class RelationshipResource(CRITsAPIResource): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> object_class = RelationshipType <NEW_LINE> allowed_methods = ('post',) <NEW_LINE> resource_name = "relationships" <NEW_LINE> authentication = MultiAuthentication(CRITsApiKeyAuthentication(), CRITsSessionAuthentication()) <...
Class to handle everything related to the Relationship API. Currently supports POST.
62598f7f0a366e3fb87dc3ce
class StartsWith(object): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return other.startswith(self.value)
Equal to everything that starts with the given text. Used as a placeholder for values we don't precisely know when comparing collections full of values.
62598f7f38b623060ffa8a99
@dataclass <NEW_LINE> class DPRContextEncoderOutput(ModelOutput): <NEW_LINE> <INDENT> pooler_output: torch.FloatTensor <NEW_LINE> hidden_states: Optional[Tuple[torch.FloatTensor]] = None <NEW_LINE> attentions: Optional[Tuple[torch.FloatTensor]] = None
Class for outputs of :class:`~transformers.DPRQuestionEncoder`. Args: pooler_output: (:obj:``torch.FloatTensor`` of shape ``(batch_size, embeddings_size)``): The DPR encoder outputs the `pooler_output` that corresponds to the context representation. Last layer hidden-state of the first token of the...
62598f7f21a7993f00c65973
class Solution: <NEW_LINE> <INDENT> def addTwoNumbers(self, l1, l2): <NEW_LINE> <INDENT> carrying = 0 <NEW_LINE> rl = ListNode(0) <NEW_LINE> rl_node = rl <NEW_LINE> while l1 and l2: <NEW_LINE> <INDENT> carrying, val = divmod(l1.val + l2.val + carrying, 10) <NEW_LINE> l1 = l1.next <NEW_LINE> l2 = l2.next <NEW_LINE> rl_n...
2. 两数相加
62598f7f6aa9bd52df0d48dd
class MessageActionItem(object): <NEW_LINE> <INDENT> swagger_types = { 'message_action_id': 'int', 'description': 'str', 'date_modified': 'str' } <NEW_LINE> attribute_map = { 'message_action_id': 'MessageActionID', 'description': 'Description', 'date_modified': 'DateModified' } <NEW_LINE> def __init__(self, message_act...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f7fd4950a0f3b110b36
class WebObRequestValidatorMixin(RequestValidatorMixin): <NEW_LINE> <INDENT> def parse_request(self, request, parameters=None, fake_method=None): <NEW_LINE> <INDENT> return (request.method, request.url, request.headers, request.POST.mixed())
A mixin for OAuth request validation using WebOb
62598f7fd164cc617582097b
class CollectFamily(api.ContextPlugin): <NEW_LINE> <INDENT> order = inventory.get_order(__file__, "CollectFamily") <NEW_LINE> label = "Ftrack Family" <NEW_LINE> targets = ["default", "process"] <NEW_LINE> def process(self, context): <NEW_LINE> <INDENT> for instance in context: <NEW_LINE> <INDENT> families = instance.da...
Adds the "ftrack" family to all instanes.
62598f7fb57a9660fecd1480
@register <NEW_LINE> class PydevdSystemInfoArguments(BaseSchema): <NEW_LINE> <INDENT> __props__ = {} <NEW_LINE> __refs__ = set() <NEW_LINE> __slots__ = list(__props__.keys()) + ['kwargs'] <NEW_LINE> def __init__(self, update_ids_from_dap=False, **kwargs): <NEW_LINE> <INDENT> self.kwargs = kwargs <NEW_LINE> <DEDENT> def...
Arguments for 'pydevdSystemInfo' request. Note: automatically generated code. Do not edit manually.
62598f7f07f4c71912baee52
class ConfigFileDumper(ConfigDumper): <NEW_LINE> <INDENT> OPT_KEY = 'conffile' <NEW_LINE> def get_param_by_name(self, db, name): <NEW_LINE> <INDENT> key_comparator = lambda param: name == param.get_option(self.OPT_KEY, 'key', None) <NEW_LINE> name_comparator = lambda param: name == param.name <NEW_LINE> ...
Options keyword: 'conffile' Supported options can be set in ConfigParameter: section - under which section this value is saved use the DEFAULT section if not specified key - with what name this value is saved. use the name of parameter if not given formatter - a...
62598f7fbaa26c4b54d4ecb6
class InstalledPackages(InfoObject): <NEW_LINE> <INDENT> def __init__(self, packages): <NEW_LINE> <INDENT> info = self._load_installed_packages() <NEW_LINE> self.packages = packages <NEW_LINE> super(InstalledPackages, self).__init__('', info) <NEW_LINE> <DEDENT> @property <NEW_LINE> def drupal_ver(self): <NEW_LINE> <IN...
Prescribes which packages + versions to install (installed-packages.yml)
62598f7f82261d6c5272fbd5
class GraphProblem(SearchProblem): <NEW_LINE> <INDENT> def __init__(self, start, goals, edges): <NEW_LINE> <INDENT> self.start = start <NEW_LINE> self.goals = goals <NEW_LINE> self.edges = {} <NEW_LINE> for (src, action, dst, cost) in edges: <NEW_LINE> <INDENT> if src not in self.edges: <NEW_LINE> <INDENT> self.edges[s...
A search problem that focuses on simple graphs for testing
62598f7f15baa72349461983
class Administrator(UserMixin, db.Model): <NEW_LINE> <INDENT> __tablename__ = 'administrator' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> username = db.Column(db.String(32), nullable=False, unique=True) <NEW_LINE> password_hash = db.Column(db.String(128)) <NEW_LINE> confirmed = db.Column(db.Boole...
管理员表 整个网站只设置一个管理员账号, 需要在命令行手动注册
62598f7f50485f2cf55da975
class Movie(): <NEW_LINE> <INDENT> def __init__(self,movie_title,movie_storyline,poster_image,myoutube,review,duration): <NEW_LINE> <INDENT> self.title=movie_title <NEW_LINE> self.storyline=movie_storyline <NEW_LINE> self.poster_image_url=poster_image <NEW_LINE> self.trailer_youtube_url=myoutube <NEW_LINE> self.review=...
this class provides
62598f7f711fe17d825e00ec
class PingResult(object): <NEW_LINE> <INDENT> _transmitted_count_re = r'(?P<count>\d+)(?: packets transmitted)' <NEW_LINE> _received_count_re = r'(?P<count>\d+)(?:( packets)? received)' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._stdout = '' <NEW_LINE> <DEDENT> @property <NEW_LINE> def transmitted(self): <...
Ping result class. Useful for object-oriented access to results of ping (such as transmitted, received, loss counts)
62598f7f21a7993f00c65975
class EB_scipy(FortranPythonPackage): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(EB_scipy, self).__init__(*args, **kwargs) <NEW_LINE> self.testinstall = True <NEW_LINE> self.testcmd = "cd .. && %(python)s -c 'import numpy; import scipy; scipy.test(verbose=2)'" <NEW_LINE> <DEDENT>...
Support for installing the scipy Python package as part of a Python installation.
62598f7f73bcbd0ca4bc9c55
class DenseNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self, growth_rate=32, block_config=(6, 12, 24, 16), num_init_features=64, bn_size=4, drop_rate=0, num_classes=1000): <NEW_LINE> <INDENT> super(DenseNet, self).__init__() <NEW_LINE> self.features = nn.Sequential( OrderedDict([ ('conv0', nn.Conv3d( 3, num_init_f...
Densenet-BC model class Args: growth_rate (int) - how many filters to add each layer (k in paper) block_config (list of 4 ints) - how many layers in each pooling block num_init_features (int) - the number of filters to learn in the first convolution layer bn_size (int) - multiplicative factor for number...
62598f7f23849d37ff850ac2
class MyService(CoreService): <NEW_LINE> <INDENT> _name = "MyService" <NEW_LINE> _group = "Utility" <NEW_LINE> _depends = () <NEW_LINE> _dirs = () <NEW_LINE> _configs = ('myservice.tmp', ) <NEW_LINE> _startindex = 50 <NEW_LINE> _startup = ('/home/student/CoreDemo/myservices/bcastservice.sh',) <NEW_LINE> _shutdown = () ...
This is a sample user-defined service.
62598f7f1f037a2d8b9e3aee
class Upload(Resource): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> res = jsonify(SimpleResponseModel( status=405, message="Method Not Allowed" )) <NEW_LINE> return make_response(res, 405) <NEW_LINE> <DEDENT> @swagger.doc(files.upload_post_docs) <NEW_LINE> def post(self): <NEW_LINE> <INDENT> jsonFile = reque...
Definition for endpoint @app.route('metadata/test/connection') Contains HTTP POST endpoint Contains swagger documentation
62598f7fb57a9660fecd1482
class Binding: <NEW_LINE> <INDENT> def __init__( self, keys: Tuple[Union[Keys, str], ...], handler: KeyHandlerCallable, filter: FilterOrBool = True, eager: FilterOrBool = False, is_global: FilterOrBool = False, save_before: Callable[["KeyPressEvent"], bool] = (lambda e: True), record_in_macro: FilterOrBool = True, ) ->...
Key binding: (key sequence + handler + filter). (Immutable binding class.) :param record_in_macro: When True, don't record this key binding when a macro is recorded.
62598f7f8a43f66fc4bf1b85
class DiagramEntity(ProtoModel): <NEW_LINE> <INDENT> diagram = models.ForeignKey('Diagram', blank=False, null=False) <NEW_LINE> entity = models.ForeignKey(Entity, blank=False, null=False) <NEW_LINE> """Information graphique ( position, color, ... ) """ <NEW_LINE> info = JSONField(default={}) <NEW_LINE> objects = JSONA...
TODO: Entidades del diagrama ( Relationship )
62598f7fd10714528d69d8d5
class PriceTrackerError(Exception): <NEW_LINE> <INDENT> G_GEO_SUCCESS = 200 <NEW_LINE> _STATUS_MESSAGES = { G_GEO_SUCCESS: 'G_GEO_SUCCESS', } <NEW_LINE> def __init__(self, status, url=None, response=None): <NEW_LINE> <INDENT> Exception.__init__(self, status) <NEW_LINE> self.status = status <NEW_LINE> self.response = re...
Base class for errors in the :mod:`googlemaps` module. Methods of the :class:`GoogleMaps` raise this when something goes wrong.
62598f7f71ff763f4b5e7172
class ProductSales(models.Model): <NEW_LINE> <INDENT> invoice_product = models.OneToOneField( Product, verbose_name=_('product') ) <NEW_LINE> description = models.TextField( _('description'), max_length=500, blank=True, default="" ) <NEW_LINE> categories = models.ManyToManyField( ProductCategory, verbose_name=_('catego...
An extension of Product defined in 'invoice'.
62598f7fa05bb46b3848a281
class VirtualDevice(object): <NEW_LINE> <INDENT> ipaddress = "" <NEW_LINE> port = 4998 <NEW_LINE> def __init__(self, name="", commands={}): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.commands = commands <NEW_LINE> self.generate_functions() <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Vi...
VirtualDevice class
62598f7f004d5f362081ecfe
class STATe(SCPINode, SCPIBool): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> _cmd = "STATe" <NEW_LINE> args = ["1", "ON", "OFF"]
SENSe:CORRection:OFFSet:STATe Arguments: 1, ON, OFF
62598f7fc432627299fa29d5
class Test(APIView): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> a = 0.0 * 0.3 <NEW_LINE> print(a) <NEW_LINE> return Response(status=status.HTTP_200_OK)
test
62598f7fdc8b845886d52fbc
class Inventory_ItemsSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> inventories = InventorySerializer(read_only=True,many=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Inventory_Items <NEW_LINE> fields = ('inventories', 'items', 'survivor_id')
A inventory_item serializer to return the items in inventory
62598f7f9b70327d1c57e7a5
class PacketCapture(Model): <NEW_LINE> <INDENT> _validation = { 'target': {'required': True}, 'storage_location': {'required': True}, } <NEW_LINE> _attribute_map = { 'target': {'key': 'properties.target', 'type': 'str'}, 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', 'type': 'int'}, 'total...
Parameters that define the create packet capture operation. All required parameters must be populated in order to send to Azure. :param target: Required. The ID of the targeted resource, only VM is currently supported. :type target: str :param bytes_to_capture_per_packet: Number of bytes captured per packet, the re...
62598f7f1d351010ab8f3545
class PositionEncode(Layer): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.pos_enc_mat = get_pos_enc_mat(max_linelen, embed_dim) <NEW_LINE> super(PositionEncode, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def build(self, input_shape): <NEW_LINE> <INDENT> super(PositionEncode, self).build(...
Position encoding (Sukhbaatar2015)
62598f7f07d97122c42166a9
@resources.register('log-project-sink') <NEW_LINE> class LogProjectSink(QueryResourceManager): <NEW_LINE> <INDENT> class resource_type(TypeInfo): <NEW_LINE> <INDENT> service = 'logging' <NEW_LINE> version = 'v2' <NEW_LINE> component = 'projects.sinks' <NEW_LINE> enum_spec = ('list', 'sinks[]', None) <NEW_LINE> scope_ke...
https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.sinks
62598f7ff7d966606f7479ee
class OrdStampaPanel(aw.Panel): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> aw.Panel.__init__(self, *args, **kwargs) <NEW_LINE> wdr.OrdStampaCliFunc(self) <NEW_LINE> self.FindWindowById(wdr.ID_RAGGR).SetDataLink('raggr', 'NAZCSPc')
Seleziona ordinamento e raggruppamento da effettuare in lista anagrafiche.
62598f7f097d151d1a2c0a2d
class VoltechPM3000A(PowerAnalyser, IEEE488): <NEW_LINE> <INDENT> pass
Voltech PM3000A. .. figure:: images/PowerAnalyser/VoltechPM3000A.jpg
62598f7f23e79379d538beff
class Deck(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.clubs = {Card(0, k) for k in xrange(13)} <NEW_LINE> self.diamonds = {Card(1, k) for k in xrange(13)} <NEW_LINE> self.hearts = {Card(2, k) for k in xrange(13)} <NEW_LINE> self.spades = {Card(3, k) for k in xrange(13)} <NEW_LINE> self.al...
A standard deck of cards
62598f7f23e79379d538bf00
@task.arg("path", desc="The path to check") <NEW_LINE> @task.returns("Indicates if target path is a file") <NEW_LINE> class FsIsFile(task.BaseTask): <NEW_LINE> <INDENT> async def run(self) -> bool: <NEW_LINE> <INDENT> code, _, _ = await self.sh_with_code(f"test -f {self.params.esc_path}") <NEW_LINE> return code == 0
Checks if the path is a file
62598f7f596a897236127678
class BOOKGEN_PT_BookPanel(bpy.types.Panel): <NEW_LINE> <INDENT> bl_label = "Book" <NEW_LINE> bl_space_type = 'VIEW_3D' <NEW_LINE> bl_region_type = 'UI' <NEW_LINE> bl_category = "BookGen" <NEW_LINE> @classmethod <NEW_LINE> def poll(self, context): <NEW_LINE> <INDENT> if not has_bookgen_collection(context): <NEW_LINE> <...
Draws the book panel
62598f7f07f4c71912baee56
@namespace.entity('sum') <NEW_LINE> class Sum(action.Expression): <NEW_LINE> <INDENT> parameters = [ ('expressions', parameter.ExpressionList()), ] <NEW_LINE> def value(self, **kwargs): <NEW_LINE> <INDENT> return sum(expression.value(**kwargs) for expression in self.values['expressions'])
The sum of several expressions
62598f7fd10714528d69d8d6
class TVBException(Exception): <NEW_LINE> <INDENT> def __init__(self, message, parent_exception=None): <NEW_LINE> <INDENT> Exception.__init__(self, message, parent_exception) <NEW_LINE> self.message = message <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return self.message <NEW_LINE> <DEDENT> def __str__...
Base class for all TVB exceptions.
62598f7f0fa83653e46f48f7
class GPGWriteFile_Helper(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.from_random_fp = open(u"/dev/urandom", u"rb") <NEW_LINE> self.at_end = 0 <NEW_LINE> <DEDENT> def set_at_end(self): <NEW_LINE> <INDENT> self.at_end = 1 <NEW_LINE> <DEDENT> def get_buffer(self, size): <NEW_LINE> <INDENT> s...
Used in test_GPGWriteFile above
62598f7f16aa5153ce3fff08
class QuadFcnOnBall(IneqConstDeclarativeNode): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def objective(self, x, y): <NEW_LINE> <INDENT> return 0.5 * torch.einsum('bm,bm->b', (y, y)) - torch.einsum('bm,bm->b', (y, x)) <NEW_LINE> <DEDENT> def inequality_constraints...
Solves the (inequality constrained) problem minimize f(x, y) = 0.5 * y^Ty - x^T y subject to h(y) = \|y\|^2 <= 1
62598f7fbaa26c4b54d4ecba
class DriverRegistrationError(ValueError): <NEW_LINE> <INDENT> pass
To be raised when, eg, _gdal.GDALGetDriverByName("MEM") returns NULL.
62598f7f8a349b6b43685c4b
class CashRegister: <NEW_LINE> <INDENT> def __init__(self, loonies, toonies, fives, tens, twenties): <NEW_LINE> <INDENT> self.loonies = loonies <NEW_LINE> self.toonies = toonies <NEW_LINE> self.fives = fives <NEW_LINE> self.tens = tens <NEW_LINE> self.twenties = twenties <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE...
A cash register.
62598f7f498bea3a75a5752c
class ModelsGlockappsBlacklist(object): <NEW_LINE> <INDENT> swagger_types = { 'server': 'str', 'status': 'ModelsBlacklistStatus', 'txt': 'str' } <NEW_LINE> attribute_map = { 'server': 'server', 'status': 'status', 'txt': 'txt' } <NEW_LINE> def __init__(self, server=None, status=None, txt=None): <NEW_LINE> <INDENT> self...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f7fb830903b9686e175
class ConfigurationOption(object): <NEW_LINE> <INDENT> KEY_FORMAT = "{section}///{name}" <NEW_LINE> def __init__(self, *, section, name, defaultValue = '', sanitizeAndCheckFunction = None): <NEW_LINE> <INDENT> self.section = section <NEW_LINE> self.name = name <NEW_LINE> self.de...
Represents a configuration option specified by the configuration section, the option's name (key in configparser's terminology) and optionaly the default value. It also provides an optional facility to check the configuration option's value.
62598f7f71ff763f4b5e7174
@skipUnless(settings.FEATURES.get("ENABLE_THIRD_PARTY_AUTH"), "third party auth not enabled") <NEW_LINE> class TestGoogleRegistrationView( ThirdPartyRegistrationTestMixin, ThirdPartyOAuthTestMixinGoogle, TransactionTestCase ): <NEW_LINE> <INDENT> pass
Tests the User API registration endpoint with Google authentication.
62598f7f1d351010ab8f3546
class ByteOrderTypeError(TypeError): <NEW_LINE> <INDENT> def __init__(self, field, byte_order): <NEW_LINE> <INDENT> message = ( f"{field.__class__.__name__}: Inappropriate byte order type " f"'{type(byte_order).__name__1}'.") <NEW_LINE> super().__init__(message)
Raised if an inappropriate byte order type is assigned to a field class.
62598f7f0a366e3fb87dc3d4
class param_url: <NEW_LINE> <INDENT> def __init__(self, url, params): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.params = params <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return this.url
带有参数的url类
62598f7f1f5feb6acb16263c
class BagOfWords(object): <NEW_LINE> <INDENT> def __init__(self, vocabulary, term_weighting=AbsoluteTermFrequencies()): <NEW_LINE> <INDENT> self.__vocabulary = vocabulary <NEW_LINE> self.__term_weighting = term_weighting <NEW_LINE> <DEDENT> def category_bow_dict(self, cat_word_dict): <NEW_LINE> <INDENT> result = {} <NE...
Berechnung von Bag-of-Words Repraesentationen aus Wortlisten bei gegebenem Vokabular.
62598f7f8c3a8732951f5f4f
class JobEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, models.BaseModel): <NEW_LINE> <INDENT> return {'_type': 'odoo_recordset', 'model': obj._name, 'ids': obj.ids, 'uid': obj.env.uid, } <NEW_LINE> <DEDENT> elif isinstance(obj, datetime): <NEW_LINE> <INDEN...
Encode Odoo recordsets so that we can later recompose them
62598f7fe64d504609df90b4
@attr.s(auto_attribs=True, frozen=True) <NEW_LINE> class Alignment: <NEW_LINE> <INDENT> hseq: str <NEW_LINE> midline: str <NEW_LINE> qseq: str <NEW_LINE> def revcomp(self) -> typing.TypeVar("Alignment"): <NEW_LINE> <INDENT> return Alignment(revcomp(self.hseq), "".join(reversed(self.midline)), revcomp(self.qseq)) <NEW_L...
Representation of an alignment.
62598f7f94891a1f408b93f3
class ComplexCreation(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.mdl = Model(verbosity=0) <NEW_LINE> self.statesAsSpecies = False <NEW_LINE> <DEDENT> def testNormalCreation(self): <NEW_LINE> <INDENT> with self.mdl: <NEW_LINE> <INDENT> A1, A2, A3, B1, B2, B3 = SubUnitState.Create()...
Test Complex creation.
62598f7f097d151d1a2c0a2f
class Test_fa_shell(test_fasta.Test_fasta): <NEW_LINE> <INDENT> def setup(self): <NEW_LINE> <INDENT> thisdir = os.path.dirname(__file__) <NEW_LINE> self._testfa = os.path.join(thisdir, 'test.fa') <NEW_LINE> fadbm = os.path.join(thisdir, '..', 'fadbm.py') <NEW_LINE> subprocess.check_call(['python', fadbm, self._testfa],...
Tests the functionality of the script 'fadbm' in creating a screed database correctly from the shell
62598f7fb5575c28eb7129cb
class _ParentDirectory(Directory): <NEW_LINE> <INDENT> default_icon = 'arrow_turn_up.png' <NEW_LINE> icon_map = [] <NEW_LINE> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> return object.__new__(cls) <NEW_LINE> <DEDENT> def __init__(self, child_directory): <NEW_LINE> <INDENT> path = os.path.join(child_directory...
This class wraps a parent directory.
62598f7fac7a0e7691f71f22
class singleton(cluster): <NEW_LINE> <INDENT> def __init__(self, point, label): <NEW_LINE> <INDENT> self.points = point.reshape((1,-1)) <NEW_LINE> self.labels = label.reshape((1,-1)) <NEW_LINE> self.centroid = self.points <NEW_LINE> self.children = [] <NEW_LINE> self.distance = 0
Single points structure
62598f7fcad5886f8bdc4d2e
class Metadata: <NEW_LINE> <INDENT> __enuRegex = f'<SRS>ENU:({DECIMAL_REGEX}),({DECIMAL_REGEX})</SRS>' <NEW_LINE> __geodeticRegex = '<SRS>EPSG:4326</SRS>' <NEW_LINE> __offsetRegex = f'<SRSOrigin>({DECIMAL_REGEX}),({DECIMAL_REGEX}),({DECIMAL_REGEX})</SRSOrigin>' <NEW_LINE> def __init__(self, path: Union[str, Path]): <NE...
A convenience class for interacting with metadata.xml files generated by ContextCapture. Note: This class does not guarantee tracking of all information in a metadata.xml. It is only guaranteed to track the <SRS> and <SRSOrigin> tags and enough of the DOM to be able to recreate a minimal metadata.xml shoul...
62598f7fa17c0f6771d5bc4c
class WordBuilder: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._current_word = None <NEW_LINE> <DEDENT> def push_char(self, ch): <NEW_LINE> <INDENT> if self._is_word_started() and WordBuilder._is_word_separator(ch): <NEW_LINE> <INDENT> word = self._current_word <NEW_LINE> self._end_word() <NEW_LINE...
Class which processes characters into Words
62598f7f8a349b6b43685c4d
class ElementAddingSolution: <NEW_LINE> <INDENT> def subsets(self, nums: List[int]): <NEW_LINE> <INDENT> solution = [[]] <NEW_LINE> for num in nums: <NEW_LINE> <INDENT> solution += ([current + [num] for current in solution]) <NEW_LINE> <DEDENT> return solution
link : https://leetcode.com/problems/subsets/discuss/527606/Several-python-solution-w-Explanation-and-Demo #2: Element adding Base case is empty set: [ [ ] ] Build all subsets from base-case in bottom-up, add one element for each iteration. Take nums = [1,2,3] for example. Initialization of solution = [ [ ] ] # emp...
62598f7f8a43f66fc4bf1b89
class PassthroughTransformer(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def fit(self, X, y): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def transform(self, X): <NEW_LINE> <INDENT> return X
Takes Inputs and does nothing to them
62598f7fd10714528d69d8d9
class iloc(object): <NEW_LINE> <INDENT> def __init__(self, dataset): <NEW_LINE> <INDENT> self.dataset = dataset <NEW_LINE> <DEDENT> def __getitem__(self, index): <NEW_LINE> <INDENT> index = util.wrap_tuple(index) <NEW_LINE> if len(index) == 1: <NEW_LINE> <INDENT> index = (index[0], slice(None)) <NEW_LINE> <DEDENT> elif...
iloc is small wrapper object that allows row, column based indexing into a Dataset using the ``.iloc`` property. It supports the usual numpy and pandas iloc indexing semantics including integer indices, slices, lists and arrays of values. For more information see the ``Dataset.iloc`` property docstring.
62598f7fd99f1b3c44d050b7
class email_data(models.Model): <NEW_LINE> <INDENT> sender = models.EmailField() <NEW_LINE> recipient = models.EmailField() <NEW_LINE> subject = models.CharField(max_length=70) <NEW_LINE> body = models.TextField() <NEW_LINE> send_time = models.DateTimeField(default=now, blank=True) <NEW_LINE> cc_myself = models.Boole...
DB table to store all e-mail communication. In this table I will store the followin sender -- Sender's email address receiver -- Receiver's email address subject -- Subject of the Message body -- Body of the message send_time -- Timestamp when the message was sent email_tag -- Tag used for this messag...
62598f7f45492302aabfbee8
class CmdDefend(Command): <NEW_LINE> <INDENT> key = "defend" <NEW_LINE> aliases = ["def"] <NEW_LINE> help_category = "combat" <NEW_LINE> def func(self): <NEW_LINE> <INDENT> if not self.args: <NEW_LINE> <INDENT> self.caller.msg("Usage: defend <target>") <NEW_LINE> return <NEW_LINE> <DEDENT> target = self.caller.search(s...
Usage: defend <target> defend the given enemy with your current weapon/shield.
62598f7f50485f2cf55da97c
class RecipeBaseSerializerV6(ModelIdSerializer): <NEW_LINE> <INDENT> recipe_type = RecipeTypeBaseSerializerV6() <NEW_LINE> recipe_type_rev = ModelIdSerializer() <NEW_LINE> event = ModelIdSerializer()
Converts recipe model fields to REST output.
62598f7f30c21e258be98213