hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
6be6bc11e82eb2b9ded455c2d076076a123aceeb
101
py
Python
parkingsystem/apps.py
magaust/jaipurSmartPark
03430a885f1e98badf852985c5b4ba4db2b3795c
[ "MIT" ]
null
null
null
parkingsystem/apps.py
magaust/jaipurSmartPark
03430a885f1e98badf852985c5b4ba4db2b3795c
[ "MIT" ]
null
null
null
parkingsystem/apps.py
magaust/jaipurSmartPark
03430a885f1e98badf852985c5b4ba4db2b3795c
[ "MIT" ]
1
2018-09-06T17:30:51.000Z
2018-09-06T17:30:51.000Z
from django.apps import AppConfig class ParkingsystemConfig(AppConfig): name = 'parkingsystem'
16.833333
37
0.782178
10
101
7.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.148515
101
5
38
20.2
0.918605
0
0
0
0
0
0.128713
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
6bea5e223939d91a5ecfb1e6c59bac171310d8de
49
py
Python
authentication/Config/CONFIG_LOG.py
wisrovi/Server-Hospital-Smart-Bracelet
03b71f03da7450a14cb1c45e51c3ae9401058dc8
[ "MIT" ]
null
null
null
authentication/Config/CONFIG_LOG.py
wisrovi/Server-Hospital-Smart-Bracelet
03b71f03da7450a14cb1c45e51c3ae9401058dc8
[ "MIT" ]
4
2021-03-19T10:58:51.000Z
2021-06-10T20:07:14.000Z
authentication/Config/CONFIG_LOG.py
wisrovi/Server-Hospital-Smart-Bracelet
03b71f03da7450a14cb1c45e51c3ae9401058dc8
[ "MIT" ]
null
null
null
import logging MESSAGES_LOG_VIEW = logging.DEBUG
16.333333
33
0.857143
7
49
5.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.102041
49
3
33
16.333333
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
d4070239c7325f90baf5896e7f290fe6e6c6325e
141
py
Python
src/files/forms.py
earth-emoji/citizens4
eb5f5b0191f7c8690037c9adac07eb4affb40de4
[ "MIT" ]
null
null
null
src/files/forms.py
earth-emoji/citizens4
eb5f5b0191f7c8690037c9adac07eb4affb40de4
[ "MIT" ]
10
2020-02-12T00:46:48.000Z
2022-03-11T23:51:27.000Z
src/files/forms.py
earth-emoji/citizens4
eb5f5b0191f7c8690037c9adac07eb4affb40de4
[ "MIT" ]
null
null
null
from django import forms class FileForm(forms.Form): file = forms.FileField(widget=forms.FileInput(attrs={'class':'custom-file-input'}))
35.25
87
0.751773
19
141
5.578947
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.092199
141
4
87
35.25
0.828125
0
0
0
0
0
0.15493
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d41dea1e537492d83d309b42b63ab8fd6ed36be2
1,901
py
Python
FBSSchemaGenerator/build/python/FRBObs.py
sintefneodroid/schema
05749c7b84caf188d555947fb6572bc48a5a9067
[ "Apache-2.0" ]
2
2018-04-28T13:45:45.000Z
2019-01-21T14:39:53.000Z
FBSSchemaGenerator/build/python/FRBObs.py
sintefneodroid/schema
05749c7b84caf188d555947fb6572bc48a5a9067
[ "Apache-2.0" ]
null
null
null
FBSSchemaGenerator/build/python/FRBObs.py
sintefneodroid/schema
05749c7b84caf188d555947fb6572bc48a5a9067
[ "Apache-2.0" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBS import flatbuffers class FRBObs(object): __slots__ = ['_tab'] @classmethod def GetRootAsFRBObs(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = FRBObs() x.Init(buf, n + offset) return x # FRBObs def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) # FRBObs def Body(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: x = o + self._tab.Pos from .FBody import FBody obj = FBody() obj.Init(self._tab.Bytes, x) return obj return None # FRBObs def VelRange(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: x = o + self._tab.Pos from .FRange import FRange obj = FRange() obj.Init(self._tab.Bytes, x) return obj return None # FRBObs def AngRange(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) if o != 0: x = o + self._tab.Pos from .FRange import FRange obj = FRange() obj.Init(self._tab.Bytes, x) return obj return None def FRBObsStart(builder): builder.StartObject(3) def FRBObsAddBody(builder, body): builder.PrependStructSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(body), 0) def FRBObsAddVelRange(builder, velRange): builder.PrependStructSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(velRange), 0) def FRBObsAddAngRange(builder, angRange): builder.PrependStructSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(angRange), 0) def FRBObsEnd(builder): return builder.EndObject()
32.220339
131
0.631247
229
1,901
5.122271
0.28821
0.059676
0.112532
0.179028
0.468031
0.468031
0.363171
0.363171
0.363171
0.346121
0
0.009319
0.266176
1,901
58
132
32.775862
0.831541
0.057338
0
0.44186
1
0
0.002241
0
0
0
0
0
0
1
0.232558
false
0
0.093023
0.023256
0.534884
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
d42f5848069ca83dc2ad98e37a890b7375d8611a
244
py
Python
example/advanced/testing_utils.py
rubyszu/tavern
47766d1474f5f2b951ca482c41c055d4c79a7b13
[ "MIT" ]
null
null
null
example/advanced/testing_utils.py
rubyszu/tavern
47766d1474f5f2b951ca482c41c055d4c79a7b13
[ "MIT" ]
1
2019-04-01T14:12:57.000Z
2019-04-01T14:12:57.000Z
example/advanced/testing_utils.py
rubyszu/tavern
47766d1474f5f2b951ca482c41c055d4c79a7b13
[ "MIT" ]
1
2019-01-26T15:40:06.000Z
2019-01-26T15:40:06.000Z
import datetime def assert_quick_response(response): """Make sure that a request doesn't take too long Args: response (requests.Response): response object """ assert response.elapsed < datetime.timedelta(seconds=0.1)
22.181818
61
0.704918
31
244
5.483871
0.774194
0.188235
0
0
0
0
0
0
0
0
0
0.010309
0.204918
244
10
62
24.4
0.865979
0.422131
0
0
0
0
0
0
0
0
0
0
0.666667
1
0.333333
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
1
0
1
0
0
4
d44a2cce049ff954a70c942a7895a0433b18a030
298
py
Python
challenge_7/python/wost/find_missing_number.py
rchicoli/2017-challenges
44f0b672e5dea34de1dde131b6df837d462f8e29
[ "Apache-2.0" ]
271
2017-01-01T22:58:36.000Z
2021-11-28T23:05:29.000Z
challenge_7/python/wost/find_missing_number.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
283
2017-01-01T23:26:05.000Z
2018-03-23T00:48:55.000Z
challenge_7/python/wost/find_missing_number.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
311
2017-01-01T22:59:23.000Z
2021-09-23T00:29:12.000Z
def find_missing_number(c): b = max(c) d = min(c + [0]) if min(c) == 1 else min(c) v = set(range(d, b)) - set(c) return list(v)[0] if v != set() else None print(find_missing_number([1, 3, 2, 4])) print(find_missing_number([0, 2, 3, 4, 5])) print(find_missing_number([9, 7, 5, 8]))
29.8
47
0.587248
60
298
2.783333
0.45
0.263473
0.407186
0.39521
0
0
0
0
0
0
0
0.067227
0.201342
298
9
48
33.111111
0.634454
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.375
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d464c742a6b4e917e7c2e788c29aa6e9d971e782
194
py
Python
skultrafast/tests/test_plot_helpers.py
Tillsten/skultrafast
778eaf1539b6d85f21ac53b011472605673ef7e8
[ "BSD-3-Clause" ]
10
2019-02-17T15:57:51.000Z
2021-11-15T02:00:33.000Z
skultrafast/tests/test_plot_helpers.py
cZahn/skultrafast
23572ba9ea32238f34a8a15390fb572ecd8bc6fa
[ "BSD-3-Clause" ]
1
2019-01-17T11:56:38.000Z
2019-07-11T15:30:58.000Z
skultrafast/tests/test_plot_helpers.py
cZahn/skultrafast
23572ba9ea32238f34a8a15390fb572ecd8bc6fa
[ "BSD-3-Clause" ]
6
2018-11-08T14:11:06.000Z
2021-09-01T14:53:02.000Z
from skultrafast.plot_helpers import nsf def test_nsf(): assert(nsf(0.123) == '0.12') assert(nsf(2.345) == ' 2.3') assert(nsf(6.4324) == ' 6.4') assert (nsf(66.43) == ' 70')
24.25
40
0.561856
32
194
3.34375
0.65625
0.336449
0
0
0
0
0
0
0
0
0
0.171053
0.216495
194
7
41
27.714286
0.532895
0
0
0
0
0
0.082474
0
0
0
0
0
0.666667
1
0.166667
true
0
0.166667
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
4
d47462a0b8de44bc0d0fe0be742afdd9cac92caa
1,798
py
Python
rootfs/api/migrations/0002_auto_20151215_0352.py
felixbuenemann/controller
d6023de4710c22791a52bca7ad4f235e8768910a
[ "MIT" ]
35
2016-03-24T21:03:03.000Z
2020-03-16T16:02:04.000Z
rootfs/api/migrations/0002_auto_20151215_0352.py
felixbuenemann/controller
d6023de4710c22791a52bca7ad4f235e8768910a
[ "MIT" ]
829
2016-03-16T17:52:17.000Z
2019-06-24T07:40:20.000Z
rootfs/api/migrations/0002_auto_20151215_0352.py
felixbuenemann/controller
d6023de4710c22791a52bca7ad4f235e8768910a
[ "MIT" ]
59
2016-03-16T18:12:44.000Z
2020-03-16T16:02:41.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models import api.models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AlterField( model_name='app', name='id', field=models.SlugField(max_length=24, unique=True, null=True, validators=[api.models.validate_app_id, api.models.validate_reserved_names]), ), migrations.AlterField( model_name='app', name='uuid', field=models.UUIDField(serialize=False, verbose_name='UUID', primary_key=True), ), migrations.AlterField( model_name='build', name='uuid', field=models.UUIDField(serialize=False, verbose_name='UUID', primary_key=True), ), migrations.AlterField( model_name='config', name='uuid', field=models.UUIDField(serialize=False, verbose_name='UUID', primary_key=True), ), migrations.AlterField( model_name='container', name='uuid', field=models.UUIDField(serialize=False, verbose_name='UUID', primary_key=True), ), migrations.AlterField( model_name='key', name='uuid', field=models.UUIDField(serialize=False, verbose_name='UUID', primary_key=True), ), migrations.AlterField( model_name='push', name='uuid', field=models.UUIDField(serialize=False, verbose_name='UUID', primary_key=True), ), migrations.AlterField( model_name='release', name='uuid', field=models.UUIDField(serialize=False, verbose_name='UUID', primary_key=True), ), ]
32.690909
151
0.579533
175
1,798
5.794286
0.257143
0.110454
0.197239
0.228797
0.728797
0.728797
0.661736
0.661736
0.661736
0.661736
0
0.005507
0.293103
1,798
54
152
33.296296
0.79229
0.01168
0
0.666667
0
0
0.063662
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.104167
0
0
0
0
null
0
1
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2e10cb6d57d006ac637c3f6bd933e9035292777a
135
py
Python
luminoth/datasets/exceptions.py
czbiohub/luminoth
3b4d57a9b4c3704c64816bbcbd6126a2ac23a069
[ "BSD-3-Clause" ]
3
2020-01-29T12:04:28.000Z
2021-04-05T16:30:57.000Z
luminoth/datasets/exceptions.py
czbiohub/luminoth-uv-imaging
3b4d57a9b4c3704c64816bbcbd6126a2ac23a069
[ "BSD-3-Clause" ]
9
2019-11-20T16:57:45.000Z
2021-03-18T06:57:10.000Z
luminoth/datasets/exceptions.py
czbiohub/luminoth
3b4d57a9b4c3704c64816bbcbd6126a2ac23a069
[ "BSD-3-Clause" ]
null
null
null
class InvalidDataDirectory(Exception): """ Error raised when the chosen intput directory for the dataset is not valid. """
27
79
0.711111
16
135
6
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.214815
135
4
80
33.75
0.90566
0.555556
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
2e592967b26192f0998dbbf11fddb04dc2b85f8d
6,115
py
Python
test_mock_dungeon_test_print_methods_of_dungeon.py
nvanbaak/dungeon-adventure-2
8bb3efbcf375baa149df85172b7d715d5a2930a8
[ "MIT" ]
null
null
null
test_mock_dungeon_test_print_methods_of_dungeon.py
nvanbaak/dungeon-adventure-2
8bb3efbcf375baa149df85172b7d715d5a2930a8
[ "MIT" ]
null
null
null
test_mock_dungeon_test_print_methods_of_dungeon.py
nvanbaak/dungeon-adventure-2
8bb3efbcf375baa149df85172b7d715d5a2930a8
[ "MIT" ]
null
null
null
import unittest from room import Room from dungeon import Dungeon class Mock_dungeon: """ creates a mock dungeon of size 4*4, with pre-fixed entrance, exit, impassable room,pillars, healing_potion, pit and vision to test the use_vision_potion and print_dungeon_live_location methods of the Dungeon """ def __init__(self): self.dun = Dungeon(4, 4) # creating a dungeon object self.__create_maze_of_empty_rooms() # resetting the rooms to empty self.__create_mock_dungeon() self.__create_room_links() def __create_maze_of_empty_rooms(self): """the method resets the dungeon rooms to empty """ for r in range(0, 4): for c in range(0, 4): self.dun.dungeon.maze[r, c] = Room() self.dun.dungeon.maze[r, c].location = [r, c] def __create_mock_dungeon(self): self.dun.dungeon.maze[0, 0].is_entrance = True # setting entrance at (0,0) self.dun.dungeon.maze[3, 3].is_exit = True # setting exit at (3,3) # placing the pillars self.dun.dungeon.maze[0, 1].pillar = 'a' self.dun.dungeon.maze[0, 2].pillar = 'e' self.dun.dungeon.maze[0, 3].pillar = 'i' self.dun.dungeon.maze[1, 3].pillar = 'p' # placing impassable rooms self.dun.dungeon.maze[1, 0].is_impassable = True self.dun.dungeon.maze[2, 0].is_impassable = True # placing healing_potion self.dun.dungeon.maze[1, 1].heal = 'y' # placing pit self.dun.dungeon.maze[1, 2].pit = True # placing vision self.dun.dungeon.maze[1, 3].vision = True def __create_room_links(self): """creates pointers between each rooms""" self.dun.dungeon._create_room_links() self.dun._setting_doors() class MyTestCase(unittest.TestCase): def test_print_dungeon_live_location(self): mock_dun = Mock_dungeon() curr = mock_dun.dun.dungeon.maze[0, 0] mock_dun.dun.print_dungeon_live_location(curr) print_str = "\n" <<<<<<< HEAD print_str += "|-----==-----|"+"\t"+"|-----==-----|"+"\t"+"|-----==-----|"+"\t"+"|-----==-----|"+"\t"+"\n" print_str += "| +here+ ::"+"\t"+":: I ::"+"\t"+":: I ::"+"\t"+":: I |"+"\t"+"\n" print_str += "|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"\n" print_str += "|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"\n" print_str += "| Impassable |"+"\t"+"| U ::"+"\t"+":: X ::"+"\t"+":: I oo |"+"\t"+"\n" print_str += "|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"\n" print_str += "|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"\n" print_str += "| Impassable |"+"\t"+"| ::"+"\t"+":: ::"+"\t"+":: |"+"\t"+"\n" print_str += "|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"\n" print_str += "|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"\n" print_str += "| ::"+"\t"+":: ::"+"\t"+":: ::"+"\t"+":: Exit |"+"\t"+"\n" print_str += "|-----==-----|"+"\t"+"|-----==-----|"+"\t"+"|-----==-----|"+"\t"+"|-----==-----|"+"\t" ======= print_str += "|------==------|"+"\t"+"|------==------|"+"\t"+"|------==------|"+"\t"+"|------==------|"+"\t"+"\n" print_str += "| +here+ ::"+"\t"+":: I ::"+"\t"+":: I ::"+"\t"+":: I |"+"\t"+"\n" print_str += "|------==------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"\n" print_str += "|------==------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"\n" print_str += "| Impassable |"+"\t"+"| U ::"+"\t"+":: X ::"+"\t"+":: I oo |"+"\t"+"\n" print_str += "|------==------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"\n" print_str += "|------==------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"\n" print_str += "| Impassable |"+"\t"+"| ::"+"\t"+":: ::"+"\t"+":: |"+"\t"+"\n" print_str += "|------==------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"\n" print_str += "|------==------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"|------::------|"+"\t"+"\n" print_str += "| ::"+"\t"+":: ::"+"\t"+":: ::"+"\t"+":: Exit |"+"\t"+"\n" print_str += "|------==------|"+"\t"+"|------==------|"+"\t"+"|------==------|"+"\t"+"|------==------|"+"\t" >>>>>>> sg_dungeon_new print_str += "\n+here+ is your current room" self.assertEqual(print_str, mock_dun.dun.print_dungeon_live_location(curr)) # def test_use_vision_potion(self): # mock_dun = Mock_dungeon() # curr = mock_dun.dun.dungeon.maze[0, 0] # print_str = "\n" # print_str += " "+" "+" "+"\n" # print_str += " "+" "+" "+"\n" # print_str += " "+" "+" "+"\n" # print_str += " "+"|-----::-----|"+"\t"+"|-----::-----|"+"\t"+"\n" # print_str += " "+":: +here+ ::"+"\t"+":: I ::"+"\t"+"\n" # print_str += " "+"|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"\n" # print_str += " "+"|-----==-----|"+"\t"+"|-----::-----|"+"\t"+"\n" # print_str += " "+"| Impassable |"+"\t"+"| U ::"+"\t"+"\n" # print_str += " "+"|-----==-----|"+"\t"+"|-----::-----|"+"\t" # self.assertEqual(print_str, mock_dun.dun.use_vision_potion(curr)) if __name__ == '__main__': unittest.main()
57.688679
121
0.346852
588
6,115
3.401361
0.151361
0.062
0.057
0.135
0.4935
0.4045
0.359
0.331
0.293
0.262
0
0.008295
0.250859
6,115
105
122
58.238095
0.428291
0.183483
0
0.30303
0
0
0.370052
0
0.363636
0
0
0
0.015152
0
null
null
0.090909
0.045455
null
null
0.439394
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
1
0
4
2e6274fc3a2845037f84627024beb9c7beacf20d
212
py
Python
todolist_backend/models/embedded_tag.py
RenoirTan/TodoListBackend
149bdf1d883891c87b27f01996816bff251f11d8
[ "MIT" ]
null
null
null
todolist_backend/models/embedded_tag.py
RenoirTan/TodoListBackend
149bdf1d883891c87b27f01996816bff251f11d8
[ "MIT" ]
null
null
null
todolist_backend/models/embedded_tag.py
RenoirTan/TodoListBackend
149bdf1d883891c87b27f01996816bff251f11d8
[ "MIT" ]
null
null
null
from mongoengine.document import EmbeddedDocument from mongoengine.fields import StringField class EmbeddedTag(EmbeddedDocument): """ A tag in a document. """ name = StringField(max_length=120)
21.2
49
0.745283
23
212
6.826087
0.695652
0.191083
0
0
0
0
0
0
0
0
0
0.017241
0.179245
212
9
50
23.555556
0.885057
0.09434
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
cf307167cdbd39cc833e81c947694efbd86969d2
261
pyde
Python
sketch_15/sketch_15.pyde
Minindosyan/2019-fall-polytech-cs
f022362e4bf6d69d623d3212df9b038f7abf5790
[ "MIT" ]
null
null
null
sketch_15/sketch_15.pyde
Minindosyan/2019-fall-polytech-cs
f022362e4bf6d69d623d3212df9b038f7abf5790
[ "MIT" ]
null
null
null
sketch_15/sketch_15.pyde
Minindosyan/2019-fall-polytech-cs
f022362e4bf6d69d623d3212df9b038f7abf5790
[ "MIT" ]
null
null
null
def setup (): size (500, 500) smooth () background(255) strokeWeight(30) noLoop () def draw (): stroke(20) line(50*1,200,150+50*0,300) line(50*2,200,150+50*1,300) line(50*3,200,150+50*2,300)
17.4
32
0.494253
39
261
3.307692
0.564103
0.139535
0.186047
0
0
0
0
0
0
0
0
0.337209
0.340996
261
14
33
18.642857
0.412791
0
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
true
0
0
0
0.181818
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
cf33f1b91e35bbbfef15f271522c59c0172a6d10
122
py
Python
serverPythonClient/SRNTT/SRNTT/__init__.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
serverPythonClient/SRNTT/SRNTT/__init__.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
serverPythonClient/SRNTT/SRNTT/__init__.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
import sys from os.path import dirname, realpath, join DIR_PATH = dirname(realpath(__file__)) sys.path.append(DIR_PATH)
17.428571
43
0.786885
19
122
4.736842
0.578947
0.333333
0
0
0
0
0
0
0
0
0
0
0.114754
122
6
44
20.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
cf39bdc8deb753cf2894b97744ebb0e27fda9746
175
py
Python
tbshg/utils/subscribe.py
1713175349/tbshg
a3d3cfb0dd9caff4be87943a83a9aed61f3926b7
[ "MIT" ]
null
null
null
tbshg/utils/subscribe.py
1713175349/tbshg
a3d3cfb0dd9caff4be87943a83a9aed61f3926b7
[ "MIT" ]
null
null
null
tbshg/utils/subscribe.py
1713175349/tbshg
a3d3cfb0dd9caff4be87943a83a9aed61f3926b7
[ "MIT" ]
null
null
null
def number_indice_to_string(index)->str: """ Convert a number to a string. """ indicename = ["x", "y", "z"] return "".join([indicename[i] for i in index])
25
50
0.582857
25
175
3.96
0.72
0
0
0
0
0
0
0
0
0
0
0
0.234286
175
7
50
25
0.738806
0.165714
0
0
0
0
0.023077
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
cf5df49b7496875f6f5f40903247e351813e84a2
304
py
Python
hamming-distance.py
parappayo/leetcode-samples
69ea381664d55a6268a507d36fac34015a2dd021
[ "MIT" ]
null
null
null
hamming-distance.py
parappayo/leetcode-samples
69ea381664d55a6268a507d36fac34015a2dd021
[ "MIT" ]
null
null
null
hamming-distance.py
parappayo/leetcode-samples
69ea381664d55a6268a507d36fac34015a2dd021
[ "MIT" ]
null
null
null
import functools def to_32bit_string(x: str) -> int: return "{0:b}".format(x).zfill(32) def hamming_distance(x: int, y: int) -> int: return functools.reduce( lambda total, pair: total + (0 if pair[0] == pair[1] else 1), zip(to_32bit_string(x), to_32bit_string(y)), 0)
23.384615
69
0.615132
49
304
3.673469
0.530612
0.116667
0.216667
0.155556
0
0
0
0
0
0
0
0.059574
0.226974
304
12
70
25.333333
0.706383
0
0
0
0
0
0.016447
0
0
0
0
0
0
1
0.25
false
0
0.125
0.25
0.625
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
cf6eb65952f032591bad7b1d16ee180ad07abb87
156
py
Python
lightweight/content/__init__.py
mdrachuk/lightspeed
ff4dc0531adfc483a0ec84a98ea308efbae6beda
[ "MIT" ]
4
2019-08-27T19:17:44.000Z
2020-04-24T04:49:30.000Z
lightweight/content/__init__.py
mdrachuk/lightspeed
ff4dc0531adfc483a0ec84a98ea308efbae6beda
[ "MIT" ]
16
2019-08-22T14:44:10.000Z
2020-06-29T15:07:24.000Z
lightweight/content/__init__.py
mdrachuk/lightspeed
ff4dc0531adfc483a0ec84a98ea308efbae6beda
[ "MIT" ]
null
null
null
from .content_abc import Content from .copies import copy from .jinja_page import jinja, from_ctx from .md_page import markdown from .sass_scss import sass
26
39
0.826923
26
156
4.769231
0.5
0.16129
0
0
0
0
0
0
0
0
0
0
0.134615
156
5
40
31.2
0.918519
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
d852f1a14ba5e7cf3660619e0690fa64cd729152
1,087
py
Python
src/http_client/api_client.py
Andrii-Grytsenko-OWASP/SnykVulnCheck
105bd8423f1d7c67aa71727465f93e000ab674ca
[ "MIT" ]
null
null
null
src/http_client/api_client.py
Andrii-Grytsenko-OWASP/SnykVulnCheck
105bd8423f1d7c67aa71727465f93e000ab674ca
[ "MIT" ]
null
null
null
src/http_client/api_client.py
Andrii-Grytsenko-OWASP/SnykVulnCheck
105bd8423f1d7c67aa71727465f93e000ab674ca
[ "MIT" ]
null
null
null
import requests from src.helpers.enums import ErrorMessages from src.helpers.utils import get_url class ApiClient: def __init__(self, base_url): self.base_url = base_url self.session = requests.Session() def get(self, endpoint: str, *args, **kwargs): return self.session.get(url=get_url(self.base_url, endpoint), *args, **kwargs) def post(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET) def put(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET) def patch(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET) def delete(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET) def options(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET) def head(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET) def trace(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET) def connect(self): raise NotImplemented(ErrorMessages.NOT_IMPLEMENTED_YET)
27.871795
69
0.701932
123
1,087
5.99187
0.284553
0.097693
0.249661
0.390773
0.603799
0.603799
0.603799
0.531886
0
0
0
0
0.217111
1,087
38
70
28.605263
0.86604
0
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.384615
false
0
0.115385
0.038462
0.576923
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
d85725a51f29dc4248b81154d73f826bcaf4b5da
818
py
Python
validator/github.py
javaguirre/node-t-checker
4311367c68d1e826ebaf705dd299abd2466c295c
[ "MIT" ]
null
null
null
validator/github.py
javaguirre/node-t-checker
4311367c68d1e826ebaf705dd299abd2466c295c
[ "MIT" ]
null
null
null
validator/github.py
javaguirre/node-t-checker
4311367c68d1e826ebaf705dd299abd2466c295c
[ "MIT" ]
null
null
null
import json from github import Github from .types import PublishableOutput, NodeInformation class GithubService(PublishableOutput): REPOSITORY = 'alastria/alastria-node' def __init__(self, token: str): self.client = Github(token) self.repo = self.client.get_repo(self.REPOSITORY) def use_pull_request_id(self, pull_request_id: int) -> None: self.pull_request_id = pull_request_id def get_pr_description(self, pull_request_id: int) -> str: data = self.repo.get_pull(self.pull_request_id) return data.body def publish(self, body: str) -> None: data = self.repo.get_pull(self.pull_request_id) data.create_issue_comment(body) def get_pr_body(self) -> str: pr = self.repo.get_pull(self.pull_request_id) return pr.body
28.206897
64
0.698044
113
818
4.778761
0.309735
0.162963
0.192593
0.188889
0.288889
0.214815
0.214815
0.214815
0.214815
0
0
0
0.207824
818
28
65
29.214286
0.833333
0
0
0.105263
0
0
0.026895
0.026895
0
0
0
0
0
1
0.263158
false
0
0.157895
0
0.631579
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
d860bfa65cfaa6ab64e45cc0385cdaaee346f3c2
739
py
Python
biz/dmrl/market.py
yt7589/iching
6673da38f4c80e7fd297c86fedc5616aee8ac09b
[ "Apache-2.0" ]
32
2020-04-14T08:32:18.000Z
2022-02-09T07:05:08.000Z
biz/dmrl/market.py
yt7589/iching
6673da38f4c80e7fd297c86fedc5616aee8ac09b
[ "Apache-2.0" ]
1
2020-04-08T10:42:15.000Z
2020-04-15T01:38:03.000Z
biz/dmrl/market.py
yt7589/iching
6673da38f4c80e7fd297c86fedc5616aee8ac09b
[ "Apache-2.0" ]
4
2020-08-25T03:56:46.000Z
2021-05-11T05:55:51.000Z
# import numpy as np import pandas as pd import matplotlib.pyplot as plt from torch.utils.data import Dataset import akshare as ak # from biz.dmrl.app_config import AppConfig from biz.dmrl.aks_util import AksUtil class Market(Dataset): def __init__(self, stock_symbol): self.name = 'apps.dmrl.maml.aks_ds.AksDs' self.X, self.y, self.trade_dates = AksUtil.generate_stock_ds(stock_symbol, ds_mode=AksUtil.DM_RL, draw_line=False) def __len__(self): return self.X.shape[0] def __getitem__(self, idx): return self.X[idx], self.y[idx], self.trade_dates[idx] def get_trade_date(self, current_step): ''' 获取当前交易点的日期字符串 ''' return self.trade_dates[current_step - 1]
28.423077
122
0.698241
112
739
4.348214
0.526786
0.030801
0.086242
0
0
0
0
0
0
0
0
0.00339
0.201624
739
26
123
28.423077
0.822034
0.017591
0
0
0
0
0.038516
0.038516
0
0
0
0
0
1
0.235294
false
0
0.411765
0.117647
0.882353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
d86c5b0e4a350ff5915b62f871a9b35bca4856fd
85
py
Python
lotto/apps.py
b14cknc0d3/lotto_api
6bb6a9c23076428816aa8544b0212304ebcaedf0
[ "MIT" ]
4
2019-03-27T01:52:12.000Z
2019-05-10T17:10:14.000Z
lotto/apps.py
b14cknc0d3/lotto_api
6bb6a9c23076428816aa8544b0212304ebcaedf0
[ "MIT" ]
6
2020-06-05T20:35:49.000Z
2022-02-10T08:14:21.000Z
lotto/apps.py
b14cknc0d3/lotto_api
6bb6a9c23076428816aa8544b0212304ebcaedf0
[ "MIT" ]
null
null
null
from django.apps import AppConfig class LottoConfig(AppConfig): name = 'lotto'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d8877050d5b9f28e17351b607523601df6a5ec81
1,885
py
Python
alexa/BBQBerrySmartHome/test_directive_powercontroller.py
declanshanaghy/bbqberry
13dad8c1c887e001f863313ad2aa6adb49c1b608
[ "Apache-2.0" ]
null
null
null
alexa/BBQBerrySmartHome/test_directive_powercontroller.py
declanshanaghy/bbqberry
13dad8c1c887e001f863313ad2aa6adb49c1b608
[ "Apache-2.0" ]
null
null
null
alexa/BBQBerrySmartHome/test_directive_powercontroller.py
declanshanaghy/bbqberry
13dad8c1c887e001f863313ad2aa6adb49c1b608
[ "Apache-2.0" ]
null
null
null
import json import handler request = { "directive": { "endpoint": { "cookie": {}, "endpointId": "endpoint-002", "scope": { "token": "Atza|IwEBIIM1Jk0zzEZNvrskXb9ofwhSfx_zO5JPcWvJ6_WLN93ZIHFK9sGDF2xTgU8UxDLmkaWGjL843ggSixnpbbhokriKbCR1rcA1USxWBOvI5BM3THWg7swp4ySawTWJ0EOLsRhIhnj2-KN4xCxFpMKF4FA97yuHLz0wMdieaI1X5cr3y5ASUP4q1qcSXWFCe753cRQOiJPyDdIxW_PKRbzD5pfsIvZ5IVrfwx5qmdo1PsA7cKqSjHq9Gvc9eg93uklHyuOR7s9XJeXo6r1Wn0UMhbQmI4Vl428ve8jbIKZwD16M_N-yUaN9NTBEw3mK2gak5KjvnHp8ENFvtS5s9Yy_Lvw5qd4zKctTptzBTD-RuQuytwB73RxJ8uA4Eqdspf1In30J8rU7Ty795CS8-dhD8Uzaw6eTHdZeIQMPGVGf7J7Z--PIXKENWHjcP4EwTs2npyEJuMXCNqAbpVylC5clgNKxYTJuaF7Gmdh3SSldxc9bVxyqZ8kX_xKXr4Pkwm5Sbwc", "type": "BearerToken" } }, "header": { "correlationToken": "AAAAAAAAAADBZt5qTLHppE/m3LrCcUjhBAIAAAAAAABQi6+Tqc1qP5jYTnHYvPTb+pTAueq+0QJEYYiyHrWHp6or7jkLkiKgXjIMkzyi0mXr0uabsTMB/YgF9kJfwbTq+d5fF3iTL3PCiOqrT8ZDCgejTwMbRLgO+yJY+Z62Xz6KN5jV49rBCAkJtpHoWPQ4JHVlBQ+btgIi1pNXFKG1eHeDoDUO9c1tsmnfL+rPpH02Ips2TsVbjF78qy9gpnd2/l4Hj/4cavCmMY/iYVu5Dao/sYLJbcHUk/QooSP3aw08bZV8QHuQkUQdEFOE6B440IDofZzBQ0zXURLrnjoJXXKdYxC6dpSkO+rcaB1R9jKypXXgJQaMrKNgOZUO/2ogZJNqnrJNBgGue6HAVXcsOPeP3felRjwKo/M98xZTfsC1NBrqL/GsaDMSdqBLtmMw7ZB7BBRluDqJ799THAbXsM954VE9xDFO+3OZx9x0IVMh+x+9QBc3w+MzI1NMuMdSXWWJJUFOa1ks0cpzgJZfAsSX/VA/+tTLFspe/+1O0yqrlFWbGG+Z/bMMKw0t3Ag/Q8xO537aLTnV03Gheof9Kbh3zc3TO/kpulEpNOXqGvrMskjBBEQCOni9m0tw/Ij+hsVxShacm7r7Up4AOtnn9VIzvlw8b+hSO0K4qsejvTfrNw6NAljEP6MGVWTBm0g757JPPuFxrA0x+DUn93//uyCvljA=", "messageId": "07f0bdff-c783-42f7-86b3-1a3ea92e732f", "name": "TurnOn", "namespace": "Alexa.PowerController", "payloadVersion": "3" }, "payload": {} } } response = handler.lambda_handler(request, None) print(json.dumps(response, indent=4))
67.321429
767
0.796817
92
1,885
16.25
0.923913
0.018729
0
0
0
0
0
0
0
0
0
0.131675
0.125729
1,885
27
768
69.814815
0.775485
0
0
0
0
0.041667
0.771883
0.696552
0
1
0
0
0
1
0
false
0
0.083333
0
0.083333
0.041667
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
d8b44612ef0103325f31103eb265522dfe2e3ce7
1,108
py
Python
ctdjango/linkedct/update.py
oktie/linkedct
834f71acce471549102199a141aa768e7ffd63d8
[ "Apache-2.0" ]
9
2015-08-04T01:30:58.000Z
2021-08-23T14:39:20.000Z
ctdjango/linkedct/update.py
oktie/linkedct
834f71acce471549102199a141aa768e7ffd63d8
[ "Apache-2.0" ]
5
2015-10-13T18:23:43.000Z
2015-12-02T18:56:05.000Z
ctdjango/linkedct/update.py
oktie/linkedct
834f71acce471549102199a141aa768e7ffd63d8
[ "Apache-2.0" ]
6
2015-07-22T02:48:06.000Z
2021-12-10T20:22:01.000Z
# # Copyright 2009-2015 Oktie Hassanzadeh # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # """ This file contains functions that can be used to update between versions of linkedct. """ from django import http import models import rdf #def discover_condition_links(request): # for pubentry in models.Condition.objects.all(): # rdf.discover_condition_links(pubentry) # return http.HttpResponse("Done!") # # #def discover_intervention_links(request): # for author in models.Intervention.objects.all(): # rdf.discover_intervention_links(author) # return http.HttpResponse("Done!")
29.157895
74
0.750903
155
1,108
5.316129
0.593548
0.072816
0.031553
0.038835
0
0
0
0
0
0
0
0.012973
0.165162
1,108
37
75
29.945946
0.877838
0.897112
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
d8edc52157418617e2ade589f0eb03df1d8b9cef
211
py
Python
tests/eskapade_python/notebooks/test_notebooks.py
mbaak/Eskapade
00c8f6ca52eb5b738b4268257e277dab71b804cb
[ "Apache-2.0" ]
16
2016-10-10T08:39:30.000Z
2020-12-22T01:00:56.000Z
tests/eskapade_python/notebooks/test_notebooks.py
mbaak/Eskapade
00c8f6ca52eb5b738b4268257e277dab71b804cb
[ "Apache-2.0" ]
null
null
null
tests/eskapade_python/notebooks/test_notebooks.py
mbaak/Eskapade
00c8f6ca52eb5b738b4268257e277dab71b804cb
[ "Apache-2.0" ]
6
2017-06-14T12:01:41.000Z
2018-04-03T17:01:04.000Z
from eskapade_python.bases import NotebookTest class PipelineNotebookTest(NotebookTest): """Unit test notebook""" def test_tutorial_1(self): self.run_notebook('tutorial_1.ipynb', 'Tutorial_1')
26.375
59
0.748815
25
211
6.08
0.68
0.177632
0
0
0
0
0
0
0
0
0
0.016667
0.146919
211
7
60
30.142857
0.827778
0.085308
0
0
0
0
0.139037
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
2b3e4bc09b30aef585588b2a39cd815436d4762b
85
py
Python
piece/apps.py
amineadmane/AutoCare
f4339cdc2d78c985b77b7b1cc469bae67728086b
[ "MIT" ]
null
null
null
piece/apps.py
amineadmane/AutoCare
f4339cdc2d78c985b77b7b1cc469bae67728086b
[ "MIT" ]
null
null
null
piece/apps.py
amineadmane/AutoCare
f4339cdc2d78c985b77b7b1cc469bae67728086b
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PieceConfig(AppConfig): name = 'piece'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
2b41c91428dcdbbe8e42049ecc1bfe4fcc5a005e
22
py
Python
Lib/test/test_compiler/testcorpus/53_list_comp_method.py
diogommartins/cinder
79103e9119cbecef3b085ccf2878f00c26e1d175
[ "CNRI-Python-GPL-Compatible" ]
1,886
2021-05-03T23:58:43.000Z
2022-03-31T19:15:58.000Z
Lib/test/test_compiler/testcorpus/53_list_comp_method.py
diogommartins/cinder
79103e9119cbecef3b085ccf2878f00c26e1d175
[ "CNRI-Python-GPL-Compatible" ]
70
2021-05-04T23:25:35.000Z
2022-03-31T18:42:08.000Z
Lib/test/test_compiler/testcorpus/53_list_comp_method.py
diogommartins/cinder
79103e9119cbecef3b085ccf2878f00c26e1d175
[ "CNRI-Python-GPL-Compatible" ]
52
2021-05-04T21:26:03.000Z
2022-03-08T18:02:56.000Z
[x for x in s].copy()
11
21
0.545455
6
22
2
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.227273
22
1
22
22
0.705882
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2b470fe9195cd2eeea2dce5223355e951a0cef84
57
py
Python
src/xbot/dm/intervention.py
xinyang178/xbot
dad1fc67062dc6fd21802899fd68f7eb91c96569
[ "MIT" ]
77
2020-10-27T12:19:01.000Z
2022-03-16T09:13:17.000Z
src/xbot/dm/intervention.py
xinyang178/xbot
dad1fc67062dc6fd21802899fd68f7eb91c96569
[ "MIT" ]
7
2020-12-09T14:05:07.000Z
2021-04-28T02:37:05.000Z
src/xbot/dm/intervention.py
xinyang178/xbot
dad1fc67062dc6fd21802899fd68f7eb91c96569
[ "MIT" ]
45
2020-09-24T07:28:32.000Z
2022-03-03T17:09:04.000Z
class DMIntervention(object): """DM人工干预""" pass
11.4
29
0.614035
5
57
7
1
0
0
0
0
0
0
0
0
0
0
0
0.22807
57
4
30
14.25
0.795455
0.105263
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
2b5e2f8c54d7d20708bd1efa48ca13735090f02b
241
py
Python
notification/urls.py
ThemisTheo1995/personalBlog
32c2bdb0a6ac56e1af19160e93d2ae01733ebd07
[ "MIT" ]
null
null
null
notification/urls.py
ThemisTheo1995/personalBlog
32c2bdb0a6ac56e1af19160e93d2ae01733ebd07
[ "MIT" ]
null
null
null
notification/urls.py
ThemisTheo1995/personalBlog
32c2bdb0a6ac56e1af19160e93d2ae01733ebd07
[ "MIT" ]
null
null
null
from .views import nav_notifications_handler from django.urls import path, re_path app_name = 'notification' urlpatterns =[ re_path(r'^ajax/nav_notifications_handler/$', nav_notifications_handler, name = 'nav_notifications_handler'), ]
30.125
113
0.80083
31
241
5.870968
0.516129
0.351648
0.505495
0
0
0
0
0
0
0
0
0
0.103734
241
8
114
30.125
0.842593
0
0
0
0
0
0.289256
0.239669
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
9916ae0e39386e8329b70771e316e44209ca1be0
18,308
py
Python
tests/test_with_sklearn/_test_decorate_module_of_sklearn.py
Twangist/log_calls
7671a781a9e756844ef2e0adee76412d3d465648
[ "MIT" ]
16
2015-02-21T00:00:20.000Z
2021-09-26T05:24:24.000Z
tests/test_with_sklearn/_test_decorate_module_of_sklearn.py
Twangist/log_calls
7671a781a9e756844ef2e0adee76412d3d465648
[ "MIT" ]
3
2018-04-25T04:02:41.000Z
2018-04-25T04:11:54.000Z
tests/test_with_sklearn/_test_decorate_module_of_sklearn.py
Twangist/log_calls
7671a781a9e756844ef2e0adee76412d3d465648
[ "MIT" ]
3
2015-02-21T13:15:20.000Z
2022-01-18T15:02:46.000Z
__author__ = 'brianoneill' """ NOT included in test suite as it messes up the other sklearn tests if/when it runs first, ... and it's a ridiculous test, which passes today but who knows about tomorrow. """ from log_calls import log_calls ############################################################################## # doctests ############################################################################## def test_decorate_module_sklearn(): """ >>> from sklearn.cluster import KMeans, MiniBatchKMeans >>> from sklearn.datasets import make_blobs >>> n_samples = 10 >>> random_state = 170 >>> X, y = make_blobs(n_samples=n_samples, random_state=random_state) >>> log_calls.decorate_module(sklearn.cluster.k_means_, ... log_args=False, log_call_numbers=True) >>> mbk = MiniBatchKMeans(init='k-means++', n_clusters=2, batch_size=45, ... n_init=10, max_no_improvement=7, max_iter=7) MiniBatchKMeans.__init__ [1] <== called by <module> KMeans.__init__ [1] <== called by MiniBatchKMeans.__init__ [1] KMeans.__init__ [1] ==> returning to MiniBatchKMeans.__init__ [1] MiniBatchKMeans.__init__ [1] ==> returning to <module> >>> _ = mbk.fit(X) # doctest: +NORMALIZE_WHITESPACE MiniBatchKMeans.fit [1] <== called by <module> _init_centroids [1] <== called by MiniBatchKMeans.fit [1] _k_init [1] <== called by _init_centroids [1] _k_init [1] ==> returning to _init_centroids [1] _validate_center_shape [1] <== called by _init_centroids [1] _validate_center_shape [1] ==> returning to _init_centroids [1] _init_centroids [1] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [1] <== called by MiniBatchKMeans.fit [1] _labels_inertia [1] <== called by _mini_batch_step [1] _labels_inertia_precompute_dense [1] <== called by _labels_inertia [1] _labels_inertia_precompute_dense [1] ==> returning to _labels_inertia [1] _labels_inertia [1] ==> returning to _mini_batch_step [1] _mini_batch_step [1] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [2] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [2] <== called by _labels_inertia [2] _labels_inertia_precompute_dense [2] ==> returning to _labels_inertia [2] _labels_inertia [2] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [2] <== called by MiniBatchKMeans.fit [1] _k_init [2] <== called by _init_centroids [2] _k_init [2] ==> returning to _init_centroids [2] _validate_center_shape [2] <== called by _init_centroids [2] _validate_center_shape [2] ==> returning to _init_centroids [2] _init_centroids [2] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [2] <== called by MiniBatchKMeans.fit [1] _labels_inertia [3] <== called by _mini_batch_step [2] _labels_inertia_precompute_dense [3] <== called by _labels_inertia [3] _labels_inertia_precompute_dense [3] ==> returning to _labels_inertia [3] _labels_inertia [3] ==> returning to _mini_batch_step [2] _mini_batch_step [2] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [4] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [4] <== called by _labels_inertia [4] _labels_inertia_precompute_dense [4] ==> returning to _labels_inertia [4] _labels_inertia [4] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [3] <== called by MiniBatchKMeans.fit [1] _k_init [3] <== called by _init_centroids [3] _k_init [3] ==> returning to _init_centroids [3] _validate_center_shape [3] <== called by _init_centroids [3] _validate_center_shape [3] ==> returning to _init_centroids [3] _init_centroids [3] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [3] <== called by MiniBatchKMeans.fit [1] _labels_inertia [5] <== called by _mini_batch_step [3] _labels_inertia_precompute_dense [5] <== called by _labels_inertia [5] _labels_inertia_precompute_dense [5] ==> returning to _labels_inertia [5] _labels_inertia [5] ==> returning to _mini_batch_step [3] _mini_batch_step [3] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [6] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [6] <== called by _labels_inertia [6] _labels_inertia_precompute_dense [6] ==> returning to _labels_inertia [6] _labels_inertia [6] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [4] <== called by MiniBatchKMeans.fit [1] _k_init [4] <== called by _init_centroids [4] _k_init [4] ==> returning to _init_centroids [4] _validate_center_shape [4] <== called by _init_centroids [4] _validate_center_shape [4] ==> returning to _init_centroids [4] _init_centroids [4] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [4] <== called by MiniBatchKMeans.fit [1] _labels_inertia [7] <== called by _mini_batch_step [4] _labels_inertia_precompute_dense [7] <== called by _labels_inertia [7] _labels_inertia_precompute_dense [7] ==> returning to _labels_inertia [7] _labels_inertia [7] ==> returning to _mini_batch_step [4] _mini_batch_step [4] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [8] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [8] <== called by _labels_inertia [8] _labels_inertia_precompute_dense [8] ==> returning to _labels_inertia [8] _labels_inertia [8] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [5] <== called by MiniBatchKMeans.fit [1] _k_init [5] <== called by _init_centroids [5] _k_init [5] ==> returning to _init_centroids [5] _validate_center_shape [5] <== called by _init_centroids [5] _validate_center_shape [5] ==> returning to _init_centroids [5] _init_centroids [5] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [5] <== called by MiniBatchKMeans.fit [1] _labels_inertia [9] <== called by _mini_batch_step [5] _labels_inertia_precompute_dense [9] <== called by _labels_inertia [9] _labels_inertia_precompute_dense [9] ==> returning to _labels_inertia [9] _labels_inertia [9] ==> returning to _mini_batch_step [5] _mini_batch_step [5] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [10] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [10] <== called by _labels_inertia [10] _labels_inertia_precompute_dense [10] ==> returning to _labels_inertia [10] _labels_inertia [10] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [6] <== called by MiniBatchKMeans.fit [1] _k_init [6] <== called by _init_centroids [6] _k_init [6] ==> returning to _init_centroids [6] _validate_center_shape [6] <== called by _init_centroids [6] _validate_center_shape [6] ==> returning to _init_centroids [6] _init_centroids [6] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [6] <== called by MiniBatchKMeans.fit [1] _labels_inertia [11] <== called by _mini_batch_step [6] _labels_inertia_precompute_dense [11] <== called by _labels_inertia [11] _labels_inertia_precompute_dense [11] ==> returning to _labels_inertia [11] _labels_inertia [11] ==> returning to _mini_batch_step [6] _mini_batch_step [6] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [12] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [12] <== called by _labels_inertia [12] _labels_inertia_precompute_dense [12] ==> returning to _labels_inertia [12] _labels_inertia [12] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [7] <== called by MiniBatchKMeans.fit [1] _k_init [7] <== called by _init_centroids [7] _k_init [7] ==> returning to _init_centroids [7] _validate_center_shape [7] <== called by _init_centroids [7] _validate_center_shape [7] ==> returning to _init_centroids [7] _init_centroids [7] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [7] <== called by MiniBatchKMeans.fit [1] _labels_inertia [13] <== called by _mini_batch_step [7] _labels_inertia_precompute_dense [13] <== called by _labels_inertia [13] _labels_inertia_precompute_dense [13] ==> returning to _labels_inertia [13] _labels_inertia [13] ==> returning to _mini_batch_step [7] _mini_batch_step [7] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [14] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [14] <== called by _labels_inertia [14] _labels_inertia_precompute_dense [14] ==> returning to _labels_inertia [14] _labels_inertia [14] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [8] <== called by MiniBatchKMeans.fit [1] _k_init [8] <== called by _init_centroids [8] _k_init [8] ==> returning to _init_centroids [8] _validate_center_shape [8] <== called by _init_centroids [8] _validate_center_shape [8] ==> returning to _init_centroids [8] _init_centroids [8] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [8] <== called by MiniBatchKMeans.fit [1] _labels_inertia [15] <== called by _mini_batch_step [8] _labels_inertia_precompute_dense [15] <== called by _labels_inertia [15] _labels_inertia_precompute_dense [15] ==> returning to _labels_inertia [15] _labels_inertia [15] ==> returning to _mini_batch_step [8] _mini_batch_step [8] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [16] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [16] <== called by _labels_inertia [16] _labels_inertia_precompute_dense [16] ==> returning to _labels_inertia [16] _labels_inertia [16] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [9] <== called by MiniBatchKMeans.fit [1] _k_init [9] <== called by _init_centroids [9] _k_init [9] ==> returning to _init_centroids [9] _validate_center_shape [9] <== called by _init_centroids [9] _validate_center_shape [9] ==> returning to _init_centroids [9] _init_centroids [9] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [9] <== called by MiniBatchKMeans.fit [1] _labels_inertia [17] <== called by _mini_batch_step [9] _labels_inertia_precompute_dense [17] <== called by _labels_inertia [17] _labels_inertia_precompute_dense [17] ==> returning to _labels_inertia [17] _labels_inertia [17] ==> returning to _mini_batch_step [9] _mini_batch_step [9] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [18] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [18] <== called by _labels_inertia [18] _labels_inertia_precompute_dense [18] ==> returning to _labels_inertia [18] _labels_inertia [18] ==> returning to MiniBatchKMeans.fit [1] _init_centroids [10] <== called by MiniBatchKMeans.fit [1] _k_init [10] <== called by _init_centroids [10] _k_init [10] ==> returning to _init_centroids [10] _validate_center_shape [10] <== called by _init_centroids [10] _validate_center_shape [10] ==> returning to _init_centroids [10] _init_centroids [10] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [10] <== called by MiniBatchKMeans.fit [1] _labels_inertia [19] <== called by _mini_batch_step [10] _labels_inertia_precompute_dense [19] <== called by _labels_inertia [19] _labels_inertia_precompute_dense [19] ==> returning to _labels_inertia [19] _labels_inertia [19] ==> returning to _mini_batch_step [10] _mini_batch_step [10] ==> returning to MiniBatchKMeans.fit [1] _labels_inertia [20] <== called by MiniBatchKMeans.fit [1] _labels_inertia_precompute_dense [20] <== called by _labels_inertia [20] _labels_inertia_precompute_dense [20] ==> returning to _labels_inertia [20] _labels_inertia [20] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [11] <== called by MiniBatchKMeans.fit [1] _labels_inertia [21] <== called by _mini_batch_step [11] _labels_inertia_precompute_dense [21] <== called by _labels_inertia [21] _labels_inertia_precompute_dense [21] ==> returning to _labels_inertia [21] _labels_inertia [21] ==> returning to _mini_batch_step [11] _mini_batch_step [11] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_convergence [1] <== called by MiniBatchKMeans.fit [1] _mini_batch_convergence [1] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [12] <== called by MiniBatchKMeans.fit [1] _labels_inertia [22] <== called by _mini_batch_step [12] _labels_inertia_precompute_dense [22] <== called by _labels_inertia [22] _labels_inertia_precompute_dense [22] ==> returning to _labels_inertia [22] _labels_inertia [22] ==> returning to _mini_batch_step [12] _mini_batch_step [12] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_convergence [2] <== called by MiniBatchKMeans.fit [1] _mini_batch_convergence [2] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [13] <== called by MiniBatchKMeans.fit [1] _labels_inertia [23] <== called by _mini_batch_step [13] _labels_inertia_precompute_dense [23] <== called by _labels_inertia [23] _labels_inertia_precompute_dense [23] ==> returning to _labels_inertia [23] _labels_inertia [23] ==> returning to _mini_batch_step [13] _mini_batch_step [13] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_convergence [3] <== called by MiniBatchKMeans.fit [1] _mini_batch_convergence [3] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [14] <== called by MiniBatchKMeans.fit [1] _labels_inertia [24] <== called by _mini_batch_step [14] _labels_inertia_precompute_dense [24] <== called by _labels_inertia [24] _labels_inertia_precompute_dense [24] ==> returning to _labels_inertia [24] _labels_inertia [24] ==> returning to _mini_batch_step [14] _mini_batch_step [14] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_convergence [4] <== called by MiniBatchKMeans.fit [1] _mini_batch_convergence [4] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [15] <== called by MiniBatchKMeans.fit [1] _labels_inertia [25] <== called by _mini_batch_step [15] _labels_inertia_precompute_dense [25] <== called by _labels_inertia [25] _labels_inertia_precompute_dense [25] ==> returning to _labels_inertia [25] _labels_inertia [25] ==> returning to _mini_batch_step [15] _mini_batch_step [15] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_convergence [5] <== called by MiniBatchKMeans.fit [1] _mini_batch_convergence [5] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [16] <== called by MiniBatchKMeans.fit [1] _labels_inertia [26] <== called by _mini_batch_step [16] _labels_inertia_precompute_dense [26] <== called by _labels_inertia [26] _labels_inertia_precompute_dense [26] ==> returning to _labels_inertia [26] _labels_inertia [26] ==> returning to _mini_batch_step [16] _mini_batch_step [16] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_convergence [6] <== called by MiniBatchKMeans.fit [1] _mini_batch_convergence [6] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_step [17] <== called by MiniBatchKMeans.fit [1] _labels_inertia [27] <== called by _mini_batch_step [17] _labels_inertia_precompute_dense [27] <== called by _labels_inertia [27] _labels_inertia_precompute_dense [27] ==> returning to _labels_inertia [27] _labels_inertia [27] ==> returning to _mini_batch_step [17] _mini_batch_step [17] ==> returning to MiniBatchKMeans.fit [1] _mini_batch_convergence [7] <== called by MiniBatchKMeans.fit [1] _mini_batch_convergence [7] ==> returning to MiniBatchKMeans.fit [1] MiniBatchKMeans._labels_inertia_minibatch [1] <== called by MiniBatchKMeans.fit [1] _labels_inertia [28] <== called by <listcomp> <== MiniBatchKMeans._labels_inertia_minibatch [1] _labels_inertia_precompute_dense [28] <== called by _labels_inertia [28] _labels_inertia_precompute_dense [28] ==> returning to _labels_inertia [28] _labels_inertia [28] ==> returning to <listcomp> ==> MiniBatchKMeans._labels_inertia_minibatch [1] MiniBatchKMeans._labels_inertia_minibatch [1] ==> returning to MiniBatchKMeans.fit [1] MiniBatchKMeans.fit [1] ==> returning to <module> """ pass ############################################################################## import doctest # For unittest integration def load_tests(loader, tests, ignore): try: import sklearn except ImportError: pass else: tests.addTests(doctest.DocTestSuite()) return tests if __name__ == '__main__': doctest.testmod()
65.620072
110
0.648787
2,188
18,308
4.975777
0.0617
0.205383
0.160558
0.144025
0.816938
0.512722
0.417654
0.220263
0.099017
0
0
0.044454
0.238202
18,308
278
111
65.856115
0.736144
0.904523
0
0.133333
0
0
0.051351
0
0
0
0
0
0
1
0.133333
false
0.133333
0.266667
0
0.466667
0
0
0
0
null
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
992b67964d115450973d0beb8f830f9c4df3d9ec
375
py
Python
mlflow/tracking/default_experiment/databricks_notebook_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
null
null
null
mlflow/tracking/default_experiment/databricks_notebook_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
null
null
null
mlflow/tracking/default_experiment/databricks_notebook_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
2
2019-05-11T08:13:38.000Z
2019-05-14T13:33:54.000Z
from mlflow.tracking.default_experiment.abstract_context import DefaultExperimentProvider from mlflow.utils import databricks_utils class DatabricksNotebookExperimentProvider(DefaultExperimentProvider): def in_context(self): return databricks_utils.is_in_databricks_notebook() def get_experiment_id(self): return databricks_utils.get_notebook_id()
34.090909
89
0.829333
40
375
7.45
0.525
0.151007
0.134228
0.167785
0
0
0
0
0
0
0
0
0.12
375
10
90
37.5
0.90303
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.285714
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
992e5de99f3af964cf38d00958f241e6012efce3
227
py
Python
src/gsf/dynamic_system/future_event_list/__init__.py
RolandoAndrade/general-simulation-framework
2fe2a981d365a7f482f6a7d4797a5f711b2dd502
[ "MIT" ]
1
2021-06-02T12:37:56.000Z
2021-06-02T12:37:56.000Z
src/gsf/dynamic_system/future_event_list/__init__.py
RolandoAndrade/general-simulation-framework
2fe2a981d365a7f482f6a7d4797a5f711b2dd502
[ "MIT" ]
null
null
null
src/gsf/dynamic_system/future_event_list/__init__.py
RolandoAndrade/general-simulation-framework
2fe2a981d365a7f482f6a7d4797a5f711b2dd502
[ "MIT" ]
null
null
null
"""Future Event List Module ============================= This module includes the functions and classes to work with a FEL simulation paradigm. """ from .scheduler import Scheduler from .scheduled_model import ScheduledModel
28.375
86
0.704846
27
227
5.888889
0.851852
0
0
0
0
0
0
0
0
0
0
0
0.127753
227
7
87
32.428571
0.80303
0.621145
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9958bca78e3ef97daf4970c0e0e1608cb4d253f6
177
py
Python
scripts/quest/q32001s.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
9
2021-04-26T11:59:29.000Z
2021-12-20T13:15:27.000Z
scripts/quest/q32001s.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/quest/q32001s.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
6
2021-07-14T06:32:05.000Z
2022-02-06T02:32:56.000Z
# Fury Incarnate medal = 1142554 if sm.canHold(medal): sm.chatScript("You obtained the <Fury Incarnate> medal.") sm.startQuest(parentID) sm.completeQuest(parentID)
22.125
61
0.723164
22
177
5.818182
0.636364
0.203125
0.28125
0
0
0
0
0
0
0
0
0.047297
0.163842
177
8
62
22.125
0.817568
0.079096
0
0
0
0
0.246914
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
996c858beab7725014af5d24195f99fb8c8bcde7
276
py
Python
cloud_scanner_generic/config/elastic_search_config.py
Microsoft/cloud-scanner-generic
ef3cc01d64fd1857245049ce4ec23f1856eee46f
[ "MIT" ]
4
2019-06-22T14:33:43.000Z
2021-04-20T16:18:28.000Z
cloud_scanner_generic/config/elastic_search_config.py
microsoft/cloud-scanner-generic
ef3cc01d64fd1857245049ce4ec23f1856eee46f
[ "MIT" ]
null
null
null
cloud_scanner_generic/config/elastic_search_config.py
microsoft/cloud-scanner-generic
ef3cc01d64fd1857245049ce4ec23f1856eee46f
[ "MIT" ]
5
2019-11-03T22:54:49.000Z
2020-08-05T14:39:06.000Z
from cloud_scanner.config import Config class ElasticSearchConfig(Config): @property def access_url(self): return self.get_property("ELASTIC_SEARCH_URL") @property def access_key(self): return self.get_property("ELASTIC_SEARCH_ACCESS_KEY")
21.230769
61
0.731884
34
276
5.647059
0.5
0.114583
0.177083
0.177083
0.395833
0.395833
0.395833
0
0
0
0
0
0.188406
276
12
62
23
0.857143
0
0
0.25
0
0
0.155797
0.09058
0
0
0
0
0
1
0.25
false
0
0.125
0.25
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
99763b9d5fcd97833870080308d88b6b60449b36
200
py
Python
schedule/filters.py
audreyakwenye/gardner_schedule
3705a0214273f29379117f2ed238d9977b4fecc1
[ "MIT" ]
null
null
null
schedule/filters.py
audreyakwenye/gardner_schedule
3705a0214273f29379117f2ed238d9977b4fecc1
[ "MIT" ]
null
null
null
schedule/filters.py
audreyakwenye/gardner_schedule
3705a0214273f29379117f2ed238d9977b4fecc1
[ "MIT" ]
null
null
null
import django_filters from .models import * class ClassFilter(django_filters.FilterSet): class Meta: model = class_schedule fields = ['classgroup', 'teacher', 'subject', 'period']
28.571429
63
0.695
21
200
6.47619
0.761905
0.191176
0
0
0
0
0
0
0
0
0
0
0.195
200
7
63
28.571429
0.844721
0
0
0
0
0
0.149254
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
99ace84cfd6d8114ae758299dc8e4035d54d8953
44
py
Python
pagarme/resources/routes/balance_routes.py
rbbonfim/pagarme-python
a7079fbdd01bd855ea09f89847d6374b499be76b
[ "MIT" ]
79
2015-08-25T14:43:34.000Z
2021-12-01T18:16:54.000Z
pagarme/resources/routes/balance_routes.py
rbbonfim/pagarme-python
a7079fbdd01bd855ea09f89847d6374b499be76b
[ "MIT" ]
103
2015-09-15T15:24:14.000Z
2021-12-20T22:52:02.000Z
pagarme/resources/routes/balance_routes.py
rbbonfim/pagarme-python
a7079fbdd01bd855ea09f89847d6374b499be76b
[ "MIT" ]
53
2015-09-11T12:06:26.000Z
2022-02-23T02:59:57.000Z
BASE_URL = 'https://api.pagar.me/1/balance'
22
43
0.704545
8
44
3.75
1
0
0
0
0
0
0
0
0
0
0
0.02439
0.068182
44
1
44
44
0.707317
0
0
0
0
0
0.681818
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
511618a129e2e0c398a829dbbec6775064061aa7
474
py
Python
sysmanager/modules/comms/dev/dev.py
yurkis/whitebox
b40e377ed9fc29d5f0c9c96677c190b520c9d188
[ "MIT" ]
null
null
null
sysmanager/modules/comms/dev/dev.py
yurkis/whitebox
b40e377ed9fc29d5f0c9c96677c190b520c9d188
[ "MIT" ]
null
null
null
sysmanager/modules/comms/dev/dev.py
yurkis/whitebox
b40e377ed9fc29d5f0c9c96677c190b520c9d188
[ "MIT" ]
null
null
null
import subprocess from ...result import * ################################################################################ def do_dev_update(args): #print("\n\nUpdating sysmanager...") ##out_sysman=subprocess.getoutput("svn up /usr/local/bin/pwb") #print (out_sysman) #print ("\n\nUpdating html...") ##out_html=subprocess.getoutput("svn up /usr/local/www/pwb/html") out_html=subprocess.getoutput("cd /root/whitebox && git pull") return (Result(out_html))
31.6
80
0.584388
55
474
4.909091
0.545455
0.211111
0.111111
0.177778
0.388889
0.237037
0
0
0
0
0
0
0.101266
474
14
81
33.857143
0.633803
0.434599
0
0
0
0
0.161111
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
5ab2b9e82162fd122e76bf4bb403dbb5f52ffd7b
1,124
py
Python
delira/training/callbacks/__init__.py
muizzk/delira
eb7fdfedd6bbeffa20ffad1ef6c918a4cd9abfbf
[ "BSD-2-Clause" ]
1
2019-10-03T21:00:20.000Z
2019-10-03T21:00:20.000Z
delira/training/callbacks/__init__.py
muizzk/delira
eb7fdfedd6bbeffa20ffad1ef6c918a4cd9abfbf
[ "BSD-2-Clause" ]
null
null
null
delira/training/callbacks/__init__.py
muizzk/delira
eb7fdfedd6bbeffa20ffad1ef6c918a4cd9abfbf
[ "BSD-2-Clause" ]
null
null
null
from delira import get_backends from delira.training.callbacks.logging_callback import DefaultLoggingCallback from delira.training.callbacks.abstract_callback import AbstractCallback from delira.training.callbacks.early_stopping import EarlyStopping if "TORCH" in get_backends(): from delira.training.callbacks.pytorch_schedulers import \ DefaultPyTorchSchedulerCallback from delira.training.callbacks.pytorch_schedulers import \ CosineAnnealingLRCallback as CosineAnnealingLRCallbackPyTorch from delira.training.callbacks.pytorch_schedulers import \ ExponentialLRCallback as ExponentialLRCallbackPyTorch from delira.training.callbacks.pytorch_schedulers import \ LambdaLRCallback as LambdaLRCallbackPyTorch from delira.training.callbacks.pytorch_schedulers import \ MultiStepLRCallback as MultiStepLRCallbackPyTorch from delira.training.callbacks.pytorch_schedulers import \ ReduceLROnPlateauCallback as ReduceLROnPlateauCallbackPyTorch from delira.training.callbacks.pytorch_schedulers import StepLRCallback \ as StepLRCallbackPyTorch
48.869565
77
0.825623
102
1,124
8.980392
0.333333
0.120087
0.196507
0.29476
0.43559
0.43559
0.382096
0
0
0
0
0
0.137011
1,124
22
78
51.090909
0.94433
0
0
0.315789
0
0
0.004448
0
0
0
0
0
0
1
0
true
0
0.578947
0
0.578947
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
5ad003075fe821a6aed3fac82b537617a3d1631c
684
py
Python
number/maskingpersonalinformation.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
number/maskingpersonalinformation.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
number/maskingpersonalinformation.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def convert_phone(self, phone): phone = phone.strip().replace(' ', '').replace('(', '').replace(')', '').replace('-', '').replace('+', '') if len(phone) == 10: return "***-***-" + phone[-4:] else: return "+" + '*' * (len(phone) - 10) + "-***-***-" + phone[-4:] def convert_email(self, email): email = email.lower() first_name, host = email.split('@') return first_name[0] + '*****' + first_name[-1] + '@' + host def maskPII(self, S): """ :type S: str :rtype: str """ return self.convert_email(S) if '@' in S else self.convert_phone(S)
36
114
0.47076
73
684
4.315068
0.39726
0.177778
0.2
0.177778
0
0
0
0
0
0
0
0.016461
0.289474
684
19
115
36
0.631687
0.035088
0
0
0
0
0.050874
0
0
0
0
0
0
1
0.230769
false
0
0
0
0.615385
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
5af8bca5e81da5df4903db8620f08b2212fe1eed
166
py
Python
Python/8 kyu/Sort and Star/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
1
2020-01-09T21:47:56.000Z
2020-01-09T21:47:56.000Z
Python/8 kyu/Sort and Star/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
1
2020-01-20T12:39:03.000Z
2020-01-20T12:39:03.000Z
Python/8 kyu/Sort and Star/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
null
null
null
# [8 kyu] Double Char # # Author: Hsins # Date: 2019/11/28 def two_sort(array): word = sorted(array)[0] return "".join(c + '***' for c in word)[0:-3]
16.6
49
0.554217
27
166
3.37037
0.851852
0
0
0
0
0
0
0
0
0
0
0.096
0.246988
166
9
50
18.444444
0.632
0.337349
0
0
0
0
0.028571
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
85032bf99824c52069db91942c2c9f73c59eae47
49
py
Python
motifx/__init__.py
EthanVn/MotifX
4258ac72823bdc335f4f3d01fd03c8dc495e14ec
[ "MIT" ]
1
2021-05-04T17:43:47.000Z
2021-05-04T17:43:47.000Z
motifx/__init__.py
EthanVn/MotifX
4258ac72823bdc335f4f3d01fd03c8dc495e14ec
[ "MIT" ]
null
null
null
motifx/__init__.py
EthanVn/MotifX
4258ac72823bdc335f4f3d01fd03c8dc495e14ec
[ "MIT" ]
null
null
null
from .motifx import MotifX __all__ = ["MotifX"]
12.25
26
0.714286
6
49
5.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.163265
49
3
27
16.333333
0.756098
0
0
0
0
0
0.122449
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
850e86a611854cc5b40ce920ce95e0ea614fc00c
4,603
py
Python
src/som/primitives/bc/integer_primitives.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
22
2015-10-29T05:11:06.000Z
2022-03-01T11:18:45.000Z
src/som/primitives/bc/integer_primitives.py
smarr/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
16
2021-03-07T22:09:33.000Z
2021-08-24T12:36:15.000Z
src/som/primitives/bc/integer_primitives.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
5
2015-01-02T03:51:29.000Z
2020-10-02T07:05:46.000Z
from rlib import jit from som.primitives.integer_primitives import IntegerPrimitivesBase as _Base from som.vmobjects.double import Double from som.vmobjects.integer import Integer from som.vmobjects.primitive import Primitive, TernaryPrimitive def get_printable_location_up(block_method): from som.vmobjects.method_bc import BcAbstractMethod assert isinstance(block_method, BcAbstractMethod) return "to:do: " + block_method.merge_point_string() jitdriver_int = jit.JitDriver( name="to:do: with int", greens=["block_method"], reds="auto", # virtualizables=['frame'], is_recursive=True, get_printable_location=get_printable_location_up, ) jitdriver_double = jit.JitDriver( name="to:do: with double", greens=["block_method"], reds="auto", # virtualizables=['frame'], is_recursive=True, get_printable_location=get_printable_location_up, ) def get_printable_location_down(block_method): from som.vmobjects.method_bc import BcAbstractMethod assert isinstance(block_method, BcAbstractMethod) return "downToto:do: " + block_method.merge_point_string() jitdriver_int_down = jit.JitDriver( name="downTo:do: with int", greens=["block_method"], reds="auto", # virtualizables=['frame'], is_recursive=True, get_printable_location=get_printable_location_down, ) jitdriver_double_down = jit.JitDriver( name="downTo:do: with double", greens=["block_method"], reds="auto", # virtualizables=['frame'], is_recursive=True, get_printable_location=get_printable_location_down, ) def _to_do_int(i, by_increment, top, block, block_method): assert isinstance(i, int) assert isinstance(top, int) while i <= top: jitdriver_int.jit_merge_point(block_method=block_method) block_method.invoke_2(block, Integer(i)) i += by_increment def _to_do_double(i, by_increment, top, block, block_method): assert isinstance(i, int) assert isinstance(top, float) while i <= top: jitdriver_double.jit_merge_point(block_method=block_method) block_method.invoke_2(block, Integer(i)) i += by_increment def _to_do(rcvr, limit, block): block_method = block.get_method() i = rcvr.get_embedded_integer() if isinstance(limit, Double): _to_do_double(i, 1, limit.get_embedded_double(), block, block_method) else: _to_do_int(i, 1, limit.get_embedded_integer(), block, block_method) return rcvr def _to_by_do(_ivkbl, stack, stack_ptr): block = stack[stack_ptr] stack[stack_ptr] = None stack_ptr -= 1 by_increment = stack[stack_ptr] stack[stack_ptr] = None stack_ptr -= 1 limit = stack[stack_ptr] stack[stack_ptr] = None stack_ptr -= 1 block_method = block.get_method() self = stack[stack_ptr] i = self.get_embedded_integer() if isinstance(limit, Double): _to_do_double( i, by_increment.get_embedded_integer(), limit.get_embedded_double(), block, block_method, ) else: _to_do_int( i, by_increment.get_embedded_integer(), limit.get_embedded_integer(), block, block_method, ) return stack_ptr def _down_to_do_int(i, by_increment, bottom, block, block_method): assert isinstance(i, int) assert isinstance(bottom, int) while i >= bottom: jitdriver_int_down.jit_merge_point(block_method=block_method) block_method.invoke_2(block, Integer(i)) i -= by_increment def _down_to_do_double(i, by_increment, bottom, block, block_method): assert isinstance(i, int) assert isinstance(bottom, float) while i >= bottom: jitdriver_double_down.jit_merge_point(block_method=block_method) block_method.invoke_2(block, Integer(i)) i -= by_increment def _down_to_do(rcvr, limit, block): block_method = block.get_method() i = rcvr.get_embedded_integer() if isinstance(limit, Double): _down_to_do_double(i, 1, limit.get_embedded_double(), block, block_method) else: _down_to_do_int(i, 1, limit.get_embedded_integer(), block, block_method) return rcvr class IntegerPrimitives(_Base): def install_primitives(self): _Base.install_primitives(self) self._install_instance_primitive(TernaryPrimitive("to:do:", _to_do)) self._install_instance_primitive(TernaryPrimitive("downTo:do:", _down_to_do)) self._install_instance_primitive(Primitive("to:by:do:", _to_by_do))
27.236686
85
0.695633
594
4,603
5.038721
0.117845
0.128633
0.06415
0.058804
0.796191
0.763782
0.721684
0.70431
0.667224
0.642499
0
0.003004
0.204432
4,603
168
86
27.39881
0.814309
0.022377
0
0.520661
0
0
0.040712
0
0
0
0
0
0.082645
1
0.082645
false
0
0.057851
0
0.190083
0.049587
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
85192445943acfd7677663d7caa86a89df5c4394
118
py
Python
braindecode/visualization/__init__.py
dcwil/braindecode
e21d380bf3062306843af1eb45179bffe2c135c4
[ "BSD-3-Clause" ]
null
null
null
braindecode/visualization/__init__.py
dcwil/braindecode
e21d380bf3062306843af1eb45179bffe2c135c4
[ "BSD-3-Clause" ]
null
null
null
braindecode/visualization/__init__.py
dcwil/braindecode
e21d380bf3062306843af1eb45179bffe2c135c4
[ "BSD-3-Clause" ]
null
null
null
""" Functions for visualisations, especially of the ConvNets. """ from .gradients import compute_amplitude_gradients
19.666667
57
0.805085
13
118
7.153846
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.118644
118
5
58
23.6
0.894231
0.483051
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
851af753634927083653ec4e2eff1e6c29f5cb08
361
py
Python
src/compas/interop/shapeop/__init__.py
gonzalocasas/compas
2fabc7e5c966a02d823fa453564151e1a1e7e3c6
[ "MIT" ]
null
null
null
src/compas/interop/shapeop/__init__.py
gonzalocasas/compas
2fabc7e5c966a02d823fa453564151e1a1e7e3c6
[ "MIT" ]
null
null
null
src/compas/interop/shapeop/__init__.py
gonzalocasas/compas
2fabc7e5c966a02d823fa453564151e1a1e7e3c6
[ "MIT" ]
null
null
null
from __future__ import print_function __all__ = [] try: from compas.interop.shapeop._shapeop import * from compas.interop.shapeop._shapeop import __all__ except ImportError: try: from compas.interop.shapeop._shapeop_windows import * from compas.interop.shapeop._shapeop_windows import __all__ except ImportError: raise
25.785714
67
0.742382
41
361
5.97561
0.341463
0.163265
0.277551
0.391837
0.685714
0.685714
0.359184
0
0
0
0
0
0.199446
361
13
68
27.769231
0.847751
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0
false
0
0.636364
0
0.636364
0.090909
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
852399b6290e742ecf3486c56af1644d5ed6f734
102
py
Python
notebooks/_solutions/case-argo-sea-floats4.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
58
2020-10-09T10:10:59.000Z
2022-03-07T14:58:07.000Z
notebooks/_solutions/13-xarray4.py
amitkb3/DS-python-geospatial
5f156ebff67e06d59b2a7ef446d1fed746ce0650
[ "BSD-3-Clause" ]
24
2020-09-30T19:57:14.000Z
2021-10-05T07:21:09.000Z
notebooks/_solutions/13-xarray4.py
amitkb3/DS-python-geospatial
5f156ebff67e06d59b2a7ef446d1fed746ce0650
[ "BSD-3-Clause" ]
19
2020-10-05T09:32:18.000Z
2022-03-20T00:09:14.000Z
argo["buoyancy"].plot(yincrease=False) # xarray decides the plot type when no specific method is used
102
102
0.784314
16
102
5
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.127451
102
1
102
102
0.898876
0.588235
0
0
0
0
0.195122
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
51cf265da2fcc9cedede6c289552f671449e4e13
65
py
Python
helloworld.py
zsdyysnh/Hello-Git
dcd85a04b0f94db12fb941d8d55ab7896022974d
[ "Apache-2.0" ]
null
null
null
helloworld.py
zsdyysnh/Hello-Git
dcd85a04b0f94db12fb941d8d55ab7896022974d
[ "Apache-2.0" ]
null
null
null
helloworld.py
zsdyysnh/Hello-Git
dcd85a04b0f94db12fb941d8d55ab7896022974d
[ "Apache-2.0" ]
null
null
null
print("nihao,shijie") print("lalalalal") print("ninniiiinnij")
10.833333
21
0.723077
7
65
6.714286
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.076923
65
5
22
13
0.783333
0
0
0
0
0
0.507692
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
a402fe87e7c9c68f3920204ca775ac399050778f
213
py
Python
mtp_api/apps/account/app.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/account/app.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/account/app.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
from django.apps import AppConfig as DjangoAppConfig from django.utils.translation import gettext_lazy as _ class AppConfig(DjangoAppConfig): name = 'account' verbose_name = _('Bank account management')
26.625
54
0.784038
25
213
6.52
0.68
0.122699
0
0
0
0
0
0
0
0
0
0
0.150235
213
7
55
30.428571
0.900552
0
0
0
0
0
0.140845
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
cfafe76771688712c04b5c86eecb72ecef7342ed
61
py
Python
apps/photoalbum/__init__.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/photoalbum/__init__.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/photoalbum/__init__.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
default_app_config = "apps.photoalbum.apps.PhotoalbumConfig"
30.5
60
0.852459
7
61
7.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.04918
61
1
61
61
0.862069
0
0
0
0
0
0.606557
0.606557
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
32021d7c94dab98d0338825795c135f57909e56d
1,391
py
Python
particle_environments/mager/scenarios/ergo_transport.py
rallen10/ergo_particle_gym
5bb8073d880ab1da60ee333d892ea8a4720f3396
[ "FSFULLR", "FSFUL" ]
null
null
null
particle_environments/mager/scenarios/ergo_transport.py
rallen10/ergo_particle_gym
5bb8073d880ab1da60ee333d892ea8a4720f3396
[ "FSFULLR", "FSFUL" ]
null
null
null
particle_environments/mager/scenarios/ergo_transport.py
rallen10/ergo_particle_gym
5bb8073d880ab1da60ee333d892ea8a4720f3396
[ "FSFULLR", "FSFUL" ]
3
2019-12-08T08:36:23.000Z
2021-11-07T17:35:53.000Z
"""Module for the Risk-Exploiting Cargo Transport Scenario - Network of agents are to be used to transport packages from a known origin terminal to a known destination terminal - Cargo packages appear at origin terminal periodically and/or stochastically. - Any agent my pick up package by visiting origin terminal when package has appeared. That same agent must then deliver it to the destination, no hand offs are possible - Rewards are recieved per package delivered to destination terminal - Hazardous landmarks and/or adversarial agents are present in the environment that can cause good agents to fail which comes with an associated cost. - Failure of the package carrying agent (i.e. loss of package) is associated with very large cost, significantly greater than normal agent failure - Landmarks can also have a risk associated with them, i.e. probability of causing a nearby agent to fail. - Agents actions are their movements. Collection of package happens automatically if agent visits origin terminal when package is present - General case: - Location of landmarks and adversaries are not globally known and can only be locally sensed locations and unknown nature (i.e. risk, - Package carry has reduced maneuvering capabilities and speed """ import numpy as np from multiagent.core import World, Agent, Landmark from multiagent.scenario import BaseScenario
49.678571
97
0.800863
209
1,391
5.330144
0.578947
0.050269
0.032316
0.044883
0
0
0
0
0
0
0
0
0.168224
1,391
27
98
51.518519
0.962835
0.909418
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
32073191bc387f65f0003a3ccd8df8a5521368ea
180
py
Python
detectuser/email.py
yangjiada/detect_user
ee747abfda55818a8830d63eeafdd5491632a885
[ "Apache-2.0" ]
null
null
null
detectuser/email.py
yangjiada/detect_user
ee747abfda55818a8830d63eeafdd5491632a885
[ "Apache-2.0" ]
null
null
null
detectuser/email.py
yangjiada/detect_user
ee747abfda55818a8830d63eeafdd5491632a885
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2016-12-22 10:42:23 # @Author : Jan Yang # @Software : Sublime Text class Email: def __init__(self): pass
16.363636
32
0.577778
26
180
3.846154
1
0
0
0
0
0
0
0
0
0
0
0.111111
0.25
180
10
33
18
0.62963
0.655556
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
321b49ade78a7c64a89bf2cacb65237cbe1df084
118
py
Python
dask_ml/metrics/__init__.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
1
2020-12-01T13:20:05.000Z
2020-12-01T13:20:05.000Z
dask_ml/metrics/__init__.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
dask_ml/metrics/__init__.py
lesteve/dask-ml
0aca19c545be5c27bedcfbab5554b4ba39a6d754
[ "BSD-3-Clause" ]
null
null
null
from .pairwise import ( # noqa pairwise_distances, pairwise_distances_argmin_min, euclidean_distances, )
19.666667
34
0.745763
12
118
6.916667
0.666667
0.409639
0
0
0
0
0
0
0
0
0
0
0.194915
118
5
35
23.6
0.873684
0.033898
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5c6053714f4860e7e281ee4b647c04fb5dab3306
59
py
Python
release_monitor/__init__.py
msrb/fabric8-analytics-release-monitor
b7f0d15ba438164056aaad7bcb11f1edd07da11c
[ "Apache-2.0" ]
null
null
null
release_monitor/__init__.py
msrb/fabric8-analytics-release-monitor
b7f0d15ba438164056aaad7bcb11f1edd07da11c
[ "Apache-2.0" ]
71
2018-10-09T06:30:58.000Z
2020-07-27T06:37:17.000Z
release_monitor/__init__.py
msrb/fabric8-analytics-release-monitor
b7f0d15ba438164056aaad7bcb11f1edd07da11c
[ "Apache-2.0" ]
11
2018-09-25T12:47:44.000Z
2020-07-27T06:21:31.000Z
"""Module for the release monitor of upstream releases."""
29.5
58
0.745763
8
59
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.135593
59
1
59
59
0.862745
0.881356
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5c6201fd0d13b8a22c72b4135578e92d1e96e402
29
py
Python
services/league_rankings/__init__.py
GodOfOwls/Lightshield
043b18a50615ce802be5525cf8fe7bc5690d7cf6
[ "Apache-2.0" ]
10
2020-06-26T02:29:16.000Z
2022-02-11T13:58:01.000Z
services/league_rankings/__init__.py
GodOfOwls/Lightshield
043b18a50615ce802be5525cf8fe7bc5690d7cf6
[ "Apache-2.0" ]
23
2020-06-24T16:32:28.000Z
2022-03-02T13:37:19.000Z
services/league_rankings/__init__.py
GodOfOwls/Lightshield
043b18a50615ce802be5525cf8fe7bc5690d7cf6
[ "Apache-2.0" ]
4
2020-07-16T19:35:54.000Z
2021-04-10T01:51:33.000Z
"""League Updater Module."""
14.5
28
0.655172
3
29
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
1
29
29
0.730769
0.758621
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5c75864e59c4488820dbb2d3918e34e49e5fcc20
6,500
py
Python
advent2017_day5.py
coandco/advent2017
1613b0bc4a5c857cd89c739436a7318203eebee5
[ "MIT" ]
null
null
null
advent2017_day5.py
coandco/advent2017
1613b0bc4a5c857cd89c739436a7318203eebee5
[ "MIT" ]
null
null
null
advent2017_day5.py
coandco/advent2017
1613b0bc4a5c857cd89c739436a7318203eebee5
[ "MIT" ]
null
null
null
INPUT= """2 0 0 -2 0 1 -2 -1 -6 2 -1 2 0 2 -13 0 -2 -15 -15 -3 -10 -11 1 -5 -20 -21 -14 -21 -4 -9 -29 2 -10 -5 -33 -33 -9 0 2 -24 0 -26 -24 -38 -28 -42 -14 -42 2 -2 -48 -48 -17 -19 -26 -39 0 -15 -42 -3 -19 -19 -7 -1 -11 -5 -17 -46 -15 -43 -22 -31 -60 -59 -71 -58 -39 -66 -74 -11 -18 -68 1 -70 -79 -18 -56 -17 0 -52 -79 -86 -90 -74 -89 -20 -30 -65 -2 -47 -42 -33 -35 -61 -4 -101 -38 -8 -26 -37 -56 -30 -36 -55 -87 -85 -58 -22 -9 -81 -119 -94 -81 -83 -24 -105 -21 -69 -11 -7 -114 -60 -74 -19 -126 -66 -106 -5 -112 0 -58 -18 -122 -50 -72 -83 -15 -93 -60 -17 -37 -55 -119 -118 -12 -101 -65 -35 -122 -149 -97 -140 -62 -101 -85 -23 -43 -141 -158 -37 -103 -142 1 -112 -55 -139 -90 -5 -75 -73 -171 -4 -39 -4 -135 -126 -40 -74 -161 -125 -174 -90 -129 -126 -166 -106 -16 -51 -54 -135 -37 -21 -103 -73 -64 -59 -88 -153 -196 -123 -98 -36 -193 -164 -111 -81 -49 -87 -91 -191 -219 -103 -217 -107 -87 -82 -23 -157 -56 -20 -149 -133 -53 -37 -199 -85 -133 -12 -228 -15 -217 -106 -52 -179 -118 -54 -70 -99 -160 -24 -71 -55 -7 -105 -174 -187 -226 -210 -55 -130 -137 -255 -259 -117 -10 -162 -61 -19 -54 -225 -23 -84 -183 -262 -44 -215 -268 -201 -89 -3 -241 -277 -8 -177 -31 -269 -35 -132 -175 -253 -85 -286 -265 -292 -196 -132 -212 -131 -117 -196 -245 -294 -32 -20 -184 -246 -171 -64 -220 -3 -179 -186 -51 -276 -203 -191 -205 -141 -304 -186 -273 -299 -17 -46 -254 -126 -268 -163 -69 -326 -192 -279 -293 -220 -20 -137 -330 -8 -53 -49 2 -149 -181 -298 -297 -66 -136 -166 -146 -28 -146 -226 -270 -349 -216 -348 -184 -298 -348 -323 -244 -207 -22 -172 -359 -188 -1 -278 -76 -216 -343 -29 -37 -257 -357 -226 -19 -246 -76 -105 -312 -219 -268 0 -230 -379 -357 -69 -1 -30 -321 -212 -262 -297 -86 -102 -390 -384 -98 -294 -359 -326 -58 -296 -104 -309 -244 -308 -116 -148 -134 -307 -307 -207 -391 -312 -209 -334 -225 -193 -345 -224 -299 -110 -414 -252 -302 -142 -239 -376 -54 -227 -126 -154 -263 -18 -387 -214 -129 -163 -151 -325 -401 -382 -329 -288 -283 -376 -211 -221 -448 -292 -187 -76 -84 -342 -162 -251 -110 -66 -349 -435 -380 -82 -281 -29 -61 -402 -287 -118 -428 -429 -403 -324 -391 -203 -374 -397 -352 -462 -440 -89 -209 -133 -436 -187 -142 -299 -402 -210 -217 -50 -456 -177 -335 -204 -338 -146 -82 -379 -332 -148 -370 -188 -42 -351 -219 -89 -129 -388 -42 -338 -169 -104 -508 -43 -432 -99 -484 2 -461 -469 -151 -279 -309 -121 -306 -210 -302 -100 -415 -307 2 -111 -432 -457 -299 -95 -327 -508 -327 -211 -319 -83 -340 -474 -160 -494 -351 -177 -514 -198 -177 -45 -364 -232 -432 -137 -467 -11 -253 -237 -367 -42 -442 -14 -323 -489 -466 -389 -362 -195 -110 -170 -394 -234 -296 -296 -469 -275 -2 -413 -149 -477 -543 -435 -255 -259 -152 -73 -47 -72 -252 -499 -305 -169 -406 -280 -287 -43 -20 -242 -271 -336 -500 -341 -354 -559 -364 -126 -173 -444 -555 -532 -532 -369 -468 -315 -469 -506 -151 -202 -459 -139 -434 -383 -353 -13 -272 -517 -629 -573 -502 -337 -454 -376 -288 -430 -503 -482 -327 -418 -623 -576 -412 -416 -457 -84 -251 -466 -520 -262 -642 -329 -308 -145 -391 -189 -226 -48 -167 -626 -325 -288 -432 -615 -149 -414 -387 -622 -260 -200 -483 -531 -22 -82 -308 -593 -271 -134 -431 -190 -460 -434 -558 -166 -136 -404 -10 -225 -397 -375 -371 -654 -374 -137 -659 -413 -117 -602 -585 -601 -451 -171 -296 -437 -505 -675 -153 -286 -28 -515 -221 -124 -662 -516 -119 -390 -78 -372 -490 -403 -341 -623 -264 -672 -94 -238 -250 -382 -526 -360 -170 -109 -228 -226 -70 -519 -481 -174 -471 -9 -497 -488 -337 -729 -72 -489 -717 -426 -159 -436 -600 -84 -1 -742 -258 -346 -205 -427 -479 -243 -358 -90 -482 -471 -234 -131 -108 -670 -740 -748 -427 -563 -691 -354 -427 -755 -708 -389 -741 -125 -723 -274 -464 -223 -497 -182 -167 -83 -387 -464 -195 -131 -161 -213 -671 -491 -66 -138 -121 -498 -408 -429 -643 -803 -118 -561 -217 -282 -400 -396 -434 -501 -134 -409 -162 -696 -14 -269 -663 -531 -620 -208 -71 -511 -421 -371 -797 -454 -273 -167 -261 -618 -769 -738 -71 -239 -117 -204 -149 -820 -222 -337 -383 -181 -433 -765 -367 -286 -152 -59 -673 -333 -238 -121 -16 -614 -630 -196 -306 -703 -363 -296 -366 -515 -673 -90 -421 -474 -794 -522 -842 -185 -732 -642 -830 -19 -735 -153 -814 -654 -550 -175 -626 -148 -661 -876 -601 -822 -692 -784 -761 -738 -144 -672 -16 -572 -484 -851 -849 -41 -59 -700 -586 -323 -504 -156 -755 -408 -10 -228 -116 -174 -860 -837 -796 -392 -380 -403 -886 -360 -200 -38 -544 -448 -281 -218 -132 -571 -650 -666 -332 -130 -618 -306 -272 -95 -110 -804 -25 -61 -114 -369 -675 -58 -341 -543 -477 -936 -617 -684 -803 -40 -285 -919 -72 -685 -318 -107 -210 -926 -600 -130 -707 -355 -221 -951 -687 -599 -745 -889 -10 -188 -687 -191 -789 -44 -774 -53 -738 -889 -332 -575 -838 -975 -224 -720 -910 -478 -35 -740 -549 -911 -624 -596 -865 -485 -476 -348 -664 -674 -597 -839 -698 -746 -527 -95 -623 -662 -795 -287 -969 -21 -730 -191 -866""" jump_list = [int(x) for x in INPUT.split("\n")] current_index = 0 steps_taken = 0 while 0 <= current_index < len(jump_list): current_jump = jump_list[current_index] jump_list[current_index] += 1 current_index += current_jump steps_taken += 1 print("V1 Final index: %d, steps taken: %d" % (current_index, steps_taken)) jump_list = [int(x) for x in INPUT.split("\n")] current_index = 0 steps_taken = 0 while 0 <= current_index < len(jump_list): current_jump = jump_list[current_index] if current_jump >= 3: jump_list[current_index] -= 1 else: jump_list[current_index] += 1 current_index += current_jump steps_taken += 1 print("V2 Final index: %d, steps taken: %d" % (current_index, steps_taken))
6.208214
76
0.491231
1,134
6,500
2.786596
0.478836
0.049367
0.033228
0.031646
0.143987
0.137342
0.137342
0.137342
0.137342
0.137342
0
0.628091
0.340615
6,500
1,046
77
6.214149
0.109193
0
0
0.72447
0
0
0.872754
0
0
0
0
0
0
1
0
false
0
0
0
0
0.001927
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
5c9e4fe1207368c45ca10b5f51b1b2b333b3e605
37
py
Python
Utils_Time.py
ZerethjiN/SweetNightmare
18dc60794f9c09b434df07a21974fa23e945d53b
[ "MIT" ]
null
null
null
Utils_Time.py
ZerethjiN/SweetNightmare
18dc60794f9c09b434df07a21974fa23e945d53b
[ "MIT" ]
null
null
null
Utils_Time.py
ZerethjiN/SweetNightmare
18dc60794f9c09b434df07a21974fa23e945d53b
[ "MIT" ]
null
null
null
class Time: deltaTime: float = 0
18.5
24
0.648649
5
37
4.8
1
0
0
0
0
0
0
0
0
0
0
0.037037
0.27027
37
2
24
18.5
0.851852
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5cdb34254a04b5a3c4a7f32606d146bbfa71eee2
876
py
Python
ex/ex108.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
ex/ex108.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
ex/ex108.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
'''Adapte o código do DESAFIO 107, criando uma função adicional chamada moeda() que consiga mostrar os valores como um valor monetário formatodo.''' from utilidadesCeV import moeda print('\033[1;33m-=\033[m' * 20) n1 = float(input('\033[34mDigite o preço: R$\033[m')) por = int(input('\033[33mQuantos porcentos deseja aumentar ou diminuir?\033[m ')) print(f'\033[35mA metade de {moeda.moeda(n1)} é {moeda.moeda(moeda.metade(n1))}\033[m') print(f'\033[36mO dobro de {moeda.moeda(n1)} é {moeda.moeda(moeda.dobro(n1))}\033[m') if por > 0: print(f'\033[31mAumentando {por}%, temos {moeda.moeda(moeda.aumento(n1, por))}\033[m') elif por < 0: print(f'\033[31mDiminuindo {por * -1}%, temos {moeda.moeda(moeda.aumento(n1, por))}\033[m') else: print(f'\033[31mO preço continua o mesmo {moeda.moeda(n1)}\033[m') print('\033[1;33m-=\033[m' * 20) print('\033[1;32mFIM\033[m')
51.529412
118
0.690639
151
876
4.006623
0.423841
0.181818
0.07438
0.039669
0.363636
0.277686
0.277686
0.218182
0.119008
0
0
0.129987
0.113014
876
16
119
54.75
0.648649
0.1621
0
0.142857
0
0.285714
0.70467
0.214286
0
0
0
0.0625
0
1
0
false
0
0.071429
0
0.071429
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
4
5cdbcd95820cb474cbbcbe9e978a8b1138a476a3
226
py
Python
backend/src/publisher/processing/pubsub.py
rutvikpadhiyar000/github-trends
af66cd1419586c6c91b75c3e32013160b2c36bcb
[ "MIT" ]
157
2021-09-11T15:53:52.000Z
2022-03-27T07:03:09.000Z
backend/src/publisher/processing/pubsub.py
rutvikpadhiyar000/github-trends
af66cd1419586c6c91b75c3e32013160b2c36bcb
[ "MIT" ]
120
2021-02-27T21:37:47.000Z
2022-03-25T14:44:08.000Z
backend/src/publisher/processing/pubsub.py
rutvikpadhiyar000/github-trends
af66cd1419586c6c91b75c3e32013160b2c36bcb
[ "MIT" ]
5
2021-12-06T18:43:01.000Z
2022-01-31T07:06:16.000Z
from typing import Optional from src.utils.pubsub import publish_to_topic def publish_user(user_id: str, access_token: Optional[str] = None): publish_to_topic("user", {"user_id": user_id, "access_token": access_token})
28.25
80
0.769912
35
226
4.657143
0.485714
0.110429
0.171779
0
0
0
0
0
0
0
0
0
0.119469
226
7
81
32.285714
0.819095
0
0
0
0
0
0.10177
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
4
5cdd20d05eb717b7f4243363062160a100dab9c9
118
py
Python
Curso de Python USP Part1/Exercicios/quadrado.py
JorgeTranin/Cursos_Coursera
37d26b5f92d9324225f6701d0eb0fd466cff9d86
[ "MIT" ]
null
null
null
Curso de Python USP Part1/Exercicios/quadrado.py
JorgeTranin/Cursos_Coursera
37d26b5f92d9324225f6701d0eb0fd466cff9d86
[ "MIT" ]
null
null
null
Curso de Python USP Part1/Exercicios/quadrado.py
JorgeTranin/Cursos_Coursera
37d26b5f92d9324225f6701d0eb0fd466cff9d86
[ "MIT" ]
null
null
null
L = int(input("Digite o valor correspondente ao lado de um quadrado: ")) print("perímetro:",L * 4, "- área:",L ** 2)
29.5
72
0.635593
19
118
3.947368
0.894737
0
0
0
0
0
0
0
0
0
0
0.020408
0.169492
118
3
73
39.333333
0.744898
0
0
0
0
0
0.601695
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
7a26e0f517228dafa5ac2b7d52e21b66ca3b16fb
144
py
Python
tests/context.py
MrSSHH/URL-Shortener
8d472d1143dab5cf05a0f176d9b3a14da93d8df5
[ "MIT" ]
2
2019-08-26T10:55:03.000Z
2019-12-29T19:13:54.000Z
tests/context.py
MrSSHH/URL-Shortener
8d472d1143dab5cf05a0f176d9b3a14da93d8df5
[ "MIT" ]
null
null
null
tests/context.py
MrSSHH/URL-Shortener
8d472d1143dab5cf05a0f176d9b3a14da93d8df5
[ "MIT" ]
null
null
null
import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) + r"\URL_Modules") from url import *
28.8
101
0.694444
24
144
3.958333
0.583333
0.189474
0
0
0
0
0
0
0
0
0
0.007874
0.118056
144
4
102
36
0.740157
0
0
0
0
0
0.1
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
7a27fc2540fc88dc152a67e397b41abd7ec9fe37
90
py
Python
keyboards/apps.py
noltron000-coursework/django-contractor
5628accf4538a9cb4f2e3a8207e054785478406a
[ "MIT" ]
null
null
null
keyboards/apps.py
noltron000-coursework/django-contractor
5628accf4538a9cb4f2e3a8207e054785478406a
[ "MIT" ]
1
2020-03-10T19:48:24.000Z
2020-03-10T19:48:24.000Z
keyboards/apps.py
noltron000-coursework/django-contractor
5628accf4538a9cb4f2e3a8207e054785478406a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class KeyboardsConfig(AppConfig): name = 'keyboards'
15
33
0.788889
10
90
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.133333
90
5
34
18
0.910256
0
0
0
0
0
0.1
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7a8579d80176f07894fb75753fa81090b7613cdf
26
py
Python
mymcadmin/__init__.py
durandj/mymcadmin
6c9ebfa2a5dfcea1f5fb5c5cf1c0256b05b98172
[ "MIT" ]
null
null
null
mymcadmin/__init__.py
durandj/mymcadmin
6c9ebfa2a5dfcea1f5fb5c5cf1c0256b05b98172
[ "MIT" ]
null
null
null
mymcadmin/__init__.py
durandj/mymcadmin
6c9ebfa2a5dfcea1f5fb5c5cf1c0256b05b98172
[ "MIT" ]
null
null
null
""" MyMCAdmin system """
5.2
16
0.576923
2
26
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.192308
26
4
17
6.5
0.714286
0.615385
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7a8bc40bacace03c8c8f3635e8eac5c68bc4a6a3
90
py
Python
WebSpider/__init__.py
bianQ/similarweb
3df31af1267a285d0bc6adf720409ceb43eb56cb
[ "MIT" ]
null
null
null
WebSpider/__init__.py
bianQ/similarweb
3df31af1267a285d0bc6adf720409ceb43eb56cb
[ "MIT" ]
null
null
null
WebSpider/__init__.py
bianQ/similarweb
3df31af1267a285d0bc6adf720409ceb43eb56cb
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- """ @author: Alan @time: 2021/05/18 """
12.857143
23
0.488889
12
90
3.666667
1
0
0
0
0
0
0
0
0
0
0
0.128571
0.222222
90
6
24
15
0.5
0.866667
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7a9c8872f8d352a186e7f7dff6e7a117af2d9e83
378
py
Python
ch3/3-5.change.py
AngangGuo/pycrash
de48aa4198022c301f5cd3ce388c195a177be1b5
[ "MIT" ]
null
null
null
ch3/3-5.change.py
AngangGuo/pycrash
de48aa4198022c301f5cd3ce388c195a177be1b5
[ "MIT" ]
null
null
null
ch3/3-5.change.py
AngangGuo/pycrash
de48aa4198022c301f5cd3ce388c195a177be1b5
[ "MIT" ]
null
null
null
guests = ["Mark", "Kevin", "Mellisa"] msg = "I'd like to invite you to have a dinner with us on 5/18. Thanks, Andrew" print(f"Hi {guests[0]}, {msg}") print(f"Hi {guests[1]}, {msg}") print(f"Hi {guests[2]}, {msg}") print(f"\nSorry, {guests[1]} can't make it.\n") guests[1] = "Ace" print(f"Hi {guests[0]}, {msg}") print(f"Hi {guests[1]}, {msg}") print(f"Hi {guests[2]}, {msg}")
29.076923
79
0.597884
71
378
3.183099
0.478873
0.185841
0.212389
0.371681
0.477876
0.477876
0.477876
0.477876
0.477876
0.477876
0
0.033537
0.132275
378
12
80
31.5
0.655488
0
0
0.6
0
0.1
0.669312
0
0
0
0
0
0
1
0
false
0
0
0
0
0.7
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
7a9e4b01c11c145feba912c078567ed568156402
139
py
Python
baekjoon/15552.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
baekjoon/15552.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
baekjoon/15552.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
import sys n=int(sys.stdin.readline().rstrip()) for i in range(n): a,b=(sys.stdin.readline().rstrip()).split() print(int(a)+int(b))
27.8
47
0.640288
25
139
3.56
0.6
0.179775
0.359551
0.494382
0
0
0
0
0
0
0
0
0.115108
139
5
48
27.8
0.723577
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
8f96979ad2f6bbf6c6234d1a28390551ce6c2fb2
229
py
Python
perfil/views.py
DiegoSilvaHoffmann/Small-Ecommerce
c6f9d75cc6dd558aa1ba9abe0186a27fe15b32d2
[ "MIT" ]
null
null
null
perfil/views.py
DiegoSilvaHoffmann/Small-Ecommerce
c6f9d75cc6dd558aa1ba9abe0186a27fe15b32d2
[ "MIT" ]
null
null
null
perfil/views.py
DiegoSilvaHoffmann/Small-Ecommerce
c6f9d75cc6dd558aa1ba9abe0186a27fe15b32d2
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import ListView from django.views import View class Criar(View): pass class Atualizar(View): pass class Login(View): pass class Logout(View): pass
14.3125
41
0.737991
32
229
5.28125
0.46875
0.189349
0.230769
0
0
0
0
0
0
0
0
0
0.19214
229
16
42
14.3125
0.913514
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0
true
0.363636
0.272727
0
0.636364
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
4
8fac0ae8f9514ba41f12c27dc35812eb8d29e14f
353
py
Python
project_1/hello_world.py
nwahal/facerecsolns
2e493578d258655b31da8dd0636eb5c3ac318f12
[ "MIT" ]
null
null
null
project_1/hello_world.py
nwahal/facerecsolns
2e493578d258655b31da8dd0636eb5c3ac318f12
[ "MIT" ]
null
null
null
project_1/hello_world.py
nwahal/facerecsolns
2e493578d258655b31da8dd0636eb5c3ac318f12
[ "MIT" ]
null
null
null
""" hello_world.py Simple Hello World program. ECE196 Face Recognition Project Author: Will Chen 1. Write a Write a program that prints "Hello World!" and uses the main function convention. """ # TODO: Write a program that prints "Hello World!" and uses a main function. def main(): print("Hello World!") if(__name__ == '__main__'): main()
19.611111
92
0.711048
52
353
4.653846
0.538462
0.206612
0.107438
0.140496
0.330579
0.330579
0.330579
0.330579
0.330579
0
0
0.013889
0.184136
353
17
93
20.764706
0.826389
0.747875
0
0
0
0
0.246914
0
0
0
0
0.058824
0
1
0.25
true
0
0
0
0.25
0.25
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
1
0
0
0
0
0
0
4
8fc92bd4080b99073a6946d5f4528d516acfd1f3
261
py
Python
clean_mona.py
Shtrikh17/mona
46cd2f3011f14264d0815e9c023cdc4faa1155fd
[ "BSD-3-Clause" ]
null
null
null
clean_mona.py
Shtrikh17/mona
46cd2f3011f14264d0815e9c023cdc4faa1155fd
[ "BSD-3-Clause" ]
null
null
null
clean_mona.py
Shtrikh17/mona
46cd2f3011f14264d0815e9c023cdc4faa1155fd
[ "BSD-3-Clause" ]
null
null
null
import sys if 'mona' in sys.modules: reload(mona) reload(mona.dbglib) reload(mona.dbglib.pykd) else: import mona if 'monaFile' in sys.modules: reload(monaFile) reload(mona.dbglib) reload(mona.dbglib.pykd) else: import monaFile
17.4
29
0.678161
36
261
4.916667
0.305556
0.282486
0.361582
0.20339
0.519774
0.519774
0.519774
0.519774
0.519774
0
0
0
0.214559
261
15
30
17.4
0.863415
0
0
0.461538
0
0
0.045802
0
0
0
0
0
0
1
0
true
0
0.230769
0
0.230769
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
64dfd0e6fd427984b989d25f43ea849e57ac9302
1,275
py
Python
mathpad/trigonometry.py
CallumJHays/mathpad
bb2aab07ead67cd95637d9bd7cd952f0ac7161e8
[ "MIT" ]
2
2021-09-08T09:29:41.000Z
2021-09-29T05:12:20.000Z
mathpad/trigonometry.py
CallumJHays/mathpad
bb2aab07ead67cd95637d9bd7cd952f0ac7161e8
[ "MIT" ]
1
2021-09-29T05:13:26.000Z
2021-10-06T05:11:22.000Z
mathpad/trigonometry.py
CallumJHays/mathpad
bb2aab07ead67cd95637d9bd7cd952f0ac7161e8
[ "MIT" ]
null
null
null
from re import L import sympy from mathpad import * def sin(x: Q[Angle]) -> Dimensionless: return Dimensionless(1, sympy.sin(x.val)) # type: ignore def cos(x: Q[Angle]) -> Dimensionless: return Dimensionless(1, sympy.cos(x.val)) # type: ignore def tan(x: Q[Angle]) -> Dimensionless: return Dimensionless(1, sympy.tan(x.val)) # type: ignore def magnitude(*xs: Q[GenericVal]) -> GenericVal: "x's are lengths in orthogonal directions. ie (i, j k)" c_2 = 0 for x in xs: c_2 += x ** 2 return sqrt(c_2) def hypotenuse(a: Q[Length], b: Q[Length]) -> Length: return cartesian_distance(a, b) # TODO: add more trig functions def sine_rule( a: Q[Length], # length of side a b: Q[Length], # length of side b alpha: Q[Angle], # internal angle opposite to side a beta: Q[Angle], # internal angle opposite to side b ) -> Equation: "Relates lengths of two sides of any triangle the internal angle opposite" return a == b * sin(alpha) / sin(beta) def cosine_rule( a: Q[Length], # length of side a b: Q[Length], # length of side b c: Q[Length], # length of side c C: Q[Angle], # internal angle opposite to side c ) -> Equation: return c ** 2 == a ** 2 + b ** 2 - 2 * a * b * cos(C)
25.5
78
0.624314
206
1,275
3.834951
0.315534
0.062025
0.098734
0.094937
0.501266
0.412658
0.412658
0.287342
0.116456
0.116456
0
0.012448
0.243922
1,275
49
79
26.020408
0.807054
0.300392
0
0.1875
0
0
0.124131
0
0
0
0
0.020408
0
1
0.21875
false
0
0.09375
0.15625
0.53125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
64f4bde679a94c99ab45d7aee7cdf5dbbd968860
226
py
Python
JJE_Standings/views.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
2
2017-05-05T14:02:37.000Z
2017-07-21T13:19:31.000Z
JJE_Standings/views.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
7
2018-01-31T13:28:12.000Z
2020-02-19T01:57:55.000Z
JJE_Standings/views.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView class IndexView(TemplateView): """ This is for rendering out the standings graph Some work to be done here """ template_name = "JJE_Standings/standings.html"
22.6
50
0.721239
29
226
5.551724
0.896552
0
0
0
0
0
0
0
0
0
0
0
0.207965
226
9
51
25.111111
0.899441
0.314159
0
0
0
0
0.207407
0.207407
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
64f8f51563a4a2fd6eba9ea5ede745f26ba5f536
1,461
py
Python
setup.py
giumas/testwheel
a70e63a77e044ec65b5d2c65b2968ffdda85e9a3
[ "MIT" ]
null
null
null
setup.py
giumas/testwheel
a70e63a77e044ec65b5d2c65b2968ffdda85e9a3
[ "MIT" ]
null
null
null
setup.py
giumas/testwheel
a70e63a77e044ec65b5d2c65b2968ffdda85e9a3
[ "MIT" ]
null
null
null
import os from setuptools import setup #from setuptools import find_packages def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup( name='testwheel', version='0.0.1', description='Dummy module for wheel testing.', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), url='http://github.com/giumas/testwheel/', license='MIT', author='giumas', author_email='giumas@yahoo.it', py_modules=['testwheel'], #packages=find_packages(exclude=['tests*']), include_package_data=True, install_requires=['numpy'], classifiers=[ # https://pypi.python.org/pypi?%3Aaction=list_classifiers 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'Natural Language :: English', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Installation/Setup' ], )
1,461
1,461
0.601643
158
1,461
5.506329
0.588608
0.131034
0.172414
0.089655
0.062069
0
0
0
0
0
0
0.011754
0.242984
1,461
1
1,461
1,461
0.774864
0.130732
0
0
0
0
0.499604
0
0
0
0
0
0
1
0.028571
true
0
0.057143
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
8f21d3accf2d5b132ab17d66f63c9f53b4eec28b
177
py
Python
Nite_Mode/forms.py
thechawla225/NIte-Mode
8d7f5f1d571fe151cd933e47041515b20f124f25
[ "MIT" ]
1
2021-02-20T20:09:41.000Z
2021-02-20T20:09:41.000Z
Nite_Mode/forms.py
thechawla225/NIte-Mode
8d7f5f1d571fe151cd933e47041515b20f124f25
[ "MIT" ]
2
2021-04-13T12:03:53.000Z
2021-05-20T04:04:16.000Z
Nite_Mode/forms.py
thechawla225/NIte-Mode
8d7f5f1d571fe151cd933e47041515b20f124f25
[ "MIT" ]
null
null
null
from Nite_Mode.models import PDFModel from django import forms class UploadPDFForm(forms.ModelForm): class Meta: model = PDFModel fields = ('title', 'pdf',)
25.285714
37
0.689266
21
177
5.761905
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.220339
177
7
38
25.285714
0.876812
0
0
0
0
0
0.044944
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8f3d94dc709b0c51989ce79907578314721ef87e
236
py
Python
examples/data_mongo/service.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2018-11-24T02:07:37.000Z
2018-11-24T02:07:37.000Z
examples/data_mongo/service.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-23T07:12:30.000Z
2019-01-23T07:12:30.000Z
examples/data_mongo/service.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-16T05:30:49.000Z
2019-01-16T05:30:49.000Z
from nameko.runners import ServiceRunner from .controllers.data_mongo_controller import DataMongoController from .settings import Constants RUNNER = ServiceRunner(config=Constants.NAMEKO_CONFIG) RUNNER.add_service(DataMongoController)
33.714286
66
0.877119
26
236
7.807692
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.072034
236
6
67
39.333333
0.926941
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8f41ebca9467010e9f2c37e9304f62389b7fca64
6,170
py
Python
tests/channel_test.py
Beer4Ever83/ipytv
bad995b7aca34ae178d455451c8979b92088e191
[ "MIT" ]
5
2021-09-10T18:10:58.000Z
2022-03-11T23:52:00.000Z
tests/channel_test.py
Beer4Ever83/ipytv
bad995b7aca34ae178d455451c8979b92088e191
[ "MIT" ]
25
2021-02-10T21:05:21.000Z
2022-03-22T17:35:14.000Z
tests/channel_test.py
Beer4Ever83/ipytv
bad995b7aca34ae178d455451c8979b92088e191
[ "MIT" ]
1
2021-09-10T18:10:43.000Z
2021-09-10T18:10:43.000Z
import unittest from ipytv import IPTVAttr, IPTVChannel, MalformedExtinfException class TestIsM3UPlusExtinfString(unittest.TestCase): def runTest(self): extinf_string = '''#EXTINF:-1 tvg-id="" tvg-name="Io, Leonardo (2019)" tvg-logo="https://image.tmdb.org/t/p/w600_and_h900_bestv2/6DfpPu4iGrBswsyLdJlCwiLCudw.jpg" group-title="Recenti e Oggi al Cinema",Io, Leonardo (2019)''' self.assertTrue(IPTVChannel.is_m3u_plus_extinf_string(extinf_string)) class TestIsNotM3UPlusExtinfString(unittest.TestCase): def runTest(self): extinf_string = '''#EXTINF:-1,SANTUÁRIO DE FÁTIMA''' self.assertFalse(IPTVChannel.is_m3u_plus_extinf_string(extinf_string)) class TestIsM3UExtinfString(unittest.TestCase): def runTest(self): extinf_string = '''#EXTINF:-1,SANTUÁRIO DE FÁTIMA''' self.assertTrue(IPTVChannel.is_m3u_extinf_string(extinf_string)) class TestIsNotM3UExtinfString(unittest.TestCase): def runTest(self): extinf_string = '''#EXTINF:-1 tvg-id="" tvg-name="Io, Leonardo (2019)" tvg-logo="https://image.tmdb.org/t/p/w600_and_h900_bestv2/6DfpPu4iGrBswsyLdJlCwiLCudw.jpg" group-title="Recenti e Oggi al Cinema",Io, Leonardo (2019)''' self.assertFalse(IPTVChannel.is_m3u_extinf_string(extinf_string)) class TestParseM3UPlusExtinfString(unittest.TestCase): def runTest(self): extinf_string = '''#EXTINF:-1 tvg-id="Rai1.it" tvg-name="Rai 1 SuperHD" tvg-logo="https://static.epg.best/it/RaiUno.it.png" group-title="SuperHD",Rai 1 SuperHD''' expected_attributes = { IPTVAttr.TVG_ID.value: "Rai1.it", IPTVAttr.TVG_NAME.value: "Rai 1 SuperHD", IPTVAttr.TVG_LOGO.value: "https://static.epg.best/it/RaiUno.it.png", IPTVAttr.GROUP_TITLE.value: "SuperHD" } expected = IPTVChannel( url="", name="Rai 1 SuperHD", duration="-1", attributes=expected_attributes ) ch = IPTVChannel() ch.parse_extinf_string(extinf_string) self.assertTrue(ch.__eq__(expected), "the two channels are not equal") class TestParseM3UPlusExtinfStringWithCommas(unittest.TestCase): def runTest(self): extinf_string = '''#EXTINF:-1 tvg-id="" tvg-name="Io, Leonardo (2019)" tvg-logo="https://image.tmdb.org/t/p/w600_and_h900_bestv2/6DfpPu4iGrBswsyLdJlCwiLCudw.jpg" group-title="Recenti e Oggi al Cinema",Io, Leonardo (2019)''' expected_attributes = { IPTVAttr.TVG_ID.value: "", IPTVAttr.TVG_NAME.value: "Io, Leonardo (2019)", IPTVAttr.TVG_LOGO.value: "https://image.tmdb.org/t/p/w600_and_h900_bestv2/6DfpPu4iGrBswsyLdJlCwiLCudw.jpg", IPTVAttr.GROUP_TITLE.value: "Recenti e Oggi al Cinema" } expected = IPTVChannel( url="", name="Io, Leonardo (2019)", duration="-1", attributes=expected_attributes ) ch = IPTVChannel() ch.parse_extinf_string(extinf_string) self.assertTrue(ch.__eq__(expected), "the two channels are not equal") class TestParseBadM3UPlusExtinfStrings(unittest.TestCase): def runTest(self): extinf_strings = [ ''' #EXTINF:-1 tvg-id="" tvg-name="" tvg-logo="" group-title="",Off The Map''', '''#EXTINF :-1 tvg-id="" tvg-name="" tvg-logo="" group-title="",Off The Map''', '''#EXTINF:-1 tvg-id=" tvg-name="" tvg-logo="" group-title="",Off The Map''', '''#EXTINF:-1 tvg-id="" tvg-name="" tvg-logo="" group-title="" Off The Map''', '''#EXTINF:-1 tvg/id="" tvg-name="" tvg-logo="" group-title="",Off The Map''', '''#EXTINF:-1 tvg-id="" tvg-name="" tvg-logo="" group-title="''', '''#EXTINF:-1tvg-id="" tvg-name="" tvg-logo="" group-title="",Off The Map''', '''#EXTINF:-1 tvg-id=""tvg-name="" tvg-logo="" group-title="",Off The Map''' ] for extinf_string in extinf_strings: ch = IPTVChannel() self.assertRaises(MalformedExtinfException, ch.parse_extinf_string, extinf_string) class TestParseM3UExtinfString(unittest.TestCase): def runTest(self): extinf_string = '''#EXTINF:-1,SANTUÁRIO DE FÁTIMA''' expected_attributes = {} expected = IPTVChannel( url="", name="SANTUÁRIO DE FÁTIMA", duration="-1", attributes=expected_attributes ) ch = IPTVChannel() ch.parse_extinf_string(extinf_string) self.assertTrue(ch.__eq__(expected), "the two channels are not equal") class TestCopy(unittest.TestCase): def runTest(self): original_attributes = { IPTVAttr.TVG_ID.value: "Rai1.it", IPTVAttr.TVG_NAME.value: "Rai 1 SuperHD", IPTVAttr.TVG_LOGO.value: "https://static.epg.best/it/RaiUno.it.png", IPTVAttr.GROUP_TITLE.value: "SuperHD" } original = IPTVChannel( url="", name="Rai 1 SuperHD", duration="-1", attributes=original_attributes ) clone = original.copy() self.assertTrue(original == clone) clone.name = "my " + clone.name self.assertTrue(original != clone) self.assertTrue("my " + original.name == clone.name) class TestToString(unittest.TestCase): def runTest(self): original_attributes = { IPTVAttr.TVG_ID.value: "Rai1.it", IPTVAttr.TVG_NAME.value: "Rai 1 SuperHD", IPTVAttr.TVG_LOGO.value: "https://static.epg.best/it/RaiUno.it.png", IPTVAttr.GROUP_TITLE.value: "SuperHD" } original = IPTVChannel( url="", name="Rai 1 SuperHD", duration="-1", attributes=original_attributes ) expected_output = '{name: "Rai 1 SuperHD", duration: "-1", url: "", attributes: {tvg-id: "Rai1.it", tvg-name: "Rai 1 SuperHD", tvg-logo: "https://static.epg.best/it/RaiUno.it.png", group-title: "SuperHD"}}' real_output = str(original) self.assertEqual(expected_output, real_output) if __name__ == '__main__': unittest.main()
42.847222
231
0.626256
713
6,170
5.276297
0.13885
0.076555
0.07177
0.035088
0.777778
0.754652
0.718767
0.718767
0.694843
0.661085
0
0.024365
0.228363
6,170
143
232
43.146853
0.765806
0
0
0.546218
0
0.042017
0.275323
0.00449
0
0
0
0
0.10084
1
0.084034
false
0
0.016807
0
0.184874
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
8f43fa830572c3ab192dae9c2537d2ed0d4e3621
54
py
Python
games/slots.py
Alpuds/pycasino
df69480c848df7c4faffcd77ec73e80d92e60502
[ "MIT" ]
null
null
null
games/slots.py
Alpuds/pycasino
df69480c848df7c4faffcd77ec73e80d92e60502
[ "MIT" ]
null
null
null
games/slots.py
Alpuds/pycasino
df69480c848df7c4faffcd77ec73e80d92e60502
[ "MIT" ]
null
null
null
def slots(bet): print(f"You bet {bet} for slots")
18
37
0.62963
10
54
3.4
0.7
0
0
0
0
0
0
0
0
0
0
0
0.203704
54
2
38
27
0.790698
0
0
0
0
0
0.425926
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
4
8f65a335187c37c09ab3a28113c42220d2300104
1,644
py
Python
jazzy/functions/StackManipFunc.py
joewashear007/jazzy
f646de7b2e54040abc91e7b737675d9f565c621b
[ "MIT" ]
null
null
null
jazzy/functions/StackManipFunc.py
joewashear007/jazzy
f646de7b2e54040abc91e7b737675d9f565c621b
[ "MIT" ]
8
2015-02-17T15:10:22.000Z
2015-03-03T04:12:43.000Z
jazzy/functions/StackManipFunc.py
joewashear007/jazzy
f646de7b2e54040abc91e7b737675d9f565c621b
[ "MIT" ]
null
null
null
all__ = ['jazPush', 'jazRvalue', 'jazLvalue', 'jazPop', 'jazAssign', 'jazCopy'] class jazPush: def __init__(self): self.command = "push" def call(self, interpreter, arg): interpreter.GetScope().stack.append(int(arg)) return None class jazRvalue: def __init__(self): self.command = "rvalue" def call(self, interpreter, arg): value = interpreter.GetScope().GetVar(arg) interpreter.GetScope().stack.append(value) return None class jazLvalue: def __init__(self): self.command = "lvalue" def call(self, interpreter, arg): address = interpreter.GetScope().GetAddress(arg) interpreter.GetScope().stack.append(address) return None class jazPop: def __init__(self): self.command = "pop" def call(self, interpreter, arg): interpreter.GetScope().stack.pop() return None class jazAssign: def __init__(self): self.command = ":=" def call(self, interpreter, arg): value = interpreter.GetScope().stack.pop() addr = interpreter.GetScope().stack.pop() interpreter.GetScope().SetVar(addr, value) return None class jazCopy: def __init__(self): self.command = "copy" def call(self, interpreter, arg): topStack = interpreter.GetScope().stack[-1] interpreter.GetScope().stack.append(topStack) return None # A dictionary of the classes in this file # used to autoload the functions Functions = {'jazPush': jazPush, 'jazRvalue': jazRvalue, 'jazLvalue': jazRvalue, 'jazPop':jazPop, 'jazAssign':jazAssign, 'jazCopy':jazCopy}
27.864407
139
0.641727
177
1,644
5.813559
0.259887
0.20311
0.186589
0.087464
0.437318
0.190476
0.190476
0.190476
0
0
0
0.000791
0.230535
1,644
58
140
28.344828
0.812648
0.043187
0
0.418605
0
0
0.075796
0
0
0
0
0
0
1
0.27907
false
0
0
0
0.55814
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
8f6c37754c428b95644086a0ed5c2221972cdbd6
204
py
Python
photobooth/backend/serializer.py
antoine-gagne/photo-booth
91a2911eab4e17e2400eb575c47620bf5f631d6d
[ "Unlicense" ]
null
null
null
photobooth/backend/serializer.py
antoine-gagne/photo-booth
91a2911eab4e17e2400eb575c47620bf5f631d6d
[ "Unlicense" ]
1
2021-03-10T13:52:17.000Z
2021-03-10T13:52:17.000Z
photobooth/backend/serializer.py
antoine-gagne/photo-booth
91a2911eab4e17e2400eb575c47620bf5f631d6d
[ "Unlicense" ]
null
null
null
from rest_framework import serializers from . import models class PhotosSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = models.Photo fields = ["url", "name"]
22.666667
63
0.720588
20
204
7.3
0.75
0
0
0
0
0
0
0
0
0
0
0
0.20098
204
8
64
25.5
0.895706
0
0
0
0
0
0.034314
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8f720958a1e3356695ec4eb128fedc5b07593123
169
py
Python
numberize/dawgs.py
DanATW/numberize
895095df30f17619c05f74bdc37f807d983411a1
[ "MIT" ]
1
2021-09-21T13:12:25.000Z
2021-09-21T13:12:25.000Z
numberize/dawgs.py
DanATW/numberize
895095df30f17619c05f74bdc37f807d983411a1
[ "MIT" ]
4
2021-11-02T15:33:10.000Z
2021-11-13T14:18:10.000Z
numberize/dawgs.py
DanATW/numberize
895095df30f17619c05f74bdc37f807d983411a1
[ "MIT" ]
null
null
null
import dawg import numberize.dicts as dicts ru_nums = dawg.IntDAWG(dicts.ru.ru_nums) uk_nums = dawg.IntDAWG(dicts.uk.uk_nums) en_nums = dawg.IntDAWG(dicts.en.en_nums)
21.125
40
0.786982
31
169
4.096774
0.322581
0.188976
0.354331
0.472441
0
0
0
0
0
0
0
0
0.100592
169
7
41
24.142857
0.835526
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
56ad89e93a9fa4abdfa4f2f2a4c4a760707f0158
149
py
Python
PDA/extra_assignments/6.7. While_ Average of sequence/solution/main.py
EMbeDS-education/StatsAndComputing20212022
971e418882b206a1b5606d15d222cef1a5a04834
[ "MIT" ]
2
2022-02-24T09:35:15.000Z
2022-03-14T20:34:33.000Z
PDA/extra_assignments/6.7. While_ Average of sequence/solution/main.py
GeorgiosArg/StatsAndComputing20212022
798d39af6aa5ef5eef49d5d6f43191351e8a49f3
[ "MIT" ]
null
null
null
PDA/extra_assignments/6.7. While_ Average of sequence/solution/main.py
GeorgiosArg/StatsAndComputing20212022
798d39af6aa5ef5eef49d5d6f43191351e8a49f3
[ "MIT" ]
2
2022-03-15T21:40:35.000Z
2022-03-26T14:51:31.000Z
a = int(input()) length = 0 sum_of_sequence = 0 while a != 0: sum_of_sequence += a length += 1 a = int(input()) print(sum_of_sequence / length)
18.625
31
0.651007
26
149
3.5
0.423077
0.164835
0.428571
0.307692
0
0
0
0
0
0
0
0.033613
0.201342
149
8
31
18.625
0.731092
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
710c6f8beab3b7b33909bfa1d48c6cc430b27567
3,321
py
Python
Phrasing/phrasing.py
cadia-lvl/phrasing-tool
202e95f15ad5819a4087b56e86a364e4402ec6a9
[ "MIT" ]
null
null
null
Phrasing/phrasing.py
cadia-lvl/phrasing-tool
202e95f15ad5819a4087b56e86a364e4402ec6a9
[ "MIT" ]
null
null
null
Phrasing/phrasing.py
cadia-lvl/phrasing-tool
202e95f15ad5819a4087b56e86a364e4402ec6a9
[ "MIT" ]
1
2022-02-11T10:14:14.000Z
2022-02-11T10:14:14.000Z
import re import sys """ Put the parsed format into a readable list format """ def manipulate_text(line): line1 = line.split("[") line2 = [re.sub("\]", "", item).rstrip(" ") for item in line1] line3 = [item.split(" ") for item in line2] line4 = [list(filter(None, item)) for item in line3] return line4 """ Insert pauses accordingly to phrasing """ def pause_text(manipulated_list): for i in range(len(manipulated_list)): for j in range(len(manipulated_list[i])): try: if manipulated_list[i][j-1][-1] in [',', '.', '!', '?']: pass else: if manipulated_list[i][j][0].startswith(('NP', 'AP', 'PP', 'VP', 'InjP', 'MWE', 'AdvP')) or (manipulated_list[i][0] == 'CP' and manipulated_list[i][j-2][0] in ['NPs', 'APs']) or (manipulated_list[i][j][0] == 'CP' and (manipulated_list[i][j-1][0] == 'PP' and manipulated_list[i][j+1][0] == 'PP')): pass elif (manipulated_list[i][j][1] == 'sem' and manipulated_list[i][j-1][0] == 'NP'): if (manipulated_list[i][j-2][0] == 'PP' or (manipulated_list[i][j-2][0] == 'NP' and manipulated_list[i][j-3][0] == 'PP')): manipulated_list[i][j-1].append('<pau>') elif (manipulated_list[i][j][0] == 'CP' and not manipulated_list[i][j-1][-1].startswith('tf')) or (manipulated_list[i][j-2][0] == 'PP' and manipulated_list[i][j-1][0] == 'NP' and manipulated_list[i][j][0] == 'SCP' and not manipulated_list[i][j][1] == 'sem'):# and manipulated_list[i-2][0] not in ['NPs', 'APs']: manipulated_list[i][j-1].append('<pau>') elif (manipulated_list[i][j][0] == 'SCP' and not manipulated_list[i][j][1] == 'sem'): manipulated_list[i][j-1].append('<sil>') if manipulated_list[i][j][0] == 'CP' and (manipulated_list[i][j-1][0] == 'PP' and manipulated_list[i][j+1][0] == 'PP'): manipulated_list[i][j-2].append('<sil>') except: pass return manipulated_list """ Delete empty items and extract text """ def extract_text(line): line2 = [list(filter(None, item)) for item in line] line3 = [] for i in range(len(line2)): line3.append([line2[i][index] for index in range(1, len(line2[i]), 2)]) line4 = " ".join([item for sublist in line3 for item in sublist]) return line4 long_pause = '<sil>' medium_pause = '<pau>' short_pause = '<sp>' """ Put pause cues instead of punctuation marks """ def switch_punctuation(clean_list): clean_list2 = [re.sub('[\.\?\!\;]', long_pause, sent) for sent in clean_list] clean_list3 = [re.sub('[,\–\-\:\/\−]', medium_pause, sent) for sent in clean_list2] clean_list4 = [re.sub('[\„\“\(\)\"\”\·\*]', short_pause, sent) for sent in clean_list3] return clean_list4 with open(sys.argv[1]) as file: lines = [line.strip() for line in file] manipulated_text = [manipulate_text(x) for x in lines] paused_text = pause_text(manipulated_text) extracted_text = [extract_text(x) for x in paused_text] punctuated_text = switch_punctuation(extracted_text) with open(sys.argv[2], 'w') as f: for item in punctuated_text: f.write("%s\n" % item)
44.878378
331
0.57302
485
3,321
3.804124
0.228866
0.260163
0.251491
0.239566
0.461247
0.406504
0.321409
0.218428
0.214634
0.201084
0
0.027176
0.235471
3,321
73
332
45.493151
0.697913
0.015357
0
0.132075
0
0
0.0521
0
0
0
0
0
0
1
0.075472
false
0.056604
0.037736
0
0.188679
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
713f26f8699befb044299007a79b0e0a5d63cf4b
143
py
Python
docs/api-examples-source/widget.date_input.py
cdeil/streamlit
173aa1cd5835174620e8246eb5d7116be2cb6ffc
[ "Apache-2.0" ]
12
2021-10-15T20:25:24.000Z
2022-03-05T10:56:55.000Z
docs/api-examples-source/widget.date_input.py
cdeil/streamlit
173aa1cd5835174620e8246eb5d7116be2cb6ffc
[ "Apache-2.0" ]
221
2020-10-16T08:15:02.000Z
2022-03-29T10:25:00.000Z
docs/api-examples-source/widget.date_input.py
cdeil/streamlit
173aa1cd5835174620e8246eb5d7116be2cb6ffc
[ "Apache-2.0" ]
33
2021-10-29T19:32:53.000Z
2022-03-31T19:43:47.000Z
import streamlit as st import datetime d = st.date_input("When's your birthday", datetime.date(2020, 8, 11)) st.write("Your birthday is:", d)
23.833333
69
0.727273
25
143
4.12
0.68
0.23301
0
0
0
0
0
0
0
0
0
0.056452
0.132867
143
5
70
28.6
0.774194
0
0
0
0
0
0.258741
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
85700e5fb4a014467bc50901e9e35f98cabcdc51
269
py
Python
Queue/DequeModule.py
eferroni/Data-Structure-and-Algorithms
bad33d4619884e03c85e13f604db753af5b543a0
[ "MIT" ]
null
null
null
Queue/DequeModule.py
eferroni/Data-Structure-and-Algorithms
bad33d4619884e03c85e13f604db753af5b543a0
[ "MIT" ]
null
null
null
Queue/DequeModule.py
eferroni/Data-Structure-and-Algorithms
bad33d4619884e03c85e13f604db753af5b543a0
[ "MIT" ]
null
null
null
from collections import deque custQueue = deque(maxlen=3) print(custQueue) custQueue.append(0) custQueue.append(1) custQueue.append(2) print(custQueue) custQueue.append(3) print(custQueue) print(custQueue.popleft()) print(custQueue) custQueue.clear() print(custQueue)
17.933333
29
0.802974
35
269
6.171429
0.4
0.388889
0.319444
0.268519
0
0
0
0
0
0
0
0.02
0.070632
269
14
30
19.214286
0.844
0
0
0.384615
0
0
0
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.461538
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
85ae5d28a2562f3effa6eb72127fd5501774d17e
81
py
Python
python/mlserver-fusion/mlserver_fusion/version.py
roeap/flight-fusion
14f73c99c5214277d0abcced633d83b37f1d5292
[ "Apache-2.0", "MIT" ]
5
2021-12-24T06:21:40.000Z
2022-01-16T12:21:06.000Z
python/mlserver-fusion/mlserver_fusion/version.py
roeap/flight-fusion
14f73c99c5214277d0abcced633d83b37f1d5292
[ "Apache-2.0", "MIT" ]
66
2021-12-15T17:08:21.000Z
2022-03-29T10:36:18.000Z
python/mlserver-fusion/mlserver_fusion/version.py
roeap/flight-fusion
14f73c99c5214277d0abcced633d83b37f1d5292
[ "Apache-2.0", "MIT" ]
1
2022-02-08T21:07:08.000Z
2022-02-08T21:07:08.000Z
from importlib.metadata import version __version__ = version("mlserver-fusion")
20.25
40
0.814815
9
81
6.888889
0.777778
0.451613
0
0
0
0
0
0
0
0
0
0
0.098765
81
3
41
27
0.849315
0
0
0
0
0
0.185185
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
85b49d17a52934cf2077cd850eb36122b1329826
71
py
Python
server/apidocs/kettle/utils.py
HAYASAKA-Ryosuke/vue_apidocument_app
732b35c1886c8194aa2f9cb4ecfae7cd7b8d24ef
[ "MIT" ]
5
2018-01-09T07:22:21.000Z
2022-01-30T18:43:29.000Z
server/apidocs/kettle/utils.py
HAYASAKA-Ryosuke/vue_apidocument_app
732b35c1886c8194aa2f9cb4ecfae7cd7b8d24ef
[ "MIT" ]
1
2018-08-27T19:35:14.000Z
2021-08-07T04:49:40.000Z
server/apidocs/kettle/utils.py
HAYASAKA-Ryosuke/vue_apidocument_app
732b35c1886c8194aa2f9cb4ecfae7cd7b8d24ef
[ "MIT" ]
null
null
null
STATUS = {200: '200 OK', 404: '404 Not Found', 400: '400 BAD REQUEST'}
35.5
70
0.619718
12
71
3.666667
0.75
0
0
0
0
0
0
0
0
0
0
0.310345
0.183099
71
1
71
71
0.448276
0
0
0
0
0
0.478873
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a41b6000a1f3739f2e3a440c58baa5493ad63bb9
1,421
py
Python
ParserTongue/errors.py
blamedcloud/ParserTongue
4c5dc54d8639ada946438c74a25f7ce6e54cef1a
[ "MIT" ]
null
null
null
ParserTongue/errors.py
blamedcloud/ParserTongue
4c5dc54d8639ada946438c74a25f7ce6e54cef1a
[ "MIT" ]
null
null
null
ParserTongue/errors.py
blamedcloud/ParserTongue
4c5dc54d8639ada946438c74a25f7ce6e54cef1a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #errors.py class ParserTongueError(Exception): pass ######################## ### Tokenizer Errors ### ######################## class TokenizerError(ParserTongueError): pass class TokenInstantiationTypeError(TokenizerError): def __init__(self, message): self.message = message class UnknownTokenTypeError(TokenizerError): def __init__(self, message): self.message = message class TokenizerNoMatchError(TokenizerError): def __init__(self, message): self.message = message class TokenizerCreationError(TokenizerError): def __init__(self, message): self.message = message ###################### ### Grammar Errors ### ###################### class GrammarError(ParserTongueError): pass class GrammarParsingError(GrammarError): def __init__(self, message): self.message = message class RuleParsingError(GrammarError): def __init__(self, message): self.message = message class RuleLinkageError(GrammarError): def __init__(self, message): self.message = message class RuleTreeError(GrammarError): def __init__(self, message): self.message = message class GrammarLinkError(GrammarError): def __init__(self, message): self.message = message class GrammarDependencyError(GrammarError): def __init__(self, message): self.message = message
16.916667
50
0.658691
122
1,421
7.344262
0.229508
0.245536
0.122768
0.200893
0.589286
0.589286
0.589286
0.589286
0.479911
0
0
0.000873
0.193526
1,421
83
51
17.120482
0.780977
0.044335
0
0.638889
0
0
0
0
0
0
0
0
0
1
0.277778
false
0.083333
0
0
0.638889
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
a41fa918cfb6b3a1a5ae64bb4bd388f643281aa6
67
py
Python
source/libs/status_validator/__init__.py
eaxr/elasticsearch-cli
4eae551d8099f02a30443749eae09efbb636ea57
[ "MIT" ]
4
2019-07-13T13:29:31.000Z
2021-04-01T10:05:25.000Z
source/libs/status_validator/__init__.py
eaxr/elasticsearch-cli
4eae551d8099f02a30443749eae09efbb636ea57
[ "MIT" ]
null
null
null
source/libs/status_validator/__init__.py
eaxr/elasticsearch-cli
4eae551d8099f02a30443749eae09efbb636ea57
[ "MIT" ]
4
2019-08-21T15:59:37.000Z
2021-04-01T11:48:41.000Z
from .status import status_validator __all__ = [status_validator]
16.75
36
0.820896
8
67
6.125
0.625
0.612245
0
0
0
0
0
0
0
0
0
0
0.119403
67
3
37
22.333333
0.830508
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a4744d13bef07e41b7b65a7d459ced7de86e20cd
24
py
Python
src/statick_web/plugins/web_tool_plugins/__init__.py
axydes/statick-web
965160f21504558571c6d4118ec22e9f27f3c6d2
[ "CC0-1.0" ]
2
2020-02-07T00:13:53.000Z
2020-02-07T00:58:26.000Z
src/statick_web/plugins/web_tool_plugins/__init__.py
axydes/statick-web
965160f21504558571c6d4118ec22e9f27f3c6d2
[ "CC0-1.0" ]
19
2020-02-14T23:47:25.000Z
2022-02-28T21:38:01.000Z
src/statick_web/plugins/web_tool_plugins/__init__.py
axydes/statick-web
965160f21504558571c6d4118ec22e9f27f3c6d2
[ "CC0-1.0" ]
3
2020-02-12T16:16:54.000Z
2020-02-14T00:53:46.000Z
"""Web tool plugins."""
12
23
0.583333
3
24
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.125
24
1
24
24
0.666667
0.708333
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a48a9acd9bf83996d537af3220a5dc1c68c99807
289
py
Python
scripts/libs/spur/__init__.py
samueljero/BEADS
2cf78b8d375ccb250da175b3031fd29cb0cb2b92
[ "BSD-3-Clause" ]
14
2018-02-16T12:00:09.000Z
2021-09-15T09:37:13.000Z
scripts/libs/spur/__init__.py
samueljero/BEADS
2cf78b8d375ccb250da175b3031fd29cb0cb2b92
[ "BSD-3-Clause" ]
1
2018-08-18T23:06:53.000Z
2018-08-21T00:01:06.000Z
scripts/libs/spur/__init__.py
samueljero/BEADS
2cf78b8d375ccb250da175b3031fd29cb0cb2b92
[ "BSD-3-Clause" ]
10
2017-06-18T08:29:10.000Z
2021-06-07T12:16:27.000Z
from spur.local import LocalShell from spur.ssh import SshShell from spur.results import RunProcessError from spur.errors import NoSuchCommandError, CommandInitializationError __all__ = ["LocalShell", "SshShell", "RunProcessError", "NoSuchCommandError", "CommandInitializationError"]
36.125
77
0.823529
27
289
8.666667
0.481481
0.136752
0
0
0
0
0
0
0
0
0
0
0.100346
289
7
78
41.285714
0.9
0
0
0
0
0
0.266436
0.089965
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f1085afcf61a9f4fb63c91c00f876609021c3041
312
py
Python
examples/add_permissions.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
2
2018-02-18T15:23:18.000Z
2020-02-10T13:40:23.000Z
examples/add_permissions.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
41
2017-12-01T01:10:41.000Z
2021-08-24T14:08:09.000Z
examples/add_permissions.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
1
2021-08-10T17:46:14.000Z
2021-08-10T17:46:14.000Z
import grainy.const # literal namespace with integer permission flag user.grainy_permissions.add_permission("a.b.c", grainy.const.READ) # literal namespace with string permission flag user.grainy_permissions.add_permission("a.b.c", "r") # same for groups group.grainy_permissions.add_permission("a.b.c", "r")
28.363636
66
0.788462
47
312
5.106383
0.468085
0.2125
0.25
0.375
0.570833
0.570833
0.570833
0.570833
0.425
0.425
0
0
0.092949
312
10
67
31.2
0.848057
0.346154
0
0
0
0
0.085
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f16c20ce8b6112adde24550108312e08ee579daa
309
py
Python
onnxruntime/python/tools/quantization/__init__.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
onnxruntime/python/tools/quantization/__init__.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
onnxruntime/python/tools/quantization/__init__.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
from .quantize import quantize, quantize_static, quantize_dynamic, quantize_qat from .quantize import QuantizationMode from .calibrate import CalibrationDataReader, CalibraterBase, MinMaxCalibrater, create_calibrator, CalibrationMethod from .quant_utils import QuantType, QuantFormat, write_calibration_table
61.8
116
0.877023
32
309
8.25
0.65625
0.090909
0.136364
0
0
0
0
0
0
0
0
0
0.080906
309
4
117
77.25
0.929577
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
f179081383ee6e4b72ea5b1f82c11676c7681bdd
2,253
py
Python
cap_9/exercicios/9.11.py
rsmonteiro2021/execicios_python
d984508ec529c5a83b51354fc930fa8eafa40dc1
[ "MIT" ]
1
2021-04-26T02:55:16.000Z
2021-04-26T02:55:16.000Z
cap_9/exercicios/9.11.py
rsmonteiro2021/execicios_python
d984508ec529c5a83b51354fc930fa8eafa40dc1
[ "MIT" ]
null
null
null
cap_9/exercicios/9.11.py
rsmonteiro2021/execicios_python
d984508ec529c5a83b51354fc930fa8eafa40dc1
[ "MIT" ]
null
null
null
from user_admin import User, Privileges, Admin first_name = input('Digite o primeiro nome do usuário:\n') last_name = input('Digite o último nome do usuário:\n') full_name = first_name.title() + " " + last_name.title() usuarios = ['Roberto Monteiro', 'Kesia Jacqueline'] usuario = User(first_name.title(), last_name.title(), 1) usuario_admin = Admin(first_name.title(), last_name.title(), 1) if full_name in usuarios: print('Informações do Usuário:') usuario.describe_user() print('Menagem de boas vindas:') print(usuario.greet_user()) usuario.increment_login_attempts(1) usuario_admin.privileges.show_privileges() else: print('Usuário não cadastrado. Você tem mais 3 tentaiva!') while usuario.login_attempts > 0 and usuario.login_attempts <= 3: first_name = input('Digite o primeiro nome do usuário:\n') last_name = input('Digite o último nome do usuário:\n') full_name = first_name.title() + " " + last_name.title() usuario = User(first_name, last_name, usuario.login_attempts) if usuario.login_attempts > 0 and usuario.login_attempts < 3: if full_name in usuarios: print('Informações do Usuário:') usuario.describe_user() print('Menagem de boas vindas:') print(usuario.greet_user()) usuario.increment_login_attempts(1) break else: print('Informações do Usuário:') usuario.describe_user() print(full_name.title() + ' não está cadastrado.') usuario.increment_login_attempts(1) else: if full_name in usuarios: print('Informações do Usuário:') usuario.describe_user() print('Menagem de boas vindas:') print(usuario.greet_user()) usuario.increment_login_attempts(1) break else: print('Informações do Usuário:') usuario.describe_user() print(full_name.title() + ' não está cadastrado.') usuario.reset_login_attempts(0) print('Você deve esperar alguns minutos para tentar logar novamente!')
44.176471
86
0.614292
262
2,253
5.099237
0.236641
0.067365
0.067365
0.093563
0.757485
0.740269
0.740269
0.698353
0.698353
0.630988
0
0.007463
0.286285
2,253
50
87
45.06
0.823383
0
0
0.770833
0
0
0.226365
0
0
0
0
0
0
1
0
false
0
0.020833
0
0.020833
0.3125
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
74c4738dc3cc96c1b292c234f34c3c3b0e96ea0d
11
py
Python
_build/jupyter_execute/content/04-functions/namespaces_scope.py
ShanEllis/pythonbook
29cbf7045855c7fb281afe47bcbe31c0fce8543b
[ "MIT" ]
1
2020-06-24T21:21:51.000Z
2020-06-24T21:21:51.000Z
_build/jupyter_execute/content/04-functions/namespaces_scope.py
ShanEllis/pythonbook
29cbf7045855c7fb281afe47bcbe31c0fce8543b
[ "MIT" ]
1
2020-03-31T01:04:16.000Z
2020-03-31T01:04:16.000Z
_build/jupyter_execute/content/04-functions/namespaces_scope.py
ShanEllis/pythonbook
29cbf7045855c7fb281afe47bcbe31c0fce8543b
[ "MIT" ]
null
null
null
[AVOCADO]
3.666667
9
0.636364
1
11
7
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
11
2
10
5.5
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
74d887b6a2779b960567d581e4642640f6cccf7d
3,313
py
Python
tests/Unit/Evolution/Systems/GrMhd/ValenciaDivClean/Fluxes.py
nilsvu/spectre
1455b9a8d7e92db8ad600c66f54795c29c3052ee
[ "MIT" ]
117
2017-04-08T22:52:48.000Z
2022-03-25T07:23:36.000Z
tests/Unit/Evolution/Systems/GrMhd/ValenciaDivClean/Fluxes.py
GitHimanshuc/spectre
4de4033ba36547113293fe4dbdd77591485a4aee
[ "MIT" ]
3,177
2017-04-07T21:10:18.000Z
2022-03-31T23:55:59.000Z
tests/Unit/Evolution/Systems/GrMhd/ValenciaDivClean/Fluxes.py
geoffrey4444/spectre
9350d61830b360e2d5b273fdd176dcc841dbefb0
[ "MIT" ]
85
2017-04-07T19:36:13.000Z
2022-03-01T10:21:00.000Z
# Distributed under the MIT License. # See LICENSE.txt for details. import numpy as np def b_dot_v(magnetic_field, spatial_velocity, spatial_metric): return np.einsum("ab, ab", spatial_metric, np.outer(magnetic_field, spatial_velocity)) def b_squared(magnetic_field, spatial_metric): return np.einsum("ab, ab", spatial_metric, np.outer(magnetic_field, magnetic_field)) def magnetic_field_one_form(magnetic_field, spatial_metric): return np.einsum("a, ia", magnetic_field, spatial_metric) def p_star(pressure, b_dot_v, b_squared, lorentz_factor): return pressure + 0.5 * (b_dot_v**2 + b_squared / lorentz_factor**2) def spatial_velocity_one_form(spatial_velocity, spatial_metric): return np.einsum("a, ia", spatial_velocity, spatial_metric) def tilde_d_flux(tilde_d, tilde_tau, tilde_s, tilde_b, tilde_phi, lapse, shift, sqrt_det_spatial_metric, spatial_metric, inv_spatial_metric, pressure, spatial_velocity, lorentz_factor, magnetic_field): return tilde_d * (lapse * spatial_velocity - shift) def tilde_tau_flux(tilde_d, tilde_tau, tilde_s, tilde_b, tilde_phi, lapse, shift, sqrt_det_spatial_metric, spatial_metric, inv_spatial_metric, pressure, spatial_velocity, lorentz_factor, magnetic_field): b_dot_v_ = b_dot_v(magnetic_field, spatial_velocity, spatial_metric) return ( sqrt_det_spatial_metric * lapse * p_star(pressure, b_dot_v_, b_squared(magnetic_field, spatial_metric), lorentz_factor) * spatial_velocity + tilde_tau * (lapse * spatial_velocity - shift) - lapse * b_dot_v_ * tilde_b) def tilde_s_flux(tilde_d, tilde_tau, tilde_s, tilde_b, tilde_phi, lapse, shift, sqrt_det_spatial_metric, spatial_metric, inv_spatial_metric, pressure, spatial_velocity, lorentz_factor, magnetic_field): b_dot_v_ = b_dot_v(magnetic_field, spatial_velocity, spatial_metric) b_i = (magnetic_field_one_form(magnetic_field, spatial_metric) / lorentz_factor + spatial_velocity_one_form(spatial_velocity, spatial_metric) * lorentz_factor * b_dot_v_) result = np.outer(lapse * spatial_velocity - shift, tilde_s) result -= lapse / lorentz_factor * np.outer(tilde_b, b_i) result += ( sqrt_det_spatial_metric * lapse * p_star(pressure, b_dot_v_, b_squared(magnetic_field, spatial_metric), lorentz_factor) * np.identity(shift.size)) return result def tilde_b_flux(tilde_d, tilde_tau, tilde_s, tilde_b, tilde_phi, lapse, shift, sqrt_det_spatial_metric, spatial_metric, inv_spatial_metric, pressure, spatial_velocity, lorentz_factor, magnetic_field): result = np.outer(lapse * spatial_velocity - shift, tilde_b) result += lapse * inv_spatial_metric * tilde_phi result -= lapse * np.outer(tilde_b, spatial_velocity) return result def tilde_phi_flux(tilde_d, tilde_tau, tilde_s, tilde_b, tilde_phi, lapse, shift, sqrt_det_spatial_metric, spatial_metric, inv_spatial_metric, pressure, spatial_velocity, lorentz_factor, magnetic_field): return lapse * tilde_b - tilde_phi * shift
42.474359
79
0.70329
445
3,313
4.8
0.121348
0.194757
0.025749
0.065543
0.738764
0.738764
0.735019
0.713015
0.557584
0.557584
0
0.001542
0.217024
3,313
77
80
43.025974
0.821897
0.019016
0
0.407407
0
0
0.006775
0
0
0
0
0
0
1
0.185185
false
0
0.018519
0.12963
0.388889
0
0
0
0
null
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
4
2d01b9834c0c4bbc4fdcbaaad5e9900717f88b79
434
py
Python
Desafios 2/m01/ex026.py
joaquimjfernandes/Curso-de-Python
3356211248d355eaa67098cebe5cdb8cf6badc75
[ "MIT" ]
null
null
null
Desafios 2/m01/ex026.py
joaquimjfernandes/Curso-de-Python
3356211248d355eaa67098cebe5cdb8cf6badc75
[ "MIT" ]
null
null
null
Desafios 2/m01/ex026.py
joaquimjfernandes/Curso-de-Python
3356211248d355eaa67098cebe5cdb8cf6badc75
[ "MIT" ]
null
null
null
print('\033[32;1mDESAFIO 26 - Ocorrência de uma String\033[m') print('\033[32;1mALUNO:\033[m \033[36;1mJoaquim Fernandes\033[m') frase = str(input('Digite uma Frase: ')).strip().upper() print(f'A letra \033[33;1mA\033[m aparece {frase.count("A")} vezes na Frase.') print(f'A primeira letra \033[33;1mA\033[m apareceu na Posição {frase.find("A")+1}') print(f'A última letra \033[33;1mA\033[m apareceu na Posição {frase.rfind("A")+1}')
62
84
0.700461
81
434
3.753086
0.444444
0.078947
0.069079
0.128289
0.3125
0.3125
0.256579
0.256579
0.256579
0.256579
0
0.147208
0.092166
434
6
85
72.333333
0.624365
0
0
0
0
0.666667
0.788018
0.050691
0
0
0
0
0
1
0
false
0
0
0
0
0.833333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
2d378649879ff1f7f2dce2097557c9db5f809b3d
73
py
Python
tno/mpc/protocols/risk_propagation/test/__init__.py
TNO-MPC/protocols.risk_propagation
097b1d9c056ec1e8ab17a8ae6c08987b641c40ac
[ "Apache-2.0" ]
1
2021-09-05T04:52:13.000Z
2021-09-05T04:52:13.000Z
tno/mpc/protocols/risk_propagation/test/__init__.py
TNO-MPC/protocols.risk_propagation
097b1d9c056ec1e8ab17a8ae6c08987b641c40ac
[ "Apache-2.0" ]
null
null
null
tno/mpc/protocols/risk_propagation/test/__init__.py
TNO-MPC/protocols.risk_propagation
097b1d9c056ec1e8ab17a8ae6c08987b641c40ac
[ "Apache-2.0" ]
null
null
null
""" Testing module of the tno.mpc.protocols.risk_propagation library """
18.25
64
0.767123
10
73
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.109589
73
3
65
24.333333
0.846154
0.876712
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
740b03689bc43aae97ed7c5a7718c2493aae8f39
148
py
Python
mapcreator/cli.py
ollivaan/mapcreator
72d38a3cec2102b82f739758f37717bb5a2107da
[ "MIT" ]
null
null
null
mapcreator/cli.py
ollivaan/mapcreator
72d38a3cec2102b82f739758f37717bb5a2107da
[ "MIT" ]
null
null
null
mapcreator/cli.py
ollivaan/mapcreator
72d38a3cec2102b82f739758f37717bb5a2107da
[ "MIT" ]
null
null
null
import click @click.group() def cli(): pass @click.command() def hello(): click.secho('Hello world!', fg='green') cli.add_command(hello)
12.333333
43
0.655405
21
148
4.571429
0.619048
0
0
0
0
0
0
0
0
0
0
0
0.162162
148
11
44
13.454545
0.774194
0
0
0
0
0
0.114865
0
0
0
0
0
0
1
0.25
true
0.125
0.125
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
741f894714f3237ec9c8d05ca269b5a0521a2eb9
90
py
Python
py/20.py
higgsd/euler
340f192ed2831ab9d37df43fe19e39971ef19cf8
[ "BSD-2-Clause" ]
null
null
null
py/20.py
higgsd/euler
340f192ed2831ab9d37df43fe19e39971ef19cf8
[ "BSD-2-Clause" ]
null
null
null
py/20.py
higgsd/euler
340f192ed2831ab9d37df43fe19e39971ef19cf8
[ "BSD-2-Clause" ]
null
null
null
# 648 import euler N = 100 print sum([int(c) for c in str(euler.product(xrange(1,N+1)))])
18
62
0.666667
19
90
3.157895
0.789474
0
0
0
0
0
0
0
0
0
0
0.103896
0.144444
90
4
63
22.5
0.675325
0.033333
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
743e6566d13977fb0fab8bc419748b4b6839cceb
66
py
Python
deeppavlov/deprecated/agents/rich_content/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
3
2020-04-07T10:16:38.000Z
2021-04-16T01:30:52.000Z
deeppavlov/deprecated/agents/rich_content/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
11
2020-09-25T22:32:27.000Z
2022-02-10T00:39:45.000Z
deeppavlov/deprecated/agents/rich_content/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
1
2020-06-02T20:41:31.000Z
2020-06-02T20:41:31.000Z
from .default_rich_content import Button, ButtonsFrame, PlainText
33
65
0.863636
8
66
6.875
1
0
0
0
0
0
0
0
0
0
0
0
0.090909
66
1
66
66
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
776d53d2809db93126fbffef36e8e54acbf5659c
40
py
Python
codes/raulcr-p4090-Accepted-s1256049.py
raulcr98/coj-solutions
b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca
[ "MIT" ]
1
2020-03-17T01:44:21.000Z
2020-03-17T01:44:21.000Z
codes/raulcr-p4090-Accepted-s1256049.py
raulcr98/coj-solutions
b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca
[ "MIT" ]
null
null
null
codes/raulcr-p4090-Accepted-s1256049.py
raulcr98/coj-solutions
b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca
[ "MIT" ]
null
null
null
a = int(raw_input()) print (3000 - a)
13.333333
21
0.575
7
40
3.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0.129032
0.225
40
3
22
13.333333
0.580645
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
7778e0a6d269a496c5ee5f1be88dd9288473cb56
187
py
Python
pycrf/modules/__init__.py
epwalsh/pytorch-crf
561e00ebcfdc678e46cc878c1cb91293539c26b0
[ "MIT" ]
69
2018-08-20T14:57:53.000Z
2022-01-13T04:27:32.000Z
pycrf/modules/__init__.py
epwalsh/pytorch-crf
561e00ebcfdc678e46cc878c1cb91293539c26b0
[ "MIT" ]
54
2018-06-02T16:07:59.000Z
2019-01-03T20:21:52.000Z
pycrf/modules/__init__.py
epwalsh/pytorch-crf
561e00ebcfdc678e46cc878c1cb91293539c26b0
[ "MIT" ]
13
2018-06-02T15:52:53.000Z
2022-01-13T04:29:02.000Z
"""Defines nn module classes for building a model.""" from .char_lstm import CharLSTM from .char_cnn import CharCNN from .lstm_crf import LSTMCRF from .crf import ConditionalRandomField
26.714286
53
0.807487
27
187
5.481481
0.666667
0.108108
0
0
0
0
0
0
0
0
0
0
0.13369
187
6
54
31.166667
0.91358
0.251337
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
77a07495d27719f675458a685d2954f8fb09b182
423
py
Python
collectRecords.py
fsulib/metadataWorkflowResources
b7d3f846d7b4d5fc30321b4b462ad40f6ebdc4d0
[ "MIT" ]
5
2016-01-14T22:50:56.000Z
2017-02-03T19:14:05.000Z
collectRecords.py
fsulib/metadataWorkflowResources
b7d3f846d7b4d5fc30321b4b462ad40f6ebdc4d0
[ "MIT" ]
2
2015-06-09T17:22:27.000Z
2016-02-04T13:48:53.000Z
collectRecords.py
fsulib/metadataWorkflowResources
b7d3f846d7b4d5fc30321b4b462ad40f6ebdc4d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import shutil import sys import glob path = sys.argv[1] for directory in glob.glob( path + 'FSU*'): if os.path.isdir( directory) == True: # print('MODS/' + directory.split('/')[-1] + '.xml'+ ':' + path + 'MODS/' + directory.split('/')[-1] + '.xml') shutil.copy('MODS/' + directory.split('/')[-1] + '.xml', path + 'MODS/' + directory.split('/')[-1] + '.xml')
30.214286
118
0.550827
54
423
4.314815
0.444444
0.223176
0.309013
0.32618
0.412017
0.412017
0.412017
0.412017
0.412017
0.412017
0
0.017699
0.198582
423
13
119
32.538462
0.669617
0.326241
0
0
0
0
0.084806
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
77ac25098c3004e0f9a3a671f0dbb20b66ac1e58
29
py
Python
homeassistant/components/horizon/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/horizon/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/horizon/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The horizon component."""
14.5
28
0.655172
3
29
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
1
29
29
0.730769
0.758621
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
77b86c8bc35e06df44321a2b8b175cc49f81af17
1,833
py
Python
2020/day12/two.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
2020/day12/two.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
2020/day12/two.py
geberl/advent-of-code
152ac94676830ac920bf06a1a3f1aa88377cd775
[ "MIT" ]
null
null
null
import copy data = [] with open("input.txt") as file_handler: for line in file_handler: data.append(line.strip()) ship_abs_pos = [0, 0] # N/S , W/E wayp_rel_pos = [1, 10] for d in data: instr = d[0] param = int(d[1:]) if instr == "N": wayp_rel_pos[0] = wayp_rel_pos[0] + param elif instr == "S": wayp_rel_pos[0] = wayp_rel_pos[0] - param elif instr == "E": wayp_rel_pos[1] = wayp_rel_pos[1] + param elif instr == "W": wayp_rel_pos[1] = wayp_rel_pos[1] - param elif instr == "L": old_wayp_rel_pos = copy.deepcopy(wayp_rel_pos) if param == 90: wayp_rel_pos[0] = old_wayp_rel_pos[1] * 1 wayp_rel_pos[1] = old_wayp_rel_pos[0] * -1 elif param == 180: wayp_rel_pos[0] = old_wayp_rel_pos[0] * -1 wayp_rel_pos[1] = old_wayp_rel_pos[1] * -1 elif param == 270: wayp_rel_pos[0] = old_wayp_rel_pos[1] * -1 wayp_rel_pos[1] = old_wayp_rel_pos[0] * 1 else: print("error") elif instr == "R": old_wayp_rel_pos = copy.deepcopy(wayp_rel_pos) if param == 90: wayp_rel_pos[0] = old_wayp_rel_pos[1] * -1 wayp_rel_pos[1] = old_wayp_rel_pos[0] * 1 elif param == 180: wayp_rel_pos[0] = old_wayp_rel_pos[0] * -1 wayp_rel_pos[1] = old_wayp_rel_pos[1] * -1 elif param == 270: wayp_rel_pos[0] = old_wayp_rel_pos[1] * 1 wayp_rel_pos[1] = old_wayp_rel_pos[0] * -1 else: print("error") elif instr == "F": ship_abs_pos[0] = ship_abs_pos[0] + param * wayp_rel_pos[0] ship_abs_pos[1] = ship_abs_pos[1] + param * wayp_rel_pos[1] print(ship_abs_pos) print(abs(ship_abs_pos[0]) + abs(ship_abs_pos[1])) # 8266 too low
30.55
67
0.564103
307
1,833
3.009772
0.153094
0.295455
0.422078
0.214286
0.734848
0.690476
0.690476
0.690476
0.690476
0.690476
0
0.061767
0.302237
1,833
59
68
31.067797
0.660672
0.012002
0
0.489796
0
0
0.014381
0
0
0
0
0
0
1
0
false
0
0.020408
0
0.020408
0.081633
0
0
0
null
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4