code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class AportacionsState(InvestmentState): <NEW_LINE> <INDENT> @action <NEW_LINE> def pay(self, date, amount, move_line_id, waitDays=None, expirationYears=None): <NEW_LINE> <INDENT> log, paid_amount = super(AportacionsState, self).pay(date, amount, move_line_id) <NEW_LINE> return ns( log=log, paid_amount = paid_amount, p...
AportacionsState child of InvestmentState
62598f51eab8aa0e5d30b1b1
class Mlist(list): <NEW_LINE> <INDENT> def cchange(self, n, etype): <NEW_LINE> <INDENT> if etype == 'append': <NEW_LINE> <INDENT> self._cappend(n) <NEW_LINE> <DEDENT> elif etype == 'remove': <NEW_LINE> <INDENT> self._cremove(n) <NEW_LINE> <DEDENT> <DEDENT> def _cappend(self, n): <NEW_LINE> <INDENT> if n not in self: <N...
A list subclass to add some useful methods.
62598f51d164cc61758203b8
class Data(PlotlyList): <NEW_LINE> <INDENT> def to_graph_objs(self, caller=True): <NEW_LINE> <INDENT> for index, entry in enumerate(self): <NEW_LINE> <INDENT> if isinstance(entry, PlotlyDict): <NEW_LINE> <INDENT> self[index] = NAME_TO_CLASS[entry.__class__.__name__](entry) <NEW_LINE> <DEDENT> elif isinstance(entry, dic...
A list of traces to be shown on a plot/graph. Any operation that can be done with a standard list may be used with Data. Instantiation requires an iterable (just like list does), for example: Data([Scatter(), Heatmap(), Box()]) Valid entry types: (dict or any subclass of Trace, i.e., Scatter, Box, etc.)
62598f51167d2b6e312b63bb
class _CppLintState(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.verbose_level = 1 <NEW_LINE> self.error_count = 0 <NEW_LINE> self.filters = _DEFAULT_FILTERS[:] <NEW_LINE> self._filters_backup = self.filters[:] <NEW_LINE> self.counting = 'total' <NEW_LINE> self.errors_by_category = {} <NEW_...
Maintains module-wide state..
62598f51d18da76e235b6b54
class PrmJoueur(Parametre): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Parametre.__init__(self, "joueur", "player") <NEW_LINE> self.schema = "<nom_joueur> <groupe_existant>" <NEW_LINE> self.aide_courte = "change un joueur de groupe" <NEW_LINE> self.aide_longue = "Cette commande vous permet d...
Commande 'chgroupe joueur'.
62598f51462c4b4f79dbae3b
class SearchType(enum.Enum): <NEW_LINE> <INDENT> ALL = 'all' <NEW_LINE> TRACK = 'track' <NEW_LINE> ARTIST = 'artist'
Supported search types
62598f5156b00c62f0fb1cf3
class OrderStatus(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'status': {'required': True}, 'update_date_time': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'status': {'key': 'status', 'type': 'str'}, 'update_date_time': {'key': 'updateDateTime', 'type': 'iso-8601'}, 'comments': {'key': 'com...
Represents a single status change. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param status: Required. Status of the order as per the allowed status types. Possible values include: "Untracked", "Awaitin...
62598f51d164cc61758203ba
class WestFusion: <NEW_LINE> <INDENT> __known_statespace = {} <NEW_LINE> @staticmethod <NEW_LINE> def get_weight_row(location, season, atoms): <NEW_LINE> <INDENT> return [Fraction(int(atom==location),1) for atom in atoms] <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_weight_matrix(locations, season, atoms): <NEW...
Prepares for sensor fusion of signals based on Western Hemisphere countries and states.
62598f515166f23b2e24281a
class KeypairMismatchException(DatariumDBError): <NEW_LINE> <INDENT> pass
Raised if the private key(s) provided for signing don't match any of the current owner(s)
62598f5115fb5d323ce7e167
class Solution2(object): <NEW_LINE> <INDENT> def climbStairs(self, n): <NEW_LINE> <INDENT> prev, current = 0, 1 <NEW_LINE> for i in xrange(n): <NEW_LINE> <INDENT> prev, current = current, prev + current, <NEW_LINE> <DEDENT> return current
:type n: int :rtype: int
62598f51462c4b4f79dbae3f
class Loader(object): <NEW_LINE> <INDENT> def __init__(self, http_client, processors=None): <NEW_LINE> <INDENT> self.http_client = http_client <NEW_LINE> if processors is None: <NEW_LINE> <INDENT> processors = [] <NEW_LINE> <DEDENT> self.processors = [ValidationProcessor()] + processors <NEW_LINE> <DEDENT> async def lo...
Abstraction for loading Swagger API's. :param http_client: HTTP client interface. :type http_client: http_client.HttpClient :param processors: List of processors to apply to the API. :type processors: list of SwaggerProcessor
62598f51711fe17d825dfb38
class NearestNeighborModel(ind.NearestNeighborModel): <NEW_LINE> <INDENT> def __init__(self, attribs): <NEW_LINE> <INDENT> super(NearestNeighborModel, self).__init__() <NEW_LINE> self.modelName = None <NEW_LINE> self.functionName = None <NEW_LINE> self.algorithmName = None <NEW_LINE> self.numberOfNeighbors = None <NEW_...
Represents a <NearestNeighborModel> tag in v4.1 and provides methods to convert to PFA.
62598f510a366e3fb87dbe0e
class Dummy(BuildStep): <NEW_LINE> <INDENT> haltOnFailure = True <NEW_LINE> flunkOnFailure = True <NEW_LINE> name = "dummy" <NEW_LINE> def __init__(self, timeout=5, **kwargs): <NEW_LINE> <INDENT> BuildStep.__init__(self, **kwargs) <NEW_LINE> self.addFactoryArguments(timeout=timeout) <NEW_LINE> self.timeout = timeout <N...
I am a dummy no-op step, which runs entirely on the master, and simply waits 5 seconds before finishing with SUCCESS
62598f51507cdc57c63a41df
class Component: <NEW_LINE> <INDENT> pass
A single component in a grafical interface.
62598f51eab8aa0e5d30b1b9
class Make(On): <NEW_LINE> <INDENT> def dirs(self, mode=0o777, exist_ok=False): <NEW_LINE> <INDENT> action = MakeDirs(mode, exist_ok) <NEW_LINE> self.do(actions=[action]) <NEW_LINE> return self.results[action] <NEW_LINE> <DEDENT> def touch(self, mode=0o777, exist_ok=False): <NEW_LINE> <INDENT> action = Touch(mode=mode,...
Make is a class that CHANGES the filesystem.
62598f5121a7993f00c653b8
class LogDetPair(_PairwiseDistance): <NEW_LINE> <INDENT> def __init__(self, use_tk_adjustment=True, *args, **kwargs): <NEW_LINE> <INDENT> super(LogDetPair, self).__init__(*args, **kwargs) <NEW_LINE> self.func = _logdet <NEW_LINE> self._func_args = [use_tk_adjustment] <NEW_LINE> <DEDENT> def run(self, use_tk_adjustment=...
computes logdet distance between sequence pairs
62598f51167d2b6e312b63c3
@implementer(ISchemaCreatedEvent) <NEW_LINE> class SchemaCreatedEvent(object): <NEW_LINE> <INDENT> def __init__(self, _object): <NEW_LINE> <INDENT> self.object = _object
Fire this event when schemas are instantiated.
62598f51925a0f43d25e7474
class ExtensionTemplate(object): <NEW_LINE> <INDENT> def __init__(self, template_dir): <NEW_LINE> <INDENT> self.template_dir = template_dir <NEW_LINE> self.name = os.path.basename(self.template_dir) <NEW_LINE> try: <NEW_LINE> <INDENT> with open(os.path.join(self.template_dir, "description.txt")) as fs: <NEW_LINE> <INDE...
Describes an extension template
62598f515166f23b2e24281f
class NotMergeableChangesEmailUnitTest(test_utils.EmailTestBase): <NEW_LINE> <INDENT> dummy_admin_address = 'admin@system.com' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(NotMergeableChangesEmailUnitTest, self).setUp() <NEW_LINE> self.can_send_emails_ctx = self.swap(feconf, 'CAN_SEND_EMAILS', True) <NEW_LINE>...
Unit test related to not mergeable change list emails sent to admin.
62598f51462c4b4f79dbae44
class TestActivateContactsMany(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testActivateContactsMany(self): <NEW_LINE> <INDENT> pass
ActivateContactsMany unit test stubs
62598f51711fe17d825dfb3c
class Zone: <NEW_LINE> <INDENT> def __init__(self, raw): <NEW_LINE> <INDENT> self._raw = raw <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self): <NEW_LINE> <INDENT> return self._raw["zoneID"] <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._raw["zoneName"] <NEW_LINE> <DEDENT>...
A representation of a Risco zone.
62598f51796e427e5384dbd7
class IndexPriceField(Base): <NEW_LINE> <INDENT> _fields_ = [ ('BrokerID', ctypes.c_char * 11), ('InstrumentID', ctypes.c_char * 31), ('ClosePrice', ctypes.c_double), ] <NEW_LINE> def __init__(self, BrokerID='', InstrumentID='', ClosePrice=0.0): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.BrokerID = self._to...
股指现货指数
62598f51ff9c53063f519a92
class CodingStatusCommentForm(forms.Form): <NEW_LINE> <INDENT> comment = forms.CharField(label='Comment', required=False, widget=forms.Textarea(attrs={'rows':4, 'cols':40})) <NEW_LINE> status = forms.ModelChoiceField(queryset=CodingStatus.objects.all(), empty_label=None)
Form that represents the coding status and comment
62598f520a366e3fb87dbe13
class FileApiPlugin(PluginBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(FileApiPlugin, self).__init__() <NEW_LINE> self.bench = None <NEW_LINE> <DEDENT> def init(self, bench=None): <NEW_LINE> <INDENT> self.bench = bench <NEW_LINE> if self.bench is None: <NEW_LINE> <INDENT> raise AttributeErro...
Plugin interface for JsonFile plugin.
62598f52507cdc57c63a41e6
class hr_analytic_timesheet_trip_step(osv.osv): <NEW_LINE> <INDENT> _name = 'hr.analytic.timesheet.trip.step' <NEW_LINE> _description = 'Trip step' <NEW_LINE> _columns = { 'name': fields.char('Description', size=80), 'total_trip': fields.float('Distance', digits=(16, 6), help='Distance in Km from google maps'), 'from_i...
Step computed for the trip
62598f52d164cc61758203c6
class Sound(FreesoundObject): <NEW_LINE> <INDENT> def retrieve(self, directory, name=False): <NEW_LINE> <INDENT> path = os.path.join(directory, name if name else self.name) <NEW_LINE> uri = URIS.uri(URIS.DOWNLOAD, self.id) <NEW_LINE> return FSRequest.retrieve(uri, self.client, path) <NEW_LINE> <DEDENT> def retrieve_pre...
Freesound Sound resources >>> sound = c.get_sound(6)
62598f5256b00c62f0fb1d01
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class OpportunisticFixture(DbFixture): <NEW_LINE> <INDENT> DRIVER = abc.abstractproperty(lambda: None) <NEW_LINE> DBNAME = PASSWORD = USERNAME = 'cdsoss_citest' <NEW_LINE> def _get_uri(self): <NEW_LINE> <INDENT> return utils.get_connect_string(backend=self.DRIVER, user=self.US...
Base fixture to use default CI databases. The databases exist in OpenStack CI infrastructure. But for the correct functioning in local environment the databases must be created manually.
62598f52d164cc61758203c8
class SourceCatalogObject2FHL(SourceCatalogObject): <NEW_LINE> <INDENT> pass
One source from the Fermi-LAT 2FHL catalog.
62598f5215fb5d323ce7e176
class SubsSet(dict): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.rewrites = {} <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return super().__repr__() + ', ' + self.rewrites.__repr__() <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> if not key in self: <NEW_LINE> <...
Stores (expr, dummy) pairs, and how to rewrite expr-s. Explanation =========== The gruntz algorithm needs to rewrite certain expressions in term of a new variable w. We cannot use subs, because it is just too smart for us. For example:: > Omega=[exp(exp(_p - exp(-_p))/(1 - 1/_p)), exp(exp(_p))] > O2=[exp(-ex...
62598f52eab8aa0e5d30b1c7
class Bullet(GameSprite): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> image_name = "./images/bullet1.png" <NEW_LINE> super().__init__(image_name, speed=[0, -10]) <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDENT> super().update() <NEW_LINE> if self.rect.bottom < 0: <NEW_LINE> <INDENT> self.kill()
子弹对象
62598f5215fb5d323ce7e17a
class DBI_abstract(object): <NEW_LINE> <INDENT> def prefix(self, tabname): <NEW_LINE> <INDENT> if self.tbl_prefix == '': <NEW_LINE> <INDENT> return tabname <NEW_LINE> <DEDENT> if tabname.startswith(self.tbl_prefix): <NEW_LINE> <INDENT> return tabname <NEW_LINE> <DEDENT> elif tabname.startswith('@'): <NEW_LINE> <INDENT>...
DBI_abstract: Each of the specific database interface classes (DBIsqlite, DBImysql, etc.) inherit from this one
62598f52796e427e5384dbe3
class StructuredError(Exception): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.kwargs = kwargs <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self): <NEW_LINE> <INDENT> summer = hashlib.md5() <NEW_LINE> summer.update(self.__class__.__name__) <NEW_LINE> summer.update(self.__class__.__modul...
A structured error exception. A structured exception is meant to specify highly specific errors in its type. Rather than getting a formatted message string as its initialiser argument (e.g., "raise Exception('Something went wrong')"), the message is an attribute of the StructuredError subclass. Each message gets a sep...
62598f5221a7993f00c653c6
class PathMatcher(Matcher): <NEW_LINE> <INDENT> def __init__(self, pattern, inverted=False, content_encoding='utf8'): <NEW_LINE> <INDENT> super().__init__(pattern, inverted) <NEW_LINE> self.content_encoding = content_encoding
A matcher for matching file paths.
62598f5215fb5d323ce7e17e
class ShoppingList(object): <NEW_LINE> <INDENT> def __init__(self, title, items): <NEW_LINE> <INDENT> self.title = title <NEW_LINE> self.items = items <NEW_LINE> <DEDENT> def add_item(self, item): <NEW_LINE> <INDENT> self.items[item.name] = item <NEW_LINE> return self.items <NEW_LINE> <DEDENT> def remove_item(self, ite...
This class describes the structure of the ShoppingList object
62598f52711fe17d825dfb4c
class FeedbackForm(forms.Form): <NEW_LINE> <INDENT> name = forms.CharField(required=False) <NEW_LINE> email = forms.EmailField(required=False) <NEW_LINE> message = forms.CharField(widget=forms.Textarea, required=True) <NEW_LINE> eadid = forms.CharField(widget=forms.HiddenInput, required=False) <NEW_LINE> url = forms.Ch...
Simple Feedback form with reCAPTCHA. Expects reCAPTCHA keys to be set in settings as RECAPTCHA_PUBLIC_KEY and RECAPTCHA_PRIVATE_KEY. Form validation includes checking the CAPTCHA response. Captcha challenge html should be added to the form using :meth:`captcha_challenge`. When initializing this form to do validatio...
62598f5221a7993f00c653ca
class InlineResponse20013ResultData(object): <NEW_LINE> <INDENT> swagger_types = { 'content': 'list[Submission]', 'code': 'int', 'message': 'str' } <NEW_LINE> attribute_map = { 'content': 'content', 'code': 'code', 'message': 'message' } <NEW_LINE> def __init__(self, content=None, code=None, message=None): <NEW_LINE> <...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f52d18da76e235b6b61
class Stats: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def cdv(img,percent=0.9): <NEW_LINE> <INDENT> _cdf,bins = Distros.cdf(img) <NEW_LINE> perc = percent if 0<percent<1 else abs(percent/100.) <NEW_LINE> ind = list(_cdf > perc).index(1) <NEW_LINE> _cdv = bins[ind] <NEW_LINE> return _cdv <NEW_LINE> <DEDENT> @staticm...
Namespace to group functions computing statistical values
62598f52925a0f43d25e7488
class MyApp(wx.App): <NEW_LINE> <INDENT> def OnInit(self): <NEW_LINE> <INDENT> project = compass.CompassProjectParser(sys.argv[1]).parse() <NEW_LINE> frame = MyFrame(None, -1, 'wxCompass', project) <NEW_LINE> frame.Show(True) <NEW_LINE> self.SetTopWindow(frame) <NEW_LINE> return True
Our application class
62598f5256b00c62f0fb1d10
class UnrecognizedFileException(Exception): <NEW_LINE> <INDENT> def __init__(self, message: str): <NEW_LINE> <INDENT> super(UnrecognizedFileException, self).__init__(message) <NEW_LINE> self._message: str = message <NEW_LINE> <DEDENT> def __repr__(self) -> str: <NEW_LINE> <INDENT> return self.__str__() <NEW_LINE> <DEDE...
Exception representing and unrecognized file type that does not belong to the whitebear website
62598f52d164cc61758203d8
class GameDetail(APIView): <NEW_LINE> <INDENT> permission_classes = (AllowAny,) <NEW_LINE> def get(self, request, username, game_id, format=None): <NEW_LINE> <INDENT> game = load_game_or_error(username, game_id) <NEW_LINE> if isinstance(game, Response): <NEW_LINE> <INDENT> return game <NEW_LINE> <DEDENT> else: <NEW_LIN...
Provides a method to retrieve a specific game.
62598f520a366e3fb87dbe27
class QtViewController(Controller.Controller): <NEW_LINE> <INDENT> def displayAboutDialog(self): <NEW_LINE> <INDENT> widget = About.About() <NEW_LINE> widget.exec() <NEW_LINE> <DEDENT> def reportException(self, e): <NEW_LINE> <INDENT> msgBox = QtGui.QMessageBox(QtGui.QMessageBox.Warning, "", str(e)) <NEW_LINE> msgBox.e...
A simple controller for QtResultView. Nothing to override @see Controller.Controller
62598f52d18da76e235b6b63
@admin.register(Scene) <NEW_LINE> class SceneAdmin(EntityAdmin): <NEW_LINE> <INDENT> fieldsets = ( (_("Informations"), dict( fields=('name', 'description', 'image', 'scenario', ), classes=('wide', ), )), (_("Scène"), dict( fields=('url_high', 'url_low', 'timecode', ), classes=('wide', ), )), ) <NEW_LINE> inlines = [Cho...
Administration des scènes
62598f52507cdc57c63a41fa
class Enum(String): <NEW_LINE> <INDENT> def __init__(self, enum, *values, **kwargs): <NEW_LINE> <INDENT> if not (not values and isinstance(enum, enums.Enumeration)): <NEW_LINE> <INDENT> enum = enums.enumeration(enum, *values) <NEW_LINE> <DEDENT> self._enum = enum <NEW_LINE> default = kwargs.get("default", enum._default...
Accept values from enumerations. The first value in enumeration is used as the default value, unless the ``default`` keyword argument is used. See :ref:`bokeh.core.enums` for more information.
62598f52925a0f43d25e748e
class EnvSpec(object): <NEW_LINE> <INDENT> def __init__(self, env_id, entry_point=None): <NEW_LINE> <INDENT> self.env_id = env_id <NEW_LINE> mod_name, class_name = entry_point.split(':') <NEW_LINE> self._entry_point = getattr(importlib.import_module(mod_name), class_name) <NEW_LINE> <DEDENT> def make(self, config=DEFAU...
A specification for a particular instance of the environment.
62598f5256b00c62f0fb1d14
class ThreeLayerConvNet(object): <NEW_LINE> <INDENT> def __init__(self, input_dim=(3, 32, 32), num_filters=32, filter_size=7, hidden_dim=100, num_classes=10, weight_scale=1e-3, reg=0.0, dtype=np.float32): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> self.reg = reg <NEW_LINE> self.dtype = dtype <NEW_LINE> C, H, W = i...
A three-layer convolutional network with the following architecture: conv - relu - 2x2 max pool - affine - relu - affine - softmax The network operates on minibatches of data that have shape (N, C, H, W) consisting of N images, each with height H and width W and with C input channels.
62598f52711fe17d825dfb56
class EventsPublisher: <NEW_LINE> <INDENT> def __init__(self, zkclient, app_events_dir=None, server_events_dir=None): <NEW_LINE> <INDENT> self._zkclient = zkclient <NEW_LINE> self._app_events_dir = app_events_dir <NEW_LINE> self._server_events_dir = server_events_dir <NEW_LINE> self._watcher = dirwatch.DirWatcher() <NE...
Monitor event directories and publish events.
62598f5215fb5d323ce7e18a
class djvuPageBox(BoundingBox): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> BoundingBox.__init__(self) <NEW_LINE> <DEDENT> def encode(self): <NEW_LINE> <INDENT> self.sanity_check() <NEW_LINE> page = '(page {0} {1} {2} {3}'.format(self.perimeter['xmin'], self.perimeter['ymin'], self.perimeter['xmax'], se...
BoundingBox of a single page. See :py:meth:`~djvubind.ocr.BoundingBox`
62598f52eab8aa0e5d30b1d9
class PrimitiveDataType: <NEW_LINE> <INDENT> def __init__(self, name, ty, bytes): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.type = ty <NEW_LINE> self.bytes = bytes <NEW_LINE> <DEDENT> def make_declaration(self, f): <NEW_LINE> <INDENT> f.write(' %s %s;\n' % (self.type, self.name) ) <NEW_LINE> <DEDENT> de...
Our datatype is a C/C++ primitive.
62598f520a366e3fb87dbe2f
class SMSBackup(object): <NEW_LINE> <INDENT> def __init__(self, db_file, backup_path): <NEW_LINE> <INDENT> self.db_file = db_file <NEW_LINE> self.backup_path = backup_path <NEW_LINE> <DEDENT> def create_backup(self, timestamp=None): <NEW_LINE> <INDENT> if timestamp is None: <NEW_LINE> <INDENT> timestamp = int(time.time...
This class creates and imports simple one-to-one database backups
62598f52d18da76e235b6b67
class AnswerRecord(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(to=User, on_delete=models.CASCADE) <NEW_LINE> card = models.ForeignKey(to=Card, on_delete=models.CASCADE, related_name='answer_records') <NEW_LINE> correct = models.BooleanField() <NEW_LINE> answered_at = models.DateTimeField(auto_now_add=Tr...
Record of whether the user answered the card correctly or incorrectly.
62598f52796e427e5384dbf5
class UserUpdateForm(FlaskForm): <NEW_LINE> <INDENT> username = StringField( 'Username', validators=[DataRequired(), Length(max=30)]) <NEW_LINE> email = StringField( 'E-mail', validators=[DataRequired(), Email()]) <NEW_LINE> image_url = StringField( 'Image', validators=[DataRequired()]) <NEW_LINE> header_image_url = St...
Form for updating users.
62598f52a8ecb03325870665
@dataclass <NEW_LINE> class HotwordError(Message): <NEW_LINE> <INDENT> error: str <NEW_LINE> site_id: str = "default" <NEW_LINE> context: typing.Optional[str] = None <NEW_LINE> session_id: typing.Optional[str] = None <NEW_LINE> @classmethod <NEW_LINE> def topic(cls, **kwargs) -> str: <NEW_LINE> <INDENT> return "hermes/...
Error from wake word component. .. admonition:: MQTT message Topic ``hermes/error/hotword`` Payload (JSON) .. list-table:: :widths: 10 10 80 :header-rows: 1 * - Key - Type - Description * - error - String - A description of the error that occurred....
62598f52925a0f43d25e7496
class Pile(datasets.GeneratorBasedBuilder): <NEW_LINE> <INDENT> VERSION = datasets.Version("0.0.1") <NEW_LINE> BUILDER_CONFIGS = [ datasets.BuilderConfig(name=name, version=version, description=_NAMES[name]) for name, version in zip(_NAMES.keys(), [VERSION] * len(_NAMES)) ] <NEW_LINE> def _info(self): <NEW_LINE> <INDEN...
The Pile is a 825 GiB diverse, open source language modeling dataset.
62598f53796e427e5384dbf9
class BaseDecoratedFrameTransformer(IFrameTransformer, abc.ABC): <NEW_LINE> <INDENT> def __init__(self, inner_transform): <NEW_LINE> <INDENT> self.__inner_transform = inner_transform <NEW_LINE> <DEDENT> def transform_frame(self, frame, frame_index): <NEW_LINE> <INDENT> frame = self.__inner_transform.transform_frame(fra...
This class implements both a decorator pattern (the design pattern not Python decorators) and a template method pattern. The decorator pattern is used to make it possible to combine any number of frame transformers. The template method pattern is used encapsulate the process of calling the inner transform in the right ...
62598f5356b00c62f0fb1d1e
class Solution(object): <NEW_LINE> <INDENT> def maximalSquare(self, matrix): <NEW_LINE> <INDENT> res = 0 <NEW_LINE> if not matrix or not matrix[0]: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> n, m = len(matrix), len(matrix[0]) <NEW_LINE> dp = [[0]*(m+1) for i in range(n+1)] <NEW_LINE> for i in range(1, n+1): <NEW_...
Wrong.
62598f5315fb5d323ce7e192
class DBClientCredential(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'client_credential' <NEW_LINE> credential_id = Column(Integer, primary_key=True, autoincrement=True) <NEW_LINE> client_id = Column(ForeignKey('client.client_id')) <NEW_LINE> client_secret = Column(String(255)) <NEW_LINE> created = Column(DateTime, ...
Persistence for :class:`domain.ClientCredential`.
62598f530a366e3fb87dbe35
class PathRule(ServerRule): <NEW_LINE> <INDENT> def __init__(self, rule_type, path): <NEW_LINE> <INDENT> super(PathRule, self).__init__(rule_type) <NEW_LINE> self._path = path <NEW_LINE> <DEDENT> @property <NEW_LINE> def path(self): <NEW_LINE> <INDENT> return self._path <NEW_LINE> <DEDENT> def is_match_found(self, requ...
Rule to match requests by path.
62598f535166f23b2e242846
class Card(object): <NEW_LINE> <INDENT> def __init__(self, val): <NEW_LINE> <INDENT> if isinstance(val, int): <NEW_LINE> <INDENT> self.suit = SUIT_CONST[val % 4] <NEW_LINE> self.rank = RANK_CONST[int(val/4)] <NEW_LINE> self.value = CARD_CONST[self.rank] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.suit = val[0] <...
牌的花色+牌值
62598f53711fe17d825dfb62
class ExportInd(models.AbstractModel): <NEW_LINE> <INDENT> _description = textwrap.dedent(" %s" % (__doc__,)) <NEW_LINE> _name = 'nfe.40.exportind' <NEW_LINE> _inherit = 'spec.mixin.nfe' <NEW_LINE> _generateds_type = 'exportIndType' <NEW_LINE> nfe40_nRE = fields.Char( string="Registro de exportação", xsd_required=Tr...
Exportação indireta
62598f53796e427e5384dbfd
class TestAddonReview(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testAddonReview(self): <NEW_LINE> <INDENT> pass
AddonReview unit test stubs
62598f535166f23b2e242848
class StripFieldsForm(Form): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> def bind_field(self, form, unbound_field, options): <NEW_LINE> <INDENT> filters = unbound_field.kwargs.get("filters", []) <NEW_LINE> filters.append(strip_filter) <NEW_LINE> return unbound_field.bind(form=form, filters=filters, **options)
Any field data that can be stripped, will be stripped. http://stackoverflow.com/questions/26232165/automatically-strip-all-values-in-wtforms
62598f5315fb5d323ce7e196
class Command(BaseCommand): <NEW_LINE> <INDENT> help = "Create customer objects for existing subscribers that don't have one" <NEW_LINE> def handle(self, *args, **options): <NEW_LINE> <INDENT> for subscriber in get_subscriber_model().objects.filter(customer__isnull=True): <NEW_LINE> <INDENT> Customer.get_or_create(subs...
Create customer objects for existing subscribers that don't have one.
62598f530a366e3fb87dbe39
class L7PolicyResponse(BaseL7PolicyType): <NEW_LINE> <INDENT> id = wtypes.wsattr(wtypes.UuidType()) <NEW_LINE> name = wtypes.wsattr(wtypes.StringType()) <NEW_LINE> description = wtypes.wsattr(wtypes.StringType()) <NEW_LINE> provisioning_status = wtypes.wsattr(wtypes.StringType()) <NEW_LINE> operating_status = wtypes.ws...
Defines which attributes are to be shown on any response.
62598f5315fb5d323ce7e198
class res_partner(osv.osv): <NEW_LINE> <INDENT> _name = "res.partner" <NEW_LINE> _inherit = "res.partner" <NEW_LINE> def _get_tags(self, cr, uid, ids, field_names, arg, context=None): <NEW_LINE> <INDENT> vals={} <NEW_LINE> for partner in self.browse(cr,uid,ids): <NEW_LINE> <INDENT> vals[partner.id] = {} <NEW_LINE> hasC...
añadimos los nuevos campos
62598f53462c4b4f79dbae6e
class _SubParsersActionWithRoot(_SubParsersAction): <NEW_LINE> <INDENT> def __init__(self, *args, root_parser, **kwargs): <NEW_LINE> <INDENT> super(_SubParsersActionWithRoot, self).__init__(*args, **kwargs) <NEW_LINE> self.root_parser = root_parser <NEW_LINE> <DEDENT> def add_parser(self, *args, **kwargs): <NEW_LINE> <...
Override SubParsers action to store the root parsers and pass it to PAIArgParser on construction (add_parse)
62598f53d18da76e235b6b6d
class Lesson13(object): <NEW_LINE> <INDENT> DEFAULT_VALUES = { 'activity_listed': True, 'scored': False, 'properties': {}, 'auto_index': True, 'manual_progress': False, 'availability': AVAILABILITY_COURSE, 'shown_when_unavailable': None, } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.lesson_id = 0 <NEW_LINE>...
An object to represent a Lesson (version 1.3).
62598f5321a7993f00c653e4
class ReviewRequestReviewGroupsChoice(ReviewRequestConditionChoiceMixin, ReviewGroupsChoice): <NEW_LINE> <INDENT> def get_match_value(self, review_request, **kwargs): <NEW_LINE> <INDENT> return super(ReviewRequestReviewGroupsChoice, self).get_match_value( review_groups=review_request.target_groups, **kwargs)
A condition choice for matching a review request's review groups.
62598f5315fb5d323ce7e19a
class Deslant(object): <NEW_LINE> <INDENT> def __call__(self, sample): <NEW_LINE> <INDENT> image, word = sample['image'], sample['word'] <NEW_LINE> try: <NEW_LINE> <INDENT> threshold = filters.threshold_otsu(image) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <INDENT> return {'image':image, 'word':word} <NEW_LINE>...
Deslant handwriting samples
62598f53d164cc61758203ee
@register_command <NEW_LINE> class PieInfoCommand(GenericCommand): <NEW_LINE> <INDENT> _cmdline_ = "pie info" <NEW_LINE> _syntax_ = "{:s} BREAKPOINT".format(_cmdline_) <NEW_LINE> def do_invoke(self, argv): <NEW_LINE> <INDENT> global __pie_breakpoints__ <NEW_LINE> if len(argv) < 1: <NEW_LINE> <INDENT> bps = [__pie_brea...
Display breakpoint info.
62598f53711fe17d825dfb68
class Type(Base): <NEW_LINE> <INDENT> __tablename__ = 'types' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> desc = Column(String(20), nullable=False) <NEW_LINE> def __init__(self, desc): <NEW_LINE> <INDENT> self.desc = desc <NEW_LINE> <DEDENT> @property <NEW_LINE> def serialize(self): <NEW_LINE> <INDENT>...
Type object to represent a User's type/category
62598f535e10d32532ce331f
class GUID(TypeDecorator): <NEW_LINE> <INDENT> impl = CHAR <NEW_LINE> def load_dialect_impl(self, dialect): <NEW_LINE> <INDENT> if dialect.name == 'postgresql': <NEW_LINE> <INDENT> return dialect.type_descriptor(UUID()) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return dialect.type_descriptor(CHAR(32)) <NEW_LINE> <D...
Platform-independent GUID type. Uses Postgresql's UUID type, otherwise uses CHAR(32), storing as stringified hex values. See: http://docs.sqlalchemy.org/en/rel_0_8/core/types.html#backend-agnostic-guid-type
62598f53507cdc57c63a420e
class Vertex: <NEW_LINE> <INDENT> def __init__(self, dx, dy): <NEW_LINE> <INDENT> self.x = dx <NEW_LINE> self.y = dy <NEW_LINE> self.hedge_list = [] <NEW_LINE> global vertex_count <NEW_LINE> vertex_count += 1 <NEW_LINE> self._name = "V" + str(vertex_count) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> ret...
Vertex on a cartesian plance
62598f53796e427e5384dc03
class Registry(Generic[RegistryItem]): <NEW_LINE> <INDENT> def __init__( self, definitions: Union[RegistryItems, Iterable[Tuple[str, RegistryItem]]] = () ): <NEW_LINE> <INDENT> self._storage = {} <NEW_LINE> self.extend(definitions) <NEW_LINE> <DEDENT> def add(self, name: str, definition: RegistryItem) -> None: <NEW_LIN...
A registry to store and retrieve schemas and parts of it by a name that can be used in validation schemas. :param definitions: Optional, initial definitions.
62598f53167d2b6e312b63f1
class DefendersAuthenticationForm(CheckUserMailMixin, forms.Form): <NEW_LINE> <INDENT> username = UsernameField(widget=forms.TextInput(attrs={'autofocus': True})) <NEW_LINE> password = forms.CharField( label=_("Password"), strip=False, widget=forms.PasswordInput(attrs={'autocomplete': 'current-password'}), ) <NEW_LINE>...
Base class for authenticating users. Extend this to get a form that accepts username/password logins.
62598f535166f23b2e24284e
class itkNaryAddImageFilterIUS2IUS2(itkNaryAddImageFilterIUS2IUS2_Superclass): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LINE> __repr__ = ...
Proxy of C++ itkNaryAddImageFilterIUS2IUS2 class
62598f53d164cc61758203f0
class DrawInLayer: <NEW_LINE> <INDENT> def __init__(self, board, layer): <NEW_LINE> <INDENT> self.board = board <NEW_LINE> self.layer = layer <NEW_LINE> <DEDENT> def __call__(self, entity): <NEW_LINE> <INDENT> if type(entity) is LWPolyline: <NEW_LINE> <INDENT> self._draw(entity) <NEW_LINE> <DEDENT> else: <NEW_LINE> <IN...
This action draw a DXFEntity inside a specific layer.
62598f53eab8aa0e5d30b1e9
class Bot(DefaultPlayer): <NEW_LINE> <INDENT> def basetype_setup(self): <NEW_LINE> <INDENT> self.db.encoding = "utf-8" <NEW_LINE> lockstring = "examine:perm(Wizards);edit:perm(Wizards);delete:perm(Wizards);boot:perm(Wizards);msg:false()" <NEW_LINE> self.locks.add(lockstring) <NEW_LINE> script_key = "%s" % self.key <NEW...
A Bot will start itself when the server starts (it will generally not do so on a reload - that will be handled by the normal Portal session resync)
62598f53796e427e5384dc05
class PixelOrdering(_object): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> __setattr__ = lambda self, name, value: _swig_setattr(self, PixelOrdering, name, value) <NEW_LINE> __swig_getmethods__ = {} <NEW_LINE> __getattr__ = lambda self, name: _swig_getattr(self, PixelOrdering, name) <NEW_LINE> __repr__ = _sw...
Proxy of C++ Stomp::PixelOrdering class
62598f53a8ecb03325870675
class PlainBoxTool(LazyLoadingToolMixIn, PlainBoxToolBase): <NEW_LINE> <INDENT> def get_command_collection(self): <NEW_LINE> <INDENT> p = "plainbox.impl.commands." <NEW_LINE> return LazyPlugInCollection(collections.OrderedDict([ ('run', (p + "cmd_run:RunCommand", self._load_providers, self._load_config)), ('session', (...
Command line interface to PlainBox
62598f53711fe17d825dfb6c
class RightSidePlanks(Activity): <NEW_LINE> <INDENT> name = "Right side planks"
This variation better engages the obliques, or the side muscles of the core, than a standard plank. Lie on one side with the legs stacked on top of one another then prop the body up on the hand or elbow while keeping the feet stacked. Modify the position by raising the opposing arm or leg (or both!) in the air to make ...
62598f53796e427e5384dc07
class ExportsInfo(Sequence): <NEW_LINE> <INDENT> __scheme__ = List(DictScheme({ "sdcId": String(), "sdcIp": String(), "limitIops": Integer(), "limitBwInMbps": Integer() }), optional=True) <NEW_LINE> def __init__(self, data=None): <NEW_LINE> <INDENT> self._data = data or [] <NEW_LINE> <DEDENT> def __getitem__(self, inde...
Information about volume exports.
62598f53eab8aa0e5d30b1ed
class VAE(Model): <NEW_LINE> <INDENT> def __init__(self, encoder, decoder, other_distributions=[], regularizer=None, optimizer=optim.Adam, optimizer_params={}, clip_grad_norm=None, clip_grad_value=None): <NEW_LINE> <INDENT> distributions = [encoder, decoder] + tolist(other_distributions) <NEW_LINE> reconstruction = -de...
Variational Autoencoder. In VAE class, reconstruction loss on given distributions (encoder and decoder) is set as the default loss class. However, if you want to add additional terms, e.g., the KL divergence between encoder and prior, you need to set them to the `regularizer` argument, which defaults to None. Referen...
62598f53d18da76e235b6b72
class AbstractUtilsCRUD(): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _objectFactory(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _setParentID(self, parentID): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _allObjectsDict(self): <NEW_LINE> <INDENT> obje...
This class have a primary utilities for CRUD functionality
62598f53ff9c53063f519ac6
class SystemException(TException): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'message', None, None, ), ) <NEW_LINE> def __init__(self, message=None,): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinary...
Attributes: - message
62598f53711fe17d825dfb70
class FileLock(object): <NEW_LINE> <INDENT> def __init__(self, file_name, timeout=10, delay=0.05, base=None): <NEW_LINE> <INDENT> if base is None: <NEW_LINE> <INDENT> base = os.getcwd() <NEW_LINE> <DEDENT> self.is_locked = False <NEW_LINE> self.lockfile = os.path.join(base, "%s.lock" % file_name) <NEW_LINE> self.file_n...
A file locking mechanism that has context-manager support so you can use it in a with statement.
62598f53462c4b4f79dbae7a
class CyclicPoolLayer(lasagne.layers.Layer): <NEW_LINE> <INDENT> def __init__(self, input_layer, pool_function=T.mean): <NEW_LINE> <INDENT> super(CyclicPoolLayer, self).__init__(input_layer) <NEW_LINE> self.pool_function = pool_function <NEW_LINE> <DEDENT> def get_output_shape_for(self, input_shape): <NEW_LINE> <INDENT...
Utility layer that unfolds the viewpoints dimension and pools over it. Note that this only makes sense for dense representations, not for feature maps (because no inverse transforms are applied to align them).
62598f53711fe17d825dfb72
class NPC(DefaultCharacter): <NEW_LINE> <INDENT> pass
The basic NPC.
62598f53507cdc57c63a4218
class Child(Parent): <NEW_LINE> <INDENT> def __init__(self, last_name, eye_color, number_of_toys): <NEW_LINE> <INDENT> print("bow wow chicka chicka ...") <NEW_LINE> Parent.__init__(self, last_name, eye_color) <NEW_LINE> self.number_of_toys = number_of_toys <NEW_LINE> <DEDENT> def inhertence(): <NEW_LINE> <INDENT> if(se...
This Class is just an example program with a purpose of learning It will constuct a Parent with a last name and eye color. Args: last_name: A Parent's Last Name eye_color: A Parent's Eye Color Returns: An Object with the last name and eye color
62598f53167d2b6e312b63fb
class ImageInfo: <NEW_LINE> <INDENT> def __init__(self, center, size, radius = 0, lifespan = None, animated = False): <NEW_LINE> <INDENT> self.center = center <NEW_LINE> self.size = size <NEW_LINE> self.radius = radius <NEW_LINE> if lifespan: <NEW_LINE> <INDENT> self.lifespan = lifespan <NEW_LINE> <DEDENT> else: <NEW_L...
This class is used to store all sprites information
62598f53167d2b6e312b63fd
class Announcement(models.Model): <NEW_LINE> <INDENT> notice_content = models.CharField(max_length=200, default='none') <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.notice_content
系统公告 发布在系统首页的系统公告 字段: notice_content(公告内容): 类型:models.CharField 接受储存的类型:str 最大长度:200 默认值:‘none’
62598f53462c4b4f79dbae7e
class ExportSubnetView(BaseExportSubnetView): <NEW_LINE> <INDENT> subnet_model = Subnet <NEW_LINE> queryset = Subnet.objects.none()
View for exporting a subnet to a csv file.
62598f535166f23b2e24285c
class EnemyBullet(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, bulletimage): <NEW_LINE> <INDENT> pygame.sprite.Sprite.__init__(self, self.containers) <NEW_LINE> self.image = bulletimage <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDENT> return
Class for the bullet that the player must dodge
62598f53d164cc61758203fe
class VitisHLSOutputFormatter(OutputFormatter): <NEW_LINE> <INDENT> def __init__(self, prefix=None, sep=' | ', quiet=False): <NEW_LINE> <INDENT> super().__init__(prefix, sep, quiet) <NEW_LINE> self.pendingchars = '' <NEW_LINE> self.skiplines = [u'\r\x1b[12C\r', u'\r\x1b[11C\r'] <NEW_LINE> <DEDENT> def write(self, messa...
Formatter for Vivado command line output Arguments: prefix (string): String to prepend to each line of output Attributes: pendingchars (str): Description skiplines (list): Regexes which, if matched, will skip the writing of a line
62598f53eab8aa0e5d30b1f7
class TestMakeCertClientCA(_MakeCertTestHelperMixin, _BaseClientCATestCase, unittest.TestCase): <NEW_LINE> <INDENT> expected_values = { '0000000000000000abcd': { 'serial_hex': SERIAL_NUMBER, 'days_valid': NEW_CERT_VALIDITY_DELTA, 'slug': 'n6-client-ca-12345678abcdef012345-app-example.com', 'subject': 'CN=app@example.co...
A concrete subclass and a test case. It tests making of a new *client* certificate through Manage API - defines expected objects, which should be found inside the mocked database after the operation. The class uses test methods from `_BaseClientCATestCase` class, and also defines its own, specific test methods.
62598f53a8ecb03325870681
class BaseModel: <NEW_LINE> <INDENT> ref = ModelDispatcher("ref", type_dispatcher=None, obj_getattr=lambda obj, key: (_ for _ in ()).throw( AttributeError((f"{obj}.to does not implement '{key}' " f"dispatcher, are you using it incorrectly?")) ) )
Base class used for inheritance for creating separate models
62598f53796e427e5384dc13
class TerminalTitleEventHandler(EventHandlerExtensionPoint): <NEW_LINE> <INDENT> PRIORITY = 20 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> satisfies_version( EventHandlerExtensionPoint.EXTENSION_POINT_VERSION, '^1.0') <NEW_LINE> self.enabled = sys.stdout.isatty() and os.getenv('TERM...
Show status in the terminal title. The extension is only enabled by default if stdout is a tty-like device and not a dumb terminal. The extension handles events of the following types: - :py:class:`colcon_core.event.job.JobQueued` - :py:class:`colcon_core.event.job.JobStarted` - :py:class:`colcon_core.event.job.JobEn...
62598f53507cdc57c63a421e
class TTreeIterable(unittest.TestCase): <NEW_LINE> <INDENT> filename = 'treeiterable.root' <NEW_LINE> treename = 'mytree' <NEW_LINE> nentries = 10 <NEW_LINE> arraysize = 10 <NEW_LINE> more = 10 <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> ROOT.gInterpreter.Declare('#include "TreeH...
Test for the pythonization that makes TTree instances iterable in Python. For example, this allows to do: `for event in mytree:` `...`
62598f5321a7993f00c653f6
class OrderManager(OwnerManager): <NEW_LINE> <INDENT> pass
Custom manager of :model:`orders.Order`.
62598f53bf627c535bcb08fd
@inherit_doc <NEW_LINE> class QuantileDiscretizer(JavaEstimator, HasInputCol, HasOutputCol, HasSeed, JavaMLReadable, JavaMLWritable): <NEW_LINE> <INDENT> numBuckets = Param(Params._dummy(), "numBuckets", "Maximum number of buckets (quantiles, or " + "categories) into which data points are grouped. Must be >= 2. Default...
.. note:: Experimental `QuantileDiscretizer` takes a column with continuous features and outputs a column with binned categorical features. The bin ranges are chosen by taking a sample of the data and dividing it into roughly equal parts. The lower and upper bin bounds will be -Infinity and +Infinity, covering all rea...
62598f53d164cc6175820400
class BaseEnhancedImageFieldFile(ImageFieldFile): <NEW_LINE> <INDENT> def __init__(self, instance, field, name): <NEW_LINE> <INDENT> self.identifier = None <NEW_LINE> self.setup_image_processing_options(field.process_source) <NEW_LINE> super(BaseEnhancedImageFieldFile, self).__init__(instance, field, name) <NEW_LINE> i...
Enhanced version of the default ImageFieldFile for the source image. Note that this class cannot be used on its own, but also requires ``sky_thumbnails.images.ImageProcessor`` or a derived class to provide the image processing methods. The BaseEnhancedImageFieldFile supports: - resizing the original image before sav...
62598f53796e427e5384dc15