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

15 class TestCreateSnapshotDefault(CreateSnapshotUnitTest):

16 def __init__(self, **kwargs):

17 super(type(self), self).__init__(**kwargs)

18 self._parent_vol = copy.deepcopy(data.volume)

19

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__()

41

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__()

229

230 self.n_splits = n_splits

Expressions.py (https://github.com/sibears/HRAST.git) Python · 275 lines

256

257 def check(self, expr, ctx):

258 return expr.opname == opname and super(type(self), self).check(expr, ctx)

259

260 newclass = type(name, (BaseClass,), {"check": check})

264

265 def check(self, expr, ctx):

266 return expr.opname == opname and super(type(self), self).check(expr.x, ctx)

267

268 newclass = type(name, (BaseClass,), {"check": check})

build.py (https://github.com/facebookresearch/detectron2.git) Python · 165 lines

49 for p in group["params"]:

50 gradient_clipper(p)

51 super(type(self), self).step(closure)

52

53 OptimizerWithGradientClip = type(

BBB_t_linear.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 195 lines

19 df_init = 5.0):

20

21 super(type(self), self).__init__()

22

23 self.input_size = input_size

112 bias=False):

113

114 super(type(self), self).__init__()

115

116 self.count = 0

MyUglyPrinter.py (https://github.com/tylergreen/mython.git) Python · 357 lines

316 print self.indent * self.level, type(node).__name__

317 self.level += 1

318 _val = super(type(self),self).handle_children(node)

319 self.level -= 1

320 return _val

postgres.py (https://github.com/ombu/vakap.git) Python · 34 lines

7 class PostgresComponent(Component):

8 def __init__(self, site_name, raw_data):

9 super(type(self), self).__init__(site_name, raw_data)

10

11 def backup(self):

testsuite_default_SharedObject.py (https://github.com/sstsimulator/sst-core.git) Python · 236 lines

28

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

33

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()

42

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

70

71 def sub(self, text):

sipmodelling.py (https://gitlab.com/resistivity-net/bert) Python · 158 lines

48 set1back=True, verbose=False):

49 """ Parameters: """

50 super(type(self), self).__init__(verbose)

51 if fop is not None:

52 data = fop.data()

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()

11

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

15

16 def __init__(self, *args, **kwargs):

17 super(type(self), self).__init__(*args, **kwargs)

18

19 self.namespace = self.NameSpace()

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)

91

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

6 class MysqlComponent(Component):

7 def __init__(self, site_name, raw_data):

8 super(type(self), self).__init__(site_name, raw_data)

9

10 def backup(self):

include.py (https://github.com/akesling/chromium.git) Python · 95 lines

45 return resource_map.SourceInclude()

46 else:

47 return super(type(self), self).ItemFormatter(t)

48

49 def FileForLanguage(self, lang, output_dir):

webdriver_browser_driver.py (https://github.com/bardusco/pyccuracy.git) Python · 128 lines

19 class WebdriverBrowserDriver(BrowserDriver):

20 def __init__(self, browser_to_run, tests_dir):

21 super(type(self), self).__init__(browser_to_run, tests_dir)

22 self.__port__ = 8888

23 self.__host__ = 'localhost'

duplicity.py (https://github.com/ombu/vakap.git) Python · 42 lines

7 """ Backup a path with [Duplicity](http://duplicity.nongnu.org/) """

8 def __init__(self, site_name, raw_data):

9 super(type(self), self).__init__(site_name, raw_data)

10

11 def backup(self):

base.py (https://github.com/alibaba/x-deeplearning.git) Python · 110 lines

45 if isinstance(key, six.string_types):

46 key = field_names_map[key]

47 return super(type(self), self).__getitem__(key) # type: ignore

48 data.__getitem__ = getitem

49 return data

super_checks.py (https://github.com/PyCQA/pylint.git) Python · 125 lines

118 """type(self) may lead to recursion loop in derived classes"""

119 def __init__(self):

120 super(type(self), self).__init__() # [bad-super-call]

121

122 class SuperWithSelfClass(object):

AST.py (https://github.com/tylergreen/mython.git) Python · 116 lines

65 if "attributes" not in md:

66 # ASSUMES: super type is either this class or a sum type.

67 md = super(type(self), self).__asdl_meta__

68 if "attributes" in md:

69 ret_val = md["attributes"]

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)

114

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)

90

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

21 class TestSuiteAll(unittest.TestSuite):

22 def __init__(self):

23 super(type(self), self).__init__()

24 # Imports placed here to prevent circular imports.

25 from grit import grd_reader_unittest

cfg.py (https://github.com/looking-for-a-job/setupcfg.py.git) Python · 97 lines

92 if not isinstance(value, dict):

93 raise ValueError("'%s' is not dict" % key)

94 super(type(self), self).__setitem__(key, value)

95

96 def __str__(self):

bases.py (https://github.com/Ciphey/Ciphey.git) Python · 48 lines

36 ns["getTarget"] = ciphey.common.id_lambda(name)

37 ns["priority"] = ciphey.common.id_lambda(priority)

38 ns["__init__"] = lambda self, config: super(type(self), self).__init__(config)

39

40

__init__.py (https://github.com/bjornua/beercalc.git) Python · 40 lines

7 class AccountBox(gtk.VBox):

8 def __init__(self):

9 super(type(self), self).__init__()

10

11 store = AccountStore()

snippet.py (https://github.com/gistable/gistable.git) Python · 99 lines

46 class ArrayPair(object):

47 def __init__(self):

48 super(type(self), self).__init__()

49 # Build a pointer to a null array (which OS X will replace anyways)

50 self.cArray = pointer(c_void_p(None))

dx.py (http://cwcpylib.googlecode.com/svn/trunk/) Python · 80 lines

35

36 def Dispose(self, disposing):

37 super(type(self), self).Dispose(disposing)

38

39 def InitializeComponent(self):

functional.py (https://github.com/ryfeus/lambda-packs.git) Python · 114 lines

22 if isinstance(key, string_types):

23 key = field_names_map[key]

24 return super(type(self), self).__getitem__(key)

25

26 data.__getitem__ = getitem

p2p_commands.py (https://github.com/QuarkChain/pyquarkchain.git) Python · 361 lines

42 ):

43 fields = {k: v for k, v in locals().items() if k != "self"}

44 super(type(self), self).__init__(**fields)

45

46

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()

150

151 class MyGrequest(MPI.Grequest):

BBB_t.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 226 lines

22 df_init = 5.0):

23

24 super(type(self), self).__init__()

25

26 self.input_size = input_size

117 bias=True):

118

119 super(type(self), self).__init__()

120

121 self.in_features = in_features

decorators.py (https://github.com/guerrillagrafters/GuerrillaGrafters_Web.git) Python · 27 lines

21 request._post = new_query_dict

22

23 return super(type(self), self).changelist_view(request, **kwargs)

24

25 original_class.changelist_view = changelist_view

command_injection.py (https://github.com/ChrisTheCoolHut/Firmware_Slap.git) Python · 112 lines

110 def run(self, cmd):

111 self.check_exploitable(cmd)

112 return super(type(self), self).run(cmd)

113

GSAlg.py (https://github.com/bnpy/bnpy.git) Python · 63 lines

17 ''' Create GSAlg, subtype of generic LearnAlg

18 '''

19 super(type(self), self).__init__(**kwargs)

20

21 def fit(self, hmodel, Data):

io.py (https://github.com/draco003/chromium.git) Python · 106 lines

21

22 def __init__(self):

23 super(type(self), self).__init__()

24 self.re = None

25 self.should_load_ = True

101 return grit.format.rc_header.EmitAppender()

102 else:

103 return super(type(self), self).ItemFormatter(t)

104

105

Transition.py (https://github.com/antlr/antlr4.git) Python · 268 lines

210 return symbol >= minVocabSymbol \

211 and symbol <= maxVocabSymbol \

212 and not super(type(self), self).matches(symbol, minVocabSymbol, maxVocabSymbol)

213

214 def __str__(self):

215 return '~' + super(type(self), self).__str__()

216

217

text.py (https://github.com/gfxmonk/savemytext.appspot.com.git) Python · 32 lines

11

12 def __init__(self, *a, **k):

13 super(type(self), self).__init__(**k)

14 if not self.title:

15 self.title = "(untitled)"

LocalStepUtil_ParallelSharedMem.py (https://github.com/bnpy/bnpy.git) Python · 157 lines

109 ''' Create single worker process, linked to provided queues.

110 '''

111 super(type(self), self).__init__() # Required super constructor call

112 self.uid = uid

113 self.ShMem = ShMem

TestSummaryAlg.py (https://github.com/bnpy/bnpy.git) Python · 155 lines

122

123 def setUp(self, K=4, T=100):

124 parent = super(type(self), self)

125 parent.setUp(K, T)

126

129

130 def setUp(self, K=22, T=55):

131 parent = super(type(self), self)

132 parent.setUp(K, T)

133

tgz.py (https://github.com/ombu/vakap.git) Python · 41 lines

7 class TgzComponent(Component):

8 def __init__(self, site_name, raw_data):

9 super(type(self), self).__init__(site_name, raw_data)

10

11 def backup(self):

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)

361

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)

371

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)

391

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)

64

65 def _setup_mock_3parclient(self):

88 class TestUnmountLastVolumeForHost(UnmountVolumeUnitTest):

89 def __init__(self, **kwargs):

90 super(type(self), self).__init__(**kwargs)

91

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

18

19 def setUp(self):

20 super(type(self), TestGetRecordings).setUp(self)

21

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)

131

132 self.tagcat2, self.tagcat3, self.tagcat4 = \

LocalStepUtil_ParallelIPC.py (https://github.com/bnpy/bnpy.git) Python · 110 lines

79 ''' Create single worker process, linked to provided queues.

80 '''

81 super(type(self), self).__init__() # Required super constructor call

82 self.uid = uid

83 self.JobQ = JobQ

poker.py (https://github.com/jaekwon/jae-python.git) Python · 249 lines

36 class Player1(Player):

37 def __init__(self, name):

38 super(type(self), self).__init__(name);

39 self.last_game = None

40

unmountshare_tester.py (https://github.com/hpe-storage/python-hpedockerplugin.git) Python · 70 lines

50 class TestUnmountNfsShare(UnmountShareUnitTest):

51 def __init__(self, **kwargs):

52 super(type(self), self).__init__(**kwargs)

53

54 # def setup_mock_3parclient(self):

distribution.py (https://github.com/pyro-ppl/funsor.git) Python · 114 lines

103 batch_shape = torch.Size(batch_shape)

104 funsor_dist = self.funsor_dist + tensor_to_funsor(torch.zeros(batch_shape))

105 super(type(self), new).__init__(

106 funsor_dist, batch_shape, self.event_shape, self.dtype, validate_args=False

107 )

test_stream.py (https://github.com/13rac1/roundware-server.git) Python · 125 lines

16

17 def setUp(self):

18 super(type(self), TestRoundStream).setUp(self)

19

20 self.project1 = mommy.make(Project, name='Project One',

txt.py (https://github.com/akesling/chromium.git) Python · 52 lines

20

21 def __init__(self, contents):

22 super(type(self), self).__init__()

23 self.text_ = contents

24 self.clique_ = None

newstyle.py (https://bitbucket.org/edhilgendorf/public-code.git) Python · 142 lines

93 continue

94

95 # calling super(type(self), self) can lead to recursion loop

96 # in derived classes

97 arg0 = call.args[0]

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()

316

dynamic.py (https://github.com/ARM-software/trappy.git) Python · 157 lines

43 pass

44

45 super(type(self), self).__init__(**kwords)

46

47

BBB_scale_mix_v2.py (https://bitbucket.org/RamiroCope/thesis_repo.git) Python · 254 lines

24 beta_init = 5.0):

25

26 super(type(self), self).__init__()

27

28 self.input_size = input_size

123 bias=True):

124

125 super(type(self), self).__init__()

126

127 self.count = 0

Feature.py (https://github.com/gilleain/tailor.git) Python · 253 lines

104

105 def __init__(self, id):

106 super(type(self), self).__init__()

107 self.id = id

108 self.levelCode = "S"

131

132 def __init__(self, number):

133 super(type(self), self).__init__()

134 self.number = number

135 self.levelCode = "M"

141

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

80 arg_format = ['sb','int']

81 # def __init__(self, *args, **kwargs):

82 # super(type(self), self).__init__(*args, **kwargs)

83 # import inspect

84 # self.caller = [frame[1:] for frame in inspect.stack()[1:]]

EMAlg.py (https://github.com/bnpy/bnpy.git) Python · 98 lines

20 ''' Create EMAlg instance, subtype of generic LearnAlg

21 '''

22 super(type(self), self).__init__(**kwargs)

23

24 def fit(self, hmodel, Data, LP=None):

add.py (https://github.com/escheffel/pymaclab.git) Python · 341 lines

336 if rhead is NUMBER:

337 return ADD.algebra_mul_number(Algebra, lhs, rdata, inplace)

338 return super(type(self), self).algebra_mul(Algebra, lhs, rhs, inplace)

339 return mul_new(Algebra, [lhs, rhs])

340

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

73

74 def sub(self, text):

parser.py (git://github.com/eigenhombre/PyClojure.git) Python · 145 lines

25 def debug(self, *args, **kwargs):

26 if not _quiet:

27 super(type(self), self).debug(*args, **kwargs)

28

29 def make_map(args):

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)

56

57 class Sphere(Forma):

61 def __init__(self,**kwargs):

62 self.radius = 1.0

63 super(type(self),self).__init__(kwargs)

64

65 class Cone(Forma):

Form.py (https://github.com/microsoftarchive/msdn-code-gallery-microsoft.git) Python · 36 lines

19 # components.Dispose()

20

21 super(type(self), self).Dispose(disposing)

22

23 @returns(None)

Transition.py (https://github.com/antlr/antlr4.git) Python · 252 lines

200 return symbol >= minVocabSymbol \

201 and symbol <= maxVocabSymbol \

202 and not super(type(self), self).matches(symbol, minVocabSymbol, maxVocabSymbol)

203

204 def __unicode__(self):

205 return u'~' + super(type(self), self).__unicode__()

206

207

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

43

44 def __init__(self, packed_string):

45 super(type(self), self).__init__(*self._format.unpack(packed_string))

46

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))

62

63 def __repr__(self):

weight_cast.py (https://github.com/intel/intel-extension-for-pytorch.git) Python · 87 lines

32 else:

33 self.bias = torch.nn.Parameter(self.master_bias)

34 super(type(self), self)._save_to_state_dict(destination, prefix, keep_vars)

35 self.weight = temp_weight

36 if hasattr(self, 'bias') and self.bias is not None:

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

7 class AccountStore(gtk.ListStore):

8 def __init__(self):

9 super(type(self), self).__init__(

10 gobject.TYPE_PYOBJECT,

11 gobject.TYPE_STRING, # Type

layers.py (https://github.com/iwtw/pytorch-TP-GAN.git) Python · 105 lines

76 scaling_factor = 1.0

77 ):

78 super(type(self),self).__init__()

79 if out_channels is None:

80 out_channels = in_channels // stride

template_formatter.py (https://github.com/Gitman1989/chromium.git) Python · 123 lines

37 from module 'writers.adm_writer' will be used.

38 '''

39 super(type(self), self).__init__()

40 writer_module_name = \

41 'grit.format.policy_templates.writers.' + writer_name + '_writer'

lognormal_comparison_test.py (https://github.com/cwharland/kcbo.git) Python · 168 lines

16

17 def __init__(self, *args, **kwargs):

18 super(type(self), self).__init__(*args, **kwargs)

19

20 def initialize_test(self, dataframe, groups=None, groupcol='group', valuecol='value', samples=100000, **kwargs):

newstyle.py (https://github.com/emreozguruoglu/Researcher.git) Python · 127 lines

78 continue

79

80 # calling super(type(self), self) can lead to recursion loop

81 # in derived classes

82 arg0 = call.args[0]

TestZeroMeanGaussObsModel.py (https://github.com/bnpy/bnpy.git) Python · 66 lines

19 B=10, nu=2, D=1,

20 **kwargs):

21 super(type(self), self).__init__(testname)

22 self.B = float(B)

23 self.nu = float(nu)

file_picker.py (https://github.com/tdamdouni/Pythonista.git) Python · 21 lines

8 self.filter=filter

9 self.base=base

10 super(type(self),self).__init__(frame=frame,name=name,items=self.path_generator)

11

12

transforms.py (https://bitbucket.org/dexteris/forma) Python · 52 lines

33 import numpy

34 self.transmat = numpy.eye(4)

35 super(type(self),self).__init__(kwargs)

36

37 class Translation(Forma):

40 self.y = 0.0

41 self.z = 0.0

42 super(type(self),self).__init__(kwargs)

43

44 class Rotation(Forma):

49 self.y = 0.0

50 self.z = 0.0

51 super(type(self),self).__init__(kwargs)

52

webdriver_browser_driver.py (https://github.com/kenjiyamamoto/pyccuracy.git) Python · 130 lines

21

22 def __init__(self, browser_to_run, tests_dir):

23 super(type(self), self).__init__(browser_to_run, tests_dir)

24 self.__port__ = 8888

25 self.__host__ = 'localhost'

ATNDeserializationOptions.py (https://github.com/alainmarcel/Surelog.git) Python · 21 lines

15 if key!="readOnly" and self.readOnly:

16 raise Exception("The object is read only.")

17 super(type(self), self).__setattr__(key,value)

18

19 ATNDeserializationOptions.defaultOptions = ATNDeserializationOptions()

_multidict.py (https://gitlab.com/zimmermanncode/moretools) Python · 145 lines

90 class DictZip(MultiDictType):

91 def __init__(self, dicts, default_value = _NoValue):

92 super(type(self), self).__init__(self, dicts)

93

94 if default_value is not _NoValue:

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

63

64 def sub(self, text):

conftest.py (https://github.com/Epistimio/orion.git) Python · 39 lines

7 """Initialize the parent class"""

8 self.params = params

9 super(type(self), self).__init__(*args, **params)

10

11

common.py (https://github.com/Paperspace/paperspace-python.git) Python · 61 lines

54 def new_invoke(self, ctx):

55 click.echo(click.style(deprecated_invoke_notice, fg='red'), err=True)

56 super(type(self), self).invoke(ctx)

57

58 def decorator(f):

serializers.py (https://github.com/cartologic/cartoview.git) Python · 74 lines

31 self.content_types['file_upload'] = 'multipart/form-data'

32 self.formats.append('file_upload')

33 super(type(self), self).__init__(*args, **kwargs)

34

35 def from_file_upload(self, data, options=None):

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])

126

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)

43

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)

68

units.py (https://github.com/cpius/rosewarsgame.git) Python · 264 lines

244

245 def init(self):

246 super(type(self), self).__init__()

247 for attribute, level in attributes_units[self.name].items():

248 self.attributes[attribute] = AttributeValues(level=level)

include.py (https://github.com/Gitman1989/chromium.git) Python · 119 lines

55 return resource_map.SourceFileInclude()

56 else:

57 return super(type(self), self).ItemFormatter(t)

58

59 def FileForLanguage(self, lang, output_dir):

lr_scheduler.py (https://github.com/GRAAL-Research/pytoune.git) Python · 89 lines

52

53 def f(self, *args, **kwargs):

54 super(type(self), self).__init__(torch_lr_scheduler, *args, **kwargs)

55

56 return f

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__()

7

8 self.append(FileMenu())

11 class FileMenu(gtk.MenuItem):

12 def __init__(self):

13 super(type(self), self).__init__(u"_Filer")

14

15 self.menu = gtk.Menu()

24 class HelpMenu(gtk.MenuItem):

25 def __init__(self):

26 super(type(self), self).__init__(u"_Hjælp")

27

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)

210

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)

221

222 SYMBOL = SymbolHead()

include.py (https://github.com/bluebellzhy/chromium.git) Python · 71 lines

39 self.attrs['relativepath'] == 'true')

40 else:

41 return super(type(self), self).ItemFormatter(t)

42

43 def FileForLanguage(self, lang, output_dir):

scene.py (https://bitbucket.org/dexteris/forma) Python · 47 lines

32 def __init__(self,**kwargs):

33 self.renderer = None

34 super(type(self),self).__init__(kwargs)

35 self.updaters = []

36

worley.py (https://github.com/freethenation/OpenCLNoise.git) Python · 73 lines

15

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

67

Form1.py (https://keelkit.svn.codeplex.com/svn) Python · 45 lines

19

20

21 super(type(self), self).Dispose(disposing)

22

23 @returns(None)

table.py (https://github.com/bjornua/beercalc.git) Python · 54 lines

6 class AccountTable(gtk.TreeView):

7 def __init__(self, store):

8 super(type(self), self).__init__(model=store)

9

10 self.get_selection().set_mode(gtk.SELECTION_MULTIPLE)

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])

350

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)

204

205 def __str__(self):

disting.py (https://bitbucket.org/ericsnowcurrently/commonlib) Python · 148 lines

68 def __init__(self, project, account):

69 self.account = account

70 super(type(self), self).__init__(project)

71

72

109 class DirDocs(Docs):

110 def __init__(self, project, summary=None):

111 super(type(self), self).__init__(project, summary)

112 self.description = self.pull_description()

113

Description.py (https://github.com/gilleain/tailor.git) Python · 355 lines

91

92 def __init__(self, propertyConditions, name=None):

93 super(type(self), self).__init__(propertyConditions)

94 self.name = name

95 self.levelCode = "S"

119

120 def __init__(self, propertyConditions):

121 super(type(self), self).__init__(propertyConditions)

122 self.levelCode = "C"

123

271

272 def __init__(self, propertyConditions):

273 super(type(self), self).__init__(propertyConditions)

274 self.levelCode = "R"

275