code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ReverseGenericRelatedObjectsDescriptor(object): <NEW_LINE> <INDENT> def __init__(self, field, for_concrete_model=True): <NEW_LINE> <INDENT> self.field = field <NEW_LINE> self.for_concrete_model = for_concrete_model <NEW_LINE> <DEDENT> def __get__(self, instance, instance_type=None): <NEW_LINE> <INDENT> if instanc... | This class provides the functionality that makes the related-object
managers available as attributes on a model class, for fields that have
multiple "remote" values and have a GenericRelation defined in their model
(rather than having another model pointed *at* them). In the example
"article.publications", the publicat... | 62598fa5462c4b4f79dbb8ea |
class Notifier: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._logger = logging.getLogger('{base}.{suffix}' .format(base=LOGGER_BASENAME, suffix=self.__class__.__name__) ) <NEW_LINE> self.broadcast = Group('broadcast') <NEW_LINE> <DEDENT> @property <NEW_LINE> def channels(self): <NEW_LINE> <INDENT> r... | Model of a notifier. | 62598fa5dd821e528d6d8e13 |
class SharedLibrary(_Library): <NEW_LINE> <INDENT> def __init__(self, name, baseEnv = None): <NEW_LINE> <INDENT> lib_name = path.join(path.dirname(str(name)), baseEnv.subst('${SHLIBPREFIX}') + path.basename(str(name)) + baseEnv.subst('${SHLIBSUFFIX}')) <NEW_LINE> _Library.__init__(self, lib_name, baseEnv, SCons.Default... | This object knows how to build (and install) a shared library from a given
set of sources. | 62598fa5090684286d59364a |
class DeleteResourceRecordsRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(DeleteResourceRecordsRequest, self).__init__( '/regions/{regionId}/zone/{zoneId}/resourceRecords/{resourceRecordId}', 'DELETE', header, version) <NEW_LINE> self.pa... | 删除解析记录。批量删除时多个resourceRecordId用","分隔。批量删除每次最多不超过100个记录 | 62598fa51f037a2d8b9e3fc9 |
class PrivateUserApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.user = create_user( email = 'test@test.com', password ='testpass', name = 'name', ) <NEW_LINE> self.client = APIClient() <NEW_LINE> self.client.force_authenticate(user=self.user) <NEW_LINE> <DEDENT> def test_retrieve_prof... | Test Api requests that require authentication | 62598fa5167d2b6e312b6e4e |
class Reader(object): <NEW_LINE> <INDENT> def __init__(self, name, reader, data_type): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.reader = reader <NEW_LINE> self.data_type = data_type | Class for cyber reader wrapper. | 62598fa5a219f33f346c66f6 |
class MockGraph(object): <NEW_LINE> <INDENT> def __init__(self, transaction_errors=False, **kwargs): <NEW_LINE> <INDENT> self.nodes = set() <NEW_LINE> self.number_commits = 0 <NEW_LINE> self.number_rollbacks = 0 <NEW_LINE> self.transaction_errors = transaction_errors <NEW_LINE> <DEDENT> def begin(self): <NEW_LINE> <IND... | A stubbed out version of py2neo's Graph object, used for testing.
Args:
transaction_errors: a bool for whether transactions should throw
an error. | 62598fa599fddb7c1ca62d57 |
class CreateRecordingPlanRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Name = None <NEW_LINE> self.TimeTemplateId = None <NEW_LINE> self.Channels = None <NEW_LINE> self.RecordStorageTime = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Name =... | CreateRecordingPlan请求参数结构体
| 62598fa5e5267d203ee6b7ea |
class PagedCloudIntegration(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'items': 'list[CloudIntegration]', 'offset': 'int', 'limit': 'int', 'cursor': 'str', 'total_items': 'int', 'more_items': 'bool', 'sort': 'Sorting' } <NEW_LINE> self.attribute_map = { 'items': 'items',... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fa5a8370b77170f02b9 |
class IRefreshActionsManager(models.Manager): <NEW_LINE> <INDENT> def selectable_intentions(self, user, max=1): <NEW_LINE> <INDENT> intentions = self.filter(user=user, job=None, previous=None) <NEW_LINE> return intentions.all()[:max] | Model manager for instances of IRefreshActions | 62598fa52c8b7c6e89bd36a4 |
class NickHandler(AttributeHandler): <NEW_LINE> <INDENT> _attrtype = "nick" <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self._regex_cache = {} <NEW_LINE> <DEDENT> def has(self, key, category="inputline"): <NEW_LINE> <INDENT> return super().has(key, ca... | Handles the addition and removal of Nicks. Nicks are special
versions of Attributes with an `_attrtype` hardcoded to `nick`.
They also always use the `strvalue` fields for their data. | 62598fa51f5feb6acb162b00 |
class BannedEmailTestCase(TestCase): <NEW_LINE> <INDENT> def test_str(self): <NEW_LINE> <INDENT> banned_email = BannedEmail.objects.create(email='test@example.com') <NEW_LINE> self.assertEqual(str(banned_email), 'test@example.com') | Tests suite for the ``BannedEmail`` class. | 62598fa5627d3e7fe0e06d8b |
class Variable(Symbol) : <NEW_LINE> <INDENT> def __init__(self) : <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.name = '' <NEW_LINE> <DEDENT> def register(self, id_file, code) : <NEW_LINE> <INDENT> super().register(id_file, code) <NEW_LINE> try : <NEW_LINE> <INDENT> self.analyze() <NEW_LINE> <DEDENT> except : ... | Python Variable can be defined by :
. a name | 62598fa53317a56b869be4b9 |
class BadSearch(VonAnchorError): <NEW_LINE> <INDENT> def __init__(self, message: str): <NEW_LINE> <INDENT> super().__init__(ErrorCode.BadSearch, message) | Search operation failed. | 62598fa5a79ad16197769f41 |
class TestCalendarDate(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 make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return CalendarDate( all_... | CalendarDate unit test stubs | 62598fa544b2445a339b68de |
class QuiveringPalm(Feature): <NEW_LINE> <INDENT> name = "Quivering Palm" <NEW_LINE> source = "Monk (Way of the Open Hand)" | At 17th level, you gain the ability to set up lethal vibrations in
someone’s body. When you hit a creature with an unarmed strike, you can
spend 3 ki points to start these imperceptible vibrations, which last for a
number of days equal to your monk level. The vibrations are harmless unless
you use your action to end th... | 62598fa576e4537e8c3ef48b |
@parser(Specs.tuned_adm) <NEW_LINE> class Tuned(Parser): <NEW_LINE> <INDENT> def parse_content(self, content): <NEW_LINE> <INDENT> self.data = {} <NEW_LINE> self.data['available'] = [] <NEW_LINE> for line in content: <NEW_LINE> <INDENT> if line.startswith('-'): <NEW_LINE> <INDENT> self.data['available'].append(line.spl... | Parse data from the ``/usr/sbin/tuned-adm list`` command. | 62598fa56fb2d068a7693da5 |
class Runner(object): <NEW_LINE> <INDENT> def __init__(self, job=None): <NEW_LINE> <INDENT> self.extract_packages_archive() <NEW_LINE> self.job = job or pickle.load(open("job-instance.pickle")) <NEW_LINE> self.job._setup_remote() <NEW_LINE> <DEDENT> def run(self, kind, stdin=sys.stdin, stdout=sys.stdout): <NEW_LINE> <I... | Run the mapper or reducer on hadoop nodes. | 62598fa55f7d997b871f9350 |
class YAMLMetaField(YAMLJSONField): <NEW_LINE> <INDENT> def to_python(self, value): <NEW_LINE> <INDENT> obj = super().to_python(value) <NEW_LINE> for k, v in obj.items(): <NEW_LINE> <INDENT> if not isinstance(k, str): <NEW_LINE> <INDENT> raise forms.ValidationError('Error "{}" is not a sting key.'.format(k)) <NEW_LINE>... | YAML Metafields form field | 62598fa5e76e3b2f99fd8915 |
class TestCase(models.Model): <NEW_LINE> <INDENT> module = models.ForeignKey(Module, on_delete=models.CASCADE) <NEW_LINE> name = models.CharField("名称", max_length=100, blank=False, default="") <NEW_LINE> url = models.TextField("URL", default="") <NEW_LINE> req_method = models.CharField("方法", max_length=10, default="") ... | 用例表 | 62598fa5baa26c4b54d4f190 |
class function_type(base): <NEW_LINE> <INDENT> def __init__(self, return_type, argument_types): <NEW_LINE> <INDENT> self.return_type = return_type <NEW_LINE> self.arg_type_list = argument_types <NEW_LINE> <DEDENT> def __ne__(self, rival): <NEW_LINE> <INDENT> return not self.__eq__(rival) <NEW_LINE> <DEDENT> def __eq__(... | A function type. | 62598fa526068e7796d4c838 |
class Larva(Agent): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> Agent.__init__(self, x, y, "Larva") <NEW_LINE> <DEDENT> def getValidMoves(self): <NEW_LINE> <INDENT> x, y = self.getPosition() <NEW_LINE> up_right = Coordinates(x - 1, y + 1) <NEW_LINE> up_left = Coordinates(x - 1, y - 1) <NEW_LINE> d... | Class for the larva agent | 62598fa5fff4ab517ebcd6c4 |
class RoomSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Room <NEW_LINE> fields = ("id", "name", "university_building",) <NEW_LINE> read_only_fields = ("id",) | Serializer to represent the Room model | 62598fa50a50d4780f7052bc |
class OssException(Exception): <NEW_LINE> <INDENT> message = _("An unknown exception occurred") <NEW_LINE> def __init__(self, message=None, *args, **kwargs): <NEW_LINE> <INDENT> if not message: <NEW_LINE> <INDENT> message = self.message <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> if kwargs: <NEW_LINE> <INDENT> message... | Base ops-adapter Exception
To correctly use this class, inherit from it and define
a 'message' property. That message will get printf'd
with the keyword arguments provided to the constructor. | 62598fa54e4d562566372304 |
class LogicalOr(Operator): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def do_export_proto(self): <NEW_LINE> <INDENT> params = OpProto.LogicalOrOperator() <NEW_LINE> return params | Apply the LogicalOr operator entrywise. | 62598fa5851cf427c66b81a8 |
@attr.s(slots=True) <NEW_LINE> class Group: <NEW_LINE> <INDENT> name = attr.ib(type=str) <NEW_LINE> policy = attr.ib(type=perm_mdl.PolicyType) <NEW_LINE> id = attr.ib(type=str, factory=lambda: uuid.uuid4().hex) | A group. | 62598fa51f037a2d8b9e3fcb |
class MedicamentoForm(AdmisionBaseForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Medicamento <NEW_LINE> exclude = ('proxima_dosis', 'suministrado') <NEW_LINE> <DEDENT> inicio = forms.DateTimeField(widget=DateTimeWidget(), required=False) <NEW_LINE> cargo = ModelChoiceField(name='cargo', model='', qu... | Permite Agregar o modificar los datos de un :class:`Medicamento` | 62598fa5d486a94d0ba2bead |
class RecordValueList(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=64) <NEW_LINE> slug = models.SlugField(max_length=64, unique=True) <NEW_LINE> location = models.ForeignKey(Location) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> @models.permalink <N... | List RecordValues for a specific location.
This is referred to by RecordValue | 62598fa57d43ff2487427372 |
class JobLogConfigInfo(NetAppObject): <NEW_LINE> <INDENT> _job_log_level = None <NEW_LINE> @property <NEW_LINE> def job_log_level(self): <NEW_LINE> <INDENT> return self._job_log_level <NEW_LINE> <DEDENT> @job_log_level.setter <NEW_LINE> def job_log_level(self, val): <NEW_LINE> <INDENT> if val != None: <NEW_LINE> <INDEN... | Contains job-manager-logging configuration for a single module in
the system.
When returned as part of the output, all elements of this typedef
are reported, unless limited by a set of desired attributes
specified by the caller.
<p>
When used as input to specify desired attributes to return,
omitting a given element in... | 62598fa5be383301e02536d8 |
@expose_substitution('eval') <NEW_LINE> class PythonExpression(Substitution): <NEW_LINE> <INDENT> def __init__(self, expression: SomeSubstitutionsType) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> ensure_argument_type( expression, (str, Substitution, collections.abc.Iterable), 'expression', 'PythonExpress... | Substitution that can access contextual local variables.
The expression may contain Substitutions, but must return something that can
be converted to a string with `str()`.
It also may contain math symbols and functions. | 62598fa5e5267d203ee6b7ec |
@register_block(lookup_name='FULLY_CONNECTED_PYRAMID', init_args={}, enum_id=15) <NEW_LINE> class FullyConnectedPyramidBlock(Block): <NEW_LINE> <INDENT> def __init__(self, max_output_size=100, max_number_of_parameters=None, **kwargs): <NEW_LINE> <INDENT> self._max_number_of_parameters = max_number_of_parameters <NEW_LI... | A fully connected layer with leaky relu.
Output number of hidden nodes is equal to the input number of hidden nodes
divided by 2, with some restrictions:
- output number of hidden nodes is at least 2.
- output number of hidden nodes is at most max_output_size.
- The number of elements in the kernel matrix is at most:
... | 62598fa54527f215b58e9dc3 |
class Server(models.Model): <NEW_LINE> <INDENT> key = models.OneToOneField(Key, on_delete=models.DO_NOTHING) <NEW_LINE> ip = models.GenericIPAddressField() <NEW_LINE> host_name = models.CharField(max_length=50) <NEW_LINE> current_map = models.ForeignKey('maps.Map', on_delete=models.DO_NOTHING) <NEW_LINE> class Meta: <N... | Server model | 62598fa50c0af96317c56263 |
class MostPrevalentBagColorStrategy(pcs.PlayableColorStrategy): <NEW_LINE> <INDENT> def evaluate(self, options, board, game = None): <NEW_LINE> <INDENT> playlist = super().evaluate(options, board, game) <NEW_LINE> prevailingcolors = game.bag.colorcounts() <NEW_LINE> mincount = 20 <NEW_LINE> for color in prevailingcolor... | MostPrevalentBagColorStrategy - choose the color that is most prevalent on
the whole board. Temper it with the PlayableColorStrategy. | 62598fa5435de62698e9bcd5 |
class GenericReference(fields.Field): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.document_class_choices = [] <NEW_LINE> choices = kwargs.pop("choices", None) <NEW_LINE> if choices: <NEW_LINE> <INDENT> for choice in choices: <NEW_LINE> <INDENT> if hasattr(choice, "_class_name"): <N... | Marshmallow custom field to map with :class Mongoengine.GenericReferenceField:
:param choices: List of Mongoengine document class (or class name) allowed
.. note:: Without `choices` param, this field allow to reference to
any document in the application which can be a security issue. | 62598fa563d6d428bbee2692 |
class VarNode(object): <NEW_LINE> <INDENT> def __init__(self, iden, channel_profile): <NEW_LINE> <INDENT> self.iden = iden <NEW_LINE> self.channel_profile = channel_profile <NEW_LINE> self.Res_size = len(self.channel_profile) <NEW_LINE> self.original_Thru = None <NEW_LINE> self.Thru = None <NEW_LINE> self.ReqNodes = No... | The main node for scheduling entities, each object represents a flow | 62598fa5aad79263cf42e6b5 |
class TestOauth2Credentials(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 testOauth2Credentials(self): <NEW_LINE> <INDENT> pass | Oauth2Credentials unit test stubs | 62598fa58da39b475be030c2 |
class GruArtPanel(ga.AnagPanel): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> ga.AnagPanel.__init__(self, *args, **kwargs) <NEW_LINE> self.SetDbSetup( Azienda.BaseTab.tabelle[ Azienda.BaseTab.TABSETUP_TABLE_GRUART ] ) <NEW_LINE> self.SetDbOrderColumns(( ("Inventario", ('catart.codice', '... | Gestione tabella Gruppi merce. | 62598fa5435de62698e9bcd6 |
class DepDiamondPatchMid1(Package): <NEW_LINE> <INDENT> homepage = "http://www.example.com" <NEW_LINE> url = "http://www.example.com/patch-a-dependency-1.0.tar.gz" <NEW_LINE> version('1.0', '0123456789abcdef0123456789abcdef') <NEW_LINE> depends_on('patch', patches='mid1.patch') | Package that requires a patch on a dependency
W
/ \
X Y
\ /
Z
This is package X
| 62598fa532920d7e50bc5f37 |
class PushHelper(object): <NEW_LINE> <INDENT> def push_notification(self, title, content, appid, query, silent=None): <NEW_LINE> <INDENT> silent = silent or False <NEW_LINE> match_uids = self.find_match_uids(appid, query) <NEW_LINE> notification_id = self.save_notification(dict( title=title, content=content, appid=appi... | 发送消息的helper | 62598fa54428ac0f6e658402 |
class APIImplementationError(PlugError): <NEW_LINE> <INDENT> pass | Raise when an API is defined incorrectly. | 62598fa5009cb60464d01405 |
class LogoutHandler(tornado.web.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> self.clear_cookie('uid') | Logout? duh | 62598fa54f88993c371f047a |
class PyQtHandler(logging.Handler): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> logging.Handler.__init__(self) <NEW_LINE> self.info_handler = None <NEW_LINE> <DEDENT> def emit(self, record): <NEW_LINE> <INDENT> self.format(record) <NEW_LINE> message = record.msg <NEW_LINE> if record.levelno > logging.WA... | Logging handler for Py Qt events.
Based on Vinay Sajip's DBHandler class (http://www.red-dove.com/python_logging.html) | 62598fa58e7ae83300ee8f82 |
class DSMREntity(Entity): <NEW_LINE> <INDENT> def __init__(self, name, obis, config): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._obis = obis <NEW_LINE> self._config = config <NEW_LINE> self.telegram = {} <NEW_LINE> <DEDENT> def get_dsmr_object_attr(self, attribute): <NEW_LINE> <INDENT> if self._obis not in ... | Entity reading values from DSMR telegram. | 62598fa5e5267d203ee6b7ed |
class SimpleStitchAssignmentsLocal(SimpleStitchAssignmentsBase, LocalTask): <NEW_LINE> <INDENT> pass | SimpleStitchAssignments on local machine | 62598fa5a79ad16197769f43 |
class RandomGenerator(object): <NEW_LINE> <INDENT> def __init__(self, total=100, labeled=True, fraud_n=2): <NEW_LINE> <INDENT> self.total = total <NEW_LINE> self.labeled = labeled <NEW_LINE> self.fraud_n = fraud_n <NEW_LINE> <DEDENT> def generate_data(self): <NEW_LINE> <INDENT> data = [] <NEW_LINE> num_predictors = len... | Random generator class.
This class can be used to generate
random transaction data either annotated
or not. | 62598fa5cb5e8a47e493c0e8 |
class FileMonitorProxy(object): <NEW_LINE> <INDENT> monitor = None <NEW_LINE> def __init__(self, logger, ignore_files=None): <NEW_LINE> <INDENT> self.logger = logger <NEW_LINE> self.change_event = threading.Event() <NEW_LINE> self.changed_paths = set() <NEW_LINE> self.ignore_files = [ re.compile(fnmatch.translate(x)) f... | Wrap an :class:`hupper.interfaces.IFileMonitor` into an object that
exposes a thread-safe interface back to the reloader to detect
when it should reload. | 62598fa5baa26c4b54d4f192 |
class TestASAPCurrInfoCurrentMain(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> ca_patcher = mock.patch( "siriuspy.currinfo.main._ClientArch", autospec=True) <NEW_LINE> self.addCleanup(ca_patcher.stop) <NEW_LINE> self.mock_ca = ca_patcher.start() <NEW_LINE> self.mock_ca.return_value.getDa... | Test AS-AP-CurrInfo Soft IOC. | 62598fa5d58c6744b42dc245 |
class CFSRData: <NEW_LINE> <INDENT> def __init__(self,basefolder): <NEW_LINE> <INDENT> self.basefolder=basefolder <NEW_LINE> files={} <NEW_LINE> files['st'] = os.path.join(basefolder,'ST/*.nc') <NEW_LINE> files['rh'] = os.path.join(basefolder,'RH/*.nc') <NEW_LINE> files['sp'] = os.path.join(basefolder,'SP/*.nc') <NE... | CFSR data extraction | 62598fa526068e7796d4c83a |
class Abbreviator: <NEW_LINE> <INDENT> def __init__(self, target_length: int): <NEW_LINE> <INDENT> if target_length < 1: <NEW_LINE> <INDENT> raise ValueError("target_length must be greater than 0.") <NEW_LINE> <DEDENT> self.target_len = target_length <NEW_LINE> <DEDENT> def abbreviate(self, input_sent) -> str: <NEW_LIN... | Abbreviates strings to target_length | 62598fa5aad79263cf42e6b6 |
class ResetStampView(grok.View): <NEW_LINE> <INDENT> grok.name('reset_syncstamp') <NEW_LINE> grok.context(IPloneSiteRoot) <NEW_LINE> grok.require('cmf.ManagePortal') <NEW_LINE> def render(self): <NEW_LINE> <INDENT> set_remote_import_stamp(self.context) <NEW_LINE> IStatusMessage(self.context.REQUEST).addStatusMessage( u... | A view wich reset the actual syncstamp with a actual stamp
on every client registered in the ogds | 62598fa5009cb60464d01406 |
class ModuleConfig: <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.name = data['name'] <NEW_LINE> self.description = data['description'] <NEW_LINE> self.variables = data['config'] <NEW_LINE> self._data = data | Config class for each module: plugins and adapters | 62598fa5f548e778e596b485 |
class AddForm(base.AddForm): <NEW_LINE> <INDENT> form_fields = form.Fields(IPopupForm) <NEW_LINE> form_fields['target_form'].custom_widget = UberSelectionWidget <NEW_LINE> def create(self, data): <NEW_LINE> <INDENT> return Assignment(**data) | Portlet add form.
This is registered in configure.zcml. The form_fields variable tells
zope.formlib which fields to display. The create() method actually
constructs the assignment that is being added. | 62598fa5cc0a2c111447aef0 |
class MetricAlertResourceCollection(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[MetricAlertResource]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(MetricAlertResourceCollection, self).__init__(**kwargs) <NEW_LINE> self.value = kwarg... | Represents a collection of alert rule resources.
:param value: the values for the alert rule resources.
:type value: list[~$(python-base-namespace).v2018_03_01.models.MetricAlertResource] | 62598fa50a50d4780f7052be |
class AgentReroProvider(BaseProvider): <NEW_LINE> <INDENT> pid_type = 'agrero' <NEW_LINE> pid_identifier = AgentReroIdentifier.__tablename__ <NEW_LINE> pid_provider = None <NEW_LINE> default_status = PIDStatus.REGISTERED | Rero identifier provider. | 62598fa5cc0a2c111447aef1 |
class Tile: <NEW_LINE> <INDENT> def __init__(self, color=0, character=" "): <NEW_LINE> <INDENT> self.character = character <NEW_LINE> self.color = color | Super-class that represents the basic information for an object of the grid | 62598fa58a43f66fc4bf205e |
class GensimTopicSumModel(object): <NEW_LINE> <INDENT> def __init__(self, tfidf_model_name, word_ids_loc, tfidf_model_loc, tokenizer=lambda x: x.split(), lazy_Load=True): <NEW_LINE> <INDENT> self.tfidf_model = load_gensim_tfidf_model(tfidf_model_name, word_ids_loc, tfidf_model_loc, tokenizer, lazy_Load) <NEW_LINE> self... | A convenience class for unify Gensim topic summarization models due
to their similar syntax.
This model contains no code for actually initializing topic
summarization models themselves. That's the responsibility of children
classes. As such, should never create an instance of this class
directly, only through inherita... | 62598fa53539df3088ecc196 |
class JCYLContextLoadTestCase(WithContext, ContextLoadTests, unittest.TestCase): <NEW_LINE> <INDENT> def create_app(self): <NEW_LINE> <INDENT> app = Flask(__name__, template_folder=u'templates') <NEW_LINE> app.config.from_object(CONFIG) <NEW_LINE> app.register_blueprint(blueprint) <NEW_LINE> Locales(app) <NEW_LINE> Loc... | Test Strategies
- each template returns a string containing its path. This way I can easily confirm which template rendered by simply checking the returned string. | 62598fa585dfad0860cbf9e5 |
class V1BuildConfigStatus(object): <NEW_LINE> <INDENT> operations = [ ] <NEW_LINE> swagger_types = { 'last_version': 'int' } <NEW_LINE> attribute_map = { 'last_version': 'lastVersion' } <NEW_LINE> def __init__(self, last_version=None): <NEW_LINE> <INDENT> self._last_version = last_version <NEW_LINE> <DEDENT> @property ... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fa5a8ecb033258710f1 |
class X12(object): <NEW_LINE> <INDENT> def __init__(self, givenfile): <NEW_LINE> <INDENT> self.filename = givenfile <NEW_LINE> self.readable = False <NEW_LINE> self.raw = '' <NEW_LINE> self.edix12 = False <NEW_LINE> self.fieldsep = '' <NEW_LINE> self.segsep = '' <NEW_LINE> self.segments = [] <NEW_LINE> self.isafile = i... | Class for an X12 file requires the path/filename.
Replaces print of object with a more human readable X12
broken into one segment per line.
attibutes:
filename - the file read
readable - if the file is readable
raw - the full unformatted X12
edix12 - Boolean: True if it appears to be X12 structure
fieldsep - the field... | 62598fa591f36d47f2230e14 |
class SignupForm(FlaskForm): <NEW_LINE> <INDENT> email = StringField('Email', validators=[ DataRequired('Please enter your email'), Email('Please enter your email')]) <NEW_LINE> password = PasswordField('Password', validators=[ DataRequired('Please enter your password'), Length(min=4, message='Password must be 4 or mor... | Defines the sign up form fields | 62598fa54a966d76dd5eedc5 |
class CalendarQueue(PriorityQueue): <NEW_LINE> <INDENT> def _put(self, item): <NEW_LINE> <INDENT> if item not in self.queue: <NEW_LINE> <INDENT> return super()._put(item) <NEW_LINE> <DEDENT> return None | Priority Queue for holding calendar events in chronological order | 62598fa599cbb53fe6830db7 |
class PaasStrategy(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.CrowdID = None <NEW_LINE> self.Items = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.CrowdID = params.get("CrowdID") <NEW_LINE> if params.get("Items") is not None: <NEW_LINE> <INDENT> ... | 短信发送人群包策略
| 62598fa5e1aae11d1e7ce794 |
class GlobalCoin(Bitcoin): <NEW_LINE> <INDENT> name = 'globalcoin' <NEW_LINE> symbols = ('GLC', ) <NEW_LINE> seeds = ("ip 54.252.196.5", "ip 52.24.129.149", ) <NEW_LINE> port = 55789 <NEW_LINE> message_start = b'\xe4\xe8\xe9\xe5' <NEW_LINE> base58_prefixes = { 'PUBKEY_ADDR': 11, 'SCRIPT_ADDR': 8, 'SECRET_KEY': 139 } | Class with all the necessary CryptoBullion network information based on
https://github.com/cryptogenicbonds/cryptobullion-cbx/blob/master/src/net.cpp
(date of access: 02/12/2018) | 62598fa599fddb7c1ca62d59 |
class GetPartitions(IcontrolCommand): <NEW_LINE> <INDENT> def setup(self): <NEW_LINE> <INDENT> ic = self.api <NEW_LINE> return ic.Management.Partition.get_partition_list() | get the full partition list | 62598fa501c39578d7f12c62 |
class CronTriggers(resource.Resource): <NEW_LINE> <INDENT> cron_triggers = [CronTrigger] <NEW_LINE> @classmethod <NEW_LINE> def sample(cls): <NEW_LINE> <INDENT> return cls(cron_triggers=[CronTrigger.sample()]) | A collection of cron triggers. | 62598fa51f5feb6acb162b04 |
class GeneralizedRCNN(nn.Module): <NEW_LINE> <INDENT> def __init__(self, cfg): <NEW_LINE> <INDENT> super(GeneralizedRCNN, self).__init__() <NEW_LINE> self.backbone = build_backbone(cfg) <NEW_LINE> self.rpn = build_rpn(cfg) <NEW_LINE> self.roi_heads = build_roi_heads(cfg) <NEW_LINE> self.return_feats = cfg.MODEL.ROI_BOX... | Main class for Generalized R-CNN. Currently supports boxes and masks.
It consists of three main parts:
- backbone
= rpn
- heads: takes the features + the proposals from the RPN and computes
detections / masks from it. | 62598fa53317a56b869be4bb |
class NMEASentenceTests(NMEAReceiverSetup, TestCase): <NEW_LINE> <INDENT> def test_repr(self): <NEW_LINE> <INDENT> sentencesWithExpectedRepr = [ (GPGSA, "<NMEASentence (GPGSA) {" "dataMode: A, " "fixType: 3, " "horizontalDilutionOfPrecision: 1.0, " "positionDilutionOfPrecision: 1.7, " "usedSatellitePRN_0: 19, " "usedSa... | Tests for L{nmea.NMEASentence} objects. | 62598fa567a9b606de545eae |
class NetWorkTester(threading.Thread): <NEW_LINE> <INDENT> queue = None <NEW_LINE> broadcast = None <NEW_LINE> is_gfw_open = False <NEW_LINE> test_ips = PING_TEST_IPS <NEW_LINE> def __init__(self, queue, broadcast): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.queue = queue <NEW_LINE> self.broadc... | 网络测试 | 62598fa54428ac0f6e658404 |
class InterfaceCollection(BaseIterable): <NEW_LINE> <INDENT> def __init__(self, engine, rel='interfaces'): <NEW_LINE> <INDENT> self._engine = engine <NEW_LINE> self._rel = rel <NEW_LINE> self.href = engine.get_relation(rel, UnsupportedInterfaceType) <NEW_LINE> super(InterfaceCollection, self).__init__(InterfaceEditor(e... | An interface collection provides top level search capabilities
to iterate or get interfaces of the specified type. This also
delegates all 'add' methods of an interface to the interface type
specified. Collections are returned from an engine reference and
not called directly.
For example, you can use this to obtain al... | 62598fa54f88993c371f047b |
class Game(ndb.Model): <NEW_LINE> <INDENT> target = ndb.StringProperty(required=True) <NEW_LINE> letters_guessed = ndb.StringProperty(required=True, default='') <NEW_LINE> correct_letters = ndb.StringProperty(required=True, default='') <NEW_LINE> guessed_word = ndb.StringProperty(required=True) <NEW_LINE> attempts_allo... | Game object | 62598fa556ac1b37e63020cf |
class DecoThree(): <NEW_LINE> <INDENT> def __init__(self, wrapped_function): <NEW_LINE> <INDENT> self.__name__ = wrapped_function.__name__ <NEW_LINE> self._wrapped = wrapped_function <NEW_LINE> <DEDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> print("GREETINGS from deco_three!") <NEW_LINE> result = self... | class without params decorating a function
__call__() is the replacement function
__init__() is passed the wrapped function
@DecoThree
def bar():
pass
same as
bar = DecoThree(bar) | 62598fa57cff6e4e811b590c |
class AccessMixin: <NEW_LINE> <INDENT> login_url = None <NEW_LINE> permission_denied_message = '' <NEW_LINE> raise_exception = False <NEW_LINE> redirect_field_name = REDIRECT_FIELD_NAME <NEW_LINE> def get_login_url(self): <NEW_LINE> <INDENT> login_url = self.login_url or settings.LOGIN_URL <NEW_LINE> if not login_url: ... | Abstract CBV mixin that gives access mixins the same customizable
functionality. | 62598fa5e76e3b2f99fd8919 |
class LockedDefaultDict(defaultdict): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.lock = threading.Lock() <NEW_LINE> super(LockedDefaultDict, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> with self.lock: <NEW_LINE> <INDENT> retu... | defaultdict with lock to handle threading
Dictionary only deletes if nothing is accessing dict and nothing is holding
lock to be deleted. If both cases are not true, it will skip delete. | 62598fa556ac1b37e63020d0 |
class MoneyAgent(Agent): <NEW_LINE> <INDENT> def __init__(self,unique_id,model): <NEW_LINE> <INDENT> super().__init__(unique_id,model) <NEW_LINE> self.wealth = 1 <NEW_LINE> <DEDENT> def step(self): <NEW_LINE> <INDENT> print(self.unique_id, self.wealth) <NEW_LINE> print(self.unique_id) <NEW_LINE> if self.wealth == 0: <N... | an agent with a fixed initial wealth | 62598fa57047854f4633f2bc |
class Kind(Enum): <NEW_LINE> <INDENT> UNKNOWN = 0 <NEW_LINE> IMAGE = 1 <NEW_LINE> OUTLINE = 2 <NEW_LINE> SHAPE = 3 <NEW_LINE> RGB = 4 <NEW_LINE> COMPOSITE = 1 <NEW_LINE> CONTOUR = 6 | Kind of entities we're working with. | 62598fa5236d856c2adc93ad |
class City(models.Model): <NEW_LINE> <INDENT> city = models.CharField('城市名称', max_length=40, db_index=True) <NEW_LINE> district = models.CharField('市区信息', max_length=40) <NEW_LINE> user_id = models.IntegerField('创建者') <NEW_LINE> status = models.IntegerField('数据状态', default=1) <NEW_LINE> created = models.DateTimeField(d... | 城市信息 | 62598fa566673b3332c302ad |
class DbUser(Base): <NEW_LINE> <INDENT> __tablename__ = 'users' <NEW_LINE> id = Column(INTEGER(10, unsigned=True), primary_key=True) <NEW_LINE> email = Column(String(191), nullable=False) <NEW_LINE> primary_owner_id = Column(ForeignKey('owners.id', name='fk_users_primary_owner_id', ondelete='SET NULL'), nullable=True, ... | Users - Laravel maintained table!
Only columns needed for migration | 62598fa567a9b606de545eaf |
class CloudStackIPForwardingRule(object): <NEW_LINE> <INDENT> def __init__(self, node, id, address, protocol, start_port, end_port=None): <NEW_LINE> <INDENT> self.node = node <NEW_LINE> self.id = id <NEW_LINE> self.address = address <NEW_LINE> self.protocol = protocol <NEW_LINE> self.start_port = start_port <NEW_LINE> ... | A NAT/firewall forwarding rule. | 62598fa521bff66bcd722b49 |
class ElFarolEnv(mgym.MEnv): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.N = None <NEW_LINE> self.nA = 2 <NEW_LINE> self.action_space = None <NEW_LINE> self.observation_space = spaces.Box(low=0.0, high=1.0, shape=(1,)) <NEW_LINE> self.state = None <NEW_LINE> self.attendence_threshold = None <NEW_LI... | El Farol N-person Game
Example
-------
>>> import gym
>>> import mgym
>>> import random
>>>
>>> env = gym.make('ElFarol-v0')
>>> obs = env.reset(N=10, total_iterations=100, threshold=0.6)
>>> done = False
>>> while True:
... a = env.action_space.sample()
... obs,r,done,info = env.step(a)
... env.render()
... | 62598fa53cc13d1c6d46564f |
class TestProcessMentions(BasicUserTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestProcessMentions, self).setUp() <NEW_LINE> self.link_markdown = "[{}]({})" <NEW_LINE> self.func = process_mentions <NEW_LINE> <DEDENT> def test_valid_process(self): <NEW_LINE> <INDENT> template = "{} this is ... | Test case for process mentions function in timeline utils. | 62598fa510dbd63aa1c70a95 |
class EmptyResultException(Exception): <NEW_LINE> <INDENT> pass | This exception is executed if getSingle, getSingleRow or getSingleColumn are
performed on a result which does not contain any row. | 62598fa58c0ade5d55dc3602 |
class ConstantPropertyWater(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._d = 998.207150468 <NEW_LINE> self._cp = 4184.05092452 <NEW_LINE> self._v = 0.00100179606961 <NEW_LINE> <DEDENT> def get_Density(self, **kwargs): <NEW_LINE> <INDENT> return self._d <NEW_LINE> <DEDENT> def get_SpecificI... | Object for the evaluation of thermal properties of heat transfer fluid
Water. | 62598fa532920d7e50bc5f3a |
class GreenthreadSafeIterator(object): <NEW_LINE> <INDENT> def __init__(self, unsafe_iterable): <NEW_LINE> <INDENT> self.unsafe_iter = iter(unsafe_iterable) <NEW_LINE> self.semaphore = eventlet.semaphore.Semaphore(value=1) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def n... | Wrap an iterator to ensure that only one greenthread is inside its next()
method at a time.
This is useful if an iterator's next() method may perform network IO, as
that may trigger a greenthread context switch (aka trampoline), which can
give another greenthread a chance to call next(). At that point, you get
an erro... | 62598fa5462c4b4f79dbb8f0 |
class Stats(object): <NEW_LINE> <INDENT> def __init__(self, subject, listeners = None, playcount = None, tagcount = None, count = None, match = None, rank = None, weight = None, attendance = None, reviews = None,): <NEW_LINE> <INDENT> self.__subject = subject <NEW_LINE> self.__listeners = listeners <NEW_LINE> self.__pl... | A class representing the stats of an artist. | 62598fa5dd821e528d6d8e19 |
class PageLimit(ModelSimple): <NEW_LINE> <INDENT> allowed_values = { } <NEW_LINE> validations = { ('value',): { 'inclusive_maximum': 100, 'inclusive_minimum': 10, }, } <NEW_LINE> additional_properties_type = None <NEW_LINE> _nullable = False <NEW_LINE> @cached_property <NEW_LINE> def openapi_types(): <NEW_LINE> <INDENT... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
Attributes:
allowed_values (dict): The key is the tuple path to the attribute
and the for var_name this is (var_name,). The value is a dict
with a capitalized key describing the a... | 62598fa54e4d562566372308 |
class TpuProjectsLocationsListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> name = _messages.StringField(2, required=True) <NEW_LINE> pageSize = _messages.IntegerField(3, variant=_messages.Variant.INT32) <NEW_LINE> pageToken = _messages.StringField(4) | A TpuProjectsLocationsListRequest object.
Fields:
filter: The standard list filter.
name: The resource that owns the locations collection, if applicable.
pageSize: The standard list page size.
pageToken: The standard list page token. | 62598fa599cbb53fe6830db9 |
class LogisticRegressionWithSGD(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @since('0.9.0') <NEW_LINE> def train(cls, data, iterations=100, step=1.0, miniBatchFraction=1.0, initialWeights=None, regParam=0.01, regType="l2", intercept=False, validateData=True, convergenceTol=0.001): <NEW_LINE> <INDENT> warnings.... | .. versionadded:: 0.9.0
.. note:: Deprecated in 2.0.0. Use ml.classification.LogisticRegression or
LogisticRegressionWithLBFGS. | 62598fa54a966d76dd5eedc7 |
class QueryEvent(BinLogEvent): <NEW_LINE> <INDENT> def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs): <NEW_LINE> <INDENT> super(QueryEvent, self).__init__(from_packet, event_size, table_map, ctl_connection, **kwargs) <NEW_LINE> self.slave_proxy_id = self.packet.read_uint32() <NEW_LINE> se... | This evenement is trigger when a query is run of the database.
Only replicated queries are logged. | 62598fa5be383301e02536dc |
class ConferencesFile(File): <NEW_LINE> <INDENT> filename_extensions = [] <NEW_LINE> folder_path = ['conferences', 'files'] <NEW_LINE> status = models.CharField(max_length=2, choices=FILE_STATUSES, default='PR') <NEW_LINE> def save(self, *args, **kwargs): <NEW_LINE> <INDENT> if not self.folder: <NEW_LINE> <INDENT> fold... | Multi-table inheritance base model
https://docs.djangoproject.com/en/1.6/topics/db/models/#multi-table-inheritance | 62598fa555399d3f05626408 |
class VoiceCommandError(commands.CheckFailure): <NEW_LINE> <INDENT> pass | This is raised when an error occurs in a voice command. | 62598fa5adb09d7d5dc0a46f |
class _Prop_modified(aetools.NProperty): <NEW_LINE> <INDENT> which = 'imod' <NEW_LINE> want = 'bool' | modified - Has the document been modified since the last save? | 62598fa597e22403b383adf0 |
class Vertex: <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self.coord = (x, y) <NEW_LINE> self.neighbors = [] <NEW_LINE> self.number = 0 <NEW_LINE> self.number_options = [] <NEW_LINE> self.illegal_numbers = [] <NEW_LINE> <DEDENT> def add_neighbor(self, neighbor): <NEW_LINE> <INDENT> if neighbor not... | A vertex in a graph, with atributes to be used for sudoku solving. | 62598fa56e29344779b00541 |
class Firedevil(spriteobj.SpriteObj): <NEW_LINE> <INDENT> def __init__(self, screen, level, gfx, x, y): <NEW_LINE> <INDENT> spriteobj.SpriteObj.__init__(self, screen, level, gfx, x, y) <NEW_LINE> self.movingLeftAnim = [(0, 80), (1, 80), (2, 80), (3, 80)] <NEW_LINE> self.movingRightAnim = [(5, 80), (6, 80), (7, 80), (8,... | Class for the fire devil: falls, removes ice-blocks | 62598fa532920d7e50bc5f3b |
class Forums(object): <NEW_LINE> <INDENT> def __init__(self, sess): <NEW_LINE> <INDENT> assert isinstance(sess, SakaiSession.SakaiSession) <NEW_LINE> self.session = sess <NEW_LINE> <DEDENT> def getForumsForSite(self, siteid): <NEW_LINE> <INDENT> return self.session.executeRequest('GET', '/forums/site/{0}.json'.format(s... | Contains logic for the Sakai Forums tool.
More information about the RESTful interface can be found at:
https://trunk-mysql.nightly.sakaiproject.org/direct/forums/describe | 62598fa54f88993c371f047c |
class Message(): <NEW_LINE> <INDENT> def __init__(self, entity_name, text, date=datetime.today(), language='english'): <NEW_LINE> <INDENT> self.entity_name = entity_name <NEW_LINE> self.text = text <NEW_LINE> self.date = date <NEW_LINE> self.language = language <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT... | Represents a message a user of Emotext sends to the cofra framework. | 62598fa6cb5e8a47e493c0ea |
class SeaBreezeRawUSBBusAccessFeature(SeaBreezeFeature): <NEW_LINE> <INDENT> identifier = "raw_usb_bus_access" <NEW_LINE> _required_protocol_cls = PySeaBreezeProtocol <NEW_LINE> @classmethod <NEW_LINE> def supports_protocol(cls, protocol: PySeaBreezeProtocol) -> bool: <NEW_LINE> <INDENT> return isinstance(protocol.tran... | Reading and writing raw usb
Example usage
.. code-block:: python
>>> import struct # needed for packing binary data into bytestrings
>>> from seabreeze.spectrometers import Spectrometer
>>> spec = Spectrometer.from_first_available()
# features need to be accessed on the spectrometer instance via spec.f or spec.... | 62598fa644b2445a339b68e1 |
class ClassicAgent(Agent): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def decide(self, observation: np.ndarray) -> int: <NEW_LINE> <INDENT> return 0 | Fixed-policy traditional agent.
Represents an agent based on a traditional fixed policy. It can be used as a comparison against deep
reinforcement learning agents being developed. May implement any of the policy pairs in the action
space.
| 62598fa65166f23b2e2432bc |
class Adaptor (saga.adaptors.base.Base): <NEW_LINE> <INDENT> def __init__ (self) : <NEW_LINE> <INDENT> saga.adaptors.base.Base.__init__ (self, _ADAPTOR_INFO, _ADAPTOR_OPTIONS) <NEW_LINE> self._default_contexts = [] <NEW_LINE> self._have_defaults = False <NEW_LINE> <DEDENT> def sanity_check (self) : <NEW_LINE> <INDEN... | This is the actual adaptor class, which gets loaded by SAGA (i.e. by the
SAGA engine), and which registers the CPI implementation classes which
provide the adaptor's functionality. | 62598fa626068e7796d4c83e |
class CachedS3BotoStorage(S3BotoStorage): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CachedS3BotoStorage, self).__init__(*args, **kwargs) <NEW_LINE> self.local_storage = get_storage_class("compressor.storage.CompressorFileStorage")() <NEW_LINE> <DEDENT> def save(self, name, conte... | S3 storage backend that saves the files locally, too. | 62598fa60a50d4780f7052c1 |
class BrowserEnv(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> osenv = os.environ.copy() <NEW_LINE> self.selenium_platform = osenv.get('SELENIUM_PLATFORM') <NEW_LINE> self.selenium_version = osenv.get('SELENIUM_VERSION') <NEW_LINE> self.selenium_browser = osenv.get('SELENIUM_BROWSER', 'firefox') ... | Class to hold the browser environment settings.
These are determined by OS environment values that are
set locally, by Jenkins, and by the SauceLabs Jenkins plugin. | 62598fa6f548e778e596b48a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.