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)

170

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)

174

175

human_posture.py (https://github.com/davidhodo/morse.git) Python · 223 lines

143 logger.info('%s initialization' % obj.name)

144 # Call the constructor of the parent class

145 super(self.__class__, self).__init__(obj, parent)

146

147 logger.info('Component initialized, runs at %.2f Hz', self.frequency)

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

52

53

75 extra_context['views'] = view_links

76

77 return super(self.__class__, self).change_view(

78 request, object_id, extra_context=extra_context)

79

98 extra_context['views'] = view_links

99

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)

163

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)

167

168

facets.py (https://github.com/joymax/solar.git) Python · 254 lines

136 def compound_facet_factory(name, title, facets, **attrs):

137 def _init(self, *args, **kwargs):

138 super(self.__class__, self).__init__(*args, **kwargs)

139 self.name = name

140

admin.py (https://bitbucket.org/giussepi/resinmetal.git) Python · 357 lines

19

20 def get_urls(self):

21 urls = super(self.__class__, self).get_urls()

22 my_urls = patterns(

23 '',

90

91 def get_urls(self):

92 urls = super(self.__class__, self).get_urls()

93 my_urls = patterns(

94 '',

146

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

33 :param graph: A networkx graph object

34 """

35 super(self.__class__, self).__init__(graph, seed)

36

37 self.discrete_state = False

views.py (https://gitlab.com/lburdzy/asg) Python · 170 lines

31 self.methods = ('put', )

32 self.permission_classes = (IsOwnerOrReadOnly, )

33 return super(self.__class__, self).update(request, *args, **kwargs)

34

35

message.py (https://github.com/mardiros/python-synapse.git) Python · 264 lines

205 "%Y%m%dT%H:%M:%S.%f").isoformat()

206 else:

207 return super(self.__class__, self).default(obj)

208

209

human_posture.py (https://github.com/kargm/morse.git) Python · 153 lines

21 print("######## HUMAN POSTURE EXPORTER FOR '%s' INITIALIZING ########" % obj.name)

22 # Call the constructor of the parent class

23 super(self.__class__,self).__init__(obj, parent)

24

25 self.local_data['x'] = 0.0

events.py (https://github.com/lordfriend/Albireo.git) Python · 238 lines

113 logger.error(error)

114

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

42

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

62

63 def __eq__(self, other):

64 ret = super(self.__class__, self).__eq__(other)

65 return ret \

66 and self._randfunc == other._randfunc \

196

197 def __init__(self, simidentifier, dimensions=2, **kwargs):

198 super(self.__class__, self).__init__(simidentifier, **kwargs)

199 self._dimensions = dimensions

200

split_repr.py (https://github.com/Gordin/urwid.git) Python · 149 lines

53 # if we're just going to print the classname fall back

54 # to the previous __repr__ implementation instead

55 return super(self.__class__, self).__repr__()

56 if words and alist: words.append("")

57 return "<%s %s>" % (self.__class__.__name__,

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

71 self.__cls__setattr__(attr, value)

72 else:

73 super(self.__class__, self).__setattr__(attr, value)

74

75 else:

76 # does not work to call super.__setattr__

77 #super(self.__class__, self).__setattr__(attr, value)

78 #

79 self.__dict__[attr] = value

template.py (https://github.com/mucca/django-debug-toolbar.git) Python · 122 lines

45

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

47 super(self.__class__, self).__init__(*args, **kwargs)

48 self.templates = []

49 template_rendered.connect(self._store_template_info)

plugin.py (https://github.com/gholms/supybot-plugins.git) Python · 96 lines

46

47 def __init__(self, irc):

48 super(self.__class__, self).__init__(irc)

49

50 def getissue(self, irc, msg, args, issueno):

move_file_command.py (https://github.com/skuroda/Sublime-AdvancedNewFile.git) Python · 143 lines

130 return file_path[len(base):]

131 else:

132 return super(self.__class__, self).generate_initial_path()

133

134

ah_ipv6.py (https://github.com/avocado-framework/avocado-vt.git) Python · 127 lines

124 tag_name='ah-ipv6', attribute='ipsetflags')

125

126 super(self.__class__, self).__init__(virsh_instance=virsh_instance)

127 self.xml = '<ah-ipv6/>'

128

config.py (https://github.com/renfers/ageliaco.tracker.git) Python · 120 lines

111 return app_iter

112

113 super(self.__class__, self).__init__(register_config)

114

115 def make_config_filter(app, global_conf, **local_conf):

admin.py (https://github.com/thatdatabaseguy/openjumo.git) Python · 131 lines

127 def save_model(self, request, obj, form, change):

128 cache.bust(obj, update=False)

129 super(self.__class__, self).save_model(request, obj, form, change)

130

131 admin.site.register(Org,OrgAdmin)

accelerometer.py (https://github.com/kargm/morse.git) Python · 112 lines

14 print ("######## ACCELEROMETER '%s' INITIALIZING ########" % obj.name)

15 # Call the constructor of the parent class

16 super(self.__class__,self).__init__(obj, parent)

17

18 # Variables to store the previous position

tests.py (https://github.com/dgreisen/django-couchdb-utils.git) Python · 152 lines

10 class AuthTests(DbTester):

11 def setUp(self):

12 super(self.__class__, self).setUp(app_label)

13

14 def test_user_registration(self):

polynomials.py (https://bitbucket.org/aleadev/alea.git) Python · 194 lines

135 sqnorm_func = None

136

137 super(self.__class__, self).__init__(rc_func, sqnorm_func)

138 if normalised:

139 self.normalise()

149 sqnorm_func = None

150

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

165

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

15 logger.info('%s initialization' % obj.name)

16 # Call the constructor of the parent class

17 super(self.__class__,self).__init__(obj, parent)

18

19 # Variables to store the previous position

jido_posture.py (https://github.com/peterroelants/morse.git) Python · 159 lines

16 logger.info('%s initialization' % obj.name)

17 # Call the constructor of the parent class

18 super(self.__class__,self).__init__(obj, parent)

19

20 # Object position (maybe delete later)

sphinx_cython.py (https://github.com/thurday/pyzmq.git) Python · 111 lines

86 if isinstance(self, cls):

87 return cls.format_args(self)

88 # return super(self.__class__, self).format_args()

89

90 # escape backslashes for reST

export_it_inventory.py (https://github.com/Cigna/ibis.git) Python · 164 lines

12 def __init__(self, *arg):

13 """Init."""

14 super(self.__class__, self).__init__(*arg)

15 self.table = self.cfg_mgr.it_table_export

16

Expression.py (https://github.com/neonux/mozilla-all.git) Python · 176 lines

131 def __init__(self, type):

132 self.type = type

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

134

135 class __ASTLeaf:

173 def __getitem__(self, key):

174 if key in self:

175 return super(self.__class__, self).__getitem__(key)

176 return key

177

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

15 print ("######## Jido POSTURE EXPORTER '%s' INITIALIZING ########" % obj.name)

16 # Call the constructor of the parent class

17 super(self.__class__,self).__init__(obj, parent)

18

19 # Object position (maybe delete later)

CombinedImage.py (https://github.com/salmon-charles/qooxdoo-build-tool.git) Python · 79 lines

72 # @overloaded

73 def toResinfo(self):

74 result = super(self.__class__, self).toResinfo()

75 if self.format == "b64" and self.path:

76 cont = filetool.read(self.path)

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

31

35

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:

45

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

18

19 class EmailIsInvalidError(Error):

20 def __init__(self, email):

21 super(self.__class__, self).__init__("The email address '{0}' contains invalid characters.".format(email))

22

23 class Settings(object):

NLU.py (https://github.com/wzpan/wukong-robot.git) Python · 218 lines

98

99 def __init__(self):

100 super(self.__class__, self).__init__()

101

102 @classmethod

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)

27

28

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

36 kwargs['partial'] = True

37 super(self.__class__, self).__init__(*args, **kwargs)

38

39

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

52 kwargs['partial'] = True

53 super(self.__class__, self).__init__(*args, **kwargs)

54

55

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

8

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

12

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)

144

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)

148

149

PrimStretchedExpFT.py (https://github.com/mantidproject/mantid.git) Python · 94 lines

21 # pylint: disable=super-on-old-class

22 def __init__(self):

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

24 self._parmList = list()

25

jsonify.py (https://gitlab.com/gregtyka/KhanLatest) Python · 143 lines

119 # anyways, so do that before encoding.

120 obj = dumps(obj, camel_cased=True)

121 return super(self.__class__, self).encode(obj)

122

123

rank.py (https://gitlab.com/Lett1/SlackDuckBot) Python · 73 lines

12

13 def __init__(self):

14 super(self.__class__, self).__init__()

15

16 metadata = MetaData()

jsonify.py (https://gitlab.com/gregtyka/server) Python · 116 lines

92 # anyways, so do that before encoding.

93 obj = dumps(obj, camel_cased=True)

94 return super(self.__class__, self).encode(obj)

95

96 def jsonify(data, camel_cased=False):

customcommands.py (https://gitlab.com/Lett1/SlackDuckBot) Python · 107 lines

15

16 def __init__(self):

17 super(self.__class__, self).__init__()

18 self.own_trigger = "commands"

19 self.trigger_handler = TriggerHandler(self.own_trigger)

lowd_meek.py (https://github.com/ftramer/Steal-ML.git) Python · 187 lines

17 def __init__(self, target, test_xy, error=None, delta=None):

18 self.X_test, self.y_test = test_xy

19 super(self.__class__, self).__init__('LM', +1, -1, target, len(self.X_test[0]), 'uniform', error)

20

21 self.e = error

subclassing.py (https://github.com/andrewkuzmych/litclub.git) Python · 53 lines

47 func(self, cls, name)

48 else:

49 super(self.__class__, self).contribute_to_class(cls, name)

50 setattr(cls, self.name, Creator(self))

51

pages.py (https://gitlab.com/phyks/weboob) Python · 71 lines

48

49 def get_title(self):

50 title = super(self.__class__, self).get_title()

51 title = title.split('|')[0]

52 return title

53

54 def get_author(self):

55 author = super(self.__class__, self).get_author()

56 try:

57 source = self.doc.getroot().xpath(

incar.py (https://github.com/PytLab/VASPy.git) Python · 233 lines

30 ============ =======================================

31 """

32 super(self.__class__, self).__init__(filename)

33 self.filename = filename

34 self.load()

admin.py (https://github.com/thatdatabaseguy/openjumo.git) Python · 167 lines

118 def save_model(self, request, obj, form, change):

119 cache.bust(obj, update=False)

120 super(self.__class__, self).save_model(request, obj, form, change)

121

122

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)

81

82

97 self.access_token_secret = access_token_secret

98 self.username = None

99 super(self.__class__, self).__init__(server_base_uri=server_base_uri)

100

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)

155

156 def start_http_session(self):

test_handler_power_state.py (https://gitlab.com/waldi/cloud-init) Python · 131 lines

11 class TestLoadPowerState(t_help.TestCase):

12 def setUp(self):

13 super(self.__class__, self).setUp()

14

15 def test_no_config(self):

example_eo_04_ownproblem.py (https://gitlab.com/wiechapeter/pyGDM2-dirty) Python · 162 lines

41 def __init__(self, N_dim=9999, model=None, nthreads=1):

42 """constructor"""

43 super(self.__class__, self).__init__(N_dim, model, nthreads=nthreads)

44

45

esp_ipv6.py (https://github.com/avocado-framework/avocado-vt.git) Python · 126 lines

123 tag_name='esp-ipv6', attribute='ipsetflags')

124

125 super(self.__class__, self).__init__(virsh_instance=virsh_instance)

126 self.xml = '<esp-ipv6/>'

127

all_ipv6.py (https://github.com/avocado-framework/avocado-vt.git) Python · 126 lines

123 tag_name='all-ipv6', attribute='ipsetflags')

124

125 super(self.__class__, self).__init__(virsh_instance=virsh_instance)

126 self.xml = '<all-ipv6/>'

127

forms.py (https://github.com/lauraxt/socorro.git) Python · 123 lines

35 **kwargs

36 ):

37 super(self.__class__, self).__init__(*args, **kwargs)

38

39 self.all_fields = all_fields.copy()

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)

81

82 # Only setup the scoop framework once, and not in every test method:

83 super(self.__class__, self).setUp()

84

85 @unittest.skipUnless(sys.platform.startswith("linux"),

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

99 # Parent initialization

100 super(self.__class__, self).__init__(*args, **kwargs)

101

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

122 tag_name='all', attribute='ipsetflags')

123

124 super(self.__class__, self).__init__(virsh_instance=virsh_instance)

125 self.xml = '<all/>'

126

template.py (https://bitbucket.org/jonasteuwen/flask-debugtoolbar.git) Python · 124 lines

31

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

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

34 self.key = str(uuid.uuid4())

35 self.templates = []

pose.py (https://github.com/peterroelants/morse.git) Python · 53 lines

15 logger.info('%s initialization' % obj.name)

16 # Call the constructor of the parent class

17 super(self.__class__,self).__init__(obj, parent)

18

19 self.local_data['x'] = 0.0

node.py (https://gitlab.com/pankajmore/codecombat.git) Python · 143 lines

13 class Node(Dependency):

14 def __init__(self,configuration):

15 super(self.__class__, self).__init__(configuration)

16 operating_system = configuration.system.operating_system

17 self.config.directory.create_directory_in_tmp(u"node")

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

92

93 @status_logger

pages.py (https://github.com/laurentb/weboob.git) Python · 65 lines

38 def get_title(self):

39 try:

40 return super(self.__class__, self).get_title()

41 except(XPathNotFound):

42 if self.main_div is None:

module.py (https://github.com/laurentb/weboob.git) Python · 95 lines

85

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

87 super(self.__class__, self).__init__(*args, **kwargs)

88 self.RSS_FEED = "http://www.lefigaro.fr/rss/figaro_%s.xml" % self.config['feed'].get()

89

icmp.py (https://github.com/avocado-framework/avocado-vt.git) Python · 131 lines

128 tag_name='icmp', attribute='ipsetflags')

129

130 super(self.__class__, self).__init__(virsh_instance=virsh_instance)

131 self.xml = '<icmp/>'

132

plugin_disk.py (git://pkgs.fedoraproject.org/tuned) Python · 173 lines

14 """

15 """

16 super(self.__class__, self).__init__(None, options)

17

18 self.devidle = {}

models.py (git://git.savannah.nongnu.org/savane.git) Python · 132 lines

25 class OpenJobManager(models.Manager):

26 def get_query_set(self):

27 return super(self.__class__, self).get_query_set().filter(status=1)

28 class Job(models.Model):

29 status_CHOICES = (

models.py (https://github.com/kaitlin/HollaBackDC.git) Python · 53 lines

51 self.url = self.user.site

52

53 super(self.__class__, self).save()

54

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)

30

31

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

57 kwargs['partial'] = True

58 super(self.__class__, self).__init__(*args, **kwargs)

59

60 def validate(self, data):

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

79 kwargs['partial'] = True

80 super(self.__class__, self).__init__(*args, **kwargs)

81

82 # def create(self, validated_data):

tests.py (https://github.com/Narsil/django-dtpanel-htmltidy.git) Python · 126 lines

85

86 def panel(self):

87 panel = super(self.__class__, self).panel()

88

89 self.assertEquals(panel.errors_count, 0)

test_smoothers.py (https://gitlab.com/pooja043/Globus_Docker_4) Python · 108 lines

53

54 def __init__(self):

55 super(self.__class__, self).__init__() #initialize DGP

56

57 y, x, exog = self.y, self.x, self.exog

67

68 def __init__(self):

69 super(self.__class__, self).__init__() #initialize DGP

70

71 y, x, exog = self.y, self.x, self.exog

82

83 def __init__(self):

84 super(self.__class__, self).__init__() #initialize DGP

85

86 y, x, exog = self.y, self.x, self.exog

video_camera.py (https://github.com/davidhodo/morse.git) Python · 131 lines

112

113 # Call the action of the parent class

114 super(self.__class__, self).default_action()

115

116 # NOTE: Blender returns the image as a binary string

auth.py (https://github.com/marchon/corkscrew.git) Python · 77 lines

52 """

53 try:

54 return super(self.__class__,self).render_template(*args, **kargs)

55 except jinja2.exceptions.TemplateNotFound, e:

56 from flask.templating import render_template_string

resultmodulation.py (https://github.com/sduchesneau/shinken.git) Python · 101 lines

65 def pythonize(self):

66 # First apply Item pythonize

67 super(self.__class__, self).pythonize()

68

69 # Then very special cases

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]

178

286 raise ValueError('Must only pass numerical values to create continuous column')

287

288 super(self.__class__, self).__init__(np.nan_to_num(arr), metadata, missing_id=missing_id, weights=weights)

289

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)

86

87 def tearDown(self):

88 super(self.__class__, self).tearDown()

89 self.writer.close()

90

core.py (https://github.com/clofresh/spriteful.git) Python · 110 lines

106 self.intent_move(world.random_position())

107 else:

108 super(self.__class__, self).update(world)

109

110

models.py (https://github.com/cdocarmo/saltoguia.git) Python · 111 lines

61 # queryset = queryset.exclude(id=self.id)

62 # self.slug = unique_slugify(self.nombre, queryset, 'slug')

63 # super(self.__class__, self).save(*args, **kwargs)

64 #

65

sro.py (https://github.com/oasis-open/cti-python-stix2.git) Python · 116 lines

58

59 def _check_object_constraints(self):

60 super(self.__class__, self)._check_object_constraints()

61

62 start_time = self.get('start_time')

107

108 def _check_object_constraints(self):

109 super(self.__class__, self)._check_object_constraints()

110

111 first_seen = self.get('first_seen')

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:

cache.py (https://github.com/ross/django-debug-toolbar.git) Python · 105 lines

78

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

80 super(self.__class__, self).__init__(*args, **kwargs)

81 # This is hackish but to prevent threading issues is somewhat needed

82 if isinstance(cache.cache, CacheStatTracker):