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
a0d646ba03a4465fe2514a5e2b0f73386fb45c4c
2,321
py
Python
app/api/V1/views/products.py
Paulvitalis200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
null
null
null
app/api/V1/views/products.py
Paulvitalis200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
4
2018-10-21T18:28:03.000Z
2018-10-24T12:48:24.000Z
app/api/V1/views/products.py
Paulstar200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Resource, reqparse from flask_jwt_extended import create_access_token, jwt_required from app.api.V1.models import Product, products class PostProduct(Resource): parser = reqparse.RequestParser() parser.add_argument('name', required=True, help='Produc...
35.166667
111
0.616545
271
2,321
5.206642
0.394834
0.064493
0.036145
0.048901
0.068037
0.038271
0.038271
0.038271
0
0
0
0.010843
0.284791
2,321
65
112
35.707692
0.839157
0.063335
0
0.14
0
0
0.214022
0
0
0
0
0
0
1
0.06
false
0
0.08
0
0.38
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0d68497a4530b9b9bb8366ff9da7d608dd9a751
1,155
py
Python
51-100/p87.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
1
2019-02-25T13:00:31.000Z
2019-02-25T13:00:31.000Z
51-100/p87.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
null
null
null
51-100/p87.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
null
null
null
import time from multiprocessing.pool import Pool def is_prime(num): for i in range(2, int(num**0.5+1)): if num % i == 0: return None return num if __name__ == '__main__': t = time.time() p1 = Pool(processes=30) p2 = Pool(processes=30) p3 = Pool(processes=30) num1 = r...
26.860465
65
0.587013
186
1,155
3.451613
0.306452
0.065421
0.070093
0.046729
0.15109
0.132399
0
0
0
0
0
0.078528
0.294372
1,155
42
66
27.5
0.709202
0
0
0
0
0
0.011255
0
0
0
0
0
0
1
0.027027
false
0
0.054054
0
0.135135
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0d6b47a07ed18120ebb9b10352d658a22a11ecb
267
py
Python
Clean Word/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Clean Word/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Clean Word/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
# recursion function (Clean Word) def CleanWord(word): if len(word) == 1: return word elif word[0] == word[1]: return CleanWord(word[1:]) else: return word[0] + CleanWord(word[1:]) print(CleanWord("wwwooooorrrrllddd"))
19.071429
44
0.58427
32
267
4.875
0.46875
0.128205
0.141026
0
0
0
0
0
0
0
0
0.030928
0.273408
267
13
45
20.538462
0.773196
0.116105
0
0
0
0
0.07265
0
0
0
0
0
0
1
0.125
false
0
0
0
0.5
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0d7aa3f87b3b51ae56654591cba7faff73f9f8f
665
py
Python
commands/rotatecamera.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
2
2021-11-13T20:18:44.000Z
2021-11-13T20:27:04.000Z
commands/rotatecamera.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
null
null
null
commands/rotatecamera.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
1
2021-11-14T01:38:53.000Z
2021-11-14T01:38:53.000Z
import typing from commands2 import CommandBase from subsystems.cameracontroller import CameraSubsystem class RotateCamera(CommandBase): def __init__(self, camera: CameraSubsystem, leftRight: typing.Callable[[], float], upDown: typing.Callable[[], float]) -> None: Comman...
28.913043
70
0.667669
63
665
6.666667
0.380952
0.095238
0.090476
0.095238
0
0
0
0
0
0
0
0.001961
0.233083
665
22
71
30.227273
0.821569
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0d85ead79155e87bca877ab2df552ddd4292930
8,188
py
Python
instapp/views.py
uwamahororachel/instagram
d5b7127e62047287dfadec15743676df48f278a9
[ "MIT" ]
null
null
null
instapp/views.py
uwamahororachel/instagram
d5b7127e62047287dfadec15743676df48f278a9
[ "MIT" ]
null
null
null
instapp/views.py
uwamahororachel/instagram
d5b7127e62047287dfadec15743676df48f278a9
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from django.http import HttpResponse, Http404,HttpResponseRedirect import datetime as dt from .models import Post,Comment,Follow,Profile from django.contrib.auth.decorators import login_required from .forms import NewPostForm, NewCommentForm, AddProfileForm from django.contr...
36.882883
151
0.626282
975
8,188
5.111795
0.104615
0.041934
0.049559
0.041934
0.702047
0.690409
0.630819
0.595506
0.566613
0.524077
0
0.001136
0.24768
8,188
221
152
37.049774
0.807955
0
0
0.678571
0
0
0.107719
0.004275
0
0
0
0
0
1
0.066327
false
0
0.035714
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
a0d89d58810bc392058c43540e5719fda8ed9934
6,822
py
Python
cfg.py
alexandonian/relational-set-abstraction
8af6a6a58883ce59c7b29e4161ff970e3bded642
[ "MIT" ]
9
2020-09-17T23:09:42.000Z
2021-12-29T09:56:24.000Z
cfg.py
alexandonian/relational-set-abstraction
8af6a6a58883ce59c7b29e4161ff970e3bded642
[ "MIT" ]
null
null
null
cfg.py
alexandonian/relational-set-abstraction
8af6a6a58883ce59c7b29e4161ff970e3bded642
[ "MIT" ]
1
2021-01-16T07:19:42.000Z
2021-01-16T07:19:42.000Z
import argparse import torch import logger import models import utils NUM_NODES = { 'moments': 391, 'multimoments': 391, 'kinetics': 608, } CRITERIONS = { 'CE': {'func': torch.nn.CrossEntropyLoss}, 'MSE': {'func': torch.nn.MSELoss}, 'BCE': {'func': torch.nn.BCEWithLogitsLoss}, } OPTIMIZERS =...
32.956522
86
0.650836
775
6,822
5.490323
0.230968
0.06134
0.115864
0.022562
0.191774
0.111633
0.036663
0.021152
0
0
0
0.017627
0.193345
6,822
206
87
33.116505
0.755588
0
0
0.094444
0
0
0.324831
0.163295
0
0
0
0
0
1
0.033333
false
0
0.027778
0
0.094444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0dac9d01fbc63e4052a6ea761aeaa779debac1b
2,021
py
Python
Spider/SpiderLab/lab3/lab3/spiders/spider_msg.py
JimouChen/python-application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
1
2020-08-09T12:47:27.000Z
2020-08-09T12:47:27.000Z
Spider/SpiderLab/lab3/lab3/spiders/spider_msg.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
Spider/SpiderLab/lab3/lab3/spiders/spider_msg.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
import scrapy from bs4 import BeautifulSoup from lab3.items import Lab3Item class QuoteSpider(scrapy.Spider): name = 'quotes' start_urls = ['http://quotes.toscrape.com/page/1/'] page_num = 1 # 对爬取到的信息进行解析 def parse(self, response, **kwargs): soup = BeautifulSoup(response.body, 'html.parse...
40.42
102
0.568036
242
2,021
4.644628
0.35124
0.031139
0.039146
0.05605
0.229537
0.11032
0.11032
0.11032
0.11032
0.11032
0
0.016183
0.266205
2,021
49
103
41.244898
0.74174
0.111331
0
0.108108
0
0
0.158189
0
0.027027
0
0
0
0
1
0.054054
false
0
0.081081
0
0.243243
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0db51a733ae0c8c54da89e34dba10cbd38f7150
1,236
py
Python
Aditya/Parametric_Models/WeiExpLog.py
cipheraxat/Survival-Analysis
fb7ecbe4a61fc72785a4327c86e0f81a58c5b3df
[ "Apache-2.0" ]
7
2020-06-14T20:43:55.000Z
2020-06-23T06:07:08.000Z
Aditya/Parametric_Models/WeiExpLog.py
Abhijit2505/Survival-Analysis
94c0c386aacfe03a9f2f018511236292f36c4ed9
[ "Apache-2.0" ]
14
2020-06-20T06:28:50.000Z
2020-09-08T15:54:29.000Z
Aditya/Parametric_Models/WeiExpLog.py
Abhijit2505/Survival-Analysis
94c0c386aacfe03a9f2f018511236292f36c4ed9
[ "Apache-2.0" ]
9
2020-06-19T03:50:21.000Z
2021-05-10T18:19:26.000Z
import matplotlib.pyplot as plt from lifelines import (WeibullFitter, ExponentialFitter, LogNormalFitter, LogLogisticFitter) import pandas as pd data = pd.read_csv('Dataset/telco_customer.csv') data['tenure'] = pd.to_numeric(data['tenure']) data = data[data['tenure'] > 0] # Replace yes and No ...
34.333333
97
0.711974
186
1,236
4.672043
0.435484
0.09206
0.023015
0.04603
0.124281
0.124281
0
0
0
0
0
0.02881
0.12945
1,236
35
98
35.314286
0.77881
0.076861
0
0
0
0
0.239684
0.042142
0
0
0
0
0
1
0
false
0
0.115385
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0de95c4112c071280835a86de6b15a92fec2e83
2,260
py
Python
spoteno/steps/numbers.py
Z-80/spoteno
5d2ae7da437cfd8f9cf351b9602269c115dcd46f
[ "MIT" ]
2
2020-01-16T10:23:05.000Z
2021-11-17T15:44:29.000Z
spoteno/steps/numbers.py
Z-80/spoteno
5d2ae7da437cfd8f9cf351b9602269c115dcd46f
[ "MIT" ]
null
null
null
spoteno/steps/numbers.py
Z-80/spoteno
5d2ae7da437cfd8f9cf351b9602269c115dcd46f
[ "MIT" ]
2
2021-03-25T12:06:36.000Z
2021-11-17T15:44:30.000Z
import re import num2words INT_PATTERN = re.compile(r'^-?[0-9]+$') FLOAT_PATTERN = re.compile(r'^-?[0-9]+[,\.][0-9]+$') ORDINAL_PATTERN = re.compile(r'^[0-9]+\.?$') NUM_PATTERN = re.compile(r'^-?[0-9]+([,\.][0-9]+$)?') class NumberToWords: def __init__(self, lang_code): self.lang_code = lang_code ...
23.541667
61
0.511504
255
2,260
4.364706
0.254902
0.06469
0.075472
0.061096
0.49416
0.465409
0.398922
0.398922
0.361186
0.361186
0
0.023161
0.350442
2,260
95
62
23.789474
0.735014
0.052655
0
0.542373
0
0
0.04354
0.021297
0
0
0
0
0
1
0.101695
false
0
0.033898
0
0.305085
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0e444f5e01631d54753ab517309246502cc9089
4,950
py
Python
resources/portfolio_book.py
basgir/bibliotek
42456ced804a2c9570227b393de662847283c76f
[ "MIT" ]
null
null
null
resources/portfolio_book.py
basgir/bibliotek
42456ced804a2c9570227b393de662847283c76f
[ "MIT" ]
null
null
null
resources/portfolio_book.py
basgir/bibliotek
42456ced804a2c9570227b393de662847283c76f
[ "MIT" ]
null
null
null
########################################### # Author : Bastien Girardet, Deborah De Wolff # Date : 13.05.2018 # Course : Applications in Object-oriented Programming and Databases # Teachers : Binswanger Johannes, Zürcher Ruben # Project : Bibliotek # Name : portfolio_book.py Portfolio_book Flask_restful res...
40.57377
149
0.625051
560
4,950
5.458929
0.271429
0.080798
0.018319
0.036637
0.281322
0.254171
0.24174
0.177298
0.149166
0.149166
0
0.009943
0.288889
4,950
121
150
40.909091
0.858523
0.378788
0
0.339623
0
0
0.196044
0
0
0
0
0
0
1
0.09434
false
0
0.056604
0
0.433962
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0e4dae891748b8a01307ae7aac7bc7715d4cc4e
9,199
py
Python
examples/the-feeling-of-success/run_experiments.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/run_experiments.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/run_experiments.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
import logging from absl import app from sensor_msgs.msg import Image from insert_table_op import InsertTableOperator from insert_block_op import InsertBlockOperator from init_robot_op import InitRobotOperator from gel_sight_op import GelSightOperator from mock_loc_obj_op import MockLocateObjectOperator from goto_xyz_...
35.245211
79
0.655941
1,044
9,199
5.391762
0.161877
0.079943
0.030201
0.021318
0.416415
0.293658
0.203766
0.107834
0.074436
0.052585
0
0.022318
0.245027
9,199
260
80
35.380769
0.788193
0.060767
0
0.298643
0
0
0.209391
0.008232
0
0
0
0
0
1
0.00905
false
0.00905
0.081448
0
0.090498
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0e5feb7c20a84c78be8423f81add0bb2c5c4589
2,686
py
Python
junction/tickets/migrations/0001_initial.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
192
2015-01-12T06:21:24.000Z
2022-03-10T09:57:37.000Z
junction/tickets/migrations/0001_initial.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
621
2015-01-01T09:19:17.000Z
2021-05-28T09:27:35.000Z
junction/tickets/migrations/0001_initial.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
207
2015-01-05T16:39:06.000Z
2022-02-15T13:18:15.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import jsonfield.fields from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ ...
35.813333
87
0.44341
205
2,686
5.595122
0.370732
0.054926
0.094159
0.125545
0.397559
0.25109
0.200523
0.200523
0.200523
0.123801
0
0.014374
0.456069
2,686
74
88
36.297297
0.770705
0.007818
0
0.294118
0
0
0.078483
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.102941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0e63766143621d523ba6066faa521d14ec9c390
1,300
py
Python
src/bin/calc_stats.py
sw005320/PytorchWaveNetVocoder
b92d7af7d5f2794291e0d462694c0719f75ca469
[ "Apache-2.0" ]
1
2021-01-18T06:22:30.000Z
2021-01-18T06:22:30.000Z
src/bin/calc_stats.py
sw005320/PytorchWaveNetVocoder
b92d7af7d5f2794291e0d462694c0719f75ca469
[ "Apache-2.0" ]
null
null
null
src/bin/calc_stats.py
sw005320/PytorchWaveNetVocoder
b92d7af7d5f2794291e0d462694c0719f75ca469
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Tomoki Hayashi (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) from __future__ import print_function import argparse import numpy as np from sklearn.preprocessing import StandardScaler from utils import read_hdf5 from ut...
24.074074
60
0.665385
174
1,300
4.816092
0.5
0.03222
0.053699
0.045346
0.064439
0
0
0
0
0
0
0.021505
0.213077
1,300
53
61
24.528302
0.797654
0.176154
0
0.066667
0
0
0.118532
0
0
0
0
0
0
1
0.033333
false
0
0.233333
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0e9174ff5dee90055733752e0b8cd4f3423f64e
1,654
py
Python
SoftUni-Python-Programming-Course/Exam-Preparation/medicines_in_carton.py
vladislav-karamfilov/Python-Playground
ed83a693d37ff0c1565ece49d2a5d9ecd32c9aac
[ "MIT" ]
1
2019-04-07T23:10:27.000Z
2019-04-07T23:10:27.000Z
SoftUni-Python-Programming-Course/Exam-Preparation/medicines_in_carton.py
vladislav-karamfilov/Python-Playground
ed83a693d37ff0c1565ece49d2a5d9ecd32c9aac
[ "MIT" ]
null
null
null
SoftUni-Python-Programming-Course/Exam-Preparation/medicines_in_carton.py
vladislav-karamfilov/Python-Playground
ed83a693d37ff0c1565ece49d2a5d9ecd32c9aac
[ "MIT" ]
null
null
null
# Problem description: http://python3.softuni.bg/student/lecture/assignment/56b749af7e4f59b649b7e626/ class Medicine: def __init__(self, name, w, h, d): self.name = name self.w = w self.h = h self.d = d def can_be_put_in_carton(self, carton_w, carton_h, carton_d): sort...
29.535714
107
0.638452
215
1,654
4.562791
0.274419
0.061162
0.03262
0.040775
0.217125
0.123344
0.059123
0
0
0
0
0.01876
0.258767
1,654
55
108
30.072727
0.781403
0.059855
0
0
0
0
0.017386
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0e9bc2b96c3d8a0da5092d2ce1abf89a56a046d
858
py
Python
circuitpy_examples/week1/04_ramp_LED_brightness.py
WSU-Physics/phys150
043ebf8212b56a988ef8e41a4464400bec5a7dc1
[ "MIT" ]
null
null
null
circuitpy_examples/week1/04_ramp_LED_brightness.py
WSU-Physics/phys150
043ebf8212b56a988ef8e41a4464400bec5a7dc1
[ "MIT" ]
null
null
null
circuitpy_examples/week1/04_ramp_LED_brightness.py
WSU-Physics/phys150
043ebf8212b56a988ef8e41a4464400bec5a7dc1
[ "MIT" ]
null
null
null
# Adam Beardsley # starting from from adafruit example # https://learn.adafruit.com/welcome-to-circuitpython/creating-and-editing-code # import board import digitalio import time led = digitalio.DigitalInOut(board.LED) led.direction = digitalio.Direction.OUTPUT ramp_time = 3 # Time to ramp up, in seconds period = 0....
28.6
79
0.698135
124
858
4.774194
0.548387
0.015203
0.02027
0.037162
0
0
0
0
0
0
0
0.012012
0.223776
858
29
80
29.586207
0.876877
0.462704
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0ead277852aac4f9b24d58dbb1630e69b9f9cac
1,099
py
Python
__main__.py
Makeeyaf/SiteChecker
969bdedd2d5df36220ff9fcc41e44cf1db0cca00
[ "MIT" ]
1
2021-01-06T01:45:41.000Z
2021-01-06T01:45:41.000Z
__main__.py
Makeeyaf/SiteChecker
969bdedd2d5df36220ff9fcc41e44cf1db0cca00
[ "MIT" ]
2
2021-01-03T13:25:39.000Z
2021-01-03T15:57:01.000Z
__main__.py
Makeeyaf/SiteChecker
969bdedd2d5df36220ff9fcc41e44cf1db0cca00
[ "MIT" ]
null
null
null
import argparse from site_checker import SiteChecker if __name__ == "__main__": parser = argparse.ArgumentParser(description="Check sites text.") parser.add_argument("config", type=str, nargs=1, help="Path to config json file.") parser.add_argument( "-a", dest="apiKey", type=str, ...
26.166667
86
0.586897
126
1,099
4.97619
0.5
0.086124
0.162679
0.041467
0.054226
0
0
0
0
0
0
0.007538
0.275705
1,099
41
87
26.804878
0.780151
0
0
0.131579
0
0
0.214741
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0eb34e703fb20df0982cbdc1702ff56c69d7bb6
1,563
py
Python
autop-listener/autop-listener.py
yuriel-v/ansible
f6e8fcb1edfbef550da2fe217cfd84941523f692
[ "MIT" ]
null
null
null
autop-listener/autop-listener.py
yuriel-v/ansible
f6e8fcb1edfbef550da2fe217cfd84941523f692
[ "MIT" ]
null
null
null
autop-listener/autop-listener.py
yuriel-v/ansible
f6e8fcb1edfbef550da2fe217cfd84941523f692
[ "MIT" ]
null
null
null
import os from pathlib import Path from datetime import datetime from json import dumps import flask as fsk from flask import request, jsonify, Response app = fsk.Flask(__name__) app.config['DEBUG'] = False homedir = os.getenv('HOME') @app.route('/provision', methods=['POST']) def auto_provision(): Path(f'{homed...
32.5625
136
0.658989
209
1,563
4.76555
0.483254
0.063253
0.045181
0.051205
0.050201
0
0
0
0
0
0
0.008346
0.15675
1,563
47
137
33.255319
0.747344
0
0
0
0
0.029412
0.332266
0.114597
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0ee65cec9b822e4705a0e2c457a3bbab820bf6b
1,314
py
Python
cryptographyMachine/cryptographyMachine.py
anuranjan08/CryptoMachine
5a1d68adbe88708f21902d1d44a636c043f6ed28
[ "MIT" ]
null
null
null
cryptographyMachine/cryptographyMachine.py
anuranjan08/CryptoMachine
5a1d68adbe88708f21902d1d44a636c043f6ed28
[ "MIT" ]
null
null
null
cryptographyMachine/cryptographyMachine.py
anuranjan08/CryptoMachine
5a1d68adbe88708f21902d1d44a636c043f6ed28
[ "MIT" ]
null
null
null
def machine(): keys='abcdefghijklmnopqrstuvwxyz !' values=keys[-1]+keys[0:-1] """ In encrytpDict: In decryptDict: keys Values keys Values 'a' '!' '!' 'a' 'b' 'a' 'a' 'b' . . . . . . ....
27.375
89
0.547945
150
1,314
4.8
0.453333
0.041667
0.008333
0.055556
0.080556
0.080556
0
0
0
0
0
0.003429
0.334094
1,314
47
90
27.957447
0.819429
0
0
0
0
0
0.220257
0.041801
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0ee8d887762a2061e866ff6d3e72e86639288e1
645
py
Python
tests/test_ioeeg_abf.py
wonambi-python/wonambi
4e2834cdd799576d1a231ecb48dfe4da1364fe3a
[ "BSD-3-Clause" ]
63
2017-12-30T08:11:17.000Z
2022-01-28T10:34:20.000Z
tests/test_ioeeg_abf.py
wonambi-python/wonambi
4e2834cdd799576d1a231ecb48dfe4da1364fe3a
[ "BSD-3-Clause" ]
23
2017-09-08T08:29:49.000Z
2022-03-17T08:19:13.000Z
tests/test_ioeeg_abf.py
wonambi-python/wonambi
4e2834cdd799576d1a231ecb48dfe4da1364fe3a
[ "BSD-3-Clause" ]
12
2017-09-18T12:48:36.000Z
2021-09-22T07:16:07.000Z
from numpy import isnan from wonambi import Dataset from .paths import axon_abf_file d = Dataset(axon_abf_file) def test_abf_read(): assert len(d.header['chan_name']) == 1 assert d.header['start_time'].minute == 47 data = d.read_data(begtime=1, endtime=2) assert data.data[0][0, 0] == 2.197265592...
21.5
59
0.662016
107
645
3.82243
0.373832
0.0489
0.066015
0.095355
0.195599
0.102689
0
0
0
0
0
0.074286
0.186047
645
29
60
22.241379
0.704762
0
0
0
0
0
0.043411
0
0
0
0
0
0.352941
1
0.117647
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0f3c7164fd5d0e03360ed4d29df99912a368e12
915
py
Python
day02/day02.py
pogross/adventofcode2021
33fc177d30e1104a6203e435f83594c4d3774cdb
[ "MIT" ]
null
null
null
day02/day02.py
pogross/adventofcode2021
33fc177d30e1104a6203e435f83594c4d3774cdb
[ "MIT" ]
null
null
null
day02/day02.py
pogross/adventofcode2021
33fc177d30e1104a6203e435f83594c4d3774cdb
[ "MIT" ]
null
null
null
def execute_command(command: str) -> (int): direction, magnitude = command.split(" ") horizontal, depth = 0, 0 if direction == "forward": horizontal += int(magnitude) elif direction == "up": depth -= int(magnitude) elif direction == "down": depth += int(magnitude) retur...
26.911765
68
0.636066
107
915
5.280374
0.411215
0.159292
0.074336
0.060177
0
0
0
0
0
0
0
0.007184
0.239344
915
33
69
27.727273
0.804598
0.06776
0
0.173913
0
0
0.078731
0
0
0
0
0
0
1
0.086957
false
0
0
0
0.173913
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
a0fccc7e51abcecde4662d4c35aa618544e6087c
7,500
py
Python
Perceptual Hash -Asher/ex1/example_solution.py
kidist-amde/image-search-engine
467d022f7248a74822dd9ae938b5b86333ce417a
[ "MIT" ]
null
null
null
Perceptual Hash -Asher/ex1/example_solution.py
kidist-amde/image-search-engine
467d022f7248a74822dd9ae938b5b86333ce417a
[ "MIT" ]
null
null
null
Perceptual Hash -Asher/ex1/example_solution.py
kidist-amde/image-search-engine
467d022f7248a74822dd9ae938b5b86333ce417a
[ "MIT" ]
null
null
null
import os import cv2 from sklearn.cluster import KMeans, DBSCAN, MiniBatchKMeans from scipy import spatial from sklearn.preprocessing import StandardScaler import numpy as np from tqdm import tqdm import argparse parser = argparse.ArgumentParser(description='Challenge presentation example') parser.add_argument('--data...
34.246575
122
0.608133
878
7,500
4.973804
0.238041
0.032975
0.016487
0.016029
0.065033
0.03618
0
0
0
0
0
0.009601
0.291733
7,500
218
123
34.40367
0.8125
0.078267
0
0.040816
0
0
0.075149
0.004352
0
0
0
0.004587
0.006803
1
0.07483
false
0
0.054422
0.013605
0.183673
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0fd2af6803ffa9be2e8f4bfae48a6a7e68eb4ea
179,927
py
Python
cyberradiodriver/CyberRadioDriver/radio.py
CyberRadio/CyberRadioDriver
44e6fc0e805981981514e6edc18d11d5fa33e659
[ "MIT" ]
null
null
null
cyberradiodriver/CyberRadioDriver/radio.py
CyberRadio/CyberRadioDriver
44e6fc0e805981981514e6edc18d11d5fa33e659
[ "MIT" ]
null
null
null
cyberradiodriver/CyberRadioDriver/radio.py
CyberRadio/CyberRadioDriver
44e6fc0e805981981514e6edc18d11d5fa33e659
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################### # \package CyberRadioDriver.radio # # \brief Defines basic functionality for radio handler objects. # # \note This module defines basic behavior only. To customize # a radio handler class for a particular radio, derive a new # ...
43.884634
168
0.591156
17,347
179,927
6.084799
0.081051
0.028649
0.048146
0.039241
0.565299
0.519341
0.479371
0.428325
0.382547
0.34018
0
0.005405
0.324454
179,927
4,099
169
43.89534
0.862994
0.276668
0
0.472431
0
0
0.013
0
0
0
0.000094
0
0
1
0.092732
false
0.010443
0.006266
0.045948
0.291145
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d006b0d7e89fe26f4e43d422a80339277272355
3,836
py
Python
synthdid/variance.py
MasaAsami/pysynthdid
01afe33ae22f513c65f9cfdec56a4b21ca547c28
[ "Apache-2.0" ]
null
null
null
synthdid/variance.py
MasaAsami/pysynthdid
01afe33ae22f513c65f9cfdec56a4b21ca547c28
[ "Apache-2.0" ]
null
null
null
synthdid/variance.py
MasaAsami/pysynthdid
01afe33ae22f513c65f9cfdec56a4b21ca547c28
[ "Apache-2.0" ]
2
2022-03-11T03:13:36.000Z
2022-03-20T22:55:13.000Z
import pandas as pd import numpy as np from tqdm import tqdm class Variance(object): def estimate_variance(self, algo="placebo", replications=200): """ # algo - placebo ## The following algorithms are omitted because they are not practical. - bootstrap - jackknife ...
36.884615
88
0.516945
477
3,836
3.708595
0.192872
0.052007
0.042397
0.040701
0.229508
0.131148
0.131148
0.071227
0
0
0
0.00651
0.399374
3,836
103
89
37.242718
0.761285
0.046142
0
0.029412
0
0
0.0184
0
0
0
0
0
0.014706
1
0.014706
false
0
0.044118
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d01bb83bee5f2c4612c59332de6ea7b9e34ac2f
681
py
Python
todo/views.py
arascch/Todo_list
a4c88abaa4e6c1e158135b4fce4bcfbf64cb86e2
[ "Apache-2.0" ]
1
2020-03-24T09:26:23.000Z
2020-03-24T09:26:23.000Z
todo/views.py
arascch/Todo_list
a4c88abaa4e6c1e158135b4fce4bcfbf64cb86e2
[ "Apache-2.0" ]
null
null
null
todo/views.py
arascch/Todo_list
a4c88abaa4e6c1e158135b4fce4bcfbf64cb86e2
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.utils import timezone from todo.models import Todo from django.http import HttpResponseRedirect def home(request): todo_items = Todo.objects.all().order_by("-added_date") return render(request , 'todo/index.html' , {"todo_items":todo_items}) def add_todo(request)...
35.842105
82
0.737151
89
681
5.47191
0.449438
0.090349
0.053388
0
0
0
0
0
0
0
0
0
0.142438
681
18
83
37.833333
0.833904
0
0
0.125
0
0
0.066079
0
0
0
0
0
0
1
0.1875
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d02e73cfc6d5e0a0462f594bbcafd9199cb2c88
816
py
Python
Easy/Hangman/HangMan - Stage 6.py
michael-act/HyperSkill
ce16eb3b6f755f7f8f21a57ef2679fcb8a4bd55c
[ "MIT" ]
1
2020-11-17T18:09:30.000Z
2020-11-17T18:09:30.000Z
Easy/Hangman/HangMan - Stage 6.py
michael-act/HyperSkill
ce16eb3b6f755f7f8f21a57ef2679fcb8a4bd55c
[ "MIT" ]
null
null
null
Easy/Hangman/HangMan - Stage 6.py
michael-act/HyperSkill
ce16eb3b6f755f7f8f21a57ef2679fcb8a4bd55c
[ "MIT" ]
null
null
null
import random category = ['python', 'java', 'kotlin', 'javascript'] computer = random.choice(category) hidden = list(len(computer) * "-") print("H A N G M A N") counter = 8 while counter > 0: print() print("".join(hidden)) letter = input("Input a letter: ") if (letter in hidden) or (letter in hidden...
24
61
0.616422
113
816
4.451327
0.469027
0.063618
0.055666
0.079523
0
0
0
0
0
0
0
0.0128
0.234069
816
34
62
24
0.792
0
0
0.258065
0
0
0.1875
0
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0.354839
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d03157b2910202ba3c53d84197f7000003a404d
6,536
py
Python
sklcc/taskEdit.py
pyxuweitao/MSZ_YCL
23323c4660f44af0a45d6ab81cd496b81976f5a0
[ "Apache-2.0" ]
null
null
null
sklcc/taskEdit.py
pyxuweitao/MSZ_YCL
23323c4660f44af0a45d6ab81cd496b81976f5a0
[ "Apache-2.0" ]
null
null
null
sklcc/taskEdit.py
pyxuweitao/MSZ_YCL
23323c4660f44af0a45d6ab81cd496b81976f5a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 所有任务task相关功能函数 """ __author__ = "XuWeitao" import CommonUtilities import rawSql def getTasksList(UserID): """ 获取任务列表,包括任务流水号,创建时间,最近一次修改时间,货号,色号以及到料时间和创建人 :param UserID:创建人ID,如果为ALL则返回所有的任务列表 :return:{ "SerialNo":任务流水号, "CreateTime":任务创建时间, "LastModifiedTime":最近一次修改时间, "ProductNo"...
41.106918
140
0.671665
727
6,536
5.990371
0.272352
0.026177
0.006889
0.008266
0.254879
0.240413
0.190815
0.148335
0.098737
0.098737
0
0.014958
0.15101
6,536
158
141
41.367089
0.769868
0.190024
0
0.19802
0
0.059406
0.471741
0.057837
0
0
0
0.006329
0
1
0.059406
false
0
0.019802
0
0.148515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d064db24d2e119266bc78323c4a529982872160
744
py
Python
Leetcoding-Actions/my-weekly-DSA-challenge/2020-w44-p0200-Number-of-Islands.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/my-weekly-DSA-challenge/2020-w44-p0200-Number-of-Islands.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/my-weekly-DSA-challenge/2020-w44-p0200-Number-of-Islands.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def numIslands(self, grid: List[List[str]]) -> int: ''' T: O(mn) and S: O(1) ''' if not grid: return 0 nrow, ncol = len(grid), len(grid[0]) def exploreIsland(grid, i, j): if i < 0 or i > nrow - 1 or j < 0 or j > ncol-1 or grid[i][j...
32.347826
81
0.415323
106
744
2.886792
0.311321
0.045752
0.098039
0.124183
0.130719
0
0
0
0
0
0
0.038005
0.43414
744
22
82
33.818182
0.688836
0.026882
0
0
0
0
0.004286
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d07e918f729733a967e2d67e465e2cf7ce7d2a4
11,417
py
Python
tensor2tensor/models/revnet.py
ysglh/tensor2tensor
f55462a9928f3f8af0b1275a4fb40d13cae6cc79
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/revnet.py
ysglh/tensor2tensor
f55462a9928f3f8af0b1275a4fb40d13cae6cc79
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/revnet.py
ysglh/tensor2tensor
f55462a9928f3f8af0b1275a4fb40d13cae6cc79
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2017 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
38.441077
80
0.681177
1,619
11,417
4.700432
0.203212
0.01774
0.023916
0.024967
0.373193
0.277267
0.188699
0.171879
0.134297
0.11866
0
0.028882
0.22668
11,417
296
81
38.570946
0.83305
0.504861
0
0.2
0
0
0.077761
0.004248
0
0
0
0
0
1
0.066667
false
0
0.041667
0.008333
0.183333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d08e38fa29119640133acdff959362b1c00409d
4,166
py
Python
tests/unit/test_services.py
BlooAM/Online-shopping-app
aa68d258fe32bf5a792e534dddd9def7c25460e2
[ "MIT" ]
null
null
null
tests/unit/test_services.py
BlooAM/Online-shopping-app
aa68d258fe32bf5a792e534dddd9def7c25460e2
[ "MIT" ]
null
null
null
tests/unit/test_services.py
BlooAM/Online-shopping-app
aa68d258fe32bf5a792e534dddd9def7c25460e2
[ "MIT" ]
null
null
null
import pytest from datetime import date, timedelta from adapters import repository from domain.model import Batch, OrderLine, allocate, OutOfStock from domain import model from service_layer import handlers, unit_of_work class FakeSession: def __init__(self): self.committed = False def commit(self):...
32.046154
89
0.702112
518
4,166
5.457529
0.239382
0.029713
0.050937
0.025469
0.377432
0.294659
0.227803
0.192784
0.149982
0.149982
0
0.028316
0.169227
4,166
129
90
32.294574
0.7885
0
0
0.202247
0
0
0.136102
0
0
0
0
0
0.134831
1
0.191011
false
0.011236
0.067416
0.011236
0.303371
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d08ebe64750ed4ee86af0207bca624b0391ff75
1,786
py
Python
DQMOffline/L1Trigger/python/L1TEGammaOffline_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQMOffline/L1Trigger/python/L1TEGammaOffline_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQMOffline/L1Trigger/python/L1TEGammaOffline_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms electronEfficiencyThresholds = [36, 68, 128, 176] electronEfficiencyBins = [] electronEfficiencyBins.extend(list(xrange(0, 120, 10))) electronEfficiencyBins.extend(list(xrange(120, 180, 20))) electronEfficiencyBins.extend(list(xrange(180, 300, 40))) electronEfficiencyBins.exte...
37.208333
75
0.783875
144
1,786
9.701389
0.513889
0.094488
0.091625
0.108805
0
0
0
0
0
0
0
0.043478
0.098544
1,786
47
76
38
0.824224
0.029675
0
0
0
0
0.154913
0.031214
0
0
0
0
0
1
0
false
0
0.030303
0
0.030303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d092f6e945eea14883d51652329fcd4951dee46
18,548
py
Python
ion_networks/numba_functions.py
swillems/ion_networks
5304a92248ec007ac2253f246a3d44bdb58ae110
[ "MIT" ]
2
2020-10-28T16:11:56.000Z
2020-12-03T13:19:18.000Z
ion_networks/numba_functions.py
swillems/ion_networks
5304a92248ec007ac2253f246a3d44bdb58ae110
[ "MIT" ]
null
null
null
ion_networks/numba_functions.py
swillems/ion_networks
5304a92248ec007ac2253f246a3d44bdb58ae110
[ "MIT" ]
null
null
null
#!python # external import numpy as np import numba @numba.njit(nogil=True, cache=True) def longest_increasing_subsequence(sequence): # TODO:Docstring M = np.zeros(len(sequence) + 1, np.int64) P = np.zeros(len(sequence), np.int64) max_subsequence_length = 0 for current_index, current_element in e...
34.864662
82
0.630418
2,214
18,548
4.959801
0.083108
0.020399
0.021856
0.015299
0.341226
0.308624
0.239414
0.189327
0.166743
0.1529
0
0.017666
0.279761
18,548
531
83
34.93032
0.804327
0.01887
0
0.317719
0
0
0.00099
0
0
0
0
0.001883
0
1
0.026477
false
0
0.004073
0
0.057026
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d099c325b8e8eb13555bc61afea2a208b9050c9
241
py
Python
Programming Fundamentals/Dictionaries/bakery.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Fundamentals/Dictionaries/bakery.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Fundamentals/Dictionaries/bakery.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
def result(elements): bakery = {} for i in range(0, len(elements), 2): key = elements[i] value = elements[i + 1] bakery[key] = int(value) return bakery tokens = input().split(' ') print(result(tokens))
18.538462
40
0.564315
31
241
4.387097
0.645161
0.132353
0
0
0
0
0
0
0
0
0
0.017341
0.282158
241
13
41
18.538462
0.768786
0
0
0
0
0
0.004132
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d0ab807d87d356a4a4fb529654e22486400f676
1,525
py
Python
vtrace/const.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
716
2015-01-01T14:41:11.000Z
2022-03-28T06:51:50.000Z
vtrace/const.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
266
2015-01-01T15:07:27.000Z
2022-03-30T15:19:26.000Z
vtrace/const.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
159
2015-01-01T16:19:44.000Z
2022-03-21T21:55:34.000Z
# Order must match format junk # NOTIFY_ALL is kinda special, if you registerNotifier # with it, you get ALL notifications. NOTIFY_ALL = 0 # Get all notifications NOTIFY_SIGNAL = 1 # Callback on signal/exception NOTIFY_BREAK = 2 # Callback on breakpoint / sigtrap NOTIFY_STEP = 3 # Callback...
33.152174
66
0.733115
237
1,525
4.548523
0.535865
0.074212
0.03525
0.046382
0
0
0
0
0
0
0
0.040698
0.210492
1,525
45
67
33.888889
0.854651
0.55082
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d0d12599f8d63386d38681b6e12a10636886357
3,248
py
Python
src/ezdxf/groupby.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
515
2017-01-25T05:46:52.000Z
2022-03-29T09:52:27.000Z
src/ezdxf/groupby.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
417
2017-01-25T10:01:17.000Z
2022-03-29T09:22:04.000Z
src/ezdxf/groupby.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
149
2017-02-01T15:52:02.000Z
2022-03-17T10:33:38.000Z
# Purpose: Grouping entities by DXF attributes or a key function. # Copyright (c) 2017-2021, Manfred Moitzi # License: MIT License from typing import Iterable, Hashable, Dict, List, TYPE_CHECKING from ezdxf.lldxf.const import DXFValueError, DXFAttributeError if TYPE_CHECKING: from ezdxf.eztypes import DXFEntity, ...
35.692308
79
0.601293
383
3,248
5.065274
0.360313
0.039691
0.030928
0.028866
0.058763
0.042268
0.042268
0.042268
0.042268
0.042268
0
0.010837
0.289717
3,248
90
80
36.088889
0.830082
0.595751
0
0.133333
0
0
0.14336
0
0
0
0
0
0
1
0.033333
false
0
0.1
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d0eed15b3c0630d157c26b0aac4e458a282e19f
8,527
py
Python
main_single.py
wang-chen/AirLoop
12fb442c911002427a51f00d43f747ef593bd186
[ "BSD-3-Clause" ]
39
2021-09-28T19:48:13.000Z
2022-03-17T06:44:19.000Z
main_single.py
wang-chen/AirLoop
12fb442c911002427a51f00d43f747ef593bd186
[ "BSD-3-Clause" ]
null
null
null
main_single.py
wang-chen/AirLoop
12fb442c911002427a51f00d43f747ef593bd186
[ "BSD-3-Clause" ]
3
2021-10-04T01:26:17.000Z
2022-02-12T04:48:50.000Z
#!/usr/bin/env python3 import os import tqdm import torch import random import numpy as np import torch.nn as nn import configargparse import torch.optim as optim from tensorboard import program from torch.utils.tensorboard import SummaryWriter import yaml from models import FeatureNet from datasets import get_datase...
45.844086
137
0.673273
1,164
8,527
4.819588
0.231959
0.059358
0.112121
0.019251
0.142959
0.098039
0.050267
0.028877
0.028877
0.01426
0
0.005641
0.189164
8,527
185
138
46.091892
0.805756
0.02756
0
0.042857
0
0
0.19587
0.003623
0
0
0
0
0
1
0.028571
false
0
0.121429
0
0.15
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d10f233df729f37438c93bc6d49f9504b03d459
1,192
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/rss_proxy/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/rss_proxy/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/rss_proxy/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Views for the rss_proxy djangoapp. """ import requests from django.conf import settings from django.core.cache import cache from django.http import HttpResponse, HttpResponseNotFound from lms.djangoapps.rss_proxy.models import WhitelistedRssUrl CACHE_KEY_RSS = "rss_proxy.{url}" def proxy(request): """ ...
29.8
84
0.653523
157
1,192
4.834395
0.356688
0.063241
0.043478
0
0
0
0
0
0
0
0
0.006818
0.261745
1,192
39
85
30.564103
0.855682
0.177013
0
0
0
0
0.049163
0
0
0
0
0
0
1
0.045455
false
0
0.227273
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d123f052b89aece17eb457b8ad9cafa6d71e501
314
py
Python
bootcamp/accounts/urls.py
elbakouchi/bootcamp
2c7a0cd2ddb7632acb3009f94d728792ddf9644f
[ "MIT" ]
null
null
null
bootcamp/accounts/urls.py
elbakouchi/bootcamp
2c7a0cd2ddb7632acb3009f94d728792ddf9644f
[ "MIT" ]
null
null
null
bootcamp/accounts/urls.py
elbakouchi/bootcamp
2c7a0cd2ddb7632acb3009f94d728792ddf9644f
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import * app_name = "accounts" urlpatterns = [ url(r"^signup/$", CustomSignupView.as_view(), name="custom_signup"), url(r"^destroy/$", AjaxLogoutView.as_view(), name="destroy"), url(r"^(?P<username>[\w.@+-]+)/$", ProfileView.as_view(), name="profile"), ]
28.545455
78
0.652866
40
314
5
0.6
0.06
0.15
0
0
0
0
0
0
0
0
0
0.121019
314
10
79
31.4
0.724638
0
0
0
0
0
0.254777
0.082803
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d1338f96592532b4f49b0f4d8c0180dee99ffe0
1,833
py
Python
tests/integration/test_translated_content.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
1,901
2015-01-02T02:49:51.000Z
2022-03-30T23:31:35.000Z
tests/integration/test_translated_content.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
1,755
2015-01-01T08:17:16.000Z
2022-03-24T18:02:22.000Z
tests/integration/test_translated_content.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
421
2015-01-02T18:06:37.000Z
2022-03-28T23:18:54.000Z
""" Test a site with translated content. Do not test titles as we remove the translation. """ import io import os import shutil import lxml.html import pytest import nikola.plugins.command.init from nikola import __main__ from .helper import cd from .test_empty_build import ( # NOQA test_archive_exists, t...
29.095238
88
0.681942
267
1,833
4.456929
0.370787
0.040336
0.042017
0.047059
0.144538
0.144538
0.105882
0.105882
0.105882
0.105882
0
0.003399
0.19749
1,833
62
89
29.564516
0.805574
0.111839
0
0.05
0
0
0.074627
0
0
0
0
0
0.1
1
0.05
false
0
0.225
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d13de1d5fcb7bb17eb81bbe83f7d14929b0ec78
8,826
py
Python
src/train.py
weiyi1991/UA_Concurrent
11238c778c60095abf326800d6e6a13a643bf071
[ "MIT" ]
null
null
null
src/train.py
weiyi1991/UA_Concurrent
11238c778c60095abf326800d6e6a13a643bf071
[ "MIT" ]
1
2020-09-02T12:24:59.000Z
2020-09-02T12:24:59.000Z
src/train.py
weiyi1991/UA_Concurrent
11238c778c60095abf326800d6e6a13a643bf071
[ "MIT" ]
null
null
null
import argparse import os import torch import torch.nn.functional as F from model_ST import * import data import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader import sys from predict import evaluate_MA from tensorboardX import SummaryWriter # print model parameter def pri...
41.051163
140
0.643327
1,205
8,826
4.589212
0.236515
0.029295
0.055335
0.01302
0.216817
0.157324
0.125859
0.105967
0.080289
0.066546
0
0.017329
0.215386
8,826
214
141
41.242991
0.781227
0.102198
0
0.207101
0
0
0.186748
0.012923
0
0
0
0
0
1
0.005917
false
0
0.071006
0
0.076923
0.12426
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d1ab6609be43e89cc309b21cfc303cd71c0ffae
5,617
py
Python
tests/tensor/test_tensor_data.py
aspfohl/tinytorch
99ac1847b798f755d12876667ec7c3a6c7149857
[ "MIT" ]
null
null
null
tests/tensor/test_tensor_data.py
aspfohl/tinytorch
99ac1847b798f755d12876667ec7c3a6c7149857
[ "MIT" ]
null
null
null
tests/tensor/test_tensor_data.py
aspfohl/tinytorch
99ac1847b798f755d12876667ec7c3a6c7149857
[ "MIT" ]
null
null
null
import pytest from hypothesis import given from hypothesis.strategies import data from numpy import array, array_equal from tests.strategies import indices, tensor_data from tinytorch.tensor.data import ( IndexingError, TensorData, broadcast_index, shape_broadcast, ) # Check basic properties of layout...
27.534314
88
0.574862
794
5,617
3.896725
0.141058
0.10989
0.015514
0.012928
0.52521
0.394958
0.293794
0.231739
0.230123
0.224305
0
0.057734
0.269183
5,617
203
89
27.669951
0.695981
0.116966
0
0.298013
0
0
0.049564
0
0
0
0
0
0.119205
1
0.092715
false
0
0.039735
0.019868
0.152318
0.013245
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d1d92e0aac0102261fb87134d9195f41601abbb
2,813
py
Python
aps/tokenizer/word.py
ishine/aps
c814dc5a8b0bff5efa7e1ecc23c6180e76b8e26c
[ "Apache-2.0" ]
117
2021-02-02T13:38:16.000Z
2022-03-16T05:40:25.000Z
aps/tokenizer/word.py
ishine/aps
c814dc5a8b0bff5efa7e1ecc23c6180e76b8e26c
[ "Apache-2.0" ]
3
2021-11-11T07:07:31.000Z
2021-11-20T15:25:42.000Z
aps/tokenizer/word.py
ishine/aps
c814dc5a8b0bff5efa7e1ecc23c6180e76b8e26c
[ "Apache-2.0" ]
19
2021-02-04T10:04:25.000Z
2022-02-16T05:24:44.000Z
#!/usr/bin/env python # Copyright 2021 Jian Wu # License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) from typing import List, Union from aps.tokenizer.base import TokenizerAbc, ApsTokenizer class WordBasedTokenizer(TokenizerAbc): """ Word based (word, character) tokenizer Args: filt...
30.247312
77
0.539637
300
2,813
4.87
0.273333
0.097878
0.061602
0.049281
0.323751
0.323751
0.323751
0.277207
0.227242
0.154689
0
0.005
0.360114
2,813
92
78
30.576087
0.806667
0.186989
0
0.163636
0
0
0.008182
0
0
0
0
0
0
1
0.090909
false
0
0.036364
0
0.236364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d1d953211acad0e8c4ba6634015c410a59e3522
1,736
py
Python
tests/test_session.py
StenSipma/astrometry-client
11d5b0cd0ae41a18b5bbd7f5570af60dbfbd9cc6
[ "MIT" ]
1
2020-08-06T17:55:52.000Z
2020-08-06T17:55:52.000Z
tests/test_session.py
StenSipma/astrometry-client
11d5b0cd0ae41a18b5bbd7f5570af60dbfbd9cc6
[ "MIT" ]
1
2021-12-18T17:03:21.000Z
2021-12-19T12:33:16.000Z
tests/test_session.py
StenSipma/astrometry-client
11d5b0cd0ae41a18b5bbd7f5570af60dbfbd9cc6
[ "MIT" ]
null
null
null
import os from unittest import mock import pytest import requests from constants import VALID_KEY from utils import FunctionCalledException, function_called_raiser from astrometry_net_client import Session from astrometry_net_client.exceptions import APIKeyError, LoginFailedException some_key = "somekey" # Start o...
27.555556
78
0.75
243
1,736
5.127572
0.345679
0.064205
0.05618
0.054575
0.221509
0.142857
0.142857
0.142857
0.142857
0.102729
0
0
0.175115
1,736
62
79
28
0.870112
0.130184
0
0.268293
0
0
0.041916
0
0
0
0
0
0.243902
1
0.146341
false
0
0.195122
0
0.341463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d1e173ec4f6da5495185d4e64e6ce6be159c672
2,184
py
Python
all_repos_depends/lang/python.py
mxr/all-repos-depends
dcf715dbfb7182899e2412dbfaaf1ef4cc50865c
[ "MIT" ]
11
2018-04-23T06:41:55.000Z
2022-01-27T13:37:59.000Z
all_repos_depends/lang/python.py
mxr/all-repos-depends
dcf715dbfb7182899e2412dbfaaf1ef4cc50865c
[ "MIT" ]
2
2018-04-23T06:03:18.000Z
2018-04-23T06:03:51.000Z
all_repos_depends/lang/python.py
mxr/all-repos-depends
dcf715dbfb7182899e2412dbfaaf1ef4cc50865c
[ "MIT" ]
2
2021-02-01T15:02:14.000Z
2021-09-25T15:49:44.000Z
import ast import os.path from typing import Iterable from packaging.requirements import InvalidRequirement from packaging.requirements import Requirement from packaging.utils import canonicalize_name from all_repos_depends.errors import DependsError from all_repos_depends.types import Depends NAME = 'python' def ...
29.513514
79
0.617674
264
2,184
4.996212
0.359848
0.036391
0.04094
0.047005
0.064443
0
0
0
0
0
0
0
0.264652
2,184
73
80
29.917808
0.821295
0.033425
0
0.037736
0
0
0.058377
0
0
0
0
0
0
1
0.09434
false
0
0.150943
0.037736
0.339623
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d1fd039657947bcd1efbe3cb094639c4aa0c630
2,829
py
Python
mac/macos_app_audit.py
airdata/scripts
b24d62d70bbc70f02b3758ea14e47cc2b34646a9
[ "Apache-2.0" ]
null
null
null
mac/macos_app_audit.py
airdata/scripts
b24d62d70bbc70f02b3758ea14e47cc2b34646a9
[ "Apache-2.0" ]
null
null
null
mac/macos_app_audit.py
airdata/scripts
b24d62d70bbc70f02b3758ea14e47cc2b34646a9
[ "Apache-2.0" ]
null
null
null
from os import listdir from os.path import isfile, join class Command(object): """ Run a command and capture it's output string, error string and exit status Source: http://stackoverflow.com/a/13848259/354247 """ def __init__(self, command): self.command = command def run(self, shell=Tr...
41.602941
551
0.70555
400
2,829
4.89
0.3825
0.02863
0.022495
0.030675
0.047035
0
0
0
0
0
0
0.007842
0.143514
2,829
68
552
41.602941
0.799422
0.17356
0
0
0
0
0.29987
0
0
0
0
0
0
1
0.065217
false
0
0.065217
0.021739
0.195652
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d20e8c21375abfa3aefb4fb09790b9ecbec1d58
6,911
py
Python
compress/algorithms/lzw.py
ShellCode33/CompressionAlgorithms
3b2e7b497ef0af4ba7ac8bc6f4d6e77ea4c4aedc
[ "MIT" ]
null
null
null
compress/algorithms/lzw.py
ShellCode33/CompressionAlgorithms
3b2e7b497ef0af4ba7ac8bc6f4d6e77ea4c4aedc
[ "MIT" ]
null
null
null
compress/algorithms/lzw.py
ShellCode33/CompressionAlgorithms
3b2e7b497ef0af4ba7ac8bc6f4d6e77ea4c4aedc
[ "MIT" ]
null
null
null
# coding: utf-8 class LZW(object): """ Implementation of the LZW algorithm. Attributes ---------- translation_dict : dict Association between repeated bytes sequences and integers. Examples -------- An array of bytes like ['\x41', '\x42', '\x43', '\x0A', '\x00'] can be represente...
38.825843
120
0.64911
880
6,911
4.871591
0.244318
0.06648
0.079776
0.041987
0.275484
0.199673
0.163751
0.141358
0.141358
0.141358
0
0.014596
0.266387
6,911
177
121
39.045198
0.830966
0.229779
0
0.268041
0
0
0.074858
0.004159
0
0
0
0
0
1
0.061856
false
0
0
0
0.103093
0.072165
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d20f94306c2d2e2215af2edce02e11edf2054d9
1,322
py
Python
app/models.py
ariqfadlan/donorojo-db-api
dd1a3241ead5738c94eb77ed0bbb23b26582618f
[ "MIT" ]
null
null
null
app/models.py
ariqfadlan/donorojo-db-api
dd1a3241ead5738c94eb77ed0bbb23b26582618f
[ "MIT" ]
null
null
null
app/models.py
ariqfadlan/donorojo-db-api
dd1a3241ead5738c94eb77ed0bbb23b26582618f
[ "MIT" ]
null
null
null
""" Contains database models """ from sqlalchemy import Column, ForeignKey, Integer, String, Float from sqlalchemy.orm import relationship from .database import Base class TouristAttraction(Base): __tablename__ = "tourist_attraction" id = Column(Integer, primary_key=True, index=True) name = Column(String...
33.05
98
0.746596
142
1,322
6.739437
0.295775
0.159875
0.094044
0.07837
0.401254
0.367816
0.15674
0.15674
0.15674
0.15674
0
0.017621
0.141452
1,322
39
99
33.897436
0.825551
0.018154
0
0.08
0
0
0.135659
0.032558
0
0
0
0
0
1
0
false
0
0.12
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
9d2612bdf9b9d5fe13c734ed2826b9452f048d19
1,096
py
Python
hackerrank_contests/101Hack44/prime.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
null
null
null
hackerrank_contests/101Hack44/prime.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
null
null
null
hackerrank_contests/101Hack44/prime.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
1
2020-01-30T06:47:09.000Z
2020-01-30T06:47:09.000Z
def rwh_primes2(n): correction = (n%6>1) n = {0:n,1:n-1,2:n+4,3:n+3,4:n+2,5:n+1}[n%6] sieve = [True] * (n//3) sieve[0] = False for i in range(int(n**0.5)//3+1): if sieve[i]: k=3*i+1|1 sieve[ ((k*k)//3) ::2*k]=[False]*((n//6-(k*k)//6-1)//k+1) sieve[(...
33.212121
110
0.519161
222
1,096
2.5
0.22973
0.018018
0.100901
0.115315
0.225225
0.068468
0.068468
0.068468
0
0
0
0.11339
0.243613
1,096
32
111
34.25
0.556092
0.124088
0
0.083333
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d2bc7d987bd63f2af30edb8519069c52527c5c7
387
py
Python
General Data Preprocessing/copyFile.py
yuxiawang1992/Python-Code
d457a1fd61742dfac08a82a26b66703e5ff6f780
[ "Apache-2.0" ]
null
null
null
General Data Preprocessing/copyFile.py
yuxiawang1992/Python-Code
d457a1fd61742dfac08a82a26b66703e5ff6f780
[ "Apache-2.0" ]
null
null
null
General Data Preprocessing/copyFile.py
yuxiawang1992/Python-Code
d457a1fd61742dfac08a82a26b66703e5ff6f780
[ "Apache-2.0" ]
null
null
null
#Python 3.4.3 #coding=gbk # copy file wangyuxia 20160920 import sys, shutil, os, string path = "E:\\test for qgis\\" target_path = "E:\\test for qgis\\HourScale\\" for i in range(2,31): for j in range(0,24): filename = 'N'+str(i).zfill(2)+str(j).zfill(2) shutil.copyfile(path+'d_02.hdr',target_pat...
25.8
68
0.596899
61
387
3.737705
0.639344
0.04386
0.078947
0.105263
0.140351
0
0
0
0
0
0
0.065831
0.175711
387
14
69
27.642857
0.648903
0.134367
0
0
0
0
0.274096
0.087349
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d2c26cb802d2c6da46e391e982eacb22cc6b08d
3,581
py
Python
convert_to_onnx.py
bhahn2004/FaceBoxes.PyTorch
be01c2449c6efa2a976a701dd8a052aa903a32b4
[ "MIT" ]
null
null
null
convert_to_onnx.py
bhahn2004/FaceBoxes.PyTorch
be01c2449c6efa2a976a701dd8a052aa903a32b4
[ "MIT" ]
null
null
null
convert_to_onnx.py
bhahn2004/FaceBoxes.PyTorch
be01c2449c6efa2a976a701dd8a052aa903a32b4
[ "MIT" ]
null
null
null
import sys from scipy.special import softmax import torch.onnx import onnxruntime as ort import numpy as np import tensorflow as tf from tensorflow.keras import backend as K from pytorch2keras.converter import pytorch_to_keras from models.faceboxes import FaceBoxes input_dim = 1024 num_classes = 2 model_path = "weig...
33.46729
115
0.729405
532
3,581
4.691729
0.25188
0.036058
0.020833
0.019231
0.223958
0.19351
0.161458
0.14984
0.14984
0.14984
0
0.011974
0.137113
3,581
106
116
33.783019
0.795793
0.029601
0
0.040816
0
0
0.108238
0.022787
0
0
0
0
0.020408
1
0.061224
false
0
0.183673
0
0.306122
0.102041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d2f4723ec751e23b2b4a9d81dfaceee08d127d9
3,292
py
Python
x2py/links/strategies/buffer_transform_strategy.py
jaykang920/x2py
b8bd473f94ff4b9576e984cc384f4159ab71278d
[ "MIT" ]
null
null
null
x2py/links/strategies/buffer_transform_strategy.py
jaykang920/x2py
b8bd473f94ff4b9576e984cc384f4159ab71278d
[ "MIT" ]
1
2019-06-05T09:35:09.000Z
2020-07-02T09:46:46.000Z
x2py/links/strategies/buffer_transform_strategy.py
jaykang920/x2py
b8bd473f94ff4b9576e984cc384f4159ab71278d
[ "MIT" ]
null
null
null
# Copyright (c) 2017, 2018 Jae-jun Kang # See the file LICENSE for details. from x2py.event_factory import EventFactory from x2py.links.link_events import * from x2py.links.strategy import ChannelStrategy from x2py.util.trace import Trace class BufferTransformStrategy(ChannelStrategy): EventFactory.register_type(...
33.591837
82
0.637303
340
3,292
5.958824
0.247059
0.148075
0.140671
0.04541
0.287759
0.200888
0.162389
0.146101
0.146101
0.146101
0
0.005139
0.290705
3,292
97
83
33.938144
0.862527
0.021567
0
0.3125
0
0
0.016786
0
0
0
0
0
0
1
0.1125
false
0
0.05
0
0.2875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d2ffa602fd2739373ede0b55f827179feb8572a
5,632
py
Python
ignite_trainer/_visdom.py
jinczing/AudioCLIP
b080fc946599290c91f9d3b203295e5968af1bf6
[ "MIT" ]
304
2021-06-28T09:59:13.000Z
2022-03-30T17:33:52.000Z
ignite_trainer/_visdom.py
AK391/AudioCLIP
45327aa203839bfeb58681dd36c04fd493ee72f4
[ "MIT" ]
176
2021-07-23T08:30:21.000Z
2022-03-14T12:29:06.000Z
ignite_trainer/_visdom.py
AK391/AudioCLIP
45327aa203839bfeb58681dd36c04fd493ee72f4
[ "MIT" ]
34
2021-06-29T11:50:19.000Z
2022-03-02T12:01:36.000Z
import os import sys import json import time import tqdm import socket import subprocess import numpy as np import visdom from typing import Tuple from typing import Optional def calc_ytick_range(vis: visdom.Visdom, window_name: str, env: Optional[str] = None) -> Tuple[float, float]: lower_bound, upper_bound = ...
29.333333
109
0.552734
706
5,632
4.256374
0.240793
0.039933
0.020965
0.032612
0.175707
0.136439
0.10183
0.09584
0.081198
0.081198
0
0.026344
0.332741
5,632
191
110
29.486911
0.773284
0
0
0.06993
0
0
0.062145
0
0
0
0
0
0
1
0.034965
false
0
0.076923
0.006993
0.160839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d3007ae1a0b21a2c5b82a4a63774e81f6aa5a00
4,960
py
Python
anonybot.py
sp0oks/anonybot
864688f04231e3088737b12caed76f61a5128993
[ "MIT" ]
5
2019-12-17T17:53:51.000Z
2020-09-06T07:51:23.000Z
anonybot.py
CptSpookz/anonybot
864688f04231e3088737b12caed76f61a5128993
[ "MIT" ]
null
null
null
anonybot.py
CptSpookz/anonybot
864688f04231e3088737b12caed76f61a5128993
[ "MIT" ]
2
2020-01-20T01:01:20.000Z
2020-09-06T07:51:25.000Z
import os import time from sqlalchemy import create_engine, BigInteger, UnicodeText, Column, Integer from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.exc import SQLAlchemyError from aiogram import Bot, Dispatcher, executor, types from aiogr...
36.20438
121
0.626008
601
4,960
5.063228
0.254576
0.031548
0.078212
0.047322
0.392047
0.392047
0.354913
0.354913
0.325994
0.325994
0
0.00218
0.260081
4,960
136
122
36.470588
0.826975
0.008065
0
0.339286
0
0
0.188326
0
0
0
0
0
0
1
0
false
0
0.080357
0
0.133929
0.026786
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d303166d818d8f8f693a98022e31dfc5961d444
2,912
py
Python
tests/test_doc_cvnn_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
38
2020-09-16T14:47:36.000Z
2022-03-30T13:35:05.000Z
tests/test_doc_cvnn_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
25
2020-10-03T19:30:16.000Z
2022-03-29T15:24:44.000Z
tests/test_doc_cvnn_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
9
2021-01-18T10:48:57.000Z
2022-02-11T10:34:52.000Z
import numpy as np import cvnn.layers as complex_layers import tensorflow as tf from pdb import set_trace def get_dataset(): (train_images, train_labels), (test_images, test_labels) = tf.keras.datasets.cifar10.load_data() train_images = train_images.astype(dtype=np.complex64) / 255.0 test_images = test_im...
45.5
109
0.730426
390
2,912
5.220513
0.307692
0.121316
0.081041
0.113458
0.461198
0.4278
0.422888
0.391454
0.329568
0.247544
0
0.040508
0.135302
2,912
63
110
46.222222
0.76807
0.024038
0
0.081633
0
0
0.060606
0.016913
0
0
0
0
0.020408
1
0.081633
false
0
0.081633
0
0.183673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d31c3b53c5a416e56a025e297cf9e335432c27b
2,580
py
Python
gkutils/commonutils/getCSVColumnSubset.py
genghisken/gkutils
0c8aa06d813de72b1cd9cba11219a78952799420
[ "MIT" ]
null
null
null
gkutils/commonutils/getCSVColumnSubset.py
genghisken/gkutils
0c8aa06d813de72b1cd9cba11219a78952799420
[ "MIT" ]
1
2021-11-19T19:28:52.000Z
2021-11-19T19:29:57.000Z
gkutils/commonutils/getCSVColumnSubset.py
genghisken/gkutils
0c8aa06d813de72b1cd9cba11219a78952799420
[ "MIT" ]
null
null
null
"""Write a subset of keys from one CSV to another. Don't use lots of memory. Usage: %s <filename> <outputfile> [--columns=<columns>] [--htm] [--racol=<racol>] [--deccol=<deccol>] [--filtercol=<filtercol>] %s (-h | --help) %s --version Options: -h --help Show this screen. --version ...
35.342466
122
0.605039
303
2,580
5.082508
0.432343
0.013636
0.015584
0.023377
0.103896
0.103896
0.048052
0
0
0
0
0.020408
0.278295
2,580
72
123
35.833333
0.80666
0.391473
0
0.128205
0
0
0.032072
0
0
0
0
0
0
1
0.051282
false
0
0.128205
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d35852cc4326c58c6eb53f1d5a84c6b35a5e6fb
1,006
py
Python
src/python/WMComponent/DBS3Buffer/MySQL/DBSBufferFiles/GetParentStatus.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMComponent/DBS3Buffer/MySQL/DBSBufferFiles/GetParentStatus.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMComponent/DBS3Buffer/MySQL/DBSBufferFiles/GetParentStatus.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _GetParentStatus_ MySQL implementation of DBSBufferFile.GetParentStatus """ from WMCore.Database.DBFormatter import DBFormatter class GetParentStatus(DBFormatter): sql = """SELECT status FROM dbsbuffer_file INNER JOIN dbsbuffer_file_parent ON dbsbuffer...
27.189189
74
0.614314
105
1,006
5.761905
0.485714
0.128926
0.094215
0
0
0
0
0
0
0
0
0.001422
0.301193
1,006
36
75
27.944444
0.859175
0.148111
0
0
0
0
0.326406
0.09291
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d3874299d6c36b60cba6fdb324222e4353364ea
481
py
Python
tests/test_actor.py
sdss/HAL
c7a2111f8737a498a124f5571d6f0e6b46e5c371
[ "BSD-3-Clause" ]
null
null
null
tests/test_actor.py
sdss/HAL
c7a2111f8737a498a124f5571d6f0e6b46e5c371
[ "BSD-3-Clause" ]
2
2022-01-14T04:50:58.000Z
2022-02-28T22:31:06.000Z
tests/test_actor.py
sdss/HAL
c7a2111f8737a498a124f5571d6f0e6b46e5c371
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: José Sánchez-Gallego (gallegoj@uw.edu) # @Date: 2021-03-24 # @Filename: test_hal.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) import pytest from hal import __version__ pytestmark = [pytest.mark.asyncio] async def test_vers...
20.913043
74
0.706861
68
481
4.794118
0.735294
0.02454
0.06135
0
0
0
0
0
0
0
0
0.031325
0.137214
481
22
75
21.863636
0.754217
0.424116
0
0
0
0
0.051852
0
0
0
0
0
0.285714
1
0
false
0
0.285714
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
9d3a4036188d6088bc1ce4cfe8dfff01c0a9fdb1
490
py
Python
day_07/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
day_07/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
day_07/puzzles.py
electronsandstuff/Advent-of-Code-2021
9c23872640e8d092088dcb6d5cb845cd11d98994
[ "BSD-3-Clause" ]
null
null
null
import numpy as np def crab_fuel(n): return (n**2 + n) // 2 if __name__ == '__main__': with open('input.txt') as f: pin = np.array([int(x) for x in f.read().split(',')]) distances = np.abs(pin[None, :] - np.arange(pin.max() + 1)[:, None]) total_fuel = np.sum(distances, axis=1) print(f'S...
25.789474
72
0.608163
80
490
3.5
0.4875
0.128571
0.1
0.078571
0.135714
0
0
0
0
0
0
0.028133
0.202041
490
18
73
27.222222
0.68798
0
0
0
0
0
0.165306
0.042857
0
0
0
0
0
1
0.083333
false
0
0.083333
0.083333
0.25
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
9d3b2ee3ee8d1f5868d497f89b1766382405982d
16,114
py
Python
sampling.py
bigdata-inha/FedDC
c90c48fc7e35b6cb80890194c8cdfb0d412a0819
[ "MIT" ]
null
null
null
sampling.py
bigdata-inha/FedDC
c90c48fc7e35b6cb80890194c8cdfb0d412a0819
[ "MIT" ]
null
null
null
sampling.py
bigdata-inha/FedDC
c90c48fc7e35b6cb80890194c8cdfb0d412a0819
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import numpy as np from torchvision import datasets, transforms import logging import random import torch # Settings for a multiplicative linear congruential generator (aka Lehmer # generator) suggested in 'Random Number Generators: Good # Ones ...
37.561772
151
0.608353
2,259
16,114
4.126605
0.136786
0.034327
0.019309
0.03422
0.620575
0.579382
0.532826
0.519095
0.505578
0.486376
0
0.018858
0.2859
16,114
428
152
37.649533
0.791258
0.177361
0
0.492593
0
0
0.006215
0
0
0
0
0
0
1
0.040741
false
0
0.018519
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
9d3ca477c6b29581c9b909f6a0a67fb1fa79ccca
2,502
py
Python
codeforcesRating/codeforcesRating.py
gaurav512/Python-Scripts
46483ab09cccef380c8425d6924507e029745479
[ "MIT" ]
3
2020-05-23T14:31:35.000Z
2020-11-12T12:56:08.000Z
codeforcesRating/codeforcesRating.py
gaurav512/Python-Scripts
46483ab09cccef380c8425d6924507e029745479
[ "MIT" ]
null
null
null
codeforcesRating/codeforcesRating.py
gaurav512/Python-Scripts
46483ab09cccef380c8425d6924507e029745479
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # Author: gaurav512 ''' Script written to scrape basic information about a Codeforces profile given the user id Usage: Enter the userid as command line argument OR as the input after running the following in terminal- python3 codeforces.py [userid] ''' import requests, bs4, sys def getDetails(u...
30.144578
136
0.691847
383
2,502
4.477807
0.37859
0.055977
0.031487
0.016327
0.138776
0.117784
0.117784
0.047813
0.047813
0.047813
0
0.029426
0.157874
2,502
82
137
30.512195
0.784528
0.282974
0
0.040816
0
0.081633
0.320765
0.01238
0
0
0
0
0
1
0.040816
false
0
0.020408
0
0.122449
0.183673
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d3f7a7d27e1b7136efc12dc236457c627b3164e
1,025
py
Python
ch09-linear_model/src/score_card.py
ahitboyZBW/book-ml-sem
73208e7e492c9cbe82c4aaa6459a41e3ac1317be
[ "MIT" ]
137
2020-10-26T11:11:46.000Z
2022-03-29T01:21:22.000Z
ch09-linear_model/src/score_card.py
zengzhongjie/book-ml-sem
5d452a427db5ee65538d968ba5b938af013bb87c
[ "MIT" ]
4
2021-01-18T08:57:04.000Z
2021-07-29T02:39:00.000Z
ch09-linear_model/src/score_card.py
zengzhongjie/book-ml-sem
5d452a427db5ee65538d968ba5b938af013bb87c
[ "MIT" ]
46
2020-10-26T11:11:57.000Z
2022-03-08T00:15:32.000Z
def cal_A_B(pdo=20, base_score=500, odds=1 / 50): B = pdo / np.log(2) A = base_score + B * np.log(odds) return A, B ''' parameter --------- df:变量的woe,要求与模型训练logit时的列顺序一样 logit:sklearn中的逻辑回归模型,带截距 return ------ 新增每行数据的评分列:Score example: df= cal_score(df,logit) ''' def cal_score_byadd(df, log...
21.808511
77
0.559024
159
1,025
3.465409
0.352201
0.043557
0.021779
0.039927
0.15971
0.15971
0.15971
0.15971
0.087114
0
0
0.068456
0.273171
1,025
47
78
21.808511
0.671141
0.004878
0
0.181818
0
0
0.011682
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d41431a104dca3b80f9642ad172c2f1314cf033
3,790
py
Python
Tools/ecl_ekf/batch_process_logdata_ekf.py
lgarciaos/Firmware
26dba1407bd1fbc65c23870a22fed904afba6347
[ "BSD-3-Clause" ]
4,224
2015-01-02T11:51:02.000Z
2020-10-27T23:42:28.000Z
Tools/ecl_ekf/batch_process_logdata_ekf.py
choudhary0parivesh/Firmware
02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244
[ "BSD-3-Clause" ]
11,736
2015-01-01T11:59:16.000Z
2020-10-28T17:13:38.000Z
Tools/ecl_ekf/batch_process_logdata_ekf.py
choudhary0parivesh/Firmware
02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244
[ "BSD-3-Clause" ]
11,850
2015-01-02T14:54:47.000Z
2020-10-28T16:42:47.000Z
#! /usr/bin/env python3 """ Runs process_logdata_ekf.py on the .ulg files in the supplied directory. ulog files are skipped from the analysis, if a corresponding .pdf file already exists (unless the overwrite flag was set). """ # -*- coding: utf-8 -*- import argparse import os, glob from process_logdata_ekf import p...
43.563218
125
0.656201
521
3,790
4.579655
0.295585
0.025147
0.042749
0.023889
0.228416
0.160101
0.106454
0.081308
0.054484
0.054484
0
0.00313
0.241425
3,790
87
126
43.563218
0.826783
0.130343
0
0.070175
0
0
0.296894
0.014921
0
0
0
0
0
1
0.035088
false
0
0.052632
0
0.105263
0.122807
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d429d9ff49854612f73350299d50ebaeb16c00a
1,468
py
Python
goodok_mlu/trackers/neptune.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
null
null
null
goodok_mlu/trackers/neptune.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
null
null
null
goodok_mlu/trackers/neptune.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
1
2021-03-29T13:15:02.000Z
2021-03-29T13:15:02.000Z
import inspect import warnings from pathlib import Path def send_model_code(model, model_config, logdir, NEPTUNE_ON=False, exp=None): model_init = None model_forward = None model_config_s = None try: model_init = inspect.getsource(model.__init__) except Exception as e: warnings.war...
30.583333
92
0.632834
212
1,468
4.160377
0.245283
0.087302
0.07483
0.061224
0.537415
0.44898
0.44898
0.44898
0.44898
0.44898
0
0
0.271798
1,468
47
93
31.234043
0.82507
0
0
0.526316
0
0
0.096049
0
0
0
0
0
0
1
0.105263
false
0
0.078947
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d438aadf58244488ff98e5078d8104573590578
3,099
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/libs/abstracted_libs/iosxr/subsection.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/libs/abstracted_libs/iosxr/subsection.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/libs/abstracted_libs/iosxr/subsection.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
# Python import logging from os import path # Abstract from genie.abstract import Lookup # Parser from genie.libs import parser from genie.metaparser.util.exceptions import SchemaEmptyParserError # unicon from unicon.eal.dialogs import Statement, Dialog log = logging.getLogger(__name__) def save_device_informatio...
26.042017
77
0.601162
350
3,099
5.202857
0.382857
0.043932
0.039539
0.034596
0.066996
0.04503
0.04503
0
0
0
0
0.00554
0.301065
3,099
118
78
26.262712
0.83518
0.317844
0
0.088889
0
0
0.125527
0
0
0
0
0
0
1
0.066667
false
0
0.133333
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
9d4487b1ae1496a3f2089388dee11fd461798de0
2,933
py
Python
whisper_scalability/plot.py
Evalir/research
0128cdc7c3cecaad4cc057886fd84e79b78f6b9c
[ "MIT" ]
42
2019-08-03T18:04:47.000Z
2022-02-28T14:24:56.000Z
whisper_scalability/plot.py
Evalir/research
0128cdc7c3cecaad4cc057886fd84e79b78f6b9c
[ "MIT" ]
88
2019-10-03T23:11:12.000Z
2022-03-30T05:28:44.000Z
whisper_scalability/plot.py
Evalir/research
0128cdc7c3cecaad4cc057886fd84e79b78f6b9c
[ "MIT" ]
3
2019-09-03T17:19:39.000Z
2021-12-27T16:53:44.000Z
import matplotlib.pyplot as plt import numpy as np from labellines import labelLines # # Trying to get interpolation to work but getting error: # # ValueError: The number of derivatives at boundaries does not match: expected 1, got 0+0 # from scipy.interpolate import make_interp_spline, BSpline # n_users = np.array([1...
41.309859
103
0.703034
535
2,933
3.768224
0.31028
0.047619
0.035714
0.058036
0.228671
0.212302
0.203373
0.120536
0.109127
0
0
0.114196
0.128196
2,933
70
104
41.9
0.674228
0.292874
0
0
0
0
0.330897
0
0
0
0
0
0
1
0
false
0.025
0.075
0
0.075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d44910e8c82debe9ba07f0a00ed736a65d972a9
2,000
py
Python
polydomino/search.py
PsiACE/polydomino
ade7cdb303cb4073d8c075659a5494392d31f8b4
[ "MIT" ]
null
null
null
polydomino/search.py
PsiACE/polydomino
ade7cdb303cb4073d8c075659a5494392d31f8b4
[ "MIT" ]
null
null
null
polydomino/search.py
PsiACE/polydomino
ade7cdb303cb4073d8c075659a5494392d31f8b4
[ "MIT" ]
null
null
null
# import the necessary packages import argparse import cv2 import numpy as np from polydomino.colordescriptor import ColorDescriptor from polydomino.searcher import Searcher # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument( "-i", "--index", required=T...
30.30303
87
0.6935
271
2,000
5.084871
0.361624
0.078374
0.075472
0.121916
0.087083
0.036284
0
0
0
0
0
0.012382
0.152
2,000
65
88
30.769231
0.800118
0.1485
0
0.055556
0
0
0.223141
0
0
0
0
0
0
1
0
false
0
0.092593
0
0.092593
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d451d7664d2140e40043248faa30a6b327e59ee
2,880
py
Python
optimism/test/testMinimizeScalar.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
null
null
null
optimism/test/testMinimizeScalar.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
1
2022-03-12T00:01:12.000Z
2022-03-12T00:01:12.000Z
optimism/test/testMinimizeScalar.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
3
2021-12-23T19:53:31.000Z
2022-03-27T23:12:03.000Z
from optimism.JaxConfig import * from optimism import MinimizeScalar from optimism.test import TestFixture from optimism.material import J2Plastic def f(x): return 0.25*x**4 - 50.0*x**2 + 2.0 df = jacfwd(f) class TestMinimizeScalarFixture(TestFixture.TestFixture): def setUp(self): self.minimize_scalar_j...
34.698795
95
0.515278
351
2,880
4.096866
0.264957
0.06815
0.097357
0.114743
0.450626
0.435327
0.435327
0.346314
0.335188
0.335188
0
0.065466
0.363542
2,880
82
96
35.121951
0.71904
0
0
0.265625
0
0
0.012153
0
0
0
0
0
0.078125
1
0.140625
false
0
0.0625
0.03125
0.234375
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
9d46c2badf319d174f35513f77f2237bac4308e9
2,709
py
Python
anima/ui/review_dialog.py
MehmetErer/anima
f92ae599b5a4c181fc8e131a9ccdde537e635303
[ "MIT" ]
101
2015-02-08T22:20:11.000Z
2022-03-21T18:56:42.000Z
anima/ui/review_dialog.py
MehmetErer/anima
f92ae599b5a4c181fc8e131a9ccdde537e635303
[ "MIT" ]
23
2016-11-30T08:33:21.000Z
2021-01-26T12:11:12.000Z
anima/ui/review_dialog.py
MehmetErer/anima
f92ae599b5a4c181fc8e131a9ccdde537e635303
[ "MIT" ]
27
2015-01-03T06:49:45.000Z
2021-12-28T03:30:54.000Z
# -*- coding: utf-8 -*- """ import datetime from anima import defaults defaults.timing_resolution = datetime.timedelta(minutes=10) from anima.ui import SET_PYSIDE2 SET_PYSIDE2() from anima.ui.widgets.review import APPROVE, REQUEST_REVISION from anima.ui import review_dialog review_dialog.UI(review_type=REQUEST_REVIS...
29.769231
80
0.655592
316
2,709
5.474684
0.363924
0.041619
0.052601
0.019653
0.115607
0.034682
0
0
0
0
0
0.005467
0.257291
2,709
90
81
30.1
0.854374
0.282023
0
0
0
0
0.020116
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d47cbe33f2156eddf7fcd553e506425ed8d1607
12,737
py
Python
squares/dsl/interpreter.py
Vivokas20/SKEL
d8766ceaa8aa766ea3580bbb61b747572ebfe77c
[ "Apache-2.0" ]
1
2022-01-20T14:57:30.000Z
2022-01-20T14:57:30.000Z
squares/dsl/interpreter.py
Vivokas20/SKEL
d8766ceaa8aa766ea3580bbb61b747572ebfe77c
[ "Apache-2.0" ]
null
null
null
squares/dsl/interpreter.py
Vivokas20/SKEL
d8766ceaa8aa766ea3580bbb61b747572ebfe77c
[ "Apache-2.0" ]
null
null
null
import math import re from itertools import permutations from logging import getLogger from typing import Tuple, Union from rpy2 import robjects from rpy2.rinterface_lib.embedded import RRuntimeError from z3 import BitVecVal from .. import util, results from ..decider import RowNumberInfo from ..program import LineIn...
42.885522
176
0.544241
1,557
12,737
4.290944
0.143866
0.045802
0.038916
0.040712
0.502769
0.453076
0.39066
0.341416
0.304146
0.294866
0
0.015714
0.295517
12,737
296
177
43.030405
0.728853
0.045615
0
0.298755
0
0.053942
0.280303
0.132246
0.008299
0
0
0
0
1
0.112033
false
0.004149
0.049793
0.029046
0.294606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d4857e094a5401228d6f2b6484e13982abb69b9
7,869
py
Python
src/data_preparation/process_airbnb_data.py
ejgenc/Data-Analysis_Istanbul-Health-Tourism
34b9838690ca640c6a7a60f63eb2f51983ec46ef
[ "MIT" ]
1
2020-11-18T15:27:53.000Z
2020-11-18T15:27:53.000Z
src/data_preparation/process_airbnb_data.py
ejgenc/Data-Analysis_Istanbul-Health-Tourism
34b9838690ca640c6a7a60f63eb2f51983ec46ef
[ "MIT" ]
null
null
null
src/data_preparation/process_airbnb_data.py
ejgenc/Data-Analysis_Istanbul-Health-Tourism
34b9838690ca640c6a7a60f63eb2f51983ec46ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ------ What is this file? ------ This script targets the istanbul_airbnb_raw.csv file. It cleans the .csv file in order to prepare it for further analysis """ #%% --- Import Required Packages --- import os import pathlib from pathlib import Path # To wrap around filepaths impor...
38.199029
106
0.641632
1,019
7,869
4.83317
0.409225
0.027411
0.019898
0.011574
0.109239
0.073503
0.061726
0.047107
0.047107
0.023553
0
0.01269
0.238912
7,869
206
107
38.199029
0.809651
0.38747
0
0.137931
0
0
0.228842
0.024842
0
0
0
0
0
1
0
false
0
0.126437
0
0.126437
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
9d4ac45e3a86ef95dc9b84f578aa4f83f679c9b6
3,695
py
Python
py/shure.py
dman776/micboard
166987dfad529dc35654f402fdbbde7f16b60f77
[ "MIT" ]
44
2019-08-30T02:51:59.000Z
2022-03-15T13:47:18.000Z
py/shure.py
dman776/micboard
166987dfad529dc35654f402fdbbde7f16b60f77
[ "MIT" ]
21
2019-09-01T16:17:22.000Z
2022-02-01T15:47:55.000Z
py/shure.py
dman776/micboard
166987dfad529dc35654f402fdbbde7f16b60f77
[ "MIT" ]
16
2019-09-01T01:40:09.000Z
2022-03-15T17:12:28.000Z
import time import select import queue import atexit import sys import logging from networkdevice import ShureNetworkDevice from channel import chart_update_list, data_update_list # from mic import WirelessMic # from iem import IEM NetworkDevices = [] DeviceMessageQueue = queue.Queue() def get_network_device_by_ip(...
29.56
97
0.603518
479
3,695
4.511482
0.254697
0.03702
0.051828
0.029153
0.285053
0.233688
0.213327
0.197594
0.147617
0.147617
0
0.008732
0.287145
3,695
124
98
29.798387
0.811693
0.063329
0
0.183908
0
0
0.058806
0
0
0
0
0
0
1
0.091954
false
0
0.091954
0.011494
0.229885
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d50b18aa63e6f3b4b6406ced31f91d878b8ae26
773
py
Python
e_vae_proj/qualitative/mnist/btcvae/gen_train.py
kuangdai/disentangling-vae
9a5f9da44a82a2c643b7289c4945320621b86247
[ "MIT" ]
1
2021-06-30T08:58:49.000Z
2021-06-30T08:58:49.000Z
e_vae_proj/qualitative/mnist/btcvae/gen_train.py
kuangdai/disentangling-vae
9a5f9da44a82a2c643b7289c4945320621b86247
[ "MIT" ]
null
null
null
e_vae_proj/qualitative/mnist/btcvae/gen_train.py
kuangdai/disentangling-vae
9a5f9da44a82a2c643b7289c4945320621b86247
[ "MIT" ]
null
null
null
import numpy as np from pathlib import Path import sys if __name__ == '__main__': # absolute path my_path = Path(__file__).parent.resolve().expanduser() main_path = my_path.parent.parent seed = 0 nlat = 10 alpha = 1.0 beta = 6.0 gamma = 1.0 epochs = 100 # cmd...
28.62963
107
0.564036
116
773
3.551724
0.517241
0.043689
0.048544
0
0
0
0
0
0
0
0
0.038532
0.294955
773
26
108
29.730769
0.717431
0.033635
0
0
0
0.157895
0.371866
0.090529
0
0
0
0
0
1
0
false
0
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d5197f8d1796538860fe2f3fb98a1af46c8ef38
3,331
py
Python
tests/test_load.py
tom3131/simfin
8ef5a2b0dd67ddcd3f8b92b5cd45c1a483eeada1
[ "MIT" ]
231
2019-09-25T13:30:00.000Z
2022-03-26T08:00:47.000Z
tests/test_load.py
tom3131/simfin
8ef5a2b0dd67ddcd3f8b92b5cd45c1a483eeada1
[ "MIT" ]
11
2019-10-01T14:50:15.000Z
2022-02-23T10:35:47.000Z
tests/test_load.py
tom3131/simfin
8ef5a2b0dd67ddcd3f8b92b5cd45c1a483eeada1
[ "MIT" ]
36
2019-09-30T16:14:48.000Z
2022-03-19T19:59:30.000Z
########################################################################## # # Unit tests (pytest) for load.py # ########################################################################## # SimFin - Simple financial data for Python. # www.simfin.com - www.github.com/simfin/simfin # See README.md for instructions and LI...
31.424528
78
0.576403
355
3,331
5.183099
0.225352
0.048913
0.057065
0.098913
0.38587
0.340217
0.340217
0.340217
0.266304
0
0
0.000723
0.169919
3,331
105
79
31.72381
0.664738
0.216752
0
0.106383
0
0
0.051358
0
0
0
0
0
0
1
0.170213
false
0
0.042553
0
0.234043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d556827bb836c6e6f6530ec156f0777935a5dea
1,514
py
Python
async_nbgrader/apps/exportapp.py
IllumiDesk/async_nbgrader
427e1b634277c043a1ed9f00bf7e417e0f611aca
[ "Apache-2.0" ]
2
2021-06-23T17:58:22.000Z
2021-09-27T10:00:01.000Z
async_nbgrader/apps/exportapp.py
IllumiDesk/async-nbgrader
427e1b634277c043a1ed9f00bf7e417e0f611aca
[ "Apache-2.0" ]
6
2021-06-17T21:40:24.000Z
2021-11-11T17:48:15.000Z
async_nbgrader/apps/exportapp.py
IllumiDesk/async-nbgrader
427e1b634277c043a1ed9f00bf7e417e0f611aca
[ "Apache-2.0" ]
2
2021-06-10T18:16:22.000Z
2021-06-17T02:52:45.000Z
# coding: utf-8 from nbgrader.api import Gradebook from nbgrader.apps import ExportApp as BaseExportApp from traitlets import Instance from traitlets import Type from traitlets import default from ..plugins import CanvasCsvExportPlugin from ..plugins import CustomExportPlugin aliases = { "log-level": "Applicatio...
27.527273
78
0.703435
160
1,514
6.55
0.40625
0.037214
0.054389
0
0
0
0
0
0
0
0
0.00082
0.194848
1,514
54
79
28.037037
0.858901
0.055482
0
0
0
0
0.238163
0.163251
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d5735cba5c6faf4bc0915b6d346541d85cbb4ac
15,960
py
Python
torsion/model/symmetry_function.py
hnlab/TorsionNet
e81ab624f1340765345b34240a049a8cc5f4d581
[ "MIT" ]
15
2021-01-15T01:54:26.000Z
2022-03-31T16:00:52.000Z
torsion/model/symmetry_function.py
hnlab/TorsionNet
e81ab624f1340765345b34240a049a8cc5f4d581
[ "MIT" ]
2
2021-07-21T22:42:09.000Z
2021-11-22T06:39:20.000Z
torsion/model/symmetry_function.py
hnlab/TorsionNet
e81ab624f1340765345b34240a049a8cc5f4d581
[ "MIT" ]
6
2021-01-16T04:07:17.000Z
2022-02-23T02:11:49.000Z
import math import numpy as np from openeye import oechem from torsion.inchi_keys import get_torsion_oeatom_list, get_torsion_oebond def GetPairwiseDistanceMatrix(icoords, jcoords): ''' input: two sets of coordinates, icoords, jcoords; each of which are a list of OEDoubleArray(3) containing x, y, a...
40.507614
111
0.553446
1,751
15,960
4.993147
0.16562
0.00549
0.002745
0.010065
0.390598
0.322887
0.262267
0.21846
0.182546
0.168135
0
0.022152
0.343797
15,960
393
112
40.610687
0.812661
0.113596
0
0.268966
0
0
0.00086
0
0
0
0
0
0
1
0.034483
false
0
0.013793
0
0.103448
0.003448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d5757c4a8bf60547e9dd883852158e386888c4b
6,785
py
Python
recommendation/recommendation.py
Jackson-Y/Machine-Learning
ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8
[ "MIT" ]
4
2017-08-17T02:11:45.000Z
2017-09-25T00:46:13.000Z
recommendation/recommendation.py
Jackson-Y/Machine-Learning
ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8
[ "MIT" ]
null
null
null
recommendation/recommendation.py
Jackson-Y/Machine-Learning
ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8
[ "MIT" ]
null
null
null
""" 候选生成(Candidate generation) & 排序(LTR, Learning to Ranking)""" # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import argparse from operator import itemgetter from math import sqrt import pandas as pd import py...
36.875
115
0.592336
825
6,785
4.65697
0.253333
0.039823
0.03722
0.043727
0.184019
0.119729
0.087454
0.077564
0.061947
0.047371
0
0.022056
0.291673
6,785
183
116
37.076503
0.777362
0.059396
0
0.122449
0
0
0.090665
0.006171
0
0
0
0
0
1
0.061224
false
0.013605
0.088435
0
0.183673
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d59344dd6f980db538f0cd26f71a979f4b914e4
1,592
py
Python
orchestration/dags/twitter_streaming.py
amommendes/tweetstream
ef09928a4f3344210c597388332d18a53149bb41
[ "Apache-2.0" ]
null
null
null
orchestration/dags/twitter_streaming.py
amommendes/tweetstream
ef09928a4f3344210c597388332d18a53149bb41
[ "Apache-2.0" ]
null
null
null
orchestration/dags/twitter_streaming.py
amommendes/tweetstream
ef09928a4f3344210c597388332d18a53149bb41
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta from airflow import DAG from airflow.utils.dates import days_ago from airflow.operators.python_operator import PythonOperator from tweetstream.consumers.twitter_streaming import TwitterStreamingConsumer from tweetstream.clients.spark import SparkClient default_args = { "owner": "twee...
30.615385
105
0.692839
196
1,592
5.469388
0.433673
0.029851
0.05597
0.070896
0.170709
0.170709
0.170709
0.095149
0.095149
0.095149
0
0.028244
0.177136
1,592
51
106
31.215686
0.790076
0
0
0
0
0.088889
0.356156
0.2299
0
0
0
0
0
1
0.022222
false
0
0.133333
0
0.155556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d5d5a4039dbeb89722961536cacebbce65b4ec3
1,059
py
Python
setup.py
fg1/ipynb_format
58dc276fca4f1fbb179d7e84ce41d59663d011c2
[ "BSD-3-Clause" ]
null
null
null
setup.py
fg1/ipynb_format
58dc276fca4f1fbb179d7e84ce41d59663d011c2
[ "BSD-3-Clause" ]
null
null
null
setup.py
fg1/ipynb_format
58dc276fca4f1fbb179d7e84ce41d59663d011c2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python from setuptools import setup, find_packages from codecs import open with open('README.rst', 'r', 'utf-8') as fd: long_description = fd.read() setup(name='ipynb_format', version='0.1.1', description='A code formatter for python code in ipython notebooks', long_description=long_...
31.147059
74
0.588291
111
1,059
5.504505
0.630631
0.072013
0.163666
0.12766
0
0
0
0
0
0
0
0.016905
0.273843
1,059
33
75
32.090909
0.777633
0.015109
0
0.068966
0
0
0.444338
0.027831
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19b2caec75b18b0aa3e0597b5caa0b0c55ce8cad
7,365
py
Python
gpss/transaction.py
martendo/gpss.py
52c6781bd8a65b651381ed11da9e31ddfae6e313
[ "MIT" ]
2
2021-11-28T08:48:02.000Z
2022-03-09T16:19:06.000Z
gpss/transaction.py
martendo/gpss.py
52c6781bd8a65b651381ed11da9e31ddfae6e313
[ "MIT" ]
null
null
null
gpss/transaction.py
martendo/gpss.py
52c6781bd8a65b651381ed11da9e31ddfae6e313
[ "MIT" ]
null
null
null
from .statement import Statement, StatementType from .event import Event from ._helpers import debugmsg, simulation_error class TransactionGenerator: def __init__(self, simulation, block_num, operands): self.simulation = simulation self.block = self.simulation.program[block_num] self.start_...
41.610169
81
0.509029
702
7,365
5.25641
0.18661
0.155556
0.049322
0.058537
0.42439
0.367751
0.258537
0.15664
0.153388
0.102439
0
0.009908
0.410726
7,365
176
82
41.846591
0.840323
0.089206
0
0.310078
0
0
0.044272
0.016602
0
0
0
0
0
1
0.062016
false
0
0.023256
0.015504
0.162791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19b3f6aeb28dd07d2770e4ea600d2a99c0c06e65
3,134
py
Python
train_video.py
jacke121/MBMD
2daf5edb4fb40ee652baead4f9332ca00fa111a5
[ "MIT" ]
220
2018-09-17T15:42:54.000Z
2021-09-13T13:14:22.000Z
train_video.py
jacke121/MBMD
2daf5edb4fb40ee652baead4f9332ca00fa111a5
[ "MIT" ]
12
2018-09-19T09:30:42.000Z
2019-07-01T04:03:51.000Z
train_video.py
jacke121/MBMD
2daf5edb4fb40ee652baead4f9332ca00fa111a5
[ "MIT" ]
60
2018-09-18T00:29:50.000Z
2021-02-22T03:55:19.000Z
import functools import tensorflow as tf from core import trainer_video, input_reader from core.model_builder import build_man_model from google.protobuf import text_format from object_detection.builders import input_reader_builder from object_detection.protos import input_reader_pb2 from object_detection.protos import...
35.613636
128
0.744735
413
3,134
5.33414
0.288136
0.044939
0.069451
0.045393
0.22424
0.10168
0
0
0
0
0
0.012284
0.168794
3,134
87
129
36.022989
0.833397
0.108807
0
0
0
0
0.272424
0.091549
0
0
0
0
0
1
0.037736
false
0
0.207547
0
0.264151
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19b7ef31e8ac32e464e2b7f9641c6ad98cd6de46
3,301
py
Python
conf_dblp.py
AmiraKetfi/ScientificProductScraper
c700fb579ac47266e76ec834ccbd8674abeaff50
[ "MIT" ]
4
2018-04-04T12:10:59.000Z
2020-02-22T17:26:14.000Z
conf_dblp.py
AmiraKetfi/ScientificProductScraper
c700fb579ac47266e76ec834ccbd8674abeaff50
[ "MIT" ]
null
null
null
conf_dblp.py
AmiraKetfi/ScientificProductScraper
c700fb579ac47266e76ec834ccbd8674abeaff50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Mar 17 23:01:40 2018 @author: pc """ import scholarly,re,urllib.request,nltk import bs4 as bs # ============================================================================= # #Probléme les derniere conf ne se rajoute pas # =======================================...
38.383721
124
0.499546
393
3,301
4.083969
0.279898
0.068536
0.04486
0.052336
0.572586
0.517757
0.350156
0.241745
0.241745
0.1919
0
0.021786
0.304756
3,301
86
125
38.383721
0.67756
0.157528
0
0.362319
0
0
0.180727
0.010124
0
0
0
0
0
1
0.043478
false
0
0.028986
0
0.072464
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
19b8ce0aa97bf71df30c5a8e086263306534c4c7
4,540
py
Python
src/robot.py
FROG3160/FRC2018-ARWING
6635274d79839ea92d8591af2c8e51f8e1112ec1
[ "MIT" ]
1
2019-01-15T00:47:16.000Z
2019-01-15T00:47:16.000Z
src/robot.py
FROG3160/FRC2018-ARWING
6635274d79839ea92d8591af2c8e51f8e1112ec1
[ "MIT" ]
18
2018-02-15T01:07:03.000Z
2018-04-10T00:25:59.000Z
src/robot.py
FROG3160/FRC2018-ARWING
6635274d79839ea92d8591af2c8e51f8e1112ec1
[ "MIT" ]
4
2018-01-31T01:53:44.000Z
2018-02-16T00:30:14.000Z
#!/usr/bin/env python3 """ Main code for Robot """ import wpilib import robotmap from wpilib import Joystick from subsystems.drivetrain import DriveTrain as Drive from subsystems.grabber import cubeGrabber from subsystems.elevator import Elevator from subsystems.climber import Climber from subsystems.autonomous import...
32.661871
83
0.652643
438
4,540
6.737443
0.3379
0.146391
0.16774
0.024399
0.036598
0.028465
0.028465
0
0
0
0
0.018314
0.242291
4,540
138
84
32.898551
0.839535
0.151322
0
0.049383
0
0
0.044867
0
0
0
0
0
0
1
0.135802
false
0.049383
0.111111
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
19b94d7c9d394f09ecf7228b67004f998dd55522
1,764
py
Python
api/attomized_avm.py
johncoleman83/attom_python_client
2fad572162f481a71cccf6003da4cbd8ec4477d4
[ "MIT" ]
null
null
null
api/attomized_avm.py
johncoleman83/attom_python_client
2fad572162f481a71cccf6003da4cbd8ec4477d4
[ "MIT" ]
null
null
null
api/attomized_avm.py
johncoleman83/attom_python_client
2fad572162f481a71cccf6003da4cbd8ec4477d4
[ "MIT" ]
1
2020-11-20T19:28:36.000Z
2020-11-20T19:28:36.000Z
#!/usr/bin/env python3 """ ATTOM API https://api.developer.attomdata.com """ import requests from urllib.parse import quote, urlencode from api import api PATH = "attomavm/detail" def get_avm_by_address(number_street, city_state): """ API request to get attomavm/detail """ params = urlencode( { "add...
27.138462
77
0.620181
249
1,764
4.261044
0.289157
0.0377
0.04524
0.05655
0.175306
0.081056
0
0
0
0
0
0.004008
0.151361
1,764
64
78
27.5625
0.704743
0.057823
0
0
0
0
0.195374
0
0
0
0
0
0
1
0.152174
false
0
0.065217
0.086957
0.369565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19b9c7cf12ec5b8b173b1bc2764d7bfc2577385f
7,064
py
Python
idmap/models.py
tkhyn/django-idmap
383124fc4bd537d053f9d4c0d02a498f66831baa
[ "BSD-2-Clause" ]
1
2021-04-24T16:35:15.000Z
2021-04-24T16:35:15.000Z
idmap/models.py
tkhyn/django-idmap
383124fc4bd537d053f9d4c0d02a498f66831baa
[ "BSD-2-Clause" ]
null
null
null
idmap/models.py
tkhyn/django-idmap
383124fc4bd537d053f9d4c0d02a498f66831baa
[ "BSD-2-Clause" ]
1
2021-02-27T14:45:48.000Z
2021-02-27T14:45:48.000Z
import django from django.db import models from django.db.models.base import ModelBase from django.utils import six from .manager import IdMapManager from . import tls # thread local storage META_VALUES = { 'use_strong_refs': False, 'multi_db': False } class IdMapModelBase(ModelBase): def __new__(mc...
33.799043
80
0.58876
895
7,064
4.515084
0.261453
0.01559
0.012373
0.013363
0.116555
0.080673
0.015838
0
0
0
0
0.00235
0.337344
7,064
208
81
33.961538
0.860927
0.307475
0
0.230769
0
0
0.020978
0
0
0
0
0
0
1
0.08547
false
0.025641
0.051282
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19bd0b651a92c3989a6dcd3e14655ea86b1f4a83
2,501
py
Python
pyrfu/pyrf/ts_skymap.py
ablotekar/irfu-python
740cb51ca9ce2ab0d62cb6fef3a7a722d430d79e
[ "MIT" ]
2
2020-11-27T11:35:42.000Z
2021-07-17T11:08:10.000Z
pyrfu/pyrf/ts_skymap.py
ablotekar/irfu-python
740cb51ca9ce2ab0d62cb6fef3a7a722d430d79e
[ "MIT" ]
1
2021-12-04T07:55:48.000Z
2021-12-10T12:45:27.000Z
pyrfu/pyrf/ts_skymap.py
ablotekar/irfu-python
740cb51ca9ce2ab0d62cb6fef3a7a722d430d79e
[ "MIT" ]
2
2021-07-17T11:08:12.000Z
2021-07-18T18:41:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # 3rd party imports import numpy as np import xarray as xr __author__ = "Louis Richard" __email__ = "louisr@irfu.se" __copyright__ = "Copyright 2020-2021" __license__ = "MIT" __version__ = "2.3.7" __status__ = "Prototype" def ts_skymap(time, data, energy, phi, theta, **...
26.892473
79
0.562575
283
2,501
4.833922
0.378092
0.032895
0.037281
0.054825
0.073099
0
0
0
0
0
0
0.033353
0.304678
2,501
92
80
27.184783
0.753307
0.29988
0
0.051282
0
0
0.138396
0
0
0
0
0
0
1
0.025641
false
0
0.051282
0
0.102564
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19be0f2de874f8b441c89b5d8fd8cac69393789a
2,037
py
Python
src/log_utils.py
alexklwong/calibrated-backprojection-network
57dbec03c6da94ee0cd020b6de5f02e7e8ee726e
[ "Intel" ]
38
2021-08-28T06:01:25.000Z
2022-03-03T03:23:23.000Z
src/log_utils.py
alexklwong/calibrated-backprojection-network
57dbec03c6da94ee0cd020b6de5f02e7e8ee726e
[ "Intel" ]
14
2021-11-15T12:30:34.000Z
2022-03-30T14:03:16.000Z
src/log_utils.py
alexklwong/calibrated-backprojection-network
57dbec03c6da94ee0cd020b6de5f02e7e8ee726e
[ "Intel" ]
9
2021-10-19T23:45:07.000Z
2021-12-20T07:45:37.000Z
''' Author: Alex Wong <alexw@cs.ucla.edu> If you use this code, please cite the following paper: A. Wong, and S. Soatto. Unsupervised Depth Completion with Calibrated Backprojection Layers. https://arxiv.org/pdf/2108.10531.pdf @inproceedings{wong2021unsupervised, title={Unsupervised Depth Completion with Calibrate...
26.802632
92
0.60972
281
2,037
4.398577
0.451957
0.029126
0.043689
0.050162
0.171521
0.171521
0.153722
0.055016
0.055016
0.055016
0
0.035523
0.26755
2,037
75
93
27.16
0.792895
0.470299
0
0.148148
0
0
0.013118
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0
0.259259
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19c214d222aa500c556609e883b1ff02ba286869
788
py
Python
add-two-numbers/add-two-numbers.py
shaurya-src/code-leet
f642b81eb7bead46c66404bd48ca74bdfeb2abbb
[ "MIT" ]
null
null
null
add-two-numbers/add-two-numbers.py
shaurya-src/code-leet
f642b81eb7bead46c66404bd48ca74bdfeb2abbb
[ "MIT" ]
null
null
null
add-two-numbers/add-two-numbers.py
shaurya-src/code-leet
f642b81eb7bead46c66404bd48ca74bdfeb2abbb
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def addTwoNumbers(self, l1: Optional[ListNode], l2: Optional[ListNode]) -> Optional[ListNode]: a = self.get_num(l1) b = self.get_num(...
28.142857
98
0.497462
99
788
3.888889
0.393939
0.124675
0.051948
0
0
0
0
0
0
0
0
0.02045
0.379442
788
28
99
28.142857
0.766871
0.177665
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
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
19c251bd8c7eb79b25c470c6951dca0f932a8918
2,834
py
Python
likedtweets.py
PoliTwit1984/Politwitverse
837dd2d05b3977aa24a70f52a3b951ef22c51dc6
[ "MIT" ]
3
2022-01-05T07:12:14.000Z
2022-02-19T20:58:25.000Z
likedtweets.py
PoliTwit1984/Politwitverse
837dd2d05b3977aa24a70f52a3b951ef22c51dc6
[ "MIT" ]
25
2022-01-05T08:23:59.000Z
2022-02-07T01:25:39.000Z
likedtweets.py
PoliTwit1984/Politwitverse
837dd2d05b3977aa24a70f52a3b951ef22c51dc6
[ "MIT" ]
1
2022-02-01T22:39:57.000Z
2022-02-01T22:39:57.000Z
import time import re import tweepy import preprocessor as p import config import string consumer_key = config.consumer_key consumer_secret = config.consumer_secret access_token = config.access_token access_token_secret = config.access_token_secret bearer_token = config.bearer_token username = config.username password...
26.485981
97
0.677135
371
2,834
4.951482
0.291105
0.053892
0.053348
0.031029
0.200871
0.190528
0.138269
0.101252
0.101252
0.101252
0
0.012232
0.192308
2,834
106
98
26.735849
0.790301
0.314397
0
0.166667
0
0
0.041335
0.012189
0
0
0
0
0
1
0.083333
false
0.020833
0.125
0.020833
0.25
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
19c43d42b7108f348940b9fd8fc9fb33a8830e2c
2,112
py
Python
audclass.py
theunafraid/audiofeedback-prevention
0dd3e8ab7b5a65aff214e74b7bd7869366b1b7b5
[ "Apache-2.0" ]
1
2022-01-20T08:30:20.000Z
2022-01-20T08:30:20.000Z
audclass.py
theunafraid/audiofeedback-prevention
0dd3e8ab7b5a65aff214e74b7bd7869366b1b7b5
[ "Apache-2.0" ]
null
null
null
audclass.py
theunafraid/audiofeedback-prevention
0dd3e8ab7b5a65aff214e74b7bd7869366b1b7b5
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow.python.ops.gen_batch_ops import batch from model import AudioClass from qrnn import QRNN from numpy.random import seed from numpy.random import randn from random import randint from lstmfcn import LSTM_FCN import librosa import os def getData(): outX = [] ...
26.734177
78
0.588542
274
2,112
4.474453
0.361314
0.034258
0.026917
0.034258
0.151713
0.088091
0.04894
0.04894
0.04894
0
0
0.038462
0.273674
2,112
78
79
27.076923
0.760756
0.138731
0
0.178571
0
0
0.041644
0.018323
0
0
0
0
0
1
0.071429
false
0
0.196429
0
0.321429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19c79aebe6cccec71cf534b0497f44d1a8496883
4,127
py
Python
python_implementation/matriz/quadrada.py
SousaPedro11/algoritmos
86a3601912778d120b9ec8094267c26a7eb6d153
[ "MIT" ]
null
null
null
python_implementation/matriz/quadrada.py
SousaPedro11/algoritmos
86a3601912778d120b9ec8094267c26a7eb6d153
[ "MIT" ]
null
null
null
python_implementation/matriz/quadrada.py
SousaPedro11/algoritmos
86a3601912778d120b9ec8094267c26a7eb6d153
[ "MIT" ]
null
null
null
import math from typing import List, Tuple def __cria_matriz_quadrada(tamanho: int = 20) -> List[List[str]]: matriz = [] for _ in range(tamanho): linha = ['0' for _ in range(tamanho)] matriz.append(linha) return matriz def __diagonais(matriz: List[List[str]]) -> Tuple[list, list]: t...
33.282258
100
0.628544
525
4,127
4.672381
0.188571
0.067265
0.035874
0.057073
0.392173
0.265389
0.16062
0.16062
0.16062
0.16062
0
0.006262
0.264841
4,127
123
101
33.552846
0.802241
0
0
0.21
0
0
0.129876
0
0
0
0
0
0
1
0.09
false
0
0.02
0
0.16
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
19c9e0f683fb12bcf45633873b78ecba612bb09f
7,399
py
Python
theseus/util/serialize.py
shiplift/theseus
9324d67e6e0c6b93a7734a5531838c5a909a1424
[ "0BSD" ]
null
null
null
theseus/util/serialize.py
shiplift/theseus
9324d67e6e0c6b93a7734a5531838c5a909a1424
[ "0BSD" ]
null
null
null
theseus/util/serialize.py
shiplift/theseus
9324d67e6e0c6b93a7734a5531838c5a909a1424
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ serialize provide means to persist and recreate the currently known set of W_Tags and all shapes and transformations reachable from there. The rmarshal modules is used for serialization; the format is marshal_proto = ( int, # number of shapes [ # shape list ...
27.403704
79
0.592783
911
7,399
4.654226
0.188804
0.010613
0.015566
0.018396
0.290802
0.272642
0.223349
0.199292
0.199292
0.173349
0
0.001932
0.300446
7,399
269
80
27.505576
0.817233
0.320043
0
0.18705
0
0
0.025386
0
0
0
0
0
0.035971
1
0.064748
false
0
0.05036
0
0.172662
0.007194
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19cc7f391c49230cd25af4f7949e261ca27ffe2b
1,359
py
Python
external_scripts/run2.py
AAS97/tokenizRE
0186a2b533edaa0045b16b0b111b9637248e5046
[ "MIT" ]
null
null
null
external_scripts/run2.py
AAS97/tokenizRE
0186a2b533edaa0045b16b0b111b9637248e5046
[ "MIT" ]
null
null
null
external_scripts/run2.py
AAS97/tokenizRE
0186a2b533edaa0045b16b0b111b9637248e5046
[ "MIT" ]
null
null
null
from web3 import Web3, HTTPProvider import json import os w3 = Web3(HTTPProvider("http://127.0.0.1:7545", request_kwargs={'timeout': 60})) print(f"Web3 is connected : {w3.isConnected()}") accounts = w3.eth.accounts # ------------------------------- get contract ------------------------------- ...
37.75
146
0.693893
159
1,359
5.805031
0.440252
0.156013
0.108342
0.047671
0.130011
0.130011
0.130011
0.130011
0.130011
0.130011
0
0.072309
0.104489
1,359
35
147
38.828571
0.686113
0.130979
0
0.095238
0
0
0.197783
0.071611
0
0
0.035806
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19d4df790639614b567c8829dbce219210c26642
585
py
Python
src/weekly-reset.py
SlimeeGameS/VirginityBot
a1745893f21a16112bbf775fb2aff199c14dbbbb
[ "CC0-1.0" ]
null
null
null
src/weekly-reset.py
SlimeeGameS/VirginityBot
a1745893f21a16112bbf775fb2aff199c14dbbbb
[ "CC0-1.0" ]
14
2020-03-26T01:02:31.000Z
2021-03-24T23:48:44.000Z
src/weekly-reset.py
SlimeeGameS/VirginityBot
a1745893f21a16112bbf775fb2aff199c14dbbbb
[ "CC0-1.0" ]
2
2020-08-09T19:08:41.000Z
2021-05-12T17:44:28.000Z
import os import asyncio import logging from pony.orm import * import logger from database import start_orm, get_biggest_virgin, Guild, Virgin logger = logging.getLogger('virginity-bot') async def reset_weekly_virginity(): with db_session: virgins = Virgin.select() for virgin in virgins: virgin.tot...
18.870968
65
0.729915
79
585
5.101266
0.56962
0.039702
0.099256
0
0
0
0
0
0
0
0
0.004167
0.179487
585
30
66
19.5
0.835417
0
0
0
0
0
0.070085
0
0
0
0
0
0
1
0
false
0
0.285714
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
19d525875da360fb20fb2929a08fff78176398d0
1,165
py
Python
hardhat/recipes/racket.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/racket.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/racket.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
import os import shutil from .base import GnuRecipe class RacketRecipe(GnuRecipe): def __init__(self, *args, **kwargs): super(RacketRecipe, self).__init__(*args, **kwargs) self.sha256 = 'bf2bce50b02c626666a8d2093638893e' \ '8beb8b2a19cdd43efa151a686c88edcf' self.depe...
31.486486
73
0.572532
123
1,165
5.325203
0.504065
0.059542
0.064122
0.042748
0
0
0
0
0
0
0
0.053828
0.282403
1,165
36
74
32.361111
0.729665
0.018884
0
0
0
0
0.207713
0.076249
0
0
0
0
0
1
0.107143
false
0
0.107143
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
19d5619a8ce652fe7933c1843f9585227eb325de
3,257
py
Python
lichess-gist.py
swimmy4days/lichess-gist
b70e605345f789e032291253df506384ccbaa270
[ "MIT" ]
null
null
null
lichess-gist.py
swimmy4days/lichess-gist
b70e605345f789e032291253df506384ccbaa270
[ "MIT" ]
null
null
null
lichess-gist.py
swimmy4days/lichess-gist
b70e605345f789e032291253df506384ccbaa270
[ "MIT" ]
null
null
null
import os import sys import berserk from github import Github, InputFileContent, Gist SEPARATOR = "." PADDING = {"puzzle": 0, "crazyhouse": 0, "chess960": 0, "kingOfTheHill": 0, "threeCheck": 2, "antichess": 0, "atomic": 0, "horde": 0, "racingKings": 0, "ultraBullet": 0, "blitz": 1, "classical"...
31.317308
118
0.612834
437
3,257
4.379863
0.299771
0.065831
0.036573
0.043887
0.178161
0.164577
0.087252
0.087252
0.052247
0.052247
0
0.016315
0.228431
3,257
103
119
31.621359
0.735774
0.027326
0
0
0
0
0.147598
0
0
0
0
0
0
1
0.081081
false
0
0.054054
0
0.216216
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
19d5e02630a84a1866bbfe9f9deb571cc98a96cc
951
py
Python
alembic/versions/60c735df8d2f_.py
brouberol/grand-cedre
05f18d1f8b7253ffa7fb5b33b30ceadcc93c4e93
[ "BSD-3-Clause" ]
null
null
null
alembic/versions/60c735df8d2f_.py
brouberol/grand-cedre
05f18d1f8b7253ffa7fb5b33b30ceadcc93c4e93
[ "BSD-3-Clause" ]
22
2019-09-03T20:08:42.000Z
2022-03-11T23:58:02.000Z
alembic/versions/60c735df8d2f_.py
brouberol/grand-cedre
05f18d1f8b7253ffa7fb5b33b30ceadcc93c4e93
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 60c735df8d2f Revises: 88bb7e12da60 Create Date: 2019-09-06 08:27:03.082097 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "60c735df8d2f" down_revision = "88bb7e12da60" branch_labels = None depends_on = None def upgrade(): # ...
27.171429
84
0.690852
120
951
5.333333
0.45
0.13125
0.051563
0.089063
0.442188
0.298438
0.259375
0.259375
0
0
0
0.060377
0.164038
951
34
85
27.970588
0.744654
0.3102
0
0
0
0
0.245557
0
0
0
0
0
0
1
0.125
false
0
0.125
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
19d5e29e652c7abc55afdd0fed0c5112571018a1
3,640
py
Python
python/genre_classifier.py
nscharrenberg/Aliran
628de0476b8f8b413a6fdddf5392c590e8b27654
[ "MIT" ]
null
null
null
python/genre_classifier.py
nscharrenberg/Aliran
628de0476b8f8b413a6fdddf5392c590e8b27654
[ "MIT" ]
null
null
null
python/genre_classifier.py
nscharrenberg/Aliran
628de0476b8f8b413a6fdddf5392c590e8b27654
[ "MIT" ]
null
null
null
import scipy.io.wavfile as wav import numpy as np import os import pickle import random import operator from python_speech_features import mfcc dataset = [] training_set = [] test_set = [] # Get the distance between feature vectors def distance(instance1, instance2, k): mm1 = instance1[0] cm1 = instance1[1] ...
26.376812
102
0.613462
470
3,640
4.617021
0.308511
0.029032
0.013825
0.025346
0.059908
0
0
0
0
0
0
0.018386
0.267857
3,640
137
103
26.569343
0.795872
0.06044
0
0.113402
0
0
0.055963
0.006153
0
0
0
0
0
1
0.061856
false
0
0.072165
0
0.175258
0.092784
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19d94ed3daa7c3c452d53a4b890d6a26c3139991
1,653
py
Python
run.py
dkosilov/reconciler_anchor_salesforce
5cf6a8ccaedce84e7dab6c32955c644ede0c6e07
[ "Xnet", "X11" ]
1
2020-09-22T11:49:07.000Z
2020-09-22T11:49:07.000Z
run.py
dkosilov/reconciler_anchor_salesforce
5cf6a8ccaedce84e7dab6c32955c644ede0c6e07
[ "Xnet", "X11" ]
null
null
null
run.py
dkosilov/reconciler_anchor_salesforce
5cf6a8ccaedce84e7dab6c32955c644ede0c6e07
[ "Xnet", "X11" ]
null
null
null
import argparse from libs.data_model import AnchorNorthstarDataframe, SalesForceDataframe, \ AnchorSalesforceAccountsDataframe, AnchorSalesforceContactsDataframe from libs.utils import save_dataframes_to_excel parser = argparse.ArgumentParser(description='Reconcile accounts and contacts between Anchor and Salesfo...
57
120
0.754991
193
1,653
6.295337
0.393782
0.037037
0.069959
0.046091
0.153086
0.103704
0.103704
0
0
0
0
0.004979
0.149425
1,653
28
121
59.035714
0.859175
0
0
0
0
0
0.317191
0.021792
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
19db3143b0967735343ec7fb40012d028a989ea5
1,650
py
Python
billrelease.py
arby36/BillAi
e5c10c35279a1669d218439671e03bc17acb7fdc
[ "MIT" ]
null
null
null
billrelease.py
arby36/BillAi
e5c10c35279a1669d218439671e03bc17acb7fdc
[ "MIT" ]
null
null
null
billrelease.py
arby36/BillAi
e5c10c35279a1669d218439671e03bc17acb7fdc
[ "MIT" ]
null
null
null
def bill(): print("I am bill, please input your name") name = str(raw_input()) print("Hi %s" % name) print("Now input a command") a = raw_input("Command line:") a = a.lower() if a == "": print("You inputed nothing") bill() if a == "help": print("The commands in m...
27.966102
139
0.527273
222
1,650
3.878378
0.324324
0.065041
0.04878
0.078978
0.361208
0.253194
0.199768
0.199768
0.199768
0.097561
0
0.006381
0.335152
1,650
59
140
27.966102
0.778487
0
0
0.34
0
0.04
0.409697
0
0
0
0
0
0
1
0.04
false
0
0
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
19e36b29ee592d089dc07f0b81f9a1312e103cce
34,894
py
Python
sw/EdgeBERT/transformers/src/transformers/modeling_highway_albert.py
yihuajack/EdgeBERT
a51ae7557187e3251f4b11bc13ef9cbd336019ff
[ "Apache-2.0" ]
8
2021-11-01T01:38:04.000Z
2022-03-20T16:03:39.000Z
sw/EdgeBERT/transformers/src/transformers/modeling_highway_albert.py
yihuajack/EdgeBERT
a51ae7557187e3251f4b11bc13ef9cbd336019ff
[ "Apache-2.0" ]
1
2021-11-19T08:04:02.000Z
2021-12-19T07:21:48.000Z
sw/EdgeBERT/transformers/src/transformers/modeling_highway_albert.py
yihuajack/EdgeBERT
a51ae7557187e3251f4b11bc13ef9cbd336019ff
[ "Apache-2.0" ]
5
2021-11-19T07:52:44.000Z
2022-02-10T08:23:19.000Z
import torch from torch import nn from torch.nn import CrossEntropyLoss, MSELoss from .modeling_albert import AlbertPreTrainedModel, AlbertLayerNorm, AlbertLayerGroup from .modeling_bert import BertEmbeddings from .modeling_highway_bert import BertPooler import numpy as np def entropy(x): # x: torch.Tensor, logi...
46.963661
148
0.611366
4,064
34,894
5.010581
0.103839
0.022394
0.012523
0.012375
0.590876
0.546727
0.521976
0.500221
0.452291
0.430192
0
0.007855
0.303175
34,894
742
149
47.026954
0.829611
0.348943
0
0.502347
0
0
0.00553
0
0
0
0
0
0
1
0.044601
false
0
0.016432
0.002347
0.093897
0.002347
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
19e3c7e8cb0d8e13048dc4a21c8f8d2b1867724a
1,809
py
Python
tests/test_sar.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
8
2021-05-18T02:22:03.000Z
2021-09-11T02:49:04.000Z
tests/test_sar.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
1
2021-04-26T04:38:35.000Z
2021-04-26T04:38:35.000Z
tests/test_sar.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
1
2021-11-10T02:28:47.000Z
2021-11-10T02:28:47.000Z
# Copyright 2020 Kapil Thangavelu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.470588
74
0.616363
204
1,809
5.377451
0.573529
0.054695
0.023701
0.02917
0.280766
0.280766
0.280766
0.280766
0.211486
0.211486
0
0.036953
0.266998
1,809
50
75
36.18
0.790347
0.303483
0
0.322581
0
0
0.254414
0.081059
0
0
0
0
0.129032
1
0.064516
false
0
0.032258
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0