100+ results for 'super(type(self) lang:Python'
Not the results you expected?
createsnapshot_tester.py (https://github.com/hpe-storage/python-hpedockerplugin.git) Python · 323 lines
datasets.py (https://github.com/emtiyaz/vadam.git) Python · 406 lines
38 class Dataset():
39 def __init__(self, data_set, data_folder=DEFAULT_DATA_FOLDER):
40 super(type(self), self).__init__()
42 if data_set == "mnist":
226 class DatasetCV():
227 def __init__(self, data_set, n_splits=3, seed=None, data_folder=DEFAULT_DATA_FOLDER):
228 super(type(self), self).__init__()
230 self.n_splits = n_splits
Expressions.py (https://github.com/sibears/HRAST.git) Python · 275 lines
257 def check(self, expr, ctx):
258 return expr.opname == opname and super(type(self), self).check(expr, ctx)
260 newclass = type(name, (BaseClass,), {"check": check})
265 def check(self, expr, ctx):
266 return expr.opname == opname and super(type(self), self).check(expr.x, ctx)
268 newclass = type(name, (BaseClass,), {"check": check})
build.py (https://github.com/facebookresearch/detectron2.git) Python · 165 lines
BBB_t_linear.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 195 lines
MyUglyPrinter.py (https://github.com/tylergreen/mython.git) Python · 357 lines
postgres.py (https://github.com/ombu/vakap.git) Python · 34 lines
testsuite_default_SharedObject.py (https://github.com/sstsimulator/sst-core.git) Python · 236 lines
29 def initializeClass(self, testName):
30 super(type(self), self).initializeClass(testName)
31 # Put test based setup code here. it is called before testing starts
32 # NOTE: This method is called once for every test
34 def setUp(self):
35 super(type(self), self).setUp()
36 initializeTestModule_SingleInstance(self)
37 # Put test based setup code here. it is called once before every test
39 def tearDown(self):
40 # Put test based teardown code here. it is called once after every test
41 super(type(self), self).tearDown()
43 #####
WordSub.py (https://github.com/ghedsouza/Enigma.git) Python · 95 lines
65 self._regexIsDirty = True
66 # for each entry the user adds, we actually add three entrys:
67 super(type(self),self).__setitem__(string.lower(i),string.lower(y)) # key = value
68 super(type(self),self).__setitem__(string.capwords(i), string.capwords(y)) # Key = Value
69 super(type(self),self).__setitem__(string.upper(i), string.upper(y)) # KEY = VALUE
71 def sub(self, text):
sipmodelling.py (https://gitlab.com/resistivity-net/bert) Python · 158 lines
test_subclass.py (https://code.google.com/p/mpi4py/) Python · 308 lines
8 def free(self):
9 if self != MPI.COMM_NULL:
10 super(type(self), self).Free()
12 class BaseTestBaseComm(object):
134 return super(MyRequest, cls).__new__(cls, request)
135 def test(self):
136 return super(type(self), self).Test()
137 def wait(self):
138 return super(type(self), self).Wait()
142 return super(MyPrequest, cls).__new__(cls, request)
143 def test(self):
144 return super(type(self), self).Test()
145 def wait(self):
146 return super(type(self), self).Wait()
h5py_wrapper.py (https://github.com/AnyBody-Research-Group/AnyPyTools.git) Python · 164 lines
49 elem = _follow_reftarget(elem)
50 except KeyError:
51 elem = super(type(self), self)
52 levels = path.strip("/").split("/")
53 for level in levels:
106 elem = _follow_reftarget(elem)
107 except KeyError:
108 elem = super(type(self), self)
109 levels = path.strip("/").split("/")
110 for level in levels:
test_utils.py (https://gitlab.com/lokiexinferis/vim-configs) Python · 119 lines
BBB.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 167 lines
13 class BNN(nn.Module):
14 def __init__(self, input_size, hidden_sizes, output_size, act_func, prior_prec=1.0, prec_init=1.0):
15 super(type(self), self).__init__()
16 self.input_size = input_size
17 sigma_prior = 1.0/math.sqrt(prior_prec)
92 def __init__(self, in_features, out_features, sigma_prior=1.0, sigma_init=1.0, bias=True):
93 super(type(self), self).__init__()
94 self.in_features = in_features
95 self.out_features = out_features
mysql.py (https://github.com/ombu/vakap.git) Python · 33 lines
include.py (https://github.com/akesling/chromium.git) Python · 95 lines
webdriver_browser_driver.py (https://github.com/bardusco/pyccuracy.git) Python · 128 lines
duplicity.py (https://github.com/ombu/vakap.git) Python · 42 lines
base.py (https://github.com/alibaba/x-deeplearning.git) Python · 110 lines
super_checks.py (https://github.com/PyCQA/pylint.git) Python · 125 lines
AST.py (https://github.com/tylergreen/mython.git) Python · 116 lines
models.py (https://github.com/emtiyaz/vadam.git) Python · 249 lines
57 class BNN(nn.Module):
58 def __init__(self, input_size, hidden_sizes, output_size, act_func="relu", prior_prec=1.0, prec_init=1.0):
59 super(type(self), self).__init__()
60 self.input_size = input_size
61 sigma_prior = 1.0/math.sqrt(prior_prec)
115 def __init__(self, in_features, out_features, sigma_prior=1.0, sigma_init=1.0, bias=True):
116 super(type(self), self).__init__()
117 self.in_features = in_features
118 self.out_features = out_features
178 class IndividualGradientMLP(nn.Module):
179 def __init__(self, input_size, hidden_sizes, output_size, act_func="relu"):
180 super(type(self), self).__init__()
181 self.input_size = input_size
182 self.hidden_sizes = hidden_sizes
BBB_linear.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 164 lines
12 class BNN(nn.Module):
13 def __init__(self, input_size, hidden_sizes, output_size=None, prior_prec=1.0, prec_init=1.0):
14 super(type(self), self).__init__()
15 self.input_size = input_size
16 sigma_prior = 1.0/math.sqrt(prior_prec)
91 def __init__(self, in_features, out_features, sigma_prior=1.0, sigma_init=1.0, bias=False):
92 super(type(self), self).__init__()
93 self.in_features = in_features
94 self.out_features = out_features
test_suite_all.py (https://github.com/draco003/chromium.git) Python · 85 lines
cfg.py (https://github.com/looking-for-a-job/setupcfg.py.git) Python · 97 lines
bases.py (https://github.com/Ciphey/Ciphey.git) Python · 48 lines
__init__.py (https://github.com/bjornua/beercalc.git) Python · 40 lines
snippet.py (https://github.com/gistable/gistable.git) Python · 99 lines
dx.py (http://cwcpylib.googlecode.com/svn/trunk/) Python · 80 lines
functional.py (https://github.com/ryfeus/lambda-packs.git) Python · 114 lines
p2p_commands.py (https://github.com/QuarkChain/pyquarkchain.git) Python · 361 lines
test_subclass.py (https://bitbucket.org/svenx/mpi4py.git) Python · 303 lines
135 return super(MyRequest, cls).__new__(cls, request)
136 def test(self):
137 return super(type(self), self).Test()
138 def wait(self):
139 return super(type(self), self).Wait()
143 return super(MyPrequest, cls).__new__(cls, request)
144 def test(self):
145 return super(type(self), self).Test()
146 def wait(self):
147 return super(type(self), self).Wait()
148 def start(self):
149 return super(type(self), self).Start()
151 class MyGrequest(MPI.Grequest):
BBB_t.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 226 lines
decorators.py (https://github.com/guerrillagrafters/GuerrillaGrafters_Web.git) Python · 27 lines
command_injection.py (https://github.com/ChrisTheCoolHut/Firmware_Slap.git) Python · 112 lines
GSAlg.py (https://github.com/bnpy/bnpy.git) Python · 63 lines
io.py (https://github.com/draco003/chromium.git) Python · 106 lines
Transition.py (https://github.com/antlr/antlr4.git) Python · 268 lines
text.py (https://github.com/gfxmonk/savemytext.appspot.com.git) Python · 32 lines
LocalStepUtil_ParallelSharedMem.py (https://github.com/bnpy/bnpy.git) Python · 157 lines
TestSummaryAlg.py (https://github.com/bnpy/bnpy.git) Python · 155 lines
tgz.py (https://github.com/ombu/vakap.git) Python · 41 lines
term_coeff_dict.py (https://github.com/escheffel/pymaclab.git) Python · 420 lines
358 return term_coeff_dict_new(Algebra, d)
359 else:
360 return super(type(self), self).algebra_add(Algebra, lhs, rhs, inplace)
362 if inplace:
368 else:
369 return TERM_COEFF_DICT.to_ADD(Algebra, lhs.data, lhs) + rhs
370 return super(type(self), self).algebra_add(Algebra, lhs, rhs, inplace)
372 def algebra_mul_number(self, Algebra, lhs, rhs, inplace):
388 if rhead is NUMBER:
389 return self.algebra_mul_number(Algebra, lhs, rdata, inplace)
390 return super(type(self), self).algebra_mul(Algebra, lhs, rhs, inplace)
392 def algebra_div_number(self, Algebra, lhs, rhs, inplace):
unmountvolume_tester.py (https://github.com/hpe-storage/python-hpedockerplugin.git) Python · 267 lines
61 class TestUnmountOneVolumeForHost(UnmountVolumeUnitTest):
62 def __init__(self, **kwargs):
63 super(type(self), self).__init__(**kwargs)
65 def _setup_mock_3parclient(self):
88 class TestUnmountLastVolumeForHost(UnmountVolumeUnitTest):
89 def __init__(self, **kwargs):
90 super(type(self), self).__init__(**kwargs)
92 def _setup_mock_3parclient(self):
116 class TestUnmountVolOnceMountedTwiceOnThisNode(UnmountVolumeUnitTest):
117 def __init__(self, **kwargs):
118 super(type(self), self).__init__(**kwargs)
119 self._vol = copy.deepcopy(data.volume_mounted_twice_on_this_node)
120 if self._is_snap:
data.py (https://github.com/iwtw/pytorch-TP-GAN.git) Python · 114 lines
30 class TrainDataset( Dataset):
31 def __init__( self , img_list ):
32 super(type(self),self).__init__()
33 self.img_list = img_list
34 def __len__( self ):
68 class PretrainDataset( Dataset):
69 def __init__( self , img_list ):
70 super(type(self),self).__init__()
71 self.img_list = img_list
72 def __len__( self):
86 class TestDataset( Dataset):
87 def __init__( self , img_list , lm_list):
88 super(type(self),self).__init__()
89 self.img_list = img_list
90 self.lm_list = lm_list
test_db.py (https://github.com/13rac1/roundware-server.git) Python · 234 lines
19 def setUp(self):
20 super(type(self), TestGetRecordings).setUp(self)
22 self.project1 = mommy.make(Project, name='Project One')
128 # gives us listen and speak ui modes, a tag1, english & spanish langs
129 # and messages in english and spanish
130 super(type(self), TestFilterRecsForTags).setUp(self)
132 self.tagcat2, self.tagcat3, self.tagcat4 = \
LocalStepUtil_ParallelIPC.py (https://github.com/bnpy/bnpy.git) Python · 110 lines
poker.py (https://github.com/jaekwon/jae-python.git) Python · 249 lines
unmountshare_tester.py (https://github.com/hpe-storage/python-hpedockerplugin.git) Python · 70 lines
distribution.py (https://github.com/pyro-ppl/funsor.git) Python · 114 lines
test_stream.py (https://github.com/13rac1/roundware-server.git) Python · 125 lines
txt.py (https://github.com/akesling/chromium.git) Python · 52 lines
newstyle.py (https://bitbucket.org/edhilgendorf/public-code.git) Python · 142 lines
number.py (https://github.com/escheffel/pymaclab.git) Python · 315 lines
260 if rhead is TERM_COEFF or rhead is TERM_COEFF_DICT:
261 return rhead.algebra_add_number(Algebra, rhs, ldata, inplace)
262 return super(type(self), self).algebra_add(Algebra, lhs, rhs, inplace)
263 return Algebra(ADD, [lhs, rhs])
264 else:
312 d.append(Algebra(POW, (b,e)))
313 return mul_new(Algebra, d)
314 return super(type(self), self).algebra_pow_number(Algebra, lhs, rhs, inplace)
315 NUMBER = NumberHead()
dynamic.py (https://github.com/ARM-software/trappy.git) Python · 157 lines
BBB_scale_mix_v2.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 254 lines
Feature.py (https://github.com/gilleain/tailor.git) Python · 253 lines
105 def __init__(self, id):
106 super(type(self), self).__init__()
107 self.id = id
108 self.levelCode = "S"
132 def __init__(self, number):
133 super(type(self), self).__init__()
134 self.number = number
135 self.levelCode = "M"
142 def __init__(self, chainID, chainType=None):
143 super(type(self), self).__init__()
144 self.chainID = chainID
145 self.chainType = chainType
instructions.py (https://github.com/KULeuven-COSIC/SCALE-MAMBA.git) Python · 146 lines
EMAlg.py (https://github.com/bnpy/bnpy.git) Python · 98 lines
add.py (https://github.com/escheffel/pymaclab.git) Python · 341 lines
WordSub.py (https://gitlab.com/nprs/yach) Python · 98 lines
68 self._regexIsDirty = True
69 # for each entry the user adds, we actually add three entrys:
70 super(type(self),self).__setitem__(i.lower(),y.lower()) # key = value
71 super(type(self),self).__setitem__(string.capwords(i), string.capwords(y)) # Key = Value
72 super(type(self),self).__setitem__(i.upper(), y.upper()) # KEY = VALUE
74 def sub(self, text):
parser.py (git://github.com/eigenhombre/PyClojure.git) Python · 145 lines
primitives.py (https://bitbucket.org/dexteris/forma) Python · 159 lines
38 import numpy
39 self.normal = [0.0,0.0,1.0];
40 super(type(self),self).__init__(kwargs)
41 if not hasattr(self,'points'):
42 self.points = numpy.zeros([3,4])
53 self.radius = 1.0
54 self.arc = 2.0*pi
55 super(type(self),self).__init__(kwargs)
57 class Sphere(Forma):
61 def __init__(self,**kwargs):
62 self.radius = 1.0
63 super(type(self),self).__init__(kwargs)
65 class Cone(Forma):
Form.py (https://github.com/microsoftarchive/msdn-code-gallery-microsoft.git) Python · 36 lines
Transition.py (https://github.com/antlr/antlr4.git) Python · 252 lines
sshmessage.py (https://github.com/stribika/sshlabs.git) Python · 219 lines
127 class KexInit(SSHMessage):
128 def __init__(self, **kwargs):
129 super(type(self), self).__init__(
130 SSH_MSG_KEXINIT,
131 Bytes(16, "cookie", b"\x00" * 16),
173 class DHGEXRequest(SSHMessage):
174 def __init__(self, **kwargs):
175 super(type(self), self).__init__(
176 SSH_MSG_KEX_DH_GEX_REQUEST,
177 UInt32("min", 1024),
183 class DHGEXGroup(SSHMessage):
184 def __init__(self, **kwargs):
185 super(type(self), self).__init__(
186 SSH_MSG_KEX_DH_GEX_GROUP,
187 MPInt("prime"),
palm.py (https://bitbucket.org/micseydel/palm-database-reader.git) Python · 126 lines
44 def __init__(self, packed_string):
45 super(type(self), self).__init__(*self._format.unpack(packed_string))
47 #let us use regular time
59 _format = struct.Struct(">Ic3s")
60 def __init__(self, packed_string):
61 super(type(self), self).__init__(*self._format.unpack(packed_string))
63 def __repr__(self):
weight_cast.py (https://github.com/intel/intel-extension-for-pytorch.git) Python · 87 lines
tinify_source_test.py (https://github.com/tinify/tinify-python.git) Python · 152 lines
13 class TinifySourceWithInvalidApiKey(TestHelper):
14 def setUp(self):
15 super(type(self), self).setUp()
16 tinify.key = 'invalid'
17 httpretty.register_uri(httpretty.POST, 'https://api.tinify.com/shrink', **{
33 class TinifySourceWithValidApiKey(TestHelper):
34 def setUp(self):
35 super(type(self), self).setUp()
36 tinify.key = 'valid'
37 httpretty.register_uri(httpretty.POST, 'https://api.tinify.com/shrink', **{
store.py (https://github.com/bjornua/beercalc.git) Python · 53 lines
layers.py (https://github.com/iwtw/pytorch-TP-GAN.git) Python · 105 lines
template_formatter.py (https://github.com/Gitman1989/chromium.git) Python · 123 lines
lognormal_comparison_test.py (https://github.com/cwharland/kcbo.git) Python · 168 lines
newstyle.py (https://github.com/emreozguruoglu/Researcher.git) Python · 127 lines
TestZeroMeanGaussObsModel.py (https://github.com/bnpy/bnpy.git) Python · 66 lines
file_picker.py (https://github.com/tdamdouni/Pythonista.git) Python · 21 lines
transforms.py (https://bitbucket.org/dexteris/forma) Python · 52 lines
webdriver_browser_driver.py (https://github.com/kenjiyamamoto/pyccuracy.git) Python · 130 lines
ATNDeserializationOptions.py (https://github.com/alainmarcel/Surelog.git) Python · 21 lines
_multidict.py (https://gitlab.com/zimmermanncode/moretools) Python · 145 lines
WordSub.py (https://github.com/yaleimeng/py3Aiml_Chinese.git) Python · 68 lines
58 self._regexIsDirty = True
59 # 对于用户添加的每个条目,我们实际添加三个入口:
60 super(type(self),self).__setitem__(i.lower(),y.lower()) # key = value
61 super(type(self),self).__setitem__(string.capwords(i), string.capwords(y)) # Key = Value
62 super(type(self),self).__setitem__(i.upper(), y.upper()) # KEY = VALUE
64 def sub(self, text):
conftest.py (https://github.com/Epistimio/orion.git) Python · 39 lines
common.py (https://github.com/Paperspace/paperspace-python.git) Python · 61 lines
serializers.py (https://github.com/cartologic/cartoview.git) Python · 74 lines
neg.py (https://github.com/escheffel/pymaclab.git) Python · 127 lines
116 ldata = lhs.data
117 if Algebra.algebra_options.get('is_additive_group_commutative'):
118 return super(type(self), self).algebra_mul(Algebra, lhs, rhs, inplace)
119 else:
120 if Algebra.algebra_options.get('evaluate_addition'):
122 if rhead is NUMBER:
123 return ldata.head.algebra_mul_number(Algebra, ldata, -rdata, inplace)
124 return super(type(self), self).algebra_mul(Algebra, lhs, rhs, inplace)
125 return mul_new(Algebra, [lhs, rhs])
mountshare_tester.py (https://github.com/hpe-storage/python-hpedockerplugin.git) Python · 91 lines
39 class TestMountNfsShare(MountShareUnitTest):
40 def __init__(self, **kwargs):
41 super(type(self), self).__init__(**kwargs)
42 self._share = copy.deepcopy(data.etcd_share)
64 class TestMountNfsShareWithAcl(MountShareUnitTest):
65 def __init__(self, **kwargs):
66 super(type(self), self).__init__(**kwargs)
67 self._share = copy.deepcopy(data.etcd_share_with_acl)
units.py (https://github.com/cpius/rosewarsgame.git) Python · 264 lines
include.py (https://github.com/Gitman1989/chromium.git) Python · 119 lines
lr_scheduler.py (https://github.com/GRAAL-Research/pytoune.git) Python · 89 lines
menubar.py (https://github.com/bjornua/beercalc.git) Python · 33 lines
4 class MenuBar(gtk.MenuBar):
5 def __init__(self):
6 super(type(self), self).__init__()
8 self.append(FileMenu())
11 class FileMenu(gtk.MenuItem):
12 def __init__(self):
13 super(type(self), self).__init__(u"_Filer")
15 self.menu = gtk.Menu()
24 class HelpMenu(gtk.MenuItem):
25 def __init__(self):
26 super(type(self), self).__init__(u"_Hjælp")
28 self.menu = gtk.Menu()
symbol.py (https://github.com/escheffel/pymaclab.git) Python · 222 lines
155 data = [lhs, rhs]
156 return add_new(Algebra, [lhs, rhs])
157 return super(type(self), self).algebra_add(Algebra, lhs, rhs, inplace)
158 else:
159 if rhead is TERM_COEFF_DICT or rhead is EXP_COEFF_DICT:
207 else:
208 pass
209 return super(type(self), self).algebra_mul(Algebra, lhs, rhs, inplace)
211 def algebra_pow_number(self, Algebra, lhs, rhs, inplace):
218 else:
219 return cls(POW, (lhs, rhs))
220 return super(type(self), self).algebra_pow_number(Algebra, lhs, rhs, inplace)
222 SYMBOL = SymbolHead()
include.py (https://github.com/bluebellzhy/chromium.git) Python · 71 lines
scene.py (https://bitbucket.org/dexteris/forma) Python · 47 lines
worley.py (https://github.com/freethenation/OpenCLNoise.git) Python · 73 lines
16 def __init__(self,function='F1',distance='euclidian',seed=0):
17 super(type(self),self).__init__()
18 self.__function = ''
19 self.__distance = ''
63 for k,v in self.__defines.iteritems():
64 code += '#define /*id*/{0} {1}\n'.format(k,v)
65 code += super(type(self),self).generate_code()
66 return code
Form1.py (https://keelkit.svn.codeplex.com/svn) Python · 45 lines
table.py (https://github.com/bjornua/beercalc.git) Python · 54 lines
term_coeff.py (https://github.com/escheffel/pymaclab.git) Python · 351 lines
320 data = [lhs, rhs]
321 return add_new(Algebra, data)
322 return super(type(self), self).algebra_add(Algebra, lhs, rhs, inplace)
323 else:
324 if rhead is TERM_COEFF_DICT or rhead is EXP_COEFF_DICT:
346 if rhead is NUMBER:
347 return term_coeff_new(Algebra, (term, coeff*rdata))
348 return super(type(self), self).algebra_mul(Algebra, lhs, rhs, inplace)
349 return mul_new(Algebra, [lhs, rhs])
type.py (https://bitbucket.org/bungcip/pytegal) Python · 211 lines
192 class VoidType(StructInstType):
193 def __init__(self):
194 super(type(self), self).__init__(None)
195 self.name = "Void"
196 def fits(self, target):
201 def __init__(self, symbol, typeArgs):
202 assert len(typeArgs) == 2, "len(typeArgs) must be 2 (typeArgs=={0})".format(repr(typeArgs))
203 super(type(self), self).__init__(symbol, typeArgs)
205 def __str__(self):
disting.py (https://bitbucket.org/ericsnowcurrently/commonlib) Python · 148 lines
Description.py (https://github.com/gilleain/tailor.git) Python · 355 lines
92 def __init__(self, propertyConditions, name=None):
93 super(type(self), self).__init__(propertyConditions)
94 self.name = name
95 self.levelCode = "S"
120 def __init__(self, propertyConditions):
121 super(type(self), self).__init__(propertyConditions)
122 self.levelCode = "C"
272 def __init__(self, propertyConditions):
273 super(type(self), self).__init__(propertyConditions)
274 self.levelCode = "R"