code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class MaskedActorNetwork(ActorDistributionNetwork): <NEW_LINE> <INDENT> def __init__(self, input_tensor_spec, output_tensor_spec, fc_layer_params): <NEW_LINE> <INDENT> super().__init__(input_tensor_spec['state'], output_tensor_spec, fc_layer_params) <NEW_LINE> <DEDENT> def call(self, observations, step_type, network_st...
An actor network which filters the output action distribution using a mask. The mask is an np.ndarray which is -np.inf if the action is not possible and 0 if it is possible. By adding this mask to the logits (the vector before the softmax), the invalid actions are now -inf and only valid actions remain with the same v...
62598eea71ff763f4b5e5e7b
class ThreadList(OssList): <NEW_LINE> <INDENT> pass
Object for creating a list of thread ids. Currently thread ids are represented as integers.
62598eeaf9cc0f698b1c465d
class FiltersMixin(ContextMixin): <NEW_LINE> <INDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(FiltersMixin, self).get_context_data(**kwargs) <NEW_LINE> context['filter_animal_form'] = FilterAnimalForm <NEW_LINE> context['filter_people_form'] = FilterPeopleForm <NEW_LINE> return context
Бэк для блока панель фильтров
62598eea442bda511e95ab80
class Fan(Module): <NEW_LINE> <INDENT> callback = "FanCallback" <NEW_LINE> get_speed_command = "get_speed" <NEW_LINE> set_speed_command = "set_speed" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(Fan, self).__init__(Fan.callback) <NEW_LINE> <DEDENT> def setSpeed(self, rpm): <NEW_LINE> <INDENT> self.parent.se...
Exaust fan controll
62598eead486a94d0ba2a6ec
class Tp09_out: <NEW_LINE> <INDENT> def __init__(self, slot, host=None): <NEW_LINE> <INDENT> self.slot = slot <NEW_LINE> self.comm = GPIO <NEW_LINE> self.host = host <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> self.tcp_client = TcpClient() <NEW_LINE> self.tcp_client.connect_by_conf(self.host, self.slot, se...
#09 Low-power 5V supply, 12V input
62598eea4f88993c371ef876
class SchemaModelTestCase(TestCase): <NEW_LINE> <INDENT> def test_validate_json(self): <NEW_LINE> <INDENT> test_schema = {"type": "object", "properties": { "price": {"type": "number"}, "name": {"type": "string"}, }} <NEW_LINE> valid = {"name": "Eggs", "price": 34.99} <NEW_LINE> invalid = {"name": "Eggs", "price": "Inva...
Test methods of the RecordSchema class related to modelling schemas.
62598eea2c8b7c6e89bd1edf
class SQLiteItemLoader(ItemLoader): <NEW_LINE> <INDENT> pass
Only idea, can load items from SQLite database.
62598eea4428ac0f6e656c71
class URLMatcher(BaseMatcher): <NEW_LINE> <INDENT> regex = False <NEW_LINE> def __init__(self, url): <NEW_LINE> <INDENT> if not url: <NEW_LINE> <INDENT> raise ValueError('url argument cannot be empty') <NEW_LINE> <DEDENT> self.url = url <NEW_LINE> if isregex(url): <NEW_LINE> <INDENT> self.regex = True <NEW_LINE> self.e...
URLMatcher implements an URL schema matcher.
62598eea30dc7b766599dfa7
class BaseAddedDateTermsValidationMixin(object): <NEW_LINE> <INDENT> REQUIRED_FIELDS = ('created_at',) <NEW_LINE> @cached_property <NEW_LINE> def local_created_at(self): <NEW_LINE> <INDENT> return datetime_to_local(self.created_at) <NEW_LINE> <DEDENT> def need_terms_validation_after_save(self, origin, **kwargs): <NEW_L...
RUS: Миксин управления терминами даты.
62598eea1f037a2d8b9e2826
class BlacklistRule(CompareRule): <NEW_LINE> <INDENT> required_options = frozenset(['compare_key', 'blacklist']) <NEW_LINE> def compare(self, event): <NEW_LINE> <INDENT> term = lookup_es_key(event, self.rules['compare_key']) <NEW_LINE> if term in self.rules['blacklist']: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDE...
A CompareRule where the compare function checks a given key against a blacklist
62598eeaadb09d7d5dc08ce7
class DetailsView(RetrieveUpdateDestroyAPIView): <NEW_LINE> <INDENT> queryset = BucketList.objects.all() <NEW_LINE> serializer_class = BucketListSerializer <NEW_LINE> permission_classes = (permissions.IsAuthenticated, IsOwner)
This class handles the http GET, PUT, and DELETE requests.
62598eea60cbc95b06362a5c
class Assignment(): <NEW_LINE> <INDENT> def __init__(self, instructor, room, timeslot): <NEW_LINE> <INDENT> self._instructor = instructor <NEW_LINE> self._room = room <NEW_LINE> self._timeslot = timeslot <NEW_LINE> <DEDENT> @property <NEW_LINE> def room(self): <NEW_LINE> <INDENT> return self._room <NEW_LINE> <DEDENT> @...
A label comprising a timeslot, a room and an instructor that can be assigned to a a lecture node.
62598eeaa8370b77170eeb03
class TasksMenu(WebstrPage): <NEW_LINE> <INDENT> _model = m_tasks.TasksMenuModel <NEW_LINE> _label = 'tasks top menu' <NEW_LINE> _required_elems = [ 'filter_by', 'filter_input', 'from_input', 'to_input' ] <NEW_LINE> def set_filter(self, filter_type=None, filter_input=None): <NEW_LINE> <INDENT> if filter_type is not Non...
page object for tasks top menu
62598eea5fdd1c0f98e5c6c0
class AddResourceForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Resource <NEW_LINE> fields = ['slug', 'title', 'content', 'is_public', 'is_monitored', 'tags', 'resource_type'] <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.author = kwargs.pop('autho...
Form to add new Community Resource. The author and the community of the resource should be provided by the view: * author - currently logged in user * community - defined by the community slug from the URL
62598eea4e4d562566370b39
class DropTempAuthKeys(TLObject): <NEW_LINE> <INDENT> __slots__ = ["except_auth_keys"] <NEW_LINE> ID = 0x8e48a188 <NEW_LINE> QUALNAME = "functions.auth.DropTempAuthKeys" <NEW_LINE> def __init__(self, *, except_auth_keys: list): <NEW_LINE> <INDENT> self.except_auth_keys = except_auth_keys <NEW_LINE> <DEDENT> @staticmeth...
Attributes: LAYER: ``112`` Attributes: ID: ``0x8e48a188`` Parameters: except_auth_keys: List of ``int`` ``64-bit`` Returns: ``bool``
62598eea435de62698e9a4f4
class ListModelMixin(_ListModelMixin): <NEW_LINE> <INDENT> def list(self, request: Any, *args: Any, **kwargs: Any) -> Response: <NEW_LINE> <INDENT> model = self.get_queryset().model <NEW_LINE> try: <NEW_LINE> <INDENT> collection_string = model.get_collection_string() <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE...
Mixin to add the caching system to list requests.
62598eea8e7ae83300ee77ae
class TestJSONld(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> register('json-ld', Parser, 'rdflib_jsonld.parser', 'JsonLDParser') <NEW_LINE> self.proj_context_uri = '/127.0.0.1:8000/contexts/projects/3.json' <NEW_LINE> self.context_file = settings.STATIC_IMPORTS_ROOT + '3-context.json' <NEW_LINE>...
from opencontext_py.apps.contexts.tests import TestJSONld t_json_ld = TestJSONld() t_json_ld.setUp()
62598eead486a94d0ba2a6ed
class _FileReader(pb.Referenceable): <NEW_LINE> <INDENT> def __init__(self, fp): <NEW_LINE> <INDENT> self.fp = fp <NEW_LINE> <DEDENT> def remote_read(self, maxlength): <NEW_LINE> <INDENT> if self.fp is None: <NEW_LINE> <INDENT> return '' <NEW_LINE> <DEDENT> data = self.fp.read(maxlength) <NEW_LINE> return data <NEW_LIN...
Helper class that acts as a file-object with read access
62598eea7c178a314d78bbb2
class CapturePropertyBase(Capture): <NEW_LINE> <INDENT> def __init__(self, property_name, callback=None, regex=False): <NEW_LINE> <INDENT> self._property_name = property_name <NEW_LINE> self._regex = regex <NEW_LINE> routingKey = ("builders", None, "builds", None, "finished") <NEW_LINE> def default_callback(props, prop...
A base class for CaptureProperty* classes.
62598eea090684286d592a71
class LaunchedDroneRegister(RestrictionRegister): <NEW_LINE> <INDENT> def __init__(self, tracker): <NEW_LINE> <INDENT> self._tracker = tracker <NEW_LINE> self.__restrictedHolders = set() <NEW_LINE> <DEDENT> def registerHolder(self, holder): <NEW_LINE> <INDENT> if holder not in self._tracker._fit.drones: <NEW_LINE> <IND...
Implements restriction: Number of simultaneously used drones cannot exceed number of drones character is able to control. Details: Only holders located in drone container are tracked. For validation, modified value of maxActiveDrones attribute is taken.
62598eeaaad79263cf42cf2b
class Timer(WaitObject): <NEW_LINE> <INDENT> timethread = TimeThread() <NEW_LINE> timethread_started = False <NEW_LINE> lock = timethread.get_lock() <NEW_LINE> def __init__(self, delay): <NEW_LINE> <INDENT> WaitObject.__init__(self) <NEW_LINE> self.delay = delay <NEW_LINE> self.callback = None <NEW_LINE> self.is_async ...
This object becomes ready when a certain delay has expired.
62598eea498bea3a75a56251
class CallbackQueryPayloadGame(Object): <NEW_LINE> <INDENT> ID = "callbackQueryPayloadGame" <NEW_LINE> def __init__(self, game_short_name, **kwargs): <NEW_LINE> <INDENT> self.game_short_name = game_short_name <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(q: dict, *args) -> "CallbackQueryPayloadGame": <NEW_LINE>...
The payload from a game callback button Attributes: ID (:obj:`str`): ``CallbackQueryPayloadGame`` Args: game_short_name (:obj:`str`): A short name of the game that was attached to the callback button Returns: CallbackQueryPayload Raises: :class:`telegram.Error`
62598eea56ac1b37e630090e
class TestFindUsages(object): <NEW_LINE> <INDENT> def test_find_usages_command(self): <NEW_LINE> <INDENT> FindUsages(self._check_find_usages, 0, jedi.Script(_code)) <NEW_LINE> <DEDENT> def test_find_usages_handler(self): <NEW_LINE> <INDENT> data = {'source': _code, 'line': 1, 'offset': 40, 'filename': None} <NEW_LINE> ...
FindUsages tests suite
62598eea3317a56b869bd8f6
class TransactionSerializer(Serializer): <NEW_LINE> <INDENT> id = IntegerField() <NEW_LINE> amount = MoneyField() <NEW_LINE> product_name = CharField() <NEW_LINE> product = ProductSerializer() <NEW_LINE> created_at = DateTimeField()
Serialize a single transaction
62598eea9c8ee8231303f4e9
class devShapeMatchViewset(mixins.CreateModelMixin, mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> return devShapeMatch.objects.all() <NEW_LINE> <DEDENT> def get_serializer_class(self): <NEW_LINE> <IND...
list: 获取用户收藏列表 retrieve: 判断某个商品是否已经收藏 create: 收藏商品
62598eea2c8b7c6e89bd1ee1
class Book(Base): <NEW_LINE> <INDENT> __tablename__ = 'books' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> name = Column(String(50), unique=True) <NEW_LINE> def __init__(self, name=None, email=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.email = email <NEW_LINE> <DEDENT> def __repr__(self...
Books in a library
62598eea32920d7e50bc474c
class AddUserToGroup(command.Command): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.AddUserToGroup') <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(AddUserToGroup, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'group', metavar='<group>', help='Group name or ID t...
Add user to group
62598eea01c39578d7f114cb
class MazeTile: <NEW_LINE> <INDENT> def __init__(self, label: str, coordinates: Coordinates): <NEW_LINE> <INDENT> self.label = label <NEW_LINE> self.coordinates = coordinates <NEW_LINE> self.visited = False <NEW_LINE> <DEDENT> def visit(self) -> None: <NEW_LINE> <INDENT> self.visited = True <NEW_LINE> <DEDENT> def chec...
A tile in a grid of tiles that form a maze. Attributes: label: The text that is displayed to represent the tile in the maze. coordinates: The x and y coordinates of the tile in the grid. visited: Whether the tile has been visited.
62598eeacc0a2c1114479725
class FakeKeyValue(object): <NEW_LINE> <INDENT> def __init__(self, key, value): <NEW_LINE> <INDENT> self.Key = key <NEW_LINE> self.Value = value
Container for fake Key:Value pairs
62598eeacad5886f8bdc3a23
class FileReader: <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> size = os.path.getsize(filename) <NEW_LINE> with open(filename, 'rb') as f: <NEW_LINE> <INDENT> b = bytearray(size) <NEW_LINE> f.readinto(b) <NEW_LINE> <DEDENT> self.view = memoryview(b) <NEW_LINE> self.next = 0 <NEW_LINE> <DEDENT> ...
Flow file reader.
62598eea32920d7e50bc474d
class SicFile(Wizard): <NEW_LINE> <INDENT> __name__ = 'mae_download_shape.mae_protection.sic' <NEW_LINE> type = fields.Char(string=u'Type de donnée', help=u'Nom de la couche de protection', required=True) <NEW_LINE> start = StateView('mae_download_shape.mae_protection.file', 'mae_download_shape.shapefile_file_view_form...
Importer un fichier sites d'importance communautaire
62598eea8a43f66fc4bf0894
class addTop_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRING, 'success', None, None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated ...
Attributes: - success
62598eea99cbb53fe682f5d3
class UserSiteRoleCreate(object): <NEW_LINE> <INDENT> swagger_types = { 'user_id': 'str', 'site_id': 'int', 'role_id': 'int' } <NEW_LINE> attribute_map = { 'user_id': 'user_id', 'site_id': 'site_id', 'role_id': 'role_id' } <NEW_LINE> def __init__(self, user_id=None, site_id=None, role_id=None): <NEW_LINE> <INDENT> self...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598eea2ae34c7f260a9808
class FakeTwitterStreamThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, routing_key, location, *args, **kwargs): <NEW_LINE> <INDENT> super(FakeTwitterStreamThread, self).__init__(*args, **kwargs) <NEW_LINE> self.routing_key = routing_key <NEW_LINE> self.location = location <NEW_LINE> self.shutdown_flag ...
Class that emulates a real twitter stream by sending a geo tweet at random interval
62598eea7d43ff248742678c
class AbstractGrant(models.Model): <NEW_LINE> <INDENT> CODE_CHALLENGE_PLAIN = "plain" <NEW_LINE> CODE_CHALLENGE_S256 = "S256" <NEW_LINE> CODE_CHALLENGE_METHODS = ((CODE_CHALLENGE_PLAIN, "plain"), (CODE_CHALLENGE_S256, "S256")) <NEW_LINE> id = models.BigAutoField(primary_key=True) <NEW_LINE> user = models.ForeignKey( se...
A Grant instance represents a token with a short lifetime that can be swapped for an access token, as described in :rfc:`4.1.2` Fields: * :attr:`user` The Django user who requested the grant * :attr:`code` The authorization code generated by the authorization server * :attr:`application` Application instance this gra...
62598eeaf548e778e5969cad
class InlineResponse20018Cheese(object): <NEW_LINE> <INDENT> swagger_types = { 'cheese': 'str', 'goal': 'str' } <NEW_LINE> attribute_map = { 'cheese': 'cheese', 'goal': 'goal' } <NEW_LINE> def __init__(self, cheese=None, goal=None): <NEW_LINE> <INDENT> self._cheese = None <NEW_LINE> self._goal = None <NEW_LINE> self.di...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598eead58c6744b42db645
class logser_gen(rv_discrete): <NEW_LINE> <INDENT> def _rvs(self, pr): <NEW_LINE> <INDENT> return mtrand.logseries(pr,size=self._size) <NEW_LINE> <DEDENT> def _argcheck(self, pr): <NEW_LINE> <INDENT> return (pr > 0) & (pr < 1) <NEW_LINE> <DEDENT> def _pmf(self, k, pr): <NEW_LINE> <INDENT> return -pr**k * 1.0 / k / log(...
A Logarithmic (Log-Series, Series) discrete random variable. %(before_notes)s Notes ----- The probability mass function for `logser` is:: logser.pmf(k) = - p**k / (k*log(1-p)) for ``k >= 1``. `logser` takes ``p`` as shape parameter. %(example)s
62598eea23849d37ff84f7d8
class TestShowListScoringEngine(base.BaseInfraOptimTest): <NEW_LINE> <INDENT> DUMMY_SCORING_ENGINE = "dummy_scorer" <NEW_LINE> @classmethod <NEW_LINE> def resource_setup(cls): <NEW_LINE> <INDENT> super(TestShowListScoringEngine, cls).resource_setup() <NEW_LINE> <DEDENT> def assert_expected(self, expected, actual, keys=...
Tests for scoring engines
62598eea99fddb7c1ca62195
class ContentPlugin: <NEW_LINE> <INDENT> def __init__ (self, content): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def register (a_class, uri): <NEW_LINE> <INDENT> assert issubclass(a_class, ContentPlugin) <NEW_LINE> _content_plugin_registry[uri] = a_class <NEW_LINE> <DEDENT> @staticmethod <NE...
TODO
62598eea5fcc89381b2654b7
class ClassicLinkInstance(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.VpcId = None <NEW_LINE> self.InstanceId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.VpcId = params.get("VpcId") <NEW_LINE> self.InstanceId = params.get("InstanceId")
Classiclink instance
62598eea7c178a314d78bbb4
class GetAdminedPublicChannels(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = ["by_location", "check_limit"] <NEW_LINE> ID = 0xf8b036af <NEW_LINE> QUALNAME = "functions.channels.GetAdminedPublicChannels" <NEW_LINE> def __init__(self, *, by_location: Union[None, bool] = None, check_limit: Union[None, bool] = None...
Telegram API method. Details: - Layer: ``122`` - ID: ``0xf8b036af`` Parameters: by_location (optional): ``bool`` check_limit (optional): ``bool`` Returns: :obj:`messages.Chats <pyrogram.raw.base.messages.Chats>`
62598eea0c0af96317c54ab9
class Engine(object): <NEW_LINE> <INDENT> def __init__(self, start_scene): <NEW_LINE> <INDENT> self.start_scene = start_scene <NEW_LINE> <DEDENT> def play(self): <NEW_LINE> <INDENT> next_scene = self.start_scene <NEW_LINE> while True: <NEW_LINE> <INDENT> room, message = next_scene.play() <NEW_LINE> next_scene = gmp.gam...
This is the game engine.
62598eeaa8ecb0332586f90b
class product_pricelist_customer_stock(osv.osv_memory): <NEW_LINE> <INDENT> _name = "product.pricelist.customer.stock" <NEW_LINE> _description = "Product status" <NEW_LINE> _order = 'seq,date' <NEW_LINE> _columns = { 'name': fields.char('Description', size=64), 'wizard_id': fields.many2one('product.pricelist.customer',...
Product pricelist generator for customers
62598eea7cff6e4e811b4110
class Inner(FancyBanner): <NEW_LINE> <INDENT> def __init__(self, width=0, offset=5): <NEW_LINE> <INDENT> super().__init__(width) <NEW_LINE> self.indent_offset = offset <NEW_LINE> self.indent = '{:^{}}'.format('', self.indent_offset) <NEW_LINE> <DEDENT> def error(self, symbol='*'): <NEW_LINE> <INDENT> self.indent = '{:<...
Modifies message to have an indent offset
62598eea3cc13d1c6d463e92
class UVAxis: <NEW_LINE> <INDENT> __slots__ = [ 'x', 'y', 'z', 'scale', 'offset', ] <NEW_LINE> def __init__(self, x, y, z, offset=0.0, scale=0.25): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> self.z = z <NEW_LINE> self.offset = offset <NEW_LINE> self.scale = scale <NEW_LINE> <DEDENT> @staticmethod <...
Values saved into Side.uaxis and Side.vaxis. These define the alignment of textures on a face.
62598eeacb5e8a47e493b50a
class MSGame(object): <NEW_LINE> <INDENT> def __init__(self, N, contribs): <NEW_LINE> <INDENT> self.N = N <NEW_LINE> self.contribs = contribs <NEW_LINE> self.statistics = xrange((self.N-1)*min(self.contribs), (self.N-1)*max(self.contribs)+1) <NEW_LINE> <DEDENT> def AsTable(self): <NEW_LINE> <INDENT> return [ [ own, oth...
A general mean statistic game: a symmetric game in which the player's payoff depends on his choice and the sum of the choices of the other players. This class is abstract in that it depends upon, but does not define, the method Payoff(own, others), which provides the payoff for any given vector of own choice and sum o...
62598eea4e4d562566370b3c
class BooleanAttribute(Attribute, BaseBooleanAttribute): <NEW_LINE> <INDENT> pass
A class for boolean attributes This attribute type uses a number attribute to save space
62598eea498bea3a75a56253
class ServiceInstance(model_base.BASE, models_v1.HasId, models_v1.HasTenant): <NEW_LINE> <INDENT> name = sa.Column(sa.String(255), nullable=True) <NEW_LINE> service_type_id = sa.Column(sa.String(36), sa.ForeignKey('servicetypes.id')) <NEW_LINE> service_type = orm.relationship('ServiceType') <NEW_LINE> service_table_id ...
Represents logical service instance This table is only to tell what logical service instances exists. There will be service specific tables for each service types which holds actuall parameters necessary for specific service type. For example, tables for "Routers", "LBaaS", "FW", tables. which table is implicitly deter...
62598eea32920d7e50bc474e
class KeepAliveInverterTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self) -> None: <NEW_LINE> <INDENT> local_sock, remote_sock = socketpair() <NEW_LINE> local_sock.settimeout(1.0) <NEW_LINE> remote_sock.settimeout(1.0) <NEW_LINE> self.inverter = KeepAliveInverter(local_sock, None, keep_alive=0.01) <NEW_LINE> self....
Tests for KeepAliveInverter class.
62598eeabe8e80087fbbd771
class Group(MessageBase): <NEW_LINE> <INDENT> status = models.PositiveIntegerField(default=0, choices=STATUS_LEVELS, db_index=True) <NEW_LINE> times_seen = models.PositiveIntegerField(default=1, db_index=True) <NEW_LINE> last_seen = models.DateTimeField(default=datetime.now, db_index=True) <NEW_LINE> first_seen = model...
Aggregated message which summarizes a set of Events.
62598eea56ac1b37e6300910
class IfBlockCanBeUsed(VisitorChecker): <NEW_LINE> <INDENT> reports = ("if-can-be-used",) <NEW_LINE> run_keyword_variants = {"runkeywordif", "runkeywordunless"} <NEW_LINE> def visit_KeywordCall(self, node): <NEW_LINE> <INDENT> if not node.keyword: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if normalize_robot_name(n...
Checker for potential IF block usage in Robot Framework 4.0 Run Keyword variants (Run Keyword If, Run Keyword Unless) can be replaced with IF in RF 4.0
62598eea01c39578d7f114cd
class Poller(object): <NEW_LINE> <INDENT> sockets = None <NEW_LINE> _map = {} <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.sockets = [] <NEW_LINE> self._map = {} <NEW_LINE> <DEDENT> def __contains__(self, socket): <NEW_LINE> <INDENT> return socket in self._map <NEW_LINE> <DEDENT> def register(self, socket, f...
A stateful poll interface that mirrors Python's built-in poll.
62598eea851cf427c66b69ea
class ProductHasPromotion(models.Model): <NEW_LINE> <INDENT> product = models.ForeignKey(mall_models.Product) <NEW_LINE> promotion = models.ForeignKey(Promotion) <NEW_LINE> class Meta(object): <NEW_LINE> <INDENT> db_table = 'mallpromotion_product_has_promotion'
<商品,促销>的关联
62598eeadc8b845886d51ce6
class DelegationInheritance3(osv.Model): <NEW_LINE> <INDENT> _name = "testing.inheritance.delegation3" <NEW_LINE> _description = "DelegationInheritance3" <NEW_LINE> _inherits = {"testing.base.a": "custom_base_a_id"} <NEW_LINE> _columns = { "name": fields.char(string="name", size=8, required=True), "custom_base_a_id": f...
Test d'héritage par délégation
62598eeacc0a2c1114479727
class TreeAuxFile(BinaryFile): <NEW_LINE> <INDENT> def __init__(self, fname, id_bytes=8, *args): <NEW_LINE> <INDENT> BinaryFile.__init__(self, fname, *args) <NEW_LINE> if id_bytes == 4: <NEW_LINE> <INDENT> self.id_type = np.uint32 <NEW_LINE> <DEDENT> elif id_bytes == 8: <NEW_LINE> <INDENT> self.id_type = np.uint64 <NEW...
Class for reading treeaux files written by L-TreeAddPosTab and L-TreeAddIDTab
62598eea32920d7e50bc474f
class SimpleController(MqttRosBridge): <NEW_LINE> <INDENT> def __init__(self, debug=False): <NEW_LINE> <INDENT> super().__init__(debug) <NEW_LINE> return <NEW_LINE> <DEDENT> def clean_exit(self): <NEW_LINE> <INDENT> (rc, _) = self.client_mqtt.publish(general_topics['canopen'], payload=False.to_bytes(1, 'little'), qos=2...
A simple controller class example to be used with for testing purposes. Uses the subclass MqttRosBridge. Must implement the desired function callbacks for use with ros subscribed topics
62598eea30dc7b766599dfab
class Enum(object): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> keys, values = [], [] <NEW_LINE> for entry in args: <NEW_LINE> <INDENT> if isinstance(entry, (bytes, unicode)): <NEW_LINE> <INDENT> key, val = entry, stem.util.str_tools._to_camel_case(entry) <NEW_LINE> <DEDENT> elif isinstance(entry...
Basic enumeration.
62598eea16aa5153ce3fec22
class CudnnGRU(_CudnnRNNNoInputC): <NEW_LINE> <INDENT> _rnn_mode = CUDNN_GRU <NEW_LINE> _num_params_per_layer = CUDNN_GRU_PARAMS_PER_LAYER <NEW_LINE> _saveable_cls = cudnn_rnn_ops.CudnnGRUSaveable
Cudnn implementation of the GRU layer.
62598eead7e4931a7ef3a7c2
class EntryAlreadyStarredError(Exception): <NEW_LINE> <INDENT> def __init__(self, database_entry): <NEW_LINE> <INDENT> self.database_entry = database_entry <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return ( 'the entry {0!r} is already marked ' 'as starred'.format(self.database_entry))
This exception is raised if a database entry is marked as starred using :meth:`Database.star` although it was already starred before this operation.
62598eea4a966d76dd5ed607
class L1DepthLoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, args): <NEW_LINE> <INDENT> super(L1DepthLoss, self).__init__() <NEW_LINE> tqdm.write('Constructing L1DepthLoss') <NEW_LINE> self.args = args <NEW_LINE> self.word_dim = 1 <NEW_LINE> <DEDENT> def forward(self, predictions, label_batch, length_batch): <N...
Custom L1 loss for depth sequences.
62598eea67a9b606de5446f1
class Solution: <NEW_LINE> <INDENT> def backPackV(self, nums, target): <NEW_LINE> <INDENT> A = nums <NEW_LINE> m = target <NEW_LINE> n = len(A) <NEW_LINE> f = [0] * (m + 1) <NEW_LINE> f[0] = 1 <NEW_LINE> for i in range(1, n + 1): <NEW_LINE> <INDENT> for j in range(m, A[i-1]-1, -1): <NEW_LINE> <INDENT> if j >= A[i - 1]:...
@param nums: an integer array and all positive numbers @param target: An integer @return: An integer
62598eea67a9b606de5446f2
class recipe: <NEW_LINE> <INDENT> def __init__(self, filedesc, entrypath): <NEW_LINE> <INDENT> self.file = filedesc <NEW_LINE> self.entry = entrypath <NEW_LINE> self.title = "CIF-style sample geometry" <NEW_LINE> <DEDENT> def findNXsample(self): <NEW_LINE> <INDENT> for node in self.file[self.entry].keys(): <NEW_LINE> <...
A demo recipe for finding the information associated with this demo feature. This is meant to help consumers of this feature to understand how to implement code that understands that feature (copy and paste of the code is allowed). It also documents in what preference order (if any) certain things are evaluated when f...
62598eeaeab8aa0e5d30a49e
class SubNetwork(object): <NEW_LINE> <INDENT> def __init__(self, name, network): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.network = network <NEW_LINE> <DEDENT> def connect(self, pre, post, *args, **kwargs): <NEW_LINE> <INDENT> return self.network.connect('%s.%s'%(self.name, pre), '%s.%s'%(self.name, post), ...
A container for sectioning models into modular sections.
62598eea8c0ade5d55dc2a13
class ResourceListTests(BaseWebAPITestCase): <NEW_LINE> <INDENT> fixtures = ['test_users'] <NEW_LINE> def test_get_with_invalid_review_request_id(self): <NEW_LINE> <INDENT> screenshot_invalid_id_url = get_screenshot_list_url(999999) <NEW_LINE> rsp = self.apiGet(screenshot_invalid_id_url, expected_status=404) <NEW_LINE>...
Testing the ScreenshotResource list APIs.
62598eeadd821e528d6d7667
class JacobianDeterminantScalingAction(LieAction): <NEW_LINE> <INDENT> def __init__(self, lie_group, domain): <NEW_LINE> <INDENT> LieAction.__init__(self, lie_group, domain) <NEW_LINE> assert lie_group.domain == domain <NEW_LINE> self.gradient = odl.Gradient(self.domain, method='forward', pad_mode='order1') <NEW_LINE> ...
Action via multiplication with inverse of jacobian determinant.
62598eea30bbd72246468357
class ScholarshipApplication(models.Model): <NEW_LINE> <INDENT> text = models.TextField( verbose_name='Reason', null=False, blank=False, default=None, help_text="Please explain why you are applying for this scholarship. " "This field is limited to 200 words or less.", validators=[validate_200_words_or_less, ] ) <NEW_LI...
A scholarship application model with reference to the submitting user.
62598eea5fdd1c0f98e5c6c5
class OBDIISimulator(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.tStart = time.time() <NEW_LINE> self.connOK = False <NEW_LINE> self.connOK = True <NEW_LINE> print('*** OBDII Connection OK\n') <NEW_LINE> <DEDENT> def getENGINELOAD(self): <NEW_LINE> <INDENT> eng_load = 33.3333395 <NEW_LINE>...
This class simulate data from OBDII
62598eea460517430c430bab
class Setpo(X86InstructionBase): <NEW_LINE> <INDENT> def __init__(self, prefix, mnemonic, operands, architecture_mode): <NEW_LINE> <INDENT> super(Setpo, self).__init__(prefix, mnemonic, operands, architecture_mode) <NEW_LINE> <DEDENT> @property <NEW_LINE> def source_operands(self): <NEW_LINE> <INDENT> return [ ] <NEW_L...
Representation of Setpo x86 instruction.
62598eeae1aae11d1e7cdbd1
class MaxThreadsMySQLdbPyzorTest(MySQLdbPyzorTest): <NEW_LINE> <INDENT> threads = "True" <NEW_LINE> max_threads = "10"
Test the mysql engine with threads and MaxThreads set.
62598eea3539df3088eca9d5
class BnB(BaseModel): <NEW_LINE> <INDENT> accomodates: int <NEW_LINE> bathrooms: float <NEW_LINE> bedrooms: int <NEW_LINE> beds: int <NEW_LINE> guests_included: int <NEW_LINE> min_nights: int <NEW_LINE> max_nights: int <NEW_LINE> def to_df(self): <NEW_LINE> <INDENT> return pd.DataFrame([dict(self)])
Use this data model to parse the request body JSON.
62598eeaa8ecb0332586f90d
class Event: <NEW_LINE> <INDENT> def __init__(self, timestamp): <NEW_LINE> <INDENT> self.timestamp = timestamp <NEW_LINE> self.line = None <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return self.timestamp == other.timestamp <NEW_LINE> <DEDENT> def __ne__(self, other): <NEW_LINE> <INDENT> return not...
An event. Events have an ordering based on the event timestamp in non-ascending order. Events with older timestamps are less than those with newer timestamps. === Attributes === @type timestamp: int A timestamp for this event. @type line: CheckoutLine The line related to the event.
62598eea4f88993c371ef879
class ClusterPubSub(PubSub): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ClusterPubSub, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> async def execute_command(self, *args, **kwargs): <NEW_LINE> <INDENT> await self.connection_pool.initialize() <NEW_LINE> if self.connection i...
Wrappers for the PubSub class
62598eea9c8ee8231303f4eb
class APIActor(ActorTypeDispatcher): <NEW_LINE> <INDENT> @log_arguments <NEW_LINE> def receiveMsg_APIListSitesMsg(self, message: APIListListMsg, sender) -> None: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @log_arguments <NEW_LINE> def receiveMsg_APICreateSiteMsg(self, message: APICreateSiteMsg, sender) -> None: <NEW_...
Handles requests from API
62598eea1f5feb6acb161376
class MultiprocessingHandlerWrapper(log.Handler): <NEW_LINE> <INDENT> def __init__(self, *subhandlers): <NEW_LINE> <INDENT> self.queue = multiprocessing.Queue() <NEW_LINE> self.queue.cancel_join_thread() <NEW_LINE> self._shutdown = threading.Event() <NEW_LINE> self._handler_lock = threading.Lock() <NEW_LINE> self._subh...
A class which wraps other handlers and to enable logging across multiprocessing processes
62598eea4e4d562566370b3e
class GetWeeklyChartListResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None)
A ResultSet with methods tailored to the values returned by the GetWeeklyChartList Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62598eea57b8e32f52507497
class Posterize(A.ImageOnlyTransform): <NEW_LINE> <INDENT> def __init__(self, mag=10, always_apply=False, p=.5): <NEW_LINE> <INDENT> super().__init__(always_apply, p) <NEW_LINE> self.mag = mag <NEW_LINE> <DEDENT> def apply(self, img, **params): <NEW_LINE> <INDENT> bit = np.round(8 - self.mag * 4 / 9).astype(np.int) <NE...
PIL.ImageOps.posterizeなTransform
62598eea56b00c62f0fb0ff5
class ArtifactTestHelper(test_lib.FlowTestsBaseclass): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def LoadTestArtifacts(cls): <NEW_LINE> <INDENT> test_artifacts_file = os.path.join( config_lib.CONFIG["Test.data_dir"], "test_artifacts.json") <NEW_LINE> artifact_lib.LoadArtifactsFromFiles([test_artifacts_file]) <NEW_LIN...
Helper class for tests using artifacts.
62598eea851cf427c66b69ec
class BlogListingPage(RoutablePageMixin, Page): <NEW_LINE> <INDENT> template = "blog/blog_listing_page.html" <NEW_LINE> custom_title = models.CharField( max_length=100, blank=False, null=False, help_text='Overwrites the default title ', ) <NEW_LINE> content_panels = Page.content_panels + [ FieldPanel("custom_title"), ]...
Listing page lists all the Blog Detail Pages.
62598eeacc0a2c1114479729
class UrlsWithSlugTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.user = get_user_model().objects.create_user( username='foo', email='foo@user.com', password='123', slug='f-o-o', is_boss=True ) <NEW_LINE> self.boss = Boss.objects.create(user=self.user) <NEW_LINE> self.project = Project...
Test (boss/slug, project/slug) pages
62598eeadc8b845886d51ce8
class Collation(DbSchemaObject): <NEW_LINE> <INDENT> keylist = ['schema', 'name'] <NEW_LINE> single_extern_file = True <NEW_LINE> catalog = 'pg_collation' <NEW_LINE> def __init__(self, name, schema, description, owner, lc_collate, lc_ctype, oid=None): <NEW_LINE> <INDENT> super(Collation, self).__init__(name, schema, de...
A collation definition
62598eea01c39578d7f114cf
class Parsing1(MessageParser): <NEW_LINE> <INDENT> re1 = re.compile(r'(?P<DEVICE>.*):(?P<PATH>.*) - (?P<status>.*)') <NEW_LINE> def parseMessage(self, message): <NEW_LINE> <INDENT> res = {} <NEW_LINE> match = re.match(self.re1, message) <NEW_LINE> if match: <NEW_LINE> <INDENT> match = match.groupdict() <NEW_LINE> for k...
A class to hold all message parsing activity for handling online and offline messages. Examples: * WDC_WD10EFRX-68PJCN0_WD-WCC4JLHVDELY: sdk - path offline * WDC_WD10EFRX-68PJCN0_WD-WCC4JLHVDELY: sdk - directio checker reports path is up Fields are: * DEVICE * PATH * STATUS Also, fake up a MESSAGE_ID field, bas...
62598eea2c8b7c6e89bd1ee6
class RHEditContributionType(RHManageContributionTypeBase): <NEW_LINE> <INDENT> def _process(self): <NEW_LINE> <INDENT> form = ContributionTypeForm(event=self.event, obj=self.contrib_type) <NEW_LINE> if form.validate_on_submit(): <NEW_LINE> <INDENT> old_name = self.contrib_type.name <NEW_LINE> form.populate_obj(self.co...
Dialog to edit a ContributionType
62598eead7e4931a7ef3a7c4
class ResourceMetricDefinition(Resource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'location': {'required': True}, 'resource_metric_definition_name': {'readonly': True}, 'unit': {'readonly': True}, 'primary_aggregation_type': {'readonly': True}, 'metric_availabilities': {'readonly': True}, 'resourc...
Metadata for the metrics. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource Id. :vartype id: str :param name: Resource Name. :type name: str :param kind: Kind of resource. :type kind: str :param location: Resource Location. :type location: str :param type: Reso...
62598eea8e7ae83300ee77b4
class RazerDeathAdderEssential(__RazerDeviceSpecialBrightnessSuspend): <NEW_LINE> <INDENT> USB_VID = 0x1532 <NEW_LINE> USB_PID = 0x006E <NEW_LINE> METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', 'set_logo_static_n...
Class for the Razer DeathAdder Essential
62598eead58c6744b42db647
class GetPodcastResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None)
A ResultSet with methods tailored to the values returned by the GetPodcast Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62598eeaadb09d7d5dc08ced
class SqsClientSanityCheck(unittest.TestCase): <NEW_LINE> <INDENT> SERVICE = "sqs" <NEW_LINE> QUEUE_NAME = "dmsmart-integration-tests" <NEW_LINE> QUEUE_URL = None <NEW_LINE> QUEUE_REGION = "eu-west-1" <NEW_LINE> REQUEST_SIGNER = AWSRequestSignerV4(aws_config.AWS_ACCESS_KEY, aws_config.AWS_SECRET_KEY, aws_config.AWS_REG...
This class provides the test cases that ensure that sqs client works correctly.
62598eea7d43ff248742678e
class IncompatibleMomentError(Exception): <NEW_LINE> <INDENT> pass
Error that occurs when a moment is not supported by a calibration routine.
62598eea1b99ca400228e8a0
class Time(pydrogen.Typical): <NEW_LINE> <INDENT> def Statements(self, ss): return sum(ss.post()) <NEW_LINE> def Assign(self, targets, e): return 1 + e.post() <NEW_LINE> def For(self, target, itr, ss, orelse): return Size(itr.pre()) * ss.post() <NEW_LINE> def BoolOp(self, es): return 1 + sum(es.post()) <NEW_LINE> def B...
Numeric running time approximation for a small subset of Python.
62598eeabd1bec0571e1445c
class BaseNode(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._child = None <NEW_LINE> <DEDENT> def run(self, *args, **kwargs): <NEW_LINE> <INDENT> return self.child.run(*args, **kwargs) <NEW_LINE> <DEDENT> def insert(self, node): <NEW_LINE> <INDENT> if not isinstance(node, self.__class__): <...
BaseNode is de base class of all node types
62598eea30bbd72246468359
class TrialEnd(db.EntityName): <NEW_LINE> <INDENT> pass
User subscription trials ending on the same day. Value: date in ISO format as a string, eg. '2020-02-19'.
62598eea97e22403b3839615
class StripeWebhook(APIView): <NEW_LINE> <INDENT> swagger_schema = None <NEW_LINE> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> processor_backend = get_broker().processor_backend <NEW_LINE> stripe.api_key = processor_backend.priv_key <NEW_LINE> endpoint_secret = settings.PROCESSOR_HOOK_SECRET <NEW_LINE...
Answers callback from Stripe. **Examples** .. code-block:: http POST /api/stripe/postevent HTTP/1.1 .. code-block:: json {}
62598eea435de62698e9a4fb
class MultiprocessingStringIO: <NEW_LINE> <INDENT> _manager = multiprocessing.Manager() <NEW_LINE> proxy = _manager.list() <NEW_LINE> def getvalue(self): <NEW_LINE> <INDENT> return ''.join(i for i in self.proxy) <NEW_LINE> <DEDENT> def writelines(self, content_list): <NEW_LINE> <INDENT> for item in content_list: <NEW_L...
Provide a StringIO-like interface to the multiprocessing ListProxy. The multiprocessing ListProxy needs to be instantiated before the flaky plugin is configured, so the list is created as a class variable.
62598eea4f88993c371ef87a
class Employee(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User, on_delete=models.CASCADE) <NEW_LINE> first_name = models.CharField(verbose_name=_("First name"), max_length=255, blank=True, null=True) <NEW_LINE> last_name = models.CharField(verbose_name=_("Last name"), max_length=255, blank=True, nul...
Employee ORM model
62598eea2c8b7c6e89bd1ee7
class ChildView(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.user = User.objects.create_user(username='ChildViewTest', password='Test', email='email@email.com') <NEW_LINE> self.child = Child.objects.create(username=self.user, childName='ChildView Child', dob='2017-06-26', activate=True) <NEW...
unit tests for my_child, child_activate and child_delete view
62598eea9c8ee8231303f4ec
class _LDAPUserGroups: <NEW_LINE> <INDENT> def __init__(self, ldap_user): <NEW_LINE> <INDENT> self.settings = ldap_user.settings <NEW_LINE> self._ldap_user = ldap_user <NEW_LINE> self._group_type = None <NEW_LINE> self._group_search = None <NEW_LINE> self._group_infos = None <NEW_LINE> self._group_dns = None <NEW_LINE>...
Represents the set of groups that a user belongs to.
62598eea236d856c2adc87a8
@dataclass <NEW_LINE> class Thumbnail(BaseModel): <NEW_LINE> <INDENT> url: Optional[str] = field(default=None) <NEW_LINE> width: Optional[int] = field(default=None, repr=False) <NEW_LINE> height: Optional[int] = field(default=None, repr=False)
A class representing the thumbnail resource info. Refer: https://developers.google.com/youtube/v3/docs/channels#snippet.thumbnails.(key).url
62598eea4428ac0f6e656c79
class OralSlideSeg(Dataset): <NEW_LINE> <INDENT> def __init__(self, slide_list, img_dir, info, mask_dir=None, label=True, transform=None): <NEW_LINE> <INDENT> super(OralSlideSeg, self).__init__() <NEW_LINE> self.slides = slide_list <NEW_LINE> self.img_dir = img_dir <NEW_LINE> self.label = label <NEW_LINE> if self.label...
OralSlide for segmentation
62598eea009cb60464cffc74
class Block(Polygon): <NEW_LINE> <INDENT> def __init__(self, center=None, size=None, material=air): <NEW_LINE> <INDENT> Polygon.__init__(self) <NEW_LINE> if center is not None: <NEW_LINE> <INDENT> self.center = center <NEW_LINE> <DEDENT> if size is not None: <NEW_LINE> <INDENT> self.size = size <NEW_LINE> <DEDENT> self...
Represents a block-shaped region of the simulation domain (in any number of dimensions.) Strictly speaking, the shape is a rectangular cuboid; but in common parlance it is a line in one dimension, a rectangle in two, and a cuboid in three. :param center: coordinates of where the center of the block should be locate...
62598eead268445f26638f21
class pymParameter: <NEW_LINE> <INDENT> def description(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def create_param(cls): <NEW_LINE> <INDENT> return cls() <NEW_LINE> <DEDENT> def __init__(self): <NEW_LINE> <INDENT> self.num_channels = 1 <NEW_LINE> self.initialized =...
pynParameter is the abstraction of any parameter we might want to vary in an experiment (eg your X-axis later) such as a motorized stage, a motorized iris, a shutter, etc. a parameter might have different channels (such as two axis) An important difference of a parameter to a job is, that a parameter can not act on its...
62598eea10dbd63aa1c6f29b
class Torque(Package): <NEW_LINE> <INDENT> homepage = "https://github.com/abarbu/torque" <NEW_LINE> has_code = False <NEW_LINE> maintainers = ['sethrj'] <NEW_LINE> version('3.0.4') <NEW_LINE> version('3.0.2') <NEW_LINE> provides('pbs') <NEW_LINE> def install(self, spec, prefix): <NEW_LINE> <INDENT> raise InstallError( ...
TORQUE (Terascale Open-source Resource and QUEue Manager) is an open source project based on the original PBS resource manager developed by NASA, LLNL, and MRJ.
62598eea379a373c97d9771d