code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Simple(FitnessTuple): <NEW_LINE> <INDENT> def __new__(self, value: Union[Number, Sequence[Number]]): <NEW_LINE> <INDENT> if isinstance(value, Number): <NEW_LINE> <INDENT> return Lexicographic([value]) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return Lexicographic(value) | The simplest possible fitness: a single value | 625990664e4d562566373b6c |
class NcVariable(netCDF4.Variable, NcChunkIteratorMixIn): <NEW_LINE> <INDENT> def __new__(cls, group, varname, datatype, **kwargs): <NEW_LINE> <INDENT> var = netCDF4.Variable.__new__(cls, group, varname, datatype, **kwargs) <NEW_LINE> group.variables[varname] = var <NEW_LINE> return var <NEW_LINE> <DEDENT> @property <N... | Extends the netCDF4.Variable class by defining additional local methods
(just varname at present) and by inheriting iteration functionality from
the NcChunkIteratorMixIn mix-in class. | 625990663617ad0b5ee078b6 |
class TrayIcon(gtk.StatusIcon, BaseTray): <NEW_LINE> <INDENT> NAME = 'Tray Icon' <NEW_LINE> DESCRIPTION = 'The gtk tray icon' <NEW_LINE> AUTHOR = 'Mariano Guerra' <NEW_LINE> WEBSITE = 'www.emesene.org' <NEW_LINE> def __init__(self, handler, main_window=None): <NEW_LINE> <INDENT> BaseTray.__init__(self) <NEW_LINE> gtk.S... | A widget that implements the tray icon of emesene for gtk | 625990668a43f66fc4bf38f6 |
class BatchOp(UpdateCallback): <NEW_LINE> <INDENT> title = 'Untitled operation' <NEW_LINE> description = 'This operation needs to be described' <NEW_LINE> def __init__(self, db, callback): <NEW_LINE> <INDENT> UpdateCallback.__init__(self, callback) <NEW_LINE> self.db = db <NEW_LINE> self.prepared = False <NEW_LIN... | Base class for the sub-tools. | 625990665166f23b2e244b36 |
class Attendance(models.Model): <NEW_LINE> <INDENT> yearmonth = models.ForeignKey( YearMonth, on_delete=models.CASCADE) <NEW_LINE> date = models.DateField() <NEW_LINE> stt_time = models.TimeField(default='00:00:00') <NEW_LINE> end_time = models.TimeField(default='00:00:00') <NEW_LINE> break_time = models.TimeField(defa... | Attendance
| 6259906692d797404e389710 |
class GithubApi: <NEW_LINE> <INDENT> def __init__(self, instance, repo_url, settings, timeout=30): <NEW_LINE> <INDENT> parsed_repo_url = urlparse(repo_url) <NEW_LINE> repo = parsed_repo_url.path.strip("/") <NEW_LINE> secret_reader = SecretReader(settings=settings) <NEW_LINE> token = secret_reader.read(instance["token"]... | Github client implementing the common interfaces used in
the qontract-reconcile integrations.
:param instance: the Github instance and provided
by the app-interface
:param repo_url: the Github repository URL
:param settings: the app-interface settings
:type instance: dict
:type repo_url: str
:type set... | 625990667d847024c075db3e |
class DescribeAutoSnapshotPoliciesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.AutoSnapshotPolicyIds = None <NEW_LINE> self.Filters = None <NEW_LINE> self.Limit = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Order = None <NEW_LINE> self.OrderField = None <NEW_LINE> <DED... | DescribeAutoSnapshotPolicies请求参数结构体
| 62599066adb09d7d5dc0bcd0 |
class SuperChip: <NEW_LINE> <INDENT> def __init__(self, array): <NEW_LINE> <INDENT> self.rom = numpy.array(array,numpy.uint8) <NEW_LINE> self.romSlice = self.rom[:0x1000] <NEW_LINE> self.banks = len(self.rom) / 0x1000 <NEW_LINE> if self.banks == 2: <NEW_LINE> <INDENT> self.access = self.accessF8 <NEW_LINE> <DEDENT> eli... | Atari Super-Chip | 6259906621bff66bcd7243cc |
class Role(object): <NEW_LINE> <INDENT> def __init__(self, name, permissions): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.permissions = permissions <NEW_LINE> <DEDENT> def has_permission(self, resource, action): <NEW_LINE> <INDENT> return any([resource == perm.resource and action == perm.action ... | Role object to group users and permissions.
Attributes:
- name: The name of the role.
- permissions: A list of permissions. | 625990668e7ae83300eea7f4 |
class Comment(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User, blank=False, related_name="%(app_label)s_%(class)s_user_related") <NEW_LINE> reply_to = models.ForeignKey('self', blank=True, null=True, related_name="%(app_label)s_%(class)s_replyto_related") <NEW_LINE> comment = models.CharField(max_lengt... | Los comentarios son la forma de expresión más sencilla
de los usuarios en Titles, Release, etc. Los Comment
se pueden añadir a cualquier modelo para habilitar los
comentarios. Cada fila es un comentario.
Se recomienda añadir en los modelos en los que se
habiliten los comentarios lo siguiente:
open_comments = models.B... | 62599066cc0a2c111447c683 |
@view_auth_classes() <NEW_LINE> class GradeViewMixin(DeveloperErrorViewMixin): <NEW_LINE> <INDENT> def _get_course(self, course_key_string, user, access_action): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> course_key = CourseKey.from_string(course_key_string) <NEW_LINE> <DEDENT> except InvalidKeyError: <NEW_LINE> <IND... | Mixin class for Grades related views. | 62599066009cb60464d02c9f |
class span(parameter): <NEW_LINE> <INDENT> pass | Wing span
b
:Unit: [m] | 6259906616aa5153ce401c41 |
class SwitchSchema: <NEW_LINE> <INDENT> CONF_STATE_ADDRESS = CONF_STATE_ADDRESS <NEW_LINE> DEFAULT_NAME = "KNX Switch" <NEW_LINE> SCHEMA = vol.Schema( { vol.Required(CONF_ADDRESS): cv.string, vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string, vol.Optional(CONF_STATE_ADDRESS): cv.string, } ) | Voluptuous schema for KNX switches. | 62599066a219f33f346c7f6d |
class Settings: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen_width = 1200 <NEW_LINE> self.screen_height = 800 <NEW_LINE> self.bg_color = (230, 230, 230) <NEW_LINE> self.ship_speed_factor = 1.5 <NEW_LINE> self.ship_limit = 3 <NEW_LINE> self.blaster_speed_factor = 4 <NEW_LINE> self.blaster_widt... | A class to store all settings for Alien Invasion | 6259906645492302aabfdc43 |
class GnmplutostatsPluginURL(Plugin): <NEW_LINE> <INDENT> implements(IPluginURL) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.name = "Gnmplutostats App" <NEW_LINE> self.urls = 'portal.plugins.gnmplutostats.urls' <NEW_LINE> self.urlpattern = r'^gnmplutostats/' <NEW_LINE> self.namespace = r'gnmplutostats' <NEW... | Adds a plugin handler which creates url handler for the index page | 625990664f6381625f19a058 |
class AccelerationControlWidget(FigureCanvas): <NEW_LINE> <INDENT> def __init__(self, params, parent=None): <NEW_LINE> <INDENT> self.figure = Figure(facecolor=(1., 1., 1.)) <NEW_LINE> super(AccelerationControlWidget, self).__init__(self.figure) <NEW_LINE> self.setParent(parent) <NEW_LINE> self.axes = self.figure.add_su... | CLASS - Defines the graphics area for plotting the acceleration control bezier curve | 62599066460517430c432c08 |
class ExecveGoal(FunctionGoal): <NEW_LINE> <INDENT> def __init__(self, name, address, arguments): <NEW_LINE> <INDENT> super(ExecveGoal, self).__init__(name, address, []) <NEW_LINE> for arg in arguments: <NEW_LINE> <INDENT> if type(arg) not in [int, long]: <NEW_LINE> <INDENT> arg = str(arg) <NEW_LINE> <DEDENT> self.argu... | This class represents a call to execve to start another program | 625990664428ac0f6e659c99 |
class FromFields(object): <NEW_LINE> <INDENT> def __init__(self, api_endpoint: str, api_key: str, x_domain: str = None, x_time_zone: str = None): <NEW_LINE> <INDENT> self._getresponse_client = GetresponseClient(api_endpoint=api_endpoint, api_key=api_key, x_domain=x_domain, x_time_zone=x_time_zone) <NEW_LINE> <DEDENT> d... | Class represents From fields section of API
http://apidocs.getresponse.com/v3/resources/fromfields | 6259906667a9b606de547655 |
class VirtualHubRouteTable(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'routes': {'key': 'routes', 'type': '[VirtualHubRoute]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(VirtualHubRouteTable, self).__init__(**kwargs) <NEW_LINE> self.routes = kwargs.get('routes', Non... | VirtualHub route table.
:param routes: List of all routes.
:type routes: list[~azure.mgmt.network.v2019_04_01.models.VirtualHubRoute] | 6259906676e4537e8c3f0cea |
class ProxyBase(IProxy): <NEW_LINE> <INDENT> clib_support = False <NEW_LINE> def __enter__(self): <NEW_LINE> <INDENT> threading.local()._orig_socket = socket.socket <NEW_LINE> try: <NEW_LINE> <INDENT> self.negotiate() <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> socket.socket = threading.local()._orig_socket <NEW_LI... | base class of proxy
| 625990664e4d562566373b6e |
class Kosten(CustomModel): <NEW_LINE> <INDENT> name = models.CharField( verbose_name="Name", max_length=500, default="Zusätzliche Kosten", ) <NEW_LINE> preis = models.FloatField( verbose_name="Preis (exkl. MwSt)", default=0.0, ) <NEW_LINE> mwstsatz = models.FloatField( verbose_name="MwSt-Satz", choices=constants.MWSTSE... | Model representing additional costs | 625990663539df3088ecda06 |
class Transactions(command.Command): <NEW_LINE> <INDENT> required = ['addr', 'pwd'] <NEW_LINE> def handle(self, *args, **kwargs): <NEW_LINE> <INDENT> addr = self.data['addr'] <NEW_LINE> pwd = self.data['pwd'] <NEW_LINE> if not mongo.db.addresses.find_one({"addr": addr, "pwd": pwd}): <NEW_LINE> <INDENT> self.error("Your... | Gives the user a list of their transactions,
allowing clients to display changes of coins
to and from the given address.
fingerprint: {"cmd": "transactions", "addr": _, "pwd": _} | 62599066435de62698e9d571 |
class StartPage(tk.Frame): <NEW_LINE> <INDENT> def __init__(self,parent,controller): <NEW_LINE> <INDENT> tk.Frame.__init__(self,parent) <NEW_LINE> label = tk.Label(self,text="Start Page",font=LARGE_FONT) <NEW_LINE> label.pack(pady = 10,padx = 10) <NEW_LINE> button1 = ttk.Button(self,text="Page One", command=lambda:cont... | Class for Initial Page which contains
few buttons to navigate between other pages | 625990668a43f66fc4bf38f8 |
class Table(grid.GridTableBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> grid.GridTableBase.__init__(self) <NEW_LINE> <DEDENT> def GetNumberRows(self): <NEW_LINE> <INDENT> return len(data) <NEW_LINE> <DEDENT> def GetNumberCols(self): <NEW_LINE> <INDENT> return len(identifiers) <NEW_LINE> <DEDENT> de... | Holds the data. Usually wx.grid.GridStringTable is used but gridmovers requires customisation of base class. | 62599066aad79263cf42ff20 |
class PostUpdateView(LoginRequiredMixin, UserPassesTestMixin, UpdateView): <NEW_LINE> <INDENT> model = Post <NEW_LINE> fields = ['content'] <NEW_LINE> template_name = 'blog/post_new.html' <NEW_LINE> success_url = '/' <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> form.instance.author = self.request.user <NE... | Comment update view. | 625990667d847024c075db40 |
class TN(_RowMeasure): <NEW_LINE> <INDENT> name, label = 'tn', 'TN' <NEW_LINE> def __call__(self): <NEW_LINE> <INDENT> return self.cm.sum() - (TP(self.cm)() + FP(self.cm)() + FN(self.cm)()) | A row measure that computes the true negatives of each class. | 62599066aad79263cf42ff21 |
class CloudbillingBillingAccountsGetRequest(_messages.Message): <NEW_LINE> <INDENT> name = _messages.StringField(1, required=True) | A CloudbillingBillingAccountsGetRequest object.
Fields:
name: The resource name of the billing account to retrieve. For example,
`billingAccounts/012345-567890-ABCDEF`. | 6259906632920d7e50bc77ae |
class IPAddress(IPBase): <NEW_LINE> <INDENT> INET_TYPE = None <NEW_LINE> def __init__(self, address): <NEW_LINE> <INDENT> self.address = address <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> address_string = socket.inet_ntop(self.INET_TYPE, self.address) <NEW_LINE> return address_string <NEW_LINE> <DEDENT>... | Abstract base class for IP addresses | 6259906632920d7e50bc77af |
class TaskAttachmentViewHandler(FileHandler): <NEW_LINE> <INDENT> @tornado.web.authenticated <NEW_LINE> @actual_phase_required(0, 3) <NEW_LINE> @multi_contest <NEW_LINE> def get(self, task_name, filename): <NEW_LINE> <INDENT> task = self.get_task(task_name) <NEW_LINE> if task is None: <NEW_LINE> <INDENT> raise tornado.... | Shows an attachment file of a task in the contest.
| 6259906656ac1b37e6303899 |
class SearcherTest(RailroadServer): <NEW_LINE> <INDENT> def test(self, n): <NEW_LINE> <INDENT> nodes = list(self.nodes.keys()) <NEW_LINE> for i in range(n): <NEW_LINE> <INDENT> source = choice(nodes) <NEW_LINE> destination = choice(nodes) <NEW_LINE> astar, dijkstra = searcher.run(source, destination, self.paths.values(... | Tests the searcher file by generating random source and destination nodes, verifying that the shortest paths found by both A* and Dijkstra are equal. | 6259906616aa5153ce401c43 |
class LocalOscillatorTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self) -> None: <NEW_LINE> <INDENT> addr = '/dev/ttyUSB0' <NEW_LINE> self.device = kuhne_electronic.LocalOscillator(addr) <NEW_LINE> self.device.initialize() <NEW_LINE> <DEDENT> def tearDown(self) -> None: <NEW_LINE> <INDENT> self.device.close()... | For testing the Kuhne Electronic Local Oscillator class. | 625990664a966d76dd5f065f |
class MultiClipAlgorithm(GeoAlgorithm): <NEW_LINE> <INDENT> OUTPUT_LAYER = 'OUTPUT_LAYER' <NEW_LINE> INPUT_LAYER = 'INPUT_LAYER' <NEW_LINE> def defineCharacteristics(self): <NEW_LINE> <INDENT> self.name = 'Clip Layer by Other Layer' <NEW_LINE> self.group = 'Vector Algorithms' <NEW_LINE> self.addParameter(ParameterVecto... | This is an example algorithm that takes a vector layer and
creates a new one just with just those features of the input
layer that are selected.
It is meant to be used as an example of how to create your own
algorithms and explain methods and variables used to do it. An
algorithm like this will be available in all ele... | 62599066d7e4931a7ef3d73a |
class SentencePieceUnigramTokenizer(BaseTokenizer): <NEW_LINE> <INDENT> def __init__( self, replacement = "_", add_prefix_space: bool = True, unk_token: Union[str, AddedToken] = "<unk>", eos_token: Union[str, AddedToken] = "</s>", pad_token: Union[str, AddedToken] = "<pad>", ): <NEW_LINE> <INDENT> self.special_tokens =... | This class is a copy of `DeDLOC's tokenizer implementation <https://github.com/yandex-research/DeDLOC/blob/main/sahajbert/tokenizer/tokenizer_model.py>`
Custom SentencePiece Unigram Tokenizer with NMT, NKFC, spaces and lower-casing characters normalization
Represents the Unigram algorithm, with the pretokenization used... | 625990663539df3088ecda07 |
class ConfigBase(object): <NEW_LINE> <INDENT> def get(self,key,default=None): <NEW_LINE> <INDENT> if hasattr(self,key): <NEW_LINE> <INDENT> return getattr(self,key) <NEW_LINE> <DEDENT> return default <NEW_LINE> <DEDENT> def __init__(self, config_dict=None): <NEW_LINE> <INDENT> if config_dict: <NEW_LINE> <INDENT> self.s... | Holds the configuration | 62599066435de62698e9d572 |
@ddt <NEW_LINE> class frontlogin(myunit.MyTest): <NEW_LINE> <INDENT> @data(*get_csv_data('D:\projectTestCase\iwebshop\iwebshop\data\logindata.csv')) <NEW_LINE> @unpack <NEW_LINE> def test_blogin(self, username, password): <NEW_LINE> <INDENT> browes = login(self.driver, "http://127.0.0.1/iwebshop/") <NEW_LINE> browes.us... | 前台登录功能测试 | 625990662c8b7c6e89bd4f4e |
class TaskActionTimer: <NEW_LINE> <INDENT> __slots__ = ["ctx", "delays", "num", "delay", "timeout", "is_waiting"] <NEW_LINE> def __init__(self, ctx=None, delays=None, num=0, delay=None, timeout=None): <NEW_LINE> <INDENT> self.ctx = ctx <NEW_LINE> self.delays = None <NEW_LINE> self.set_delays(delays) <NEW_LINE> self.num... | A timer with delays for task actions. | 625990663d592f4c4edbc647 |
class DataLoader: <NEW_LINE> <INDENT> cleaner = SentenceCleaner() <NEW_LINE> def __init__(self, path, vocabulary=None, do_shuffle = True, is_partial=False): <NEW_LINE> <INDENT> print("Reading data from {} ".format(path)) <NEW_LINE> self.load_data(path, vocabulary, is_partial) <NEW_LINE> self.shuffle = do_shuffle <NEW_L... | loads the trainings data and creates a generator for data batches to serve to Neural Networks | 62599066009cb60464d02ca2 |
class SingleThreadedDownloader(object): <NEW_LINE> <INDENT> def __init__(self, writer): <NEW_LINE> <INDENT> self._articles = [] <NEW_LINE> self._writer = writer <NEW_LINE> <DEDENT> def queue_article(self, article): <NEW_LINE> <INDENT> self._articles.append(article) <NEW_LINE> <DEDENT> def process_all(self): <NEW_LINE> ... | Class for downloading and parsing links in a single (current) thread. | 625990666e29344779b01dba |
class FloatProperty(_Property, FloatVariable): <NEW_LINE> <INDENT> __attributes__ = [] | Implements an float property | 6259906699fddb7c1ca63984 |
class CategoryActions(BaseActions): <NEW_LINE> <INDENT> def __get_form(self): <NEW_LINE> <INDENT> self.form = CaseCategoryForm(self.request.REQUEST) <NEW_LINE> self.form.populate(product_id=self.product_id) <NEW_LINE> return self.form <NEW_LINE> <DEDENT> def __check_form_validation(self): <NEW_LINE> <INDENT> form = sel... | Category actions used by view function `category` | 62599066f7d966606f74946f |
class RawHtmlPostprocessor(Postprocessor): <NEW_LINE> <INDENT> BLOCK_LEVEL_REGEX = re.compile(r'^\<\/?([^ >]+)') <NEW_LINE> def run(self, text): <NEW_LINE> <INDENT> replacements = OrderedDict() <NEW_LINE> for i in range(self.md.htmlStash.html_counter): <NEW_LINE> <INDENT> html = self.stash_to_string(self.md.htmlStash.r... | Restore raw html to the document. | 6259906632920d7e50bc77b0 |
@gin.configurable <NEW_LINE> class LSTMEncodingNetwork(network.Network): <NEW_LINE> <INDENT> def __init__( self, input_tensor_spec, preprocessing_layers=None, preprocessing_combiner=None, conv_layer_params=None, input_fc_layer_params=(75, 40), lstm_size=(40,), output_fc_layer_params=(75, 40), activation_fn=tf.keras.act... | Recurrent network. | 625990667c178a314d78e7a1 |
class MM(Layer): <NEW_LINE> <INDENT> def __init__(self, trans_a=False, trans_b=False, bigdl_type="float"): <NEW_LINE> <INDENT> super(MM, self).__init__(None, bigdl_type, trans_a, trans_b) | Module to perform matrix multiplication on two mini-batch inputs, producing a mini-batch.
:param trans_a: specifying whether or not transpose the first input matrix
:param trans_b: specifying whether or not transpose the second input matrix
>>> mM = MM(True, True)
creating: createMM | 625990668e71fb1e983bd230 |
class UserViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset=User.objects.all() <NEW_LINE> serializer_class=UserSerializer | This class takes care of list and detail actions
| 62599066a219f33f346c7f71 |
class VerifyEmailView(APIView): <NEW_LINE> <INDENT> def put(self,request): <NEW_LINE> <INDENT> token = request.query_params.get("token") <NEW_LINE> if not token: <NEW_LINE> <INDENT> return Response({'message':"缺少token"},status=status.HTTP_400_BAD_REQUEST) <NEW_LINE> <DEDENT> user = User.check_verify_email_token(token) ... | 用户邮箱验证
1.获取token(加密用户信息)并进行校验(token必传,token是否有效)
2.设置用户的邮箱验证标记True
3.返回应答,邮箱验证成功
| 625990664f88993c371f10d4 |
class QuantileEncoder(base.BaseEstimator): <NEW_LINE> <INDENT> def __init__(self, n_label=10, sample=100000, random_state=42): <NEW_LINE> <INDENT> self.n_label = n_label <NEW_LINE> self.sample = sample <NEW_LINE> self.random_state = random_state <NEW_LINE> self.is_fitted = False <NEW_LINE> <DEDENT> def fit(self, X, y=N... | QuantileEncoder encodes numerical features to quantile values.
Attributes:
ecdfs (list of empirical CDF): empirical CDFs for columns
n_label (int): the number of labels to be created. | 6259906623849d37ff852820 |
class EndpointException(Exception): <NEW_LINE> <INDENT> pass | raised in case enpoint url construction fails | 62599066d268445f2663a712 |
class CreateView(generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = File.objects.all() <NEW_LINE> serializer_class = FileSerializer <NEW_LINE> def perform_create(self, serializer): <NEW_LINE> <INDENT> serializer.save() | This class defines the create behavior of our rest api. | 6259906666673b3332c31b68 |
class ComputeForwardingRulesDeleteRequest(_messages.Message): <NEW_LINE> <INDENT> forwardingRule = _messages.StringField(1, required=True) <NEW_LINE> project = _messages.StringField(2, required=True) <NEW_LINE> region = _messages.StringField(3, required=True) <NEW_LINE> requestId = _messages.StringField(4) | A ComputeForwardingRulesDeleteRequest object.
Fields:
forwardingRule: Name of the ForwardingRule resource to delete.
project: Project ID for this request.
region: Name of the region scoping this request.
requestId: begin_interface: MixerMutationRequestBuilder Request ID to
support idempotency. | 62599066cb5e8a47e493cd3a |
class PaletteColor(Widget): <NEW_LINE> <INDENT> color = ListProperty() <NEW_LINE> selected = BooleanProperty(False) <NEW_LINE> def on_touch_down(self, touch): <NEW_LINE> <INDENT> if self.collide_point(*touch.pos): <NEW_LINE> <INDENT> touch.grab(self) <NEW_LINE> if knspace.colors_screen.mode == 'normal': <NEW_LINE> <IND... | Represents a color in a `Palette`. | 62599066f548e778e596ccf6 |
class TypeList(abc_type_objects.TypeList, osid_objects.OsidList): <NEW_LINE> <INDENT> def get_next_type(self): <NEW_LINE> <INDENT> return self.next() <NEW_LINE> <DEDENT> def next(self): <NEW_LINE> <INDENT> from .primitives import Type <NEW_LINE> return self._get_next_object(Type) <NEW_LINE> <DEDENT> next_type = propert... | Like all ``OsidLists,`` ``TypeList`` provides a means for accessing ``Type`` elements sequentially either one at
a time
or many at a time.
Examples: while (tl.hasNext()) { Type type = tl.getNextType(); }
or
while (tl.hasNext()) {
Type[] types = tl.getNextTypes(tl.available());
} | 62599066b7558d5895464ae5 |
class WriteDescriptorTests(SynchronousTestCase): <NEW_LINE> <INDENT> def test_kernelBufferFull(self): <NEW_LINE> <INDENT> descriptor = MemoryFile() <NEW_LINE> descriptor.write(b"hello, world") <NEW_LINE> self.assertIs(None, descriptor.doWrite()) | Tests for L{FileDescriptor}'s implementation of L{IWriteDescriptor}. | 6259906699fddb7c1ca63985 |
class ConvBertTokenizer(BertTokenizer): <NEW_LINE> <INDENT> vocab_files_names = VOCAB_FILES_NAMES <NEW_LINE> pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP <NEW_LINE> max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES <NEW_LINE> pretrained_init_configuration = PRETRAINED_INIT_CONFIGURATION | Construct a ConvBERT tokenizer. :class:`~transformers.ConvBertTokenizer` is identical to
:class:`~transformers.BertTokenizer` and runs end-to-end tokenization: punctuation splitting and wordpiece. Refer
to superclass :class:`~transformers.BertTokenizer` for usage examples and documentation concerning parameters. | 625990668e7ae83300eea7fa |
class UsersModuleError(AppError): <NEW_LINE> <INDENT> message = "Erro do serviço de usuários" | Base users module error | 625990669c8ee82313040d3e |
class Maze(object): <NEW_LINE> <INDENT> def __init__(self, maze_lines): <NEW_LINE> <INDENT> self.height = len(maze_lines) <NEW_LINE> self.width = len(maze_lines[0]) <NEW_LINE> self.maze_lines = maze_lines.copy() <NEW_LINE> for m in self.maze_lines: <NEW_LINE> <INDENT> assert len(m) == self.width, "Maze line wasn't the ... | Class holding the maze data. Mazes are described as a list of strings (from top to bottom)
containing the characters '#' for walls, '0' to '9' for points to visit (and zero the start
position), and any other character meaning that block is accessible. | 62599066d486a94d0ba2d72b |
class Region(Base): <NEW_LINE> <INDENT> name_std = models.CharField(max_length=200) <NEW_LINE> country = models.ForeignKey(Country, related_name="regions", on_delete = models.CASCADE) <NEW_LINE> geoname_code = models.CharField(max_length=50, null=True, blank=True, db_index=True) <NEW_LINE> is_subregion = models.Boolean... | Region/State model.
Can search regions or subregions with some helpers
methods introduced to related manager.
Examples::
>>> c = Country.objects.get(code2="ES")
>>> c.regions.only_subregions()
[<Region: Ceuta>, <Region: Melilla>, <Region: Murcia>, <Region: Provincia de Castello>, '...']
>>> c.regions.only_regions()... | 62599066cc0a2c111447c686 |
class ResponseContainerPagedSavedSearch(object): <NEW_LINE> <INDENT> swagger_types = { 'response': 'PagedSavedSearch', 'status': 'ResponseStatus' } <NEW_LINE> attribute_map = { 'response': 'response', 'status': 'status' } <NEW_LINE> def __init__(self, response=None, status=None, _configuration=None): <NEW_LINE> <INDENT... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62599066f548e778e596ccf7 |
class AbstractRewriter(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def __init__(self, nodes, params): <NEW_LINE> <INDENT> self.nodes = nodes <NEW_LINE> self.params = params <NEW_LINE> self.timings = OrderedDict() <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> state = State(self.nodes) <N... | Transform Iteration/Expression trees to generate high performance C.
This is just an abstract class. Actual transformers should implement the
abstract method ``_pipeline``, which performs a sequence of AST transformations. | 625990661f037a2d8b9e5421 |
class MainPage(webapp2.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> params = parse_params(self.request) <NEW_LINE> template = JINJA_ENVIRONMENT.get_template('index.html') <NEW_LINE> image_url = '/zombies/draw_simulation?{}'.format(urllib.urlencode(params)) <NEW_LINE> params['image_url'] = ima... | A handler for showing the simulator form. | 62599066a8370b77170f1b3c |
class ValidationError(object): <NEW_LINE> <INDENT> def __init__(self, obj, msg, type='error'): <NEW_LINE> <INDENT> self.obj = obj <NEW_LINE> self.msg = msg <NEW_LINE> self.type = type <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_warning(self): <NEW_LINE> <INDENT> return self.type == 'warning' <NEW_LINE> <DEDENT> @pr... | Represents an error found in the validation process
The error is bound to an odML-object (*obj*) or a list of those
and contains a message and a type which may be one of:
'error', 'warning', 'info' | 625990667b25080760ed8898 |
class TestGameplay: <NEW_LINE> <INDENT> def _run_gameplay_test(self, moves, result): <NEW_LINE> <INDENT> game = Game() <NEW_LINE> game.reset() <NEW_LINE> for move in moves: <NEW_LINE> <INDENT> move_made = game.move(move) <NEW_LINE> assert move_made <NEW_LINE> <DEDENT> assert game.game_over() <NEW_LINE> assert game.resu... | The class contains tests running through entire games.
The purpose of this test class is to check that macro functionality, such as
moving, promotion, taking, stalemates etc. works in practice. | 62599066ac7a0e7691f73c53 |
class CapturedTrace: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.buffer = StringIO() <NEW_LINE> self.handler = logging.StreamHandler(self.buffer) <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self._handlers = logger.handlers <NEW_LINE> self.buffer = StringIO() <NEW_LINE> logger.handl... | Capture the trace temporarily for validation. | 625990663539df3088ecda0c |
class PlantVillage(tfds.core.GeneratorBasedBuilder): <NEW_LINE> <INDENT> VERSION = tfds.core.Version("1.0.0") <NEW_LINE> def _info(self): <NEW_LINE> <INDENT> return tfds.core.DatasetInfo( builder=self, description=_DESCRIPTION, features=tfds.features.FeaturesDict({ "image": tfds.features.Image(), "image/filename": tfds... | The PlantVillage dataset of healthy and unhealthy leaves. | 62599066009cb60464d02ca6 |
class ClusterTestThingy(Test): <NEW_LINE> <INDENT> @cluster(num_nodes=10) <NEW_LINE> def test_bad_num_nodes(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @cluster(num_nodes=0) <NEW_LINE> def test_good_num_nodes(self): <NEW_LINE> <INDENT> pass | Fake ducktape test class | 625990663317a56b869bf0f9 |
class InstanceNorm1d(torch.nn.InstanceNorm1d): <NEW_LINE> <INDENT> def __init__(self, num_features, weight, bias, scale, zero_point, eps=1e-5, momentum=0.1, affine=False, track_running_stats=False): <NEW_LINE> <INDENT> super(InstanceNorm1d, self).__init__( num_features, eps, momentum, affine, track_running_stats) <NEW_... | This is the quantized version of :class:`~torch.nn.InstanceNorm1d`.
Additional args:
* **scale** - quantization scale of the output, type: double.
* **zero_point** - quantization zero point of the output, type: long. | 625990667047854f46340b22 |
class EchoWithData(base_tests.SimpleProtocol): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> logging.info("Running EchoWithData test") <NEW_LINE> logging.info("Sending Echo With Data ...") <NEW_LINE> request = ofp.message.echo_request() <NEW_LINE> request.data = 'OpenFlow Will Rule The World' <NEW_LINE> se... | Verify if OFPT_ECHO_REQUEST has data field,
switch responds back with OFPT_ECHO_REPLY with data field copied into it. | 625990665fdd1c0f98e5f6f2 |
class RequestBody: <NEW_LINE> <INDENT> def __init__(self, name: str) -> None: <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def to_request(self) -> Dict[str, Any]: <NEW_LINE> <INDENT> return request(self.name) | Base class for RPC request data. | 625990667d847024c075db46 |
class SEMScaleBar(WorkingScaleBar): <NEW_LINE> <INDENT> ref_width = 114e-3 <NEW_LINE> def __init__(self, mag=0, num_px=128, width=5, brush=None, pen=None, offset=None): <NEW_LINE> <INDENT> frame_size = self.ref_width/mag <NEW_LINE> val = frame_size/5 <NEW_LINE> ord = math.log10(val) <NEW_LINE> val = 10**math.floor(ord)... | pyqtgraph.ScaleBar which scales properly and chooses a bar size based on
a given image size and magnification.
See https://github.com/pyqtgraph/pyqtgraph/issues/437 for details on the
scaling problem with pyqtgraph.ScaleBar. Credit to user sjmvm for the
solution.
Attributes:
ref_width (float): Size in meters of t... | 625990666e29344779b01dbe |
class DuplicateKeyError(BuildCacheBaseException): <NEW_LINE> <INDENT> def __init__(self, fromFile, lineNo, keyType, keyValue, prevLineNo): <NEW_LINE> <INDENT> super().__init__(fromFile, lineNo, "Second occurrance of {keytype} \"{keyval}\", " "previous entry at line {prev}.".format( keytype=keyType, keyval=keyValue, pre... | Raised when an item is being redefined. | 62599066fff4ab517ebcef89 |
class CondaEnvExistsError(CondaError): <NEW_LINE> <INDENT> pass | Conda environment already exists | 625990669c8ee82313040d3f |
class rwalk(): <NEW_LINE> <INDENT> def __init__(self,steps,walkers): <NEW_LINE> <INDENT> self.steps=steps <NEW_LINE> self.walkers=walkers <NEW_LINE> self.x=np.zeros(int(self.steps)) <NEW_LINE> self.t=np.linspace(-self.steps,self.steps,2*self.steps+1) <NEW_LINE> self.x2=[[0]*(2*self.steps+1) for i in range(2)] <NEW_LINE... | random-walker distributions in one dimension | 6259906676e4537e8c3f0cf1 |
class rule_file_seq_equal(rule_seq_match): <NEW_LINE> <INDENT> def __init__(self, line, text): <NEW_LINE> <INDENT> rule_seq_match.__init__(self, line, re.escape(text)) <NEW_LINE> <DEDENT> def runs_to_redact(self, fi): <NEW_LINE> <INDENT> return fi.byte_runs() | Redacts any file containing a sequence the equals the given string | 625990660c0af96317c57916 |
class InvalidThirdPositionLetterValidationError(PostcodeValidationError): <NEW_LINE> <INDENT> pass | Given postcode third position letter is invalid | 6259906691f36d47f2231a46 |
class EnquiryRequestor(BaseContent): <NEW_LINE> <INDENT> security = ClassSecurityInfo() <NEW_LINE> implements(IEnquiryRequestor) <NEW_LINE> archetype_name = 'EnquiryRequestor' <NEW_LINE> meta_type = 'EnquiryRequestor' <NEW_LINE> portal_type = 'EnquiryRequestor' <NEW_LINE> allowed_content_types = [] <NEW_LINE> filter_co... | Requestor
| 62599066a219f33f346c7f75 |
class GoogleSearch: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.base = 'https://www.google.com.br/search?q=' <NEW_LINE> self.mode = "&sorce=lmns" <NEW_LINE> self.soup = None <NEW_LINE> self.__limit = 3 <NEW_LINE> <DEDENT> def search(self, text): <NEW_LINE> <INDENT> snippets = [] <NEW_LINE> try: <NE... | Class to make searchs on Google and get some results in the first page. | 62599066d268445f2663a714 |
class ArticleRevision(BaseRevisionMixin, models.Model): <NEW_LINE> <INDENT> article = models.ForeignKey('Article', on_delete=models.CASCADE, verbose_name=_(u'article')) <NEW_LINE> content = models.TextField(blank=True, verbose_name=_(u'article contents')) <NEW_LINE> title = models.CharField( max_length=512, verbose_nam... | This is where main revision data is stored. To make it easier to
copy, do NEVER create m2m relationships. | 62599066d7e4931a7ef3d73d |
class IndexExpression(object): <NEW_LINE> <INDENT> openapi_types = { 'type': 'str', 'array': 'Expression', 'index': 'Expression' } <NEW_LINE> attribute_map = { 'type': 'type', 'array': 'array', 'index': 'index' } <NEW_LINE> def __init__(self, type=None, array=None, index=None): <NEW_LINE> <INDENT> self._type = None <NE... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 625990661f037a2d8b9e5422 |
class Uninterrupt: <NEW_LINE> <INDENT> def __init__(self, sigs=(signal.SIGINT, signal.SIGTERM), verbose=False): <NEW_LINE> <INDENT> self.sigs = sigs <NEW_LINE> self.verbose = verbose <NEW_LINE> self.interrupted = False <NEW_LINE> self.orig_handlers = None <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> if ... | Context manager to gracefully handle interrupts.
Use as:
with Uninterrupt() as u:
while not u.interrupted:
# train | 6259906676e4537e8c3f0cf2 |
class AuthenticateApiHandlerTests(VideoXBlockTestBase): <NEW_LINE> <INDENT> @patch.object(VideoXBlock, 'authenticate_video_api') <NEW_LINE> def test_auth_video_api_handler_delegates_call(self, auth_video_api_mock): <NEW_LINE> <INDENT> request_mock = arrange_request_mock('"test-token-123"') <NEW_LINE> auth_video_api_moc... | Test cases for `VideoXBlock.authenticate_video_api_handler`. | 6259906699cbb53fe6832653 |
class UNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self, num_channels: int=3, num_classes: int=2): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.num_channels = num_channels <NEW_LINE> self.num_classes = num_classes <NEW_LINE> self.in_conv = nn.Sequential( ConvBlock(num_channels, 64), ConvBlock(64, 64) ) <... | The U-Net architecture.
See https://arxiv.org/pdf/1505.04597.pdf | 6259906671ff763f4b5e8f14 |
class DisambiguationTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = Client() <NEW_LINE> self.a = Space.objects.create(name='a', slug='a') <NEW_LINE> self.b = Space.objects.create(name='b', slug='b') <NEW_LINE> Property.objects.create(name='a', slug='a') <NEW_LINE> self.c = Propert... | Tests that the slug disambiguation view works. Note that (by necessity)
ambiguous urls won't be produced by reversing, so this test assumes
that brubeck urls are set up under '/brubeck/' | 625990663539df3088ecda0e |
class Error(Model): <NEW_LINE> <INDENT> _validation = { 'code': {'required': True}, 'sub_code': {'readonly': True}, 'message': {'required': True}, 'more_details': {'readonly': True}, 'parameter': {'readonly': True}, 'value': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'su... | Defines the error that occurred.
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 code: Required. The error code that identifies the category of
error. Possible values include: 'None', 'ServerError', '... | 625990667047854f46340b24 |
class AssignChore(APIView): <NEW_LINE> <INDENT> permission_classes = (permissions.IsAuthenticated, IsAccountActivated) <NEW_LINE> def get_object(self, pk): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return Chore.objects.get(pk=pk) <NEW_LINE> <DEDENT> except Chore.DoesNotExist: <NEW_LINE> <INDENT> raise Http404 <NEW_L... | Assign a Chore | 625990665fdd1c0f98e5f6f4 |
class TestCrossBox(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.rectangle = Mock(x=1, y=2, width=3, height=4) <NEW_LINE> self.expected_vertices = ( 1, 2, 4, 2, 1, 2, 1, 6, 4, 2, 1, 6, 1, 6, 4, 6, 4, 6, 1, 2, 4, 6, 4, 2) <NEW_LINE> self.vertex_count = (len(self.expected_vertices) // ... | Test rendering of cross box graphics. | 625990667d43ff2487427fc8 |
class TauClient(Tau): <NEW_LINE> <INDENT> def __init__(self, host='localhost', port=6283): <NEW_LINE> <INDENT> self._backend = ServerBackend(host, port) | Shortcut for Tau(ServerBackend(...)). | 6259906656b00c62f0fb403d |
class TaskFinished: <NEW_LINE> <INDENT> def __init__(self, request: Request, task: WebsaunaTask): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> self.task = task | This task is fired when a Celery task finishes regardless if the task failed or not.
Intended to be used to clean up thread current context sensitive data.
This is called before ``request._process_finished_callbacks()`` is called. This is **not** called when tasks are executed eagerly. | 62599066627d3e7fe0e085fa |
class Me(Item): <NEW_LINE> <INDENT> def __call__(self, **kwargs): <NEW_LINE> <INDENT> return self.get(**kwargs) <NEW_LINE> <DEDENT> URL = Item.prepare_url('me') <NEW_LINE> def get(self, **kwargs): <NEW_LINE> <INDENT> kwargs['url'] = self.URL <NEW_LINE> return self.transport.set_method("GET").request(**kwargs) | Get private information
Required scope - "private_data"|"private_data_email"|"private_data_phone" | 6259906644b2445a339b7518 |
@tvm._ffi.register_object("auto_scheduler.ProgramBuilder") <NEW_LINE> class ProgramBuilder(Object): <NEW_LINE> <INDENT> def build(self, measure_inputs, verbose=1): <NEW_LINE> <INDENT> return _ffi_api.ProgramBuilderBuild(self, measure_inputs, verbose) | The base class of ProgramBuilders. | 625990668e7ae83300eea7ff |
class EquipmentManagerBase: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def getPossibleEquipment(): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def setPossibleEquipment( equipmentList ): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def insertEquipment( equipmentName )... | Generic equipment manager, Data Access Layer independant.
It manages the list of rooms' possible equipment.
Equipment is just a string.
The list of possible equipment is defined by CRBS admin.
This list is used mainly for generating user web interface.
(System must know, what equipment user may ask for to generate [... | 62599066462c4b4f79dbd177 |
class FCLSTMDeterministicPolicy(ContinuousDeterministicPolicy): <NEW_LINE> <INDENT> def __init__(self, n_input_channels, n_hidden_layers, n_hidden_channels, action_size, min_action=None, max_action=None, bound_action=True, nonlinearity=F.relu, last_wscale=1.): <NEW_LINE> <INDENT> self.n_input_channels = n_input_channel... | Fully-connected deterministic policy with LSTM.
Args:
n_input_channels (int): Number of input channels.
n_hidden_layers (int): Number of hidden layers.
n_hidden_channels (int): Number of hidden channels.
action_size (int): Size of actions.
min_action (ndarray or None): Minimum action. Used only if ... | 6259906632920d7e50bc77b7 |
class StudentTestCases(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.Student = std.Student('Bob', 'Billy', 'Billy bobbing', 4.0) <NEW_LINE> <DEDENT> '''Method to delete a test object''' <NEW_LINE> def tearDown(self): <NEW_LINE> <INDENT> del self.Student <NEW_LINE> <DEDENT> '''Test to... | Method to set up a test object | 62599066fff4ab517ebcef8c |
class BlankPageSet(page_set_module.PageSet): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(BlankPageSet, self).__init__() <NEW_LINE> self.AddPage(BlankPage('file://blank_page/blank_page.html', self)) | A single blank page. | 62599066e76e3b2f99fda171 |
class LALR(LR0): <NEW_LINE> <INDENT> def __init__(self, sym_production, alternative, position): <NEW_LINE> <INDENT> LR0.__init__(self, sym_production, alternative, position) <NEW_LINE> self.lookaheads = set() <NEW_LINE> self.new_lookaheads = set() <NEW_LINE> self.subscribeds = set() <NEW_LINE> <DEDENT> def close(self):... | See __init__ | 625990664428ac0f6e659ca3 |
@dataclass_json <NEW_LINE> @dataclass <NEW_LINE> class ImportProduct(Product): <NEW_LINE> <INDENT> mirror_from: Optional[Url] = None <NEW_LINE> base_iris: Optional[List[str]] = None <NEW_LINE> is_large: bool = False <NEW_LINE> module_type : Optional[str] = None <NEW_LINE> module_type_slme : str = "BOT" <NEW_LINE> annot... | Represents an individual import
Examples: 'uberon' (in go)
Imports are typically built from an upstream source, but this can be configured | 62599066a17c0f6771d5d75f |
@ddt.ddt <NEW_LINE> class CourseBlocksSignalTest(ModuleStoreTestCase): <NEW_LINE> <INDENT> ENABLED_SIGNALS = ['course_deleted', 'course_published'] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(CourseBlocksSignalTest, self).setUp() <NEW_LINE> self.course = CourseFactory.create() <NEW_LINE> self.course_usage_key... | Tests for the Course Blocks signal | 625990662ae34c7f260ac859 |
class SingleComponentResponseOfDestinyInventoryComponent(object): <NEW_LINE> <INDENT> swagger_types = { 'data': 'ComponentsschemasDestinyEntitiesInventoryDestinyInventoryComponent', 'privacy': 'ComponentsschemasComponentsComponentPrivacySetting' } <NEW_LINE> attribute_map = { 'data': 'data', 'privacy': 'privacy' } <NEW... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62599066aad79263cf42ff2a |
class TimeFilter(WebFilter): <NEW_LINE> <INDENT> SECONDS_MARGIN = 30 <NEW_LINE> def filter_response_params(self, params): <NEW_LINE> <INDENT> http_date = params.get('Date') <NEW_LINE> if http_date: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> host_time = datetime.fromtimestamp( email.utils.mktime_tz( email.utils.parsed... | Track time as reported by http servers.
When the time is significantly off, it may indicate packet staining. | 6259906644b2445a339b7519 |
class TestClient(object): <NEW_LINE> <INDENT> def __init__(self, host, port): <NEW_LINE> <INDENT> self.conn = http.client.HTTPConnection(host, port) <NEW_LINE> <DEDENT> def query(self, url, method='GET', params=None, headers={}): <NEW_LINE> <INDENT> if params: <NEW_LINE> <INDENT> params = urllib.parse.urlencode(params)... | Helper to make request to the rainfall app.
Created automatically by RainfallTestCase. | 62599066fff4ab517ebcef8d |
class UndirectedNode(_Node): <NEW_LINE> <INDENT> def __init__(self, g): <NEW_LINE> <INDENT> super().__init__(g) <NEW_LINE> self.__edges = {} <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return self.nb_neighbors <NEW_LINE> <DEDENT> @property <NEW_LINE> def nb_neighbors(self): <NEW_LINE> <INDENT> return len... | Vertice (or node) of an undirected graph.
This class represents any node of an undirected graph. This class should not be manually instantiated. Use
the method `UndirectedGraph.add_node` instead. Otherwise an unexpected behaviour may occurs.
With this class, it is possible to access to all the incident edges and to t... | 625990668e7ae83300eea800 |
class Package(Command): <NEW_LINE> <INDENT> description = "Run wheels for dependencies and submodules dependencies" <NEW_LINE> user_options = [] <NEW_LINE> def __init__(self, dist): <NEW_LINE> <INDENT> Command.__init__(self, dist) <NEW_LINE> <DEDENT> def initialize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DE... | Package Code and Dependencies into wheelhouse | 625990668da39b475be0495c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.