code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ImproperlyConfigured(Exception): <NEW_LINE> <INDENT> pass | SQLAlchemy-Utils is improperly configured; normally due to usage of
a utility that depends on a missing library. | 6259903f23e79379d538d765 |
class PointCloud: <NEW_LINE> <INDENT> def points(self, n, box): <NEW_LINE> <INDENT> raise NotImplementedError( "class {.__name__!r} should implement 'points'".format(type(self))) | The abstract base class for point generators | 6259903f23849d37ff85231f |
class Shave(BaseManipulator): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> def shave(self): <NEW_LINE> <INDENT> self._setEdges() <NEW_LINE> extra = (len(self.image) - max(abs(self._toCenter.left - self._toCenter.right), abs(self._toCenter.top - self._toCenter.b... | BI manipulator which removes as much inactive region as possible
while returning a square | 6259903f711fe17d825e15cf |
class _ControlOutputCache(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.cache = {} <NEW_LINE> <DEDENT> def calc_control_outputs(self, graph): <NEW_LINE> <INDENT> control_outputs = {} <NEW_LINE> for op in graph.get_operations(): <NEW_LINE> <INDENT> for control_input in op.control_inputs: <NEW... | Helper class to manage calculating and caching control_outputs in graph. | 6259903fb57a9660fecd2ce1 |
class AtomEmbedding(nn.Module): <NEW_LINE> <INDENT> def __init__(self, dim=128, type_num=100, pre_train=None): <NEW_LINE> <INDENT> super(AtomEmbedding, self).__init__() <NEW_LINE> self._dim = dim <NEW_LINE> self._type_num = type_num <NEW_LINE> if pre_train is not None: <NEW_LINE> <INDENT> self.embedding = nn.Embedding.... | Convert the atom(node) list to atom embeddings.
The atoms with the same element share the same initial embedding.
Parameters
----------
dim : int
Size of embeddings, default to be 128.
type_num : int
The largest atomic number of atoms in the dataset, default to be 100.
pre_train : None or pre-trained embedding... | 6259903f30dc7b76659a0a98 |
class TestDestinyDefinitionsDestinyEntitySearchResultItem(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 testDestinyDefinitionsDestinyEntitySearchResultItem(self): <NEW_LINE> <INDENT> pass | DestinyDefinitionsDestinyEntitySearchResultItem unit test stubs | 6259903fd4950a0f3b111773 |
class TestClark1987Conserve(Clark1987): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(TestClark1987Conserve, self).__init__( dtype=float, conserve_memory=0x01 | 0x02 ) <NEW_LINE> self.init_filter() <NEW_LINE> self.run_filter() | Memory conservation test for the loglikelihood and filtered states. | 6259903f26238365f5faddbe |
class ProtocConan(ConanFile): <NEW_LINE> <INDENT> name = "Protoc" <NEW_LINE> version = "3.3.1" <NEW_LINE> description = "Conan package for Protoc" <NEW_LINE> _sha256 = '30f23a45c6f4515598702a6d19c4295ba92c4a635d7ad8d331a4db9fccff392d' <NEW_LINE> _shared_lib_version = 10 <NEW_LINE> _source_dir = "protobuf-%s" % version ... | Conan package for protoc | 6259903f1d351010ab8f4d83 |
class Item(models.Model): <NEW_LINE> <INDENT> content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE) <NEW_LINE> object_id = models.PositiveIntegerField() <NEW_LINE> content_object = GenericForeignKey('content_type', 'object_id') <NEW_LINE> requisition = models.ForeignKey("Requisition", on_delete=models... | Model of object that can be ordered.
This links any object in the software in order to be orderable. | 6259903f8e05c05ec3f6f78e |
class CpuRegister(ResourceRegister): <NEW_LINE> <INDENT> def __init__(self, fit): <NEW_LINE> <INDENT> ResourceRegister.__init__(self, fit, 'cpu', Attribute.cpu, Restriction.cpu) | Implements restriction:
CPU usage by holders should not exceed ship CPU output.
Details:
For validation, stats module data is used. | 6259903fe76e3b2f99fd9c72 |
class ProductListView(ListView): <NEW_LINE> <INDENT> model = Product <NEW_LINE> template_name = "products/prodcut_list.html" <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super().get_context_data(**kwargs) <NEW_LINE> context['CATEGORIES'] = Category.objects.all() <NEW_LINE> context['car... | View for listing all products. | 6259903f21bff66bcd723ed0 |
@dataclass <NEW_LINE> class ImpactFactor(Entity): <NEW_LINE> <INDENT> olca_type: str = 'ImpactFactor' <NEW_LINE> flow: Optional[Ref] = None <NEW_LINE> location: Optional[Ref] = None <NEW_LINE> flow_property: Optional[Ref] = None <NEW_LINE> unit: Optional[Ref] = None <NEW_LINE> value: Optional[float] = None <NEW_LINE> f... | A single characterisation factor of a LCIA category for a flow.
Attributes
----------
flow: Ref
The [Flow] of the impact assessment factor.
location: Ref
In case of a regionalized impact category, this field can contain the
location for which this factor is valid.
flow_property: Ref
The quantity of t... | 6259903f82261d6c527307f7 |
class ObjectListKeyboardMixin(BaseIntent, APIResponsePaginator): <NEW_LINE> <INDENT> def get_current_page(self): <NEW_LINE> <INDENT> return int(self.chat_data.get('current_page', 1)) <NEW_LINE> <DEDENT> def set_current_page(self, value): <NEW_LINE> <INDENT> self.chat_data['current_page'] = int(value) or 1 <NEW_LINE> <D... | Mixin is used in ```Intents```.
Handles paginated data retrieved from API | 6259903f96565a6dacd2d8be |
class Change: <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.old = None <NEW_LINE> self.new = None <NEW_LINE> if CHANGELOG_URLS.get(name): <NEW_LINE> <INDENT> self.url = CHANGELOG_URLS[name] <NEW_LINE> self.link = '[{}]({})'.format(self.name, self.url) <NEW_LINE> <DED... | A single requirements change from a git diff output. | 6259903fe64d504609df9d05 |
class PageSchema(Schema): <NEW_LINE> <INDENT> title = DublinCoreSchema.title <NEW_LINE> description = DublinCoreSchema.description <NEW_LINE> data = SchemaNode(String(), description="Data for the page") | Get Page fields and Plone-style uber-common DublinCore fields.
__name__ like Plone 'id' generated from Title. | 6259903f63f4b57ef00866a8 |
class StopTrainingHook(TriggeredHook): <NEW_LINE> <INDENT> def __init__(self, trigger): <NEW_LINE> <INDENT> super().__init__(EndTrigger.new(trigger)) <NEW_LINE> <DEDENT> @property <NEW_LINE> def priority(self): <NEW_LINE> <INDENT> return Priority.END <NEW_LINE> <DEDENT> def pre_step(self, trainer): <NEW_LINE> <INDENT> ... | Raises a StopTraining exception if triggered. | 6259903fa4f1c619b294f7bb |
class GFTrace(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_trace(cls, tr): <NEW_LINE> <INDENT> return cls(data=tr.ydata.copy(), tmin=tr.tmin, deltat=tr.deltat) <NEW_LINE> <DEDENT> def __init__(self, data=None, itmin=None, deltat=1.0, is_zero=False, begin_value=None, end_value=None, tmin=None): <NEW_LIN... | Green's Function trace class for handling traces from the GF Store. | 6259903f0a366e3fb87ddc4d |
class IonException(Exception): <NEW_LINE> <INDENT> pass | Root exception for Ion Python. | 6259903f50485f2cf55dc1eb |
class MessagingManager(object): <NEW_LINE> <INDENT> def __init__(self, client): <NEW_LINE> <INDENT> self.client = client <NEW_LINE> <DEDENT> def list_accounts(self, **kwargs): <NEW_LINE> <INDENT> if 'mask' not in kwargs: <NEW_LINE> <INDENT> items = set([ 'id', 'name', 'status', 'nodes', ]) <NEW_LINE> kwargs['mask'] = "... | Manage SoftLayer Message Queue | 6259903f30c21e258be99a75 |
class PatchRouteFilter(SubResource): <NEW_LINE> <INDENT> _validation = { 'provisioning_state': {'readonly': True}, 'name': {'readonly': True}, 'etag': {'readonly': True}, 'type': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'rules': {'key': 'properties.rules', 'type': '[RouteF... | Route Filter Resource.
Variables are only populated by the server, and will be ignored when
sending a request.
:param id: Resource ID.
:type id: str
:param rules: Collection of RouteFilterRules contained within a route
filter.
:type rules: list[~azure.mgmt.network.v2017_06_01.models.RouteFilterRule]
:param peerings:... | 6259903f6fece00bbacccc18 |
class PartialInviteChannel(namedtuple('PartialInviteChannel', 'id name type')): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> @property <NEW_LINE> def mention(self): <NEW_LINE> <INDENT> return '<#%s>' % self.id <NEW_LINE> <DEDENT> @property <NE... | Represents a "partial" invite channel.
This model will be given when the user is not part of the
guild the :class:`Invite` resolves to.
.. container:: operations
.. describe:: x == y
Checks if two partial channels are the same.
.. describe:: x != y
Checks if two partial channels are not th... | 6259903f30dc7b76659a0a9a |
class TestGebaeude(TestVarnish): <NEW_LINE> <INDENT> def test_gebaude_no_referer(self): <NEW_LINE> <INDENT> payload = {'_id': self.hash()} <NEW_LINE> r = requests.get(self.api_url + '/rest/services/ech/MapServer/ch.bfs.gebaeude_wohnungs_register/490830_0', params=payload) <NEW_LINE> self.assertTrue('geometry' not in r.... | Results with layer 'ch.bfs.gebaeude_wohnungs_register' should never return a geometry
for invalid referers
See https://github.com/geoadmin/mf-chsdi3/issues/886 | 6259903f07f4c71912bb069a |
class Network(object): <NEW_LINE> <INDENT> __type = {1: 'region', 2:'nationwide', 3: 'temporary',4: 'other'} <NEW_LINE> def __init__(self, name, ntype): <NEW_LINE> <INDENT> self.ntype=ntype <NEW_LINE> self._name=name <NEW_LINE> self.sta_list = [] <NEW_LINE> self.sta_table = [] <NEW_LINE> <DEDENT> def __str__(self): <NE... | Gravity Network Configure
Properties:
functions:
-
| 6259903f1d351010ab8f4d86 |
class TestCommandSensorBinarySensor(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.hass = get_test_home_assistant() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.hass.stop() <NEW_LINE> <DEDENT> def test_setup(self): <NEW_LINE> <INDENT> config = { "name": "Test", "co... | Test the Command line Binary sensor. | 6259903fe76e3b2f99fd9c74 |
class GitHubEventSubscriptionResource(MethodView): <NEW_LINE> <INDENT> decorators = [github_verification_required] <NEW_LINE> def post(self): <NEW_LINE> <INDENT> data = request.json <NEW_LINE> logger.info("Received GitHub event", extra={"request_json": data}) <NEW_LINE> event_type = request.headers.get("X-GitHub-Event"... | Callback endpoint for GitHub event subscriptions | 6259903f63b5f9789fe863d4 |
class DBDecoratorsTestCase(TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.orm = ORM.get() <NEW_LINE> <DEDENT> def test_sqlalchemy_session(self): <NEW_LINE> <INDENT> session = self.orm.sessionmaker() <NEW_LINE> self.assertEqual(passthrough(session=session), session) <... | Tests :mod:`baph.decorators.db`. | 6259903fd53ae8145f9196c4 |
@dataclass(frozen=True) <NEW_LINE> class Credentials: <NEW_LINE> <INDENT> access_token: str <NEW_LINE> token_expiry: int <NEW_LINE> token_type: str <NEW_LINE> refresh_token: str <NEW_LINE> userid: int <NEW_LINE> client_id: str <NEW_LINE> consumer_secret: str | Credentials. | 6259903f21bff66bcd723ed2 |
class Actor: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._description = "" <NEW_LINE> self._text = "" <NEW_LINE> self._position = Point(0, 0) <NEW_LINE> self._velocity = Point(0, 0) <NEW_LINE> <DEDENT> def get_position(self): <NEW_LINE> <INDENT> return self._position <NEW_LINE> <DEDENT> def get_tex... | A visible, movable thing that participates in the game. The responsibility of Actor is to keep track of its appearance, position
and velocity in 2d space.
Stereotype:
Information Holder
Attributes:
_tag (string): The actor's tag.
_text (string): The textual representation of the actor.
_position (Poin... | 6259903fd99f1b3c44d06905 |
class Crateify( object ): <NEW_LINE> <INDENT> def __init__( self, readfn=pycrates.read_file ): <NEW_LINE> <INDENT> self.reader = readfn <NEW_LINE> <DEDENT> def __call__( self, tool ): <NEW_LINE> <INDENT> def write_read_crate( mycmd, mycrate, **kwargs ): <NEW_LINE> <INDENT> import tempfile <NEW_LINE> try: <NEW_LINE> <IN... | A decorator to make tools seem "crate-aware"
The CIAO tools require files to work, but when in python
and reading file into crates means that a lot of the CIAO
functionaltiy is hard to access since it requires
writing the crate out, running the tool, then
reading the file back in.
This decorator can be used to do ju... | 6259903fcad5886f8bdc59b1 |
class WeatherEntity(Entity): <NEW_LINE> <INDENT> @property <NEW_LINE> def temperature(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> @property <NEW_LINE> def temperature_unit(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> @property <NEW_LINE> def pressure(self): <... | ABC for a weather data. | 6259903f66673b3332c31661 |
class ShootSearch(object): <NEW_LINE> <INDENT> MAX_STEP = 5000 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.strat = ShootExpe() <NEW_LINE> team1 = SoccerTeam("test") <NEW_LINE> team1.add("Salah",IntelligentStrategy()) <NEW_LINE> team1.add("Brahimi",IntelligentStrategy()) <NEW_LINE> team2 = SoccerTeam("test2"... | nombre d'iterations maximales jusqu'a l'arret d'un round
discr_step : pas de discretisation du parametre
nb_essais : nombre d'essais par parametre | 6259903f24f1403a92686201 |
class Redactor(RequiredConfig): <NEW_LINE> <INDENT> required_config = Namespace() <NEW_LINE> required_config.add_option( name="forbidden_keys", doc="a list of keys not allowed in a redacted processed crash", default=( "url, exploitability," "json_dump.sensitive," "upload_file_minidump_flash1.json_dump.sensitive," "uplo... | This class is the implementation of a functor for in situ redacting
of sensitive keys from a mapping. Keys that are to be redacted are placed
in the configuration under the name 'forbidden_keys'. They may take the
form of dotted keys with subkeys. For example, "a.b.c" means that the key,
"c" is to be redacted. | 6259903f21a7993f00c671d7 |
class AVGenerator(keras.utils.Sequence): <NEW_LINE> <INDENT> def __init__(self, filename, database_dir_path, X1dim=(298, 257, 2), X2dim=(75, 1, 1792, 2), ydim=(298, 257, 2, 2), batch_size=4, shuffle=True): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self.X1dim = X1dim <NEW_LINE> self.X2dim = X2dim <NEW_LINE... | Generates data for Keras | 6259903fdc8b845886d54820 |
class TriangularLatticeEmbedding(Embedding): <NEW_LINE> <INDENT> def __init__(self, c: SimplicialComplex, h: float = 1.0, w: float = 1.0): <NEW_LINE> <INDENT> super(TriangularLatticeEmbedding, self).__init__(c, 2) <NEW_LINE> self._height = h <NEW_LINE> self._width = w <NEW_LINE> <DEDENT> def height(self) -> float: <NEW... | A regular embedding of a triangular lattice into a plane. The default is
to embed into a unit plane, but this can be scaled as required. The lattice
can be distorted by providing explicit positions for 0-simplices as required.
:param c: the complex
:param h: height of the plane (defaults to 1.0)
:param w: width of the... | 6259903f287bf620b6272e56 |
class string_string_dict_t(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> this = _uhd_swig.new_string_string_dict_t() <NEW_LINE> try: self.this.append... | Proxy of C++ uhd::dict<(std::string,std::string)> class | 6259903fa4f1c619b294f7bc |
class Wrapper(environment.Base): <NEW_LINE> <INDENT> def __init__(self, env, pixels_only=True, render_kwargs=None, observation_key='pixels'): <NEW_LINE> <INDENT> if render_kwargs is None: <NEW_LINE> <INDENT> render_kwargs = {} <NEW_LINE> <DEDENT> wrapped_observation_spec = env.observation_spec() <NEW_LINE> if isinstanc... | Wraps a control environment and adds a rendered pixel observation. | 6259903f50485f2cf55dc1ed |
class TestWiresUtilization(mixin_use_new_instance.UseNewInstanceMixin, mixin_test_usage.TestWiresUsageMixin, unittest.TestCase): <NEW_LINE> <INDENT> pass | Utilization tests for the Wires instances. | 6259903f004d5f362081f919 |
class AdminLoginPage(login_base.LoginPageBase): <NEW_LINE> <INDENT> _location = location <NEW_LINE> def login_user(self, username, password, domain=None): <NEW_LINE> <INDENT> self.fill_form_values(username=username, password=password, domain=domain) <NEW_LINE> try: <NEW_LINE> <INDENT> home_page = admin_home.AdminHomePa... | Login page abstraction class.
Parameters
----------
* _location - initial URL to load upon instance creation | 6259903fb5575c28eb7135fe |
class DummyClass(object): <NEW_LINE> <INDENT> text = "0003970-140910143529206" <NEW_LINE> status_code = 201 | A dummy response as given by the requests.post, which can be used
to mock the posting of requests | 6259903f6fece00bbacccc1a |
class Group(models.Model): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> verbose_name = u"Група" <NEW_LINE> verbose_name_plural = u"Групи" <NEW_LINE> <DEDENT> title = models.CharField( max_length=256, blank=False, verbose_name=u"Назва") <NEW_LINE> leader = models.OneToOneField( 'students.Student', verbose... | Group Model | 6259903fd99f1b3c44d06906 |
class SeatMap(object): <NEW_LINE> <INDENT> def __init__(self, static_url=None): <NEW_LINE> <INDENT> self.swagger_types = { 'static_url': 'str' } <NEW_LINE> self.attribute_map = { 'static_url': 'staticUrl' } <NEW_LINE> self._static_url = static_url <NEW_LINE> <DEDENT> @property <NEW_LINE> def static_url(self): <NEW_LINE... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259903f73bcbd0ca4bcb4f5 |
class AnsiblePlaybookAPI(object): <NEW_LINE> <INDENT> def __init__(self, playbook, extra_vars={}): <NEW_LINE> <INDENT> self.stats = callbacks.AggregateStats() <NEW_LINE> self.playbook_cb = callbacks.PlaybookCallbacks(verbose=utils.VERBOSITY) <NEW_LINE> self.extra_vars = extra_vars <NEW_LINE> self.playbook = playbook <N... | 1.9.x 上通过测试 | 6259903fd10714528d69efc1 |
class ChangeState_Response(metaclass=Metaclass): <NEW_LINE> <INDENT> __slots__ = [ '_success', ] <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> assert all(['_' + key in self.__slots__ for key in kwargs.keys()]), 'Invalid arguments passed to constructor: %r' % kwargs.keys() <NEW_LINE> self.succe... | Message class 'ChangeState_Response'. | 6259903f097d151d1a2c22d0 |
class SortedFilter(VectorFilter): <NEW_LINE> <INDENT> def __call__(self, distances): <NEW_LINE> <INDENT> return np.argsort(distances) | Sorts vectors with respect to distance. | 6259903f66673b3332c31663 |
class Configuration(object): <NEW_LINE> <INDENT> array_serialization = "indexed" <NEW_LINE> base_uri = 'https://api.mundipagg.com/core/v1' <NEW_LINE> basic_auth_user_name = None <NEW_LINE> basic_auth_password = None | A class used for configuring the SDK by a user.
This class need not be instantiated and all properties and methods
are accessible without instance creation. | 6259903f96565a6dacd2d8c0 |
class Payment: <NEW_LINE> <INDENT> def __init__(self, app, wallet, allowed_methods=None, zeroconf=False, sync_period=600, endpoint='/payment', db_dir=None, username=None): <NEW_LINE> <INDENT> if allowed_methods is None: <NEW_LINE> <INDENT> self.allowed_methods = [ PaymentChannel(*flask_channel_adapter(app, PaymentServe... | Class to store merchant settings. | 6259903fec188e330fdf9b05 |
class RegexTag(object): <NEW_LINE> <INDENT> def __init__(self, regextag, *args): <NEW_LINE> <INDENT> if regextag.text == None: <NEW_LINE> <INDENT> raise ValueError( 'Required tag content missing: {0}' .format(regextag.tag)) <NEW_LINE> <DEDENT> self.regex = re.compile(regextag.text, *args) <NEW_LINE> ... | Regular Expression Tag Class
Evaluate text against regular expression details provided by a
hook configuration XML tag. | 6259903f50485f2cf55dc1ef |
class SurveyUnpublishEvent(ObjectEvent): <NEW_LINE> <INDENT> implements(ISurveyUnpublishEvent) | A survey is being removed from the client. | 6259903fd99f1b3c44d06908 |
class QueueAsyncDriver(QueueContract, BaseDriver): <NEW_LINE> <INDENT> def __init__(self, Container): <NEW_LINE> <INDENT> self.container = Container <NEW_LINE> <DEDENT> def push(self, *objects): <NEW_LINE> <INDENT> for obj in objects: <NEW_LINE> <INDENT> obj = self.container.resolve(obj) <NEW_LINE> thread = threading.T... | Queue Aysnc Driver
| 6259903fd53ae8145f9196c8 |
class AuthenticatorAddView(PermissionRequiredMixin, Fido2RegistrationView): <NEW_LINE> <INDENT> permission_required = 'django_fido.add_authenticator' <NEW_LINE> form_class = Fido2RegistrationAdminForm <NEW_LINE> template_name = 'django_fido/add_authenticator.html' <NEW_LINE> fido2_request_url = reverse_lazy('admin:djan... | Authenticator add view. | 6259903fe76e3b2f99fd9c78 |
class ISpecificationBug(IBugLink): <NEW_LINE> <INDENT> specification = Object(title=_('The specification linked to the bug.'), required=True, readonly=True, schema=ISpecification) | A link between a Bug and a specification. | 6259903fd10714528d69efc2 |
class ObjectLiteral: <NEW_LINE> <INDENT> def __init__(self, **kwds): <NEW_LINE> <INDENT> self.__dict__.update(kwds) | ObjectLiteral transforms named arguments into object attributes.
This is useful for creating object literals to be used as return
values from mocked API calls.
Source: https://stackoverflow.com/a/3335732 | 6259903f63b5f9789fe863d8 |
class InvalidFSUseType(InvalidSymbol): <NEW_LINE> <INDENT> pass | Exception for invalid fs_use_* types. | 6259903fcad5886f8bdc59b3 |
class Scheduler(object): <NEW_LINE> <INDENT> def __init__(self, manager, session): <NEW_LINE> <INDENT> raise RuntimeError ('Not Implemented!') <NEW_LINE> <DEDENT> def pilot_added (self, pilot) : <NEW_LINE> <INDENT> logger.warn ("scheduler %s does not implement 'pilot_added()'" % self.name) <NEW_LINE> <DEDENT> def pilot... | Scheduler provides an abstsract interface for all schedulers.
| 6259903f287bf620b6272e59 |
class DateRangeMixin(object): <NEW_LINE> <INDENT> DATE_FMT = '%Y-%m-%d' <NEW_LINE> END_OFFSET = datetime.timedelta( hours=23, minutes=59, seconds=59, ) <NEW_LINE> context_end_date = 'end_date' <NEW_LINE> context_start_date = 'start_date' <NEW_LINE> end_date_param = 'end_date' <NEW_LINE> start_date_param = 'start_date' ... | Mixin providing functionality for filtering by a date range.
The starting and ending times are specified as GET parameters. | 6259903f8c3a8732951f77c5 |
class _NullHandler(L.Handler): <NEW_LINE> <INDENT> def emit(self, _record): <NEW_LINE> <INDENT> pass | Logging handler that does nothing. | 6259903f66673b3332c31665 |
class Catch(object): <NEW_LINE> <INDENT> result = None <NEW_LINE> success = None <NEW_LINE> def __call__(self, func, *args, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> Catch.result = func(*args, **kwargs) <NEW_LINE> Catch.success = True <NEW_LINE> return 0 <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> Cat... | Reproduces the behavior of the mel command of the same name. if writing
pymel scripts from scratch, you should use the try/except structure. This
command is provided for python scripts generated by py2mel. stores the
result of the function in catch.result.
>>> if not catch( lambda: myFunc( "somearg" ) ):
... resul... | 6259903f07f4c71912bb069f |
class EffectiveNetworkSecurityGroupListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[EffectiveNetworkSecurityGroup]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__... | Response for list effective network security groups API service call.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: A list of effective network security groups.
:type value: list[~azure.mgmt.network.v2019_08_01.models.EffectiveNetworkSecurityGroup]
:ivar next_li... | 6259903f63f4b57ef00866ab |
@admin.register(Genre) <NEW_LINE> class GenreAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ("name", "url") | Жанры | 6259903fec188e330fdf9b07 |
class ParamError(APIException): <NEW_LINE> <INDENT> def __init__(self, err): <NEW_LINE> <INDENT> self.detail = err <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.msg | http参数错误
| 6259903f1f5feb6acb163e61 |
class ConvParameters(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.patch_size = 5 <NEW_LINE> self.stride = 1 <NEW_LINE> self.in_channels = 1 <NEW_LINE> self.out_channels = 0 <NEW_LINE> self.with_bias = True <NEW_LINE> self.relu = True <NEW_LINE> self.max_pool = True <NEW_LINE> self.max_pool_... | class that defines a conv layer. | 6259903f596a897236128ee5 |
class Annotator(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def on_post(self, req, resp): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def create( self, health_endpoint="/api/v1/health", health_impl=HealthResource(), post_endpoint="/api/v1/annotate/cdr", ): <NEW_LINE> <INDENT> app = falcon.API() <NEW_LINE> app... | Annotator is a falcon-based "analytic".
Implementations must implement one method:
on_post(request, response) | 6259903f15baa723494631ff |
class Feed(csvfeed.BarFeed): <NEW_LINE> <INDENT> def __init__(self, frequency=bar.Frequency.DAY, timezone=None, maxLen=dataseries.DEFAULT_MAX_LEN): <NEW_LINE> <INDENT> if frequency not in [bar.Frequency.DAY]: <NEW_LINE> <INDENT> raise Exception("Invalid frequency.") <NEW_LINE> <DEDENT> csvfeed.BarFeed.__init__(self, fr... | A :class:`pyalgotrade.barfeed.csvfeed.BarFeed` that loads bars from CSV files downloaded from Google Finance.
:param frequency: The frequency of the bars. Only **pyalgotrade.bar.Frequency.DAY** is currently supported.
:param timezone: The default timezone to use to localize bars. Check :mod:`pyalgotrade.marketsession`... | 6259903f07d97122c4217f0d |
class FeedbackIPCChannel(IPCChannel): <NEW_LINE> <INDENT> def __init__(self, conn, feedback): <NEW_LINE> <INDENT> IPCChannel.__init__(self, conn) <NEW_LINE> self.feedback = feedback <NEW_LINE> <DEDENT> def handle_message(self, message): <NEW_LINE> <INDENT> self.feedback.logger.debug("Processing signal") <NEW_LINE> if m... | IPC Channel for Feedback's end. | 6259903f379a373c97d9a297 |
class ExchangeRatesAPI(Resource): <NEW_LINE> <INDENT> def get(self, comparison): <NEW_LINE> <INDENT> key = '3c350b71f4e249f1a01c7573fb3b9998' <NEW_LINE> currencies = get( 'https://openexchangerates.org/api/latest.json', params={'app_id': key}).json() <NEW_LINE> return [{'exchange_rate': currencies['rates'][comparison]}... | Compare a currency to USD
Data source: OpenExchangeRates
Notes:
- Using a free plan, which means there is only one base currency (USD) allowed
- Free plan is also limited to 1,000 queries per month | 6259903f07f4c71912bb06a0 |
class ModelMeta(type): <NEW_LINE> <INDENT> def __init__(self, name, bases, dct): <NEW_LINE> <INDENT> self._fields = {key for key, value in dct.iteritems() if isinstance(value, AbstractGenerator)} <NEW_LINE> super(ModelMeta, self).__init__(name, bases, dct) | Model metaclass.
Metclass to create Models correctly.
It is done to support nested models
and iteratio through fields | 6259903fc432627299fa4238 |
class Player(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self,screen,player_num): <NEW_LINE> <INDENT> pygame.sprite.Sprite.__init__(self) <NEW_LINE> self.__p1 = pygame.image.load("Player_1.png") <NEW_LINE> self.__p2 = pygame.image.load("Player_2.png") <NEW_LINE> self.__p1_jump = pygame.image.load("Player1_J... | This class defines the sprite for Player 1 and Player 2 | 6259903f82261d6c527307fb |
class Faces: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') <NEW_LINE> self.eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml') <NEW_LINE> <DEDENT> def process(self, source0): <NEW_LINE> <INDENT> img = source0 <NEW_LINE... | An OpenCV pipeline created to find faces | 6259903fcad5886f8bdc59b4 |
class LiteralInteger(Literal): <NEW_LINE> <INDENT> __slots__ = ('_value',) <NEW_LINE> _dtype = NativeInteger() <NEW_LINE> def __init__(self, value, precision = -1): <NEW_LINE> <INDENT> super().__init__(precision) <NEW_LINE> assert(value >= 0) <NEW_LINE> if not isinstance(value, int): <NEW_LINE> <INDENT> raise TypeE... | Represents an integer literal in python | 6259903fa79ad1619776b2ee |
class DocumentAddForm(silvaforms.SMIAddForm): <NEW_LINE> <INDENT> grok.context(IDocument) <NEW_LINE> grok.name('Silva Document') <NEW_LINE> fields = silvaforms.Fields(ITitledContent) | Add form for Documents
| 6259903f16aa5153ce40175c |
class UpdateInfo: <NEW_LINE> <INDENT> @param.input("username, declaration?") <NEW_LINE> def POST(self, username, declaration): <NEW_LINE> <INDENT> if web.ctx.username != username: <NEW_LINE> <INDENT> return {"code": 1, "message": "access denied"} <NEW_LINE> <DEDENT> if username not in user_info_data: <NEW_LINE> <INDENT... | 更新用户信息 | 6259903fb830903b9686edb1 |
class AuthenticateUserView(APIView): <NEW_LINE> <INDENT> permission_classes = (AllowAny,) <NEW_LINE> def post(self, request): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> email = request.data['email'] <NEW_LINE> password = request.data['password'] <NEW_LINE> user = User.objects.get(email=email, password=password) <NEW_... | Allow any user (authenticated or not) to access this url | 6259903f3eb6a72ae038b8da |
class GeneralRegressionModel(ind.GeneralRegressionModel): <NEW_LINE> <INDENT> def __init__(self, attribs): <NEW_LINE> <INDENT> super(GeneralRegressionModel, self).__init__() <NEW_LINE> self.targetVariableName = None <NEW_LINE> self.modelType = None <NEW_LINE> self.modelName = None <NEW_LINE> self.functionName = None <N... | Represents a <GeneralRegressionModel> tag in v3.2 and provides methods to convert to PFA. | 6259903fec188e330fdf9b09 |
class Accuracy(EvalMetric): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Accuracy, self).__init__('accuracy') <NEW_LINE> <DEDENT> def update(self, labels, preds): <NEW_LINE> <INDENT> check_label_shapes(labels, preds) <NEW_LINE> for label, pred_label in zip(labels, preds): <NEW_LINE> <INDENT> if pre... | Calculate accuracy. | 6259903f50485f2cf55dc1f3 |
class StringWrapper(Base): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> super(StringWrapper, self).__init__() <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LINE> <INDENT> return hash(self.value) <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> if isinst... | Simple string that does no parsing but allows us to map editors to it | 6259903f26238365f5faddc8 |
class TestConfig(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.tmpdir = tempfile.mkdtemp(prefix="config_test", dir=".") <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> if os.path.exists(self.tmpdir): <NEW_LINE> <INDENT> shutil.rmtree(self.tmpdir) <NEW_LINE> <DEDENT> <DEDE... | Test Config file items are exposed as attributes on config object | 6259903fd99f1b3c44d0690c |
class Activity (CacheClearingModel, TimeStampedModel): <NEW_LINE> <INDENT> action = models.CharField(max_length=16, default='create') <NEW_LINE> data = models.ForeignKey(SubmittedThing) <NEW_LINE> cache = cache.ActivityCache() <NEW_LINE> next_version = 'sa_api_v2.models.Action' <NEW_LINE> @property <NEW_LINE> def submi... | Metadata about SubmittedThings:
what happened when. | 6259903f30c21e258be99a7d |
class DictAttr(dict): <NEW_LINE> <INDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self[name] <NEW_LINE> <DEDENT> except KeyError: <NEW_LINE> <INDENT> raise AttributeError | Dictionary class
>>> x = DictAttr([('one', 1), ('two', 2), ('three', 3)])
>>> x
{'one': 1, 'two': 2, 'three': 3}
>>> x['three']
3
>>> x.get('one')
1
>>> x.get('five', 'missing')
'missing'
>>> x.one
1
>>> x.five
Traceback (most recent call last):
...
AttributeError | 6259903f097d151d1a2c22d6 |
@unittest.skipUnless(settings.ROOT_URLCONF == 'lms.urls', 'Test only valid in lms') <NEW_LINE> @ddt.ddt <NEW_LINE> class XDomainProxyTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(XDomainProxyTest, self).setUp() <NEW_LINE> try: <NEW_LINE> <INDENT> self.url = reverse('xdomain_proxy') <NEW... | Tests for the xdomain proxy end-point. | 6259903f287bf620b6272e5d |
class Blocks(Extension): <NEW_LINE> <INDENT> def onUserBlockBuilding(self, event): <NEW_LINE> <INDENT> if context.user.can("manage_blocks"): <NEW_LINE> <INDENT> event.add_link("Blocks Editor", make_link("blocks/list")) <NEW_LINE> <DEDENT> <DEDENT> def onPageRequest(self, event, request, config, database, page, user, ca... | Name: Generic Blocks
Author: Shish <webmaster@shishnet.org>
Link: http://code.shishnet.org/shimmie2/
License: GPLv2
Description: Add HTML to some space (News, Ads, etc) | 6259903fbe383301e0254a89 |
class zTopFoolball(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.tim0Str_gid='2010-01-01' <NEW_LINE> self.tim0_gid=arrow.get(self.tim0Str_gid) <NEW_LINE> self.gid_tim0str,self.gid_tim9str='','' <NEW_LINE> self.gid_nday,self.gid_nday_tim9=0,0 <NEW_LINE> self.tim0,self.tim9,self.tim_now=None,N... | 设置TopFoolball项目的各个全局参数
尽量做到all in one | 6259903fa79ad1619776b2f0 |
class ResourceManagerTestCase(TransactionTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.user = test_utils.setup_user("user", "changeme") <NEW_LINE> test_utils.set_competition_round() <NEW_LINE> self.team = self.user.get_profile().team <NEW_LINE> <DEDENT> def testEnergy(self): <NEW_LINE> <INDEN... | ResourceManager Test | 6259903fd6c5a102081e3397 |
class WhileBodyFuncGraph(func_graph.FuncGraph): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(WhileBodyFuncGraph, self).__init__(*args, **kwargs) <NEW_LINE> if ops.executing_eagerly_outside_functions(): <NEW_LINE> <INDENT> func_graph.override_func_graph_name_scope( self, self.outer_... | FuncGraph for the body of tf.while_loop().
This is used to distinguish while bodies from other functions. | 6259903f1f5feb6acb163e65 |
class ComponentTests(ossie.utils.testing.ScaComponentTestCase): <NEW_LINE> <INDENT> def testScaBasicBehavior(self): <NEW_LINE> <INDENT> execparams = self.getPropertySet(kinds=("execparam",), modes=("readwrite", "writeonly"), includeNil=False) <NEW_LINE> execparams = dict([(x.id, any.from_any(x.value)) for x in execpara... | Test for all component implementations in argmax_ss_1i | 6259903f711fe17d825e15d5 |
class CcUpdate(atom.core.XmlElement): <NEW_LINE> <INDENT> _qname = ISSUES_TEMPLATE % 'ccUpdate' | The issues:ccUpdate element. | 6259903f004d5f362081f91d |
class ChannelNormalizer(object): <NEW_LINE> <INDENT> def __init__(self, mean_r, mean_g, mean_b, std_r, std_g, std_b): <NEW_LINE> <INDENT> self.mean_r = mean_r <NEW_LINE> self.mean_g = mean_g <NEW_LINE> self.mean_b = mean_b <NEW_LINE> self.std_r = std_r <NEW_LINE> self.std_g = std_g <NEW_LINE> self.std_b = std_b <NEW_LI... | Normalize image which is an numpy array by means and std of each channel. The shape of image is (height, width, channel)
:param mean_r: mean for red channel
:param mean_g: mean for green channel
:param mean_b: mean for blue channel
:param std_r: std for red channel
:param std_g: std for green channel
:param std_b: std ... | 6259903f26238365f5faddca |
class InputLocationMessageContent(InputMessageContent): <NEW_LINE> <INDENT> def __init__(self, latitude, longitude): <NEW_LINE> <INDENT> super(InputLocationMessageContent, self).__init__() <NEW_LINE> assert(latitude is not None) <NEW_LINE> assert(isinstance(latitude, float)) <NEW_LINE> self.latitude = latitude <NEW_LIN... | Represents the content of a location message to be sent as the result of an inline query.
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
https://core.telegram.org/bots/api#inputlocationmessagecontent | 6259903f30dc7b76659a0aa4 |
class Project(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "проект" <NEW_LINE> verbose_name_plural = "проекты" <NEW_LINE> <DEDENT> name = models.CharField(verbose_name="название", max_length=100) <NEW_LINE> description = HTMLField(verbose_name="описание") <NEW_LINE> start_date = mod... | Companies project model. | 6259903fd4950a0f3b111779 |
class InstalledExtensionState(Model): <NEW_LINE> <INDENT> _attribute_map = { 'flags': {'key': 'flags', 'type': 'object'}, 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} } <NEW_LINE> def __init__(self, flags=None,... | InstalledExtensionState.
:param flags: States of an installed extension
:type flags: object
:param installation_issues: List of installation issues
:type installation_issues: list of :class:`InstalledExtensionStateIssue <contributions.v4_1.models.InstalledExtensionStateIssue>`
:param last_updated: The time at which th... | 6259903f8e05c05ec3f6f794 |
class uniform_grid_end(uniform_grid): <NEW_LINE> <INDENT> def __init__(self,link,pointer=0): <NEW_LINE> <INDENT> if pointer==0: <NEW_LINE> <INDENT> f=link.o2scl.o2scl_create_uniform_grid_end_ <NEW_LINE> f.restype=ctypes.c_void_p <NEW_LINE> f.argtypes=[] <NEW_LINE> self._ptr=f() <NEW_LINE> <DEDENT> else: <NEW_LINE> <IND... | Python interface for O\ :sub:`2`\ scl class ``uniform_grid_end``,
see
https://neutronstars.utk.edu/code/o2scl/html/class/uniform_grid_end.html . | 6259903f21bff66bcd723edd |
class GenotypeSplitter(BaseVspSplitter): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> _simuPOP_std.GenotypeSplitter_swiginit(self, _simuPOP_... | Details:
This class defines a VSP splitter that defines VSPs according to
individual genotype at specified loci. | 6259903f287bf620b6272e5f |
class BaseMessage(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.id = None <NEW_LINE> self.seq = float('-inf') <NEW_LINE> self.addr_v4 = None <NEW_LINE> self.addr_v6 = None <NEW_LINE> self.networks = {} <NEW_LINE> self.routing_data = {} <NEW_LINE> self.node_data = {} <NEW_LINE> self.reflect =... | Auxiliary class to encapsulate basic message fields | 6259903f07f4c71912bb06a5 |
class CRUDExternalApi(CRUDApi): <NEW_LINE> <INDENT> def update_by_external_id(self, api_objects): <NEW_LINE> <INDENT> if not isinstance(api_objects, collections.Iterable): <NEW_LINE> <INDENT> api_objects = [api_objects] <NEW_LINE> <DEDENT> return CRUDRequest(self).put(api_objects, update_many_external=True) <NEW_LINE> ... | The CRUDExternalApi exposes some extra methods for operating on external ids. | 6259903f23e79379d538d772 |
class CoquetelDecorator(Coquetel): <NEW_LINE> <INDENT> def __init__(self, coquetel): <NEW_LINE> <INDENT> self.coquetel = coquetel <NEW_LINE> <DEDENT> def get_nome(self): <NEW_LINE> <INDENT> nome = "{0} + {1}".format(self.coquetel.get_nome(), self.nome) <NEW_LINE> return nome <NEW_LINE> <DEDENT> def get_preco(self): <NE... | Adicional para o coquetel. | 6259903fa4f1c619b294f7c1 |
class ArctanExpInfo: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Name = 'Arctan with Exp' <NEW_LINE> self.Order = 7 <NEW_LINE> self.ParameterNumber = 6 <NEW_LINE> self.ParameterNames = ['Position', 'Factor', 'Amplitude', 'Offset', 'Decay Fact', 'Decay Pos'] <NEW_LINE> self.ParameterU... | ###############################################################################
This class will contain information about the function, parameters and names
############################################################################### | 6259903f1f5feb6acb163e67 |
class MorphosynSequencer(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(MorphosynSequencer, self).__init__() <NEW_LINE> if 0: <NEW_LINE> <INDENT> W_ = torch.ones(config.ndim, config.ndim) <NEW_LINE> W1_ = W_.triu() * 1.0 <NEW_LINE> W2_ = W_.tril() * -10.0 <NEW_LINE> W_ = (W1_ + W2_) <NEW_... | Sequence morphosyntactic specifications with inhibition | 6259903f004d5f362081f91e |
class Transaction(metaclass(TransactionMeta)): <NEW_LINE> <INDENT> __actions__, __scoped__ = {}, False <NEW_LINE> __getattr__, __setattr__ = getter, setter <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.__context__ = (args, kwargs) <NEW_LINE> self.__root__ = self.__path__ = "" <NEW_LINE> <DEDE... | Generate a transaction scope. All actions within the scope should finish
successfully or else will undo themselves, and revert state safely. | 6259903f26238365f5faddcc |
class BaseEstimator(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _get_param_names(cls): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> init = getattr(cls.__init__, 'deprecated_original', cls.__init__) <NEW_LINE> args, varargs, kw, default = inspect.getargspec(init) <NEW_LINE> if not varargs is None: <NEW_LINE... | Base class for all estimators in scikit-learn
Notes
-----
All estimators should specify all the parameters that can be set
at the class level in their __init__ as explicit keyword
arguments (no *args, **kwargs). | 6259903f82261d6c527307fe |
class named_user(run_user_base): <NEW_LINE> <INDENT> def _init_test_depenent(self): <NEW_LINE> <INDENT> user = None <NEW_LINE> for line in self.parent_subtest.stuff['passwd'].splitlines(): <NEW_LINE> <INDENT> line = line.strip() <NEW_LINE> if not line or line.startswith('root') or line.startswith('#'): <NEW_LINE> <INDE... | Finds any user but root existing on container and uses it by name | 6259903f94891a1f408ba031 |
class TurtleWaipoint(object): <NEW_LINE> <INDENT> def __init__(self, waypoint_x=None, waypoint_y=None): <NEW_LINE> <INDENT> self.x = None <NEW_LINE> self.y = None <NEW_LINE> self.theta = None <NEW_LINE> self.tolerance = 0.1 <NEW_LINE> self.got_position = False <NEW_LINE> self.finished = False <NEW_LINE> rospy.init_node... | Class to guide the turtle to the specified waypoint. | 6259903fb57a9660fecd2cf0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.