code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ImageProcessorSettings(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.filter = dict(min_width = 1, min_height = 1, max_width = 10000, max_height = 10000, max_size_bytes = 2*4*1024*1024, remove_flickr_placeholders = False) <NEW_LINE> self.conversion = dict(format = 'jpg', suffix = '-clea... | Settings class for ImageProcessor
Defines the following setting groups:
filter - settings related to filtering out of images from further processing
conversion - settings related to the standardization and re-writing of
downloaded images
thumbnail - settings related to the generation of thumbnails... | 6259901dd18da76e235b7859 |
class ConcurrentChange(Error): <NEW_LINE> <INDENT> _qualname = 'ConcurrentChange' <NEW_LINE> def __init__(self, messages=None, data=None, ): <NEW_LINE> <INDENT> Error.__init__( self, messages=messages, data=data, ) | The ``ConcurrentChange`` exception indicates that a data structure, entity,
or resource has been modified since some earlier point in time. Typically
this happens when the client is doing the *write* portion of a
read-modify-write sequence and indicates that it wants the server to notify
it if the data in the server ha... | 6259901d56b00c62f0fb36d6 |
class EventManageTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> User.objects.create_user('admin', 'admin@dj.com', 'admin123456') <NEW_LINE> Event.objects.create(id=1, name="Moto X", attendees_limit="1000", address="Sunnyvale", status=1, start_time="2014-8-12 12:30:00") <NEW_LINE> self.login_us... | test event manage | 6259901da8ecb03325872036 |
class LoginHandle(BaseHandle): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.login_page = LoginPage() <NEW_LINE> <DEDENT> def input_username(self, username): <NEW_LINE> <INDENT> self.input_text(self.login_page.find_username(), username) <NEW_LINE> <DEDENT> def input_pwd(self, pwd): <NEW_LINE> <INDENT... | 登录-操作层 | 6259901d462c4b4f79dbc822 |
class DataRecord: <NEW_LINE> <INDENT> def __init__(self, output_value, attribute_values: List): <NEW_LINE> <INDENT> self.output_value = output_value <NEW_LINE> self.attribute_values = attribute_values <NEW_LINE> <DEDENT> def summary(self): <NEW_LINE> <INDENT> attribute_values = [round(x, 3) if isinstance(x, float) else... | Class that stores a class name, and a list of attribute values. | 6259901dd164cc6175821d98 |
class ColoredManhole(Manhole): <NEW_LINE> <INDENT> def getSource(self): <NEW_LINE> <INDENT> return (b'\n'.join(self.interpreter.buffer) + b'\n' + b''.join(self.lineBuffer)) <NEW_LINE> <DEDENT> def characterReceived(self, ch, moreCharactersComing): <NEW_LINE> <INDENT> if self.mode == 'insert': <NEW_LINE> <INDENT> self.l... | A REPL which syntax colors input as users type it. | 6259901da8ecb03325872038 |
class _SwaggerParameterStore: <NEW_LINE> <INDENT> definitions = {} | Singleton with parameter definitions | 6259901d925a0f43d25e8e5d |
class FoodInventory: <NEW_LINE> <INDENT> def food_grains(self): <NEW_LINE> <INDENT> with open("inventory_data.json", "r") as file: <NEW_LINE> <INDENT> file_read = file.read() <NEW_LINE> file.close() <NEW_LINE> items = json.loads(file_read) <NEW_LINE> <DEDENT> print(items, "\n") <NEW_LINE> print("rice price details") <N... | This class is created to display the details of the
inventory data which is containing the grains. | 6259901dd164cc6175821d9a |
class BuildScriptTests(TestCase): <NEW_LINE> <INDENT> def test_usage_error_status(self): <NEW_LINE> <INDENT> fake_sys_module = FakeSysModule(argv=[]) <NEW_LINE> script = BuildScript(sys_module=fake_sys_module) <NEW_LINE> exception = self.assertRaises(SystemExit, script.main) <NEW_LINE> self.assertEqual(1, exception.cod... | Tests for ``BuildScript``. | 6259901d5e10d32532ce4013 |
class mdsConnector(object): <NEW_LINE> <INDENT> def __init__(self, host=None, user=None, port=None, keyfile=None, password=None, python_executable='python', ssh_opts=[], hop=None, hop_user=None, hop_port=None, hop_keyfile=None, hop_password=None, hop_python_executable='python'): <NEW_LINE> <INDENT> if host is None: <NE... | The mdsConnector class enables the use of MDSplus objects over an SSH
connection to a remote host. All MDSplus objects are available and the data
associated with MDSplus objects remain on the remote host until they are
converted into native python objects or numpy data types. An application
written based on the mdsConn... | 6259901d63f4b57ef008647f |
class Dummy(object): <NEW_LINE> <INDENT> def __init__(self, **kw): <NEW_LINE> <INDENT> self.__dict__.update(kw) | dummy class that allows setting attributes | 6259901dac7a0e7691f73305 |
class FilePublisher(Publisher): <NEW_LINE> <INDENT> def __init__(self, publish_dir): <NEW_LINE> <INDENT> self.publish_dir = publish_dir <NEW_LINE> self.tmp_dir = None <NEW_LINE> self.staged = False <NEW_LINE> <DEDENT> def publish(self, units): <NEW_LINE> <INDENT> parent_path = os.path.normpath(os.path.join(self.publish... | The file-based publisher.
:ivar publish_dir: full path to the publish_dir directory for this repository.
:type publish_dir: str
:ivar tmp_dir: The absolute path to the temporary publishing directory.
:type tmp_dir: str
:ivar staged: A flag indicating that publishing has been staged and needs commit.
:type staged: bool | 6259901d56b00c62f0fb36da |
class BURSt(SCPINode, SCPIQuery): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> _cmd = "BURSt" <NEW_LINE> args = [] | READ:SCALar:POWer:BURSt
Arguments: | 6259901d9b70327d1c57fb9c |
@dataclass(eq=False, repr=False) <NEW_LINE> class CWChannel(Message): <NEW_LINE> <INDENT> channel_index: int = 0 <NEW_LINE> rf_output_frequency: Optional[int] = 1000000000 <NEW_LINE> rf_output_power: Optional[float] = 0.0e+0 <NEW_LINE> rf_output_enabled: Optional[bool] = True | Configuration for a single CW Generator Channel. | 6259901d5166f23b2e2441f0 |
class MultichainClient(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.rpcuser = kwargs.get('rpcuser', 'multichainrpc') <NEW_LINE> self.rpcpasswd = kwargs.get('rpcpasswd', 'HFzmag67bJg2f4YuExgVDqQK5VfnvXRS5SKrByuCgiXm') <NEW_LINE> try: <NEW_LINE> <INDENT> rpchost = os.environ['RPC_HO... | multichain client driver to access rpc wrapper of python | 6259901dbf627c535bcb22cf |
class FlowSequential(nn.Sequential): <NEW_LINE> <INDENT> def forward(self, inputs, cond_inputs=None, mode='direct', logdets=None): <NEW_LINE> <INDENT> if logdets is None: <NEW_LINE> <INDENT> logdets = torch.zeros(inputs.size(0), 1, device=inputs.device) <NEW_LINE> <DEDENT> assert mode in ['direct', 'inverse'] <NEW_LINE... | A sequential container for flows.
In addition to a forward pass it implements a backward pass and
computes log jacobians. | 6259901dbe8e80087fbbfe92 |
class FunctionDef(models.Model): <NEW_LINE> <INDENT> name = models.CharField("Short function name", max_length=MAX_NAME_LEN) <NEW_LINE> title = models.CharField("Function title", max_length=MAX_TEXT_LEN) <NEW_LINE> argnum = models.IntegerField("Number of arguments", default=1) <NEW_LINE> type = models.CharField("Type",... | Definition of one function | 6259901d5166f23b2e2441f2 |
class extpictform(models.Model): <NEW_LINE> <INDENT> value = models.CharField(u'Variable', max_length = 150) <NEW_LINE> enable = models.BooleanField(u'Enabled', default = True) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.value | Componente cartográfico
Extensión de las fotografías | 6259901d63f4b57ef0086481 |
class VirtualNetworkUsage(Model): <NEW_LINE> <INDENT> _validation = { 'current_value': {'readonly': True}, 'id': {'readonly': True}, 'limit': {'readonly': True}, 'name': {'readonly': True}, 'unit': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'current_value': {'key': 'currentValue', 'type': 'float'}, 'id': {'key... | Usage details for subnet.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar current_value: Indicates number of IPs used from the Subnet.
:vartype current_value: float
:ivar id: Subnet identifier.
:vartype id: str
:ivar limit: Indicates the size of the subnet.
:vartype limit... | 6259901d5e10d32532ce4015 |
class AdatWritingTest(TestCase): <NEW_LINE> <INDENT> filename = './tests/data/control_data_written.adat' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.adat = canopy.read_adat('./tests/data/control_data.adat') <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> if os.path.exists(self.filename): <NEW_LINE>... | Tests if writing can occur and if the written file matches expectation (via md5).
| 6259901d9b70327d1c57fba0 |
class NBestList: <NEW_LINE> <INDENT> def __init__(self, sentrep, parses, sentence_id=None): <NEW_LINE> <INDENT> self._parses = parses <NEW_LINE> self._sentrep = sentrep <NEW_LINE> self.parses = [] <NEW_LINE> for index, (score, parse) in enumerate(parses): <NEW_LINE> <INDENT> parse.this.acquire() <NEW_LINE> scored_parse... | Represents an n-best list of parses of the same sentence. | 6259901d287bf620b6272a0b |
class FlashSubVolUbiLinux26(BASESTORAGE.X_CATAWAMPUS_ORG_FlashMedia.SubVolume): <NEW_LINE> <INDENT> def __init__(self, ubivol): <NEW_LINE> <INDENT> BASESTORAGE.X_CATAWAMPUS_ORG_FlashMedia.SubVolume.__init__(self) <NEW_LINE> self.ubivol = ubivol <NEW_LINE> <DEDENT> @property <NEW_LINE> def DataMBytes(self): <NEW_LINE> <... | Catawampus Storage Flash SubVolume implementation for UBI volumes. | 6259901d21a7993f00c66d9e |
class ApplicationGatewayBackendAddressPool(SubResource): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'backend_ip_configurations': {'key': 'properties.backendIPConfigurat... | Backend Address Pool of an application gateway.
:param id: Resource ID.
:type id: str
:param name: Resource that is unique within a resource group. This name can be used to access
the resource.
:type name: str
:param etag: A unique read-only string that changes whenever the resource is updated.
:type etag: str
:param... | 6259901d462c4b4f79dbc82c |
class APIResource(api.APIResourceWrapper): <NEW_LINE> <INDENT> _attrs = ['foo', 'bar', 'baz'] <NEW_LINE> @staticmethod <NEW_LINE> def get_instance(innerObject=None): <NEW_LINE> <INDENT> if innerObject is None: <NEW_LINE> <INDENT> class InnerAPIResource(object): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> innerObject =... | Simple APIResource for testing | 6259901d925a0f43d25e8e65 |
class TStage7(_CaseInsensitiveEnum): <NEW_LINE> <INDENT> t0 = 'T0' <NEW_LINE> t1 = 'T1' <NEW_LINE> t1a = 'T1a' <NEW_LINE> t1b = 'T1b' <NEW_LINE> t2 = 'T2' <NEW_LINE> t2a = 'T2a' <NEW_LINE> t2b = 'T2b' <NEW_LINE> t3 = 'T3' <NEW_LINE> t4 ... | American Joint Committee on Cancer (AJCC) edition 7's pathological tumor "T Stage" | 6259901dbf627c535bcb22d5 |
class PutLeveltest(Process): <NEW_LINE> <INDENT> def run(self,level): <NEW_LINE> <INDENT> yield put,self,level,1 | Used in testPutLevel.
| 6259901d91af0d3eaad3ac47 |
class DummyBiNode(IdentityBiNode): <NEW_LINE> <INDENT> def _execute(self, x, data1, data2): <NEW_LINE> <INDENT> self.data1 = data1 <NEW_LINE> self.data2 = data2 <NEW_LINE> return x <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def is_trainable(): <NEW_LINE> <INDENT> return False | Dummy class for CloneBiLayer tests. | 6259901d8c3a8732951f7386 |
class Reader(): <NEW_LINE> <INDENT> def read(self): <NEW_LINE> <INDENT> field = [] <NEW_LINE> data = fileinput.input() <NEW_LINE> for line in data: <NEW_LINE> <INDENT> field.append(line.strip('\n')) <NEW_LINE> <DEDENT> data.close() <NEW_LINE> self.validate(field) <NEW_LINE> return field <NEW_LINE> <DEDENT> @staticmetho... | validates, converts to internal repr raw particle field from STDIN | 6259901dbf627c535bcb22d7 |
class dotdict(dict): <NEW_LINE> <INDENT> __getattr__ = dict.get <NEW_LINE> __setattr__ = dict.__setitem__ <NEW_LINE> __delattr__ = dict.__delitem__ | dot.notation access to dictionary attributes
source: https://stackoverflow.com/a/23689767 | 6259901d287bf620b6272a0f |
class DeviceReading: <NEW_LINE> <INDENT> time: int <NEW_LINE> value: float | A reading from a device | 6259901d6fece00bbaccc7dc |
class Context(object): <NEW_LINE> <INDENT> CTYPE = Util.create_enum( "CONDITION", "CONFIG" ) <NEW_LINE> def __init__(self, manifest_parser, prev_context, line_info, ctype): <NEW_LINE> <INDENT> self.manifest_parser = manifest_parser <NEW_LINE> self.ctype = ctype <NEW_LINE> if prev_context is None: <NEW_LINE> <INDENT> se... | Base class for parsing contexts | 6259901d462c4b4f79dbc830 |
class UserInfo(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'first_name': {'max_length': 50, 'min_length': 0}, 'last_name': {'max_length': 50, 'min_length': 0}, 'email_address': {'pattern': r'^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$'}, 'phone_number': {'max_length': 40, 'min_length': 0},... | UserInfo.
:param first_name: First Name of the user.
:type first_name: str
:param last_name: Last Name of the user.
:type last_name: str
:param email_address: Email of the user used by Logz for contacting them if needed.
:type email_address: str
:param phone_number: Phone number of the user used by Logz for contacting... | 6259901dd164cc6175821da6 |
class DeprecationTests(unittest.SynchronousTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.reactor = DummyProcessReactor() <NEW_LINE> self.pm = ProcessMonitor(reactor=self.reactor) <NEW_LINE> <DEDENT> def test_toTuple(self): <NEW_LINE> <INDENT> self.pm.addProcess("foo", ["foo"]) <NEW_LINE> mypr... | Tests that check functionality that should be deprecated is deprecated. | 6259901d63f4b57ef0086485 |
class Commands(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.arithmetic = ["add", "sub", "neg", "eq", "gt", "lt", "and", "or", "not"] <NEW_LINE> self.functionCall = ["function", "call", "return"] <NEW_LINE> self.memCommand = ["push", "pop"] <NEW_LINE> self.programFlow = ["if-goto", "goto", "... | An object that holds lookup tables that map commands to their type. | 6259901d30c21e258be9963c |
class WindowedStream(object): <NEW_LINE> <INDENT> def __init__(self, keyed_stream: KeyedStream, window_assigner: WindowAssigner): <NEW_LINE> <INDENT> self._keyed_stream = keyed_stream <NEW_LINE> self._window_assigner = window_assigner <NEW_LINE> self._allowed_lateness = 0 <NEW_LINE> self._window_trigger = None <NEW_LIN... | A WindowedStream represents a data stream where elements are grouped by key, and for each
key, the stream of elements is split into windows based on a WindowAssigner. Window emission
is triggered based on a Trigger.
The windows are conceptually evaluated for each key individually, meaning windows can trigger
at differ... | 6259901d63f4b57ef0086486 |
class DynamicsValidator(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def validate_componentclass(cls, componentclass): <NEW_LINE> <INDENT> TypesDynamicsValidator(componentclass) <NEW_LINE> NoDuplicatedObjectsDynamicsValidator(componentclass) <NEW_LINE> DuplicateRegimeNamesDynamicsValidator(componentclass) <NEW_... | Class for grouping all the component-validations tests together | 6259901dbf627c535bcb22db |
class TasksView(APIView): <NEW_LINE> <INDENT> permission_classes = (IsAuthenticated,) <NEW_LINE> def get(self, request, pk=None): <NEW_LINE> <INDENT> if "username" in request.query_params: <NEW_LINE> <INDENT> if pk is None: <NEW_LINE> <INDENT> user = User.objects.get(username=request.query_params["username"]) <NEW_LINE... | TasksView used to handle the incoming requests relating to
`todo` items | 6259901d796e427e5384f5a9 |
class Plugin_1: <NEW_LINE> <INDENT> @hookimpl <NEW_LINE> def myhook(self, arg1, arg2): <NEW_LINE> <INDENT> print("inside Plugin_1.myhook()") <NEW_LINE> return arg1 + arg2 | A hook implementation namespace. | 6259901d462c4b4f79dbc834 |
class GraphicsView(Widget): <NEW_LINE> <INDENT> CPP_CLASS = 'QGraphicsView' <NEW_LINE> def gitems(self): <NEW_LINE> <INDENT> data = self.client.send_command('graphicsitems', oid=self.oid) <NEW_LINE> return GItems.create(self.client, data) <NEW_LINE> <DEDENT> def dump_gitems(self, stream='gitems.json'): <NEW_LINE> <INDE... | Allow to manipulate an instance of QGraphicsView. | 6259901dd18da76e235b7862 |
class Bool(Variable): <NEW_LINE> <INDENT> def __init__(self, default_value=False, iotype=None, desc=None, **metadata): <NEW_LINE> <INDENT> if iotype is not None: <NEW_LINE> <INDENT> metadata['iotype'] = iotype <NEW_LINE> <DEDENT> if desc is not None: <NEW_LINE> <INDENT> metadata['desc'] = desc <NEW_LINE> <DEDENT> self.... | A variable wrapper for a boolean variable.
| 6259901dd18da76e235b7863 |
class ReviewSubmissionPagination(LimitOffsetPagination): <NEW_LINE> <INDENT> default_limit = 10 <NEW_LINE> max_limit = 1000 <NEW_LINE> facets = {} <NEW_LINE> def paginate_queryset(self, queryset, request, view=None): <NEW_LINE> <INDENT> self.facets = self.get_facets(queryset) <NEW_LINE> return super().paginate_queryset... | Pagination class for ReviewSubmissionViewSet | 6259901d507cdc57c63a5bd1 |
class File(object): <NEW_LINE> <INDENT> def __init__(self, file_name, path): <NEW_LINE> <INDENT> self.id = file_name[:-4] <NEW_LINE> self.records = [] <NEW_LINE> with open(path + file_name, 'r') as content: <NEW_LINE> <INDENT> for l in content: <NEW_LINE> <INDENT> r = Record(l) <NEW_LINE> if len(self.records) > 0: <NEW... | docstring for File | 6259901d30c21e258be99642 |
class HistoryButton(Button): <NEW_LINE> <INDENT> def __del__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def on_press(self): <NEW_LINE> <INDENT> root = findparent(self, RepoHistoryItem) <NEW_LINE> for l in root.parent.children: <NEW_LINE> <INDENT> if hasattr(l, 'pressed') and l.pressed: <NEW_LI... | HistoryButton; to manage user input on history screen, the button
is used on list items of repository logs one box of log data
contains at least four button. | 6259901d287bf620b6272a19 |
class HBNodes(object): <NEW_LINE> <INDENT> def __init__(self, pulseIds=None,): <NEW_LINE> <INDENT> self.pulseIds = pulseIds <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: <NEW_L... | Attributes:
- pulseIds | 6259901dbf627c535bcb22e2 |
class TestRoundTripPGPosition(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.position = Position( "SLD", "PG", Decimal('100'), Decimal("77.69"), Decimal("1.00"), Decimal('77.68'), Decimal('77.70') ) <NEW_LINE> <DEDENT> def test_calculate_round_trip(self): <NEW_LINE> <INDENT> self.posi... | Test a round-trip trade in Proctor & Gamble where the initial
trade is a sell/short of 100 shares of PG, at a price of
$77.69, with $1.00 commission. | 6259901d462c4b4f79dbc83a |
class Config(dict): <NEW_LINE> <INDENT> def __init__(self, f): <NEW_LINE> <INDENT> super(Config, self).__init__(**self.load_config(f)) <NEW_LINE> self.__dict__ = self <NEW_LINE> <DEDENT> def load_config(self, f): <NEW_LINE> <INDENT> return yaml.load(open(get_path(f),"r")) | A storage class for the yaml-defined network configuration | 6259901dac7a0e7691f7331b |
class EntityOutputTypesResource(Resource): <NEW_LINE> <INDENT> @jwt_required <NEW_LINE> def get(self, entity_id): <NEW_LINE> <INDENT> entity = entities_service.get_entity(entity_id) <NEW_LINE> user_service.check_project_access(entity["project_id"]) <NEW_LINE> return files_service.get_output_types_for_entity(entity_id) | Return all types of output generated for given entity. | 6259901d21a7993f00c66dae |
class Calendar(object): <NEW_LINE> <INDENT> def __init__(self, semester=None): <NEW_LINE> <INDENT> self.semester = semester <NEW_LINE> <DEDENT> def iter_by_weekdays(self): <NEW_LINE> <INDENT> week1, week2 = AppendedWeeks( Subject.objects.iter_by_weekdays(week=1, semester=self.semester), Subject.objects.iter_by_weekdays... | E.g.:
>>> Calendar().iter_by_weekdays()
[(u'Пон', []),
(u'Вт', []),
(u'Ср', []),
(u'Чет', [
(<Subject: ТАУ | IA-62 | Четверг 12:00 | 2012>,
<Subject: ТАУ | IA-62 | Четверг 12:00 | 2012>)]),
(u'Пят', []),
(u'Суб', []),
(u'Вос', [])] | 6259901dbe8e80087fbbfea6 |
class FlightInvoiceOCRRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ImageBase64 = None <NEW_LINE> self.ImageUrl = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ImageBase64 = params.get("ImageBase64") <NEW_LINE> self.ImageUrl = params.get("Im... | FlightInvoiceOCR请求参数结构体
| 6259901d925a0f43d25e8e75 |
class S3DynamoDBTable(object): <NEW_LINE> <INDENT> def __init__(self, table, region): <NEW_LINE> <INDENT> self.table = table <NEW_LINE> self.ddb = boto3.client('dynamodb', region_name=region) <NEW_LINE> <DEDENT> def put(self, item): <NEW_LINE> <INDENT> self.ddb.put_item(TableName = self.table, Item = item, ReturnConsum... | Wrapper for calls to DynamoDB
Wraps boto3 calls to create and update DynamoDB entries.
Supports updates for S3 Index tables | 6259901dbf627c535bcb22e6 |
class DensePop(Pop): <NEW_LINE> <INDENT> def __init__(self, input_size, output_size, W=init.Uniform(), b=init.Constant(0.), nonlinearity=nonlinearities.rectify, **kwargs): <NEW_LINE> <INDENT> super(DensePop, self).__init__(1, 1, **kwargs) <NEW_LINE> if nonlinearity is None: <NEW_LINE> <INDENT> self.nonlinearity = nonli... | A fully connected layer.
:parameters:
- input_layer : `Layer` instance
The layer from which this layer will obtain its input
- num_units : int
The number of units of the layer
- W : Theano shared variable, numpy array or callable
An initializer for the weights of the layer. If a T... | 6259901d507cdc57c63a5bd7 |
class _PropertyComponent(_BaseComponent): <NEW_LINE> <INDENT> def _get_prop_names(self): <NEW_LINE> <INDENT> raise NotImplementedError | A component that operates on a specific set of properties. | 6259901d30c21e258be99648 |
class FieldworkModelSourceStep(WorkflowStepMountPoint): <NEW_LINE> <INDENT> def __init__(self, location): <NEW_LINE> <INDENT> super(FieldworkModelSourceStep, self).__init__('Fieldwork Model Source', location) <NEW_LINE> self._state = FieldworkModelData() <NEW_LINE> self._icon = QtGui.QImage(':/zincmodelsource/images/zi... | fieldwork model source step supplies fieldwork model source files
from a location on disk. | 6259901d9b70327d1c57fbb5 |
class M5P(AbstractWekaModelVisitor): <NEW_LINE> <INDENT> wekaCommand = "weka.classifiers.trees.M5P" | Weka M5P for predicting numeric responses. | 6259901d5e10d32532ce4020 |
class ShortenedLinkCreateView(View): <NEW_LINE> <INDENT> http_method_names = ['post'] <NEW_LINE> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> data = json.loads(request.body) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <INDENT> return HttpResponse(json.dumps({'error': True... | Handle creating shortened URLs | 6259901eac7a0e7691f73320 |
class _FileFormatter(logging.Formatter): <NEW_LINE> <INDENT> _LOG_MESSAGE_BEGIN = ( '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s ') <NEW_LINE> _LOG_MESSAGE_CONTEXT = '[%(cloud)s %(username)s %(project)s] ' <NEW_LINE> _LOG_MESSAGE_END = '%(message)s' <NEW_LINE> _LOG_DATE_FORMAT = '%Y-%m-%d %H:%M:%S' <NEW_... | Customize the logging format for logging handler | 6259901ebf627c535bcb22ea |
class GBCountySelect(Select): <NEW_LINE> <INDENT> def __init__(self, attrs=None): <NEW_LINE> <INDENT> super(GBCountySelect, self).__init__(attrs, choices=GB_REGION_CHOICES) | A Select widget that uses a list of UK Counties/Regions as its choices. | 6259901e287bf620b6272a21 |
class Master(object): <NEW_LINE> <INDENT> def __init__(self, opts): <NEW_LINE> <INDENT> self.opts = opts <NEW_LINE> <DEDENT> def _clear_old_jobs(self): <NEW_LINE> <INDENT> if self.opts['keep_jobs'] == 0: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> diff = self.opts['keep_jobs'] * 60 * 60 <NEW_LINE> keep = int(time.ti... | The salt master server | 6259901e5e10d32532ce4021 |
class NoSuchKey(PKCS11Error): <NEW_LINE> <INDENT> pass | No key matching the parameters was found. | 6259901e8c3a8732951f7391 |
class Bead: <NEW_LINE> <INDENT> def __init__(self, index=0): <NEW_LINE> <INDENT> self.index = int(index) <NEW_LINE> self.color = color.Color() <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Bead(index={}, color={})".format(self.index, self.color) <NEW_LINE> <DEDENT> def copy_color(self, color): <NE... | Bead represents a single rosary bead. | 6259901e925a0f43d25e8e7b |
class MyClass: <NEW_LINE> <INDENT> def say(): <NEW_LINE> <INDENT> print("Hello") <NEW_LINE> <DEDENT> def instance_say(self): <NEW_LINE> <INDENT> print('Hello') <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def static_say(): <NEW_LINE> <INDENT> print("Hello") <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def class_say(cls)... | Class method:
One use people have found for class methods is to create inheritable alternative constructors.
@classmethod function is callable without instantiating the class, but its definition follows Sub class,
not Parent class, via inheritance. That’s because the first argument for @classmethod function must always... | 6259901e507cdc57c63a5bdd |
@base.ReleaseTracks(base.ReleaseTrack.ALPHA) <NEW_LINE> class CreateAlpha(Create): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> Create.disks_arg = disks_flags.MakeDiskArg(plural=True) <NEW_LINE> _CommonArgs( parser, disks_flags.SOURCE_SNAPSHOT_ARG, include_physical_block_size_suppo... | Create Google Compute Engine persistent disks. | 6259901e8c3a8732951f7393 |
class Camera(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self, camera_to_world, s_open, s_close, film): <NEW_LINE> <INDENT> self.camera_to_world = camera_to_world <NEW_LINE> self.shutter_open = s_open <NEW_LINE> self.shutter_close = s_close <NEW_LINE> self.film = film <NEW_LINE> if came... | Interface Class for all cameras. | 6259901ea8ecb0332587205a |
class Connector(GenericConnector): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> GenericConnector.__init__(self) <NEW_LINE> <DEDENT> def connect(self): <NEW_LINE> <INDENT> self.initConnection() <NEW_LINE> try: <NEW_LINE> <INDENT> msg = "what's the location of 'hsqldb.jar'? " <NEW_LINE> jar = readInput(msg... | Homepage: https://pypi.python.org/pypi/JayDeBeApi/ & http://jpype.sourceforge.net/
User guide: https://pypi.python.org/pypi/JayDeBeApi/#usage & http://jpype.sourceforge.net/doc/user-guide/userguide.html
API: -
Debian package: -
License: LGPL & Apache License 2.0 | 6259901e925a0f43d25e8e7f |
class ClientThread (threading.Thread): <NEW_LINE> <INDENT> def __init__ (self, client, addr): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.client = client <NEW_LINE> self.addr = addr <NEW_LINE> <DEDENT> def run (self): <NEW_LINE> <INDENT> data = self.client.recv(4).decode('utf-8') <NEW_LINE> if d... | Thread for each client connect | 6259901ed18da76e235b786b |
@utils.use_signature(core.TopLevelLayerSpec) <NEW_LINE> class LayerChart(TopLevelMixin, EncodingMixin, core.TopLevelLayerSpec): <NEW_LINE> <INDENT> def __init__(self, data=Undefined, layer=(), **kwargs): <NEW_LINE> <INDENT> for spec in layer: <NEW_LINE> <INDENT> _check_if_valid_subspec(spec, 'LayerChart') <NEW_LINE> <D... | A Chart with layers within a single panel | 6259901e30c21e258be99652 |
class VideoPlugin(BasePlugin): <NEW_LINE> <INDENT> ATTRIBUTE_NAMES = ['topicName', 'height', 'width', 'alwaysOn', 'updateRate'] <NEW_LINE> def __init__(self, name=None, filename=None, topic_name=None, height=None, width=None, always_on=None, update_rate=None): <NEW_LINE> <INDENT> super(VideoPlugin, self).__init__(name,... | Class defining the plugin used to simulate video on a robot
plugin
topicName
height
width
alwaysOn
updateRate | 6259901e56b00c62f0fb36fe |
class FetchApprovalTest(TestBase): <NEW_LINE> <INDENT> def create_several_approvals_for_course(self, number_of_courses = 1): <NEW_LINE> <INDENT> teacher = self.create_and_return_local_user() <NEW_LINE> for N in range(number_of_courses): <NEW_LINE> <INDENT> course_id = new_course({ 'teacher' : teacher.key.id(), 'title' ... | test the implementation of the controllers which fetch approvals | 6259901ed18da76e235b786d |
class Related(factory.Factory): <NEW_LINE> <INDENT> FACTORY_FOR = ckan.model.Related <NEW_LINE> type = 'idea' <NEW_LINE> description = 'Look, a description!' <NEW_LINE> url = 'http://example.com' <NEW_LINE> title = factory.Sequence(lambda n: 'test title {n}'.format(n=n)) <NEW_LINE> @classmethod <NEW_LINE> def _build(cl... | A factory class for creating related items. | 6259901e63f4b57ef0086492 |
class Cell(): <NEW_LINE> <INDENT> def __init__(self, row_num, col_num, number): <NEW_LINE> <INDENT> self.RowNum = row_num <NEW_LINE> self.ColNum = col_num <NEW_LINE> self.Number = number <NEW_LINE> self.Neighbours = CellRelationships() <NEW_LINE> <DEDENT> def describe(self): <NEW_LINE> <INDENT> description = ['#:{}'.fo... | Structure to represent a cell, with connected cells.. | 6259901e30c21e258be99656 |
class ListFollowers(ListAPIView): <NEW_LINE> <INDENT> serializer_class = UserSerializer <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return self.request.user.followers.all() | get: Get a list of all followers of the logged in user (authentication required) | 6259901e8c3a8732951f739b |
@ddt.ddt <NEW_LINE> class FilenameGeneratorTestCase(TestCase): <NEW_LINE> <INDENT> NOW = datetime.strptime('1974-06-22T01:02:03', '%Y-%m-%dT%H:%M:%S').replace(tzinfo=UTC) <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(FilenameGeneratorTestCase, self).setUp() <NEW_LINE> datetime_patcher = patch.object( common.dja... | Tests for course_and_time_based_filename_generator | 6259901e462c4b4f79dbc84c |
class SMORMS3(Optimizer): <NEW_LINE> <INDENT> def __init__(self, lr=0.001, epsilon=1e-16, decay=0., **kwargs): <NEW_LINE> <INDENT> super(SMORMS3, self).__init__(**kwargs) <NEW_LINE> self.__dict__.update(locals()) <NEW_LINE> with K.name_scope(self.__class__.__name__): <NEW_LINE> <INDENT> self.lr = K.variable(lr) <NEW_LI... | SMORMS3 optimizer.
Implemented based on http://sifter.org/~simon/journal/20150420.html
# Arguments
lr: float >= 0. Learning rate.
epsilon: float >= 0. Fuzz factor.
decay: float >= 0. Learning rate decay over each update. | 6259901e8c3a8732951f739d |
class DescribePolicyConditionListConfigManual(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.CalcType = None <NEW_LINE> self.CalcValue = None <NEW_LINE> self.ContinueTime = None <NEW_LINE> self.Period = None <NEW_LINE> self.PeriodNum = None <NEW_LINE> self.StatType = None <NEW_LINE> <D... | DescribePolicyConditionList.ConfigManual
| 6259901ed164cc6175821dc4 |
class RecipeDetailSerializer(RecipeSerializer): <NEW_LINE> <INDENT> ingredients = IngredientSerializer(many=True, read_only=True) <NEW_LINE> tags = TagSerializer(many=True, read_only=True) | Create recipe detail. | 6259901e21a7993f00c66dc2 |
class ValueViewSet(DefaultMixin,viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Value.objects.all() <NEW_LINE> serializer_class = ValueSerializer | Endpoint da API para listar e criar Inspections | 6259901e30c21e258be9965a |
class PubDetail(restful.Resource): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get(): <NEW_LINE> <INDENT> parser = reqparse.RequestParser() <NEW_LINE> parser.add_argument('pub_id', type=str, required=True, help=u'酒吧pub_id必须。') <NEW_LINE> parser.add_argument('user_id', type=str, required=True, help=u'登录用户id必须。') <N... | 酒吧详细 | 6259901eac7a0e7691f73330 |
class ConjugateTranspose(Operator): <NEW_LINE> <INDENT> name = "^H" <NEW_LINE> arity = matchpy.Arity.unary <NEW_LINE> infix = False <NEW_LINE> def __init__(self, *operands, variable_name=None): <NEW_LINE> <INDENT> super().__init__(*operands, variable_name=variable_name) <NEW_LINE> <DEDENT> @property <NEW_LINE> def siz... | docstring for ConjugateTranspose | 6259901e287bf620b6272a31 |
class ExposeServiceRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ServiceId = None <NEW_LINE> self.ExposeType = None <NEW_LINE> self.VpcId = None <NEW_LINE> self.SubnetId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ServiceId = params.get(... | ExposeService请求参数结构体
| 6259901e925a0f43d25e8e8b |
@registry.register_problem <NEW_LINE> class ImageCelebahq256Dmol(ImageCelebahq256): <NEW_LINE> <INDENT> def eval_metrics(self): <NEW_LINE> <INDENT> return [ metrics.Metrics.DMOL_PERPLEXITY ] | CelebA-HQ dataset with discretized mixture of logistics for evaluation. | 6259901e30c21e258be9965e |
@dataclass <NEW_LINE> class Dataset: <NEW_LINE> <INDENT> train: pd.DataFrame <NEW_LINE> test: pd.DataFrame <NEW_LINE> target: str <NEW_LINE> def __post_init__(self): <NEW_LINE> <INDENT> self._split_x_y() <NEW_LINE> self._register_feature_names() <NEW_LINE> self._impute_and_encode() <NEW_LINE> <DEDENT> def _split_x_y(se... | A container for convenient access to raw and preprocessed data. | 6259901ed164cc6175821dca |
class DCAImpl(LDAImpl): <NEW_LINE> <INDENT> def __init__(self,scaledData,labels,rho=0,rho_prime=0): <NEW_LINE> <INDENT> LDAImpl.__init__(self,scaledData,labels); <NEW_LINE> self.rho = rho; <NEW_LINE> self.rho_prime = rho_prime; <NEW_LINE> <DEDENT> def setRhoAndRho_prime(self,rho,rho_prime): <NEW_LINE> <INDENT> self.rho... | Self-implemented Discriminant Analysis, which is inherited from LDA. Comparint to LDA, DCA has two ridge parameters,
rho and rho_prime, the scatter matrix is different from LDA. | 6259901e91af0d3eaad3ac6f |
class PostTagAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ('post_title', 'tag_name') | Post tag admin | 6259901e5166f23b2e24421e |
class ShelfSimIndex(MapSimIndex): <NEW_LINE> <INDENT> def __init__(self, filename, flag): <NEW_LINE> <INDENT> name_to_docid_map = StrKeyMap(DBShelf(filename + '_n2d', flag)) <NEW_LINE> docid_to_name_map = StrKeyMap(DBShelf(filename + '_d2n', flag)) <NEW_LINE> docid_to_feature_map = StrKeyMap(DBShelf(filename + '_feat',... | Inherits from :class:`pysimsearch.sim_index.MapSimIndex`.
Shelf-based implementation of :class:`SimIndex`. Indexes are backed with
persistent :class:`shelve.DbfilenameShelf` objects. | 6259901e462c4b4f79dbc855 |
class ProductLog(LogBaseModel): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = "product_log" <NEW_LINE> verbose_name = "货品日志" <NEW_LINE> verbose_name_plural = verbose_name <NEW_LINE> <DEDENT> @property <NEW_LINE> def operate_module(self): <NEW_LINE> <INDENT> return OperateLogModule.PRODUCT <NEW_LINE> <D... | 货品日志模型类 | 6259901e507cdc57c63a5bef |
class LruDict(collections.MutableMapping): <NEW_LINE> <INDENT> def __init__(self, data=None, **kwargs): <NEW_LINE> <INDENT> self._store = collections.OrderedDict() <NEW_LINE> if data is None: <NEW_LINE> <INDENT> data = {} <NEW_LINE> <DEDENT> self.update(data, **kwargs) <NEW_LINE> <DEDENT> def __getitem__(self, key): <N... | All [] operations will change order of the key
WARNING: If used with simpy, OrderedDict.items() and related functions
are very slow (5 secs for a few thousands of items). | 6259901e8c3a8732951f73a6 |
class Log(object): <NEW_LINE> <INDENT> def __init__(self, stats=default_stats()): <NEW_LINE> <INDENT> self.stats = stats <NEW_LINE> self.logbook = deap.tools.Logbook() <NEW_LINE> self.logbook.header = ['gen', 'nevals'] + (self.stats.fields if self.stats else []) <NEW_LINE> <DEDENT> def record(self, pop, gen, nevals, ve... | Attributes
----------
stats: deap.tools.Statistics
The statistics to be logged.
logbook: deap.tools.Logbook
| 6259901e6fece00bbaccc807 |
class MultiplexDepthCacheManager(object): <NEW_LINE> <INDENT> _default_refresh = 60 * 30 <NEW_LINE> def __init__( self, client: AsyncClient, loop: asyncio.AbstractEventLoop, symbols: List[str], coro: Optional[Callable] = None, coro_throttle_count: int = 0, refresh_interval: int = _default_refresh, ) -> None: <NEW_LINE>... | Connect to multiple depth streams with one ws connection | 6259901e8c3a8732951f73a8 |
class _KexServerStub(_KexConnectionStub): <NEW_LINE> <INDENT> def __init__(self, alg, gss_host, peer): <NEW_LINE> <INDENT> gss = GSSServer(gss_host) if gss_host else None <NEW_LINE> super().__init__(alg, gss, peer, True) <NEW_LINE> if gss_host and 'no_host_key' in gss_host: <NEW_LINE> <INDENT> self._server_host_key = N... | Stub class for server connection | 6259901e5166f23b2e244224 |
class UpdateInstallationInputSet(InputSet): <NEW_LINE> <INDENT> def set_Installation(self, value): <NEW_LINE> <INDENT> super(UpdateInstallationInputSet, self)._set_input('Installation', value) <NEW_LINE> <DEDENT> def set_ApplicationID(self, value): <NEW_LINE> <INDENT> super(UpdateInstallationInputSet, self)._set_input(... | An InputSet with methods appropriate for specifying the inputs to the UpdateInstallation
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 6259901ebf627c535bcb2304 |
class V1VolumeMount(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'mount_path': 'str', 'name': 'str', 'read_only': 'bool', 'sub_path': 'str' } <NEW_LINE> self.attribute_map = { 'mount_path': 'mountPath', 'name': 'name', 'read_only': 'readOnly', 'sub_path': 'subPath' } <NEW_... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259901e1d351010ab8f496b |
class TestX264(unittest.TestCase): <NEW_LINE> <INDENT> def test_instantiation(self): <NEW_LINE> <INDENT> x264 = X264() <NEW_LINE> self.assertEqual(x264.codec_name, 'libx264') <NEW_LINE> self.assertEqual(x264.crf, 20.0) <NEW_LINE> self.assertIsNone(x264.qp) <NEW_LINE> self.assertIsNone(x264.bitrate) <NEW_LINE> self.asse... | Tests all X264 initial options. | 6259901ed18da76e235b7875 |
class Intersection: <NEW_LINE> <INDENT> def __init__(self, max_cars): <NEW_LINE> <INDENT> self.semaphore_times = [] <NEW_LINE> self.num_cars = [] <NEW_LINE> self.flags = [] <NEW_LINE> for i in range(4): <NEW_LINE> <INDENT> self.semaphore_times.append(randint(1,8)*15) <NEW_LINE> self.max_cars = randint(0, max_cars) <NEW... | Common base class for all intersection | 6259901e796e427e5384f5d0 |
class Person(object): <NEW_LINE> <INDENT> def __init__(self, name=None, rel=None, contact=None, newperson=True): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.rel = rel <NEW_LINE> self.contact = contact <NEW_LINE> self.newperson = newperson <NEW_LINE> <DEDENT> def add_name(self, name): <NEW_LINE> <INDENT> self.n... | Class implemented to create a person and add it to the database. A person is someone relevant to the
user (relative, friend, ...). At the moment the person has 3 fields into it: name, relationship status and
contact number. | 6259901e507cdc57c63a5bf5 |
class PercentileMetricValue(MetricValue): <NEW_LINE> <INDENT> _validation = { '_count': {'readonly': True}, 'average': {'readonly': True}, 'maximum': {'readonly': True}, 'minimum': {'readonly': True}, 'timestamp': {'readonly': True}, 'total': {'readonly': True}, 'p10': {'readonly': True}, 'p25': {'readonly': True}, 'p5... | Represents percentile metrics values.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar _count: The number of values for the metric.
:vartype _count: float
:ivar average: The average value of the metric.
:vartype average: float
:ivar maximum: The max value of the metric.
:v... | 6259901e21a7993f00c66dce |
class Shenliao_Test(Mytest): <NEW_LINE> <INDENT> def test1(self): <NEW_LINE> <INDENT> po = Shenliao(self.driver) <NEW_LINE> po.open_ft() <NEW_LINE> po.switch_to_toupiao() <NEW_LINE> sleep(3) <NEW_LINE> self.assertEqual(self.driver.current_url,'http: // bbs.0513.org / forum.php?mod = post & action = newthread & special ... | 发帖测试 | 6259901e5166f23b2e244226 |
class Estimator: <NEW_LINE> <INDENT> def __init__(self, z, conf_str): <NEW_LINE> <INDENT> self.k = 0 <NEW_LINE> self.sum = 0.0 <NEW_LINE> self.v = 0.0 <NEW_LINE> self.z = float(z) <NEW_LINE> self.conf_str = conf_str <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> self.k = 0 <NEW_LINE> self.sum = 0 <NEW_LINE> s... | Computes point estimates and confidence intervals | 6259901e462c4b4f79dbc85d |
class PageMeasurementUnitTestBase(unittest.TestCase): <NEW_LINE> <INDENT> def CreatePageSetFromFileInUnittestDataDir(self, test_filename): <NEW_LINE> <INDENT> return self.CreatePageSet('file:///' + os.path.join( '..', '..', 'unittest_data', test_filename)) <NEW_LINE> <DEDENT> def CreatePageSet(self, test_filename): <NE... | unittest.TestCase-derived class to help in the construction of unit tests
for a measurement. | 6259901e1d351010ab8f496c |
class SubprocVecMAEnv(VecEnv): <NEW_LINE> <INDENT> def __init__(self, env_fns, spaces=None): <NEW_LINE> <INDENT> self.waiting = False <NEW_LINE> self.closed = False <NEW_LINE> nenvs = len(env_fns) <NEW_LINE> self.remotes, self.work_remotes = zip(*[Pipe() for _ in range(nenvs)]) <NEW_LINE> self.ps = [Process(target=work... | VecEnv that runs multiple environments in parallel in subproceses and communicates with them via pipes.
Recommended to use when num_envs > 1 and step() can be a bottleneck. | 6259901eac7a0e7691f7333c |
class BufCombN(PureUGen): <NEW_LINE> <INDENT> __documentation_section__ = 'Delay UGens' <NEW_LINE> __slots__ = () <NEW_LINE> _ordered_input_names = ( 'buffer_id', 'source', 'maximum_delay_time', 'delay_time', 'decay_time', ) <NEW_LINE> def __init__( self, buffer_id=None, calculation_rate=None, decay_time=1.0, delay_tim... | A buffer-based non-interpolating comb delay line unit generator.
::
>>> buffer_id = 0
>>> source = ugentools.In.ar(bus=0)
>>> ugentools.BufCombN.ar(
... buffer_id=buffer_id,
... source=source,
... )
BufCombN.ar() | 6259901e6fece00bbaccc80b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.