code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Control(object, metaclass=ABCMeta): <NEW_LINE> <INDENT> EMAIL_PATTERN = r"[a-zA-Z0-9\_\-\.\+]+@[a-zA-Z0-9\.\-]+\.[a-zA-Z]+" <NEW_LINE> IP_PATTERN = r"^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" <NEW_LINE> ID_PATTERN = r"^[0-9]+$" <NEW_LINE> IDS_PATTERN = r"^[0-9\,]+$" <NEW_LINE> POSITIVE_NUMBER = r"^[0-9]+$... | Controlling inputs.
.. note: do not implement __init__ method for this class. | 62598f9838b623060ffa8db9 |
class Proposicoes(RESTful): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Proposicoes, self).__init__('proposicoes') <NEW_LINE> <DEDENT> def obterTodasProposicoes(self, **kwargs): <NEW_LINE> <INDENT> return self.runThroughAllPages(**kwargs) <NEW_LINE> <DEDENT> def obterProposicao(self, prop_id): <NE... | Cliente para obtenção de dados de proposições
Essa classe deve ser instanciada para a obtenção de dados referentes a proposições da Câmara dos Deputados.
Exemplo::
prop = Proposicoes() | 62598f98d7e4931a7ef3bdc3 |
class ToggleButton(wx.ToggleButton): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> wx.ToggleButton.__init__(self, *args, **kwargs) <NEW_LINE> <DEDENT> def SetToolTip(self, tip): <NEW_LINE> <INDENT> if wxPythonPhoenix: <NEW_LINE> <INDENT> wx.ToggleButton.SetToolTip(self, tipString=tip) <NE... | Wrapper around wx.ToggleButton to have more control
over the widget on different platforms/wxpython versions | 62598f986fb2d068a7693cc9 |
class AddView(WgerFormMixin, LoginRequiredMixin, PermissionRequiredMixin, CreateView): <NEW_LINE> <INDENT> model = RepetitionUnit <NEW_LINE> fields = ['name'] <NEW_LINE> title = ugettext_lazy('Add') <NEW_LINE> success_url = reverse_lazy('core:repetition-unit:list') <NEW_LINE> form_action = reverse_lazy('core:repetition... | View to add a new setting unit | 62598f98dd821e528d6d8c60 |
class ContColorTableModel(ColorTableModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.mouse_row = None <NEW_LINE> <DEDENT> def set_mouse_row(self, row): <NEW_LINE> <INDENT> self.mouse_row = row <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def columnCount(parent=QMode... | A model that stores the colors corresponding to values of discrete
variables. Colors are shown as decorations.
Attributes:
mouse_row (int): the row over which the mouse is hovering | 62598f980a50d4780f705103 |
class TestProject(fixtures.Fixture): <NEW_LINE> <INDENT> def _setUp(self): <NEW_LINE> <INDENT> self.path = self.useFixture(fixtures.TempDir()).path <NEW_LINE> build_config = { 'bootstrap_requires': ["testbuilder"], 'build_command': ["{PYTHON}", "-m", "testbuilder"]} <NEW_LINE> root = os.path.join(os.path.dirname(__file... | A project for testing with.
:attr path: The path to the project. | 62598f98004d5f362081ee92 |
class ValidationError(Exception): <NEW_LINE> <INDENT> pass | Represents a failed validation. | 62598f988e71fb1e983bb7e1 |
class NullableFloat(Float): <NEW_LINE> <INDENT> DEFAULT = None | Converter for the `float` type with `None` as default. | 62598f98b7558d589546335a |
class OverlapBlockMerger(BlockMerger): <NEW_LINE> <INDENT> def __init__(self, overlap=0.5, **extra): <NEW_LINE> <INDENT> self.overlap = overlap <NEW_LINE> <DEDENT> def merge(self, blocks, keys): <NEW_LINE> <INDENT> import itertools <NEW_LINE> import copy <NEW_LINE> from thunder.rdds.imgblocks.blocks import PaddedBlockG... | Merger that combines sources across blocks by
merging sources that overlap with sources in neighboring blocks
Parameters
----------
overlap : scalar, optional, default = 0.5
Degree of overlap requires for sources to be merged | 62598f98d6c5a102081e1e70 |
class Post: <NEW_LINE> <INDENT> def __init__(self,text=''): <NEW_LINE> <INDENT> self.text = text <NEW_LINE> self.soup = bs(text) <NEW_LINE> <DEDENT> def stripquotes(self): <NEW_LINE> <INDENT> for str in self.soup.findAll('blockquote'): <NEW_LINE> <INDENT> str.replaceWith(' ') <NEW_LINE> <DEDENT> for str in self.soup.fi... | Post object. Provides methods for reading posts. Stores text as single-line string | 62598f98bd1bec0571e14f5a |
class DescriptionList(generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = Description.objects.all() <NEW_LINE> serializer_class = DescriptionSerializer <NEW_LINE> def perform_create(self, serializer): <NEW_LINE> <INDENT> serializer.save(author=self.request.user) | API endpoint that presents a list of descriptions and allows
new descriptions to be created. | 62598f988e7ae83300ee8dc9 |
class FieldGrid(Grid): <NEW_LINE> <INDENT> def __init__(self, view, fields, selects): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.styles() <NEW_LINE> self.tile(0, 0, text = '', cspan = 2, style = 'title', tag = 'title') <NEW_LINE> row = 1 <NEW_LINE> for field, slist in selects.items(): <NEW_LINE> <INDENT> se... | Present the data for a template, allowing editing of the
individual fields.
There is special handling for certain pupil fields. | 62598f988da39b475be02f10 |
class BasicAuthTransport(xmlrpclib.Transport): <NEW_LINE> <INDENT> def __init__(self, username=None, password=None, verbose=0): <NEW_LINE> <INDENT> self.username=username <NEW_LINE> self.password=password <NEW_LINE> self.verbose=verbose <NEW_LINE> <DEDENT> def request(self, host, handler, request_body, verbose=0): <NEW... | taken from http://www.zope.org/Members/Amos/XML-RPC | 62598f98462c4b4f79dbb736 |
class Html(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.extensionList=['.html'] <NEW_LINE> <DEDENT> def countLineInFile(self,pathFile): <NEW_LINE> <INDENT> blankLine=0 <NEW_LINE> commentLine=0 <NEW_LINE> lineCode=0 <NEW_LINE> with open(pathFile, "r") as fichier: <NEW_LINE> <INDENT> inCommen... | class qui gere le langage (x)HTML | 62598f988e7ae83300ee8dca |
class EditarRolForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = rol <NEW_LINE> fields = [ 'nombre', 'permisos', 'tipoRecurso', 'prioridad', ] <NEW_LINE> labels = { 'nombre': 'Nombre del rol', 'permisos': 'Permisos', 'tipoRecurso':'Tipo de recurso', 'prioridad': 'Prioridad Para Reserva'... | este form permite editar ciertos campos de un rol | 62598f987d847024c075c0ff |
@python_2_unicode_compatible <NEW_LINE> class LayerTransformation(models.Model): <NEW_LINE> <INDENT> object_layer = models.ForeignKey( on_delete=models.CASCADE, related_name='transformations', to=ObjectLayer, verbose_name=_('Object layer') ) <NEW_LINE> order = models.PositiveIntegerField( blank=True, db_index=True, def... | Model that stores the transformation and transformation arguments
for a given object
Fields:
* order - Order of a Transformation - In case there are multiple
transformations for an object, this field list the order at which
they will be execute.
* arguments - Arguments of a Transformation - An optional field to hold a
... | 62598f98507cdc57c63a4ac2 |
class BaseTransmission(ReductionStep): <NEW_LINE> <INDENT> def __init__(self, trans=0.0, error=0.0, theta_dependent=True): <NEW_LINE> <INDENT> super(BaseTransmission, self).__init__() <NEW_LINE> self._trans = float(trans) <NEW_LINE> self._error = float(error) <NEW_LINE> self._theta_dependent = theta_dependent <NEW_LINE... | Base transmission. Holds the transmission value
as well as the algorithm for calculating it.
TODO: ISIS doesn't use ApplyTransmissionCorrection, perhaps it's in Q1D, can we remove it from here? | 62598f9896565a6dacd2ce10 |
class Expression: <NEW_LINE> <INDENT> parent = None <NEW_LINE> attributes: Dict[Name, 'Expression'] = {} <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def visit(self, visitor: 'Visitor', depth=0): <NEW_LINE> <INDENT> raise NotImplemented <NEW_LINE> <DEDENT> def set_parent(self, parent): <N... | Base Node for every Expression in Kiwi.
All Kiwi expressions have attributes. Attributes are information stored at compile time that can be accessed
and used to store information.
This is in order to make meta programming and reflection easier to the end user.
Fore example, if a user wants to implement auto-diff. We c... | 62598f98f548e778e596b2d8 |
class PrefixExpression(Expression): <NEW_LINE> <INDENT> __slots__ = ('expression',) <NEW_LINE> prefix = '(unknown)' <NEW_LINE> def __init__(self, expression): <NEW_LINE> <INDENT> self.expression = expression | Expression representing a prefix
:param expression: the expression to be prefixed | 62598f9810dbd63aa1c708e4 |
class DjangoOffsetBasedPaginator(BaseModelOffsetBasedPaginator): <NEW_LINE> <INDENT> def _get_model(self, qs): <NEW_LINE> <INDENT> return qs.model <NEW_LINE> <DEDENT> def _get_list_from_queryset(self, qs, from_, to_): <NEW_LINE> <INDENT> return list(qs[from_:to_]) <NEW_LINE> <DEDENT> def _get_total(self, qs, request): ... | REST paginator for list and querysets | 62598f980a50d4780f705105 |
class Field(object): <NEW_LINE> <INDENT> def __init__(self,w,h): <NEW_LINE> <INDENT> self.w = h <NEW_LINE> self.h = w <NEW_LINE> self.t = [[0]*h for i in range(w)] <NEW_LINE> <DEDENT> def write(self,x,y,v=None): <NEW_LINE> <INDENT> if v == None: <NEW_LINE> <INDENT> v = y <NEW_LINE> y = x%self.w <NEW_LINE> x = x//self.w... | 2D Table to store Tile/Bomb objects. | 62598f9815baa72349461cb0 |
class ChamanaraSurface(Surface): <NEW_LINE> <INDENT> def __init__(self, alpha): <NEW_LINE> <INDENT> self._p = ChamanaraPolygon(alpha) <NEW_LINE> field = alpha.parent() <NEW_LINE> if not field.is_field(): <NEW_LINE> <INDENT> field = field.fraction_field() <NEW_LINE> <DEDENT> self.rename('Chamanara surface with parameter... | The ChamanaraSurface $X_{\alpha}$.
EXAMPLES::
sage: from flatsurf.geometry.chamanara import ChamanaraSurface
sage: ChamanaraSurface(1/2)
Chamanara surface with parameter 1/2 | 62598f98c432627299fa2d03 |
class GraphMaxPool(nn.Module): <NEW_LINE> <INDENT> def __init__(self, kernel_size, stride=None, padding=0, dilation=1, return_indices=False, ceil_mode=False): <NEW_LINE> <INDENT> super(GraphPool, self).__init__() <NEW_LINE> self.pool = nn.MaxPool1d(kernel_size, stride, padding, dilation, return_indices, ceil_mode) <NEW... | GraphMaxPool wraps MaxPool1d.
| 62598f988a43f66fc4bf1eaa |
class Review(core_models.TimeStampedModel): <NEW_LINE> <INDENT> review = models.TextField() <NEW_LINE> accuracy = models.IntegerField() <NEW_LINE> communication = models.IntegerField() <NEW_LINE> cleanliness = models.IntegerField() <NEW_LINE> location = models.IntegerField() <NEW_LINE> check_in = models.IntegerField() ... | Review model Def | 62598f98435de62698e9bb22 |
class FetchDocTest(unittest.TestCase): <NEW_LINE> <INDENT> def testInvalidTrunkId(self): <NEW_LINE> <INDENT> self.assertRaises(models.InvalidTrunkError, library.fetch_doc, "InvalidID", "InvalidId") <NEW_LINE> self.assertRaises(models.InvalidTrunkError, library.fetch_doc, "InvalidID") <NEW_LINE> self.assertRaises(TypeEr... | Test for fetching document from datastore.
If no trunk_id or invalid trunk_id raise InvaildDocumentError
If both trunk_id and doc_id are provided retrieve the corresponding
document.
If doc_id is invalid or only trunk_id is provided retrieve head document
for the trunk.
TODO(mukundjha): Check for raised exceptions. | 62598f98498bea3a75a5784e |
class Group(object): <NEW_LINE> <INDENT> def __init__(self, delay=None, actions=None): <NEW_LINE> <INDENT> self.delay = delay <NEW_LINE> self.actions = actions <NEW_LINE> if self.actions == None: self.actions = [] <NEW_LINE> <DEDENT> def output(self): <NEW_LINE> <INDENT> acts = [] <NEW_LINE> for i in self.actions: <NEW... | A list of Action objects plus a delay time for when the actions are applied, | 62598f98a17c0f6771d5bf69 |
class DecimalField(Field): <NEW_LINE> <INDENT> def __init__(self, precision, scale, default=None, alias=None, materialized=None, readonly=None): <NEW_LINE> <INDENT> assert 1 <= precision <= 38, 'Precision must be between 1 and 38' <NEW_LINE> assert 0 <= scale <= precision, 'Scale must be between 0 and the given precisi... | Base class for all decimal fields. Can also be used directly. | 62598f9829b78933be269f74 |
class ProposalLayer(KE.Layer): <NEW_LINE> <INDENT> def __init__(self, proposal_count, nms_threshold, config=None, **kwargs): <NEW_LINE> <INDENT> super(ProposalLayer, self).__init__(**kwargs) <NEW_LINE> self.config = config <NEW_LINE> self.proposal_count = proposal_count <NEW_LINE> self.nms_threshold = nms_threshold <NE... | Receives anchor scores and selects a subset to pass as proposals
to the second stage. Filtering is done based on anchor scores and
non-max suppression to remove overlaps. It also applies bounding
box refinement deltas to anchors.
Inputs:
rpn_probs: [batch, anchors, (bg prob, fg prob)]
rpn_bbox: [batch, anchors,... | 62598f989b70327d1c57ead0 |
class TeeOutputStreams(object): <NEW_LINE> <INDENT> def __init__(self, *streams): <NEW_LINE> <INDENT> self.streams = streams; <NEW_LINE> self._closed = False; <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> for stream in self.streams: <NEW_LINE> <INDENT> stream.close(); <NEW_LINE> <DEDENT> self._closed = True;... | for piping to several output streams | 62598f98baa26c4b54d4efdf |
class InvertedIndex: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.inverted_lists = {} <NEW_LINE> <DEDENT> def read_from_file(self, file_name): <NEW_LINE> <INDENT> record_id = 0 <NEW_LINE> with open(file_name) as file: <NEW_LINE> <INDENT> for line in file: <NEW_LINE> <INDENT> record_id += 1 <NEW_LINE... | A simple inverted index, as explained in Lecture 1. | 62598f9830dc7b766599f57b |
class TimeProperty(DateTimeProperty): <NEW_LINE> <INDENT> def _validate(self, value): <NEW_LINE> <INDENT> if not isinstance(value, datetime.time): <NEW_LINE> <INDENT> raise errors.BadValueError('Expected time, got %r' % (value,)) <NEW_LINE> <DEDENT> <DEDENT> def _to_base_type(self, value): <NEW_LINE> <INDENT> assert is... | A property whose value is a time object. | 62598f983539df3088ecbfe5 |
class Arrow3D(FancyArrowPatch): <NEW_LINE> <INDENT> def __init__(self,xs,ys,zs,*args,**kwargs): <NEW_LINE> <INDENT> FancyArrowPatch.__init__(self,(0,0),(0,0),*args,**kwargs) <NEW_LINE> self.verts = xs,ys,zs <NEW_LINE> <DEDENT> def draw(self,renderer): <NEW_LINE> <INDENT> xp,yp,zp = proj3d.proj_transform(*self.verts,M=r... | creates an artist object for a 3D arrow | 62598f9821a7993f00c65caf |
class ReminderGraphViewTest(BaseGraphViewTest): <NEW_LINE> <INDENT> url_name = 'report-reminder-usage' <NEW_LINE> def test_data_to_date(self): <NEW_LINE> <INDENT> results = self.get(self.url) <NEW_LINE> self.assertTrue('to_date' in results) <NEW_LINE> self.assertFalse('range' in results) <NEW_LINE> <DEDENT> def test_da... | View for generating data for the reminder usage graph. | 62598f981b99ca400228f3c4 |
class Request(models.Model): <NEW_LINE> <INDENT> title = models.CharField( max_length=50, verbose_name='Заголовок', default='' ) <NEW_LINE> text = models.CharField( max_length=500, verbose_name='Текст', default='' ) <NEW_LINE> request_reason = models.ForeignKey( 'request.RequestReason', verbose_name='Причина заявки', o... | Заявка | 62598f98462c4b4f79dbb738 |
class SvlMissingDatasetError(Exception): <NEW_LINE> <INDENT> pass | A dataset specified in an SVL plot is not in the dataset specifiers for
the program. | 62598f9885dfad0860cbf90b |
class EntityDescriptor(TagDescriptor): <NEW_LINE> <INDENT> def __init__(self, tag, klass): <NEW_LINE> <INDENT> super(EntityDescriptor, self).__init__(tag) <NEW_LINE> self.klass = klass <NEW_LINE> <DEDENT> def __get__(self, instance, cls): <NEW_LINE> <INDENT> instance.get() <NEW_LINE> node = self.rootnode(instance).find... | An instance attribute referencing another entity instance. | 62598f98596a8972361279ae |
class Getter(object): <NEW_LINE> <INDENT> def __init__(self, client_name=CLIENT_NAME): <NEW_LINE> <INDENT> self.db = RedisClient() <NEW_LINE> self.client_name = client_name <NEW_LINE> self.flag = False <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_ip(if_name=IFNAME): <NEW_LINE> <INDENT> (status, output) = subpro... | 获取动态拨号主机产生的ip | 62598f9801c39578d7f12aae |
class CuBinary(CuTarget): <NEW_LINE> <INDENT> def __init__(self, name, srcs, deps, warning, defs, incs, extra_cppflags, extra_linkflags, blade, kwargs): <NEW_LINE> <INDENT> type = 'cu_binary' <NEW_LINE> CuTarget.__init__(self, name, type, srcs, deps, warning, defs, incs, extra_cppflags, extra_linkflags, blade, kwargs) ... | A scons cu target subclass
This class is derived from SconsCuTarget and it generates the cu_binary
rules according to user options. | 62598f98a17c0f6771d5bf6a |
class CaughtFatalException(Exception): <NEW_LINE> <INDENT> pass | Raised by Game.log() when it catches a fatal exception. | 62598f98bde94217f3707501 |
class ActorNetwork(object): <NEW_LINE> <INDENT> def __init__(self, sess): <NEW_LINE> <INDENT> self.sess = sess <NEW_LINE> self.s_dim = STATE_DIM <NEW_LINE> self.a_dim = ACTION_DIM <NEW_LINE> self.a_prob_dim = ACTION_PROB_DIMS <NEW_LINE> self.action_bound = ACTION_BOUND <NEW_LINE> self.learning_rate = ACTOR_LEARNING_RAT... | Input to the network is the state, output is the action
under a deterministic policy.
The output layer activation is a tanh to keep the action
between -2 and 2 | 62598f9899cbb53fe6830c00 |
@_generate_specific_http_exception_class <NEW_LINE> class PermissionDenied(web.HTTPForbidden): <NEW_LINE> <INDENT> sub_code = ErrorCode.permission_denied <NEW_LINE> error_reason = "Permission denied" | Raised if user hasn't got required permission for operation | 62598f983c8af77a43b67dd4 |
@tube <NEW_LINE> class _IteratorTube(object): <NEW_LINE> <INDENT> def __init__(self, iterable): <NEW_LINE> <INDENT> self.iterable = iterable <NEW_LINE> <DEDENT> def started(self): <NEW_LINE> <INDENT> for value in self.iterable: <NEW_LINE> <INDENT> yield value | An L{_IteratorTube} is an L{ITube} delivering the values from an iterable. | 62598f98e76e3b2f99fd8764 |
class Transformable: <NEW_LINE> <INDENT> def __abs__(self): <NEW_LINE> <INDENT> return self.apply(abs) <NEW_LINE> <DEDENT> def __round__(self): <NEW_LINE> <INDENT> return self.apply(round) <NEW_LINE> <DEDENT> def __floor__(self): <NEW_LINE> <INDENT> return self.apply(math.floor) <NEW_LINE> <DEDENT> def __ceil__(self): ... | A class that supports transformations.
Subclasses must implement the apply method, which specifies how to
apply a function to the object. | 62598f98d58c6744b42dc168 |
class PaginationOptions(object): <NEW_LINE> <INDENT> def __init__(self, offset=0, limit=50): <NEW_LINE> <INDENT> self.offset = offset <NEW_LINE> self.limit = limit | Pagination options class, has offset and limit parameters. | 62598f9810dbd63aa1c708e6 |
class ContentExtractor(nn.Module): <NEW_LINE> <INDENT> def __init__(self, ngf=64, n_blocks=16): <NEW_LINE> <INDENT> super(ContentExtractor, self).__init__() <NEW_LINE> self.head = nn.Sequential( nn.Conv2d(3, ngf, kernel_size=3, stride=1, padding=1), nn.LeakyReLU(0.1, True) ) <NEW_LINE> self.body = nn.Sequential( *[ResB... | Content Extractor for SRNTT, which outputs maps before-and-after upscale.
more detail: https://github.com/ZZUTK/SRNTT/blob/master/SRNTT/model.py#L73.
Currently this module only supports `scale_factor=4`.
Parameters
---
ngf : int, optional
a number of generator's features.
n_blocks : int, optional
a number of r... | 62598f98d7e4931a7ef3bdc7 |
class ReversedGlobalFilter(logging.Filter): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> logging.Filter.__init__(self) <NEW_LINE> self.filters = [] <NEW_LINE> <DEDENT> def add_filter(self, f, level=logging.DEBUG): <NEW_LINE> <INDENT> self.filters.append((f, level)) <NEW_LINE> <DEDENT> def filter(self, re... | It's like a reversed filter, the default behavior
is to not show the message, you need to add custom filters for all
the records you wish to see | 62598f98498bea3a75a5784f |
class AmbiguousConversionError(ConversionError): <NEW_LINE> <INDENT> pass | An AmbiguousConversionError is raised when a conversion of one entity from
one reading to another is ambiguous. | 62598f9855399d3f05626250 |
class PluginLoadingProcessAwareApplication(ProcessAwareApplication): <NEW_LINE> <INDENT> __slots__ = ('_package_name') <NEW_LINE> @classmethod <NEW_LINE> def new(cls, *args, **kwargs): <NEW_LINE> <INDENT> package_name = kwargs.pop('package_name') <NEW_LINE> if not package_name: <NEW_LINE> <INDENT> raise ValueError("A p... | An application to load Plugins in any case, even if we have not been started by the wrapper.
This works by specifying the entrypoint package, and it will do the right thing depending on
whether or not a wrapper was involved.
@note useful for standalone testing on CI, where no wrapper is involved (as it comes in throug... | 62598f9829b78933be269f75 |
class ResourceReview(models.Model): <NEW_LINE> <INDENT> review_date = models.DateTimeField( _('Reviewed on'), help_text=_('The review date. Automatically added on review ' 'resource.'), auto_now_add=True, editable=False) <NEW_LINE> reviewer = models.ForeignKey( User, verbose_name=_('Reviewed by'), help_text=_('The user... | A Review Model. | 62598f9801c39578d7f12aaf |
class JuliURL(models.Model): <NEW_LINE> <INDENT> url = models.CharField(max_length=220, validators=[validate_url, validator_dot_com]) <NEW_LINE> shortcode = models.CharField(max_length=SHORTCODE_MAX, unique=True, blank=True) <NEW_LINE> updated = models.DateTimeField(auto_now=True) <NEW_LINE> timestamp = models.DateTime... | Create JuliURL Class | 62598f98eab8aa0e5d30bab4 |
class PyEmbeddedImage(object): <NEW_LINE> <INDENT> def __init__(self, data, isBase64=True): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.isBase64 = isBase64 <NEW_LINE> <DEDENT> def GetBitmap(self): <NEW_LINE> <INDENT> return wx.BitmapFromImage(self.GetImage()) <NEW_LINE> <DEDENT> def GetData(self): <NEW_LINE> <... | PyEmbeddedImage is primarily intended to be used by code generated
by img2py as a means of embedding image data in a python module so
the image can be used at runtime without needing to access the
image from an image file. This makes distributing icons and such
that an application uses simpler since tools like py2exe ... | 62598f981b99ca400228f3c5 |
class KeyIndicators: <NEW_LINE> <INDENT> number_of_ongoing_incidents = 0 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.reported_incidents = {key: 0 for key in IncidentType} <NEW_LINE> self.affected_regions = {key: 0 for key in Region} <NEW_LINE> self.number_of_resolved_incidents = 0 <NEW_LINE> self.total_reso... | Contains statistics used to calculate key indicators and trends.
Can calculate the indicators and trends, which are returned as human-readable strings. | 62598f98596a8972361279b1 |
class APIError(Error): <NEW_LINE> <INDENT> pass | developer error | 62598f98a219f33f346c654b |
class PermissionsFileError(exceptions.Error): <NEW_LINE> <INDENT> pass | Error if a permissions file is improperly formatted. | 62598f984527f215b58e9c15 |
class TestDeletionBot(ScriptMainTestCase): <NEW_LINE> <INDENT> family = 'test' <NEW_LINE> code = 'test' <NEW_LINE> cached = True <NEW_LINE> delete_args = [] <NEW_LINE> undelete_args = [] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self._original_delete = pywikibot.Page.delete <NEW_LINE> self._original_undelete = py... | Test deletionbot with patching to make it non-write. | 62598f98507cdc57c63a4ac6 |
class OmapiSizeLimitError(OmapiError): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> OmapiError.__init__(self, "Packet size limit reached.") | Packet size limit reached. | 62598f982ae34c7f260aae11 |
class MissionRawServer(AsyncBase): <NEW_LINE> <INDENT> name = "MissionRawServer" <NEW_LINE> def _setup_stub(self, channel): <NEW_LINE> <INDENT> self._stub = mission_raw_server_pb2_grpc.MissionRawServerServiceStub(channel) <NEW_LINE> <DEDENT> def _extract_result(self, response): <NEW_LINE> <INDENT> return MissionRawServ... | Acts as a vehicle and receives incoming missions from GCS (in raw MAVLINK format).
Provides current mission item state, so the server can progress through missions.
Generated by dcsdkgen - MAVSDK MissionRawServer API | 62598f98a17c0f6771d5bf6c |
class DeleteScriptResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ScriptsAffected = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ScriptsAffected = params.get("ScriptsAffected") <NEW_LINE> self.RequestId = par... | DeleteScript返回参数结构体
| 62598f98bde94217f3707502 |
class DisableUserForm(BaseSecureForm): <NEW_LINE> <INDENT> pass | CSRF-protected form to disable a user | 62598f9845492302aabfc20a |
class UnetDecoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, output_nc=[], nf=32, max_nf=128, num_scales=7, n_residual_blocks=2, norm='batch', activation=nn.ReLU(False), gpu_ids=[]): <NEW_LINE> <INDENT> super(UnetDecoder, self).__init__() <NEW_LINE> output_nc = output_nc if isinstance(output_nc, list) else [out... | Decoder that decodes hierarachical features. Support multi-task output. Used as an external decoder of a DualUnetGenerator network | 62598f983cc13d1c6d46549e |
class XDIFileException(Exception): <NEW_LINE> <INDENT> def __init__(self, msg, **kws): <NEW_LINE> <INDENT> Exception.__init__(self) <NEW_LINE> self.msg = msg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.msg | XDI File Exception: General Errors | 62598f985f7d997b871f9276 |
class QGridHeader ( QHeaderView ): <NEW_LINE> <INDENT> def contextMenuEvent ( self, event ): <NEW_LINE> <INDENT> self.editor.display_header_context_menu( event ) | Subclass of the standard QHeaderView to add grid editor specific code.
| 62598f98097d151d1a2c0d55 |
class EtlPrivacyTransformFunctionTestCase(actions.TestBase): <NEW_LINE> <INDENT> def test_hmac_sha_2_256_is_stable(self): <NEW_LINE> <INDENT> self.assertEqual( etl._hmac_sha_2_256('secret', 'value'), etl._hmac_sha_2_256('secret', 'value')) <NEW_LINE> <DEDENT> def test_is_identity_transform_when_privacy_false(self): <NE... | Tests privacy transforms. | 62598f983539df3088ecbfe8 |
class WorkspaceLauncher(PopUp): <NEW_LINE> <INDENT> def init_gui(self): <NEW_LINE> <INDENT> self.folder_path = '' <NEW_LINE> self.parent.title("Workspace Launcher") <NEW_LINE> self.parent.columnconfigure(0, weight=1) <NEW_LINE> self.parent.rowconfigure(3, weight=1) <NEW_LINE> self.label_title = ttk.Label(self.parent, t... | New popup window | 62598f9867a9b606de545d06 |
class DescribeTemplateListStatus(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TemplateId = None <NEW_LINE> self.International = None <NEW_LINE> self.StatusCode = None <NEW_LINE> self.ReviewReply = None <NEW_LINE> self.TemplateName = None <NEW_LINE> self.CreateTime = None <NEW_LINE> s... | 获取短信模板信息响应
| 62598f9856b00c62f0fb25e1 |
class Let(Node): <NEW_LINE> <INDENT> def __init__(self, position, defvars, body): <NEW_LINE> <INDENT> self.position = position <NEW_LINE> self.defvars = defvars <NEW_LINE> self.body = body <NEW_LINE> return <NEW_LINE> <DEDENT> def GetChildren(self): <NEW_LINE> <INDENT> li = [] <NEW_LINE> li.append(self.defvars) <NEW_LI... | A Let binding. | 62598f9826068e7796d4c694 |
class Rectangle: <NEW_LINE> <INDENT> number_of_instances = 0 <NEW_LINE> print_symbol = '#' <NEW_LINE> 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>... | Defines rectangle
Returns specs | 62598f981f5feb6acb162954 |
class CheckEventView(generics.RetrieveAPIView): <NEW_LINE> <INDENT> permission_classes = [TokenHasReadWriteScope | IsAdminUser] <NEW_LINE> required_scopes = ["can_check_if_exist"] <NEW_LINE> queryset = Event.objects.all() <NEW_LINE> lookup_field = "slug" <NEW_LINE> serializer_class = EventCheckSerializer | Check if Event with this slug exists
-- is used to communicate with 3rd aplication | 62598f98498bea3a75a57852 |
class OrderHistoryView(ListView): <NEW_LINE> <INDENT> context_object_name = "orders" <NEW_LINE> template_name = 'customer/order-history.html' <NEW_LINE> paginate_by = 20 <NEW_LINE> model = order_model <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return self.model._default_manager.filter(user=self.request.user... | Customer order history | 62598f98baa26c4b54d4efe3 |
@yaml_object(yaml) <NEW_LINE> class SimElement(object): <NEW_LINE> <INDENT> NAME = "SimElement" <NEW_LINE> VERSION = "0.0.0" <NEW_LINE> TYPE = "Generic" <NEW_LINE> def __init__(self, parent_dir="."): <NEW_LINE> <INDENT> self._parent_dir = parent_dir <NEW_LINE> self._filetypes = ["config", "forcing", "input", "log", "mo... | A meta-object to hold both Component and SetUp | 62598f9832920d7e50bc5d89 |
class SplitSelectDateTimeWidget(MultiWidget): <NEW_LINE> <INDENT> def __init__(self, attrs=None, hour_step=None, minute_step=None, second_step=None, twelve_hr=None, years=None): <NEW_LINE> <INDENT> widgets = (SelectDateWidget(attrs=attrs, years=years), SelectTimeWidget(attrs=attrs, hour_step=hour_step, minute_step=minu... | MultiWidget = A widget that is composed of multiple widgets.
This class combines SelectTimeWidget and SelectDateWidget so we
have something like SpliteDateTimeWidget (in
django.forms.widgets), but with Select elements. | 62598f9830dc7b766599f57f |
class ReversiGame(Frame): <NEW_LINE> <INDENT> def __init__(self,master): <NEW_LINE> <INDENT> Frame.__init__(self,master,bg='white') <NEW_LINE> self.grid() <NEW_LINE> self.colors = ('black','white') <NEW_LINE> self.board = ReversiBoard() <NEW_LINE> self.squares = {} <NEW_LINE> for row in range(8): <NEW_LINE> <INDENT> fo... | represents a game of Reversi | 62598f98eab8aa0e5d30bab6 |
class AggregateObjectApiTestCase(AggregateObjectCellTestCase): <NEW_LINE> <INDENT> def _seed_data(self): <NEW_LINE> <INDENT> for i in range(1, 10): <NEW_LINE> <INDENT> create_aggregate(self.context, i) <NEW_LINE> <DEDENT> <DEDENT> def test_create(self): <NEW_LINE> <INDENT> new_agg = aggregate_obj.Aggregate(self.context... | Tests the aggregate in the case where all data is in the API DB | 62598f987cff6e4e811b5752 |
class Classifier(caffe.Net): <NEW_LINE> <INDENT> def __init__(self, model_file, pretrained_file, image_dims=None, mean=None, input_scale=None, raw_scale=None, channel_swap=None): <NEW_LINE> <INDENT> caffe.Net.__init__(self, model_file, pretrained_file, caffe.TEST) <NEW_LINE> in_ = self.inputs[0] <NEW_LINE> self.transfo... | Classifier extends Net for image class prediction
by scaling, center cropping, or oversampling.
Parameters
----------
image_dims : dimensions to scale input for cropping/sampling.
Default is to scale to net input size for whole-image crop.
mean, input_scale, raw_scale, channel_swap: params for
preprocessing op... | 62598f9823849d37ff850df9 |
class ProjectListCreateView(generics.ListCreateAPIView): <NEW_LINE> <INDENT> serializer_class = ProjectSerializer <NEW_LINE> permission_classes = [IsAuthenticated] <NEW_LINE> def get_queryset(self, *args, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return Project.objects.filter(contributor=self.request.user... | récupere tout les projets dans lequel on est contributeur, permet de créer un projet | 62598f98009cb60464d01257 |
class FileStreamWrapped(object): <NEW_LINE> <INDENT> def __init__(self, metadata, data): <NEW_LINE> <INDENT> self._metadata = metadata <NEW_LINE> self._data = data <NEW_LINE> <DEDENT> def read(self): <NEW_LINE> <INDENT> data = self._data <NEW_LINE> self._data = '' <NEW_LINE> return data <NEW_LINE> <DEDENT> @property <N... | A class that wraps a file stream, but adds extra attributes to it. | 62598f9845492302aabfc20b |
class WKBElement(_SpatialElement, functions.Function): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> _SpatialElement.__init__(self, *args, **kwargs) <NEW_LINE> functions.Function.__init__( self, "ST_GeomFromWKB", self.data, self.srid ) <NEW_LINE> <DEDENT> @property <NEW_LINE> def desc(sel... | Instances of this class wrap a WKB value. Geometry values read
from the database are converted to instances of this type. In
most cases you won't need to create ``WKBElement`` instances
yourself.
Note: you can create ``WKBElement`` objects from Shapely geometries
using the :func:`geoalchemy2.shape.from_shape` function... | 62598f989c8ee82313040008 |
class ProxyFromSettingsMiddleware(HttpProxyMiddleware): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_crawler(cls, crawler): <NEW_LINE> <INDENT> return cls(crawler.settings) <NEW_LINE> <DEDENT> def __init__(self, settings): <NEW_LINE> <INDENT> self.proxies = {} <NEW_LINE> self.auth_encoding = settings.get('HTTPP... | A middleware that sets proxy from settings file.
Settings: HTTP_PROXY for an http proxy and HTTPS_PROXY for an https proxy. | 62598f98442bda511e95c198 |
class AlphaBetaAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> alpha, beta = float("-inf"), float("inf") <NEW_LINE> actions = gameState.getLegalActions(0) <NEW_LINE> bestScore = float("-inf") <NEW_LINE> bestAction = None <NEW_LINE> for action in actions: <NEW_LINE> ... | Your minimax agent with alpha-beta pruning (question 3) | 62598f986e29344779b0038d |
class GroupDrawingInline(admin.TabularInline): <NEW_LINE> <INDENT> model = GroupDrawing <NEW_LINE> fields = ['group'] <NEW_LINE> extra = 1 | Inline of groups on drawing admin. | 62598f98435de62698e9bb27 |
class TLU(nn.LayerBase): <NEW_LINE> <INDENT> def __init__(self, in_ch, dtype=None, **kwargs): <NEW_LINE> <INDENT> self.in_ch = in_ch <NEW_LINE> if dtype is None: <NEW_LINE> <INDENT> dtype = nn.floatx <NEW_LINE> <DEDENT> self.dtype = dtype <NEW_LINE> super().__init__(**kwargs) <NEW_LINE> <DEDENT> def build_weights(self)... | Tensorflow implementation of
Filter Response Normalization Layer: Eliminating Batch Dependence in theTraining of Deep Neural Networks
https://arxiv.org/pdf/1911.09737.pdf | 62598f982ae34c7f260aae14 |
class FieldConfigFormBase(Form): <NEW_LINE> <INDENT> pass | Base entity Form class | 62598f9863b5f9789fe84ea9 |
class RequestedPageDetails(Model): <NEW_LINE> <INDENT> def __init__(self, start=None, limit=None, order_by=None, _property=None, type=None, next=None, prev=None): <NEW_LINE> <INDENT> self.openapi_types = { 'start': int, 'limit': int, 'order_by': str, '_property': List[str], 'type': str, 'next': int, 'prev': int } <NEW_... | NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually. | 62598f98cc0a2c111447ad3f |
class SumScore(db.Model): <NEW_LINE> <INDENT> bid = db.IntegerProperty(required=True) <NEW_LINE> pid = db.IntegerProperty(required=True) <NEW_LINE> gfp = db.IntegerProperty(required=True, default=0) <NEW_LINE> term_end = db.BooleanProperty(required=True, default=False) <NEW_LINE> date = db.DateProperty(required=True, d... | index: bid > term_end > date; bid > pid > gfp | 62598f98925a0f43d25e7d6f |
class AuthenticationBackend(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> assert(hasattr(settings, 'OAUTH2_AUTH_FN')) <NEW_LINE> <DEDENT> @property <NEW_LINE> def user_class(self): <NEW_LINE> <INDENT> return get_def(getattr(settings, 'OAUTH2_USER_CLASS', 'django_sanction.models.User')) <NEW_LINE>... | Django authentication backend implementation
To install, add ``django_sanction.backends.AuthenticationBackend`` to
your project's settings' ``AUTHENTICATION_BACKENDS`` | 62598f988e71fb1e983bb7e8 |
class __MLflowTfKerasCallback(Callback): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __exit__(self, exc_type, exc_val, exc_tb): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def on_train_begin(self, logs=None):... | Callback for auto-logging parameters (we rely on TensorBoard for metrics) in TensorFlow < 2.
Records model structural information as params after training finishes. | 62598f980a50d4780f70510b |
class JobListSaxParser(xml.sax.ContentHandler): <NEW_LINE> <INDENT> def __init__(self, async_job=False): <NEW_LINE> <INDENT> self.__internal_init() <NEW_LINE> self.__async = async_job <NEW_LINE> <DEDENT> def __internal_init(self): <NEW_LINE> <INDENT> self.__concatData = False <NEW_LINE> self.__charBuffer = [] <NEW_LINE... | classdocs | 62598f9855399d3f05626254 |
class Post(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'posts' <NEW_LINE> id = db.Column(db.String(45), primary_key=True) <NEW_LINE> title = db.Column(db.String(255)) <NEW_LINE> text = db.Column(db.Text()) <NEW_LINE> publish_date = db.Column(db.DateTime) <NEW_LINE> user_id = db.Column(db.String(45), db.ForeignKey('u... | Represents Proected posts. | 62598f98a17c0f6771d5bf6f |
class Log(): <NEW_LINE> <INDENT> semaforo = BoundedSemaphore() <NEW_LINE> def __init__(self, prefix, path = None): <NEW_LINE> <INDENT> self.__path = path <NEW_LINE> self.__prefix = prefix <NEW_LINE> <DEDENT> def logar(self, texto): <NEW_LINE> <INDENT> Log.semaforo.acquire() <NEW_LINE> texto = self.__prefix + texto <NEW... | Log thread-safe | 62598f98627d3e7fe0e06bde |
class Generic(object): <NEW_LINE> <INDENT> def get(self, url): <NEW_LINE> <INDENT> data = get_http_data(url) <NEW_LINE> match = re.search(r"src=\"(http://www.svt.se/wd.*)\" height", data) <NEW_LINE> stream = None <NEW_LINE> if match: <NEW_LINE> <INDENT> url = match.group(1) <NEW_LINE> for i in sites: <NEW_LINE> <INDENT... | Videos embed in sites | 62598f9829b78933be269f77 |
class ExamDevIndexView(LoginRequiredMixin, ContribRequiredMixin, CurrentAppMixin, generic.ListView): <NEW_LINE> <INDENT> model = Exam <NEW_LINE> def get_template_names(self, *args, **kwargs): <NEW_LINE> <INDENT> if (not Exam.objects.filter(kind=self.exam_kind, stage=ExamStage.DEV)): <NEW_LINE> <INDENT> return 'exam/ind... | Landing page for exam development. This page will list all surveys or CI exams that
are in the Development stage.
Only staff users have the ability to create new Surveys and Exams. | 62598f98d486a94d0ba2bd09 |
class FacebookAPI(object): <NEW_LINE> <INDENT> def __init__(self, user_token=None): <NEW_LINE> <INDENT> config = get_config() <NEW_LINE> self._app_id = config.get('facebook.consumer_key') <NEW_LINE> self._app_secret = config.get('facebook.consumer_secret') <NEW_LINE> self._app_access_token = config.get('facebook.app_ac... | Proxy object to the unofficial facebook sdk | 62598f989b70327d1c57ead6 |
class BuildLog(BuildLogReference): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'int'}, 'type': {'key': 'type', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, 'line_count... | BuildLog.
:param id: The id of the log.
:type id: int
:param type: The type of the log location.
:type type: str
:param url: Full link to the log resource.
:type url: str
:param created_on: The date the log was created.
:type created_on: datetime
:param last_changed_on: The date the log was last changed.
:type last_ch... | 62598f9830dc7b766599f581 |
class Module(object): <NEW_LINE> <INDENT> def __init__(self, name, stream, profiles=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.stream = str(stream) <NEW_LINE> self.profiles = profiles <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<Module: %s>" % self.name | Define a single module | 62598f988da39b475be02f18 |
class MultiGPUGANTrainer(TowerTrainer): <NEW_LINE> <INDENT> def __init__(self, num_gpu, input, model): <NEW_LINE> <INDENT> super(MultiGPUGANTrainer, self).__init__() <NEW_LINE> assert num_gpu > 1 <NEW_LINE> raw_devices = ['/gpu:{}'.format(k) for k in range(num_gpu)] <NEW_LINE> input = StagingInput(input) <NEW_LINE> cbs... | A replacement of GANTrainer (optimize d and g one by one) with multi-gpu support. | 62598f9860cbc95b0636407e |
class WrappingLogger(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.debug = partial(debug, **kwargs) <NEW_LINE> self.info = partial(info, **kwargs) <NEW_LINE> self.warning = partial(warning, **kwargs) <NEW_LINE> self.error = partial(error, **kwargs) <NEW_LINE> self.critical = partia... | A logger that will add the additional arguments that it is initialized
with to every logging call. | 62598f9823849d37ff850dfb |
class GoodsListViewSet(CacheResponseMixin, mixins.ListModelMixin, mixins.RetrieveModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> throttle_classes = (UserRateThrottle, AnonRateThrottle) <NEW_LINE> queryset = Goods.objects.all() <NEW_LINE> serializer_class = GoodsSerializer <NEW_LINE> pagination_class = GoodsPa... | 商品列表页, 分页, 搜索, 过滤, 排序 | 62598f98be8e80087fbbed93 |
class JournalEntryModelTests(TestCase): <NEW_LINE> <INDENT> def test_in_fiscal_year_no_fiscal_year(self): <NEW_LINE> <INDENT> entry = JournalEntry.objects.create(date=datetime.date.today(), memo='no fiscal year') <NEW_LINE> self.assertTrue(entry.in_fiscal_year()) <NEW_LINE> <DEDENT> def test_in_fiscal_year_before_start... | Tests custom methods on the BaseJournalEntry model. | 62598f9807f4c71912baf180 |
class ITagsWidget(interface.Interface): <NEW_LINE> <INDENT> pass | tags widget | 62598f987d847024c075c107 |
class implements: <NEW_LINE> <INDENT> def __init__(self, interface: Type): <NEW_LINE> <INDENT> self.interface = interface <NEW_LINE> <DEDENT> def __call__(self, func: _F) -> _F: <NEW_LINE> <INDENT> super_method = getattr(self.interface, func.__name__, None) <NEW_LINE> assert super_method is not None, f"'{func.__name__}... | Mark a function as implementing an interface. | 62598f982ae34c7f260aae15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.