code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Bag: <NEW_LINE> <INDENT> def __init__(self, nBlack, nWhite): <NEW_LINE> <INDENT> self.contents = [BLACK] * nBlack + [WHITE] * nWhite <NEW_LINE> <DEDENT> def draw(self): <NEW_LINE> <INDENT> k = 2 if len(self.contents) >= 2 else 1 <NEW_LINE> sample = random.sample(self.contents, k) <NEW_LINE> [self.contents.remove(...
A bag of black and white balls
62598f89435de62698e9b93b
class BitBuf: <NEW_LINE> <INDENT> def write_angle(self, angle, numBits=8): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def write_angles(self, angles): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def write_bool(self, bit): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def write_byte(self, byte): <NEW_LINE> <INDENT> pas...
Interact with writable Source BitBuffers (bf_write).
62598f893617ad0b5ee05c8f
class GameBanList(models.Model): <NEW_LINE> <INDENT> appid = models.IntegerField(primary_key=True, unique=True, db_index=True, verbose_name='appid', help_text='游戏的AppID') <NEW_LINE> tadd = models.IntegerField(default=0, verbose_name='添加时间', help_text='添加时间戳') <NEW_LINE> cview = models.IntegerField(default=0, verbose_na...
无效的游戏
62598f899b70327d1c57e8e9
class OrgRoleAddressDocPropertyProvider(BaseDocPropertyProvider): <NEW_LINE> <INDENT> DEFAULT_PREFIX = ('organization',) <NEW_LINE> def _collect_properties(self): <NEW_LINE> <INDENT> return {'name': self.context.organization.name} <NEW_LINE> <DEDENT> def get_properties(self, prefix=None): <NEW_LINE> <INDENT> return sel...
Provides doc-properties for org role addresses. Injects organization name into address.
62598f89ec188e330fdf83eb
class ComfortPerception(Thing): <NEW_LINE> <INDENT> def __init__(self, aspect_type, perception, satisfaction, preference): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.aspect_type = aspect_type <NEW_LINE> self.perception = perception <NEW_LINE> self.satisfaction = satisfaction <NEW_LINE> self.preference = pre...
Comfort Perception class
62598f89baa26c4b54d4ee00
class DOG: <NEW_LINE> <INDENT> def __init__(self, m = 1.): <NEW_LINE> <INDENT> self.order = m <NEW_LINE> self.fc = (m+.5)**.5 / (2*pi) <NEW_LINE> <DEDENT> def psi_ft(self, f): <NEW_LINE> <INDENT> c = 1j**self.order / numpy.sqrt(gamma(self.order + .5)) <NEW_LINE> w = 2*pi*f <NEW_LINE> return c * w**self.order * numpy.ex...
Derivative of Gaussian, general form
62598f8945492302aabfc022
class WetestConfig: <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> if config: <NEW_LINE> <INDENT> self.wetest_sections = config.inicfg.config.sections.get('wetest', dict()) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.wetest_sections = dict() <NEW_LINE> <DEDENT> <DEDENT> def get_ini(self, k, ...
Wetest plugin custom section [wetest] k:v k:v
62598f89d10714528d69da1d
class VerticalAquiferExtentsHistory(AuditModelStructure): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = 'vertical_aquifer_extents_history' <NEW_LINE> ordering = ['-create_date'] <NEW_LINE> <DEDENT> db_table_comment = ('Keeps track of the changes to the vertical aquifer extents ' 'from a bulk change.') ...
Keeps track of the changes to vertical aquifer extents
62598f898e71fb1e983bb5fd
class NumericMethodTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.base_num = NumericMethod() <NEW_LINE> <DEDENT> def test_calculate(self): <NEW_LINE> <INDENT> self.assertRaises(Exception, self.base_num.calculate, system = SpaceSystem()) <NEW_LINE> <DEDENT> def test_accelaration(s...
Test case docstring
62598f896aa9bd52df0d4a20
class LoginForm(forms.Form): <NEW_LINE> <INDENT> username = forms.CharField(required=True, widget=forms.TextInput(attrs={'class': 'form-control'})) <NEW_LINE> password = forms.CharField(required=True, widget=forms.PasswordInput(attrs={'class': 'form-control'})) <NEW_LINE> def clean(self): <NEW_LINE> <INDENT> username =...
This is a Django login form
62598f8921a7993f00c65ac1
class Movie(): <NEW_LINE> <INDENT> def __init__(self,movie_title,movie_poster_image_url,movie_trailer_youtube_url): <NEW_LINE> <INDENT> self.title=movie_title <NEW_LINE> self.poster_image_url=movie_poster_image_url <NEW_LINE> self.trailer_youtube_url=movie_trailer_youtube_url
This is the Movie Class where we can create our own movies instances Attributes: movie_title (str): This is the Movie name attribute movie_poster_image_url (str): This is the Poster Image url in order to show it in the html page movie_trailer_youtube_url (str): This is the trailer url in order to show it ...
62598f89596a8972361277c1
class Datastore(object): <NEW_LINE> <INDENT> def __init__(self, datastore): <NEW_LINE> <INDENT> self.space_used_gib = datastore['stat']['spaceUsedGiB'] <NEW_LINE> self.performance_reserve_remaining = datastore['stat']['performanceReserveRemaining'] <NEW_LINE> self.performance_reserve_used = datastore['stat']['performan...
Provides an interface to collect information about a given datastore. This can be used to determine capacity, performance and cache hit rate. Should be invoked via .get @classmethod. Requires a tintri session object to work. Sample usage: # Log into a Tintri VMstore with the admin credentials import...
62598f8971ff763f4b5e72bc
class FormAddProduct: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.frame=Toplevel() <NEW_LINE> self.frame.protocol("WM_DELETE_WINDOW", self.callback) <NEW_LINE> self._init_widgets() <NEW_LINE> <DEDENT> def _init_widgets(self): <NEW_LINE> <INDENT> self.label1=Label(self.frame,text="Product #") <NEW_L...
Add New product three labels and three textboxes and an OK button
62598f89fb3f5b602db47f57
class NotImplemented(Exception): <NEW_LINE> <INDENT> pass
Raises when a functionality is not yet implemented.
62598f8938b623060ffa8be3
class UserData(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User) <NEW_LINE> book = models.ForeignKey(Books) <NEW_LINE> started_exercises = models.TextField() <NEW_LINE> all_proficient_exercises = models.TextField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> unique_together = (("user", "book"),) <NEW_L...
A table storing a summary of user/exercises activity: started exercises and proficient exercises
62598f89a4f1c619b294e134
class DataRequired(object): <NEW_LINE> <INDENT> field_flags = ('required', ) <NEW_LINE> def __init__(self, message=None): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> <DEDENT> def __call__(self, form, field): <NEW_LINE> <INDENT> import logging; logging.warning(field.data) <NEW_LINE> if not field.data or isinst...
Validates that the field contains coerced data. This validator will stop the validation chain on error. If the data is empty, also removes prior errors (such as processing errors) from the field. **NOTE** this validator used to be called `Required` but the way it behaved (requiring coerced data, not input data) meant...
62598f89bde94217f370740d
class Model(RESObsDependentPath): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> super(Model, self).__init__(config=config) <NEW_LINE> self.convolutional_encoder = get_component("convolutional_encoder", config) <NEW_LINE> self.state_transition_model = get_component("state_transition_model", config)...
Recurrent Environment Simulator. This model uses the observation-dependent path
62598f89c432627299fa2b1f
class OrExpression(BinaryExpression): <NEW_LINE> <INDENT> def __init__(self, lnode, rnode): <NEW_LINE> <INDENT> super().__init__(Boolean(), '||', lnode, rnode) <NEW_LINE> <DEDENT> def get_value(self, context): <NEW_LINE> <INDENT> return self.lnode.get_value(context) or self.rnode.get_value(context)
Logic OR expression. It takes two Boolean and returns a Boolean.
62598f8916aa5153ce400051
class PlainTransformer(Visitor): <NEW_LINE> <INDENT> def visitAtom(self, obj): <NEW_LINE> <INDENT> return obj <NEW_LINE> <DEDENT> def visitConnector(self, obj): <NEW_LINE> <INDENT> return obj <NEW_LINE> <DEDENT> def visitAnd(self, obj): <NEW_LINE> <INDENT> sub_formulas = [] <NEW_LINE> for formula in obj.sub_formulas: <...
Example: And(And(Atom('A'), Atom('B')), Atom('C')) ==> And(Atom('A'), Atom('B'), Atom('C'))
62598f89507cdc57c63a48dc
class Engine(base.Engine): <NEW_LINE> <INDENT> def __init__(self, cluster_types, clusters_file): <NEW_LINE> <INDENT> self._cluster_types = cluster_types <NEW_LINE> self._clusters_file = clusters_file <NEW_LINE> <DEDENT> def create_manager(self, username, tenancy): <NEW_LINE> <INDENT> return ClusterManager(self._cluster...
Base class for a cluster engine.
62598f89925a0f43d25e7b83
class FeedfeederFolder(ATBTreeFolder): <NEW_LINE> <INDENT> security = ClassSecurityInfo() <NEW_LINE> interface.implements(IFeedsContainer) <NEW_LINE> archetype_name = 'Feed Folder' <NEW_LINE> meta_type = 'FeedfeederFolder' <NEW_LINE> portal_type = 'FeedfeederFolder' <NEW_LINE> allowed_content_types = ['FeedFeederItem']...
Verify class test >>> from zope.interface.verify import verifyClass >>> verifyClass(IFeedsContainer, FeedfeederFolder) True
62598f8973bcbd0ca4bc9da2
class Award(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User, related_name='award_user') <NEW_LINE> badge = models.ForeignKey(BadgeData, related_name='award_badge') <NEW_LINE> content_type = models.ForeignKey(ContentType) <NEW_LINE> object_id = models.PositiveIntegerField() <NEW_LINE> content_object = g...
The awarding of a Badge to a User.
62598f89004d5f362081eda0
class MultiPathError(Exception): <NEW_LINE> <INDENT> def __init__(self, possible_paths): <NEW_LINE> <INDENT> super(MultiPathError, self).__init__() <NEW_LINE> self.possible_paths = possible_paths <NEW_LINE> self.message = 'found multiple fireable transitions: %s' % str(self.possible_paths) <NEW_LINE> <DEDENT> def __str...
Indicates that there are multiple legal paths that can be taken, providing a list of transitions that can be fired.
62598f890a50d4780f704f1c
class SelectedLanguagesMap(Map): <NEW_LINE> <INDENT> def __init__(self, ctx, req, languages, geojson_impl=None, **kw): <NEW_LINE> <INDENT> self.geojson_impl = geojson_impl or GeoJsonSelectedLanguages <NEW_LINE> self.languages = languages <NEW_LINE> Map.__init__(self, ctx, req, **kw) <NEW_LINE> <DEDENT> def get_options(...
Map showing an arbitrary selection of languages.
62598f8907d97122c42167f5
class SCons(EasyBlock): <NEW_LINE> <INDENT> def configure_step(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def build_step(self, verbose=False): <NEW_LINE> <INDENT> cmd = "%s scons %s PREFIX=%s" % (self.cfg['prebuildopts'], self.cfg['buildopts'], self.installdir) <NEW_LINE> (out, _) = run_cmd(cmd, log_all=True, ...
Support for building/installing with SCons.
62598f89b830903b9686e219
class MessageBox(Document): <NEW_LINE> <INDENT> message_id = ReferenceField(Message, required=True) <NEW_LINE> associated_users = ListField(ReferenceField(User)) <NEW_LINE> meta = {"collection": "messages_box"}
A message box contains a message and its associates users (sender & receiver)
62598f891f037a2d8b9e3c26
class FakeEdit(AbstractControl, ButtonWithIcon): <NEW_LINE> <INDENT> def __new__( cls, default_value="Enter something...", update_label_on_enter=True, keyboard_title="Enter something...", icon_pad_x=12, *args, **kwargs ): <NEW_LINE> <INDENT> return super(FakeEdit, cls).__new__( cls, default_value, "edit.png", icon_pad_...
A text box control that uses a popup keyboard Not a derivative of ControlEdit class as that is not available on XBMC4Xbox
62598f898a349b6b43685d94
class MediaListPlayer: <NEW_LINE> <INDENT> def __new__(cls, arg=None): <NEW_LINE> <INDENT> if arg is None: <NEW_LINE> <INDENT> i = get_default_instance() <NEW_LINE> <DEDENT> elif isinstance(arg, Instance): <NEW_LINE> <INDENT> i = arg <NEW_LINE> <DEDENT> elif isinstance(arg, _Ints): <NEW_LINE> <INDENT> return _Construct...
Create a new MediaListPlayer instance. It may take as parameter either: - a vlc.Instance - nothing
62598f89e64d504609df9159
class Categories(CategoryNameMap,IDisposable,IEnumerable): <NEW_LINE> <INDENT> def Contains(self,name): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Dispose(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ForwardIterator(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetEnumerator(self): <NEW_LINE>...
The Categories object is a map that contains all the top-level Category objects within the Document.
62598f8915fb5d323ce7e87b
class TestCallback(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.c = server.Callback() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test___init__1(self): <NEW_LINE> <INDENT> self.assertEqual(self.c.invoked, False, "Attribute 'invoked' incor...
Unit tests for the protobuf.server.Callback class.
62598f89f8510a7c17d7df1e
class WinUnicodeOutput(WinUnicodeOutputBase): <NEW_LINE> <INDENT> def __init__(self, stream, fileno, encoding): <NEW_LINE> <INDENT> super(WinUnicodeOutput, self).__init__( fileno, '<Unicode redirected %s>' % stream.name, encoding) <NEW_LINE> self._stream = stream <NEW_LINE> self.flush() <NEW_LINE> <DEDENT> def flush(se...
Output adaptor to a file output on Windows. If the standard FileWrite function is used, it will be encoded in the current code page. WriteConsoleW() permits writing any character.
62598f8907d97122c42167f6
class ChatAdminRights(TLObject): <NEW_LINE> <INDENT> __slots__ = ["change_info", "post_messages", "edit_messages", "delete_messages", "ban_users", "invite_users", "pin_messages", "add_admins"] <NEW_LINE> ID = 0x5fb224d5 <NEW_LINE> QUALNAME = "types.ChatAdminRights" <NEW_LINE> def __init__(self, *, change_info: bool = N...
Attributes: LAYER: ``112`` Attributes: ID: ``0x5fb224d5`` Parameters: change_info (optional): ``bool`` post_messages (optional): ``bool`` edit_messages (optional): ``bool`` delete_messages (optional): ``bool`` ban_users (optional): ``bool`` invite_users (optional): ``bool`` pin_mes...
62598f8950485f2cf55daac4
class RetryLater(OioException): <NEW_LINE> <INDENT> pass
Exception raised by workers that want a task to be rescheduled later.
62598f898da39b475be02d38
class PoolEvaluateAutoScaleParameter(Model): <NEW_LINE> <INDENT> _validation = { 'auto_scale_formula': {'required': True}, } <NEW_LINE> _attribute_map = { 'auto_scale_formula': {'key': 'autoScaleFormula', 'type': 'str'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(PoolEvaluateAutoScaleParameter...
Options for evaluating an automatic scaling formula on a Pool. All required parameters must be populated in order to send to Azure. :param auto_scale_formula: Required. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling...
62598f895f7d997b871f9181
class Initializer(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def initialize(join_tree): <NEW_LINE> <INDENT> for clique in join_tree.get_cliques(): <NEW_LINE> <INDENT> potential = PotentialUtil.get_potential_from_nodes(clique.nodes) <NEW_LINE> join_tree.add_potential(clique, potential) <NEW_LINE> <DEDENT> for...
Initializes the join tree.
62598f8923e79379d538c04d
class TorrentServerApi(object): <NEW_LINE> <INDENT> def __init__(self, api_url, user, pwd): <NEW_LINE> <INDENT> self.api_url = api_url <NEW_LINE> self.user = user <NEW_LINE> self.pwd = pwd <NEW_LINE> <DEDENT> def get(self, service, params={"format": "json", "limit": 20}): <NEW_LINE> <INDENT> get_response = requests.get...
Torrent server api wrapper
62598f89d6c5a102081e1c91
class Location: <NEW_LINE> <INDENT> def __init__(self, name: str, monitoring_station: str, wet: float, warn: float, messages: Dict[FloodStates, str]): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.monitoring_station = monitoring_station <NEW_LINE> self.wet = wet <NEW_LINE> self.warn = warn <NEW_LINE> if len(mess...
Location configuration object
62598f898a43f66fc4bf1cd4
class MplAsteriskPolygonCollectionProperties(MplRegularPolyCollectionProperties): <NEW_LINE> <INDENT> _input_ports = [ ("numsides", "basic:String", {'optional': True}), ("rotation", "basic:Integer", {'optional': True, 'defaults': "['0']"}), ("sizes", "basic:String", {'optional': True, 'defaults': "['(1,)']"}), ] <NEW_L...
Draw a collection of regular asterisks with *numsides* points.
62598f89d10714528d69da20
class GroupSelectorWithTeamGroupError(GroupSelectorError): <NEW_LINE> <INDENT> system_managed_group_disallowed = None <NEW_LINE> def is_system_managed_group_disallowed(self): <NEW_LINE> <INDENT> return self._tag == 'system_managed_group_disallowed' <NEW_LINE> <DEDENT> def _process_custom_annotations(self, annotation_ty...
Error that can be raised when :class:`GroupSelector` is used and team groups are disallowed from being used. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar team.GroupSelectorWithT...
62598f8991af0d3eaad3994e
class AcceptanceTest(TestSuite): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(AcceptanceTest, self).__init__(*args, **kwargs) <NEW_LINE> self.report_dir = Env.REPORT_DIR / 'acceptance' <NEW_LINE> self.fasttest = kwargs.get('fasttest', False) <NEW_LINE> self.system = kwargs.get('sys...
A class for running lettuce acceptance tests.
62598f8910dbd63aa1c70706
class BaseConfig: <NEW_LINE> <INDENT> TESTING = False <NEW_LINE> SQLALCHEMY_TRACK_MODIFICATIONS = False <NEW_LINE> SECRET_KEY = os.environ.get('SECRET_KEY') <NEW_LINE> DEBUG_TB_ENABLED = False <NEW_LINE> DEBUG_TB_INTERCEPT_REDIRECTS = False <NEW_LINE> TOKEN_EXPIRATION_DAYS = 30 <NEW_LINE> TOKEN_EXPIRATION_SECONDS = 0
Base configuration
62598f89e76e3b2f99fd857f
class MyTokenObtainPairView(TokenObtainPairView): <NEW_LINE> <INDENT> serializer_class = MyTokenObtainPairSerializer
Requisita os tokens de acesso e refresh, além dos dados cadastrais * É preciso já ser registrado como usuário
62598f896fb2d068a7693bd7
class TextMessageProtocolEntity(MessageProtocolEntity): <NEW_LINE> <INDENT> def __init__(self, body, _id = None, _from = None, to = None, notify = None, timestamp = None, participant = None, offline = None, retry = None): <NEW_LINE> <INDENT> super(TextMessageProtocolEntity, self).__init__("text",_id, _from, to, notify...
<message t="{{TIME_STAMP}}" from="{{CONTACT_JID}}" offline="{{OFFLINE}}" type="text" id="{{MESSAGE_ID}}" notify="{{NOTIFY_NAME}}"> <body> {{MESSAGE_DATA}} </body> </message>
62598f89e64d504609df915a
class IProgramme(form.Schema, IImageScaleTraversable, IFeatureImageViewletDisabled): <NEW_LINE> <INDENT> languageindependent('code') <NEW_LINE> code = schema.TextLine(title=_(u'Code'), required=False) <NEW_LINE> languageindependent('date') <NEW_LINE> date = schema.Date(title=_(u'Date')) <NEW_LINE> languageindependent('...
62598f8971ff763f4b5e72c0
class YUIAppServerLayer(MemcachedLayer): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @profiled <NEW_LINE> def setUp(cls): <NEW_LINE> <INDENT> LayerProcessController.setConfig() <NEW_LINE> LayerProcessController.startAppServer('run-testapp') <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> @profiled <NEW_LINE> def tearDown(c...
The layer for all YUIAppServer test cases.
62598f8994891a1f408b9497
class Elementary(object): <NEW_LINE> <INDENT> def __init__(self, button_class = RGBButtonElement, color_mappings = None, encoder_class = EncoderElement, channel = 0): <NEW_LINE> <INDENT> self.channel = channel <NEW_LINE> self.encoder_class = encoder_class <NEW_LINE> self.button_class = button_class <NEW_LINE> self.colo...
This mixin provides shared methods to allow modular control of the encoder and button classes, as well as some boilerplate
62598f89498bea3a75a57675
class TGate(CompositeGate): <NEW_LINE> <INDENT> def __init__(self, qubit, circ=None): <NEW_LINE> <INDENT> super().__init__("t", [], [qubit], circ) <NEW_LINE> self.u1(pi / 4, qubit) <NEW_LINE> <DEDENT> def reapply(self, circ): <NEW_LINE> <INDENT> self._modifiers(circ.t(self.arg[0])) <NEW_LINE> <DEDENT> def qasm(self): <...
T=sqrt(S) Clifford phase gate or its inverse.
62598f8924f1403a92685656
class CrystalID2: <NEW_LINE> <INDENT> def __init__(self, crystal_id, block_id): <NEW_LINE> <INDENT> self.crystal_id = crystal_id <NEW_LINE> self.block_id = block_id <NEW_LINE> <DEDENT> def to(self, cls, spec): <NEW_LINE> <INDENT> if cls == CrystalID3: <NEW_LINE> <INDENT> y, z = np.unravel_index( [self.crystal_id], spec...
Crystal by (crystalid, blockid)
62598f89a4f1c619b294e138
class _generic_test_stuff(unittest.TestCase): <NEW_LINE> <INDENT> def test_f(self): <NEW_LINE> <INDENT> self.assertEqual(f(3),1)
Class containing unittests
62598f89b57a9660fecd15ce
class TensorBoard(Callback): <NEW_LINE> <INDENT> def __init__(self, log_dir='./logs', histogram_freq=0): <NEW_LINE> <INDENT> super(Callback, self).__init__() <NEW_LINE> if K._BACKEND != 'tensorflow': <NEW_LINE> <INDENT> raise Exception('TensorBoard callback only works ' 'with the TensorFlow backend.') <NEW_LINE> <DEDEN...
Tensorboard basic visualizations. This callback writes a log for TensorBoard, which allows you to visualize dynamic graphs of your training and test metrics, as well as activation histograms for the different layers in your model. TensorBoard is a visualization tool provided with TensorFlow. If you have installed Te...
62598f89435de62698e9b940
class S2block(_SenseContainer): <NEW_LINE> <INDENT> pass
OED <s2> block class.
62598f893c8af77a43b67cde
class SuiteTestRunner(MultiTestRunner): <NEW_LINE> <INDENT> def run(self, definitions=None): <NEW_LINE> <INDENT> if definitions is None and not self.case_definition: <NEW_LINE> <INDENT> raise DtfDiscoveryException('Definitions not added to TestRunner Object.') <NEW_LINE> <DEDENT> elif definitions is None: <NEW_LINE> <I...
:class:`~core.SuiteTestRunner()` is a sub-class of :class:`~core.MultiTestRunner()` that runs all test represented in the :attr:`~core.TestRunner.test_specs` dict.
62598f8923e79379d538c04f
class ConnectorCreator(object): <NEW_LINE> <INDENT> def __init__(self, db, *, test=False): <NEW_LINE> <INDENT> if db == 'test': <NEW_LINE> <INDENT> self._articles = Articles(FakeArticlesConnector()) <NEW_LINE> self._settings = None <NEW_LINE> <DEDENT> elif db == 'mongodb': <NEW_LINE> <INDENT> self.init_mongodb(test) <N...
Create connector Use to instance a database helper.
62598f89009cb60464d0107d
class UserDetailsView(DetailsView): <NEW_LINE> <INDENT> def check_view_permissions(self, request: HttpRequest, item: User): <NEW_LINE> <INDENT> super().check_view_permissions(request, item) <NEW_LINE> if not item.profile_public and item != request.user: <NEW_LINE> <INDENT> raise PermissionDenied() <NEW_LINE> <DEDENT> <...
Представление с детальной информацией о пользователе.
62598f8923849d37ff850c11
class DjangoParser(core.Parser): <NEW_LINE> <INDENT> def _raw_load_json(self, req): <NEW_LINE> <INDENT> if not is_json_request(req): <NEW_LINE> <INDENT> return core.missing <NEW_LINE> <DEDENT> return core.parse_json(req.body) <NEW_LINE> <DEDENT> def load_querystring(self, req, schema): <NEW_LINE> <INDENT> return MultiD...
Django request argument parser. .. warning:: :class:`DjangoParser` does not override :meth:`handle_error <webargs.core.Parser.handle_error>`, so your Django views are responsible for catching any :exc:`ValidationErrors` raised by the parser and returning the appropriate `HTTPResponse`.
62598f893617ad0b5ee05c95
class Text(DataType): <NEW_LINE> <INDENT> def __init__(self, cast_nulls=True, **kwargs): <NEW_LINE> <INDENT> super(Text, self).__init__(**kwargs) <NEW_LINE> self.cast_nulls = cast_nulls <NEW_LINE> <DEDENT> def cast(self, d): <NEW_LINE> <INDENT> if d is None: <NEW_LINE> <INDENT> return d <NEW_LINE> <DEDENT> elif isinsta...
Data type representing text. :param cast_nulls: If :code:`True`, values in :data:`.DEFAULT_NULL_VALUES` will be converted to `None`. Disable to retain them as strings.
62598f89435de62698e9b941
class DefaultProductPlan(models.Model): <NEW_LINE> <INDENT> product_type = models.CharField(max_length=25, choices=SoftwareProductType.CHOICES) <NEW_LINE> edition = models.CharField( default=SoftwarePlanEdition.COMMUNITY, choices=SoftwarePlanEdition.CHOICES, max_length=25, ) <NEW_LINE> plan = models.ForeignKey(Software...
This links a product type to its default SoftwarePlan (i.e. the Community Plan). The latest SoftwarePlanVersion that's linked to this plan will be the one used to create a new subscription if nothing is found for that domain.
62598f89d6c5a102081e1c94
class HelloViewset(ViewSet): <NEW_LINE> <INDENT> def list(self, request): <NEW_LINE> <INDENT> data = { "hello": "This is hello viewset" } <NEW_LINE> return Response(data)
Reference: https://www.django-rest-framework.org/api-guide/viewsets/
62598f89b7558d5895463186
class IntroductionPointSet(object): <NEW_LINE> <INDENT> def __init__(self, available_introduction_points): <NEW_LINE> <INDENT> for instance_intro_points in available_introduction_points: <NEW_LINE> <INDENT> random.shuffle(instance_intro_points) <NEW_LINE> <DEDENT> random.shuffle(available_introduction_points) <NEW_LINE...
Select a set of introduction points to included in a HS descriptor. Provided with a list of available introduction points for each backend instance for an onionbalance service. This object will store the set of available introduction points and allow IPs to be selected from the available set. This class tracks which ...
62598f898e05c05ec3f6ebf1
class AvailablePoolSchema(Schema): <NEW_LINE> <INDENT> pool_type = fields.Str() <NEW_LINE> named_pool = fields.Nested(PoolSchema, allow_none=True) <NEW_LINE> url = fields.Str(allow_none=True) <NEW_LINE> user = fields.Str(allow_none=True) <NEW_LINE> password = fields.Str(required=False) <NEW_LINE> priority = fields.Int(...
schema for available pool
62598f8945492302aabfc028
class PGMockType: <NEW_LINE> <INDENT> pass
base
62598f8929b78933be269e84
class TransformedRV(TensorVariable): <NEW_LINE> <INDENT> def __init__(self, type=None, owner=None, index=None, name=None, distribution=None, model=None, transform=None, total_size=None): <NEW_LINE> <INDENT> if type is None: <NEW_LINE> <INDENT> type = distribution.type <NEW_LINE> <DEDENT> super(TransformedRV, self).__in...
Parameters ---------- type : theano type (optional) owner : theano owner (optional) name : str distribution : Distribution model : Model total_size : scalar Tensor (optional) needed for upscaling logp
62598f896aa9bd52df0d4a26
class ClassifierNeuralNetwork( ClassGradientsMixin, ClassifierMixin, LossGradientsMixin, NeuralNetworkMixin, BaseEstimator, ABC ): <NEW_LINE> <INDENT> estimator_params = ( BaseEstimator.estimator_params + NeuralNetworkMixin.estimator_params + ClassifierMixin.estimator_params ) <NEW_LINE> @abstractmethod <NEW_LINE> def ...
Typing variable definition.
62598f89e64d504609df915b
class TermObjectTypeError(Error): <NEW_LINE> <INDENT> pass
Error with an object passed to Term.
62598f89711fe17d825e023e
class Contact(ContactBase): <NEW_LINE> <INDENT> phone = models.CharField(_('phone'), max_length=15) <NEW_LINE> company = models.CharField(_('company'), max_length=250, blank=True) <NEW_LINE> city = models.CharField(_('city'), max_length=255, blank=True) <NEW_LINE> state = models.CharField(_('state/province'), max_lengt...
Default enabled model Contains common infos
62598f898c0ade5d55dc3434
@inherit_doc <NEW_LINE> class JavaEvaluator(JavaParams, Evaluator, metaclass=ABCMeta): <NEW_LINE> <INDENT> def _evaluate(self, dataset: DataFrame) -> float: <NEW_LINE> <INDENT> self._transfer_params_to_java() <NEW_LINE> assert self._java_obj is not None <NEW_LINE> return self._java_obj.evaluate(dataset._jdf) <NEW_LINE>...
Base class for :py:class:`Evaluator`s that wrap Java/Scala implementations.
62598f8963b5f9789fe84cc4
class UnsupportedFormatCharacter(Exception): <NEW_LINE> <INDENT> def __init__(self, index): <NEW_LINE> <INDENT> super().__init__(index) <NEW_LINE> self.index = index
A format character in a format string is not one of the supported format characters.
62598f89b57a9660fecd15d0
class IPConfiguration(SubResource): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, 'private_ip_allocation_method': {'key': 'properties....
IPConfiguration. :param id: Resource ID. :type id: str :param name: The name of the resource that is unique within a resource group. This name can be used to access the resource. :type name: str :param etag: A unique read-only string that changes whenever the resource is updated. :type etag: str :param private_ip_add...
62598f89507cdc57c63a48e2
class ComputeQuotasDomainObjectTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_construction_positional(self): <NEW_LINE> <INDENT> quotas = ComputeQuotas( metadata_items=64, cores=5, instances= 4, injected_files= 3, injected_file_content_bytes=5120,ram=25600, fixed_ips=100, key_pairs=50) <NEW_LINE> self.assertEqu...
Tests the construction of the snaps.domain.project.ComputeQuotas class
62598f896fece00bbaccb4de
class Solution3: <NEW_LINE> <INDENT> def twoSum(self, nums, target): <NEW_LINE> <INDENT> dict = {} <NEW_LINE> for i,n in enumerate(nums,0): <NEW_LINE> <INDENT> if target - n in dict: <NEW_LINE> <INDENT> return [dict[target-n],i] <NEW_LINE> <DEDENT> dict[n] = i
enumerate 遍历 list, 将一个可遍历的数据对象(如列表、元组或字符串) 组合为一个索引序列,同时列出数据和数据下标,一般用在 for 循环当中 组合数据和数据下标思想!!! 算法核心思想与 solution2 一致,只不过使用Python 内置函数 enumerate 实现
62598f8982261d6c5272fc7f
class Enifed(NameDirective): <NEW_LINE> <INDENT> expression = re.compile(r"@enifed\((.+)\)") <NEW_LINE> def process(self, document, block, index): <NEW_LINE> <INDENT> del block[index]
.. py:class:: Enifed This class represents an ``@enifed`` directive. It inherits :py:class:`NameDirective`.
62598f8910dbd63aa1c7070a
class StoppedCommandPane(CommandPane): <NEW_LINE> <INDENT> def __init__(self, owner, name, open_below): <NEW_LINE> <INDENT> CommandPane.__init__(self, owner, name, open_below) <NEW_LINE> if have_gui(): <NEW_LINE> <INDENT> self.selectedHighlight = VimPane.SELECTED_HIGHLIGHT_NAME_GUI <NEW_LINE> <DEDENT> else: <NEW_LINE> ...
Pane that displays the output of an LLDB command when the process is stopped; otherwise displays process status. This class also implements highlighting for a single line (to show a single-line selected entity.)
62598f89d10714528d69da25
class Researcher(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User) <NEW_LINE> current_lab_member = models.BooleanField(help_text = "Is this a current member of this group?") <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.user.get_full_name() <NEW_LINE> <DEDENT> @models.permalink <N...
This model is for researcher data. This is this project's UserProfile model and is generated when a new :class:`~django.contrib.auth.models.User` object is created.
62598f8996565a6dacd2cd22
class DynamicNameSpace(dict): <NEW_LINE> <INDENT> def __init__(self, session=None, **kwargs): <NEW_LINE> <INDENT> if session is None: <NEW_LINE> <INDENT> raise RuntimeError("Session must be given.") <NEW_LINE> <DEDENT> self.help_profile = None <NEW_LINE> self.session = session <NEW_LINE> super(DynamicNameSpace, self)._...
A namespace which dynamically reflects the currently active plugins.
62598f8907d97122c42167fb
class NeuronsPool: <NEW_LINE> <INDENT> def __init__(self, poolparams): <NEW_LINE> <INDENT> self.N = poolparams.get('N', 1) <NEW_LINE> neuronparams = poolparams.get('neuronparams',{}) <NEW_LINE> self.neurontype = poolparams.get('neuronType', 'swta_neuron_dbl_exp') <NEW_LINE> self.isInput = poolparams.get('isInput', Fals...
Represents a pool of same neurons: input, excitatory, inhibitory
62598f890c0af96317c55ee1
class SymbolSieve(Sieve): <NEW_LINE> <INDENT> def __init__(self, sifter, *tokens): <NEW_LINE> <INDENT> tokens = ensure_all_symbol(tokens) <NEW_LINE> super().__init__(sifter, *tokens)
A Sieve that requires all of its arguments to be matchers. Calls `ensure_all_symbol` on `tokens`
62598f89e64d504609df915c
class Tile(hg.DIV): <NEW_LINE> <INDENT> def __init__(self, *children, **attributes): <NEW_LINE> <INDENT> hg.merge_html_attrs(attributes, {"_class": "bx--tile"}) <NEW_LINE> super().__init__(*children, **attributes)
Tiles are a highly flexible component for displaying a wide variety of content, including information, getting started, how-to, next steps, and more. More information: https://www.carbondesignsystem.com/components/tile/usage/ Demo: https://the-carbon-components.netlify.app/?nav=tile
62598f894e696a045264dbae
class StatsdClient(object): <NEW_LINE> <INDENT> def __init__(self, namespace, host='localhost', port=8125): <NEW_LINE> <INDENT> self.namespace = namespace.encode("utf8") <NEW_LINE> self.addr = host, port <NEW_LINE> <DEDENT> def timing(self, bucket, value): <NEW_LINE> <INDENT> self.send(bucket, value, MT_TIMING) <NEW_LI...
Send data to stats daemon over UDP, formatting accordingly.
62598f89d99f1b3c44d051fe
class CubicLattice(Lattice): <NEW_LINE> <INDENT> def __init__(self, sz_tpl): <NEW_LINE> <INDENT> pass
Represents a lattice in which qubits are placed on the intersections of the diagonals of squares, as well as their corners.
62598f8976d4e153a661c76b
class Verb(object): <NEW_LINE> <INDENT> GET = "GET" <NEW_LINE> POST = "POST" <NEW_LINE> nestables = None <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.name = self.__class__.__name__ <NEW_LINE> self.body = None <NEW_LINE> self.verbs = [] <NEW_LINE> self.attrs = {} <NEW_LINE> if kwargs.get("waitMethod...
Twilio basic verb object.
62598f8973bcbd0ca4bc9da8
class Solution: <NEW_LINE> <INDENT> def maxTree(self, A): <NEW_LINE> <INDENT> if not A: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> root_val = max(A) <NEW_LINE> A.append(math.inf) <NEW_LINE> val2node = self.copy_node(A) <NEW_LINE> mono_stack = collections.deque() <NEW_LINE> for i, num in enumerate(A): <NEW_LINE...
@param A: Given an integer array with no duplicates. @return: The root of max tree.
62598f89a4f1c619b294e13c
class Config: <NEW_LINE> <INDENT> dict = {} <NEW_LINE> @classmethod <NEW_LINE> def load(cls, file): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> with open(file) as json_file: <NEW_LINE> <INDENT> cls.dict = json.load(json_file) <NEW_LINE> json_file.close() <NEW_LINE> <DEDENT> <DEDENT> except (OSError, IOError): <NEW_LIN...
This class provides an access to data in the configuration file as a class variable, i.e. similar so a global variable - without havin to pass the configuration dictionary to all methods
62598f8926068e7796d4c4b3
class LinRecon(StdOutCommandLine): <NEW_LINE> <INDENT> _cmd = 'linrecon' <NEW_LINE> input_spec = LinReconInputSpec <NEW_LINE> output_spec = LinReconOutputSpec <NEW_LINE> def _list_outputs(self): <NEW_LINE> <INDENT> outputs = self.output_spec().get() <NEW_LINE> outputs['recon_data'] = os.path.abspath(self._gen_outfilena...
Runs a linear transformation in each voxel. Reads a linear transformation from the matrix file assuming the imaging scheme specified in the scheme file. Performs the linear transformation on the data in every voxel and outputs the result to the standard output. The ouput in every voxel is actually: :: [exit co...
62598f890a366e3fb87dc526
class MachineTypeViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = machines.MachineType.objects.all() <NEW_LINE> serializer_class = serializers.MachineTypeSerializer
Exposes list and details of `machines.models.MachineType` objects.
62598f89004d5f362081eda4
class BaseResultManager(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def __init__(self, port, key): <NEW_LINE> <INDENT> self.port = port <NEW_LINE> self.key = key <NEW_LINE> self.job_queue = None <NEW_LINE> self.result_queue = None <NEW_LINE> self.todo_counter = None <NEW_LINE> self.work_done_fla...
Baseclass for job distribution servers. User needs to implement the method process
62598f896fece00bbaccb4e0
class HttpListener(IListener): <NEW_LINE> <INDENT> logger = None <NEW_LINE> io_loop = None <NEW_LINE> protocol_factory = None <NEW_LINE> def __init__(self, host, min_port=8081, max_port=8084): <NEW_LINE> <INDENT> self.host = host <NEW_LINE> self.port = None <NEW_LINE> self.min_port = min_port <NEW_LINE> self.max_port =...
:type logger: L{ILogger} :type io_loop: L{tornado.ioloop.IOLoop} :type protocol_factory: L{pycloudia.activities.facades.tornado_impl.protocol.ProtocolFactory}
62598f8915baa72349461ad5
class CollectionsToolbar(ToolBar): <NEW_LINE> <INDENT> INFOCUS_Nothing = 0 <NEW_LINE> INFOCUS_Collections = 1 <NEW_LINE> INFOCUS_ModuleLibrary = 2 <NEW_LINE> INFOCUS_CollectionModules = 3 <NEW_LINE> __BUTTON_Text = 0 <NEW_LINE> __BUTTON_Image = 4 <NEW_LINE> __BUTTON_Tooltip = 5 <NEW_LINE> ButtonList = [["New", True, Fa...
Toolbar has New, Rename, Delete | MoveUp, MoveDown | Add Module
62598f8982261d6c5272fc80
class AmiciCxxCodePrinter(CXX11CodePrinter): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def doprint(self, expr: sp.Expr, assign_to: Optional[str] = None) -> str: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> code = super().doprint(expr, assign_to) <NEW_LINE> code =...
C++ code printer
62598f8996565a6dacd2cd23
class BiLSTM(Layer): <NEW_LINE> <INDENT> def __init__(self, units, dropout=0., **kwargs): <NEW_LINE> <INDENT> super(BiLSTM, self).__init__(**kwargs) <NEW_LINE> self.units = units <NEW_LINE> self.dropout = dropout <NEW_LINE> <DEDENT> def build(self, input_shape): <NEW_LINE> <INDENT> super(BiLSTM, self).build(input_shape...
Return the outputs and last_output
62598f89442bda511e95bfb3
class TestBidirectionalSearch(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> atlanta = pickle.load(open('atlanta_osm.pickle', 'rb')) <NEW_LINE> self.atlanta = ExplorableGraph(atlanta) <NEW_LINE> self.atlanta.reset_search() <NEW_LINE> romania = pickle.load(open('romania_graph.pickle', 'rb')...
Test the bidirectional search algorithms: UCS, A*
62598f89a05bb46b3848a3d1
class ListaComportamiento(Expr): <NEW_LINE> <INDENT> def __init__(self,condicion,instrucciones,numeroLinea): <NEW_LINE> <INDENT> self.type = "Lista de comportamientos" <NEW_LINE> self.condicion = condicion <NEW_LINE> self.instrucciones = instrucciones <NEW_LINE> self.numeroLinea = numeroLinea <NEW_LINE> self.sig = None
Lista de comportamiento del robot
62598f89498bea3a75a5767b
class _TransportBase(_Borg): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def open(self, port): <NEW_LINE> <INDENT> _logger.debug('opening dummy transport port={}'.format(port)) <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def re...
this will need to be a singleton
62598f8915baa72349461ad6
class Ping(description.MeasurementDescription): <NEW_LINE> <INDENT> def __init__(self, label, measurement_type='ping', duration=9, reptitions=3, repetition_gap=0, destinations=None, af=4, **kwargs): <NEW_LINE> <INDENT> kwargs['meas_type'] = measurement_type <NEW_LINE> kwargs['destinations'] = destinations <NEW_LINE> kw...
container class for ping measurement descriptions
62598f89a8ecb03325870d59
class RunSyncAssetResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Status = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Status = params.get("Status") <NEW_LINE> self.RequestId = params.get("RequestId")
RunSyncAsset返回参数结构体
62598f89fbf16365ca793c04
class Election(BASE): <NEW_LINE> <INDENT> __tablename__ = 'election' <NEW_LINE> id = S.Column(S.Integer, primary_key=True) <NEW_LINE> key = S.Column(S.String(255), nullable=False, unique=True) <NEW_LINE> name = S.Column(S.String(255), nullable=True) <NEW_LINE> created_at = S.Column(S.DateTime, default=S.func.now()) <NE...
Election Schema - build and synced from meta repository. Attributes: - key: slugified directory name from election meta. - name: name of the election synced from election meta. - created_at: descriptive attributes Relationships: - ballots: Election has many Ballot - voters: Election has many Voter...
62598f89d6c5a102081e1c99
class Ray: <NEW_LINE> <INDENT> def __new__(cls, *args): <NEW_LINE> <INDENT> from .plane import Ray2 <NEW_LINE> from .space import Ray3 <NEW_LINE> return create(Ray2, Ray3, embedding_from(args), args)
A generic constructor that chooses the correct variant of :py:`~petrify.plane.Ray2` or :py:`~petrify.space.Ray3` based on the embedding of the passed arguments: >>> Ray(Point(0, 0), Vector(1, 0)) Ray(Point(0, 0), Vector(1, 0)) >>> Ray(Point(0, 0, 0), Vector(1, 0, 0)) Ray(Point(0, 0, 0), Vector(1, 0, 0)) >>> Ray(Point(...
62598f89507cdc57c63a48e6
class ShowDeviceShadowResponse(SdkResponse): <NEW_LINE> <INDENT> sensitive_list = [] <NEW_LINE> openapi_types = { 'device_id': 'str', 'shadow': 'list[DeviceShadowData]' } <NEW_LINE> attribute_map = { 'device_id': 'device_id', 'shadow': 'shadow' } <NEW_LINE> def __init__(self, device_id=None, shadow=None): <NEW_LINE> <I...
Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition.
62598f89d6c5a102081e1c9a
class ADSMapper: <NEW_LINE> <INDENT> def __init__( self, plcAddress: int, plcDataType: int, guiObjects: List[HMIObject], hint: str = None, ) -> None: <NEW_LINE> <INDENT> self.hint = hint <NEW_LINE> self.plcAdr = plcAddress <NEW_LINE> self.plcDataType = plcDataType <NEW_LINE> self.currentValue: VALUE_TYPE = None <NEW_LI...
Mapper for the ADS protocol. Objects of this class represent a plc process value. The class accomblishes a connection between plc and the gui. For implementing the interaction between gui objects and plc values subclass and implement mapAdsToGui according to the given examples. :param int plcAddress: plc address :par...
62598f8930dc7b766599f3b0
class UpdateUserLandmark(APIView): <NEW_LINE> <INDENT> def patch(self, request, *args, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> photo_url = request.query_params.get('photo_url') <NEW_LINE> user_landmark = UserLocations.objects.filter(locations_id=kwargs["landmark_pk"], users_id=kwargs["user_pk"])[0] <NEW...
Update user photo for a landmark
62598f899b70327d1c57e8f5
class DatadogHTTPClient(object): <NEW_LINE> <INDENT> _POST = "POST" <NEW_LINE> if DD_USE_COMPRESSION: <NEW_LINE> <INDENT> _HEADERS = {"Content-type": "application/json", "Content-Encoding": "gzip"} <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> _HEADERS = {"Content-type": "application/json"} <NEW_LINE> <DEDENT> def __in...
Client that sends a batch of logs over HTTP.
62598f893cc13d1c6d4652bf