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
5320daf74e5189735d626582356010934114572d
10,522
py
Python
testapp/app/app/tests/test_export_action.py
instituciones-abiertas/django-admin-export-action
bb089180e418915e1bba31927554537249fbec78
[ "MIT" ]
5
2020-12-15T11:38:42.000Z
2022-01-06T02:33:59.000Z
testapp/app/app/tests/test_export_action.py
instituciones-abiertas/django-admin-export-action
bb089180e418915e1bba31927554537249fbec78
[ "MIT" ]
2
2021-09-14T19:25:29.000Z
2021-11-26T14:16:50.000Z
testapp/app/app/tests/test_export_action.py
instituciones-abiertas/django-admin-export-action
bb089180e418915e1bba31927554537249fbec78
[ "MIT" ]
2
2021-09-14T19:19:05.000Z
2021-09-14T19:19:18.000Z
# -- encoding: UTF-8 -- import json import uuid from admin_export_action import report from admin_export_action.admin import export_selected_objects from admin_export_action.config import default_config, get_config from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User from djang...
36.79021
129
0.560255
1,183
10,522
4.782756
0.156382
0.031106
0.027572
0.028455
0.609933
0.591552
0.563273
0.545246
0.512725
0.509544
0
0.0236
0.307356
10,522
285
130
36.919298
0.752744
0.001996
0
0.487395
0
0.004202
0.126012
0.03067
0
0
0
0
0.176471
1
0.084034
false
0.037815
0.054622
0.008403
0.168067
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5322235447e97ac9d03d73498451ad6c8b6d4fab
10,434
py
Python
face_attribute_verification.py
seymayucer/FacialPhenotypes
043f3ecf956cad53095d93f19383c4c94e033692
[ "MIT" ]
2
2021-03-02T22:25:32.000Z
2021-03-06T23:53:13.000Z
face_attribute_verification.py
seymayucer/FacialPhenotypes
043f3ecf956cad53095d93f19383c4c94e033692
[ "MIT" ]
null
null
null
face_attribute_verification.py
seymayucer/FacialPhenotypes
043f3ecf956cad53095d93f19383c4c94e033692
[ "MIT" ]
1
2021-03-22T02:05:32.000Z
2021-03-22T02:05:32.000Z
import argparse import numpy as np from sklearn.model_selection import StratifiedKFold import sklearn import cv2 import datetime import mxnet as mx from mxnet import ndarray as nd import pandas as pd from numpy import linalg as line import logging logging.basicConfig( format="%(asctime)s %(message)s", datefmt="%m/...
35.610922
88
0.568047
1,274
10,434
4.445055
0.208006
0.031785
0.025428
0.016952
0.16599
0.12202
0.073636
0.031785
0.025428
0.013774
0
0.029346
0.314165
10,434
292
89
35.732877
0.762018
0.056354
0
0.069869
0
0
0.04884
0.007326
0
0
0
0
0.004367
1
0.034935
false
0
0.048035
0
0.113537
0.008734
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5322e645a2731e419b7aab530efd6f637ecbe5b3
6,645
py
Python
jsonform/fields.py
Pix-00/jsonform
d62543474d96b258606ec38dd427693232daeda3
[ "Apache-2.0" ]
null
null
null
jsonform/fields.py
Pix-00/jsonform
d62543474d96b258606ec38dd427693232daeda3
[ "Apache-2.0" ]
null
null
null
jsonform/fields.py
Pix-00/jsonform
d62543474d96b258606ec38dd427693232daeda3
[ "Apache-2.0" ]
null
null
null
import base64 import datetime from abc import ABC, abstractmethod from .conditions import AnyValue from .errors import FieldError, FormError __all__ = [ 'Field', 'StringField', 'IntegerField', 'FloatField', 'BooleanField', 'DateTimeField', 'DateField', 'TimeField', 'ListField','SetField', 'EnumField', 'BytesF...
27.233607
96
0.582844
743
6,645
4.987887
0.145357
0.062601
0.045332
0.058284
0.527793
0.427685
0.382623
0.350783
0.288181
0.264976
0
0.001945
0.303687
6,645
243
97
27.345679
0.799006
0
0
0.416667
0
0
0.05523
0
0
0
0
0
0
1
0.151042
false
0
0.026042
0.010417
0.302083
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5323be56fb9f52f802238cdfb9a7b782de3d3c6b
1,220
py
Python
OpenCV-Computer-Vision-Examples-with-Python-A-Complete-Guide-for-Dummies-master/Source Code/opencv_operations/draw-circles.py
Payal197bhadra/ComputerVision
d66b5037ece99b6189dd4306b2c9be67cffd14af
[ "MIT" ]
6
2019-06-30T09:08:03.000Z
2021-10-11T17:51:16.000Z
OpenCV-Computer-Vision-Examples-with-Python-A-Complete-Guide-for-Dummies-master/Source Code/opencv_operations/draw-circles.py
Payal197bhadra/ComputerVision
d66b5037ece99b6189dd4306b2c9be67cffd14af
[ "MIT" ]
null
null
null
OpenCV-Computer-Vision-Examples-with-Python-A-Complete-Guide-for-Dummies-master/Source Code/opencv_operations/draw-circles.py
Payal197bhadra/ComputerVision
d66b5037ece99b6189dd4306b2c9be67cffd14af
[ "MIT" ]
3
2020-01-01T17:41:10.000Z
2021-04-22T22:21:56.000Z
import numpy as np import cv2 #define a canvas of size 300x300 px, with 3 channels (R,G,B) and data type as 8 bit unsigned integer canvas = np.zeros((300,300,3), dtype ="uint8") #define color #draw a circle #arguments are canvas/image, midpoint, radius, color, thickness(optional) #display in cv2 window green = (0,255...
30.5
100
0.696721
200
1,220
4.25
0.4
0.056471
0.045882
0.056471
0.152941
0.105882
0.105882
0.105882
0
0
0
0.092664
0.15082
1,220
40
101
30.5
0.727799
0.332787
0
0.272727
0
0
0.064677
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5323c4b7d5f3632bee1bd22e2b1ceebf3d070d46
1,648
py
Python
tmux_cssh/main.py
cscutcher/tmux_cssh
bfbb7eb26d5f5864c0888fa8e614122401ed4f5f
[ "Unlicense" ]
null
null
null
tmux_cssh/main.py
cscutcher/tmux_cssh
bfbb7eb26d5f5864c0888fa8e614122401ed4f5f
[ "Unlicense" ]
null
null
null
tmux_cssh/main.py
cscutcher/tmux_cssh
bfbb7eb26d5f5864c0888fa8e614122401ed4f5f
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Main Script """ import logging import argh import sarge import tmuxp DEV_LOGGER = logging.getLogger(__name__) def get_current_session(server=None): ''' Seems to be no easy way to grab current attached session in tmuxp so this provides a simple alternative. ''' server ...
26.580645
78
0.68932
223
1,648
4.995516
0.452915
0.029623
0.030521
0.034111
0.174147
0.174147
0.174147
0.174147
0.174147
0.174147
0
0.001529
0.206311
1,648
61
79
27.016393
0.850153
0.382888
0
0
0
0
0.08984
0
0
0
0
0
0
1
0.12
false
0
0.16
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
5326a402c4dd86ad307f49de1d63c62b7a921bd6
10,288
py
Python
arch2vec/search_methods/reinforce_darts.py
gabrielasuchopar/arch2vec
1fc47d2cc7d63832e0d6337b8482669366b4aef2
[ "Apache-2.0" ]
null
null
null
arch2vec/search_methods/reinforce_darts.py
gabrielasuchopar/arch2vec
1fc47d2cc7d63832e0d6337b8482669366b4aef2
[ "Apache-2.0" ]
null
null
null
arch2vec/search_methods/reinforce_darts.py
gabrielasuchopar/arch2vec
1fc47d2cc7d63832e0d6337b8482669366b4aef2
[ "Apache-2.0" ]
null
null
null
import os import sys import argparse import json import random import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from arch2vec.models.pretraining_nasbench101 import configs from arch2vec.utils import load_json, preprocessing, one_hot_darts from arch2vec.preprocessing.gen_is...
39.722008
138
0.629374
1,350
10,288
4.62963
0.201481
0.02448
0.04624
0.00896
0.09152
0.07744
0.07744
0.06944
0.06944
0.04832
0
0.015028
0.236781
10,288
258
139
39.875969
0.780948
0.021676
0
0.102804
0
0
0.103538
0.006615
0
0
0
0
0
1
0.056075
false
0
0.070093
0
0.168224
0.060748
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53285c4fc141853fde6ba747fb42c02369b8ef62
2,326
py
Python
setup.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
setup.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
setup.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspa...
34.205882
89
0.676698
300
2,326
5.183333
0.546667
0.048232
0.036013
0.040514
0.048232
0.048232
0
0
0
0
0
0.007743
0.2227
2,326
67
90
34.716418
0.852323
0.462167
0
0
0
0
0.384679
0.017298
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
532c5feeb5220f24428fb820adb0794dc7c4ef05
115,103
py
Python
adanet/core/estimator_test.py
eustomaqua/adanet
9c1de82428a4e661768af8e764041afebfec2e6f
[ "Apache-2.0" ]
null
null
null
adanet/core/estimator_test.py
eustomaqua/adanet
9c1de82428a4e661768af8e764041afebfec2e6f
[ "Apache-2.0" ]
null
null
null
adanet/core/estimator_test.py
eustomaqua/adanet
9c1de82428a4e661768af8e764041afebfec2e6f
[ "Apache-2.0" ]
null
null
null
"""Test AdaNet estimator single graph implementation. Copyright 2018 The AdaNet 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 https://www.apache.org/licenses/LI...
34.83747
139
0.57326
11,204
115,103
5.553909
0.073456
0.023286
0.024041
0.039598
0.701202
0.668547
0.628242
0.599348
0.568042
0.54429
0
0.022144
0.328714
115,103
3,303
140
34.848017
0.783193
0.065376
0
0.648457
0
0
0.11622
0.027383
0
0
0
0
0.023413
1
0.031571
false
0.000709
0.013125
0.004257
0.075559
0.000355
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
532c9a004feae83c4d1b5c9bdf050c58af603c9f
1,473
py
Python
ua_roomseeker/uploader.py
nyg1/classroom-finder
13b6332187c2afb9833a1acd82bdf31ab81af5c8
[ "MIT" ]
1
2020-08-29T22:04:17.000Z
2020-08-29T22:04:17.000Z
ua_roomseeker/uploader.py
nyg1/classroom-finder
13b6332187c2afb9833a1acd82bdf31ab81af5c8
[ "MIT" ]
1
2020-02-17T05:18:36.000Z
2020-02-17T05:18:36.000Z
ua_roomseeker/uploader.py
nyg1/UAroomseeker
13b6332187c2afb9833a1acd82bdf31ab81af5c8
[ "MIT" ]
2
2020-08-29T22:04:22.000Z
2020-09-07T18:01:46.000Z
from seeker.models import Building, Classroom, Time import json import os os.chdir('../data') fileList = os.listdir() #loops through each json file for jsonfile in fileList: #opens the jsonfile and loads the data f = open(jsonfile, 'r') data = f.read() jsondata = json.loads(data) #create the build...
43.323529
230
0.681602
209
1,473
4.794258
0.464115
0.02994
0.06986
0.10978
0.236527
0.236527
0.201597
0.121756
0.121756
0.121756
0
0.008606
0.211134
1,473
33
231
44.636364
0.853701
0.359131
0
0
0
0
0.015038
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
532f2625149c93f751d40a68a85af35c606a9f80
1,192
py
Python
infra/apps/catalog/tests/views/distribution_upload_tests.py
datosgobar/infra.datos.gob.ar
9f6ae7f0fc741aad79d074e7b2eb2a7dddf8b2cf
[ "MIT" ]
1
2019-07-01T19:38:52.000Z
2019-07-01T19:38:52.000Z
infra/apps/catalog/tests/views/distribution_upload_tests.py
datosgobar/infra.datos.gob.ar
9f6ae7f0fc741aad79d074e7b2eb2a7dddf8b2cf
[ "MIT" ]
77
2019-05-27T18:16:30.000Z
2021-09-20T21:25:24.000Z
infra/apps/catalog/tests/views/distribution_upload_tests.py
datosgobar/infra.datos.gob.ar
9f6ae7f0fc741aad79d074e7b2eb2a7dddf8b2cf
[ "MIT" ]
3
2019-12-09T16:38:18.000Z
2020-10-30T02:10:20.000Z
import pytest from django.core.files import File from django.urls import reverse from freezegun import freeze_time from infra.apps.catalog.tests.helpers.open_catalog import open_catalog pytestmark = pytest.mark.django_db @pytest.fixture(autouse=True) def give_user_edit_rights(user, node): node.admins.add(user) ...
34.057143
78
0.72651
144
1,192
5.805556
0.479167
0.107656
0.114833
0.057416
0.165072
0.165072
0
0
0
0
0
0.010256
0.182047
1,192
34
79
35.058824
0.847179
0
0
0.083333
0
0
0.065436
0.02349
0
0
0
0
0.083333
1
0.166667
false
0
0.208333
0.041667
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5330d3c71a4dca71ef0aca045f8b4a15a601bd18
3,494
py
Python
examples/model_zoo/build_binaries.py
Embracing/unrealcv
19305da8554c3a0e683a5e27a1e487cc2cf42776
[ "MIT" ]
1,617
2016-09-10T04:41:33.000Z
2022-03-31T20:03:28.000Z
examples/model_zoo/build_binaries.py
Embracing/unrealcv
19305da8554c3a0e683a5e27a1e487cc2cf42776
[ "MIT" ]
199
2016-09-13T09:40:59.000Z
2022-03-16T02:37:23.000Z
examples/model_zoo/build_binaries.py
Embracing/unrealcv
19305da8554c3a0e683a5e27a1e487cc2cf42776
[ "MIT" ]
431
2016-09-10T03:20:35.000Z
2022-03-19T13:44:21.000Z
import subprocess, os ue4_win = r"C:\Program Files\Epic Games\UE_4.16" ue4_linux = "/home/qiuwch/workspace/UE416" ue4_mac = '/Users/Shared/Epic Games/UE_4.16' win_uprojects = [ r'C:\qiuwch\workspace\uprojects\UE4RealisticRendering\RealisticRendering.uproject', r'C:\qiuwch\workspace\uprojects\UE4ArchinteriorsV...
40.627907
108
0.694333
355
3,494
6.664789
0.242254
0.086221
0.074387
0.091293
0.687659
0.456889
0.370245
0.162299
0.134404
0.134404
0
0.026583
0.18174
3,494
85
109
41.105882
0.800979
0.018031
0
0.205479
0
0
0.453909
0.383897
0
0
0
0
0
1
0
false
0
0.013699
0
0.013699
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53341c91d6109f552f8886886b2f526f32484d2e
731
py
Python
plugins/hanlp_demo/hanlp_demo/zh/tf/train/train_ctb9_pos_electra.py
antfootAlex/HanLP
e8044b27ae1de54b9070db08549853d3ca8271e2
[ "Apache-2.0" ]
3
2022-03-07T08:33:16.000Z
2022-03-07T08:38:08.000Z
plugins/hanlp_demo/hanlp_demo/zh/tf/train/train_ctb9_pos_electra.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
null
null
null
plugins/hanlp_demo/hanlp_demo/zh/tf/train/train_ctb9_pos_electra.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-12-28 23:15 from hanlp.components.taggers.transformers.transformer_tagger_tf import TransformerTaggerTF from tests import cdroot cdroot() tagger = TransformerTaggerTF() save_dir = 'data/model/pos/ctb9_electra_small_zh_epoch_20' tagger.fit('data/pos/ctb9/train.tsv', ...
33.227273
91
0.679891
104
731
4.605769
0.634615
0.087683
0.068894
0.06263
0.104384
0.104384
0.104384
0
0
0
0
0.046205
0.170999
731
21
92
34.809524
0.744224
0.079343
0
0
0
0
0.276532
0.22571
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533456ef85893ecb35c41dc38df64614c652cb8f
768
py
Python
src/app/main.py
Wedding-APIs-System/Backend-APi
5a03be5f36ce8ca7e3abba2d64b63c55752697f3
[ "MIT" ]
null
null
null
src/app/main.py
Wedding-APIs-System/Backend-APi
5a03be5f36ce8ca7e3abba2d64b63c55752697f3
[ "MIT" ]
null
null
null
src/app/main.py
Wedding-APIs-System/Backend-APi
5a03be5f36ce8ca7e3abba2d64b63c55752697f3
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app.api import landing, login, attendance_confirmation from sql_app.database import orm_connection app = FastAPI(title="Sergio's wedding backend API", description="REST API which serves login, attendance confirmation and other fea...
20.210526
90
0.71875
97
768
5.56701
0.57732
0.122222
0.088889
0.081481
0
0
0
0
0
0
0
0.039939
0.152344
768
37
91
20.756757
0.789555
0.057292
0
0
0
0
0.165738
0
0
0
0
0
0
1
0
false
0
0.173913
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5334ff647ed3cefd61f9291666af5ce5a96e862e
1,800
py
Python
tests/test_pydora/test_utils.py
NextGenTechBar/twandora
f626717a5580f82250bbe66d4ebc357e0882382c
[ "MIT" ]
null
null
null
tests/test_pydora/test_utils.py
NextGenTechBar/twandora
f626717a5580f82250bbe66d4ebc357e0882382c
[ "MIT" ]
null
null
null
tests/test_pydora/test_utils.py
NextGenTechBar/twandora
f626717a5580f82250bbe66d4ebc357e0882382c
[ "MIT" ]
null
null
null
from unittest import TestCase from pandora.client import APIClient from pandora.errors import InvalidAuthToken, ParameterMissing from pandora.models.pandora import Station, AdItem, PlaylistItem from pandora.py2compat import Mock, patch from pydora.utils import iterate_forever class TestIterateForever(TestCase): ...
45
124
0.693333
201
1,800
5.935323
0.288557
0.073764
0.050293
0.060352
0.358759
0.323554
0.323554
0.201174
0.201174
0.115675
0
0.000708
0.215556
1,800
39
125
46.153846
0.844193
0
0
0.142857
0
0
0.079444
0
0
0
0
0
0.071429
1
0.107143
false
0
0.214286
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533987c4f01c2ae25c35913b042954d6d704d9b2
1,736
py
Python
setup.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
1
2020-12-28T10:40:38.000Z
2020-12-28T10:40:38.000Z
setup.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
null
null
null
setup.py
TanKingsley/pyxll-jupyter
4f7b3eb361079b74683d89340dfff9576fb2ff41
[ "MIT" ]
null
null
null
""" PyXLL-Jupyter This package integrated Jupyter notebooks into Microsoft Excel. To install it, first install PyXLL (see https://www.pyxll.com). Briefly, to install PyXLL do the following:: pip install pyxll pyxll install Once PyXLL is installed then installing this package will add a button to the PyXLL ...
26.707692
73
0.657258
210
1,736
5.304762
0.514286
0.10772
0.045781
0.05386
0.055655
0.055655
0
0
0
0
0
0.009731
0.230415
1,736
64
74
27.125
0.824102
0.269009
0
0
0
0
0.400476
0.096749
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5339fd0b2f57b238565a16867e9a32da801ab240
5,630
py
Python
board/views.py
albi23/Pyra
1c1ceece15d55cd0e0ecf41d7224683b93b72555
[ "MIT" ]
null
null
null
board/views.py
albi23/Pyra
1c1ceece15d55cd0e0ecf41d7224683b93b72555
[ "MIT" ]
6
2021-03-19T01:58:04.000Z
2021-09-22T18:53:15.000Z
board/views.py
albi23/Pyra
1c1ceece15d55cd0e0ecf41d7224683b93b72555
[ "MIT" ]
1
2020-06-29T18:16:29.000Z
2020-06-29T18:16:29.000Z
from typing import List from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.http import JsonResponse from django.shortcuts import render from django.urls import reverse_lazy from django.views import generic, View from board.forms import SignUpForm from .co...
28.291457
101
0.610302
626
5,630
5.332268
0.198083
0.056022
0.059916
0.043439
0.258538
0.202516
0.112942
0.073996
0.038346
0
0
0.003453
0.279929
5,630
198
102
28.434343
0.819931
0
0
0.248366
0
0
0.072647
0
0
0
0
0
0
1
0.065359
false
0
0.071895
0
0.287582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533acfb3888fb78753274cc7a4925350317c5e43
1,008
py
Python
setup.py
lazmond3/pylib-instagram-type
9683a7fb1dad9b1a770a3f98317f1cde1085f0a7
[ "BSD-2-Clause" ]
null
null
null
setup.py
lazmond3/pylib-instagram-type
9683a7fb1dad9b1a770a3f98317f1cde1085f0a7
[ "BSD-2-Clause" ]
null
null
null
setup.py
lazmond3/pylib-instagram-type
9683a7fb1dad9b1a770a3f98317f1cde1085f0a7
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Learn more: https://github.com/kennethreitz/setup.py from setuptools import setup, find_packages import os with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() def take_package_name(name): if name.startswith("-e"): return name[...
25.2
92
0.667659
141
1,008
4.666667
0.539007
0.036474
0.042553
0.079027
0
0
0
0
0
0
0
0.020408
0.173611
1,008
39
93
25.846154
0.769508
0.073413
0
0
0
0.037037
0.257787
0.031149
0
0
0
0
0
1
0.074074
false
0
0.074074
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
533c689999c368cfd2824982d040a984df189702
3,909
py
Python
tests/test_webframe.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
tests/test_webframe.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
tests/test_webframe.py
zsolt-beringer/osm-gimmisn
b0cbf2e88c1846ef49e33fd32aeb6b4ecabea4c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2019 Miklos Vajna and contributors. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The test_webframe module covers the webframe module.""" from typing import List from typing import TYPE_CHECKING from typing import Tupl...
33.991304
89
0.643643
457
3,909
5.352298
0.352298
0.035977
0.031889
0.039248
0.162306
0.162306
0.162306
0.162306
0.102208
0
0
0.00704
0.236889
3,909
114
90
34.289474
0.81294
0.164236
0
0.081081
0
0
0.094287
0.014986
0
0
0
0
0.175676
1
0.121622
false
0
0.175676
0
0.405405
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533cc101e9c7e5be34bb424dc7dd27a2b33a585a
6,533
py
Python
spotify.py
nimatest1234/telegram_spotify_downloader_bot
7e0a9ba32ee219752582b917867600653337f3d1
[ "MIT" ]
null
null
null
spotify.py
nimatest1234/telegram_spotify_downloader_bot
7e0a9ba32ee219752582b917867600653337f3d1
[ "MIT" ]
null
null
null
spotify.py
nimatest1234/telegram_spotify_downloader_bot
7e0a9ba32ee219752582b917867600653337f3d1
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import spotipy from spotipy.oauth2 import SpotifyClientCredentials import requests from youtube_search import YoutubeSearch import youtube_dl import eyed3.id3 import eyed3 import lyricsgenius import telepot spotifyy = spotipy.Spotify( client_credentials_manager=SpotifyClient...
34.026042
106
0.590693
717
6,533
5.295676
0.245467
0.011061
0.044245
0.08296
0.29497
0.271267
0.266526
0.224124
0.169871
0.120095
0
0.044274
0.263585
6,533
191
107
34.204188
0.744959
0.015001
0
0.21875
0
0
0.160392
0.026447
0
0
0
0
0
1
0.04375
false
0.00625
0.0625
0
0.14375
0.06875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533d2e7d7e3bbba4894560b223b684f968b2d464
5,512
py
Python
tests/test_atomdict.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_atomdict.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_atomdict.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2018-2019, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
28.559585
79
0.622097
709
5,512
4.668547
0.114245
0.181269
0.097281
0.095166
0.693958
0.61994
0.561631
0.464955
0.358308
0.308459
0
0.025034
0.20283
5,512
192
80
28.708333
0.728266
0.110668
0
0.432203
0
0
0.028944
0
0
0
0
0
0.254237
1
0.084746
false
0
0.025424
0
0.194915
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533f6cd5ce74f507059e39e73891411c50d53556
15,158
py
Python
typy/nodes.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
3
2016-03-08T09:55:20.000Z
2016-09-09T12:54:12.000Z
typy/nodes.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
null
null
null
typy/nodes.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
null
null
null
""" Our own implementation of an abstract syntax tree (AST). The convert function recursively converts a Python AST (from the module `ast`) to our own AST (of the class `Node`). """ import ast from logging import debug from typy.builtin import data_types from typy.exceptions import NotYetSupported, NoSuchAttribute, ...
29.547758
79
0.605159
1,970
15,158
4.385279
0.092893
0.072115
0.063665
0.089131
0.579697
0.536752
0.485473
0.456187
0.399699
0.382915
0
0.000921
0.283415
15,158
512
80
29.605469
0.794421
0.055482
0
0.502762
0
0
0.057531
0
0
0
0
0.001953
0
1
0.187845
false
0.01105
0.013812
0.041436
0.39779
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533f744d195d3508a544cf4533f2224861641646
2,310
py
Python
anonlink-entity-service/backend/entityservice/integrationtests/objectstoretests/test_objectstore.py
Sam-Gresh/linkage-agent-tools
f405c7efe3fa82d99bc047f130c0fac6f3f5bf82
[ "Apache-2.0" ]
1
2020-05-19T07:29:31.000Z
2020-05-19T07:29:31.000Z
backend/entityservice/integrationtests/objectstoretests/test_objectstore.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
backend/entityservice/integrationtests/objectstoretests/test_objectstore.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
""" Testing: - uploading over existing files - using deleted credentials - using expired credentials """ import io import minio from minio import Minio import pytest from minio.credentials import AssumeRoleProvider, Credentials from entityservice.object_store import connect_to_object_store, connect_to_upload_obje...
32.535211
117
0.685281
267
2,310
5.651685
0.397004
0.037111
0.055666
0.071571
0.252485
0.201458
0.162359
0.121272
0.080848
0.080848
0
0.012936
0.230303
2,310
70
118
33
0.835771
0.130736
0
0.113636
0
0
0.162325
0.034068
0
0
0
0
0
1
0.022727
false
0
0.159091
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
533fd29f460114d34ef9d86ca150f4d2360ad787
26,237
py
Python
tests/test_models.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
1
2019-11-19T06:10:22.000Z
2019-11-19T06:10:22.000Z
tests/test_models.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
3
2022-02-14T01:15:27.000Z
2022-02-27T11:21:50.000Z
tests/test_models.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
1
2019-12-06T08:30:35.000Z
2019-12-06T08:30:35.000Z
import calendar import datetime from unittest import TestCase import pytz from dateutil.parser import parse as date_parse from tests import BaseTestCase from redash import models, redis_connection from redash.models import db, types from redash.utils import gen_query_hash, utcnow class DashboardTest(BaseTestCase): ...
46.355124
149
0.675192
3,377
26,237
5.007699
0.104827
0.056117
0.058305
0.050736
0.693868
0.62344
0.550529
0.49861
0.453669
0.43522
0
0.021867
0.210428
26,237
565
150
46.437168
0.794458
0.058886
0
0.354762
0
0
0.037533
0
0
0
0
0.00177
0.2
1
0.121429
false
0
0.021429
0
0.169048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53432a332241c8c7299ada338e326f5385523550
2,537
py
Python
tests/test.py
N4S4/thingspeak_wrapper
f5c26e52c09124b85cc6056782d766d145e65a31
[ "MIT" ]
null
null
null
tests/test.py
N4S4/thingspeak_wrapper
f5c26e52c09124b85cc6056782d766d145e65a31
[ "MIT" ]
null
null
null
tests/test.py
N4S4/thingspeak_wrapper
f5c26e52c09124b85cc6056782d766d145e65a31
[ "MIT" ]
null
null
null
import time import thingspeak_wrapper as tsw # Initiate the class ThingWrapper with (CHANNEL_ID, WRITE_API__KEY, READ_API_KEY) # if is a public channel just pass the CHANNEL_ID argument, api_key defaults are None my_channel = tsw.wrapper.ThingWrapper(501309, '6TQDNWJQ44FA0GAQ', '10EVD2N6YIHI5O7Z') # all set of func...
35.236111
110
0.727237
396
2,537
4.431818
0.338384
0.082051
0.075214
0.036467
0.241595
0.104843
0.037607
0.037607
0
0
0
0.042424
0.154513
2,537
71
111
35.732394
0.775758
0.612534
0
0.090909
0
0
0.071806
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5343c13e8e474004e5dc969475dce6a87967180c
6,798
py
Python
neptunecontrib/monitoring/skopt.py
neptune-ai/neptune-contrib
fe5c6853128020aaaa59b440cc5203b940dcd39a
[ "MIT" ]
22
2020-02-23T21:25:34.000Z
2021-06-11T16:34:27.000Z
neptunecontrib/monitoring/skopt.py
neptune-ai/neptune-contrib
fe5c6853128020aaaa59b440cc5203b940dcd39a
[ "MIT" ]
29
2020-02-11T11:10:22.000Z
2021-10-03T09:01:28.000Z
neptunecontrib/monitoring/skopt.py
neptune-ai/neptune-contrib
fe5c6853128020aaaa59b440cc5203b940dcd39a
[ "MIT" ]
7
2020-05-10T06:59:53.000Z
2021-06-11T16:34:32.000Z
# # Copyright (c) 2019, Neptune Labs Sp. z o.o. # # 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 agr...
33.653465
109
0.699912
875
6,798
5.211429
0.275429
0.017763
0.019737
0.025658
0.338596
0.297368
0.269737
0.261623
0.214035
0.214035
0
0.008169
0.207708
6,798
201
110
33.820896
0.83847
0.419388
0
0.168675
0
0
0.077292
0.005597
0
0
0
0
0
1
0.168675
false
0
0.096386
0.012048
0.325301
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
5347385bc4a5e5ee6c5f4719e3b7b90b80842cc8
813
py
Python
invenio_iiif/config.py
dfdan/invenio-iiif
2ea2747fd29ab03b1d38e0ca6d2a9c1506aa8cbc
[ "MIT" ]
3
2019-07-25T16:25:22.000Z
2021-02-04T16:51:55.000Z
invenio_iiif/config.py
dfdan/invenio-iiif
2ea2747fd29ab03b1d38e0ca6d2a9c1506aa8cbc
[ "MIT" ]
26
2018-04-10T14:46:34.000Z
2021-06-16T08:51:09.000Z
invenio_iiif/config.py
dfdan/invenio-iiif
2ea2747fd29ab03b1d38e0ca6d2a9c1506aa8cbc
[ "MIT" ]
22
2018-04-04T09:41:38.000Z
2021-11-25T09:33:40.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """IIIF API for Invenio.""" IIIF_API_PREFIX = '/iiif/' """URL prefix to IIIF API.""" III...
27.1
72
0.724477
115
813
4.93913
0.495652
0.073944
0.09507
0.091549
0
0
0
0
0
0
0
0.011412
0.137761
813
29
73
28.034483
0.798859
0.291513
0
0
0
0
0.345679
0.283951
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5348118dbe9a56351f72fa4c704f5f49e6815a7c
63,527
py
Python
port/platform/common/automation/u_utils.py
u-blox/ubxlib
4dc1b16e6f12354b601cb1c9d799c10f4e2afb54
[ "Apache-2.0" ]
91
2020-12-21T13:10:19.000Z
2022-03-24T23:27:13.000Z
port/platform/common/automation/u_utils.py
u-blox/ubxlib
4dc1b16e6f12354b601cb1c9d799c10f4e2afb54
[ "Apache-2.0" ]
42
2021-01-04T13:35:18.000Z
2022-03-25T08:57:45.000Z
port/platform/common/automation/u_utils.py
u-blox/ubxlib
4dc1b16e6f12354b601cb1c9d799c10f4e2afb54
[ "Apache-2.0" ]
25
2021-01-02T12:37:34.000Z
2022-03-31T01:53:37.000Z
#!/usr/bin/env python '''Generally useful bits and bobs.''' import queue # For PrintThread and exe_run from time import sleep, time, gmtime, strftime # For lock timeout, exe_run timeout and logging from multiprocessing import RLock from copy import copy import threading # For Print...
42.865722
120
0.533332
7,006
63,527
4.669141
0.13203
0.033382
0.011739
0.014123
0.356169
0.29558
0.256481
0.221356
0.198551
0.176877
0
0.008565
0.378784
63,527
1,481
121
42.894666
0.820343
0.214177
0
0.456897
0
0
0.067646
0.000507
0.000958
0
0.000405
0
0
1
0.050766
false
0.002874
0.019157
0
0.104406
0.167625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53481a8ce6431996b6ceac97f012f4f1b1b0f592
8,765
py
Python
faigler_mazeh.py
tcjansen/beer
c6421371b6506cef1adf88cefa9a55db2f04e2dc
[ "MIT" ]
null
null
null
faigler_mazeh.py
tcjansen/beer
c6421371b6506cef1adf88cefa9a55db2f04e2dc
[ "MIT" ]
null
null
null
faigler_mazeh.py
tcjansen/beer
c6421371b6506cef1adf88cefa9a55db2f04e2dc
[ "MIT" ]
null
null
null
import numpy as np import astropy.modeling.blackbody as bb import astropy.constants as const from astropy.io import fits from scipy.interpolate import interp2d class FaiglerMazehFit(): def __init__(self, P_orb, inc, R_star, M_star, T_star, A_ellip=False, A_beam=False, R_p=False, a=False, u=False, g=0.65, logg=...
31.989051
89
0.664803
1,398
8,765
4.023605
0.205293
0.016
0.011378
0.008889
0.2096
0.157689
0.129956
0.108978
0.096178
0.081956
0
0.027938
0.207758
8,765
273
90
32.106227
0.782114
0.258985
0
0.104938
0
0
0.074617
0.005364
0
0
0
0
0
1
0.135802
false
0
0.030864
0.018519
0.308642
0.006173
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
534844fa3b3f1c68231a812a9b687424b61ad180
13,681
py
Python
Grid-neighbor-search/GNS/read_instance_2layer_2LMM_L.py
CitrusAqua/mol-infer
6d5411a2cdc7feda418f9413153b1b66b45a2e96
[ "MIT" ]
null
null
null
Grid-neighbor-search/GNS/read_instance_2layer_2LMM_L.py
CitrusAqua/mol-infer
6d5411a2cdc7feda418f9413153b1b66b45a2e96
[ "MIT" ]
null
null
null
Grid-neighbor-search/GNS/read_instance_2layer_2LMM_L.py
CitrusAqua/mol-infer
6d5411a2cdc7feda418f9413153b1b66b45a2e96
[ "MIT" ]
null
null
null
""" read_instance_BH-cyclic.py """ ''' [seed graph] V_C : "V_C" E_C : "E_C" [core specification] ell_LB : "\ell_{\rm LB}" ell_UB : "\ell_{\rm UB}" cs_LB : "\textsc{cs}_{\rm LB}" cs_UB : "\textsc{cs}_{\rm UB}" ''' import sys def read_pmax_file(filename): with ope...
29.421505
133
0.493166
2,339
13,681
2.635742
0.081659
0.025953
0.03163
0.03017
0.534955
0.466504
0.426764
0.397567
0.349878
0.311922
0
0.031969
0.33923
13,681
464
134
29.484914
0.65
0.087201
0
0.312139
0
0
0.009064
0
0
0
0
0
0
1
0.014451
false
0
0.00289
0
0.031792
0.008671
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
534d47fdc7a25cba8b55b44734cb77c92e4d9b0f
1,580
py
Python
Stage_3/Task11_Graph/depth_first_search.py
Pyabecedarian/Algorithms-and-Data-Structures-using-Python
08642357df60d48cb185b5487150204b42764260
[ "MIT" ]
null
null
null
Stage_3/Task11_Graph/depth_first_search.py
Pyabecedarian/Algorithms-and-Data-Structures-using-Python
08642357df60d48cb185b5487150204b42764260
[ "MIT" ]
null
null
null
Stage_3/Task11_Graph/depth_first_search.py
Pyabecedarian/Algorithms-and-Data-Structures-using-Python
08642357df60d48cb185b5487150204b42764260
[ "MIT" ]
null
null
null
""" The Depth First Search (DFS) The goal of a dfs is to search as deeply as possible, connecting as many nodes in the graph as possible and branching where necessary. Think of the BFS that builds a search tree one level at a time, whereas the DFS creates a search tree by exploring one branch of the tree a...
30.384615
111
0.623418
224
1,580
4.316964
0.379464
0.049638
0.020683
0.037229
0
0
0
0
0
0
0
0.003653
0.306962
1,580
51
112
30.980392
0.879452
0.485443
0
0.230769
0
0
0.029963
0
0
0
0
0
0
1
0.153846
false
0
0.038462
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
534f4e03ba246b728b20809e5d71ee70468b20fb
2,886
py
Python
test_backtest/simplebacktest.py
qzm/QUANTAXIS
055fdc16d67670fb4770e7097865336199e55f3e
[ "MIT" ]
1
2021-05-20T12:33:46.000Z
2021-05-20T12:33:46.000Z
test_backtest/simplebacktest.py
qzm/QUANTAXIS
055fdc16d67670fb4770e7097865336199e55f3e
[ "MIT" ]
null
null
null
test_backtest/simplebacktest.py
qzm/QUANTAXIS
055fdc16d67670fb4770e7097865336199e55f3e
[ "MIT" ]
null
null
null
# coding=utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # 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 th...
37.480519
200
0.711365
443
2,886
4.514673
0.392777
0.018
0.0165
0.024
0.2865
0.2625
0.2625
0.2625
0.2625
0.2625
0
0.031383
0.182952
2,886
77
201
37.480519
0.816794
0.389466
0
0
0
0
0.014959
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.111111
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53500afefcda695385af9237df24a3052bec880e
4,010
py
Python
artview/components/field.py
jjhelmus/artview
2af5ccad8d509d11ef6da7c97bee0f7b255b6879
[ "BSD-3-Clause" ]
null
null
null
artview/components/field.py
jjhelmus/artview
2af5ccad8d509d11ef6da7c97bee0f7b255b6879
[ "BSD-3-Clause" ]
null
null
null
artview/components/field.py
jjhelmus/artview
2af5ccad8d509d11ef6da7c97bee0f7b255b6879
[ "BSD-3-Clause" ]
null
null
null
""" field.py Class instance used for modifying field via Display window. """ # Load the needed packages from functools import partial from ..core import Variable, Component, QtGui, QtCore class FieldButtonWindow(Component): '''Class to display a Window with Field name radio buttons.''' Vradar = None #: s...
32.868852
77
0.605486
433
4,010
5.577367
0.337182
0.028986
0.024845
0.038095
0.184679
0.130021
0.104348
0.047205
0.047205
0.047205
0
0
0.293267
4,010
121
78
33.140496
0.852152
0.385786
0
0.12766
0
0
0.022419
0
0
0
0
0
0
1
0.12766
false
0
0.042553
0
0.255319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5351910933f7e53efc48e359df0170e503cf6959
8,375
py
Python
src/diepvries/field.py
michael-the1/diepvries
ddba9c91ee5fb2014dc576ffb74faa40c3d0d04f
[ "MIT" ]
67
2021-08-20T14:30:49.000Z
2022-03-22T23:37:08.000Z
src/diepvries/field.py
michael-the1/diepvries
ddba9c91ee5fb2014dc576ffb74faa40c3d0d04f
[ "MIT" ]
1
2022-01-22T08:19:38.000Z
2022-02-02T08:48:34.000Z
src/diepvries/field.py
michael-the1/diepvries
ddba9c91ee5fb2014dc576ffb74faa40c3d0d04f
[ "MIT" ]
6
2021-09-03T17:21:16.000Z
2021-12-22T12:11:51.000Z
"""Module for a Data Vault field.""" from typing import Optional from . import ( FIELD_PREFIX, FIELD_SUFFIX, METADATA_FIELDS, TABLE_PREFIXES, UNKNOWN, FieldDataType, FieldRole, TableType, ) class Field: """A field in a Data Vault model.""" def __init__( self, ...
34.465021
88
0.612537
988
8,375
5.012146
0.200405
0.043619
0.043619
0.055533
0.296446
0.247779
0.209006
0.125606
0.096527
0.096527
0
0.001541
0.302567
8,375
242
89
34.607438
0.846259
0.297194
0
0.111111
0
0
0.162579
0.081754
0
0
0
0
0
1
0.088889
false
0
0.014815
0
0.22963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5351c8767281abfc0e99352875444fb190e31a5e
5,702
py
Python
mmdet/datasets/deepscoresV2.py
tuggeluk/mmdetection
669a535c944628a3ab43330cae5c77b643e13a4b
[ "Apache-2.0" ]
1
2020-01-22T15:25:20.000Z
2020-01-22T15:25:20.000Z
mmdet/datasets/deepscoresV2.py
tuggeluk/mmdetection
669a535c944628a3ab43330cae5c77b643e13a4b
[ "Apache-2.0" ]
2
2019-12-16T10:51:41.000Z
2020-10-06T13:46:25.000Z
mmdet/datasets/deepscoresV2.py
tuggeluk/mmdetection
669a535c944628a3ab43330cae5c77b643e13a4b
[ "Apache-2.0" ]
2
2020-04-20T08:58:40.000Z
2021-05-08T07:55:54.000Z
"""DEEPSCORESV2 Provides access to the DEEPSCORESV2 database with a COCO-like interface. The only changes made compared to the coco.py file are the class labels. Author: Lukas Tuggener <tugg@zhaw.ch> Yvan Satyawan <y_satyawan@hotmail.com> Created on: November 23, 2019 """ from .coco import * import os im...
36.318471
118
0.590144
723
5,702
4.484094
0.312586
0.028069
0.012338
0.012955
0.047193
0.02992
0.019124
0
0
0
0
0.017997
0.308138
5,702
156
119
36.551282
0.803802
0.216941
0
0.020408
0
0
0.049698
0.012308
0
0
0
0
0
1
0.071429
false
0
0.05102
0.010204
0.204082
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53527ec6ef2428da3e1c97ac08275c75fd6e2545
1,628
py
Python
gui/wellplot/settings/style/wellplotstylehandler.py
adriangrepo/qreservoir
20fba1b1fd1a42add223d9e8af2d267665bec493
[ "MIT" ]
2
2019-10-04T13:54:51.000Z
2021-05-21T19:36:15.000Z
gui/wellplot/settings/style/wellplotstylehandler.py
adriangrepo/qreservoir
20fba1b1fd1a42add223d9e8af2d267665bec493
[ "MIT" ]
3
2019-11-19T17:06:09.000Z
2020-01-18T20:39:54.000Z
gui/wellplot/settings/style/wellplotstylehandler.py
adriangrepo/qreservoir
20fba1b1fd1a42add223d9e8af2d267665bec493
[ "MIT" ]
2
2020-07-02T13:20:48.000Z
2020-11-11T00:18:51.000Z
import logging from qrutilities.imageutils import ImageUtils from PyQt4.QtGui import QColor logger = logging.getLogger('console') class WellPlotStyleHandler(object): ''' classdocs ''' def saveDataState(self, wellPlotData, wellPlotStyleWidget): if wellPlotStyleWidget.plotTitleOnCheckBox.isC...
45.222222
103
0.72973
141
1,628
8.283688
0.397163
0.010274
0.015411
0.010274
0.291952
0.235445
0.210616
0.152397
0.152397
0.104452
0
0.000759
0.191032
1,628
36
104
45.222222
0.886105
0.005528
0
0.185185
0
0
0.004364
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5353098565b09d0a6b37ec215ad6356db9a8d2af
599
py
Python
utm_messages/urls.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
7
2020-01-18T16:53:41.000Z
2021-12-21T07:02:43.000Z
utm_messages/urls.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
28
2020-01-06T18:36:54.000Z
2022-02-10T10:03:55.000Z
utm_messages/urls.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
3
2020-01-18T16:53:54.000Z
2020-10-26T11:21:41.000Z
from django.conf.urls import url from . import views app_name = "messages" urlpatterns = [ url(r'^$', views.InboxListView.as_view(), name='inbox'), url(r'^sent/$', views.SentMessagesListView.as_view(), name='sent'), url(r'^compose/$', views.MessagesCreateView.as_view(), name='compo...
29.95
90
0.60601
72
599
4.902778
0.430556
0.067989
0.169972
0.096317
0
0
0
0
0
0
0
0
0.195326
599
19
91
31.526316
0.732365
0.12187
0
0
0
0
0.178218
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5354d3bcbb084eaac2e9dc5457335c7f402533a9
12,221
py
Python
nova/policies/servers.py
maya2250/nova
e483ca1cd9a5db5856f87fc69ca07c42d2be5def
[ "Apache-2.0" ]
null
null
null
nova/policies/servers.py
maya2250/nova
e483ca1cd9a5db5856f87fc69ca07c42d2be5def
[ "Apache-2.0" ]
1
2020-11-05T17:42:24.000Z
2020-11-05T17:42:24.000Z
nova/policies/servers.py
Mattlk13/nova
5b13eb59540aaf535a53920e783964d106de2620
[ "Apache-2.0" ]
1
2020-07-22T22:14:40.000Z
2020-07-22T22:14:40.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
29.734793
79
0.524262
1,177
12,221
5.329652
0.220901
0.063128
0.140921
0.073649
0.502949
0.441256
0.394548
0.343058
0.257134
0.218875
0
0.002341
0.370837
12,221
410
80
29.807317
0.8135
0.059897
0
0.448378
0
0
0.305778
0.074226
0
0
0
0
0
1
0.00295
false
0
0.0059
0.00295
0.011799
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53564fa8ddf1d013bfaf1e0a0630a501757ce124
1,504
py
Python
week02/day08.py
gtadeus/LeetCodeChallenge2009
81d3fae205fb9071d7a98260df9bbeb1c8c8ffe0
[ "MIT" ]
null
null
null
week02/day08.py
gtadeus/LeetCodeChallenge2009
81d3fae205fb9071d7a98260df9bbeb1c8c8ffe0
[ "MIT" ]
null
null
null
week02/day08.py
gtadeus/LeetCodeChallenge2009
81d3fae205fb9071d7a98260df9bbeb1c8c8ffe0
[ "MIT" ]
null
null
null
import unittest # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def sumRootToLeaf(self, root: TreeNode) -> int: m = self.c(root) r=0 for n in ...
28.923077
146
0.475399
203
1,504
3.453202
0.26601
0.051355
0.034237
0.047076
0.245364
0.199715
0.199715
0.097004
0
0
0
0.025471
0.399601
1,504
52
147
28.923077
0.750831
0.031915
0
0.139535
0
0
0.018569
0
0
0
0
0
0.023256
1
0.093023
false
0
0.023256
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5358824aa89abe42dc1e1bfd86a2b5480905c96d
411
py
Python
src/tests/test_stop_at_task.py
francesco-p/FACIL
e719deebb6d2acb5778b60759294c23ea5e2b454
[ "MIT" ]
243
2020-09-22T11:26:34.000Z
2022-03-31T13:16:21.000Z
src/tests/test_stop_at_task.py
francesco-p/FACIL
e719deebb6d2acb5778b60759294c23ea5e2b454
[ "MIT" ]
15
2021-05-09T08:48:15.000Z
2022-03-28T16:07:45.000Z
src/tests/test_stop_at_task.py
francesco-p/FACIL
e719deebb6d2acb5778b60759294c23ea5e2b454
[ "MIT" ]
52
2021-03-01T15:08:29.000Z
2022-03-28T19:53:14.000Z
from tests import run_main_and_assert FAST_LOCAL_TEST_ARGS = "--exp-name local_test --datasets mnist" \ " --network LeNet --num-tasks 5 --seed 1 --batch-size 32" \ " --nepochs 2 --num-workers 0 --stop-at-task 3" def test_finetuning_stop_at_task(): args_line = FAST_LO...
34.25
82
0.647202
58
411
4.241379
0.637931
0.109756
0.081301
0.130081
0
0
0
0
0
0
0
0.022508
0.243309
411
11
83
37.363636
0.768489
0
0
0
0
0
0.389294
0
0
0
0
0
0.25
1
0.125
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53591d67014d7a8167c868c3b270950bcf55cca8
375
py
Python
Python/contains-duplicate.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
388
2020-06-29T08:41:27.000Z
2022-03-31T22:55:05.000Z
Python/contains-duplicate.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
178
2020-07-16T17:15:28.000Z
2022-03-09T21:01:50.000Z
Python/contains-duplicate.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
263
2020-07-13T18:33:20.000Z
2022-03-28T13:54:10.000Z
# Autor: Anuj Sharma (@optider) # Github Profile: https://github.com/Optider/ # Problem Link: https://leetcode.com/problems/contains-duplicate/ class Solution: def containsDuplicate(self, nums: List[int]) -> bool: count = {} for n in nums : if count.get(n) != None : ret...
26.785714
65
0.581333
44
375
4.954545
0.772727
0
0
0
0
0
0
0
0
0
0
0.003788
0.296
375
13
66
28.846154
0.82197
0.365333
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5359c8fd0dd897c7cd9afb3870d3437688b42ddc
8,824
py
Python
build/android/gyp/dex.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
build/android/gyp/dex.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
build/android/gyp/dex.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import logging import optparse import os import sys import tempfile import zipfile from util import build_utils def _C...
35.580645
80
0.68563
1,146
8,824
5.11082
0.246073
0.017927
0.035855
0.017927
0.187809
0.14393
0.078539
0.024927
0
0
0
0.005602
0.211015
8,824
247
81
35.724696
0.835679
0.142792
0
0.086207
0
0
0.160011
0.014595
0
0
0
0
0
1
0.063218
false
0.005747
0.045977
0
0.16092
0.005747
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
535aa0f5c23f246944ffe8092713608d551e77e5
11,199
py
Python
apps/views.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
null
null
null
apps/views.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
6
2020-06-05T23:02:49.000Z
2022-02-11T03:43:22.000Z
apps/views.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.hashers import check_password, make_password from django.views import View from utils.response_code import RET, error_map from rest_framework.views import APIView from rest_framework.response import Response from apps.ser...
21.331429
70
0.544156
1,308
11,199
4.602446
0.169725
0.023256
0.038206
0.079734
0.52392
0.402658
0.369934
0.31412
0.292525
0.256312
0
0.004241
0.326279
11,199
524
71
21.372137
0.793638
0.043307
0
0.564179
0
0
0.071878
0.013906
0
0
0
0
0
1
0.101493
false
0.01791
0.035821
0.026866
0.274627
0.068657
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
535ab0b00b5e6dd49d2816d9ac5192041774bc04
4,283
py
Python
learnedevolution/targets/covariance/amalgam_covariance.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
learnedevolution/targets/covariance/amalgam_covariance.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
learnedevolution/targets/covariance/amalgam_covariance.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
import numpy as np; from .covariance_target import CovarianceTarget; class AMaLGaMCovariance(CovarianceTarget): _API=2. def __init__(self, theta_SDR = 1., eta_DEC = 0.9, alpha_Sigma = [-1.1,1.2,1.6], NIS_MAX = 25, tau = 0.35, epsilon = 1e-30, condition_n...
30.592857
87
0.585337
555
4,283
4.291892
0.203604
0.062972
0.062972
0.054576
0.263224
0.202351
0.183039
0.183039
0.156171
0.156171
0
0.020219
0.295587
4,283
139
88
30.81295
0.769307
0.016344
0
0.168224
0
0
0.016861
0.005699
0
0
0
0
0
1
0.093458
false
0.009346
0.018692
0.009346
0.158879
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
535eb0ebfd076b333a6d2c988712739a93360c70
8,513
py
Python
legacy_code/tf_cnn_siamese/model.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
2
2019-10-25T04:57:03.000Z
2020-06-16T00:34:18.000Z
legacy_code/tf_cnn_siamese/model.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
null
null
null
legacy_code/tf_cnn_siamese/model.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
1
2020-06-25T14:54:24.000Z
2020-06-25T14:54:24.000Z
import legacy_code.tf_cnn_siamese.configurations as conf import tensorflow as tf import numpy as np def construct_cnn(x, conv_weights, conv_biases, fc_weights, fc_biases, dropout = False): """ constructs the convolution graph for one image :param x: input node :param conv_weights: convolutio...
39.412037
80
0.670504
1,210
8,513
4.521488
0.179339
0.042771
0.026138
0.040395
0.525864
0.474867
0.441967
0.422044
0.39682
0.388594
0
0.014939
0.237284
8,513
215
81
39.595349
0.827661
0.380477
0
0.387387
0
0
0.028684
0
0
0
0
0
0
1
0.063063
false
0
0.027027
0
0.153153
0.009009
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
535f56691aa062ae2f47bfd3027e86cffdb80581
3,591
py
Python
tests/test_utils_log.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
41,267
2015-01-01T07:39:25.000Z
2022-03-31T20:09:40.000Z
tests/test_utils_log.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
4,420
2015-01-02T09:35:38.000Z
2022-03-31T22:53:32.000Z
tests/test_utils_log.py
FingerCrunch/scrapy
3225de725720bba246ba8c9845fe4b84bc0c82e7
[ "BSD-3-Clause" ]
11,080
2015-01-01T18:11:30.000Z
2022-03-31T15:33:19.000Z
import sys import logging import unittest from testfixtures import LogCapture from twisted.python.failure import Failure from scrapy.utils.log import (failure_to_exc_info, TopLevelFormatter, LogCounterHandler, StreamLogger) from scrapy.utils.test import get_crawler from scrapy.extensions...
32.944954
77
0.662768
424
3,591
5.485849
0.21934
0.051591
0.051591
0.058469
0.39123
0.366294
0.257094
0.257094
0.239037
0.156492
0
0.002158
0.225564
3,591
108
78
33.25
0.834232
0.010304
0
0.234568
0
0
0.11036
0.005912
0
0
0
0
0.111111
1
0.185185
false
0
0.098765
0
0.333333
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53620a02b1382e7015ce77097767be27a037d2cd
2,329
py
Python
astar.py
jeff012345/clue-part-duo
bd9ccd2ccdbc2fe358a696b31644b93e70ff874b
[ "MIT" ]
null
null
null
astar.py
jeff012345/clue-part-duo
bd9ccd2ccdbc2fe358a696b31644b93e70ff874b
[ "MIT" ]
null
null
null
astar.py
jeff012345/clue-part-duo
bd9ccd2ccdbc2fe358a696b31644b93e70ff874b
[ "MIT" ]
null
null
null
import heapq from typing import List from definitions import RoomPosition, Position import random import sys class PriorityQueue: def __init__(self): self.elements: Array = [] def empty(self) -> bool: return len(self.elements) == 0 def put(self, item, priority: float): hea...
26.465909
92
0.592529
294
2,329
4.591837
0.323129
0.026667
0.04
0.037037
0.04
0.016296
0
0
0
0
0
0.021645
0.305711
2,329
87
93
26.770115
0.813234
0.033061
0
0.066667
0
0
0.050357
0
0
0
0
0
0
1
0.1
false
0
0.083333
0.033333
0.316667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53620e1797375b57cbec5b488715571deabfedc5
19,152
py
Python
src/py_scripts/fc_phasing.py
pb-jchin/FALCON_unzip
21b1df3491e3bb7b9d8ecd13fc0c9c1a45b6393f
[ "BSD-3-Clause-Clear" ]
2
2016-06-23T03:20:22.000Z
2016-10-07T23:45:26.000Z
src/py_scripts/fc_phasing.py
pb-jchin/FALCON_unzip
21b1df3491e3bb7b9d8ecd13fc0c9c1a45b6393f
[ "BSD-3-Clause-Clear" ]
null
null
null
src/py_scripts/fc_phasing.py
pb-jchin/FALCON_unzip
21b1df3491e3bb7b9d8ecd13fc0c9c1a45b6393f
[ "BSD-3-Clause-Clear" ]
null
null
null
from pypeflow.common import * from pypeflow.data import PypeLocalFile, makePypeLocalFile, fn from pypeflow.task import PypeTask, PypeThreadTaskBase, PypeTaskBase from pypeflow.controller import PypeWorkflow, PypeThreadWorkflow from falcon_kit.FastaReader import FastaReader import subprocess, shlex import os, re cigar...
33.897345
155
0.477339
2,431
19,152
3.541752
0.109009
0.01115
0.011847
0.027642
0.427178
0.370383
0.32288
0.251336
0.195122
0.159698
0
0.04929
0.407843
19,152
564
156
33.957447
0.709902
0.024697
0
0.292035
0
0
0.039787
0.006291
0
0
0
0
0
1
0.011062
false
0.002212
0.019912
0
0.033186
0.019912
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5362c554ddeabe0765b25a2b55000d5493c91742
8,490
py
Python
augmentation/combineds/wgan_gp_straight.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
augmentation/combineds/wgan_gp_straight.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
augmentation/combineds/wgan_gp_straight.py
pabloduque0/cnn_deconv_viz
3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85
[ "MIT" ]
null
null
null
from keras.datasets import mnist from keras.layers.merge import _Merge from keras.layers import Input, Dense, Reshape, Flatten, Dropout from keras.layers import BatchNormalization, Activation, ZeroPadding2D from keras.layers.advanced_activations import LeakyReLU from keras.layers.convolutional import UpSampling2D, Conv...
37.566372
99
0.593404
1,001
8,490
4.894106
0.22977
0.04899
0.020004
0.027148
0.229026
0.181466
0.124719
0.118596
0.118596
0.106961
0
0.022398
0.284806
8,490
225
100
37.733333
0.78442
0.188928
0
0.157895
0
0
0.01673
0
0
0
0
0
0
1
0.06015
false
0
0.112782
0.007519
0.225564
0.007519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
536436e3554ba3a4da46ab96d890765a1f73000c
554
py
Python
tests/test_load.py
ocefpaf/xroms
763d6e678e28fe074e0aaab26fecd2b74e51a8b0
[ "MIT" ]
4
2020-01-21T21:24:17.000Z
2020-10-02T03:09:32.000Z
tests/test_load.py
ocefpaf/xroms
763d6e678e28fe074e0aaab26fecd2b74e51a8b0
[ "MIT" ]
1
2020-04-08T00:11:39.000Z
2020-04-25T08:03:45.000Z
tests/test_load.py
ocefpaf/xroms
763d6e678e28fe074e0aaab26fecd2b74e51a8b0
[ "MIT" ]
1
2020-04-06T06:42:36.000Z
2020-04-06T06:42:36.000Z
'''Test package.''' import xroms from glob import glob import os def test_open_netcdf(): '''Test xroms.open_netcdf().''' base = os.path.join(xroms.__path__[0],'..','tests','input') files = glob('%s/ocean_his_000?.nc' % base) ds = xroms.open_netcdf(files) assert ds def test_open_zar...
21.307692
63
0.597473
77
554
4.025974
0.363636
0.116129
0.070968
0.090323
0.354839
0.354839
0.354839
0.354839
0.354839
0.354839
0
0.020642
0.212996
554
25
64
22.16
0.690367
0.113718
0
0.307692
0
0
0.149474
0
0
0
0
0
0.153846
1
0.153846
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
53646f201e13a30e6efd94fa6ebf56d02fafc4af
1,381
py
Python
demoproject/demoproject/urls.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
302
2015-01-06T14:38:22.000Z
2022-01-11T15:28:07.000Z
demoproject/demoproject/urls.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
63
2015-01-03T14:39:29.000Z
2021-04-19T09:29:15.000Z
demoproject/demoproject/urls.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
104
2015-01-07T21:40:53.000Z
2021-02-22T08:21:02.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^piechart/', views.demo_piechart, name='demo_piechart'), url(r'^linechart/', views.demo_linechart, name='demo_linechart'), url(r'^linechart_without_date/', views.demo_linechart_without_date,...
62.772727
115
0.766836
157
1,381
6.471338
0.184713
0.059055
0.038386
0.047244
0
0
0
0
0
0
0
0
0.086169
1,381
21
116
65.761905
0.805071
0.039826
0
0
0
0
0.397281
0.252266
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5366c96f79a37fc8c50479d35ab11dc62e0b3949
15,109
py
Python
pipeline/visualization/single_tab.py
windblood/kafka_stock
8dbe4a1cf5c367b3c210683d4027bbfaf955ed41
[ "Apache-2.0" ]
45
2019-08-06T09:06:58.000Z
2022-03-14T06:13:33.000Z
pipeline/visualization/single_tab.py
windblood/kafka_stock
8dbe4a1cf5c367b3c210683d4027bbfaf955ed41
[ "Apache-2.0" ]
2
2021-05-10T09:23:12.000Z
2021-12-20T07:06:54.000Z
pipeline/visualization/single_tab.py
windblood/kafka_stock
8dbe4a1cf5c367b3c210683d4027bbfaf955ed41
[ "Apache-2.0" ]
14
2020-03-19T04:38:25.000Z
2022-03-16T06:37:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 31 11:47:47 2019 @author: yanyanyu """ """ Tab1-plot1: candlestick """ import json import datetime import pandas as pd from math import pi from random import choice from pytz import timezone from bokeh.plotting import figure,show from bokeh.p...
48.117834
144
0.53253
1,544
15,109
5.100389
0.234456
0.008762
0.010667
0.008254
0.376381
0.293206
0.256762
0.233651
0.225524
0.225524
0
0.016665
0.32484
15,109
313
145
48.271566
0.755318
0.057515
0
0.220339
0
0
0.23785
0.015306
0
0
0
0
0
1
0.029661
false
0
0.050847
0
0.097458
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
536933e136a1518afd79a7f6f89175f2c5e084a2
2,755
py
Python
VirtualMouse-mediapipe.py
SanLiWuXun/Virtual-Control
c3b38d4e2df201af851ca70a90de1fdc770158e4
[ "MIT" ]
null
null
null
VirtualMouse-mediapipe.py
SanLiWuXun/Virtual-Control
c3b38d4e2df201af851ca70a90de1fdc770158e4
[ "MIT" ]
null
null
null
VirtualMouse-mediapipe.py
SanLiWuXun/Virtual-Control
c3b38d4e2df201af851ca70a90de1fdc770158e4
[ "MIT" ]
null
null
null
import cv2 import mediapipe as mp from time import sleep import numpy as np import autopy import pynput wCam, hCam = 1280, 720 wScr, hScr = autopy.screen.size() cap = cv2.VideoCapture(0) cap.set(3, wCam) cap.set(4, hCam) mp_drawing = mp.solutions.drawing_utils mp_hands = mp.solutions.hands mouse = pynput.mouse.Cont...
35.320513
113
0.622142
374
2,755
4.44385
0.36631
0.078219
0.075812
0.066185
0.156438
0.156438
0.039711
0
0
0
0
0.054108
0.275499
2,755
78
114
35.320513
0.778557
0.132486
0
0.035088
0
0
0.018044
0
0
0
0.001679
0
0
1
0.017544
false
0
0.105263
0
0.140351
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
536b5c354fdb15e9bd9be57f477eacb913ce0e22
4,793
py
Python
Chapter10/neuroevolution/distributed_helpers.py
KonstantinKlepikov/Hands-on-Neuroevolution-with-Python
cdd35fa21f2a091d176c140427ab1644d9ecd1f2
[ "MIT" ]
51
2019-06-03T12:45:13.000Z
2022-02-16T15:48:28.000Z
Chapter10/neuroevolution/distributed_helpers.py
123mitnik/Hands-on-Neuroevolution-with-Python
b65c7dee49303c296ae22f2d82422614bdf7a168
[ "MIT" ]
3
2020-02-20T08:13:34.000Z
2020-09-16T10:11:52.000Z
Chapter10/neuroevolution/distributed_helpers.py
123mitnik/Hands-on-Neuroevolution-with-Python
b65c7dee49303c296ae22f2d82422614bdf7a168
[ "MIT" ]
30
2019-05-24T02:02:47.000Z
2022-03-03T22:48:22.000Z
import threading from queue import Queue from multiprocessing.pool import ApplyResult import tabular_logger as tlogger class AsyncWorker(object): @property def concurrent_tasks(self): raise NotImplementedError() def run_async(self, task_id, task, callback): raise NotImplementedError() ...
32.828767
119
0.595869
515
4,793
5.285437
0.178641
0.047759
0.043718
0.024982
0.315944
0.221161
0.121234
0.073475
0.073475
0.073475
0
0.001848
0.322554
4,793
145
120
33.055172
0.836464
0.025037
0
0.319328
0
0
0.097258
0.036632
0
0
0
0
0
1
0.109244
false
0
0.033613
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
536e0e040e307bf9f906164571d5de4002db0a3c
492
py
Python
tests/settings.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
2
2019-10-08T08:56:46.000Z
2020-10-10T08:29:43.000Z
tests/settings.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
null
null
null
tests/settings.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
2
2019-10-08T08:59:54.000Z
2021-03-18T18:15:38.000Z
DEBUG = True USE_TZ = True SECRET_KEY = "dummy" DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sites", "rest_framework", "django_filters", "belt", "tests.app", ]...
18.222222
85
0.668699
54
492
5.87037
0.685185
0.123028
0
0
0
0
0
0
0
0
0
0.004866
0.164634
492
26
86
18.923077
0.766423
0
0
0
0
0
0.506098
0.254065
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72559fed2c0dfd5ae9506264bf674d020588c5b0
26,482
py
Python
Cell_Generation/fabric_CMC_NMOS.py
ALIGN-analoglayout/2018-01-ALIGN
931263cec2efc05d58657af9ecca88ae0040c3a5
[ "BSD-3-Clause" ]
8
2019-01-10T06:34:26.000Z
2021-06-30T05:44:49.000Z
Cell_Generation/fabric_CMC_NMOS.py
ALIGN-analoglayout/2018-01-ALIGN
931263cec2efc05d58657af9ecca88ae0040c3a5
[ "BSD-3-Clause" ]
null
null
null
Cell_Generation/fabric_CMC_NMOS.py
ALIGN-analoglayout/2018-01-ALIGN
931263cec2efc05d58657af9ecca88ae0040c3a5
[ "BSD-3-Clause" ]
2
2019-01-09T19:58:28.000Z
2019-03-08T22:58:50.000Z
import sys import json import transformation class StopPointGrid: def __init__( self, nm, layer, direction, width, pitch, offset=0): self.nm = nm self.layer = layer self.direction = direction assert direction in ['v','h'] self.width = width self.pitch = pitch ...
55.987315
323
0.551809
3,332
26,482
4.30042
0.073529
0.021774
0.037965
0.02966
0.664317
0.540791
0.472887
0.456417
0.436318
0.415381
0
0.055736
0.29201
26,482
472
324
56.105932
0.708518
0.004871
0
0.293532
0
0
0.017653
0.001223
0
0
0
0
0.007463
1
0.069652
false
0
0.007463
0.044776
0.097015
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
725600e7a0a1963a9922b5936348396ff3c1bd52
13,457
py
Python
docs/testcases/all_in_one.py
tiramtaramta/conduit
ae4ca8e64fe64c2b6702d803d799e380fda84a92
[ "MIT" ]
null
null
null
docs/testcases/all_in_one.py
tiramtaramta/conduit
ae4ca8e64fe64c2b6702d803d799e380fda84a92
[ "MIT" ]
null
null
null
docs/testcases/all_in_one.py
tiramtaramta/conduit
ae4ca8e64fe64c2b6702d803d799e380fda84a92
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By import os import time import csv from webdriver_manager.chrome import ChromeDriverManager import math from basic_function import ...
37.48468
120
0.630081
1,690
13,457
4.768047
0.172189
0.080665
0.090345
0.119881
0.598784
0.555473
0.498263
0.451104
0.438819
0.409531
0
0.017895
0.235937
13,457
358
121
37.589385
0.765804
0.137846
0
0.425121
0
0
0.215522
0.09846
0
0
0
0
0.077295
1
0.062802
false
0.019324
0.048309
0
0.125604
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
725642bee9a909399840fd99543e731184a069ea
819
py
Python
IV_semester/os/configs.py
dainiusjocas/labs
25aa0ae2032681dbaf0afd83f3d80bedddea6407
[ "Beerware" ]
1
2019-04-16T22:05:42.000Z
2019-04-16T22:05:42.000Z
IV_semester/os/configs.py
dainiusjocas/labs
25aa0ae2032681dbaf0afd83f3d80bedddea6407
[ "Beerware" ]
null
null
null
IV_semester/os/configs.py
dainiusjocas/labs
25aa0ae2032681dbaf0afd83f3d80bedddea6407
[ "Beerware" ]
null
null
null
#!/usr/bin/env python ''' This module provides configuration options for OS project. No more magic numbers! ''' BLOCK_SIZE = 16 # words WORD_SIZE = 4 # bytes # length od RS in blocks RESTRICTED_LENGTH = 1 # length of DS in blocks DS_LENGTH = 6 # timer value TIMER_VALUE = 10 # buffer size BUFFER_SIZE = 16 # num...
18.2
89
0.764347
126
819
4.714286
0.619048
0.065657
0
0
0
0
0
0
0
0
0
0.050147
0.172161
819
44
90
18.613636
0.825959
0.377289
0
0
0
0
0.038697
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7256bed763fbd51245f430291a65885eb6f4534d
3,022
py
Python
roboticstoolbox/models/URDF/Puma560.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
roboticstoolbox/models/URDF/Puma560.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
roboticstoolbox/models/URDF/Puma560.py
Russ76/robotics-toolbox-python
4b3e82a6522757ffde1f83aef8d05b3ad475e9de
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np from roboticstoolbox.robot.ERobot import ERobot from math import pi class Puma560(ERobot): """ Class that imports a Puma 560 URDF model ``Puma560()`` is a class which imports a Unimation Puma560 robot definition from a URDF file. The model describes its kine...
31.154639
130
0.610192
408
3,022
4.433824
0.401961
0.011056
0.092869
0.05749
0.162521
0.096186
0.096186
0.063018
0.063018
0.063018
0
0.08113
0.273991
3,022
96
131
31.479167
0.743391
0.453011
0
0.108108
0
0
0.054159
0.031593
0
0
0
0
0
1
0.027027
false
0
0.081081
0
0.135135
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7259d1c0671ff1b759aee401e67ca154f987dcca
5,059
py
Python
ntpclients/ntptrace.py
OptimalRanging/NTPsec
7fa9b38c3e91f96b173ffa02bafa29cf81173cf7
[ "CC-BY-4.0", "BSD-2-Clause", "NTP", "MIT", "BSD-3-Clause" ]
null
null
null
ntpclients/ntptrace.py
OptimalRanging/NTPsec
7fa9b38c3e91f96b173ffa02bafa29cf81173cf7
[ "CC-BY-4.0", "BSD-2-Clause", "NTP", "MIT", "BSD-3-Clause" ]
null
null
null
ntpclients/ntptrace.py
OptimalRanging/NTPsec
7fa9b38c3e91f96b173ffa02bafa29cf81173cf7
[ "CC-BY-4.0", "BSD-2-Clause", "NTP", "MIT", "BSD-3-Clause" ]
1
2021-09-24T18:19:49.000Z
2021-09-24T18:19:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ntptrace - trace peers of an NTP server Usage: ntptrace [-n | --numeric] [-m number | --max-hosts=number] [-r hostname | --host=hostname] [--help | --more-help] hostname See the manual page for details. """ # SPDX-License-Identifier: BS...
27.796703
77
0.555841
664
5,059
4.188253
0.302711
0.019417
0.025171
0.012945
0.133046
0.092053
0.071197
0.071197
0.071197
0.020137
0
0.018508
0.284444
5,059
181
78
27.950276
0.749724
0.073137
0
0.131783
0
0
0.262292
0.011971
0
0
0
0
0
1
0.023256
false
0.007752
0.054264
0
0.116279
0.054264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7259dd2585e473152b9b222537cbe864940bc023
7,529
py
Python
lbrynet/wallet/server/block_processor.py
abueide/lbry
7f5deaf6c80422a30b3714d4bf12e028756ed9fe
[ "MIT" ]
null
null
null
lbrynet/wallet/server/block_processor.py
abueide/lbry
7f5deaf6c80422a30b3714d4bf12e028756ed9fe
[ "MIT" ]
null
null
null
lbrynet/wallet/server/block_processor.py
abueide/lbry
7f5deaf6c80422a30b3714d4bf12e028756ed9fe
[ "MIT" ]
null
null
null
import struct import msgpack from lbrynet.wallet.transaction import Transaction, Output from torba.server.hash import hash_to_hex_str from torba.server.block_processor import BlockProcessor from lbrynet.schema.claim import Claim from lbrynet.wallet.server.model import ClaimInfo class LBRYBlockProcessor(BlockProce...
48.574194
119
0.663036
1,018
7,529
4.604126
0.202358
0.09601
0.044378
0.02987
0.313847
0.268615
0.252187
0.207169
0.168338
0.134414
0
0.001611
0.257936
7,529
154
120
48.88961
0.837301
0.09231
0
0.173554
0
0
0.046563
0.003695
0
0
0
0.006494
0.008264
1
0.082645
false
0.016529
0.057851
0
0.214876
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
725c4a78b42553c5dfa61cb7be78dad147ba621d
4,584
py
Python
api/app/endpoints/datasets.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
api/app/endpoints/datasets.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
api/app/endpoints/datasets.py
historeno/enermaps
ad3a97636baa153a56367e374d0fef7f009bf19d
[ "Apache-2.0" ]
null
null
null
"""Endpoint for the manipulation of datasets """ import hashlib from flask import Response from flask_restx import Namespace, Resource, abort from app.common import client from app.common import datasets as datasets_fcts from app.common import path api = Namespace("datasets", description="Datasets related endpoints...
28.830189
88
0.630017
551
4,584
5.087114
0.194192
0.070639
0.039957
0.051374
0.578666
0.55726
0.527292
0.513735
0.424545
0.383161
0
0.007165
0.238874
4,584
158
89
29.012658
0.796217
0.097077
0
0.363636
0
0
0.192214
0.112145
0
0
0
0
0
1
0.081818
false
0
0.054545
0
0.281818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
725c8eebe50fb704a955c92f2df5a2010dd496c0
360
py
Python
python/p45.py
forewing/lc
314468a1a3bb7d38eccf1f34b0d1b7da04a34784
[ "CC0-1.0" ]
null
null
null
python/p45.py
forewing/lc
314468a1a3bb7d38eccf1f34b0d1b7da04a34784
[ "CC0-1.0" ]
null
null
null
python/p45.py
forewing/lc
314468a1a3bb7d38eccf1f34b0d1b7da04a34784
[ "CC0-1.0" ]
null
null
null
class Solution: def jump(self, nums: List[int]) -> int: n = len(nums) dp = [float('inf')] * n dp[0] = 0 tail = 1 for i in range(n): limit = min(n, i + nums[i] + 1) for j in range(tail, limit): dp[j] = min(dp[j], dp[i] + 1) ...
24
45
0.405556
53
360
2.754717
0.45283
0.054795
0
0
0
0
0
0
0
0
0
0.034653
0.438889
360
14
46
25.714286
0.688119
0
0
0
0
0
0.008333
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
725e0b8e42aaad734ba9a21ce1eb2b48fbf8f5f0
2,575
py
Python
ademo.py
erikdelange/MicroPython-HTTP-Server
54bda9d55ac65b9a6bbf2189098a788add52b344
[ "MIT" ]
null
null
null
ademo.py
erikdelange/MicroPython-HTTP-Server
54bda9d55ac65b9a6bbf2189098a788add52b344
[ "MIT" ]
null
null
null
ademo.py
erikdelange/MicroPython-HTTP-Server
54bda9d55ac65b9a6bbf2189098a788add52b344
[ "MIT" ]
null
null
null
import sys import time import uasyncio as asyncio from ahttpserver import sendfile, Server app = Server() @app.route("GET", "/") async def root(reader, writer, request): writer.write(b"HTTP/1.1 200 OK\r\n") writer.write(b"Connection: close\r\n") writer.write(b"Content-Type: text/html\r\n") ...
28.611111
87
0.626796
365
2,575
4.350685
0.317808
0.110831
0.11335
0.09005
0.34068
0.34068
0.34068
0.34068
0.34068
0.34068
0
0.023058
0.225243
2,575
89
88
28.932584
0.772932
0.113398
0
0.34375
0
0.015625
0.218003
0.030005
0
0
0
0
0
1
0.03125
false
0.015625
0.0625
0
0.09375
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
725f0a434de0934431956914cb716614971e97cb
3,851
py
Python
models/audio_net.py
vipulSharma18/Deep-Self-Supervised-Audio-Video-Cosegmentation-with-Adaptive-Noise-Cancellation
d52695be31a1552d0785f3b6634bde6ef9276a90
[ "MIT" ]
null
null
null
models/audio_net.py
vipulSharma18/Deep-Self-Supervised-Audio-Video-Cosegmentation-with-Adaptive-Noise-Cancellation
d52695be31a1552d0785f3b6634bde6ef9276a90
[ "MIT" ]
null
null
null
models/audio_net.py
vipulSharma18/Deep-Self-Supervised-Audio-Video-Cosegmentation-with-Adaptive-Noise-Cancellation
d52695be31a1552d0785f3b6634bde6ef9276a90
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class Unet(nn.Module): def __init__(self, fc_dim=64, num_downs=5, ngf=64, use_dropout=False): super(Unet, self).__init__() # construct unet structure unet_block = UnetBlock( ngf * 8, ngf * 8, input_n...
35.657407
75
0.539081
448
3,851
4.412946
0.205357
0.067274
0.042489
0.060698
0.425392
0.348508
0.348508
0.348508
0.341932
0.318159
0
0.020251
0.358868
3,851
107
76
35.990654
0.780478
0.045183
0
0.404494
0
0
0.002244
0
0
0
0
0
0
1
0.044944
false
0
0.033708
0
0.134831
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
726015e732db272b6ddb3ba0b812c3994b6a974f
6,117
py
Python
tests/test_core.py
cnschema/kgtool
599e23a9e8a856625143b171f9c36eb5b00623f6
[ "Apache-2.0" ]
7
2018-08-22T01:09:40.000Z
2022-03-31T18:03:33.000Z
tests/test_core.py
cnschema/kgtool
599e23a9e8a856625143b171f9c36eb5b00623f6
[ "Apache-2.0" ]
2
2020-05-09T12:01:15.000Z
2021-06-01T22:17:12.000Z
tests/test_core.py
cnschema/kgtool
599e23a9e8a856625143b171f9c36eb5b00623f6
[ "Apache-2.0" ]
8
2018-03-07T01:28:32.000Z
2020-09-06T18:27:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Path hack import os import sys sys.path.insert(0, os.path.abspath('..')) try: import unittest2 as unittest except ImportError: import unittest from kgtool.core import * # noqa class CoreTestCase(unittest.TestCase): def setUp(self): pass def t...
29.839024
101
0.560896
678
6,117
4.874631
0.176991
0.075038
0.070802
0.059002
0.559758
0.533132
0.448109
0.333737
0.255068
0.074433
0
0.050983
0.284944
6,117
204
102
29.985294
0.704618
0.009318
0
0.38961
0
0
0.172391
0.043593
0
0
0
0
0.246753
1
0.090909
false
0.006494
0.038961
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
726209920117b9b9ebcbf40bbfd0a7a9d4bd3f25
10,312
py
Python
lpp/evaluator.py
VidoniJorge/c-interprete
4f026d093b26289d3f692cd64d52069fdd1d954c
[ "Apache-2.0" ]
null
null
null
lpp/evaluator.py
VidoniJorge/c-interprete
4f026d093b26289d3f692cd64d52069fdd1d954c
[ "Apache-2.0" ]
null
null
null
lpp/evaluator.py
VidoniJorge/c-interprete
4f026d093b26289d3f692cd64d52069fdd1d954c
[ "Apache-2.0" ]
null
null
null
from typing import ( Any, cast, List, Optional, Type ) import lpp.ast as ast from lpp.builtins import BUILTINS from lpp.object import( Boolean, Builtin, Environment, Error, Function, Integer, Null, Object, ObjectType, String, Return ) TRUE = Boolean(True...
33.264516
113
0.650698
1,240
10,312
5.215323
0.091935
0.019329
0.0334
0.030153
0.435905
0.357662
0.291325
0.223287
0.193753
0.170558
0
0.00013
0.253006
10,312
310
114
33.264516
0.839413
0.001746
0
0.246094
0
0
0.01564
0
0
0
0
0
0.078125
1
0.070313
false
0
0.015625
0.007813
0.339844
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
726246040afca77178e3293325a2bcbc9ed6e53e
121,132
py
Python
cli/tests/pcluster/config/test_validators.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
1
2021-07-10T13:59:46.000Z
2021-07-10T13:59:46.000Z
cli/tests/pcluster/config/test_validators.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
null
null
null
cli/tests/pcluster/config/test_validators.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
39.780624
120
0.588383
12,448
121,132
5.459753
0.082423
0.020835
0.022836
0.015567
0.68065
0.62431
0.57624
0.527772
0.479643
0.447773
0
0.041839
0.290856
121,132
3,044
121
39.793693
0.749348
0.038817
0
0.472061
0
0.003991
0.376327
0.071676
0
0
0
0.000329
0.031567
1
0.023222
false
0.000726
0.016328
0.000726
0.041001
0.000363
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72656ef10a55622587068a8e047a20f959778ca6
2,583
py
Python
pycbc/config.py
mchestr/pycbc
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
[ "Unlicense" ]
null
null
null
pycbc/config.py
mchestr/pycbc
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
[ "Unlicense" ]
null
null
null
pycbc/config.py
mchestr/pycbc
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
[ "Unlicense" ]
null
null
null
import os from functools import reduce import boto3 import yaml from copy import deepcopy from cryptography.fernet import Fernet from pycbc import json from pycbc.utils import AttrDict as d s3 = boto3.client('s3') _mapping_tag = yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG _DEFAULTS = d({ 'users': [], 'enc...
25.323529
75
0.541231
301
2,583
4.458472
0.358804
0.046945
0.035768
0.017884
0.049925
0.049925
0
0
0
0
0
0.013552
0.314363
2,583
101
76
25.574257
0.744212
0
0
0.149425
0
0
0.15331
0.025165
0
0
0
0
0
1
0.057471
false
0
0.091954
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72676d2137788d26c0fcf85bc5ff2c5f1b9c272c
2,893
py
Python
05-Intro-to-SpaCy/scripts/choropleth.py
henchc/Rediscovering-Text-as-Data
3e14fa7a4bd82899ea564d4f7857a5dbdc616a4f
[ "MIT" ]
15
2017-08-29T01:13:42.000Z
2020-12-30T17:10:32.000Z
05-Intro-to-SpaCy/scripts/choropleth.py
henchc/Rediscovering-Text-as-Data
3e14fa7a4bd82899ea564d4f7857a5dbdc616a4f
[ "MIT" ]
null
null
null
05-Intro-to-SpaCy/scripts/choropleth.py
henchc/Rediscovering-Text-as-Data
3e14fa7a4bd82899ea564d4f7857a5dbdc616a4f
[ "MIT" ]
23
2017-08-30T16:59:41.000Z
2019-12-07T07:09:17.000Z
def us_choropleth(t): import matplotlib.cm from matplotlib.patches import Polygon from matplotlib.collections import PatchCollection from matplotlib.colors import Normalize import shapefile import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap import numpy as np im...
30.776596
75
0.648462
384
2,893
4.736979
0.4375
0.054426
0.069269
0.014843
0.024189
0
0
0
0
0
0
0.026424
0.241272
2,893
93
76
31.107527
0.802278
0.125475
0
0
0
0
0.069897
0.015488
0
0
0
0
0
1
0.013889
false
0
0.152778
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
726777c55df7d3f2aede322d72f4954164b655c1
2,348
py
Python
take_day_and_night_pictures.py
ntmoore/skycamera
c8c67970b0e3a52ce008dbd6b34df20cdda786b7
[ "MIT" ]
null
null
null
take_day_and_night_pictures.py
ntmoore/skycamera
c8c67970b0e3a52ce008dbd6b34df20cdda786b7
[ "MIT" ]
null
null
null
take_day_and_night_pictures.py
ntmoore/skycamera
c8c67970b0e3a52ce008dbd6b34df20cdda786b7
[ "MIT" ]
null
null
null
import time import os #parameters sunset_hr=8 dawn_hr=7 daytime_period_min=60 nighttime_period_min=1 time.localtime() print("program starts at ",time.localtime()); while(1): #Is it day or night? time.localtime() hour = time.localtime()[3] minute = time.localtime()[4] hour_float = 1.0*hour+minute...
29.721519
94
0.568143
284
2,348
4.633803
0.295775
0.177812
0.041033
0.036474
0.472644
0.472644
0.472644
0.407295
0.407295
0.407295
0
0.050967
0.272998
2,348
78
95
30.102564
0.719977
0.083475
0
0.421053
0
0
0.241671
0.108869
0
0
0
0
0
1
0
false
0
0.035088
0
0.035088
0.122807
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7269858ddc95892c083fd9a632926838c559c8a0
7,344
py
Python
malchive/utilities/comguidtoyara.py
6un9-h0-Dan/malchive
1d150430559a307cdfee49d47799c95caea47415
[ "Apache-2.0" ]
59
2021-01-29T15:58:43.000Z
2022-02-11T20:15:04.000Z
malchive/utilities/comguidtoyara.py
6un9-h0-Dan/malchive
1d150430559a307cdfee49d47799c95caea47415
[ "Apache-2.0" ]
1
2021-04-09T13:53:47.000Z
2021-04-09T13:53:47.000Z
malchive/utilities/comguidtoyara.py
6un9-h0-Dan/malchive
1d150430559a307cdfee49d47799c95caea47415
[ "Apache-2.0" ]
10
2021-01-29T19:35:45.000Z
2021-07-18T21:07:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2021 The MITRE Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at: # http://www.apache.org/lice...
32.932735
124
0.578431
899
7,344
4.615128
0.362625
0.014461
0.006508
0.007713
0.135695
0.084358
0.071342
0.065076
0.065076
0.038081
0
0.009903
0.3125
7,344
222
125
33.081081
0.811844
0.225218
0
0.167939
0
0
0.198603
0.023818
0.007634
0
0
0
0
1
0.030534
false
0
0.076336
0
0.129771
0.038168
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
726b36a2e85a950a7d407068d5aa12a5d50355a1
4,089
py
Python
main.py
tani-cat/point_maximizer
c9ff868377bbeed4727914d7be258457dc8295a3
[ "MIT" ]
1
2021-09-07T04:19:48.000Z
2021-09-07T04:19:48.000Z
main.py
tani-cat/point_maximizer
c9ff868377bbeed4727914d7be258457dc8295a3
[ "MIT" ]
null
null
null
main.py
tani-cat/point_maximizer
c9ff868377bbeed4727914d7be258457dc8295a3
[ "MIT" ]
null
null
null
import csv import os from collections import deque BASE_DIR = os.path.dirname(os.path.abspath(__file__)) INPUT_PATH = os.path.join(BASE_DIR, 'goods_source.csv') OUTPUT_PATH = os.path.join(BASE_DIR, 'result.csv') FILE_ENCODE = 'shift_jis' INPUT_COLS = ('id', 'goods_name', 'price') def import_csv(): """入力データの読み込...
25.716981
82
0.544876
495
4,089
4.307071
0.274747
0.042214
0.018293
0.015478
0.120544
0.081614
0.032833
0.032833
0.032833
0.032833
0
0.024052
0.328931
4,089
158
83
25.879747
0.752915
0.106872
0
0.189189
0
0
0.067222
0.006111
0
0
0
0
0
1
0.036036
false
0
0.045045
0
0.135135
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
726f55adcb3a541f1d732e7444389c568ce9cca4
4,059
py
Python
src/main/python/hydra/lib/cli.py
bopopescu/hydra
ec0793f8c1f49ceb93bf1f1a9789085b68d55f08
[ "Apache-2.0" ]
10
2016-05-28T15:56:43.000Z
2018-01-03T21:30:58.000Z
src/main/python/hydra/lib/cli.py
bopopescu/hydra
ec0793f8c1f49ceb93bf1f1a9789085b68d55f08
[ "Apache-2.0" ]
17
2016-06-06T22:15:28.000Z
2020-07-22T20:28:12.000Z
src/main/python/hydra/lib/cli.py
bopopescu/hydra
ec0793f8c1f49ceb93bf1f1a9789085b68d55f08
[ "Apache-2.0" ]
5
2016-06-01T22:01:44.000Z
2020-07-22T20:12:49.000Z
"""hydra cli. Usage: hydra cli ls slaves hydra cli ls apps hydra cli ls task <app> hydra cli [force] stop <app> hydra cli scale <app> <scale> hydra cli (-h | --help) hydra cli --version Options: -h --help Show this screen. --version Show version. """ __author__ = 'sushil' from docopt imp...
34.109244
73
0.533875
507
4,059
4.193294
0.285996
0.021167
0.028222
0.047037
0.293039
0.184384
0.184384
0.184384
0.184384
0.184384
0
0.042949
0.311653
4,059
118
74
34.398305
0.717967
0.186006
0
0.234568
0
0
0.144339
0
0
0
0
0
0
1
0.012346
false
0
0.111111
0
0.123457
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
726f6ae6d6811d44c154cb87d7ac33570c6e67c7
1,378
py
Python
azure-devops/azext_devops/test/common/test_format.py
doggy8088/azure-devops-cli-extension
2f6b1a6ffbc49ae454df640a8bb00dac991d6514
[ "MIT" ]
326
2019-04-10T12:38:23.000Z
2022-03-31T23:07:49.000Z
azure-devops/azext_devops/test/common/test_format.py
doggy8088/azure-devops-cli-extension
2f6b1a6ffbc49ae454df640a8bb00dac991d6514
[ "MIT" ]
562
2019-04-10T07:36:12.000Z
2022-03-28T07:37:54.000Z
azure-devops/azext_devops/test/common/test_format.py
doggy8088/azure-devops-cli-extension
2f6b1a6ffbc49ae454df640a8bb00dac991d6514
[ "MIT" ]
166
2019-04-10T07:59:40.000Z
2022-03-16T14:17:13.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
34.45
94
0.58926
152
1,378
5.085526
0.407895
0.054334
0.108668
0.072445
0.456662
0.410091
0.410091
0.410091
0.410091
0.347995
0
0.036134
0.196662
1,378
40
95
34.45
0.66215
0.243832
0
0.48
0
0
0.131021
0.030829
0
0
0
0
0.24
1
0.08
false
0
0.08
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7271b55252042ba4d3337da31bedcd35a08671cd
7,464
py
Python
github/GitReleaseAsset.py
aantr/WindowsHostManager
75d248fc8991d471c6802fa79e7dee44a5708c65
[ "CNRI-Python-GPL-Compatible" ]
1
2021-06-25T09:13:12.000Z
2021-06-25T09:13:12.000Z
venv/lib/python3.6/site-packages/github/GitReleaseAsset.py
rongshaoshuai/blogs
dafeb789428436c1ec8069e605400612b776b8f2
[ "MIT" ]
3
2021-03-30T23:03:03.000Z
2021-03-30T23:06:57.000Z
lib/github/GitReleaseAsset.py
Corionis/Knobs-And-Scripts
81a954fd0ed697e5759359ec0383a3f16a841143
[ "MIT" ]
null
null
null
############################ Copyrights and license ############################ # # # Copyright 2017 Chris McBride <thehighlander@users.noreply.github.com> # # Copyright 2017 Simon <spam@esemi.ru> ...
37.888325
150
0.554126
692
7,464
5.787572
0.236994
0.062921
0.07191
0.059925
0.262422
0.225968
0.090886
0
0
0
0
0.003664
0.341774
7,464
196
151
38.081633
0.81152
0.321543
0
0.114286
0
0
0.048019
0
0
0
0
0
0.019048
1
0.161905
false
0
0.009524
0.009524
0.32381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7272f878dcec10a25f78ca45ec857fd8f9c8248c
3,092
py
Python
indicoio/utils/__init__.py
JoseRoman/IndicoIo-python
4fe2952df45c26392f36acd8b43391dfc50e140b
[ "MIT" ]
1
2021-05-26T09:03:15.000Z
2021-05-26T09:03:15.000Z
indicoio/utils/__init__.py
JoseRoman/IndicoIo-python
4fe2952df45c26392f36acd8b43391dfc50e140b
[ "MIT" ]
null
null
null
indicoio/utils/__init__.py
JoseRoman/IndicoIo-python
4fe2952df45c26392f36acd8b43391dfc50e140b
[ "MIT" ]
null
null
null
import inspect import numpy as np class TypeCheck(object): """ Decorator that performs a typecheck on the input to a function """ def __init__(self, accepted_structures, arg_name): """ When initialized, include list of accepted datatypes and the arg_name to enforce the check on....
35.54023
77
0.647477
404
3,092
4.794554
0.346535
0.065049
0.034073
0.015488
0.019618
0
0
0
0
0
0
0.002618
0.258732
3,092
86
78
35.953488
0.842496
0.278784
0
0.083333
0
0
0.040941
0
0
0
0
0
0
1
0.145833
false
0.041667
0.041667
0.020833
0.354167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
727435e62860b2aa00ad17f363ac314751d38249
3,770
py
Python
openprocurement/tender/openuadefense/tests/tender.py
ProzorroUKR/openprocurement.tender.openuadefense
5d6a7433839178edba35015ae614ba3e36b29d0b
[ "Apache-2.0" ]
null
null
null
openprocurement/tender/openuadefense/tests/tender.py
ProzorroUKR/openprocurement.tender.openuadefense
5d6a7433839178edba35015ae614ba3e36b29d0b
[ "Apache-2.0" ]
5
2018-08-14T19:41:27.000Z
2018-12-28T13:17:00.000Z
openprocurement/tender/openuadefense/tests/tender.py
ProzorroUKR/openprocurement.tender.openuadefense
5d6a7433839178edba35015ae614ba3e36b29d0b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from openprocurement.api.tests.base import snitch from openprocurement.api.tests.base import BaseWebTest from openprocurement.tender.belowthreshold.tests.base import test_lots from openprocurement.tender.belowthreshold.tests.tender import TenderResourceTestMixin from openprocur...
37.326733
121
0.748276
412
3,770
6.536408
0.245146
0.063498
0.064983
0.026736
0.299666
0.193465
0.036391
0
0
0
0
0.004403
0.156499
3,770
100
122
37.7
0.842453
0.039788
0
0.097222
0
0
0.081949
0.016058
0
0
0
0.01
0.097222
1
0.027778
false
0
0.138889
0
0.430556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7274cfef52d1610735171f4f6183581cfb8fe6dd
3,791
py
Python
fabry/tools/file_io.py
jmilhone/fabry_perot
cd3cb7a1dbcaa3c9382f9f2dbd3407d95447b3ce
[ "MIT" ]
1
2020-03-29T20:39:31.000Z
2020-03-29T20:39:31.000Z
fabry/tools/file_io.py
jmilhone/fabry_perot
cd3cb7a1dbcaa3c9382f9f2dbd3407d95447b3ce
[ "MIT" ]
null
null
null
fabry/tools/file_io.py
jmilhone/fabry_perot
cd3cb7a1dbcaa3c9382f9f2dbd3407d95447b3ce
[ "MIT" ]
2
2020-04-16T15:05:23.000Z
2020-12-05T18:19:10.000Z
from __future__ import print_function, division import os import numpy as np import h5py def dict_2_h5(fname, dic, append=False): '''Writes a dictionary to a hdf5 file with given filename It will use lzf compression for all numpy arrays Args: fname (str): filename to write to dic (dic...
28.291045
97
0.611976
545
3,791
4.102752
0.26055
0.010733
0.024598
0.033542
0.317084
0.275939
0.203488
0.101521
0.101521
0.101521
0
0.019971
0.273543
3,791
133
98
28.503759
0.791939
0.277499
0
0.2
0
0
0.064269
0.052793
0
0
0
0
0
1
0.12
false
0
0.053333
0
0.28
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72789eb5c6f77f3e712cea1375e6fa57c2e3d189
1,170
py
Python
trapping_rain_water/solution.py
haotianzhu/C_Questions_Solutions
2677b6d26bedb9bc6c6137a2392d0afaceb91ec2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
trapping_rain_water/solution.py
haotianzhu/C_Questions_Solutions
2677b6d26bedb9bc6c6137a2392d0afaceb91ec2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
trapping_rain_water/solution.py
haotianzhu/C_Questions_Solutions
2677b6d26bedb9bc6c6137a2392d0afaceb91ec2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
class Solution: def trap(self, height): """ :type height: List[int] :rtype: int """ if not height: return 0 left = 0 right = len(height)-1 total_area = 0 if height[left] <= height[right]: m = left else: m =right while(left < right): if height[left] <= height[right]: # move m...
24.375
103
0.616239
175
1,170
4.051429
0.365714
0.098731
0.135402
0.101551
0.282087
0.152327
0.104372
0.104372
0.104372
0
0
0.007026
0.270085
1,170
48
104
24.375
0.823185
0.346154
0
0.266667
0
0
0.010753
0
0
0
0
0
0
1
0.033333
false
0
0
0
0.133333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72792ffbb67fb0954aabb51561db8a143501fbea
607
py
Python
ABC/178/D.py
yu9824/AtCoder
50a209059c005efadc1c912e443ec41365381c16
[ "MIT" ]
null
null
null
ABC/178/D.py
yu9824/AtCoder
50a209059c005efadc1c912e443ec41365381c16
[ "MIT" ]
null
null
null
ABC/178/D.py
yu9824/AtCoder
50a209059c005efadc1c912e443ec41365381c16
[ "MIT" ]
null
null
null
# list(map(int, input().split())) # int(input()) import sys sys.setrecursionlimit(10 ** 9) ''' DP A[n] = A[n-3] + A[n-4] + ... + A[0] (O(S**2)) ここで,A[n-1] = A[n-4] + A[n-5] + ... + A[0]より, A[n] = A[n-3] + A[n-1]とも表せる.(O(S)でより高速.) ''' mod = 10 ** 9 + 7 def main(*args): S = args[0] A = [0 for s in range(S+1)]...
18.96875
59
0.444811
112
607
2.339286
0.375
0.068702
0.022901
0.030534
0.053435
0.053435
0.053435
0
0
0
0
0.066514
0.281713
607
32
60
18.96875
0.534404
0.202636
0
0
0
0
0.023739
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
727a16aa07e94a6fe76bbd40cc0c276c9724b76b
2,517
py
Python
contrib/analysis_server/src/analysis_server/factory.py
OzanCKN/OpenMDAO-Framework
05e9d4b9bc41d0ec00a7073545146c925cd33b0b
[ "Apache-2.0" ]
1
2015-11-05T11:14:45.000Z
2015-11-05T11:14:45.000Z
contrib/analysis_server/src/analysis_server/factory.py
janus/OpenMDAO-Framework
05e9d4b9bc41d0ec00a7073545146c925cd33b0b
[ "Apache-2.0" ]
null
null
null
contrib/analysis_server/src/analysis_server/factory.py
janus/OpenMDAO-Framework
05e9d4b9bc41d0ec00a7073545146c925cd33b0b
[ "Apache-2.0" ]
1
2020-07-15T02:45:54.000Z
2020-07-15T02:45:54.000Z
from openmdao.main.factory import Factory from analysis_server import client, proxy, server class ASFactory(Factory): """ Factory for components running under an AnalysisServer. An instance would typically be passed to :meth:`openmdao.main.factorymanager.register_class_factory`. host: string ...
28.602273
80
0.573699
282
2,517
5.003546
0.340426
0.028349
0.026931
0.029766
0.042523
0.042523
0
0
0
0
0
0
0.337306
2,517
87
81
28.931034
0.845923
0.320222
0
0
0
0
0.023904
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
727c127931f6990427efb822c10447cc3dcfa23b
1,726
bzl
Python
antlir/bzl/image_actions/tarball.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
antlir/bzl/image_actions/tarball.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
antlir/bzl/image_actions/tarball.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. load("//antlir/bzl:maybe_export_file.bzl", "maybe_export_file") load("//antlir/bzl:shape.bzl", "shape") load( "//antlir/bzl:target_tagger....
34.52
110
0.685979
239
1,726
4.711297
0.380753
0.085258
0.063943
0.031972
0.10302
0.053286
0
0
0
0
0
0
0.206837
1,726
49
111
35.22449
0.822498
0.406721
0
0.066667
0
0
0.246792
0.208292
0
0
0
0
0
1
0.033333
false
0
0
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
727d45160be9a8707217c7303a6e3540147bb34c
457
py
Python
submit.py
young-geng/UVaClient
8ff4a368ac8f0395248292a0d903047a074752ed
[ "BSD-2-Clause" ]
2
2017-09-07T07:01:53.000Z
2018-04-26T08:08:12.000Z
submit.py
young-geng/UVaClient
8ff4a368ac8f0395248292a0d903047a074752ed
[ "BSD-2-Clause" ]
null
null
null
submit.py
young-geng/UVaClient
8ff4a368ac8f0395248292a0d903047a074752ed
[ "BSD-2-Clause" ]
null
null
null
import requests from sys import stderr import re def submit(session, problem_id, language, source): language_code = { 'c': 1, 'java': 2, 'c++': 3, 'pascal': 4, 'c++11': 5 } url = "http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=25&page=save_submission" data = { 'problemid': '', ...
19.041667
99
0.641138
60
457
4.783333
0.7
0.125436
0.118467
0
0
0
0
0
0
0
0
0.024064
0.181619
457
23
100
19.869565
0.743316
0
0
0
0
0.05
0.317982
0
0
0
0
0
0
1
0.05
false
0
0.15
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
727ddb1308f9ba28efd3e85b5a607205219bd3f3
5,028
py
Python
FIGURE4/eddymoc_scripts/noresm_cesm_eddymoc_150yrs.py
adagj/ECS_SOconvection
d1bb935b37380f11e021a463c6a807d7527220a6
[ "MIT" ]
1
2021-11-26T00:29:28.000Z
2021-11-26T00:29:28.000Z
FIGURE4/eddymoc_scripts/noresm_cesm_eddymoc_150yrs.py
adagj/ECS_SOconvection
d1bb935b37380f11e021a463c6a807d7527220a6
[ "MIT" ]
null
null
null
FIGURE4/eddymoc_scripts/noresm_cesm_eddymoc_150yrs.py
adagj/ECS_SOconvection
d1bb935b37380f11e021a463c6a807d7527220a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Ada Gjermundsen year: 2019 - 2021 This script is used to calculate the eddy-induced overturning in CESM2 and NorESM2 (LM and MM) south of 50S for the CMIP experiments piControl and abrupt-4xCO2 after 150 the average time is 30 years The result is used in FIGU...
45.297297
202
0.666468
664
5,028
4.865964
0.295181
0.009285
0.01238
0.025998
0.179201
0.158465
0.095946
0.050139
0.050139
0.050139
0
0.024605
0.207836
5,028
110
203
45.709091
0.786593
0.063047
0
0.078652
0
0
0.176521
0.035304
0
0
0
0
0
1
0.078652
false
0
0.089888
0
0.235955
0.078652
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7280fea22c910a6288443234b126b5c1c0f5d8b9
4,161
py
Python
wings/planner.py
KnowledgeCaptureAndDiscovery/wings-client
af1d068f4adc07d9060afa94dc99e0b2565be088
[ "Apache-2.0" ]
null
null
null
wings/planner.py
KnowledgeCaptureAndDiscovery/wings-client
af1d068f4adc07d9060afa94dc99e0b2565be088
[ "Apache-2.0" ]
8
2019-07-28T17:04:38.000Z
2019-08-06T23:57:08.000Z
wings/planner.py
KnowledgeCaptureAndDiscovery/wings-client
af1d068f4adc07d9060afa94dc99e0b2565be088
[ "Apache-2.0" ]
1
2019-07-29T22:53:41.000Z
2019-07-29T22:53:41.000Z
import json import re class Planner(object): def __init__(self, api_client): self.api_client = api_client def set_template(self, template): self.wflowns = self.api_client.get_export_url() + "workflows/" + template + ".owl#" self.wflowid = self.wflowns + template def _set_binding...
37.827273
93
0.550829
426
4,161
5.225352
0.274648
0.056604
0.075921
0.028751
0.182839
0.113657
0.09434
0.09434
0.048518
0.048518
0
0.005392
0.331411
4,161
109
94
38.174312
0.794752
0
0
0.132653
0
0
0.112233
0.010334
0
0
0
0
0
1
0.071429
false
0
0.030612
0
0.153061
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7283a25bff5f7d4878aa3e626f36db48a3d5a96f
1,065
py
Python
scripts/run_d435.py
suet-lee/mycelium
db83cd3ab00697f28b2def2cebcdef52698fdd92
[ "Apache-2.0" ]
6
2021-05-23T17:36:02.000Z
2022-01-21T20:34:17.000Z
scripts/run_d435.py
suet-lee/mycelium
db83cd3ab00697f28b2def2cebcdef52698fdd92
[ "Apache-2.0" ]
null
null
null
scripts/run_d435.py
suet-lee/mycelium
db83cd3ab00697f28b2def2cebcdef52698fdd92
[ "Apache-2.0" ]
1
2021-06-17T20:35:10.000Z
2021-06-17T20:35:10.000Z
#!/usr/bin/env python3 from mycelium import CameraD435 from mycelium_utils import Scripter class ScripterExt(Scripter): def run_main(self): self.camera = CameraD435( configuration_mode=self.cfg.d435['configuration_mode'], enable_rgb_stream=self.cfg.d435['enable_rgb_stream'], ...
29.583333
75
0.661033
131
1,065
5.083969
0.358779
0.073574
0.115616
0.076577
0.33033
0.132132
0.132132
0.132132
0.132132
0
0
0.039312
0.235681
1,065
35
76
30.428571
0.77887
0.019718
0
0.08
0
0
0.130393
0.021093
0
0
0
0
0
1
0.16
false
0.04
0.08
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
7285e9ab42c1215b9cfd19e9d7ea2bd99678e38c
2,789
py
Python
evology/research/MCarloLongRuns/Exp1_WSvsReturn.py
aymericvie/evology
8f00d94dee7208be5a5bdd0375a9d6ced25097f4
[ "Apache-2.0" ]
null
null
null
evology/research/MCarloLongRuns/Exp1_WSvsReturn.py
aymericvie/evology
8f00d94dee7208be5a5bdd0375a9d6ced25097f4
[ "Apache-2.0" ]
2
2022-01-10T02:10:56.000Z
2022-01-14T03:41:42.000Z
evology/research/MCarloLongRuns/Exp1_WSvsReturn.py
aymericvie/evology
8f00d94dee7208be5a5bdd0375a9d6ced25097f4
[ "Apache-2.0" ]
null
null
null
# Imports import numpy as np import pandas as pd import sys import tqdm import warnings import time import ternary from ternary.helpers import simplex_iterator import multiprocessing as mp warnings.simplefilter("ignore") if sys.platform == "darwin": sys.path.append("/Users/aymericvie/Documents/GitHub/evology/evol...
24.043103
78
0.570097
345
2,789
4.489855
0.388406
0.042608
0.028405
0.037444
0.077469
0.034861
0.034861
0
0
0
0
0.018556
0.285048
2,789
115
79
24.252174
0.758275
0.048404
0
0.022472
0
0
0.143667
0.038563
0
0
0
0
0
1
0.033708
false
0
0.11236
0
0.191011
0.05618
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72881bbcc670bbaede8d42280fea146e0bccefea
702
py
Python
piglatin_microservice/views/main.py
Curly-Mo/piglatin
9ea4a7533675bcb5b28f708beda18f175e0a9fe4
[ "MIT" ]
null
null
null
piglatin_microservice/views/main.py
Curly-Mo/piglatin
9ea4a7533675bcb5b28f708beda18f175e0a9fe4
[ "MIT" ]
null
null
null
piglatin_microservice/views/main.py
Curly-Mo/piglatin
9ea4a7533675bcb5b28f708beda18f175e0a9fe4
[ "MIT" ]
null
null
null
from flask import request, jsonify, Blueprint from .. import piglatin main = Blueprint('main', __name__) @main.route('/', methods=['GET', 'POST']) def index(): response = """ Please use the endpoint /translate to access this api. Usage: "{}translate?text=Translate+this+text+into+Piglatin." ...
23.4
68
0.650997
84
702
5.369048
0.488095
0.086475
0.075388
0
0
0
0
0
0
0
0
0.010638
0.196581
702
29
69
24.206897
0.789007
0
0
0
0
0
0.277778
0.075499
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.368421
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7289763d0bdfbe7696c866a5439b0ea41f2358eb
1,240
py
Python
projects/pong-game/pong.py
sumanentc/Python-Projects
11c763fcbe4e088928bd56c28f767b93ae73984d
[ "MIT" ]
null
null
null
projects/pong-game/pong.py
sumanentc/Python-Projects
11c763fcbe4e088928bd56c28f767b93ae73984d
[ "MIT" ]
null
null
null
projects/pong-game/pong.py
sumanentc/Python-Projects
11c763fcbe4e088928bd56c28f767b93ae73984d
[ "MIT" ]
null
null
null
from turtle import Screen from paddle import Paddle from ball import Ball import time from scoreboard import ScoreBoard screen = Screen() screen.bgcolor('black') screen.setup(width=800, height=600) screen.title('pong') # Turn off animation to show paddle after it has been shifted screen.tracer(0) right_paddle = Pad...
22.962963
68
0.679032
185
1,240
4.416216
0.416216
0.053856
0.03672
0.039168
0.286414
0.171359
0.117503
0.117503
0.117503
0.117503
0
0.037336
0.200806
1,240
53
69
23.396226
0.787084
0.135484
0
0.055556
0
0
0.015947
0
0
0
0
0
0
1
0
false
0
0.138889
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728a356d657b32fde675735de36842cf48062bf3
1,579
py
Python
ExPy/ExPy/module20.py
brad-h/expy
d3f3dfbbdae31ab8c7e134a5ce9d5f6adf94b516
[ "MIT" ]
null
null
null
ExPy/ExPy/module20.py
brad-h/expy
d3f3dfbbdae31ab8c7e134a5ce9d5f6adf94b516
[ "MIT" ]
null
null
null
ExPy/ExPy/module20.py
brad-h/expy
d3f3dfbbdae31ab8c7e134a5ce9d5f6adf94b516
[ "MIT" ]
null
null
null
""" Multistate Sales Tax Calculator """ import os from decimal import Decimal from decimal import InvalidOperation def prompt_decimal(prompt): """ Using the prompt, attempt to get a decimal from the user """ while True: try: return Decimal(input(prompt)) except InvalidOperation: ...
25.467742
68
0.609246
206
1,579
4.592233
0.359223
0.059197
0.035941
0.023256
0.027484
0
0
0
0
0
0
0.024765
0.258391
1,579
61
69
25.885246
0.783091
0.181127
0
0
0
0
0.173494
0
0
0
0
0
0
1
0.073171
false
0
0.073171
0
0.195122
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728a6a081e2856ad1af42a97ac6d7dc3898ac287
2,650
py
Python
pyvdms/util/verify.py
psmsmets/pyVDMS
cb3db93b655d3a02ae3aa1fdd418ae70dd249271
[ "MIT" ]
1
2020-04-22T14:38:23.000Z
2020-04-22T14:38:23.000Z
pyvdms/util/verify.py
psmsmets/PyVDMS
cb3db93b655d3a02ae3aa1fdd418ae70dd249271
[ "MIT" ]
null
null
null
pyvdms/util/verify.py
psmsmets/PyVDMS
cb3db93b655d3a02ae3aa1fdd418ae70dd249271
[ "MIT" ]
null
null
null
r""" :mod:`util.verify` -- Input verification ======================================== Common input verification methods. """ # Mandatory imports import numpy as np __all__ = ['verify_tuple_range'] def verify_tuple_range( input_range: tuple, allow_none: bool = True, name: str = None, step: bool = None, ...
30.45977
78
0.570189
366
2,650
4.065574
0.213115
0.100806
0.050403
0.063844
0.334677
0.200941
0.112903
0.040323
0
0
0
0.006904
0.289434
2,650
86
79
30.813953
0.783324
0.103774
0
0.172414
0
0
0.190009
0
0
0
0
0
0
1
0.017241
false
0
0.017241
0
0.068966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728cb69af3c08ef7582f9c410b1fc5f27c722c62
2,349
py
Python
api/image_similarity.py
reneraab/librephotos
a3972ab520586e721c67f283b1a50ccb7abe2b01
[ "MIT" ]
null
null
null
api/image_similarity.py
reneraab/librephotos
a3972ab520586e721c67f283b1a50ccb7abe2b01
[ "MIT" ]
null
null
null
api/image_similarity.py
reneraab/librephotos
a3972ab520586e721c67f283b1a50ccb7abe2b01
[ "MIT" ]
null
null
null
import numpy as np import requests from django.db.models import Q from api.models import Photo, User from api.util import logger from ownphotos.settings import IMAGE_SIMILARITY_SERVER def search_similar_embedding(user, emb, result_count=100, threshold=27): if type(user) == int: user_id = user else: ...
29
87
0.648361
289
2,349
5.055363
0.259516
0.053388
0.047912
0.041068
0.463381
0.429158
0.344285
0.327173
0.327173
0.327173
0
0.009524
0.240102
2,349
80
88
29.3625
0.808964
0
0
0.384615
0
0
0.116645
0
0
0
0
0
0
1
0.046154
false
0
0.092308
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728d2b759b651322512d149b383118385699c3b6
621
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/struct/struct_endianness.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/struct/struct_endianness.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/struct/struct_endianness.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# """ """ # end_pymotw_header import struct import binascii values = (1, "ab".encode("utf-8"), 2.7) print("Original values:", values) endianness = [ ("@", "native, native"), ("=", "native, standard"), ("<", "little-endian"), (">", "big-endian"), ("!", "network"), ] for code, name in endianness:...
21.413793
60
0.566828
73
621
4.753425
0.589041
0.086455
0
0
0
0
0
0
0
0
0
0.010267
0.215781
621
28
61
22.178571
0.702259
0.027375
0
0
0
0
0.281145
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0.315789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728dfcc1ec3bf1913efacef3f37dc134c73588dd
7,307
py
Python
pydov/util/net.py
GuillaumeVandekerckhove/pydov
b51f77bf93d1f9e96dd39edf564d95426da04126
[ "MIT" ]
32
2017-03-17T16:36:40.000Z
2022-02-18T13:10:50.000Z
pydov/util/net.py
GuillaumeVandekerckhove/pydov
b51f77bf93d1f9e96dd39edf564d95426da04126
[ "MIT" ]
240
2017-01-03T12:32:15.000Z
2022-03-30T11:52:02.000Z
pydov/util/net.py
GuillaumeVandekerckhove/pydov
b51f77bf93d1f9e96dd39edf564d95426da04126
[ "MIT" ]
17
2017-01-09T21:00:36.000Z
2022-03-01T15:04:21.000Z
# -*- coding: utf-8 -*- """Module grouping network-related utilities and functions.""" from queue import Empty, Queue from threading import Thread import requests import urllib3 from requests.adapters import HTTPAdapter import pydov request_timeout = 300 class TimeoutHTTPAdapter(HTTPAdapter): """HTTPAdapter w...
28.542969
79
0.569454
824
7,307
4.974515
0.283981
0.026836
0.027324
0.010246
0.109295
0.100512
0.088802
0.088802
0.065382
0.032203
0
0.008051
0.337074
7,307
255
80
28.654902
0.83815
0.407281
0
0.131313
0
0
0.030378
0
0
0
0
0
0
1
0.161616
false
0.010101
0.060606
0
0.313131
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728ed3b7ad18763967710681b9cc5dc917ab6fd6
11,470
py
Python
SBOL2Excel/utils/sbol2excel.py
abamaj/SBOL-to-Excel
790ef5242990c06b20dcb8e207def8e4527aea02
[ "BSD-3-Clause" ]
null
null
null
SBOL2Excel/utils/sbol2excel.py
abamaj/SBOL-to-Excel
790ef5242990c06b20dcb8e207def8e4527aea02
[ "BSD-3-Clause" ]
null
null
null
SBOL2Excel/utils/sbol2excel.py
abamaj/SBOL-to-Excel
790ef5242990c06b20dcb8e207def8e4527aea02
[ "BSD-3-Clause" ]
null
null
null
import sbol2 import pandas as pd import os import logging from openpyxl import load_workbook from openpyxl.worksheet.table import Table, TableStyleInfo from openpyxl.utils.dataframe import dataframe_to_rows from openpyxl.styles import Font, PatternFill, Border, Side from requests_html import HTMLSession #wasderivedfro...
38.619529
124
0.588317
1,268
11,470
5.260252
0.265773
0.022789
0.011244
0.008996
0.244678
0.233883
0.206147
0.189955
0.175262
0.175262
0
0.01181
0.320837
11,470
296
125
38.75
0.844416
0.269486
0
0.15508
0
0.005348
0.084701
0.009894
0
0
0
0
0
1
0.085562
false
0.005348
0.048128
0.005348
0.192513
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728f92f6b83a6233b200b60652e9836df6ba2fba
17,145
py
Python
ocean_lib/models/data_token.py
akshay-ap/ocean.py
1dab70d164ca36a6cff284e8be82ae04344ad13f
[ "Apache-2.0" ]
null
null
null
ocean_lib/models/data_token.py
akshay-ap/ocean.py
1dab70d164ca36a6cff284e8be82ae04344ad13f
[ "Apache-2.0" ]
null
null
null
ocean_lib/models/data_token.py
akshay-ap/ocean.py
1dab70d164ca36a6cff284e8be82ae04344ad13f
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # import json import os import time from collections import namedtuple import requests from eth_utils import remove_0x_prefix from ocean_lib.data_provider.data_service_provider import DataServiceProvider from ocean_lib.enforce_typing_sh...
36.324153
120
0.602858
2,018
17,145
4.886521
0.156095
0.020282
0.01582
0.020282
0.2662
0.189332
0.12017
0.084576
0.060744
0.047358
0
0.013726
0.298863
17,145
471
121
36.401274
0.806588
0.038903
0
0.159269
0
0
0.130564
0.027183
0
0
0.001581
0
0.044386
1
0.093995
false
0
0.046997
0.060052
0.263708
0.005222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
728fbc5bfc6f1e3c71f6dc0d49a88fbd6f828cf5
18,655
py
Python
cgmodsel/prox.py
chrlen/cgmodsel
1d7336e173289468d55897b1aa044bf98c3c1a6b
[ "MIT" ]
null
null
null
cgmodsel/prox.py
chrlen/cgmodsel
1d7336e173289468d55897b1aa044bf98c3c1a6b
[ "MIT" ]
null
null
null
cgmodsel/prox.py
chrlen/cgmodsel
1d7336e173289468d55897b1aa044bf98c3c1a6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Frank Nussbaum (frank.nussbaum@uni-jena.de), 2019 """ import numpy as np #import scipy #import abc #import time from scipy.optimize import approx_fprime from scipy.linalg import eigh from scipy import optimize from cgmodsel.utils import _logsumexp_condprob...
38.071429
114
0.557438
2,584
18,655
3.828947
0.164861
0.012432
0.016374
0.015767
0.312412
0.255407
0.240752
0.228623
0.219426
0.193046
0
0.010336
0.305012
18,655
489
115
38.149284
0.752796
0.23554
0
0.270833
0
0
0.031859
0.002575
0
0
0
0.00409
0
1
0.048611
false
0
0.020833
0
0.114583
0.024306
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7290644aa942c45a2f6b6c965febcc5dc6a44a31
17,758
py
Python
openmdao.main/src/openmdao/main/linearsolver.py
MrShoks/OpenMDAO-Framework
412f34ffe31a95631fbe55ca7d75b84669ae8f8c
[ "Apache-2.0" ]
1
2020-06-28T20:38:56.000Z
2020-06-28T20:38:56.000Z
openmdao.main/src/openmdao/main/linearsolver.py
MrShoks/OpenMDAO-Framework
412f34ffe31a95631fbe55ca7d75b84669ae8f8c
[ "Apache-2.0" ]
null
null
null
openmdao.main/src/openmdao/main/linearsolver.py
MrShoks/OpenMDAO-Framework
412f34ffe31a95631fbe55ca7d75b84669ae8f8c
[ "Apache-2.0" ]
null
null
null
""" Linear solvers that are used to solve for the gradient of an OpenMDAO System. (Not to be confused with the OpenMDAO Solver classes.) """ # pylint: disable=E0611, F0401 import numpy as np from scipy.sparse.linalg import gmres, LinearOperator from openmdao.main.mpiwrap import MPI from openmdao.util.graph import fix...
35.374502
121
0.508954
2,029
17,758
4.341055
0.136028
0.037239
0.036217
0.048252
0.584582
0.513965
0.472071
0.434151
0.40361
0.40361
0
0.007461
0.373578
17,758
501
122
35.44511
0.78434
0.207456
0
0.556667
0
0
0.02513
0
0
0
0
0.003992
0
1
0.05
false
0.003333
0.02
0
0.116667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7290f4e2e5f1b65887b615200ae0e5b25c830766
4,134
py
Python
src/transform.py
Andres-CS/wallet-analysis
822b8b900a91ab7a2fd76743f174d320e45e98c9
[ "Apache-2.0" ]
null
null
null
src/transform.py
Andres-CS/wallet-analysis
822b8b900a91ab7a2fd76743f174d320e45e98c9
[ "Apache-2.0" ]
null
null
null
src/transform.py
Andres-CS/wallet-analysis
822b8b900a91ab7a2fd76743f174d320e45e98c9
[ "Apache-2.0" ]
null
null
null
import csv import re ''' Delete char in substring of original string. Used this function when, you want to delete a character in a substring but not in the rest of the original string. Returns a string -- PARAMETERS -- text: original string start: start of subString end: end of subString char: char to delete,...
20.773869
85
0.647315
601
4,134
4.429285
0.324459
0.031931
0.006762
0.018032
0.06311
0.029301
0
0
0
0
0
0.013049
0.184325
4,134
198
86
20.878788
0.776394
0.01911
0
0.057471
0
0
0.149533
0.044486
0
0
0
0
0
1
0.08046
false
0
0.022989
0
0.183908
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72911e6ae35f06f9d987c47bf7d9ffd692afda2e
672
py
Python
game/views/credits_view.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
null
null
null
game/views/credits_view.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
null
null
null
game/views/credits_view.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
null
null
null
import arcade from .menu_view import MenuView TEXT_COLOR = arcade.csscolor.WHITE class CreditsView(MenuView): def __init__(self, parent_view): super().__init__() self.parent_view = parent_view def on_draw(self): arcade.start_render() arcade.draw_text( "Credits",...
22.4
67
0.596726
80
672
4.7
0.5375
0.106383
0.111702
0.095745
0
0
0
0
0
0
0
0.012848
0.30506
672
29
68
23.172414
0.792291
0
0
0
0
0
0.019345
0
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0