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
1e299d7235c61aa6b1b77e65519ef77467227619
3,296
py
Python
tda_api_helper/models.py
alexgolec/tda-api-helper
6dfb842379883c6e82bd053df072babfe78c3df9
[ "MIT" ]
null
null
null
tda_api_helper/models.py
alexgolec/tda-api-helper
6dfb842379883c6e82bd053df072babfe78c3df9
[ "MIT" ]
7
2021-12-31T01:37:18.000Z
2022-01-13T04:19:14.000Z
tda_api_helper/models.py
alexgolec/tda-api-helper
6dfb842379883c6e82bd053df072babfe78c3df9
[ "MIT" ]
null
null
null
import os from sqlalchemy import Column, DateTime, ForeignKey, Integer, String from sqlalchemy import create_engine from sqlalchemy.orm import declarative_base, relationship from sqlalchemy.sql import func Base = declarative_base() class User(Base): ''' A discord user. ''' __tablename__ = 'User' ...
32.633663
82
0.660498
416
3,296
5.014423
0.288462
0.034516
0.037392
0.028763
0.100671
0.047939
0.047939
0.047939
0.047939
0
0
0
0.257888
3,296
100
83
32.96
0.852821
0.238774
0
0.1
0
0
0.086696
0.04195
0
0
0
0
0
1
0.1
false
0
0.083333
0.033333
0.516667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1e2a1a4a4d088d0f6af54806d09475266b32060c
156
py
Python
servidor_cliente/vax_control/exceptions.py
PedroLucasMiguel/trabalho-engenharia-de-software
e95527f085005c3b717bdc0923f5d14acd65a6f4
[ "MIT" ]
null
null
null
servidor_cliente/vax_control/exceptions.py
PedroLucasMiguel/trabalho-engenharia-de-software
e95527f085005c3b717bdc0923f5d14acd65a6f4
[ "MIT" ]
null
null
null
servidor_cliente/vax_control/exceptions.py
PedroLucasMiguel/trabalho-engenharia-de-software
e95527f085005c3b717bdc0923f5d14acd65a6f4
[ "MIT" ]
null
null
null
class InvalidFullNameException(Exception): pass class InvalidCPFException(Exception): pass class EmergencyMeetingException(Exception): pass
14.181818
43
0.782051
12
156
10.166667
0.5
0.319672
0.295082
0
0
0
0
0
0
0
0
0
0.160256
156
10
44
15.6
0.931298
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
1
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
6
1e2b1e90e65d462ea33a73daa9aaad6d0c9d572b
46,103
py
Python
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
6
2020-04-19T11:26:18.000Z
2021-06-21T18:42:51.000Z
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
31
2020-04-21T17:24:39.000Z
2020-08-27T15:59:12.000Z
python/sandbox/core.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
null
null
null
""" Core module. Normally, do not add new construction methods here, do this in scene.py instead. """ from enum import Enum, auto, unique import itertools import re import sympy as sp from typing import List from .figure import Figure from .reason import Reason from .util import LazyComment, Comment, divide class Co...
42.064781
139
0.549899
4,943
46,103
5
0.064536
0.026219
0.01845
0.018774
0.41934
0.351892
0.316407
0.271859
0.225855
0.206393
0
0.007902
0.343969
46,103
1,095
140
42.103196
0.809192
0.042795
0
0.294118
0
0
0.063666
0.001593
0
0
0
0.001826
0.070358
1
0.128028
false
0.001153
0.016148
0.024221
0.272203
0.008074
0
0
0
null
0
0
0
0
0
0
0
0
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
1e2b6f738581b2742bd1ca8b2f9482692264a225
345
py
Python
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
while_example.py
ISE2012/ch5
cce470d418419bff0c9d37233755ee39e1362a27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 14 10:08:03 2020 @author: ucobiz """ num = 0 # we have to initialize num to zero while num <= 0: # so that we can use it here num = int(input("Enter a positive number: ")) # the while loop has exited b/c num is positive print("Thank you. The number...
21.5625
51
0.611594
59
345
3.576271
0.762712
0.037915
0
0
0
0
0
0
0
0
0
0.059289
0.266667
345
15
52
23
0.774704
0.527536
0
0
0
0
0.448529
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1e2d130d98704094b0d5ff31b8c5866899ab9c1f
12,633
py
Python
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/light_menu.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
import math import tkinter as tk from tkinter import ttk, messagebox from tkinter.constants import X, Y from ttkthemes import ThemedStyle class PickLight(): def __init__(self, root, widg): self.root = root self.widg = widg self.x = self.root.winfo_pointerx() self.y = self.root.winf...
32.392308
225
0.432676
1,490
12,633
3.520134
0.14698
0.01449
0.034318
0.032031
0.361868
0.310391
0.236797
0.199047
0.182841
0.134223
0
0.048634
0.461252
12,633
390
226
32.392308
0.72201
0.012032
0
0.314607
0
0
0.024205
0
0
0
0
0
0
1
0.039326
false
0
0.014045
0
0.092697
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e2e52b3d0a6b948e6c8f945ff393631222f7c91
123
py
Python
ievv_opensource/demo/demoapp/translation.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/demo/demoapp/translation.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/demo/demoapp/translation.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
from django.utils.translation import gettext_lazy as _ def get_translated_string(): return _('Testing translations')
20.5
54
0.788618
15
123
6.133333
1
0
0
0
0
0
0
0
0
0
0
0
0.138211
123
5
55
24.6
0.867925
0
0
0
0
0
0.162602
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
7
1e2ed5d13acdd2a38212da944c819fc33a4a6530
11,151
py
Python
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2018-10-05T17:03:01.000Z
2018-10-05T17:03:01.000Z
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2017-01-06T19:20:32.000Z
2017-01-06T19:20:32.000Z
tests/ozpcenter_api/test_api_library.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
7
2016-12-16T15:42:05.000Z
2020-09-05T01:11:27.000Z
import datetime import pytz from django.test import override_settings from rest_framework import status from ozpcenter import model_access as generic_model_access from ozpcenter.scripts import sample_data_generator as data_gen from tests.ozp.cases import APITestCase from tests.ozpcenter.helper import APITestHelper ...
44.426295
125
0.565958
1,147
11,151
5.347864
0.178727
0.058689
0.059341
0.067819
0.72628
0.688947
0.65569
0.611999
0.551679
0.551679
0
0.020609
0.316833
11,151
250
126
44.604
0.784589
0.058829
0
0.494565
0
0
0.161989
0.010977
0
0
0
0
0.157609
1
0.065217
false
0.005435
0.059783
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e2f08d63ce02790e0954f0c2b48a364a5e50d1b
2,335
py
Python
vize/150401012/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
2
2021-04-01T18:51:44.000Z
2021-06-13T19:46:20.000Z
vize/150401012/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
vize/150401012/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
#Yiğit Yüre 150401012 import socket import os import sys try: socket.gethostbyname(sys.argv[1]) except socket.error: print("Geçersiz IP adresi") sys.exit() host = sys.argv[1] port = int(sys.argv[2]) try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) print("İstemci soketi başlatıldı") exce...
26.235955
92
0.543041
248
2,335
5.100806
0.379032
0.033202
0.098024
0.085375
0.35415
0.304348
0.304348
0.304348
0.304348
0.304348
0
0.033053
0.339186
2,335
89
93
26.235955
0.786131
0
0
0.5
0
0.013889
0.168898
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
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
1
0
0
0
0
0
0
0
0
1
1e2fe28bdba3c11579d9119dd5193c9ed892645c
201,951
py
Python
bios_pnp/vendors.py
neverware-mirrors/bios_pnp
56a12a94a536c43ca1a071e6ed502ee3d7400323
[ "Apache-2.0" ]
null
null
null
bios_pnp/vendors.py
neverware-mirrors/bios_pnp
56a12a94a536c43ca1a071e6ed502ee3d7400323
[ "Apache-2.0" ]
null
null
null
bios_pnp/vendors.py
neverware-mirrors/bios_pnp
56a12a94a536c43ca1a071e6ed502ee3d7400323
[ "Apache-2.0" ]
2
2018-03-29T01:19:03.000Z
2021-01-16T14:06:21.000Z
# THIS FILE WAS AUTOGENERATED BY make_vendor_list.py! # pylint: disable=line-too-long,missing-docstring,too-many-lines # yapf: disable import datetime from bios_pnp import pnp VENDORS = { "BUT": pnp.Vendor("21ST CENTURY ENTERTAINMENT", "BUT", datetime.date(2002, 4, 25)), "TTL": pnp.Vendor("2-Tel B.V", "TTL", da...
81.794654
138
0.630163
29,222
201,951
4.354904
0.172062
0.173976
0.108126
0.117964
0.335662
0.006176
0.001917
0
0
0
0
0.104256
0.143465
201,951
2,468
139
81.827796
0.631433
0.000698
0
0
1
0
0.313273
0.000555
0
0
0
0
0
1
0
false
0
0.000812
0
0.000812
0.000406
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e31aafbd6d3baac6fea5ff1008384c247a90db7
568
py
Python
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC126/abc126_d.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
# 問題URL: https://atcoder.jp/contests/abc126/tasks/abc126_d # 解答URL: https://atcoder.jp/contests/abc126/submissions/14638903 from heapq import heappop, heappush n = int(input()) a = [[] for _ in range(n)] for _ in range(n - 1): u, v, w = map(int, input().split()) a[u - 1].append((v - 1, w)) a[v - 1].append...
22.72
64
0.556338
99
568
3.161616
0.454545
0.076677
0.089457
0.140575
0.178914
0
0
0
0
0
0
0.061176
0.251761
568
24
65
23.666667
0.675294
0.209507
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
1e334b9a938fd3c9df3467c8d839369988bb30b6
10,029
py
Python
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
3
2021-07-19T14:34:07.000Z
2022-03-31T06:24:38.000Z
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
null
null
null
Codes/utility/load_data.py
CRIPAC-DIG/K-GHRM
5d73ed701b7753ee402ecfc1dbc4b20c578a4656
[ "MIT" ]
1
2021-08-22T07:23:49.000Z
2021-08-22T07:23:49.000Z
import numpy as np import random as rd from time import time from math import log import gc import heapq import copy from utility.parser import parse_args args = parse_args() class Data(object): def __init__(self, path, batch_size): self.batch_size = batch_size doc_file = path + '/ma...
41.271605
444
0.466746
1,265
10,029
3.475099
0.115415
0.044359
0.029572
0.044359
0.457006
0.371019
0.330528
0.284122
0.229072
0.229072
0
0.012598
0.414299
10,029
242
445
41.442149
0.735785
0.042676
0
0.325
0
0
0.053666
0.008011
0
0
0
0
0
1
0.035
false
0
0.04
0
0.095
0.09
0
0
0
null
0
0
0
0
0
0
0
0
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
1e33b7d46ae6ef1f9eed0f3bad1e2a967744885c
4,379
py
Python
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
1
2021-11-06T09:00:11.000Z
2021-11-06T09:00:11.000Z
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
1
2021-11-07T11:59:57.000Z
2021-11-08T14:29:10.000Z
popseg/models/panopticdeeplab.py
sithu31296/panoptic-segmentation
bd3f5bf51729dcf5698959b3a6b53a1da8e2db65
[ "MIT" ]
null
null
null
import torch from torch import nn, Tensor from torch.nn import functional as F from .modules import Conv, SeparableConv from .backbones import ResNet class ASPP(nn.Module): def __init__(self, c1, c2, drop_rate=0.1): super().__init__() ratios = [1, 6, 12, 18] self.blocks = nn.ModuleList([ ...
35.893443
114
0.631879
570
4,379
4.647368
0.184211
0.02718
0.029445
0.04077
0.324273
0.265006
0.244621
0.244621
0.19026
0.12835
0
0.045632
0.239324
4,379
122
115
35.893443
0.749625
0
0
0.172043
0
0
0.013699
0
0
0
0
0
0
1
0.107527
false
0
0.053763
0.021505
0.268817
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e35b131f0e0e93445407cb308ded03d523d37ec
474
py
Python
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
heap/easy/qheap.py
YANG007SUN/data_structure
481e76eb713dc305409eafe4118121f499357ec6
[ "Apache-2.0" ]
null
null
null
# https://www.hackerrank.com/challenges/qheap1/problem?isFullScreen=true Q = int(input()) hp = [] for _ in range(Q): ls = list(map(int, input().split())) if ls[0]==1: if len(hp)==0: hp.append(ls[1]) minv = hp[0] else: minv = min(ls[1], minv) hp.ap...
23.7
72
0.466245
68
474
3.235294
0.485294
0.068182
0.095455
0.1
0
0
0
0
0
0
0
0.039344
0.35654
474
20
73
23.7
0.681967
0.147679
0
0.235294
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1e366c09791897360353aaacf043f05a0076f0a2
680
py
Python
bagpipe/exabgp/message/update/attribute/labels.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
94
2015-01-05T17:15:21.000Z
2022-01-09T20:05:16.000Z
bagpipe/exabgp/message/update/attribute/labels.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
18
2015-03-16T16:16:55.000Z
2017-03-27T11:22:38.000Z
bagpipe/exabgp/message/update/attribute/labels.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
36
2015-03-13T02:30:15.000Z
2021-06-22T10:10:23.000Z
# encoding: utf-8 """ labels.py Created by Thomas Mangin on 2009-11-05. Copyright (c) 2009-2012 Exa Networks. All rights reserved. Modified by Orange - 2014 """ from struct import pack #from bagpipe.exabgp.message.update.attribute import AttributeID,Flag,Attribute # =================================================...
19.428571
79
0.627941
89
680
4.617978
0.640449
0.087591
0
0
0
0
0
0
0
0
0
0.042403
0.167647
680
35
80
19.428571
0.683746
0.452941
0
0
0
0
0.027548
0
0
0
0
0
0
1
0.294118
false
0
0.058824
0.176471
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
1e369a1097ab91da0411c8e0085e71ff5b62e1cb
3,087
py
Python
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
1
2020-01-11T12:53:28.000Z
2020-01-11T12:53:28.000Z
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
11
2019-08-06T02:23:32.000Z
2022-03-11T23:51:20.000Z
pygcn/layers.py
linzhongping/fm-gcn
d403eff40c19c7cf7998c894e03b2c45da556ac7
[ "MIT" ]
1
2020-01-11T12:53:29.000Z
2020-01-11T12:53:29.000Z
import math from torch.nn import Embedding import torch from torch.nn.parameter import Parameter from torch.nn.modules.module import Module from torch.nn import init from torch.autograd import Variable torch.random.manual_seed(2070) class GraphConvolution(Module): """ Simple GCN layer, similar to https://arxiv...
31.5
77
0.6184
374
3,087
4.882353
0.248663
0.060241
0.038335
0.03943
0.31161
0.230011
0.2092
0.125958
0.086528
0.086528
0
0.01154
0.270165
3,087
97
78
31.824742
0.798935
0.101717
0
0.21875
0
0
0.004056
0
0
0
0
0
0
1
0.140625
false
0
0.109375
0.03125
0.359375
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e36f1e2ae5ddfe99dd5a797c7fd43899e122c3b
39
py
Python
jinahub/segmenters/PDFSegmenter/__init__.py
sauravgarg540/executors
c06a16633767346eee96ec019ae6a171f125f6cb
[ "Apache-2.0" ]
null
null
null
jinahub/segmenters/PDFSegmenter/__init__.py
sauravgarg540/executors
c06a16633767346eee96ec019ae6a171f125f6cb
[ "Apache-2.0" ]
null
null
null
jinahub/segmenters/PDFSegmenter/__init__.py
sauravgarg540/executors
c06a16633767346eee96ec019ae6a171f125f6cb
[ "Apache-2.0" ]
null
null
null
from .pdf_segmenter import PDFSegmenter
39
39
0.897436
5
39
6.8
1
0
0
0
0
0
0
0
0
0
0
0
0.076923
39
1
39
39
0.944444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
1e3792ff3e2c12900e4deb81ec079584de749ca2
1,623
py
Python
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
digest/test/test_digest_tools.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
import pytest from digest.digest_tools import Digest, content_path, InvalidDigestException @pytest.mark.parametrize( "digest, output_args", [ ("tarsum.v123123+sha1:123deadbeef", ("tarsum.v123123+sha1", "123deadbeef")), ("tarsum.v1+sha256:123123", ("tarsum.v1+sha256", "123123")), ("tar...
30.055556
84
0.593346
185
1,623
5.113514
0.221622
0.044397
0.071882
0.088795
0.358351
0.287526
0.287526
0.192389
0.031712
0.031712
0
0.148148
0.201479
1,623
53
85
30.622642
0.58179
0
0
0.130435
0
0
0.393099
0.117067
0
0
0
0
0.065217
1
0.065217
false
0
0.043478
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e3868fcfa8f7c10952baf06df24ab8e1002802d
199
py
Python
skipper-lib/skipper_lib/logger/logger_helper.py
xandrade/katana-skipper
196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92
[ "Apache-2.0" ]
162
2021-05-17T20:43:34.000Z
2022-03-31T04:19:51.000Z
skipper-lib/skipper_lib/logger/logger_helper.py
xandrade/katana-skipper
196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92
[ "Apache-2.0" ]
4
2021-10-09T07:21:21.000Z
2022-02-08T19:35:29.000Z
skipper-lib/skipper_lib/logger/logger_helper.py
xandrade/katana-skipper
196a1bd58ceab03dd409bc5bb1b0f9b6218ccd92
[ "Apache-2.0" ]
30
2021-05-30T07:50:37.000Z
2022-03-10T01:56:02.000Z
import requests def call(logger, params): try: requests.post(logger, json=params) except requests.exceptions.RequestException as e: print('Logger service is not available')
22.111111
53
0.698492
24
199
5.791667
0.791667
0
0
0
0
0
0
0
0
0
0
0
0.21608
199
8
54
24.875
0.891026
0
0
0
0
0
0.155779
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1e3951f43593829e9f73863dbf2d7b40f67d59a0
1,277
py
Python
tests/test_block.py
quantum13/mile-csa-python
f3303836ef520886fc58fb8a06ab716ff3065fb2
[ "MIT" ]
null
null
null
tests/test_block.py
quantum13/mile-csa-python
f3303836ef520886fc58fb8a06ab716ff3065fb2
[ "MIT" ]
null
null
null
tests/test_block.py
quantum13/mile-csa-python
f3303836ef520886fc58fb8a06ab716ff3065fb2
[ "MIT" ]
null
null
null
import unittest from milecsa import Chain, Config import local_config def print_block(chain, block): print("Id: ", block.blockId) print("Version: ", block.version) print("Timestamp: ", block.timestamp) print("Trx count: ", block.transaction_count) for t in block.transactions: ass...
25.54
113
0.602976
151
1,277
4.887417
0.324503
0.066396
0.060976
0.081301
0.214092
0.146341
0.078591
0
0
0
0
0.007519
0.270948
1,277
49
114
26.061224
0.785177
0.03054
0
0.133333
0
0
0.101379
0
0
0
0
0
0
1
0.066667
false
0
0.1
0
0.2
0.466667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1e3b2896c4c71de1f2f4c4021609291572737a53
14,014
py
Python
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
2
2019-12-13T06:10:52.000Z
2019-12-15T14:58:07.000Z
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
null
null
null
index.py
jansusea/video_rent_demo
17e3d2f239a433fc313c7f2c45fbb46b7573a6a6
[ "Apache-2.0" ]
null
null
null
from flask_jsglue import JSGlue from flask import Flask, render_template, jsonify from flask_sqlalchemy import SQLAlchemy from flask_restful import reqparse, Api app = Flask(__name__) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:root@localhost:3306/videorent?charset=utf8mb4' app.config['SQLALCH...
35.659033
125
0.630512
1,786
14,014
4.739642
0.089586
0.031896
0.054223
0.006143
0.572711
0.46013
0.41394
0.327112
0.305493
0.272888
0
0.00842
0.237263
14,014
392
126
35.75
0.783516
0.020337
0
0.380503
0
0
0.105919
0.011372
0
0
0
0
0
1
0.084906
false
0
0.012579
0.040881
0.254717
0.012579
0
0
0
null
0
0
0
0
0
0
0
0
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
1e3bf3816d2775c53ca40f975a39eda86b48bb10
11,285
py
Python
everest/repositories/rdb/querying.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
3
2015-03-10T17:38:25.000Z
2017-04-29T03:47:06.000Z
everest/repositories/rdb/querying.py
helixyte/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2015-03-02T16:02:41.000Z
2015-03-02T16:02:41.000Z
everest/repositories/rdb/querying.py
cenix/everest
70c9b93c3061db5cb62428349d18b8fb8566411b
[ "MIT" ]
1
2020-07-12T22:46:59.000Z
2020-07-12T22:46:59.000Z
""" Querying functionality for the rdb repository. This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Created on Jan 7, 2013. """ from everest.constants import RESOURCE_ATTRIBUTE_KINDS from everest.entities.base import Entity from everest.exceptions ...
37.616667
99
0.672751
1,304
11,285
5.552147
0.233129
0.034254
0.028177
0.031492
0.293508
0.218232
0.150967
0.14268
0.14268
0.106077
0
0.005434
0.249889
11,285
299
100
37.742475
0.849852
0.175986
0
0.14359
0
0
0.034289
0.009041
0
0
0
0.006689
0
1
0.174359
false
0
0.133333
0.076923
0.487179
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e3c4d4cb0dbc4f7cda5f5d0400be26747fb6df0
1,259
py
Python
myLogger.py
DavideFrr/ibmqx_experiments
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
6
2017-11-07T12:01:49.000Z
2018-04-23T06:45:05.000Z
myLogger.py
DavideFrr/ibmqx_envariance
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
null
null
null
myLogger.py
DavideFrr/ibmqx_envariance
f9e3c2e85d3fd8ea3f9a69b7bee26c135eabc755
[ "Apache-2.0" ]
1
2018-05-07T06:34:42.000Z
2018-05-07T06:34:42.000Z
# Copyright 2017 Quantum Information Science, University of Parma, Italy. 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...
38.151515
94
0.70135
155
1,259
5.516129
0.612903
0.070175
0.046784
0.072515
0.140351
0.140351
0.140351
0.140351
0.140351
0
0
0.015023
0.154091
1,259
32
95
39.34375
0.787793
0.549643
0
0
0
0
0.318841
0.059783
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e40bb23a7df34b4097b777f22663a9bcc159f40
3,742
py
Python
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
3
2020-12-31T19:23:45.000Z
2022-02-07T16:09:14.000Z
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
null
null
null
predicting solar enegy generation/solar.py
imsanjoykb/Working-Analysis
12267ccbe833ea0daedb34990ba1757f3888e447
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 12 17:57:02 2020 @author: Atique Akhtar """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn import metrics fro...
29.464567
110
0.756547
593
3,742
4.608769
0.340641
0.044274
0.052689
0.067325
0.312477
0.245884
0.203439
0.147091
0.037322
0.037322
0
0.048694
0.099947
3,742
126
111
29.698413
0.762767
0.158739
0
0
0
0
0.094551
0.021154
0
0
0
0
0
1
0
false
0
0.155844
0
0.155844
0.051948
0
0
0
null
0
0
0
0
0
0
0
0
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
1e42f7faf93d8ca30408b7f1bf98b2c4582082bf
7,047
py
Python
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
42
2018-10-24T09:31:07.000Z
2021-04-10T04:04:51.000Z
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
null
null
null
scoring_functions.py
juius/GB-GA
4b49f1822c5190e8b2bbb8b7403eed30af9e50fd
[ "MIT" ]
25
2018-10-24T09:01:59.000Z
2021-04-24T10:51:22.000Z
''' Written by Jan H. Jensen 2018 ''' from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import Descriptors from rdkit.DataStructs.cDataStructs import TanimotoSimilarity from rdkit.Chem import rdFMCS from rdkit import rdBase rdBase.DisableLog('rdApp.error') import numpy as np import sys from multi...
28.188
137
0.711225
976
7,047
4.981557
0.26332
0.011107
0.011107
0.029617
0.20835
0.194981
0.122995
0.122995
0.103661
0.050185
0
0.012615
0.167589
7,047
249
138
28.301205
0.816229
0.087555
0
0.186813
0
0
0.035619
0
0
0
0
0
0
1
0.10989
false
0
0.082418
0.027473
0.318681
0.049451
0
0
0
null
0
0
0
0
0
0
0
0
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
1e437b4dfd0558c6e8bffff9311d6c58e3c2a593
386
py
Python
mmdet3d/models/middle_encoders/__init__.py
yangzilongdmgy/merge_monster_3d
0595e36749d32c3d5537a3f707727a137c82076e
[ "Apache-2.0" ]
null
null
null
mmdet3d/models/middle_encoders/__init__.py
yangzilongdmgy/merge_monster_3d
0595e36749d32c3d5537a3f707727a137c82076e
[ "Apache-2.0" ]
null
null
null
mmdet3d/models/middle_encoders/__init__.py
yangzilongdmgy/merge_monster_3d
0595e36749d32c3d5537a3f707727a137c82076e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from .pillar_scatter import PointPillarsScatter from .sparse_encoder import SparseEncoder from .sparse_unet import SparseUNet from .sparse_encoder_aux import SparseEncoder_AUX from .sparse_encoderv2 import SparseEncoderV2 __all__ = [ 'PointPillarsScatter', 'SparseEnc...
32.166667
78
0.813472
40
386
7.55
0.475
0.13245
0.112583
0
0
0
0
0
0
0
0
0.008798
0.11658
386
11
79
35.090909
0.876833
0.11658
0
0
0
0
0.218289
0
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1e45671ec504dd3c04b26925a2e6eba78b31882e
845
py
Python
mopy/policies/backup.py
TylerSandman/mopy
df66bb728f6dacee8ee6267a8802a4b71a04fd43
[ "MIT" ]
null
null
null
mopy/policies/backup.py
TylerSandman/mopy
df66bb728f6dacee8ee6267a8802a4b71a04fd43
[ "MIT" ]
null
null
null
mopy/policies/backup.py
TylerSandman/mopy
df66bb728f6dacee8ee6267a8802a4b71a04fd43
[ "MIT" ]
null
null
null
""" Contains result backpropagation policies for MCTS. All policies should be represented as a function that takes a MCTree and the result of a game, and updates a node accordingly. Backup policies dictate how the results of simulated games affect game states beforehand. See the main Mopy module and MCTree for m...
36.73913
79
0.710059
120
845
4.958333
0.616667
0.010084
0.040336
0
0
0
0
0
0
0
0
0.003101
0.236686
845
22
80
38.409091
0.91938
0.76213
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1e49f827aac986a59bed712075a11f7c49c14620
2,917
py
Python
tests/validation/parameter/test_min_max_length_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
160
2015-01-15T05:36:44.000Z
2021-08-04T00:43:54.000Z
tests/validation/parameter/test_min_max_length_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
151
2015-01-20T16:45:36.000Z
2022-02-23T21:07:58.000Z
tests/validation/parameter/test_min_max_length_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
90
2015-01-20T11:19:36.000Z
2021-08-03T08:58:18.000Z
import pytest from flex.exceptions import ValidationError from flex.loading.schema.paths.path_item.operation.parameters import ( parameters_validator, ) from flex.validation.parameter import ( validate_parameters, ) from flex.constants import ( PATH, STRING, ) from tests.utils import assert_path_in_er...
20.687943
76
0.545766
272
2,917
5.610294
0.231618
0.057667
0.055046
0.081258
0.770642
0.735256
0.627785
0.526868
0.526868
0.526868
0
0.020161
0.319849
2,917
140
77
20.835714
0.748992
0.016798
0
0.568966
0
0
0.106956
0
0
0
0
0
0.025862
1
0.034483
false
0
0.051724
0
0.086207
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e4ce32c38c583706ec7bfb679d5be87d306fa64
2,556
py
Python
src/python-multiCameraServer/facegrip.py
FRCTeam1277/PavelVisionTests2021
1c5b674aed893c3c1d770ca4f124cb6d93615903
[ "BSD-3-Clause" ]
null
null
null
src/python-multiCameraServer/facegrip.py
FRCTeam1277/PavelVisionTests2021
1c5b674aed893c3c1d770ca4f124cb6d93615903
[ "BSD-3-Clause" ]
null
null
null
src/python-multiCameraServer/facegrip.py
FRCTeam1277/PavelVisionTests2021
1c5b674aed893c3c1d770ca4f124cb6d93615903
[ "BSD-3-Clause" ]
null
null
null
import cv2 import numpy import math from enum import Enum class GripPipeline: """ An OpenCV pipeline generated by GRIP. """ def __init__(self): """initializes all values to presets or None if need to be set """ self.__new_size_width = 100.0 self.__new_size_height = ...
36
292
0.687011
326
2,556
5.021472
0.328221
0.176542
0.205254
0.073305
0.229688
0.100183
0.080635
0.080635
0.080635
0.080635
0
0.012572
0.25313
2,556
70
293
36.514286
0.844945
0.358764
0
0.153846
1
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.423077
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1e4e63042228f66cff5a912d41b87d37722d2937
3,298
py
Python
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
Task2/main.py
KKowalewski24/ADZ
8a04570a1f6f08506572386b2312a259a8308f56
[ "MIT" ]
null
null
null
from argparse import ArgumentParser, Namespace from typing import Any, Dict, Tuple import numpy as np from sklearn.cluster import DBSCAN from sklearn.metrics import precision_score, recall_score from sklearn.neighbors import LocalOutlierFactor from module.LatexGenerator import LatexGenerator from module.OutlierAgglom...
35.462366
93
0.647665
366
3,298
5.579235
0.338798
0.029383
0.05142
0.039177
0.036239
0.036239
0.036239
0.036239
0.036239
0.036239
0
0.002876
0.156458
3,298
92
94
35.847826
0.731129
0.093996
0
0.059701
0
0
0.167009
0.05373
0
0
0
0
0
1
0.029851
false
0
0.179104
0
0.223881
0.029851
0
0
0
null
0
0
0
0
0
0
0
0
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
1e4f198f80a2b90957f00d6e9a760ddb7d4d2c00
1,534
py
Python
test/test_matching_with_dont_cares.py
matkaczmarek/string-algorithms
df1367e633ee0b3377cbdd67a77982f373fe2459
[ "MIT" ]
1
2020-06-27T01:33:43.000Z
2020-06-27T01:33:43.000Z
test/test_matching_with_dont_cares.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
test/test_matching_with_dont_cares.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
import itertools import os import unittest from generator import rand from approximate_string_matching import dont_care, matching_with_dont_cares class TestExactMatchingWithDontCaresCase(unittest.TestCase): run_large = unittest.skipUnless( os.environ.get('LARGE', False), 'Skip test in small runs') def make...
34.088889
75
0.643416
231
1,534
4.051948
0.324675
0.051282
0.064103
0.067308
0.318376
0.220085
0.220085
0.220085
0.119658
0.119658
0
0.018122
0.208605
1,534
44
76
34.863636
0.752883
0
0
0.166667
0
0
0.043025
0
0
0
0
0
0.027778
1
0.166667
false
0
0.138889
0
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e4f435f06f8b0f3c610c16275c5fe53209837e7
1,902
py
Python
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/network.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
import nengo from .magic import decorator @decorator def with_self(method, network, args, kwargs): """Wraps a method with ``with network:``. This makes it easy to add methods to a network that create new Nengo objects. Instead of writing ``with self`` at the top of the method and indenting everything...
29.71875
76
0.640904
261
1,902
4.56705
0.360153
0.088087
0.075503
0.063758
0.205537
0.205537
0.151846
0.07047
0
0
0
0.002905
0.276025
1,902
63
77
30.190476
0.862745
0.476866
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e502b66e5902b480d62357920638ef90c30a7e7
379
py
Python
src/utils/Evaluator.py
elfaizamine/loan_default_prediction
c76632b0757e9f23d347e00bcd755d26800a54be
[ "MIT" ]
null
null
null
src/utils/Evaluator.py
elfaizamine/loan_default_prediction
c76632b0757e9f23d347e00bcd755d26800a54be
[ "MIT" ]
null
null
null
src/utils/Evaluator.py
elfaizamine/loan_default_prediction
c76632b0757e9f23d347e00bcd755d26800a54be
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt from sklearn import metrics class Evaluator: def __init__(self, y_true, y_pred): """ calculate auc : area under roc curve """ self.auc = self.auc(y_true, y_pred) def auc(self, y_true, y_pred): FF, TT, thresholds = metrics.roc_curv...
19.947368
62
0.622691
56
379
3.982143
0.446429
0.089686
0.107623
0.179372
0.125561
0
0
0
0
0
0
0
0.279683
379
18
63
21.055556
0.81685
0.094987
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
1e509497962389e6ed71b35b5ec1d4dff24d9090
779
py
Python
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
acme/resources/DVI.py
reinaortega/ACME-oneM2M-CSE
ee45a6a2bcbb0fd0397cfffc0522fa252d7e98be
[ "BSD-3-Clause" ]
null
null
null
# # DVI.py # # (c) 2020 by Andreas Kraft # License: BSD 3-Clause License. See the LICENSE file for further details. # # ResourceType: mgmtObj:DeviceInfo # from .MgmtObj import * from Constants import Constants as C import Utils defaultDeviceType = 'unknown' defaultModel = "unknown" defaultManufacturer = "unknown" def...
26.862069
74
0.752246
95
779
6.084211
0.568421
0.110727
0.093426
0.155709
0
0
0
0
0
0
0
0.007407
0.133504
779
28
75
27.821429
0.848889
0.17715
0
0
0
0
0.079114
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e520e590c8df2d66276d19de77a152e7ca6c316
1,272
py
Python
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
1
2021-04-26T18:15:35.000Z
2021-04-26T18:15:35.000Z
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
null
null
null
augmentation.py
chaets/cogniac
aefb4355d3f7b56cbc42e1039e88d709b40051dc
[ "Apache-2.0" ]
1
2021-03-19T21:40:48.000Z
2021-03-19T21:40:48.000Z
import cv2 import numpy as np class Augmentation: """docstring for Augmentation.""" # def __init__(self): # pass # super(Augmentation, self).__init__() # self.arg = arg def get_resize(image, lengthScale, breadthScale): src = cv2.imread(image , cv2.IMREAD_UNCHANGED) ...
31.02439
87
0.575472
163
1,272
4.380368
0.398773
0.063025
0.058824
0.047619
0.098039
0.098039
0.098039
0
0
0
0
0.041387
0.29717
1,272
40
88
31.8
0.757271
0.139937
0
0.076923
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.269231
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e529806b916a14d473506fae40b14ec1ce0965a
557
py
Python
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/unicodeTopics/examples/fromWin1251_toUTF8.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
input_file_name = "windows-1251_encoded_file.txt" output_file_name = "utf8_encoded_file.txt" def read_from(enc, file_name): # open file for read in textmode with encoding: with open(file_name,"r", encoding="cp1251") as f: decoded_content = f.read() return decoded_content def write_to(enc, content, file_na...
25.318182
54
0.746858
88
557
4.454545
0.329545
0.163265
0.066327
0.081633
0.290816
0.193878
0.193878
0.193878
0
0
0
0.029412
0.145422
557
21
55
26.52381
0.794118
0.165171
0
0
0
0
0.15
0.108696
0
0
0
0
0
1
0.181818
false
0
0
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e53d52936557fab1d6afac1ad13ee2619cc016c
449
py
Python
iaso/migrations/0065_auto_20201201_1456.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/migrations/0065_auto_20201201_1456.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/migrations/0065_auto_20201201_1456.py
ekhalilbsq/iaso
e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
# Generated by Django 3.0.7 on 2020-12-01 14:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("iaso", "0064_instance_deleted")] operations = [ migrations.AlterField( model_name="featureflag", name="code", field=models.CharField(max_leng...
28.0625
101
0.67706
53
449
5.641509
0.735849
0.133779
0.167224
0.19398
0
0
0
0
0
0
0
0.057692
0.18931
449
15
102
29.933333
0.763736
0.100223
0
0
1
0
0.126866
0.052239
0
0
0
0
0
1
0
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1e56b55098ede8127120d4b6280c82f5e4c576f7
436
py
Python
examples/app/myapp.py
westurner/celery
41964f24df4c8ca5d96bf0d644e40778212e10cb
[ "BSD-3-Clause" ]
1
2015-02-27T00:56:02.000Z
2015-02-27T00:56:02.000Z
examples/app/myapp.py
westurner/celery
41964f24df4c8ca5d96bf0d644e40778212e10cb
[ "BSD-3-Clause" ]
null
null
null
examples/app/myapp.py
westurner/celery
41964f24df4c8ca5d96bf0d644e40778212e10cb
[ "BSD-3-Clause" ]
null
null
null
"""myapp.py Usage: (window1)$ python myapp.py worker -l info (window2)$ python >>> from myapp import add >>> add.delay(16, 16).get() 32 You can also specify the app to use with celeryd:: $ celery worker -l info --app=myapp """ from celery import Celery celery = Celery("myapp", broker="amqp://...
15.034483
59
0.626147
63
436
4.206349
0.634921
0.05283
0.083019
0
0
0
0
0
0
0
0
0.02346
0.21789
436
28
60
15.571429
0.753666
0.559633
0
0
0
0
0.201087
0.130435
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1e572a42c6bc0c9afac50afe4337fe89f5d90d51
7,795
py
Python
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_cfdictionary.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
import CoreFoundation import objc from PyObjCTools.TestSupport import TestCase class TestCFDictionary(TestCase): def testCreation(self): dictionary = CoreFoundation.CFDictionaryCreate( None, ("aap", "noot", "mies", "wim"), ("monkey", "nut", "missy", "john"), ...
40.180412
88
0.636947
590
7,795
8.405085
0.161017
0.0732
0.031458
0.025812
0.64872
0.59266
0.508772
0.469449
0.428111
0.387175
0
0.013381
0.252213
7,795
193
89
40.388601
0.837365
0.000385
0
0.44
0
0
0.058922
0
0
0
0
0
0.274286
1
0.04
false
0
0.017143
0
0.062857
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e578a66b213b846971e0fefcbf7b9c33b776eea
1,462
py
Python
hallo/test/modules/hallo_control/test_active_threads.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/test/modules/hallo_control/test_active_threads.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/test/modules/hallo_control/test_active_threads.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
from threading import Thread import time from hallo.events import EventMessage def test_threads_simple(hallo_getter): test_hallo = hallo_getter({"hallo_control"}) test_hallo.function_dispatcher.dispatch( EventMessage(test_hallo.test_server, None, test_hallo.test_user, "active threads") ) dat...
37.487179
90
0.719562
199
1,462
5.020101
0.256281
0.153153
0.156156
0.114114
0.712713
0.680681
0.680681
0.680681
0.680681
0.680681
0
0.013878
0.162107
1,462
38
91
38.473684
0.801633
0.024624
0
0.433333
0
0
0.099789
0
0
0
0
0
0.1
1
0.066667
false
0
0.1
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e57a3b1f5bc69858ee77a65eb9d305c058566c9
3,910
py
Python
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
1
2020-08-06T10:48:49.000Z
2020-08-06T10:48:49.000Z
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
2
2020-02-13T12:45:57.000Z
2020-04-14T11:30:33.000Z
melior_transformers/encoding/encoding_model.py
MeliorAI/meliorTransformers
b2936e1aac23e63e0b737d03975124c31a960812
[ "Apache-2.0" ]
2
2020-07-21T12:43:51.000Z
2021-08-13T15:21:22.000Z
import logging from typing import Dict, List import numpy as np import torch from numpy import ndarray from sentence_transformers import SentenceTransformer, models from melior_transformers.config.global_args import global_args from melior_transformers.encoding.constants import MODEL_CLASSES logger = logging.getLogg...
33.418803
88
0.615601
449
3,910
5.100223
0.347439
0.057642
0.039301
0.033188
0.065502
0.054585
0.027948
0
0
0
0
0.001482
0.309719
3,910
116
89
33.706897
0.84698
0.251918
0
0
0
0
0.159108
0.082663
0
0
0
0
0
1
0.029851
false
0
0.119403
0
0.179104
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e57b3a6e4d96a119f56fc088803962c5fcf3de7
114
py
Python
Models/instances/refresh_from_db()/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/instances/refresh_from_db()/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/instances/refresh_from_db()/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from django.db import models class MyModel(models.Model): val = models.IntegerField()
16.285714
31
0.72807
16
114
5.1875
0.875
0
0
0
0
0
0
0
0
0
0
0
0.149123
114
6
32
19
0.85567
0.175439
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1e57f2da3f20d5ecc4a09a1464ede0da10a2f32a
9,234
py
Python
tortilla/core.py
sunlightlabs/python-tortilla
4b4f3538b293ccff218610c5a452f69d582130d4
[ "BSD-3-Clause" ]
1
2019-07-31T02:54:10.000Z
2019-07-31T02:54:10.000Z
tortilla/core.py
sunlightlabs/python-tortilla
4b4f3538b293ccff218610c5a452f69d582130d4
[ "BSD-3-Clause" ]
null
null
null
tortilla/core.py
sunlightlabs/python-tortilla
4b4f3538b293ccff218610c5a452f69d582130d4
[ "BSD-3-Clause" ]
1
2015-12-13T08:21:12.000Z
2015-12-13T08:21:12.000Z
import json import requests from requests.exceptions import Timeout from .util import meta_fix class SalsaObject(object): def __init__(self, initial=None): _data = {} if initial: _data.update(initial) self.__dict__['_data'] = _data def __getattr__(self, attr): if a...
26.084746
100
0.585662
1,055
9,234
4.987678
0.152607
0.025656
0.037058
0.031357
0.31718
0.263778
0.235842
0.224629
0.18092
0.18092
0
0.000926
0.298354
9,234
353
101
26.15864
0.811236
0.017436
0
0.318182
0
0
0.08451
0.008605
0
0
0
0
0
1
0.144628
false
0.057851
0.016529
0.016529
0.380165
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1e58286e282abcb985fa69b50248bb70d6390ed9
3,138
py
Python
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
null
null
null
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
1
2015-04-07T15:17:30.000Z
2015-04-07T17:34:01.000Z
main.py
Qumeric/flappypython
40f4ab00870f6e5f02ef7de74190c6a277feb034
[ "MIT" ]
null
null
null
from pygame import display, font, image, init, time, event from pygame.locals import * from random import randrange from GameObject import Bird, Pipe SCORE_COLOR = (255, 255, 0) HIGHSCORE_COLOR = (255, 165, 0) DISPLAY_WIDTH = 320 DISPLAY_HEIGHT = 480 FONT = None FONT_SIZE = 22 HOLE_SIZE = 50 PIPE_FREQUENCY = 50 PIP...
25.512195
75
0.564691
396
3,138
4.373737
0.330808
0.027714
0.020785
0.026559
0.079677
0.057737
0.057737
0.057737
0.057737
0.057737
0
0.031339
0.328872
3,138
122
76
25.721311
0.791073
0.074251
0
0.183908
0
0
0.016932
0
0
0
0
0
0
1
0.034483
false
0
0.045977
0
0.091954
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e5841b0b5452fe3f18e4012f65cd3755e441a4a
950
py
Python
schema/__init__.py
p4l1ly/automata-safa-capnp
4aed4f30b217a979f6229db5e3c72f979d31bb76
[ "BSD-3-Clause" ]
null
null
null
schema/__init__.py
p4l1ly/automata-safa-capnp
4aed4f30b217a979f6229db5e3c72f979d31bb76
[ "BSD-3-Clause" ]
null
null
null
schema/__init__.py
p4l1ly/automata-safa-capnp
4aed4f30b217a979f6229db5e3c72f979d31bb76
[ "BSD-3-Clause" ]
null
null
null
import os import capnp import operator import sys from importlib.abc import Loader, MetaPathFinder from importlib.util import spec_from_loader from pathlib import Path from functools import reduce capnp.remove_import_hook() my_path = Path(os.path.dirname(os.path.abspath(__file__))) class _Importer(MetaPathFinder, Lo...
25
73
0.653684
113
950
5.300885
0.442478
0.043406
0.046745
0
0
0
0
0
0
0
0
0.00141
0.253684
950
37
74
25.675676
0.843441
0
0
0.129032
0
0
0.008421
0
0
0
0
0
0
1
0.096774
false
0.032258
0.354839
0
0.612903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1e589b21bf05fda4a1eedf746c2f50a2e1830a1e
17,283
py
Python
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075
825efe6a95011d055eaa19fabed42e9dad73b164
[ "BSD-3-Clause" ]
3
2021-09-15T03:51:14.000Z
2022-03-05T15:36:47.000Z
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075-
06de316e3973b65e28ca7e047b5b1674640e7e5c
[ "BSD-3-Clause" ]
null
null
null
queryDB.py
ElsevierSoftwareX/SOFTX-D-20-00075-
06de316e3973b65e28ca7e047b5b1674640e7e5c
[ "BSD-3-Clause" ]
3
2021-07-21T10:25:59.000Z
2022-03-19T21:16:33.000Z
#!/usr/bin/env python3 from astroquery.simbad import Simbad from astroquery.vizier import Vizier from cat_setup import src_localDB, src_onlineDB from buildDB import addData, check_ldb import sys, os import csv from more_itertools import locate import argparse import subprocess from pathlib import Path # for the spect...
43.977099
151
0.525025
2,201
17,283
4.085416
0.21672
0.004671
0.02202
0.012456
0.263456
0.213857
0.189502
0.167705
0.120663
0.104204
0
0.016578
0.301973
17,283
392
152
44.089286
0.72878
0.112133
0
0.266212
0
0
0.206198
0.016991
0
0
0
0
0
1
0
false
0
0.051195
0
0.051195
0.21843
0
0
0
null
0
0
0
0
0
0
0
0
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
1e591f8ce49d4cfdc76a7051dbb0e79d30e622d3
1,690
py
Python
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/tcr_fl/multi_tcr_fl.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
from celescope.__init__ import __CONDA__ from celescope.tcr_fl.__init__ import __STEPS__, __ASSAY__ from celescope.tools.Multi import Multi class Multi_tcr_fl(Multi): def custome_args(self): self.parser.add_argument('--thread', help='thread', default=4) self.parser.add_argument("--nCell", help="se...
30.727273
82
0.560947
210
1,690
4.080952
0.280952
0.035006
0.060677
0.088681
0.310385
0.263711
0.263711
0.198366
0.198366
0.198366
0
0.005828
0.289349
1,690
54
83
31.296296
0.707744
0
0
0.311111
0
0
0.311427
0.111901
0
0
0
0
0
1
0.111111
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e59255c7c35e3e7f82903f515a10a05864028c1
1,253
py
Python
tests/orthanc/test_orthanc_patient_deleters.py
gacou54/pyorthanc
6b67a0d58567060e2e88ae5f2d15453fa47561aa
[ "MIT" ]
12
2019-02-25T04:24:39.000Z
2022-03-22T11:43:46.000Z
tests/orthanc/test_orthanc_patient_deleters.py
gacou54/pyorthanc
6b67a0d58567060e2e88ae5f2d15453fa47561aa
[ "MIT" ]
5
2021-06-02T00:20:44.000Z
2022-03-15T15:09:22.000Z
tests/orthanc/test_orthanc_patient_deleters.py
gacou54/pyorthanc
6b67a0d58567060e2e88ae5f2d15453fa47561aa
[ "MIT" ]
1
2020-05-11T14:57:17.000Z
2020-05-11T14:57:17.000Z
# coding: utf-8 # author: gabriel couture import unittest from pyorthanc import Orthanc from tests import setup_server from tests.data import a_patient class TestOrthancPatientDeleters(unittest.TestCase): @classmethod def setUpClass(cls) -> None: global orthanc_subprocess orthanc_subprocess ...
28.477273
88
0.747007
137
1,253
6.532847
0.364964
0.073743
0.02905
0.044693
0.243575
0.116201
0.116201
0.116201
0.116201
0
0
0.000982
0.18755
1,253
43
89
29.139535
0.878193
0.029529
0
0.214286
0
0
0
0
0
0
0
0
0.071429
1
0.25
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1e5a603f27c754d49e48eda058d899211d90dc68
1,761
py
Python
logs_manager/migrations/0001_initial.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
null
null
null
logs_manager/migrations/0001_initial.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
7
2020-06-06T01:40:06.000Z
2022-02-10T09:12:56.000Z
logs_manager/migrations/0001_initial.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
1
2021-08-16T13:23:34.000Z
2021-08-16T13:23:34.000Z
# Generated by Django 2.1.5 on 2020-07-24 05:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ErrorLogObject', fields=[ ('id', models.Aut...
34.529412
114
0.531516
150
1,761
6.12
0.406667
0.043573
0.078431
0.104575
0.410675
0.410675
0.410675
0.410675
0.410675
0.410675
0
0.022746
0.325951
1,761
50
115
35.22
0.750632
0.025554
0
0.465116
1
0
0.103851
0
0
0
0
0
0
1
0
false
0
0.023256
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e5ab18416df4205e5bf855cc62673e0bc16722c
467
py
Python
webhud/signaling/test/objects_test.py
eigendude/beachfronter
dd4eb5d719d93047c24cfaf32a96b291bf9056d8
[ "Apache-2.0" ]
null
null
null
webhud/signaling/test/objects_test.py
eigendude/beachfronter
dd4eb5d719d93047c24cfaf32a96b291bf9056d8
[ "Apache-2.0" ]
null
null
null
webhud/signaling/test/objects_test.py
eigendude/beachfronter
dd4eb5d719d93047c24cfaf32a96b291bf9056d8
[ "Apache-2.0" ]
null
null
null
################################################################################ # # Copyright (C) 2020 Aclima, Inc # This file is part of aclima-schema - https://github.com/Aclima/aclima-schema # # SPDX-License-Identifier: MIT # See DOCS/LICENSING.md for more information. # ########################################...
27.470588
80
0.462527
41
467
5.243902
0.878049
0.111628
0
0
0
0
0
0
0
0
0
0.009756
0.122056
467
16
81
29.1875
0.514634
0.391863
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
1e5b83ffe1a421082cfb31bd3175565e924b9fe8
2,121
py
Python
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
null
null
null
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
18
2020-07-17T08:24:34.000Z
2022-03-02T04:16:18.000Z
recommender/rest-api/globals.py
haiphucnguyen/MachineLearning
ecdc708a7f4a1a7917fd97f3374034b0f0a013aa
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.ml.evaluation import RegressionEvaluator from pyspark.ml.recommendation import ALS class Globals: def __init__(self): print("Init Globals") @staticmethod def recommendator(): spark = SparkSession.builder.appName("Recommendation ALS").getOr...
48.204545
125
0.644979
240
2,121
5.625
0.483333
0.02963
0.032593
0.05037
0.100741
0.100741
0.100741
0.100741
0
0
0
0.00609
0.225837
2,121
44
126
48.204545
0.816078
0.112211
0
0
0
0
0.178819
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.181818
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
1e5b8c4c2a735704a76ae6bbaabad7224e52a26b
2,873
py
Python
print_results.py
UlianaDzhumok/dog-breed-image-classifier
e65b9853e20665eab0090c98956b0f71625cc398
[ "MIT" ]
null
null
null
print_results.py
UlianaDzhumok/dog-breed-image-classifier
e65b9853e20665eab0090c98956b0f71625cc398
[ "MIT" ]
null
null
null
print_results.py
UlianaDzhumok/dog-breed-image-classifier
e65b9853e20665eab0090c98956b0f71625cc398
[ "MIT" ]
null
null
null
def print_results(results_dic, results_stats_dic, model, print_incorrect_dogs = False, print_incorrect_breed = False): """ Prints summary results on the classification and then prints incorrectly classified dogs and incorrectly classified dog breeds if user indicates they want thos...
54.207547
121
0.587887
358
2,873
4.600559
0.315642
0.058288
0.07286
0.048573
0.324833
0.251366
0.251366
0.201579
0.155434
0.115361
0
0.014107
0.333797
2,873
52
122
55.25
0.846395
0.578837
0
0.235294
0
0
0.218349
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.058824
0.588235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1e5d69d46fbe2dcd9c5a3139cb2e51788974251b
508
py
Python
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/expr_io_pos.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * expr_io_pos__all_plus_number = Struct( 'my_str' / NullTerminated(GreedyString(encoding='UTF-8'), term=b'\x00', include=False, consume=True), 'body' / FixedSized(((stream_size(_io) - stream_tell(_io)) - 2), GreedyBytes), 'number' / Int16ul, ) expr_io_pos = Struct(...
31.75
102
0.751969
70
508
5.057143
0.571429
0.084746
0.127119
0.101695
0.271186
0.271186
0.20904
0.20904
0
0
0
0.026432
0.106299
508
15
103
33.866667
0.753304
0
0
0
0
0
0.088583
0
0
0
0
0
0
1
0
false
0
0.166667
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
1e5e463f2d8698101b4daa4b95c205a9cfcb45c4
1,175
py
Python
app/services/QueryService.py
fredrik-aschehoug/KG-Enricher
56f1ac192c2542d8412235ee6897d22278a5259e
[ "MIT" ]
null
null
null
app/services/QueryService.py
fredrik-aschehoug/KG-Enricher
56f1ac192c2542d8412235ee6897d22278a5259e
[ "MIT" ]
null
null
null
app/services/QueryService.py
fredrik-aschehoug/KG-Enricher
56f1ac192c2542d8412235ee6897d22278a5259e
[ "MIT" ]
null
null
null
from aiosparql.client import SPARQLClient from typing import Union from models.types import sparql_bindings class QueryService(): """ Base class used for querying SPARQL endpoints. Uses the aiosparql SPARQLClient to support sending async requests. """ _user_agent = "KG-Enricher" _headers = {'...
35.606061
109
0.693617
145
1,175
5.42069
0.434483
0.069975
0.057252
0
0
0
0
0
0
0
0
0
0.218723
1,175
32
110
36.71875
0.856209
0.09617
0
0
0
0
0.042303
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1e5fbb0ee05033c7efad72d8169c33b9ad7669f2
2,463
py
Python
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
3
2015-07-15T05:29:17.000Z
2021-06-23T21:50:25.000Z
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
4
2020-02-11T22:15:04.000Z
2021-06-10T17:41:51.000Z
books/management/commands/email_books.py
phildini/bockus
004508166f5b1a7c3c4d8accf32578a80379b385
[ "MIT" ]
null
null
null
import dropbox import json import logging from django.conf import settings from django.core.management.base import BaseCommand from django.core.mail import EmailMessage from allauth.socialaccount.models import SocialApp, SocialToken from books.forms import ImportForm from books.models import ( Book, BookFil...
33.283784
82
0.578157
256
2,463
5.402344
0.410156
0.110629
0.037599
0.049168
0.093999
0.06363
0.06363
0.06363
0.06363
0.06363
0
0.002465
0.341048
2,463
73
83
33.739726
0.849661
0
0
0.048387
0
0
0.108404
0
0
0
0
0
0
1
0.016129
false
0
0.177419
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e6038d2a3f2553efb2ffd56b40294b3bf3b78f9
511
py
Python
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
3
2019-03-03T00:08:19.000Z
2021-06-09T14:20:41.000Z
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
null
null
null
2018/Insomni'hack teaser/Rule86/outputs/super_cipher_partial.py
birdsoup/CTF-Writeups
feaeda46a5afa3dabbfa81adcbe184f7bc24d5cb
[ "MIT" ]
1
2021-06-18T08:56:05.000Z
2021-06-18T08:56:05.000Z
#!/usr/bin/env python3 import argparse import sys parser = argparse.ArgumentParser() parser.add_argument("key") args = parser.parse_args() RULE = [86 >> i & 1 for i in range(8)] N_BYTES = 32 N = 8 * N_BYTES def next(x): x = (x & 1) << N+1 | x << 1 | x >> N-1 y = 0 for i in range(N): y |= RULE[(x >> i) & 7...
18.925926
54
0.626223
89
511
3.539326
0.52809
0.038095
0.057143
0.104762
0.07619
0
0
0
0
0
0
0.037221
0.21135
511
27
55
18.925926
0.744417
0.144814
0
0
0
0
0.02069
0
0
0
0
0
0
1
0.055556
false
0
0.111111
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
1e61c19b1fa849a545aa5955ebc1129a3e165719
284
py
Python
zencad/interactive/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/interactive/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/interactive/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
from zencad.interactive.interactive_object import InteractiveObject from OCC.Core.AIS import AIS_Axis class AxisInteractiveObject(InteractiveObject): def __init__(self, axis, color): self.axis = axis super().__init__(AIS_Axis(axis.to_Geom_Line()), color=color)
28.4
68
0.760563
35
284
5.8
0.571429
0.068966
0
0
0
0
0
0
0
0
0
0
0.147887
284
9
69
31.555556
0.838843
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
1e61f53390c65e1afc1cca81347aa6ed53a9c8bd
11,464
py
Python
code/python/report_marks.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/report_marks.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/report_marks.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
1
2018-11-21T09:53:44.000Z
2018-11-21T09:53:44.000Z
#!/usr/bin/env python # # This file is part of the TeTePy software # # Copyright (c) 2017, 2018, University of Southampton # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions ...
42.459259
135
0.657188
1,458
11,464
5.029492
0.27572
0.024001
0.012273
0.006
0.159553
0.130642
0.109096
0.071185
0.060003
0.060003
0
0.015324
0.242934
11,464
269
136
42.6171
0.829589
0.225663
0
0.094595
0
0
0.101209
0
0
0
0
0
0.006757
0
null
null
0.02027
0.040541
null
null
0.067568
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1e6276643a563a4ed15fee529d45c22bb727a6be
9,871
py
Python
Python_Code/PD_Naive/naive_pd.py
TomerEven/Pocket_Dictionary
29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4
[ "Apache-2.0" ]
2
2019-12-10T03:41:02.000Z
2021-11-14T12:30:36.000Z
Python_Code/PD_Naive/naive_pd.py
TomerEven/Pocket_Dictionary
29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4
[ "Apache-2.0" ]
null
null
null
Python_Code/PD_Naive/naive_pd.py
TomerEven/Pocket_Dictionary
29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4
[ "Apache-2.0" ]
2
2019-12-10T03:41:07.000Z
2020-06-02T16:57:31.000Z
from typing import * class naive_pd(object): """ :param m Quotients (q_i) range interval. (forall q_i, q_i in [m]) :param f Number of elements in PD. :param l Remainder (r_i) length. (|r_i| = l) """ head: list body: list r: int m: int max_capacity: int capacity: int d...
25.181122
96
0.564279
1,543
9,871
3.45431
0.119896
0.01576
0.030394
0.037148
0.458349
0.396998
0.33621
0.292683
0.240338
0.240338
0
0.043137
0.302502
9,871
391
97
25.245524
0.731009
0.199575
0
0.23176
0
0
0.041329
0
0
0
0
0.002558
0.077253
0
null
null
0.004292
0.004292
null
null
0.064378
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1e63fbcaff13f5411059c99a4d6c190d9c025da4
322
py
Python
count_by_provider.py
SunshineStateDigitalNetwork/harvest_utils
1918732da2e485d45832766245e4beaae6da5b5f
[ "MIT" ]
null
null
null
count_by_provider.py
SunshineStateDigitalNetwork/harvest_utils
1918732da2e485d45832766245e4beaae6da5b5f
[ "MIT" ]
null
null
null
count_by_provider.py
SunshineStateDigitalNetwork/harvest_utils
1918732da2e485d45832766245e4beaae6da5b5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, json from collections import Counter data_providers = [] with open(sys.argv[1]) as f: rec = json.load(f) for record in rec: data_providers.append(record['dataProvider']) counts = Counter(data_providers) for item in list(counts): print(item, ': ', counts[item])...
17.888889
53
0.680124
46
322
4.695652
0.630435
0.180556
0.185185
0
0
0
0
0
0
0
0
0.007663
0.189441
322
17
54
18.941176
0.819923
0.065217
0
0
0
0
0.046823
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e676f04e361424c9b9b57dd01173e2fd0c3d4da
1,201
py
Python
corehq/apps/es/tests/test_utils.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/es/tests/test_utils.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/es/tests/test_utils.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from datetime import date, datetime from pytz import UTC, timezone from ..utils import es_format_datetime ET = timezone('US/Eastern') def test_es_format_datetime(): def _assert_returns(date_or_datetime, expected): actual = es_format_datetime(date_or_datetime) assert actual == expected, f"Expect...
42.892857
98
0.612823
183
1,201
3.918033
0.289617
0.075314
0.078103
0.146444
0.446304
0.260809
0.16318
0
0
0
0
0.273797
0.221482
1,201
27
99
44.481481
0.493048
0.067444
0
0
0
0
0.210197
0.11449
0
0
0
0
0.15
1
0.1
false
0
0.15
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1e676fac880fc5466a7425decb22605ffc682c32
1,072
py
Python
tools/build_dictionary_char.py
Yasumasa/gated_word_char_rlm_ym
0d35e5894416a531a5bee14f7df8dea38a1c8484
[ "BSD-3-Clause" ]
32
2016-07-11T00:32:27.000Z
2022-02-27T04:21:36.000Z
tools/build_dictionary_char.py
Yasumasa/gated_word_char_rlm_ym
0d35e5894416a531a5bee14f7df8dea38a1c8484
[ "BSD-3-Clause" ]
1
2017-08-06T19:18:23.000Z
2017-08-14T02:12:15.000Z
tools/build_dictionary_char.py
Yasumasa/gated_word_char_rlm_ym
0d35e5894416a531a5bee14f7df8dea38a1c8484
[ "BSD-3-Clause" ]
16
2016-08-29T08:45:55.000Z
2020-11-03T02:44:01.000Z
""" Build a character dictionary """ import numpy import cPickle as pkl import sys import fileinput from collections import OrderedDict def main(filenames): char_freqs = OrderedDict() for filename in filenames: print '==> Processing', filename with open(filename, 'r') as f: line...
25.52381
67
0.593284
138
1,072
4.471014
0.456522
0.08752
0.045381
0
0
0
0
0
0
0
0
0.010568
0.293843
1,072
41
68
26.146341
0.804491
0
0
0
0
0
0.084058
0
0
0
0
0
0.03125
0
null
null
0
0.15625
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1e69077c7c10e476b61bed366627a53116787801
2,815
py
Python
SessionTools/sort_sessions.py
DynamoDS/Coulomb
705e9a44c44ebdbe5650697b896000e8c42d8b56
[ "MIT" ]
3
2015-09-23T17:52:44.000Z
2020-04-11T11:15:59.000Z
SessionTools/sort_sessions.py
DynamoDS/Coulomb
705e9a44c44ebdbe5650697b896000e8c42d8b56
[ "MIT" ]
null
null
null
SessionTools/sort_sessions.py
DynamoDS/Coulomb
705e9a44c44ebdbe5650697b896000e8c42d8b56
[ "MIT" ]
1
2020-08-01T12:39:25.000Z
2020-08-01T12:39:25.000Z
# This tool takes the raw usage data and splits it into session files import gzip import json import base64 import sys import traceback import time import random import os import sys VERBOSE = True err = 0 MAX_MEM = 1 * 1000 * 1000 * 1000 def log(s): if VERBOSE: print time.strftime("%Y-%m-%d %H:%M:%S")...
23.655462
88
0.580817
396
2,815
3.964646
0.318182
0.053503
0.056051
0.028662
0.08535
0.064968
0.038217
0
0
0
0
0.020408
0.30373
2,815
118
89
23.855932
0.780612
0.05222
0
0.144444
0
0
0.089306
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1e69c26d6ae416358faf6b8f9971b4dbfaf0f463
37,047
py
Python
sfftk/unittests/test_notes.py
ssabrii/sfftk
5cab37f1c9ecb9c2507672fd3232b1b9b5405511
[ "Apache-2.0" ]
null
null
null
sfftk/unittests/test_notes.py
ssabrii/sfftk
5cab37f1c9ecb9c2507672fd3232b1b9b5405511
[ "Apache-2.0" ]
null
null
null
sfftk/unittests/test_notes.py
ssabrii/sfftk
5cab37f1c9ecb9c2507672fd3232b1b9b5405511
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Unit tests for :py:mod:`sfftk.core.notes` package""" from __future__ import division, print_function import os import shlex import shutil import sys import unittest from urllib import urlencode import __init__ as tests from .. import BASE_DIR from .. import schema fro...
42.730104
138
0.625341
4,101
37,047
5.486954
0.10534
0.061994
0.017598
0.023109
0.766599
0.720069
0.672607
0.644654
0.586037
0.488845
0
0.014657
0.257808
37,047
866
139
42.779446
0.803717
0.082085
0
0.540029
0
0.018923
0.123151
0.013753
0
0
0
0.001155
0.181951
1
0.094614
false
0
0.021834
0
0.129549
0.010189
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e6a40545d687c3ecf51841513c392eec05aec51
398
py
Python
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
projects/NameSorter.py
SilverBlaze109/VAMPY2017
68197544009aebc494b640b5d266c97ad6331c00
[ "MIT" ]
null
null
null
import Merge_Sorting read_filename = "/home/vampy/data/test1" write_filename = "/home/vampy/data/test2" fp = open(read_filename, "r") N = int(fp.readline()) names = [] for i in range(N): names.append(fp.readline().strip()) fp.close() Merge_Sorting.mergesort(names) fp = open(write_filename, "w") fp.write("{0}\n".f...
18.090909
41
0.675879
65
398
4.046154
0.446154
0.091255
0.129278
0.159696
0.091255
0
0
0
0
0
0
0.011396
0.11809
398
21
42
18.952381
0.737892
0
0
0.266667
0
0
0.135678
0.110553
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e6d8fb3d8f40dfbf384a556f19e918e977fd462
252
py
Python
api/conf/config.py
JackyCJ/flask-restful-login
1bd31ee3da8ca667dc7592123ad5ee700dcb2595
[ "MIT" ]
76
2017-07-15T15:52:51.000Z
2022-03-30T04:45:05.000Z
api/conf/config.py
JackyCJ/flask-restful-login
1bd31ee3da8ca667dc7592123ad5ee700dcb2595
[ "MIT" ]
83
2019-08-10T06:58:11.000Z
2022-03-31T16:29:37.000Z
api/conf/config.py
JackyCJ/flask-restful-login
1bd31ee3da8ca667dc7592123ad5ee700dcb2595
[ "MIT" ]
23
2016-07-14T09:06:51.000Z
2022-03-28T07:54:39.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) # Create a database in project and get it's path. SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "test.db")
25.2
73
0.674603
39
252
4.205128
0.717949
0.146341
0.121951
0
0
0
0
0
0
0
0
0.004525
0.123016
252
9
74
28
0.737557
0.34127
0
0
0
0
0.116564
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
1e6eefc3ab5404b4e42d6811569ac96399e99d1c
755
py
Python
src/discolight/query.py
denzel-datature/discolight
7c8309d3f883263b2e4cae0b289f17be1d1c07ea
[ "MIT" ]
27
2020-07-23T08:09:25.000Z
2022-03-01T08:24:43.000Z
src/discolight/query.py
denzel-datature/discolight
7c8309d3f883263b2e4cae0b289f17be1d1c07ea
[ "MIT" ]
7
2020-08-05T07:26:55.000Z
2020-12-31T04:20:40.000Z
src/discolight/query.py
denzel-datature/discolight
7c8309d3f883263b2e4cae0b289f17be1d1c07ea
[ "MIT" ]
6
2020-07-27T04:30:01.000Z
2020-08-13T02:39:25.000Z
"""A parser for YAML queries used by the Augmentor class.""" import yamale schema = yamale.make_schema(content=""" input: images: loader: str() options: map() annotations: loader: str() options: map() output: images: writer: str() options: map() annotations: writer: str() option...
18.414634
60
0.651656
96
755
5.09375
0.583333
0.102249
0.132924
0.07771
0
0
0
0
0
0
0
0.003367
0.213245
755
40
61
18.875
0.819865
0.197351
0
0.413793
0
0
0.617747
0.049488
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e70a8cf3463ffe9421d2adf4f0d082d0018a938
1,423
py
Python
migrations/versions/efd88a3c30a8_.py
andraune/Run4IT_BackEnd
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
1
2022-03-29T06:11:20.000Z
2022-03-29T06:11:20.000Z
migrations/versions/efd88a3c30a8_.py
andraune/run4it_backend
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
null
null
null
migrations/versions/efd88a3c30a8_.py
andraune/run4it_backend
a481427a0d1189a1f08c42e7ac1b452af6bbfc8d
[ "MIT" ]
null
null
null
"""empty message Revision ID: efd88a3c30a8 Revises: edf37629d0f4 Create Date: 2020-08-23 12:34:41.656176 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'efd88a3c30a8' down_revision = 'edf37629d0f4' branch_labels = None depends_on = None def upgrade(): # ...
33.093023
98
0.697119
188
1,423
5.106383
0.393617
0.066667
0.0625
0.0875
0.366667
0.316667
0.252083
0.152083
0
0
0
0.042588
0.141954
1,423
42
99
33.880952
0.743653
0.207309
0
0
0
0
0.225481
0.04583
0
0
0
0
0
1
0.083333
false
0
0.083333
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
1e7303e5e2805c01c2695e6e83bc9c5498d330bd
2,497
py
Python
code/model/loss/loss.py
ZJU-Fangyin/KCL
1d1002aeee785e4eb1dfc121d6cbb9cefa4e985c
[ "MIT" ]
24
2021-12-04T13:44:22.000Z
2022-03-19T08:10:19.000Z
code/model/loss/loss.py
Fangyin1994/KCL
004f5681b77e4e75c791c909696fdb8a208501a2
[ "MIT" ]
3
2021-12-20T08:14:06.000Z
2022-03-28T08:03:09.000Z
code/model/loss/loss.py
Fangyin1994/KCL
004f5681b77e4e75c791c909696fdb8a208501a2
[ "MIT" ]
1
2021-12-22T09:29:55.000Z
2021-12-22T09:29:55.000Z
from .loss_computer import NCESoftmaxLoss import torch.nn.functional as F import torch.nn as nn import torch import logging import pdb logger = logging.getLogger() class ContrastiveLoss(nn.Module): def __init__(self, loss_computer: str, temperature: float, args) -> None: super().__init__() self.d...
34.205479
96
0.64998
330
2,497
4.769697
0.281818
0.053367
0.007624
0.010165
0.192503
0.15756
0.121982
0.054638
0.054638
0
0
0.018228
0.209051
2,497
72
97
34.680556
0.778734
0.168202
0
0.186047
0
0
0.028585
0
0
0
0
0
0
1
0.093023
false
0
0.139535
0
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e73e5b2fe9aa6d77e943c822dde424875f561fa
3,359
py
Python
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
4
2019-06-27T13:49:09.000Z
2021-07-26T05:30:04.000Z
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
null
null
null
Script_fullBandCapture.py
gdavila/PyDocsisMon
461bb05a732f9c20bfcca18624d266f7ff89f8f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 15 12:16:14 2018 @author: gdavila This is a example to get Full Band Channel information On Docsis 3.0 Full Band Channels is a feature that allows to get detailed info about the power distribution of the espectrum """ import docsisMon.cmDevices as cmDevices from docsis...
30.816514
130
0.533194
412
3,359
4.296117
0.395631
0.00904
0.025424
0.033898
0.063277
0.050847
0.050847
0.050847
0.050847
0
0
0.057351
0.345936
3,359
108
131
31.101852
0.748293
0.110747
0
0.105263
0
0.013158
0.074286
0
0
0
0
0
0
1
0.039474
false
0
0.065789
0
0.131579
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
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
1e76a6d7201c50230ea9c60f989c6e9e8acbee75
398
py
Python
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
1
2018-05-30T15:33:26.000Z
2018-05-30T15:33:26.000Z
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
7
2018-06-21T13:21:22.000Z
2018-07-24T21:20:05.000Z
examples/crack_egg.py
mkclairhong/quail
a6d6502746c853518a670d542222eb5fc2b05542
[ "MIT" ]
1
2018-06-01T17:39:48.000Z
2018-06-01T17:39:48.000Z
# -*- coding: utf-8 -*- """ ============================= Crack Egg ============================= This an example of how to crack an egg (take a slice of subjects/lists from it) """ # Code source: Andrew Heusser # License: MIT #import import quail #load data egg = quail.load_example_data() #crack egg cracked_egg ...
16.583333
79
0.59799
55
398
4.236364
0.6
0.103004
0
0
0
0
0
0
0
0
0
0.008824
0.145729
398
23
80
17.304348
0.676471
0.59799
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e77a46aa8467b03a2158c13c41151ff7714391b
4,674
py
Python
misc_analysis.py
adamnahari/bch_clinical_lab_indicators_covid19_misc
2e29c2f69678e6d4ff1c3f55150588f207afc874
[ "MIT" ]
null
null
null
misc_analysis.py
adamnahari/bch_clinical_lab_indicators_covid19_misc
2e29c2f69678e6d4ff1c3f55150588f207afc874
[ "MIT" ]
null
null
null
misc_analysis.py
adamnahari/bch_clinical_lab_indicators_covid19_misc
2e29c2f69678e6d4ff1c3f55150588f207afc874
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import pandas as pd from statsmodels.stats.proportion import proportion_confint from itertools import combinations # remove patients for which we do not have any covid info data = data[(data['MRN'].isin(pcr['MRN'])) | (data['MRN'].isin(misc['mrn']))] data['MISCFound'] = data['MR...
54.348837
326
0.695336
644
4,674
4.982919
0.206522
0.044874
0.07479
0.089748
0.764724
0.74478
0.687442
0.651916
0.593331
0.593331
0
0.01411
0.166025
4,674
85
327
54.988235
0.809133
0.12024
0
0.212121
0
0.060606
0.396833
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e77ef009463c9c8b20da40c4cad47baa5105caf
488
py
Python
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
cython_wordle/setup.py
richardtiffin/wordle
9bdca662f204673e8fdac6fe262f596a4c1a7971
[ "MIT" ]
null
null
null
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_modules=[ Extension("BBox", ["BBox.pyx"]), Extension("spirals", ["spirals.pyx"]), Extension("wordle", ["wordle.pyx"]), ] setup( name = 'wordle', cmdcl...
25.684211
60
0.659836
56
488
5.625
0.464286
0.101587
0.069841
0.114286
0
0
0
0
0
0
0
0
0.219262
488
18
61
27.111111
0.826772
0.190574
0
0
0
0
0.163102
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e781496e1aa125be921635999ca76ed9c8a3c2b
4,296
py
Python
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/models/file.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ import magic, os, urllib2 from django.core.files.storage import default_storage as storage class FileTypeTester(models.Model): class Meta: abstract = True file_type_...
41.307692
153
0.598929
490
4,296
5.089796
0.269388
0.060946
0.067362
0.064956
0.442261
0.369687
0.369687
0.34563
0.311949
0.25421
0
0.002681
0.3054
4,296
104
154
41.307692
0.83311
0.071462
0
0.417722
0
0
0.168508
0.067052
0
0
0
0.009615
0
1
0.113924
false
0
0.063291
0.063291
0.43038
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e7861ff4e6f1898ca9de27db75540533d4577d2
484
py
Python
Python/bst/lets_trie.py
creativcoder/AlgorithmsExercise
a25895205272d17714a6d7dc37eaa2b03c126c6c
[ "MIT" ]
null
null
null
Python/bst/lets_trie.py
creativcoder/AlgorithmsExercise
a25895205272d17714a6d7dc37eaa2b03c126c6c
[ "MIT" ]
null
null
null
Python/bst/lets_trie.py
creativcoder/AlgorithmsExercise
a25895205272d17714a6d7dc37eaa2b03c126c6c
[ "MIT" ]
null
null
null
# A node is an instance of a single node in the trie tree class Node(object): def __init__(self): self.children = {} def insert_key(self,key): if key not in self.children: self.children[key] = Node() # given a word this Trie will trie to insrt class Trie(object): def __init__(self, word): self.root = 'roo...
19.36
57
0.688017
79
484
4.088608
0.43038
0.22291
0.080495
0.105263
0
0
0
0
0
0
0
0
0.190083
484
24
58
20.166667
0.82398
0.200413
0
0
0
0
0.023499
0
0
0
0
0
0
1
0.25
false
0
0
0
0.375
0.0625
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
1e79370c0eaab1ed491a5469eb8e029e278bec8b
44
py
Python
chat/__main__.py
oinqu/network-protocol-design-course
3f190c1a5423a472e98af94e00da08a7c4718028
[ "MIT" ]
null
null
null
chat/__main__.py
oinqu/network-protocol-design-course
3f190c1a5423a472e98af94e00da08a7c4718028
[ "MIT" ]
null
null
null
chat/__main__.py
oinqu/network-protocol-design-course
3f190c1a5423a472e98af94e00da08a7c4718028
[ "MIT" ]
null
null
null
from App import App app = App() app.main()
8.8
19
0.659091
8
44
3.625
0.5
0.62069
0.62069
0
0
0
0
0
0
0
0
0
0.204545
44
4
20
11
0.828571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
1
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
6
1e7c1315048b3f514dcb2e813d265bec04841e19
293
py
Python
demos/instance_occlsegm/instance_occlsegm_lib/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
demos/instance_occlsegm/instance_occlsegm_lib/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
2
2019-04-11T05:36:23.000Z
2019-08-19T12:58:10.000Z
demos/instance_occlsegm/instance_occlsegm_lib/__init__.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
# flake8: noqa # set of functions from . import aug from . import data from . import geometry from . import func from . import image from . import utils from . import _io as io # set of classes from . import datasets from . import models # set of experimental modules from . import contrib
16.277778
29
0.740614
44
293
4.909091
0.477273
0.462963
0
0
0
0
0
0
0
0
0
0.00431
0.208191
293
17
30
17.235294
0.926724
0.245734
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1e7c45b57c7b1f68c58be33048ab411b59607f95
3,734
py
Python
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
217
2020-01-07T20:25:46.000Z
2022-03-29T06:09:58.000Z
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
16
2020-02-10T12:40:23.000Z
2022-02-26T13:01:55.000Z
retroarch_emulationstation.py
allebb/personal-influxdb
280be0cceb0bc00412849be4ca5ad4c7be539fc3
[ "Apache-2.0" ]
34
2020-01-15T15:42:20.000Z
2022-02-22T17:29:15.000Z
#!/usr/bin/python3 # Copyright (C) 2021 Sam Steele # 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...
36.970297
169
0.676754
492
3,734
5.052846
0.410569
0.024135
0.013274
0.012872
0.078842
0
0
0
0
0
0
0.008715
0.170327
3,734
100
170
37.34
0.793738
0.15399
0
0.078947
0
0.013158
0.229816
0.013668
0
0
0
0
0
1
0
false
0.026316
0.065789
0
0.065789
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
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
1e7e996369d9db95039bdf9c646f32b34e31f662
1,092
py
Python
day_05/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
day_05/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
day_05/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
import numpy as np def generate_map(lines, diags=False): vents = np.zeros((np.max(lines[:, :, 1]) + 1, np.max(lines[:, :, 0]) + 1), dtype=np.uint32) for l in lines: if l[0][0] == l[1][0]: # horizontal line vents[np.min(l[:, 1]):np.max(l[:, 1]) + 1, l[0][0]] += 1 elif l[0][1] == l[...
39
100
0.513736
184
1,092
2.98913
0.369565
0.032727
0.087273
0.076364
0.094545
0
0
0
0
0
0
0.048995
0.271062
1,092
27
101
40.444444
0.64196
0.132784
0
0
1
0
0.129925
0.057508
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e8142af288c77ab6046cce4e5f4f27dd0d2bc03
269
py
Python
tests/orientation_tests/test__repr__.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
tests/orientation_tests/test__repr__.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
tests/orientation_tests/test__repr__.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
import sys from hypothesis import given from rene import Orientation from . import strategies @given(strategies.orientations) def test_round_trip(orientation: Orientation) -> None: result = repr(orientation) assert eval(result, sys.modules) is orientation
19.214286
54
0.780669
33
269
6.30303
0.606061
0
0
0
0
0
0
0
0
0
0
0
0.152416
269
13
55
20.692308
0.912281
0
0
0
0
0
0
0
0
0
0
0
0.125
1
0.125
false
0
0.5
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1e8225b7ada5e1ad54098e2705b2ce6cd71e8f49
5,254
py
Python
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
rect_creator.py
jeffreyleifer/draw_rect
80082f53b52f5af9378f2a624024c6784ec9b565
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QWidget from PySide2.QtCore import Qt from PySide2.QtCore import QPoint from PySide2.QtWidgets import QWidget, QLabel from PySide2.QtGui import QPainter from PySide2.QtGui import QPixmap from PySide2.QtGui import QPen from draw_utils import is_adjacent, is_contained,is_intersect ...
33.044025
88
0.604111
665
5,254
4.63609
0.227068
0.080441
0.105092
0.103795
0.352903
0.267921
0.251054
0.218618
0.193318
0.193318
0
0.003469
0.286639
5,254
158
89
33.253165
0.819104
0.009517
0
0.292135
0
0
0.010141
0
0
0
0
0
0
1
0.089888
false
0
0.11236
0
0.258427
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
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
1e83dfa9c50394894ee742b2137621c5d011c5a0
356
py
Python
fasttext/run.py
TheStarkor/Deep-Learning-Examples
5174cfab823edb39ce61439fb98f2f55e23e2570
[ "MIT" ]
null
null
null
fasttext/run.py
TheStarkor/Deep-Learning-Examples
5174cfab823edb39ce61439fb98f2f55e23e2570
[ "MIT" ]
null
null
null
fasttext/run.py
TheStarkor/Deep-Learning-Examples
5174cfab823edb39ce61439fb98f2f55e23e2570
[ "MIT" ]
null
null
null
from gensim import models model = models.fasttext.load_facebook_model('cc.ko.300.bin') for w, sim in model.wv.similar_by_word('치킨', 5): print(f'{w}: {sim}') for w, sim in model.wv.most_similar('치킨', topn=5): print(f'{w}: {sim}') print(model.wv.similarity('치킨', '피자')) print(model.wv.most_similar(positive=['돼지...
32.363636
77
0.66573
62
356
3.725806
0.548387
0.069264
0.060606
0.077922
0.233766
0.138528
0
0
0
0
0
0.018927
0.109551
356
11
77
32.363636
0.709779
0
0
0.25
0
0
0.134454
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1e8434d13fe760e8cea23fce54f739923c5f3b0f
6,622
py
Python
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
mining_shoots_discord.py
Hofei90/stfc_mining_shoots
1eb89c0296b203719d32ae0cbf7c15ae7ca620dc
[ "MIT" ]
null
null
null
import toml from discord.ext import commands import discord import pathlib from peewee import SqliteDatabase, fn import db_model as db import datetime from dataclasses import dataclass import matplotlib.pyplot as plt import asyncio SKRIPTPFAD = pathlib.Path(__file__).parent CONFIGPFAD = SKRIPTPFAD / "config.toml" CONF...
30.1
108
0.598762
815
6,622
4.761963
0.218405
0.059521
0.027828
0.03092
0.427467
0.373873
0.355836
0.355836
0.320794
0.244009
0
0.004509
0.263214
6,622
219
109
30.237443
0.790531
0
0
0.320442
0
0
0.130645
0.004682
0
0
0
0
0
1
0.049724
false
0
0.055249
0.016575
0.171271
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e8540b88c0120bfb5afdddeb8fe99456df3e245
3,115
py
Python
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
test_utils/test_utils.py
Sawrz/yeti
1dd0653e570dc80663cd23aab1ebf61a54e44001
[ "MIT" ]
null
null
null
import string import numpy as np from yeti.get_features.hydrogen_bonds import Triplet from yeti.systems.building_blocks import Atom def create_data_type_exception_messages(parameter_name, data_type_name): return 'Wrong data type for parameter "{name}". Desired type is {data_type}'.format(name=parameter_name, ...
38.45679
113
0.646228
433
3,115
4.376443
0.228637
0.010554
0.014248
0.046438
0.208443
0.173615
0.138259
0.098153
0.098153
0.009499
0
0.035897
0.248796
3,115
80
114
38.9375
0.773932
0.03114
0
0
0
0
0.064698
0
0
0
0
0
0
1
0.14
false
0
0.08
0.06
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e85581ac31dc11f833c7a82b762a417fde73841
736
py
Python
tests/analyses/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/analyses/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/analyses/conftest.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# Third Party Imports import pytest @pytest.fixture def test_attributes_allocation(): yield { "allocation_method_id": 1, "availability_alloc": 0.9998, "duty_cycle": 100.0, "env_factor": 6, "goal_measure_id": 1, "hazard_rate_alloc": 0.0, "hazard_rate_goal": 0...
24.533333
37
0.546196
92
736
4.043478
0.532609
0.064516
0.037634
0
0
0
0
0
0
0
0
0.087302
0.315217
736
29
38
25.37931
0.650794
0.025815
0
0
0
0
0.394406
0.029371
0
0
0
0
0
1
0.038462
true
0
0.038462
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1e8587f831eb0191924a6fb1115988c766870ce9
689
py
Python
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
INSTAVARIETY_KEYPOINTS = [ 'right_heel_openpose', 'right_knee_openpose', 'right_hip_openpose', 'left_hip_openpose', 'left_knee_openpose', 'left_heel_openpose', 'right_wrist_openpose', 'right_elbow_openpose', 'right_shoulder_openpose', 'left_shoulder_openpose', 'left_elbow_ope...
24.607143
30
0.699565
73
689
5.958904
0.260274
0.303448
0.078161
0
0
0
0
0
0
0
0
0
0.187228
689
27
31
25.518519
0.776786
0
0
0
0
0
0.667634
0.161103
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1e865f0471666eee6566c8792893e373522a1f73
72,247
py
Python
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
vaccinate/core/models.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
null
null
null
from __future__ import annotations import uuid from datetime import datetime, timedelta from functools import reduce from operator import or_ from typing import Any, List, NamedTuple, Optional import beeline import pytz import sentry_sdk from django.conf import settings from django.contrib.auth.models import User fro...
36.654997
179
0.648428
8,496
72,247
5.278131
0.110993
0.02589
0.024931
0.031465
0.53277
0.46054
0.408737
0.352273
0.306558
0.264456
0
0.002853
0.272247
72,247
1,970
180
36.673604
0.850013
0.128684
0
0.381646
0
0.007595
0.14085
0.017716
0
0
0
0
0.001266
1
0.041139
false
0
0.036076
0.020253
0.294937
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e871e7be4f994cf1cfd89c9a4b868bc30e2a035
205
py
Python
settings/settings.py
Partycode/opentfd
2211012ccb3b96b5b48ae2ae27f874354e6ddc71
[ "Apache-2.0" ]
null
null
null
settings/settings.py
Partycode/opentfd
2211012ccb3b96b5b48ae2ae27f874354e6ddc71
[ "Apache-2.0" ]
null
null
null
settings/settings.py
Partycode/opentfd
2211012ccb3b96b5b48ae2ae27f874354e6ddc71
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import os APP_PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) SESSION_FILE_PATH = os.path.join(APP_PATH, 'settings', 'opentfd_session')
25.625
73
0.721951
32
205
4.34375
0.5625
0.172662
0.143885
0.215827
0.230216
0
0
0
0
0
0
0.010753
0.092683
205
7
74
29.285714
0.736559
0.209756
0
0
0
0
0.14375
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
1e88662b9dcdea887377483da9b99fbeb0a1e2ce
1,650
py
Python
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
null
null
null
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-02-24T17:11:26.000Z
2021-02-24T17:11:31.000Z
src/train.py
SunbirdAI/SunBERT
b73ccf5115a0303b59b27df602bfe064c8ebd6fa
[ "MIT" ]
1
2021-12-10T12:27:17.000Z
2021-12-10T12:27:17.000Z
import pandas as pd from dataset import create_dataloader from engine import train_fn from model import SunBERT from transformers import AdamW from torch import nn def run(): MAX_LEN = 66 BATCH_SIZE = 32 EPOCHS = 5 device = torch.device("cuda:0" if torch.cuda.is_available() else "Couldn't find GPU dev...
38.372093
130
0.746667
247
1,650
4.696356
0.433198
0.034483
0.046552
0.051724
0.113793
0.058621
0
0
0
0
0
0.014493
0.163636
1,650
42
131
39.285714
0.826087
0.081818
0
0
0
0
0.05298
0
0
0
0
0
0
1
0.033333
false
0
0.2
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e89e5918f3ccc62e2c9d037ec970ff4354a9c3b
4,430
py
Python
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
5
2020-05-23T13:10:51.000Z
2021-09-07T13:56:38.000Z
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
null
null
null
COVID-19_Old.py
JustHarsh/Drug_Discovery-COVID-19
0dd941797e6a928f70f2ea706f584259ca24478f
[ "MIT" ]
null
null
null
# Importing all essential libraries import os import random import sys import pandas as pd import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.layers import Dropout from keras.optimizers import RMSprop from keras.utils.data_utils import get_fil...
29.731544
93
0.584876
545
4,430
4.645872
0.321101
0.028436
0.027646
0.033175
0.14139
0.097946
0.097946
0.097946
0.097946
0.097946
0
0.015646
0.163205
4,430
148
94
29.932432
0.667386
0.245598
0
0.117647
0
0
0.066485
0.014506
0
0
0
0
0
1
0.023529
false
0
0.164706
0
0.2
0.141176
0
0
0
null
0
0
0
0
0
0
0
0
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
1e8c90529784c32fc97eee269bf1f19fcbbdd280
1,494
py
Python
tests/service/test_base.py
flyinactor91/AVWX-Engine
0d3ce2c6e962d2a3ec9db711caf9d1c94658fa80
[ "MIT" ]
30
2015-09-08T20:38:41.000Z
2019-03-10T07:10:47.000Z
tests/service/test_base.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
5
2015-08-12T15:50:07.000Z
2019-04-16T00:42:12.000Z
tests/service/test_base.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
11
2016-01-17T10:10:29.000Z
2019-01-13T17:55:36.000Z
""" Service API Tests """ # pylint: disable=missing-class-docstring # stdlib from typing import Tuple import unittest # module from avwx import service BASE_ATTRS = ("url", "report_type", "_valid_types") class BaseTestService(unittest.IsolatedAsyncioTestCase): serv: service.Service service_class = servic...
28.730769
66
0.660643
176
1,494
5.448864
0.340909
0.052138
0.05318
0.037539
0.22732
0.22732
0.22732
0.22732
0.145985
0.145985
0
0.00088
0.238956
1,494
51
67
29.294118
0.842568
0.113119
0
0.129032
0
0
0.0208
0
0
0
0
0
0.193548
1
0.096774
false
0
0.096774
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1e8c94240a87d0206591689e63849ac4c1ef22b0
1,267
py
Python
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
src/main.py
DanielWieczorek/FancyReadmeBuilder
a0a91ec60a673be97d7a942ded5e1da659dda885
[ "MIT" ]
null
null
null
""" This is a nifty little tool to create really cool looking Readme files. Its essentially a templating tool for such. The initial steps to create a template are the following: - create a super cool ANSI Art design for your readme. - create a template that uses this image and defines fields where text can be inserted....
27.543478
115
0.767956
179
1,267
5.27933
0.502793
0.022222
0.028571
0.053968
0.066667
0
0
0
0
0
0
0
0.168903
1,267
45
116
28.155556
0.897436
0.562747
0
0
0
0
0.020221
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.2
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
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
1e8dff84bf260e37d0a7da4269b967a651c8336e
147
py
Python
capitulo-05/ex05.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
3
2021-11-09T17:54:10.000Z
2022-01-30T22:32:25.000Z
capitulo-05/ex05.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
null
null
null
capitulo-05/ex05.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
null
null
null
# Reescreva o programa anterior para escrever os 10 primeiros múltiplos de 3 lastNumber = 30 n = 3 while n <= lastNumber: print(n) n += 3
18.375
76
0.687075
23
147
4.391304
0.73913
0.039604
0
0
0
0
0
0
0
0
0
0.063063
0.244898
147
7
77
21
0.846847
0.503401
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1e909bbac52b8d09611a8c081d2717c3f3ceb7b5
73
py
Python
sim_common/client_utils.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
sim_common/client_utils.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
sim_common/client_utils.py
mfatihaktas/edge-load-balance
b866ca47ba37a605eeba05658b1d302f6855a23f
[ "MIT" ]
null
null
null
def min_wait_time(cl_l): return min(cl.min_wait_time() for cl in cl_l)
18.25
46
0.753425
17
73
2.882353
0.529412
0.285714
0.44898
0
0
0
0
0
0
0
0
0
0.136986
73
3
47
24.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
1e9151fbe802bf8cc3a1fe455244d59c40229ca9
15,165
py
Python
extension/TypeFacet-RoboFont.roboFontExt/lib/tfs/common/TFSGlyph.py
charlesmchen/typefacet-robofont
1dee6f1054cfa0cdf87a490ff017a7098f894ef2
[ "Apache-2.0" ]
1
2019-07-15T22:29:56.000Z
2019-07-15T22:29:56.000Z
src-all/tfs/common/TFSGlyph.py
charlesmchen/typefacet-robofont
1dee6f1054cfa0cdf87a490ff017a7098f894ef2
[ "Apache-2.0" ]
null
null
null
src-all/tfs/common/TFSGlyph.py
charlesmchen/typefacet-robofont
1dee6f1054cfa0cdf87a490ff017a7098f894ef2
[ "Apache-2.0" ]
null
null
null
''' robofont-extensions-and-scripts TFSGlyph.py https://github.com/charlesmchen/robofont-extensions-and-scripts Copyright (c) 2012 Charles Matthew Chen charlesmchen@gmail.com Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. D...
70.208333
1,307
0.713419
1,959
15,165
5.519653
0.273099
0.016184
0.011653
0.007768
0.155738
0.115047
0.064182
0.056229
0.046796
0.046796
0
0.006505
0.229608
15,165
215
1,308
70.534884
0.919028
0.131223
0
0.118421
0
0
0.020559
0
0
0
0
0.004651
0
0
null
null
0
0.026316
null
null
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
1e91bffc137dacb98dd65fdc54a68e7adb4518df
3,080
py
Python
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
1
2016-10-13T18:36:59.000Z
2016-10-13T18:36:59.000Z
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
null
null
null
bin/soundboard_scripts/soundboard-preprocess.py
andrewmichaud/scripts
0e79a3454ec0116a0e3ed2902b79494939050937
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import json # If you change this be sure to change it everywhere in the main ahk file too. bank_size = 8 input_file = "soundboard_data.json" output_file = "soundboard_data.ahk" def indent(indent_level): return (indent_level * 4) * " " def main(): with open(input_file) as f: d...
29.615385
87
0.612662
403
3,080
4.506203
0.287841
0.145374
0.140419
0.146476
0.409692
0.390969
0.355727
0.331498
0.30837
0.285242
0
0.009063
0.247727
3,080
103
88
29.902913
0.774709
0.154545
0
0.298507
0
0
0.260601
0.178489
0
0
0
0
0
1
0.029851
false
0
0.014925
0.014925
0.059701
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e93915ecdb2cdb619894439c631119916b71978
1,822
py
Python
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
1047.remove-all-adjacent-duplicates-in-string.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 # # @lc app=leetcode id=1047 lang=python # # [1047] Remove All Adjacent Duplicates In String # # https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/description/ # # algorithms # Easy (63.77%) # Likes: 184 # Dislikes: 18 # Total Accepted: 21.7K # Total Submissions: 34K # Testcase...
23.063291
85
0.57629
226
1,822
4.610619
0.544248
0.017274
0.03263
0.051823
0.067179
0.067179
0
0
0
0
0
0.02818
0.318332
1,822
78
86
23.358974
0.810789
0.634468
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1e941d0f1ea0bea6db578d655dff1e5ed3367636
781
py
Python
sap/cf_logging/formatters/json_formatter.py
mhaas/cf-python-logging-support
86b7e8ef35b935401bdec7da275fe4e09302988c
[ "Apache-2.0" ]
16
2017-11-30T06:17:07.000Z
2021-09-13T13:41:17.000Z
sap/cf_logging/formatters/json_formatter.py
mhaas/cf-python-logging-support
86b7e8ef35b935401bdec7da275fe4e09302988c
[ "Apache-2.0" ]
32
2017-12-01T14:48:17.000Z
2022-02-19T04:49:55.000Z
sap/cf_logging/formatters/json_formatter.py
mhaas/cf-python-logging-support
86b7e8ef35b935401bdec7da275fe4e09302988c
[ "Apache-2.0" ]
7
2018-03-08T15:52:55.000Z
2022-02-27T18:52:57.000Z
""" Module for the JsonFormatter """ import json import logging import sys from sap.cf_logging.record.simple_log_record import SimpleLogRecord def _default_serializer(obj): return str(obj) if sys.version_info[0] == 3: def _encode(obj): return json.dumps(obj, default=_default_serializer) else: def ...
27.892857
106
0.701665
95
781
5.631579
0.463158
0.095327
0.04486
0.06729
0.134579
0.134579
0
0
0
0
0
0.003195
0.198464
781
27
107
28.925926
0.851438
0.189501
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.235294
0.176471
0.823529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
1e96de784904b01afc6ec3b2c98877a952ba909a
2,081
py
Python
src/compas_rhino/geometry/__init__.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas_rhino/geometry/__init__.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas_rhino/geometry/__init__.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
""" ******************************************************************************** geometry ******************************************************************************** .. currentmodule:: compas_rhino.geometry .. rst-class:: lead Wrappers for Rhino objects that can be used to convert Rhino geometry and data to...
19.819048
97
0.62518
218
2,081
5.770642
0.279817
0.063593
0.120827
0.146264
0.471383
0.348967
0.348967
0.31717
0.31717
0.31717
0
0.027397
0.158097
2,081
104
98
20.009615
0.690639
0.852955
0
0
0
0
0.003448
0
0
0
0
0
0
1
0
false
0
0.9
0
0.9
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
1e974270a6cf3fb3cecc5bb2513b8e4bc658f7b9
5,757
py
Python
tests/functional_test.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
tests/functional_test.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
tests/functional_test.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
import os import unittest import protgraph class FunctionalTest(unittest.TestCase): @classmethod def setUpClass(cls): """ Set base Example Folder """ main_file_path = os.path.dirname(os.path.abspath(protgraph.__file__)) cls.examples_path = os.path.join(main_file_path, "..", "examples...
39.163265
116
0.657982
740
5,757
4.843243
0.148649
0.0625
0.151786
0.196429
0.815848
0.663783
0.587054
0.561384
0.561384
0.540179
0
0.005185
0.195935
5,757
146
117
39.431507
0.769065
0.003995
0
0.293578
0
0
0.060426
0
0
0
0
0
0
1
0.302752
false
0
0.027523
0
0.33945
0
0
0
0
null
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
1e99fc63ab0f76d9f24c67f04cff7cdb44f433f8
3,444
py
Python
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
55
2021-01-15T17:01:10.000Z
2022-03-26T20:15:33.000Z
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
53
2021-02-14T22:17:44.000Z
2022-01-28T17:43:59.000Z
v1_fastecdsa/bsgs_algo_modified.py
Chesterfield007/bsgs
dc3a7ab73ca7b385d25f7b486e8efa293c4e3bf8
[ "MIT" ]
33
2021-02-19T13:30:49.000Z
2022-01-12T06:58:07.000Z
# -*- coding: utf-8 -*- """ @author: iceland """ import bit import time import random import os from fastecdsa import curve from fastecdsa.point import Point bs_file = 'baby_steps_table.txt' def Pub2Point(public_key): x = int(public_key[2:66],16) if len(public_key) < 70: y = bit.form...
32.8
146
0.525842
455
3,444
3.89011
0.323077
0.086441
0.027119
0.014689
0.061017
0.045198
0
0
0
0
0
0.066693
0.255517
3,444
104
147
33.115385
0.623635
0.126597
0
0.054795
0
0.013699
0.16928
0.052272
0
0
0
0
0
1
0.041096
false
0
0.082192
0
0.164384
0.109589
0
0
0
null
0
0
0
0
0
0
0
0
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