code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TenantMiddleware(object): <NEW_LINE> <INDENT> def hostname_from_request(self, request): <NEW_LINE> <INDENT> return remove_www(request.get_host().split(':')[0]) <NEW_LINE> <DEDENT> def process_request(self, request): <NEW_LINE> <INDENT> connection.set_schema_to_public() <NEW_LINE> hostname = self.hostname_from_req...
This middleware should be placed at the very top of the middleware stack. Selects the proper database schema using the request host. Can fail in various ways which is better than corrupting or revealing data...
62598f7073bcbd0ca4bc9a73
class Attractions(ViewSet): <NEW_LINE> <INDENT> def create(self, request): <NEW_LINE> <INDENT> new_attraction = Attraction() <NEW_LINE> new_attraction.name = request.data["name"] <NEW_LINE> area = ParkArea.objects.get(pk=request.data["area_id"]) <NEW_LINE> new_attraction.area = area <NEW_LINE> new_attraction.save() <NE...
Park Areas for Kennywood Amusement Park
62598f7050485f2cf55da796
class SourceItem(Source): <NEW_LINE> <INDENT> def __init__(self, source, id): <NEW_LINE> <INDENT> super(SourceItem, self).__init__(source.name, source.module) <NEW_LINE> self.id = id <NEW_LINE> self.sid = '%s:%s' % (self.name, self.id) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> s = super(SourceItem, se...
Xapers class representing an item from an online source.
62598f706e29344779affe85
class Meta: <NEW_LINE> <INDENT> model = Carrier <NEW_LINE> fields = ('id', 'carrier_name', 'code', 'date_created', 'date_modified') <NEW_LINE> read_only_fields = ('date_created', 'date_modified')
Map this serializer to a model and their fields.
62598f7030dc7b766599f085
class TestGenericCsvParserBot(test.BotTestCase, unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def set_bot(cls): <NEW_LINE> <INDENT> cls.bot_reference = GenericCsvParserBot <NEW_LINE> cls.default_input_message = EXAMPLE_REPORT <NEW_LINE> cls.sysconfig = {"columns": [ "__IGNORE__", "__IGNORE__", "__IGNO...
A TestCase for a GenericCsvParserBot with extra, column_regex_search and windows_nt time format.
62598f706fece00bbaccb1b1
class CollectionTrainingStatus(): <NEW_LINE> <INDENT> def __init__(self, objects: 'ObjectTrainingStatus') -> None: <NEW_LINE> <INDENT> self.objects = objects <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_dict(cls, _dict: Dict) -> 'CollectionTrainingStatus': <NEW_LINE> <INDENT> args = {} <NEW_LINE> if 'objects' i...
Training status information for the collection. :attr ObjectTrainingStatus objects: Training status for the objects in the collection.
62598f7007d97122c42164c8
@dataclasses.dataclass <NEW_LINE> class WarmupConfig(oneof.OneOfConfig): <NEW_LINE> <INDENT> type: Optional[str] = None <NEW_LINE> linear: lr_cfg.LinearWarmupConfig = lr_cfg.LinearWarmupConfig() <NEW_LINE> polynomial: lr_cfg.PolynomialWarmupConfig = lr_cfg.PolynomialWarmupConfig()
Configuration for lr schedule. Attributes: type: 'str', type of warmup schedule to be used, on the of fields below. linear: linear warmup config. polynomial: polynomial warmup config.
62598f701d351010ab8f3367
class WordCounter(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._all_words = [] <NEW_LINE> self._unique_words = [] <NEW_LINE> self._word_counts = {} <NEW_LINE> <DEDENT> def read_text_string(self, text_string): <NEW_LINE> <INDENT> read_words_list = self.get_word_list(text_string) <NEW_LINE> s...
WordCounter examines some input text and allows you to query various information about the words that exist in that text.
62598f7076d4e153a661c439
class DbRelicListing(DbEntryListing): <NEW_LINE> <INDENT> def __init__(self, relic, **kwargs): <NEW_LINE> <INDENT> super().__init__(entry=relic, type_filter=db.Relic, **kwargs)
Entry listing for Relic records/
62598f70a8ecb03325870a2e
class LayerSnappingUnitAction(SnappingUnitAction): <NEW_LINE> <INDENT> snappingUnitChanged = pyqtSignal(str, int) <NEW_LINE> _layerId = '' <NEW_LINE> _iface = None <NEW_LINE> def __init__(self, snapLayer, snapUnit, parent=None): <NEW_LINE> <INDENT> super(LayerSnappingUnitAction, self).__init__(snapUnit, parent) <NEW_LI...
QAction to change Layer Snapping Unit
62598f70d99f1b3c44d04edd
class MultipleInheritancePathsError(Exception): <NEW_LINE> <INDENT> pass
Thrown when a contract-related method is inherited through different base classes.
62598f704d74a7450cd58aed
class Lightness (threading.Thread): <NEW_LINE> <INDENT> def __init__ (self, qv=None): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.__lock = threading.Lock() <NEW_LINE> self.__tsl2561 = TSL2561(qvalue=qv) <NEW_LINE> self.__value = 0 <NEW_LINE> self.__running = True <NEW_LINE> <DEDENT> @proper...
read lightness value from sensor
62598f70fb3f5b602db47dc4
class ViewBuilder(os_flavors.ViewBuilderV11): <NEW_LINE> <INDENT> def _build_detail(self, flavor_obj): <NEW_LINE> <INDENT> LOG.debug("_build_detail of a flavor") <NEW_LINE> flavor = self._build_simple(flavor_obj) <NEW_LINE> flavor['ram'] = flavor_obj['memory_mb'] <NEW_LINE> flavor['vcpus'] = flavor_obj['vcpus'] <NEW_LI...
Simpler view of flavors which removes local_gb.
62598f708a349b6b43685a69
class Environment(object): <NEW_LINE> <INDENT> is_windows = is_windows <NEW_LINE> config_dir = DEFAULT_CONFIG_DIR <NEW_LINE> stdin = sys.stdin <NEW_LINE> stdin_isatty = stdin.isatty() <NEW_LINE> stdin_encoding = None <NEW_LINE> stdout = sys.stdout <NEW_LINE> stdout_isatty = stdout.isatty() <NEW_LINE> stdout_encoding = ...
Information about the execution context (standard streams, config directory, etc). By default, it represents the actual environment. All of the attributes can be overwritten though, which is used by the test suite to simulate various scenarios.
62598f700383005118f6cf2a
class Solution4: <NEW_LINE> <INDENT> def manacher(self, s): <NEW_LINE> <INDENT> s = '#' + '#'.join(s) + '#' <NEW_LINE> RL = [0]*len(s) <NEW_LINE> MaxRight = 0 <NEW_LINE> pos = 0 <NEW_LINE> MaxLen = 0 <NEW_LINE> for i in range(len(s)): <NEW_LINE> <INDENT> if i < MaxRight: <NEW_LINE> <INDENT> RL[i] = min(RL[2*pos-i], Max...
Manacher算法——马拉车算法(解决回文子串长度奇偶性不确定造成的不同性质的对称轴位置)
62598f70d6c5a102081e196c
class NullFormatter(Formatter): <NEW_LINE> <INDENT> def format_token(self, text, token, replace=False): <NEW_LINE> <INDENT> return get_text(text, token, replace)
Formatter that does not modify the string.
62598f7056b00c62f0fb20df
class ToGrayScale(A.ImageOnlyTransform): <NEW_LINE> <INDENT> def apply(self, img, **params): <NEW_LINE> <INDENT> assert len(img.shape) == 3 <NEW_LINE> start_shape = img.shape <NEW_LINE> img = tk.ndimage.to_grayscale(img) <NEW_LINE> img = np.tile(np.expand_dims(img, axis=-1), (1, 1, start_shape[-1])) <NEW_LINE> assert i...
グレースケール化。チャンネル数はとりあえず維持。
62598f7015fb5d323ce7e54f
class SlackBot(object): <NEW_LINE> <INDENT> def __init__(self, access_token): <NEW_LINE> <INDENT> self.sc = SlackClient(access_token) <NEW_LINE> <DEDENT> def rtm_socket_connected(self): <NEW_LINE> <INDENT> return self.sc.rtm_connect() <NEW_LINE> <DEDENT> def send_message(self, message, channel): <NEW_LINE> <INDENT> res...
This is a wrapper for the slackclient library that you can use if you find helpful. Add methods as you see fit. Only a bot access token that starts with xoxb needs to be provided as an input argument.
62598f700383005118f6cf2b
class User(Base): <NEW_LINE> <INDENT> __tablename__ = "job_user" <NEW_LINE> id = Column(Integer, primary_key=True, autoincrement=True, index=True) <NEW_LINE> username = Column(String(80), doc=u"用户名") <NEW_LINE> password = Column(String(80), doc=u"密码") <NEW_LINE> email = Column(String(80), unique=True, doc=u"邮箱") <NEW_L...
用户信息表
62598f7076d4e153a661c43a
class StringParameter(ScalarParameter): <NEW_LINE> <INDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._name <NEW_LINE> <DEDENT> @property <NEW_LINE> def tag(self): <NEW_LINE> <INDENT> return self._tag <NEW_LINE> <DEDENT> @property <NEW_LINE> def param_type(self): <NEW_LINE> <INDENT> return st...
Parameter that defines a string
62598f7007d97122c42164c9
class BaseSprite(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> super(BaseSprite, self).__init__() <NEW_LINE> self.x = x <NEW_LINE> self.y = y <NEW_LINE> self.is_draggable = False <NEW_LINE> self.init_image() <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.rect.x =...
The base sprite class contains useful common functionality.
62598f7007d97122c42164ca
class Group(Document): <NEW_LINE> <INDENT> name = StringField(max_length=80, unique=True, verbose_name=_('name')) <NEW_LINE> permissions = ListField( ReferenceField(Permission, verbose_name=_('permissions'), required=False)) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name = _('group') <NEW_LINE> verbose_name_pl...
Groups are a generic way of categorizing users to apply permissions, or some other label, to those users. A user can belong to any number of groups. A user in a group automatically has all the permissions granted to that group. For example, if the group Site editors has the permission can_edit_home_page, any user in t...
62598f701d351010ab8f3369
class Transaction(Printable): <NEW_LINE> <INDENT> def __init__(self, sender, recipient, signature, amount): <NEW_LINE> <INDENT> self.sender = sender <NEW_LINE> self.recipient = recipient <NEW_LINE> self.amount = amount <NEW_LINE> self.signature = signature <NEW_LINE> <DEDENT> def to_ordered_dict(self): <NEW_LINE> <INDE...
A transaction that can be added to a block. Attributes: :sender: The sender of the coins. :recipient: The recipient of the coins. :signature: The signature of the transaction. :amount: The coin amount.
62598f708c3a8732951f5d79
class SSHTunnel(object): <NEW_LINE> <INDENT> def __init__(self, host, remote_host, local_port="2222", remote_port="22", local_host="localhost", port="22"): <NEW_LINE> <INDENT> self.remote_host = remote_host <NEW_LINE> self.remote_port = remote_port <NEW_LINE> self.local_host = local_host <NEW_LINE> self.local_port = lo...
Context manager for creating an ssh tunnel. Posible parameters: * «host» is a internal remote host * «port» is a internal remote port (default: 22) * «remote_host» is a first level remote host (first destination) * «remote_port» is a first level remote port (first destination, default: 22) * «local_host» is a loc...
62598f70d10714528d69d6f8
class Gumbel_pdf(PDF) : <NEW_LINE> <INDENT> def __init__ ( self , name , xvar , mu = 0 , beta = 1 ) : <NEW_LINE> <INDENT> PDF.__init__ ( self , name , xvar ) <NEW_LINE> self.__mu = self.make_var ( mu , 'mu_%s' % name , 'mu_{Gumbel}(%s)' % name , mu ) <NEW_LINE> self....
Gumbel distribution - see https://en.wikipedia.org/wiki/Gumbel_distribution \f$ f(x,\mu,\beta) = \frac{1}{\left|\beta\right|} e^{-e^{-z}} \f$, where \f$ z = \frac{x-\mu}{\beta}\f$ - Very useful and important case: if \f$ g(x) \propto exp(-\tau x ) \f$ and \f$ z = \log(x) \f$, than \f$ F(z) = g(x) = f(z; -log(\tau) , ...
62598f70ac7a0e7691f71d40
class CommonBase(composition.PandasSuperMeta): <NEW_LINE> <INDENT> _bob = object() <NEW_LINE> @property <NEW_LINE> def bob(self): <NEW_LINE> <INDENT> return self._bob
Test common base
62598f706fece00bbaccb1b4
class ColumnPortletManagerRenderer(PortletManagerRenderer): <NEW_LINE> <INDENT> adapts(Interface, IDefaultBrowserLayer, IBrowserView, IColumn) <NEW_LINE> template = ViewPageTemplateFile('browser/templates/column.pt') <NEW_LINE> error_message = ViewPageTemplateFile('browser/templates/error_message.pt') <NEW_LINE> def _c...
A renderer for the column portlets
62598f7030c21e258be9802d
class ContactUsForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = ContactUs <NEW_LINE> exclude = ('client_ip',) <NEW_LINE> <DEDENT> name = forms.CharField(label=_("Your Name"), max_length=250, required=True, widget=forms.TextInput()) <NEW_LINE> email = forms.EmailField(label=_("Your Emai...
simple form to perform ContactUs.
62598f70ec188e330fdf80cc
class OutputWizardProcessPlaybookResult(unittest.TestCase): <NEW_LINE> <INDENT> INVENTORY_EVENTS = {1:"first event", 2:"second event"} <NEW_LINE> EVENT_INFORMATION = "event information\n" <NEW_LINE> mocked_response = mock.Mock() <NEW_LINE> mocked_response.text = EVENT_INFORMATION <NEW_LINE> ar_client = mock.Mock() <NEW...
Test ProcessPlaybookResult Output Wizard
62598f70a4f1c619b294de15
class InvokerFunction(Invoker): <NEW_LINE> <INDENT> def __init__(self, method, function, output, inputs, hints, name=None, infoIMPL=None): <NEW_LINE> <INDENT> assert callable(function), 'Invalid input callable provided %s' % function <NEW_LINE> name = name or function.__name__ <NEW_LINE> if infoIMPL is None: <NEW_LINE>...
Provides invoking for API calls.
62598f7038b623060ffa88c6
class APIUnavailableException(Exception): <NEW_LINE> <INDENT> def __init__(self, response, error_message): <NEW_LINE> <INDENT> self.response = response <NEW_LINE> self.error_message = error_message
This error is raised whenever the EXPA API is not working as expected.
62598f7007d97122c42164cb
class X509(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.bytes = createByteArraySequence([]) <NEW_LINE> self.publicKey = None <NEW_LINE> <DEDENT> def parse(self, s): <NEW_LINE> <INDENT> start = s.find("-----BEGIN CERTIFICATE-----") <NEW_LINE> end = s.find("-----END CERTIFICATE-----") <NEW_LI...
This class represents an X.509 certificate. @type bytes: L{array.array} of unsigned bytes @ivar bytes: The DER-encoded ASN.1 certificate @type publicKey: L{tlslite.utils.RSAKey.RSAKey} @ivar publicKey: The subject public key from the certificate.
62598f708c3a8732951f5d7a
class ClaimItemDetailSubDetail(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "ClaimItemDetailSubDetail" <NEW_LINE> def __init__(self, jsondict=None, strict=True): <NEW_LINE> <INDENT> self.category = None <NEW_LINE> self.factor = None <NEW_LINE> self.modifier = None <NEW_LINE> self.net = None <NE...
Additional items. Third tier of goods and services.
62598f70711fe17d825dff10
class SeedReplantError(Exception): <NEW_LINE> <INDENT> pass
The SeedReplantError is raised whenever a replant of a seed is being tried but no seed has ever been planted before.
62598f7050485f2cf55da79a
class ValidationField(Validation): <NEW_LINE> <INDENT> def __init__(self, user: User) -> None: <NEW_LINE> <INDENT> self._query: Query = UserQuery(user) <NEW_LINE> <DEDENT> def validate_username(self, username: User) -> None: <NEW_LINE> <INDENT> self._query.first(username=username.data) <NEW_LINE> <DEDENT> def validate_...
Represent validation form object.
62598f70167d2b6e312b67a8
class rest_obj_type(): <NEW_LINE> <INDENT> unknown = 0 <NEW_LINE> reservedcount = 1 <NEW_LINE> extension_start = 10 <NEW_LINE> ipif = 11 <NEW_LINE> iproute = 12 <NEW_LINE> tunnel = 13 <NEW_LINE> tunnel_stats = 14 <NEW_LINE> circuit = 15 <NEW_LINE> circuit_stats = 16 <N...
This class identifies the different rest objects supported by FOS All derived class from rest_object should define their enum here accordingly
62598f7076d4e153a661c43d
class Engine(multiprocessing.Process): <NEW_LINE> <INDENT> def __init__(self, request_queue, response_queue, meta_request_queue, meta_response_queue, initial_users, vis=False): <NEW_LINE> <INDENT> multiprocessing.Process.__init__(self) <NEW_LINE> self.request_queue = request_queue <NEW_LINE> self.response_queue = respo...
Runs as a separate process to execute the game logic based on inputs (commands) of clients. Once launched it remains running.
62598f704d74a7450cd58aef
class StrProperty(Property): <NEW_LINE> <INDENT> typename = 'StrProperty' <NEW_LINE> expected_type = str <NEW_LINE> @classmethod <NEW_LINE> def unpack(cls, data): <NEW_LINE> <INDENT> size = IntProperty.unpack(data[:4]) <NEW_LINE> if len(data[4:]) != size: <NEW_LINE> <INDENT> raise PropertyError("Incorrect String Size i...
String Property - repersented by a little endian DWORD containing the string length followed by a null terminated string - assuming latin-1 encoding
62598f7023e79379d538bd27
class DseSetupPerspective(Perspective): <NEW_LINE> <INDENT> def __init__(self, perspective_name, context): <NEW_LINE> <INDENT> Perspective.__init__(self, perspective_name, context) <NEW_LINE> self.item_manager_model = None <NEW_LINE> self.item_manager_view = None <NEW_LINE> self.clipboard_service = None <NEW_LINE> self...
Represents the view perspective for browsing and working with content between the LWS and CPD systems.
62598f708c3a8732951f5d7b
class SSLCertificateDays(CertExpiryEntity): <NEW_LINE> <INDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return f"Cert Expiry ({self.coordinator.name})" <NEW_LINE> <DEDENT> @property <NEW_LINE> def state(self): <NEW_LINE> <INDENT> if not self.coordinator.is_cert_valid: <NEW_LINE> <INDENT> return 0 <NEW_...
Implementation of the Cert Expiry days sensor.
62598f70d18da76e235b6d4c
class WriteOnlyAPIView(mixins.CreateModelMixin, mixins.UpdateModelMixin, GenericAPIView): <NEW_LINE> <INDENT> pass
A API view that provides `create` action. To use it set the `.serializer_class` attribute.
62598f703eb6a72ae0389e6d
class DLList(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.head = None <NEW_LINE> self.tail = None <NEW_LINE> <DEDENT> def pop(self): <NEW_LINE> <INDENT> self.tail = self.tail.previous <NEW_LINE> self.tail.next = None <NEW_LINE> <DEDENT> def add(self, node): <NEW_LINE> <INDENT> if self.head == Non...
Doubly linked list class Attributes: head (:obj:DLList_Node): link to the head node in the DLList tail (:obj:DLList_Node): link to the tail node in the DLList
62598f70d164cc61758207a1
class ProfilePage(base.BaseHandler): <NEW_LINE> <INDENT> PAGE_NAME_FOR_CSRF = 'profile' <NEW_LINE> @base.require_user <NEW_LINE> def get(self): <NEW_LINE> <INDENT> self.values.update({ 'nav_mode': feconf.NAV_MODE_PROFILE, }) <NEW_LINE> self.render_template('profile/profile.html')
The profile page.
62598f701f037a2d8b9e391a
class APIBreakpointsRequest(APIRequest): <NEW_LINE> <INDENT> @server_side <NEW_LINE> def dispatch(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> bps = voltron.debugger.breakpoints() <NEW_LINE> res = APIBreakpointsResponse(breakpoints=bps) <NEW_LINE> <DEDENT> except NoSuchTargetException: <NEW_LINE> <INDENT> res = ...
API breakpoints request. { "type": "request", "request": "breakpoints" }
62598f70d10714528d69d6fa
class ImporterConfigHandler(auth.ApiHandler): <NEW_LINE> <INDENT> @auth.require(auth.is_admin) <NEW_LINE> def get(self): <NEW_LINE> <INDENT> self.send_response({'config': importer.read_config()}) <NEW_LINE> <DEDENT> @auth.require(auth.is_admin) <NEW_LINE> def post(self): <NEW_LINE> <INDENT> config = self.parse_body().g...
Reads and sets configuration of the group importer.
62598f7030c21e258be9802f
class Spec(object): <NEW_LINE> <INDENT> def __init__(self, spec_dict, origin_url=None, http_client=None, config=None): <NEW_LINE> <INDENT> self.spec_dict = spec_dict <NEW_LINE> self.origin_url = origin_url <NEW_LINE> self.http_client = http_client <NEW_LINE> self.api_url = None <NEW_LINE> self.config = dict(CONFIG_DEFA...
Represents a Swagger Specification for a service.
62598f707c178a314d78ccd1
class Label: <NEW_LINE> <INDENT> def __init__(self, gmail_client: "gmail.GmailClient", label_data: dict): <NEW_LINE> <INDENT> self.gmail_client = gmail_client <NEW_LINE> self.raw_label = label_data <NEW_LINE> self.id = label_data.get("id") <NEW_LINE> self.name = label_data.get("name") <NEW_LINE> self.message_list_visib...
A gmail label. Parameters: gmail_client (:obj:`~google_workspace.gmail.GmailClient`): The gmail_client. thread_data (``dict``): The raw label data.
62598f70ec188e330fdf80ce
class CsvIo: <NEW_LINE> <INDENT> def __init__(self, filename, from_default=True): <NEW_LINE> <INDENT> if from_default: <NEW_LINE> <INDENT> self.filepath = os.path.join(os.path.realpath( os.path.dirname(__file__)), 'data/', filename ) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.filepath = os.path.join(os.path.rea...
Class to handle the all input/output of data from the csv files.
62598f7091af0d3eaad39637
class PathHookTest: <NEW_LINE> <INDENT> def path_hook(self): <NEW_LINE> <INDENT> return self.machinery.FileFinder.path_hook((self.machinery.SourceFileLoader, self.machinery.SOURCE_SUFFIXES)) <NEW_LINE> <DEDENT> def test_success(self): <NEW_LINE> <INDENT> with source_util.create_modules('dummy') as mapping: <NEW_LINE> <...
Test the path hook for source.
62598f701f5feb6acb162465
class User(db.Model): <NEW_LINE> <INDENT> __tablename__ = "users" <NEW_LINE> id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> username = db.Column(db.String(80), unique=True, nullable=False) <NEW_LINE> email = db.Column(db.String(120), unique=True, nullable=False) <NEW_LINE> password = db.Col...
USER User database code
62598f70287bf620b62713e3
class Config(object): <NEW_LINE> <INDENT> ENVIRONMENT = 'live' <NEW_LINE> BASIC_LOG_LEVEL = logging.WARNING <NEW_LINE> LOGGING_LEVEL = logging.WARNING <NEW_LINE> EMAIL_LOGGING = False <NEW_LINE> DEBUG = False <NEW_LINE> DEBUG_TB_ENABLED = False <NEW_LINE> DEBUG_TB_INTERCEPT_REDIRECTS = False <NEW_LINE> SECRET_KEY = '63...
Base config to work from
62598f7007d97122c42164cd
class Translation(HumanNaturalLanguageExpression, Output): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self._namespace = ONTOLOGY_NS <NEW_LINE> self._project_id = PROJECT_ID <NEW_LINE> self._name = "Translation"
Human natural language expression transferred in another natural language. Labels: Übersetzung (de) / translation (en)
62598f7021bff66bcd72248d
class DashMatchToken(CSSToken): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(DashMatchToken, self).__init__('')
Indicates a dash match. I don't actually know what this is yet...
62598f708c3a8732951f5d7c
class Encoding(object): <NEW_LINE> <INDENT> def __init__(self, encoder, bitrate, videofile): <NEW_LINE> <INDENT> self.encoder = encoder <NEW_LINE> self.context = encoder.context <NEW_LINE> assert type(bitrate) == type(0) <NEW_LINE> self.bitrate = bitrate <NEW_LINE> self.videofile = videofile <NEW_LINE> self.result = No...
The encoding represents the result of applying a specific encoder to a specific videofile with a specific target bitrate.
62598f7030dc7b766599f08b
class MemberToInheritanceRule(LinkToLinkRule): <NEW_LINE> <INDENT> def __init__(self, chainer): <NEW_LINE> <INDENT> LinkToLinkRule.__init__(self, chainer, from_type=types.MemberLink, to_type=types.InheritanceLink, formula=formulas.mem2InhFormula) <NEW_LINE> self.chainer = chainer <NEW_LINE> self.probabilistic_inputs = ...
MemberLink(Jade robot) => InheritanceLink(Jade robot).
62598f70167d2b6e312b67aa
class ConfigSection(object): <NEW_LINE> <INDENT> def __init__(self, defaults, section): <NEW_LINE> <INDENT> self._section = section <NEW_LINE> self._scp = SafeConfigParser(defaults) <NEW_LINE> self._scp.add_section(self._section) <NEW_LINE> <DEDENT> def defaults(self): <NEW_LINE> <INDENT> return self._scp.defaults() <N...
Wraps SafeConfigParser with static section handling :param defaults: dict-like containing default keys/values :param section: name of section to initially bind to :note: Not an exact interface reproduction, some functionality left out!
62598f7066656f66f7d59c1e
class TestExternalShipment(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 testExternalShipment(self): <NEW_LINE> <INDENT> pass
ExternalShipment unit test stubs
62598f70a8ecb03325870a34
class DispatcherBase(object): <NEW_LINE> <INDENT> def __init__(self, endpoint_cls, resource_cls, parameters_cls, allowed_methods): <NEW_LINE> <INDENT> self.Endpoint = endpoint_cls <NEW_LINE> self.Resource = resource_cls <NEW_LINE> self.Parameters = parameters_cls <NEW_LINE> self.allowed_methods = {method.upper() for me...
The Dispatcher holds a :class:`.ResourceInterface` and :class:`.Endpoint` pairing and is associated with a :class:`.Route`. It's responsible for handing a request off to the correct components. :param resource_cls: A :class:`.Resource` class definition :param engine: A :class:`.Endpoint` object to implement the :c...
62598f7023e79379d538bd28
class SkippedCallError(ThreadError): <NEW_LINE> <INDENT> def __init__(self, msg=None): <NEW_LINE> <INDENT> msg=msg or "call has been skipped" <NEW_LINE> super().__init__(msg)
Thread error for a case of external call getting skipped (unscheduled)
62598f705166f23b2e242c09
class ShowUsers(ShowUsersSchema): <NEW_LINE> <INDENT> cli_command = 'show users' <NEW_LINE> def cli(self, output=None): <NEW_LINE> <INDENT> if output is None: <NEW_LINE> <INDENT> out = self.device.execute(self.cli_command) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> out = output <NEW_LINE> <DEDENT> ret_dict = {} <NEW...
Parser for show users on iosxr
62598f70d6c5a102081e1972
class TransportMessage: <NEW_LINE> <INDENT> body_separator = b"\r\n\r\n" <NEW_LINE> encoding = "utf8" <NEW_LINE> def __init__(self, content: Text, headers: Headers = None): <NEW_LINE> <INDENT> self.content = content <NEW_LINE> self.headers = headers or Headers({"Encoding": self.encoding}) <NEW_LINE> <DEDENT> def to_byt...
Transaction message
62598f706fece00bbaccb1b8
class Tourist(BaseUser): <NEW_LINE> <INDENT> def _register(self, qq, name, sex, role_id, password=None, register_date=datetime.datetime.now(), update_user=1): <NEW_LINE> <INDENT> if password is None: <NEW_LINE> <INDENT> password = self._str2md5("123456") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> password = self._st...
游客类. 使用此系统未登录前所有人都是游客。
62598f7063f4b57ef0085986
class CountryDialcodeModel(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.country = Country( countrycode="ESP", iso2='ES', countryprefix='34', countryname='Spain', ) <NEW_LINE> self.country.save() <NEW_LINE> self.assertEqual(self.country.__unicode__(), u'ESP') <NEW_LINE> self.prefix = Prefix( ...
Test Country, Prefix models
62598f7015fb5d323ce7e555
class ExactInference(InferenceModule): <NEW_LINE> <INDENT> def initializeUniformly(self, gameState): <NEW_LINE> <INDENT> self.beliefs = util.Counter() <NEW_LINE> for p in self.legalPositions: self.beliefs[p] = 1.0 <NEW_LINE> self.beliefs.normalize() <NEW_LINE> <DEDENT> def observe(self, observation, gameState): <NEW_LI...
The exact dynamic inference module should use forward-algorithm updates to compute the exact belief function at each time step.
62598f701d351010ab8f336e
class SchrootAction(Action): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(SchrootAction, self).__init__() <NEW_LINE> self.name = "schroot-login" <NEW_LINE> self.summary = "enter specified schroot" <NEW_LINE> self.description = "enter schroot using existing connection" <NEW_LINE> self.section = 'boo...
Extends the login to enter an existing schroot as a new schroot session using the current connection. Does not rely on ssh
62598f70287bf620b62713e5
class QuotaRequestDetailsList(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[QuotaRequestDetails]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(QuotaRequestDetailsList, self).__init__(**...
Quota request details. :param value: The quota requests. :type value: list[~azure.mgmt.reservations.models.QuotaRequestDetails] :param next_link: The URI to fetch the next page of quota limits. When there are no more pages, this is null. :type next_link: str
62598f708c3a8732951f5d7e
class Random_Tests(unittest.TestCase): <NEW_LINE> <INDENT> def test_randbits(self): <NEW_LINE> <INDENT> errmsg = "randbits(%d) returned %d" <NEW_LINE> for numbits in (3, 12, 30): <NEW_LINE> <INDENT> for i in range(6): <NEW_LINE> <INDENT> n = secrets.randbits(numbits) <NEW_LINE> self.assertTrue(0 <= n < 2**numbits, errm...
Test wrappers around SystemRandom methods.
62598f7050485f2cf55da79f
class Error(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'details': {'key': 'details', 'type': '[ErrorDetails]'}, 'inner_error': {'key': 'innerError', 'type': 'str'}, ...
Common error representation. :param code: Error code. :type code: str :param message: Error message. :type message: str :param target: Error target. :type target: str :param details: Error details. :type details: list[~azure.mgmt.network.v2020_11_01.models.ErrorDetails] :param inner_error: Inner error message. :type i...
62598f708e05c05ec3f6ea5d
class changeRadii(Action): <NEW_LINE> <INDENT> usage = '<radii_set>' <NEW_LINE> not_supported = (AmoebaParm,) <NEW_LINE> def init(self, arg_list): <NEW_LINE> <INDENT> self.radii = arg_list.get_next_string() <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return 'Changing PB/GB radii to %s' % self.radii <NEW_...
Changes intrinsic GB radii to the specified set: Allowed values are amber6, bondi, mbondi, mbondi2, mbondi3
62598f701f037a2d8b9e391e
class DirectoryMetadata(object): <NEW_LINE> <INDENT> def __init__(self, store=None, date=datetime.today()): <NEW_LINE> <INDENT> self.date = date <NEW_LINE> if store is None: <NEW_LINE> <INDENT> metadata = {} <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> with LogTime(log.info, "Collected %s metadata" % store.__class__._...
An object representing the metadata for a collection of files. Implements a few comparison functions.
62598f70b57a9660fecd12bd
@dataclass <NEW_LINE> class PublicUser: <NEW_LINE> <INDENT> id: int <NEW_LINE> username: str <NEW_LINE> avatar_filename: str <NEW_LINE> online: bool = False <NEW_LINE> @classmethod <NEW_LINE> def from_db(cls, db_user): <NEW_LINE> <INDENT> return cls( id=db_user.id, username=db_user.username, avatar_filename=db_user.ava...
front facing user class which doesn't expose private info
62598f70167d2b6e312b67ac
class DownloadsPage(QWidget): <NEW_LINE> <INDENT> def initialize_downloads_page(self): <NEW_LINE> <INDENT> self.downloads_tab = self.findChild(QWidget, "downloads_tab") <NEW_LINE> self.downloads_tab.initialize() <NEW_LINE> self.downloads_tab.clicked_tab_button.connect(self.on_downloads_tab_button_clicked) <NEW_LINE> se...
This class is responsible for managing all items on the downloads page. The downloads page shows all downloads and specific details about a download.
62598f709b70327d1c57e5dd
class IStandardDeviceType(IBasicDeviceType): <NEW_LINE> <INDENT> pass
device with decent html/css browser
62598f706aa9bd52df0d4705
class UserDetailAPI(generics.RetrieveUpdateDestroyAPIView): <NEW_LINE> <INDENT> lookup_field = 'email' <NEW_LINE> queryset = User.objects.all() <NEW_LINE> serializer_class = UserSerializer
API endpoint used to get, update and delete user data.
62598f7091af0d3eaad3963b
class ConfigurationConfig(AppConfig): <NEW_LINE> <INDENT> name = "configuration"
Configuration app Configuration
62598f700383005118f6cf33
class TimeoutHTTPAdapter(requests.adapters.HTTPAdapter): <NEW_LINE> <INDENT> def __init__(self, timeout: TimeoutType, *args: Any, **kwargs: Any): <NEW_LINE> <INDENT> self.__timeout = timeout <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def send(self, *args: Any, **kwargs: Any) -> Any: <NEW_LINE> <IN...
Add a default timeout to requests. https://requests.readthedocs.io/en/master/user/advanced/#timeouts https://github.com/psf/requests/issues/3070#issuecomment-205070203 TODO: Remove when psf/requests#3070 gets fixed.
62598f7007d97122c42164d1
class MarkerSet(object): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.colour = 'colour' <NEW_LINE> self.xy = [] <NEW_LINE> self.marker = 'o' <NEW_LINE> self.label = '' <NEW_LINE> <DEDENT> def append(self, x, y): <NEW_LINE> <INDENT> self.xy.append([x, y]) <NEW_LINE> ...
A class to manage a group of markers with common attributes.
62598f707b25080760ed6cce
class BuildProtos(setuptools.Command): <NEW_LINE> <INDENT> description = 'build grpc protobuf modules' <NEW_LINE> user_options = [('strict-mode', 's', 'exit with non-zero value if the proto compiling fails.')] <NEW_LINE> def initialize_options(self): <NEW_LINE> <INDENT> self.strict_mode = False <NEW_LINE> self.build_li...
Command to generate project *_pb2.py modules from proto files.
62598f7066673b3332c2fbf0
class CircleGrayTex(TextureBase): <NEW_LINE> <INDENT> def __init__(self, texture_size = 512, texture_name = "gray_circle", circle_center = (0,0), circle_radius = 100, bg_intensity = 0, fg_intensity = 255): <NEW_LINE> <INDENT> self.center = circle_center <NEW_LINE> self.radius = circle_radius <NEW_LINE> self.bg_intens...
Filled circle: grayscale on grayscale with circle_radius, centered at circle_center with face color fg_intensity on background bg_intensity. Center position is in pixels from center of image.
62598f708c3a8732951f5d80
class QuarterAddTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def test_date(self): <NEW_LINE> <INDENT> date = datetime.date(1986, 3, 9) <NEW_LINE> self.assertEqual(quarter_add(date, -1), datetime.date(1985, 10, 1)) <NEW_LINE> self.assertEqual(quarter_add(date, 0), datetime.date(1986, 1, 1)) <NEW_LINE> self.assertEqu...
Unittests for quarter_add
62598f7076d4e153a661c443
class BootingManagerWithFind(ManagerWithFind): <NEW_LINE> <INDENT> def _boot(self, resource_url, response_key, name, image, flavor, ipgroup=None, meta=None, files=None, zone_blob=None, reservation_id=None, return_raw=False): <NEW_LINE> <INDENT> body = {"server": { "name": name, "imageId": getid(image), "flavorId": geti...
Like a `ManagerWithFind`, but has the ability to boot servers.
62598f706fece00bbaccb1bb
class Square(): <NEW_LINE> <INDENT> def __init__(self, size=0): <NEW_LINE> <INDENT> if isinstance(size, int): <NEW_LINE> <INDENT> if size >= 0: <NEW_LINE> <INDENT> self.__size = size <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> raise ValueError('size must be >= 0') <NEW_LINE> <DEDENT> <DEDENT> else: <NEW_LINE> <INDENT...
class Square that defines a Square
62598f70d99f1b3c44d04ee7
class EchangeError(ActionNightError): <NEW_LINE> <INDENT> PARTENAIRE_EN_RUINE = 1 <NEW_LINE> TERRE_NON_COLONISEE = 2 <NEW_LINE> TERRE_PARTENAIRE_NON_COLONISEE = 3 <NEW_LINE> FLUX_IMPOSSIBLE = 4 <NEW_LINE> DON_INCOMPATIBLE = 5 <NEW_LINE> NON_PARTENAIRE = 6 <NEW_LINE> DEJA_ACCEPTE = 7 <NEW_LINE> PARTENAIRE_INEXISTANT = 8...
Ensemble des erreurs associées aux actions en rapport avec l'or
62598f701d351010ab8f3371
class _ArrayInstance(object): <NEW_LINE> <INDENT> def __init__(self, instance): <NEW_LINE> <INDENT> self.instance = instance <NEW_LINE> self.var_args = instance.var_args <NEW_LINE> <DEDENT> def py__iter__(self): <NEW_LINE> <INDENT> var_args = self.var_args <NEW_LINE> try: <NEW_LINE> <INDENT> _, lazy_context = next(var_...
Used for the usage of set() and list(). This is definitely a hack, but a good one :-) It makes it possible to use set/list conversions. In contrast to Array, ListComprehension and all other iterable types, this is something that is only used inside `evaluate/compiled/fake/builtins.py` and therefore doesn't need filter...
62598f70287bf620b62713e8
class Exploding: <NEW_LINE> <INDENT> should_explode = False <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> if self.should_explode: <NEW_LINE> <INDENT> raise ValueError("str exploded") <NEW_LINE> <DEDENT> return "didn't explode"
Explode on delayed str.
62598f708c3a8732951f5d81
class Person(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50,verbose_name="Full Name of the Person Whose handle names are stored") <NEW_LINE> cc = models.CharField(null=True,blank=True,max_length=20,verbose_name="Codechef handle name") <NEW_LINE> cf = models.CharField(null=True,bla...
info of the people user interested in.
62598f70d164cc61758207a7
class ProgressMeter(object): <NEW_LINE> <INDENT> def __init__(self, num_batches, *meters, prefix=""): <NEW_LINE> <INDENT> self.batch_fmtstr = self._get_batch_fmtstr(num_batches) <NEW_LINE> self.meters = meters <NEW_LINE> self.prefix = prefix <NEW_LINE> <DEDENT> def print(self, batch): <NEW_LINE> <INDENT> entries = [sel...
打印数据
62598f705166f23b2e242c0d
class Bullet(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen, ship): <NEW_LINE> <INDENT> super(Bullet, self).__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.rect = pygame.Rect(0, 0, ai_settings.bullet_width, ai_settings.bullet_height) <NEW_LINE> self.rect.centerx = ship.rect.centerx <NEW_...
A class to manage bullets fired from the ship
62598f703eb6a72ae0389e73
class Label(_Label): <NEW_LINE> <INDENT> class_name = "Label" <NEW_LINE> def _update_attributes(self, label): <NEW_LINE> <INDENT> super(Label, self)._update_attributes(label) <NEW_LINE> self.description = label["description"]
A representation of a label object defined on a repository. See also: http://developer.github.com/v3/issues/labels/ This object has the following attributes:: .. attribute:: color The hexadecimeal representation of the background color of this label. .. attribute:: desciption The description for this labe...
62598f700383005118f6cf34
class KmlEmitter(SubOcgDataEmitter): <NEW_LINE> <INDENT> __converter__ = ocg_converter.KmlConverter <NEW_LINE> __file_ext__ = '.kml' <NEW_LINE> def _response_(self): <NEW_LINE> <INDENT> return(self.converter()) <NEW_LINE> <DEDENT> def get_response(self): <NEW_LINE> <INDENT> return(self.converter.response(self.request))
Emits raw KML (.kml)
62598f7030dc7b766599f08f
class DualAbelianGroupElement(AbelianGroupElementBase): <NEW_LINE> <INDENT> def __call__(self, g): <NEW_LINE> <INDENT> F = self.parent().base_ring() <NEW_LINE> expsX = self.exponents() <NEW_LINE> expsg = g.exponents() <NEW_LINE> order = self.parent().gens_orders() <NEW_LINE> N = LCM(order) <NEW_LINE> order_not = [N / o...
Base class for abelian group elements
62598f70cad5886f8bdc4b53
class DigestAuthTests(RequestMixin, unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.realm = b"test realm" <NEW_LINE> self.algorithm = b"md5" <NEW_LINE> self.credentialFactory = digest.DigestCredentialFactory( self.algorithm, self.realm) <NEW_LINE> self.request = self.makeRequest() <NEW...
Digest authentication tests which use L{twisted.web.http.Request}.
62598f70ec188e330fdf80d4
class ExpressRouteCircuitPeeringConfig(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'advertised_public_prefixes': {'key': 'advertisedPublicPrefixes', 'type': '[str]'}, 'advertised_public_prefixes_state': {'key': 'advertisedPublicPrefixesState', 'type': 'str'}, 'customer_asn': {'key': 'customerASN...
Specifies the peering configuration. :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of the Peering resource. Possible values are 'NotConfigured', 'Configuring', 'Configured',...
62598f7091af0d3eaad3963d
class FilterChannel(FlatMapChannel): <NEW_LINE> <INDENT> def __init__(self, channel, predicate): <NEW_LINE> <INDENT> super(MapChannel, self).__init__(channel) <NEW_LINE> self.__transform__ = self.make_transform(predicate) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def make_transform(cls, predicate): <NEW_LINE> <INDENT...
Filters a source channel, passing through items that pass a predicate test. Given some input channel `channel`, and some predicate test callable `predicate`, the `FilterChannel` will consume `channel` and only emit items for which `predicate(item)` is `True`.
62598f700383005118f6cf35
class Drogulus: <NEW_LINE> <INDENT> def __init__(self, private_key, public_key, event_loop, connector, port=1908, whoami=None): <NEW_LINE> <INDENT> self.private_key = private_key <NEW_LINE> self.public_key = public_key <NEW_LINE> self.event_loop = event_loop <NEW_LINE> self.connector = connector <NEW_LINE> self._node =...
Represents a node in the drogulus network. All the actual heavy lifting is done within this class's _node attribute (an instance of drogulus.dht.node.Node).
62598f7016aa5153ce3ffd2f
class GoogLeNetNormalize(object): <NEW_LINE> <INDENT> def __call__(self, x): <NEW_LINE> <INDENT> assert(len(x.shape) == 3) <NEW_LINE> x_ch0 = torch.unsqueeze(x[0], 0) * (0.229 / 0.5) + (0.485 - 0.5) / 0.5 <NEW_LINE> x_ch1 = torch.unsqueeze(x[1], 0) * (0.224 / 0.5) + (0.456 - 0.5) / 0.5 <NEW_LINE> x_ch2 = torch.unsqueez...
Preprocess input as done in caffe for GoogLeNet.
62598f70a4f1c619b294de1e
class pyProjPoint(DFLib.Point): <NEW_LINE> <INDENT> def __init__(self,*args): <NEW_LINE> <INDENT> super(pyProjPoint,self).__init__() <NEW_LINE> self.myXY=DFLib.vectord(2) <NEW_LINE> self.myMercProj=Proj('+proj=merc +datum=WGS84 +lat_ts=0') <NEW_LINE> self.myUserCoords=DFLib.vectord(2) <NEW_LINE> if (len(args)!=0): <NEW...
The "pyProjPoint" class derives from the DFLib::Abstract::Point interface, and implements its interface methods
62598f7050485f2cf55da7a2
class Frozen(Mapping): <NEW_LINE> <INDENT> def __init__(self, mapping): <NEW_LINE> <INDENT> self.mapping = mapping <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> return self.mapping[key] <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return iter(self.mapping) <NEW_LINE> <DEDENT> def __...
Wrapper around an object implementing the mapping interface to make it immutable. If you really want to modify the mapping, the mutable version is saved under the `mapping` attribute.
62598f70d99f1b3c44d04ee9
class QueryException(Exception): <NEW_LINE> <INDENT> pass
Default Query exception class. When something wrong happend while fetching API.
62598f708a349b6b43685a75
class wait_random_exponential(wait_exponential): <NEW_LINE> <INDENT> @_compat.wait_dunder_call_accept_old_params <NEW_LINE> def __call__(self, retry_state): <NEW_LINE> <INDENT> high = super(wait_random_exponential, self).__call__( retry_state=retry_state) <NEW_LINE> return random.uniform(0, high)
Random wait with exponentially widening window. An exponential backoff strategy used to mediate contention between multiple uncoordinated processes for a shared resource in distributed systems. This is the sense in which "exponential backoff" is meant in e.g. Ethernet networking, and corresponds to the "Full Jitter" a...
62598f705166f23b2e242c0f