code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class LexicalSeparator(LexicalToken): <NEW_LINE> <INDENT> pass | Signifies a generic separator, given by a ",".
Examples:
[1, 2, 3]
does add with number a, number b | 62599057a219f33f346c7d91 |
class VamasHeader(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.formatID = 'VAMAS Surface Chemical Analysis Standard Data Transfer Format 1988 May 4' <NEW_LINE> self.instituteID = 'Not Specified' <NEW_LINE> self.instriumentModelID = 'Not Specified' <NEW_LINE> self.operatorID = 'Not Specified' <NEW... | An object to store the Vamas header information. | 625990574428ac0f6e659ac7 |
class PoliticalUnit(): <NEW_LINE> <INDENT> def __init__(self, id, votes, minalgn=1, maxalgn=6): <NEW_LINE> <INDENT> self._id = id <NEW_LINE> self._votes = votes <NEW_LINE> self._algn = None <NEW_LINE> self._minalgn = minalgn <NEW_LINE> self._maxalgn = maxalgn <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self): <NEW_... | PoliticalUnit represents a single division of an overall political
body, e.g. a province or state within a nation, or a county or
district within a state. | 6259905799cbb53fe683246b |
class SynchronousTcpClient(Runner, unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.initialize(["../tools/reference/diagslave", "-m", "tcp", "-p", "12345"]) <NEW_LINE> self.client = ModbusClient(port=12345) <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.client.close() ... | These are the integration tests for the synchronous
tcp client. | 62599057596a897236129076 |
class ParentFacilityUserResource(ModelResource): <NEW_LINE> <INDENT> def _get_facility_users(self, bundle): <NEW_LINE> <INDENT> zone_id = bundle.request.GET.get('zone_id') <NEW_LINE> zone_ids = bundle.request.GET.get('zone_ids') <NEW_LINE> facility_id = bundle.request.GET.get('facility_id') <NEW_LINE> group_id = bundle... | A class with helper methods for getting facility users for data export requests | 62599057baa26c4b54d50831 |
class LibvirtdSession(aexpect.Tail): <NEW_LINE> <INDENT> def _output_handler(self, line): <NEW_LINE> <INDENT> time_pattern = r'[-\d]+ [.:+\d]+ [:\d]+ ' <NEW_LINE> debug_pattern = time_pattern + 'debug :' <NEW_LINE> result = re.match(debug_pattern, line) <NEW_LINE> params = self.debug_params + (line,) <NEW_LINE> if self... | Class to generate a libvirtd process and handler all the logging info. | 625990572ae34c7f260ac673 |
class BOT_913: <NEW_LINE> <INDENT> pass | Demonic Project | 62599057ac7a0e7691f73a6d |
class NH3(raw_data_util.RawDataFile): <NEW_LINE> <INDENT> def __init__(self, directory, zero=-0.8, window=5): <NEW_LINE> <INDENT> self.directory = directory <NEW_LINE> self.files = listdir(directory) <NEW_LINE> self.zero = zero <NEW_LINE> self.window = window <NEW_LINE> <DEDENT> def _read_files(self, file): <NEW_LINE> ... | Class for processing raw nh3 monitor data files | 625990578da39b475be04779 |
@python_2_unicode_compatible <NEW_LINE> class Category(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name | 模型必须继承models.Model类 | 6259905732920d7e50bc75d3 |
class ConfigValueAssociation(Base): <NEW_LINE> <INDENT> __tablename__ = 'config_value_association' <NEW_LINE> config_id = Column(ForeignKey('config.id'), primary_key=True) <NEW_LINE> config_value_id = Column(ForeignKey('config_value.id'), primary_key=True) <NEW_LINE> config_value = relationship("ConfigValue", lazy="joi... | Relate ConfigData objects to associated ConfigValue objects. | 625990574a966d76dd5f047e |
class FakeHost(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def create_one_host(attrs=None): <NEW_LINE> <INDENT> if attrs is None: <NEW_LINE> <INDENT> attrs = {} <NEW_LINE> <DEDENT> host_info = { "id": 1, "service_id": 1, "host": "host1", "uuid": 'host-id-' + uuid.uuid4().hex, "vcpus": 10, "memory_mb": 100, "l... | Fake one host. | 625990576e29344779b01bd8 |
class HexExternalViewerCommand(sublime_plugin.TextCommand): <NEW_LINE> <INDENT> def run(self, edit): <NEW_LINE> <INDENT> viewer = common.hv_settings("external_viewer", {}).get("viewer", "") <NEW_LINE> if not exists(viewer): <NEW_LINE> <INDENT> error("Can't find the external hex viewer!") <NEW_LINE> return <NEW_LINE> <D... | Open hex data in external hex program. | 625990571f037a2d8b9e5332 |
class ExperienceBatcher(object): <NEW_LINE> <INDENT> def __init__(self, experience_collector, run_inference, get_q_values, state_normalize_factor): <NEW_LINE> <INDENT> self.experience_collector = experience_collector <NEW_LINE> self.run_inference = run_inference <NEW_LINE> self.get_q_values = get_q_values <NEW_LINE> se... | Builds experience batches using an ExperienceCollector. | 62599057a79ad1619776b584 |
class Linkinfo: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.project = None <NEW_LINE> self.package = None <NEW_LINE> self.xsrcmd5 = None <NEW_LINE> self.lsrcmd5 = None <NEW_LINE> self.srcmd5 = None <NEW_LINE> self.error = None <NEW_LINE> self.rev = None <NEW_LINE> self.baserev = None <NEW_LINE> <DE... | linkinfo metadata (which is part of the xml representing a directory
| 62599058d6c5a102081e36ad |
class DomesticMelonOrder(AbstractMelonOrder): <NEW_LINE> <INDENT> order_type = "domestic" <NEW_LINE> def __init__(self, species, qty): <NEW_LINE> <INDENT> super().__init__(species, qty) <NEW_LINE> self.tax = .08 <NEW_LINE> <DEDENT> def get_total(): <NEW_LINE> <INDENT> super().get_total() <NEW_LINE> return total <NEW_LI... | A melon order within the USA. | 6259905807d97122c4218238 |
class OBJECT_PT_Isometrify(bpy.types.Panel): <NEW_LINE> <INDENT> bl_label = "Isometrify" <NEW_LINE> bl_idname = "OBJECT_PT_Isometrifys" <NEW_LINE> bl_space_type = 'PROPERTIES' <NEW_LINE> bl_region_type = 'WINDOW' <NEW_LINE> bl_context = "render" <NEW_LINE> def draw(self, context): <NEW_LINE> <INDENT> layout = self.layo... | Creates a Panel in the Object properties window | 62599058097d151d1a2c25f9 |
class CrossentropyNDTopK(torch.nn.CrossEntropyLoss): <NEW_LINE> <INDENT> def forward(self, inp, target): <NEW_LINE> <INDENT> target = target.long() <NEW_LINE> num_classes = inp.size()[1] <NEW_LINE> i0 = 1 <NEW_LINE> i1 = 2 <NEW_LINE> while i1 < len(inp.shape): <NEW_LINE> <INDENT> inp = inp.transpose(i0, i1) <NEW_LINE> ... | Network has to have NO NONLINEARITY! | 62599058507cdc57c63a6333 |
class ProactorSelectorThreadWarning(RuntimeWarning): <NEW_LINE> <INDENT> pass | Warning class for notifying about the extra thread spawned by tornado
We automatically support proactor via tornado's AddThreadSelectorEventLoop | 62599058cc0a2c111447c57a |
class BitBoost(BaseEstimator): <NEW_LINE> <INDENT> numt = RawBitBoost.numt <NEW_LINE> numt_p = RawBitBoost.numt_p <NEW_LINE> __init__ = gen_init_fun(RawBitBoost.config_params, __file__) <NEW_LINE> def fit(self, X, y): <NEW_LINE> <INDENT> X, y = check_X_y(X, y, accept_sparse=False, dtype=self.numt, order="F") <NEW_LINE>... | BitBoost base estimator.
| 62599058009cb60464d02ac3 |
class ConfigurationMixIn(OptionsManagerMixIn, OptionsProviderMixIn): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> if not args: <NEW_LINE> <INDENT> kwargs.setdefault('usage', '') <NEW_LINE> <DEDENT> kwargs.setdefault('quiet', 1) <NEW_LINE> OptionsManagerMixIn.__init__(self, *args, **kwarg... | basic mixin for simple configurations which don't need the
manager / providers model | 6259905816aa5153ce401a72 |
class Execution(resource.Resource): <NEW_LINE> <INDENT> id = wtypes.text <NEW_LINE> workflow_name = wtypes.text <NEW_LINE> params = wtypes.text <NEW_LINE> state = wtypes.text <NEW_LINE> state_info = wtypes.text <NEW_LINE> input = wtypes.text <NEW_LINE> output = wtypes.text <NEW_LINE> created_at = wtypes.text <NEW_LINE>... | Execution resource. | 625990589c8ee82313040c52 |
class Writer(object): <NEW_LINE> <INDENT> def __init__(self, handle): <NEW_LINE> <INDENT> self.handle = handle <NEW_LINE> self.wrapper = TextWrapper(width=70) <NEW_LINE> <DEDENT> def write(self, seq_record): <NEW_LINE> <INDENT> if seq_record.description: <NEW_LINE> <INDENT> print(">%s" % seq_record.description, file=se... | Writes `SeqRecord` objects in FASTA format to a given file handle. | 6259905876e4537e8c3f0b1b |
class SimTypeDouble(SimTypeFloat): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(SimTypeDouble, self).__init__(64) <NEW_LINE> <DEDENT> sort = claripy.FSORT_DOUBLE <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return 'double' | An IEEE754 double-precision floating point number | 6259905823849d37ff852653 |
class VIEW3D_TP_Yz_Mod_Mirror(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "tp_ops.mod_mirror_yz" <NEW_LINE> bl_label = "Mirror Yz" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> scene = bpy.context.scene <NEW_LINE> selected = bpy.context.selected_objects... | Add a yz mirror modifier with cage and clipping | 62599058adb09d7d5dc0baf9 |
class MplRectangularROI(AbstractMplRoi): <NEW_LINE> <INDENT> def __init__(self, ax): <NEW_LINE> <INDENT> AbstractMplRoi.__init__(self, ax) <NEW_LINE> self._xi = None <NEW_LINE> self._yi = None <NEW_LINE> self._scrubbing = False <NEW_LINE> self.plot_opts = {'edgecolor': PATCH_COLOR, 'facecolor': PATCH_COLOR, 'alpha': 0.... | A subclass of RectangularROI that also renders the ROI to a plot
*Attributes*:
plot_opts:
Dictionary instance
A dictionary of plot keywords that are passed to
the patch representing the ROI. These control
the visual properties of the ROI | 6259905832920d7e50bc75d5 |
class XmlWriter(WearNowXmlWriter): <NEW_LINE> <INDENT> def __init__(self, dbase, user, strip_photos, compress=1): <NEW_LINE> <INDENT> WearNowXmlWriter.__init__( self, dbase, strip_photos, compress, VERSION, user) <NEW_LINE> self.user = user <NEW_LINE> <DEDENT> def write(self, filename): <NEW_LINE> <INDENT> ret = 0 <NEW... | Writes a database to the XML file. | 62599058fff4ab517ebcedb3 |
class Solution: <NEW_LINE> <INDENT> def levelOrder(self, root): <NEW_LINE> <INDENT> results = [] <NEW_LINE> q = [root] <NEW_LINE> if root is None: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> while q: <NEW_LINE> <INDENT> q_new = [] <NEW_LINE> results.append([n.val for n in q]) <NEW_LINE> for node in q: <NEW_LINE> ... | @param root: A Tree
@return: Level order a list of lists of integer | 6259905832920d7e50bc75d6 |
class LegacyDeviceNoLongerSupportedMessage(Message): <NEW_LINE> <INDENT> __is_visible = False <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__( text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to a printer that is not " "running Ultimaker Connect. Please update the pri... | Message shown when trying to connect to a legacy printer device. | 62599058498bea3a75a590b6 |
class SlideText(object): <NEW_LINE> <INDENT> def __init__(self, content, from_file=False, text_size=12, text_color=None, font="Arial", horizontal="C", bold=False, underline=False, italics=False): <NEW_LINE> <INDENT> if from_file: <NEW_LINE> <INDENT> with open(content, 'r') as file: <NEW_LINE> <INDENT> self.content = fi... | Function represents the normal text inside the slide | 6259905815baa72349463522 |
class Review(models.Model): <NEW_LINE> <INDENT> response = models.ForeignKey(Response) <NEW_LINE> comment = models.TextField(blank=True,null=True) <NEW_LINE> creation_time = models.DateTimeField(auto_now_add=True) <NEW_LINE> complete = models.BooleanField(default=False) <NEW_LINE> @property <NEW_LINE> def review_templa... | When a user demonstrates a lack of understanding of the tagging
guidelines on a specific task, it is useful for a merger to flag
the item for the worker to review, showing both the tagger's
response and the merger's final selection and comment. Reviews
are created in the task_view/submit handler, and presented to
the u... | 62599058462c4b4f79dbcf94 |
class ValueIterationAgent(ValueEstimationAgent): <NEW_LINE> <INDENT> def __init__(self, mdp, discount = 0.9, iterations = 100): <NEW_LINE> <INDENT> self.mdp = mdp <NEW_LINE> self.discount = discount <NEW_LINE> self.iterations = iterations <NEW_LINE> self.values = util.Counter() <NEW_LINE> "*** YOUR CODE HERE ***" <NEW_... | * Please read learningAgents.py before reading this.*
A ValueIterationAgent takes a Markov decision process
(see mdp.py) on initialization and runs value iteration
for a given number of iterations using the supplied
discount factor. | 62599058be8e80087fbc0612 |
class TestReverseLetter(unittest.TestCase): <NEW_LINE> <INDENT> def test_reverse_letter(self): <NEW_LINE> <INDENT> self.assertEqual(reverse_letter("krishan"), "nahsirk") <NEW_LINE> self.assertEqual(reverse_letter("ultr53o?n"), "nortlu") <NEW_LINE> self.assertEqual(reverse_letter("ab23c"), "cba") <NEW_LINE> self.assertE... | Class to test 'reverse_letter' function | 6259905899cbb53fe683246e |
class SystemSettings(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def http_proxy(self): <NEW_LINE> <INDENT> system_proxies = urllib.getproxies() <NEW_LINE> proxy = system_proxies.get("http") <NEW_LINE> if proxy: <NEW_LINE> <INDENT> proxy = proxy.replace("http://", "", 1) <NEW_LINE> <DEDENT> return proxy | Handles loading the system settings. | 625990584428ac0f6e659acb |
class PhaseState(mutablerecords.Record('PhaseState', [ 'name', 'phase_record', 'measurements'])): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_descriptor(cls, phase_desc, notify_cb): <NEW_LINE> <INDENT> return cls( phase_desc.name, test_record.PhaseRecord.from_descriptor(phase_desc), {measurement.name: copy.dee... | Data type encapsulating interesting information about a running phase.
Attributes:
phase_record: A test_record.PhaseRecord for the running phase.
attachments: Convenience accessor for phase_record.attachments.
measurements: A dict mapping measurement name to it's declaration; this
dict can be passed to mea... | 62599058596a897236129078 |
class DirectionIdentity(object): <NEW_LINE> <INDENT> _prefix = 'target' <NEW_LINE> _revision = '2015-04-07' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _meta_info(): <NEW_LINE> <INDENT> from ydk.models.ietf._meta import _ietf_diffserv_target as meta <NEW_LINE... | This is identity of traffic direction | 625990583c8af77a43b68a08 |
class UserFilterBackend(filters.BaseFilterBackend): <NEW_LINE> <INDENT> def filter_queryset(self, request, queryset, view): <NEW_LINE> <INDENT> user = request.query_params.get('user', None) <NEW_LINE> if user: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user_uuid = uuid.UUID(user) <NEW_LINE> <DEDENT> except ValueError... | Filter by user uuid and by is_own. | 6259905807d97122c421823b |
class PasswordInput(TextInput): <NEW_LINE> <INDENT> pass | Single-line password input widget.
This widget hides the input value so that it is not visible in the browser.
.. warning::
Secure transmission of the password to Bokeh server application code
requires configuring the server for SSL (i.e. HTTPS) termination. | 625990587b25080760ed87a7 |
class IgnoreRuleSet: <NEW_LINE> <INDENT> def __init__(self, name, uri): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.uri = uri <NEW_LINE> self.rules = [] <NEW_LINE> <DEDENT> def load(self): <NEW_LINE> <INDENT> def build_rules(s): <NEW_LINE> <INDENT> for k, v in s.items(): <NEW_LINE> <INDENT> self.rules.append(I... | A downloaded collection of rules.
Handles merging updates vs current state, and so on. | 6259905855399d3f05627aaf |
class prepend(Stream): <NEW_LINE> <INDENT> def __call__(self, iterator): <NEW_LINE> <INDENT> return itertools.chain(self.iterator, iterator) | Inject values at the beginning of the input stream.
>>> seq(7, 7) >> prepend(xrange(0, 10, 2)) >> item[:10]
[0, 2, 4, 6, 8, 7, 14, 21, 28, 35] | 6259905801c39578d7f141ff |
class KNearestNeighbor(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def train(self, X, y): <NEW_LINE> <INDENT> self.X_train = X <NEW_LINE> self.y_train = y <NEW_LINE> <DEDENT> def predict(self, X, k=1, num_loops=0): <NEW_LINE> <INDENT> if num_loops == 0: <NEW_LINE> <INDE... | a kNN classifier with L2 distance | 62599058a17c0f6771d5d669 |
class VersionsTest(base.IsolatedUnitTest): <NEW_LINE> <INDENT> def test_get_version_list(self): <NEW_LINE> <INDENT> req = webob.Request.blank('/', base_url="http://0.0.0.0:9292/") <NEW_LINE> req.accept = "application/json" <NEW_LINE> conf = utils.TestConfigOpts({ 'bind_host': '0.0.0.0', 'bind_port': 9292 }) <NEW_LINE> ... | Test the version information returned from
the API service | 625990588da39b475be0477d |
class RePinForm(Form): <NEW_LINE> <INDENT> pin = forms.IntegerField(widget=forms.HiddenInput()) <NEW_LINE> def clean_pin(self): <NEW_LINE> <INDENT> pin_id = self.cleaned_data['pin'] <NEW_LINE> try: <NEW_LINE> <INDENT> pin = Pin._default_manager.get(id=pin_id) <NEW_LINE> <DEDENT> except Pin.DoesNotExist: <NEW_LINE> <IND... | Pin repinning form. | 62599058adb09d7d5dc0bafb |
class UnbiasedRandomController(): <NEW_LINE> <INDENT> def __init__(self,speed_limit=0,speed_limit_buffer=0,accel_range=[-5,5],yaw_rate_range=[0,0],**kwargs): <NEW_LINE> <INDENT> self.accel_range = accel_range <NEW_LINE> self.yaw_rate_range = yaw_rate_range <NEW_LINE> <DEDENT> def setup(self,**kwargs): <NEW_LINE> <INDEN... | Random controller that samples actions in such a way that the expected value of the magnitudes of the acceleration and yaw rate is 0
i.e. if the magnitude of the lower bound of the range is greater than the magnitude of the upper bound (and they have opposite sign)
then we increase the probability of sampling a value g... | 62599058379a373c97d9a5b6 |
class ObservationFactory(factory.django.DjangoModelFactory): <NEW_LINE> <INDENT> satellite = factory.SubFactory(SatelliteFactory) <NEW_LINE> author = factory.SubFactory(UserFactory) <NEW_LINE> start = fuzzy.FuzzyDateTime(now() - timedelta(days=3), now() + timedelta(days=3)) <NEW_LINE> end = factory.LazyAttribute( lambd... | Observation model factory. | 62599058dc8b845886d54b57 |
class Logistics(StateModel,TimeModel,SortModel): <NEW_LINE> <INDENT> name = models.CharField(default=u'',max_length=128,verbose_name=u'名称') <NEW_LINE> address = models.CharField(default=u'',max_length=512,verbose_name=u'地址') <NEW_LINE> contact = models.CharField(default=u'',max_length=20,verbose_name=u'联系人') <NEW_LINE>... | 物流公司 | 62599058d6c5a102081e36b1 |
class NotStoppedError(Exception): <NEW_LINE> <INDENT> def __init__(self, message=None): <NEW_LINE> <INDENT> super(NotStoppedError, self).__init__(message) | Indicates a call to an object that should have been stopped before. | 625990587cff6e4e811b6fd4 |
class ExactInference(InferenceModule): <NEW_LINE> <INDENT> def initializeUniformly(self, gameState): <NEW_LINE> <INDENT> self.beliefs = DiscreteDistribution() <NEW_LINE> for p in self.legalPositions: <NEW_LINE> <INDENT> self.beliefs[p] = 1.0 <NEW_LINE> <DEDENT> self.beliefs.normalize() <NEW_LINE> <DEDENT> def observeUp... | The exact dynamic inference module should use forward algorithm updates to
compute the exact belief function at each time step. | 6259905882261d6c52730993 |
class Chessboard(Feature): <NEW_LINE> <INDENT> _spcorners = None <NEW_LINE> _dims = None <NEW_LINE> def __init__(self, img, dim, subpixelscorners): <NEW_LINE> <INDENT> self._dims = dim <NEW_LINE> self._spcorners = subpixelscorners <NEW_LINE> x = np.average(np.array(self._spcorners)[:, 0]) <NEW_LINE> y = np.average(np.a... | Used for Calibration, it uses a chessboard to calibrate from pixels
to real world measurements. | 62599058097d151d1a2c25fd |
class ManholeTests(TestCase): <NEW_LINE> <INDENT> def test_interface(self): <NEW_LINE> <INDENT> self.assertTrue(verifyObject(ITerminalServerFactory, TerminalManhole())) <NEW_LINE> <DEDENT> def test_buildTerminalProtocol(self): <NEW_LINE> <INDENT> store = Store() <NEW_LINE> factory = TerminalManhole(store=store) <NEW_LI... | Tests for L{TerminalManhole} which provides an L{ITerminalServerFactory}
for a protocol which gives a user an in-process Python REPL. | 6259905845492302aabfda69 |
class TrustchainBaseEndpoint(resource.Resource): <NEW_LINE> <INDENT> def __init__(self, session): <NEW_LINE> <INDENT> resource.Resource.__init__(self) <NEW_LINE> self.session = session | This class represents the base class of the trustchain community. | 6259905807f4c71912bb09cc |
class TrainingParams(object): <NEW_LINE> <INDENT> def __init__(self, flags=None): <NEW_LINE> <INDENT> if flags: <NEW_LINE> <INDENT> self.learning_rate = flags.learning_rate <NEW_LINE> self.lr_decay_factor = flags.learning_rate_decay_factor <NEW_LINE> self.max_gradient_norm = flags.max_gradient_norm <NEW_LINE> self.batc... | Class with training parameters. | 625990587b25080760ed87a8 |
class Home(views.View): <NEW_LINE> <INDENT> def dispatch_request(self): <NEW_LINE> <INDENT> return Response( render_template('home.html'), status=200 ) | Load our home page
N.B - Could be served as static | 625990584e4d56256637399a |
class ImageModel(ZooModel): <NEW_LINE> <INDENT> def __init__(self, bigdl_type="float"): <NEW_LINE> <INDENT> super(ImageModel, self).__init__(None, bigdl_type) <NEW_LINE> <DEDENT> def predict_image_set(self, image, configure=None): <NEW_LINE> <INDENT> res = callBigDlFunc(self.bigdl_type, "imageModelPredict", self.value,... | The basic class for image model. | 62599058b57a9660fecd300d |
class Graph: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._nodes = set() <NEW_LINE> self._edges = [] <NEW_LINE> self._cache = {} <NEW_LINE> <DEDENT> def add_edge(self, from_node, to_node): <NEW_LINE> <INDENT> self._edges.append(Edge(from_node, to_node)) <NEW_LINE> from_node.add_connection(to_node) <... | Graph structure | 6259905855399d3f05627ab2 |
class UpcomingEventRetriever: <NEW_LINE> <INDENT> def __init__(self, icalendar_url): <NEW_LINE> <INDENT> self.icalendar_url = icalendar_url <NEW_LINE> self.error_count = 0 <NEW_LINE> self.refresh_calendar() <NEW_LINE> <DEDENT> def refresh_calendar(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> calendar_contents = ... | Retrieves upcoming events from an icalendar url | 6259905824f1403a92686398 |
class TestPresentation(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.prs = Presentation() <NEW_LINE> <DEDENT> def test__blob_rewrites_sldIdLst(self): <NEW_LINE> <INDENT> relationships = RelationshipCollectionBuilder() .with_tuple_targets(2, RT_SLIDEMASTER) ... | Test Presentation | 62599058097d151d1a2c25fe |
class SchemaValidator: <NEW_LINE> <INDENT> __schema_path = os.path.join('src', 'validation', 'schema') <NEW_LINE> @allure.step('Validating actual response body against the schema {schema_name}') <NEW_LINE> def validate_json(self, schema_name, actual_json): <NEW_LINE> <INDENT> logger.info(f'Starting to validate actual r... | This class reads all schemas in the src/validation/schema folder,
and then validates the chosen schema against the given JSON | 62599058004d5f362081fab6 |
class TasteMovie(ModelUtils, ndb.Model): <NEW_LINE> <INDENT> movie = ndb.KeyProperty(Movie) <NEW_LINE> taste = ndb.FloatProperty(required=True) <NEW_LINE> added = ndb.BooleanProperty(default=False) <NEW_LINE> def add_movie(self, movie): <NEW_LINE> <INDENT> self.movie = movie.key <NEW_LINE> self.put() <NEW_LINE> <DEDENT... | This model represents the taste of a user about a movie. | 625990586e29344779b01bde |
class PeriodicReportViewSet(mixins.CreateModelMixin, mixins.RetrieveModelMixin, mixins.ListModelMixin, GenericViewSet): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> return PeriodicReport.objects.filter(task__user=self.request.user) <NEW_LINE> <DEDENT> def perform_create(self, serializer): <NEW_LINE> ... | ViewSet for ``PeriodicReport`` | 62599058d486a94d0ba2d55b |
class PythonLinter(linter.Linter): <NEW_LINE> <INDENT> def context_sensitive_executable_path(self, cmd): <NEW_LINE> <INDENT> success, executable = super().context_sensitive_executable_path(cmd) <NEW_LINE> if success: <NEW_LINE> <INDENT> return success, executable <NEW_LINE> <DEDENT> python = self.settings.get('python',... | This Linter subclass provides Python-specific functionality.
Linters that check python should inherit from this class.
By doing so, they automatically get the following features:
- Automatic discovery of virtual environments using `pipenv`
- Support for a "python" setting.
- Support for a "executable" setting. | 62599058435de62698e9d397 |
class NECapital(ABOUT): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = 'Capital' <NEW_LINE> verbose_name_plural = 'Capitals' <NEW_LINE> app_label='RDb' <NEW_LINE> db_table = 'RDb_necapital' | NECapital: An adjancency table that associates NEProcesses with NEResources.
:param resource: The capital resource associated with the process.
:param process: The process enabled by this capital. | 6259905882261d6c52730994 |
class Encoder(object): <NEW_LINE> <INDENT> def __init__(self, params, cohort, secret, irr_rand): <NEW_LINE> <INDENT> self.params = params <NEW_LINE> self.cohort = cohort <NEW_LINE> self.secret = secret <NEW_LINE> self.irr_rand = irr_rand <NEW_LINE> <DEDENT> def _internal_encode_bits(self, bits): <NEW_LINE> <INDENT> uni... | Obfuscates values for a given user using the RAPPOR privacy algorithm. | 6259905899cbb53fe6832472 |
class SpriteSheet: <NEW_LINE> <INDENT> def __init__(self, img, color_key=-1, has_alpha=False): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> img = _convert_to_pygame_surface(img) <NEW_LINE> self.sheet = img.convert_alpha() if has_alpha else img.convert() <NEW_LINE> <DEDENT> except pygame.error as error: <NEW_LINE> <INDE... | Class used to retrieve individual images from a sprite sheet. | 62599058a219f33f346c7d99 |
@dataclass(eq=False) <NEW_LINE> class CandeProbBase(CandeFormattableMixin, CandeReadableMixin, abc.ABC): <NEW_LINE> <INDENT> method_: InitVar[Method] <NEW_LINE> mode_: InitVar[Mode] <NEW_LINE> level_: InitVar[Level] = Level.THREE <NEW_LINE> heading_: str = "From `candemachine` by: Rick Teachey, rick@teachey.org" <NEW_L... | Base class for CandeL1, CandeL2, and CandeL3 problems | 62599058d7e4931a7ef3d613 |
class TestInsert(unittest.TestCase): <NEW_LINE> <INDENT> def test_insert_duplicate_root(self): <NEW_LINE> <INDENT> root = bst.BinaryNode(1) <NEW_LINE> self.assertFalse(root.insert(1)) <NEW_LINE> self.assertEqual(root.size, 1) <NEW_LINE> <DEDENT> def test_insert_duplicate_leaf(self): <NEW_LINE> <INDENT> root = bst.Binar... | Tests insertion into a binary search tree. | 625990587b25080760ed87a9 |
class TestTeacherEpic(TestCaseDatabase): <NEW_LINE> <INDENT> def test_teacher(self): <NEW_LINE> <INDENT> user_student_1 = UserShop() <NEW_LINE> user_student_2 = UserShop() <NEW_LINE> user_teacher = UserShop() <NEW_LINE> stub_library = LibraryShop() <NEW_LINE> url = url_for('userview') <NEW_LINE> response = self.client.... | Base class used to test the Teacher Epic | 62599058ac7a0e7691f73a75 |
@inside_glslc_testsuite('OptionCapD') <NEW_LINE> class TestMultipleDashCapDOfSameName(expect.ValidObjectFile): <NEW_LINE> <INDENT> shader = FileShader('#version 150\nvoid main(){X Y a=Z;}', '.vert') <NEW_LINE> glslc_args = ['-c', '-DX=main', '-DY=int', '-DZ=(1+2)', '-DX', shader] | Tests multiple -D occurrences with same macro name. | 6259905894891a1f408ba1c0 |
class DynamicProxmoxInventory(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.inventory = {} <NEW_LINE> self.read_cli_args() <NEW_LINE> if self.args.list: <NEW_LINE> <INDENT> self.inventory = self.example_inventory() <NEW_LINE> <DEDENT> elif self.args.host: <NEW_LINE> <INDENT> self.inventory =... | Args:
--list Returns a list of all inventory items
--host Returns a specific hostname | 6259905823e79379d538da91 |
class DisplaySaleTarget(View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> getParams = request.GET <NEW_LINE> natural_week = getParams.get('natural_week', '') <NEW_LINE> __match=re.compile('^\d{4}-\d{2}').match(natural_week) <NEW_LINE> if __match: <NEW_LINE> <INDENT> natural_week=__match.group() <NE... | 显示所有销售目标 | 625990588e71fb1e983bd05e |
class NSNitroNserrCachegroupHostNreq(NSNitroCrErrors): <NEW_LINE> <INDENT> pass | Nitro error code 577
Host not required | 62599058004d5f362081fab7 |
class Circle(object): <NEW_LINE> <INDENT> def __init__(self, x, y, radius): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> self.radius = radius <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return ('%s(x=%r, y=%r, radius=%r)' % (self.__class__.__name__, self.x, self.y, self.radius)) <NEW_... | class that represents a circle | 62599058435de62698e9d398 |
class TeamProfile(models.Model): <NEW_LINE> <INDENT> team = models.OneToOneField(Team, blank=True, null=True) <NEW_LINE> languages_spoken = models.CharField(max_length=100) <NEW_LINE> presentation_text = models.TextField(max_length=4000) <NEW_LINE> application_letter = models.FileField(verbose_name="Upload your motivat... | Stores all relevant Information about the Team as the object of a Application.
Relevant information about the Applicants as part of the team are stored in the
'Student Profile' and assTociated to the Team Instance. | 6259905810dbd63aa1c72144 |
class BottleneckProjectionsWriter(api.RecordWriter): <NEW_LINE> <INDENT> def __init__(self, context): <NEW_LINE> <INDENT> super(BottleneckProjectionsWriter, self).__init__(context) <NEW_LINE> self.logger = LOGGER.getChild("BottleneckProjectionsWriter") <NEW_LINE> self.d, self.bn = context.get_default_work_file().rsplit... | Write out a binary record for each bottleneck. Expects a bytes object (md5
digest of the JPEG data) as the key and a numpy array (the bottleneck) as
the value. | 62599058462c4b4f79dbcf9a |
class AllocatorParser: <NEW_LINE> <INDENT> def __init__(self, basename): <NEW_LINE> <INDENT> self.defaults = {} <NEW_LINE> self.args = [] <NEW_LINE> self.args = self.parseArgs(basename) <NEW_LINE> <DEDENT> def parseArgs(self, basename): <NEW_LINE> <INDENT> parser = argparse.ArgumentParser(prog=basename) <NEW_LINE> pars... | An argument parser for node allocation requests.
Parameters
----------
basename : `str`
The name used to identify the running program | 62599058be8e80087fbc0618 |
class SingleArgSubgroup_Meta(SingleArgSubgroup): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> desc = self.__doc__.strip() <NEW_LINE> keys = [Key.meta("id", "some sort of unique identifier for the EDU")] <NEW_LINE> super(SingleArgSubgroup_Meta, self).__init__(desc, keys) <NEW_LINE> <DEDENT> def... | arg-identification features | 6259905838b623060ffaa319 |
class DistributionLineSegment(ACLineSegment): <NEW_LINE> <INDENT> conductor_info = db.ReferenceProperty(ConductorInfo, collection_name="conductor_segments") <NEW_LINE> sequence_impedance = db.ReferenceProperty(PerLengthSequenceImpedance, collection_name="conductor_segments") <NEW_LINE> phase_impedance = db.ReferencePro... | Extends ACLineSegment with references to a library of standard types from which electrical parameters can be calculated, as follows: - calculate electrical parameters from asset data, using associated ConductorInfo, with values then multiplied by Conductor.length to produce a matrix model. - calculate unbalanced electr... | 6259905807d97122c4218240 |
class Game(object): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> WIN_TITLE: str = 'RL Tutorial' <NEW_LINE> SCR_W, SCR_H = 64, 36 <NEW_LINE> self.scene: Scene = RoguelikeScene(SCR_W, SCR_H) <NEW_LINE> tcod.console_set_custom_font( contents.Fonts.ARIAL_10_10, tcod.FONT_TYPE_GREYSCALE | tcod.FONT_LA... | Provides game loop. | 62599058d99f1b3c44d06c36 |
class TypeTypeComplex(TypeType): <NEW_LINE> <INDENT> def node_type(self): <NEW_LINE> <INDENT> return self.__class__ | A type for complex objects. | 62599058009cb60464d02aca |
class scheduleEventSearchType (rangeMatcherType): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'scheduleEventSearchType') <NEW_LINE> _XSDLoc... | Complex type {urn:vpro:api:2013}scheduleEventSearchType with content type ELEMENT_ONLY | 62599058507cdc57c63a633b |
class FileSourceInfo(SourceInfo): <NEW_LINE> <INDENT> def is_my_business(self, action, **keywords): <NEW_LINE> <INDENT> status = SourceInfo.is_my_business(self, action, **keywords) <NEW_LINE> if status: <NEW_LINE> <INDENT> file_name = keywords.get("file_name", None) <NEW_LINE> if file_name: <NEW_LINE> <INDENT> if is_st... | Plugin description for a file source | 62599058a219f33f346c7d9b |
class NrpeCheck(object): <NEW_LINE> <INDENT> OK = 0 <NEW_LINE> WARNING = 1 <NEW_LINE> CRITICAL = 2 <NEW_LINE> UNKNOWN = 3 <NEW_LINE> MAX_MESSAGE_LENGTH = 4096 <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.status = None <NEW_LINE> self.output = None <NEW_LINE> self.perfdata = None <NEW_LINE> <... | Base class for running NRPE checks.
Reference: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/pluginapi.html | 625990583c8af77a43b68a0b |
@inside_spirv_testsuite('SpirvOptFlags') <NEW_LINE> class TestValidPassFlags(expect.ValidObjectFile1_5, expect.ExecutedListOfPasses): <NEW_LINE> <INDENT> flags = [ '--wrap-opkill', '--ccp', '--cfg-cleanup', '--combine-access-chains', '--compact-ids', '--convert-local-access-chains', '--copy-propagate-arrays', '--elimin... | Tests that spirv-opt accepts all valid optimization flags. | 625990582ae34c7f260ac67d |
@total_ordering <NEW_LINE> class ResultCode(Enum): <NEW_LINE> <INDENT> OK = 1 <NEW_LINE> CANCELLED = 2 <NEW_LINE> WARNING = 3 <NEW_LINE> ERROR = 4 <NEW_LINE> INSPECT = 5 <NEW_LINE> def __hash__(self) -> int: <NEW_LINE> <INDENT> return self.value <NEW_LINE> <DEDENT> def __eq__(self, other: object) -> bool: <NEW_LINE> <I... | Result codes for tasks and jobs.
Result codes can be compared to each other and to None;
the more urgent result is considered greater and
all results are greater than None. | 6259905807f4c71912bb09d1 |
class ConnectionProxy(object): <NEW_LINE> <INDENT> def __init__(self, pool=None, client_proxy=None, connected=True): <NEW_LINE> <INDENT> self.client = client_proxy <NEW_LINE> self._pool = weakref.ref(pool) <NEW_LINE> self.ready_callbacks = [] <NEW_LINE> self._connected = connected <NEW_LINE> self.info = {'db': -1} <NEW... | A stub object to replace a client's connection until one is available. | 62599058b57a9660fecd3011 |
@LOSSES.register_module() <NEW_LINE> class IoULoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, linear=False, eps=1e-6, reduction='mean', loss_weight=1.0, mode='log'): <NEW_LINE> <INDENT> super(IoULoss, self).__init__() <NEW_LINE> assert mode in ['linear', 'square', 'log'] <NEW_LINE> if linear: <NEW_LINE> <INDENT... | IoULoss.
Computing the IoU loss between a set of predicted bboxes and target bboxes.
Args:
linear (bool): If True, use linear scale of loss else determined
by mode. Default: False.
eps (float): Eps to avoid log(0).
reduction (str): Options are "none", "mean" and "sum".
loss_weight (float): Wei... | 6259905876e4537e8c3f0b22 |
class CoverLocale: <NEW_LINE> <INDENT> __instance = None <NEW_LINE> class __impl: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Locale = self._enum( RB='rhythmbox', LOCALE_DOMAIN='alternative-toolbar') <NEW_LINE> <DEDENT> def switch_locale(self, locale_type): <NEW_LINE> <INDENT> locale.setlocale(loca... | This class manages the locale | 62599058b7558d58954649f6 |
@adapter_config(required=(IAlchemyEngineUtility, IAdminLayer, AlchemyEngineEditForm), provides=IAJAXFormRenderer) <NEW_LINE> class AlchemyEngineEditFormAJAXRenderer(ContextRequestViewAdapter): <NEW_LINE> <INDENT> def render(self, changes): <NEW_LINE> <INDENT> if not changes: <NEW_LINE> <INDENT> return None <NEW_LINE> <... | SQLAlchemy engine edit form AJAX renderer | 625990588e71fb1e983bd060 |
class TestMediaTitleProperty: <NEW_LINE> <INDENT> def test_set_title(self): <NEW_LINE> <INDENT> mkv = MKV(test_paths['default'], stages.STAGE_0) <NEW_LINE> mkv._analyze() <NEW_LINE> assert mkv.media_title == 'Default Test' <NEW_LINE> assert mkv.state.clean_name == 'Default Test' <NEW_LINE> <DEDENT> def test_colon_in_ti... | Tests various aspects of file name generation | 62599058adb09d7d5dc0bb01 |
class FlowCompiler(object): <NEW_LINE> <INDENT> def __init__(self, deep_compiler_func): <NEW_LINE> <INDENT> self._deep_compiler_func = deep_compiler_func <NEW_LINE> <DEDENT> def compile(self, flow, parent=None): <NEW_LINE> <INDENT> graph = gr.DiGraph(name=flow.name) <NEW_LINE> graph.add_node(flow, kind=FLOW, noop=True)... | Recursive compiler of flows. | 625990588e7ae83300eea624 |
class Red305(object): <NEW_LINE> <INDENT> def __init__(self, concentration): <NEW_LINE> <INDENT> self.name = 'BASF Lumogen F Red 305' <NEW_LINE> self.quantum_efficiency = 0.95 <NEW_LINE> self.concentration = concentration <NEW_LINE> self.logger = logging.getLogger('pvtrace.red305') <NEW_LINE> self.logger.info('concentr... | Class to generate spectra for Red305-based devices | 6259905829b78933be26ab90 |
class DiamondTest3(DiamondTest): <NEW_LINE> <INDENT> k = 3 <NEW_LINE> k_c = (0.1, 0, 0) <NEW_LINE> test8 = False | Compare this (krhf_slow) @3kp@Gamma vs reference (krhf_slow_supercell). | 62599058462c4b4f79dbcf9c |
class TransformerEncoder(BaseTransformerEncoder): <NEW_LINE> <INDENT> def __init__(self, attention_cell='multi_head', num_layers=2, units=512, hidden_size=2048, max_length=50, num_heads=4, scaled=True, dropout=0.0, use_residual=True, output_attention=False, weight_initializer=None, bias_initializer='zeros', prefix=None... | Structure of the Transformer Encoder.
Parameters
----------
attention_cell : AttentionCell or str, default 'multi_head'
Arguments of the attention cell.
Can be 'multi_head', 'scaled_luong', 'scaled_dot', 'dot', 'cosine', 'normed_mlp', 'mlp'
num_layers : int
Number of attention layers.
units : int
Numbe... | 6259905891af0d3eaad3b3bf |
class Processor: <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> if type(text) is not str: <NEW_LINE> <INDENT> raise TextProcError("Processors require strings") <NEW_LINE> <DEDENT> self.text = text <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return len(self.text) <NEW_LINE> <DEDENT> def... | Class for Processing Strings | 62599058be8e80087fbc061a |
class Splash(object): <NEW_LINE> <INDENT> def __init__(self, container_id, port, splash_container): <NEW_LINE> <INDENT> self.splash_container = splash_container <NEW_LINE> self.id = container_id <NEW_LINE> self.port = port <NEW_LINE> <DEDENT> def get_id(self): <NEW_LINE> <INDENT> return self.id <NEW_LINE> <DEDENT> def ... | Splash. | 625990583eb6a72ae038bbf7 |
class Matching(object): <NEW_LINE> <INDENT> def __init__(self, pairs): <NEW_LINE> <INDENT> self.sthlm = set() <NEW_LINE> self.ldn = set() <NEW_LINE> self.neighbors = {} <NEW_LINE> self.match = {} <NEW_LINE> self.dist = {} <NEW_LINE> self.q = collections.deque() <NEW_LINE> for i, j in pairs: <NEW_LINE> <INDENT> self.sth... | I perform calculation for minimum vertex cover of the employee graph.
I'm based on:
* http://en.wikipedia.org/wiki/Koenig's_theorem_(graph_theory)
* http://en.wikipedia.org/wiki/Hopcroft-Karp_algorithm | 62599058379a373c97d9a5bc |
class HexException(Exception): <NEW_LINE> <INDENT> def __init__(self, hex_file, message): <NEW_LINE> <INDENT> self.hex_file = hex_file <NEW_LINE> self.message = message | Exception raised for problems with the hex file.
Attributes:
hex_file -- the file that caused the error
message -- explanation of the error | 6259905845492302aabfda70 |
class INT( int ): <NEW_LINE> <INDENT> def __repr__( self ): <NEW_LINE> <INDENT> return '%s(%s)' % ( self.__class__.__name__, int.__repr__( self )) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return int.__str__( int( self )) <NEW_LINE> <DEDENT> def loc( self ): <NEW_LINE> <INDENT> return _loc_repr( self ) | AST: INT( number ) | 62599058d53ae8145f9199fb |
class Field(object): <NEW_LINE> <INDENT> def __init__(self, name, storage_type="unknown", analytical_type="typeless", concrete_storage_type=None, missing_values=None, label=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.label = label <NEW_LINE> self.storage_type = storage_type <NEW_LINE> self.analytical_ty... | Metadata - information about a field in a dataset or in a datastream.
:Attributes:
* `name` - field name
* `label` - optional human readable field label
* `storage_type` - Normalized data storage type. The data storage type
is abstracted
* `concrete_storage_type` (optional, recommended) - Data st... | 6259905801c39578d7f14203 |
class SimulationProblem: <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self, model, solverId, method): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> self.solverId = solverId <NEW_LINE> self.method = method <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def simulate(self, overrideSimulProblem=N... | Abstract class of simulation problem | 62599058627d3e7fe0e08426 |
class ChompConstants(object): <NEW_LINE> <INDENT> RANDOM_PLAYER = "_random" <NEW_LINE> MINIMAL_STEP_PLAYER = "_minimal_step" <NEW_LINE> ACTUAL_PLAYER = '_person' <NEW_LINE> ALPHABETA_PLAYER = '_alpha_beta' <NEW_LINE> CHOCOLATE_ATE_VALUE = '.' <NEW_LINE> CHOCOLATE_POISON_VALUE = 'X' <NEW_LINE> CHOCOLATE_SWEET_VALUE = 'O... | The Class consists of all the constants to avoid typos and also it is easier to refactor something | 625990586e29344779b01be4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.