code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Vars: <NEW_LINE> <INDENT> key_change = 'keyChange' <NEW_LINE> scope = 'scope' <NEW_LINE> scope_mode = 'scopeMode' <NEW_LINE> scope_change = 'scopeChange' <NEW_LINE> function_mode = 'functionMode' <NEW_LINE> function_code = 'functionCode' <NEW_LINE> function_url = 'functionURL' <NEW_LINE> function_send = 'function... | Stub for these hotkey strings. | 6259906797e22403b383c68c |
class CombinedPASCALDatasetsGeneratorFactory: <NEW_LINE> <INDENT> def __init__(self, voc_config, hariharan_config, size_factor, categories_count): <NEW_LINE> <INDENT> self.voc_config = voc_config <NEW_LINE> self.hariharan_config = hariharan_config <NEW_LINE> self.size_factor = size_factor <NEW_LINE> self.indices_to_col... | Factory class that merges VOC 2012 and Hariharan's PASCAL datasets.
Builds a generator for that returns (image, segmentation) tuples. | 625990677b25080760ed88a1 |
class RestrictionSerializer(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_serializable_restriction(restriction): <NEW_LINE> <INDENT> serializable_restriction = {} <NEW_LINE> serializable_restriction["index"] = restriction.index <NEW_LINE> serializable_restriction["name"] = restriction.name <NEW_LINE> se... | A class to support serializing/deserializing of a single restriction and dictionaries of restrictions. Needs improvement | 6259906701c39578d7f142f4 |
class ColorFactory(object): <NEW_LINE> <INDENT> _colors = weakref.WeakValueDictionary() <NEW_LINE> @classmethod <NEW_LINE> def get_color(cls, name): <NEW_LINE> <INDENT> value = cls._colors.get(name) <NEW_LINE> if value is None: <NEW_LINE> <INDENT> value = Color(name) <NEW_LINE> cls._colors[name] = value <NEW_LINE> <DED... | Фабрика приспособленцев | 625990677047854f46340b33 |
class SocksProxy(registry.String): <NEW_LINE> <INDENT> def setValue(self, v): <NEW_LINE> <INDENT> if ':' not in v: <NEW_LINE> <INDENT> self.error() <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> int(v.rsplit(':', 1)[1]) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <INDENT> self.error() <NEW_LINE> <DEDENT> super(Sock... | Value must be a valid hostname:port string. | 6259906723849d37ff852835 |
class ChatImageList(_ChatFileList): <NEW_LINE> <INDENT> serializer_class = ChatImageSerializer <NEW_LINE> queryset = ChatImage.objects.all() <NEW_LINE> ActionType = ChatImageMessageAction <NEW_LINE> field = IMAGE_MESSAGE_FIELD | post:
requires chat-type from url (private-chat, group-chat, encrypted-private-chat) and its id.
Creates image in the related chat
get:
requires chat-type from url (private-chat, group-chat, encrypted-private-chat) and its id.
get list of images in the related chat | 6259906792d797404e38971d |
class GeoDataMixin: <NEW_LINE> <INDENT> @need_extension('GeoData') <NEW_LINE> def loadcoordinfo(self, page): <NEW_LINE> <INDENT> title = page.title(with_section=False) <NEW_LINE> query = self._generator(api.PropertyGenerator, type_arg='coordinates', titles=title.encode(self.encoding()), coprop=['type', 'name', 'dim', '... | APISite mixin for GeoData extension. | 625990672ae34c7f260ac867 |
class TermRange(RangeMixin, terms.MultiTerm): <NEW_LINE> <INDENT> def __init__(self, fieldname, start, end, startexcl=False, endexcl=False, boost=1.0, constantscore=True): <NEW_LINE> <INDENT> self.fieldname = fieldname <NEW_LINE> self.start = start <NEW_LINE> self.end = end <NEW_LINE> self.startexcl = startexcl <NEW_LI... | Matches documents containing any terms in a given range.
>>> # Match documents where the indexed "id" field is greater than or equal
>>> # to 'apple' and less than or equal to 'pear'.
>>> TermRange("id", u"apple", u"pear") | 62599067d486a94d0ba2d73e |
class RestaurantViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> permission_classes = [permissions.IsAuthenticated] <NEW_LINE> queryset = restaurant_models.Restaurant.objects.all() <NEW_LINE> serializer_class = restaurant_serializers.RestaurantSerializer | To handles CRUD operation on resturants | 62599067f7d966606f74947a |
class AuthError(Exception): <NEW_LINE> <INDENT> pass | Generic Authentication/authorization errors. | 62599067d6c5a102081e38a6 |
class ZWaveDeviceEntity(ZWaveBaseEntity): <NEW_LINE> <INDENT> def __init__(self, values, domain): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> from openzwave.network import ZWaveNetwork <NEW_LINE> from pydispatch import dispatcher <NEW_LINE> self.values = values <NEW_LINE> self.node = values.primary.node <NEW_LINE... | Representation of a Z-Wave node entity. | 62599067baa26c4b54d50a26 |
class AspectBaseTest: <NEW_LINE> <INDENT> def test_class(self): <NEW_LINE> <INDENT> assert not isinstance(aspectbase, aspectclass) <NEW_LINE> <DEDENT> def test_init_needs_aspectclass(self): <NEW_LINE> <INDENT> error_str = 'object has no attribute' <NEW_LINE> with pytest.raises(AttributeError) as exc: <NEW_LINE> <INDENT... | aspectbase is just a mixin base class for new aspectclasses
and is therefore only usable works with a derived aspectclass
and therefore doesn't use the aspectclass meta for itself | 62599067cc0a2c111447c690 |
@dataclass(init=True) <NEW_LINE> class DuplicateWavelengthStates: <NEW_LINE> <INDENT> transmission: StateCalculateTransmission <NEW_LINE> normalize: StateNormalizeToMonitor <NEW_LINE> wavelength: StateWavelength <NEW_LINE> pixel: StateWavelengthAndPixelAdjustment <NEW_LINE> def iterate_fields(self): <NEW_LINE> <INDENT>... | These four classes contain duplicated attributes, so this POD
class ties them together for subsequent setters | 625990670c0af96317c5791f |
class Script: <NEW_LINE> <INDENT> def __init__(self, script): <NEW_LINE> <INDENT> self.script = script <NEW_LINE> self.serialized = self.parse() <NEW_LINE> self.size = len(self.serialized) <NEW_LINE> <DEDENT> def parse(self) : <NEW_LINE> <INDENT> instructions = self.script.split(' ') <NEW_LINE> serialized = b'' <NEW_LI... | This class represents a Bitcoin script. | 62599067fff4ab517ebcef9b |
class PersonalRelationship(neomodel.StructuredRel): <NEW_LINE> <INDENT> on_date = neomodel.DateProperty(default_now = True) | A very simple relationship between two basePersons that simply records
the date at which an acquaintance was established.
This relationship should be carried over to anything that inherits from
basePerson without any further effort. | 62599067a8370b77170f1b50 |
class TestLink(unittest.TestCase): <NEW_LINE> <INDENT> def _get_target_class(self): <NEW_LINE> <INDENT> from randopony.models import Link <NEW_LINE> return Link <NEW_LINE> <DEDENT> def _make_one(self, *args, **kwargs): <NEW_LINE> <INDENT> return self._get_target_class()(*args, **kwargs) <NEW_LINE> <DEDENT> def test_rep... | Unit tests for Link data model.
| 625990674f88993c371f10df |
class _ConfigLoader(FileLoader, SourceLoader): <NEW_LINE> <INDENT> def get_code(self, fullname: str) -> CodeType: <NEW_LINE> <INDENT> source = self.get_source(fullname) <NEW_LINE> path = self.get_filename(fullname) <NEW_LINE> parsed = ast.parse(source) <NEW_LINE> return compile(parsed, path, 'exec', dont_inherit=True) ... | Config module loader class. | 625990678e71fb1e983bd246 |
class LayerModule(_Layer): <NEW_LINE> <INDENT> def __init__(self, layers: Sequence[_Layer]): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.layers = layers <NEW_LINE> <DEDENT> def apply(self, inputs: _OneOrMore(tf.Tensor), is_training: tf.Tensor) -> tf.Tensor: <NEW_LINE> <INDENT> output = inputs <NEW_LINE> for ... | A set of layers that can be applied as a group (useful if you want to use them in multiple places). | 62599067be8e80087fbc080a |
@attr.s(auto_attribs=True) <NEW_LINE> class CompactArrayData(BaseDlmsData): <NEW_LINE> <INDENT> TAG = 19 <NEW_LINE> LENGTH = VARIABLE_LENGTH | Contains a Type description and arrray content in form of octet string
content_description -> Type Description tag = 0
array_content -> Octet string tag = 1 | 62599067a17c0f6771d5d767 |
class RedisConsistentHashRouter(BaseRedisRouter): <NEW_LINE> <INDENT> def __init__(self, hosts): <NEW_LINE> <INDENT> BaseRedisRouter.__init__(self, hosts) <NEW_LINE> self._hashring = HashRing(hosts.values()) <NEW_LINE> <DEDENT> def get_host_for_key(self, key): <NEW_LINE> <INDENT> node = self._hashring.get_node(key) <NE... | Use ketama for hash partitioning. | 625990674527f215b58eb563 |
class CartAddSerializer(serializers.Serializer): <NEW_LINE> <INDENT> product_id = serializers.IntegerField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> fields = ["product_id"] | Serializer to represent in docs | 625990676e29344779b01dd2 |
class JSONField(JSONFieldBase, models.TextField): <NEW_LINE> <INDENT> form_class = JSONFormField <NEW_LINE> def dumps_for_display(self, value): <NEW_LINE> <INDENT> kwargs = {"indent": 2} <NEW_LINE> kwargs.update(self.dump_kwargs) <NEW_LINE> return json.dumps(value, ensure_ascii=False, **kwargs) | JSONField is a generic textfield that serializes/deserializes JSON objects | 62599067d486a94d0ba2d73f |
class CIFAR10RandomLabels(datasets.CIFAR10): <NEW_LINE> <INDENT> def __init__(self, corrupt_prob=0.0, num_classes=10, **kwargs): <NEW_LINE> <INDENT> super(CIFAR10RandomLabels, self).__init__(**kwargs) <NEW_LINE> self.n_classes = num_classes <NEW_LINE> if corrupt_prob > 0: <NEW_LINE> <INDENT> self.corrupt_labels(corrupt... | CIFAR10 dataset, with support for randomly corrupt labels.
Params
------
corrupt_prob: float
Default 0.0. The probability of a label being replaced with
random label.
num_classes: int
Default 10. The number of classes in the dataset. | 6259906771ff763f4b5e8f27 |
class EntityType: <NEW_LINE> <INDENT> def __init__(self, *components, layer, name, tmp_rendering=None): <NEW_LINE> <INDENT> self.layer = layer <NEW_LINE> self.name = name <NEW_LINE> self.tmp_rendering = tmp_rendering <NEW_LINE> self.components = {} <NEW_LINE> self.component_data = {} <NEW_LINE> for component in compone... | A class of entity, except deliberately not implemented as a class.
Consists primarily of some number of components, each implementing a
different interface. | 625990673317a56b869bf103 |
class DeflateBuffer: <NEW_LINE> <INDENT> def __init__(self, out, encoding): <NEW_LINE> <INDENT> self.out = out <NEW_LINE> self.size = 0 <NEW_LINE> self.encoding = encoding <NEW_LINE> self._started_decoding = False <NEW_LINE> zlib_mode = (16 + zlib.MAX_WBITS if encoding == 'gzip' else -zlib.MAX_WBITS) <NEW_LINE> self.zl... | DeflateStream decompress stream and feed data into specified stream. | 6259906799fddb7c1ca63990 |
class BlobbableBinary(object): <NEW_LINE> <INDENT> implements(IBlobbable) <NEW_LINE> adapts(Binary) <NEW_LINE> def __init__(self, context): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> <DEDENT> def feed(self, blob): <NEW_LINE> <INDENT> blobfile = blob.open('w') <NEW_LINE> blobfile.writelines(self.context.data)... | adapter for xmlrpclib Binary instance to work with blobs | 62599067d486a94d0ba2d740 |
class Describe(base.DescribeCommand): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> user_utils.AddUserArgument(parser, 'describe') <NEW_LINE> <DEDENT> def Run(self, args): <NEW_LINE> <INDENT> compute_holder = base_classes.ComputeApiHolder(self.ReleaseTrack()) <NEW_LINE> holder = bas... | Describe a Google Compute Engine user.
*{command}* displays all data associated with a Google Compute
Engine user in a project.
## EXAMPLES
To describe a user, run:
$ {command} example-user
To describe the default user mapped from the currently authenticated
Google account email, run:
$ {command} | 6259906744b2445a339b7521 |
class Parameter(Variable): <NEW_LINE> <INDENT> def __new__(cls, data=None, requires_grad=True): <NEW_LINE> <INDENT> return super(Parameter, cls).__new__(cls, data, requires_grad=requires_grad) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return 'Parameter containing:' + self.data.__repr__() | A kind of Variable that is to be considered a module parameter.
Parameters are :class:`~torch.autograd.Variable` subclasses, that have a
very special property when used with :class:`Module` s - when they're
assigned as Module attributes they are automatically added to the list of
its parameters, and will appear e.g. i... | 625990674a966d76dd5f0676 |
class Aperture(object): <NEW_LINE> <INDENT> def __init__(self,E0): <NEW_LINE> <INDENT> self.E0 = E0; <NEW_LINE> <DEDENT> def p(self,q): <NEW_LINE> <INDENT> raise NotImplemented('abstract method'); <NEW_LINE> <DEDENT> def qmin(self): <NEW_LINE> <INDENT> raise NotImplemented('abstract method'); <NEW_LINE> <DEDENT> def qm... | Abstract base class for all special apertures
methods used: p(q), qmin(), qmax() | 625990679c8ee82313040d49 |
class UserForm(messages.Message): <NEW_LINE> <INDENT> name = messages.StringField(1, required=True) <NEW_LINE> email = messages.StringField(2, required=True) | UserForm -- User outbound form message | 62599067baa26c4b54d50a28 |
class Base(db.Model): <NEW_LINE> <INDENT> __abstract__ = True <NEW_LINE> created_at = db.Column(db.DateTime, default=datetime.utcnow) <NEW_LINE> updated_at = db.Column(db.DateTime, default=datetime.utcnow, onupdate=datetime.utcnow) | 所有的 model 的一个基类,默认添加了时间戳 | 625990678e7ae83300eea811 |
class ImaginaryUnit(AtomicExpr, metaclass=Singleton): <NEW_LINE> <INDENT> is_commutative = True <NEW_LINE> is_imaginary = True <NEW_LINE> is_finite = True <NEW_LINE> is_number = True <NEW_LINE> is_algebraic = True <NEW_LINE> is_transcendental = False <NEW_LINE> kind = NumberKind <NEW_LINE> __slots__ = () <NEW_LINE> def... | The imaginary unit, `i = \sqrt{-1}`.
I is a singleton, and can be accessed by ``S.I``, or can be
imported as ``I``.
Examples
========
>>> from sympy import I, sqrt
>>> sqrt(-1)
I
>>> I*I
-1
>>> 1/I
-I
References
==========
.. [1] https://en.wikipedia.org/wiki/Imaginary_unit | 6259906755399d3f05627ca3 |
class itkNumericTraitsFAUI1(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> __swig_destroy__ = _itkNumericTraitsPython.delete_itkNumericTraitsFAUI1 <NEW_LINE> def __init__(self, *args): <NEW_... | Proxy of C++ itkNumericTraitsFAUI1 class | 625990677c178a314d78e7ad |
class MySocket: <NEW_LINE> <INDENT> def __init__(self, sock=None): <NEW_LINE> <INDENT> if sock is None: <NEW_LINE> <INDENT> self.sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.sock = sock <NEW_LINE> <DEDENT> <DEDENT> def connect(self, host, port): <NEW_LINE>... | demonstration class only
- coded for clarity, not efficiency | 6259906776e4537e8c3f0d05 |
class Grid(object): <NEW_LINE> <INDENT> def __init__(self,zs,nplanes=100,cosmo=[0.25,0.75,0.73]): <NEW_LINE> <INDENT> distance = Distance() <NEW_LINE> self.zmax = zs*1.0 <NEW_LINE> self.zs = zs*1.0 <NEW_LINE> self.nplanes = nplanes <NEW_LINE> self.cosmo = cosmo <NEW_LINE> self.redshifts, self.dz = linspace(0.0,self.zma... | TODO | 625990673617ad0b5ee078d4 |
class ExpiredTest(django.test.TestCase): <NEW_LINE> <INDENT> fixtures = ['core.json'] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_expired(self): <NEW_LINE> <INDENT> table = [ ('530d166a-ace9-46d5-b817-9168ca5946b1', '495bb3be-e327-4840-accf-afefcd411e06', ['bf6893b6-7963-4b61-9149-... | !
Tests for expired datainstance lookups. | 625990678a43f66fc4bf3913 |
class Reader(): <NEW_LINE> <INDENT> def __init__(self, lastz_file, long_format = False): <NEW_LINE> <INDENT> self.file = open(lastz_file, 'rU') <NEW_LINE> self.long_format = long_format <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> self.file.close() <NEW_LINE> <DEDENT> def __iter__( self ): <NEW_LINE> <IND... | read a lastz file and return an iterator over that file | 62599067009cb60464d02cbc |
class Indents(BaseTestCase): <NEW_LINE> <INDENT> sample = '\n'.join([ 'line=1', ' line=2', '', 'line=4', ]) <NEW_LINE> sample_update = sample.replace('line=', 'line+=') <NEW_LINE> def test_compare(self): <NEW_LINE> <INDENT> self.assertEqual(indents.indent0, self.sample) <NEW_LINE> self.assertEqual(indents.indent4, s... | Test indented lines in baselined text compare and updated correctly. | 625990677047854f46340b36 |
class EOSAbiProcessingError(Exception): <NEW_LINE> <INDENT> pass | Raised when the abi action cannot be processed | 625990671b99ca40022900f7 |
class XdrsKeystoneContext(wsgi.Middleware): <NEW_LINE> <INDENT> @webob.dec.wsgify(RequestClass=wsgi.Request) <NEW_LINE> def __call__(self, req): <NEW_LINE> <INDENT> user_id = req.headers.get('X_USER') <NEW_LINE> user_id = req.headers.get('X_USER_ID', user_id) <NEW_LINE> if user_id is None: <NEW_LINE> <INDENT> LOG.debug... | Make a request context from keystone headers.
从keystone头文件中形成request上下文信息; | 625990677d43ff2487427fd2 |
class Builder(object): <NEW_LINE> <INDENT> def __init__(self, resolver): <NEW_LINE> <INDENT> self.resolver = resolver <NEW_LINE> <DEDENT> def build(self, name): <NEW_LINE> <INDENT> if isinstance(name, six.string_types): <NEW_LINE> <INDENT> type = self.resolver.find(name) <NEW_LINE> if type is None: <NEW_LINE> <INDENT> ... | Builder used to construct an object for types defined in the schema | 6259906771ff763f4b5e8f29 |
class NodeLookup(object): <NEW_LINE> <INDENT> def __init__(self, label_lookup_path=None, uid_lookup_path=None): <NEW_LINE> <INDENT> if not label_lookup_path: <NEW_LINE> <INDENT> label_lookup_path = './imagenet/imagenet_2012_challenge_label_map_proto.pbtxt' <NEW_LINE> <DEDENT> if not uid_lookup_path: <NEW_LINE> <INDENT>... | Converts integer node ID's to human readable labels. | 625990672ae34c7f260ac86b |
class ReferendumComments(APIView): <NEW_LINE> <INDENT> permission_classes = (permissions.IsAuthenticatedOrReadOnly,) <NEW_LINE> def get_referendum(self, pk): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return Referendum.objects.get(pk=pk) <NEW_LINE> <DEDENT> except Referendum.DoesNotExist: <NEW_LINE> <INDENT> raise Ht... | List Comments of the referendum in a Tree | 62599067b7558d5895464af1 |
class PDFTemplateResponseMixin(TemplateResponseMixin): <NEW_LINE> <INDENT> pdf_filename = None <NEW_LINE> pdf_kwargs = None <NEW_LINE> def get_pdf_filename(self): <NEW_LINE> <INDENT> return self.pdf_filename <NEW_LINE> <DEDENT> def get_pdf_kwargs(self): <NEW_LINE> <INDENT> if self.pdf_kwargs is None: <NEW_LINE> <INDENT... | A mixin class that implements PDF rendering and Django response construction. | 625990674428ac0f6e659cb6 |
class CommandMarkdownGenerator(MarkdownGenerator): <NEW_LINE> <INDENT> def __init__(self, command): <NEW_LINE> <INDENT> self._command = command <NEW_LINE> command.LoadAllSubElements() <NEW_LINE> self._root_command = command._TopCLIElement() <NEW_LINE> self._subcommands = command.GetSubCommandHelps() <NEW_LINE> self._su... | Command help markdown document generator.
Attributes:
_command: The CommandCommon instance for command.
_root_command: The root CLI command instance.
_subcommands: The dict of subcommand help indexed by subcommand name.
_subgroups: The dict of subgroup help indexed by subcommand name. | 62599067460517430c432c17 |
class WinningEntriesView(ListView, JingoTemplateMixin): <NEW_LINE> <INDENT> template_name = 'challenges/winning.html' <NEW_LINE> context_object_name = 'entries' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(WinningEntriesView, self).get_context_data(**kwargs) <NEW_LINE> context.up... | Show entries that have been marked as winners. | 62599067baa26c4b54d50a2a |
class Stow(AutotoolsPackage, GNUMirrorPackage): <NEW_LINE> <INDENT> homepage = "https://www.gnu.org/software/stow/" <NEW_LINE> gnu_mirror_path = "stow/stow-2.2.2.tar.bz2" <NEW_LINE> version('2.3.1', sha256='26a6cfdfdaca0eea742db5487798c15fcd01889dc86bc5aa62614ec9415a422f') <NEW_LINE> version('2.2.2', sha256='a002203496... | GNU Stow: a symlink farm manager
GNU Stow is a symlink farm manager which takes distinct
packages of software and/or data located in separate
directories on the filesystem, and makes them appear to be
installed in the same place. | 62599067cc0a2c111447c692 |
class IRCLineModel(BaseModel): <NEW_LINE> <INDENT> buffer = p.ForeignKeyField(IRCBufferModel, related_name='lines', on_delete='CASCADE') <NEW_LINE> timestamp = p.DateTimeField(default=datetime.datetime.utcnow) <NEW_LINE> user = p.ForeignKeyField(IRCUserModel, null=True, on_delete='CASCADE') <NEW_LINE> nick = p.TextFiel... | Models anything that might be displayed in a buffer.
Typically this will be messages, notices, CTCP ACTIONs, joins, quits, mode changes, topic changes, etc. | 62599067435de62698e9d58e |
class Streams(Collection): <NEW_LINE> <INDENT> def __init__(self, profile): <NEW_LINE> <INDENT> super(Streams, self).__init__(profile) <NEW_LINE> self._meta_data['allowed_lazy_attributes'] = [Stream] <NEW_LINE> self._meta_data['attribute_registry'] = {'tm:ltm:profile:stream:streamstate': Stream} | BIG-IP® Stream profile collection. | 62599067a8370b77170f1b52 |
class LevelLogger(BaseLogger): <NEW_LINE> <INDENT> default_level = 0 <NEW_LINE> default_file = "normal.log" <NEW_LINE> def __init__(self, *, level=None, file=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.level = pick(level, self.default_level) <NEW_LINE> self.file = pick(file, self.def... | Implement levelled logging.
"level":
Number specifying the default level at which lines
will be logged.
Default: 0
Bypassers arguments:
"level":
Bypasser to override the "level" parameter given to
the logger method. The resulting value must be a... | 6259906791f36d47f2231a51 |
class convGroup(object): <NEW_LINE> <INDENT> def __init__(self,rng,input,filter_shapes,finalpoolsize=(2,2)): <NEW_LINE> <INDENT> self.sublayer0 = LeNetConvPoolLayer( rng, input=input, filter_shape=filter_shapes[0], poolsize=(1,1) ) <NEW_LINE> self.sublayer1 = LeNetConvPoolLayer( rng, input=self.sublayer0.output, filter... | Group of convolutional layers with a max pool at the end | 62599067fff4ab517ebcef9f |
class UpdatePwdView(LoginRequiredMixin, View): <NEW_LINE> <INDENT> def post(self,request): <NEW_LINE> <INDENT> modify_form = ResetForm(request.POST) <NEW_LINE> if modify_form.is_valid(): <NEW_LINE> <INDENT> pwd1 = request.POST.get('password1','') <NEW_LINE> pwd2 = request.POST.get('password2','') <NEW_LINE> if pwd1!=pw... | 个人中心修改密码 | 625990677c178a314d78e7ae |
class ActionItemProcessorBase(object): <NEW_LINE> <INDENT> @transaction.commit_on_success <NEW_LINE> def perform_action(self, action_item): <NEW_LINE> <INDENT> method_name = action_item.action.replace('-', '_').lower() <NEW_LINE> method_instance = getattr(self, method_name, None) <NEW_LINE> if callable(method_instance)... | Each ActionItem processor extends this class.
A Processor class defines methods named after the action they handle for
a given ActionItem instance (i.e. `ActionItem.action`.) The method name is
simply the lowercased ActionItem.action name with dashes replaced by
underscores. The method must return `True` for a succes... | 625990673539df3088ecda23 |
class User(Person): <NEW_LINE> <INDENT> def __init__(self, name="", language="", domain="", service="", duration=0): <NEW_LINE> <INDENT> super().__init__(name, language, domain) <NEW_LINE> self._service = service <NEW_LINE> self._duration = duration <NEW_LINE> <DEDENT> def setService(self, service): <NEW_LINE> <INDENT>... | User class is responsible for defining a single User that derives from Person | 62599067dd821e528d6da543 |
class Discriminator(nn.Module): <NEW_LINE> <INDENT> def __init__(self, image_shape): <NEW_LINE> <INDENT> super(Discriminator, self).__init__() <NEW_LINE> self.model = nn.Sequential( nn.Linear(int(np.prod(image_shape)), 512), nn.LeakyReLU(0.2, inplace=True), nn.Linear(512, 256), nn.LeakyReLU(0.2, inplace=True), nn.Linea... | Discriminator network of the generative adversarial network. | 625990671f037a2d8b9e542d |
class TwilioDispatcher: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.client = TwilioRestClient( TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN ) <NEW_LINE> <DEDENT> def send_to_number(self, to_number, text): <NEW_LINE> <INDENT> number = number_repo.get_by_number(to_number) <NEW_LINE> if not number: <NEW_LINE... | Sends text messages using Twilio API. | 625990677047854f46340b38 |
class MemberBinaryOpExprNode(MemberOperatorExprNode): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(MemberBinaryOpExprNode, self).__init__() | Node class representing a binary operator expression | 625990674527f215b58eb565 |
class RouteFilterRuleListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[RouteFilterRule]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(RouteFilterRuleListResult, self).__init__(**... | Response for the ListRouteFilterRules API service call.
:param value: Gets a list of RouteFilterRules in a resource group.
:type value: list[~azure.mgmt.network.v2018_04_01.models.RouteFilterRule]
:param next_link: The URL to get the next set of results.
:type next_link: str | 625990675fdd1c0f98e5f70a |
class PropGroup: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.list_prop = [] <NEW_LINE> <DEDENT> def apply_props(self, painter): <NEW_LINE> <INDENT> pass | Абстрактный класс свойств | 62599067d486a94d0ba2d743 |
class DataReader(): <NEW_LINE> <INDENT> def __init__(self, filename, filetype=None, instrument=None): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self.filetype = filetype <NEW_LINE> self.instrument = instrument <NEW_LINE> self.data = self.read(filename, filetype, instrument) <NEW_LINE> <DEDENT> def __call__... | Reads data into pandas Dataframe from a file.
Parameters
----------
filename: str
Path to file to read.
filetype : str
Type of the file to read. If not specified, csv is used.
Possible options are csv, xlsx and asc.
instrument : str
Type of the instrument used for measurement. If not specified, raw da... | 62599067e5267d203ee6cf80 |
class ParserConfig(object): <NEW_LINE> <INDENT> def __init__(self, reference_resolver, duplicates, duplicate_of, tree, index, reverse_index, base_dir, code_url_prefix): <NEW_LINE> <INDENT> self.reference_resolver = reference_resolver <NEW_LINE> self.duplicates = duplicates <NEW_LINE> self.duplicate_of = duplicate_of <N... | Stores all indexes required to parse the docs. | 625990673317a56b869bf105 |
class TestCreateCloudJobResponse(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 testCreateCloudJobResponse(self): <NEW_LINE> <INDENT> pass | CreateCloudJobResponse unit test stubs | 6259906799cbb53fe683266a |
class LocalNode(object): <NEW_LINE> <INDENT> implements(resources.INode) <NEW_LINE> def __init__(self, nodeName, slurmd, port, reactor): <NEW_LINE> <INDENT> self.nodeName = nodeName <NEW_LINE> self.port = port <NEW_LINE> self.hostname = 'localhost' <NEW_LINE> self.log = logging.Logger(__name__, system=self.nodeName) <N... | A class implementing the ``INode`` interface which runs a ``slurmd``
process locally using SLURM's multiple daemons support. | 62599067b7558d5895464af2 |
class EclipseIDETests(LargeFrameworkTests): <NEW_LINE> <INDENT> TIMEOUT_INSTALL_PROGRESS = 120 <NEW_LINE> TIMEOUT_START = 60 <NEW_LINE> TIMEOUT_STOP = 60 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.installed_path = os.path.expanduser("~/tools/ide/eclipse") <NEW_LINE> self.desktop_fil... | The Eclipse distribution from the IDE collection. | 62599067d486a94d0ba2d744 |
class PerformanceTest(object): <NEW_LINE> <INDENT> def __init__(self, model, data, split_data=False): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.model = model <NEW_LINE> if split_data: <NEW_LINE> <INDENT> self.train_set, self.test_set = model.split_data(data) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self... | Represents model performance test.
:param model: Insance of the model to test.
:type model: :class:`models.Model`
:param data: Data to use for the test.
:type data: :class:`pandas.DataFrame`
:param split_data: Whether to split the data between
test set and train set. Default is :obj:`False`.
:type split_data: call... | 625990678da39b475be04970 |
class AttributeIdError(NMLException): <NEW_LINE> <INDENT> pass | Attribute `identifier` must be a persistent globally unique URI. | 625990674e4d562566373b8d |
class ConnectionError(TransportError): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return 'ConnectionError(%s) caused by: %s(%s)' % ( self.error, self.info.__class__.__name__, self.info) | Connection error.
Error raised when there was an exception while talking to
ES. Original exception from the underlying Connection
implementation is available as .info. | 62599067009cb60464d02cbf |
class AuthBackend(object): <NEW_LINE> <INDENT> hasher = bcrypt <NEW_LINE> def get_user(self, username, password): <NEW_LINE> <INDENT> record = self.read_user(username) <NEW_LINE> if not record: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> if not self.hasher.verify(password, record[self.password_field]): <NEW_LI... | Basic auth backend.
Use one of its subclasses or make your own. | 625990670a50d4780f706983 |
class AccountUpdate(TagUpdate): <NEW_LINE> <INDENT> _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, 'location': {'key': 'location', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, tags: Optional[Dict[str, str]] = None, identity: Optiona... | Request payload used to update and existing Accounts.
:param tags: A set of tags. List of key value pairs that describe the resource. This will
overwrite the existing tags.
:type tags: dict[str, str]
:param identity: The type of identity used for the resource.
:type identity: ~device_update.models.ManagedServiceIdent... | 62599067d7e4931a7ef3d749 |
class CSVExtract(Node): <NEW_LINE> <INDENT> def run( self, f, compression=None, open_flags="r", chunksize=None, nrows=None, reader=csv.DictReader, **kwargs ): <NEW_LINE> <INDENT> if "b" in open_flags: <NEW_LINE> <INDENT> raise Exception("Can not use binary open mode with CSVExtract") <NEW_LINE> <DEDENT> f, _, close = o... | Extract data from a CSV | 625990677b180e01f3e49c27 |
class _FunctionLikeDelimitedShorthand(basic.DelimitedShorthand, metaclass=AutoEscapingCacher): <NEW_LINE> <INDENT> separator = '|' <NEW_LINE> assignment_operator = '=' <NEW_LINE> _python_identifier = r'[^\d\W]\w*' <NEW_LINE> @classmethod <NEW_LINE> def swallow(cls, function): <NEW_LINE> <INDENT> return cls(function) <N... | Base class for further conveniences. | 625990677b25080760ed88a5 |
class SerializedStore(Store): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def _get(self, key: bytes) -> Optional[bytes]: <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def _set(self, key: bytes, value: Optional[bytes]) -> None: <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @abc.abstract... | Base class for table storage drivers requiring serialization. | 625990674e4d562566373b8e |
class Constraint: <NEW_LINE> <INDENT> type_var = 0 <NEW_LINE> op = 0 <NEW_LINE> target = Undefined(Type) <NEW_LINE> def __repr__(self) -> str: <NEW_LINE> <INDENT> op_str = '<:' <NEW_LINE> if self.op == SUPERTYPE_OF: <NEW_LINE> <INDENT> op_str = ':>' <NEW_LINE> <DEDENT> return '{} {} {}'.format(self.type_var, op_str, se... | A representation of a type constraint.
It can be either T <: type or T :> type (T is a type variable). | 625990677cff6e4e811b71cf |
class CommentViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Comment.objects.all() <NEW_LINE> serializer_class = CommentSerializer <NEW_LINE> lookup_field = 'comment_id' <NEW_LINE> permission_classes = [permissions.IsAuthenticatedOrReadOnly, IsOwnerOrReadOnly] <NEW_LINE> def perform_create(self, serializ... | This viewset automatically provides `list`, `create`, `retrieve`,
`update` and `destroy` actions. | 62599067d486a94d0ba2d746 |
class VitaReader(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._streams = {} <NEW_LINE> <DEDENT> def fromstream(self, stream_file): <NEW_LINE> <INDENT> for stream_id, vita_packet_data in _packetize_vita_stream(stream_file): <NEW_LINE> <INDENT> if stream_id not in self._streams: <NEW_LINE> <I... | A utility class that reads from a file-like object into one
or more NumPy arrays containing samples. | 62599067f548e778e596cd12 |
class CgInstance: <NEW_LINE> <INDENT> def __init__(self, mod, iname, cname): <NEW_LINE> <INDENT> self.mod = mod <NEW_LINE> self.iname = iname <NEW_LINE> self.cname = cname <NEW_LINE> self.wireports = [] <NEW_LINE> self.genmap = dict() <NEW_LINE> <DEDENT> def add_port_to(self, pname, eqval): <NEW_LINE> <INDENT> at = Att... | Codegen: component instance | 625990673cc13d1c6d466ecc |
class NeedTransferRet: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I64, 'amt', None, None, ), (2, TType.I64, 'count', None, None, ), ) <NEW_LINE> def __init__(self, amt=None, count=None,): <NEW_LINE> <INDENT> self.amt = amt <NEW_LINE> self.count = count <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <IND... | Attributes:
- amt
- count | 62599067f7d966606f74947e |
class TxSegWit(namedtuple("Tx", "version marker flag inputs outputs " "witness locktime")): <NEW_LINE> <INDENT> pass | Class representing a SegWit transaction. | 625990674a966d76dd5f067c |
class ValidateHandler(BaseHandler): <NEW_LINE> <INDENT> name = "validator" <NEW_LINE> kwargs = { "GET": { "url": {"type": str, "location": "query", "required": True} }, "POST": { "url": {"type": str, "location": "form"} } } <NEW_LINE> async def get(self): <NEW_LINE> <INDENT> if self.request.body: <NEW_LINE> <INDENT> ra... | Validate a Swagger/OpenAPI document.
Support three types of requests.
GET /api/validate?url=<url>
POST /api/validate
url=<url>
POST /api/validate
{
"openapi": "3.0.0",
...
} | 62599067462c4b4f79dbd18e |
class Projectile(pg.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.vel = (5, 0) <NEW_LINE> self.rect = pg.Rect(x, y, 40, 10) <NEW_LINE> <DEDENT> def update(self, game): <NEW_LINE> <INDENT> self.rect.move_ip(self.vel[0], self.vel[1]) <NEW_LINE> if sel... | Models a flying projectile in the game | 62599067796e427e5384feff |
class ActorSystemMessage(object): <NEW_LINE> <INDENT> pass | Base class for all ActorSystem Messages for easier isinstance
identification. | 625990677c178a314d78e7b0 |
class ConnectionIntersection(Intersection): <NEW_LINE> <INDENT> HEARTBEAT_TIMEOUT = 30 <NEW_LINE> send_control_messages = False <NEW_LINE> def __init__(self, bind_address='tcp://0.0.0.0:7007', **kwargs): <NEW_LINE> <INDENT> super(ConnectionIntersection, self).__init__(**kwargs) <NEW_LINE> self.process_statistics = {} <... | Responsible to receiving and publishing information about the different message endpoints. Every ramp/intersection
will subscribe to this information and use it for routing the messages correctly.
While implemented with the intersection interface, it is currently only possibly to run this as a single instance
as it ha... | 62599067fff4ab517ebcefa4 |
class testReCaptcha(unittest.TestCase): <NEW_LINE> <INDENT> layer = INTEGRATION_RECAPTCHA_TESTING <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> setRoles(self.portal, TEST_USER_ID, ['Manager']) <NEW_LINE> self.portal.invokeFactory('Survey', 's1') <NEW_LINE> self.s1 = getat... | Ensure captcha works correctly | 625990678e71fb1e983bd24e |
class CmdBlindHelp(Command): <NEW_LINE> <INDENT> key = "help" <NEW_LINE> aliases = "h" <NEW_LINE> locks = "cmd:all()" <NEW_LINE> def func(self): <NEW_LINE> <INDENT> self.caller.msg("You are beyond help ... until you can see again.") | Help function while in the blinded state
Usage:
help | 62599067dd821e528d6da545 |
class TripsStatisticsView(APIView): <NEW_LINE> <INDENT> model = Trip <NEW_LINE> def get(self, request, **kwargs): <NEW_LINE> <INDENT> country_list = Country.objects.exclude(schema_name='public').all() <NEW_LINE> results = [] <NEW_LINE> for country in country_list: <NEW_LINE> <INDENT> connection.set_tenant(country) <NEW... | Get the list of all Trips in all countries | 62599067009cb60464d02cc2 |
class Body14(object): <NEW_LINE> <INDENT> swagger_types = { 'description': 'str', 'name': 'str' } <NEW_LINE> attribute_map = { 'description': 'description', 'name': 'name' } <NEW_LINE> def __init__(self, description=None, name=None): <NEW_LINE> <INDENT> self._description = None <NEW_LINE> self._name = None <NEW_LINE> s... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259906797e22403b383c696 |
class DistributedOperationStore(dict): <NEW_LINE> <INDENT> def __init__(self, manager): <NEW_LINE> <INDENT> self._manager = manager <NEW_LINE> <DEDENT> def store(self, *args, **kwargs): <NEW_LINE> <INDENT> operation_id = str(uuid.uuid4()) <NEW_LINE> self[operation_id] = kwargs <NEW_LINE> kwargs['submit_moment'] = time.... | Responsible for generating operation request ids and notify peers about
operation updates and keep requested operation state details. | 6259906701c39578d7f142f9 |
class LDAModel(LinearRegression): <NEW_LINE> <INDENT> def _pre_processing_x(self, X): <NEW_LINE> <INDENT> X = self.standardize(X) <NEW_LINE> return X <NEW_LINE> <DEDENT> def train(self): <NEW_LINE> <INDENT> X = self.train_x <NEW_LINE> y = self.train_y <NEW_LINE> K = self.n_class <NEW_LINE> p = self.p <NEW_LINE> self.Mu... | Linear Discriminant Analysis
from page 106 | 625990677047854f46340b3d |
class TestGitLoaderFromArchive(CommonGitLoaderTests): <NEW_LINE> <INDENT> @pytest.fixture(autouse=True) <NEW_LINE> def init(self, swh_storage, datadir, tmp_path): <NEW_LINE> <INDENT> archive_name = "testrepo" <NEW_LINE> archive_path = os.path.join(datadir, f"{archive_name}.tgz") <NEW_LINE> self.repo_url = archive_path ... | Tests for GitLoaderFromArchive. Only tests common scenario. | 625990673d592f4c4edbc667 |
class TestHashing(unittest.TestCase): <NEW_LINE> <INDENT> HASH_COUNT = 1000 <NEW_LINE> def test_hashes(self): <NEW_LINE> <INDENT> for i in xrange(self.HASH_COUNT): <NEW_LINE> <INDENT> start = ''.join([ random.choice(string.lowercase) for _ in xrange( random.randint(10, 20) ) ]) <NEW_LINE> h = routing.Hash(value=start) ... | Tests that packing and unpacking hashes works.
| 625990675fdd1c0f98e5f70e |
class RequestedVisibility(bb.Union): <NEW_LINE> <INDENT> _catch_all = None <NEW_LINE> public = None <NEW_LINE> team_only = None <NEW_LINE> password = None <NEW_LINE> def is_public(self): <NEW_LINE> <INDENT> return self._tag == 'public' <NEW_LINE> <DEDENT> def is_team_only(self): <NEW_LINE> <INDENT> return self._tag == ... | The access permission that can be requested by the caller for the shared
link. Note that the final resolved visibility of the shared link takes into
account other aspects, such as team and shared folder settings. Check the
:class:`ResolvedVisibility` for more info on the possible resolved
visibility values of shared li... | 62599067435de62698e9d593 |
class DynamicFieldsSerializer(DynamicFieldsSerializerMixin, serializers.Serializer): <NEW_LINE> <INDENT> pass | A Serializer that takes an additional 'fields' and 'exclude' arguments that
controls which fields should be displayed. | 625990673317a56b869bf107 |
class Chain: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> if(os.path.exists(os.path.join(os.getcwd(),'storage', 'q.bc'))): <NEW_LINE> <INDENT> self.qbc = Chain.__read_chain_from_disc() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.qbc = [Chain.__bang()] <NEW_LINE> self.save() <NEW_LINE> <DEDENT> sel... | QBC structure implementation | 6259906766673b3332c31b86 |
class ChangeUsernameView(LoginRequiredMixin, View): <NEW_LINE> <INDENT> form = ChangeUsernameForm <NEW_LINE> template_name = 'registration/username_change_form.html' <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> form = self.form() <NEW_LINE> return render(request, template_name=self.template_n... | Change username view | 625990677d847024c075db62 |
class TThreadedServer(TServer): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> TServer.__init__(self, *args) <NEW_LINE> self.daemon = kwargs.get("daemon", False) <NEW_LINE> <DEDENT> def serve(self): <NEW_LINE> <INDENT> self.serverTransport.listen() <NEW_LINE> while True: <NEW_LINE> <INDENT... | Threaded server that spawns a new thread per each connection. | 625990677cff6e4e811b71d1 |
class Solution: <NEW_LINE> <INDENT> def productExcludeItself(self, A): <NEW_LINE> <INDENT> length = len(A) <NEW_LINE> if not A: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> l = [1] * length <NEW_LINE> r = [1] * length <NEW_LINE> for i in range(1, len(A)): <NEW_LINE> <INDENT> l[i] = l[i-1] * A[i-1] <NEW_LINE> <DEDE... | @param A: Given an integers array A
@return: An integer array B and B[i]= A[0] * ... * A[i-1] * A[i+1] * ... * A[n-1] | 625990672ae34c7f260ac871 |
class MediaSnapshotByTimeOffsetItem(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Definition = None <NEW_LINE> self.PicInfoSet = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Definition = params.get("Definition") <NEW_LINE> if params.get("PicInfoSet... | Information of time point screenshot in VOD file
| 6259906716aa5153ce401c63 |
class Join_PDF(object): <NEW_LINE> <INDENT> def __init__(self, list_number: int, location='C:/Users/manue/OneDrive - VANRENTA, S.A. DE C.V/FINANZAS/BURZATILIZACION/VRTCB20/ENDOSO PAGARES/DOCUMENTO ESCANEADO/separados/', destination='C:/Users/manue/OneDrive - VANRENTA, S.A. DE C.V/FINANZAS/BURZATILIZACION/VRTCB20/ENDOSO... | class to join pdf files into a single one | 62599067f7d966606f74947f |
class DatastoreIndexesXmlToYaml(base.Command): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> parser.add_argument( 'xml_file', help='Path to the datastore-indexes.xml file.') <NEW_LINE> parser.add_argument( '--generated-indexes-file', help=('If specified, include the auto-generated x... | Convert a datastore-indexes.xml file to index.yaml. | 62599067aad79263cf42ff42 |
class AggregatedBaseline(Baseline): <NEW_LINE> <INDENT> def __init__(self, baselines, scope='aggregated-baseline', summary_labels=()): <NEW_LINE> <INDENT> self.baselines = dict() <NEW_LINE> for name in sorted(baselines): <NEW_LINE> <INDENT> self.baselines[name] = Baseline.from_spec( spec=baselines[name], kwargs=dict(su... | Baseline which aggregates per-state baselines. | 62599067460517430c432c1a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.