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
822a641495e4387a0c1f14cf9ebd06d65a7a819c
7,355
py
Python
jdit/trainer/single/sup_single.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
28
2019-06-18T15:56:53.000Z
2021-11-09T13:11:13.000Z
jdit/trainer/single/sup_single.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
2
2018-10-24T01:09:56.000Z
2018-11-08T07:13:48.000Z
jdit/trainer/single/sup_single.py
dingguanglei/jdit
ef878e696c9e2fad5069f106496289d4e4cc6154
[ "Apache-2.0" ]
8
2019-01-11T01:12:15.000Z
2021-03-12T10:15:43.000Z
from ..super import SupTrainer from tqdm import tqdm import torch from jdit.optimizer import Optimizer from jdit.model import Model from jdit.dataset import DataLoadersFactory class SupSingleModelTrainer(SupTrainer): """ This is a Single Model Trainer. It means you only have one model. input, gound_tr...
37.146465
116
0.562882
885
7,355
4.501695
0.19096
0.027108
0.03012
0.023845
0.500251
0.477159
0.433986
0.416918
0.416918
0.398845
0
0.003537
0.346431
7,355
197
117
37.335025
0.825255
0.4707
0
0.176471
0
0
0.016552
0
0
0
0
0
0
1
0.117647
false
0.014706
0.088235
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
822adefd2d61243c8a6b7d51a859f435ee02768e
1,433
py
Python
Gold/sol.py
papachristoumarios/IEEEXtreme11.0
4c3b5aaa71641a6d0b3e9823c4738050f2553b27
[ "MIT" ]
13
2018-10-11T14:13:56.000Z
2022-02-17T18:30:17.000Z
Gold/sol.py
papachristoumarios/IEEEXtreme11.0-PComplete
4c3b5aaa71641a6d0b3e9823c4738050f2553b27
[ "MIT" ]
null
null
null
Gold/sol.py
papachristoumarios/IEEEXtreme11.0-PComplete
4c3b5aaa71641a6d0b3e9823c4738050f2553b27
[ "MIT" ]
7
2018-10-24T08:36:59.000Z
2021-07-19T18:16:53.000Z
import heapq import sys primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53] bounds = [1] for pr in primes: bounds.append(bounds[-1]*pr) def gold(town_id): i = 0 while bounds[i] <= town_id: i += 1 return i - 1 def solve(): N, M = [int(i) for i in raw_input().split()] ...
26.537037
93
0.551291
222
1,433
3.346847
0.297297
0.056528
0.040377
0.021534
0.161507
0.123822
0.061911
0.061911
0
0
0
0.036735
0.31612
1,433
53
94
27.037736
0.721429
0
0
0.043478
0
0
0.005583
0
0
0
0
0
0
1
0.065217
false
0
0.043478
0
0.130435
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
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
822bbf9836e86e5cf6fb48c971df002aa5f8085b
511
py
Python
src/wechat/settings.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
3
2019-06-17T10:54:03.000Z
2021-01-29T08:25:01.000Z
src/wechat/settings.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
2
2020-03-24T15:46:37.000Z
2020-03-30T20:26:19.000Z
src/wechat/settings.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 from .utils import build_user_agent # common DEFAULT_HEADERS = { 'User-Agent': build_user_agent() } TIMEOUT = 1 ENCODING = 'utf-8' RETRYS = 3 RETRY_BACKOFF_FACTOR = 0.1 RETRY_STATUS_FORCELIST = frozenset([500, 502, 504]) # auth OAUTH_HOST = 'open.weixin.qq.com' AUTH_EXPIRED_CODES = froz...
17.033333
60
0.712329
75
511
4.56
0.72
0.078947
0.070175
0
0
0
0
0
0
0
0
0.088785
0.162427
511
29
61
17.62069
0.71028
0.101761
0
0
0
0
0.110865
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
822c63b5e55693f8beb5a21c86e5722b43fcabfd
1,070
py
Python
leetcode/0242_valid_anagram.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0242_valid_anagram.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0242_valid_anagram.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
""" Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Example 2: Input: s = "rat", t = "car" Output: false Note: You may assume the string contains only lowercase alphabets. Follow up: What if the i...
22.291667
98
0.507477
155
1,070
3.43871
0.464516
0.018762
0.033771
0.026266
0.041276
0.041276
0
0
0
0
0
0.02
0.392523
1,070
47
99
22.765957
0.8
0.382243
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0.095238
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
0
0
0
1
0
822e6649f5126724e28587501bc18c3cf971a81b
4,144
py
Python
phpcsfixer.py
makao/sublime-php-cs-fixer
ff3227a2877a3e59c5bf9fc6e10f7aef56db8ef5
[ "MIT" ]
1
2018-11-26T19:42:41.000Z
2018-11-26T19:42:41.000Z
phpcsfixer.py
makao/sublime-php-cs-fixer
ff3227a2877a3e59c5bf9fc6e10f7aef56db8ef5
[ "MIT" ]
2
2018-01-10T05:15:08.000Z
2018-12-04T15:41:29.000Z
phpcsfixer.py
makao/sublime-php-cs-fixer
ff3227a2877a3e59c5bf9fc6e10f7aef56db8ef5
[ "MIT" ]
null
null
null
import os import re import sublime import sublime_plugin import subprocess STVER = int(sublime.version()) class PHPCSFixer(): def __init__(self): self.settings = PhpCsFixerSettings() if sublime.active_window() is not None and sublime.active_window().active_view() is not None: self.file...
27.812081
112
0.600386
464
4,144
5.267241
0.247845
0.037234
0.054419
0.040917
0.177578
0.153846
0.113748
0.061375
0.061375
0.061375
0
0.003663
0.275338
4,144
148
113
28
0.81019
0
0
0.211009
0
0
0.067809
0.006515
0
0
0
0
0
1
0.146789
false
0
0.045872
0.027523
0.40367
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8234be85b1a5c920b993e015367a06c4e394d65b
11,961
py
Python
main.py
iTecAI/minecraft-socket
72f3bbc4fb20bea4b837d093c734eab2798de89d
[ "MIT" ]
null
null
null
main.py
iTecAI/minecraft-socket
72f3bbc4fb20bea4b837d093c734eab2798de89d
[ "MIT" ]
null
null
null
main.py
iTecAI/minecraft-socket
72f3bbc4fb20bea4b837d093c734eab2798de89d
[ "MIT" ]
null
null
null
from json.decoder import JSONDecodeError from fastapi import FastAPI, Response, Request from fastapi.staticfiles import StaticFiles from argparse import ArgumentParser from starlette.status import * from starlette.responses import FileResponse, JSONResponse import uvicorn import os from pymongo import MongoClient from ...
38.214058
142
0.621269
1,449
11,961
5.004831
0.198068
0.038058
0.041919
0.048263
0.338389
0.322532
0.295229
0.288748
0.273442
0.258825
0
0.009465
0.222724
11,961
313
143
38.214058
0.770571
0.006688
0
0.266904
0
0.003559
0.234804
0.018269
0
0
0
0
0
1
0.003559
false
0.032028
0.078292
0
0.192171
0.010676
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82371535c737935c03e91ede47e391e948acafe2
567
py
Python
docs/source/examples/simple_sp.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
docs/source/examples/simple_sp.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
docs/source/examples/simple_sp.py
giserh/gpkit
71b953fcac8f67f148b67b54b6e8cd4182dc0b3b
[ "MIT" ]
null
null
null
"""Adapted from t_SP in tests/t_geometric_program.py""" import gpkit # Decision variables x = gpkit.Variable('x') y = gpkit.Variable('y') # must enable signomials for subtraction with gpkit.SignomialsEnabled(): constraints = [x >= 1-y, y <= 0.1] # create and solve the SP m = gpkit.Model(x, constraints) print(m.l...
28.35
79
0.705467
88
567
4.511364
0.659091
0.065491
0
0
0
0
0
0
0
0
0
0.018443
0.13933
567
19
80
29.842105
0.795082
0.29806
0
0
0
0
0.167095
0
0
0
0
0
0.1
1
0
false
0
0.1
0
0.1
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8237d91bd367fa37819ecabb2d7d852f0f4245f3
550
py
Python
aula075.py
juniorpedroso/CFBCursos
88657d6aad38de7d41e76499f0ff4d85a02745ae
[ "MIT" ]
null
null
null
aula075.py
juniorpedroso/CFBCursos
88657d6aad38de7d41e76499f0ff4d85a02745ae
[ "MIT" ]
null
null
null
aula075.py
juniorpedroso/CFBCursos
88657d6aad38de7d41e76499f0ff4d85a02745ae
[ "MIT" ]
null
null
null
# Aula 75 - SpinBox from tkinter import * app = Tk() app.title('Pedroso') app.geometry('500x300') def exibirValor(): vvalor = sb_valores.get() l_valor.config(text=vvalor) # sb_valores = Spinbox(app, from_=0, to=10) # Os valores podem ser informados por uma faixa, como acima, # ou como abaixo, em uma tupla...
19.642857
69
0.705455
85
550
4.447059
0.6
0.095238
0.079365
0.100529
0
0
0
0
0
0
0
0.036403
0.150909
550
27
70
20.37037
0.773019
0.267273
0
0
0
0
0.075377
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
823a986d979638441ae38a1104614b823b72f2d7
3,922
py
Python
src/data/dataset_utils.py
GuillaumeBarree/challenge-ENS
50f1faa58be50a7c8cbd6078b4495679fd112c05
[ "MIT" ]
null
null
null
src/data/dataset_utils.py
GuillaumeBarree/challenge-ENS
50f1faa58be50a7c8cbd6078b4495679fd112c05
[ "MIT" ]
null
null
null
src/data/dataset_utils.py
GuillaumeBarree/challenge-ENS
50f1faa58be50a7c8cbd6078b4495679fd112c05
[ "MIT" ]
null
null
null
"""This file contains all functions related to the dataset.""" # pylint: disable=import-error import os import tqdm import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from torch.utils.data import Dataset class RegressionDataset(Dataset): """Create a Torch Dataset for our ...
26.863014
92
0.661652
539
3,922
4.54731
0.207792
0.031824
0.02856
0.014688
0.28927
0.25459
0.20155
0.189718
0.106079
0.106079
0
0.001006
0.239419
3,922
145
93
27.048276
0.82065
0.343447
0
0.095238
0
0
0.044702
0
0
0
0
0
0
1
0.126984
false
0
0.095238
0.031746
0.349206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8240cdb3f22524daceb3ca1aaf3cf523bd2c0df4
12,619
py
Python
poseidon/ui/mobile/android/base_page.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2019-12-27T09:14:38.000Z
2019-12-27T09:16:29.000Z
poseidon/ui/mobile/android/base_page.py
CodeMonkey4Fun/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2021-03-31T20:06:21.000Z
2021-12-13T20:48:16.000Z
poseidon/ui/mobile/android/base_page.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
1
2020-11-13T07:37:01.000Z
2020-11-13T07:37:01.000Z
# coding=utf-8 """ @author:songmengyun @file: base_page.py @time: 2020/01/03 """ import time import logging from selenium.webdriver.common.by import By from appium.webdriver.common.touch_action import TouchAction from selenium.webdriver.support.wait import WebDriverWait from appium.webdriver.mobilecommand import Mob...
29.902844
113
0.576908
1,479
12,619
4.770791
0.198107
0.085034
0.029478
0.040816
0.452664
0.3947
0.353033
0.293651
0.273243
0.257653
0
0.017684
0.296458
12,619
421
114
29.973872
0.777089
0.083842
0
0.393701
0
0
0.085046
0.015529
0
0
0
0
0.007874
1
0.149606
false
0.003937
0.03937
0
0.244094
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8243b500985cbd67fd910c97e1596597cb663eae
958
py
Python
cogs/testing.py
classerase/Stand-Arrow
89183c266913af889dabb68f4d0c39153875f7da
[ "MIT" ]
2
2020-06-03T20:48:09.000Z
2020-06-04T04:29:06.000Z
cogs/testing.py
BrianDehlinger/Stand-Arrow
150cb741c73a244a88ce1cbcb21c71753848bbc6
[ "MIT" ]
2
2020-06-15T18:28:17.000Z
2020-06-17T20:44:43.000Z
cogs/testing.py
BrianDehlinger/Stand-Arrow
150cb741c73a244a88ce1cbcb21c71753848bbc6
[ "MIT" ]
1
2020-06-03T20:48:07.000Z
2020-06-03T20:48:07.000Z
from discord.ext import commands class Testing(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def who(self, ctx): author = ctx.author await ctx.send(f"Hello {author}") @commands.command() async def debug_free_cash(self, ctx): auth...
30.903226
66
0.605428
120
958
4.75
0.416667
0.126316
0.084211
0.121053
0.607018
0.470175
0.470175
0.470175
0.470175
0.470175
0
0.023392
0.286013
958
30
67
31.933333
0.809942
0
0
0.48
0
0
0.189979
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8245cf950c7faf9f93224170dad96f903d0f0be0
2,603
py
Python
scripts/create_fluseverity_figs_v5/S_deltaILIpercent_time_CDCbaseline_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
3
2018-03-29T23:02:43.000Z
2020-08-10T12:01:50.000Z
scripts/create_fluseverity_figs_v5/S_deltaILIpercent_time_CDCbaseline_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
scripts/create_fluseverity_figs_v5/S_deltaILIpercent_time_CDCbaseline_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 1/25/15 ###Function: time series difference in ILI percentage from CDC-based ILI baseline calculation ###Import data: SQL_export/OR_allweeks_outpatient.csv, anydiag_allweeks_outpatient.csv ###Command...
40.046154
286
0.726854
379
2,603
4.852243
0.503958
0.016313
0.045677
0.039152
0.113105
0.113105
0.065253
0.065253
0.065253
0.065253
0
0.020241
0.107952
2,603
64
287
40.671875
0.771748
0.392624
0
0
0
0.035714
0.290254
0.242938
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8246faf773d4f1bfd0da404df98ee155653febc9
4,328
py
Python
sentrylogs/bin/sentrylogs.py
hossein/sentrylogs
70eaf665f9010ba2d8370ccc4013673bab7e2b16
[ "BSD-3-Clause" ]
32
2015-07-01T11:12:32.000Z
2021-09-04T23:58:27.000Z
sentrylogs/bin/sentrylogs.py
hossein/sentrylogs
70eaf665f9010ba2d8370ccc4013673bab7e2b16
[ "BSD-3-Clause" ]
37
2016-05-27T13:55:24.000Z
2022-02-24T14:55:58.000Z
sentrylogs/bin/sentrylogs.py
hossein/sentrylogs
70eaf665f9010ba2d8370ccc4013673bab7e2b16
[ "BSD-3-Clause" ]
15
2015-10-14T14:20:23.000Z
2021-12-03T08:49:15.000Z
#!/usr/bin/env python """Standalone script for Sentry Logs""" from __future__ import print_function import os import argparse try: from configparser import ConfigParser except ImportError: # Python 2.7 from ConfigParser import ConfigParser # pylint: disable=import-error # Ignore warnings caused by ``sentr...
37.310345
81
0.606978
495
4,328
5.191919
0.333333
0.028016
0.039689
0.021012
0.022568
0.022568
0
0
0
0
0
0.002236
0.276802
4,328
115
82
37.634783
0.81885
0.124307
0
0.024691
0
0
0.2506
0
0
0
0
0
0
1
0.061728
false
0
0.111111
0
0.197531
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41309aa7b95e9754a43f4174cd8bb81a323ae14b
9,102
py
Python
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
1
2019-07-19T20:03:00.000Z
2019-07-19T20:03:00.000Z
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
etreebrowser/graph.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtCore from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib import rcParams rcParams['font.family'] = 'sans-serif' rcParams['font.sans-serif'] = ['Cantarell'] import matplotlib.pyplot as plt import matplotlib.p...
33.340659
128
0.614041
1,082
9,102
5.114603
0.33549
0.013914
0.006505
0.010842
0.117094
0.112035
0.062161
0.028551
0.028551
0
0
0.017057
0.272138
9,102
273
129
33.340659
0.818264
0.285761
0
0.115385
0
0
0.133247
0
0
0
0
0
0
1
0.053846
false
0
0.069231
0
0.176923
0.007692
0
0
0
null
0
0
0
0
0
0
0
0
0
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
413328f9159158b7e73d6e4e594f24dbc66f5d32
358
py
Python
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
scripts/speed.py
Maxence-Santos/space-invader
4ac359f61ab673c816005d0d85567c3227ec06a1
[ "MIT" ]
null
null
null
import pygame import os class Speed: def __init__(self,X): self.X = X self.Y = 700 self.image = pygame.image.load(os.path.join("img/speed_power_up.png")) self.image = pygame.transform.scale(self.image, (55, 55)) def update_and_draw(self,screen): scr...
27.538462
79
0.594972
52
358
3.942308
0.519231
0.17561
0.087805
0
0
0
0
0
0
0
0
0.02682
0.27095
358
13
80
27.538462
0.758621
0
0
0
0
0
0.063401
0.063401
0
0
0
0
0
1
0.2
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4133f8869dd2769312a3bb4f13caa9cc3c94d267
821
py
Python
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
36
2019-07-14T16:10:37.000Z
2022-03-29T10:11:03.000Z
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
3
2019-10-09T15:11:13.000Z
2021-07-31T02:17:43.000Z
supermariopy/tfutils/image.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
14
2019-08-29T14:11:54.000Z
2022-03-06T13:41:56.000Z
import tensorflow as tf def resize_bilinear(x, shape): """ Raises a warning if tensorflow version is too in order to buggy behavior References ---------- [1]: https://github.com/tensorflow/tensorflow/issues/6720 [2]: https://github.com/tensorflow/tensorflow/issues/33691 """ tf_version...
34.208333
76
0.665043
105
821
5.047619
0.466667
0.10566
0.084906
0.113208
0.335849
0.335849
0.184906
0.184906
0.184906
0.184906
0
0.054945
0.224117
821
23
77
35.695652
0.77708
0.270402
0
0.153846
0
0
0.10424
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41347176b216823b2850da2216f2fdd2a2569240
1,746
py
Python
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
aleph/util.py
mcrouse911/findpeopleviadocument
fecb99a5c167dd281af324f8c862fda70021f081
[ "MIT" ]
null
null
null
# coding: utf-8 import time import random import logging from celery import Task from banal import ensure_list from normality import stringify from pkg_resources import iter_entry_points log = logging.getLogger(__name__) EXTENSIONS = {} def get_extensions(section): if section not in EXTENSIONS: EXTENSION...
26.059701
73
0.623711
237
1,746
4.523207
0.413502
0.079291
0.033582
0
0
0
0
0
0
0
0
0.006121
0.251432
1,746
66
74
26.454545
0.814078
0.079038
0
0
0
0
0.068879
0.016907
0
0
0
0
0
1
0.122449
false
0
0.163265
0
0.469388
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4136db303bfc69cac0328040053f475ee2387084
20,461
py
Python
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
tadpole-catcher.py
tandalesc/tadpole-catcher
5c5a7fce892aeb6f4c237ff14843fb325032b3bf
[ "BSD-3-Clause" ]
null
null
null
"""This module downloads all photos/videos from tadpole to a local folder.""" import os from os.path import abspath, dirname, join, isfile, isdir import re import sys import json import time import pickle import logging import logging.config from random import randrange from getpass import getpass from configparser i...
39.272553
129
0.589903
2,490
20,461
4.673494
0.198795
0.030076
0.037295
0.010312
0.197817
0.137492
0.114978
0.073215
0.059466
0.044169
0
0.006702
0.299936
20,461
520
130
39.348077
0.805711
0.142417
0
0.116531
0
0.00813
0.143892
0.021854
0
0
0
0.001923
0
1
0.084011
false
0.01626
0.04336
0.01626
0.208672
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4137ed760291cec3e1fabbc437a8f67ebd69c0e3
1,598
py
Python
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
789
2021-11-12T16:12:21.000Z
2022-03-28T05:45:19.000Z
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
84
2021-11-12T22:23:50.000Z
2022-03-29T01:06:06.000Z
tests/test_primitives.py
empyriumz/openfold
12b33cc4f72ba07ef97fbc46972bc4bbb0c7ee32
[ "Apache-2.0" ]
114
2021-11-12T16:00:57.000Z
2022-03-27T21:32:31.000Z
# Copyright 2021 AlQuraishi Laboratory # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
29.592593
74
0.652691
232
1,598
4.344828
0.5
0.076389
0.031746
0.055556
0.175595
0.115079
0.059524
0.059524
0
0
0
0.012584
0.254068
1,598
53
75
30.150943
0.833054
0.349812
0
0
0
0
0.007805
0
0
0
0
0
0.035714
1
0.035714
false
0
0.178571
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
4138a7bccc894c41843ad8dd0583587c67038959
1,466
py
Python
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
2
2019-09-23T18:42:12.000Z
2019-09-30T04:17:10.000Z
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
12
2019-02-20T18:38:25.000Z
2022-03-13T02:32:57.000Z
python/Lumniosity_Converter.py
pbrown801/aggienova-templates
24f1269bf26ab8026a27df87358f80ea8ad04933
[ "MIT" ]
1
2020-01-14T17:26:33.000Z
2020-01-14T17:26:33.000Z
import pandas as pd import numpy as np import math from dust_extinction.parameter_averages import F19 def extinction_adjustment(rv): len_wave=len(sn_templ['Wavelength']) wavenum_waves = [1/(a/10000) for a in sn_templ['Wavelength']] ext_model = F19(Rv=rv) return(pd.Series(ext_model(wavenum_waves))) ...
28.745098
112
0.677353
230
1,466
4.03913
0.391304
0.052745
0.054898
0.019376
0.027987
0
0
0
0
0
0
0.038907
0.175989
1,466
51
113
28.745098
0.730132
0.027967
0
0
0
0
0.137546
0.064684
0
0
0
0
0
1
0.121212
false
0
0.121212
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
413b8b891d2f44221bdddfd4cafbe2d545ac748d
4,076
py
Python
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
bin/dotty.py
jgrip/dotfiles
78e96c3eaa1bb64d9197b23115bb1f144d4ca184
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function # Copyright (C) 2015 Vibhav Pant <vibhavp@gmail.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License...
34.837607
96
0.639352
581
4,076
4.416523
0.359725
0.046765
0.021824
0.023383
0.213172
0.160171
0.125487
0.125487
0.125487
0.125487
0
0.011832
0.232826
4,076
116
97
35.137931
0.808762
0.187929
0
0.202381
0
0
0.121966
0
0
0
0
0
0
1
0.071429
false
0.011905
0.083333
0
0.202381
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
413c30019b7152204c51cd4030495eeb971c8934
2,472
py
Python
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
sltxpkg/config.py
EagleoutIce/sltx-inst
cb45346177c22fd5bf47f29cebf34f09f16b9a4b
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path from sltxpkg import globals as sg from sltxpkg import util as su from sltxpkg.globals import (C_CACHE_DIR, C_CREATE_DIRS, C_DOWNLOAD_DIR, C_DRIVER_LOG, C_TEX_HOME, C_WORKING_DIR) from sltxpkg.log_control import LOGGER from sltxpkg.types import ...
32.96
91
0.636327
342
2,472
4.423977
0.280702
0.099141
0.052875
0.029081
0.06345
0
0
0
0
0
0
0.00054
0.250809
2,472
74
92
33.405405
0.816415
0.147654
0
0
0
0
0.073408
0
0
0
0
0
0
1
0.130435
false
0
0.173913
0.021739
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
413c68cef2a9cdf443fb29e050740dc6fceb6953
2,896
py
Python
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
kw_ransomware.py
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 24 21:32:11 2020 @author: kw """ import glob import os, random, struct import getpass from Cryptodome.Cipher import AES class makeMyRansomware: def __init__(self, your_extension=".Example", key=b'keyfor16bytes123', username=getpass.getuser())...
33.287356
103
0.564917
324
2,896
4.932099
0.342593
0.055069
0.042553
0.022528
0.397998
0.397998
0.397998
0.216521
0.216521
0.1602
0
0.02551
0.323204
2,896
87
104
33.287356
0.789796
0.044199
0
0.333333
0
0
0.034795
0
0
0
0
0
0
1
0.083333
false
0.033333
0.083333
0
0.183333
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
0
0
0
0
0
0
0
0
1
0
413c7bf5865a56e3f581e75a1fa2f6a01c3109a4
4,756
py
Python
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
9
2019-05-19T14:00:03.000Z
2019-05-21T14:19:56.000Z
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
8
2019-05-20T12:29:08.000Z
2022-02-10T11:06:55.000Z
hospital/models.py
mohitkyadav/calldoc
ebdcdcfac346e995c44cbf94a3c87c25ba594ee1
[ "MIT" ]
1
2019-05-20T07:04:20.000Z
2019-05-20T07:04:20.000Z
import uuid from django.contrib.auth.models import User from django.db import models from django.urls import reverse from django.core.validators import MaxValueValidator, MinValueValidator, RegexValidator from landing.models import Profile class Specialisation(models.Model): class Meta: ordering = ('id',...
39.305785
114
0.625526
518
4,756
5.596525
0.258687
0.035874
0.028976
0.035185
0.595033
0.5188
0.483615
0.38565
0.359434
0.359434
0
0.016157
0.271236
4,756
120
115
39.633333
0.820254
0
0
0.43299
0
0
0.093566
0.004626
0
0
0
0
0
1
0.103093
false
0
0.061856
0.082474
0.649485
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
413d8e7168ec81d7fbf240777114a40652b16b3b
409
py
Python
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
anno-search-crawler/checker.py
powerslider/anno-search
b47ae5b4077d75622e088d3064e61934a8a3cf37
[ "Apache-2.0" ]
null
null
null
import os import json json_files = set() errors = set() dir = "extracted/json/" for file in os.listdir(dir): if ".json" in file: json_files.add(file) with open(dir + file, "r") as f: j = json.loads("".join(f.read())) if j["entities"] == {} or j["text"] == "": ...
22.722222
67
0.545232
59
409
3.728814
0.542373
0.122727
0
0
0
0
0
0
0
0
0
0
0.278729
409
17
68
24.058824
0.745763
0
0
0
0
0
0.141809
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
413ea01cee609cb192107f94528569476162e9b2
29,112
py
Python
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
2
2017-06-20T15:20:46.000Z
2019-11-18T01:28:49.000Z
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
null
null
null
labpack/platforms/docker.py
collectiveacuity/labPack
c8fb0d1ee23608f6dbcb99c232373eee886000fd
[ "MIT" ]
null
null
null
__author__ = 'rcj1492' __created__ = '2016.03' __license__ = 'MIT' from labpack.handlers.requests import requestsHandler class dockerClient(requestsHandler): _class_fields = { 'schema': { 'virtualbox_name': '', 'container_alias': '', 'image_name': '', ...
36.897338
182
0.561384
3,145
29,112
4.991097
0.128458
0.022934
0.012614
0.014907
0.401988
0.342804
0.288781
0.228069
0.212079
0.183411
0
0.006401
0.33457
29,112
788
183
36.944162
0.803892
0.208505
0
0.327354
0
0.002242
0.146633
0.016376
0
0
0
0.001269
0
1
0.049327
false
0.002242
0.049327
0
0.152466
0.033632
0
0
0
null
0
0
0
0
0
0
0
0
0
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
413f75cca22078b8921f0960e0731176326021d4
947
py
Python
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
classical_models/util_functions.py
leejaeka/sound_classifier
121bc11522514ed45e5ad74c4c3ffdb0e87cd688
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd def load_data(dataset='training', path='../data_processed/'): return pd.read_pickle(path + dataset + '_set.pkl') def process_files_to_mfccs(dataset='training', path='../data_processed/', target_column='mfccs'): df = load_data(dataset=dataset, path=path) labels, file...
37.88
114
0.669483
134
947
4.552239
0.432836
0.098361
0.04918
0.07541
0.104918
0
0
0
0
0
0
0.002571
0.178458
947
24
115
39.458333
0.781491
0.1151
0
0
0
0
0.16368
0
0
0
0
0
0
1
0.125
false
0
0.125
0.0625
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
414012d7a8b9a151ce80cbbbd219f43643543cf6
1,395
py
Python
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
2
2017-12-02T12:14:10.000Z
2020-09-30T17:49:37.000Z
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
null
null
null
setup.py
chembl/chembl_assay_matrix
f8f48e2fd22cde19f0bc6da3052e94952a5d7df3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'mnowotka' import sys try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup if sys.version_info < (2, 7, 3) or sys.version_info >= (2, 7, 7): raise Excepti...
32.44186
108
0.614337
168
1,395
5
0.642857
0.011905
0.047619
0.059524
0.038095
0
0
0
0
0
0
0.025739
0.248029
1,395
43
109
32.44186
0.775024
0.030108
0
0.055556
0
0
0.451923
0.034024
0
0
0
0
0
1
0
false
0
0.138889
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41402626baceb0ad14ef7bcb1114108515c7b502
2,029
py
Python
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
6
2019-10-07T12:03:45.000Z
2019-10-10T11:41:57.000Z
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
null
null
null
waveshare/countdown.py
WebReflection/countdown
7ba452de33bbef4c6132c4af0071fe28f6f3e3bb
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # ISC License # # Copyright (c) 2019, Andrea Giammarchi, @WebReflection # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # TH...
30.283582
79
0.73928
300
2,029
4.97
0.51
0.024145
0.021462
0.025486
0
0
0
0
0
0
0
0.014035
0.15722
2,029
66
80
30.742424
0.857895
0.497782
0
0
0
0
0.075301
0.029116
0
0
0.004016
0
0
1
0.064516
false
0
0.225806
0
0.290323
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
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
414211e54fff763958123b81d2506325421d7750
3,201
py
Python
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
1
2021-05-17T17:35:01.000Z
2021-05-17T17:35:01.000Z
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
1
2021-07-27T23:49:33.000Z
2021-07-29T19:53:14.000Z
robotpose/constants.py
OSU-AIMS/RoPE-S3D
0deed60b0c0b46324f9ce971bcf0b0b0af88ccf5
[ "Apache-2.0" ]
null
null
null
# Software License Agreement (Apache 2.0 License) # # Copyright (c) 2021, The Ohio State University # Center for Design and Manufacturing Excellence (CDME) # The Artificially Intelligent Manufacturing Systems Lab (AIMS) # All rights reserved. # # Author: Adam Exley import numpy as np import logging as log MAX_LINKS = 7...
34.793478
148
0.672602
460
3,201
4.552174
0.519565
0.015282
0.017192
0.016237
0.023878
0
0
0
0
0
0
0.025573
0.181506
3,201
92
149
34.793478
0.773664
0.504842
0
0
0
0.026316
0.144338
0.024721
0
0
0
0
0
1
0.026316
false
0
0.052632
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4148771c5460032b6e6cf71a733f1a7a81a72d62
2,893
py
Python
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
null
null
null
custom_components/localtuya/const.py
JonathanFerraz/home-assistant
15cd52f5eff850f978949406071fbe98b882918a
[ "MIT" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
"""Constants for localtuya integration.""" ATTR_CURRENT = "current" ATTR_CURRENT_CONSUMPTION = "current_consumption" ATTR_VOLTAGE = "voltage" CONF_LOCAL_KEY = "local_key" CONF_PROTOCOL_VERSION = "protocol_version" CONF_DPS_STRINGS = "dps_strings" CONF_PRODUCT_KEY = "product_key" # light CONF_BRIGHTNESS_LOWER = "brig...
27.817308
56
0.807812
413
2,893
5.065375
0.227603
0.054493
0.022945
0.034417
0
0
0
0
0
0
0
0
0.104044
2,893
103
57
28.087379
0.807099
0.045282
0
0
0
0
0.359403
0.070571
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
414999092001be652ff829a08dad85777592db23
8,098
py
Python
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
source/player.py
2nPlusOne/pygame-platformer
69078819280506d8ab1af4c493da22eb02b4fe01
[ "MIT" ]
null
null
null
import pygame from settings import * import utils class Player(pygame.sprite.Sprite): def __init__(self, pos, groups, collision_sprites): super().__init__(groups) self.image = pygame.Surface((TILE_SIZE / 2, TILE_SIZE)) self.image.fill(PLAYER_COLOR) self.rect = self.image.get_rect(to...
48.491018
138
0.618177
1,053
8,098
4.573599
0.177588
0.049834
0.026993
0.023256
0.336379
0.259759
0.186669
0.155731
0.135797
0.053987
0
0.007611
0.302297
8,098
167
139
48.491018
0.844779
0.206594
0
0.239669
0
0
0.011487
0.006766
0
0
0
0
0
1
0.082645
false
0
0.024793
0
0.115702
0.016529
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4149b0929f392e8e110537d2266f990d4929d8f0
5,054
py
Python
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
periodic/table.py
moopet/pyriodic
5477934881db6a00f040b9ff3624d1eca9389f36
[ "MIT" ]
null
null
null
from colored import fg, bg, attr from . import elements from . import layouts class PeriodicTableError(Exception): """Periodic Table exceptions.""" pass class PeriodicTable: """Periodic Table.""" def __init__(self, **kwargs): self.color = kwargs["color"] if "color" in kwargs else False ...
30.630303
85
0.564899
580
5,054
4.843103
0.22931
0.04272
0.03204
0.01602
0.055892
0
0
0
0
0
0
0.004928
0.317372
5,054
164
86
30.817073
0.809275
0.085081
0
0.118812
0
0
0.113786
0.021444
0
0
0
0
0
1
0.079208
false
0.009901
0.029703
0
0.178218
0.118812
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4149c18516a466d5bd042367b350b07706f720b8
536
py
Python
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
2
2021-08-18T14:05:46.000Z
2021-09-24T07:44:23.000Z
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
1
2021-09-24T08:00:26.000Z
2021-10-07T10:45:28.000Z
data_model/transaction.py
chryoung/beancount_importer
664d4bf07d7b953afca4cf9fce7436c942390c52
[ "MIT" ]
null
null
null
from datetime import date from enum import IntEnum class TransactionDirection(IntEnum): EXPENSES = 0 INCOME = 1 class Transaction: def __init__(self): self.will_import = True self.transaction_date = date.today() self.payee = '' self.description = '' self.amount = ...
23.304348
54
0.619403
56
536
5.732143
0.553571
0.102804
0
0
0
0
0
0
0
0
0
0.007916
0.29291
536
22
55
24.363636
0.83905
0
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
414dbeebee592b4e49d79aec901a1680c586b5fb
3,617
py
Python
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/pandas/get.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
44.654321
129
0.709151
474
3,617
5.21308
0.367089
0.072845
0.048159
0.034399
0.22501
0.117766
0.049777
0.035613
0
0
0
0.006043
0.222284
3,617
80
130
45.2125
0.872378
0.431573
0
0
0
0
0.004169
0
0
0
0
0
0
1
0.034483
false
0
0.172414
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4151c5c3dbe7d9b634bc3106ccbd1a50caa1fb1f
1,120
py
Python
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
null
null
null
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
null
null
null
pipeline.py
Overnickel/eclip
8c52160d4e4418b4b1e186f30b4e06491ada9c40
[ "MIT" ]
1
2020-03-05T23:58:04.000Z
2020-03-05T23:58:04.000Z
import os import argparse import yaml import pprint from easydict import EasyDict as edict from download import download from read_process import read_process from de_analysis import de from cancer import cancer def parse_args(): parser = argparse.ArgumentParser(description='eCLIP') parser.add_argument('--con...
21.960784
57
0.677679
136
1,120
5.411765
0.441176
0.054348
0.038043
0
0
0
0
0
0
0
0
0.00116
0.230357
1,120
50
58
22.4
0.852668
0.077679
0
0
0
0
0.11546
0
0
0
0
0
0
1
0.09375
false
0
0.28125
0
0.4375
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41528f11f89e17b45a8aaf9f472409371cd43c86
887
py
Python
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
null
null
null
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
24
2020-05-09T19:18:30.000Z
2020-11-21T22:47:39.000Z
finscraper/request.py
jmyrberg/finscraper
f90399a0c33247d3bb896ca987ef6f293609abe0
[ "MIT" ]
null
null
null
"""Module for custom Scrapy request components.""" from scrapy import Request class SeleniumCallbackRequest(Request): """Process request with given callback using Selenium. Args: selenium_callback (func or None, optional): Function that will be called with the chrome webdriver. The func...
36.958333
77
0.668546
105
887
5.504762
0.52381
0.138408
0.069204
0
0
0
0
0
0
0
0
0
0.24239
887
23
78
38.565217
0.860119
0.491545
0
0
0
0
0.092457
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41533ac389ddcc893deaa3a3dea233e8a8c4234c
12,254
py
Python
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
1
2020-08-12T22:51:45.000Z
2020-08-12T22:51:45.000Z
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
null
null
null
tests/func/test_ignore.py
farizrahman4u/dvc
a56c8bbab662c3792ae12aa7db6c40a42a23de50
[ "Apache-2.0" ]
1
2020-11-28T11:47:48.000Z
2020-11-28T11:47:48.000Z
import os import shutil import pytest from dvc.exceptions import DvcIgnoreInCollectedDirError from dvc.ignore import ( DvcIgnore, DvcIgnoreDirs, DvcIgnorePatterns, DvcIgnorePatternsTrie, DvcIgnoreRepo, ) from dvc.path_info import PathInfo from dvc.repo import Repo from dvc.tree.local import LocalR...
31.260204
79
0.5945
1,518
12,254
4.550066
0.128459
0.065151
0.036485
0.027798
0.582597
0.544665
0.491386
0.397568
0.371218
0.345012
0
0.002172
0.248572
12,254
391
80
31.340153
0.747937
0.044557
0
0.350649
0
0
0.133892
0
0
0
0
0
0.107143
1
0.061688
false
0
0.035714
0
0.097403
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4154f5618899e57ee64e540445a53194c1b762ee
1,479
py
Python
synthea-hiv/uploader/uploader_test.py
GoogleCloudPlatform/openmrs-fhir-analytics
839a5c54e0c81d174522dcb9930b26bc49dfa748
[ "ECL-2.0", "Apache-2.0" ]
39
2020-08-07T18:10:21.000Z
2021-12-24T14:08:36.000Z
synthea-hiv/uploader/uploader_test.py
mozzy11/openmrs-fhir-analytics
796c75f3cc94cfad08e6e4a42d670830e9302d17
[ "Apache-2.0" ]
205
2020-08-20T05:25:29.000Z
2022-02-04T19:20:44.000Z
synthea-hiv/uploader/uploader_test.py
mozzy11/openmrs-fhir-analytics
796c75f3cc94cfad08e6e4a42d670830e9302d17
[ "Apache-2.0" ]
32
2020-08-13T19:14:50.000Z
2022-03-25T04:45:39.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.214286
74
0.76403
206
1,479
5.325243
0.480583
0.065634
0.076572
0.02917
0.20784
0.113036
0.113036
0.113036
0.113036
0.113036
0
0.01112
0.148749
1,479
41
75
36.073171
0.860207
0.370521
0
0.095238
0
0
0.023991
0
0
0
0
0
0.142857
1
0.142857
false
0
0.142857
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
4155116ee8c8f0032b20650c9fd29fb3f6faf25b
7,033
py
Python
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
stargazing/pomodoro/pomodoro_controller.py
mtu2/stargazing
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
[ "MIT" ]
null
null
null
from __future__ import annotations from enum import Enum from typing import List import os.path as path import stargazing.data.database as database import stargazing.audio.audio_controller as audio_ac import stargazing.audio.audio_player as audio_ap import stargazing.pomodoro.timer as pomo_t import stargazing.project....
39.072222
113
0.681928
815
7,033
5.640491
0.159509
0.067435
0.125299
0.060909
0.510333
0.415271
0.376115
0.29454
0.258864
0.159887
0
0.002231
0.235177
7,033
179
114
39.290503
0.852389
0.072942
0
0.390625
0
0
0.071473
0.047443
0
0
0
0.005587
0
1
0.09375
false
0
0.078125
0.023438
0.320313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4156d6278870fbb774b81e7ffbdf14d0c4744d9b
2,490
py
Python
tf_encrypted/keras/layers/layers_utils.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
825
2019-04-18T09:21:32.000Z
2022-03-30T05:55:26.000Z
tf_encrypted/keras/layers/layers_utils.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
354
2019-04-18T08:42:40.000Z
2022-03-31T18:06:31.000Z
tf_encrypted/keras/layers/layers_utils.py
wqruan/tf-encrypted
50ee4ae3ba76b7c1f70a90e18f875191adea0a07
[ "Apache-2.0" ]
161
2019-05-02T16:43:31.000Z
2022-03-31T01:35:03.000Z
"""TF Encrypted Keras layers utils""" import inspect import tensorflow as tf class UnknownLayerArgError(ValueError): """Raise error for unknown layer arguments. Args: arg_name: TF Encrypted Keras layer argument name (string) layer_sign: TensorFlow Keras layer signature (dict) tf_layer_name...
32.337662
82
0.675904
323
2,490
4.866873
0.19195
0.114504
0.076972
0.038168
0.353053
0.307252
0.278626
0.244275
0.172392
0.172392
0
0
0.245382
2,490
76
83
32.763158
0.836615
0.283534
0
0.1
0
0
0.101296
0
0
0
0
0
0
1
0.125
false
0
0.05
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4158338da63ba358220ee7b0c0e8ce7b54fd01ff
5,850
py
Python
vharfbuzz.py
KazunariTsuboi/font-engineering
2b80182d9cdfebf9853c01295ab13046f2ccb5a1
[ "Apache-2.0" ]
null
null
null
vharfbuzz.py
KazunariTsuboi/font-engineering
2b80182d9cdfebf9853c01295ab13046f2ccb5a1
[ "Apache-2.0" ]
null
null
null
vharfbuzz.py
KazunariTsuboi/font-engineering
2b80182d9cdfebf9853c01295ab13046f2ccb5a1
[ "Apache-2.0" ]
null
null
null
"""A user-friendlier way to use Harfbuzz in Python.""" import uharfbuzz as hb from fontTools.ttLib import TTFont import re class Vharfbuzz: def __init__(self, filename): """Opens a font file and gets ready to shape text.""" self.filename = filename with open(self.filename, "rb") as fontfi...
34.411765
88
0.558462
753
5,850
4.201859
0.280212
0.045512
0.041087
0.022124
0.190265
0.183312
0.142857
0.134324
0.134324
0.117889
0
0.014081
0.308034
5,850
169
89
34.615385
0.76754
0.143248
0
0.122951
0
0.008197
0.120226
0.007072
0
0
0
0
0
1
0.122951
false
0
0.02459
0
0.213115
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
415b5b68914faf3e3638db9ddfedb6c109eb3f7e
9,973
py
Python
habitat_baselines/config/default.py
rpartsey/habitat-pointnav-aux
03a24ddca8ab257f64092c70d4f2ff6805287b40
[ "MIT", "Unlicense" ]
15
2020-07-10T15:43:02.000Z
2022-03-09T03:11:30.000Z
habitat_baselines/config/default.py
rpartsey/habitat-pointnav-aux
03a24ddca8ab257f64092c70d4f2ff6805287b40
[ "MIT", "Unlicense" ]
2
2020-09-09T19:09:19.000Z
2020-10-21T16:30:23.000Z
habitat_baselines/config/default.py
rpartsey/habitat-pointnav-aux
03a24ddca8ab257f64092c70d4f2ff6805287b40
[ "MIT", "Unlicense" ]
1
2021-02-05T14:50:30.000Z
2021-02-05T14:50:30.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List, Optional, Union import numpy as np from habitat import get_config as get_task_config from hab...
36.531136
108
0.684348
1,562
9,973
4.046095
0.214469
0.060759
0.076899
0.140981
0.446994
0.268671
0.205854
0.187184
0.137025
0.051899
0
0.024071
0.112704
9,973
272
109
36.665441
0.690134
0.227314
0
0.010101
0
0
0.057266
0.030664
0
0
0
0.003676
0
1
0.005051
false
0
0.020202
0
0.030303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
415c300c1fc04be956dd24ffadcfc44181fd9b54
10,681
py
Python
backup_client.py
evermind/restic-backupclient
347fd6bfae0f967adac1b65775245f6e87a8c554
[ "MIT" ]
null
null
null
backup_client.py
evermind/restic-backupclient
347fd6bfae0f967adac1b65775245f6e87a8c554
[ "MIT" ]
null
null
null
backup_client.py
evermind/restic-backupclient
347fd6bfae0f967adac1b65775245f6e87a8c554
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from os import environ import logging as log import argparse from crontab import CronTab from datetime import datetime,timedelta import time import subprocess import os.path import re import yaml import shutil import elasticdump import mysqldump import pgdump import mongodump import influxdump ...
28.712366
155
0.735137
1,522
10,681
5.02431
0.187911
0.021054
0.019616
0.0085
0.185171
0.138355
0.099516
0.049954
0.049954
0.049954
0
0.001961
0.14053
10,681
371
156
28.789757
0.831046
0.030147
0
0.248387
0
0.003226
0.247416
0.002319
0
0
0
0
0
1
0.041935
false
0.019355
0.051613
0
0.170968
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
415fd9ca7dc3dd7e0ad28f54f3222836570e36ec
229
py
Python
helpers/version.py
Dabalon/blues_bot.py
b153f65054ce973e16c5fd1e2061ce1fe50145d1
[ "MIT" ]
5
2020-01-05T18:53:20.000Z
2022-03-19T13:01:24.000Z
helpers/version.py
Dabalon/blues_bot.py
b153f65054ce973e16c5fd1e2061ce1fe50145d1
[ "MIT" ]
22
2019-10-27T00:56:30.000Z
2021-07-13T16:42:24.000Z
helpers/version.py
Dabalon/blues_bot.py
b153f65054ce973e16c5fd1e2061ce1fe50145d1
[ "MIT" ]
11
2020-01-05T18:53:22.000Z
2022-03-30T22:20:13.000Z
# Version command helper def get_version(): """ Opens version file and returns it as a string """ file = open("assets/version", "r") ret = '' for line in file: ret += line file.close() return ret
20.818182
57
0.585153
31
229
4.290323
0.709677
0
0
0
0
0
0
0
0
0
0
0
0.292576
229
10
58
22.9
0.820988
0.305677
0
0
0
0
0.098684
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
416700a551016e3c3062ddbef52da0802e586ce3
1,849
py
Python
podcastapi.py
rexxars/kodi-vg-podcasts
f5151b78717533e97a3d70439946654228adca70
[ "MIT" ]
null
null
null
podcastapi.py
rexxars/kodi-vg-podcasts
f5151b78717533e97a3d70439946654228adca70
[ "MIT" ]
null
null
null
podcastapi.py
rexxars/kodi-vg-podcasts
f5151b78717533e97a3d70439946654228adca70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2016 Espen Hovlandsdal from requests import Session API_URL = 'http://api.vg.no/podcast'; session = Session() session.headers['User-Agent'] = 'kodi-vg-podcasts' session.headers['Accept'] = 'application/json' class Base(object): id = None title = None subtit...
22.277108
69
0.559221
218
1,849
4.62844
0.389908
0.047572
0.037661
0.053518
0.212091
0.130823
0.081269
0.081269
0.081269
0
0
0.01542
0.29854
1,849
82
70
22.54878
0.762529
0.034072
0
0.15873
0
0
0.109428
0
0
0
0
0
0
1
0.126984
false
0
0.015873
0.047619
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
0
0
0
1
0
416ad546e81165ecbce7d3668b0084d159819a2c
442
py
Python
src/year2020/day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
10
2017-12-11T17:54:52.000Z
2021-12-09T20:16:30.000Z
src/year2020/day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
260
2015-12-09T11:03:03.000Z
2021-12-12T14:32:23.000Z
src/year2020/day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
null
null
null
"""2020 - Day 5 Part 2: Binary Boarding.""" from src.year2020.day05a import process_data def solve(task: str) -> int: """Find an empty seat.""" seats = process_data(task) first = min(seats).pk last = max(seats).pk ideal = set(range(first, last)) real = set(seat.pk for seat in seats) diffe...
26
61
0.658371
64
442
4.515625
0.6875
0.076125
0
0
0
0
0
0
0
0
0
0.034483
0.21267
442
16
62
27.625
0.795977
0.128959
0
0
0
0
0.082888
0
0
0
0
0
0.1
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41716acd74ef124d89f5dce40e0eba84b378df21
43,180
py
Python
src/pylogit/mixed_logit.py
mathijsvdv/pylogit
2e7a06907d11b6fe02d3f3f9df91d374ed8a0c6d
[ "BSD-3-Clause" ]
153
2016-03-22T05:52:41.000Z
2022-02-09T13:33:20.000Z
src/pylogit/mixed_logit.py
mathijsvdv/pylogit
2e7a06907d11b6fe02d3f3f9df91d374ed8a0c6d
[ "BSD-3-Clause" ]
63
2016-03-22T05:47:56.000Z
2021-12-23T12:01:29.000Z
src/pylogit/mixed_logit.py
mathijsvdv/pylogit
2e7a06907d11b6fe02d3f3f9df91d374ed8a0c6d
[ "BSD-3-Clause" ]
91
2016-05-27T06:04:38.000Z
2022-03-13T20:00:15.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jul 18 18:15:50 2016 @name: Mixed MultiNomial Logit @author: Timothy Brathwaite @summary: Contains functions necessary for estimating mixed multinomial logit models (with the help of the "base_multinomial_cm.py" file). Version 1 only works fo...
44.979167
79
0.612297
5,293
43,180
4.788022
0.118458
0.009707
0.008523
0.007103
0.360178
0.283905
0.261571
0.225861
0.206092
0.194847
0
0.005837
0.333488
43,180
959
80
45.026069
0.874739
0.482145
0
0.28836
0
0
0.050646
0.002343
0
0
0
0
0
1
0.042328
false
0.007937
0.034392
0
0.134921
0.005291
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4174d02ae022627c9a3fdf728ab8801e521bd891
7,836
py
Python
node/blockchain/tests/test_models/test_signed_change_request/test_node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/blockchain/tests/test_models/test_signed_change_request/test_node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/blockchain/tests/test_models/test_signed_change_request/test_node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
import json import re import pytest from pydantic import ValidationError from node.blockchain.inner_models import ( NodeDeclarationSignedChangeRequest, NodeDeclarationSignedChangeRequestMessage, SignedChangeRequest ) from node.blockchain.mixins.crypto import HashableStringWrapper from node.blockchain.tests.test_m...
44.777143
119
0.727667
911
7,836
5.92865
0.149287
0.079985
0.126643
0.099981
0.591372
0.534716
0.479911
0.408628
0.381781
0.356786
0
0.032712
0.184661
7,836
174
120
45.034483
0.812647
0.006126
0
0.256944
0
0
0.133368
0.020686
0
0
0
0
0.145833
1
0.048611
false
0
0.048611
0
0.104167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41754b7be3194cb3183aea7d9f558b7b18c2dc8f
1,742
py
Python
CodeComb_Core/config_shell.py
amartyaamp/CodeComb
33fd50b91edd60dd08b1f4decc35e2fcf5f1a78d
[ "MIT" ]
1
2019-09-06T07:14:57.000Z
2019-09-06T07:14:57.000Z
CodeComb_Core/config_shell.py
amartyaamp/CodeComb
33fd50b91edd60dd08b1f4decc35e2fcf5f1a78d
[ "MIT" ]
12
2019-09-10T04:07:51.000Z
2019-12-13T03:04:49.000Z
CodeComb_Core/config_shell.py
amartyaamp/CodeComb
33fd50b91edd60dd08b1f4decc35e2fcf5f1a78d
[ "MIT" ]
1
2019-09-11T04:12:03.000Z
2019-09-11T04:12:03.000Z
import os from pyfiglet import figlet_format import cutie import configparser ## Either colorama or termcolor try: import colorama colorama.init() except ImportError: colorama = None try: from termcolor import colored except ImportError: colored = None ## Set the format config def set_format(): form...
23.226667
82
0.702641
233
1,742
5.090129
0.373391
0.067454
0.053963
0.021922
0.337268
0.305228
0.305228
0.305228
0.305228
0.305228
0
0.000668
0.141217
1,742
75
83
23.226667
0.792112
0.08209
0
0.355556
0
0
0.189666
0
0
0
0
0
0
1
0.066667
false
0
0.177778
0
0.244444
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41757415060bd40b7bf8385c7ab3e828141ce2df
637
py
Python
Candlestick-mpl_finance.py
anablima/Python-Studies
958e181a7b9ce0569259f67f2d87d78b90cb5aa1
[ "MIT" ]
null
null
null
Candlestick-mpl_finance.py
anablima/Python-Studies
958e181a7b9ce0569259f67f2d87d78b90cb5aa1
[ "MIT" ]
null
null
null
Candlestick-mpl_finance.py
anablima/Python-Studies
958e181a7b9ce0569259f67f2d87d78b90cb5aa1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as fig import datetime as dt import mpl_finance as mpf import matplotlib.dates as mdates import pandas_datareader.data as web inicio=dt.datetime(2019,1,1) fim=dt.datetime(2022,2,2) df=web.DataReader('MGLU3.SA','yahoo',inicio,fim) df['med_mov']=df['Close'].rolling(window=20,min_periods=0).mean...
30.333333
65
0.758242
112
637
4.1875
0.517857
0.076759
0.034115
0
0
0
0
0
0
0
0
0.044851
0.054945
637
21
66
30.333333
0.734219
0
0
0
0
0
0.097179
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4177179531f58a2be53761395add53901bd1e218
1,901
py
Python
components/eastereggs.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
components/eastereggs.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
components/eastereggs.py
n8wachT/BotListBot
457160498a90c8d0a63d5a9f7400227e35431b6d
[ "MIT" ]
null
null
null
import random from pprint import pprint from peewee import fn from model import Bot from telegram import ReplyKeyboardMarkup import util from telegram import KeyboardButton import captions from model import track_activity @track_activity('easteregg', '"crappy troll markup"') def _crapPy_Tr0ll_kbmarkup(rows=None)...
34.563636
127
0.652288
229
1,901
5.28821
0.50655
0.069364
0.024773
0.037985
0.067713
0.067713
0.067713
0
0
0
0
0.005219
0.193582
1,901
55
128
34.563636
0.784736
0
0
0.04878
0
0
0.165089
0
0
0
0
0
0
1
0.097561
false
0
0.243902
0
0.390244
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
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
417d85f2f2634da06e6ff80737c0f455994abeac
5,398
py
Python
sets/generator/nopattern/remote.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
null
null
null
sets/generator/nopattern/remote.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
null
null
null
sets/generator/nopattern/remote.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
null
null
null
from pandas import DataFrame as PandasDataFrame from optimus.engines.base.basedataframe import BaseDataFrame class RemoteDummyAttribute: def __init__(self, name, names, dummy_id, op): self.__names = [*names, name] self.__op = op self.__id = dummy_id def __getattr__(se...
30.156425
115
0.567803
646
5,398
4.490712
0.190402
0.041365
0.018959
0.034471
0.235436
0.122372
0.109962
0.053775
0.053775
0.053775
0
0.001372
0.32475
5,398
178
116
30.325843
0.794513
0
0
0.128571
0
0
0.040571
0
0
0
0
0
0
1
0.157143
false
0
0.057143
0.042857
0.45
0.021429
0
0
0
null
0
0
0
0
0
0
0
0
0
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
417e3d6a00fec073fc8e5b110ada2e2d5309582c
1,919
py
Python
app/util/ML/dataset.py
SoftwareEngineerUB/SmartEnergy
8893728eaf989a3b8bd2c1b3a8a1a5e6c4ce9c10
[ "Apache-2.0" ]
null
null
null
app/util/ML/dataset.py
SoftwareEngineerUB/SmartEnergy
8893728eaf989a3b8bd2c1b3a8a1a5e6c4ce9c10
[ "Apache-2.0" ]
null
null
null
app/util/ML/dataset.py
SoftwareEngineerUB/SmartEnergy
8893728eaf989a3b8bd2c1b3a8a1a5e6c4ce9c10
[ "Apache-2.0" ]
null
null
null
import torch as T import numpy as np from app.util.ML.constants import * DEVICE = T.device("cpu") GPU_ENABLED = False class DeviceMeterDataset(T.utils.data.Dataset): @staticmethod def createDatasets(device_id, mul_factor=1): allData = np.load(BASE_PATH + TRAIN_FOLDER + DEVICE_BASE_NAME + str(device_...
31.983333
112
0.625847
244
1,919
4.709016
0.368852
0.062663
0.034813
0.086162
0.160139
0.13577
0.13577
0.13577
0.13577
0.13577
0
0.024788
0.2642
1,919
59
113
32.525424
0.788952
0.042209
0
0.095238
0
0
0.016349
0
0
0
0
0
0
1
0.119048
false
0
0.071429
0.02381
0.309524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
417fc0767f9f3045bfabe98057d3d6ae8df77d25
59,087
py
Python
src/rgt/viz/Main.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
src/rgt/viz/Main.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
src/rgt/viz/Main.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
# Python Libraries from __future__ import division from __future__ import print_function import os import sys import time import getpass import argparse import datetime import matplotlib matplotlib.use('Agg', warn=False) from .boxplot import Boxplot from .lineplot import Lineplot from .jaccard_test import Jaccard fr...
66.764972
263
0.581803
6,795
59,087
4.966004
0.091685
0.053461
0.043119
0.047297
0.656176
0.62989
0.58849
0.519115
0.476944
0.452495
0
0.007264
0.261462
59,087
884
264
66.840498
0.766007
0.037995
0
0.309353
0
0.051799
0.318442
0.00543
0.002878
0
0
0
0
1
0.001439
false
0.005755
0.025899
0
0.027338
0.143885
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4180dd4796db00aa27180113a9c270adce7f7aee
8,390
py
Python
viz/uncertainty.py
WadhwaniAI/covid-modelling
db9f89bfbec392ad4de6b4583cfab7c3d823c1c9
[ "MIT" ]
3
2021-06-23T10:27:11.000Z
2022-02-09T07:50:42.000Z
viz/uncertainty.py
WadhwaniAI/covid-modelling
db9f89bfbec392ad4de6b4583cfab7c3d823c1c9
[ "MIT" ]
3
2021-06-23T09:36:29.000Z
2022-01-13T03:38:16.000Z
viz/uncertainty.py
WadhwaniAI/covid-modelling
db9f89bfbec392ad4de6b4583cfab7c3d823c1c9
[ "MIT" ]
null
null
null
import datetime from copy import copy from datetime import timedelta import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from adjustText import adjust_text from matplotlib.lines import Line2D from matplotlib.patches import Patch from utils.generic.enums import Columns from viz....
40.728155
104
0.586651
1,069
8,390
4.434986
0.213283
0.012656
0.016452
0.018561
0.325881
0.229066
0.166632
0.115587
0.094917
0.07973
0
0.018687
0.266508
8,390
205
105
40.926829
0.751706
0.00882
0
0.269006
0
0
0.109556
0
0
0
0
0
0
1
0.023392
false
0.005848
0.070175
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4186a83376db6719d09806172772089d522d0c98
12,828
py
Python
Game-TestHuman.py
brian1985/rl-wall-avoider
c6c5d87f3693bfd27f39a4015f361773bf219cd3
[ "MIT" ]
null
null
null
Game-TestHuman.py
brian1985/rl-wall-avoider
c6c5d87f3693bfd27f39a4015f361773bf219cd3
[ "MIT" ]
null
null
null
Game-TestHuman.py
brian1985/rl-wall-avoider
c6c5d87f3693bfd27f39a4015f361773bf219cd3
[ "MIT" ]
null
null
null
from random import randint, choice from collections import deque from time import sleep import pygame, time import numpy as np """ Code to use arduino as input import serial import re board = serial.Serial("/dev/ttyACM0") data = board.readline() data = data.decode() data = re.sub("[^0-9|]", "", data) xyz = data.spl...
41.514563
116
0.528687
1,590
12,828
4.138994
0.159748
0.032822
0.014891
0.017323
0.26774
0.198146
0.16183
0.144203
0.127944
0.116092
0
0.022829
0.323901
12,828
308
117
41.649351
0.735962
0.145385
0
0.17757
0
0
0.008123
0
0
0
0
0
0
1
0.060748
false
0.004673
0.023364
0
0.214953
0.037383
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4186fcc1ce90afaf587b5f5bd0c8099ee8a70d32
26,536
py
Python
backend/models_test.py
OmarThinks/PIM-API
b7259dd64b397844b26d5e190df5a8701be0ff85
[ "MIT" ]
null
null
null
backend/models_test.py
OmarThinks/PIM-API
b7259dd64b397844b26d5e190df5a8701be0ff85
[ "MIT" ]
null
null
null
backend/models_test.py
OmarThinks/PIM-API
b7259dd64b397844b26d5e190df5a8701be0ff85
[ "MIT" ]
null
null
null
import json import unittest from models import (NotReceived, validate_key, MyModel, Product,Category,ProductCategory, populate_tables, db_drop_and_create_all,get_dict,) #from app import create_app from __init__ import session unittest.TestLoader.sortTestMethodsUsing = None class modelsTestCase(unittest.TestCase): ...
28.021119
77
0.690496
3,831
26,536
4.568781
0.061864
0.110552
0.014398
0.021368
0.742273
0.684454
0.603668
0.531395
0.471691
0.437868
0
0.050464
0.134497
26,536
946
78
28.05074
0.71163
0.096096
0
0.494526
0
0
0.193759
0.012307
0
0
0
0
0.175182
1
0.109489
false
0.025547
0.007299
0
0.122263
0.136861
0
0
0
null
0
0
0
0
0
0
0
0
0
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
418a73ccd36a29573b20675d0e5a6f1331e0f75a
1,986
py
Python
jenskipper/cli/patch.py
flupke/jenskipper
bb3de3745142a5b1bf3df40409711ae74fdb07ea
[ "Apache-2.0" ]
4
2016-04-30T12:43:01.000Z
2016-12-02T17:42:47.000Z
jenskipper/cli/patch.py
Stupeflix/jenskipper
bb3de3745142a5b1bf3df40409711ae74fdb07ea
[ "Apache-2.0" ]
null
null
null
jenskipper/cli/patch.py
Stupeflix/jenskipper
bb3de3745142a5b1bf3df40409711ae74fdb07ea
[ "Apache-2.0" ]
null
null
null
import subprocess import click from .. import utils from .. import exceptions from .. import jenkins_api from . import decorators from . import diff @click.command() @decorators.repos_command @decorators.jobs_command(num_jobs=1) @decorators.handle_all_errors() @click.argument('fname', type=click.Path(exists=True, d...
35.464286
78
0.624371
253
1,986
4.790514
0.478261
0.041254
0.037129
0.021452
0
0
0
0
0
0
0
0.005533
0.271903
1,986
55
79
36.109091
0.832642
0.181772
0
0.054054
0
0
0.096855
0.014465
0
0
0
0
0
1
0.027027
false
0.027027
0.189189
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
418dbdc2ab0a6e83c7236c8b810a43bb21ee2351
2,783
py
Python
src/mykrobe/stats/stats.py
Phelimb/mykrobe-atlas-cli
866471d0c2d7030698d37f5c90fd232cafc261d5
[ "MIT" ]
1
2020-01-10T06:43:22.000Z
2020-01-10T06:43:22.000Z
src/mykrobe/stats/stats.py
Phelimb/mykrobe-atlas-cli
866471d0c2d7030698d37f5c90fd232cafc261d5
[ "MIT" ]
null
null
null
src/mykrobe/stats/stats.py
Phelimb/mykrobe-atlas-cli
866471d0c2d7030698d37f5c90fd232cafc261d5
[ "MIT" ]
null
null
null
from math import exp from math import factorial from math import log import logging logger = logging.getLogger(__name__) def percent_coverage_from_expected_coverage(coverage): # With low coverage we expect a lower percent of the sequence to be # coverage. return 1 - exp(-coverage) def log_lik_probabilit...
33.939024
106
0.684513
359
2,783
4.902507
0.192201
0.102273
0.081818
0.057955
0.488068
0.447727
0.320455
0.217045
0.170455
0.170455
0
0.008023
0.238591
2,783
81
107
34.358025
0.822558
0.224937
0
0.113208
0
0
0.029357
0
0
0
0
0
0.018868
1
0.150943
false
0
0.075472
0.056604
0.377358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
418fb24b012a503b2e7384627bb584b231c134f7
6,660
py
Python
keras/utils/losses_utils.py
PJmouraocs/keras
7a39b6c62d43c25472b2c2476bd2a8983ae4f682
[ "MIT" ]
259
2016-02-09T09:06:29.000Z
2021-07-29T05:27:40.000Z
keras/utils/losses_utils.py
PJmouraocs/keras
7a39b6c62d43c25472b2c2476bd2a8983ae4f682
[ "MIT" ]
50
2016-02-24T14:46:57.000Z
2020-01-20T07:34:19.000Z
keras/utils/losses_utils.py
PJmouraocs/keras
7a39b6c62d43c25472b2c2476bd2a8983ae4f682
[ "MIT" ]
94
2016-02-17T20:59:27.000Z
2021-04-19T08:18:16.000Z
"""Utilities related to losses.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from .. import backend as K class Reduction(object): """Types of loss reduction. Contains the following values: * `NONE`: Un-reduced weight...
37.206704
84
0.633333
893
6,660
4.5028
0.19037
0.107436
0.023875
0.031833
0.256155
0.201442
0.067645
0.040786
0.040786
0.040786
0
0.005237
0.283183
6,660
178
85
37.41573
0.837034
0.344144
0
0.152174
0
0
0.043956
0
0
0
0
0
0
1
0.076087
false
0
0.054348
0.01087
0.25
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4191ed02b99fe80f0d4118fb2e70bad9e2f6b771
18,531
py
Python
zeropdk/layout/waveguide_rounding.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
17
2019-08-22T15:55:50.000Z
2022-02-02T20:52:00.000Z
zeropdk/layout/waveguide_rounding.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
1
2020-09-29T00:43:38.000Z
2020-10-27T07:15:01.000Z
zeropdk/layout/waveguide_rounding.py
lightwave-lab/zeropdk
cc49eb1008c449185cf9dcdbb283ba086ebd8de0
[ "MIT" ]
3
2019-09-04T07:48:35.000Z
2021-06-16T09:39:42.000Z
""" Straight waveguide rounding algorithms""" from functools import lru_cache from math import atan2, tan, inf import numpy as np import klayout.db as kdb from zeropdk.layout.geometry import rotate, fix_angle, cross_prod from zeropdk.layout.algorithms.sampling import sample_function from zeropdk.layout.waveguides impor...
29.744783
128
0.585667
2,641
18,531
3.957592
0.159031
0.029659
0.004305
0.013395
0.237467
0.199101
0.153272
0.135668
0.128205
0.119786
0
0.035761
0.295289
18,531
622
129
29.792605
0.764607
0.162431
0
0.210396
0
0
0.032665
0.00449
0
0
0
0.001608
0.014851
1
0.084158
false
0.004951
0.032178
0.019802
0.220297
0.007426
0
0
0
null
0
0
0
0
0
0
0
0
0
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
419209cfa7ba87d275b63ba33aa6f02f592a320e
3,616
py
Python
PyHART_tutorial/05_device_specific_commands_for_DDS.py
wdehoog/PyHART
abe410e45d66710f65d5499165aab066c9ad9fa3
[ "MIT" ]
null
null
null
PyHART_tutorial/05_device_specific_commands_for_DDS.py
wdehoog/PyHART
abe410e45d66710f65d5499165aab066c9ad9fa3
[ "MIT" ]
null
null
null
PyHART_tutorial/05_device_specific_commands_for_DDS.py
wdehoog/PyHART
abe410e45d66710f65d5499165aab066c9ad9fa3
[ "MIT" ]
null
null
null
# # In this module is shown how to send a command to an HART device. # Encode/decode data, logging and manage responses codes. # ''' ------------------------------------------------------------------------------- SAME CODE OF EXAMPLE 01 - IGNORE THIS SECTION This is included to test the example -----------...
29.16129
97
0.555586
334
3,616
6.002994
0.45509
0.072319
0.097257
0.095761
0.167581
0.145636
0.145636
0.145636
0
0
0
0.022636
0.242533
3,616
123
98
29.398374
0.709383
0.268529
0
0.105263
0
0
0.082375
0
0
0
0
0
0
1
0
false
0
0.087719
0
0.087719
0.070175
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4192d1cec463e5f4665e763436ee29fbd56e053f
9,315
py
Python
productporter/product/views.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
10
2015-01-07T06:01:13.000Z
2021-02-14T09:11:10.000Z
productporter/product/views.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
3
2015-01-01T09:56:04.000Z
2015-01-06T01:34:44.000Z
productporter/product/views.py
kamidox/weixin_producthunt
24269da93e75374ee481b1b78257b18abda4d0c7
[ "BSD-3-Clause" ]
5
2015-01-01T10:31:50.000Z
2018-03-09T05:22:16.000Z
#!/bin/env python # -*- coding: utf-8 -*- """ productporter.product.views ~~~~~~~~~~~~~~~~~~~~~~~~~ product blueprint :copyright: (c) 2014 by the ProductPorter Team. :license: BSD, see LICENSE for more details. """ import datetime import json from flask import Blueprint, request, current_app, flas...
32.231834
95
0.615137
1,099
9,315
5.070974
0.196542
0.019379
0.017585
0.02243
0.362462
0.258748
0.219271
0.171541
0.164364
0.1274
0
0.004664
0.240365
9,315
288
96
32.34375
0.782928
0.122061
0
0.338164
0
0.004831
0.152599
0.013589
0
0
0
0
0
1
0.067633
false
0.004831
0.048309
0
0.217391
0.009662
0
0
0
null
0
0
0
0
0
0
0
0
0
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
419429d46af11923cde1d968263d403240c3dfee
2,241
py
Python
clintk/cat2vec/feature_selection.py
DITEP/db-cleansing
9a2360d45bc250b9b1ec73ba7efc2d14b3250c74
[ "MIT" ]
5
2019-04-19T05:45:20.000Z
2021-11-16T13:22:07.000Z
clintk/cat2vec/feature_selection.py
DITEP/db-cleansing
9a2360d45bc250b9b1ec73ba7efc2d14b3250c74
[ "MIT" ]
null
null
null
clintk/cat2vec/feature_selection.py
DITEP/db-cleansing
9a2360d45bc250b9b1ec73ba7efc2d14b3250c74
[ "MIT" ]
null
null
null
""" selects parameters with L1 logistic regression """ import pandas as pd from sklearn.base import BaseEstimator class LassoSelector(BaseEstimator): """ This class is made to be used after cat2vec.lasso_gridsearch since it selects the features from a dataframe that have the most weighted coefficient...
29.486842
77
0.604641
294
2,241
4.465986
0.37415
0.076161
0.063976
0.024372
0.054836
0
0
0
0
0
0
0.023154
0.286925
2,241
75
78
29.88
0.798498
0.551986
0
0
0
0
0.019925
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0.055556
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4197fe5fe8d16fcca6d82bcf73ee4d6614030b79
3,407
py
Python
src/onevision/nn/layer/padding.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/nn/layer/padding.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/nn/layer/padding.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Padding Layers. """ from __future__ import annotations import math from typing import Union import torch.nn.functional as F from torch import nn from torch import Tensor from onevision.factory import PADDING_LAYERS from onevision.type import Int2T __all__ = [ "...
29.885965
85
0.606692
441
3,407
4.537415
0.297052
0.084958
0.027986
0.029985
0.138931
0.067966
0.034983
0.034983
0.034983
0
0
0.019433
0.275022
3,407
113
86
30.150442
0.790688
0.221016
0
0.121212
0
0
0.040895
0
0
0
0
0
0
1
0.090909
false
0
0.121212
0
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
419b7fd6852c60efa1fd82faf32167dd58882039
236
py
Python
demo/use_pickle.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
demo/use_pickle.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
demo/use_pickle.py
1987539447/start-python
06ee5eb30e7395cd8432e8e33d7209fa855f4ad9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # FileName:use_pickle.py # -*- coding: utf-8 -*- """ 通过pickle序列化对象""" import pickle bob = dict(name='Bob', age=20, score=88) data = pickle.dumps(bob) print(data) re_bob = pickle.loads(data) print(re_bob)
11.8
40
0.661017
36
236
4.25
0.694444
0.065359
0
0
0
0
0
0
0
0
0
0.029851
0.148305
236
19
41
12.421053
0.731343
0.338983
0
0
0
0
0.021277
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
419d836e21b88898e0497e1625d6eddb5fed1199
5,349
py
Python
pycfmodel/model/cf_model.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
null
null
null
pycfmodel/model/cf_model.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
null
null
null
pycfmodel/model/cf_model.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
null
null
null
from datetime import date from typing import Any, ClassVar, Collection, Dict, List, Optional, Type, Union from pycfmodel.action_expander import expand_actions from pycfmodel.constants import AWS_NOVALUE from pycfmodel.model.base import CustomModel from pycfmodel.model.parameter import Parameter from pycfmodel.model.re...
39.043796
125
0.665919
602
5,349
5.815615
0.303987
0.021994
0.030848
0.015995
0.081691
0.051985
0.027992
0.027992
0.027992
0.027992
0
0.00442
0.238736
5,349
136
126
39.330882
0.855354
0.306786
0
0.057143
0
0
0.055572
0.00611
0
0
0
0
0
1
0.042857
false
0.028571
0.157143
0
0.414286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
419de91687fa41f1d418876dd9614a95ee81af4f
39,788
py
Python
nessus/scans.py
tharvik/nessus
4551c319ac6cb3026ddb096a0f6f71f060a578ab
[ "CC0-1.0" ]
null
null
null
nessus/scans.py
tharvik/nessus
4551c319ac6cb3026ddb096a0f6f71f060a578ab
[ "CC0-1.0" ]
null
null
null
nessus/scans.py
tharvik/nessus
4551c319ac6cb3026ddb096a0f6f71f060a578ab
[ "CC0-1.0" ]
null
null
null
""" sub modules for everything about the scans """ from enum import Enum from uuid import uuid4 from typing import Iterable, Mapping, Union, Optional, MutableMapping from nessus.base import LibNessusBase from nessus.editor import NessusTemplate from nessus.model import lying_exist, lying_type, Object, lying_exist_an...
41.970464
120
0.663894
4,298
39,788
5.905537
0.085621
0.064298
0.024703
0.022063
0.310299
0.237452
0.196793
0.169963
0.160586
0.158577
0
0.000462
0.238238
39,788
947
121
42.014784
0.836979
0.068111
0
0.290087
0
0
0.08506
0.026309
0
0
0
0.002112
0
1
0.091837
false
0
0.01312
0.002915
0.287172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a06f10c100f3cd38eb1a9e5dbb23f8546f5139
10,444
py
Python
panopticon/wme.py
scyrusm/panopticon
bb28deffb97fd7c983a5abb8c2626c24d9f25e48
[ "BSD-3-Clause" ]
3
2021-01-14T13:38:32.000Z
2021-09-07T12:18:48.000Z
panopticon/wme.py
scyrusm/panopticon
bb28deffb97fd7c983a5abb8c2626c24d9f25e48
[ "BSD-3-Clause" ]
null
null
null
panopticon/wme.py
scyrusm/panopticon
bb28deffb97fd7c983a5abb8c2626c24d9f25e48
[ "BSD-3-Clause" ]
2
2020-12-22T03:15:27.000Z
2020-12-22T03:16:50.000Z
""" wme.py ==================================== wme """ # second version import numpy as np from tqdm import tqdm import pandas as pd from scipy import stats from itertools import islice from scipy.sparse import coo_matrix, save_npz from panopticon.utilities import get_valid_gene_info def get_list_of_gene_windows(ge...
33.155556
203
0.578514
1,186
10,444
4.840641
0.215008
0.038321
0.029612
0.05034
0.127156
0.06201
0.048772
0.048772
0.035882
0
0
0.010108
0.317982
10,444
314
204
33.261147
0.795873
0.188051
0
0.110465
0
0
0.050192
0.003338
0
0
0
0
0
1
0.034884
false
0
0.05814
0
0.133721
0.005814
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a106d05012e4ff5dbc04ccdc03a0e70f7b8fee
4,669
py
Python
cogs/rr.py
D3monEmper0r/CA-Discord-Bot
1d38e00582cd0ea84af72a39daedc963256fd57a
[ "MIT" ]
null
null
null
cogs/rr.py
D3monEmper0r/CA-Discord-Bot
1d38e00582cd0ea84af72a39daedc963256fd57a
[ "MIT" ]
1
2021-03-26T15:41:07.000Z
2021-03-26T15:41:07.000Z
cogs/rr.py
D3monEmper0r/CA-Discord-Bot
1d38e00582cd0ea84af72a39daedc963256fd57a
[ "MIT" ]
null
null
null
##### Imports ##### import discord import sqlite3 from .__init__ import c from discord.ext import commands def create(db): conn = sqlite3.connect(db) c = conn.cursor() newDbTable = """CREATE TABLE IF NOT EXISTS reactionRole(role TEXT PRIMARY KEY, emote TEXT UNIQUE)""" c.execute(newDbTable) co...
31.126667
103
0.610409
603
4,669
4.643449
0.212272
0.042857
0.0325
0.03
0.604643
0.574643
0.544643
0.498929
0.457857
0.457857
0
0.008331
0.254444
4,669
150
104
31.126667
0.796036
0.012422
0
0.512821
0
0
0.12928
0
0
0
0.003512
0
0
1
0.059829
false
0
0.034188
0
0.102564
0.017094
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a3c225eedd6acf9dfa7630da6b90b21ff018d4
18,539
py
Python
python/erdos/__init__.py
objorkman/erdos
13b3be477d6674e9e377a56dec484f80ba41e915
[ "Apache-2.0" ]
null
null
null
python/erdos/__init__.py
objorkman/erdos
13b3be477d6674e9e377a56dec484f80ba41e915
[ "Apache-2.0" ]
null
null
null
python/erdos/__init__.py
objorkman/erdos
13b3be477d6674e9e377a56dec484f80ba41e915
[ "Apache-2.0" ]
null
null
null
import logging import multiprocessing as mp import signal import sys from functools import wraps from typing import Optional, Tuple, Type import erdos.context import erdos.internal as _internal import erdos.operator import erdos.utils from erdos.message import Message, WatermarkMessage from erdos.profile import Profil...
34.847744
87
0.663089
2,358
18,539
5.000848
0.126378
0.022388
0.023745
0.017809
0.654003
0.629834
0.572676
0.538755
0.520353
0.490926
0
0.004936
0.246022
18,539
531
88
34.913371
0.838675
0.349426
0
0.348684
0
0.003289
0.14256
0.016302
0
0
0
0.001883
0
1
0.055921
false
0
0.046053
0.003289
0.134868
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a3f81d4c1f4c13d941abba84f2c1450266e8a1
7,951
py
Python
compyler/node.py
Fogelman/compyler
76c6ba12f264131b6a5d800dd40bb76fe3155900
[ "MIT" ]
null
null
null
compyler/node.py
Fogelman/compyler
76c6ba12f264131b6a5d800dd40bb76fe3155900
[ "MIT" ]
null
null
null
compyler/node.py
Fogelman/compyler
76c6ba12f264131b6a5d800dd40bb76fe3155900
[ "MIT" ]
null
null
null
from llvmlite import ir from rply.token import BaseBox from abc import ABC, abstractmethod import operator as op from compyler.symboltable import FunctionSymbol, SymbolTable class Node(BaseBox, ABC): def __init__(self, value, children=None): self.value = value self.children = children i...
30.003774
127
0.599673
973
7,951
4.840699
0.169579
0.013588
0.059448
0.074735
0.392994
0.303822
0.244586
0.213163
0.171975
0.140552
0
0.010604
0.264621
7,951
264
128
30.117424
0.794938
0.011319
0
0.169399
0
0
0.045837
0
0
0
0
0
0
1
0.125683
false
0.010929
0.027322
0.021858
0.338798
0.027322
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a41dfe04ba1695c5ba79a312ffef30febd8cc6
2,617
py
Python
tests/test_gnmi.py
dmulyalin/nornir-salt
184002995515dddc802b578400370c2219e94957
[ "MIT" ]
5
2021-01-22T09:34:55.000Z
2021-12-22T08:12:34.000Z
tests/test_gnmi.py
dmulyalin/nornir-salt
184002995515dddc802b578400370c2219e94957
[ "MIT" ]
2
2022-01-27T14:46:40.000Z
2022-02-28T16:59:01.000Z
tests/test_gnmi.py
dmulyalin/nornir-salt
184002995515dddc802b578400370c2219e94957
[ "MIT" ]
1
2021-01-10T04:37:08.000Z
2021-01-10T04:37:08.000Z
""" At the moment this does not tests apat from testing import of PyGNMI library and gNMI connecton and task plugins. Was not able to find always-on endpoints that can test using gNMI, Cisco sandboxes has gRPC API available but that is different. """ import sys import pprint import logging import yaml import pytest im...
25.910891
91
0.680168
313
2,617
5.466454
0.41853
0.046756
0.07481
0.084161
0.19813
0.106955
0.074226
0.074226
0.051432
0
0
0.008996
0.192969
2,617
100
92
26.17
0.801136
0.173481
0
0.028571
0
0
0.22321
0.048198
0
0
0
0
0
1
0.028571
false
0.028571
0.185714
0
0.228571
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a614b41c6ed87485f48e036058ce573a7b945d
690
py
Python
src/tests/benchmarks/tools/bench/AnTuTu6.py
VirtualVFix/AndroidTestFramework
1feb769c6aca39a78e6daefd6face0a1e4d62cd4
[ "MIT" ]
null
null
null
src/tests/benchmarks/tools/bench/AnTuTu6.py
VirtualVFix/AndroidTestFramework
1feb769c6aca39a78e6daefd6face0a1e4d62cd4
[ "MIT" ]
null
null
null
src/tests/benchmarks/tools/bench/AnTuTu6.py
VirtualVFix/AndroidTestFramework
1feb769c6aca39a78e6daefd6face0a1e4d62cd4
[ "MIT" ]
null
null
null
# All rights reserved by forest fairy. # You cannot modify or share anything without sacrifice. # If you don't agree, keep calm and don't look at code bellow! __author__ = "VirtualV <https://github.com/virtualvfix>" __date__ = "$Apr 12, 2014 4:40:25 PM$" import ast from tests.benchmarks.tools.base import App class ...
31.363636
66
0.665217
97
690
4.474227
0.731959
0.041475
0.082949
0.110599
0
0
0
0
0
0
0
0.023853
0.210145
690
21
67
32.857143
0.772477
0.236232
0
0
0
0
0.131274
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a6d2898476c90a1f687ee05cacf8a8f146ec52
1,496
py
Python
osc_bge/users/admin.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
osc_bge/users/admin.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
5
2020-06-05T19:49:47.000Z
2021-09-08T00:50:55.000Z
osc_bge/users/admin.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from osc_bge.users.forms import UserChangeForm, UserCreationForm from . import models User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = Us...
22
103
0.681818
144
1,496
6.951389
0.347222
0.090909
0.113886
0.155844
0.273726
0.243756
0
0
0
0
0
0
0.198529
1,496
67
104
22.328358
0.834862
0
0
0.32
0
0
0.093583
0
0
0
0
0
0
1
0
false
0
0.1
0
0.46
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a79266ccd514b38d38bed6f38f0c721bb4fe9e
3,949
py
Python
scripts/ros_tensorflow_classify.py
xuanlvxin/blog_backup
691c040efe4d752b4c4badbdd5dd78960ed966e2
[ "Apache-2.0" ]
45
2018-05-13T01:55:40.000Z
2022-03-28T15:20:48.000Z
scripts/ros_tensorflow_classify.py
xuanlvxin/blog_backup
691c040efe4d752b4c4badbdd5dd78960ed966e2
[ "Apache-2.0" ]
1
2018-06-06T10:39:02.000Z
2018-09-05T01:52:19.000Z
scripts/ros_tensorflow_classify.py
xuanlvxin/blog_backup
691c040efe4d752b4c4badbdd5dd78960ed966e2
[ "Apache-2.0" ]
17
2018-05-14T12:17:57.000Z
2020-03-29T09:41:07.000Z
#!/usr/bin/env python import rospy from sensor_msgs.msg import Image from std_msgs.msg import String from cv_bridge import CvBridge import cv2 import numpy as np import tensorflow as tf import os import re class RosTensorFlow(): def __init__(self): self._session = tf.Session() self._cv_bri...
37.971154
100
0.640669
541
3,949
4.35305
0.286506
0.033121
0.023779
0.014013
0.152866
0.101911
0.061147
0.061147
0.03482
0.03482
0
0.008144
0.253735
3,949
103
101
38.339806
0.790974
0.068625
0
0
0
0
0.117375
0.058279
0
0
0
0
0
1
0.051948
false
0
0.12987
0
0.207792
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a7a2ca9d0dcc0caead7e8e09caea9c36c46387
3,075
py
Python
python/v1/generate_default_line_item.py
googleads/googleads-displayvideo-examples
cd1b4b3bc63e068fef4ff23264232a65f70207b5
[ "Apache-2.0" ]
2
2021-10-08T12:10:38.000Z
2022-01-23T16:00:12.000Z
python/v1/generate_default_line_item.py
googleads/googleads-displayvideo-examples
cd1b4b3bc63e068fef4ff23264232a65f70207b5
[ "Apache-2.0" ]
1
2021-04-09T16:34:06.000Z
2021-04-12T14:42:00.000Z
python/v1/generate_default_line_item.py
googleads/googleads-displayvideo-examples
cd1b4b3bc63e068fef4ff23264232a65f70207b5
[ "Apache-2.0" ]
4
2021-05-20T17:55:54.000Z
2022-02-10T14:13:40.000Z
#!/usr/bin/python # # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
33.791209
99
0.744715
446
3,075
4.964126
0.363229
0.083108
0.04336
0.036134
0.242096
0.217706
0.172538
0.079494
0.079494
0.079494
0
0.004706
0.170732
3,075
90
100
34.166667
0.863529
0.355772
0
0.155556
0
0
0.369365
0.08248
0
0
0
0
0
1
0.022222
false
0
0.111111
0
0.133333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41a92c8d5a10768f359c0ce9e4aa075658259077
3,897
py
Python
datacombine/tests/test_models.py
Crimson-Star-Software/data-combine
3209ae2316afc38417e51c3261494d6e7d2e4e2a
[ "MIT" ]
null
null
null
datacombine/tests/test_models.py
Crimson-Star-Software/data-combine
3209ae2316afc38417e51c3261494d6e7d2e4e2a
[ "MIT" ]
3
2020-02-11T23:14:53.000Z
2021-06-10T18:32:57.000Z
datacombine/tests/test_models.py
Crimson-Star-Software/data-combine
3209ae2316afc38417e51c3261494d6e7d2e4e2a
[ "MIT" ]
null
null
null
from django.test import TestCase from datacombine import models as dcmodels from collections import namedtuple from django.core.exceptions import FieldError import re Match = namedtuple("Match", ["object", "regex", "match"]) class PhoneTestCase(TestCase): def setUp(self): dcmodels.Phone.objects.create(a...
36.083333
74
0.628689
501
3,897
4.664671
0.255489
0.105691
0.08344
0.073171
0.560548
0.547711
0.500214
0.482242
0.482242
0.482242
0
0.079037
0.243521
3,897
107
75
36.420561
0.713704
0
0
0.303371
0
0
0.098794
0.015396
0
0
0
0
0.123596
1
0.157303
false
0
0.05618
0
0.235955
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
41a9a2d818ad02b61cfd18575ed9cdd4ecccdb57
36,453
py
Python
Capture the Flag/FirstRound.py
yokesh-git/Quiz-Application
2b990ee9f711d05956e76ade0550bfa1abd86b08
[ "MIT" ]
null
null
null
Capture the Flag/FirstRound.py
yokesh-git/Quiz-Application
2b990ee9f711d05956e76ade0550bfa1abd86b08
[ "MIT" ]
null
null
null
Capture the Flag/FirstRound.py
yokesh-git/Quiz-Application
2b990ee9f711d05956e76ade0550bfa1abd86b08
[ "MIT" ]
null
null
null
from tkinter import * from firebase import firebase from PIL import Image, ImageTk fbconn = firebase.FirebaseApplication('https://samplefbtest-266bd.firebaseio.com/',None) global crtans crtans = 0 class FirstRound: print("Done") def __init__(self, master): global w,h,ws,hs,x,y ...
37.853583
206
0.555373
4,576
36,453
4.391827
0.097028
0.039409
0.075633
0.039807
0.627457
0.341942
0.215704
0.157038
0.147435
0.133254
0
0.086289
0.297726
36,453
962
207
37.892931
0.69875
0.016213
0
0.313187
0
0.006868
0.108442
0
0
0
0
0
0
1
0.06044
false
0
0.004121
0
0.065934
0.04533
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41a9d57be733f7ec06133940f72c9adc60cb07fd
2,491
py
Python
swap.py
garrettkatz/ghu
2bf25ac6f8e82d3e7231c3381f7a4946db6dc59f
[ "MIT" ]
null
null
null
swap.py
garrettkatz/ghu
2bf25ac6f8e82d3e7231c3381f7a4946db6dc59f
[ "MIT" ]
null
null
null
swap.py
garrettkatz/ghu
2bf25ac6f8e82d3e7231c3381f7a4946db6dc59f
[ "MIT" ]
null
null
null
""" Swap input (rinp) on output (rout) with one extra registers (rtmp) """ import numpy as np import torch as tr import matplotlib.pyplot as pt from ghu import * from codec import Codec from controller import Controller from lvd import lvd from reinforce import reinforce if __name__ == "__main__": print("*********...
30.753086
83
0.608591
316
2,491
4.664557
0.439873
0.033921
0.024423
0.028494
0
0
0
0
0
0
0
0.02603
0.259735
2,491
80
84
31.1375
0.773319
0.140506
0
0
0
0
0.055111
0.025907
0
0
0
0
0
1
0.033898
false
0
0.135593
0
0.20339
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41aa2d6b40a21820a8c6f0096cf82ccb5a78479c
1,103
py
Python
face-alignment.py
binhmuc/faced
cbc18f552da9c53628d61d56de7dfda451a6e25f
[ "MIT" ]
null
null
null
face-alignment.py
binhmuc/faced
cbc18f552da9c53628d61d56de7dfda451a6e25f
[ "MIT" ]
null
null
null
face-alignment.py
binhmuc/faced
cbc18f552da9c53628d61d56de7dfda451a6e25f
[ "MIT" ]
null
null
null
import face_alignment from skimage import io import cv2 from skimage import img_as_float from skimage import io import matplotlib.pyplot as plt from faced import FaceDetector from faced.utils import annotate_image import time fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, face_detector='...
23.978261
94
0.664551
170
1,103
4.188235
0.464706
0.05618
0.071629
0.053371
0.070225
0
0
0
0
0
0
0.057239
0.192203
1,103
45
95
24.511111
0.741863
0.030825
0
0.111111
0
0
0.019608
0
0
0
0
0
0
1
0.027778
false
0
0.25
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41ac00fd9043a9b17ba6e49efc0299f2d40364b0
847
py
Python
tests/test_fingers/test_theme/test_models.py
sonirico/wpoke
be193a41159dabf912d793eb5a6ebf2f0e9440bb
[ "MIT" ]
4
2019-08-19T12:32:40.000Z
2019-10-25T20:57:29.000Z
tests/test_fingers/test_theme/test_models.py
sonirico/wpoke
be193a41159dabf912d793eb5a6ebf2f0e9440bb
[ "MIT" ]
15
2019-07-15T18:30:43.000Z
2020-09-25T08:10:05.000Z
tests/test_fingers/test_theme/test_models.py
sonirico/wpoke
be193a41159dabf912d793eb5a6ebf2f0e9440bb
[ "MIT" ]
null
null
null
import unittest from wpoke.fingers.theme.models import WPThemeMetadata from wpoke.fingers.theme.serializers import WPThemeMetadataSerializer class TestWPThemeMetadata(unittest.TestCase): def test_serialize_empty_values(self): wp_metadata_model = WPThemeMetadata() serializer = WPThemeMetadataSeria...
35.291667
88
0.747344
85
847
7.188235
0.423529
0.081833
0.12275
0.06874
0.369885
0.258592
0.258592
0.258592
0.258592
0.258592
0
0
0.168831
847
23
89
36.826087
0.867898
0
0
0.375
0
0
0.085006
0
0
0
0
0
0.1875
1
0.125
false
0
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41ae040201f6c28a176e8746c32a9793421e405a
2,989
py
Python
src/Config.py
albertomn86/Weather-Station-Receiver
53745e51e8227ab40ced665ec0083bfd62a951da
[ "Apache-2.0" ]
1
2020-01-13T20:56:49.000Z
2020-01-13T20:56:49.000Z
src/Config.py
albertomn86/Weather-Station-Receiver
53745e51e8227ab40ced665ec0083bfd62a951da
[ "Apache-2.0" ]
null
null
null
src/Config.py
albertomn86/Weather-Station-Receiver
53745e51e8227ab40ced665ec0083bfd62a951da
[ "Apache-2.0" ]
null
null
null
from yaml import safe_load, YAMLError from os import path from src.Device import Device from typing import Any, Optional class Config(object): def __init__(self, file: str): if not path.exists(file): raise FileNotFoundError(f"Config file not found: {file}") with open(file, 'r') as s...
31.797872
76
0.636333
354
2,989
5.031073
0.214689
0.039304
0.020213
0.029197
0.113419
0.086468
0.051656
0.051656
0
0
0
0.000465
0.280027
2,989
93
77
32.139785
0.827138
0
0
0.042254
0
0
0.060555
0
0
0
0
0
0
1
0.140845
false
0.014085
0.056338
0.084507
0.352113
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41af722e2abcb956634da9556cf5120ca6d46ddf
6,316
py
Python
cwVQ.py
USC-MCL/Func-Pool
20c43df0eb2da68d8d2e01c03d66a1a4e4e06081
[ "MIT" ]
3
2020-01-24T19:03:44.000Z
2021-04-13T17:22:36.000Z
cwVQ.py
USC-MCL/Func-Pool
20c43df0eb2da68d8d2e01c03d66a1a4e4e06081
[ "MIT" ]
null
null
null
cwVQ.py
USC-MCL/Func-Pool
20c43df0eb2da68d8d2e01c03d66a1a4e4e06081
[ "MIT" ]
3
2020-01-24T19:03:45.000Z
2020-04-13T08:27:13.000Z
# 2020.10.19 # @yifan # channel-wise VQ # input is asumed to be DCT/PCA coefficients # import numpy as np from sklearn import cluster import copy from skimage.metrics import mean_squared_error from sklearn.metrics.pairwise import euclidean_distances from myPCA import myPCA from util import * def check_mse(X, km, PSNR_...
33.417989
131
0.528816
957
6,316
3.375131
0.174504
0.029721
0.03065
0.018576
0.501858
0.466873
0.460681
0.419505
0.381115
0.345511
0
0.036128
0.316339
6,316
188
132
33.595745
0.711904
0.028024
0
0.439759
0
0
0.088922
0.009626
0
0
0
0
0.012048
1
0.126506
false
0
0.060241
0.012048
0.295181
0.060241
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41b1d06924eae19655ba9eb1faf5d08b5dbcc871
2,384
py
Python
polsalt/scrunch1d.py
Richard-Tarbell/polsalt
e953985ffbc786fd071d0b48ebca5bd1dac9a960
[ "BSD-3-Clause" ]
1
2017-09-22T17:04:06.000Z
2017-09-22T17:04:06.000Z
polsalt/scrunch1d.py
Richard-Tarbell/polsalt
e953985ffbc786fd071d0b48ebca5bd1dac9a960
[ "BSD-3-Clause" ]
14
2015-12-22T17:56:38.000Z
2021-07-30T15:36:23.000Z
polsalt/scrunch1d.py
Richard-Tarbell/polsalt
e953985ffbc786fd071d0b48ebca5bd1dac9a960
[ "BSD-3-Clause" ]
12
2015-12-21T15:12:44.000Z
2021-08-12T18:58:12.000Z
#! /usr/bin/env python # Resample data into new bins, preserving flux # New version 150912, much faster # New version 170504, fixed case where output bin coverage is larger than input bin coverage # New version 170909, again fixed case where output bin coverage is larger than input bin coverage import os, sys, time, ...
40.40678
98
0.622903
411
2,384
3.472019
0.294404
0.019622
0.044149
0.029432
0.167484
0.148563
0.110722
0.082691
0.082691
0.082691
0
0.046088
0.217282
2,384
58
99
41.103448
0.71865
0.362836
0
0
0
0
0.018629
0
0
0
0
0
0
1
0.029412
false
0
0.058824
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41b47d2a2fab71fffa7fa7dc8edb5358a58ea4bf
1,686
py
Python
neutron_fwaas/tests/unit/cmd/upgrade_checks/test_checks.py
sapcc/neutron-fwaas
59bad17387d15f86ea7d08f8675208160a999ffe
[ "Apache-2.0" ]
null
null
null
neutron_fwaas/tests/unit/cmd/upgrade_checks/test_checks.py
sapcc/neutron-fwaas
59bad17387d15f86ea7d08f8675208160a999ffe
[ "Apache-2.0" ]
null
null
null
neutron_fwaas/tests/unit/cmd/upgrade_checks/test_checks.py
sapcc/neutron-fwaas
59bad17387d15f86ea7d08f8675208160a999ffe
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.87234
75
0.707592
228
1,686
5.078947
0.47807
0.051813
0.041451
0.027634
0.195164
0.162349
0.107081
0.107081
0.107081
0.107081
0
0.011128
0.200475
1,686
46
76
36.652174
0.847923
0.326216
0
0.08
0
0
0.099822
0.052585
0
0
0
0
0.12
1
0.16
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41b838c1916c793c834d6840367d6af260c3208a
4,822
py
Python
licensegh/licensegh.py
sauljabin/licensegh
01dad5a8934869423feb9bc59854631ab1cb6e08
[ "MIT" ]
null
null
null
licensegh/licensegh.py
sauljabin/licensegh
01dad5a8934869423feb9bc59854631ab1cb6e08
[ "MIT" ]
null
null
null
licensegh/licensegh.py
sauljabin/licensegh
01dad5a8934869423feb9bc59854631ab1cb6e08
[ "MIT" ]
null
null
null
import os import re import shutil import git import yaml from rich import box from rich.console import Console from rich.prompt import Prompt from rich.table import Table class Licensegh: def __init__(self): self.repository = TemplatesRepository() self.licenses = [] def init(self): s...
29.950311
85
0.562837
549
4,822
4.812386
0.218579
0.037472
0.020818
0.039364
0.236563
0.202498
0.202498
0.202498
0.173732
0.173732
0
0.002708
0.310659
4,822
160
86
30.1375
0.792118
0
0
0.193798
0
0
0.094981
0.021775
0
0
0
0
0
1
0.131783
false
0
0.069767
0.007752
0.232558
0.124031
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41bb07f1d7bec345e20d3accf21f60a21b94cceb
192
py
Python
ABC104/ABC104a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
ABC104/ABC104a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
ABC104/ABC104a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
# ABC104a import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) r = int(input()) if r < 1200: print('ABC') exit(0) if r < 2800: print('ARC') exit(0) print('AGC')
13.714286
28
0.609375
30
192
3.9
0.666667
0.051282
0
0
0
0
0
0
0
0
0
0.10596
0.213542
192
13
29
14.769231
0.668874
0.036458
0
0.181818
0
0
0.04918
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41be27ee6f0699ebf633e908194ed90a7940707d
13,708
py
Python
low_level_simulation/src/path_utilities/src/simulation_util.py
abiantorres/autonomous-vehicles-system-simulation
3f0112036b2b270f5055729c648a1310976df933
[ "Apache-2.0" ]
null
null
null
low_level_simulation/src/path_utilities/src/simulation_util.py
abiantorres/autonomous-vehicles-system-simulation
3f0112036b2b270f5055729c648a1310976df933
[ "Apache-2.0" ]
null
null
null
low_level_simulation/src/path_utilities/src/simulation_util.py
abiantorres/autonomous-vehicles-system-simulation
3f0112036b2b270f5055729c648a1310976df933
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rosbag, rospy, actionlib, time, sys, csv, rospkg, re, os from gazebo_msgs.msg import ModelState from std_msgs.msg import Empty from std_srvs.srv import Empty from gazebo_msgs.srv import SetModelState from geometry_msgs.msg import PoseArray from move_base_msgs.msg import MoveBaseAction, Mov...
55.723577
170
0.619273
1,537
13,708
5.251139
0.1581
0.05687
0.048445
0.041878
0.424731
0.322637
0.270103
0.220047
0.187337
0.147937
0
0.005444
0.276408
13,708
245
171
55.95102
0.808247
0.070032
0
0.223881
0
0
0.126747
0.015636
0
0
0
0
0
1
0.034826
false
0
0.069652
0
0.114428
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41c495323f09d70b9547788b90e0defddbe36bbc
2,371
py
Python
plugins/intern/markov.py
rbracken/internbot
58b802e0dd7597ace12acd9342bb938e2f33c25d
[ "BSD-2-Clause" ]
1
2016-09-24T16:00:06.000Z
2016-09-24T16:00:06.000Z
plugins/intern/markov.py
rbracken/internbot
58b802e0dd7597ace12acd9342bb938e2f33c25d
[ "BSD-2-Clause" ]
null
null
null
plugins/intern/markov.py
rbracken/internbot
58b802e0dd7597ace12acd9342bb938e2f33c25d
[ "BSD-2-Clause" ]
null
null
null
import random """ Credits for this code go to Shabda Raaj, pulled from the article 'Generating pseudo-random text with Markov chains using Python', which can be found at: http://agiliq.com/blog/2009/06/generating-pseudo-random-text-with-markov-chains-u/ """ class Markov(object): def __init__(self, op...
32.040541
90
0.557992
325
2,371
3.944615
0.298462
0.077223
0.065523
0.049922
0.359594
0.359594
0.359594
0.294072
0.265991
0.265991
0
0.033022
0.32307
2,371
73
91
32.479452
0.765732
0.061999
0
0.365385
0
0
0.001042
0
0
0
0
0
0
1
0.115385
false
0
0.019231
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
41c53301d55d3133fde81eb12b2a9be32599efe5
3,590
py
Python
isee/infrastructure/mdengine.py
team-mayes/isEE
c22d7cc78a43f0c0a7b2ec18fbc3b628ddef8d54
[ "BSD-3-Clause" ]
null
null
null
isee/infrastructure/mdengine.py
team-mayes/isEE
c22d7cc78a43f0c0a7b2ec18fbc3b628ddef8d54
[ "BSD-3-Clause" ]
1
2021-09-17T18:20:36.000Z
2021-10-06T16:56:34.000Z
isee/infrastructure/mdengine.py
team-mayes/isEE
c22d7cc78a43f0c0a7b2ec18fbc3b628ddef8d54
[ "BSD-3-Clause" ]
null
null
null
""" Interface for MDEngine objects. New MDEngines can be implemented by constructing a new class that inherits from MDEngine and implements its abstract methods. """ import abc import os import pytraj import mdtraj class MDEngine(abc.ABC): """ Abstract base class for molecular dynamics engines. Implement...
39.888889
145
0.618106
443
3,590
4.918736
0.34763
0.041303
0.057825
0.022028
0.267095
0.251492
0.251492
0.216613
0.216613
0.216613
0
0.009204
0.3039
3,590
89
146
40.337079
0.862745
0.372145
0
0.304348
0
0
0.118015
0
0
0
0
0
0.021739
1
0.043478
false
0.021739
0.086957
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41c87d04befa3b08aff049a14265e8461d8d9c45
2,181
py
Python
rubikscubennnsolver/combinatorial.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
59
2017-04-29T15:19:29.000Z
2022-03-18T22:17:20.000Z
rubikscubennnsolver/combinatorial.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
44
2017-05-25T00:05:31.000Z
2022-03-23T22:39:34.000Z
rubikscubennnsolver/combinatorial.py
dwalton76/rubiks-cube-NxNxN-solver
db42aeacca81366dba87ef475274ffb99645193d
[ "MIT" ]
19
2017-06-17T00:32:47.000Z
2021-12-18T00:03:56.000Z
""" https://en.wikipedia.org/wiki/Combinatorial_number_system The code below is no longer used but am saving it for a rainy day """ # standard libraries import math from typing import List def choose(a: int, b: int) -> int: """ >>> choose(23, 8) 490314 >>> choose(9, 6) 84 >>> choose(8, 5) ...
15.919708
79
0.497478
307
2,181
3.403909
0.289902
0.073684
0.063158
0.015311
0.076555
0.03445
0.03445
0.03445
0
0
0
0.069156
0.337001
2,181
136
80
16.036765
0.653527
0.339752
0
0.204545
0
0
0.007353
0
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
41c9205a05089b2cfa8d6a14c30a8d7f603ca089
835
py
Python
assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py
jcdiv47/geekbang-algorithms
38dae85aeadb684b2c44945bd07a32cdede4ad5a
[ "MIT" ]
null
null
null
""" Leetcode(https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ )""" # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def bui...
29.821429
97
0.603593
108
835
4.555556
0.388889
0.113821
0.065041
0.073171
0.089431
0.089431
0
0
0
0
0
0.01495
0.279042
835
27
98
30.925926
0.802326
0.208383
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
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
41cb04f14dbe73f40c68a5e989b2ab363ee6874c
3,415
py
Python
tiddlywebplugins/tiddlyspace/template.py
TiddlySpace/tiddlyspace
5f2139340d2d9e3a37068b5c58ecb2e599d798b8
[ "BSD-3-Clause" ]
32
2015-01-04T10:54:29.000Z
2022-01-22T16:45:24.000Z
tiddlywebplugins/tiddlyspace/template.py
TiddlySpace/tiddlyspace
5f2139340d2d9e3a37068b5c58ecb2e599d798b8
[ "BSD-3-Clause" ]
4
2016-12-08T14:04:26.000Z
2018-02-20T10:23:33.000Z
tiddlywebplugins/tiddlyspace/template.py
TiddlySpace/tiddlyspace
5f2139340d2d9e3a37068b5c58ecb2e599d798b8
[ "BSD-3-Clause" ]
14
2015-01-19T23:18:20.000Z
2021-06-22T01:10:08.000Z
""" Send a template with some default data. """ from jinja2 import TemplateNotFound from tiddlywebplugins.virtualhosting import original_server_host_url from tiddlyweb import control from tiddlyweb.model.tiddler import Tiddler from tiddlyweb.model.recipe import Recipe from tiddlyweb.store import StoreError from tidd...
38.370787
78
0.585652
324
3,415
5.935185
0.271605
0.054602
0.056162
0.042122
0.075923
0.075923
0
0
0
0
0
0.000886
0.339092
3,415
88
79
38.806818
0.85113
0.037775
0
0.185714
0
0
0.086424
0.032485
0
0
0
0
0
1
0.014286
false
0.028571
0.128571
0
0.157143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
41cb1605a676dad204255fde9474a9b324ee8353
588
py
Python
test.py
yanzhenxing123/illegal_fund_raising_forecast
dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64
[ "Apache-2.0" ]
null
null
null
test.py
yanzhenxing123/illegal_fund_raising_forecast
dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64
[ "Apache-2.0" ]
null
null
null
test.py
yanzhenxing123/illegal_fund_raising_forecast
dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64
[ "Apache-2.0" ]
null
null
null
""" @Author: yanzx @Date: 2021-08-10 09:27:55 @Desc: """ import time li = [str(i) + "闫振兴" for i in range(1000000)] li_s = set(li) start_time1 = time.time() if "100000闫振兴" in li: print(time.time() - start_time1) start_time2 = time.time() if "100000闫振兴" in li_s: print(time.time() - start_time2) import ...
14
59
0.664966
99
588
3.828283
0.525253
0.084433
0.05277
0.100264
0.121372
0.121372
0
0
0
0
0
0.081466
0.164966
588
41
60
14.341463
0.690428
0.134354
0
0
0
0
0.080483
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
68b72c53435e9aa9b4922a013905036e51730503
7,953
py
Python
mispro/mispro.py
dzubke/speech-lite
65f83ac2b7551650820f079ce5152741f2a6fdb8
[ "Apache-2.0" ]
null
null
null
mispro/mispro.py
dzubke/speech-lite
65f83ac2b7551650820f079ce5152741f2a6fdb8
[ "Apache-2.0" ]
null
null
null
mispro/mispro.py
dzubke/speech-lite
65f83ac2b7551650820f079ce5152741f2a6fdb8
[ "Apache-2.0" ]
null
null
null
# these functions help to detect mispronunciations using editops # # # standard libs import argparse # third-party libs import Levenshtein as lev # local libs from speech.utils.data_helpers import path_to_id from speech.utils.io import read_data_json def main(hypo_path:str, tgt_path:str, eval_phn_path:str): """T...
36.481651
108
0.592355
1,145
7,953
3.868996
0.215721
0.034763
0.036117
0.047404
0.365463
0.307223
0.24763
0.228217
0.196388
0.145824
0
0.021439
0.307934
7,953
217
109
36.64977
0.78343
0.222306
0
0.276119
0
0
0.129801
0
0
0
0
0
0
1
0.052239
false
0
0.029851
0
0.11194
0.156716
0
0
0
null
0
0
0
0
0
0
0
0
0
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
68b8f74ca63a7bf7763bdfc88965696eef401268
1,980
py
Python
pipelines/utils/conv_to_json.py
cds-mipt/HPointLoc
b346c10928939ddc1fe5840aef5085418e3aa0ad
[ "MIT" ]
2
2021-05-30T04:04:51.000Z
2022-02-21T09:11:27.000Z
pipelines/utils/conv_to_json.py
cds-mipt/HPointLoc
b346c10928939ddc1fe5840aef5085418e3aa0ad
[ "MIT" ]
null
null
null
pipelines/utils/conv_to_json.py
cds-mipt/HPointLoc
b346c10928939ddc1fe5840aef5085418e3aa0ad
[ "MIT" ]
null
null
null
from tqdm import tqdm import h5py from os.path import join import os import numpy as np from pathlib import Path import json import numpy as np MAXDEPTH = 10 def conv_to_json(dataset_root, path_to_npz_folder, output_dir): root_datasets = Path(dataset_root).parent dataset_path = join(root_datasets, 'HPointLoc...
36.666667
84
0.609596
306
1,980
3.607843
0.25817
0.038043
0.043478
0.047101
0.067029
0.027174
0
0
0
0
0
0.015509
0.25101
1,980
53
85
37.358491
0.728928
0
0
0.047619
0
0
0.060606
0
0
0
0
0
0
1
0.02381
false
0
0.190476
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
68b9f1d61e16d200b4bd96fbc017a9c896eef126
1,020
py
Python
tests/test_settings.py
nerdoc/django-unicorn
e512b8f64f5c276a78127db9a05d9d5c042232d5
[ "MIT" ]
1
2021-12-21T16:20:49.000Z
2021-12-21T16:20:49.000Z
tests/test_settings.py
teury/django-unicorn
5e9142b8a7e13b862ece419d567e805cc783b517
[ "MIT" ]
null
null
null
tests/test_settings.py
teury/django-unicorn
5e9142b8a7e13b862ece419d567e805cc783b517
[ "MIT" ]
1
2022-02-10T07:47:01.000Z
2022-02-10T07:47:01.000Z
from django_unicorn.settings import get_cache_alias, get_serial_enabled, get_settings def test_settings_cache_alias(settings): settings.UNICORN["CACHE_ALIAS"] = "unicorn_cache" expected = "unicorn_cache" actual = get_cache_alias() assert expected == actual def test_settings_legacy(settings): se...
29.142857
85
0.721569
120
1,020
5.833333
0.208333
0.171429
0.114286
0.102857
0.544286
0.418571
0.271429
0.271429
0.271429
0.271429
0
0
0.163725
1,020
34
86
30
0.820633
0
0
0.5
0
0
0.208824
0.042157
0
0
0
0
0.208333
1
0.125
false
0
0.041667
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
68bd12edd81d237215484f0a679fa547355b6ddd
5,132
py
Python
tests/test_algolia_doc_manager.py
algolia/mongo-connector
d668e9fb556abe63916ba0594e035d2f34880b1c
[ "Apache-2.0" ]
15
2015-01-06T08:10:21.000Z
2017-03-12T23:06:43.000Z
tests/test_algolia_doc_manager.py
algolia/mongo-connector
d668e9fb556abe63916ba0594e035d2f34880b1c
[ "Apache-2.0" ]
16
2015-03-11T09:28:33.000Z
2016-03-06T14:45:54.000Z
tests/test_algolia_doc_manager.py
algolia/mongo-connector
d668e9fb556abe63916ba0594e035d2f34880b1c
[ "Apache-2.0" ]
13
2015-03-21T13:39:10.000Z
2022-03-14T11:50:24.000Z
# Copyright 2013-2014 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
38.298507
90
0.616329
690
5,132
4.424638
0.237681
0.129708
0.119227
0.078611
0.542745
0.52342
0.483459
0.476253
0.432034
0.432034
0
0.018663
0.227397
5,132
133
91
38.586466
0.751324
0.171083
0
0.454545
0
0
0.077879
0
0
0
0
0
0.170455
1
0.056818
false
0
0.090909
0
0.159091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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