code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class R2LogRRBF(RadialBasisFunction): <NEW_LINE> <INDENT> def __init__(self, c): <NEW_LINE> <INDENT> super(R2LogRRBF, self).__init__(c) <NEW_LINE> <DEDENT> def _apply(self, points, **kwargs): <NEW_LINE> <INDENT> euclidean_distance = cdist(points, self.c) <NEW_LINE> mask = euclidean_distance == 0 <NEW_LINE> with np.errs... | Calculates the :math:`r^2 \log{r}` basis function.
The derivative of this function is :math:`r (1 + 2 \log{r})`.
.. note::
:math:`r = \lVert x - c \rVert`
Parameters
----------
c : ``(n_centres, n_dims)`` `ndarray`
The set of centers that make the basis. Usually represents a set of
source landmarks. | 6259905a435de62698e9d3eb |
class TestDataWriterVTK(TestComponent): <NEW_LINE> <INDENT> _class = DataWriterVTK <NEW_LINE> _factory = data_writer | Unit testing of DataWriterVTK object.
| 6259905abe8e80087fbc066a |
class MoveToDynamicPoint(sm.SM): <NEW_LINE> <INDENT> forwardGain = 1.0 <NEW_LINE> rotationGain = 0.5 <NEW_LINE> maxVel = 0.5 <NEW_LINE> angleEps = 0.1 <NEW_LINE> def getNextValues(self, state, inp): <NEW_LINE> <INDENT> (goalPoint, sensors) = inp <NEW_LINE> return (None, actionToPoint(goalPoint, sensors.odometry, self.f... | Drive to a goal point in the frame defined by the odometry. Goal
points are part of the input, in contrast to C{MoveToFixedPoint},
which takes a single goal point at initialization time.
Assume inputs are C{(util.Point, io.SensorInput)} pairs
This is really a pure function machine; defining its own class,
though, s... | 6259905a0fa83653e46f64cd |
class WebDown(object): <NEW_LINE> <INDENT> def __init__(self, address=None, proxy=None,): <NEW_LINE> <INDENT> self.downLoadaddress = address <NEW_LINE> self.proxy = proxy <NEW_LINE> self.htmlbody = None <NEW_LINE> <DEDENT> def getParsingRootOfTree(self, address=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> if add... | classdocs | 6259905a21bff66bcd72424c |
class NuSVC(SparseBaseLibSVM, BaseSVC): <NEW_LINE> <INDENT> def __init__(self, nu=0.5, kernel='rbf', degree=3, gamma=0.0, coef0=0.0, shrinking=True, probability=False, tol=1e-3, cache_size=200, class_weight=None, verbose=False, max_iter=-1): <NEW_LINE> <INDENT> if class_weight is not None: <NEW_LINE> <INDENT> warnings.... | NuSVC for sparse matrices (csr).
See :class:`sklearn.svm.NuSVC` for a complete list of parameters
Notes
-----
For best results, this accepts a matrix in csr format
(scipy.sparse.csr), but should be able to convert from any array-like
object (including other sparse representations).
Examples
--------
>>> import numpy... | 6259905a7d847024c075d9c4 |
class Ctx: <NEW_LINE> <INDENT> __shared_state = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.__dict__ = self.__shared_state <NEW_LINE> if self.__dict__: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self.set_defaults() <NEW_LINE> <DEDENT> def set_defaults(self): <NEW_LINE> <INDENT> self.output_option = ... | Session state for this run of cvs2svn. For example, run-time
options are stored here. This class is a Borg (see
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66531). | 6259905ab7558d5895464a1f |
class TestNodeUserProperties(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 testNodeUserProperties(self): <NEW_LINE> <INDENT> pass | NodeUserProperties unit test stubs | 6259905af7d966606f7493ac |
class MergedAlnfileSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> filetype = serializers.StringRelatedField() <NEW_LINE> download = serializers.HyperlinkedIdentityField(view_name='api:mergedalnfile-download') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = MergedAlnfile <NEW_LINE> fields = ('filename_... | This MergedAlnfile serializer links back to the main UI file download view. | 6259905a498bea3a75a590f0 |
class TestBasicAuthPolicy(MockServerTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestBasicAuthPolicy, self).setUp() <NEW_LINE> self.policy = auth.PypicloudSecurityPolicy() <NEW_LINE> self.request.access = MagicMock() <NEW_LINE> self.get_creds = patch("pypicloud.auth.get_basicauth_credentials").... | Tests for the BasicAuthPolicy | 6259905acc0a2c111447c5c2 |
class LocaleMiddleware(object): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> a_l = get_accept_language(request) <NEW_LINE> lang, ov_lang = a_l, '' <NEW_LINE> stored_lang, stored_ov_lang = '', '' <NEW_LINE> remembered = request.COOKIES.get('lang') <NEW_LINE> if remembered: <NEW_LINE> <INDE... | Figure out the user's locale and store it in a cookie. | 6259905a3eb6a72ae038bc47 |
class DeploymentConfig(BaseConfig): <NEW_LINE> <INDENT> DEBUG = False | Deployment environment config | 6259905a32920d7e50bc762e |
class URL(TextBox): <NEW_LINE> <INDENT> def __init__(self, name, socket_io, change_callback=None, disabled=None, readonly=None, url=None, desc=None, prop=None, style=None, attr=None, css_cls=None): <NEW_LINE> <INDENT> TextBox.__init__(self, name, socket_io, text=url, desc=desc, prop=prop, style=style, attr=attr, css_cl... | URL widget is used to take website address as input from the user.
| 6259905ad53ae8145f919a4a |
class NordpoolFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): <NEW_LINE> <INDENT> VERSION = 1 <NEW_LINE> CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._errors = {} <NEW_LINE> <DEDENT> async def async_step_user( self, user_input=None ): <NEW_LINE> ... | Config flow for Nordpool. | 6259905abaa26c4b54d5088d |
class TextBlock: <NEW_LINE> <INDENT> def __init__(self, text, blockType = BlockType.Plain, postText = ""): <NEW_LINE> <INDENT> self.InnerBlocks = [] <NEW_LINE> self.Text = text <NEW_LINE> self.Type = blockType <NEW_LINE> self.PostText = postText | Text block class. | 6259905ad99f1b3c44d06c89 |
class SapHanaAuthenticationType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> BASIC = "Basic" <NEW_LINE> WINDOWS = "Windows" | The authentication type to be used to connect to the SAP HANA server.
| 6259905ad7e4931a7ef3d667 |
class FunctionScoreQuery(DslQuery): <NEW_LINE> <INDENT> def __init__(self, query, functions, maxBoost = None, scoreMode = None, boostMode = None, minScore = None, boost = None, matchedName = None): <NEW_LINE> <INDENT> body = { 'query': query, 'functions': functions } <NEW_LINE> if not maxBoost is None: <NEW_LINE> <INDE... | The function score query
| 6259905a004d5f362081fae2 |
class SettlingState(HoveringState): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def getattr(): <NEW_LINE> <INDENT> attrs = {} <NEW_LINE> attrs.update(HoveringState.getattr()) <NEW_LINE> attrs.update({'planeThreshold' : 0.1, 'angleThreshold' : 5}) <NEW_LINE> return attrs <NEW_LINE> <DEDENT> def _compareChange(self, pva... | A specialization of the hover state which hovers for the given time. | 6259905a7d847024c075d9c6 |
class Main: <NEW_LINE> <INDENT> ADD_BOOK = BASE_URL+'/books' <NEW_LINE> ALL_BOOKS = BASE_URL+'/books' <NEW_LINE> MODIFY_BOOK = BASE_URL+'/books/<int:book_id>' <NEW_LINE> DELETE_BOOK = BASE_URL+'/books/<int:book_id>' <NEW_LINE> GET_BOOK = BASE_URL+'/books/<int:book_id>' <NEW_LINE> BORROW = BASE_URL+'/users/books/<int:bo... | Main application endpoints | 6259905a16aa5153ce401acc |
class with_auth(object): <NEW_LINE> <INDENT> def __init__(self, username_key, password_key): <NEW_LINE> <INDENT> self.username_key = username_key <NEW_LINE> self.password_key = password_key <NEW_LINE> <DEDENT> def __call__(decorator, f): <NEW_LINE> <INDENT> def inner(self, *args): <NEW_LINE> <INDENT> from test_login im... | Decorator to login before function, and logout afterwards | 6259905af7d966606f7493ad |
@deconstructible <NEW_LINE> class FDFSStorage(Storage): <NEW_LINE> <INDENT> def __init__(self, client_conf=None, base_url=None): <NEW_LINE> <INDENT> if client_conf is None: <NEW_LINE> <INDENT> client_conf = settings.FDFS_CLIENT_CONF <NEW_LINE> <DEDENT> self.client_conf = client_conf <NEW_LINE> if base_url is None: <NEW... | FDFS文件存储类 | 6259905a10dbd63aa1c7216f |
class LimitedSet(object): <NEW_LINE> <INDENT> def __init__(self, maxlen=None, expires=None, data=None, heap=None): <NEW_LINE> <INDENT> self.maxlen = maxlen <NEW_LINE> self.expires = expires <NEW_LINE> self._data = {} if data is None else data <NEW_LINE> self._heap = [] if heap is None else heap <NEW_LINE> self.__iter__... | Kind-of Set with limitations.
Good for when you need to test for membership (`a in set`),
but the list might become to big.
:keyword maxlen: Maximum number of members before we start
evicting expired members.
:keyword expires: Time in seconds, before a membership expires. | 6259905a460517430c432b47 |
class OpenedTables(StatuBase): <NEW_LINE> <INDENT> statu_name="Opened_Tables" | The number of tables that have been opened. If Opened_tables is big, your table_open_cache
value is probably too small. | 6259905a56ac1b37e63037dc |
class BoundFunctionWrapper(ObjectProxy): <NEW_LINE> <INDENT> __slots__ = ("instance", "wrapper", "binding", "parent") <NEW_LINE> def __init__(self, wrapped, instance, wrapper, binding, parent): <NEW_LINE> <INDENT> super().__init__(wrapped) <NEW_LINE> object.__setattr__(self, "instance", instance) <NEW_LINE> object.__se... | A descriptor to emulate a bound function.
This is used to create bound function decorators.
It maintains all of the nice introspection that can normally
be done on bound functions. | 6259905a097d151d1a2c2657 |
class UserProfile(AbstractBaseUser, PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField(max_length=255, unique=True) <NEW_LINE> name = models.CharField(max_length =255) <NEW_LINE> is_active = models.BooleanField(default=True) <NEW_LINE> is_staff = models.BooleanField(default=False) <NEW_LINE> objects = Us... | Database model for users in the system | 6259905ab5575c28eb7137c1 |
class ConstValueDict(dict): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> name = self.__class__.__name__ <NEW_LINE> content = super(ConstValueDict, self).__repr__() <NEW_LINE> return '{name}({content})'.format(name=name, content=content) <NEW_LINE> <DEDENT> def __setitem__(self, key, value): <NEW_LINE> <I... | represents a dictionary where values cannot be set to a new value when
they have been set once. An `AssertionError` is raised if a value is
attempted to be changed. | 6259905a99cbb53fe68324ca |
class FunctionKroneckerDelta(BuiltinFunction): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> BuiltinFunction.__init__(self, "kronecker_delta", nargs=2, conversions=dict(maxima='kron_delta', mathematica='KroneckerDelta')) <NEW_LINE> <DEDENT> def _eval_(self, m, n): <NEW_LINE> <INDENT> if bool(repr(m) > rep... | The Kronecker delta function `\delta_{m,n}` (``kronecker_delta(m, n)``).
INPUT:
- ``m`` - a number or a symbolic expression
- ``n`` - a number or a symbolic expression
DEFINITION:
Kronecker delta function `\delta_{m,n}` is defined as:
`\delta_{m,n} = 0` for `m \ne n` and
`\delta_{m,n} = 1` for `m = n`
E... | 6259905add821e528d6da475 |
class RemoteClosedException(RabbitpyException): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return 'Connection was closed by the remote server ' '({0}): {1}'.format(*self.args) | Raised if RabbitMQ closes the connection and the reply_code in the
Connection.Close RPC request does not have a mapped exception in Rabbitpy. | 6259905a23e79379d538dae6 |
class MapAgent(MapPosition, Agent): <NEW_LINE> <INDENT> def __init__( self, x: int = 0, y: int = 0, direction: DirectionType = 0, reverseY: bool = True, frame: Optional[Iterable[Iterable[Any]]] = None, xmin: Numeric = -inf, xmax: Numeric = inf, ymin: Numeric = -inf, ymax: Numeric = inf, occupied: Callable[[Position], b... | MapAgent class: represents an agent on a MapPosition.
Inherits from MapPosition, Agent
Syntax is MapAgent(x, y, direction=0, reverseY=True, frame=None, xmin=-inf, xmax=inf, ymin=-inf, xmax=inf, occupied=lambda p: False) [Not hashable]
MapAgent inherits both from MapPosition and Agent, with the following changes:
- A ... | 6259905a32920d7e50bc7630 |
class HTTPClient(object): <NEW_LINE> <INDENT> def __init__(self, async_client_class=None, **kwargs): <NEW_LINE> <INDENT> self._io_loop = IOLoop(make_current=False) <NEW_LINE> if async_client_class is None: <NEW_LINE> <INDENT> async_client_class = AsyncHTTPClient <NEW_LINE> <DEDENT> self._async_client = async_client_cla... | 一个阻塞的 HTTP 客户端.
提供这个接口是为了方便使用和测试; 大多数运行于 IOLoop 的应用程序
会使用 `AsyncHTTPClient` 来替代它.
一般的用法就像这样 ::
http_client = httpclient.HTTPClient()
try:
response = http_client.fetch("http://www.google.com/")
print response.body
except httpclient.HTTPError as e:
# HTTPError is raised for non-200 r... | 6259905a45492302aabfdac2 |
class RuleManager(RuleQueryMixin, models.Manager): <NEW_LINE> <INDENT> def get_query_set(self): <NEW_LINE> <INDENT> return RuleSet(self.model, using=self._db) | Manager with helpful methods for working with :class:`Rule`s. | 6259905a379a373c97d9a60f |
class Solution: <NEW_LINE> <INDENT> def groupingOptions(self, n, m): <NEW_LINE> <INDENT> if n < m: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> dp = [[0] * (m + 1) for _ in range(n + 1)] <NEW_LINE> for i in range(1, m + 1): <NEW_LINE> <INDENT> dp[i][i] = 1 <NEW_LINE> <DEDENT> for i in range(2, n + 1): <NEW_LINE> <I... | @param n: the number of people
@param m: the number of groups
@return: the number of grouping options | 6259905aa17c0f6771d5d697 |
class LineEffect: <NEW_LINE> <INDENT> base_params_keys = tuple() <NEW_LINE> optional_params_values = {"gaussian_sigma": 10, "contour_barrier": 0.01, "background_color": None, "line_width": 10, "barrier": 0.5, "facecolor": "none", "line_color": "white", "line_style": "solid", "line_alpha": 1} <NEW_LINE> def check_params... | Example:
{"background": None,
"line_width": 10,
"barrier": 0.5,
"gaussian_sigma": 10,
"contour_barrier": 0.01,
"line_color": "white",
"line_style": "solid",
"facecolor": "none"} | 6259905a7cff6e4e811b702e |
class ProjectExtraForm(ProjectForm): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> model = Project <NEW_LINE> fields = ( 'description', 'documentation_type', 'language', 'programming_language', 'project_url', 'tags', ) <NEW_LINE> <DEDENT> description = forms.CharField( validators=[ClassifierValidator(rais... | Additional project information form | 6259905a91af0d3eaad3b413 |
class TProcessor(object): <NEW_LINE> <INDENT> def __init__(self, service, handler): <NEW_LINE> <INDENT> self._service = service <NEW_LINE> self._handler = handler <NEW_LINE> <DEDENT> def process_in(self, iprot): <NEW_LINE> <INDENT> api, type, seqid = iprot.read_message_begin() <NEW_LINE> if api not in self._service.thr... | Base class for procsessor, which works on two streams. | 6259905a009cb60464d02b20 |
class HistoryMiddleware: <NEW_LINE> <INDENT> def __init__(self, get_response=None): <NEW_LINE> <INDENT> self.get_response = get_response <NEW_LINE> self.get_context = ( conf.REQUEST_CONTEXT if callable(conf.REQUEST_CONTEXT) else import_string(conf.REQUEST_CONTEXT) ) <NEW_LINE> <DEDENT> def __call__(self, request): <NEW... | Middleware that creates a temporary table for a connection and puts the current
User ID in there. | 6259905a23849d37ff8526b0 |
class Spider(pyclt.api.Api): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.__url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule&smartresult=ugc&sessionFrom=null' <NEW_LINE> <DEDENT> def getCmdResult(self,word): <NEW_LINE> <INDENT> dict_data = self... | 爬虫版翻译程序 | 6259905a45492302aabfdac3 |
class SelectIndexHandler(AskUserEventHandler): <NEW_LINE> <INDENT> def __init__(self, engine: Engine): <NEW_LINE> <INDENT> super().__init__(engine) <NEW_LINE> player = self.engine.player <NEW_LINE> engine.mouse_location = player.x, player.y <NEW_LINE> <DEDENT> def on_render(self, console: tcod.Console) -> None: <NEW_LI... | Handles asking the user for an index on the map. | 6259905a7d847024c075d9c8 |
class PublicUserSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> about = serializers.SerializerMethodField() <NEW_LINE> profile_pic = serializers.SerializerMethodField() <NEW_LINE> num_posts = serializers.SerializerMethodField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ( '... | Serialized representation of a public user | 6259905a097d151d1a2c2658 |
class EmailAddress(_Observable): <NEW_LINE> <INDENT> _type = 'email-addr' <NEW_LINE> _properties = OrderedDict([ ('type', TypeProperty(_type)), ('id', IDProperty(_type, spec_version='2.1')), ('value', StringProperty(required=True)), ('display_name', StringProperty()), ('belongs_to_ref', ReferenceProperty(valid_types='u... | For more detailed information on this object's properties, see
`the STIX 2.1 specification <link here>`__. | 6259905a1b99ca400229002d |
class FloatList(ItemList): <NEW_LINE> <INDENT> def __init__(self, items:Iterator, log:bool=False, **kwargs): <NEW_LINE> <INDENT> super().__init__(np.array(items, dtype=np.float32), **kwargs) <NEW_LINE> self.log = log <NEW_LINE> self.copy_new.append('log') <NEW_LINE> self.c = self.items.shape[1] if len(self.items.shape)... | `ItemList` suitable for storing the floats in items for regression. Will add a `log` if thif flag is `True`. | 6259905a3cc13d1c6d466d2b |
class Shape1D_pdf(PDF) : <NEW_LINE> <INDENT> def __init__ ( self , name , shape , xvar ) : <NEW_LINE> <INDENT> PDF.__init__ ( self , name , xvar ) <NEW_LINE> if isinstance ( shape , ROOT.TH1 ) and not isinstance ( shape , ROOT.TH2 ) : <NEW_LINE> <INDENT> self.histo = shape <NEW_LINE> shape = Ostap.Math.Histo1D ( s... | Generic 1D-shape from C++ callable
- see Ostap::Models:Shape1D | 6259905acc0a2c111447c5c4 |
class HeckeOperator(Morphism): <NEW_LINE> <INDENT> def __init__(self, abvar, n): <NEW_LINE> <INDENT> from .abvar import is_ModularAbelianVariety <NEW_LINE> n = ZZ(n) <NEW_LINE> if n <= 0: <NEW_LINE> <INDENT> raise ValueError("n must be positive") <NEW_LINE> <DEDENT> if not is_ModularAbelianVariety(abvar): <NEW_LINE> <I... | A Hecke operator acting on a modular abelian variety. | 6259905a24f1403a926863c4 |
class Flatten(layers.Layer): <NEW_LINE> <INDENT> def __init__(self, start_axis=1, stop_axis=-1): <NEW_LINE> <INDENT> super(Flatten, self).__init__() <NEW_LINE> self.start_axis = start_axis <NEW_LINE> self.stop_axis = stop_axis <NEW_LINE> <DEDENT> def forward(self, input): <NEW_LINE> <INDENT> out = paddle.tensor.manipul... | This interface is used to construct a callable object of the ``FLatten`` class.
For more details, refer to code examples.
It implements flatten a contiguous range of dims into a tensor.
Parameters:
start_axis(int): first dim to flatten (default = 1)
stop_axis(int): last dim to flatten (default = -1).
Returns:... | 6259905a462c4b4f79dbcff1 |
class UARTConfig(Enum): <NEW_LINE> <INDENT> IdleHigh = 1 <NEW_LINE> IdleLow = 2 | Enumeration of configuration settings | 6259905a76e4537e8c3f0b78 |
class InvalidInputError(QTrioException): <NEW_LINE> <INDENT> pass | Raised when invalid input is provided such as via a dialog. | 6259905a8e7ae83300eea679 |
class listasDetailForm(ModelForm): <NEW_LINE> <INDENT> _model_class = listas <NEW_LINE> _include = [listas.creation, listas.lista, listas.nome] | Form used to show entity details on app's admin page | 6259905ad268445f2663a653 |
class Daughters(Relation): <NEW_LINE> <INDENT> def get_relatives(self, person_name, relation, family): <NEW_LINE> <INDENT> return [child.main_member.name for child in family.child_family if child.main_member.gender == FEMALE] | Get the daughters of the family. | 6259905a99cbb53fe68324cc |
class UserScanQR(BaseElement): <NEW_LINE> <INDENT> @property <NEW_LINE> def selector(self): <NEW_LINE> <INDENT> return (By.ID,"com.videochat.livu:id/item_qr_scan") | go to Scan page button | 6259905a23e79379d538dae8 |
class _Timeout(object): <NEW_LINE> <INDENT> __slots__ = ['deadline', 'callback'] <NEW_LINE> def __init__(self, deadline, callback, io_loop): <NEW_LINE> <INDENT> if isinstance(deadline, numbers.Real): <NEW_LINE> <INDENT> self.deadline = deadline <NEW_LINE> <DEDENT> elif isinstance(deadline, datetime.timedelta): <NEW_LIN... | An IOLoop timeout, a UNIX timestamp and a callback | 6259905a4e4d5625663739f4 |
class Message(object): <NEW_LINE> <INDENT> _names = { "mfrom" : "from", "to" : "to", "body" : "body", "media_urls" : "media_urls", "is_mms" : "is_mms" } <NEW_LINE> def __init__(self, mfrom=None, to=None, body=None, media_urls=None, is_mms=None): <NEW_LINE> <INDENT> self.mfrom = mfrom <NEW_LINE> self.to = to <NEW_LINE> ... | Implementation of the 'Message' model.
TODO: type model description here.
Attributes:
mfrom (string): TODO: type description here.
to (string): TODO: type description here.
body (string): TODO: type description here.
media_urls (list of string): TODO: type description here.
is_mms (bool): TODO: ty... | 6259905a507cdc57c63a6392 |
class Threads(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, group=None, target=None, name=None, args=(), kwargs={}): <NEW_LINE> <INDENT> threading.Thread.__init__(self, group, target, name, args, kwargs) <NEW_LINE> self._target = target <NEW_LINE> self._args = args <NEW_LINE> self._kwargs = kwargs <NEW_LINE... | This class will execute a given function mentioned in "target"
as a separate thread. | 6259905aa17c0f6771d5d698 |
class MenuTest(BaseTest): <NEW_LINE> <INDENT> def test_menu_list_view(self): <NEW_LINE> <INDENT> resp = self.client.get('/') <NEW_LINE> self.assertEqual(resp.status_code, 200) <NEW_LINE> self.assertTemplateUsed(resp, 'menu/list_all_current_menus.html') <NEW_LINE> self.assertEqual(len(Menu.objects.all()), 2) <NEW_LINE> ... | MenuTest test class
Inherit: - BaseTest
- 5 tests are created for all views testing. | 6259905a3539df3088ecd888 |
class LanguageEngineMedical: <NEW_LINE> <INDENT> def __init__(self, region_name, language='en'): <NEW_LINE> <INDENT> self._region = region_name <NEW_LINE> self._language_code = language <NEW_LINE> self._comprehend = boto3.client( service_name='comprehendmedical', region_name=region_name) <NEW_LINE> <DEDENT> def get_ent... | A class for Natural Language Processing of Medical Information | 6259905ad7e4931a7ef3d66b |
class Context(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.start = None <NEW_LINE> self.end = None <NEW_LINE> <DEDENT> def cut(self, content): <NEW_LINE> <INDENT> raise Exception('Implement the get_context method in child class') <NEW_LINE> <DEDENT> def get_interval(self): <NEW_LINE> <INDEN... | This class is an Abstract base class for Context objects
A Context is used to limit the scope of a refactoring operation
When a text is applied over a Context object through the cut method, the Context
object must return the new content and set the interval that delimits the new content
from the original content | 6259905aa219f33f346c7df2 |
class TestCompareComplexString(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(TestCompareComplexString, self).__init__() <NEW_LINE> <DEDENT> def test_error_string(self): <NEW_LINE> <INDENT> eq_(compare_complex_string(r"B\\1", "B2"), -2) <NEW_LINE> eq_(compare_complex_string(r"B1\\", "B2"), -... | Documentation for TestCompareComplexString
| 6259905a16aa5153ce401ad0 |
class CommandTesting(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> dispatch.init() <NEW_LINE> super().setUpClass() <NEW_LINE> <DEDENT> def setUp(self): <NEW_LINE> <INDENT> dispatch.Tracker.append( data=dispatch.Case(index=64, client="PotatoClient", platform='ps... | For the testing of / commands | 6259905a2ae34c7f260ac6d5 |
class EngineInitializationError(AbstractEngineError): <NEW_LINE> <INDENT> pass | Defines engine initialization exception. | 6259905ae76e3b2f99fd9fec |
class TestEmployee(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.my_employee = Employee("Benoit", "Masson-Bedeau", 36000) <NEW_LINE> <DEDENT> def test_give_default_raise(self): <NEW_LINE> <INDENT> self.my_employee.give_raise() <NEW_LINE> self.assertEqual(self.my_employee.annual_salar... | Test for the class Employee. | 6259905a3c8af77a43b68a37 |
class Slice(Base, AuditMixinNullable): <NEW_LINE> <INDENT> __tablename__ = 'slices' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> owners = relationship("User", secondary=slice_user) | Declarative class to do query in upgrade | 6259905a24f1403a926863c5 |
class PostgresQuery(Query): <NEW_LINE> <INDENT> def _from_clause(self): <NEW_LINE> <INDENT> if isinstance(self.from_, Query): <NEW_LINE> <INDENT> from_clause = '( %s ) AS tmp' % self.from_.compile() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> from_clause = self.from_ <NEW_LINE> <DEDENT> return from_clause | Simple PostgreSQL query wrapper. | 6259905a8e7ae83300eea67b |
class Conv2DTranspose(_ConvNDTranspose, base.Transposable): <NEW_LINE> <INDENT> def __init__(self, output_channels, output_shape=None, kernel_shape=None, stride=1, padding=SAME, use_bias=True, initializers=None, partitioners=None, regularizers=None, data_format=DATA_FORMAT_NHWC, custom_getter=None, name="conv_2d_transp... | Spatial transposed / reverse / up 2D convolution module, including bias.
This acts as a light wrapper around the TensorFlow op `tf.nn.conv2d_transpose`
abstracting away variable creation and sharing. | 6259905aa79ad1619776b5b4 |
class LDAPSyncAttributeMap(models.Model): <NEW_LINE> <INDENT> sync_job = models.ForeignKey('LDAPSyncJob', related_name='attributes') <NEW_LINE> ldap_attribute_name = models.CharField(max_length=255, help_text="LDAP Attribute Name.") <NEW_LINE> model_attribute_name = models.CharField(max_length=255, help_text="Django At... | Maps LDAP attributes to Model Attributes. | 6259905a7047854f463409ae |
class TestCheck(Check): <NEW_LINE> <INDENT> __test__ = True <NEW_LINE> @property <NEW_LINE> def this_check(self): <NEW_LINE> <INDENT> return chk <NEW_LINE> <DEDENT> def test_smoke(self): <NEW_LINE> <INDENT> assert self.passes("""Smoke phrase with nothing flagged.""") <NEW_LINE> assert not self.passes("""What was the 't... | The test class for misc.scare_quotes. | 6259905a99cbb53fe68324ce |
class SheetOutOfSyncException(Exception): <NEW_LINE> <INDENT> def __init__(self, coupon_gen_request, coupon_req_row, msg=None): <NEW_LINE> <INDENT> self.coupon_gen_request = coupon_gen_request <NEW_LINE> self.coupon_req_row = coupon_req_row <NEW_LINE> super().__init__(msg) | General exception for situations where the data in a spreadsheet does not reflect the state of the database | 6259905ab57a9660fecd3069 |
@register <NEW_LINE> class regexed(Validator): <NEW_LINE> <INDENT> def setup(self, *regexes): <NEW_LINE> <INDENT> self.regexes = [(regex, re.compile(regex)) for regex in regexes] <NEW_LINE> <DEDENT> def validate(self, meta, val): <NEW_LINE> <INDENT> for spec, regex in self.regexes: <NEW_LINE> <INDENT> if not regex.matc... | Usage
.. code-block:: python
regexed(regex1, ..., regexn).normalise(meta, val)
This will match the ``val`` against all the ``regex``s and will complain if
any of them fail, otherwise the ``val`` is returned. | 6259905a097d151d1a2c265b |
class RepresentableBlockPredictorResiduals(RepresentableBlockPredictor): <NEW_LINE> <INDENT> def predict( self, dataset: Dataset, num_samples: Optional[int] = None, num_workers: Optional[int] = None, num_prefetch: Optional[int] = None, **kwargs, ) -> Iterator[Forecast]: <NEW_LINE> <INDENT> inference_data_loader = Infer... | construct a RepresentableBlockPredictor object that will calculate the in-sample
prediction residuals once and only once | 6259905ad53ae8145f919a50 |
class InlineQuery(TelegramObject): <NEW_LINE> <INDENT> def __init__(self, id, from_user, query, offset, location=None, bot=None, **kwargs): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.from_user = from_user <NEW_LINE> self.query = query <NEW_LINE> self.offset = offset <NEW_LINE> self.location = location <NEW_LINE> ... | This object represents an incoming inline query. When the user sends an empty query, your bot
could return some default or trending results.
Note:
* In Python `from` is a reserved word, use `from_user` instead.
Attributes:
id (:obj:`str`): Unique identifier for this query.
from_user (:class:`telegram.User... | 6259905aa8ecb03325872805 |
class DelaySpectrum(ContainerBase): <NEW_LINE> <INDENT> _axes = ("baseline", "delay") <NEW_LINE> _dataset_spec = { "spectrum": { "axes": ["baseline", "delay"], "dtype": np.float64, "initialise": True, "distributed": True, "distributed_axis": "baseline", } } <NEW_LINE> @property <NEW_LINE> def spectrum(self): <NEW_LINE>... | Container for a delay spectrum. | 6259905aa17c0f6771d5d699 |
class EVA(REST): <NEW_LINE> <INDENT> _url = "http://wwwdev.ebi.ac.uk/eva/webservices/rest/" <NEW_LINE> def __init__(self, verbose=False, cache=False): <NEW_LINE> <INDENT> super(EVA, self).__init__( name="EVA", url=EVA._url, verbose=verbose, cache=cache ) <NEW_LINE> self.version = "v1" <NEW_LINE> <DEDENT> def fetch_alli... | Interface to the `EVA <http://www.ebi.ac.uk/eva>`_ service
* version: indicates the version of the API, this defines the available
filters and JSON schema to be returned. Currently there is only
version 'v1'.
* category: this defines what objects we want to query. Currently there
are five different categories: ... | 6259905ae64d504609df9ec6 |
class Boundary(SpaceNode): <NEW_LINE> <INDENT> def __init__(self, from_cell, to_cell, sign=None): <NEW_LINE> <INDENT> SpaceNode.__init__(self, from_cell.space) <NEW_LINE> self._from = from_cell <NEW_LINE> self._to = to_cell <NEW_LINE> self._sign = sign <NEW_LINE> self._successors = {} <NEW_LINE> <DEDENT> @property <NEW... | 'Edge-Like'
----++-------
||
c1 || c2
||
----++------- | 6259905a627d3e7fe0e0847a |
class StateFactory(HasPrivateTraits): <NEW_LINE> <INDENT> def get_state_to_bind(self, obj, name, context): <NEW_LINE> <INDENT> raise NotImplementedError | The base class for all state factories.
A state factory accepts an object and returns some data representing the
object that is suitable for storing in a particular context. | 6259905a442bda511e95d851 |
class NanoDasConnectionTCP(DasConnection): <NEW_LINE> <INDENT> sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) <NEW_LINE> host = settings.LocalHost <NEW_LINE> port = settings.LocalPort <NEW_LINE> def __init__(self, host=settings.LocalHost, port=settings.LocalPort): <NEW_LINE> <INDENT> super(NanoDasConnectionTC... | A TCP DAS connection | 6259905abe8e80087fbc0672 |
class doi(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GET(self, arg): <NEW_LINE> <INDENT> path = web.ctx.path <NEW_LINE> doi = path.lstrip('/') <NEW_LINE> lk = Looker.Looker('/proj/ads/abstracts/links/DOI.dat') <NEW_LINE> try: <NEW_LINE> <INDENT> bibcode = lk.look(d... | Class that redirect to labs in case of a DOI | 6259905ad7e4931a7ef3d66d |
class ProfileCreateAPIView(ProfileRetrieveAPIView, generics.CreateAPIView): <NEW_LINE> <INDENT> serializer_class = ProfileCreateSerializer <NEW_LINE> permission_classes = (IsNotAuthenticated,) <NEW_LINE> throttle_classes = (ProfileCreateRateThrottle,) <NEW_LINE> def perform_create(self, serializer): <NEW_LINE> <INDENT>... | Profile Create View | 6259905a7d847024c075d9cc |
class Rds_Config_Loader: <NEW_LINE> <INDENT> def unpack_rds_config_file(self, logger, rds_config_file): <NEW_LINE> <INDENT> result = None <NEW_LINE> try: <NEW_LINE> <INDENT> with open(rds_config_file) as f: <NEW_LINE> <INDENT> result = json.load(f) <NEW_LINE> <DEDENT> <DEDENT> except: <NEW_LINE> <INDENT> logger.info({M... | This class is used to load the RDS Config paramaters from file | 6259905a8e71fb1e983bd0b9 |
class DataCollectionRuleResourceListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'required': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[DataCollectionRuleResource]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *,... | A pageable list of resources.
All required parameters must be populated in order to send to Azure.
:ivar value: Required. A list of resources.
:vartype value:
list[~$(python-base-namespace).v2022_02_01_preview.models.DataCollectionRuleResource]
:ivar next_link: The URL to use for getting the next set of results.
:va... | 6259905a2c8b7c6e89bd4ddd |
class SlotHistoryWidget(QTreeView): <NEW_LINE> <INDENT> SLOT_NAME, SLOT_VALUE = range(2) <NEW_LINE> def __init__(self, parent): <NEW_LINE> <INDENT> super(SlotHistoryWidget, self).__init__(parent) <NEW_LINE> self.parent = parent <NEW_LINE> self.setRootIsDecorated(False) <NEW_LINE> self.setAlternatingRowColors(True) <NEW... | A list of previously filled slots in a treeview widget
Extends:
{QTreeView}
Variables:
SLOT_NAME, SLOT_VALUE {int} -- Column IDs for the slot history | 6259905aadb09d7d5dc0bb59 |
class BaseEditor(WidgetWrap, metaclass=signals.MetaSignals): <NEW_LINE> <INDENT> signals = ['done'] <NEW_LINE> def __init__(self, prompt, content, done_signal_handler, cursor_position=None): <NEW_LINE> <INDENT> caption = _(u'{0} (Enter key twice to validate, ' u'Esc or Ctrl-C to cancel) \n>> ').format(prompt) <NEW_LINE... | Base class for editors. | 6259905ae76e3b2f99fd9fee |
class ChahubOAuth2(BaseOAuth2): <NEW_LINE> <INDENT> name = 'chahub' <NEW_LINE> API_URL = '{}/api/v1/'.format(BASE_URL) <NEW_LINE> AUTHORIZATION_URL = '{}/oauth/authorize/'.format(BASE_URL) <NEW_LINE> ACCESS_TOKEN_URL = '{}/oauth/token/'.format(BASE_URL) <NEW_LINE> ACCESS_TOKEN_METHOD = 'POST' <NEW_LINE> ID_KEY = 'id' <... | Chahub OAuth authentication backend | 6259905b76e4537e8c3f0b7c |
class Policy_Interface(object): <NEW_LINE> <INDENT> def get_cost(self, config): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def get_edge_cost(self, config1, config2): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def get_step(self, config): <NEW_LINE> <INDENT> raise NotImplemen... | Interface showing required implemented functions for all policies
This interface enumerates the functions that must be exposed by
policies for M* to function correctly. A policy object with this
interface provides a route for a single robot. Underneath the policy
interface is a graph object which describes the config... | 6259905a460517430c432b4a |
class ChineseScale(Scale): <NEW_LINE> <INDENT> def __init__(self, key: Sounds) -> None: <NEW_LINE> <INDENT> super(ChineseScale, self).__init__(key, [ Intervals.MAJOR_THIRD, Intervals.WHOLE_TONE, Intervals.HALF_TONE, Intervals.MAJOR_THIRD, Intervals.HALF_TONE, ]) | As implied by its name, this scale is suitable for playing Chinese
music (see also the Oriental Scale). The Chinese scales are sometimes
used in jazz improvisation.
The Chinese Scale has a quite uncommon feature in the two quadra-steps:
first to second note and fourth to fifth note. Another peculiar detail
is that ... | 6259905b10dbd63aa1c72172 |
class CMakeBuild(build_ext): <NEW_LINE> <INDENT> def build_extension(self, ext): <NEW_LINE> <INDENT> if isinstance(ext, CMakeExtension): <NEW_LINE> <INDENT> cwd = os.getcwd() <NEW_LINE> if not os.path.exists(self.build_temp): <NEW_LINE> <INDENT> os.makedirs(self.build_temp) <NEW_LINE> <DEDENT> lib_dir = os.path.abspath... | We extend setuptools to support building extensions with CMake. An extension
is built with CMake if it inherits from ``CMakeExtension``. | 6259905b8e7ae83300eea67d |
class LdapDNS(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.lobj = ldap.initialize(CONF.ldap_dns_url) <NEW_LINE> self.lobj.simple_bind_s(CONF.ldap_dns_user, CONF.ldap_dns_password) <NEW_LINE> <DEDENT> def get_domains(self): <NEW_LINE> <INDENT> return DomainEntry._get_all_domains(self.lobj) <... | Driver for PowerDNS using ldap as a back end.
This driver assumes ldap-method=strict, with all domains
in the top-level, aRecords only. | 6259905b56ac1b37e63037df |
class statistics_node(): <NEW_LINE> <INDENT> def __init__(self, _list): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.name = "/".join([_list[0].product, _list[0].release, _list[0].kernel_long_version]) <NEW_LINE> <DEDENT> except IndexError as err: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self.data = _list <NE... | this class will make a statistics node for the list, the list will be use for statistics table | 6259905bfff4ab517ebcee14 |
class WindowFunction(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def apply_to_window(self, values): <NEW_LINE> <INDENT> pass | Abstract class for applying function in window. | 6259905b91f36d47f2231987 |
class QueryFilter(Query): <NEW_LINE> <INDENT> def __init__(self, condition): <NEW_LINE> <INDENT> super(QueryFilter, self).__init__() <NEW_LINE> self.condition = condition <NEW_LINE> <DEDENT> def __call__(self, items): <NEW_LINE> <INDENT> return (item for item in items if self.condition.test(item)) <NEW_LINE> <DEDENT> d... | Query filtering a set of items.
>>> from kalamar.request import Condition
>>> cond = Condition("a", "=" , 12)
>>> items = [{"a": 13, "b": 15}, {"a": 12, "b": 16}]
>>> filter = QueryFilter(cond)
>>> list(filter(items))
[{'a': 12, 'b': 16}] | 6259905b435de62698e9d3f4 |
class EqConstraintSystem(SimpleSystem): <NEW_LINE> <INDENT> def setup_variables(self, resid_state_map=None): <NEW_LINE> <INDENT> super(EqConstraintSystem, self).setup_variables(resid_state_map) <NEW_LINE> nodemap = self.scope.name2collapsed <NEW_LINE> src = self._comp._exprobj.lhs.text <NEW_LINE> srcnode = nodemap.get(... | A special system to handle mapping of states and
residuals. | 6259905bdd821e528d6da478 |
class RDInvest(HandleIndexContent): <NEW_LINE> <INDENT> def __init__(self, stk_cd_id, acc_per, indexno, indexcontent): <NEW_LINE> <INDENT> super(RDInvest, self).__init__(stk_cd_id, acc_per, indexno, indexcontent) <NEW_LINE> <DEDENT> def recognize(self): <NEW_LINE> <INDENT> indexnos = ['0402010300'] <NEW_LINE> pass <NEW... | 研发投入情况 | 6259905be64d504609df9ec7 |
class EventObject: <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_bytes(cls: Type[T], bytes_data: bytes) -> T: <NEW_LINE> <INDENT> return cls(**pickle.loads(bytes_data)) <NEW_LINE> <DEDENT> def to_bytes(self) -> bytes: <NEW_LINE> <INDENT> return pickle.dumps(asdict(self)) <NEW_LINE> <DEDENT> def __eq__(self, othe... | Serializable dataclass.
Note that the all fields should be pickalable. | 6259905b0fa83653e46f64d7 |
class PolyInitBlock(Chain): <NEW_LINE> <INDENT> def __init__(self, in_channels): <NEW_LINE> <INDENT> super(PolyInitBlock, self).__init__() <NEW_LINE> with self.init_scope(): <NEW_LINE> <INDENT> self.conv1 = conv3x3_block( in_channels=in_channels, out_channels=32, stride=2, pad=0) <NEW_LINE> self.conv2 = conv3x3_block( ... | PolyNet specific initial block.
Parameters:
----------
in_channels : int
Number of input channels. | 6259905b16aa5153ce401ad4 |
class BaseAnalysisRule(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> @abc.abstractproperty <NEW_LINE> def for_topo_type(self): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> @abc.abstractproperty <NEW_LINE> def dict_key(self): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW... | The base class for developing new analysis rule for analysing topologies in massing model. For more information please refer to
Chen, Kian Wee, Patrick Janssen, and Leslie Norford. 2017. Automatic Generation of Semantic 3D City Models from Conceptual Massing Models.
In Future Trajectories of Computation in Design, Pr... | 6259905b3539df3088ecd88d |
class TestCase(testtools.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestCase, self).setUp() | Test case base class for all unit tests. | 6259905b7b25080760ed87d8 |
class PrivateLogListHandler(base.BaseHandler): <NEW_LINE> <INDENT> PAGE_NAME_FOR_CSRF = 'editor' <NEW_LINE> def get(self): <NEW_LINE> <INDENT> self.values.update({ 'logs': [t.to_dict() for t in privatelog_services. get_all_privatelog(self.user_id)]}) <NEW_LINE> self.render_js... | 处理个人日志请求列表 | 6259905b0a50d4780f7068b7 |
class LineRule(Rule): <NEW_LINE> <INDENT> pass | Class representing rules that act on a line by line basis | 6259905be76e3b2f99fd9ff0 |
class PSO: <NEW_LINE> <INDENT> def __init__(self, layers: list, hyperparameters: dict, NN:NeuralNetwork, maxIter: int): <NEW_LINE> <INDENT> self.position_range = hyperparameters["position_range"] <NEW_LINE> self.velocity_range = hyperparameters["velocity_range"] <NEW_LINE> self.omega = hyperparameters["omega"] <NEW_LIN... | this is the driver class for the PSO. For the given number of iterations or stopping condition
it will update particle positions and velocities and track the global best position
which is the position with the best fitness so far. | 6259905b76e4537e8c3f0b7e |
class TestWebPaymentItem(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 testWebPaymentItem(self): <NEW_LINE> <INDENT> pass | WebPaymentItem unit test stubs | 6259905b1f037a2d8b9e5364 |
class CircularContour(Contour): <NEW_LINE> <INDENT> def __init__(self, centre, radius, integration_rule=TrapezoidalRule(20)): <NEW_LINE> <INDENT> self.centre = centre <NEW_LINE> self.radius = radius <NEW_LINE> self.integration_rule = integration_rule <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> d_theta =... | A circular contour in the complex frequency plane | 6259905b0c0af96317c57858 |
class AceJumpAfterCommand(sublime_plugin.WindowCommand): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> global mode <NEW_LINE> mode = 0 if mode == 3 else 3 | Modifier-command which lets you jump behind a character, word or line | 6259905b4a966d76dd5f04e4 |
class JoinFriendDialog(wx.Dialog): <NEW_LINE> <INDENT> def __init__(self, parent, err_msg, default): <NEW_LINE> <INDENT> wx.Dialog.__init__(self, parent, wx.ID_ANY, "Connect to Friend") <NEW_LINE> text = makeHeading(self, "Waiting for Automatic Invitation.") <NEW_LINE> text2 = makeHint(self, "This prompt will disappear... | Dialog box that prompts to join a user.
Ends in one of several ways:
- manually canceled; caused disconnection
- filled in by user; tries to join
- system calls EndModal with JID of friend; this is done if we actually get the invite | 6259905b91f36d47f2231988 |
class Completer(completer.BaseCompleter): <NEW_LINE> <INDENT> def __init__(self, stc_buffer): <NEW_LINE> <INDENT> completer.BaseCompleter.__init__(self, stc_buffer) <NEW_LINE> self.SetAutoCompKeys([ord(':'), ord('.') ]) <NEW_LINE> self.SetAutoCompStops(' {}#') <NEW_LINE> self.SetAutoCompFillups('') <NEW_LINE> self.SetC... | Code completer provider | 6259905bac7a0e7691f73ad4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.