code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class GymEnvironment(VideoCapableEnvironment): <NEW_LINE> <INDENT> def __init__(self, env_name, state_builder=ALEStateBuilder(), repeat_action=4, no_op=30, monitoring_path=None): <NEW_LINE> <INDENT> assert isinstance(state_builder, StateBuilder), 'state_builder should inherit from StateBuilder' <NEW_LINE> assert isinst...
Wraps an Open AI Gym environment
62598ef95fcc89381b2655a2
@attr.s <NEW_LINE> class Client: <NEW_LINE> <INDENT> reader = attr.ib(type=asyncio.StreamReader) <NEW_LINE> writer = attr.ib(type=asyncio.StreamWriter) <NEW_LINE> close = attr.ib(type=asyncio.Event, default=asyncio.Event())
Represent a TCP client object.
62598ef97cff6e4e811b42d4
class TmpRootShelf(RootShelf,TmpDB): <NEW_LINE> <INDENT> def __init__( self, protocol = HIGHEST_PROTOCOL , compress = zlib.Z_DEFAULT_COMPRESSION , remove = True , keep = False , *args ): <NEW_LINE> <INDENT> TmpDB.__init__ ( ...
The actual class for TEMPORARY ROOT-based shelve-like data base it implement shelve-intergase with underlyinog ROOT-fiel storage - ROOT-object are stored directly in the ROOT-file, - other objects are pickled and stored via ROOT.TObjString see RootShelf
62598ef992d797404e387ff4
class TempAlreadyFreedError(GenericError): <NEW_LINE> <INDENT> def __init__(self, label): <NEW_LINE> <INDENT> GenericError.__init__(self, "Label '%s' already freed" % label) <NEW_LINE> self.label = label
Raised when a TEMP label has been already freed.
62598ef9aad79263cf42d101
class RequestHeaders(object): <NEW_LINE> <INDENT> def __init__(self, dict_): <NEW_LINE> <INDENT> if isinstance(dict_, RequestHeaders): <NEW_LINE> <INDENT> self._dict = dict_ <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._dict = dict((k.lower(), v) for k, v in dict_.iteritems()) <NEW_LINE> <DEDENT> <DEDENT> def get...
A custom dictionary impementation for headers which ignores the case of requests, since different HTTP libraries seem to mangle them.
62598ef9bf627c535bcafd65
class JWTAuthHook(pecan.hooks.PecanHook): <NEW_LINE> <INDENT> def on_route(self, state): <NEW_LINE> <INDENT> token = api_utils.decode_token(state.request) <NEW_LINE> if token: <NEW_LINE> <INDENT> state.request.environ[const.JWT_TOKEN_ENV] = token
A pecan hook that handles authentication with JSON Web Tokens.
62598ef901c39578d7f11695
class MappingTestCase(TestCase): <NEW_LINE> <INDENT> mapping = Instance(Mapping) <NEW_LINE> model = Instance(DomainModel) <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.mapping = Mapping( nodes=[ NodeMapping( containment_trait="nodes", element=DomainNode, dot_node=DotGraphNode(shape=NODE_SHAPE), tools=[MoveTool, ...
Tests for object mappings
62598ef93539df3088ecab9f
class Binary(binary_type): <NEW_LINE> <INDENT> def __new__(cls, data, subtype=BINARY_SUBTYPE): <NEW_LINE> <INDENT> if not isinstance(data, binary_type): <NEW_LINE> <INDENT> raise TypeError("data must be an " "instance of %s" % (binary_type.__name__,)) <NEW_LINE> <DEDENT> if not isinstance(subtype, int): <NEW_LINE> <IND...
Representation of BSON binary data. This is necessary because we want to represent Python strings as the BSON string type. We need to wrap binary data so we can tell the difference between what should be considered binary data and what should be considered a string when we encode to BSON. Raises TypeError if `data` i...
62598ef9ff9c53063f518f54
class Tokenizer(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._regexs = [] <NEW_LINE> self._assoc = {} <NEW_LINE> self._regex = None <NEW_LINE> <DEDENT> def add(self, kind, regex, func=None): <NEW_LINE> <INDENT> key = chr(ord('a') + len(self._regexs)) <NEW_LINE> self._regexs.append((key, reg...
Maintain a prioritized list of token regex
62598ef9f9cc0f698b1c4748
class CreateView(views.APIView): <NEW_LINE> <INDENT> serializer_class = SaltActionSerializer <NEW_LINE> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> data = self.request.data <NEW_LINE> minion = data['minion'] <NEW_LINE> formula = data['formula'] <NEW_LINE> test = data['test'] <NEW_LINE> host = Host.obj...
This class defines the create behavior of our rest api.
62598ef99c8ee8231303f5d5
class RandomDelayMockSocket(MockSocket): <NEW_LINE> <INDENT> def __init__(self, n_events=1, max_rnd_delay=1): <NEW_LINE> <INDENT> super().__init__(n_events=n_events) <NEW_LINE> self.__max_rnd_delay = max_rnd_delay <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> processed_events = 0 <NEW_LINE> while processed_eve...
A mock socket class which posts n_events at random intervals to the component bus Fabio Manganiello, 2015 <blacklight86@gmail.com>
62598ef930bbd72246468528
class LR_NEW: <NEW_LINE> <INDENT> B, X, y, m, n = None, None, None, None, None <NEW_LINE> x_plot, y_plot, plot_obj = None, None, None <NEW_LINE> def __init__(self, alphas=[.2]): <NEW_LINE> <INDENT> self.alphas = alphas <NEW_LINE> self.plot_obj = PlotCostFunction(self.alphas) <NEW_LINE> <DEDENT> def init_lr(self): <NEW_...
Implementação melhorada de regressão linear - com gradient descent e normal equation
62598ef944b2445a339b5de7
class AMSLTask(DefaultTask): <NEW_LINE> <INDENT> TAG = 'amsl'
Base class for AMSL related tasks.
62598ef94527f215b58e87f5
class BaseView(MethodView): <NEW_LINE> <INDENT> ARTICLE = False <NEW_LINE> def get_template_name(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def get_context(self): <NEW_LINE> <INDENT> return dict() <NEW_LINE> <DEDENT> def render_template(self, context=dict()): <NEW_LINE> <INDENT> with app...
Base view to be implemented by every other class based view
62598ef9627d3e7fe0e05780
class AdvancedEdit(urwid.Edit): <NEW_LINE> <INDENT> def setCompletionMethod(self, callback=None): <NEW_LINE> <INDENT> assert callable(callback) or callback is None <NEW_LINE> self.completion_cb = callback <NEW_LINE> self.completion_data = dict() <NEW_LINE> <DEDENT> def keypress(self, size, key): <NEW_LINE> <INDENT> if ...
Edit box with some custom improvments new chars: - C-a: like 'home' - C-e: like 'end' - C-k: remove everything on the right of the cursor - C-w: remove the word on the back
62598ef921bff66bcd721549
class LevelVar(Tkinter.Variable): <NEW_LINE> <INDENT> def __init__(self, master, name, level): <NEW_LINE> <INDENT> Tkinter.Variable.__init__(self, master, value=level) <NEW_LINE> self.name = name <NEW_LINE> self.trace('w', self.callback) <NEW_LINE> <DEDENT> def callback(self, *args): <NEW_LINE> <INDENT> cmd.isolevel(se...
Tk variable that is bound to an isocontour object
62598ef97b180e01f3e484c0
class AsyncQueue(object): <NEW_LINE> <INDENT> def __init__(self, loop): <NEW_LINE> <INDENT> self.loop = loop <NEW_LINE> self._queue = deque() <NEW_LINE> self._dispatcher = pyuv.Prepare(self.loop) <NEW_LINE> self._dispatcher.start(self._send) <NEW_LINE> if hasattr(self._dispatcher, 'unref'): <NEW_LINE> <INDENT> self._di...
Asynchronous queue used to receive messages. It allows you to queue messages that will be handled later by the application:: # define the queue q = AsyncQueue(loop) # ... send a message q.send(callable)
62598ef9cc40096d61619652
class ReportJSONEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, Report): <NEW_LINE> <INDENT> report_object = {} <NEW_LINE> for report in obj.parts: <NEW_LINE> <INDENT> report_object[report.source] = ReportJSONEncoder().default(report) <NEW_LINE> <DEDENT> ret...
Converts reports, report parts and messages into JSON strings. The default method returns a serializable object for all three classes containing report data. Every time either a report, a part of a report or a message has to be serialized to JSON, this encoder can be used: >>> json.dumps(some_report, default=ReportJSO...
62598ef956ac1b37e6300adf
class GroupTypeProjects(BASE, CinderBase): <NEW_LINE> <INDENT> __tablename__ = "group_type_projects" <NEW_LINE> __table_args__ = ( sa.UniqueConstraint('group_type_id', 'project_id', 'deleted'), CinderBase.__table_args__, ) <NEW_LINE> id = sa.Column(sa.Integer, primary_key=True) <NEW_LINE> group_type_id = sa.Column( sa....
Represent projects associated group_types.
62598ef967a9b606de5448c3
class ConnectivityException(Exception): <NEW_LINE> <INDENT> pass
Exception raised for errors in the ping modular input.
62598ef956ac1b37e6300ae0
class ContactOverviewView(BrowserView): <NEW_LINE> <INDENT> __used_for__ = IBoundContact <NEW_LINE> @property <NEW_LINE> def person(self): <NEW_LINE> <INDENT> return self.context.__parent__ <NEW_LINE> <DEDENT> def _extract_attrs(self, contact, interface, conjunctive=", ", add_title=False): <NEW_LINE> <INDENT> parts = [...
View class for listing all relevant contact information of a person.
62598ef99f288636728170f1
class IS_UTC_DATE(IS_UTC_DATETIME): <NEW_LINE> <INDENT> def __init__(self, format = None, error_message = None, offset_error = None, calendar = None, minimum = None, maximum = None, ): <NEW_LINE> <INDENT> super(IS_UTC_DATE, self).__init__(format = format, error_message = error_message, offset_error = offset_error, cale...
Validates a given date and returns the corresponding datetime.date object in UTC. Accepted input types are strings (in local format), datetime.datetime and datetime.date. Example: - INPUT(_type="text", _name="name", requires=IS_UTC_DATE()) @note: dates stretch 8 hours West and 16 hours East of the current ...
62598ef90fa83653e46f37d6
class PostsConfig(AppConfig): <NEW_LINE> <INDENT> name = 'posts' <NEW_LINE> varbose_name = 'Posts'
Post application settings
62598ef95fdd1c0f98e5c899
class TokensTelegram(models.Model): <NEW_LINE> <INDENT> bot = models.OneToOneField(Bots, verbose_name='Bot') <NEW_LINE> token = models.CharField(verbose_name='Token', max_length=250) <NEW_LINE> created_date = models.DateTimeField(verbose_name='Created date', auto_now=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> ver...
Данные ботов в Telegram
62598ef97cff6e4e811b42d6
class LibvirtNFSVolumeDriver(LibvirtBaseVolumeDriver): <NEW_LINE> <INDENT> def __init__(self, connection): <NEW_LINE> <INDENT> super(LibvirtNFSVolumeDriver, self).__init__(connection, is_block_dev=False) <NEW_LINE> <DEDENT> def _get_device_path(self, connection_info): <NEW_LINE> <INDENT> path = os.path.join(CONF.libvir...
Class implements libvirt part of volume driver for NFS.
62598ef9442bda511e95ad55
class InstrumentCommand(BaseEnum): <NEW_LINE> <INDENT> Interrupt_instrument = "!!!!!" <NEW_LINE> Analog_scaling = "$asv" <NEW_LINE> Averaging_value = "$ave" <NEW_LINE> Measurement_1_dark_count = "$m1d" <NEW_LINE> Measurement_1_slope = "$m1s" <NEW_LINE> Measurement_2_dark_count = "$m2d" <NEW_LINE> Measurement_2_slope = ...
Instrument command strings
62598ef9283ffb24f3cf219f
class DevConfig(Config): <NEW_LINE> <INDENT> ENV = 'dev' <NEW_LINE> DEBUG = True <NEW_LINE> SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'postgres://auppxzvqwsyije:8fb06fca4d0ef56a7ef181fb38718c0320108b7f1890347ea712ed908fef359a@ec2-54-234-28-165.compute-1.amazonaws.com:5432/dd0ltlic7j2vjf') <NEW_LINE> CACH...
Development configuration.
62598ef966656f66f7d58cd9
class SimplePatient(object): <NEW_LINE> <INDENT> def __init__(self, viruses, maxPop): <NEW_LINE> <INDENT> self.viruses = viruses[:] <NEW_LINE> self.maxPop = maxPop <NEW_LINE> <DEDENT> def getTotalPop(self): <NEW_LINE> <INDENT> return len(self.viruses) <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDENT> virusToCle...
Representation of a simplified patient. The patient does not take any drugs and his/her virus populations have no drug resistance.
62598ef97d43ff2487426875
class MCP3911(SPIADC): <NEW_LINE> <INDENT> def read_data_array(self, length: int, ch=0, width=24) -> [int]: <NEW_LINE> <INDENT> assert ch in [0, 1], 'ADC channel must be 0 or 1' <NEW_LINE> assert width in [16, 24], 'width must be 16 or 24' <NEW_LINE> addr = Address.CHANNEL0 if ch == 0 else Address.CHANNEL1 <NEW_LINE> b...
24bit 2ch ADC
62598ef9ff9c53063f518f56
class BetaBotCommandParserStub(object): <NEW_LINE> <INDENT> pass <NEW_LINE> def Parse(self, request, timeout, metadata=None, with_call=False, protocol_options=None): <NEW_LINE> <INDENT> pass <NEW_LINE> raise NotImplementedError() <NEW_LINE> <DEDENT> Parse.future = None
The Beta API is deprecated for 0.15.0 and later. It is recommended to use the GA API (classes and functions in this file not marked beta) for all further purposes. This class was generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.
62598ef9851cf427c66b6bbb
class JunosSingleRpStateMachine(StateMachine): <NEW_LINE> <INDENT> def create(self): <NEW_LINE> <INDENT> shell = State('shell', patterns.shell_prompt) <NEW_LINE> enable = State('enable', patterns.enable_prompt) <NEW_LINE> config = State('config', patterns.config_prompt) <NEW_LINE> config_dialog = Dialog([ [patterns.com...
Defines Junos StateMachine for singleRP Statemachine keeps in track all the supported states for this platform, also have detail about moving from one state to another
62598ef9aad79263cf42d104
class EditChatAdmin(Object): <NEW_LINE> <INDENT> ID = 0xa9e69f2e <NEW_LINE> def __init__(self, chat_id: int, user_id, is_admin: bool): <NEW_LINE> <INDENT> self.chat_id = chat_id <NEW_LINE> self.user_id = user_id <NEW_LINE> self.is_admin = is_admin <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *args)...
Attributes: ID: ``0xa9e69f2e`` Args: chat_id: ``int`` ``32-bit`` user_id: Either :obj:`InputUserEmpty <pyrogram.api.types.InputUserEmpty>`, :obj:`InputUserSelf <pyrogram.api.types.InputUserSelf>` or :obj:`InputUser <pyrogram.api.types.InputUser>` is_admin: ``bool`` Raises: :obj:`Error <pyrogram.Er...
62598ef9099cdd3c63674852
class AutoHideScrollbar(ttk.Scrollbar): <NEW_LINE> <INDENT> def __init__(self, parent, **kwargs): <NEW_LINE> <INDENT> ttk.Scrollbar.__init__(self, parent, **kwargs) <NEW_LINE> self.width = self._get_width() <NEW_LINE> <DEDENT> def _get_width(self): <NEW_LINE> <INDENT> return float(self.cget('width')) <NEW_LINE> <DEDENT...
AutoHideScrollbar disappears if the set is from 0.0 to 1.0 and reappears automatically if the scroll range becomes less than 100%.
62598ef921bff66bcd72154b
class BaseResource: <NEW_LINE> <INDENT> def create(self, data): <NEW_LINE> <INDENT> obj = self.model.create(**data) <NEW_LINE> return obj <NEW_LINE> <DEDENT> def fetch(self, obj_id): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> obj = self.model.get(self.model.id == obj_id) <NEW_LINE> <DEDENT> except (self.model.DoesNot...
Abstract class for falcon resources Has methods for orm interactions, queries, serializing and deserializing data for falcon consumption.
62598ef95fc7496912d476ed
class Ctxo(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.entities = dict() <NEW_LINE> self.version = kwargs.get('version', '1.0') <NEW_LINE> <DEDENT> def __getattr__(self, attr): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self.cdata[attr] <NEW_LINE> <DEDENT> except: <NEW_L...
Representation of an OpenURL Context Object
62598ef956ac1b37e6300ae1
class Subscription(object): <NEW_LINE> <INDENT> def __init__(self, configuration, adapter='authnet'): <NEW_LINE> <INDENT> if not adapter: <NEW_LINE> <INDENT> raise SubscriptionException('You must specify a gateway adapter') <NEW_LINE> <DEDENT> adapter = adapter.lower() <NEW_LINE> if adapter not in ADAPTERS: <NEW_LINE> ...
Instantiate with a given configuration.
62598ef9adb09d7d5dc08eb0
class ColorWindow(QtGui.QDialog): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ColorWindow, self).__init__() <NEW_LINE> self.setWindowTitle('Set Color Limits') <NEW_LINE> self.inputs() <NEW_LINE> <DEDENT> def inputs(self): <NEW_LINE> <INDENT> maxcolorlabel = QtGui.QLabel('Enter Max Color Value:') <...
Window with inputs to control color values in an Image
62598ef9e5267d203ee6a1fb
class MemorySource(object): <NEW_LINE> <INDENT> def __init__(self, s=None): <NEW_LINE> <INDENT> self.s = s <NEW_LINE> self.buffer = None <NEW_LINE> <DEDENT> @contextmanager <NEW_LINE> def open(self, mode='rb'): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> if 'r' in mode: <NEW_LINE> <INDENT> if self.s is not None: <NEW_...
Memory data source. E.g.:: >>> import petl as etl >>> data = b'foo,bar\na,1\nb,2\nc,2\n' >>> source = etl.MemorySource(data) >>> tbl = etl.fromcsv(source) >>> tbl +-----+-----+ | foo | bar | +=====+=====+ | 'a' | '1' | +-----+-----+ | 'b' | '2' | +-----+-----+ | 'c' ...
62598ef9aad79263cf42d105
class PriceRangeType (pyxb.binding.datatypes.string): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'PriceRangeType') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('http://ddex.net/xml/20120214/ddex.xsd', 3085, 3) <NEW_LINE> _Documentation = 'A ddex:Type of ddex:Price according to i...
A ddex:Type of ddex:Price according to its value range.
62598ef97047854f4633dcbe
class APIEndpoint(object): <NEW_LINE> <INDENT> def __init__(self, api, endpoint=None, cls=None): <NEW_LINE> <INDENT> self.api = api <NEW_LINE> self.endpoint = endpoint <NEW_LINE> self._cls = cls <NEW_LINE> <DEDENT> def _build_url(self, *parts): <NEW_LINE> <INDENT> return '/'.join(str(part).rstrip('/') for part in parts...
Represents an API endpoint for Gophish, containing common patterns for CRUD operations.
62598ef997e22403b38397e7
class KaHrPegawaiConfigWizard(models.TransientModel): <NEW_LINE> <INDENT> _name = 'ka_hr_pegawai.config.wizard' <NEW_LINE> def default_config(self): <NEW_LINE> <INDENT> return self.env['hr.config'].default_config() <NEW_LINE> <DEDENT> hr_config_id = fields.Many2one('hr.config', string="Config", default=default_config) ...
models.TransientModel setting for `hr` modules which saved on `hr.config`. _name = ka_hr_pegawai.config.wizard
62598ef944b2445a339b5de9
class TestInstallation(unittest.TestCase): <NEW_LINE> <INDENT> layer = INTEGRATION_TESTING <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> self.metaTypes = ('Survey', 'Sub Survey', 'Survey Date Question', 'Survey Matrix', 'Survey Matrix Question', 'Survey Select Question', ...
Ensure product is properly installed
62598ef901c39578d7f11699
class FullPoolContainerCreate(TestWithServers): <NEW_LINE> <INDENT> def test_no_space_cont_create(self): <NEW_LINE> <INDENT> err = "-1007" <NEW_LINE> threshold_percent = self.params.get("threshold_percent", "/run/pool/*") <NEW_LINE> self.prepare_pool() <NEW_LINE> self.log.info("Pool Query before write") <NEW_LINE> self...
Class for test to create a container in a pool with no remaining free space. :avocado: recursive
62598ef97b180e01f3e484c2
class SymbolType(OrderedEnum): <NEW_LINE> <INDENT> STAR_IMPORT = 1 <NEW_LINE> RELATIVE_STAR_IMPORT = 10 <NEW_LINE> IMPORT = 2 <NEW_LINE> RELATIVE_IMPORT = 3 <NEW_LINE> PACKAGE = 5 <NEW_LINE> MODULE = 6 <NEW_LINE> FUNCTION = 7 <NEW_LINE> CONSTANT = 8 <NEW_LINE> CLASS = 9 <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT>...
Symbol are ordered in reverse order of precedence. Higher order symbols types will take precedence if two symbol types have the same name. As an example, ff directory 'dir1' has '__init__.py' that imports '.module2', there will be two instances of symbol `dir1.module2', one of type IMPORT and another of type MODULE. T...
62598ef9cc40096d61619654
class RemoveKillTransformer(BaseWorkflowTransformer): <NEW_LINE> <INDENT> def process_workflow_after_parse_workflow_xml(self, workflow: Workflow): <NEW_LINE> <INDENT> kill_nodes = workflow.get_nodes_by_type(KillMapper) <NEW_LINE> for kill_node in kill_nodes: <NEW_LINE> <INDENT> upstream_nodes = workflow.find_upstream_n...
Remove Kill nodes with all relations when it's used in error flow.
62598ef9a8370b77170eecdc
class FloatTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_set_value(self): <NEW_LINE> <INDENT> model = ExampleModel() <NEW_LINE> number = 2.22 <NEW_LINE> model.float_field = number <NEW_LINE> self.assertEqual(model.float_field, number) <NEW_LINE> <DEDENT> def test_set_value_conversion_str(self): <NEW_LINE> <INDE...
Float field tests.
62598ef94c34283577618bde
class TestCompareXLSXFiles(ExcelComparisonTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.set_filename('table01.xlsx') <NEW_LINE> <DEDENT> def test_create_file(self): <NEW_LINE> <INDENT> workbook = Workbook(self.got_filename) <NEW_LINE> worksheet = workbook.add_worksheet() <NEW_LINE> worksheet.set_...
Test file created by XlsxWriter against a file created by Excel.
62598ef97cff6e4e811b42da
class ModuleMock(ScenarioExecutor, Provisioning, Reporter, FileLister): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ModuleMock, self).__init__() <NEW_LINE> self.postproc_exc = None <NEW_LINE> self.check_exc = None <NEW_LINE> self.prepare_exc = None <NEW_LINE> self.startup_exc = None <NEW_LINE> sel...
mock
62598ef9091ae35668703511
class InputMessagesFilterPinned(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = [] <NEW_LINE> ID = 0x1bb00451 <NEW_LINE> QUALNAME = "types.InputMessagesFilterPinned" <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(data: BytesIO, *args: Any) -> ...
This object is a constructor of the base type :obj:`~pyrogram.raw.base.MessagesFilter`. Details: - Layer: ``122`` - ID: ``0x1bb00451`` **No parameters required.**
62598ef9cc0a2c11144798fa
class OneSidedNB(MultinomialNB): <NEW_LINE> <INDENT> def __init__(self, alpha=1.0, fit_prior=True, class_prior=None): <NEW_LINE> <INDENT> self.alpha = alpha <NEW_LINE> self.fit_prior = fit_prior <NEW_LINE> self.class_prior = class_prior <NEW_LINE> <DEDENT> def _joint_log_likelihood(self, X): <NEW_LINE> <INDENT> probs =...
Uses only the words predictive of the positive class
62598ef94a966d76dd5ed7d0
class BookUpdate(View): <NEW_LINE> <INDENT> name = "update_book" <NEW_LINE> book_deleted = "The book is deleted !" <NEW_LINE> def __init__(self, book): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.title = "Book Update" <NEW_LINE> self.book = book <NEW_LINE> self.commands += [commands.BookDetails] <NEW_LINE> <...
Display the book updates.
62598ef966656f66f7d58cdd
class TokenService: <NEW_LINE> <INDENT> def __init__( self, gcp_project_number: str, gcp_workload_id: str, gcp_workload_provider:str, gcp_service_account_email: str, aws_account_id: str, aws_role_name: str, aws_region: str, gcp_token_lifetime: str = "3600s", gcp_token_scopes: str = "https://www.googleapis.com/auth/clou...
Contains all vars and functions.
62598ef99c8ee8231303f5d8
class DeletePropertyGroup(object): <NEW_LINE> <INDENT> def __init__(self, property_group_name): <NEW_LINE> <INDENT> super(DeletePropertyGroup, self).__init__() <NEW_LINE> self._property_group_name = property_group_name <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> url_path = CONTACTS_API_SCRIPT...
Simulator for a successful call to :func:`~hubspot.contacts.property_groups.delete_property_group`.
62598ef9379a373c97d978f2
class TemporaryDirectory(Predefined): <NEW_LINE> <INDENT> name = "$TemporaryDirectory" <NEW_LINE> def evaluate(self, evaluation): <NEW_LINE> <INDENT> return String(TMP_DIR)
<dl> <dt>'$TemporaryDirectory' <dd>returns the directory used for temporary files. </dl> >> $TemporaryDirectory = ...
62598ef9aad79263cf42d107
class ModifyResBindDDoSPolicyResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Success = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("Success") is not None: <NEW_LINE> <INDENT> self.Success = SuccessC...
ModifyResBindDDoSPolicy返回参数结构体
62598ef9f9cc0f698b1c474b
class ftrl_proximal(object): <NEW_LINE> <INDENT> def __init__(self, alpha, beta, L1, L2, D, interaction): <NEW_LINE> <INDENT> self.alpha = alpha <NEW_LINE> self.beta = beta <NEW_LINE> self.L1 = L1 <NEW_LINE> self.L2 = L2 <NEW_LINE> self.D = D <NEW_LINE> self.interaction = interaction <NEW_LINE> self.n = [0.] * D <NEW_L...
Our main algorithm: Follow the regularized leader - proximal In short, this is an adaptive-learning-rate sparse logistic-regression with efficient L1-L2-regularization Reference: http://www.eecs.tufts.edu/~dsculley/papers/ad-click-prediction.pdf
62598ef901c39578d7f1169b
class PromoBuddyInfoStruct(object): <NEW_LINE> <INDENT> def __init__(self, buddyMid=None,): <NEW_LINE> <INDENT> self.buddyMid = buddyMid <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...
Attributes: - buddyMid
62598ef966673b3332c2eca8
class _AdamHandler(_OptimizerHandler): <NEW_LINE> <INDENT> def __init__(self, optimization_parameters): <NEW_LINE> <INDENT> super(_AdamHandler, self).__init__(optimization_parameters) <NEW_LINE> self._table_to_m_variables_dict = {} <NEW_LINE> self._table_to_v_variables_dict = {} <NEW_LINE> <DEDENT> def set_optimization...
Handles Adam specific logic.
62598ef93317a56b869bd9e1
@actions.register('snapshot') <NEW_LINE> class Snapshot(BaseAction): <NEW_LINE> <INDENT> schema = type_schema( 'snapshot', **{'copy-tags': {'type': 'array', 'items': {'type': 'string'}}, 'copy-volume-tags': {'type': 'boolean'}, 'tags': {'type': 'object'}, 'exclude-boot': {'type': 'boolean', 'default': False}}) <NEW_LIN...
Snapshot the volumes attached to an EC2 instance. Tags may be optionally added to the snapshot during creation. - `copy-volume-tags` copies all the tags from the specified volume to the corresponding snapshot. - `copy-tags` copies the listed tags from each volume to the snapshot. This is mutually exclusive with ...
62598ef9f548e778e5969e86
class FakeEvent: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._flag = False <NEW_LINE> self._waiting = False <NEW_LINE> <DEDENT> def is_set(self): <NEW_LINE> <INDENT> return self._flag <NEW_LINE> <DEDENT> def wait(self, timeout): <NEW_LINE> <INDENT> self._waiting = True <NEW_LINE> while self._waitin...
Fake event class which enables fine control over the child thread execution.
62598ef9a8370b77170eecdd
class _Check_Use_Without_Def(_AST_Traversal): <NEW_LINE> <INDENT> def pre_ident(self, node): <NEW_LINE> <INDENT> if node.sem["varscope"].has_key(node.attr): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> elif Variables.variables.has_key(node.attr): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT...
Abort if we encounter an undefined variable.
62598ef97b180e01f3e484c3
class FragmentError(TypyException): <NEW_LINE> <INDENT> pass
An invariant was violated by a fragment.
62598ef9cc40096d61619655
class Classifier(object): <NEW_LINE> <INDENT> def __init__(self, db): <NEW_LINE> <INDENT> super(Classifier, self).__init__() <NEW_LINE> self.db = db <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def analyze(db, filename, fv_obj, extra_args, use_cv=False): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def classify(self, i...
Base class for all eyepatch classifiers Provides basic interface for: 1. Directions to get training data and labels from db 2. Using the trained classifier
62598ef956ac1b37e6300ae5
class Deb03(Benchmark): <NEW_LINE> <INDENT> def __init__(self, dimensions=2): <NEW_LINE> <INDENT> Benchmark.__init__(self, dimensions) <NEW_LINE> self.change_dimensionality = True <NEW_LINE> self._bounds = list(zip([-1.0] * self.N, [1.0] * self.N)) <NEW_LINE> self.global_optimum = [[0.93388314, 0.68141781]] <NEW_LINE> ...
Deb 3 objective function. This class defines the Deb 3 [1]_ global optimization problem. This is a multimodal minimization problem defined as follows: .. math:: f_{ ext{Deb02}}(x) = - rac{1}{N} \sum_{i=1}^n \sin^6 \left[ 5 \pi \left ( x_i^{3/4} - 0.05 ight) ight ] Here, :math:`n` represents the numb...
62598ef94f6381625f198939
class StartCA(Tekuila): <NEW_LINE> <INDENT> API_URL = '/account/usage/api?key=' <NEW_LINE> def __init__(self, apikey=None, cap=None, warn_ratio=None, verbose=False): <NEW_LINE> <INDENT> super(self.__class__, self).__init__(apikey, cap, warn_ratio, verbose) <NEW_LINE> self._data = None <NEW_LINE> <DEDENT> def fetch_data...
Fetch and parse Start.ca quota API
62598ef9be7bc26dc92512e0
class Ownership(models.Model): <NEW_LINE> <INDENT> name = models.CharField( verbose_name="Nome", max_length=255, help_text="Nome da posse.", null=False, blank=False, ) <NEW_LINE> value = models.FloatField( verbose_name="Valor", help_text="Valor total da posse.", default=0 ) <NEW_LINE> owner = models.ForeignKey( Person,...
Class for ownerships model.
62598ef9167d2b6e312b5895
class Spell: <NEW_LINE> <INDENT> def __init__(self, cost: int): <NEW_LINE> <INDENT> self._mana_cost = cost <NEW_LINE> <DEDENT> def is_usable(self, caster: Creature) -> bool: <NEW_LINE> <INDENT> return caster.stats().magic_enabled() and (self._mana_cost <= caster.stats().mana()) <NEW_LINE> <DEDENT> def use(self, executo...
Base spell class.
62598ef9236d856c2adc8896
class RedirectHandler(BaseHTTPRequestHandler): <NEW_LINE> <INDENT> def _get_host(self) -> str: <NEW_LINE> <INDENT> parsed = urllib.parse.urlparse(self.headers['HOST']) <NEW_LINE> return parsed.netloc + parsed.path <NEW_LINE> <DEDENT> def _send_error_message(self, code: int): <NEW_LINE> <INDENT> message, explain = self....
A class which handles redirection from http to https.
62598ef9a05bb46b3848916e
class SegmentTree0(): <NEW_LINE> <INDENT> def __init__(self, n_, ele_id, op_func): <NEW_LINE> <INDENT> self.n = 1 << (n_ - 1).bit_length() <NEW_LINE> self.data = [ele_id] * (2 * self.n - 1) <NEW_LINE> self.ele_id = ele_id <NEW_LINE> self.op_func = op_func <NEW_LINE> <DEDENT> def __getitem__(self, i): <NEW_LINE> <INDENT...
0-indexed Segment Tree
62598ef9091ae35668703513
class ProjectsService(base_api.BaseApiService): <NEW_LINE> <INDENT> _NAME = u'projects' <NEW_LINE> def __init__(self, client): <NEW_LINE> <INDENT> super(PubsubV1beta2.ProjectsService, self).__init__(client) <NEW_LINE> self._method_configs = { } <NEW_LINE> self._upload_configs = { }
Service class for the projects resource.
62598ef963d6d428bbee10c9
class Rectangle: <NEW_LINE> <INDENT> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> <DEDENT> @property <NEW_LINE> def width(self): <NEW_LINE> <INDENT> return self.__width <NEW_LINE> <DEDENT> @width.setter <NEW_LINE> def width(self, value): <NEW_L...
this class defines a Rectangle
62598ef932920d7e50bc4928
class Point: <NEW_LINE> <INDENT> def __init__(self, x: float, y: float): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def distance_to(self, point) -> float: <NEW_LINE> <INDENT> return ((point.x - self.x) ** 2 + (point.y - self.y) ** 2) ** 0.5
Creates the essence of the vertex
62598ef9bf627c535bcafd6d
class DeleteHeader(object): <NEW_LINE> <INDENT> def __init__(*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def modify_header(*args): <NEW_LINE> <INDENT> return None
A header that should be deleted.
62598ef9283ffb24f3cf21a5
class Vector: <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def __add__(self, other): <NEW_LINE> <INDENT> return Vector(self.x + other.x, self.y + other.y) <NEW_LINE> <DEDENT> def __sub__(self, other): <NEW_LINE> <INDENT> return Vector(self.x - ot...
Objects used to manage Vectors
62598ef926068e7796d4b254
class HomematicipGenericDevice(Entity): <NEW_LINE> <INDENT> def __init__(self, home, device, post=None): <NEW_LINE> <INDENT> self._home = home <NEW_LINE> self._device = device <NEW_LINE> self.post = post <NEW_LINE> _LOGGER.info("Setting up %s (%s)", self.name, self._device.modelType) <NEW_LINE> <DEDENT> @property <NEW_...
Representation of an HomematicIP generic device.
62598ef992d797404e387ff8
class KasamiSequence: <NEW_LINE> <INDENT> pass
Kasami sequence [Not implemented yet].
62598ef9aad79263cf42d10a
class AutoencoderAdaGrad(Autoencoder): <NEW_LINE> <INDENT> def __init__(self, n_in, n_units, lr=0.01, mean=0, stddev=0.01): <NEW_LINE> <INDENT> super().__init__(n_in, n_units, lr, mean, stddev) <NEW_LINE> self.eps = 1e-8 <NEW_LINE> self.gW1_history = [[0] * n_in for _ in range(n_units)] <NEW_LINE> self.gb1_history = [0...
Simple Autoencoder implementation with one hidden layer, that uses the identity function f(x) = x as its activation function and optimizes with Stochastic Gradient Descent (SGD). The learning rates for each parameters is adapted independently using AdaGrad.
62598ef93317a56b869bd9e2
class BlacknetLogger(BlacknetConfigurationInterface): <NEW_LINE> <INDENT> def __init__(self, role, config): <NEW_LINE> <INDENT> BlacknetConfigurationInterface.__init__(self, config, role) <NEW_LINE> self.__write_lock = Lock() <NEW_LINE> self.__handle = None <NEW_LINE> self.__logpath = None <NEW_LINE> self.__loglvl = No...
Custom logger for Blacknet instances
62598ef9f548e778e5969e88
class CommandLineMoreEfficient(interfaces.plugins.FileConsumerInterface): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.output_dir = None <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> vollog = logging.getLogger(__name__) <NEW_LINE> vollog = logging.getLogger() <NEW_LINE> console = logging.St...
Constructs a command-line interface object for users to run plugins.
62598ef9099cdd3c63674855
class Namespace(object): <NEW_LINE> <INDENT> def __init__(self, json, source_file): <NEW_LINE> <INDENT> self.name = json['namespace'] <NEW_LINE> self.unix_name = _UnixName(self.name) <NEW_LINE> self.source_file = source_file <NEW_LINE> self.source_file_dir, self.source_file_filename = os.path.split(source_file) <NEW_LI...
An API namespace. Properties: - |name| the name of the namespace - |unix_name| the unix_name of the namespace - |source_file| the file that contained the namespace definition - |source_file_dir| the directory component of |source_file| - |source_file_filename| the filename component of |source_file| - |types| a map of...
62598ef95fc7496912d476f0
class RPolyclip(RPackage): <NEW_LINE> <INDENT> homepage = "https://cloud.r-project.org/package=polyclip" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/polyclip_1.10-0.tar.gz" <NEW_LINE> list_url = "https://cloud.r-project.org/src/contrib/Archive/polyclip" <NEW_LINE> version('1.10-0', sha256='74dabc0dfe...
polyclip: Polygon Clipping
62598ef971ff763f4b5e605b
class FreeWilsonDecomposition: <NEW_LINE> <INDENT> def __init__(self, rgroups, rgroup_to_descriptor_idx, fitter, r2, descriptors): <NEW_LINE> <INDENT> self.rgroups = rgroups <NEW_LINE> self.rgroup_to_descriptor_idx = rgroup_to_descriptor_idx <NEW_LINE> self.fitter = fitter <NEW_LINE> self.N = len(rgroup_to_descriptor_i...
FreeWilson decomposition rgroups - dictionary of rgroup to list of RGroups i.e. {'Core': [RGroup(...), ...] 'R1': [ RGroup(...), RGroup(...)], } rgroup_to_descriptor_idx - one hot encoding of smiles to descriptor index fitter - scikit learn compatible fitter used for regressi...
62598ef9167d2b6e312b5897
class Storage(StorageMixin): <NEW_LINE> <INDENT> client = None <NEW_LINE> serializer = None <NEW_LINE> serializer_class = Json <NEW_LINE> encoding = 'utf-8' <NEW_LINE> def __init__(self, id=None, timeout=None, autosave=True, config=None): <NEW_LINE> <INDENT> super(Storage, self).__init__(id, timeout, autosave) <NEW_LIN...
A redis based storage adapter for session data.
62598ef91f5feb6acb161550
class ReportTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.report = OneTimeReportFactory() <NEW_LINE> <DEDENT> def test_str(self): <NEW_LINE> <INDENT> self.assertEqual(str(self.report), '{obj.modified} @ {obj.task}'.format(obj=self.report))
Test case for ``ReportModel``
62598ef9091ae35668703515
class MultipartEncrypted(MIMEMultipart): <NEW_LINE> <INDENT> def __init__(self, protocol, boundary=None, _subparts=None): <NEW_LINE> <INDENT> MIMEMultipart.__init__( self, _subtype='encrypted', boundary=boundary, _subparts=_subparts) <NEW_LINE> self.set_param('protocol', protocol) <NEW_LINE> <DEDENT> def attach(self, p...
Multipart/encrypted MIME message according to RFC 1847. 2.2. Definition of Multipart/Encrypted (1) MIME type name: multipart (2) MIME subtype name: encrypted (3) Required parameters: boundary, protocol (4) Optional parameters: none (5) Security considerations: none The multipart/encrypted content type...
62598ef967a9b606de5448cc
class CshMode(FundamentalMode): <NEW_LINE> <INDENT> keyword = 'Csh' <NEW_LINE> editra_synonym = 'C-Shell Script' <NEW_LINE> stc_lexer_id = wx.stc.STC_LEX_BASH <NEW_LINE> start_line_comment = u'#' <NEW_LINE> end_line_comment = '' <NEW_LINE> icon = 'icons/page_white.png' <NEW_LINE> default_classprefs = ( StrParam('extens...
Stub major mode for editing Csh files. This major mode has been automatically generated and is a boilerplate/ placeholder major mode. Enhancements to this mode are appreciated!
62598ef997e22403b38397ed
class Sequential(Component): <NEW_LINE> <INDENT> @lagacy_default_name_arg <NEW_LINE> def __init__(self, layers, name=None, scope=None): <NEW_LINE> <INDENT> layers = tuple(layers) <NEW_LINE> if not layers: <NEW_LINE> <INDENT> raise ValueError('`components` must not be empty.') <NEW_LINE> <DEDENT> super(Sequential, self)...
Sequential neural network wrapper. It is a common task to build a sequential of neural network layers, sharing the same set of parameters. With the help of `Component`, one may reuse variables introduced by layer builders from a wide variety of third-party libraries, simply by calling these builders within `_call` me...
62598ef926068e7796d4b256
class CirculationItemIdentifier(RecordIdentifier): <NEW_LINE> <INDENT> __tablename__ = 'circulation_item_id' <NEW_LINE> __mapper_args__ = {'concrete': True} <NEW_LINE> recid = db.Column( db.BigInteger().with_variant(db.Integer, 'sqlite'), primary_key=True, autoincrement=True, )
Sequence generator for CirculationItem identifiers.
62598ef9283ffb24f3cf21a7
class PackageNotFound(TwineException): <NEW_LINE> <INDENT> pass
A package file was provided that could not be found on the file system. This is only used when attempting to register a package_file.
62598ef9aad79263cf42d10c
class NotAllowedWithThisStatus(Exception): <NEW_LINE> <INDENT> def __init__(self, job: 'tasks.models.Job'): <NEW_LINE> <INDENT> super(NotAllowedWithThisStatus, self).__init__( 'Action for job {} not allowed with status={}'.format( job, job.status, ) )
Not allowed with this status
62598ef9ff9c53063f518f5e
class Question(models.Model): <NEW_LINE> <INDENT> enonce = models.ForeignKey(Enonce) <NEW_LINE> granule = models.ForeignKey(Granule) <NEW_LINE> langue = models.CharField(max_length=5, choices=LISTE_LANGUES) <NEW_LINE> typq = models.CharField(max_length=3, choices=LISTE_TYPQ, default='exa') <NEW_LINE> libel = models.Tex...
Le modèle de base Question. Une question a un énoncé (Enonce). Une question se rattache à une granule. Elle est formulée dans une langue. Elle peut être de type (typq) 'qcm', 'exa' ou 'num'.
62598ef910dbd63aa1c6f47a
class AstraBackProjector3D(DataProcessor): <NEW_LINE> <INDENT> ASTRA_LABELS_VOL = ['vertical','horizontal_y','horizontal_x'] <NEW_LINE> ASTRA_LABELS_PROJ = ['vertical','angle','horizontal'] <NEW_LINE> def __init__(self, volume_geometry=None, sinogram_geometry=None, proj_geom=None, vol_geom=None): <NEW_LINE> <INDENT> kw...
AstraBackProjector3D Back project AcquisitionData to ImageData using ASTRA proj_geom, vol_geom. Input: AcquisitionData Parameter: proj_geom, vol_geom Output: ImageData
62598ef94428ac0f6e656e4a
class BaseGeometry: <NEW_LINE> <INDENT> def area(self): <NEW_LINE> <INDENT> raise Exception("area() is not implemented") <NEW_LINE> <DEDENT> def integer_validator(self, name, value): <NEW_LINE> <INDENT> if type(value) != int: <NEW_LINE> <INDENT> raise TypeError(name + " must be an integer") <NEW_LINE> <DEDENT> if value...
Represents a class called BaseGeometry
62598ef9cc40096d61619657
class RunErrorReportTests: <NEW_LINE> <INDENT> SKIP_REASONS = ["Missing attribute.", "No metadata.", "No config file.", "Missing input(s)."] <NEW_LINE> SAMPLE_NAMES = {"Kupffer-control", "Kupffer-hepatitis", "microglia-control", "microglia-cancer", "Teff", "Treg", "Tmem", "MC-circ", "Mac-tissue-res"} <NEW_LINE> @named_...
Tests for aggregation of submission failures.
62598ef97d847024c075accb
class SSHOptions(Processor): <NEW_LINE> <INDENT> def apply(self, user_input): <NEW_LINE> <INDENT> separators = CMDLINE_SEPARATORS + tuple(context.config["AssertTorify"]["proxy_commands"].split()) <NEW_LINE> if "ssh" not in get_commands(user_input, separators=separators): <NEW_LINE> <INDENT> return ProcessorAction.FORWA...
This processor makes sure that the -T option is present for ssh connections. This limits the amount of forensics evidence created and avoids conflicts between the remote TTY and the one emulated by FFM.
62598ef92c8b7c6e89bd20bf
class QueryMixin: <NEW_LINE> <INDENT> def query(self, query): <NEW_LINE> <INDENT> assert isinstance(query, str), 'Query shoud be a string.' <NEW_LINE> self.update(query=query) <NEW_LINE> return self
Field used to build the *query* parameter in the payload data
62598ef93617ad0b5ee04a26
class FlavorsAdminNegativeTestJSON(base.BaseV2ComputeAdminTest): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def resource_setup(cls): <NEW_LINE> <INDENT> super(FlavorsAdminNegativeTestJSON, cls).resource_setup() <NEW_LINE> if not test.is_extension_enabled('OS-FLV-EXT-DATA', 'compute'): <NEW_LINE> <INDENT> msg = "OS-FLV...
Tests Flavors API Create and Delete that require admin privileges
62598ef93539df3088ecabab
class TMQNoActionMethod(Exception): <NEW_LINE> <INDENT> pass
Namespace handler does not contain specified action
62598ef9442bda511e95ad5f
class CEnum(CASTNode): <NEW_LINE> <INDENT> def __init__(self, attributes=None, fields=None, **kw): <NEW_LINE> <INDENT> super(CEnum, self).__init__(**kw) <NEW_LINE> self.add_attributes(attributes) <NEW_LINE> self.fields = fields or [] <NEW_LINE> counter = CNumber(0) <NEW_LINE> for x in self.fields: <NEW_LINE> <INDENT> i...
A class representing an CEnum type.
62598ef955399d3f05624e25
class CdnRunMethod(methods.BaseMethod): <NEW_LINE> <INDENT> def __init__(self, job_args): <NEW_LINE> <INDENT> super(CdnRunMethod, self).__init__(job_args) <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> LOG.info('Interacting with the CDN...') <NEW_LINE> with indicator.Spinner(run=self.run_indicator): <NEW_LINE...
Setup and run the cdn Method.
62598ef9e5267d203ee6a203