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
4e7aae2cfbb07486e48d60f16bce3de6949f6366
3,213
py
Python
getHelmstedtGNDs.py
hbeyer/pcp-vd
e8b4903b4188fea5295e7709e25216f10954f23f
[ "MIT" ]
null
null
null
getHelmstedtGNDs.py
hbeyer/pcp-vd
e8b4903b4188fea5295e7709e25216f10954f23f
[ "MIT" ]
null
null
null
getHelmstedtGNDs.py
hbeyer/pcp-vd
e8b4903b4188fea5295e7709e25216f10954f23f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import mysql.connector mydb = mysql.connector.connect( host = "localhost", user = "root", passwd = "schleichkatze", database = "helmstedt" ) mycursor = mydb.cursor() mycursor.execute("SELECT id, gnd FROM helmstedt.temp_prof_kat") myresult = mycursor.fetchall() gnds ...
22.787234
116
0.647059
422
3,213
4.898104
0.492891
0.011611
0.014514
0.015481
0.236091
0.189647
0.161587
0.161587
0.128689
0.128689
0
0.013719
0.160598
3,213
140
117
22.95
0.752688
0.012138
0
0
0
0
0.212938
0.061995
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.083333
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
0
0
0
1
0
0
0
0
0
1
4e7bf6a5635ca159b39d2d3d8c59aa1c3e27375b
255
py
Python
configs/_base_/schedules/imagenet_bs256_140e.py
sty16/cell_transformer
fc3d8dd8363664381617c76fb016f14c704749d8
[ "Apache-2.0" ]
1
2022-03-15T07:36:04.000Z
2022-03-15T07:36:04.000Z
configs/_base_/schedules/imagenet_bs256_140e.py
sty16/cell_transformer
fc3d8dd8363664381617c76fb016f14c704749d8
[ "Apache-2.0" ]
null
null
null
configs/_base_/schedules/imagenet_bs256_140e.py
sty16/cell_transformer
fc3d8dd8363664381617c76fb016f14c704749d8
[ "Apache-2.0" ]
null
null
null
# optimizer optimizer = dict(type='SGD', lr=0.001, momentum=0.9, weight_decay=0.001) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict(policy='step', step=[40, 70, 90]) runner = dict(type='EpochBasedRunner', max_epochs=100)
36.428571
73
0.721569
39
255
4.589744
0.666667
0.089385
0
0
0
0
0
0
0
0
0
0.084444
0.117647
255
6
74
42.5
0.711111
0.098039
0
0
0
0
0.104072
0
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
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4e89a4bc599fa5786586aa1889dcbfc722b2e1e8
1,225
py
Python
Book_Ladder/web/test.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
Book_Ladder/web/test.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
Book_Ladder/web/test.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
# -*- coding = utf-8 -*- # @Time:2021/3/1417:56 # @Author:Linyu # @Software:PyCharm from web.pageutils import BooksScore from web.pageutils import BooksCount from web.pageutils import pointsDraw from web.pageutils import scoreRelise from web.pageutils import messBarInfo from web.pageutils import tagRader from web.mod...
24.5
93
0.719184
170
1,225
5.141176
0.429412
0.09611
0.10984
0.15103
0
0
0
0
0
0
0
0.0403
0.12898
1,225
49
94
25
0.778819
0.481633
0
0
0
0.0625
0.15486
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0.0625
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
0
0
1
4e8e84d17eb6d1c3fde6f5fcc279f8f8f53c1518
2,252
py
Python
news/spiders/bbc.py
azzuwan/ScraperExample
6de382df0b20414f2a55b70837b5fd41d76e8712
[ "MIT" ]
null
null
null
news/spiders/bbc.py
azzuwan/ScraperExample
6de382df0b20414f2a55b70837b5fd41d76e8712
[ "MIT" ]
null
null
null
news/spiders/bbc.py
azzuwan/ScraperExample
6de382df0b20414f2a55b70837b5fd41d76e8712
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from readability import Document import datetime from pprint import pprint class Articles(scrapy.Item): url = scrapy.Field() title = scrapy.Field() author = scrapy.Field() ...
29.246753
96
0.572824
261
2,252
4.8659
0.344828
0.051969
0.03937
0.051181
0.028346
0
0
0
0
0
0
0.001942
0.313943
2,252
76
97
29.631579
0.820065
0.153197
0
0.040816
0
0
0.099435
0.011864
0
0
0
0
0
1
0.122449
false
0
0.122449
0
0.632653
0.020408
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
0
1
0
0
1
4ea295d60036c358d4e3b22a59c7d5d5aba282d3
4,119
py
Python
grpc/clients/python/vegaapiclient/generated/commands/v1/oracles_pb2.py
ConnorChristie/api
7e585d47bad1a5ef95ca932045b0ce70962b029a
[ "MIT" ]
6
2021-05-20T15:30:46.000Z
2022-02-22T12:06:39.000Z
grpc/clients/python/vegaapiclient/generated/commands/v1/oracles_pb2.py
ConnorChristie/api
7e585d47bad1a5ef95ca932045b0ce70962b029a
[ "MIT" ]
29
2021-03-16T11:58:05.000Z
2021-10-05T14:04:45.000Z
grpc/clients/python/vegaapiclient/generated/commands/v1/oracles_pb2.py
ConnorChristie/api
7e585d47bad1a5ef95ca932045b0ce70962b029a
[ "MIT" ]
6
2021-05-07T06:43:02.000Z
2022-03-29T07:18:01.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: commands/v1/oracles.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from go...
38.495327
480
0.786113
480
4,119
6.4375
0.272917
0.040777
0.05534
0.061165
0.354045
0.313916
0.247896
0.241424
0.154045
0.154045
0
0.031445
0.104394
4,119
106
481
38.858491
0.806181
0.071377
0
0.4
1
0.023529
0.25354
0.212113
0
0
0
0
0
1
0
false
0
0.047059
0
0.047059
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
0
0
0
1
4eb3cdb71cd64b8402ec42bddffc7a5a65442095
690
py
Python
schedulesy/apps/ade_legacy/serializers.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-24T19:17:56.000Z
2020-07-24T19:17:56.000Z
schedulesy/apps/ade_legacy/serializers.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-09T10:23:28.000Z
2020-07-09T10:23:28.000Z
schedulesy/apps/ade_legacy/serializers.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
null
null
null
import re from django.urls import reverse from rest_framework import serializers from schedulesy.apps.ade_legacy.models import Customization class CustomizationSerializer(serializers.ModelSerializer): configuration = serializers.SerializerMethodField() class Meta: model = Customization fie...
26.538462
75
0.701449
75
690
6.293333
0.573333
0.042373
0.063559
0
0
0
0
0
0
0
0
0
0.217391
690
25
76
27.6
0.874074
0
0
0
0
0
0.085507
0
0
0
0
0
0
1
0.117647
false
0
0.235294
0
0.647059
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
0
1
0
0
1
4eb6277eff4239146619cfdeeb4696e25cfb8808
927
py
Python
tests/test_operator_filter.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
null
null
null
tests/test_operator_filter.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
24
2020-12-24T12:21:42.000Z
2021-01-28T14:22:38.000Z
tests/test_operator_filter.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
null
null
null
""" Test Filter Operator """ import os import sys sys.path.insert(1, os.path.join(sys.path[0], '..')) from gva.flows.operators import FilterOperator try: from rich import traceback traceback.install() except ImportError: pass def test_filter_operator_default(): in_d = {'a':1} n =...
20.152174
52
0.558792
121
927
4.090909
0.438017
0.10101
0.181818
0.084848
0
0
0
0
0
0
0
0.022693
0.286947
927
46
53
20.152174
0.726172
0.021575
0
0
0
0
0.05848
0
0
0
0
0
0.151515
1
0.090909
false
0.030303
0.151515
0.030303
0.272727
0.030303
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4eb65c2f13bb97d8948357e8ad1093ac25bd46cd
5,620
py
Python
python/pynamics/quaternion.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2018-08-20T22:01:18.000Z
2021-04-19T00:50:56.000Z
python/pynamics/quaternion.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
3
2017-10-24T03:10:17.000Z
2017-10-24T03:15:27.000Z
python/pynamics/quaternion.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2017-03-03T23:04:17.000Z
2021-03-20T20:33:53.000Z
# -*- coding: utf-8 -*- """ Created on Tue May 25 10:24:05 2021 @author: danaukes https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles """ import sympy sympy.in...
27.54902
109
0.55694
800
5,620
3.82
0.19
0.042539
0.013743
0.013089
0.240838
0.139725
0.125982
0.125982
0.125982
0.113547
0
0.053662
0.300356
5,620
203
110
27.684729
0.72355
0.139858
0
0.375
0
0
0.008314
0
0
0
0
0
0
1
0.203947
false
0
0.026316
0.059211
0.447368
0.006579
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
0
0
0
1
4eb7e3ada081cac1383991df8368a6295ca6cbec
5,057
py
Python
decompile/Scanner.py
gauravssnl/Pyc2Py-Symbian
6e0a3e8f4bf9b470005decabb3c34f9f4723cf61
[ "MIT" ]
3
2020-03-28T11:57:46.000Z
2021-04-16T14:10:40.000Z
decompile/Scanner.py
gauravssnl/Pyc2Py-Symbian
6e0a3e8f4bf9b470005decabb3c34f9f4723cf61
[ "MIT" ]
null
null
null
decompile/Scanner.py
gauravssnl/Pyc2Py-Symbian
6e0a3e8f4bf9b470005decabb3c34f9f4723cf61
[ "MIT" ]
3
2019-04-18T14:33:36.000Z
2021-07-07T13:44:52.000Z
__all__ = ['Token', 'Scanner', 'getscanner'] import types class Token: def __init__(self, type, attr=None, pattr=None, offset=-1): self.type = intern(type) self.attr = attr self.pattr = pattr self.offset = offset def __cmp__(self, o): if isinstance(o, Token): ...
36.912409
77
0.479533
555
5,057
4.187387
0.237838
0.017212
0.021084
0.028399
0.100688
0.042169
0.031842
0.031842
0.031842
0.031842
0
0.009563
0.421001
5,057
136
78
37.183824
0.784153
0
0
0.148148
0
0
0.054578
0
0
0
0
0
0.014815
0
null
null
0
0.014815
null
null
0.014815
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
0
0
0
0
0
1
4eb9f86a4d0753268d20bf93e74403357afd1729
7,707
py
Python
legacy/otc_mp.py
kimSooHyun950921/Heuristics
97757aebdaf1290c371b84596757de00742d9f5c
[ "Apache-2.0" ]
3
2020-06-26T05:29:20.000Z
2021-03-26T22:11:24.000Z
legacy/otc_mp.py
kimSooHyun950921/Heuristics
97757aebdaf1290c371b84596757de00742d9f5c
[ "Apache-2.0" ]
1
2021-08-23T20:51:27.000Z
2021-08-23T20:51:27.000Z
legacy/otc_mp.py
kimSooHyun950921/Heuristics
97757aebdaf1290c371b84596757de00742d9f5c
[ "Apache-2.0" ]
null
null
null
import os import sys import time import decimal import sqlite3 import multiprocessing from secret import rpc_user, rpc_password from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException import cluster_db_query as cdq import db_query as dq rpc_ip = '127.0.0.1' rpc_port = '8332' timeout = 300 def get_rpc(): ...
30.705179
101
0.552615
981
7,707
4.070336
0.245668
0.072627
0.031555
0.010518
0.106186
0.068119
0.029051
0.013524
0
0
0
0.01428
0.354872
7,707
251
102
30.705179
0.788817
0.004671
0
0.18232
0
0
0.028294
0
0
0
0
0
0
0
null
null
0.01105
0.055249
null
null
0.027624
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
0
0
0
0
0
1
4ec7963e75127ea8afb2b3034873981f0b12657f
296
py
Python
loaddd.py
Sharingsky/resrep
a173d1bc256b75b2c902024929e406863ce48b9b
[ "MIT" ]
null
null
null
loaddd.py
Sharingsky/resrep
a173d1bc256b75b2c902024929e406863ce48b9b
[ "MIT" ]
null
null
null
loaddd.py
Sharingsky/resrep
a173d1bc256b75b2c902024929e406863ce48b9b
[ "MIT" ]
null
null
null
import os import sys rootpath=str("D:/_1work/pycharmcode/pycharmproject/resrep") syspath=sys.path sys.path=[] sys.path.append(rootpath)#将工程根目录加入到python搜索路径中 sys.path.extend([rootpath+i for i in os.listdir(rootpath) if i[0]!="."])#将工程目录下的一级目录添加到python搜索路径中 sys.path.extend(syspath) print(sys.path)
32.888889
98
0.790541
43
296
5.418605
0.534884
0.180258
0.085837
0.120172
0
0
0
0
0
0
0
0.007143
0.054054
296
9
99
32.888889
0.825
0.152027
0
0
0
0
0.176
0.172
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
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
0
0
0
1
4ecd71c762bc771fde1ea85f54d06c0a60939363
1,174
py
Python
config.py
mazanax/identity-quiz
b9468b305b23701d027a3fc1cfd2536da8371a4e
[ "MIT" ]
null
null
null
config.py
mazanax/identity-quiz
b9468b305b23701d027a3fc1cfd2536da8371a4e
[ "MIT" ]
null
null
null
config.py
mazanax/identity-quiz
b9468b305b23701d027a3fc1cfd2536da8371a4e
[ "MIT" ]
null
null
null
import logging import os import sys from peewee import SqliteDatabase, PostgresqlDatabase logger = logging.getLogger() logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(sys.stdout) handler.setLevel(logging.DEBUG) logger.addHandler(handler) if not os.getenv('POSTGRES_DB_NAME'): logger.warning('[DB] u...
30.102564
96
0.749574
170
1,174
4.882353
0.317647
0.125301
0.115663
0.13012
0.053012
0
0
0
0
0
0
0.005797
0.118399
1,174
38
97
30.894737
0.796135
0.05707
0
0
0
0
0.229791
0
0
0
0
0
0
1
0
false
0.071429
0.142857
0
0.142857
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
0
0
0
1
14c4fe8cfdba355e578ef806e7db3a2e2f8ba8db
947
py
Python
Recommender_System/algorithm/KGCN/main.py
Holldean/Recommender-System
5c1508b4fb430dc06979353627c4cb873aad490c
[ "MIT" ]
348
2019-11-12T12:20:08.000Z
2022-03-31T12:34:45.000Z
Recommender_System/algorithm/KGCN/main.py
Runjeo/Recommender-System
6a93e6ee970b32c76e2f71043383bf24a7e865d5
[ "MIT" ]
15
2019-12-04T15:16:15.000Z
2021-07-21T06:27:38.000Z
Recommender_System/algorithm/KGCN/main.py
Runjeo/Recommender-System
6a93e6ee970b32c76e2f71043383bf24a7e865d5
[ "MIT" ]
87
2019-11-24T10:26:26.000Z
2022-03-11T05:35:39.000Z
if __name__ == '__main__': import Recommender_System.utility.gpu_memory_growth from Recommender_System.algorithm.KGCN.tool import construct_undirected_kg, get_adj_list from Recommender_System.algorithm.KGCN.model import KGCN_model from Recommender_System.algorithm.KGCN.train import train from R...
55.705882
152
0.779303
142
947
4.809859
0.443662
0.124451
0.122987
0.131772
0.149341
0
0
0
0
0
0
0.023284
0.138332
947
16
153
59.1875
0.813725
0
0
0
0
0
0.011815
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
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
1
14cdf01dc867ab894916d46f7f85f97ee82b9f96
143
py
Python
Dataflow/dimension.py
duseok/CNNDataflowAnalysis
a8e53ac1a1da47cfff16850efa365da9f9a72664
[ "BSD-2-Clause" ]
1
2021-04-02T07:17:15.000Z
2021-04-02T07:17:15.000Z
Dataflow/dimension.py
duseok/CNNDataflowAnalysis
a8e53ac1a1da47cfff16850efa365da9f9a72664
[ "BSD-2-Clause" ]
null
null
null
Dataflow/dimension.py
duseok/CNNDataflowAnalysis
a8e53ac1a1da47cfff16850efa365da9f9a72664
[ "BSD-2-Clause" ]
null
null
null
from enum import IntEnum, unique @unique class Dimension(IntEnum): InChan = 0 OutChan = 1 Height = 2 Width = 3 Batch = 4
13
32
0.615385
19
143
4.631579
0.894737
0
0
0
0
0
0
0
0
0
0
0.05102
0.314685
143
10
33
14.3
0.846939
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
0.875
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
0
0
0
0
0
1
14d350e4c24338a388b8fa1fb69e9c619ba5502a
4,746
py
Python
autohandshake/src/Pages/LoginPage.py
cedwards036/autohandshake
7f57b242a612b0f0aad634bc111a3db3050c6597
[ "MIT" ]
3
2018-05-18T16:15:32.000Z
2019-08-01T23:06:44.000Z
autohandshake/src/Pages/LoginPage.py
cedwards036/autohandshake
7f57b242a612b0f0aad634bc111a3db3050c6597
[ "MIT" ]
null
null
null
autohandshake/src/Pages/LoginPage.py
cedwards036/autohandshake
7f57b242a612b0f0aad634bc111a3db3050c6597
[ "MIT" ]
null
null
null
from autohandshake.src.Pages.Page import Page from autohandshake.src.HandshakeBrowser import HandshakeBrowser from autohandshake.src.exceptions import InvalidURLError, NoSuchElementError, \ InvalidEmailError, InvalidPasswordError import re class LoginPage(Page): """ The old Handshake login page """ ...
46.529412
107
0.630004
567
4,746
5.029982
0.246914
0.069425
0.058906
0.064516
0.454067
0.442847
0.428822
0.417251
0.37202
0.307153
0
0.000288
0.268226
4,746
101
108
46.990099
0.820904
0.195322
0
0.35
0
0
0.22121
0.119028
0
0
0
0
0
1
0.116667
false
0.166667
0.066667
0
0.216667
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
0
0
0
1
14da4fb90332f13ce9a537a25767a0c5d2699a55
5,568
py
Python
app/auth/routes.py
Jumballaya/save-energy-tx
1aa75cfdabe169c05f845cd47e477560f5319883
[ "FSFAP" ]
null
null
null
app/auth/routes.py
Jumballaya/save-energy-tx
1aa75cfdabe169c05f845cd47e477560f5319883
[ "FSFAP" ]
7
2021-03-09T00:51:13.000Z
2022-03-11T23:40:46.000Z
app/auth/routes.py
Jumballaya/save-energy-tx
1aa75cfdabe169c05f845cd47e477560f5319883
[ "FSFAP" ]
1
2019-03-20T16:58:23.000Z
2019-03-20T16:58:23.000Z
from flask import render_template, redirect, url_for, flash from flask_login import current_user, login_user, logout_user from sqlalchemy import func import stripe from app import db from app.auth import bp from app.auth.forms import LoginForm, RegistrationForm, ResetPasswordRequestForm, ResetPasswordForm from app.mode...
36.155844
116
0.681214
770
5,568
4.820779
0.172727
0.050377
0.064116
0.086207
0.482489
0.475216
0.335938
0.335938
0.3125
0.3125
0
0
0.211925
5,568
153
117
36.392157
0.845943
0.182471
0
0.323232
0
0
0.171789
0.022109
0
0
0
0
0
1
0.070707
false
0.181818
0.090909
0
0.363636
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
0
0
0
1
14de090b5ed8c8188f4a83029df00bd8928fb8be
607
py
Python
rtcloud/ui.py
Brainiak/rtcloud
43c7525c9a9be12d33426b24fac353dc4d92c35a
[ "Apache-2.0" ]
null
null
null
rtcloud/ui.py
Brainiak/rtcloud
43c7525c9a9be12d33426b24fac353dc4d92c35a
[ "Apache-2.0" ]
43
2017-11-16T22:05:42.000Z
2017-12-12T16:20:04.000Z
rtcloud/ui.py
Brainiak/rtcloud
43c7525c9a9be12d33426b24fac353dc4d92c35a
[ "Apache-2.0" ]
1
2017-11-26T15:42:02.000Z
2017-11-26T15:42:02.000Z
from nilearn import plotting from IPython import display def display_input(nifti, i, fig, ax, cut_coords=None): if cut_coords is None: cut_coords = [-9] plotting.plot_img(nifti, title="In {}".format(i), axes=ax, display_mode="z", cut_coords=cut_coords) display.clear_output(wa...
30.35
63
0.642504
88
607
4.238636
0.352273
0.241287
0.048257
0.058981
0.63807
0.504021
0.504021
0.504021
0.504021
0.504021
0
0.004292
0.23229
607
19
64
31.947368
0.796137
0
0
0.4
0
0
0.021417
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.266667
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
0
0
0
0
0
1
14dfa0d9c76706f000826c67f074640fd5155034
679
py
Python
src/database/conn.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
39
2018-09-05T14:42:05.000Z
2021-09-24T20:21:56.000Z
src/database/conn.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
null
null
null
src/database/conn.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
11
2018-12-07T19:43:44.000Z
2021-05-21T21:54:43.000Z
from decouple import config from peewee import SqliteDatabase from playhouse.pool import PooledSqliteExtDatabase, PooledPostgresqlExtDatabase # db = SqliteDatabase(config('DATABASE_PATH', default='sentiment_analysis.db')) db = PooledSqliteExtDatabase( config('DATABASE_PATH', default='sentiment_analysis.db'), ...
30.863636
79
0.733432
72
679
6.763889
0.666667
0.057495
0.073922
0.102669
0.180698
0.180698
0.180698
0
0
0
0
0.020906
0.154639
679
21
80
32.333333
0.827526
0.450663
0
0
0
0
0.135359
0.058011
0
0
0
0
0
1
0
false
0
0.333333
0
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
0
0
0
1
0
0
0
0
1
14e6bab7bbc2ab9b9311ff6dc777217f71212f04
8,217
py
Python
src/tie/__init__.py
shadowbq/opendxl-arctic-phase
730a60d7e81c843115c341cb48225a30af001996
[ "Apache-2.0" ]
1
2019-07-24T14:48:06.000Z
2019-07-24T14:48:06.000Z
src/tie/__init__.py
shadowbq/opendxl-arctic-phase
730a60d7e81c843115c341cb48225a30af001996
[ "Apache-2.0" ]
1
2018-02-20T03:11:21.000Z
2018-02-20T03:11:21.000Z
src/tie/__init__.py
shadowbq/opendxl-arctic-phase
730a60d7e81c843115c341cb48225a30af001996
[ "Apache-2.0" ]
null
null
null
# TIE Methods import utils from dxltieclient import TieClient from dxltieclient.constants import HashType, ReputationProp, FileProvider, FileEnterpriseAttrib, \ CertProvider, CertEnterpriseAttrib, TrustLevel # TIE Reputation Average Map tiescoreMap = {0: 'Not Set', 1: 'Known Malicious', 15: 'Most Likely Malicious'...
41.5
120
0.643909
857
8,217
6.001167
0.190198
0.093331
0.033055
0.052499
0.538402
0.409489
0.285048
0.274548
0.213689
0.190356
0
0.007319
0.268346
8,217
197
121
41.71066
0.848137
0.106973
0
0.359155
0
0
0.103637
0
0
0
0
0.005076
0
0
null
null
0
0.021127
null
null
0.049296
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
0
0
0
0
0
1
14edc23ecedc5fce9202c1d0ece77446d5db16e6
7,804
py
Python
lsp_shiloh/common/scan/aspscan/random_scan.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
lsp_shiloh/common/scan/aspscan/random_scan.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
lsp_shiloh/common/scan/aspscan/random_scan.py
internaru/Pinetree_P
1f1525454c8b20c6c589529ff4bc159404611297
[ "FSFAP" ]
null
null
null
#!/usr/bin/python # # ============================================================================ # Copyright (c) 2011 Marvell International, Ltd. All Rights Reserved # # Marvell Confidential # ============================================================================ # # Run a random sca...
29.673004
94
0.580984
1,129
7,804
3.812223
0.249779
0.050186
0.02277
0.007667
0.118959
0.092472
0.060409
0.047862
0.019052
0
0
0.033778
0.279216
7,804
262
95
29.78626
0.731378
0.239493
0
0.141892
0
0
0.141132
0
0
0
0
0
0.02027
0
null
null
0
0.033784
null
null
0.162162
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
0
0
0
0
0
1
14eebabc8dc87995f7ccb85df841dd281ddfc7b5
649
py
Python
app/recommendations/forms.py
ExiledNarwal28/glo-2005-project
3b5b5f9cdcfe53d1e6e702609587068c4bd3310d
[ "MIT" ]
null
null
null
app/recommendations/forms.py
ExiledNarwal28/glo-2005-project
3b5b5f9cdcfe53d1e6e702609587068c4bd3310d
[ "MIT" ]
null
null
null
app/recommendations/forms.py
ExiledNarwal28/glo-2005-project
3b5b5f9cdcfe53d1e6e702609587068c4bd3310d
[ "MIT" ]
1
2020-05-21T10:07:07.000Z
2020-05-21T10:07:07.000Z
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, SelectField from wtforms.validators import DataRequired, Length def range_to_select_choices(items): choices = [(0, '0 star')] for item in items: choices.append((item, str(item) + ' stars')) return choices class AddReco...
36.055556
99
0.707242
74
649
6.081081
0.608108
0.048889
0.057778
0.088889
0
0
0
0
0
0
0
0.016854
0.177196
649
17
100
38.176471
0.825843
0
0
0
0
0
0.090909
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.692308
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
0
1
0
0
1
14f8a6f3308057e78995708d4b904e36cb6a06da
841
py
Python
hlsclt/classes.py
qarlosalberto/hlsclt
cc657b780aac3a617f48c1a80e263a6945f8b7c9
[ "MIT" ]
34
2017-07-03T09:56:11.000Z
2022-03-22T02:03:27.000Z
hlsclt/classes.py
qarlosalberto/hlsclt
cc657b780aac3a617f48c1a80e263a6945f8b7c9
[ "MIT" ]
22
2017-06-18T03:49:02.000Z
2021-10-06T12:41:09.000Z
hlsclt/classes.py
qarlosalberto/hlsclt
cc657b780aac3a617f48c1a80e263a6945f8b7c9
[ "MIT" ]
11
2018-06-02T04:38:26.000Z
2021-06-10T11:57:27.000Z
# -*- coding: utf-8 -*- """ Class definitions for the HLSCLT Command Line Tool. Copyright (c) 2017 Ben Marshall """ # Generic error class class Error(Exception): """Base class for exceptions in this module.""" pass # Specific error class for local config file errors class ConfigError(Error): """Exception...
28.033333
88
0.699168
108
841
5.268519
0.537037
0.057996
0.089631
0
0
0
0
0
0
0
0
0.00905
0.211653
841
29
89
29
0.84917
0.463734
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0.090909
0
0
0.454545
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
0
0
0
1
14f9e7e5dad9d0b30bd98785f713bf50cb29033e
718
py
Python
office_test_word/test_platform/core/BasePage.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
office_test_word/test_platform/core/BasePage.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
office_test_word/test_platform/core/BasePage.py
yag8009/office_test_team
edf06f3c0818b08ec39541bdcd04bcc537fc9ed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class BasePage(object): """ BasePage封装所有页面都公用的方法,例如driver, url """ #初始化driver、url、等 def __init__(self, selenium_driver, base_url, pagetitle): self.base_url = base_url self.pagetitle = pagetitle self.driver = selenium_driver def _iopen(self, url, pagetitle): ...
26.592593
58
0.739554
97
718
5.28866
0.525773
0.054581
0.042885
0.077973
0
0
0
0
0
0
0
0.0016
0.129526
718
26
59
27.615385
0.8176
0.272981
0
0
0
0
0.021277
0
0
0
0
0
0.076923
0
null
null
0
0
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
0
0
0
0
0
0
1
14f9fc6ca518d45dcde0a27042ff52217603dcff
9,740
py
Python
nex/parsing/utils.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
nex/parsing/utils.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
nex/parsing/utils.py
eddiejessup/nex
d61005aacb3b87f8cf1a1e2080ca760d757d5751
[ "MIT" ]
null
null
null
import logging from collections import deque from ..tokens import BuiltToken from ..utils import LogicError from ..router import NoSuchControlSequence from ..constants.instructions import Instructions logger = logging.getLogger(__name__) # Stuff specific to *my parsing*. letter_to_non_active_uncased_type_map = { ...
37.751938
90
0.658316
1,324
9,740
4.634441
0.221299
0.082138
0.146023
0.209909
0.351206
0.323501
0.315352
0.295143
0.274609
0.263853
0
0.000138
0.254928
9,740
257
91
37.898833
0.845391
0.273203
0
0.140127
0
0
0.106825
0.004302
0
0
0
0
0
1
0.082803
false
0.019108
0.038217
0.025478
0.229299
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
0
0
0
1
14fe3c3a6b1c35d2aade0c7366e77fd7418c122a
1,181
py
Python
oura_to_sqlite/utils.py
mfa/oura-to-sqlite
724dab55e94df0c3a3e6e2faafa758cf20ea0792
[ "Apache-2.0" ]
null
null
null
oura_to_sqlite/utils.py
mfa/oura-to-sqlite
724dab55e94df0c3a3e6e2faafa758cf20ea0792
[ "Apache-2.0" ]
2
2021-10-31T15:16:34.000Z
2021-10-31T15:22:17.000Z
oura_to_sqlite/utils.py
mfa/oura-to-sqlite
724dab55e94df0c3a3e6e2faafa758cf20ea0792
[ "Apache-2.0" ]
null
null
null
import datetime import click from oura import OuraClient def download(db, token): client = OuraClient(personal_access_token=token) click.echo("User: ") click.echo(client.user_info()) # FIXME get start_date from database (last day downloaded - 1day) start_date = "2015-01-01" end_date = str(da...
25.12766
81
0.628281
145
1,181
4.931034
0.296552
0.075524
0.078322
0.106294
0.374825
0.374825
0.193007
0.193007
0.193007
0.193007
0
0.009934
0.232854
1,181
46
82
25.673913
0.779249
0.053345
0
0.297297
0
0
0.163978
0
0
0
0
0.021739
0
1
0.027027
false
0
0.081081
0
0.108108
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
0
0
0
1
14ffa6b25312cc8be37c853fbf3300bd513054fa
4,623
py
Python
VOTA_Control/VOTAScopeHW/daq_do/daq_do_dev.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
null
null
null
VOTA_Control/VOTAScopeHW/daq_do/daq_do_dev.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
null
null
null
VOTA_Control/VOTAScopeHW/daq_do/daq_do_dev.py
fullerene12/VOTA
3a5cfc1e210ac7ea274537a8d189b54660416599
[ "MIT" ]
1
2021-08-01T22:39:18.000Z
2021-08-01T22:39:18.000Z
from PyDAQmx import * from ctypes import byref, c_ulong,c_int32 import numpy as np class DAQSimpleDOTask(Task): ''' a simple task that set one digital output line to high or low ''' def __init__(self,chan= 'Dev2/port0/line5'): ''' chan: name of the chanel, in the format of Dev2/por...
26.722543
100
0.544884
551
4,623
4.471869
0.252269
0.029221
0.034091
0.032468
0.469156
0.452516
0.403815
0.311688
0.220779
0.189935
0
0.026404
0.352801
4,623
173
101
26.722543
0.797126
0.279256
0
0.460317
0
0
0.01916
0
0
0
0
0
0
1
0.31746
false
0
0.047619
0
0.444444
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
0
0
0
1
090286670227babe5f029e77ab867cf49a3711a6
659
py
Python
invenio_records_lom/records/systemfields/providers.py
martinobersteiner/invenio-records-lom
545a78eeb056b3c88ed46f7fe345a699bf283895
[ "MIT" ]
null
null
null
invenio_records_lom/records/systemfields/providers.py
martinobersteiner/invenio-records-lom
545a78eeb056b3c88ed46f7fe345a699bf283895
[ "MIT" ]
18
2020-10-21T07:58:14.000Z
2022-03-29T12:10:25.000Z
invenio_records_lom/records/systemfields/providers.py
martinobersteiner/invenio-records-lom
545a78eeb056b3c88ed46f7fe345a699bf283895
[ "MIT" ]
7
2020-10-06T08:46:40.000Z
2021-07-06T13:21:29.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Graz University of Technology. # # invenio-records-lom is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Provider for LOM PID-fields.""" from invenio_drafts_resources.records.api import ...
27.458333
80
0.760243
80
659
6.1875
0.6625
0.066667
0.084848
0.088889
0
0
0
0
0
0
0
0.017794
0.147193
659
23
81
28.652174
0.862989
0.485584
0
0.333333
0
0
0.031447
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
0
0
0
1
091385b6dc5d31a226660eaa47c59dfda0a2329a
5,998
py
Python
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
from IPython.display import display from IPython.display import HTML import IPython.core.display as di # This line will hide code by default when the notebook is exported as HTML di.display_html('<script>jQuery(function() {if (jQuery("body.notebook_app").length == 0) { jQuery(".input_area").toggle(); jQuery(".promp...
24.283401
175
0.649883
858
5,998
4.451049
0.33683
0.032993
0.036659
0.051322
0.263682
0.241424
0.241424
0.21105
0.184341
0.184341
0
0.019011
0.184395
5,998
246
176
24.382114
0.761652
0
0
0.24026
0
0.071429
0.599037
0.181582
0
0
0
0
0
0
null
null
0
0.084416
null
null
0.019481
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
0
0
0
0
0
1
0913ad0ca10d6662285de519bc20eb0bf251e5c6
3,834
py
Python
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
#!/usr/bin/python # vim:set et sw=4: # # Originally from: # http://cvs.fedoraproject.org/viewvc/F-13/ca-certificates/certdata2pem.py?revision=1.1&content-type=text%2Fplain&view=co # # certdata2pem.py - converts certdata.txt into PEM format. # # Copyright (C) 2009 Philipp Kern <pkern@debian.org> # # This program is fre...
34.232143
121
0.639541
552
3,834
4.373188
0.434783
0.019884
0.01657
0.023612
0.085336
0.074565
0.051367
0.051367
0.025684
0
0
0.019117
0.249609
3,834
111
122
34.540541
0.819951
0.412102
0
0.298507
0
0
0.147178
0.023025
0
0
0
0
0
0
null
null
0
0.074627
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
0
0
0
0
0
0
1
091f35696f2a895a9356bd5b3024410d89838b05
5,051
py
Python
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
89
2017-02-24T14:35:00.000Z
2022-03-23T11:56:52.000Z
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
8
2017-05-10T04:47:07.000Z
2020-12-23T10:45:49.000Z
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
59
2017-04-22T11:36:53.000Z
2022-03-24T19:39:15.000Z
""" bluey_beacon.py This program connects to the bluey 1.1 Nordic nRF52 dev board made by Electronut Labs. The firmware on Bluey has to be running the "bluey beacon" example. This code is expected to be run on a Raspverry Pi 3. It assumes that you have bluez installed - it uses hcidump and hcitool. The code rea...
30.245509
110
0.530588
625
5,051
4.2288
0.3712
0.015891
0.010594
0.024972
0.051457
0
0
0
0
0
0
0.060168
0.341912
5,051
166
111
30.427711
0.734958
0.054643
0
0.106796
0
0
0.081568
0
0
0
0
0
0
0
null
null
0
0.058252
null
null
0.097087
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
0
0
0
0
0
1
093964aaffee860bb39cdc436116d852d48d0571
799
py
Python
setup.py
sz144/TPy
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
4
2018-08-20T13:38:13.000Z
2020-08-31T08:57:12.000Z
setup.py
sz144/pydale
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
null
null
null
setup.py
sz144/pydale
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
2
2021-09-28T08:24:30.000Z
2022-01-29T08:29:46.000Z
from setuptools import setup setup( name='pydale', version='0.1.0a1', description='A Transfer Learning Python package', url='https://github.com/sz144/TPy', author='Shuo Zhou', author_email='szhou20@sheffield.ac.uk', license='MIT License', packages=['pydale'], install_requires=['nump...
30.730769
54
0.579474
78
799
5.897436
0.794872
0.104348
0
0
0
0
0
0
0
0
0
0.02226
0.269086
799
25
55
31.96
0.765411
0
0
0.083333
0
0
0.50438
0.028786
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
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
1
0
0
0
0
0
0
1
093bf5bdc043f66b0cd5177690b3e94ae535b5dd
592
py
Python
exceptions/spotify/search_exceptions.py
mohamey/gpm_to_spotify
295ed18d475ea22452c062eadc04914d7cc695be
[ "MIT" ]
6
2020-06-06T21:18:22.000Z
2020-07-03T10:26:44.000Z
exceptions/spotify/search_exceptions.py
mohamey/gpm_to_spotify
295ed18d475ea22452c062eadc04914d7cc695be
[ "MIT" ]
1
2020-06-07T20:07:07.000Z
2020-06-07T20:07:07.000Z
exceptions/spotify/search_exceptions.py
mohamey/gpm_to_spotify
295ed18d475ea22452c062eadc04914d7cc695be
[ "MIT" ]
1
2020-06-07T15:17:16.000Z
2020-06-07T15:17:16.000Z
class NoMatchException(Exception): """ This exception is thrown when we fail to find a Spotify equivalent for a google play music track Args: message (str): Description of the exception """ def __init__(self, message: str): super().__init__(message) class SpotifyMalformedTrackExc...
25.73913
100
0.679054
70
592
5.514286
0.514286
0.103627
0.11399
0.124352
0.580311
0.580311
0.580311
0.393782
0.393782
0.393782
0
0
0.243243
592
22
101
26.909091
0.861607
0.511824
0
0.666667
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
0
0
0
1
0944b27a3e77a2bfb7e1cf5754e2405188a4cf6d
643
py
Python
algorithm/module/limit/tools/any.py
alpavlenko/EvoGuess
19bc54e75cd959e445becda16fa6f488f0fb2367
[ "MIT" ]
1
2021-12-12T15:09:56.000Z
2021-12-12T15:09:56.000Z
algorithm/module/limit/tools/any.py
alpavlenko/EvoGuess
19bc54e75cd959e445becda16fa6f488f0fb2367
[ "MIT" ]
1
2021-10-10T09:16:57.000Z
2021-10-10T09:16:57.000Z
algorithm/module/limit/tools/any.py
alpavlenko/evoguess
e8510c32c8325c9fe66fc15899d378b7bf731557
[ "MIT" ]
null
null
null
from ..limit import * class Any(Limit): slug = 'any' name = 'Limit: Any' def __init__(self, **kwargs): super().__init__(None) self.args = kwargs.values() for arg in self.args: arg.limits = self.limits def exhausted(self) -> bool: return any(arg.exhausted()...
20.741935
73
0.527216
83
643
3.86747
0.349398
0.124611
0.099688
0.149533
0.199377
0
0
0
0
0
0
0
0.33126
643
30
74
21.433333
0.746512
0
0
0
0
0
0.045101
0
0
0
0
0
0
1
0.181818
false
0
0.045455
0.136364
0.5
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
0
0
0
1
0947468639821686ebec6a09d533e71a8f80b28d
445
py
Python
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.urls import include, path from django.contrib.auth import views as auth_views urlpatterns = [ path('login', auth_views.LoginView.as_view(), name='vcn-account-login'), path('logout', auth_views.LogoutView.as_view(), {...
34.230769
99
0.721348
60
445
5.083333
0.516667
0.088525
0.091803
0
0
0
0
0
0
0
0
0.002538
0.114607
445
12
100
37.083333
0.771574
0.047191
0
0
0
0
0.21564
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
0
0
0
1
094d33103d978e85aa343035479d553c0e19592e
419
py
Python
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-12 14:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('csone', '0007_gcinotes_upload'), ] operations = [ migrations.AlterField( model_name='gcinotes', name='...
22.052632
69
0.575179
43
419
5.511628
0.813953
0
0
0
0
0
0
0
0
0
0
0.079585
0.310263
419
18
70
23.277778
0.740484
0.107399
0
0
1
0
0.121469
0
0
0
0
0
0
1
0
false
0
0.083333
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
094ef253be0b76a79fd33964caa1191f38c73c76
19,035
py
Python
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
null
null
null
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
null
null
null
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
1
2021-11-25T01:53:17.000Z
2021-11-25T01:53:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 """ tests.test_path_newsonkrumm2009 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Based on the data available at: https://www.microsoft.com/en-us/research/publication/hidden-markov-map-matching-noise-sparseness/ Notes: * There is a 'bug' in the map available from the website. Multiple se...
44.578454
119
0.626425
2,268
19,035
5.088183
0.26455
0.012998
0.011438
0.007886
0.258232
0.222097
0.192894
0.178423
0.170277
0.138648
0
0.254133
0.256422
19,035
426
120
44.683099
0.561184
0.127975
0
0.250765
0
0
0.06776
0.01089
0
0
0
0
0.015291
1
0.033639
false
0
0.06422
0
0.11315
0.024465
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
0
0
0
0
0
0
0
0
0
1
09519d2350c1ab8d636ad2b299e65de2bd927e8f
785
py
Python
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2019-06-07 01:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0065_auto_20190606_2240'), ] operations = [ migrations.AddField( model_name='document',...
31.4
161
0.647134
90
785
5.522222
0.488889
0.064386
0.084507
0.132797
0.334004
0.334004
0.334004
0.334004
0.334004
0.334004
0
0.051071
0.226752
785
24
162
32.708333
0.76771
0.057325
0
0.222222
1
0
0.153117
0.031165
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
0
0
0
1
0953201cd4a8eed2a34cc8ac8eb5c23d6fdfa5f0
729
py
Python
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
9
2016-09-15T05:12:36.000Z
2016-10-27T21:38:40.000Z
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
import urllib import urllib2 import sys import batch_interface import json if len(sys.argv) == 1: print 'Usage: python %s <command> [parameter=value] ...' % sys.argv[0] print 'Try python %s batch/help to see list of functions' % sys.argv[0] print '\tor pythor %s batch/reload to reload functions' % sys.arg...
27
75
0.688615
122
729
4.032787
0.442623
0.085366
0.04878
0.052846
0
0
0
0
0
0
0
0.024311
0.153635
729
26
76
28.038462
0.773096
0
0
0
0
0
0.273352
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.3
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
0
0
0
0
0
1
0953eab6b8dde84574f531e58e6ab4f8446f3952
908
py
Python
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
from typing import Optional from fastapi import FastAPI import redis import json from models.team_member import Team_Member app = FastAPI() r = redis.StrictRedis(host='localhost', port=6379, db=0, password="sOmE_sEcUrE_pAsS", socket_timeout=None, connection_pool=None, charset='utf-8', errors='strict', unix_so...
29.290323
186
0.69163
130
908
4.623077
0.461538
0.099834
0.159734
0.063228
0.053245
0
0
0
0
0
0
0.007884
0.161894
908
31
187
29.290323
0.781866
0
0
0.083333
0
0
0.177474
0.047782
0
0
0
0
0
1
0.166667
false
0.041667
0.208333
0.083333
0.541667
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
0
1
0
0
1
09561ca6902a9a4c28924212271eea54357e460c
915
py
Python
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
import pygame as pg class Keyboard: def __init__(self): self.reset_keys() def reset_keys(self): self.keys = { pg.K_ESCAPE: False, pg.K_LEFT: False, pg.K_RIGHT: False, pg.K_DOWN: False, pg.K_UP: False, pg.K_a: False, ...
21.785714
36
0.469945
110
915
3.781818
0.372727
0.050481
0.115385
0.067308
0.100962
0.100962
0
0
0
0
0
0
0.434973
915
41
37
22.317073
0.804642
0
0
0.228571
0
0
0
0
0
0
0
0
0
1
0.171429
false
0.057143
0.028571
0
0.285714
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
0
0
0
1
095a069a14c07f558794d8c7a79e4d6f35007a78
53,243
py
Python
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
from . import serialize_parameters from SmartFramework.string.encodings import ascii_printables from SmartFramework.tools.dictionaries import sorted_dict, sorted_filtered # ,filtered from SmartFramework.tools.objects import ( isInstance, class_has_method, ismethod_methoddescriptor_or_function, ) # ,hasMe...
41.890637
307
0.574254
5,998
53,243
4.786596
0.11854
0.00627
0.006583
0.006966
0.415535
0.334901
0.302891
0.262243
0.237304
0.21968
0
0.002895
0.344797
53,243
1,270
308
41.923622
0.820066
0.197021
0
0.405163
0
0.005612
0.051087
0.006204
0
0
0
0
0
0
null
null
0.004489
0.021324
null
null
0.002245
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
0
0
0
0
0
1
096225f2fe88cf681e03f2ad2b31e29903932c92
1,733
py
Python
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
8
2016-10-24T12:37:32.000Z
2019-06-01T10:00:18.000Z
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
109
2016-08-09T04:51:48.000Z
2020-02-11T02:33:35.000Z
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
14
2016-01-23T00:10:30.000Z
2021-07-07T21:13:56.000Z
"""CveDetail Class""" from .halo_endpoint import HaloEndpoint from .http_helper import HttpHelper class CveDetails(HaloEndpoint): """Initializing the CveDetail class: Args: session (:class:`cloudpassage.HaloSession`): This will define how you interact with the Halo API, including proxy s...
28.409836
77
0.641662
188
1,733
5.835106
0.473404
0.054695
0.065634
0.076572
0.208751
0.208751
0.208751
0.208751
0.158614
0
0
0.000795
0.274091
1,733
60
78
28.883333
0.871224
0.469706
0
0.2
0
0
0.029412
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.65
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
0
0
0
1
11735286aed7be5c4d27974b285468a44294e89a
3,014
py
Python
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
"""Automated task runner""" from typing import Any, Callable, Dict, Optional from loguru import logger from shadow.clone import ShadowClone from shadow.helpers.state import ShadowState class ShadowBot: """Base bot class""" def __init__(self): """Sets the default name and attaches the state machin...
25.327731
83
0.601526
369
3,014
4.861789
0.276423
0.050167
0.036232
0.035674
0.134894
0.122631
0.06689
0.06689
0.06689
0.06689
0
0
0.299602
3,014
118
84
25.542373
0.849834
0.230591
0
0.113208
0
0
0.060552
0
0
0
0
0
0
1
0.207547
false
0
0.075472
0
0.415094
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
0
0
0
1
118876cb679cde240360c27b46916d06a9308fee
997
py
Python
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
#!/bin/python # coding=utf-8 import schedule import time from subprocess import call # Referências: # https://pypi.org/project/schedule/ # https://stackoverflow.com/questions/373335/how-do-i-get-a-cron-like-scheduler-in-python # https://www.geeksforgeeks.org/python-schedule-library/ def postgres_backup_00_h(): ...
28.485714
89
0.605817
122
997
4.713115
0.590164
0.194783
0.111304
0.118261
0.076522
0
0
0
0
0
0
0.033019
0.149448
997
34
90
29.323529
0.645047
0.2668
0
0
0
0
0.41989
0.098066
0
0
0
0
0
1
0.055556
true
0
0.166667
0
0.222222
0.333333
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
1
0
0
0
0
0
0
1
118905449900c13944077442978a29530c910266
382
py
Python
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='Geometry2D', version='0.7.1', author='Luis Da Costa', author_email='dacosta.le@gmail.com', packages=['geometry'], scripts=[], url='https://github.com/ldacosta/geometry2D/', license='LICENSE.txt', long_description=open('README.txt').read(...
22.470588
50
0.617801
46
382
5.065217
0.826087
0
0
0
0
0
0
0
0
0
0
0.029316
0.196335
382
16
51
23.875
0.729642
0
0
0
0
0
0.342932
0
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
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
1
0
0
0
0
0
0
1
1189f4feaa6f37baba240eba239b4e25d3d105ed
1,341
py
Python
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
from unittest import TestCase import numpy as np import matplotlib.pyplot as plt from .plot import rainbowplot class Fixtures: """ This class is a namespace for all the fixtures used in tests. """ nt = 2**10 nx = 2**10 t = np.linspace(0, 10, nt) x = np.linspace(-10, +10, nx) @stat...
23.12069
80
0.529456
186
1,341
3.784946
0.349462
0.056818
0.056818
0.0625
0.289773
0.276989
0.276989
0.227273
0.177557
0.177557
0
0.045455
0.327368
1,341
57
81
23.526316
0.735033
0.145414
0
0.30303
0
0
0
0
0
0
0
0
0
1
0.121212
false
0
0.121212
0
0.515152
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
0
1
0
0
1
118aedb6c6d513ed6f6c93f84ecac295ca601bc5
347
py
Python
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
#!/usr/bin/env python import ec2 security_group = ec2.DrupalSecurityGroup() print("Created new Drupal Security Group Object:{}".format(security_group)) if security_group.exists(): print("Security Group Exists") exit(1) security_group_id = security_group.create() print("Created new EC2 Security Group ID:{}"....
24.785714
75
0.760807
47
347
5.446809
0.446809
0.457031
0.175781
0
0
0
0
0
0
0
0
0.013029
0.115274
347
13
76
26.692308
0.820847
0.057637
0
0
0
0
0.306748
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.375
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
0
0
0
0
0
1
118c04c3ee9fe35ac75935787959d36e0b22d4b3
269
py
Python
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
side = [ [ "Y", "O", "W" ], [ "R", "G", "O" ], [ "O", "O", "B" ] ] new_side = [ [ 'X' for i in range(3) ] for i in range(3) ] for row_idx, row in enumerate(side): for unit_idx, unit in enumerate(row): new_side[2-unit_idx][row_idx] = unit print(new_side)
24.454545
58
0.535316
48
269
2.854167
0.416667
0.153285
0.087591
0.160584
0.19708
0.19708
0
0
0
0
0
0.014563
0.234201
269
11
59
24.454545
0.650485
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
0
0
0
1
119493a292813a2fe3956c473600e488537134ab
502
py
Python
Turtle/MovingPen.py
Williano/Tutorials
c5fb841ba94783ac3b239dbd2be9d04dd6e8d962
[ "MIT" ]
null
null
null
Turtle/MovingPen.py
Williano/Tutorials
c5fb841ba94783ac3b239dbd2be9d04dd6e8d962
[ "MIT" ]
null
null
null
Turtle/MovingPen.py
Williano/Tutorials
c5fb841ba94783ac3b239dbd2be9d04dd6e8d962
[ "MIT" ]
null
null
null
# Script: MovingPen.py # Description: This program uses python's turtle graphics module to draw shapes,lines, # circles and text. # Programmer: William Kpabitey Kwabla. # Date: 27.05.17 # Importing the turtle module. import turtle # It moves the pen to (0, 50) from (0, 0). turtle.goto(0, 50) # It move...
20.08
86
0.695219
81
502
4.308642
0.580247
0.068768
0.057307
0.074499
0.08596
0
0
0
0
0
0
0.064039
0.191235
502
24
87
20.916667
0.795567
0.699203
0
0
0
0
0.021583
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
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
1
0
0
0
0
0
0
1
1197aab149d31aabbae1ade4691c48988b0c9030
778
py
Python
robotframework-ls/src/robotframework_debug_adapter/listeners.py
anton264/robotframework-lsp
6f8f89b88ec56b767f6d5e9cf0d3fb58847e5844
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
robotframework-ls/src/robotframework_debug_adapter/listeners.py
anton264/robotframework-lsp
6f8f89b88ec56b767f6d5e9cf0d3fb58847e5844
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-30T15:40:29.000Z
2021-09-30T15:40:29.000Z
robotframework-ls/src/robotframework_debug_adapter/listeners.py
anton264/robotframework-lsp
6f8f89b88ec56b767f6d5e9cf0d3fb58847e5844
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
class _Callback(object): def __init__(self): self._callbacks = [] def register(self, callback): self._callbacks.append(callback) def __call__(self, *args, **kwargs): for c in self._callbacks: c(*args, **kwargs) class DebugListener(object): ROBOT_LISTENER_API_VERSI...
24.3125
41
0.6491
101
778
4.613861
0.277228
0.171674
0.120172
0.154506
0.244635
0.244635
0
0
0
0
0
0.001692
0.24036
778
31
42
25.096774
0.786802
0
0
0
0
0
0
0
0
0
0
0
0
1
0.318182
false
0
0
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
1
0
0
0
0
0
0
0
1
119cfe73411d8df272a8a84fca4c6e3deff92e8f
939
py
Python
estudiantes/funciones.py
tabris2015/intro_python_data_science
784f0b35988676248c4ba6c7999164dfb51ee631
[ "MIT" ]
null
null
null
estudiantes/funciones.py
tabris2015/intro_python_data_science
784f0b35988676248c4ba6c7999164dfb51ee631
[ "MIT" ]
null
null
null
estudiantes/funciones.py
tabris2015/intro_python_data_science
784f0b35988676248c4ba6c7999164dfb51ee631
[ "MIT" ]
null
null
null
def registrar_estudiantes(n): # registro de datos estudiantes = [] for i in range(n): estudiante = {} print(f'estudiante {i+1}:') estudiante['nombre'] = input('nombre del estudiante: ') in_edad = input('edad del estudiante: ') while not in_edad.isdigit(): ...
31.3
64
0.57295
102
939
5.215686
0.460784
0.045113
0.041353
0.056391
0.105263
0.105263
0
0
0
0
0
0.010526
0.2918
939
29
65
32.37931
0.789474
0.171459
0
0.105263
0
0
0.187013
0
0
0
0
0.034483
0
1
0.105263
false
0
0
0
0.157895
0.157895
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
0
0
1
119d8e43e77baac65ef5c6b64d016a19f85843ba
6,741
py
Python
malaya/_utils/_softmax_class.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
null
null
null
malaya/_utils/_softmax_class.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
null
null
null
malaya/_utils/_softmax_class.py
leowmjw/Malaya
33f39835eca08c238d2dd68aeca3b09c5d0a45ab
[ "MIT" ]
null
null
null
import sys import warnings if not sys.warnoptions: warnings.simplefilter('ignore') import json import os import pickle from ._utils import check_file, load_graph, check_available, generate_session from ..stem import _classification_textcleaning_stemmer from .._models._sklearn_model import ( BINARY_XGB, BI...
30.640909
122
0.58745
759
6,741
5.023715
0.173913
0.042486
0.020981
0.025177
0.538946
0.532914
0.478363
0.441647
0.404144
0.366378
0
0.006654
0.308856
6,741
219
123
30.780822
0.811762
0
0
0.431472
1
0.005076
0.191663
0.03412
0
0
0
0
0
1
0.025381
false
0
0.091371
0
0.142132
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
0
0
0
1
119ea88acc92144d46ec6203fbc4f95f170a347e
1,580
py
Python
src/otest/test_setup.py
rohe/otest
8983db8abfa63eda4e8a35bbe193ac80793c14bb
[ "Apache-2.0" ]
2
2016-08-26T07:42:19.000Z
2017-09-06T02:13:02.000Z
src/otest/test_setup.py
rohe/otest
8983db8abfa63eda4e8a35bbe193ac80793c14bb
[ "Apache-2.0" ]
3
2017-06-15T06:07:18.000Z
2018-06-28T07:43:21.000Z
src/otest/test_setup.py
rohe/otest
8983db8abfa63eda4e8a35bbe193ac80793c14bb
[ "Apache-2.0" ]
5
2016-07-22T21:38:40.000Z
2019-04-05T19:20:23.000Z
from oidctest.op import func from oidctest.op import oper from oidctest.op.client import Client from oidctest.session import SessionHandler from otest.aus.handling_ph import WebIh from otest.conf_setup import OP_ORDER from otest.conversation import Conversation from otest.events import Events from otest.flow import Fl...
34.347826
76
0.681646
179
1,580
5.832402
0.351955
0.051724
0.04023
0.038314
0.044061
0
0
0
0
0
0
0
0.237975
1,580
45
77
35.111111
0.86711
0.013924
0
0
0
0
0.035347
0
0
0
0
0
0
1
0.027027
false
0
0.351351
0
0.405405
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
0
0
0
1
11a170a7d9d4be2747fc2f885fdbdea415898a39
356
py
Python
others/python/exceptions/except.py
bt3gl/Resources-Numerical_Methods_for_Physics
8668215f107230fafd9bdeb0061d353328cf03e8
[ "Apache-2.0" ]
17
2019-10-28T03:13:07.000Z
2020-11-21T17:38:06.000Z
others/python/exceptions/except.py
bt3gl/Resources-Numerical_Methods_for_Physics
8668215f107230fafd9bdeb0061d353328cf03e8
[ "Apache-2.0" ]
null
null
null
others/python/exceptions/except.py
bt3gl/Resources-Numerical_Methods_for_Physics
8668215f107230fafd9bdeb0061d353328cf03e8
[ "Apache-2.0" ]
5
2020-05-09T07:55:32.000Z
2020-12-12T11:05:42.000Z
# try openning a file for reading try: f = open("file.txt", "r") except IOError: print "I/O Error" # undefined variable x = 1.0 try: x + y except NameError: print "undefined variable" # example from tutorial def this_fails(): x = 1/0 try: this_fails() except ZeroDivisionError as detail: print ...
14.833333
44
0.671348
53
356
4.471698
0.660377
0.14346
0.025316
0.050633
0
0
0
0
0
0
0
0.01444
0.22191
356
23
45
15.478261
0.841155
0.202247
0
0
0
0
0.215054
0
0
0
0
0
0
0
null
null
0
0
null
null
0.230769
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
0
0
0
0
0
1
11aed6db8dec1d89d1561ef9163cbf9b2aff8920
761
py
Python
utils/api.py
alirzaev/vyatsu-schedule-viber-bot
ff44195742b07c541d67be1e8f4ce0e204cba70b
[ "MIT" ]
1
2020-01-31T16:29:15.000Z
2020-01-31T16:29:15.000Z
utils/api.py
alirzaev/vyatsu-schedule-viber-bot
ff44195742b07c541d67be1e8f4ce0e204cba70b
[ "MIT" ]
null
null
null
utils/api.py
alirzaev/vyatsu-schedule-viber-bot
ff44195742b07c541d67be1e8f4ce0e204cba70b
[ "MIT" ]
null
null
null
import requests from os import getenv from typing import List, Dict _API_URL = getenv('API_URL') def get_groups() -> List[Dict]: response = requests.get(f'{_API_URL}/api/v2/groups/by_faculty') response.raise_for_status() return response.json() def get_season() -> str: response = requests.get(f'{_...
21.742857
78
0.697766
109
761
4.633028
0.275229
0.071287
0.150495
0.158416
0.60198
0.60198
0.60198
0.443564
0.320792
0
0
0.006231
0.156373
761
34
79
22.382353
0.780374
0
0
0.35
0
0
0.195795
0.178712
0
0
0
0
0
1
0.2
false
0
0.15
0
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
0
0
0
0
0
1
0
0
1
11ba755db1dbc0aa52b8605bc8949960f9ba11a9
346
py
Python
less3_task5.py
rezapci/Algorithms-with-Python
5f4faf2d463f33375856f5a5ab525467d303aa24
[ "MIT" ]
null
null
null
less3_task5.py
rezapci/Algorithms-with-Python
5f4faf2d463f33375856f5a5ab525467d303aa24
[ "MIT" ]
null
null
null
less3_task5.py
rezapci/Algorithms-with-Python
5f4faf2d463f33375856f5a5ab525467d303aa24
[ "MIT" ]
null
null
null
# Find the maximum negative element in the array. # Display its value and position in the array. import random arr = [random.randint(-50, 50) for _ in range(10)] print(arr) num = -50 position = 0 for i in arr: if i < 0 and i > num: num = i print ('The maximum negative element {}, its position: {}'.for...
19.222222
87
0.656069
57
346
3.964912
0.473684
0.088496
0.159292
0.221239
0
0
0
0
0
0
0
0.037313
0.225434
346
17
88
20.352941
0.80597
0.265896
0
0
0
0
0.195219
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.222222
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
0
0
0
1
11c82b11914ac9b51ec458c369a7893fadc1d1d2
1,851
bzl
Python
config/infra/buildkite/deps.bzl
corypaik/labtools
1d9d75eff40e8bf258e8de6d4377bbea073e109d
[ "Apache-2.0" ]
1
2021-09-16T11:57:35.000Z
2021-09-16T11:57:35.000Z
config/infra/buildkite/deps.bzl
corypaik/labtools
1d9d75eff40e8bf258e8de6d4377bbea073e109d
[ "Apache-2.0" ]
null
null
null
config/infra/buildkite/deps.bzl
corypaik/labtools
1d9d75eff40e8bf258e8de6d4377bbea073e109d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The LabTools Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
43.046512
119
0.688817
210
1,851
5.952381
0.590476
0.048
0.0208
0.0256
0
0
0
0
0
0
0
0.096378
0.164776
1,851
42
120
44.071429
0.71216
0.388979
0
0
0
0.090909
0.557466
0.333937
0
0
0
0
0
1
0.045455
true
0
0
0
0.045455
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
1
0
0
0
0
0
0
1
11cb6ae52142719479c56b52ce2a6eeaa8a094de
3,855
py
Python
Tests/Data/Parabolic/T/3D_3BHEs_array/pre/3bhes.py
jbathmann/ogs
a79e95d7521a841ffebd441a6100562847e03ab5
[ "BSD-4-Clause" ]
null
null
null
Tests/Data/Parabolic/T/3D_3BHEs_array/pre/3bhes.py
jbathmann/ogs
a79e95d7521a841ffebd441a6100562847e03ab5
[ "BSD-4-Clause" ]
1
2021-09-02T14:21:33.000Z
2021-09-02T14:21:33.000Z
Tests/Data/Parabolic/T/3D_3BHEs_array/pre/3bhes.py
jbathmann/ogs
a79e95d7521a841ffebd441a6100562847e03ab5
[ "BSD-4-Clause" ]
null
null
null
### # Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org) # Distributed under a Modified BSD License. # See accompanying file LICENSE.txt or # http://www.opengeosys.org/project/license ### # Execute this file to generate TESPy network csv files from tespy import cmp, con, nwk, hlp from tespy impo...
29.204545
79
0.692866
612
3,855
4.23366
0.354575
0.03242
0.019298
0.033964
0.120031
0.120031
0.09147
0.09147
0.030104
0.030104
0
0.277197
0.155901
3,855
131
80
29.427481
0.519053
0.133852
0
0
0
0
0.095339
0
0
0
0
0
0.04
1
0
false
0
0.053333
0
0.053333
0.013333
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
0
0
0
0
0
0
0
0
0
1
11dce67a3e4c4459fb478df3826b5f61db5fbe5f
777
py
Python
Cms/Dtcms/apps/areas/views.py
Highsir/cms
2d820212227ad2760cd762873365c0df0604c730
[ "MIT" ]
null
null
null
Cms/Dtcms/apps/areas/views.py
Highsir/cms
2d820212227ad2760cd762873365c0df0604c730
[ "MIT" ]
null
null
null
Cms/Dtcms/apps/areas/views.py
Highsir/cms
2d820212227ad2760cd762873365c0df0604c730
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.viewsets import ReadOnlyModelViewSet, ModelViewSet from areas.models import Area from areas.serializers import AreaSerializer, SubAreaSerializer class AreasViewSet(ModelViewSet): """ 行政区划信息 """ pagination_class = None # 区划信息不分页 queryset = A...
22.2
70
0.6139
71
777
6.647887
0.56338
0.038136
0.050847
0.067797
0
0
0
0
0
0
0
0
0.306306
777
34
71
22.852941
0.875696
0.061776
0
0.235294
0
0
0.012048
0
0
0
0
0
0
1
0.117647
false
0
0.235294
0
0.764706
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
0
1
0
0
1
11e06d5dd0202783c3e0b55b6bc21794e4419ef3
840
py
Python
tests/ManualLoggerTests.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
null
null
null
tests/ManualLoggerTests.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
2
2016-11-23T00:36:34.000Z
2016-11-23T00:39:08.000Z
tests/ManualLoggerTests.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
null
null
null
from pylegos import LogFactory def consoleOnlyTest(): logFactory = LogFactory() logLevel = logFactory.LogLevel.INFO log = logFactory.getConsoleLogger() log.debug('This is a console debug message') log.info('This is an console info message') log.warn('This is a warning message') log.error...
25.454545
90
0.703571
105
840
5.552381
0.314286
0.051458
0.120069
0.164666
0
0
0
0
0
0
0
0
0.186905
840
33
91
25.454545
0.853587
0
0
0
0
0
0.35119
0
0
0
0
0
0
1
0.095238
false
0
0.047619
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
11f2ee6d545351fbf6460813569b0d154e97b751
2,572
py
Python
modules/stat/agd_stat.py
epfl-dcsl/persona-orig
d94a8b60f07622bb61736127ff328329c7b131a9
[ "Apache-2.0" ]
null
null
null
modules/stat/agd_stat.py
epfl-dcsl/persona-orig
d94a8b60f07622bb61736127ff328329c7b131a9
[ "Apache-2.0" ]
null
null
null
modules/stat/agd_stat.py
epfl-dcsl/persona-orig
d94a8b60f07622bb61736127ff328329c7b131a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 École Polytechnique Fédérale de Lausanne. All Rights Reserved. # # 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 r...
35.232877
83
0.651633
330
2,572
4.960606
0.460606
0.036652
0.029322
0.019548
0
0
0
0
0
0
0
0.005994
0.221617
2,572
72
84
35.722222
0.811688
0.346423
0
0.1
0
0
0.124694
0
0
0
0
0
0
1
0.15
false
0.025
0.225
0.075
0.525
0.175
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
0
1
0
0
1
11f88b21b7c293777ac5db6fccf25f3653b3095f
1,528
py
Python
docker_parser.py
hodolizer/HB_LittleBot
4750c7c8e5bda22fcd5f48ea9248d919b7ca7fb2
[ "MIT" ]
null
null
null
docker_parser.py
hodolizer/HB_LittleBot
4750c7c8e5bda22fcd5f48ea9248d919b7ca7fb2
[ "MIT" ]
null
null
null
docker_parser.py
hodolizer/HB_LittleBot
4750c7c8e5bda22fcd5f48ea9248d919b7ca7fb2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Python Slack Bot docker parser class for use with the HB Bot """ import os import re DOCKER_SUPPORTED = ["image", "container", "help"] SUBCOMMAND_SUPPORTED = ["ls",] def docker_usage_message(): return ("I'm sorry. I don't understand your docker command." "I understand docker [%...
35.534884
102
0.650524
207
1,528
4.628019
0.410628
0.125261
0.05428
0.043841
0.206681
0.206681
0.179541
0.10856
0.10856
0.10856
0
0.004252
0.230366
1,528
42
103
36.380952
0.810374
0.263089
0
0
0
0
0.223913
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
11ffbc12ee29d6ded59501a82368db14e943d2d0
1,683
py
Python
decode.py
imandr/image_encode
9828d5dc570fc0feb729b365b13ab50cfdb8c85e
[ "BSD-3-Clause" ]
null
null
null
decode.py
imandr/image_encode
9828d5dc570fc0feb729b365b13ab50cfdb8c85e
[ "BSD-3-Clause" ]
null
null
null
decode.py
imandr/image_encode
9828d5dc570fc0feb729b365b13ab50cfdb8c85e
[ "BSD-3-Clause" ]
null
null
null
import sys, getopt from zlib import adler32 from PIL import Image from rnd import Generator, sample Usage = """ python decode.py <password> <input image file> <output file> """ def bits(text): out = [] for c in text: n = ord(c) for _ in range(8): out.append(n&1) n >>= 1...
19.569767
60
0.565657
249
1,683
3.722892
0.285141
0.00863
0.042071
0.00863
0.081985
0.036677
0.021575
0
0
0
0
0.020322
0.298277
1,683
85
61
19.8
0.764606
0.092692
0
0.166667
0
0
0.045605
0
0
0
0
0
0
1
0.066667
false
0.066667
0.066667
0
0.2
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
0
0
0
1
f504c2cb47e19abd70638d4564e9477e15e1315f
379
py
Python
member/views.py
comcidis/comcidis-portal
40eb6d37874f60eac123a15a03661bd48cecd382
[ "MIT" ]
null
null
null
member/views.py
comcidis/comcidis-portal
40eb6d37874f60eac123a15a03661bd48cecd382
[ "MIT" ]
null
null
null
member/views.py
comcidis/comcidis-portal
40eb6d37874f60eac123a15a03661bd48cecd382
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Member def index(request): """List all members """ advisors = Member.objects.filter(advisor=True) members = Member.objects.filter(advisor=False) context = {'mobile_title_page': 'Equipe', 'advisors': advisors, 'members': members...
29.153846
56
0.683377
43
379
5.976744
0.604651
0.101167
0.14786
0.202335
0
0
0
0
0
0
0
0
0.192612
379
12
57
31.583333
0.839869
0.042216
0
0
0
0
0.15625
0
0
0
0
0
0
1
0.125
false
0
0.25
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
0
0
0
0
0
0
0
0
1
ee969271d5aeb101a427f273a5ac443c35b1fd94
1,891
py
Python
build/lib/pubsubsql/net/testheader.py
pubsubsql/python
a62f76490222380375d20399dbe3812ff3451815
[ "Apache-2.0" ]
1
2016-03-17T15:16:16.000Z
2016-03-17T15:16:16.000Z
src/pubsubsql/net/testheader.py
pubsubsql/pss-py
a62f76490222380375d20399dbe3812ff3451815
[ "Apache-2.0" ]
null
null
null
src/pubsubsql/net/testheader.py
pubsubsql/pss-py
a62f76490222380375d20399dbe3812ff3451815
[ "Apache-2.0" ]
1
2015-04-24T10:24:42.000Z
2015-04-24T10:24:42.000Z
#! /usr/bin/env python """ Copyright (C) 2014 CompleteDB LLC. This program is free software: you can redistribute it and/or modify it under the terms of the Apache License Version 2.0 http://www.apache.org/licenses. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; with...
30.5
85
0.565838
177
1,891
5.971751
0.514124
0.052034
0.083254
0.049196
0.421949
0.421949
0.421949
0.421949
0.421949
0.421949
0
0.043831
0.348493
1,891
61
86
31
0.814123
0.207298
0
0.514286
0
0
0.070323
0
0
0
0
0
0.114286
1
0.114286
false
0.057143
0.057143
0
0.2
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
0
0
0
1
ee97351f4698d9e63dc5fa142d72abe0e05ecfef
5,189
py
Python
app/giturl_class/routes.py
KnowledgeCaptureAndDiscovery/somef-web
220ced6a3cb778dd2ba5e2da7c440a6e33447f67
[ "Apache-2.0" ]
1
2020-04-12T17:03:37.000Z
2020-04-12T17:03:37.000Z
app/giturl_class/routes.py
KnowledgeCaptureAndDiscovery/somef-web
220ced6a3cb778dd2ba5e2da7c440a6e33447f67
[ "Apache-2.0" ]
null
null
null
app/giturl_class/routes.py
KnowledgeCaptureAndDiscovery/somef-web
220ced6a3cb778dd2ba5e2da7c440a6e33447f67
[ "Apache-2.0" ]
1
2021-09-21T20:11:50.000Z
2021-09-21T20:11:50.000Z
from flask import render_template, flash, send_from_directory, send_file from app.giturl_class.url_form import UrlForm from app.giturl_class.download_form import DownloadButton from app.giturl_class import bp import json import os USE_TEST_FILE = False if(os.getenv('SM2KG_TEST_MODE') == 'TRUE'): USE_TEST_FILE = ...
31.448485
163
0.582386
551
5,189
5.38657
0.348457
0.011792
0.020216
0.018194
0.016846
0.016846
0.016846
0
0
0
0
0.004001
0.325689
5,189
164
164
31.640244
0.844241
0.150318
0
0.051724
0
0
0.115078
0.01592
0
0
0
0
0
1
0.051724
false
0.060345
0.060345
0.017241
0.189655
0.034483
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
0
0
1
ee98e5cd0e12c0ac4700f16fd1175dbaba124f1a
681
py
Python
type.py
pfeak/pymarkdown
e136c361c935785267535734394c579d8c7002f5
[ "MIT" ]
null
null
null
type.py
pfeak/pymarkdown
e136c361c935785267535734394c579d8c7002f5
[ "MIT" ]
1
2020-09-17T07:46:58.000Z
2020-09-17T07:46:58.000Z
type.py
pfeak/pymarkdown
e136c361c935785267535734394c579d8c7002f5
[ "MIT" ]
null
null
null
import platform from enum import Enum, unique @unique class Type(Enum): """Markdown type """ # Separation SEP = '\n' # Place holder NULL = "" SPACE = " " # Markdown single symbol H1 = "#" H2 = "##" H3 = "###" H4 = "####" H5 = "#####" H6 = "######" QUOTE = ...
17.025
55
0.50514
64
681
5.203125
0.640625
0.06006
0.09009
0
0
0
0
0
0
0
0
0.012793
0.311307
681
39
56
17.461538
0.697228
0.161527
0
0
0
0
0.242857
0.096429
0
0
0
0
0
1
0
false
0
0.083333
0
0.958333
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
0
1
0
0
1
ee9c2a66660c6fef43012d8c38ea0b3de96ca075
1,134
py
Python
animepicker/apps/picker/migrations/0001_initial.py
Onosume/anime-picker
635f260ebb3b63b50e3b461b78d4c3295b4ff703
[ "MIT" ]
null
null
null
animepicker/apps/picker/migrations/0001_initial.py
Onosume/anime-picker
635f260ebb3b63b50e3b461b78d4c3295b4ff703
[ "MIT" ]
null
null
null
animepicker/apps/picker/migrations/0001_initial.py
Onosume/anime-picker
635f260ebb3b63b50e3b461b78d4c3295b4ff703
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-26 14:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Anime',...
36.580645
178
0.574956
118
1,134
5.372881
0.559322
0.094637
0.126183
0.15142
0.198738
0
0
0
0
0
0
0.026222
0.260141
1,134
30
179
37.8
0.72944
0.059083
0
0
1
0
0.136278
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.272727
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
0
0
0
1
eea0783e1d150b2a10a9b357db454fabc3181131
2,154
py
Python
common_multicore.py
bgrayburn/itemSetCount
b1d8a9262a0d90a9038ecb7b38c94d3a33f235f1
[ "MIT" ]
null
null
null
common_multicore.py
bgrayburn/itemSetCount
b1d8a9262a0d90a9038ecb7b38c94d3a33f235f1
[ "MIT" ]
null
null
null
common_multicore.py
bgrayburn/itemSetCount
b1d8a9262a0d90a9038ecb7b38c94d3a33f235f1
[ "MIT" ]
null
null
null
from multiprocessing import Process import pymongo from itertools import combinations import csv import time import sys mongo_ip = "192.168.1.127" db_name = "analysis" collection_name = "common_items" max_item_threshold = 20 def load_transaction(filename): transaction = [] with open(filename,'rb') as csvfile: ...
29.916667
113
0.689415
298
2,154
4.721477
0.35906
0.024876
0.022743
0.04833
0.147832
0.103767
0.103767
0.103767
0.103767
0.103767
0
0.013529
0.176416
2,154
71
114
30.338028
0.779594
0.010214
0
0.063492
0
0
0.068982
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.015873
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
0
0
0
0
0
1
eea2c9cc9d5f2240a45df9dae18361db691a6948
3,753
py
Python
bluebottle/segments/migrations/0024_auto_20220210_1336.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
null
null
null
bluebottle/segments/migrations/0024_auto_20220210_1336.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
null
null
null
bluebottle/segments/migrations/0024_auto_20220210_1336.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.24 on 2022-02-10 12:36 import bluebottle.utils.fields import bluebottle.utils.validators import colorfield.fields from django.db import migrations, models import django_better_admin_arrayfield.models.fields class Migration(migrations.Migration): dependencies = [ ('segments', '0...
55.191176
425
0.679456
439
3,753
5.669704
0.330296
0.036159
0.090398
0.104861
0.513057
0.462435
0.3182
0.3182
0.3182
0.3182
0
0.017154
0.207834
3,753
67
426
56.014925
0.820047
0.012257
0
0.47541
1
0
0.278003
0.006208
0
0
0
0
0
1
0
false
0
0.081967
0
0.131148
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
0
0
0
1
eea423068f1d28596bc373c0840d0c29a2ee48d7
3,249
py
Python
python/evaluation/track_detection/rpn/rpn_eval.py
billy000400/Mu2e_MLTracking
675e62d844ff8a5ccba9019e316c374c40658101
[ "MIT" ]
null
null
null
python/evaluation/track_detection/rpn/rpn_eval.py
billy000400/Mu2e_MLTracking
675e62d844ff8a5ccba9019e316c374c40658101
[ "MIT" ]
1
2021-01-03T08:57:34.000Z
2021-01-03T23:41:22.000Z
python/evaluation/track_detection/rpn/rpn_eval.py
billy000400/Mu2e_MLTracking
675e62d844ff8a5ccba9019e316c374c40658101
[ "MIT" ]
null
null
null
# Detector (Faster RCNN) # forward propogate from input to output # Goal: test if the validation output act as expected import sys from pathlib import Path import pickle import timeit from datetime import datetime import pandas as pd import numpy as np import tensorflow as tf from tensorflow.keras.regularizers impor...
36.505618
124
0.748538
464
3,249
5.028017
0.368534
0.021003
0.04072
0.013716
0.123446
0.088298
0.060009
0
0
0
0
0.006803
0.140351
3,249
88
125
36.920455
0.8285
0.0751
0
0
0
0
0.089208
0.053124
0
0
0
0
0
1
0.031746
false
0
0.31746
0
0.396825
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
0
0
0
0
1
0
0
0
0
1
eeade2b142cd94a4f1b12d3d46fc0e265a2be53e
642
py
Python
python/283_move_zeroes.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
17
2016-03-01T22:40:53.000Z
2021-04-19T02:15:03.000Z
python/283_move_zeroes.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
null
null
null
python/283_move_zeroes.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
3
2019-03-07T03:48:43.000Z
2020-04-05T01:11:36.000Z
class Solution: def moveZeroes(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ read_index, write_index = 0, -1 len_nums = len(nums) # shift non-zero numbers to the head of the list while read_index < len_nums: ...
30.571429
61
0.542056
82
642
4.060976
0.439024
0.21021
0.099099
0.096096
0.102102
0
0
0
0
0
0
0.019901
0.373832
642
20
62
32.1
0.808458
0.213396
0
0.230769
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
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
0
0
0
0
0
1
eeb4e80e6cc8868c343b5e9768135af13ccbaa18
380
py
Python
setup.py
CyrusBiotechnology/django-headmaster
0100b4086c09da43da5f2f68e3cb549dca8af96a
[ "MIT" ]
null
null
null
setup.py
CyrusBiotechnology/django-headmaster
0100b4086c09da43da5f2f68e3cb549dca8af96a
[ "MIT" ]
null
null
null
setup.py
CyrusBiotechnology/django-headmaster
0100b4086c09da43da5f2f68e3cb549dca8af96a
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='django-headmaster', version='0.0.1', description='Add extra headers to your site via your settings file', url='http://github.com/CyrusBiotechnology/django-headmaster', author='Peter Novotnak', author_email='peter@cyrusbio.com', license='MIT',...
31.666667
74
0.681579
46
380
5.565217
0.782609
0.1875
0
0
0
0
0
0
0
0
0
0.00974
0.189474
380
11
75
34.545455
0.821429
0
0
0
0
0
0.476316
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
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
1
0
0
0
0
0
0
1
eeb6fa5b0b347f06d9b353c9e9aeb47e31e57218
1,884
py
Python
rrwebapp/accesscontrol.py
louking/rrwebapp
5c73f84e1a21bc3b5fa51d83ba576c3152e6cf27
[ "Apache-2.0" ]
null
null
null
rrwebapp/accesscontrol.py
louking/rrwebapp
5c73f84e1a21bc3b5fa51d83ba576c3152e6cf27
[ "Apache-2.0" ]
417
2015-05-07T16:50:22.000Z
2022-03-14T16:16:13.000Z
rrwebapp/accesscontrol.py
louking/rrwebapp
5c73f84e1a21bc3b5fa51d83ba576c3152e6cf27
[ "Apache-2.0" ]
null
null
null
########################################################################################### # accesscontrol - access control permission and need definitions # # Date Author Reason # ---- ------ ------ # 01/18/14 Lou King Create # # Copyright 2014...
34.254545
91
0.571656
153
1,884
6.888889
0.529412
0.068311
0.079696
0.068311
0.16129
0.16129
0.102467
0
0
0
0
0.006231
0.148089
1,884
54
92
34.888889
0.650467
0.313163
0
0.090909
0
0
0.04878
0
0
0
0
0
0
1
0.090909
false
0
0.318182
0
0.5
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
0
0
0
1
eebab051d6bd2499eba549e8e5c3faefb5989879
1,404
py
Python
email_utils/models/EmailMessage.py
E7ernal/quizwhiz
a271d40922eaad682a76d7700beafc7a5df51fac
[ "MIT" ]
null
null
null
email_utils/models/EmailMessage.py
E7ernal/quizwhiz
a271d40922eaad682a76d7700beafc7a5df51fac
[ "MIT" ]
7
2020-02-12T00:31:35.000Z
2022-03-11T23:19:21.000Z
email_utils/models/EmailMessage.py
E7ernal/quizwhiz
a271d40922eaad682a76d7700beafc7a5df51fac
[ "MIT" ]
null
null
null
# vim: ts=4:sw=4:expandtabs __author__ = 'zach.mott@gmail.com' from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from email_utils.tasks import send_mail RESEND_EMAIL_PERMISSION = 'can_resend_email' @python_2_unicode_c...
29.87234
86
0.688034
175
1,404
5.205714
0.428571
0.072448
0.092206
0.105379
0.215148
0.155873
0.079034
0
0
0
0
0.014286
0.202279
1,404
46
87
30.521739
0.799107
0.017806
0
0
0
0.030303
0.119826
0.017429
0
0
0
0
0
1
0.060606
false
0
0.121212
0.030303
0.545455
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
0
1
0
0
1
eebbbd0016582d70d21cbd69a90c5e0e380ce3d8
1,262
py
Python
core/string_utils.py
phage-nz/observer
2a2d9b5047c5b2aba0d102c0c21e97de472bbd39
[ "Apache-2.0" ]
2
2020-04-25T05:11:49.000Z
2021-02-09T21:27:38.000Z
core/string_utils.py
phage-nz/observer
2a2d9b5047c5b2aba0d102c0c21e97de472bbd39
[ "Apache-2.0" ]
null
null
null
core/string_utils.py
phage-nz/observer
2a2d9b5047c5b2aba0d102c0c21e97de472bbd39
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from .log_utils import get_module_logger from defang import defang import random import string import urllib.parse logger = get_module_logger(__name__) def random_string(length): return ''.join( random.choice( string.ascii_uppercase + string.ascii_lowercase + ...
20.354839
64
0.639461
172
1,262
4.511628
0.366279
0.061856
0.073454
0.056701
0.033505
0
0
0
0
0
0
0.005225
0.24168
1,262
61
65
20.688525
0.805643
0.013471
0
0
0
0
0.027331
0
0
0
0
0
0
1
0.170732
false
0
0.121951
0.097561
0.512195
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
0
1
0
0
1
eebfbf0ca3fc84c6b27f16b71cc79b9f09285376
692
py
Python
core/clean.py
Saij84/mediaRename
984fbe47dfa27b8e229934e5b29c73dd0ab48c05
[ "MIT" ]
null
null
null
core/clean.py
Saij84/mediaRename
984fbe47dfa27b8e229934e5b29c73dd0ab48c05
[ "MIT" ]
null
null
null
core/clean.py
Saij84/mediaRename
984fbe47dfa27b8e229934e5b29c73dd0ab48c05
[ "MIT" ]
null
null
null
import re from mediaRename.constants import constants as CONST def cleanReplace(data): """ Takes each dict object and clean :param data: dict object :return: none """ dataIn = data["files"] # (regX, replaceSTR) cleanPasses = [(CONST.CLEAN_PASSONE, ""), (CONST.CLEAN_PASSTWO, ""), ...
28.833333
77
0.619942
70
692
6.057143
0.571429
0.09434
0
0
0
0
0
0
0
0
0
0
0.264451
692
23
78
30.086957
0.833006
0.131503
0
0
0
0
0.034662
0
0
0
0
0
0
1
0.083333
false
0.333333
0.166667
0
0.25
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
0
0
0
1
eec16f1e4b653abf2db741d973b4bf4d50090976
927
py
Python
codes/Layer/Layer.py
serenaklm/rumor_detection
8f4822951db111cc2e21f9a2901872c9681a2cbb
[ "MIT" ]
42
2020-03-24T03:09:19.000Z
2022-02-15T14:13:13.000Z
codes/Layer/Layer.py
serenaklm/rumor_detection
8f4822951db111cc2e21f9a2901872c9681a2cbb
[ "MIT" ]
3
2020-08-18T13:15:20.000Z
2021-06-15T12:17:08.000Z
codes/Layer/Layer.py
serenaklm/rumor_detection
8f4822951db111cc2e21f9a2901872c9681a2cbb
[ "MIT" ]
15
2020-03-22T23:48:02.000Z
2022-03-14T23:53:42.000Z
import torch import torch.nn as nn import torch.nn.functional as F import os import numpy as np from Layer import FeedForwardNetwork from Layer import MultiHeadAttention __author__ = "Serena Khoo" class Layer(nn.Module): def __init__(self, config, d_model, n_head): super(Layer,self).__init__() self.config =...
28.96875
167
0.785329
132
927
5.19697
0.363636
0.034985
0.074344
0.037901
0.116618
0
0
0
0
0
0
0
0.134844
927
32
168
28.96875
0.855362
0
0
0
0
0
0.011853
0
0
0
0
0
0
1
0.090909
false
0
0.318182
0
0.5
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
0
0
0
1
eeca641ef832fde419fc26a2088df6a05f63fc33
519
py
Python
ftmscan/utils/parsing.py
awilliamson10/ftmscan-python
d7ed384f1ac65461c86bed4a65f9332baf92c8f0
[ "MIT" ]
4
2022-01-10T21:58:02.000Z
2022-03-27T20:21:35.000Z
polygonscan/utils/parsing.py
yusufseyrek/polygonscan-python
c58a8190e41a5c9bac0a5e88db809e5e207b1c77
[ "MIT" ]
3
2021-09-25T05:10:27.000Z
2021-11-21T04:56:29.000Z
polygonscan/utils/parsing.py
yusufseyrek/polygonscan-python
c58a8190e41a5c9bac0a5e88db809e5e207b1c77
[ "MIT" ]
4
2021-09-25T05:11:08.000Z
2022-03-09T01:01:33.000Z
import requests class ResponseParser: @staticmethod def parse(response: dict): result = response["result"] if "status" in response.keys(): status = bool(int(response["status"])) message = response["message"] assert status, f"{result} -- {message}" el...
30.529412
51
0.554913
53
519
5.433962
0.679245
0.076389
0
0
0
0
0
0
0
0
0
0
0.337187
519
17
52
30.529412
0.837209
0.125241
0
0
0
0
0.121681
0
0
0
0
0.058824
0.076923
1
0.076923
false
0
0.076923
0
0.307692
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
0
0
0
1
eedf4a520738f711e0b9af209fc2128b16e46db5
1,133
py
Python
qbflask/models.py
kevindkeogh/qbootstrapper-flask
490906837d6522e3669193e5097bd33e1f953451
[ "MIT" ]
1
2017-04-27T08:59:01.000Z
2017-04-27T08:59:01.000Z
qbflask/models.py
kevindkeogh/qbootstrapper-flask
490906837d6522e3669193e5097bd33e1f953451
[ "MIT" ]
null
null
null
qbflask/models.py
kevindkeogh/qbootstrapper-flask
490906837d6522e3669193e5097bd33e1f953451
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Handles all database interactions for qbootstrapper ''' from flask import g from qbflask import app import sqlite3 def connect_db(): '''Connects to the database and returns the connection ''' conn = sqlite3.connect(app.config['DATABASE']) conn.row_factory = sqlite3.Row retur...
21.788462
79
0.655781
157
1,133
4.66242
0.464968
0.105191
0.071038
0.040984
0.161202
0.125683
0.125683
0.125683
0.125683
0
0
0.004556
0.225066
1,133
51
80
22.215686
0.829157
0.384819
0
0
0
0
0.081917
0
0
0
0
0
0
1
0.208333
false
0
0.125
0
0.416667
0.041667
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
0
0
0
1
eee2473186eac206c8388e1f0a6f771a7776dd49
4,757
py
Python
python3/koans/about_strings.py
PatrickBoynton/python_koans
12243005b6ca5145a3989eadc42d1cca122fe9a6
[ "MIT" ]
null
null
null
python3/koans/about_strings.py
PatrickBoynton/python_koans
12243005b6ca5145a3989eadc42d1cca122fe9a6
[ "MIT" ]
null
null
null
python3/koans/about_strings.py
PatrickBoynton/python_koans
12243005b6ca5145a3989eadc42d1cca122fe9a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutStrings(Koan): def test_double_quoted_strings_are_strings(self): string = "Hello, world." # self.assertEqual(__, isinstance(string, str)) # Returns true, because string and str are the same type. s...
36.875969
81
0.644103
592
4,757
4.930743
0.255068
0.169579
0.045564
0.042823
0.336759
0.301131
0.227133
0.112025
0.052415
0
0
0.001687
0.25226
4,757
128
82
37.164063
0.818949
0.289048
0
0.219178
0
0
0.097372
0
0.013699
0
0
0
0.287671
1
0.246575
false
0
0.013699
0
0.273973
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
0
0
0
1
eee85fe54b0a7025f321a3dcd3adecc8d263a047
2,451
py
Python
02_test_and_prototype/CBH file subset tests.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
02_test_and_prototype/CBH file subset tests.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
02_test_and_prototype/CBH file subset tests.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python 2 # language: python # name: python2 # --- # %% import pandas a...
22.694444
88
0.575275
342
2,451
4.061404
0.353801
0.007199
0.010799
0.034557
0.535637
0.535637
0.535637
0.535637
0.535637
0.535637
0
0.06434
0.251734
2,451
107
89
22.906542
0.693021
0.377397
0
0.622222
0
0
0.169024
0.123906
0
0
0
0
0
0
null
null
0
0.022222
null
null
0.088889
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
0
0
0
0
0
1
eee96c8768d0bd73bfcc0b80259c717f22d6398d
655
py
Python
tests/test_time_compare.py
ludwiglierhammer/pyhomogenize
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
[ "MIT" ]
null
null
null
tests/test_time_compare.py
ludwiglierhammer/pyhomogenize
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
[ "MIT" ]
null
null
null
tests/test_time_compare.py
ludwiglierhammer/pyhomogenize
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
[ "MIT" ]
null
null
null
import pytest import pyhomogenize as pyh from . import has_dask, requires_dask from . import has_xarray, requires_xarray from . import has_numpy, requires_numpy def test_time_compare(): netcdffile1 = pyh.test_netcdf[0] netcdffile2 = pyh.test_netcdf[2] time_control1 = pyh.time_control(netcdffile1) ti...
34.473684
107
0.79084
92
655
5.315217
0.326087
0.071575
0.079755
0.122699
0.423313
0.423313
0.423313
0.423313
0.423313
0.423313
0
0.024221
0.117557
655
18
108
36.388889
0.821799
0
0
0
0
0
0.010703
0
0
0
0
0
0.230769
1
0.076923
false
0
0.384615
0
0.461538
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
0
0
0
1
eeea795546b0f95cf627707162e00a3f25d014a4
2,073
py
Python
wordfrequencies/wordfrequencies.py
chrisshiels/life
f6902ef656e0171c07eec3eb9343a275048ab849
[ "MIT" ]
null
null
null
wordfrequencies/wordfrequencies.py
chrisshiels/life
f6902ef656e0171c07eec3eb9343a275048ab849
[ "MIT" ]
null
null
null
wordfrequencies/wordfrequencies.py
chrisshiels/life
f6902ef656e0171c07eec3eb9343a275048ab849
[ "MIT" ]
null
null
null
#!/usr/bin/env python # 'wordfrequencies.py'. # Chris Shiels. import re import sys def pipemaybe(l): def internal(v): return reduce(lambda a, e: e(a) if a is not None else None, l, v) return internal def partial(f, *args): args1 = args def internal(*args): return f(*(args1 + args)) return inter...
19.556604
78
0.545586
262
2,073
4.28626
0.28626
0.017809
0.032057
0.033838
0.035619
0
0
0
0
0
0
0.009047
0.306802
2,073
105
79
19.742857
0.772443
0.027014
0
0.109589
0
0
0.044687
0
0
0
0
0
0
0
null
null
0
0.027397
null
null
0.027397
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
0
0
0
0
0
1
eefc2e95d04d1e10619a3cb3fe8a472e3a76f13a
690
py
Python
mint/modules/activations.py
remicongee/Mint
0f2db9b4216d8e61ec6b6892fd5baf962847581c
[ "MIT" ]
null
null
null
mint/modules/activations.py
remicongee/Mint
0f2db9b4216d8e61ec6b6892fd5baf962847581c
[ "MIT" ]
null
null
null
mint/modules/activations.py
remicongee/Mint
0f2db9b4216d8e61ec6b6892fd5baf962847581c
[ "MIT" ]
1
2020-12-02T09:02:55.000Z
2020-12-02T09:02:55.000Z
## Activation functions from .module import Module from ..utils import functional as F class ReLU(Module): def __init__(self, in_place=False): super(ReLU, self).__init__() self.in_place = in_place self.init_buffer() def init_buffer(self): self.buffer['activated'] = None ...
21.5625
49
0.592754
82
690
4.804878
0.378049
0.088832
0.111675
0.076142
0
0
0
0
0
0
0
0.002075
0.301449
690
32
50
21.5625
0.815353
0.075362
0
0
0
0
0.04252
0
0
0
0
0
0.055556
1
0.222222
false
0
0.111111
0
0.5
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
0
0
0
1
eefc51b8229cb41587ef71a58d9e82472148716d
1,419
py
Python
greatbigcrane/buildout_manage/recipes/mercurial.py
pnomolos/greatbigcrane
db0763706e1e8ca1f2bd769aa79c99681f1a967e
[ "Apache-2.0" ]
3
2015-11-19T21:35:22.000Z
2016-07-17T18:07:07.000Z
greatbigcrane/buildout_manage/recipes/mercurial.py
pnomolos/greatbigcrane
db0763706e1e8ca1f2bd769aa79c99681f1a967e
[ "Apache-2.0" ]
null
null
null
greatbigcrane/buildout_manage/recipes/mercurial.py
pnomolos/greatbigcrane
db0763706e1e8ca1f2bd769aa79c99681f1a967e
[ "Apache-2.0" ]
null
null
null
""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 agre...
33
72
0.725863
186
1,419
5.44086
0.516129
0.076087
0.050395
0.031621
0.051383
0
0
0
0
0
0
0.007024
0.197322
1,419
42
73
33.785714
0.881475
0.429175
0
0
0
0
0.05618
0
0
0
0
0
0
1
0.2
false
0
0.05
0.05
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
0
0
0
0
0
1
0
0
1
eefdcd3ea1af6682c969002f242acba638c23ea1
799
py
Python
e2e/codebuild/results_comment.py
hixio-mh/taskcat
a5d23a4b05592250c2ec0304d77571675628b00d
[ "Apache-2.0" ]
920
2016-12-03T01:41:25.000Z
2021-11-04T13:52:21.000Z
e2e/codebuild/results_comment.py
hixio-mh/taskcat
a5d23a4b05592250c2ec0304d77571675628b00d
[ "Apache-2.0" ]
544
2017-02-23T22:41:25.000Z
2021-11-03T23:02:25.000Z
e2e/codebuild/results_comment.py
hixio-mh/taskcat
a5d23a4b05592250c2ec0304d77571675628b00d
[ "Apache-2.0" ]
225
2016-12-11T13:36:21.000Z
2021-11-04T14:43:53.000Z
import os import sys import boto3 from github import Github SSM_CLIENT = boto3.client("ssm") GITHUB_REPO_NAME = os.environ.get("GITHUB_REPO_NAME", "") PR_NUMBER = os.environ.get("PR_NUMBER", "") FAILED = bool(int(sys.argv[2])) GITHUB_TOKEN = os.environ.get("GITHUB_TOKEN", "") if __name__ == "__main__": repo =...
30.730769
84
0.653317
116
799
4.25
0.422414
0.081136
0.11359
0.073022
0.10142
0.10142
0
0
0
0
0
0.00607
0.175219
799
25
85
31.96
0.742033
0
0
0
0
0
0.20776
0
0
0
0
0
0
1
0
false
0.052632
0.210526
0
0.210526
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
0
0
0
1
e10338cc76f582f3f2a03b933dc6086137bca50f
7,104
py
Python
v2ray/com/core/proxy/vmess/inbound/config_pb2.py
xieruan/v2bp
350b2f80d3a06494ed4092945804c1c851fdf1db
[ "MIT" ]
7
2020-06-24T07:15:15.000Z
2022-03-08T16:36:09.000Z
v2ray/com/core/proxy/vmess/inbound/config_pb2.py
xieruan/vp
350b2f80d3a06494ed4092945804c1c851fdf1db
[ "MIT" ]
null
null
null
v2ray/com/core/proxy/vmess/inbound/config_pb2.py
xieruan/vp
350b2f80d3a06494ed4092945804c1c851fdf1db
[ "MIT" ]
6
2020-07-06T06:51:20.000Z
2021-03-23T06:26:36.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: v2ray.com/core/proxy/vmess/inbound/config.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
39.248619
757
0.758164
934
7,104
5.498929
0.168094
0.047313
0.073598
0.098131
0.643886
0.609813
0.573209
0.561137
0.425039
0.425039
0
0.039911
0.111205
7,104
180
758
39.466667
0.773519
0.063063
0
0.572368
1
0.013158
0.265383
0.227471
0
0
0
0
0
1
0
false
0
0.032895
0
0.032895
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
0
0
0
1
e1068254019048e1b19e7e8d94638f8a3b8808de
1,350
py
Python
src/helpers/fix_test_data_for_roc.py
Iretha/IoT23-network-traffic-anomalies-classification
93c157589e8128e8d9d5091d93052b18cd3ac35d
[ "MIT" ]
9
2021-04-07T18:16:54.000Z
2021-12-08T16:49:03.000Z
src/helpers/fix_test_data_for_roc.py
Iretha/IoT-23-anomaly-detection
93c157589e8128e8d9d5091d93052b18cd3ac35d
[ "MIT" ]
2
2021-09-02T03:52:03.000Z
2021-11-15T11:32:55.000Z
src/helpers/fix_test_data_for_roc.py
Iretha/IoT23-network-traffic-anomalies-classification
93c157589e8128e8d9d5091d93052b18cd3ac35d
[ "MIT" ]
null
null
null
from numpy import sort from src.helpers.dataframe_helper import df_get, write_to_csv def add_missing_class_rows_to_test_data(train_data_path, test_data_path): __add_missing_classes(train_data_path, test_data_path) def __add_missing_classes(train_data_path, test_data_path): if train_data_path is None or test...
34.615385
110
0.718519
219
1,350
4.013699
0.296804
0.109215
0.088737
0.05802
0.208191
0.124005
0.095563
0.095563
0.095563
0
0
0.004521
0.180741
1,350
38
111
35.526316
0.790235
0.057037
0
0.083333
0
0
0.052506
0
0
0
0
0.026316
0
1
0.125
false
0
0.083333
0
0.291667
0.041667
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
0
0
1
e10f737d8a704aff53053429254515a89ebf061b
424
py
Python
backend/apps/lyusers/urls.py
lybbn/django-vue3-lyadmin
df8ed48971eb3e3da977e1fd0467b1230b56afe4
[ "MIT" ]
1
2022-03-01T07:20:36.000Z
2022-03-01T07:20:36.000Z
backend/apps/lyusers/urls.py
lybbn/django-vue3-lyadmin
df8ed48971eb3e3da977e1fd0467b1230b56afe4
[ "MIT" ]
null
null
null
backend/apps/lyusers/urls.py
lybbn/django-vue3-lyadmin
df8ed48971eb3e3da977e1fd0467b1230b56afe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Remark: 用户模块的路由文件 """ from django.urls import path, re_path from rest_framework import routers from apps.lyusers.views import UserManageViewSet system_url = routers.SimpleRouter() system_url.register(r'users', UserManageViewSet) urlpatterns = [ re_path('users/disableuser/(?P<pk>....
21.2
110
0.731132
51
424
5.941176
0.647059
0.089109
0
0
0
0
0
0
0
0
0
0.002646
0.108491
424
20
111
21.2
0.798942
0.096698
0
0
0
0
0.146277
0.079787
0
0
0
0
0
1
0
false
0
0.333333
0
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
0
0
0
1
0
0
0
0
1
e11c13c2da24636a124e7f9a0bd4c8ced1cf20aa
1,122
py
Python
src/foxdot/research/boudoir/180617_1936_chuchotement_pantophobique.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
4
2018-06-29T18:39:34.000Z
2021-06-20T16:44:29.000Z
src/foxdot/research/boudoir/180617_1936_chuchotement_pantophobique.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
null
null
null
src/foxdot/research/boudoir/180617_1936_chuchotement_pantophobique.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
null
null
null
# boudoir - chuchotement pantophobique # https://www.youtube.com/watch?v=KL2zW6Q5hWs # https://gist.github.com/jf-parent/c8ea7e54e30593af01512f4e21b54670 Scale.default = Scale.major Root.default = 0 Clock.bpm = 120 b1.reset() >> glass( [0], dur = 16, ).after(16, 'stop') def play1(): print('play1') p1...
20.4
68
0.496435
156
1,122
3.564103
0.455128
0.098921
0.010791
0
0
0
0
0
0
0
0
0.149936
0.298574
1,122
54
69
20.777778
0.556544
0.131016
0
0.045455
0
0
0.039135
0
0
0
0
0
0
1
0.068182
true
0
0
0
0.068182
0.068182
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
1
0
0
0
0
0
0
1
e121641fdd16503ebb092e218a41471693799a5f
3,362
py
Python
src/service/plugins/ssrs/ssr.py
awesome-archive/ssrs
29c6e02d08270b3d9ca2174f29d4d32733acfdb6
[ "Apache-2.0" ]
32
2018-05-09T06:08:34.000Z
2022-02-18T14:21:23.000Z
src/service/plugins/ssrs/ssr.py
awesome-archive/ssrs
29c6e02d08270b3d9ca2174f29d4d32733acfdb6
[ "Apache-2.0" ]
1
2019-08-08T07:24:31.000Z
2019-08-08T07:24:31.000Z
src/service/plugins/ssrs/ssr.py
awesome-archive/ssrs
29c6e02d08270b3d9ca2174f29d4d32733acfdb6
[ "Apache-2.0" ]
19
2018-08-02T08:11:05.000Z
2021-07-07T02:10:18.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- import base64 import json import copy import socket import subprocess import six class SSR: class Service: def __init__(self, conf): self.conf = conf def update(self, array): self.conf.update(array) def port_open(self...
34.659794
118
0.496133
359
3,362
4.551532
0.284123
0.079559
0.03978
0.02754
0.079559
0.025704
0
0
0
0
0
0.007816
0.391136
3,362
96
119
35.020833
0.790425
0.012493
0
0.139535
0
0
0.097679
0
0
0
0
0
0
1
0.081395
false
0.069767
0.069767
0
0.27907
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
0
0
0
1
e126ebf5b69520889633dea016ffe4b49b9b61da
922
py
Python
code2.py
cskurdal/VRSurfing
6d3dae816a59b5949cac29d60b05ed75616c97f9
[ "MIT" ]
null
null
null
code2.py
cskurdal/VRSurfing
6d3dae816a59b5949cac29d60b05ed75616c97f9
[ "MIT" ]
null
null
null
code2.py
cskurdal/VRSurfing
6d3dae816a59b5949cac29d60b05ed75616c97f9
[ "MIT" ]
null
null
null
import math from plotter import Plotter from plots import LinePlot import board import digitalio import busio import adafruit_sdcard import storage from adafruit_bitmapsaver import save_pixels def plot(): sines = list(math.sin(math.radians(x)) for x in range(0, 361, 4)) lineplot...
23.641026
71
0.659436
120
922
4.983333
0.5
0.046823
0
0
0
0
0
0
0
0
0
0.01532
0.221258
922
38
72
24.263158
0.817549
0.193059
0
0
0
0
0.057307
0
0
0
0
0
0
1
0.083333
false
0
0.375
0
0.458333
0.041667
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
0
0
1
0102028974c26fedb9d3e8e681861c033e610fbc
2,157
py
Python
tests/switchconfig/conftest.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/switchconfig/conftest.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/switchconfig/conftest.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING import pytest from . import CapturedOutput from utsc.switchconfig import config from prompt_toolkit.application import create_app_session from prompt_toolkit.input import create_pipe_input if TYPE_CHECKING: from .. import MockedUtil from pytest_mock import MockerFixture @p...
31.26087
103
0.696801
250
2,157
5.852
0.452
0.030759
0.02324
0.030075
0
0
0
0
0
0
0
0
0.202596
2,157
68
104
31.720588
0.850581
0.617988
0
0
0
0
0.044529
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.5
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
0
0
0
1
01044352dba301fc4c0e8b880755aef7cda79a1f
561
py
Python
page/models.py
Dynamicist-handa/EscuelaLingua
198abfcc14204d8ecd2706f2de2650293219662e
[ "Apache-2.0" ]
null
null
null
page/models.py
Dynamicist-handa/EscuelaLingua
198abfcc14204d8ecd2706f2de2650293219662e
[ "Apache-2.0" ]
null
null
null
page/models.py
Dynamicist-handa/EscuelaLingua
198abfcc14204d8ecd2706f2de2650293219662e
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.conf import settings from courses.models import Course # Create your models here. class Update(models.Model): user = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True ) course = models.ForeignKey(Course, on_...
26.714286
69
0.741533
71
561
5.676056
0.521127
0.049628
0.069479
0.104218
0.163772
0.163772
0
0
0
0
0
0.012987
0.176471
561
20
70
28.05
0.859307
0.124777
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.692308
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
0
1
0
0
1
0108aa0614cb046c0695b8425a9b7d179e4c447f
1,338
py
Python
code/get.py
tionn/holo-at-on
8bda6e73d94184fa6fde3c1d26640e96341ae2a2
[ "CC0-1.0" ]
null
null
null
code/get.py
tionn/holo-at-on
8bda6e73d94184fa6fde3c1d26640e96341ae2a2
[ "CC0-1.0" ]
null
null
null
code/get.py
tionn/holo-at-on
8bda6e73d94184fa6fde3c1d26640e96341ae2a2
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import io import urllib2 import string from BeautifulSoup import BeautifulSoup import pandas as pd import sys city_url = 'http://twblg.dict.edu.tw/holodict_new/index/xiangzhen_level1.jsp?county=1' def extract_items(base_url): html = urllib2.urlopen(base_url).read() ...
24.777778
89
0.672646
202
1,338
4.287129
0.475248
0.032333
0.027714
0.036952
0.140878
0.140878
0.140878
0.140878
0.140878
0.140878
0
0.009242
0.19133
1,338
54
90
24.777778
0.791128
0.112855
0
0
0
0.055556
0.237123
0
0
0
0
0
0
0
null
null
0
0.194444
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
0
0
0
0
0
0
1
01157eaf40b4347f7763196480bf6b81341c469b
5,374
py
Python
webapp/services/hexun_service.py
myfreshcity/mystock
3a8832e8c498128683b6af528da92d7fda32386d
[ "MIT" ]
2
2016-09-19T09:18:17.000Z
2022-02-16T14:55:51.000Z
webapp/services/hexun_service.py
myfreshcity/mystock
3a8832e8c498128683b6af528da92d7fda32386d
[ "MIT" ]
2
2020-04-29T13:01:45.000Z
2020-04-29T13:01:45.000Z
webapp/services/hexun_service.py
myfreshcity/mystock
3a8832e8c498128683b6af528da92d7fda32386d
[ "MIT" ]
2
2018-06-29T15:09:36.000Z
2019-09-05T09:26:06.000Z
import re import traceback import urllib2 import pandas as pd import json,random,time,datetime from bs4 import BeautifulSoup from pandas.tseries.offsets import YearEnd from sqlalchemy import text from webapp import db, app from webapp.models import FinanceBasic headers = {'User-Agent':'Mozilla/5.0 (Windows; U; Wind...
36.067114
128
0.595646
735
5,374
4.228571
0.304762
0.045045
0.028314
0.017696
0.233912
0.160232
0.111647
0.092986
0.092986
0.074968
0
0.025183
0.261072
5,374
148
129
36.310811
0.757492
0.025307
0
0.069565
0
0.017391
0.115745
0.008227
0
0
0
0
0
0
null
null
0
0.086957
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
0
0
0
0
0
0
1
011acc08c0fc9cd09faf7e3c06fdec11827adac8
434
py
Python
dataclazzes/playlist.py
navrudh/youtube-music-helper-scripts
7bae74d698e15e11bac427e42bd0a21e08163f88
[ "MIT" ]
null
null
null
dataclazzes/playlist.py
navrudh/youtube-music-helper-scripts
7bae74d698e15e11bac427e42bd0a21e08163f88
[ "MIT" ]
null
null
null
dataclazzes/playlist.py
navrudh/youtube-music-helper-scripts
7bae74d698e15e11bac427e42bd0a21e08163f88
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from dataclazzes.track import Track @dataclass class Playlist: """Class for storing playlist information.""" id: str title: str tracks: [Track] = field(default_factory=list) @staticmethod def from_raw(raw_playlists: list): return [ ...
22.842105
72
0.663594
48
434
5.916667
0.541667
0.084507
0
0
0
0
0
0
0
0
0
0
0.24424
434
18
73
24.111111
0.865854
0.089862
0
0
0
0
0.03856
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0.076923
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
0
0
0
0
0
1
0
0
1
0125022bc1c32fb48c4660789e204445cd4abb92
520
py
Python
pygeems/__init__.py
arkottke/pygeems
5bfb563dbc151dc7d7581c31de0061e564cf7d84
[ "MIT" ]
3
2019-01-11T04:44:29.000Z
2022-01-05T01:09:46.000Z
pygeems/__init__.py
arkottke/pygeems
5bfb563dbc151dc7d7581c31de0061e564cf7d84
[ "MIT" ]
null
null
null
pygeems/__init__.py
arkottke/pygeems
5bfb563dbc151dc7d7581c31de0061e564cf7d84
[ "MIT" ]
1
2021-02-21T17:29:21.000Z
2021-02-21T17:29:21.000Z
"""pyGEEMs: Geotechnical earthquake engineering models implemented in Python.""" import pathlib from pkg_resources import get_distribution import scipy.constants FPATH_DATA = pathlib.Path(__file__).parent / "data" KPA_TO_ATM = scipy.constants.kilo / scipy.constants.atm __author__ = "Albert Kottke" __copyright__ = "...
26
80
0.796154
64
520
5.953125
0.640625
0.110236
0
0
0
0
0
0
0
0
0
0.008734
0.119231
520
19
81
27.368421
0.823144
0.142308
0
0
0
0
0.140909
0
0
0
0
0
0
1
0
false
0
0.461538
0
0.461538
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
0
0
0
1
01347244fcb03a5c18ef357b962ba9072723419d
1,408
py
Python
test/SIT/Bootstrap/TestBootstrap.py
antonelloceravola/ToolBOSCore
b03414a867a9f0585e06bb8e4f299c4be1357f3a
[ "BSD-3-Clause" ]
null
null
null
test/SIT/Bootstrap/TestBootstrap.py
antonelloceravola/ToolBOSCore
b03414a867a9f0585e06bb8e4f299c4be1357f3a
[ "BSD-3-Clause" ]
null
null
null
test/SIT/Bootstrap/TestBootstrap.py
antonelloceravola/ToolBOSCore
b03414a867a9f0585e06bb8e4f299c4be1357f3a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # launches the unit testing # # Copyright (C) # Honda Research Institute Europe GmbH # Carl-Legien-Str. 30 # 63073 Offenbach/Main # Germany # # UNPUBLISHED PROPRIETARY MATERIAL. # ALL RIGHTS RESERVED. # # import os import tempfile import unittest from ToolBOSCo...
22.349206
87
0.665483
150
1,408
6.186667
0.64
0.064655
0.047414
0.060345
0
0
0
0
0
0
0
0.008396
0.238636
1,408
62
88
22.709677
0.857276
0.256392
0
0
0
0
0.050682
0
0
0
0
0
0
1
0.086957
false
0
0.304348
0
0.434783
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
0
0
0
1