code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class HyperVReplicaAzureEventDetails(EventProviderSpecificDetails): <NEW_LINE> <INDENT> _validation = { 'instance_type': {'required': True}, } <NEW_LINE> _attribute_map = { 'instance_type': {'key': 'instanceType', 'type': 'str'}, 'container_name': {'key': 'containerName', 'type': 'str'}, 'fabric_name': {'key': 'fabricN...
Model class for event details of a HyperVReplica E2A event. All required parameters must be populated in order to send to Azure. :param instance_type: Required. Gets the class type. Overridden in derived classes.Constant filled by server. :type instance_type: str :param container_name: The container friendly name. :...
6259906d2ae34c7f260ac92d
class ConsumerAction(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self, action_str, params=None, try_num=0, max_try_num=0): <NEW_LINE> <INDENT> self.action_str = action_str <NEW_LINE> self.params = params <NEW_LINE> self.try_num = try_num <NEW_LINE> self.max_try_num = max_try_num <NEW_LI...
python中没有像java的抽象方法一说,所以这里定义的方法只是告诉继承该类的子类 需要实现哪些方法,类似定义了一个约束 这里为了实现类似java抽象方法,使用了abc库
6259906d2c8b7c6e89bd502b
class ImageIter(mx.io.DataIter): <NEW_LINE> <INDENT> def __init__(self, data_root, data_list, batch_size, data_shape, num_label, name=None): <NEW_LINE> <INDENT> super(ImageIter, self).__init__() <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.data_shape = data_shape <NEW_LINE> self.num_label = num_label <NEW_L...
Iterator class for generating captcha image data
6259906d23849d37ff8528f9
class MissingSConscriptWarning(Exception): <NEW_LINE> <INDENT> pass
Fake MissingSConscriptWarning
6259906d5fcc89381b266d79
class Assigment(Node): <NEW_LINE> <INDENT> def __init__(self, value, children): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.children = children <NEW_LINE> self.id = Node.newID() <NEW_LINE> <DEDENT> def evaluate(self, st): <NEW_LINE> <INDENT> _, declared_type, offset = st.getter(self.children[0].value) <NEW_L...
Value: "=" Children: [Identifier (String), Value (Boolean or Int)] Usage: Assigment("=", [identifier, Parser.parseRelExpression()])
6259906dac7a0e7691f73d2c
class CTLBB6OrbitInputForm(FlaskForm): <NEW_LINE> <INDENT> orbit = IntegerField( 'Orbit', ) <NEW_LINE> star = StringField( 'Star', validators=[Optional(), Regexp(STAR_REGEXP)] ) <NEW_LINE> submit = SubmitField('Submit') <NEW_LINE> def validate_orbit(self, field): <NEW_LINE> <INDENT> if isinstance(field.data, int): <NEW...
Input form for CT LBB6 orbit
6259906da17c0f6771d5d7cb
class LxPs(gdb.Command): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(LxPs, self).__init__("lx-ps", gdb.COMMAND_DATA) <NEW_LINE> <DEDENT> def invoke(self, arg, from_tty): <NEW_LINE> <INDENT> for task in task_lists(): <NEW_LINE> <INDENT> thread_info = task["stack"].cast(thread_info_type.get_type().p...
Dump Linux tasks.
6259906df548e778e596cdd2
class TestNonMatchingFaultInjection(xds_url_map_testcase.XdsUrlMapTestCase): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def client_init_config(rpc: str, metadata: str): <NEW_LINE> <INDENT> return 'EmptyCall', metadata <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def url_map_change( host_rule: HostRule, path_matcher: ...
EMPTY_CALL is not fault injected, so it should succeed.
6259906da219f33f346c804d
class ImageVisualizationBase(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> @abc.abstractmethod <NEW_LINE> def save(local_path, cluster_hdfs_path): <NEW_LINE> <INDENT> return
Abstract for image visualization
6259906d71ff763f4b5e8fec
class DispatchContext(object): <NEW_LINE> <INDENT> current = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._old_ctx = DispatchContext.current <NEW_LINE> <DEDENT> def query(self, target, workload_key, has_complex_op, dag, func_name): <NEW_LINE> <INDENT> ret = self._query_inside(target, workload_key, func_...
Base class of dispatch context.
6259906d7047854f46340bfb
class VerifyVersionCommand(install): <NEW_LINE> <INDENT> description = "verify that the git tag matches our version" <NEW_LINE> def run(self): <NEW_LINE> <INDENT> tag = os.getenv("CIRCLE_TAG") <NEW_LINE> if tag.lstrip("v") != VERSION: <NEW_LINE> <INDENT> info = f"Git tag: {tag} does not match the version of this app: {...
Custom command to verify that the git tag matches our version
6259906d009cb60464d02d7a
@python_2_unicode_compatible <NEW_LINE> class RackReservation(models.Model): <NEW_LINE> <INDENT> rack = models.ForeignKey('Rack', related_name='reservations', editable=False, on_delete=models.CASCADE) <NEW_LINE> units = ArrayField(models.PositiveSmallIntegerField()) <NEW_LINE> created = models.DateTimeField(auto_now_ad...
One or more reserved units within a Rack.
6259906d4428ac0f6e659d78
class Im(EmailImParent): <NEW_LINE> <INDENT> _qname = GDATA_TEMPLATE % 'im' <NEW_LINE> protocol = 'protocol'
The gd:im element. An instant messaging address associated with the containing entity.
6259906d16aa5153ce401d1f
class FinalError(RuntimeError): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> self.message = message
This error is raised when you assign to a final variable
6259906d4e4d562566373c4c
class Entities(CollectionBase): <NEW_LINE> <INDENT> find_valid_constrains = ['format','offset','limit','order_by', 'application','entity',] <NEW_LINE> findOne_valid_constrains = ['format', 'id'] <NEW_LINE> def __init__(self, key,secret,host,app_id): <NEW_LINE> <INDENT> self.consumer_key = key <NEW_LINE> self.consumer_s...
find() Return collection of Activity ** parameter application is required ** parameter deleted is to filter not-deleted app.
6259906d283ffb24f3cf50ee
class ArticlePeopleRelationship(Orderable, models.Model): <NEW_LINE> <INDENT> article = ParentalKey( 'ArticlePage', related_name='article_author_relationship' ) <NEW_LINE> author = models.ForeignKey( 'base.Author', related_name='author_article_relationship' ) <NEW_LINE> panels = [ SnippetChooserPanel('author') ]
This defines the relationship between the `People` within the `base` app and the BlogPage below. This allows People to be added to a BlogPage. We have created a two way relationship between BlogPage and People using the ParentalKey and ForeignKey
6259906de76e3b2f99fda247
class Card(ListableAPIResource, CreateableAPIResource, UpdateableAPIResource, DeletableAPIResource): <NEW_LINE> <INDENT> @property <NEW_LINE> def required_create_params(self): <NEW_LINE> <INDENT> return [ {'name': 'allowance', 'type': Allowance}, {'name': 'description', 'type': str}, {'name': 'is_virtual', 'type': bool...
Emburse Card Resource API DOC: https://www.emburse.com/api/v1/docs#card
6259906d8a43f66fc4bf39da
class Thread(HFAsk): <NEW_LINE> <INDENT> fid: str <NEW_LINE> subject: str <NEW_LINE> message: str <NEW_LINE> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return "threads"
Create a thread on a subforum
6259906da17c0f6771d5d7cc
class AdderTimetable: <NEW_LINE> <INDENT> def __init__( self, db_conn: 'asyncpg.Connection', status_handler: 'AbstractStatusTimetableHandler' ): <NEW_LINE> <INDENT> self.db_conn = db_conn <NEW_LINE> self.db = Database(self.db_conn) <NEW_LINE> self.status_handler = status_handler <NEW_LINE> <DEDENT> async def add_timeta...
Класс, добавляющий новое расписание в БД из разных форматов.
6259906d435de62698e9d64c
class _SerializableColumnGetter(object): <NEW_LINE> <INDENT> def __init__(self, colkeys): <NEW_LINE> <INDENT> self.colkeys = colkeys <NEW_LINE> self.composite = len(colkeys) > 1 <NEW_LINE> <DEDENT> def __reduce__(self): <NEW_LINE> <INDENT> return _SerializableColumnGetter, (self.colkeys,) <NEW_LINE> <DEDENT> def __call...
Column-based getter used in version 0.7.6 only. Remains here for pickle compatibility with 0.7.6.
6259906d01c39578d7f14358
class V1ConfigMapEnvSource(object): <NEW_LINE> <INDENT> openapi_types = { 'name': 'str', 'optional': 'bool' } <NEW_LINE> attribute_map = { 'name': 'name', 'optional': 'optional' } <NEW_LINE> def __init__(self, name=None, optional=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuration is N...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
6259906d2ae34c7f260ac92f
class BenchDB(object): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> if not os.path.isfile(path): <NEW_LINE> <INDENT> self.conn = self.setup() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.conn = sqlite3.connect(path) <NEW_LINE> <DEDENT> <DEDENT> def setup(self): <NE...
Persist recorded benchmark scores. Example: >>> from os import tmpnam, remove >>> dbname = tmpnam() >>> db = BenchDB(dbname) >>> db.put('/tmp', 'ls', [1, 2, 3]) >>> db.get('/tmp', 'ls')[1] [1, 2, 3] >>> remove(dbname)
6259906d44b2445a339b7582
class IconChooserButton(Gtk.Button): <NEW_LINE> <INDENT> __gsignals__ = { "filename-changed" : (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_PYOBJECT,)), } <NEW_LINE> def __init__(self, dialog): <NEW_LINE> <INDENT> Gtk.Button.__init__(self) <NEW_LINE> dialog.set_icon_from_file(PGlobs.default_icon) <NE...
Imitate a FileChooserButton but specific to image types. The image rather than the mime-type icon is shown on the button.
6259906d7c178a314d78e80f
class ModuleNamingScheme(object): <NEW_LINE> <INDENT> __metaclass__ = Singleton <NEW_LINE> REQUIRED_KEYS = None <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.log = fancylogger.getLogger(self.__class__.__name__, fname=False) <NEW_LINE> <DEDENT> def is_sufficient(self, keys): <NEW_LINE> <INDENT...
Abstract class for a module naming scheme implementation.
6259906d2c8b7c6e89bd502d
class ViewSpaceSideBarManager(plugin.ViewSpacePlugin): <NEW_LINE> <INDENT> def __init__(self, viewspace): <NEW_LINE> <INDENT> self._line_numbers = False <NEW_LINE> self._linenumberarea = None <NEW_LINE> viewspace.viewChanged.connect(self.updateView) <NEW_LINE> <DEDENT> def loadSettings(self): <NEW_LINE> <INDENT> s = QS...
Manages SideBar settings and behaviour for one ViewSpace.
6259906d3539df3088ecdae5
class PostModel(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'posts' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> title = db.Column(db.String(100)) <NEW_LINE> slug = db.Column(db.Text, unique=True) <NEW_LINE> body = db.Column(db.String(100), unique=True) <NEW_LINE> published = db.Column(db.Boole...
Create a Post table
6259906dcc0a2c111447c6f4
class InputTypeError(TypeError): <NEW_LINE> <INDENT> def __init__(self, name, value, expected_type): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.expected_type = expected_type <NEW_LINE> self.message = "Argument `{name}` is of type `{observed_type}`, not `{expected_type}`.".format( name=name, observed_type=type...
TypeError raised when a runtime value is not the expected type
6259906dd486a94d0ba2d806
class IPloneArticleTool(Interface): <NEW_LINE> <INDENT> pass
Services and options for PloneArticle contents
6259906db7558d5895464b55
class DeletedMessage(DataClassObject): <NEW_LINE> <INDENT> _json_schema: dict = DeletedMessageSchema <NEW_LINE> json_validator = get_compiled_validator(_json_schema) <NEW_LINE> @log_type_exception('DeletedMessage') <NEW_LINE> def __init__(self, data: dict, client: HivenClient): <NEW_LINE> <INDENT> super().__init__() <N...
Represents a Deleted Message in a Room
6259906d283ffb24f3cf50f0
class Screen: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen = [[' ']*(lines - 1) for _ in range(columns)] <NEW_LINE> self.objects = [] <NEW_LINE> self.is_active = False <NEW_LINE> <DEDENT> def drawbg(self): <NEW_LINE> <INDENT> print(bg("dark_gray"), end="") <NEW_LINE> <DEDENT> def take_over(se...
Screen object. Used for controlling the screen. The creation of this object takes no arguments. You should only create one for every session, then take over the screen with take_over() Update the screen with update() and return the screen with return_over() Properties: Format: name: type: description screen: l...
6259906d8a43f66fc4bf39dc
class ListTableResource(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'readonly': True}, 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[Table]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ...
Response schema. Contains list of tables returned. Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of tables returned. :vartype value: list[~azure.mgmt.storage.v2021_08_01.models.Table] :ivar next_link: Request URL that can be used to query next page of tables...
6259906d6e29344779b01e9e
class GpsBatchSampler(object): <NEW_LINE> <INDENT> def __init__(self, data, batch_dim=0): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.batch_dim = batch_dim <NEW_LINE> self.num_data = data[0].shape[batch_dim] <NEW_LINE> for d in data: <NEW_LINE> <INDENT> assert d.shape[batch_dim] == self.num_data, "Bad shape on...
Samples data, from GPS code TODO
6259906d167d2b6e312b81b2
class FunctionRelease(LocalRelease): <NEW_LINE> <INDENT> def __init__(self, releaseFunction, delay=0): <NEW_LINE> <INDENT> super(FunctionRelease, self).__init__() <NEW_LINE> self.releaseRatesList = [] <NEW_LINE> self.totRelease = 0 <NEW_LINE> self.currentPeriod = 0 <NEW_LINE> self.lastNonZero = 0 <NEW_LINE> delayArray ...
A material release plan based on a distribution function that returns a release rate for every period. The time instant of the relese is relative to the time of material storage in the stock. Parameters: ---------------- releaseFunction: function function that return the relative release rate for a period de...
6259906d627d3e7fe0e086d1
class Observer(metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def update(self): <NEW_LINE> <INDENT> pass
Observer of the events in the pub-sub objects relation
6259906d44b2445a339b7583
class Repository(object, metaclass=ABCMeta): <NEW_LINE> <INDENT> def find_observations(self, indicator_code=None, area_code=None, year=None): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_indicators_by_code(self, code): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_countries_by_code_name_or_income(self, c...
Abstract implementation of generic queries for managing observations.
6259906df548e778e596cdd6
class TicTacToeBoard: <NEW_LINE> <INDENT> NROWS = 3 <NEW_LINE> NCOLS = 3 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.board = BitGameBoard(self.NROWS, self.NCOLS) <NEW_LINE> <DEDENT> def set(self, row, col, value): <NEW_LINE> <INDENT> if self.board.get(row, col) != GameBoardPlayer.NONE: <NEW_LINE> <INDENT> r...
A class that represents a Tic Tac Toe game board. It's a thin wrapper around the actual game board
6259906dac7a0e7691f73d31
class TreeItemAttr(object): <NEW_LINE> <INDENT> def __init__(self, colText=wx.NullColour, colBack=wx.NullColour, colBorder=wx.NullColour,font=wx.NullFont): <NEW_LINE> <INDENT> self._colText = colText <NEW_LINE> self._colBack = colBack <NEW_LINE> self._colBorder = colBorder <NEW_LINE> self._font = font <NEW_LINE> <DEDEN...
Creates the item attributes (text colour, background colour and font). :note: This class is inspired by the wxWidgets generic implementation of :class:`TreeItemAttr`.
6259906d99cbb53fe6832731
class TextDataUpload(BaseDataUpload): <NEW_LINE> <INDENT> def __init__(self, client): <NEW_LINE> <INDENT> super().__init__(client) <NEW_LINE> <DEDENT> async def upload_data(self, records, job_id): <NEW_LINE> <INDENT> variables = { 'file': open(records, 'r'), 'records': records, 'jobId': job_id } <NEW_LINE> response = a...
upload text data
6259906d8da39b475be04a36
class EventList(QtGui.QListWidget): <NEW_LINE> <INDENT> signal_emptyList=pyqtSignal() <NEW_LINE> signal_newEvent=pyqtSignal() <NEW_LINE> signal_notEmptyList=pyqtSignal() <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(EventList, self).__init__() <NEW_LINE> self.vlcInstance=vlc.Instance('--input-repeat=-1') <NE...
List of events to approve in system
6259906da8370b77170f1c10
class Solution(): <NEW_LINE> <INDENT> def insertionSort(self, list): <NEW_LINE> <INDENT> for i in range(1, len(list)): <NEW_LINE> <INDENT> candidate = list[i] <NEW_LINE> position = i <NEW_LINE> while candidate < list[position - 1] and position > 0: <NEW_LINE> <INDENT> list[position] = list[position - 1] <NEW_LINE> pos...
sort
6259906d76e4537e8c3f0dcd
class Tenants(object): <NEW_LINE> <INDENT> def __init__(self, values, links): <NEW_LINE> <INDENT> self.values = values <NEW_LINE> self.links = links <NEW_LINE> <DEDENT> def to_xml(self): <NEW_LINE> <INDENT> dom = etree.Element("tenants") <NEW_LINE> dom.set(u"xmlns", "http://docs.openstack.org/identity/api/v2.0") <NEW_L...
A collection of tenants.
6259906d99fddb7c1ca639f6
@implementer(IHostnameResolver) <NEW_LINE> class CachingHostnameResolver: <NEW_LINE> <INDENT> def __init__(self, reactor, cache_size): <NEW_LINE> <INDENT> self.reactor = reactor <NEW_LINE> self.original_resolver = reactor.nameResolver <NEW_LINE> dnscache.limit = cache_size <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> de...
Experimental caching resolver. Resolves IPv4 and IPv6 addresses, does not support setting a timeout value for DNS requests.
6259906d01c39578d7f1435a
class InferenceController(JoinTreeListener): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def apply(bbn): <NEW_LINE> <INDENT> PotentialInitializer.init(bbn) <NEW_LINE> ug = Moralizer.moralize(bbn) <NEW_LINE> cliques = Triangulator.triangulate(ug) <NEW_LINE> join_tree = Transformer.transform(cliques) <NEW_LINE> join_tre...
Inference controller.
6259906ddd821e528d6da5a6
class SwitchPortBinding(model_base.BASEV2): <NEW_LINE> <INDENT> __tablename__ = "switch_port_bindings" <NEW_LINE> port_id = sa.Column(sa.String(255), primary_key=True) <NEW_LINE> network_id = sa.Column(sa.String(255), primary_key=True) <NEW_LINE> switch_port_id = sa.Column( sa.String(36), sa.ForeignKey("switch_ports.id...
Keep track of which neutron ports are bound to which physical switchports.
6259906d8e71fb1e983bd312
class Overseer(Actor): <NEW_LINE> <INDENT> def __init__(self, hive, id): <NEW_LINE> <INDENT> super(Overseer, self).__init__(hive, id) <NEW_LINE> self.message_routing.update( {"init_world": self.init_world}) <NEW_LINE> <DEDENT> def init_world(self, message): <NEW_LINE> <INDENT> room = self.hive.create_actor(WarehouseRoo...
Actor that initializes the world of this demo and starts the mission.
6259906dac7a0e7691f73d33
class PatientChangeForm(ModelForm): <NEW_LINE> <INDENT> password = ReadOnlyPasswordHashField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Patient <NEW_LINE> fields = ('email', 'password', 'first_name', 'birth_date', 'last_name', 'is_active', 'is_admin', 'is_content_manager') <NEW_LINE> <DEDENT> def clean_passwo...
A form for updating users. Includes all the fields on the user, but replaces the password field with admin's password hash display field.
6259906dfff4ab517ebcf065
class StorageError(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'error': {'key': 'error', 'type': 'StorageErrorError'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(StorageError, self).__init__(**kwargs) <NEW_LINE> self.error = kwargs.get('error', None)
StorageError. :param error: The service error response object. :type error: ~azure.storage.filedatalake.models.StorageErrorError
6259906d7c178a314d78e811
class TestTCP(unittest.TestCase): <NEW_LINE> <INDENT> def test_client_server(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> server = Mserver.TCPServer(opts={'open': True}) <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> print("Skipping because of server open failure") <NEW_LINE> return <NEW_LINE> <DEDENT> try: <NE...
Tests TCPServer and TCPClient
6259906d0a50d4780f7069e6
class Equal_(_BinaryOperator): <NEW_LINE> <INDENT> def _get_ref_field(self, param_store): <NEW_LINE> <INDENT> return "({}) = ({})".format( self._lhs._get_ref_field(param_store), self._rhs._get_ref_field(param_store))
SQL `=` operator.
6259906d009cb60464d02d80
class EaseOutEaseInTweener ( Tweener ): <NEW_LINE> <INDENT> def at ( self, t ): <NEW_LINE> <INDENT> return ((tanh( 5.0 * t - 2.5 ) / tanh25) + 1.0) / 2.0
Defines the EaseInEaseOutTweener class that does an 'Ease In/Ease Out' motion 'tween.
6259906dcb5e8a47e493cda8
class Seq(_SeqAbstractBaseClass): <NEW_LINE> <INDENT> def __init__(self, data, length=None): <NEW_LINE> <INDENT> if length is None: <NEW_LINE> <INDENT> if isinstance(data, (bytes, SequenceDataAbstractBaseClass)): <NEW_LINE> <INDENT> self._data = data <NEW_LINE> <DEDENT> elif isinstance(data, (bytearray, _SeqAbstractBas...
Read-only sequence object (essentially a string with biological methods). Like normal python strings, our basic sequence object is immutable. This prevents you from doing my_seq[5] = "A" for example, but does allow Seq objects to be used as dictionary keys. The Seq object provides a number of string like methods (suc...
6259906d99cbb53fe6832733
class Edit(AdminService): <NEW_LINE> <INDENT> name = 'zato.channel.amqp.edit' <NEW_LINE> class SimpleIO(AdminSIO): <NEW_LINE> <INDENT> request_elem = 'zato_channel_amqp_edit_request' <NEW_LINE> response_elem = 'zato_channel_amqp_edit_response' <NEW_LINE> input_required = ('id', 'cluster_id', 'name', 'is_active', 'def_i...
Updates an AMQP channel.
6259906d5fc7496912d48e8e
class ActokFinal(WaitActokStep): <NEW_LINE> <INDENT> def step_handler(self, ch, method, properties, body): <NEW_LINE> <INDENT> super().step_handler(ch, method, properties, body) <NEW_LINE> self.print_step_info() <NEW_LINE> self.success()
Checks the TAOK message and if it's OK the test is finished with a PASS result. Expected reception: Activation Ok message (TAOK). Sends after check: None.
6259906d32920d7e50bc7892
class SectionsListAPIView(ListAPIView): <NEW_LINE> <INDENT> serializer_class = CourseSectionSerializer <NEW_LINE> permission_classes = [IsAuthenticatedOrReadOnly] <NEW_LINE> model = serializer_class.Meta.model <NEW_LINE> lookup_field = 'course__slug' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> course__slug =...
View that returns a list of sections & handles the creation of sections & returns data back
6259906d63b5f9789fe869af
class Host(): <NEW_LINE> <INDENT> def __init__(self, uri = 'qemu:///system'): <NEW_LINE> <INDENT> self.uri = uri <NEW_LINE> <DEDENT> def libvirtTest(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> libvirt.open(self.uri) <NEW_LINE> return True <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> return False <NEW_LINE> <...
Host wirtualizacyjny Domyślne uri - kvm => qemu:///system
6259906d167d2b6e312b81b4
class TestViewsWithoutGas(TestViews): <NEW_LINE> <INDENT> fixtures = [ 'dsmr_frontend/test_energysupplierprice.json', 'dsmr_frontend/test_statistics.json', ] <NEW_LINE> support_gas = False <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(TestViewsWithoutGas, self).setUp() <NEW_LINE> self.assertFalse(GasConsumption...
Same tests as above, but without any GAS related data.
6259906d5fcc89381b266d7d
class Setting(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'setting' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> free_download_max_once = db.Column(db.Integer) <NEW_LINE> free_download_one_day = db.Column(db.Integer) <NEW_LINE> _free_download_step_ = db.Column(db.String(128)) <NEW_LINE> free...
setting 表
6259906d2c8b7c6e89bd5032
class GaussianNoiseGenerator(NoiseGenerator): <NEW_LINE> <INDENT> def __init__(self, rand=None): <NEW_LINE> <INDENT> if rand is None: <NEW_LINE> <INDENT> rand = afwMath.Random() <NEW_LINE> <DEDENT> self.rand = rand <NEW_LINE> <DEDENT> def getRandomImage(self, bb): <NEW_LINE> <INDENT> rim = afwImage.ImageF(bb.getWidth()...
Abstract base for Gaussian noise generators.
6259906d21bff66bcd7244b3
class NewMonitor(Event): <NEW_LINE> <INDENT> def __init__(self, **kw): <NEW_LINE> <INDENT> Event.__init__(self) <NEW_LINE> self.hw = kw.get('hw') <NEW_LINE> self.ip = kw.get('ip') <NEW_LINE> self.dpid = kw.get('dpid') <NEW_LINE> self.switch_port = kw.get('switch_port') <NEW_LINE> self.match = kw.get('match') <NEW_LINE>...
NewMonitor事件,包括host的各种信息
6259906d2c8b7c6e89bd5033
class ComputeTargetPoolsAggregatedListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) <NEW_LINE> pageToken = _messages.StringField(3) <NEW_LINE> project = _messages.StringField(4, required=...
A ComputeTargetPoolsAggregatedListRequest object. Fields: filter: Filter expression for filtering listed resources. maxResults: Maximum count of results to be returned. pageToken: Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request. p...
6259906dd486a94d0ba2d80b
class TextDialog(Dialog): <NEW_LINE> <INDENT> _input_ports = [('label', basic_modules.String, {'optional': True, 'defaults': "['']"}), ('default', basic_modules.String, {'optional': True, 'defaults': "['']"})] <NEW_LINE> _output_ports = [('result', basic_modules.String)] <NEW_LINE> mode = QtGui.QLineEdit.Normal <NEW_LI...
Ask the user to provide a string interactively. When this module is executed, a dialog window will be shown with the given message. Execution will continue with the user-provided string as the output once the user confirms. If the user clicks 'cancel', execution will stop. Optionally, the answer from the user can be ...
6259906d99cbb53fe6832734
class PasswordLoginSerializer(serializers.Serializer): <NEW_LINE> <INDENT> phone = deepcopy(phone_field) <NEW_LINE> password = serializers.CharField()
PasswordLogin serializer.
6259906d9c8ee82313040dae
class LanaCoinTestNet(LanaCoin): <NEW_LINE> <INDENT> name = 'test-lanacoin' <NEW_LINE> seeds = ('test1.lanacoin.com', 'test2.lanacoin.com', ) <NEW_LINE> port = 17506 <NEW_LINE> message_start = b'\xcc\xcb\xd2\x7f' <NEW_LINE> base58_prefixes = { 'PUBKEY_ADDR': 111, 'SCRIPT_ADDR': 196, 'SECRET_KEY': 239 }
Class with all the necessary LANA testing network information based on http://www.github.com/LanaCoin/lanacoin/blob/master/src/chainparams.cpp (date of access: 02/11/2018)
6259906d442bda511e95d97e
class Action27(Action): <NEW_LINE> <INDENT> def execute(self, instance): <NEW_LINE> <INDENT> raise NotImplementedError('%s not implemented' % ( str(self)))
Mouse/Keyboard->Set Num Lock on
6259906d3539df3088ecdae9
class TableFrame(BoxLayout): <NEW_LINE> <INDENT> def __init__(self, **kw): <NEW_LINE> <INDENT> super(TableFrame, self).__init__(**kw) <NEW_LINE> r, g, b = kw.get('color', prop.table_color) <NEW_LINE> x, y, w, h=self.rectangle() <NEW_LINE> with self.canvas: <NEW_LINE> <INDENT> ctx.Color(r, g, b, mode='hsv') <NEW_LINE> s...
table frame/outline
6259906dbe8e80087fbc08da
class ContextInjector(logging.Filter): <NEW_LINE> <INDENT> def filter(self, record): <NEW_LINE> <INDENT> current_process = ContextInjector.get_current_process() <NEW_LINE> current_hostname = socket.gethostname() <NEW_LINE> record.host = current_hostname <NEW_LINE> record.proc = current_process <NEW_LINE> record.pid = '...
Logging filter that adds context to log records. Filters are typically used to "filter" log records. They declare a filter method that can return True or False. Only records with 'True' will actually be logged. Here, we somewhat abuse the concept of a filter. We always return true, but we use the opportunity to ha...
6259906da219f33f346c8055
class GameStats: <NEW_LINE> <INDENT> def __init__(self, ai_game): <NEW_LINE> <INDENT> self.settings = ai_game.settings <NEW_LINE> self.reset_stats() <NEW_LINE> <DEDENT> def reset_stats(self): <NEW_LINE> <INDENT> self.ships_left = self.settings.ship_limit
Track statistics for Alien Invasion
6259906d7c178a314d78e812
class POLDICreatePeaksFromCellTestBetaQuartz(ReflectionCheckingTest): <NEW_LINE> <INDENT> data = [ ([1, 0, 0], 4.32710, 7.74737, 6), ([1, 0, 1], 3.38996, 19.7652, 12), ([1, 0, 2], 2.30725, 2.96401, 12), ([1, 0, 6], 0.88968, 3.15179, 12) ] <NEW_LINE> def runTest(self): <NEW_LINE> <INDENT> peaks_betaSiO2 = PoldiCreatePea...
Structure factor check for: SiO2 (beta-quartz, high temperature), 10.1127/ejm/2/1/0063 Notes: Non-centrosymmetric, hexagonal, with coordinate 1/6
6259906d26068e7796d4e187
class EngineerList(models.Model): <NEW_LINE> <INDENT> id_engineer = models.AutoField(primary_key=True) <NEW_LINE> engineer_en = models.CharField(max_length=64) <NEW_LINE> engineer_cn = models.CharField(max_length=64) <NEW_LINE> engineer_zone = models.CharField(max_length=64) <NEW_LINE> id_brand = models.ForeignKey(Spar...
厂商工程师名单
6259906d8da39b475be04a3a
class SummonerChampionMastery(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'summoner_champion_mastery' <NEW_LINE> summ_id = db.Column(db.Integer, db.ForeignKey('summoner.id'), primary_key=True) <NEW_LINE> champ_id = db.Column(db.Integer, db.ForeignKey('champion.id'), primary_key=True) <NEW_LINE> mastery_score = db.Co...
Maps the db.relationship between Summoners and Champions A Summoner can have multiple Champions A Champion can be unlocked by multiple Summoners Each Summoner has respective Mastery Points with a corresponding Champion This many-to-many db.relationship is represe...
6259906d7d43ff2487428038
class OxliCountGraph(OxliBinary): <NEW_LINE> <INDENT> def sniff(self, filename): <NEW_LINE> <INDENT> return OxliBinary._sniff(filename, b"01")
OxliCountGraph starts with "OXLI" + one byte version number + 8-bit binary '1' Test file generated via:: load-into-counting.py --n_tables 1 --max-tablesize 1 \ oxli_countgraph.oxlicg khmer/tests/test-data/100-reads.fq.bz2 using khmer 2.0 >>> from galaxy.datatypes.sniff import get_test_fname >>> fname = g...
6259906dfff4ab517ebcf068
class TestFlamingo(unittest.TestCase): <NEW_LINE> <INDENT> def check_consistent(self, query, results, dist, msg=None): <NEW_LINE> <INDENT> for e in results: <NEW_LINE> <INDENT> self.assertTrue(dist >= flamingo.distance(query, e), msg=msg) <NEW_LINE> <DEDENT> <DEDENT> def check_search(self, indexer, query, expected, dis...
Tests the flamingo WrapperSimpleEd
6259906da8370b77170f1c15
class ConnectionFromController(AMP): <NEW_LINE> <INDENT> implements(IQueuer) <NEW_LINE> def __init__(self, transactionFactory, whenConnected, boxReceiver=None, locator=None): <NEW_LINE> <INDENT> super(ConnectionFromController, self).__init__(boxReceiver, locator) <NEW_LINE> self._txnFactory = transactionFactory <NEW_LI...
A L{ConnectionFromController} is the connection to a controller process, in a worker process. It processes requests from its own controller to do work. It is the opposite end of the connection from L{ConnectionFromWorker}.
6259906d7b25080760ed8909
class StringConstant( Constant, bytes ): <NEW_LINE> <INDENT> def __repr__( self ): <NEW_LINE> <INDENT> return '%s (%s)'%(self.name,super(Constant,self).__str__())
String constants
6259906d32920d7e50bc7894
class MultiFiles: <NEW_LINE> <INDENT> def __init__(self, file_list): <NEW_LINE> <INDENT> self._file = {} <NEW_LINE> self._events = {} <NEW_LINE> self._events_table = {} <NEW_LINE> self._camera_config = {} <NEW_LINE> self.camera_config = None <NEW_LINE> paths = [] <NEW_LINE> for file_name in file_list: <NEW_LINE> <INDEN...
This class open all the files in file_list and read the events following the event_id order
6259906d32920d7e50bc7895
class SourceTargetRegexpWarningDto(SegmentWarning): <NEW_LINE> <INDENT> swagger_types = { 'description': 'str' } <NEW_LINE> attribute_map = { 'description': 'description' } <NEW_LINE> def __init__(self, description=None): <NEW_LINE> <INDENT> self._description = None <NEW_LINE> self.discriminator = None <NEW_LINE> if de...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259906d796e427e5384ffc6
class ReserveEquipment(models.Model): <NEW_LINE> <INDENT> reserve = models.ForeignKey('inventory.Reserve') <NEW_LINE> equipment = models.ForeignKey('inventory.Equipment')
Для хранения забронированного инвенторя который пробивает менеджер
6259906ddd821e528d6da5a8
@implementer(IEncodable) <NEW_LINE> class _OPTHeader(tputil.FancyStrMixin, tputil.FancyEqMixin, object): <NEW_LINE> <INDENT> showAttributes = ( ('name', lambda n: nativeString(n.name)), 'type', 'udpPayloadSize', 'extendedRCODE', 'version', 'dnssecOK', 'options') <NEW_LINE> compareAttributes = ( 'name', 'type', 'udpPayl...
An OPT record header. @ivar name: The DNS name associated with this record. Since this is a pseudo record, the name is always an L{Name} instance with value b'', which represents the DNS root zone. This attribute is a readonly property. @ivar type: The DNS record type. This is a fixed value of 41 (C{d...
6259906d8e71fb1e983bd316
class FollowJoystick(Command): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__("FollowJoystick") <NEW_LINE> self.ahrs = AHRS.create_spi() <NEW_LINE> self.stick = oi.joystick <NEW_LINE> self.angle = 0 <NEW_LINE> self.stime = None <NEW_LINE> self.xInv = -1 <NEW_LINE> self.yInv = -1 <NEW_LINE>...
Command that reads the joystick's y axis and use that value to control the speed of the SingleMotor subsystem. This operates during the Teleop period of a competition.
6259906d1f5feb6acb16443f
class Dog: <NEW_LINE> <INDENT> def speak(self): <NEW_LINE> <INDENT> return "Woof!" <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "Dog"
one of the object to by returned
6259906d7d847024c075dc2b
class NativeStringToBytesTests(TestCase): <NEW_LINE> <INDENT> def test_list(self): <NEW_LINE> <INDENT> l = [1, 2, 3] <NEW_LINE> self.assertThat( lambda: native_string_to_bytes(l), raises_exception( TypeError, ), ) <NEW_LINE> <DEDENT> def test_none(self): <NEW_LINE> <INDENT> self.assertRaises( TypeError, lambda: native_...
Tests for ``native_string_to_bytes``.
6259906d66673b3332c31c4c
class EntityDeleteRequest(ODataHttpRequest): <NEW_LINE> <INDENT> def __init__(self, url, connection, handler, entity_set, entity_key): <NEW_LINE> <INDENT> super(EntityDeleteRequest, self).__init__(url, connection, handler) <NEW_LINE> self._logger = logging.getLogger(LOGGER_NAME) <NEW_LINE> self._entity_set = entity_set...
Used for deleting entity (DELETE operations on a single entity)
6259906d4428ac0f6e659d81
class InvalidMetaName(Exception): <NEW_LINE> <INDENT> pass
Raised for invalid metadata names.
6259906d99cbb53fe6832737
@test(groups=["rsdns.eventlet"], enabled=CAN_USE_EVENTLET) <NEW_LINE> class RsdnsEventletTests(object): <NEW_LINE> <INDENT> def assert_record_created(self, index): <NEW_LINE> <INDENT> msg = "Record %d wasn't created!" % index <NEW_LINE> assert_true(index in self.new_records, msg) <NEW_LINE> <DEDENT> @before_class(enabl...
Makes sure the RSDNS client can be used from multiple green threads.
6259906d009cb60464d02d84
class Segment(object): <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> assert text is None or isinstance(text, str) <NEW_LINE> if text is None: <NEW_LINE> <INDENT> self.tokens = [] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> text = re.sub(CLEANUP_REGEXES["img"], "token_img", text) <NEW_LINE> text = ...
A document segment object that corresponds to the <OrgQSubject>, <OrgQBody>, <RelQSubject>, <RelQBody>, or <RelCText> XML element from SemEval 2016/2017 Task 3 datasets.
6259906d1b99ca400229015d
class Sentence(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.items: List[TransItem] = [] <NEW_LINE> <DEDENT> def best_for_flags(self, flags: Flags) -> List[TransItem]: <NEW_LINE> <INDENT> best_score: int = 0 <NEW_LINE> best_list: List[TransItem] = [] <NEW_LINE> for item in self.items: <NEW_L...
A single sentence. The main goal of this class is to provide an easy way to get a random sentence from the list and to see if the list is valid.
6259906d3317a56b869bf16b
class Creator: <NEW_LINE> <INDENT> def Name(self): <NEW_LINE> <INDENT> return "none" <NEW_LINE> <DEDENT> def Create(self, theGraphEditor): <NEW_LINE> <INDENT> return none <NEW_LINE> <DEDENT> def CheckDirtyAndCreate(self, theGraphEditor): <NEW_LINE> <INDENT> if theGraphEditor.dirty == 1: <NEW_LINE> <INDENT> if not askok...
This class provides an abstract Creator as a base for actual Creator implementations
6259906d7047854f46340c06
class MsgAck(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.start_chunk = 0 <NEW_LINE> self.end_chunk = 0 <NEW_LINE> self.one_way_delay_sample = 0 <NEW_LINE> <DEDENT> def BuildBinaryMessage(self): <NEW_LINE> <INDENT> wb = bytearray() <NEW_LINE> wb[0:] = pack('>cIIQ', bytes([MsgTypes.ACK]), se...
A class representing ACK message
6259906d3346ee7daa338286
class SoftAssertionError(AssertionError): <NEW_LINE> <INDENT> def __init__(self, failed_assertions): <NEW_LINE> <INDENT> self.failed_assertions = failed_assertions <NEW_LINE> super(SoftAssertionError, self).__init__(str(self)) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '\n'.join(self.failed_asser...
Exception class containing failed assertions
6259906d2c8b7c6e89bd5037
class InvalidRow: <NEW_LINE> <INDENT> def __init__(self, number, validation_error, values): <NEW_LINE> <INDENT> self.number = number <NEW_LINE> self.error = validation_error <NEW_LINE> self.values = values <NEW_LINE> try: <NEW_LINE> <INDENT> self.error_dict = validation_error.message_dict <NEW_LINE> <DEDENT> except Att...
A row that resulted in one or more ``ValidationError`` being raised during import.
6259906d7b180e01f3e49c8c
class DeleteMediaByID(RestServlet): <NEW_LINE> <INDENT> PATTERNS = admin_patterns("/media/(?P<server_name>[^/]*)/(?P<media_id>[^/]*)$") <NEW_LINE> def __init__(self, hs: "HomeServer"): <NEW_LINE> <INDENT> self.store = hs.get_datastore() <NEW_LINE> self.auth = hs.get_auth() <NEW_LINE> self.server_name = hs.hostname <NEW...
Delete local media by a given ID. Removes it from this server.
6259906d1f5feb6acb164441
class CoffeeMaker(DeviceWithOpState, DeviceWithPrograms, DeviceWithRemoteStart): <NEW_LINE> <INDENT> PROGRAMS = [ {"name": "ConsumerProducts.CoffeeMaker.Program.Beverage.Espresso"}, {"name": "ConsumerProducts.CoffeeMaker.Program.Beverage.EspressoMacchiato"}, {"name": "ConsumerProducts.CoffeeMaker.Program.Beverage.Coffe...
Coffee maker class.
6259906d7d847024c075dc2d
class Obstacle(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, x, y,filename,directory = ''): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.image,self.rect = load_image(filename,directory,-1) <NEW_LINE> self.rect.x = x <NEW_LINE> self.rect.y = y
This class represents the obstacles.
6259906d99cbb53fe6832739
class UserQuota(object): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'throughput', (emq.queue.ttypes.Throughput, emq.queue.ttypes.Throughput.thrift_spec), None, ), (2, TType.I64, 'queueNumber', None, None, ), ) <NEW_LINE> def __init__(self, throughput=None, queueNumber=None,): <NEW_LINE> <INDENT> self.t...
Copyright 2015, Xiaomi. All rights reserved. Author: haxiaolin@xiaomi.com Attributes: - throughput: The restriction of user throughput; - queueNumber: The number of queues owned by one user;
6259906dfff4ab517ebcf06b
class StatCache(object): <NEW_LINE> <INDENT> _Key = NamedTuple("_Key", (("path", Text), ("follow_symlink", bool))) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._cache = {} <NEW_LINE> <DEDENT> def Get(self, path: Text, follow_symlink: bool = True) -> Stat: <NEW_LINE> <INDENT> key = self._Key(path=path, follow...
An utility class for avoiding unnecessary syscalls to `[l]stat`. This class is useful in situations where manual bookkeeping of stat results in order to prevent extra system calls becomes tedious and complicates control flow. This class makes sure that no unnecessary system calls are made and is smart enough to cache ...
6259906d4527f215b58eb5c8
class CustomUserManager(BaseUserManager): <NEW_LINE> <INDENT> def create_user(self, username, password, **extra_fields): <NEW_LINE> <INDENT> user = self.model(username=username, **extra_fields) <NEW_LINE> user.set_password(password) <NEW_LINE> user.save() <NEW_LINE> return user <NEW_LINE> <DEDENT> def create_merchant(s...
Custom user model manager where email is the unique identifiers for authentication instead of usernames.
6259906d0a50d4780f7069e9
class V3ClusterMember(NamedTuple): <NEW_LINE> <INDENT> id: int <NEW_LINE> name: str <NEW_LINE> peer_urls: List[str] <NEW_LINE> client_urls: List[str]
Represent ectd cluster node (v3) and its parameters :param id: Unique node id :type id: int :param name: Unique node name (usually hostname) :type name: str :param peer_urls: List of URLs advertised to peers :type peer_urls: List[str] :param client_urls: List of URLs advertised to clients :type client_urls: List[str]
6259906d97e22403b383c758
class QuadRule(object): <NEW_LINE> <INDENT> def __init__(self, order, dimension): <NEW_LINE> <INDENT> self._order = order <NEW_LINE> self._dimension = dimension <NEW_LINE> self._points = [None] * (dimension + 1) <NEW_LINE> self._weights = [None] * (dimension + 1) <NEW_LINE> self._set_data() <NEW_LINE> <DEDENT> def _set...
Provides an abstract base class for all quadrature rules. Parameters ---------- order : int The polynomial order up to which the quadrature should be exact
6259906dcb5e8a47e493cdab
class Authorization(Find, Post): <NEW_LINE> <INDENT> path = "v1/payments/authorization" <NEW_LINE> def capture(self, attributes): <NEW_LINE> <INDENT> return self.post('capture', attributes, Capture) <NEW_LINE> <DEDENT> def void(self): <NEW_LINE> <INDENT> return self.post('void', {}, self) <NEW_LINE> <DEDENT> def reauth...
Enables looking up, voiding and capturing authorization and reauthorize payments Helpful links:: https://developer.paypal.com/docs/api/#authorizations https://developer.paypal.com/docs/integration/direct/capture-payment/#authorize-the-payment Usage:: >>> authorization = Authorization.find("") >>> capture = a...
6259906d8da39b475be04a3e
class LotteryLotto(Lottery): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(LotteryLotto, self).__init__() <NEW_LINE> self._name = "Lotto" <NEW_LINE> self._sets_of_balls = 1 <NEW_LINE> self._main_balls = SetOfBalls("main", 59) <NEW_LINE> self._available_parsers.append(LotteryParserLottoNL()) <NEW_LIN...
The UK Lotto lottery.
6259906d4428ac0f6e659d84