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
d5f72b6bb8de932265e3494ed6520e23b33d2b72
705
py
Python
p6e8.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
p6e8.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
p6e8.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
#Yannick p6e8 Escribe un programa que te pida primero un número y luego te pida números hasta que la suma de los números introducidos coincida con el número inicial. El programa termina escribiendo la lista de números. limite = int(input("Escribe limite:")) valores = int(input("Escribe un valor:")) listavalore...
30.652174
219
0.704965
100
705
4.97
0.51
0.04829
0.090543
0.044266
0
0
0
0
0
0
0
0.003521
0.194326
705
22
220
32.045455
0.871479
0.307801
0
0.181818
0
0
0.340564
0
0
0
0
0
0
1
0
false
0
0
0
0
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
d5f73b66aea43800edd9e2977d37ade872174872
1,574
py
Python
.venv/lib/python3.8/site-packages/cleo/application.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
1
2020-08-07T16:09:57.000Z
2020-08-07T16:09:57.000Z
.venv/lib/python3.8/site-packages/cleo/application.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/cleo/application.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
null
null
null
from typing import Optional from typing import Tuple from clikit.console_application import ConsoleApplication from .commands import BaseCommand from .commands.completions_command import CompletionsCommand from .config import ApplicationConfig class Application(ConsoleApplication, object): """ A...
29.148148
77
0.623888
168
1,574
5.75
0.375
0.021739
0.033126
0
0
0
0
0
0
0
0
0.003509
0.275731
1,574
53
78
29.698113
0.84386
0.250953
0
0
0
0
0.00094
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.464286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d5f7c879e6735f223e0344e0abf1f6975431be03
1,009
py
Python
watcher/fly.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
1
2021-12-09T22:09:24.000Z
2021-12-09T22:09:24.000Z
watcher/fly.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
null
null
null
watcher/fly.py
cog-isa/htm-rl
baf5b67a11283d37165bf6a29d6808a234d6d98c
[ "MIT" ]
1
2021-11-18T08:54:20.000Z
2021-11-18T08:54:20.000Z
from utils.drawer import Drawer import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("name", help="the name of the datafile") parser.add_argument("--size", help="width,height") args = parser.parse_args() if args.size is None: width, height = 128...
36.035714
120
0.663033
130
1,009
5.038462
0.384615
0.164886
0.091603
0.061069
0.177099
0.094656
0
0
0
0
0
0.013906
0.216056
1,009
27
121
37.37037
0.814159
0.024777
0
0
0
0
0.061162
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5f85a460ddcb48e089b11f2309816efd46bb61e
3,263
py
Python
test/unit/test_structures.py
ourobouros/aws-encryption-sdk-python
1d0e40de7fef1b1131127a6f8626ef6a60739289
[ "Apache-2.0" ]
null
null
null
test/unit/test_structures.py
ourobouros/aws-encryption-sdk-python
1d0e40de7fef1b1131127a6f8626ef6a60739289
[ "Apache-2.0" ]
1
2019-05-30T22:14:47.000Z
2019-05-30T22:14:47.000Z
test/unit/test_structures.py
ourobouros/aws-encryption-sdk-python
1d0e40de7fef1b1131127a6f8626ef6a60739289
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
37.505747
120
0.70426
388
3,263
5.695876
0.368557
0.044344
0.036199
0.045249
0.423077
0.320814
0.238009
0.217195
0.148869
0.148869
0
0.014296
0.185412
3,263
86
121
37.94186
0.817156
0.179896
0
0.163934
0
0
0.162091
0
0
0
0
0
0.016393
1
0.04918
false
0
0.065574
0
0.114754
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5f884d302908ab9fba8e534f212148aba1c42a3
1,745
py
Python
codes/utils/mygraph.py
CristianLazoQuispe/Datathon-Interbank-2020
54f5d11fe83eb5a8ea8284be13d96e9e12978354
[ "MIT" ]
null
null
null
codes/utils/mygraph.py
CristianLazoQuispe/Datathon-Interbank-2020
54f5d11fe83eb5a8ea8284be13d96e9e12978354
[ "MIT" ]
null
null
null
codes/utils/mygraph.py
CristianLazoQuispe/Datathon-Interbank-2020
54f5d11fe83eb5a8ea8284be13d96e9e12978354
[ "MIT" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import numpy as np path_results = '../results/images/' # this function receives a dataset with binary target and it will graph a hist of values def graph_target(data,name="target",figsize=(6,4),title_name=None,color_text="white",save=False,name...
51.323529
140
0.671633
281
1,745
4.060498
0.448399
0.039439
0.028922
0.022787
0.117441
0.08589
0.08589
0.08589
0.08589
0.08589
0
0.029472
0.163897
1,745
34
141
51.323529
0.75257
0.256734
0
0
0
0
0.109642
0
0.037037
0
0
0
0
1
0.074074
false
0
0.148148
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d5f8c3fa603dfdb79ab13ebb13d4e8e23422a12c
1,134
py
Python
src/pretix/base/validators.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/validators.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/validators.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
1
2017-08-09T17:11:28.000Z
2017-08-09T17:11:28.000Z
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible from django.utils.translation import ugettext_lazy as _ class BlacklistValidator: blacklist = [] def __call__(self, value): # Validation logic if value in self.blacklist: raise...
20.618182
64
0.552028
82
1,134
7.426829
0.585366
0.049261
0.049261
0.151067
0.298851
0.19376
0
0
0
0
0
0.00534
0.339506
1,134
54
65
21
0.807744
0.014109
0
0.55814
0
0
0.197133
0
0
0
0
0
0
1
0.023256
false
0
0.069767
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5f8e7bbb353d3c7f7fae4eb9baaff7822b54512
32,192
py
Python
fortnitepy/ext/commands/bot.py
gfdb/fortnitepy
1cedbddee1f81c96fc60b586cd2c16398bc2d45f
[ "MIT" ]
127
2019-07-15T15:55:30.000Z
2022-03-22T07:39:29.000Z
fortnitepy/ext/commands/bot.py
xMistt/fortnitepy
c64d72572e188a938e0b39a6d1fd1e8ee4842d31
[ "MIT" ]
65
2019-07-15T22:48:35.000Z
2022-01-30T05:18:36.000Z
fortnitepy/ext/commands/bot.py
xMistt/fortnitepy
c64d72572e188a938e0b39a6d1fd1e8ee4842d31
[ "MIT" ]
83
2019-07-18T12:37:58.000Z
2022-03-19T20:56:47.000Z
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
35.02938
91
0.584493
3,747
32,192
4.906592
0.160128
0.017949
0.009791
0.004079
0.235409
0.199728
0.184607
0.162143
0.139951
0.127223
0
0.000375
0.337351
32,192
918
92
35.067538
0.861476
0.343191
0
0.218905
0
0
0.050784
0.001322
0
0
0
0
0
1
0.067164
false
0.012438
0.054726
0.00995
0.18408
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5fa6f305d9e54a79de33a61c7eebe1b7c16b303
657
py
Python
LeetCodeSolutions/python/64_Minimum_Path_Sum.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
1
2017-03-27T13:38:37.000Z
2017-03-27T13:38:37.000Z
LeetCodeSolutions/python/64_Minimum_Path_Sum.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
LeetCodeSolutions/python/64_Minimum_Path_Sum.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
class Solution(object): def minPathSum(self, grid): """ :type grid: List[List[int]] :rtype: int """ m, n = len(grid), len(grid[0]) dp = [[0] * n for _ in range(m)] for i in range(m): for j in range(n): if i == 0 and j == 0: ...
31.285714
75
0.340944
98
657
2.27551
0.285714
0.080717
0.107623
0.143498
0.255605
0.219731
0.125561
0.125561
0.125561
0
0
0.04023
0.47032
657
20
76
32.85
0.600575
0.059361
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5fad574122cf8647545ad83e7dc43147679cc22
1,129
py
Python
paths_win.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
15
2015-03-05T17:03:08.000Z
2022-01-28T07:49:38.000Z
paths_win.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
null
null
null
paths_win.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
9
2015-03-06T09:56:30.000Z
2017-11-07T00:24:17.000Z
import _winreg import os def get_shared_cache_folder(): """ Look in the registry for the configured cache folder. If there is no entry, then we create one. :return: """ _winreg.aReg = _winreg.ConnectRegistry(None, _winreg.HKEY_CURRENT_USER) try: key = _winreg.OpenKey(_winreg.aReg, ...
30.513514
84
0.70062
146
1,129
5.143836
0.417808
0.106525
0.043941
0.075899
0.23968
0.23968
0.186418
0
0
0
0
0.002212
0.199291
1,129
36
85
31.361111
0.82854
0.092117
0
0.173913
0
0
0.126873
0.064935
0
0
0
0
0
1
0.130435
false
0
0.086957
0.043478
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
d5fd3faa9866127caab32ba61fdd34ab4ec39ea3
36,968
py
Python
pyclicker/lib/python3.7/site-packages/Xlib/display.py
JayRovacsek/pyautoclick
e136a58c129332933eb8455dd7c8e16222d54fb2
[ "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
Xlib/display.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
Xlib/display.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# Xlib.display -- high level display object # # Copyright (C) 2000 Peter Liljenberg <petli@ctrl-c.liu.se> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2.1 # of the ...
38.872766
123
0.599681
4,461
36,968
4.866174
0.171038
0.039525
0.033168
0.024185
0.215819
0.148747
0.113645
0.092731
0.072968
0.05187
0
0.005636
0.332801
36,968
950
124
38.913684
0.874478
0.425422
0
0.18797
0
0
0.015041
0
0
0
0
0
0.005013
1
0.172932
false
0.002506
0.035088
0
0.325815
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5fd49cbaa7ded4b224914739446f1a0434a93af
657
py
Python
Others/qupc/qupc2014/c/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/qupc/qupc2014/c/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/qupc/qupc2014/c/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): from string import ascii_uppercase n, m, q_large = map(int, input().split()) s = [list(input()) for _ in range(n)] q = [input() for _ in range(q_large)] pos = [None for _ in range(26)] for i in range(n): for j in range(m): sij = s[i][j]...
21.193548
50
0.47032
93
657
3.150538
0.430108
0.119454
0.102389
0.102389
0
0
0
0
0
0
0
0.017073
0.375951
657
30
51
21.9
0.697561
0.031963
0
0
0
0
0.01735
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.095238
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5fedd3bf29602a1334d3dbff567321747bbca26
4,652
py
Python
analysis/notebooks/helper/anova.py
dpedrosac/DBSgait
6df44cf975d43f9e932ef10144bfb7c1b5390b7b
[ "MIT" ]
1
2021-09-29T05:53:38.000Z
2021-09-29T05:53:38.000Z
analysis/notebooks/helper/anova.py
dpedrosac/DBSgait
6df44cf975d43f9e932ef10144bfb7c1b5390b7b
[ "MIT" ]
null
null
null
analysis/notebooks/helper/anova.py
dpedrosac/DBSgait
6df44cf975d43f9e932ef10144bfb7c1b5390b7b
[ "MIT" ]
1
2021-09-22T08:48:47.000Z
2021-09-22T08:48:47.000Z
import numpy as np import pandas as pd from scipy.stats import f_oneway from typing import Dict, Tuple, Set def extract_significant_p(df: pd.DataFrame, p_value_limit: float): """Return a df, which replaces values that are above p_value_limit with `None`""" return ( df.loc(axis=1)[f"p-value"] ...
36.34375
117
0.589209
521
4,652
5.084453
0.289827
0.05889
0.024915
0.035108
0.040015
0.040015
0
0
0
0
0
0.011501
0.308469
4,652
127
118
36.629921
0.811937
0.239897
0
0.022222
0
0
0.085872
0.006382
0
0
0
0
0
1
0.044444
false
0
0.044444
0
0.133333
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d5ff5d19a2e1fbd8c3dcb000fc779bc359c47c61
2,251
py
Python
bux_recorder/utils.py
roaldarbol/bux
356817bbc7139c972d640c64fb8fcba27b70b3f7
[ "MIT" ]
null
null
null
bux_recorder/utils.py
roaldarbol/bux
356817bbc7139c972d640c64fb8fcba27b70b3f7
[ "MIT" ]
9
2021-12-09T18:07:25.000Z
2022-03-30T23:22:45.000Z
bux_recorder/utils.py
roaldarbol/bux
356817bbc7139c972d640c64fb8fcba27b70b3f7
[ "MIT" ]
null
null
null
import os import platform import time import csv import serial import cv2 import tkinter as tk from tkinter.filedialog import askdirectory from serial.tools import list_ports # From https://raspberrypi.stackexchange.com/a/118473 def is_raspberrypi(): try: with io.open('/sys/firmware/devicetree/base/model',...
30.835616
103
0.631719
322
2,251
4.270186
0.406832
0.045818
0.047273
0.039273
0.112
0.075636
0.075636
0.075636
0.075636
0.075636
0
0.012666
0.263438
2,251
73
104
30.835616
0.816647
0.234118
0
0.089286
0
0
0.04468
0.020576
0
0
0
0
0
1
0.125
false
0.017857
0.160714
0.017857
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d5fff25cf4828ce6ee852dfb013719288c2e6acf
1,712
py
Python
a2e/optimizer/hpbandster/_model_worker.py
maechler/a2e
c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00
[ "MIT" ]
1
2021-03-19T09:09:41.000Z
2021-03-19T09:09:41.000Z
a2e/optimizer/hpbandster/_model_worker.py
maechler/a2e
c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00
[ "MIT" ]
null
null
null
a2e/optimizer/hpbandster/_model_worker.py
maechler/a2e
c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00
[ "MIT" ]
null
null
null
from hpbandster.core.worker import Worker from a2e.model import AbstractModel from a2e.optimizer import EvaluationResultAggregator from a2e.utility import inf_nan_to_float_max class ModelWorker(Worker): def __init__( self, model: AbstractModel, evaluation_result_aggregator: EvaluationResul...
31.703704
138
0.657126
195
1,712
5.430769
0.276923
0.181303
0.098206
0.065156
0.109537
0
0
0
0
0
0
0.002377
0.26285
1,712
53
139
32.301887
0.836767
0
0
0
0
0
0.028037
0
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9101c6f835f7bccd8700b747bc71f0d2474bb905
1,245
py
Python
xagents/__init__.py
schissmantics/xagents
04f1b96f767903c62138b7d63986f16edfe5f240
[ "MIT" ]
37
2021-08-05T16:31:54.000Z
2022-01-16T11:49:46.000Z
xagents/__init__.py
schissmantics/xagents
04f1b96f767903c62138b7d63986f16edfe5f240
[ "MIT" ]
1
2022-01-08T17:22:53.000Z
2022-01-08T17:22:53.000Z
xagents/__init__.py
schissmantics/xagents
04f1b96f767903c62138b7d63986f16edfe5f240
[ "MIT" ]
3
2021-08-13T06:25:22.000Z
2021-08-20T01:37:15.000Z
from xagents import a2c, acer, ddpg, dqn, ppo, td3, trpo from xagents.a2c.agent import A2C from xagents.acer.agent import ACER from xagents.base import OffPolicy from xagents.ddpg.agent import DDPG from xagents.dqn.agent import DQN from xagents.ppo.agent import PPO from xagents.td3.agent import TD3 from xagents.trpo.ag...
30.365854
85
0.658635
162
1,245
4.91358
0.283951
0.15201
0.037688
0
0
0
0
0
0
0
0
0.01497
0.195181
1,245
40
86
31.125
0.779441
0
0
0.052632
0
0
0.261847
0.02008
0
0
0
0
0
1
0
false
0
0.289474
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91031df628ba0d6e12adf7ed9e0154be2d4256a3
3,794
py
Python
examples/MMPT/mmpt_cli/localjob.py
Este1le/fairseq
0fa073e0e0ddd90ff6850588e655c9566bb222ff
[ "MIT" ]
null
null
null
examples/MMPT/mmpt_cli/localjob.py
Este1le/fairseq
0fa073e0e0ddd90ff6850588e655c9566bb222ff
[ "MIT" ]
null
null
null
examples/MMPT/mmpt_cli/localjob.py
Este1le/fairseq
0fa073e0e0ddd90ff6850588e655c9566bb222ff
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from mmpt.utils import recursive_config class BaseJob(object): def __init__(self, yaml_file, dryrun=False): self.yaml_...
32.152542
120
0.524512
419
3,794
4.536993
0.293556
0.044187
0.034719
0.031562
0.207785
0.187796
0.118885
0.118885
0.118885
0.118885
0
0.006822
0.343173
3,794
117
121
32.42735
0.756019
0.055878
0
0.241758
0
0
0.155245
0.013427
0
0
0
0
0
1
0.142857
false
0
0.032967
0.065934
0.32967
0.021978
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9103b4aa5d2e6a5156212d03a9f3245d1c26b5fe
1,154
py
Python
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Nubs/deprecated/tcc25m-old.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
import os.path from tron import g, hub from tron.Hub.Command.Encoders.ASCIICmdEncoder import ASCIICmdEncoder from tron.Hub.Nub.TCCShellNub import TCCShellNub from tron.Hub.Reply.Decoders.ASCIIReplyDecoder import ASCIIReplyDecoder name = 'tcc' def start(poller): stop() initCmds = ('show version', 'show us...
25.644444
97
0.598787
141
1,154
4.900709
0.48227
0.04631
0.047757
0
0
0
0
0
0
0
0
0.006857
0.241768
1,154
44
98
26.227273
0.782857
0
0
0
0
0
0.180243
0
0
0
0
0
0
1
0.0625
false
0
0.15625
0
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9106509f9ec5a979f79cad4305026bbe9239af41
9,920
py
Python
python/arch/api/table/session.py
GentleWang1011/eggroll
417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c
[ "Apache-2.0" ]
1
2020-10-23T03:18:54.000Z
2020-10-23T03:18:54.000Z
python/arch/api/table/session.py
GentleWang1011/eggroll
417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c
[ "Apache-2.0" ]
null
null
null
python/arch/api/table/session.py
GentleWang1011/eggroll
417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.055118
113
0.541431
987
9,920
5.213779
0.192503
0.073455
0.021376
0.017489
0.425379
0.361251
0.339487
0.32841
0.29382
0.267198
0
0.002849
0.398589
9,920
253
114
39.209486
0.859705
0.164315
0
0.494118
0
0
0.020501
0.006792
0
0
0
0
0
1
0.094118
false
0.041176
0.1
0.005882
0.264706
0.005882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91085824641d29cf6a64bb1d7961d3c8c9b1d9df
10,481
py
Python
experiments/vitchyr/vaes/learn_swirl_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/vitchyr/vaes/learn_swirl_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/vitchyr/vaes/learn_swirl_vae.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
""" VAE on the swirl task. Basically, VAEs don't work. It's probably because the prior isn't very good and/or because the learning signal is pretty weak when both the encoder and decoder change quickly. However, I tried also alternating between the two, and that didn't seem to help. """ from torch.distributions import...
30.556851
100
0.621983
1,461
10,481
4.239562
0.134839
0.053277
0.030998
0.04133
0.705037
0.652083
0.603972
0.589603
0.572812
0.572812
0
0.017868
0.241771
10,481
342
101
30.646199
0.761545
0.090736
0
0.589552
0
0
0.026876
0
0
0
0
0
0
1
0.044776
false
0
0.026119
0.003731
0.11194
0.003731
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91087a71b49d992aa86f465838203ca33ae315a2
893
py
Python
litex/build/openfpgaloader.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
litex/build/openfpgaloader.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
litex/build/openfpgaloader.py
JosephBushagour/litex
2b49430f2c53c4a8caa66b678af4660127b546e4
[ "ADSL" ]
null
null
null
# # This file is part of LiteX. # # Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from litex.build.tools import write_to_file from litex.build.generic_programmer import GenericProgrammer # openFPGAloader --------------------------------------------------------...
31.892857
107
0.603583
94
893
5.595745
0.510638
0.068441
0.079848
0.098859
0.13308
0.13308
0
0
0
0
0
0.006849
0.182531
893
27
108
33.074074
0.713699
0.263158
0
0.133333
0
0
0.130568
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9108d9fb9a94a37ce1d64b6c7561be3aaeaa3b32
10,557
py
Python
NutriBuddiAPIServices/ImageClassifier/NutriBuddiClassifier/Classifier/FoodClassifier.py
NutriBuddi/NutriBuddi
b4343216cbc99b17a1faf4df50b681465418291f
[ "MIT" ]
2
2017-12-11T03:47:14.000Z
2017-12-16T01:29:03.000Z
NutriBuddiAPIServices/ImageClassifier/NutriBuddiClassifier/Classifier/FoodClassifier.py
NutriBuddi/NutriBuddi
b4343216cbc99b17a1faf4df50b681465418291f
[ "MIT" ]
null
null
null
NutriBuddiAPIServices/ImageClassifier/NutriBuddiClassifier/Classifier/FoodClassifier.py
NutriBuddi/NutriBuddi
b4343216cbc99b17a1faf4df50b681465418291f
[ "MIT" ]
null
null
null
class FoodClassifier: #Class Attributes: #model - the underlying keras model #labels - the labels to be associated with the activation of each output neuron. #Labels must be the same size as the output layer of the neural network. def __init__(self, modelpath, labels, min_confidence =...
33.728435
180
0.626883
1,365
10,557
4.738462
0.216117
0.016698
0.006184
0.009895
0.182746
0.148887
0.142239
0.120903
0.107607
0.097712
0
0.015212
0.283887
10,557
312
181
33.836538
0.840344
0.242683
0
0.25731
0
0
0.063076
0
0
0
0
0
0
1
0.070175
false
0
0.157895
0.017544
0.304094
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
9109df56e39b2986de46c0b2bc4cedc05e614932
5,234
py
Python
exchange_sockets/bitstamp_websocket.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
31
2020-07-20T14:11:39.000Z
2022-03-17T03:18:33.000Z
exchange_sockets/bitstamp_websocket.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
null
null
null
exchange_sockets/bitstamp_websocket.py
SpiralDevelopment/crypto-hft-data
205f01fd555eab4f636ffbb701dfcde53d27becc
[ "MIT" ]
11
2020-07-20T14:11:52.000Z
2022-03-14T04:20:19.000Z
from exchange_sockets.exchange_websocket import ExchangeWebSocket from singletones.custom_logger import MyLogger import websocket import threading from time import sleep from time import time import json import ssl logger = MyLogger() class BitstampWebsocket(ExchangeWebSocket): def __init__(self, pairs_n_stream...
35.364865
108
0.488154
526
5,234
4.652091
0.262357
0.026972
0.017981
0.023294
0.130772
0.11606
0.11606
0.11606
0.11606
0.11606
0
0.00547
0.40619
5,234
147
109
35.605442
0.781853
0.006496
0
0.163793
0
0
0.075606
0.00404
0
0
0
0
0
1
0.086207
false
0
0.068966
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
910a76a4ae610e5e78371c5e387ad8044c415dcd
2,509
py
Python
src/data_loading.py
katerakelly/pytorch-maml
75907aca148ad053dfaf75fc138319f0d89534a8
[ "MIT" ]
565
2017-08-29T02:02:30.000Z
2022-03-28T13:44:55.000Z
src/data_loading.py
lolinkun/pytorch-maml
75907aca148ad053dfaf75fc138319f0d89534a8
[ "MIT" ]
20
2017-10-23T02:19:51.000Z
2021-06-02T07:17:28.000Z
src/data_loading.py
lolinkun/pytorch-maml
75907aca148ad053dfaf75fc138319f0d89534a8
[ "MIT" ]
140
2017-09-09T09:18:15.000Z
2022-03-28T04:15:26.000Z
import numpy as np import random import torch from torch.utils.data import DataLoader from torch.utils.data.sampler import Sampler import torchvision.transforms as transforms from dataset import Omniglot, MNIST ''' Helpers for loading class-balanced few-shot tasks from datasets ''' class ClassBalancedSampler(Sample...
39.825397
121
0.697489
358
2,509
4.765363
0.340782
0.023447
0.021102
0.024619
0.166471
0.101993
0.101993
0.078546
0.078546
0
0
0.038326
0.209645
2,509
62
122
40.467742
0.821987
0.232363
0
0
0
0
0.008301
0
0
0
0
0
0
1
0.117647
false
0
0.205882
0.029412
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
910af5706d2a9981705d65b7f790c5595e73aa3e
1,823
py
Python
DoChaP-db/UnusedScripts/main.py
Tal-Shay-Group/DoChaP
e721c6742fdff5f771bb947d92fa6cf66831939a
[ "MIT" ]
2
2021-05-28T04:59:17.000Z
2021-09-03T13:25:40.000Z
DoChaP-db/UnusedScripts/main.py
Tal-Shay-Group/DoChaP
e721c6742fdff5f771bb947d92fa6cf66831939a
[ "MIT" ]
null
null
null
DoChaP-db/UnusedScripts/main.py
Tal-Shay-Group/DoChaP
e721c6742fdff5f771bb947d92fa6cf66831939a
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os sys.path.append(os.getcwd()) from Director import Director from OrthologsBuilder import * from SpeciesDB import * if __name__ == "__main__": inputDict = {} for inarg in sys.argv[1:]: try: splitArg = inarg.strip("-").split("=") if splitArg[...
37.979167
106
0.638508
196
1,823
5.826531
0.443878
0.028021
0.031524
0.036778
0.154116
0.070053
0
0
0
0
0
0.004979
0.228744
1,823
47
107
38.787234
0.807255
0.008777
0
0.046512
0
0
0.199889
0.014396
0
0
0
0
0
1
0
false
0
0.116279
0
0.116279
0.139535
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
910ba6c11fb3b85edca95edcb1ac441727f03f60
16,258
py
Python
TWLight/settings/base.py
amire80/TWLight
063a385ea46c61a4889ba88e3fded4183c3a6bd3
[ "MIT" ]
null
null
null
TWLight/settings/base.py
amire80/TWLight
063a385ea46c61a4889ba88e3fded4183c3a6bd3
[ "MIT" ]
56
2021-07-03T12:34:47.000Z
2022-03-29T12:20:08.000Z
TWLight/settings/base.py
amire80/TWLight
063a385ea46c61a4889ba88e3fded4183c3a6bd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Base settings for twlight project. This is not intended to be used as the live settings file for a project and will not work as one. You should instead use production.py, local.py, heroku.py, or another file that you write. These files should live in the settings directory; start with 'from...
35.969027
165
0.60807
1,690
16,258
5.701183
0.302367
0.018682
0.024909
0.016814
0.113129
0.078568
0.058433
0.058433
0.037571
0.014323
0
0.003831
0.181142
16,258
451
166
36.04878
0.719898
0.430373
0
0.070248
0
0
0.37761
0.230239
0
0
0
0
0
1
0.008264
false
0.008264
0.028926
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
910c31b853b8a837a994aa06e68742ed3449818b
19,836
py
Python
modelator_py/util/tla/_optable.py
informalsystems/modelator-py
d66464096c022799e680e6201590a2ead69be32d
[ "Apache-2.0" ]
null
null
null
modelator_py/util/tla/_optable.py
informalsystems/modelator-py
d66464096c022799e680e6201590a2ead69be32d
[ "Apache-2.0" ]
3
2022-03-30T16:01:49.000Z
2022-03-31T13:40:03.000Z
modelator_py/util/tla/_optable.py
informalsystems/modelator-py
d66464096c022799e680e6201590a2ead69be32d
[ "Apache-2.0" ]
null
null
null
"""Table of operators.""" # Copyright 2020 by California Institute of Technology # Copyright (c) 2008-2013 INRIA and Microsoft Corporation # All rights reserved. Licensed under 3-clause BSD. # # This module is based on the file: # # <https://github.com/tlaplus/tlapm/blob/main/src/optable.ml> # import pprint from .ast...
41.497908
87
0.354658
1,793
19,836
3.907975
0.139989
0.122164
0.06993
0.0999
0.477951
0.26445
0.173969
0.149565
0.139147
0.107036
0
0.047663
0.392872
19,836
477
88
41.584906
0.534169
0.557219
0
0.089385
0
0
0.074971
0
0
0
0
0
0
1
0.039106
false
0.044693
0.011173
0.005587
0.134078
0.005587
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
910cebe2f9c8f06e688c3bb7c05c5907ea9954d5
40,599
py
Python
DIE/UI/FunctionViewEx.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
5
2017-05-17T21:53:46.000Z
2019-07-12T20:05:20.000Z
DIE/UI/FunctionViewEx.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
null
null
null
DIE/UI/FunctionViewEx.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
1
2020-03-15T21:25:14.000Z
2020-03-15T21:25:14.000Z
import networkx as nx from awesome.context import ignored import sark import idaapi import idautils import idc from idaapi import PluginForm from sark.qt import QtGui, QtCore, QtWidgets, form_to_widget, use_qt5 if use_qt5: _QSortFilterProxyModel = QtCore.QSortFilterProxyModel _MatchRecursive = QtC...
40.885196
176
0.610828
4,565
40,599
5.148302
0.10011
0.04289
0.013786
0.011233
0.48749
0.419539
0.352396
0.286444
0.243766
0.214748
0
0.005301
0.307618
40,599
992
177
40.926411
0.830772
0.122097
0
0.244556
0
0
0.038721
0.004052
0
0
0
0
0
1
0.065327
false
0
0.026801
0.001675
0.142379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
910e142fb045682f0db143a5a746598a72de10d6
1,103
py
Python
peerbot/PeerBot.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
peerbot/PeerBot.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
peerbot/PeerBot.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
from peerbot.PeerBotStateMachine import PeerBotStateMachine from utils.Logger import Logger import discord class PeerBot(discord.Client): def __init__(self, args): self.args = args self.isBotReady = False super().__init__() async def on_ready(self): stringifiedUse...
34.46875
91
0.637353
110
1,103
6.236364
0.390909
0.058309
0.034985
0.049563
0
0
0
0
0
0
0
0
0.260199
1,103
32
92
34.46875
0.840686
0
0
0
0
0
0.087862
0
0
0
0
0
0
1
0.04
false
0
0.12
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9111af8dea9204ecc79252d0615a08b9fa56ab3b
4,998
py
Python
tests/apps/persons/test_cms_plugins_person.py
lunika/richie
b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f
[ "MIT" ]
null
null
null
tests/apps/persons/test_cms_plugins_person.py
lunika/richie
b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f
[ "MIT" ]
null
null
null
tests/apps/persons/test_cms_plugins_person.py
lunika/richie
b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit tests for the Person plugin and its model """ from django import forms from django.conf import settings from django.test import TestCase from cms.api import add_plugin, create_page from cmsplugin_plain_text.cms_plugins import PlaintextPlugin from djangocms_picture.cms_plugins import Pi...
36.75
91
0.62585
557
4,998
5.452424
0.262118
0.023708
0.068489
0.023708
0.320053
0.249588
0.156734
0.156734
0.156734
0.119197
0
0.003871
0.276311
4,998
135
92
37.022222
0.835776
0.173069
0
0.391304
0
0
0.117676
0.04623
0
0
0
0
0.108696
1
0.021739
false
0
0.119565
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91124d593f9dcda3e366e95378c8d482f7f013ee
9,295
py
Python
mathics/core/subexpression.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
90
2021-09-11T14:14:00.000Z
2022-03-29T02:08:29.000Z
mathics/core/subexpression.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
187
2021-09-13T01:00:41.000Z
2022-03-31T11:52:52.000Z
mathics/core/subexpression.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
10
2021-10-05T15:44:26.000Z
2022-03-21T12:34:33.000Z
# cython: language_level=3 # -*- coding: utf-8 -*- from mathics.core.expression import Expression from mathics.core.symbols import Atom, Symbol from mathics.core.atoms import Integer from mathics.builtin.base import MessageException """ This module provides some infrastructure to deal with SubExpressions. """ def...
30.276873
94
0.563636
1,131
9,295
4.532272
0.16092
0.033164
0.010925
0.012876
0.238588
0.152946
0.117441
0.095981
0.067109
0.044089
0
0.007174
0.340183
9,295
306
95
30.375817
0.828632
0.1773
0
0.368932
0
0
0.051905
0.006283
0
0
0
0
0
1
0.131068
false
0
0.019417
0.058252
0.296117
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9112d9a09ef3e419ea9c838421fb6d27323a5f4c
1,960
py
Python
lib/python/treadmill/tests/api/cell_test.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
1
2019-04-14T20:17:07.000Z
2019-04-14T20:17:07.000Z
lib/python/treadmill/tests/api/cell_test.py
vrautela/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
1
2017-09-18T10:36:12.000Z
2017-09-18T10:36:12.000Z
lib/python/treadmill/tests/api/cell_test.py
evreng/treadmill
05e47fa8acdf8bad7af78e737efb26ea6488de82
[ "Apache-2.0" ]
null
null
null
"""Cell API tests. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import mock from treadmill import admin from treadmill.api import cell class ApiCellTest(unittest.TestCase): """treadmill....
32.131148
72
0.628061
238
1,960
4.97479
0.226891
0.053209
0.106419
0.096284
0.5625
0.539696
0.517736
0.38598
0.325169
0.325169
0
0.004627
0.228061
1,960
60
73
32.666667
0.777925
0.084694
0
0.317073
0
0
0.1794
0.116016
0
0
0
0
0.073171
1
0.121951
false
0.02439
0.195122
0
0.341463
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
9116cf95f3505891c20808a9297cb4047c9dcb7a
776
py
Python
sandbox/pdp2/arbitrary_data/zip_files.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
3
2021-04-17T10:20:26.000Z
2022-03-08T07:36:13.000Z
sandbox/pdp2/arbitrary_data/zip_files.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
sandbox/pdp2/arbitrary_data/zip_files.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
import zipfile import random RAND_INT_RANGE = (1,100) def wrf(fname): with open(fname, 'w') as f: for i in range(100): f.write(str(random.randint(*RAND_INT_RANGE))) fnames = [] for i in range(10): fname = 'file' + str(i) + '.txt' wrf(fname) fnames.append(fname) dirpaths = set() wi...
26.758621
79
0.636598
106
776
4.575472
0.415094
0.057732
0.098969
0.123711
0.230928
0.230928
0.173196
0.173196
0
0
0
0.014851
0.219072
776
28
80
27.714286
0.785479
0.043814
0
0.090909
0
0
0.067568
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.136364
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
911750f22693957597b2ca1cf0ab39d191230dfc
1,497
py
Python
tests/testproject/testproject/tests/test_middleware.py
mwesterhof/wagtail_managed404
a961271c7fc70accb43ec329da9defe36e3dab3c
[ "MIT" ]
1
2021-03-11T10:06:04.000Z
2021-03-11T10:06:04.000Z
tests/testproject/testproject/tests/test_middleware.py
mwesterhof/wagtail_managed404
a961271c7fc70accb43ec329da9defe36e3dab3c
[ "MIT" ]
null
null
null
tests/testproject/testproject/tests/test_middleware.py
mwesterhof/wagtail_managed404
a961271c7fc70accb43ec329da9defe36e3dab3c
[ "MIT" ]
null
null
null
import unittest from django.test import Client from wagtail.core.models import Page from wagtail_managed404.models import PageNotFoundEntry class TestMiddleware(unittest.TestCase): """Tests for `wagtail_app_pages` package.""" def setUp(self): self.client = Client() self.invalid_url = '/defi...
34.022727
76
0.706079
187
1,497
5.363636
0.304813
0.069791
0.083749
0.084746
0.437687
0.329013
0.255234
0.255234
0.255234
0.255234
0
0.016611
0.195725
1,497
43
77
34.813953
0.816445
0.025384
0
0.1875
0
0
0.032347
0.020647
0
0
0
0
0.125
1
0.15625
false
0
0.125
0
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911a60720a34ab009d3e5702a34a60c445eb65cc
5,827
py
Python
kronos/kronos.py
jinified/kronos
1f110372a025d28ccc407372320491ee818c893d
[ "MIT" ]
null
null
null
kronos/kronos.py
jinified/kronos
1f110372a025d28ccc407372320491ee818c893d
[ "MIT" ]
null
null
null
kronos/kronos.py
jinified/kronos
1f110372a025d28ccc407372320491ee818c893d
[ "MIT" ]
null
null
null
""" Kronos: A simple scheduler for graduate training programme Entities: User, Schedule, Rotation """ from operator import itemgetter from datetime import datetime, timedelta def getRotationCapacity(rotationId, startDate, endDate, assignments): """ Calculate number of users assigned to a particular rotation dur...
33.107955
97
0.60151
654
5,827
5.311927
0.238532
0.047496
0.044905
0.01871
0.127807
0.084053
0.064479
0.050086
0.050086
0.050086
0
0.021947
0.28059
5,827
175
98
33.297143
0.806775
0.27098
0
0.073395
0
0
0.040303
0
0
0
0
0
0
1
0.06422
false
0.009174
0.018349
0
0.146789
0.036697
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911aa9326eb51bb9ac375b836bec89f414a26904
2,384
py
Python
personal_env/lib/python3.8/site-packages/pylint/lint/utils.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/pylint/lint/utils.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/pylint/lint/utils.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING import contextlib import sys from pylint.utils import utils class ArgumentPreprocessingError(Exception): """Raised if an error occurs during argument prep...
30.961039
81
0.557047
284
2,384
4.623239
0.46831
0.053313
0.016756
0.019802
0.080731
0.080731
0.080731
0
0
0
0
0.005219
0.356963
2,384
76
82
31.368421
0.851272
0.280621
0
0.22449
0
0
0.039141
0
0
0
0
0
0
1
0.061224
false
0
0.081633
0
0.183673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911ae3a32af48a82692eb10be784caaac6d3d48a
4,847
py
Python
mol_dqn/experimental/multi_obj.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
mol_dqn/experimental/multi_obj.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
mol_dqn/experimental/multi_obj.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.484277
78
0.704766
725
4,847
4.546207
0.314483
0.007282
0.007282
0.023058
0.349211
0.342536
0.272451
0.272451
0.272451
0.272451
0
0.020419
0.201774
4,847
158
79
30.677215
0.831481
0.340004
0
0.197531
0
0
0.055144
0.011609
0
0
0
0
0
1
0.049383
false
0
0.197531
0
0.37037
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911c431b68da1378ffaf6b7b804e393825322dec
1,770
py
Python
examples/cli-solver/cli_solver.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
examples/cli-solver/cli_solver.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
examples/cli-solver/cli_solver.py
danagle/boggled
13fea4c31b5dff72093c38d1ad368dec9d44f4d0
[ "MIT" ]
null
null
null
# cli_solver.py import argparse import os from boggled import BoggleBoard, BoggleSolver, BoggleWords def solve_board(board, words): solver = BoggleSolver(board, words) solver.solve() return solver def display_board_details(board): print("Board details:") print("Columns: ", board.columns) pr...
30
82
0.589266
204
1,770
4.985294
0.372549
0.054081
0.066863
0.039331
0
0
0
0
0
0
0
0.001581
0.285311
1,770
58
83
30.517241
0.802372
0.007345
0
0.065217
0
0
0.153846
0
0
0
0
0
0
1
0.043478
false
0
0.065217
0
0.130435
0.173913
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911cc6fdfec9f96a292bbbfc6b3b0ac51752840f
45,086
py
Python
src/wepy/orchestration/orchestrator.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
35
2017-08-22T15:39:06.000Z
2022-03-20T15:17:52.000Z
src/wepy/orchestration/orchestrator.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
33
2017-10-02T22:04:45.000Z
2022-03-02T22:19:08.000Z
src/wepy/orchestration/orchestrator.py
stxinsite/wepy
352d4c1316b20e839aae8824eedd66f0f2d0b456
[ "MIT" ]
17
2018-07-14T15:33:30.000Z
2022-01-18T16:30:55.000Z
from copy import copy, deepcopy import sqlite3 from hashlib import md5 import time import os import os.path as osp from base64 import b64encode, b64decode from zlib import compress, decompress import itertools as it import logging # instead of pickle we use dill, so we can save dynamically defined # classes import dil...
32.319713
125
0.595883
5,164
45,086
5.030015
0.114253
0.018364
0.010626
0.014167
0.334052
0.272608
0.227911
0.196843
0.154533
0.144485
0
0.001885
0.341148
45,086
1,394
126
32.342898
0.872547
0.308455
0
0.23689
0
0
0.124179
0.009513
0
0
0
0.000717
0.001808
1
0.099458
false
0.001808
0.028933
0.014467
0.24774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911d2626da51dec7964f3f20d1a80f93b2a0e8f3
2,681
py
Python
src/generate_class_specific_samples.py
HesterLim/pytorch-cnn-visualizations
59ddf0ef6ea2c9d4d69c1ac6b260cb399867d178
[ "MIT" ]
6,725
2017-10-25T08:00:25.000Z
2022-03-31T15:25:46.000Z
src/generate_class_specific_samples.py
woojoo99/pytorch-cnn-visualizations
16eddfa055a9c618ba548e9fb4529e2ccbc79c35
[ "MIT" ]
105
2017-11-26T11:59:24.000Z
2022-01-11T01:37:00.000Z
src/generate_class_specific_samples.py
woojoo99/pytorch-cnn-visualizations
16eddfa055a9c618ba548e9fb4529e2ccbc79c35
[ "MIT" ]
1,419
2017-10-25T08:00:27.000Z
2022-03-30T08:28:35.000Z
""" Created on Thu Oct 26 14:19:44 2017 @author: Utku Ozbulak - github.com/utkuozbulak """ import os import numpy as np import torch from torch.optim import SGD from torchvision import models from misc_functions import preprocess_image, recreate_image, save_image class ClassSpecificImageGeneration(): """ ...
34.818182
125
0.613577
322
2,681
4.934783
0.425466
0.069226
0.056639
0.052863
0.085588
0.085588
0.025173
0.025173
0
0
0
0.037902
0.281611
2,681
76
126
35.276316
0.787124
0.218202
0
0.051282
0
0
0.049205
0
0.025641
0
0
0
0
1
0.051282
false
0
0.153846
0
0.25641
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911d31b9a8a7937bf3f3cbbfb6a83e53d58e13d7
16,673
py
Python
sumo/tools/net/visum_mapDistricts.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/net/visum_mapDistricts.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/net/visum_mapDistricts.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python """ @file visum_mapDistricts.py @author Daniel Krajzewicz @author Michael Behrisch @date 2007-10-25 @version $Id$ This script reads a network and a dump file and draws the network, coloring it by the values found within the dump-file. SUMO, Simulation of Urban MObility; see http://sum...
33.346
138
0.537156
2,038
16,673
4.317959
0.153091
0.016705
0.008182
0.016705
0.349432
0.245682
0.226591
0.19625
0.187955
0.170227
0
0.054722
0.31608
16,673
499
139
33.412826
0.717004
0.051101
0
0.417249
0
0
0.066759
0
0
0
0
0
0
1
0.013986
false
0
0.018648
0
0.037296
0.041958
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911d404601c245497e0b927e48a8d554d335993b
42,222
py
Python
BKPMediaDetector.py
bkpifc/BKPMediaDetector
51858b45e218e0c4b5ed4d6aac6d751e029d850e
[ "Apache-2.0" ]
5
2019-04-03T08:04:06.000Z
2019-10-01T12:08:30.000Z
BKPMediaDetector.py
bkpifc/BKPMediaDetector
51858b45e218e0c4b5ed4d6aac6d751e029d850e
[ "Apache-2.0" ]
13
2019-04-08T14:24:15.000Z
2022-03-11T23:50:32.000Z
BKPMediaDetector.py
bkpifc/BKPMediaDetector
51858b45e218e0c4b5ed4d6aac6d751e029d850e
[ "Apache-2.0" ]
2
2019-04-04T11:20:27.000Z
2019-04-04T14:51:11.000Z
#!/usr/bin/env python3 ###### # General Detector # 06.12.2018 / Last Update: 20.05.2021 # LRB ###### import numpy as np import os import sys import tensorflow as tf import hashlib import cv2 import magic import PySimpleGUI as sg import csv import imagehash import face_recognition import subprocess from itertools impo...
40.676301
238
0.613093
5,107
42,222
4.914431
0.158606
0.012551
0.007172
0.010997
0.330823
0.272372
0.240617
0.199139
0.150928
0.118496
0
0.017518
0.27398
42,222
1,037
239
40.715526
0.801233
0.157525
0
0.231951
0
0
0.115759
0.013083
0
0
0
0
0
1
0.018433
false
0
0.039939
0
0.073733
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911e4f54a8e9fbbfd53aa376d04e2f253bbddbd8
2,252
py
Python
src/BruteForce.py
stevenwalton/Retro-Learner
74586c57b5dd5f6e82abaff99344285731f1fc56
[ "MIT" ]
null
null
null
src/BruteForce.py
stevenwalton/Retro-Learner
74586c57b5dd5f6e82abaff99344285731f1fc56
[ "MIT" ]
null
null
null
src/BruteForce.py
stevenwalton/Retro-Learner
74586c57b5dd5f6e82abaff99344285731f1fc56
[ "MIT" ]
null
null
null
import time import retro import FrameSkip import TimeLimit import Brute class BruteForce(): def __init__(self, game='Airstriker-Genesis', max_episode_steps=4500, timestep_limit=100_000_000, state=retro.State.DEFAULT, scenario=Non...
34.121212
98
0.525311
239
2,252
4.799163
0.301255
0.061029
0.091543
0.049695
0.071491
0.071491
0.071491
0.071491
0.071491
0
0
0.013738
0.385879
2,252
65
99
34.646154
0.815618
0
0
0.033898
0
0
0.059059
0
0
0
0
0
0
1
0.033898
false
0
0.084746
0
0.135593
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
911fe80423c3725cffb5c649027000c3b8755a5f
5,429
py
Python
tutorials/04-advanced/03-super-resolution-onnx/main.py
yakhyo/PyTorch-Tutorials
163287bc735b09c366dbdfa3989e81acaef6fa1f
[ "MIT" ]
7
2021-05-16T14:36:20.000Z
2021-12-30T07:07:31.000Z
tutorials/04-advanced/03-super-resolution-onnx/main.py
yakhyo/PyTorch-Tutorials
163287bc735b09c366dbdfa3989e81acaef6fa1f
[ "MIT" ]
null
null
null
tutorials/04-advanced/03-super-resolution-onnx/main.py
yakhyo/PyTorch-Tutorials
163287bc735b09c366dbdfa3989e81acaef6fa1f
[ "MIT" ]
3
2021-05-17T12:11:11.000Z
2021-11-25T10:06:14.000Z
import io import numpy as np import torch.utils.model_zoo as model_zoo import torch.onnx import torch.nn as nn import torch.nn.init as init # ================================================================ # # Building the Model # # ====================================...
40.514925
120
0.592374
679
5,429
4.559647
0.318115
0.020672
0.013566
0.023256
0.209625
0.187985
0.165698
0.126938
0.062016
0.062016
0
0.022775
0.215509
5,429
133
121
40.819549
0.704156
0.315528
0
0.027027
0
0
0.095614
0.032961
0
0
0
0
0.013514
1
0.054054
false
0
0.135135
0.013514
0.22973
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91209eac140dfeb3483e2df389892eaa71a76d66
8,963
py
Python
features/steps/section.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
3,031
2015-01-02T11:11:24.000Z
2022-03-30T00:57:17.000Z
features/steps/section.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
934
2015-01-06T20:53:56.000Z
2022-03-28T10:08:03.000Z
features/steps/section.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
901
2015-01-07T18:22:07.000Z
2022-03-31T18:38:51.000Z
# encoding: utf-8 """ Step implementations for section-related features """ from __future__ import absolute_import, print_function, unicode_literals from behave import given, then, when from docx import Document from docx.enum.section import WD_ORIENT, WD_SECTION from docx.section import Section from docx.shared im...
34.340996
88
0.716278
1,197
8,963
5.015038
0.103592
0.058304
0.030318
0.018324
0.712477
0.666
0.53923
0.402299
0.334666
0.239547
0
0.003337
0.164119
8,963
260
89
34.473077
0.797918
0.027111
0
0.326203
0
0
0.255827
0.047652
0
0
0
0
0.090909
1
0.15508
false
0
0.037433
0
0.192513
0.005348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9120d4c7c58950a1c79165874f5716c1d3e76e4c
4,421
py
Python
scipy/sparse/csgraph/_laplacian.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
1
2018-10-04T15:34:14.000Z
2018-10-04T15:34:14.000Z
scipy/sparse/csgraph/_laplacian.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/sparse/csgraph/_laplacian.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
""" Laplacian of a compressed-sparse graph """ # Authors: Aric Hagberg <hagberg@lanl.gov> # Gael Varoquaux <gael.varoquaux@normalesup.org> # Jake Vanderplas <vanderplas@astro.washington.edu> # License: BSD import numpy as np from scipy.sparse import isspmatrix, coo_matrix #########################...
32.507353
86
0.570007
605
4,421
4.072727
0.276033
0.044643
0.00974
0.00974
0.261364
0.163961
0.133117
0.092532
0.06737
0.06737
0
0.025232
0.291789
4,421
135
87
32.748148
0.761737
0.406922
0
0.393443
0
0
0.018251
0
0
0
0
0
0
1
0.04918
false
0
0.032787
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
912495f93184573b9203df22fc8bb27548652827
14,605
py
Python
coltran/run.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
coltran/run.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
coltran/run.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.940191
135
0.692503
1,912
14,605
5.065377
0.190377
0.023748
0.011564
0.018172
0.317914
0.299226
0.2508
0.218379
0.179866
0.14951
0
0.005181
0.180692
14,605
417
136
35.023981
0.804195
0.106676
0
0.228956
0
0.003367
0.114146
0.007499
0
0
0
0
0.003367
1
0.043771
false
0
0.057239
0.006734
0.127946
0.006734
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9125319261fb94bc69a897401585fdd40320b1d2
25,070
py
Python
train_multi_human.py
wenliangdai/sunets-reproduce
d92efa80e8314aea153d498cce3c9c6e30c252bd
[ "MIT" ]
2
2018-07-02T16:03:07.000Z
2018-07-02T16:03:07.000Z
train_multi_human.py
wenliangdai/sunets-reproduce
d92efa80e8314aea153d498cce3c9c6e30c252bd
[ "MIT" ]
null
null
null
train_multi_human.py
wenliangdai/sunets-reproduce
d92efa80e8314aea153d498cce3c9c6e30c252bd
[ "MIT" ]
null
null
null
import argparse import math import os import pickle import random import sys import numpy as np import torch import torch.backends.cudnn as cudnn from torch import nn from torch.optim import lr_scheduler from torch.utils import data import torchvision.transforms as transforms import transforms as extended_transforms ...
55.835189
210
0.657359
3,311
25,070
4.704017
0.098762
0.047769
0.076276
0.048411
0.657785
0.608411
0.574767
0.538299
0.506196
0.451043
0
0.025395
0.206781
25,070
448
211
55.959821
0.75782
0.081611
0
0.129032
0
0
0.065947
0.003306
0
0
0
0
0
1
0.008798
false
0
0.055718
0
0.064516
0.014663
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9125a2258a5cbeeafce52644773c51a924d107ac
392
py
Python
exemplos/exemplo-aula-14-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
exemplos/exemplo-aula-14-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
exemplos/exemplo-aula-14-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
# Apresentação print('Programa para somar 8 valores utilizando vetores/listas') print() # Declaração do vetor valores = [0, 0, 0, 0, 0, 0, 0, 0] # Solicita os valores for i in range(len(valores)): valores[i] = int(input('Informe o valor: ')) # Cálculo da soma soma = 0 for i in range(len(valores)): soma += va...
20.631579
64
0.67602
64
392
4.140625
0.546875
0.05283
0.067925
0.075472
0.188679
0.188679
0.030189
0
0
0
0
0.031447
0.188776
392
18
65
21.777778
0.801887
0.229592
0
0.222222
0
0
0.334459
0
0
0
0
0
0
1
0
false
0
0
0
0
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
9125c9f61c337477b68228ea1ba426e48ce06b1a
333
py
Python
day3/p1.py
pwicks86/adventofcode2015
fba7cc8f6942f43f5b0226a0ac70365630f14cbd
[ "MIT" ]
null
null
null
day3/p1.py
pwicks86/adventofcode2015
fba7cc8f6942f43f5b0226a0ac70365630f14cbd
[ "MIT" ]
null
null
null
day3/p1.py
pwicks86/adventofcode2015
fba7cc8f6942f43f5b0226a0ac70365630f14cbd
[ "MIT" ]
null
null
null
from collections import defaultdict f = open("input.txt") d = f.read() houses = defaultdict(int,{(0,0):1}) cur = [0,0] for c in d: if c == "<": cur[0] -= 1 if c == ">": cur[0] += 1 if c == "v": cur[1] += 1 if c == "^": cur[1] -= 1 houses[tuple(cur)]+=1 print(len(hou...
18.5
35
0.456456
53
333
2.867925
0.45283
0.078947
0.118421
0.092105
0.125
0.125
0.125
0
0
0
0
0.061135
0.312312
333
17
36
19.588235
0.60262
0
0
0
0
0
0.039039
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91266dc2fa03da47339e3882e71342b1ee45462b
2,326
py
Python
pbr/config/blend_config.py
NUbots/NUpbr
49b0d2abd15512a93bfe21157269288c9ec4c54d
[ "MIT" ]
1
2019-03-25T04:37:06.000Z
2019-03-25T04:37:06.000Z
pbr/config/blend_config.py
NUbots/NUpbr
49b0d2abd15512a93bfe21157269288c9ec4c54d
[ "MIT" ]
3
2020-07-24T11:55:48.000Z
2022-02-20T20:49:17.000Z
pbr/config/blend_config.py
NUbots/NUpbr
49b0d2abd15512a93bfe21157269288c9ec4c54d
[ "MIT" ]
null
null
null
# Blender-specific Configuration Settings from math import pi render = { "render_engine": "CYCLES", "render": {"cycles_device": "GPU"}, "dimensions": {"resolution": [1280, 1024], "percentage": 100.0}, "sampling": {"cycles_samples": 256, "cycles_preview_samples": 16}, "light_paths": { "tran...
31.432432
85
0.503439
296
2,326
3.817568
0.429054
0.033628
0.013274
0.050442
0.214159
0.141593
0.102655
0
0
0
0
0.115362
0.258383
2,326
73
86
31.863014
0.53971
0.016767
0
0.03125
0
0
0.377243
0.020569
0
0
0
0
0
1
0
false
0
0.015625
0
0.015625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
912692288f987cd8f54127db16d2b577edc80fc1
7,022
py
Python
simglucose/controller/basal_bolus_ctrller.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/controller/basal_bolus_ctrller.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/controller/basal_bolus_ctrller.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
from .base import Controller from .base import Action import numpy as np import pandas as pd import logging from collections import namedtuple from tqdm import tqdm logger = logging.getLogger(__name__) CONTROL_QUEST = 'simglucose/params/Quest.csv' PATIENT_PARA_FILE = 'simglucose/params/vpatient_params.csv' ParamTup = ...
38.582418
99
0.602108
929
7,022
4.386437
0.234661
0.013252
0.01227
0.011779
0.11681
0.063313
0.037301
0
0
0
0
0.014783
0.296782
7,022
182
100
38.582418
0.81045
0.182569
0
0.139706
0
0
0.043393
0.011476
0
0
0
0
0
1
0.088235
false
0.007353
0.051471
0.007353
0.213235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
912788fe05c2b0029d03454b315f2758ce890c5a
6,025
py
Python
ceilometer/event/trait_plugins.py
redhat-openstack/ceilometer
9e503d7068889e52e9144079de331ed51676e535
[ "Apache-2.0" ]
1
2016-03-10T06:55:45.000Z
2016-03-10T06:55:45.000Z
ceilometer/event/trait_plugins.py
redhat-openstack/ceilometer
9e503d7068889e52e9144079de331ed51676e535
[ "Apache-2.0" ]
null
null
null
ceilometer/event/trait_plugins.py
redhat-openstack/ceilometer
9e503d7068889e52e9144079de331ed51676e535
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Rackspace Hosting. # # 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...
37.42236
77
0.550539
685
6,025
4.748905
0.308029
0.0332
0.013526
0.020904
0.070704
0.052874
0.044882
0.044882
0.044882
0.030741
0
0.007966
0.374938
6,025
160
78
37.65625
0.855815
0.616266
0
0.195652
0
0
0.010274
0
0
0
0
0
0
1
0.130435
false
0
0.043478
0
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
912c4617e4d0718d34c2b278ca0d1aef755136f4
59,222
py
Python
nonlinear/aorta/nonlinearCasesCreation_aorta.py
HaolinCMU/Soft_tissue_tracking
8592b87066ddec84a3aefc18240303cb085cf34c
[ "MIT" ]
3
2020-08-25T05:10:34.000Z
2020-09-18T01:50:33.000Z
nonlinear/aorta/nonlinearCasesCreation_aorta.py
HaolinCMU/Soft_tissue_tracking
8592b87066ddec84a3aefc18240303cb085cf34c
[ "MIT" ]
null
null
null
nonlinear/aorta/nonlinearCasesCreation_aorta.py
HaolinCMU/Soft_tissue_tracking
8592b87066ddec84a3aefc18240303cb085cf34c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 25 13:08:16 2020 @author: haolinl """ import copy import os import time import numpy as np import random import scipy.io # For extracting data from .mat file class inputFileGenerator(object): """ Generate input file for Abaqus. Unit s...
46.594807
238
0.590473
6,689
59,222
4.923456
0.095829
0.017369
0.01166
0.009717
0.390338
0.294507
0.233079
0.197796
0.175812
0.156196
0
0.010634
0.30926
59,222
1,270
239
46.631496
0.794436
0.322228
0
0.121442
0
0
0.075736
0.009897
0
0
0
0
0
1
0.051233
false
0
0.011385
0
0.096774
0.001898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
912ed2b516655605fdb89fa39bcc4f1ec0c3ed2a
2,306
py
Python
Packs/HealthCheck/Scripts/HealthCheckIncidentsCreatedMonthly/HealthCheckIncidentsCreatedMonthly.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/HealthCheck/Scripts/HealthCheckIncidentsCreatedMonthly/HealthCheckIncidentsCreatedMonthly.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/HealthCheck/Scripts/HealthCheckIncidentsCreatedMonthly/HealthCheckIncidentsCreatedMonthly.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 ctx = demisto.context() dataFromCtx = ctx.get("widgets") if not dataFromCtx: incident = demisto.incidents()[0] accountName = incident.get('account') accountName = f"acc_{accountName}" if accountName != "" else "" ...
27.452381
110
0.423677
158
2,306
6.14557
0.493671
0.046344
0.030896
0.07415
0.084449
0.084449
0.084449
0
0
0
0
0.02392
0.437988
2,306
83
111
27.783133
0.725309
0.019081
0
0.30137
0
0
0.234825
0.040319
0
0
0
0
0
1
0
false
0
0.027397
0
0.027397
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
912f4cb2d5b6031823d833fa3533c0b3fca9c0fd
13,099
py
Python
Bert_training.py
qzlydao/Bert_Sentiment_Analysis
2da2d0c6da2cdb55f37ff0a7e95f0ea4876b2d61
[ "Apache-2.0" ]
null
null
null
Bert_training.py
qzlydao/Bert_Sentiment_Analysis
2da2d0c6da2cdb55f37ff0a7e95f0ea4876b2d61
[ "Apache-2.0" ]
null
null
null
Bert_training.py
qzlydao/Bert_Sentiment_Analysis
2da2d0c6da2cdb55f37ff0a7e95f0ea4876b2d61
[ "Apache-2.0" ]
null
null
null
from torch.utils.data import DataLoader from dataset.wiki_dataset import BERTDataset from models.bert_model import * from tqdm import tqdm import numpy as np import pandas as pd import os config = {} config['train_corpus_path'] = './corpus/train_wiki.txt' config['test_corpus_path'] = './corpus/test_wiki.txt' config[...
41.062696
130
0.579128
1,641
13,099
4.310786
0.176722
0.029686
0.017812
0.012723
0.283291
0.192112
0.162567
0.119452
0.104891
0.086231
0
0.011248
0.314528
13,099
318
131
41.191824
0.77659
0.066875
0
0.157658
0
0.004505
0.114819
0.014383
0
0
0
0.003145
0
1
0.054054
false
0
0.031532
0
0.126126
0.022523
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
913073679e4abf540c0706db4723633ae6619d7d
5,757
py
Python
python/triton/language/random.py
appliedml85/triton
8bedcce9befbbe95d8fe0a082718edc4050e2831
[ "MIT" ]
1
2021-09-03T15:58:49.000Z
2021-09-03T15:58:49.000Z
python/triton/language/random.py
appliedml85/triton
8bedcce9befbbe95d8fe0a082718edc4050e2831
[ "MIT" ]
null
null
null
python/triton/language/random.py
appliedml85/triton
8bedcce9befbbe95d8fe0a082718edc4050e2831
[ "MIT" ]
null
null
null
import triton import triton.language as tl # Notes # 1. triton doesn't support uint32, so we use int32 instead and benefit from the fact that two's complement operations are equivalent to uint operations. # 2. multiply_low_high is currently inefficient. # 3. Even though technically philox sampling outputs int, in man...
27.545455
153
0.639396
916
5,757
3.911572
0.220524
0.034608
0.038515
0.051354
0.500419
0.469718
0.448228
0.448228
0.433715
0.433715
0
0.089436
0.238666
5,757
208
154
27.677885
0.72804
0.394303
0
0.398148
0
0
0
0
0
0
0.00245
0
0
1
0.157407
false
0
0.018519
0.064815
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
9130e2a60db5f7dd70d5dc6252d49d770a1edb17
6,567
py
Python
platypush/backend/joystick/linux/__init__.py
BlackLight/platypush
6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a
[ "MIT" ]
228
2018-01-30T11:17:09.000Z
2022-03-24T11:22:26.000Z
platypush/backend/joystick/linux/__init__.py
BlackLight/platypush
6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a
[ "MIT" ]
167
2017-12-11T19:35:38.000Z
2022-03-27T14:45:30.000Z
platypush/backend/joystick/linux/__init__.py
BlackLight/runbullet
8d26c8634d2677b4402f0a21b9ab8244b44640db
[ "MIT" ]
16
2018-05-03T07:31:56.000Z
2021-12-05T19:27:37.000Z
import array import struct import time from fcntl import ioctl from typing import IO from platypush.backend import Backend from platypush.message.event.joystick import JoystickConnectedEvent, JoystickDisconnectedEvent, \ JoystickButtonPressedEvent, JoystickButtonReleasedEvent, JoystickAxisEvent class JoystickLin...
34.563158
115
0.536166
681
6,567
5.057269
0.433186
0.029036
0.036585
0.050523
0.117305
0.013357
0.013357
0
0
0
0
0.076202
0.350541
6,567
189
116
34.746032
0.731301
0.198873
0
0.057143
0
0
0.092263
0
0
0
0.069052
0
0
1
0.021429
false
0
0.05
0
0.092857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91319c7d1f44146497a5047e81aae4b710f7a353
10,043
py
Python
src/modules/sensors/vehicle_magnetometer/mag_compensation/python/mag_compensation.py
SaxionMechatronics/Firmware
7393d5d7610dc8d2cb64d90a5359b6c561fb642a
[ "BSD-3-Clause" ]
4,224
2015-01-02T11:51:02.000Z
2020-10-27T23:42:28.000Z
src/modules/sensors/vehicle_magnetometer/mag_compensation/python/mag_compensation.py
SaxionMechatronics/Firmware
7393d5d7610dc8d2cb64d90a5359b6c561fb642a
[ "BSD-3-Clause" ]
11,736
2015-01-01T11:59:16.000Z
2020-10-28T17:13:38.000Z
src/modules/sensors/vehicle_magnetometer/mag_compensation/python/mag_compensation.py
SaxionMechatronics/Firmware
7393d5d7610dc8d2cb64d90a5359b6c561fb642a
[ "BSD-3-Clause" ]
11,850
2015-01-02T14:54:47.000Z
2020-10-28T16:42:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ File: mag_compensation.py Author: Tanja Baumann Email: tanja@auterion.com Github: https://github.com/baumanta Description: Computes linear coefficients for mag compensation from thrust and current Usage: python mag_compensation.py /path/to/log/logfile.ulg curr...
36.787546
279
0.685054
1,582
10,043
4.138432
0.183312
0.028868
0.039713
0.048877
0.502062
0.436689
0.319383
0.242859
0.242859
0.219032
0
0.02804
0.154834
10,043
272
280
36.922794
0.743285
0.082346
0
0.137056
0
0
0.180661
0.004786
0
0
0
0
0
1
0.010152
false
0.005076
0.040609
0
0.071066
0.045685
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
913206ffbcd62d973e6003afaac405c6a7ea1d3b
524
py
Python
portfolio_optimization/constants.py
AI-Traiding-Team/paired_trading
72d4dd0071314e2f0efaa26931ca7339199fc998
[ "MIT" ]
1
2022-03-26T23:21:51.000Z
2022-03-26T23:21:51.000Z
portfolio_optimization/constants.py
AI-Traiding-Team/paired_trading
72d4dd0071314e2f0efaa26931ca7339199fc998
[ "MIT" ]
null
null
null
portfolio_optimization/constants.py
AI-Traiding-Team/paired_trading
72d4dd0071314e2f0efaa26931ca7339199fc998
[ "MIT" ]
3
2021-12-07T07:39:43.000Z
2022-01-24T05:05:55.000Z
import os path1 = "outputs" path2 = "outputs/_imgs" path3 = "outputs/max_sharpe_weights" path4 = "outputs/opt_portfolio_trades" try: os.mkdir(path1) except OSError: print ("Директория %s уже создана" % path1) else: print ("Успешно создана директория %s " % path1) try: os.makedirs(path2) os.makedi...
20.153846
52
0.704198
66
524
5.469697
0.515152
0.083102
0.099723
0
0
0
0
0
0
0
0
0.025463
0.175573
524
26
53
20.153846
0.810185
0
0
0.285714
0
0
0.39619
0.102857
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.190476
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91329b52b2eb8891b64c02d1b241dca7cd47466e
26,007
py
Python
mypy/transformtype.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
1
2019-06-27T11:34:27.000Z
2019-06-27T11:34:27.000Z
mypy/transformtype.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
mypy/transformtype.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
"""Transform classes for runtime type checking.""" from typing import Undefined, List, Set, Any, cast, Tuple, Dict from mypy.nodes import ( TypeDef, Node, FuncDef, VarDef, Block, Var, ExpressionStmt, TypeInfo, SuperExpr, NameExpr, CallExpr, MDEF, MemberExpr, ReturnStmt, AssignmentStmt, TypeExpr, PassStmt,...
39.285498
79
0.560541
2,971
26,007
4.742174
0.129586
0.011924
0.012492
0.008517
0.27305
0.231812
0.196891
0.165519
0.144723
0.119881
0
0.002001
0.346714
26,007
661
80
39.344932
0.827251
0.245742
0
0.232984
0
0
0.017701
0.004146
0
0
0
0.003026
0.007853
1
0.073298
false
0.007853
0.041885
0.005236
0.196335
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9134284163c48ec784f6cf8bb5ff49c9902c49ec
2,760
py
Python
classification/imaterialist_challenge_furniture_2018/configs/train/train_inceptionresnetv2_350_ssd_like_v3.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
11
2018-04-07T17:49:58.000Z
2022-03-15T07:18:18.000Z
classification/imaterialist_challenge_furniture_2018/configs/train/train_inceptionresnetv2_350_ssd_like_v3.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
null
null
null
classification/imaterialist_challenge_furniture_2018/configs/train/train_inceptionresnetv2_350_ssd_like_v3.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
null
null
null
# Basic training configuration file from torch.optim import RMSprop from torch.optim.lr_scheduler import MultiStepLR from torchvision.transforms import RandomHorizontalFlip, Compose from torchvision.transforms import RandomResizedCrop, RandomAffine, RandomApply from torchvision.transforms import ColorJitter, ToTensor, ...
30
87
0.659058
323
2,760
5.44582
0.396285
0.010233
0.066515
0.009096
0.308698
0.232518
0.210347
0.129619
0.078454
0.078454
0
0.06221
0.219565
2,760
91
88
30.32967
0.75441
0.02029
0
0.095238
0
0
0.068123
0.028878
0
0
0
0
0
1
0
false
0
0.126984
0
0.126984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
913439b2a09a820bfc3faefc3e105469f128a1a8
1,352
py
Python
examples/qmmm/02-mcscf.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
501
2018-12-06T23:48:17.000Z
2022-03-31T11:53:18.000Z
examples/qmmm/02-mcscf.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
710
2018-11-26T22:04:52.000Z
2022-03-30T03:53:12.000Z
examples/qmmm/02-mcscf.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
273
2018-11-26T10:10:24.000Z
2022-03-30T12:25:28.000Z
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' A simple example to run MCSCF with background charges. ''' import numpy from pyscf import gto, scf, mcscf, qmmm mol = gto.M(atom=''' C 1.1879 -0.3829 0.0000 C 0.0000 0.5526 0.0000 O -1.1867 -0.2472 0.0000 H -1.9237 0...
22.915254
76
0.637574
242
1,352
3.533058
0.400826
0.035088
0.018713
0.02807
0.283041
0.276023
0.250292
0.14152
0.102924
0.102924
0
0.147619
0.223373
1,352
58
77
23.310345
0.666667
0.316568
0
0.375
0
0
0.330752
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
9136706832c51a492458e311e9d6b0efd4abea13
2,931
py
Python
vesper/mpg_ranch/nfc_detector_low_score_classifier_1_0/classifier.py
RichardLitt/Vesper
5360844f42a06942e7684121c650b08cf8616285
[ "MIT" ]
29
2017-07-10T14:49:15.000Z
2022-02-02T23:14:38.000Z
vesper/mpg_ranch/nfc_detector_low_score_classifier_1_0/classifier.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
167
2015-03-17T14:45:22.000Z
2022-03-30T21:00:05.000Z
vesper/mpg_ranch/nfc_detector_low_score_classifier_1_0/classifier.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
4
2015-02-06T03:30:27.000Z
2020-12-27T08:38:52.000Z
""" Module containing low score classifier for MPG Ranch NFC detectors. An instance of the `Classifier` class of this module assigns the `LowScore` classification to a clip if the clip has no `Classification` annotation and has a `DetectorScore` annotation whose value is less than a threshold. This classifier is inte...
28.735294
77
0.616172
323
2,931
5.427245
0.315789
0.036509
0.034227
0.03765
0.128351
0.128351
0.10154
0.073018
0.073018
0.073018
0
0.017137
0.323098
2,931
101
78
29.019802
0.866431
0.234391
0
0.125
0
0
0.072197
0
0
0
0
0
0
1
0.104167
false
0
0.0625
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
91374929866f2c29362313f46503faaf0a90ed51
1,506
py
Python
setup.py
yitzikc/athena2pd
d2d6b886a70e958f51d90103600572152eaa7bb9
[ "MIT" ]
1
2020-04-05T18:41:17.000Z
2020-04-05T18:41:17.000Z
setup.py
yitzikc/athena2pd
d2d6b886a70e958f51d90103600572152eaa7bb9
[ "MIT" ]
null
null
null
setup.py
yitzikc/athena2pd
d2d6b886a70e958f51d90103600572152eaa7bb9
[ "MIT" ]
1
2021-04-22T09:22:31.000Z
2021-04-22T09:22:31.000Z
from setuptools import setup, find_packages def find_version(path): import re # path shall be a plain ascii tetxt file s = open(path, 'rt').read() version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", s, re.M) if version_match: return version_match.group(1) raise RuntimeErro...
33.466667
119
0.653386
183
1,506
5.224044
0.617486
0.037657
0.033473
0.050209
0.073222
0.073222
0.073222
0.073222
0
0
0
0.015075
0.207171
1,506
45
120
33.466667
0.785595
0.025232
0
0.051282
0
0
0.316973
0.032038
0
0
0
0
0
1
0.076923
false
0
0.051282
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
913761b87b7ebbbec82bddc1bdba8144eb580e3d
436
py
Python
PythonBasics/ExamPreparation/FamilyTrip.py
achoraev/SoftUni
0cc7db470a096cc33bbe0ca6bd90060b79120573
[ "Apache-2.0" ]
null
null
null
PythonBasics/ExamPreparation/FamilyTrip.py
achoraev/SoftUni
0cc7db470a096cc33bbe0ca6bd90060b79120573
[ "Apache-2.0" ]
null
null
null
PythonBasics/ExamPreparation/FamilyTrip.py
achoraev/SoftUni
0cc7db470a096cc33bbe0ca6bd90060b79120573
[ "Apache-2.0" ]
null
null
null
budget = float(input()) nights = int(input()) price_night = float(input()) percent_extra = int(input()) if nights > 7: price_night = price_night - (price_night * 0.05) sum = nights * price_night total_sum = sum + (budget * percent_extra / 100) if total_sum <= budget: print(f"Ivanovi will be left ...
29.066667
88
0.655963
63
436
4.365079
0.460317
0.181818
0.109091
0.145455
0
0
0
0
0
0
0
0.025714
0.197248
436
15
89
29.066667
0.76
0
0
0
0
0
0.264775
0
0
0
0
0
0
1
0
false
0
0
0
0
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
91381ad1149218813852e6f68213b5362dda4a67
2,573
py
Python
tex_live_package_manager/progress.py
csch0/SublimeText-TeX-Live-Package-Manager
ab21bd49a945f611250613e9cb862a7703dc534f
[ "Unlicense", "MIT" ]
2
2018-11-03T16:15:59.000Z
2018-11-23T16:14:57.000Z
tex_live_package_manager/progress.py
csch0/SublimeText-TeX-Live-Package-Manager
ab21bd49a945f611250613e9cb862a7703dc534f
[ "Unlicense", "MIT" ]
1
2016-12-08T05:39:58.000Z
2016-12-08T05:39:58.000Z
tex_live_package_manager/progress.py
csch0/SublimeText-TeX-Live-Package-Manager
ab21bd49a945f611250613e9cb862a7703dc534f
[ "Unlicense", "MIT" ]
null
null
null
import sublime, sublime_plugin import threading class ProcessQueueManager(): __shared = {} items = [] thread = None # Current item details messages = None function = None callback = None # Progress Bar preferences i = 0 size = 8 add = 1 def __new__(cls, *args, **kwargs): inst = object.__new__(cls) ...
23.605505
86
0.68869
351
2,573
4.940171
0.25641
0.05767
0.037486
0.039216
0.202422
0.153979
0.153979
0.11015
0.040369
0
0
0.011154
0.198601
2,573
109
87
23.605505
0.829777
0.169841
0
0.140625
0
0
0.028289
0
0
0
0
0
0
1
0.109375
false
0
0.03125
0
0.328125
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91382da4e9ec5e3e22d31caf7faabb09a28c2093
10,199
py
Python
moscow_routes_parser/t_mos_ru.py
rscprof/moscow_routes_parser
692627dd43d62f70e3e12a761897571c79a022a0
[ "MIT" ]
null
null
null
moscow_routes_parser/t_mos_ru.py
rscprof/moscow_routes_parser
692627dd43d62f70e3e12a761897571c79a022a0
[ "MIT" ]
null
null
null
moscow_routes_parser/t_mos_ru.py
rscprof/moscow_routes_parser
692627dd43d62f70e3e12a761897571c79a022a0
[ "MIT" ]
null
null
null
import html import json import logging import re from abc import abstractmethod from datetime import datetime, time from typing import Optional import requests from moscow_routes_parser.model import Route, Timetable, Equipment, Timetable_builder from moscow_routes_parser.model_impl import Timetable_builder_t_mos_ru ...
42.144628
295
0.531817
1,121
10,199
4.632471
0.199822
0.02022
0.018486
0.009243
0.289621
0.219141
0.176776
0.14404
0.122858
0.067013
0
0.022978
0.359937
10,199
241
296
42.319502
0.772518
0.166095
0
0.285714
0
0.005714
0.093085
0.038685
0
0
0
0
0
1
0.045714
false
0.022857
0.057143
0
0.148571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
913b82f09ffffabfd9cdacbe8830d13b360f655c
6,762
py
Python
web/api/get_summary_data.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
2
2015-04-11T12:22:41.000Z
2016-08-18T11:12:06.000Z
web/api/get_summary_data.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
84
2015-01-22T14:33:49.000Z
2015-04-01T23:15:29.000Z
web/api/get_summary_data.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
1
2015-04-16T03:10:39.000Z
2015-04-16T03:10:39.000Z
from web.api import BaseAPI from utils import mongo import json class DataApi(BaseAPI): def __init__(self): BaseAPI.__init__(self) self._db = mongo.MongoInterface() self.query = {} self.fields = { "donation_count": "$influences.electoral_commission.donation_count", ...
40.981818
102
0.584147
668
6,762
5.525449
0.136228
0.043349
0.052831
0.065023
0.661338
0.625034
0.597941
0.458683
0.458683
0.445137
0
0.000431
0.313665
6,762
164
103
41.231707
0.794872
0.034161
0
0.342857
0
0
0.247394
0.124157
0
0
0
0
0
1
0.064286
false
0
0.021429
0.014286
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
913c3c69be248515aa6faa8629c29e1819e26c9e
21,616
py
Python
neutron/common/ovn/utils.py
guillermomolina/neutron
bd2933a2588d1e0b18790dd719ca1d89aa4a0c8d
[ "Apache-2.0" ]
3
2021-02-17T09:49:14.000Z
2022-01-19T08:40:34.000Z
neutron/common/ovn/utils.py
guillermomolina/neutron
bd2933a2588d1e0b18790dd719ca1d89aa4a0c8d
[ "Apache-2.0" ]
null
null
null
neutron/common/ovn/utils.py
guillermomolina/neutron
bd2933a2588d1e0b18790dd719ca1d89aa4a0c8d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.320261
79
0.672141
3,022
21,616
4.570483
0.166446
0.01267
0.007095
0.006082
0.252534
0.17854
0.147191
0.092963
0.065957
0.059079
0
0.005789
0.24084
21,616
611
80
35.378069
0.835893
0.263462
0
0.125731
0
0
0.068229
0.00475
0
0
0
0
0
1
0.149123
false
0.002924
0.078947
0.070175
0.400585
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
913ca9c4582e3db5d9a5c8dc80fedece649fbdb9
1,082
py
Python
Submods/MAS Additions/MASM/scripts/midi_input.py
CaptainHorse/MAS-Additions
5714aaf8cfa3c57432f6231795cbe1d75df46f74
[ "MIT" ]
13
2019-09-24T00:09:17.000Z
2022-02-26T20:24:18.000Z
Submods/MAS Additions/MASM/scripts/midi_input.py
CaptainHorse/MAS-Additions
5714aaf8cfa3c57432f6231795cbe1d75df46f74
[ "MIT" ]
30
2019-06-28T03:16:33.000Z
2022-01-19T11:49:59.000Z
Submods/MAS Additions/MASM/scripts/midi_input.py
CaptainHorse/MAS-Additions
5714aaf8cfa3c57432f6231795cbe1d75df46f74
[ "MIT" ]
4
2019-10-04T01:59:17.000Z
2022-02-26T20:24:20.000Z
import mido from socketer import MASM inPort = None doReadInput = False def Start(): global inPort try: print(f"MIDI inputs: {mido.get_input_names()}") inPort = mido.open_input() print(f"MIDI input open: {inPort}") except Exception as e: inPort = None print(f"Could not open MIDI input: {e}") def Update(...
29.243243
99
0.677449
162
1,082
4.45679
0.395062
0.027701
0.078947
0.080332
0.252078
0.160665
0.160665
0.094183
0.094183
0.094183
0
0.021814
0.195009
1,082
37
100
29.243243
0.807118
0.07024
0
0.294118
0
0
0.18607
0.023881
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
913f9ce1958e1ba194c9448681b6fa2b1b835522
1,668
py
Python
baseplate_py_upgrader/docker.py
reddit/baseplate.py-upgrader
2e4b019de7c22e2d2467eba488867fe81d7d5fc1
[ "BSD-3-Clause" ]
6
2020-07-09T02:25:23.000Z
2021-09-24T17:28:41.000Z
baseplate_py_upgrader/docker.py
Seanpm2001-reddit/baseplate.py-upgrader
a554418c638022b461cf5cae17e894280cf76a25
[ "BSD-3-Clause" ]
9
2019-08-13T20:29:04.000Z
2022-03-04T19:11:47.000Z
baseplate_py_upgrader/docker.py
Seanpm2001-reddit/baseplate.py-upgrader
a554418c638022b461cf5cae17e894280cf76a25
[ "BSD-3-Clause" ]
4
2020-12-11T21:59:37.000Z
2022-03-04T00:10:43.000Z
import logging import re from pathlib import Path from typing import Match logger = logging.getLogger(__name__) IMAGE_RE = re.compile( r"/baseplate-py:(?P<version>[0-9.]+(\.[0-9]+)?)-py(?P<python>[23]\.[0-9]+)-(?P<distro>(bionic|buster))(?P<repo>-artifactory)?(?P<dev>-dev)?" ) def upgrade_docker_image_refere...
30.327273
144
0.658873
227
1,668
4.612335
0.343612
0.073543
0.100287
0.106972
0.164279
0.131805
0.131805
0.131805
0
0
0
0.007502
0.200839
1,668
54
145
30.888889
0.777944
0
0
0
0
0.051282
0.193645
0.116906
0
0
0
0
0
1
0.076923
false
0
0.102564
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
913fb3fc99b72d4e97ce88b0037ce6490e6db9c1
1,249
py
Python
model/swtz_ty.py
ArcherLuo233/election-s-prediction
9da72cb855f6d61f9cdec6e15f7ca832629ba51a
[ "MIT" ]
null
null
null
model/swtz_ty.py
ArcherLuo233/election-s-prediction
9da72cb855f6d61f9cdec6e15f7ca832629ba51a
[ "MIT" ]
1
2022-01-26T01:23:26.000Z
2022-01-26T01:23:34.000Z
model/swtz_ty.py
ArcherLuo233/election-s-prediction
9da72cb855f6d61f9cdec6e15f7ca832629ba51a
[ "MIT" ]
1
2021-11-08T10:58:23.000Z
2021-11-08T10:58:23.000Z
from sqlalchemy import Column, ForeignKey, Integer, String, Text from model.base import Base class SWTZ_TY(Base): __tablename__ = 'swtz_ty' class_name = '商务团组-团员' foreign_key = 'swtz_id' export_docx = False export_handle_file = ['identity'] field = [ 'id', 'nickname', 'job', 'id_card...
26.020833
73
0.566853
140
1,249
4.892857
0.492857
0.065693
0.116788
0.128467
0
0
0
0
0
0
0
0.017917
0.285028
1,249
47
74
26.574468
0.74916
0
0
0
0
0
0.106571
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
913fde7505a4c384507f28eb2cee97a556b8c075
3,515
py
Python
amy/dashboard/tests/test_autoupdate_profile.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
53
2015-01-10T17:39:19.000Z
2019-06-12T17:36:34.000Z
amy/dashboard/tests/test_autoupdate_profile.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
1,176
2015-01-02T06:32:47.000Z
2019-06-18T11:57:47.000Z
amy/dashboard/tests/test_autoupdate_profile.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
44
2015-01-03T15:08:56.000Z
2019-06-09T05:33:08.000Z
from django.urls import reverse from consents.models import Consent, Term from workshops.models import KnowledgeDomain, Person, Qualification from workshops.tests.base import TestBase class TestAutoUpdateProfile(TestBase): def setUp(self): self._setUpAirports() self._setUpLessons() self._...
34.80198
83
0.586629
377
3,515
5.331565
0.310345
0.063682
0.027861
0.029851
0.228856
0.112438
0.082587
0.049751
0
0
0
0.003992
0.28734
3,515
100
84
35.15
0.798403
0.011664
0
0.046512
0
0
0.098243
0
0
0
0
0
0.116279
1
0.034884
false
0.023256
0.046512
0
0.093023
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9140f295d54089cb5cee0de94bb54febfe097979
4,823
py
Python
bot/recognizer_bot/yolo/common/utils.py
kprokofi/animal-recognition-with-voice
e9e5235315255eb6e17df3dba616b2ed4c902c92
[ "MIT" ]
1
2021-03-18T05:51:10.000Z
2021-03-18T05:51:10.000Z
bot/recognizer_bot/yolo/common/utils.py
kprokofi/animal-recognition-with-voice
e9e5235315255eb6e17df3dba616b2ed4c902c92
[ "MIT" ]
3
2021-04-11T20:52:44.000Z
2021-06-13T13:46:08.000Z
bot/recognizer_bot/yolo/common/utils.py
kprokofi/animal-recognition-with-voice
e9e5235315255eb6e17df3dba616b2ed4c902c92
[ "MIT" ]
null
null
null
import numpy as np import time import cv2 import colorsys import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.layers import Activation, ReLU, Multiply # Custom objects from backbones package https://github.com/david8862/keras-YOLOv3-model-set/tree/master/common/backbones def mish(...
28.708333
120
0.618495
659
4,823
4.414264
0.330804
0.030938
0.016501
0.016501
0.01375
0
0
0
0
0
0
0.041526
0.261041
4,823
167
121
28.88024
0.774691
0.207755
0
0.060606
0
0
0.014781
0
0
0
0
0
0
1
0.131313
false
0.010101
0.070707
0.030303
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
91469ce6ec9fde95e8590b13e1386757a2494a57
1,374
py
Python
sow_generator/tasks.py
praekelt/sow-generator
eb5dab3b3231688966254a1797ced7eec67b6e8a
[ "BSD-3-Clause" ]
1
2016-04-14T08:34:48.000Z
2016-04-14T08:34:48.000Z
sow_generator/tasks.py
praekelt/sow-generator
eb5dab3b3231688966254a1797ced7eec67b6e8a
[ "BSD-3-Clause" ]
null
null
null
sow_generator/tasks.py
praekelt/sow-generator
eb5dab3b3231688966254a1797ced7eec67b6e8a
[ "BSD-3-Clause" ]
null
null
null
from github3 import login from github3.models import GitHubError from celery import task from celery.decorators import periodic_task from celery.task.schedules import crontab from sow_generator.models import Repository, AuthToken def _sync_repository(obj): dirty = False token = AuthToken.objects.get(id=1).to...
29.869565
72
0.621543
176
1,374
4.755682
0.403409
0.066906
0.060932
0.033453
0.188769
0.188769
0.188769
0.188769
0.188769
0.188769
0
0.004946
0.264192
1,374
45
73
30.533333
0.822948
0.051674
0
0.228571
0
0
0.035466
0
0
0
0
0
0
1
0.085714
false
0
0.171429
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91472db15a8c58afa56167fc11db5c1a1643924e
10,956
py
Python
multiworld/multiworld/core/image_env.py
yufeiwang63/ROLL
aba0b4530934946eb9c41fbe5a0d6c27775596ff
[ "MIT" ]
11
2020-11-04T03:15:27.000Z
2021-11-25T16:00:41.000Z
multiworld/multiworld/core/image_env.py
yufeiwang63/ROLL
aba0b4530934946eb9c41fbe5a0d6c27775596ff
[ "MIT" ]
null
null
null
multiworld/multiworld/core/image_env.py
yufeiwang63/ROLL
aba0b4530934946eb9c41fbe5a0d6c27775596ff
[ "MIT" ]
3
2020-11-19T14:16:56.000Z
2021-11-25T16:01:13.000Z
import random import cv2 import numpy as np import warnings from PIL import Image from gym.spaces import Box, Dict from multiworld.core.multitask_env import MultitaskEnv from multiworld.core.wrapper_env import ProxyEnv from multiworld.envs.env_util import concatenate_box_spaces from multiworld.envs.env_util import ge...
38.174216
104
0.621486
1,336
10,956
4.786677
0.170659
0.043784
0.052541
0.021267
0.247694
0.179672
0.078342
0.05301
0.05301
0.046286
0
0.006805
0.289157
10,956
286
105
38.307692
0.81433
0.08671
0
0.104348
0
0
0.092938
0.020177
0
0
0
0
0.013043
1
0.069565
false
0
0.043478
0.004348
0.178261
0.004348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91492cd2d90ac485784d8d45eca57302464591f8
21,084
py
Python
daemon/core/coreobj.py
shanv82/core
70abb8cc1426ffceb53a03e84edc26f56f9ed4c0
[ "BSD-2-Clause" ]
null
null
null
daemon/core/coreobj.py
shanv82/core
70abb8cc1426ffceb53a03e84edc26f56f9ed4c0
[ "BSD-2-Clause" ]
null
null
null
daemon/core/coreobj.py
shanv82/core
70abb8cc1426ffceb53a03e84edc26f56f9ed4c0
[ "BSD-2-Clause" ]
null
null
null
""" Defines the basic objects for CORE emulation: the PyCoreObj base class, along with PyCoreNode, PyCoreNet, and PyCoreNetIf. """ import os import shutil import socket import threading from socket import AF_INET from socket import AF_INET6 from core.data import NodeData, LinkData from core.enumerations import LinkTy...
27.852048
100
0.558338
2,345
21,084
4.952239
0.156077
0.019375
0.002325
0.006458
0.286231
0.247223
0.233015
0.198054
0.164213
0.15474
0
0.004872
0.357475
21,084
756
101
27.888889
0.852366
0.331057
0
0.262658
0
0
0.019024
0
0
0
0
0.003968
0
1
0.155063
false
0.006329
0.028481
0
0.281646
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
914969a6475944053d8a15e1118e2d12ecdc9855
349
py
Python
abc/128/b.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
3
2019-06-25T06:17:38.000Z
2019-07-13T15:18:51.000Z
abc/128/b.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
abc/128/b.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
# 入力 N = int(input()) S, P = ( zip(*( (s, int(p)) for s, p in (input().split() for _ in range(N)) )) if N else ((), ()) ) ans = '\n'.join( str(i) for _, _, i in sorted( zip( S, P, range(1, N + 1) ), key=lambda t: (t[0], -t[...
13.96
55
0.34384
49
349
2.387755
0.510204
0.051282
0
0
0
0
0
0
0
0
0
0.020833
0.449857
349
24
56
14.541667
0.588542
0.014327
0
0
0
0
0.005865
0
0
0
0
0
0
1
0
false
0
0
0
0
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
914b520c0a97da68019f1f6058aa11f3ec987d8a
1,915
py
Python
additional/hashcat_crack.py
mmmds/WirelessDiscoverCrackScan
2eda9bd7c474d91ea08511a7322f5ba14d034f3d
[ "MIT" ]
2
2020-02-09T15:35:05.000Z
2020-04-15T10:01:24.000Z
additional/hashcat_crack.py
mmmds/WirelessDiscoverCrackScan
2eda9bd7c474d91ea08511a7322f5ba14d034f3d
[ "MIT" ]
null
null
null
additional/hashcat_crack.py
mmmds/WirelessDiscoverCrackScan
2eda9bd7c474d91ea08511a7322f5ba14d034f3d
[ "MIT" ]
null
null
null
# External cracking script, part of https://github.com/mmmds/WirelessDiscoverCrackScan import datetime import subprocess import os ### CONFIGURATION HASHCAT_DIR = "C:\\hashcat-5.1.0" HASHCAT_EXE = "hashcat64.exe" LOG_FILE = "crack_log.txt" DICT_DIR = "./dicts" def load_dict_list(): for r,d,f in os.walk(DICT_DIR)...
27.357143
170
0.518538
254
1,915
3.807087
0.330709
0.010341
0.021717
0.031024
0.020683
0
0
0
0
0
0
0.026529
0.291384
1,915
69
171
27.753623
0.686072
0.051175
0
0.035714
0
0
0.09106
0
0
0
0
0
0
1
0.089286
false
0.017857
0.053571
0
0.196429
0.089286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
914cfd2421dd20bdadd6d7150cecf300e7699605
13,463
py
Python
lbrynet/file_manager/EncryptedFileManager.py
shyba/lbry
ab3278c50a8b7b5a8e9486a1c52be3d5e0c18297
[ "MIT" ]
1
2018-12-08T04:42:11.000Z
2018-12-08T04:42:11.000Z
lbrynet/file_manager/EncryptedFileManager.py
mrlucky9/lbry
bf6bc02828ed55e98a3002f487041acbd7841883
[ "MIT" ]
null
null
null
lbrynet/file_manager/EncryptedFileManager.py
mrlucky9/lbry
bf6bc02828ed55e98a3002f487041acbd7841883
[ "MIT" ]
null
null
null
""" Keep track of which LBRY Files are downloading and store their LBRY File specific metadata """ import logging import os from twisted.enterprise import adbapi from twisted.internet import defer, task, reactor from twisted.python.failure import Failure from lbrynet.reflector.reupload import reflect_stream from lbr...
40.18806
100
0.672733
1,695
13,463
5.021829
0.157522
0.078008
0.014803
0.015977
0.37453
0.239074
0.140625
0.104558
0.086466
0.080122
0
0.00199
0.253584
13,463
334
101
40.308383
0.845059
0.063507
0
0.18677
0
0
0.086035
0.003505
0
0
0
0.002994
0
1
0.14786
false
0.003891
0.054475
0.031128
0.291829
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
914ea6fbc1fedc5c88691906b2f1c1f56a6d040c
5,907
py
Python
fhir/immunizations_demo/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
null
null
null
fhir/immunizations_demo/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
22
2019-12-16T22:18:37.000Z
2022-03-12T00:04:43.000Z
fhir/immunizations_demo/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Copyright 2018 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 a...
34.54386
78
0.744033
838
5,907
5.088305
0.332936
0.0197
0.033537
0.025797
0.154081
0.089353
0.06637
0.046435
0.046435
0.046435
0
0.011838
0.156255
5,907
170
79
34.747059
0.8437
0.344507
0
0.023256
0
0
0.154311
0.01367
0
0
0
0
0
1
0.104651
false
0
0.023256
0
0.22093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91504bbaea6d8835c5bee931052df81b48164c98
8,305
py
Python
src/ychaos/core/verification/controller.py
sushilkar/ychaos
6801390f0faf553789e3384440a72a0705310738
[ "Apache-2.0" ]
null
null
null
src/ychaos/core/verification/controller.py
sushilkar/ychaos
6801390f0faf553789e3384440a72a0705310738
[ "Apache-2.0" ]
null
null
null
src/ychaos/core/verification/controller.py
sushilkar/ychaos
6801390f0faf553789e3384440a72a0705310738
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Yahoo # Licensed under the terms of the Apache 2.0 license. See the LICENSE file in the project root for terms import time from typing import Dict, List, Optional, Type from pydantic import validate_arguments from ...app_logger import AppLogger from ...testplan import SystemState from ...testplan....
37.40991
125
0.656352
906
8,305
5.846578
0.249448
0.064565
0.013593
0.016991
0.253162
0.201246
0.162356
0.111761
0.094393
0.058146
0
0.002651
0.273329
8,305
221
126
37.579186
0.875062
0.389043
0
0.056604
0
0
0.069456
0.013389
0
0
0
0
0.009434
1
0.04717
false
0
0.150943
0.009434
0.235849
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
915138c1e205dea19655e55c824d89b847b800d5
6,160
py
Python
labgraph/graphs/node_test_harness.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
124
2021-07-14T21:25:59.000Z
2022-03-08T20:40:16.000Z
labgraph/graphs/node_test_harness.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
46
2021-07-16T18:41:11.000Z
2022-03-31T20:53:00.000Z
labgraph/graphs/node_test_harness.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
22
2021-07-16T18:34:56.000Z
2022-03-31T15:12:06.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import asyncio import functools import inspect from contextlib import contextmanager from typing import ( Any, AsyncIterable, Awaitable, Callable, Generic, Iterator, List, Mapping, Optional, Sequence,...
30.49505
88
0.65276
827
6,160
4.70133
0.218863
0.040123
0.086934
0.013374
0.456276
0.401235
0.333076
0.291409
0.252058
0.210905
0
0.001308
0.255195
6,160
201
89
30.646766
0.84612
0.316396
0
0.296
0
0
0.044955
0.005245
0
0
0
0
0
1
0.072
false
0
0.096
0
0.216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9151eafe84027e81a61010f1c158d9786b978a93
837
py
Python
pygamelearning/lrud.py
edward70/2021Computing
df8fb818480a6e23f2eac736744294871ec0e38c
[ "MIT" ]
null
null
null
pygamelearning/lrud.py
edward70/2021Computing
df8fb818480a6e23f2eac736744294871ec0e38c
[ "MIT" ]
null
null
null
pygamelearning/lrud.py
edward70/2021Computing
df8fb818480a6e23f2eac736744294871ec0e38c
[ "MIT" ]
null
null
null
import pygame import sys pygame.init() clock = pygame.time.Clock() screen = pygame.display.set_mode([500, 500]) gameOn = True x1 = 0 y1 = 100 x2 = 100 y2 = 0 while gameOn == True: screen.fill([255,255,255]) for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() ...
17.808511
52
0.520908
117
837
3.717949
0.367521
0.018391
0.022989
0.041379
0
0
0
0
0
0
0
0.127273
0.342891
837
46
53
18.195652
0.663636
0
0
0.108108
0
0
0
0
0
0
0
0
0
1
0
false
0
0.054054
0
0.054054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91522a760e718a02b548df8a5987a17cb9ed54b7
3,198
py
Python
pytorch/xor/training_a_perceptron.py
e93fem/PyTorchNLPBook
c9ea9e0b3d1b8bba6a983b425c6c03dd79d3d6b0
[ "Apache-2.0" ]
null
null
null
pytorch/xor/training_a_perceptron.py
e93fem/PyTorchNLPBook
c9ea9e0b3d1b8bba6a983b425c6c03dd79d3d6b0
[ "Apache-2.0" ]
null
null
null
pytorch/xor/training_a_perceptron.py
e93fem/PyTorchNLPBook
c9ea9e0b3d1b8bba6a983b425c6c03dd79d3d6b0
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import matplotlib.pyplot as plt from torch import optim, nn from pytorch.xor.multilayer_perceptron import MultilayerPerceptron from pytorch.xor.utils import LABELS, get_toy_data, visualize_results, plot_intermediate_representations input_size = 2 output_size = len(set(LABELS)) num_hidd...
30.169811
104
0.688555
451
3,198
4.629712
0.32816
0.038314
0.021073
0.022989
0.220785
0.202586
0.191571
0.157088
0.157088
0.104406
0
0.028899
0.210131
3,198
106
105
30.169811
0.797704
0.089118
0
0.055556
0
0
0.105372
0.054063
0
0
0
0
0
1
0.013889
false
0
0.083333
0
0.111111
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
91539993c3d566be3d6ad8bdfd6ab2f85574f003
8,157
py
Python
mysite/api/v0/tests.py
raccoongang/socraticqs2
06201005136ee139846f857dbb2f518736e441de
[ "Apache-2.0" ]
3
2015-11-20T07:33:28.000Z
2017-01-15T23:33:50.000Z
mysite/api/v0/tests.py
raccoongang/socraticqs2
06201005136ee139846f857dbb2f518736e441de
[ "Apache-2.0" ]
28
2015-07-14T11:33:24.000Z
2017-11-17T15:21:22.000Z
mysite/api/v0/tests.py
raccoongang/socraticqs2
06201005136ee139846f857dbb2f518736e441de
[ "Apache-2.0" ]
4
2015-04-29T09:04:59.000Z
2017-07-19T14:11:16.000Z
import json import mock from django.core.urlresolvers import reverse from pymongo.errors import ServerSelectionTimeoutError from analytics.models import CourseReport from core.common.mongo import c_onboarding_status, _conn from core.common import onboarding from ct.models import UnitLesson, StudentError from ctms.t...
32.369048
113
0.674635
991
8,157
5.350151
0.177598
0.045266
0.061109
0.055451
0.541305
0.501886
0.490192
0.482459
0.45794
0.423991
0
0.014697
0.207552
8,157
251
114
32.498008
0.805538
0.032365
0
0.371951
0
0
0.064138
0.023416
0
0
0
0
0.164634
1
0.134146
false
0.018293
0.054878
0
0.268293
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
9153c783ea6530b33a82747aab7d0a7d6aae69be
8,934
py
Python
signbank/settings/base.py
anthonymark33/Global-signbank
ae61984a24f1cc0801d4621c81b882154ce99098
[ "BSD-3-Clause" ]
null
null
null
signbank/settings/base.py
anthonymark33/Global-signbank
ae61984a24f1cc0801d4621c81b882154ce99098
[ "BSD-3-Clause" ]
2
2021-06-10T23:11:53.000Z
2021-12-13T20:44:56.000Z
signbank/settings/base.py
anthonymark33/Global-signbank
ae61984a24f1cc0801d4621c81b882154ce99098
[ "BSD-3-Clause" ]
null
null
null
# Django settings for signbank project. import os from signbank.settings.server_specific import * from datetime import datetime DEBUG = True PROJECT_DIR = os.path.dirname(BASE_DIR) MANAGERS = ADMINS TIME_ZONE = 'Europe/Amsterdam' LOCALE_PATHS = [BASE_DIR+'conf/locale'] # in the database, SITE_ID 1 is example.com ...
31.020833
123
0.694426
1,015
8,934
5.95468
0.42266
0.036565
0.020847
0.030774
0.041363
0.007942
0
0
0
0
0
0.010481
0.199015
8,934
288
124
31.020833
0.834125
0.312066
0
0.011976
0
0.005988
0.443733
0.267784
0
0
0
0
0
1
0
false
0
0.023952
0
0.023952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e66c3efb17fe57a58924ade4ac24258abd570c92
50,042
py
Python
ocs_ci/ocs/cluster.py
crombus/ocs-ci
20340365882bdd06ddb6cd65bbd7df0ba7e2c2d8
[ "MIT" ]
null
null
null
ocs_ci/ocs/cluster.py
crombus/ocs-ci
20340365882bdd06ddb6cd65bbd7df0ba7e2c2d8
[ "MIT" ]
null
null
null
ocs_ci/ocs/cluster.py
crombus/ocs-ci
20340365882bdd06ddb6cd65bbd7df0ba7e2c2d8
[ "MIT" ]
null
null
null
""" A module for all rook functionalities and abstractions. This module has rook related classes, support for functionalities to work with rook cluster. This works with assumptions that an OCP cluster is already functional and proper configurations are made for interaction. """ import base64 import logging import ran...
33.56271
105
0.624675
6,633
50,042
4.5049
0.104779
0.018741
0.012516
0.009839
0.395536
0.312573
0.272749
0.241759
0.213647
0.193166
0
0.009078
0.291215
50,042
1,490
106
33.585235
0.833376
0.271952
0
0.285528
0
0
0.142667
0.006108
0
0
0
0.003356
0.015645
1
0.092568
false
0.002608
0.024772
0.006519
0.207301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e66d5e1f08dc9a4e5c8cb49651bf2a219e4f50a8
3,621
py
Python
scenic/projects/baselines/detr/configs/detr_config.py
techthiyanes/scenic
05585b1189364e29d82413b9d4a50ffa8c246f0c
[ "Apache-2.0" ]
null
null
null
scenic/projects/baselines/detr/configs/detr_config.py
techthiyanes/scenic
05585b1189364e29d82413b9d4a50ffa8c246f0c
[ "Apache-2.0" ]
null
null
null
scenic/projects/baselines/detr/configs/detr_config.py
techthiyanes/scenic
05585b1189364e29d82413b9d4a50ffa8c246f0c
[ "Apache-2.0" ]
null
null
null
# pylint: disable=line-too-long r"""Default configs for COCO detection using DETR. """ # pylint: enable=line-too-long import copy import ml_collections _COCO_TRAIN_SIZE = 118287 NUM_EPOCHS = 300 def get_config(): """Returns the configuration for COCO detection using DETR.""" config = ml_collections.ConfigDict()...
34.160377
111
0.775753
491
3,621
5.421589
0.358452
0.030428
0.039444
0.05447
0.12284
0.045455
0
0
0
0
0
0.028865
0.138912
3,621
105
112
34.485714
0.824888
0.182546
0
0
0
0
0.053657
0.019822
0
0
0
0
0
1
0.013514
false
0
0.027027
0
0.054054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e66dd9b0c4524178c41ae4349d387915dbfbc5a0
2,105
py
Python
prepare_cicero_peaks.py
lab-medvedeva/SCABFA-feature-selection
d5cd7568e667a75f75e753d9ab9dc645f3166902
[ "MIT" ]
null
null
null
prepare_cicero_peaks.py
lab-medvedeva/SCABFA-feature-selection
d5cd7568e667a75f75e753d9ab9dc645f3166902
[ "MIT" ]
null
null
null
prepare_cicero_peaks.py
lab-medvedeva/SCABFA-feature-selection
d5cd7568e667a75f75e753d9ab9dc645f3166902
[ "MIT" ]
null
null
null
from scale.dataset import read_mtx from argparse import ArgumentParser import pandas as pd import numpy as np import os def parse_args(): parser = ArgumentParser('Preparing raw peaks from cicero pipeline') parser.add_argument('--dataset_path', help='Path to Scale dataset: count, feature, barcode folder') ...
40.480769
113
0.669359
291
2,105
4.591065
0.309278
0.047904
0.068114
0.031437
0.167665
0.13997
0.13997
0.083832
0.083832
0.083832
0
0.008125
0.181473
2,105
51
114
41.27451
0.767266
0.045131
0
0
0
0.025
0.207773
0.035376
0
0
0
0
0
1
0.05
false
0
0.125
0
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e670e0b486388fd350ec3090250f4bbe49211d07
6,225
py
Python
wasch/tests.py
waschag-tvk/pywaschedv
8f0428827c4c1c7e9462eaa94ba02290db1c340f
[ "MIT" ]
1
2020-01-17T16:35:10.000Z
2020-01-17T16:35:10.000Z
wasch/tests.py
waschag-tvk/pywaschedv
8f0428827c4c1c7e9462eaa94ba02290db1c340f
[ "MIT" ]
6
2018-06-01T15:02:11.000Z
2018-09-04T15:33:05.000Z
wasch/tests.py
waschag-tvk/pywaschedv
8f0428827c4c1c7e9462eaa94ba02290db1c340f
[ "MIT" ]
null
null
null
import datetime from django.utils import timezone from django.test import TestCase from django.contrib.auth.models import ( User, ) from wasch.models import ( Appointment, WashUser, WashParameters, # not models: AppointmentError, StatusRights, ) from wasch import tvkutils, payment class Wa...
42.060811
79
0.676948
591
6,225
7.040609
0.204738
0.064888
0.050228
0.071377
0.504206
0.416246
0.416246
0.355203
0.267243
0.163422
0
0.007566
0.235663
6,225
147
80
42.346939
0.866961
0.031165
0
0.382353
0
0
0.005482
0
0
0
0
0
0.25
1
0.051471
false
0
0.044118
0
0.154412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e672d8fb22849a3e49b4cf1505ef89fb8d62430d
2,018
py
Python
day17/module.py
arcadecoffee/advent-2021
57d24cd6ba6e2b4d7e68ea492b955b73eaad7b6a
[ "MIT" ]
null
null
null
day17/module.py
arcadecoffee/advent-2021
57d24cd6ba6e2b4d7e68ea492b955b73eaad7b6a
[ "MIT" ]
null
null
null
day17/module.py
arcadecoffee/advent-2021
57d24cd6ba6e2b4d7e68ea492b955b73eaad7b6a
[ "MIT" ]
null
null
null
""" Advent of Code 2021 - Day 17 https://adventofcode.com/2021/day/17 """ import re from math import ceil, sqrt from typing import List, Tuple DAY = 17 FULL_INPUT_FILE = f'../inputs/day{DAY:02d}/input.full.txt' TEST_INPUT_FILE = f'../inputs/day{DAY:02d}/input.test.txt' def load_data(infile_path: str) -> Tuple[int,...
29.246377
92
0.617939
335
2,018
3.486567
0.268657
0.05137
0.03339
0.046233
0.239726
0.239726
0.171233
0.171233
0.085616
0.085616
0
0.05304
0.233895
2,018
68
93
29.676471
0.702458
0.03221
0
0.043478
0
0
0.096144
0.048843
0
0
0
0
0
1
0.130435
false
0
0.065217
0.021739
0.347826
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e67406a638efa86479227542aee6a924595e4826
4,235
py
Python
src/main/python/depysible/domain/rete.py
stefano-bragaglia/DePYsible
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
4
2018-09-24T23:51:05.000Z
2021-01-06T09:13:52.000Z
src/main/python/depysible/domain/rete.py
stefano-bragaglia/DefeasiblePython
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
1
2020-05-26T01:14:44.000Z
2020-05-27T07:54:15.000Z
src/main/python/depysible/domain/rete.py
stefano-bragaglia/DePYsible
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
null
null
null
from typing import List from typing import Optional from typing import Tuple from typing import Union Payload = Tuple[List['Literal'], 'Substitutions'] class Root: def __init__(self): self.children = set() def notify(self, ground: 'Literal'): for child in self.children: child.not...
32.083333
100
0.563872
515
4,235
4.514563
0.130097
0.025806
0.036129
0.04086
0.327742
0.284301
0.260215
0.233548
0.196989
0.196989
0
0.013236
0.322078
4,235
131
101
32.328244
0.796587
0.033766
0
0.267327
0
0
0.051872
0
0
0
0
0
0
1
0.108911
false
0
0.049505
0
0.237624
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e6751ce031099f22bcc8f169d0324a7aff0147ed
15,501
py
Python
pythonbot_1.0/GameData.py
jeffreyzli/pokerbot-2017
df2aa31d6aaf0e3162d24ae5f4c2a918ab19831f
[ "MIT" ]
1
2017-01-18T21:25:21.000Z
2017-01-18T21:25:21.000Z
pythonbot_1.0/GameData.py
jeffreyzli/pokerbot-2017
df2aa31d6aaf0e3162d24ae5f4c2a918ab19831f
[ "MIT" ]
null
null
null
pythonbot_1.0/GameData.py
jeffreyzli/pokerbot-2017
df2aa31d6aaf0e3162d24ae5f4c2a918ab19831f
[ "MIT" ]
3
2017-02-06T04:35:02.000Z
2020-03-08T18:56:25.000Z
import HandRankings as Hand from deuces.deuces import Card, Evaluator class GameData: def __init__(self, name, opponent_name, stack_size, bb): # match stats self.name = name self.opponent_name = opponent_name self.starting_stack_size = int(stack_size) self.num_hands = 0 ...
43.298883
102
0.48055
1,701
15,501
4.100529
0.068783
0.098065
0.053333
0.048746
0.698351
0.629247
0.588387
0.535771
0.499211
0.493047
0
0.016226
0.451326
15,501
357
103
43.420168
0.80388
0.007741
0
0.657817
0
0
0.015936
0
0
0
0
0
0
1
0.014749
false
0
0.0059
0
0.035398
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e675c9e19056933d226c148a0c8e55351caf07f1
20,377
py
Python
examples/Tutorial/Example/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/Tutorial/Example/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/Tutorial/Example/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
import os from trame import change, update_state from trame.layouts import SinglePageWithDrawer from trame.html import vtk, vuetify, widgets from vtkmodules.vtkCommonDataModel import vtkDataObject from vtkmodules.vtkFiltersCore import vtkContourFilter from vtkmodules.vtkIOXML import vtkXMLUnstructuredGridReader from ...
31.739875
81
0.55332
1,855
20,377
5.863073
0.162803
0.00423
0.019309
0.025745
0.334958
0.297812
0.250736
0.224255
0.190051
0.184075
0
0.01246
0.224125
20,377
641
82
31.789392
0.675459
0.171517
0
0.360262
0
0
0.097857
0.010952
0
0
0
0
0
1
0.050218
false
0
0.024017
0
0.098253
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e6773e141755afe2a0e2167251aa0bc85bd1863f
2,849
py
Python
webots_ros2_tutorials/webots_ros2_tutorials/master.py
AleBurzio11/webots_ros2
99fa4a1a9d467e4ba71eff17ddf4e82444c78938
[ "Apache-2.0" ]
1
2021-09-09T13:11:15.000Z
2021-09-09T13:11:15.000Z
webots_ros2_tutorials/webots_ros2_tutorials/master.py
fmrico/webots_ros2
38d88e01fe174a8a00731f554f1a8646b9127bd2
[ "Apache-2.0" ]
1
2021-07-08T08:29:26.000Z
2021-10-01T07:57:12.000Z
webots_ros2_tutorials/webots_ros2_tutorials/master.py
fmrico/webots_ros2
38d88e01fe174a8a00731f554f1a8646b9127bd2
[ "Apache-2.0" ]
null
null
null
# Copyright 1996-2021 Soft_illusion. # # 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 w...
29.677083
88
0.657073
383
2,849
4.720627
0.375979
0.060841
0.033186
0.039823
0.191372
0.084624
0
0
0
0
0
0.024125
0.257985
2,849
95
89
29.989474
0.831126
0.274833
0
0.076923
0
0
0.026921
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e67851bbe8e0d15c96340d34374c9950c15106d4
13,892
py
Python
favorite_files.py
jasondavis/FavoriteFiles
be088259ac36383399eebe85d8d5b35e235d25b0
[ "MIT", "Unlicense" ]
1
2019-04-27T20:13:19.000Z
2019-04-27T20:13:19.000Z
favorite_files.py
jasondavis/FavoriteFiles
be088259ac36383399eebe85d8d5b35e235d25b0
[ "MIT", "Unlicense" ]
null
null
null
favorite_files.py
jasondavis/FavoriteFiles
be088259ac36383399eebe85d8d5b35e235d25b0
[ "MIT", "Unlicense" ]
null
null
null
''' Favorite Files Licensed under MIT Copyright (c) 2012 Isaac Muse <isaacmuse@gmail.com> ''' import sublime import sublime_plugin from os.path import join, exists, normpath from favorites import Favorites Favs = Favorites(join(sublime.packages_path(), 'User', 'favorite_files_list.json')) class Refresh: dummy_f...
37.444744
136
0.500864
1,532
13,892
4.413185
0.140339
0.042893
0.026623
0.019672
0.450081
0.391066
0.315338
0.301435
0.281467
0.239018
0
0.008734
0.414843
13,892
370
137
37.545946
0.822979
0.115678
0
0.512727
0
0
0.061008
0.006788
0
0
0
0.002703
0
1
0.065455
false
0
0.014545
0.003636
0.127273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e679989ea74254d7fd372bced3748665b5351845
4,361
py
Python
sc2clanman/views.py
paskausks/sc2cm
9c80e581933531496333d4a54c40174d4fb583a5
[ "MIT" ]
null
null
null
sc2clanman/views.py
paskausks/sc2cm
9c80e581933531496333d4a54c40174d4fb583a5
[ "MIT" ]
null
null
null
sc2clanman/views.py
paskausks/sc2cm
9c80e581933531496333d4a54c40174d4fb583a5
[ "MIT" ]
null
null
null
#!/bin/env python3 from collections import Counter from django.conf import settings from django.contrib.auth.decorators import login_required, permission_required from django.db import models as dm from django.shortcuts import get_object_or_404, render from django.views.generic.list import BaseListView from django.vie...
33.037879
110
0.661546
532
4,361
5.244361
0.315789
0.043369
0.040143
0.024373
0.239427
0.21828
0.189247
0.189247
0.141935
0.141935
0
0.006807
0.225178
4,361
131
111
33.290076
0.818881
0.120385
0
0.179487
0
0
0.105639
0.012444
0
0
0
0
0
1
0.064103
false
0.025641
0.115385
0.012821
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e67c1789de35ce33eb29e291ba0e431b4c1c574b
4,002
py
Python
tacker/api/v1/resource.py
mail2nsrajesh/tacker
dce6690659836c2885f1cf8227c19be234f8fe25
[ "Apache-2.0" ]
null
null
null
tacker/api/v1/resource.py
mail2nsrajesh/tacker
dce6690659836c2885f1cf8227c19be234f8fe25
[ "Apache-2.0" ]
null
null
null
tacker/api/v1/resource.py
mail2nsrajesh/tacker
dce6690659836c2885f1cf8227c19be234f8fe25
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
33.630252
78
0.613193
449
4,002
5.318486
0.400891
0.032245
0.010888
0.0134
0
0
0
0
0
0
0
0.011761
0.298851
4,002
118
79
33.915254
0.839273
0.235382
0
0.028169
0
0
0.081842
0
0
0
0
0
0
1
0.042254
false
0.014085
0.056338
0
0.183099
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e67c30a42d5e25d4e6e974aeebd81a4f702b3cd2
5,417
py
Python
akinator/utils.py
GitHubEmploy/akinator.py
67c688b0332f4caa72bacc8fbc8f95abfe2290c9
[ "MIT" ]
null
null
null
akinator/utils.py
GitHubEmploy/akinator.py
67c688b0332f4caa72bacc8fbc8f95abfe2290c9
[ "MIT" ]
null
null
null
akinator/utils.py
GitHubEmploy/akinator.py
67c688b0332f4caa72bacc8fbc8f95abfe2290c9
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2019 NinjaSnail1080 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
44.04065
149
0.606055
747
5,417
4.364123
0.305221
0.044172
0.042945
0.060123
0.080368
0.044172
0.030675
0.030675
0.030675
0.030675
0
0.006101
0.243493
5,417
122
150
44.401639
0.789409
0.229463
0
0.035294
0
0.011765
0.355095
0
0
0
0
0
0
1
0.035294
false
0
0.035294
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