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
91b5d5a9da8d21cc54215371e88cbf75203f4ad6
374
py
Python
tut2.py
ankit98040/TKINTER-JIS
8b650138bf8ab2449da83e910ee33c0caee69a8d
[ "Apache-2.0" ]
null
null
null
tut2.py
ankit98040/TKINTER-JIS
8b650138bf8ab2449da83e910ee33c0caee69a8d
[ "Apache-2.0" ]
null
null
null
tut2.py
ankit98040/TKINTER-JIS
8b650138bf8ab2449da83e910ee33c0caee69a8d
[ "Apache-2.0" ]
null
null
null
from tkinter import * from PIL import Image, ImageTk #python image library #imagetk supports jpg image a1 = Tk() a1.geometry("455x244") #for png image #photo = PhotoImage(file="filename.png") #a2 = Label(image = photo) #a2.pack() image = Image.open("PJXlVd.jpg") photo = ImageTk.PhotoImage(image) ...
17
41
0.671123
51
374
4.921569
0.509804
0.119522
0.095618
0.135458
0.183267
0.183267
0
0
0
0
0
0.043046
0.192513
374
22
42
17
0.788079
0.352941
0
0
0
0
0.078704
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
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
0
0
1
0
91b7b2d421c1a0795b99655b4fa4a8c0503e4114
1,056
py
Python
design_patterns/chapter5/mymath.py
FeliciaMJ/PythonLearningJourney
ae1bfac872ee29256e69df6e0e8e507321404cba
[ "Apache-2.0" ]
null
null
null
design_patterns/chapter5/mymath.py
FeliciaMJ/PythonLearningJourney
ae1bfac872ee29256e69df6e0e8e507321404cba
[ "Apache-2.0" ]
null
null
null
design_patterns/chapter5/mymath.py
FeliciaMJ/PythonLearningJourney
ae1bfac872ee29256e69df6e0e8e507321404cba
[ "Apache-2.0" ]
2
2021-04-04T00:27:29.000Z
2021-06-05T03:26:53.000Z
# coding: utf-8 import functools def memoize(fn): known = dict() @functools.wraps(fn) def memoizer(*args): if args not in known: known[args] = fn(*args) return known[args] return memoizer @memoize def nsum(n): '''返回前n个数字的和''' assert(n >= 0), 'n must be >= 0' ...
25.142857
75
0.507576
131
1,056
3.938931
0.358779
0.011628
0.031008
0.034884
0.085271
0.085271
0.085271
0.085271
0
0
0
0.024523
0.304924
1,056
41
76
25.756098
0.678474
0.035985
0
0.142857
0
0
0.142999
0
0
0
0
0
0.071429
1
0.142857
false
0
0.214286
0
0.5
0.035714
0
0
0
null
0
0
0
0
0
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
1
0
91b88e3d926b20d74b8739d087b18e11fc2bf047
343
py
Python
pyhsms/core/connectionstate.py
cherish-web/pyhsms
83a88b8b45bf1aba30cb7572f44a02478009052b
[ "MIT" ]
2
2021-05-01T12:02:12.000Z
2021-05-03T14:37:27.000Z
pyhsms/core/connectionstate.py
cherish-web/pyhsms
83a88b8b45bf1aba30cb7572f44a02478009052b
[ "MIT" ]
null
null
null
pyhsms/core/connectionstate.py
cherish-web/pyhsms
83a88b8b45bf1aba30cb7572f44a02478009052b
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ #@Time : 2020/7/29 上午 09:49 #@Author : cherish_peng #@Email : 1058386071@qq.com #@File : connectionstate.py #@Software : PyCharm from enum import Enum class ConnectionState(Enum): ''' ConnectionState enum ''' DisConnected = 0 Connecting=1 Connected=2 ...
21.4375
32
0.626822
41
343
5.121951
0.878049
0.180952
0
0
0
0
0
0
0
0
0
0.105882
0.25656
343
16
33
21.4375
0.717647
0.524781
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
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
0
0
1
0
91b96455218c552cfb88f8804f7f9440605930b5
84,787
py
Python
lifelines/fitters/coxph_fitter.py
msanpe/lifelines
a73d441f6347332ca870bf2ec32eeeca410dc6de
[ "MIT" ]
null
null
null
lifelines/fitters/coxph_fitter.py
msanpe/lifelines
a73d441f6347332ca870bf2ec32eeeca410dc6de
[ "MIT" ]
null
null
null
lifelines/fitters/coxph_fitter.py
msanpe/lifelines
a73d441f6347332ca870bf2ec32eeeca410dc6de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time from datetime import datetime import warnings from textwrap import dedent, fill import numpy as np import pandas as pd from numpy.linalg import norm, inv from scipy.linalg import solve as spsolve, LinAlgError from scipy.integrate import trapz from scipy import stats from lifelines....
40.374762
354
0.585868
10,644
84,787
4.496054
0.114619
0.006018
0.001943
0.005642
0.421556
0.36591
0.322551
0.295909
0.265568
0.256833
0
0.015482
0.320485
84,787
2,099
355
40.393997
0.815149
0.319188
0
0.331088
0
0.005775
0.048757
0.0005
0
0
0
0.001906
0.00385
1
0.042348
false
0
0.018287
0.000962
0.106833
0.018287
0
0
0
null
0
0
0
0
0
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
1
0
91ba64e37706ae1e4223523b060a3928b5d8e678
393
py
Python
nlp_server/config/test/test_config.py
asevans48/NLPServer
6feb1d89748165f9efea40d0777d355044c48176
[ "Apache-2.0" ]
null
null
null
nlp_server/config/test/test_config.py
asevans48/NLPServer
6feb1d89748165f9efea40d0777d355044c48176
[ "Apache-2.0" ]
null
null
null
nlp_server/config/test/test_config.py
asevans48/NLPServer
6feb1d89748165f9efea40d0777d355044c48176
[ "Apache-2.0" ]
null
null
null
""" Test configuration loading @author aevans """ import os from nlp_server.config import load_config def test_load_config(): """ Test loading a configuration """ current_dir = os.path.curdir test_path = os.path.sep.join([current_dir, 'data', 'test_config.json']) cfg = load_config.load_conf...
18.714286
75
0.699746
57
393
4.614035
0.526316
0.152091
0.106464
0
0
0
0
0
0
0
0
0
0.198473
393
20
76
19.65
0.834921
0.180662
0
0
0
0
0.06689
0
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91bc729480a0e69ec82630c25580e01aa1aa5937
4,469
py
Python
frappe/utils/safe_exec.py
ektai/frappe3
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
[ "MIT" ]
null
null
null
frappe/utils/safe_exec.py
ektai/frappe3
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
[ "MIT" ]
null
null
null
frappe/utils/safe_exec.py
ektai/frappe3
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
[ "MIT" ]
null
null
null
import os, json, inspect import mimetypes from html2text import html2text from RestrictedPython import compile_restricted, safe_globals import RestrictedPython.Guards import frappe import frappe.utils import frappe.utils.data from frappe.website.utils import (get_shade, get_toc, get_next_link) from frappe.modules impo...
29.401316
118
0.762587
634
4,469
5.11041
0.291798
0.033951
0.033333
0.016667
0.129321
0.046914
0.046914
0.025309
0.025309
0.025309
0
0.002075
0.137167
4,469
152
119
29.401316
0.838174
0.101141
0
0.095652
0
0
0.046965
0
0
0
0
0
0
1
0.043478
false
0.008696
0.104348
0.008696
0.182609
0.026087
0
0
0
null
0
0
0
0
0
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
1
0
91bccefcfa09a20e9fc27c2975179329c5876dd6
2,461
py
Python
simplejson/ordered_dict.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
simplejson/ordered_dict.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
simplejson/ordered_dict.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
"""Drop-in replacement for collections.OrderedDict by Raymond Hettinger http://code.activestate.com/recipes/576693/ """ try: all except NameError: def all(seq): for elem in seq: if not elem: return False return True class OrderedDict(dict, DictMixin): def __init__(self, *args, **kwds): if len(args) > 1:...
26.180851
94
0.670053
363
2,461
4.247934
0.280992
0.049935
0.021401
0.027237
0.123865
0.123865
0.07393
0.045396
0.045396
0.045396
0
0.009548
0.191386
2,461
94
95
26.180851
0.765327
0.04551
0
0.142857
0
0
0.027742
0
0
0
0
0
0
1
0.164835
false
0
0
0.032967
0.406593
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
0
0
1
0
91be89ca5480384018cb3e20d95ea9abdcb4c1bb
4,136
py
Python
baselines/bc.py
bgalbraith/minerl-haiku-baselines
c33b14699af14c904394d9c4e30dee680a8718d6
[ "Apache-2.0" ]
2
2020-07-11T07:56:46.000Z
2020-08-20T07:59:53.000Z
baselines/bc.py
bgalbraith/minerl-haiku-baselines
c33b14699af14c904394d9c4e30dee680a8718d6
[ "Apache-2.0" ]
null
null
null
baselines/bc.py
bgalbraith/minerl-haiku-baselines
c33b14699af14c904394d9c4e30dee680a8718d6
[ "Apache-2.0" ]
null
null
null
import dill import haiku as hk import jax from jax.experimental import optix import jax.numpy as jnp from dataset import load_data MINERL_ENV = 'MineRLTreechopVectorObf-v0' PARAMS_FILENAME = 'bc_params_treechop.pkl' class PovStack(hk.Module): """ PovStack is a module for processing the point-of-view image data...
30.411765
105
0.579787
549
4,136
4.1949
0.306011
0.024316
0.023448
0.028658
0.261832
0.240122
0.208424
0.156318
0.156318
0.125054
0
0.032247
0.310203
4,136
135
106
30.637037
0.774974
0.173114
0
0.306818
0
0
0.036782
0.014354
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.284091
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91c49a7dc1b6f619c4919335c93fb67b97477b88
7,917
py
Python
decatt/model.py
achyudh/castor
d7a02ce03f2b71ef1fa490122dd4bbc8214b8b19
[ "Apache-2.0" ]
132
2017-04-02T12:31:55.000Z
2019-03-09T07:53:29.000Z
decatt/model.py
sudipta90/castor
fa2f59535c71a0fb4586afbe543b81ba812c8630
[ "Apache-2.0" ]
111
2017-04-01T23:00:24.000Z
2019-03-10T08:29:20.000Z
decatt/model.py
sudipta90/castor
fa2f59535c71a0fb4586afbe543b81ba812c8630
[ "Apache-2.0" ]
53
2017-04-06T01:17:18.000Z
2019-02-27T03:10:35.000Z
import sys import math import numpy as np from datetime import datetime import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class DecAtt(nn.Module): def __init__(self, num_units, num_classes, embedding_size, dropout, device=0, training=True, p...
46.298246
136
0.653909
1,057
7,917
4.661306
0.177862
0.047087
0.073067
0.029227
0.310331
0.275624
0.244368
0.236858
0.168865
0.151411
0
0.024464
0.246179
7,917
170
137
46.570588
0.801106
0.240369
0
0.038462
0
0
0.001395
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.221154
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
0
0
1
0
91c545eedebfe63072291f5498dba2aca85beda1
8,738
py
Python
basic_code/networks.py
J-asy/Emotion-FAN
30c1e24a31b2a05c0810a17eb533096a7baaeeef
[ "MIT" ]
275
2019-09-11T10:22:06.000Z
2022-03-29T07:14:31.000Z
basic_code/networks.py
J-asy/Emotion-FAN
30c1e24a31b2a05c0810a17eb533096a7baaeeef
[ "MIT" ]
34
2019-09-11T11:32:32.000Z
2022-03-18T09:32:42.000Z
basic_code/networks.py
J-asy/Emotion-FAN
30c1e24a31b2a05c0810a17eb533096a7baaeeef
[ "MIT" ]
69
2019-09-18T19:00:17.000Z
2022-03-08T11:43:49.000Z
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torch.nn.functional as F import torch import numpy as np import cv2 import pdb def sigmoid(x): return 1 / (1 + math.exp(-x)) def norm_angle(angle): norm_angle = sigmoid(10 * (abs(angle) / 0.7853975 - 1)) return norm_angle ...
34.674603
120
0.54509
1,097
8,738
4.213309
0.160438
0.008222
0.019472
0.018174
0.412592
0.345738
0.250108
0.236694
0.216357
0.206188
0
0.051977
0.32845
8,738
251
121
34.812749
0.735685
0.041314
0
0.361702
0
0
0.027492
0.008357
0
0
0
0
0.015957
1
0.058511
false
0
0.042553
0.005319
0.18617
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
0
0
1
0
91c7cf66ad6751a13ba5162d5a7e62b526efecd6
2,693
py
Python
project/scripts/clausecat/evaluate_clausecat.py
explosion/healthsea
4481488ed9fc85b89844ee872d0a8412a33f0b15
[ "MIT" ]
60
2021-12-15T17:14:37.000Z
2022-03-26T18:25:15.000Z
project/scripts/clausecat/evaluate_clausecat.py
zhinoos-adibi/healthsea
4481488ed9fc85b89844ee872d0a8412a33f0b15
[ "MIT" ]
3
2021-12-16T19:50:15.000Z
2022-03-28T06:10:48.000Z
project/scripts/clausecat/evaluate_clausecat.py
zhinoos-adibi/healthsea
4481488ed9fc85b89844ee872d0a8412a33f0b15
[ "MIT" ]
9
2021-12-15T21:00:05.000Z
2022-03-17T09:20:51.000Z
import spacy from spacy.scorer import PRFScore import typer from pathlib import Path from wasabi import Printer, table import operator import benepar import clausecat_component import clausecat_model import clausecat_reader import clause_segmentation import clause_aggregation msg = Printer() def main(model_path: Pa...
26.93
88
0.580394
282
2,693
5.375887
0.333333
0.065303
0.031662
0.041557
0.088391
0.064644
0.064644
0.064644
0.064644
0.064644
0
0.012068
0.32306
2,693
99
89
27.20202
0.819528
0.049016
0
0.027397
0
0
0.035658
0
0
0
0
0
0
1
0.013699
false
0
0.164384
0
0.178082
0.013699
0
0
0
null
0
0
0
0
0
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
1
0
91c97df0fae07bca6b5ed203a6e4102faddf3f12
4,534
py
Python
keras_cv_attention_models/resnest/resnest.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
140
2021-08-04T06:51:41.000Z
2022-03-30T08:08:32.000Z
keras_cv_attention_models/resnest/resnest.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
12
2021-09-29T00:43:58.000Z
2022-03-28T07:50:35.000Z
keras_cv_attention_models/resnest/resnest.py
dcleres/keras_cv_attention_models
264876673e369f23eff49b3b589b72f908a9625b
[ "MIT" ]
20
2021-09-28T20:07:35.000Z
2022-03-31T14:06:40.000Z
import tensorflow as tf from tensorflow import keras from tensorflow.keras import backend as K from keras_cv_attention_models.aotnet import AotNet from keras_cv_attention_models.download_and_load import reload_model_weights from keras_cv_attention_models.attention_layers import batchnorm_with_activation, conv2d_no_bias...
50.377778
155
0.696074
612
4,534
4.980392
0.238562
0.023622
0.03248
0.044291
0.32185
0.250328
0.194882
0.177822
0.177822
0.145013
0
0.065789
0.161888
4,534
89
156
50.94382
0.736316
0.045214
0
0.089552
0
0
0.095491
0.029595
0
0
0
0
0
1
0.104478
false
0
0.089552
0.059701
0.298507
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
0
0
1
0
91cb094ac7602563246a111f9c1326b917365ed1
10,652
py
Python
cluster.py
Birfy/Endlinking
cc87a5528498e1733111d302437aeb1142b0a47f
[ "MIT" ]
1
2020-02-20T03:46:10.000Z
2020-02-20T03:46:10.000Z
cluster.py
Birfy/Endlinking
cc87a5528498e1733111d302437aeb1142b0a47f
[ "MIT" ]
null
null
null
cluster.py
Birfy/Endlinking
cc87a5528498e1733111d302437aeb1142b0a47f
[ "MIT" ]
null
null
null
import numpy as np import random import sys chainlength = int(sys.argv[1]) dfname = sys.argv[2] outfl = 'result.data' cluster_size = int(sys.argv[3]) def readsize(dfname): with open(dfname, 'r') as df: lines = df.readlines() for line in lines: content = line.split() if content and cont...
36.986111
135
0.557548
1,438
10,652
4.107789
0.161335
0.006602
0.012189
0.014898
0.268834
0.205857
0.175047
0.156255
0.123074
0.118165
0
0.014646
0.314119
10,652
287
136
37.114983
0.793868
0.279666
0
0.25
0
0
0.029062
0
0
0
0
0
0
1
0.0625
false
0
0.015625
0
0.140625
0.020833
0
0
0
null
0
0
0
0
0
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
1
0
91cc3e617eabbbaa426a11dc2dc6c376ad5cab95
740
py
Python
ituro/accounts/tests.py
kayduemre/ituro
eb5bb0655c2d85eed212d28c1d154006c57a4f03
[ "MIT" ]
9
2015-03-18T01:59:24.000Z
2022-03-09T06:36:21.000Z
ituro/accounts/tests.py
kayduemre/ituro
eb5bb0655c2d85eed212d28c1d154006c57a4f03
[ "MIT" ]
29
2015-03-18T01:59:49.000Z
2021-06-10T20:39:03.000Z
ituro/accounts/tests.py
kayduemre/ituro
eb5bb0655c2d85eed212d28c1d154006c57a4f03
[ "MIT" ]
10
2016-01-31T05:44:46.000Z
2019-10-15T06:12:27.000Z
from django.test import TestCase from django.utils import timezone from accounts.models import CustomUser, CustomUserManager class UserCreateTestCase(TestCase): def test_create_user_correctly(self): "Creating users correctly" new_user = CustomUser.objects.create( email="participant@gm...
33.636364
71
0.671622
79
740
6.113924
0.582278
0.057971
0.118012
0.091097
0.10352
0
0
0
0
0
0
0.019366
0.232432
740
21
72
35.238095
0.830986
0.032432
0
0
0
0
0.172973
0.028378
0
0
0
0
0.176471
1
0.058824
false
0
0.176471
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91ce005123b48bec43dd6a96411c6f2b6ba102be
2,284
py
Python
continuum/datasets/dtd.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
282
2020-05-09T21:35:22.000Z
2022-03-20T11:29:41.000Z
continuum/datasets/dtd.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
180
2020-05-03T09:31:48.000Z
2022-03-30T12:12:48.000Z
continuum/datasets/dtd.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
34
2020-06-13T14:09:29.000Z
2022-03-14T14:05:07.000Z
import os from typing import List import numpy as np from torchvision import datasets as torchdata from continuum.datasets import ImageFolderDataset from continuum import download from continuum.tasks import TaskType class DTD(ImageFolderDataset): """Describable Textures Dataset (DTD) Reference: * ...
35.6875
108
0.595009
302
2,284
4.377483
0.377483
0.066566
0.081694
0.07413
0.21407
0.188351
0.172466
0.134644
0.087746
0.06354
0
0.010284
0.27627
2,284
63
109
36.253968
0.789474
0.077933
0
0.045455
0
0.022727
0.145813
0.036092
0
0
0
0
0
1
0.068182
false
0
0.159091
0
0.295455
0.045455
0
0
0
null
0
0
0
0
0
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
1
0
91d00c668e9c3c29e1e078f088b136cfebc103ca
1,727
py
Python
intro.py
Ebenazer-2002/library-management
8c1ededc7167d2221a3947abfeec4773da39dca9
[ "Apache-2.0" ]
null
null
null
intro.py
Ebenazer-2002/library-management
8c1ededc7167d2221a3947abfeec4773da39dca9
[ "Apache-2.0" ]
null
null
null
intro.py
Ebenazer-2002/library-management
8c1ededc7167d2221a3947abfeec4773da39dca9
[ "Apache-2.0" ]
1
2021-09-22T22:08:15.000Z
2021-09-22T22:08:15.000Z
#Intro Page from tkinter import * from PIL import Image, ImageTk import cv2 #----------------------------Start Function--------------------------# def start(event): label1.destroy() import log win.destroy() log.main() #------------------------Main Window---------------------------------#li def main_...
28.311475
72
0.466126
179
1,727
4.47486
0.486034
0.037453
0.037453
0.034956
0.037453
0
0
0
0
0
0
0.031907
0.255935
1,727
60
73
28.783333
0.59144
0.246091
0
0.095238
0
0
0.085271
0
0
0
0
0
0
1
0.071429
false
0
0.095238
0
0.166667
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
0
0
1
0
91d02ed15b88e5d9e5da4c1c6b0a923344ec181d
16,740
py
Python
notebooks/week4_help.py
hugh9876/04-multivariate-analysis
0541962842df8844aa323c368f8a4e44999c2d7f
[ "MIT" ]
null
null
null
notebooks/week4_help.py
hugh9876/04-multivariate-analysis
0541962842df8844aa323c368f8a4e44999c2d7f
[ "MIT" ]
null
null
null
notebooks/week4_help.py
hugh9876/04-multivariate-analysis
0541962842df8844aa323c368f8a4e44999c2d7f
[ "MIT" ]
null
null
null
""" This module provides helper functions to support exercises during AM1 with outliers, robust regression and template regression in the CORE data analytics workshop series, week 4. """ import numpy as np import pandas as pd import math from collections import namedtuple def recovery_sulphur_dataframe_wit...
41.435644
97
0.683871
2,165
16,740
5.130254
0.196305
0.007653
0.041325
0.023949
0.198974
0.125777
0.061223
0.031242
0.007743
0
0
0.020416
0.245102
16,740
403
98
41.538462
0.858511
0.445938
0
0.070588
0
0
0.020801
0.002645
0
0
0
0
0.017647
1
0.158824
false
0
0.023529
0.005882
0.341176
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
0
0
1
0
91d0d1d94cdf45c4bcbd44fd68f0bba0ecae92c7
2,671
py
Python
tests/actions/test_mutable_token_action.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
tests/actions/test_mutable_token_action.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
tests/actions/test_mutable_token_action.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
from radixlib.actions import CreateTokenDefinition from typing import Dict, Any import unittest class TestMutableTokenAction(unittest.TestCase): """ Unit tests for the CreateTokenDefinition action of mutable tokens """ ActionDict: Dict[str, Any] = { "token_properties": { "name": "MutableTe...
47.696429
110
0.675028
260
2,671
6.803846
0.3
0.102883
0.143019
0.131148
0.131148
0.072357
0
0
0
0
0
0.017005
0.207413
2,671
56
111
47.696429
0.818611
0.137027
0
0
0
0
0.275274
0.064333
0
0
0
0
0.292683
1
0.04878
false
0
0.073171
0
0.170732
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
0
0
1
0
91d380ce2b1e14c5b063e9056626bb2c1ea92f55
6,869
py
Python
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from pants.backend.native.config.environment import Assembler, CCompiler, CppC...
34.345
105
0.7084
915
6,869
5.103825
0.300546
0.023983
0.038972
0.013705
0.208137
0.165096
0.137259
0.094004
0.094004
0.062741
0
0.002553
0.201776
6,869
199
106
34.517588
0.84917
0.174989
0
0.137681
0
0.014493
0.217584
0.068028
0
0
0
0.005025
0
1
0.108696
false
0
0.057971
0.086957
0.311594
0.014493
0
0
0
null
0
0
0
0
0
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
1
0
91d43878e8db19b2ac8a4228dcc70b222e3033cf
11,998
py
Python
improver_tests/regrid/test_RegridWithLandSeaMask.py
yzhaobom/improver
47f9e103c63f890bfbb24d5e08d9d01d041514f7
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver_tests/regrid/test_RegridWithLandSeaMask.py
yzhaobom/improver
47f9e103c63f890bfbb24d5e08d9d01d041514f7
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver_tests/regrid/test_RegridWithLandSeaMask.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
35.602374
86
0.596516
1,892
11,998
3.593552
0.156977
0.038829
0.038829
0.024857
0.589646
0.553905
0.53449
0.520959
0.511252
0.484042
0
0.123426
0.272045
11,998
336
87
35.708333
0.655026
0.236039
0
0.425439
0
0
0.02382
0
0
0
0
0
0.030702
1
0.035088
false
0
0.02193
0
0.070175
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
0
0
1
0
91d54e85fa9e683a691056ba3de4c8a49958c847
3,723
py
Python
test/test_workflow.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
test/test_workflow.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
test/test_workflow.py
asnramos/asv
8a0979b532d06c7c352826e2acf0dd872922260e
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import glob import os import sys import json from os.path import join, isfile import pytest from asv import util from . import tools def test_run_publish(capfd, basic_conf_2): tmpdir, local, conf, machine_file = basic_conf_2 tmpdir = util.lon...
39.189474
85
0.552243
434
3,723
4.573733
0.331797
0.050378
0.033249
0.04534
0.349622
0.244836
0.184383
0.105793
0.062469
0.062469
0
0.018772
0.313188
3,723
94
86
39.606383
0.757528
0.076551
0
0.183099
0
0
0.229738
0.073469
0
0
0
0
0.239437
1
0.014085
false
0
0.112676
0
0.126761
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
0
0
1
0
91d673a77f43b00da4523b7edc231f25e64c3f72
5,750
py
Python
trainer.py
Metro1998/P-DQN
6ab2ac6991d2685f10887c16f854ebba6144b306
[ "MIT" ]
5
2021-12-13T15:25:07.000Z
2022-03-29T12:42:37.000Z
trainer.py
Metro1998/P-DQN
6ab2ac6991d2685f10887c16f854ebba6144b306
[ "MIT" ]
null
null
null
trainer.py
Metro1998/P-DQN
6ab2ac6991d2685f10887c16f854ebba6144b306
[ "MIT" ]
null
null
null
# @author Metro # @time 2021/11/24 import os.path import gym from agents.pdqn import P_DQN from utilities.memory import ReplayBuffer from utilities.utilities import * from utilities.route_generator import generate_routefile class Train_and_Evaluate(object): def __init__(self, config): # Environment ...
42.592593
113
0.598609
677
5,750
4.70901
0.200886
0.033877
0.056462
0.037641
0.266939
0.140841
0.120138
0.105082
0.039523
0.02133
0
0.007918
0.31913
5,750
134
114
42.910448
0.806386
0.01513
0
0.021277
0
0
0.042791
0
0
0
0
0
0
1
0.021277
false
0
0.06383
0
0.095745
0.021277
0
0
0
null
0
0
0
0
0
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
1
0
91d9d1d9ae07a637595f6f1be3521d0ea393c068
1,468
py
Python
algorithms/maths/chinese_remainder_theorem.py
hbqdev/algorithms
65cc8551d86d7e065069d165dd8bf9baf10345a0
[ "MIT" ]
22,426
2017-01-17T04:01:44.000Z
2022-03-31T12:06:16.000Z
algorithms/maths/chinese_remainder_theorem.py
Shubhanshu156/algorithms
d8f1428cee7f66376929f72c524b6e0325bf3492
[ "MIT" ]
523
2017-04-18T12:05:11.000Z
2022-03-20T11:10:41.000Z
algorithms/maths/chinese_remainder_theorem.py
AmandaStromdahl/algorithms
1652835c3aef9aa670b67a5459e51dd3a8e6a71c
[ "MIT" ]
4,900
2017-01-19T23:47:05.000Z
2022-03-31T10:00:47.000Z
from algorithms.maths.gcd import gcd from typing import List def solve_chinese_remainder(num : List[int], rem : List[int]): """ Computes the smallest x that satisfies the chinese remainder theorem for a system of equations. The system of equations has the form: x % num[0] = rem[0] x % num[1] = ...
31.234043
84
0.559264
228
1,468
3.574561
0.350877
0.030675
0.062577
0.041718
0.058896
0.058896
0.058896
0
0
0
0
0.015707
0.349455
1,468
46
85
31.913043
0.837696
0.284741
0
0
0
0
0.167335
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
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
0
0
0
0
0
0
0
0
0
0
1
0
91dad0ab0f33fc6693bf8cc4e9a065c0be985607
19,086
py
Python
apphelper/image.py
caiyueliang/chineseocr
4495598f938936c6bcb2222fa44f840a7919212c
[ "MIT" ]
null
null
null
apphelper/image.py
caiyueliang/chineseocr
4495598f938936c6bcb2222fa44f840a7919212c
[ "MIT" ]
null
null
null
apphelper/image.py
caiyueliang/chineseocr
4495598f938936c6bcb2222fa44f840a7919212c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ##图像相关函数 @author: lywen """ import sys import six import os import base64 import requests import numpy as np import cv2 from PIL import Image import traceback import uuid from glob import glob from bs4 import BeautifulSoup def sort_box_(box): x1,y1,x2,y2,x3,y3,x4,y4 = box[:8] pts =...
29.40832
113
0.515561
3,071
19,086
3.132204
0.112341
0.017465
0.020584
0.027446
0.450463
0.429566
0.404616
0.376027
0.363967
0.339952
0
0.074795
0.297391
19,086
649
114
29.40832
0.642506
0.155035
0
0.257732
0
0
0.016641
0
0
0
0
0
0
1
0.069588
false
0
0.046392
0
0.185567
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
0
0
1
0
91dbd76ebb4a6ee074d9e41d9b7337c54be487ec
1,748
py
Python
data_structure/stack_and_queue/494. Target Sum_ Medium.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
data_structure/stack_and_queue/494. Target Sum_ Medium.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
data_structure/stack_and_queue/494. Target Sum_ Medium.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
''' You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols '+' and '-' before each integer in nums and then concatenate all the integers. For example, if nums = [2, 1], you can add a '+' before 2 and a '-' before 1 and concatenate them to bu...
34.96
151
0.529748
223
1,748
4.085202
0.340807
0.076839
0.065862
0.070252
0.193194
0.140505
0.140505
0.140505
0.140505
0.076839
0
0.034234
0.364989
1,748
50
152
34.96
0.786486
0.276316
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91dd1a3b5de5801e9e8baf1d02a035b6853b1ad3
3,733
py
Python
fixtrack/frontend/pickable_markers.py
os-gabe/fixtrack
a0af4dfa9342acc0ba05c0249a32806c825b74b2
[ "MIT" ]
null
null
null
fixtrack/frontend/pickable_markers.py
os-gabe/fixtrack
a0af4dfa9342acc0ba05c0249a32806c825b74b2
[ "MIT" ]
null
null
null
fixtrack/frontend/pickable_markers.py
os-gabe/fixtrack
a0af4dfa9342acc0ba05c0249a32806c825b74b2
[ "MIT" ]
1
2022-03-25T04:26:36.000Z
2022-03-25T04:26:36.000Z
import numpy as np from fixtrack.frontend.pickable_base import PickableBase from vispy import scene class PickableMarkers(PickableBase): """ Markers that can highlight on hover and be selected """ class State(PickableBase.State): def __init__(self, **kwargs): super(PickableMarker...
33.936364
94
0.587731
462
3,733
4.450216
0.203463
0.091926
0.047665
0.034047
0.291342
0.197471
0.177043
0.154669
0.120623
0.058366
0
0.013303
0.295205
3,733
109
95
34.247706
0.768149
0.013662
0
0.213483
0
0
0.015821
0
0
0
0
0
0
1
0.134831
false
0
0.033708
0.011236
0.235955
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
0
0
1
0
91dedad5ac38b05af586adadc029baeb5dbdb36c
2,242
py
Python
examples/blocking_subscribe.py
FFY00/jeepney
293241a54fbb73581755e97191720ed1603aed34
[ "MIT" ]
null
null
null
examples/blocking_subscribe.py
FFY00/jeepney
293241a54fbb73581755e97191720ed1603aed34
[ "MIT" ]
null
null
null
examples/blocking_subscribe.py
FFY00/jeepney
293241a54fbb73581755e97191720ed1603aed34
[ "MIT" ]
null
null
null
""" Example of subscribing to a D-Bus signal using blocking I/O. This subscribes to the signal for a desktop notification being closed. To try it, start this script, then trigger a desktop notification, and close it somehow to trigger the signal. Use Ctrl-C to stop the script. This example relies on the ``org.freedes...
34.492308
88
0.752007
298
2,242
5.583893
0.459732
0.033654
0.064904
0.033654
0.055288
0
0
0
0
0
0
0.002101
0.150758
2,242
64
89
35.03125
0.871849
0.460303
0
0.121212
0
0
0.17938
0.073764
0
0
0
0
0
1
0.030303
false
0.030303
0.090909
0
0.121212
0.060606
0
0
0
null
0
0
0
0
0
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
1
0
91e1834b8771a7ae37346ead4e29d9b3101da09b
917
py
Python
setup.py
Kuba77/Xian-DB
2f15ef1b9b7a96c21bd46e9fb8481de6feb713b7
[ "MIT" ]
1
2016-10-22T21:04:09.000Z
2016-10-22T21:04:09.000Z
setup.py
Kuba77/Xian-DB
2f15ef1b9b7a96c21bd46e9fb8481de6feb713b7
[ "MIT" ]
null
null
null
setup.py
Kuba77/Xian-DB
2f15ef1b9b7a96c21bd46e9fb8481de6feb713b7
[ "MIT" ]
null
null
null
from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='xiandb', version='0.2.0', description='A database model for Xian', long_d...
21.325581
64
0.641221
106
917
5.45283
0.698113
0.077855
0
0
0
0
0
0
0
0
0
0.012465
0.21265
917
42
65
21.833333
0.788089
0
0
0
0
0
0.393675
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
1
0
91e197a6aad024d05c47c68f4923bef335ff491f
4,993
py
Python
yolo3/focal_loss.py
ashishpatel26/tf2-yolo3
38814178643eb8e1f8b5e4fe8d448faed44ad574
[ "Apache-2.0" ]
43
2019-12-08T15:05:53.000Z
2022-03-20T13:38:07.000Z
yolo3/focal_loss.py
1911590204/tf2-yolo3
38814178643eb8e1f8b5e4fe8d448faed44ad574
[ "Apache-2.0" ]
3
2020-05-18T11:20:15.000Z
2021-02-26T01:11:04.000Z
yolo3/focal_loss.py
1911590204/tf2-yolo3
38814178643eb8e1f8b5e4fe8d448faed44ad574
[ "Apache-2.0" ]
15
2019-12-25T01:44:29.000Z
2022-01-18T08:45:49.000Z
from functools import partial import tensorflow as tf _EPSILON = tf.keras.backend.epsilon() def register_keras_custom_object(cls): tf.keras.utils.get_custom_objects()[cls.__name__] = cls return cls def binary_focal_loss(y_true, y_pred, gamma, *, pos_weight=None, from_logits=False, label_smoothing=None): ...
36.985185
106
0.616263
631
4,993
4.59271
0.183835
0.115942
0.038647
0.048309
0.360594
0.304693
0.204969
0.184955
0.184955
0.184955
0
0.003441
0.301622
4,993
135
107
36.985185
0.827646
0.070298
0
0.216495
0
0
0
0
0
0
0
0
0
1
0.082474
false
0
0.020619
0.010309
0.206186
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
0
0
1
0
91e197bc72174a007b45ebf73223d69beb79eca0
13,808
py
Python
characters/models/characters.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
characters/models/characters.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
characters/models/characters.py
Sult/evetool
155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f
[ "MIT" ]
null
null
null
import time from collections import OrderedDict from datetime import datetime, timedelta from django.db import models from django.conf import settings from django.utils.timezone import utc from .skills import Skill, SkillGroup from metrics.models import Corporation from tasks.models import EveApiCache, Task from evet...
33.596107
79
0.571915
1,308
13,808
5.930428
0.212538
0.029006
0.013923
0.019337
0.284388
0.223153
0.1926
0.178935
0.148769
0.137166
0
0.014466
0.339151
13,808
410
80
33.678049
0.835616
0.069308
0
0.253086
0
0
0.042214
0.005472
0
0
0
0
0
1
0.061728
false
0.003086
0.033951
0.012346
0.253086
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
0
0
1
0
91e4a887944adf9f3a04214dd378ac72dc05e86a
2,100
py
Python
biomaj2galaxy/commands/init.py
genouest/biomaj2galaxy
8c76f3cc96902d9401a03e7b1a6cd8f4a7ba17bd
[ "MIT" ]
1
2015-05-11T00:08:24.000Z
2015-05-11T00:08:24.000Z
biomaj2galaxy/commands/init.py
genouest/biomaj2galaxy
8c76f3cc96902d9401a03e7b1a6cd8f4a7ba17bd
[ "MIT" ]
5
2019-04-15T16:09:50.000Z
2020-11-24T10:35:21.000Z
biomaj2galaxy/commands/init.py
genouest/biomaj2galaxy
8c76f3cc96902d9401a03e7b1a6cd8f4a7ba17bd
[ "MIT" ]
3
2015-06-14T08:33:49.000Z
2020-10-16T09:07:21.000Z
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from bioblend import galaxy from biomaj2galaxy import config, pass_context from biomaj2galaxy.io import info, warn import click CONFIG_TEMPLATE = """## BioMAJ2Galaxy: Global Confi...
29.166667
121
0.65381
264
2,100
5.056818
0.484848
0.052434
0.035955
0.049438
0.029963
0
0
0
0
0
0
0.005703
0.248571
2,100
71
122
29.577465
0.840304
0.06381
0
0.039216
0
0
0.342186
0
0
0
0
0
0
1
0.019608
false
0.039216
0.156863
0
0.215686
0.019608
0
0
0
null
0
0
0
0
0
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
1
0
91e5db16db7c305afa819a65e2ba7480fc9d4276
4,700
py
Python
preprocessing/convert_formats/msmarco_doc_create_train_input.py
PranjaliJain/matchmaker
b7e22eb8b70cccabf0729076df7cbab3f4ba4a1f
[ "Apache-2.0" ]
97
2021-07-11T14:34:40.000Z
2022-03-31T14:17:25.000Z
preprocessing/convert_formats/msmarco_doc_create_train_input.py
PranjaliJain/matchmaker
b7e22eb8b70cccabf0729076df7cbab3f4ba4a1f
[ "Apache-2.0" ]
12
2021-07-11T13:03:23.000Z
2022-03-02T16:07:11.000Z
preprocessing/convert_formats/msmarco_doc_create_train_input.py
PranjaliJain/matchmaker
b7e22eb8b70cccabf0729076df7cbab3f4ba4a1f
[ "Apache-2.0" ]
16
2019-12-23T01:22:35.000Z
2021-06-23T12:54:36.000Z
# # msmarco doc: create the train.tsv triples # ------------------------------- import random random.seed(42) import argparse import os import sys from tqdm import tqdm sys.path.append(os.getcwd()) from matchmaker.evaluation.msmarco_eval import * from collections import defaultdict from matchmaker.dataloaders.blin...
33.098592
154
0.636809
592
4,700
4.866554
0.275338
0.024297
0.035404
0.036446
0.287053
0.190559
0.155502
0.088164
0.088164
0.019438
0
0.018806
0.219362
4,700
142
155
33.098592
0.766421
0.268298
0
0.086957
0
0
0.122275
0
0
0
0
0
0.028986
1
0
false
0
0.115942
0
0.115942
0.014493
0
0
0
null
0
0
0
0
0
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
1
0
91e914734fc05c34e408967e2c372a75de766234
1,207
py
Python
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/search_get_schema_response.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/search_get_schema_response.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/models/search_get_schema_response.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.575758
76
0.610605
122
1,207
5.959016
0.631148
0.024759
0.057772
0.074278
0
0
0
0
0
0
0
0.00099
0.163215
1,207
32
77
37.71875
0.718812
0.591549
0
0
0
0
0.188184
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91ebeac4c8302d86c1514c58ecbae0f104ee5904
1,332
py
Python
python/ds/spiralprint.py
unhingedporter/DataStructureMustKnow
3c5b3225afa2775d37a2ff90121f73208717640a
[ "MIT" ]
3
2019-11-23T08:43:58.000Z
2019-11-23T08:52:53.000Z
python/ds/spiralprint.py
unhingedpotter/DSMustKnow
64958cbbbb3f4cdb1104c2255e555233554503f9
[ "MIT" ]
null
null
null
python/ds/spiralprint.py
unhingedpotter/DSMustKnow
64958cbbbb3f4cdb1104c2255e555233554503f9
[ "MIT" ]
null
null
null
# Python3 program to print # given matrix in spiral form def spiralPrint(m, n, a): start_row_index = 0 start_col_index = 0 l = 0 ''' start_row_index - starting row index m - ending row index start_col_index - starting column index n - ending column index i - iterator ''' while (start...
22.965517
61
0.534535
203
1,332
3.349754
0.295567
0.117647
0.152941
0.064706
0.286765
0
0
0
0
0
0
0.052144
0.352102
1,332
57
62
23.368421
0.735805
0.187688
0
0
0
0
0.004367
0
0
0
0
0
0
1
0.04
false
0
0
0
0.04
0.16
0
0
0
null
0
0
0
0
0
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
1
0
91ed3db43e489e433ff783f8e76e26a52b78a6d5
568
py
Python
rest-api/routers/authorization.py
marintrace/backend
ad34bd50bd5e3f90be1ac16a74d39a0a9342fa33
[ "MIT" ]
2
2021-12-14T03:14:41.000Z
2022-01-17T18:36:31.000Z
rest-api/routers/authorization.py
marintrace/backend
ad34bd50bd5e3f90be1ac16a74d39a0a9342fa33
[ "MIT" ]
1
2021-03-29T08:06:42.000Z
2021-03-29T08:06:42.000Z
rest-api/routers/authorization.py
tracing-app/backend
ad34bd50bd5e3f90be1ac16a74d39a0a9342fa33
[ "MIT" ]
null
null
null
""" Authorization Utilities """ from shared.models.user_entities import User from shared.service.jwt_auth_wrapper import JWTAuthManager manager = JWTAuthManager(oidc_vault_secret="oidc/rest", object_creator=lambda claims, assumed_role, user_roles: User( first_name=...
35.5
86
0.572183
54
568
5.740741
0.611111
0.064516
0
0
0
0
0
0
0
0
0
0
0.34507
568
15
87
37.866667
0.833333
0.040493
0
0
0
0
0.065177
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91ee06a1881d10f22e7c8d7c219f9ef37412d52d
1,365
py
Python
photonpy/tests/psf_g2d_sigma.py
qnano/photonpy
9c03a1c9f4c2177c9c6fb3f2f16dfec2306006d4
[ "MIT" ]
5
2021-04-29T21:06:05.000Z
2022-03-23T03:45:25.000Z
photonpy/tests/psf_g2d_sigma.py
qnano/photonpy
9c03a1c9f4c2177c9c6fb3f2f16dfec2306006d4
[ "MIT" ]
null
null
null
photonpy/tests/psf_g2d_sigma.py
qnano/photonpy
9c03a1c9f4c2177c9c6fb3f2f16dfec2306006d4
[ "MIT" ]
1
2021-06-18T12:39:28.000Z
2021-06-18T12:39:28.000Z
import matplotlib.pyplot as plt import numpy as np from photonpy.cpp.context import Context import photonpy.cpp.gaussian as gaussian from photonpy.smlm.util import imshow_hstack from photonpy.cpp.estimator import Estimator def CheckDeriv(psf:Estimator, theta): nderiv,ev=psf.NumDeriv(theta,eps=1e-6) deriv,ev=p...
26.764706
106
0.606593
181
1,365
4.502762
0.375691
0.058896
0.03681
0.051534
0
0
0
0
0
0
0
0.025896
0.264469
1,365
51
107
26.764706
0.785857
0.015385
0
0.060606
0
0.030303
0.114865
0.018769
0
0
0
0
0
1
0.030303
false
0
0.181818
0
0.212121
0.121212
0
0
0
null
0
0
0
0
0
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
1
0
91ee64a13c556aefe5259d2a930de14c6c79472f
2,018
py
Python
tests/tools_tests/helpers_tests.py
Gautierhyp/tespy
d44ae41874baeff77619e560faea59dd0cb84c7c
[ "MIT" ]
null
null
null
tests/tools_tests/helpers_tests.py
Gautierhyp/tespy
d44ae41874baeff77619e560faea59dd0cb84c7c
[ "MIT" ]
null
null
null
tests/tools_tests/helpers_tests.py
Gautierhyp/tespy
d44ae41874baeff77619e560faea59dd0cb84c7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 """Module for testing helper functions. This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted by the contributors recorded in the version control history of the file, available from its original location tests/tools_tests/helpers_tests.py SPDX-License-Identifier: MIT """ ...
32.548387
78
0.646184
305
2,018
4.245902
0.357377
0.083398
0.049421
0.064865
0.518919
0.518919
0.518919
0.455598
0.455598
0.364479
0
0.040883
0.236373
2,018
61
79
33.081967
0.799481
0.32557
0
0.24
0
0
0.349352
0
0
0
0
0
0
1
0.12
false
0
0.08
0.08
0.28
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
0
0
1
0
91eed42dd8cd7828f31d4494c0f4f389955bf685
8,960
py
Python
utils/dynamo.py
OnRails-IN/backend
5f5c9703fcda282ed54f2e6315680fb30fd91a6f
[ "MIT" ]
null
null
null
utils/dynamo.py
OnRails-IN/backend
5f5c9703fcda282ed54f2e6315680fb30fd91a6f
[ "MIT" ]
null
null
null
utils/dynamo.py
OnRails-IN/backend
5f5c9703fcda282ed54f2e6315680fb30fd91a6f
[ "MIT" ]
null
null
null
""" Dynamo Utils ============ All utility functions for interactions with DynamoDB Functions - ensure_json - create_user_table - create_or_update_record - list_tables - list_records - get_record - delete_table - delete_record - check_active """ import boto3 from decimal import Deci...
24.888889
76
0.547098
930
8,960
5.174194
0.147312
0.038861
0.035328
0.087905
0.633001
0.54946
0.504988
0.446384
0.432668
0.432668
0
0.0023
0.369196
8,960
360
77
24.888889
0.84908
0.226674
0
0.583732
0
0
0.142486
0.010549
0
0
0
0
0
1
0.047847
false
0
0.014354
0
0.253589
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37cd97b1c214ca81d9e46e1e2c07bc9bb82f06f0
340
py
Python
Source/Git/Experiments/git_annotate.py
cadappl/scm-workbench
302cdb8e36bb755f4977062e8977c37e7f4491f9
[ "Apache-2.0" ]
24
2017-03-23T06:24:02.000Z
2022-03-19T13:35:44.000Z
Source/Git/Experiments/git_annotate.py
cadappl/scm-workbench
302cdb8e36bb755f4977062e8977c37e7f4491f9
[ "Apache-2.0" ]
14
2016-06-21T10:06:27.000Z
2020-07-25T11:56:23.000Z
Source/Git/Experiments/git_annotate.py
barry-scott/git-workbench
9f352875ab097ce5e45f85bf255b1fa02a196807
[ "Apache-2.0" ]
11
2016-12-25T12:36:16.000Z
2022-03-23T14:25:25.000Z
#!/usr/bin/python3 import sys import git r = git.Repo( sys.argv[1] ) num = 0 for info in r.blame( 'HEAD', sys.argv[2] ): num += 1 commit = info[0] all_lines = info[1] print( '%s %6d:%s' % (commit, num, all_lines[0]) ) for line in all_lines[1:]: num += 1 print( '%*s %6d:%s' % (4...
17
54
0.517647
57
340
3.035088
0.45614
0.138728
0.080925
0.104046
0.115607
0
0
0
0
0
0
0.057143
0.279412
340
19
55
17.894737
0.64898
0.05
0
0.166667
0
0
0.071429
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37cf805b2f12051ac4eca05f7ae1c89c1a8dc059
544
py
Python
configs/global_configs.py
HansikaPH/time-series-forecasting
23be319a190489bc1464653a3d672edd70ab110b
[ "MIT" ]
67
2019-09-09T14:53:35.000Z
2022-02-21T08:51:15.000Z
configs/global_configs.py
HansikaPH/time-series-forecasting
23be319a190489bc1464653a3d672edd70ab110b
[ "MIT" ]
6
2019-09-09T06:11:51.000Z
2019-12-16T04:31:11.000Z
configs/global_configs.py
HansikaPH/time-series-forecasting
23be319a190489bc1464653a3d672edd70ab110b
[ "MIT" ]
18
2019-09-12T02:49:58.000Z
2022-02-16T11:15:57.000Z
# configs for the model training class model_training_configs: VALIDATION_ERRORS_DIRECTORY = 'results/validation_errors/' INFO_FREQ = 1 # configs for the model testing class model_testing_configs: RNN_FORECASTS_DIRECTORY = 'results/rnn_forecasts/' RNN_ERRORS_DIRECTORY = 'results/errors' PROCESSED_R...
30.222222
75
0.799632
66
544
6.212121
0.439394
0.156098
0.063415
0.087805
0
0
0
0
0
0
0
0.008565
0.141544
544
17
76
32
0.869379
0.185662
0
0
0
0
0.216401
0.18451
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
0
0
1
0
37cfc9903bdf3148211aecc7d83461d403271fff
3,967
py
Python
webium/controls/select.py
kejkz/webium
ccb09876a201e75f5c5810392d4db7a8708b90cb
[ "Apache-2.0" ]
152
2015-01-16T11:26:56.000Z
2022-01-22T12:11:28.000Z
webium/controls/select.py
goblinintree/webium
ccb09876a201e75f5c5810392d4db7a8708b90cb
[ "Apache-2.0" ]
13
2015-03-05T14:36:44.000Z
2018-08-08T09:43:39.000Z
webium/controls/select.py
goblinintree/webium
ccb09876a201e75f5c5810392d4db7a8708b90cb
[ "Apache-2.0" ]
57
2015-01-27T12:53:49.000Z
2022-03-26T23:02:36.000Z
from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.remote.webelement import WebElement class Select(WebElement): """ Implements logic to work with Web List UI elements """ @property def is_multiple(self): value = self.get_attribute('multiple') re...
33.058333
118
0.57575
441
3,967
5.027211
0.244898
0.022102
0.044204
0.03383
0.313938
0.262517
0.18313
0.161479
0.071719
0.051421
0
0.002258
0.330224
3,967
119
119
33.336134
0.832142
0.175952
0
0.150685
0
0
0.057404
0.017613
0
0
0
0
0
1
0.136986
false
0
0.027397
0
0.328767
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
0
0
1
0
37d1196ce920fb2354298f73f3de4a4a984c7332
12,564
py
Python
mc/cookies/CookieManager.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-04-29T05:36:44.000Z
2021-04-29T05:36:44.000Z
mc/cookies/CookieManager.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2020-03-28T17:43:18.000Z
2020-03-28T17:43:18.000Z
mc/cookies/CookieManager.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-01-15T20:09:24.000Z
2021-01-15T20:09:24.000Z
from PyQt5.QtWidgets import QDialog from PyQt5 import uic from PyQt5.Qt import Qt from PyQt5.Qt import QShortcut from PyQt5.Qt import QKeySequence from PyQt5.QtWidgets import QMessageBox from PyQt5.QtWidgets import QInputDialog from PyQt5.Qt import QDateTime from PyQt5.Qt import QStyle from PyQt5.Qt import QNetworkCook...
35.897143
103
0.630372
1,240
12,564
6.240323
0.206452
0.062807
0.043422
0.013182
0.256526
0.189325
0.124451
0.059188
0.031791
0.031791
0
0.004501
0.257243
12,564
349
104
36
0.824689
0.046721
0
0.142857
0
0
0.06542
0.006235
0
0
0
0
0
1
0.081633
false
0
0.065306
0.004082
0.208163
0.004082
0
0
0
null
0
0
0
0
0
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
1
0
37d161d2ab9998ed2955dcc68be64d87474fc1ce
1,803
py
Python
.circleci/process_submitted_data.py
dongbohu/cimr-d
7d8f7f7319cff0092946a28d1416d38c06e085d7
[ "CC-BY-4.0" ]
null
null
null
.circleci/process_submitted_data.py
dongbohu/cimr-d
7d8f7f7319cff0092946a28d1416d38c06e085d7
[ "CC-BY-4.0" ]
null
null
null
.circleci/process_submitted_data.py
dongbohu/cimr-d
7d8f7f7319cff0092946a28d1416d38c06e085d7
[ "CC-BY-4.0" ]
2
2019-05-22T16:05:54.000Z
2019-05-23T14:29:10.000Z
#!/usr/bin/env python3 import os import sys import logging import subprocess logging.basicConfig(level=logging.INFO) root_dir = 'submitted_data' submitted_file_split = set() for dir_, _, files in os.walk(root_dir): for file_name in files: rel_dir = os.path.relpath(dir_, root_dir) rel_file = os...
31.086207
95
0.585136
217
1,803
4.603687
0.359447
0.117117
0.06006
0.045045
0.16016
0.052052
0.052052
0.052052
0
0
0
0.007414
0.326678
1,803
57
96
31.631579
0.815486
0.011647
0
0
0
0
0.094382
0
0
0
0
0
0
1
0
false
0
0.146341
0
0.146341
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
0
0
1
0
37d19d97641fbdfe4cfca519ffd963eb1a649c60
469
py
Python
common/enums.py
resourceidea/resourceideaapi
4cc7db98f981d8f2011c1995e23e8a8655e31f75
[ "MIT" ]
1
2020-05-30T22:27:59.000Z
2020-05-30T22:27:59.000Z
common/enums.py
resourceidea/resourceideaapi
4cc7db98f981d8f2011c1995e23e8a8655e31f75
[ "MIT" ]
15
2020-02-11T21:53:08.000Z
2021-11-02T21:20:03.000Z
common/enums.py
resourceidea/resourceideaapi
4cc7db98f981d8f2011c1995e23e8a8655e31f75
[ "MIT" ]
1
2020-08-27T10:57:47.000Z
2020-08-27T10:57:47.000Z
import enum class Status(enum.Enum): """Status enumeration.""" ACTIVE = 'ACTIVE' DISABLED = 'DISABLED' ARCHIVED = 'ARCHIVED' DELETED = 'DELETED' class ProgressStatus(enum.Enum): """Enumeration indicates the different stages of the progress made on an engagement, job or ...
21.318182
50
0.616205
49
469
5.857143
0.612245
0.055749
0
0
0
0
0
0
0
0
0
0
0.277186
469
21
51
22.333333
0.846608
0.24307
0
0
0
0
0.222222
0
0
0
0
0
0
1
0
false
0
0.083333
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
0
0
1
0
37d34e7f40c00147044227bceb687730996c355b
10,288
py
Python
biggan/paddorch/paddorch/vision/functional.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
20
2020-03-13T13:40:32.000Z
2022-03-10T07:31:48.000Z
biggan/paddorch/paddorch/vision/functional.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
34
2020-02-20T11:04:58.000Z
2022-03-12T00:54:26.000Z
biggan/paddorch/paddorch/vision/functional.py
zzz2010/Contrib
d351d83da718145cef9f6c98598f7fedc027efe5
[ "Apache-2.0" ]
41
2020-02-14T09:34:39.000Z
2022-03-10T07:31:42.000Z
# Copyright (c) 2020 PaddlePaddle 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 appli...
38.38806
111
0.602061
1,389
10,288
4.403888
0.203024
0.021743
0.012751
0.014713
0.285271
0.222168
0.18751
0.170508
0.145496
0.128494
0
0.026076
0.29549
10,288
268
112
38.38806
0.817881
0.494751
0
0.094828
0
0
0.091272
0
0
0
0
0
0.017241
1
0.043103
false
0
0.060345
0
0.172414
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
0
0
1
0
37d5209ef3010122c779cf4e6e97b119c2f9a504
14,267
py
Python
ground_battle.py
ashhansen6/minigames
5b2e0db14b3567c9b6220206105ed448fb303551
[ "MIT" ]
null
null
null
ground_battle.py
ashhansen6/minigames
5b2e0db14b3567c9b6220206105ed448fb303551
[ "MIT" ]
3
2021-03-25T02:39:44.000Z
2021-06-16T17:53:36.000Z
ground_battle.py
ashhansen6/minigames
5b2e0db14b3567c9b6220206105ed448fb303551
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 29 13:38:35 2021 GROUND INVASION! The Game @author: Ashton Hansen (ashhansen6@outlook.com) """ # Packages used: import numpy as np import pandas as pd import random as rng from termcolor import colored # Defining starting forces ## Defenders: def_force =...
41.961765
107
0.604892
1,671
14,267
4.968282
0.159186
0.0318
0.021682
0.018791
0.532402
0.460371
0.419778
0.400385
0.385931
0.344977
0
0.021663
0.255835
14,267
339
108
42.085546
0.76029
0.056284
0
0.44964
0
0
0.310276
0.01362
0
0
0
0
0
1
0.014388
false
0.003597
0.014388
0
0.028777
0.370504
0
0
0
null
0
0
0
0
0
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
1
0
37d57b222d4daa1969049535271df3dff47b0edb
1,925
py
Python
ws2122-lspm/Lib/site-packages/pm4py/statistics/overlap/utils/compute.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/overlap/utils/compute.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/overlap/utils/compute.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
31.048387
122
0.676883
264
1,925
4.905303
0.488636
0.015444
0.030116
0.044015
0.06332
0.043243
0
0
0
0
0
0.010753
0.227013
1,925
61
123
31.557377
0.859543
0.537143
0
0
0
0
0.008974
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.421053
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
0
0
1
0
37d597714762fd1b5295ccfa14750529f2501042
1,775
py
Python
webapp/apps/Base Quiz/baseui_gen.py
sk-Prime/webapp
c21d7d49de4e4442f9af29ba9f08f37b5abbd20d
[ "MIT" ]
4
2021-12-11T16:01:10.000Z
2021-12-22T19:47:51.000Z
webapp/apps/Base Quiz/baseui_gen.py
sk-Prime/webapp
c21d7d49de4e4442f9af29ba9f08f37b5abbd20d
[ "MIT" ]
null
null
null
webapp/apps/Base Quiz/baseui_gen.py
sk-Prime/webapp
c21d7d49de4e4442f9af29ba9f08f37b5abbd20d
[ "MIT" ]
null
null
null
from htmlman import HTMLMan from styleman import Template page=HTMLMan() page.make_responsive() page.add_title("Base Quiz") style=Template('antartica') page.add_body_class(style['page']) page.add_js("baseui.js") page.create_section('main',append=True) page['main'].add_style_class(style['main']) title=page.create_sec...
26.102941
73
0.750423
262
1,775
4.843511
0.282443
0.078802
0.120567
0.085106
0.080378
0.044129
0
0
0
0
0
0.010863
0.066479
1,775
68
74
26.102941
0.754979
0.021408
0
0
0
0
0.227404
0.01209
0
0
0.001727
0
0
1
0
false
0
0.04
0
0.04
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
0
0
1
0
37d5b6f804f5b3c1c18198672cc73bf3cc33a2a6
514
py
Python
cluster_config/cluster.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
cluster_config/cluster.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
cluster_config/cluster.py
srcc-msu/job_statistics
74680a4e4c105ebcff94f089e07fcb44dbcc12d9
[ "MIT" ]
null
null
null
name = "cluster" num_cores = 1000 GENERAL_PARTITIONS = ["regular"] GPU_PARTITIONS = ["gpu"] PARTITIONS = GENERAL_PARTITIONS + GPU_PARTITIONS ACTIVE_JOB_STATES = ["RUNNING", "COMPLETING"] FINISHED_JOB_STATES = ["COMPLETED", "NODE_FAIL", "TIMEOUT", "FAILED", "CANCELLED"] JOB_STATES = ACTIVE_JOB_STATES + FINISHED_JOB_...
27.052632
82
0.741245
68
514
5.382353
0.676471
0.122951
0.125683
0
0
0
0
0
0
0
0
0.024499
0.126459
514
18
83
28.555556
0.790646
0.190661
0
0
0
0
0.180929
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37d62e06868fc1146c429cff23d726ebbfa8afd8
7,146
py
Python
room_assistance/indico_room_assistance/plugin.py
OmeGak/indico-plugins-cern
6e32bc158877080085ceffd021ab1d2247192f75
[ "MIT" ]
4
2019-02-12T05:08:56.000Z
2022-03-09T23:43:18.000Z
room_assistance/indico_room_assistance/plugin.py
OmeGak/indico-plugins-cern
6e32bc158877080085ceffd021ab1d2247192f75
[ "MIT" ]
40
2017-11-08T15:08:50.000Z
2022-03-28T15:09:51.000Z
room_assistance/indico_room_assistance/plugin.py
OmeGak/indico-plugins-cern
6e32bc158877080085ceffd021ab1d2247192f75
[ "MIT" ]
15
2017-11-08T12:35:59.000Z
2022-01-13T15:16:42.000Z
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2021 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. import dateutil.parser import pytz from flask import flash, request...
52.160584
120
0.645116
773
7,146
5.730919
0.291074
0.088488
0.033183
0.02167
0.185327
0.142889
0.095711
0.095711
0.095711
0.095711
0
0.002135
0.279037
7,146
136
121
52.544118
0.857725
0.04562
0
0.085714
0
0
0.186029
0.046176
0
0
0
0
0
1
0.066667
false
0
0.190476
0.038095
0.428571
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37d69c9affc9004808d91089e961fe9861840f56
6,808
py
Python
datamart/materializers/wikidata_spo_materializer.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
7
2018-10-02T01:32:23.000Z
2020-10-08T00:42:35.000Z
datamart/materializers/wikidata_spo_materializer.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
47
2018-10-02T05:41:13.000Z
2021-02-02T21:50:31.000Z
datamart/materializers/wikidata_spo_materializer.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
19
2018-10-01T22:27:20.000Z
2019-02-28T18:59:53.000Z
from datamart.materializers.materializer_base import MaterializerBase import os import urllib.request import sys import csv import copy import json from typing import List from pprint import pprint import re import typing from pandas import DataFrame import traceback class WikidataSPOMaterializer(MaterializerBase): ...
38.03352
126
0.552732
717
6,808
5.034868
0.225941
0.042382
0.022161
0.018283
0.209972
0.202216
0.184488
0.166205
0.147922
0.147922
0
0.005215
0.324031
6,808
178
127
38.247191
0.779226
0.07829
0
0.153285
0
0
0.084253
0
0
0
0
0
0
1
0.065693
false
0
0.094891
0
0.233577
0.021898
0
0
0
null
0
0
0
0
0
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
1
0
37d6ae677936f62a1cad64182feb228714d24c7d
1,402
py
Python
axelrod/load_data_.py
danilobellini/Axelrod
2c9212553e06095c24adcb82a5979279cbdf45fb
[ "MIT" ]
null
null
null
axelrod/load_data_.py
danilobellini/Axelrod
2c9212553e06095c24adcb82a5979279cbdf45fb
[ "MIT" ]
1
2019-01-22T09:59:52.000Z
2019-01-22T09:59:52.000Z
axelrod/load_data_.py
danilobellini/Axelrod
2c9212553e06095c24adcb82a5979279cbdf45fb
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple import pkg_resources def load_file(filename: str, directory: str) -> List[List[str]]: """Loads a data file stored in the Axelrod library's data subdirectory, likely for parameters for a strategy.""" path = "/".join((directory, filename)) data_bytes = pkg_resources...
31.155556
75
0.601284
198
1,402
4.151515
0.373737
0.036496
0.058394
0.048662
0.121655
0.121655
0.121655
0.121655
0.121655
0.121655
0
0.010329
0.240371
1,402
44
76
31.863636
0.761502
0.110556
0
0.242424
0
0
0.04564
0
0
0
0
0
0
1
0.090909
false
0
0.060606
0
0.242424
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
0
0
1
0
37d85e09c27d6497523862946e45ed0db97f77b6
5,248
py
Python
prescryptchain/api/views.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
3
2018-05-03T18:40:48.000Z
2019-06-09T19:04:44.000Z
prescryptchain/api/views.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
6
2018-06-27T00:14:46.000Z
2018-10-29T20:51:45.000Z
prescryptchain/api/views.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # REST from rest_framework.viewsets import ViewSetMixin from rest_framework import routers, serializers, viewsets from rest_framework.authentication import SessionAuthentication, BasicAuthentication, TokenAuthentication from rest_framework.permissions imp...
33.858065
129
0.664444
558
5,248
6.003584
0.284946
0.034925
0.045672
0.018806
0.268358
0.203881
0.159104
0.159104
0.159104
0.125075
0
0.004004
0.238567
5,248
154
130
34.077922
0.834334
0.11109
0
0.280374
0
0
0.102369
0.004564
0
0
0
0
0
1
0.046729
false
0
0.121495
0.018692
0.429907
0.009346
0
0
0
null
0
0
0
0
0
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
1
0
37d92a06667232ad4a4f6ca14ad0257dd6a2e56a
2,484
py
Python
client/commands/incremental.py
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
client/commands/incremental.py
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
client/commands/incremental.py
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import atexit import logging import os import subprocess import sys from typing import List from .command import ClientException, ExitCode, State f...
31.846154
88
0.625201
269
2,484
5.568773
0.416357
0.079439
0.040053
0.052069
0.030708
0.030708
0
0
0
0
0
0.007226
0.275765
2,484
77
89
32.25974
0.825459
0.074477
0
0
0
0
0.092891
0.021805
0
0
0
0
0
1
0.070175
false
0
0.157895
0
0.280702
0.017544
0
0
0
null
0
0
0
0
0
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
1
0
37da81bd71be1d388df7554cdc71e1b8d0bef4e9
26,540
py
Python
main_random_policy.py
rish-raghu/Object-Goal-Navigation
d2c882f3a97396c691fc75b46bd94bb7077f7d0f
[ "MIT" ]
null
null
null
main_random_policy.py
rish-raghu/Object-Goal-Navigation
d2c882f3a97396c691fc75b46bd94bb7077f7d0f
[ "MIT" ]
null
null
null
main_random_policy.py
rish-raghu/Object-Goal-Navigation
d2c882f3a97396c691fc75b46bd94bb7077f7d0f
[ "MIT" ]
null
null
null
from collections import deque, defaultdict import os import sys import logging import time import json import gym import torch.nn as nn import torch import numpy as np import matplotlib.pyplot as plt from model import RL_Policy, Semantic_Mapping from utils.storage import GlobalRolloutStorage from envs import make_vec_...
41.020093
132
0.511492
3,339
26,540
3.830488
0.112908
0.036122
0.018765
0.02502
0.503753
0.452619
0.42455
0.395152
0.383425
0.371853
0
0.021995
0.335343
26,540
646
133
41.083591
0.703061
0.117257
0
0.433121
0
0
0.061459
0.010621
0
0
0
0.001548
0
1
0.012739
false
0
0.03397
0
0.050955
0.016985
0
0
0
null
0
0
0
0
0
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
1
0
37ddb9f83521ff471c035e9cd6a4902772e590bf
5,107
py
Python
mindarmour/utils/logger.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
139
2020-03-28T02:37:07.000Z
2022-03-24T15:35:39.000Z
mindarmour/utils/logger.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
2
2020-04-02T09:50:21.000Z
2020-05-09T06:52:57.000Z
mindarmour/utils/logger.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
12
2020-03-28T02:52:42.000Z
2021-07-15T08:05:06.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.119497
91
0.595457
621
5,107
4.761675
0.289855
0.024349
0.027054
0.018938
0.308759
0.291173
0.266824
0.266824
0.256679
0.223199
0
0.008542
0.289407
5,107
158
92
32.322785
0.806283
0.440572
0
0.192308
0
0
0.085931
0.029907
0
0
0
0
0
1
0.192308
false
0
0.019231
0
0.326923
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
0
0
1
0
37e09e1c599fd41f037cb54000938dba1d33127b
7,483
py
Python
bert_rerannker_eval.py
satya77/transformer_rankers
0d2c20bd26041d887fb65102020a0b609ec967fc
[ "MIT" ]
null
null
null
bert_rerannker_eval.py
satya77/transformer_rankers
0d2c20bd26041d887fb65102020a0b609ec967fc
[ "MIT" ]
null
null
null
bert_rerannker_eval.py
satya77/transformer_rankers
0d2c20bd26041d887fb65102020a0b609ec967fc
[ "MIT" ]
null
null
null
from transformer_rankers.trainers import transformer_trainer from transformer_rankers.datasets import dataset, preprocess_scisumm_ranked from transformer_rankers.eval import results_analyses_tools from transformers import BertTokenizer, BertForSequenceClassification from sacred.observers import FileStorageObserver fro...
47.967949
116
0.526928
821
7,483
4.544458
0.263094
0.027339
0.027875
0.028947
0.292415
0.254891
0.226749
0.218172
0.210935
0.136425
0
0.013634
0.372711
7,483
156
117
47.967949
0.78121
0.425498
0
0.025974
0
0
0.149788
0.016722
0
0
0
0
0
1
0.025974
false
0
0.168831
0
0.220779
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
0
0
1
0
37e13b4fd890037fc4d7192b2e7467ef9a1cb201
4,033
py
Python
check.py
Dysoncat/student-services-slas-chat-bot
5d9c7105cef640c34018d260249b6a05b959e73f
[ "MIT" ]
null
null
null
check.py
Dysoncat/student-services-slas-chat-bot
5d9c7105cef640c34018d260249b6a05b959e73f
[ "MIT" ]
null
null
null
check.py
Dysoncat/student-services-slas-chat-bot
5d9c7105cef640c34018d260249b6a05b959e73f
[ "MIT" ]
null
null
null
import long_responses as long # Returns the probability of a message matching the responses that we have def messageProb(userMessage, recognizedWords, isSingleResponse=False, requiredWords=[]): messageCertainty = 0 hasRequiredWords = True # Counts how many words are present in each predefined message ...
40.33
154
0.623109
485
4,033
5.039175
0.334021
0.06383
0.055237
0.027823
0.183306
0.139116
0.108838
0.108838
0.108838
0.108838
0
0.00665
0.21696
4,033
99
155
40.737374
0.767258
0.147037
0
0.063492
0
0
0.223454
0.009043
0
0
0
0
0
1
0.063492
false
0
0.015873
0
0.15873
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37e16ab061f36f12398b74b8a1440f3cc6768529
1,446
py
Python
image_predictor/utils.py
jdalzatec/streamlit-manizales-tech-talks
619af5edc79a22ed4cc9f50dd2d0379399357549
[ "MIT" ]
2
2022-02-05T15:48:55.000Z
2022-02-05T15:57:40.000Z
image_predictor/utils.py
jdalzatec/streamlit-manizales-tech-talks
619af5edc79a22ed4cc9f50dd2d0379399357549
[ "MIT" ]
null
null
null
image_predictor/utils.py
jdalzatec/streamlit-manizales-tech-talks
619af5edc79a22ed4cc9f50dd2d0379399357549
[ "MIT" ]
4
2022-02-05T15:49:02.000Z
2022-02-05T15:58:14.000Z
from io import StringIO import numpy as np from h5py import File from keras.models import load_model as keras_load_model from PIL import Image, ImageOps def predict(image, model): # Create the array of the right shape to feed into the keras model # The 'length' or number of images you can put into the array ...
32.133333
81
0.697095
218
1,446
4.541284
0.444954
0.040404
0.028283
0
0
0
0
0
0
0
0
0.035587
0.222683
1,446
44
82
32.863636
0.845196
0.331259
0
0
0
0
0.001046
0
0
0
0
0
0
1
0.12
false
0
0.2
0.04
0.44
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
0
0
1
0
37e304a5ab34e95d070c76d96d91559914adff14
561
py
Python
tests/facebook/models/test_photo.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
2
2021-03-16T02:58:10.000Z
2021-03-16T16:53:23.000Z
tests/facebook/models/test_photo.py
nedsons/python-facebook
bf2b4a70ef0e0a67a142f5856586ea318f9807ea
[ "Apache-2.0" ]
null
null
null
tests/facebook/models/test_photo.py
nedsons/python-facebook
bf2b4a70ef0e0a67a142f5856586ea318f9807ea
[ "Apache-2.0" ]
1
2021-06-02T07:15:35.000Z
2021-06-02T07:15:35.000Z
import json import unittest import pyfacebook.models as models class PhotoModelTest(unittest.TestCase): BASE_PATH = "testdata/facebook/models/photos/" with open(BASE_PATH + 'photo.json', 'rb') as f: PHOTO_INFO = json.loads(f.read().decode('utf-8')) def testPhoto(self): m = models.Photo....
28.05
60
0.686275
75
561
5.026667
0.573333
0.159151
0.127321
0
0
0
0
0
0
0
0
0.078431
0.181818
561
19
61
29.526316
0.742919
0
0
0
0
0
0.14082
0.057041
0
0
0
0
0.307692
1
0.076923
false
0
0.230769
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37e4a1783cf1d5a9318a74c7d860d1f54e64ee4e
5,837
py
Python
airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py
curanaj/airbyte-dbt-demo
f6b8ccd8f8e57b7ea84caf814b14d836338e8007
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py
curanaj/airbyte-dbt-demo
f6b8ccd8f8e57b7ea84caf814b14d836338e8007
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/source.py
curanaj/airbyte-dbt-demo
f6b8ccd8f8e57b7ea84caf814b14d836338e8007
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Airbyte # # 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, publ...
47.072581
122
0.704471
758
5,837
5.408971
0.358839
0.021463
0.010244
0.02122
0.204146
0.18
0.18
0.18
0.18
0.18
0
0.002256
0.240535
5,837
123
123
47.455285
0.922626
0.648621
0
0.05
0
0
0.091442
0
0
0
0
0
0
1
0.075
false
0
0.15
0
0.325
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
0
0
1
0
37e57878ec351c326eab8dff88096e5a9b705681
8,983
py
Python
experiments/vgg16/VGG16_utils.py
petrapoklukar/DCA
e5b3f3481433306a4b33e712272f8bbf5e9d05ce
[ "MIT" ]
2
2022-02-14T15:54:22.000Z
2022-02-15T18:43:36.000Z
experiments/vgg16/VGG16_utils.py
petrapoklukar/DCA
e5b3f3481433306a4b33e712272f8bbf5e9d05ce
[ "MIT" ]
null
null
null
experiments/vgg16/VGG16_utils.py
petrapoklukar/DCA
e5b3f3481433306a4b33e712272f8bbf5e9d05ce
[ "MIT" ]
null
null
null
import pickle import numpy as np import os def _analyze_query_point_assignment( query_data_dict: dict, init_Rdata_dict: dict, init_Edata_dict: dict, num_R: int, query_point_assignment_array: np.ndarray, root: str, n_points_to_copy=50, ): """ Analyzes and visualizes qDCA results. ...
36.815574
87
0.571969
1,088
8,983
4.348346
0.132353
0.043754
0.059184
0.068696
0.596914
0.512788
0.447263
0.395477
0.313464
0.301205
0
0.015974
0.317043
8,983
243
88
36.967078
0.755175
0.075365
0
0.267327
0
0
0.13352
0.06026
0
0
0
0
0
1
0.009901
false
0
0.014851
0
0.029703
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
0
0
1
0
37e640e884ea7efdcb34d9809f129977c3b8f796
2,905
py
Python
back-end/RawFishSheep/app_cart/views.py
Coldarra/RawFishSheep
266bd9d8d9832d5c692b63e7515d45fdc4f6acc4
[ "Apache-2.0" ]
null
null
null
back-end/RawFishSheep/app_cart/views.py
Coldarra/RawFishSheep
266bd9d8d9832d5c692b63e7515d45fdc4f6acc4
[ "Apache-2.0" ]
4
2021-10-06T22:49:52.000Z
2022-02-27T12:28:18.000Z
back-end/RawFishSheep/app_cart/views.py
Coldarra/RawFishSheep
266bd9d8d9832d5c692b63e7515d45fdc4f6acc4
[ "Apache-2.0" ]
null
null
null
from .models import * from decorator import * from app_goods.views import getGoodsByID # 查询当前用户所有的购物车信息 def getCartByUser(user_id=None): if user_id == None: raise ParamException() return Cart.objects.filter(user_id=user_id) def getSelectedCart(user_id=None): if user_id == None: raise P...
29.05
78
0.685714
393
2,905
4.857506
0.145038
0.144578
0.117863
0.136197
0.614458
0.572027
0.481928
0.470927
0.440545
0.3934
0
0.011704
0.205852
2,905
99
79
29.343434
0.815778
0.014114
0
0.408451
0
0
0.017489
0
0
0
0
0
0
1
0.15493
false
0
0.042254
0.014085
0.323944
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
0
0
1
0
37e6a1c12c2e7ca4fa6cc0bc35bd20189bfd7063
7,704
py
Python
extensions/catsum.py
johannesgiorgis/my-timewarrior-extensions
1a8b83359298d3cbf002148f02b5ef6f1693a797
[ "MIT" ]
null
null
null
extensions/catsum.py
johannesgiorgis/my-timewarrior-extensions
1a8b83359298d3cbf002148f02b5ef6f1693a797
[ "MIT" ]
1
2022-02-14T16:53:54.000Z
2022-02-14T16:53:54.000Z
extensions/catsum.py
xoiopure/my-timewarrior-extensions
1a8b83359298d3cbf002148f02b5ef6f1693a797
[ "MIT" ]
1
2021-08-29T00:32:18.000Z
2021-08-29T00:32:18.000Z
#!/usr/bin/env python3 ############################################################################### # # Category Summaries # # ############################################################################### import datetime import io import json import logging import pprint import sys from typing import Dict, Any ...
31.57377
98
0.641874
899
7,704
5.292547
0.221357
0.08575
0.043716
0.020177
0.269021
0.166036
0.12232
0.067255
0.044977
0.044977
0
0.010339
0.221573
7,704
243
99
31.703704
0.783058
0.123572
0
0.10828
0
0.019108
0.144562
0.047575
0
0
0
0.004115
0
1
0.050955
false
0
0.050955
0
0.146497
0.082803
0
0
0
null
0
0
0
0
0
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
1
0
37e90c8995ed6a6f4dbc2bb7d6d0c967a69b04ab
3,881
py
Python
resources/hotel.py
jnascimentocode/REST-API-COM-PYTHON-E-FLASK
c55dca53f3a864c6c1aba8bbde63dcadc3c19347
[ "MIT" ]
null
null
null
resources/hotel.py
jnascimentocode/REST-API-COM-PYTHON-E-FLASK
c55dca53f3a864c6c1aba8bbde63dcadc3c19347
[ "MIT" ]
null
null
null
resources/hotel.py
jnascimentocode/REST-API-COM-PYTHON-E-FLASK
c55dca53f3a864c6c1aba8bbde63dcadc3c19347
[ "MIT" ]
null
null
null
from typing import ParamSpecArgs from flask_restful import Resource, reqparse from models.hotel import HotelModel from flask_jwt_extended import jwt_required from models.site import SiteModel from resources.filtros import * import sqlite3 path_params = reqparse.RequestParser() path_params.add_argument('cidade', type=s...
34.345133
116
0.631538
461
3,881
5.156182
0.26898
0.038284
0.038284
0.061843
0.424485
0.346235
0.280606
0.174169
0.142196
0.142196
0
0.012182
0.259727
3,881
112
117
34.651786
0.815176
0.001804
0
0.303371
0
0
0.152713
0
0
0
0
0
0
1
0.05618
false
0
0.078652
0
0.314607
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
0
0
1
0
37eaf107409d84d5c2fde68eaa08ffa5c4d85c18
2,413
py
Python
testing/berge_equilibrium_cndp.py
Eliezer-Beczi/CNDP
73decdfaef1c9e546ad94dd7448c89078af27034
[ "MIT" ]
1
2021-08-13T09:14:40.000Z
2021-08-13T09:14:40.000Z
testing/berge_equilibrium_cndp.py
Eliezer-Beczi/CNDP
73decdfaef1c9e546ad94dd7448c89078af27034
[ "MIT" ]
null
null
null
testing/berge_equilibrium_cndp.py
Eliezer-Beczi/CNDP
73decdfaef1c9e546ad94dd7448c89078af27034
[ "MIT" ]
null
null
null
import networkx as nx import utils.connectivity_metrics as connectivity_metric from platypus import NSGAII, EpsMOEA, NSGAIII, EpsNSGAII, Problem, Dominance, Subset, TournamentSelector, \ HypervolumeFitnessEvaluator, Archive import statistics import multiprocessing as mp G = nx.read_adjlist("input/Ventresca/Barabas...
25.135417
111
0.63075
300
2,413
4.823333
0.356667
0.024879
0.06358
0.033172
0.070491
0.070491
0.027643
0
0
0
0
0.020705
0.259428
2,413
95
112
25.4
0.789032
0
0
0.075758
0
0
0.037298
0.016991
0
0
0
0
0
1
0.106061
false
0
0.075758
0
0.30303
0.045455
0
0
0
null
0
0
0
0
0
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
1
0
37eb3791b2e71065562272b988c38a600939b27b
3,087
py
Python
Charm/models/risk_functions.py
TanyaAdams1/Charm
cc6dd64d01f8cb4cf0eb92dadefcb7575d75ec9d
[ "BSD-3-Clause" ]
17
2018-04-23T20:17:58.000Z
2021-04-12T19:28:40.000Z
Charm/models/risk_functions.py
TanyaAdams1/Charm
cc6dd64d01f8cb4cf0eb92dadefcb7575d75ec9d
[ "BSD-3-Clause" ]
1
2020-02-01T23:57:28.000Z
2020-02-04T18:03:17.000Z
Charm/models/risk_functions.py
TanyaAdams1/Charm
cc6dd64d01f8cb4cf0eb92dadefcb7575d75ec9d
[ "BSD-3-Clause" ]
3
2018-04-19T19:24:38.000Z
2020-11-06T00:33:53.000Z
import numpy as np from mcerp import * from uncertainties.core import AffineScalarFunc class RiskFunction(object): def get_risk(self, bar, p): """ Computes risk for perf array w.r.t. bar. Args: bar: reference performance bar. perfs: performance array-like. Returns:...
29.4
74
0.551344
357
3,087
4.633053
0.268908
0.033857
0.045345
0.057437
0.299274
0.270254
0.270254
0.259371
0.223096
0.155985
0
0.020833
0.346939
3,087
104
75
29.682692
0.799603
0.100421
0
0.282051
0
0
0.021339
0
0
0
0
0.009615
0
1
0.153846
false
0
0.038462
0.012821
0.397436
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
0
0
1
0
37ebc35183b9314a344aaf25eb9e7de4a348916a
2,149
py
Python
spacy/tests/tagger/test_lemmatizer.py
TerminalWitchcraft/spaCy
29adbef095c04e21a691e912671e4ec21082b047
[ "MIT" ]
1
2018-09-24T17:00:23.000Z
2018-09-24T17:00:23.000Z
spacy/tests/tagger/test_lemmatizer.py
TerminalWitchcraft/spaCy
29adbef095c04e21a691e912671e4ec21082b047
[ "MIT" ]
null
null
null
spacy/tests/tagger/test_lemmatizer.py
TerminalWitchcraft/spaCy
29adbef095c04e21a691e912671e4ec21082b047
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals from ...lemmatizer import read_index, read_exc import pytest @pytest.mark.models @pytest.mark.parametrize('text,lemmas', [("aardwolves", ["aardwolf"]), ("aardwolf", ["aardwolf"]), ...
30.7
74
0.604467
257
2,149
4.88716
0.29572
0.071656
0.089172
0.128185
0.539809
0.48328
0.48328
0.324841
0.170382
0
0
0.00062
0.249884
2,149
69
75
31.144928
0.778536
0.006049
0
0.365385
0
0
0.106842
0
0
0
0
0
0.230769
1
0.134615
false
0
0.057692
0
0.269231
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
0
0
1
0
37ee0cfd689d053055f9512b80721598ce49ab1a
1,845
py
Python
AlgoNet2/Helper.py
Bhaney44/AlgorandDevelopment
309e68337227af879f5c4e92c72156928a39fe32
[ "MIT" ]
null
null
null
AlgoNet2/Helper.py
Bhaney44/AlgorandDevelopment
309e68337227af879f5c4e92c72156928a39fe32
[ "MIT" ]
1
2021-04-24T19:24:05.000Z
2021-04-28T05:32:40.000Z
AlgoNet2/Helper.py
Bhaney44/AlgorandDevelopment
309e68337227af879f5c4e92c72156928a39fe32
[ "MIT" ]
1
2022-01-17T18:00:56.000Z
2022-01-17T18:00:56.000Z
import numpy as np from keras.models import Sequential from keras.layers import LSTM, Dense, Dropout def visualize_training_results(results): """ Plots the loss and accuracy for the training and testing data """ history = results.history plt.figure(figsize=(12,4)) plt.plot(history['val_loss']) ...
27.954545
101
0.615176
253
1,845
4.367589
0.395257
0.031674
0.050679
0.032579
0.161086
0.065158
0.065158
0.065158
0.065158
0
0
0.007391
0.266667
1,845
65
102
28.384615
0.809313
0.21897
0
0.146341
0
0
0.071942
0
0
0
0
0
0
1
0.073171
false
0.02439
0.073171
0
0.170732
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
0
0
1
0
37ef3e58f557478ce40c98955a961b550b4256ca
14,120
py
Python
apex/contrib/multihead_attn/self_multihead_attn_func.py
Muflhi01/apex
79c018776129aad13abeb4ce63d24e1fbb4cd29e
[ "BSD-3-Clause" ]
6,523
2018-04-25T17:35:27.000Z
2022-03-31T22:49:45.000Z
apex/contrib/multihead_attn/self_multihead_attn_func.py
Muflhi01/apex
79c018776129aad13abeb4ce63d24e1fbb4cd29e
[ "BSD-3-Clause" ]
1,100
2018-05-18T00:03:34.000Z
2022-03-30T22:00:33.000Z
apex/contrib/multihead_attn/self_multihead_attn_func.py
Muflhi01/apex
79c018776129aad13abeb4ce63d24e1fbb4cd29e
[ "BSD-3-Clause" ]
1,057
2018-05-07T13:53:04.000Z
2022-03-31T09:18:47.000Z
import torch import torch.nn.functional as F class SelfAttnFunc(torch.autograd.Function): @staticmethod def forward( ctx, use_time_mask, is_training, heads, scale, inputs, input_weights, output_weights, input_biases, output_biases...
45.844156
133
0.590652
1,870
14,120
4.22139
0.104813
0.03547
0.045984
0.024829
0.634406
0.563593
0.531796
0.49734
0.489866
0.434887
0
0.032624
0.300992
14,120
307
134
45.993485
0.767173
0.351346
0
0.353535
0
0
0.007382
0
0
0
0
0
0.010101
1
0.010101
false
0
0.010101
0
0.035354
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
0
0
1
0
37ef3fd76dba247104e4038149d9913b2621526c
6,481
py
Python
api/app/reviews/models.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
null
null
null
api/app/reviews/models.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
null
null
null
api/app/reviews/models.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from app import db from app.utils import misc class ReviewForm(db.Model): id = db.Column(db.Integer(), primary_key=True) application_form_id = db.Column(db.Integer(), db.ForeignKey('application_form.id'), nullable=False) is_open = db.Column(db.Boolean(), nullable=False)...
42.084416
123
0.666101
761
6,481
5.423127
0.130092
0.073661
0.092077
0.082384
0.497456
0.480494
0.356433
0.348922
0.249576
0.217834
0
0.000595
0.222651
6,481
153
124
42.359477
0.818579
0
0
0.233871
0
0
0.06574
0.012958
0
0
0
0
0
1
0.072581
false
0
0.024194
0.008065
0.58871
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
0
0
1
0
37ef5b190722144951d2dc7179cd76d69b1cdbc2
3,307
py
Python
speednet/vae/ConvVae.py
Abhranta/speednet
d15971e946cddc62a644d6a6f3be10a4df5b2ce2
[ "MIT" ]
1
2021-01-20T14:29:14.000Z
2021-01-20T14:29:14.000Z
speednet/vae/ConvVae.py
Abhranta/speednet
d15971e946cddc62a644d6a6f3be10a4df5b2ce2
[ "MIT" ]
null
null
null
speednet/vae/ConvVae.py
Abhranta/speednet
d15971e946cddc62a644d6a6f3be10a4df5b2ce2
[ "MIT" ]
null
null
null
import torch.nn as nn import torch from utils import Flatten , Unflatten , weights_init , down_conv , up_conv class Net(nn.Module): def __init__(self , num_layers , img_dim , in_chan , act_func , latent_vector_size): super(Net , self).__init__() assert act_func in ("ReLU" , "LeakyReLU") , ...
47.927536
133
0.556093
406
3,307
4.258621
0.204434
0.060729
0.120301
0.127241
0.378832
0.246964
0.178138
0.178138
0.178138
0.161943
0
0.018833
0.341699
3,307
69
134
47.927536
0.775379
0
0
0.089286
0
0
0.047461
0
0
0
0
0
0.035714
1
0.089286
false
0
0.053571
0
0.232143
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
0
0
1
0
37f19f659d9ef143b2408f934266bdcc951f5ade
73,603
py
Python
nelpy/utils.py
IsaacBusaleh/nelpy
f2663cf6f028c9bd0e630fbf8a527c236f4e0f41
[ "MIT" ]
1
2021-01-01T17:59:31.000Z
2021-01-01T17:59:31.000Z
nelpy/utils.py
IsaacBusaleh/nelpy
f2663cf6f028c9bd0e630fbf8a527c236f4e0f41
[ "MIT" ]
null
null
null
nelpy/utils.py
IsaacBusaleh/nelpy
f2663cf6f028c9bd0e630fbf8a527c236f4e0f41
[ "MIT" ]
null
null
null
"""This module contains helper functions and utilities for nelpy.""" __all__ = ['spatial_information', 'frange', 'swap_cols', 'swap_rows', 'pairwise', 'is_sorted', 'linear_merge', 'PrettyDuration', 'ddt_asa', 'get_contig...
37.135721
190
0.615709
9,571
73,603
4.647163
0.113154
0.011691
0.014029
0.007554
0.433473
0.377018
0.340573
0.322721
0.310895
0.293853
0
0.017809
0.287475
73,603
1,981
191
37.154467
0.830295
0.429276
0
0.371397
0
0
0.065926
0.006021
0
0
0
0.004038
0.007761
1
0.064302
false
0.002217
0.025499
0.006652
0.175166
0.001109
0
0
0
null
0
0
0
0
0
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
1
0
37f1a13e31b524b47983953b4e76242354934ac4
23,625
py
Python
python/paddle/fluid/contrib/slim/quantization/imperative/qat.py
logan-siyao-peng/Paddle
10a8f3e5c3151c1abb810fba2994cc30e1232bec
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/contrib/slim/quantization/imperative/qat.py
logan-siyao-peng/Paddle
10a8f3e5c3151c1abb810fba2994cc30e1232bec
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/contrib/slim/quantization/imperative/qat.py
logan-siyao-peng/Paddle
10a8f3e5c3151c1abb810fba2994cc30e1232bec
[ "Apache-2.0" ]
1
2021-01-17T01:11:45.000Z
2021-01-17T01:11:45.000Z
# Copyright (c) 2020 PaddlePaddle 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 app...
46.232877
114
0.600974
2,721
23,625
4.983094
0.173098
0.011505
0.01239
0.016815
0.344126
0.274357
0.216093
0.19972
0.175972
0.155542
0
0.006606
0.327238
23,625
510
115
46.323529
0.846483
0.376466
0
0.149635
0
0
0.096385
0.018669
0
0
0
0
0.032847
1
0.032847
false
0.007299
0.058394
0
0.109489
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
0
0
1
0
37f415fea8c9ac7d7647ab03f1f9ceb7a0593bde
1,815
py
Python
sc/northwind.py
elliotgunn/DS-Unit-3-Sprint-2-SQL-and-Databases
c730e2b3e66199226fa7549511cbb7801eb7a694
[ "MIT" ]
null
null
null
sc/northwind.py
elliotgunn/DS-Unit-3-Sprint-2-SQL-and-Databases
c730e2b3e66199226fa7549511cbb7801eb7a694
[ "MIT" ]
null
null
null
sc/northwind.py
elliotgunn/DS-Unit-3-Sprint-2-SQL-and-Databases
c730e2b3e66199226fa7549511cbb7801eb7a694
[ "MIT" ]
null
null
null
import pandas as pd import sqlite3 from pandas import DataFrame n_conn = sqlite3.connect('northwind_small.sqlite3') n_curs = n_conn.cursor() # What are the ten most expensive items (per unit price) in the database? query = """ SELECT ProductName, UnitPrice FROM Product ORDER BY UnitPrice DESC LIMIT 10 """ n_curs.ex...
22.6875
79
0.755923
278
1,815
4.877698
0.384892
0.047935
0.053097
0.075221
0.343658
0.29646
0.29646
0.29646
0.270649
0.187316
0
0.009044
0.147107
1,815
79
80
22.974684
0.866925
0.349862
0
0.54717
0
0
0.557461
0.059177
0
0
0
0
0
1
0
false
0
0.056604
0
0.056604
0.113208
0
0
0
null
0
0
0
0
0
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
1
0
37f5b2546c850f56d3d094ea379b377bba04af7c
2,051
py
Python
lib/MergeMetabolicAnnotations/utils/CompareAnnotationsUtil.py
jeffkimbrel/MergeMetabolicAnnotations
ec971d114d57942cef73dc2980c8faf48cea7afe
[ "MIT" ]
1
2021-08-04T15:42:46.000Z
2021-08-04T15:42:46.000Z
lib/MergeMetabolicAnnotations/utils/CompareAnnotationsUtil.py
jeffkimbrel/MergeMetabolicAnnotations
ec971d114d57942cef73dc2980c8faf48cea7afe
[ "MIT" ]
3
2019-02-01T22:14:02.000Z
2021-02-03T03:16:52.000Z
lib/MergeMetabolicAnnotations/utils/CompareAnnotationsUtil.py
jeffkimbrel/MergeMetabolicAnnotations
ec971d114d57942cef73dc2980c8faf48cea7afe
[ "MIT" ]
3
2018-11-30T21:31:00.000Z
2021-01-12T16:13:01.000Z
import os import datetime import logging import json import uuid from installed_clients.WorkspaceClient import Workspace as Workspace from installed_clients.KBaseReportClient import KBaseReport from installed_clients.annotation_ontology_apiServiceClient import annotation_ontology_api import MergeMetabolicAnnotations....
36.625
92
0.686494
235
2,051
5.685106
0.395745
0.041168
0.04491
0.020958
0.031437
0
0
0
0
0
0
0.002478
0.213067
2,051
55
93
37.290909
0.825279
0.016577
0
0
0
0
0.134558
0.038729
0
0
0
0
0
1
0.04878
false
0
0.219512
0
0.317073
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
0
0
1
0
37f85d17e2772b9092e4ca6adf7715edc27bc547
1,168
py
Python
src/backend/tests/test_game/test_models.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
src/backend/tests/test_game/test_models.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
src/backend/tests/test_game/test_models.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
from unittest.mock import Mock, patch import numpy as np from game.models import ValuePolicyModel def test_predict(): mask = np.zeros((9, 7, 8), dtype=bool) mask[1, 2, 3] = 1 mask[6, 6, 6] = 1 tensor_mock = Mock() policy_tensor = np.zeros((9, 7, 8), dtype=float) policy_tensor[0, 0, 0] = 10...
27.809524
85
0.673801
174
1,168
4.298851
0.304598
0.112299
0.016043
0.036096
0.053476
0.040107
0
0
0
0
0
0.061555
0.207192
1,168
41
86
28.487805
0.74622
0
0
0
0
0
0
0
0
0
0
0
0.148148
1
0.037037
false
0
0.111111
0
0.148148
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
0
0
1
0
37fbd663edc97f78d91a3917050b5ae91d7a6023
2,191
py
Python
examples/labs/demo_dmtx.py
yarikoptic/nipy
749302c7ffa8ea714cc32d405f0df521102bbc6f
[ "BSD-3-Clause" ]
null
null
null
examples/labs/demo_dmtx.py
yarikoptic/nipy
749302c7ffa8ea714cc32d405f0df521102bbc6f
[ "BSD-3-Clause" ]
null
null
null
examples/labs/demo_dmtx.py
yarikoptic/nipy
749302c7ffa8ea714cc32d405f0df521102bbc6f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from __future__ import print_function # Python 2/3 compatibility __doc__ = """ Examples of design matrices specification and and computation (event-related design, FIR design, etc) Re...
30.013699
77
0.685075
315
2,191
4.634921
0.450794
0.049315
0.036986
0.053425
0.199315
0.189726
0.15274
0.127397
0.127397
0.078082
0
0.050083
0.179827
2,191
72
78
30.430556
0.762382
0.120037
0
0.04
0
0
0.177268
0
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0.04
0
0
0
null
0
0
0
0
0
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
1
0
37fdb024ea14a002f56310787cf60b4ca3d52485
36,821
py
Python
fbpcs/private_computation/test/service/test_private_computation.py
yelixu2/fbpcs
31b1154bf1a207471fa207a0b0e4c74693f09608
[ "MIT" ]
null
null
null
fbpcs/private_computation/test/service/test_private_computation.py
yelixu2/fbpcs
31b1154bf1a207471fa207a0b0e4c74693f09608
[ "MIT" ]
null
null
null
fbpcs/private_computation/test/service/test_private_computation.py
yelixu2/fbpcs
31b1154bf1a207471fa207a0b0e4c74693f09608
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from collections import defaultdict from typing import List, Optional, Tuple from unittest.mock import ...
41.558691
515
0.677222
3,786
36,821
6.189118
0.095087
0.113691
0.064015
0.065594
0.656111
0.599479
0.560516
0.516388
0.483441
0.457665
0
0.005401
0.250781
36,821
885
516
41.60565
0.843984
0.084734
0
0.408276
0
0.002759
0.083955
0.059671
0
0
0
0.00113
0.066207
1
0.031724
false
0
0.034483
0.002759
0.071724
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
0
0
1
0
53090ea45ea4a45cdc2f0069622a80742e35321e
5,215
py
Python
indico/modules/oauth/models/applications.py
yamiacat/indico
754c02cd7cd25bf1eab0ca5f497eb24b135dd51c
[ "MIT" ]
null
null
null
indico/modules/oauth/models/applications.py
yamiacat/indico
754c02cd7cd25bf1eab0ca5f497eb24b135dd51c
[ "MIT" ]
null
null
null
indico/modules/oauth/models/applications.py
yamiacat/indico
754c02cd7cd25bf1eab0ca5f497eb24b135dd51c
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from uuid import uuid4 from sqlalchemy.dialects.postgresql import ARRAY, UUID from sqlalchemy.ext.declara...
31.227545
117
0.623011
625
5,215
5.0336
0.344
0.025429
0.044501
0.020025
0.071837
0.071837
0.071837
0.026701
0
0
0
0.004796
0.280345
5,215
166
118
31.415663
0.833467
0.198082
0
0.188034
0
0
0.178016
0.020185
0
0
0
0
0
1
0.076923
false
0
0.076923
0.059829
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
530c6ba5f7b617f99321342102c64a175ed1a651
6,257
py
Python
PaddleNLP/unarchived/deep_attention_matching_net/utils/layers.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
3
2019-09-05T14:03:42.000Z
2019-09-09T10:34:35.000Z
PaddleNLP/unarchived/deep_attention_matching_net/utils/layers.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
PaddleNLP/unarchived/deep_attention_matching_net/utils/layers.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2018-06-14T13:59:36.000Z
2018-11-14T12:34:47.000Z
import paddle.fluid as fluid def loss(x, y, clip_value=10.0): """Calculate the sigmoid cross entropy with logits for input(x). Args: x: Variable with shape with shape [batch, dim] y: Input label Returns: loss: cross entropy logits: prediction """ logits = fluid.l...
31.129353
94
0.546588
769
6,257
4.230169
0.180754
0.060867
0.071934
0.080234
0.566247
0.436213
0.373194
0.373194
0.336305
0.336305
0
0.021292
0.354483
6,257
200
95
31.285
0.784105
0.120026
0
0.395683
0
0
0.022276
0
0
0
0
0
0
1
0.035971
false
0
0.007194
0
0.079137
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
0
0
1
0
530c6de530c859b58a3a007a91c54314cf276d8d
6,896
py
Python
plugin.video.saltsrd.lite/js2py/translators/jsregexps.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
plugin.video.saltsrd.lite/js2py/translators/jsregexps.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.video.saltsrd.lite/js2py/translators/jsregexps.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
from salts_lib.pyjsparser.pyjsparserdata import * REGEXP_SPECIAL_SINGLE = {'\\', '^', '$', '*', '+', '?', '.'} NOT_PATTERN_CHARS = {'^', '$', '\\', '.', '*', '+', '?', '(', ')', '[', ']', '|'} # what about '{', '}', ??? CHAR_CLASS_ESCAPE = {'d', 'D', 's', 'S', 'w', 'W'} CONTROL_ESCAPE_CHARS = {'f', 'n', 'r', 't',...
31.488584
118
0.484049
666
6,896
4.971471
0.216216
0.097856
0.045304
0.045908
0.319541
0.281788
0.258532
0.224706
0.224706
0.205678
0
0.0071
0.366879
6,896
219
119
31.488584
0.75126
0.038718
0
0.318919
0
0
0.060432
0
0
0
0
0
0.027027
1
0.091892
false
0
0.005405
0.010811
0.243243
0.005405
0
0
0
null
0
0
0
0
0
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
1
0
530dbebdee877862aa38a08b696073a86196141c
4,282
py
Python
duckdown/handlers/site_handler.py
blueshed/duckdown
e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020
[ "MIT" ]
null
null
null
duckdown/handlers/site_handler.py
blueshed/duckdown
e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020
[ "MIT" ]
null
null
null
duckdown/handlers/site_handler.py
blueshed/duckdown
e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020
[ "MIT" ]
null
null
null
# pylint: disable=W0201, E1101 """ handle request for markdown pages """ import logging import os import importlib from tornado.web import RequestHandler, HTTPError from tornado.escape import url_escape from ..utils.converter_mixin import ConverterMixin from .access_control import UserMixin from ..utils.nav import nav ...
33.193798
70
0.578001
529
4,282
4.542533
0.238185
0.046608
0.024969
0.026633
0.183937
0.089055
0.069913
0.042447
0.042447
0.042447
0
0.007014
0.300794
4,282
128
71
33.453125
0.795591
0.094348
0
0.085106
0
0
0.077187
0.020285
0
0
0
0
0
1
0.085106
false
0
0.095745
0
0.255319
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
0
0
1
0
530e6c72942083800f06be0b1704afe86e8b9dd0
627
py
Python
Problemset/binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree.py
KivenCkl/LeetCode
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
[ "MIT" ]
7
2019-05-08T03:41:05.000Z
2020-12-22T12:39:43.000Z
Problemset/binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
1
2021-07-19T03:48:35.000Z
2021-07-19T03:48:35.000Z
Problemset/binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
7
2019-05-10T20:43:20.000Z
2021-02-22T03:47:35.000Z
# @Title: 从二叉搜索树到更大和树 (Binary Search Tree to Greater Sum Tree) # @Author: KivenC # @Date: 2019-05-15 19:52:08 # @Runtime: 48 ms # @Memory: 13 MB # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solu...
24.115385
62
0.593301
84
627
4.297619
0.535714
0.058172
0.099723
0
0
0
0
0
0
0
0
0.043182
0.298246
627
25
63
25.08
0.777273
0.452951
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
530ebd58aea0c6b33d05245813f2f54d1c4a046b
2,058
py
Python
vine/clone.py
robinson96/GRAPE
f6404ae6ee2933647e515a9480077ab01fb2c430
[ "BSD-3-Clause" ]
4
2017-04-30T17:08:42.000Z
2019-11-15T04:44:09.000Z
vine/clone.py
robinson96/GRAPE
f6404ae6ee2933647e515a9480077ab01fb2c430
[ "BSD-3-Clause" ]
1
2016-02-12T07:51:30.000Z
2016-02-12T07:51:30.000Z
vine/clone.py
robinson96/GRAPE
f6404ae6ee2933647e515a9480077ab01fb2c430
[ "BSD-3-Clause" ]
null
null
null
import os import option import utility import grapeMenu import grapeGit as git import grapeConfig class Clone(option.Option): """ grape-clone Clones a git repo and configures it for use with git. Usage: grape-clone <url> <path> [--recursive] [--allNested] Arguments: <url> The URL of th...
30.716418
120
0.59378
208
2,058
5.826923
0.456731
0.014851
0.024752
0.031353
0
0
0
0
0
0
0
0.000695
0.301263
2,058
66
121
31.181818
0.842142
0.222546
0
0.05
0
0
0.157963
0.019342
0
0
0
0
0
1
0.1
false
0.025
0.15
0.025
0.325
0.05
0
0
0
null
0
0
0
0
0
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
1
0
530f17168f0cbb129e06d1280fd5322946f49710
45,589
py
Python
neo/test/iotest/test_nixio.py
pearsonlab/python-neo
8915dfe9e55fd3a36be83d820bdd83ab085e9402
[ "BSD-3-Clause" ]
null
null
null
neo/test/iotest/test_nixio.py
pearsonlab/python-neo
8915dfe9e55fd3a36be83d820bdd83ab085e9402
[ "BSD-3-Clause" ]
null
null
null
neo/test/iotest/test_nixio.py
pearsonlab/python-neo
8915dfe9e55fd3a36be83d820bdd83ab085e9402
[ "BSD-3-Clause" ]
1
2018-04-13T04:48:48.000Z
2018-04-13T04:48:48.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016, German Neuroinformatics Node (G-Node) # Achilleas Koutsou <achilleas.k@gmail.com> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted under the terms of the BSD License. See # LICE...
39.132189
81
0.564873
4,963
45,589
5.05138
0.114648
0.012445
0.009334
0.012126
0.330515
0.273753
0.230475
0.190187
0.171879
0.15353
0
0.01171
0.331286
45,589
1,164
82
39.165808
0.810634
0.038935
0
0.233475
0
0
0.042628
0.005177
0
0
0
0
0.099147
1
0.067164
false
0
0.022388
0.004264
0.117271
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
0
0
1
0
530f7b706908016c5f54e7ff0367363c422ad2e4
5,686
py
Python
lib/taudataNlpTm.py
taudata-indonesia/elearning
6f9db8b829357cde1ae678255cc251629dfc25d2
[ "Apache-2.0" ]
3
2020-08-29T04:54:25.000Z
2021-12-12T08:25:48.000Z
lib/taudataNlpTm.py
taudataid/eLearning
6f9db8b829357cde1ae678255cc251629dfc25d2
[ "Apache-2.0" ]
null
null
null
lib/taudataNlpTm.py
taudataid/eLearning
6f9db8b829357cde1ae678255cc251629dfc25d2
[ "Apache-2.0" ]
6
2020-07-28T23:46:57.000Z
2021-09-27T02:22:01.000Z
# -*- coding: utf-8 -*- """ Created on Wed Mar 28 11:25:43 2019 @author: Taufik Sutanto taufik@tau-data.id https://tau-data.id ~~Perjanjian Penggunaan Materi & Codes (PPMC) - License:~~ * Modul Python dan gambar-gambar (images) yang digunakan adalah milik dari berbagai sumber sebagaimana yang telah dicantumkan...
44.077519
185
0.657052
754
5,686
4.900531
0.376658
0.026522
0.009743
0.007578
0.034641
0.020839
0.009743
0.009743
0.009743
0
0
0.013815
0.236194
5,686
129
186
44.077519
0.836979
0.332219
0
0.044444
0
0.011111
0.132012
0.012331
0
0
0
0
0
1
0.144444
false
0
0.077778
0.033333
0.344444
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
0
0
1
0
53120b489f06aa51d07ee8b517ab0cf190f8e1f9
807
py
Python
counting_capitals.py
m10singh94/Python-programs
a83083044b4a85afcf70c4b7024287a808b01fee
[ "Apache-2.0" ]
null
null
null
counting_capitals.py
m10singh94/Python-programs
a83083044b4a85afcf70c4b7024287a808b01fee
[ "Apache-2.0" ]
null
null
null
counting_capitals.py
m10singh94/Python-programs
a83083044b4a85afcf70c4b7024287a808b01fee
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Apr 21 08:09:31 2020 @author: Shivadhar SIngh """ def count_capitals(string): count = 0 for ch in string: if ord(ch) >= 65 and ord(ch) <= 90: count += 1 return count def remove_substring_everywhere(string, substring): ''' Remove all o...
25.21875
63
0.591078
110
807
4.309091
0.472727
0.044304
0.120253
0.084388
0.126582
0.126582
0.126582
0.126582
0
0
0
0.04028
0.292441
807
32
64
25.21875
0.789842
0.275093
0
0.210526
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.315789
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
0
0
1
0
53122c71e26ce2a712524601aa3f1353a6ea1b32
11,576
py
Python
lib/flows/general/discovery_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
1
2015-02-22T16:05:06.000Z
2015-02-22T16:05:06.000Z
lib/flows/general/discovery_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
3
2020-09-11T12:54:50.000Z
2020-09-11T12:55:01.000Z
lib/flows/general/discovery_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- """Tests for Interrogate.""" import socket from grr.client import vfs from grr.lib import action_mocks from grr.lib import aff4 from grr.lib import artifact_test from grr.lib import client_index from grr.lib import config_lib from grr.lib import flags fro...
40.194444
80
0.666379
1,366
11,576
5.505857
0.239385
0.073793
0.029783
0.021274
0.415104
0.342641
0.282276
0.248238
0.229624
0.205957
0
0.01912
0.218383
11,576
287
81
40.334495
0.812113
0.116621
0
0.265
0
0
0.091357
0.015456
0
0
0
0
0.225
1
0.09
false
0.01
0.06
0
0.175
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5312934109f52156adbe6f8ebda77f7b1fb3121e
3,595
py
Python
practices/20210112/GraphicsView.py
liff-engineer/articles
ad3386ef9cda5083793f485e309a9f85ab36f664
[ "MIT" ]
2
2020-12-01T06:44:41.000Z
2021-11-22T06:07:52.000Z
practices/20210112/GraphicsView.py
liff-engineer/articles
ad3386ef9cda5083793f485e309a9f85ab36f664
[ "MIT" ]
null
null
null
practices/20210112/GraphicsView.py
liff-engineer/articles
ad3386ef9cda5083793f485e309a9f85ab36f664
[ "MIT" ]
null
null
null
import sys from PySide2.QtWidgets import QGraphicsView, QGraphicsScene, QApplication from PySide2.QtCore import * from PySide2.QtGui import * class GraphicsView(QGraphicsView): def __init__(self, parent=None): super().__init__(parent) # 画布视图尺寸 self.w = 64000.0 self.h = 32000.0 ...
36.313131
99
0.638387
340
3,595
6.7
0.344118
0.024583
0.021071
0.035558
0.199737
0.15496
0.13784
0.13784
0.13784
0.097454
0
0.016461
0.256467
3,595
98
100
36.683673
0.835765
0.00306
0
0.128205
0
0
0.008657
0.006423
0
0
0
0
0
1
0.102564
false
0
0.051282
0
0.205128
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
0
0
1
0
5313e0d9c7ffb25cacea29febc7679af1ef4f1a0
7,997
py
Python
tests/propositional/test_natural_deduction.py
ariroffe/logics
fb918ae8cf243a452e5b030f0df17add83f47f8b
[ "MIT" ]
12
2021-03-31T08:12:09.000Z
2022-03-15T21:36:59.000Z
tests/propositional/test_natural_deduction.py
ariroffe/logics
fb918ae8cf243a452e5b030f0df17add83f47f8b
[ "MIT" ]
null
null
null
tests/propositional/test_natural_deduction.py
ariroffe/logics
fb918ae8cf243a452e5b030f0df17add83f47f8b
[ "MIT" ]
1
2021-03-31T15:14:26.000Z
2021-03-31T15:14:26.000Z
import unittest from logics.classes.propositional import Inference, Formula from logics.classes.propositional.proof_theories import NaturalDeductionStep, NaturalDeductionRule from logics.utils.parsers import classical_parser from logics.instances.propositional.natural_deduction import classical_natural_deduction_syste...
43.227027
108
0.549456
941
7,997
4.538789
0.140276
0.069305
0.05151
0.087567
0.620464
0.599625
0.543667
0.45446
0.368532
0.315617
0
0.030957
0.28098
7,997
184
109
43.461957
0.702609
0.156184
0
0.244681
0
0
0.046097
0
0
0
0
0
0.244681
1
0.031915
false
0
0.053191
0
0.095745
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
0
0
1
0
5314e40633c46116c596429cdd1af4edda4e5856
10,244
py
Python
src/trusted/validator_arm/dgen_decoder_output.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
src/trusted/validator_arm/dgen_decoder_output.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
src/trusted/validator_arm/dgen_decoder_output.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/python # # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # """ Responsible for generating the decoder based on parsed table representations. """ import dgen_opt import dgen_output imp...
31.327217
79
0.695334
1,341
10,244
5.121551
0.234899
0.03145
0.020384
0.022423
0.29339
0.205009
0.187828
0.177635
0.151718
0.145894
0
0.006318
0.196505
10,244
326
80
31.423313
0.828089
0.271964
0
0.193878
0
0
0.401845
0.065116
0
0
0
0
0.010204
1
0.020408
false
0
0.015306
0
0.061224
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5314f89fdb3bc7bd293961169b273d8fa69fd14c
2,985
py
Python
compose/progress_stream.py
ilinum/compose
d1633d8e9df3c2dd4fa6f562c6b037cfe1af8ddb
[ "Apache-2.0" ]
1
2019-03-06T08:03:18.000Z
2019-03-06T08:03:18.000Z
compose/progress_stream.py
SeppPenner/compose
87b25363a385b108066f87570aa5396567585324
[ "Apache-2.0" ]
2
2021-03-25T21:27:44.000Z
2021-06-01T21:41:30.000Z
compose/progress_stream.py
SeppPenner/compose
87b25363a385b108066f87570aa5396567585324
[ "Apache-2.0" ]
2
2018-07-20T15:52:21.000Z
2018-12-14T11:54:03.000Z
from __future__ import absolute_import from __future__ import unicode_literals from compose import utils class StreamOutputError(Exception): pass def stream_output(output, stream): is_terminal = hasattr(stream, 'isatty') and stream.isatty() stream = utils.get_output_stream(stream) all_events = [] ...
26.651786
89
0.58794
365
2,985
4.684932
0.249315
0.049123
0.049123
0.052632
0.201754
0.150292
0.067251
0.045614
0
0
0
0.006135
0.290117
2,985
111
90
26.891892
0.800849
0.049246
0
0.233766
0
0
0.098835
0
0
0
0
0
0
1
0.051948
false
0.012987
0.038961
0
0.181818
0.038961
0
0
0
null
0
0
0
0
0
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
1
0
53180c720a6c468e5a33fc70c5bb3a7936430339
808
py
Python
libs/BIDS.py
GuillermoPerez32/EE2BIDS_backend
2cab240840e11e227ad60e4c8e17ac9ac87defd4
[ "MIT" ]
null
null
null
libs/BIDS.py
GuillermoPerez32/EE2BIDS_backend
2cab240840e11e227ad60e4c8e17ac9ac87defd4
[ "MIT" ]
null
null
null
libs/BIDS.py
GuillermoPerez32/EE2BIDS_backend
2cab240840e11e227ad60e4c8e17ac9ac87defd4
[ "MIT" ]
null
null
null
import os from bids_validator import BIDSValidator def validate(bids_directory): print('- Validate: init started.') file_paths = [] result = [] validator = BIDSValidator() for path, dirs, files in os.walk(bids_directory): for filename in files: if filename == '.bidsignore': ...
29.925926
81
0.613861
89
808
5.426966
0.393258
0.134576
0.068323
0.124224
0.383023
0.229814
0.173913
0.173913
0.173913
0
0
0
0.27599
808
26
82
31.076923
0.825641
0.075495
0
0.157895
0
0
0.092617
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.210526
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
531bf28ae62e80e65e0bf53d63aae0164d547e7c
696
py
Python
harmony_tools/core/colors.py
a1fred/guitar_gammas
9933fe899af7a8e7f490f61d58004bb59f03271c
[ "MIT" ]
1
2021-02-26T03:52:26.000Z
2021-02-26T03:52:26.000Z
harmony_tools/core/colors.py
a1fred/harmony_tools
9933fe899af7a8e7f490f61d58004bb59f03271c
[ "MIT" ]
null
null
null
harmony_tools/core/colors.py
a1fred/harmony_tools
9933fe899af7a8e7f490f61d58004bb59f03271c
[ "MIT" ]
null
null
null
COLOR_BLUE = '\033[0;34m' COLOR_GREEN = '\033[0;32m' COLOR_CYAN = '\033[0;36m' COLOR_RED = '\033[0;31m' COLOR_PURPLE = '\033[0;35m' COLOR_BROWN = '\033[0;33m' COLOR_YELLOW = '\033[1;33m' COLOR_GRAY = '\033[1;30m' COLOR_RESET = '\033[0m' FG_COLORS = [ # COLOR_BLUE, COLOR_GREEN, # COLOR_CYAN, # COLOR_R...
17.4
42
0.627874
102
696
4.04902
0.352941
0.058111
0.125908
0.09201
0
0
0
0
0
0
0
0.101124
0.232759
696
39
43
17.846154
0.672285
0.107759
0
0.083333
0
0
0.187296
0.045603
0
0
0
0
0.041667
1
0.083333
false
0
0
0
0.208333
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
0
0
1
0
531ccd14367ef1d863f40816ee6edf521bc6c3f6
712
py
Python
Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/8_5.py
tegamax/ProjectCode
0ed86e227fba50b453c5c4a2596afbadc39a167e
[ "MIT" ]
null
null
null
Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/8_5.py
tegamax/ProjectCode
0ed86e227fba50b453c5c4a2596afbadc39a167e
[ "MIT" ]
null
null
null
Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/8_5.py
tegamax/ProjectCode
0ed86e227fba50b453c5c4a2596afbadc39a167e
[ "MIT" ]
null
null
null
''' 8-5. Cities: Write a function called describe_city() that accepts the name of a city and its country. The function should print a simple sentence, such as Reykjavik is in Iceland. Give the parameter for the country a default value. Call your function for three different cities, at least one of which is not in the...
28.48
130
0.685393
103
712
4.708738
0.553398
0.074227
0.045361
0
0
0
0
0
0
0
0
0.003552
0.20927
712
25
131
28.48
0.857904
0.467697
0
0
0
0
0.398281
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
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
1
0
531ce1da9e2ab397f8a8222a28bef7e919e9c968
12,383
py
Python
tests/test_geometry_loader.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
tests/test_geometry_loader.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
tests/test_geometry_loader.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
from nexus_constructor.geometry import OFFGeometryNoNexus from nexus_constructor.geometry.geometry_loader import load_geometry_from_file_object from nexus_constructor.off_renderer import repeat_shape_over_positions from PySide2.QtGui import QVector3D from io import StringIO def test_GIVEN_off_file_containing_geometry...
34.112948
132
0.622305
1,752
12,383
4.187785
0.093037
0.110399
0.10631
0.078779
0.675889
0.623143
0.568488
0.540139
0.532915
0.51915
0
0.196021
0.285634
12,383
362
133
34.207182
0.633394
0.052895
0
0.518272
0
0
0.328892
0
0
0
0
0
0.063123
1
0.036545
false
0
0.016611
0
0.059801
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
0
0
1
0
531e5848bd2aa1d173ccaded9dac7c7007b60544
1,599
py
Python
main.py
marcusviniciusteixeira/RPAPython
8055e7283e6a8dd8910139cbbaa914761e2924f2
[ "MIT" ]
1
2022-01-23T00:17:05.000Z
2022-01-23T00:17:05.000Z
main.py
marcusviniciusteixeira/RPAPython
8055e7283e6a8dd8910139cbbaa914761e2924f2
[ "MIT" ]
null
null
null
main.py
marcusviniciusteixeira/RPAPython
8055e7283e6a8dd8910139cbbaa914761e2924f2
[ "MIT" ]
null
null
null
import PySimpleGUI as sg import os import time import pyautogui class TelaPython: def __init__(self): layout = [ [sg.Text('Usuário',size=(10,0)), sg.Input(size=(20,0),key='usuario')], [sg.Text('Senha',size=(10,0)), sg.Input(size=(20,0),key='senha')], [sg.Text('Número',si...
32.632653
127
0.579112
201
1,599
4.577114
0.338308
0.045652
0.038043
0.048913
0.206522
0.206522
0.206522
0.206522
0.206522
0.128261
0
0.069364
0.242652
1,599
49
128
32.632653
0.690339
0.013759
0
0.119048
0
0
0.07883
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.166667
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
0
0
1
0
531fa48589e0156d08a9e55a80a6582cdc603310
810
py
Python
logistic-regression/plot_binary_losses.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
183
2015-12-29T07:21:24.000Z
2022-01-18T01:19:23.000Z
logistic-regression/plot_binary_losses.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
null
null
null
logistic-regression/plot_binary_losses.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
68
2016-06-02T15:31:51.000Z
2021-09-08T19:58:10.000Z
# Helper code to plot binary losses. # # Eli Bendersky (http://eli.thegreenplace.net) # This code is in the public domain from __future__ import print_function import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': fig, ax = plt.subplots() fig.set_tight_layout(True) xs = np.linspac...
23.823529
70
0.608642
130
810
3.630769
0.546154
0.033898
0.063559
0.076271
0.131356
0
0
0
0
0
0
0.034865
0.220988
810
33
71
24.545455
0.713154
0.198765
0
0
0
0
0.059282
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
531fbba3b5ee2b6bc1a9dd51c2d5b53732a600be
1,243
py
Python
utils/watch-less.py
K-Fitzpatrick/crop_planner
2605c0886fd3b4681c2ea3ac5e88e1d8555178f5
[ "MIT" ]
91
2016-03-15T16:41:41.000Z
2022-03-25T16:30:09.000Z
utils/watch-less.py
SoaringDragon42/crop_planner
2605c0886fd3b4681c2ea3ac5e88e1d8555178f5
[ "MIT" ]
18
2016-03-30T15:01:25.000Z
2020-03-09T06:17:08.000Z
utils/watch-less.py
SoaringDragon42/crop_planner
2605c0886fd3b4681c2ea3ac5e88e1d8555178f5
[ "MIT" ]
48
2016-03-15T16:41:44.000Z
2022-03-09T21:28:05.000Z
#!/usr/bin/env python3 ################################ # Development tool # Auto-compiles style.less to style.css # # Requires lessc and less clean css to be installed: # npm install -g less # npm install -g less-plugin-clean-css ################################ import os, time from os import path from math import fl...
23.45283
79
0.636364
169
1,243
4.538462
0.431953
0.105606
0.084746
0.082138
0.181226
0.067797
0.067797
0
0
0
0
0.004897
0.1786
1,243
53
80
23.45283
0.746327
0.174578
0
0.125
0
0
0.150943
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.3125
0.15625
0
0
0
null
0
0
0
0
0
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
1
0