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
c915f05bb0ce24d1fe5469fea260ce3e99ceb13c
5,144
py
Python
bot/exts/utilities/twemoji.py
thatbirdguythatuknownot/sir-lancebot
7fd74af261385bdf7d989f459bec4c9b0cb4392a
[ "MIT" ]
77
2018-11-19T18:38:50.000Z
2020-11-16T22:49:59.000Z
bot/exts/utilities/twemoji.py
thatbirdguythatuknownot/sir-lancebot
7fd74af261385bdf7d989f459bec4c9b0cb4392a
[ "MIT" ]
373
2018-11-17T16:06:06.000Z
2020-11-20T22:55:03.000Z
bot/exts/utilities/twemoji.py
thatbirdguythatuknownot/sir-lancebot
7fd74af261385bdf7d989f459bec4c9b0cb4392a
[ "MIT" ]
165
2018-11-19T04:04:44.000Z
2020-11-18T17:53:28.000Z
import logging import re from typing import Literal, Optional import discord from discord.ext import commands from emoji import UNICODE_EMOJI_ENGLISH, is_emoji from bot.bot import Bot from bot.constants import Colours, Roles from bot.utils.decorators import whitelist_override from bot.utils.extensions import invoke_h...
34.066225
110
0.614891
633
5,144
4.909953
0.322275
0.023166
0.028958
0.021236
0.1287
0.083655
0.061133
0.034749
0
0
0
0.01918
0.260109
5,144
150
111
34.293333
0.793221
0.278771
0
0.092105
0
0.013158
0.123513
0.035377
0
0
0
0
0
1
0.118421
false
0
0.131579
0
0.394737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9188684a1a8b8220b62b9249ea8815fc31f7412
2,621
py
Python
experimentations/20-climate-data/test-perf.py
Kitware/spark-mpi-experimentation
9432b63130059fc54843bc5ca6f2f5510e5a4098
[ "BSD-3-Clause" ]
4
2017-06-15T16:36:01.000Z
2021-12-25T09:13:22.000Z
experimentations/20-climate-data/test-perf.py
Kitware/spark-mpi-experimentation
9432b63130059fc54843bc5ca6f2f5510e5a4098
[ "BSD-3-Clause" ]
1
2018-09-28T23:32:42.000Z
2018-09-28T23:32:42.000Z
experimentations/20-climate-data/test-perf.py
Kitware/spark-mpi-experimentation
9432b63130059fc54843bc5ca6f2f5510e5a4098
[ "BSD-3-Clause" ]
6
2017-07-22T00:10:00.000Z
2021-12-25T09:13:11.000Z
from __future__ import print_function import os import sys import time import gdal import numpy as np # ------------------------------------------------------------------------- # Files to process # ------------------------------------------------------------------------- fileNames = [ 'tasmax_day_BCSD_rcp85_r1i...
33.177215
79
0.518123
267
2,621
4.831461
0.299625
0.069767
0.100775
0.139535
0.648062
0.648062
0.648062
0.623256
0.37907
0.37907
0
0.054652
0.155284
2,621
78
80
33.602564
0.528004
0.254865
0
0.326923
0
0
0.290722
0.259794
0
0
0
0
0
1
0.057692
false
0
0.115385
0
0.192308
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c91fcc058836389aa81c0420f1fedf01f1106ff3
1,699
py
Python
similarity.py
Blair-Johnson/faceswap
79b75f7f112acb3bf6b228116facc4d0812d2099
[ "MIT" ]
null
null
null
similarity.py
Blair-Johnson/faceswap
79b75f7f112acb3bf6b228116facc4d0812d2099
[ "MIT" ]
null
null
null
similarity.py
Blair-Johnson/faceswap
79b75f7f112acb3bf6b228116facc4d0812d2099
[ "MIT" ]
1
2021-11-04T08:21:07.000Z
2021-11-04T08:21:07.000Z
# Blair Johnson 2021 from facenet_pytorch import InceptionResnetV1, MTCNN import numpy as np def create_embeddings(images): ''' Take an iterable of image candidates and return an iterable of image embeddings. ''' if type(images) != list: images = [images] extractor = MTCNN() encoder ...
29.807018
97
0.683343
211
1,699
5.345972
0.412322
0.056738
0.042553
0.056738
0.12766
0.12766
0.12766
0
0
0
0
0.011161
0.208946
1,699
56
98
30.339286
0.828125
0.138317
0
0
0
0
0.126397
0.113128
0
0
0
0
0
1
0.060606
false
0
0.121212
0
0.242424
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c920d8ceac18d8c9ff46fde63a7fa287e05e877b
6,075
py
Python
opentamp/domains/robot_manipulation_domain/generate_base_prob.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
4
2022-02-13T15:52:18.000Z
2022-03-26T17:33:13.000Z
opentamp/domains/robot_manipulation_domain/generate_base_prob.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
1
2022-02-13T22:48:09.000Z
2022-02-13T22:48:09.000Z
opentamp/domains/robot_manipulation_domain/generate_base_prob.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
from IPython import embed as shell import itertools import numpy as np import random # SEED = 1234 NUM_PROBS = 1 NUM_CLOTH = 4 filename = "probs/base_prob.prob" GOAL = "(RobotAt baxter robot_end_pose)" # init Baxter pose BAXTER_INIT_POSE = [0, 0, 0] BAXTER_END_POSE = [0, 0, 0] R_ARM_INIT = [0, 0, 0, 0, 0, 0, 0] # [...
41.047297
175
0.576461
893
6,075
3.698768
0.164614
0.039964
0.037239
0.020587
0.57584
0.495913
0.442022
0.363003
0.261278
0.236452
0
0.063698
0.227325
6,075
147
176
41.326531
0.639966
0.055144
0
0.169492
0
0.016949
0.38322
0
0
0
0
0
0
1
0.042373
false
0.008475
0.033898
0
0.110169
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9210c12cb167b3a01782592accbb83cee14ae03
2,633
py
Python
tests/views/test_hsva.py
ju-sh/colorviews
b9757dd3a799d68bd89966852f36f06f21e36072
[ "MIT" ]
5
2021-06-10T21:12:16.000Z
2022-01-14T05:04:03.000Z
tests/views/test_hsva.py
ju-sh/colorviews
b9757dd3a799d68bd89966852f36f06f21e36072
[ "MIT" ]
null
null
null
tests/views/test_hsva.py
ju-sh/colorviews
b9757dd3a799d68bd89966852f36f06f21e36072
[ "MIT" ]
null
null
null
import pytest from colorviews import AlphaColor class TestGetAttr: @pytest.mark.parametrize("attr, expected", [ ("h", 0.75), ("s", 0.47), ("v", 0.29), ("a", 0.79), ]) def test_valid(self, attr, expected): color = AlphaColor.from_hsva(0.75, 0.47, 0.29, 0.79) ...
29.920455
67
0.545765
399
2,633
3.538847
0.190476
0.021246
0.107649
0.130312
0.540368
0.431303
0.386686
0.320113
0.308782
0.251416
0
0.146565
0.253703
2,633
87
68
30.264368
0.57201
0
0
0.315068
0
0
0.034941
0
0
0
0.034182
0
0.068493
1
0.109589
false
0
0.027397
0
0.178082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c92170ef42c7d1d4c09bcc11c88becf053c48250
2,645
py
Python
app/__init__.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/__init__.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/__init__.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
import random, logging from collections import Counter from flask import Flask, session, request, render_template, jsonify from app.util import unflatten from app.fiftycents import FiftyCentsGame from app.fiftycents import Card log = logging.getLogger('werkzeug') log.setLevel(logging.ERROR) app = Flask(...
38.897059
107
0.483554
292
2,645
4.236301
0.287671
0.072757
0.038804
0.064673
0.240097
0.240097
0.149555
0.122878
0.045271
0
0
0.003141
0.39811
2,645
67
108
39.477612
0.773869
0
0
0.035714
0
0
0.066718
0
0
0
0
0
0
1
0.035714
false
0
0.107143
0.017857
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c921d773c35312ecebe3d4b6eaaaef9e999e9c07
4,905
py
Python
bluvo_test.py
JanJaapKo/BlUVO
2a72b06a56069fee5bd118a12b846513096014b1
[ "MIT" ]
null
null
null
bluvo_test.py
JanJaapKo/BlUVO
2a72b06a56069fee5bd118a12b846513096014b1
[ "MIT" ]
null
null
null
bluvo_test.py
JanJaapKo/BlUVO
2a72b06a56069fee5bd118a12b846513096014b1
[ "MIT" ]
null
null
null
import time import logging import pickle import json import consolemenu from generic_lib import georeverse, geolookup from bluvo_main import BlueLink from tools.stamps import postOffice from params import * # p_parameters are read logging.basicConfig(format='%(asctime)s - %(levelname)-8s - %(filename)-18s - %(messag...
50.56701
171
0.601019
551
4,905
5.23412
0.37931
0.019764
0.09362
0.080097
0.173717
0.084258
0.019417
0.019417
0.019417
0.019417
0
0.02118
0.278084
4,905
96
172
51.09375
0.793279
0.078491
0
0.050633
0
0
0.188776
0
0
0
0
0
0
1
0
false
0.012658
0.113924
0
0.113924
0.341772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c92214401251c6b4745f3ba05c668f2913227e7f
2,962
py
Python
lda/test3/interpret_topics.py
kaiiam/amazon-continuation
9faaba80235614e6eea3e305c423975f2ec72e3e
[ "MIT" ]
null
null
null
lda/test3/interpret_topics.py
kaiiam/amazon-continuation
9faaba80235614e6eea3e305c423975f2ec72e3e
[ "MIT" ]
null
null
null
lda/test3/interpret_topics.py
kaiiam/amazon-continuation
9faaba80235614e6eea3e305c423975f2ec72e3e
[ "MIT" ]
1
2019-05-28T21:49:45.000Z
2019-05-28T21:49:45.000Z
#!/usr/bin/env python3 """ Author : kai Date : 2019-06-26 Purpose: Rock the Casbah """ import argparse import sys import re import csv # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python ...
26.684685
83
0.497637
329
2,962
4.322188
0.398176
0.06962
0.04782
0.033755
0.07384
0.056962
0.056962
0.056962
0.056962
0.056962
0
0.006588
0.282579
2,962
110
84
26.927273
0.662588
0.195814
0
0.043478
0
0
0.13774
0.034542
0
0
0
0
0
1
0.057971
false
0
0.057971
0
0.130435
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
c924841b1d689ef522dd4926df95b7101d1bb341
292
py
Python
app/users/urls.py
ManojKumarMRK/recipe-app-api
f518e91fc335c46eb1034d865256c94bb3e56b32
[ "MIT" ]
null
null
null
app/users/urls.py
ManojKumarMRK/recipe-app-api
f518e91fc335c46eb1034d865256c94bb3e56b32
[ "MIT" ]
null
null
null
app/users/urls.py
ManojKumarMRK/recipe-app-api
f518e91fc335c46eb1034d865256c94bb3e56b32
[ "MIT" ]
null
null
null
from django.urls import path from users import views app_name = 'users' urlpatterns = [ path('create/',views.CreateUserView.as_view(),name='create'), path('token/',views.CreateTokenView.as_view(),name='token'), path('me/', views.ManageUserView.as_view(),name='me'), ]
26.545455
66
0.674658
37
292
5.216216
0.486486
0.093264
0.15544
0
0
0
0
0
0
0
0
0
0.14726
292
11
67
26.545455
0.7751
0
0
0
0
0
0.120141
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c92510f03e8c86ab8acb7443fa38d2785d4a3bca
4,200
py
Python
archive/visualization/network.py
ajrichards/bayesian-examples
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
2
2016-01-27T08:51:23.000Z
2017-04-17T02:21:34.000Z
archive/visualization/network.py
ajrichards/notebook
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
null
null
null
archive/visualization/network.py
ajrichards/notebook
fbd87c6f1613ea516408e9ebc3c9eff1248246e4
[ "BSD-3-Clause" ]
null
null
null
import matplotlib as mpl import matplotlib.pyplot as plt import networkx as nx import pandas as pd def get_a_dict(filepath): df = pd.read_csv(filepath).iloc[:, 1:13] theme_dict = {} interesting_theme_idx = [3, 6, 11, 15, 16] theme_names = ['Horrendous IVR', 'Mobile Disengagement', "Couldn't Find it O...
44.680851
196
0.61381
680
4,200
3.694118
0.305882
0.008758
0.028662
0.032245
0.272293
0.244427
0.21258
0.21258
0.198248
0.198248
0
0.077967
0.175476
4,200
93
197
45.16129
0.647416
0.058571
0
0
0
0
0.204123
0.055739
0
0
0
0
0
1
0.028986
false
0
0.057971
0
0.101449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c92dbb28d5fa5849ee22ef3b509bd866ce701e9e
1,508
py
Python
scripts/previousScripts-2015-12-25/getVariableInfo.py
mistryrakesh/SMTApproxMC
7c97e10c46c66e52c4e8972259610953c3357695
[ "MIT" ]
null
null
null
scripts/previousScripts-2015-12-25/getVariableInfo.py
mistryrakesh/SMTApproxMC
7c97e10c46c66e52c4e8972259610953c3357695
[ "MIT" ]
null
null
null
scripts/previousScripts-2015-12-25/getVariableInfo.py
mistryrakesh/SMTApproxMC
7c97e10c46c66e52c4e8972259610953c3357695
[ "MIT" ]
null
null
null
#!/home/rakeshmistry/bin/Python-3.4.3/bin/python3 # @author: rakesh mistry - 'inspire' # @date: 2015-08-06 import sys import re import os import math # Function: parseSmt2File def parseSmt2FileVariables(smt2File): compiledVarPattern = re.compile("[ \t]*\(declare-fun") varMap = {} for line in smt2File: ...
25.133333
121
0.611406
163
1,508
5.564417
0.533742
0.019846
0.030871
0
0
0
0
0
0
0
0
0.025847
0.255968
1,508
59
122
25.559322
0.782531
0.125332
0
0
0
0
0.081555
0
0
0
0
0
0
1
0.054054
false
0
0.108108
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c92faeda80f7623d46a23810d5c128754efcada2
9,880
py
Python
simplified_scrapy/core/spider.py
yiyedata/simplified-scrapy
ccfdc686c53b2da3dac733892d4f184f6293f002
[ "Apache-2.0" ]
7
2019-08-11T10:31:03.000Z
2021-03-08T10:07:52.000Z
simplified_scrapy/core/spider.py
yiyedata/simplified-scrapy
ccfdc686c53b2da3dac733892d4f184f6293f002
[ "Apache-2.0" ]
1
2020-12-29T02:30:18.000Z
2021-01-25T02:49:37.000Z
simplified_scrapy/core/spider.py
yiyedata/simplified-scrapy
ccfdc686c53b2da3dac733892d4f184f6293f002
[ "Apache-2.0" ]
4
2019-10-22T02:14:35.000Z
2021-05-13T07:01:56.000Z
#!/usr/bin/python #coding=utf-8 import json, re, logging, time, io, os import sys from simplified_scrapy.core.config_helper import Configs from simplified_scrapy.core.sqlite_cookiestore import SqliteCookieStore from simplified_scrapy.core.request_helper import requestPost, requestGet, getResponseStr, extractHtml from s...
34.666667
102
0.542611
1,075
9,880
4.901395
0.227907
0.027899
0.025052
0.03644
0.171949
0.112355
0.079712
0.037199
0.015563
0
0
0.00593
0.351417
9,880
284
103
34.788732
0.816323
0.004251
0
0.160643
0
0.004016
0.050539
0.005288
0
0
0
0
0
1
0.108434
false
0
0.040161
0.012048
0.353414
0.02008
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c92fe0a2d25d872fa12d88c6134dd6759ab24310
1,457
py
Python
Bugscan_exploits-master/exp_list/exp๏ผ2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp๏ผ2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp๏ผ2469.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/evn python #--coding:utf-8--*-- #Name:ๅคฉ็ฟ็”ตๅญๅ›พไนฆ็ฎก็†็ณป็ปŸ็ณป็ปŸ10ๅค„ๆณจๅ…ฅๆ‰“ๅŒ… ้ฟๅ…้‡ๅค #Refer:http://www.wooyun.org/bugs/wooyun-2015-0120852/ #Author:xq17 def assign(service,arg): if service=="tianrui_lib": return True,arg def audit(arg): urls = [ arg + 'gl_tj_0.asp?id=1', arg + '...
41.628571
154
0.587509
218
1,457
3.798165
0.454128
0.038647
0.036232
0.043478
0.490338
0.463768
0.427536
0.427536
0.427536
0.427536
0
0.099291
0.225806
1,457
35
155
41.628571
0.634752
0.091283
0
0.214286
0
0.071429
0.451788
0.262053
0
0
0
0
0
1
0.071429
false
0
0.035714
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
c933cadd6174b03b61565756a1609302c0c6bfc6
6,176
py
Python
moona/lifespan/handlers.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
2
2022-03-26T15:27:31.000Z
2022-03-28T22:00:32.000Z
moona/lifespan/handlers.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
null
null
null
moona/lifespan/handlers.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
null
null
null
from __future__ import annotations from copy import deepcopy from dataclasses import dataclass from typing import Callable, TypeVar from pymon import Future, Pipe, cmap, creducel, hof_2, this_async from pymon.core import returns_future from moona.lifespan import LifespanContext LifespanFunc = Callable[[LifespanCont...
25.841004
86
0.629858
614
6,176
6.21987
0.200326
0.064677
0.084839
0.083792
0.462425
0.350092
0.321288
0.305316
0.258968
0.188793
0
0.005095
0.269106
6,176
238
87
25.94958
0.840939
0.246438
0
0.284483
0
0
0.002505
0
0
0
0
0
0
1
0.163793
false
0
0.060345
0.043103
0.465517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9340f2d3c1db26d4655357d65aa1d342c92a30f
4,246
py
Python
bot/cogs/birthday/birthday.py
Qtopia-Team/luci
9b7f1966050910d50f04cbd9733d1c77ffbb8cba
[ "MIT" ]
5
2021-04-27T10:50:54.000Z
2021-08-02T09:11:56.000Z
bot/cogs/birthday/birthday.py
Qtopia-Team/luci
9b7f1966050910d50f04cbd9733d1c77ffbb8cba
[ "MIT" ]
2
2021-06-17T14:53:13.000Z
2021-06-19T02:14:36.000Z
bot/cogs/birthday/birthday.py
luciferchase/luci
91e30520cfc60177b9916d3f3d41678f590ecdfc
[ "MIT" ]
4
2021-06-11T12:02:42.000Z
2021-06-30T16:56:46.000Z
import discord from discord.ext import commands import json import os import psycopg2 import pytz class Birthday(commands.Cog): """Never forget birthday of your friends""" def __init__(self): # Set up database DATABASE_URL = os.environ["DATABASE_URL"] self.dbcon = psycopg2.connect(D...
35.090909
105
0.544277
539
4,246
4.218924
0.339518
0.031662
0.047493
0.022427
0.14248
0.128848
0.128848
0.096306
0.082674
0.043975
0
0.023558
0.330193
4,246
121
106
35.090909
0.775668
0.02049
0
0.177778
0
0.011111
0.230417
0.007121
0
0
0.002035
0
0
1
0.011111
false
0.022222
0.066667
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
c9359b5500958801527c3395149655f6f66f2d7a
1,620
py
Python
ingestion/producer1.py
aspk/ratsadtarget
e93cd3f71000ec409e79e6e0c873578f0e8fa8b3
[ "Apache-2.0" ]
1
2020-03-03T18:46:15.000Z
2020-03-03T18:46:15.000Z
ingestion/producer1.py
Keyology/ratsadtarget
e93cd3f71000ec409e79e6e0c873578f0e8fa8b3
[ "Apache-2.0" ]
null
null
null
ingestion/producer1.py
Keyology/ratsadtarget
e93cd3f71000ec409e79e6e0c873578f0e8fa8b3
[ "Apache-2.0" ]
1
2020-03-03T18:46:18.000Z
2020-03-03T18:46:18.000Z
# producer to stream data into kafka from boto.s3.connection import S3Connection import datetime import json import bz2 from kafka import KafkaProducer from kafka.errors import KafkaError import time import pytz conn = S3Connection() key = conn.get_bucket('aspk-reddit-posts').get_key('comments/RC_2017-11.bz2') produc...
33.061224
105
0.608642
193
1,620
5.025907
0.528497
0.079381
0.020619
0
0
0
0
0
0
0
0
0.040235
0.26358
1,620
48
106
33.75
0.772842
0.057407
0
0
0
0
0.158344
0.015112
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9380c3f618a01051fb6b644e3bcd12fce9edfdc
7,931
py
Python
tests/test_data/test_data_core.py
shaoeric/hyperparameter_hunter
3709d5e97dd23efa0df1b79982ae029789e1af57
[ "MIT" ]
688
2018-06-01T23:43:28.000Z
2022-03-23T06:37:20.000Z
tests/test_data/test_data_core.py
shaoeric/hyperparameter_hunter
3709d5e97dd23efa0df1b79982ae029789e1af57
[ "MIT" ]
188
2018-07-09T23:22:31.000Z
2021-04-01T07:43:46.000Z
tests/test_data/test_data_core.py
shaoeric/hyperparameter_hunter
3709d5e97dd23efa0df1b79982ae029789e1af57
[ "MIT" ]
100
2018-08-28T03:30:47.000Z
2022-01-25T04:37:11.000Z
################################################## # Import Own Assets ################################################## from hyperparameter_hunter.data.data_core import BaseDataChunk, BaseDataset, NullDataChunk ################################################## # Import Miscellaneous Assets #########################...
40.258883
102
0.667381
1,089
7,931
4.490358
0.129477
0.128834
0.094888
0.0409
0.742945
0.698978
0.653783
0.615542
0.539468
0.447853
0
0.018766
0.133274
7,931
196
103
40.464286
0.69261
0.189888
0
0.317073
0
0
0.120014
0.050295
0
0
0
0
0.089431
1
0.130081
false
0
0.03252
0.01626
0.203252
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c93c9aaedb099246f931a93b0f3660c7f68b5819
2,481
py
Python
src/models/zeroshot.py
mmatena/wise-ft
2630c366d252ad32db82ea886f7ab6a752142792
[ "MIT" ]
79
2021-10-01T22:29:51.000Z
2022-03-30T04:19:58.000Z
src/models/zeroshot.py
mmatena/wise-ft
2630c366d252ad32db82ea886f7ab6a752142792
[ "MIT" ]
2
2021-11-18T19:50:59.000Z
2022-01-08T00:57:24.000Z
src/models/zeroshot.py
mmatena/wise-ft
2630c366d252ad32db82ea886f7ab6a752142792
[ "MIT" ]
10
2021-10-14T18:29:59.000Z
2022-03-27T12:40:18.000Z
import os import torch from tqdm import tqdm import numpy as np import clip.clip as clip import src.templates as templates import src.datasets as datasets from src.args import parse_arguments from src.models.modeling import ClassificationHead, ImageEncoder, ImageClassifier from src.models.eval import evaluate de...
30.62963
94
0.694478
292
2,481
5.715753
0.325342
0.116836
0.02157
0.029958
0.053925
0.053925
0.053925
0
0
0
0
0.003634
0.2237
2,481
81
95
30.62963
0.862928
0.012898
0
0
0
0
0.017981
0
0
0
0
0
0.033333
1
0.033333
false
0
0.166667
0
0.216667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c93cab934e2e3f25cd7169e11400beb6e6d43570
425
py
Python
app/main/__init__.py
csmcallister/beular
219bcd552c1303eb0557f3ef56d44355a932399e
[ "CNRI-Python" ]
null
null
null
app/main/__init__.py
csmcallister/beular
219bcd552c1303eb0557f3ef56d44355a932399e
[ "CNRI-Python" ]
null
null
null
app/main/__init__.py
csmcallister/beular
219bcd552c1303eb0557f3ef56d44355a932399e
[ "CNRI-Python" ]
null
null
null
from flask import Blueprint bp = Blueprint('main', __name__) @bp.after_app_request def after_request(response): """Cache Bust """ cache_cont = "no-cache, no-store, must-revalidate, public, max-age=0" response.headers["Cache-Control"] = cache_cont response.headers["Expires"] = 0 re...
25
74
0.665882
54
425
5.074074
0.574074
0.164234
0.116788
0
0
0
0
0
0
0
0
0.014837
0.207059
425
17
75
25
0.79822
0.063529
0
0
0
0
0.244032
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9418c993a05d0182f414df4de245fd5f5288aa8
1,470
py
Python
setup.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
setup.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
setup.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
#! /usr/bin/env python -*- coding: utf-8 -*- """ Name: setup.py Desscription: Install the maclib package. Version: 1 - Inital release Author: J.MacGrillen <macgrillen@gmail.com> Copyright: Copyright (c) John MacGrillen. All rights reserved. """ from setuptool...
25.344828
71
0.593197
144
1,470
5.895833
0.652778
0.053004
0.040047
0
0
0
0
0
0
0
0
0.008547
0.283673
1,470
57
72
25.789474
0.797721
0.202041
0
0
0
0
0.334234
0
0
0
0
0
0
1
0.029412
false
0
0.029412
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c943169325309fd0984d9e08fbc50df17f771916
2,159
py
Python
etl/vector/process_all.py
nismod/oi-risk-vis
a5c7460a8060a797dc844be95d5c23689f42cd17
[ "MIT" ]
2
2020-09-29T15:52:48.000Z
2021-03-31T02:58:53.000Z
etl/vector/process_all.py
nismod/oi-risk-vis
a5c7460a8060a797dc844be95d5c23689f42cd17
[ "MIT" ]
41
2021-05-12T17:12:14.000Z
2022-03-17T10:49:20.000Z
etl/vector/process_all.py
nismod/infra-risk-vis
1e5c28cced578d8bd9c78699e9038ecd66f47cf7
[ "MIT" ]
null
null
null
#!/bin/env python3 from argparse import ArgumentParser import csv import os from pathlib import Path import subprocess import sys this_directory = Path(__file__).parent.resolve() vector_script_path = this_directory / 'prepare_vector.sh' def run_single_processing(in_file_path: Path, out_file_path: Path, layer_name: ...
41.519231
156
0.742937
314
2,159
4.828025
0.305732
0.073879
0.058047
0.039578
0.108839
0.073219
0
0
0
0
0
0.000539
0.13988
2,159
51
157
42.333333
0.815832
0.007874
0
0
0
0.026316
0.279776
0.022419
0
0
0
0
0.157895
1
0.052632
false
0
0.157895
0
0.210526
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c944a392c3c65b876eac48378aa9aaaa59c4cea9
1,688
py
Python
django/week9/main/models.py
yrtby/Alotech-Fullstack-Bootcamp-Patika
e2fd775e2540b8d9698dcb7dc38f84a6d7912e8d
[ "MIT" ]
1
2021-11-05T09:45:25.000Z
2021-11-05T09:45:25.000Z
django/week9/main/models.py
yrtby/Alotech-Fullstack-Bootcamp-Patika
e2fd775e2540b8d9698dcb7dc38f84a6d7912e8d
[ "MIT" ]
null
null
null
django/week9/main/models.py
yrtby/Alotech-Fullstack-Bootcamp-Patika
e2fd775e2540b8d9698dcb7dc38f84a6d7912e8d
[ "MIT" ]
3
2021-11-07T07:16:30.000Z
2021-12-07T20:22:59.000Z
from django.db import models from django.contrib.auth.models import User from django.core.validators import MinLengthValidator # Create your models here. class Post(models.Model): image = models.ImageField(upload_to='uploads/') content = models.TextField(max_length=200, validators=[MinLengthValidator(10)]) ...
35.914894
83
0.708531
217
1,688
5.304147
0.271889
0.046916
0.060817
0.091225
0.653345
0.615117
0.516073
0.516073
0.516073
0.404865
0
0.007174
0.174171
1,688
46
84
36.695652
0.818508
0.014218
0
0.514286
0
0
0.126955
0.066185
0
0
0
0
0
1
0.142857
false
0
0.085714
0.085714
0.828571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9463207e60b37b4cf9f338b3635a5669f81cf71
286
py
Python
codewars/6kyu/dinamuh/CountingDuplicates/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
null
null
null
codewars/6kyu/dinamuh/CountingDuplicates/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/6kyu/dinamuh/CountingDuplicates/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
def duplicate_count(text): x = set() y = set() for char in text: char = char.lower() if char in x: y.add(char) x.add(char) return len(y) def duplicate_count2(s): return len([c for c in set(s.lower()) if s.lower().count(c) > 1])
20.428571
69
0.527972
47
286
3.170213
0.404255
0.161074
0
0
0
0
0
0
0
0
0
0.010363
0.325175
286
13
70
22
0.761658
0
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0.090909
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
c947e59db3be68e0dcce4600b6cfeb33b848886c
375
py
Python
tests/test_dir_dataset.py
gimlidc/igre
bf3425e838cca3d1fa8254a2550ecb44774ee0ef
[ "MIT" ]
1
2021-09-24T09:12:06.000Z
2021-09-24T09:12:06.000Z
tests/test_dir_dataset.py
gimlidc/igre
bf3425e838cca3d1fa8254a2550ecb44774ee0ef
[ "MIT" ]
null
null
null
tests/test_dir_dataset.py
gimlidc/igre
bf3425e838cca3d1fa8254a2550ecb44774ee0ef
[ "MIT" ]
null
null
null
import stable.modalities.dir_dataset as dataset import os.path def test_load_all_images(): srcdir = os.path.join("tests", "assets") data, metadata = dataset.load_all_images(srcdir) assert metadata["resolutions"] == [(125, 140)] assert data[0].shape[2] == 2 assert metadata["filenames"][0] == ["mari...
34.090909
99
0.706667
51
375
5.039216
0.627451
0.046693
0.101167
0.14786
0
0
0
0
0
0
0
0.03096
0.138667
375
10
100
37.5
0.764706
0
0
0
0
0
0.221333
0.138667
0
0
0
0
0.375
1
0.125
false
0
0.25
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
c949f74729063705c3b6e636bb65a45813ce66bb
1,118
py
Python
sample/main.py
qjw/flasgger
d43644da1fea6af596ff0e2f11517b578377850f
[ "MIT" ]
5
2018-03-07T03:54:36.000Z
2022-01-01T04:43:48.000Z
sample/main.py
qjw/flasgger
d43644da1fea6af596ff0e2f11517b578377850f
[ "MIT" ]
null
null
null
sample/main.py
qjw/flasgger
d43644da1fea6af596ff0e2f11517b578377850f
[ "MIT" ]
2
2021-11-11T08:48:39.000Z
2022-01-01T04:43:49.000Z
import logging import jsonschema from flask import Flask, jsonify from flask import make_response from flasgger import Swagger from sample.config import Config def init_logging(app): handler = logging.StreamHandler() handler.setLevel(logging.INFO) handler.setFormatter(logging.Formatter( '%(ascti...
25.409091
77
0.675313
135
1,118
5.422222
0.459259
0.061475
0.077869
0.068306
0
0
0
0
0
0
0
0.013575
0.209302
1,118
44
78
25.409091
0.81448
0
0
0
0
0.032258
0.100983
0.022341
0
0
0
0
0
1
0.064516
false
0
0.225806
0.032258
0.322581
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c94abc02ec26c5e120241965ee1760edb37aa362
909
py
Python
cuticle_analysis/models/e2e.py
ngngardner/cuticle_analysis
7ef119d9ee407df0faea63705dcea76d9f42614b
[ "MIT" ]
null
null
null
cuticle_analysis/models/e2e.py
ngngardner/cuticle_analysis
7ef119d9ee407df0faea63705dcea76d9f42614b
[ "MIT" ]
4
2021-07-02T17:49:44.000Z
2021-09-27T01:06:41.000Z
cuticle_analysis/models/e2e.py
ngngardner/cuticle_analysis
7ef119d9ee407df0faea63705dcea76d9f42614b
[ "MIT" ]
null
null
null
import numpy as np from .cnn import CNN from .kviews import KViews from .. import const class EndToEnd(): def __init__( self, bg_model: CNN, rs_model: KViews ) -> None: self.name = 'EndToEnd' self.bg_model = bg_model self.rs_model = rs_model def metadata(...
24.567568
66
0.567657
124
909
3.991935
0.379032
0.084848
0.088889
0
0
0
0
0
0
0
0
0.014587
0.321232
909
36
67
25.25
0.787682
0.085809
0
0
0
0
0.01816
0
0
0
0
0
0
1
0.125
false
0
0.166667
0.041667
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c950e89a11e706b3a1a0ba3575143820351f7247
3,337
py
Python
upandas_test.py
kokes/upandas
f2150e5a74c815b27fd08fc841da01c3b455dadc
[ "MIT" ]
null
null
null
upandas_test.py
kokes/upandas
f2150e5a74c815b27fd08fc841da01c3b455dadc
[ "MIT" ]
null
null
null
upandas_test.py
kokes/upandas
f2150e5a74c815b27fd08fc841da01c3b455dadc
[ "MIT" ]
null
null
null
import sys, os import upandas as upd # Run a single Python script # For many simple, single file projects, you may find it inconvenient # to write a complete Dockerfile. In such cases, you can run a Python # script by using the Python Docker image directly: #ย versions to consider: 3 (600+ MB), slim (150 MB) alpine (9...
29.530973
132
0.574768
462
3,337
4.084416
0.361472
0.079491
0.026497
0.020668
0.189719
0.18336
0.18336
0.165342
0.165342
0.165342
0
0.024759
0.285886
3,337
112
133
29.794643
0.7671
0.264309
0
0.231884
0
0.014493
0.107598
0.009446
0
0
0
0.008929
0.144928
1
0.072464
false
0.028986
0.072464
0
0.202899
0.057971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c953f88756774d3e9d070501efa3054134aaa4e2
6,555
py
Python
prettyqt/widgets/lineedit.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/widgets/lineedit.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/widgets/lineedit.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from __future__ import annotations from typing import Literal from prettyqt import constants, core, gui, widgets from prettyqt.qt import QtCore, QtWidgets from prettyqt.utils import InvalidParamError, bidict ECHO_MODE = bidict( normal=QtWidgets.QLineEdit.EchoMode.Normal, no_echo=QtWidgets.QLineEdit.EchoMode...
31.066351
89
0.653547
725
6,555
5.673103
0.242759
0.031121
0.054705
0.023098
0.026258
0
0
0
0
0
0
0.000599
0.236156
6,555
210
90
31.214286
0.820851
0.076888
0
0.014599
0
0
0.05046
0.008012
0
0
0
0
0
1
0.189781
false
0.021898
0.036496
0.043796
0.350365
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c95465582eabaa7004deb1d71c383aba26908941
1,086
py
Python
nis_visualizeer/ukf-nis-vis.py
vikram216/unscented-kalman-filter
1619fe365c73f198b39fa1de70fd5e203f8715a0
[ "MIT" ]
null
null
null
nis_visualizeer/ukf-nis-vis.py
vikram216/unscented-kalman-filter
1619fe365c73f198b39fa1de70fd5e203f8715a0
[ "MIT" ]
null
null
null
nis_visualizeer/ukf-nis-vis.py
vikram216/unscented-kalman-filter
1619fe365c73f198b39fa1de70fd5e203f8715a0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt """ A chi square (X2) statistic is used to investigate whether distributions of categorical variables differ from one another. Here we consider 3 degrees of freedom for our system. Plotted against 95% line""" lidar_nis = [] with open('NISvals_laser.txt') as f: for line in f: ...
24.681818
78
0.721915
181
1,086
4.248619
0.475138
0.083225
0.028609
0.046814
0.291287
0.291287
0.241873
0.119636
0.119636
0
0
0.014161
0.154696
1,086
43
79
25.255814
0.823529
0.133518
0
0.37037
0
0
0.221918
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c95546315e55dfb705f35c46c08aaa6f9bae96a5
695
py
Python
benchmark/OfflineRL/offlinerl/config/algo/crr_config.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
50
2021-02-07T08:10:28.000Z
2022-03-25T09:10:26.000Z
benchmark/OfflineRL/offlinerl/config/algo/crr_config.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
7
2021-07-29T14:58:31.000Z
2022-02-01T08:02:54.000Z
benchmark/OfflineRL/offlinerl/config/algo/crr_config.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
4
2021-04-01T16:30:15.000Z
2022-03-31T17:38:05.000Z
import torch from offlinerl.utils.exp import select_free_cuda task = "Hopper-v3" task_data_type = "low" task_train_num = 99 seed = 42 device = 'cuda'+":"+str(select_free_cuda()) if torch.cuda.is_available() else 'cpu' obs_shape = None act_shape = None max_action = None hidden_features = 256 hidden_layers = 2 atoms ...
16.547619
83
0.680576
106
695
4.216981
0.660377
0.044743
0.06264
0
0
0
0
0
0
0
0
0.066087
0.172662
695
41
84
16.95122
0.711304
0.011511
0
0
0
0
0.132847
0
0.033333
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9555f153510ab57941a2d63dc997b5c2a9d5575
8,325
py
Python
cykel/models/cykel_log_entry.py
mohnbroetchen2/cykel_jenarad
6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4
[ "MIT" ]
null
null
null
cykel/models/cykel_log_entry.py
mohnbroetchen2/cykel_jenarad
6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4
[ "MIT" ]
null
null
null
cykel/models/cykel_log_entry.py
mohnbroetchen2/cykel_jenarad
6ed9fa45d8b98e1021bc41a57e1250ac6f0cfcc4
[ "MIT" ]
null
null
null
from django.contrib.admin.options import get_content_type_for_model from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.urls import reverse from django.u...
37.669683
87
0.538498
862
8,325
5.011601
0.194896
0.046296
0.04537
0.025926
0.338194
0.302083
0.28588
0.223843
0.165278
0.13287
0
0.00055
0.344505
8,325
220
88
37.840909
0.791094
0.004324
0
0.227979
0
0
0.247013
0.098347
0
0
0
0
0
1
0.025907
false
0
0.051813
0.005181
0.160622
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9565831d1ae75fe2b15d03a39a78761d5e269d5
7,991
py
Python
mlx/od/archive/ssd/test_utils.py
lewfish/mlx
027decf72bf9d96de3b4de13dcac7b352b07fd63
[ "Apache-2.0" ]
null
null
null
mlx/od/archive/ssd/test_utils.py
lewfish/mlx
027decf72bf9d96de3b4de13dcac7b352b07fd63
[ "Apache-2.0" ]
null
null
null
mlx/od/archive/ssd/test_utils.py
lewfish/mlx
027decf72bf9d96de3b4de13dcac7b352b07fd63
[ "Apache-2.0" ]
null
null
null
import unittest import torch from torch.nn.functional import binary_cross_entropy as bce, l1_loss from mlx.od.ssd.utils import ( ObjectDetectionGrid, BoxList, compute_intersection, compute_iou, F1) class TestIOU(unittest.TestCase): def test_compute_intersection(self): a = torch.tensor([[0, 0, 2, 2], ...
36.322727
79
0.511325
1,142
7,991
3.452715
0.119089
0.026883
0.091301
0.023332
0.611463
0.552118
0.501648
0.46665
0.411362
0.33477
0
0.084946
0.320861
7,991
220
80
36.322727
0.641607
0.040045
0
0.441341
0
0
0.005742
0
0
0
0
0
0.094972
1
0.072626
false
0
0.022346
0
0.117318
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c956809dc40104300810383514543a84d7e16eb4
3,284
py
Python
src/utilsmodule/main.py
jke94/WilliamHill-WebScraping
d570ff7ba8a5c35d7c852327910d39b715ce5125
[ "MIT" ]
null
null
null
src/utilsmodule/main.py
jke94/WilliamHill-WebScraping
d570ff7ba8a5c35d7c852327910d39b715ce5125
[ "MIT" ]
1
2020-10-13T15:44:40.000Z
2020-10-13T15:44:40.000Z
src/utilsmodule/main.py
jke94/WilliamHill-WebScraping
d570ff7ba8a5c35d7c852327910d39b715ce5125
[ "MIT" ]
null
null
null
''' AUTOR: Javier Carracedo Date: 08/10/2020 Auxiliar class to test methods from WilliamHillURLs.py ''' import WilliamHillURLs if __name__ == "__main__": myVariable = WilliamHillURLs.WilliamHillURLs() # Print all matches played actually. for item in myVariable.GetAllMatchsPlayedActually(m...
49.014925
109
0.670524
511
3,284
4.264188
0.248532
0.023405
0.039009
0.04681
0.530978
0.505278
0.404773
0.404773
0.404773
0.061496
0
0.130816
0.201583
3,284
66
110
49.757576
0.698703
0.052071
0
0.285714
0
0
0.023669
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9570eba69366671540e993ccc63b21a8b23a785
3,185
py
Python
mys/cli/subparsers/install.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/install.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/install.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
import glob import os import shutil import sys import tarfile from tempfile import TemporaryDirectory from ..utils import ERROR from ..utils import Spinner from ..utils import add_jobs_argument from ..utils import add_no_ccache_argument from ..utils import add_verbose_argument from ..utils import box_print from ..util...
28.4375
85
0.674725
405
3,185
5.11358
0.293827
0.043457
0.072429
0.026074
0.14872
0.084017
0.051183
0.051183
0.051183
0.051183
0
0.000802
0.216954
3,185
111
86
28.693694
0.829591
0
0
0.047059
0
0
0.145997
0
0
0
0
0
0
1
0.105882
false
0
0.188235
0
0.305882
0.023529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c957b9e1d84b2cf858f2f0ed59b9eda407c2dff9
1,011
py
Python
app/api/v2/models/sale.py
kwanj-k/storemanager-v2
89e9573543e32de2e8503dc1440b4ad907bb10b5
[ "MIT" ]
1
2020-02-29T20:14:32.000Z
2020-02-29T20:14:32.000Z
app/api/v2/models/sale.py
kwanj-k/storemanager-v2
89e9573543e32de2e8503dc1440b4ad907bb10b5
[ "MIT" ]
5
2018-10-24T17:28:48.000Z
2019-10-22T11:09:19.000Z
app/api/v2/models/sale.py
kwanj-k/storemanager-v2
89e9573543e32de2e8503dc1440b4ad907bb10b5
[ "MIT" ]
null
null
null
""" A model class for Sale """ # local imports from app.api.common.utils import dt from app.api.v2.db_config import conn from app.api.v2.models.cart import Cart # cursor to perform database operations cur = conn.cursor() class Sale(Cart): """ Sale object which inherites some of its attributes from cart ...
25.275
106
0.578635
129
1,011
4.364341
0.434109
0.062167
0.021314
0.090586
0.131439
0.120782
0.120782
0
0
0
0
0.002821
0.298714
1,011
39
107
25.923077
0.791255
0.153314
0
0
0
0
0.197775
0.103832
0
0
0
0
0
1
0.095238
false
0
0.142857
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
c9582e0280978de265a7060549f58e588eceb72b
3,306
py
Python
src/dembones/collector.py
TransactCharlie/dembones
b5540a89d4c6d535b589a1a2b06697569879bc05
[ "MIT" ]
null
null
null
src/dembones/collector.py
TransactCharlie/dembones
b5540a89d4c6d535b589a1a2b06697569879bc05
[ "MIT" ]
null
null
null
src/dembones/collector.py
TransactCharlie/dembones
b5540a89d4c6d535b589a1a2b06697569879bc05
[ "MIT" ]
null
null
null
import aiohttp from bs4 import BeautifulSoup import asyncio from dembones.webpage import WebPage import dembones.urltools as ut import logging log = logging.getLogger(__name__) class Collector: url_hash = {} def __init__(self, max_concurrent_fetches=3, max_depth=3, fetch_timeout=5, target_...
38.894118
95
0.629462
445
3,306
4.550562
0.382022
0.034568
0.032593
0.019259
0.02963
0.02963
0
0
0
0
0
0.002583
0.297338
3,306
84
96
39.357143
0.869135
0.209316
0
0
0
0
0.036416
0
0
0
0
0
0
1
0.038462
false
0
0.115385
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c959a09cafe37155453fcdb077c647271d246317
710
py
Python
translation/eval_args.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
10
2019-01-19T08:15:05.000Z
2021-12-02T08:54:50.000Z
translation/eval_args.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
null
null
null
translation/eval_args.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
2
2019-01-25T21:19:49.000Z
2019-03-21T11:38:13.000Z
import argparse import train_args def get_arg_parser() -> argparse.ArgumentParser: ''' A set of parameters for evaluation ''' parser = train_args.get_arg_parser() parser.add_argument('--load_path', type=str, help='the path of the model to test') parser.add_argument('--eval_train', action='store...
50.714286
126
0.723944
103
710
4.805825
0.466019
0.090909
0.171717
0.127273
0.256566
0.113131
0.113131
0
0
0
0
0
0.147887
710
14
127
50.714286
0.818182
0.047887
0
0
0
0
0.394856
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c959fbbb426057adb9170ca9df4b29dd550126f4
43,792
py
Python
src/fidelity_estimation_pauli_sampling.py
akshayseshadri/minimax-fidelity-estimation
07ff539dc5ea8280bc4f33444da3d6a90c606833
[ "MIT" ]
1
2021-12-16T14:23:46.000Z
2021-12-16T14:23:46.000Z
src/fidelity_estimation_pauli_sampling.py
akshayseshadri/minimax-fidelity-estimation
07ff539dc5ea8280bc4f33444da3d6a90c606833
[ "MIT" ]
null
null
null
src/fidelity_estimation_pauli_sampling.py
akshayseshadri/minimax-fidelity-estimation
07ff539dc5ea8280bc4f33444da3d6a90c606833
[ "MIT" ]
null
null
null
""" Creates a fidelity estimator for any pure state, using randomized Pauli measurement strategy. Author: Akshay Seshadri """ import warnings import numpy as np import scipy as sp from scipy import optimize import project_root # noqa from src.optimization.proximal_gradient import minimize_proximal_gradi...
59.258457
226
0.643999
6,613
43,792
4.10313
0.109179
0.016805
0.007297
0.00796
0.33493
0.287131
0.24637
0.240142
0.221678
0.200855
0
0.022914
0.264546
43,792
738
227
59.338753
0.819573
0.547794
0
0.141667
0
0.020833
0.077275
0.00117
0
0
0
0
0
1
0.05
false
0
0.041667
0
0.145833
0.058333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c95c3a9b1e12620c6fdf7ce0fba7e46782237c62
2,054
py
Python
until.py
zlinao/COMP5212-project1
fa6cb10d238de187fbb891499916c6b44a0cd7b7
[ "Apache-2.0" ]
3
2018-09-19T11:46:53.000Z
2018-10-09T04:48:28.000Z
until.py
zlinao/COMP5212-project1
fa6cb10d238de187fbb891499916c6b44a0cd7b7
[ "Apache-2.0" ]
null
null
null
until.py
zlinao/COMP5212-project1
fa6cb10d238de187fbb891499916c6b44a0cd7b7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 28 10:29:52 2018 @author: lin """ import numpy as np import matplotlib.pyplot as plt def accuracy(x,y,model): a = model.predict(x,y) a[a>=0.5]=1 a[a<0.5]=0 return np.sum(a==y)/len(a) data1 = np.load("datasets/breast-cancer.n...
25.358025
79
0.601266
313
2,054
3.840256
0.319489
0.0599
0.058236
0.006656
0.227953
0.227953
0.184692
0.168885
0.123128
0
0
0.034069
0.228335
2,054
80
80
25.675
0.72429
0.055988
0
0.109091
0
0
0.152411
0.024365
0
0
0
0
0
1
0.090909
false
0
0.036364
0.018182
0.2
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c960f97df84624c96f4c85fc91f46edd0a467d9e
11,996
py
Python
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
1
2020-01-30T17:59:50.000Z
2020-01-30T17:59:50.000Z
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
null
null
null
dumpfreeze/main.py
rkcf/dumpfreeze
e9b18e4bc4574ff3b647a075cecd72977dc8f59a
[ "MIT" ]
null
null
null
# dumpfreeze # Create MySQL dumps and backup to Amazon Glacier import os import logging import datetime import click import uuid import sqlalchemy as sa from dumpfreeze import backup as bak from dumpfreeze import aws from dumpfreeze import inventorydb from dumpfreeze import __version__ logger = logging.getLogger(__na...
29.766749
79
0.614288
1,449
11,996
4.906832
0.135266
0.05218
0.031083
0.043038
0.54135
0.501266
0.481013
0.419409
0.407032
0.372855
0
0.002541
0.278343
11,996
402
80
29.840796
0.818759
0.11879
0
0.562278
0
0
0.06948
0.002488
0
0
0
0
0
1
0.046263
false
0.049822
0.035587
0
0.085409
0.007117
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c96260912cab6b5833f970ad06a26821cebe5439
886
py
Python
01-tapsterbot/click-accuracy/makeTestData.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
01-tapsterbot/click-accuracy/makeTestData.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
01-tapsterbot/click-accuracy/makeTestData.py
AppTestBot/AppTestBot
035e93e662753e50d7dcc38d6fd362933186983b
[ "Apache-2.0" ]
null
null
null
import csv FLAGS = None def main(): with open('dataset/test.csv', 'w') as csv_file: writer = csv.writer(csv_file, delimiter=',') #for w in range(-FLAGS.width, FLAGS.width+1i): w = -60 while w <= 60: h = -28 #for h in range(-FLAGS.height, FLAGS.height+1): ...
28.580645
80
0.497743
103
886
4.15534
0.504854
0.03271
0.056075
0.093458
0.135514
0.135514
0
0
0
0
0
0.026738
0.366817
886
30
81
29.533333
0.736185
0.102709
0
0.086957
0
0
0.121212
0
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c96277ac68a88dc09c944967b21d05e1368096d4
3,546
py
Python
CreateBigDataFrame.py
ezsolti/MVA_PWR_data
3e64c5b1bd643d5ba5d6e275b426d601cff7b270
[ "MIT" ]
2
2022-02-04T10:47:37.000Z
2022-03-15T13:03:19.000Z
CreateBigDataFrame.py
ezsolti/MVA_PWR_data
3e64c5b1bd643d5ba5d6e275b426d601cff7b270
[ "MIT" ]
null
null
null
CreateBigDataFrame.py
ezsolti/MVA_PWR_data
3e64c5b1bd643d5ba5d6e275b426d601cff7b270
[ "MIT" ]
1
2022-01-13T15:55:17.000Z
2022-01-13T15:55:17.000Z
""" Script to create dataframe from serpent bumat files including all the nuclides. Zsolt Elter 2019 """ import json import os with open ('nuclides.json') as json_file: nuclidesDict = json.load(json_file) #final name of the file dataFrame='PWR_UOX-MOX_BigDataFrame-SF-GSRC-noReactorType.csv' def readInventory...
35.818182
164
0.620135
544
3,546
3.981618
0.363971
0.00831
0.029548
0.01108
0.141274
0.129271
0.129271
0.10988
0.048938
0.048938
0
0.02197
0.229836
3,546
98
165
36.183673
0.771146
0.335871
0
0.111111
0
0
0.156085
0.085538
0
0
0
0
0
1
0.018519
false
0
0.037037
0
0.074074
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c965792691ce7606e38e36d2ae95ee8c42d4351b
2,953
py
Python
archer_views.py
splunk-soar-connectors/archer
65b9a5e9e250b6407e3aad08b86a483499a6210f
[ "Apache-2.0" ]
null
null
null
archer_views.py
splunk-soar-connectors/archer
65b9a5e9e250b6407e3aad08b86a483499a6210f
[ "Apache-2.0" ]
1
2022-02-08T22:54:54.000Z
2022-02-08T22:54:54.000Z
archer_views.py
splunk-soar-connectors/archer
65b9a5e9e250b6407e3aad08b86a483499a6210f
[ "Apache-2.0" ]
null
null
null
# File: archer_views.py # # Copyright (c) 2016-2022 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.350649
95
0.562817
343
2,953
4.734694
0.346939
0.036946
0.034483
0.042488
0.142241
0.142241
0.142241
0.10899
0.10899
0.10899
0
0.006927
0.315611
2,953
76
96
38.855263
0.796635
0.196072
0
0.192308
0
0
0.12802
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c96886f093360dec7c0ce79819456ac3947c46e0
12,198
py
Python
napari/plugins/exceptions.py
yinawang28/napari
6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/exceptions.py
yinawang28/napari
6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957
[ "BSD-3-Clause" ]
null
null
null
napari/plugins/exceptions.py
yinawang28/napari
6ea95a9fa2f9150a4dbb5ec1286b8ff2020c3957
[ "BSD-3-Clause" ]
null
null
null
import re import sys from collections import defaultdict from types import TracebackType from typing import ( Callable, DefaultDict, Dict, Generator, List, Optional, Tuple, Type, Union, ) # This is a mapping of plugin_name -> PluginError instances # all PluginErrors get added to thi...
33.237057
79
0.565175
1,413
12,198
4.719038
0.251239
0.026995
0.011698
0.005399
0.128374
0.104979
0.080084
0.072286
0.063887
0.063887
0
0.009423
0.312674
12,198
366
80
33.327869
0.785902
0.251599
0
0.205357
0
0
0.175482
0.019296
0
0
0
0
0
1
0.058036
false
0
0.080357
0
0.205357
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9693a49a18c1714e3e73fb34025f16a983d9fca
572
py
Python
examples/federation/account.py
syfun/starlette-graphql
1f57b60a9699bc6a6a2b95d5596ffa93ef13c262
[ "MIT" ]
14
2020-04-03T08:18:21.000Z
2021-11-10T04:39:45.000Z
examples/federation/account.py
syfun/starlette-graphql
1f57b60a9699bc6a6a2b95d5596ffa93ef13c262
[ "MIT" ]
2
2021-08-31T20:25:23.000Z
2021-09-21T14:40:56.000Z
examples/federation/account.py
syfun/starlette-graphql
1f57b60a9699bc6a6a2b95d5596ffa93ef13c262
[ "MIT" ]
1
2020-08-27T17:04:29.000Z
2020-08-27T17:04:29.000Z
import uvicorn from gql import gql, reference_resolver, query from stargql import GraphQL from helper import get_user_by_id, users type_defs = gql(""" type Query { me: User } type User @key(fields: "id") { id: ID! name: String username: String } """) @query('me') def get_me(_, info): r...
16.342857
51
0.687063
79
572
4.683544
0.455696
0.064865
0.048649
0.059459
0
0
0
0
0
0
0
0.010799
0.190559
572
34
52
16.823529
0.788337
0
0
0
0
0
0.241259
0
0
0
0
0
0
1
0.086957
false
0
0.173913
0.086957
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c96af4a490471a665152773f8f3b2a90f985672a
607
py
Python
tests/backtracking/test_path_through_grid.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
tests/backtracking/test_path_through_grid.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
tests/backtracking/test_path_through_grid.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from unittest import TestCase from fundamentals.backtracking.path_through_grid import PathThroughGrid class TestPathThroughGrid(TestCase): def test_no_path(self): grid = [ [0, 1, 0], [1, 0, 1], [0, 0, 1] ] ptg = PathThroughGrid(g...
22.481481
82
0.507414
74
607
4.067568
0.364865
0.046512
0.0299
0.026578
0.215947
0.199336
0.199336
0.199336
0
0
0
0.070352
0.344316
607
27
82
22.481481
0.68593
0.032949
0
0.315789
0
0
0
0
0
0
0
0
0.105263
1
0.105263
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c96b923ab99cdd18285399edd12e8dfeb03b5f78
343
py
Python
main.py
yukraven/vitg
27d3d9b73a23e4ff5ff4c769eb1f26b8f57fee72
[ "MIT" ]
null
null
null
main.py
yukraven/vitg
27d3d9b73a23e4ff5ff4c769eb1f26b8f57fee72
[ "MIT" ]
63
2019-08-25T07:48:54.000Z
2019-10-18T01:52:29.000Z
main.py
yukraven/vitg
27d3d9b73a23e4ff5ff4c769eb1f26b8f57fee72
[ "MIT" ]
null
null
null
import sqlite3 import Sources.Parser conn = sqlite3.connect("Database/vitg.db") cursor = conn.cursor() cursor.execute("SELECT * FROM Locations") results = cursor.fetchall() print(results) conn.close() parser = Sources.Parser.Parser() words = [u"ะปัŽะฑะธั‚ัŒ", u"ะฑะธั‚ัŒ"] for word in words: command = parser.getCommand(wo...
19.055556
42
0.725948
45
343
5.533333
0.6
0.104418
0
0
0
0
0
0
0
0
0
0.006734
0.134111
343
17
43
20.176471
0.83165
0
0
0
0
0
0.142857
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c96d512247f8395a641feee824bc046d0dbdc522
7,018
py
Python
src/gene.score.array.simulator.py
ramachandran-lab/PEGASUS-WINGS
bdd81b58be4c4fb62916e422a854abdcbfbb6fd7
[ "MIT" ]
3
2019-03-31T12:32:25.000Z
2020-01-04T20:57:14.000Z
src/gene.score.array.simulator.py
ramachandran-lab/PEGASUS-WINGS
bdd81b58be4c4fb62916e422a854abdcbfbb6fd7
[ "MIT" ]
null
null
null
src/gene.score.array.simulator.py
ramachandran-lab/PEGASUS-WINGS
bdd81b58be4c4fb62916e422a854abdcbfbb6fd7
[ "MIT" ]
1
2020-10-24T23:48:15.000Z
2020-10-24T23:48:15.000Z
import numpy as np import pandas as pd import sys import string import time import subprocess from collections import Counter import string import random def random_pheno_generator(size=6,chars=string.ascii_lowercase): return ''.join(random.choice(chars) for _ in range(size)) #First argument is the gene score dist...
43.320988
265
0.727273
1,063
7,018
4.650047
0.206021
0.021242
0.016185
0.042484
0.319644
0.251871
0.251871
0.234473
0.195226
0.195226
0
0.014769
0.141351
7,018
161
266
43.590062
0.805509
0.120262
0
0.215385
0
0.007692
0.140399
0.057945
0
0
0
0
0
1
0.076923
false
0
0.069231
0.007692
0.192308
0.007692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c97156d460bdc88e5f228d10d1465d45738af933
8,536
py
Python
other_useful_scripts/join.py
sklasfeld/ChIP_Annotation
9ce9db7a129bfdec91ec23b33d73ff22f37408ad
[ "MIT" ]
1
2020-08-23T23:12:56.000Z
2020-08-23T23:12:56.000Z
other_useful_scripts/join.py
sklasfeld/ChIP_Annotation
9ce9db7a129bfdec91ec23b33d73ff22f37408ad
[ "MIT" ]
null
null
null
other_useful_scripts/join.py
sklasfeld/ChIP_Annotation
9ce9db7a129bfdec91ec23b33d73ff22f37408ad
[ "MIT" ]
1
2020-08-23T23:16:47.000Z
2020-08-23T23:16:47.000Z
#!/usr/bin/env python3 # -*- coding: iso-8859-15 -*- # 2017, Samantha Klasfeld, the Wagner Lab # the Perelman School of Medicine, the University of Pennsylvania # Samantha Klasfeld, 12-21-2017 import argparse import sys import pandas as pd import numpy as np parser = argparse.ArgumentParser(description="this scrip...
42.467662
85
0.72493
1,376
8,536
4.330669
0.172238
0.034737
0.065615
0.022151
0.564189
0.513677
0.454271
0.432119
0.356939
0.34687
0
0.006134
0.140581
8,536
201
86
42.467662
0.806161
0.055764
0
0.204819
0
0
0.162898
0.007952
0
0
0
0
0
1
0
false
0
0.024096
0
0.024096
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c971e430652331e744f0b8b0fc1ac07db5704fb9
884
py
Python
6.py
mattclark-net/aoc21
d4dcd78524a8cb27e1445cb6c39e696e64cc4e7a
[ "MIT" ]
null
null
null
6.py
mattclark-net/aoc21
d4dcd78524a8cb27e1445cb6c39e696e64cc4e7a
[ "MIT" ]
null
null
null
6.py
mattclark-net/aoc21
d4dcd78524a8cb27e1445cb6c39e696e64cc4e7a
[ "MIT" ]
null
null
null
# parse the input with open("6-input.txt") as f: fish = [int(n) for n in f.readline().split(",")] startcounts = dict(zip(range(0, 9), [0 for x in range(9)])) for f in fish: startcounts[f] += 1 def updatedcounts(counts): newcounts = {} newcounts[8] = counts[0] newcounts[7] = counts[8] newcount...
25.257143
59
0.616516
136
884
4.007353
0.308824
0.06422
0.044037
0.084404
0.388991
0.388991
0.278899
0.278899
0.278899
0.278899
0
0.04539
0.202489
884
34
60
26
0.72766
0.016968
0
0.296296
0
0
0.032295
0
0
0
0
0
0
1
0.037037
false
0
0
0
0.074074
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c97337433ecaa8303091ad4ba921fe29802304f0
3,287
py
Python
packages/mccomponents/tests/mccomponents/sample/samplecomponent_SQkernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mccomponents/tests/mccomponents/sample/samplecomponent_SQkernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mccomponents/tests/mccomponents/sample/samplecomponent_SQkernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # standalone = True import os, numpy as np os.environ['MCVINE_MPI_BINDING'] = 'NONE' import unittestX as unittest class TestCase(unittest.TestCase): def test1(self): 'mccomponents.sample.samplecomponent: SQkernel' # The kernel spec is in sampleassemblies/V-sqkernel/V-...
35.728261
98
0.606632
434
3,287
4.532258
0.391705
0.014235
0.010676
0.006101
0.070158
0.050839
0.044738
0.044738
0.044738
0.044738
0
0.041509
0.274414
3,287
91
99
36.120879
0.783229
0.214177
0
0.039216
0
0
0.07648
0.031514
0
0
0
0
0.039216
1
0.019608
false
0.019608
0.215686
0
0.27451
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9743d63b6769b341831d17f36b94f9161097eb4
5,811
py
Python
differannotate/datastructures.py
zyndagj/differannotate
c73d9df5f82f1cf97340235265a368b16da9c89b
[ "BSD-3-Clause" ]
null
null
null
differannotate/datastructures.py
zyndagj/differannotate
c73d9df5f82f1cf97340235265a368b16da9c89b
[ "BSD-3-Clause" ]
null
null
null
differannotate/datastructures.py
zyndagj/differannotate
c73d9df5f82f1cf97340235265a368b16da9c89b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # ############################################################################### # Author: Greg Zynda # Last Modified: 12/11/2019 ############################################################################### # BSD 3-Clause License # # Copyright (c) 2019, Greg Zynda # All rights reserved. # # ...
30.584211
134
0.66202
837
5,811
4.502987
0.293907
0.023879
0.016981
0.028655
0.24675
0.166092
0.150703
0.132661
0.132661
0.132661
0
0.018257
0.170539
5,811
189
135
30.746032
0.763693
0.441404
0
0.232558
0
0
0.004168
0
0
0
0
0
0.023256
1
0.151163
false
0.011628
0.046512
0.023256
0.395349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9743e069ad8fe0a795c53358dc5e0951de0d7c7
2,113
py
Python
examples/regional_constant_preservation/plotCurve.py
schoonovernumerics/FEOTs
d8bf24d0e0c23a9ee65e2be6a75f5dbc83d3e5ad
[ "BSD-3-Clause" ]
null
null
null
examples/regional_constant_preservation/plotCurve.py
schoonovernumerics/FEOTs
d8bf24d0e0c23a9ee65e2be6a75f5dbc83d3e5ad
[ "BSD-3-Clause" ]
13
2017-08-03T22:30:25.000Z
2019-01-23T16:32:28.000Z
examples/regional_constant_preservation/plotCurve.py
schoonovernumerics/FEOTS
d8bf24d0e0c23a9ee65e2be6a75f5dbc83d3e5ad
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 DOC="""plotCurve plotCurve is used to create vertical profiles of different lateral ylabel statistics of FEOTS output. Usage: plotCurve plot <file> [--out=<out>] [--opts=<opts>] [--scalex=<scalex>] [--xlabel=<xlabel>] [--ylabel=<ylabel>] Commands: plot Create a vertical profile p...
26.08642
114
0.644108
284
2,113
4.753521
0.380282
0.035556
0.006667
0.008889
0.140741
0.065185
0
0
0
0
0
0.012507
0.205395
2,113
80
115
26.4125
0.791543
0.030289
0
0
0
0.041667
0.462818
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c974860e7717afdaa174abddb3959a9916ac8f90
6,535
py
Python
statefun-examples/statefun-python-walkthrough-example/walkthrough_pb2.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
1
2020-05-27T03:38:36.000Z
2020-05-27T03:38:36.000Z
statefun-examples/statefun-python-walkthrough-example/walkthrough_pb2.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
null
null
null
statefun-examples/statefun-python-walkthrough-example/walkthrough_pb2.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
null
null
null
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
28.413043
286
0.72303
757
6,535
5.976222
0.253633
0.024757
0.041777
0.028736
0.421972
0.387268
0.387268
0.387268
0.378868
0.31145
0
0.021739
0.1342
6,535
229
287
28.537118
0.777837
0.189135
0
0.613636
0
0.005682
0.142801
0.075313
0
0
0
0
0
1
0
false
0
0.028409
0
0.028409
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c978b614564b15ad98ff9be9b231eda20bb8f13d
6,405
py
Python
python/dsbox/template/template_files/loaded/SRIClassificationTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-05-10T22:19:44.000Z
2020-07-21T07:28:39.000Z
python/dsbox/template/template_files/loaded/SRIClassificationTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
187
2018-04-13T17:19:24.000Z
2020-04-21T00:41:15.000Z
python/dsbox/template/template_files/loaded/SRIClassificationTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-07-10T00:14:07.000Z
2019-07-25T17:59:44.000Z
from dsbox.template.template import DSBoxTemplate from d3m.metadata.problem import TaskKeyword from dsbox.template.template_steps import TemplateSteps from dsbox.schema import SpecializedProblem import typing import numpy as np # type: ignore class SRIClassificationTemplate(DSBoxTemplate): def __init__(self...
48.157895
274
0.444653
416
6,405
6.555288
0.338942
0.061973
0.056106
0.090942
0.387605
0.341768
0.259259
0.239457
0.239457
0.195086
0
0.011844
0.44637
6,405
132
275
48.522727
0.757191
0.070414
0
0.198413
0
0
0.353456
0.160081
0
0
0
0
0
1
0.007937
false
0
0.047619
0
0.063492
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c978cd7b9db932291bd60fddc562ff295cb80fc4
192
py
Python
beecrowd exercises/beecrowd-1019.py
pachecosamuel/Python-Exercises
de542536dd1a2bc0ad27e81824713cda8ad34054
[ "MIT" ]
null
null
null
beecrowd exercises/beecrowd-1019.py
pachecosamuel/Python-Exercises
de542536dd1a2bc0ad27e81824713cda8ad34054
[ "MIT" ]
null
null
null
beecrowd exercises/beecrowd-1019.py
pachecosamuel/Python-Exercises
de542536dd1a2bc0ad27e81824713cda8ad34054
[ "MIT" ]
null
null
null
time = eval(input()) qtdtime = [3600, 60, 1] result = [] for i in qtdtime: qtd = time // i result.append(str(qtd)) time -= qtd * i print(f'{result[0]}:{result[1]}:{result[2]}')
16
45
0.557292
30
192
3.566667
0.6
0.130841
0
0
0
0
0
0
0
0
0
0.066667
0.21875
192
11
46
17.454545
0.646667
0
0
0
0
0
0.183246
0.183246
0
0
0
0
0
1
0
false
0
0
0
0
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
c97a5d77ecd44aba596f1a6d89d78783ed1f6a39
5,458
py
Python
bigorm/database.py
AnthonyPerez/bigorm
67ecdbb1f99cd5c8ec2ca24c7ba5f5dbed7493bb
[ "MIT" ]
null
null
null
bigorm/database.py
AnthonyPerez/bigorm
67ecdbb1f99cd5c8ec2ca24c7ba5f5dbed7493bb
[ "MIT" ]
3
2020-04-06T19:13:58.000Z
2020-05-22T22:21:31.000Z
bigorm/database.py
AnthonyPerez/bigorm
67ecdbb1f99cd5c8ec2ca24c7ba5f5dbed7493bb
[ "MIT" ]
null
null
null
import threading import functools import sqlalchemy from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class DatabaseContextError(RuntimeError): pass """ Once an engine is created is is not destroyed until the program itself exits. Engines are used to produce a new session when...
34.327044
177
0.622206
568
5,458
5.767606
0.357394
0.03663
0.044872
0.025641
0.139194
0.117216
0.09707
0.09707
0.09707
0.09707
0
0.004344
0.283071
5,458
158
178
34.544304
0.832865
0.326676
0
0.164557
0
0
0.06728
0
0
0
0
0
0
1
0.139241
false
0.012658
0.050633
0
0.316456
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c97aeafdeaa32ce81d91fe53e55f4082c9dd290e
444
py
Python
src/rover/project/code/decision.py
juancruzgassoloncan/Udacity-Robo-nanodegree
7621360ce05faf90660989e9d28f56da083246c9
[ "MIT" ]
1
2020-12-28T13:58:34.000Z
2020-12-28T13:58:34.000Z
src/rover/project/code/decision.py
juancruzgassoloncan/Udacity-Robo-nanodegree
7621360ce05faf90660989e9d28f56da083246c9
[ "MIT" ]
null
null
null
src/rover/project/code/decision.py
juancruzgassoloncan/Udacity-Robo-nanodegree
7621360ce05faf90660989e9d28f56da083246c9
[ "MIT" ]
null
null
null
import numpy as np from rover_sates import * from state_machine import * # This is where you can build a decision tree for determining throttle, brake and steer # commands based on the output of the perception_step() function def decision_step(Rover, machine): if Rover.nav_angles is not None: machine.ru...
23.368421
87
0.702703
65
444
4.707692
0.676923
0.084967
0
0
0
0
0
0
0
0
0
0.005952
0.243243
444
18
88
24.666667
0.904762
0.333333
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9801e27d75fc448c57278f4f2febd70cf000239
3,203
py
Python
alfred/views/main_widget.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
5
2016-09-06T10:29:24.000Z
2017-02-22T14:07:48.000Z
alfred/views/main_widget.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
66
2016-09-06T06:40:24.000Z
2022-03-11T23:18:05.000Z
alfred/views/main_widget.py
Sefrwahed/Alfred
0b77ec547fb665ef29fe1a3b7e1c4ad30c31170d
[ "MIT" ]
3
2016-10-06T15:17:38.000Z
2016-12-04T13:25:53.000Z
import json # PyQt imports from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot from PyQt5.QtWidgets import QDialog from PyQt5.QtWebChannel import QWebChannel # Local includes from .ui.widget_ui import Ui_Dialog from alfred import data_rc import alfred.alfred_globals as ag from alfred.modules.api.view_components import ...
37.244186
138
0.67468
391
3,203
5.337596
0.352941
0.042166
0.057499
0.042166
0.324389
0.307619
0.26162
0.26162
0.26162
0.196454
0
0.00348
0.192632
3,203
86
139
37.244186
0.803558
0.022167
0
0.193548
0
0
0.134357
0.060461
0
0
0
0
0
1
0.193548
false
0
0.129032
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c98046d6e476b2db7f4e9b5014b73851b0a58d74
5,573
py
Python
projects/11/jackTokenizer.py
nadavWeisler/Nand2Tetris
59c2e616c45044c15b99aeb8459d39b59e5e07ba
[ "MIT" ]
null
null
null
projects/11/jackTokenizer.py
nadavWeisler/Nand2Tetris
59c2e616c45044c15b99aeb8459d39b59e5e07ba
[ "MIT" ]
null
null
null
projects/11/jackTokenizer.py
nadavWeisler/Nand2Tetris
59c2e616c45044c15b99aeb8459d39b59e5e07ba
[ "MIT" ]
null
null
null
import re from utils import * class JackTokenizer: def __init__(self, file_name): self._file = open(file_name, 'r') self._data = [] self._types = [] self._tokens = [] self._xml = ['<tokens>'] self._tokens_iterator = iter(self._tokens) self._token_types_iter...
33.981707
102
0.466535
554
5,573
4.501805
0.176895
0.048516
0.038492
0.024058
0.074579
0.040096
0.040096
0
0
0
0
0.012689
0.406065
5,573
163
103
34.190184
0.740786
0
0
0.19863
0
0
0.054908
0.013099
0
0
0
0
0
1
0.089041
false
0
0.013699
0.041096
0.232877
0.006849
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c98092ff02eaf3078402f8fe2053638da3880d53
1,115
py
Python
main.py
TimKozak/NearestFilms
991f8b7b1cb9f7f47c6bff818aaae3b91eb80375
[ "MIT" ]
2
2021-02-15T20:38:03.000Z
2021-12-15T12:42:54.000Z
main.py
TimKozak/NearestFilms
991f8b7b1cb9f7f47c6bff818aaae3b91eb80375
[ "MIT" ]
null
null
null
main.py
TimKozak/NearestFilms
991f8b7b1cb9f7f47c6bff818aaae3b91eb80375
[ "MIT" ]
null
null
null
""" Main module of a program. """ import folium from tools import find_coords, user_input def creating_map(): """ Creates HTML page for a given data. """ year, coords = user_input() locations = find_coords(year, coords) mp = folium.Map(location=coords, zoom_start=10) mp.add_child(folium....
27.195122
75
0.552466
127
1,115
4.677165
0.488189
0.060606
0.050505
0.053872
0.10101
0.10101
0
0
0
0
0
0.039113
0.312108
1,115
40
76
27.875
0.735332
0.100448
0
0.08
0
0
0.102041
0
0
0
0
0
0
1
0.04
false
0
0.08
0
0.12
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c98373f93bfe070f74725f6b7462934da5ef570c
1,366
py
Python
ptCrypt/Symmetric/Modes/ECB.py
0awawa0/aCrypt
7c5d07271d524b9e5b03035d63587b69bff5abc7
[ "MIT" ]
null
null
null
ptCrypt/Symmetric/Modes/ECB.py
0awawa0/aCrypt
7c5d07271d524b9e5b03035d63587b69bff5abc7
[ "MIT" ]
25
2021-12-08T07:20:11.000Z
2021-12-10T12:07:05.000Z
ptCrypt/Symmetric/Modes/ECB.py
0awawa0/aCrypt
7c5d07271d524b9e5b03035d63587b69bff5abc7
[ "MIT" ]
null
null
null
from ptCrypt.Symmetric.Modes.Mode import Mode from ptCrypt.Symmetric.BlockCipher import BlockCipher from ptCrypt.Symmetric.Paddings.Padding import Padding class ECB(Mode): """Electronic codebook mode of encryption. The simplest encryption mode. Encrypts every block independently from other blocks. More: ...
35.947368
170
0.666179
163
1,366
5.496933
0.380368
0.055804
0.066964
0.033482
0.138393
0.138393
0.138393
0.138393
0.138393
0.138393
0
0
0.233529
1,366
37
171
36.918919
0.855778
0.15959
0
0.26087
0
0.043478
0.099203
0.023029
0
0
0
0
0
1
0.130435
false
0
0.130435
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c983d81c361719032d41d5bf9ca26fcce754a0f2
1,335
py
Python
src/static-vxlan-agent/test/arp_tracer.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
8
2021-08-25T01:08:09.000Z
2022-01-18T12:44:41.000Z
src/static-vxlan-agent/test/arp_tracer.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
null
null
null
src/static-vxlan-agent/test/arp_tracer.py
jbemmel/srl-evpn-proxy
240b8180ab03ee06a5043e646781860ba32a3530
[ "Apache-2.0" ]
1
2022-03-13T22:36:18.000Z
2022-03-13T22:36:18.000Z
#!/usr/bin/env python3 # Originally python2 # Sample from https://www.collabora.com/news-and-blog/blog/2019/05/14/an-ebpf-overview-part-5-tracing-user-processes/ # Python program with embedded C eBPF program from bcc import BPF, USDT import sys bpf = """ #include <uapi/linux/ptrace.h> BPF_PERF_OUTPUT(events); struc...
31.046512
117
0.702622
209
1,335
4.277512
0.511962
0.044743
0.049217
0.03132
0
0
0
0
0
0
0
0.026455
0.150562
1,335
42
118
31.785714
0.761905
0.151311
0
0.058824
0
0
0.59876
0.179805
0
0
0
0
0
1
0.029412
false
0
0.058824
0
0.117647
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c98644a1740c0b9a2213d68e9dafb7bed9e7032f
3,500
py
Python
src/utils/loaders.py
OE-Heart/span-based-srl
a03b46a5ea4c59e14bea80ea724b0de276df4bc1
[ "MIT" ]
41
2018-10-05T21:48:33.000Z
2022-02-16T10:24:39.000Z
src/utils/loaders.py
OE-Heart/span-based-srl
a03b46a5ea4c59e14bea80ea724b0de276df4bc1
[ "MIT" ]
9
2018-10-21T14:45:01.000Z
2022-02-25T14:25:29.000Z
src/utils/loaders.py
OE-Heart/span-based-srl
a03b46a5ea4c59e14bea80ea724b0de276df4bc1
[ "MIT" ]
9
2018-10-16T07:00:51.000Z
2022-02-17T13:10:47.000Z
import os import gzip import pickle import h5py import numpy as np import theano from utils.misc import get_file_names_in_dir from utils.vocab import UNK class Loader(object): def __init__(self, argv): self.argv = argv def load(self, **kwargs): raise NotImplementedError @staticmethod ...
26.315789
69
0.513714
440
3,500
3.938636
0.206818
0.057126
0.017311
0.028852
0.618581
0.608771
0.562608
0.562608
0.562608
0.548182
0
0.015741
0.382857
3,500
132
70
26.515152
0.786574
0
0
0.596154
0
0
0.005143
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0.009615
0.336538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a309e90ac2f88ea56edc2aaeacb9b7f74fba3681
591
py
Python
system_test_progress_tracking/progress_tracking/urls.py
TobKed/system_test_progress_tracking
633792e7057289b6a23db30c6353241123eaa2e4
[ "MIT" ]
null
null
null
system_test_progress_tracking/progress_tracking/urls.py
TobKed/system_test_progress_tracking
633792e7057289b6a23db30c6353241123eaa2e4
[ "MIT" ]
3
2020-02-11T23:29:05.000Z
2021-06-10T21:03:42.000Z
system_test_progress_tracking/progress_tracking/urls.py
TobKed/system_test_progress_tracking
633792e7057289b6a23db30c6353241123eaa2e4
[ "MIT" ]
2
2019-01-24T20:39:31.000Z
2019-01-29T07:42:27.000Z
from django.urls import path from .views import ( home, MachineDetailView, MachineListView, DryRunDataDetailView, MachineLastDataView, ) urlpatterns = [ path('', MachineListView.as_view(), name='home-view'), path('', MachineListView.as_view(), name='machine-list-view'), path('machine/<...
32.833333
103
0.698816
68
591
5.985294
0.352941
0.07371
0.12285
0.125307
0.240786
0
0
0
0
0
0
0
0.126904
591
17
104
34.764706
0.78876
0
0
0
0
0
0.258883
0.155668
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a30a5b9c466fd79c98aae5b462aff3ba4ea72d40
480
py
Python
main.py
mrroot5/wall-builder
2f0414359080fecdba5312463dd05cd9c11da6c1
[ "MIT" ]
null
null
null
main.py
mrroot5/wall-builder
2f0414359080fecdba5312463dd05cd9c11da6c1
[ "MIT" ]
null
null
null
main.py
mrroot5/wall-builder
2f0414359080fecdba5312463dd05cd9c11da6c1
[ "MIT" ]
null
null
null
""" Python version 3.6.7 OS Linux Ubuntu 18.04.1 LTS Created: 30/11/2018 17:12 Finished: 30/11/2018 19: Author: Adrian Garrido Garcia """ import sys from wall.builder import build_a_wall if __name__ == '__main__': try: build_a_wall(sys.argv[1], sys.argv[2]) except IndexError: rows = input("Ple...
25.263158
83
0.672917
79
480
3.911392
0.64557
0.058252
0.097087
0.110032
0.18123
0.18123
0.18123
0
0
0
0
0.085106
0.216667
480
18
84
26.666667
0.736702
0.26875
0
0
0
0
0.309038
0
0
0
0
0
0
1
0
false
0
0.222222
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
a30c417b3a747422a1fa92c8a3a68fa2a0ddf883
2,770
py
Python
dataset.py
njoel-ethz/saliency-rl
61cf7acf10569b04c3a59528a4fc511c6e794895
[ "MIT" ]
null
null
null
dataset.py
njoel-ethz/saliency-rl
61cf7acf10569b04c3a59528a4fc511c6e794895
[ "MIT" ]
null
null
null
dataset.py
njoel-ethz/saliency-rl
61cf7acf10569b04c3a59528a4fc511c6e794895
[ "MIT" ]
null
null
null
import os import csv import cv2 import numpy as np import torch from torch.utils.data import Dataset, DataLoader def transform(snippet): ''' stack & noralization ''' snippet = np.concatenate(snippet, axis=-1) snippet = torch.from_numpy(snippet).permute(2, 0, 1).contiguous().float() snippet = snippet.mu...
37.432432
136
0.615884
374
2,770
4.278075
0.283422
0.05
0.04375
0.04
0.22625
0.09125
0.035
0
0
0
0
0.03901
0.241155
2,770
74
137
37.432432
0.722169
0.072202
0
0.1
0
0
0.041813
0.019539
0
0
0
0
0
1
0.116667
false
0
0.1
0.033333
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a30d6af902c1a8c64022ae0458cac17dd1fa6032
6,398
py
Python
openprocurement/chronograph/__init__.py
yshalenyk/openprocurement.chronograph
c15a6da519cea8a09b5d9a943752a49dd6f5131f
[ "Apache-2.0" ]
null
null
null
openprocurement/chronograph/__init__.py
yshalenyk/openprocurement.chronograph
c15a6da519cea8a09b5d9a943752a49dd6f5131f
[ "Apache-2.0" ]
null
null
null
openprocurement/chronograph/__init__.py
yshalenyk/openprocurement.chronograph
c15a6da519cea8a09b5d9a943752a49dd6f5131f
[ "Apache-2.0" ]
null
null
null
import gevent.monkey gevent.monkey.patch_all() import os from logging import getLogger #from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor from apscheduler.schedulers.gevent import GeventScheduler as Scheduler from couchdb import Server, Session from couchdb.http import Unauthorized, extract...
44.124138
215
0.664739
754
6,398
5.437666
0.248011
0.016098
0.027317
0.019512
0.194634
0.091707
0.020488
0
0
0
0
0.004944
0.209597
6,398
144
216
44.430556
0.805814
0.069553
0
0.065574
0
0.008197
0.22679
0.033698
0
0
0
0
0
1
0.016393
false
0.02459
0.114754
0
0.139344
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a30f4fc2ab1f50558de3a730d24cdd2bc794f650
1,078
py
Python
poc/setmanyblocks.py
astro-pi/SpaceCRAFT
b577681b31c0554db9e77ed816cd63900fe195ca
[ "BSD-3-Clause" ]
12
2016-03-05T16:40:16.000Z
2019-10-27T07:48:12.000Z
poc/setmanyblocks.py
astro-pi/SpaceCRAFT
b577681b31c0554db9e77ed816cd63900fe195ca
[ "BSD-3-Clause" ]
1
2016-03-03T16:54:59.000Z
2016-03-09T12:14:33.000Z
poc/setmanyblocks.py
astro-pi/SpaceCRAFT
b577681b31c0554db9e77ed816cd63900fe195ca
[ "BSD-3-Clause" ]
2
2015-12-01T08:01:07.000Z
2019-10-27T07:48:19.000Z
#code which sends many setBlock commands all in one go, to see if there was # a performance improvement.. It sent them a lot quicker, but you still had to wait # for minecraft to catch up import mcpi.minecraft as minecraft import mcpi.block as block import mcpi.util as util from time import time, sleep def setManyBloc...
25.069767
83
0.666976
169
1,078
4.230769
0.443787
0.058741
0.044755
0.055944
0.215385
0.215385
0.12028
0.12028
0.12028
0.12028
0
0.024852
0.216141
1,078
42
84
25.666667
0.821302
0.168831
0
0.4
0
0
0.022422
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.166667
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
a3156184194412b6c58e7f98504a56f1d8eea1bf
1,132
py
Python
Chapter08/8_2_save_packets_in_pcap_format.py
shamir456/Python-Network-Programming-Cookbook-Second-Edition
7f5ebcbb4ef79c41da677afdf0d8e0fb575dcf0b
[ "MIT" ]
125
2017-08-10T18:09:55.000Z
2022-03-29T10:14:31.000Z
Chapter08/8_2_save_packets_in_pcap_format.py
shamir456/Python-Network-Programming-Cookbook-Second-Edition
7f5ebcbb4ef79c41da677afdf0d8e0fb575dcf0b
[ "MIT" ]
4
2018-01-19T05:42:58.000Z
2019-03-07T06:18:52.000Z
Chapter08/8_2_save_packets_in_pcap_format.py
shamir456/Python-Network-Programming-Cookbook-Second-Edition
7f5ebcbb4ef79c41da677afdf0d8e0fb575dcf0b
[ "MIT" ]
79
2017-08-15T00:40:36.000Z
2022-02-26T10:20:24.000Z
#!/usr/bin/env python # Python Network Programming Cookbook, Second Edition -- Chapter - 8 # This program is optimized for Python 2.7.12 and Python 3.5.2. # It may run on any other version with/without modifications. import os from scapy.all import * pkts = [] count = 0 pcapnum = 0 def write_cap(x): global pkts...
24.085106
74
0.590106
155
1,132
4.187097
0.541935
0.098613
0.030817
0.040062
0
0
0
0
0
0
0
0.022305
0.287102
1,132
46
75
24.608696
0.781908
0.184629
0
0.205882
0
0
0.19281
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3168c69f4eb9f2ba122306fee2a6890c6f1230e
1,621
py
Python
Assignments/Sprint2/FinValuePivot.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
1
2021-02-28T07:43:59.000Z
2021-02-28T07:43:59.000Z
Assignments/Sprint2/FinValuePivot.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
null
null
null
Assignments/Sprint2/FinValuePivot.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
1
2021-03-03T03:52:21.000Z
2021-03-03T03:52:21.000Z
""" You are given a sorted array in ascending order that is rotated at some unknown pivot (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]) and a target value. Write a function that returns the target value's index. If the target value is not present in the array, return -1. You may assume no duplicate exists in...
25.730159
91
0.58359
258
1,621
3.666667
0.267442
0.066596
0.116279
0.016913
0.216702
0.142706
0.110994
0.103594
0.046512
0.046512
0
0.047743
0.289328
1,621
63
92
25.730159
0.773438
0.319556
0
0.25
0
0
0
0
0
0
0
0
0
1
0.09375
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a31d402b111d9ee652386e79f628f7e0ddffa959
987
py
Python
utility.py
Forthyse/Forsythe-Bot
c8871b1fde456403d951a9dde13dddaca2d3f67b
[ "MIT" ]
3
2021-01-18T22:10:05.000Z
2022-01-07T21:46:34.000Z
utility.py
Forthyse/Forsythe-Bot
c8871b1fde456403d951a9dde13dddaca2d3f67b
[ "MIT" ]
null
null
null
utility.py
Forthyse/Forsythe-Bot
c8871b1fde456403d951a9dde13dddaca2d3f67b
[ "MIT" ]
2
2020-10-21T01:27:34.000Z
2021-01-02T23:51:02.000Z
import discord from discord.ext import commands class utility(commands.Cog): def __init__(self, client): self.client = client @commands.guild_only() @commands.command(name = "avatar", aliases = ["av", "pic"]) async def avatar(self, ctx, user: discord.User=None): if user is No...
37.961538
140
0.64843
127
987
4.944882
0.472441
0.047771
0.05414
0.079618
0.11465
0.11465
0
0
0
0
0
0.020592
0.212766
987
26
141
37.961538
0.787645
0
0
0.090909
0
0.045455
0.163032
0.106957
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
a31f5b674099dd26d6054dab2dbff6ca679ee640
8,215
py
Python
torch/ao/quantization/fx/fusion_patterns.py
li-ang/pytorch
17f3179d607b9a2eac5efdfc36673e89f70e6628
[ "Intel" ]
1
2022-02-15T07:07:31.000Z
2022-02-15T07:07:31.000Z
torch/ao/quantization/fx/fusion_patterns.py
xiaozhoushi/pytorch
7dba88dfdb414def252531027658afe60409291d
[ "Intel" ]
null
null
null
torch/ao/quantization/fx/fusion_patterns.py
xiaozhoushi/pytorch
7dba88dfdb414def252531027658afe60409291d
[ "Intel" ]
null
null
null
import torch from torch.fx.graph import Node from .pattern_utils import ( register_fusion_pattern, ) from .utils import _parent_name from .quantization_types import QuantizerCls, NodePattern, Pattern from ..fuser_method_mappings import get_fuser_method from ..fuser_method_mappings import get_fuser_method_new from a...
48.89881
118
0.684967
1,064
8,215
5.040414
0.142857
0.08223
0.090062
0.106657
0.602834
0.576916
0.546336
0.521536
0.50028
0.44807
0
0.006008
0.20986
8,215
167
119
49.191617
0.820213
0.081071
0
0.35
0
0
0.044887
0.012351
0
0
0
0.005988
0.064286
1
0.057143
false
0.014286
0.071429
0.007143
0.192857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a323da1e6144f951fab0d4c366a9e8d27bf93ca5
46,478
py
Python
sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/models/_models.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/models/_models.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/models/_models.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.48853
146
0.650652
5,078
46,478
5.820008
0.081134
0.02487
0.058469
0.069432
0.696725
0.667355
0.636327
0.589734
0.54754
0.517392
0
0.001085
0.226279
46,478
1,176
147
39.522109
0.82075
0.539739
0
0.538947
0
0
0.250841
0.013673
0
0
0
0
0
1
0.052632
false
0
0.004211
0
0.206316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3256f1d5ce64484739511b64bf4572f8dcbb09c
407
py
Python
utils.py
AbinavRavi/Federated-learning-MI
06294e5de94bf5b8826dedb469a3430fdae76e37
[ "MIT" ]
3
2021-04-04T19:32:29.000Z
2022-02-10T05:25:27.000Z
utils.py
AbinavRavi/Federated-learning-MI
06294e5de94bf5b8826dedb469a3430fdae76e37
[ "MIT" ]
null
null
null
utils.py
AbinavRavi/Federated-learning-MI
06294e5de94bf5b8826dedb469a3430fdae76e37
[ "MIT" ]
null
null
null
import nibabel as nib import numpy as np from glob import glob def to_slice(image_path,seg_path): image = nib.load(image_path).get_fdata() seg = nib.load(seg_path).get_fdata() image_list = [] seg_list = [] for i in range(image.shape[2]): if(np.nonzero(image[i])!= 0): image_list....
22.611111
44
0.638821
65
407
3.8
0.446154
0.109312
0.097166
0.129555
0
0
0
0
0
0
0
0.006431
0.235872
407
17
45
23.941176
0.787781
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3259ed1f24efeaecf755551060f140ed167c93c
576
py
Python
tests/test_ebook.py
plysytsya/doublebook
09dcd5399288c9544df928136a9e2f2e54639cbd
[ "MIT" ]
null
null
null
tests/test_ebook.py
plysytsya/doublebook
09dcd5399288c9544df928136a9e2f2e54639cbd
[ "MIT" ]
null
null
null
tests/test_ebook.py
plysytsya/doublebook
09dcd5399288c9544df928136a9e2f2e54639cbd
[ "MIT" ]
null
null
null
import os import unittest from doublebook.ebook import Ebook THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class EbookTest(unittest.TestCase): def setUp(self): path_to_text = os.path.join(THIS_DIR, "test_data", "zen_en.txt") self.ebook = Ebook(path_to_text) def test_read(self): ...
22.153846
72
0.689236
77
576
4.87013
0.493506
0.12
0.053333
0.154667
0
0
0
0
0
0
0
0.002151
0.192708
576
25
73
23.04
0.804301
0
0
0
0
0
0.046875
0
0
0
0
0
0.125
1
0.1875
false
0
0.1875
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a32ad9de709c3a24f830152b0d7a35e9a5113527
10,061
py
Python
src/panoramic/cli/husky/service/blending/tel_planner.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-11-13T17:26:59.000Z
2021-03-19T15:11:26.000Z
src/panoramic/cli/husky/service/blending/tel_planner.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-10-28T10:22:35.000Z
2021-01-27T17:33:58.000Z
src/panoramic/cli/husky/service/blending/tel_planner.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
3
2021-01-26T07:58:03.000Z
2021-03-11T13:28:34.000Z
from collections import defaultdict from typing import Dict, Iterable, List, Optional, Set, Tuple, cast from sqlalchemy import column from panoramic.cli.husky.common.enum import EnumHelper from panoramic.cli.husky.core.taxonomy.aggregations import AggregationDefinition from panoramic.cli.husky.core.taxonomy.enums imp...
43.743478
125
0.657191
1,068
10,061
5.940075
0.185393
0.044136
0.035309
0.046343
0.337327
0.288304
0.220208
0.124527
0.107188
0.094578
0
0.00055
0.27701
10,061
229
126
43.934498
0.871597
0.066196
0
0.180233
0
0
0.01727
0.003364
0
0
0
0
0
1
0.02907
false
0
0.098837
0
0.22093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a32bb9ecf389628aa17fb222486d5eb8bc144dcb
13,836
py
Python
mrcnn/callbacks.py
dtitenko-dev/Mask_RCNN
5167db4174d96e9f2accc0a9f4866fb3a7bf5993
[ "MIT" ]
null
null
null
mrcnn/callbacks.py
dtitenko-dev/Mask_RCNN
5167db4174d96e9f2accc0a9f4866fb3a7bf5993
[ "MIT" ]
null
null
null
mrcnn/callbacks.py
dtitenko-dev/Mask_RCNN
5167db4174d96e9f2accc0a9f4866fb3a7bf5993
[ "MIT" ]
null
null
null
import os import re import six import h5py import json import logging import tensorflow.keras as keras from tensorflow.python.keras import optimizers from tensorflow.python.keras.saving import hdf5_format from tensorflow.python.keras.utils import tf_utils from tensorflow.python.keras.saving import saving_utils from t...
44.632258
92
0.626337
1,702
13,836
4.857814
0.202115
0.019352
0.017296
0.014393
0.269231
0.153362
0.09688
0.062893
0.044267
0.044267
0
0.006838
0.3024
13,836
309
93
44.776699
0.849772
0.265901
0
0.159794
0
0
0.095209
0.009541
0
0
0
0
0
1
0.06701
false
0
0.082474
0
0.21134
0.005155
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a32d410f0fad03a9c0fdccb975ef58812fe45a3f
4,576
py
Python
pca.py
vgp314/Udacity-Arvato-Identify-Customer-Segments
6be1d4f1eeac391c17c70fdf584bdc4813f80fd8
[ "ADSL" ]
1
2020-05-21T23:56:57.000Z
2020-05-21T23:56:57.000Z
pca.py
vgp314/Udacity-Arvato-Identify-Customer-Segments
6be1d4f1eeac391c17c70fdf584bdc4813f80fd8
[ "ADSL" ]
null
null
null
pca.py
vgp314/Udacity-Arvato-Identify-Customer-Segments
6be1d4f1eeac391c17c70fdf584bdc4813f80fd8
[ "ADSL" ]
null
null
null
#pca model n componentes from sklearn.decomposition import PCA import numpy as np from pylab import rcParams import matplotlib.pyplot as plt import pandas as pd def pca_model_n_components(df,n_components): ''' Definition: Initialize pca with n_components args: dataframe and number of components returns: ...
29.908497
101
0.671547
643
4,576
4.625194
0.206843
0.047075
0.094149
0.122394
0.327169
0.221587
0.079354
0.035642
0.035642
0.035642
0
0.030454
0.210664
4,576
152
102
30.105263
0.792913
0.210664
0
0.030303
0
0
0.102704
0
0
0
0
0
0
1
0.075758
false
0
0.075758
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a32ec2ac9f37deceb74746f32c5ce3fa89c08ee8
4,446
py
Python
media_analyzer/core/top_news.py
nyancol/MediaAnalyzer
fe504aa63646d27dfca6ca2c5435b0877d65ab2a
[ "MIT" ]
null
null
null
media_analyzer/core/top_news.py
nyancol/MediaAnalyzer
fe504aa63646d27dfca6ca2c5435b0877d65ab2a
[ "MIT" ]
null
null
null
media_analyzer/core/top_news.py
nyancol/MediaAnalyzer
fe504aa63646d27dfca6ca2c5435b0877d65ab2a
[ "MIT" ]
null
null
null
import datetime import numpy as np import json from sklearn.decomposition import NMF, LatentDirichletAllocation, TruncatedSVD from sklearn.feature_extraction.text import CountVectorizer from nltk.corpus import stopwords import spacy from media_analyzer import database NUM_TOPICS = 20 def load_data(begin, end, langu...
33.938931
97
0.634278
540
4,446
5.087037
0.285185
0.035675
0.032035
0.034947
0.247179
0.12996
0.112486
0.092829
0.092829
0.092829
0
0.007207
0.251012
4,446
130
98
34.2
0.817718
0.010571
0
0.147059
0
0
0.154196
0.005458
0
0
0
0
0
1
0.107843
false
0
0.078431
0
0.264706
0.009804
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3325c6fb73e3191f10fa77771bfdc292d1ff768
2,586
py
Python
scraper.py
squash-bit/Automate-Whatsapp-News
9bdbbbb397dc680825b19adcda4da81d1f66270c
[ "MIT" ]
4
2020-11-21T19:08:56.000Z
2021-05-06T13:09:45.000Z
scraper.py
squash-bit/Agent-Wallie
9bdbbbb397dc680825b19adcda4da81d1f66270c
[ "MIT" ]
1
2021-05-06T19:26:06.000Z
2021-05-06T19:26:06.000Z
scraper.py
squash-bit/Agent-Wallie
9bdbbbb397dc680825b19adcda4da81d1f66270c
[ "MIT" ]
1
2021-05-06T13:25:08.000Z
2021-05-06T13:25:08.000Z
# import necessary modules import os import re import requests import newspaper from bs4 import BeautifulSoup from newspaper import Article from newspaper import Config from article_summarizer import summarizer from time import sleep # clean data class Cleanser: """Scrape the news site and get the relevant updates...
39.181818
144
0.593968
311
2,586
4.803859
0.421222
0.03012
0.026104
0.03079
0.105756
0.085676
0.045515
0.045515
0
0
0
0.01611
0.32792
2,586
65
145
39.784615
0.843498
0.221191
0
0.043478
0
0.021739
0.121561
0
0
0
0
0
0
1
0.065217
false
0
0.195652
0
0.347826
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3340d73b31131cbb0f369140b3afe55408788f6
1,351
py
Python
soli/aria/forms/species.py
rcdixon/soli
d29c77c1d391dfcc3c0dd0297ecf93fa9aa046ab
[ "MIT" ]
null
null
null
soli/aria/forms/species.py
rcdixon/soli
d29c77c1d391dfcc3c0dd0297ecf93fa9aa046ab
[ "MIT" ]
null
null
null
soli/aria/forms/species.py
rcdixon/soli
d29c77c1d391dfcc3c0dd0297ecf93fa9aa046ab
[ "MIT" ]
null
null
null
from aria.models import Genus, Species, Subspecies from django import forms from django.forms import inlineformset_factory from .templates.templates import createTextInput, createSelectInput class CreateSpeciesForm(forms.ModelForm): class Meta: model = Species fields = ["name", "common_name"] ...
29.369565
67
0.634345
132
1,351
6.356061
0.454545
0.035757
0.061979
0
0
0
0
0
0
0
0
0.002944
0.245744
1,351
45
68
30.022222
0.820412
0
0
0.055556
0
0
0.07846
0
0
0
0
0
0
1
0.083333
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3349b6abd791f21baf0e781406ef6802460401f
285
py
Python
hour.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
3
2017-04-30T17:44:53.000Z
2018-02-03T06:02:11.000Z
hour.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
10
2021-03-18T20:17:19.000Z
2022-03-11T23:14:19.000Z
hour.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
null
null
null
import math def angle(m): return 5.5 * m/60; print(angle(20)) i = 0 for m in range(0,1440*60): a = angle(m) / 360 d = a - math.floor(a) if (d < 0.00001): print(a, math.floor(a), d, d == 0.0) i += 1 print(i) for m in range(25): print(360*m/5.5)
14.25
44
0.508772
58
285
2.5
0.413793
0.082759
0.082759
0.151724
0
0
0
0
0
0
0
0.165829
0.301754
285
19
45
15
0.562814
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0.071429
0.214286
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a33556dfd1ea6c5a377213bf148dae18a67adec5
4,038
py
Python
src/third_party/wiredtiger/test/suite/test_encrypt08.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_encrypt08.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_encrypt08.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Public Domain 2014-present MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a com...
43.419355
87
0.698613
543
4,038
5.141805
0.488029
0.02149
0.025072
0.01361
0.015759
0
0
0
0
0
0
0.025584
0.225607
4,038
92
88
43.891304
0.867285
0.620109
0
0
0
0
0.231081
0.080405
0
0
0
0
0.034483
1
0.068966
false
0
0.068966
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a336bdbfb6767de53ac20167cacab792872e5ecf
1,779
py
Python
{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py
mabdullahabid/cookiecutter-django-rest
8cab90f115b99f7b700ec38a08cb3647eb0a847b
[ "MIT" ]
null
null
null
{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py
mabdullahabid/cookiecutter-django-rest
8cab90f115b99f7b700ec38a08cb3647eb0a847b
[ "MIT" ]
null
null
null
{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py
mabdullahabid/cookiecutter-django-rest
8cab90f115b99f7b700ec38a08cb3647eb0a847b
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, re_path, include, reverse_lazy from django.views.generic.base import RedirectView from rest_framework import permissions from rest_framework.authtoken import views from rest_framew...
35.58
88
0.754918
231
1,779
5.649351
0.363636
0.045977
0.076628
0.057471
0.045977
0
0
0
0
0
0
0.001906
0.115233
1,779
50
89
35.58
0.827192
0.075323
0
0
0
0
0.19805
0.067032
0
0
0
0
0
1
0
false
0
0.289474
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a33868010eb5e7ae344ef9b1e3fe0336947b0c2f
4,260
py
Python
pdk_api.py
audacious-software/Passive-Data-Kit-External-Sensors
c4781c04ce3cb485b0c1e50a9e7c6db0c92a9959
[ "Apache-2.0" ]
null
null
null
pdk_api.py
audacious-software/Passive-Data-Kit-External-Sensors
c4781c04ce3cb485b0c1e50a9e7c6db0c92a9959
[ "Apache-2.0" ]
null
null
null
pdk_api.py
audacious-software/Passive-Data-Kit-External-Sensors
c4781c04ce3cb485b0c1e50a9e7c6db0c92a9959
[ "Apache-2.0" ]
null
null
null
# pylint: disable=line-too-long, no-member from __future__ import print_function import arrow import requests from django.conf import settings from django.contrib.gis.geos import GEOSGeometry from django.utils import timezone from django.utils.text import slugify from passive_data_kit_external_sensors.models import...
38.035714
141
0.603286
456
4,260
5.425439
0.27193
0.076799
0.029103
0.031528
0.135812
0.110752
0.110752
0.033145
0
0
0
0.00335
0.299296
4,260
111
142
38.378378
0.825461
0.033099
0
0.081081
0
0
0.086048
0.008508
0
0
0
0
0
1
0.027027
false
0.013514
0.121622
0
0.162162
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
a339496b618754603c49253c77c1461b236400c0
37,496
py
Python
fgcm/fgcmConfig.py
erykoff/fgcm
51c39c5c7f904fbac755e775038730b4e6ba11bd
[ "Apache-2.0" ]
5
2018-02-02T15:36:46.000Z
2021-05-11T21:54:49.000Z
fgcm/fgcmConfig.py
erykoff/fgcm
51c39c5c7f904fbac755e775038730b4e6ba11bd
[ "Apache-2.0" ]
1
2021-08-19T19:56:33.000Z
2021-08-19T19:56:33.000Z
fgcm/fgcmConfig.py
lsst/fgcm
51c39c5c7f904fbac755e775038730b4e6ba11bd
[ "Apache-2.0" ]
10
2019-01-09T22:50:04.000Z
2020-02-12T16:36:27.000Z
import numpy as np import os import sys import yaml from .fgcmUtilities import FocalPlaneProjectorFromOffsets from .fgcmLogger import FgcmLogger class ConfigField(object): """ A validatable field with a default """ def __init__(self, datatype, value=None, default=None, required=False, length=None): ...
46.063882
139
0.618759
3,909
37,496
5.91251
0.168074
0.008437
0.027864
0.026869
0.261552
0.194358
0.17333
0.157061
0.135774
0.1009
0
0.011802
0.285897
37,496
813
140
46.120541
0.851359
0.114839
0
0.153707
0
0
0.111762
0.002851
0
0
0
0.00123
0
1
0.023508
false
0.003617
0.012658
0.001808
0.287523
0.009042
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a33e4ece404ced51ee4f1506f207476b0d455c63
2,398
py
Python
pymic/layer/activation.py
vincentme/PyMIC
5cbbca7d0a19232be647086d4686ceea523f45ee
[ "Apache-2.0" ]
147
2019-12-23T02:52:04.000Z
2022-03-06T16:30:43.000Z
pymic/layer/activation.py
vincentme/PyMIC
5cbbca7d0a19232be647086d4686ceea523f45ee
[ "Apache-2.0" ]
4
2020-12-18T12:47:21.000Z
2021-05-21T02:18:01.000Z
pymic/layer/activation.py
vincentme/PyMIC
5cbbca7d0a19232be647086d4686ceea523f45ee
[ "Apache-2.0" ]
32
2020-01-08T13:48:50.000Z
2022-03-12T06:31:13.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division import torch import torch.nn as nn def get_acti_func(acti_func, params): acti_func = acti_func.lower() if(acti_func == 'relu'): inplace = params.get('relu_inplace', False) return nn.ReLU(inplace) elif(acti_func == 'l...
31.552632
67
0.607173
306
2,398
4.568627
0.222222
0.114449
0.120172
0.100143
0.080114
0.032904
0
0
0
0
0
0.016111
0.249374
2,398
76
67
31.552632
0.760556
0.008757
0
0
0
0
0.1633
0.010101
0
0
0
0
0
1
0.017544
false
0
0.052632
0
0.333333
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a33eb973d0edc831eea7bb11066042e56e9c2e88
3,359
py
Python
ui/flowlayout.py
amadotejada/self-portal
c508fb120548f3eb65e872d08a823d3942fc650d
[ "Apache-2.0" ]
9
2022-03-15T02:02:30.000Z
2022-03-18T16:16:59.000Z
ui/flowlayout.py
amadotejada/self-portal
c508fb120548f3eb65e872d08a823d3942fc650d
[ "Apache-2.0" ]
null
null
null
ui/flowlayout.py
amadotejada/self-portal
c508fb120548f3eb65e872d08a823d3942fc650d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Amado Tejada # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
31.688679
112
0.575171
370
3,359
5.181081
0.362162
0.056338
0.023474
0.016693
0.18362
0.161711
0.131455
0.131455
0.131455
0.131455
0
0.011101
0.329562
3,359
105
113
31.990476
0.840142
0.164037
0
0.215385
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.030769
0.061538
0.415385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a340df3cf71eb1be1675fbe29cece65cbcc98d43
3,183
py
Python
methods/smartdumpRJ.py
wdempsey/sense2stop-lvm
ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2
[ "CECILL-B" ]
1
2020-04-18T11:16:02.000Z
2020-04-18T11:16:02.000Z
methods/smartdumpRJ.py
wdempsey/sense2stop-lvm
ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2
[ "CECILL-B" ]
6
2020-04-13T18:38:04.000Z
2022-03-12T00:55:56.000Z
methods/smartdumpRJ.py
wdempsey/sense2stop-lvm
ea44d5f9199382d30e4c5a5ff4bd524313ceb5b2
[ "CECILL-B" ]
1
2020-07-02T04:47:00.000Z
2020-07-02T04:47:00.000Z
# -*- coding: utf-8 -*- """ Created on Tue May 26 14:29:26 2020 @author: Walter Dempsey & Jamie Yap """ #%% ############################################################################### # Build a RJMCMC class ############################################################################### from pymc import Stochast...
31.514851
88
0.602576
405
3,183
4.646914
0.330864
0.062168
0.026567
0.038257
0.201913
0.190223
0.158342
0.092455
0.092455
0.092455
0
0.005556
0.264844
3,183
100
89
31.83
0.798718
0.401194
0
0
0
0
0
0
0
0
0
0
0
1
0.097561
false
0.02439
0.097561
0
0.243902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a34205264c406b528a6fcfa5ac69debf00a2b02c
2,021
py
Python
tests/test_slack_user.py
tomcooperca/mlb-slack-tracker
bbfd8ed6f0c345d5286813a6cd4b04e0557a762a
[ "MIT" ]
null
null
null
tests/test_slack_user.py
tomcooperca/mlb-slack-tracker
bbfd8ed6f0c345d5286813a6cd4b04e0557a762a
[ "MIT" ]
7
2018-09-08T20:07:43.000Z
2021-12-13T19:54:53.000Z
tests/test_slack_user.py
tomcooperca/mlb-slack-tracker
bbfd8ed6f0c345d5286813a6cd4b04e0557a762a
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock from slack.user import User from baseball.team import Team reusableUser = User(token='blah', id='UB00123', team=None) testTeam = Team(abbreviation='CN', location='City Name', full_name='City Name Players', record='0W-162L', division='CL Beast', wins=0, losses=162, standing=5...
34.844828
74
0.730332
295
2,021
4.738983
0.230508
0.057225
0.051502
0.085837
0.635908
0.570815
0.474249
0.474249
0.474249
0.474249
0
0.036228
0.139535
2,021
57
75
35.45614
0.767683
0
0
0.418605
0
0
0.133102
0
0
0
0
0
0.162791
1
0.162791
false
0
0.069767
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a342151afcda4ba72f2d257247a2de01de22ba98
1,934
py
Python
tmuxp/testsuite/test_workspacefreezer.py
wrongwaycn/tmuxp
367cca3eb1b3162bb7e4801fe752b520f1f8eefa
[ "BSD-3-Clause" ]
2
2018-02-05T01:27:07.000Z
2018-06-10T02:02:25.000Z
tmuxp/testsuite/test_workspacefreezer.py
wrongwaycn/tmuxp
367cca3eb1b3162bb7e4801fe752b520f1f8eefa
[ "BSD-3-Clause" ]
null
null
null
tmuxp/testsuite/test_workspacefreezer.py
wrongwaycn/tmuxp
367cca3eb1b3162bb7e4801fe752b520f1f8eefa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, with_statement import os import sys import logging import time import kaptan from .. import Window, config, exc from ..workspacebuilder import WorkspaceBuilder, freeze from .helpers import TmuxTestCase logger = logging.getLogger...
23.585366
80
0.609617
205
1,934
5.560976
0.453659
0.021053
0.044737
0.02807
0.038596
0.038596
0
0
0
0
0
0.002909
0.289038
1,934
81
81
23.876543
0.826182
0.049638
0
0.16129
0
0
0.267321
0
0
0
0
0
0.016129
1
0.032258
false
0.016129
0.193548
0
0.258065
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a34438fcd2d05af774f8b7d208037ebd093f49f3
1,488
py
Python
test.py
KyleJeong/ast_calculator
cf65ad76739839ac4b3df36b82862612d6bd4492
[ "MIT" ]
6
2016-07-20T07:37:07.000Z
2022-01-14T06:35:26.000Z
test.py
KyleJeong/ast_calculator
cf65ad76739839ac4b3df36b82862612d6bd4492
[ "MIT" ]
1
2020-03-29T05:13:58.000Z
2020-03-29T05:13:58.000Z
test.py
KyleJeong/ast_calculator
cf65ad76739839ac4b3df36b82862612d6bd4492
[ "MIT" ]
1
2020-03-29T04:29:36.000Z
2020-03-29T04:29:36.000Z
""" Test cases for AST calculator """ from unittest import TestCase from calc import evaluate class TestCaclEvaluate(TestCase): """ Test cases for AST calculator - evaluation """ def test_simple_expression(self): """ Test expression without functions or constants """ ...
23.619048
62
0.511425
145
1,488
5.206897
0.427586
0.074172
0.031788
0.039735
0.445033
0.378808
0.378808
0.378808
0.378808
0.378808
0
0.036132
0.367608
1,488
62
63
24
0.766206
0.146505
0
0.393939
0
0
0.116299
0.017827
0
0
0
0
0.090909
1
0.090909
false
0
0.090909
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a34991845be5613841f0b124224655a27cd95755
1,732
py
Python
app.py
u-aaa/House-_prediction_model
4808b4aefb802520a7ccd878c342699093e6942d
[ "MIT" ]
null
null
null
app.py
u-aaa/House-_prediction_model
4808b4aefb802520a7ccd878c342699093e6942d
[ "MIT" ]
null
null
null
app.py
u-aaa/House-_prediction_model
4808b4aefb802520a7ccd878c342699093e6942d
[ "MIT" ]
1
2021-09-23T19:42:36.000Z
2021-09-23T19:42:36.000Z
import pickle import json import numpy as np from flask import Flask, request, jsonify app = Flask(__name__) with open('models/regressor.pkl', 'rb') as f: model = pickle.load(f) def __process_input(posted_data) -> np.array: ''' transforms JSON type data acquired from request and transforms it into 2D ...
28.393443
105
0.639723
222
1,732
4.815315
0.414414
0.052385
0.042095
0.043031
0.130964
0.099158
0
0
0
0
0
0.016204
0.251732
1,732
60
106
28.866667
0.808642
0.15127
0
0.179487
0
0
0.11843
0
0
0
0
0
0.051282
1
0.076923
false
0
0.102564
0.025641
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a34d2a23f38ff576e6a5ef0f805165729d2fc6ef
2,789
py
Python
scalex/metrics.py
jsxlei/SCALEX
021c6d35a0cebeaa1f59ea53b9b9e22015ce6e5f
[ "MIT" ]
11
2021-04-09T02:46:29.000Z
2022-01-04T16:42:44.000Z
scale/metrics.py
QingZhan98/SCALE_v2
69bb02beee40ec085684335f356798d4dcb53fbc
[ "MIT" ]
2
2021-04-18T02:30:18.000Z
2022-03-05T10:40:00.000Z
scale/metrics.py
QingZhan98/SCALE_v2
69bb02beee40ec085684335f356798d4dcb53fbc
[ "MIT" ]
4
2021-03-29T12:34:47.000Z
2022-03-06T12:42:45.000Z
#!/usr/bin/env python """ # Author: Xiong Lei # Created Time : Thu 10 Jan 2019 07:38:10 PM CST # File Name: metrics.py # Description: """ import numpy as np import scipy from sklearn.neighbors import NearestNeighbors, KNeighborsRegressor def batch_entropy_mixing_score(data, batches, n_neighbors=100, n_pools=100, n...
34.8625
114
0.639656
391
2,789
4.434783
0.329923
0.041522
0.031719
0.043253
0.284314
0.194348
0.107843
0.048443
0.048443
0.048443
0
0.028238
0.263535
2,789
80
115
34.8625
0.815969
0.38616
0
0.083333
0
0
0.030151
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a34e461868bd92e65252352e4554823a69ea35c7
2,603
py
Python
examples/data/create_data.py
fdabek1/EHR-Functions
e6bd0b6fa213930358c4a19be31c459ac7430ca9
[ "MIT" ]
null
null
null
examples/data/create_data.py
fdabek1/EHR-Functions
e6bd0b6fa213930358c4a19be31c459ac7430ca9
[ "MIT" ]
null
null
null
examples/data/create_data.py
fdabek1/EHR-Functions
e6bd0b6fa213930358c4a19be31c459ac7430ca9
[ "MIT" ]
null
null
null
import pandas as pd import random import time # Source: https://stackoverflow.com/a/553320/556935 def str_time_prop(start, end, date_format, prop): """Get a time at a proportion of a range of two formatted times. start and end should be strings specifying times formated in the given format (strftime-styl...
31.743902
102
0.579332
317
2,603
4.690852
0.340694
0.080699
0.069939
0.075319
0.308003
0.27236
0.268325
0.120377
0.120377
0.120377
0
0.032945
0.242028
2,603
81
103
32.135802
0.72073
0.151748
0
0.285714
0
0
0.165596
0
0
0
0
0
0
1
0.071429
false
0
0.053571
0.017857
0.160714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a350ecde028977958b337223398f9351c3e4bbec
1,317
py
Python
contests/ccpc20qhd/f่ถ…ๆ—ถ.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
contests/ccpc20qhd/f่ถ…ๆ—ถ.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
contests/ccpc20qhd/f่ถ…ๆ—ถ.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' #ccpc20qhd-f => ๆœ€ๅคง่”้€šๅญๅ›พ #ๅฆ‚ๆžœ้ƒฝๆ˜ฏ่”้€š็š„,ๆ‰€ๆœ‰่Š‚็‚น้ƒฝ่ฆๆ”พ่ฟ›ๅŽป, #ๅ‹ๅฅฝๅ€ผ=่”้€šๅญๅ›พไธญ่พน็š„ไธชๆ•ฐ-็‚น็š„ไธชๆ•ฐ #ๅบ”่ฏฅๆ‰€ๆœ‰(ๅ‹ๅฅฝๅ€ผ>0)่”้€šๅญๅ›พๅŠ ่ตทๆฅ? #DFSๆœ็ดข,ๆˆ–่€…ๆ˜ฏๅนถๆŸฅ้›†? ๆ•ฐไธ€ๆ•ฐๆœ‰ๅคšๅฐ‘่”้€šๅ—? #ๆœ€็Ÿญ่ทฏ็”จๅนฟๆœ๏ผŒๅ…จ้ƒจ่งฃ็”จๆทฑๆœ ่ฟž้€šๅ›พ็š„ๅคๆ‚ๅบฆๆ˜ฏO(V+E).. ไธบไป€ไนˆไผšRuntime Error? ๅˆ†ๆž: ่งฃๆณ•1: DFSๅš่”้€šๅ— ่งฃๆณ•2: ็œ‹ไธๅŒ…ๅซๅ“ชไบ›ไบบ๏ผŒ็›ธๅฝ“ไบŽ่ตฐไธชๆทๅพ„! ''' def f(n,l): el = [[] for _ in range(n)] for x,y in l: if x>y...
23.105263
82
0.430524
189
1,317
2.989418
0.486772
0.049558
0.010619
0.038938
0.070796
0
0
0
0
0
0
0.026385
0.42445
1,317
56
83
23.517857
0.718997
0.274108
0
0.055556
0
0
0.01278
0
0
0
0
0
0
1
0.027778
false
0
0
0
0.055556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3525d2e36b057b387fd2a242a0be1258c2a7481
2,920
py
Python
test/feature_extraction/list_counter_test.py
tmhatton/MLinPractice
759706e13181cec864d6aa8ece9ae7042f083e4c
[ "MIT" ]
null
null
null
test/feature_extraction/list_counter_test.py
tmhatton/MLinPractice
759706e13181cec864d6aa8ece9ae7042f083e4c
[ "MIT" ]
1
2021-10-19T08:09:44.000Z
2021-10-19T08:09:44.000Z
test/feature_extraction/list_counter_test.py
tmhatton/MLinPractice
759706e13181cec864d6aa8ece9ae7042f083e4c
[ "MIT" ]
null
null
null
import unittest import pandas as pd from code.feature_extraction.list_counter import PhotosNum, URLsNum, HashtagNum, MentionNum, TokenNum from code.util import COLUMN_PHOTOS, COLUMN_URLS, COLUMN_HASHTAGS, COLUMN_MENTIONS class PhotosNumTest(unittest.TestCase): def setUp(self) -> None: self.INPUT_COLUMN ...
30.736842
161
0.667466
348
2,920
5.344828
0.244253
0.077419
0.08871
0.064516
0.489247
0.358065
0.358065
0.358065
0.332796
0.307527
0
0.016818
0.205822
2,920
94
162
31.06383
0.785252
0
0
0.245902
0
0.04918
0.128082
0.029795
0
0
0
0
0.081967
1
0.163934
false
0
0.065574
0
0.311475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a352f55dcd4b6a9dcf2653a39663d590b4d79e27
926
py
Python
tests/test_2_promethee.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
4
2022-03-05T20:51:38.000Z
2022-03-15T17:10:22.000Z
tests/test_2_promethee.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
null
null
null
tests/test_2_promethee.py
qanastek/EasyMCDM
7fa2e2dfe9397834ca9f50211ea2717a16785394
[ "MIT" ]
1
2022-03-08T13:45:22.000Z
2022-03-08T13:45:22.000Z
import unittest from operator import index from EasyMCDM.models.Promethee import Promethee class TestPrometheeMethods(unittest.TestCase): def test_str_str_str(self): d = "data/partiels_donnees.csv" p = Promethee(data=d, verbose=False) res = p.solve( weights=[0.3, ...
42.090909
161
0.565875
125
926
4.08
0.44
0.011765
0.070588
0.086275
0.098039
0
0
0
0
0
0
0.180441
0.215983
926
22
162
42.090909
0.522039
0
0
0
0
0
0.182119
0.027594
0
0
0
0
0.1875
1
0.0625
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3552615d55b8131f79fc858dd41da8c30cf2d71
6,028
py
Python
Source/game/systems/puzzle/hold.py
LucXyMan/starseeker
b5c3365514c982734da7d95621e6b85af550ce82
[ "BSD-3-Clause" ]
null
null
null
Source/game/systems/puzzle/hold.py
LucXyMan/starseeker
b5c3365514c982734da7d95621e6b85af550ce82
[ "BSD-3-Clause" ]
null
null
null
Source/game/systems/puzzle/hold.py
LucXyMan/starseeker
b5c3365514c982734da7d95621e6b85af550ce82
[ "BSD-3-Clause" ]
1
2019-11-27T18:00:00.000Z
2019-11-27T18:00:00.000Z
#!/usr/bin/env python2.7 # -*- coding:UTF-8 -*-2 u"""hold.py Copyright (c) 2019 Yukio Kuro This software is released under BSD license. ใƒ›ใƒผใƒซใƒ‰ใƒ”ใƒผใ‚น็ฎก็†ใƒขใ‚ธใƒฅใƒผใƒซใ€‚ """ import pieces as _pieces import utils.const as _const import utils.layouter as _layouter class Hold(object): u"""ใƒ›ใƒผใƒซใƒ‰ใƒ”ใƒผใ‚น็ฎก็†ใ€‚ """ __slots__ = ( ...
31.233161
77
0.535169
637
6,028
4.638933
0.246468
0.048731
0.033164
0.025381
0.239594
0.214213
0.175635
0.142132
0.099492
0.099492
0
0.013656
0.356171
6,028
192
78
31.395833
0.747488
0.092236
0
0.260274
0
0
0.017716
0
0
0
0
0
0
1
0.09589
false
0
0.041096
0
0.19863
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0