function stringlengths 11 56k | repo_name stringlengths 5 60 | features list |
|---|---|---|
def get_sort_order_info(
cls, event_details: EventDetails | the-blue-alliance/the-blue-alliance | [
334,
153,
334,
422,
1283632451
] |
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def begin_delete(
self,
resource_group_name, # type: str
circuit_name, # type: str
peering_name, # type: str
connection_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_long_running_output(pipeline_response):
if cls:
return cls(pipeline_response, None, {}) | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get(
self,
resource_group_name, # type: str
circuit_name, # type: str
peering_name, # type: str
connection_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def _create_or_update_initial(
self,
resource_group_name, # type: str
circuit_name, # type: str
peering_name, # type: str
connection_name, # type: str
express_route_circuit_connection_parameters, # type: "_models.ExpressRouteCircuitConnection"
**kwargs # typ... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def begin_create_or_update(
self,
resource_group_name, # type: str
circuit_name, # type: str
peering_name, # type: str
connection_name, # type: str
express_route_circuit_connection_parameters, # type: "_models.ExpressRouteCircuitConnection"
**kwargs # type: ... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_long_running_output(pipeline_response):
deserialized = self._deserialize('ExpressRouteCircuitConnection', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def list(
self,
resource_group_name, # type: str
circuit_name, # type: str
peering_name, # type: str
**kwargs # type: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list.metadat... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=resp... | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def __init__(self, user_id=None, token=None, created=None, local_vars_configuration=None): # noqa: E501
"""Session - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars... | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def user_id(self):
"""Gets the user_id of this Session. # noqa: E501
The ID of the user of this session # noqa: E501
:return: The user_id of this Session. # noqa: E501
:rtype: int
"""
return self._user_id | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def user_id(self, user_id):
"""Sets the user_id of this Session.
The ID of the user of this session # noqa: E501
:param user_id: The user_id of this Session. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and user_id is None: # no... | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def token(self):
"""Gets the token of this Session. # noqa: E501
An opaque session identifier # noqa: E501
:return: The token of this Session. # noqa: E501
:rtype: str
"""
return self._token | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def token(self, token):
"""Sets the token of this Session.
An opaque session identifier # noqa: E501
:param token: The token of this Session. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and token is None: # noqa: E501
... | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def created(self):
"""Gets the created of this Session. # noqa: E501
Unix timestamp indicating when the session was first created. # noqa: E501
:return: The created of this Session. # noqa: E501
:rtype: datetime
"""
return self._created | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def created(self, created):
"""Sets the created of this Session.
Unix timestamp indicating when the session was first created. # noqa: E501
:param created: The created of this Session. # noqa: E501
:type: datetime
"""
if self.local_vars_configuration.client_side_valid... | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict()) | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Session):
return False
return self.to_dict() == other.to_dict() | talon-one/talon_one.py | [
1,
3,
1,
1,
1484929786
] |
def build_export_request(
vault_name: str,
resource_group_name: str,
subscription_id: str,
*,
filter: Optional[str] = None,
**kwargs: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def export(
self,
vault_name: str,
resource_group_name: str,
filter: Optional[str] = None,
**kwargs: Any | Azure/azure-sdk-for-python | [
3526,
2256,
3526,
986,
1335285972
] |
def setUp(self):
self.test_particle = Particle(1, 2) | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def test_attribute_types(self):
for attribute in ['mass', 'charge']:
self.assertIsInstance(getattr(self.test_particle, attribute), float,
msg=f"Particle: {attribute} is not a float") | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def setUp(self):
self.electron = Electron() | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def test_Sand_radiation_constant(self):
# value from S. Lee: Accelerator Physics, 2nd ed., eq (4.5)
# convert from GeV^3 to eV^3
self.assertAlmostEqual(self.electron.C_gamma, 8.846e-5 / (1e9)**3, delta=1e-35,
msg='Electron: wrong radiation constant') | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def setUp(self):
self.proton = Proton() | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def test_Sand_radiation_constant(self):
# value from S. Lee: Accelerator Physics, 2nd ed., eq (4.5)
# convert from GeV^3 to eV^3
self.assertAlmostEqual(self.proton.C_gamma, 7.783e-18 / (1e9)**3, delta=1e-48,
msg='Proton: wrong radiation constant') | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def setUp(self):
# Bunch parameters
# -----------------
N_turn = 200
N_b = 1e9 # Intensity
N_p = int(2e6) # Macro-particles
# Machine parameters
# --------------------
C = 6911.5038 # Machine circumference [m]
p = 450e9 # Synchronous momentu... | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def tearDown(self):
del self.general_params
del self.beam
del self.rf_params | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def test_beam_statistic(self):
sigma_dt = 1.
sigma_dE = 1.
self.beam.dt = sigma_dt*numpy.random.randn(self.beam.n_macroparticles)
self.beam.dE = sigma_dE*numpy.random.randn(self.beam.n_macroparticles)
self.beam.statistics()
self.assertAlmostEqual(self.beam.sigma_dt, si... | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def test_losses_longitudinal_cut(self):
longitudinal_tracker = RingAndRFTracker(self.rf_params, self.beam)
full_tracker = FullRingAndRF([longitudinal_tracker])
try:
matched_from_distribution_function(self.beam,
full_tracker,
... | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def test_addition(self):
np = numpy
testdEs = np.linspace(-1E6, 1E6, 2000000)
testdts = np.linspace(0, 10E-9, 2000000)
self.beam.dE = testdEs
self.beam.dt = testdts
testdEs = np.linspace(-2E6, 2E6, 100000)
testdts = np.linspace(-1E-9, 12E-9, 100000)
sel... | blond-admin/BLonD | [
10,
23,
10,
17,
1413184470
] |
def __init__(self, target_suite_name: str, source_suite_name: str):
self._lconf = LocalConfig()
self._dak = DakBridge()
# FIXME: Don't hardcode this!
repo_name = 'master'
# the repository of the distribution we import stuff into
self._target_repo = Repository(self._lcon... | lkorigin/laniakea | [
20,
8,
20,
1,
1465596960
] |
def _get_repo_source_package_map(self, repo, suite_name: str, component_name: str):
''' Get an associative array of the newest source packages present in a repository. '''
suite = ArchiveSuite(suite_name)
component = ArchiveComponent(component_name)
spkgs = repo.source_packages(suite, c... | lkorigin/laniakea | [
20,
8,
20,
1,
1465596960
] |
def _get_target_source_packages(self, component: str):
''' Get mapping of all sources packages in a suite and its parent suite. '''
with session_scope() as session:
target_suite = session.query(ArchiveSuite) \
.filter(ArchiveSuite.name == self._target_suite_... | lkorigin/laniakea | [
20,
8,
20,
1,
1465596960
] |
def _import_source_package(self, spkg: SourcePackage, component: str) -> bool:
'''
Import a source package from the source repository into the
target repo.
'''
dscfile = None
for f in spkg.files:
# the source repository might be on a remote location, so we nee... | lkorigin/laniakea | [
20,
8,
20,
1,
1465596960
] |
def sync_packages(self, component: str, pkgnames: List[str], force: bool = False):
self._synced_source_pkgs = []
with session_scope() as session:
sync_conf = session.query(SynchrotronConfig) \
.join(SynchrotronConfig.destination_suite) \
... | lkorigin/laniakea | [
20,
8,
20,
1,
1465596960
] |
def test_0000_initiate_users( self ):
"""Create necessary user accounts and login as an admin user."""
"""
Create all the user accounts that are needed for this test script to run independently of other tests.
Previously created accounts will not be re-created.
"""
self.l... | mikel-egana-aranguren/SADI-Galaxy-Docker | [
1,
3,
1,
1,
1417087373
] |
def test_0010_verify_datatypes_repository( self ):
'''Verify the blast_datatypes_0120 repository.'''
'''
We are at step 1a.
Check for appropriate strings, most importantly BlastXml, BlastNucDb, and BlastProtDb,
the datatypes that are defined in datatypes_conf.xml.
'''
... | mikel-egana-aranguren/SADI-Galaxy-Docker | [
1,
3,
1,
1,
1417087373
] |
def test_0015_create_tool_repository( self ):
"""Create and populate the blastxml_to_top_descr_0120 repository"""
"""
We are at step 2.
Create and populate blastxml_to_top_descr_0120.
"""
category = self.create_category( name='Test 0120', description='Description of test ... | mikel-egana-aranguren/SADI-Galaxy-Docker | [
1,
3,
1,
1,
1417087373
] |
def test_0020_verify_tool_repository( self ):
'''Verify the blastxml_to_top_descr_0120 repository.'''
'''
We are at step 2a.
Check for appropriate strings, such as tool name, description, and version.
'''
repository = self.test_db_util.get_repository_by_name_and_owner( to... | mikel-egana-aranguren/SADI-Galaxy-Docker | [
1,
3,
1,
1,
1417087373
] |
def test_0025_create_repository_dependency( self ):
'''Create a repository dependency on blast_datatypes_0120.'''
'''
We are at step 3.
Create a simple repository dependency for blastxml_to_top_descr_0120 that defines a dependency on blast_datatypes_0120.
'''
datatypes_re... | mikel-egana-aranguren/SADI-Galaxy-Docker | [
1,
3,
1,
1,
1417087373
] |
def before_request():
"""
This is executed before the request
"""
ensure_no_config_object()
request.all_data = get_all_params(request)
request.User = get_user_from_param(request.all_data)
privacyidea_server = current_app.config.get("PI_AUDIT_SERVERNAME") or \
request... | privacyidea/privacyidea | [
1321,
287,
1321,
217,
1401806822
] |
def offlinerefill():
"""
This endpoint allows to fetch new offline OTP values for a token,
that is already offline.
According to the definition it will send the missing OTP values, so that
the client will have as much otp values as defined.
:param serial: The serial number of the token, that sh... | privacyidea/privacyidea | [
1321,
287,
1321,
217,
1401806822
] |
def check():
"""
check the authentication for a user or a serial number.
Either a ``serial`` or a ``user`` is required to authenticate.
The PIN and OTP value is sent in the parameter ``pass``.
In case of successful authentication it returns ``result->value: true``.
In case of a challenge respon... | privacyidea/privacyidea | [
1321,
287,
1321,
217,
1401806822
] |
def trigger_challenge():
"""
An administrator can call this endpoint if he has the right of
``triggerchallenge`` (scope: admin).
He can pass a ``user`` name and or a ``serial`` number.
privacyIDEA will trigger challenges for all native challenges response
tokens, possessed by this user or only f... | privacyidea/privacyidea | [
1321,
287,
1321,
217,
1401806822
] |
def get_items(cls):
return {
cls.anonymity: _('Anonymity'),
cls.pseudonymity: _('Pseudonymity')
} | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_title(cls, item):
items = cls.get_items()
return items.get(item, None) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_searchable_content(request=None):
if request is None:
request = get_current_request()
return getattr(request, 'searchable_contents', {}) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, name='', context=None, renderer=None, attr=None):
self.name = name
self.context = context
self.renderer = renderer
self.attr = attr | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def callback(context, name, ob):
config = context.config.with_package(info.module)
config.add_panel(panel=ob, **settings)
ADVERTISING_CONTAINERS[self.name] = {'title': ob.title,
'description': ob.description,
... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, access_key=None):
self.access_key = access_key | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def callback(scanner, name, ob):
if ob.context in ACCESS_ACTIONS:
ACCESS_ACTIONS[ob.context].append({'action': ob,
'access_key': self.access_key})
else:
ACCESS_ACTIONS[ob.context] = [{'action': ob,
... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def can_access(user, context, request=None, root=None):
""" Return 'True' if the user can access to the context"""
declared = getattr(getattr(context, '__provides__', None),
'declared', [None])[0]
for data in ACCESS_ACTIONS.get(declared, []):
if data['action'].processsecurity_... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def serialize_roles(roles, root=None):
result = []
principal_root = getSite()
if principal_root is None:
return []
if root is None:
root = principal_root
root_oid = str(get_oid(root, ''))
principal_root_oid = str(get_oid(principal_root, ''))
for role in roles:
if is... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(Commentable, self).__init__(**kwargs)
self.len_comments = 0 | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def addtoproperty(self, name, value, moving=None):
super(Commentable, self).addtoproperty(name, value, moving)
if name == 'comments':
channel = getattr(self, 'channel', self)
channel.len_comments += 1
if self is not channel:
self.len_comments += 1 | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(Debatable, self).__init__(**kwargs) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def channel(self):
channels = getattr(self, 'channels', [])
return channels[0] if channels else None | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_title(self, user=None):
return getattr(self, 'title', '') | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def add_new_channel(self):
self.addtoproperty('channels', Channel()) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(Channel, self).__init__(**kwargs)
self.set_data(kwargs)
self._comments_at = OOBTree() | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def remove_comment(self, comment):
self._comments_at.pop(comment.created_at) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_subject(self, user=None):
subject = self.subject
return subject if subject else getattr(self, '__parent__', None) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def is_discuss(self):
return self.subject.__class__.__name__.lower() == 'person' | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(Emojiable, self).__init__(**kwargs)
self.emojis = OOBTree()
self.users_emoji = OOBTree() | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def remove_emoji(self, emoji, user):
user_oid = get_oid(user)
if emoji in self.emojis and \
user_oid in self.emojis[emoji]:
self.emojis[emoji].remove(user_oid)
self.users_emoji.pop(user_oid) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def can_add_reaction(self, user, process):
return False | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(PrivateChannel, self).__init__(**kwargs)
self.set_data(kwargs) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_title(self, user=None):
title = getattr(self, 'title', '')
if not title:
return getattr(self.get_subject(user), 'title', None)
return title | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def current_version(self):
""" Return the current version"""
if self.nextversion is None:
return self
else:
return self.nextversion.current_version | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def history(self):
""" Return all versions"""
result = []
if self.version is None:
return [self]
else:
result.append(self)
result.extend(self.version.history)
return result | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def keywords_choice(node, kw):
root = getSite()
values = [(i, i) for i in sorted(root.keywords)]
create = getattr(root, 'can_add_keywords', True)
return Select2Widget(max_len=5,
values=values,
create=create,
multiple=True) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(SearchableEntity, self).__init__(**kwargs)
self.keywords = PersistentList() | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def is_published(self):
return 'published' in self.state | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def is_workable(self):
return self.is_published | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def relevant_data(self):
return [getattr(self, 'title', ''),
getattr(self, 'description', ''),
', '.join(getattr(self, 'keywords', []))] | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_source_data(self, app_id):
if not hasattr(self, 'source_data'):
return {} | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def is_managed(self, root):
return True | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def _init_presentation_text(self):
pass | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def presentation_text(self, nb_characters=400):
return getattr(self, 'description', "")[:nb_characters]+'...' | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(PresentableEntity, self).__init__(**kwargs)
self._email_persons_contacted = PersistentList() | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def len_contacted(self):
return len(self._email_persons_contacted) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def persons_contacted(self):
""" Return all contacted persons"""
dace_catalog = find_catalog('dace')
novaideo_catalog = find_catalog('novaideo')
identifier_index = novaideo_catalog['identifier']
object_provides_index = dace_catalog['object_provides']
result = []
... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def correlations(self):
"""Return all source correlations and target correlations"""
result = [c.target for c in self.source_correlations]
result.extend([c.source for c in self.target_correlations])
return list(set(result)) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def all_source_related_contents(self):
lists_targets = [(c.targets, c) for c in self.source_correlations]
return [(target, c) for targets, c in lists_targets
for target in targets] | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def all_target_related_contents(self):
return [(c.source, c) for c in self.target_correlations] | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def all_related_contents(self):
related_contents = self.all_source_related_contents
related_contents.extend(self.all_target_related_contents)
return related_contents | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def contextualized_contents(self):
lists_contents = [(c.targets, c) for c in
self.contextualized_correlations]
lists_contents = [(target, c) for targets, c in lists_contents
for target in targets]
lists_contents.extend([(c.source, c) for c in
... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def opinion_value(self):
return self.opinions_base.get(
getattr(self, 'opinion', {}).get('opinion', ''), None) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(Node, self).__init__(**kwargs)
self.graph = PersistentDict() | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_node_descriminator(self):
return 'node' | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_nodes_data(self, calculated=[]):
oid = self.get_node_id()
newcalculated = list(calculated)
if oid in calculated:
return {}, newcalculated
all_target_contents = [r for r in self.all_target_related_contents
if isinstance(r[0], Node)]
... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def get_sub_nodes(self):
oid = self.get_node_id()
return set([get_obj(node['oid']) for
node in self.graph[oid]['targets']]) | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(SignalableEntity, self).__init__(**kwargs)
self.len_reports = 0
self.init_len_current_reports() | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def subject(self):
return self.__parent__ | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def addtoproperty(self, name, value, moving=None):
super(SignalableEntity, self).addtoproperty(name, value, moving)
if name == 'reports':
self.len_current_reports = getattr(self, 'len_current_reports', 0)
self.len_reports = getattr(self, 'len_reports', 0)
self.len_cur... | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
def __init__(self, **kwargs):
super(Sustainable, self).__init__(**kwargs)
self.set_data(kwargs)
self.votes_positive = OOBTree()
self.votes_negative = OOBTree() | ecreall/nova-ideo | [
22,
6,
22,
9,
1417421268
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.