code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class CsvCorpus(interfaces.CorpusABC): <NEW_LINE> <INDENT> def __init__(self, fname, labels): <NEW_LINE> <INDENT> logger.info("loading corpus from %s" % fname) <NEW_LINE> self.fname = fname <NEW_LINE> self.length = None <NEW_LINE> self.labels = labels <NEW_LINE> head = ''.join(itertools.islice(open(self.fname), 5)) <NE...
Corpus in CSV format. The CSV delimiter, headers etc. are guessed automatically based on the file content. All row values are expected to be ints/floats.
62598f8c15fb5d323ce7e8e5
class TestAuthorization(flask_testing.TestCase): <NEW_LINE> <INDENT> def create_app(self): <NEW_LINE> <INDENT> app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///test_bucketlist_models.sqlite" <NEW_LINE> app.config['TESTING'] = True <NEW_LINE> app.config['PRESERVE_CONTEXT_ON_EXCEPTION'] = False <NEW_LINE> re...
Tests for authorization module
62598f8ca17c0f6771d5bdfb
class LoadBalancerFrontendIPConfigurationListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[FrontendIPConfiguration]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__...
Response for ListFrontendIPConfiguration API service call. Variables are only populated by the server, and will be ignored when sending a request. :param value: A list of frontend IP configurations in a load balancer. :type value: list[~azure.mgmt.network.v2018_06_01.models.FrontendIPConfiguration] :ivar next_link: T...
62598f8cf8510a7c17d7df53
class FakeArticle(): <NEW_LINE> <INDENT> def __init__(self, settings, metadata, title, description, url, date, content, author, category): <NEW_LINE> <INDENT> self.settings = settings <NEW_LINE> self.metadata = metadata <NEW_LINE> self.title = title <NEW_LINE> self.description = description <NEW_LINE> self.url = url <N...
Mock Pelican Article object.
62598f8c63b5f9789fe84d2b
class CaseSensitiveConfigParser(SafeConfigParser): <NEW_LINE> <INDENT> def optionxform(self, optionstr): <NEW_LINE> <INDENT> return optionstr
Subclass the SafeConfigParser - to preserve the original string case of the cfg section names - NB, the RawConfigParser default is to lowercase these by default
62598f8c10dbd63aa1c70771
class MonitoringTagRulesListResponse(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[MonitoringTagRules]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["MonitoringTagRules"]] = None, next_link: Optional...
Response of a list operation. :param value: Results of a list operation. :type value: list[~microsoft_datadog_client.models.MonitoringTagRules] :param next_link: Link to the next set of results, if any. :type next_link: str
62598f8c596a897236127830
class GsCheckoutNewBranchCommand(WindowCommand, GitCommand): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> sublime.set_timeout_async(self.run_async) <NEW_LINE> <DEDENT> def run_async(self): <NEW_LINE> <INDENT> self.window.show_input_panel(NEW_BRANCH_PROMPT, "", self.on_done, None, None) <NEW_LINE> <DEDENT> def...
Prompt the user for a new branch name, create it, and check it out.
62598f8c23e79379d538c0b9
class MQTTState(Enum): <NEW_LINE> <INDENT> IDLE = 0 <NEW_LINE> WAITING_FOR_DATA = 1 <NEW_LINE> PUBLISHING = 2 <NEW_LINE> QUEUING = 3
classdocs
62598f8cb57a9660fecd1637
class Config(object): <NEW_LINE> <INDENT> n_features = 36 <NEW_LINE> n_classes = 3 <NEW_LINE> dropout = 0.5 <NEW_LINE> embed_size = 50 <NEW_LINE> hidden_size = 200 <NEW_LINE> batch_size = 2048 <NEW_LINE> n_epochs = 10 <NEW_LINE> lr = 0.001
Holds model hyperparams and data information. The config class is used to store various hyperparameters and dataset information parameters. Model objects are passed a Config() object at instantiation.
62598f8c097d151d1a2c0be1
class OneHotEncoder(mx.gluon.HybridBlock): <NEW_LINE> <INDENT> def __init__(self, depth: int, **kwargs): <NEW_LINE> <INDENT> super().__init__(prefix=kwargs.get('prefix'), params=None) <NEW_LINE> self.depth = depth <NEW_LINE> <DEDENT> def hybrid_forward(self, module, indices: mx.np.ndarray, *args, **kwargs) -...
One-hot encoder class. It is implemented as a functor for more convenience, to pass it as a detached embedding layer. Parameters ---------- depth : int The depth of one-hot encoding.
62598f8c50485f2cf55dab30
class ConnectionError(Error): <NEW_LINE> <INDENT> pass
Could not connect to remote host.
62598f8c8da39b475be02d98
class Camera(): <NEW_LINE> <INDENT> def __init__(self, image_width=DEFAULT_IMAGE_WIDTH,image_height=DEFAULT_IMAGE_HEIGHT,save_directory=DEFAULT_SAVE_DIRECTORY): <NEW_LINE> <INDENT> self.image_width = image_width <NEW_LINE> self.image_height = image_height <NEW_LINE> self.save_directory = save_directory <NEW_LINE> <DEDE...
This class represents the camera object. It includes all camera settings and functions
62598f8cd53ae8145f918047
class HistList(object): <NEW_LINE> <INDENT> def __init__(self, hists=None, bin_flag=True): <NEW_LINE> <INDENT> if hists is not None: <NEW_LINE> <INDENT> self.hists = np.array(hists) <NEW_LINE> self.num_hists = len(hists) <NEW_LINE> self.confirmEqSpecies() <NEW_LINE> if bin_flag is True: <NEW_LINE> <INDENT> HistList.reb...
A collection of histogram.Hist() instances Mannages array of histogram.Hist() instances and confirms that several parameters, like bin bounds (bin_bounds), dimension (dim_hists), are the same for all Hist(). Attributes: hists: array of Hist() instances num_hists: number of Hist() instances dim_hist...
62598f8c7b25080760ed7065
class HelpIntentHandler(AbstractRequestHandler): <NEW_LINE> <INDENT> def can_handle(self, handler_input): <NEW_LINE> <INDENT> return is_intent_name("AMAZON.HelpIntent")(handler_input) <NEW_LINE> <DEDENT> def handle(self, handler_input): <NEW_LINE> <INDENT> logger.info("In HelpIntentHandler") <NEW_LINE> handler_input.at...
Handler for help intent.
62598f8c55399d3f056260d5
class Ability: <NEW_LINE> <INDENT> def __init__(self, name, cooldown=0): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.cooldown = cooldown <NEW_LINE> self.delay = 0 <NEW_LINE> <DEDENT> @property <NEW_LINE> def ready(self): <NEW_LINE> <INDENT> return self.delay == 0 <NEW_LINE> <DEDENT> def activate(self): <NEW_LI...
An in-game ability.
62598f8ce76e3b2f99fd85eb
class Smolders(Surface): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> Surface.__init__(self, **kwargs) <NEW_LINE> self.buffer = Surface(surface=self) <NEW_LINE> self.bottom_points = [x for x in range(0, self.width)] <NEW_LINE> <DEDENT> def randomize_bottom(self): <NEW_LINE> <INDENT> for x in se...
this pattern displays a fire. like of pattern. based upon: http://lodev.org/cgtutor/fire.html
62598f8cac7a0e7691f720c5
class Slicer(object): <NEW_LINE> <INDENT> def __getitem__(self, slice_): <NEW_LINE> <INDENT> return operator.itemgetter(slice_)
Slice()[start:stop:end] == slice(start, stop, end)
62598f8c45492302aabfc090
class TopicAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> fieldsets = [ (None, {'fields': ['topic_name']}), ('Information', {'fields': ['topic_description']}), ] <NEW_LINE> inlines = [TaskInline]
Admin-Tool for Topics.
62598f8c50485f2cf55dab31
class TestChecker(unittest.TestCase): <NEW_LINE> <INDENT> def test_collection(self): <NEW_LINE> <INDENT> dc = trb.DummyChecker() <NEW_LINE> expected = {dc.check_dummy, dc.check_trouble_one, dc.check_trouble_two} <NEW_LINE> self.assertEqual(expected, set(dc.checks)) <NEW_LINE> <DEDENT> def test_running_all(self): <NEW_L...
Tests for the Checker abstract class.
62598f8c6fb2d068a7693c0d
class INVBANKTRAN(Aggregate): <NEW_LINE> <INDENT> stmttrn = SubAggregate(STMTTRN, required=True) <NEW_LINE> subacctfund = OneOf(*INVSUBACCTS, required=True)
OFX section 13.9.2.3
62598f8c8e71fb1e983bb66c
class AddTagsDialog(DialogContainer): <NEW_LINE> <INDENT> save_button_clicked = pyqtSignal(QModelIndex, list) <NEW_LINE> suggestions_loaded = pyqtSignal() <NEW_LINE> def __init__(self, parent: QWidget, infohash: str) -> None: <NEW_LINE> <INDENT> DialogContainer.__init__(self, parent, left_right_margin=400) <NEW_LINE> s...
This dialog enables a user to add new tags to/remove existing tags from content.
62598f8cb7558d58954631ef
class JwtInvalidTokenError(Error): <NEW_LINE> <INDENT> def __init__(self, jwt_exception, *args, token_key=None): <NEW_LINE> <INDENT> if len(args) == 0: <NEW_LINE> <INDENT> super().__init__( '{jwt_exc_class}({jwt_exc_msg})'.format( jwt_exc_class=jwt_exception.__class__.__name__, jwt_exc_msg=str(jwt_exception) ) ) <NEW_L...
Exception raised for invalid or missing JSON Web Token data. This exception class is raised during :meth:`AuthService.decodeJwt` processing and wraps exceptions from the underlying :mod:`PyJwt <jwt>` framework. .. attribute:: jwt_exception :type: Exception Original exception raised by :func:`jwt.decode` .. ...
62598f8cdd821e528d6d8af3
class RecentKospiOHLCV(models.Model): <NEW_LINE> <INDENT> date = models.CharField(max_length=10) <NEW_LINE> code = models.ForeignKey(Ticker, on_delete=models.CASCADE, related_name='r_kp_ohlcv') <NEW_LINE> open_price = models.FloatField() <NEW_LINE> high_price = models.FloatField() <NEW_LINE> low_price = models.FloatFie...
- description: Recent 5 years of KOSPI OHLCV data renewed from KospiOHLCV everyday - period: - - data: (date, code, open_price, high_price, low_price, close_price, volume) - url: /stock-api/recent-kospi/
62598f8cf8510a7c17d7df54
class BleachTextField(models.TextField, BleachMixin): <NEW_LINE> <INDENT> def __init__(self, allowed_tags=None, allowed_attributes=None, allowed_styles=None, strip_tags=None, strip_comments=None, *args, **kwargs): <NEW_LINE> <INDENT> super(BleachTextField, self).__init__(*args, **kwargs) <NEW_LINE> self._do_init(allowe...
Bleach TextField
62598f8c16aa5153ce4000c0
class CollectionOut(PipelineOut): <NEW_LINE> <INDENT> def __init__(self, pipeline, callback, options): <NEW_LINE> <INDENT> super(CollectionOut, self).__init__(pipeline) <NEW_LINE> self._log('CollectionOut.init') <NEW_LINE> self._callback = callback <NEW_LINE> self._options = options <NEW_LINE> self._collector = Collect...
Output object for when processor results are being returned as a collection. Parameters ---------- pipeline : Pipeline A reference to the calling Pipeline instance. callback : function or None Will either be a function that the collector callback will pass things to or None which will pass the results back...
62598f8c596a897236127832
class FindNodeTask(object): <NEW_LINE> <INDENT> def __init__(self, proto, targetid, via_node=None, timeout=k_request_timeout, callback=None): <NEW_LINE> <INDENT> assert isinstance(proto, KademliaProtocol) <NEW_LINE> assert is_integer(targetid) <NEW_LINE> assert not via_node or isinstance(via_node, Node) <NEW_LINE> self...
initiating a find_node and the consulting the buckets via neighbours() does not return the find_node result, as these first need to be pinged and might not end up in the bucket
62598f8c004d5f362081edd7
class TriangularProbabilityDistribution(object): <NEW_LINE> <INDENT> def __init__(self, a=0, b=1, c=0.5): <NEW_LINE> <INDENT> self.a = a <NEW_LINE> self.b = b <NEW_LINE> self.c = c <NEW_LINE> <DEDENT> def eval_pdf(self, x): <NEW_LINE> <INDENT> if x < self.a: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> elif x < sel...
Formulas for calculating the pdf and the cdf of a triangular probability distribution
62598f8c07f4c71912baf001
class SupranationalWorldmap(Worldmap): <NEW_LINE> <INDENT> x_labels = list(SUPRANATIONAL.keys()) <NEW_LINE> def enumerate_values(self, serie): <NEW_LINE> <INDENT> for i, (code, value) in enumerate(serie.values): <NEW_LINE> <INDENT> for subcode in SUPRANATIONAL.get(code, []): <NEW_LINE> <INDENT> yield i, (subcode, value...
SupranationalWorldmap graph
62598f8cfbf16365ca793c6a
class PowerLawCD(BaseCDModel): <NEW_LINE> <INDENT> def __init__(self, n, r0, t0, rx, tx, r, t, alpha): <NEW_LINE> <INDENT> n = int(n) <NEW_LINE> x, y = np.meshgrid(np.arange(2 * n + 1) - n, np.arange(2 * n + 1) - n) <NEW_LINE> a_l = np.zeros((2 * n + 1, 2 * n + 1), dtype=np.float64) <NEW_LINE> a_r = np.zeros((2 * n + 1...
Class for parametrizing charge deflection coefficient strengths as a power law in distance from affected pixel border.
62598f8c0c0af96317c55f48
class InitSystem(): <NEW_LINE> <INDENT> def __init__(self, init_cmd=None, list_cmd=None, query_cmd=None, chroot=None): <NEW_LINE> <INDENT> self.services = {} <NEW_LINE> self.init_cmd = init_cmd <NEW_LINE> self.list_cmd = "%s %s" % (self.init_cmd, list_cmd) or None <NEW_LINE> self.query_cmd = "%s %s" % (self.init_cmd, q...
Encapsulates an init system to provide service-oriented functions to sos. This should be used to query the status of services, such as if they are enabled or disabled on boot, or if the service is currently running. :param init_cmd: The binary used to interact with the init system :type init_cmd: ``str`` :param list...
62598f8ce76e3b2f99fd85ec
class FluentHandler(logging.Handler): <NEW_LINE> <INDENT> def __init__(self, tag, host='localhost', port=24224, timeout=3.0, verbose=False): <NEW_LINE> <INDENT> self.tag = tag <NEW_LINE> self.sender = sender.FluentSender(tag, host=host, port=port, timeout=timeout, verbose=verbose) <NEW_LINE> logging.Handler.__init__(se...
Logging Handler for fluent.
62598f8c442bda511e95c01a
class SandBoxBlock(FlatBlock): <NEW_LINE> <INDENT> def __init__(self, position, dimensions, rotation, texture, collision_reward=0.0, movable=False, linked_block=None, friction=0.5, visible=True): <NEW_LINE> <INDENT> if friction == 1.0: <NEW_LINE> <INDENT> raise ValueError('SandBoxBlock must have a friction < 1.0, i.e t...
SandBox Blocks are flat, crossable and have a low friction coefficient
62598f8c38b623060ffa8c52
class DoubleConv(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.double_conv = nn.Sequential( nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1, padding_mode="replicate"), nn.BatchNorm2d(out_channels), nn.ReLU(inplace=True...
(convolution => [BN] => ReLU) * 2
62598f8c435de62698e9b9ab
class GUI: <NEW_LINE> <INDENT> def __init__(self, control): <NEW_LINE> <INDENT> self.__control = control <NEW_LINE> self.__control.set_receive_interface_update_func(self.update_message_list) <NEW_LINE> self.__control.set_error_handler_func(self.error_handler) <NEW_LINE> self.__top = tkinter.Tk() <NEW_LINE> self.__top.t...
GUI class for simple chat program based on Tkinter module
62598f8c50485f2cf55dab32
class spline_return: <NEW_LINE> <INDENT> def __init__(self, tck): <NEW_LINE> <INDENT> self.tck = tck <NEW_LINE> <DEDENT> def __call__(self, xnew): <NEW_LINE> <INDENT> return interpolate.splev(xnew, self.tck, der=0)
This is the class that controls the use of scipys interpolate splev should only be used via the interp1d function :param tck: result of interpolate.splrep(x, y, s=0)
62598f8ce76e3b2f99fd85ed
@gin.configurable <NEW_LINE> class GinConfigLoggerHook(tf_estimator.SessionRunHook): <NEW_LINE> <INDENT> def __init__(self, only_once=True): <NEW_LINE> <INDENT> self._only_once = only_once <NEW_LINE> self._written_at_least_once = False <NEW_LINE> <DEDENT> def after_create_session(self, session=None, coord=None): <NEW_L...
A SessionRunHook that logs the operative config to stdout.
62598f8cb5575c28eb712aa8
class Command(BaseCommand): <NEW_LINE> <INDENT> help = 'This command imports the content of a monolingual .dix file.' <NEW_LINE> def add_arguments(self, parser): <NEW_LINE> <INDENT> parser.add_argument('-f', '--file', type=str, help='The .DIX file containing the translations.', ) <NEW_LINE> parser.add_argument('-l', '-...
Example: python manage.py import_mono_dix -f ../apertium-fin -l fin
62598f8c8e71fb1e983bb66e
class LanguageIsEmptySetException(Exception): <NEW_LINE> <INDENT> pass
Raised when the input language results in a set that is not rankable.
62598f8c3c8af77a43b67d15
class CountTest(unittest.TestCase): <NEW_LINE> <INDENT> def _test_count_func(self, func): <NEW_LINE> <INDENT> self.assertEqual(next(func(1)), 1) <NEW_LINE> self.assertEqual(next(func(start=1)), 1) <NEW_LINE> c = func() <NEW_LINE> self.assertEqual(next(c), 0) <NEW_LINE> self.assertEqual(next(c), 1) <NEW_LINE> self.asser...
Test the count function.
62598f8cc432627299fa2b89
class ftrl_proximal(object): <NEW_LINE> <INDENT> def __init__(self, alpha, beta, L1, L2, D, interaction): <NEW_LINE> <INDENT> self.alpha = alpha <NEW_LINE> self.beta = beta <NEW_LINE> self.L1 = L1 <NEW_LINE> self.L2 = L2 <NEW_LINE> self.D = D <NEW_LINE> self.interaction = interaction <NEW_LINE> self.n = [0.] * D <NEW_L...
Our main algorithm: Follow the regularized leader - proximal In short, this is an adaptive-learning-rate sparse logistic-regression with efficient L1-L2-regularization Reference: http://www.eecs.tufts.edu/~dsculley/papers/ad-click-prediction.pdf
62598f8cdd821e528d6d8af4
class TrainingFormView(FormView): <NEW_LINE> <INDENT> template_name = 'bang/training_form.html' <NEW_LINE> form_class = TrainingForm <NEW_LINE> success_url = '/bang/training/' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super().get_context_data(**kwargs) <NEW_LINE> context['location']...
API endpoint that allows an employee form to be viewed and edited.
62598f8ca17c0f6771d5bdff
class CommunityResolver(RecordResolver): <NEW_LINE> <INDENT> type_id = 'community' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__( Community, type_key=self.type_id, proxy_cls=CommunityPKProxy) <NEW_LINE> <DEDENT> def _reference_entity(self, entity): <NEW_LINE> <INDENT> return {self.type_key: str(en...
Community entity resolver. The entity resolver enables Invenio-Requests to understand communities as receiver and topic of a request.
62598f8c63b5f9789fe84d2f
class VaultResponseType(BaseSEVDObject): <NEW_LINE> <INDENT> xml_element = 'VaultResponse' <NEW_LINE> xml_children = [ SEVDChild('Response', 'response', ResponseType), SEVDChild('GUID', 'guid'), SEVDChild('ExpirationDate', 'expiration_date'), SEVDChild('Last4', 'last4'), SEVDChild('PaymentDescription', 'payment_descrip...
<xs:complexType name="VaultResponseType"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="Response" type="ResponseType"/> <xs:element minOccurs="0" maxOccurs="1" name="GUID" type="xs:string"/> <xs:element minOccurs="0" maxOccurs="1" name="ExpirationDate" type="xs:string"/> ...
62598f8c5f7d997b871f91b7
class TestFeaturesFeed(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return FeaturesFeed( titl...
FeaturesFeed unit test stubs
62598f8cfbf16365ca793c6c
class SelectorBIC(ModelSelector): <NEW_LINE> <INDENT> def select(self): <NEW_LINE> <INDENT> warnings.filterwarnings("ignore", category=DeprecationWarning) <NEW_LINE> bestBIC = float("inf") <NEW_LINE> best_n = None <NEW_LINE> for n in range(self.min_n_components, self.max_n_components + 1): <NEW_LINE> <INDENT> try: <NEW...
select the model with the lowest Bayesian Information Criterion(BIC) score http://www2.imm.dtu.dk/courses/02433/doc/ch6_slides.pdf Bayesian information criteria: BIC = -2 * logL + p * logN L = likelihood of the fitted model p = number of paramaters N = number of data points The lower the value the better the model.
62598f8c442bda511e95c01c
class RelaxedBernoulli(TransformedDistribution): <NEW_LINE> <INDENT> arg_constraints = {'probs': constraints.unit_interval} <NEW_LINE> support = constraints.unit_interval <NEW_LINE> has_rsample = True <NEW_LINE> def __init__(self, temperature, probs=None, logits=None, validate_args=None): <NEW_LINE> <INDENT> super(Rela...
Creates a RelaxedBernoulli distribution, parametrized by `temperature`, and either `probs` or `logits`. This is a relaxed version of the `Bernoulli` distribution, so the values are in (0, 1), and has reparametrizable samples. Example:: >>> m = RelaxedBernoulli(torch.Tensor([2.2]), tor...
62598f8c38b623060ffa8c54
class ChkFileParser(): <NEW_LINE> <INDENT> def __init__(self,all_tables_names,left_side_db,right_side_db,file_content): <NEW_LINE> <INDENT> self.all_tables_names = all_tables_names <NEW_LINE> self.file_content = file_content <NEW_LINE> self.left_side_db = left_side_db <NEW_LINE> self.right_side_db = right_si...
Main class to get a filename and file content and translate that into a rule list, later to be matched to the right table
62598f8c4e696a045264dbe4
class RandomSymbol(Symbol): <NEW_LINE> <INDENT> is_bounded=True <NEW_LINE> is_finite=True <NEW_LINE> def __new__(cls, *args): <NEW_LINE> <INDENT> obj = Basic.__new__(cls) <NEW_LINE> obj.pspace = args[0] <NEW_LINE> obj.symbol = args[1] <NEW_LINE> return obj <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_L...
Random Symbols represent ProbabilitySpaces in SymPy Expressions In principle they can take on any value that their symbol can take on within the associated PSpace with probability determined by the PSpace Density. Random Symbols contain pspace and symbol properties. The pspace property points to the represented Probab...
62598f8c21a7993f00c65b35
class Member(models.Model): <NEW_LINE> <INDENT> clan = models.ForeignKey(Clan, on_delete = models.CASCADE) <NEW_LINE> member_id = models.CharField(unique=True, max_length = 20) <NEW_LINE> name = models.CharField(blank=False, null=False, max_length = 16) <NEW_LINE> date_joined = models.DateTimeField() <NEW_LINE> members...
Data about individual clan members, like join date, member_id, and name. Each member has clan_id as a foreign key. Doesn't include game stats.
62598f8ccad5886f8bdc4e6b
class _RLlibPreprocessorWrapper(gym.ObservationWrapper): <NEW_LINE> <INDENT> def __init__(self, env, preprocessor): <NEW_LINE> <INDENT> super(_RLlibPreprocessorWrapper, self).__init__(env) <NEW_LINE> self.preprocessor = preprocessor <NEW_LINE> self.observation_space = preprocessor.observation_space <NEW_LINE> <DEDENT> ...
Adapts a RLlib preprocessor for use as an observation wrapper.
62598f8c596a897236127835
class ResumeCritiqueView(ResumeViewMixin, FormView): <NEW_LINE> <INDENT> form_class = ResumeCritiqueFormSet <NEW_LINE> success_url = reverse_lazy('resumes:critique') <NEW_LINE> template_name = 'resumes/critique.html' <NEW_LINE> def get_form(self, form_class): <NEW_LINE> <INDENT> formset = super(ResumeCritiqueView, self...
List all resumes awaiting critique and allow for checking them off.
62598f8c07d97122c4216867
class Messages(Base): <NEW_LINE> <INDENT> __tablename__ = 'messages' <NEW_LINE> message_id = Column(Integer, primary_key=True) <NEW_LINE> from_user_id = Column(Integer, ForeignKey('users.user_id')) <NEW_LINE> to_user_id = Column(Integer, ForeignKey('users.user_id')) <NEW_LINE> message_datetime = Column(DateTime) <NEW_L...
Messages holds the messages to users from moderators and/or subscribers, as well as the users response messages.
62598f8c097d151d1a2c0be5
class SearchPage(tk.Frame): <NEW_LINE> <INDENT> def __init__(self, parent, controller): <NEW_LINE> <INDENT> tk.Frame.__init__(self, parent) <NEW_LINE> self.controller = controller <NEW_LINE> self.title = "SubHunt | Find Part Info" <NEW_LINE> self.container = tk.Frame(self) <NEW_LINE> self.container.grid(column=0, row=0...
Displays a GUI allowing users to search the database for a given record and display data for that record.
62598f8cfb3f5b602db47f90
class CustomerForm(Form): <NEW_LINE> <INDENT> first_name = StringField('first_name') <NEW_LINE> last_name = StringField('last_name') <NEW_LINE> cellphone = StringField('cellphone') <NEW_LINE> newsletter = BooleanField('newsletter')
Basic form representing a Customer
62598f8c462c4b4f79dbb5c1
class ServiceTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.root = tempfile.mkdtemp() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> if self.root and os.path.isdir(self.root): <NEW_LINE> <INDENT> shutil.rmtree(self.root) <NEW_LINE> <DEDENT> <DEDENT> @mock.patch('trea...
Mock test for treadmill.s6.services.Service.
62598f8cd53ae8145f918049
class NavMenuBars(UpperMenu): <NEW_LINE> <INDENT> _model = m_navpage.NavMenuBarsModel <NEW_LINE> _label = 'main page - menu bar' <NEW_LINE> _required_elems = copy.deepcopy(UpperMenu._required_elems) <NEW_LINE> _required_elems.extend([ 'clusters_link', 'nodes_link', 'alerts_link', 'admin_link' ]) <NEW_LINE> def open_clu...
Common page object for navigation bars: - left navigation menu bar (with links to other pages) - top navigation menu bar (with icons for popup menus) Atributes: _model - page model _label - human readable description of this *page object* _required_elems - web elements to be checked
62598f8c8e7ae83300ee8c5f
class NSNitroNserrBindBdggroupSyncvlan(NSNitroLbErrors): <NEW_LINE> <INDENT> pass
Nitro error code 1428 Sync vlan cannot be bound to bridgegroup
62598f8c656771135c48923a
@attrs.define <NEW_LINE> class ClientWithValuePrecedence: <NEW_LINE> <INDENT> service: ServiceWithValuesPrecedence <NEW_LINE> def get_value_attrib1(self) -> ValueType: <NEW_LINE> <INDENT> return self.service.get_value_attrib1() <NEW_LINE> <DEDENT> def get_value_attrib2(self) -> ValueType: <NEW_LINE> <INDENT> return sel...
Value injection and precedence
62598f8c4428ac0f6e6580e3
class XMLid(object): <NEW_LINE> <INDENT> def __init__(self, lafapi, kind): <NEW_LINE> <INDENT> env = lafapi.names.env <NEW_LINE> self.kind = kind <NEW_LINE> data_items = lafapi.data_items <NEW_LINE> label = Names.comp('mX' + kind + 'f', ()) <NEW_LINE> rlabel = Names.comp('mX' + kind + 'b', ()) <NEW_LINE> alabels = [Nam...
Mappings between XML identifiers in original LAF resource and integers identifying nodes and edges in compiled data. ``r(node or edge int) = xml identifier`` and ``i(xml identifier) = node or edge int``.
62598f8c0fa83653e46f4aad
class HttpResponse(object): <NEW_LINE> <INDENT> def __init__(self, status): <NEW_LINE> <INDENT> self._headers = {} <NEW_LINE> self._status = status <NEW_LINE> self._add_server_header() <NEW_LINE> self._add_date_header() <NEW_LINE> <DEDENT> def _add_server_header(self): <NEW_LINE> <INDENT> self.add_header('Server', 'Meg...
HttpResponse
62598f8c8e71fb1e983bb66f
class Behaviourpoint: <NEW_LINE> <INDENT> def __init__(self,teacher,student,points,reason): <NEW_LINE> <INDENT> self.teacher = teacher <NEW_LINE> self.student = student <NEW_LINE> self.points = int(points) <NEW_LINE> self.reason = reason
A sample behaviour point
62598f8c45492302aabfc094
class NormalSVD(LinearRegression): <NEW_LINE> <INDENT> def __init__(self, reglambda = 0.): <NEW_LINE> <INDENT> self.reglambda = reglambda <NEW_LINE> <DEDENT> def getWeights(self, x, y): <NEW_LINE> <INDENT> U,Sig,V = numpy.linalg.svd(x.T) <NEW_LINE> D = numpy.zeros(x.shape) <NEW_LINE> D[:len(Sig),:len(Sig)] += numpy.dia...
Linear regression using the normal equation by SVD with regularization.
62598f8c0383005118f6d2b8
class MenuItem(object): <NEW_LINE> <INDENT> def __init__(self, title, items): <NEW_LINE> <INDENT> self._title = title <NEW_LINE> self._items = items <NEW_LINE> self._refresh = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def title(self): <NEW_LINE> <INDENT> return self._title <NEW_LINE> <DEDENT> @property <NEW_LINE> d...
A single menu item which can contain child menu items
62598f8c3539df3088ecbe7a
class HashID(object): <NEW_LINE> <INDENT> def __init__(self, prototypes=prototypes): <NEW_LINE> <INDENT> super(HashID, self).__init__() <NEW_LINE> self.prototypes = list(prototypes) <NEW_LINE> <DEDENT> def identifyHash(self, phash): <NEW_LINE> <INDENT> phash = phash.strip() <NEW_LINE> for prototype in self.prototypes: ...
HashID with configurable prototypes
62598f8c004d5f362081edd9
class StatusView(View): <NEW_LINE> <INDENT> def dispatch_request(self): <NEW_LINE> <INDENT> response = { 'commit': self.commit, 'python_version': self.python_version, 'platform_info': self.platform_info, 'modules': self.modules, 'api_version': self.api_version } <NEW_LINE> return jsonify(response) <NEW_LINE> <DEDENT> d...
A view that returns status JSON.
62598f8da8ecb03325870dc2
class Client(with_metaclass(_Singleton)): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> host = os.getenv('STATSD_HOST', 'localhost') <NEW_LINE> port = int(os.getenv('STATSD_PORT', '8125')) <NEW_LINE> prefix = os.getenv('STATSD_PREFIX', "") <NEW_LINE> self.client = _StatsClient(host, port, prefix=prefix) <...
Singleton wrapper around _StatsClient. API matches that of the one-liner API to support use-cases where object references need to be shared.
62598f8d507cdc57c63a494f
class Layer(object): <NEW_LINE> <INDENT> def __init__( self, type, warning=None, name=None, units=None, pieces=None, weight_decay=None, dropout=None): <NEW_LINE> <INDENT> assert warning is None, "Specify layer parameters as keyword arguments, not positional arguments." <NEW_LINE> if type not in ['Rectifier',...
Specification for a layer to be passed to the neural network during construction. This includes a variety of parameters to configure each layer based on its activation type. Parameters ---------- type: str Select which activation function this layer should use, as a string. Specifically, options are ``Recti...
62598f8db57a9660fecd163d
class TraintupleSpec(_Spec): <NEW_LINE> <INDENT> algo_key: str <NEW_LINE> data_manager_key: str <NEW_LINE> train_data_sample_keys: List[str] <NEW_LINE> in_models_keys: Optional[List[str]] <NEW_LINE> tag: Optional[str] <NEW_LINE> compute_plan_key: Optional[str] <NEW_LINE> rank: Optional[int] <NEW_LINE> metadata: Optiona...
Specification for creating a traintuple
62598f8d4e696a045264dbe5
class CSVReader: <NEW_LINE> <INDENT> def __init__(self, f, dialect=csv.excel, encoding='utf-8', **kwds): <NEW_LINE> <INDENT> f = CSVRecoder(f, encoding) <NEW_LINE> self.reader = csv.reader(f, dialect=dialect, **kwds) <NEW_LINE> <DEDENT> def next(self): <NEW_LINE> <INDENT> row = self.reader.next() <NEW_LINE> return [to_...
A CSV reader which will iterate over lines in the CSV file "f", which is encoded in the given encoding.
62598f8d21a7993f00c65b37
@tf_export( 'keras.layers.InputSpec', v1=['keras.layers.InputSpec', 'layers.InputSpec']) <NEW_LINE> class InputSpec(object): <NEW_LINE> <INDENT> def __init__(self, dtype=None, shape=None, ndim=None, max_ndim=None, min_ndim=None, axes=None): <NEW_LINE> <INDENT> self.dtype = dtype <NEW_LINE> self.shape = shape <NEW_LINE>...
Specifies the ndim, dtype and shape of every input to a layer. Every layer should expose (if appropriate) an `input_spec` attribute: a list of instances of InputSpec (one per input tensor). A None entry in a shape is compatible with any dimension, a None shape is compatible with any shape. Arguments: dtype: Expe...
62598f8d76d4e153a661c7d7
class Circle(object): <NEW_LINE> <INDENT> def __init__(self,center,radius): <NEW_LINE> <INDENT> self.center = center <NEW_LINE> self.radius = radius <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return self.center == other.center and self.radius == other.radius <NEW_LINE> <DEDENT> def __str__(self): ...
A Circle represented by center Coordinates, and a radius in kilometres ==========
62598f8df7d966606f747b9e
class InterruptableScreenMixin: <NEW_LINE> <INDENT> paused = True <NEW_LINE> def pause(self): <NEW_LINE> <INDENT> if not self.paused: <NEW_LINE> <INDENT> self.paused = True <NEW_LINE> self.onPause() <NEW_LINE> <DEDENT> <DEDENT> def resume(self): <NEW_LINE> <INDENT> if self.paused: <NEW_LINE> <INDENT> self.paused = Fals...
A mixin that allows the screen to be paused and resumed when shifting from active -> inactive and back.
62598f8d0a50d4780f704f8f
class MissingValueImputation: <NEW_LINE> <INDENT> @validated() <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __call__(self, values: np.ndarray) -> np.ndarray: <NEW_LINE> <INDENT> raise NotImplementedError()
The parent class for all the missing value imputation classes. You can just implement your own inheriting this class.
62598f8d097d151d1a2c0be7
class TestDeleteView(object): <NEW_LINE> <INDENT> def setup(self): <NEW_LINE> <INDENT> self.inst = api.DeleteView('{"pkey": "1"}') <NEW_LINE> self.db = dbaccess.Word() <NEW_LINE> <DEDENT> def test_view_001(self, monkeypatch): <NEW_LINE> <INDENT> result = self.inst.view() <NEW_LINE> assert isinstance(result, api.JsonRes...
削除
62598f8d8da39b475be02d9e
class RateLimit(object): <NEW_LINE> <INDENT> def __init__(self, verb, uri, regex, value, remain, unit, next_available): <NEW_LINE> <INDENT> self.verb = verb <NEW_LINE> self.uri = uri <NEW_LINE> self.regex = regex <NEW_LINE> self.value = value <NEW_LINE> self.remain = remain <NEW_LINE> self.unit = unit <NEW_LINE> self.n...
Data model that represents a flattened view of a single rate limit.
62598f8db830903b9686e252
class ApplicationContext(ObjectContainer): <NEW_LINE> <INDENT> def __init__(self, config=None): <NEW_LINE> <INDENT> super(ApplicationContext, self).__init__(config) <NEW_LINE> self.logger = logging.getLogger("springpython.context.ApplicationContext") <NEW_LINE> self.types_to_avoid = [PyroProxyFactory] <NEW_LINE> for ob...
ApplicationContext IS a ObjectContainer. It also has the ability to define the lifecycle of objects.
62598f8d71ff763f4b5e7331
class PasswordDialog(BaseDialog): <NEW_LINE> <INDENT> def __init__(self, password_msg="", parent=None): <NEW_LINE> <INDENT> super(PasswordDialog, self).__init__( _("Password Protected"), password_msg, Gtk.STOCK_DIALOG_AUTHENTICATION, (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_CONNECT, Gtk.ResponseType.OK), p...
Displays a dialog with an entry field asking for a password. When run(), it will return either a Gtk.ResponseType.CANCEL or a Gtk.ResponseType.OK.
62598f8de76e3b2f99fd85f1
@python_2_unicode_compatible <NEW_LINE> class ToDo(models.Model): <NEW_LINE> <INDENT> title = models.CharField( _('Заголовок'), max_length=128) <NEW_LINE> completed = models.BooleanField( _('Выполнено'), default=False) <NEW_LINE> created = models.DateTimeField( _('Создано'), auto_now_add=True) <NEW_LINE> changed = mode...
Main application class
62598f8d0a50d4780f704f90
class Notebook: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.notes = [] <NEW_LINE> <DEDENT> def new_note(self, memo, tags=""): <NEW_LINE> <INDENT> self.notes.append(Note(memo, tags)) <NEW_LINE> <DEDENT> def _find_note(self, note_id): <NEW_LINE> <INDENT> for note in self.notes: <NEW_LINE> <INDENT> if...
Represent a collection of notes that can be tagged, modified, and searched
62598f8d45492302aabfc096
class CYKNode: <NEW_LINE> <INDENT> def __init__(self, symbol, left=None, right=None): <NEW_LINE> <INDENT> self.symbol = symbol <NEW_LINE> self.left = left <NEW_LINE> self.right = right <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "{symbol}".format(symbol=self.symbol) <NEW_LINE> <DEDENT> def get_sy...
A node of a binary search tree used to store information about the production rule used to populate an entry of a CYKTable in order to reconstruct a binary search tree from the table. For nonterminal rules, the Node contains Ra at the root and the children Rb, Rc from the right hand side of the rule Ra -> Rb Rc. Rules ...
62598f8d6fb2d068a7693c10
class CredentialList(ListResource): <NEW_LINE> <INDENT> def __init__(self, version): <NEW_LINE> <INDENT> super(CredentialList, self).__init__(version) <NEW_LINE> self._solution = {} <NEW_LINE> self._uri = '/Credentials'.format(**self._solution) <NEW_LINE> <DEDENT> def stream(self, limit=None, page_size=None): <NEW_LINE...
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
62598f8d23849d37ff850c80
class ManageBlogEdit: <NEW_LINE> <INDENT> @login_decorator <NEW_LINE> def GET(self): <NEW_LINE> <INDENT> blog_id = web.input().get("id", None) <NEW_LINE> categories = mu.get_category() <NEW_LINE> if blog_id: <NEW_LINE> <INDENT> blog = mu.get_blog(blog_id) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> blog = None <NEW_L...
编辑文章
62598f8d1f037a2d8b9e3c9b
class Timezone(models.Model): <NEW_LINE> <INDENT> created_at = models.DateTimeField(auto_now_add=True) <NEW_LINE> updated_at = models.DateTimeField(auto_now=True) <NEW_LINE> country = models.ForeignKey( "Country", verbose_name=_("Country"), related_name='%(app_label)s_%(class)s_country', null=True, blank=True, ) <NEW_L...
Timezone Model Class.
62598f8da4f1c619b294e1a9
class ElementsTable(CustomTable): <NEW_LINE> <INDENT> def __init__(self, parent, data, colnames): <NEW_LINE> <INDENT> CustomTable.__init__(self, parent, data, colnames) <NEW_LINE> self.old_value = None <NEW_LINE> <DEDENT> def GetValue(self, row, col): <NEW_LINE> <INDENT> if row < self.GetNumberRows(): <NEW_LINE> <INDEN...
A custom wx.grid.Grid Table using user supplied data
62598f8d9b70327d1c57e95f
class GroupsWikiArticle_Locators_Base_2(object): <NEW_LINE> <INDENT> locators = { 'base' : "css=#page_content", 'pagetext' : "css=.main", 'timestamp' : "css=.timestamp", 'tags' : "css=.article-tags", 'authors' : "css=.topic-authors", 'authorlink' : "css=.topic-authors a", 'create' : "xpath=//a[tex...
locators for GroupsWikiArticle object
62598f8d16aa5153ce4000c6
class Edit(Command): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def name(): <NEW_LINE> <INDENT> return N_('Launch Editor') <NEW_LINE> <DEDENT> def __init__(self, filenames, line_number=None): <NEW_LINE> <INDENT> Command.__init__(self) <NEW_LINE> self.filenames = filenames <NEW_LINE> self.line_number = line_number <NE...
Edit a file using the configured gui.editor.
62598f8d99cbb53fe6830a93
class cMAC(parameter): <NEW_LINE> <INDENT> pass
Horizontal tail plane Mean Aerodynamic Chord :Unit: [m]
62598f8d07f4c71912baf006
class Bdd100kFilelistCreator(FilelistCreator): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def _generate_file_identifier(self, filename): <NEW_LINE> <INDENT> filename = os.path.split(filename)[1] <NEW_LINE> filename = os.path.splitex...
Class to create the Bdd100k file list
62598f8de76e3b2f99fd85f2
class GetUser(routing.Controller): <NEW_LINE> <INDENT> def exec(self) -> dict: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user = auth.get_user(uid=self.arg('uid')) <NEW_LINE> jsonable = user.as_jsonable() <NEW_LINE> events.fire('auth_http_api@get_user', user=user, json=jsonable) <NEW_LINE> return jsonable <NEW_LINE> ...
Get information about a user
62598f8d24f1403a9268568f
class ContextualPlayer(object): <NEW_LINE> <INDENT> def __init__(self, cgame, policy, K, prior=0, gamma=None, lamb=0.1): <NEW_LINE> <INDENT> self.policy = policy <NEW_LINE> self.num_action = cgame.n1 <NEW_LINE> self.oppo_num_action = cgame.n2 <NEW_LINE> self.prior = prior <NEW_LINE> self.cgame = cgame <NEW_LINE> self._...
This is the an opponent aware player who estimates a game and execute strategy accordingly this player is able to estimate the true game based on expert predictions of the game
62598f8d4e696a045264dbe6
class StaffLayout(LayoutBase): <NEW_LINE> <INDENT> def __init__(self, *args, **keywords): <NEW_LINE> <INDENT> super(StaffLayout, self).__init__() <NEW_LINE> self.distance = None <NEW_LINE> self.staffNumber = None <NEW_LINE> self.staffSize = None <NEW_LINE> self.staffLines = None <NEW_LINE> self.hidden = None <NEW_LINE>...
Object that configures or alters the distance between one staff and another in a system. StaffLayout objects may be found on Measure or Part Streams. The musicxml equivalent <staff-layout> lives in the <defaults> and in <print> attributes. >>> sl = layout.StaffLayout(distance=3, staffNumber=1, staffSize = 113, staf...
62598f8df7d966606f747ba0
class JSONDataSanitizer(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __removeReminderText(self,jsonData): <NEW_LINE> <INDENT> if 'text' in jsonData: <NEW_LINE> <INDENT> text = jsonData['text'] <NEW_LINE> for reminder in re.findall("(\\(.*\\))",text): <NEW_LINE> <INDENT> te...
This class encapsulates all the logic that we need to sanitize the JSON data prior to processing it with our framework.
62598f8dd6c5a102081e1d05
class Thickening(Perturbation): <NEW_LINE> <INDENT> def __init__(self, amount: float = 1): <NEW_LINE> <INDENT> self.amount = amount <NEW_LINE> <DEDENT> def __call__(self, morph: ImageMorphology) -> np.ndarray: <NEW_LINE> <INDENT> radius = int(self.amount * morph.scale * morph.mean_thickness / 2.) <NEW_LINE> return morp...
Thicken a digit by a specified proportion of its thickness.
62598f8d07d97122c421686b
class IRichLabel(ILabel): <NEW_LINE> <INDENT> rich_label = RichText( title=_(u'Rich Label'), default=u'', missing_value=u'', )
Rich Label Field.
62598f8d91af0d3eaad399c2
class Student: <NEW_LINE> <INDENT> def __init__(self, first_name, last_name, age): <NEW_LINE> <INDENT> self.first_name = first_name <NEW_LINE> self.last_name = last_name <NEW_LINE> self.age = age <NEW_LINE> <DEDENT> def to_json(self, attrs=None): <NEW_LINE> <INDENT> if type(attrs) != list or not all([isinstance(attr, s...
Represent the Student class
62598f8de64d504609df9194
class TestKradfile: <NEW_LINE> <INDENT> def test_can_prepare_kradfile(self): <NEW_LINE> <INDENT> assert len(Kradfile().prepare_radikals()) >= 13108 <NEW_LINE> <DEDENT> def test_can_get_radikal_decomposition(self): <NEW_LINE> <INDENT> assert ([u'一', u'言', u'口', u'五'] == Kradfile().get_radikals_for(u'語', use_cache=False)...
Test Kradfile
62598f8d71ff763f4b5e7333
class CacheError(BaseError): <NEW_LINE> <INDENT> message = "%(cause)s"
Generic error for cache objects
62598f8d0fa83653e46f4ab1
class PatternMatchingEventHandler(FileSystemEventHandler): <NEW_LINE> <INDENT> def __init__(self, patterns=None, ignore_patterns=None, ignore_directories=False, case_sensitive=False): <NEW_LINE> <INDENT> super(PatternMatchingEventHandler, self).__init__() <NEW_LINE> self._patterns = patterns <NEW_LINE> self._ignore_pat...
Matches given patterns with file paths associated with occurring events.
62598f8d0a50d4780f704f92
class MAVLink_set_mag_offsets_message(MAVLink_message): <NEW_LINE> <INDENT> def __init__(self, target_system, target_component, mag_ofs_x, mag_ofs_y, mag_ofs_z): <NEW_LINE> <INDENT> MAVLink_message.__init__(self, MAVLINK_MSG_ID_SET_MAG_OFFSETS, 'SET_MAG_OFFSETS') <NEW_LINE> self._fieldnames = ['target_system', 'target_...
set the magnetometer offsets
62598f8da05bb46b3848a43e
class MidonetTypeDriver(api.ML2TypeDriver): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> LOG.info("ML2 MidonetTypeDriver initialization complete") <NEW_LINE> <DEDENT> def initialize(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def initialize_network_segment_range_support(self): <NEW_LINE> <INDENT>...
Type driver for Midonet networks This type driver differentiates midonet networks from other types.
62598f8d0383005118f6d2bc