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
df130eaef34648068a0ff50de3a882c5ecc9e033
5,076
py
Python
parsers/CurrentTime.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
9
2018-10-19T08:47:42.000Z
2020-08-19T01:58:27.000Z
parsers/CurrentTime.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
1
2019-11-07T11:24:43.000Z
2019-11-07T11:52:51.000Z
parsers/CurrentTime.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
3
2020-04-24T03:51:15.000Z
2021-12-19T16:08:24.000Z
from EasyParser import EasyParser import re import datetime # exe date # --- # current date is: 2018-08-01 # exe time # --- # current time is: 15:05:43 # last ntp sync:Wed Aug 1 14:58:13 2018 class TZoffset(datetime.tzinfo): def __init__(self, seconds_from_utc, name): self.offset = seconds_from_utc self.name ...
27.586957
152
0.688337
782
5,076
4.244246
0.143223
0.039771
0.039771
0.040072
0.410666
0.312142
0.263935
0.095511
0.075023
0.043085
0
0.012314
0.168046
5,076
183
153
27.737705
0.773621
0.023247
0
0.090226
0
0
0.053333
0
0
0
0
0
0
1
0.172932
false
0
0.022556
0.105263
0.458647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
df1591fd1cab4248fa2dfa2c82a69e614c10fcdb
530
py
Python
Lintcode/G_Practice/Tag_DataStream/823. Input Stream.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/G_Practice/Tag_DataStream/823. Input Stream.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/G_Practice/Tag_DataStream/823. Input Stream.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
class Solution: """ @param inputA: Input stream A @param inputB: Input stream B @return: The answer """ def inputStream(self, inputA, inputB): resA = "" resB = "" for a in inputA: if a == '<': resA = resA[:-1] else: ...
23.043478
46
0.383019
53
530
3.830189
0.45283
0.108374
0
0
0
0
0
0
0
0
0
0.007605
0.503774
530
22
47
24.090909
0.764259
0.149057
0
0.133333
0
0
0.016393
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
df17f37f7287d664dc13d2186812e72ef3012242
13,352
py
Python
angular_flask/models.py
amisrs/one-eighty
6b047d205b4b1a0697d7d43a2faa86504337e43c
[ "MIT" ]
null
null
null
angular_flask/models.py
amisrs/one-eighty
6b047d205b4b1a0697d7d43a2faa86504337e43c
[ "MIT" ]
null
null
null
angular_flask/models.py
amisrs/one-eighty
6b047d205b4b1a0697d7d43a2faa86504337e43c
[ "MIT" ]
null
null
null
from datetime import datetime from angular_flask.core import db from angular_flask import app import json # class Post(db.Model): # id = db.Column(db.Integer, primary_key=True) # title = db.Column(db.String(80)) # body = db.Column(db.Text) # pub_date = db.Column(db.DateTime) # # def __init__(self,...
34.95288
142
0.575494
1,378
13,352
5.425254
0.082729
0.066346
0.082932
0.065944
0.550696
0.499197
0.45947
0.412253
0.390316
0.342964
0
0.013949
0.301977
13,352
381
143
35.044619
0.788197
0.104778
0
0.546392
0
0
0.093456
0.004027
0
0
0
0
0
0
null
null
0.010309
0.013746
null
null
0.041237
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
df1a469e28c5291480eb01835f133864be481e39
333
py
Python
benchmark/tpch/tbl2csv.py
rf972/caerus-dike
1c3448af63cca426007b524998360a317bcf4794
[ "Apache-2.0" ]
null
null
null
benchmark/tpch/tbl2csv.py
rf972/caerus-dike
1c3448af63cca426007b524998360a317bcf4794
[ "Apache-2.0" ]
null
null
null
benchmark/tpch/tbl2csv.py
rf972/caerus-dike
1c3448af63cca426007b524998360a317bcf4794
[ "Apache-2.0" ]
2
2021-05-04T20:12:51.000Z
2021-05-04T20:17:38.000Z
#!/usr/bin/python3 import sys import os if len(sys.argv) < 3: print("Usage: {} SRC_DIR DST_DIR".format(str(sys.argv[0]))) exit(1) SRC_DIR = str(sys.argv[1]) DST_DIR = str(sys.argv[2]) if not os.path.isdir(SRC_DIR) or not os.path.isdir(DST_DIR): print("Usage: {} SRC_DIR DST_DIR".format(str(sys.argv[0])))...
20.8125
63
0.651652
64
333
3.265625
0.390625
0.167464
0.191388
0.15311
0.421053
0.421053
0.421053
0.421053
0.421053
0.421053
0
0.028369
0.153153
333
15
64
22.2
0.712766
0.051051
0
0.4
0
0
0.15873
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
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
df25072fc6ba2811f192af90776038fc94d1abb2
2,215
py
Python
conformalmapping/mobiusbase.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
16
2017-10-14T17:13:48.000Z
2022-01-11T22:19:45.000Z
conformalmapping/mobiusbase.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
11
2015-05-11T08:02:42.000Z
2020-05-21T16:13:45.000Z
conformalmapping/mobiusbase.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
3
2019-12-31T23:07:29.000Z
2021-03-08T02:05:38.000Z
# This file is a part of the CMToolbox. # It is licensed under the BSD 3-clause license. # (See LICENSE.) # # Copyright Toby Driscoll, 2014. # (Re)written by Everett Kropf, 2014, # adapted from code by Toby Driscoll, originally 20??. # Python Port Copyright Andrew Walker, 2015 import numpy as np from .conformalmap impo...
27.6875
76
0.528217
331
2,215
3.438066
0.338369
0.039543
0.057118
0.017575
0.142355
0.084359
0.056239
0
0
0
0
0.037698
0.317381
2,215
79
77
28.037975
0.714947
0.186907
0
0.150943
0
0
0.052809
0
0
0
0
0.012658
0.018868
1
0.132075
false
0
0.056604
0.018868
0.415094
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
df28edb21e9e2817d36879bcf07649fe6ff3f212
1,492
py
Python
CNN/Pooling/pooling_fig.py
Anfany/Machine-Learning-for-Beginner
1022ee7ce4d387da5e5fd8c3b66ac9b1bfc1974c
[ "MIT" ]
397
2018-05-28T02:07:32.000Z
2022-03-30T09:53:37.000Z
CNN/Pooling/pooling_fig.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
4
2019-01-14T16:41:02.000Z
2021-03-11T13:23:06.000Z
CNN/Pooling/pooling_fig.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
235
2018-06-28T05:31:40.000Z
2022-03-11T03:20:07.000Z
# -*- coding:utf-8 -*- # &Author AnFany # 不同池化得到的图片对比 import pooling as p from skimage import io from PIL import Image import numpy as np def generate_fig(fig, file, func): """ # 首先读取图片的矩阵,然各三个通道各自池化,将得到的结果合成为图片矩阵,最后根据矩阵显示图片 :param fig: 需要处理的图片的路径 :param file: 最周保存图片的路径 :retur...
19.893333
71
0.571716
197
1,492
4.167513
0.456853
0.06821
0.136419
0.043849
0.121803
0.077954
0
0
0
0
0
0.041985
0.297587
1,492
74
72
20.162162
0.741412
0.202413
0
0
1
0
0.076056
0.062911
0
0
0
0
0
1
0.032258
false
0
0.129032
0
0.193548
0.032258
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
df2a420e9ab168f15ae231c9d5d4b6cf8fdecd25
2,406
py
Python
tpot/built_in_operators.py
ensemblr/hacking-sklearn
9168bd5fcfc8a50cffa3dfdbb5050addcc8e173b
[ "MIT" ]
null
null
null
tpot/built_in_operators.py
ensemblr/hacking-sklearn
9168bd5fcfc8a50cffa3dfdbb5050addcc8e173b
[ "MIT" ]
null
null
null
tpot/built_in_operators.py
ensemblr/hacking-sklearn
9168bd5fcfc8a50cffa3dfdbb5050addcc8e173b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright 2015-Present Randal S. Olson This file is part of the TPOT library. TPOT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your...
31.657895
176
0.66251
342
2,406
4.523392
0.435673
0.069813
0.023271
0.036846
0.218487
0.197802
0.144796
0.10084
0.047835
0
0
0.006753
0.26143
2,406
75
177
32.08
0.863815
0.540316
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.173913
false
0.043478
0.130435
0.043478
0.521739
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
df2cdfceefa5a4090e5ad33a71db056311e13ea0
25,217
py
Python
mods/Protection.py
VinMannie/BombSquad-Community-Mod-Manager
d80d8bfe5c9bae422990df0df78e6098f379b27d
[ "Unlicense" ]
3
2018-12-31T01:34:57.000Z
2020-08-12T18:50:40.000Z
mods/Protection.py
EternalARK/BombSquad-Community-Mod-Manager
aa9318217a5bd86d2b897208536a8caf69fda939
[ "Unlicense" ]
null
null
null
mods/Protection.py
EternalARK/BombSquad-Community-Mod-Manager
aa9318217a5bd86d2b897208536a8caf69fda939
[ "Unlicense" ]
2
2021-02-03T06:43:01.000Z
2021-05-09T09:23:34.000Z
import bs import random import bsUtils def bsGetAPIVersion(): # see bombsquadgame.com/apichanges return 4 def bsGetGames(): return [ProtectionGame] class SpazClone(bs.SpazBot): def __init__(self, player): self.character = player.character self.color = player.color self.hi...
46.016423
140
0.511679
2,480
25,217
5.158871
0.212903
0.041582
0.025246
0.014069
0.25723
0.200016
0.157418
0.136314
0.12162
0.12162
0
0.024905
0.386961
25,217
547
141
46.100548
0.802704
0.101558
0
0.286713
0
0
0.07109
0.000929
0
0
0
0
0
0
null
null
0
0.006993
null
null
0.011655
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
df2e85e1bf6d4c5bdffa79943cdcf80beaa21932
4,662
py
Python
lwtestsuite/bvttest/xlwt-0.7.2/tests/RKbug.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
lwtestsuite/bvttest/xlwt-0.7.2/tests/RKbug.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
contrib/xlwt/tests/RKbug.py
RyanBalfanz/Django-Bingo
0ba9f893c78fae1a5fb5eb45e43b36783d930e25
[ "BSD-3-Clause" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
from xlwt import * import sys from struct import pack, unpack def cellname(rowx, colx): # quick kludge, works up to 26 cols :-) return chr(ord('A') + colx) + str(rowx + 1) def RK_pack_check(num, anint, case=None): if not(-0x7fffffff - 1 <= anint <= 0x7fffffff): print "RK_pack_check: not ...
31.5
90
0.51287
624
4,662
3.698718
0.270833
0.035095
0.042894
0.030329
0.248267
0.227036
0.227036
0.201906
0.177643
0.135182
0
0.122483
0.360789
4,662
147
91
31.714286
0.652013
0.16731
0
0.080357
0
0.008929
0.076987
0
0
0
0.050402
0
0
0
null
null
0
0.026786
null
null
0.098214
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
df3143b0672c260639f676129c3bf8201d95041c
10,098
py
Python
posttologmet.py
ibm-cloud-architecture/MonitorOpenWhiskActivations
a8fae2304a4bb51a6ed7c4eec4b1817662873dc2
[ "Apache-2.0" ]
2
2018-01-19T19:26:24.000Z
2018-08-14T12:55:30.000Z
posttologmet.py
ibm-cloud-architecture/MonitorOpenWhiskActivations
a8fae2304a4bb51a6ed7c4eec4b1817662873dc2
[ "Apache-2.0" ]
null
null
null
posttologmet.py
ibm-cloud-architecture/MonitorOpenWhiskActivations
a8fae2304a4bb51a6ed7c4eec4b1817662873dc2
[ "Apache-2.0" ]
2
2018-01-19T19:25:47.000Z
2019-10-23T16:35:04.000Z
import sys, requests, json def main(dict): print 'Received data' print dict missing_values = [] required_values = ['logmet_host', 'logmet_port', 'space_id', 'logmet_token'] for key in required_values: if not key in dict: missing_values.append(key) if len(missing_values) > 0: return {'re...
29.526316
111
0.553674
1,164
10,098
4.627148
0.2311
0.031563
0.026736
0.015782
0.344783
0.293353
0.235797
0.206647
0.206647
0.206647
0
0.013489
0.339275
10,098
341
112
29.612903
0.793765
0.091899
0
0.328947
0
0
0.103813
0
0
0
0
0
0.013158
0
null
null
0
0.030702
null
null
0.030702
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
df3496517f3326067454cbe31d1f7cc89ddd076e
4,519
py
Python
src/parse_RAF.py
vtt-project/VTT_vid_emotion-1
e142d7dcab5343de217088face2127d5cb9add07
[ "MIT" ]
4
2019-04-29T02:20:21.000Z
2021-05-03T00:03:04.000Z
src/parse_RAF.py
vtt-project/VTT_vid_emotion-1
e142d7dcab5343de217088face2127d5cb9add07
[ "MIT" ]
null
null
null
src/parse_RAF.py
vtt-project/VTT_vid_emotion-1
e142d7dcab5343de217088face2127d5cb9add07
[ "MIT" ]
1
2019-12-16T05:02:55.000Z
2019-12-16T05:02:55.000Z
# preliminaries import sys,os,time,cv2 import numpy as np import matplotlib.pyplot as plt from utils import imread_to_rgb, img_rgb2bw DB_PATH = '/home/jhchoi/datasets4/RAF/' raf_dict = dict() #FER: 0=angry, 1=disgust, 2=fear, 3=happy, 4=sad, 5=surprise, 6=neutral #RAF-basic and RAF-multi: # 1:Surprise, 2:Fear, 3:Disg...
30.952055
118
0.639079
784
4,519
3.533163
0.178571
0.020217
0.016245
0.045487
0.488087
0.411191
0.262094
0.262094
0.23574
0.201083
0
0.049578
0.187652
4,519
145
119
31.165517
0.704985
0.205134
0
0.152941
0
0
0.10242
0.046708
0
0
0
0
0
0
null
null
0
0.047059
null
null
0.023529
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
df354d4ab04d9b072a1e9fda28e845b051ee73fc
5,322
py
Python
lib/interactiveBrokers/handlers.py
alexanu/trading-with-python
e6d6f6daea3089aebcd0f48c2e69c8bfe23c332c
[ "BSD-3-Clause" ]
318
2015-04-07T01:44:35.000Z
2022-03-18T07:39:36.000Z
lib/interactiveBrokers/handlers.py
alexanu/trading-with-python
e6d6f6daea3089aebcd0f48c2e69c8bfe23c332c
[ "BSD-3-Clause" ]
10
2015-03-19T21:31:29.000Z
2020-11-26T12:46:53.000Z
lib/interactiveBrokers/handlers.py
alexanu/trading-with-python
e6d6f6daea3089aebcd0f48c2e69c8bfe23c332c
[ "BSD-3-Clause" ]
137
2015-04-07T01:33:47.000Z
2022-03-18T07:40:08.000Z
# -*- coding: utf-8 -*- """ Common handlers for ibpy Created on Thu Mar 19 22:34:20 2015 @author: Jev Kuznetsov License: BSD """ import pandas as pd from ib.ext.Order import Order class Logger(object): """ class for logging and displaying icoming messages """ def __init__(self,tws): tws.registerAll...
30.067797
95
0.560691
595
5,322
4.904202
0.334454
0.035984
0.035984
0.045579
0.150788
0.123372
0.107608
0.082248
0.082248
0.082248
0
0.005321
0.329012
5,322
177
96
30.067797
0.811817
0.278843
0
0.289157
0
0
0.068638
0
0
0
0
0
0.012048
1
0.216867
false
0
0.024096
0
0.337349
0.012048
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
df36df1446411e1738debdb04d767ff908e75d73
1,149
py
Python
comparer/migrations/0017_auto_20210824_1239.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
comparer/migrations/0017_auto_20210824_1239.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
comparer/migrations/0017_auto_20210824_1239.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-08-24 12:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comparer', '0016_auto_20210820_1328'), ] operations = [ migrations.AddField( model_name='rankingbrowserpluginmodel', ...
39.62069
183
0.671018
124
1,149
6.064516
0.532258
0.037234
0.135638
0.151596
0.388298
0.388298
0.106383
0
0
0
0
0.041761
0.228895
1,149
28
184
41.035714
0.806998
0.040035
0
0.363636
1
0
0.348774
0.08901
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
df385247bc18a2e45e873a4d2488d523dd1ffa7f
2,294
py
Python
PE011-Largest product in a grid/PE011.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE011-Largest product in a grid/PE011.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE011-Largest product in a grid/PE011.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
# In the 20*20 grid below, four numbers along a diagonal line # have been marked in red. # The product of these numbers is 26 * 63 * 78 * 14 = 1788696. # What is the greatest product of four adjacent numbers in the same direction # (up, down, left, right, or diagonally) in the 20*20 grid? rows = 20 columns = 20 grid =...
38.233333
131
0.527899
362
2,294
3.301105
0.187845
0.117155
0.170711
0.060251
0.580753
0.487029
0.408368
0.377406
0.340586
0.340586
0
0.051447
0.322145
2,294
60
132
38.233333
0.717042
0.195728
0
0.575
0
0
0.006554
0
0
0
0
0
0
0
null
null
0
0
null
null
0.025
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
df3d918094e9cfb4767b18d9d9e86fe852bc2e66
607
py
Python
servicesapp/tests.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
servicesapp/tests.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
servicesapp/tests.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
from django.test import TestCase from django.core.mail import send_mail from django.conf import settings from .views import email_inquiry from .forms import ContactForm # Create your tests here. class EmailTesting(TestCase): def test_send_mail(self): print("\nTesting email sending functionality...") ...
37.9375
152
0.747941
80
607
5.575
0.5125
0.067265
0
0
0
0
0
0
0
0
0
0
0.14827
607
15
153
40.466667
0.862669
0.164745
0
0
0
0
0.294821
0
0
0
0
0
0
1
0.1
false
0
0.5
0
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
1
0
0
0
0
1
df4032134b57e6ab6f700535ca97fb4a7c423b73
4,048
py
Python
classes/data_screen.py
johnyburd/glucometer
075a48cff38e0570960fc2b8968bcb8b5ddd647f
[ "MIT" ]
12
2016-11-02T09:15:32.000Z
2021-04-08T18:42:01.000Z
classes/data_screen.py
johnyburd/glucometer
075a48cff38e0570960fc2b8968bcb8b5ddd647f
[ "MIT" ]
null
null
null
classes/data_screen.py
johnyburd/glucometer
075a48cff38e0570960fc2b8968bcb8b5ddd647f
[ "MIT" ]
3
2018-10-18T15:59:57.000Z
2021-01-20T21:03:48.000Z
# Class for the data_screen. Manages displaying data stored by the meter. from kivy.clock import Clock from kivy.uix.screenmanager import Screen from kivy.uix.button import Button from kivy.uix.popup import Popup from kivy.uix.label import Label from kivy.core.window import Window from kivy.uix.boxlayout import BoxLa...
29.547445
103
0.590168
497
4,048
4.663984
0.2334
0.031061
0.023727
0.023296
0.145815
0.124245
0.100086
0.043141
0.043141
0.043141
0
0.003148
0.293725
4,048
136
104
29.764706
0.807625
0.030879
0
0.141509
0
0
0.018377
0.005615
0
0
0
0
0
0
null
null
0
0.09434
null
null
0.009434
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
df4298272da458e0f589b035ae3fc918347212f9
393
py
Python
expense/migrations/0006_auto_20200617_1927.py
Aasess/ExpenseTracker
9feb83b2b66d5d87a994bf6997d9cc33ca6ec066
[ "MIT" ]
9
2020-06-23T05:55:30.000Z
2020-07-09T10:07:25.000Z
expense/migrations/0006_auto_20200617_1927.py
Aasess/ExpenseTracker
9feb83b2b66d5d87a994bf6997d9cc33ca6ec066
[ "MIT" ]
3
2020-06-17T16:36:26.000Z
2021-02-16T06:29:23.000Z
expense/migrations/0006_auto_20200617_1927.py
Aasess/ExpenseTracker
9feb83b2b66d5d87a994bf6997d9cc33ca6ec066
[ "MIT" ]
5
2020-06-23T03:27:33.000Z
2020-08-16T19:37:53.000Z
# Generated by Django 3.0.5 on 2020-06-17 13:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('expense', '0005_auto_20200617_1820'), ] operations = [ migrations.AlterField( model_name='expense', name='date', ...
20.684211
58
0.605598
43
393
5.395349
0.813953
0
0
0
0
0
0
0
0
0
0
0.109929
0.282443
393
18
59
21.833333
0.712766
0.114504
0
0
1
0
0.118497
0.066474
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
df42f047afc68d8acf41529e0ed7a856bd1edd70
748
py
Python
quasimodo/data_structures/predicate.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
16
2019-11-28T13:26:37.000Z
2022-02-09T09:53:10.000Z
quasimodo/data_structures/predicate.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
1
2021-03-26T20:31:48.000Z
2021-07-15T08:52:47.000Z
quasimodo/data_structures/predicate.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
3
2020-08-14T23:23:25.000Z
2021-12-24T14:02:35.000Z
from quasimodo.serializable import Serializable from .predicate_interface import PredicateInterface class Predicate(PredicateInterface, Serializable): """Predicate Default implementation of a PredicateInterface """ def to_dict(self): res = dict() res["type"] = "Predicate" res[...
26.714286
51
0.606952
77
748
5.688312
0.441558
0.09589
0.061644
0.086758
0
0
0
0
0
0
0
0.001842
0.274064
748
27
52
27.703704
0.804788
0.074866
0
0
0
0
0.072378
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0
0.578947
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
df4cacbacbdeb4898039b31d1011f446d0d5370d
7,496
py
Python
python/airi/twisted_bluetooth/win.py
manuelnaranjo/AIRi
84c4afa9bfb078970c485ad87a86c431ac2a7cc8
[ "Apache-2.0" ]
1
2021-03-29T00:08:35.000Z
2021-03-29T00:08:35.000Z
python/airi/twisted_bluetooth/win.py
manuelnaranjo/AIRi
84c4afa9bfb078970c485ad87a86c431ac2a7cc8
[ "Apache-2.0" ]
1
2017-05-18T09:35:19.000Z
2017-05-18T09:35:19.000Z
python/airi/twisted_bluetooth/win.py
manuelnaranjo/AIRi
84c4afa9bfb078970c485ad87a86c431ac2a7cc8
[ "Apache-2.0" ]
2
2017-05-18T05:02:47.000Z
2020-11-26T18:49:58.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2011 Naranjo Manuel Francisco <manuel@aircable.net> # Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See Twisted LICENSE for details. """ Various Bluetooth Socket classes """ # System Imports import os import types import socket import sys import operator import bluetoo...
30.721311
112
0.639941
846
7,496
5.614657
0.326241
0.022737
0.012632
0.022105
0.191158
0.155789
0.155789
0.136421
0.136421
0.133474
0
0.006387
0.268943
7,496
243
113
30.847737
0.860401
0.086713
0
0.283465
0
0
0.029634
0
0
0
0
0
0
0
null
null
0.015748
0.07874
null
null
0.023622
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
df4e88b22df96ecbcb9f90cb520cfd038c2e0125
2,531
py
Python
src/generate_data.py
tang-jh/excel_merge
3f2963d80e92a500807a1283a17c5c14c9336351
[ "MIT" ]
null
null
null
src/generate_data.py
tang-jh/excel_merge
3f2963d80e92a500807a1283a17c5c14c9336351
[ "MIT" ]
null
null
null
src/generate_data.py
tang-jh/excel_merge
3f2963d80e92a500807a1283a17c5c14c9336351
[ "MIT" ]
null
null
null
''' Module to generate a demo folder structure for testing purpose. This demo takes the structure of individual Excel files based on an assessor of the test candidate. Each candidate is assigned 3 assessors and will be assessed on 3 criteria ''' # Import libraries import os import numpy as np import pandas as...
37.776119
126
0.657843
377
2,531
4.267905
0.328912
0.034804
0.034804
0.014916
0.136731
0.10317
0.065879
0.029832
0
0
0
0.0315
0.209799
2,531
67
127
37.776119
0.773
0.233109
0
0
1
0
0.091787
0
0
0
0
0
0
1
0.019608
false
0
0.058824
0
0.098039
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
df4ef40b9556d5e1414528509023eea2581d7185
22,715
py
Python
OfflineAnomalyDetector/Detectors.py
mxbhsa/Heimdall
485976e3fdcaf2f8b98f0ef95e73067e67e9e9e4
[ "Apache-2.0" ]
null
null
null
OfflineAnomalyDetector/Detectors.py
mxbhsa/Heimdall
485976e3fdcaf2f8b98f0ef95e73067e67e9e9e4
[ "Apache-2.0" ]
null
null
null
OfflineAnomalyDetector/Detectors.py
mxbhsa/Heimdall
485976e3fdcaf2f8b98f0ef95e73067e67e9e9e4
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from sklearn.base import BaseEstimator from luminol.anomaly_detector import AnomalyDetector from luminol.modules.anomaly import Anomaly from luminol.modules.time_series import TimeSeries from AnomalyAlgorithms import anomaly_detect_ts from Utils import * from abc import abstract...
35.217054
172
0.682324
2,991
22,715
4.936476
0.111334
0.063325
0.039824
0.007315
0.691907
0.652489
0.628852
0.615374
0.598578
0.590315
0
0.019791
0.2081
22,715
644
173
35.271739
0.801034
0.024389
0
0.568233
0
0
0.03926
0.00365
0
0
0
0
0
0
null
null
0.008949
0.029083
null
null
0.051454
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
df537c7d1965860dc5f281c2d604983d7a1c14ee
2,003
py
Python
gym_modular/sensors/part/fixed_number_placed_parts_velocity_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/part/fixed_number_placed_parts_velocity_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/part/fixed_number_placed_parts_velocity_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
import math from typing import Optional, Sequence from assembly_gym.environment.generic import Object from ..object_velocity_sensor import ObjectVelocitySensor from task import StackingTask class FixedNumberPlacedPartsVelocitySensor(ObjectVelocitySensor[StackingTask]): """ A sensor that provides the velocit...
51.358974
118
0.725911
262
2,003
5.270992
0.343511
0.095583
0.063722
0.092686
0.272266
0.127444
0.088342
0.050688
0
0
0
0.001896
0.210185
2,003
38
119
52.710526
0.871049
0.333001
0
0
0
0
0.042419
0
0
0
0
0
0.05
1
0.15
false
0
0.25
0.05
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
df5436be0a12452c30865bd01579f7384844eda4
1,888
py
Python
01/task14.py
omartrinidad/pattern-recognition-bit
ba3eb4e541fff2b1aedbaa4420d7a8cea8100dc7
[ "MIT" ]
null
null
null
01/task14.py
omartrinidad/pattern-recognition-bit
ba3eb4e541fff2b1aedbaa4420d7a8cea8100dc7
[ "MIT" ]
null
null
null
01/task14.py
omartrinidad/pattern-recognition-bit
ba3eb4e541fff2b1aedbaa4420d7a8cea8100dc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ task 1.4 Unit circles # ToDo: Implement it in three dimensions # L_p norm # https://www.youtube.com/watch?v=SXEYIGqXSxk # unit circle: # https://www.youtube.com/watch?v=qTbDQ9gkKJg """ import pylab import matplotlib.pyplot as plt import numpy as np from auxiliar import * @save_figure("out...
26.222222
80
0.573093
354
1,888
3.011299
0.361582
0.020638
0.0197
0.026266
0.100375
0.073171
0
0
0
0
0
0.08339
0.225106
1,888
71
81
26.591549
0.645249
0.416314
0
0
0
0
0.079365
0
0
0
0
0.014085
0
1
0.029412
false
0
0.117647
0
0.176471
0.088235
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
df63b9ef1ff1a335dfc085e74333df01240dbbac
5,215
py
Python
zubio/gym/views.py
tejesh0/Zubio.in
a0a71d2fafd21e97b5a5062215149a9756d46e0b
[ "MIT" ]
1
2016-03-20T18:32:23.000Z
2016-03-20T18:32:23.000Z
zubio/gym/views.py
tejesh0/Zubio.in
a0a71d2fafd21e97b5a5062215149a9756d46e0b
[ "MIT" ]
9
2020-06-05T17:18:43.000Z
2022-03-11T23:15:04.000Z
zubio/gym/views.py
tejesh0/Zubio.in
a0a71d2fafd21e97b5a5062215149a9756d46e0b
[ "MIT" ]
null
null
null
from django.shortcuts import render_to_response, HttpResponse from django.http import HttpRequest from django.template import RequestContext from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from gym.models import FitnessListing, FitnessListingForm # from gym.forms import Docume...
27.020725
96
0.629338
588
5,215
5.469388
0.292517
0.031095
0.049751
0.054726
0.217351
0.135572
0.084577
0.084577
0.059701
0.059701
0
0.00129
0.256951
5,215
192
97
27.161458
0.828645
0.089166
0
0.176
0
0
0.125166
0.00575
0
0
0
0
0
0
null
null
0.008
0.12
null
null
0.048
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
df6968e55d2d2269a343f9563ee32b10b7d73c51
1,525
py
Python
research/adversarial_text/pretrain.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
1
2019-09-11T09:41:11.000Z
2019-09-11T09:41:11.000Z
research/adversarial_text/pretrain.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
research/adversarial_text/pretrain.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
32.446809
81
0.699672
209
1,525
4.92823
0.617225
0.058252
0.046602
0.031068
0.040777
0
0
0
0
0
0
0.023923
0.177705
1,525
46
82
33.152174
0.797448
0.598689
0
0
0
0
0.014815
0
0
0
0
0
0
1
0.066667
false
0
0.4
0
0.466667
0.066667
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
df6adfda0b85c502e51e06f22cd6229fd0a3053b
118
py
Python
Others/paken/pakencamp-2020-day1/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/paken/pakencamp-2020-day1/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/paken/pakencamp-2020-day1/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): x = list(input()) print(max(x)) if __name__ == "__main__": main()
10.727273
26
0.491525
15
118
3.333333
0.8
0
0
0
0
0
0
0
0
0
0
0.011628
0.271186
118
10
27
11.8
0.569767
0.177966
0
0
0
0
0.084211
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
df6e8b3f79e2738129a3ef4c27c729510c7d4429
5,237
py
Python
test/evaluate/tet_nlg_yongzhuo.py
leileixiao/Macropodus
9de38c06d332bd26e704fd4afd8f44678de7f44f
[ "MIT" ]
485
2019-12-31T16:53:28.000Z
2022-03-31T08:01:30.000Z
test/evaluate/tet_nlg_yongzhuo.py
xiankaigit/Macropodus
1d7b8f9938cb8b6d7744e9caabc3eb41c8891283
[ "MIT" ]
14
2020-03-07T04:17:47.000Z
2022-03-14T01:08:23.000Z
test/evaluate/tet_nlg_yongzhuo.py
xiankaigit/Macropodus
1d7b8f9938cb8b6d7744e9caabc3eb41c8891283
[ "MIT" ]
85
2020-01-16T05:03:07.000Z
2022-03-03T11:42:07.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2020/5/14 21:42 # @author : Mo # @function: nlg-yongzhuo from macropodus.summarize.yongzhuo_nlg import * doc = """PageRank算法简介。" \ "是上世纪90年代末提出的一种计算网页权重的算法! " \ "当时,互联网技术突飞猛进,各种网页网站爆炸式增长。 " \ "业界急需一种相对比较准确的网页重要性计算方法。 "...
31.739394
257
0.709757
584
5,237
6.222603
0.493151
0.042928
0.052834
0.039626
0.32361
0.263071
0.239406
0.239406
0.239406
0.216291
0
0.019111
0.170708
5,237
164
258
31.932927
0.813953
0.06435
0
0.349515
0
0.058252
0.633402
0.390574
0
0
0
0
0
1
0
false
0
0.009709
0
0.009709
0.242718
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
df6fb48dc611347e798fac2ea0a1f38ae6f5633f
2,363
py
Python
computation/turing_machine/rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
24
2016-04-16T09:10:15.000Z
2022-03-14T08:44:48.000Z
computation/turing_machine/rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
10
2020-11-29T13:01:09.000Z
2022-01-22T13:14:32.000Z
computation/turing_machine/rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
2
2019-09-21T15:07:41.000Z
2021-03-14T13:38:10.000Z
from dataclasses import dataclass from enum import Enum, auto from typing import List from ..exceptions import Unreachable from ..utils import detect from .tape import Tape, TMConfiguration class Direction(Enum): LEFT = auto() RIGHT = auto() @dataclass class TMRule: state: int character: str ne...
26.852273
78
0.677105
255
2,363
6.145098
0.262745
0.12508
0.122527
0.07275
0.192725
0.160817
0.079132
0.079132
0
0
0
0
0.250529
2,363
87
79
27.16092
0.884811
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.151515
false
0
0.090909
0.106061
0.621212
0.030303
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
df716ab6d3838acf70da937bdae974bac37958a0
380
py
Python
src/gui/menu/EditMenu.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
src/gui/menu/EditMenu.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
src/gui/menu/EditMenu.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
import dearpygui.dearpygui as dpg from helpers.logger import Logger from gui.utils import SaveInit class EditMenu: def __init__(self): self.log = Logger("Aural.GUI.Menus.Edit", "gui.log") with dpg.menu(label="Edit"): dpg.add_menu_item(label="Save Window Configuration", callback=SaveIn...
31.666667
83
0.694737
50
380
5.16
0.6
0.054264
0
0
0
0
0
0
0
0
0
0
0.197368
380
12
84
31.666667
0.845902
0
0
0
0
0
0.215223
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
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
df7273956d579d51d9a921d58eafb733c6b73e6e
429
py
Python
home/migrations/0006_userdetail_image.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
home/migrations/0006_userdetail_image.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
home/migrations/0006_userdetail_image.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-18 18:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0005_userdetail_mobile'), ] operations = [ migrations.AddField( model_name='userdetail', name='image', ...
22.578947
96
0.613054
47
429
5.489362
0.808511
0
0
0
0
0
0
0
0
0
0
0.060127
0.263403
429
18
97
23.833333
0.756329
0.104895
0
0
1
0
0.167539
0.057592
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
df73052f4cad8a4635de60b8e9cbafbbb8b2051f
4,754
py
Python
homework3/run.py
IrohXu/NYU_Deep_Reinforcement_Learning
bb8025464b430687c7604e627eefb2908317cfa7
[ "MIT" ]
null
null
null
homework3/run.py
IrohXu/NYU_Deep_Reinforcement_Learning
bb8025464b430687c7604e627eefb2908317cfa7
[ "MIT" ]
null
null
null
homework3/run.py
IrohXu/NYU_Deep_Reinforcement_Learning
bb8025464b430687c7604e627eefb2908317cfa7
[ "MIT" ]
null
null
null
""" This file will run REINFORCE or PPO code with the input seed and environment. """ import gym import os import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt # Import ppo files from ppo.ppo import PPO from ppo.reinforce import REINFORCE from ppo.network import FeedForwardN...
37.433071
136
0.635044
590
4,754
4.949153
0.238983
0.057534
0.055479
0.065753
0.662329
0.643493
0.643493
0.643493
0.643493
0.641781
0
0.057302
0.243795
4,754
127
137
37.433071
0.754937
0.17459
0
0.486111
0
0
0.249599
0.089792
0
0
0
0
0
1
0.055556
false
0
0.125
0
0.180556
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
df733b3b29c36cb38e6e15504e67471f0bd74c1d
1,584
py
Python
python/datapro/framework/util.py
jelloslinger/2015-mlb-hackathon
7c0933302e53ee4a869f01e685d629d981f82598
[ "MIT" ]
null
null
null
python/datapro/framework/util.py
jelloslinger/2015-mlb-hackathon
7c0933302e53ee4a869f01e685d629d981f82598
[ "MIT" ]
null
null
null
python/datapro/framework/util.py
jelloslinger/2015-mlb-hackathon
7c0933302e53ee4a869f01e685d629d981f82598
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from copy import deepcopy import pytz def dict_merge(master, merge): """Recursively merge dicts (originally found at https://www.xormedia.com/recursively-merge-dictionaries-in-python/) Args: master (dict): base dictionary merge (dict): dictionary with entries to ...
41.684211
170
0.654672
243
1,584
4.238683
0.502058
0.024272
0.040777
0.023301
0.030097
0.030097
0
0
0
0
0
0.025084
0.244949
1,584
38
171
41.684211
0.83612
0.674242
0
0
0
0
0
0
0
0
0
0.026316
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
df74d470fa60b60b19d913e4eb8d744dd0a7925b
1,451
py
Python
dynamicProgramming/countOfSubsetsWithSumEqualToX.py
kushvr7/High-On-DSA
d424bd48e35ebd1a588d96c1c0dcb5a9c47a0ef1
[ "MIT" ]
76
2021-12-12T08:42:20.000Z
2022-03-31T19:48:46.000Z
dynamicProgramming/countOfSubsetsWithSumEqualToX.py
kushvr7/High-On-DSA
d424bd48e35ebd1a588d96c1c0dcb5a9c47a0ef1
[ "MIT" ]
4
2022-01-04T09:58:39.000Z
2022-03-30T17:00:39.000Z
dynamicProgramming/countOfSubsetsWithSumEqualToX.py
kushvr7/High-On-DSA
d424bd48e35ebd1a588d96c1c0dcb5a9c47a0ef1
[ "MIT" ]
13
2021-12-12T14:44:41.000Z
2022-03-10T14:08:20.000Z
class Solution: # Recursion Approach def countOfSubsetsWithSumEqualToX(self, arr, X): def helper(arr, X, idx): if idx== len(arr): if X ==0: return 1 else : return 0 res = helper(arr, X-arr[idx], idx+1)+ helper(arr, X, idx+1) return res return helper(arr, X, 0) #...
25.45614
110
0.585803
243
1,451
3.497942
0.209877
0.032941
0.345882
0.051765
0.327059
0.209412
0.103529
0.082353
0.082353
0
0
0.073741
0.233632
1,451
56
111
25.910714
0.690647
0.128187
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0.212121
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
df762fc47e8e0a8f06d11c71436c63aab26e2183
398
py
Python
api/app.py
singhprincejeet/in_poster
1b0e18631ebede94e679eb0aba6c8e7630a02aba
[ "MIT" ]
null
null
null
api/app.py
singhprincejeet/in_poster
1b0e18631ebede94e679eb0aba6c8e7630a02aba
[ "MIT" ]
4
2021-04-30T21:09:19.000Z
2022-03-12T00:19:12.000Z
api/app.py
singhprincejeet/in_poster
1b0e18631ebede94e679eb0aba6c8e7630a02aba
[ "MIT" ]
null
null
null
from flask import Flask, request, send_file from main_controller import MainController app = Flask(__name__) @app.route('/generate', methods=['POST']) def generate(): image_src = MainController().generate_image(request) return send_file(image_src) @app.route('/ping', methods=['GET']) def ping(): ...
23.411765
57
0.673367
52
398
4.807692
0.5
0.024
0.024
0
0
0
0
0
0
0
0
0.012158
0.173367
398
16
58
24.875
0.74772
0
0
0
1
0
0.104712
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
df814f4feae1e5440a9d12c36e4d1e7468d17310
874
py
Python
simple_saga_task_manager/__init__.py
jeremynowell/django-simple-saga-task-manager
7fe0e7773cca2550ee3a954de8e3f7c11eda65a1
[ "Apache-2.0" ]
null
null
null
simple_saga_task_manager/__init__.py
jeremynowell/django-simple-saga-task-manager
7fe0e7773cca2550ee3a954de8e3f7c11eda65a1
[ "Apache-2.0" ]
null
null
null
simple_saga_task_manager/__init__.py
jeremynowell/django-simple-saga-task-manager
7fe0e7773cca2550ee3a954de8e3f7c11eda65a1
[ "Apache-2.0" ]
null
null
null
import sys def inject_default_settings(name): ''' Inject application default settings into config if not already defined. ''' try: __import__('%s.settings' % name) # Import this app defaults app_settings = sys.modules['%s.settings' % name] default_settings = sys.mod...
28.193548
70
0.598398
98
874
5.142857
0.408163
0.14881
0.107143
0.099206
0.222222
0.111111
0
0
0
0
0
0
0.314645
874
30
71
29.133333
0.841402
0.208238
0
0
0
0
0.08982
0.040419
0
0
0
0
0
1
0.066667
false
0.066667
0.2
0
0.266667
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
df8389a51571d4ddf8c97a80d51e7fea22e8bf63
770
py
Python
nxapi_plumbing/errors.py
markkuleinio/nxapi-plumbing
7b8646272e8a2cc71744fa07a7ad2fbb23a9e136
[ "Apache-2.0" ]
null
null
null
nxapi_plumbing/errors.py
markkuleinio/nxapi-plumbing
7b8646272e8a2cc71744fa07a7ad2fbb23a9e136
[ "Apache-2.0" ]
null
null
null
nxapi_plumbing/errors.py
markkuleinio/nxapi-plumbing
7b8646272e8a2cc71744fa07a7ad2fbb23a9e136
[ "Apache-2.0" ]
null
null
null
class NXAPIError(Exception): """Generic NXAPI exception.""" pass class NXAPICommandError(NXAPIError): def __init__(self, command, message): self.command = command self.message = message def __repr__(self): return 'The command "{}" gave the error "{}".'.format( sel...
18.333333
65
0.654545
77
770
6.337662
0.467532
0.07377
0.07377
0
0
0
0
0
0
0
0
0
0.235065
770
41
66
18.780488
0.828523
0.242857
0
0.263158
0
0
0.066427
0
0
0
0
0
0
1
0.105263
false
0.263158
0
0.052632
0.526316
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
df84f594b338b4f46fb674c3da1a1636f8537245
766
py
Python
src/img_util.py
naem1023/comic-crawler
24daaea231122e5049af44153eb320f76deffde2
[ "MIT" ]
null
null
null
src/img_util.py
naem1023/comic-crawler
24daaea231122e5049af44153eb320f76deffde2
[ "MIT" ]
4
2020-06-06T00:12:42.000Z
2022-03-12T00:32:10.000Z
src/img_util.py
naem1023/comic-crawler
24daaea231122e5049af44153eb320f76deffde2
[ "MIT" ]
null
null
null
def delete_navi_bar(driver): """Delete navigation of page for capturing clear image. """ js_string = """ function f() { var x = document.getElementsByClassName("manga-bottom-navi"); for(var i = x.length - 1; i >= 0; i--) { x[i].parentNode.removeChild(x[i]); } } f(); ...
24.709677
64
0.574413
93
766
4.623656
0.408602
0.074419
0.074419
0.07907
0.567442
0.567442
0.567442
0.567442
0.330233
0.330233
0
0.007181
0.272846
766
31
65
24.709677
0.764811
0.177546
0
0.636364
0
0
0.678218
0.282178
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
df8a61948b20fa7f74303bd764e0bddf4135648b
1,373
py
Python
965.univalued-binary-tree.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
965.univalued-binary-tree.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
965.univalued-binary-tree.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=965 lang=python # # [965] Univalued Binary Tree # # https://leetcode.com/problems/univalued-binary-tree/description/ # # algorithms # Easy (66.96%) # Likes: 222 # Dislikes: 36 # Total Accepted: 43.7K # Total Submissions: 65.3K # Testcase Example: '[1,1,1,1,1,null,1]' # # A ...
18.306667
85
0.595047
198
1,373
4.106061
0.459596
0.01968
0.02214
0.01968
0.071341
0.0246
0.0246
0
0
0
0
0.04829
0.276038
1,373
74
86
18.554054
0.769618
0.531682
0
0.25
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
df8b407a97a9963fd97e20231c745cbbd8f314bf
302
py
Python
src/cores/kb_solve/directions.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
src/cores/kb_solve/directions.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
src/cores/kb_solve/directions.py
snowdence/hcmus_ai_wumpus
a4f98cd294765b7094419e36a4f066a548123fe3
[ "MIT" ]
null
null
null
class DIRECTIONS: UP = (0, 1) # North UP South DOWN West LEFT EAST RIGHT DOWN = (0, -1) RIGHT = (1, 0) LEFT = (-1, 0) NORTH = (0, 1) SOUTH = (0, -1) EAST = (1, 0) WEST = (-1, 0) l_directions = [UP, DOWN, RIGHT, LEFT] LM_DIRECTIONS = [NORTH, SOUTH, EAST, WEST]
23.230769
59
0.513245
46
302
3.326087
0.304348
0.052288
0
0
0
0
0
0
0
0
0
0.078049
0.321192
302
12
60
25.166667
0.668293
0.13245
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
df8ded00dd28c0e6b3a11975940107dae04c01d4
100,345
py
Python
apfell_api_wrapper/apfell_cli.py
Dviros/Apfell
c9089afb208bff310a8e6d8389cbccd6ae633f87
[ "BSD-3-Clause" ]
null
null
null
apfell_api_wrapper/apfell_cli.py
Dviros/Apfell
c9089afb208bff310a8e6d8389cbccd6ae633f87
[ "BSD-3-Clause" ]
null
null
null
apfell_api_wrapper/apfell_cli.py
Dviros/Apfell
c9089afb208bff310a8e6d8389cbccd6ae633f87
[ "BSD-3-Clause" ]
null
null
null
import aiohttp import asyncio import json from typing import Dict, List, Union async def json_print(thing): print(json.dumps(thing, indent=2, default=lambda o: o.to_json())) async def json_apfell_obj(thing): return json.loads(json.dumps(thing, default=lambda o: o.to_json())) class APIToken: def __init...
36.383249
186
0.587722
11,424
100,345
4.973127
0.0323
0.029747
0.013201
0.018253
0.753578
0.659919
0.618749
0.60157
0.581997
0.561949
0
0.004742
0.316966
100,345
2,757
187
36.396445
0.824173
0.040809
0
0.700753
0
0
0.030034
0.009859
0
0
0
0
0
1
0.164232
false
0.00664
0.001771
0.075697
0.293935
0.005312
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
df8f7ab90da5fa178b8ded136f6a227273e014cb
2,281
py
Python
neoman/yubicommon/qt/__init__.py
Yubico/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
5
2015-05-14T16:26:26.000Z
2021-11-16T21:26:38.000Z
neoman/yubicommon/qt/__init__.py
DalavanCloud/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
2
2015-01-30T10:30:41.000Z
2015-04-16T09:31:38.000Z
neoman/yubicommon/qt/__init__.py
DalavanCloud/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
4
2015-05-14T16:26:30.000Z
2021-11-16T21:26:28.000Z
# Copyright (c) 2013 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
38.661017
76
0.73345
310
2,281
5.348387
0.525806
0.024125
0.018094
0.027744
0.110977
0.082027
0.082027
0.082027
0.082027
0.082027
0
0.009863
0.199912
2,281
58
77
39.327586
0.89863
0.629987
0
0
0
0
0.098522
0
0
0
0
0
0
1
0.043478
false
0
0.391304
0
0.434783
0.043478
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
df905bc351d7f12704a926c3971aa0f08d744fbd
286
py
Python
p7.py
rammyaiyer55/Introduction-into-Python
6c9220de4dc30e406bf76f637ad3a4818cead9f1
[ "MIT" ]
null
null
null
p7.py
rammyaiyer55/Introduction-into-Python
6c9220de4dc30e406bf76f637ad3a4818cead9f1
[ "MIT" ]
null
null
null
p7.py
rammyaiyer55/Introduction-into-Python
6c9220de4dc30e406bf76f637ad3a4818cead9f1
[ "MIT" ]
null
null
null
t=int(input("Enter the number of test cases:")) temp='' msg=input("Enter your message:") print(len(msg)) ss=list(msg) if ss%2==0: for i in range(len(ss)): if i%2==0: temp+=ss[i].upper() else: temp+=ss[i].lower() else: for i in range(len(ss)): if print(temp)
19.066667
48
0.587413
54
286
3.111111
0.5
0.119048
0.071429
0.130952
0.214286
0.214286
0.214286
0
0
0
0
0.017544
0.202797
286
15
49
19.066667
0.719298
0
0
0.266667
0
0
0.18315
0
0
0
0
0
0
0
null
null
0
0
null
null
0.133333
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
10c0870da00b35c6778a8e70ca0a44b497c66b39
2,708
py
Python
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
1
2020-06-30T21:06:02.000Z
2020-06-30T21:06:02.000Z
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
null
null
null
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
null
null
null
"""This module regroups preset patterns related to schools in order to quickly create emails using the NamesAlgorithm Description ----------- You can either subclass an already defined school or create a new school by subclass NamePatterns. For instance, improving a school would look like this: class EDHEC2(EDHE...
23.964602
78
0.638848
302
2,708
5.698676
0.44702
0.170831
0.069727
0.087159
0.196979
0.07147
0
0
0
0
0
0.003428
0.245938
2,708
112
79
24.178571
0.839373
0.550222
0
0.333333
0
0
0.16835
0
0
0
0
0
0
1
0
false
0
0.02381
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
10c08de6fd348e965adc6b4cd3b914c3ed69fd8d
821
py
Python
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
24
2021-04-02T20:54:45.000Z
2021-11-22T05:37:34.000Z
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
2
2021-04-04T03:45:38.000Z
2021-04-19T12:59:37.000Z
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
10
2021-04-02T20:57:38.000Z
2021-11-17T07:35:59.000Z
from typing import Any from wav2vec_toolkit.text_preprocessing.normalizers import NormalizerOperation def is_upper_vowel(letter): return letter in ["A", "E", "I", "O", "U", "Á", "É", "Í", "Ó", "Ú"] def irish_lower_word(word): if len(word) > 1 and word[0] in ["n", "t"] and is_upper_vowel(word[1]): r...
30.407407
87
0.634592
112
821
4.464286
0.544643
0.03
0.048
0
0
0
0
0
0
0
0
0.012214
0.202192
821
26
88
31.576923
0.751145
0
0
0
0
0
0.047503
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0.055556
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
10c21646af3e0a3b43959840da1cc1ba5fb1fa68
6,077
py
Python
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
1
2019-06-23T05:44:46.000Z
2019-06-23T05:44:46.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: nullabletypes.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as ...
26.889381
342
0.729636
739
6,077
5.698241
0.17456
0.037996
0.054856
0.015436
0.589884
0.556637
0.530515
0.504393
0.486345
0.417478
0
0.044873
0.138226
6,077
225
343
27.008889
0.759213
0.067961
0
0.605263
1
0.005263
0.128582
0.055713
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
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
10ccc2f736285f1e812a42e394e0d8d9c3d5186a
2,248
py
Python
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-14 22:02 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.CreateModel( name='UserProfile', fields...
49.955556
114
0.593416
233
2,248
5.575107
0.450644
0.084681
0.084681
0.096228
0.263279
0.094688
0.066205
0
0
0
0
0.027545
0.257117
2,248
44
115
51.090909
0.750299
0.020463
0
0
1
0
0.160909
0
0
0
0
0
0
1
0
false
0.027027
0.027027
0
0.135135
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
10d101f89f65a141c9c034efc1f2f95b8c832da5
409
py
Python
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
UniversitaDellaCalabria/urlShortener
d5e9a7a5b2a8253ce72fb28ec4f95b06ed4782fc
[ "BSD-3-Clause" ]
4
2020-06-21T07:09:34.000Z
2020-09-30T10:49:59.000Z
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
xmomix/urlShortener
fb4bbf9c3c909dfdf421e85bbdffb41fbb167f9f
[ "BSD-3-Clause" ]
2
2020-06-20T21:34:30.000Z
2020-10-21T14:06:40.000Z
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
xmomix/urlShortener
fb4bbf9c3c909dfdf421e85bbdffb41fbb167f9f
[ "BSD-3-Clause" ]
1
2020-06-22T09:47:24.000Z
2020-06-22T09:47:24.000Z
# Generated by Django 3.0.5 on 2020-04-07 22:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('urlshortener', '0002_auto_20200405_1734'), ] operations = [ migrations.AlterModelOptions( name='urlshortener', options={'ver...
22.722222
96
0.633252
42
409
6.02381
0.785714
0.086957
0
0
0
0
0
0
0
0
0
0.100977
0.249389
409
17
97
24.058824
0.723127
0.110024
0
0
1
0
0.292818
0.063536
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
10d1c25e99e7cd2d15556b2deb5cf0094ac0d49a
704
py
Python
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-23 17:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('virtualapp', '0002_assignment_assignmentno'), ] operations = [ migrations.CreateModel( name='Submission', fields=[ ...
27.076923
86
0.545455
60
704
6.316667
0.783333
0.094987
0.131926
0.137203
0
0
0
0
0
0
0
0.044118
0.323864
704
25
87
28.16
0.752101
0.06392
0
0
1
0
0.156773
0.042618
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
10d33a446c94dacba57fcaf682f107f5f0331817
903
py
Python
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
51
2021-03-19T14:14:31.000Z
2022-02-18T00:42:51.000Z
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
9
2021-03-31T15:39:28.000Z
2021-04-16T13:28:15.000Z
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
1
2021-07-26T04:54:18.000Z
2021-07-26T04:54:18.000Z
""" Package contains datasets. """ from .dataset import ( Dataset, DatasetBase, DatasetConcatView, DatasetIndexedView, DatasetSlicedView, concat, create_view, rationed_split, stratified_split, ) from .example_factory import Example, ExampleFactory, ExampleFormat from .hierarhical_da...
24.405405
89
0.739756
89
903
7.359551
0.516854
0.061069
0.070229
0
0
0
0
0
0
0
0
0
0.184939
903
36
90
25.083333
0.889946
0.028793
0
0
0
0
0.088608
0
0
0
0
0
0
1
0.034483
false
0
0.344828
0
0.37931
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
10d3bc04013d12bee2f194cf78434bf8cc7b7923
7,263
py
Python
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
null
null
null
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
1
2016-04-12T12:39:52.000Z
2016-04-12T12:39:52.000Z
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
null
null
null
# 1) find contours of the receipt # 2) if there are more than 4 vertices, find those which # are the most likely to be receipt vertices, mark and show them import cv2 import numpy as np import imutils from transform import four_point_transform from skimage.filter import threshold_adaptive font = cv2.FONT_HERSHEY_SIM...
33.781395
86
0.569324
968
7,263
4.103306
0.181818
0.055388
0.013595
0.015106
0.369839
0.312941
0.238671
0.238671
0.217523
0.204431
0
0.040115
0.330717
7,263
214
87
33.939252
0.777001
0.165221
0
0.283688
0
0
0.038277
0
0
0
0
0
0
0
null
null
0
0.035461
null
null
0.092199
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
10d3f10b652bc3b204660fb2f81053f0ef5ca483
8,549
py
Python
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
1
2018-02-22T01:06:00.000Z
2018-02-22T01:06:00.000Z
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
null
null
null
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- from time import time from collections import deque from threading import RLock, Thread from random import Random from httplib import HTTPConnection, responses from argparse import ArgumentParser class RWF: def __init__(self, num_threads=30, conn_timeout=1, ...
38.859091
79
0.561352
1,031
8,549
4.502425
0.226964
0.034468
0.029082
0.044593
0.182034
0.132486
0.121284
0.121284
0.090047
0.064196
0
0.016121
0.332437
8,549
219
80
39.03653
0.797267
0.094631
0
0.153005
0
0.005464
0.117053
0
0
0
0
0
0
0
null
null
0.005464
0.032787
null
null
0.005464
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
10d657ca9f52a4409a45cadb1528a0462f3303c6
1,169
py
Python
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #...the usual suspects. import os, inspect #...for the unit testing. import unittest #...for the logging. import logging as lg # The wrapper class to test. from nor import NOR class TestNOR(unittest.TestCase): def setUp(self): pass def tearDown(self)...
21.648148
77
0.582549
144
1,169
4.541667
0.5
0.045872
0.110092
0.12844
0.171254
0.088685
0
0
0
0
0
0.019715
0.218991
1,169
53
78
22.056604
0.696605
0.203593
0
0.26087
0
0
0.247008
0.15234
0
0
0
0
0.173913
1
0.130435
false
0.086957
0.173913
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
10d7a4e08ece3e0ff7e6d4fe13926d33defb668e
1,506
py
Python
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
90
2015-04-07T10:26:53.000Z
2022-03-07T15:14:57.000Z
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
14
2015-10-13T16:25:59.000Z
2021-01-21T18:31:03.000Z
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
32
2015-04-07T10:41:29.000Z
2022-02-26T05:17:28.000Z
import avl import random import sys import coverage import time import numpy start = time.time() branchesHit = set() maxval = int(sys.argv[1]) testlen = int(sys.argv[2]) numtests = int(sys.argv[3]) cov = coverage.coverage(branch=True, source=["avl.py"]) cov.start() for t in xrange(0,numtests): a = avl.AVLTree...
24.688525
57
0.522576
186
1,506
4.204301
0.38172
0.023018
0.038363
0
0
0
0
0
0
0
0
0.011224
0.34927
1,506
60
58
25.1
0.786735
0
0
0
0
0
0.017264
0
0
0
0
0
0.039216
0
null
null
0
0.117647
null
null
0.078431
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
10dbd95522cfda0f51f8b8c34cf1b090e5b9492f
3,504
py
Python
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
null
null
null
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
null
null
null
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
1
2021-06-13T12:44:31.000Z
2021-06-13T12:44:31.000Z
import sys import os from tests.test_single_file import SingleFile from .rootpath import Rootpath from .report_file import RowCSV from .report_file import RowDuplicated class Report: """ @overview: this class print the report of a list of files in CSV format """ def __init__(self, new_report_name):...
28.958678
102
0.551941
393
3,504
4.819338
0.239186
0.029567
0.022175
0.021119
0.49208
0.470961
0.470961
0.470961
0.470961
0.470961
0
0.003848
0.332477
3,504
120
103
29.2
0.8059
0.202626
0
0.34375
0
0
0.109375
0.021635
0
0
0
0.008333
0
1
0.234375
false
0.015625
0.09375
0.0625
0.453125
0.09375
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
10de9730706a6a2f04643d640b347ca8271e4865
170
py
Python
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys s = sys.stdin.read().split() def main(): ans = "YES" if s[0] == s[1][::-1] else "NO" print(ans) if __name__ == "__main__": main()
13.076923
48
0.488235
25
170
3
0.68
0
0
0
0
0
0
0
0
0
0
0.02521
0.3
170
12
49
14.166667
0.605042
0
0
0
0
0
0.082278
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
10e23c5989f6592db2996a27a31a5176cbcc0741
1,061
py
Python
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
''' 1. Load and normalizeing the CIFAR10 training and test datasets using torchvision 2. Define a Convolutional Neural Network 3. Define a loss function 4. Train the network on the training data 5. Test the network on the test data ''' # Reference: Pytorch Tutorial 60 minute Blitz, Training a classifier # Link: https:...
40.807692
112
0.758718
149
1,061
5.369128
0.489933
0.015
0.01875
0.025
0.1125
0.1125
0.015
0.015
0.015
0.015
0
0.032735
0.107446
1,061
25
113
42.44
0.812038
0.346843
0
0
0
0
0.076246
0
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
10e4e75e4df7060ce2493ae06b80ee7bd8d94593
883
py
Python
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
1
2021-08-16T20:21:11.000Z
2021-08-16T20:21:11.000Z
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
null
null
null
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-04 01:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('dualtext_api', '0012_aut...
32.703704
153
0.676104
105
883
5.485714
0.438095
0.055556
0.072917
0.114583
0.489583
0.409722
0.28125
0.28125
0.28125
0.28125
0
0.044669
0.214043
883
26
154
33.961538
0.785303
0.050963
0
0.3
1
0
0.104067
0.027512
0
0
0
0
0
1
0
false
0
0.15
0
0.3
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
10e8609558f729c1c5d880e7bbeba6d000ba22a8
23,221
py
Python
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
4
2022-03-29T08:50:37.000Z
2022-03-30T12:00:22.000Z
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
import numbers from typing import Union, List import numpy import torch EPSILON = torch.finfo(torch.float32).eps __all__ = ["ComplexTensor"] class ComplexTensor: def __init__( self, real: Union[torch.Tensor, numpy.ndarray], imag=None, device=None ): if imag is None: if isinstance...
33.078348
88
0.56535
2,605
23,221
4.93167
0.09405
0.085312
0.094808
0.105083
0.591889
0.497003
0.428116
0.41029
0.355102
0.314782
0
0.00431
0.310538
23,221
701
89
33.125535
0.798126
0.022738
0
0.283154
0
0
0.051477
0
0
0
0
0
0.003584
1
0.188172
false
0
0.012545
0.102151
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
10e947bdae89ed7b8db18360f7d290e49b33356b
8,638
py
Python
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
10
2017-04-11T19:18:40.000Z
2019-10-17T18:00:30.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
2
2017-04-20T17:32:57.000Z
2021-10-18T17:15:00.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
4
2017-04-12T23:59:37.000Z
2018-04-14T14:34:59.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2017 IBM Corporation Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
35.113821
86
0.607432
1,049
8,638
4.773117
0.20877
0.033553
0.026962
0.019972
0.258438
0.192131
0.170561
0.141003
0.141003
0.141003
0
0.00258
0.282125
8,638
245
87
35.257143
0.80487
0.013313
0
0.180645
0
0
0.062027
0.008008
0
0
0
0
0
0
null
null
0
0.03871
null
null
0.058065
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
10eddb0bda4ef9a212e7422cec09a64125c85f9d
9,628
py
Python
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """hw1_310555029.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1JRZxfH5avZg0896ddvxZSfm2lUtMGKSu #Linear Regression ##(0) Load the data -> Standardize data -> Split the dataset """ import numpy as np import pandas as ...
30.565079
229
0.677399
1,600
9,628
3.87125
0.13375
0.025186
0.026154
0.031482
0.666936
0.628027
0.61947
0.605102
0.597352
0.597352
0
0.020086
0.177815
9,628
315
230
30.565079
0.762127
0.113004
0
0.679612
1
0
0.075393
0.005685
0
0
0
0
0
1
0.029126
false
0
0.009709
0.004854
0.067961
0.11165
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
10f257bee6c8b9c72b45debde35fc8220e1d7d09
2,663
py
Python
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-29T03:48:42.000Z
2019-01-29T07:51:31.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-09T16:03:17.000Z
2019-02-13T13:58:28.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import cntk as C import numpy as np import onnx import os model_file = 'model.onnx' data_dir = 'test_data_set_0' def SaveTensorProto(file_path, variable, data): tp = onnx.TensorProto() tp.name = variable.uid for...
32.876543
132
0.676305
404
2,663
4.259901
0.319307
0.036607
0.044741
0.03312
0.163277
0.129576
0.094131
0.070889
0.070889
0.070889
0
0.01899
0.18926
2,663
80
133
33.2875
0.778138
0.06196
0
0.096774
0
0
0.040915
0
0
0
0
0.0125
0
1
0.096774
false
0
0.064516
0
0.16129
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
10f666661e1b73d5f929f70df77e0f7256e277cd
8,822
py
Python
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
2
2019-12-02T21:26:01.000Z
2022-03-12T18:35:24.000Z
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
28
2019-10-20T10:56:03.000Z
2019-10-27T13:16:45.000Z
irbt/cloud.py
tidalf/irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
null
null
null
""" Cloud class for authentication and connexion setup. It allow interactions with the irbt cloud api """ import json from urllib.parse import urlparse from aws_requests_auth.aws_auth import AWSRequestsAuth import requests from .logger import logging logger = logging.getLogger(__name__) class Cloud: """ ...
34.596078
84
0.540807
945
8,822
4.891005
0.244444
0.027694
0.023799
0.012981
0.105149
0.084812
0.084812
0.061445
0.034617
0.034617
0
0.008261
0.368851
8,822
254
85
34.732283
0.821839
0.186806
0
0.1375
0
0
0.14493
0.014362
0
0
0
0.003937
0
1
0.05625
false
0.08125
0.03125
0
0.16875
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
10f7d07ce41f42aef80a7a8089cabc1552820753
403
py
Python
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
valcasa = float(input('Qual o valor da casa? R$')) sal = float(input('Qual o valor do seu salário? R$ ')) anos = int(input('Em quantos anos você vai pagar?')) meses = anos * 12 valprest = valcasa / meses if valprest >= sal * 0.3: print('Seu empréstimo foi aprovado e o valor da prestação é de R${:.2f}'.format(valpre...
40.3
94
0.682382
68
403
4.044118
0.588235
0.087273
0.101818
0.109091
0.145455
0
0
0
0
0
0
0.021277
0.183623
403
9
95
44.777778
0.81459
0
0
0
0
0
0.51861
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
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
10fc2e94412f589e0e53ed118f1b0edfd3dbc613
930
py
Python
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2020-12-19T18:48:42.000Z
2020-12-19T18:48:42.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
430
2019-07-03T21:09:12.000Z
2021-11-09T08:09:41.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2019-12-20T16:59:18.000Z
2019-12-20T16:59:18.000Z
"""URL Configuration.""" from django.conf import settings from django.contrib import admin from django.urls import include, path from django.views.decorators.csrf import csrf_exempt import debug_toolbar from csp.decorators import csp_exempt from graphene_django.views import GraphQLView from rough_trade_calendar impo...
32.068966
85
0.737634
109
930
6.100917
0.376147
0.06015
0.081203
0
0
0
0
0
0
0
0
0
0.133333
930
28
86
33.214286
0.825062
0.019355
0
0
0
0
0.156733
0.02649
0
0
0
0
0
1
0
false
0
0.363636
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
10fc8f53a38886959ced18253a539de49e8b8476
10,010
py
Python
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
6
2015-01-26T16:14:43.000Z
2019-08-22T01:29:24.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
3
2015-01-06T13:31:28.000Z
2016-10-11T16:52:09.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
null
null
null
#line to run: #java -classpath D:\bin\jython-2.1\jython.jar;D:\bin\eclipse331_1\plugins\org.junit_3.8.2.v200706111738\junit.jar;D:\bin\eclipse331_1\plugins\org.apache.ant_1.7.0.v200706080842\lib\ant.jar org.python.util.jython w:\org.python.pydev\pysrc\tests\test_jysimpleTipper.py import unittest import os import sys #...
38.79845
266
0.599101
1,222
10,010
4.765957
0.184124
0.038462
0.076923
0.10989
0.53829
0.48283
0.390968
0.307521
0.231628
0.140797
0
0.023784
0.243956
10,010
257
267
38.949416
0.745772
0.136863
0
0.175824
0
0.010989
0.161148
0.045312
0
0
0
0
0.43956
1
0.104396
false
0.005495
0.274725
0
0.417582
0.027473
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
10ff3de40776e6430bc11e0702e1663303a5590b
7,829
py
Python
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
86
2017-07-04T17:03:33.000Z
2022-03-06T01:00:56.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
17
2017-07-19T11:09:20.000Z
2021-03-17T16:48:06.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
18
2017-07-28T00:50:05.000Z
2021-09-24T06:09:27.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer\main.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainW...
55.133803
97
0.711968
841
7,829
6.491082
0.20214
0.076571
0.064481
0.030775
0.163217
0.086096
0.038102
0.01612
0.01612
0.01612
0
0.032734
0.168859
7,829
141
98
55.524823
0.806209
0.023502
0
0.031008
1
0
0.082231
0
0
0
0
0
0
1
0.015504
false
0
0.007752
0
0.031008
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
80083609ce2db45581369120327cc17264cf2da4
2,414
py
Python
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
import locale from iso639 import languages from iso3166 import countries DEFAULT_LANGUAGE_CODE = "en_US" class Localization(object): def __init__(self, language_code=None): self._language_code = None self.country = None self.language = None self.explicit = bool(language_code) ...
33.527778
102
0.60232
265
2,414
5.332075
0.260377
0.203822
0.067941
0.067941
0.363057
0.154989
0.154989
0.104034
0
0
0
0.015024
0.310688
2,414
71
103
34
0.834135
0.036454
0
0.214286
0
0
0.054671
0
0
0
0
0
0
1
0.107143
false
0.017857
0.053571
0.017857
0.285714
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
8011547341d55f4226d084d9c454ab332252453a
542
py
Python
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
#to generate a random name import tkinter as tk import random def namegen(): f=open("names.txt",'r') r2=random.randrange(0,4945) countline=0;name='' for line in f: if(countline==r2): name=line break countline+=1 f.close() message=tk.Message(r,text=name,bg=...
23.565217
78
0.621771
82
542
4.109756
0.560976
0.059347
0
0
0
0
0
0
0
0
0
0.030093
0.202952
542
22
79
24.636364
0.75
0.095941
0
0
1
0
0.100616
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.157895
0.052632
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
801226395bcb40cc823fe4dd61aaa8246c7fea5e
1,163
py
Python
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
def wrapper(func): def _inner(a): results = [] results.append(func(a)) v = results[0].next() idx = 0 while True: if not isinstance(v, Result): results.append(func(v)) idx = len(results) - 1 v = results[idx].next() ...
21.537037
49
0.450559
157
1,163
3.324841
0.216561
0.210728
0.030651
0.045977
0.318008
0.272031
0.272031
0.272031
0.272031
0.272031
0
0.033382
0.407567
1,163
54
49
21.537037
0.724238
0
0
0.4375
0
0
0
0
0
0
0
0
0
1
0.145833
false
0
0
0
0.1875
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
80135844df6de664ba97f408d31907df391e856c
9,778
py
Python
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
28.342029
245
0.602679
1,161
9,778
4.950904
0.139535
0.048017
0.172234
0.076896
0.603166
0.502088
0.392832
0.335421
0.335421
0.335421
0
0.002712
0.321129
9,778
344
246
28.424419
0.863212
0.548272
0
0.086538
0
0
0.082039
0
0
0
0
0
0
1
0.211538
false
0
0.019231
0.019231
0.394231
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
80151715f16054e2414846460fbd9c81a2d95a58
1,180
py
Python
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
921
2017-03-09T01:01:24.000Z
2019-04-16T11:38:25.000Z
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
1,996
2017-03-03T22:07:50.000Z
2019-04-17T00:02:28.000Z
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
241
2017-03-09T01:00:04.000Z
2019-04-15T18:53:35.000Z
# Copyright 2017 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
33.714286
74
0.784746
170
1,180
5.347059
0.558824
0.066007
0.061606
0.066007
0.063806
0
0
0
0
0
0
0.007937
0.145763
1,180
34
75
34.705882
0.893849
0.620339
0
0
0
0
0.016548
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8016eea42aa1ca7b52a7c516e1a5d77146288a7c
8,313
py
Python
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
import re import sys import copy import operator import numpy as np import instructions import trace from scipy.optimize import nnls from scipy.linalg import solve from sets import Set from scipy.io import savemat import pdb high_cost = ['ARRAYLEN_GC_OP', 'STRLEN_OP', 'STRGETITEM_OP', 'GETFIELD_GC_PURE_OP...
32.857708
115
0.550583
1,059
8,313
4.140699
0.219075
0.020753
0.015051
0.010262
0.171722
0.105359
0.061117
0.046978
0.046978
0.023717
0
0.016504
0.322146
8,313
252
116
32.988095
0.761668
0.087453
0
0.176744
0
0.009302
0.12538
0.019289
0
0
0
0.003968
0
0
null
null
0
0.055814
null
null
0.023256
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
80171e1550ef369d988a5b4162e40a61643ab261
4,266
py
Python
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
from ray.rllib.models.tf.tf_modelv2 import TFModelV2 from ray.rllib.models.misc import normc_initializer from ray.rllib.models.lstm import add_time_dimension from ray.rllib.models import ModelCatalog import tensorflow as tf tf.disable_v2_behavior() import numpy as np # TODO: # ModelCatalog.register_custom_model("RNNmo...
44.905263
125
0.63549
577
4,266
4.495667
0.187175
0.086353
0.155359
0.151118
0.571318
0.508867
0.508867
0.508867
0.508867
0.472629
0
0.024718
0.231833
4,266
94
126
45.382979
0.76686
0.112049
0
0.34375
0
0
0.03893
0
0
0
0
0.010638
0
1
0.0625
false
0
0.09375
0.03125
0.21875
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
801da7efb1d2bb0574eb4acbe4498aa1097d511b
13,000
py
Python
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
4
2020-03-13T11:35:30.000Z
2020-04-21T03:01:34.000Z
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
4
2020-01-07T20:58:32.000Z
2020-04-01T22:02:31.000Z
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
2
2020-09-08T19:34:52.000Z
2021-06-18T14:58:47.000Z
""" ========================================================================= sim_util.py ========================================================================= Utilty functions for running a testing simulation Author : Xiaoyu Yan (xy97), Eric Tang (et396) Date : 21 Decemeber 2019 """ import struct import random...
39.039039
105
0.639231
1,632
13,000
4.895221
0.188113
0.036801
0.023407
0.017023
0.296658
0.241582
0.132933
0.113531
0.101389
0.085868
0
0.006607
0.185
13,000
332
106
39.156627
0.747428
0.190077
0
0.170306
0
0
0.039572
0.011566
0
0
0.001434
0
0.026201
1
0.091703
false
0.065502
0.09607
0.0131
0.262009
0.004367
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
801e4c52ee9f6593298d55ab16552e0b03194f13
997
py
Python
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
24
2015-05-27T22:57:17.000Z
2022-02-11T20:27:40.000Z
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
null
null
null
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
2
2015-11-21T19:46:20.000Z
2021-07-02T13:09:07.000Z
import autograd.numpy as np class WeightsParser(object): """A helper class to index into a parameter vector.""" def __init__(self): self.idxs_and_shapes = {} self.N = 0 def add_weights(self, name, shape): start = self.N self.N += np.prod(shape) self.idxs_and_shape...
27.694444
78
0.616851
153
997
3.849673
0.352941
0.054329
0.056027
0.086587
0.207131
0.207131
0.118846
0.118846
0.118846
0.118846
0
0.003963
0.240722
997
36
78
27.694444
0.774108
0.211635
0
0
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0.045455
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8022ba17844080c9b1e27e6e7df31151af4a61d8
595
py
Python
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
1
2017-04-26T10:26:01.000Z
2017-04-26T10:26:01.000Z
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
25
2017-04-26T20:08:55.000Z
2021-06-07T19:14:43.000Z
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-11-28 14:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gcb_web_auth', '0005_auto_20181128_1453'), ] operations = [ migrations.Alte...
28.333333
164
0.672269
74
595
5.175676
0.797297
0.073107
0
0
0
0
0
0
0
0
0
0.076087
0.226891
595
20
165
29.75
0.756522
0.114286
0
0
1
0
0.328244
0.093511
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
8025bdd4ec643cfd443001ce73dc281d84760e7c
1,763
py
Python
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
null
null
null
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
1
2021-03-22T19:07:43.000Z
2021-03-22T19:07:43.000Z
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
null
null
null
from django.shortcuts import render from .serializers import RegisterSerializer, LoginSerializer, UserSerializer from rest_framework.generics import GenericAPIView from rest_framework import status, permissions from rest_framework.response import Response from knox.models import AuthToken from django.contrib.auth impor...
38.326087
89
0.739081
199
1,763
6.376884
0.306533
0.082742
0.07565
0.068558
0.330181
0.330181
0.330181
0.330181
0.330181
0.330181
0
0.013076
0.175837
1,763
46
90
38.326087
0.860289
0
0
0.277778
0
0
0.005102
0
0
0
0
0
0
1
0.083333
false
0
0.194444
0
0.638889
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
80281dee97ef60a06b20d70a1384bfacbdd889f5
726
py
Python
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
# Generated by Django 2.0.8 on 2018-11-14 13:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('insights_integration', '0003_host_host_vars'), ] operations = [ migrations.CreateModel( name='P...
30.25
136
0.61708
74
726
5.905405
0.689189
0.05492
0.064073
0.100687
0
0
0
0
0
0
0
0.037106
0.257576
726
23
137
31.565217
0.773655
0.061983
0
0
1
0
0.185567
0.047128
0
0
0
0
0
1
0
false
0
0.117647
0
0.294118
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
80355362a6c53716c0ebd75064ddc16a52cea52c
546
py
Python
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
from django.core.mail import EmailMultiAlternatives, send_mail from django.template.loader import render_to_string from django.utils.html import strip_tags from django.conf import settings def send_invite(subject, from_email, to, **email_values): html_content = render_to_string('invite.html', email_values) text_con...
32.117647
62
0.818681
79
546
5.329114
0.417722
0.095012
0.066508
0
0
0
0
0
0
0
0
0
0.100733
546
16
63
34.125
0.857434
0
0
0
0
0
0.020147
0
0
0
0
0
0
1
0.071429
false
0.071429
0.285714
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
803a92ae01e55a173b2caee9d74281f118b22fb7
325
py
Python
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
2
2019-06-09T23:26:44.000Z
2019-06-27T08:18:05.000Z
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='CryptoPlus', version='1.0', description='PyCrypto Cipher extension', author='Christophe Oosterlynck', author_email='tiftof@gmail.com', packages = find_packages('src'), install_requires = ['pycrypto'], package_dir={'': 'sr...
29.545455
46
0.661538
34
325
6.176471
0.794118
0.114286
0
0
0
0
0
0
0
0
0
0.007663
0.196923
325
11
47
29.545455
0.796935
0
0
0
0
0
0.276074
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
803f9899de41d83fff483e1633259c8b02626196
894
py
Python
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import unittest from unittest import mock from mathbind.compilers.gcc import GccCompiler class TestGFortranCompiler(unittest.TestCase): def setUp(self): self.os_system_backup = os.system def tearDown(self): os.system = self.os_system_backup def test1(se...
33.111111
126
0.661074
122
894
4.721311
0.42623
0.111111
0.104167
0.0625
0.479167
0.479167
0.385417
0.385417
0.385417
0.385417
0
0.017906
0.187919
894
27
126
33.111111
0.775482
0.02349
0
0.105263
0
0.052632
0.211913
0
0
0
0
0
0.105263
1
0.210526
false
0
0.210526
0
0.473684
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
80435c72e1c732be18ef85aae2e7cc3ae7039fd9
5,415
py
Python
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
1
2020-03-14T07:24:12.000Z
2020-03-14T07:24:12.000Z
#!/usr/bin/env python3 # request and response in this file refer to the HTTP specification, they are reversed for HTJP import sys import re import base64 from urllib.parse import quote import signal def interrupted(signum, frame): exit() signal.signal(signal.SIGALRM, interrupted) signal.alarm(5) debug = False ...
33.220859
171
0.619021
776
5,415
4.074742
0.199742
0.185958
0.227704
0.008855
0
0
0
0
0
0
0
0.088123
0.228809
5,415
162
172
33.425926
0.669061
0.02807
0
0.047619
0
0.007937
0.046786
0.029479
0
0
0.005325
0
0
1
0.015873
false
0
0.039683
0
0.063492
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
804dac7d85f8d3c3dc9a7cd520102b787d29f816
2,695
py
Python
ooobuild/dyn/rendering/panose_midline.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/rendering/panose_midline.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/rendering/panose_midline.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
40.833333
114
0.735065
324
2,695
5.895062
0.410494
0.031414
0.020942
0.039791
0.056545
0.035602
0
0
0
0
0
0.005055
0.192579
2,695
65
115
41.461538
0.872702
0.272356
0
0
0
0
0.08555
0.030256
0
0
0
0
0
1
0.026316
false
0
0.131579
0
0.552632
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
8053471a9ddfed22d7cd5f0e66617f4be8f9c913
789
py
Python
see-escalation-find-all.py
footoredo/pytorch-a2c-ppo-acktr-gail
3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0
[ "MIT" ]
null
null
null
see-escalation-find-all.py
footoredo/pytorch-a2c-ppo-acktr-gail
3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0
[ "MIT" ]
null
null
null
see-escalation-find-all.py
footoredo/pytorch-a2c-ppo-acktr-gail
3d0263c10340e9d8881f75c64eb2fe9bb0c9e2d0
[ "MIT" ]
null
null
null
import os from pathlib import Path import joblib import json import numpy as np import sys DIR = "./sync-results/escalation-gw/find-all-50-other-play/" for folder in sorted(Path(os.path.abspath(DIR)).iterdir(), key=os.path.getmtime): try: full_path = os.path.join(DIR, folder, "findings.obj") try: ...
28.178571
81
0.623574
102
789
4.754902
0.558824
0.037113
0.041237
0
0
0
0
0
0
0
0
0.010169
0.252218
789
27
82
29.222222
0.811864
0.077313
0
0.173913
0
0
0.10069
0.071724
0
0
0
0
0
1
0
false
0.086957
0.26087
0
0.26087
0.130435
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
8056f250d94ce7f3866f728e1e595d1a463b4b91
437
py
Python
publications/migrations/0015_auto_20201015_0250.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
publications/migrations/0015_auto_20201015_0250.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
publications/migrations/0015_auto_20201015_0250.py
MarkJaroski/aho-dev-dct
75ad72d408ce60ebfdf9c02fe57cdf9edba5e4d7
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2020-10-14 23:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('publications', '0014_auto_20201002_1350'), ] operations = [ migrations.AlterField( model_name='stgknowledgeproducttranslation', ...
23
73
0.633867
45
437
6.022222
0.8
0.066421
0
0
0
0
0
0
0
0
0
0.104615
0.256293
437
18
74
24.277778
0.729231
0.102975
0
0
1
0
0.192308
0.135897
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
8058bafda972807f55fe861789d44c2fc4fc0172
3,255
py
Python
PPAS_agent/dqn_agent/metrics.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
multi_agents/dqn_agent/metrics.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
multi_agents/dqn_agent/metrics.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
# !/usr/bin/hfo_env python3 # encoding utf-8 from collections import namedtuple """ This module is used to test the agent previous trained """ EpisodeMetrics = namedtuple( 'EpisodeMetrics', ['touched_ball', 'passed_ball', 'scored_goal'] ) class GameMetrics: def __init__(self): self.num_ep = 0 ...
33.90625
79
0.634101
430
3,255
4.381395
0.162791
0.096603
0.070064
0.070594
0.428875
0.174098
0.061571
0.061571
0
0
0
0.009935
0.288786
3,255
95
80
34.263158
0.803888
0.041475
0
0
0
0
0.083607
0.03377
0
0
0
0
0
1
0.166667
false
0.181818
0.015152
0
0.227273
0.015152
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
8059d95151962aa5136040ec15fa0c5096751c9d
83,265
py
Python
sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
5
2015-04-16T08:36:17.000Z
2017-05-12T17:20:12.000Z
sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
null
null
null
sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/sql.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
4
2015-03-19T14:39:51.000Z
2019-01-23T08:22:55.000Z
# Copyright (C) 2005, 2006, 2007 Michael Bayer mike_mp@zzzcomputing.com # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Define the base components of SQL expression trees.""" from sqlalchemy import util, exceptions, logging from sqla...
34.421248
253
0.628752
10,086
83,265
5.044418
0.085564
0.017296
0.00853
0.009041
0.297889
0.237706
0.197846
0.159283
0.124081
0.109576
0
0.001374
0.274725
83,265
2,418
254
34.435484
0.841116
0.291779
0
0.355253
0
0.001512
0.03498
0
0
0
0
0.000414
0
1
0.239607
false
0.018896
0.003023
0.0839
0.492063
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
337678c4ca17db22b704fe8316b0715ec39a1903
11,318
py
Python
nbs/17_callback.tracker.py
huangyingw/fastai_fastai
68ff76a21b2f70f44fb91885abcb73c1c213ec1a
[ "Apache-2.0" ]
1
2022-02-06T22:11:10.000Z
2022-02-06T22:11:10.000Z
nbs/17_callback.tracker.py
huangyingw/fastai_fastai
68ff76a21b2f70f44fb91885abcb73c1c213ec1a
[ "Apache-2.0" ]
null
null
null
nbs/17_callback.tracker.py
huangyingw/fastai_fastai
68ff76a21b2f70f44fb91885abcb73c1c213ec1a
[ "Apache-2.0" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py # split_at_heading: true # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.6.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # ...
38.107744
448
0.690758
1,712
11,318
4.417056
0.175818
0.024332
0.021158
0.023803
0.474213
0.42978
0.403729
0.380984
0.369611
0.369611
0
0.014849
0.184838
11,318
296
449
38.236486
0.804791
0.220269
0
0.34104
0
0.00578
0.149274
0.014287
0
0
0
0
0.034682
0
null
null
0
0.040462
null
null
0.017341
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
3378ef303c12c8524e4216c752fb54e286c0e239
1,483
py
Python
ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-06T18:35:57.000Z
2021-04-30T07:16:42.000Z
ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-05T13:39:28.000Z
2021-12-09T04:37:30.000Z
ros/niryo_one_ros/niryo_one_python_api/examples/rpi_example_python_api.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
8
2020-09-25T10:07:15.000Z
2022-03-11T06:26:30.000Z
#!/usr/bin/env python # To use the API, copy these 4 lines on each Python file you create from niryo_one_python_api.niryo_one_api import * import rospy import time rospy.init_node('niryo_one_example_python_api') print "--- Start" n = NiryoOne() try: # Calibrate robot first n.calibrate_auto() print "Cal...
24.716667
67
0.708024
237
1,483
4.14346
0.379747
0.021385
0.07332
0.081466
0.310591
0.254582
0.199593
0.152749
0
0
0
0.019442
0.202293
1,483
59
68
25.135593
0.810651
0.279164
0
0.212121
0
0
0.081439
0.026515
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.151515
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
33792464f4f074a587385ef57184dc0702fd16c5
1,560
py
Python
lib/coloraide/spaces/din99o_lch.py
CodeByZach/sublime_color_helper
9d881e1f036c886fedd94b026735c4727b7a34d3
[ "MIT" ]
14
2021-12-07T02:40:08.000Z
2022-01-24T19:38:17.000Z
lib/coloraide/spaces/din99o_lch.py
CodeByZach/sublime_color_helper
9d881e1f036c886fedd94b026735c4727b7a34d3
[ "MIT" ]
null
null
null
lib/coloraide/spaces/din99o_lch.py
CodeByZach/sublime_color_helper
9d881e1f036c886fedd94b026735c4727b7a34d3
[ "MIT" ]
null
null
null
"""Din99o Lch class.""" from ..spaces import RE_DEFAULT_MATCH from .lch import Lch from .. import util import math import re from ..util import MutableVector ACHROMATIC_THRESHOLD = 0.0000000002 def lch_to_lab(lch: MutableVector) -> MutableVector: """Din99o Lch to lab.""" l, c, h = lch h = util.no_nan(h)...
24
100
0.627564
217
1,560
4.419355
0.391705
0.065693
0.025026
0.054223
0.081335
0
0
0
0
0
0
0.038265
0.246154
1,560
64
101
24.375
0.777211
0.232692
0
0.055556
0
0
0.027515
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.555556
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
3379ae605f4fe6dee7ca30fd5cb645c46ab4b219
4,277
py
Python
scripts/real_data_novility.py
vafaei-ar/pymce
c01197b74fb515a0d6e400310c4d5c0ffad0f3c9
[ "BSD-3-Clause" ]
16
2019-09-11T12:53:15.000Z
2021-12-09T12:07:51.000Z
scripts/real_data_novility.py
vafaei-ar/pymce
c01197b74fb515a0d6e400310c4d5c0ffad0f3c9
[ "BSD-3-Clause" ]
null
null
null
scripts/real_data_novility.py
vafaei-ar/pymce
c01197b74fb515a0d6e400310c4d5c0ffad0f3c9
[ "BSD-3-Clause" ]
3
2019-12-12T08:55:44.000Z
2021-08-23T04:37:53.000Z
# coding: utf-8 # In[1]: import drama as drm import numpy as np import matplotlib.pylab as plt from matplotlib import gridspec from sklearn.metrics import roc_auc_score import os import glob import h5py import scipy.io as sio get_ipython().magic(u'matplotlib inline') # In[12]: fils = sorted(glob.glob('../data...
28.324503
106
0.588964
636
4,277
3.819182
0.355346
0.036229
0.008646
0.018526
0.103746
0.095513
0.032935
0
0
0
0
0.026626
0.227262
4,277
150
107
28.513333
0.708321
0.295067
0
0
0
0
0.100705
0
0
0
0
0
0
0
null
null
0
0.136364
null
null
0.030303
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
337bbbb38e7729936c71cb97a400bd904bc7035f
1,362
py
Python
podcasts/models.py
bycristhian/vurapy
12e35fb9373131181b1b8d4d5701fbbf4231dab8
[ "MIT" ]
null
null
null
podcasts/models.py
bycristhian/vurapy
12e35fb9373131181b1b8d4d5701fbbf4231dab8
[ "MIT" ]
null
null
null
podcasts/models.py
bycristhian/vurapy
12e35fb9373131181b1b8d4d5701fbbf4231dab8
[ "MIT" ]
null
null
null
# Django from django.db import models # Models from django.contrib.auth.models import User class Tag(models.Model): name = models.CharField(max_length=20, unique=True, blank=False, null=False) is_active = models.BooleanField(default=True) created_at = models.DateTimeField(auto_now_add=True) updated...
35.842105
94
0.763583
178
1,362
5.657303
0.314607
0.047666
0.125124
0.148957
0.586892
0.586892
0.555114
0.477656
0.477656
0.477656
0
0.005882
0.126285
1,362
37
95
36.810811
0.840336
0.009545
0
0.347826
0
0
0.053532
0
0
0
0
0
0
1
0
false
0
0.086957
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
337f94e07f01f382312d5a5834d2533c67169194
2,318
py
Python
entrepot/models.py
HunterPen/PmpApi
c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd
[ "Apache-2.0" ]
null
null
null
entrepot/models.py
HunterPen/PmpApi
c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd
[ "Apache-2.0" ]
null
null
null
entrepot/models.py
HunterPen/PmpApi
c50ef9f8ecac7575fc6a45e96bacd18e56b9c0bd
[ "Apache-2.0" ]
null
null
null
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey has `on_delete` set to the desired behavior. # * Remove `managed = False` lines if ...
32.194444
104
0.710095
301
2,318
5.312292
0.332226
0.065666
0.052533
0.090056
0.516573
0.465916
0.448405
0.404628
0.325829
0.292683
0
0.00914
0.197584
2,318
71
105
32.647887
0.850538
0.195427
0
0.404255
1
0
0.049004
0
0
0
0
0
0
1
0
false
0
0.06383
0
0.744681
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
33879c2c16b04f8a3a3b96376e81baf0112fecb9
24,698
py
Python
python/swagger_client/models/vehicle.py
chenxy285/directions-api-clients
2abbeb16a23f4dc5aaaaff45d17750f2b65e6502
[ "Apache-2.0" ]
26
2017-06-15T17:30:09.000Z
2021-12-04T10:45:30.000Z
python/swagger_client/models/vehicle.py
chenxy285/directions-api-clients
2abbeb16a23f4dc5aaaaff45d17750f2b65e6502
[ "Apache-2.0" ]
34
2017-05-24T05:50:04.000Z
2020-12-01T20:34:59.000Z
python/swagger_client/models/vehicle.py
chenxy285/directions-api-clients
2abbeb16a23f4dc5aaaaff45d17750f2b65e6502
[ "Apache-2.0" ]
45
2017-05-24T04:02:09.000Z
2022-01-18T00:21:39.000Z
# coding: utf-8 """ GraphHopper Directions API With the [GraphHopper Directions API](https://www.graphhopper.com/products/) you can integrate A-to-B route planning, turn-by-turn navigation, route optimization, isochrone calculations and other tools in your application. The GraphHopper Directions API consist...
51.886555
8,986
0.661916
3,358
24,698
4.735855
0.168553
0.03471
0.045778
0.044897
0.513991
0.439854
0.382506
0.341759
0.276237
0.234421
0
0.017883
0.236983
24,698
475
8,987
51.995789
0.826002
0.642927
0
0.079602
0
0
0.092555
0
0
0
0
0
0
1
0.169154
false
0
0.024876
0
0.308458
0.00995
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
338be541f52d9a06d46fa449b50022083cb76cc6
7,465
py
Python
SupportFiles/DataStore.py
Esri/ops-server-config
5768cf45eb9e9aeba0f68c15cdd452287b8af746
[ "Apache-2.0" ]
40
2015-01-13T14:15:00.000Z
2021-11-28T21:22:09.000Z
SupportFiles/DataStore.py
Esri/ops-server-config
5768cf45eb9e9aeba0f68c15cdd452287b8af746
[ "Apache-2.0" ]
919
2015-01-13T13:39:01.000Z
2020-05-26T23:00:08.000Z
SupportFiles/DataStore.py
Esri/ops-server-config
5768cf45eb9e9aeba0f68c15cdd452287b8af746
[ "Apache-2.0" ]
19
2015-01-12T23:49:04.000Z
2017-11-03T20:58:47.000Z
#!/usr/bin/env python #------------------------------------------------------------------------------ # Copyright 2014 Esri # 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.apac...
39.08377
166
0.674481
789
7,465
6.110266
0.239544
0.024891
0.031944
0.050197
0.466293
0.451773
0.414644
0.372952
0.348061
0.299108
0
0.00137
0.217683
7,465
190
167
39.289474
0.824144
0.297924
0
0.326316
0
0
0.097884
0.060708
0
0
0
0
0
1
0.105263
false
0.147368
0.063158
0
0.273684
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
33913e22e191281d606b63b42006c5680fa71cd5
1,713
py
Python
services/core-api/app/api/now_applications/models/state_of_land.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
services/core-api/app/api/now_applications/models/state_of_land.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
services/core-api/app/api/now_applications/models/state_of_land.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.schema import FetchedValue from sqlalchemy.ext.associationproxy import association_proxy from app.api.utils.models_mixins import Base from app.extensions import db from app.api.constants import * class StateOfLand(Base): __tablename__ = "state_of_la...
42.825
99
0.781086
229
1,713
5.510917
0.414847
0.107765
0.134707
0.114105
0.358954
0.209192
0.163233
0.087163
0.087163
0
0
0
0.129597
1,713
39
100
43.923077
0.846412
0
0
0
0
0
0.04495
0.019848
0
0
0
0
0
1
0.032258
false
0
0.193548
0.032258
0.935484
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
33914240e2f08e4c90bdfd6dc63f3281d766e6db
2,118
py
Python
tests/scree_clean.py
scicubator/countGauss
7e744c3de1de342d72ef10da76c0c3b4605d70d4
[ "BSD-2-Clause" ]
null
null
null
tests/scree_clean.py
scicubator/countGauss
7e744c3de1de342d72ef10da76c0c3b4605d70d4
[ "BSD-2-Clause" ]
null
null
null
tests/scree_clean.py
scicubator/countGauss
7e744c3de1de342d72ef10da76c0c3b4605d70d4
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division import numpy as np import pylab as plt from collections import Counter from fcube.fcube import countGauss_projection import pickle def gauss_sim(X, k, alg='gauss'): m, n = np.shape(X) idxT = Counter() if alg == 'gauss': G = np.random.randn(n, k) Z = np.dot(X...
26.148148
77
0.567989
336
2,118
3.47619
0.342262
0.027397
0.038527
0.056507
0.293664
0.22774
0.140411
0.140411
0.140411
0.140411
0
0.024042
0.273371
2,118
80
78
26.475
0.734893
0.047214
0
0.131148
0
0
0.062066
0
0
0
0
0
0
0
null
null
0
0.098361
null
null
0.016393
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
3394941e3268a64cf5954ed9a5f7931c7cb4e39a
502
py
Python
basiclive/core/lims/migrations/0045_auto_20191231_1956.py
znarthur/basic-live
79c194311de05af2e1bb21d1bc8c6c14dda356d0
[ "BSD-3-Clause" ]
null
null
null
basiclive/core/lims/migrations/0045_auto_20191231_1956.py
znarthur/basic-live
79c194311de05af2e1bb21d1bc8c6c14dda356d0
[ "BSD-3-Clause" ]
1
2020-12-03T15:27:09.000Z
2020-12-03T15:27:09.000Z
basiclive/core/lims/migrations/0045_auto_20191231_1956.py
znarthur/basic-live
79c194311de05af2e1bb21d1bc8c6c14dda356d0
[ "BSD-3-Clause" ]
1
2021-09-28T21:06:09.000Z
2021-09-28T21:06:09.000Z
# Generated by Django 3.0.1 on 2020-01-01 01:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lims', '0044_auto_20191231_1805'), ] operations = [ migrations.AlterField( model_name='guide', name='kind', ...
26.421053
172
0.603586
55
502
5.4
0.763636
0.026936
0
0
0
0
0
0
0
0
0
0.086387
0.239044
502
18
173
27.888889
0.691099
0.089641
0
0
1
0
0.195604
0.050549
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
339de6a85f644b9eef18049dc419cf13ca337bcc
2,244
py
Python
morpheus_core/tests/helpers.py
morpheus-project/morpheus-framework
7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e
[ "MIT" ]
null
null
null
morpheus_core/tests/helpers.py
morpheus-project/morpheus-framework
7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e
[ "MIT" ]
2
2020-12-12T07:49:18.000Z
2021-02-19T06:08:46.000Z
morpheus_core/tests/helpers.py
morpheus-project/morpheus-framework
7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e
[ "MIT" ]
null
null
null
# MIT License # Copyright 2020 Ryan Hausen # # 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 without limitation the rights # to use, copy, modify, merge, publis...
30.324324
83
0.675579
324
2,244
4.595679
0.435185
0.040296
0.047011
0.052384
0.208193
0.208193
0.184016
0.08865
0.08865
0.08865
0
0.018388
0.176025
2,244
73
84
30.739726
0.786912
0.516488
0
0.071429
0
0
0.073242
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.464286
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
339fd5019bcf3e66f6989dfa1432c8cae6fca4a6
335
py
Python
Chapter 01/Chap01_Example1.128.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.128.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.128.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
x = [1,2,3,4] b1 = bytes(x) print(b1) # --- BY1 print(type(b1)) # --- BY2 print(b1[1]) # --- BY3 print(b1[-3]) # --- BY4 for i in b1: print(i) # --- BY5 size1 = 3 arr1 = bytes(size1) print(arr1)# --- BY6 st1 = "Python is interesting." # string with encoding 'utf-8' arr2 = bytes(st1, 'utf-8') print...
19.705882
31
0.537313
55
335
3.272727
0.563636
0.116667
0
0
0
0
0
0
0
0
0
0.116279
0.229851
335
17
32
19.705882
0.581395
0.250746
0
0
0
0
0.118943
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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