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
ec7e716c12e1ea7abf3037994eb6b405105174c5
3,168
py
Python
templates/scrape_mars.py
eilishlboyd/web-scraping-challenge
9159d1fb3a8b1f2c9cbf6b82827e0eb5c6394992
[ "ADSL" ]
null
null
null
templates/scrape_mars.py
eilishlboyd/web-scraping-challenge
9159d1fb3a8b1f2c9cbf6b82827e0eb5c6394992
[ "ADSL" ]
null
null
null
templates/scrape_mars.py
eilishlboyd/web-scraping-challenge
9159d1fb3a8b1f2c9cbf6b82827e0eb5c6394992
[ "ADSL" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[97]: #Imports & Dependencies get_ipython().system('pip install selenium') get_ipython().system('pip install splinter') from splinter import Browser from bs4 import BeautifulSoup executable_path = {"executable_path": "/usr/local/bin/chromedriver"} browser = Browser("chrome",...
20.307692
93
0.708018
460
3,168
4.717391
0.369565
0.02212
0.02765
0.035023
0.17788
0.111521
0.084793
0.084793
0
0
0
0.018519
0.147727
3,168
155
94
20.43871
0.785185
0.145833
0
0.112676
0
0.014085
0.203807
0.010078
0
0
0
0
0
1
0
false
0
0.126761
0
0.126761
0.070423
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec863bf797d4f68a78c20b0aaf1e7087f38bcc26
13,679
py
Python
scripts/download-data.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
scripts/download-data.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
scripts/download-data.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, os, shutil, json, yaml from time import localtime ONLY_SIMULATED = False ONLY_GIAB = True # Make import from parent directory possible sys.path.append( os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) import modules.file_utils as file_utils with open(...
32.882212
86
0.605892
1,531
13,679
5.135859
0.154148
0.034592
0.036627
0.045784
0.329009
0.236805
0.110136
0.092077
0.092077
0.072491
0
0.017796
0.248264
13,679
415
87
32.961446
0.746864
0.155421
0
0.16129
0
0
0.179752
0.020266
0
0
0
0
0
1
0.053763
false
0
0.010753
0.003584
0.075269
0.057348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec87b2a8d66b90a05ef4708e84704798ddc9d79f
3,512
py
Python
src/loadgen/locustfile.py
vlesierse/awsdemo-abshop
a0390e88c0bbb5a9f2da950c9bfed88986826911
[ "MIT-0" ]
null
null
null
src/loadgen/locustfile.py
vlesierse/awsdemo-abshop
a0390e88c0bbb5a9f2da950c9bfed88986826911
[ "MIT-0" ]
null
null
null
src/loadgen/locustfile.py
vlesierse/awsdemo-abshop
a0390e88c0bbb5a9f2da950c9bfed88986826911
[ "MIT-0" ]
null
null
null
# # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # 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 u...
32.220183
180
0.628986
428
3,512
5.11215
0.507009
0.045704
0.035649
0.023309
0.081353
0.030165
0
0
0
0
0
0.069589
0.259396
3,512
108
181
32.518519
0.771626
0.281891
0
0.069444
0
0.013889
0.211746
0.00839
0
0
0
0
0
1
0.111111
false
0
0.041667
0
0.236111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec88372c8535e15168d52d6a53fd1a5e9d041265
7,918
py
Python
tests/test_templatetags.py
mixxorz/slippers
af8b8b168653b379efe78654f6801b3af317c44e
[ "MIT" ]
175
2021-07-11T12:12:43.000Z
2022-03-21T16:18:54.000Z
tests/test_templatetags.py
mixxorz/slippers
af8b8b168653b379efe78654f6801b3af317c44e
[ "MIT" ]
6
2021-08-17T19:54:13.000Z
2022-01-25T13:02:29.000Z
tests/test_templatetags.py
mixxorz/slippers
af8b8b168653b379efe78654f6801b3af317c44e
[ "MIT" ]
6
2021-09-14T15:25:57.000Z
2022-01-07T06:35:13.000Z
from django.template import Context, Template, TemplateSyntaxError from django.test import TestCase, override_settings class ComponentTest(TestCase): def test_render_inline_component(self): template = """ {% avatar user="mixxorz" %} """ expected = """ <div>I am ava...
27.397924
113
0.50581
715
7,918
5.503497
0.144056
0.03202
0.100635
0.132656
0.734689
0.687421
0.646506
0.559339
0.542058
0.536468
0
0
0.345037
7,918
288
114
27.493056
0.758774
0
0
0.669725
0
0.022936
0.509725
0.051528
0
0
0
0
0.082569
1
0.082569
false
0.004587
0.009174
0
0.114679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec8a2f8960c6c38997c2788b7d41e2a8915b8efa
5,599
py
Python
Application/index.py
mohammadn/Monte_Carlo
d490e5ae82eb134bec59953c697d3fe36ff28d8f
[ "MIT" ]
null
null
null
Application/index.py
mohammadn/Monte_Carlo
d490e5ae82eb134bec59953c697d3fe36ff28d8f
[ "MIT" ]
null
null
null
Application/index.py
mohammadn/Monte_Carlo
d490e5ae82eb134bec59953c697d3fe36ff28d8f
[ "MIT" ]
null
null
null
import os import logging from flask import Flask, request, render_template app = Flask(__name__) def doRender(tname, values={}): if not os.path.isfile( os.path.join(os.getcwd(), 'templates/'+tname) ): return render_template('index.htm') return render_template(tname, **values) @app.route('/', defaults={'path': ...
28.277778
380
0.663333
709
5,599
5.179126
0.299013
0.022876
0.026144
0.026961
0.180828
0.150327
0.133987
0.099673
0.099673
0.080065
0
0.026464
0.176639
5,599
197
381
28.42132
0.770065
0.053938
0
0.101351
0
0
0.124267
0.022886
0
0
0
0
0
1
0.054054
false
0
0.081081
0.006757
0.195946
0.006757
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec8b6f80bc96cced1d927f6a24327bd17b6dab7b
8,344
py
Python
src/gocept/amqprun/testing.py
NativeInstruments/gocept.amqprun
1f2d959f18617d46d0c3dc8512a910fe302ca384
[ "ZPL-2.1" ]
2
2020-01-29T09:36:50.000Z
2020-02-25T15:07:58.000Z
src/gocept/amqprun/testing.py
NativeInstruments/gocept.amqprun
1f2d959f18617d46d0c3dc8512a910fe302ca384
[ "ZPL-2.1" ]
14
2020-03-20T13:39:31.000Z
2020-10-06T14:03:55.000Z
src/gocept/amqprun/testing.py
gocept/gocept.amqprun
1f2d959f18617d46d0c3dc8512a910fe302ca384
[ "ZPL-2.1" ]
null
null
null
import amqp import datetime import email.utils import gocept.amqprun import gocept.amqprun.interfaces import gocept.amqprun.main import gocept.amqprun.worker import logging import os import pkg_resources import plone.testing import plone.testing.zca import signal import string import subprocess import sys import tempfi...
34.337449
78
0.614573
952
8,344
5.276261
0.254202
0.038224
0.025881
0.015927
0.184949
0.066494
0.042206
0.042206
0.042206
0.042206
0
0.003255
0.263663
8,344
242
79
34.479339
0.81429
0.061361
0
0.126316
0
0
0.135017
0.015771
0
0
0
0
0
1
0.1
false
0.021053
0.115789
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
ec918eada4dea8a6caff0286e38ae25cdcefa19d
1,133
py
Python
examples/timeseries/example_acf.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
1
2020-10-19T21:21:29.000Z
2020-10-19T21:21:29.000Z
examples/timeseries/example_acf.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
21
2020-10-30T10:15:36.000Z
2020-11-25T09:22:46.000Z
examples/timeseries/example_acf.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 2 16:17:42 2020 Copyright 2020 by Hadrien Montanelli. """ # %% Imports. # Standard library imports: import matplotlib.pyplot as plt import numpy as np from statsmodels.tsa.stattools import acf as acf2 # Learnpy imports: from learnpy.misc import c...
29.815789
67
0.735216
169
1,133
4.763314
0.384615
0.134161
0.149068
0.079503
0.632298
0.632298
0.576398
0.576398
0.576398
0.576398
0
0.027833
0.112092
1,133
38
68
29.815789
0.772366
0.259488
0
0.6
0
0
0.106926
0.082625
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec93172931a6512e00485bff696dbae2c5038576
772
py
Python
Python/problem014.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
Python/problem014.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
Python/problem014.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python3 ''' Problem 14 - Project Euler http://projecteuler.net/index.php?section=problems&id=014 ''' chains = {} def getCollatzChainLength(n): chain = [] extra = 0 while n != 1: if n in chains: extra = chains[n] break else: chain.append(n)...
23.393939
75
0.494819
99
772
3.757576
0.515152
0.053763
0.080645
0.086022
0
0
0
0
0
0
0
0.045175
0.369171
772
32
76
24.125
0.718686
0.150259
0
0.217391
0
0
0.012384
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.086957
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
ec931bc4df07b3df0aaf9c0ed905fa654356c04b
354
py
Python
buttonStyle.py
rafael-rfzorzi/estiloWidgets
d9e47b9b570b6806ffb334878ee0dd466b391d10
[ "Unlicense" ]
null
null
null
buttonStyle.py
rafael-rfzorzi/estiloWidgets
d9e47b9b570b6806ffb334878ee0dd466b391d10
[ "Unlicense" ]
null
null
null
buttonStyle.py
rafael-rfzorzi/estiloWidgets
d9e47b9b570b6806ffb334878ee0dd466b391d10
[ "Unlicense" ]
null
null
null
from tkinter import * class ButtonGlac(Button): def __init__(self, master=None): super().__init__(master) self.configure( bd=1, bg='#49708D', fg= 'white', font=('Aharoni','10','bold'), activebackground = '#278ab9', activeforeg...
17.7
41
0.5
30
354
5.633333
0.9
0
0
0
0
0
0
0
0
0
0
0.053333
0.364407
354
19
42
18.631579
0.697778
0
0
0
0
0
0.117479
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec93f76feaf219cc796dc101bd2540c75272c895
1,558
py
Python
codewars/7 kyu/growth-of-a-population.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/7 kyu/growth-of-a-population.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/7 kyu/growth-of-a-population.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
from Test import Test, Test as test ''' In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 120...
38
293
0.71887
281
1,558
3.950178
0.391459
0.037838
0.021622
0.027027
0.246847
0.220721
0.088288
0.052252
0
0
0
0.145396
0.205392
1,558
41
294
38
0.751212
0
0
0
0
0
0
0
0
0
0
0
0.3
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec96d028c0ae17832cf014fcffe7d77910c0fb12
13,593
py
Python
lib/rabbitdnssec.py
jderuiter/SURFdnssec
5416441a516c689f113684e4e5cb76272c092f9b
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
lib/rabbitdnssec.py
jderuiter/SURFdnssec
5416441a516c689f113684e4e5cb76272c092f9b
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-09-27T11:56:19.000Z
2021-09-27T11:56:19.000Z
lib/rabbitdnssec.py
jderuiter/SURFdnssec
5416441a516c689f113684e4e5cb76272c092f9b
[ "BSD-2-Clause", "BSD-3-Clause" ]
2
2021-02-03T08:06:26.000Z
2021-09-27T11:48:02.000Z
# rabbitdnssec.py -- DNSSEC management through a RabbitMQ cluster # # These routines can be used somewhat generally within a cluster of # DNSSEC signers as we are using at SURFnet. # # From: Rick van Rein <rick@openfortress.nl> import sys import socket import time import os.path import importlib import ssl import js...
30.963554
93
0.703156
1,897
13,593
4.937269
0.231945
0.016229
0.011745
0.017937
0.20158
0.171151
0.126735
0.126735
0.117553
0.104847
0
0.005223
0.183109
13,593
438
94
31.034247
0.838256
0.439123
0
0.213636
0
0
0.082344
0.004137
0
0
0
0.002283
0.013636
1
0.140909
false
0.027273
0.063636
0.027273
0.286364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca028126d38ff6361e05ae287f82997405bb260
4,173
py
Python
froide/foirequest/delivery.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
null
null
null
froide/foirequest/delivery.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
2
2020-06-05T16:43:43.000Z
2022-02-10T15:47:12.000Z
froide/foirequest/delivery.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
null
null
null
from collections import defaultdict, namedtuple from datetime import datetime import importlib import logging import re import os import pytz def get_delivery_report(sender, recipient, timestamp): from django.conf import settings reporter_path = settings.FROIDE_CONFIG.get('delivery_reporter', None) if no...
33.926829
78
0.601006
522
4,173
4.614943
0.243295
0.054795
0.049813
0.024907
0.085513
0.066418
0
0
0
0
0
0.003398
0.294752
4,173
122
79
34.204918
0.815155
0.018692
0
0.10101
0
0
0.068671
0.014418
0
0
0
0
0
1
0.060606
false
0.010101
0.090909
0
0.343434
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca18d4e3d6f7699e830daef606d6fa6213aa3b2
2,664
py
Python
cogs/admin.py
Mr-Owllers/owll-v2
73ec36b8275166f405224ba0e27e37e7390c104a
[ "MIT" ]
2
2021-12-20T06:25:42.000Z
2022-01-12T17:08:32.000Z
cogs/admin.py
Mr-Owllers/owll-v2
73ec36b8275166f405224ba0e27e37e7390c104a
[ "MIT" ]
null
null
null
cogs/admin.py
Mr-Owllers/owll-v2
73ec36b8275166f405224ba0e27e37e7390c104a
[ "MIT" ]
null
null
null
import nextcord from nextcord.ext import commands class Admin(commands.Cog): def __init__(self, client): self.client = client @commands.command(help= "delete messages in bulk", aliases=["purge", "c"]) @commands.has_permissions(manage_messages=True) async def clear(self, ctx, amount = 5): await ctx.cha...
36.493151
103
0.646021
371
2,664
4.574124
0.229111
0.065999
0.070713
0.053624
0.523276
0.470242
0.449028
0.449028
0.328816
0.314673
0
0.001401
0.195946
2,664
73
104
36.493151
0.79085
0
0
0.4
0
0.083333
0.251407
0.109193
0
0
0
0
0
1
0.033333
false
0
0.033333
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca2ad1491618b91b100bae9f35aedb4453e20e3
7,862
py
Python
server/src/dashboard/helpers.py
openml/openml.org
dadc4f79c159058776500b204977a1062b927d4c
[ "BSD-3-Clause" ]
16
2018-10-17T19:35:11.000Z
2022-03-31T23:37:00.000Z
server/src/dashboard/helpers.py
PortML/openml.org
b526fae6c0ba2df0ccebf60f1dd703368ed394ec
[ "BSD-3-Clause" ]
192
2018-10-17T17:31:03.000Z
2022-03-27T23:55:51.000Z
server/src/dashboard/helpers.py
PortML/openml.org
b526fae6c0ba2df0ccebf60f1dd703368ed394ec
[ "BSD-3-Clause" ]
8
2019-04-15T11:47:32.000Z
2021-12-15T13:23:54.000Z
import logging import time from contextlib import contextmanager import numpy as np import pandas as pd import scipy.stats from openml import datasets, runs from sklearn.model_selection import train_test_split logger = logging.getLogger("dashboard") logger.setLevel(logging.DEBUG) def get_run_df(run_id: int): ru...
33.313559
87
0.60608
1,001
7,862
4.58042
0.226773
0.054962
0.020938
0.013086
0.169466
0.146783
0.115812
0.08615
0.063032
0.056707
0
0.01507
0.265708
7,862
235
88
33.455319
0.779144
0.111549
0
0.107955
0
0
0.091723
0.006067
0
0
0
0
0
1
0.051136
false
0.005682
0.051136
0
0.142045
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca4811c42e1ebee944b531840d43c283210f993
414
py
Python
clinicInformation/serializers.py
MyMedicalAssistant/MyMedicalAssistant
e03758109167cef13efed7ee1d450dbd18a1fed7
[ "MIT" ]
null
null
null
clinicInformation/serializers.py
MyMedicalAssistant/MyMedicalAssistant
e03758109167cef13efed7ee1d450dbd18a1fed7
[ "MIT" ]
1
2020-08-05T22:58:28.000Z
2020-08-05T22:58:28.000Z
clinicInformation/serializers.py
MyMedicalAssistant/MyMedicalAssistant
e03758109167cef13efed7ee1d450dbd18a1fed7
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import DoctorClinic class DoctorClinicSerializer(serializers.ModelSerializer): class Meta: model = DoctorClinic fields = ( 'id', 'user', 'doctor_name', 'specialty', 'clinic_name', 'clinic_street', 'clinic_city', ...
19.714286
58
0.623188
37
414
6.72973
0.648649
0
0
0
0
0
0
0
0
0
0
0
0.275362
414
21
59
19.714286
0.83
0
0
0
0
0
0.26506
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca4f5aa27488a24c929f36854a3145b768fa867
3,266
py
Python
benwaonline/auth/core.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/auth/core.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/auth/core.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import os import requests from flask import current_app from jose import jwt, exceptions from benwaonline.cache import cache from benwaonline.exceptions import BenwaOnlineAuthError ALGORITHMS = ['RS256'] def verify_token(token): unverified_header = jwt.get_unverified_header(token) rsa_key = match_key_id(unve...
27.91453
95
0.649418
393
3,266
5.223919
0.323155
0.034096
0.031174
0.029226
0.154895
0.108622
0.08378
0.051632
0
0
0
0.008918
0.244642
3,266
116
96
28.155172
0.823267
0.064299
0
0.139785
0
0
0.127063
0
0
0
0
0
0
1
0.107527
false
0
0.064516
0.010753
0.247312
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca718b2290753661c89ffe0f3b12919b0789cc0
3,430
py
Python
scripts/commands/SynthSeg_predict.py
hvgazula/SynthSeg
cd597b080eb11bdd54e4e75b28b79b41b322c0c8
[ "Apache-2.0" ]
98
2020-03-03T20:54:34.000Z
2022-03-28T17:40:30.000Z
scripts/commands/SynthSeg_predict.py
hvgazula/SynthSeg
cd597b080eb11bdd54e4e75b28b79b41b322c0c8
[ "Apache-2.0" ]
29
2020-07-02T10:03:48.000Z
2022-03-31T16:48:24.000Z
scripts/commands/SynthSeg_predict.py
hvgazula/SynthSeg
cd597b080eb11bdd54e4e75b28b79b41b322c0c8
[ "Apache-2.0" ]
21
2020-05-18T14:27:20.000Z
2022-03-31T08:27:43.000Z
""" If you use this code, please cite one of the SynthSeg papers: https://github.com/BBillot/SynthSeg/blob/master/bibtex.bib Copyright 2020 Benjamin Billot 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 Lice...
42.345679
115
0.730904
498
3,430
4.943775
0.409639
0.019496
0.05524
0.025995
0.200244
0.18156
0.149878
0.149878
0.1316
0.113323
0
0.007529
0.148105
3,430
80
116
42.875
0.835044
0.277843
0
0.05
0
0
0.433796
0.07272
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca7aaf626d3547ce8f5558fdf53e3a5737336a0
6,238
py
Python
src/bitcoin/tx.py
trevormcguire/pybitcoin
32ff859f4e51e5349fb70ca3c8a8782fd8cad25f
[ "MIT" ]
1
2022-02-09T16:06:49.000Z
2022-02-09T16:06:49.000Z
src/bitcoin/tx.py
trevormcguire/pybitcoin
32ff859f4e51e5349fb70ca3c8a8782fd8cad25f
[ "MIT" ]
2
2022-02-09T17:59:57.000Z
2022-02-09T18:00:27.000Z
src/bitcoin/tx.py
trevormcguire/pybitcoin
32ff859f4e51e5349fb70ca3c8a8782fd8cad25f
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import * from .utils import encode_int, encode_varint, decode_int, decode_varint, ensure_stream, base58, hash256 from .script import Script from io import BytesIO from .keys import PublicKey from .ecdsa import Signature, validate_signature def get_tx_idx(wallet, prev_tx):...
34.655556
103
0.534146
765
6,238
4.197386
0.223529
0.036437
0.015571
0.013703
0.08502
0.014326
0
0
0
0
0
0.012358
0.351395
6,238
179
104
34.849162
0.781265
0.131292
0
0.106061
0
0
0.074962
0.015483
0
0
0
0
0.007576
1
0.068182
false
0
0.05303
0.007576
0.219697
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eca7bb7d5f66ac5cb221611f5b01d3bad9a853f9
637
py
Python
src/cogs/utils/sendEmbed.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
3
2020-07-05T21:37:07.000Z
2021-09-21T11:11:45.000Z
src/cogs/utils/sendEmbed.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
null
null
null
src/cogs/utils/sendEmbed.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
null
null
null
from typing import Any import discord from discord.ext import commands from ..mofupoints import incrementEmbedCounter async def sendEmbed( ctx: commands.Context, url: str, localImageFile: discord.File = None, **kwargs: Any ) -> None: print(url) if hasattr(ctx, "author"): incrementEm...
26.541667
88
0.681319
77
637
5.623377
0.532468
0.04157
0.055427
0
0
0
0
0
0
0
0
0
0.21978
637
23
89
27.695652
0.871227
0.059655
0
0
0
0
0.010453
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
ecaa497a69908d5f08791b6cdfaef3362767f993
11,449
py
Python
lib/ithor_env.py
XiaoLiSean/Cognitive-Map
6b2019e5b3a46902b06c8d5d1e86b39425042de9
[ "MIT" ]
null
null
null
lib/ithor_env.py
XiaoLiSean/Cognitive-Map
6b2019e5b3a46902b06c8d5d1e86b39425042de9
[ "MIT" ]
null
null
null
lib/ithor_env.py
XiaoLiSean/Cognitive-Map
6b2019e5b3a46902b06c8d5d1e86b39425042de9
[ "MIT" ]
1
2021-11-04T06:25:31.000Z
2021-11-04T06:25:31.000Z
# Module for iTHOR env set up and simple navigation from ai2thor.controller import Controller from termcolor import colored from dijkstar import Graph, find_path from lib.params import SIM_WINDOW_HEIGHT, SIM_WINDOW_WIDTH, VISBILITY_DISTANCE, FIELD_OF_VIEW import matplotlib.pyplot as plt import numpy as np import time,...
44.548638
153
0.633418
1,450
11,449
4.698621
0.177931
0.029062
0.022897
0.013357
0.349479
0.28064
0.199031
0.162777
0.079994
0.038309
0
0.017043
0.262032
11,449
256
154
44.722656
0.789324
0.075552
0
0.176768
0
0
0.077986
0.001988
0
0
0
0
0
1
0.060606
false
0.010101
0.035354
0
0.166667
0.025253
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecac3170910e2522fe20eaaf7efb5d1875ecf0af
12,033
py
Python
tests/test_sendgrid_inbound.py
tiltec/django-anymail
508a3a073f1b51c453bade2532627a72e204520b
[ "BSD-3-Clause" ]
null
null
null
tests/test_sendgrid_inbound.py
tiltec/django-anymail
508a3a073f1b51c453bade2532627a72e204520b
[ "BSD-3-Clause" ]
null
null
null
tests/test_sendgrid_inbound.py
tiltec/django-anymail
508a3a073f1b51c453bade2532627a72e204520b
[ "BSD-3-Clause" ]
null
null
null
import json from io import BytesIO from textwrap import dedent from django.test import tag from mock import ANY from anymail.inbound import AnymailInboundMessage from anymail.signals import AnymailInboundEvent from anymail.webhooks.sendgrid import SendGridInboundWebhookView from .utils import dedent_bytes, sample_im...
49.72314
115
0.605668
1,350
12,033
5.32
0.207407
0.085631
0.070454
0.032164
0.511417
0.466583
0.402673
0.350599
0.3066
0.274436
0
0.044272
0.262279
12,033
241
116
49.929461
0.764335
0.045458
0
0.287805
0
0.04878
0.461431
0.123769
0
0
0
0
0.258537
1
0.019512
false
0.019512
0.04878
0
0.073171
0.009756
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecad91fbf1d2b45d2f19da435e1adb82e6ade7a6
233
py
Python
scripts/randomizer.py
cmuell89/DS-A
a408252e1993423c510c3cbe49501acc6916e91f
[ "MIT" ]
null
null
null
scripts/randomizer.py
cmuell89/DS-A
a408252e1993423c510c3cbe49501acc6916e91f
[ "MIT" ]
null
null
null
scripts/randomizer.py
cmuell89/DS-A
a408252e1993423c510c3cbe49501acc6916e91f
[ "MIT" ]
null
null
null
# coding=utf-8 from random import shuffle with open("../data/words.txt") as f: words = f.read().splitlines() shuffle(words) with open("../data/random_words.txt", "w") as f: for item in words: f.write("%s\n" % item)
21.181818
48
0.622318
38
233
3.789474
0.605263
0.111111
0.166667
0
0
0
0
0
0
0
0
0.005291
0.188841
233
11
49
21.181818
0.756614
0.051502
0
0
0
0
0.209091
0.109091
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecaf99cf8d95777800b2e98c8ecd1054419889eb
1,839
py
Python
tests/Commands/test_SystemCommands.py
AndroidKitKat/TerminusBrowser
18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e
[ "BSD-3-Clause" ]
null
null
null
tests/Commands/test_SystemCommands.py
AndroidKitKat/TerminusBrowser
18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e
[ "BSD-3-Clause" ]
null
null
null
tests/Commands/test_SystemCommands.py
AndroidKitKat/TerminusBrowser
18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e
[ "BSD-3-Clause" ]
null
null
null
from commandChanVim import urwidView from Commands.SystemCommands import systemCommands from Frames.reddit.indexFrame import RedditIndexFrame from Frames.fchan.indexFrame import IndexFrame from Frames.defaultFrame import DefaultFrame from customeTypes import SITE import pytest @pytest.fixture def view(): view = u...
29.190476
83
0.693855
234
1,839
5.333333
0.269231
0.09375
0.081731
0.080128
0.391827
0.325321
0.325321
0.224359
0.126603
0.126603
0
0.010499
0.171289
1,839
62
84
29.66129
0.808399
0
0
0.12
0
0
0.156063
0
0
0
0
0
0.1
1
0.1
false
0
0.14
0
0.26
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecb02d026ee6cbb6ddb8ef5430a7f94d901364f7
5,312
py
Python
ABCer.py
xl0418/ABCer
50f8976f00c555c2face1f451a17142e33df7856
[ "MIT" ]
2
2020-03-25T17:07:59.000Z
2020-04-01T12:03:45.000Z
ABCer.py
xl0418/ABCer
50f8976f00c555c2face1f451a17142e33df7856
[ "MIT" ]
null
null
null
ABCer.py
xl0418/ABCer
50f8976f00c555c2face1f451a17142e33df7856
[ "MIT" ]
null
null
null
#%% import numpy as np from itertools import repeat from itertools import starmap from scipy.stats import norm class ABCer: def __init__(self, iterations, particles, observations): self.iterations = iterations self.particles = particles self.observations = observations def initialize_...
37.146853
132
0.609375
667
5,312
4.616192
0.229385
0.042871
0.049691
0.009743
0.239688
0.181877
0.175382
0.096785
0.061708
0.061708
0
0.034978
0.278803
5,312
142
133
37.408451
0.768729
0.03012
0
0.041237
0
0
0.02608
0
0
0
0
0
0
1
0.072165
false
0
0.051546
0
0.195876
0.020619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecb1f36fb203b8d051edf6d6cfdeae2ca3d1d0e9
1,405
py
Python
seahub/share/urls.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
2
2017-06-21T09:46:55.000Z
2018-05-30T10:07:32.000Z
seahub/share/urls.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
null
null
null
seahub/share/urls.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
1
2020-10-01T04:11:41.000Z
2020-10-01T04:11:41.000Z
from django.conf.urls import patterns, url from views import * urlpatterns = patterns('', url(r'^$', list_shared_repos, name='share_admin'), url(r'^links/$', list_shared_links, name='list_shared_links'), url(r'^folders/$', list_priv_shared_folders, name='list_priv_shared_folders'), url(r'^add/$', shar...
61.086957
110
0.740214
216
1,405
4.407407
0.157407
0.067227
0.058824
0.044118
0.289916
0.048319
0
0
0
0
0
0
0.090391
1,405
22
111
63.863636
0.744914
0
0
0
0
0
0.417082
0.258363
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecb94bd0a8608cae96300c0ab8bd777428b90695
3,388
py
Python
plot_movie.py
diogoff/plasma-tomography
8798351beaa9b069128fffd606587e74d30cb0e1
[ "MIT" ]
5
2019-02-08T18:34:45.000Z
2020-05-30T17:42:14.000Z
plot_movie.py
diogoff/plasma-tomography
8798351beaa9b069128fffd606587e74d30cb0e1
[ "MIT" ]
null
null
null
plot_movie.py
diogoff/plasma-tomography
8798351beaa9b069128fffd606587e74d30cb0e1
[ "MIT" ]
1
2018-07-18T12:50:03.000Z
2018-07-18T12:50:03.000Z
import os import sys import h5py import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as ani from cmap import * from tensorflow.keras.models import load_model # ---------------------------------------------------------------------- if len(sys.argv) < 6: print('Usage: %s pulse t0 t1 dt v...
25.666667
90
0.527745
482
3,388
3.628631
0.313278
0.031447
0.027444
0.032018
0.177244
0.140652
0.105203
0.036592
0.036592
0
0
0.051957
0.147875
3,388
131
91
25.862595
0.553862
0.146399
0
0.022989
0
0
0.131113
0
0
0
0
0
0
1
0.011494
false
0
0.091954
0
0.103448
0.172414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecba0c87c633e44ca11824d2967de64d71f156ed
2,940
py
Python
main.py
William-Wang1988/gitblog
5d064f69755992fa8e85fd53bc9a8d3589d97971
[ "MIT" ]
null
null
null
main.py
William-Wang1988/gitblog
5d064f69755992fa8e85fd53bc9a8d3589d97971
[ "MIT" ]
10
2020-08-31T08:17:26.000Z
2020-09-21T03:39:12.000Z
main.py
William-Wang1988/gitblog
5d064f69755992fa8e85fd53bc9a8d3589d97971
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from github import Github from github.Issue import Issue import argparse MD_HEAD = """## Gitblog My personal blog using issues and GitHub Action """ ME_GITHUB_NAME = "gatsby101" ANCHOR_NUMBER = 5 TOP_ISSUES_LABELS = [ "Top", ] def isMe(issue): return issue.user.login == ME_GITHUB_NAM...
25.128205
81
0.591156
408
2,940
4.044118
0.230392
0.049091
0.036364
0.041212
0.271515
0.197576
0.164848
0.115758
0.115758
0.115758
0
0.008072
0.283673
2,940
117
82
25.128205
0.775404
0.018707
0
0.156627
0
0
0.108221
0.026708
0
0
0
0
0
1
0.156627
false
0
0.036145
0.084337
0.289157
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecba4755ffe4747535ec4eeeb0e07ad5f74903d6
2,687
py
Python
week-03/lab_03/lab_03_code.py
andrewn488/OMSBA-5067
ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a
[ "MIT" ]
null
null
null
week-03/lab_03/lab_03_code.py
andrewn488/OMSBA-5067
ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a
[ "MIT" ]
null
null
null
week-03/lab_03/lab_03_code.py
andrewn488/OMSBA-5067
ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 15 22:15:28 2021 @author: ANalundasan For: OMSBA 5067, Lab 3 """ import numpy as np import matplotlib.pyplot as plt import math #################### STEP 1 - KNN Classifier ################################# data = np.array([ [1, 1,1,1,1, 3], ...
28.284211
79
0.426498
384
2,687
2.958333
0.291667
0.038732
0.029049
0.014085
0.024648
0
0
0
0
0
0
0.139466
0.372907
2,687
95
80
28.284211
0.534718
0.333457
0
0.133333
0
0
0.030565
0
0
0
0
0
0
1
0.022222
false
0
0.066667
0
0.088889
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecbdfa159cc6c94130e99feee6fc9442f8f7112a
4,440
py
Python
nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
54
2020-03-04T17:37:17.000Z
2022-02-22T13:16:10.000Z
nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
9
2020-08-26T13:17:54.000Z
2021-11-09T09:02:00.000Z
nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
26
2020-03-18T17:09:34.000Z
2021-11-22T16:23:14.000Z
# Copyright(c) 2019-2020 Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of condition...
40.363636
93
0.647973
516
4,440
5.531008
0.387597
0.021023
0.023826
0.024177
0.199019
0.107218
0.107218
0.107218
0.107218
0.107218
0
0.017985
0.273649
4,440
109
94
40.733945
0.866977
0.357658
0
0.163934
0
0
0.045712
0
0
0
0
0
0
1
0.081967
false
0
0.04918
0.032787
0.180328
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecc0a2e456508d8dfa56614ecca79ec800ea879d
3,363
py
Python
server/permissions/users.py
dragorhast/server
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
[ "MIT" ]
5
2018-11-28T11:33:25.000Z
2022-03-27T12:50:02.000Z
server/permissions/users.py
dragorhast/server
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
[ "MIT" ]
124
2018-10-07T21:31:02.000Z
2019-03-26T11:51:00.000Z
server/permissions/users.py
dragorhast/server
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
[ "MIT" ]
null
null
null
from aiohttp.web_urldispatcher import View from server.models import User, Bike, Reservation from server.models.user import UserType from server.permissions.permission import RoutePermissionError, Permission from server.service.access.users import get_user from server.service.verify_token import verify_token, TokenVer...
36.956044
111
0.680345
412
3,363
5.451456
0.254854
0.100178
0.032057
0.042743
0.459038
0.426981
0.363313
0.319679
0.233304
0.105966
0
0
0.223907
3,363
90
112
37.366667
0.860536
0.11121
0
0.303571
0
0
0.179175
0
0
0
0
0
0
1
0.071429
false
0
0.107143
0.071429
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
ecc3b237f1452c998b773c172662c9bd6ab6636e
315
py
Python
Two-pointer/Move elements in the array/Remove elements #27.py
Awesomeyaya/Leetcode-Two-pointer
15cd0a73f5abc4d0d19d18c231750d31dc839dbe
[ "MIT" ]
null
null
null
Two-pointer/Move elements in the array/Remove elements #27.py
Awesomeyaya/Leetcode-Two-pointer
15cd0a73f5abc4d0d19d18c231750d31dc839dbe
[ "MIT" ]
null
null
null
Two-pointer/Move elements in the array/Remove elements #27.py
Awesomeyaya/Leetcode-Two-pointer
15cd0a73f5abc4d0d19d18c231750d31dc839dbe
[ "MIT" ]
1
2018-10-29T17:33:52.000Z
2018-10-29T17:33:52.000Z
def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int """ zero = 0 for n in range(len(nums)): if nums[n] != val: nums[zero] = nums[n] zero = zero + 1 return zero
22.5
36
0.396825
35
315
3.571429
0.542857
0.08
0
0
0
0
0
0
0
0
0
0.012346
0.485714
315
13
37
24.230769
0.759259
0.152381
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecd274b39828a2cbb60621e83b0c76718302d58c
620
py
Python
visual-option-chain/tasks.py
WillWcchan/Visual-Option-Chain-Graph
f9bfec4a262c2c3c3212e38113af4ad59517c52c
[ "MIT" ]
1
2021-11-13T20:03:17.000Z
2021-11-13T20:03:17.000Z
visual-option-chain/tasks.py
WillWcchan/Visual-Option-Chain-Graph
f9bfec4a262c2c3c3212e38113af4ad59517c52c
[ "MIT" ]
5
2021-04-08T21:58:58.000Z
2021-10-31T00:55:39.000Z
visual-option-chain/tasks.py
WillWcchan/Visual-Option-Chain-Graph
f9bfec4a262c2c3c3212e38113af4ad59517c52c
[ "MIT" ]
null
null
null
from celery import shared_task from django.core.mail import send_mail from datetime import datetime from time import sleep # Start the worker process and be on top of the visual-option-chain directory: celery -A visual-option-chain worker -l info -E @shared_task def send_email_task(subject, message, from_email, recip...
26.956522
126
0.722581
89
620
4.865169
0.52809
0.069284
0.078522
0.101617
0
0
0
0
0
0
0
0
0.203226
620
22
127
28.181818
0.876518
0.2
0
0.111111
0
0
0.032389
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecd534abd7f8a9a4fecc3c6b9c2956ced9c8bbfb
4,631
py
Python
model/predict_from_file.py
elephantum/image-tools
38d704a1ade32ed1f6ae8c652d257c15b7cc2740
[ "MIT" ]
null
null
null
model/predict_from_file.py
elephantum/image-tools
38d704a1ade32ed1f6ae8c652d257c15b7cc2740
[ "MIT" ]
null
null
null
model/predict_from_file.py
elephantum/image-tools
38d704a1ade32ed1f6ae8c652d257c15b7cc2740
[ "MIT" ]
null
null
null
""" Given a csv or txt file and a Tensorflow 1.15 SavedModel file, run image classification on the urls and write the predicted label and confidence back to the file """ import argparse import os from io import BytesIO import requests import pandas as pd from csv import writer as csv_writer from tqdm import tqdm from m...
37.346774
134
0.734183
723
4,631
4.605809
0.276625
0.018018
0.019219
0.010811
0.095496
0.088288
0.075075
0.037237
0.037237
0.037237
0
0.00386
0.160872
4,631
123
135
37.650407
0.853062
0.253077
0
0.048193
0
0
0.176007
0.006713
0
0
0
0
0
1
0.048193
false
0.012048
0.120482
0
0.204819
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecd5add47e791d4dc866d0ec2a94e998ea16a8cb
2,403
py
Python
line_art/line_art.py
Ravenlocke/PythonArt
30de6117f7639313344c9938087399acfc93ba80
[ "MIT" ]
null
null
null
line_art/line_art.py
Ravenlocke/PythonArt
30de6117f7639313344c9938087399acfc93ba80
[ "MIT" ]
null
null
null
line_art/line_art.py
Ravenlocke/PythonArt
30de6117f7639313344c9938087399acfc93ba80
[ "MIT" ]
null
null
null
import click import matplotlib.pyplot as plt import numpy as np from loguru import logger from matplotlib.collections import LineCollection number_to_degrees = { k: (np.cos(np.pi * 2 / 10 * k), np.sin(np.pi * 2 / 10 * k)) for k in range(10) } @click.command() @click.option( "--seed", "-s", default=0, hel...
26.119565
99
0.648772
331
2,403
4.598187
0.398792
0.043364
0.039422
0.009198
0.010512
0
0
0
0
0
0
0.016454
0.21598
2,403
91
100
26.406593
0.791401
0.001665
0
0.105263
0
0
0.239466
0
0
0
0
0
0
1
0.013158
false
0
0.065789
0
0.078947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecd6a85eca2c9043b2128295fe6e487ccb69bc48
1,277
py
Python
src/utils/reddit.py
mzone242/Loth-Bot
830b3659c86f36e84c12e13796f74c607ff2868e
[ "MIT" ]
null
null
null
src/utils/reddit.py
mzone242/Loth-Bot
830b3659c86f36e84c12e13796f74c607ff2868e
[ "MIT" ]
null
null
null
src/utils/reddit.py
mzone242/Loth-Bot
830b3659c86f36e84c12e13796f74c607ff2868e
[ "MIT" ]
null
null
null
import datetime import logging logger = logging.getLogger("utils.reddit") subreddit = None over_threshold = [] def load_subreddit(_subreddit): global subreddit subreddit = _subreddit return def fetch_posts(_limit): try: logger.info(f"Fetching top {_limit} posts from {subreddit.display_name...
28.377778
99
0.584182
151
1,277
4.827815
0.456954
0.071331
0.060357
0
0
0
0
0
0
0
0
0.019495
0.31715
1,277
44
100
29.022727
0.816514
0
0
0
0
0
0.1574
0.018794
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecd8a0ddb4c88f7b415905177b5939de99f001aa
1,220
py
Python
mfcc-features.py
gitikadaswani/Audio-Genre-Classification
5702ed067d41982018a3e166dcdcd7b8e8cc6fa9
[ "MIT" ]
20
2017-12-09T02:41:46.000Z
2020-08-29T06:26:57.000Z
mfcc-features.py
debeat/Audio-Genre-Classification
5702ed067d41982018a3e166dcdcd7b8e8cc6fa9
[ "MIT" ]
2
2018-04-20T14:13:05.000Z
2020-01-21T17:14:46.000Z
mfcc-features.py
debeat/Audio-Genre-Classification
5702ed067d41982018a3e166dcdcd7b8e8cc6fa9
[ "MIT" ]
11
2018-05-17T07:32:51.000Z
2021-11-11T23:51:36.000Z
#from scikits.talkbox.features import mfcc import scipy.io.wavfile import numpy as np import sys import os import glob from utils1 import GENRE_DIR, GENRE_LIST from python_speech_features import mfcc #from librosa.feature import mfcc # Given a wavfile, computes mfcc and saves mfcc data def create_ceps(wavfile): sam...
25.416667
66
0.741803
199
1,220
4.396985
0.422111
0.034286
0.044571
0.036571
0.052571
0.052571
0
0
0
0
0
0.002899
0.151639
1,220
48
67
25.416667
0.842512
0.196721
0
0
0
0
0.018735
0
0
0
0
0
0
1
0.103448
false
0
0.241379
0
0.344828
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecdc6ba10786df9e7a33a53fdc2a2e452c9d0c0f
1,551
py
Python
2022/fix_user_varbinaries_T298565.py
wikimedia/operations-software-schema-changes
d5fc0442126c9e4280b90302f675889724b085db
[ "Apache-2.0" ]
1
2022-03-25T06:59:37.000Z
2022-03-25T06:59:37.000Z
2022/fix_user_varbinaries_T298565.py
wikimedia/operations-software-schema-changes
d5fc0442126c9e4280b90302f675889724b085db
[ "Apache-2.0" ]
null
null
null
2022/fix_user_varbinaries_T298565.py
wikimedia/operations-software-schema-changes
d5fc0442126c9e4280b90302f675889724b085db
[ "Apache-2.0" ]
null
null
null
from auto_schema.schema_change import SchemaChange # Copy this file and make adjustments # Set to None or 0 to skip downtiming downtime_hours = 6 ticket = 'T298565' fields = { 'user_newpass_time': 'BINARY(14) DEFAULT NULL', 'user_email_authenticated': 'BINARY(14) DEFAULT NULL', 'user_email_token': 'BINAR...
31.653061
93
0.668601
225
1,551
4.48
0.448889
0.047619
0.059524
0.075397
0.108135
0.055556
0
0
0
0
0
0.024247
0.228885
1,551
48
94
32.3125
0.818562
0.277885
0
0
0
0
0.316216
0.043243
0
0
0
0
0
1
0.03125
false
0.03125
0.03125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecdfc10584ead3508610d287f02bad431a223015
1,069
py
Python
controllers/messagelog.py
uezo/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
14
2019-08-05T22:54:59.000Z
2021-12-21T00:29:22.000Z
controllers/messagelog.py
whitecat-22/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
1
2021-06-17T09:30:33.000Z
2021-06-18T07:16:37.000Z
controllers/messagelog.py
whitecat-22/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
5
2019-09-03T06:51:44.000Z
2021-06-17T09:40:42.000Z
from flask import ( Blueprint, current_app, request, abort, render_template ) from minette.serializer import loads # メインから読み込むBlueprintの定義 bp = Blueprint("messagelog", __name__) # メッセージログのハンドラー @bp.route("/messagelog", methods=["GET"]) def messagelog(): # BOTインスタンスの取得 bot = current_app.l...
30.542857
76
0.651076
120
1,069
5.65
0.541667
0.039823
0.044248
0
0
0
0
0
0
0
0
0.00722
0.222638
1,069
34
77
31.441176
0.808664
0.108513
0
0
0
0
0.195354
0
0
0
0
0
0
1
0.04
false
0.04
0.08
0
0.16
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ece0d4591ac1dbef0075df8821e6f6390b749839
5,015
py
Python
model/MolecularVAE_TF.py
DexiongYung/molecular-vae
ca0e5a58abfc89e693d06331f93e5a23b948b683
[ "MIT" ]
null
null
null
model/MolecularVAE_TF.py
DexiongYung/molecular-vae
ca0e5a58abfc89e693d06331f93e5a23b948b683
[ "MIT" ]
null
null
null
model/MolecularVAE_TF.py
DexiongYung/molecular-vae
ca0e5a58abfc89e693d06331f93e5a23b948b683
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from utilities import DEVICE def vae_loss(x_decoded_mean, x, z_mean, z_sd): bce_loss = F.binary_cross_entropy(x_decoded_mean, x, reduction='sum') kl_loss = -0.5 * torch.sum(1 + z_sd - z_mean.pow(2) - z_sd) return bce_loss + kl_loss class...
38.875969
76
0.592223
734
5,015
3.768392
0.192098
0.060738
0.037961
0.014461
0.271511
0.15799
0.116052
0.057845
0.03543
0.03543
0
0.020011
0.292522
5,015
128
77
39.179688
0.759583
0.00658
0
0.048544
0
0
0.000605
0
0
0
0
0
0
1
0.058252
false
0
0.038835
0
0.15534
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ece2b7f45bad32bc48fb693a6dbc789112e48513
2,391
py
Python
gdmtl/datasets/sampler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/sampler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/sampler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
1
2022-02-26T00:49:03.000Z
2022-02-26T00:49:03.000Z
from __future__ import annotations from typing import Iterator, List import numpy as np from more_itertools import chunked from torch.utils.data import Sampler from .rank_dataset import TokenCountDataset class DynamicBatchSampler(Sampler): # type:ignore def __init__( self, dataset: TokenCountD...
30.653846
88
0.608532
294
2,391
4.795918
0.319728
0.085816
0.049645
0.025532
0.324823
0.283688
0.22695
0.22695
0.22695
0.163121
0
0.002392
0.300711
2,391
77
89
31.051948
0.840909
0.148892
0
0.327273
0
0
0
0
0
0
0
0
0
1
0.127273
false
0
0.109091
0.072727
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
ece5b98101c0b7084789fda8de5123934565565b
15,973
py
Python
tamarco/core/microservice.py
System73/tamarco
c85bec267d39057a4cd5f1c9854d5e2840cebb1e
[ "MIT" ]
9
2019-09-06T10:57:36.000Z
2019-10-14T07:24:02.000Z
tamarco/core/microservice.py
System73/tamarco
c85bec267d39057a4cd5f1c9854d5e2840cebb1e
[ "MIT" ]
4
2020-04-06T15:52:40.000Z
2021-06-02T00:27:33.000Z
tamarco/core/microservice.py
System73/tamarco
c85bec267d39057a4cd5f1c9854d5e2840cebb1e
[ "MIT" ]
3
2019-09-06T10:52:05.000Z
2019-10-10T07:45:26.000Z
import asyncio import logging import sys import time import uuid from collections import OrderedDict from collections.abc import Callable from functools import partial from threading import Thread from typing import Coroutine, Union from tamarco.core.dependency_resolver import CantSolveDependencies, resolve_dependency...
38.121718
120
0.65617
1,984
15,973
5.139113
0.169355
0.026481
0.019223
0.018341
0.298254
0.251177
0.219106
0.203511
0.161044
0.153393
0
0.001856
0.257998
15,973
418
121
38.212919
0.858421
0.191824
0
0.274194
0
0
0.148099
0.010585
0
0
0
0
0.004032
1
0.056452
false
0
0.092742
0
0.262097
0.008065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ece6b2f23aba6f4dbaac2a541f07ef48b3ac7e3b
4,990
py
Python
napari/utils/colormaps/_tests/test_categorical_colormap.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
1,345
2019-03-03T21:14:14.000Z
2022-03-31T19:46:39.000Z
napari/utils/colormaps/_tests/test_categorical_colormap.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
3,904
2019-03-02T01:30:24.000Z
2022-03-31T20:17:27.000Z
napari/utils/colormaps/_tests/test_categorical_colormap.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
306
2019-03-29T17:09:10.000Z
2022-03-30T09:54:11.000Z
import json from itertools import cycle import numpy as np import pytest from napari.utils.colormaps.categorical_colormap import CategoricalColormap def test_default_categorical_colormap(): cmap = CategoricalColormap() assert cmap.colormap == {} color_cycle = cmap.fallback_color np.testing.assert_a...
33.716216
82
0.690982
695
4,990
4.717986
0.130935
0.025008
0.026532
0.020738
0.501067
0.374504
0.269594
0.191522
0.184203
0.128088
0
0.031411
0.183367
4,990
147
83
33.945578
0.773252
0.114228
0
0.156863
0
0
0.044485
0
0
0
0
0
0.235294
1
0.078431
false
0
0.04902
0
0.127451
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf1ce20b4fefaf58c8c7d08d20616ef3be895a2
375
py
Python
src/utils/utils.py
andrelopez/cron-parser-cli
35df5d5d8113dde99bee95f834c63248ce459194
[ "MIT" ]
null
null
null
src/utils/utils.py
andrelopez/cron-parser-cli
35df5d5d8113dde99bee95f834c63248ce459194
[ "MIT" ]
null
null
null
src/utils/utils.py
andrelopez/cron-parser-cli
35df5d5d8113dde99bee95f834c63248ce459194
[ "MIT" ]
null
null
null
from columnar import columnar def print_table(minute: str, hour: str, day: str, month: str, week: str, cmd: str) -> str: table = [ ['minute', minute], ['hour', hour], ['day of month', day], ['month', month], ['day of week', week], ['command', cmd] ] table = ...
25
90
0.541333
46
375
4.369565
0.413043
0.109453
0
0
0
0
0
0
0
0
0
0
0.296
375
15
91
25
0.761364
0
0
0
0
0
0.119681
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf35ef4c074dccc46a80355a4787bf3619f13a3
778
py
Python
tests/utils/test_download.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
tests/utils/test_download.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
tests/utils/test_download.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
from gather.utils import download import hashlib from helpers import get_datapath def test_download(requests_mock): beaco2n_data = get_datapath(filename="test_data.csv", network="beaco2n") binary_data = beaco2n_data.read_bytes() mock_url = "https://example.com/some_csv.txt" requests_mock.get( ...
19.948718
76
0.667095
97
778
5.103093
0.391753
0.09899
0.090909
0.115152
0.359596
0.270707
0.270707
0.141414
0
0
0
0.054237
0.241645
778
38
77
20.473684
0.784746
0
0
0.407407
0
0
0.107969
0.041131
0
0
0
0
0.111111
1
0.037037
false
0
0.111111
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ecf408df66ed468cf11584dcfbbc451fc2a54142
917
py
Python
LeNet/LeNet_pt.py
MuhammedAshraf2020/implementation-of-CNN-Models
52be2b8d27c2340d30b6cab1883fffdb2f656343
[ "MIT" ]
2
2021-02-09T16:14:50.000Z
2021-08-03T13:33:47.000Z
LeNet/LeNet_pt.py
MuhammedAshraf2020/implementation-of-CNN-Models
52be2b8d27c2340d30b6cab1883fffdb2f656343
[ "MIT" ]
null
null
null
LeNet/LeNet_pt.py
MuhammedAshraf2020/implementation-of-CNN-Models
52be2b8d27c2340d30b6cab1883fffdb2f656343
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim # Create Model class LeNet_pt(nn.Module): def __init__(self): super(LeNet_pt , self).__init__() self.ConvModel = nn.Sequential( nn.Conv2d(in_channels = 3 , out_channels = 6 , kernel_size = (5 , 5) , padding = (0 , 0) , stride = (1 , 1)), ...
35.269231
118
0.586696
140
917
3.692857
0.321429
0.096712
0.058027
0.104449
0.381044
0.381044
0.381044
0.381044
0.381044
0.381044
0
0.075036
0.244275
917
25
119
36.68
0.670996
0.013086
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
019e55ec1c50df9500d86cf12839f5b296083659
4,782
py
Python
ELA_Training_Module_Final.py
Sawera557/PhotoChamp-Image-Forensic-Tool
e7550a97d33cdf58a66ea0efcc451178bfd88a8d
[ "MIT" ]
null
null
null
ELA_Training_Module_Final.py
Sawera557/PhotoChamp-Image-Forensic-Tool
e7550a97d33cdf58a66ea0efcc451178bfd88a8d
[ "MIT" ]
null
null
null
ELA_Training_Module_Final.py
Sawera557/PhotoChamp-Image-Forensic-Tool
e7550a97d33cdf58a66ea0efcc451178bfd88a8d
[ "MIT" ]
null
null
null
import itertools import os import random as random1 import matplotlib.pyplot as plt import numpy as np import pandas as pd from PIL import Image, ImageChops, ImageEnhance from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D from keras.models import Sequential from keras.optimizers import RMSpr...
37.952381
123
0.645128
663
4,782
4.481146
0.351433
0.021542
0.024234
0.011444
0.080781
0.023561
0.023561
0.023561
0.023561
0
0
0.029098
0.216646
4,782
125
124
38.256
0.764015
0.045797
0
0
0
0
0.076067
0.00545
0
0
0
0
0
1
0.032609
false
0
0.163043
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01a154d7d3f987732b81523447ce1b96222a9132
3,140
py
Python
natural/bank.py
Foxlik/natural
0e8b15b200525ee147579b025a787646f7534890
[ "MIT" ]
21
2015-03-02T15:41:25.000Z
2020-05-20T12:46:03.000Z
natural/bank.py
Foxlik/natural
0e8b15b200525ee147579b025a787646f7534890
[ "MIT" ]
12
2015-10-29T18:02:00.000Z
2021-11-10T21:49:40.000Z
natural/bank.py
Foxlik/natural
0e8b15b200525ee147579b025a787646f7534890
[ "MIT" ]
8
2015-10-29T17:50:13.000Z
2020-01-16T09:40:53.000Z
from natural.constant import _, IBAN_ALPHABET from natural.constant import BBAN_RULES, BBAN_PATTERN, BBAN_MAP import re def bban_compact(number): ''' Printable compacted Basic Bank Account Number. Removes all the padding characters. :param number: string >>> bban_compact('1234.56.78.90') '12...
25.528455
78
0.606369
369
3,140
5.084011
0.327913
0.072495
0.036247
0.053305
0.28678
0.201493
0.172175
0.172175
0.127932
0.127932
0
0.08518
0.267197
3,140
122
79
25.737705
0.730117
0.424204
0
0.095238
0
0
0.100439
0
0
0
0
0
0
1
0.119048
false
0
0.071429
0.02381
0.309524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01a26e38bfd6477fceda79c2ab6901ad81a89ddd
6,435
py
Python
menu.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
1
2018-03-20T06:01:17.000Z
2018-03-20T06:01:17.000Z
menu.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
19
2018-03-20T23:11:38.000Z
2018-04-01T17:39:10.000Z
menu.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
null
null
null
from collections import namedtuple import state_manager import background import sound import quit_ import howto import locations import pygame import consts class MenuEntry(object): def __init__(self, name: str, typ) -> None: super().__init__() self._name = name self._typ = typ ...
39
156
0.591142
856
6,435
4.191589
0.160047
0.035674
0.062709
0.031773
0.323579
0.268952
0.179208
0.14019
0.114827
0.114827
0
0.025558
0.276457
6,435
164
157
39.237805
0.74506
0.010878
0
0.108696
0
0
0.011474
0.003615
0
0
0
0
0
1
0.108696
false
0
0.07971
0.021739
0.253623
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01a35af78a818794456f060908d249837cf70d44
5,576
py
Python
cpepgen/chemical_linkages.py
hjuinj/cpepgen
965f84148f783bd1d19aec4c9b86841a598d4a9b
[ "MIT" ]
null
null
null
cpepgen/chemical_linkages.py
hjuinj/cpepgen
965f84148f783bd1d19aec4c9b86841a598d4a9b
[ "MIT" ]
null
null
null
cpepgen/chemical_linkages.py
hjuinj/cpepgen
965f84148f783bd1d19aec4c9b86841a598d4a9b
[ "MIT" ]
null
null
null
""" This file contains several reactions for RDKIT NOTES: - Check what happens with ASP ASP ester bond formation? need more specifications to do that side targets? - check_reaction_mols, also checking how many of the reaction sites are present in one molecule? - (more specific smart: make_aa_backbone_bond = [N...
43.224806
230
0.695301
729
5,576
5.215364
0.245542
0.121515
0.047344
0.058916
0.430563
0.362704
0.308785
0.304314
0.287743
0.234087
0
0.017133
0.173063
5,576
128
231
43.5625
0.807417
0.222382
0
0.152778
0
0.027778
0.15715
0.037754
0
0
0
0.007813
0
1
0.125
false
0
0.041667
0.027778
0.305556
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01a431b7bea5dccade1e08d80166cc10db69bf34
1,105
py
Python
config.py
cclauss/MAX-Object-Detector
4f38f7c1ba65cc39baa4a0f466618b91a65f46a1
[ "Apache-2.0" ]
null
null
null
config.py
cclauss/MAX-Object-Detector
4f38f7c1ba65cc39baa4a0f466618b91a65f46a1
[ "Apache-2.0" ]
null
null
null
config.py
cclauss/MAX-Object-Detector
4f38f7c1ba65cc39baa4a0f466618b91a65f46a1
[ "Apache-2.0" ]
null
null
null
import os # Flask settings DEBUG=True # Flask-restplus settings RESTPLUS_MASK_SWAGGER=False # Application settings # API metadata API_TITLE = 'Model Asset Exchange Server' API_DESC = 'An API for serving models' API_VERSION = '0.1' # default model # name of model to download MODEL_NAME = 'ssd_mobilenet_v1_coco_2017...
29.864865
97
0.744796
159
1,105
4.930818
0.566038
0.068878
0.061224
0.056122
0
0
0
0
0
0
0
0.021008
0.138462
1,105
36
98
30.694444
0.802521
0.284163
0
0
0
0
0.363636
0.116517
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01a49750a5f79f46de5800bcca67ff60a286ab7c
921
py
Python
check_pharmacist.py
136s/check_pharmacist
02f60355523b5c4890fd314d6d000bfe54226db8
[ "CC0-1.0" ]
null
null
null
check_pharmacist.py
136s/check_pharmacist
02f60355523b5c4890fd314d6d000bfe54226db8
[ "CC0-1.0" ]
null
null
null
check_pharmacist.py
136s/check_pharmacist
02f60355523b5c4890fd314d6d000bfe54226db8
[ "CC0-1.0" ]
null
null
null
import time import pandas as pd from selenium import webdriver SEARCH_URL = "https://licenseif.mhlw.go.jp/search_iyaku/top.jsp" SLEEP_SEC = 3 IN_CSV_NAME = "./list.csv" OUT_CSV_NAME = "./output.csv" # 名前を投げると「登録年」の list が返ってくる def get_years(name) : driver.get(SEARCH_URL) time.sleep(SLEEP_SEC) search_box =...
26.314286
81
0.689468
147
921
4.102041
0.537415
0.046434
0.029851
0
0
0
0
0
0
0
0
0.003896
0.163952
921
34
82
27.088235
0.779221
0.082519
0
0
0
0
0.142687
0
0
0
0
0
0
1
0.038462
false
0
0.115385
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01a82caa0086ae5bd27db7ac800143f2aa34c7d3
3,983
py
Python
Lessons/source/search.py
daisukiyo/cs-1.3
e23056c509f429d83cb8be94714205c78a76549f
[ "MIT" ]
null
null
null
Lessons/source/search.py
daisukiyo/cs-1.3
e23056c509f429d83cb8be94714205c78a76549f
[ "MIT" ]
2
2019-04-25T00:49:24.000Z
2019-05-15T23:22:36.000Z
Lessons/source/search.py
daisukiyo/cs-1.3
e23056c509f429d83cb8be94714205c78a76549f
[ "MIT" ]
null
null
null
#!python def linear_search(array, item): """return the first index of item in array or None if item is not found""" # implement linear_search_iterative and linear_search_recursive below, then # change this to call your implementation to verify it passes all tests # return linear_search_iterative(array,...
37.575472
99
0.667085
549
3,983
4.765027
0.176685
0.068807
0.053517
0.06422
0.700688
0.625382
0.535933
0.482416
0.482416
0.390291
0
0.004517
0.277429
3,983
106
100
37.575472
0.904448
0.583731
0
0.475
0
0
0
0
0
0
0
0.009434
0
1
0.15
false
0
0
0
0.425
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01a966a9092da2d27ed743864a64cbfc07fefe41
2,560
py
Python
tests/generators.py
jlausuch/pcw
df4bf3d071024f894169163e2f0ad756c0c944bd
[ "Apache-2.0" ]
null
null
null
tests/generators.py
jlausuch/pcw
df4bf3d071024f894169163e2f0ad756c0c944bd
[ "Apache-2.0" ]
35
2020-11-11T11:14:36.000Z
2022-03-28T17:06:01.000Z
tests/generators.py
jlausuch/pcw
df4bf3d071024f894169163e2f0ad756c0c944bd
[ "Apache-2.0" ]
3
2020-11-12T10:39:07.000Z
2020-12-22T09:51:38.000Z
from faker import Faker from datetime import datetime fake = Faker() min_image_age_hours = 7 max_images_per_flavor = 1 max_image_age_hours = 20 azure_storage_resourcegroup = 'openqa' ec2_max_snapshot_age_days = 1 ec2_max_volumes_age_days = 5 class MockImage: def __init__(self, name, last_modified=None): ...
29.767442
89
0.639844
329
2,560
4.68997
0.246201
0.163318
0.126377
0.048607
0.205444
0.031108
0
0
0
0
0
0.023846
0.230078
2,560
85
90
30.117647
0.759006
0
0
0.101449
0
0
0.096484
0.037891
0
0
0
0
0
1
0.115942
false
0
0.028986
0.028986
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
01ae25899453c6d21187150fc54bebe1d1afb72a
1,744
py
Python
tests/builders/test_header_builder.py
pershinaM/openapi3-parser
957c86727d6d4119e98a7bc6aa260adc9fa22477
[ "MIT" ]
4
2021-01-12T12:44:20.000Z
2022-03-20T07:38:46.000Z
tests/builders/test_header_builder.py
pershinaM/openapi3-parser
957c86727d6d4119e98a7bc6aa260adc9fa22477
[ "MIT" ]
17
2021-01-08T18:36:34.000Z
2022-02-16T08:21:21.000Z
tests/builders/test_header_builder.py
pershinaM/openapi3-parser
957c86727d6d4119e98a7bc6aa260adc9fa22477
[ "MIT" ]
5
2021-05-27T19:46:49.000Z
2022-03-05T00:14:45.000Z
from unittest.mock import MagicMock import pytest from openapi_parser.builders import HeaderBuilder, SchemaFactory from openapi_parser.enumeration import DataType from openapi_parser.specification import Header, Integer, Schema, String def _get_schema_factory_mock(expected_value: Schema) -> SchemaFactory: mock_...
27.25
90
0.583142
161
1,744
6.086957
0.322981
0.079592
0.052041
0.061224
0.112245
0.112245
0.112245
0.112245
0.112245
0.112245
0
0
0.325115
1,744
63
91
27.68254
0.832625
0
0
0.153846
0
0
0.12844
0
0
0
0
0
0.019231
1
0.038462
false
0
0.096154
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01ae618867a8af68ce2b3329a0cb4a362b7294f8
808
py
Python
src/model.py
senadkurtisi/Univariate-Time-Series-Forecasting
6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6
[ "MIT" ]
null
null
null
src/model.py
senadkurtisi/Univariate-Time-Series-Forecasting
6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6
[ "MIT" ]
null
null
null
src/model.py
senadkurtisi/Univariate-Time-Series-Forecasting
6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6
[ "MIT" ]
null
null
null
import torch.nn as nn class SeqForecast(nn.Module): def __init__(self, input_dim, hidden_dim, num_layers=2): super().__init__() self.lstm = nn.LSTM(input_dim, hidden_dim, num_layers, batch_first=True) self.fc = nn.Linear(hidden_dim, 1) # Use He(uniform...
31.076923
60
0.57797
106
808
4.198113
0.509434
0.060674
0.062921
0.076404
0.116854
0.116854
0
0
0
0
0
0.012635
0.314356
808
25
61
32.32
0.790614
0.149752
0
0
0
0
0.014641
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01af7bcc534be18e709a82c37c35fb57c5674b95
1,025
py
Python
time_tools/countdown2.py
HideKobayashi/python_base
9334b83bcf003978bcfda3dbd35f83fc3a6926aa
[ "MIT" ]
null
null
null
time_tools/countdown2.py
HideKobayashi/python_base
9334b83bcf003978bcfda3dbd35f83fc3a6926aa
[ "MIT" ]
null
null
null
time_tools/countdown2.py
HideKobayashi/python_base
9334b83bcf003978bcfda3dbd35f83fc3a6926aa
[ "MIT" ]
null
null
null
from time import sleep def countdown(when_to_stop: int): while when_to_stop > 0: try: m, s = divmod(when_to_stop, 60) h, m = divmod(m, 60) time_left = str(h).zfill(2) + ":" + str(m).zfill(2) + ":" + str(s).zfill(2) print(time_left, end="\r") sleep...
26.973684
87
0.520976
124
1,025
4.080645
0.443548
0.071146
0.118577
0.075099
0
0
0
0
0
0
0
0.015337
0.363902
1,025
38
88
26.973684
0.760736
0
0
0.212121
0
0
0.151072
0
0
0
0
0
0
1
0.060606
false
0
0.030303
0
0.090909
0.212121
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01b034cce020fd91ff4ffe28a880e004894a3959
2,146
py
Python
source/util.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
source/util.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
source/util.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
import os import constant def human_size(number): current_idx = 0 result = float(number) while result > constant.size_diff: if current_idx >= len(constant.size_unit): break result = result / constant.size_diff current_idx += 1 return '{} {}'.format(round(result, con...
35.766667
116
0.651911
286
2,146
4.608392
0.223776
0.048558
0.039454
0.060698
0.256449
0.115326
0.115326
0.115326
0.115326
0.115326
0
0.008135
0.255359
2,146
59
117
36.372881
0.816646
0
0
0.043478
0
0
0.00233
0
0
0
0
0
0
1
0.108696
false
0
0.043478
0
0.23913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01b0c7510a6ee5fc7d436bfbdd1231f6a49a1e9b
1,639
py
Python
helper/sqlitehelper.py
fidele000/SQLite-Helper
d848197705d0291370cbcc83cc8aadfd2eed884b
[ "MIT" ]
1
2021-08-14T07:41:40.000Z
2021-08-14T07:41:40.000Z
helper/sqlitehelper.py
fidele000/SQLite-Helper
d848197705d0291370cbcc83cc8aadfd2eed884b
[ "MIT" ]
null
null
null
helper/sqlitehelper.py
fidele000/SQLite-Helper
d848197705d0291370cbcc83cc8aadfd2eed884b
[ "MIT" ]
null
null
null
import sqlite3 class SQLiteHelper(object): def __init__(self,db_name,): self.db_name = db_name def create_table(self,table_name,columns): name=str(self.db_name) self.conn = sqlite3.connect(name+'.db') self.c=self.conn.cursor() query='(' query+='id INTEG...
29.8
76
0.560098
194
1,639
4.597938
0.298969
0.110987
0.07287
0.063901
0.088565
0
0
0
0
0
0
0.003431
0.288591
1,639
55
77
29.8
0.761578
0.035998
0
0.190476
0
0
0.08941
0
0
0
0
0
0
1
0.142857
false
0
0.02381
0
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01b574a3a7d65deeb5fcdead6f4877e21a54e31f
50,116
py
Python
histo_GUI.py
pwilmart/PAW_pipeline
73cf90ac4f316f48131956de3a6d82fdedfd1149
[ "MIT" ]
17
2018-09-06T14:04:27.000Z
2022-03-03T11:13:15.000Z
histo_GUI.py
pwilmart/PAW_pipeline
73cf90ac4f316f48131956de3a6d82fdedfd1149
[ "MIT" ]
3
2019-05-09T10:01:59.000Z
2022-02-28T16:32:59.000Z
histo_GUI.py
pwilmart/PAW_pipeline
73cf90ac4f316f48131956de3a6d82fdedfd1149
[ "MIT" ]
6
2019-03-18T12:35:55.000Z
2022-01-07T13:28:53.000Z
"""histo_GUI.py: Written by Billy Rathje, OHSU, 2014. Also Phil Wilmarth, OHSU. Library of support functions and classes for PAW pipeline programs. The MIT License (MIT) Copyright (c) 2017 Phillip A. Wilmarth and OHSU Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
49.424063
176
0.572412
5,897
50,116
4.826692
0.14075
0.040649
0.023434
0.007378
0.43741
0.390121
0.342269
0.308787
0.273548
0.229526
0
0.013532
0.31876
50,116
1,013
177
49.472853
0.820158
0.236591
0
0.408683
0
0
0.043517
0
0.001497
0
0
0
0
1
0.076347
false
0
0.026946
0
0.13024
0.007485
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01b6d2a73e93d2c6c35cc68f44da69c9de7a5da2
851
py
Python
app/email.py
ta4tsering/pyrrha-bo
d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17
[ "MIT" ]
1
2020-08-30T04:36:25.000Z
2020-08-30T04:36:25.000Z
app/email.py
ta4tsering/pyrrha-bo
d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17
[ "MIT" ]
null
null
null
app/email.py
ta4tsering/pyrrha-bo
d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17
[ "MIT" ]
1
2020-08-30T04:33:07.000Z
2020-08-30T04:33:07.000Z
from flask import render_template from flask_mail import Message from smtplib import SMTPDataError from threading import Thread from app import mail import logging logger = logging.getLogger(__name__) def _async(app, msg): with app.app_context(): try: mail.send(msg) except SMTPData...
26.59375
76
0.673325
104
851
5.355769
0.461538
0.075404
0.050269
0
0
0
0
0
0
0
0
0
0.213866
851
31
77
27.451613
0.832586
0
0
0
0
0
0.049412
0
0
0
0
0
0
1
0.086957
false
0
0.26087
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01b8932f958e37ec8c50e7edf71a0763c83642f8
2,821
py
Python
example/runCtaTrading.py
WongLynn/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
11
2019-10-28T13:01:48.000Z
2021-06-20T03:38:09.000Z
example/runCtaTrading.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
null
null
null
example/runCtaTrading.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
6
2019-10-28T13:16:13.000Z
2020-09-08T08:03:41.000Z
import multiprocessing import os from time import sleep from datetime import datetime, time from vnpy.event import EventEngine2 from vnpy.trader.vtEvent import EVENT_LOG, EVENT_ERROR from vnpy.trader.vtEngine import MainEngine, LogEngine from vnpy.trader.gateway import okexGateway from vnpy.trader.app import ctaStrate...
25.645455
71
0.561503
293
2,821
5.313993
0.40273
0.038536
0.044958
0.021195
0.106615
0.106615
0.106615
0.106615
0.106615
0.106615
0
0.012425
0.286778
2,821
110
72
25.645455
0.761431
0.127969
0
0.138889
0
0
0.047658
0
0
0
0
0
0
1
0.041667
false
0
0.138889
0
0.194444
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01b946264ae1c245632a78a4b8778f16966ec15a
881
py
Python
promesque/lib/exporter_logger.py
croesnick/prometheus_elasticsearch
f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373
[ "MIT" ]
1
2019-04-17T20:12:23.000Z
2019-04-17T20:12:23.000Z
promesque/lib/exporter_logger.py
croesnick/promesque
f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373
[ "MIT" ]
null
null
null
promesque/lib/exporter_logger.py
croesnick/promesque
f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373
[ "MIT" ]
null
null
null
import logging import sys LOG_LEVEL_MAP = { 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging.WARNING, 'error': logging.ERROR, 'critical': logging.CRITICAL, } class ExporterError(Exception): pass class ExporterLogger(logging.Logger): def __init__(self, name, path=None, l...
23.810811
108
0.664018
99
881
5.69697
0.434343
0.047872
0.039007
0
0
0
0
0
0
0
0
0.002878
0.211124
881
36
109
24.472222
0.808633
0
0
0
0
0
0.089671
0
0
0
0
0
0
1
0.115385
false
0.038462
0.076923
0.076923
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01ba7e0e7bfae1bd8cee7ccbdab4b4b865b274ba
1,181
py
Python
2_ProcessSRA_hpcc-batch_runcc.py
ShiuLab/RNAseq_pipeline
e5e91fb5a5c257e9df67089bafd55045f6fa5049
[ "MIT" ]
4
2020-03-04T16:51:37.000Z
2021-04-19T15:46:00.000Z
2_ProcessSRA_hpcc-batch_runcc.py
ShiuLab/RNAseq_pipeline
e5e91fb5a5c257e9df67089bafd55045f6fa5049
[ "MIT" ]
null
null
null
2_ProcessSRA_hpcc-batch_runcc.py
ShiuLab/RNAseq_pipeline
e5e91fb5a5c257e9df67089bafd55045f6fa5049
[ "MIT" ]
7
2018-06-04T20:58:01.000Z
2021-09-08T00:31:33.000Z
# IMPORT import os,sys # MAIN print(''' inp1 = file with list of SRA files inp2 = bowtie index base (full path) inp3 = SE (0) or PE (1) or paired processed as single (2) inp3 and on: Any additional parameters for ProcessSRA_hpcc2.py These will be appended exactly as they appear ''') files = sys.argv[1] bowtie_ind...
33.742857
83
0.724809
184
1,181
4.538043
0.494565
0.131737
0.040719
0.062275
0.186826
0.126946
0.126946
0.126946
0.126946
0
0
0.021782
0.144793
1,181
34
84
34.735294
0.804951
0.240474
0
0
0
0
0.28764
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01bcb1ac1ff2e44f3b34c8c2ddb2306aa7a0a5f8
19,976
py
Python
src/beam/views.py
django-beam/django-beam
cba5874bfef414e65051c2534cf03c772a4da98c
[ "BSD-3-Clause" ]
5
2018-05-27T08:15:06.000Z
2020-11-10T20:38:56.000Z
src/beam/views.py
django-beam/django-beam
cba5874bfef414e65051c2534cf03c772a4da98c
[ "BSD-3-Clause" ]
68
2018-05-26T19:41:57.000Z
2022-01-26T14:46:46.000Z
src/beam/views.py
django-beam/django-beam
cba5874bfef414e65051c2534cf03c772a4da98c
[ "BSD-3-Clause" ]
1
2020-06-24T03:58:47.000Z
2020-06-24T03:58:47.000Z
from typing import List, Optional, Type from beam.registry import default_registry, register from django.apps import apps from django.contrib import messages from django.contrib.admin.utils import NestedObjects from django.core.exceptions import FieldDoesNotExist, PermissionDenied from django.db import router from dja...
32.064205
94
0.621195
2,241
19,976
5.338242
0.119589
0.028087
0.021065
0.011368
0.473711
0.40876
0.381844
0.346401
0.325086
0.319903
0
0.00014
0.284842
19,976
622
95
32.115756
0.837253
0.014718
0
0.36701
0
0.002062
0.057899
0.0058
0
0
0
0
0
1
0.142268
false
0.002062
0.041237
0.043299
0.437113
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01bd5639140a6a95c9baa58e324b49f893790914
4,557
py
Python
e3nn/tensor/fourier_tensor.py
mister-bailey/e3nn
43d4b12f5ba5947583feb35f4e0662b73aae5618
[ "MIT" ]
null
null
null
e3nn/tensor/fourier_tensor.py
mister-bailey/e3nn
43d4b12f5ba5947583feb35f4e0662b73aae5618
[ "MIT" ]
null
null
null
e3nn/tensor/fourier_tensor.py
mister-bailey/e3nn
43d4b12f5ba5947583feb35f4e0662b73aae5618
[ "MIT" ]
null
null
null
# pylint: disable=not-callable, no-member, invalid-name, line-too-long, missing-docstring, arguments-differ import numpy as np import torch from e3nn import rs from e3nn.kernel_mod import FrozenKernel from e3nn.tensor.spherical_tensor import projection class FourierTensor: def __init__(self, signal, mul, lmax, p...
32.55
107
0.553434
673
4,557
3.601783
0.23477
0.058993
0.019802
0.004951
0.123762
0.088284
0.059406
0.006188
0
0
0
0.017147
0.321703
4,557
139
108
32.784173
0.767066
0.159754
0
0.043956
0
0
0.029636
0
0
0
0
0
0.010989
1
0.087912
false
0
0.054945
0.021978
0.252747
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01bf2602a5233dc77af2a63254f7948ab7be45bf
1,189
py
Python
utils/validations.py
WycliffeMuchumi/Stream-101-API
9892685c37ff6f3e1e9017bfa5321968a5255c9e
[ "MIT" ]
null
null
null
utils/validations.py
WycliffeMuchumi/Stream-101-API
9892685c37ff6f3e1e9017bfa5321968a5255c9e
[ "MIT" ]
1
2021-06-04T09:45:05.000Z
2021-06-04T09:45:05.000Z
utils/validations.py
muchumi/Stream-101-API
9892685c37ff6f3e1e9017bfa5321968a5255c9e
[ "MIT" ]
1
2021-06-04T09:43:58.000Z
2021-06-04T09:43:58.000Z
import re from flask import make_response, jsonify """ Validates key-value pairs of request dictionary body. """ def validate_users_key_pair_values(request): keys = ['firstName','lastName','userName','email','phoneNumber','password'] errors = [] for key in keys: if key not in request.json: ...
24.770833
79
0.634987
156
1,189
4.685897
0.333333
0.05472
0.102599
0.053352
0.497948
0.432285
0.432285
0.333789
0.333789
0.333789
0
0
0.254836
1,189
48
80
24.770833
0.825056
0
0
0.382353
0
0
0.075472
0
0
0
0
0
0
1
0.147059
false
0.029412
0.058824
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01c21e6d6040d019aab4c4a5d4b11c12c95b4826
3,395
py
Python
agents/guiPlayerAgent.py
Interpause/not-just-gomoku
fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be
[ "MIT" ]
1
2018-08-19T14:06:10.000Z
2018-08-19T14:06:10.000Z
agents/guiPlayerAgent.py
Interpause/not-just-gomoku
fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be
[ "MIT" ]
null
null
null
agents/guiPlayerAgent.py
Interpause/not-just-gomoku
fc327b2e37f6c0ee8ef4e5e2ee65309c6c9a39be
[ "MIT" ]
null
null
null
from tkinter import * from agents.baseAgent import baseAgent class guiPlayerAgent(baseAgent): '''Extends baseAgent to provide a GUI for the player to use to play.''' def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) #Window initialization self.window = Tk() s...
30.044248
116
0.568778
416
3,395
4.622596
0.276442
0.084243
0.057202
0.083203
0.307852
0.273531
0.24129
0.227769
0.180447
0.180447
0
0.010161
0.304271
3,395
112
117
30.3125
0.80398
0.130191
0
0.337838
0
0
0.013393
0
0
0
0
0
0
1
0.108108
false
0.027027
0.027027
0
0.256757
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01c28000c41ee4fb2f2523d9f0173a71adcfa81a
1,802
py
Python
airflow/utils/dag_backup_helper.py
harishjami1382/test2
f778cc7290904a84bed06f65fa5dbb49a63639f0
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/utils/dag_backup_helper.py
harishjami1382/test2
f778cc7290904a84bed06f65fa5dbb49a63639f0
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/utils/dag_backup_helper.py
harishjami1382/test2
f778cc7290904a84bed06f65fa5dbb49a63639f0
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import os import subprocess from airflow.exceptions import AirflowException from airflow import configuration as conf def backup_folder_exists(): import commands remote_base_path = conf.get('core', 'REMOTE_BASE_LOG_FOLDER') if not remote_base_path.startswith('s3://'): raise AirflowException("Ther...
36.04
91
0.690899
241
1,802
4.962656
0.356846
0.06689
0.058528
0.035117
0.367057
0.351171
0.351171
0.351171
0.292642
0.292642
0
0.006684
0.169811
1,802
49
92
36.77551
0.792781
0.103774
0
0.294118
0
0
0.20261
0.068365
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01c6baf0c32d93767acdfe8d0d19a3e357b410d4
3,223
py
Python
FigureGeneration/makeFigure1.py
federatedcloud/Lake_Problem_DPS
07600c49ed543165ccdc642c1097b3bed87c28f0
[ "BSD-3-Clause" ]
null
null
null
FigureGeneration/makeFigure1.py
federatedcloud/Lake_Problem_DPS
07600c49ed543165ccdc642c1097b3bed87c28f0
[ "BSD-3-Clause" ]
3
2018-10-03T21:12:42.000Z
2019-07-08T21:32:43.000Z
FigureGeneration/makeFigure1.py
federatedcloud/Lake_Problem_DPS
07600c49ed543165ccdc642c1097b3bed87c28f0
[ "BSD-3-Clause" ]
2
2020-06-29T17:30:42.000Z
2020-06-30T22:01:49.000Z
import matplotlib.pyplot as plt from scipy.optimize import root import matplotlib import numpy as np def makeFigure1(): def fun(x): return [(x[0]**qq)/(1+x[0]**qq) - bb*x[0]] b = [0.4,0.3,0.2,0.1] q = [2.5,3,3.5,4] x = np.arange(0,2.6,0.1) y = np.zeros(len(x)) ...
35.417582
98
0.531492
552
3,223
3.068841
0.206522
0.012987
0.035419
0.070838
0.609799
0.546635
0.468713
0.434475
0.434475
0.434475
0
0.065071
0.260937
3,223
91
99
35.417582
0.646096
0.024201
0
0.333333
0
0
0.099902
0
0
0
0
0
0
1
0.026667
false
0
0.053333
0.013333
0.106667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01c6c6c8a827d3cf331a524a92625ca459d8fdce
4,882
py
Python
shutdown/start_clouds/gcp_node_scenarios.py
RH-ematysek/svt
3c4f99d453c6956b434f1a90e0658a95f3fda0a4
[ "Apache-2.0" ]
115
2016-07-15T12:24:42.000Z
2022-02-21T20:40:09.000Z
shutdown/start_clouds/gcp_node_scenarios.py
RH-ematysek/svt
3c4f99d453c6956b434f1a90e0658a95f3fda0a4
[ "Apache-2.0" ]
452
2016-05-19T13:55:19.000Z
2022-03-24T11:25:20.000Z
shutdown/start_clouds/gcp_node_scenarios.py
RH-ematysek/svt
3c4f99d453c6956b434f1a90e0658a95f3fda0a4
[ "Apache-2.0" ]
112
2016-05-16T08:48:55.000Z
2022-01-12T13:13:37.000Z
import sys import time from googleapiclient import discovery from oauth2client.client import GoogleCredentials import logging class gcp_node_scenarios(): def __init__(self, project): self.project = project logging.info("project " + str(self.project) + "!") credentials = GoogleCredentials.g...
47.862745
95
0.607743
544
4,882
5.284926
0.194853
0.097391
0.053565
0.031304
0.443478
0.416348
0.36487
0.339826
0.250087
0.19687
0
0.002939
0.30295
4,882
102
96
47.862745
0.841904
0.070258
0
0.123457
0
0
0.14904
0
0
0
0
0
0
1
0.111111
false
0
0.061728
0
0.209877
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01c8616bda4dba690dc0fe4b0df6b2da85332a5b
6,004
py
Python
balanced_treatment_within_subject/__init__.py
UMBEE/modified-otree-snippets
23b5baa28edc04b5a8c8d7607567ef29383b6777
[ "MIT" ]
null
null
null
balanced_treatment_within_subject/__init__.py
UMBEE/modified-otree-snippets
23b5baa28edc04b5a8c8d7607567ef29383b6777
[ "MIT" ]
1
2022-02-03T18:27:00.000Z
2022-02-03T20:01:50.000Z
balanced_treatment_within_subject/__init__.py
UMBEE/modified-otree-snippets
23b5baa28edc04b5a8c8d7607567ef29383b6777
[ "MIT" ]
null
null
null
from otree.api import * import itertools doc = """ Within-subject design, with three treatment conditions. Orders of the treatment will be balanced as long as the subjects arrive in multiples of 6. """ class C(BaseConstants): NAME_IN_URL = 'balanced_treatment_within_subject' PLAYERS_PER_GROUP = None # On...
35.738095
142
0.669887
703
6,004
5.391181
0.217639
0.066491
0.062797
0.061741
0.490765
0.437731
0.420053
0.324011
0.227704
0.209499
0
0.011615
0.268654
6,004
167
143
35.952096
0.851514
0.12525
0
0.342342
0
0
0.036527
0.006311
0
0
0
0
0
1
0.081081
false
0.027027
0.018018
0.018018
0.387387
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01cc57f987fa0e55546aee7eb123287a97e6bf0f
2,085
py
Python
math_utils/discretize.py
RaczeQ/naive-bayes-classifier
c8adc960885118a13677e3c5ec4039b976810bee
[ "MIT" ]
null
null
null
math_utils/discretize.py
RaczeQ/naive-bayes-classifier
c8adc960885118a13677e3c5ec4039b976810bee
[ "MIT" ]
null
null
null
math_utils/discretize.py
RaczeQ/naive-bayes-classifier
c8adc960885118a13677e3c5ec4039b976810bee
[ "MIT" ]
null
null
null
import numpy as np from sklearn.cluster import KMeans class DiscretizeParam(object): feature_name = None discretize_function = None buckets_amount = None def __init__(self, feature_name, discretize_function, buckets_amount): self.feature_name = feature_name self.discretize_fu...
40.096154
114
0.692086
257
2,085
5.346304
0.2607
0.088064
0.076419
0.09607
0.3377
0.289665
0.289665
0.240175
0.240175
0.240175
0
0.006072
0.210072
2,085
51
115
40.882353
0.828172
0
0
0.113636
0
0
0.006883
0
0
0
0
0
0
1
0.113636
false
0
0.045455
0.022727
0.431818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01cc779657651e4920bdc21cc6224a00f4c92b64
3,652
py
Python
magenta/models/polyamp/instrument_family_mappings.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
magenta/models/polyamp/instrument_family_mappings.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
1
2020-03-01T16:02:10.000Z
2020-03-01T16:02:10.000Z
magenta/models/polyamp/instrument_family_mappings.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Jack Spencer Smith. # # 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...
24.026316
74
0.627601
506
3,652
4.496047
0.407115
0.073846
0.046154
0.014066
0
0
0
0
0
0
0
0.096965
0.260131
3,652
151
75
24.18543
0.745004
0.21851
0
0
0
0
0
0
0
0
0
0.006623
0
1
0
false
0
0.015152
0
0.121212
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01cec5edb4d937a0934dcf6391bcc265af95690c
1,123
py
Python
test/group-test.py
Afsio/sd-groupcast
65df8d308280cc2096449a1bc6431eae38c54f5a
[ "MIT" ]
null
null
null
test/group-test.py
Afsio/sd-groupcast
65df8d308280cc2096449a1bc6431eae38c54f5a
[ "MIT" ]
null
null
null
test/group-test.py
Afsio/sd-groupcast
65df8d308280cc2096449a1bc6431eae38c54f5a
[ "MIT" ]
null
null
null
import unittest from project import group_s from project import printer_s from project import member_s from pyactor.context import set_context, create_host, shutdown, sleep class TestGroup(unittest.TestCase): def setUp(self): # Gets executed before every test set_context() self.h = create_...
30.351351
75
0.668744
155
1,123
4.696774
0.451613
0.041209
0.070055
0.049451
0.087912
0.087912
0.087912
0
0
0
0
0.009185
0.224399
1,123
36
76
31.194444
0.826636
0.165628
0
0
0
0
0.023605
0
0
0
0
0
0.086957
1
0.130435
false
0
0.217391
0
0.391304
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01d2669a411e95e812fc676660fcb5c7124775a0
1,458
py
Python
charlie/Include/filelogger.py
V-Perotto/Projekt-Charlie
da27d28b1194c999d17431aa990706482d7bb1a1
[ "CC0-1.0" ]
1
2021-03-20T02:03:55.000Z
2021-03-20T02:03:55.000Z
charlie/Include/filelogger.py
V-Perotto/Projekt-Charlie
da27d28b1194c999d17431aa990706482d7bb1a1
[ "CC0-1.0" ]
1
2021-04-06T04:48:01.000Z
2021-04-06T04:48:01.000Z
charlie/Include/filelogger.py
V-Perotto/Projekt-Charlie
da27d28b1194c999d17431aa990706482d7bb1a1
[ "CC0-1.0" ]
null
null
null
from os import getcwd from os.path import isfile from os.path import join from os import listdir from datetime import datetime # Obrigado Fabrício por me mostrar como criar um log em python e por ser um # colega incrível :) def filelog(name, desc): # print("ENTROU") if name == "PY_F": path_way = getc...
36.45
88
0.521262
199
1,458
3.688442
0.356784
0.087193
0.020436
0.069482
0.408719
0.356948
0.297003
0.297003
0.297003
0.245232
0
0.000935
0.266804
1,458
40
89
36.45
0.685688
0.104938
0
0.241379
0
0.034483
0.220939
0.121632
0
0
0
0
0
1
0.034483
false
0
0.172414
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01d3fee0f84d79a6c7dc8e8254bea86a141e910d
2,631
py
Python
django_project/work_evid/models.py
grumpa/work_evid
4798dc6ffde232981981f40c962a922321fcda3a
[ "BSD-3-Clause" ]
null
null
null
django_project/work_evid/models.py
grumpa/work_evid
4798dc6ffde232981981f40c962a922321fcda3a
[ "BSD-3-Clause" ]
1
2015-01-02T07:30:40.000Z
2015-01-02T07:30:40.000Z
django_project/work_evid/models.py
grumpa/work_evid
4798dc6ffde232981981f40c962a922321fcda3a
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from django.utils.translation import ugettext as _ from django.db import models from django.core.urlresolvers import reverse from django.utils import timezone class Firm(models.Model): "Simple firm database." name = models.CharField(max_length=60, verbose_name=_('firm name')) periode = mo...
36.541667
85
0.633979
309
2,631
5.161812
0.320388
0.110345
0.037618
0.048903
0.359875
0.359875
0.294044
0.294044
0.194357
0.115361
0
0.010015
0.240973
2,631
71
86
37.056338
0.788683
0.052071
0
0.230769
0
0
0.143966
0.024447
0
0
0
0
0
1
0.115385
false
0
0.076923
0.096154
0.711538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01d934196d480dae649338a69187b0e002359237
1,638
py
Python
cadence/tests/test_itask.py
simkimsia/temporal-python-sdk
6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263
[ "MIT" ]
141
2019-05-01T00:19:22.000Z
2022-03-29T13:30:31.000Z
cadence/tests/test_itask.py
simkimsia/temporal-python-sdk
6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263
[ "MIT" ]
19
2019-08-10T08:19:30.000Z
2021-05-26T01:38:39.000Z
cadence/tests/test_itask.py
simkimsia/temporal-python-sdk
6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263
[ "MIT" ]
29
2019-05-15T03:44:09.000Z
2022-03-29T21:36:17.000Z
import asyncio from asyncio.events import AbstractEventLoop from unittest import TestCase from unittest.mock import Mock, MagicMock from cadence.decision_loop import ReplayDecider, ITask from cadence.tests.test_decision_context import run_once class TestAwaitTill(TestCase): def setUp(self) -> None: self...
33.428571
90
0.698413
213
1,638
5.15493
0.258216
0.106557
0.118397
0.07286
0.336066
0.317851
0.294171
0.294171
0.294171
0.294171
0
0.000777
0.214286
1,638
48
91
34.125
0.85237
0
0
0.263158
0
0
0.000611
0
0
0
0
0
0.105263
1
0.157895
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01de93cc01e93ba0250a3e2becff8b0167586038
820
py
Python
utils/decompress_gz_to_json.py
zahidayar/BRON
585b365ec081eae758c7c7e7160ceca3ac9c2f6f
[ "MIT" ]
23
2020-10-02T12:59:19.000Z
2022-03-07T17:53:25.000Z
utils/decompress_gz_to_json.py
zahidayar/BRON
585b365ec081eae758c7c7e7160ceca3ac9c2f6f
[ "MIT" ]
9
2020-09-30T18:47:39.000Z
2022-03-08T17:21:41.000Z
utils/decompress_gz_to_json.py
zahidayar/BRON
585b365ec081eae758c7c7e7160ceca3ac9c2f6f
[ "MIT" ]
11
2020-12-30T19:21:52.000Z
2022-03-25T03:00:42.000Z
import json import gzip import argparse """ Decompresses GZ file to JSON file """ def decompress_gz_to_json(gz_path, save_path): with gzip.open(gz_path, "rt", encoding="utf-8") as f: decompressed = json.load(f) with open(save_path, 'w') as f: f.write(json.dumps(decompressed, indent=4, sort_k...
27.333333
92
0.684146
121
820
4.38843
0.38843
0.067797
0.045198
0.079096
0.312618
0.252354
0.252354
0.120527
0
0
0
0.00304
0.197561
820
29
93
28.275862
0.803951
0
0
0.1
0
0
0.174583
0
0
0
0
0
0
1
0.05
false
0
0.15
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
01ded03c96a46ab8c9a1fc28b70d091d4b45aa01
2,981
py
Python
tests/tangelo-watch.py
movermeyer/tangelo
470034ee9b3d7a01becc1ce5fddc7adc1d5263ef
[ "Apache-2.0" ]
40
2015-01-09T02:56:33.000Z
2019-03-01T05:34:13.000Z
tests/tangelo-watch.py
movermeyer/tangelo
470034ee9b3d7a01becc1ce5fddc7adc1d5263ef
[ "Apache-2.0" ]
98
2015-01-05T12:51:29.000Z
2019-01-23T20:16:48.000Z
tests/tangelo-watch.py
movermeyer/tangelo
470034ee9b3d7a01becc1ce5fddc7adc1d5263ef
[ "Apache-2.0" ]
21
2015-01-05T19:11:49.000Z
2020-08-19T04:16:16.000Z
import fixture import nose import requests import os import pprint import time def get_times(response): """ Parse a response from a watch script to get the reported times. :param response: the response from a requests.get call. :returns: a dictionary of parsed times. """ times = {} for pa...
31.052083
76
0.628313
448
2,981
4.107143
0.220982
0.095652
0.104348
0.098913
0.491304
0.440761
0.440761
0.440761
0.417391
0.417391
0
0.015553
0.201946
2,981
95
77
31.378947
0.757881
0.246897
0
0.517241
0
0
0.092449
0
0
0
0
0
0.293103
1
0.068966
false
0
0.103448
0
0.206897
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01e1988dca92df66d159a4de20a9672aa6ee93e3
1,394
py
Python
dfs/path-sum-II.py
windowssocket/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T02:29:40.000Z
2020-02-05T03:28:16.000Z
dfs/path-sum-II.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
1
2019-03-08T13:22:32.000Z
2019-03-08T13:22:32.000Z
dfs/path-sum-II.py
xidongc/py_leetcode
241dbf8d7dab7db5215c2526321fcdb378b45492
[ "Apache-2.0" ]
3
2018-05-29T11:50:24.000Z
2018-11-27T12:31:01.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def pathSum(self, root, sum): """ :type root: TreeNode :type sum: int :rtype: bool """ ...
25.345455
69
0.472023
168
1,394
3.892857
0.25
0.085627
0.061162
0.070336
0.293578
0.293578
0.293578
0.293578
0.198777
0.198777
0
0.00122
0.411765
1,394
55
70
25.345455
0.796341
0.185796
0
0.266667
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.366667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01e1c6dfef1b13a42336acc4b9cb04fd28520995
4,405
py
Python
train.py
matt-quant-heads-io/pcgil2
acb32c5766fca5be580f4aa56b1b7c660c39048d
[ "MIT" ]
null
null
null
train.py
matt-quant-heads-io/pcgil2
acb32c5766fca5be580f4aa56b1b7c660c39048d
[ "MIT" ]
null
null
null
train.py
matt-quant-heads-io/pcgil2
acb32c5766fca5be580f4aa56b1b7c660c39048d
[ "MIT" ]
null
null
null
#pip install tensorflow==1.15 #Install stable-baselines as described in the documentation import sys import model from model import FullyConvPolicyBigMap, FullyConvPolicySmallMap, CustomPolicyBigMap, CustomPolicySmallMap from utils import get_exp_name, max_exp_idx, load_model, make_vec_envs from stable_baselines impor...
33.625954
122
0.614075
565
4,405
4.580531
0.286726
0.030139
0.032458
0.012751
0.180835
0.139876
0.139876
0.139876
0.11051
0.083462
0
0.016697
0.252213
4,405
130
123
33.884615
0.768974
0.195233
0
0.179775
0
0
0.1434
0.047021
0
0
0
0
0
1
0.022472
false
0.011236
0.101124
0
0.134831
0.022472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01e37e55485ff713b5ef926c51471d0b3aa60ce8
5,752
py
Python
run_scripts/lfd_upper_bound_exp_script.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
56
2019-10-20T03:09:02.000Z
2022-03-25T09:21:40.000Z
run_scripts/lfd_upper_bound_exp_script.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
3
2020-10-01T07:33:51.000Z
2021-05-12T03:40:57.000Z
run_scripts/lfd_upper_bound_exp_script.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
10
2019-11-04T16:56:09.000Z
2022-03-25T09:21:41.000Z
import numpy as np import torch from torch import nn from torch.autograd import Variable from copy import deepcopy from gym.spaces import Dict from rllab.misc.instrument import VariantGenerator import rlkit.torch.pytorch_util as ptu from rlkit.envs.wrappers import NormalizedBoxEnv from rlkit.launchers.launcher_util i...
34.035503
115
0.677156
758
5,752
4.791557
0.255937
0.084802
0.131057
0.066079
0.35793
0.296256
0.237885
0.219438
0.170705
0.170705
0
0.004296
0.190716
5,752
168
116
34.238095
0.77594
0.246349
0
0.021277
0
0
0.142757
0.01143
0
0
0
0
0
1
0.010638
false
0
0.276596
0
0.297872
0.031915
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01e3a685fc855932c7cffb03a56fb066ee005d8b
2,535
py
Python
tldap/helpers.py
Karaage-Cluster/python-tldap-debian
9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213
[ "BSD-3-Clause" ]
null
null
null
tldap/helpers.py
Karaage-Cluster/python-tldap-debian
9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213
[ "BSD-3-Clause" ]
null
null
null
tldap/helpers.py
Karaage-Cluster/python-tldap-debian
9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2012-2014 Brian May # # This file is part of python-tldap. # # python-tldap is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
30.178571
74
0.624458
324
2,535
4.685185
0.361111
0.039526
0.047431
0.073781
0.293149
0.225955
0.161397
0.109354
0.109354
0.056653
0
0.004913
0.277318
2,535
83
75
30.542169
0.82369
0.298225
0
0.372549
0
0
0
0
0
0
0
0
0
1
0.176471
false
0.019608
0.039216
0.019608
0.392157
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01e4a93d122c374bc7b77d38adfb718aea0aeaed
899
py
Python
vmraid/patches/v5_0/bookmarks_to_stars.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v5_0/bookmarks_to_stars.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
vmraid/patches/v5_0/bookmarks_to_stars.py
sowrisurya/vmraid
f833e00978019dad87af80b41279c0146c063ed5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import json import vmraid import vmraid.defaults from vmraid.desk.like import _toggle_like from six import string_types def execute(): for user in vmraid.get_all("User"): username = user["name"] bookmarks = vmraid.db.get_default("_bookmarks", username) if not bookmarks: ...
26.441176
70
0.696329
118
899
5.169492
0.449153
0.052459
0.036066
0
0
0
0
0
0
0
0
0.001357
0.1802
899
33
71
27.242424
0.826323
0
0
0.111111
0
0
0.067853
0
0
0
0
0
0
1
0.037037
false
0
0.222222
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01e4d64999a4e0f305613c36fd0071cb9705dd30
4,061
py
Python
data_create.py
Primtee/triplet-loss-train-for-speaker-recognition
8d0f405eddbbb129bd7bf60565390cdaca0a8aa8
[ "MIT" ]
13
2019-04-01T02:38:59.000Z
2022-03-02T20:18:13.000Z
data_create.py
Primtee/triplet-loss-train-for-speaker-recognition
8d0f405eddbbb129bd7bf60565390cdaca0a8aa8
[ "MIT" ]
1
2019-07-22T02:33:57.000Z
2019-07-22T02:33:57.000Z
data_create.py
Primtee/triplet-loss-train-for-speaker-recognition
8d0f405eddbbb129bd7bf60565390cdaca0a8aa8
[ "MIT" ]
8
2019-04-02T01:49:19.000Z
2021-04-23T09:22:20.000Z
# coding=utf-8 __author__ = 'NXG' import os, wave import contextlib import collections from math import ceil from dataprovider.create.data_management import mik_dir saved_original_voice_path = '/data/validation_clip/' def read_wave(path): with contextlib.closing(wave.open(path, 'rb')) as wf: """ ...
35.008621
98
0.638513
551
4,061
4.46461
0.30127
0.069106
0.02439
0.013821
0.08252
0.017073
0
0
0
0
0
0.055925
0.260281
4,061
115
99
35.313043
0.762983
0.099729
0
0
0
0
0.04912
0.006796
0
0
0
0
0.025641
1
0.076923
false
0
0.064103
0
0.217949
0.064103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01ee6ced64104669ebecf6c3325e44ad9e03b6ac
5,344
py
Python
saving.py
pabilbado/IVanalyzer
4ebb5333508906328c9b7df5311ea0616ba9344f
[ "MIT" ]
null
null
null
saving.py
pabilbado/IVanalyzer
4ebb5333508906328c9b7df5311ea0616ba9344f
[ "MIT" ]
null
null
null
saving.py
pabilbado/IVanalyzer
4ebb5333508906328c9b7df5311ea0616ba9344f
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import os import time intro= """\ \\documentclass[a4paper]{article} %% Language and font encodings \\usepackage[english]{babel} \\usepackage[utf8x]{inputenc} \\usepackage[T1]{fontenc} %% Sets page size and margins \\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,...
35.865772
317
0.537051
552
5,344
4.949275
0.375
0.040996
0.019766
0.029649
0.252562
0.146047
0.129941
0.096999
0.096999
0.096999
0
0.014755
0.264409
5,344
148
318
36.108108
0.680234
0.154004
0
0.139785
0
0.043011
0.448866
0.140952
0
0
0
0
0
1
0.032258
false
0
0.043011
0
0.107527
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01f0b340264833a77f844be5ad80f6b639b8a21f
1,896
py
Python
connect4_driver.py
YeungJonathan/ConnectFourGame
a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a
[ "MIT" ]
null
null
null
connect4_driver.py
YeungJonathan/ConnectFourGame
a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a
[ "MIT" ]
null
null
null
connect4_driver.py
YeungJonathan/ConnectFourGame
a9fc8c063a6484fb9a5cbfea788b9db6c99bc43a
[ "MIT" ]
2
2018-10-18T20:55:29.000Z
2019-05-05T22:20:08.000Z
from connect4_board import Board from connect4_board import Player import random class Driver: def __init__(self): playerOne = input('Input Player 1 name: ') playerTwo = input('Input Player 2 name: ') self.p1 = Player(1,'X', playerOne) self.p2 = Player(2,'O', playerTwo) self.board = Board() def prompt(s...
24.947368
62
0.658755
254
1,896
4.862205
0.330709
0.051012
0.036437
0.037247
0.030769
0
0
0
0
0
0
0.023873
0.204641
1,896
76
63
24.947368
0.795093
0.077004
0
0.067797
0
0
0.108997
0
0
0
0
0
0
1
0.101695
false
0
0.050847
0
0.254237
0.20339
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01f46813c24eb72d17e7473237ce843aed94ffa2
13,244
py
Python
main.py
fab-jul/ppfin
f3e51583d42590eceb6d3920a351f8f2639792c1
[ "MIT" ]
null
null
null
main.py
fab-jul/ppfin
f3e51583d42590eceb6d3920a351f8f2639792c1
[ "MIT" ]
null
null
null
main.py
fab-jul/ppfin
f3e51583d42590eceb6d3920a351f8f2639792c1
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger() logger.setLevel(logging.DEBUG) fh = logging.FileHandler('otp.log') fh.setLevel(logging.DEBUG) logger.addHandler(fh) import argparse import urwid import data_controller import symbol_values _BACKGROUND = urwid.SolidFill(u'\N{MEDIUM SHADE}') _BASE_CURRENCY = 'CHF' _main...
30.168565
100
0.627001
1,641
13,244
4.828154
0.155393
0.028398
0.032185
0.018932
0.35378
0.291809
0.274391
0.190963
0.140098
0.121166
0
0.00227
0.234899
13,244
438
101
30.237443
0.779631
0.029447
0
0.284483
0
0
0.059813
0
0
0
0
0.002283
0.005747
1
0.112069
false
0.011494
0.014368
0.002874
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
01f72bd21f2a381c2c81de43a8ad15b68badbae6
4,917
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/cloudscale.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # (c) 2017, Gaudenz Steinlin <gaudenz.steinlin@cloudscale.ch> # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import absolute_import, division, print_function __metaclass__ = type from copy import deepcopy from ansibl...
36.969925
106
0.548709
563
4,917
4.563055
0.268206
0.066174
0.021409
0.028026
0.360841
0.352666
0.341767
0.330479
0.317244
0.245232
0
0.008469
0.351637
4,917
132
107
37.25
0.797365
0.082774
0
0.204082
0
0
0.109753
0
0
0
0
0
0
1
0.091837
false
0
0.05102
0.030612
0.27551
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01fa9fa16e7ec6eb680b54dc81280b527fab92e8
751
py
Python
lesson-2/task2.py
GintoGloss/GeekUniversity-Python
b30da872bd5c68905ab66485ca06bdf3008b3995
[ "Unlicense" ]
null
null
null
lesson-2/task2.py
GintoGloss/GeekUniversity-Python
b30da872bd5c68905ab66485ca06bdf3008b3995
[ "Unlicense" ]
null
null
null
lesson-2/task2.py
GintoGloss/GeekUniversity-Python
b30da872bd5c68905ab66485ca06bdf3008b3995
[ "Unlicense" ]
null
null
null
# 2. Для списка реализовать обмен значений соседних элементов, т.е. Значениями обмениваются элементы с индексами 0 и # 1, 2 и 3 и т.д. При нечетном количестве элементов последний сохранить на своем месте. Для заполнения списка # элементов необходимо использовать функцию input(). my_list = [] list_len = input("Сколько ...
39.526316
116
0.723036
119
751
4.411765
0.470588
0.125714
0.08381
0.068571
0.066667
0.066667
0.066667
0
0
0
0
0.017572
0.166445
751
18
117
41.722222
0.821086
0.363515
0
0.166667
0
0
0.139241
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
01fde946914f4c6f922ba5d95ad8427ac784b8c5
1,759
py
Python
omniinsight/objs.py
omnibuildplatform/omni-insight
8a83ac5742a41c07c7ee3f442c2e104b026aa484
[ "MulanPSL-1.0" ]
null
null
null
omniinsight/objs.py
omnibuildplatform/omni-insight
8a83ac5742a41c07c7ee3f442c2e104b026aa484
[ "MulanPSL-1.0" ]
null
null
null
omniinsight/objs.py
omnibuildplatform/omni-insight
8a83ac5742a41c07c7ee3f442c2e104b026aa484
[ "MulanPSL-1.0" ]
null
null
null
import os import yaml class ProjectData: def __init__(self, name, sig): self.name = name self.sig = sig class RpmData: def __init__(self, name): self.name = name self.id = '' self.short_name = '' self.arch = '' self.group = '' self.description ...
25.867647
67
0.528709
180
1,759
4.972222
0.227778
0.080447
0.053631
0.050279
0.069274
0.069274
0.069274
0.069274
0
0
0
0
0.351904
1,759
67
68
26.253731
0.785088
0
0
0.196429
0
0
0.086981
0
0
0
0
0
0
1
0.107143
false
0
0.035714
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01fe3b13e6d2f50b47795caf8363733e1ca35753
812
py
Python
main/coin-change/coin-change-cache.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/coin-change/coin-change-cache.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/coin-change/coin-change-cache.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import functools def count_ways(coins, total): length = len(coins) @functools.lru_cache(maxsize=None) def _solve(index, subtot): value = coins[index] return sum(solve(index + 1, next_subtot) for next_subtot in range(subtot, -1, -value)) def ...
21.945946
64
0.598522
104
812
4.5
0.442308
0.08547
0.102564
0.081197
0
0
0
0
0
0
0
0.013722
0.28202
812
36
65
22.555556
0.789022
0.025862
0
0
0
0
0.034177
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0
0.461538
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01fe4da65b5536a35e63367696f21e9c251539ba
4,686
py
Python
WebCrawler/WebCrawler.py
chenyz2000/MiniProjects
33182e6b98190cd72aed228ab6c4b64a8ea4ebdb
[ "MIT" ]
null
null
null
WebCrawler/WebCrawler.py
chenyz2000/MiniProjects
33182e6b98190cd72aed228ab6c4b64a8ea4ebdb
[ "MIT" ]
null
null
null
WebCrawler/WebCrawler.py
chenyz2000/MiniProjects
33182e6b98190cd72aed228ab6c4b64a8ea4ebdb
[ "MIT" ]
null
null
null
import math import random import time import re from queue import Queue import urllib.request import urllib.error import jieba from bs4 import BeautifulSoup urlSet = set() urlList = [] doc = 0 que = Queue() user_agents = [ 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835....
33.234043
119
0.532224
634
4,686
3.87224
0.317035
0.010998
0.019552
0.022403
0.123829
0.062729
0.028513
0.020367
0
0
0
0.067317
0.321596
4,686
140
120
33.471429
0.704939
0.109902
0
0.096491
0
0.04386
0.155888
0
0
0
0
0
0
1
0.026316
false
0.017544
0.078947
0
0.114035
0.008772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01ff0fb86e36d267d898975db026d9e74086232c
7,398
py
Python
dags/dop/airflow_module/operator/dbt_k8_operator.py
bytecodeio/google_data_services_template
08b64972e9899971d5c4f892480aa0c067b53c3b
[ "MIT" ]
63
2021-03-30T12:09:40.000Z
2022-03-04T14:30:11.000Z
dags/dop/airflow_module/operator/dbt_k8_operator.py
bytecodeio/google_data_services_template
08b64972e9899971d5c4f892480aa0c067b53c3b
[ "MIT" ]
null
null
null
dags/dop/airflow_module/operator/dbt_k8_operator.py
bytecodeio/google_data_services_template
08b64972e9899971d5c4f892480aa0c067b53c3b
[ "MIT" ]
8
2021-03-30T12:15:55.000Z
2021-08-22T14:25:30.000Z
import logging import os from typing import List, Dict from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator from airflow.sensors.base_sensor_operator import apply_defaults from dop.component.configuration.env import env_config from dop.airflow_module.operator import dbt_operator_helper ...
36.264706
147
0.598946
865
7,398
4.865896
0.285549
0.047042
0.033262
0.025659
0.156332
0.075077
0.059397
0.059397
0.044191
0.018532
0
0.001165
0.303731
7,398
203
148
36.44335
0.815958
0.177751
0
0.055556
0
0.013889
0.226285
0.100927
0
0
0
0
0
1
0.041667
false
0
0.048611
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
01ff66c7fe5c77fb55b20587a4618914f352a1af
3,471
py
Python
birthday.py
jordanvtskier12/Birthday-quiz
8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53
[ "MIT" ]
null
null
null
birthday.py
jordanvtskier12/Birthday-quiz
8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53
[ "MIT" ]
null
null
null
birthday.py
jordanvtskier12/Birthday-quiz
8eb6cfda35ae9e7b3a0b2b7fe9d12d851e778d53
[ "MIT" ]
null
null
null
""" birthday.py Author: Jordan Credit: none Assignment: Your program will ask the user the following questions, in this order: 1. Their name. 2. The name of the month they were born in (e.g. "September"). 3. The year they were born in (e.g. "1962"). 4. The day they were born on (e.g. "11"). If the user's birthday fe...
33.057143
139
0.673869
579
3,471
4.037997
0.177893
0.071856
0.053892
0.102652
0.670231
0.627887
0.590676
0.469204
0.389222
0.355004
0
0.041862
0.201671
3,471
105
140
33.057143
0.801877
0.228464
0
0
0
0
0.366904
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.36
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf00295358fe63143dc1908bc85278216ed3616f
5,093
py
Python
models/dyn_model.py
zhouxian/GNS-PyTorch
c2401e11cfaee06c2108369dc55e15d8a2b52a7c
[ "MIT" ]
1
2022-03-24T14:15:11.000Z
2022-03-24T14:15:11.000Z
models/dyn_model.py
zhouxian/GNS-PyTorch
c2401e11cfaee06c2108369dc55e15d8a2b52a7c
[ "MIT" ]
null
null
null
models/dyn_model.py
zhouxian/GNS-PyTorch
c2401e11cfaee06c2108369dc55e15d8a2b52a7c
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from config import _C as C from models.layers.GNN_dmwater import GraphNet from scipy import spatial import numpy as np import utils class Net(nn.Module): def __init__(self): super(Net, self).__init__() self.node_dim_in = C.NET.NODE...
36.378571
106
0.591793
653
5,093
4.376723
0.229709
0.06648
0.088174
0.056683
0.227782
0.175647
0.130861
0.130861
0.130861
0.130861
0
0.009744
0.294718
5,093
140
107
36.378571
0.785913
0.039073
0
0.133333
0
0
0.016564
0
0
0
0
0
0.009524
1
0.038095
false
0
0.07619
0
0.152381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf02ba4cab7446a1e4a8e195ce66a394e9365faf
1,224
py
Python
reuse_model_layer.py
MorvanZhou/Tensorflow2-Tutorial
871c627786d557f04db2dc5334da664a314d85f7
[ "Apache-2.0" ]
193
2019-10-22T07:15:34.000Z
2022-03-30T12:45:55.000Z
reuse_model_layer.py
LAJsisyphean/Tensorflow2-Tutorial
871c627786d557f04db2dc5334da664a314d85f7
[ "Apache-2.0" ]
null
null
null
reuse_model_layer.py
LAJsisyphean/Tensorflow2-Tutorial
871c627786d557f04db2dc5334da664a314d85f7
[ "Apache-2.0" ]
51
2019-11-06T12:52:41.000Z
2022-03-30T07:31:45.000Z
from tensorflow import keras import numpy as np data_x = np.random.normal(size=[1000, 1]) noise = np.random.normal(size=[1000, 1]) * 0.2 data_y = data_x * 3. + 2. + noise train_x, train_y = data_x[:900], data_y[:900] test_x, test_y = data_x[900:], data_y[900:] # define your reusable layers in here l1 = keras.layers...
28.465116
89
0.669935
198
1,224
4.005051
0.393939
0.025221
0.055486
0.045397
0.148802
0.100883
0.042875
0
0
0
0
0.065025
0.170752
1,224
43
90
28.465116
0.716256
0.093137
0
0
0
0
0.025316
0
0
0
0
0
0
1
0.068966
false
0
0.068966
0
0.206897
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf0473077d1f391cb46585a278833cc7fc757836
1,932
py
Python
usage/python/tools/source/globus/usage/cwscorev2packet.py
jtfrey/globus-toolkit
ee55e99c6d6a6dd2dbd4246c0537e0b083069a5d
[ "Apache-2.0" ]
44
2015-02-04T22:01:05.000Z
2021-01-27T21:18:47.000Z
usage/python/tools/source/globus/usage/cwscorev2packet.py
jtfrey/globus-toolkit
ee55e99c6d6a6dd2dbd4246c0537e0b083069a5d
[ "Apache-2.0" ]
69
2015-04-07T16:07:26.000Z
2020-06-17T20:00:34.000Z
usage/python/tools/source/globus/usage/cwscorev2packet.py
ellert/globus-toolkit
14761278bf048b0d9bd3d46ab4c3c987b968f2d3
[ "Apache-2.0" ]
51
2015-04-07T14:29:47.000Z
2021-09-23T08:44:18.000Z
# Copyright 1999-2009 University of Chicago # # 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 t...
32.745763
78
0.628882
235
1,932
5.07234
0.506383
0.050336
0.012584
0.013423
0.126678
0.126678
0.120805
0.120805
0.120805
0.120805
0
0.013879
0.291408
1,932
58
79
33.310345
0.85683
0.544513
0
0
0
0.047619
0.412467
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bf06d9a54893683667a74e4a18de2351b9f5889b
1,101
py
Python
looker_prometheus_exporter/tests/test_metric_fetcher.py
nested-tech/looker-prometheus-exporter
7352ea9ea6e5aab7049b39882c7b3832baafc18b
[ "MIT" ]
null
null
null
looker_prometheus_exporter/tests/test_metric_fetcher.py
nested-tech/looker-prometheus-exporter
7352ea9ea6e5aab7049b39882c7b3832baafc18b
[ "MIT" ]
null
null
null
looker_prometheus_exporter/tests/test_metric_fetcher.py
nested-tech/looker-prometheus-exporter
7352ea9ea6e5aab7049b39882c7b3832baafc18b
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch, MagicMock from requests import Response from looker_prometheus_exporter.looker_metric_fetcher import LookerMetricFetcher from looker_prometheus_exporter.looker_auth import LookerAuthenticationError class TestMetricFetcher(TestCase): @patch("requests....
39.321429
114
0.749319
124
1,101
6.290323
0.483871
0.066667
0.092308
0.115385
0.158974
0.110256
0
0
0
0
0
0.005482
0.171662
1,101
27
115
40.777778
0.849781
0
0
0
0
0
0.182561
0.06267
0
0
0
0
0.047619
1
0.047619
false
0
0.238095
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
bf07234d71c7b574935a5582101336be79944027
5,801
py
Python
src/baseline/exnn/exnn/xnn.py
fau-is/gam_comparison
c47e8f8ced281e0a71b7959a211cb5b289ac7606
[ "MIT" ]
1
2022-03-24T11:26:56.000Z
2022-03-24T11:26:56.000Z
src/baseline/exnn/exnn/xnn.py
fau-is/gam_comparison
c47e8f8ced281e0a71b7959a211cb5b289ac7606
[ "MIT" ]
null
null
null
src/baseline/exnn/exnn/xnn.py
fau-is/gam_comparison
c47e8f8ced281e0a71b7959a211cb5b289ac7606
[ "MIT" ]
null
null
null
import tensorflow as tf from .base import BaseNet class xNN(BaseNet): """ Explainable neural network (xNN). xNN is based on the Explainable neural network (Joel et al. 2018) with the following implementation details: 1. Categorical variables should be first converted by one-hot encoding, and we dire...
44.282443
197
0.666264
757
5,801
4.924703
0.326288
0.052307
0.037554
0.01529
0.136803
0.111052
0.07618
0.07618
0.07618
0.07618
0
0.025605
0.259438
5,801
130
198
44.623077
0.842179
0.513705
0
0.166667
0
0
0.006088
0
0
0
0
0
0
1
0.0625
false
0
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0