code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TestDumper(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.local_assets = TestAssets.generate() <NEW_LINE> <DEDENT> def test_dump(self): <NEW_LINE> <INDENT> dumper = Dumper(NativeDriver(None)) <NEW_LINE> path = dumper.dump(self.local_assets['block'][0]) <NEW_LINE> f = h5py.File(p...
Unit tests for the Dumper module.
62598ef0dc8b845886d51da2
class RNNPredictorBuildTest(tf.test.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> tf.reset_default_graph() <NEW_LINE> <DEDENT> @unittest.skipIf(0 not in tests_to_run, "Skipping") <NEW_LINE> def test_build(self): <NEW_LINE> <INDENT> print("\nTest 1: RNNPredictor build") <NEW_LINE> PredictorRNN(inpu...
TODO: Write these in terms of self.Assert...
62598ef0d7e4931a7ef3a878
class Movie(models.Model): <NEW_LINE> <INDENT> movie_code = models.IntegerField('映画コード', primary_key=True) <NEW_LINE> title = models.CharField('映画タイトル', max_length=500) <NEW_LINE> open_date = models.CharField('公開日', max_length=20) <NEW_LINE> description = models.CharField('概要', max_length=1000) <NEW_LINE> director = mo...
映画モデル: code: int - 主キー title: string - 映画タイトル open_date: datetime - 公開日 created: datetime - 作成日
62598ef032920d7e50bc480b
class Message(object): <NEW_LINE> <INDENT> def __init__(self, prefix=None, command=None, params=None): <NEW_LINE> <INDENT> self.prefix = prefix <NEW_LINE> self.command = command.upper() if command is not None else command <NEW_LINE> self.params = params or [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def servername(self...
Parses the server message and provides access to its properties. Properties you can access are the same as constructor parameters. Additionaly servername and nickname are available to quickly check the source of a message. prefix: message prefix. Prefix is None if not present in the message. command: message command ...
62598ef0236d856c2adc8805
class AlanineDipeptideImplicit(TestSystem): <NEW_LINE> <INDENT> def __init__(self, constraints=app.HBonds): <NEW_LINE> <INDENT> prmtop_filename = get_data_filename("data/alanine-dipeptide-gbsa/alanine-dipeptide.prmtop") <NEW_LINE> crd_filename = get_data_filename("data/alanine-dipeptide-gbsa/alanine-dipeptide.crd") <NE...
Alanine dipeptide ff96 in OBC GBSA implicit solvent. Parameters ---------- constraints : optional, default=simtk.openmm.app.HBonds Examples -------- Create alanine dipeptide with constraints on bonds to hydrogen >>> alanine = AlanineDipeptideImplicit() >>> (system, positions) = alanine.system, alanine.positions
62598ef04c34283577618ac3
class SequenceRepository(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "SequenceRepository" <NEW_LINE> def __init__(self, jsondict=None, strict=True, **kwargs): <NEW_LINE> <INDENT> self.datasetId = None <NEW_LINE> self.name = None <NEW_LINE> self.readsetId = None <NEW_LINE> self.type = None <NEW...
External repository which contains detailed report related with observedSeq in this resource. Configurations of the external repository. The repository shall store target's observedSeq or records related with target's observedSeq.
62598ef056b00c62f0fb10b1
class UppercaseMarkupFilter(MarkupFilter): <NEW_LINE> <INDENT> title = 'UppercaseFilter' <NEW_LINE> def render(self, text, **kwargs): <NEW_LINE> <INDENT> return text.upper()
Custom filter that makes all the text uppercase.
62598ef07047854f4633dbb0
class Message(Model): <NEW_LINE> <INDENT> doc_type = 'message' <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(Message, self).__init__(**kwargs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def wrap(cls, data): <NEW_LINE> <INDENT> return cls(_d=data) <NEW_LINE> <DEDENT> def to_json(self): <NEW_LINE> <...
A Message object
62598ef07d847024c075abac
@admin.register(HourStatistics) <NEW_LINE> class HourStatisticsAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> ordering = ['-hour_start'] <NEW_LINE> list_display = ('hour_start', 'electricity_merged', 'electricity_returned_merged') <NEW_LINE> list_filter = ( ('hour_start', DateFieldListFilter), )
Read only model.
62598ef02c8b7c6e89bd1fa0
class DocOptNode(object): <NEW_LINE> <INDENT> def __init__(self, name, option=None): <NEW_LINE> <INDENT> field_type = TYPE_FIELDS.get(option.type) <NEW_LINE> if field_type is None: <NEW_LINE> <INDENT> field_types = [i for i in fields.keys() if i is not None and issubclass(type(option.type), i)] <NEW_LINE> if len(field_...
This class takes an argument parser entry and assigns it to a Build spec
62598ef07d847024c075abad
class _OrderedDictNumpyFeedFn(object): <NEW_LINE> <INDENT> def __init__(self, placeholders, ordered_dict_of_arrays, batch_size, random_start=False, seed=None, num_epochs=None): <NEW_LINE> <INDENT> if len(placeholders) != len(ordered_dict_of_arrays) + 1: <NEW_LINE> <INDENT> raise ValueError("Expected {} placeholders; go...
Creates feed dictionaries from `OrderedDict`s of numpy arrays.
62598ef08e7ae83300ee786e
class IContent: <NEW_LINE> <INDENT> def get_subject(self) -> str: <NEW_LINE> <INDENT> raise NotImplementedError('TBI') <NEW_LINE> <DEDENT> def get_html_body(self) -> str: <NEW_LINE> <INDENT> raise NotImplementedError('TBI') <NEW_LINE> <DEDENT> def get_plain_body(self) -> str: <NEW_LINE> <INDENT> raise NotImplementedErr...
* Interface which describes email content which will be sent. * Concrete implementation in on implementing class.
62598ef04f88993c371ef8d8
class data(VegaSchema): <NEW_LINE> <INDENT> _schema = {'$ref': '#/refs/data'} <NEW_LINE> _rootschema = Root._schema <NEW_LINE> def __init__(self, data=Undefined, field=Undefined, sort=Undefined, **kwds): <NEW_LINE> <INDENT> super(data, self).__init__(data=data, field=field, sort=sort, **kwds)
data schema wrapper Mapping(required=[]) Attributes ---------- data : oneOf(string, Mapping(required=[fields])) field : oneOf(string, List(string), Mapping(required=[parent]), List(Mapping(required=[parent]))) sort : oneOf(boolean, Mapping(required=[]))
62598ef0dd821e528d6d771e
class ConvertToMP4(FFMPEGCommand): <NEW_LINE> <INDENT> vcodec_options = "libx264 -profile:v high -preset slow -b:v 500k -maxrate 500k" " -bufsize 1000k -vf scale=480:-1 -threads 0" <NEW_LINE> acodec_options = "libfdk_aac -b:a 128k"
converts audio to AAC in a MP4 container
62598ef071ff763f4b5e5f3d
class BulkFeedbackPassedFailedView(AbstractBulkFeedbackListView): <NEW_LINE> <INDENT> def get_filterlist_url(self, filters_string): <NEW_LINE> <INDENT> return self.request.cradmin_app.reverse_appurl( 'bulk-feedback-passedfailed-filter', kwargs={'filters_string': filters_string}) <NEW_LINE> <DEDENT> def get_target_rende...
Handles bulkfeedback for assignment with passed/failed grading system.
62598ef0a17c0f6771d5aa33
class TruncatedZipfDist(DiscreteDist): <NEW_LINE> <INDENT> def __init__(self, alpha=1.0, n=1000, seed=None): <NEW_LINE> <INDENT> if alpha <= 0: <NEW_LINE> <INDENT> raise ValueError('alpha must be positive') <NEW_LINE> <DEDENT> if n < 0: <NEW_LINE> <INDENT> raise ValueError('n must be positive') <NEW_LINE> <DEDENT> pdf ...
Implements a truncated Zipf distribution, i.e. a Zipf distribution with a finite population, which can hence take values of alpha > 0.
62598ef026068e7796d4b13b
class ShortThrower(ThrowerAnt): <NEW_LINE> <INDENT> name = 'Short' <NEW_LINE> food_cost = 2 <NEW_LINE> implemented = True <NEW_LINE> max_range = 3
A ThrowerAnt that only throws leaves at Bees at most 3 places away.
62598ef02ae34c7f260a98c7
class EDTestSuitePluginBioSaxsProcessOneFilev1_0(EDTestSuite): <NEW_LINE> <INDENT> def process(self): <NEW_LINE> <INDENT> self.addTestCaseFromName("EDTestCasePluginUnitBioSaxsProcessOneFilev1_0") <NEW_LINE> self.addTestCaseFromName("EDTestCasePluginExecuteBioSaxsProcessOneFilev1_0") <NEW_LINE> self.addTestCaseFromName(...
This is the test suite for EDNA plugin BioSaxsProcessOneFilev1_0 It will run subsequently all unit tests and execution tests.
62598ef0167d2b6e312b5779
class NamedArgumentTest(BitsendTestFramework): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.setup_clean_chain = False <NEW_LINE> self.num_nodes = 1 <NEW_LINE> <DEDENT> def setup_network(self, split=False): <NEW_LINE> <INDENT> self.nodes = start_nodes(self.num_nodes, sel...
Test named arguments on RPC calls.
62598ef0bd1bec0571e144ba
class ProcessHeaderMidware(): <NEW_LINE> <INDENT> def process_request(self, request, spider): <NEW_LINE> <INDENT> ua = random.choice(agents) <NEW_LINE> spider.logger.info(msg='now entring download midware') <NEW_LINE> if ua: <NEW_LINE> <INDENT> request.headers['User-Agent'] = ua <NEW_LINE> spider.logger.info( u'User-Ag...
process request add request info
62598ef032920d7e50bc480d
class ApproximateDateField(models.CharField, metaclass=models.SubfieldBase): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> kwargs['max_length'] = 10 <NEW_LINE> super(ApproximateDateField, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def to_python(self, value): <NEW_LINE> <INDENT> i...
A model field to store ApproximateDate objects in the database (as a CharField because MySQLdb intercepts dates from the database and forces them to be datetime.date()s.
62598ef08e7ae83300ee786f
class ClassBasedTraitType(TraitType): <NEW_LINE> <INDENT> def _resolve_string(self, string): <NEW_LINE> <INDENT> return import_item(string)
A trait with error reporting and string -> type resolution for Type, Instance and This.
62598ef07d847024c075abae
class ConfigExtension(command.CommandExtension): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def defaultConfig(): <NEW_LINE> <INDENT> config = command.CommandExtension.defaultConfig() <NEW_LINE> return config <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> command.CommandExtension.__init__...
Allows the configuration items of objects to be changes on a per-page basis. TODO: This should provide a means for updating configuration for all objects, including Extension, Translator, and Reader. Currently, this only works for the Renderer, which was the most immediate need.
62598ef08a43f66fc4bf0954
class Game(ndb.Model): <NEW_LINE> <INDENT> board = ndb.PickleProperty(required=True) <NEW_LINE> next_move = ndb.KeyProperty(required=True) <NEW_LINE> user_x = ndb.KeyProperty(required=True, kind='User') <NEW_LINE> user_o = ndb.KeyProperty(required=True, kind='User') <NEW_LINE> game_over = ndb.BooleanProperty(required=T...
Game object
62598ef01b99ca400228e8fe
class ExtendAction(argparse.Action): <NEW_LINE> <INDENT> def __call__(self, parser, namespace, values, option_string=None): <NEW_LINE> <INDENT> items = getattr(namespace, self.dest) <NEW_LINE> items = [] if items is None else items <NEW_LINE> for value in values: <NEW_LINE> <INDENT> if isinstance(value, list): <NEW_LIN...
Support argument types that are lists and can be specified multiple times.
62598ef0f548e778e5969d6c
class _Expression(object): <NEW_LINE> <INDENT> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if cls is _Expression: <NEW_LINE> <INDENT> raise TypeError("Expression class may not be instantiated") <NEW_LINE> <DEDENT> return object.__new__(cls, *args, **kwargs) <NEW_LINE> <DEDENT> def evaluate(self): <NEW_LINE> ...
This is an abstract class for every class that aims to implement a math expression;
62598ef091f36d47f2230294
class DataPieceEditor(QtWidgets.QComboBox): <NEW_LINE> <INDENT> valueChanged = QtCore.pyqtSignal() <NEW_LINE> def __init__(self,value,options): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._updateBox(value) <NEW_LINE> self.currentIndexChanged.connect(self.valueChanged) <NEW_LINE> application.dispatcher.connec...
Editor for options of type 'datapiece'.
62598ef0f9cc0f698b1c46bf
class NotSetType(object): <NEW_LINE> <INDENT> pass
use when None is a valid value
62598ef016aa5153ce3fece1
class LacpFacts(object): <NEW_LINE> <INDENT> def __init__(self, module, subspec="config", options="options"): <NEW_LINE> <INDENT> self._module = module <NEW_LINE> self.argument_spec = LacpArgs.argument_spec <NEW_LINE> spec = deepcopy(self.argument_spec) <NEW_LINE> if subspec: <NEW_LINE> <INDENT> if options: <NEW_LINE> ...
The iosxr lacp fact class
62598ef0851cf427c66b6aa5
class Solution(object): <NEW_LINE> <INDENT> def countAndSay(self, n): <NEW_LINE> <INDENT> return self._countAndSay('1', n-1) <NEW_LINE> <DEDENT> def _countAndSay(self, s, remaining_count): <NEW_LINE> <INDENT> if remaining_count <= 0: <NEW_LINE> <INDENT> return s <NEW_LINE> <DEDENT> curr = s[0] <NEW_LINE> count = 1 <NEW...
>>> solution = Solution() >>> solution.countAndSay(1) '1' >>> solution.countAndSay(2) '11' >>> solution.countAndSay(3) '21' >>> solution.countAndSay(4) '1211' >>> solution.countAndSay(5) '111221'
62598ef0377c676e912f6152
class Piano(IntEnum): <NEW_LINE> <INDENT> AcousticGrandPiano = 0 <NEW_LINE> BrightAcousticPiano = 1 <NEW_LINE> ElectricGrandPiano = 2 <NEW_LINE> Honky_tonkPiano = 3 <NEW_LINE> ElectricPiano1 = 4 <NEW_LINE> ElectricPiano2 = 5 <NEW_LINE> Harpsichord = 6 <NEW_LINE> Clavinet_stylizedasClavi = 7
Only pianos.
62598ef03d592f4c4edb96cd
class OpenLavaExecutor(interface.Executor): <NEW_LINE> <INDENT> def __init__(self, lava_controller): <NEW_LINE> <INDENT> super(OpenLavaExecutor, self).__init__() <NEW_LINE> self.lava_ctrl = lava_controller <NEW_LINE> self.task = None <NEW_LINE> self.task_data = None <NEW_LINE> self.driver = None <NEW_LINE> <DEDENT> def...
OpenLava Mesos executor.
62598ef0fff4ab517ebcbfb9
class BaseMiddleware(object): <NEW_LINE> <INDENT> def process_request(self, request, crawler, downloader): <NEW_LINE> <INDENT> return request <NEW_LINE> <DEDENT> def process_response(self, response, crawler, downloader): <NEW_LINE> <INDENT> return response <NEW_LINE> <DEDENT> def process_exception(self, exception, craw...
Middleware interface
62598ef0a219f33f346c5014
class _ThreadingMixIn(SocketServer.ThreadingMixIn, object): <NEW_LINE> <INDENT> def process_request_thread(self, request, client_address): <NEW_LINE> <INDENT> logger.debug("thread started for client %r", client_address) <NEW_LINE> super(_ThreadingMixIn, self).process_request_thread(request, client_address)
SocketServer.ThreadingMixIn as a new-style class.
62598ef001c39578d7f11585
class InterfaceError(P24Exception): <NEW_LINE> <INDENT> def __init__(self, kmsg): <NEW_LINE> <INDENT> self.kmsg = kmsg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.kmsg
Module used wrongly
62598ef092d797404e387f6c
class GreedyAI(AI): <NEW_LINE> <INDENT> def make_placement(self): <NEW_LINE> <INDENT> best_fish = 0 <NEW_LINE> best_pos = None <NEW_LINE> for pos, tile in self.iterate_tiles(): <NEW_LINE> <INDENT> if tile.broken: <NEW_LINE> <INDENT> continue <NEW_LINE> <DEDENT> if tile.fish > best_fish: <NEW_LINE> <INDENT> best_fish = ...
A direct translation of the example greedy solution.
62598ef099cbb53fe682f68f
class Zorba(object): <NEW_LINE> <INDENT> SUNDAY = 6 <NEW_LINE> never_on = SUNDAY <NEW_LINE> msg = 'Never on a Sunday' <NEW_LINE> def __call__(self, node, value): <NEW_LINE> <INDENT> if value.weekday() == self.never_on: <NEW_LINE> <INDENT> raise colander.Invalid(node, self.msg)
Forbid setting a date value to a particular day of the week.
62598ef02c8b7c6e89bd1fa4
class Thing1(ComplainingEnum): <NEW_LINE> <INDENT> pass
See L{ComplainingEnum}
62598ef08e7ae83300ee7871
class GrpcGatewayRouteMatch(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "Hostname": (GatewayRouteHostnameMatch, False), "Metadata": ([GrpcGatewayRouteMetadata], False), "ServiceName": (str, False), }
`GrpcGatewayRouteMatch <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutematch.html>`__
62598ef08a43f66fc4bf0956
class build_py(_build_py): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> ast_gen = get_ast_gen() <NEW_LINE> ast_gen.generate(path_to_ast_definitions, path_to_ast_definitions) <NEW_LINE> _build_py.run(self)
A customized version to build the AST definition files
62598ef0d486a94d0ba2a7b0
class ElastircSearchResultFileTemplate(template.Element): <NEW_LINE> <INDENT> loader = template.XMLFile(FilePath('templates/search-result-file.xhtml')) <NEW_LINE> def __init__(self, logfile, hits): <NEW_LINE> <INDENT> template.Element.__init__(self) <NEW_LINE> self.logfile = logfile <NEW_LINE> self.hits = hits <NEW_LIN...
A template for displaying the all the matches for a particular log file.
62598ef057b8e32f525074f5
class DivergentBeamGeometry(Geometry): <NEW_LINE> <INDENT> def src_position(self, angle): <NEW_LINE> <INDENT> raise NotImplementedError('abstract method') <NEW_LINE> <DEDENT> def det_to_src(self, angle, dparam, normalized=True): <NEW_LINE> <INDENT> if self.motion_params.ndim == 1: <NEW_LINE> <INDENT> squeeze_angle = (n...
Abstract divergent beam geometry class. A geometry characterized by the presence of a point-like ray source. In 2D such a geometry is usually called "fan beam geometry", while in 3D one speaks of "cone beam geometries".
62598ef091f36d47f2230295
class UpdatesStaticCommand(UpdatesCommand): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(UpdatesStaticCommand, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def start(self, notes=None): <NEW_LINE> <INDENT> assert self.stages, "Stages must be set before starting." <NEW_LINE> a...
Command that updates the UpdateProgressLog table, having a well-defined, sequential static list of stages.
62598ef04527f215b58e86e1
class SimpleMessageArea(gtk.HBox): <NEW_LINE> <INDENT> def __init__(self, message, buttons=()): <NEW_LINE> <INDENT> gtk.HBox.__init__(self, spacing=6) <NEW_LINE> self.set_border_width(6) <NEW_LINE> self.__in_style_set = False <NEW_LINE> self.connect('style-set', self.__style_set) <NEW_LINE> self.connect('expose-event',...
A simple, yellow message area. Inspired by gedit. Original C source code: http://svn.gnome.org/viewvc/gedit/trunk/gedit/gedit-message-area.c
62598ef060cbc95b06362b23
class WaqiSensor(SensorEntity): <NEW_LINE> <INDENT> _attr_icon = ATTR_ICON <NEW_LINE> _attr_native_unit_of_measurement = ATTR_UNIT <NEW_LINE> _attr_device_class = DEVICE_CLASS_AQI <NEW_LINE> _attr_state_class = STATE_CLASS_MEASUREMENT <NEW_LINE> def __init__(self, client, station): <NEW_LINE> <INDENT> self._client = cl...
Implementation of a WAQI sensor.
62598ef0bd1bec0571e144bc
class RetrieveInstallationInputSet(InputSet): <NEW_LINE> <INDENT> def set_ObjectID(self, value): <NEW_LINE> <INDENT> super(RetrieveInstallationInputSet, self)._set_input('ObjectID', value) <NEW_LINE> <DEDENT> def set_ApplicationID(self, value): <NEW_LINE> <INDENT> super(RetrieveInstallationInputSet, self)._set_input('A...
An InputSet with methods appropriate for specifying the inputs to the RetrieveInstallation Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598ef0460517430c430c6c
class NonZeroError(NumberError): <NEW_LINE> <INDENT> pass
NonZeroError Class
62598ef097e22403b38396d3
class ComputeVpnTunnelsAggregatedListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) <NEW_LINE> orderBy = _messages.StringField(3) <NEW_LINE> pageToken = _messages.StringField(4) <NEW_LINE>...
A ComputeVpnTunnelsAggregatedListRequest object. Fields: filter: Sets a filter {expression} for filtering listed resources. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are suppo...
62598ef0090684286d592ad4
class TestController(object): <NEW_LINE> <INDENT> application_under_test = 'main_without_authn' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> conf_dir = config.here <NEW_LINE> wsgiapp = loadapp('config:test.ini#%s' % self.application_under_test, relative_to=conf_dir) <NEW_LINE> self.app = TestApp(wsgiapp) <NEW_LINE> ...
Base functional test case for the controllers. The ZOJStat application instance (``self.app``) set up in this test case (and descendants) has authentication disabled, so that developers can test the protected areas independently of the :mod:`repoze.who` plugins used initially. This way, authentication can be tested o...
62598ef0091ae356687033fc
class User(AbstractUser): <NEW_LINE> <INDENT> name = CharField(_("Name of User"), blank=True, max_length=255) <NEW_LINE> first_name = None <NEW_LINE> last_name = None <NEW_LINE> stripe_customer_id = models.CharField(max_length=100, blank=True, null=True) <NEW_LINE> def get_absolute_url(self): <NEW_LINE> <INDENT> return...
Default user for djgumroad.
62598ef001c39578d7f11587
class ChangeJobStatus(LoginRequiredMixin, View): <NEW_LINE> <INDENT> def post(self, request, pk): <NEW_LINE> <INDENT> job = get_object_or_404(request.user.job_listings, pk=pk) <NEW_LINE> job.status = self.new_status <NEW_LINE> job.save() <NEW_LINE> messages.add_message(self.request, messages.SUCCESS, self.success_messa...
Abstract class to change a job's status; see the concrete implentations below.
62598ef0d486a94d0ba2a7b1
class Model(Structure): <NEW_LINE> <INDENT> _fields_ = [ ('transform', Matrix), ('meshCount', c_int), ('meshes', POINTER(Mesh)), ('materialCount', c_int), ('materials', POINTER(Material)), ('meshMaterial', POINTER(c_int)), ('boneCount', c_int), ('bones', POINTER(BoneInfo)), ('bindPose', POINTER(Transform)), ]
Model type
62598ef0097d151d1a2bf803
class ProjectValidationCache(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'errors': 'list[ProjectError]', 'project_digest': 'str', 'models_not_validated': 'list[ModelsNotValidated]', 'stale': 'bool' } <NEW_LINE> self.attribute_map = { 'errors': 'errors', 'project_digest': ...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ef07d43ff24874267ed
class SimilarChecker(BaseChecker, Similar): <NEW_LINE> <INDENT> __implements__ = (IRawChecker,) <NEW_LINE> name = 'similarities' <NEW_LINE> msgs = MSGS <NEW_LINE> options = (('min-similarity-lines', {'default' : 4, 'type' : "int", 'metavar' : '<int>', 'help' : 'Minimum lines number of a similarity.'}), ('ignore-comment...
checks for similarities and duplicated code. This computation may be memory / CPU intensive, so you should disable it if you experiment some problems.
62598ef030bbd72246468419
class TesterAService(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_testers(countries=None, devices=None): <NEW_LINE> <INDENT> assert isinstance(countries, list) or countries is None, type(countries) <NEW_LINE> assert isinstance(devices, list) or devices is None, type(list) <NEW_LINE> assert countries is...
Application service designed to retrieve tester data
62598ef0a17c0f6771d5aa38
class FighterWing(AbstractWing): <NEW_LINE> <INDENT> def show(self): <NEW_LINE> <INDENT> self.fancy_print("Fighter Wing ^")
Wing of fighter. With implemented functionality for fighter.
62598ef021bff66bcd721439
class Resource(GeoRefModel, DictMixin): <NEW_LINE> <INDENT> name = models.CharField(max_length=256, default=_('Resource without name')) <NEW_LINE> kind = models.ForeignKey(ResourceKind, null=True, blank=True) <NEW_LINE> description = models.TextField() <NEW_LINE> contact = models.TextField(null=True, blank=True) <NEW_L...
Resources model
62598ef032920d7e50bc4810
class Area(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.AreaId = None <NEW_LINE> self.AreaName = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.AreaId = params.get("AreaId") <NEW_LINE> self.AreaName = params.get("AreaName") <NEW_LINE> memeber_set = ...
区域信息
62598ef04428ac0f6e656d31
class ApplicationUsageFormatterTest(test_lib.EventFormatterTestCase): <NEW_LINE> <INDENT> def testInitialization(self): <NEW_LINE> <INDENT> event_formatter = appusage.ApplicationUsageFormatter() <NEW_LINE> self.assertIsNotNone(event_formatter) <NEW_LINE> <DEDENT> def testGetFormatStringAttributeNames(self): <NEW_LINE> ...
Tests for the Mac OS X Application usage event formatter.
62598ef0796e427e5384cf7c
class Executable(ProfileShortcuts): <NEW_LINE> <INDENT> id = 0 <NEW_LINE> def __init__(self, name, namespace=None, os='linux', arch='x86_64', installed=True, version=None): <NEW_LINE> <INDENT> self.logical_name = name + "_ID%s" % str(Executable.id) <NEW_LINE> Executable.id += 1 <NEW_LINE> self.namespace = namespace <NE...
The workflow representation of an Executable
62598ef099fddb7c1ca621f6
class DriveLayoutTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_drive_layout(self): <NEW_LINE> <INDENT> drive_layout_obj = DriveLayout() <NEW_LINE> self.assertNotEqual(drive_layout_obj, None)
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ef0baa26c4b54d4dab0
class ConnectionContext(rpc_common.Connection): <NEW_LINE> <INDENT> def __init__(self, conf, connection_pool, pooled=True, server_params=None): <NEW_LINE> <INDENT> self.connection = None <NEW_LINE> self.conf = conf <NEW_LINE> self.connection_pool = connection_pool <NEW_LINE> if pooled: <NEW_LINE> <INDENT> self.connecti...
The class that is actually returned to the caller of create_connection(). This is essentially a wrapper around Connection that supports 'with'. It can also return a new Connection, or one from a pool. The function will also catch when an instance of this class is to be deleted. With that we can return Connections t...
62598ef05fdd1c0f98e5c786
class LexicalAnalysis: <NEW_LINE> <INDENT> normal = 'normal' <NEW_LINE> indentifer = 'indentifer' <NEW_LINE> sign = 'sign' <NEW_LINE> annotation = 'annotation' <NEW_LINE> string = 'string' <NEW_LINE> regex = 'regex' <NEW_LINE> space = 'space' <NEW_LINE> def lexical_analysis(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <D...
Lexical part
62598ef0cc40096d616195ca
class DeletePropertyResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_NewAccessToken(self): <NEW_LINE> <INDENT> return self._output.get('NewAccessToken', None) <NEW_LINE> <DEDENT> def get_ResponseStatusCode(self): <NEW_LINE...
A ResultSet with methods tailored to the values returned by the DeleteProperty Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62598ef0be383301e0251fbe
class DrawingAttributesReplacedEventArgs(EventArgs): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def __new__(self, newDrawingAttributes, previousDrawingAttributes): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> NewDrawingAttributes = property(lambda self: object(), lambda self, v: None, lambda self: None) <NEW_LINE> Pr...
Provides data for the System.Windows.Controls.InkCanvas.DefaultDrawingAttributesReplaced event. DrawingAttributesReplacedEventArgs(newDrawingAttributes: DrawingAttributes, previousDrawingAttributes: DrawingAttributes)
62598ef04e4d562566370bf8
class Constant(models.Model): <NEW_LINE> <INDENT> name = models.SlugField(_('name')) <NEW_LINE> value = models.TextField(_('value')) <NEW_LINE> description = models.TextField(_('description')) <NEW_LINE> site = models.ForeignKey(Site, editable=False, default=settings.SITE_ID) <NEW_LINE> @classmethod <NEW_LINE> def get_...
define application constants
62598ef0be8e80087fbbd834
class ListTopics(Choreography): <NEW_LINE> <INDENT> def __init__(self, temboo_session): <NEW_LINE> <INDENT> Choreography.__init__(self, temboo_session, '/Library/Amazon/SNS/ListTopics') <NEW_LINE> <DEDENT> def new_input_set(self): <NEW_LINE> <INDENT> return ListTopicsInputSet() <NEW_LINE> <DEDENT> def _make_result_set(...
Create a new instance of the ListTopics Choreography. A TembooSession object, containing a valid set of Temboo credentials, must be supplied.
62598ef08a43f66fc4bf0958
class Verification(object): <NEW_LINE> <INDENT> def verify_info(self, sig, info): <NEW_LINE> <INDENT> import md5 <NEW_LINE> m = md5.new(info) <NEW_LINE> return sig == m.hexdigest() <NEW_LINE> <DEDENT> def verify_ip(self, ip): <NEW_LINE> <INDENT> return bool((ip in TRUST_IPS))
定义了一些验证方法。
62598ef07d847024c075abb3
class ParserConfig(object): <NEW_LINE> <INDENT> def __init__(self, reference_resolver, duplicates, duplicate_of, tree, index, reverse_index, guide_index, base_dir): <NEW_LINE> <INDENT> self.reference_resolver = reference_resolver <NEW_LINE> self.duplicates = duplicates <NEW_LINE> self.duplicate_of = duplicate_of <NEW_L...
Stores all indexes required to parse the docs.
62598ef0f548e778e5969d70
class Dimensions(engine_internal.Dimensions): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> engine_internal.Dimensions.__init__(self, *args) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.toString()
Represent the topology of an N-dimensional region Basically, it is a list of integers such as: [4, 8, 6] In this example the topology is a 3 dimensional region with 4 x 8 x 6 nodes. You can initialize it with a list of dimensions or with no arguments and then append dimensions.
62598ef0a8370b77170eebc8
class Predictor(nn.Module): <NEW_LINE> <INDENT> def __init__(self, dim, num_types): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.linear = nn.Linear(dim, num_types, bias=False) <NEW_LINE> nn.init.xavier_normal_(self.linear.weight) <NEW_LINE> <DEDENT> def forward(self, data, non_pad_mask): <NEW_LINE> <INDENT> o...
Prediction of next event type.
62598ef0b7558d5895461e2c
class BlinkerWrapper(ComponentWrapper): <NEW_LINE> <INDENT> def __init__(self, tag, xmldoc, tarsqi_instance): <NEW_LINE> <INDENT> ComponentWrapper.__init__(self, tag, xmldoc, tarsqi_instance) <NEW_LINE> self.component_name = BLINKER <NEW_LINE> self.CREATION_EXTENSION = 'bli.i' <NEW_LINE> self.RETRIEVAL_EXTENSION = 'bli...
Wrapper for Blinker. See ComponentWrapper for more details on how component wrappers work and on the instance variables.
62598ef016aa5153ce3fece5
class Admin(User): <NEW_LINE> <INDENT> def __init__(self, first_name,last_name,gender,age): <NEW_LINE> <INDENT> super().__init__(first_name,last_name,gender,age) <NEW_LINE> self.privileges = Privileges()
docstring for Admin
62598ef0dd821e528d6d7724
class Game (object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def make(db, player, game): <NEW_LINE> <INDENT> pstat = game_stats(db, game, player) <NEW_LINE> team = player_team_in_game(db, game, player) <NEW_LINE> return Game(db, game, team, pstat) <NEW_LINE> <DEDENT> def __init__(self, db, game, team, pstat): <NEW...
Represents a row of player statistics corresponding to a single game.
62598ef03346ee7daa336a5a
class Aflex(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.required = [ "aflex"] <NEW_LINE> self.b_key = "aflex" <NEW_LINE> self.a10_url="/axapi/v3/export-periodic/aflex/{aflex}" <NEW_LINE> self.DeviceProxy = "" <NEW_LINE> self.aflex = "" <NEW_LI...
Class Description:: aFleX Script Source File. Class aflex supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param aflex: {"description": "aFleX Script Source File", "format": "string-rlx", "minLength": 1, "optional": false, "maxLength": 63, "type":...
62598ef0a8370b77170eebc9
class itkNeighborhoodOperatorImageFilterIUS3IUS3(itkImageToImageFilterAPython.itkImageToImageFilterIUS3IUS3): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor d...
Proxy of C++ itkNeighborhoodOperatorImageFilterIUS3IUS3 class
62598ef0e5267d203ee6a0ee
class UpdateOrderInstruction: <NEW_LINE> <INDENT> def __init__(self, betId: str, newPersistenceType: str): <NEW_LINE> <INDENT> self.bet_id = betId <NEW_LINE> self.new_persistence_type = newPersistenceType
:type bet_id: unicode :type new_persistence_type: unicode
62598ef0d268445f26638f82
@MetaborgReleng.subcommand("clean-update") <NEW_LINE> class MetaborgRelengCleanUpdate(cli.Application): <NEW_LINE> <INDENT> confirmPrompt = cli.Flag(names=['-y', '--yes'], default=False, help='Answer warning prompts with yes automatically') <NEW_LINE> depth = cli.SwitchAttr(names=['-d', '--depth'], default=None, argtyp...
Resets, cleans, and updates all submodules to the latest commit on the remote repository
62598ef0379a373c97d977dc
class CsCloudProvider(CloudProvider): <NEW_LINE> <INDENT> DOCKER_SIMULATOR_NAME = 'cloudstack-sim' <NEW_LINE> def __init__(self, args): <NEW_LINE> <INDENT> super(CsCloudProvider, self).__init__(args) <NEW_LINE> self.image = os.environ.get('ANSIBLE_CLOUDSTACK_CONTAINER', 'quay.io/ansible/cloudstack-test-container:1.4.0'...
CloudStack cloud provider plugin. Sets up cloud resources before delegation.
62598ef0baa26c4b54d4dab2
class Orbit2D: <NEW_LINE> <INDENT> def __init__(self,a,e,central,ν0=0): <NEW_LINE> <INDENT> if e >= 1 or e < 0 : <NEW_LINE> <INDENT> raise Exception("The eccentricity (e) should be in the range [0,1) (elliptical orbits only)") <NEW_LINE> <DEDENT> if central is not None: <NEW_LINE> <INDENT> if (a*(1-e)) < central.r : <N...
used for 2D simulations of the two-body problem and central-force problem
62598ef08da39b475be01993
class ImportManager(models.Manager): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> return super(ImportManager, self).get_queryset() .filter(action=self.model.IMPORT)
Shortcut for import queryset
62598ef0ff9c53063f518e46
class AcmeProblem(HttpProblem): <NEW_LINE> <INDENT> PREFIX = 'urn:ietf:params:acme:error:' <NEW_LINE> @property <NEW_LINE> def subproblems(self) -> List[HttpProblem]: <NEW_LINE> <INDENT> return [ HttpProblem.create(force(sub, dict)) for sub in self.problem.get('subproblems', []) ]
ACME problem, ACME §6.7
62598ef07047854f4633dbb8
class _XMLTestResult(unittest.TestResult): <NEW_LINE> <INDENT> def __init__(self, classname): <NEW_LINE> <INDENT> unittest.TestResult.__init__(self) <NEW_LINE> self._test_name = classname <NEW_LINE> self._start_time = None <NEW_LINE> self._tests = [] <NEW_LINE> self._error = None <NEW_LINE> self._failure = None <NEW_LI...
A test result class that stores result as XML. Used by XMLTestRunner.
62598ef0f9cc0f698b1c46c2
class Repositories(Base): <NEW_LINE> <INDENT> def __init__(self, cfg, org): <NEW_LINE> <INDENT> self.entity = "Repository" <NEW_LINE> super().__init__(cfg, org) <NEW_LINE> <DEDENT> def get_containers(self, r): <NEW_LINE> <INDENT> return self.search(None, **{"content_type": "docker", "product_name": f"{r} containers"}) ...
Forged Repositories object. Matches nailgun.entity.Repositories :param Base: forge.entities.Base :type Base: BaseClass :return: List of Repositories entities :rtype: list
62598ef085dfad0860cbee5a
class Student: <NEW_LINE> <INDENT> def __init__(self, first_name, last_name, age): <NEW_LINE> <INDENT> self.first_name = first_name <NEW_LINE> self.last_name = last_name <NEW_LINE> self.age = age <NEW_LINE> <DEDENT> def to_json(self, attrs=None): <NEW_LINE> <INDENT> if type(attrs) is list and attrs is not None: <NEW_LI...
Student class
62598ef07c178a314d78bc7d
class ManageUserCRUDL(SmartCRUDL): <NEW_LINE> <INDENT> model = User <NEW_LINE> model_name = 'Admin' <NEW_LINE> path = 'admin' <NEW_LINE> actions = ('create', 'update', 'list') <NEW_LINE> class Create(OrgPermsMixin, UserFormMixin, SmartCreateView): <NEW_LINE> <INDENT> fields = ('full_name', 'email', 'password', 'confirm...
CRUDL used only by superusers to manage users outside the context of an organization
62598ef0f548e778e5969d73
class AdjacencyClue(SubClue): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.numberOfAdjacentMines = 0 <NEW_LINE> self.reverse = False <NEW_LINE> <DEDENT> def update(self, minefield, gridRow, gridColumn): <NEW_LINE> <INDENT> self.numberOfAdjacentMines = 0 <NEW_LINE> <DEDENT> def updateFromAdjacentSqua...
Represents the Adjacency Clue
62598ef0aad79263cf42cff4
class MuntjacDialog(MuntjacWindow, AbstractTkDialog): <NEW_LINE> <INDENT> def create(self, parent): <NEW_LINE> <INDENT> self.widget = Window() <NEW_LINE> parent.addComponent(self.widget) <NEW_LINE> <DEDENT> def initialize(self): <NEW_LINE> <INDENT> super(MuntjacDialog, self).initialize() <NEW_LINE> self.widget.finished...
A Muntjac implementation of a Dialog. This class creates a simple top-level dialog.
62598ef07047854f4633dbb9
class Solution: <NEW_LINE> <INDENT> def maxAbsValExpr(self, arr1: List[int], arr2: List[int]) -> int: <NEW_LINE> <INDENT> L = len(arr1) <NEW_LINE> res = 0 <NEW_LINE> dp = [0] * L <NEW_LINE> for j in [-1,1]: <NEW_LINE> <INDENT> for k in [-1,1]: <NEW_LINE> <INDENT> for i in range(L): <NEW_LINE> <INDENT> dp[i] = arr1[i]*j...
max of |arr1[i] - arr1[j]| + |arr2[i] - arr2[j]| + |i - j|, aka: (+a1+a2+i) - (+b1+b2+j) (+a1-a2+i) - (+b1-b2+j) (-a1+a2+i) - (-b1+b2+j) (-a1-a2+i) - (-b1-b2+j) https://leetcode.com/problems/maximum-of-absolute-value-expression/discuss/340070/topic TODO: https://leetcode.com/problems/maximum-of-absolute-value-expressio...
62598ef0009cb60464cffd36
class _TokenizeDocumentFn(beam.DoFn): <NEW_LINE> <INDENT> def __init__(self, vocab_path = None, do_lower_case = True, spm_model_path = None): <NEW_LINE> <INDENT> self.vocab_path = vocab_path <NEW_LINE> self.do_lower_case = do_lower_case <NEW_LINE> self.spm_model_path = spm_model_path <NEW_LINE> <DEDENT> def setup(self)...
DoFn for tokenizing a `data_utils.BertDocument`.
62598ef055399d3f05624d0d
class RainbowColor(ColorFromPalette): <NEW_LINE> <INDENT> def guiCallback(self): <NEW_LINE> <INDENT> nodes = self.vf.getSelection() <NEW_LINE> if not nodes: <NEW_LINE> <INDENT> return 'Error' <NEW_LINE> <DEDENT> val = self.showForm('default', scrolledFrame = 1, width= 500, height = 200, force=1) <NEW_LINE> if val: <NEW...
The RainbowColor command colors molecules using a rainbow color map. Package : Pmv Module : colorCommands Class : RainbowColor Command : colorRainbow Synopsis: None <- colorRainbow(nodes, geomsToColor, ) nodes --- TreeNodeSet holding the current selection geomsToColor...
62598ef0dd821e528d6d7726
class FreeTextAnnotationResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'code': 'int', 'status': 'str', 'annotation': 'FreeTextAnnotation' } <NEW_LINE> attribute_map = { 'code': 'Code', 'status': 'Status', 'annotation': 'Annotation' } <NEW_LINE> def __init__(self, code=None, status=None, annotation=None): <NEW_...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ef0a05bb46b38489059
class OutputSimple(DeepCLRModule): <NEW_LINE> <INDENT> def __init__(self, input_dim: int, label_type: LabelType, mlp: List[int], linear: List[int], batch_norm: bool = False, dropout: bool = False, **_kwargs: Any): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._label_type = label_type <NEW_LINE> mlp_layers = [i...
Simple output module with mini-PointNet and fully connected layers.
62598ef021bff66bcd72143d
class EngineLoader(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def load(self, classname): <NEW_LINE> <INDENT> log.debug("attempting to load Decision Engine '%s'" % classname) <NEW_LINE> kls = self._get_class(classname) <NEW_LINE> if not kls: <NEW_LINE> <INDENT> raise Ex...
This class instantiates decision engine objects based on classname.
62598ef04527f215b58e86e6
class KeyboardInputKeyGenerator(AbstractCryptoKeyGenerator): <NEW_LINE> <INDENT> __slots__ = ('__password',) <NEW_LINE> @contract_epydoc <NEW_LINE> def __init__(self, password): <NEW_LINE> <INDENT> self.__password = password <NEW_LINE> <DEDENT> @contract_epydoc <NEW_LINE> def generate_IV(self, crc32): <NEW_LINE> <INDEN...
Key/IV generator based on the keyboard input. >>> gen = KeyboardInputKeyGenerator('love god sex') >>> iv = gen.generate_IV(0xFE00FFFF) >>> isinstance(iv, str) and len(iv) == AES_IV_SIZE True >>> key = gen.generate_key(0xFE00FFFF) >>> isinstance(key, str) and len(key) == AES_KEY_SIZE True
62598ef067a9b606de5447b5
class Timer(behaviour.Behaviour): <NEW_LINE> <INDENT> def __init__(self, name="Timer", duration=5.0): <NEW_LINE> <INDENT> super(Timer, self).__init__(name) <NEW_LINE> assert isinstance(duration, numbers.Real), "Timer: duration should be int or float, but you passed in %s" % type(duration) <NEW_LINE> self.duration = dur...
Simple timer class that is :py:data:`~py_trees.common.Status.RUNNING` until the timer runs out, at which point it is :data:`~py_trees.common.Status.SUCCESS`. The timer gets reset either upon entry (:meth:`~py_trees.behaviour.Behaviour.initialise`) if it hasn't already been set and gets cleared when it either runs out,...
62598ef066673b3332c2eb92
class LoadedModules(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.modules = [] <NEW_LINE> self.name2module = {} <NEW_LINE> self.module2entry = {} <NEW_LINE> self.module2name = {} <NEW_LINE> <DEDENT> def add(self, name, module, module_entry): <NEW_LINE> <INDENT> self.modules.append(module) <N...
Class representing modules in memory
62598ef03539df3088ecaa9b
class FireModeType(enum.IntEnum): <NEW_LINE> <INDENT> PROJECTILE = 0 <NEW_LINE> IRON_SIGHT = 1 <NEW_LINE> MELEE = 3 <NEW_LINE> TRIGGER_ITEM_ABILITY = 8 <NEW_LINE> THROWN = 12 <NEW_LINE> def __str__(self) -> str: <NEW_LINE> <INDENT> literals = ['Projectile', 'Iron Sight', 'Melee', 'Trigger Item Ability', 'Thrown'] <NEW_...
Specifies the type of action taken when a weapon is fired. The default fire mode type, ``PROJECTILE``, is used for hipfired or otherwise unaimed weapons. ``IRON_SIGHT`` is used when aiming down sights (ADS). ``MELEE`` is used for both quick knifing and equipped knives. ``THROWN`` is responsible for grenades and mines...
62598ef056ac1b37e63009d4
class SoapFault(SoCoException): <NEW_LINE> <INDENT> def __init__(self, faultcode, faultstring, detail=None): <NEW_LINE> <INDENT> self.faultcode = faultcode <NEW_LINE> self.faultstring = faultstring <NEW_LINE> self.detail = detail <NEW_LINE> self.detail_string = XML.tostring(detail) if detail is not None else '' <NEW_LI...
An exception encapsulating a SOAP Fault.
62598ef04f6381625f1988af
class ArxivStrings(GenericStrings): <NEW_LINE> <INDENT> cannotFindEntriesInFeed = "Key 'entries' not found in processed feed:\n%s" <NEW_LINE> cannotParseRSS = "Cannot parse arxiv RSS feed:\n%s" <NEW_LINE> cannotReadDict = "Something went wrong when reading the dictionary" <NEW_LINE> cannotReadEntryId = "Cannot read the...
Strings for the arxiv module
62598ef01b99ca400228e902