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
077cc03c99f16d778bcf96bc07a8e66081bca025
5,210
py
Python
website/raspac.py
tpudlik/RaspAC
e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677
[ "MIT" ]
28
2015-04-03T05:01:14.000Z
2021-12-31T00:29:40.000Z
website/raspac.py
tpudlik/RaspAC
e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677
[ "MIT" ]
3
2017-03-20T15:47:24.000Z
2017-05-21T16:07:22.000Z
website/raspac.py
tpudlik/RaspAC
e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677
[ "MIT" ]
8
2015-08-27T07:33:08.000Z
2018-09-27T21:54:49.000Z
import sqlite3 import subprocess, datetime from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, flash from contextlib import closing from tquery import get_latest_record from config import * app = Flask(__name__) app.config.from_object(__name__)...
37.482014
87
0.616507
640
5,210
4.857813
0.296875
0.023159
0.018012
0.019299
0.108717
0.098424
0.098424
0.072692
0.043744
0.043744
0
0.006928
0.252015
5,210
138
88
37.753623
0.790865
0.123033
0
0.125
0
0
0.167147
0
0
0
0
0
0
1
0.089286
false
0.017857
0.053571
0.008929
0.223214
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
077cca840f68935d92c69072c7307ddde041c399
818
py
Python
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
1
2021-01-05T01:52:31.000Z
2021-01-05T01:52:31.000Z
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
2
2020-07-03T07:54:46.000Z
2020-07-03T07:59:08.000Z
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
null
null
null
"""Helper functions to tests.""" import numpy as np def norm(vs: np.array) -> float: """Compute the norm of a vector.""" return np.sqrt(np.dot(vs, vs)) def create_random_matrix(size: int) -> np.array: """Create a numpy random matrix.""" return np.random.normal(size=size ** 2).reshape(size, size) ...
27.266667
68
0.640587
111
818
4.657658
0.468468
0.040619
0.069633
0.085106
0.123791
0.123791
0.123791
0.123791
0
0
0
0.004695
0.218826
818
29
69
28.206897
0.804382
0.196822
0
0
0
0
0
0
0
0
0
0
0.066667
1
0.266667
false
0
0.066667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
077e6b7b62074f7defc4bfc023b3cef03e6c40c9
1,046
py
Python
solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
12
2020-04-21T01:09:14.000Z
2022-01-13T08:42:03.000Z
solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
null
null
null
solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
4
2020-03-31T03:06:16.000Z
2021-07-06T07:27:44.000Z
from typing import List class Solution: def findRepeatNumber(self, nums: List[int]) -> int: # solution one: 哈希表 n = len(nums) flag = [False for i in range(n)] for i in range(n): if flag[nums[i]] == False: flag[nums[i]] = True else: ...
26.15
63
0.43499
129
1,046
3.465116
0.333333
0.1566
0.123043
0.098434
0.322148
0.06264
0
0
0
0
0
0.020548
0.441683
1,046
40
64
26.15
0.744863
0.062141
0
0.419355
0
0
0.008197
0
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.290323
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07800b91cf15e2b3fdf48ab87571db57cf0566dc
1,702
py
Python
examples/test_network.py
Charles-Peeke/gwu_nn
3f5e9937abf2bfb81a74a2d6f3653a661e705f67
[ "MIT" ]
4
2020-11-17T00:31:40.000Z
2021-11-11T01:56:27.000Z
examples/test_network.py
Charles-Peeke/gwu_nn
3f5e9937abf2bfb81a74a2d6f3653a661e705f67
[ "MIT" ]
1
2020-10-12T17:41:40.000Z
2020-10-12T17:41:40.000Z
examples/test_network.py
jdk514/gwu_nn
3f5e9937abf2bfb81a74a2d6f3653a661e705f67
[ "MIT" ]
5
2020-11-12T21:13:35.000Z
2021-11-30T22:15:28.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from gwu_nn.gwu_network import GWUNetwork from gwu_nn.layers import Dense from gwu_nn.activation_layers import Sigmoid np.random.seed(8) num_obs = 8000 # Create our features to draw from two distinct 2D...
30.392857
91
0.675676
290
1,702
3.824138
0.393103
0.048693
0.024346
0.046889
0.174932
0.174932
0.174932
0.174932
0.129847
0.129847
0
0.052558
0.161575
1,702
56
92
30.392857
0.724597
0.221504
0
0
0
0
0.020619
0
0
0
0
0
0
1
0
false
0
0.225806
0
0.225806
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07806fd3652fda3f2cbc32b699b1c68679d17f6c
6,227
py
Python
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
import itertools as it import numpy as np import mdtraj as md from progressbar import ProgressBar from scattering.utils.utils import get_dt from scattering.utils.constants import get_form_factor def compute_van_hove(trj, chunk_length, water=False, r_range=(0, 1.0), bin_width=0.005, n_bins=None,...
36.629412
117
0.604464
831
6,227
4.34296
0.223827
0.012746
0.018288
0.009975
0.569964
0.520089
0.50568
0.481574
0.432253
0.432253
0
0.018648
0.311065
6,227
169
118
36.846154
0.822611
0.310904
0
0.168675
0
0
0.041452
0
0
0
0
0
0
1
0.024096
false
0
0.072289
0
0.13253
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07807421fe3926d24423bc71ab071f0fe56cfec8
785
py
Python
nn_benchmark/networks/__init__.py
QDucasse/nn_benchmark
0a32db241e75853c7d78dccf6d7b6940e5a0e4d0
[ "MIT" ]
18
2020-06-10T10:30:55.000Z
2022-02-21T08:28:00.000Z
nn_benchmark/networks/__init__.py
QDucasse/nn_benchmark
0a32db241e75853c7d78dccf6d7b6940e5a0e4d0
[ "MIT" ]
29
2020-06-24T09:09:55.000Z
2021-09-09T10:10:21.000Z
nn_benchmark/networks/__init__.py
QDucasse/nn_benchmark
0a32db241e75853c7d78dccf6d7b6940e5a0e4d0
[ "MIT" ]
2
2020-10-30T23:36:42.000Z
2021-09-07T12:58:06.000Z
# -*- coding: utf-8 -*- # nn_benchmark # author - Quentin Ducasse # https://github.com/QDucasse # quentin.ducasse@ensta-bretagne.org from __future__ import absolute_import __all__ = ["lenet","lenet5","quant_lenet5", "quant_cnv", "quant_tfc", "mobilenetv1","quant_mobilenetv1", "vggnet...
28.035714
48
0.614013
83
785
5.542169
0.349398
0.23913
0.195652
0.113043
0
0
0
0
0
0
0
0.015873
0.277707
785
27
49
29.074074
0.795414
0.155414
0
0
0
0
0.171994
0
0
0
0
0
0
1
0
false
0
0.722222
0
0.722222
0
0
0
0
null
1
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
1
0
1
0
0
4
078077ca30c799c1dd1930850adac76494c46916
820
py
Python
Section1_Basics/contours.py
NeeharikaDva/opencv_course
234515ab59a1228c8dfd3c69f310dbc1d86c6089
[ "MIT" ]
null
null
null
Section1_Basics/contours.py
NeeharikaDva/opencv_course
234515ab59a1228c8dfd3c69f310dbc1d86c6089
[ "MIT" ]
null
null
null
Section1_Basics/contours.py
NeeharikaDva/opencv_course
234515ab59a1228c8dfd3c69f310dbc1d86c6089
[ "MIT" ]
null
null
null
#pylint:disable=no-member import cv2 as cv import numpy as np img = cv.imread('/Users/webileapp/Desktop/niharika_files/projects/opencv_course_master/Resources/Photos/cats.jpg') cv.imshow('Cats', img) # blank = np.zeros(img.shape[:2], dtype='uint8') cv.imshow('Blank', blank) gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)...
27.333333
114
0.729268
129
820
4.565891
0.55814
0.095076
0
0
0
0
0
0
0
0
0
0.040377
0.093902
820
30
115
27.333333
0.752355
0.029268
0
0
0
0
0.228824
0.120101
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078092a018208fa66acdafddfde2bd709ed8859d
51
py
Python
mmdet/ops/fcosr_tools/__init__.py
RangeKing/FCOSR
b92f0cee2e89d6a268884bacd02fb28881cd44a4
[ "Apache-2.0" ]
38
2021-11-23T02:58:47.000Z
2022-03-21T08:16:59.000Z
mmdet/ops/fcosr_tools/__init__.py
RangeKing/FCOSR
b92f0cee2e89d6a268884bacd02fb28881cd44a4
[ "Apache-2.0" ]
15
2021-12-06T07:51:04.000Z
2022-03-29T11:35:29.000Z
mmdet/ops/fcosr_tools/__init__.py
RangeKing/FCOSR
b92f0cee2e89d6a268884bacd02fb28881cd44a4
[ "Apache-2.0" ]
12
2021-11-23T02:58:50.000Z
2022-03-24T01:18:23.000Z
from . import fcosr_tools __all__ = ['fcosr_tools']
25.5
25
0.764706
7
51
4.714286
0.714286
0.606061
0
0
0
0
0
0
0
0
0
0
0.117647
51
2
26
25.5
0.733333
0
0
0
0
0
0.211538
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
1
0
0
0
0
4
0780e5ec41de515a271f19ff0412527f1e12bd8f
287
py
Python
health_care/health_care/doctype/practitioner/practitioner.py
Jnalis/frappe-health-care
ed347c216f568cc044c1365965d35945697cf7dc
[ "MIT" ]
null
null
null
health_care/health_care/doctype/practitioner/practitioner.py
Jnalis/frappe-health-care
ed347c216f568cc044c1365965d35945697cf7dc
[ "MIT" ]
null
null
null
health_care/health_care/doctype/practitioner/practitioner.py
Jnalis/frappe-health-care
ed347c216f568cc044c1365965d35945697cf7dc
[ "MIT" ]
null
null
null
# Copyright (c) 2022, Juve and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class Practitioner(Document): def before_save(self): self.practitioner_full_name = f'{self.first_name} {self.second_name or ""}'
28.7
77
0.777003
40
287
5.45
0.725
0
0
0
0
0
0
0
0
0
0
0.015936
0.125436
287
9
78
31.888889
0.85259
0.358885
0
0
0
0
0.233333
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
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
1
0
0
0
0
1
0
0
3
07827562174365b2eae2774f05f5a4b7e0a35d24
1,617
py
Python
install-hooks.py
JustasGau/DonjinKrawler
faff50dcfcebf82028c9af10434359f975247d33
[ "MIT" ]
null
null
null
install-hooks.py
JustasGau/DonjinKrawler
faff50dcfcebf82028c9af10434359f975247d33
[ "MIT" ]
9
2020-10-11T13:55:12.000Z
2020-12-09T16:28:06.000Z
install-hooks.py
JustasGau/DonjinKrawler
faff50dcfcebf82028c9af10434359f975247d33
[ "MIT" ]
null
null
null
import sys from os import path import urllib; from urllib.request import urlretrieve from subprocess import call def install_hooks(directory): checkstyleUrl = 'https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.36.1/checkstyle-8.36.1-all.jar' preCommitUrl = 'https://gist.githubusercontent....
52.16129
150
0.678417
188
1,617
5.776596
0.425532
0.070902
0.088398
0.082873
0.089319
0
0
0
0
0
0
0.043801
0.166976
1,617
30
151
53.9
0.762435
0
0
0
0
0.037037
0.406308
0.054422
0
0
0
0
0
1
0.037037
false
0.037037
0.148148
0
0.185185
0.185185
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078375b28d8a3c360255f33574ef015988b175c4
3,962
py
Python
09_MicroServer_Cookies/micro_server.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
09_MicroServer_Cookies/micro_server.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
09_MicroServer_Cookies/micro_server.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
""" Micro webapp based on WebOb, Jinja2, WSGI with a simple router """ import os import hmac import hashlib import mimetypes from wsgiref.simple_server import WSGIServer, WSGIRequestHandler from webob import Request from webob import Response from jinja2 import Environment, FileSystemLoader class MicroServer(obje...
33.576271
100
0.649419
530
3,962
4.756604
0.324528
0.03332
0.022213
0.01666
0.06664
0.06664
0.06664
0.06664
0.06664
0.06664
0
0.006203
0.267542
3,962
117
101
33.863248
0.862509
0.336194
0
0.035714
0
0
0.025049
0
0
0
0
0
0
1
0.107143
false
0.035714
0.142857
0
0.303571
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0784261b13ef0cb016c21f71e6bc994a164d136e
2,234
py
Python
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
1
2017-07-14T19:22:39.000Z
2017-07-14T19:22:39.000Z
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
6
2021-02-02T23:08:48.000Z
2021-09-08T02:47:17.000Z
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
import logging from django.core import mail from django.conf import settings from django.core.management.base import BaseCommand import amo.utils from users.models import UserProfile log = logging.getLogger('z.mailer') FROM = settings.DEFAULT_FROM_EMAIL class Command(BaseCommand): help = "Send the email for bu...
34.369231
80
0.717995
371
2,234
4.28841
0.442049
0.021999
0.020113
0.032055
0.125079
0.100566
0.100566
0.100566
0.069139
0.069139
0
0.016667
0.19427
2,234
64
81
34.90625
0.867222
0.001791
0
0
0
0.061224
0.628366
0
0
0
0
0
0
0
null
null
0
0.122449
null
null
0
0
0
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
0
0
0
0
0
0
2
07851008cd92498c823e9a48b615278bda99bf7d
49,605
py
Python
astroplan/constraints.py
edose/astroplan
b3cf55340c50ccf69ec363889c1fe8ff2f93cada
[ "BSD-3-Clause" ]
160
2015-09-09T00:07:34.000Z
2022-03-15T22:22:49.000Z
astroplan/constraints.py
edose/astroplan
b3cf55340c50ccf69ec363889c1fe8ff2f93cada
[ "BSD-3-Clause" ]
414
2015-08-25T20:22:09.000Z
2022-03-31T13:01:10.000Z
astroplan/constraints.py
edose/astroplan
b3cf55340c50ccf69ec363889c1fe8ff2f93cada
[ "BSD-3-Clause" ]
90
2015-08-27T20:53:48.000Z
2022-01-25T06:11:16.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Specify and constraints to determine which targets are observable for an observer. """ from __future__ import (absolute_import, division, print_function, unicode_literals) # Standard library from abc import ABCMeta, abstractme...
37.353163
100
0.617579
5,884
49,605
5.090245
0.10826
0.01449
0.010217
0.014691
0.590865
0.544723
0.503222
0.470702
0.447898
0.432807
0
0.010835
0.292954
49,605
1,327
101
37.381311
0.843127
0.463885
0
0.458774
0
0
0.063508
0.011715
0
0
0
0.001507
0
1
0.093023
false
0
0.029598
0
0.221987
0.002114
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078516b1582562801fbf63851c5ac10efbd5d833
6,191
py
Python
backend/views.py
Raulios/django-blog
ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2
[ "MIT" ]
null
null
null
backend/views.py
Raulios/django-blog
ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2
[ "MIT" ]
null
null
null
backend/views.py
Raulios/django-blog
ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from django.core.urlresolvers import reverse from django.shortcuts import render from django.http import HttpResponseRedirect from core.models import Po...
25.166667
75
0.663059
693
6,191
5.79798
0.106782
0.045296
0.051767
0.074415
0.744151
0.673221
0.478845
0.478845
0.456446
0.456446
0
0.00184
0.210144
6,191
246
76
25.166667
0.819836
0.003715
0
0.572289
0
0
0.129885
0.036322
0
0
0
0
0
1
0.078313
false
0
0.048193
0
0.240964
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0785423db820435be27b39e1842db52b66a25a8e
2,953
py
Python
tiktorch/server/session/process.py
FynnBe/tiktorch
60c6fa9700e7ff73e44338e8755c56c6e8846f2f
[ "MIT" ]
null
null
null
tiktorch/server/session/process.py
FynnBe/tiktorch
60c6fa9700e7ff73e44338e8755c56c6e8846f2f
[ "MIT" ]
null
null
null
tiktorch/server/session/process.py
FynnBe/tiktorch
60c6fa9700e7ff73e44338e8755c56c6e8846f2f
[ "MIT" ]
null
null
null
import dataclasses import io import multiprocessing as _mp import uuid import zipfile from concurrent.futures import Future from multiprocessing.connection import Connection from typing import List, Optional, Tuple import numpy from tiktorch import log from tiktorch.rpc import Shutdown from tiktorch.rpc import mp as ...
30.132653
105
0.691162
364
2,953
5.379121
0.318681
0.045965
0.024515
0.022983
0.068948
0.068948
0.055158
0.055158
0.055158
0.055158
0
0.007735
0.211988
2,953
97
106
30.443299
0.833691
0.043007
0
0
0
0
0.02056
0
0
0
0
0.010309
0
1
0.092105
false
0.013158
0.223684
0.013158
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
078596cc2ee665e19eee2250f95d62feca0bd3b2
1,816
py
Python
openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
from openpype.modules.ftrack.lib import BaseEvent from openpype.modules.ftrack.lib.avalon_sync import CUST_ATTR_ID_KEY from openpype.modules.ftrack.event_handlers_server.event_sync_to_avalon import ( SyncToAvalonEvent ) class DelAvalonIdFromNew(BaseEvent): ''' This event removes AvalonId from custom attri...
33.018182
80
0.562225
192
1,816
5.135417
0.447917
0.032454
0.040568
0.052738
0.10142
0.044625
0
0
0
0
0
0.000851
0.352974
1,816
54
81
33.62963
0.838298
0.138216
0
0
0
0
0.052219
0
0
0
0
0
0
1
0.055556
false
0
0.083333
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0785a9ecd33b25242a059e89ddfae1ca8b3c0298
518
py
Python
tests/workflow/test_workflow_ingest_accepted_submission.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
tests/workflow/test_workflow_ingest_accepted_submission.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
tests/workflow/test_workflow_ingest_accepted_submission.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
import unittest import tests.settings_mock as settings_mock from tests.activity.classes_mock import FakeLogger from workflow.workflow_IngestAcceptedSubmission import workflow_IngestAcceptedSubmission class TestWorkflowIngestAcceptedSubmission(unittest.TestCase): def setUp(self): self.workflow = workflow_I...
34.533333
88
0.783784
51
518
7.803922
0.45098
0.090452
0.201005
0
0
0
0
0
0
0
0
0
0.15251
518
14
89
37
0.906606
0
0
0
0
0
0.046332
0.046332
0
0
0
0
0.090909
1
0.181818
false
0
0.363636
0
0.636364
0
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
1
0
1
0
0
3
078638d293ec315b963165f9210a9060b0e09180
2,436
py
Python
go/token/views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/token/views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/token/views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from urllib import urlencode import urlparse from django.shortcuts import Http404, redirect from django.contrib.auth.views import logout from django.contrib import messages from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from vumi.utils import load_class_by_strin...
35.304348
79
0.70197
348
2,436
4.747126
0.321839
0.043584
0.030872
0.025424
0.095642
0.041162
0.041162
0.041162
0
0
0
0.00463
0.20197
2,436
68
80
35.823529
0.845165
0.206486
0
0.086957
0
0
0.100364
0
0
0
0
0
0
1
0.043478
false
0
0.195652
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078810f30530e12e24a60251c7822cc072db8c3d
1,142
py
Python
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
from typogrify.filters import amp, caps, initial_quotes, smartypants, titlecase, typogrify, widont, TypogrifyError from functools import wraps from django.conf import settings from django import template from django.utils.safestring import mark_safe from django.utils.encoding import force_unicode register = template....
27.853659
114
0.69965
143
1,142
5.468531
0.356643
0.081841
0.038363
0
0
0
0
0
0
0
0
0
0.205779
1,142
40
115
28.55
0.862183
0
0
0
0
0
0.05364
0
0
0
0
0
0
0
null
null
0
0.206897
null
null
0
0
0
0
null
0
0
0
0
0
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
0789092717eaaad8fa74b92820df7d2a61d9ba9b
18,065
py
Python
bvbabel/vmr.py
carbrock/bvbabel
baac12d106455e34d9924309eadb4df991d3d8c9
[ "MIT" ]
7
2021-08-02T09:58:08.000Z
2022-03-17T21:13:34.000Z
bvbabel/vmr.py
carbrock/bvbabel
baac12d106455e34d9924309eadb4df991d3d8c9
[ "MIT" ]
2
2021-08-09T14:57:38.000Z
2022-03-28T13:25:19.000Z
bvbabel/vmr.py
carbrock/bvbabel
baac12d106455e34d9924309eadb4df991d3d8c9
[ "MIT" ]
4
2021-08-09T07:45:59.000Z
2022-03-22T23:02:15.000Z
"""Read, write, create Brainvoyager VMR file format.""" import struct import numpy as np from bvbabel.utils import (read_variable_length_string, write_variable_length_string) # ============================================================================= def read_vmr(filename): """Read...
45.049875
79
0.546305
2,052
18,065
4.787524
0.16423
0.052932
0.052524
0.070033
0.53634
0.498371
0.444727
0.434141
0.321967
0.236055
0
0.012127
0.278771
18,065
400
80
45.1625
0.741883
0.397509
0
0.476415
0
0
0.152053
0.025374
0
0
0
0
0
1
0.009434
false
0
0.014151
0
0.033019
0.004717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0789c9270fff78d0b163f2215a2a6a958e9cdb11
2,279
py
Python
example/image-classification/test_score.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
example/image-classification/test_score.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
187
2018-03-16T23:44:43.000Z
2021-12-14T21:19:54.000Z
example/image-classification/test_score.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.174603
78
0.662571
342
2,279
4.292398
0.435673
0.040872
0.042916
0.021798
0.239782
0.149864
0.149864
0.149864
0.149864
0.149864
0
0.03404
0.21369
2,279
62
79
36.758065
0.785156
0.3405
0
0.162162
0
0
0.183784
0.044595
0
0
0
0
0.081081
1
0.081081
false
0
0.108108
0.027027
0.216216
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078a7ff149f5f6902b3df48444c9f900c3b57349
139,271
py
Python
verticapy/vcolumn.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
7
2018-05-10T08:16:31.000Z
2018-05-15T00:59:26.000Z
verticapy/vcolumn.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
1
2018-05-15T00:15:35.000Z
2018-05-15T13:40:19.000Z
verticapy/vcolumn.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
null
null
null
# (c) Copyright [2018-2022] Micro Focus or one of its affiliates. # 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 applicabl...
34.261009
378
0.486139
13,770
139,271
4.813217
0.07618
0.03093
0.018981
0.012629
0.528214
0.465705
0.423579
0.384698
0.346676
0.330079
0
0.007071
0.356248
139,271
4,064
379
34.269439
0.732176
0.386283
0
0.36368
0
0.010169
0.162804
0.006469
0.000484
0
0
0
0.011138
1
0.040678
false
0.002421
0.010654
0.001937
0.104116
0.004843
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078a84b6d5f9b27e924368e0c1490273227caf78
6,918
py
Python
booktags/flaskapp/book/views.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
booktags/flaskapp/book/views.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
9
2019-12-20T15:24:38.000Z
2021-12-13T20:28:48.000Z
booktags/flaskapp/book/views.py
MagicSword/BookTags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ example.py ~~~~~~~~~ A simple command line application to run flask apps. :copyright: 2019 Miller :license: BSD-3-Clause """ # Known bugs that can't be fixed here: # - synopsis() cannot be prevented from clobbering existing # loaded modules. ...
30.746667
88
0.645273
902
6,918
4.827051
0.257206
0.067983
0.025723
0.031236
0.341755
0.286633
0.262058
0.245521
0.245521
0.245521
0
0.002966
0.220295
6,918
224
89
30.883929
0.804227
0.238653
0
0.296
0
0.008
0.094969
0.013456
0
0
0
0
0
1
0.072
false
0.008
0.088
0.016
0.248
0.032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078ba56d9b68af88a26ed1e2d4bb4466a1a8bcb9
429
py
Python
narwhallet/core/kws/http/enumerations/mediatypes.py
Snider/narwhallet
0d528763c735f1e68b8264e302854d41e7cf1956
[ "MIT" ]
3
2021-12-29T11:25:13.000Z
2022-01-16T13:57:17.000Z
narwhallet/core/kws/http/enumerations/mediatypes.py
Snider/narwhallet
0d528763c735f1e68b8264e302854d41e7cf1956
[ "MIT" ]
null
null
null
narwhallet/core/kws/http/enumerations/mediatypes.py
Snider/narwhallet
0d528763c735f1e68b8264e302854d41e7cf1956
[ "MIT" ]
1
2022-01-16T13:57:20.000Z
2022-01-16T13:57:20.000Z
from enum import Enum class content_type(Enum): # https://www.iana.org/assignments/media-types/media-types.xhtml css = 'text/css' gif = 'image/gif' htm = 'text/html' html = 'text/html' ico = 'image/bmp' jpg = 'image/jpeg' jpeg = 'image/jpeg' js = 'application/javascript' png = ...
23.833333
68
0.613054
58
429
4.517241
0.62069
0.076336
0
0
0
0
0
0
0
0
0
0
0.230769
429
17
69
25.235294
0.793939
0.144522
0
0
0
0
0.416438
0.060274
0
0
0
0
0
1
0
false
0
0.071429
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
078c924330df0f8ffe4dba08335fcd4ca824b7c3
125
py
Python
electrondiffraction/__init__.py
drix00/ElectronDiffraction
9dc258d90d0b73745b904b1bb6e1e3e794403a27
[ "Apache-2.0" ]
1
2020-07-23T12:24:09.000Z
2020-07-23T12:24:09.000Z
python/xraynomenclature/xraynomenclature/__init__.py
drix00/xray-nomenclature
92d3e15b9ebb505482a084522c6639ba09bbdd02
[ "Apache-2.0" ]
null
null
null
python/xraynomenclature/xraynomenclature/__init__.py
drix00/xray-nomenclature
92d3e15b9ebb505482a084522c6639ba09bbdd02
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Hendrix Demers""" __email__ = 'hendrix.demers@mail.mcgill.ca' __version__ = '0.1.0'
20.833333
43
0.648
16
125
4.3125
0.8125
0.376812
0
0
0
0
0
0
0
0
0
0.036697
0.128
125
5
44
25
0.59633
0.168
0
0
0
0
0.470588
0.284314
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
3
078df566472a507b372dad23be527536aa2fa29f
4,082
py
Python
storelet.py
markembling/storelet
9951368e2f143855d2c14509bdb8cf796d6e54b8
[ "BSD-3-Clause" ]
1
2015-09-07T17:19:40.000Z
2015-09-07T17:19:40.000Z
storelet.py
markembling/storelet
9951368e2f143855d2c14509bdb8cf796d6e54b8
[ "BSD-3-Clause" ]
1
2016-01-05T13:18:16.000Z
2016-01-05T14:16:57.000Z
storelet.py
markembling/storelet
9951368e2f143855d2c14509bdb8cf796d6e54b8
[ "BSD-3-Clause" ]
1
2019-02-21T09:20:48.000Z
2019-02-21T09:20:48.000Z
import os import logging from tempfile import mkstemp, mkdtemp from shutil import rmtree from zipfile import ZipFile, ZIP_DEFLATED from datetime import datetime from boto.s3.connection import S3Connection from boto.s3.key import Key __version__ = "0.1.8" __author__ = "Mark Embling" __email__ = "mark@markembling.info" ...
36.123894
82
0.607055
487
4,082
4.909651
0.342916
0.043496
0.015056
0.015056
0.205353
0.132999
0.091175
0.091175
0.052698
0.052698
0
0.004509
0.293729
4,082
112
83
36.446429
0.824835
0.130818
0
0.101266
0
0
0.103695
0.006015
0
0
0
0
0
1
0.164557
false
0
0.101266
0.037975
0.35443
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078eac42052a5c2213460643ce82f3d54d3402ee
963
py
Python
apps/delivery/migrations/0001_initial.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
2
2019-03-11T03:58:19.000Z
2020-03-06T06:45:28.000Z
apps/delivery/migrations/0001_initial.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
5
2020-06-05T20:04:20.000Z
2021-09-08T00:53:52.000Z
apps/delivery/migrations/0001_initial.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2019-03-08 13:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Delivery', fields=[ ('create_time', models....
33.206897
157
0.559709
99
963
5.272727
0.626263
0.14751
0.088123
0.103448
0.114943
0
0
0
0
0
0
0.023222
0.284528
963
28
158
34.392857
0.734398
0.046729
0
0
1
0
0.138646
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
078f93641653dd1d0323ab98d96a9fc89761a30c
721
py
Python
elementary/date-and-time-convertor.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
1
2018-02-24T10:51:07.000Z
2018-02-24T10:51:07.000Z
elementary/date-and-time-convertor.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
null
null
null
elementary/date-and-time-convertor.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
1
2019-02-13T21:41:07.000Z
2019-02-13T21:41:07.000Z
#!/usr/bin/env python3 def date_time(time): months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] hour, minute = int(time[11:13]), int(time[14:16]) return f"{int(time[0:2])} {months[int(time[3:5])-1]} {time[6:10]} year {h...
51.5
153
0.62552
120
721
3.65
0.508333
0.091324
0.09589
0.054795
0.091324
0.091324
0.091324
0
0
0
0
0.151414
0.166436
721
13
154
55.461538
0.577371
0.029126
0
0
0
0.1
0.570815
0.037196
0
0
0
0
0.3
1
0.1
false
0
0
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078fda9e491f07fc6685fbdf4be7377dd5f3e4a3
10,361
py
Python
lbry/wallet/server/peer.py
snapperVibes/lbry-sdk
77a51d1ad43404e5dc52af715a7bebfaeb3fee16
[ "MIT" ]
2
2021-04-14T07:37:37.000Z
2021-05-18T13:20:11.000Z
lbry/wallet/server/peer.py
lucianolb76/lbry-sdk
0c09f24cbf5bd0959dedca63363ff7ffadd45d66
[ "MIT" ]
null
null
null
lbry/wallet/server/peer.py
lucianolb76/lbry-sdk
0c09f24cbf5bd0959dedca63363ff7ffadd45d66
[ "MIT" ]
null
null
null
# Copyright (c) 2017, Neil Booth # # All rights reserved. # # The MIT License (MIT) # # 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 r...
34.194719
78
0.599266
1,320
10,361
4.596212
0.223485
0.018461
0.012856
0.017801
0.108456
0.08505
0.059502
0.047305
0.028845
0.028845
0
0.00499
0.303639
10,361
302
79
34.307947
0.835897
0.269858
0
0.192708
0
0
0.044196
0
0
0
0
0
0.015625
1
0.161458
false
0.010417
0.020833
0.010417
0.385417
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
078fed475eb9a6e7954859be5858da011d4c522e
1,787
py
Python
tests/components/deconz/test_diagnostics.py
aomann/core
5e71e7b775461cd4849c36075c6a1459a7d0ad22
[ "Apache-2.0" ]
null
null
null
tests/components/deconz/test_diagnostics.py
aomann/core
5e71e7b775461cd4849c36075c6a1459a7d0ad22
[ "Apache-2.0" ]
24
2021-11-03T06:20:16.000Z
2022-03-31T06:23:17.000Z
tests/components/deconz/test_diagnostics.py
aomann/core
5e71e7b775461cd4849c36075c6a1459a7d0ad22
[ "Apache-2.0" ]
null
null
null
"""Test deCONZ diagnostics.""" from unittest.mock import patch from pydeconz.websocket import STATE_RUNNING from homeassistant.const import Platform from .test_gateway import DECONZ_CONFIG, setup_deconz_integration from tests.components.diagnostics import get_diagnostics_for_config_entry async def test_entry_dia...
32.490909
73
0.582541
173
1,787
5.716763
0.387283
0.122346
0.039434
0.046512
0.09909
0
0
0
0
0
0
0
0.297706
1,787
54
74
33.092593
0.788048
0.01343
0
0.046512
0
0
0.127252
0.031958
0
0
0
0
0.023256
1
0
false
0
0.116279
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079020088d5707b9fc6c67fde0c7358e446490f2
32,821
py
Python
jax_md/partition.py
l1zp/jax-md
2440794aebb1c77116459e2ec2051d537a94ecf4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/partition.py
l1zp/jax-md
2440794aebb1c77116459e2ec2051d537a94ecf4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/partition.py
l1zp/jax-md
2440794aebb1c77116459e2ec2051d537a94ecf4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.34229
85
0.681728
4,736
32,821
4.559755
0.140203
0.036119
0.023339
0.005186
0.181848
0.11762
0.083862
0.058115
0.047696
0.040472
0
0.010211
0.227141
32,821
855
86
38.387135
0.841126
0.363334
0
0.133891
0
0
0.052335
0.005581
0
0
0
0.00117
0.002092
1
0.060669
false
0
0.033473
0.008368
0.205021
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0790c876aeebfd734072b2709676f53a6053af06
964
py
Python
rhucrl_experiments/evaluate/launch_evaluate_mass.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
rhucrl_experiments/evaluate/launch_evaluate_mass.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
rhucrl_experiments/evaluate/launch_evaluate_mass.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Run from rhucrl_experiments.evaluate folder.""" import socket from lsf_runner import init_runner, make_commands from rhucrl_experiments.evaluate.utilities import ENVIRONMENTS RARL_DIR = "../../runs/RARLAgent" ZERO_SUM_DIR = "../../runs/ZeroSumAgent" SCRIPT = "evaluate_mass_change.py" EXPERIMENTS = { "supermod...
37.076923
84
0.693983
121
964
5.297521
0.446281
0.054602
0.046802
0.065523
0.099844
0.099844
0.099844
0
0
0
0
0.009569
0.13278
964
25
85
38.56
0.757177
0.045643
0
0
0
0
0.276805
0.050328
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07915aac7804509d8daa27f0a06836f1ec42314d
739
py
Python
src/sentry/api/endpoints/project_tags.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
1
2021-08-10T06:07:13.000Z
2021-08-10T06:07:13.000Z
src/sentry/api/endpoints/project_tags.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/api/endpoints/project_tags.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
1
2017-04-08T04:09:18.000Z
2017-04-08T04:09:18.000Z
from __future__ import absolute_import import six from rest_framework.response import Response from sentry.api.bases.project import ProjectEndpoint from sentry.models import TagKey, TagKeyStatus class ProjectTagsEndpoint(ProjectEndpoint): def get(self, request, project): tag_keys = TagKey.objects.filte...
26.392857
64
0.626522
81
739
5.493827
0.530864
0.067416
0
0
0
0
0
0
0
0
0
0
0.288227
739
27
65
27.37037
0.846008
0
0
0
0
0
0.028417
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07919b5c6e89a71c84a3a15315c4e1b2767495ce
871
py
Python
examples/02 - callbacks/callbacks.py
TensorTom/async-Eel
d6484b6c5c9f89b64f5119d908fcdf29b173bd57
[ "MIT" ]
9
2019-06-17T22:11:01.000Z
2021-08-30T17:36:13.000Z
examples/02 - callbacks/callbacks.py
TensorTom/async-Eel
d6484b6c5c9f89b64f5119d908fcdf29b173bd57
[ "MIT" ]
4
2020-08-17T18:39:21.000Z
2021-08-29T02:54:23.000Z
examples/02 - callbacks/callbacks.py
TensorTom/async-Eel
d6484b6c5c9f89b64f5119d908fcdf29b173bd57
[ "MIT" ]
3
2020-02-27T03:40:05.000Z
2021-03-09T11:52:32.000Z
from __future__ import print_function # For Py2/3 compatibility import async_eel import random import asyncio loop = asyncio.get_event_loop() @async_eel.expose async def py_random(): return random.random() async def print_num(n): """callback of js_random""" print('Got this from Javascript:', n) asyn...
22.921053
85
0.686567
117
871
4.846154
0.521368
0.084656
0.068783
0.067019
0.074074
0
0
0
0
0
0
0.013139
0.213548
871
37
86
23.540541
0.814599
0.138921
0
0
0
0
0.105702
0
0
0
0
0
0
1
0
false
0
0.227273
0
0.272727
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079304ab36eaaab974694a2714de62dfde9010a0
1,578
py
Python
datacube/index/_api.py
AMA-AC/datacube-core
0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d
[ "Apache-2.0" ]
2
2019-10-24T15:29:54.000Z
2019-10-24T15:29:58.000Z
datacube/index/_api.py
AMA-AC/datacube-core
0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d
[ "Apache-2.0" ]
2
2021-03-26T00:37:36.000Z
2021-03-31T20:05:01.000Z
datacube/index/_api.py
PhilipeRLeal/datacube-core
81bed714f2e5cb30a2492f1b0cf3397b79141c3a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Access methods for indexing datasets & products. """ import logging from datacube.config import LocalConfig from datacube.drivers import index_driver_by_name, index_drivers from .index import Index _LOG = logging.getLogger(__name__) def index_connect(local_config=None, application_name=None, val...
35.863636
86
0.697085
186
1,578
5.704301
0.462366
0.072573
0.024505
0.032045
0
0
0
0
0
0
0
0.00082
0.227503
1,578
43
87
36.697674
0.869565
0.393536
0
0
0
0
0.074033
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079480b6c82dd74c78bc4155e46e5d2906c6b673
6,560
py
Python
pgarchives/loader/load_message.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgarchives/loader/load_message.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgarchives/loader/load_message.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python3 # # load_message.py - takes a single email or mbox formatted # file on stdin or in a file and reads it into the database. # import os import sys from optparse import OptionParser from configparser import ConfigParser import psycopg2 from lib.storage import ArchivesParserStorage from lib.mbox ...
35.846995
150
0.594817
820
6,560
4.687805
0.290244
0.01821
0.020812
0.028616
0.226587
0.19589
0.179501
0.162851
0.137877
0.127732
0
0.007889
0.285061
6,560
182
151
36.043956
0.811727
0.079878
0
0.37931
0
0.013793
0.213183
0.015773
0
0
0
0
0
1
0.006897
false
0
0.068966
0
0.075862
0.117241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079486c9e4c55ef02a54afabc6964be8635f9540
860
py
Python
shop/migrations/0009_auto_20200310_1430.py
manson800819/test
6df7d92eababe76a54585cb8102a00a6d79ca467
[ "MIT" ]
null
null
null
shop/migrations/0009_auto_20200310_1430.py
manson800819/test
6df7d92eababe76a54585cb8102a00a6d79ca467
[ "MIT" ]
null
null
null
shop/migrations/0009_auto_20200310_1430.py
manson800819/test
6df7d92eababe76a54585cb8102a00a6d79ca467
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-03-10 14:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('shop', '0008_auto_20200310_1134'), ] operations =...
27.741935
123
0.612791
93
860
5.494624
0.623656
0.046967
0.054795
0.086106
0
0
0
0
0
0
0
0.061709
0.265116
860
30
124
28.666667
0.746835
0.080233
0
0.304348
1
0
0.100254
0.029188
0
0
0
0
0
1
0
false
0
0.130435
0
0.26087
0
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
079607c3763787747e103898caecb5035367fd71
1,351
py
Python
lib/dataset/iNaturalist.py
jrcai/ACE
1e2b04d1cf4bb517f107664ac489a1a96e95a4c1
[ "MIT" ]
18
2021-08-06T01:15:32.000Z
2022-03-14T07:09:39.000Z
lib/dataset/iNaturalist.py
jrcai/BagofTricks-LT
d75b195367e3d535d316d134ec4bbef4bb7fcbdd
[ "MIT" ]
2
2021-09-24T03:29:17.000Z
2021-11-22T19:18:58.000Z
lib/dataset/iNaturalist.py
jrcai/BagofTricks-LT
d75b195367e3d535d316d134ec4bbef4bb7fcbdd
[ "MIT" ]
2
2021-10-17T18:09:20.000Z
2021-11-08T04:19:19.000Z
from dataset.baseset import BaseSet import random, cv2 import numpy as np class iNaturalist(BaseSet): def __init__(self, mode='train', cfg=None, transform=None): super(iNaturalist, self).__init__(mode, cfg, transform) random.seed(0) self.class_dict = self._get_class_dict() ...
32.95122
104
0.623982
167
1,351
4.814371
0.347305
0.034826
0.059701
0.094527
0.299751
0.271144
0.271144
0.129353
0.129353
0.129353
0
0.00504
0.265729
1,351
40
105
33.775
0.805444
0.005181
0
0
0
0
0.057364
0
0
0
0
0
0.04
1
0.08
false
0
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079659eddea08dcb5566544e99167b54c9eb8c33
27,964
py
Python
tests/test_conferences.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
null
null
null
tests/test_conferences.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
80
2015-02-25T15:12:15.000Z
2015-06-11T18:44:55.000Z
tests/test_conferences.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import mock from nose.tools import * # noqa (PEP8 asserts) import hmac import hashlib from StringIO import StringIO from django.core.exceptions import ValidationError from django.db import IntegrityError import furl from framework.auth import get_or_create_user from framework.auth.core impo...
36.506527
114
0.611357
3,099
27,964
5.294934
0.116489
0.032848
0.021939
0.016211
0.679079
0.637211
0.61192
0.583643
0.548967
0.526601
0
0.008919
0.278322
27,964
765
115
36.554248
0.803974
0.022028
0
0.550614
0
0
0.11915
0.025725
0
0
0
0
0.161043
1
0.084356
false
0.009202
0.029141
0
0.133436
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079711a016ea4fa9510f792cc6a93c56f3a684e5
4,060
py
Python
socket_tentacles/__init__.py
innovationgarage/socket-tentacles
1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6
[ "MIT" ]
null
null
null
socket_tentacles/__init__.py
innovationgarage/socket-tentacles
1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6
[ "MIT" ]
null
null
null
socket_tentacles/__init__.py
innovationgarage/socket-tentacles
1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6
[ "MIT" ]
1
2019-11-01T12:38:20.000Z
2019-11-01T12:38:20.000Z
import socketserver import socket import sys import threading import json import queue import time import datetime import traceback class TCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer): def server_bind(self): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self.soc...
31.472868
107
0.580049
438
4,060
5.262557
0.276256
0.043384
0.014317
0.017354
0
0
0
0
0
0
0
0.005622
0.299015
4,060
128
108
31.71875
0.804287
0.017241
0
0.09434
0
0
0.062123
0
0
0
0
0
0.009434
1
0.150943
false
0
0.084906
0.018868
0.396226
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0797199eb44c9067c6481782c2b094efbd8e10a6
3,917
py
Python
G5/DerivedData/ParameterProbing/checkme.py
shooking/ZoomPedalFun
7b9f5f4441cfe42e988e06cf6b98603c21ac2466
[ "CC0-1.0" ]
9
2021-02-15T00:05:32.000Z
2022-01-24T14:01:46.000Z
G5/DerivedData/ParameterProbing/checkme.py
shooking/ZoomPedalFun
7b9f5f4441cfe42e988e06cf6b98603c21ac2466
[ "CC0-1.0" ]
13
2021-08-23T02:07:26.000Z
2022-02-16T16:55:00.000Z
G5/DerivedData/ParameterProbing/checkme.py
shooking/ZoomPedalFun
7b9f5f4441cfe42e988e06cf6b98603c21ac2466
[ "CC0-1.0" ]
null
null
null
# -*- coding: ascii -*- import sys import json def check(data): OnOffstart = data.find(b"OnOff") if OnOffstart != -1: fxName="" OnOffblockSize = 0x30 for j in range(12): if data[OnOffstart + j + OnOffblockSize] == 0x00: break fxName ...
40.381443
129
0.451876
370
3,917
4.762162
0.324324
0.166856
0.170261
0.23042
0.363791
0.251419
0.097616
0.097616
0.052213
0.052213
0
0.042115
0.430176
3,917
96
130
40.802083
0.747312
0.100332
0
0.090909
0
0
0.039259
0
0
0
0.008822
0
0
1
0.018182
false
0.018182
0.036364
0
0.072727
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0797927e3d7bde5eb907276662251361ce156da5
475
py
Python
leehao/learn63.py
pilihaotian/pythonlearning
e84b7766cc9ea8131e9720fb1f06761c9581d0da
[ "Apache-2.0" ]
1
2020-02-26T14:52:17.000Z
2020-02-26T14:52:17.000Z
leehao/learn63.py
pilihaotian/pythonlearning
e84b7766cc9ea8131e9720fb1f06761c9581d0da
[ "Apache-2.0" ]
null
null
null
leehao/learn63.py
pilihaotian/pythonlearning
e84b7766cc9ea8131e9720fb1f06761c9581d0da
[ "Apache-2.0" ]
null
null
null
# 随机6位密码 a-zA-Z0-9下划线 import random source = '' lower_char = [chr(x) for x in range(ord('a'), ord('z') + 1)] upper_char = [chr(x) for x in range(ord('A'), ord('Z') + 1)] number_char = [chr(x) for x in range(ord('0'), ord('9') + 1)] source += "".join(lower_char) source += "".join(upper_char) source += "".join(number_ch...
23.75
61
0.591579
78
475
3.5
0.423077
0.076923
0.087912
0.120879
0.285714
0.285714
0.285714
0.285714
0.205128
0.205128
0
0.03125
0.191579
475
19
62
25
0.679688
0.075789
0
0
0
0
0.018349
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
0799d6264b46d419f66659960f9e80e3239bdd1c
1,237
py
Python
gbic/tests.py
fga-eps-mds/2017.2-SiGI-Op_API
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
6
2017-08-24T13:18:21.000Z
2017-10-03T18:06:13.000Z
gbic/tests.py
fga-gpp-mds/2017.2-Grupo9
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
173
2017-08-31T15:29:01.000Z
2017-12-14T13:40:13.000Z
gbic/tests.py
fga-gpp-mds/2017.2-SiGI-Op_API
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
2
2018-11-19T10:33:00.000Z
2019-06-19T22:35:43.000Z
from django.test import TestCase from rest_framework.test import APIRequestFactory from .models import GBIC, GBICType from .views import GBICListViewSet # Create your tests here. class GBICTest(TestCase): def test_gbic_view_set(self): request = APIRequestFactory().get("") gbic_detail = GBICListVi...
35.342857
74
0.672595
140
1,237
5.7
0.364286
0.06015
0.06015
0.037594
0.641604
0.591479
0.513784
0.513784
0.513784
0.513784
0
0.012539
0.226354
1,237
34
75
36.382353
0.821317
0.018593
0
0.357143
0
0
0.056106
0
0
0
0
0
0.071429
1
0.071429
false
0
0.142857
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
079a7acf6ad24d3b711dca5d0ee7ae05fdfe00c0
23,239
py
Python
fruits/core/fruit.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
4
2021-10-08T11:14:54.000Z
2021-12-30T13:56:32.000Z
fruits/core/fruit.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
null
null
null
fruits/core/fruit.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
null
null
null
import inspect from typing import List, Union, Set, Any import numpy as np from fruits.cache import Cache, CoquantileCache from fruits.scope import force_input_shape, FitTransform from fruits.core.callback import AbstractCallback from fruits.signature.iss import SignatureCalculator, CachePlan from fruits.words.word i...
35.752308
77
0.588235
2,713
23,239
4.926281
0.134537
0.011223
0.010475
0.010774
0.414964
0.364834
0.296296
0.287168
0.246988
0.215563
0
0.003836
0.315676
23,239
649
78
35.807396
0.836572
0.3711
0
0.324759
0
0
0.055921
0.008709
0
0
0
0
0
1
0.128617
false
0
0.032154
0
0.241158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079c6865019ab91124c781c2644155172081ba8b
9,863
py
Python
workoutizer/__main__.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
workoutizer/__main__.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
workoutizer/__main__.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
import os import argparse import subprocess import socket import sys import click from django.core.management import execute_from_command_line from workoutizer.settings import WORKOUTIZER_DIR, WORKOUTIZER_DB_PATH, TRACKS_DIR from workoutizer import __version__ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SE...
38.678431
120
0.667343
1,301
9,863
4.864719
0.250576
0.022752
0.0237
0.031285
0.244746
0.206668
0.187075
0.164955
0.12419
0.100174
0
0.008329
0.220927
9,863
254
121
38.830709
0.815331
0.00436
0
0.173077
0
0.004808
0.323589
0.020778
0
0
0
0
0
1
0.086538
false
0.043269
0.081731
0
0.206731
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079ca32a831e991e4272d56b55460b5a2a9b338e
8,807
py
Python
bcbio/bam/trim.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
1
2015-04-08T17:43:39.000Z
2015-04-08T17:43:39.000Z
bcbio/bam/trim.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
bcbio/bam/trim.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
"""Provide trimming of input reads from Fastq or BAM files. """ import os import sys import tempfile from bcbio.utils import (file_exists, safe_makedir, replace_suffix, append_stem, is_pair, replace_directory, map_wrap) from bcbio.log import logger from bcbio.bam impor...
40.962791
92
0.65641
1,132
8,807
4.834806
0.235866
0.038005
0.017906
0.020099
0.274438
0.157135
0.073634
0.059382
0.051526
0.051526
0
0.010923
0.241172
8,807
214
93
41.154206
0.80802
0.131941
0
0.149068
0
0
0.127795
0
0
0
0
0.004673
0
1
0.055901
false
0
0.068323
0
0.21118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079cc8e3750a72f04c77d4be145f9892cc269784
13,419
py
Python
FEniCSUI/AnalysesHub/views.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
FEniCSUI/AnalysesHub/views.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
8
2021-03-10T21:59:52.000Z
2021-09-22T19:12:57.000Z
FEniCSUI/AnalysesHub/views.py
nasserarbabi/FEniCSUI
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.views import APIView from django.shortcuts import get_object_or_404 from dashboard.models import projects from .models import AnalysisConfig, SolverResults, SolverProgress, DockerLogs from rest_framework.parsers import FormParser, JSONParser, MultiPartPar...
42.735669
158
0.634474
1,515
13,419
5.522772
0.186139
0.043504
0.053783
0.030118
0.534242
0.507589
0.460978
0.448667
0.398709
0.398709
0
0.013829
0.256353
13,419
313
159
42.872204
0.824632
0.073851
0
0.439252
0
0.009346
0.1237
0.005364
0
0
0
0
0
1
0.065421
false
0
0.070093
0
0.317757
0.004673
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079d837b78456fbc7dc57dde76430c107de0f8b2
1,627
py
Python
fs/opener/appfs.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
fs/opener/appfs.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
fs/opener/appfs.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding: utf-8 """``AppFS`` opener definition. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .base import Opener from .errors import OpenerError from ..subfs import ClosingSubFS from .. import appfs class AppFSOpener(Opener): """``...
24.283582
68
0.566687
154
1,627
5.785714
0.454545
0.072952
0.053872
0
0
0
0
0
0
0
0
0.003663
0.328826
1,627
66
69
24.651515
0.812271
0.040565
0
0
0
0
0.107811
0.018076
0
0
0
0
0
1
0.02
false
0
0.14
0
0.24
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
079e4e7b1369d32d29e2b328e164f3c7bb362e85
23,180
py
Python
scripts/modeling_toolbox/evaluation.py
cyberj0g/verification-classifier
efb19a3864e27a7f149a1c27ee8e13eaa19f96eb
[ "MIT" ]
8
2019-06-06T08:16:45.000Z
2021-06-26T11:53:48.000Z
scripts/modeling_toolbox/evaluation.py
cyberj0g/verification-classifier
efb19a3864e27a7f149a1c27ee8e13eaa19f96eb
[ "MIT" ]
95
2019-03-27T08:36:01.000Z
2022-02-10T00:15:20.000Z
scripts/modeling_toolbox/evaluation.py
cyberj0g/verification-classifier
efb19a3864e27a7f149a1c27ee8e13eaa19f96eb
[ "MIT" ]
8
2019-02-28T11:21:46.000Z
2022-03-21T07:34:20.000Z
import numpy as np from sklearn.metrics import fbeta_score, roc_curve, auc, confusion_matrix from sklearn.decomposition import PCA from sklearn import random_projection from sklearn import svm from sklearn.ensemble import IsolationForest import matplotlib.pyplot as plt from keras.layers import Dense, Input, Dropout fro...
44.83559
122
0.519586
2,497
23,180
4.56628
0.098919
0.018856
0.017541
0.017892
0.733117
0.695492
0.661989
0.651903
0.635327
0.594983
0
0.016543
0.379336
23,180
516
123
44.922481
0.775978
0.009922
0
0.611399
0
0
0.07528
0
0
0
0
0
0
1
0.03886
false
0
0.041451
0
0.11399
0.012953
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a0528abcb6666cfcae1ee1c6cb300b86de98df
1,896
py
Python
tests/test_notifo_message.py
mrtazz/notifo.py
26079db3b40c26661155af20a9f16a0eca06dbde
[ "MIT" ]
3
2015-11-05T11:49:34.000Z
2016-07-17T18:06:15.000Z
tests/test_notifo_message.py
mrtazz/notifo.py
26079db3b40c26661155af20a9f16a0eca06dbde
[ "MIT" ]
null
null
null
tests/test_notifo_message.py
mrtazz/notifo.py
26079db3b40c26661155af20a9f16a0eca06dbde
[ "MIT" ]
null
null
null
# encoding: utf-8 import unittest import os import sys sys.path.append(os.getcwd()) from notifo import Notifo, send_message class TestNotifyUser(unittest.TestCase): def setUp(self): self.provider = "test_provider" self.provider_banned = "test_provider_msg_banned" self.user = "test_user" ...
38.693878
79
0.655591
206
1,896
5.781553
0.223301
0.080605
0.058774
0.054576
0.444165
0.391268
0.312343
0.287154
0.287154
0.287154
0
0.098532
0.245253
1,896
48
80
39.5
0.733753
0.007911
0
0.25641
0
0
0.206493
0.120809
0
0
0
0
0.128205
1
0.153846
false
0
0.102564
0
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a0beb6aad78f79be93a859fb255e52020dee2b
1,931
py
Python
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
1
2020-06-04T01:09:24.000Z
2020-06-04T01:09:24.000Z
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
null
null
null
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import numpy as np import .Selection as Sel import .Exploration as Exp import .CatUtils as CU #----------------------------------------------------------------------------------------- def GaussWin (Dis, Sig): return np.exp(-(Dis**2)/(Sig**2.)) #------------------...
23.26506
90
0.483169
271
1,931
3.442804
0.346863
0.021436
0.038585
0.019293
0.066452
0.066452
0.066452
0.066452
0.066452
0.066452
0
0.027496
0.284309
1,931
83
91
23.26506
0.647612
0.188503
0
0.245283
0
0
0
0
0
0
0
0
0
0
null
null
0
0.075472
null
null
0
0
0
0
null
0
0
0
0
0
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
07a14721d51acde99d2ac0e4f6c8f439015ceb27
2,759
py
Python
hebsafeharbor/identifier/signals/lexicon_based_recognizer.py
dkarmon/HebSafeHarbor
fdad7481c74feb78f8c3265c327eae7712cf16ce
[ "MIT" ]
3
2022-03-10T14:41:54.000Z
2022-03-28T11:18:56.000Z
hebsafeharbor/identifier/signals/lexicon_based_recognizer.py
8400TheHealthNetwork/HebSafeHarbor
f618ca76d995e6fb74c0cb2f01478c7efd2d8836
[ "MIT" ]
2
2022-03-06T10:39:27.000Z
2022-03-07T12:42:13.000Z
hebsafeharbor/identifier/signals/lexicon_based_recognizer.py
dkarmon/HebSafeHarbor
fdad7481c74feb78f8c3265c327eae7712cf16ce
[ "MIT" ]
3
2022-02-15T09:50:08.000Z
2022-02-22T08:43:26.000Z
from typing import List from presidio_analyzer import EntityRecognizer, RecognizerResult, AnalysisExplanation from presidio_analyzer.nlp_engine import NlpArtifacts from hebsafeharbor.common.terms_recognizer import TermsRecognizer class LexiconBasedRecognizer(EntityRecognizer): """ A class which extends the E...
43.793651
117
0.697717
303
2,759
6.188119
0.356436
0.0608
0.0352
0.0256
0
0
0
0
0
0
0
0.001432
0.240667
2,759
62
118
44.5
0.893556
0.357738
0
0
0
0
0.001238
0
0
0
0
0
0
1
0.103448
false
0.034483
0.137931
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a42ef8c15bd224503fc4a06fa31dab2756c605
35,966
py
Python
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
# encoding: utf-8 # # Copyright (C) 2018 ycmd contributors # # This file is part of ycmd. # # ycmd is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any lat...
34.783366
79
0.508564
3,639
35,966
4.819181
0.12366
0.07584
0.041512
0.050408
0.560358
0.484575
0.41267
0.356446
0.30467
0.27211
0
0.041237
0.331813
35,966
1,033
80
34.817038
0.688499
0.113858
0
0.488372
0
0
0.20837
0.015273
0
0
0
0.000968
0.023256
1
0.040392
false
0
0.014688
0
0.05508
0.011016
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a4651e3c80a36d3030fc52e231138dba1e43c1
1,032
py
Python
sentiment/config.py
TheRensselaerIDEA/covid19_tweet_ids
fee7d951b11cf2650e48668614c30672179ab3af
[ "MIT" ]
null
null
null
sentiment/config.py
TheRensselaerIDEA/covid19_tweet_ids
fee7d951b11cf2650e48668614c30672179ab3af
[ "MIT" ]
null
null
null
sentiment/config.py
TheRensselaerIDEA/covid19_tweet_ids
fee7d951b11cf2650e48668614c30672179ab3af
[ "MIT" ]
null
null
null
""" Config class containing all the settings for running sentiment scoring tool """ import jsonpickle class Config(object): """Container for sentiment scoring tool settings. """ def __init__(self): """Initializes the Config instance. """ #Elasticsearch settings self.elasti...
27.157895
75
0.622093
113
1,032
5.477876
0.584071
0.137318
0.06462
0
0
0
0
0
0
0
0
0.016506
0.295543
1,032
38
76
27.157895
0.834938
0.281977
0
0
0
0
0.008658
0
0
0
0
0
0
1
0.105263
false
0
0.052632
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
07a4d5bc6f7dc36e1d1fd72f273d7cc3af846e4b
9,184
py
Python
tests/ut/python/dataset/test_invert.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
4
2021-01-26T09:14:01.000Z
2021-01-26T09:17:24.000Z
tests/ut/python/dataset/test_invert.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_invert.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
35.875
111
0.579377
1,095
9,184
4.641096
0.153425
0.047226
0.023613
0.047226
0.749311
0.689886
0.615899
0.550767
0.512003
0.484652
0
0.019874
0.309669
9,184
255
112
36.015686
0.781703
0.117051
0
0.530201
0
0
0.048209
0.010518
0
0
0
0
0.006711
1
0.040268
false
0
0.04698
0
0.087248
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a4fdcadf45ca16af301e1936af3cd96dd967fd
748
py
Python
puzzle/tests/test_candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
puzzle/tests/test_candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
9
2017-10-25T10:03:36.000Z
2018-06-12T22:49:22.000Z
puzzle/tests/test_candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
from parameterized import parameterized from numpy.testing import TestCase from .. import candy class TestCollectCandies(TestCase): @parameterized.expand( [(5, 5, 12, [[2, 1, 1, 1, 1], [2, 2, 1, 1, 1], [1, 2, 1, 1, 1], [2, 2, 1, 1, 3], [2, 2, 2, 2, 2]])] ) def test_candy(self...
35.619048
73
0.481283
102
748
3.480392
0.372549
0.061972
0.042254
0.033803
0.08169
0.053521
0.039437
0
0
0
0
0.105368
0.32754
748
20
74
37.4
0.600398
0
0
0
0
0
0
0
0
0
0
0
0.117647
1
0.058824
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a6ea2e95247eb4360055919661bfab2c787424
442
py
Python
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
import time import subprocess import os print os.uname() if not os.uname()[0].startswith("Darw"): import pygame pygame.mixer.init() # Plays a song def playSong(filename): print "play song" if not os.uname()[0].startswith("Darw"): pygame.mixer.music.fadeout(1000) #fadeout current music over 1 sec. pygame.m...
24.555556
69
0.708145
64
442
4.890625
0.5
0.140575
0.153355
0.076677
0.172524
0.172524
0.172524
0
0
0
0
0.018325
0.135747
442
18
70
24.555556
0.801047
0.11086
0
0.133333
0
0
0.089514
0
0
0
0
0
0
0
null
null
0
0.266667
null
null
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
1
0
0
0
0
0
0
0
0
1
07a74f63c4315c5c81ce34abcbe9eb4483cc9b1f
4,783
py
Python
tests/test_dynamodbHandler.py
unfoldingWord-dev/python-aws-tools
8e856697ab07c5c33e60cde2d82ac805dec3ddf3
[ "MIT" ]
1
2017-08-23T22:31:23.000Z
2017-08-23T22:31:23.000Z
tests/test_dynamodbHandler.py
unfoldingWord-dev/python-aws-tools
8e856697ab07c5c33e60cde2d82ac805dec3ddf3
[ "MIT" ]
null
null
null
tests/test_dynamodbHandler.py
unfoldingWord-dev/python-aws-tools
8e856697ab07c5c33e60cde2d82ac805dec3ddf3
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals, print_function import mock import unittest import d43_aws_tools as aws_tools from boto3.dynamodb.conditions import Attr class DynamoDBHandlerTests(unittest.TestCase): @classmethod def setUpClass(cls): with mock.patch("d43_aws_tools.dynamodb_han...
40.533898
104
0.59147
548
4,783
4.979927
0.25
0.096739
0.093807
0.051301
0.439355
0.364969
0.335654
0.250641
0.219861
0.187615
0
0.009283
0.279323
4,783
117
105
40.880342
0.78242
0.10391
0
0.23913
0
0
0.135314
0.031589
0
0
0
0
0.25
1
0.108696
false
0
0.054348
0
0.173913
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a75032397b40d87190a129b70b4805e05f8c42
799
py
Python
app.py
sbustamante/heroku_app
6c8ff0b570750f3fe53ec67e24b71641167d53ce
[ "MIT" ]
null
null
null
app.py
sbustamante/heroku_app
6c8ff0b570750f3fe53ec67e24b71641167d53ce
[ "MIT" ]
null
null
null
app.py
sbustamante/heroku_app
6c8ff0b570750f3fe53ec67e24b71641167d53ce
[ "MIT" ]
null
null
null
from dash import Dash, html, dcc import plotly.express as px import pandas as pd app = Dash(__name__) server = app.server # assume you have a "long-form" data frame # see https://plotly.com/python/px-arguments/ for more options df = pd.DataFrame({ "Fruit": ["Apples", "Oranges", "Bananas", "Apples", "Oranges", "Ba...
24.96875
78
0.617021
111
799
4.324324
0.621622
0.033333
0.083333
0
0
0
0
0
0
0
0
0.010903
0.196496
799
32
79
24.96875
0.73676
0.126408
0
0
0
0
0.284483
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a86aa8bb5513e6175425568029999ed308c9e2
23,759
py
Python
peter_sslers/web/lib/form_utils.py
aptise/peter_sslers
1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0
[ "MIT" ]
35
2016-04-21T18:55:31.000Z
2022-03-30T08:22:43.000Z
peter_sslers/web/lib/form_utils.py
aptise/peter_sslers
1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0
[ "MIT" ]
8
2018-05-23T13:38:49.000Z
2021-03-19T21:05:44.000Z
peter_sslers/web/lib/form_utils.py
aptise/peter_sslers
1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0
[ "MIT" ]
2
2016-08-18T21:07:11.000Z
2017-01-11T09:47:40.000Z
# pypi import six # local from ...lib import db as lib_db from ...lib import utils from ...model import objects as model_objects from ...model import utils as model_utils from . import formhandling # ============================================================================== def decode_args(getcreate_args): ...
39.271074
151
0.638032
2,444
23,759
5.864566
0.115385
0.062094
0.053024
0.035164
0.610898
0.572385
0.518384
0.497384
0.471848
0.442964
0
0.003051
0.282672
23,759
604
152
39.336093
0.837939
0.182373
0
0.424242
0
0
0.148851
0.045716
0
0
0
0
0
1
0.027972
false
0.006993
0.018648
0.002331
0.130536
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07a919ed87f13258649cbf2c9c6e2971a4de419e
5,568
py
Python
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
1
2022-03-09T06:15:43.000Z
2022-03-09T06:15:43.000Z
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
null
null
null
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020–2021 Xilinx, 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 w...
33.341317
119
0.541667
703
5,568
4.261735
0.28165
0.030374
0.038051
0.025367
0.281709
0.267023
0.267023
0.224967
0.194927
0.14219
0
0.038182
0.332076
5,568
166
120
33.542169
0.767142
0.231861
0
0.188119
0
0
0.051452
0
0
0
0
0
0
1
0.009901
false
0
0.029703
0
0.049505
0.089109
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07aa6fe145a48bc2b3e22c3ee731584817a386ba
357
py
Python
Object Oriented Programming/Lecture 01/Intro.py
ashish-ad/Python-Projects
7f49476b6945189165d536629109030f10603556
[ "Unlicense" ]
1
2021-10-08T06:52:12.000Z
2021-10-08T06:52:12.000Z
Object Oriented Programming/Lecture 01/Intro.py
ashish-ad/Python-Projects
7f49476b6945189165d536629109030f10603556
[ "Unlicense" ]
null
null
null
Object Oriented Programming/Lecture 01/Intro.py
ashish-ad/Python-Projects
7f49476b6945189165d536629109030f10603556
[ "Unlicense" ]
null
null
null
item1='phone' item1_price = 100 item1_quantity = 5 item1_price_total = item1_price * item1_quantity print(type(item1)) # str print(type(item1_price)) # int print(type(item1_quantity)) # int print(type(item1_price_total)) # int # output: # <class 'str'> # <class 'int'> # ...
21
48
0.59944
44
357
4.636364
0.295455
0.245098
0.27451
0.186275
0
0
0
0
0
0
0
0.053232
0.263305
357
17
49
21
0.722433
0.266106
0
0
0
0
0.019763
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
1
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
0
0
0
0
0
1
0
4
07ab77d7eb12a86186be6ca7c7efa3f2eb65e7be
342
py
Python
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
_base_ = "./FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_01_02MasterChefCan.py" OUTPUT_DIR = "output/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/16_36WoodBlock" DATASETS = dict(TRAIN=("ycbv_036_woo...
85.5
154
0.903509
45
342
6.155556
0.688889
0.079422
0.187726
0.267148
0.570397
0.570397
0.570397
0.570397
0.570397
0.570397
0
0.093093
0.026316
342
3
155
114
0.738739
0
0
0
0
0
0.833333
0.833333
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
07abd88c1750bfa23ce141be4914e78e9e578d95
316
py
Python
sqlakeyset/__init__.py
jhihruei/sqlakeyset
0aa0f6e041dc37bc5f918303578875ad334cad6c
[ "Unlicense" ]
null
null
null
sqlakeyset/__init__.py
jhihruei/sqlakeyset
0aa0f6e041dc37bc5f918303578875ad334cad6c
[ "Unlicense" ]
null
null
null
sqlakeyset/__init__.py
jhihruei/sqlakeyset
0aa0f6e041dc37bc5f918303578875ad334cad6c
[ "Unlicense" ]
null
null
null
from .columns import OC from .paging import get_page, select_page, process_args from .results import serialize_bookmark, unserialize_bookmark, Page, Paging __all__ = [ 'OC', 'get_page', 'select_page', 'serialize_bookmark', 'unserialize_bookmark', 'Page', 'Paging', 'process_args' ]
19.75
75
0.693038
36
316
5.694444
0.416667
0.068293
0.126829
0.165854
0.44878
0.44878
0
0
0
0
0
0
0.199367
316
15
76
21.066667
0.810277
0
0
0
0
0
0.257143
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07abdc1f2ef1ad7ab554d9cccaa9f73782091369
6,609
py
Python
low_rank_local_connectivity/models/simple_model.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
low_rank_local_connectivity/models/simple_model.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
low_rank_local_connectivity/models/simple_model.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.982759
80
0.681192
843
6,609
5.11981
0.252669
0.07646
0.029194
0.029194
0.40987
0.368397
0.352641
0.305607
0.288925
0.267609
0
0.006463
0.227417
6,609
173
81
38.202312
0.838817
0.157966
0
0.373016
0
0
0.045528
0.005059
0
0
0
0
0
1
0.015873
false
0.071429
0.063492
0
0.095238
0.007937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
07ad506b318b0e47d29c2d5e943847cb809ea5ef
721
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import busio from adafruit_icm20x import ICM20948 cycles = 200 i2c = busio.I2C(board.SCL, board.SDA) icm = ICM20948(i2c) # Cycle between two data rates # Best viewed in the Mu serial plotter where y...
25.75
62
0.718447
112
721
4.526786
0.508929
0.110454
0.086785
0.118343
0.351085
0.2643
0.2643
0.2643
0.2643
0.2643
0
0.048443
0.198336
721
27
63
26.703704
0.82872
0.335645
0
0.444444
0
0
0.042463
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07afa89bd7f7b951972777c2099542dd2fbf96da
304
py
Python
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
a = int(input()) while a: for x in range(a-1): out = '*' + ' ' * (a-x-2) + '*' + ' ' * (a-x-2) + '*' print(out.center(2*a-1)) print('*' * (2 * a - 1)) for x in range(a-1): out = '*' + ' ' * x + '*' + ' ' * x + '*' print(out.center(2*a-1)) a = int(input())
27.636364
61
0.348684
46
304
2.304348
0.282609
0.09434
0.084906
0.207547
0.622642
0.622642
0.301887
0
0
0
0
0.050761
0.351974
304
10
62
30.4
0.48731
0
0
0.6
0
0
0.036184
0
0.2
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
07afdc77d12fe88ab48cead7329435544528b522
8,032
py
Python
utils/common.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
utils/common.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
utils/common.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
import datetime import json import os from pathlib import Path from types import SimpleNamespace from typing import List from typing import NamedTuple, Union, Optional, Callable from uuid import uuid3, NAMESPACE_DNS from dateutil.parser import parse _VIDEO_SUFFIXES = [".mkv", ".mp4"] _IMAGE_SUFFIXES = [".jpg"] _PERMI...
33.606695
140
0.671564
1,137
8,032
4.41073
0.135444
0.107478
0.095713
0.033898
0.44985
0.343968
0.302293
0.257228
0.218943
0.139182
0
0.00471
0.233441
8,032
238
141
33.747899
0.80981
0.022908
0
0.054645
0
0
0.169472
0.037108
0
0
0
0
0
1
0.04918
false
0
0.04918
0.016393
0.224044
0.065574
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b0911062690c0f062a5b15420ab76dd3a0ddb5
807
py
Python
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
# Generated by Django 2.2.1 on 2019-09-27 14:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schoolio', '0004_auto_20190927_0405'), ] operations = [ migrations.AlterField( model_name='student_assessment', name...
27.827586
74
0.607187
80
807
5.9625
0.5375
0.125786
0.157233
0.18239
0.524109
0.524109
0.524109
0.524109
0.377358
0.377358
0
0.058824
0.283767
807
28
75
28.821429
0.766436
0.055762
0
0.5
1
0
0.177632
0.030263
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
07b3b408f0f9c7313a3971b858fbe6beb4247623
1,733
py
Python
taattack/_datasets/dataset.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/_datasets/dataset.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/_datasets/dataset.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
class Dataset: _data = None _first_text_col = 'text' _second_text_col = None _label_col = 'label' def __init__(self): self._idx = 0 if self._data is None: raise Exception('Dataset is not loaded') def __iter__(self): return self def __next__(self): ...
34.66
142
0.589729
227
1,733
4.105727
0.189427
0.145923
0.090129
0.109442
0.482833
0.482833
0.482833
0.482833
0.482833
0.482833
0
0.003336
0.308136
1,733
50
143
34.66
0.773978
0
0
0.292683
0
0
0.017301
0
0
0
0
0
0
1
0.121951
false
0
0
0.04878
0.439024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b47bbb8eb7acb013788dd5e04ca55c384f4c1f
7,732
py
Python
scripts/extract_gs_citations.py
akhilpandey95/scholarlyimpact
215ae832c90f0564fa0301e4c3f1c99525617625
[ "MIT" ]
null
null
null
scripts/extract_gs_citations.py
akhilpandey95/scholarlyimpact
215ae832c90f0564fa0301e4c3f1c99525617625
[ "MIT" ]
18
2020-02-20T23:40:26.000Z
2020-10-20T04:05:43.000Z
scripts/extract_gs_citations.py
akhilpandey95/scholarlyimpact
215ae832c90f0564fa0301e4c3f1c99525617625
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This Source Code Form is subject to the terms of the MIT # License. If a copy of the same was not distributed with this # file, You can obtain one at # https://github.com/akhilpandey95/scholarlyimpact/blob/master/LICENSE. import os import csv import glob import json import requests import sub...
26.847222
91
0.602431
940
7,732
4.856383
0.269149
0.009858
0.015772
0.014896
0.24644
0.169332
0.146988
0.146988
0.126835
0.126835
0
0.004897
0.313373
7,732
287
92
26.940767
0.854963
0.390843
0
0.265487
0
0
0.072748
0
0
0
0
0
0
1
0.070796
false
0.017699
0.132743
0
0.318584
0.044248
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b56e4319a20d96b921852eb21d1c92a5f276de
4,672
py
Python
dist-packages/reportlab/pdfgen/pathobject.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
51
2015-01-20T19:50:34.000Z
2022-03-05T21:23:32.000Z
dist-packages/reportlab/pdfgen/pathobject.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
16
2015-11-15T04:23:43.000Z
2021-09-27T14:14:20.000Z
src/reportlab/pdfgen/pathobject.py
guildenstern70/pyfab
34d786fec17192591ac3c5f73913a9b04311695a
[ "MIT" ]
46
2015-03-28T10:18:14.000Z
2021-12-16T15:57:47.000Z
#Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfgen/pathobject.py __version__=''' $Id$ ''' __doc__=""" PDFPathObject is an efficient way to draw paths on a Canvas. Do not instantiate directly, obt...
36.5
109
0.627354
710
4,672
4.053521
0.35493
0.048645
0.038916
0.019458
0.12196
0.091035
0.068103
0.053509
0.053509
0.033357
0
0.041036
0.264555
4,672
127
110
36.787402
0.796566
0.376498
0
0
0
0
0.12196
0
0
0
0
0
0.013889
1
0.194444
false
0
0.027778
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
07b58dc361c480dc7628924d4fba99b729151138
687
py
Python
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
import wikipedia import re import TCPclient as client WORDS = ["WIKIPEDIA","SEARCH","INFORMATION"] def handle(text,mic,profile): # SEARCH ON WIKIPEDIA # ny = wikipedia.summary("New York",sentences=3); # mic.say("%s"% ny) #mic.say("What you want to search about") #text = mic.activeListen() print "entering wik...
19.083333
61
0.679767
93
687
4.989247
0.516129
0.038793
0.060345
0.081897
0
0
0
0
0
0
0
0.003534
0.176128
687
35
62
19.628571
0.816254
0.24163
0
0.117647
0
0
0.160156
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.235294
0
0
0
null
0
0
0
0
0
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
07b68a248a019f47e10cdf7898c67384df56c25f
1,447
py
Python
Madlibs/madlibs.py
nikhil-amin/python-mini-project
cd70a6a43408ce74cff501ce4d4658ab82260c2d
[ "MIT" ]
2
2021-08-20T08:59:28.000Z
2021-11-23T00:17:15.000Z
Madlibs/madlibs.py
nikhil-amin/python-mini-project
cd70a6a43408ce74cff501ce4d4658ab82260c2d
[ "MIT" ]
null
null
null
Madlibs/madlibs.py
nikhil-amin/python-mini-project
cd70a6a43408ce74cff501ce4d4658ab82260c2d
[ "MIT" ]
1
2022-01-06T16:35:43.000Z
2022-01-06T16:35:43.000Z
import random print("Title : Eat, Drink, And Be Sick") noun = [] for i in range(4): n = input("Enter noun : ") noun.append(n) plural = [] for i in range(6): pn = input("Enter plural noun : ") plural.append(pn) adjective = [] for i in range(2): a = input("Enter adjective : ") adjective.append(a) ...
60.291667
270
0.676572
209
1,447
4.674641
0.430622
0.14739
0.110542
0.033777
0
0
0
0
0
0
0
0.002536
0.182446
1,447
23
271
62.913043
0.823331
0
0
0
0
0
0.483068
0
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0.304348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b69c4f080b6ae079038a0250ba13b6035a0cda
191
py
Python
scripts/transpose.py
saikrishnarallabandi/python_connectionist
e3f8f92c8de865190ad727951eb2b0e514248afc
[ "Apache-2.0" ]
null
null
null
scripts/transpose.py
saikrishnarallabandi/python_connectionist
e3f8f92c8de865190ad727951eb2b0e514248afc
[ "Apache-2.0" ]
null
null
null
scripts/transpose.py
saikrishnarallabandi/python_connectionist
e3f8f92c8de865190ad727951eb2b0e514248afc
[ "Apache-2.0" ]
null
null
null
import numpy g = open('/home/srallaba/mgc/transposed/arctic_a0404.mgc','w') x = numpy.loadtxt('/home/srallaba/mgc_spaces/arctic_a0404.mgc') numpy.savetxt(g, numpy.transpose(x)) g.close()
31.833333
64
0.73822
30
191
4.6
0.566667
0.173913
0.217391
0
0
0
0
0
0
0
0
0.045455
0.078534
191
5
65
38.2
0.738636
0
0
0
0
0
0.465969
0.460733
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
07b6a4b93bbebd4e00153c0e368d7d75f4691489
7,337
py
Python
tests/zone_api_test/core/zone_manager_test.py
yfaway/zone-apis
4aa4120cb4a66812dac1d32e86e825bbafe652b8
[ "MIT" ]
1
2021-11-22T11:51:17.000Z
2021-11-22T11:51:17.000Z
tests/zone_api_test/core/zone_manager_test.py
yfaway/zone-apis
4aa4120cb4a66812dac1d32e86e825bbafe652b8
[ "MIT" ]
20
2021-01-31T00:20:34.000Z
2022-01-09T18:02:31.000Z
tests/zone_api_test/core/zone_manager_test.py
yfaway/zone-apis
4aa4120cb4a66812dac1d32e86e825bbafe652b8
[ "MIT" ]
null
null
null
from zone_api.core.zone_manager import ZoneManager from zone_api import platform_encapsulator as pe from zone_api.core.zone import Zone from zone_api.core.zone_event import ZoneEvent from zone_api.core.devices.dimmer import Dimmer from zone_api.core.devices.switch import Fan, Light, Switch from zone_api.core.devices.i...
40.535912
118
0.694698
892
7,337
5.445067
0.147982
0.05559
0.044472
0.045501
0.617048
0.584311
0.578546
0.541487
0.514721
0.495162
0
0.00932
0.19572
7,337
180
119
40.761111
0.81376
0.004225
0
0.409091
0
0
0.022883
0.002878
0
0
0
0
0.189394
1
0.136364
false
0
0.075758
0
0.219697
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b77a97c35aea2ef5b761b745880bae3410a131
2,796
py
Python
meiduo_mall/meiduo_mall/apps/orders/views.py
Zasling/meiduo_mall33
ec55597758d5052b311d65aee44533b001f6ddd8
[ "MIT" ]
1
2019-04-12T08:56:29.000Z
2019-04-12T08:56:29.000Z
meiduo_mall/meiduo_mall/apps/orders/views.py
Zasling/meiduo_mall33
ec55597758d5052b311d65aee44533b001f6ddd8
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/orders/views.py
Zasling/meiduo_mall33
ec55597758d5052b311d65aee44533b001f6ddd8
[ "MIT" ]
1
2020-03-30T14:35:22.000Z
2020-03-30T14:35:22.000Z
from rest_framework.response import Response from rest_framework.views import APIView from django_redis import get_redis_connection from goods.models import SKU from decimal import Decimal from rest_framework.generics import CreateAPIView,ListAPIView from rest_framework.mixins import ListModelMixin from orders.serializ...
31.066667
115
0.689199
308
2,796
6.100649
0.334416
0.023949
0.045237
0.028739
0
0
0
0
0
0
0
0.003257
0.231402
2,796
89
116
31.41573
0.871103
0.078326
0
0.052632
0
0
0.021926
0
0
0
0
0
0
1
0.070175
false
0
0.210526
0
0.561404
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
07b88bc36babff3a11858ef34a69a78ca7bd4caf
37,841
py
Python
src/streamlink_cli/main.py
melmorabity/streamlink
24c59a23103922977991acc28741a323d8efa7a1
[ "BSD-2-Clause" ]
null
null
null
src/streamlink_cli/main.py
melmorabity/streamlink
24c59a23103922977991acc28741a323d8efa7a1
[ "BSD-2-Clause" ]
null
null
null
src/streamlink_cli/main.py
melmorabity/streamlink
24c59a23103922977991acc28741a323d8efa7a1
[ "BSD-2-Clause" ]
null
null
null
import argparse import errno import logging import os import platform import signal import sys from collections import OrderedDict from contextlib import closing from distutils.version import StrictVersion from functools import partial from gettext import gettext from itertools import chain from pathlib import Path fro...
33.999102
122
0.640258
4,624
37,841
5.084343
0.132137
0.01812
0.043641
0.012165
0.292812
0.197618
0.141557
0.115781
0.098681
0.094088
0
0.002896
0.269866
37,841
1,112
123
34.029676
0.848022
0.09273
0
0.264743
0
0.001255
0.13367
0.015871
0
0
0
0
0
1
0.043915
false
0.006274
0.040151
0.002509
0.110414
0.007528
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b8d02790ae07e8540167a649afc0cab32e02e9
16,807
py
Python
dbaccesslibUserMailInfo.py
Koushik-ks/FlaskAPP
6f1bd98450bc8f33c3896aa7ec690c51dc414d19
[ "MIT" ]
null
null
null
dbaccesslibUserMailInfo.py
Koushik-ks/FlaskAPP
6f1bd98450bc8f33c3896aa7ec690c51dc414d19
[ "MIT" ]
null
null
null
dbaccesslibUserMailInfo.py
Koushik-ks/FlaskAPP
6f1bd98450bc8f33c3896aa7ec690c51dc414d19
[ "MIT" ]
1
2019-11-08T06:49:57.000Z
2019-11-08T06:49:57.000Z
from io import BytesIO from io import StringIO import json from bson.dbref import DBRef import datetime from bson import json_util import logging import base64 jsonCode ={ "building":{ "Essae Vaishnavi Solitaire": { "id": "B1", "division": { "SS"...
42.335013
242
0.404712
1,484
16,807
4.46159
0.161725
0.044404
0.034738
0.015708
0.497659
0.4599
0.450989
0.421991
0.421991
0.406434
0
0.033891
0.448742
16,807
396
243
42.441919
0.680734
0.025287
0
0.534031
0
0.002618
0.120151
0.013744
0
0
0
0
0
1
0.02356
false
0
0.028796
0
0.086387
0.015707
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b8f248ebba127a7ba553594c485e647090e69f
3,489
py
Python
src/test/dags/bq_to_cm_dag_test.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
null
null
null
src/test/dags/bq_to_cm_dag_test.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
null
null
null
src/test/dags/bq_to_cm_dag_test.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
null
null
null
# python3 # coding=utf-8 # Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
35.602041
74
0.755804
484
3,489
5.097107
0.359504
0.036887
0.025942
0.014593
0.126064
0
0
0
0
0
0
0.004711
0.14818
3,489
97
75
35.969072
0.82537
0.219834
0
0
0
0
0.201855
0.08757
0
0
0
0
0.065574
1
0.04918
false
0
0.147541
0
0.213115
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b971c0c6fde3e7ed6901642724f170bca1dffb
10,781
py
Python
talentmap_api/common/management/commands/load_xml.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
5
2018-08-09T18:51:12.000Z
2021-11-08T10:28:17.000Z
talentmap_api/common/management/commands/load_xml.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
232
2017-06-16T02:09:54.000Z
2018-05-10T16:15:48.000Z
talentmap_api/common/management/commands/load_xml.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
4
2018-06-13T14:49:27.000Z
2021-06-30T22:29:15.000Z
from django.core.management.base import BaseCommand import logging import re from talentmap_api.common.xml_helpers import XMLloader, strip_extra_spaces, parse_boolean, parse_date, get_nested_tag from talentmap_api.language.models import Language, Proficiency from talentmap_api.position.models import Grade, Skill, Pos...
36.422297
142
0.66914
1,288
10,781
5.18323
0.190217
0.053925
0.047933
0.039844
0.281156
0.226932
0.211803
0.19263
0.172558
0.140803
0
0.007509
0.221779
10,781
295
143
36.545763
0.7882
0.027548
0
0.185345
0
0.00431
0.318633
0.16638
0
0
0
0
0
1
0.086207
false
0
0.030172
0
0.181034
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07b9b8864e1cb2b18a6326e38faad88d4012991a
2,581
py
Python
gluon/tests/test_recfile.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
gluon/tests/test_recfile.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
gluon/tests/test_recfile.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Unit tests for gluon.recfile """ import unittest import os import shutil import uuid from .fix_path import fix_sys_path fix_sys_path(__file__) from gluon import recfile class TestRecfile(unittest.TestCase): def setUp(self): os.mkdir('tests') d...
34.413333
92
0.593181
300
2,581
5
0.22
0.056
0.084
0.08
0.739333
0.613333
0.613333
0.564
0.512
0.485333
0
0.006386
0.271988
2,581
74
93
34.878378
0.791911
0.027509
0
0.534483
0
0
0.052062
0
0
0
0
0
0.241379
1
0.068966
false
0
0.103448
0
0.189655
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07ba0eee7b3f5dcbd7cf03e65b5f80e0ede665d0
1,022
py
Python
configLambdas.py
cfrome77/liquid-stats
7a4d751dea215c94b650beb154a90abce7e1592d
[ "MIT" ]
4
2020-06-21T14:43:40.000Z
2021-12-29T17:02:18.000Z
configLambdas.py
cfrome77/liquid-stats
7a4d751dea215c94b650beb154a90abce7e1592d
[ "MIT" ]
21
2018-09-18T18:42:53.000Z
2022-01-04T05:55:12.000Z
configLambdas.py
cfrome77/liquid-stats
7a4d751dea215c94b650beb154a90abce7e1592d
[ "MIT" ]
null
null
null
import json import os import subprocess from dotenv import load_dotenv from subprocess import check_output, Popen, PIPE load_dotenv() # Accessing variables. CLIENT_ID = os.environ.get('CLIENT_ID') CLIENT_SECRET = os.environ.get('CLIENT_SECRET') USERNAME = os.environ.get('USERNAME') BUCKET_NAME = os.environ.get('BUCK...
26.894737
122
0.714286
123
1,022
5.707317
0.341463
0.045584
0.068376
0.051282
0
0
0
0
0
0
0
0.001153
0.151663
1,022
37
123
27.621622
0.808535
0.019569
0
0
0
0
0.277
0.14
0
0
0
0
0
1
0.037037
false
0
0.185185
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07baaefdacf7ace2738a920e7e9c1d5671078a05
13,520
py
Python
microbitAnim.py
SaitoYutaka/microbitAnim
6630d5cdb3ae867d3467a035a1c14358944c0367
[ "MIT" ]
null
null
null
microbitAnim.py
SaitoYutaka/microbitAnim
6630d5cdb3ae867d3467a035a1c14358944c0367
[ "MIT" ]
null
null
null
microbitAnim.py
SaitoYutaka/microbitAnim
6630d5cdb3ae867d3467a035a1c14358944c0367
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Aug 8 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### impo...
44.473684
181
0.598669
1,773
13,520
4.447829
0.091371
0.081156
0.026629
0.066193
0.613239
0.478443
0.469693
0.455998
0.455998
0.442683
0
0.074268
0.252071
13,520
303
182
44.620462
0.705597
0.017456
0
0.152632
1
0
0.002159
0
0
0
0
0
0
1
0.163158
false
0.005263
0.010526
0
0.178947
0
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
07babdb06c676058838f65ac7fea336d215d962b
339
py
Python
src/dependencies/contrib/celery.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
src/dependencies/contrib/celery.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
src/dependencies/contrib/celery.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
""" dependencies.contrib.celery --------------------------- This module implements injectable Celery task. :copyright: (c) 2016-2020 by dry-python team. :license: BSD, see LICENSE for more details. """ from _dependencies.contrib.celery import shared_task from _dependencies.contrib.celery import task __all__ = ["sha...
22.6
52
0.710914
41
339
5.682927
0.634146
0.244635
0.321888
0.248927
0.300429
0
0
0
0
0
0
0.026667
0.115044
339
14
53
24.214286
0.75
0.575221
0
0
0
0
0.110294
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
1
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
0
0
1
0
1
0
0
5
07bb317b5c0941f28a4da7f31413b20f4a8bda28
7,838
py
Python
yolo3/utils.py
gaxu/keras-yolo3
7f6be0fb9a8583401246bfe65d2df2ee40777d72
[ "MIT" ]
null
null
null
yolo3/utils.py
gaxu/keras-yolo3
7f6be0fb9a8583401246bfe65d2df2ee40777d72
[ "MIT" ]
null
null
null
yolo3/utils.py
gaxu/keras-yolo3
7f6be0fb9a8583401246bfe65d2df2ee40777d72
[ "MIT" ]
4
2021-02-25T08:21:15.000Z
2021-02-25T08:56:39.000Z
"""Miscellaneous utility functions.""" from functools import reduce from PIL import Image import numpy as np from matplotlib.colors import rgb_to_hsv, hsv_to_rgb def compose(*funcs): """Compose arbitrarily many functions, evaluated left to right. Reference: https://mathieularose.com/function-composition-in-...
32.522822
130
0.578719
1,309
7,838
3.296409
0.148969
0.016686
0.025492
0.032445
0.473233
0.448204
0.422711
0.390267
0.390267
0.377984
0
0.048054
0.245981
7,838
240
131
32.658333
0.682064
0.128477
0
0.379518
0
0
0.009168
0
0
0
0
0
0
1
0.036145
false
0
0.024096
0.006024
0.10241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07bd6b46f25dcc6cd80de3063def3b5b81539dae
161
py
Python
text_classification/config.py
MardanovTimur/kaggle
62392863a07fcc5de9821c28cf9c6dbbf39ced59
[ "MIT" ]
null
null
null
text_classification/config.py
MardanovTimur/kaggle
62392863a07fcc5de9821c28cf9c6dbbf39ced59
[ "MIT" ]
null
null
null
text_classification/config.py
MardanovTimur/kaggle
62392863a07fcc5de9821c28cf9c6dbbf39ced59
[ "MIT" ]
null
null
null
import logging import pathlib logging.basicConfig(level=logging.INFO) # Dirs ROOT_DIR = pathlib.Path(__file__).parent.absolute() DUMP_DIR = ROOT_DIR / 'dumps'
17.888889
51
0.782609
22
161
5.409091
0.681818
0.117647
0
0
0
0
0
0
0
0
0
0
0.10559
161
8
52
20.125
0.826389
0.024845
0
0
0
0
0.032258
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
07bd8ff47d8f5245f9a21b92c33b949fce1127a8
8,482
py
Python
sportsreference/ncaaf/rankings.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
sportsreference/ncaaf/rankings.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
sportsreference/ncaaf/rankings.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
1
2020-07-08T16:05:25.000Z
2020-07-08T16:05:25.000Z
import re from pyquery import PyQuery as pq from .. import utils from .constants import RANKINGS_SCHEME, RANKINGS_URL from six.moves.urllib.error import HTTPError class Rankings: """ Get all Associated Press (AP) rankings on a week-by-week basis. Grab a list of the rankings published by the Associated Pr...
39.821596
79
0.549399
992
8,482
4.627016
0.225806
0.015251
0.0122
0.025054
0.359477
0.3122
0.232462
0.226797
0.226797
0.226797
0
0.005807
0.370667
8,482
212
80
40.009434
0.854065
0.534072
0
0.142857
0
0
0.092076
0.017324
0
0
0
0
0
1
0.090909
false
0
0.064935
0
0.246753
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07bd958d061b56e11538171ee991b3269000d33d
5,937
py
Python
ding/hpc_rl/wrapper.py
davide97l/DI-engine
d48c93bcd5c07c29f2ce4ac1b7756b8bc255c423
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
ding/hpc_rl/wrapper.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
ding/hpc_rl/wrapper.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
import importlib from ditk import logging from collections import OrderedDict from functools import wraps import ding ''' Overview: `hpc_wrapper` is the wrapper for functions which are supported by hpc. If a function is wrapped by it, we will search for its hpc type and return the function implemented by hpc. ...
44.30597
120
0.578912
818
5,937
3.96088
0.224939
0.037037
0.022222
0.02963
0.259259
0.163889
0.131173
0.119444
0.062346
0.062346
0
0.005862
0.310426
5,937
133
121
44.639098
0.78554
0.006401
0
0.082192
0
0
0.159641
0.044843
0
0
0
0
0
1
0.054795
false
0
0.082192
0
0.219178
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07be5334fc353ee2aa3b8e027797471255271069
102
py
Python
CodeWars/2016/NumberOfOccurrences-7k.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodeWars/2016/NumberOfOccurrences-7k.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodeWars/2016/NumberOfOccurrences-7k.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
#Return the count of int(s) in passed array. def number_of_occurrences(s, xs): return xs.count(s)
34
45
0.72549
19
102
3.789474
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.166667
102
3
46
34
0.847059
0.421569
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
1
0
0
0
1
1
0
0
5
07bf6145f03382a8bd2f1aee40dd398c31e7d6c2
10,343
py
Python
telethon_generator/parsers/tlobject.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
2
2021-01-06T12:49:49.000Z
2021-04-23T16:32:13.000Z
telethon_generator/parsers/tlobject.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
null
null
null
telethon_generator/parsers/tlobject.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
null
null
null
import re from zlib import crc32 from ..utils import snake_to_camel_case CORE_TYPES = ( 0xbc799737, # boolFalse#bc799737 = Bool; 0x997275b5, # boolTrue#997275b5 = Bool; 0x3fedd339, # true#3fedd339 = True; 0x1cb5c415, # vector#1cb5c415 {t:Type} # [ t ] = Vector t; ) # https://github.com/telegramde...
35.788927
153
0.541332
1,258
10,343
4.321145
0.227345
0.022075
0.00883
0.00883
0.094555
0.066961
0.022443
0.012509
0.012509
0
0
0.019301
0.33878
10,343
288
154
35.913194
0.775552
0.252441
0
0.098958
0
0
0.088208
0.009594
0.005208
0
0.00533
0
0.005208
1
0.057292
false
0
0.015625
0.005208
0.130208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c02ac3abe7a10db3f40c2457c57bca98b41742
2,469
bzl
Python
dotnet/private/actions/resx_core.bzl
purkhusid/rules_dotnet
934e62d65ed3657be20b2ae3a63e032a2de9ff84
[ "Apache-2.0" ]
143
2016-03-15T20:37:54.000Z
2022-02-25T12:30:08.000Z
dotnet/private/actions/resx_core.bzl
purkhusid/rules_dotnet
934e62d65ed3657be20b2ae3a63e032a2de9ff84
[ "Apache-2.0" ]
176
2016-03-17T13:28:50.000Z
2022-03-30T21:19:24.000Z
dotnet/private/actions/resx_core.bzl
purkhusid/rules_dotnet
934e62d65ed3657be20b2ae3a63e032a2de9ff84
[ "Apache-2.0" ]
79
2016-03-16T11:34:56.000Z
2022-02-04T10:54:00.000Z
"Actions for compiling resx files" load( "@io_bazel_rules_dotnet//dotnet/private:providers.bzl", "DotnetResourceInfo", ) def _make_runner_arglist(dotnet, source, output, resgen): args = dotnet.actions.args() if type(source) == "Target": args.add_all(source.files) else: args.add(so...
32.92
159
0.651681
291
2,469
5.426117
0.388316
0.032932
0.036099
0.041799
0.037999
0
0
0
0
0
0
0.00108
0.249899
2,469
74
160
33.364865
0.851512
0.332928
0
0.042553
0
0
0.130141
0.045427
0
0
0
0
0
1
0.042553
false
0
0
0
0.085106
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c0bb5052572bdefa7514e11ef8a10e0bb0427e
1,035
py
Python
test/jit/test_modules.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
test/jit/test_modules.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
818
2020-02-07T02:36:44.000Z
2022-03-31T23:49:44.000Z
test/jit/test_modules.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# Owner(s): ["oncall: jit"] import torch import os import sys from torch.testing._internal.jit_utils import JitTestCase # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(pytorch_test_dir) if __name__ == '__main__': raise Ru...
30.441176
81
0.630918
139
1,035
4.410072
0.568345
0.029364
0.045677
0.04894
0.052202
0
0
0
0
0
0
0.006596
0.267633
1,035
33
82
31.363636
0.802111
0.233816
0
0
0
0
0.145119
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c0c2bb274ab76681ad18763446d5b0c976c985
242
py
Python
pixelate_task_1.py
Swayamshu/Pixelate_Sample_Arena
d8e8b4614987f9302a19ec1e20a922618e67b943
[ "MIT" ]
null
null
null
pixelate_task_1.py
Swayamshu/Pixelate_Sample_Arena
d8e8b4614987f9302a19ec1e20a922618e67b943
[ "MIT" ]
null
null
null
pixelate_task_1.py
Swayamshu/Pixelate_Sample_Arena
d8e8b4614987f9302a19ec1e20a922618e67b943
[ "MIT" ]
null
null
null
import gym import pix_sample_arena import time import pybullet as p import pybullet_data import cv2 if __name__ == "__main__": env = gym.make("pix_sample_arena-v0") x = 0 while True: p.stepSimulation() time.sleep(100)
18.615385
41
0.702479
36
242
4.361111
0.666667
0.11465
0.178344
0
0
0
0
0
0
0
0
0.031579
0.214876
242
13
42
18.615385
0.794737
0
0
0
0
0
0.111111
0
0
0
0
0
0
1
0
false
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
07c22498468a49059683c71a90ec92358cf9e563
916
py
Python
tests/test_timeparser.py
vgoehler/python-i3-battery-block
e47ce80b315d812d731df84f2a1c8e1155b2469a
[ "BSD-2-Clause" ]
null
null
null
tests/test_timeparser.py
vgoehler/python-i3-battery-block
e47ce80b315d812d731df84f2a1c8e1155b2469a
[ "BSD-2-Clause" ]
9
2020-01-24T17:15:03.000Z
2020-06-02T14:16:40.000Z
tests/test_timeparser.py
vgoehler/python-i3-battery-block
e47ce80b315d812d731df84f2a1c8e1155b2469a
[ "BSD-2-Clause" ]
null
null
null
from datetime import time import pytest from i3_battery_block_vgg.timeparser import __parse_time_manually from i3_battery_block_vgg.timeparser import parse_time @pytest.mark.parametrize( "time_input, expected", [ ("12:13", time(hour=12, minute=13)), ("12:13:14", time(hour=12, minute=13, seco...
29.548387
94
0.677948
134
916
4.432836
0.253731
0.090909
0.114478
0.107744
0.835017
0.757576
0.757576
0.757576
0.757576
0.602694
0
0.082337
0.177948
916
30
95
30.533333
0.706507
0
0
0.416667
0
0
0.156114
0
0
0
0
0
0.083333
1
0.083333
false
0
0.166667
0
0.25
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
07c22c6dbb3092192d2a4fddcabee0db528c9e22
4,720
py
Python
frontends/PyCDE/test/polynomial.py
fyquah/circt
cee685bf12dbf27a3f2274e08cd1af6874f70baa
[ "Apache-2.0" ]
null
null
null
frontends/PyCDE/test/polynomial.py
fyquah/circt
cee685bf12dbf27a3f2274e08cd1af6874f70baa
[ "Apache-2.0" ]
null
null
null
frontends/PyCDE/test/polynomial.py
fyquah/circt
cee685bf12dbf27a3f2274e08cd1af6874f70baa
[ "Apache-2.0" ]
null
null
null
# RUN: %PYTHON% %s 2>&1 | FileCheck %s from __future__ import annotations import mlir import pycde from pycde import (Input, Output, Parameter, module, externmodule, generator, types, dim) from circt.dialects import comb, hw @module def PolynomialCompute(coefficients: Coefficients): class Pol...
35.223881
272
0.63411
574
4,720
5.095819
0.219512
0.030085
0.017094
0.049231
0.305299
0.248889
0.191111
0.137094
0.122735
0.122735
0
0.055673
0.200847
4,720
133
273
35.488722
0.719777
0.513771
0
0.090909
0
0
0.036032
0
0
0
0
0
0
1
0.106061
false
0
0.075758
0.015152
0.409091
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c24587d23b16e92b579d57a83d8cb4e84073ef
3,430
py
Python
python/examples/service_discovery.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
python/examples/service_discovery.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
python/examples/service_discovery.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import arc import sys import os def retrieve(uc, endpoints): # The ComputingServiceRetriever needs the UserConfig to know which credentials # to use in case of HTTPS connections retriever = arc.ComputingServiceRetriever(uc, endpoints) # the constructor of the ComputingServiceRetr...
40.352941
129
0.717201
449
3,430
5.469933
0.365256
0.053746
0.051303
0.017101
0.257736
0.205212
0.205212
0.165309
0.165309
0.165309
0
0.007785
0.176093
3,430
84
130
40.833333
0.861288
0.369679
0
0
0
0.045455
0.270561
0.12757
0
0
0
0
0
1
0.068182
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c2fc0684398b705e83193b8a4ddd1551624694
46,071
py
Python
core/domain/rights_manager.py
netajik/oppia
d3780352d615db7438e010c5aa5eb60588bb7de6
[ "Apache-2.0" ]
null
null
null
core/domain/rights_manager.py
netajik/oppia
d3780352d615db7438e010c5aa5eb60588bb7de6
[ "Apache-2.0" ]
null
null
null
core/domain/rights_manager.py
netajik/oppia
d3780352d615db7438e010c5aa5eb60588bb7de6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
35.303448
80
0.692323
5,531
46,071
5.502802
0.062376
0.074977
0.028289
0.009758
0.693258
0.619135
0.562492
0.493823
0.454429
0.404685
0
0.00026
0.248421
46,071
1,304
81
35.330521
0.878733
0.356081
0
0.365188
0
0.001706
0.084694
0.008021
0
0
0
0.000767
0
1
0.083618
false
0
0.022184
0
0.209898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c453afd778414ad9fee5c8bcdaf13018eeb9f5
1,755
py
Python
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
"""For neatly implementing static typing in packaging. `mypy` - the static type analysis tool we use - uses the `typing` module, which provides core functionality fundamental to mypy's functioning. Generally, `typing` would be imported at runtime and used in that fashion - it acts as a no-op at runtime and does not h...
37.340426
79
0.756125
286
1,755
4.597902
0.465035
0.054753
0.027376
0
0
0
0
0
0
0
0
0.004208
0.187464
1,755
46
80
38.152174
0.917952
0.8849
0
0
0
0
0.091892
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
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
0
0
0
1
0
0
0
2
07c4707b6186eda818ca02fcf8c20fba9ffa25c7
7,024
py
Python
selfdrive/car/toyota/carcontroller.py
aolin480/openpilot
9ac00c3e5e111a05a0bb10018ccd190571dfff4d
[ "MIT" ]
70
2021-06-18T13:04:10.000Z
2022-03-31T13:58:09.000Z
selfdrive/car/toyota/carcontroller.py
aolin480/openpilot
9ac00c3e5e111a05a0bb10018ccd190571dfff4d
[ "MIT" ]
50
2021-06-16T23:52:55.000Z
2022-03-30T14:05:33.000Z
selfdrive/car/toyota/carcontroller.py
aolin480/openpilot
9ac00c3e5e111a05a0bb10018ccd190571dfff4d
[ "MIT" ]
88
2021-06-23T21:33:19.000Z
2022-03-31T07:27:08.000Z
from cereal import car from common.numpy_fast import clip, interp from selfdrive.car import apply_toyota_steer_torque_limits, create_gas_interceptor_command, make_can_msg from selfdrive.car.toyota.toyotacan import create_steer_command, create_ui_command, \ create_accel_command...
48.777778
152
0.716259
1,041
7,024
4.598463
0.246878
0.010863
0.03217
0.04178
0.204512
0.140798
0.115521
0.097974
0.059536
0.040735
0
0.018499
0.199601
7,024
143
153
49.118881
0.832978
0.221669
0
0.087912
0
0
0.002758
0
0
0
0
0.006993
0
1
0.021978
false
0
0.076923
0
0.120879
0.065934
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0