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
53d1a4c43797542ab921deab118ffdd8f0a1daf4
1,697
py
Python
tests/db/test_rows_from_chunks.py
ericych/pydruid_eric
dce17e4ecf21bf38d002694c99e39af50521aae9
[ "Apache-2.0" ]
null
null
null
tests/db/test_rows_from_chunks.py
ericych/pydruid_eric
dce17e4ecf21bf38d002694c99e39af50521aae9
[ "Apache-2.0" ]
5
2020-03-24T22:57:05.000Z
2020-10-09T19:17:02.000Z
tests/db/test_rows_from_chunks.py
ericych/pydruid_eric
dce17e4ecf21bf38d002694c99e39af50521aae9
[ "Apache-2.0" ]
1
2020-10-12T13:26:26.000Z
2020-10-12T13:26:26.000Z
# -*- coding: utf-8 -*- import unittest from pydruid.db.api import rows_from_chunks class RowsFromChunksTestSuite(unittest.TestCase): def test_rows_from_chunks_empty(self): chunks = [] expected = [] result = list(rows_from_chunks(chunks)) self.assertEquals(result, expected) ...
28.283333
78
0.529169
169
1,697
5.04142
0.236686
0.103286
0.180751
0.088028
0.734742
0.671362
0.652582
0.652582
0.652582
0.652582
0
0.000839
0.297584
1,697
59
79
28.762712
0.713926
0.012375
0
0.468085
0
0
0.170251
0
0
0
0
0
0.106383
1
0.106383
false
0
0.042553
0
0.170213
0
0
0
0
null
0
1
0
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
2
53d79642b0f4b093f2cd3a8ed35ae91b9bdcb207
306
py
Python
graph_wrap/tastypie/graphql_view.py
OmarThinks/graph_wrap
5ea058eb2ce7234926cf43c54b15d893f602c38c
[ "MIT" ]
66
2020-03-28T17:33:51.000Z
2022-03-01T08:35:14.000Z
graph_wrap/tastypie/graphql_view.py
OmarThinks/graph_wrap
5ea058eb2ce7234926cf43c54b15d893f602c38c
[ "MIT" ]
6
2020-11-09T21:00:33.000Z
2021-09-30T14:16:44.000Z
graph_wrap/tastypie/graphql_view.py
OmarThinks/graph_wrap
5ea058eb2ce7234926cf43c54b15d893f602c38c
[ "MIT" ]
3
2021-03-27T21:33:15.000Z
2022-02-09T09:08:04.000Z
from django.views.decorators.http import require_http_methods from graphene_django.views import GraphQLView @require_http_methods(['POST']) def graphql_view(request): from graph_wrap.tastypie import schema schema = schema() view = GraphQLView.as_view(schema=schema) return view(request)
25.5
61
0.781046
40
306
5.775
0.525
0.155844
0.155844
0
0
0
0
0
0
0
0
0
0.137255
306
11
62
27.818182
0.875
0
0
0
0
0
0.013115
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
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
0
0
0
1
0
1
0
0
2
53e074da5cda6408ea72538c76538b732ff70213
981
py
Python
apptest/admin.py
ericsz0/autotest
6010b58a9f8d19644e2b185f24639e0caf81c538
[ "MIT" ]
null
null
null
apptest/admin.py
ericsz0/autotest
6010b58a9f8d19644e2b185f24639e0caf81c538
[ "MIT" ]
null
null
null
apptest/admin.py
ericsz0/autotest
6010b58a9f8d19644e2b185f24639e0caf81c538
[ "MIT" ]
null
null
null
from django.contrib import admin from apptest.models import Appcase,Appcasestep from webtest.models import Webcase,Webcasestep # Register your models here. class AppcasestepAdmin(admin.TabularInline): list_display = ['appteststep','apptestobjname','appfindmethod','appevelement','appoptmethod','appassertdata','appt...
42.652174
172
0.763507
95
981
7.8
0.505263
0.059379
0.064777
0.078273
0
0
0
0
0
0
0
0.002268
0.100917
981
23
173
42.652174
0.837868
0.026504
0
0.111111
0
0
0.315514
0
0
0
0
0
0.111111
1
0
false
0.055556
0.166667
0
0.944444
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
0
0
1
0
0
1
0
0
2
53e6a737df03b3bafffb1324b1798cabf151cd55
392
py
Python
src/shortener/management/commands/refreshcodes.py
dishantrathi/litresin.ml
ade3eb13470f34df4835134970877370ab4ea2c2
[ "MIT" ]
1
2018-02-25T07:09:54.000Z
2018-02-25T07:09:54.000Z
src/shortener/management/commands/refreshcodes.py
dishantrathi/litresin.ml
ade3eb13470f34df4835134970877370ab4ea2c2
[ "MIT" ]
null
null
null
src/shortener/management/commands/refreshcodes.py
dishantrathi/litresin.ml
ade3eb13470f34df4835134970877370ab4ea2c2
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from shortener.models import LitresinURL class Command(BaseCommand): help = 'Refrehes all LitresinURL shortcodes' def add_arguments(self, parser): parser.add_argument('--items', type=int) def handle(self, *args, **options): ...
30.153846
77
0.742347
45
392
6.4
0.711111
0
0
0
0
0
0
0
0
0
0
0
0.153061
392
13
77
30.153846
0.86747
0
0
0
0
0
0.119593
0
0
0
0
0
0
1
0.25
false
0
0.25
0.125
0.875
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
0
1
0
0
0
2
53e9a737457a97f92f0b7acda4b42454f0554961
398
py
Python
Python_challege/count_substring.py
pavi-ninjaac/HackerRank
1808c8ee8fb475e453aa1c19feb3734fa2be6325
[ "MIT" ]
null
null
null
Python_challege/count_substring.py
pavi-ninjaac/HackerRank
1808c8ee8fb475e453aa1c19feb3734fa2be6325
[ "MIT" ]
null
null
null
Python_challege/count_substring.py
pavi-ninjaac/HackerRank
1808c8ee8fb475e453aa1c19feb3734fa2be6325
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 13 20:04:26 2020 @author: ninjaac """ def count_substring(string, sub_string): return string.count(sub_string) #return (''.join(string)).count(''.join(sub_string)) if __name__ == '__main__': string = input().strip() sub_string = input().stri...
22.111111
57
0.61809
50
398
4.62
0.54
0.194805
0.17316
0.199134
0.251082
0
0
0
0
0
0
0.041801
0.218593
398
17
58
23.411765
0.700965
0.319095
0
0
0
0
0.032653
0
0
0
0
0
0
1
0.142857
false
0
0
0.142857
0.285714
0.142857
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
0
0
0
0
1
0
0
0
2
53fd6ad6f3a9859c11de1a88fe0ca83c66902766
100
py
Python
Solutions/PAT/Advanced/1092.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Advanced/1092.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Advanced/1092.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import sys dshop={} shop=input() need=input() for i in range(n): pass
9.090909
22
0.64
17
100
3.764706
0.941176
0
0
0
0
0
0
0
0
0
0
0.012346
0.19
100
10
23
10
0.777778
0.21
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.166667
0.166667
0
0.166667
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
0
0
1
0
0
0
0
0
2
990504124691d1af8843275d181bf46cb8fd79a7
2,250
py
Python
truffe2/notifications/models.py
GayLaurent/truffe2
477f9408f91c9417705dc792dd2eef7de758486b
[ "BSD-2-Clause" ]
null
null
null
truffe2/notifications/models.py
GayLaurent/truffe2
477f9408f91c9417705dc792dd2eef7de758486b
[ "BSD-2-Clause" ]
null
null
null
truffe2/notifications/models.py
GayLaurent/truffe2
477f9408f91c9417705dc792dd2eef7de758486b
[ "BSD-2-Clause" ]
null
null
null
from django.db import models from django.db.models.deletion import PROTECT, PROTECT from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import fields from django.conf import settings from django.utils.translation import gettext_lazy as _ import json class Notification(models.M...
35.15625
122
0.757333
285
2,250
5.814035
0.308772
0.03621
0.075438
0.090525
0.455643
0.393482
0.290887
0.212432
0.212432
0.212432
0
0.004668
0.143111
2,250
63
123
35.714286
0.854772
0
0
0.170732
0
0
0.120444
0.067556
0
0
0
0
0
1
0.146341
false
0
0.170732
0.121951
0.97561
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
0
0
0
0
1
1
0
0
2
99056d08fe7ecbe6769c03e5d36a08939b25dc1e
360
py
Python
Round 1/2.statements/run.py
beetlesoup/udemy-python-scripting-a-car
ae41491161821a8f4e63fc86c368a71bb3d6cc15
[ "Unlicense" ]
null
null
null
Round 1/2.statements/run.py
beetlesoup/udemy-python-scripting-a-car
ae41491161821a8f4e63fc86c368a71bb3d6cc15
[ "Unlicense" ]
null
null
null
Round 1/2.statements/run.py
beetlesoup/udemy-python-scripting-a-car
ae41491161821a8f4e63fc86c368a71bb3d6cc15
[ "Unlicense" ]
null
null
null
print("hello world!") from browser import document, window, alert env = window.env def PrintNiceMessage(message): window.swal(message, "", "success") ###################### # Start Learning Here ###################### env.step(0) env.step(0) env.step(0) env.step(0) ####################### ## En...
18.947368
44
0.491667
37
360
4.783784
0.567568
0.158192
0.180791
0.186441
0.180791
0.180791
0.180791
0.180791
0.180791
0
0
0.013201
0.158333
360
19
45
18.947368
0.570957
0.102778
0
0.444444
0
0
0.089623
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0.111111
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
0
0
0
0
0
2
54cb3a3824a01a29171f9486e8846d780dc1ee0b
1,618
py
Python
pydis_site/apps/api/viewsets/bot/offensive_message.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
700
2018-11-17T15:56:51.000Z
2022-03-30T22:53:17.000Z
pydis_site/apps/api/viewsets/bot/offensive_message.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
542
2018-11-17T13:39:42.000Z
2022-03-31T11:24:00.000Z
pydis_site/apps/api/viewsets/bot/offensive_message.py
Transfusion/site
6992491f8c5f074e17c34d09553a715425112652
[ "MIT" ]
178
2018-11-21T09:06:56.000Z
2022-03-31T07:43:28.000Z
from rest_framework.mixins import ( CreateModelMixin, DestroyModelMixin, ListModelMixin ) from rest_framework.viewsets import GenericViewSet from pydis_site.apps.api.models.bot.offensive_message import OffensiveMessage from pydis_site.apps.api.serializers import OffensiveMessageSerializer class Offensive...
26.096774
77
0.643387
163
1,618
6.325153
0.533742
0.082444
0.058196
0.032978
0.108632
0.069835
0.069835
0
0
0
0
0.061275
0.243511
1,618
61
78
26.52459
0.781046
0.593943
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.538462
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
0
0
0
1
0
1
0
0
2
54d17f0bb7a7260eb729e3f73b629de662c622ec
146
py
Python
helpers/apps.py
bluebamus/django_function_based_web_site
5d3b453334110b6d49e5dbe09607df839bc5b649
[ "MIT" ]
null
null
null
helpers/apps.py
bluebamus/django_function_based_web_site
5d3b453334110b6d49e5dbe09607df839bc5b649
[ "MIT" ]
null
null
null
helpers/apps.py
bluebamus/django_function_based_web_site
5d3b453334110b6d49e5dbe09607df839bc5b649
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HelpersConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'helpers'
20.857143
56
0.760274
17
146
6.411765
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.150685
146
6
57
24.333333
0.879032
0
0
0
0
0
0.246575
0.19863
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
0
2
54d24f8e32dd64fca081cffc9246eee021071dcc
649
py
Python
products-service/tests/test_service.py
piotrb5e3/sanic-uservices-demo
8e9ae3fd7a16fdd5f10426195d3300a98d886974
[ "MIT" ]
null
null
null
products-service/tests/test_service.py
piotrb5e3/sanic-uservices-demo
8e9ae3fd7a16fdd5f10426195d3300a98d886974
[ "MIT" ]
null
null
null
products-service/tests/test_service.py
piotrb5e3/sanic-uservices-demo
8e9ae3fd7a16fdd5f10426195d3300a98d886974
[ "MIT" ]
1
2019-03-24T18:49:55.000Z
2019-03-24T18:49:55.000Z
from service import app def test_all_prooducts(): request, response = app.test_client.get('/') assert response.status == 200 response_body = json.loads(response.body) assert len(response_body) == 4 def test_single_product(): request, response = app.test_client.get('/0') assert response.statu...
28.217391
69
0.684129
88
649
4.897727
0.420455
0.227378
0.167053
0.153132
0.215777
0.215777
0
0
0
0
0
0.0394
0.178737
649
22
70
29.5
0.769231
0
0
0.125
0
0
0.098613
0
0
0
0
0
0.5
1
0.1875
false
0
0.0625
0
0.25
0
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
0
1
0
0
0
0
0
0
0
0
0
2
54e30f9cec0b21f3126ae5cb900dfa2f46ca1b59
776
py
Python
supporting_code/utilities/image_utilities.py
MAnfal/intro-to-ml-nd-image-classifier
b8b4f3e4b6cdee6734008dab26207bd62024b3f8
[ "MIT" ]
null
null
null
supporting_code/utilities/image_utilities.py
MAnfal/intro-to-ml-nd-image-classifier
b8b4f3e4b6cdee6734008dab26207bd62024b3f8
[ "MIT" ]
null
null
null
supporting_code/utilities/image_utilities.py
MAnfal/intro-to-ml-nd-image-classifier
b8b4f3e4b6cdee6734008dab26207bd62024b3f8
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image ''' Scales, crops, and normalizes a PIL image for a PyTorch model, returns an Numpy array. ''' def get_image_as_np_array(image_path, image_resize_size, center_crop_size, network_means, network_std_dev): im = Image.open(image_path) im = im.resize((image_resize_size,...
25.032258
107
0.658505
113
776
4.150442
0.327434
0.164179
0.223881
0.223881
0.424307
0.317697
0.255864
0.255864
0.255864
0.255864
0
0.017065
0.244845
776
30
108
25.866667
0.783276
0
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
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
0
0
0
0
0
0
0
2
54f05494e7fb6c6a5784088ca544bce3c0f96767
1,017
py
Python
aiida/sphinxext/__init__.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
1
2019-04-29T12:39:31.000Z
2019-04-29T12:39:31.000Z
aiida/sphinxext/__init__.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
aiida/sphinxext/__init__.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
37.666667
82
0.506391
99
1,017
5.020202
0.676768
0.032193
0.084507
0
0
0
0
0
0
0
0
0.005398
0.271386
1,017
26
83
39.115385
0.665317
0.581121
0
0
0
0
0.132743
0
0
0
0
0
0
1
0.166667
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
0
0
0
0
0
1
0
1
0
0
2
54f20614d650167877bfc902c76c2be76d94c906
5,181
py
Python
lib/custom_whatlies/embedding.py
Pliploop/NLP_Bulk_labelling_app
a9a7bf3ea5b48730b56a901a9b857322c6b1f75a
[ "MIT" ]
null
null
null
lib/custom_whatlies/embedding.py
Pliploop/NLP_Bulk_labelling_app
a9a7bf3ea5b48730b56a901a9b857322c6b1f75a
[ "MIT" ]
null
null
null
lib/custom_whatlies/embedding.py
Pliploop/NLP_Bulk_labelling_app
a9a7bf3ea5b48730b56a901a9b857322c6b1f75a
[ "MIT" ]
null
null
null
from typing import Union, Optional, Sequence, Callable from copy import deepcopy import numpy as np import scipy.spatial.distance as scipy_distance from sklearn.metrics import pairwise_distances class Embedding: """ This object represents a word embedding. It contains a vector and a name. Arguments: ...
24.789474
184
0.556263
604
5,181
4.687086
0.220199
0.067821
0.042388
0.050865
0.451077
0.434122
0.430237
0.430237
0.417167
0.403038
0
0.017882
0.320015
5,181
208
185
24.908654
0.785694
0.431963
0
0.2
0
0
0.070441
0
0
0
0
0
0
1
0.233333
false
0
0.083333
0.033333
0.55
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
0
0
1
0
0
2
54f6140f1a6efe56fe7f82462ccabd1e06cad830
1,434
py
Python
prol/user/views.py
onagbonoga/goals_tracking_app
6618cc87316833ddec1524eab5f82b544fac21d0
[ "MIT" ]
null
null
null
prol/user/views.py
onagbonoga/goals_tracking_app
6618cc87316833ddec1524eab5f82b544fac21d0
[ "MIT" ]
null
null
null
prol/user/views.py
onagbonoga/goals_tracking_app
6618cc87316833ddec1524eab5f82b544fac21d0
[ "MIT" ]
null
null
null
from flask import Flask, url_for, redirect, Blueprint,render_template,session from werkzeug.security import generate_password_hash from prol import db from prol.user.forms import RegisterForm, LoginForm from prol.user.models import User user_app = Blueprint('User',__name__) @user_app.route('/register', methods=('GE...
28.68
77
0.737099
206
1,434
4.936893
0.257282
0.088496
0.047198
0.058997
0.431662
0.339233
0.292035
0.259587
0.259587
0.259587
0
0
0.108787
1,434
49
78
29.265306
0.795775
0.02371
0
0.195122
1
0
0.105075
0
0
0
0
0
0
1
0.097561
false
0.073171
0.121951
0.02439
0.365854
0.04878
0
0
0
null
0
0
0
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
0
0
1
0
0
0
0
0
2
070030e2c1af68b4462e6f753228ac1e6cf6ad66
496
py
Python
composition.py
prabal255/Data-structures-and-Algorithms
54fe5b3c83764fea657f5f3a3c17d9bf04b06f94
[ "MIT" ]
null
null
null
composition.py
prabal255/Data-structures-and-Algorithms
54fe5b3c83764fea657f5f3a3c17d9bf04b06f94
[ "MIT" ]
null
null
null
composition.py
prabal255/Data-structures-and-Algorithms
54fe5b3c83764fea657f5f3a3c17d9bf04b06f94
[ "MIT" ]
null
null
null
class Salary: def __init__(self,pay,bonus): self.pay=pay self.bonus=bonus def annual(self): return (self.pay*12)+self.bonus class employee: def __init__(self,name,age,pay,bonus): self.name=name self.age=age self.pay=pay self.bonus=bonus ...
23.619048
43
0.596774
68
496
4.176471
0.279412
0.098592
0.077465
0.098592
0.169014
0.169014
0
0
0
0
0
0.016854
0.282258
496
21
44
23.619048
0.780899
0
0
0.235294
0
0
0.008386
0
0
0
0
0
0
1
0.235294
false
0
0
0.117647
0.470588
0.058824
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
0
1
0
0
0
2
0701fc60672d2e35027442de2fa28eb4d29e1f93
1,136
py
Python
scripts/03-predict.py
LaudateCorpus1/salgan
86a326ad6d7355f46709f9612562e776ca45e5cb
[ "MIT" ]
243
2017-01-05T02:00:37.000Z
2019-05-18T15:03:07.000Z
scripts/03-predict.py
saitejamalyala/salgan
86a326ad6d7355f46709f9612562e776ca45e5cb
[ "MIT" ]
37
2017-01-05T22:06:05.000Z
2019-04-08T08:55:18.000Z
scripts/03-predict.py
LaudateCorpus1/salgan
86a326ad6d7355f46709f9612562e776ca45e5cb
[ "MIT" ]
96
2017-01-05T21:29:04.000Z
2019-05-20T01:53:54.000Z
import os import numpy as np from tqdm import tqdm import cv2 import glob from utils import * from constants import * from models.model_bce import ModelBCE def test(path_to_images, path_output_maps, model_to_test=None): list_img_files = [k.split('/')[-1].split('.')[0] for k in glob.glob(os.path.join(path_to_image...
36.645161
125
0.716549
181
1,136
4.21547
0.39779
0.047182
0.094364
0.055046
0.167759
0.115334
0.086501
0.086501
0.086501
0
0
0.01569
0.158451
1,136
30
126
37.866667
0.782427
0.113556
0
0
0
0
0.050898
0
0
0
0
0
0
0
null
null
0
0.380952
null
null
0.047619
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
1
0
0
0
1
0
0
0
0
2
0703af328f366cd0db7cd7a851945406c5aef29f
295
py
Python
src/217.py
hippieZhou/The-Way-Of-LeetCode
c63d777e01413726b6214c616c20c61f8e5b330b
[ "MIT" ]
null
null
null
src/217.py
hippieZhou/The-Way-Of-LeetCode
c63d777e01413726b6214c616c20c61f8e5b330b
[ "MIT" ]
null
null
null
src/217.py
hippieZhou/The-Way-Of-LeetCode
c63d777e01413726b6214c616c20c61f8e5b330b
[ "MIT" ]
null
null
null
# 给定一个整数数组,判断是否存在重复元素。 # 如果任何值在数组中出现至少两次,函数返回 true。如果数组中每个元素都不相同,则返回 false。 # 示例 1: # 输入: [1,2,3,1] # 输出: true class Solution: def containsDuplicate(self, nums: list) -> bool: return len(nums) != len(set(nums)) v = Solution().containsDuplicate([1,1,1,3,3,4,3,2,4,2]) print(v)
16.388889
55
0.647458
46
295
4.152174
0.608696
0.020942
0
0
0
0
0
0
0
0
0
0.061224
0.169492
295
17
56
17.352941
0.718367
0.338983
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.6
0.2
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
0
0
0
0
1
1
0
0
2
070f57411b53f1eda5d88b1710348a522f5faed7
699
py
Python
tracer/utils.py
RandySheriffH/tracer
67c33948a9f61f3b949e71b75042d69f575ae24c
[ "MIT" ]
1
2020-09-01T20:51:06.000Z
2020-09-01T20:51:06.000Z
tracer/utils.py
RandySheriffH/tracer
67c33948a9f61f3b949e71b75042d69f575ae24c
[ "MIT" ]
6
2020-08-02T02:06:06.000Z
2020-08-06T17:56:05.000Z
tracer/utils.py
RandySheriffH/tracer
67c33948a9f61f3b949e71b75042d69f575ae24c
[ "MIT" ]
null
null
null
# Licensed under the MIT license. '''utilities''' import os import shutil def to_int(array): '''convert array to ints''' return [int(a) for a in array] def create_temp(): '''create temp folder''' temp = get_temp() if not os.path.isdir(temp): os.mkdir(temp) def get_temp(): '''temp ...
17.923077
49
0.640916
91
699
4.714286
0.527473
0.048951
0.06993
0
0
0
0
0
0
0
0
0
0.214592
699
38
50
18.394737
0.781421
0.246066
0
0
0
0
0.014257
0
0
0
0
0
0
1
0.352941
false
0
0.117647
0
0.705882
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
0
0
1
0
0
2
071fe508f254d07aec04a683791602c4635ace0e
327
py
Python
AnyTransHelper/settings.py
wcj3/AnyTransHelper
b86ea1fceb9f8c1a2b34e1e715ebcd621ed135bd
[ "MIT" ]
null
null
null
AnyTransHelper/settings.py
wcj3/AnyTransHelper
b86ea1fceb9f8c1a2b34e1e715ebcd621ed135bd
[ "MIT" ]
null
null
null
AnyTransHelper/settings.py
wcj3/AnyTransHelper
b86ea1fceb9f8c1a2b34e1e715ebcd621ed135bd
[ "MIT" ]
null
null
null
# Location of exported xml playlist from itunes # Update username and directory to their appropriate path e.g C:/users/bob/desktop/file.xml xml_playlist_loc = 'C:/users/username/directory/_MyMusic_.xml' # name of user directory where your Music folder is located # example: C:/users/bob/music/itunes music_folder_dir = '...
40.875
91
0.788991
52
327
4.846154
0.653846
0.071429
0.071429
0
0
0
0
0
0
0
0
0
0.122324
327
7
92
46.714286
0.878049
0.697248
0
0
0
0
0.483871
0.44086
0
0
0
0
0
1
0
false
0
0
0
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
072c81deadb1e244ccbd8e719576927f33e59977
269
py
Python
learntools/python/utils.py
sfrias/learntools
47a62d9d8513d981836f0c18f00b05455c4d64c7
[ "Apache-2.0" ]
1
2018-06-11T17:43:38.000Z
2018-06-11T17:43:38.000Z
learntools/python/utils.py
sfrias/learntools
47a62d9d8513d981836f0c18f00b05455c4d64c7
[ "Apache-2.0" ]
null
null
null
learntools/python/utils.py
sfrias/learntools
47a62d9d8513d981836f0c18f00b05455c4d64c7
[ "Apache-2.0" ]
null
null
null
def backtickify(s): return '`{}`'.format(s) def bind_exercises(g, exercises, start=1): for i, ex in enumerate(exercises): qno = i + start varname = 'q{}'.format(qno) assert varname not in g g[varname] = ex yield varname
24.454545
42
0.572491
36
269
4.25
0.583333
0
0
0
0
0
0
0
0
0
0
0.005291
0.297398
269
10
43
26.9
0.804233
0
0
0
0
0
0.026022
0
0
0
0
0
0.111111
1
0.222222
false
0
0
0.111111
0.333333
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
0
1
0
0
0
2
0763e2675b645a0b86aa4ab358385751fae38164
293
py
Python
app/api/__init__.py
lewyuejian/flask-server
3858881d78af4bdbef46d9d6074545be2e663bee
[ "MIT" ]
1
2021-07-07T14:57:34.000Z
2021-07-07T14:57:34.000Z
app/api/__init__.py
lewyuejian/flask-server
3858881d78af4bdbef46d9d6074545be2e663bee
[ "MIT" ]
null
null
null
app/api/__init__.py
lewyuejian/flask-server
3858881d78af4bdbef46d9d6074545be2e663bee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- ''' @author: yuejl @application: @contact: lewyuejian@163.com @file: __init__.py.py @time: 2021/7/5 0005 19:36 @desc: ''' from flask import Blueprint bp = Blueprint('api', __name__) # # 写在最后是为了防止循环导入,blog.py文件也会导入 bp from app.api import blog
17.235294
34
0.696246
43
293
4.55814
0.837209
0
0
0
0
0
0
0
0
0
0
0.074803
0.133106
293
16
35
18.3125
0.69685
0.651877
0
0
0
0
0.032967
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
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
0
0
0
1
0
0
1
0
2
076ae8ccdc6bba4a6d156abc9b2d579a5e1f2ac1
173
py
Python
aioworkers_sentry/__init__.py
aioworkers/aioworkers-sentry
f1600ec2bdf51e8b48adc0492ae2e3398e558262
[ "Apache-2.0" ]
3
2019-02-12T13:25:33.000Z
2019-02-19T22:27:06.000Z
aioworkers_sentry/__init__.py
aioworkers/aioworkers-sentry
f1600ec2bdf51e8b48adc0492ae2e3398e558262
[ "Apache-2.0" ]
47
2020-11-16T00:39:22.000Z
2022-03-02T10:06:29.000Z
aioworkers_sentry/__init__.py
aioworkers/aioworkers-sentry
f1600ec2bdf51e8b48adc0492ae2e3398e558262
[ "Apache-2.0" ]
null
null
null
from pathlib import Path try: # true from .version import __version__ except ImportError: __version__ = 'dev' configs = Path(__file__).parent / 'sentry.ini',
15.727273
47
0.699422
20
173
5.45
0.75
0
0
0
0
0
0
0
0
0
0
0
0.208092
173
10
48
17.3
0.79562
0.023121
0
0
0
0
0.077844
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
0
1
0
0
0
0
2
4ad5c95d32ef7a8712e858733eb5657014501113
893
py
Python
Lib/test/test_file.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
5
2022-03-26T21:53:36.000Z
2022-03-30T21:47:20.000Z
Lib/test/test_file.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
6
2020-11-18T15:48:14.000Z
2021-05-03T21:20:50.000Z
Lib/test/test_file.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
2
2015-07-16T08:14:13.000Z
2022-03-27T01:55:17.000Z
from test_support import TESTFN from UserList import UserList # verify writelines with instance sequence l = UserList(['1', '2']) f = open(TESTFN, 'wb') f.writelines(l) f.close() f = open(TESTFN, 'rb') buf = f.read() f.close() assert buf == '12' # verify writelines with integers f = open(TESTFN, 'wb') try: f.writ...
19.413043
62
0.696529
128
893
4.851563
0.3125
0.040258
0.088567
0.083736
0.466989
0.466989
0.466989
0.380032
0.380032
0.289855
0
0.013569
0.174692
893
45
63
19.844444
0.829037
0.175812
0
0.694444
0
0
0.19699
0
0
0
0
0
0.027778
0
null
null
0.111111
0.055556
null
null
0.083333
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
1
0
0
1
0
0
0
0
0
2
4ae2382d277f0a853a36aec82ef5c1631e8b0607
4,695
py
Python
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.292453
113
0.792971
404
4,695
8.898515
0.277228
0.052573
0.08178
0.085675
0.658136
0.541307
0.43338
0.268707
0.116829
0
0
0.005415
0.134611
4,695
105
114
44.714286
0.879399
0.096273
0
0
0
0
0.155482
0.106805
0
0
0
0
0
1
0
false
0
0.505376
0
0.505376
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
0
0
0
1
0
1
0
0
2
4ae5bc2e7d2bf042c7ae7cf7f463111268a96c72
2,371
py
Python
test_fallback.py
jvarho/pylibscrypt
46f9c0a2f2c909a5765f748f2c188e336af221ed
[ "0BSD" ]
19
2015-02-03T22:25:09.000Z
2021-09-01T05:25:44.000Z
test_fallback.py
jvarho/pylibscrypt
46f9c0a2f2c909a5765f748f2c188e336af221ed
[ "0BSD" ]
16
2015-06-03T15:52:43.000Z
2019-03-24T16:47:52.000Z
test_fallback.py
jvarho/pylibscrypt
46f9c0a2f2c909a5765f748f2c188e336af221ed
[ "0BSD" ]
3
2015-05-26T01:39:20.000Z
2017-12-15T23:44:19.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2021, Jan Varho # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ...
28.914634
74
0.73682
312
2,371
5.583333
0.391026
0.057405
0.096441
0.083238
0.269805
0.169346
0.150402
0.092997
0.092997
0.092997
0
0.007622
0.16997
2,371
81
75
29.271605
0.877541
0.317166
0
0.377358
0
0
0.178928
0.11783
0
0
0
0
0
1
0.056604
false
0
0.45283
0
0.528302
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
0
0
0
1
0
1
0
0
2
4aed8a0a1b82781b52386173db09a017ab12f395
176
py
Python
core/reports/forms.py
henrryyanez/test2
7f49391160ad6797afe83f9dae9346d320484b52
[ "MIT" ]
null
null
null
core/reports/forms.py
henrryyanez/test2
7f49391160ad6797afe83f9dae9346d320484b52
[ "MIT" ]
null
null
null
core/reports/forms.py
henrryyanez/test2
7f49391160ad6797afe83f9dae9346d320484b52
[ "MIT" ]
1
2021-02-25T00:57:35.000Z
2021-02-25T00:57:35.000Z
from django.forms import * class ReportForm(Form): date_range = CharField(widget=TextInput(attrs={ 'class': 'form-control', 'autocomplete': 'off' }))
19.555556
51
0.625
18
176
6.055556
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.227273
176
8
52
22
0.801471
0
0
0
0
0
0.181818
0
0
0
0
0
0
1
0
false
0
0.166667
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
0
0
0
0
0
0
0
2
4afbc3fa0f8da151c5df333ff9483cb0687005db
73
py
Python
vmaig_blog/uwsgi-2.0.14/plugins/nagios/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
1
2018-11-24T16:10:49.000Z
2018-11-24T16:10:49.000Z
vmaig_blog/uwsgi-2.0.14/plugins/nagios/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/uwsgi-2.0.14/plugins/nagios/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
NAME='nagios' CFLAGS = [] LDFLAGS = [] LIBS = [] GCC_LIST = ['nagios']
9.125
21
0.561644
8
73
5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.205479
73
7
22
10.428571
0.689655
0
0
0
0
0
0.166667
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
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
2
4afda08b90de118baafadac66528302b1ea9780e
927
py
Python
app/forms.py
kdougla01/SENDReg
1b1fca91b1f5c5d1a92fdc3998b27abca600c2fb
[ "MIT" ]
null
null
null
app/forms.py
kdougla01/SENDReg
1b1fca91b1f5c5d1a92fdc3998b27abca600c2fb
[ "MIT" ]
null
null
null
app/forms.py
kdougla01/SENDReg
1b1fca91b1f5c5d1a92fdc3998b27abca600c2fb
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, TextAreaField, validators class LoginForm(FlaskForm): """Login form to access writing and settings pages""" username = StringField('Username', [validators.DataRequired()]) password = PasswordField('Password', [va...
46.35
103
0.74973
89
927
7.764045
0.52809
0.15919
0.130246
0.107091
0
0
0
0
0
0
0
0.007371
0.121899
927
19
104
48.789474
0.841523
0.050701
0
0
0
0
0.121281
0
0
0
0
0
0
1
0
false
0.357143
0.142857
0
0.928571
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
0
0
1
0
0
1
0
0
2
ab01d86591478712191c656d6eea1fe18e6afaca
7,892
py
Python
sdk/python/pulumi_google_native/cloudbuild/v1alpha1/_inputs.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/cloudbuild/v1alpha1/_inputs.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/cloudbuild/v1alpha1/_inputs.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
54.427586
553
0.690699
1,126
7,892
4.743339
0.142984
0.061786
0.06291
0.074143
0.782251
0.711103
0.677027
0.66804
0.664482
0.584909
0
0.001452
0.214774
7,892
144
554
54.805556
0.860416
0.533198
0
0.302326
1
0
0.074649
0
0
0
0
0
0
1
0.186047
false
0
0.069767
0
0.360465
0
0
0
0
null
0
0
0
0
1
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
0
0
0
0
0
0
0
0
2
ab10768a5a974c2ed4404b37b9919ac850187a3f
304
py
Python
tests/utils/test_classproperty.py
koskotG/ebonite
9f9ae016b70fb24865d5edc99142afb8ab4ddc59
[ "Apache-2.0" ]
270
2019-11-14T15:46:08.000Z
2021-09-17T16:43:03.000Z
tests/utils/test_classproperty.py
geffy/ebonite
2d85eeca44ac1799e743bafe333887712e325060
[ "Apache-2.0" ]
14
2019-11-29T11:49:39.000Z
2022-02-10T00:23:59.000Z
tests/utils/test_classproperty.py
geffy/ebonite
2d85eeca44ac1799e743bafe333887712e325060
[ "Apache-2.0" ]
18
2019-11-22T13:15:14.000Z
2021-09-01T13:36:12.000Z
from ebonite.utils.classproperty import classproperty class MyClass: @classproperty def prop1(self): return 'a' @classproperty @classmethod def prop2(self): return 'b' def test_classproperty__get(): assert MyClass.prop1 == 'a' assert MyClass.prop2 == 'b'
16.888889
53
0.654605
33
304
5.939394
0.545455
0.102041
0
0
0
0
0
0
0
0
0
0.017544
0.25
304
17
54
17.882353
0.842105
0
0
0.166667
0
0
0.013158
0
0
0
0
0
0.166667
1
0.25
false
0
0.083333
0.166667
0.583333
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
0
1
0
0
0
2
ab12111386c0a6ed6339358b0d9ca22409c5393e
1,206
py
Python
Apps/tutoriais/migrations/0002_tutorial_nome_alter_tutorial_plano_1_and_more.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/tutoriais/migrations/0002_tutorial_nome_alter_tutorial_plano_1_and_more.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/tutoriais/migrations/0002_tutorial_nome_alter_tutorial_plano_1_and_more.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 4.0 on 2021-12-23 18:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tutoriais', '0001_initial'), ] operations = [ migrations.AddField( model_name='tutorial', name='nome', fie...
26.8
62
0.546434
111
1,206
5.792793
0.387387
0.083981
0.158631
0.195956
0.583204
0.583204
0.533437
0.454121
0.454121
0.454121
0
0.048995
0.339967
1,206
44
63
27.409091
0.758794
0.035655
0
0.578947
1
0
0.093023
0
0
0
0
0
0
1
0
false
0
0.026316
0
0.105263
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
0
0
0
0
0
0
0
0
2
ab2913a258a83dd6a033593a0a9a45dc2f0a8d70
508
py
Python
cbdcsim/transaction.py
blackrhinoabm/CBDC-sim
775f265802bccfe3285268022be754a8dec359cd
[ "MIT" ]
null
null
null
cbdcsim/transaction.py
blackrhinoabm/CBDC-sim
775f265802bccfe3285268022be754a8dec359cd
[ "MIT" ]
null
null
null
cbdcsim/transaction.py
blackrhinoabm/CBDC-sim
775f265802bccfe3285268022be754a8dec359cd
[ "MIT" ]
null
null
null
def transact(environment, t, to_agent, from_agent, settlement_type, amount, description): "Function that ensures a correct transaction between agents" environment.measurement['period'].append(t) environment.measurement['to_agent'].append(to_agent) environment.measurement['from_agent'].append(from_agent)...
56.444444
89
0.785433
56
508
6.964286
0.392857
0.338462
0.138462
0
0
0
0
0
0
0
0
0
0.098425
508
8
90
63.5
0.851528
0.114173
0
0
0
0
0.224409
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
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
0
0
0
0
0
0
0
0
0
0
2
ab2b75e268d963ff43411be8b26252b2d47078b5
12,680
py
Python
forum/migrations/0001_initial.py
michaelyou/One-piece-forum
3adc6aa9c195a653dce8bc2142cb3d017d85451a
[ "MIT" ]
1
2017-09-07T07:20:51.000Z
2017-09-07T07:20:51.000Z
forum/migrations/0001_initial.py
michaelyou/One-piece-forum
3adc6aa9c195a653dce8bc2142cb3d017d85451a
[ "MIT" ]
null
null
null
forum/migrations/0001_initial.py
michaelyou/One-piece-forum
3adc6aa9c195a653dce8bc2142cb3d017d85451a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.contrib.auth.models import django.utils.timezone from django.conf import settings import django.core.validators import forum.models class Migration(migrations.Migration): dependencies = [ ...
60.961538
432
0.608438
1,348
12,680
5.577151
0.152819
0.100559
0.098563
0.128891
0.746874
0.735169
0.703379
0.627294
0.592977
0.497739
0
0.007428
0.246136
12,680
207
433
61.256039
0.779056
0.001656
0
0.532338
0
0
0.172079
0.00237
0
0
0
0
0
1
0
false
0.004975
0.034826
0
0.049751
0
0
0
0
null
0
0
0
0
1
1
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
0
0
2
ab3947b0de20a0d63c15762a63e611300361b63a
52,769
py
Python
template/examples/python3.8_grammar-template.py
calra123/tree-sitter-legesher-python
80b3e9fc1982c9179cd6bc0b48d2833034905a41
[ "MIT" ]
1
2019-10-22T18:55:10.000Z
2019-10-22T18:55:10.000Z
template/examples/python3.8_grammar-template.py
calra123/tree-sitter-legesher-python
80b3e9fc1982c9179cd6bc0b48d2833034905a41
[ "MIT" ]
null
null
null
template/examples/python3.8_grammar-template.py
calra123/tree-sitter-legesher-python
80b3e9fc1982c9179cd6bc0b48d2833034905a41
[ "MIT" ]
null
null
null
{def} {class} # Python test set -- part 1, grammar. # This just tests whether the parser accepts them all. {from} test.support {import} check_syntax_error {import} inspect {import} unittest {import} sys # testing import * {from} sys {import} * # different import patterns to check that __annotations__ does not interfe...
33.546726
160
0.471224
6,470
52,769
3.72643
0.121638
0.079013
0.012692
0.011033
0.364206
0.292783
0.236002
0.198839
0.163749
0.137868
0
0.070424
0.353105
52,769
1,572
161
33.568066
0.635868
0.13271
0
0.25384
0
0.005659
0.098258
0.002702
0
0
0.002153
0
0.153597
0
null
null
0.115602
0.016977
null
null
0.004042
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
1
0
0
1
0
0
0
0
0
2
ab3c88b0fbecfd72245a2773fa780529afe0e793
2,017
py
Python
main/context.py
edazpotato/usefull-discord-bot
81b35e73b135afc887033510a635738899793264
[ "MIT" ]
2
2020-10-16T10:01:18.000Z
2021-11-15T09:43:34.000Z
main/context.py
edazpotato/usefull-discord-bot
81b35e73b135afc887033510a635738899793264
[ "MIT" ]
null
null
null
main/context.py
edazpotato/usefull-discord-bot
81b35e73b135afc887033510a635738899793264
[ "MIT" ]
null
null
null
from discord.ext import commands class UserPrefrences(): """A class that takes a discord.User object and returns an object with their preferences""" def __init__(self, bot, user): self.user = user self.bot = bot self._language = "en" # TEMPORARY until I get the DB going self._color = 0xff0000 # TEMPORARY unt...
27.256757
93
0.718889
292
2,017
4.839041
0.222603
0.076433
0.079264
0.050955
0.506016
0.481953
0.449398
0.449398
0.394197
0.357396
0
0.003538
0.159147
2,017
74
94
27.256757
0.829599
0.16113
0
0.327586
0
0
0.043504
0
0
0
0.004768
0
0
1
0.206897
false
0
0.017241
0.137931
0.431034
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
0
1
0
0
0
2
ab55544ff5bda54983517c95e917cd0fe9fe6b9e
1,412
py
Python
data_structures/deque.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
14
2020-02-07T21:36:39.000Z
2022-03-12T22:37:04.000Z
data_structures/deque.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
19
2019-05-18T23:58:30.000Z
2022-01-09T16:45:35.000Z
data_structures/deque.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
5
2020-10-06T06:10:27.000Z
2021-07-08T12:58:46.000Z
class Deque(object): """A deque (double-ended queue) is a linear structure of ordered items where the addition and removal of items can take place on any end. Thus deques can work as FIFO (First In, First Out) or LIFO (Last In, First Out) Examples: >>> d = Deque() >>> d.is_...
24.77193
61
0.526204
190
1,412
3.810526
0.347368
0.099448
0.044199
0.060773
0.143646
0.118785
0.060773
0
0
0
0
0.006417
0.337819
1,412
56
62
25.214286
0.767914
0.508499
0
0
0
0
0
0
0
0
0
0
0
1
0.470588
false
0
0
0
0.823529
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
0
0
1
0
0
2
ab5659c429daf341f55598a6384e61b1e99df07c
1,273
py
Python
floodsystem/flood.py
Kaaasttuk/flood-warning-project-60
d49b11709446e11ecf08ee5921ee8694a9642abe
[ "MIT" ]
null
null
null
floodsystem/flood.py
Kaaasttuk/flood-warning-project-60
d49b11709446e11ecf08ee5921ee8694a9642abe
[ "MIT" ]
null
null
null
floodsystem/flood.py
Kaaasttuk/flood-warning-project-60
d49b11709446e11ecf08ee5921ee8694a9642abe
[ "MIT" ]
1
2022-01-30T21:23:04.000Z
2022-01-30T21:23:04.000Z
from .utils import sorted_by_key from floodsystem.station import MonitoringStation def stations_level_over_threshold(stations, tol): stations_level_over_threshold=[] for station in stations: if station.relative_water_level() == None: pass else: if station.relative_water...
32.641026
95
0.70542
155
1,273
5.374194
0.23871
0.109244
0.142857
0.218487
0.310924
0.132053
0.132053
0.132053
0.132053
0.132053
0
0.008105
0.224666
1,273
39
96
32.641026
0.835866
0
0
0.354839
0
0
0
0
0
0
0
0
0
1
0.064516
false
0.129032
0.064516
0
0.193548
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
0
0
1
0
0
0
0
0
2
db3d88ae7abc7561350876dd7e87ee2f4912ccd4
330
py
Python
setup.py
Benjscho/mdptetris-experiments
743113bfdcb309c7b9904d6bc5cc5cc65dc4d2e4
[ "MIT" ]
null
null
null
setup.py
Benjscho/mdptetris-experiments
743113bfdcb309c7b9904d6bc5cc5cc65dc4d2e4
[ "MIT" ]
null
null
null
setup.py
Benjscho/mdptetris-experiments
743113bfdcb309c7b9904d6bc5cc5cc65dc4d2e4
[ "MIT" ]
null
null
null
import sys from setuptools import setup from distutils.core import setup setup(name='mdptetris_experiments', version='0.2.0', install_requires=['gym', 'gym_mdptetris'], author="Ben Schofield", license='MIT', packages=['mdptetris_experiments', 'mdptetris_experiments.agents'], zip_sa...
23.571429
46
0.7
38
330
5.921053
0.684211
0.266667
0
0
0
0
0
0
0
0
0
0.011029
0.175758
330
13
47
25.384615
0.816176
0
0
0
0
0
0.324242
0.212121
0
0
0
0
0
1
0
true
0
0.272727
0
0.272727
0
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
0
0
0
0
1
0
0
0
0
0
0
2
db641d4e51babb6a6c8b7f6dcb1d47156088db75
3,884
py
Python
src/cogs/Spam.py
RED-M0CKING-LINE/Discord-Bottobulous-Maximus
db4e24e9b4403cdf8fbb20b1d62bf4b7f499ff4c
[ "Unlicense" ]
null
null
null
src/cogs/Spam.py
RED-M0CKING-LINE/Discord-Bottobulous-Maximus
db4e24e9b4403cdf8fbb20b1d62bf4b7f499ff4c
[ "Unlicense" ]
null
null
null
src/cogs/Spam.py
RED-M0CKING-LINE/Discord-Bottobulous-Maximus
db4e24e9b4403cdf8fbb20b1d62bf4b7f499ff4c
[ "Unlicense" ]
null
null
null
import utils from discord.ext import commands class cogSpam(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def pog(self, ctx): await ctx.send('pog') @commands.Cog.listener("on_message") async def on_message(self, message): #TODO convert these con...
88.272727
2,058
0.701854
649
3,884
4.167951
0.298921
0.154529
0.033272
0.044362
0.573013
0.566728
0.566728
0.536414
0.536414
0.495749
0
0.027714
0.21035
3,884
43
2,059
90.325581
0.854255
0.078785
0
0.135135
0
0.027027
0.186346
0
0
0
0
0.023256
0
1
0.054054
false
0
0.054054
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
db67955c60b989c6ae99bddc69be11b3b805f824
1,186
py
Python
asyncpraw/models/listing/listing.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
asyncpraw/models/listing/listing.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
asyncpraw/models/listing/listing.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Provide the Listing class.""" from typing import Any, Optional from ..base import AsyncPRAWBase class Listing(AsyncPRAWBase): """A listing is a collection of RedditBase instances.""" CHILD_ATTRIBUTE = "children" def __len__(self) -> int: """Return the number of items in the Listing.""" ...
28.238095
60
0.666948
136
1,186
5.632353
0.426471
0.127937
0.070496
0.052219
0.159269
0
0
0
0
0
0
0
0.216695
1,186
41
61
28.926829
0.824543
0.279089
0
0
0
0
0.03317
0
0
0
0
0
0
1
0.210526
false
0
0.105263
0
0.789474
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
0
0
1
0
0
2
db8be30ff70554edb179109037665e51c04510ec
874
py
Python
espnet/nets/pytorch_backend/transformer/layer_norm.py
Syzygianinfern0/espnet
3ea59a0050e8a6a40138ac2365c258825b02f9cd
[ "Apache-2.0" ]
252
2020-05-15T14:50:14.000Z
2022-03-17T08:38:16.000Z
espnet/nets/pytorch_backend/transformer/layer_norm.py
Syzygianinfern0/espnet
3ea59a0050e8a6a40138ac2365c258825b02f9cd
[ "Apache-2.0" ]
20
2021-06-14T20:15:49.000Z
2022-02-18T09:05:00.000Z
espnet/nets/pytorch_backend/transformer/layer_norm.py
Syzygianinfern0/espnet
3ea59a0050e8a6a40138ac2365c258825b02f9cd
[ "Apache-2.0" ]
41
2020-05-15T14:33:35.000Z
2021-12-22T08:41:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Shigeki Karita # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Layer normalization module.""" import torch class LayerNorm(torch.nn.LayerNorm): """Layer normalization module. :param int nout: output dim size :param int dim:...
25.705882
82
0.620137
111
874
4.810811
0.513514
0.101124
0.101124
0.089888
0.11985
0.11985
0
0
0
0
0
0.028658
0.241419
874
33
83
26.484848
0.776772
0.471396
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
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
0
0
1
0
0
0
0
1
0
0
2
db9623e0925722b6e142673af1ad85bac6da5f4b
9,996
py
Python
shan_convert_web/ShanConvert.py
yathit/waitzar
be0d1f2fe48ebc6094dbe2312ab18f4f05cf9136
[ "Apache-2.0" ]
1
2017-09-10T03:09:46.000Z
2017-09-10T03:09:46.000Z
shan_convert_web/ShanConvert.py
yathit/waitzar
be0d1f2fe48ebc6094dbe2312ab18f4f05cf9136
[ "Apache-2.0" ]
null
null
null
shan_convert_web/ShanConvert.py
yathit/waitzar
be0d1f2fe48ebc6094dbe2312ab18f4f05cf9136
[ "Apache-2.0" ]
3
2016-07-26T17:42:30.000Z
2019-11-11T14:18:20.000Z
# # This is a SIL encoding converter for the old Shan formats. # Copyright 2011 Seth N. Hetu # Released under the terms of the Apache License 2.0 # See end of file for license terms # # Main conversion function dirConvert = { # Normal letters u'\u0021' : u'\u101E', u'\u0023' : u'\uAA66', u'\u0...
25.178841
111
0.565626
1,503
9,996
3.735196
0.369927
0.009263
0.0114
0.004809
0.117919
0.087994
0.073388
0.073388
0.060563
0.049163
0
0.226892
0.235894
9,996
396
112
25.242424
0.505368
0.180172
0
0.093284
0
0.037313
0.400285
0.126617
0
0
0.003104
0
0
0
null
null
0
0
null
null
0.011194
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
db96f943666f258c29cb0fb7a18e58a7860b38a5
171
py
Python
Algorithms/Implementation/encryption.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
9
2017-03-19T16:27:31.000Z
2022-02-17T11:42:21.000Z
Algorithms/Implementation/encryption.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
null
null
null
Algorithms/Implementation/encryption.py
ekant1999/HackerRank
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
[ "MIT" ]
6
2019-02-18T11:26:24.000Z
2022-03-21T14:13:15.000Z
# Python 2 import sys import math s = raw_input().replace(" ", "") sq = math.sqrt(len(s)) col = int(math.ceil(sq)) for j in range(col): print s[j::col],
14.25
33
0.567251
29
171
3.310345
0.689655
0
0
0
0
0
0
0
0
0
0
0.007752
0.245614
171
12
34
14.25
0.736434
0.046784
0
0
0
0
0.006623
0
0
0
0
0
0
0
null
null
0
0.285714
null
null
0.142857
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
1
0
0
0
0
0
0
0
0
2
db993a6dd77857693ff2c1af0d6b5f25ad596f2f
3,388
py
Python
code/default/python27/1.0/lib/noarch/front_base/config.py
xeddmc/XX-Net
d58e7b4258a21dce35b5f5477264d342a7346cdc
[ "BSD-2-Clause" ]
null
null
null
code/default/python27/1.0/lib/noarch/front_base/config.py
xeddmc/XX-Net
d58e7b4258a21dce35b5f5477264d342a7346cdc
[ "BSD-2-Clause" ]
null
null
null
code/default/python27/1.0/lib/noarch/front_base/config.py
xeddmc/XX-Net
d58e7b4258a21dce35b5f5477264d342a7346cdc
[ "BSD-2-Clause" ]
null
null
null
import xconfig class ConfigBase(xconfig.Config): def set_default(self): # proxy self.set_var("PROXY_ENABLE", 0) self.set_var("PROXY_TYPE", "HTTP") self.set_var("PROXY_HOST", "") self.set_var("PROXY_PORT", 0) self.set_var("PROXY_USER", "") self.set_var("PROX...
36.826087
63
0.642857
491
3,388
4.010183
0.242363
0.213306
0.304723
0.061453
0.315896
0.144744
0.060945
0.03352
0
0
0
0.046449
0.23111
3,388
92
64
36.826087
0.709405
0.049292
0
0
0
0
0.357967
0.2058
0
0
0
0
0
1
0.029851
false
0.014925
0.014925
0
0.059701
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
0
0
0
0
0
0
0
0
2
dbad9ea50e185c2d3fe5514570bf24f322e34ca6
3,198
py
Python
Scripts/GridSearch/ModelBuilderRNN.py
bio-hpc/sibila
337ea84692d6ea4f4d3e4de9da51f5ee53cff6d7
[ "Apache-2.0" ]
1
2022-03-07T11:05:31.000Z
2022-03-07T11:05:31.000Z
Scripts/GridSearch/ModelBuilderRNN.py
bio-hpc/sibila
337ea84692d6ea4f4d3e4de9da51f5ee53cff6d7
[ "Apache-2.0" ]
null
null
null
Scripts/GridSearch/ModelBuilderRNN.py
bio-hpc/sibila
337ea84692d6ea4f4d3e4de9da51f5ee53cff6d7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ModelBuilderRNN.py: """ __author__ = "Antonio Jesús Banegas-Luna" __version__ = "1.0" __maintainer__ = "Antonio" __email__ = "ajbanegas@ucam.edu" __status__ = "Development" from BaseModelBuilder import BaseModelBuilder class ModelBuilderRNN(BaseModelBuilder): de...
42.64
84
0.556598
338
3,198
5.079882
0.269231
0.163075
0.189284
0.188701
0.488061
0.405358
0.168899
0.083867
0.083867
0
0
0.024571
0.198249
3,198
74
85
43.216216
0.645086
0.019387
0
0
0
0
0.48417
0.106172
0
0
0
0
0
1
0.017241
false
0
0.017241
0
0.068966
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
0
0
0
0
0
0
0
2
dbae924e797361192e9bf8921c5ce2377174f27f
396
py
Python
Part_3_advanced/m14_metaclass/register_cls/example_1/example_system/human.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m14_metaclass/register_cls/example_1/example_system/human.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m14_metaclass/register_cls/example_1/example_system/human.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
from example_system.serializable import Serializable from example_system.serializable_registry import SerializableRegistry class Human(Serializable): def __init__(self, name: str, age: int) -> None: super().__init__(name, age) self.name = name self.age = age def __str__(self) -> str: ...
24.75
69
0.704545
46
396
5.73913
0.456522
0.090909
0.128788
0.219697
0
0
0
0
0
0
0
0
0.199495
396
15
70
26.4
0.832808
0
0
0
0
0
0.045455
0
0
0
0
0
0
1
0.2
false
0
0.2
0.1
0.6
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
0
0
0
0
0
1
0
0
2
dbb3e5ebf0996b53a0b9dd9d89f62313bf5fba86
2,472
py
Python
py-scripts/ssa_example2.py
RiccardoAiolfi/bbt
c5450ae3f1cbf43e5e09b3761cbcb70acacb6729
[ "MIT" ]
1
2020-05-14T07:53:56.000Z
2020-05-14T07:53:56.000Z
py-scripts/ssa_example2.py
RiccardoAiolfi/bbt
c5450ae3f1cbf43e5e09b3761cbcb70acacb6729
[ "MIT" ]
null
null
null
py-scripts/ssa_example2.py
RiccardoAiolfi/bbt
c5450ae3f1cbf43e5e09b3761cbcb70acacb6729
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2017-2020 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
26.021053
77
0.671521
427
2,472
3.836066
0.311475
0.03663
0.009768
0.019536
0.218559
0.144078
0.144078
0.144078
0.098901
0.098901
0
0.075
0.158576
2,472
94
78
26.297872
0.7125
0.235032
0
0.105263
0
0
0.296592
0
0
0
0.035144
0.010638
0.017544
1
0
false
0
0.105263
0
0.105263
0.438596
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
0
0
0
0
0
0
1
0
2
dbbed0d6be4eec307789dea4891f569c57c71e45
1,172
py
Python
Libraries/Python/wxPython/v4.0.7/Windows/python3/wx/media.py
davidbrownell/Common_EnvironmentEx
9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3
[ "BSL-1.0" ]
null
null
null
Libraries/Python/wxPython/v4.0.7/Windows/python3/wx/media.py
davidbrownell/Common_EnvironmentEx
9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3
[ "BSL-1.0" ]
null
null
null
Libraries/Python/wxPython/v4.0.7/Windows/python3/wx/media.py
davidbrownell/Common_EnvironmentEx
9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3
[ "BSL-1.0" ]
null
null
null
# This file is generated by wxPython's SIP generator. Do not edit by hand. # # Copyright: (c) 2018 by Total Control Software # License: wxWindows License """ The ``wx.media`` module provides a widget class that allows displaying various types of media, such as video and audio files and streaming, using nativ...
37.806452
79
0.78157
145
1,172
6.103448
0.586207
0.054237
0.135593
0.169492
0
0
0
0
0
0
0
0.008114
0.158703
1,172
30
80
39.066667
0.889452
0.379693
0
0
1
0
0.167883
0.068613
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
0
0
0
0
0
0
0
0
2
dbda4b7492fe12326ae018ea4ebc1ec71736e4b1
3,012
py
Python
juggle/io/HDF5DatasetGenerator.py
laygond/Deep-Tools
bc575d25c7c87f1230cf61df89c23f3370bb0187
[ "MIT" ]
null
null
null
juggle/io/HDF5DatasetGenerator.py
laygond/Deep-Tools
bc575d25c7c87f1230cf61df89c23f3370bb0187
[ "MIT" ]
null
null
null
juggle/io/HDF5DatasetGenerator.py
laygond/Deep-Tools
bc575d25c7c87f1230cf61df89c23f3370bb0187
[ "MIT" ]
2
2021-03-14T22:38:56.000Z
2021-05-14T08:42:02.000Z
# HDF5DatasetGenerator.py import h5py import numpy as np from tensorflow.keras.utils import to_categorical class HDF5DatasetGenerator: ''' Use to generate a dataset for use withing keras framework form a HDF5 file. ''' def __init__(self, dbPath, batchSize, preprocessors = None, aug = None...
35.857143
103
0.533865
326
3,012
4.911043
0.371166
0.0406
0.026234
0.029981
0.074953
0.042473
0
0
0
0
0
0.007238
0.403718
3,012
84
104
35.857143
0.884187
0.331673
0
0
1
0
0.009188
0
0
0
0
0
0
1
0.085714
false
0.057143
0.085714
0
0.2
0.028571
0
0
0
null
0
0
0
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
0
0
1
0
0
0
0
0
2
dbdcde0e392f6fc34e3c12bd00c2113762c8933b
849
py
Python
athumb/upload_handlers/gunicorn_eventlet.py
tahy/django-athumb
b0b5737e1afa9c6dfe1b27132e38b24e093f36cf
[ "BSD-3-Clause" ]
10
2015-03-18T20:37:25.000Z
2019-04-23T06:59:48.000Z
athumb/upload_handlers/gunicorn_eventlet.py
tahy/django-athumb
b0b5737e1afa9c6dfe1b27132e38b24e093f36cf
[ "BSD-3-Clause" ]
8
2015-02-09T01:33:09.000Z
2016-08-01T07:01:49.000Z
athumb/upload_handlers/gunicorn_eventlet.py
tahy/django-athumb
b0b5737e1afa9c6dfe1b27132e38b24e093f36cf
[ "BSD-3-Clause" ]
15
2015-02-09T01:15:42.000Z
2021-01-17T16:24:46.000Z
""" Upload handlers with small tweaks to work with gunicorn + eventlet async workers. These should eventually become unnecessary as the supporting libraries continue to improve. """ from django.core.files.uploadhandler import TemporaryFileUploadHandler import eventlet class EventletTmpFileUploadHandler(TemporaryFileUp...
40.428571
79
0.738516
111
849
5.612613
0.693694
0.048154
0.057785
0
0
0
0
0
0
0
0
0.001484
0.206125
849
21
80
40.428571
0.922849
0.599529
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
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
0
0
0
0
0
1
0
1
0
0
2
915c1f98e505e2da5ab9e1ec370aa49473148523
1,098
py
Python
configuration.py
bioinfoUQAM/CASTOR_KRFE
05ecf690b88b54d78a1b95183b94e265f7e51944
[ "MIT" ]
4
2020-01-13T09:32:45.000Z
2022-03-19T07:21:56.000Z
configuration.py
DylanLebatteux/CASTOR_KRFE
c5da5ac189ec759fe5d4d6c234c479f5dd81fd3d
[ "MIT" ]
null
null
null
configuration.py
DylanLebatteux/CASTOR_KRFE
c5da5ac189ec759fe5d4d6c234c479f5dd81fd3d
[ "MIT" ]
2
2019-06-12T18:12:07.000Z
2020-08-08T02:28:15.000Z
# Import import configparser # Fonction to get the parameters from the configuration file def getParameters(configuration_file): # Initialize the parser configurationParser = configparser.ConfigParser() # Read the configuration file configurationParser.read(configuration_file) # Get the parameters parameters = d...
47.73913
89
0.787796
113
1,098
7.477876
0.292035
0.23432
0.340828
0.11716
0
0
0
0
0
0
0
0
0.088342
1,098
22
90
49.909091
0.844156
0.151184
0
0
0
0
0.28973
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
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
0
0
0
0
0
0
0
0
2
916151917b41324a62a7396a67533a2f37db4902
671
py
Python
ds/stack/stack.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
ds/stack/stack.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
ds/stack/stack.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
1
2021-11-19T13:45:59.000Z
2021-11-19T13:45:59.000Z
class Stack(object): def __init__(self): self.stack = [] def is_empty(self): return not self.stack def push(self, v): self.stack.append(v) def pop(self): data = self.stack[-1] del self.stack[-1] return data def peek(self): return self.stac...
19.171429
30
0.535022
94
671
3.638298
0.297872
0.184211
0.087719
0.131579
0.277778
0.175439
0.175439
0.175439
0
0
0
0.012658
0.293592
671
35
31
19.171429
0.708861
0
0
0.222222
0
0
0.056548
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.407407
0.259259
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
0
1
0
0
0
2
9168ffa76bcff6577bca8997329e9616ad243b44
7,021
py
Python
src/sage/combinat/species/sum_species.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/combinat/species/sum_species.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/combinat/species/sum_species.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
""" Sum species """ #***************************************************************************** # Copyright (C) 2008 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but WITHOUT ANY...
31.484305
83
0.551204
812
7,021
4.641626
0.225369
0.025206
0.076943
0.071637
0.439904
0.388697
0.329796
0.254444
0.238525
0.188644
0
0.01701
0.321749
7,021
222
84
31.626126
0.774465
0.536676
0
0.093023
0
0
0.016422
0
0
0
0
0
0
1
0.255814
false
0.023256
0.069767
0
0.581395
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
0
0
1
0
0
2
91711548834603d786cd09e4824c7fb26eeaec86
197
py
Python
Old/Simulations/old/py_tests.py
mitgobla/Traffic-Imrovement
c94bd9f9925d22b50b0295866a8b57fb3edb2c0d
[ "MIT" ]
null
null
null
Old/Simulations/old/py_tests.py
mitgobla/Traffic-Imrovement
c94bd9f9925d22b50b0295866a8b57fb3edb2c0d
[ "MIT" ]
17
2019-02-08T21:31:18.000Z
2019-05-02T08:07:56.000Z
Old/Simulations/old/py_tests.py
mitgobla/Traffic-Imrovement
c94bd9f9925d22b50b0295866a8b57fb3edb2c0d
[ "MIT" ]
2
2019-12-11T15:44:04.000Z
2020-03-15T23:16:11.000Z
array = [0,0,1,1,1,1,2,2,2,2,3,3] indexEqualCurrentUsage = [] for index in range(len(array)): if array[index] == 1: indexEqualCurrentUsage.append(index) print(indexEqualCurrentUsage)
21.888889
44
0.685279
29
197
4.655172
0.482759
0.044444
0.044444
0
0
0
0
0
0
0
0
0.077844
0.152284
197
9
45
21.888889
0.730539
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
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
0
0
0
0
0
2
91806f8d341660da6ea0b3ed7c3216829ddebd2d
328
py
Python
exercises/CursoemVideo/ex018.py
arthurguerra/cursoemvideo-python
37f45ec25f422673fa9bbeee682e098f14d8ceab
[ "MIT" ]
null
null
null
exercises/CursoemVideo/ex018.py
arthurguerra/cursoemvideo-python
37f45ec25f422673fa9bbeee682e098f14d8ceab
[ "MIT" ]
null
null
null
exercises/CursoemVideo/ex018.py
arthurguerra/cursoemvideo-python
37f45ec25f422673fa9bbeee682e098f14d8ceab
[ "MIT" ]
null
null
null
import math a = float(input('Digite um ângulo: ')) seno = math.sin(math.radians(a)) print('O ângulo de {} possui as seguintes propriedades:\nSeno: {:.2f}'.format(a, seno)) cosseno = math.cos(math.radians(a)) print('Cosseno: {:.2f}'.format(cosseno)) tangente = math.tan(math.radians(a)) print('Tangente: {:.2f}'.format(ta...
41
87
0.695122
49
328
4.653061
0.510204
0.144737
0.157895
0.223684
0
0
0
0
0
0
0
0.010067
0.091463
328
8
88
41
0.755034
0
0
0
0
0
0.337386
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.375
0
0
0
null
0
0
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
2
9186beab40e07d5e1ed38a72c2f3c64d74f5183f
255
py
Python
etl/config.py
mkoeppel/Tweet_Pipe
2c2d8be51a566b074ac969ca28a64eb144e7e940
[ "MIT" ]
null
null
null
etl/config.py
mkoeppel/Tweet_Pipe
2c2d8be51a566b074ac969ca28a64eb144e7e940
[ "MIT" ]
null
null
null
etl/config.py
mkoeppel/Tweet_Pipe
2c2d8be51a566b074ac969ca28a64eb144e7e940
[ "MIT" ]
1
2021-05-25T10:12:24.000Z
2021-05-25T10:12:24.000Z
### do not use these settings and passwords for production! # these settings are required to connect the postgres-db to metabase POSTGRES_USER='postgres' POSTGRES_PASSWORD='1234' POSTGRES_HOST='postgresdb' POSTGRES_PORT='5432' POSTGRES_DB_NAME='postgres'
31.875
68
0.815686
36
255
5.611111
0.694444
0.128713
0
0
0
0
0
0
0
0
0
0.034935
0.101961
255
7
69
36.428571
0.847162
0.478431
0
0
0
0
0.265625
0
0
0
0
0
0
1
0
false
0.2
0
0
0
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
0
1
0
0
0
0
0
2
91ad018b2a413658d61956a96f83f1c803e64d63
281
py
Python
applications/mupiopolitico/migrations/0001_initial.py
PEM-Humboldt/visor-geografico-I2d-backend
5b5f4e0eee07e14bd8124cec624b5a5004c4d168
[ "MIT" ]
null
null
null
applications/mupiopolitico/migrations/0001_initial.py
PEM-Humboldt/visor-geografico-I2d-backend
5b5f4e0eee07e14bd8124cec624b5a5004c4d168
[ "MIT" ]
null
null
null
applications/mupiopolitico/migrations/0001_initial.py
PEM-Humboldt/visor-geografico-I2d-backend
5b5f4e0eee07e14bd8124cec624b5a5004c4d168
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-08 19:01 from django.db import migrations from django.contrib.postgres.operations import CreateExtension class Migration(migrations.Migration): dependencies = [ ] operations = [ CreateExtension(name='unaccent'), ]
20.071429
62
0.711744
33
281
6.060606
0.757576
0.1
0
0
0
0
0
0
0
0
0
0.066372
0.19573
281
13
63
21.615385
0.818584
0.160142
0
0
1
0
0.034188
0
0
0
0
0
0
1
0
false
0
0.25
0
0.625
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
91b49ad57039c4a41f1dfd86192c85613d26a33f
522
py
Python
delay.py
GregGrigorop/Decorators
7e7a026e21afe944e20af983e3f36b4977e11a9c
[ "MIT" ]
null
null
null
delay.py
GregGrigorop/Decorators
7e7a026e21afe944e20af983e3f36b4977e11a9c
[ "MIT" ]
null
null
null
delay.py
GregGrigorop/Decorators
7e7a026e21afe944e20af983e3f36b4977e11a9c
[ "MIT" ]
null
null
null
from functools import wraps from time import sleep # the sleep function suspends execution of the current thread for a given def delay(time): # number of seconds (it pauses code execution for a certain amount of time) def inner(fn): @wraps(fn) def wrapper(*args,**kwargs): print(fn.__doc__) print(f"Waiting {t...
27.473684
96
0.718391
82
522
4.45122
0.560976
0.021918
0
0
0
0
0
0
0
0
0
0.002309
0.170498
522
19
97
27.473684
0.840647
0.335249
0
0
0
0
0.134897
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
0.1875
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
0
0
1
0
0
2
91b69811715573f26b6ba7e1da971f7da0031871
100
py
Python
tokenfile.py
Vexs/DivisionTalentBot
3211e55b3267bada874355dbbbf41c4fedb9a57d
[ "MIT" ]
null
null
null
tokenfile.py
Vexs/DivisionTalentBot
3211e55b3267bada874355dbbbf41c4fedb9a57d
[ "MIT" ]
null
null
null
tokenfile.py
Vexs/DivisionTalentBot
3211e55b3267bada874355dbbbf41c4fedb9a57d
[ "MIT" ]
null
null
null
token = "some_valid_token" #Looks like MjM4NDk0NzU2NTIxMzc3Nzky.CunGFQ.wUILz7z6HoJzVeq6pyHPmVgQgV4
25
71
0.87
9
100
9.444444
0.888889
0
0
0
0
0
0
0
0
0
0
0.086022
0.07
100
3
72
33.333333
0.827957
0.7
0
0
0
0
0.551724
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
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
2
91b7a90f853567cb6b2d07a2a60f3fcf09468e00
2,536
py
Python
mountaintools/cairioserver/examples/basic_usage.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
mountaintools/cairioserver/examples/basic_usage.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
mountaintools/cairioserver/examples/basic_usage.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from cairio import client as ca print('------------------------------------------------') # Local key/value store for associating relatively short strings (<=80 characters) with arbitrary keys (strings or dicts) # Setting values (these should be short strings, <=80 characters) ca.setValue(key='some-key1', value='hel...
32.101266
121
0.673502
343
2,536
4.927114
0.361516
0.024852
0.026036
0.033728
0.16568
0.16568
0.100592
0
0
0
0
0.053635
0.11041
2,536
78
122
32.512821
0.695479
0.401814
0
0.324324
0
0
0.340241
0.18984
0
0
0
0
0
1
0
false
0.054054
0.027027
0
0.027027
0.459459
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
0
0
1
0
0
0
1
0
2
91da62abdf58a681160af62db0a656fc84797afd
3,940
py
Python
gale/databases/mongoConnect.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
gale/databases/mongoConnect.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
gale/databases/mongoConnect.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
''' File: mongoConnect.py Author: Adam Pah Description: Handle the mongo connections ''' import sys import random from pymongo import MongoClient from bson.objectid import ObjectId import bson class MongoConnection(object): def __init__(self, cxnSettings): self.settings = cxnSettings self.mongoURI...
29.185185
110
0.557107
423
3,940
5.144208
0.300236
0.060662
0.025735
0.028952
0.177849
0.094669
0.068015
0.038603
0
0
0
0.00429
0.349239
3,940
134
111
29.402985
0.844384
0.020305
0
0.272727
0
0
0.169271
0
0
0
0
0
0
0
null
null
0.075758
0.075758
null
null
0.090909
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
1
0
0
1
0
0
0
0
0
2
37d4ca5a60c1fa5cd5d8faf75c0cce64c91f163a
109
py
Python
ttt.py
maxsheer/xprs
4776efad681c5d262e7611ec0b47180e8c68d8b3
[ "MIT" ]
null
null
null
ttt.py
maxsheer/xprs
4776efad681c5d262e7611ec0b47180e8c68d8b3
[ "MIT" ]
null
null
null
ttt.py
maxsheer/xprs
4776efad681c5d262e7611ec0b47180e8c68d8b3
[ "MIT" ]
null
null
null
from __future__ import division t = 0 while True: t += 1 if t*(t+1)/2 >= 6002: break print(t)
10.9
31
0.568807
19
109
3.052632
0.736842
0.068966
0
0
0
0
0
0
0
0
0
0.105263
0.302752
109
9
32
12.111111
0.657895
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
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
0
0
0
0
0
2
37da1dcfa50656e068c8015ab5df7515385c41b6
11,449
py
Python
pysnmp-with-texts/RBN-SYS-SECURITY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RBN-SYS-SECURITY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RBN-SYS-SECURITY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RBN-SYS-SECURITY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBN-SYS-SECURITY-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:53:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
144.924051
1,156
0.793781
1,325
11,449
6.857358
0.236226
0.035659
0.062404
0.009685
0.371671
0.244442
0.22188
0.201189
0.18578
0.18435
0
0.050106
0.097039
11,449
78
1,157
146.782051
0.828787
0.029173
0
0.072464
0
0.115942
0.390059
0.036377
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
37ed4cbc583f39e843cd0cad04203be8b22514d2
1,816
py
Python
IBMAlchemyAnalysis.py
rPortelas/sentimentAnalysis
4c843edafd6b8311009ad3ee425624ee7ed6273a
[ "Apache-2.0" ]
null
null
null
IBMAlchemyAnalysis.py
rPortelas/sentimentAnalysis
4c843edafd6b8311009ad3ee425624ee7ed6273a
[ "Apache-2.0" ]
null
null
null
IBMAlchemyAnalysis.py
rPortelas/sentimentAnalysis
4c843edafd6b8311009ad3ee425624ee7ed6273a
[ "Apache-2.0" ]
null
null
null
from __future__ import division import sys import json from os.path import join, dirname from watson_developer_cloud import AlchemyLanguageV1 from time import sleep import csv #return emotion guesses for paragraphs def alchemyAnalysis(paragraphs): alchemy_language = AlchemyLanguageV1(api_key='7ee2d55604ee59df13c9a315...
31.859649
106
0.676762
215
1,816
5.665116
0.455814
0.073892
0.054187
0.064039
0.20936
0.180624
0.180624
0.100164
0.100164
0.100164
0
0.027671
0.144273
1,816
56
107
32.428571
0.756113
0.376652
0
0.054054
0
0
0.107527
0.035842
0
0
0
0.017857
0
0
null
null
0
0.189189
null
null
0.081081
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
1
0
0
0
0
0
0
0
0
2
37f228ed86a640c1fc21cc2eb431854b7728d861
3,324
py
Python
test/integration/test_index.py
aerospike/aerospike-tools-backup
62a266e7525f6088171dbee36eeecfc71c47d2bf
[ "Apache-2.0", "MIT" ]
18
2015-09-25T21:24:33.000Z
2022-03-09T16:01:40.000Z
test/integration/test_index.py
aerospike/aerospike-tools-backup
62a266e7525f6088171dbee36eeecfc71c47d2bf
[ "Apache-2.0", "MIT" ]
7
2015-11-10T16:12:01.000Z
2019-04-12T05:19:28.000Z
test/integration/test_index.py
aerospike/aerospike-tools-backup
62a266e7525f6088171dbee36eeecfc71c47d2bf
[ "Apache-2.0", "MIT" ]
20
2015-10-21T20:05:50.000Z
2021-11-23T01:16:37.000Z
# coding=UTF-8 """ Tests the representation of indexes in backup files. """ import lib SET_NAMES = [None] + lib.index_variations(63) INDEX_NAMES = ["normal"] + lib.index_variations(63) INDEX_PATHS = ["normal"] + lib.index_variations(14) def create_indexes(create_func): """ Invokes the given index creation functio...
26.806452
82
0.761432
495
3,324
4.828283
0.105051
0.097908
0.070711
0.07364
0.797071
0.751046
0.680753
0.680753
0.66318
0.66318
0
0.010847
0.140193
3,324
123
83
27.02439
0.825402
0.285499
0
0.28125
0
0
0.015929
0
0
0
0
0
0
1
0.171875
false
0
0.015625
0
0.1875
0
0
0
0
null
0
0
0
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
2
53036be567e64c7bf8078e08439b4f801f44598e
517
py
Python
solutions/01x_verbose_concise.py
lsteffenel/dask-tutorial
686a9914b908c0b9f6ffc8ff73a9386944ffe426
[ "BSD-3-Clause" ]
null
null
null
solutions/01x_verbose_concise.py
lsteffenel/dask-tutorial
686a9914b908c0b9f6ffc8ff73a9386944ffe426
[ "BSD-3-Clause" ]
null
null
null
solutions/01x_verbose_concise.py
lsteffenel/dask-tutorial
686a9914b908c0b9f6ffc8ff73a9386944ffe426
[ "BSD-3-Clause" ]
null
null
null
## verbose version delayed_read_csv = delayed(pd.read_csv) a = delayed_read_csv(filenames[0]) b = delayed_read_csv(filenames[1]) c = delayed_read_csv(filenames[2]) delayed_len = delayed(len) na = delayed_len(a) nb = delayed_len(b) nc = delayed_len(c) delayed_sum = delayed(sum) total = delayed_sum([na, nb, nc]) %time...
23.5
53
0.729207
85
517
4.247059
0.329412
0.116343
0.155125
0.191136
0
0
0
0
0
0
0
0.006608
0.121857
517
22
54
23.5
0.788546
0.059961
0
0.133333
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.133333
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
1
0
0
0
0
0
0
0
0
2
5314f1f546c51ad6d87279d255164c369b4e1d0a
1,394
py
Python
projthetravelling/users/migrations/0002_auto_20170209_2118.py
chadgates/thetravelling2
3646d64acb0fbf5106066700f482c9013f5fb7d0
[ "MIT" ]
null
null
null
projthetravelling/users/migrations/0002_auto_20170209_2118.py
chadgates/thetravelling2
3646d64acb0fbf5106066700f482c9013f5fb7d0
[ "MIT" ]
null
null
null
projthetravelling/users/migrations/0002_auto_20170209_2118.py
chadgates/thetravelling2
3646d64acb0fbf5106066700f482c9013f5fb7d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-02-09 21:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( ...
30.304348
88
0.571019
145
1,394
5.324138
0.351724
0.139896
0.178756
0.209845
0.673575
0.673575
0.401554
0.352332
0.352332
0.352332
0
0.043077
0.300574
1,394
45
89
30.977778
0.748718
0.04878
0
0.473684
1
0
0.085412
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
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
0
0
0
0
0
0
0
0
2
533b714d75027989d54e189c54d163b5d39506a2
429
py
Python
Darlington/phase2/Data Structure/day 60 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase2/Data Structure/day 60 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase2/Data Structure/day 60 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#program to push an item on the heap, then pop and return the smallest item from the heap. import heapq heap = [] heapq.heappush(heap, ('V', 3)) heapq.heappush(heap, ('V', 2)) heapq.heappush(heap, ('V', 1)) print("Items in the heap:") for a in heap: print(a) print("----------------------") print("Using heappushpop pus...
30.642857
90
0.657343
72
429
3.916667
0.402778
0.099291
0.180851
0.191489
0.283688
0.113475
0
0
0
0
0
0.010929
0.146853
429
14
91
30.642857
0.759563
0.207459
0
0.307692
0
0
0.332353
0.064706
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.384615
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
0
0
0
0
0
2
534530255c722de05c63f65268b5ace5fe39e09c
261
py
Python
arrayAndString/urlify/urlify_solution.py
slowy07/crackingPythonInterview
c317634593e00b2289adccb31254ec73cce37f32
[ "MIT" ]
null
null
null
arrayAndString/urlify/urlify_solution.py
slowy07/crackingPythonInterview
c317634593e00b2289adccb31254ec73cce37f32
[ "MIT" ]
null
null
null
arrayAndString/urlify/urlify_solution.py
slowy07/crackingPythonInterview
c317634593e00b2289adccb31254ec73cce37f32
[ "MIT" ]
null
null
null
def urlify(s, i): p1, p2 = len(s) - 1, i while p1 >= 0 and p2 >= 0: if s[p2] != " ": s[p1] = s[p2] else: for i in reversed("%20"): s[p1] = i p1 -= 1 p1 -= 1 p2 -= 1
21.75
37
0.302682
38
261
2.078947
0.447368
0.075949
0
0
0
0
0
0
0
0
0
0.155738
0.532567
261
11
38
23.727273
0.491803
0
0
0.181818
0
0
0.015326
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
53472392360b6dacdc1a22f37ee6e587f7b0c36a
1,323
py
Python
pymusicterm/music/__init__.py
EGAMAGZ/Terminal-Music-Player
fc5ce7d9cef6ee98f2dde1784d363a8002584d96
[ "MIT" ]
2
2020-07-12T20:43:06.000Z
2020-08-07T06:16:12.000Z
pymusicterm/music/__init__.py
EGAMAGZ/Terminal-Music-Player
fc5ce7d9cef6ee98f2dde1784d363a8002584d96
[ "MIT" ]
null
null
null
pymusicterm/music/__init__.py
EGAMAGZ/Terminal-Music-Player
fc5ce7d9cef6ee98f2dde1784d363a8002584d96
[ "MIT" ]
null
null
null
import os MUSIC_EXTENSIONS=(".mp3",".wav") # Valid music extensions def is_valid_extension(file_name:str): if file_name.endswith(MUSIC_EXTENSIONS): return True return False class SongFile: """ Class that stv ores information of a song file This class with store the path where is found the s...
24.962264
78
0.598639
182
1,323
4.186813
0.291209
0.094488
0.043307
0.051181
0.200787
0.068241
0.068241
0
0
0
0
0.00221
0.315949
1,323
52
79
25.442308
0.839779
0.429327
0
0
0
0
0.013559
0
0
0
0
0
0
1
0.277778
false
0
0.055556
0
0.777778
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
0
0
1
0
0
2
536994c2ce6127cc80e44a400fb0442a636d3fa9
402
py
Python
hydra_plugins/bigpipe_response/bigpipe_response_searchpath.py
shay-t/bigpipe-response
2a68dde1d7cfb3f837e1c108d45df1465607cd25
[ "MIT" ]
13
2020-01-23T18:30:37.000Z
2020-02-14T19:05:28.000Z
hydra_plugins/bigpipe_response/bigpipe_response_searchpath.py
shay-t/bigpipe-response
2a68dde1d7cfb3f837e1c108d45df1465607cd25
[ "MIT" ]
3
2022-02-14T19:39:36.000Z
2022-02-27T20:26:05.000Z
hydra_plugins/bigpipe_response/bigpipe_response_searchpath.py
shay-t/bigpipe-response
2a68dde1d7cfb3f837e1c108d45df1465607cd25
[ "MIT" ]
1
2021-12-20T14:47:18.000Z
2021-12-20T14:47:18.000Z
from hydra.core.config_search_path import ConfigSearchPath from hydra.plugins.search_path_plugin import SearchPathPlugin class BigpipeResponseSearchPathPlugin(SearchPathPlugin): def manipulate_search_path(self, search_path: ConfigSearchPath) -> None: assert isinstance(search_path, ConfigSearchPath) ...
44.666667
80
0.798507
42
402
7.404762
0.547619
0.192926
0.167203
0
0
0
0
0
0
0
0
0
0.126866
402
8
81
50.25
0.88604
0
0
0
0
0
0.114213
0.073604
0
0
0
0
0.166667
1
0.166667
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
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
2
7260c34553c618eb3d22544e88bfcdd98370612c
1,224
py
Python
synapse/nn/activations.py
brymer-meneses/sparknet
b2978e4926522719c73ee0c15c136d5693a72bcb
[ "Apache-2.0" ]
1
2021-05-04T23:05:22.000Z
2021-05-04T23:05:22.000Z
synapse/nn/activations.py
brymer-meneses/sparknet
b2978e4926522719c73ee0c15c136d5693a72bcb
[ "Apache-2.0" ]
null
null
null
synapse/nn/activations.py
brymer-meneses/sparknet
b2978e4926522719c73ee0c15c136d5693a72bcb
[ "Apache-2.0" ]
null
null
null
from synapse.nn.layers import Layer from synapse.core.tensor import Tensor from synapse.core.differentiable import Differentiable import numpy as np from typing import Callable def tanhBackward(grad: Tensor, t1: Tensor) -> Tensor: data = grad.data * (1 - np.tanh(t1.data) ** 2) return Tensor(data) @Differe...
23.09434
67
0.65768
161
1,224
4.956522
0.285714
0.100251
0.087719
0.090226
0.235589
0.185464
0.185464
0.090226
0
0
0
0.023231
0.226307
1,224
52
68
23.538462
0.81943
0.022876
0
0.193548
0
0
0
0
0
0
0
0.019231
0
1
0.225806
false
0.032258
0.16129
0
0.612903
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
0
0
0
0
2
72679c1b705094e5ac32034c34e78d2f0e614722
5,321
py
Python
mopidy_pandora/listener.py
jcass77/mopidy-pandora
234acc3ca0f09e733a77fbea56fc38a13b2e4f72
[ "Apache-2.0" ]
1
2015-03-09T19:07:54.000Z
2015-03-09T19:07:54.000Z
mopidy_pandora/listener.py
jcass77/mopidy-pandora
234acc3ca0f09e733a77fbea56fc38a13b2e4f72
[ "Apache-2.0" ]
null
null
null
mopidy_pandora/listener.py
jcass77/mopidy-pandora
234acc3ca0f09e733a77fbea56fc38a13b2e4f72
[ "Apache-2.0" ]
2
2020-06-25T00:43:58.000Z
2020-09-20T15:32:59.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from mopidy import backend, listener class EventMonitorListener(listener.Listener): """ Marker interface for recipients of events sent by the event monitor. """ @staticmethod def send(event, **kwargs): l...
35.473333
118
0.670551
694
5,321
5.053314
0.231988
0.014257
0.015398
0.01882
0.526946
0.491873
0.451668
0.408326
0.345595
0.310522
0
0
0.266303
5,321
149
119
35.711409
0.898309
0.616989
0
0.472222
0
0
0
0
0
0
0
0
0
1
0.361111
false
0.25
0.055556
0
0.527778
0.027778
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
1
0
0
0
0
0
2
726b160f55b0ed90555e64fa2cad7c08ea58cb0e
317
py
Python
autocomplete_light/example_apps/dependant_autocomplete/admin.py
bburan/django-autocomplete-light
064676061b101d5d47655e8598b21cbaf7716ae8
[ "MIT" ]
1
2015-10-12T21:42:05.000Z
2015-10-12T21:42:05.000Z
autocomplete_light/example_apps/dependant_autocomplete/admin.py
bburan/django-autocomplete-light
064676061b101d5d47655e8598b21cbaf7716ae8
[ "MIT" ]
null
null
null
autocomplete_light/example_apps/dependant_autocomplete/admin.py
bburan/django-autocomplete-light
064676061b101d5d47655e8598b21cbaf7716ae8
[ "MIT" ]
null
null
null
from django.contrib import admin import autocomplete_light from .models import Dummy from .forms import DummyForm class DummyInline(admin.TabularInline): model = Dummy form = DummyForm class DummyAdmin(admin.ModelAdmin): form = DummyForm inlines = [DummyInline] admin.site.register(Dummy, DummyAdmin)
17.611111
39
0.77918
37
317
6.648649
0.567568
0.113821
0
0
0
0
0
0
0
0
0
0
0.15142
317
17
40
18.647059
0.914498
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.909091
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
0
0
0
1
0
1
0
0
2
726ec9b79f09e2ee927e7e142d55ad6268a5e232
1,900
py
Python
hash.py
YasinBlackhat/read-file-csv--finde-password-0-10000
4a2ecd23d63dff117cd14df9b7f4ce0d65b15bae
[ "Unlicense" ]
2
2019-11-30T21:35:28.000Z
2021-07-07T15:59:05.000Z
hash.py
YasinBlackhat/read-file-csv--finde-password-0-10000
4a2ecd23d63dff117cd14df9b7f4ce0d65b15bae
[ "Unlicense" ]
null
null
null
hash.py
YasinBlackhat/read-file-csv--finde-password-0-10000
4a2ecd23d63dff117cd14df9b7f4ce0d65b15bae
[ "Unlicense" ]
null
null
null
# my lib an valid and dict and list import csv lihash_filecsv = dict() li =[] lihash=[] countname = 0 count_csv_hash = 0 d = 1 # read file csv for crack <<<<<<< HEAD print('Example Type location : E:\\Land program\\new folder\\2.csv') locat = str(input('Enter your location file csv : ')) with open(locat) as...
29.6875
108
0.512632
213
1,900
4.497653
0.42723
0.05428
0.037578
0.039666
0.048017
0
0
0
0
0
0
0.066347
0.341579
1,900
63
109
30.15873
0.69944
0.051579
0
0.117647
0
0
0.197232
0.031142
0
0
0
0
0
0
null
null
0.098039
0.039216
null
null
0.176471
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
1
0
0
1
0
0
0
0
0
2
726f5f74367129dc1c0ffd0f78d98de265106c89
426
py
Python
kattis/Broken Calculator.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
kattis/Broken Calculator.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
kattis/Broken Calculator.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
# CPU: 0.08 s from math import ceil prev_ans = 1 for _ in range(int(input())): operand1, operator, operand2 = input().split() operand1 = int(operand1) operand2 = int(operand2) if operator == "+": ans = operand1 + operand2 - prev_ans elif operator == "-": ans = (operand1 - operand2) * prev_ans elif operator ...
21.3
47
0.638498
57
426
4.684211
0.438596
0.104869
0.213483
0.303371
0.385768
0.385768
0.385768
0.385768
0.385768
0.385768
0
0.05638
0.20892
426
19
48
22.421053
0.735905
0.025822
0
0
0
0
0.007264
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.0625
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
0
0
0
0
0
2
728628c57e80bd0056ba4df57b6bc496e6193d62
1,317
py
Python
packs/alertlogic/actions/scan_list_scan_executions.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/alertlogic/actions/scan_list_scan_executions.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/alertlogic/actions/scan_list_scan_executions.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
#!/usr/bin/env python # Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Licens...
34.657895
74
0.738041
184
1,317
5.23913
0.597826
0.062241
0.026971
0.033195
0
0
0
0
0
0
0
0.004713
0.194381
1,317
37
75
35.594595
0.903864
0.659833
0
0
0
0
0.005181
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.857143
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
0
0
0
1
0
1
0
0
2
7288a49b74524a3987e89e115748a506f07aca77
496
py
Python
server/models/checkup.py
sidgan/unnamedtoolforgithub
486707a78d1ce9e10ad14e136e4f51716a0f58d3
[ "MIT" ]
1
2021-01-02T13:56:59.000Z
2021-01-02T13:56:59.000Z
server/models/checkup.py
sidgan/unnamedtoolforgithub
486707a78d1ce9e10ad14e136e4f51716a0f58d3
[ "MIT" ]
null
null
null
server/models/checkup.py
sidgan/unnamedtoolforgithub
486707a78d1ce9e10ad14e136e4f51716a0f58d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from app import db class Checkup(db.Model): __tablename__ = 'checkup' id = db.Column(db.Integer, primary_key=True) created = db.Column(db.DateTime, default=datetime.utcnow) # TODO: add one unique constraint on the column group of owner and repo ...
31
75
0.655242
64
496
5
0.625
0.1
0.125
0.1
0
0
0
0
0
0
0
0.002618
0.229839
496
15
76
33.066667
0.835079
0.183468
0
0
0
0
0.079602
0
0
0
0
0.066667
0
1
0
false
0
0.2
0
0.9
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
0
0
0
0
0
1
0
0
2
7288ba8189c38da81bca13e50a60178b7df691af
1,511
py
Python
tests/commands/create_character/test_create_werewolf.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
13
2016-02-23T08:15:22.000Z
2021-07-17T20:54:57.000Z
tests/commands/create_character/test_create_werewolf.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
1
2017-03-30T08:11:40.000Z
2017-09-07T15:01:08.000Z
tests/commands/create_character/test_create_werewolf.py
Arent128/npc
c8a1e227a1d4d7c540c4f4427b611ffc290535ee
[ "MIT" ]
1
2020-02-21T09:44:40.000Z
2020-02-21T09:44:40.000Z
import npc import pytest def test_creates_character(campaign): result = npc.commands.create_character.werewolf('werewolf mann', 'cahalith') character = campaign.get_character('werewolf mann.nwod') assert result.success assert character.exists() assert campaign.get_absolute(result.openable[0]) == st...
41.972222
106
0.746525
191
1,511
5.748691
0.204188
0.131148
0.108379
0.165756
0.586521
0.586521
0.586521
0.586521
0.586521
0.123862
0
0.000757
0.125745
1,511
35
107
43.171429
0.830431
0
0
0.275862
0
0
0.215089
0
0
0
0
0
0.310345
1
0.206897
false
0
0.068966
0
0.275862
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
0
0
0
0
2
728b63137c72126e427747e405ccb4d57fec6d09
232
py
Python
models/ir_model.py
OSevangelist/vsf-odoo
2133dcaf0ce7d50573d43387fd343be6dfe7c9d7
[ "MIT" ]
84
2019-06-11T08:14:52.000Z
2022-02-17T13:58:20.000Z
models/ir_model.py
OSevangelist/vsf-odoo
2133dcaf0ce7d50573d43387fd343be6dfe7c9d7
[ "MIT" ]
16
2019-06-15T14:30:14.000Z
2020-07-26T04:21:42.000Z
models/ir_model.py
OSevangelist/vsf-odoo
2133dcaf0ce7d50573d43387fd343be6dfe7c9d7
[ "MIT" ]
38
2019-06-11T11:44:12.000Z
2021-11-20T20:55:17.000Z
from odoo import fields, models class IrModel(models.Model): _inherit = 'ir.model' rest_api = fields.Boolean('REST API', default=True, help="Allow this model to be fetched through REST API")
29
85
0.62931
30
232
4.8
0.733333
0.145833
0
0
0
0
0
0
0
0
0
0
0.280172
232
7
86
33.142857
0.862275
0
0
0
0
0
0.271552
0
0
0
0
0
0
1
0
false
0
0.2
0
0.8
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
0
0
0
0
1
0
0
2
729e9836fbb040d417fd55deb4e2bcefc449cdb1
484
py
Python
nando/read_pickle.py
idsc-frazzoli/SMARTS
bae0a6ea160330921edc94a7161a4e8cf72a1974
[ "MIT" ]
null
null
null
nando/read_pickle.py
idsc-frazzoli/SMARTS
bae0a6ea160330921edc94a7161a4e8cf72a1974
[ "MIT" ]
null
null
null
nando/read_pickle.py
idsc-frazzoli/SMARTS
bae0a6ea160330921edc94a7161a4e8cf72a1974
[ "MIT" ]
null
null
null
import pandas as pd import os scenario = 'cross-4' name = 'PPO_FrameStack_9c0e9_00000_0_2021-12-09_00-21-45' checkpoint_nr = 10 pickle_path = os.path.join('baselines', 'marl_benchmark', 'log', 'results', 'run', scenario, name, 'checkpoi...
26.888889
82
0.539256
52
484
4.711538
0.673077
0.146939
0.187755
0.204082
0
0
0
0
0
0
0
0.083871
0.359504
484
17
83
28.470588
0.706452
0
0
0
0
0
0.233954
0.099379
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
0
0
0
0
0
0
0
2
72a52b681f192b6f1785bcfe1b55078d0b9820fa
1,966
py
Python
rllib/agents/dqn/__init__.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
rllib/agents/dqn/__init__.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
rllib/agents/dqn/__init__.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
import ray.rllib.agents.dqn.apex as apex # noqa import ray.rllib.agents.dqn.simple_q as simple_q # noqa from ray.rllib.algorithms.apex_dqn.apex_dqn import APEX_DEFAULT_CONFIG from ray.rllib.algorithms.apex_dqn.apex_dqn import ApexDQN as ApexTrainer from ray.rllib.algorithms.apex_dqn.apex_dqn import ApexDQNConfig from...
35.107143
82
0.790946
259
1,966
5.791506
0.162162
0.117333
0.144
0.249333
0.471333
0.440667
0.337333
0.269333
0.168
0
0
0.025478
0.121567
1,966
55
83
35.745455
0.84308
0.010682
0
0
0
0
0.173622
0.037094
0
0
0
0
0
1
0
false
0
0.392157
0
0.392157
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
0
0
0
1
0
0
0
0
2
72c1dd902608b72d14f8b58f4429e97a401992f5
251
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractMyFirstTimeTranslating.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractMyFirstTimeTranslating.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractMyFirstTimeTranslating.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractMyFirstTimeTranslating(item): """ 'My First Time Translating' """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None return False
27.888889
74
0.721116
31
251
5.83871
0.709677
0.099448
0
0
0
0
0
0
0
0
0
0
0.14741
251
8
75
31.375
0.845794
0.10757
0
0
0
0
0.079439
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
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
0
0
0
0
1
0
0
2
72d988951477d008555baa8b645574c9d756354d
448
py
Python
hi-ml/testhiml/testhiml/utils_testhiml.py
maxilse/hi-ml
7902a6e1387a74ef0d861109450a5c93674de764
[ "MIT" ]
34
2021-08-18T13:27:36.000Z
2022-03-26T01:25:36.000Z
hi-ml/testhiml/testhiml/utils_testhiml.py
maxilse/hi-ml
7902a6e1387a74ef0d861109450a5c93674de764
[ "MIT" ]
111
2021-08-18T13:19:46.000Z
2022-03-30T05:57:01.000Z
hi-ml/testhiml/testhiml/utils_testhiml.py
maxilse/hi-ml
7902a6e1387a74ef0d861109450a5c93674de764
[ "MIT" ]
6
2021-09-13T12:07:58.000Z
2022-03-24T16:31:06.000Z
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
56
94
0.473214
31
448
6.774194
0.83871
0
0
0
0
0
0
0
0
0
0
0
0.089286
448
7
95
64
0.514706
0.745536
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
1
0
0
0
0
2
72db843aa2afac8805d15b79ccd276eda45de98d
469
py
Python
src/test/pythonFiles/testFiles/specificTest/tests/test_unittest_one.py
ChaseKnowlden/vscode-jupyter
9bdaf87f0b6dcd717c508e9023350499a6093f97
[ "MIT" ]
615
2020-11-11T22:55:28.000Z
2022-03-30T21:48:08.000Z
src/test/pythonFiles/testFiles/specificTest/tests/test_unittest_one.py
ChaseKnowlden/vscode-jupyter
9bdaf87f0b6dcd717c508e9023350499a6093f97
[ "MIT" ]
8,428
2020-11-11T22:06:43.000Z
2022-03-31T23:42:34.000Z
src/test/pythonFiles/testFiles/specificTest/tests/test_unittest_one.py
vasili8m/vscode-python
846eee870e8b7bab38172600836faedb5fb80166
[ "MIT" ]
158
2020-11-12T07:49:02.000Z
2022-03-27T20:50:20.000Z
import unittest class Test_test_one_1(unittest.TestCase): def test_1_1_1(self): self.assertEqual(1,1,'Not equal') def test_1_1_2(self): self.assertEqual(1,2,'Not equal') @unittest.skip("demonstrating skipping") def test_1_1_3(self): self.assertEqual(1,2,'Not equal') class Tes...
23.45
44
0.675906
73
469
3.986301
0.273973
0.041237
0.109966
0.274914
0.570447
0.405498
0.405498
0.206186
0
0
0
0.058047
0.191898
469
19
45
24.684211
0.709763
0
0
0.285714
0
0
0.140725
0
0
0
0
0
0.285714
1
0.285714
false
0
0.071429
0
0.5
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
0
0
0
0
2
72dc75da02a6aae3302fcd05904996d284520b05
21,170
py
Python
hoomd/hpmc/test-py/test_hpmc_util.py
kmoskovtsev/HOOMD-Blue-fork
99560563a5ba9e082b513764bae51a84f48fdc70
[ "BSD-3-Clause" ]
null
null
null
hoomd/hpmc/test-py/test_hpmc_util.py
kmoskovtsev/HOOMD-Blue-fork
99560563a5ba9e082b513764bae51a84f48fdc70
[ "BSD-3-Clause" ]
null
null
null
hoomd/hpmc/test-py/test_hpmc_util.py
kmoskovtsev/HOOMD-Blue-fork
99560563a5ba9e082b513764bae51a84f48fdc70
[ "BSD-3-Clause" ]
null
null
null
# Test the helper functions in hpmc.util from __future__ import division, print_function from hoomd import * from hoomd import hpmc import unittest import tempfile import os import numpy as np context.initialize() def create_empty(**kwargs): snap = data.make_snapshot(**kwargs); return init.read_snapshot(snap)...
40.094697
113
0.582428
3,141
21,170
3.823941
0.111748
0.021147
0.028724
0.035634
0.751728
0.733494
0.699775
0.670136
0.6365
0.612688
0
0.061203
0.269107
21,170
527
114
40.170778
0.715052
0.10581
0
0.6097
0
0.002309
0.046777
0
0
0
0
0
0.115473
1
0.069284
false
0.002309
0.016166
0
0.106236
0.006928
0
0
0
null
0
0
0
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
2
72faaabdfa45f533f9d5c7c287931f3778de7c1d
1,078
py
Python
src/backend/swagger/model/schema/x_ms_parameter_grouping.py
kairu-ms/aaz-dev-tools
233a70253487ebbc8347bdd1851e07c2a745104f
[ "MIT" ]
null
null
null
src/backend/swagger/model/schema/x_ms_parameter_grouping.py
kairu-ms/aaz-dev-tools
233a70253487ebbc8347bdd1851e07c2a745104f
[ "MIT" ]
2
2021-12-21T03:49:53.000Z
2021-12-29T07:32:31.000Z
src/backend/swagger/model/schema/x_ms_parameter_grouping.py
kairu-ms/aaz-dev-tools
233a70253487ebbc8347bdd1851e07c2a745104f
[ "MIT" ]
1
2021-11-18T09:07:11.000Z
2021-11-18T09:07:11.000Z
from schematics.models import Model from schematics.types import StringType, ModelType class XmsParameterGrouping(Model): """ By default operation parameters are generated in the client as method arguments. This behavior can sometimes be undesirable when the number of parameters is high. x-ms-parameter-groupi...
44.916667
289
0.736549
130
1,078
6.030769
0.592308
0.015306
0.061224
0.102041
0
0
0
0
0
0
0
0
0.188312
1,078
23
290
46.869565
0.896
0.517625
0
0
1
0
0.092184
0.092184
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.538462
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
f40e3147d90ea8346e2fc05799922c321a646690
9,098
py
Python
roscraco/response/wireless.py
spantaleev/roscraco
87a5a7c54931d5586fd7d30c8c67a699bef69c1f
[ "BSD-3-Clause" ]
13
2015-03-01T00:39:43.000Z
2020-09-06T09:32:52.000Z
roscraco/response/wireless.py
cyroxx/roscraco
fc0279928d0241f4eb475ac40b24ab22cb1d900a
[ "BSD-3-Clause" ]
3
2015-08-08T01:34:35.000Z
2017-05-14T11:07:50.000Z
roscraco/response/wireless.py
cyroxx/roscraco
fc0279928d0241f4eb475ac40b24ab22cb1d900a
[ "BSD-3-Clause" ]
11
2015-01-29T03:21:08.000Z
2020-06-30T17:05:19.000Z
from roscraco.helper import validator from roscraco.exception import RouterSettingsError class WirelessSettings(object): """Represents all available Wireless settings for a router.""" SECURITY_TYPE_NONE = 'none' SECURITY_TYPE_WEP64 = 'wep64' SECURITY_TYPE_WEP128 = 'wep128' SECURITY_TYPE_WPA = 'wp...
34.074906
111
0.647835
1,119
9,098
4.971403
0.175156
0.107855
0.046018
0.049074
0.287255
0.166097
0.117922
0.110552
0.075139
0.072263
0
0.008044
0.275775
9,098
266
112
34.203008
0.836242
0.214223
0
0.149351
0
0
0.05049
0
0
0
0
0
0
1
0.233766
false
0.175325
0.012987
0.045455
0.474026
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
1
0
0
0
0
0
2
f413bf4b1d3c8512f134ed08956caf4205134216
1,216
py
Python
models/vgg_skip/vgg_skip.py
po0ya/tensorflow_vgg_face
b95163fe4596844ab61755b8c9c55e4fc0cd5944
[ "MIT" ]
3
2017-08-18T07:24:25.000Z
2019-02-06T16:36:35.000Z
models/vgg_skip/vgg_skip.py
po0ya/tensorflow_vgg_face
b95163fe4596844ab61755b8c9c55e4fc0cd5944
[ "MIT" ]
null
null
null
models/vgg_skip/vgg_skip.py
po0ya/tensorflow_vgg_face
b95163fe4596844ab61755b8c9c55e4fc0cd5944
[ "MIT" ]
null
null
null
from kaffe.tensorflow import Network class VGG16_skip(Network): def setup(self): (self.feed('data') .conv(3, 3, 64, 1, 1, name='conv1_1') .conv(3, 3, 64, 1, 1, name='conv1_2') .max_pool(2, 2, 2, 2, name='pool1') .conv(3, 3, 128, 1, 1, name='conv2_1') ...
41.931034
62
0.45148
195
1,216
2.702564
0.210256
0.056926
0.159393
0.119545
0.648956
0.648956
0.648956
0.648956
0
0
0
0.208333
0.348684
1,216
28
63
43.428571
0.457071
0
0
0
0
0
0.126749
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.115385
0
0
0
0
null
0
0
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
0
0
0
0
0
0
0
2
f41a273247c401547dc4dbce4ef596c25a86ac65
4,427
py
Python
OverFitting Simulation.py
escha2019/python_codes
918a2d5c9a8c62bf951f4d1018e9736f58fd5ee9
[ "BSD-3-Clause" ]
null
null
null
OverFitting Simulation.py
escha2019/python_codes
918a2d5c9a8c62bf951f4d1018e9736f58fd5ee9
[ "BSD-3-Clause" ]
null
null
null
OverFitting Simulation.py
escha2019/python_codes
918a2d5c9a8c62bf951f4d1018e9736f58fd5ee9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: from sklearn.model_selection import train_test_split from sklearn.preprocessing import normalize from sklearn.linear_model import LinearRegression from sklearn.preprocessing import PolynomialFeatures import matplotlib.pyplot as plt import numpy as np import pandas as pd...
29.912162
106
0.559069
530
4,427
4.575472
0.313208
0.008247
0.01732
0.023505
0.096495
0.055258
0.055258
0.055258
0.037113
0.037113
0
0.039169
0.336797
4,427
147
107
30.115646
0.786785
0.07635
0
0.060606
0
0
0.020533
0.007214
0
0
0
0
0
0
null
null
0.060606
0.106061
null
null
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
1
0
0
1
0
0
0
0
0
2
f422c3a81b579a0da783ffaa5c20764e695153f8
7,758
py
Python
bolero/representation/baseline.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
51
2017-05-19T13:33:29.000Z
2022-01-21T10:59:57.000Z
bolero/representation/baseline.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
94
2017-05-19T19:44:07.000Z
2021-12-15T13:40:59.000Z
bolero/representation/baseline.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
31
2017-05-19T19:41:39.000Z
2021-08-25T14:14:19.000Z
# Author: Alexander Fabisch <afabisch@informatik.uni-bremen.de> import numpy as np from .behavior import BlackBoxBehavior from ..utils.validation import check_random_state class DummyBehavior(BlackBoxBehavior): """Dummy behavior allows using environments which do not require behaviors. Some environments (e....
26.659794
80
0.555169
835
7,758
5.051497
0.17485
0.037933
0.043148
0.042674
0.68587
0.68587
0.68587
0.63964
0.628734
0.628734
0
0.002336
0.337845
7,758
290
81
26.751724
0.818766
0.434648
0
0.56962
0
0
0.082378
0
0
0
0
0
0
1
0.379747
false
0
0.037975
0
0.531646
0
0
0
0
null
0
0
0
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
1
0
0
0
0
0
0
0
2
f423dd2d6c033124f374a944fe0c0a1314eea692
2,365
py
Python
server/.vim/plugged/python-mode/submodules/pylint/tests/functional/b/bad_reversed_sequence.py
hkdb/sysconf
99d334f7309657647059c4b37f25e33dffc81fc3
[ "MIT" ]
10
2020-07-21T21:59:54.000Z
2021-07-19T11:01:47.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/b/bad_reversed_sequence.py
OrangeGzY/vimrc
ddcaedce2effbbd1014eddbceebeb8c621cd9f95
[ "MIT" ]
null
null
null
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/b/bad_reversed_sequence.py
OrangeGzY/vimrc
ddcaedce2effbbd1014eddbceebeb8c621cd9f95
[ "MIT" ]
1
2021-01-30T18:17:01.000Z
2021-01-30T18:17:01.000Z
""" Checks that reversed() receive proper argument """ # pylint: disable=missing-docstring, useless-object-inheritance # pylint: disable=too-few-public-methods,no-self-use,no-absolute-import from collections import deque, OrderedDict from enum import IntEnum class GoodReversed(object): """ Implements __reversed__...
29.197531
75
0.646934
280
2,365
5.275
0.353571
0.134056
0.102911
0.11916
0.266757
0.11239
0.073798
0
0
0
0
0.016216
0.217759
2,365
80
76
29.5625
0.782162
0.303594
0
0.192308
0
0
0.003824
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0.115385
0.596154
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
0
0
0
0
1
1
0
0
2
f42ca5d1f100e43b9f46b3b6227a28c8f2e3ab0a
48,685
py
Python
tests/st/ops/gpu/test_lstm_op.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
2
2020-04-28T03:49:10.000Z
2020-04-28T03:49:13.000Z
tests/st/ops/gpu/test_lstm_op.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
7
2020-03-30T08:31:56.000Z
2020-04-01T09:54:39.000Z
tests/st/ops/gpu/test_lstm_op.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
1
2020-03-30T17:07:43.000Z
2020-03-30T17:07:43.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
49.077621
120
0.473082
6,791
48,685
3.316743
0.300692
0.021444
0.044619
0.046883
0.404235
0.396644
0.389984
0.389984
0.38368
0.382792
0
0.384063
0.347581
48,685
991
121
49.127144
0.325064
0.013105
0
0.327707
0
0
0.00058
0
0
0
0
0
0.036568
1
0.02391
false
0
0.015471
0.007032
0.056259
0
0
0
0
null
0
0
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
0
0
0
0
0
0
0
2
f42e1364a865b4cba09dcfe50eb40917d18864f1
701
py
Python
tern/classes/templates/spdx.py
ManishaTripathy/tern
bf3da704d2731417fd070bab888be7b9685080c9
[ "BSD-2-Clause" ]
null
null
null
tern/classes/templates/spdx.py
ManishaTripathy/tern
bf3da704d2731417fd070bab888be7b9685080c9
[ "BSD-2-Clause" ]
null
null
null
tern/classes/templates/spdx.py
ManishaTripathy/tern
bf3da704d2731417fd070bab888be7b9685080c9
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause # from tern.classes.template import Template class SPDXTagValue(Template): '''This is the SPDX Template class It provides mappings for the SPDX tag-value document format''' def package(self): return ...
26.961538
66
0.606277
70
701
6.028571
0.685714
0.07109
0.066351
0.118483
0
0
0
0
0
0
0
0.009785
0.271041
701
25
67
28.04
0.816047
0.261056
0
0.153846
0
0
0.304951
0.043564
0
0
0
0
0
1
0.230769
false
0
0.076923
0.230769
0.615385
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
0
1
0
0
0
2
f4341213ed77acabe7ee14da316a62b7bb52bd33
2,371
py
Python
get_html.py
Marcel5751/garbage-collection-calendar-bremen
40faf665ce4d9bc0667a71faa8b8d27ec3ef91e1
[ "MIT" ]
1
2020-03-13T21:33:48.000Z
2020-03-13T21:33:48.000Z
get_html.py
Marcel5751/garbage-collection-calendar-bremen
40faf665ce4d9bc0667a71faa8b8d27ec3ef91e1
[ "MIT" ]
null
null
null
get_html.py
Marcel5751/garbage-collection-calendar-bremen
40faf665ce4d9bc0667a71faa8b8d27ec3ef91e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import codecs import os import uuid from datetime import datetime import requests import main PATH_TO_HTML_FOLDER = "./html-data" def get_important_part_of_html(filename, html_as_string, start_year, end_year): """Removes useless beginning and end of html file. Uses HTML Comments as Orien...
30.397436
88
0.714466
354
2,371
4.466102
0.30791
0.040481
0.0253
0.040481
0.174573
0.073371
0.043011
0
0
0
0
0.008412
0.197807
2,371
77
89
30.792208
0.822818
0.293969
0
0
0
0
0.078914
0
0
0
0
0
0
1
0.121212
false
0
0.363636
0
0.636364
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
0
0
0
1
0
1
0
0
2
f46800f4a5980bf7f23c95a78f7c0132c0edb032
10,116
py
Python
libs/configs_old/DOTA/gwd/cfgs_res50_dota_v20.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
850
2020-10-27T08:51:54.000Z
2022-03-30T15:12:06.000Z
libs/configs_old/DOTA/gwd/cfgs_res50_dota_v20.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
94
2020-12-01T02:18:47.000Z
2022-03-30T08:14:27.000Z
libs/configs_old/DOTA/gwd/cfgs_res50_dota_v20.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
149
2020-10-29T03:30:32.000Z
2022-03-29T09:53:23.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf import math from dataloader.pretrained_weights.pretrain_zoo import PretrainModelZoo """ RetinaNet-H + gwd fix bug + sqrt + tau=2 + train set FLOPs: 860451163; Trainable params: 33002916 iou t...
58.137931
583
0.732305
1,269
10,116
5.730496
0.345154
0.016502
0.024202
0.023377
0.095435
0.091584
0.035754
0.023927
0.010726
0.010726
0
0.360526
0.089957
10,116
173
584
58.473988
0.429394
0.066133
0
0
0
0
0.060377
0.029434
0
0
0
0
0
1
0
false
0
0.060241
0
0.060241
0.036145
0
0
0
null
0
0
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
0
0
0
0
0
0
0
2
f46b3b75aeaa07c38964612beb7c50451d4b0fa7
534
py
Python
hata/discord/user/__init__.py
ToxicKidz/hata
f834c3cee3920d3095254815582325c5232022d7
[ "0BSD" ]
1
2022-02-04T10:20:34.000Z
2022-02-04T10:20:34.000Z
hata/discord/user/__init__.py
Tari-dev/hata
a5c3199c845858f997af3b0b2c18770fdc691897
[ "0BSD" ]
null
null
null
hata/discord/user/__init__.py
Tari-dev/hata
a5c3199c845858f997af3b0b2c18770fdc691897
[ "0BSD" ]
null
null
null
from .activity_change import * from .client_user_base import * from .flags import * from .guild_profile import * from .preinstanced import * from .thread_profile import * from .user import * from .user_base import * from .utils import * from .voice_state import * __all__ = ( *activity_change.__all__, *client_...
21.36
31
0.720974
65
534
5.030769
0.246154
0.275229
0.085627
0.110092
0
0
0
0
0
0
0
0
0.179775
534
24
32
22.25
0.746575
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
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
0
0
0
0
0
0
1
0
0
0
0
2
f47074d5676798383abb4b84d381af00df5b5e34
7,054
py
Python
app/models/users.py
jchen0506/bse-staging
9170c732f437cadb15cec95a059448b6354ce49e
[ "BSD-3-Clause" ]
null
null
null
app/models/users.py
jchen0506/bse-staging
9170c732f437cadb15cec95a059448b6354ce49e
[ "BSD-3-Clause" ]
null
null
null
app/models/users.py
jchen0506/bse-staging
9170c732f437cadb15cec95a059448b6354ce49e
[ "BSD-3-Clause" ]
null
null
null
from .. import db, login_manager from datetime import datetime import hashlib from werkzeug.security import generate_password_hash, check_password_hash from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask_login import UserMixin, AnonymousUserMixin from flask import current_app, url_for impo...
29.763713
83
0.613411
835
7,054
5.022754
0.197605
0.023844
0.034335
0.040057
0.341917
0.239866
0.187172
0.187172
0.150453
0.150453
0
0.009333
0.27091
7,054
236
84
29.889831
0.806144
0.022257
0
0.276243
1
0
0.067036
0.006412
0
0
0
0
0
1
0.165746
false
0.060773
0.044199
0.055249
0.480663
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
f477d5cbff0b6252fffa83628dd5bea75034281c
1,117
py
Python
src/init/azext_init/commands.py
HuangYT2000/azure-cli-extensions
7cceaabc342a3284376fe24b895226599a51ce65
[ "MIT" ]
null
null
null
src/init/azext_init/commands.py
HuangYT2000/azure-cli-extensions
7cceaabc342a3284376fe24b895226599a51ce65
[ "MIT" ]
null
null
null
src/init/azext_init/commands.py
HuangYT2000/azure-cli-extensions
7cceaabc342a3284376fe24b895226599a51ce65
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
36.032258
98
0.576544
122
1,117
5.04918
0.581967
0.034091
0.068182
0.061688
0.090909
0.090909
0
0
0
0
0
0
0.155774
1,117
30
99
37.233333
0.653234
0.576544
0
0
0
0
0.146288
0
0
0
0
0.033333
0
1
0.111111
false
0.111111
0.222222
0
0.333333
0.111111
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
0
0
1
0
0
0
0
0
2