80+ results for 'super(self.__class__ lang:Python' (0 ms)
Not the results you expected?
permissionadmin.py (https://github.com/conrado/django-cms.git) Python · 181 lines
167 def has_add_permission(self, request):
168 return self._has_change_permissions_permission(request) and \
169 super(self.__class__, self).has_add_permission(request)
171 def has_change_permission(self, request, obj=None):
172 return self._has_change_permissions_permission(request) and \
173 super(self.__class__, self).has_change_permission(request, obj)
human_posture.py (https://github.com/davidhodo/morse.git) Python · 223 lines
modeladmin.py (https://bitbucket.org/pombredanne/dingo.git) Python · 151 lines
49 *(model_view_patterns +
50 object_view_patterns)) + \
51 super(self.__class__, self).get_urls()
75 extra_context['views'] = view_links
77 return super(self.__class__, self).change_view(
78 request, object_id, extra_context=extra_context)
98 extra_context['views'] = view_links
100 return super(self.__class__, self).changelist_view(
101 request,
102 extra_context=extra_context)
permissionadmin.py (https://github.com/mthornhill/django-cms.git) Python · 174 lines
160 def has_add_permission(self, request):
161 return self._has_change_permissions_permission(request) and \
162 super(self.__class__, self).has_add_permission(request)
164 def has_change_permission(self, request, obj=None):
165 return self._has_change_permissions_permission(request) and \
166 super(self.__class__, self).has_change_permission(request, obj)
facets.py (https://github.com/joymax/solar.git) Python · 254 lines
admin.py (https://bitbucket.org/giussepi/resinmetal.git) Python · 357 lines
20 def get_urls(self):
21 urls = super(self.__class__, self).get_urls()
22 my_urls = patterns(
23 '',
91 def get_urls(self):
92 urls = super(self.__class__, self).get_urls()
93 my_urls = patterns(
94 '',
147 def get_urls(self):
148 urls = super(self.__class__, self).get_urls()
149 my_urls = patterns(
150 '',
CognitiveOpDynModel.py (https://github.com/GiulioRossetti/ndlib.git) Python · 221 lines
views.py (https://gitlab.com/lburdzy/asg) Python · 170 lines
message.py (https://github.com/mardiros/python-synapse.git) Python · 264 lines
human_posture.py (https://github.com/kargm/morse.git) Python · 153 lines
events.py (https://github.com/lordfriend/Albireo.git) Python · 238 lines
113 logger.error(error)
115 super(self.__class__, self).__init__(EventType.TYPE_EPISODE_DOWNLOADED, {
116 'episode': episode_dict_tiny
117 })
126 """
127 def __init__(self, **kwargs):
128 super(self.__class__, self).__init__(EventType.TYPE_USER_FAVORITE, {
129 'favorites': kwargs.get('favorites')})
130 self.token = kwargs.get('token')
160 """
161 def __init__(self, **kwargs):
162 super(self.__class__, self).__init__(EventType.TYPE_KEEP_ALIVE, {
163 'status': kwargs.get('status')
164 })
dummy.py (https://gitlab.com/planto/postpic) Python · 238 lines
43 def __init__(self, dumpid, dimensions=2, randfunc=np.random.normal, seed=0, **kwargs):
44 super(self.__class__, self).__init__(dumpid, **kwargs)
45 self._dimensions = dimensions
46 self._seed = seed
63 def __eq__(self, other):
64 ret = super(self.__class__, self).__eq__(other)
65 return ret \
66 and self._randfunc == other._randfunc \
197 def __init__(self, simidentifier, dimensions=2, **kwargs):
198 super(self.__class__, self).__init__(simidentifier, **kwargs)
199 self._dimensions = dimensions
split_repr.py (https://github.com/Gordin/urwid.git) Python · 149 lines
dgp_examples.py (https://gitlab.com/pooja043/Globus_Docker_4) Python · 213 lines
155 self.s_noise = 0.7
156 self.func = fg1
157 super(self.__class__, self).__init__(nobs=nobs, x=x,
158 distr_x=distr_x,
159 distr_noise=distr_noise)
172 self.s_noise = 0.5
173 self.func = fg2
174 super(self.__class__, self).__init__(nobs=nobs, x=x,
175 distr_x=distr_x,
176 distr_noise=distr_noise)
188 self.s_noise = 0.15
189 self.func = fg1eu
190 super(self.__class__, self).__init__(nobs=nobs, x=x,
191 distr_x=distr_x,
192 distr_noise=distr_noise)
metaclass.py (https://github.com/e-loue/pyke.git) Python · 321 lines
template.py (https://github.com/mucca/django-debug-toolbar.git) Python · 122 lines
plugin.py (https://github.com/gholms/supybot-plugins.git) Python · 96 lines
move_file_command.py (https://github.com/skuroda/Sublime-AdvancedNewFile.git) Python · 143 lines
ah_ipv6.py (https://github.com/avocado-framework/avocado-vt.git) Python · 127 lines
config.py (https://github.com/renfers/ageliaco.tracker.git) Python · 120 lines
admin.py (https://github.com/thatdatabaseguy/openjumo.git) Python · 131 lines
accelerometer.py (https://github.com/kargm/morse.git) Python · 112 lines
tests.py (https://github.com/dgreisen/django-couchdb-utils.git) Python · 152 lines
polynomials.py (https://bitbucket.org/aleadev/alea.git) Python · 194 lines
135 sqnorm_func = None
137 super(self.__class__, self).__init__(rc_func, sqnorm_func)
138 if normalised:
139 self.normalise()
149 sqnorm_func = None
151 super(self.__class__, self).__init__(rc_func, sqnorm_func)
152 if normalised:
153 self.normalise()
164 rc_func = _p.rc_window_trans(rc_func, (-1.0, 1.0), (a, b))
166 super(self.__class__, self).__init__(rc_func, sqnorm_func)
167 if normalised:
168 self.normalise()
imu.py (https://github.com/peterroelants/morse.git) Python · 114 lines
jido_posture.py (https://github.com/peterroelants/morse.git) Python · 159 lines
sphinx_cython.py (https://github.com/thurday/pyzmq.git) Python · 111 lines
export_it_inventory.py (https://github.com/Cigna/ibis.git) Python · 164 lines
Expression.py (https://github.com/neonux/mozilla-all.git) Python · 176 lines
tableproxy.py (https://github.com/stesh/nltk_contrib.git) Python · 183 lines
50 i = self.getColumnIndex(i)
51 w = self[i]
52 super(self.__class__,self).__setitem__(i,v)
53 self.tab.emitter.emit(PYSIGNAL("cellChanged"),(self.num,i,self.data[i],w))
54 if not self.tab.undoStackReadOnly:
60 class _TableModelProxy(object):
61 def __init__(self, *args):
62 self.super = super(self.__class__,self)
63 self.super.__init__(*args)
64 self.emitter = QObject()
jido_posture.py (https://github.com/kargm/morse.git) Python · 158 lines
CombinedImage.py (https://github.com/salmon-charles/qooxdoo-build-tool.git) Python · 79 lines
core.py (https://github.com/GunioRobot/pyresto.git) Python · 202 lines
27 class WrappedList(list):
28 def __init__(self, iterable, wrapper):
29 super(self.__class__, self).__init__(iterable)
30 self.__wrapper = wrapper
36 def __getitem__(self, key):
37 item = super(self.__class__, self).__getitem__(key)
38 should_wrap = self.is_dict(item) or isinstance(key, slice) and any(map(self.is_dict, item))
39 if should_wrap:
46 def __getslice__(self, i, j):
47 items = super(self.__class__, self).__getslice__(i, j)
48 if any(map(self.is_dict, items)):
49 items = map(self.__wrapper, items)
auth.py (https://github.com/jwoschitz/SimpleAuth.git) Python · 134 lines
15 class PasswordToShortError(Error):
16 def __init__(self, min_chars):
17 super(self.__class__, self).__init__("The password must be at least {0} characters long.".format(min_chars))
19 class EmailIsInvalidError(Error):
20 def __init__(self, email):
21 super(self.__class__, self).__init__("The email address '{0}' contains invalid characters.".format(email))
23 class Settings(object):
NLU.py (https://github.com/wzpan/wukong-robot.git) Python · 218 lines
serializers.py (https://gitlab.com/muse-genomics/muse-app) Python · 154 lines
24 def __init__(self, *args, **kwargs):
25 kwargs['partial'] = True
26 super(self.__class__, self).__init__(*args, **kwargs)
35 def __init__(self, *args, **kwargs):
36 kwargs['partial'] = True
37 super(self.__class__, self).__init__(*args, **kwargs)
51 def __init__(self, *args, **kwargs):
52 kwargs['partial'] = True
53 super(self.__class__, self).__init__(*args, **kwargs)
database.py (https://github.com/jwoschitz/SimpleAuth.git) Python · 174 lines
5 class EmailAlreadyInUseError(Error):
6 def __init__(self, email):
7 super(self.__class__, self).__init__("Email '{0}' is already registered.".format(email))
9 class EmailTooLongError(Error):
10 def __init__(self, email, max_chars):
11 super(self.__class__, self).__init__("Your email '{0}' is too long. Email address must be short than {1} characters.".format(email,max_chars))
13 class DbConnectionConfig(object):
permissionadmin.py (https://github.com/daonb/django-cms.git) Python · 148 lines
141 def has_add_permission(self, request):
142 return self._has_change_permissions_permission(request) and \
143 super(self.__class__, self).has_add_permission(request)
145 def has_change_permission(self, request, obj=None):
146 return self._has_change_permissions_permission(request) and \
147 super(self.__class__, self).has_change_permission(request, obj)
PrimStretchedExpFT.py (https://github.com/mantidproject/mantid.git) Python · 94 lines
jsonify.py (https://gitlab.com/gregtyka/KhanLatest) Python · 143 lines
rank.py (https://gitlab.com/Lett1/SlackDuckBot) Python · 73 lines
jsonify.py (https://gitlab.com/gregtyka/server) Python · 116 lines
customcommands.py (https://gitlab.com/Lett1/SlackDuckBot) Python · 107 lines
lowd_meek.py (https://github.com/ftramer/Steal-ML.git) Python · 187 lines
subclassing.py (https://github.com/andrewkuzmych/litclub.git) Python · 53 lines
pages.py (https://gitlab.com/phyks/weboob) Python · 71 lines
incar.py (https://github.com/PytLab/VASPy.git) Python · 233 lines
admin.py (https://github.com/thatdatabaseguy/openjumo.git) Python · 167 lines
auth.py (https://gitlab.com/ztane/python-bitbucket) Python · 171 lines
78 self.password = password
79 self.client_email = client_email
80 super(self.__class__, self).__init__(server_base_uri=server_base_uri)
97 self.access_token_secret = access_token_secret
98 self.username = None
99 super(self.__class__, self).__init__(server_base_uri=server_base_uri)
101 def get_username(self):
152 '{+server_base_uri}/site/oauth2/access_token',
153 {'server_base_uri': self.server_base_uri}))
154 super(self.__class__, self).__init__(server_base_uri=server_base_uri)
156 def start_http_session(self):
test_handler_power_state.py (https://gitlab.com/waldi/cloud-init) Python · 131 lines
example_eo_04_ownproblem.py (https://gitlab.com/wiechapeter/pyGDM2-dirty) Python · 162 lines
esp_ipv6.py (https://github.com/avocado-framework/avocado-vt.git) Python · 126 lines
all_ipv6.py (https://github.com/avocado-framework/avocado-vt.git) Python · 126 lines
forms.py (https://github.com/lauraxt/socorro.git) Python · 123 lines
utilTest.py (https://github.com/connie/RMG-Py.git) Python · 114 lines
78 def __init__(self, *args, **kwargs):
79 # Parent initialization
80 super(self.__class__, self).__init__(*args, **kwargs)
82 # Only setup the scoop framework once, and not in every test method:
83 super(self.__class__, self).setUp()
85 @unittest.skipUnless(sys.platform.startswith("linux"),
98 def __init__(self, *args, **kwargs):
99 # Parent initialization
100 super(self.__class__, self).__init__(*args, **kwargs)
102 # Only setup the scoop framework once, and not in every test method:
all.py (https://github.com/avocado-framework/avocado-vt.git) Python · 125 lines
template.py (https://bitbucket.org/jonasteuwen/flask-debugtoolbar.git) Python · 124 lines
pose.py (https://github.com/peterroelants/morse.git) Python · 53 lines
node.py (https://gitlab.com/pankajmore/codecombat.git) Python · 143 lines
Plot.py (https://github.com/PerilousApricot/WMCore-OLDOLD.git) Python · 133 lines
25 return 'validation-failed: %s'%v.element_name
26 return True
27 #return super(self.__class__,self).validate(input) and self.validate(input)
28 attrs['_validate']=_validate
29 def _extract(self,input):
37 else:
38 setattr(self.props,v.element_name,v.extract(input))
39 #super(self.__class__,self).extract(input)
40 for method in self.__class__._extract_calls:
41 method(self,input)
68 self.validators = []
69 self.figure = None
70 super(self.__class__,self).__init__(*args,**kwargs)
71 if not '__init__' in attrs:
72 attrs['__init__']=__init__
postgres_file_writer.py (https://github.com/foxxtrot/py-mysql2pgsql.git) Python · 157 lines
43 Returns None
44 """
45 truncate_sql, serial_key_sql = super(self.__class__, self).truncate(table)
46 self.f.write("""
47 -- TRUNCATE %(table_name)s;
64 Returns None
65 """
66 table_sql, serial_key_sql = super(self.__class__, self).write_table(table)
67 if serial_key_sql:
68 self.f.write("""
89 Returns None
90 """
91 self.f.write('\n'.join(super(self.__class__, self).write_indexes(table)))
93 @status_logger
pages.py (https://github.com/laurentb/weboob.git) Python · 65 lines
module.py (https://github.com/laurentb/weboob.git) Python · 95 lines
icmp.py (https://github.com/avocado-framework/avocado-vt.git) Python · 131 lines
plugin_disk.py (git://pkgs.fedoraproject.org/tuned) Python · 173 lines
models.py (git://git.savannah.nongnu.org/savane.git) Python · 132 lines
models.py (https://github.com/kaitlin/HollaBackDC.git) Python · 53 lines
serializers.py (https://gitlab.com/muse-genomics/muse-app) Python · 239 lines
27 def __init__(self, *args, **kwargs):
28 kwargs['partial'] = True
29 super(self.__class__, self).__init__(*args, **kwargs)
56 def __init__(self, *args, **kwargs):
57 kwargs['partial'] = True
58 super(self.__class__, self).__init__(*args, **kwargs)
60 def validate(self, data):
78 def __init__(self, *args, **kwargs):
79 kwargs['partial'] = True
80 super(self.__class__, self).__init__(*args, **kwargs)
82 # def create(self, validated_data):
tests.py (https://github.com/Narsil/django-dtpanel-htmltidy.git) Python · 126 lines
test_smoothers.py (https://gitlab.com/pooja043/Globus_Docker_4) Python · 108 lines
54 def __init__(self):
55 super(self.__class__, self).__init__() #initialize DGP
57 y, x, exog = self.y, self.x, self.exog
68 def __init__(self):
69 super(self.__class__, self).__init__() #initialize DGP
71 y, x, exog = self.y, self.x, self.exog
83 def __init__(self):
84 super(self.__class__, self).__init__() #initialize DGP
86 y, x, exog = self.y, self.x, self.exog
video_camera.py (https://github.com/davidhodo/morse.git) Python · 131 lines
auth.py (https://github.com/marchon/corkscrew.git) Python · 77 lines
resultmodulation.py (https://github.com/sduchesneau/shinken.git) Python · 101 lines
column.py (https://github.com/Rambatino/CHAID.git) Python · 309 lines
87 def __init__(self, arr=None, metadata=None, missing_id='<missing>',
88 substitute=True, weights=None, name=None):
89 super(self.__class__, self).__init__(arr, metadata=metadata, missing_id=missing_id, weights=weights, name=name)
90 if substitute and metadata is None:
91 self.substitute_values(arr)
174 def __init__(self, arr=None, metadata=None, missing_id='<missing>',
175 groupings=None, substitute=True, weights=None, name=None):
176 super(self.__class__, self).__init__(arr, metadata, missing_id=missing_id, weights=weights, name=name)
177 self._nan = np.array([np.nan]).astype(int)[0]
286 raise ValueError('Must only pass numerical values to create continuous column')
288 super(self.__class__, self).__init__(np.nan_to_num(arr), metadata, missing_id=missing_id, weights=weights)
290 def deep_copy(self):
test_writer.py (https://github.com/foxxtrot/py-mysql2pgsql.git) Python · 124 lines
28 class TestPostgresWriter(WithTables):
29 def setUp(self):
30 super(self.__class__, self).setUp()
31 self.writer = PostgresWriter()
32 assert self.writer
81 class TestPostgresFileWriter(WithOutput):
82 def setUp(self):
83 super(self.__class__, self).setUp()
84 self.outfile = tempfile.NamedTemporaryFile()
85 self.writer = PostgresFileWriter(self.outfile)
87 def tearDown(self):
88 super(self.__class__, self).tearDown()
89 self.writer.close()
core.py (https://github.com/clofresh/spriteful.git) Python · 110 lines
models.py (https://github.com/cdocarmo/saltoguia.git) Python · 111 lines
sro.py (https://github.com/oasis-open/cti-python-stix2.git) Python · 116 lines
udpft.py (https://code.google.com/p/anacrolix/) Python · 216 lines
71 def to_bytes(self):
72 #pdb.set_trace()
73 return super(self.__class__, self).to_bytes() \
74 + self.__HEADER.pack(self.digest, self.filesize) + self.filename
75 def __repr__(self):
85 self.offsets = offsets
86 def to_bytes(self):
87 packet = super(self.__class__, self).to_bytes()
88 packet += self.__HEADER.pack(self.digest)
89 for o in self.offsets: