code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class VoltageControlledCurrentSource(CurrentSource): <NEW_LINE> <INDENT> def __init__(self, name, element, evaluated_paramsd, parent): <NEW_LINE> <INDENT> gm_expresion = element.paramsl[-1] <NEW_LINE> gm_value = scs_parser.evaluate_param('_gm', {'_gm': gm_expresion}, evaluated_paramsd, parent) <NEW_LINE> self.names = [...
Object with instance of volatage controlled current source of a circtuit
62598f96b57a9660fecd1763
class OnePence(Coin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> data = { "original_value": 0.01, "clean_colour": "bronze", "rusty_colour": "brownish", "num_edges": 1, "diameter": 20.3, "thickness": 1.52, "mass": 3.56 } <NEW_LINE> super().__init__(**data)
https://en.wikipedia.org/wiki/Penny_(British_decimal_coin)
62598f960a50d4780f7050bf
class DeletedDomainPurgeTask(PeriodicTask): <NEW_LINE> <INDENT> __plugin_name__ = 'domain_purge' <NEW_LINE> __interval__ = 3600 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(DeletedDomainPurgeTask, self).__init__() <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_cfg_opts(cls): <NEW_LINE> <INDENT> group =...
Purge deleted domains that are exceeding the grace period time interval. Deleted domains have values in the deleted_at column. Purging means removing them from the database entirely.
62598f9676e4537e8c3ef29c
class BaseDocument(db.Document): <NEW_LINE> <INDENT> meta = { 'abstract': True } <NEW_LINE> created_at = db.DateTimeField() <NEW_LINE> updated_at = db.DateTimeField() <NEW_LINE> def save(self, *args, **kwargs): <NEW_LINE> <INDENT> if not self.created_at: <NEW_LINE> <INDENT> self.created_at = datetime.now() <NEW_LINE> <...
A base document defining certain critical fields :param datetime created_at: The timestamp when the document was created :param datetime updated_at: The timestamp when the document was last updated
62598f9615baa72349461c6a
class BestFitLine: <NEW_LINE> <INDENT> def __init__(self, points): <NEW_LINE> <INDENT> pixel_xy0 = (0.0, 0.0) <NEW_LINE> ts = numpy.zeros(shape=(len(points),), dtype='float') <NEW_LINE> xs = numpy.zeros(shape=(len(points),), dtype='float') <NEW_LINE> ys = numpy.zeros(shape=(len(points),), dtype='float') <NEW_LINE> for ...
given a set of (x, y) points, find a line of best fit. also, provide some convenience functions for finding points on the line
62598f96c432627299fa2cbd
class Success(Model): <NEW_LINE> <INDENT> def __init__(self, success: bool=None, description: str=None): <NEW_LINE> <INDENT> self.swagger_types = { 'success': bool, 'description': str } <NEW_LINE> self.attribute_map = { 'success': 'success', 'description': 'description' } <NEW_LINE> self._success = success <NEW_LINE> s...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f96627d3e7fe0e06b91
class RandomWalk(): <NEW_LINE> <INDENT> def __init__(self, num_points = 5000): <NEW_LINE> <INDENT> self.num_points = num_points <NEW_LINE> self.x_values = [0] <NEW_LINE> self.y_values = [0] <NEW_LINE> <DEDENT> def fill_walk(self): <NEW_LINE> <INDENT> while len(self.x_values) < self.num_points: <NEW_LINE> <INDENT> x_dir...
生成一个随机漫步数组
62598f96460517430c431ecd
class QueryPerformanceInsightResetDataResultState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> SUCCEEDED = "Succeeded" <NEW_LINE> FAILED = "Failed"
Indicates result of the operation.
62598f966aa9bd52df0d4bb6
class CustomTCPRequestHandler(Thread): <NEW_LINE> <INDENT> __stopEvent = Event() <NEW_LINE> address = None <NEW_LINE> socket = None <NEW_LINE> def __init__(self, socket, address): <NEW_LINE> <INDENT> Thread.__init__(self) <NEW_LINE> self.address = address <NEW_LINE> self.socket = socket <NEW_LINE> <DEDENT> def run(self...
Handles a TCP request Handles a TCP request without closing the connection. There is one request handler per client. Attributes: __stopEvent: A thread event to stop the thread. address: IP,port couple of client socket: client connection socket
62598f9691af0d3eaad39af1
class WeightMap(Maps.IdentityMap): <NEW_LINE> <INDENT> def __init__(self, weight, **kwargs): <NEW_LINE> <INDENT> Maps.IdentityMap.__init__(self) <NEW_LINE> self.mesh = mesh <NEW_LINE> self.weight = weight <NEW_LINE> <DEDENT> def _transform(self, m): <NEW_LINE> <INDENT> return m*self.weight <NEW_LINE> <DEDENT> def deriv...
Weighted Map for distributed parameters
62598f96fbf16365ca793d9f
class SingleElementRetriever(object): <NEW_LINE> <INDENT> def __init__(self, sdim): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> assert (sdim.shape == (1, 1)) <NEW_LINE> <DEDENT> except AssertionError: <NEW_LINE> <INDENT> raise MultipleElementsFound(sdim) <NEW_LINE> <DEDENT> self.sdim = sdim <NEW_LINE> <DEDENT> @proper...
Simplifies access to a spatial dimension with a single element. :param sdim: :type sdim: :class:`ocgis.interface.base.dimension.spatial.SpatialDimension`
62598f968e71fb1e983bb79e
@VideoPacketData.define <NEW_LINE> class SCREENV2VIDEOPACKET(pstruct.type): <NEW_LINE> <INDENT> type = 6 <NEW_LINE> class Flags(pbinary.struct): <NEW_LINE> <INDENT> _fields_ = [ (6, 'Reserved'), (1, 'HasIFrameImage'), (1, 'HasPaletteInfo'), ] <NEW_LINE> <DEDENT> class IMAGEBLOCKV2(pstruct.type): <NEW_LINE> <INDENT> cla...
Screen video version 2
62598f9645492302aabfc1c2
class DecoratorTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.factory = RequestFactory() <NEW_LINE> self.middleware = RequestTokenMiddleware(get_response=lambda r: r) <NEW_LINE> <DEDENT> def _request(self, path, token, user): <NEW_LINE> <INDENT> path = path + "?{}={}".format(JWT_QUERYSTR...
use_jwt decorator tests.
62598f96a79ad16197769d4b
class LienException( Exception ): <NEW_LINE> <INDENT> pass
Se déclenche lors d'une exception dans la classe Lien
62598f968e7ae83300ee8d86
class TestColorizedPrinting(unittest.TestCase): <NEW_LINE> <INDENT> def test_output_is_prefixed_with_color(self): <NEW_LINE> <INDENT> stream = StringIO.StringIO() <NEW_LINE> COLOR = 'some escape sequence' <NEW_LINE> print_with_color(COLOR, 'message', out=stream) <NEW_LINE> self.assertTrue(stream.getvalue().startswith(C...
We can print with pretty colors.
62598f9655399d3f05626209
class CountWords(beam.PTransform): <NEW_LINE> <INDENT> def expand(self, pcoll): <NEW_LINE> <INDENT> def count_ones(word_ones): <NEW_LINE> <INDENT> (word, ones) = word_ones <NEW_LINE> return (word, sum(ones)) <NEW_LINE> <DEDENT> return ( pcoll | 'split' >> ( beam.FlatMap(lambda x: re.findall(r'[A-Za-z\']+', x)). with_ou...
A transform to count the occurrences of each word. A PTransform that converts a PCollection containing lines of text into a PCollection of (word, count) tuples.
62598f968a43f66fc4bf1e65
class TabManager(object): <NEW_LINE> <INDENT> def __init__(self, app_state): <NEW_LINE> <INDENT> self.tabs = [] <NEW_LINE> self._tab_index = None <NEW_LINE> self._app_state = app_state <NEW_LINE> self._old_tab_id = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def current_tab(self): <NEW_LINE> <INDENT> return None if s...
The class responsible for managing tab lifecycles.
62598f96a17c0f6771d5bf25
class QtDoubleSpinBox(QtSpinBox, ProxyDoubleSpinBox): <NEW_LINE> <INDENT> widget = Typed(QDoubleSpinBox) <NEW_LINE> def create_widget(self): <NEW_LINE> <INDENT> widget = QDoubleSpinBox(self.parent_widget()) <NEW_LINE> widget.setKeyboardTracking(False) <NEW_LINE> self.widget = widget <NEW_LINE> <DEDENT> def init_widget(...
A Qt implementation of an Enaml SpinBox.
62598f96435de62698e9bade
class PageCreateView(PermissionRequiredMixin, generic.CreateView): <NEW_LINE> <INDENT> model = Page <NEW_LINE> context_object_name = "page_instance" <NEW_LINE> template_name = "sveedocuments/board/page_form.html" <NEW_LINE> form_class = PageForm <NEW_LINE> permission_required = "sveedocuments.add_page" <NEW_LINE> raise...
Form view to create a *Page* document
62598f9699cbb53fe6830bba
class Text(DisplayElement): <NEW_LINE> <INDENT> def __init__(self, slide, machine, text, x=None, y=None, h_pos=None, v_pos=None, layer=0, **kwargs): <NEW_LINE> <INDENT> super(Text, self).__init__(slide) <NEW_LINE> self.text = '' <NEW_LINE> self.fonts = machine.display.fonts <NEW_LINE> self.language = machine.language <...
Represents an animation display element. Args: slide: The Slide object this animation is being added to. machine: The main machine object. text: A string of the text you'd like to display. If you have the multi-language plug-in enabled, this text will be run through the language engine befo...
62598f9607f4c71912baf135
class RequiredForResourcesCollection(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'source_ids': {'key': 'sourceIds', 'type': '[str]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(RequiredForResourcesCollection, self).__init__(**kwargs) <NEW_LINE> self.source_ids = kwarg...
Required for resources collection. :param source_ids: Gets or sets the list of source Ids for which the input resource is required. :type source_ids: list[str]
62598f96bde94217f37074de
class IPythonJobHandler(JobHandler): <NEW_LINE> <INDENT> def __init__(self, profile=None): <NEW_LINE> <INDENT> import IPython.parallel <NEW_LINE> try: <NEW_LINE> <INDENT> self.client=IPython.parallel.Client(profile=profile) <NEW_LINE> logger.debug('__init__: len(client) = {}'.format(len(self.client))) <NEW_LINE> <DEDEN...
Jobs are handled using an IPython.parallel.Client
62598f96d99f1b3c44d0539a
class IsControlOperator(IsAuthenticatedOrMeta): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> return self.has_parent_permission(request, view) and True
The request is authenticated as a user and user is CO
62598f96596a897236127968
class Gjko: <NEW_LINE> <INDENT> menu = None <NEW_LINE> tool_menu = None <NEW_LINE> actions = [] <NEW_LINE> tool_actions = [] <NEW_LINE> def __init__(self, iface): <NEW_LINE> <INDENT> menuName = "&Municipal Energy Model" <NEW_LINE> self.menu = QMenu(iface.mainWindow()) <NEW_LINE> self.menu.setObjectName("gjkoMenu") <NEW...
This is the entry point of Gjko-plugin. QGIS will load this class and call different interface method on this class. Internally this class load two set of Action. The main action that are the main purpose of this plugin and tools action.
62598f9607d97122c421699c
class StoredMessage: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._message_id = None <NEW_LINE> self._received_at = None <NEW_LINE> self._last_seen_at = None <NEW_LINE> self._forward_count = 0 <NEW_LINE> self._header_address = None <NEW_LINE> self._header_sent_at = None <NEW_LINE> self._contents = N...
This class is meant for messages read from the database/persistent storage. It is a superset of the structures.UserMessage, as it contains meta-information about the message, such as when the message was received, number of times forwarded etc. Instances of this class are produced from DB reads and transformed into "Us...
62598f960a50d4780f7050c1
class TrackingNet(object): <NEW_LINE> <INDENT> def __init__(self, root_dir, subset="train", debug_seq=-1): <NEW_LINE> <INDENT> self.root_dir = root_dir <NEW_LINE> validation_chunk = "TRAIN_5" <NEW_LINE> validation_size = 300 <NEW_LINE> val_chunk_seq_names = [validation_chunk + ":" + f.name for f in scandir(os.path.join...
TrackingNet dataset. Bounding boxes are in x1y1wh format.
62598f964e4d56256637210c
class TestUserModel(BaseTestCase): <NEW_LINE> <INDENT> def test_add_user(self): <NEW_LINE> <INDENT> user = add_random_user() <NEW_LINE> self.assertTrue(user.id) <NEW_LINE> self.assertEqual(user.username, user.username) <NEW_LINE> self.assertEqual(user.email, user.email) <NEW_LINE> self.assertTrue(user.password) <NEW_L...
Tests for the User model
62598f963eb6a72ae038a327
class V1beta2DeploymentList(object): <NEW_LINE> <INDENT> swagger_types = { 'api_version': 'str', 'items': 'list[V1beta2Deployment]', 'kind': 'str', 'metadata': 'V1ListMeta' } <NEW_LINE> attribute_map = { 'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata': 'metadata' } <NEW_LINE> def __init__(self...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f9638b623060ffa8d77
class SimpleInnerBoundaryIsTestCase(unittest.TestCase): <NEW_LINE> <INDENT> pass
TODO: This tests the InnerBoundaryIs element.
62598f9629b78933be269f52
class Sysctl(InstanceModule): <NEW_LINE> <INDENT> def __call__(self, name): <NEW_LINE> <INDENT> value = self.check_output("sysctl -n %s", name) <NEW_LINE> try: <NEW_LINE> <INDENT> return int(value) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <INDENT> return value <NEW_LINE> <DEDENT> <DEDENT> def __repr__(self): <...
Test kernel parameters >>> host.sysctl("kernel.osrelease") "3.16.0-4-amd64" >>> host.sysctl("vm.dirty_ratio") 20
62598f960c0af96317c5606e
class MatchValue(MatchExpr): <NEW_LINE> <INDENT> def __init__(self, v=None): <NEW_LINE> <INDENT> self.v = v <NEW_LINE> <DEDENT> def __eq__(self, other) -> bool: <NEW_LINE> <INDENT> return self.v == other.v <NEW_LINE> <DEDENT> def is_in_state(self, s: state.State): <NEW_LINE> <INDENT> if self.v is None and '*' in s.valu...
Ast Node for matching one value.
62598f96e76e3b2f99fd871f
class AAAA(dns.rdata.Rdata): <NEW_LINE> <INDENT> __slots__ = ['address'] <NEW_LINE> def __init__(self, rdclass, rdtype, address): <NEW_LINE> <INDENT> super(AAAA, self).__init__(rdclass, rdtype) <NEW_LINE> junk = dns.inet.inet_pton(dns.inet.AF_INET6, address) <NEW_LINE> self.address = address <NEW_LINE> <DEDENT> def to_...
AAAA record. @ivar address: an IPv6 address @type address: string (in the standard IPv6 format)
62598f9673bcbd0ca4bc9f44
class Wrapper(object): <NEW_LINE> <INDENT> def __init__(self, config={}, io_dir=''): <NEW_LINE> <INDENT> self._config = config <NEW_LINE> self._config['PARAMETERS_NAME'] = PARAMETERS <NEW_LINE> self._io_dir = io_dir <NEW_LINE> <DEDENT> @property <NEW_LINE> def config(self): <NEW_LINE> <INDENT> return self._config <NEW_...
A python wrapper for SExtractor. Parameters ---------- config : dict, optional sextractor config parameters io_dir : str, optional sextractor input/output directory Notes ----- This wrapper was written for SExtractor version 2.19.5.
62598f96236d856c2adc92ad
class BoxList(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> if not isinstance(data, np.ndarray): <NEW_LINE> <INDENT> raise ValueError('data must be a numpy array.') <NEW_LINE> <DEDENT> if len(data.shape) != 2 or data.shape[1] != 4: <NEW_LINE> <INDENT> raise ValueError('Invalid dimensions fo...
Box collection. BoxList represents a list of bounding boxes as numpy array, where each bounding box is represented as a row of 4 numbers, [y_min, x_min, y_max, x_max]. It is assumed that all bounding boxes within a given list correspond to a single image. Optionally, users can add additional related fields (such as ...
62598f9663b5f9789fe84e61
class ExtractorError(Exception): <NEW_LINE> <INDENT> def __init__(self, msg, tb=None, expected=False, cause=None, video_id=None): <NEW_LINE> <INDENT> if video_id is not None: <NEW_LINE> <INDENT> msg = video_id + ': ' + msg <NEW_LINE> <DEDENT> if cause: <NEW_LINE> <INDENT> msg += ' (caused by %r)' % cause <NEW_LINE> <DE...
Error during info extraction.
62598f9691af0d3eaad39af3
class MontyMenu(Menu): <NEW_LINE> <INDENT> def menu_argument(self): <NEW_LINE> <INDENT> start = time.perf_counter() <NEW_LINE> user_text = input('Please state an assertion to argue about: ') <NEW_LINE> while time.perf_counter() - start < 120: <NEW_LINE> <INDENT> user_words = user_text.lower().split() <NEW_LINE> for neg...
A menu of Monty Python skits. (Menu) Methods: menu_argument: A: Have an intellectual discussion. (bool) menu_knight: B: Get some vigorous exercise. (bool) menu_quit: D: Stop it, that's just silly. (bool) menu_spam: C: Enjoy some fine dining.
62598f96fbf16365ca793da1
class OVMController(BaseController): <NEW_LINE> <INDENT> def __init__(self, veh_id, car_following_params, alpha=1, beta=1, h_st=2, h_go=15, v_max=30, time_delay=0, noise=0, fail_safe=None, display_warnings=True): <NEW_LINE> <INDENT> BaseController.__init__( self, veh_id, car_following_params, delay=time_delay, fail_saf...
Optimal Vehicle Model controller. Usage ----- See BaseController for usage example. Attributes ---------- veh_id : str Vehicle ID for SUMO identification car_following_params : flow.core.params.SumoCarFollowingParams see parent class alpha : float gain on desired velocity to current velocity difference ...
62598f9624f1403a92685727
class XMLConnection( object ): <NEW_LINE> <INDENT> class _Request( urllib.request.Request ): <NEW_LINE> <INDENT> def open(self): return urllib.request.urlopen(self) <NEW_LINE> def read(self): return self.open().read() <NEW_LINE> def setJSON(self): <NEW_LINE> <INDENT> if self.get_header('Accept') != 'application/json': ...
XMLConnection(backend=None, db=None, port=None) -> Backend status object Basic access to MythBackend status page and XML data server 'backend' allows a hostname or IP, defaulting to the master backend. 'port' defines the port used to access the backend, retrieved from the database if not given. 'db' allows an exi...
62598f968e71fb1e983bb7a0
class Tokenizer(object): <NEW_LINE> <INDENT> def __init__(self, regex='\\S+', **kwargs): <NEW_LINE> <INDENT> self._regex = re.compile(regex) <NEW_LINE> <DEDENT> def __call__(self, document): <NEW_LINE> <INDENT> state = [] <NEW_LINE> def recur(datum): <NEW_LINE> <INDENT> if isinstance(datum, str): <NEW_LINE> <INDENT> st...
Transforms a string into a list of "canonical" tokens via two operations: (1) normalizing to lower case, and (2) extracting only matches of a single regex.
62598f967047854f4633f0cc
class FullTokenizer: <NEW_LINE> <INDENT> def __init__(self, vocab_file, do_lower_case=True): <NEW_LINE> <INDENT> self.vocab = load_vocab(vocab_file) <NEW_LINE> self.basic_tokenizer = BasicTokenizer(do_lower_case=do_lower_case) <NEW_LINE> self.wordpiece_tokenizer = WordpieceTokenizer(vocab=self.vocab) <NEW_LINE> self.in...
Runs end-to-end tokenziation.
62598f964a966d76dd5eebcd
class Path(SolidShape): <NEW_LINE> <INDENT> _attrMap = AttrMap(BASE=SolidShape, points = AttrMapValue(isListOfNumbers), operators = AttrMapValue(isListOfNumbers), isClipPath = AttrMapValue(isBoolean), ) <NEW_LINE> def __init__(self, points=None, operators=None, isClipPath=0, **kw): <NEW_LINE> <INDENT> SolidShape.__init...
Path, made up of straight lines and bezier curves.
62598f9682261d6c5272fd4d
class StreamIAGA2002Factory(IAGA2002Factory): <NEW_LINE> <INDENT> def __init__(self, stream, **kwargs): <NEW_LINE> <INDENT> IAGA2002Factory.__init__(self, **kwargs) <NEW_LINE> self._stream = stream <NEW_LINE> <DEDENT> def get_timeseries( self, starttime, endtime, observatory=None, channels=None, type=None, interval=Non...
Timeseries Factory for IAGA2002 formatted files loaded via a stream. normally either a single file, or stdio. Parameters ---------- stream: file object io stream, normally either a file, or stdio See Also -------- IAGA2002Factory Timeseriesfactory
62598f96bde94217f37074df
class TensorDataSource(DataSource, TensorOperandMixin): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def to_chunk_op(self, *args): <NEW_LINE> <INDENT> chunk_shape, idx, chunk_size = args <NEW_LINE> chunk_op = self.copy().reset_key() <NEW_LINE> chunk_op.params = {'size': chunk_shape, 'index': idx} <NEW_LINE> return chu...
Tensor data source base class, provide universal tile logic, subclass can overwrite tile method.
62598f9607d97122c421699e
class StatusManager(models.Manager): <NEW_LINE> <INDENT> def status(self, value): <NEW_LINE> <INDENT> return super(StatusManager, self).get_query_set().filter(status=value) <NEW_LINE> <DEDENT> def published(self): <NEW_LINE> <INDENT> today = datetime.date.today() <NEW_LINE> query = self.status(PUBLISHED).filter(pub_dat...
This adds a query method to pull all published records.
62598f96596a89723612796b
class GlobalTestOpenAcademyCourse(TransactionCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(GlobalTestOpenAcademyCourse, self).setUp() <NEW_LINE> self.course = self.env['openacademy.course'] <NEW_LINE> <DEDENT> def create_course(self, name, description, course_responsible_id): <NEW_LINE> <INDENT>...
Global test to openacademy course model Test coreate course and trigger constraits
62598f96cc0a2c111447ad02
class Comment(db.Model): <NEW_LINE> <INDENT> __tablename__ = "comment" <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> content = db.Column(db.Text) <NEW_LINE> movie_id = db.Column(db.Integer, db.ForeignKey("movie.id")) <NEW_LINE> user_id = db.Column(db.Integer, db.ForeignKey("user.id")) <NEW_LINE> ad...
评论
62598f96e64d504609df922d
class GenHttpsNamesTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> zope.component.provideUtility(display_util.FileDisplay(sys.stdout)) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _call(cls, domains): <NEW_LINE> <INDENT> from letsencrypt.display.ops import _gen_https_names <NEW_LINE...
Test _gen_https_names.
62598f96baa26c4b54d4ef9c
class Xhost(AutotoolsPackage, XorgPackage): <NEW_LINE> <INDENT> homepage = "http://cgit.freedesktop.org/xorg/app/xhost" <NEW_LINE> xorg_mirror_path = "app/xhost-1.0.7.tar.gz" <NEW_LINE> version('1.0.7', sha256='8dd1b6245dfbdef45a64a18ea618f233f77432c2f30881b1db9dc40d510d9490') <NEW_LINE> depends_on('libx11') <NEW_LINE>...
xhost is used to manage the list of host names or user names allowed to make connections to the X server.
62598f9615baa72349461c6e
class ItemBase(): <NEW_LINE> <INDENT> def __init__(self, data:Any): self.data=self.obj=data <NEW_LINE> def __repr__(self)->str: return f'{self.__class__.__name__} {str(self)}' <NEW_LINE> def show(self, ax:plt.Axes, **kwargs): <NEW_LINE> <INDENT> ax.set_title(str(self)) <NEW_LINE> <DEDENT> def apply_tfms(self, tfms:Coll...
Base item type in the fastai library.
62598f96b7558d589546331b
@tf_export("initializers.random_uniform", "random_uniform_initializer") <NEW_LINE> class RandomUniform(Initializer): <NEW_LINE> <INDENT> def __init__(self, minval=0, maxval=None, seed=None, dtype=dtypes.float32): <NEW_LINE> <INDENT> self.minval = minval <NEW_LINE> self.maxval = maxval <NEW_LINE> self.seed = seed <NEW_L...
Initializer that generates tensors with a uniform distribution. Args: minval: A python scalar or a scalar tensor. Lower bound of the range of random values to generate. maxval: A python scalar or a scalar tensor. Upper bound of the range of random values to generate. Defaults to 1 for float types. seed:...
62598f96dd821e528d6d8c21
class ServerPropertiesForCreate(Model): <NEW_LINE> <INDENT> _validation = { 'storage_mb': {'minimum': 1024}, 'create_mode': {'required': True}, } <NEW_LINE> _attribute_map = { 'storage_mb': {'key': 'storageMB', 'type': 'long'}, 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', '...
The properties used to create a new server. :param storage_mb: The maximum storage allowed for a server. :type storage_mb: long :param version: Server version. Possible values include: '9.5', '9.6' :type version: str or :class:`ServerVersion <azure.mgmt.rdbms.postgresql.models.ServerVersion>` :param ssl_enforcement: ...
62598f960c0af96317c56070
class InvoiceSerializerTest(TestCase): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def setUp(**kwargs): <NEW_LINE> <INDENT> Invoice.objects.all().delete() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_vendor_data(): <NEW_LINE> <INDENT> return { "first_name": "John", "last_name": "Doe", "mobile": "+9188888872", ...
Test cases to test InvoiceSerializer
62598f968e7ae83300ee8d89
class Proxy(object): <NEW_LINE> <INDENT> def __init__(self, python): <NEW_LINE> <INDENT> self.python = python <NEW_LINE> self.proc = None <NEW_LINE> self.proxy = None <NEW_LINE> self.port = None <NEW_LINE> self.restart() <NEW_LINE> <DEDENT> def get_free_port(self): <NEW_LINE> <INDENT> s = socket.socket() <NEW_LINE> s.b...
Abstracts the external Python processes that do the actual work. SublimePython just calls local methods on Proxy objects. The Proxy objects start external Python processes, send them heartbeat messages, communicate with them and restart them if necessary.
62598f96e76e3b2f99fd8721
class SentimentAnalyzer(): <NEW_LINE> <INDENT> neutral_threshold = [-0.3, 0.3] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> nltk.download('punkt') <NEW_LINE> self.analyzer = SentimentIntensityAnalyzer() <NEW_LINE> <DEDENT> def analysis(self, paragraph): <NEW_LINE> <INDENT> result = 0 <NEW_LINE> counter = 0 <NEW_L...
This is class is for basic sentiment analysis
62598f96d58c6744b42dc146
class LinkSchema(Schema): <NEW_LINE> <INDENT> url = fields.Str(required=True) <NEW_LINE> clicks = fields.Int(required=True) <NEW_LINE> created = fields.DateTime(dump_only=True) <NEW_LINE> updated = fields.DateTime(dump_only=True) <NEW_LINE> short_link = fields.Method('_create_short_link') <NEW_LINE> def _update_field(s...
Link schema for object serialization.
62598f963c8af77a43b67db2
class _MultipleSelect(FormWidget): <NEW_LINE> <INDENT> def __init__(self, req, parent, id, flags): <NEW_LINE> <INDENT> FormWidget.__init__(self, req, parent, id, flags) <NEW_LINE> self.selected = list(self.read_values(req, None, flags)) <NEW_LINE> <DEDENT> def write_hidden(self, req, flags): <NEW_LINE> <INDENT> for ite...
Mixin class providing common methods for CheckBox and MSelectBox
62598f96236d856c2adc92ae
class DevConfig: <NEW_LINE> <INDENT> DEBUG = True <NEW_LINE> SQLALCHEMY_TRACK_MODIFICATIONS = False <NEW_LINE> SQLALCHEMY_DATABASE_URI = 'sqlite://' <NEW_LINE> TEMPLATES_AUTO_RELOAD = True
Development Envrioment Config
62598f96be8e80087fbbed4b
class DynamicStructDefinition(SingletonDefinition): <NEW_LINE> <INDENT> _valid_types = [Type.STRUCTURE, Type.ERROR] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> SingletonDefinition.__init__(self, Type.DYNAMIC_STRUCTURE) <NEW_LINE> <DEDENT> def validate(self, value): <NEW_LINE> <INDENT> if value is None: <NEW_LINE...
DataDefinition for dynamic structs
62598f96379a373c97d98d00
class LocationSensitiveAttention(BahdanauAttention): <NEW_LINE> <INDENT> def __init__(self, num_units, memory, hparams, mask_encoder=True, memory_sequence_length=None, smoothing=False, cumulate_weights=True, name='LocationSensitiveAttention'): <NEW_LINE> <INDENT> normalization_function = _smoothing_normalization if (sm...
Impelements Bahdanau-style (cumulative) scoring function. Usually referred to as "hybrid" attention (content-based + location-based) Extends the additive attention described in: "D. Bahdanau, K. Cho, and Y. Bengio, “Neural machine transla- tion by jointly learning to align and translate,” in Proceedings of ICLR, ...
62598f961b99ca400228f3a3
class ChromeosVolume(pyauto.PyUITest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> cros_ui.stop(allow_fail=True) <NEW_LINE> cryptohome.remove_all_vaults() <NEW_LINE> cros_ui.start(wait_for_login_prompt=False) <NEW_LINE> pyauto.PyUITest.setUp(self) <NEW_LINE> self._initial_volume_info = self.GetVolumeInfo()...
Test case for volume levels. Test volume and mute changes with different state like, login, lock, logout, etc...
62598f96462c4b4f79dbb6f6
class ExcelFile(): <NEW_LINE> <INDENT> def __init__(self, filename, rel_path=False, exports={}, **kwargs): <NEW_LINE> <INDENT> self.path = kwargs['path'] <NEW_LINE> if rel_path: <NEW_LINE> <INDENT> self.path = self.path + '/%s' % rel_path <NEW_LINE> self.exports = exports <NEW_LINE> <DEDENT> self.filename = filename <N...
Handles Excel files in analysis.
62598f9645492302aabfc1c6
class PrivateEndpointConnectionListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["PrivateEndpointConnection"]] = None, **kwargs ): <NEW_LINE> <INDENT> super(PrivateEndp...
A list of private endpoint connections. :ivar value: The collection value. :vartype value: list[~azure.mgmt.containerservice.v2020_09_01.models.PrivateEndpointConnection]
62598f9626068e7796d4c64f
class CommandTimer(CommandPacket): <NEW_LINE> <INDENT> PACKET_TYPE_CHAR='H' <NEW_LINE> def __init__(self,enable=1,mode=0,interval=1000): <NEW_LINE> <INDENT> self.enable=enable <NEW_LINE> self.mode=mode <NEW_LINE> self.interval=interval//10 <NEW_LINE> interval_high_byte=self.interval & 0xFF00 <NEW_LINE> interval_low_byt...
Controls the User Timer functions of the controller. Timer packet bytes (inferred from below text, actual byte table not in manual) TODO: Test that byte order assumed is correct. Byte Name Description 0 'H' 1 Enable 1=Enable, 0=Disable 2 TMode 1=Continuous Mode, 0=One-sh...
62598f96a79ad16197769d4f
class PostListView(APIView): <NEW_LINE> <INDENT> def __get_all_objects(self): <NEW_LINE> <INDENT> return get_list_or_404(Post) <NEW_LINE> <DEDENT> def get(self, request, format=None): <NEW_LINE> <INDENT> posts = self.__get_all_objects() <NEW_LINE> posts_serializer = PostSerializer(posts, many=True) <NEW_LINE> return Re...
This class defines a behavior for posts list
62598f9655399d3f0562620d
class FailureHandler(ResultURLHandler): <NEW_LINE> <INDENT> def __init__(self, OutSum, SignatureValue='', InvId='', **kwargs): <NEW_LINE> <INDENT> ResultURLHandler.__init__(self, OutSum, InvId, SignatureValue, **kwargs) <NEW_LINE> <DEDENT> def _get_signature_string(self): <NEW_LINE> <INDENT> _val = lambda name: getattr...
Обработчик неудачной оплаты
62598f964a966d76dd5eebcf
class guid_by_enclosure(addins.base): <NEW_LINE> <INDENT> def __init__(self, prefix='enclosure:'): <NEW_LINE> <INDENT> self.prefix = prefix <NEW_LINE> <DEDENT> def on_need_guid(self, feed, item_dict): <NEW_LINE> <INDENT> enclosures = item_dict.get('enclosures') <NEW_LINE> if enclosures and len(enclosures) > 0: <NEW_LIN...
Generates a guid based the enclosure attached to an item. The enclosure URL will be used as the guid. For podcast feeds, the enclosure is usually a defining element of the item. If you are working in such a scenario, you probably want this addin high up in your list. Note that this only looks at the first enclosure ...
62598f967cff6e4e811b570c
class GetPointsTestCase(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.points = ( Point(0.25, 4.4), Point(0.265, 4.62), Point(0.25, 3.84), Point(0.256, 4.16), Point(0.27, 4.28), Point(0.25, 4.5), Point(0.269, 4.47) ) <NEW_LINE> <DEDENT> def test_golden_path(...
Test :func:`movie_recommender.cli.mr_graph.get_points`.
62598f96435de62698e9bae1
class HddTempSensor(Entity): <NEW_LINE> <INDENT> def __init__(self, name, hddtemp): <NEW_LINE> <INDENT> self.hddtemp = hddtemp <NEW_LINE> self._name = name <NEW_LINE> self._state = False <NEW_LINE> self._details = None <NEW_LINE> self.update() <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT>...
Representation of a HDDTemp sensor.
62598f96be383301e02534e9
class NetworkRetryManager(Generic[_NetAddrType]): <NEW_LINE> <INDENT> def __init__( self, *, max_retry_delay_normal: float, init_retry_delay_normal: float, max_retry_delay_urgent: float = None, init_retry_delay_urgent: float = None, ): <NEW_LINE> <INDENT> self._last_tried_addr = {} <NEW_LINE> if max_retry_delay_urgent ...
Truncated Exponential Backoff for network connections.
62598f96097d151d1a2c0d10
class ChefAuth(requests.auth.AuthBase): <NEW_LINE> <INDENT> datetime_fmt = '%Y-%m-%dT%H:%M:%SZ' <NEW_LINE> def __init__(self, user_id, private_key): <NEW_LINE> <INDENT> if not all((user_id, private_key)): <NEW_LINE> <INDENT> raise ValueError("Authenticating to Chef server requires " "both user_id and private_key.") <NE...
Sign requests with user's private key. See https://docs.chef.io/auth.html https://docs.chef.io/auth.html#header-format
62598f96596a89723612796c
class Invitation(models.Model): <NEW_LINE> <INDENT> group = models.ForeignKey(Group, verbose_name=_('group'), related_name='sb_invitation_set') <NEW_LINE> sent_by = models.ForeignKey(User, verbose_name=_('sent by'), related_name='sb_sent_invitation_set') <NEW_LINE> sent_to = models.ForeignKey(User, verbose_name=_('sent...
Group admins create invitations for users to join their group. Staff with site admin access can assign users to groups without restriction.
62598f96a17c0f6771d5bf29
class NationalityFactory(HvadFactoryMixin, factory.DjangoModelFactory): <NEW_LINE> <INDENT> FACTORY_FOR = Nationality <NEW_LINE> name = factory.Sequence(lambda n: 'nationality {0}'.format(n))
Factory for the ``Nationality`` model.
62598f96498bea3a75a5780e
class DAEME(AbsModel): <NEW_LINE> <INDENT> def build(self, srcs, ipts): <NEW_LINE> <INDENT> AbsModel.build(self, srcs, ipts) <NEW_LINE> self.encoders = [tf.layers.dense(ipt, 200, self.activ) for ipt, dim in zip(self.ipts, self.dims)] <NEW_LINE> self.meta = tf.nn.l2_normalize(tf.concat(self.encoders, 1), 1) <NEW_LINE> s...
Decoupled Autoencoded Meta-Embedding. This method calculate meta-embedding as the concatenation of encoded source embeddings. The loss function is defined as the sum of mse of each autoencoder and the mse between meta parts.
62598f96004d5f362081ee73
class OrderByBasketRetrieveView(generics.RetrieveAPIView): <NEW_LINE> <INDENT> permission_classes = (IsAuthenticated,) <NEW_LINE> serializer_class = OrderSerializer <NEW_LINE> lookup_field = AC.KEYS.ORDER_NUMBER <NEW_LINE> queryset = Order.objects.all() <NEW_LINE> def dispatch(self, request, *args, **kwargs): <NEW_LINE...
Allow the viewing of Orders by Basket.
62598f9623e79379d538c1f0
class UrlDetail(UrlMixin, ObjectDetailView): <NEW_LINE> <INDENT> pass
Class to retrieve, update or delete Url instance.
62598f9660cbc95b06364036
class InstanceParseException(XbrlParseException): <NEW_LINE> <INDENT> pass
Generic class for an exception thrown while parsing an xbrl instance file
62598f9667a9b606de545cc2
class FSTreeSymlink(FSTree): <NEW_LINE> <INDENT> def __init__(self, context, target): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> if target == '': <NEW_LINE> <INDENT> context.error('empty symlink target') <NEW_LINE> <DEDENT> self.install_trees = set() <NEW_LINE> self.target = target <NEW_LINE> <DEDENT> def ex...
An FSTreeSymlink represents a symbolic link.
62598f96c432627299fa2cc3
class daysDataOfStock: <NEW_LINE> <INDENT> def __init__(self, fullname): <NEW_LINE> <INDENT> stockday_type = np.dtype( { 'names': ['date', 'open', 'high', 'low', 'close', 'amount', 'vol', 'AdjClose'], 'formats': ['i4', 'i4', 'i4', 'i4', 'i4', 'i4', 'i4', 'i4'] }, align=True) <NEW_LINE> _datum1d = np.fromfile(fullname, ...
DF hold all the datum and return value only hold latest last ndays value
62598f968e71fb1e983bb7a3
class UserAdmin(UserAdmin): <NEW_LINE> <INDENT> fieldsets = ( (None, {'fields': ('email', 'password')}), (_('Personal info'), {'fields': ('firstname', 'lastname', 'middlename', 'phone', 'info')}), (_('Permissions'), { 'fields': ('is_active', 'is_staff', 'is_superuser', 'status', 'groups', 'user_permissions'), }), (_('I...
Переопределения пользователя в django admin
62598f9629b78933be269f54
class NoResultFoundForCategory(Exception): <NEW_LINE> <INDENT> def __init__(self, url: str): <NEW_LINE> <INDENT> super().__init__( "No result were found for this category. Verify the validity of given url: \n{url}".format( url=url ) )
Raised when no results are found for given category page
62598f9601c39578d7f12a78
class HttpRequest: <NEW_LINE> <INDENT> def __init__(self, session_method, url, data=None, json=None, files=None, verify_ssl=True): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.files = files <NEW_LINE> self.json = json <NEW_LINE> self.session_method = session_method <NEW_LINE> self.url = url <NEW_LINE> self.veri...
This model stores attributes related to RP HTTP requests.
62598f968e7ae83300ee8d8b
class Zujienaxieqiuxing(Class3Graph2): <NEW_LINE> <INDENT> words_involved = {0: ('ANY', ['SBV']), 1: (['租借'], ['HED']), 2: (['什么', '啥', '哪些'], ['ATT']), 3: ('ANY', ['VOB'])} <NEW_LINE> relations_involved = [(1, 0), (1, 3), (3, 2)] <NEW_LINE> targets_involved = [0, 1, 2] <NEW_LINE> def target(self, rule_target, mapping,...
沃特福德租借过哪些球星
62598f96cb5e8a47e493bfeb
class DialogNodeOutputOptionsElementValue(object): <NEW_LINE> <INDENT> def __init__(self, input=None): <NEW_LINE> <INDENT> self.input = input <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _from_dict(cls, _dict): <NEW_LINE> <INDENT> args = {} <NEW_LINE> if 'input' in _dict: <NEW_LINE> <INDENT> args['input'] = MessageI...
An object defining the message input to be sent to the assistant if the user selects the corresponding option. :attr MessageInput input: (optional) An input object that includes the input text.
62598f9671ff763f4b5e7467
class TestTaskEmail(test_task.TestTask): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp(task.TaskEmail) <NEW_LINE> <DEDENT> def test_name(self): <NEW_LINE> <INDENT> self.assertEqual(self.thing.name, "email") <NEW_LINE> <DEDENT> def test_source_path(self): <NEW_LINE> <INDENT> self.assertEqual(sel...
Test TaskEmail.
62598f9607d97122c42169a1
class UserRuleListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[BaseUserRule]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["BaseUserRule"]] = None, next_link: Optional[str] = None, **kwargs )...
security user rule list result. :param value: A list of user rules. :type value: list[~azure.mgmt.network.v2021_02_01_preview.models.BaseUserRule] :param next_link: The URL to get the next set of results. :type next_link: str
62598f96462c4b4f79dbb6f8
class Meta: <NEW_LINE> <INDENT> model = WorkgroupReview <NEW_LINE> fields = ( 'id', 'url', 'created', 'modified', 'question', 'answer', 'workgroup', 'reviewer', 'content_id' )
Meta class for defining additional serializer characteristics
62598f9624f1403a92685729
class Sensors: <NEW_LINE> <INDENT> def __init__(self, port='/dev/ttyACM1', baud=115200, poll_delay=0.0166): <NEW_LINE> <INDENT> import serial <NEW_LINE> try: <NEW_LINE> <INDENT> self.serial = serial.Serial(port, baud) <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> print("Could not open serial port %", port) <NEW_LINE>...
Installation: sudo apt install python3-smbus or sudo apt-get install i2c-tools libi2c-dev python-dev python3-dev git clone https://github.com/pimoroni/py-smbus.git cd py-smbus/library python setup.py build sudo python setup.py install pip install serial
62598f96f8510a7c17d7dfef
class _ListPropertyItemDelegate(QtGui.QItemDelegate): <NEW_LINE> <INDENT> def __init__(self, propertyTypeNames, editorFactory, parent=None): <NEW_LINE> <INDENT> QtGui.QItemDelegate.__init__(self, parent) <NEW_LINE> self._factory = editorFactory <NEW_LINE> self._propertyTypes = [QtCore.QString(unicode(propType)) for pro...
Delegate for the property modification.
62598f963cc13d1c6d46545c
class User(BaseModel): <NEW_LINE> <INDENT> username = ndb.StringProperty() <NEW_LINE> password = ndb.StringProperty() <NEW_LINE> email = ndb.StringProperty() <NEW_LINE> type = ndb.StringProperty() <NEW_LINE> phone_number = ndb.StringProperty() <NEW_LINE> tags = ndb.KeyProperty(kind=Tag, repeated=True) <NEW_LINE> events...
The user account metadata.
62598f968e7ae83300ee8d8c
class ResultsTable(tables.Table): <NEW_LINE> <INDENT> data = tables.DateTimeColumn(format='d/m/Y') <NEW_LINE> data_caricamento = tables.DateTimeColumn(format='d/m/Y') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Articolo <NEW_LINE> template_name = "django_tables2/bootstrap4.html" <NEW_LINE> fields = ("titolo", "f...
Definisce tabella personalizzata per visualizzare i risultati della ricerca
62598f966e29344779b0034a
class Qubole: <NEW_LINE> <INDENT> _auth=None <NEW_LINE> api_token=None <NEW_LINE> base_url=None <NEW_LINE> poll_interval=None <NEW_LINE> @classmethod <NEW_LINE> def configure(cls, api_token, api_url="https://api.qubole.com/api/", version="v1.2", poll_interval=5): <NEW_LINE> <INDENT> cls._auth=QuboleAuth(api_token) <NEW...
Singleton for storing authorization credentials and other configuration parameters for QDS.
62598f9616aa5153ce4001ec
class Client(BaseClient): <NEW_LINE> <INDENT> _connection_class = Connection <NEW_LINE> def new_project(self, project_id, name=None, labels=None): <NEW_LINE> <INDENT> return Project(project_id=project_id, client=self, name=name, labels=labels) <NEW_LINE> <DEDENT> def fetch_project(self, project_id): <NEW_LINE> <INDENT>...
Client to bundle configuration needed for API requests. See https://cloud.google.com/resource-manager/reference/rest/ for more information on this API. Automatically get credentials:: >>> from gcloud import resource_manager >>> client = resource_manager.Client() :type credentials: :class:`oauth2client.clien...
62598f9632920d7e50bc5d4a
class sq_Cells(): <NEW_LINE> <INDENT> def __init__(self,id,center,x_length,y_length): <NEW_LINE> <INDENT> self.id=id <NEW_LINE> self.center=Point(center) <NEW_LINE> minx=center[0]-x_length/2 <NEW_LINE> maxx=center[0]+x_length/2 <NEW_LINE> miny=center[1]-y_length/2 <NEW_LINE> maxy=center[1]+y_length/2 <NEW_LINE> self.po...
This class will serve as an equivalent to the Cells Class of (Hexagonal Cells) of the detector, though all the attributes of that class wont be present here.
62598f968a43f66fc4bf1e6b
class Publish(MQTTBase, SyncPush): <NEW_LINE> <INDENT> __REPR_FIELDS__ = ['multi', 'retain', 'topic'] <NEW_LINE> def __init__(self, topic=None, retain=False, multi=False, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.topic = self._parse_topic(topic) <NEW_LINE> self.retain = self._parse_retai...
This push will push the given `payload` to a mqtt broker (in this case mosquitto). The broker is specified by `host` and `port`. In addition a topic needs to be specified were the payload is pushed to (e.g. home/living/thermostat). See Also: https://github.com/HazardDede/pnp/blob/master/docs/plugins/push/mqtt.Publ...
62598f96a79ad16197769d51
class Trimmed(Catalog): <NEW_LINE> <INDENT> def __init__(self, inputcatalog, keep): <NEW_LINE> <INDENT> Catalog.__init__(self) <NEW_LINE> keystotransfer = ['ra', 'dec', 'pmra', 'pmdec', 'tmag', 'temperature', 'lightcurves'] <NEW_LINE> for k in keystotransfer: <NEW_LINE> <INDENT> self.__dict__[k] = inputcatalog.__dict__...
a trimmed catalog, created by removing elements from another catalog
62598f96435de62698e9bae3
class TextContentDto: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'text', None, None, ), (2, TType.STRING, 'locale', None, None, ), ) <NEW_LINE> def __init__(self, text=None, locale=None,): <NEW_LINE> <INDENT> self.text = text <NEW_LINE> self.locale = locale <NEW_LINE> <DEDENT> def read(self, iprot): <N...
* Текст сообщения * Attributes: - text - locale
62598f96be383301e02534eb
@injectable() <NEW_LINE> class UserService: <NEW_LINE> <INDENT> def __init__(self, user_repository: UserRepository, object_mapper: Mapper): <NEW_LINE> <INDENT> self.__repository = user_repository <NEW_LINE> self.__mapper = object_mapper <NEW_LINE> <DEDENT> def get_all_users(self) -> List[User]: <NEW_LINE> <INDENT> retu...
The user service class that defines all business operations.
62598f96b830903b9686e2ec
class NonAnonymousResource(test_server.BaseTestResource): <NEW_LINE> <INDENT> addSlash = True <NEW_LINE> sendOwnHeaders = False <NEW_LINE> def render(self, req): <NEW_LINE> <INDENT> if req.avatar.username == 'anonymous': <NEW_LINE> <INDENT> if not self.sendOwnHeaders: <NEW_LINE> <INDENT> raise http.HTTPError(responseco...
A resource that forces authentication by raising an HTTPError with an UNAUTHORIZED code if the request is an anonymous one.
62598f9699cbb53fe6830bc0
class State_Mask(object): <NEW_LINE> <INDENT> def __init__(self, cgtofg_fiber_map, state_function, state_index): <NEW_LINE> <INDENT> self.fxn = state_function <NEW_LINE> self.map = cgtofg_fiber_map <NEW_LINE> self.state = state_index <NEW_LINE> <DEDENT> def __getitem__(self, index): <NEW_LINE> <INDENT> ag = self.map[in...
This object generates a mask on the fly for a particle given its state function acting on a MDAnalysis Universe
62598f96498bea3a75a57810
class Category(Base): <NEW_LINE> <INDENT> __tablename__ = 'category' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> name = Column(String(250), nullable=False) <NEW_LINE> image = Column(String(255)) <NEW_LINE> user_id = Column(Integer, ForeignKey('user.id')) <NEW_LINE> user = relationship(User) <NEW_LINE> ...
Represents a type of plant nursery species These are all common names for broad plant categories, such as trees, shrubs, groundcover, grasses and vines
62598f96d99f1b3c44d053a0