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
9f4da4c17f296bfd5e72a4b2eabc50c5ce43b646
4,448
py
Python
api/app.py
nikmons/screwdriver
9e59ea5f6338eb8377475f139318c203b4c1a118
[ "MIT" ]
1
2018-10-29T07:08:44.000Z
2018-10-29T07:08:44.000Z
api/app.py
nikmons/screwdriver
9e59ea5f6338eb8377475f139318c203b4c1a118
[ "MIT" ]
49
2018-11-06T07:10:41.000Z
2019-01-14T12:48:08.000Z
api/app.py
nikmons/screwdriver
9e59ea5f6338eb8377475f139318c203b4c1a118
[ "MIT" ]
2
2019-01-12T10:13:23.000Z
2019-01-12T10:18:04.000Z
#!api/api.py import os import datetime from flask import Flask, jsonify, abort, make_response, render_template from flask_restful import Api, Resource, reqparse, fields, marshal from flask_jwt_extended import ( JWTManager, jwt_required, create_access_token, get_jwt_identity, create_refresh_token, jwt_refre...
39.017544
99
0.748426
538
4,448
5.996283
0.27881
0.076565
0.082455
0.012399
0
0
0
0
0
0
0
0.001537
0.122527
4,448
113
100
39.362832
0.825006
0.012815
0
0
0
0
0.226299
0.070419
0
0
0
0
0
1
0.02
false
0
0.29
0.01
0.33
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f522a02ea86c80287eeccc84c1ab9a8aac4202d
3,034
py
Python
main.py
JoseNL27/SimplePoblationSim
61dfce818296958107890363bbdef04d0fd4a3dd
[ "CC0-1.0" ]
1
2021-04-18T13:28:55.000Z
2021-04-18T13:28:55.000Z
main.py
JoseNL27/SimplePoblationSim
61dfce818296958107890363bbdef04d0fd4a3dd
[ "CC0-1.0" ]
null
null
null
main.py
JoseNL27/SimplePoblationSim
61dfce818296958107890363bbdef04d0fd4a3dd
[ "CC0-1.0" ]
null
null
null
#A very simple poblation simulator made to study what happen when a society reaches the food-consumption limit. #Made by ElBarto27. Feel free to reproduce this script giving the correspondent credits. from scipy.stats import norm import random #Opening and clearing the file where the code will write how many peop...
44.617647
185
0.560976
364
3,034
4.67033
0.373626
0.047059
0.045294
0.06
0.286471
0.239412
0.188824
0.188824
0.188824
0.158824
0
0.031504
0.351351
3,034
67
186
45.283582
0.831301
0.244891
0
0.150943
0
0
0.016742
0
0
0
0
0
0
1
0.075472
false
0
0.037736
0
0.132075
0.037736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f58fcde6fb54e1c1bdefd8fc7f6bcf263dacfe6
157
py
Python
scenarios/card_hold_show/executable.py
timgates42/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
12
2015-04-12T06:18:33.000Z
2021-03-03T23:54:19.000Z
scenarios/card_hold_show/executable.py
takwas/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
1
2021-11-24T20:10:19.000Z
2021-11-24T20:10:19.000Z
scenarios/card_hold_show/executable.py
takwas/balanced-python
1df86b45c36a97ec2e214480c6806c4df3c79860
[ "MIT" ]
14
2015-03-23T17:52:06.000Z
2021-11-24T11:04:15.000Z
import balanced balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9')
31.4
75
0.853503
15
157
8.8
0.8
0
0
0
0
0
0
0
0
0
0
0.06
0.044586
157
5
75
31.4
0.82
0
0
0
0
0
0.487342
0.487342
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
9f59671f8d3a830afb8aa4d6a2a90929cc84624a
205
py
Python
examples/configuration/default_configuration.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
54
2019-06-04T07:00:23.000Z
2022-03-22T00:56:47.000Z
examples/configuration/default_configuration.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
7
2020-08-17T15:45:34.000Z
2022-01-19T09:23:16.000Z
examples/configuration/default_configuration.py
mwek/memoize
bd35641d676dbaaf161a61dbf1176742cfa187cc
[ "Apache-2.0" ]
5
2019-10-18T18:05:26.000Z
2021-06-11T10:14:59.000Z
from memoize.configuration import DefaultInMemoryCacheConfiguration from memoize.wrapper import memoize @memoize(configuration=DefaultInMemoryCacheConfiguration()) async def cached(): return 'dummy'
25.625
67
0.839024
18
205
9.555556
0.611111
0.127907
0
0
0
0
0
0
0
0
0
0
0.097561
205
7
68
29.285714
0.92973
0
0
0
0
0
0.02439
0
0
0
0
0
0
1
0
true
0
0.4
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9f5b2564937faaac3a6c4255ab14be6315e51e60
13,147
py
Python
src/models/train_model copy 2.py
gummz/cell
a741ca4900a11f1080b7572ac969f765e5ac2ffd
[ "MIT" ]
null
null
null
src/models/train_model copy 2.py
gummz/cell
a741ca4900a11f1080b7572ac969f765e5ac2ffd
[ "MIT" ]
null
null
null
src/models/train_model copy 2.py
gummz/cell
a741ca4900a11f1080b7572ac969f765e5ac2ffd
[ "MIT" ]
null
null
null
# from skimage.io import imread import datetime import os import pickle import sys from os import mkdir # from torchsummary import summary from os.path import join from time import time import cv2 import matplotlib.pyplot as plt import numpy as np import src.models.utils.utils as utils import torch import torch.nn as ...
35.436658
216
0.589412
1,763
13,147
4.212706
0.229722
0.012926
0.009425
0.012253
0.204389
0.183924
0.142992
0.10004
0.090346
0.072304
0
0.023781
0.289952
13,147
370
217
35.532432
0.771826
0.400624
0
0.060241
0
0.006024
0.112909
0.024861
0
0
0
0.002703
0
1
0.018072
false
0.012048
0.150602
0
0.186747
0.090361
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f5c9aa5050959865e3ea2b5411ee28634faf612
23,407
py
Python
sefontmap.py
zcold/sefontpy
2ac7d130408a4aa14079d9bc566f37850282f443
[ "MIT" ]
null
null
null
sefontmap.py
zcold/sefontpy
2ac7d130408a4aa14079d9bc566f37850282f443
[ "MIT" ]
null
null
null
sefontmap.py
zcold/sefontpy
2ac7d130408a4aa14079d9bc566f37850282f443
[ "MIT" ]
null
null
null
# coding: utf-8 # The MIT License (MIT) # Copyright (c) 2014 by Shuo Li (contact@shuo.li) # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without li...
29.932225
96
0.626522
3,026
23,407
4.596167
0.14078
0.018119
0.019773
0.015027
0.329594
0.263877
0.21333
0.180615
0.144234
0.121513
0
0.008761
0.263682
23,407
781
97
29.970551
0.798201
0.119665
0
0.178
0
0
0.09528
0.003143
0
0
0
0
0
0
null
null
0
0.03
null
null
0.028
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9f5d4a00dd65eaeb976bd195b852ee952ce9f96b
7,060
py
Python
scripts/vsYaneuraOu_onnx.py
SakodaShintaro/Miacis
af3508076660cc6e19186f17fa436499e32164f5
[ "BSD-3-Clause" ]
10
2019-05-14T12:54:49.000Z
2022-02-28T12:02:52.000Z
scripts/vsYaneuraOu_onnx.py
SakodaShintaro/Miacis
af3508076660cc6e19186f17fa436499e32164f5
[ "BSD-3-Clause" ]
null
null
null
scripts/vsYaneuraOu_onnx.py
SakodaShintaro/Miacis
af3508076660cc6e19186f17fa436499e32164f5
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 import os import sys # Ayaneをインポート script_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(script_dir + "/../../Ayane/source") import shogi.Ayane as ayane # その他必要なものをインポート import time import glob from natsort import natsorted from collections import defaultdict import argparse ...
33.459716
176
0.57847
843
7,060
4.652432
0.24911
0.046915
0.04768
0.017338
0.594085
0.58822
0.568332
0.475268
0.461499
0.461499
0
0.02833
0.295042
7,060
210
177
33.619048
0.759695
0.077479
0
0.489051
0
0.021898
0.178842
0.057606
0
0
0
0
0.007299
1
0
false
0
0.065693
0
0.065693
0.080292
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f5ddea40c81c51e855e2a7038a29cfb3b27c7d8
624
py
Python
tests/snmp/test_snmp_queue.py
jerry-chang3300/sonic-mgmt
9814959583e491997678f8ad7dc763e408340b77
[ "Apache-2.0" ]
null
null
null
tests/snmp/test_snmp_queue.py
jerry-chang3300/sonic-mgmt
9814959583e491997678f8ad7dc763e408340b77
[ "Apache-2.0" ]
null
null
null
tests/snmp/test_snmp_queue.py
jerry-chang3300/sonic-mgmt
9814959583e491997678f8ad7dc763e408340b77
[ "Apache-2.0" ]
null
null
null
import pytest from ansible_host import AnsibleHost def test_snmp_queues(ansible_adhoc, duthost, creds, collect_techsupport): lhost = AnsibleHost(ansible_adhoc, 'localhost', True) hostip = duthost.host.options['inventory_manager'].get_host(duthost.hostname).vars['ansible_host'] snmp_facts = lhost.snmp_fac...
41.6
115
0.708333
82
624
5.195122
0.609756
0.06338
0
0
0
0
0
0
0
0
0
0.001912
0.161859
624
14
116
44.571429
0.81262
0
0
0
0
0
0.240385
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f5e20aa784c2b63c5f46d520cc79ba30f3d2c88
2,193
py
Python
go_OCR.py
matmill5/KenBatcherPP-OCR
a3c6c4e7cdeb21d62e21f4ce7a1d995d22c65947
[ "MIT" ]
8
2020-03-05T00:52:41.000Z
2021-05-22T22:35:55.000Z
go_OCR.py
matmill5/KenBatcherPP-OCR
a3c6c4e7cdeb21d62e21f4ce7a1d995d22c65947
[ "MIT" ]
null
null
null
go_OCR.py
matmill5/KenBatcherPP-OCR
a3c6c4e7cdeb21d62e21f4ce7a1d995d22c65947
[ "MIT" ]
4
2020-01-29T10:11:25.000Z
2021-05-22T22:36:02.000Z
# Project Title: Kenneth E. Batcher Historical Work OCR # Project Description: Project to conduct OCR on the historical work of PP-father Kenneth E. Batcher # Author: Matthew E. Miller # Date: 02/01/2020 10:38:31 # Medium: https://medium.com/@matthew_earl_miller (where this is being published) # Github: https://github...
47.673913
173
0.608755
301
2,193
4.332226
0.448505
0.027607
0.032209
0.029908
0.057515
0.057515
0.039877
0.039877
0
0
0
0.022162
0.156407
2,193
45
174
48.733333
0.682703
0.458276
0
0
0
0
0.27094
0.216239
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f5eaf32b8e63b4925b030dc531531d8c2e8560a
6,272
py
Python
Lib/site-packages/auth/CAS/REST/service.py
srimannaarayana/boxtestpy
181332102ccbb49dd50ddb31ca875cb9d3adcc2d
[ "bzip2-1.0.6" ]
55
2015-10-16T01:14:33.000Z
2021-07-07T15:32:04.000Z
Lib/site-packages/auth/CAS/REST/service.py
srimannaarayana/boxtestpy
181332102ccbb49dd50ddb31ca875cb9d3adcc2d
[ "bzip2-1.0.6" ]
8
2015-10-27T00:54:29.000Z
2019-03-11T09:01:03.000Z
Lib/site-packages/auth/CAS/REST/service.py
srimannaarayana/boxtestpy
181332102ccbb49dd50ddb31ca875cb9d3adcc2d
[ "bzip2-1.0.6" ]
12
2015-10-16T14:11:35.000Z
2021-08-11T07:20:17.000Z
#try: # import eventlet # eventlet.monkey_patch() #except: # pass import falcon import json try: import ujson as json except ImportError: pass from auth.CAS.authorization import Authorization class AuthComponent(object): def process_request(self, req, resp): """Process the request befo...
30.153846
90
0.612883
768
6,272
4.919271
0.164063
0.067761
0.08523
0.071996
0.580466
0.568555
0.493912
0.424299
0.402859
0.357332
0
0.001294
0.260842
6,272
207
91
30.299517
0.813632
0.196429
0
0.443478
0
0
0.113148
0.073746
0
0
0
0
0
1
0.182609
false
0.008696
0.043478
0
0.33913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f5f99c5ce8af3711fd17ec410b7454888498c73
53,035
py
Python
flydra_analysis/flydra_analysis/a2/kdviewer.py
liyi2017/flydra
9ec83f14514f73e660ae8fbda32a3cc0348d0cb4
[ "Apache-2.0", "MIT" ]
null
null
null
flydra_analysis/flydra_analysis/a2/kdviewer.py
liyi2017/flydra
9ec83f14514f73e660ae8fbda32a3cc0348d0cb4
[ "Apache-2.0", "MIT" ]
null
null
null
flydra_analysis/flydra_analysis/a2/kdviewer.py
liyi2017/flydra
9ec83f14514f73e660ae8fbda32a3cc0348d0cb4
[ "Apache-2.0", "MIT" ]
1
2019-11-18T07:57:47.000Z
2019-11-18T07:57:47.000Z
from __future__ import division if 1: # deal with old files, forcing to numpy import tables.flavor tables.flavor.restrict_flavors(keep=['numpy']) import os, sys, math import warnings import pkg_resources from tvtk.api import tvtk from tvtk.common import configure_input_data import numpy import numpy as n...
38.825037
165
0.535835
6,153
53,035
4.397692
0.128718
0.010902
0.024945
0.002957
0.380687
0.29942
0.248309
0.219557
0.196755
0.176503
0
0.033951
0.364646
53,035
1,365
166
38.85348
0.769082
0.065975
0
0.316135
0
0.001876
0.094679
0.006048
0
0
0
0
0.003752
0
null
null
0.000938
0.023452
null
null
0.040338
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9f60bdd794cd662cbd883925c8025b2c7bf61851
16,921
py
Python
sdk/python/pulumi_keycloak/custom_identity_provider_mapping.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
13
2020-04-28T15:20:56.000Z
2022-03-24T18:00:17.000Z
sdk/python/pulumi_keycloak/custom_identity_provider_mapping.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
49
2020-02-06T17:53:35.000Z
2022-03-25T19:36:08.000Z
sdk/python/pulumi_keycloak/custom_identity_provider_mapping.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
2
2020-06-09T01:08:56.000Z
2021-12-07T15:30:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
48.207977
361
0.671651
2,032
16,921
5.376476
0.084154
0.130343
0.069199
0.054371
0.813272
0.794325
0.781419
0.765034
0.746362
0.710023
0
0.003018
0.236334
16,921
350
362
48.345714
0.842439
0.340228
0
0.653659
1
0
0.118416
0.073818
0
0
0
0
0
1
0.156098
false
0.004878
0.02439
0
0.273171
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9f61732eda6d7dac5bbeb9ede36117e8a4a6794b
2,895
py
Python
sktime/classification/interval_based/tests/test_stsf.py
tombh/sktime
53df0b9ed9d1fd800539165c414cc5611bcc56b3
[ "BSD-3-Clause" ]
1
2020-06-02T22:24:44.000Z
2020-06-02T22:24:44.000Z
sktime/classification/interval_based/tests/test_stsf.py
abhishek-parashar/sktime
1dfce6b41c2acdb576acfc04b09d11bf115c92d1
[ "BSD-3-Clause" ]
1
2020-11-20T13:51:20.000Z
2020-11-20T13:51:20.000Z
sktime/classification/interval_based/tests/test_stsf.py
abhishek-parashar/sktime
1dfce6b41c2acdb576acfc04b09d11bf115c92d1
[ "BSD-3-Clause" ]
3
2020-10-18T04:54:30.000Z
2021-02-15T18:04:18.000Z
# -*- coding: utf-8 -*- import numpy as np from sklearn.model_selection import train_test_split from sktime.classification.interval_based import SupervisedTimeSeriesForest from sktime.datasets import load_gunpoint, load_italy_power_demand def test_y_proba_on_gunpoint(): X, y = load_gunpoint(return_X_y=True) ...
20.531915
78
0.453541
332
2,895
3.698795
0.23494
0.035831
0.029316
0.022801
0.367264
0.289902
0.258958
0.174267
0.174267
0.141694
0
0.072673
0.42487
2,895
140
79
20.678571
0.664865
0.225561
0
0.590476
0
0
0.00406
0
0
0
0
0
0.019048
1
0.019048
false
0
0.038095
0
0.057143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f64abde377bef464d72b82d8d6a693e8b5b44e8
5,883
py
Python
epidag/fitting/alg/ga.py
TimeWz667/PyEpiDAG
b337922fa7748ec2245e1dc63e032c00a773f0d5
[ "MIT" ]
2
2019-11-23T08:01:43.000Z
2019-11-27T22:17:34.000Z
epidag/fitting/alg/ga.py
TimeWz667/PyEpiDAG
b337922fa7748ec2245e1dc63e032c00a773f0d5
[ "MIT" ]
null
null
null
epidag/fitting/alg/ga.py
TimeWz667/PyEpiDAG
b337922fa7748ec2245e1dc63e032c00a773f0d5
[ "MIT" ]
null
null
null
from epidag.fitting.alg.fitter import EvolutionaryFitter from epidag.fitting.alg.genetic import * from epidag.util import resample class GA(EvolutionaryFitter): DefaultParameters = { 'n_population': 100, 'n_generation': 20, 'p_mutation': 0.1, 'p_crossover': 0.1, ...
34.810651
100
0.540881
658
5,883
4.712766
0.194529
0.043534
0.043857
0.048371
0.344728
0.287972
0.287972
0.168978
0.154789
0.129636
0
0.010072
0.341832
5,883
168
101
35.017857
0.790806
0
0
0.302817
0
0
0.070166
0
0
0
0
0
0
1
0.077465
false
0
0.021127
0
0.119718
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f6530563c3eccbd2034ac0c73cb87871d851924
467
py
Python
start_pylogo_GUI_interpreter.py
obo/loev3go
763c6cf61133add914d231d07bc8c3c29672aba9
[ "MIT" ]
1
2018-09-05T20:57:40.000Z
2018-09-05T20:57:40.000Z
start_pylogo_GUI_interpreter.py
obo/loev3go
763c6cf61133add914d231d07bc8c3c29672aba9
[ "MIT" ]
null
null
null
start_pylogo_GUI_interpreter.py
obo/loev3go
763c6cf61133add914d231d07bc8c3c29672aba9
[ "MIT" ]
2
2019-10-05T23:02:41.000Z
2020-06-25T20:21:02.000Z
#!/usr/bin/python # # BROKEN # This script should run the traditional pylogo user inferface. # It worked well while pylogo was in python2 and relying on python mega widgets # (Pmw) version 1.3. Pmw1.3 is for python2 only and I don't have the time to # try getting Pmw2 running (https://pypi.org/project/Pmw/) # # remembe...
33.357143
79
0.747323
75
467
4.653333
0.773333
0.011461
0
0
0
0
0
0
0
0
0
0.022613
0.147752
467
13
80
35.923077
0.854271
0.865096
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
9f66bf25f13588e12d600e9f700150fcd272b5f0
88
py
Python
eNMRpy/Measurement/__init__.py
passteinforth/eNMRpy
d32c16295009b3ea56f1fea3e536483c5aa243f9
[ "BSD-3-Clause" ]
null
null
null
eNMRpy/Measurement/__init__.py
passteinforth/eNMRpy
d32c16295009b3ea56f1fea3e536483c5aa243f9
[ "BSD-3-Clause" ]
null
null
null
eNMRpy/Measurement/__init__.py
passteinforth/eNMRpy
d32c16295009b3ea56f1fea3e536483c5aa243f9
[ "BSD-3-Clause" ]
null
null
null
from .Pavel import Pavel #from .Juergen1 import Juergen1 #print('%s imported'%__name__)
22
31
0.772727
12
88
5.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0.025641
0.113636
88
3
32
29.333333
0.794872
0.670455
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9f685261b4f4107d45da7780eb8573f8cc5b37e4
54
py
Python
jigu/transform/tx.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
14
2020-03-03T06:46:39.000Z
2021-05-01T15:29:35.000Z
jigu/transform/tx.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
9
2020-03-09T06:36:30.000Z
2021-02-15T14:40:48.000Z
jigu/transform/tx.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
5
2020-05-30T22:38:34.000Z
2021-02-11T00:56:20.000Z
# TODO: Refactor merge-logging into TxInfoTransformer
27
53
0.833333
6
54
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
54
1
54
54
0.9375
0.944444
0
null
0
null
0
0
null
0
0
1
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
5
9f68a8d6b481867b34fa800daa31734a38bea9ac
25
py
Python
dlex_impl/image_classification/__init__.py
dvtrung/dl-torch
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
[ "MIT" ]
null
null
null
dlex_impl/image_classification/__init__.py
dvtrung/dl-torch
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
[ "MIT" ]
null
null
null
dlex_impl/image_classification/__init__.py
dvtrung/dl-torch
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
[ "MIT" ]
null
null
null
from .src.models import *
25
25
0.76
4
25
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.12
25
1
25
25
0.863636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9f6bf303889821547c65beb66af4566c417918d0
1,430
py
Python
scheduled_tasks/get_short_volume.py
lunarnautics/Stocksera
09c114f588e95be28068af88c525565fdb98f92b
[ "MIT" ]
null
null
null
scheduled_tasks/get_short_volume.py
lunarnautics/Stocksera
09c114f588e95be28068af88c525565fdb98f92b
[ "MIT" ]
null
null
null
scheduled_tasks/get_short_volume.py
lunarnautics/Stocksera
09c114f588e95be28068af88c525565fdb98f92b
[ "MIT" ]
null
null
null
import os import sys import sqlite3 import yfinance as yf sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from scheduled_tasks.get_popular_tickers import full_ticker_list from helpers import * conn = sqlite3.connect(r"database/database.db", check_same_thread=False) db = conn.cursor() def short_volum...
30.425532
86
0.620979
187
1,430
4.582888
0.550802
0.089848
0.070012
0.063011
0.053676
0
0
0
0
0
0
0.013587
0.227972
1,430
46
87
31.086957
0.762681
0.07972
0
0
0
0
0.207944
0
0
0
0
0
0
1
0.033333
false
0
0.2
0
0.233333
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f6dac5ae82b1ce12288b5d7a2879b4ebd3b8dde
521
py
Python
invetronic/wsgi.py
jejimenez/invetronic
999d58bc0224b6056b16d4e54fefcc81a22e334c
[ "MIT" ]
null
null
null
invetronic/wsgi.py
jejimenez/invetronic
999d58bc0224b6056b16d4e54fefcc81a22e334c
[ "MIT" ]
null
null
null
invetronic/wsgi.py
jejimenez/invetronic
999d58bc0224b6056b16d4e54fefcc81a22e334c
[ "MIT" ]
null
null
null
""" WSGI config for invetronic project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os, sys from django.core.wsgi import get_wsgi_application path = '/srv/www/vhosts/d...
21.708333
78
0.761996
76
521
5.144737
0.684211
0.051151
0.092072
0
0
0
0
0
0
0
0
0.006579
0.12476
521
23
79
22.652174
0.850877
0.416507
0
0
0
0
0.304054
0.239865
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f6de3b19ebc7fc96fbc744700209694000cf876
665
py
Python
data/data/process.py
CarryChang/EasyUse_FastApi
094c8d9dc8fdb3cf8bf935fa22abcfc86fe678fe
[ "Apache-2.0" ]
9
2020-02-23T02:11:19.000Z
2022-01-05T09:20:01.000Z
data/data/process.py
CarryChang/EasyUse_FastApi
094c8d9dc8fdb3cf8bf935fa22abcfc86fe678fe
[ "Apache-2.0" ]
1
2020-11-27T09:08:14.000Z
2020-11-27T09:08:14.000Z
data/data/process.py
CarryChang/Tetx-CNN-BaseLine
35a375cc48a91c2248eeae948b9377d2735f1743
[ "Apache-2.0" ]
2
2020-06-08T11:46:41.000Z
2020-07-23T09:03:14.000Z
#!/user/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2020/2/13 0013 20:08 # @Author : CarryChang # @Software: PyCharm # @email: coolcahng@gmail.com # @web :CarryChang.top path_list = ['neg_all.txt', 'pos_all.txt'] train_all = open('train_all.txt', 'w', encoding='utf-8') for path in path_list: if 'pos' in p...
33.25
68
0.572932
98
665
3.795918
0.510204
0.107527
0.096774
0.069892
0.322581
0.322581
0.322581
0.322581
0.322581
0.322581
0
0.043478
0.239098
665
19
69
35
0.6917
0.249624
0
0.333333
0
0
0.134146
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f6de4f781639cfd18a46fd2591bd03dbcbc6064
244
py
Python
dbt/adapters/databricks/column.py
troyel/dbt-databricks
6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b
[ "Apache-2.0" ]
38
2021-12-06T19:04:57.000Z
2022-03-28T08:08:14.000Z
dbt/adapters/databricks/column.py
troyel/dbt-databricks
6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b
[ "Apache-2.0" ]
36
2021-12-07T01:10:50.000Z
2022-03-31T00:37:25.000Z
dbt/adapters/databricks/column.py
troyel/dbt-databricks
6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b
[ "Apache-2.0" ]
11
2021-12-06T18:11:33.000Z
2022-03-22T10:36:15.000Z
from dataclasses import dataclass from dbt.adapters.spark.column import SparkColumn @dataclass class DatabricksColumn(SparkColumn): def __repr__(self) -> str: return "<DatabricksColumn {} ({})>".format(self.name, self.data_type)
24.4
77
0.741803
27
244
6.518519
0.740741
0
0
0
0
0
0
0
0
0
0
0
0.143443
244
9
78
27.111111
0.842105
0
0
0
0
0
0.106557
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
9f6f0bb875094707baeb0ff0fada95870451fa64
7,456
py
Python
moto/cloudtrail/responses.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
moto/cloudtrail/responses.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
1
2022-03-07T07:39:03.000Z
2022-03-07T07:39:03.000Z
moto/cloudtrail/responses.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
"""Handles incoming cloudtrail requests, invokes methods, returns responses.""" import json from moto.core.responses import BaseResponse from .models import cloudtrail_backends from .exceptions import InvalidParameterCombinationException class CloudTrailResponse(BaseResponse): """Handler for CloudTrail requests ...
39.036649
87
0.663358
826
7,456
5.594431
0.145278
0.051504
0.075308
0.045012
0.522181
0.454447
0.351655
0.297338
0.285869
0.236745
0
0.002149
0.251207
7,456
190
88
39.242105
0.825542
0.0228
0
0.293413
0
0
0.088171
0.029161
0
0
0
0
0
1
0.101796
false
0
0.023952
0
0.233533
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f701bc08c1c4dfe533065e4d0ee3002ac64f361
1,661
py
Python
c++basic/DATA_STRUCTURES/prime_mult.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
c++basic/DATA_STRUCTURES/prime_mult.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
c++basic/DATA_STRUCTURES/prime_mult.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from multiprocessing.pool import ThreadPool import datetime import numpy as np import math def __is_divisible__(a,b): if a%b == 0: return 1 return 0 def isPrime_n(a): #is prime noob k=0 for i in range(2,a-1): if __is_divisible__(a,i) == 1: k=1 break if k...
20.506173
73
0.5587
255
1,661
3.384314
0.25098
0.06489
0.069525
0.059096
0.282735
0.282735
0.24102
0.224797
0.1854
0.1854
0
0.036028
0.314871
1,661
81
74
20.506173
0.72232
0.05599
0
0.454545
0
0
0.026871
0
0
0
0
0
0
1
0.106061
false
0.015152
0.060606
0
0.30303
0.106061
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f712f6ff71dc51096f737b9d62d489f37f82586
271
py
Python
wsgi/iportalen_django/tags/admin.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
4
2016-09-21T17:06:01.000Z
2018-02-06T16:36:44.000Z
wsgi/iportalen_django/tags/admin.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
149
2016-03-07T23:50:47.000Z
2022-03-11T23:16:33.000Z
wsgi/iportalen_django/tags/admin.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
1
2016-03-07T23:02:06.000Z
2016-03-07T23:02:06.000Z
from utils.admin import HiddenModelAdmin, iportalen_admin_site, iportalen_superadmin_site from django.contrib import admin from .models import Tag # Register your models here. iportalen_admin_site.register(Tag, HiddenModelAdmin) iportalen_superadmin_site.register(Tag)
30.111111
89
0.859779
35
271
6.428571
0.428571
0.222222
0.16
0
0
0
0
0
0
0
0
0
0.088561
271
8
90
33.875
0.910931
0.095941
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
9f72d07184b02fae85ef939999767843755fa8d6
261
py
Python
2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py
solomonbstoner/solomonbston3r-ctf-diary
2eb5439b157ca0c97db313c9762c6b5d8a714a85
[ "Unlicense" ]
14
2018-04-01T00:52:42.000Z
2020-07-11T06:17:49.000Z
2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py
solomonbstoner/solomonbston3r-ctf-diary
2eb5439b157ca0c97db313c9762c6b5d8a714a85
[ "Unlicense" ]
5
2018-04-03T00:40:58.000Z
2021-06-02T13:37:43.000Z
2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py
solomonbstoner/solomonbston3r-ctf-diary
2eb5439b157ca0c97db313c9762c6b5d8a714a85
[ "Unlicense" ]
null
null
null
from pwn import remote r = remote('2018shell2.picoctf.com', 45008) r.recvuntil('Here is a sample cookie: ') encrypted_cookie = r.recvline()[:-1] for index in range(0, len(encrypted_cookie), 32): print "%d : %s"%(index, encrypted_cookie[index:index+32])
20.076923
59
0.701149
40
261
4.5
0.7
0.25
0
0
0
0
0
0
0
0
0
0.071111
0.137931
261
12
60
21.75
0.728889
0
0
0
0
0
0.208494
0.084942
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
9f74ee1b09a2b7f62368df7e3837e037cb648a61
11,277
py
Python
cloud_functions/big_query.py
aerosense-ai/data-gateway
019b8e4a114e16d363a3167171a457cefdbf004f
[ "Apache-2.0" ]
null
null
null
cloud_functions/big_query.py
aerosense-ai/data-gateway
019b8e4a114e16d363a3167171a457cefdbf004f
[ "Apache-2.0" ]
34
2021-12-20T14:51:57.000Z
2022-03-30T16:47:04.000Z
cloud_functions/big_query.py
aerosense-ai/data-gateway
019b8e4a114e16d363a3167171a457cefdbf004f
[ "Apache-2.0" ]
null
null
null
import copy import datetime import json import logging import uuid from blake3 import blake3 from google.cloud import bigquery from exceptions import ( ConfigurationAlreadyExists, InstallationWithSameNameAlreadyExists, SensorTypeWithSameReferenceAlreadyExists, ) logger = logging.getLogger(__name__) SE...
40.131673
233
0.632704
1,237
11,277
5.591754
0.175424
0.025445
0.020674
0.01012
0.32543
0.263843
0.250831
0.203123
0.171751
0.158161
0
0.001129
0.292808
11,277
280
234
40.275
0.866207
0.289527
0
0.217143
0
0
0.199658
0.058343
0
0
0
0
0
1
0.04
false
0
0.045714
0
0.102857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f754a28149b1273b74fae075d72f4e2b58600e3
234
py
Python
python/ucc21p2.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
1
2022-01-23T16:02:14.000Z
2022-01-23T16:02:14.000Z
python/ucc21p2.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
5
2022-01-23T00:16:49.000Z
2022-01-30T04:37:45.000Z
python/ucc21p2.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
1
2022-01-23T00:03:47.000Z
2022-01-23T00:03:47.000Z
N = int(input()) current = [] x = [] y = [] nums = [int(a) for a in input().split()] for n in nums: if n % 2 != 1: x.append(n) else: current.append(x) x = [] current.append(x) for l in current: y.append(sum(l)) print(max(y))
14.625
40
0.559829
44
234
2.977273
0.454545
0.198473
0.21374
0
0
0
0
0
0
0
0
0.010929
0.217949
234
16
41
14.625
0.704918
0
0
0.266667
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.066667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f75ffc9ee2d54982d194078b82ecf06638479b8
61
py
Python
audiotest.py
DeadpoolPancakes/lego-claptrap
fde1359288d0f554f4f36e08e716d1f9754e7c0e
[ "MIT" ]
null
null
null
audiotest.py
DeadpoolPancakes/lego-claptrap
fde1359288d0f554f4f36e08e716d1f9754e7c0e
[ "MIT" ]
null
null
null
audiotest.py
DeadpoolPancakes/lego-claptrap
fde1359288d0f554f4f36e08e716d1f9754e7c0e
[ "MIT" ]
null
null
null
import vlc p = vlc.MediaPlayer("file: Chirping.mp3") p.play()
20.333333
41
0.721311
10
61
4.4
0.8
0
0
0
0
0
0
0
0
0
0
0.018182
0.098361
61
3
42
20.333333
0.781818
0
0
0
0
0
0.290323
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9f76e95f35a4c7c1699943e77b916e89d7afdfbf
2,091
py
Python
src/EnvCNN/Exec/test_model.py
toppic-suite/envcnn
142d150e65b7fe7018904fa4536d2f1a7ece989d
[ "Apache-2.0" ]
1
2020-05-26T22:54:55.000Z
2020-05-26T22:54:55.000Z
src/EnvCNN/Exec/test_model.py
toppic-suite/envcnn
142d150e65b7fe7018904fa4536d2f1a7ece989d
[ "Apache-2.0" ]
null
null
null
src/EnvCNN/Exec/test_model.py
toppic-suite/envcnn
142d150e65b7fe7018904fa4536d2f1a7ece989d
[ "Apache-2.0" ]
null
null
null
##Copyright (c) 2014 - 2020, The Trustees of Indiana University. ## ##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 a...
40.211538
105
0.780488
327
2,091
4.788991
0.425076
0.030651
0.041507
0.030651
0.02682
0.02682
0
0
0
0
0
0.016103
0.109039
2,091
52
105
40.211538
0.824477
0.343376
0
0
0
0
0.106287
0
0
0
0
0
0
1
0
false
0
0.310345
0
0.310345
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9f771c23c9697d84a96b2b27ef3d9f1ad26ac3be
3,067
py
Python
fri/parameter_searcher.py
lpfann/fri
518e3b1419b0993272b9507d0dc01eee60afe26a
[ "MIT" ]
8
2017-04-26T13:47:51.000Z
2020-10-22T00:25:09.000Z
fri/parameter_searcher.py
lpfann/fri
518e3b1419b0993272b9507d0dc01eee60afe26a
[ "MIT" ]
77
2018-02-26T23:18:58.000Z
2022-03-01T13:10:09.000Z
fri/parameter_searcher.py
lpfann/fri
518e3b1419b0993272b9507d0dc01eee60afe26a
[ "MIT" ]
3
2019-04-26T10:17:10.000Z
2020-04-03T08:51:39.000Z
""" In this class we use hyperparameter search to find parameters needed in our model. Depending on the input model we sample parameters from a random distribution. The sampling rate can be increased. The model with the best internally defined accuracy is picked. To increase robustness we use cross ...
28.933962
86
0.637757
372
3,067
5.139785
0.36828
0.03295
0.028243
0.007322
0.016736
0.016736
0
0
0
0
0
0.005413
0.277144
3,067
105
87
29.209524
0.857014
0.338441
0
0.081967
0
0
0.048896
0
0
0
0
0
0
1
0.016393
false
0
0.114754
0
0.147541
0.131148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f799372036198fbf2f4c84b3580b761577152f6
1,077
py
Python
src/tests/test_alembic.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_alembic.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/tests/test_alembic.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ (c) 2017 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ from __future__ import unicode_literals, absolute_import import os import subprocess import unittest import six REPO_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) cla...
22.914894
77
0.632312
128
1,077
5.148438
0.640625
0.027314
0.060698
0
0
0
0
0
0
0
0
0.016888
0.230269
1,077
46
78
23.413043
0.778046
0.277623
0
0
0
0
0.062928
0
0
0
0
0
0.052632
1
0.052632
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f7ad8a0c0d260445ac3a15b25ab8646aeab048f
321
py
Python
Python3/1646-Get-Maximum-in-Generated-Array/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1646-Get-Maximum-in-Generated-Array/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1646-Get-Maximum-in-Generated-Array/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def getMaximumGenerated(self, n: int) -> int: if n <= 1: return n dp = [0, 1] for i in range(2, n + 1): if i % 2 == 0: dp.append(dp[i // 2]) else: dp.append(dp[i // 2] + dp[i // 2 + 1]) return max(dp)...
26.75
54
0.386293
45
321
2.755556
0.444444
0.064516
0.096774
0.177419
0.193548
0
0
0
0
0
0
0.064327
0.46729
321
11
55
29.181818
0.660819
0
0
0
1
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.363636
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9f7be5ac13d54e991255943765be1a6ff6ff65bc
335
py
Python
setup.py
ESS-uzh/geoRpro
ddc9c0a757c72a72685ec203f98a6166bef9331f
[ "MIT" ]
null
null
null
setup.py
ESS-uzh/geoRpro
ddc9c0a757c72a72685ec203f98a6166bef9331f
[ "MIT" ]
1
2022-03-12T00:56:02.000Z
2022-03-12T00:56:02.000Z
setup.py
ESS-uzh/geoRpro
ddc9c0a757c72a72685ec203f98a6166bef9331f
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='geoRpro', version='0.1', description='Library to process geo raster data', url='https://github.com/ESS-uzh/geoRpro.git', author='Diego Villamaina', author_email='diego.villamaina@geo.uzh.ch', license='MIT', packages=['geoRpro'], z...
27.916667
55
0.647761
42
335
5.119048
0.809524
0.139535
0
0
0
0
0
0
0
0
0
0.007491
0.202985
335
11
56
30.454545
0.797753
0
0
0
0
0
0.402985
0.080597
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9f7c5b8ae437b84529e4ceb74be74fe56162a39d
792
py
Python
data-processing/pwpp.py
tjwixtrom/verification
00b42da31502a06388f826c3de359d07997496dc
[ "BSD-3-Clause" ]
2
2020-03-24T20:30:11.000Z
2021-08-18T03:11:26.000Z
data-processing/pwpp.py
tjwixtrom/wrf-scripts
00b42da31502a06388f826c3de359d07997496dc
[ "BSD-3-Clause" ]
3
2018-07-25T16:33:09.000Z
2018-08-23T14:57:08.000Z
data-processing/pwpp.py
tjwixtrom/wrf-scripts
00b42da31502a06388f826c3de359d07997496dc
[ "BSD-3-Clause" ]
null
null
null
#!/home/twixtrom/miniconda3/envs/wrfpost/bin/python import sys from PWPP import wrfpost import numpy as np from metpy.units import units # import xarray as xr infile = sys.argv[1] outfile = sys.argv[2] variables = ['temp', 'dewpt', 'uwnd', 'vwnd', 'wwnd', ...
24
79
0.482323
85
792
4.423529
0.705882
0.058511
0
0
0
0
0
0
0
0
0
0.071138
0.378788
792
32
80
24.75
0.693089
0.114899
0
0
0
0
0.137536
0
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f7c75b19ac12c78114fee1f62eaa9cce9c12914
32,575
py
Python
gui/routes_neighbours_IF_all.py
ejwillemse/mcarptif_gui
3af127b75c3de483be22f5741d2c96a87dd58d6e
[ "MIT" ]
1
2020-02-27T04:08:48.000Z
2020-02-27T04:08:48.000Z
gui/routes_neighbours_IF_all.py
ejwillemse/mcarptif_gui
3af127b75c3de483be22f5741d2c96a87dd58d6e
[ "MIT" ]
2
2021-06-08T20:36:04.000Z
2022-01-13T01:50:59.000Z
gui/routes_neighbours_IF_all.py
ejwillemse/mcarptif_gui
3af127b75c3de483be22f5741d2c96a87dd58d6e
[ "MIT" ]
null
null
null
''' Created on 05 May 2010 @author: ejwillemse ''' from copy import deepcopy #=============================================================================== # #=============================================================================== class SinlgeRouteModifications(object): def __init__(self, in...
58.799639
345
0.626984
2,737
32,575
7.446474
0.089879
0.003827
0.003238
0.002944
0.610863
0.575438
0.543791
0.516363
0.473824
0.4488
0
0.025359
0.244605
32,575
553
346
58.905967
0.802902
0.026124
0
0.563008
0
0
0.046393
0.016695
0
0
0
0
0
1
0.054878
false
0
0.01626
0
0.077236
0.093496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f7daa0048e77d81249f36f7b52f95cdad281cfb
1,054
py
Python
wb_common/gsm.py
contactless/wb-common
401a1bafa1ccf401b79360f577c267128f135db3
[ "MIT" ]
null
null
null
wb_common/gsm.py
contactless/wb-common
401a1bafa1ccf401b79360f577c267128f135db3
[ "MIT" ]
null
null
null
wb_common/gsm.py
contactless/wb-common
401a1bafa1ccf401b79360f577c267128f135db3
[ "MIT" ]
1
2021-11-04T09:01:45.000Z
2021-11-04T09:01:45.000Z
# coding: utf-8 from __future__ import print_function import os import subprocess def gsm_decode(hexstr): return os.popen('echo %s | xxd -r -ps | iconv -f=UTF-16BE -t=UTF-8' % hexstr).read() def init_gsm(): retcode = subprocess.call("wb-gsm restart_if_broken", shell=True) if retcode != 0: raise ...
25.095238
88
0.652751
150
1,054
4.493333
0.433333
0.126113
0.080119
0.068249
0.204748
0.127596
0.127596
0.127596
0.127596
0
0
0.018182
0.217268
1,054
41
89
25.707317
0.798788
0.012334
0
0.068966
0
0.034483
0.183831
0
0
0
0
0
0
1
0.172414
false
0
0.103448
0.034483
0.37931
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f7eb4295b30dd333e36fd900eb43d8da500afdd
400
py
Python
downloadisimg/__main__.py
yaqoubihafsa/downloadimg
01e386e4db79faec01ad694d63487b044ea3b9dd
[ "MIT" ]
2
2021-04-26T21:34:25.000Z
2021-04-29T09:30:46.000Z
downloadisimg/__main__.py
yaqoubihafsa/downloadimg
01e386e4db79faec01ad694d63487b044ea3b9dd
[ "MIT" ]
null
null
null
downloadisimg/__main__.py
yaqoubihafsa/downloadimg
01e386e4db79faec01ad694d63487b044ea3b9dd
[ "MIT" ]
1
2021-04-29T11:54:30.000Z
2021-04-29T11:54:30.000Z
import requests def download(url, file_name): with open(file_name, 'wb') as handle: response = requests.get(url, stream=True) if not response.ok: print(response) for block in response.iter_content(1024): if not block: break handle.write(...
23.529412
49
0.5675
47
400
4.574468
0.617021
0.111628
0.139535
0.176744
0
0
0
0
0
0
0
0.015209
0.3425
400
17
50
23.529412
0.802281
0
0
0
0
0
0.024938
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f8113b4bbb8eca18371b717a2cd4d8f7bc38c2f
25,128
py
Python
iucn_sim/misc/transition_rates.py
tobiashofmann88/iucn_extinction_simulator
9953be13637fbc9c5ec629700dc1d4ee9ad8225c
[ "MIT" ]
11
2020-06-18T11:34:47.000Z
2021-07-25T17:38:52.000Z
iucn_sim/misc/transition_rates.py
tobiashofmann88/iucn_extinction_simulator
9953be13637fbc9c5ec629700dc1d4ee9ad8225c
[ "MIT" ]
null
null
null
iucn_sim/misc/transition_rates.py
tobiashofmann88/iucn_extinction_simulator
9953be13637fbc9c5ec629700dc1d4ee9ad8225c
[ "MIT" ]
2
2020-02-05T19:00:33.000Z
2021-08-09T21:07:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ MCMC-estimation of status transition rates from IUCN record Created on Mon Oct 28 14:43:44 2019 @author: Tobias Andermann (tobias.andermann@bioenv.gu.se) """ import numpy as np np.set_printoptions(suppress=True) import pandas as pd import os,sys import datetime from ...
51.810309
509
0.681869
3,597
25,128
4.269391
0.140395
0.021489
0.030084
0.034382
0.341603
0.260207
0.234095
0.177769
0.159146
0.122485
0
0.014443
0.214701
25,128
484
510
51.917355
0.763797
0.151425
0
0.211268
0
0.025352
0.193911
0.026068
0
0
0
0
0
1
0.022535
false
0
0.019718
0.002817
0.059155
0.04507
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f81af9271650118f900c91f75d7a50aaf4a6221
23
py
Python
compiler/sema/inference.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
25
2019-06-23T15:17:06.000Z
2020-06-05T22:41:21.000Z
compiler/sema/inference.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
null
null
null
compiler/sema/inference.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
3
2019-07-29T16:03:30.000Z
2019-10-04T15:00:32.000Z
""" Type inference """
5.75
14
0.565217
2
23
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
3
15
7.666667
0.684211
0.608696
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9f81c035924075c36830efac17c5f78c6246f6ef
1,904
py
Python
AmEl_Tourism/application/routes/actions/admin/user_actions.py
Amirelkanov/AmEl_Tourism
136445335bd8de4007ff2c7106fd97dd3a6c7bc1
[ "Apache-2.0" ]
null
null
null
AmEl_Tourism/application/routes/actions/admin/user_actions.py
Amirelkanov/AmEl_Tourism
136445335bd8de4007ff2c7106fd97dd3a6c7bc1
[ "Apache-2.0" ]
null
null
null
AmEl_Tourism/application/routes/actions/admin/user_actions.py
Amirelkanov/AmEl_Tourism
136445335bd8de4007ff2c7106fd97dd3a6c7bc1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ User related actions """ from flask import Blueprint, render_template, redirect, abort from ....data.users import User from ....extensions.init_models import db from ....extensions.is_admin_decorator import is_user_admin # User actions Blueprint registration user_action...
35.924528
76
0.657563
257
1,904
4.618677
0.338521
0.075821
0.065712
0.035383
0.038753
0
0
0
0
0
0
0.003394
0.226366
1,904
52
77
36.615385
0.802444
0.204832
0
0.071429
0
0
0.135744
0.07708
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f81da4c63fbbc428e76768743c4b5f29dce19d1
4,200
py
Python
models/eligibility_trace_tf/ai/legacy/maczikasz/tf/ai_self_tf.py
qLience/AI-Pump-for-Underfloor-Heating-systems
9696f36b59d2821bd5f61b2304b43406d7d9c549
[ "MIT" ]
31
2018-07-23T17:50:42.000Z
2022-02-23T18:25:52.000Z
models/eligibility_trace_tf/ai/legacy/maczikasz/tf/ai_self_tf.py
qLience/AI-Pump-for-Underfloor-Heating-systems
9696f36b59d2821bd5f61b2304b43406d7d9c549
[ "MIT" ]
null
null
null
models/eligibility_trace_tf/ai/legacy/maczikasz/tf/ai_self_tf.py
qLience/AI-Pump-for-Underfloor-Heating-systems
9696f36b59d2821bd5f61b2304b43406d7d9c549
[ "MIT" ]
9
2018-07-23T17:50:45.000Z
2020-07-31T13:31:14.000Z
import os import shutil import numpy as np import tensorflow as tf import tensorflow.contrib.slim as slim from future.utils import lmap HIDDEN_LAYER_SIZE = 30 class Dqn(): def __init__(self, input_size, nb_action, gamma): try: shutil.rmtree("train/") except OSError: print...
38.888889
121
0.63119
527
4,200
4.87666
0.288425
0.02179
0.029183
0.028016
0.187549
0.094553
0.058366
0.028794
0.028794
0
0
0.012365
0.249048
4,200
107
122
39.252336
0.802473
0.009286
0
0
0
0
0.025246
0
0
0
0
0
0
1
0.111111
false
0
0.08642
0.012346
0.259259
0.049383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f8350f70b6f8dafed5548685a85ca086bcc158b
3,022
py
Python
tests/base.py
TheSecEng/MarkdownTOC
7c69137249820dc586fd90b58fca2f34c54f2abc
[ "MIT" ]
null
null
null
tests/base.py
TheSecEng/MarkdownTOC
7c69137249820dc586fd90b58fca2f34c54f2abc
[ "MIT" ]
1
2020-05-24T11:44:49.000Z
2020-05-24T11:44:49.000Z
tests/base.py
TheSecEng/MarkdownTOC
7c69137249820dc586fd90b58fca2f34c54f2abc
[ "MIT" ]
null
null
null
# coding:utf-8 # import os import re import sublime from unittest import TestCase VERSION = sublime.version() class TestBase(TestCase): '''Super class includes common settings and functions. This class doesn't include any tests.''' def setUp(self): self.view = sublime.active_window().new_file() ...
31.154639
105
0.592323
386
3,022
4.507772
0.326425
0.082759
0.029885
0.032184
0.218391
0.135632
0.068966
0.04023
0.04023
0.04023
0
0.010724
0.259431
3,022
96
106
31.479167
0.766756
0.241562
0
0.122449
0
0.020408
0.124221
0.089938
0
0
0
0
0.122449
1
0.204082
false
0
0.061224
0.020408
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9f85c5b9d85675a45d1e838874bc342de58b5641
1,597
py
Python
jetblack-auth/src/jetblack_auth/server.py
rob-blackbourn/scratch-python
c61582f334726c17bbe23a185e63d913d0151392
[ "MIT" ]
null
null
null
jetblack-auth/src/jetblack_auth/server.py
rob-blackbourn/scratch-python
c61582f334726c17bbe23a185e63d913d0151392
[ "MIT" ]
10
2019-12-29T01:55:32.000Z
2022-02-26T12:45:06.000Z
jetblack-auth/src/jetblack_auth/server.py
rob-blackbourn/scratch-python
c61582f334726c17bbe23a185e63d913d0151392
[ "MIT" ]
null
null
null
from bareasgi import Application import bareasgi_jinja2 from easydict import EasyDict as edict import jinja2 import pkg_resources import yaml from .yaml import initialize_types from .auth_controller import AuthController from .auth_service import AuthService from .jwt_authentication import JwtAuthentication def make_...
28.517857
116
0.715091
185
1,597
5.940541
0.389189
0.032757
0.043676
0.050955
0.072793
0.072793
0
0
0
0
0
0.012442
0.19474
1,597
55
117
29.036364
0.842146
0.116468
0
0
0
0
0.038489
0
0
0
0
0
0
1
0.027778
false
0
0.277778
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f86a38a2ce9e36d0af46bb971cdb51b127a17b0
2,530
py
Python
appoppy/zernike_mask.py
lbusoni/appoppy
988670675ade8c49fada185433a79d2c42d41ed6
[ "MIT" ]
null
null
null
appoppy/zernike_mask.py
lbusoni/appoppy
988670675ade8c49fada185433a79d2c42d41ed6
[ "MIT" ]
null
null
null
appoppy/zernike_mask.py
lbusoni/appoppy
988670675ade8c49fada185433a79d2c42d41ed6
[ "MIT" ]
null
null
null
import numpy as np import poppy from poppy.optics import AnalyticImagePlaneElement from poppy.poppy_core import Wavefront, PlaneType, BaseWavefront from astropy import units as u class ZernikeMaskWFS(object): def __init__(self, name='Zernike Mask WFS', radius_in_arcsec=0.010, ...
31.625
97
0.604348
306
2,530
4.803922
0.372549
0.081633
0.038095
0.020408
0.095238
0.042177
0.042177
0
0
0
0
0.011986
0.30751
2,530
79
98
32.025316
0.827055
0.157312
0
0.117647
0
0
0.053365
0
0
0
0
0
0.019608
1
0.078431
false
0
0.098039
0
0.235294
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f86f64dde4ad463621a62804a52d5154ebe8162
129
py
Python
src/models/backtest/__init__.py
webclinic017/advisor_app
9cdab4aca19e193850943ef8308bad5c5ea0415d
[ "MIT" ]
null
null
null
src/models/backtest/__init__.py
webclinic017/advisor_app
9cdab4aca19e193850943ef8308bad5c5ea0415d
[ "MIT" ]
null
null
null
src/models/backtest/__init__.py
webclinic017/advisor_app
9cdab4aca19e193850943ef8308bad5c5ea0415d
[ "MIT" ]
null
null
null
from .A1 import get_ticker_data, calc_moving_average, ma_backtest, plot from .vectorized_backtest import The_Vectorized_Backtest
43
71
0.875969
19
129
5.526316
0.736842
0.342857
0
0
0
0
0
0
0
0
0
0.008475
0.085271
129
2
72
64.5
0.881356
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
9f88024724e132d6e230582a3eb5f4b5557d2188
144
py
Python
linking/admin.py
thodel/heraldik
5be41c9a63f971723f8601757d554a4759eba48e
[ "MIT" ]
null
null
null
linking/admin.py
thodel/heraldik
5be41c9a63f971723f8601757d554a4759eba48e
[ "MIT" ]
1
2020-06-16T10:12:48.000Z
2020-06-17T11:58:14.000Z
linking/admin.py
thodel/heraldik
5be41c9a63f971723f8601757d554a4759eba48e
[ "MIT" ]
1
2020-06-16T09:50:58.000Z
2020-06-16T09:50:58.000Z
from django.contrib import admin from .models import NormEntry, MissingEntry admin.site.register(NormEntry) admin.site.register(MissingEntry)
20.571429
43
0.833333
18
144
6.666667
0.555556
0.15
0.283333
0
0
0
0
0
0
0
0
0
0.090278
144
6
44
24
0.916031
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9f890cd882c237997b0c743b4908f9bf3d495cd8
2,192
py
Python
csv_to_plots.py
koshini/polya-social-contagion
ad3915a59611589160e5c7f5e6a1d82489e6e1b2
[ "MIT" ]
null
null
null
csv_to_plots.py
koshini/polya-social-contagion
ad3915a59611589160e5c7f5e6a1d82489e6e1b2
[ "MIT" ]
1
2019-04-03T20:45:05.000Z
2019-04-07T18:06:13.000Z
csv_to_plots.py
koshini/polya-social-contagion
ad3915a59611589160e5c7f5e6a1d82489e6e1b2
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np strat_list = [] topology = 'facebook' folder = 'pre-cured-equal/' strat_list.append({ 'red_strat': 'bot', 'black_strat': 'uniform', }) strat_list.append({ 'red_strat': 'bot', 'black_strat': 'pure_centrality_threshold', }) strat_list.append({ 're...
27.4
133
0.667427
295
2,192
4.735593
0.267797
0.100215
0.064424
0.077309
0.502505
0.387974
0.387974
0.353615
0.227631
0.164639
0
0.012596
0.166971
2,192
79
134
27.746835
0.752464
0.268248
0
0.387755
0
0
0.251576
0.015763
0
0
0
0
0
1
0
false
0
0.040816
0
0.040816
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f898b3b762422949258d1f7a15923f41bef3e41
3,049
py
Python
examples/apps/python/com/nvidia/spark/examples/taxi/pre_process.py
acaldwell-pixel/spark-xgboost-examples
01996046413a7666f8730464ea85ccf26d646171
[ "Apache-2.0" ]
48
2020-06-11T07:49:47.000Z
2022-03-27T13:57:41.000Z
examples/apps/python/com/nvidia/spark/examples/taxi/pre_process.py
acaldwell-pixel/spark-xgboost-examples
01996046413a7666f8730464ea85ccf26d646171
[ "Apache-2.0" ]
23
2020-06-11T07:51:42.000Z
2021-12-10T19:04:48.000Z
examples/apps/python/com/nvidia/spark/examples/taxi/pre_process.py
acaldwell-pixel/spark-xgboost-examples
01996046413a7666f8730464ea85ccf26d646171
[ "Apache-2.0" ]
26
2020-06-11T06:55:15.000Z
2021-09-06T08:28:01.000Z
# # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.784946
94
0.652673
384
3,049
4.986979
0.427083
0.093995
0.05483
0.029765
0.067885
0
0
0
0
0
0
0.024628
0.227616
3,049
92
95
33.141304
0.788535
0.197114
0
0.029412
0
0
0.17318
0
0
0
0
0
0
1
0.102941
false
0.014706
0.058824
0.029412
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f8d02f1cbdcab45e866434955bba41b200ffdf4
977
py
Python
psq/storage.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
210
2015-07-29T16:50:01.000Z
2022-03-02T15:24:52.000Z
psq/storage.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
60
2015-12-03T23:15:57.000Z
2021-01-21T09:25:42.000Z
psq/storage.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
47
2015-12-21T06:09:36.000Z
2021-09-04T13:20:21.000Z
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.516129
75
0.716479
151
977
4.602649
0.622517
0.086331
0.051799
0.046043
0.051799
0
0
0
0
0
0
0.010471
0.218014
977
30
76
32.566667
0.899215
0.774821
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.428571
false
0.428571
0
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
9f8d2b5e9874c1c6314b2c9e8593fcd0669de315
2,045
py
Python
ocean_lib/web3_internal/test/test_contract_base.py
PosthumanMarket/ocean.py
e53f31934722ada2d3ff7d6d6fc18b82d9fa1790
[ "Apache-2.0" ]
null
null
null
ocean_lib/web3_internal/test/test_contract_base.py
PosthumanMarket/ocean.py
e53f31934722ada2d3ff7d6d6fc18b82d9fa1790
[ "Apache-2.0" ]
null
null
null
ocean_lib/web3_internal/test/test_contract_base.py
PosthumanMarket/ocean.py
e53f31934722ada2d3ff7d6d6fc18b82d9fa1790
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 import pytest from ocean_lib.ocean.util import to_base_18 from ocean_lib.web3_internal.contract_base import ContractBase from ocean_lib.web3_internal.contract_handler import ContractHandler from ocean_lib.web3_internal.wallet import Wal...
32.460317
81
0.733007
259
2,045
5.637066
0.409266
0.053425
0.032877
0.032877
0.060274
0.043836
0
0
0
0
0
0.012099
0.191687
2,045
62
82
32.983871
0.871143
0.235697
0
0.142857
0
0
0.04519
0
0
0
0
0.016129
0.314286
1
0.142857
false
0
0.171429
0.028571
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
1
0
0
0
0
0
0
0
0
0
0
1
9f8d721fb908b7279e3d665b4c472cbbf4668ed1
2,207
py
Python
lyricsbot/domains/genius/genius.py
Kermitofx/lyricsbot
2338ccbdf91ae17030b5d2c5c49bae8e5dea3c92
[ "MIT" ]
6
2019-12-21T20:17:43.000Z
2021-04-21T12:41:15.000Z
lyricsbot/domains/genius/genius.py
Kermitofx/lyricsbot
2338ccbdf91ae17030b5d2c5c49bae8e5dea3c92
[ "MIT" ]
97
2019-07-29T21:06:34.000Z
2021-07-29T03:16:25.000Z
lyricsbot/domains/genius/genius.py
anastasia-bilova/lyricsbot
215d0d71755ae2296f28eee9d0e18efc708c10dd
[ "MIT" ]
3
2020-05-03T09:11:18.000Z
2021-04-13T04:55:18.000Z
""" Get the song lyrics via users' data from genius.com. """ import requests from bs4 import BeautifulSoup try: from domains.genius.config import GENIUS_DOWNLOAD_URL from domains.genius.utils import ( make_suitable_url_parameters, remove_punctuation_symbols, ) from domains.songlyrics.so...
29.824324
86
0.746262
295
2,207
5.271186
0.332203
0.057878
0.03537
0.064309
0.353055
0.232797
0.232797
0.232797
0.173633
0.099035
0
0.005562
0.185319
2,207
73
87
30.232877
0.859288
0.164024
0
0.1
0
0
0.053691
0
0
0
0
0
0
1
0.075
false
0
0.2
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
9f8db4407bcccc114bf3d2c11d7ac00daed1c46e
451
py
Python
vim/vimfiles/python3/vim_custom_actions.py
sharat87/lawn
758a0d442eba66a802295ad694d6b31a1d4c5549
[ "MIT" ]
5
2015-02-03T15:01:37.000Z
2021-06-07T05:20:31.000Z
vim/vimfiles/python3/vim_custom_actions.py
sharat87/lawn
758a0d442eba66a802295ad694d6b31a1d4c5549
[ "MIT" ]
null
null
null
vim/vimfiles/python3/vim_custom_actions.py
sharat87/lawn
758a0d442eba66a802295ad694d6b31a1d4c5549
[ "MIT" ]
2
2016-04-15T16:04:27.000Z
2016-09-12T07:43:30.000Z
import vim # Setup `vartabstop` so that columns line up. vim.command('command! TabsLineUp py3 ' + __name__ + '.tabs_line_up()') def tabs_line_up(): lengths = [] for line in vim.current.buffer: if '\t' not in line: continue parts = line.split('\t') lengths.app...
26.529412
98
0.5898
62
451
4.16129
0.580645
0.069767
0.077519
0
0
0
0
0
0
0
0
0.006024
0.263858
451
16
99
28.1875
0.771084
0.095344
0
0
0
0
0.138462
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f8e9e3452f88786221265e70d18d375315b68a1
2,397
py
Python
RiverSizes/river_sizes_example.py
ulrickpsp/InterviewQuestions
915f0270553b6fe0dd32504caed4f0cb9aad48f8
[ "MIT" ]
null
null
null
RiverSizes/river_sizes_example.py
ulrickpsp/InterviewQuestions
915f0270553b6fe0dd32504caed4f0cb9aad48f8
[ "MIT" ]
null
null
null
RiverSizes/river_sizes_example.py
ulrickpsp/InterviewQuestions
915f0270553b6fe0dd32504caed4f0cb9aad48f8
[ "MIT" ]
null
null
null
# You are given a two-dimensional array of potentially unequal height and width. # It contains only 0s and 1s. This array represents a map: 0s are land, and 1s are water. # A "river" on this map consists of any number of contiguous, adjacent water squares, # where "adjacent" means "above", "below", "to the left of",...
34.73913
139
0.583646
361
2,397
3.825485
0.362881
0.023172
0.019551
0.017379
0.165822
0.134685
0.062998
0.020999
0.013034
0
0
0.043224
0.285774
2,397
68
140
35.25
0.763435
0.441802
0
0
0
0
0.101942
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.192308
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
9f9031c94032aa9615c2643ade9e484c1f892e05
4,795
py
Python
accounts/migrations/0024_auto_20170814_1542.py
enrobyn/lookit-api
621fbb8b25100a21fd94721d39003b5d4f651dc5
[ "MIT" ]
null
null
null
accounts/migrations/0024_auto_20170814_1542.py
enrobyn/lookit-api
621fbb8b25100a21fd94721d39003b5d4f651dc5
[ "MIT" ]
null
null
null
accounts/migrations/0024_auto_20170814_1542.py
enrobyn/lookit-api
621fbb8b25100a21fd94721d39003b5d4f651dc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-08-14 15:42 from __future__ import unicode_literals from django.db import migrations, models import django_countries.fields import multiselectfield.db.fields class Migration(migrations.Migration): dependencies = [ ('accounts', '0023_demographi...
61.474359
581
0.58123
528
4,795
5.189394
0.352273
0.087591
0.109489
0.127007
0.536131
0.519343
0.374818
0.357664
0.268613
0.183942
0
0.102754
0.212513
4,795
77
582
62.272727
0.622881
0.014181
0
0.514286
1
0
0.359441
0.017358
0
0
0
0
0
1
0
false
0
0.057143
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f90dce216cd6a9d28853182b97519922737f125
485
py
Python
backend/api/v1/Datasets.py
JanVargovsky/masters-thesis
f12e323a2f2079b9b5f9618d10ed3f56a20b271a
[ "MIT" ]
4
2019-03-15T09:00:12.000Z
2020-02-14T07:12:23.000Z
backend/api/v1/Datasets.py
JanVargovsky/masters-thesis
f12e323a2f2079b9b5f9618d10ed3f56a20b271a
[ "MIT" ]
2
2020-01-28T22:36:42.000Z
2020-09-25T23:17:44.000Z
backend/api/v1/Datasets.py
JanVargovsky/masters-thesis
f12e323a2f2079b9b5f9618d10ed3f56a20b271a
[ "MIT" ]
null
null
null
from flask_restplus import Namespace, Resource, fields, marshal_with from infrastructure.DatasetUtils import get_datasets api = Namespace('datasets') resource_fields = { 'name': fields.String, 'type': fields.String, 'size': fields.Integer, 'createdAt': fields.DateTime('iso8601'), 'lastModifiedAt'...
23.095238
68
0.709278
53
485
6.358491
0.54717
0.124629
0.124629
0
0
0
0
0
0
0
0
0.019608
0.158763
485
20
69
24.25
0.806373
0
0
0
0
0
0.117526
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0.066667
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
9f90e0c5367fcd27888e14d6b517367703fbef4d
946
py
Python
airtech/helpers/tickets_notification.py
sam-karis/airtech
8e1cd7a9821719d27db046218625d70daaa46139
[ "MIT" ]
null
null
null
airtech/helpers/tickets_notification.py
sam-karis/airtech
8e1cd7a9821719d27db046218625d70daaa46139
[ "MIT" ]
4
2021-03-18T23:42:26.000Z
2022-02-10T12:36:23.000Z
airtech/helpers/tickets_notification.py
sam-karis/airtech
8e1cd7a9821719d27db046218625d70daaa46139
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta from airtech.apps.tickets.models import Ticket def get_tickets_remaining_one_day(): # Get all tickets remaing less than 24 hours yesterday = date.today() - timedelta(days=1) all_awaiting_tickets = Ticket.objects.filter( notification_sent=False, statu...
37.84
65
0.714588
114
946
5.622807
0.464912
0.042122
0.060842
0.117005
0
0
0
0
0
0
0
0.013459
0.214588
946
24
66
39.416667
0.84926
0.044397
0
0
0
0
0.018847
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f93196157c117799439d265aa74b2356c4ef5e1
19
py
Python
pylut/__init__.py
ardhitama/pylut
c40ad2be9c5698fff9a8e034462130e2bf9f8ced
[ "MIT" ]
93
2015-01-15T15:34:08.000Z
2021-11-04T08:09:28.000Z
pylut/__init__.py
ardhitama/pylut
c40ad2be9c5698fff9a8e034462130e2bf9f8ced
[ "MIT" ]
7
2016-12-15T16:33:45.000Z
2019-11-22T22:08:19.000Z
pylut/__init__.py
ardhitama/pylut
c40ad2be9c5698fff9a8e034462130e2bf9f8ced
[ "MIT" ]
33
2015-04-26T15:45:10.000Z
2021-06-21T16:13:11.000Z
from pylut import *
19
19
0.789474
3
19
5
1
0
0
0
0
0
0
0
0
0
0
0
0.157895
19
1
19
19
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
9f934cb5a2a3ed20f9d360c7330c91bdf7345d36
1,029
py
Python
src/warp.py
yashgorana/lane-detection-advanced
83201bc275e7a767220fb478dd902e3b96b39e68
[ "MIT" ]
1
2021-07-01T12:45:26.000Z
2021-07-01T12:45:26.000Z
src/warp.py
yashgorana/lane-detection-advanced
83201bc275e7a767220fb478dd902e3b96b39e68
[ "MIT" ]
null
null
null
src/warp.py
yashgorana/lane-detection-advanced
83201bc275e7a767220fb478dd902e3b96b39e68
[ "MIT" ]
null
null
null
import cv2 import numpy as np class Warp: @staticmethod def warp_image(img, tx_src, tx_dest, **kwargs): img_size = (img.shape[1], img.shape[0]) tx_src = tx_src.astype(np.float32) tx_dest = tx_dest.astype(np.float32) # Calculate the transformation matrix and it's inverse transf...
36.75
80
0.649174
146
1,029
4.376712
0.390411
0.054773
0.043818
0.034429
0.250391
0.097027
0.097027
0.097027
0.097027
0
0
0.08625
0.222546
1,029
27
81
38.111111
0.7125
0.125364
0
0.25
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f93c98abb0b91b0a7fddf973c3d2b81cec9e629
671
py
Python
djangobb_forum/decorators.py
dboczek/DjangoBB
80c42274839714f0cc6c4529ba1b44ae5e4e03c1
[ "BSD-3-Clause" ]
null
null
null
djangobb_forum/decorators.py
dboczek/DjangoBB
80c42274839714f0cc6c4529ba1b44ae5e4e03c1
[ "BSD-3-Clause" ]
null
null
null
djangobb_forum/decorators.py
dboczek/DjangoBB
80c42274839714f0cc6c4529ba1b44ae5e4e03c1
[ "BSD-3-Clause" ]
null
null
null
from django.utils.decorators import available_attrs from functools import wraps def require_unbanned_user(view_func): """ Marks view function to be checked by Ban middleware """ def wrapped_view(*args, **kwargs): ...
44.733333
172
0.450075
53
671
5.433962
0.566038
0.111111
0
0
0
0
0
0
0
0
0
0
0.499255
671
14
173
47.928571
0.857143
0.076006
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
9f960b48b34eeaa3db6455744a61a292fbb4f6b1
1,609
py
Python
maoyantop100/spider.py
agandong4/some_simple_demos
5e95359e8d002a74fc11d6173f79ffb6a7d0c415
[ "MIT" ]
2
2019-05-11T10:52:24.000Z
2019-05-11T10:52:29.000Z
maoyantop100/spider.py
agandong4/some_simple_demos
5e95359e8d002a74fc11d6173f79ffb6a7d0c415
[ "MIT" ]
null
null
null
maoyantop100/spider.py
agandong4/some_simple_demos
5e95359e8d002a74fc11d6173f79ffb6a7d0c415
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 ''' @author: agandong4 @license: (C) Copyright 2013-2019, Node Supply Chain Manager Corporation Limited. @contact: agandong4@gmail.com @software: garner @file: spider.py @time: 2019-03-12 21:39 @desc: ''' import requests from requests.exceptions import RequestException import re...
26.816667
89
0.566812
208
1,609
4.278846
0.567308
0.031461
0.026966
0.029213
0
0
0
0
0
0
0
0.035801
0.236172
1,609
60
90
26.816667
0.688365
0.14481
0
0
0
0
0.203216
0.145468
0
0
0
0
0
1
0.102564
false
0
0.128205
0
0.282051
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f9618c1cd60f827df7acaa7d06b275554086411
15,627
py
Python
arne_application/scripts/application.py
fzi-forschungszentrum-informatik/ArNe
c542ae65393fc61c0d3833142f035cbb05f43c12
[ "ECL-2.0", "Apache-2.0" ]
2
2022-02-19T00:09:15.000Z
2022-03-13T13:33:36.000Z
arne_application/scripts/application.py
fzi-forschungszentrum-informatik/ArNe
c542ae65393fc61c0d3833142f035cbb05f43c12
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
arne_application/scripts/application.py
fzi-forschungszentrum-informatik/ArNe
c542ae65393fc61c0d3833142f035cbb05f43c12
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ################################################################################ # Copyright 2022 FZI Research Center for Information Technology # # 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...
47.788991
138
0.587573
1,756
15,627
5.116743
0.267654
0.021035
0.020033
0.021035
0.240512
0.169171
0.140011
0.129883
0.120757
0.088258
0
0.007638
0.254367
15,627
326
139
47.935583
0.763474
0.399053
0
0.148387
0
0
0.073217
0.012408
0
0
0
0.003067
0
1
0.03871
false
0.012903
0.090323
0.006452
0.180645
0.006452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f96ec50aeeb83da3c3e033942a91093292200e6
1,244
py
Python
string/myAtoi.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
string/myAtoi.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
string/myAtoi.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
# 请你来实现一个 atoi 函数,使其能将字符串转换成整数。 # 首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。接下来的转化规则如下: # 如果第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字字符组合起来,形成一个有符号整数。 # 假如第一个非空字符是数字,则直接将其与之后连续的数字字符组合起来,形成一个整数。 # 该字符串在有效的整数部分之后也可能会存在多余的字符,那么这些字符可以被忽略,它们对函数不应该造成影响。 # 注意:假如该字符串中的第一个非空格字符不是一个有效整数字符、字符串为空或字符串仅包含空白字符时,则你的函数不需要进行转换,即无法进行有效转换。 # 在任何...
23.037037
109
0.599678
168
1,244
4.327381
0.357143
0.115543
0.077029
0.037139
0.094911
0.094911
0.094911
0.060523
0
0
0
0.035595
0.277331
1,244
54
110
23.037037
0.768632
0.371383
0
0.21875
0
0
0.007772
0
0
0
0
0
0
1
0.03125
false
0
0
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
9f9a0b61ff32757836168968077b2a2899c33f18
1,635
py
Python
myQuery.py
enessayaci/semantic-web
c63b3fc57918cedb5716902e7b4d6706dfefb473
[ "Apache-2.0" ]
null
null
null
myQuery.py
enessayaci/semantic-web
c63b3fc57918cedb5716902e7b4d6706dfefb473
[ "Apache-2.0" ]
null
null
null
myQuery.py
enessayaci/semantic-web
c63b3fc57918cedb5716902e7b4d6706dfefb473
[ "Apache-2.0" ]
null
null
null
import owl as owl import rdflib import json from flask import Flask, render_template, jsonify, request from rdflib.plugins.sparql import prepareQuery from rdflib.graph import Graph def stringFilter(s): start = "(" end = "" return s[s.find(start) + len(start):s.rfind(end)] def search(key): g...
31.442308
97
0.439755
134
1,635
5.358209
0.477612
0.054318
0
0
0
0
0
0
0
0
0
0.01496
0.468502
1,635
51
98
32.058824
0.811277
0
0
0.052632
0
0
0.453569
0
0
0
0
0
0
1
0.052632
false
0
0.157895
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
9f9b358a6c94e4d5c207b9a1c485f3b1e6bc8098
1,254
py
Python
sipnpuff.py
caternuson/SipPuff
9ce40b723e60d960e723723209fa281008d2cdbc
[ "MIT" ]
null
null
null
sipnpuff.py
caternuson/SipPuff
9ce40b723e60d960e723723209fa281008d2cdbc
[ "MIT" ]
null
null
null
sipnpuff.py
caternuson/SipPuff
9ce40b723e60d960e723723209fa281008d2cdbc
[ "MIT" ]
null
null
null
import time import board, busio import adafruit_mprls i2c = busio.I2C(board.SCL, board.SDA) mpr = adafruit_mprls.MPRLS(i2c) THRESH_LOW = 10 # delta in hPa THRESH_HIGH = 10 # delta in hPa def pressure_sensor_init(count=10, delay=0.1): reading = 0 for _ in range(count): reading += mpr.pressure ...
26.125
80
0.614035
161
1,254
4.614907
0.341615
0.072678
0.076716
0.032301
0.099596
0.099596
0.099596
0.099596
0.099596
0.099596
0
0.028637
0.303828
1,254
48
81
26.125
0.822451
0.138756
0
0.15625
0
0
0.027128
0
0
0
0
0
0
1
0.03125
false
0
0.09375
0
0.15625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f9b483831d904f63ca10a7706e23f7bc9e79b98
6,432
py
Python
onapy/detector3d.py
xiong-jie-y/onapy
50b588d014dc24cd4876c784c8e69fba4eaf547e
[ "MIT" ]
6
2021-03-23T14:44:33.000Z
2021-03-24T05:37:20.000Z
onapy/detector3d.py
xiong-jie-y/onapy
50b588d014dc24cd4876c784c8e69fba4eaf547e
[ "MIT" ]
null
null
null
onapy/detector3d.py
xiong-jie-y/onapy
50b588d014dc24cd4876c784c8e69fba4eaf547e
[ "MIT" ]
null
null
null
from collections import deque from onapy.tracker2d import TrackDetectionFusedTracker from onapy.tracker3d import create_tracker, get_tracker_names import time import click import cv2 (major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.') print(cv2.__version__) import cupoch as cph from mmcv.runner impor...
36.545455
154
0.603078
806
6,432
4.544665
0.227047
0.028392
0.036036
0.01911
0.323778
0.323778
0.29484
0.27846
0.27846
0.27846
0
0.032108
0.297886
6,432
176
155
36.545455
0.779008
0.13977
0
0.366667
0
0
0.040872
0
0
0
0
0
0
1
0.041667
false
0.016667
0.116667
0
0.2
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f9b48d238653cbf09af61f06eb06f93e9aa168a
589
py
Python
cookbook/c05/p12_file_existence.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
3
2018-09-19T06:44:13.000Z
2019-03-24T10:07:07.000Z
cookbook/c05/p12_file_existence.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
2
2020-09-19T17:10:23.000Z
2020-10-17T16:43:52.000Z
cookbook/c05/p12_file_existence.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
1
2020-12-22T06:33:18.000Z
2020-12-22T06:33:18.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: 测试文件或目录是否存在 Desc : """ import os import time def file_existence(): print(os.path.exists('/etc/passwd')) print(os.path.exists('/tmp/spam')) print(os.path.isfile('/etc/passwd')) print(os.path.isdir('/etc/passwd')) print(os.path.islink('/us...
21.035714
54
0.643463
82
589
4.5
0.426829
0.146341
0.238482
0.173442
0.482385
0.157182
0.157182
0
0
0
0
0.005906
0.137521
589
27
55
21.814815
0.720472
0.120543
0
0
0
0
0.25
0.086614
0
0
0
0
0
1
0.071429
true
0.428571
0.142857
0
0.214286
0.642857
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
1
0
5
9f9b4f0f33e21d243eae3ca45dd06f35ddd37214
2,600
py
Python
faceR/camera/opencv_capture.py
hritools/faceR
8f701ea68515927163d5904d58262d1b480a9a97
[ "MIT" ]
null
null
null
faceR/camera/opencv_capture.py
hritools/faceR
8f701ea68515927163d5904d58262d1b480a9a97
[ "MIT" ]
null
null
null
faceR/camera/opencv_capture.py
hritools/faceR
8f701ea68515927163d5904d58262d1b480a9a97
[ "MIT" ]
null
null
null
import time import cv2 import logging import signal from threading import Thread, Lock, Condition import cv2 import numpy def exit_gracefully(sig, frame): global running running = False logger.info('Ctrl+C detected: exit procedure commenced!') class WebcamVideoStream: def __init__(self, logger, src=...
27.956989
104
0.621154
323
2,600
4.885449
0.328173
0.045627
0.053866
0.069708
0.102662
0.060837
0.060837
0.060837
0.060837
0
0
0.013034
0.262308
2,600
92
105
28.26087
0.809698
0.061538
0
0.089552
0
0
0.09136
0
0
0
0
0
0
1
0.104478
false
0
0.104478
0
0.253731
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f9bac0b24cd45a3614c9156e5a9c1d00d9e9aab
2,207
py
Python
test.py
StephaneBranly/Morse-tool
606f734c70d51afe92beadd0c2831db0c92d5cd3
[ "MIT" ]
2
2021-05-28T23:14:33.000Z
2021-05-28T23:15:05.000Z
test.py
StephaneBranly/Morse-tool
606f734c70d51afe92beadd0c2831db0c92d5cd3
[ "MIT" ]
null
null
null
test.py
StephaneBranly/Morse-tool
606f734c70d51afe92beadd0c2831db0c92d5cd3
[ "MIT" ]
null
null
null
import pyaudio import time import numpy as np from matplotlib import pyplot as plt import scipy.signal as signal print("Start run") CHANNELS = 1 RATE = 44000 p = pyaudio.PyAudio() fulldata = np.array([]) dry_data = np.array([]) def main(): stream = p.open(format=pyaudio.paFloat32, channels=...
23.231579
57
0.56638
278
2,207
4.356115
0.348921
0.057803
0.02725
0.019818
0.039637
0.039637
0
0
0
0
0
0.02973
0.329406
2,207
94
58
23.478723
0.788514
0.008156
0
0.105263
0
0
0.020119
0
0
0
0
0
0
1
0.026316
false
0
0.065789
0
0.105263
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
9f9c7e7500eea3f7aa0a8f93c32f67e3d1104c16
7,102
py
Python
film_mapper.py
yuriynefedov/Film-Mapper
96e39f953ec508458c6925ce77c365f6f38bb0d8
[ "MIT" ]
null
null
null
film_mapper.py
yuriynefedov/Film-Mapper
96e39f953ec508458c6925ce77c365f6f38bb0d8
[ "MIT" ]
null
null
null
film_mapper.py
yuriynefedov/Film-Mapper
96e39f953ec508458c6925ce77c365f6f38bb0d8
[ "MIT" ]
1
2021-03-13T17:22:41.000Z
2021-03-13T17:22:41.000Z
""" Film Mapper Module Use this module to map the nearest movie filming spots for any location and year. (c) Yuriy Nefedov """ import random import pandas import folium import geopy from haversine import haversine geolocator = geopy.Nominatim(user_agent="UCU OP Lab 2 Nefedov") CLOSEST_FILENAME = "closest10.csv"...
33.658768
141
0.618558
877
7,102
4.835804
0.253136
0.040085
0.021221
0.023579
0.098562
0.090073
0.046687
0.046687
0.030653
0.030653
0
0.008952
0.245001
7,102
210
142
33.819048
0.781984
0.185441
0
0.165414
0
0.015038
0.093551
0
0
0
0
0
0
1
0.052632
false
0.022556
0.037594
0
0.120301
0.090226
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f9d2bcfaec5fec0db150520a4bddebb50943355
13,291
py
Python
inventory/inventory/doctype/packing_list_receipt_validator/packing_list_receipt_validator.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
inventory/inventory/doctype/packing_list_receipt_validator/packing_list_receipt_validator.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
inventory/inventory/doctype/packing_list_receipt_validator/packing_list_receipt_validator.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Myme and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.model.mapper import get_mapped_doc form_grid_templates = { "packing_list_data_unchecked": ...
38.749271
276
0.7323
2,107
13,291
4.244898
0.065496
0.051878
0.084302
0.044275
0.752236
0.692308
0.666257
0.642665
0.605098
0.580165
0
0.002655
0.178316
13,291
342
277
38.862573
0.816317
0.031751
0
0.601399
0
0
0.117825
0.051797
0
0
0
0
0
1
0.034965
false
0
0.013986
0
0.055944
0.01049
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f9e0a660afee78b6e980996074f3fbe9f51b59d
1,769
py
Python
sessions/session_18.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
1
2021-02-09T16:14:36.000Z
2021-02-09T16:14:36.000Z
sessions/session_18.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
sessions/session_18.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
""" Built in functions String related Functions, upper, lower, title, capitalize, join, split Integer related Functions, abs, round, pow, div, divmod Data Structure related Functions min, max, count,len, zip, sorted Common Functions, sum, id, input, type, isinstance, prin...
22.679487
110
0.600339
245
1,769
4.297959
0.473469
0.034188
0.008547
0.015195
0
0
0
0
0
0
0
0.041164
0.203505
1,769
78
111
22.679487
0.706175
0.866591
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f9e1dc71d3576b72c2e25057c47bbdef37cb282
745
py
Python
leetcode/0648.单词替换/0648-单词替换.py
ruisunyc/-
ef2fd0d58aa683311896bb9442510fedcd013313
[ "Apache-2.0" ]
2
2021-01-08T01:16:32.000Z
2021-01-08T09:36:32.000Z
leetcode/0648.单词替换/0648-单词替换.py
ruisunyc/-
ef2fd0d58aa683311896bb9442510fedcd013313
[ "Apache-2.0" ]
null
null
null
leetcode/0648.单词替换/0648-单词替换.py
ruisunyc/-
ef2fd0d58aa683311896bb9442510fedcd013313
[ "Apache-2.0" ]
null
null
null
class Tries: def __init__(self): self.tree = {} def insert(self,word): a = self.tree for c in word: if c not in a: a[c] = {} a = a[c] a['#'] = True def start(self,pre): a = self.tree for i,c in enumerate(pre): ...
28.653846
73
0.483221
98
745
3.632653
0.336735
0.067416
0.025281
0.067416
0.050562
0
0
0
0
0
0
0.002179
0.383893
745
25
74
29.8
0.77342
0.071141
0
0.173913
0
0
0.005797
0
0
0
0
0
0
1
0.173913
false
0
0
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f9f6ed4062d3fb884261ba304b1d36cac1c6c2a
2,536
py
Python
src/tf_utils/nested_multilevel_attn.py
yicheng-w/fictional-garbanzo
af3e139b5d8f7d54673afe760bc35b012265fd01
[ "MIT" ]
127
2018-09-17T22:02:03.000Z
2022-03-21T03:23:49.000Z
src/tf_utils/nested_multilevel_attn.py
yicheng-w/fictional-garbanzo
af3e139b5d8f7d54673afe760bc35b012265fd01
[ "MIT" ]
15
2019-11-02T11:48:35.000Z
2020-11-13T17:37:07.000Z
src/tf_utils/nested_multilevel_attn.py
yicheng-w/fictional-garbanzo
af3e139b5d8f7d54673afe760bc35b012265fd01
[ "MIT" ]
32
2018-09-18T11:34:53.000Z
2021-09-25T22:02:27.000Z
import tensorflow as tf from tensorflow.contrib.seq2seq import AttentionMechanism from tensorflow.contrib.seq2seq.python.ops.attention_wrapper import\ _prepare_memory class NestedMultiLevelAttn(AttentionMechanism): ''' memory in the format of [b x k x n x h], where we have (k x n) tokens divided into k...
35.222222
85
0.635647
377
2,536
4.050398
0.249337
0.013098
0.013752
0.013098
0.259332
0.148658
0.1074
0.098232
0.040602
0.040602
0
0.010707
0.263407
2,536
71
86
35.71831
0.806745
0.237382
0
0.055556
0
0
0.01465
0
0
0
0
0
0
1
0.055556
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fa06103ea6d239f2895004e7c80a2c4a86e4145
895
py
Python
camera_calibration.py
karata-sc/CameraCalibrateSample
870150f98465639c577cdf13a0a84f40c8c60bfa
[ "BSD-3-Clause" ]
null
null
null
camera_calibration.py
karata-sc/CameraCalibrateSample
870150f98465639c577cdf13a0a84f40c8c60bfa
[ "BSD-3-Clause" ]
null
null
null
camera_calibration.py
karata-sc/CameraCalibrateSample
870150f98465639c577cdf13a0a84f40c8c60bfa
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import cv2 # camera matrix mtx = [[647.048823, 0.000000, 326.544754], [0.000000, 645.959963, 234.463113], [0.000000, 0.000000, 1.000000]] # distortion dist = [0.026716, -0.114498, 0.001072, -0.004303,0.000000]...
23.552632
110
0.546369
120
895
4.075
0.491667
0.071575
0
0
0
0
0
0
0
0
0
0.194222
0.303911
895
37
111
24.189189
0.59069
0.075978
0
0
0
0
0.031707
0
0
0
0.004878
0
0
1
0
false
0
0.095238
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fa3a50343401ecfadbc6203478370db57506753
1,125
py
Python
0347. Top K Frequent Elements/solution_min_heap.py
furutuki/LeetCodeSolution
db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53
[ "MIT" ]
null
null
null
0347. Top K Frequent Elements/solution_min_heap.py
furutuki/LeetCodeSolution
db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53
[ "MIT" ]
null
null
null
0347. Top K Frequent Elements/solution_min_heap.py
furutuki/LeetCodeSolution
db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53
[ "MIT" ]
null
null
null
from typing import List import heapq class Node: def __init__(self, val:int): self.val = val self.cnt = 1 def __lt__(self, other): return self.cnt < other.cnt def __eq__(self, other): return self.cnt == other.cnt class Solution: def topKFrequent(self, nums: List[in...
23.93617
65
0.511111
148
1,125
3.709459
0.310811
0.102004
0.054645
0.069217
0.269581
0.10929
0.10929
0
0
0
0
0.01707
0.375111
1,125
47
66
23.93617
0.763869
0
0
0.054054
0
0
0
0
0
0
0
0
0
1
0.108108
false
0
0.054054
0.054054
0.297297
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
9fa767f31a30fc774a163edb112d1493c79a7fd2
4,864
py
Python
tron/Parsing/args.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Parsing/args.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
tron/Parsing/args.py
sdss/tron
886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['parseArgs', 'match'] import re from collections import OrderedDict from tron import Misc from .Exceptions import ParseException from .keys import eatAString # Match " key = STUFF" arg_re = re.compile( r""" ^\s* # Ignore leading space (?P<key>[a-z_][a-z0-9_-]*) # Mat...
25.465969
97
0.545847
626
4,864
4.22524
0.297125
0.034405
0.022684
0.009074
0.089981
0.083932
0.042344
0.026465
0.026465
0.026465
0
0.006041
0.353413
4,864
190
98
25.6
0.834976
0.358758
0
0.216867
0
0
0.063563
0
0
0
0
0
0
1
0.048193
false
0
0.060241
0
0.204819
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9faae556022f924fb8b4e582dc35ca58114cda0a
1,496
py
Python
test/test_strategy.py
cantona/futu_algo
6045973e1d75b86b704aaf78b855fe550dccdb9e
[ "Apache-2.0" ]
1
2021-05-31T22:09:48.000Z
2021-05-31T22:09:48.000Z
test/test_strategy.py
TrueMatthewKirkham/futu_algo
81914b3d7b098f3d42aa98f85f019b9c7f87d05f
[ "Apache-2.0" ]
null
null
null
test/test_strategy.py
TrueMatthewKirkham/futu_algo
81914b3d7b098f3d42aa98f85f019b9c7f87d05f
[ "Apache-2.0" ]
null
null
null
# Futu Algo: Algorithmic High-Frequency Trading Framework # Copyright (c) billpwchan - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Bill Chan <billpwchan@hotmail.com>, 2021 import unittest import pandas as pd from str...
36.487805
91
0.692513
194
1,496
5.128866
0.443299
0.080402
0.052261
0.051256
0.452261
0.452261
0.452261
0.317588
0.317588
0.317588
0
0.015152
0.205882
1,496
40
92
37.4
0.822391
0.174465
0
0.384615
0
0
0.037459
0.02443
0
0
0
0
0.076923
1
0.115385
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
9fab4add1fd28e2d4b54104e9ed22b881f8cae66
5,916
py
Python
adminapp/views.py
habibaudu/Elite
3f48a7cd2f9058c20aea6d3a4d626f7ccac84072
[ "MIT" ]
null
null
null
adminapp/views.py
habibaudu/Elite
3f48a7cd2f9058c20aea6d3a4d626f7ccac84072
[ "MIT" ]
1
2021-03-19T05:13:22.000Z
2021-03-19T05:13:22.000Z
adminapp/views.py
habibaudu/Elite
3f48a7cd2f9058c20aea6d3a4d626f7ccac84072
[ "MIT" ]
null
null
null
import jwt from django.conf import settings from rest_framework.status import (HTTP_200_OK, HTTP_400_BAD_REQUEST, HTTP_401_UNAUTHORIZED) from rest_framework import viewsets from django.contrib.auth.hashers import check_password from adminapp.models import (Admin) from adminapp.seriali...
40.520548
110
0.5524
671
5,916
4.675112
0.202683
0.031559
0.025821
0.021039
0.385081
0.365317
0.324195
0.30475
0.287855
0.26044
0
0.020242
0.356998
5,916
145
111
40.8
0.804416
0
0
0.211382
0
0
0.049865
0
0
0
0
0
0
1
0.01626
false
0.04878
0.105691
0
0.292683
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fabac7aa4d3c0886cddf6e4a7f52e61fb1a4602
1,972
py
Python
paper-code/tensorflow_src/logME.py
DengBoCong/nlp-paper
89c5338efda9c1379e7ef6f275a2f3d55d62ea39
[ "Apache-2.0" ]
478
2020-10-28T01:30:30.000Z
2022-03-30T06:34:07.000Z
paper-code/tensorflow_src/logME.py
DengBoCong/paper
25dd316d8b4b47363bd611bbabca6a5e3fd09cba
[ "Apache-2.0" ]
1
2021-08-29T11:55:09.000Z
2021-11-04T09:25:19.000Z
paper-code/tensorflow_src/logME.py
DengBoCong/paper
25dd316d8b4b47363bd611bbabca6a5e3fd09cba
[ "Apache-2.0" ]
89
2021-01-05T06:11:55.000Z
2022-03-24T12:51:57.000Z
import tensorflow as tf from numba import njit import numpy as np @njit def each_evidence(y_, f, fh, v, s, vh, N, D): """ compute the maximum evidence for each class """ alpha = 1.0 beta = 1.0 lam = alpha / beta tmp = (vh @ (f @ y_)) for _ in range(11): gamma = (s / (s + lam))....
29.878788
110
0.500507
302
1,972
3.18543
0.254967
0.074844
0.077963
0.043659
0.245322
0.209979
0.16632
0.16632
0.16632
0.133056
0
0.048724
0.34432
1,972
66
111
29.878788
0.695282
0.029919
0
0.148148
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0.055556
0
0.12963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fae4767c50f4f35b038b3946366e439d2f826d9
5,616
py
Python
scripts/signin.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
scripts/signin.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
scripts/signin.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
#!/usr/bin/python import cgi import MySQLdb import Cookie import datetime import random cookie = Cookie.SimpleCookie() cookie["session"] = random.randint(1,1000000) expires = datetime.datetime.now() + datetime.timedelta(days=1) cookie["session"]["expires"] = expires.strftime('%a, %d %b %Y %H:%M:%S') # Wdy, DD-Mon-YY...
39.272727
145
0.497863
589
5,616
4.745331
0.312394
0.037209
0.027549
0.02576
0.401789
0.376029
0.325581
0.325581
0.301968
0.301968
0
0.012265
0.346688
5,616
142
146
39.549296
0.749523
0.085648
0
0.436364
0
0.072727
0.696662
0.129612
0
0
0
0
0
0
null
null
0.063636
0.045455
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
3
9faeeec0429ec597dcc9a08ebd24b97f34ccbd92
1,796
py
Python
rose/tests/test_profile.py
good-praxis/pronoun-discord-bot
c0c2a2bf7c902550dd03767dd80c563fdb620aac
[ "MIT" ]
1
2018-07-05T18:24:18.000Z
2018-07-05T18:24:18.000Z
rose/tests/test_profile.py
VulpineCat/pronoun-discord-bot
c0c2a2bf7c902550dd03767dd80c563fdb620aac
[ "MIT" ]
76
2018-12-09T15:59:12.000Z
2021-07-26T04:16:04.000Z
rose/tests/test_profile.py
VulpineCat/pronoun-discord-bot
c0c2a2bf7c902550dd03767dd80c563fdb620aac
[ "MIT" ]
null
null
null
import rose.profile.profile as prof import rose.profile.fields as fields class TestProfile(object): def test_profile_instantiation(self): profile = prof.Profile("133750022779961344") assert profile._id == "133750022779961344" def test_profile_generate_empty_profile(self): profile = pro...
43.804878
119
0.666481
200
1,796
5.765
0.25
0.042498
0.084996
0.133565
0.523851
0.465742
0.414571
0.322637
0.268864
0
0
0.065678
0.211581
1,796
40
120
44.9
0.748588
0
0
0.30303
0
0
0.242205
0
0
0
0
0
0.242424
1
0.212121
false
0
0.060606
0
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9fafa0deb45966ae41b8eda8c2b724569bb49865
5,578
py
Python
mirlo.py
mike-thon/mirlo
8e8fd538c44e818531f019f140a190a2e7b3eb3d
[ "BSD-2-Clause" ]
null
null
null
mirlo.py
mike-thon/mirlo
8e8fd538c44e818531f019f140a190a2e7b3eb3d
[ "BSD-2-Clause" ]
null
null
null
mirlo.py
mike-thon/mirlo
8e8fd538c44e818531f019f140a190a2e7b3eb3d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import os import sys import csv import argparse import subprocess from Queue import Queue from threading import Thread from time import sleep import StringIO from Bio import SeqIO from Bio.AlignIO import convert from Bio.Phylo import read import pdb def parse_cli(): parser = argparse.ArgumentP...
27.751244
176
0.593223
717
5,578
4.446304
0.311018
0.017566
0.026662
0.008156
0
0
0
0
0
0
0
0.0045
0.282897
5,578
200
177
27.89
0.7925
0.015418
0
0.030075
0
0.015038
0.15236
0
0
0
0
0
0
0
null
null
0
0.097744
null
null
0.037594
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9fafea8d120eca237dc8ed8a9a98aff0979f7d85
2,669
py
Python
shellsql/aws.py
urq/awssql
7bdee8d955953499c6564072e10a9848ebc5df6a
[ "Apache-2.0" ]
null
null
null
shellsql/aws.py
urq/awssql
7bdee8d955953499c6564072e10a9848ebc5df6a
[ "Apache-2.0" ]
null
null
null
shellsql/aws.py
urq/awssql
7bdee8d955953499c6564072e10a9848ebc5df6a
[ "Apache-2.0" ]
null
null
null
import sys from boto3.session import Session from .models import Dataset from .utils import get_headers def get_instances_as_table(profile=None, region_name='us-east-1'): session = Session(profile_name=profile) ec2 = session.resource('ec2') data = extract_data_from_objects(ec2.instances.all()) # enr...
31.034884
93
0.624578
383
2,669
4.227154
0.360313
0.007412
0.009265
0.012971
0.042001
0.014824
0.014824
0
0
0
0
0.002579
0.273511
2,669
85
94
31.4
0.832388
0.238666
0
0.072727
0
0
0.031107
0
0
0
0
0.011765
0
1
0.127273
false
0.018182
0.072727
0.018182
0.345455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9fb0aa6bc7ba39ca8a83fbf1508cfdb4b092e87c
3,035
py
Python
jiepai/spider.py
kapuni/projects
8c1747d4ed02d81fcb53a8a891d4e76d7e6dde5e
[ "MIT" ]
null
null
null
jiepai/spider.py
kapuni/projects
8c1747d4ed02d81fcb53a8a891d4e76d7e6dde5e
[ "MIT" ]
null
null
null
jiepai/spider.py
kapuni/projects
8c1747d4ed02d81fcb53a8a891d4e76d7e6dde5e
[ "MIT" ]
null
null
null
import json import re from urllib.parse import urlencode from hashlib import md5 import pymongo from bs4 import BeautifulSoup from gevent import os from requests.exceptions import RequestException import requests from config import * from multiprocessing import Pool from json.decoder import JSONDecodeError client = pym...
26.622807
80
0.607908
378
3,035
4.740741
0.322751
0.033482
0.031808
0.03683
0.257813
0.145089
0.145089
0.145089
0.145089
0.145089
0
0.010522
0.279736
3,035
114
81
26.622807
0.809241
0
0
0.214286
0
0
0.078393
0
0
0
0
0
0
1
0.081633
false
0.010204
0.122449
0
0.316327
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fb0bbc1f74f1b90dcbb73fb1bc5b31a31a15d9c
1,652
py
Python
modules/tools/navigation/planning/local_path.py
jzjonah/apollo
bc534789dc0548bf2d27f8d72fe255d5c5e4f951
[ "Apache-2.0" ]
22,688
2017-07-04T23:17:19.000Z
2022-03-31T18:56:48.000Z
modules/tools/navigation/planning/local_path.py
Songjiarui3313/apollo
df9113ae656e28e5374db32529d68e59455058a0
[ "Apache-2.0" ]
4,804
2017-07-04T22:30:12.000Z
2022-03-31T12:58:21.000Z
modules/tools/navigation/planning/local_path.py
Songjiarui3313/apollo
df9113ae656e28e5374db32529d68e59455058a0
[ "Apache-2.0" ]
9,985
2017-07-04T22:01:17.000Z
2022-03-31T14:18:16.000Z
#!/usr/bin/env python3 ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
29.5
79
0.54661
217
1,652
4.119816
0.456221
0.123043
0.058166
0.040268
0.053691
0.053691
0.053691
0
0
0
0
0.018033
0.261501
1,652
55
80
30.036364
0.714754
0.360169
0
0.137931
0
0
0
0
0
0
0
0
0
1
0.275862
false
0.068966
0
0.034483
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
9fb337de160eba2d0e8c8e9f5baee5f5b434b839
1,114
py
Python
tests/test_version.py
jessekrubin/lager
942d8b158495b5d782a159f36ef801abb972a87f
[ "BSD-2-Clause" ]
1
2020-05-14T03:51:40.000Z
2020-05-14T03:51:40.000Z
tests/test_version.py
dynamic-graphics-inc/lager
942d8b158495b5d782a159f36ef801abb972a87f
[ "MIT" ]
6
2020-05-02T18:20:18.000Z
2020-06-16T23:31:25.000Z
tests/test_version.py
jessekrubin/lager
942d8b158495b5d782a159f36ef801abb972a87f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ============================================================================= # (c) Copyright 2020, Dynamic Graphics, Inc. # ALL RIGHTS RESERVED # Permission to use, copy, modify, or distribute this software for any # purpose is prohibited without specific, written prior permission from # ...
30.944444
84
0.52693
113
1,114
4.964602
0.584071
0.053476
0.064171
0
0
0
0
0
0
0
0
0.010514
0.231598
1,114
35
85
31.828571
0.64486
0.36535
0
0.1
0
0
0.063037
0
0
0
0
0
0.05
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fb4ca95fb4f399fd06c9bfbead8852bac3f493e
2,898
py
Python
BasicORM/model.py
giovani-dev/ORM-Firesore
3470aaa4f9db04192dde17e12b6c696a96ebc8d3
[ "MIT" ]
null
null
null
BasicORM/model.py
giovani-dev/ORM-Firesore
3470aaa4f9db04192dde17e12b6c696a96ebc8d3
[ "MIT" ]
null
null
null
BasicORM/model.py
giovani-dev/ORM-Firesore
3470aaa4f9db04192dde17e12b6c696a96ebc8d3
[ "MIT" ]
null
null
null
from typing import NamedTuple, Any, List from BasicORM.connection import DataBaseConnection from BasicORM.validate import BaseModelValidations class FilterConditional(NamedTuple): field: str conditional: str value: Any # class DefineBaseModel(object): class PostOperations(DataBaseConnection): def ...
29.571429
118
0.639061
334
2,898
5.254491
0.206587
0.123077
0.071795
0.087749
0.317379
0.300285
0.206268
0.206268
0.159544
0.159544
0
0
0.252933
2,898
97
119
29.876289
0.810624
0.031056
0
0.253521
0
0
0.000713
0
0
0
0
0
0
1
0.211268
false
0
0.042254
0.042254
0.492958
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9fb4dc66c66a1ef8e79dfbb25e4e33c8375a1b3c
775
py
Python
src/princeton_scraper_seas_faculty/helpers.py
jlumbroso/princeton-scraper-seas-faculty
d6c0dcaec050d8fb22f8a6a911db287640563c12
[ "Unlicense" ]
10
2020-08-11T18:44:18.000Z
2021-06-16T19:58:38.000Z
src/princeton_scraper_seas_faculty/helpers.py
jlumbroso/princeton-scraper-seas-faculty
d6c0dcaec050d8fb22f8a6a911db287640563c12
[ "Unlicense" ]
null
null
null
src/princeton_scraper_seas_faculty/helpers.py
jlumbroso/princeton-scraper-seas-faculty
d6c0dcaec050d8fb22f8a6a911db287640563c12
[ "Unlicense" ]
null
null
null
import typing __author__ = "Jérémie Lumbroso <lumbroso@cs.princeton.edu>" __all__ = [ "split_name", ] def split_name(name: str) -> typing.Tuple[str, str]: """ Returns a likely `(first, last)` split given a full name. This uses very simple heuristics, and assumes Western usage. :param name: A ...
24.21875
71
0.646452
110
775
4.327273
0.409091
0.132353
0.063025
0.071429
0
0
0
0
0
0
0
0.011686
0.227097
775
31
72
25
0.782972
0.296774
0
0
0
0
0.108527
0.052326
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fb526a50dcd6196d12573e5c0cd613b463ce903
2,189
py
Python
QUESTION2.py
mizkin-system/monitoring
98b54b61a873cbf5cc56d028e38407d5d356fc0b
[ "MIT" ]
null
null
null
QUESTION2.py
mizkin-system/monitoring
98b54b61a873cbf5cc56d028e38407d5d356fc0b
[ "MIT" ]
null
null
null
QUESTION2.py
mizkin-system/monitoring
98b54b61a873cbf5cc56d028e38407d5d356fc0b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import time import csv import subprocess import pandas as pd import argparse class QUESTION02: index = 1 timeout_times = 1 def __init__(self, timeout_times): self.timeout_times = timeout_times print('timeout_times=' + self.timeout_times) sel...
33.166667
122
0.534491
246
2,189
4.613821
0.394309
0.084582
0.063436
0.035242
0.132159
0.082819
0.056388
0.056388
0.056388
0.056388
0
0.018305
0.326176
2,189
65
123
33.676923
0.751186
0.043399
0
0
0
0
0.102441
0.012925
0
0
0
0
0
1
0.040816
false
0
0.102041
0
0.204082
0.204082
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fb537fd9bf06d48e541130e128371524f6ed152
1,002
py
Python
migrations/versions/3c4f7702a459_.py
eleweek/WatchPeopleCode
2389fe0b8eb040f553f847b9e1686883c4bd1388
[ "MIT" ]
200
2015-01-27T18:26:09.000Z
2021-12-19T14:38:53.000Z
migrations/versions/3c4f7702a459_.py
eleweek/WatchPeopleCode
2389fe0b8eb040f553f847b9e1686883c4bd1388
[ "MIT" ]
12
2015-02-09T10:18:38.000Z
2021-12-13T19:43:56.000Z
migrations/versions/3c4f7702a459_.py
eleweek/WatchPeopleCode
2389fe0b8eb040f553f847b9e1686883c4bd1388
[ "MIT" ]
23
2015-02-09T04:42:48.000Z
2015-02-20T18:58:56.000Z
"""empty message Revision ID: 3c4f7702a459 Revises: 5a24a4aa5eb3 Create Date: 2015-07-10 23:59:20.856464 """ # revision identifiers, used by Alembic. revision = '3c4f7702a459' down_revision = '5a24a4aa5eb3' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
32.322581
118
0.728543
125
1,002
5.68
0.448
0.105634
0.123944
0.064789
0.504225
0.340845
0.340845
0.123944
0
0
0
0.062212
0.133733
1,002
30
119
33.4
0.75576
0.290419
0
0
0
0
0.29941
0.082596
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fb64f87ea9c09ee15dab5a503b75b4ebd13b029
4,965
py
Python
src/secml/utils/mixed_utils.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
63
2020-04-20T16:31:16.000Z
2022-03-29T01:05:35.000Z
src/secml/utils/mixed_utils.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
5
2020-04-21T11:31:39.000Z
2022-03-24T13:42:56.000Z
src/secml/utils/mixed_utils.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
8
2020-04-21T09:16:42.000Z
2022-02-23T16:28:43.000Z
""" .. module:: FunctionUtils :synopsis: Collection of mixed utility classes and functions .. moduleauthor:: Marco Melis <marco.melis@unica.it> """ __all__ = ['AverageMeter', 'OrderedFlexibleClass', 'check_is_fitted'] class AverageMeter: """Computes and stores the average and current value. Attributes ...
30.838509
91
0.615509
644
4,965
4.645963
0.305901
0.010027
0.009024
0.012032
0.063503
0.040775
0.040775
0.040775
0.019385
0
0
0.005906
0.283787
4,965
160
92
31.03125
0.835489
0.52286
0
0
0
0
0.148384
0
0
0
0
0
0
1
0.16
false
0
0.04
0
0.26
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fb79ef3eec5a97320bcd56e8094a362a869463e
621
py
Python
find_primes.py
chapman-phys227-2016s/hw-1-seama107
52d942891c15a6e575f5c77e5378ed7cc17bdcc3
[ "MIT" ]
null
null
null
find_primes.py
chapman-phys227-2016s/hw-1-seama107
52d942891c15a6e575f5c77e5378ed7cc17bdcc3
[ "MIT" ]
null
null
null
find_primes.py
chapman-phys227-2016s/hw-1-seama107
52d942891c15a6e575f5c77e5378ed7cc17bdcc3
[ "MIT" ]
null
null
null
#!/usr/bin/python def find_primes(n): """ Finds all the primes below number n using the sieve of Eratosthenes """ candidates = [i + 2 for i in range(n-1)] for p in candidates: for i in candidates: if i % p == 0 and p != i: candidates.remove(i) return candidat...
27
73
0.570048
99
621
3.525253
0.484848
0.060172
0.051576
0.063037
0
0
0
0
0
0
0
0.021583
0.328502
621
23
74
27
0.815348
0.31401
0
0
0
0
0
0
0
0
0
0
0.083333
1
0.166667
false
0
0
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
9fb7b2d33cb1cf8a0df18c4c04bb9b424df00640
3,233
py
Python
contrib/status_testing/piped_status_testing/test/data/statustest_helper.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
3
2015-02-12T20:34:30.000Z
2016-08-06T06:54:48.000Z
contrib/status_testing/piped_status_testing/test/data/statustest_helper.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
null
null
null
contrib/status_testing/piped_status_testing/test/data/statustest_helper.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
2
2015-12-16T14:18:14.000Z
2019-04-12T01:43:10.000Z
# Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors. # See LICENSE for details. from piped_status_testing import statustest, util from twisted.internet import reactor, defer """ This module contains statustests used only for internal testing of piped_status_testing. """ class HelperStatusTest(stat...
32.33
96
0.66347
378
3,233
5.539683
0.34127
0.086915
0.034384
0.032951
0.399713
0.350525
0.319962
0.296084
0.230659
0.230659
0
0.007894
0.25549
3,233
99
97
32.656566
0.862069
0.120012
0
0.43662
0
0
0.134115
0
0
0
0
0
0.098592
1
0.295775
false
0.028169
0.028169
0
0.380282
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9fb7e7bf5bf3c28e0f4d6debf26ccf856ae3ec19
3,424
py
Python
src/main/resources/veracode_api_signing/credentials.py
xebialabs-community/xlr-veracode-plugin
85979403d4a0274844b88d3aa6a946439fbb052a
[ "MIT" ]
2
2020-05-15T14:22:20.000Z
2020-07-10T19:59:25.000Z
src/main/resources/veracode_api_signing/credentials.py
xebialabs-community/xlr-veracode-plugin
85979403d4a0274844b88d3aa6a946439fbb052a
[ "MIT" ]
1
2021-03-19T11:13:03.000Z
2021-06-30T15:42:16.000Z
src/main/resources/veracode_api_signing/credentials.py
xebialabs-community/xlr-veracode-plugin
85979403d4a0274844b88d3aa6a946439fbb052a
[ "MIT" ]
1
2020-04-02T22:06:06.000Z
2020-04-02T22:06:06.000Z
# MIT License # Copyright (c) 2019 Veracode, Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
39.356322
103
0.753213
471
3,424
5.267516
0.343949
0.084643
0.065296
0.015719
0.160419
0.087868
0.058847
0
0
0
0
0.002127
0.17611
3,424
86
104
39.813953
0.877348
0.377044
0
0.069767
0
0
0.143947
0.010963
0
0
0
0
0
1
0.116279
false
0.023256
0.139535
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
9fb91c4625caa622ee631ba30eabbbcc41f2bd60
59
py
Python
addons/po_persian_calendar/models/__init__.py
apadanagroup/parOdoo
8c6f67848e0689b76fb780feca08d819fd3c1847
[ "Apache-2.0" ]
12
2021-03-26T08:39:40.000Z
2022-03-16T02:20:10.000Z
addons/po_persian_calendar/models/__init__.py
apadanagroup/parOdoo
8c6f67848e0689b76fb780feca08d819fd3c1847
[ "Apache-2.0" ]
13
2020-12-20T16:00:21.000Z
2022-03-14T14:55:30.000Z
addons/po_persian_calendar/models/__init__.py
apadanagroup/parOdoo
8c6f67848e0689b76fb780feca08d819fd3c1847
[ "Apache-2.0" ]
17
2020-08-31T11:18:49.000Z
2022-02-09T05:57:31.000Z
from . import HttpExtensions from . import UsersExtensions
19.666667
29
0.830508
6
59
8.166667
0.666667
0.408163
0
0
0
0
0
0
0
0
0
0
0.135593
59
2
30
29.5
0.960784
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
9fbdecad23123178c3df15d5969d399099505227
613
py
Python
molsysmt/native/io/topology/openexplorer_Explorer.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/native/io/topology/openexplorer_Explorer.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/native/io/topology/openexplorer_Explorer.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
def from_openexplorer_Explorer(item, molecular_system=None, atom_indices='all', structure_indices='all'): from molsysmt.native.io.topology.openmm_Topology import from_openmm_Topology from molsysmt.api_forms.api_openexplorer_Explorer import to_openmm_Topology as openexplorer_Explorer_to_openmm_Topology tmp...
55.727273
165
0.856444
82
613
5.914634
0.292683
0.185567
0.082474
0.156701
0.383505
0.160825
0.160825
0
0
0
0
0
0.088091
613
10
166
61.3
0.867621
0
0
0
0
0
0.009804
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9fbee8c69adef049ed9ba532558ba181190672fc
673
py
Python
ansa/ansa.py
Iskandar-Ki/AnsaRSS
00e4c49114ba54078528967d8ddb0bf3efa9187e
[ "Unlicense" ]
1
2018-09-19T09:26:34.000Z
2018-09-19T09:26:34.000Z
ansa/ansa.py
Iskandar-Ki/AnsaRSS
00e4c49114ba54078528967d8ddb0bf3efa9187e
[ "Unlicense" ]
null
null
null
ansa/ansa.py
Iskandar-Ki/AnsaRSS
00e4c49114ba54078528967d8ddb0bf3efa9187e
[ "Unlicense" ]
null
null
null
import feedparser class Ansa(): def __init__(self, *args, **kwargs): self.parsed_feed = [] def getNews(self, xmlrequest): feed = feedparser.parse(xmlrequest) for item in feed.entries: self.parsed_feed.append(self.parseData(item)) return self.parsed_feed ...
26.92
57
0.549777
68
673
5.264706
0.426471
0.083799
0.117318
0.094972
0
0
0
0
0
0
0
0
0.338782
673
25
58
26.92
0.804494
0
0
0
0
0
0.078635
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9fbfa16f40e1b991823042e571e745d37f12e14e
234
py
Python
dynamo/entities/__init__.py
tnorlund/aws-analytics
5533e5d313abf92f0c46e2a5bb32d853ddc9246e
[ "MIT" ]
null
null
null
dynamo/entities/__init__.py
tnorlund/aws-analytics
5533e5d313abf92f0c46e2a5bb32d853ddc9246e
[ "MIT" ]
22
2021-02-27T19:50:35.000Z
2021-03-22T19:36:59.000Z
code/python/dynamo/entities/__init__.py
tnorlund/Blog-backend
d231c32c9e37c38955fc07a6dd3cfaf833c8c99d
[ "MIT" ]
1
2021-01-09T10:02:37.000Z
2021-01-09T10:02:37.000Z
from .visit import * from .location import * from .browser import * from .visitor import * from .session import * from .page import * from .day import * from .week import * from .month import * from .year import * from .util import *
19.5
23
0.717949
33
234
5.090909
0.393939
0.595238
0
0
0
0
0
0
0
0
0
0
0.188034
234
11
24
21.272727
0.884211
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
9fbfab3dbe7f3cc0b10a3640b0188913b7d6c393
862
py
Python
examples/multiple_modules/commands/envs/get.py
pddg/uroboros
0e621206c24e62d96fdac244d09c0c790d8930df
[ "Apache-2.0" ]
15
2019-07-13T15:45:00.000Z
2022-03-08T12:54:54.000Z
examples/multiple_modules/commands/envs/get.py
pddg/uroboros
0e621206c24e62d96fdac244d09c0c790d8930df
[ "Apache-2.0" ]
27
2019-06-24T15:41:27.000Z
2020-07-12T09:25:04.000Z
examples/multiple_modules/commands/envs/get.py
pddg/uroboros
0e621206c24e62d96fdac244d09c0c790d8930df
[ "Apache-2.0" ]
null
null
null
import os from uroboros import Command, ExitStatus class GetCommand(Command): name = "get" short_description = "Show value" long_description = "Show value of given env var" def build_option(self, parser): parser.add_argument('name', type=str, help='Env var name') parser.add_argument...
26.9375
73
0.576566
99
862
4.959596
0.565657
0.0611
0.081466
0
0
0
0
0
0
0
0
0
0.312065
862
31
74
27.806452
0.827993
0
0
0
0
0
0.178654
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.478261
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0