code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class UserLeavesAndHolidays(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> user = models.ForeignKey(User,on_delete=models.CASCADE) <NEW_LINE> leaveType = models.ForeignKey(LeavesAndHoliDays,on_delete=models.CASCADE) <NEW_LINE> startDate = models.DateField(blank=True) <NEW_LINE> en...
a type of leave as served by a user or as applied by a user
625990278c3a8732951f74ba
class CityView(ModelViewSet): <NEW_LINE> <INDENT> queryset = City.objects.all() <NEW_LINE> permission_classes = [IsAdminOrReadOnly] <NEW_LINE> serializer_class = CityPlaceSerializer <NEW_LINE> filter_backends = [DjangoFilterBackend] <NEW_LINE> filter_fields = ['region']
View для городов CRUD для администратора Read-only для всех
6259902715baa72349462efb
@command_lib.PublicParser <NEW_LINE> class EggHuntCommand(command_lib.BasePublicCommand): <NEW_LINE> <INDENT> DEFAULT_PARAMS = params_lib.MergeParams( command_lib.BasePublicCommand.DEFAULT_PARAMS, { 'find_chance': 0.05, }) <NEW_LINE> def _Handle(self, channel: channel_pb2.Channel, user: user_pb2.User, message: Text) ->...
Gotta find them all.
62599027a8ecb03325872180
@exporter <NEW_LINE> class SeqWordCharLabelDataFeed(ExampleDataFeed): <NEW_LINE> <INDENT> def __init__(self, examples, batchsz, **kwargs): <NEW_LINE> <INDENT> super(SeqWordCharLabelDataFeed, self).__init__(examples, batchsz, **kwargs) <NEW_LINE> <DEDENT> def _batch(self, i): <NEW_LINE> <INDENT> return self.examples.bat...
Feed object for sequential prediction training data
625990271d351010ab8f4a79
class EchoCloudSubVideo(EchoCloudVideo): <NEW_LINE> <INDENT> def __init__(self, video_json, driver, hostname, group_name, alternative_feeds): <NEW_LINE> <INDENT> super(EchoCloudSubVideo, self).__init__( video_json, driver, hostname, alternative_feeds ) <NEW_LINE> self.group_name = group_name <NEW_LINE> <DEDENT> @proper...
Some video in echo360 cloud is multi-part and this represents it.
62599027507cdc57c63a5d0a
class TheRobot(Robot): <NEW_LINE> <INDENT> def initialize(self): <NEW_LINE> <INDENT> self._state = 'FORWARD' <NEW_LINE> self._fwdfor_ticks = None <NEW_LINE> self._rightfor_ticks = None <NEW_LINE> self._unstick_freq = 12 <NEW_LINE> self._unstickfor_ticks = None <NEW_LINE> <DEDENT> def respond(self): <NEW_LINE> <INDENT> ...
Strategy: Drive around in sort of a circle, Shoot randomly.
625990276fece00bbaccc91c
class AutonomousSystem(_Observable): <NEW_LINE> <INDENT> _type = 'autonomous-system' <NEW_LINE> _properties = OrderedDict([ ('type', TypeProperty(_type, spec_version='2.1')), ('spec_version', StringProperty(fixed='2.1')), ('id', IDProperty(_type, spec_version='2.1')), ('number', IntegerProperty(required=True)), ('name'...
For more detailed information on this object's properties, see `the STIX 2.1 specification <https://docs.oasis-open.org/cti/stix/v2.1/os/stix-v2.1-os.html#_27gux0aol9e3>`__.
625990278c3a8732951f74bb
class RPNCaculator(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.stack = Stack() <NEW_LINE> <DEDENT> def push(self,item): <NEW_LINE> <INDENT> if not (isinstance(item,int) or isinstance(item,float) ): <NEW_LINE> <INDENT> raise TypeError('Give me a number please') <NEW_LINE> <DEDENT> self.stac...
Information assumptions: Maintains a stack containing current RPN expression evaluation values; these are always numbers, but never the operators from an RPN expression.
625990271f5feb6acb163b54
class PackedNode(frozenset, Node): <NEW_LINE> <INDENT> __slots__ = ()
PackedNodes hold other nodes, including in some cases PackedNodes. Inheriting from frozenset prevents PackedNodes from duplicating nodes but costs memory and means that nodes are returned in an arbitrary order. It may be better to use a list instead. (Alternately, I should check and see if Hettinger ever actually add...
6259902756b00c62f0fb3824
class Solution: <NEW_LINE> <INDENT> def insertionSortList(self, head): <NEW_LINE> <INDENT> dummy = ListNode(0) <NEW_LINE> cur = head <NEW_LINE> pre = dummy <NEW_LINE> next = None <NEW_LINE> while cur is not None: <NEW_LINE> <INDENT> pre = dummy <NEW_LINE> next = cur.next <NEW_LINE> while pre.next is not None and pre.ne...
@param head: The first node of linked list. @return: The head of linked list.
62599027bf627c535bcb241b
class UnifiProtectSensor(UnifiProtectEntity, Entity): <NEW_LINE> <INDENT> def __init__(self, upv_object, protect_data, server_info, device_id, sensor): <NEW_LINE> <INDENT> super().__init__(upv_object, protect_data, server_info, device_id, sensor) <NEW_LINE> sensor_type = SENSOR_TYPES[sensor] <NEW_LINE> self._name = f"{...
A Ubiquiti Unifi Protect Sensor.
625990278c3a8732951f74bd
class InstructionError(Exception): <NEW_LINE> <INDENT> pass
Base exception type for all instruction related errors.
6259902715baa72349462eff
class FamilySchema(ma.ModelSchema): <NEW_LINE> <INDENT> samples = fields.Nested(SampleSchema, many=True, only=['id']) <NEW_LINE> subfamilies = fields.Nested('FamilySchema', many=True, only=['id', 'name', 'subfamilies', 'status']) <NEW_LINE> parents = fields.Nested('FamilySchema', many=True, only=['id', 'name']) <NEW_LI...
Schema for exporting by marshalling in JSON.
625990278a349b6b4368719e
class SecurityGroupNetworkInterface(Model): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'security_rule_associations': {'key': 'securityRuleAssociations', 'type': 'SecurityRuleAssociations'}, } <NEW_LINE> def __init__(self, *, id: str=None, security_rule_associations=None, **kwargs) -> Non...
Network interface and all its associated security rules. :param id: ID of the network interface. :type id: str :param security_rule_associations: :type security_rule_associations: ~azure.mgmt.network.v2018_08_01.models.SecurityRuleAssociations
62599027d164cc6175821edd
@ModuleDocstringParser <NEW_LINE> class DocStringExample: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', filename=None, filemode='w') <NEW_LINE> self.logger = logging.getLogger(self.__class__.__name__) <NEW_LINE> self.config...
- module: DocStringExample string: # <default: "TestString"; type: string; is: optional> int: # <default: 1; type: integer; is: optional> dict: # <default: {'filed1': 'value1'}; type: dict; is: optional> list: ...
625990279b70327d1c57fce8
class Visits(Metrics): <NEW_LINE> <INDENT> id = "visits" <NEW_LINE> name = "Visits" <NEW_LINE> desc = "Number of visits" <NEW_LINE> data_source = DownloadsDS <NEW_LINE> def _get_sql(self, evolutionary): <NEW_LINE> <INDENT> if self.filters.period != 'month': <NEW_LINE> <INDENT> msg = 'Period %s not valid. Currently, onl...
Number of visits
6259902756b00c62f0fb3826
class NoOutputAsyncMutator(BaseAsyncMutator): <NEW_LINE> <INDENT> def Format(self, args): <NEW_LINE> <INDENT> return 'none'
Base class for mutating subcommands that don't display resources.
62599027507cdc57c63a5d0e
class MuProcedure(UserDefinedProcedure): <NEW_LINE> <INDENT> def __init__(self, formals, body): <NEW_LINE> <INDENT> self.formals = formals <NEW_LINE> self.body = body <NEW_LINE> <DEDENT> "*** REPLACE THIS LINE ***" <NEW_LINE> def make_call_frame(self, args, env): <NEW_LINE> <INDENT> return env.make_child_frame(self.for...
A procedure defined by a mu expression, which has dynamic scope. _________________ < Scheme is cool! > ----------------- \ ^__^ \ (oo)\_______ (__)\ )\/ ||----w | || ||
625990278c3a8732951f74bf
class InstanceViewStatus(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'level': {'key': 'level', 'type': 'str'}, 'display_status': {'key': 'displayStatus', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'time': {'key': 'time', 'type': 'iso-860...
Instance view status. :ivar code: The status code. :vartype code: str :ivar level: The level code. Possible values include: "Info", "Warning", "Error". :vartype level: str or ~azure.mgmt.compute.v2018_10_01.models.StatusLevelTypes :ivar display_status: The short localizable label for the status. :vartype display_statu...
6259902726238365f5fadab9
class ExponentialPdf(EquivUnary): <NEW_LINE> <INDENT> name = 'exponential_pdf' <NEW_LINE> ranking = ('gsl',) <NEW_LINE> tests = ( Test([1.2,0.1,0.5],mu=1.0) ** [0.30119421,0.90483742,0.60653066], ) <NEW_LINE> @staticmethod <NEW_LINE> def gsl(arg,mu=0.0,out=None): <NEW_LINE> <INDENT> arg = as_num_array(arg) <NEW_LINE> i...
Exponential probability distribution function >>> func = ExponentialPdf().gsl >>> assert allclose(func([1.2,0.1,0.5],mu=1.0),[0.30119421,0.90483742,0.60653066])
62599027d99f1b3c44d0660a
class ErrorMessages: <NEW_LINE> <INDENT> not_found = "Could not find SuperHub, please ensure the correct IP address is set"; <NEW_LINE> login_failed = "Could not login to SuperHub, password may be incorrect"; <NEW_LINE> firmware_warn = "Couldn't check firmware version, something must have went wrong with the login.";
Index of various exception error messages
62599027287bf620b6272b57
class Gtklock: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def __enter__(): <NEW_LINE> <INDENT> Gdk.threads_enter() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def __exit__(*args): <NEW_LINE> <INDENT> Gdk.threads_leave()
A context manger for the Gdk.threads_* can be used like this >> with Gtklock: >> pass
6259902773bcbd0ca4bcb1f8
@dataclass(frozen=True) <NEW_LINE> class TrajectoryParameters: <NEW_LINE> <INDENT> turning_radius: float <NEW_LINE> x_offset: float <NEW_LINE> y_offset: float <NEW_LINE> end_point: np.array <NEW_LINE> start_angle: float <NEW_LINE> end_angle: float <NEW_LINE> left_turn: bool <NEW_LINE> arc_start_point: float <NEW_LINE> ...
A dataclass that holds the data needed to create the path for a trajectory. turning_radius: The radius of the circle used to generate the arc of the path x_offset: The x coordinate of the circle used to generate the arc of the path y_offset: They y coordinate of the circle used to generate the arc of the p...
62599027d164cc6175821edf
class GetCommEventLogRequest(ModbusRequest): <NEW_LINE> <INDENT> function_code = 0x0c <NEW_LINE> _rtu_frame_size = 4 <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> ModbusRequest.__init__(self, **kwargs) <NEW_LINE> <DEDENT> def encode(self): <NEW_LINE> <INDENT> return b'' <NEW_LINE> <DEDENT> def decode(sel...
This function code is used to get a status word, event count, message count, and a field of event bytes from the remote device. The status word and event counts are identical to that returned by the Get Communications Event Counter function (11, 0B hex). The message counter contains the quantity of messages process...
625990278c3a8732951f74c0
class LSTMModel(nn.Module): <NEW_LINE> <INDENT> def __init__(self, ntoken, ninp, nhid, nlayers, dropout=0.5): <NEW_LINE> <INDENT> super(LSTMModel, self).__init__() <NEW_LINE> self.drop = nn.Dropout(dropout) <NEW_LINE> self.encoder = nn.Embedding(ntoken, ninp) <NEW_LINE> self.rnn = nn.LSTM(ninp, nhid, nlayers, dropout=d...
Container module with an encoder, a recurrent module, and a decoder.
625990275e10d32532ce40b8
class RandomSampler(Sampler): <NEW_LINE> <INDENT> def __init__(self, data_source): <NEW_LINE> <INDENT> self.num_samples = len(data_source) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return iter(torch.randperm(self.num_samples).long()) <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return se...
Samples elements randomly, without replacement. Arguments: data_source (Dataset): dataset to sample from
625990271d351010ab8f4a7f
class TestResult(UuidMixin, TimeStampedModel): <NEW_LINE> <INDENT> NEW = 'new' <NEW_LINE> IN_PROGRESS = 'in_progress' <NEW_LINE> REQUIRES_REVIEW = 'requires_review' <NEW_LINE> DONE = 'done' <NEW_LINE> STATUS_CHOICES = ( (NEW, _('New')), (IN_PROGRESS, _('In progress')), (REQUIRES_REVIEW, _('Required review')), (DONE, _(...
Test Answers model
6259902766673b3332c31357
class url_FormTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.factory = RequestFactory() <NEW_LINE> <DEDENT> def test_valid_form(self): <NEW_LINE> <INDENT> data = {'url':'http://www.google.com'} <NEW_LINE> form = UploadFileForm(data=data) <NEW_LINE> self.assertTrue(form.is_valid()) <NE...
Basic tests to check the form validity
625990273eb6a72ae038b5cd
class DuckTypeEnforcer(tuple): <NEW_LINE> <INDENT> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> return super(DuckTypeEnforcer, cls).__new__(cls, args)
An immutable iterable of required attributes to pass a duck typing test. Literally, this is a wrapper class that passes init arguments to tuple.
6259902721a7993f00c66ee6
class InlineResponse2009(object): <NEW_LINE> <INDENT> swagger_types = { 'fonenumbers': 'list[FoneNumber]' } <NEW_LINE> attribute_map = { 'fonenumbers': 'fonenumbers' } <NEW_LINE> def __init__(self, fonenumbers=None): <NEW_LINE> <INDENT> self._fonenumbers = None <NEW_LINE> if fonenumbers is not None: <NEW_LINE> <INDENT>...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
625990270a366e3fb87dd952
class ReplyConsumer(Consumer): <NEW_LINE> <INDENT> def start(self, listener, watchdog=None): <NEW_LINE> <INDENT> self.listener = listener <NEW_LINE> self.watchdog = watchdog or LazyDog() <NEW_LINE> self.blacklist = set() <NEW_LINE> Consumer.start(self) <NEW_LINE> <DEDENT> def dispatch(self, envelope): <NEW_LINE> <INDEN...
A request, reply consumer. @ivar listener: An reply listener. @type listener: any @ivar watchdog: An (optional) watchdog. @type watchdog: L{WatchDog} @ivar blacklist: A set of serial numbers to ignore. @type blacklist: set
6259902773bcbd0ca4bcb1fa
class DeleteException(S3POException): <NEW_LINE> <INDENT> pass
An error while deleting
62599027ac7a0e7691f73453
class RandomForest(Classifier): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(RandomForest, self).__init__() <NEW_LINE> self.clf = RandomForestClassifier(**kwargs) <NEW_LINE> <DEDENT> def train(self, X, Y): <NEW_LINE> <INDENT> self.clf.fit(X, Y) <NEW_LINE> <DEDENT> def predict(self, X): <N...
The random forest classifier
625990278c3a8732951f74c2
class NinjaAnt(Ant): <NEW_LINE> <INDENT> name = 'Ninja' <NEW_LINE> damage = 1 <NEW_LINE> food_cost = 6 <NEW_LINE> implemented = True <NEW_LINE> blocks_path = False <NEW_LINE> def action(self, colony): <NEW_LINE> <INDENT> for bee in self.place.bees[:]: <NEW_LINE> <INDENT> bee.reduce_armor(self.damage)
NinjaAnt does not block the path and damages all bees in its place.
625990279b70327d1c57fcec
class UserBehavior(TaskSet): <NEW_LINE> <INDENT> def on_start(self): <NEW_LINE> <INDENT> self.login() <NEW_LINE> <DEDENT> def login(self): <NEW_LINE> <INDENT> self.client.post('/login', { 'usernmae': 'ellen_key', 'password': 'education' }) <NEW_LINE> <DEDENT> @task(2) <NEW_LINE> def index(self): <NEW_LINE> <INDENT> sel...
"task set
62599027a8ecb03325872188
class ParameterizedJobProfilerParameter(dbmodels.Model): <NEW_LINE> <INDENT> parameterized_job_profiler = dbmodels.ForeignKey(ParameterizedJobProfiler) <NEW_LINE> parameter_name = dbmodels.CharField(max_length=255) <NEW_LINE> parameter_value = dbmodels.TextField() <NEW_LINE> parameter_type = dbmodels.CharField( max_len...
A parameter for a profiler in a parameterized job
62599027796e427e5384f6e8
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class BaseHTTPMixin(stethoscope.configurator.Configurator): <NEW_LINE> <INDENT> config_keys = ( 'URL', ) <NEW_LINE> def _process_arguments(self, payload, **kwargs): <NEW_LINE> <INDENT> url = self.config['URL'] <NEW_LINE> content = json.dumps(payload, default=stethoscope.utils....
Abstract plugin base class for implementing methods to POST to arbitrary HTTP endpoints.
625990271d351010ab8f4a81
class InsertDimensionRequest(TypedDict): <NEW_LINE> <INDENT> inheritFromBefore: bool <NEW_LINE> range: DimensionRange
Inserts rows or columns in a sheet at a particular index.
62599027ac7a0e7691f73455
class csvUnicodeHandler(object): <NEW_LINE> <INDENT> def __init__(self, f, encoding=ENCODING, **kwds): <NEW_LINE> <INDENT> self.queue = cStringIO.StringIO() <NEW_LINE> self.writer = csv.writer(self.queue, delimiter=SEP, lineterminator=EOL, **kwds) <NEW_LINE> self.stream = f <NEW_LINE> self.encoder = codecs.getincremen...
A CSV writer which will write rows to CSV file "f", which is encoded in the given encoding.
62599027a4f1c619b294f560
class Chapter(SQLAlchemyObjectType): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = ChapterModel <NEW_LINE> interfaces = (graphene.relay.Node,)
Chapter node.
62599027bf627c535bcb2423
class AttachmentCountNode(BaseAttachmentNode): <NEW_LINE> <INDENT> def get_context_value_from_queryset(self, context, qs): <NEW_LINE> <INDENT> return qs.count()
Insert a count of attachments into the context
62599027d164cc6175821ee4
class Discriminator(nn.Module): <NEW_LINE> <INDENT> def __init__(self, z_dim=10): <NEW_LINE> <INDENT> super(Discriminator, self).__init__() <NEW_LINE> self.z_dim = z_dim <NEW_LINE> self.net = nn.Sequential( nn.Linear(z_dim, 512), nn.ReLU(True), nn.Linear(512, 512), nn.ReLU(True), nn.Linear(512, 1), nn.Sigmoid() ) <NEW_...
Adversary architecture(Discriminator) for WAE-GAN.
625990276e29344779b015bd
class _BroadcastSignal(Signal): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def emit(self, **args): <NEW_LINE> <INDENT> raise TypeError('emitting broadcast signals is unsupported')
Special broadcast signal. Connect to it to be notified about all signals. This signal is automatically send with each other signal.
625990276fece00bbaccc926
class TradingModel: <NEW_LINE> <INDENT> def __init__(self, trade_simulator): <NEW_LINE> <INDENT> self.trade_simulator = trade_simulator <NEW_LINE> <DEDENT> def simulate_trades(self, df, feature_columns): <NEW_LINE> <INDENT> return self.trade_simulator(df, feature_columns)
A TradingModel converts market data into trades and trade outcomes. Args: trade_simulator (DataFrame => DataFrame): A function that takes the input data and returns that data frame with metrics attached to it. The function should apply the 'outcome' and 'trading_action' columns to the data ...
625990271f5feb6acb163b5e
class Shipping(CRUDObjectItem): <NEW_LINE> <INDENT> pass
Shipping object
62599027d99f1b3c44d06610
class DataClientListener(RedisListener): <NEW_LINE> <INDENT> subscribe_channel = 'client-data:*' <NEW_LINE> def run(self): <NEW_LINE> <INDENT> pubsub = self.client.pubsub() <NEW_LINE> pubsub.psubscribe(self.channel) <NEW_LINE> for item in pubsub.listen(): <NEW_LINE> <INDENT> if item['type'] == 'pmessage': <NEW_LINE> <I...
For receiving data from client
6259902773bcbd0ca4bcb1fe
class Source(source.Source): <NEW_LINE> <INDENT> def get_historical_price(self, ticker, date): <NEW_LINE> <INDENT> commodity, currency = ticker.split(':') <NEW_LINE> trade_date = datetime.combine(date, datetime.max.time()) <NEW_LINE> trade_date = trade_date.replace(tzinfo=pytz.UTC) <NEW_LINE> ts = int(time.mktime(trade...
CryptoCompare API price extractor.
6259902721a7993f00c66eec
class INRecordBase(TOP): <NEW_LINE> <INDENT> def __init__(self, API_KEY=None, APP_SECRET=None, ENVIRONMENT=None): <NEW_LINE> <INDENT> super(INRecordBase, self).__init__( API_KEY, APP_SECRET, ENVIRONMENT ) <NEW_LINE> self.models = {'date':TOPDate} <NEW_LINE> self.fields = ['pc','click','avg_price','competition','date', ...
数据信息对象
625990276e29344779b015bf
class Oscilloscope(Task): <NEW_LINE> <INDENT> def __init__(self, pipeline=None): <NEW_LINE> <INDENT> super(Oscilloscope, self).__init__() <NEW_LINE> self.pipeline = pipeline <NEW_LINE> <DEDENT> def prepare_graphics(self, container): <NEW_LINE> <INDENT> self.scope = SignalWidget() <NEW_LINE> container.set_widget(self.sc...
A visualizer for data acquisition devices. This task connects to the experiment input DAQ and displays each of its channels on a separate plot. You can optionally pass a :class:`Pipeline` object to preprocess the input data before displaying it. Parameters ---------- pipeline : Pipeline, optional Pipeline to run ...
62599027287bf620b6272b5f
class FastFeatureImportance: <NEW_LINE> <INDENT> def __init__(self, estimator): <NEW_LINE> <INDENT> self.estimator = estimator <NEW_LINE> self.importance = [] <NEW_LINE> <DEDENT> def fit(self, X, y): <NEW_LINE> <INDENT> features = list(range(X.shape[1])) <NEW_LINE> length = len(X) <NEW_LINE> self.estimator.fit(X, y) <N...
Finding feature importance in O(n) by adding random data to features one at a time
625990270a366e3fb87dd958
class OutputText(object): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> self.config = config <NEW_LINE> self.locked = 0 <NEW_LINE> self.pending = [] <NEW_LINE> <DEDENT> def lock(self): <NEW_LINE> <INDENT> self.locked += 1 <NEW_LINE> <DEDENT> def unlock(self): <NEW_LINE> <INDENT> self.locked -= 1 <...
Base class to display conversation messages
625990278c3a8732951f74c8
class CountryMiddleware(object): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> new_ip_address = get_real_ip(request) <NEW_LINE> old_ip_address = request.session.get('ip_address', None) <NEW_LINE> if not new_ip_address and old_ip_address: <NEW_LINE> <INDENT> del request.session['ip_address'...
Identify the country by IP address.
62599027c432627299fa3f63
class RegionInfo(object): <NEW_LINE> <INDENT> def __init__(self, connection=None, name=None, endpoint=None): <NEW_LINE> <INDENT> self.connection = connection <NEW_LINE> self.name = name <NEW_LINE> self.endpoint = endpoint <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return 'RegionInfo:%s' % self.name <NE...
Represents an EC2 Region
625990276e29344779b015c1
class NBExtensionHandler(IPythonHandler): <NEW_LINE> <INDENT> @web.authenticated <NEW_LINE> def get(self): <NEW_LINE> <INDENT> yaml_list = [] <NEW_LINE> for root, dirs, files in chain.from_iterable( os.walk(nb_ext_dir, followlinks=True) for nb_ext_dir in nbextension_dirs): <NEW_LINE> <INDENT> dirs[:] = [d for d in dirs...
Render the notebook extension configuration interface.
625990278c3a8732951f74c9
class RegressionModel(PredictionModel, _PredictorParams): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta
Model produced by a ``Regressor``. .. versionadded:: 3.0.0
62599027a4f1c619b294f566
class Solution: <NEW_LINE> <INDENT> def findRightInterval(self, intervals: List[List[int]]) -> List[int]: <NEW_LINE> <INDENT> invs = sorted((x[0], i) for i, x in enumerate(intervals)) <NEW_LINE> ans = [] <NEW_LINE> for x in intervals: <NEW_LINE> <INDENT> idx = bisect.bisect_right(invs, (x[1],)) <NEW_LINE> ans.append(in...
按照区间起点排序,然后二分查找
6259902766673b3332c31361
class Sentence(Sequence): <NEW_LINE> <INDENT> def __init__(self, words): <NEW_LINE> <INDENT> super(Sentence, self).__init__(1 + len(words)) <NEW_LINE> self._words[0] = ROOT <NEW_LINE> for i, word in enumerate(words): <NEW_LINE> <INDENT> self._words[i+1] = tuple(word.get(f, '_') for f in FEATURES) <NEW_LINE> self._heads...
A Sentence is just a raw Sequence of words.
625990275166f23b2e244349
class SquareBrackets(TokenList): <NEW_LINE> <INDENT> M_OPEN = T.Punctuation, '[' <NEW_LINE> M_CLOSE = T.Punctuation, ']' <NEW_LINE> @property <NEW_LINE> def _groupable_tokens(self): <NEW_LINE> <INDENT> return self.tokens[1:-1]
Tokens between square brackets
62599027d164cc6175821eeb
@reversion.register() <NEW_LINE> class InstanceIncludeFile(models.Model): <NEW_LINE> <INDENT> instance = models.ForeignKey(CourseInstance) <NEW_LINE> exercises = models.ManyToManyField(ContentPage, blank=True, through='InstanceIncludeFileToExerciseLink', through_fields=('include_file', 'exercise')) <NEW_LINE> default_n...
A file that's linked to an instance and can be included in any exercise that needs it. (File upload, code input, code replace, ...)
62599027ac7a0e7691f7345d
class SingleVote(models.Model): <NEW_LINE> <INDENT> vote_tally = models.ForeignKey(VoteTally, on_delete=models.CASCADE, related_name='votes') <NEW_LINE> legislator = models.ForeignKey(Legislator, on_delete=models.CASCADE, related_name='votes') <NEW_LINE> value = models.CharField(max_length=1, choices=constants.VOTE_CHO...
Single vote from from an individual legislator on an individual tally.
625990278e05c05ec3f6f616
class EmployeeViewSet(BaseModelViewSet): <NEW_LINE> <INDENT> queryset = Employee.objects.all() <NEW_LINE> serializer_class = EmployeeSerializer
API end point for Employee model
62599027a8ecb03325872193
class _memoized(object): <NEW_LINE> <INDENT> def __init__(self, func): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> self.cache = {} <NEW_LINE> self.nev = 0 <NEW_LINE> <DEDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> memoize = kwargs.pop('memoize', True) <NEW_LINE> nothashable = kwargs.pop('nothashab...
Decorator. Caches a function's return value each time it is called. If called later with the same arguments, the cached value is returned (not reevaluated). Can be turned of by passing `memoize=False` when calling the function. If the function arguments are not hashable, then no caching is attempted and the function ...
62599027796e427e5384f6f2
class Meta(): <NEW_LINE> <INDENT> model = Account <NEW_LINE> fields = ['first_name', 'last_name', 'pic']
.
62599027be8e80087fbbffee
class PyDeeptools(PythonPackage): <NEW_LINE> <INDENT> homepage = "https://pypi.io/packages/source/d/deepTools" <NEW_LINE> url = "https://pypi.io/packages/source/d/deepTools/deepTools-2.5.2.tar.gz" <NEW_LINE> version('3.2.1', sha256='ccbabb46d6c17c927e96fadc43d8d4770efeaf40b9bcba3b94915a211007378e') <NEW_LINE> vers...
deepTools addresses the challenge of handling the large amounts of data that are now routinely generated from DNA sequencing centers.
62599027c432627299fa3f67
@register() <NEW_LINE> class aci_rename(crud.Update): <NEW_LINE> <INDENT> NO_CLI = True <NEW_LINE> has_output_params = ( Str('aci', label=_('ACI'), ), ) <NEW_LINE> takes_options = ( _prefix_option, Str('newname', doc=_('New ACI name'), ), ) <NEW_LINE> msg_summary = _('Renamed ACI to "%(value)s"') <NEW_LINE> def execute...
Rename an ACI.
625990271d351010ab8f4a8b
class DNSBLRejectedError(BaseError): <NEW_LINE> <INDENT> def message(self, request): <NEW_LINE> <INDENT> return ( "The IP address is being listed in one of DNSBL databases " + "and therefore rejected." ) <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return "dnsbl_rejected" <NEW_LINE> <DED...
An :class:`Exception` class that will be raised if user request was blocked due user IP address failed an DNSBL check.
62599027d18da76e235b7908
class JobInactivate(CreateView): <NEW_LINE> <INDENT> model = JobInactivated <NEW_LINE> template_name = 'jobs/job_inactivate_form.html' <NEW_LINE> form_class = JobInactivateForm <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> job = Job.objects.get(pk=self.kwargs['pk']) <NEW_LINE> form.instance.job = job <NEW_...
Inactivate Job by moderator
6259902791af0d3eaad3ad9d
class InfInut1(models.AbstractModel): <NEW_LINE> <INDENT> _description = textwrap.dedent(" %s" % (__doc__,)) <NEW_LINE> _name = 'nfe.40.infinut1' <NEW_LINE> _inherit = 'spec.mixin.nfe' <NEW_LINE> _generateds_type = 'infInutType1' <NEW_LINE> _concrete_rec_name = 'nfe40_Id' <NEW_LINE> nfe40_Id = fields.Char( string="I...
Dados do Retorno do Pedido de Inutilização de Numeração da Nota Fiscal Eletrônica
625990276fece00bbaccc92f
class StartUDDBInstanceRequestSchema(schema.RequestSchema): <NEW_LINE> <INDENT> fields = { "ProjectId": fields.Str(required=True, dump_to="ProjectId"), "Region": fields.Str(required=True, dump_to="Region"), "UDDBId": fields.Str(required=True, dump_to="UDDBId"), "Zone": fields.Str(required=True, dump_to="Zone"), }
StartUDDBInstance - 启动UDDB实例,开始提供服务。 如下状态的UDDB实例可以进行这个操作: Shutoff: 已关闭 当请求返回成功之后,UDDB实例的状态变成"Starting"(启动中); 如果返回失败, UDDB实例状态保持不变 UDDB实例在启动过程中, 当UDDB实例启动成功之后, UDDB实例的状态变成"Running"(正常运行中); 如果启动过程中出现异常, 状态变成"Abnormal"(异常运行中), 或者"Shutoff"(已关闭)
62599027d10714528d69ee47
class CustomDomainPaged(Paged): <NEW_LINE> <INDENT> _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, 'current_page': {'key': 'value', 'type': '[CustomDomain]'} } <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CustomDomainPaged, self).__init__(*args, **kwargs)
A paging container for iterating over a list of :class:`CustomDomain <azure.mgmt.cdn.models.CustomDomain>` object
625990278a349b6b436871ae
class TestingNightlyJobRunner(NightlyJobRunner): <NEW_LINE> <INDENT> def get_job_providers(self): <NEW_LINE> <INDENT> return {name: provider for name, provider in getAdapters([api.portal.get(), getRequest(), self.log], ITestingNightlyJobProvider)}
Nightly job runner used for testing. This runner *only* collects nightly job providers providing ITestingNightlyJobProvider, and therefore ignores real job providers that would otherwise interfere with testing conditions.
62599027ac7a0e7691f7345f
class Weapon(Record): <NEW_LINE> <INDENT> def __init__(self, name="", cost=0): <NEW_LINE> <INDENT> Record.__init__(self) <NEW_LINE> self.name = name <NEW_LINE> self.cost = cost <NEW_LINE> self.stats = collections.OrderedDict() <NEW_LINE> self.stats["Name"] = self.name <NEW_LINE> self.stats["Cost"] = self.cost <NEW_LINE...
Weapon record. Weapons are a bit like models in that there can be a number of alternate profiles associated with a weapon name, but they are subtly different and a little more complicated. Assuming we encounter the weapon 'Missile Launcher [Krak]' in a row, and we have not yet encountered a missile launcher variant, ...
62599027925a0f43d25e8fbd
class CmdDumpDpProvider(gdb.Command): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(CmdDumpDpProvider, self).__init__("ovs_dump_dp_provider", gdb.COMMAND_DATA) <NEW_LINE> <DEDENT> def invoke(self, arg, from_tty): <NEW_LINE> <INDENT> dp_providers = get_global_variable('dpif_classes') <NEW_LINE> if dp...
Dump all registered registered_dpif_class structures. Usage: ovs_dump_dp_provider
625990278c3a8732951f74ce
class UpdateNetworkFirewalledServiceModel(object): <NEW_LINE> <INDENT> _names = { "access":'access', "allowed_ips":'allowedIps' } <NEW_LINE> def __init__(self, access=None, allowed_ips=None): <NEW_LINE> <INDENT> self.access = access <NEW_LINE> self.allowed_ips = allowed_ips <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> d...
Implementation of the 'updateNetworkFirewalledService' model. TODO: type model description here. Attributes: access (AccessEnum): A string indicating the rule for which IPs are allowed to use the specified service. Acceptable values are "blocked" (no remote IPs can access the service), "restricted...
6259902756b00c62f0fb3836
class SimpleSerializePrettyTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.factory = kmldom.KmlFactory_GetFactory() <NEW_LINE> self.kml = self.factory.CreateKml() <NEW_LINE> self.folder = self.factory.CreateFolder() <NEW_LINE> self.folder.set_name('folder') <NEW_LINE> self.pla...
This tests the SerializePretty() function.
62599027507cdc57c63a5d1d
class GGTeams(dict): <NEW_LINE> <INDENT> def __new__(cls): <NEW_LINE> <INDENT> if not '_the_instance' in cls.__dict__: <NEW_LINE> <INDENT> cls._the_instance = dict.__new__(cls) <NEW_LINE> for team in (2, 3): <NEW_LINE> <INDENT> cls._the_instance[team] = TeamManagement(team) <NEW_LINE> <DEDENT> <DEDENT> return cls._the_...
Class to store the 2 teams
62599027be8e80087fbbfff0
class ContentSpacing: <NEW_LINE> <INDENT> xLeftLimit = 0 <NEW_LINE> yTopLimit = 0 <NEW_LINE> xRightLimit = 0 <NEW_LINE> yBottomLimit = 0 <NEW_LINE> xBorder = 7 <NEW_LINE> yBorder = 7 <NEW_LINE> xIncrement = 0 <NEW_LINE> yIncrement = 0 <NEW_LINE> xSpacing = 3 <NEW_LINE> ySpacing = 3 <NEW_LINE> photoTextSpacing = 6 <NEW_...
The most efficient spacing based on printing mode selected
625990273eb6a72ae038b5db
class BzrLibraryState(object): <NEW_LINE> <INDENT> def __init__(self, ui, trace): <NEW_LINE> <INDENT> self._ui = ui <NEW_LINE> self._trace = trace <NEW_LINE> self.cmdline_overrides = config.CommandLineStore() <NEW_LINE> self.config_stores = {} <NEW_LINE> self.started = False <NEW_LINE> <DEDENT> def __enter__(self): <NE...
The state about how bzrlib has been configured. This is the core state needed to make use of bzr. The current instance is currently always exposed as bzrlib.global_state, but we desired to move to a point where no global state is needed at all. :ivar saved_state: The bzrlib.global_state at the time __enter__ was ...
625990276e29344779b015c7
class Operation(Expression, metaclass=ABCMeta): <NEW_LINE> <INDENT> def __init__(self, *operands, **kwargs): <NEW_LINE> <INDENT> self._operands = operands <NEW_LINE> super().__init__(*operands, **kwargs) <NEW_LINE> <DEDENT> @property <NEW_LINE> def operands(self): <NEW_LINE> <INDENT> return self._operands <NEW_LINE> <D...
Base class for "operations" Operations are Expressions that act algebraically on other expressions (their "operands"). Operations differ from more general Expressions by the convention that the arguments of the Operator are exactly the operands (which must be members of the algebra!) Any other parameters (non-operand...
62599027d164cc6175821eef
class Crawler(object): <NEW_LINE> <INDENT> def __init__(self, site, timeout, parallel=False): <NEW_LINE> <INDENT> self.site = site <NEW_LINE> self.timeout = timeout <NEW_LINE> self.parallel = parallel <NEW_LINE> self.queued = set() <NEW_LINE> if parallel: <NEW_LINE> <INDENT> self.queued_lock = Lock() <NEW_LINE> self.qu...
A web crawler that processes links in a given website, recursively following all links on that site. This crawler supports parallel execution. Crawling is done by calling crawl with a page parser that queues new tasks in this Crawler.
6259902756b00c62f0fb3838
class FermiDirac_fit_func(fit_func_base): <NEW_LINE> <INDENT> dim = 1 <NEW_LINE> param_names = ('A', 'F', 'T') <NEW_LINE> F_guess = 1.9 <NEW_LINE> T_guess = 0.05 <NEW_LINE> def __call__(self, C, x): <NEW_LINE> <INDENT> from numpy import exp <NEW_LINE> A, F, T = self.get_params(C, *(self.param_names)) <NEW_LINE> y = A *...
Fermi-Dirac function object. For use with fit_func function. Functional form: C[0] * (exp((x - C[1]) / C[2]) + 1)^-1 Coefficients: * C[0] = amplitude * C[1] = transition "temperature" * C[2] = "smearing temperature"
62599027a8ecb03325872197
class Transcript(models.Model): <NEW_LINE> <INDENT> date = models.DateField() <NEW_LINE> full_text = models.TextField() <NEW_LINE> headline = models.CharField(max_length=255) <NEW_LINE> url = models.CharField(max_length=255, blank=True, null=True) <NEW_LINE> transcript_type = models.CharField(max_length=255) <NEW_LINE>...
Examples of the kind of model code you'd want to tie these together. speakers = models.ManyToManyField(Speaker, blank=True, null=True)
62599027be8e80087fbbfff2
class Egress(Pipeline): <NEW_LINE> <INDENT> pass
The egress message pipeline. For messages flowing 'away from' the C++ layer.
625990278c3a8732951f74d1
class MarketEvent(Event): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.type = 'MARKET'
Handles the event of receiving a new market update with corresponding bars. MarketEvents are triggered each event-loop cycle. It occurs when the DataHandler object recieves a new update of market data for any symbols which are currently being trackd. It is used to trigger the Strategy object to generate a new batch of ...
62599027287bf620b6272b69
class BatteryClass(morse.core.sensor.MorseSensorClass): <NEW_LINE> <INDENT> def __init__(self, obj, parent=None): <NEW_LINE> <INDENT> logger.info("%s initialization" % obj.name) <NEW_LINE> super(self.__class__,self).__init__(obj, parent) <NEW_LINE> self.local_data['charge'] = 100.0 <NEW_LINE> self._time = time.clock() ...
Class definition for the battery sensor. Sub class of Morse_Object. DischargingRate: float in percent-per-seconds (game-property)
6259902773bcbd0ca4bcb20a
class ClipConfig(etam.BaseModuleConfig): <NEW_LINE> <INDENT> def __init__(self, d): <NEW_LINE> <INDENT> super(ClipConfig, self).__init__(d) <NEW_LINE> self.data = self.parse_object_array(d, "data", DataConfig) <NEW_LINE> self.parameters = self.parse_object(d, "parameters", ParametersConfig) <NEW_LINE> self._validate() ...
Clip configuration settings. Attributes: data (DataConfig) parameters (ParametersConfig)
62599027a8ecb03325872199
class VMEntities(BaseEntitiesView): <NEW_LINE> <INDENT> @property <NEW_LINE> def entity_class(self): <NEW_LINE> <INDENT> return InstanceEntity <NEW_LINE> <DEDENT> paginator = PaginationPane() <NEW_LINE> adv_search_clear = Text('//div[@id="main-content"]//h1//span[@id="clear_search"]/a')
Entities view for vms/instances collection destinations
6259902726238365f5fadacd
@dataclass(slots=True) <NEW_LINE> class Name: <NEW_LINE> <INDENT> name: str <NEW_LINE> type: NameType <NEW_LINE> identified_object: Optional[IdentifiedObject] = None
The Name class provides the means to define any number of human readable names for an object. A name is **not** to be used for defining inter-object relationships. For inter-object relationships instead use the object identification 'mRID'.
625990278a349b6b436871b4
class MockResponse: <NEW_LINE> <INDENT> def __init__(self, mock_url): <NEW_LINE> <INDENT> if mock_url == wine_iri: <NEW_LINE> <INDENT> self.path = test_owl_wine <NEW_LINE> <DEDENT> elif mock_url == pizza_iri: <NEW_LINE> <INDENT> self.path = test_owl_pizza <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> raise ValueError('...
See http://stackoverflow.com/questions/15753390/python-mock-requests-and-the-response
625990279b70327d1c57fcfe
class WorkflowConfigs(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._temp_dir = tempfile.mkdtemp() <NEW_LINE> self._workflows = [] <NEW_LINE> <DEDENT> def add_workflow(self, ert_script, name=None): <NEW_LINE> <INDENT> workflow = WorkflowConfig(ert_script, self._temp_dir, name) <NEW_LINE> sel...
Top level workflow config object, holds all workflow configs.
62599028d18da76e235b790c
class Processor(PostProcessor): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> logging.info('Template post-processor') <NEW_LINE> <DEDENT> def run(self, context, **attributes: Mapping[str, str]) -> Dict[str, Any]: <NEW_LINE> <INDENT> logging.info('Attributes received: %s', attributes) <NEW_LINE> l...
Post-Processor template for use. This is a sample - valid, but useless - post processor. Args: PostProcessor ([type]): [description]
62599028507cdc57c63a5d24
class DataverseProvider(object): <NEW_LINE> <INDENT> name = 'Dataverse' <NEW_LINE> short_name = 'dataverse' <NEW_LINE> serializer = DataverseSerializer <NEW_LINE> def __init__(self, account=None): <NEW_LINE> <INDENT> super(DataverseProvider, self).__init__() <NEW_LINE> self.account = account <NEW_LINE> <DEDENT> def __r...
An alternative to `ExternalProvider` not tied to OAuth
625990286e29344779b015cd
class Dgp2Dcp(Canonicalization): <NEW_LINE> <INDENT> def __init__(self, problem=None) -> None: <NEW_LINE> <INDENT> super(Dgp2Dcp, self).__init__(canon_methods=None, problem=problem) <NEW_LINE> <DEDENT> def accepts(self, problem): <NEW_LINE> <INDENT> return problem.is_dgp() and all( p.value is not None for p in problem....
Reduce DGP problems to DCP problems. This reduction takes as input a DGP problem and returns an equivalent DCP problem. Because every (generalized) geometric program is a DGP problem, this reduction can be used to convert geometric programs into convex form. Example ------- >>> import cvxpy as cp >>> >>> x1 = cp.Var...
6259902826238365f5fadacf
class Subsystem1: <NEW_LINE> <INDENT> def operation_ready(self) -> str: <NEW_LINE> <INDENT> return "Subsystem1: Ready!" <NEW_LINE> <DEDENT> def operation_go(self) -> str: <NEW_LINE> <INDENT> return "Subsystem1: Go!"
Подсистема может принимать запросы либо от фасада, либо от клиента напрямую. В любом случае, для Подсистемы Фасад – это ещё один клиент, и он не является частью Подсистемы.
62599028d10714528d69ee4b
class Lg: <NEW_LINE> <INDENT> __metaclass__ = Singleton <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.info={} <NEW_LINE> self.info=dbLanguage.getAll() <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDENT> self.info=dbLanguage.getAll() <NEW_LINE> <DEDENT> def g(self,id): <NEW_LINE> <INDENT> try: <NEW_LINE>...
殖民管理器
6259902873bcbd0ca4bcb20e
class SiteActivity(TableMixin, Base): <NEW_LINE> <INDENT> event = Column(String(31)) <NEW_LINE> description = Column(String(255)) <NEW_LINE> timestamp = Column(DateTime, default=datetime.now) <NEW_LINE> site_id = Column(Integer, ForeignKey( 'site.id', ondelete='CASCADE', onupdate='CASCADE'))
Table `site_activity` to log site activities. This table is a placeholder for future use.
625990280a366e3fb87dd966
class CrateModel(six.with_metaclass(CrateModelBase, Model)): <NEW_LINE> <INDENT> pass
the model to use when storing stuff in crate it allows us to specify options in Meta we otherwise couldn't use
62599028be8e80087fbbfff8
@register(Resource.ALPHA_IDENTIFIERS) <NEW_LINE> class AlphaIdentifiers(ListElement): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def read(cls, fp, **kwargs): <NEW_LINE> <INDENT> items = [] <NEW_LINE> while is_readable(fp, 4): <NEW_LINE> <INDENT> items.append(read_fmt('I', fp)[0]) <NEW_LINE> <DEDENT> return cls(items) ...
List of alpha identifiers.
625990288e05c05ec3f6f61b
class ManagedObject(object): <NEW_LINE> <INDENT> def __init__(self, name="ManagedObject", obj_ref=None, value=None): <NEW_LINE> <INDENT> super(ManagedObject, self).__setattr__('objName', name) <NEW_LINE> if obj_ref is None: <NEW_LINE> <INDENT> obj_ref = Obj(name, value) <NEW_LINE> <DEDENT> object.__setattr__(self, 'obj...
Managed Data Object base class.
62599028c432627299fa3f71
class XMLRPCProject(RemoteProject): <NEW_LINE> <INDENT> @property <NEW_LINE> def packages(self): <NEW_LINE> <INDENT> if self._packages == None: <NEW_LINE> <INDENT> distributions = [] <NEW_LINE> if self.verbose: <NEW_LINE> <INDENT> info("Finding distributions for project %s" % self.name) <NEW_LINE> <DEDENT> for version ...
An XMLRPCProject is a remote project located in a PyPI-style XMLRPC-based repository.
62599028a8ecb0332587219d