code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TestRead(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.test_dir = os.path.dirname(__file__) <NEW_LINE> <DEDENT> def test_normalized_intensities(self): <NEW_LINE> <INDENT> for root, dirs, files in os.walk(os.path.join(self.test_dir, 'files')): <NEW_LINE> <INDENT> for filename in...
Test basic reading of binary files
6259904807f4c71912bb07c4
class HumanPlayer(Player): <NEW_LINE> <INDENT> def __init__(self, state_dim, action_dim): <NEW_LINE> <INDENT> super().__init__(state_dim, action_dim) <NEW_LINE> <DEDENT> def act(self, state): <NEW_LINE> <INDENT> action = input('Enter action: ') <NEW_LINE> action = int(action) <NEW_LINE> action -= 1 <NEW_LINE> if action...
This class implements Player abstract class such that it allows human user to make a desired action using console input
625990488da39b475be04582
class C2600(Router): <NEW_LINE> <INDENT> chassis_to_default_adapter = {"2610": "C2600-MB-1E", "2611": "C2600-MB-2E", "2620": "C2600-MB-1FE", "2621": "C2600-MB-2FE", "2610XM": "C2600-MB-1FE", "2611XM": "C2600-MB-2FE", "2620XM": "C2600-MB-1FE", "2621XM": "C2600-MB-2FE", "2650XM": "C2600-MB-1FE", "2651XM": "C2600-MB-2FE"}...
Dynamips c2600 router. :param module: parent module for this node :param server: GNS3 server instance
625990488a43f66fc4bf3527
class OUNoise: <NEW_LINE> <INDENT> def __init__(self, size, seed, mu=0., theta=0.15, sigma=0.2, wiener_random=False): <NEW_LINE> <INDENT> self.mu = mu * np.ones(size) <NEW_LINE> self.theta = theta <NEW_LINE> self.sigma = sigma <NEW_LINE> self.seed = random.seed(seed) <NEW_LINE> self.wiener_random = wiener_random <NEW_L...
Ornstein-Uhlenbeck process.
6259904845492302aabfd864
class TypeSpecificPartType8(KaitaiStruct): <NEW_LINE> <INDENT> SEQ_FIELDS = ["working_buffer_fractional_size", "expansion_buffer_size", "decompressor_id", "reserved"] <NEW_LINE> def __init__(self, _io, _parent=None, _root=None): <NEW_LINE> <INDENT> self._io = _io <NEW_LINE> self._parent = _parent <NEW_LINE> self._root ...
The type-specific part of a compressed resource header with header type `8`.
6259904863b5f9789fe864ff
class HighBandwidthReader(ReaderModule): <NEW_LINE> <INDENT> def custom_args(self, parser): <NEW_LINE> <INDENT> grp = parser.add_argument_group("module", "module specific arguments") <NEW_LINE> grp.add_argument("--rate", type=float, required=True, help="sample rate in Hz") <NEW_LINE> <DEDENT> async def run(self, parsed...
Produce a 1Hz ramp sampled at [rate] Hz
62599048379a373c97d9a3bd
class TestRemoveDiagonalGatesBeforeMeasureFixedPoint(QiskitTestCase): <NEW_LINE> <INDENT> def test_optimize_rz_z(self): <NEW_LINE> <INDENT> qr = QuantumRegister(1, 'qr') <NEW_LINE> cr = ClassicalRegister(1, 'cr') <NEW_LINE> circuit = QuantumCircuit(qr, cr) <NEW_LINE> circuit.rz(0.1, qr[0]) <NEW_LINE> circuit.z(qr[0]) <...
Test remove_diagonal_gates_before_measure optimizations in a transpiler, using fixed point.
62599048dc8b845886d5494e
class DetailedLogWriterFirstStage(FirstStageBaseEventClass): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> FirstStageBaseEventClass.__init__(self, *args, **kwargs) <NEW_LINE> self.task_function = self.process_event <NEW_LINE> <DEDENT> def process_event(self): <NEW_LINE> <INDENT> try: <NEW...
Standard detailed log writer, first stage. Grabs keyboard events, finds the process name and username, then passes the event on to the second stage.
6259904894891a1f408ba0bf
class JDSSResourceIsBusyException(JDSSException): <NEW_LINE> <INDENT> message = _("JDSS resource %(res)s is busy.")
Resource have dependents
6259904871ff763f4b5e8b37
class PointOfInterestManageListView(LoginRequiredMixin, OwnerMixin, ListView): <NEW_LINE> <INDENT> model = PointOfInterest <NEW_LINE> template_name = "dashboard/poi_list.html" <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return self.request.user.profile.fetch_points_of_interests()
The view of a list of the user's points of interest.
6259904830c21e258be99b99
class IElemNode(IElem, IElemNameMixin): <NEW_LINE> <INDENT> def __init__(self, elem, parent=None): <NEW_LINE> <INDENT> super(IElemNode, self).__init__(elem, parent) <NEW_LINE> self.child_nodes = [ c for c in self.child_elements if isinstance(c, IElemNode)]
Introspection node.
625990486fece00bbacccd4a
class CIFARNIN(Chain): <NEW_LINE> <INDENT> def __init__(self, channels, first_ksizes, in_channels=3, in_size=(32, 32), classes=10): <NEW_LINE> <INDENT> super(CIFARNIN, self).__init__() <NEW_LINE> self.in_size = in_size <NEW_LINE> self.classes = classes <NEW_LINE> with self.init_scope(): <NEW_LINE> <INDENT> self.feature...
NIN model for CIFAR from 'Network In Network,' https://arxiv.org/abs/1312.4400. Parameters: ---------- channels : list of list of int Number of output channels for each unit. first_ksizes : list of int Convolution window sizes for the first units in each stage. in_channels : int, default 3 Number of input ...
62599048596a897236128f79
class DataSet(DataObject): <NEW_LINE> <INDENT> def GetPointData(self): <NEW_LINE> <INDENT> return self.GetAttributes(ArrayAssociation.POINT) <NEW_LINE> <DEDENT> def GetCellData(self): <NEW_LINE> <INDENT> return self.GetAttributes(ArrayAssociation.CELL) <NEW_LINE> <DEDENT> PointData = property(GetPointData, None, None, ...
This is a python friendly wrapper of a vtkDataSet that defines a few useful properties.
6259904826238365f5fadef0
class TargetPagesMissing(WikiTransferException): <NEW_LINE> <INDENT> pass
Thrown if no page range has been specified to operate on.
62599048e64d504609df9d9a
class TimedeltaProperties(Properties): <NEW_LINE> <INDENT> def to_pytimedelta(self): <NEW_LINE> <INDENT> return self.values.to_pytimedelta() <NEW_LINE> <DEDENT> @property <NEW_LINE> def components(self): <NEW_LINE> <INDENT> return self.values.components.set_index(self.index)
Accessor object for datetimelike properties of the Series values. Examples -------- >>> s.dt.hours >>> s.dt.seconds Returns a Series indexed like the original Series. Raises TypeError if the Series does not contain datetimelike values.
6259904815baa72349463325
class ParseGames(object): <NEW_LINE> <INDENT> def __init__(self, file_name): <NEW_LINE> <INDENT> self.file_name = file_name <NEW_LINE> self.raw_games = self._split_games() <NEW_LINE> self.games = [ParseGame(game_pgn_text) for game_pgn_text in self.raw_games] <NEW_LINE> <DEDENT> def _split_games(self): <NEW_LINE> <INDEN...
This class parses PGN file that contains many games.
6259904845492302aabfd866
class OptionsFlowHandler(config_entries.OptionsFlow): <NEW_LINE> <INDENT> def __init__(self, config_entry: config_entries.ConfigEntry) -> None: <NEW_LINE> <INDENT> self.config_entry = config_entry <NEW_LINE> <DEDENT> async def async_step_init(self, user_input=None): <NEW_LINE> <INDENT> if user_input is not None: <NEW_L...
Handle a option flow for Subaru.
6259904891af0d3eaad3b1b9
class ReplayExceptionClient(object): <NEW_LINE> <INDENT> def __init__(self, client): <NEW_LINE> <INDENT> self.client = client <NEW_LINE> self.client.extensions['exceptions'] = self <NEW_LINE> self.client.recreate_error_locally = self.recreate_error_locally <NEW_LINE> self.client._recreate_error_locally = self._recreate...
A plugin for the client allowing replay of remote exceptions locally Adds the following methods (and their async variants)to the given client: - ``recreate_error_locally``: main user method - ``get_futures_error``: gets the task, its details and dependencies, responsible for failure of the given future.
62599048ec188e330fdf9c31
class Land(): <NEW_LINE> <INDENT> def __init__(self, name, kontinent, pos1, pos2, pos3, pos4, pos5): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.kontinent = kontinent <NEW_LINE> self.pos1 = pos1 <NEW_LINE> self.pos2 = pos2 <NEW_LINE> self.pos3 = pos3 <NEW_LINE> self.pos4 = pos4 <NEW_LI...
Konstruktor: Name, Kontinent
62599048379a373c97d9a3bf
class NumberWords: <NEW_LINE> <INDENT> _WORD_MAP = ( 'one', 'two', 'three', 'four', 'five', ) <NEW_LINE> def __init__(self, start, stop): <NEW_LINE> <INDENT> self.start = start <NEW_LINE> self.stop = stop <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def __next__(self): <NE...
Counts by word numbers, up to a maximum of five
62599048711fe17d825e1668
class NVVM(object): <NEW_LINE> <INDENT> _PROTOTYPES = { 'nvvmVersion': (nvvm_result, POINTER(c_int), POINTER(c_int)), 'nvvmCreateProgram': (nvvm_result, POINTER(nvvm_program)), 'nvvmDestroyProgram': (nvvm_result, POINTER(nvvm_program)), 'nvvmAddModuleToProgram': ( nvvm_result, nvvm_program, c_char_p, c_size_t, c_char_p...
Process-wide singleton.
62599048dc8b845886d54950
class TestTankisNitrox32_2(TestTank): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.mytank = Tank(f_o2=0.32, max_ppo2=1.4) <NEW_LINE> <DEDENT> def test_name(self): <NEW_LINE> <INDENT> assert str(self.mytank) == 'Nitrox 32' <NEW_LINE> <DEDENT> def test_mod(self): <NEW_LINE> <IN...
Test Nitrox32 Tank Z.
62599048b57a9660fecd2e11
class ZophBackupRestore(BackupRestore): <NEW_LINE> <INDENT> def backup_pre(self, packet): <NEW_LINE> <INDENT> actions.superuser_run('zoph', ['dump-database']) <NEW_LINE> <DEDENT> def restore_post(self, packet): <NEW_LINE> <INDENT> actions.superuser_run('zoph', ['restore-database'])
Component to backup/restore Zoph database
6259904810dbd63aa1c71f70
class ChannelSparseConvLayer(niftynet.layer.convolution.ConvLayer): <NEW_LINE> <INDENT> def __init__(self,*args,**kwargs): <NEW_LINE> <INDENT> super(ChannelSparseConvLayer,self).__init__(*args,**kwargs) <NEW_LINE> <DEDENT> def layer_op(self,input_tensor,input_mask,output_mask): <NEW_LINE> <INDENT> sparse_input_shape = ...
Channel sparse convolutions perform convolulations over a subset of image channels and generate a subset of output channels. This enables spatial dropout without wasted computations
6259904830c21e258be99b9b
class Channel(NamedTuple): <NEW_LINE> <INDENT> name: str <NEW_LINE> delivery_system: str <NEW_LINE> frequency: int <NEW_LINE> symbol_rate: int <NEW_LINE> inner_fec: str <NEW_LINE> modulation: str <NEW_LINE> inversion: str
A dvb channel config object
625990481f5feb6acb163f8a
class MinimaxAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> def miniMax(state, index, depth): <NEW_LINE> <INDENT> if depth == 1 or len(state.getLegalActions(index)) == 0: <NEW_LINE> <INDENT> return scoreEvaluationFunction(state), None <NEW_LINE> <DEDENT> actions = ...
Your minimax agent (problem 1)
62599048d10714528d69f058
class CompositeCollection(object, IList, ICollection, IEnumerable, INotifyCollectionChanged, ICollectionViewFactory, IWeakEventListener): <NEW_LINE> <INDENT> def Add(self, newItem): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def add_CollectionChanged(self, *args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Clea...
Enables multiple collections and items to be displayed as a single list. CompositeCollection() CompositeCollection(capacity: int)
62599048009cb60464d028ca
class Embed: <NEW_LINE> <INDENT> __slots__ = ( "color", "title", "url", "author", "description", "fields", "image", "thumbnail", "footer", "timestamp", ) <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.color = kwargs.get("color") <NEW_LINE> self.title = kwargs.get("title") <NEW_LINE> self.url = kwargs...
Class that represents a discord embed. Parameters ----------- \*\*title: str, optional Defaults to :class:`None`. The title of the embed. \*\*description: str, optional Defaults to :class:`None`. The description of the embed. \*\*url: str, optional URL of the embed. It requires :attr:`title` to b...
6259904807d97122c4218038
class GlslBlockInOutStruct(GlslBlockInOut): <NEW_LINE> <INDENT> def __init__(self, layout, inout, type_name, members, name, size=0): <NEW_LINE> <INDENT> GlslBlockInOut.__init__(self, layout, inout) <NEW_LINE> self.__type_name = type_name <NEW_LINE> self.__members = members <NEW_LINE> self.__name = name <NEW_LINE> self....
Input (attribute / varying) struct declaration block.
62599048507cdc57c63a6133
class RankEnvironment(Environment): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self, hyperparams): <NEW_LINE> <INDENT> super(RankEnvironment, self).__init__(hyperparams) <NEW_LINE> return <NEW_LINE> <DEDENT> def transit(self, state, action): <NEW_LINE> <INDENT> t = state[0] <NEW_LINE> Xt = stat...
Rank Environment superclass.
6259904873bcbd0ca4bcb623
class APIAssert(BaseModel): <NEW_LINE> <INDENT> assert_choice = ( ("json","json"), ("status_code","status_code"), ("reg","reg"), ("contains","contains"), ) <NEW_LINE> api = models.ForeignKey(API, on_delete=models.CASCADE, verbose_name='接口', related_name="api_assert") <NEW_LINE> case = models.ForeignKey(TestCase, on_del...
断言
6259904821a7993f00c672ff
class FCBNQuadraticStateQFunction(chainer.Chain, StateQFunction): <NEW_LINE> <INDENT> def __init__(self, n_input_channels, n_dim_action, n_hidden_channels, n_hidden_layers, action_space, scale_mu=True, normalize_input=True): <NEW_LINE> <INDENT> self.n_input_channels = n_input_channels <NEW_LINE> self.n_hidden_layers = ...
Fully-connected state-input continuous Q-function. Args: n_input_channels: number of input channels n_dim_action: number of dimensions of action space n_hidden_channels: number of hidden channels n_hidden_layers: number of hidden layers action_space: action_space scale_mu (bool): scale mu by ap...
62599048a8ecb033258725a8
class PublishCommand(Command): <NEW_LINE> <INDENT> description = 'Build and publish the package.' <NEW_LINE> user_options = [] <NEW_LINE> @staticmethod <NEW_LINE> def status(s): <NEW_LINE> <INDENT> print('\033[1m{0}\033[0m'.format(s)) <NEW_LINE> <DEDENT> def initialize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE>...
Support setup.py publish.
625990488a43f66fc4bf352b
class TestPaymentMethodsResponse(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 testPaymentMethodsResponse(self): <NEW_LINE> <INDENT> model = kinow_client.models.payment_methods_response.PaymentMe...
PaymentMethodsResponse unit test stubs
6259904863b5f9789fe86503
class TopicCreateHandler(BaseHandler): <NEW_LINE> <INDENT> def post(self, category_id): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> topic = self.get_argument("create") <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> self.render("error.html",message="题目不能为空") <NEW_LINE> <DEDENT> topicdao = TopicDao() <NEW_LINE> try: <N...
arguments - 所有的 GET 或 POST 的参数,字典类型,self.request.arguments.get(name, []) files - 所有通过 multipart/form-data POST 请求上传的文件 path - 请求的路径( ? 之前的所有内容) headers - 请求的开头信息
62599048711fe17d825e1669
class HTTPServer(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.port = 19234 <NEW_LINE> tcp_server = socket.socket() <NEW_LINE> tcp_server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) <NEW_LINE> tcp_server.bind(("", self.port)) <NEW_LINE> tcp_server.listen(128) <NEW_LINE> print("服务器已...
HTTP 服务器类
62599048d6c5a102081e34b2
class MomentumIntegral(BaseTwoIndexSymmetric): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def construct_array_contraction(contractions_one, contractions_two): <NEW_LINE> <INDENT> if not isinstance(contractions_one, GeneralizedContractionShell): <NEW_LINE> <INDENT> raise TypeError("`contractions_one` must be a `Genera...
Class for obtaining the momentum integral. Attributes ---------- _axes_contractions : tuple of tuple of GeneralizedContractionShell Sets of contractions associated with each axis of the array. contractions : tuple of GeneralizedContractionShell Contractions that are associated with the first and second indices...
62599048b830903b9686ee46
class player(object): <NEW_LINE> <INDENT> name = '' <NEW_LINE> _account = 0 <NEW_LINE> _bet = {} <NEW_LINE> strategy = None <NEW_LINE> def __init__(self, player_name, player_account, player_strategy): <NEW_LINE> <INDENT> self.reset() <NEW_LINE> self.name = player_name <NEW_LINE> self._account = player_account <NEW_LINE...
Both play and croupier has a state play: betting, no more bets
6259904850485f2cf55dc31f
class MD5PasswordHasher(BasePasswordHasher): <NEW_LINE> <INDENT> algorithm = "md5" <NEW_LINE> @password_max_length(MAXIMUM_PASSWORD_LENGTH) <NEW_LINE> def encode(self, password, salt): <NEW_LINE> <INDENT> assert password is not None <NEW_LINE> assert salt and '$' not in salt <NEW_LINE> hash = hashlib.md5(force_bytes(sa...
The Salted MD5 password hashing algorithm (not recommended)
6259904876d4e153a661dc41
class CoordinateTransformer: <NEW_LINE> <INDENT> def __init__( self, angles_in_degrees=True, nexus_coords=None, origin=np.array([0.0, 0.0, 0.0]), ): <NEW_LINE> <INDENT> self.angles_in_degrees = angles_in_degrees <NEW_LINE> if nexus_coords is None: <NEW_LINE> <INDENT> nexus_coords = ["x", "y", "z"] <NEW_LINE> <DEDENT> s...
Transform between IDF and NeXus, units and coordinates
62599048462c4b4f79dbcd96
class TestValidateRelease(BasePyTestCase): <NEW_LINE> <INDENT> def test_invalid(self): <NEW_LINE> <INDENT> request = mock.Mock() <NEW_LINE> request.db = self.db <NEW_LINE> request.errors = Errors() <NEW_LINE> request.validated = {'release': 'invalid'} <NEW_LINE> validators.validate_release(request) <NEW_LINE> assert re...
Test the validate_release() function.
6259904873bcbd0ca4bcb624
class GroupBaseAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> save_on_top = True <NEW_LINE> search_fields = ['name', 'aliases__name', 'url', 'aliases__url'] <NEW_LINE> list_display = ['name', 'member_count', 'vouched_member_count'] <NEW_LINE> list_display_links = ['name'] <NEW_LINE> list_filter = [EmptyGroupFilter] <NEW_...
GroupBase Admin.
6259904829b78933be26aa8e
class Meta: <NEW_LINE> <INDENT> verbose_name = 'Project Master' <NEW_LINE> verbose_name_plural = 'Project Masters'
Metadata for class ProjectMaster
62599048d10714528d69f059
class CalendarDatePicker(FormField): <NEW_LINE> <INDENT> template = "tw2.forms.templates.calendar" <NEW_LINE> calendar_lang = twc.Param("Default Language to use in the Calendar", default='en') <NEW_LINE> not_empty = twc.Param("Allow this field to be empty", default=True) <NEW_LINE> button_text = twc.Param("Text to disp...
Uses a javascript calendar system to allow picking of calendar dates. The date_format is in mm/dd/yyyy unless otherwise specified
62599048d53ae8145f9197f8
class gitpostapplypatchinputparser(basegitinputparser): <NEW_LINE> <INDENT> def parse(self): <NEW_LINE> <INDENT> resolver = gitinforesolver() <NEW_LINE> return resolver
Input parser for the 'post-applypatch' phase Available fields: - reporoot (str) => root of the repo - head (str) => sha1 of HEAD
6259904807f4c71912bb07ca
class BaseFormat(object): <NEW_LINE> <INDENT> def __init__(self, width=100, pagesize=1000): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.pagesize = pagesize <NEW_LINE> <DEDENT> def write(self, results, ostream): <NEW_LINE> <INDENT> count = 0 <NEW_LINE> for result in results: <NEW_LINE> <INDENT> self.format(re...
Base class for formatters
6259904826238365f5fadef4
class TestReviewFileConversions(unittest.TestCase): <NEW_LINE> <INDENT> layer = RECENSIO_INTEGRATION_TESTING <NEW_LINE> level = 10 <NEW_LINE> def test_nothing(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def xxxtest_review_with_custom_pdf_files(self): <NEW_LINE> <INDENT> portal = self.layer["portal"] <NEW_LINE> ...
Test file conversions. Test the file conversions (Word/HTML->PDF) that take place when a Review is added or edited.
62599048d99f1b3c44d06a32
class IsOwnerOrAdmin(permissions.BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> if "user" in request.data: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user = User.objects.get(username=request.data["user"]) <NEW_LINE> return ( user == request.user or request.user.is_su...
Object-level permission to only allow owners of an object to edit it. Assumes the model instance has an `owner` attribute.
625990488a43f66fc4bf352d
class myPlot: <NEW_LINE> <INDENT> def __init__(self, ax, xlabel='', ylabel='', title='', legend=None): <NEW_LINE> <INDENT> self.legend = legend <NEW_LINE> self.ax = ax <NEW_LINE> self.colors = ['b', 'g', 'r', 'c', 'm', 'y', 'b'] <NEW_LINE> self.line_styles = ['-', '-', '--', '-.', ':'] <NEW_LINE> self.line = [] <NEW_LI...
Create each individual subplot.
6259904845492302aabfd86a
class GraphListWidget(iKeyListenerWidget): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self._next_id = 0 <NEW_LINE> self.graphs = dict() <NEW_LINE> self.box = QVBoxLayout() <NEW_LINE> self.setLayout(self.box) <NEW_LINE> <DEDENT> def add_graph_plot_instance(sel...
A widget for managing many different graphs
6259904845492302aabfd86b
class OpenAIGPTEmbedderModule(HuggingfaceTransformersEmbedderModule): <NEW_LINE> <INDENT> def __init__(self, args): <NEW_LINE> <INDENT> super(OpenAIGPTEmbedderModule, self).__init__(args) <NEW_LINE> self.model = transformers.OpenAIGPTModel.from_pretrained( args.input_module, cache_dir=self.cache_dir, output_hidden_stat...
Wrapper for OpenAI GPT module to fit into jiant APIs. Check HuggingfaceTransformersEmbedderModule for function definitions
6259904891af0d3eaad3b1bd
class PumpControlPi(PumpControl): <NEW_LINE> <INDENT> def __init__(self, gpioId): <NEW_LINE> <INDENT> super(PumpControlPi,self).__init__(gpioId) <NEW_LINE> GPIO.setmode(GPIO.BCM) <NEW_LINE> GPIO.setup(gpioId, GPIO.OUT) <NEW_LINE> GPIO.output(gpioId, 0) <NEW_LINE> <DEDENT> def runPump(self, timeWait): <NEW_LINE> <INDENT...
Starts pump for time range
6259904824f1403a92686299
class Dense(Layer): <NEW_LINE> <INDENT> def __init__(self, n_neurons: int, activation: Operation = Sigmoid()): <NEW_LINE> <INDENT> super().__init__(n_neurons) <NEW_LINE> self.activation = activation <NEW_LINE> <DEDENT> def _setup_layer(self, input_: np.ndarray): <NEW_LINE> <INDENT> if self.seed: <NEW_LINE> <INDENT> np....
Fully connected layer
62599048711fe17d825e166a
class UserDb: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._creds = {} <NEW_LINE> <DEDENT> def add(self, authid, authrole, secret, salt = None): <NEW_LINE> <INDENT> if salt: <NEW_LINE> <INDENT> key = auth.derive_key(secret, salt) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> key = secret <NEW_LINE> ...
A fake user database.
62599048379a373c97d9a3c3
class DataLoader(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.availabe_datasets = { 'H2_lique': DataSetH2Lique, 'HD_lipovka': DataSetHDLipovka, 'H2_wrathmall': DataSetH2Wrathmall, 'H2_low_energy_levels': DataSetH2Glover, 'two_level_1': DataSetTwoLevel_1, 'three_level_1': DataSetThreeLevel_1...
Load various data sets.
62599048a79ad1619776b419
class Node: <NEW_LINE> <INDENT> def __init__(self, value, distanceL=0, right=0, distanceR = 0, left=0): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.distanceL = distanceL <NEW_LINE> self.distanceR = distanceR <NEW_LINE> self.left = left <NEW_LINE> self.right = right <NEW_LINE> <DEDENT> def set_right(self, nod...
Node Class
6259904829b78933be26aa8f
class Main: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.config() <NEW_LINE> sys.exit(self.run()) <NEW_LINE> <DEDENT> except (EOFError, KeyboardInterrupt): <NEW_LINE> <INDENT> sys.exit(114) <NEW_LINE> <DEDENT> except SystemExit as exception: <NEW_LINE> <INDENT> sys.e...
Main class
625990480a366e3fb87ddd7f
class Text(six.text_type): <NEW_LINE> <INDENT> def __new__(cls, arg=None, encoding=None): <NEW_LINE> <INDENT> if arg is None: <NEW_LINE> <INDENT> arg = u'' <NEW_LINE> <DEDENT> if isinstance(arg, six.text_type): <NEW_LINE> <INDENT> if encoding is not None: <NEW_LINE> <INDENT> raise TypeError('Text() with a unicode argum...
A long string type. Strings of any length can be stored in the datastore using this type. It behaves identically to the Python unicode type, except for the constructor, which only accepts str and unicode arguments.
6259904896565a6dacd2d956
class Hobby(atom.core.XmlElement): <NEW_LINE> <INDENT> _qname = CONTACTS_TEMPLATE % 'hobby'
Describes an ID of the contact in an external system of some kind. This element may be repeated.
62599048435de62698e9d19f
class IntegrationTestCase(TestCase): <NEW_LINE> <INDENT> def _flash(self): <NEW_LINE> <INDENT> return self.response.context[CONTEXT_VAR] <NEW_LINE> <DEDENT> def test_session_state_for_unused_flash(self): <NEW_LINE> <INDENT> self.response = self.client.get(reverse(views.render_template)) <NEW_LINE> self.assertFalse(_SES...
Test the middleware and the context processors working within a real Django application.
62599048507cdc57c63a6137
class PyHttpx(PythonPackage): <NEW_LINE> <INDENT> homepage = "https://github.com/encode/httpx" <NEW_LINE> pypi = "httpx/httpx-0.15.2.tar.gz" <NEW_LINE> version('0.15.2', sha256='713a2deaf96d85bbd4a1fbdf0edb27d6b4ee2c9aaeda8433042367e4b9e1628d') <NEW_LINE> version('0.11.1', sha256='7d2bfb726eeed717953d15dddb22da9c2fcf48...
HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.
625990483cc13d1c6d466ad1
class SharedPoolGroup(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.required=[] <NEW_LINE> self.b_key = "shared-pool-group" <NEW_LINE> self.a10_url="/axapi/v3/cgnv6/one-to-one/shared-pool-group/oper" <NEW_LINE> self.DeviceProxy = "" <NEW_LINE> s...
Class Description:: Operational Status for the object shared-pool-group. Class shared-pool-group supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device...
62599048be383301e0254bb3
class MrvOptiswitchSSH(CiscoSSHConnection): <NEW_LINE> <INDENT> def session_preparation(self): <NEW_LINE> <INDENT> self._test_channel_read(pattern=r"[>#]") <NEW_LINE> self.set_base_prompt() <NEW_LINE> self.enable() <NEW_LINE> self.disable_paging(command="no cli-paging") <NEW_LINE> time.sleep(0.3 * self.global_delay_fac...
MRV Communications Driver (OptiSwitch).
6259904891af0d3eaad3b1bf
class ArborealLabledWidget(TypesWidget): <NEW_LINE> <INDENT> _properties = TypesWidget._properties.copy() <NEW_LINE> _properties.update({'macro': 'arboreallabled_widget'}) <NEW_LINE> security = ClassSecurityInfo() <NEW_LINE> security.declarePublic('render_own_label') <NEW_LINE> def render_own_label(self): <NEW_LINE> <I...
" ArborealLabledWidget
6259904824f1403a9268629a
class sdist_debian(sdist): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_debian_name(): <NEW_LINE> <INDENT> import version <NEW_LINE> name = "%s_%s" % ("PyMca5", version.debianversion) <NEW_LINE> return name <NEW_LINE> <DEDENT> def prune_file_list(self): <NEW_LINE> <INDENT> sdist.prune_file_list(self) <NEW_LINE>...
Tailor made sdist for debian * remove auto-generated doc * remove cython generated .c files * remove cython generated .cpp files * remove .bat files * include .l man files
62599048d6c5a102081e34b6
class TestPetscApp(unittest.TestCase): <NEW_LINE> <INDENT> def test_run(self): <NEW_LINE> <INDENT> app = TestApp() <NEW_LINE> app.run() <NEW_LINE> return
Test of PetscApplication.
62599048097d151d1a2c2407
class GRRChipsecTest(client_test_lib.EmptyActionTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.chipsec_mock = mock.MagicMock() <NEW_LINE> self.chipsec_mock.chipset = mock.MagicMock() <NEW_LINE> self.chipsec_mock.chipset.UnknownChipsetError = MockUnknownChipsetError <NEW_LINE> self.chipsec_mock.hal...
Generic test class for GRR-Chipsec actions.
62599048a79ad1619776b41b
class Group(CommonModelNameNotUnique): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> app_label = 'main' <NEW_LINE> unique_together = (("name", "inventory"),) <NEW_LINE> <DEDENT> inventory = models.ForeignKey('Inventory', null=False, related_name='groups') <NEW_LINE> parents = models.ManyToManyField('sel...
A group of managed nodes. May belong to multiple groups
62599048d7e4931a7ef3d411
class XAxisConfig(ConfigSection): <NEW_LINE> <INDENT> available_options = options.X_AXIS_CONFIG <NEW_LINE> defaults = { "title": TitleConfig, }
The 'xAxis' section of a Highcharts config. See http://www.highcharts.com/ref/#xAxis for available options.
625990480a366e3fb87ddd81
class Get200(Notifications): <NEW_LINE> <INDENT> pass
OK
6259904896565a6dacd2d957
class DALTONGeoOptTest(GenericGeoOptTest): <NEW_LINE> <INDENT> extracoords = 1 <NEW_LINE> def testoptdone(self): <NEW_LINE> <INDENT> self.assertTrue(self.data.optdone) <NEW_LINE> convergence = numpy.abs(self.data.geovalues[-1]) <= self.data.geotargets <NEW_LINE> self.assertTrue(sum(convergence) >= 2)
Customzed geometry optimization unittest
6259904807d97122c421803d
class TestCylinder(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> from sas.models.CylinderModel import CylinderModel <NEW_LINE> from sas.models.DiamCylFunc import DiamCylFunc <NEW_LINE> self.comp = CylinderModel() <NEW_LINE> self.diam = DiamCylFunc() <NEW_LINE> <DEDENT> def test(self): <NE...
Unit tests for calculate_ER (cylinder model)
6259904826238365f5fadef8
@attr.s <NEW_LINE> class Pomodoro: <NEW_LINE> <INDENT> len_args = attr.ib(factory=dict) <NEW_LINE> num_rounds = attr.ib(default=3) <NEW_LINE> tracker = attr.ib(init=False) <NEW_LINE> def create_rounds(self): <NEW_LINE> <INDENT> rounds = [Round(self.len_args) for i in range(self.num_rounds)] <NEW_LINE> return rounds
main class to store basic pomodoro technique attributes, such as length of sessions. The user should be able to set the number of rounds and length parameter through command line arguments.
625990487cff6e4e811b6dd5
class EmailChange(LoginRequiredMixin, generic.FormView): <NEW_LINE> <INDENT> template_name = 'users/email_change_form.html' <NEW_LINE> form_class = EmailChangeForm <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> user = self.request.user <NEW_LINE> new_email = form.cleaned_data['email'] <NEW_LINE> current_sit...
メールアドレスの変更
6259904823e79379d538d89a
class ManagerSite(AppManager): <NEW_LINE> <INDENT> def __init__(self,connection): <NEW_LINE> <INDENT> super(ManagerSite, self).__init__(MODULE_PATH, connection) <NEW_LINE> bindings = [ { 'observer': self, 'exchange': 'manage', 'key' : 'manager.#' }] <NEW_LINE> self.amqp.bind('manage', bindings) <NEW_LINE> pass <NEW_LIN...
amqp manager for the pinger app sets up an exclusive queue for an instance and binds it to the pinger exchange
6259904845492302aabfd86e
class Tree(): <NEW_LINE> <INDENT> def __init__(self, root): <NEW_LINE> <INDENT> self.root = root <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<Tree root={root}>".format(root=self.root) <NEW_LINE> <DEDENT> def find_in_tree(self, data): <NEW_LINE> <INDENT> return self.root.find(data)
Tree.
6259904891af0d3eaad3b1c1
class WorkgroupSubmissionReviewSerializer(serializers.HyperlinkedModelSerializer): <NEW_LINE> <INDENT> submission = serializers.PrimaryKeyRelatedField(queryset=WorkgroupSubmission.objects.all()) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = WorkgroupSubmissionReview <NEW_LINE> fields = ( 'id', 'url', 'created', 'm...
Serializer for model interactions
6259904863b5f9789fe86509
class LossBinary: <NEW_LINE> <INDENT> def __init__(self, jaccard_weight=0): <NEW_LINE> <INDENT> self.nll_loss = nn.BCEWithLogitsLoss() <NEW_LINE> self.jaccard_weight = jaccard_weight <NEW_LINE> <DEDENT> def __call__(self, outputs, targets): <NEW_LINE> <INDENT> loss = (1 - self.jaccard_weight) * self.nll_loss(outputs, t...
Loss defined as BCE - log(soft_jaccard) Vladimir Iglovikov, Sergey Mushinskiy, Vladimir Osin, Satellite Imagery Feature Detection using Deep Convolutional Neural Network: A Kaggle Competition arXiv:1706.06169
62599048004d5f362081f9b5
class MatchViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Match.objects.all() <NEW_LINE> serializer_class = MatchSerializer <NEW_LINE> filter_backends = (SearchFilter, DjangoFilterBackend) <NEW_LINE> search_fields = ('name',) <NEW_LINE> filter_fields = ('query_result', 'query_result__query', 'query_resu...
create: Create a new match instance. retrieve: Return the given match. list: Return a list of all the existing matches. update: Update a given match as whole. partial_update: Update a set of parameters of a given match.
6259904850485f2cf55dc325
class Provider(object): <NEW_LINE> <INDENT> def __init__(self, id): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.title = RPX_PROVIDERS[self.id] <NEW_LINE> self.icon_tag = u"<img src='/++resource++plonesocial.auth.rpx.icons/%s.png' title='%s' alt='%s'>" % (self.id, self.title, self.title) <NEW_LINE> self.icon_tag_ti...
represents a provider
6259904830dc7b76659a0bd0
class DealornotAgent(RNNRolloutAgent): <NEW_LINE> <INDENT> def __init__(self, name, args, sel_args, train=False, diverse=False, max_total_len=100, model_url='https://tatk-data.s3-ap-northeast-1.amazonaws.com/rnnrollout_dealornot.zip'): <NEW_LINE> <INDENT> self.config_path = os.path.join(os.path.dirname(os.path.abspath(...
The Rnn Rollout model for DealorNot dataset.
625990481f5feb6acb163f92
class HPMTimer(Timer): <NEW_LINE> <INDENT> top_level = 'GPAW.calculator' <NEW_LINE> compatible = ['Initialization','SCF-cycle'] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> Timer.__init__(self) <NEW_LINE> hpm_start(self.top_level) <NEW_LINE> <DEDENT> def start(self, name): <NEW_LINE> <INDENT> Timer.start(self, na...
HPMTimer requires installation of the IBM BlueGene/P HPM middleware interface to the low-level UPC library. This will most likely only work at ANL's BlueGene/P. Must compile with GPAW_HPM macro in customize.py. Note that HPM_Init and HPM_Finalize are called in _gpaw.c and not in the Python interface. Timer must be call...
625990488e05c05ec3f6f829
class PaginatorMixin(object): <NEW_LINE> <INDENT> paginator_class = DiggPaginator <NEW_LINE> paginate_by = 10 <NEW_LINE> paginator_body = 5 <NEW_LINE> paginator_tail = 2 <NEW_LINE> def get_paginator(self, queryset, per_page, orphans=0, allow_empty_first_page=True, body=5, tail=2): <NEW_LINE> <INDENT> return self.pagina...
refer https://bitbucket.org/dicos/digg-like-paginator/src/8cd1de9da5e5?at=master - this one adapt python34 and https://djangosnippets.org/snippets/773/ use in ListView, source code in utils
6259904830c21e258be99ba3
class ServiceAccount(_messages.Message): <NEW_LINE> <INDENT> email = _messages.StringField(1) <NEW_LINE> scopes = _messages.StringField(2, repeated=True)
A Compute Engine service account. Fields: email: Email address of the service account. scopes: The list of scopes to be made available for this service account.
625990486fece00bbacccd54
class CognitoResponseType(Enum): <NEW_LINE> <INDENT> AUTHENTICATED = 1 <NEW_LINE> INVALID_CREDENTIALS = 2 <NEW_LINE> TEMP_PWD_USED = 3 <NEW_LINE> PWD_RESET_REQUIRED = 4 <NEW_LINE> UNCONFIRMED = 5 <NEW_LINE> ERROR = 6 <NEW_LINE> CREATED = 7 <NEW_LINE> USER_EXISTS = 8 <NEW_LINE> BAD_PASSWORD = 9 <NEW_LINE> INCOMPLETE_REQ...
An enumeration representing different types of responses the Cognito IDP returns upon a particular request.
625990484e696a045264e7ef
class ProviderNotFoundError(Exception): <NEW_LINE> <INDENT> pass
The provider information was not found.
62599048507cdc57c63a613b
class Transform(object): <NEW_LINE> <INDENT> def __init__(self, w,h,xlow,ylow,xhigh, yhigh): <NEW_LINE> <INDENT> xspan = (xhigh - xlow) <NEW_LINE> yspan = (yhigh - ylow) <NEW_LINE> self.xbase = xlow <NEW_LINE> self.ybase = yhigh <NEW_LINE> self.xscale = xspan/float(w-1) <NEW_LINE> self.yscale = yspan/float(h-1) <NEW_LI...
Internal class for 2D coordinate transformations.
6259904815baa7234946332e
class Stack(object): <NEW_LINE> <INDENT> def __init__(self, rc): <NEW_LINE> <INDENT> self.regclass = rc <NEW_LINE> <DEDENT> def stack_base_mask(self): <NEW_LINE> <INDENT> return 'StackBaseMask(1)'
An operand that must be in a stack slot. A `Stack` object can be used to indicate an operand constraint for a value operand that must live in a stack slot.
6259904807f4c71912bb07d0
class Host(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def spawn(name, **kwds): <NEW_LINE> <INDENT> proc = ProcessSpawner(name=name, **kwds) <NEW_LINE> host = proc.client._import('pyacq.core.host').Host(name) <NEW_LINE> return proc, host <NEW_LINE> <DEDENT> def __init__(self, name, poll_procs=False): <NEW_LIN...
Host serves as a pre-existing contact point for spawning new processes on a remote machine. One Host instance must be running on each machine that will be connected to by a Manager. The Host is only responsible for creating and destroying NodeGroups.
6259904826238365f5fadefa
class JSONDecoderOrderedDict(AbstractJSONDecoderOrderedDict): <NEW_LINE> <INDENT> def __init__(self, parse_float=None, parse_int=None, parse_constant=None, strict=True): <NEW_LINE> <INDENT> AbstractJSONDecoderOrderedDict.__init__(self, parse_float=parse_float, parse_int=parse_int, parse_constant=parse_constant, strict=...
Simple JSON <http://json.org> decoder Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | OrderedDict | +---------------+-------------------+ | array | list ...
625990483eb6a72ae038b9f9
class BackupError(Exception): <NEW_LINE> <INDENT> pass
Base exception for backup errors.
625990488a43f66fc4bf3533
class CustomIsAuthenticatedOrReadOnly(BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> return bool( request.method in SAFE_METHODS or request.user and request.user.is_staff )
The request is authenticated as a an admin, or is a read-only request. This is used to ensure that any user, even anonymous users can read but only the admin/staff can modify it. Even authenticated, non-staff user cannot edit the data.
6259904824f1403a9268629c
class PokerHand(object): <NEW_LINE> <INDENT> RESULT = ["Loss", "Tie", "Win"] <NEW_LINE> def __init__(self, hand): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def convert_hand(self, hand): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_highest(self, hand1, hand2): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ...
Program that compares your poker hand with other hand and returns the better hand as per standard Texas Hold'em rules. See also: https://www.codewars.com/kata/5739174624fc28e188000465/train/python Returns Loss, Tie or Win.
62599048004d5f362081f9b6
class TextDetector: <NEW_LINE> <INDENT> def __init__(self,MAX_HORIZONTAL_GAP=30,MIN_V_OVERLAPS=0.6,MIN_SIZE_SIM=0.6): <NEW_LINE> <INDENT> self.text_proposal_connector=TextProposalConnector(MAX_HORIZONTAL_GAP,MIN_V_OVERLAPS,MIN_SIZE_SIM) <NEW_LINE> <DEDENT> def detect_region(self, text_proposals,scores,size, TEXT_PROPOS...
Detect text from an image
62599048711fe17d825e166d
class CodeSnippet(io.StringIO): <NEW_LINE> <INDENT> def __init__(self, code_string): <NEW_LINE> <INDENT> io.StringIO.__init__(self, textwrap.dedent(code_string))
A code snippet. Automatically wraps snippet as a file-like object and handles line wraps.
6259904876d4e153a661dc45
class say_hello_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRING, 'success', None, None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerat...
Attributes: - success
62599048b57a9660fecd2e1b
class TransactionQuote(BaseModel): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> for (param, value) in kwargs.items(): <NEW_LINE> <INDENT> if param=='outlets': <NEW_LINE> <INDENT> setattr(self, param, OutletDictionary(value)) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> setattr(self, param, val...
A class that represents a Bitso Transaction Quote.
6259904810dbd63aa1c71f7a
class Labyrinth: <NEW_LINE> <INDENT> def __init__(self, file): <NEW_LINE> <INDENT> self.file = file <NEW_LINE> <DEDENT> def display(self, window): <NEW_LINE> <INDENT> base = pygame.image.load(const.SPRITESHEET) <NEW_LINE> wall = base.subsurface((120, 100, 20, 20)) <NEW_LINE> way = base.subsurface((20, 0, 20, 20)) <NEW_...
Structure's class to display map and convert index, coordinates
625990481f5feb6acb163f94
class Layer: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.W=[] <NEW_LINE> self.b=[] <NEW_LINE> self.a=[] <NEW_LINE> self.z=[] <NEW_LINE> self.d_W=[] <NEW_LINE> self.d_b=[] <NEW_LINE> self.d_a=[] <NEW_LINE> self.d_z=[] <NEW_LINE> self.feature = ""
A class used to represent a Layer of a Neural Network ... Attributes ---------- W : list the incoming weights b : list the biases a : list the activations z : list the outputs s : list the gradient of the incoming weights d_b : list the gradient of the biases d_a : list the gradient of th...
625990480a366e3fb87ddd85
class rankings(): <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self._len = size <NEW_LINE> self._lst = list() <NEW_LINE> <DEDENT> def insert(self, item, value): <NEW_LINE> <INDENT> high = len(self._lst) <NEW_LINE> if (len(self._lst) != 0 and self._lst[0].value < value): <NEW_LINE> <INDENT> high = 0...
Sorted fixed-size array
6259904823e79379d538d89d