code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ProjectUsersAdvSearch(SingleListResource): <NEW_LINE> <INDENT> exclude_fields = ['project', 'project_group_user'] <NEW_LINE> dynamic_fields = ['is_ongoing', 'is_referred'] <NEW_LINE> input_cls = Project <NEW_LINE> def queryset(self, id): <NEW_LINE> <INDENT> from ercc.ercc_bps.project.forms import SearchMemberForm... | project내 사용자 목록(상세검색용) | 62598fb73d592f4c4edbafe8 |
class TestBcvSeqLibWithVariantMinCountFilter(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> prefix = "variant_mincount" <NEW_LINE> cfg = load_config_data(CFG_FILE, CFG_DIR) <NEW_LINE> cfg["fastq"]["reads"] = "{}/{}.fq".format(READS_DIR, prefix) <NEW_LINE> cfg["barcodes"]["map file"] = "{}/... | Test that variants with less than a count of 2 are removed. | 62598fb7d486a94d0ba2c0f5 |
class Driver: <NEW_LINE> <INDENT> app_driver = None <NEW_LINE> @classmethod <NEW_LINE> def get_app_driver(cls): <NEW_LINE> <INDENT> if not cls.app_driver: <NEW_LINE> <INDENT> desired_caps = { 'platformName': 'Android', 'platformVersion': '5.1', 'deviceName': 'sanxing', 'appPackage': 'com.android.settings', 'appActivity... | 声明web 或者 app的驱动对象 | 62598fb7fff4ab517ebcd910 |
class RevisionHealthState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> HEALTHY = "Healthy" <NEW_LINE> UNHEALTHY = "Unhealthy" <NEW_LINE> NONE = "None" | Current health State of the revision
| 62598fb792d797404e388bf7 |
class HealthcareRelation(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'relation_type': {'required': True}, 'entities': {'required': True}, } <NEW_LINE> _attribute_map = { 'relation_type': {'key': 'relationType', 'type': 'str'}, 'entities': {'key': 'entities', 'type': '[HealthcareRelationEntity]'}, }... | Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context.
All required parameters must be populated in order to send to Azure.
:ivar relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or
'Frequen... | 62598fb77d847024c075c4e4 |
class ReadFile: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.filter = None <NEW_LINE> self.is_reading = False <NEW_LINE> <DEDENT> def load(self, loader): <NEW_LINE> <INDENT> loader.add_option( "rfile", typing.Optional[str], None, "Read flows from file." ) <NEW_LINE> loader.add_option( "readfile_filt... | An addon that handles reading from file on startup. | 62598fb7f548e778e596b6cd |
class ProposalLayer(KE.Layer): <NEW_LINE> <INDENT> def __init__(self, proposal_count, nms_threshold, anchors, config=None, **kwargs): <NEW_LINE> <INDENT> super(ProposalLayer, self).__init__(**kwargs) <NEW_LINE> self.config = config <NEW_LINE> self.proposal_count = proposal_count <NEW_LINE> self.nms_threshold = nms_thre... | Receives anchor scores and selects a subset to pass as proposals
to the second stage. Filtering is done based on anchor scores and
non-max suppression to remove overlaps. It also applies bounding
box refinement deltas to anchors.
Inputs:
rpn_probs: [batch, anchors, (bg prob, fg prob)]
rpn_bbox: [batch, anchors... | 62598fb74a966d76dd5ef000 |
class TestLuminanceNewhall1943(unittest.TestCase): <NEW_LINE> <INDENT> def test_luminance_Newhall1943(self): <NEW_LINE> <INDENT> self.assertAlmostEqual( luminance_Newhall1943(3.74629715382), 10.4089874577, places=7) <NEW_LINE> self.assertAlmostEqual( luminance_Newhall1943(8.64728711385), 71.3174801757, places=7) <NEW_L... | Defines :func:`colour.colorimetry.luminance.luminance_Newhall1943`
definition unit tests methods. | 62598fb7be7bc26dc9251ef0 |
class RequestAttrGetSpiritFacadeType: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I64, 'actor_', None, None, ), (2, TType.I32, 'type_', None, None, ), ) <NEW_LINE> def __init__(self, actor_=None, type_=None,): <NEW_LINE> <INDENT> self.actor_ = actor_ <NEW_LINE> self.type_ = type_ <NEW_LINE> <DEDENT> def read(se... | Attributes:
- actor_
- type_ | 62598fb763b5f9789fe85296 |
class SocialMedia(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> title = models.CharField(max_length=200, unique=True) <NEW_LINE> url = models.URLField(max_length=200) <NEW_LINE> image = models.ImageField(default='static/img/default.png') | Model created for each social media instance | 62598fb791f36d47f2230f3d |
class backend: <NEW_LINE> <INDENT> escaped_chars = ( ('"', r'\"',), ("'", r"\'",), ("%", "%%",), ) <NEW_LINE> def identifyer_quotes(self, name): <NEW_LINE> <INDENT> return '"%s"' % name <NEW_LINE> <DEDENT> def string_quotes(self, string): <NEW_LINE> <INDENT> return "'%s'" % string <NEW_LINE> <DEDENT> def escape_string(... | This class provies all the methods needed for a datasource to work
with an SQL backend. This class' instances will work for most
SQL92 complient backends that use utf-8 unicode encoding. | 62598fb73317a56b869be5e2 |
class GatewayRouteListResult(Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[GatewayRoute]'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(GatewayRouteListResult, self).__init__(**kwargs) <NEW_LINE> self.value = kwargs.get('value', None) | List of virtual network gateway routes.
:param value: List of gateway routes
:type value: list[~azure.mgmt.network.v2016_09_01.models.GatewayRoute] | 62598fb756ac1b37e6302316 |
class UUIDListSimple: <NEW_LINE> <INDENT> def __init__(self, project_uuids, class_uri): <NEW_LINE> <INDENT> self.uuids = Manifest.objects.values_list( 'uuid', flat=True) .filter(project_uuid__in=project_uuids, class_uri=class_uri).iterator() | The list of UUIDs used to create an export table. | 62598fb7a8370b77170f0508 |
class MoveSteering(MoveTank): <NEW_LINE> <INDENT> def on_for_rotations(self, steering, speed, rotations, brake=True, block=True): <NEW_LINE> <INDENT> (left_speed, right_speed) = self.get_speed_steering(steering, speed) <NEW_LINE> MoveTank.on_for_rotations(self, SpeedNativeUnits(left_speed), SpeedNativeUnits(right_speed... | Controls a pair of motors simultaneously, via a single "steering" value and a speed.
steering [-100, 100]:
* -100 means turn left on the spot (right motor at 100% forward, left motor at 100% backward),
* 0 means drive in a straight line, and
* 100 means turn right on the spot (left motor at 100% forward... | 62598fb776e4537e8c3ef6d0 |
class AdaptorEthRecvQueueProfile(ManagedObject): <NEW_LINE> <INDENT> consts = AdaptorEthRecvQueueProfileConsts() <NEW_LINE> naming_props = set([]) <NEW_LINE> mo_meta = MoMeta("AdaptorEthRecvQueueProfile", "adaptorEthRecvQueueProfile", "eth-rcv-q", VersionMeta.Version101e, "InputOutput", 0x7f, [], ["admin", "ls-config-p... | This is AdaptorEthRecvQueueProfile class. | 62598fb710dbd63aa1c70ce2 |
@python_2_unicode_compatible <NEW_LINE> class Container(Sequence): <NEW_LINE> <INDENT> def __init__(self, separator, sequence=[], esc='\\', separators='\r|~^&'): <NEW_LINE> <INDENT> super(Container, self).__init__(sequence) <NEW_LINE> self.separator = separator <NEW_LINE> self.esc = esc <NEW_LINE> self.separators = sep... | Abstract root class for the parts of the HL7 message. | 62598fb75fc7496912d48310 |
class SessionTracker(object): <NEW_LINE> <INDENT> __slots__ = ('_app', '__outgoing') <NEW_LINE> @contract_epydoc <NEW_LINE> def __init__(self, app): <NEW_LINE> <INDENT> self._app = app <NEW_LINE> self.__outgoing = {} <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<SessionTracker: {0!r}>' ... | The class capable of tracking the status of connection sessions
established to some peers, whether nodes or hosts.
It also keeps an eye on each incoming connection, but does not store
the incoming sessions as it is not needed at the moment.
The session tracked here are the series of connections
establishments/losses t... | 62598fb730dc7b766599f977 |
class DocumentFairness(db.Model): <NEW_LINE> <INDENT> __tablename__ = "document_fairness" <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> doc_id = Column(Integer, ForeignKey('documents.id', ondelete='CASCADE'), index=True, nullable=False) <NEW_LINE> fairness_id = Column(Integer, ForeignKey('fair... | Fairness/bias description for an article. | 62598fb72c8b7c6e89bd38ef |
class Component(object): <NEW_LINE> <INDENT> def __init__(self, x, y, w=0, h=0, is_selectable=False): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> self.w = w <NEW_LINE> self.h = h <NEW_LINE> self.is_selectable = is_selectable <NEW_LINE> self.focused = False <NEW_LINE> <DEDENT> def publish_change(self... | An abstract class for ui & menu components | 62598fb79f288636728188ee |
class Result: <NEW_LINE> <INDENT> def __init__(self, status, directive, message): <NEW_LINE> <INDENT> self.status = status <NEW_LINE> self.directive = directive <NEW_LINE> self.message = message <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> result = '%s: ' % self.status <NEW_LINE> if self.directive: <NEW_L... | A result of a test: a PASS/FAIL, with a message, and an optional
directive that was being tested. | 62598fb73d592f4c4edbafeb |
class ReleaseTypeViewSet(StrictQueryParamMixin, mixins.ListModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> queryset = models.ReleaseType.objects.all() <NEW_LINE> serializer_class = ReleaseTypeSerializer <NEW_LINE> filter_class = filters.ReleaseTypeFilter <NEW_LINE> permission_classes = (APIPermission,) <NEW_L... | ##Overview##
This page shows the usage of the **Release Types API**, please see the
following for more details.
##Test tools##
You can use ``curl`` in terminal, with -X _method_ (GET|POST|PUT|PATCH|DELETE),
-d _data_ (a json string). or GUI plugins for
browsers, such as ``RESTClient``, ``RESTConsole``. | 62598fb732920d7e50bc6179 |
class ResetPassword(APIView): <NEW_LINE> <INDENT> def post(self, request, format=None): <NEW_LINE> <INDENT> data = request.data <NEW_LINE> if data['activity'] == 'token': <NEW_LINE> <INDENT> if check_token(data['email'], data['token']): <NEW_LINE> <INDENT> token = jwt.encode({'email': data['email'], 'random': str( date... | Endpoint to reset a user's password | 62598fb7aad79263cf42e8fe |
class LoginPage(object): <NEW_LINE> <INDENT> _username_locator = ".//*[@id='cred_userid_inputtext']" <NEW_LINE> _password_locator = ".//*[@id='cred_password_inputtext']" <NEW_LINE> _signinbutton_locator = ".//*[@id='cred_sign_in_button']" <NEW_LINE> _loginclass_locator = ".//*[text()=\'Power BI\']" <NEW_LINE> _setting_... | Login Class | 62598fb7379a373c97d99140 |
@tf_export("data.experimental.service.DispatcherConfig") <NEW_LINE> class DispatcherConfig( collections.namedtuple("DispatcherConfig", [ "port", "protocol", "work_dir", "fault_tolerant_mode", "job_gc_check_interval_ms", "job_gc_timeout_ms" ])): <NEW_LINE> <INDENT> def __new__(cls, port=0, protocol=None, work_dir=None, ... | Configuration class for tf.data service dispatchers.
Fields:
port: Specifies the port to bind to. A value of 0 indicates that the server
may bind to any available port.
protocol: The protocol to use for communicating with the tf.data service.
Defaults to `"grpc"`.
work_dir: A directory to store dispatche... | 62598fb74527f215b58ea001 |
class CountrySerializers(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Country <NEW_LINE> fields = ('id', 'name') | Country Serializers | 62598fb7a219f33f346c6930 |
class SetExtension(_Action): <NEW_LINE> <INDENT> def __init__(self, extension): <NEW_LINE> <INDENT> _Action.__init__(self, 'SET EXTENSION', quote(extension)) | Sets the extension for Asterisk to use upon completion of this AGI instance.
No extension-validation is performed; specifying an invalid extension will cause the call to
terminate unexpectedly.
`AGIAppError` is raised on failure. | 62598fb744b2445a339b6a09 |
class MLPCritic(nn.Module): <NEW_LINE> <INDENT> def __init__(self, obs_size: int, n_actions: int, hidden_size: int = 32): <NEW_LINE> <INDENT> super(MLPCritic, self).__init__() <NEW_LINE> self.net = nn.Sequential( nn.Linear(obs_size, hidden_size), nn.ReLU(), nn.Linear(hidden_size, n_actions), ) <NEW_LINE> <DEDENT> def f... | Simple MLP network
Args:
obs_size: observation/state size of the environment
n_actions: number of discrete actions available in the environment
hidden_size: size of hidden layers | 62598fb7f548e778e596b6d0 |
class QuotaDefinitionList(): <NEW_LINE> <INDENT> def __init__(self, resources: List['QuotaDefinition']) -> None: <NEW_LINE> <INDENT> self.resources = resources <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_dict(cls, _dict: Dict) -> 'QuotaDefinitionList': <NEW_LINE> <INDENT> args = {} <NEW_LINE> if 'resources' in... | A list of quota definitions.
:attr List[QuotaDefinition] resources: The list of quota definitions. | 62598fb763d6d428bbee28da |
class BaseTaskRunner(LoggingMixin): <NEW_LINE> <INDENT> def __init__(self, local_task_job): <NEW_LINE> <INDENT> super(BaseTaskRunner, self).__init__(local_task_job.task_instance) <NEW_LINE> self._task_instance = local_task_job.task_instance <NEW_LINE> popen_prepend = [] <NEW_LINE> cfg_path = None <NEW_LINE> if self._ta... | Runs Airflow task instances by invoking the `airflow run` command with raw
mode enabled in a subprocess. | 62598fb7283ffb24f3cf39ae |
class Money(types.TypeDecorator): <NEW_LINE> <INDENT> impl = types.Numeric(20, 8) | Money amount. | 62598fb77b180e01f3e490e7 |
class Color(DefaultColor): <NEW_LINE> <INDENT> pass | This subclass is required when the user chooses to use 'default' theme.
Because the segments require a 'Color' class for every theme. | 62598fb7cc0a2c111447b138 |
class _BaseSearchObject: <NEW_LINE> <INDENT> _NON_STICKY_ATTRS = () <NEW_LINE> def _transfer_attrs(self, obj): <NEW_LINE> <INDENT> for attr in self.__dict__: <NEW_LINE> <INDENT> if attr not in self._NON_STICKY_ATTRS: <NEW_LINE> <INDENT> setattr(obj, attr, self.__dict__[attr]) | Abstract class for SearchIO objects. | 62598fb776e4537e8c3ef6d2 |
class Line(Component): <NEW_LINE> <INDENT> def __init__( self, a = 0, b = 1 ): <NEW_LINE> <INDENT> Component.__init__(self, ['a','b']) <NEW_LINE> self.name = 'Line' <NEW_LINE> self.a.free, self.b.free = True, True <NEW_LINE> self.a.value, self.b.value = a, b <NEW_LINE> self.isbackground = True <NEW_LINE> self.convolved... | Given an array of the same shape as Spectrum energy_axis, returns it as
a component that can be added to a model. | 62598fb75fc7496912d48311 |
@linter(executable='cr') <NEW_LINE> class JSComplexityBear: <NEW_LINE> <INDENT> LANGUAGES = {'JavaScript'} <NEW_LINE> REQUIREMENTS = {NpmRequirement('complexity-report', '2.0.0-alpha')} <NEW_LINE> AUTHORS = {'The coala developers'} <NEW_LINE> AUTHORS_EMAILS = {'coala-devel@googlegroups.com'} <NEW_LINE> LICENSE = 'AGPL-... | Calculates cyclomatic complexity using ``cr``, the command line utility
provided by the NodeJS module ``complexity-report``. | 62598fb7498bea3a75a57c4e |
@unittest.skipUnless(selinux.is_selinux_enabled() == 1, "SELinux is disabled") <NEW_LINE> class SELinuxContextTestCase(loopbackedtestcase.LoopBackedTestCase): <NEW_LINE> <INDENT> def __init__(self, methodName='runTest'): <NEW_LINE> <INDENT> super(SELinuxContextTestCase, self).__init__(methodName=methodName, deviceSpec=... | Testing SELinux contexts.
| 62598fb730dc7b766599f979 |
class Field_actor_postedtime(acscsv._Field): <NEW_LINE> <INDENT> path = ["actor", "postedTime"] <NEW_LINE> def __init__(self, json_record): <NEW_LINE> <INDENT> super( Field_actor_postedtime , self).__init__(json_record) <NEW_LINE> input_fmt = "%Y-%m-%dT%H:%M:%S.000Z" <NEW_LINE> self.value = datetime.strptime(self.value... | Take a dict, assign to self.value the value of actor.postedTime | 62598fb72c8b7c6e89bd38f0 |
class ThumbnailHook(Hook): <NEW_LINE> <INDENT> def execute(self, **kwargs): <NEW_LINE> <INDENT> engine = self.parent.engine <NEW_LINE> engine_name = engine.name <NEW_LINE> return None | Hook that can be used to provide a pre-defined thumbnail for the app | 62598fb766673b3332c304fb |
class Data_Set(models.Model): <NEW_LINE> <INDENT> indicator = models.ForeignKey( Health_Indicator, on_delete=models.PROTECT, related_name="data_sets" ) <NEW_LINE> year = models.PositiveSmallIntegerField( validators=[ MinValueValidator(1000, message="Years before 1000 C.E. are extremely unlikely..."), MaxValueValidator(... | A collection of data points for a single year and health indicator, generated from a document | 62598fb72c8b7c6e89bd38f1 |
class IPHandlerTests(SimpleTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> prep_db() <NEW_LINE> self.factory = RequestFactory() <NEW_LINE> self.user = CRITsUser.objects(username=TUSER_NAME).first() <NEW_LINE> self.user.sources.append(TSRC) <NEW_LINE> self.user.save() <NEW_LINE> <DEDENT> def tearDown... | Test IP handlers. | 62598fb797e22403b383b032 |
class pattern: <NEW_LINE> <INDENT> def __init__(self, raw=""): <NEW_LINE> <INDENT> self.name = "" <NEW_LINE> self.solved_problem = "" <NEW_LINE> if raw != "": <NEW_LINE> <INDENT> self.derive = self.process(raw) <NEW_LINE> <DEDENT> <DEDENT> def process(self, raw) -> List[str]: <NEW_LINE> <INDENT> temp = raw.split("->") ... | 规则类,每一个规则类包含以下属性:
1.规则的开始符 name
2.规则推导出的字符列表 derive | 62598fb7d486a94d0ba2c0f9 |
class Participante(Base): <NEW_LINE> <INDENT> __tablename__ = 'participante' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> nombre = Column(String, nullable=False) <NEW_LINE> correo_electronico = Column(String, nullable=False) <NEW_LINE> id_competencia = Column(Integer, ForeignKey('competencia.id')) <NEW_... | Almacena informacion de un participante | 62598fb7796e427e5384e8c1 |
class Error(BaseType): <NEW_LINE> <INDENT> status = False <NEW_LINE> def __init__(self, ok, error_code, description): <NEW_LINE> <INDENT> self.status = ok <NEW_LINE> self.error_code = error_code <NEW_LINE> self.description = description | Error type class. | 62598fb726068e7796d4ca85 |
class User(object): <NEW_LINE> <INDENT> user_path = setting.USER_DIR <NEW_LINE> user_home_path = setting.USER_HOME_DIR <NEW_LINE> def __init__(self, username, password): <NEW_LINE> <INDENT> self.username = username <NEW_LINE> self.password = password <NEW_LINE> <DEDENT> def user_info(self): <NEW_LINE> <INDENT> user_lis... | 用户类 | 62598fb8dc8b845886d536e4 |
class Model: <NEW_LINE> <INDENT> def __init__(self, logger = None): <NEW_LINE> <INDENT> self.logger = Logger.logger() if logger == None else logger <NEW_LINE> self.channels = { } <NEW_LINE> self.bridges = { } <NEW_LINE> self.trunks = { } <NEW_LINE> self.calls = [ ] <NEW_LINE> self.numbers = { } <NEW_LINE> <DEDENT> def ... | Model describes how Events received from one or more AMI Sources affect
the dynamic call state maintained by Hackamore. Model is not concerned
with how those Events are received (that's the Controller), nor with how
they are displayed (that's the View). There can be more than one kind of
Model. This particular Model is... | 62598fb83539df3088ecc3d9 |
class Solution: <NEW_LINE> <INDENT> def ladderLength(self, start, end, dict): <NEW_LINE> <INDENT> dict.add(end) <NEW_LINE> wordLen = len(start) <NEW_LINE> queue = collections.deque([(start, 1)]) <NEW_LINE> while queue: <NEW_LINE> <INDENT> curr = queue.popleft() <NEW_LINE> currWord = curr[0]; currLen = curr[1] <NEW_LINE... | @param: start: a string
@param: end: a string
@param: dict: a set of string
@return: An integer | 62598fb8aad79263cf42e900 |
class AddrPublicationAddRsp(ResponsePacket): <NEW_LINE> <INDENT> def __init__(self, raw_data): <NEW_LINE> <INDENT> __data = {} <NEW_LINE> __data["address_handle"] = barray_pop(raw_data, 2) <NEW_LINE> assert(len(raw_data) == 0) <NEW_LINE> super(AddrPublicationAddRsp, self).__init__("AddrPublicationAdd", 0xA4, __data) | Response to a(n) AddrPublicationAdd command. | 62598fb860cbc95b0636446b |
class TestNumberAttribute: <NEW_LINE> <INDENT> def test_number_attribute(self): <NEW_LINE> <INDENT> attr = NumberAttribute() <NEW_LINE> assert attr is not None <NEW_LINE> assert attr.attr_type == NUMBER <NEW_LINE> attr = NumberAttribute(default=1) <NEW_LINE> assert attr.default == 1 <NEW_LINE> <DEDENT> def test_number_... | Tests number attributes | 62598fb8be7bc26dc9251ef2 |
class GreenLight(QtGui.QWidget): <NEW_LINE> <INDENT> def __init__(self, parent=None): <NEW_LINE> <INDENT> super(GreenLight, self).__init__(parent) <NEW_LINE> self.setFixedSize(22, 22) <NEW_LINE> self.green = QtGui.QColor(44, 173, 9) <NEW_LINE> <DEDENT> def paintEvent(self, e): <NEW_LINE> <INDENT> painter = QtGui.QPaint... | Creates a green circle | 62598fb80fa83653e46f500e |
class CarrierRequest(models.Model): <NEW_LINE> <INDENT> sender = models.ForeignKey(Contractor, on_delete=models.CASCADE, related_name='+', ) <NEW_LINE> loading_address = models.CharField(max_length=256) <NEW_LINE> loading_contacts = models.CharField(max_length=256, blank=True) <NEW_LINE> recipient = models.ForeignKey(C... | Carrier request / Заявка с перевозчиком | 62598fb84428ac0f6e65864e |
class Coin(IntervalModule): <NEW_LINE> <INDENT> settings = ( ("format", "format string used for output."), ("coin", "cryptocurrency to fetch"), ("currency", "fiat currency to show fiscal data"), ("symbol", "coin symbol"), ("interval", "update interval in seconds"), ("status_interval", "percent change status in the last... | Fetches live data of all cryptocurrencies availible at coinmarketcap <https://coinmarketcap.com/>.
Coin setting should be equal to the 'id' field of your coin in <https://api.coinmarketcap.com/v1/ticker/>.
Example coin settings: bitcoin, bitcoin-cash, ethereum, litecoin, dash, lisk.
Example currency settings: usd, eur... | 62598fb84f88993c371f05a3 |
class LinReg(): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.X = x[:, np.newaxis] <NEW_LINE> self.y = y <NEW_LINE> self.sklearn_lr = LinearRegression() <NEW_LINE> self.sklearn_lr = self.sklearn_lr.fit(self.X, self.y) <NEW_LINE> self.y_pred = self.sklearn_lr.predict(self.X... | A class to realize linear regressions. | 62598fb84a966d76dd5ef004 |
class Post(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=70) <NEW_LINE> body = models.TextField() <NEW_LINE> created_time = models.DateTimeField() <NEW_LINE> modified_time = models.DateTimeField() <NEW_LINE> excerpt = models.CharField(max_length=200,blank=True) <NEW_LINE> category = models.Fore... | 文章涉及的字段多 | 62598fb821bff66bcd722d96 |
class AbstractCamera(ABC): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.zoom = 45.0 <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def lookAround(self, xoffset: float, yoffset: float, pitchBound: bool): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def ... | An abstract camera class | 62598fb8d7e4931a7ef3c1c3 |
class BitFieldCreator: <NEW_LINE> <INDENT> def __init__(self, field): <NEW_LINE> <INDENT> self.field = field <NEW_LINE> <DEDENT> def __set__(self, obj, value): <NEW_LINE> <INDENT> obj.__dict__[self.field.name] = self.field.to_python(value) <NEW_LINE> <DEDENT> def __get__(self, obj, type=None): <NEW_LINE> <INDENT> if ob... | A placeholder class that provides a way to set the attribute on the model.
Descriptor for BitFields. Checks to make sure that all flags of the
instance match the class. This is to handle the case when caching
an older version of the instance and a newer version of the class is
available (usually during deploys). | 62598fb8ec188e330fdf89be |
class BillingAddressResponse(object): <NEW_LINE> <INDENT> def __init__(self, response_code=None, billing_address=None): <NEW_LINE> <INDENT> self.swagger_types = { 'response_code': 'int', 'billing_address': 'BillingAddress' } <NEW_LINE> self.attribute_map = { 'response_code': 'ResponseCode', 'billing_address': 'BillingA... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fb8e5267d203ee6ba2c |
class QuantuminoSolver(SageObject): <NEW_LINE> <INDENT> def __init__(self, aside, box=(5,8,2)): <NEW_LINE> <INDENT> if not 0 <= aside < 17: <NEW_LINE> <INDENT> raise ValueError("aside (=%s) must be between 0 and 16" % aside) <NEW_LINE> <DEDENT> self._aside = aside <NEW_LINE> self._box = box <NEW_LINE> <DEDENT> def __r... | Return the Quantumino solver for the given box where one of the
pentamino is put aside.
INPUT:
- ``aside`` - integer, from 0 to 16, the aside pentamino
- ``box`` - tuple of size three (optional, default: ``(5,8,2)``),
size of the box
EXAMPLES::
sage: from sage.games.quantumino import QuantuminoSolver
sage... | 62598fb88a43f66fc4bf22a8 |
class BaseReader(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.source_file = getattr(settings, 'SVG_ICONS_SOURCE_FILE') <NEW_LINE> if not self.source_file: <NEW_LINE> <INDENT> raise SVGReaderError( "SVG_ICONS_SOURCE_FILE needs to be defined for icons to work.") <NEW_LINE> <DEDENT> self.svg_p... | Base reader class not for direct use
Subclass this to have your own implementation, the class
to use can be defined in the settings with
SVG_ICONS_READER_CLASS | 62598fb8498bea3a75a57c50 |
class Conta(): <NEW_LINE> <INDENT> def __init__(self, titular, numero, saldo=0): <NEW_LINE> <INDENT> self.titular = titular <NEW_LINE> self.numero = numero <NEW_LINE> self.saldo = saldo <NEW_LINE> self.taxa = 0.5 <NEW_LINE> <DEDENT> def depositar(self, valor): <NEW_LINE> <INDENT> self.saldo += valor <NEW_LINE> return s... | Tentando abstrair uma conta corrente | 62598fb85fc7496912d48312 |
class ShowLogging(ShowLogging_iosxe): <NEW_LINE> <INDENT> pass | Parser for:
* 'show logging'
* 'show logging | include {include}'
* 'show logging | exclude {exclude}' | 62598fb866673b3332c304fd |
class WebDetection(_messages.Message): <NEW_LINE> <INDENT> fullMatchingImages = _messages.MessageField('WebImage', 1, repeated=True) <NEW_LINE> pagesWithMatchingImages = _messages.MessageField('WebPage', 2, repeated=True) <NEW_LINE> partialMatchingImages = _messages.MessageField('WebImage', 3, repeated=True) <NEW_LINE>... | Relevant information for the image from the Internet.
Fields:
fullMatchingImages: Fully matching images from the Internet. Can include
resized copies of the query image.
pagesWithMatchingImages: Web pages containing the matching images from the
Internet.
partialMatchingImages: Partial matching images fro... | 62598fb89f288636728188f2 |
class Unordered(object): <NEW_LINE> <INDENT> def __init__(self, value, extractor): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.extractor = extractor <NEW_LINE> self.node_type = self._node_type() <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> table = self.value['table_'] <NEW_LINE> if table['bucke... | Common representation of Boost.Unordered types | 62598fb83d592f4c4edbafef |
class GreetFriendView(FormView): <NEW_LINE> <INDENT> form_class = GreetingForm <NEW_LINE> template_name = 'response.html' <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> error_msg = 'HTTP GET is not supported' <NEW_LINE> logger.error(error_msg) <NEW_LINE> return self.render_error(error_msg, 400) <NEW_LINE> <DEDE... | Django view that serves the endpoint (greet/) | 62598fb83539df3088ecc3db |
class EncoderDecoder(nn.Block): <NEW_LINE> <INDENT> def __init__(self, encoder, decoder, src_embed, trg_embed, generator): <NEW_LINE> <INDENT> super(EncoderDecoder, self).__init__() <NEW_LINE> self.encoder = encoder <NEW_LINE> self.decoder = decoder <NEW_LINE> self.src_embed = src_embed <NEW_LINE> self.trg_embed = trg_... | A standard Encoder-Decoder architecture. | 62598fb863b5f9789fe8529c |
class RenderObservations(gym.Wrapper): <NEW_LINE> <INDENT> def __init__(self, env): <NEW_LINE> <INDENT> super(RenderObservations, self).__init__(env) <NEW_LINE> if "rgb_array" not in self.metadata["render.modes"]: <NEW_LINE> <INDENT> self.metadata["render.modes"].append("rgb_array") <NEW_LINE> <DEDENT> <DEDENT> def ste... | Add observations rendering in 'rgb_array' mode. | 62598fb871ff763f4b5e78a6 |
class ServerErrorMiddleware: <NEW_LINE> <INDENT> def __init__( self, app: ASGIApp, handler: typing.Callable = None, debug: bool = False ) -> None: <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.handler = handler <NEW_LINE> self.debug = debug <NEW_LINE> <DEDENT> def __call__(self, scope: Scope) -> ASGIInstance: <NEW... | Handles returning 500 responses when a server error occurs.
If 'debug' is set, then traceback responses will be returned,
otherwise the designated 'handler' will be called.
This middleware class should generally be used to wrap *everything*
else up, so that unhandled exceptions anywhere in the stack
always result in ... | 62598fb844b2445a339b6a0b |
class ScheduleExecution(base.Resource): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<Execution: %s>" % self.name | ScheduleExecution is a resource used to hold information about
the execution of a scheduled backup. | 62598fb8bf627c535bcb15d2 |
class MyTasks(My, Votes): <NEW_LINE> <INDENT> label = _("My tasks") <NEW_LINE> column_names = "votable_overview workflow_buttons *" <NEW_LINE> order_by = ['-priority', '-id'] <NEW_LINE> filter_vote_states = "assigned done" <NEW_LINE> filter_ticket_states = "opened started talk" | Show my votes in states assigned and done | 62598fb821bff66bcd722d98 |
@dataclass <NEW_LINE> class PointSource(BaseSimulation): <NEW_LINE> <INDENT> alpha: float = 1.0 <NEW_LINE> amplitude: float = 1.0 <NEW_LINE> frequency: int = 1 <NEW_LINE> p: float = 0.99 <NEW_LINE> r: float = 0.01 <NEW_LINE> seasonal_move: int = 0 <NEW_LINE> seed: Optional[int] = None <NEW_LINE> trend: float = 0.0 <NEW... | Simulation of epidemics which were introduced by point sources.
The basis of this programme is a combination of a Hidden Markov Model
(to get random time points for outbreaks) and a simple model
(compare :class:`epysurv.simulation.SeasonalNoise`) to simulate the baseline.
Parameters
----------
amplitude
Amplitude... | 62598fb85166f23b2e24350b |
class JMModel: <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> token = preprocessing(text) <NEW_LINE> self.totalword = len(token) <NEW_LINE> self.wordCounter = Counter(token) <NEW_LINE> calProb = lambda value: float(value) / self.totalword <NEW_LINE> self.probdict = { name: calProb(value) for name, va... | class of language models
members :
token(list) : text tokenize into 1 word
totalword(int) : total word count
wordCounter(Counter) : Counter of every word count
calProb(function) : the way to calculate(smoothing) probability
probdict(dictionary) : dict of word : prob | 62598fb867a9b606de546100 |
class LoveCalculator(Cog): <NEW_LINE> <INDENT> @in_month(Month.FEBRUARY) <NEW_LINE> @commands.command(aliases=("love_calculator", "love_calc")) <NEW_LINE> @commands.cooldown(rate=1, per=5, type=commands.BucketType.user) <NEW_LINE> async def love(self, ctx: commands.Context, who: Member, whom: Optional[Member] = None) -... | A cog for calculating the love between two people. | 62598fb81b99ca400228f5c8 |
@pulumi.output_type <NEW_LINE> class GetPeeringAttachmentResult: <NEW_LINE> <INDENT> def __init__(__self__, filters=None, id=None, peer_account_id=None, peer_region=None, peer_transit_gateway_id=None, tags=None, transit_gateway_id=None): <NEW_LINE> <INDENT> if filters and not isinstance(filters, list): <NEW_LINE> <INDE... | A collection of values returned by getPeeringAttachment. | 62598fb87b180e01f3e490e9 |
@dataclass <NEW_LINE> class DensePoseChartResultQuantized: <NEW_LINE> <INDENT> labels_uv_uint8: torch.Tensor <NEW_LINE> def to(self, device: torch.device): <NEW_LINE> <INDENT> labels_uv_uint8 = self.labels_uv_uint8.to(device) <NEW_LINE> return DensePoseChartResultQuantized(labels_uv_uint8=labels_uv_uint8) | DensePose results for chart-based methods represented by labels and quantized
inner coordinates (U, V) of individual charts. Each chart is a 2D manifold
that has an associated label and is parameterized by two coordinates U and V.
Both U and V take values in [0, 1].
Quantized coordinates Uq and Vq have uint8 values whi... | 62598fb8cc0a2c111447b13c |
class SinglePotatoResource(Resource): <NEW_LINE> <INDENT> def get(self, id): <NEW_LINE> <INDENT> pot = Potatoes.query.filter_by(id=id).first() <NEW_LINE> current = { 'title': pot.type, 'image': pot.photo_path, 'price': float(pot.price_per_kilo), 'amount': float(pot.amount), 'description': pot.description, 'location': '... | Resource for geting and patching an individual potato | 62598fb88a43f66fc4bf22aa |
@api.route('/centers') <NEW_LINE> class CenterResource(Resource): <NEW_LINE> <INDENT> @token_required <NEW_LINE> @validate_json_request <NEW_LINE> def post(self): <NEW_LINE> <INDENT> request_data = request.get_json() <NEW_LINE> center_schema = CenterSchema( only=['name', 'image', 'created_at', 'updated_at']) <NEW_LINE>... | Resource class for creating and getting centers | 62598fb897e22403b383b036 |
class MotionBlockSerializer(ModelSerializer): <NEW_LINE> <INDENT> agenda_type = IntegerField( write_only=True, required=False, min_value=1, max_value=3 ) <NEW_LINE> agenda_parent_id = IntegerField(write_only=True, required=False, min_value=1) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = MotionBlock <NEW_LINE> fie... | Serializer for motion.models.Category objects. | 62598fb81f5feb6acb162d4f |
class Properties: <NEW_LINE> <INDENT> def __init__(self, prob, query_len, match_lst, e_val): <NEW_LINE> <INDENT> self.prob = prob <NEW_LINE> self.query_len = query_len <NEW_LINE> self.match_lst = match_lst <NEW_LINE> self.e_val = e_val <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "{0} {1} {2} {3}"... | Fields
prob: Str
query_len: Str
match_lst: listof Nat
e_val: Str | 62598fb8796e427e5384e8c5 |
class ScaledFloatFrame(gym.ObservationWrapper): <NEW_LINE> <INDENT> def observation(self, observation): <NEW_LINE> <INDENT> return np.array(observation).astype(np.float32)/255.0 | The final wrapper we have in the library converts observation data from bytes
to floats and scales every pixel's value to the range [0.0...1.0]. | 62598fb8851cf427c66b83e6 |
class QuanComparison(tables.IsDescription): <NEW_LINE> <INDENT> spec_id = tables.Int32Col(pos=0) <NEW_LINE> isolabel_id = tables.Int32Col(pos=1) <NEW_LINE> primary_inten = tables.Float64Col(pos=2) <NEW_LINE> primary_fit_c12 = tables.Float64Col(pos=2) <NEW_LINE> primary_ls = tables.Float64Col(pos=3) <NEW_LINE> primary_s... | @brief HDF5 table definition for quantification data table | 62598fb87d847024c075c4ec |
class AutoscaleErrorResponse(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'system_data': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'error': {'key': 'error', 'type': 'AutoscaleErrorResponseError'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } <NEW_LINE> def __init__( self, ... | Describes the format of Error response.
Variables are only populated by the server, and will be ignored when sending a request.
:param error: The error object.
:type error: ~$(python-base-namespace).v2021_05_01_preview.models.AutoscaleErrorResponseError
:ivar system_data: The system metadata related to the response.
... | 62598fb8379a373c97d99146 |
class CastroRedux(object): <NEW_LINE> <INDENT> def __init__(self, outfile_file, host, port = 5900, pwdfile = os.path.join(os.path.expanduser("~"), ".vnc", "passwd"), framerate = 12, keyframe = 120, clipping = None, logger_name = "CastroRedux", logger_log_dir = False, logger_level = "INFO"): <NEW_LINE> <INDENT> self.out... | CastroRedux vnc to flv recorder
Attributes:
outfile_file (str)
host (str)
port (int)
pwdfile (str)
framerate (int)
keyframe (int)
clipping (int)
debug (bool) | 62598fb832920d7e50bc617f |
class ToolBack(ViewsPositionsBase): <NEW_LINE> <INDENT> description = 'Back to previous view' <NEW_LINE> image = 'back' <NEW_LINE> default_keymap = rcParams['keymap.back'] <NEW_LINE> _on_trigger = 'back' | Move back up the view lim stack | 62598fb863b5f9789fe8529e |
class WinkFanDevice(WinkDevice, FanEntity): <NEW_LINE> <INDENT> @asyncio.coroutine <NEW_LINE> def async_added_to_hass(self): <NEW_LINE> <INDENT> self.hass.data[DOMAIN]['entities']['fan'].append(self) <NEW_LINE> <DEDENT> def set_direction(self: ToggleEntity, direction: str) -> None: <NEW_LINE> <INDENT> self.wink.set_fan... | Representation of a Wink fan. | 62598fb80fa83653e46f5012 |
class RichTextarea(Textarea): <NEW_LINE> <INDENT> class Media: <NEW_LINE> <INDENT> js = [join(PAGES_MEDIA_URL, path) for path in ( 'javascript/jquery.js', )] <NEW_LINE> css = { 'all': [join(PAGES_MEDIA_URL, path) for path in ( 'css/rte.css', )] } <NEW_LINE> <DEDENT> def __init__(self, language=None, attrs=None, **kwarg... | A RichTextarea widget. | 62598fb84428ac0f6e658652 |
class StaleTaskStatusException(ValueError): <NEW_LINE> <INDENT> pass | Raised when attempting to update the status of a task which was changed
concurrently by another transaction. | 62598fb844b2445a339b6a0c |
class StatusReporter(object): <NEW_LINE> <INDENT> def __init__(self, duplicate_reporter=None): <NEW_LINE> <INDENT> self.__has_reported = False <NEW_LINE> if duplicate_reporter is None: <NEW_LINE> <INDENT> self.__fp = tempfile.TemporaryFile() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> source_fp = duplicate_reporter._... | Used to send back a status message to process A from process B where process A has forked process B.
The status message is just a single string of text.
This is implemented by writing and reading bytes out of a shared temporary file. | 62598fb88a349b6b4368636d |
class CourseDetialSerializer(ModelSerializer): <NEW_LINE> <INDENT> teacher = TeacherSerializer() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Course <NEW_LINE> fields = ["id", "name", "course_img", "students", "lessons", "pub_lessons", "price", "teacher", "lesson_list","level_name","course_video","brief_image", "... | 课程列表 | 62598fb85166f23b2e24350d |
class DyStockDataFocusAnalysisMainWindow(DyBasicMainWindow): <NEW_LINE> <INDENT> name = 'DyStockDataFocusAnalysisMainWindow' <NEW_LINE> def __init__(self, dataWindow, focusStrengthDf, focusInfoPoolDict): <NEW_LINE> <INDENT> super().__init__(None, None) <NEW_LINE> self._dataWindow = dataWindow <NEW_LINE> self._focusStre... | 热点分析主窗口 | 62598fb8460517430c4320f6 |
class YamlSettings(JsonSettings): <NEW_LINE> <INDENT> def load_file(self, settings_file, extra_settings): <NEW_LINE> <INDENT> settings = yaml.safe_load(settings_file) <NEW_LINE> template_path = settings['path'] <NEW_LINE> parameters = settings['parameters'] <NEW_LINE> parameters.update(extra_settings) <NEW_LINE> self.l... | A YamlSettings object is initiated with a yaml
file, which has a 'path', indicating a json template
file, and 'parameters', where we find a dictionary
that we can pass to the template. This dictionary
might contains parameters that override default
parameters in the base class. | 62598fb8d7e4931a7ef3c1c7 |
class CIFAR_100(object): <NEW_LINE> <INDENT> def unpickle(self, filename): <NEW_LINE> <INDENT> fo= open(filename, 'rb') <NEW_LINE> dictData=cPickle.load(fo) <NEW_LINE> fo.close() <NEW_LINE> return dictData <NEW_LINE> <DEDENT> def onehot_fine_labels(self, labels): <NEW_LINE> <INDENT> return np.eye(100)[labels] <NEW_LINE... | class for cifar 100 | 62598fb867a9b606de546103 |
class CreateDomainBatchResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.LogId = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.LogId = params.get("LogId") <NEW_LINE> self.RequestId = params.get("RequestId") | CreateDomainBatch返回参数结构体
| 62598fb856ac1b37e630231d |
class UnknownAuthMethodError(Error): <NEW_LINE> <INDENT> pass | Raised when there's no method to call for a specific auth type | 62598fb810dbd63aa1c70cea |
class Preprocessing(): <NEW_LINE> <INDENT> def __init__(self, data, ): <NEW_LINE> <INDENT> self.xs = getattr(data, 'xs') <NEW_LINE> self.ys = getattr(data, 'ys') <NEW_LINE> self._initial() <NEW_LINE> <DEDENT> def _initial(self): <NEW_LINE> <INDENT> self.xs = self.xs.dropna() <NEW_LINE> self.ys = self.ys.dropna() <NEW_L... | handles missing values and stores basic information about features | 62598fb8e5267d203ee6ba30 |
class HeapPriorityQueue(PriorityQueueBase): <NEW_LINE> <INDENT> def _parent(self, j): <NEW_LINE> <INDENT> return (j-1) // 2 <NEW_LINE> <DEDENT> def _left(self, j): <NEW_LINE> <INDENT> return 2*j + 1 <NEW_LINE> <DEDENT> def _right(self, j): <NEW_LINE> <INDENT> return 2*j + 2 <NEW_LINE> <DEDENT> def _has_left(self, j): <... | A min-oriented priority queue implemented with a binary heap. | 62598fb897e22403b383b037 |
class BaseTemplate(templates.Template): <NEW_LINE> <INDENT> pass | Base template for all templates | 62598fb8a8370b77170f0510 |
class ControllerTest(unittest.TestCase): <NEW_LINE> <INDENT> def testAssertNotNone(self): <NEW_LINE> <INDENT> controller = puremvc.core.Controller.getInstance() <NEW_LINE> self.assertNotEqual(None, controller) <NEW_LINE> <DEDENT> def testAssertIController(self): <NEW_LINE> <INDENT> controller = puremvc.core.Controller.... | ControllerTest: Test Controller Singleton | 62598fb8e1aae11d1e7ce8bd |
class FwNoStatusEntryError(FwErrorClass): <NEW_LINE> <INDENT> def __init__(self, missentry): <NEW_LINE> <INDENT> self.missing_entry = missentry | FwMissingStatusEntryError
Raised when a module's status information in the controller status dict is requested but no valid entry is found. | 62598fb801c39578d7f12eac |
class GetShipmentTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.demo = utils.create_demo() <NEW_LINE> demo_json = loads(self.demo) <NEW_LINE> demo_guid = demo_json.get('guid') <NEW_LINE> demo_user_id = demo_json.get('users')[0].get('id') <NEW_LINE> auth_data = user_service.lo... | Tests for `services/shipments.py - get_shipment()`. | 62598fb89f288636728188f6 |
class OG_254: <NEW_LINE> <INDENT> play = ( Buff(SELF, "OG_254e") * Count(ENEMY_SECRETS), Destroy(ENEMY_SECRETS) ) | Eater of Secrets | 62598fb8851cf427c66b83e8 |
class InputNeuron(Neuron): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> super(InputNeuron, self).__init__([]) <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> def set_value(self, value): <NEW_LINE> <INDENT> self.value = value | Input neuron | 62598fb892d797404e388bfc |
class Giflib(AutotoolsPackage): <NEW_LINE> <INDENT> homepage = "http://giflib.sourceforge.net/" <NEW_LINE> url = "https://downloads.sourceforge.net/project/giflib/giflib-5.1.4.tar.bz2" <NEW_LINE> version('5.1.4', '2c171ced93c0e83bb09e6ccad8e3ba2b') | The GIFLIB project maintains the giflib service library, which has
been pulling images out of GIFs since 1989. | 62598fb832920d7e50bc6181 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.