code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class MockProcess(Process): <NEW_LINE> <INDENT> def __init__(self, rc=None, lines=None, func=None): <NEW_LINE> <INDENT> Process.__init__(self, quiet=True) <NEW_LINE> self.rc = rc or 0 <NEW_LINE> self.lines = lines or [] <NEW_LINE> self.func = func <NEW_LINE> <DEDENT> def popen(self, cmd, echo=True, echo2=True): <NEW_LI...
A Process we can tell what to return by - passing rc and lines, or - passing a function called as ``func(cmd)`` which returns rc and lines.
62598fcd656771135c489a52
class ProfileReport(object): <NEW_LINE> <INDENT> html = '' <NEW_LINE> file = None <NEW_LINE> def __init__(self, df, **kwargs): <NEW_LINE> <INDENT> sample = kwargs.get('sample', df.head()) <NEW_LINE> description_set = describe_df(df, **kwargs) <NEW_LINE> self.html = to_html(sample, description_set) <NEW_LINE> self.descr...
Generate a profile report from a Dataset stored as a pandas `DataFrame`. Used has is it will output its content as an HTML report in a Jupyter notebook. Attributes ---------- df : DataFrame Data to be analyzed bins : int Number of bins in histogram. The default is 10. check_correlation : boolean Wheth...
62598fcd851cf427c66b8695
class TransformerEncoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, embed_dim, num_heads, layers, attn_dropout=0.0, relu_dropout=0.0, res_dropout=0.0, embed_dropout=0.0, attn_mask=False): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.dropout = embed_dropout <NEW_LINE> self.attn_dropout = attn_dropout <...
Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`TransformerEncoderLayer`. Args: embed_tokens (torch.nn.Embedding): input embedding num_heads (int): number of heads layers (int): number of layers attn_dropout (float): dropout applied on the attention weights re...
62598fcd3d592f4c4edbb296
class ImageView(ViewBase): <NEW_LINE> <INDENT> @memoize <NEW_LINE> @decode <NEW_LINE> def image(self): <NEW_LINE> <INDENT> return self.context.tag()
View for IImage.
62598fcd091ae3566870500d
class SchemeMorphism_spec(SchemeMorphism): <NEW_LINE> <INDENT> def __init__(self, parent, phi, check=True): <NEW_LINE> <INDENT> SchemeMorphism.__init__(self, parent) <NEW_LINE> if check: <NEW_LINE> <INDENT> if not is_RingHomomorphism(phi): <NEW_LINE> <INDENT> raise TypeError("phi (=%s) must be a ring homomorphism" % ph...
Morphism of spectra of rings INPUT: - ``parent`` -- Hom-set whose domain and codomain are affine schemes. - ``phi`` -- a ring morphism with matching domain and codomain. - ``check`` -- boolean (optional, default:``True``). Whether to check the input for consistency. EXAMPLES:: sage: R.<x> = PolynomialRing(Q...
62598fcd7cff6e4e811b5e0a
class Test_login(unittest.TestCase): <NEW_LINE> <INDENT> def test_login_success(self): <NEW_LINE> <INDENT> test_data ={'username':'amdin','password':'beidouxing'}; <NEW_LINE> expect_data ={'code':'0','msg':'登录成功'}; <NEW_LINE> res = login_check(**test_data); <NEW_LINE> self.assertEqual(res,expect_data); <NEW_LINE> <DEDE...
如果有前置条件和后置条件,需要重写脚手架 定义单元测试,但是测试函数(方法)必须是要以test开头
62598fcd7c178a314d78d882
class UpdateBook(PermissionRequiredMixin, UpdateView): <NEW_LINE> <INDENT> permission_required = ( "catalogbooks.create_book_bystaff", ) <NEW_LINE> model = Books <NEW_LINE> context_object_name = 'book' <NEW_LINE> fields = ['title', 'author', 'language', 'genre', 'summary', 'isbn'] <NEW_LINE> template_name = 'catalogboo...
Обновляем книгу
62598fcdaad79263cf42ebb1
class Coordinates: <NEW_LINE> <INDENT> def __init__(self, x=0, y=0): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Coordinates(%g, %g)" % (self.x, self.y) <NEW_LINE> <DEDENT> def point(self): <NEW_LINE> <INDENT> return (self.x, self.y)
Coordinates class for storing xy coordinates
62598fcddc8b845886d539a0
class RfamInitialAnnotations(models.Model): <NEW_LINE> <INDENT> rfam_initial_annotation_id = models.AutoField(primary_key=True) <NEW_LINE> upi = models.ForeignKey('Rna', db_column='upi', to_field='upi', on_delete=models.CASCADE) <NEW_LINE> rfam_model = models.ForeignKey( RfamModel, db_column='rfam_model_id', to_field='...
This table represents the given Rfam annotations for a sequence. For example when we take sequences from Rfam we already know what the 'correct' family is. In addition, we get sequences from people who have performed their own Rfam scans. We keep track of this to decide if things should be suppressed or handled differe...
62598fcda219f33f346c6bec
class DataVendorQuandl(DataVendor): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(DataVendorQuandl, self).__init__() <NEW_LINE> <DEDENT> def load_ticker(self, market_data_request): <NEW_LINE> <INDENT> logger = LoggerManager().getLogger(__name__) <NEW_LINE> market_data_request_vendor = self.construct...
Reads in data from Quandl into findatapy library
62598fcd099cdd3c636755d1
class ReplacingViewPageTemplateFile(ViewPageTemplateFile): <NEW_LINE> <INDENT> regexp = None <NEW_LINE> replacement = None <NEW_LINE> def __init__(self, filename, _prefix=None, content_type=None, module=None, regexp=None, replacement=None): <NEW_LINE> <INDENT> if module is not None: <NEW_LINE> <INDENT> _prefix = os.pat...
A page template that applies a regexp-based replacement when the template is loaded or modified.
62598fcdcc40096d6161a3c9
class HardShutdownAction(Action): <NEW_LINE> <INDENT> def action_code(self): <NEW_LINE> <INDENT> return "QApplication.quit()" <NEW_LINE> <DEDENT> def required_imports(self): <NEW_LINE> <INDENT> return ['from PyQt5.QtWidgets import QApplication']
This action shuts down Tribler in a more forced way.
62598fcd5fc7496912d48469
class SysChangeMonConfigError(SysChangeMonError): <NEW_LINE> <INDENT> pass
Config related errors.
62598fcdff9c53063f51aa30
class WorkerPool(Queue): <NEW_LINE> <INDENT> def __init__(self, size=1, maxjobs=0, worker_factory=default_worker_factory): <NEW_LINE> <INDENT> if not isinstance(worker_factory, collections.Callable): <NEW_LINE> <INDENT> raise TypeError("worker_factory must be callable") <NEW_LINE> <DEDENT> self.worker_factory = worker_...
WorkerPool servers two functions: It is a Queue and a master of Worker threads. The Queue accepts Job objects and passes it on to Workers, who are initialized during the construction of the pool and by using grow(). Jobs are inserted into the WorkerPool with the `put` method. Hint: Have the Job append its result into ...
62598fcd4c3428357761a6a3
class NotNullConstraintsRequest: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'db_name', None, None, ), (2, TType.STRING, 'tbl_name', None, None, ), ) <NEW_LINE> def __init__(self, db_name=None, tbl_name=None,): <NEW_LINE> <INDENT> self.db_name = db_name <NEW_LINE> self.tbl_name = tbl_name <NEW_LINE> <DE...
Attributes: - db_name - tbl_name
62598fcd7c178a314d78d884
class User(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> username = db.Column(db.String(20), unique=True) <NEW_LINE> password = db.Column(db.String(500)) <NEW_LINE> def __init__(self, username, password): <NEW_LINE> <INDENT> self. username = username <NEW_LI...
class User that represents the user database model
62598fcd956e5f7376df5870
@implementer(IVocabularyFactory) <NEW_LINE> class AvailableFooterOptionsVocabulary(BaseVocabulary): <NEW_LINE> <INDENT> def __call__(self, context): <NEW_LINE> <INDENT> options = self._get_registry_record(name='available_footer_options') <NEW_LINE> items = [SimpleTerm(value=i, title=i) for i in sorted(options)] <NEW_LI...
Vocabulary for available footer options.
62598fcd55399d3f056268fe
class ofdm_chanest_vcvc(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def make(*args, **kwargs...
Estimate channel and coarse frequency offset for OFDM from preambles Input: OFDM symbols (in frequency domain). The first one (or two) symbols are expected to be synchronisation symbols, which are used to estimate the coarse freq offset and the initial equalizer taps (these symbols are removed from the stream). The fo...
62598fcd283ffb24f3cf3c6a
class VenueViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Venue.objects.all() <NEW_LINE> serializer_class = VenueSerializer
ViewSet for class Venue.
62598fcd5fcc89381b26633f
class VTReportObject(AbstractMISPObjectGenerator): <NEW_LINE> <INDENT> def __init__(self, apikey, indicator): <NEW_LINE> <INDENT> super(VTReportObject, self).__init__("virustotal-report") <NEW_LINE> indicator = indicator.strip() <NEW_LINE> self._resource_type = self.__validate_resource(indicator) <NEW_LINE> if self._re...
VirusTotal Report :apikey: VirusTotal API key (private works, but only public features are supported right now) :indicator: IOC to search VirusTotal for
62598fcdcc40096d6161a3ca
class ActiveCarouselManager(models.Manager): <NEW_LINE> <INDENT> def get_query_set(self, *args, **kwargs): <NEW_LINE> <INDENT> now = datetime.now() <NEW_LINE> return super(ActiveCarouselManager, self) .get_query_set(*args, **kwargs).filter(is_active=True) .filter(Q(end_date__gte=now) | Q(end_d...
Queryset com foto carroussel da home ativa (active=True) e datas de início e final, válidas (de acordo com o número de dias definido pela assinatura).
62598fcdad47b63b2c5a7c41
class TensorMapper(object): <NEW_LINE> <INDENT> def __init__(self, subgraph_data): <NEW_LINE> <INDENT> self.data = subgraph_data <NEW_LINE> <DEDENT> def __call__(self, x): <NEW_LINE> <INDENT> html = "" <NEW_LINE> html += "<span class='tooltip'><span class='tooltipcontent'>" <NEW_LINE> for i in x: <NEW_LINE> <INDENT> te...
Maps a list of tensor indices to a tooltip hoverable indicator of more.
62598fcd60cbc95b06364724
class SongBinary: <NEW_LINE> <INDENT> def __init__(self,filename): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self.filetype = '' <NEW_LINE> <DEDENT> def get_binary_mapping(self): <NEW_LINE> <INDENT> import re <NEW_LINE> f = open(self.filename) <NEW_LINE> line = f.readline() <NEW_LINE> if self.filetype not ...
This class holds the basic routines for manipulating the binary files created by SONG. Normally this class should not be initialised directly, but you should use the appropriate child class instead. Example: dat = songy.SongBinary(filename)
62598fcdf9cc0f698b1c54c7
class ConsoleInterfaceDefault(ConsoleInterface): <NEW_LINE> <INDENT> def _add_arguments(self): <NEW_LINE> <INDENT> self._parser.add_argument('-k', type=int, default=5, help="Beam size (default: %(default)s))") <NEW_LINE> self._parser.add_argument('-n', type=float, default=0.0, nargs="?", const=1.0, metavar="ALPHA", hel...
Console interface for default mode
62598fcdd8ef3951e32c804f
class CompositePicker(PickerScreen): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_paths(): <NEW_LINE> <INDENT> return composites_path, composites_path, composites_path, composites_path <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_images(): <NEW_LINE> <INDENT> return sorted(glob.glob('{0}/*...
Image browser that displays composites
62598fcd099cdd3c636755d3
class PositionalEncoding(nn.Module): <NEW_LINE> <INDENT> def __init__(self,d_model,dropout,max_len=5000): <NEW_LINE> <INDENT> super(PositionalEncoding,self).__init__() <NEW_LINE> self.dropout = nn.Dropout(p=dropout) <NEW_LINE> pe = torch.zeros(max_len,d_model) <NEW_LINE> position = torch.arange(0,max_len).unsqueeze(1)....
实现位置编码函数
62598fcdcc40096d6161a3cb
class Alias(ComplexModel): <NEW_LINE> <INDENT> pass
Different type_name, same _type_info.
62598fcd5fcc89381b266340
class IJWPlayerSettings(interface.Interface): <NEW_LINE> <INDENT> skin = schema.ASCIILine( title=u"Skin", description=u"A path. For example: /skins/modieus/modieus.zip", required=False )
Site wide settings for jwplayer
62598fcd50812a4eaa620dd8
class class_linear_regression: <NEW_LINE> <INDENT> x_data = [] <NEW_LINE> y_data = [] <NEW_LINE> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def draw_plot_input_data(self, x_data, y_data): <NEW_LINE> <INDENT> plt.plot(x_data, y_data, 'ro') <NEW_LINE> plt.show() <NEW_LINE> <DEDENT>...
Linear Regression CLASS
62598fcd60cbc95b06364726
class NeurioData: <NEW_LINE> <INDENT> def __init__(self, api_key, api_secret, sensor_id): <NEW_LINE> <INDENT> self.api_key = api_key <NEW_LINE> self.api_secret = api_secret <NEW_LINE> self.sensor_id = sensor_id <NEW_LINE> self._daily_usage = None <NEW_LINE> self._active_power = None <NEW_LINE> self._state = None <NEW_L...
Stores data retrieved from Neurio sensor.
62598fcd3617ad0b5ee06531
class SierraWireless875(DBusDevicePlugin): <NEW_LINE> <INDENT> name = "SierraWireless 875" <NEW_LINE> version = "0.1" <NEW_LINE> author = "anmsid & kgb0y" <NEW_LINE> custom = SierraWirelessCustomizer <NEW_LINE> __remote_name__ = "AC875" <NEW_LINE> __properties__ = { 'usb_device.vendor_id' : [0x1199], 'usb_device.produc...
L{vmc.common.plugin.DBusDevicePlugin} for SierraWireless 875
62598fcd8a349b6b43686629
class RepositoryEnv(RepositoryBase): <NEW_LINE> <INDENT> def __init__(self, source): <NEW_LINE> <INDENT> self.data = {} <NEW_LINE> for line in open(source): <NEW_LINE> <INDENT> line = line.strip() <NEW_LINE> if not line or line.startswith('#') or '=' not in line: <NEW_LINE> <INDENT> continue <NEW_LINE> <DEDENT> k, v = ...
Retrieves option keys from .env files with fall back to os.environ.
62598fcda219f33f346c6bf2
class Network(BaseAccountingType): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> BaseAccountingType.__init__(self) <NEW_LINE> self.definitionKeyFields = [ ('SourceIP', 'VARCHAR(50)'), ('DestinationIP', 'VARCHAR(50)'), ('SourceHostName', 'VARCHAR(50)'), ('DestinationHostName', 'VARCHAR(50)'), ('Source', 'V...
Accounting type to stores network metrics gathered by perfSONARs.
62598fcd5fdd1c0f98e5e376
class ListBatchSubscribeCSVResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_SuccessList(self): <NEW_LINE> <INDENT> return self._output.get('SuccessList', None) <NEW_LINE> <DEDENT> def get_ErrorList(self): <NEW_LINE> <INDEN...
A ResultSet with methods tailored to the values returned by the ListBatchSubscribeCSV Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62598fcd7b180e01f3e49244
class ListItem(Component): <NEW_LINE> <INDENT> @_explicitize_args <NEW_LINE> def __init__(self, children=None, alignItems=Component.UNDEFINED, button=Component.UNDEFINED, className=Component.UNDEFINED, component=Component.UNDEFINED, ContainerComponent=Component.UNDEFINED, ContainerProps=Component.UNDEFINED, dense=Compo...
A ListItem component. ExampleComponent is an example component. It takes a property, `label`, and displays it. It renders an input with the property `value` which is editable by the user. Keyword arguments: - children (a list of or a singular dash component, string or number; optional): The content of the component. I...
62598fcdcc40096d6161a3cc
class LogoutView(View): <NEW_LINE> <INDENT> def get(self,request): <NEW_LINE> <INDENT> logout(request) <NEW_LINE> return HttpResponseRedirect(reverse('index'))
注销
62598fcdf9cc0f698b1c54c9
class UnknownVersionException(Exception): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> self.message = message
Exception raised for unknown Mojang version file format versions. Attributes: message -- explanation of the error
62598fcdbf627c535bcb1896
class ArticleView(S13CMSMixin, TemplateView): <NEW_LINE> <INDENT> template_name = 'defaults/article.html' <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> self.settings = Setting.objects.get(is_active=True) <NEW_LINE> self.sections = Article.objects.get_sections() <NEW_LINE> self.section, self.ar...
Responds with an Article that has a given parent.
62598fcda219f33f346c6bf4
class Apply(Parser, Infix()): <NEW_LINE> <INDENT> op = "*" <NEW_LINE> def parse(self, stream): <NEW_LINE> <INDENT> result0 = self.left.parse(stream) <NEW_LINE> if result0: <NEW_LINE> <INDENT> result1 = self.right.parse(result0[1]) <NEW_LINE> return result1 and (result0[0](result1[0]), result1[1])
Applying the parser to the parser. type: (Parser (a -> b), Parser a) -> Parser b
62598fcd7b180e01f3e49245
class HomeView(RedirectView): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> if request.user.is_authenticated(): <NEW_LINE> <INDENT> self.url = reverse("home_dashboard") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.url = reverse("login") <NEW_LINE> <DEDENT> return super(HomeView,...
Redirect accordingly. If user's not logged in redirect to login view else redirect to... prospections for now
62598fcdad47b63b2c5a7c47
class CSVExporter(Exporter): <NEW_LINE> <INDENT> def export(self, segments, exportLocation , withHeader=False , withIndices=True): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> with open(exportLocation, 'w') as exportFile: <NEW_LINE> <INDENT> exp = csv.writer(exportFile) <NEW_LINE> if withHeader: <NEW_LINE> <INDENT> if ...
This Exporter handles the export of the RawValidation files to CSV files. After the :class:`Sensorsegments <lib.shared.Sensorsegment>` are normalized they can be exported back to the filesystem as CSV files.
62598fcd60cbc95b0636472a
class WdHwServer(SocketListener): <NEW_LINE> <INDENT> def __init__(self, hw_daemon, socket_path, socket_group=None, max_clients=10): <NEW_LINE> <INDENT> self.__hw_daemon = hw_daemon <NEW_LINE> socket_factory = UnixSocketFactory(socket_path) <NEW_LINE> server_socket = socket_factory.bindSocket(socket_group) <NEW_LINE> s...
WD Hardware Controller Server. Attributes: hw_daemon: The parent hardware controller daemon.
62598fcd55399d3f05626906
class STEPPartImporter(Importer): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _mangled_filename(cls, name): <NEW_LINE> <INDENT> name = os.path.basename(name) <NEW_LINE> name = name.encode('ascii', 'ignore') <NEW_LINE> if type(name).__name__ == 'bytes': <NEW_LINE> <INDENT> name = name.decode() <NEW_LINE> <DEDENT> if...
Abstraction layer to avoid duplicate code for :meth:`_mangled_filename`.
62598fcd9f28863672818a73
class UntargetedF7Objective(Objective): <NEW_LINE> <INDENT> def __call__(self, logits, perturbations=None): <NEW_LINE> <INDENT> assert self.true_classes is not None <NEW_LINE> if logits.size(1) > 1: <NEW_LINE> <INDENT> current_logits = logits - common.torch.one_hot(self.true_classes, logits.size(1))*1e12 <NEW_LINE> ret...
Untargeted objective based on logits, similar to Carlini+Wagner.
62598fcd0fa83653e46f52d5
@implementer(IMetadataLanguages) <NEW_LINE> class MetadataLanguages(Languages, MetadataLanguageAvailability): <NEW_LINE> <INDENT> id = 'plone_app_metadata_languages' <NEW_LINE> title = 'Manages available metadata languages' <NEW_LINE> meta_type = 'Plone App I18N Metadata Languages'
A local utility storing a list of available metadata languages. Let's make sure that this implementation actually fulfills the API. >>> from zope.interface.verify import verifyClass >>> verifyClass(IMetadataLanguages, MetadataLanguages) True
62598fcd3346ee7daa33783e
class NavFft(NavMenu): <NEW_LINE> <INDENT> replot = pyqtSignal(str, str, str) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(NavFft, self).__init__() <NEW_LINE> self.nthFftFrame = QVBoxLayout() <NEW_LINE> self.nthFftText = QLabel("n-th Octave") <NEW_LINE> self.nthFftText.setAlignment(Qt.AlignHCenter) <NEW_LIN...
Class for Analyze Widget Navigation. Derivated from "NavMenu" because additional Navigation (nth FFT) selection is needed.
62598fcd5fcc89381b266343
@destructiveTest <NEW_LINE> @skipIf(salt.utils.path.which('crond') is None, 'crond not installed') <NEW_LINE> class ServiceTest(ModuleCase, SaltReturnAssertsMixin): <NEW_LINE> <INDENT> def check_service_status(self, exp_return): <NEW_LINE> <INDENT> check_status = self.run_function('service.status', name=SERVICE_NAME) <...
Validate the service state
62598fcd60cbc95b0636472c
class Label(Element, TimestampsMixin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Label, self).__init__() <NEW_LINE> create_time = time.time() <NEW_LINE> self.id = self._generateId(create_time) <NEW_LINE> self._name = '' <NEW_LINE> self.timestamps = NodeTimestamps(create_time) <NEW_LINE> self._me...
Represents a label.
62598fcd3617ad0b5ee06537
class ModifyLivePushAuthKeyRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.DomainName = None <NEW_LINE> self.Enable = None <NEW_LINE> self.MasterAuthKey = None <NEW_LINE> self.BackupAuthKey = None <NEW_LINE> self.AuthDelta = None <NEW_LINE> <DEDENT> def _deserialize(self, params...
ModifyLivePushAuthKey请求参数结构体
62598fcd7cff6e4e811b5e16
class solution4: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.mutex=threading.RLock() <NEW_LINE> self.read = threading.Condition(self.mutex) <NEW_LINE> self.write = threading.Condition(self.mutex) <NEW_LINE> self.rw = 0 <NEW_LINE> self.wlist = 0 <NEW_LINE> <DEDENT> def acquire_read(self, x): <NEW_LI...
A lock object that allows many simultaneous "read locks", but only one "write lock."
62598fcd7c178a314d78d88e
class CoNLLDataset(object): <NEW_LINE> <INDENT> def __init__(self, filename, processing_word=None, processing_tag=None, max_iter=None): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self.processing_word = processing_word <NEW_LINE> self.processing_tag = processing_tag <NEW_LINE> self.max_iter = max_iter <NEW_...
Class that iterates over CoNLL Dataset __iter__ method yields a tuple (words, tags) words: list of raw words tags: list of raw tags If processing_word and processing_tag are not None, optional preprocessing is appplied Example: ```python data = CoNLLDataset(filename) for sentence, tags in data: ...
62598fcd3346ee7daa33783f
class BundleField(tuple, PayloadField): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def _hash_bundle(bundle): <NEW_LINE> <INDENT> hasher = sha1() <NEW_LINE> hasher.update(bundle.rel_path.encode('utf-8')) <NEW_LINE> for abs_path in sorted(bundle.filemap.keys()): <NEW_LINE> <INDENT> buildroot_relative_path = os.path.rel...
A tuple subclass that mixes in PayloadField. Must be initialized with an iterable of Bundle instances.
62598fcdbe7bc26dc9252051
class ReduceOperator(Operator): <NEW_LINE> <INDENT> def __init__(self, operator, identity=None, unpack=False): <NEW_LINE> <INDENT> super(ReduceOperator, self).__init__(operator, unpack=unpack) <NEW_LINE> self.identity = identity <NEW_LINE> <DEDENT> def _operate(self, pool, name): <NEW_LINE> <INDENT> if not pool: <NEW_L...
This is a class of operators which may be reduced to simple memoryless binary operators.
62598fcd50812a4eaa620ddc
class TournamentDB(InteractDB): <NEW_LINE> <INDENT> def __init__(self, db_file_name): <NEW_LINE> <INDENT> super(TournamentDB, self).__init__(db_file_name) <NEW_LINE> <DEDENT> def list_tournaments_in_db(self): <NEW_LINE> <INDENT> all_tournaments = self.tournaments.search(self.info["tournament_data"].exists()) <NEW_LINE>...
Class to write informations from controller into tournament DB file and read informations from tournament DB file to be sent to the controller.
62598fcd97e22403b383b2f7
class IconTreeItem(TreeItem): <NEW_LINE> <INDENT> def __init__(self, key, value, image=None, icon_filename=None): <NEW_LINE> <INDENT> TreeItem.__init__(self, key, value) <NEW_LINE> if image is not None: <NEW_LINE> <INDENT> self.__image = image <NEW_LINE> <DEDENT> elif icon_filename is not None: <NEW_LINE> <INDENT> self...
I tree item with an icon.
62598fcd3617ad0b5ee06539
class KokuDBAccess: <NEW_LINE> <INDENT> _savepoints = [] <NEW_LINE> def __init__(self, schema): <NEW_LINE> <INDENT> self.schema = schema <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> connection = get_connection() <NEW_LINE> if connection.get_autocommit(): <NEW_LINE> <INDENT> connection.set_autocommit(Fal...
Base Class to connect to the koku database. Subclass of Django Atomic class to make use of atomic transactions with a schema/tenant context.
62598fcd7c178a314d78d890
class Accuracy(EvalMetric): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Accuracy, self).__init__('accuracy') <NEW_LINE> <DEDENT> def update(self, labels, preds): <NEW_LINE> <INDENT> check_label_shapes(labels, preds) <NEW_LINE> for label, pred_label in zip(labels, preds): <NEW_LINE> <INDENT> if pre...
Calculate accuracy
62598fcd851cf427c66b86a3
class WSGI_HTTPSConnection(HTTPSConnection, WSGI_HTTPConnection): <NEW_LINE> <INDENT> def get_app(self, host, port): <NEW_LINE> <INDENT> key = (host, int(port)) <NEW_LINE> app, script_name = None, None <NEW_LINE> if key in _wsgi_intercept: <NEW_LINE> <INDENT> (app_fn, script_name) = _wsgi_intercept[key] <NEW_LINE> app ...
Intercept all traffic to certain hosts & redirect into a WSGI application object.
62598fcddc8b845886d539ae
class Config(object): <NEW_LINE> <INDENT> SECRET_KEY = os.environ.get('ABG_STATS_SECRET', 'secret-key') <NEW_LINE> APP_DIR = os.path.abspath(os.path.dirname(__file__)) <NEW_LINE> PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir)) <NEW_LINE> BCRYPT_LOG_ROUNDS = 13 <NEW_LINE> ASSETS_DEBUG = False <NEW_LINE>...
Base configuration.
62598fcd5fdd1c0f98e5e37e
class Glass(BaseModel): <NEW_LINE> <INDENT> type: Enum('Glass', {'type': 'Glass'}) <NEW_LINE> name: str = Schema( ..., regex=r'^[.A-Za-z0-9_-]*$' ) <NEW_LINE> r_transmittance: float = Schema( ..., ge=0, le=1 ) <NEW_LINE> g_transmittance: float = Schema( ..., ge=0, le=1 ) <NEW_LINE> b_transmittance: float = Schema( ....
Glass Material Schema
62598fcdec188e330fdf8c87
class Reference(ReferenceBase): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> ReferenceBase.__init__(self, value) <NEW_LINE> self.split = value.split('/') <NEW_LINE> self.resolved = None <NEW_LINE> <DEDENT> def getPaths(self): <NEW_LINE> <INDENT> return [self.value] <NEW_LINE> <DEDENT> def resolve(...
A value a setting can have to point to another setting. Formats of a reference are like /foo/bar/setting or ../Line/width alternatively style sheets can be used with the format, e.g. /StyleSheet/linewidth
62598fcd4527f215b58ea2c0
class LoggerProxy(object): <NEW_LINE> <INDENT> def __init__(self, logger=None): <NEW_LINE> <INDENT> self.log = logger <NEW_LINE> <DEDENT> @property <NEW_LINE> def log_path(self): <NEW_LINE> <INDENT> if self.log: <NEW_LINE> <INDENT> return self.log.log_path <NEW_LINE> <DEDENT> return "/tmp/logs" <NEW_LINE> <DEDENT> def ...
This class is for situations where a logger may or may not exist. e.g. In controller classes, sometimes we don't have a logger to pass in, like during a quick try in python console. In these cases, we don't want to crash on the log lines because logger is None, so we should set self.log to an object of this class in t...
62598fcdad47b63b2c5a7c4d
class sc(crystal): <NEW_LINE> <INDENT> def __init__(self, E, N, a, repeats=None, rotangles=(0, 0, 0), fwhm=None, rho=None): <NEW_LINE> <INDENT> lconst = [a, a, a] <NEW_LINE> unitcell = [[0, 0, 0]] <NEW_LINE> langle = _np.array([90, 90, 90]) * pi / 180.0 <NEW_LINE> super().__init__(E, lconst, langle, unitcell, N, repeat...
a sc crystal
62598fcd3d592f4c4edbb2a7
class Sketch(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def fromParameters(cls, delta, epsilon): <NEW_LINE> <INDENT> width = int(math.ceil(math.exp(1) / epsilon)) <NEW_LINE> rnd_width = int(pow(2, math.ceil(math.log(width, 2)))) <NEW_LINE> depth = int(math.ceil(math.log(1 / delta))) <NEW_LINE> return cls([msh...
Count-min sketch summary of data Estimate upper bounded by e(x) <= f(x) + eps * num_distinct(input) with probability 1 - delta Where e(x) estimate count, f(x) actual count
62598fcd091ae3566870501d
class MappingSet(Set): <NEW_LINE> <INDENT> @property <NEW_LINE> def mutable(self): <NEW_LINE> <INDENT> return isinstance(self._lst, set) <NEW_LINE> <DEDENT> def freeze(self): <NEW_LINE> <INDENT> if self.mutable: <NEW_LINE> <INDENT> self._lst = frozenset(self._lst) <NEW_LINE> <DEDENT> <DEDENT> def fromVM(self, vmaddr): ...
A container that stores :class:`Mapping`\s.
62598fcd55399d3f0562690c
class PerfectLensModel(Model): <NEW_LINE> <INDENT> def __init__(self, scatterer, alpha=1.0, lens_angle=1.0, noise_sd=None, medium_index=None, illum_wavelen=None, theory='auto', illum_polarization=None, constraints=[]): <NEW_LINE> <INDENT> super().__init__(scatterer, noise_sd, medium_index, illum_wavelen, illum_polariza...
Model of hologram image formation through a high-NA objective.
62598fcd656771135c489a64
class Hand(Deck): <NEW_LINE> <INDENT> def __init__(self,label=''): <NEW_LINE> <INDENT> self.cards=[]; <NEW_LINE> self.label=label; <NEW_LINE> <DEDENT> def move_cards(self,hand,num): <NEW_LINE> <INDENT> for i in range(num): <NEW_LINE> <INDENT> hand.add_card(self.pop_card());
Represents a hand of playing cards.
62598fcd71ff763f4b5e7b74
class StringReader(TextReader,IDisposable): <NEW_LINE> <INDENT> def Close(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Dispose(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def MemberwiseClone(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Peek(self): <NEW_LINE> <INDENT> pass <NEW_LINE> ...
Implements a System.IO.TextReader that reads from a string. StringReader(s: str)
62598fcd283ffb24f3cf3c78
class StopWorkerOperator(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "bitwrk.stopworker" <NEW_LINE> bl_label = "Stop worker" <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> return worker.can_stop_worker() <NEW_LINE> <DEDENT> def execute(self, context): <NEW_LINE> <INDENT> worker....
Stop rendering on this computer
62598fcd4527f215b58ea2c2
class Element: <NEW_LINE> <INDENT> def __init__(self, columns, background = None, foreground = None): <NEW_LINE> <INDENT> self.content = columns <NEW_LINE> self.background = background <NEW_LINE> self.foreground = foreground <NEW_LINE> <DEDENT> def getColumn(self, col): <NEW_LINE> <INDENT> return self.content[col] <NEW...
A single element in a list
62598fcdcc40096d6161a3d1
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA) <NEW_LINE> class Add(base.Command): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Add, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> flags.AddKey...
SSH into a virtual machine instance.
62598fcd50812a4eaa620dde
class BulkCountryUpdateList(ListResource): <NEW_LINE> <INDENT> def __init__(self, version): <NEW_LINE> <INDENT> super(BulkCountryUpdateList, self).__init__(version) <NEW_LINE> self._solution = {} <NEW_LINE> self._uri = '/VoicePermissions/BulkCountryUpdates'.format(**self._solution) <NEW_LINE> <DEDENT> def create(self, ...
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
62598fcdad47b63b2c5a7c4f
class PiCameraWarning(Warning): <NEW_LINE> <INDENT> pass
Base class for PiCamera warnings.
62598fcd091ae3566870501f
class PlanConstructor(Type): <NEW_LINE> <INDENT> pass
An abstract base class for plan constructors.
62598fcd7b180e01f3e4924a
class SearchTree(): <NEW_LINE> <INDENT> def __init__(self, root): <NEW_LINE> <INDENT> self.root = root <NEW_LINE> self.limit = 1 <NEW_LINE> <DEDENT> def expand(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def expand_nodes(self, nodes): <NEW_LINE> <INDENT> for i in nodes: <NEW_LINE> <INDENT> ...
Search Tree Data type
62598fcdec188e330fdf8c8b
class MappingUsersRulesRules(object): <NEW_LINE> <INDENT> swagger_types = { 'parameters': 'MappingUsersRulesRulesParameters', 'rules': 'list[MappingUsersRulesRule]' } <NEW_LINE> attribute_map = { 'parameters': 'parameters', 'rules': 'rules' } <NEW_LINE> def __init__(self, parameters=None, rules=None): <NEW_LINE> <INDEN...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fcdcc40096d6161a3d2
class Crawler: <NEW_LINE> <INDENT> def __init__(self, url_pattern, page_number, css_alt=None): <NEW_LINE> <INDENT> self.url_pattern = url_pattern <NEW_LINE> self.page_number = page_number <NEW_LINE> self.image_urls = [] <NEW_LINE> self.css_alt = css_alt <NEW_LINE> self.local_path = path.join(path.dirname(path.realpath(...
Class for crawl by page ulr-like 'http(s)://page_path/page_name_{number}/ and download pictures
62598fcdf9cc0f698b1c54cf
class SkipError(MongoDBQueriesManagerBaseError): <NEW_LINE> <INDENT> pass
Raised when skip is negative / bad value.
62598fcd3d592f4c4edbb2ab
class MapRecord(object): <NEW_LINE> <INDENT> def __init__(self, mapper, source, parent=None): <NEW_LINE> <INDENT> self._source = source <NEW_LINE> self._mapper = mapper <NEW_LINE> self._parent = parent <NEW_LINE> self._forced_values = {} <NEW_LINE> <DEDENT> @property <NEW_LINE> def source(self): <NEW_LINE> <INDENT> ret...
A record prepared to be converted using a :py:class:`Mapper`. MapRecord instances are prepared by :py:meth:`Mapper.map_record`. Usage:: >>> map_record = mapper.map_record(record) >>> output_values = map_record.values() See :py:meth:`values` for more information on the available arguments.
62598fcdfbf16365ca7944b2
class CmdSetParamString(UndoableCommand): <NEW_LINE> <INDENT> def __init__(self, param, newValue): <NEW_LINE> <INDENT> self._param = param <NEW_LINE> self._oldValue = param.getOldValue() <NEW_LINE> self._newValue = newValue <NEW_LINE> <DEDENT> def undoCmd(self): <NEW_LINE> <INDENT> self._param.getTuttleParam().setValue...
Command that update the value of a paramString. Attributes : - _param : the target buttle param which will be changed by the update. - _oldValue : the old value of the target param, which will be used for reset the target in case of undo command. - _newValue : the value which will be mofidied.
62598fcd4c3428357761a6b4
@register_strategy('HR_SYMM') <NEW_LINE> class HashroutingSymmetric(Hashrouting): <NEW_LINE> <INDENT> @inheritdoc(Strategy) <NEW_LINE> def __init__(self, view, controller, params=None): <NEW_LINE> <INDENT> super(HashroutingSymmetric, self).__init__(view, controller) <NEW_LINE> <DEDENT> @inheritdoc(Strategy) <NEW_LINE> ...
Hash-routing with symmetric routing (HR SYMM)
62598fcd283ffb24f3cf3c7c
class InterstitialTransformation(AbstractTransformation): <NEW_LINE> <INDENT> def __init__(self, interstitial_specie, supercell_dim, valences=None, radii=None): <NEW_LINE> <INDENT> self.supercell_dim = supercell_dim <NEW_LINE> self.valences = valences or {} <NEW_LINE> self.radii = radii or {} <NEW_LINE> self.interstiti...
Generates interstitial structures from the input structure
62598fcd7b180e01f3e4924b
class TestFruitBasket: <NEW_LINE> <INDENT> def test_fruit_basket_main_000(self): <NEW_LINE> <INDENT> basket = FruitBasket(Path(__file__).parent.joinpath("data", "given.csv")) <NEW_LINE> print("Inventory Data:") <NEW_LINE> pprint(dict(basket.inventory)) <NEW_LINE> assert basket.total_fruittypes == 5 <NEW_LINE> assert ba...
Tests for `fruit_basket` package.
62598fcdbe7bc26dc9252055
class Vectorizer: <NEW_LINE> <INDENT> def __init__(self, mfi=100, ngram_type='word', ngram_size=1, vocabulary=None, vector_space='tf', lowercase=True, min_df=0.0, max_df=1.0, ignore=[]): <NEW_LINE> <INDENT> if vector_space not in ('tf', 'tf_scaled', 'tf_std', 'tf_idf', 'bin'): <NEW_LINE> <INDENT> raise ValueError('Unsu...
Vectorize texts into a sparse, two-dimensional matrix.
62598fcdcc40096d6161a3d3
class CircuitoForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Circuito
Clase de donde se define la estructura del formulario `Circuito`.
62598fcd3d592f4c4edbb2ad
class powerKb(hw_driver.HwDriver): <NEW_LINE> <INDENT> def __init__(self, interface, params): <NEW_LINE> <INDENT> super(powerKb, self).__init__(interface, params.copy()) <NEW_LINE> self._handler = keyboard_handlers._BaseHandler(self._interface) <NEW_LINE> <DEDENT> def set(self, duration): <NEW_LINE> <INDENT> self._hand...
HwDriver wrapper around servod's power key functions.
62598fcdad47b63b2c5a7c53
class LoginView(APIView): <NEW_LINE> <INDENT> authentication_classes = () <NEW_LINE> def post(self, request,): <NEW_LINE> <INDENT> username = request.data.get("username") <NEW_LINE> password = request.data.get("password") <NEW_LINE> user = authenticate(username=username, password=password) <NEW_LINE> if user: <NEW_LINE...
Login User
62598fcdfbf16365ca7944b4
class TransactionTokenGenerator: <NEW_LINE> <INDENT> key_salt = "sagepaypi.tokens.TransactionTokenGenerator" <NEW_LINE> secret = settings.SECRET_KEY <NEW_LINE> def make_token(self, transaction): <NEW_LINE> <INDENT> return self._make_token_with_timestamp(transaction, self._num_days(self._today())) <NEW_LINE> <DEDENT> de...
Strategy object used to generate and check tokens for the transaction mechanism.
62598fcd3617ad0b5ee06541
class Logger(object): <NEW_LINE> <INDENT> def __init__(self, log_path, mode='w'): <NEW_LINE> <INDENT> if mode == 'a': <NEW_LINE> <INDENT> self._log_fout = open(log_path, 'a') <NEW_LINE> <DEDENT> elif mode == 'w': <NEW_LINE> <INDENT> self._log_fout = open(log_path, 'w') <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> rais...
logger that can print on terminal and save log to file simultaneously
62598fcd7c178a314d78d898
class ProposalGenerator: <NEW_LINE> <INDENT> def __init__(self, nms_threshold=0.7, num_pre_nms_train=12000, num_post_nms_train=2000, num_pre_nms_val=6000, num_post_nms_val=300, min_size=0): <NEW_LINE> <INDENT> super(ProposalGenerator, self).__init__() <NEW_LINE> self.nms_threshold = nms_threshold <NEW_LINE> self.num_pr...
Perform NMS-based selection of proposals Parameters ---------- nms_threshold : float Intersection over union threshold for the NMS num_pre_nms_train : int Number of top-scoring proposals to feed to NMS, training mode num_post_nms_train : int Number of top-scoring proposal to keep after NMS, training mode n...
62598fcd60cbc95b06364736
class TestLivePhysDomain(TestLiveAPIC): <NEW_LINE> <INDENT> def create_unique_live_phys_domain(self): <NEW_LINE> <INDENT> session = self.login_to_apic() <NEW_LINE> phys_domains = PhysDomain.get(session) <NEW_LINE> non_existing_phys_domain = phys_domains[0] <NEW_LINE> while non_existing_phys_domain in phys_domains: <NEW...
Class to test live phys domain
62598fce283ffb24f3cf3c7f
class CustomizableProperty(property): <NEW_LINE> <INDENT> def __init__(self, field, *, description): <NEW_LINE> <INDENT> self.field = field <NEW_LINE> self.description = description <NEW_LINE> def uncustomized(instance): <NEW_LINE> <INDENT> raise UncustomizedInstance(instance=instance, field=field) <NEW_LINE> <DEDENT> ...
Declares a class variable to require customization. See help on getattr_customized for details.
62598fcecc40096d6161a3d4
class ValueSortedDict(SortedDict): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> args = list(args) <NEW_LINE> if args and callable(args[0]): <NEW_LINE> <INDENT> func = self._func = args[0] <NEW_LINE> def key_func(key): <NEW_LINE> <INDENT> return func(self[key]) <NEW_LINE> <DEDENT> args[0]...
Sorted dictionary that maintains (key, value) item pairs sorted by value. - ``ValueSortedDict()`` -> new empty dictionary. - ``ValueSortedDict(mapping)`` -> new dictionary initialized from a mapping object's (key, value) pairs. - ``ValueSortedDict(iterable)`` -> new dictionary initialized as if via:: d = Valu...
62598fce50812a4eaa620de1
class InputCategorizer: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ignore_words = [ "JARVIS" ] <NEW_LINE> <DEDENT> def categorize_input(self, user_input): <NEW_LINE> <INDENT> category = "" <NEW_LINE> normalized_user_input = self.normalize_input(user_input) <NEW_LINE> pos_sentence = nltk.pos_tag(nl...
Categorizes the user input to determine whether the user is: - Asking a question - Giving a command - Or just chatting
62598fce377c676e912f6f75
class PygaarstRasterError(Exception): <NEW_LINE> <INDENT> pass
Custom exception for errors during raster processing in Pygaarst
62598fce3d592f4c4edbb2af
class EditionPatchRequest(BaseModel): <NEW_LINE> <INDENT> slug: Optional[str] = None <NEW_LINE> title: Optional[str] = None <NEW_LINE> pending_rebuild: Optional[bool] = None <NEW_LINE> tracked_ref: Optional[str] = None <NEW_LINE> mode: Optional[str] = None <NEW_LINE> build_url: Optional[HttpUrl] = None <NEW_LINE> @vali...
The model for a PATCH /editions/:id request.
62598fce091ae35668705025
class MetadataReader(object): <NEW_LINE> <INDENT> def __init__(self, globstring, cache=None): <NEW_LINE> <INDENT> super(MetadataReader, self).__init__() <NEW_LINE> self.globstring = globstring <NEW_LINE> if cache: <NEW_LINE> <INDENT> from cache import Cache <NEW_LINE> self.cache = Cache(cache) <NEW_LINE> <DEDENT> else:...
Get metadata from images
62598fce3617ad0b5ee06543
class Search(Action): <NEW_LINE> <INDENT> pass
'Search' Action on a collection of resource
62598fce7cff6e4e811b5e22
class MockRunner(Runner): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> func = import_name(self.task.app.importable) <NEW_LINE> job = WrapperJob(None, self.task.task_id, self.task.arguments, self.task.resources, None) <NEW_LINE> cwd = os.path.abspath('.') <NEW_LINE> task_dir = self.task.task_id <NEW_LINE> os.m...
Runs the app/mock/python jobs. A directory is created for each job.
62598fce7c178a314d78d89a
class PowderSample(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=80) <NEW_LINE> chemistry = models.CharField(max_length=80) <NEW_LINE> locality = models.CharField(max_length=120) <NEW_LINE> source = models.CharField(max_length=120) <NEW_LINE> description = models.CharField(max_length=120) <NEW_L...
This model represents a powder crystal sample
62598fce851cf427c66b86ad