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
acf96c2e5f68cbb6f2960ad7f579c019d5f63d96
10,801
py
Python
pm4pymdl/algo/mvp/gen_framework4/versions_discovery/classic.py
dorian1000/pm4py-mdl
71e0c2425abb183da293a58d31e25e50137c774f
[ "MIT" ]
null
null
null
pm4pymdl/algo/mvp/gen_framework4/versions_discovery/classic.py
dorian1000/pm4py-mdl
71e0c2425abb183da293a58d31e25e50137c774f
[ "MIT" ]
3
2021-07-07T15:32:55.000Z
2021-07-07T16:15:36.000Z
pm4pymdl/algo/mvp/gen_framework4/versions_discovery/classic.py
dorian1000/pm4py-mdl
71e0c2425abb183da293a58d31e25e50137c774f
[ "MIT" ]
null
null
null
import math from statistics import mean from pm4py.objects.conversion.log import converter from pm4pymdl.algo.mvp.utils import succint_mdl_to_exploded_mdl from collections import Counter def apply(df, parameters=None): if parameters is None: parameters = {} stream = get_stream_from_dataframe(df, pa...
46.96087
120
0.529673
1,494
10,801
3.641232
0.087015
0.101471
0.152206
0.1625
0.588971
0.513419
0.489338
0.38511
0.292647
0.237684
0
0.028648
0.276086
10,801
229
121
47.165939
0.667093
0
0
0.147783
0
0
0.192204
0.002037
0
0
0
0
0
1
0.024631
false
0
0.024631
0
0.073892
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
4a0611ba960682f9f602f3ce36035e3958c86894
538
py
Python
doc/scripts/runtime_hook_subclass.py
jvail/xarray-simlab
3e8cb81775868e3e7c6495489ba351567e0d7e42
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
48
2017-06-19T16:31:37.000Z
2021-04-26T04:42:48.000Z
doc/scripts/runtime_hook_subclass.py
rlange2/xarray-simlab
45359e99cbf6341464b02cb937618c051a58a31c
[ "BSD-3-Clause" ]
108
2017-06-26T12:22:10.000Z
2021-03-09T08:57:02.000Z
doc/scripts/runtime_hook_subclass.py
rlange2/xarray-simlab
45359e99cbf6341464b02cb937618c051a58a31c
[ "BSD-3-Clause" ]
10
2017-08-11T04:56:20.000Z
2021-03-01T16:46:55.000Z
# TODO: use sphinx ipython directive when issue fixed # https://github.com/ipython/ipython/issues/11362 import xsimlab as xs import time class PrintStepTime(xs.RuntimeHook): @xs.runtime_hook("run_step", "model", "pre") def start_step(self, model, context, state): self._start_time = time.time() ...
28.315789
69
0.684015
75
538
4.746667
0.52
0.089888
0.073034
0.089888
0.280899
0.140449
0
0
0
0
0
0.013514
0.174721
538
18
70
29.888889
0.788288
0.184015
0
0
0
0
0.192661
0
0
0
0
0.055556
0
1
0.2
false
0
0.2
0
0.5
0.1
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
4a09ff93b016bcb5b07031f8d333958d28355816
274
py
Python
t_Modefied_file.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
1
2018-03-01T02:42:52.000Z
2018-03-01T02:42:52.000Z
t_Modefied_file.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
t_Modefied_file.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
# _*_coding=utf-8 _*_ import fileinput import re p = re.compile(r'http[s]?://[w]{3}\.baidu\.com') for line in fileinput.input(r'a.txt',inplace=1): if re.search(p,line) is not None: print line.strip()+'\n', else: print line, print 'hello world'
16.117647
49
0.605839
45
274
3.6
0.755556
0.111111
0
0
0
0
0
0
0
0
0
0.013825
0.208029
274
16
50
17.125
0.732719
0.069343
0
0
0
0
0.199153
0.122881
0
0
0
0
0
0
null
null
0
0.222222
null
null
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
1
0
0
0
0
0
0
0
0
1
4a13b90b72707ed1d9f8adbae2efef4a90e9d28d
546
py
Python
src/storage/path_storage.py
dballesteros7/master-thesis-2015
8c0bf9a6eef172fc8167a30780ae0666f8ea2d88
[ "MIT" ]
null
null
null
src/storage/path_storage.py
dballesteros7/master-thesis-2015
8c0bf9a6eef172fc8167a30780ae0666f8ea2d88
[ "MIT" ]
null
null
null
src/storage/path_storage.py
dballesteros7/master-thesis-2015
8c0bf9a6eef172fc8167a30780ae0666f8ea2d88
[ "MIT" ]
null
null
null
from pymongo import MongoClient class PathStorage: def __init__(self): client = MongoClient() self.collection = client.flickrdata.paths def store_paths(self, paths): self.collection.insert_many(paths) def get_paths(self, city_name, bandwidth, min_unique_users, min_cluster_photos)...
28.736842
84
0.659341
61
546
5.540984
0.442623
0.12426
0.12426
0.150888
0.272189
0.177515
0
0
0
0
0
0
0.254579
546
18
85
30.333333
0.830467
0
0
0
0
0
0.095238
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.071429
0.428571
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
4a14f9fcb9385eee54747669194429b759fe55ec
4,460
py
Python
authdata/tests/test_models.py
mpassid/MPASSid-data
1885721366165c768f2b66513f9c124b8aeaadb5
[ "MIT" ]
null
null
null
authdata/tests/test_models.py
mpassid/MPASSid-data
1885721366165c768f2b66513f9c124b8aeaadb5
[ "MIT" ]
8
2018-05-03T05:39:38.000Z
2021-03-19T21:59:25.000Z
authdata/tests/test_models.py
mpassid/MPASSid-data
1885721366165c768f2b66513f9c124b8aeaadb5
[ "MIT" ]
1
2019-09-25T05:33:42.000Z
2019-09-25T05:33:42.000Z
# -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2014-2015 Haltu Oy, http://haltu.fi # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including withou...
31.188811
79
0.724664
601
4,460
5.317804
0.312812
0.175219
0.140801
0.047559
0.289424
0.263141
0.249374
0.224656
0.18398
0.16771
0
0.003221
0.164798
4,460
142
80
31.408451
0.854765
0.2713
0
0.362637
0
0
0.06919
0
0
0
0
0
0.538462
1
0.131868
false
0
0.032967
0
0.263736
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
4a1e02bfee2e634ff016a8dd4c0e6ce013c74e2b
2,697
py
Python
loginpass/_django.py
authlib/socialism
635823a78a2a92cf8630f9935aebb9afcccb8656
[ "BSD-3-Clause" ]
223
2018-04-23T14:48:17.000Z
2022-03-19T09:27:36.000Z
loginpass/_django.py
authlib/socialism
635823a78a2a92cf8630f9935aebb9afcccb8656
[ "BSD-3-Clause" ]
68
2018-04-22T13:55:25.000Z
2022-03-15T15:28:42.000Z
loginpass/_django.py
authlib/socialism
635823a78a2a92cf8630f9935aebb9afcccb8656
[ "BSD-3-Clause" ]
86
2018-04-24T21:09:26.000Z
2022-03-17T08:55:34.000Z
def create_django_urlpatterns(backend, oauth, handle_authorize): from authlib.integrations.django_client import DjangoRemoteApp from django.urls import path class RemoteApp(backend, DjangoRemoteApp): OAUTH_APP_CONFIG = backend.OAUTH_CONFIG token_name = '_loginpass_{}_token'.format(backend.NAM...
33.7125
75
0.664442
310
2,697
5.512903
0.232258
0.04096
0.038034
0.023406
0.21182
0.177882
0.087771
0.087771
0
0
0
0.001966
0.245458
2,697
79
76
34.139241
0.837838
0.007786
0
0.065574
0
0
0.066617
0.007859
0
0
0
0
0
1
0.081967
false
0.065574
0.081967
0
0.311475
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
4a1e14f7f9da4ce3ed8b032af73ee39d5bfb95a6
485
py
Python
webapp/track/models.py
drylikov/mappad.ru
98672ec4c880848aa865a6dbcd88c3b44cbc64e2
[ "MIT" ]
null
null
null
webapp/track/models.py
drylikov/mappad.ru
98672ec4c880848aa865a6dbcd88c3b44cbc64e2
[ "MIT" ]
null
null
null
webapp/track/models.py
drylikov/mappad.ru
98672ec4c880848aa865a6dbcd88c3b44cbc64e2
[ "MIT" ]
null
null
null
from datetime import datetime from webapp import db class Track(db.Model): __tablename__ = 'tracks' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(140)) timestamp = db.Column(db.DateTime, index=True, default=datetime.utcnow) user_id = db.Column(db.Integer, db.ForeignKey...
26.944444
75
0.680412
68
485
4.691176
0.529412
0.15047
0.188088
0.075235
0.119122
0
0
0
0
0
0
0.015
0.175258
485
17
76
28.529412
0.7825
0
0
0
0
0
0.049485
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0.083333
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4a1e3bcc14bbbfc5433c1012703fd242abc72cfe
1,487
py
Python
jobs/send_email_job.py
heavenbeing/stockleeks
e4b33d22a288d068db00770562d3b752fe4a6a58
[ "Apache-2.0" ]
4
2020-09-25T16:16:32.000Z
2021-07-07T09:39:16.000Z
jobs/send_email_job.py
heavenbeing/stockleeks
e4b33d22a288d068db00770562d3b752fe4a6a58
[ "Apache-2.0" ]
null
null
null
jobs/send_email_job.py
heavenbeing/stockleeks
e4b33d22a288d068db00770562d3b752fe4a6a58
[ "Apache-2.0" ]
null
null
null
# smtplib 用于邮件的发信动作 import smtplib import requests from email.mime.text import MIMEText # email 用于构建邮件内容 from email.header import Header # 用于构建邮件头 # 发信方的信息:发信邮箱,QQ 邮箱授权码 from_addr = 'heavenbeing@foxmail.com' password = 'vxmovadvviffbgbj' # 收信方邮箱 # to_addr = '1257358834@qq.com,heavenbeing@outlook.com,603331215@qq.com...
29.156863
126
0.706792
202
1,487
5.029703
0.430693
0.031496
0.055118
0.070866
0.258858
0.232283
0.232283
0.232283
0.232283
0.125984
0
0.027451
0.142569
1,487
50
127
29.74
0.769412
0.230666
0
0
0
0
0.386525
0.06117
0.038462
0
0
0
0
1
0
false
0.076923
0.153846
0
0.153846
0.076923
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
4a20eed33115e5cfd18ad5f4d80b913bd08607a8
483
py
Python
Videos/Skeleton-Training/pickle-pickle-translation.py
93TEI/3D_Action_Recognition
b648f4cd8e479872c0cd9488120ada18bc64e5ad
[ "MIT" ]
33
2018-05-22T08:35:59.000Z
2021-10-06T09:56:07.000Z
Videos/Skeleton-Training/pickle-pickle-translation.py
93TEI/3D_Action_Recognition
b648f4cd8e479872c0cd9488120ada18bc64e5ad
[ "MIT" ]
2
2018-09-19T19:32:19.000Z
2019-05-09T02:27:06.000Z
Videos/Skeleton-Training/pickle-pickle-translation.py
Naman-ntc/Action-Recognition
b648f4cd8e479872c0cd9488120ada18bc64e5ad
[ "MIT" ]
5
2018-05-06T20:48:38.000Z
2019-09-01T07:55:09.000Z
import numpy import pickle import torch labelDict = pickle.load(open('labelDict.pkl','rb')) trainDict = pickle.load(open('train_data.pkl'.'rb')) total_samples = len(trainDict) data = [None]*total_samples labels = np.zeros(total_samples) counter = 0 for k,v in trainDict: myk = int(k[5:]) mylab = labelDict[myk] ...
19.32
52
0.718427
72
483
4.75
0.513889
0.105263
0.081871
0
0
0
0
0
0
0
0
0.009412
0.120083
483
25
53
19.32
0.795294
0
0
0
0
0
0.121901
0
0
0
0
0
0
0
null
null
0
0.176471
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
4a225510a2083489b5b4a196ea4848288cb81e65
7,299
py
Python
ngix.py
CodingLi/test2
0e5c0047ee6cbc96e66a2e96fe32477ffb8a8a08
[ "Apache-2.0" ]
null
null
null
ngix.py
CodingLi/test2
0e5c0047ee6cbc96e66a2e96fe32477ffb8a8a08
[ "Apache-2.0" ]
null
null
null
ngix.py
CodingLi/test2
0e5c0047ee6cbc96e66a2e96fe32477ffb8a8a08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Exploit Title: nginx heap corruption # Date: 08/26/2010 # Author: aaron conole <apconole@yahoo.com> # Software Link: http://nginx.org/download/nginx-0.6.38.tar.gz # Version: <= 0.6.38, <= 0.7.61 # Tested on: BT4R1 running nginx 0.6.38 locally # CVE: 2009-2629 # # note: this was written and tes...
36.133663
360
0.626113
1,067
7,299
4.230553
0.376757
0.02016
0.022596
0.023926
0.103677
0.084626
0.017723
0.017723
0
0
0
0.069359
0.26716
7,299
201
361
36.313433
0.774537
0.413755
0
0.209524
0
0.009524
0.246799
0.129682
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.12381
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
4a24ea186e9967618d4d5543ceeb82aa5e761f9f
2,265
py
Python
ginga/misc/Future.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2015-01-05T14:46:14.000Z
2022-03-23T04:10:54.000Z
ginga/misc/Future.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
858
2015-01-17T01:55:12.000Z
2022-03-08T20:20:31.000Z
ginga/misc/Future.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
60
2015-01-14T21:59:07.000Z
2022-02-13T03:38:49.000Z
# # Future.py -- implementation of a computation placeholder object # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # # TODO: python finally has something like this. Use it instead? # import threading from . import Callback class TimeoutError(Exception): ...
25.738636
76
0.623841
280
2,265
4.957143
0.389286
0.030259
0.030259
0.024496
0.164265
0.164265
0.164265
0.118156
0.118156
0.118156
0
0.000617
0.284768
2,265
87
77
26.034483
0.856173
0.209713
0
0.2
0
0
0.040563
0
0
0
0
0.011494
0
1
0.18
false
0.02
0.04
0.06
0.38
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
4a264a2a68426f09fc7e7cac5dc0cf2dc55bdfa6
437
py
Python
AP1/calculadora.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
AP1/calculadora.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
AP1/calculadora.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
print('Calculadora') nro1 = int(input("Digite o primeiro número: ")) nro2 = int(input("Digite o segundo número: ")) print("Menu") print("1 - somar") print("2 - subtrair") print("3 - multiplicar") print("4 - divisao") operacao = int(input("Digite a opcao que deseja: ")) if operacao == 1: soma = nro1 + nro2 pri...
25.705882
52
0.640732
58
437
4.827586
0.517241
0.085714
0.15
0.107143
0.178571
0
0
0
0
0
0
0.03352
0.180778
437
17
53
25.705882
0.748603
0
0
0
0
0
0.369863
0
0
0
0
0
0
1
0
false
0
0
0
0
0.533333
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
0
1
0
1
c57c3a58f3065b32bc8c04f60758199f284eaea3
793
py
Python
Chapter11/web_07.py
vabyte/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
84
2018-08-09T09:30:03.000Z
2022-01-04T23:20:38.000Z
Chapter11/web_07.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
1
2019-11-04T18:57:40.000Z
2020-09-07T08:52:25.000Z
Chapter11/web_07.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
33
2018-09-26T11:05:55.000Z
2022-03-15T10:31:10.000Z
import os.path import socketserver from http.server import SimpleHTTPRequestHandler, HTTPServer class HTTPDirectoryRequestHandler(SimpleHTTPRequestHandler): SERVED_DIRECTORY = '.' def translate_path(self, path): path = super().translate_path(path) relpath = os.path.relpath(path) return...
28.321429
66
0.733922
78
793
7.346154
0.474359
0.031414
0
0
0
0
0
0
0
0
0
0.006116
0.175284
793
28
67
28.321429
0.870031
0
0
0
0
0
0.025189
0
0
0
0
0
0
1
0.095238
false
0.047619
0.142857
0
0.52381
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
0
0
1
0
0
1
c57fd5f2b95ae114cf8072270a44307b40a80357
155
py
Python
chapter8-list/case1.py
MyLanPangzi/py4e
af5cd5fa63956ff237f880a1f9dd0bfdd6b28930
[ "Apache-2.0" ]
null
null
null
chapter8-list/case1.py
MyLanPangzi/py4e
af5cd5fa63956ff237f880a1f9dd0bfdd6b28930
[ "Apache-2.0" ]
null
null
null
chapter8-list/case1.py
MyLanPangzi/py4e
af5cd5fa63956ff237f880a1f9dd0bfdd6b28930
[ "Apache-2.0" ]
null
null
null
arr = [1, 2, 3, 4, 5] print(arr) arr = [1, '2', 3.0, [3]] print(arr) strings = ['a', 'b', 'c'] nums = [1, 2, 3, 4] empty = [] print(strings, nums, empty)
15.5
27
0.490323
30
155
2.533333
0.466667
0.078947
0.118421
0.157895
0
0
0
0
0
0
0
0.114754
0.212903
155
9
28
17.222222
0.508197
0
0
0.25
0
0
0.025974
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
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
c581fe5a6ac0b00897c379e949a549dee4408604
400
py
Python
tests/test_parser.py
dwslab/pybpmn-parser
a04f567677f3d974f5a865223a9a8b0d6a30cee8
[ "MIT" ]
null
null
null
tests/test_parser.py
dwslab/pybpmn-parser
a04f567677f3d974f5a865223a9a8b0d6a30cee8
[ "MIT" ]
null
null
null
tests/test_parser.py
dwslab/pybpmn-parser
a04f567677f3d974f5a865223a9a8b0d6a30cee8
[ "MIT" ]
2
2021-07-21T13:26:59.000Z
2021-09-07T21:45:10.000Z
from pathlib import Path from pybpmn.parser import BpmnParser def test_parse_bpmn(): resource_path = Path(__file__).resolve().parent / "resources" bpmn_path = resource_path / "process.bpmn" img_path = resource_path / "process.jpg" parser = BpmnParser() ai = parser.parse_bpmn_img(bpmn_path, img_p...
26.666667
65
0.72
54
400
5.037037
0.481481
0.132353
0.117647
0.169118
0
0
0
0
0
0
0
0.003049
0.18
400
14
66
28.571429
0.82622
0
0
0
0
0
0.08
0
0
0
0
0
0.2
1
0.1
false
0
0.2
0
0.3
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
c58476cdb7e72463baf63e0d5bd116cc4ac80452
5,418
py
Python
app/forms.py
IgnacioSan22/sis-inf-project
4ce91356c20d362e06cfc5b5c41bbce23fed15fc
[ "MIT" ]
null
null
null
app/forms.py
IgnacioSan22/sis-inf-project
4ce91356c20d362e06cfc5b5c41bbce23fed15fc
[ "MIT" ]
null
null
null
app/forms.py
IgnacioSan22/sis-inf-project
4ce91356c20d362e06cfc5b5c41bbce23fed15fc
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, HiddenField, TextAreaField, IntegerField, RadioField, BooleanField, Field from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms.validators import ValidationError, DataRequired, Email, EqualT...
44.409836
148
0.696936
525
5,418
7.173333
0.300952
0.128518
0.047796
0.057355
0.523367
0.459373
0.428571
0.398566
0.398566
0.352363
0
0.014975
0.161868
5,418
121
149
44.77686
0.811715
0
0
0.439252
0
0
0.169989
0
0
0
0
0
0
1
0.028037
false
0.046729
0.046729
0
0.906542
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
c586367ebed7efcc05c5996fd104e00cec00468f
2,733
py
Python
images/models.py
acdh-oeaw/thunau
06e4d54f4553939ffba3c504088055c3807328c6
[ "MIT" ]
null
null
null
images/models.py
acdh-oeaw/thunau
06e4d54f4553939ffba3c504088055c3807328c6
[ "MIT" ]
6
2020-02-11T23:44:22.000Z
2021-12-13T19:44:56.000Z
images/models.py
acdh-oeaw/thunau
06e4d54f4553939ffba3c504088055c3807328c6
[ "MIT" ]
null
null
null
import os from django.db import models from django.conf import settings from django.core.urlresolvers import reverse from documents.models import Document try: base_url = settings.IIIF_BASE except: base_url = "https://iiif.acdh.oeaw.ac.at/" IIIF_PATH = "{}".format(base_url) def set_directory_path(instance, ...
30.032967
100
0.639224
344
2,733
4.912791
0.287791
0.037278
0.053254
0.042604
0.294675
0.257396
0.201183
0.146746
0.099408
0.099408
0
0.007619
0.231614
2,733
90
101
30.366667
0.797143
0
0
0.239437
0
0
0.061837
0.009513
0
0
0
0
0
1
0.15493
false
0.014085
0.070423
0.070423
0.535211
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
c586e3f0c620f5aa05715e0c71bd2c40ec166f16
376
py
Python
sizing/migrations/0008_rename_size_strategypositionrequest_weight.py
arnaudj/wagmi
7d8c52ff5a6742c733fd86a3253e161086c6ec76
[ "BSD-2-Clause" ]
11
2021-10-30T06:41:54.000Z
2022-03-28T17:56:58.000Z
sizing/migrations/0008_rename_size_strategypositionrequest_weight.py
arnaudj/wagmi
7d8c52ff5a6742c733fd86a3253e161086c6ec76
[ "BSD-2-Clause" ]
15
2021-11-03T06:32:59.000Z
2022-02-24T22:29:07.000Z
sizing/migrations/0008_rename_size_strategypositionrequest_weight.py
arnaudj/wagmi
7d8c52ff5a6742c733fd86a3253e161086c6ec76
[ "BSD-2-Clause" ]
5
2021-10-31T19:33:34.000Z
2021-11-04T22:18:30.000Z
# Generated by Django 3.2.8 on 2021-11-01 06:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sizing', '0007_strategy_exchange'), ] operations = [ migrations.RenameField( model_name='strategypositionrequest', old_name=...
19.789474
49
0.598404
38
376
5.789474
0.842105
0
0
0
0
0
0
0
0
0
0
0.071429
0.292553
376
18
50
20.888889
0.755639
0.119681
0
0
1
0
0.18541
0.136778
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
c590492219cfd55f9e1e11caca251a614dc58dc2
5,287
py
Python
src/two_heads/FeatureVolumeCacheSequence.py
lilin-hitcrt/OverlapNet
33088bf0c5cc8c2e607b630dc5d3d6054b9efb73
[ "MIT" ]
null
null
null
src/two_heads/FeatureVolumeCacheSequence.py
lilin-hitcrt/OverlapNet
33088bf0c5cc8c2e607b630dc5d3d6054b9efb73
[ "MIT" ]
null
null
null
src/two_heads/FeatureVolumeCacheSequence.py
lilin-hitcrt/OverlapNet
33088bf0c5cc8c2e607b630dc5d3d6054b9efb73
[ "MIT" ]
1
2020-11-22T03:28:06.000Z
2020-11-22T03:28:06.000Z
#!/usr/bin/env python3 # Developed by Xieyuanli Chen and Thomas Läbe # This file is covered by the LICENSE file in the root of this project. # A keras generator which generates batches out of cached feature volumes import os from keras.utils import Sequence import numpy as np class FeatureVolumeCacheSequence(Sequenc...
37.232394
93
0.669567
731
5,287
4.656635
0.262654
0.0802
0.049941
0.038778
0.186839
0.123972
0.097239
0.039365
0.032902
0.032902
0
0.014376
0.223756
5,287
141
94
37.496454
0.815058
0.288065
0
0.028571
1
0
0.050729
0
0
0
0
0
0
1
0.114286
false
0
0.042857
0.014286
0.257143
0.042857
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
c5942ec2e8c95df7429875d6027dc8191405ff07
4,241
py
Python
src/main.py
JohanWork/pytesturl
1e366b0e0b7fd19441ff316e64ce3da68015c260
[ "MIT" ]
1
2021-04-12T04:54:55.000Z
2021-04-12T04:54:55.000Z
src/main.py
JohanWork/url-test
1e366b0e0b7fd19441ff316e64ce3da68015c260
[ "MIT" ]
null
null
null
src/main.py
JohanWork/url-test
1e366b0e0b7fd19441ff316e64ce3da68015c260
[ "MIT" ]
null
null
null
import regex as re import os import requests import argparse import yaml import logging import time import multiprocessing from multiprocessing import Pool from typing import List requests.adapters.DEFAULT_RETRIES = 1 CWD = os.getcwd() # TODO check a regex that is fine to steal? def read_configs(config_file: str) ...
32.623077
139
0.615892
578
4,241
4.394464
0.295848
0.028346
0.03189
0.024409
0.040945
0
0
0
0
0
0
0.003875
0.269748
4,241
129
140
32.875969
0.816274
0.220938
0
0.098765
0
0
0.162986
0.025816
0
0
0
0.015504
0
1
0.061728
false
0
0.123457
0
0.234568
0.037037
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
c596ee7c0d4f196f1d9e7dd9868534cc196c9223
805
py
Python
oscar/lib/python2.7/site-packages/django/utils/html_parser.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/utils/html_parser.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/utils/html_parser.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.utils import six from django.utils.six.moves import html_parser as _html_parser try: HTMLParseError = _html_parser.HTMLParseError except AttributeError: # create a dummy class for Python 3.5+ where it's been removed class HTMLParseError(Exception): pass if six.PY3: class...
35
96
0.696894
105
805
5.12381
0.628571
0.111524
0.111524
0.111524
0
0
0
0
0
0
0
0.011401
0.237267
805
22
97
36.590909
0.864821
0.304348
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0.076923
0.153846
0
0.384615
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
c599586acdabde8196cf597429b65dd317bc6380
676
py
Python
project euler solutions/Problem_031a.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
null
null
null
project euler solutions/Problem_031a.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
4
2020-03-10T19:20:21.000Z
2021-06-07T15:39:48.000Z
project euler solutions/Problem_031a.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # "My solution" :D coins = (200, 100, 50, 20, 10, 5, 2, 1) def value(a): sum_coins = 0 for i in range(len(a)): sum_coins += a[i]*coins[i] return sum_coins def other_com(a): xbool = True i = -2 while xbool: if a[i] == 0: ...
18.777778
54
0.489645
106
676
3.04717
0.415094
0.024768
0.055728
0.068111
0
0
0
0
0
0
0
0.079545
0.349112
676
35
55
19.314286
0.654545
0.088757
0
0.230769
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.038462
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
c59cbbb0025a554ee9aa477396f7ebacda6b20dc
334
py
Python
ch05/get_running.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
5
2021-06-11T11:24:04.000Z
2022-03-22T03:22:57.000Z
ch05/get_running.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
null
null
null
ch05/get_running.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
10
2021-04-18T12:31:14.000Z
2022-03-28T07:21:16.000Z
from ncclient import manager import pprint conn_info = { "host": "<insert host>", "port": 830, # change port "username": "<insert username>", "password": "<insert password>", "hostkey_verify": False } device = manager.connect(**conn_info) conf = device.get_config(source='running').data_xml pprin...
20.875
51
0.676647
40
334
5.525
0.65
0.072398
0
0
0
0
0
0
0
0
0
0.010791
0.167665
334
16
52
20.875
0.784173
0.032934
0
0
0
0
0.285714
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
0.166667
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
c59d29622916355c04ad900ed721c6f6f1c29782
4,357
py
Python
library/service_element_facts.py
Forcepoint/fp-NGFW-SMC-ansible
47cafea1bef162e75f3632b969e996d53d636374
[ "Apache-2.0" ]
5
2019-11-19T07:23:01.000Z
2021-08-25T08:04:49.000Z
library/service_element_facts.py
Forcepoint/fp-NGFW-SMC-ansible
47cafea1bef162e75f3632b969e996d53d636374
[ "Apache-2.0" ]
2
2020-03-24T20:30:32.000Z
2020-09-15T09:02:44.000Z
library/service_element_facts.py
Forcepoint/fp-NGFW-SMC-ansible
47cafea1bef162e75f3632b969e996d53d636374
[ "Apache-2.0" ]
3
2020-03-24T20:32:29.000Z
2022-02-15T15:29:07.000Z
#!/usr/bin/python # Copyright (c) 2017-2019 Forcepoint ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: service_element_facts short_description: Facts about service elements in the SMC description: - Service elements c...
23.551351
105
0.619922
480
4,357
5.3875
0.341667
0.03867
0.044084
0.040217
0.142305
0.078886
0.051044
0
0
0
0
0.011935
0.288501
4,357
184
106
23.679348
0.822258
0.01905
0
0.261745
0
0
0.616393
0.054098
0
0
0
0
0
1
0.020134
false
0
0.006711
0
0.040268
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c5a2d854198ab28487a8e99463a336509edc7e81
2,218
py
Python
src/internal_exceptions/base_exceptions.py
ranjeethdelphix/mongo-plugin
268daa92e5924e0bee32162a72438a396658a6f4
[ "Apache-2.0" ]
1
2021-05-17T21:23:49.000Z
2021-05-17T21:23:49.000Z
src/internal_exceptions/base_exceptions.py
ranjeethdelphix/mongo-plugin
268daa92e5924e0bee32162a72438a396658a6f4
[ "Apache-2.0" ]
11
2020-05-21T04:18:50.000Z
2022-02-16T12:46:09.000Z
src/internal_exceptions/base_exceptions.py
ranjeethdelphix/mongo-plugin
268daa92e5924e0bee32162a72438a396658a6f4
[ "Apache-2.0" ]
10
2020-05-18T18:44:05.000Z
2021-02-23T17:24:39.000Z
# # Copyright (c) 2020 by Delphix. All rights reserved. # ####################################################################################################################### """ We are defining two base classes for two types of exceptions: one is related to database & the other one is for run-time errors in the pl...
47.191489
123
0.669973
250
2,218
5.756
0.428
0.084086
0.100069
0.133426
0.224461
0.224461
0.157748
0.157748
0.088951
0
0
0.002161
0.165464
2,218
46
124
48.217391
0.775257
0.354373
0
0.136364
0
0
0.076207
0
0
0
0
0
0
1
0.227273
false
0
0.045455
0.045455
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
c5a4438c266c9a9e5dfafd8cc86ab01520a7361e
4,409
py
Python
amplitude_python_sdk/v1/models/identify.py
Vaggelis-Sotiropoulos/amplitude-python-sdk
f260b2fdbd984f64db710cdaf45ae80b0535f19c
[ "MIT" ]
1
2022-03-02T02:37:05.000Z
2022-03-02T02:37:05.000Z
amplitude_python_sdk/v1/models/identify.py
Vaggelis-Sotiropoulos/amplitude-python-sdk
f260b2fdbd984f64db710cdaf45ae80b0535f19c
[ "MIT" ]
2
2021-04-28T01:43:56.000Z
2021-05-10T20:27:31.000Z
amplitude_python_sdk/v1/models/identify.py
Vaggelis-Sotiropoulos/amplitude-python-sdk
f260b2fdbd984f64db710cdaf45ae80b0535f19c
[ "MIT" ]
3
2021-04-24T00:40:11.000Z
2022-03-02T02:37:44.000Z
"""Models used to identify an individual user.""" import json from typing import Any, Optional, Dict, List from pydantic import BaseModel, Field # pylint: disable=no-name-in-module from ...common.models import DeviceInfo, LocationInfo, UserIdentifier class UserProperties(BaseModel): """ See <https://devel...
39.720721
97
0.693128
612
4,409
4.908497
0.27451
0.039947
0.053928
0.062916
0.354194
0.354194
0.339547
0.339547
0.339547
0.212716
0
0.000873
0.220458
4,409
110
98
40.081818
0.873145
0.47403
0
0.088889
0
0
0.053952
0
0
0
0
0
0
1
0.066667
false
0
0.088889
0.022222
0.622222
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
c5a83439f5fb8ceba7c371bdaed63f730af1ea6a
971
py
Python
data/read_scf.py
wayne927/vl2-scf
e04d8738e92333f546ec6ef4b4f61c7e87456aba
[ "MIT" ]
3
2016-04-07T19:05:02.000Z
2017-03-08T23:45:46.000Z
data/read_scf.py
wayne927/vl2-scf
e04d8738e92333f546ec6ef4b4f61c7e87456aba
[ "MIT" ]
null
null
null
data/read_scf.py
wayne927/vl2-scf
e04d8738e92333f546ec6ef4b4f61c7e87456aba
[ "MIT" ]
null
null
null
#!/usr/bin/python # reads an SCF file and prints the nmax, lmax, and # the first N coefficients in the file # Usage: read_scf.py filename N import struct as st import numpy as np import sys import os filename = sys.argv[1] num_coeffs = int(sys.argv[2]) file = open(filename, 'rb') dat = file.read(8) dat = st.unpa...
17.981481
52
0.652935
171
971
3.678363
0.432749
0.031797
0.034976
0.031797
0.038156
0.038156
0
0
0
0
0
0.033505
0.200824
971
53
53
18.320755
0.777062
0.298661
0
0
0
0
0.071429
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.107143
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
c5acc58ec76c8138cf024ac7b2abb7749795165d
491
py
Python
setup.py
waves-trading/aioredis_wrapper
fb466103b23b684f3ef8c42e2e02d06088f94ea0
[ "MIT" ]
null
null
null
setup.py
waves-trading/aioredis_wrapper
fb466103b23b684f3ef8c42e2e02d06088f94ea0
[ "MIT" ]
null
null
null
setup.py
waves-trading/aioredis_wrapper
fb466103b23b684f3ef8c42e2e02d06088f94ea0
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="aioredis_wrapper", version="1.5.1", author="Alex Shitik", author_email="salexs95@yandex.ru", description="Wrapper for aioredis library", packages=["aioredis_wrapper"], classifiers=[ "Programming Language :: Python :: 3", "License :: ...
24.55
49
0.615071
51
491
5.823529
0.72549
0.10101
0
0
0
0
0
0
0
0
0
0.029255
0.234216
491
19
50
25.842105
0.760638
0
0
0.111111
0
0
0.450102
0
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
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
c5b2283cba0d9f69903da7774eef5248df0b44e5
3,443
py
Python
quantas/citations.py
gfulian/quantas
3d1a35e89ce9753710dbade0159adbf481606408
[ "BSD-3-Clause" ]
null
null
null
quantas/citations.py
gfulian/quantas
3d1a35e89ce9753710dbade0159adbf481606408
[ "BSD-3-Clause" ]
null
null
null
quantas/citations.py
gfulian/quantas
3d1a35e89ce9753710dbade0159adbf481606408
[ "BSD-3-Clause" ]
null
null
null
""" This module contains some references that have be cited when using specific features of Quantas. """ def biblio_header(): msg = "{:_^80}\n".format("") msg += """ The methods employed for this Quantas run are described in the following list. Please, make sure to provide adequate citation of these reference...
32.17757
78
0.746152
491
3,443
5.213849
0.443992
0.01875
0.025
0.035547
0.448047
0.439844
0.432813
0.386328
0.351563
0.351563
0
0.086074
0.16991
3,443
106
79
32.481132
0.809657
0.027883
0
0.55
0
0
0.872417
0
0
0
0
0
0
1
0.0875
false
0
0.0125
0
0.1875
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c5b3968d04471c70b2d3a405d347e63a50727d68
367
py
Python
back-end/quiz/migrations/0002_score_score.py
Lukmanhakim112/guro
6be3448f076c28f5495252f8da91545553e79d01
[ "MIT" ]
null
null
null
back-end/quiz/migrations/0002_score_score.py
Lukmanhakim112/guro
6be3448f076c28f5495252f8da91545553e79d01
[ "MIT" ]
null
null
null
back-end/quiz/migrations/0002_score_score.py
Lukmanhakim112/guro
6be3448f076c28f5495252f8da91545553e79d01
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-29 07:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quiz', '0001_initial'), ] operations = [ migrations.AddField( model_name='score', name='score', field=mo...
19.315789
49
0.577657
39
367
5.384615
0.794872
0.085714
0
0
0
0
0
0
0
0
0
0.078125
0.302452
367
18
50
20.388889
0.742188
0.122616
0
0
1
0
0.08125
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
c5b6f97a5377217c1dc57e3366a964795a38b1ca
1,732
py
Python
oceanbolt/com/fleetmanagement_v3/types/__init__.py
oceanbolt/oceanbolt-python-sdk
c03c400fb7861a7918c6d18d39ad7a108a72baab
[ "MIT" ]
8
2021-04-15T08:43:55.000Z
2021-12-21T09:23:58.000Z
oceanbolt/com/fleetmanagement_v3/types/__init__.py
oceanbolt/oceanbolt-python-sdk
c03c400fb7861a7918c6d18d39ad7a108a72baab
[ "MIT" ]
null
null
null
oceanbolt/com/fleetmanagement_v3/types/__init__.py
oceanbolt/oceanbolt-python-sdk
c03c400fb7861a7918c6d18d39ad7a108a72baab
[ "MIT" ]
2
2022-01-16T11:43:51.000Z
2022-03-24T19:26:44.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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 o...
24.394366
74
0.707852
145
1,732
8.427586
0.648276
0.0491
0.021277
0.026187
0.617021
0.617021
0.617021
0.617021
0.617021
0.617021
0
0.006545
0.20612
1,732
70
75
24.742857
0.882182
0.328522
0
0
0
0
0.328684
0.063644
0
0
0
0
0
1
0
false
0
0.019231
0
0.019231
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c5c1cb1c03f4f890828f95d31622017cd279be85
379
py
Python
setup.py
valohai/ithin
dde5fc8336c63070ab6651a433e865cbd75730b9
[ "MIT" ]
null
null
null
setup.py
valohai/ithin
dde5fc8336c63070ab6651a433e865cbd75730b9
[ "MIT" ]
null
null
null
setup.py
valohai/ithin
dde5fc8336c63070ab6651a433e865cbd75730b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import find_packages, setup setup( name='ithin', version='0.0', entry_points={'console_scripts': ['ithin=ithin.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ 'click>=6.0', 'Pillow>=4.0',...
23.6875
62
0.598945
45
379
4.911111
0.711111
0.108597
0
0
0
0
0
0
0
0
0
0.023102
0.200528
379
15
63
25.266667
0.706271
0.055409
0
0
0
0
0.266854
0
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
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
c5c5b4992a610834c465fa4b2d3b4f9c1ea2b276
2,560
py
Python
docker/python/load_data_from_eventhub_and_process.py
wanted2/aci-project-template
fdc466b2fb2e1495c940360adc2a72023be406d8
[ "Apache-2.0" ]
null
null
null
docker/python/load_data_from_eventhub_and_process.py
wanted2/aci-project-template
fdc466b2fb2e1495c940360adc2a72023be406d8
[ "Apache-2.0" ]
null
null
null
docker/python/load_data_from_eventhub_and_process.py
wanted2/aci-project-template
fdc466b2fb2e1495c940360adc2a72023be406d8
[ "Apache-2.0" ]
null
null
null
from provision.main import parse_args from typing import Any, List from azure import eventhub from azure.cosmosdb import table import logging import json import torch import argparse import os import sys def create_logger(log_level: int = logging.DEBUG) -> logging.Logger: logger = logging.Logger(name="processor",...
25.098039
118
0.684375
355
2,560
4.842254
0.36338
0.027923
0.031414
0.031414
0.155905
0.129145
0.08377
0
0
0
0
0.002467
0.208203
2,560
101
119
25.346535
0.845585
0.233203
0
0.142857
0
0.040816
0.202703
0
0
0
0
0.009901
0
1
0.142857
false
0.102041
0.204082
0.020408
0.387755
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
c5cb5ad40413b82c80d9623f86dfa0febeb0de0a
1,850
py
Python
1636/slu.py
matrixjoeq/timus_solutions
8f5f33099bd51f5a40e342a18600b988f4ea31db
[ "MIT" ]
null
null
null
1636/slu.py
matrixjoeq/timus_solutions
8f5f33099bd51f5a40e342a18600b988f4ea31db
[ "MIT" ]
null
null
null
1636/slu.py
matrixjoeq/timus_solutions
8f5f33099bd51f5a40e342a18600b988f4ea31db
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' 1636. Penalty Time Time limit: 1.0 second Memory limit: 64 MB [Description] The ZZZ team failed once again. They took part in the contest in Yekaterinozavodsk and were the first to solve all the problems. They did it even before the monitor was frozen. However, in the tab...
34.259259
83
0.705946
315
1,850
4.130159
0.479365
0.023059
0.038432
0.018447
0.043044
0.043044
0.043044
0
0
0
0
0.025535
0.216757
1,850
53
84
34.90566
0.870255
0.020541
0
0
0
0
0.101449
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.117647
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
c5cbf9614439dfdae6e4ab29d1bc45fa6a2357be
1,291
py
Python
examples/tools/example_stanza.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
3
2020-04-11T14:12:45.000Z
2020-05-30T16:31:06.000Z
examples/tools/.ipynb_checkpoints/example_stanza-checkpoint.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
34
2020-03-20T19:36:40.000Z
2022-03-20T13:00:32.000Z
examples/tools/.ipynb_checkpoints/example_stanza-checkpoint.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
1
2020-09-05T06:44:15.000Z
2020-09-05T06:44:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from deepnlpf.pipeline import Pipeline # Types of data entries for processing. sentence = "I went to the bank to deposit my money." raw_text = "I went to the bank to deposit my money. This is a test sentence for stanza." path_dataset_1doc_1sent = "/home/fasr/Mestrado/de...
26.895833
116
0.662277
155
1,291
5.335484
0.445161
0.053204
0.077388
0.116082
0.52237
0.493349
0.419589
0.419589
0.241838
0.169287
0
0.012758
0.210689
1,291
47
117
27.468085
0.798822
0.061967
0
0
0
0.060606
0.677152
0.20447
0
0
0
0
0
1
0
false
0
0.030303
0
0.030303
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c5cf1054f72198c9d83427ba59895bd9ddc6fc5f
924
py
Python
tagtools/cli/quant.py
straightlab/tagtools
cca69faef68f055780c6a2e0d190b8e9eda5c622
[ "MIT" ]
null
null
null
tagtools/cli/quant.py
straightlab/tagtools
cca69faef68f055780c6a2e0d190b8e9eda5c622
[ "MIT" ]
null
null
null
tagtools/cli/quant.py
straightlab/tagtools
cca69faef68f055780c6a2e0d190b8e9eda5c622
[ "MIT" ]
null
null
null
from ..quant import Quantifier def add_subcommand_quant(subparsers): parser = subparsers.add_parser('quant') parser.set_defaults(func=quant) parser.add_argument('--version', action='version', version='1.0.0') parser.add_argument('inbam', help='tagged bam to quantifiy. Should be in compressed form') ...
38.5
94
0.720779
122
924
5.311475
0.401639
0.097222
0.183642
0.064815
0
0
0
0
0
0
0
0.003745
0.133117
924
24
95
38.5
0.805243
0.031385
0
0
0
0
0.255034
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.1875
0.0625
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
c5d9e8d9f0632664a76539acbe96d47a59ad9b84
1,209
py
Python
web/blueprints/infrastructure/tables.py
JuKu/pycroft
15595f9b4327da5c52c77174def73660226da7dc
[ "Apache-2.0" ]
null
null
null
web/blueprints/infrastructure/tables.py
JuKu/pycroft
15595f9b4327da5c52c77174def73660226da7dc
[ "Apache-2.0" ]
null
null
null
web/blueprints/infrastructure/tables.py
JuKu/pycroft
15595f9b4327da5c52c77174def73660226da7dc
[ "Apache-2.0" ]
null
null
null
from web.blueprints.helpers.table import BootstrapTable, Column class SubnetTable(BootstrapTable): def __init__(self, *a, **kw): super().__init__(*a, columns=[ Column('id', '#'), Column('description', 'Beschreibung'), Column('address', 'IP'), Column('gateway...
30.225
78
0.531017
111
1,209
5.495496
0.369369
0.111475
0.137705
0.163934
0.4
0.4
0.4
0.4
0.4
0.4
0
0.003456
0.282051
1,209
39
79
31
0.699309
0
0
0.483871
0
0
0.162945
0
0
0
0
0
0
1
0.129032
false
0
0.032258
0
0.290323
0.032258
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
c5dc18f89b45de9775adc2b8a274c796ee8a0622
4,537
py
Python
raiden/storage/utils.py
marcosmartinez7/lumino
2a5a74589aaf26172cee6ec23fde5f4fc1938a43
[ "MIT" ]
8
2019-06-12T14:50:06.000Z
2022-02-15T16:20:07.000Z
raiden/storage/utils.py
marcosmartinez7/lumino
2a5a74589aaf26172cee6ec23fde5f4fc1938a43
[ "MIT" ]
141
2019-06-18T13:04:08.000Z
2021-11-23T22:00:32.000Z
raiden/storage/utils.py
marcosmartinez7/lumino
2a5a74589aaf26172cee6ec23fde5f4fc1938a43
[ "MIT" ]
17
2019-05-21T18:09:05.000Z
2020-10-29T13:01:01.000Z
from collections import namedtuple class TimestampedEvent(namedtuple("TimestampedEvent", "wrapped_event log_time")): def __getattr__(self, item): return getattr(self.wrapped_event, item) DB_CREATE_SETTINGS = """ CREATE TABLE IF NOT EXISTS settings ( name VARCHAR[24] NOT NULL PRIMARY KEY, value T...
26.377907
147
0.728235
573
4,537
5.439791
0.223386
0.061598
0.050048
0.061598
0.330446
0.229066
0.110042
0.07828
0.044273
0.044273
0
0.000826
0.199471
4,537
171
148
26.532164
0.857379
0
0
0.27451
0
0.006536
0.760635
0.110646
0
0
0
0
0
1
0.006536
false
0.006536
0.006536
0.006536
0.026144
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c5e11a7c63ecac8893d904b04a732338e32132cf
5,627
py
Python
test_find_peaks_args.py
ngglasgow/clamp_ephys
60f1f490837939a0afcf9cf5bdd123fb51546269
[ "MIT" ]
null
null
null
test_find_peaks_args.py
ngglasgow/clamp_ephys
60f1f490837939a0afcf9cf5bdd123fb51546269
[ "MIT" ]
null
null
null
test_find_peaks_args.py
ngglasgow/clamp_ephys
60f1f490837939a0afcf9cf5bdd123fb51546269
[ "MIT" ]
null
null
null
import clamp_ephys import pandas as pd import os import scipy import matplotlib %matplotlib import matplotlib.pyplot as plt import numpy as np '''####################### SET PROPER PATH_TO_DATA_NOTES ########################## ''' data_path = os.path.join(os.getcwd(), 'test_data', 'p2_data_notes.csv') ''' ###########...
48.094017
158
0.69593
875
5,627
4.301714
0.338286
0.017535
0.016738
0.021254
0.154091
0.090595
0.079437
0.079437
0.063496
0.052604
0
0.026299
0.168829
5,627
116
159
48.508621
0.77849
0.057046
0
0
0
0.016393
0.093259
0.007853
0
0
0
0
0
0
null
null
0.032787
0.114754
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
c5e1f874bf1d1aaea347c8247a665b5674be4ddb
506
py
Python
examples/modelresourceexample/urls.py
max-arnold/django-rest-framework
ce5eb85082dd775bb5079ae7af91840fba7f9a6e
[ "BSD-2-Clause" ]
2
2017-12-05T15:32:58.000Z
2017-12-05T15:33:02.000Z
examples/modelresourceexample/urls.py
upgrade-drf/django-rest-framework-0.4
ce5eb85082dd775bb5079ae7af91840fba7f9a6e
[ "BSD-2-Clause" ]
null
null
null
examples/modelresourceexample/urls.py
upgrade-drf/django-rest-framework-0.4
ce5eb85082dd775bb5079ae7af91840fba7f9a6e
[ "BSD-2-Clause" ]
1
2020-12-18T11:24:55.000Z
2020-12-18T11:24:55.000Z
from django.conf.urls.defaults import patterns, url from djangorestframework.views import ListOrCreateModelView, InstanceModelView from modelresourceexample.resources import MyModelResource my_model_list = ListOrCreateModelView.as_view(resource=MyModelResource) my_model_instance = InstanceModelView.as_view(resource=My...
42.166667
81
0.800395
59
506
6.694915
0.508475
0.070886
0.111392
0.146835
0
0
0
0
0
0
0
0.004292
0.079051
506
11
82
46
0.843348
0
0
0
0
0
0.120553
0.045455
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
c5e3ec7616167bba5430e3d2d5a9d40e403fec29
469
py
Python
met_explore/forms.py
kmcluskey/FlyMet
aef5968ddf20bcfaf2c38fc623575430856415b9
[ "MIT" ]
1
2021-01-21T11:52:57.000Z
2021-01-21T11:52:57.000Z
met_explore/forms.py
kmcluskey/FlyMet
aef5968ddf20bcfaf2c38fc623575430856415b9
[ "MIT" ]
66
2020-09-09T14:43:36.000Z
2022-02-16T14:24:17.000Z
met_explore/forms.py
kmcluskey/FlyMet
aef5968ddf20bcfaf2c38fc623575430856415b9
[ "MIT" ]
null
null
null
from django import forms from django.core.mail import send_mail # make sure this is at the top if it isn't already # our new form class ContactForm(forms.Form): contact_name = forms.CharField(required=True) contact_email = forms.EmailField(required=True) content = forms.CharField( required=True, ...
26.055556
110
0.716418
67
469
4.940299
0.641791
0.108761
0.132931
0.1571
0
0
0
0
0
0
0
0
0.179104
469
18
110
26.055556
0.85974
0.130064
0
0
0
0
0.152709
0
0
0
0
0
0
1
0
false
0
0.2
0
0.6
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
c5f8492a8e4eeaec8e6b9681de546c91d6640d4b
284
py
Python
tools/dos2unix.py
bc-lee/utf8-action
ca23fbea5d3d1628fe60d72ebf41e5bd7603a20e
[ "MIT" ]
null
null
null
tools/dos2unix.py
bc-lee/utf8-action
ca23fbea5d3d1628fe60d72ebf41e5bd7603a20e
[ "MIT" ]
180
2020-10-01T02:56:14.000Z
2021-12-07T20:58:29.000Z
tools/dos2unix.py
bc-lee/utf8-action
ca23fbea5d3d1628fe60d72ebf41e5bd7603a20e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re,sys with open(sys.argv[1], "rb") as f: data = f.read().split(b"\n") with open(sys.argv[1], "wb") as fw: for index, line in enumerate(data): if index == len(data) -1 and not line: break fw.write(line.rstrip(b'\r')) fw.write(b'\n')
25.818182
42
0.598592
54
284
3.148148
0.62963
0.094118
0.129412
0.176471
0.188235
0
0
0
0
0
0
0.0131
0.193662
284
10
43
28.4
0.729258
0.070423
0
0
0
0
0.038023
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
6800d175d1aa856aa4420d082a19bc347e28c6c8
703
py
Python
1401-1500/1495-Leaf-Similar Trees/1495-Leaf-Similar Trees.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1401-1500/1495-Leaf-Similar Trees/1495-Leaf-Similar Trees.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1401-1500/1495-Leaf-Similar Trees/1495-Leaf-Similar Trees.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param root1: the first tree @param root2: the second tree @return: returns whether the leaf sequence is the same """ def leafSimila...
27.038462
60
0.526316
84
703
4.357143
0.464286
0.057377
0.054645
0.087432
0
0
0
0
0
0
0
0.013825
0.382646
703
25
61
28.12
0.829493
0.385491
0
0
0
0
0
0
0
0
0
0.04
0
1
0.2
false
0
0
0
0.4
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
6801e04500f0d98233799aa807607e4e3ced3b0d
2,079
py
Python
social_treatment/mailing.py
ScheinovOleja/RollerSite
bd2ae6ac9a8889876924ff536d57be8653c82945
[ "MIT" ]
null
null
null
social_treatment/mailing.py
ScheinovOleja/RollerSite
bd2ae6ac9a8889876924ff536d57be8653c82945
[ "MIT" ]
null
null
null
social_treatment/mailing.py
ScheinovOleja/RollerSite
bd2ae6ac9a8889876924ff536d57be8653c82945
[ "MIT" ]
null
null
null
import asyncio from aiogram import Bot, types from django.http import HttpResponse from rollercms.views import send_register_from_site, viber_send_order_to_user def send_order(phone, messenger_user=None, text=None, file=None): if messenger_user.messenger == 0: loop = asyncio.new_event_loop() bot...
41.58
117
0.694565
264
2,079
5.242424
0.314394
0.103324
0.07948
0.057803
0.566474
0.484104
0.432803
0.336705
0.336705
0.336705
0
0.037702
0.196248
2,079
49
118
42.428571
0.790545
0
0
0.463415
0
0
0.129389
0.087061
0
0
0
0
0
1
0.073171
false
0.073171
0.097561
0
0.195122
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
6805f5df2cab999310d8d8c19b9cc1aad693a90f
1,718
py
Python
csm_web/scheduler/management/commands/patchattendances.py
mudit2103/csm_web
3b7fd9ca7269ad4cb57bf264cf62a620e02d3780
[ "MIT" ]
null
null
null
csm_web/scheduler/management/commands/patchattendances.py
mudit2103/csm_web
3b7fd9ca7269ad4cb57bf264cf62a620e02d3780
[ "MIT" ]
null
null
null
csm_web/scheduler/management/commands/patchattendances.py
mudit2103/csm_web
3b7fd9ca7269ad4cb57bf264cf62a620e02d3780
[ "MIT" ]
null
null
null
from datetime import timedelta, date from django.core.management import BaseCommand from django.db import transaction, IntegrityError from scheduler.models import Profile, Attendance, Spacetime WEEKDAY_MAP = { number: pair[0] for number, pair in enumerate(Spacetime.DAY_OF_WEEK_CHOICES) } class Command(BaseComman...
39.953488
114
0.549476
161
1,718
5.757764
0.490683
0.083064
0.064725
0.07767
0.110032
0.110032
0.110032
0.110032
0.110032
0
0
0.002768
0.369034
1,718
42
115
40.904762
0.852399
0.050058
0
0.111111
0
0
0.066298
0
0
0
0
0.02381
0
1
0.027778
false
0
0.111111
0
0.194444
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
68091e4c3ca15647b4c36e2b64f2d6e6639556e0
338
py
Python
setup.py
lidyl/phicore
8872997467612a2b809c9a26b0f1c3b7e0d796b2
[ "CECILL-B" ]
1
2020-10-01T15:45:20.000Z
2020-10-01T15:45:20.000Z
setup.py
lidyl/phicore
8872997467612a2b809c9a26b0f1c3b7e0d796b2
[ "CECILL-B" ]
5
2018-05-29T12:47:36.000Z
2019-02-11T15:19:39.000Z
setup.py
lidyl/phicore
8872997467612a2b809c9a26b0f1c3b7e0d796b2
[ "CECILL-B" ]
2
2018-05-28T15:43:24.000Z
2018-05-29T13:28:47.000Z
# -*- coding: utf-8 -*- # CeCILL-B license LIDYL, CEA from setuptools import setup, find_packages import phicore setup( name='phicore', version=phicore.__version__, packages=find_packages(), author="LIDYL CEA", description="Spatio temporal laser metrology package", long_description=open('READM...
22.533333
58
0.704142
40
338
5.775
0.725
0.069264
0
0
0
0
0
0
0
0
0
0.003546
0.16568
338
14
59
24.142857
0.815603
0.14497
0
0
0
0
0.227273
0
0
0
0
0
0
1
0
true
0
0.2
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
1
0
0
0
0
0
0
1
680e23e7b59ee23ded2c2c8982285bc60db50830
353
py
Python
zoonado/protocol/sync.py
hulu316/zoonado
cb06102f95e7da9c0e418bb9e327045e012a1497
[ "Apache-2.0" ]
12
2016-04-14T09:55:38.000Z
2018-01-07T13:12:47.000Z
zoonado/protocol/sync.py
hulu316/zoonado
cb06102f95e7da9c0e418bb9e327045e012a1497
[ "Apache-2.0" ]
16
2016-07-21T09:45:38.000Z
2017-09-22T19:06:14.000Z
zoonado/protocol/sync.py
hulu316/zoonado
cb06102f95e7da9c0e418bb9e327045e012a1497
[ "Apache-2.0" ]
8
2016-07-21T09:06:37.000Z
2019-07-26T05:48:00.000Z
from __future__ import unicode_literals from .request import Request from .response import Response from .primitives import UString class SyncRequest(Request): """ """ opcode = 9 parts = ( ("path", UString), ) class SyncResponse(Response): """ """ opcode = 9 parts = ( ...
13.576923
39
0.586402
33
353
6.121212
0.484848
0.118812
0.118812
0.158416
0.227723
0
0
0
0
0
0
0.008065
0.29745
353
25
40
14.12
0.806452
0
0
0.428571
0
0
0.024169
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.714286
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
68110092170c248812d5ff7f46d4c0406750ccc9
1,959
py
Python
src/siamese_network_bw/graph.py
BradNeuberg/personal-photos-model
7486666d39a9625468a8c1834cfcf48b1c022115
[ "Apache-2.0" ]
28
2015-08-21T05:25:55.000Z
2021-01-28T02:39:55.000Z
src/siamese_network_bw/graph.py
BradNeuberg/personal-photos-model
7486666d39a9625468a8c1834cfcf48b1c022115
[ "Apache-2.0" ]
1
2016-01-18T12:42:42.000Z
2016-01-18T12:42:42.000Z
src/siamese_network_bw/graph.py
BradNeuberg/personal-photos-model
7486666d39a9625468a8c1834cfcf48b1c022115
[ "Apache-2.0" ]
9
2016-01-09T08:32:54.000Z
2021-11-20T04:34:25.000Z
import re import matplotlib.pyplot as plt import matplotlib.patches as mpatches from matplotlib.font_manager import FontProperties import constants def plot_results(training_details, validation_details, note=None): """ Generates a combined training/validation graph. """ print "\tPlotting results..." ...
36.277778
89
0.683002
266
1,959
4.890977
0.421053
0.021522
0.023059
0.029208
0.078401
0.041507
0.041507
0.041507
0
0
0
0.012338
0.172537
1,959
53
90
36.962264
0.790253
0.042369
0
0
0
0
0.161534
0.026148
0
0
0
0
0
0
null
null
0
0.135135
null
null
0.054054
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
6813cdd4c011b14ca21eddecb1893ca9d7f6eb2e
5,697
py
Python
users/views.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
users/views.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
5
2020-06-09T09:28:07.000Z
2020-06-12T13:36:52.000Z
users/views.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distr...
28.343284
86
0.605231
670
5,697
5.108955
0.264179
0.025708
0.044405
0.056091
0.244814
0.225825
0.187847
0.147531
0.147531
0.147531
0
0.005869
0.282254
5,697
200
87
28.485
0.831255
0.166052
0
0.345324
0
0
0.110922
0
0
0
0
0.005
0
1
0.05036
false
0.064748
0.057554
0
0.201439
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
a83917cf155b49cefd134c92a83db0f610dfd8c7
1,033
py
Python
chapter3/comprehension/comprehension.py
kssim/etude-1
0122eeba10ed71f2a4bf3da419ac6a5ca9505488
[ "Apache-2.0" ]
3
2018-06-12T05:30:59.000Z
2021-09-27T12:05:14.000Z
chapter3/comprehension/comprehension.py
partrita/python_effective_flow_control
0122eeba10ed71f2a4bf3da419ac6a5ca9505488
[ "Apache-2.0" ]
3
2019-01-24T12:13:18.000Z
2019-03-16T00:23:21.000Z
chapter3/comprehension/comprehension.py
partrita/python_effective_flow_control
0122eeba10ed71f2a4bf3da419ac6a5ca9505488
[ "Apache-2.0" ]
13
2018-05-11T06:35:49.000Z
2021-09-27T12:05:17.000Z
################################### # File Name : comprehension.py ################################### #!/usr/bin/python3 v_list = [1, 2, 3] v_dict_key = ["korea", "japen", "china"] v_dict_value = [82, 81, 86] def print_list_with_comprehension(): v_list_comprehension = [x*x for x in v_list] print (v_list_com...
21.978723
74
0.609874
146
1,033
3.90411
0.226027
0.087719
0.05614
0.05614
0.098246
0.098246
0.098246
0.098246
0.098246
0.098246
0
0.012136
0.202323
1,033
46
75
22.456522
0.679612
0.043562
0
0.064516
0
0
0.064481
0
0
0
0
0
0
1
0.16129
false
0
0
0
0.16129
0.548387
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
0
1
0
1
a848393dd283d8a3e31838c50a90eea301031165
317
py
Python
sktime/datatypes/_series_as_panel/__init__.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
1
2021-12-22T02:45:39.000Z
2021-12-22T02:45:39.000Z
sktime/datatypes/_series_as_panel/__init__.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
sktime/datatypes/_series_as_panel/__init__.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Module exports: Series/Panel conversions.""" from sktime.datatypes._series_as_panel._convert import ( convert_Panel_to_Series, convert_Series_to_Panel, convert_to_scitype, ) __all__ = [ "convert_Panel_to_Series", "convert_Series_to_Panel", "convert_to_scitype", ]
21.133333
56
0.722397
39
317
5.25641
0.435897
0.17561
0.136585
0.195122
0.546341
0.546341
0.546341
0.546341
0.546341
0.546341
0
0.003745
0.157729
317
14
57
22.642857
0.764045
0.201893
0
0
0
0
0.259109
0.186235
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a84a7687a48fc5217b7268e3239bef6765d4ce6a
651
py
Python
gram254/email.py
jmuema/instaclone254
71f36f7fe1200689c33c3dd75b3b87cd972d85db
[ "Unlicense" ]
2
2020-05-26T07:44:08.000Z
2021-07-22T10:07:29.000Z
gram/email.py
ClintonClin/instagram
e668b8ca7262a5f1864dc304127f82c4c25340f7
[ "Unlicense" ]
6
2020-06-05T19:40:45.000Z
2022-03-11T23:36:41.000Z
gram254/email.py
jmuema/instaclone254
71f36f7fe1200689c33c3dd75b3b87cd972d85db
[ "Unlicense" ]
2
2019-03-20T09:39:46.000Z
2019-03-21T14:43:41.000Z
from django.core.mail import EmailMessage from django.template.loader import render_to_string from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64_encode from .token import account_activation_token def activation_email(user, current_site, receiver): subject = 'Account Activat...
32.55
61
0.746544
81
651
5.777778
0.469136
0.08547
0.059829
0
0
0
0
0
0
0
0
0.007299
0.158218
651
19
62
34.263158
0.846715
0
0
0
0
0
0.093702
0.038402
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.4
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
a84f2955c4c221af1d14491ecd8e60b392d91b40
3,938
py
Python
openprocurement/auction/proxy.py
OrysiaDrabych/openprocurement.auction
d68b4aca7313dd4c7c13bd22c772a32a1b70d79f
[ "Apache-2.0" ]
23
2015-07-09T17:07:39.000Z
2020-11-14T11:23:39.000Z
openprocurement/auction/proxy.py
OrysiaDrabych/openprocurement.auction
d68b4aca7313dd4c7c13bd22c772a32a1b70d79f
[ "Apache-2.0" ]
23
2015-01-14T22:33:58.000Z
2018-02-08T16:31:20.000Z
openprocurement/auction/proxy.py
OrysiaDrabych/openprocurement.auction
d68b4aca7313dd4c7c13bd22c772a32a1b70d79f
[ "Apache-2.0" ]
27
2015-02-17T10:22:32.000Z
2021-06-08T06:50:45.000Z
from restkit.contrib.wsgi_proxy import HostProxy from flask import request, current_app as app from http_parser.util import IOrderedDict from Cookie import SimpleCookie from .utils import StreamWrapper from werkzeug.exceptions import NotFound def start_response_decorated(start_response_decorated): def inner(statu...
38.607843
111
0.617572
443
3,938
5.171558
0.297968
0.041903
0.030554
0.045395
0.204278
0.116107
0.116107
0.08206
0.08206
0.08206
0
0.003549
0.284408
3,938
101
112
38.990099
0.809439
0
0
0.11236
0
0
0.11214
0.011317
0
0
0
0
0
0
null
null
0
0.067416
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
a85159c73cb29c50cb0eddca4571aacb9ef467a2
460
py
Python
company/InfyTQ/dataStrucAlgo/05SET/selectioinSort.py
vikkastiwari/cpp-coding-questions
020790e1a3b26c7b24991427004730b3f0785c71
[ "MIT" ]
null
null
null
company/InfyTQ/dataStrucAlgo/05SET/selectioinSort.py
vikkastiwari/cpp-coding-questions
020790e1a3b26c7b24991427004730b3f0785c71
[ "MIT" ]
null
null
null
company/InfyTQ/dataStrucAlgo/05SET/selectioinSort.py
vikkastiwari/cpp-coding-questions
020790e1a3b26c7b24991427004730b3f0785c71
[ "MIT" ]
null
null
null
def select_sort(list): for i in range(len(list)): # Find the minimum element in remaining # unsorted array min_idx = i for j in range(i+1, len(list)): if list[min_idx] > list[j]: min_idx = j # Swap the found minimum element with # the fir...
24.210526
55
0.56087
69
460
3.637681
0.478261
0.119522
0.119522
0.167331
0
0
0
0
0
0
0
0.042345
0.332609
460
18
56
25.555556
0.775244
0.230435
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
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
a852b3e5c29fe95bca569ae993c06df9cb83d28b
1,654
py
Python
etlaas_stream/spec.py
etlaas/etlaas-stream
59f811807e0d639c8787c0676e39d5a8db20789f
[ "MIT" ]
null
null
null
etlaas_stream/spec.py
etlaas/etlaas-stream
59f811807e0d639c8787c0676e39d5a8db20789f
[ "MIT" ]
null
null
null
etlaas_stream/spec.py
etlaas/etlaas-stream
59f811807e0d639c8787c0676e39d5a8db20789f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, asdict from typing import Dict, List, Any class MessageType: SCHEMA = 'SCHEMA' RECORD = 'RECORD' BOOKMARKS = 'BOOKMARKS' ERROR = 'ERROR' @dataclass class Message: type: str def to_dict(self) -> Dict[str, Any]: return asdict(self) @dataclass class...
21.763158
76
0.63422
186
1,654
5.505376
0.182796
0.061523
0.087891
0.070313
0.43457
0.420898
0.353516
0.283203
0.238281
0.238281
0
0
0.270254
1,654
75
77
22.053333
0.848384
0
0
0.258621
0
0
0.015719
0
0
0
0
0
0
1
0.086207
false
0
0.034483
0.017241
0.517241
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
a8533494ae8873057077374108c100de6b4c2675
4,455
py
Python
batchglm/utils/random.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/utils/random.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/utils/random.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
import numpy as np # import scipy.stats # import scipy.special from scipy.special import gammaln try: import xarray as xr except ImportError: xr = None class NegativeBinomial: r""" Negative binomial distribution. This class supports re-parameterising, sampling and calculation of probabilities...
30.306122
118
0.549944
579
4,455
4.208981
0.214162
0.02462
0.044317
0.084941
0.379975
0.334428
0.32499
0.303652
0.271645
0.249487
0
0.004175
0.354882
4,455
146
119
30.513699
0.843772
0.298541
0
0.366197
0
0
0.124871
0
0
0
0
0
0
1
0.098592
false
0.126761
0.056338
0.028169
0.28169
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
a85c247942b7d7451737e3173fb59f4868e1a371
775
py
Python
pyroll/ui/reporter/base_plugins/filling_ratios_plot.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
pyroll/ui/reporter/base_plugins/filling_ratios_plot.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
pyroll/ui/reporter/base_plugins/filling_ratios_plot.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
import sys from typing import Sequence import numpy as np from pyroll.core import RollPass, Unit from ..reporter import Reporter from .. import utils @Reporter.hookimpl def sequence_plot(units: Sequence[Unit]): """Plot the filling ratios of all passes""" fig, ax = utils.create_sequence_plot(units) ax.se...
22.794118
55
0.628387
102
775
4.656863
0.558824
0.050526
0.071579
0
0
0
0
0
0
0
0
0.00531
0.270968
775
33
56
23.484848
0.835398
0.047742
0
0
0
0
0.04235
0
0
0
0
0
0
1
0.043478
false
0.086957
0.26087
0
0.347826
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
a85c9b0fcf701fc8d0bafb8533c8aae37f8b41a7
1,171
py
Python
Currency.py
ThomThio/CCCThree
dd9abba0dd28868ff746d856854a6e94b67599f4
[ "MIT" ]
null
null
null
Currency.py
ThomThio/CCCThree
dd9abba0dd28868ff746d856854a6e94b67599f4
[ "MIT" ]
null
null
null
Currency.py
ThomThio/CCCThree
dd9abba0dd28868ff746d856854a6e94b67599f4
[ "MIT" ]
null
null
null
class Currency(object): iso = "" name = "" units = "" buying = "" selling = "" vendor = "" available = True def __init__(self, iso, name, units, buying, selling, vendor=None): if vendor is None: self.iso = iso self.available = False else: self.iso = iso self.name = name self.units = units ...
29.275
186
0.675491
175
1,171
4.36
0.16
0.082569
0.057667
0.047182
0.311927
0.081258
0
0
0
0
0
0
0.192143
1,171
39
187
30.025641
0.806554
0.444919
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0
0.047619
0.52381
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
a85e01441f8cc72b3b87edf1ebed5d2919052fb1
3,804
py
Python
musictheorpy/notes.py
HoodieWhatie/musictheorpy
afd1c7115d29fb25f4e586d3662509c00d5b215b
[ "MIT" ]
null
null
null
musictheorpy/notes.py
HoodieWhatie/musictheorpy
afd1c7115d29fb25f4e586d3662509c00d5b215b
[ "MIT" ]
null
null
null
musictheorpy/notes.py
HoodieWhatie/musictheorpy
afd1c7115d29fb25f4e586d3662509c00d5b215b
[ "MIT" ]
null
null
null
from .interval_utils import _IntervalBuilder VALID_NOTES = ['A', 'B', 'C', 'D', 'E', 'F', 'G'] VALID_QUALIFIERS = ['', '#', '##', 'b', 'bb'] VALID_QUALIFIED_NAMES = [name + qualifier for name in VALID_NOTES for qualifier in VALID_QUALIFIERS] class Note: def __init__(self, qualified_name): """ :pa...
45.831325
121
0.645373
487
3,804
4.852156
0.234086
0.11003
0.079137
0.038934
0.383834
0.341938
0.229369
0.229369
0.195514
0.195514
0
0.001459
0.27918
3,804
82
122
46.390244
0.860321
0.368559
0
0.232558
0
0
0.071623
0
0
0
0
0
0
1
0.209302
false
0.023256
0.023256
0.093023
0.44186
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
a861acd616717ca32ac397c97e6b7889b7dde3fc
3,665
py
Python
examples/tca9555_pimoroni_rgb_base.py
lesamouraipourpre/Community_CircuitPython_TCA9555
3bb6e8eb07e44abee1bfb7ef771d48a39cfe3eee
[ "MIT", "MIT-0", "Unlicense" ]
null
null
null
examples/tca9555_pimoroni_rgb_base.py
lesamouraipourpre/Community_CircuitPython_TCA9555
3bb6e8eb07e44abee1bfb7ef771d48a39cfe3eee
[ "MIT", "MIT-0", "Unlicense" ]
null
null
null
examples/tca9555_pimoroni_rgb_base.py
lesamouraipourpre/Community_CircuitPython_TCA9555
3bb6e8eb07e44abee1bfb7ef771d48a39cfe3eee
[ "MIT", "MIT-0", "Unlicense" ]
null
null
null
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2021 James Carr # # SPDX-License-Identifier: Unlicense # A simple test for the Pimoroni RGB Base. # https://shop.pimoroni.com/products/pico-rgb-keypad-base # It reads the button presses and changes ...
36.287129
85
0.724966
524
3,665
4.937023
0.339695
0.092772
0.14225
0.173174
0.461538
0.425203
0.425203
0.19714
0.19714
0.19714
0
0.034506
0.193452
3,665
100
86
36.65
0.840663
0.309959
0
0.193548
0
0
0.185452
0.04956
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.16129
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
a862b5e2b6f0dc3a967da343ad9edf3c6c60ac74
5,392
py
Python
pytextdistance/distance.py
KanaeOhta/PyTextDistance
c5ab8258dfe6019c8090daca77a1aad2ef2305d6
[ "MIT" ]
2
2020-07-20T12:53:42.000Z
2020-12-19T13:19:37.000Z
pytextdistance/distance.py
KanaeOhta/PyTextDistance
c5ab8258dfe6019c8090daca77a1aad2ef2305d6
[ "MIT" ]
null
null
null
pytextdistance/distance.py
KanaeOhta/PyTextDistance
c5ab8258dfe6019c8090daca77a1aad2ef2305d6
[ "MIT" ]
null
null
null
import functools import multiprocessing import os import unicodedata from pytextdistance.outputfile import ExcelHandler, CsvHandler, TextFileHandler from pytextdistance.cylevenshtein import levenshtein, normalized_levenshtein from pytextdistance.cyjarowinkler import jaro_winkler from pytextdistance.cydameraule...
27.793814
83
0.599407
583
5,392
5.336192
0.22813
0.025715
0.024108
0.030537
0.306654
0.257152
0.199293
0.199293
0.167149
0.167149
0
0.022091
0.311573
5,392
193
84
27.937824
0.816002
0.018917
0
0.203125
0
0
0.02152
0
0
0
0
0
0
1
0.203125
false
0.015625
0.0625
0.039063
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
1
0
0
0
0
0
0
0
1
a862de441708f7688e4bff77730182a5bdf8ddd0
39,210
py
Python
PythonExporters/HydraExporter.py
acbauer/SimBuilderTemplates
0c5aa4574278afa860cff19d052fce33c95b5d3d
[ "BSD-2-Clause" ]
null
null
null
PythonExporters/HydraExporter.py
acbauer/SimBuilderTemplates
0c5aa4574278afa860cff19d052fce33c95b5d3d
[ "BSD-2-Clause" ]
null
null
null
PythonExporters/HydraExporter.py
acbauer/SimBuilderTemplates
0c5aa4574278afa860cff19d052fce33c95b5d3d
[ "BSD-2-Clause" ]
null
null
null
import smtk # Common data structures & functions ConfigData = type('ConfigData', (object,), dict()) def standard_section(attribute_type, title=None, group_name=None, comment=None): config = ConfigData() config.type = 'standard' config.attribute_type = attribute_type config.title = title config.grou...
33.256997
110
0.613491
4,697
39,210
4.954013
0.125399
0.02888
0.016116
0.024711
0.409773
0.334952
0.282823
0.237311
0.199278
0.17186
0
0.002495
0.274114
39,210
1,178
111
33.285229
0.815052
0.113211
0
0.410843
0
0
0.156353
0.005302
0
0
0
0.005942
0
0
null
null
0
0.001205
null
null
0.036145
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
a86653a2ded1a02e8308cbfcbc09c8866f95197d
578
py
Python
authentication/migrations/0003_customuser_location.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
authentication/migrations/0003_customuser_location.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
authentication/migrations/0003_customuser_location.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2020-07-23 08:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('regions', '0003_auto_20200723_1049'), ('authentication', '0002_customgroup_location'), ] operations = [ ...
27.52381
148
0.65917
64
578
5.828125
0.65625
0.064343
0.075067
0.117962
0
0
0
0
0
0
0
0.079823
0.219723
578
20
149
28.9
0.747228
0.077855
0
0
1
0
0.224105
0.090395
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
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
a86b3bb373fe1c7bd9dc5246a4ec2b0c22d431e7
721
py
Python
tests/rel_list_scan/test_rel_list_scan.py
ksunden/yaqc-bluesky
5884a66556383d921b343792578d9469e1873fcd
[ "BSD-3-Clause" ]
5
2020-07-12T18:29:48.000Z
2022-01-05T18:09:00.000Z
tests/rel_list_scan/test_rel_list_scan.py
ksunden/yaqc-bluesky
5884a66556383d921b343792578d9469e1873fcd
[ "BSD-3-Clause" ]
29
2020-08-27T01:11:23.000Z
2022-03-21T23:43:01.000Z
tests/rel_list_scan/test_rel_list_scan.py
ksunden/yaqc-bluesky
5884a66556383d921b343792578d9469e1873fcd
[ "BSD-3-Clause" ]
3
2020-07-11T21:48:58.000Z
2021-04-16T00:19:41.000Z
import pathlib import time import subprocess import yaqc_bluesky from yaqd_core import testing from bluesky import RunEngine from bluesky.plans import rel_list_scan __here__ = pathlib.Path(__file__).parent @testing.run_daemon_entry_point( "fake-triggered-sensor", config=__here__ / "triggered-sensor-config.toml"...
24.862069
83
0.753121
101
721
4.920792
0.445545
0.056338
0.088531
0.084507
0.205231
0.120724
0
0
0
0
0
0.030547
0.137309
721
28
84
25.75
0.768489
0
0
0.090909
0
0
0.15534
0.144244
0
0
0
0
0
1
0.045455
false
0
0.318182
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
0
1
0
0
0
0
1
a8710a20c2ceea078eaed27ab8c8afae8f7277bc
2,775
py
Python
flashcard/migrations/0001_initial.py
burun/Words-Memorizing
842a334ee41780cdd155a78d7faee4dd2b667c11
[ "MIT" ]
null
null
null
flashcard/migrations/0001_initial.py
burun/Words-Memorizing
842a334ee41780cdd155a78d7faee4dd2b667c11
[ "MIT" ]
null
null
null
flashcard/migrations/0001_initial.py
burun/Words-Memorizing
842a334ee41780cdd155a78d7faee4dd2b667c11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.AutoField(auto_cr...
34.6875
128
0.531892
252
2,775
5.702381
0.242063
0.053584
0.080028
0.111343
0.756437
0.756437
0.675017
0.597773
0.49826
0.368128
0
0.003765
0.33009
2,775
79
129
35.126582
0.769231
0.007568
0
0.630137
0
0
0.086119
0
0
0
0
0
0
1
0
false
0
0.027397
0
0.068493
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a87f18df8dc59b88e94e861754e47f2c307783e4
6,101
py
Python
python/Learning Files/python .py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
1
2020-10-06T01:20:07.000Z
2020-10-06T01:20:07.000Z
python/Learning Files/python .py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
null
null
null
python/Learning Files/python .py
angelopassaro/Hacktoberfest-1
21f90f5d49efba9b1a27f4d9b923f5017ab43f0e
[ "Apache-2.0" ]
null
null
null
# 4.5 """problem 1>>write a python code which compare data that takes as arguments two lists of integer each. Each lists consists of a month and a year, in that order. The function should return -1 if the frist date is earlier than the second date , 0 if both the dates are same , and 1 if the frist date is earlier t...
24.114625
143
0.656122
1,178
6,101
3.38455
0.235993
0.005016
0.017557
0.016052
0.266115
0.228493
0.187861
0.187861
0.187861
0.181339
0
0.087986
0.169153
6,101
253
144
24.114625
0.69856
0.425504
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
a8800e3e0acdb1ae4f2bccc1be035f5480784f7a
793
py
Python
App/server/Validator.py
disler/Kontact
5520fbe65f71a48f7e81029ce0cf4182c4848e1d
[ "MIT" ]
null
null
null
App/server/Validator.py
disler/Kontact
5520fbe65f71a48f7e81029ce0cf4182c4848e1d
[ "MIT" ]
null
null
null
App/server/Validator.py
disler/Kontact
5520fbe65f71a48f7e81029ce0cf4182c4848e1d
[ "MIT" ]
null
null
null
class Validator(object): """ Mock validation class wrapper """ class Kontact(object): """ Handles mock validation logic for 'kontacts' """ def __init__(self): self.MAX_FIELD_LENGTH = 10 self.REQUIRED_FIELDS = ["firstname", "lastname"] ...
30.5
89
0.533417
73
793
5.657534
0.506849
0.101695
0.058111
0.087167
0
0
0
0
0
0
0
0.004175
0.395965
793
26
90
30.5
0.858038
0.19546
0
0.166667
0
0
0.030576
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a886281f7cf1cafc0a28cf15fb428d5a5a4a035c
354
py
Python
RCN_for_CAPTCHA_v1.0/src/save_model.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
2
2021-02-20T15:43:43.000Z
2021-02-20T15:43:51.000Z
RCN_for_CAPTCHA_v1.0/src/save_model.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
null
null
null
RCN_for_CAPTCHA_v1.0/src/save_model.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
null
null
null
import shelve def save_model_to_local(model_factors, model_dir): file = shelve.open(model_dir) data_key = "my_data" file[data_key] = model_factors file.close() def load_model_from_local(model_dir): file = shelve.open(model_dir) data_key = "my_data" model_factors = file[data_key] file...
20.823529
50
0.711864
53
354
4.377358
0.339623
0.206897
0.103448
0.155172
0.37069
0.37069
0.37069
0.37069
0.37069
0.37069
0
0
0.194915
354
16
51
22.125
0.814035
0
0
0.5
0
0
0.039548
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.333333
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
a89ce6d4f686ef4e055e7a5c57d27b39ae2a6a03
611
py
Python
ntee/utils/tokenizer.py
studio-ousia/ntee
d69f017f1244f68495db2e96ae70e9ec44b6c32b
[ "Apache-2.0" ]
87
2017-08-16T09:00:18.000Z
2022-03-01T14:14:43.000Z
ntee/utils/tokenizer.py
studio-ousia/ntee
d69f017f1244f68495db2e96ae70e9ec44b6c32b
[ "Apache-2.0" ]
2
2018-01-02T21:00:31.000Z
2018-09-18T02:03:02.000Z
ntee/utils/tokenizer.py
studio-ousia/ntee
d69f017f1244f68495db2e96ae70e9ec44b6c32b
[ "Apache-2.0" ]
22
2017-09-04T20:45:01.000Z
2021-02-15T21:50:54.000Z
# -*- coding: utf-8 -*- import re class Token: __slots__ = ('text', 'span') def __init__(self, text, span): self.text = text self.span = span def __repr__(self): return '<Token %s>' % self.text.encode('utf-8') def __reduce__(self): return (self.__class__, (self.text...
21.821429
92
0.587561
81
611
4.049383
0.407407
0.121951
0.067073
0
0
0
0
0
0
0
0
0.004283
0.235679
611
27
93
22.62963
0.698073
0.03437
0
0
0
0
0.059524
0
0
0
0
0
0
0
null
null
0
0.0625
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
a8a249af99142512a82f780801bce7affd261991
565
py
Python
view/docker.py
LianGee/galio
f1e7e1944e53be09ee91252f73e6c572b5f07121
[ "MIT" ]
8
2020-05-21T16:00:07.000Z
2021-07-13T06:55:13.000Z
view/docker.py
LianGee/galio
f1e7e1944e53be09ee91252f73e6c572b5f07121
[ "MIT" ]
2
2020-06-16T16:32:34.000Z
2021-04-06T07:40:31.000Z
view/docker.py
LianGee/galio
f1e7e1944e53be09ee91252f73e6c572b5f07121
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : docker.py # @Author: zaoshu # @Date : 2020-04-19 # @Desc : from flask import Blueprint, request from common.response import Response from service.docker_service import DockerService docker_bp = Blueprint('docker', __name__) @docker_bp.route('/list/image') d...
24.565217
98
0.741593
76
565
5.315789
0.513158
0.059406
0.118812
0.084158
0.232673
0.232673
0.232673
0
0
0
0
0.018
0.115044
565
22
99
25.681818
0.79
0.187611
0
0
0
0
0.101545
0
0
0
0
0
0
1
0.2
false
0
0.3
0.2
0.7
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
a8a9094d896f7af399be3bfce5497dc990d65acc
1,909
py
Python
source/modulationtiming.py
JoeCool02/Wireless_Simulator
fcdc431220d46f652c437f6e7bfff20c5dc64740
[ "MIT" ]
null
null
null
source/modulationtiming.py
JoeCool02/Wireless_Simulator
fcdc431220d46f652c437f6e7bfff20c5dc64740
[ "MIT" ]
null
null
null
source/modulationtiming.py
JoeCool02/Wireless_Simulator
fcdc431220d46f652c437f6e7bfff20c5dc64740
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ File: SymbolDict Timing Test """ from modulation import * from symboldict import * import numpy as N import pylab as PL from time import * qm = bpskMod(samples = 2000) bm = qpskMod(samples = 2000) mm = mskMod(samples = 2000) sltbm = symbolLookupTable('rect', 'bpsk', 2000, .001, 1, 10000).s...
22.197674
74
0.682556
273
1,909
4.772894
0.267399
0.021489
0.032233
0.059094
0.382962
0.282425
0.173446
0.135073
0
0
0
0.086957
0.13253
1,909
85
75
22.458824
0.699879
0.010477
0
0.111111
0
0
0.096164
0
0
0
0
0
0
0
null
null
0
0.092593
null
null
0.037037
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
a8aacf4e441d3ab5abbdd0912d8afe56ed94cca6
6,187
py
Python
api/namex/resources/auto_analyse/paths/xpro_name_analysis/xpro_name_analysis.py
riyazuddinsyed/namex
c100ef4378794f509b738d38276e3b902d26067a
[ "Apache-2.0" ]
null
null
null
api/namex/resources/auto_analyse/paths/xpro_name_analysis/xpro_name_analysis.py
riyazuddinsyed/namex
c100ef4378794f509b738d38276e3b902d26067a
[ "Apache-2.0" ]
null
null
null
api/namex/resources/auto_analyse/paths/xpro_name_analysis/xpro_name_analysis.py
riyazuddinsyed/namex
c100ef4378794f509b738d38276e3b902d26067a
[ "Apache-2.0" ]
null
null
null
"""Requests used to support the namex API TODO: Fill in a larger description once the API is defined for V1 """ from flask import make_response, jsonify from flask_restplus import Namespace, Resource, cors from flask_jwt_oidc import AuthError from namex.utils.auth import cors_preflight from namex.utils.api_resource ...
40.175325
112
0.674479
665
6,187
6.103759
0.305263
0.036955
0.03252
0.019709
0.242424
0.200296
0.200296
0.15324
0.128603
0.128603
0
0.000873
0.259738
6,187
153
113
40.437909
0.885371
0.220139
0
0.159091
0
0
0.116691
0
0
0
0
0.019608
0
1
0.034091
false
0
0.136364
0
0.227273
0.011364
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
a8adbb3d6be2741956f9f35965d1584ee06fbe4b
493
py
Python
hw1_group2_kad2185_rjk2147_yc3240/hw1_package/scripts/publisher.py
CU-Humanoid2018Spring/Homework
21dd25affb9463e1d4097704536490b27f5d1694
[ "MIT" ]
null
null
null
hw1_group2_kad2185_rjk2147_yc3240/hw1_package/scripts/publisher.py
CU-Humanoid2018Spring/Homework
21dd25affb9463e1d4097704536490b27f5d1694
[ "MIT" ]
null
null
null
hw1_group2_kad2185_rjk2147_yc3240/hw1_package/scripts/publisher.py
CU-Humanoid2018Spring/Homework
21dd25affb9463e1d4097704536490b27f5d1694
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String def talker(): pub = rospy.Publisher('/hw1_time', String, queue_size=10) rospy.init_node('talker', anonymous=True) rate = rospy.Rate(1) # 1hz while not rospy.is_shutdown(): output_str = str(rospy.get_time()) rospy.loginfo...
24.65
61
0.647059
64
493
4.71875
0.6875
0.089404
0
0
0
0
0
0
0
0
0
0.013193
0.231237
493
19
62
25.947368
0.783641
0.048682
0
0
0
0
0.049251
0
0
0
0
0
0
1
0.0625
false
0.0625
0.125
0
0.1875
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
a8b1fff28339dd5bf9c44d941fb242f50d7f147e
1,985
py
Python
vivid/featureset/molecules.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
vivid/featureset/molecules.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
vivid/featureset/molecules.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os from typing import List import joblib import pandas as pd from vivid.core import AbstractFeature from vivid.utils import timer from .atoms import AbstractAtom class Molecule: def __init__(self, atoms: List[AbstractAtom], name=None): """ Args: atoms(list[AbstractAtom]): 使う ...
25.779221
99
0.639798
255
1,985
4.831373
0.321569
0.068182
0.017857
0.021104
0
0
0
0
0
0
0
0.002035
0.257431
1,985
76
100
26.118421
0.833786
0.042317
0
0.081633
0
0
0.017742
0
0
0
0
0
0
1
0.163265
false
0
0.142857
0.040816
0.55102
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
a8b3671843dc0c019dd0453c55b3d2b08a4de182
429
py
Python
saleor/payment/migrations/0019_payment_payment_intent.py
valcome-analytics/saleor
f41b5d0de897b3914fe8bfd19c4f0b3c15448fa0
[ "CC-BY-4.0" ]
null
null
null
saleor/payment/migrations/0019_payment_payment_intent.py
valcome-analytics/saleor
f41b5d0de897b3914fe8bfd19c4f0b3c15448fa0
[ "CC-BY-4.0" ]
null
null
null
saleor/payment/migrations/0019_payment_payment_intent.py
valcome-analytics/saleor
f41b5d0de897b3914fe8bfd19c4f0b3c15448fa0
[ "CC-BY-4.0" ]
null
null
null
# Generated by Django 3.0.6 on 2020-09-12 11:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payment', '0018_remove_payment_payment_intent'), ] operations = [ migrations.AddField( model_name='payment', name='p...
22.578947
75
0.620047
47
429
5.510638
0.765957
0.100386
0
0
0
0
0
0
0
0
0
0.06962
0.263403
429
18
76
23.833333
0.75
0.104895
0
0
1
0
0.162304
0.089005
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
a8b3b71ce6c6f4a593cb1b481e588f4093188700
1,348
py
Python
main.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
null
null
null
main.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
null
null
null
main.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
null
null
null
import struct import tuple_to_string as tp import get_bit as gb import get_vlv as gv import get_meta_event as gme f = open('data/bach_846.mid', 'rb') filedata = f.read() filetype = struct.unpack("BBBB", filedata[0:4]) str = tp.tuple_to_string(filetype) print str header_length = struct.unpack('>I', filedata[4:8]) forma...
25.923077
64
0.736647
223
1,348
4.251121
0.340807
0.088608
0.054852
0.066456
0.139241
0.044304
0.044304
0
0
0
0
0.036658
0.129822
1,348
51
65
26.431373
0.771526
0.079377
0
0.052632
0
0
0.062123
0
0
0
0.005177
0
0
0
null
null
0
0.131579
null
null
0.315789
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
a8ba4268886bb28ba99026b7478f22b78751ee1c
3,693
py
Python
gui/kivy/uix/dialogs/checkpoint_dialog.py
namuyan/electrum-fjc
1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2
[ "MIT" ]
1
2017-07-06T03:03:25.000Z
2017-07-06T03:03:25.000Z
gui/kivy/uix/dialogs/checkpoint_dialog.py
namuyan/electrum-fjc
1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/checkpoint_dialog.py
namuyan/electrum-fjc
1a5c4a582f0fcdbaeca2b721ee729f43cd7915a2
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from electrum_ltc.i18n import _ Builder.load_string(''' #:import _ electrum_ltc_gui.kivy.i18n._ <CheckpointDialog@Popup> id: popup title: _('Blockchain') size_hint: 1, 1 ...
34.194444
278
0.554292
422
3,693
4.656398
0.343602
0.036641
0.027481
0.025445
0.133842
0.059542
0.033588
0.033588
0.033588
0
0
0.020322
0.360412
3,693
107
279
34.514019
0.8116
0
0
0.31
0
0.03
0.70593
0.029245
0
0
0
0
0
1
0.02
false
0
0.06
0
0.1
0.01
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a8c0d739e355a445dfb886cd53b399dedfb3bc56
3,112
py
Python
core/prioritized_replay_buffer.py
geektoni/learning_programs_with_arguments
d9970396e7db631cb7515a628c74c744ece18c7a
[ "MIT" ]
null
null
null
core/prioritized_replay_buffer.py
geektoni/learning_programs_with_arguments
d9970396e7db631cb7515a628c74c744ece18c7a
[ "MIT" ]
null
null
null
core/prioritized_replay_buffer.py
geektoni/learning_programs_with_arguments
d9970396e7db631cb7515a628c74c744ece18c7a
[ "MIT" ]
null
null
null
import numpy as np class PrioritizedReplayBuffer(): ''' This class represents a replay buffer memory in which traces generated by the MCTS are stored. ''' def __init__(self, max_length, task_ids, p1=0.8): self.task_ids = task_ids self.memory_task = dict((task_id, {0: [], 1: []}) for ta...
37.047619
109
0.574871
455
3,112
3.663736
0.197802
0.057588
0.067187
0.043191
0.322136
0.279544
0.181764
0.144571
0.144571
0.068386
0
0.030345
0.311697
3,112
83
110
37.493976
0.747899
0.151028
0
0.075472
1
0
0.009964
0
0
0
0
0
0.018868
1
0.113208
false
0
0.018868
0.018868
0.226415
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
a8c419c8780a1126960eab98f7b14ae59debfede
4,855
py
Python
sleepdungeon/sprites/stone.py
robuf/sleepdungeon
d4b0b06eb5037b16ab5ded2a331763fe2df10ab1
[ "MIT" ]
6
2018-12-13T17:35:40.000Z
2020-02-22T21:53:01.000Z
sleepdungeon/sprites/stone.py
robuf/sleepdungeon
d4b0b06eb5037b16ab5ded2a331763fe2df10ab1
[ "MIT" ]
1
2018-11-21T06:14:13.000Z
2018-11-21T07:34:00.000Z
sleepdungeon/sprites/stone.py
robuf/sleepdungeon
d4b0b06eb5037b16ab5ded2a331763fe2df10ab1
[ "MIT" ]
1
2018-11-15T17:37:51.000Z
2018-11-15T17:37:51.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import pygame from ..render_context import RenderContext from ..base.context import Context from ..base.game_constants import SpriteType, Facing from ..base.sprite import Sprite from ..base.position import Position from ..res import IMG_DIR class Stone(Sprite): __...
29.424242
94
0.599382
566
4,855
4.872792
0.162544
0.078318
0.045685
0.052212
0.718637
0.69942
0.668963
0.626541
0.604061
0.604061
0
0.008033
0.307724
4,855
164
95
29.603659
0.812556
0.009063
0
0.523077
0
0
0.016428
0.012269
0
0
0
0
0
1
0.130769
false
0.015385
0.053846
0.046154
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a8d22dec23c6a42c693e8a3eab65a3e8b85a3082
722
py
Python
admin_sso/admin.py
stayqrious/django-admin-sso
803d0a31005d06ad4a1063e5a0d0526c9d5791bb
[ "BSD-3-Clause" ]
null
null
null
admin_sso/admin.py
stayqrious/django-admin-sso
803d0a31005d06ad4a1063e5a0d0526c9d5791bb
[ "BSD-3-Clause" ]
null
null
null
admin_sso/admin.py
stayqrious/django-admin-sso
803d0a31005d06ad4a1063e5a0d0526c9d5791bb
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.urls import path from admin_sso import settings from admin_sso.models import Assignment class AssignmentAdmin(admin.ModelAdmin): list_display = ["__str__", "user", "weight"] raw_id_fields = ["user"] def get_urls(self): from admin_sso.views import end,...
26.740741
72
0.684211
97
722
4.814433
0.463918
0.085653
0.077088
0
0
0
0
0
0
0
0
0
0.193906
722
26
73
27.769231
0.802406
0
0
0
0
0
0.098338
0
0
0
0
0
0
1
0.058824
false
0
0.294118
0
0.588235
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
a8d8f203b63aa8094fba22e6eed811e0650b6e50
409
py
Python
01-aluguel_carro.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
01-aluguel_carro.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
01-aluguel_carro.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
# programa que pergunte a quantidade de Km percorridos por um carro alugado e a quantidade de dias. # Calcule o preço a pagar, sabendo que o carro custa R$ 60 por dia e 0.15 por km rodado km = float(input('Quantidade de km percorrido: ')) dias = int(input('Quantidade de dias do aluguel: ')) preco_a_pagar = (dias * 60...
45.444444
99
0.713936
74
409
3.891892
0.567568
0.166667
0.090278
0
0
0
0
0
0
0
0
0.032836
0.180929
409
9
100
45.444444
0.826866
0.447433
0
0
0
0
0.446429
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
763cccd61b3bdf74ed3cf9f0a2d51a34158f1fc0
472
py
Python
train_math_cacu.py
yanssy/xiaozhao
eadc3ca493548c9a624e625875fa4cfa831f2df0
[ "MIT" ]
null
null
null
train_math_cacu.py
yanssy/xiaozhao
eadc3ca493548c9a624e625875fa4cfa831f2df0
[ "MIT" ]
null
null
null
train_math_cacu.py
yanssy/xiaozhao
eadc3ca493548c9a624e625875fa4cfa831f2df0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ 今天上课,老师教了小易怎么计算加法和乘法,乘法的优先级大于加法,但是如果一个运算加了括号,那么它的优先级是最高的。例如: 1 1+2*3=7 2 1*(2+3)=5 3 1*2*3=6 4 (1+2)*3=9 现在小易希望你帮他计算给定3个数a,b,c,在它们中间添加"+", "*", "(", ")"符号,能够获得的最大值。 """ def max2(a, b): return max(a+b, a*b) def max3(a, b, c): return max(max2(max2(a, b), c...
17.481481
60
0.563559
88
472
2.920455
0.522727
0.054475
0.046693
0.054475
0
0
0
0
0
0
0
0.075916
0.190678
472
26
61
18.153846
0.596859
0.086864
0
0
0
0
0.031873
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
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
763d600db37bf941c4f1e4fe8d76ad5cc647b3f1
6,267
py
Python
pysnmp/HP-ICF-RELOAD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HP-ICF-RELOAD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HP-ICF-RELOAD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HP-ICF-RELOAD-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-RELOAD-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:22:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
104.45
802
0.745971
728
6,267
6.418956
0.207418
0.014552
0.010914
0.014552
0.344104
0.234539
0.228975
0.228975
0.228975
0.228975
0
0.086511
0.096218
6,267
59
803
106.220339
0.738524
0.052338
0
0.083333
0
0
0.18516
0.00742
0
0
0
0
0
1
0
false
0
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
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76407e162edb53bcb6b46c9c2390f3ec4413b282
1,216
py
Python
scripts/tests/testprec.py
paulscottrobson/6502-basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
3
2021-09-30T19:34:11.000Z
2021-10-31T06:55:50.000Z
scripts/tests/testprec.py
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
null
null
null
scripts/tests/testprec.py
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
1
2021-12-07T21:58:44.000Z
2021-12-07T21:58:44.000Z
# ***************************************************************************** # ***************************************************************************** # # Name: testprec.py # Author: Paul Robson (paul@robsons.org.uk) # Date: 27th February 2021 # Purpose: Precedence test classes. # # ********************...
31.179487
79
0.363487
120
1,216
3.616667
0.466667
0.14977
0.096774
0
0
0
0
0
0
0
0
0.026465
0.129934
1,216
38
80
32
0.383743
0.501645
0
0
0
0
0.056122
0
0
0
0
0
0.055556
1
0.111111
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76440e3f3f7c4a85bd5510dc15e91ccc906e6efa
11,359
py
Python
src/udpnecho/__init__.py
vang1ong7ang/udpnecho
2e18ee8237b91a9f8ab299eeaea5a6029b9c6a40
[ "MIT" ]
null
null
null
src/udpnecho/__init__.py
vang1ong7ang/udpnecho
2e18ee8237b91a9f8ab299eeaea5a6029b9c6a40
[ "MIT" ]
null
null
null
src/udpnecho/__init__.py
vang1ong7ang/udpnecho
2e18ee8237b91a9f8ab299eeaea5a6029b9c6a40
[ "MIT" ]
null
null
null
"""udpnecho.""" def main(): """Execute udpnecho.""" from fileinput import input from re import sub from sys import stdout from .pinyin2hanzi import DefaultHmmParams from .pinyin2hanzi import viterbi hmm = DefaultHmmParams() def f(x): data = x.group(0) data = [mapping[...
16.180912
69
0.266221
1,168
11,359
2.589041
0.898116
0.010582
0.01455
0
0
0
0
0
0
0
0
0.001257
0.369663
11,359
701
70
16.203994
0.421089
0.002377
0
0
0
0
0.240703
0
0
0
0
0
0
1
0.00289
false
0
0.007225
0
0.011561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
764989283db7164e713fbb093fcfc908370c2869
7,192
py
Python
autokeras/text/text_supervised.py
Huiqing666/autokeras
8c6ff435f82e8a7bf1cdd0fc8fdb499fab88c991
[ "MIT" ]
1
2021-02-05T14:34:06.000Z
2021-02-05T14:34:06.000Z
autokeras/text/text_supervised.py
Huiqing666/autokeras
8c6ff435f82e8a7bf1cdd0fc8fdb499fab88c991
[ "MIT" ]
null
null
null
autokeras/text/text_supervised.py
Huiqing666/autokeras
8c6ff435f82e8a7bf1cdd0fc8fdb499fab88c991
[ "MIT" ]
1
2020-02-13T21:36:22.000Z
2020-02-13T21:36:22.000Z
# coding=utf-8 # Original work Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # Modified work Copyright 2019 The AutoKeras team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fi...
34.743961
119
0.668103
903
7,192
5.13732
0.284607
0.019401
0.016814
0.023281
0.271179
0.217288
0.217288
0.172882
0.162104
0.143997
0
0.005236
0.256396
7,192
206
120
34.912621
0.862191
0.31243
0
0.47
0
0
0.02795
0
0
0
0
0
0
1
0.16
false
0.08
0.13
0.04
0.38
0.03
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
764a09963aab1d697df5775dc3ed7103c4ca348a
1,006
py
Python
src/api/receipts/entities.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
2
2020-10-15T15:16:08.000Z
2020-11-06T10:41:13.000Z
src/api/receipts/entities.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
1
2020-11-14T19:40:14.000Z
2020-11-14T19:40:14.000Z
src/api/receipts/entities.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields from sqlalchemy import Column, Integer, Float, ForeignKey from sqlalchemy.orm import relationship from src.api import db from src.shared.entity import Base from ..fundings.entities import FundingSchema class Receipt(Base, db.Model): __tablename__ = 'recette' id_r = Col...
29.588235
74
0.701789
135
1,006
4.992593
0.348148
0.026706
0.041543
0.026706
0
0
0
0
0
0
0
0
0.197813
1,006
33
75
30.484848
0.835192
0
0
0
0
0
0.029821
0
0
0
0
0
0
1
0.038462
false
0
0.230769
0
0.807692
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
7654ebe745ae3fe68684f85e2f57dabea220f3e9
6,487
py
Python
keyboard.py
killalea/digital-keyboard
0693f7a1f31ef3049f12194c8d5ecb912c983475
[ "MIT" ]
2
2020-05-13T08:41:25.000Z
2020-08-26T16:29:13.000Z
keyboard.py
Lohitha-20/digital-keyboard
0693f7a1f31ef3049f12194c8d5ecb912c983475
[ "MIT" ]
2
2018-12-09T12:39:55.000Z
2019-03-27T20:55:05.000Z
keyboard.py
Lohitha-20/digital-keyboard
0693f7a1f31ef3049f12194c8d5ecb912c983475
[ "MIT" ]
1
2020-05-08T03:17:04.000Z
2020-05-08T03:17:04.000Z
from PyQt5.QtCore import QCoreApplication from PyQt5.QtCore import Qt import constants from sound import Sound from db import db class Keyboard(object): def __init__(self, shortcutMappings): # self.DigitalInstrumentWidget = DigitalInstrumentWidget() self.sound = Sound() self.mapping_db = d...
32.113861
84
0.600432
765
6,487
4.980392
0.219608
0.034646
0.029396
0.022047
0.193176
0.149606
0.094488
0.094488
0.094488
0.072441
0
0.007505
0.322183
6,487
202
85
32.113861
0.858995
0.129644
0
0.255474
0
0
0.044183
0
0
0
0
0
0
0
null
null
0
0.036496
null
null
0.116788
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
7658eea7f81c0a35bc79cfee5116dfa2389449a6
6,713
py
Python
convert_use/model.py
setu4993/convert-use-tf-pytorch
8687abb61d10087a57dafdf909a3fea559071891
[ "MIT" ]
3
2020-10-14T17:12:13.000Z
2022-02-20T13:31:57.000Z
convert_use/model.py
setu4993/convert-use-tf-pytorch
8687abb61d10087a57dafdf909a3fea559071891
[ "MIT" ]
3
2020-08-31T06:19:34.000Z
2022-03-22T04:48:15.000Z
convert_use/model.py
setu4993/convert-use-tf-pytorch
8687abb61d10087a57dafdf909a3fea559071891
[ "MIT" ]
null
null
null
import torch from torch import nn class Embeddings(nn.Module): def __init__(self): self.embedding = nn.Embedding(128010, 512) # ! Recheck. def forward(self): raise NotImplementedError class EncoderDNN(nn.Module): def __init__(self): super().__init__() self.DNN = DNN() ...
27.4
87
0.6547
801
6,713
5.139825
0.123596
0.062181
0.045421
0.061938
0.440612
0.335681
0.218849
0.199903
0.090843
0.090843
0
0.02503
0.244153
6,713
244
88
27.512295
0.786362
0.025622
0
0.412121
0
0
0
0
0
0
0
0
0.006061
1
0.212121
false
0
0.012121
0.006061
0.345455
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
765cd34e7492f19b23b0f9cf44e1e611e317d599
622
py
Python
common_files/models/base.py
4sfc/django-common-files
5a4a15a7ff9774308617c2c6178657dacff12168
[ "MIT" ]
null
null
null
common_files/models/base.py
4sfc/django-common-files
5a4a15a7ff9774308617c2c6178657dacff12168
[ "MIT" ]
9
2020-07-29T18:46:35.000Z
2020-10-21T03:43:07.000Z
common_files/models/base.py
4sfc/django-common-files
5a4a15a7ff9774308617c2c6178657dacff12168
[ "MIT" ]
null
null
null
"""Base class""" from django.db import models from common_files.models.timestamp import Timestamp class Base(Timestamp): """Abstract base class Base has label, value, and active fields""" label = models.CharField(max_length=191, unique=True) value = models.CharField(max_length=10, unique=True) acti...
25.916667
70
0.636656
70
622
5.528571
0.514286
0.077519
0.093023
0.124031
0
0
0
0
0
0
0
0.010846
0.258842
622
23
71
27.043478
0.828633
0.114148
0
0
0
0
0.051852
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0.071429
0.642857
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
766b2eadfc883aaf86fce808cd266c679cedbd21
21,494
py
Python
deploy/virenv/lib/python2.7/site-packages/haystack/reverse/context.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/reverse/context.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/reverse/context.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import pickle # import dill as pickle import time import numpy import os from haystack.abc import interfaces from haystack.reverse import utils from haystack.reverse import config from haystack.reverse import structure from haystack.reverse import searchers...
39.511029
115
0.657439
2,584
21,494
5.201625
0.14048
0.047392
0.039208
0.025296
0.424299
0.369467
0.301019
0.267093
0.232423
0.189718
0
0.003757
0.256955
21,494
543
116
39.583794
0.837831
0.146878
0
0.180328
0
0
0.060323
0
0
0
0
0.001842
0.003279
0
null
null
0.003279
0.04918
null
null
0.003279
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
766dd27f1e4b5692b4969de5d938e0f62f256da1
259
py
Python
functions.py
jifranco/astr-119-hw-2
8f479fd97a1a391f2e21a3a6507a32bf00a7b8e7
[ "MIT" ]
null
null
null
functions.py
jifranco/astr-119-hw-2
8f479fd97a1a391f2e21a3a6507a32bf00a7b8e7
[ "MIT" ]
2
2020-10-14T22:12:18.000Z
2020-10-22T07:04:09.000Z
functions.py
jifranco/astr-119-hw-2
8f479fd97a1a391f2e21a3a6507a32bf00a7b8e7
[ "MIT" ]
null
null
null
import numpy as np import sys def expo(x): return np.exp(x) def show_expo(n): for i in range(n): print(expo(float(i))) def main(): n=10 if(len(sys.argv)>1): n = int(sys.argv[1]) show_expo(n) if __name__ == "__main__": main()
12.95
27
0.583012
47
259
3
0.553191
0.113475
0.12766
0
0
0
0
0
0
0
0
0.020513
0.247104
259
20
28
12.95
0.702564
0
0
0
0
0
0.033195
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.071429
0.428571
0.071429
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
767507eabe7b193dbddbbf771d65b3e09d823897
5,967
py
Python
baselines/her/actor_critic.py
Lauren-Stumpf/music
f5412bff074cc6b72276a9a46dd99301178baf88
[ "MIT" ]
null
null
null
baselines/her/actor_critic.py
Lauren-Stumpf/music
f5412bff074cc6b72276a9a46dd99301178baf88
[ "MIT" ]
null
null
null
baselines/her/actor_critic.py
Lauren-Stumpf/music
f5412bff074cc6b72276a9a46dd99301178baf88
[ "MIT" ]
null
null
null
import tensorflow as tf from baselines.her.util import store_args, nn import numpy as np EPS = 1e-8 LOG_STD_MAX = 2 LOG_STD_MIN = -5 def gaussian_likelihood(x, mu, log_std, mode = 'SAC'): pre_sum = -0.5 * (((x-mu)/(tf.exp(log_std)+EPS))**2 if mode == 'SAC: pre_sum += 2*log_std + np.log(2*np.pi...
45.549618
121
0.570303
921
5,967
3.504886
0.173724
0.024783
0.047708
0.068154
0.553903
0.51518
0.465304
0.425341
0.39746
0.39746
0
0.01342
0.300654
5,967
130
122
45.9
0.760125
0.056142
0
0.306818
0
0.170455
0.009538
0
0
0
0
0
0
0
null
null
0.022727
0.034091
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
76757c70685f95698f0df759bf5d307df02e5579
516
py
Python
backend/instrument/migrations/MESS/0019_auto_20200710_0947.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
2
2019-04-15T20:36:48.000Z
2020-02-09T23:20:27.000Z
backend/instrument/migrations/MESS/0019_auto_20200710_0947.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
5
2020-02-12T00:06:06.000Z
2020-06-05T05:09:45.000Z
backend/instrument/migrations/MESS/0019_auto_20200710_0947.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-07-10 09:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('instrument', '0018_auto_20200710_0941'), ] operations = [ migrations.AlterField( model_name='ev...
25.8
136
0.660853
58
516
5.758621
0.655172
0.071856
0.083832
0.131737
0
0
0
0
0
0
0
0.079801
0.222868
516
19
137
27.157895
0.753117
0.087209
0
0
1
0
0.172708
0.093817
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
767a74a717a16a35b0aad3fdf4f3617b561ac7bc
2,529
py
Python
gnuradio-3.7.13.4/gnuradio-runtime/python/gnuradio/gru/msgq_runner.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gnuradio-runtime/python/gnuradio/gru/msgq_runner.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gnuradio-runtime/python/gnuradio/gru/msgq_runner.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
# # Copyright 2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # #...
30.46988
70
0.673784
372
2,529
4.456989
0.400538
0.018094
0.033173
0.034379
0.049457
0.033776
0
0
0
0
0
0.010199
0.263345
2,529
82
71
30.841463
0.879764
0.293001
0
0.0625
0
0
0
0
0
0
0
0
0
0
null
null
0
0.0625
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
7684756ced7a22e0c7885f602608cf8157e23bb5
461
py
Python
back-end/CourseProject/MyCourse/urls.py
Michael-Yan-wun/Michael-Course-Project
e49d4ab1631d8b6736b1e0d357023a121db70608
[ "MIT" ]
1
2021-02-27T15:26:34.000Z
2021-02-27T15:26:34.000Z
back-end/CourseProject/MyCourse/urls.py
Michael-Yan-wun/Michael-Course-Project
e49d4ab1631d8b6736b1e0d357023a121db70608
[ "MIT" ]
null
null
null
back-end/CourseProject/MyCourse/urls.py
Michael-Yan-wun/Michael-Course-Project
e49d4ab1631d8b6736b1e0d357023a121db70608
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.urls import path from MyCourse import views # from MyCourse.views import ImageAPIView urlpatterns = [ url(r'^api/course/details', views.fetch_course_details), url(r'^api/course$', views.course_list), url(r'^api/course/(?P<pk>[0-9]+)$', views.course_detail), ...
30.733333
71
0.689805
72
461
4.333333
0.333333
0.064103
0.112179
0.208333
0.153846
0.153846
0
0
0
0
0
0.014742
0.117137
461
14
72
32.928571
0.751843
0.084599
0
0
0
0
0.304762
0.230952
0
0
0
0
0
1
0
false
0
0.3
0
0.3
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
768fb3e4ee349d4ca95f895d597ea86d8b710519
10,987
py
Python
tests/test_BasicPackets.py
KronosKoderS/Concorde
30c5c8d9818e937a88d33f19c7907f8394a1ab3b
[ "MIT" ]
23
2017-09-07T21:54:15.000Z
2019-09-16T20:31:20.000Z
tests/test_BasicPackets.py
KronosKoderS/Concorde
30c5c8d9818e937a88d33f19c7907f8394a1ab3b
[ "MIT" ]
90
2017-08-26T06:00:51.000Z
2020-07-17T12:00:45.000Z
tests/test_BasicPackets.py
KronoSKoderS/Concorde
30c5c8d9818e937a88d33f19c7907f8394a1ab3b
[ "MIT" ]
5
2017-11-11T22:39:40.000Z
2021-03-29T16:39:45.000Z
import unittest import ctypes import struct import sys from calpack import models from calpack.utils import PYPY, FieldAlreadyExistsError, FieldNameDoesntExistError class Test_BasicPacket(unittest.TestCase): def test_pkt_create_packet_object_with_defined_values(self): """ This test verifies that...
33.193353
99
0.646218
1,409
10,987
4.724627
0.110717
0.124981
0.071504
0.063843
0.77212
0.730659
0.681238
0.629262
0.562716
0.535076
0
0.018393
0.27751
10,987
330
100
33.293939
0.820232
0.172568
0
0.481675
0
0
0.010933
0
0
0
0.018414
0
0.162304
1
0.073298
false
0
0.036649
0
0.240838
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
768fe5c781be31516f6f9c59fb9a14d4e6ed9672
434
py
Python
ProfessionalPython/6.2PlatziSetsRepetidos.py
SleepWalKer09/PythonProjects
6c2a5106f61ce6488ec4586efca214f1a3a3baf8
[ "MIT" ]
null
null
null
ProfessionalPython/6.2PlatziSetsRepetidos.py
SleepWalKer09/PythonProjects
6c2a5106f61ce6488ec4586efca214f1a3a3baf8
[ "MIT" ]
null
null
null
ProfessionalPython/6.2PlatziSetsRepetidos.py
SleepWalKer09/PythonProjects
6c2a5106f61ce6488ec4586efca214f1a3a3baf8
[ "MIT" ]
null
null
null
""" Eliminar los duplicados forma tradicional """ # [1,1,2,2,3,4] --> [1,2,3,4] def remove_duplicates(some_list): without_duplicates = [] for element in some_list: if element not in without_duplicates: without_duplicates.append(element) return without_duplicates def run(): ...
24.111111
47
0.640553
58
434
4.482759
0.465517
0.261538
0.023077
0.030769
0
0
0
0
0
0
0
0.045181
0.235023
434
18
48
24.111111
0.737952
0.16129
0
0
0
0
0.023529
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.272727
0.090909
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
7690b830c85798f89425077f47d4ff2407ae98ef
1,445
py
Python
servicecatalog_puppet/workflow/spoke_local_portfolios/spoke_local_portfolio_section_task.py
awslabs/aws-service-catalog-puppet-framework
3e3a0813ef0d221504feb4a9cfc32bd31c8e5cab
[ "Apache-2.0" ]
2
2019-04-12T23:28:46.000Z
2019-04-15T15:35:04.000Z
servicecatalog_puppet/workflow/spoke_local_portfolios/spoke_local_portfolio_section_task.py
awslabs/aws-service-catalog-puppet-framework
3e3a0813ef0d221504feb4a9cfc32bd31c8e5cab
[ "Apache-2.0" ]
null
null
null
servicecatalog_puppet/workflow/spoke_local_portfolios/spoke_local_portfolio_section_task.py
awslabs/aws-service-catalog-puppet-framework
3e3a0813ef0d221504feb4a9cfc32bd31c8e5cab
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 from servicecatalog_puppet import constants from servicecatalog_puppet.workflow.generic import generic_section_task from servicecatalog_puppet.workflow.spoke_local_portfolios import ( spoke_local_portf...
40.138889
100
0.83737
166
1,445
6.76506
0.307229
0.133571
0.16919
0.117542
0.488869
0.45236
0.439893
0.359751
0.319679
0.319679
0
0.004721
0.120415
1,445
35
101
41.285714
0.878836
0.07474
0
0.133333
0
0
0.019505
0.019505
0
0
0
0
0
1
0
false
0
0.2
0
0.533333
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
7693c21a8b4b94df14d46fd5bdf6f840872673ec
494
py
Python
internos/etools/migrations/0049_auto_20190522_1352.py
UNICEFLebanonInnovation/Staging-Neuro
aac1e4f335ff4ec32041f989a9c22f8581a4961a
[ "MIT" ]
1
2020-12-12T07:41:11.000Z
2020-12-12T07:41:11.000Z
internos/etools/migrations/0049_auto_20190522_1352.py
UNICEFLebanonInnovation/Staging-Neuro
aac1e4f335ff4ec32041f989a9c22f8581a4961a
[ "MIT" ]
9
2019-12-31T09:30:23.000Z
2022-01-13T00:49:47.000Z
internos/etools/migrations/0049_auto_20190522_1352.py
UNICEFLebanonInnovation/Staging-Neuro
aac1e4f335ff4ec32041f989a9c22f8581a4961a
[ "MIT" ]
1
2020-02-03T13:12:55.000Z
2020-02-03T13:12:55.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-22 13:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('etools', '0048_auto_20190515_2317'), ] operations = [ migrations.AlterFiel...
23.52381
83
0.637652
55
494
5.509091
0.8
0.085809
0.125413
0
0
0
0
0
0
0
0
0.096774
0.246964
494
20
84
24.7
0.717742
0.139676
0
0
1
0
0.158768
0.054502
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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