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
13a4eaea9e2402891521cc56201ae27b7976fb0d
4,794
py
Python
src/ezdxf/math/bulge.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
src/ezdxf/math/bulge.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
src/ezdxf/math/bulge.py
dmtvanzanten/ezdxf
6fe9d0aa961e011c87768aa6511256de21a662dd
[ "MIT" ]
null
null
null
# Copyright (c) 2018-2021 Manfred Moitzi # License: MIT License # source: http://www.lee-mac.com/bulgeconversion.html # source: http://www.afralisp.net/archive/lisp/Bulges1.htm from typing import Any, TYPE_CHECKING, Tuple import math from ezdxf.math import Vec2 if TYPE_CHECKING: from ezdxf.eztypes import Vertex _...
32.391892
79
0.629954
643
4,794
4.553655
0.169518
0.099044
0.048839
0.093238
0.416325
0.406421
0.338456
0.304645
0.183743
0.183743
0
0.016676
0.261994
4,794
147
80
32.612245
0.81091
0.440968
0
0.040816
0
0
0.061703
0
0
0
0
0
0
1
0.163265
false
0
0.081633
0.020408
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13a54ea2fa4b8b8724c32c2f486041ebcedd4707
33,005
py
Python
mypython/keys.py
asmeurer/mypython
ae984926739cc2bb3abe70566762d7b4052ed0ae
[ "MIT" ]
27
2017-02-09T06:18:30.000Z
2022-02-16T08:32:42.000Z
mypython/keys.py
asmeurer/mypython
ae984926739cc2bb3abe70566762d7b4052ed0ae
[ "MIT" ]
1
2022-01-20T20:23:41.000Z
2022-01-20T20:23:41.000Z
mypython/keys.py
asmeurer/mypython
ae984926739cc2bb3abe70566762d7b4052ed0ae
[ "MIT" ]
2
2019-12-14T06:45:04.000Z
2021-10-04T00:28:48.000Z
from prompt_toolkit.key_binding.bindings.named_commands import (accept_line, self_insert, backward_delete_char, beginning_of_line) from prompt_toolkit.key_binding.bindings.basic import if_no_repeat from prompt_toolkit.key_binding.bindings.basic import load_basic_bindings from prompt_toolkit.key_binding.bindings.ema...
34.344433
117
0.676988
4,436
33,005
4.838819
0.124211
0.071745
0.067086
0.040531
0.475611
0.40191
0.339716
0.308083
0.266853
0.252923
0
0.007133
0.218391
33,005
960
118
34.380208
0.824902
0.153371
0
0.360305
0
0.001527
0.050879
0.005484
0
0
0
0.003125
0
1
0.08855
false
0.001527
0.041221
0.001527
0.160305
0.006107
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13a5765c2edbddbec6f546bc1dadb0d5693914fe
10,909
py
Python
demand/preday_model_estimation/isg.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
50
2018-12-21T08:21:38.000Z
2022-01-24T09:47:59.000Z
demand/preday_model_estimation/isg.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
2
2018-12-19T13:42:47.000Z
2019-05-13T04:11:45.000Z
demand/preday_model_estimation/isg.py
gusugusu1018/simmobility-prod
d30a5ba353673f8fd35f4868c26994a0206a40b6
[ "MIT" ]
27
2018-11-28T07:30:34.000Z
2022-02-05T02:22:26.000Z
from biogeme import * from headers import * from loglikelihood import * from statistics import * from nested import * #import random cons_work= Beta('cons for work', 0,-10,10,0) cons_edu = Beta('cons for education',0,-50,10,0) cons_shopping = Beta('cons for shopping',0,-10,10,0) cons_...
26.098086
94
0.735356
2,047
10,909
3.641426
0.06595
0.038235
0.063724
0.049906
0.609471
0.479206
0.294741
0.090555
0.031393
0
0
0.130453
0.121643
10,909
418
95
26.098086
0.647464
0.009533
0
0
0
0
0.244269
0.002023
0
0
0
0
0
1
0
false
0.037559
0.023474
0
0.023474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13a8c046daa5c36fb60a09676a0be10c4e57fb9f
4,227
py
Python
code/prisonersDilemma.py
ben9583/PrisonersDilemmaTournament
8227c05f835c93a0b30feb4207a7d7c631e670a0
[ "MIT" ]
1
2021-09-16T03:38:21.000Z
2021-09-16T03:38:21.000Z
code/prisonersDilemma.py
ben9583/PrisonersDilemmaTournament
8227c05f835c93a0b30feb4207a7d7c631e670a0
[ "MIT" ]
null
null
null
code/prisonersDilemma.py
ben9583/PrisonersDilemmaTournament
8227c05f835c93a0b30feb4207a7d7c631e670a0
[ "MIT" ]
null
null
null
import os import itertools import importlib import numpy as np import random STRATEGY_FOLDER = "exampleStrats" RESULTS_FILE = "results.txt" pointsArray = [[1,5],[0,3]] # The i-j-th element of this array is how many points you receive if you do play i, and your opponent does play j. moveLabels = ["D","C"] #...
37.078947
210
0.62503
543
4,227
4.813996
0.35175
0.041316
0.013772
0.00306
0.109411
0.085692
0.018363
0
0
0
0
0.018647
0.251479
4,227
113
211
37.40708
0.807522
0.178377
0
0.02439
0
0
0.06844
0
0
0
0
0
0
1
0.073171
false
0
0.085366
0
0.207317
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13aef1dee9a4b31316309780ab660b17ad23d9b2
1,285
py
Python
docs/buildscripts/docs.py
cwlalyy/mongo-c-driver
d771be13bc8f7d8b84d233de6fdc725d9bb337cc
[ "Apache-2.0" ]
13
2016-07-14T16:36:59.000Z
2018-06-01T18:06:14.000Z
docs/buildscripts/docs.py
cwlalyy/mongo-c-driver
d771be13bc8f7d8b84d233de6fdc725d9bb337cc
[ "Apache-2.0" ]
null
null
null
docs/buildscripts/docs.py
cwlalyy/mongo-c-driver
d771be13bc8f7d8b84d233de6fdc725d9bb337cc
[ "Apache-2.0" ]
9
2015-01-26T09:30:41.000Z
2016-03-15T14:48:18.000Z
"""Build the C client docs. """ from __future__ import with_statement import os import shutil import socket import subprocess import time import urllib2 def clean_dir(dir): try: shutil.rmtree(dir) except: pass os.makedirs(dir) def gen_api(dir): clean_dir(dir) clean_dir("docs/sourc...
22.155172
79
0.636576
173
1,285
4.601156
0.369942
0.062814
0.041457
0.035176
0.213568
0.095477
0.095477
0.095477
0.095477
0
0
0.001974
0.211673
1,285
57
80
22.54386
0.78381
0.056031
0
0.102564
0
0
0.2425
0.068333
0
0
0
0
0
1
0.128205
false
0.025641
0.179487
0
0.333333
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13afb94123467877efe58458ed4c502384fb753b
1,921
py
Python
tilegame/render/rs.py
defgsus/thegame
38a627d9108f1418b94b08831fd640dd87fbba83
[ "MIT" ]
1
2021-11-05T11:49:26.000Z
2021-11-05T11:49:26.000Z
tilegame/render/rs.py
defgsus/thegame
38a627d9108f1418b94b08831fd640dd87fbba83
[ "MIT" ]
null
null
null
tilegame/render/rs.py
defgsus/thegame
38a627d9108f1418b94b08831fd640dd87fbba83
[ "MIT" ]
null
null
null
import glm import math from lib.opengl import RenderSettings class GameProjection: def __init__(self, rs: "GameRenderSettings"): self.rs = rs self.scale = 10. self.rotation_deg = 0. self.location = glm.vec3(0) self._stack = [] def projection_matrix_4(self) -> glm.mat...
26.315068
90
0.563248
252
1,921
4.111111
0.261905
0.081081
0.072394
0.027027
0.086873
0
0
0
0
0
0
0.035503
0.2962
1,921
72
91
26.680556
0.730769
0
0
0.052632
0
0
0.031234
0
0
0
0
0
0
1
0.175439
false
0
0.052632
0
0.350877
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13afbf984a23501bfd2bc3f3a3b28ed6375a3779
4,865
py
Python
tools/stats/export_slow_tests.py
stungkit/pytorch
0f05e398705bf15406bce79f7ee57d3935ad2abd
[ "Intel" ]
2
2020-03-13T06:57:49.000Z
2020-05-17T04:18:14.000Z
tools/stats/export_slow_tests.py
ellhe-blaster/pytorch
e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25
[ "Intel" ]
1
2022-01-10T18:39:28.000Z
2022-01-10T19:15:57.000Z
tools/stats/export_slow_tests.py
ellhe-blaster/pytorch
e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25
[ "Intel" ]
1
2022-03-26T14:42:50.000Z
2022-03-26T14:42:50.000Z
#!/usr/bin/env python3 import argparse import json import os import statistics from collections import defaultdict from tools.stats.s3_stat_parser import ( get_previous_reports_for_branch, Report, Version2Report, ) from typing import cast, DefaultDict, Dict, List, Any from urllib.request import urlopen SL...
36.856061
127
0.658787
634
4,865
4.805994
0.318612
0.050213
0.031506
0.029537
0.09255
0.022973
0.022973
0.022973
0
0
0
0.005426
0.242343
4,865
131
128
37.137405
0.821215
0.072148
0
0.076923
0
0.038462
0.196805
0.025072
0
0
0
0
0
1
0.067308
false
0
0.076923
0.009615
0.211538
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b0a600d04c4f624b452b2451a329662c1e6704
14,128
py
Python
ml/rl/evaluation/weighted_sequential_doubly_robust_estimator.py
michaeltashman/Horizon
ee310b34adeb807bbae379a6e1703d0f725f26a9
[ "BSD-3-Clause" ]
1
2020-07-30T06:15:20.000Z
2020-07-30T06:15:20.000Z
ml/rl/evaluation/weighted_sequential_doubly_robust_estimator.py
michaeltashman/Horizon
ee310b34adeb807bbae379a6e1703d0f725f26a9
[ "BSD-3-Clause" ]
null
null
null
ml/rl/evaluation/weighted_sequential_doubly_robust_estimator.py
michaeltashman/Horizon
ee310b34adeb807bbae379a6e1703d0f725f26a9
[ "BSD-3-Clause" ]
1
2019-06-05T15:52:18.000Z
2019-06-05T15:52:18.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import itertools import logging import numpy as np import scipy as sp import torch from ml.rl.evaluation.cpe import CpeEstimate from ml.rl.evaluation.evaluation_data_page import EvaluationDataPage logger = logging.getLogg...
37.674667
106
0.613675
1,477
14,128
5.49763
0.163846
0.098399
0.03202
0.041872
0.41835
0.29803
0.250739
0.22266
0.22266
0.178941
0
0.011646
0.313208
14,128
374
107
37.775401
0.825209
0.046928
0
0.232484
0
0
0.001119
0
0
0
0
0
0
1
0.028662
false
0
0.136943
0.003185
0.213376
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b20f00d86e94eb5e2fb0079121846394df7d95
5,255
py
Python
src/wspc/feature_selection.py
shakedna1/wspc_rep
f4492af8cec25a3f7b00687c08d30754a1c0c91f
[ "MIT" ]
null
null
null
src/wspc/feature_selection.py
shakedna1/wspc_rep
f4492af8cec25a3f7b00687c08d30754a1c0c91f
[ "MIT" ]
null
null
null
src/wspc/feature_selection.py
shakedna1/wspc_rep
f4492af8cec25a3f7b00687c08d30754a1c0c91f
[ "MIT" ]
null
null
null
import numpy as np import sklearn import pandas as pd import scipy.spatial.distance as ssd from scipy.cluster import hierarchy from scipy.stats import chi2_contingency from sklearn.base import BaseEstimator from sklearn.ensemble import RandomForestClassifier from sklearn.feature_extraction.text import CountVectorizer f...
33.259494
120
0.664891
621
5,255
5.444444
0.297907
0.041408
0.024845
0.024845
0.069506
0.033126
0.033126
0.033126
0.033126
0.033126
0
0.00536
0.254424
5,255
157
121
33.471338
0.85758
0.350714
0
0
0
0
0.039016
0.025902
0
0
0
0
0
1
0.135593
false
0
0.186441
0
0.440678
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b2ef5da8cb4bdd6ae2ffffe9632e5405ed5cb0
5,985
py
Python
Python3/PS_scraping_selenium.py
fsj-digital/pages
8360f27e67974ed2b4f39eb64377f39c0189a224
[ "MIT" ]
5
2019-10-28T19:09:16.000Z
2021-08-19T07:44:54.000Z
Python3/PS_scraping_selenium.py
fsj-digital/pages
8360f27e67974ed2b4f39eb64377f39c0189a224
[ "MIT" ]
null
null
null
Python3/PS_scraping_selenium.py
fsj-digital/pages
8360f27e67974ed2b4f39eb64377f39c0189a224
[ "MIT" ]
6
2020-04-28T22:33:06.000Z
2021-06-22T15:53:52.000Z
from bs4 import BeautifulSoup import requests import re from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.by import By from selenium import webdriver from seleni...
43.057554
143
0.637594
677
5,985
5.511078
0.264402
0.028947
0.037523
0.0394
0.491289
0.472259
0.372018
0.372018
0.372018
0.356741
0
0.010379
0.259482
5,985
138
144
43.369565
0.831453
0.1066
0
0.46875
0
0
0.162944
0.02966
0
0
0
0
0
1
0.023438
false
0
0.101563
0
0.132813
0.085938
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b41f50da86c6a2be3204ada5e6385e678b7b05
5,531
py
Python
AppTest/testTCPserver.py
STRATOLOGIC/SpacePyLibrary
89fc3873c6d787ad4e391f6080d9dd3218ffc4a2
[ "MIT" ]
22
2015-01-22T13:40:22.000Z
2022-02-19T02:03:12.000Z
AppTest/testTCPserver.py
STRATOLOGIC/SpacePyLibrary
89fc3873c6d787ad4e391f6080d9dd3218ffc4a2
[ "MIT" ]
3
2018-09-28T13:14:40.000Z
2022-02-08T14:19:13.000Z
AppTest/testTCPserver.py
STRATOLOGIC/SpacePyLibrary
89fc3873c6d787ad4e391f6080d9dd3218ffc4a2
[ "MIT" ]
11
2016-06-01T11:53:56.000Z
2022-02-08T14:19:34.000Z
#!/usr/bin/env python3 #****************************************************************************** # (C) 2018, Stefan Korner, Austria * # * # The Space Python Library is free software; you can redi...
39.22695
83
0.513108
529
5,531
5.3138
0.385633
0.01921
0.019922
0.024191
0.16471
0.139808
0.109925
0.088225
0.088225
0.088225
0
0.007203
0.246972
5,531
140
84
39.507143
0.667707
0.503526
0
0.164384
0
0
0.088224
0
0
0
0
0
0
1
0.082192
false
0.013699
0.041096
0
0.178082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b42a597f46ffd75065d8212ea8951934240d0a
9,253
py
Python
tests/clientlib_test.py
yoavcaspi/pre-commit
77947f212e7b88a479dbe6feebc60a9f773e8c13
[ "MIT" ]
null
null
null
tests/clientlib_test.py
yoavcaspi/pre-commit
77947f212e7b88a479dbe6feebc60a9f773e8c13
[ "MIT" ]
null
null
null
tests/clientlib_test.py
yoavcaspi/pre-commit
77947f212e7b88a479dbe6feebc60a9f773e8c13
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import logging import cfgv import pytest import pre_commit.constants as C from pre_commit.clientlib import check_type_tag from pre_commit.clientlib import CONFIG_HOOK_DICT from pre_commit.clientlib import CONFIG_REPO_DICT from pre_commit.clientlib import CONFIG_SCHEMA from pre...
29.189274
78
0.556576
1,016
9,253
4.84252
0.201772
0.04939
0.02378
0.040244
0.511382
0.394715
0.321138
0.263211
0.204675
0.172561
0
0.015342
0.302605
9,253
316
79
29.281646
0.747094
0.041392
0
0.433594
0
0
0.18262
0.041926
0
0
0
0
0.070313
1
0.089844
false
0.007813
0.058594
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b520f65af9148fce1413d5d355fa797126e985
5,494
py
Python
ikalog/ui/options.py
fetus-hina/IkaLog
bd476da541fcc296f792d4db76a6b9174c4777ad
[ "Apache-2.0" ]
285
2015-08-15T14:38:38.000Z
2022-02-18T15:00:06.000Z
ikalog/ui/options.py
fetus-hina/IkaLog
bd476da541fcc296f792d4db76a6b9174c4777ad
[ "Apache-2.0" ]
323
2015-09-24T12:21:34.000Z
2018-05-06T16:34:54.000Z
ikalog/ui/options.py
fetus-hina/IkaLog
bd476da541fcc296f792d4db76a6b9174c4777ad
[ "Apache-2.0" ]
72
2015-08-22T00:18:54.000Z
2022-02-18T14:44:20.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # IkaLog # ====== # Copyright (C) 2015 Takeshi HASEGAWA # # 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/l...
32.508876
80
0.630142
697
5,494
4.760402
0.278336
0.03255
0.047016
0.018083
0.157324
0.118445
0.118445
0.066004
0.0434
0.0434
0
0.007323
0.279214
5,494
168
81
32.702381
0.830556
0.167455
0
0.083333
0
0
0.014741
0.005941
0
0
0
0
0
1
0.064815
false
0
0.074074
0
0.157407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b61f77d9db0538ba6a1a1c9673544d53143882
584
py
Python
setup.py
CyberTKR/Simple-LINELIB
8596afb6b201b13675a0ed6314b3151f6bbf208b
[ "BSD-3-Clause" ]
4
2022-02-20T11:27:29.000Z
2022-03-05T00:50:05.000Z
setup.py
CyberTKR/Simple-LINELIB
8596afb6b201b13675a0ed6314b3151f6bbf208b
[ "BSD-3-Clause" ]
null
null
null
setup.py
CyberTKR/Simple-LINELIB
8596afb6b201b13675a0ed6314b3151f6bbf208b
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", 'r',encoding="utf-8") as f: long_description = f.read() setup( name='LineBot', version='0.1.0', description='Simple-LINELIB', long_description=long_description, author='Tolg KR', author_email='tolgkr@cybertkr.com', url=...
25.391304
61
0.628425
68
584
5.279412
0.705882
0.125348
0
0
0
0
0
0
0
0
0
0.01919
0.196918
584
22
62
26.545455
0.746269
0
0
0
0
0
0.294521
0
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
13b64cfd2fd1152628636d4313ba611c18b0ee8d
4,552
py
Python
lib/SeparateDriver/CgwshDeviceDriverSetParameterECDB.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
lib/SeparateDriver/CgwshDeviceDriverSetParameterECDB.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
lib/SeparateDriver/CgwshDeviceDriverSetParameterECDB.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
1
2020-04-02T01:17:43.000Z
2020-04-02T01:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: CgwshDeviceDriverSetParameterECDB.py ''' Parameter module for Cgwsh driver configuration ''' import GlobalModule from EmCommonLog import decorater_log from DriverSetParameterECDB import Dr...
32.985507
79
0.530097
450
4,552
5.051111
0.228889
0.055433
0.040035
0.039595
0.273647
0.195337
0.133304
0.051474
0.051474
0.051474
0
0.00173
0.364895
4,552
137
80
33.226277
0.784504
0.185413
0
0.315068
0
0
0.138828
0
0
0
0
0
0
1
0.082192
false
0.027397
0.041096
0
0.191781
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b73188b11fd452c2465eac91ddbc3efbb01c8c
13,767
py
Python
scripts/common_lib/build_lib.py
Bhaskers-Blu-Org1/wc-devops-utilities
d8131261cb3d67ce872b541c5e2d8ff22fcbf614
[ "Apache-2.0" ]
15
2018-06-26T19:48:08.000Z
2021-01-18T13:29:16.000Z
scripts/common_lib/build_lib.py
Bhaskers-Blu-Org1/wc-devops-utilities
d8131261cb3d67ce872b541c5e2d8ff22fcbf614
[ "Apache-2.0" ]
16
2018-05-29T08:12:38.000Z
2022-02-15T15:25:14.000Z
scripts/common_lib/build_lib.py
IBM/wc-devops-utilities
d8131261cb3d67ce872b541c5e2d8ff22fcbf614
[ "Apache-2.0" ]
21
2018-05-29T11:54:05.000Z
2021-12-20T06:42:54.000Z
#!/usr/bin/env python3.6 import os import subprocess import json import argparse import zipfile import shutil import requests import datetime import re import operator import unicodedata # global list of error messages to keep track of all error msgs errorMessages = [] """ Collection of Common Functions used by Buil...
36.81016
145
0.648217
1,591
13,767
5.547454
0.226273
0.011897
0.01133
0.006798
0.220032
0.143666
0.116021
0.088149
0.081351
0.060956
0
0.001673
0.261713
13,767
373
146
36.908847
0.866686
0.39108
0
0.242775
0
0
0.09839
0.017772
0
0
0
0
0
1
0.086705
false
0
0.063584
0
0.225434
0.023121
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b7df8dc09a874c18b0de4987e789a5a8c1dfcd
10,035
py
Python
src/static_grasp_kt.py
ivalab/GraspKpNet
d4b6186d74ac82a745d778892742d52a204bd1cf
[ "MIT" ]
16
2021-05-04T23:08:47.000Z
2022-01-19T08:33:14.000Z
src/static_grasp_kt.py
ivalab/GraspKpNet
d4b6186d74ac82a745d778892742d52a204bd1cf
[ "MIT" ]
2
2021-06-22T22:54:44.000Z
2021-10-04T19:23:35.000Z
src/static_grasp_kt.py
ivalab/GraspKpNet
d4b6186d74ac82a745d778892742d52a204bd1cf
[ "MIT" ]
2
2021-07-10T12:51:29.000Z
2022-02-17T06:45:54.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import json import cv2 import cv2.aruco as aruco import numpy as np import sys import rospy from std_msgs.msg import Bool from std_msgs.msg import Float64MultiArray from sensor_ms...
34.249147
107
0.623019
1,558
10,035
3.801027
0.22914
0.010132
0.006079
0.006079
0.174941
0.125971
0.114488
0.050321
0.018575
0.018575
0
0.066293
0.252915
10,035
293
108
34.249147
0.723623
0.163528
0
0.059459
0
0
0.017741
0.009776
0
0
0
0
0
1
0.037838
false
0
0.124324
0
0.210811
0.016216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b8dc2efbc6e5399774e3bdb1583b1ec3d22dca
13,278
py
Python
source/utils/augmentations.py
dovietchinh/multi-task-classification
23a70300a7a800bc982f87902b6aa1faaf91b489
[ "RSA-MD" ]
null
null
null
source/utils/augmentations.py
dovietchinh/multi-task-classification
23a70300a7a800bc982f87902b6aa1faaf91b489
[ "RSA-MD" ]
null
null
null
source/utils/augmentations.py
dovietchinh/multi-task-classification
23a70300a7a800bc982f87902b6aa1faaf91b489
[ "RSA-MD" ]
null
null
null
import numpy as np import cv2 import random def preprocess(img,img_size,padding=True): """[summary] Args: img (np.ndarray): images img_size (int,list,tuple): target size. eg: 224 , (224,224) or [224,224] padding (bool): padding img before resize. Prevent from image distortion. Default...
42.694534
131
0.581865
1,689
13,278
4.407934
0.141504
0.07683
0.081666
0.045937
0.391135
0.324513
0.292814
0.292814
0.289993
0.285158
0
0.043883
0.279184
13,278
311
132
42.694534
0.733988
0.076141
0
0.348361
0
0
0.082111
0.002622
0
0
0
0
0
1
0.094262
false
0
0.016393
0.004098
0.204918
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13b9d127851e263bb83cf946e93cc967e190ce5a
453
py
Python
CalculatingPi/pi_linear_plot.py
davidmallasen/Hello_MPI
8a5b5694ffc1515d2bb2dee45355f92f1b68fbed
[ "MIT" ]
null
null
null
CalculatingPi/pi_linear_plot.py
davidmallasen/Hello_MPI
8a5b5694ffc1515d2bb2dee45355f92f1b68fbed
[ "MIT" ]
null
null
null
CalculatingPi/pi_linear_plot.py
davidmallasen/Hello_MPI
8a5b5694ffc1515d2bb2dee45355f92f1b68fbed
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np # Read data size = [] time = [] with open("pi_linear.txt") as file: for line in file.readlines(): x, y = line.split(',') size.append(int(x.strip())) time.append(float(y.strip())) # Plot data fig, ax = plt.subplots() ax.plot(size, tim...
19.695652
50
0.611479
69
453
3.985507
0.623188
0.087273
0
0
0
0
0
0
0
0
0
0
0.207506
453
22
51
20.590909
0.766017
0.06181
0
0
0
0
0.137767
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13bd80e7104701ce224a3004f95e9aa8f8c681e9
2,293
py
Python
myapp/processes/plotter.py
cp4cds/cp4cds-wps-template
ed170fcee72146dc07c64f76ec71cc289672fd32
[ "Apache-2.0" ]
null
null
null
myapp/processes/plotter.py
cp4cds/cp4cds-wps-template
ed170fcee72146dc07c64f76ec71cc289672fd32
[ "Apache-2.0" ]
null
null
null
myapp/processes/plotter.py
cp4cds/cp4cds-wps-template
ed170fcee72146dc07c64f76ec71cc289672fd32
[ "Apache-2.0" ]
null
null
null
from pywps import Process, LiteralInput, ComplexInput, ComplexOutput from pywps import Format import logging LOGGER = logging.getLogger('PYWPS') import matplotlib # no X11 server ... must be run first # https://github.com/matplotlib/matplotlib/issues/3466/ matplotlib.use('Agg') import matplotlib.pylab as plt import...
32.295775
115
0.613171
250
2,293
5.524
0.508
0.050688
0.021723
0
0
0
0
0
0
0
0
0.011905
0.267335
2,293
70
116
32.757143
0.810119
0.038814
0
0
0
0.017544
0.175909
0
0
0
0
0
0
1
0.052632
false
0
0.122807
0
0.22807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13beebf4acd9b21bb28b852b68ff91457137cd72
9,767
py
Python
backend/social_quiz.py
jmigual/socialQuiz
3d9d0980961619b555732899121d8ce6366fa96f
[ "MIT" ]
null
null
null
backend/social_quiz.py
jmigual/socialQuiz
3d9d0980961619b555732899121d8ce6366fa96f
[ "MIT" ]
null
null
null
backend/social_quiz.py
jmigual/socialQuiz
3d9d0980961619b555732899121d8ce6366fa96f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import os.path import random import re from flask import Flask, send_from_directory from flask import request, abort from flaskrun.flaskrun import flask_run import datab.social_database as db app = Flask(__name__) # Regular expression to only accept certain files fileChecker = r...
33.221088
115
0.61288
1,377
9,767
4.109659
0.130719
0.04241
0.053013
0.033928
0.449549
0.35766
0.291571
0.241739
0.186605
0.176003
0
0.008184
0.249411
9,767
293
116
33.334471
0.763743
0.031535
0
0.228972
0
0.004673
0.233887
0.006667
0
0
0
0
0
1
0.084112
false
0
0.037383
0.009346
0.228972
0.018692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13bef8558df71652db939d620d20eb4457b48c53
10,282
py
Python
astacus/node/snapshotter.py
aiven/astacus
2d64e1f33e01d50a41127f41d9da3d1ab0ce0387
[ "Apache-2.0" ]
19
2020-06-22T12:17:59.000Z
2022-02-18T00:12:17.000Z
astacus/node/snapshotter.py
aiven/astacus
2d64e1f33e01d50a41127f41d9da3d1ab0ce0387
[ "Apache-2.0" ]
7
2020-06-24T05:16:20.000Z
2022-02-28T07:35:31.000Z
astacus/node/snapshotter.py
aiven/astacus
2d64e1f33e01d50a41127f41d9da3d1ab0ce0387
[ "Apache-2.0" ]
2
2020-09-05T21:23:08.000Z
2022-02-17T15:02:37.000Z
""" Copyright (c) 2020 Aiven Ltd See LICENSE for details """ from astacus.common import magic, utils from astacus.common.ipc import SnapshotFile, SnapshotHash, SnapshotState from astacus.common.progress import increase_worth_reporting, Progress from pathlib import Path from typing import Optional import base64 impo...
41.128
122
0.642774
1,236
10,282
5.134304
0.243528
0.054838
0.022691
0.022691
0.228175
0.19272
0.150173
0.12953
0.081311
0.03057
0
0.006134
0.28652
10,282
249
123
41.293173
0.858915
0.181288
0
0.25731
0
0
0.025354
0
0
0
0
0
0.02924
1
0.093567
false
0
0.05848
0
0.22807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c016b99333655007d9a8cc82e9391a0d3526d8
6,671
py
Python
colcon_gradle/task/gradle/build.py
richiware/colcon-gradle
00b121def8c15abd1dca310d0ea4e1f34f98f4d1
[ "Apache-2.0" ]
null
null
null
colcon_gradle/task/gradle/build.py
richiware/colcon-gradle
00b121def8c15abd1dca310d0ea4e1f34f98f4d1
[ "Apache-2.0" ]
null
null
null
colcon_gradle/task/gradle/build.py
richiware/colcon-gradle
00b121def8c15abd1dca310d0ea4e1f34f98f4d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Esteve Fernandez # Licensed under the Apache License, Version 2.0 from distutils import dir_util import glob import os from pathlib import Path import shutil from colcon_core.environment import create_environment_scripts from colcon_core.logging import colcon_logger from colcon_core.plugin_system imp...
37.268156
95
0.644431
822
6,671
4.984185
0.244526
0.027825
0.034171
0.023432
0.388089
0.299243
0.269465
0.211862
0.188919
0.188919
0
0.005739
0.268625
6,671
178
96
37.477528
0.833982
0.098486
0
0.186047
0
0
0.076936
0.003505
0
0
0
0
0
1
0.023256
false
0.007752
0.116279
0
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c18896742aca9b72a3db6ff3b991575fad3170
5,092
py
Python
model_compression_toolkit/keras/quantizer/gradient_ptq/utils.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/keras/quantizer/gradient_ptq/utils.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/keras/quantizer/gradient_ptq/utils.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Sony Semiconductors Israel, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.876712
125
0.626866
706
5,092
4.36119
0.23796
0.049367
0.045469
0.041572
0.460864
0.405002
0.326405
0.298474
0.298474
0.286457
0
0.008041
0.267282
5,092
145
126
35.117241
0.817207
0.430676
0
0.404255
0
0
0
0
0
0
0
0
0
1
0.191489
false
0
0.042553
0
0.425532
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c2b5d7ceaee0819464ed2dba5f6801b590f3e0
9,421
py
Python
pygments/lexers/tnt.py
btashton/pygments
ceaad0372055ed0064121020fea032fdda429779
[ "BSD-2-Clause" ]
1
2020-05-04T00:34:41.000Z
2020-05-04T00:34:41.000Z
pygments/lexers/tnt.py
btashton/pygments
ceaad0372055ed0064121020fea032fdda429779
[ "BSD-2-Clause" ]
1
2019-03-08T20:01:19.000Z
2019-03-08T20:01:19.000Z
pygments/lexers/tnt.py
btashton/pygments
ceaad0372055ed0064121020fea032fdda429779
[ "BSD-2-Clause" ]
1
2019-03-08T19:44:02.000Z
2019-03-08T19:44:02.000Z
# -*- coding: utf-8 -*- """ pygments.lexers.tnt ~~~~~~~~~~~~~~~~~~~ Lexer for Typographic Number Theory. :copyright: Copyright 2019-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer from pygments.token import Text, Commen...
37.987903
85
0.519478
1,070
9,421
4.558879
0.194393
0.077491
0.071956
0.084871
0.523575
0.415334
0.365724
0.324313
0.241287
0.210742
0
0.011373
0.346672
9,421
247
86
38.1417
0.779854
0.128224
0
0.433673
0
0
0.066263
0
0
0
0
0
0.086735
1
0.040816
false
0
0.015306
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c2bfaf0d362a6c304791ee3c1accf9f548727b
1,233
py
Python
contacts/urls.py
cheradenine/Django-CRM
692572ced050d314c1f880af8b4000c97cbf7440
[ "MIT" ]
2
2019-08-30T14:42:45.000Z
2019-09-01T01:49:38.000Z
contacts/urls.py
cheradenine/Django-CRM
692572ced050d314c1f880af8b4000c97cbf7440
[ "MIT" ]
8
2020-06-05T20:58:52.000Z
2022-03-11T23:48:48.000Z
contacts/urls.py
gthreepwood/Django-CRM
12de7e6c622d9d7483c210212c8b7fe3dbde2739
[ "MIT" ]
1
2019-05-31T16:06:24.000Z
2019-05-31T16:06:24.000Z
from django.urls import path from contacts.views import ( ContactsListView, CreateContactView, ContactDetailView, UpdateContactView, RemoveContactView, GetContactsView, AddCommentView, UpdateCommentView, DeleteCommentView, AddAttachmentsView, DeleteAttachmentsView) app_name = 'contacts' urlpatterns =...
36.264706
77
0.691809
123
1,233
6.756098
0.284553
0.079422
0.132371
0.046931
0
0
0
0
0
0
0
0
0.152474
1,233
33
78
37.363636
0.795215
0
0
0
0
0
0.226277
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c55ddf22e3a453950de6b6142214790512cd06
4,269
py
Python
LIM_scripts/func_curry.py
Bhare8972/LOFAR-LIM
89f25be8c02cb8980c2e237da3eaac279d40a06a
[ "MIT" ]
3
2019-04-21T13:13:02.000Z
2020-10-15T12:44:23.000Z
LIM_scripts/func_curry.py
Bhare8972/LOFAR-LIM
89f25be8c02cb8980c2e237da3eaac279d40a06a
[ "MIT" ]
null
null
null
LIM_scripts/func_curry.py
Bhare8972/LOFAR-LIM
89f25be8c02cb8980c2e237da3eaac279d40a06a
[ "MIT" ]
2
2018-11-06T18:34:33.000Z
2019-04-04T14:16:57.000Z
#!/usr/bin/env python3 # Coded by Massimiliano Tomassoli, 2012. # # - Thanks to b49P23TIvg for suggesting that I should use a set operation # instead of repeated membership tests. # - Thanks to Ian Kelly for pointing out that # - "minArgs = None" is better than "minArgs = -1", # - "if args" is better than ...
38.809091
84
0.444601
517
4,269
3.655706
0.31528
0.007407
0.009524
0.026455
0.166138
0.141799
0.115344
0.092593
0.062963
0.043386
0
0.056203
0.437339
4,269
110
85
38.809091
0.730641
0.369876
0
0.12069
0
0
0.033397
0
0
0
0
0
0
1
0.155172
false
0
0
0.034483
0.275862
0.189655
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c625629058a335547038a4cdc3550a5d9f78a2
3,572
py
Python
Prediction.py
khayam-hafezi/CRNN-keras-persian
3f99838e5b3b0e0ca79899e25b0648940b7fdfac
[ "MIT" ]
null
null
null
Prediction.py
khayam-hafezi/CRNN-keras-persian
3f99838e5b3b0e0ca79899e25b0648940b7fdfac
[ "MIT" ]
null
null
null
Prediction.py
khayam-hafezi/CRNN-keras-persian
3f99838e5b3b0e0ca79899e25b0648940b7fdfac
[ "MIT" ]
null
null
null
import cv2 import itertools, os, time import numpy as np from Model import get_Model from parameter import letters import argparse from keras import backend as K K.set_learning_phase(0) Region = {"A": "서울 ", "B": "경기 ", "C": "인천 ", "D": "강원 ", "E": "충남 ", "F": "대전 ", "G": "충북 ", "H": "부산 ", "I": "울산 ", "J": ...
32.472727
129
0.555151
550
3,572
3.463636
0.436364
0.047769
0.020997
0.023622
0.102887
0.075591
0.056693
0.056693
0
0
0
0.033309
0.235162
3,572
109
130
32.770642
0.663982
0.119821
0
0.096386
0
0
0.124241
0.007665
0
0
0
0
0
1
0.024096
false
0.024096
0.084337
0
0.13253
0.060241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c705bea50bc8d33e8f2c2e57d0e51683dbf67b
8,038
py
Python
torcharrow/_interop.py
OswinC/torcharrow
45a57c45afeffee488c51e3387179292b3504a6c
[ "BSD-3-Clause" ]
null
null
null
torcharrow/_interop.py
OswinC/torcharrow
45a57c45afeffee488c51e3387179292b3504a6c
[ "BSD-3-Clause" ]
null
null
null
torcharrow/_interop.py
OswinC/torcharrow
45a57c45afeffee488c51e3387179292b3504a6c
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. from typing import List, Optional, cast # Skipping analyzing 'numpy': found module but no type hints or library stubs import numpy as np # type: ignore import numpy.ma as ma # type: ignore # Skipping analyzing 'pandas': found module but no type hints or library stu...
31.155039
99
0.61682
1,115
8,038
4.336323
0.162332
0.009928
0.022337
0.027301
0.508583
0.396898
0.312099
0.273216
0.264736
0.255429
0
0.010431
0.272456
8,038
257
100
31.276265
0.816347
0.24098
0
0.363636
0
0
0.029337
0
0
0
0
0.003891
0.064935
1
0.071429
false
0
0.045455
0.012987
0.292208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13c7d55115d132308c18e527238726863764f8de
3,883
py
Python
research/gan/image_compression/eval.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
1
2021-05-17T01:42:29.000Z
2021-05-17T01:42:29.000Z
research/gan/image_compression/eval.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
research/gan/image_compression/eval.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.83
80
0.702807
509
3,883
5.121807
0.373281
0.037975
0.034522
0.023015
0.135788
0.11239
0
0
0
0
0
0.010473
0.188514
3,883
99
81
39.222222
0.816884
0.235385
0
0
0
0
0.196671
0.008492
0
0
0
0
0
1
0.017241
false
0
0.137931
0
0.155172
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13ca0867e3b5094c9f6e2eb05d9af7e3c93bd96a
16,159
py
Python
kivy/loader.py
geojeff/kivy
25ab20e5b0e87269531abe1f8cc76bf270bcc755
[ "MIT" ]
1
2017-11-15T08:59:23.000Z
2017-11-15T08:59:23.000Z
kivy/loader.py
5y/kivy
6bee66946f5434ca92921a8bc9559d82ec955896
[ "MIT" ]
null
null
null
kivy/loader.py
5y/kivy
6bee66946f5434ca92921a8bc9559d82ec955896
[ "MIT" ]
3
2015-07-18T11:03:59.000Z
2018-03-17T01:32:42.000Z
''' Asynchronous data loader ======================== This is the Asynchronous Loader. You can use it to load an image and use it, even if data are not yet available. You must specify a default loading image for using a such loader:: from kivy import * image = Loader.image('mysprite.png') You can also load i...
31.684314
80
0.590692
1,972
16,159
4.659736
0.20284
0.027424
0.019806
0.0222
0.140929
0.085972
0.041136
0.018718
0.008924
0
0
0.005843
0.322173
16,159
509
81
31.746562
0.833105
0.219444
0
0.242537
0
0
0.046848
0.004407
0
0
0
0.001965
0
1
0.119403
false
0.018657
0.067164
0.007463
0.276119
0.003731
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13caf57909dc254d637b57702b6b442c435e3b48
2,327
py
Python
buildsettings.py
randomizax/polygon-label
5091bd54aee5166d418b240f34d7a5c336685c06
[ "MIT" ]
null
null
null
buildsettings.py
randomizax/polygon-label
5091bd54aee5166d418b240f34d7a5c336685c06
[ "MIT" ]
null
null
null
buildsettings.py
randomizax/polygon-label
5091bd54aee5166d418b240f34d7a5c336685c06
[ "MIT" ]
null
null
null
# settings file for builds. # if you want to have custom builds, copy this file to "localbuildsettings.py" and make changes there. # possible fields: # resourceBaseUrl - optional - the URL base for external resources (all resources embedded in standard IITC) # distUrlBase - optional - the base URL to use for update c...
42.309091
151
0.701762
323
2,327
5.055728
0.486068
0.007348
0.007348
0.013472
0.051439
0.051439
0.051439
0
0
0
0
0.013065
0.210572
2,327
54
152
43.092593
0.875885
0.784272
0
0.266667
0
0
0.389474
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
13cc4a79cdbfb09ff64440ffca1bacc5cc651798
4,192
py
Python
thesis/pettingzoo/butterfly/cooperative_pong/cake_paddle.py
heavenlysf/thesis
646553c45860f337c91a48ab7f666a174784472f
[ "MIT" ]
null
null
null
thesis/pettingzoo/butterfly/cooperative_pong/cake_paddle.py
heavenlysf/thesis
646553c45860f337c91a48ab7f666a174784472f
[ "MIT" ]
null
null
null
thesis/pettingzoo/butterfly/cooperative_pong/cake_paddle.py
heavenlysf/thesis
646553c45860f337c91a48ab7f666a174784472f
[ "MIT" ]
null
null
null
import os os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide" import pygame RENDER_RATIO = 2 class CakePaddle(pygame.sprite.Sprite): def __init__(self, speed=12): # surf is the right-most (largest) tier of the cake self.surf = pygame.Surface((30 // RENDER_RATIO, 120 // RENDER_RATIO)) self....
34.644628
77
0.530057
550
4,192
3.881818
0.167273
0.08993
0.052459
0.029977
0.499297
0.450585
0.427166
0.427166
0.36534
0.36534
0
0.051666
0.362834
4,192
120
78
34.933333
0.74766
0.103053
0
0.372093
0
0
0.008226
0.007129
0
0
0
0
0
1
0.05814
false
0
0.023256
0
0.151163
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13cd2bb4addf837c7a09ba721bc230b691ca3e1b
2,080
py
Python
src/internal_representation_analysis/decoder/StateDataset.py
aidkilda/understanding-drl-navigation
0d637c2390a935ec1182d4f2d5165644d98d6404
[ "MIT" ]
null
null
null
src/internal_representation_analysis/decoder/StateDataset.py
aidkilda/understanding-drl-navigation
0d637c2390a935ec1182d4f2d5165644d98d6404
[ "MIT" ]
null
null
null
src/internal_representation_analysis/decoder/StateDataset.py
aidkilda/understanding-drl-navigation
0d637c2390a935ec1182d4f2d5165644d98d6404
[ "MIT" ]
null
null
null
import random from internal_representation_analysis.network import ActorCriticFFNetwork from internal_representation_analysis.scene_loader import THORDiscreteEnvironment as Environment from internal_representation_analysis.constants import MINI_BATCH_SIZE class StateDataset(object): def __init__(self, states): ...
38.518519
96
0.669712
307
2,080
4.214984
0.218241
0.139104
0.097372
0.034776
0.316074
0.230294
0.210974
0.167697
0.127512
0.127512
0
0.0114
0.240865
2,080
53
97
39.245283
0.808106
0
0
0
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.1
0.05
0.325
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13cd2ed4d981d4b892a318dfe3960eb2c118e4ce
3,147
py
Python
test_dataset_model.py
ferrine/PerceptualSimilarity
2ff66e86b12dbfbc337991def71b09e3b86d4b12
[ "BSD-2-Clause" ]
null
null
null
test_dataset_model.py
ferrine/PerceptualSimilarity
2ff66e86b12dbfbc337991def71b09e3b86d4b12
[ "BSD-2-Clause" ]
null
null
null
test_dataset_model.py
ferrine/PerceptualSimilarity
2ff66e86b12dbfbc337991def71b09e3b86d4b12
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from models import dist_model as dm from data import data_loader as dl import argparse from IPython import embed parser = argparse.ArgumentParser() parser.add_argument("--dataset_mode", type=str, default="2afc", help="[2afc,jnd]") parser.add_argument( "--datasets", type=str, nargs="+", ...
30.553398
218
0.67048
439
3,147
4.687927
0.28246
0.048105
0.090865
0.029155
0.237123
0.122449
0.122449
0.122449
0.093294
0.093294
0
0.008846
0.173816
3,147
102
219
30.852941
0.782692
0.064188
0
0.170455
0
0.022727
0.36079
0.065351
0
0
0
0
0
1
0
false
0
0.056818
0
0.056818
0.034091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13cde4f4ec9916ff8a799bc071fde32fd8bf29b3
2,461
py
Python
plotter.py
StrangeTcy/pathnet-pytorch
58c8088b992ad2f36b843186d93edc872d547c7b
[ "BSD-3-Clause" ]
86
2017-04-05T13:03:13.000Z
2022-03-28T12:38:48.000Z
plotter.py
StrangeTcy/pathnet-pytorch
58c8088b992ad2f36b843186d93edc872d547c7b
[ "BSD-3-Clause" ]
7
2017-04-30T20:59:46.000Z
2019-02-09T10:56:40.000Z
plotter.py
StrangeTcy/pathnet-pytorch
58c8088b992ad2f36b843186d93edc872d547c7b
[ "BSD-3-Clause" ]
21
2017-04-05T23:42:39.000Z
2021-11-17T21:17:22.000Z
import argparse import os import pickle import numpy as np import matplotlib.pyplot as plt plt.style.use('ggplot') parser = argparse.ArgumentParser(description='PyTorch MNIST Example') parser.add_argument('--mnist', action='store_true', default=False, help='open mnist result') args = parser.parse_a...
28.952941
95
0.603007
356
2,461
4
0.323034
0.029494
0.023174
0.031601
0.205056
0.078652
0.078652
0
0
0
0
0.035928
0.253555
2,461
84
96
29.297619
0.739249
0
0
0.220588
0
0
0.101178
0.024787
0
0
0
0
0
1
0.014706
false
0
0.073529
0
0.088235
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13ce147cc376d9100195efcbf75606622c35be95
2,805
py
Python
platypus/tests/test_operators.py
sctiwari/EZFF_ASE
94710d4cf778ff2db5e6df0cd6d10d92e1b98afe
[ "MIT" ]
2
2021-05-10T16:28:50.000Z
2021-12-15T04:03:34.000Z
platypus/tests/test_operators.py
sctiwari/EZFF_ASE
94710d4cf778ff2db5e6df0cd6d10d92e1b98afe
[ "MIT" ]
null
null
null
platypus/tests/test_operators.py
sctiwari/EZFF_ASE
94710d4cf778ff2db5e6df0cd6d10d92e1b98afe
[ "MIT" ]
null
null
null
# Copyright 2015-2018 David Hadka # # This file is part of Platypus, a Python module for designing and using # evolutionary algorithms (EAs) and multiobjective evolutionary algorithms # (MOEAs). # # Platypus is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License a...
35.961538
74
0.636364
362
2,805
4.90884
0.325967
0.073157
0.082724
0.118177
0.58188
0.549803
0.460889
0.44063
0.384356
0.384356
0
0.039962
0.250624
2,805
78
75
35.961538
0.805423
0.278788
0
0.465116
0
0
0.03192
0
0
0
0
0
0.209302
1
0.093023
false
0
0.116279
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13cea3eb1b8257abf1a1958d34086a311a9082d4
6,241
py
Python
fusion_net/bilinear_sampler.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
fusion_net/bilinear_sampler.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
fusion_net/bilinear_sampler.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-are not covered by the UCLB ACP-A Licence, from __future__ import absolute_import, division, print_function import tensorflow as tf def bilinear_sampler_1d_h(input_images, x_offset, wrap_mode='border', name='bilinear_sampler', **kwargs): ''' 一维双线性采样: x_offset--输入X上...
41.331126
155
0.497196
890
6,241
3.250562
0.198876
0.027653
0.034221
0.035949
0.298652
0.256481
0.192879
0.17214
0.155202
0.140339
0
0.074531
0.324948
6,241
150
156
41.606667
0.612153
0.387438
0
0.063492
0
0
0.019802
0
0
0
0
0
0
1
0.063492
false
0
0.031746
0
0.174603
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13cebdf8d097569317951da787d81aebd898d39b
7,125
py
Python
Supernovae.py
adamamiller/iptf16hvw-1
d674114e94b5b20398d2e4208b55eb8e2394dce9
[ "MIT" ]
null
null
null
Supernovae.py
adamamiller/iptf16hvw-1
d674114e94b5b20398d2e4208b55eb8e2394dce9
[ "MIT" ]
null
null
null
Supernovae.py
adamamiller/iptf16hvw-1
d674114e94b5b20398d2e4208b55eb8e2394dce9
[ "MIT" ]
1
2018-08-21T15:17:48.000Z
2018-08-21T15:17:48.000Z
#import relevant libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt from astropy.io import ascii import json from IPython.display import display, Image from specutils import Spectrum1D from astropy import units from scipy.optimize import curve_fit from scipy.interpolate import interp1d imp...
28.27381
108
0.629474
890
7,125
4.958427
0.22809
0.027419
0.021754
0.007478
0.065715
0.046
0.026966
0.026966
0.019941
0.019941
0
0.007921
0.291228
7,125
251
109
28.386454
0.865941
0.386667
0
0.090909
0
0
0.022652
0
0
0
0
0
0
1
0.125
false
0.011364
0.147727
0
0.386364
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13d20c58618bae1fd9184241e64ff9b913dd727d
9,313
py
Python
connector/ADBConnector.py
qiutongxue/ArknightsAutoHelper
6b97b289e9ea4e5e3f39561ef8c2217657f6ff60
[ "MIT" ]
1
2020-12-16T06:19:02.000Z
2020-12-16T06:19:02.000Z
connector/ADBConnector.py
qiutongxue/ArknightsAutoHelper
6b97b289e9ea4e5e3f39561ef8c2217657f6ff60
[ "MIT" ]
null
null
null
connector/ADBConnector.py
qiutongxue/ArknightsAutoHelper
6b97b289e9ea4e5e3f39561ef8c2217657f6ff60
[ "MIT" ]
null
null
null
import os import logging.config from random import randint import zlib import struct import socket import time from PIL import Image import config # from config import ADB_ROOT, ADB_HOST, SCREEN_SHOOT_SAVE_PATH, ShellColor, CONFIG_PATH,enable_adb_host_auto_detect, ADB_SERVER from .ADBClientSession import ADBClientSes...
36.521569
163
0.57962
1,101
9,313
4.722979
0.228883
0.040385
0.034615
0.041538
0.200192
0.125192
0.120385
0.096538
0.062308
0.062308
0
0.017618
0.311285
9,313
254
164
36.665354
0.793109
0.040696
0
0.186603
0
0
0.080036
0.012028
0
0
0
0
0.009569
1
0.08134
false
0.014354
0.062201
0.004785
0.253589
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13d2e35293cf4b36df0d8aa584ec383e80a8a174
263
py
Python
main.py
Gloriel621/MgallManager
7d5c02ab6bdc2f6c6922d4a7e021faef33d868bb
[ "MIT" ]
9
2021-12-22T11:37:23.000Z
2022-03-09T02:25:35.000Z
main.py
Gloriel621/MgallManager
7d5c02ab6bdc2f6c6922d4a7e021faef33d868bb
[ "MIT" ]
4
2021-12-16T14:26:01.000Z
2022-02-16T02:05:41.000Z
main.py
Gloriel621/MgallManager
7d5c02ab6bdc2f6c6922d4a7e021faef33d868bb
[ "MIT" ]
1
2021-12-22T12:59:57.000Z
2021-12-22T12:59:57.000Z
import sys from PyQt5.QtWidgets import QApplication from gui import MgallManager def main(): app = QApplication(sys.argv) ex = MgallManager() app.aboutToQuit.connect(ex.ExitHandler) sys.exit(app.exec_()) if __name__ == "__main__": main()
16.4375
43
0.69962
32
263
5.46875
0.625
0
0
0
0
0
0
0
0
0
0
0.004695
0.190114
263
15
44
17.533333
0.816901
0
0
0
0
0
0.030418
0
0
0
0
0
0
1
0.1
false
0
0.3
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
13d3859368c4908cf2a507d1bd62d989795acc1a
54,009
py
Python
pysc2/lib/actions.py
javierrcc522/starcraft2_api_machineLear
5833ba1344ab5445c4f09fafc33e6058070ebe6c
[ "Apache-2.0" ]
2
2020-04-30T09:07:25.000Z
2021-03-21T22:58:22.000Z
pysc2/lib/actions.py
javierrcc522/starcraft2_api_machineLear
5833ba1344ab5445c4f09fafc33e6058070ebe6c
[ "Apache-2.0" ]
null
null
null
pysc2/lib/actions.py
javierrcc522/starcraft2_api_machineLear
5833ba1344ab5445c4f09fafc33e6058070ebe6c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
57.825482
100
0.750745
6,942
54,009
5.553011
0.229473
0.199227
0.108589
0.003736
0.043296
0.029573
0.01681
0.012971
0.011103
0.007627
0
0.090114
0.1317
54,009
933
101
57.88746
0.731896
0.09317
0
0.03794
0
0
0.283394
0.226535
0
0
0
0
0.001355
1
0.04607
false
0.001355
0.012195
0.00813
0.097561
0.001355
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13d4be5ff6607a768ff6f008bc6f55355c95eab1
3,209
py
Python
pywick/meters/aucmeter.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/meters/aucmeter.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/meters/aucmeter.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
import numbers from . import meter import numpy as np import torch class AUCMeter(meter.Meter): """ The AUCMeter measures the area under the receiver-operating characteristic (ROC) curve for binary classification problems. The area under the curve (AUC) can be interpreted as the probability that, give...
38.662651
91
0.606108
440
3,209
4.386364
0.318182
0.034197
0.017098
0.015544
0.057513
0.048705
0.038342
0.038342
0.038342
0
0
0.022097
0.280773
3,209
82
92
39.134146
0.814125
0.308507
0
0
0
0
0.063426
0
0
0
0
0
0.076923
1
0.076923
false
0
0.076923
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13d60376951a923005fa671870c17c7889bfb96b
6,140
py
Python
pf/queue.py
PiRAT4/py-pf
7ffdd0a283d4a36fc4c473433d5f79a84eeb5d31
[ "BSD-3-Clause" ]
null
null
null
pf/queue.py
PiRAT4/py-pf
7ffdd0a283d4a36fc4c473433d5f79a84eeb5d31
[ "BSD-3-Clause" ]
null
null
null
pf/queue.py
PiRAT4/py-pf
7ffdd0a283d4a36fc4c473433d5f79a84eeb5d31
[ "BSD-3-Clause" ]
null
null
null
"""Classes to represent Packet Filter's queueing schedulers and statistics.""" import pf._struct from pf._base import PFObject from pf.constants import * from pf._utils import rate2str __all__ = ["ServiceCurve", "FlowQueue", "PFQueue", "PFQueueStats"] class ServiceCurve(PFObject): ...
29.95122
79
0.548534
703
6,140
4.607397
0.14367
0.046311
0.030874
0.027786
0.143563
0.029021
0.020377
0
0
0
0
0.014562
0.317752
6,140
204
80
30.098039
0.758654
0.011726
0
0.09589
0
0.013699
0.065776
0.004396
0
0
0
0
0
1
0.116438
false
0
0.027397
0
0.260274
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13d981ac5c1effe03cfb8f11663b3250b5130bd2
4,546
py
Python
dumpcode/npzbdt.py
gkfthddk/keras
46d96c65d69c39df298800336bbb4d867a2561fb
[ "MIT" ]
null
null
null
dumpcode/npzbdt.py
gkfthddk/keras
46d96c65d69c39df298800336bbb4d867a2561fb
[ "MIT" ]
null
null
null
dumpcode/npzbdt.py
gkfthddk/keras
46d96c65d69c39df298800336bbb4d867a2561fb
[ "MIT" ]
null
null
null
import numpy as np from sklearn.model_selection import RandomizedSearchCV, GridSearchCV from sklearn.metrics import roc_auc_score from sklearn.model_selection import StratifiedKFold from sklearn.model_selection import KFold import scipy.stats as sts import xgboost as xgb from xiter import * import pandas as pd import a...
38.525424
167
0.720853
713
4,546
4.475456
0.307153
0.042306
0.079912
0.056409
0.339079
0.278283
0.185522
0.164212
0.099342
0.052648
0
0.026696
0.101848
4,546
117
168
38.854701
0.754837
0.095029
0
0.104167
0
0
0.212823
0.018284
0
0
0
0
0
1
0.010417
false
0
0.125
0
0.145833
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
13dbe7e355868c585eddb2ca7609fa83a2860aed
12,384
py
Python
rlenv/StockTradingEnv0.py
watchsea/RL-Stock
53bd13a1bd1760e082c6db2ad9b010adbc3a767b
[ "MIT" ]
null
null
null
rlenv/StockTradingEnv0.py
watchsea/RL-Stock
53bd13a1bd1760e082c6db2ad9b010adbc3a767b
[ "MIT" ]
null
null
null
rlenv/StockTradingEnv0.py
watchsea/RL-Stock
53bd13a1bd1760e082c6db2ad9b010adbc3a767b
[ "MIT" ]
null
null
null
import random import json import gym from gym import spaces import pandas as pd import numpy as np MAX_ACCOUNT_BALANCE = 2147483647 MAX_NUM_SHARES = 2147483647 MAX_SHARE_PRICE = 5000 MAX_VOLUME = 1000e8 MAX_AMOUNT = 3e10 MAX_OPEN_POSITIONS = 5 MAX_STEPS = 20000 MAX_DAY_CHANGE = 1 INITIAL_ACCOUNT_BALANCE = 10000 DATA...
41.69697
127
0.581476
1,571
12,384
4.385742
0.144494
0.039187
0.054427
0.028737
0.437881
0.38389
0.324238
0.296226
0.264296
0.235414
0
0.02345
0.321625
12,384
296
128
41.837838
0.796691
0.202196
0
0.368932
0
0.004854
0.047221
0.007241
0
0
0
0
0
1
0.033981
false
0
0.029126
0
0.097087
0.043689
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13dd331f73864377a1d0952e862e552f50ab90bf
2,053
py
Python
processing/manager.py
mrfleap/us-population-heatmap
e3f1c5d8294716ff491c7b8b40adb77929f9aeee
[ "MIT" ]
null
null
null
processing/manager.py
mrfleap/us-population-heatmap
e3f1c5d8294716ff491c7b8b40adb77929f9aeee
[ "MIT" ]
null
null
null
processing/manager.py
mrfleap/us-population-heatmap
e3f1c5d8294716ff491c7b8b40adb77929f9aeee
[ "MIT" ]
null
null
null
import json import os import pathlib import time from tqdm import tqdm from aggregator import aggregate from download import DOWNLOAD_PATH, download_files, unzip_files from tqdm.contrib.concurrent import process_map def main(): start = time.time() # print("Downloading files...") # download_files() #...
27.013158
103
0.632245
283
2,053
4.342756
0.310954
0.071603
0.032547
0.058584
0.262815
0.158666
0.056957
0.056957
0.056957
0.056957
0
0.012579
0.225524
2,053
75
104
27.373333
0.760377
0.096931
0
0.043478
0
0
0.156013
0.042254
0
0
0
0
0
1
0.086957
false
0
0.173913
0.021739
0.282609
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13ddb1c02b1ed46330b061450969494a2a48af52
794
py
Python
gen_data.py
kshoji6011/vehicleai
135de71cce65f4a61b42c49493ed356f2d512d6c
[ "MIT" ]
null
null
null
gen_data.py
kshoji6011/vehicleai
135de71cce65f4a61b42c49493ed356f2d512d6c
[ "MIT" ]
null
null
null
gen_data.py
kshoji6011/vehicleai
135de71cce65f4a61b42c49493ed356f2d512d6c
[ "MIT" ]
null
null
null
from PIL import Image import os, glob import numpy as np from sklearn import model_selection classes = ["car", "bycycle", "motorcycle", "pedestrian"] num_class = len(classes) image_size = 50 # 画像の読み込み X = [] Y = [] for index, classlabel in enumerate(classes): photos_dir = "./" + classlabel files = glob.glob...
24.8125
73
0.644836
119
794
4.151261
0.462185
0.054656
0.02834
0.044534
0.089069
0.089069
0.089069
0.089069
0
0
0
0.012821
0.214106
794
32
74
24.8125
0.778846
0.008816
0
0
0
0
0.068702
0
0
0
0
0
0
1
0
false
0
0.16
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13de3e4f691cb4b36cd9750b30e5106c02f72fb9
724
py
Python
app/main.py
immortel32/Sword_Sorcery_Story_Generator
7978dfc335813362b2d94c455b970f58421123c8
[ "MIT" ]
2
2021-04-01T00:50:22.000Z
2021-04-01T02:18:45.000Z
app/main.py
immortel32/Sword_Sorcery_Story_Generator
7978dfc335813362b2d94c455b970f58421123c8
[ "MIT" ]
1
2021-04-01T21:39:44.000Z
2021-04-01T21:39:44.000Z
app/main.py
immortel32/Sword_Sorcery_Story_Generator
7978dfc335813362b2d94c455b970f58421123c8
[ "MIT" ]
1
2021-04-01T01:03:33.000Z
2021-04-01T01:03:33.000Z
from services import waypoint_scenarios, quest_scenarios from services.build_campaign import Campaign from log_setup import log if __name__ == "__main__": number_waypoint_scenario = waypoint_scenarios.get_number_of_waypoint_scenarios() log.info(f"We have {number_waypoint_scenario} waypoint available") numb...
42.588235
84
0.809392
92
724
5.880435
0.293478
0.125693
0.133087
0.110906
0.240296
0.107209
0.107209
0
0
0
0
0.004747
0.127072
724
16
85
45.25
0.851266
0
0
0
0
0
0.153315
0.070442
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13defa0932ab990d6739afd72d573b29bcd8a6e3
2,473
py
Python
distill.py
Lukeming-tsinghua/Interpretable-NN-for-IBD-diagnosis
5fb0fae774e010cdd6b63ff487a4528f0397647d
[ "MIT" ]
null
null
null
distill.py
Lukeming-tsinghua/Interpretable-NN-for-IBD-diagnosis
5fb0fae774e010cdd6b63ff487a4528f0397647d
[ "MIT" ]
null
null
null
distill.py
Lukeming-tsinghua/Interpretable-NN-for-IBD-diagnosis
5fb0fae774e010cdd6b63ff487a4528f0397647d
[ "MIT" ]
null
null
null
import os from collections import namedtuple import torch import torch.nn as nn import torch.nn.functional as F from sklearn.metrics import classification_report from torch.optim import Adam from tqdm import tqdm from data import DataIteratorDistill from loss import FocalLoss from model import CNN from torchtext impo...
34.347222
89
0.632835
306
2,473
4.996732
0.352941
0.041857
0.031393
0.020929
0.049706
0.049706
0.049706
0.049706
0.049706
0
0
0.010977
0.263243
2,473
71
90
34.830986
0.828211
0.014557
0
0.032787
0
0
0.019704
0
0
0
0
0
0
1
0
false
0
0.262295
0
0.262295
0.065574
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13df4c0e986f7c76ecd11c6a6721e985d305104d
7,597
py
Python
tests/TALTests/HTMLTests/TALAttributesTestCases.py
janbrohl/SimpleTAL
f5a3ddd9a74cf9af7356bb431513e3534717802d
[ "BSD-3-Clause" ]
5
2015-11-20T12:17:04.000Z
2021-03-19T13:49:33.000Z
tests/TALTests/HTMLTests/TALAttributesTestCases.py
mar10/SimpleTAL
f5a3ddd9a74cf9af7356bb431513e3534717802d
[ "BSD-3-Clause" ]
5
2015-09-20T12:55:23.000Z
2018-05-12T10:34:20.000Z
tests/TALTests/HTMLTests/TALAttributesTestCases.py
mar10/SimpleTAL
f5a3ddd9a74cf9af7356bb431513e3534717802d
[ "BSD-3-Clause" ]
1
2022-01-24T13:37:38.000Z
2022-01-24T13:37:38.000Z
#!/usr/bin/python # -*- coding: iso-8859-1 -*- # Copyright (c) 2016, Jan Brohl <janbrohl@t-online.de> # All rights reserved. # See LICENSE.txt # Copyright (c) 2004 Colin Stewart (http://www.owlfish.com/) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
46.042424
162
0.65618
881
7,597
5.609535
0.30193
0.045528
0.039458
0.053824
0.441319
0.416026
0.374545
0.374545
0.36038
0.29138
0
0.003002
0.210741
7,597
164
163
46.323171
0.821214
0.252863
0
0.26
0
0.15
0.488528
0.162184
0
0
0
0
0.01
1
0.15
false
0.01
0.07
0
0.23
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13dfb252487b62555c998999e6abd56dcb22612c
562
py
Python
iseq_prof/fasta.py
EBI-Metagenomics/iseq-prof
ca41a0f3aa1e70e59648bdc08b36da1ec76220ad
[ "MIT" ]
null
null
null
iseq_prof/fasta.py
EBI-Metagenomics/iseq-prof
ca41a0f3aa1e70e59648bdc08b36da1ec76220ad
[ "MIT" ]
null
null
null
iseq_prof/fasta.py
EBI-Metagenomics/iseq-prof
ca41a0f3aa1e70e59648bdc08b36da1ec76220ad
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List from fasta_reader import FASTAItem, FASTAWriter, read_fasta __all__ = ["downsample"] def downsample(infile: Path, outfile: Path, size: int, random): targets: List[FASTAItem] = list(read_fasta(infile)) if size > len(targets): raise ValueError("Size is ...
29.578947
71
0.715302
72
562
5.472222
0.611111
0.045685
0
0
0
0
0
0
0
0
0
0
0.190391
562
18
72
31.222222
0.865934
0
0
0
0
0
0.094306
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e04df35258103610f99481901f9649956a3c76
209
py
Python
src/data_settings.py
DhruvSrikanth/TSLA-React
2ce4edb6b21ec1a301047124cfda5bb30deb3a90
[ "MIT" ]
null
null
null
src/data_settings.py
DhruvSrikanth/TSLA-React
2ce4edb6b21ec1a301047124cfda5bb30deb3a90
[ "MIT" ]
null
null
null
src/data_settings.py
DhruvSrikanth/TSLA-React
2ce4edb6b21ec1a301047124cfda5bb30deb3a90
[ "MIT" ]
null
null
null
# API keys # YF_API_KEY = "YRVHVLiFAt3ANYZf00BXr2LHNfZcgKzdWVmsZ9Xi" # yahoo finance api key TICKER = "TSLA" INTERVAL = "1m" PERIOD = "1d" LOOK_BACK = 30 # hard limit to not reach rate limit of 100 per day
20.9
81
0.732057
30
209
5
0.866667
0.08
0
0
0
0
0
0
0
0
0
0.070588
0.186603
209
10
82
20.9
0.811765
0.655502
0
0
0
0
0.117647
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
13e0ca25df4bf90f8ba82de1f47aa08f14078d33
5,304
py
Python
numba/roc/tests/hsapy/test_gufuncbuilding.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
numba/roc/tests/hsapy/test_gufuncbuilding.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
108
2020-08-17T22:38:26.000Z
2021-12-06T09:44:14.000Z
numba/roc/tests/hsapy/test_gufuncbuilding.py
luk-f-a/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
[ "BSD-2-Clause", "BSD-3-Clause" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import numpy as np from numba.roc.vectorizers import HsaGUFuncVectorize from numba.roc.dispatch import HSAGenerializedUFunc from numba import guvectorize import unittest def ufunc_add_core(a, b, c): for i in range(c.size): c[i] = a[i] + b[i] class TestGUFuncBuilding(unittest.TestCase): def test_guf...
31.951807
75
0.532805
760
5,304
3.672368
0.117105
0.060193
0.09029
0.064493
0.701182
0.653171
0.631673
0.59871
0.59871
0.59871
0
0.047554
0.310143
5,304
165
76
32.145455
0.715223
0.026961
0
0.658537
0
0
0.047527
0
0
0
0
0
0.186992
1
0.065041
false
0
0.04065
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e1722808236b6aeebbdaf4b408b6e5d0b9cadb
738
py
Python
control-flow/solution/file_hosts.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
1
2019-01-02T15:04:08.000Z
2019-01-02T15:04:08.000Z
control-flow/solution/file_hosts.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
control-flow/solution/file_hosts.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
FILE = r'../src/etc-hosts.txt' hostnames = [] try: with open(FILE, encoding='utf-8') as file: content = file.readlines() except FileNotFoundError: print('File does not exist') except PermissionError: print('Permission denied') for line in content: if line.startswith('#'): continue ...
19.421053
56
0.550136
83
738
4.891566
0.554217
0.029557
0
0
0
0
0
0
0
0
0
0.009785
0.307588
738
37
57
19.945946
0.784736
0
0
0.071429
0
0
0.136856
0
0
0
0
0
0
1
0
false
0
0
0
0
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e274ea10a3039f67d424845564d23d8affb74d
2,875
py
Python
algo/test/test_maximum_cut.py
ssavinash1/Algorithm_stanford
f2588b6bcac2b0858e78b819e6e8402109e80ee2
[ "MIT" ]
24
2016-03-21T07:53:54.000Z
2020-06-29T12:16:36.000Z
algo/test/test_maximum_cut.py
ssavinash1/Algorithm_stanford
f2588b6bcac2b0858e78b819e6e8402109e80ee2
[ "MIT" ]
5
2015-09-29T17:12:36.000Z
2020-03-26T20:51:56.000Z
algo/test/test_maximum_cut.py
ssavinash1/Algorithm_stanford
f2588b6bcac2b0858e78b819e6e8402109e80ee2
[ "MIT" ]
12
2016-05-24T16:48:32.000Z
2020-10-02T12:22:09.000Z
# -*- coding: utf-8 -*- import unittest from src.graph import Graph from src.maximum_cut import maximum_cut, maximum_cut_for_bipartite_graph class MaximumCut(unittest.TestCase): def test_maximum_cut_for_bipartite_graphs(self): """ Given the following bipartite graph. (a)-----(b) ...
33.823529
79
0.420522
322
2,875
3.65528
0.226708
0.093458
0.055225
0.074766
0.371283
0.314359
0.253186
0.13254
0.13254
0.105353
0
0.013684
0.364522
2,875
84
80
34.22619
0.630542
0.151304
0
0.27027
0
0
0.138389
0
0
0
0
0
0.297297
1
0.108108
false
0
0.081081
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e34fac65209ea50100d76fe6090282f3d8e3b4
5,788
py
Python
gdb/print-avs-rbtree.py
kemonats/avs_commons
ecce4edf5376d132e3686af227c9adf22ce1090e
[ "Apache-2.0" ]
4
2016-11-04T12:55:32.000Z
2019-03-21T15:07:58.000Z
gdb/print-avs-rbtree.py
kemonats/avs_commons
ecce4edf5376d132e3686af227c9adf22ce1090e
[ "Apache-2.0" ]
5
2015-02-11T09:34:36.000Z
2021-04-19T08:51:50.000Z
gdb/print-avs-rbtree.py
kemonats/avs_commons
ecce4edf5376d132e3686af227c9adf22ce1090e
[ "Apache-2.0" ]
17
2015-12-17T10:32:09.000Z
2022-02-14T10:58:39.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 AVSystem <avsystem@avsystem.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.102564
146
0.593988
729
5,788
4.506173
0.226337
0.030137
0.034094
0.027397
0.53516
0.499543
0.473973
0.416134
0.382648
0.301065
0
0.011541
0.281444
5,788
155
147
37.341935
0.778312
0.114029
0
0.396226
0
0
0.141487
0.013503
0
0
0
0.006452
0
1
0.075472
false
0
0.009434
0
0.188679
0.254717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e3573ef0ab92fc261e9835b12be4ef8345103f
1,372
py
Python
hour17/PythonGroup.py
sampx/mongodb-practice
0698b21b7da57693ba4146384c8ad65530b0066b
[ "MIT" ]
null
null
null
hour17/PythonGroup.py
sampx/mongodb-practice
0698b21b7da57693ba4146384c8ad65530b0066b
[ "MIT" ]
null
null
null
hour17/PythonGroup.py
sampx/mongodb-practice
0698b21b7da57693ba4146384c8ad65530b0066b
[ "MIT" ]
null
null
null
from pymongo import MongoClient def displayGroup(results): for result in results: print (result) def firstIsALastIsVowel(collection): key = {'first' : True, "last" : True} cond = {'first' : 'a', 'last' : {'$in' : ["a","e","i","o","u"]}} initial = {'count' : 0} red...
39.2
69
0.54519
138
1,372
5.355072
0.427536
0.077131
0.048714
0.05954
0.184032
0.184032
0.113667
0
0
0
0
0.008282
0.295918
1,372
35
70
39.2
0.756729
0
0
0.114286
0
0
0.294249
0.035101
0
0
0
0
0
1
0.085714
false
0
0.028571
0
0.114286
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e4eede3d6e6a6be8776d50a9b969b677e1d046
5,115
py
Python
packnet_sfm/models/model_utils.py
pection/packnet-sfm
d5673567b649e6bfda292c894cacdeb06aa80913
[ "MIT" ]
1
2022-02-22T06:19:02.000Z
2022-02-22T06:19:02.000Z
packnet_sfm/models/model_utils.py
pection/packnet-sfm
d5673567b649e6bfda292c894cacdeb06aa80913
[ "MIT" ]
null
null
null
packnet_sfm/models/model_utils.py
pection/packnet-sfm
d5673567b649e6bfda292c894cacdeb06aa80913
[ "MIT" ]
null
null
null
# Copyright 2020 Toyota Research Institute. All rights reserved. from packnet_sfm.utils.image import flip_lr, interpolate_scales from packnet_sfm.utils.misc import filter_dict from packnet_sfm.utils.types import is_tensor, is_list, is_numpy def flip(tensor, flip_fn): """ Flip tensors or list of tensors base...
28.259669
93
0.585728
634
5,115
4.605678
0.250789
0.035616
0.019178
0.023973
0.205137
0.170205
0.158562
0.115753
0.093151
0.093151
0
0.00671
0.300684
5,115
180
94
28.416667
0.809617
0.352884
0
0.242857
0
0
0.144675
0.007368
0
0
0
0
0.042857
1
0.085714
false
0
0.042857
0
0.242857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e8cb3c3e9246762451e5cb22ca74f1dccc3db7
2,656
py
Python
predict_recognition.py
yeyupiaoling/Kersa-Speaker-Recognition
7ccf42c006f42ff6074ad3937e44a0dfa68c6d33
[ "Apache-2.0" ]
42
2020-07-12T13:21:13.000Z
2021-07-01T01:06:12.000Z
predict_recognition.py
yeyupiaoling/VoiceprintRecognition-Keras
7ccf42c006f42ff6074ad3937e44a0dfa68c6d33
[ "Apache-2.0" ]
3
2020-08-19T06:16:02.000Z
2020-11-02T02:16:56.000Z
predict_recognition.py
yeyupiaoling/Kersa-Speaker-Recognition
7ccf42c006f42ff6074ad3937e44a0dfa68c6d33
[ "Apache-2.0" ]
12
2020-07-15T14:33:51.000Z
2021-05-24T03:55:04.000Z
import argparse import os import shutil import time import numpy as np from utils import model, utils from utils.record import RecordAudio parser = argparse.ArgumentParser() parser.add_argument('--audio_db', default='audio_db/', type=str, help='音频库的路径') parser.add_argument('--threshold', default=...
28.255319
103
0.628765
343
2,656
4.676385
0.35277
0.039277
0.031796
0.017456
0.074813
0.037406
0
0
0
0
0
0.012935
0.243223
2,656
93
104
28.55914
0.785075
0.017696
0
0.115942
0
0
0.093041
0.01807
0
0
0
0
0
1
0.057971
false
0
0.101449
0
0.188406
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e90500b4879323474a6761d01dbd32906a8b6c
6,853
py
Python
cubedash/_product.py
vconrado/datacube-explorer
ccb9a9a42e5dd16e2b0325a1f881b080bb2806e6
[ "Apache-2.0" ]
null
null
null
cubedash/_product.py
vconrado/datacube-explorer
ccb9a9a42e5dd16e2b0325a1f881b080bb2806e6
[ "Apache-2.0" ]
null
null
null
cubedash/_product.py
vconrado/datacube-explorer
ccb9a9a42e5dd16e2b0325a1f881b080bb2806e6
[ "Apache-2.0" ]
null
null
null
import logging from datetime import timedelta from flask import Blueprint, Response, abort, redirect, url_for from cubedash import _model, _utils, _utils as utils _LOG = logging.getLogger(__name__) bp = Blueprint("product", __name__) @bp.route("/about.csv") def legacy_about_csv(): return redirect(".storage_csv...
27.522088
86
0.620604
828
6,853
4.881643
0.188406
0.07719
0.025977
0.021029
0.502969
0.435675
0.388669
0.320139
0.287976
0.264226
0
0.017357
0.260178
6,853
248
87
27.633065
0.779882
0.094119
0
0.241758
0
0
0.144533
0.049047
0
0
0
0
0
1
0.093407
false
0
0.021978
0.043956
0.208791
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13e960260e528ba2d92aa2f22ba8b6f12cf5bbfe
1,923
py
Python
litex_boards/platforms/sipeed_tang_nano.py
ozbenh/litex-boards
f18b10d1edb4e162a77972e2e9c5bad54ca00788
[ "BSD-2-Clause" ]
null
null
null
litex_boards/platforms/sipeed_tang_nano.py
ozbenh/litex-boards
f18b10d1edb4e162a77972e2e9c5bad54ca00788
[ "BSD-2-Clause" ]
null
null
null
litex_boards/platforms/sipeed_tang_nano.py
ozbenh/litex-boards
f18b10d1edb4e162a77972e2e9c5bad54ca00788
[ "BSD-2-Clause" ]
null
null
null
# # This file is part of LiteX-Boards. # # Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause # Board diagram/pinout: # https://user-images.githubusercontent.com/1450143/133655492-532d5e9a-0635-4889-85c9-68683d06cae0.png # http://dl.sipeed.com/TANG/Nano/HDK/Tang-NAN...
32.05
115
0.573583
200
1,923
5.36
0.57
0.117537
0.039179
0.037313
0
0
0
0
0
0
0
0.066463
0.147166
1,923
59
116
32.59322
0.587195
0.339054
0
0
0
0
0.149004
0
0
0
0
0
0
1
0.103448
false
0
0.137931
0.034483
0.37931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13eaaea3944207924e8d3d8e8f4c1a6a0ee51732
10,525
py
Python
nm_cavia/rl/metalearner.py
anon-6994/nm-metarl
45c8798c2139d8c200cc7a398331c1b98a0dccec
[ "MIT" ]
null
null
null
nm_cavia/rl/metalearner.py
anon-6994/nm-metarl
45c8798c2139d8c200cc7a398331c1b98a0dccec
[ "MIT" ]
null
null
null
nm_cavia/rl/metalearner.py
anon-6994/nm-metarl
45c8798c2139d8c200cc7a398331c1b98a0dccec
[ "MIT" ]
null
null
null
import torch from torch.distributions.kl import kl_divergence from torch.nn.utils.convert_parameters import (vector_to_parameters, parameters_to_vector) from rl_utils.optimization import conjugate_gradient from rl_utils.torch_utils import (weighted_mean, detach_distributi...
40.171756
120
0.624323
1,296
10,525
4.907407
0.200617
0.033019
0.018868
0.017296
0.270912
0.221855
0.207233
0.202044
0.186635
0.178931
0
0.013286
0.284846
10,525
261
121
40.325671
0.831673
0.230974
0
0.275168
0
0
0.004312
0
0
0
0
0
0
1
0.073826
false
0
0.033557
0
0.174497
0.033557
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13eac7b96baca5f54a52331a42d7e035d905943e
2,321
py
Python
request/management/commands/purgerequests.py
hramezani/django-request
4b9c7b22f26338d2c93110477aa44041b1c5ddb4
[ "BSD-2-Clause" ]
373
2016-04-22T21:18:41.000Z
2022-03-31T23:13:31.000Z
request/management/commands/purgerequests.py
hramezani/django-request
4b9c7b22f26338d2c93110477aa44041b1c5ddb4
[ "BSD-2-Clause" ]
128
2016-04-22T21:30:55.000Z
2022-03-08T20:24:44.000Z
request/management/commands/purgerequests.py
hramezani/django-request
4b9c7b22f26338d2c93110477aa44041b1c5ddb4
[ "BSD-2-Clause" ]
79
2016-04-25T08:44:56.000Z
2022-03-17T01:41:27.000Z
from datetime import timedelta from dateutil.relativedelta import relativedelta from django.core.management.base import BaseCommand, CommandError from django.utils import timezone from ...models import Request DURATION_OPTIONS = { 'hours': lambda amount: timezone.now() - timedelta(hours=amount), 'days': lamb...
30.142857
88
0.623007
269
2,321
5.315985
0.475836
0.052448
0.06993
0.08042
0.117483
0
0
0
0
0
0
0.004706
0.267557
2,321
76
89
30.539474
0.836471
0.04567
0
0.084746
0
0
0.212574
0
0
0
0
0
0
1
0.033898
false
0.016949
0.084746
0
0.169492
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13ec7c22478f599c0c77b64f3478dbd3b142fa61
8,135
py
Python
cdci_data_analysis/analysis/plot_tools.py
andreatramacere/cdci_data_analysis
8ae34a7252d6baf011a3b99fbe4f6e624b63d7df
[ "MIT" ]
null
null
null
cdci_data_analysis/analysis/plot_tools.py
andreatramacere/cdci_data_analysis
8ae34a7252d6baf011a3b99fbe4f6e624b63d7df
[ "MIT" ]
null
null
null
cdci_data_analysis/analysis/plot_tools.py
andreatramacere/cdci_data_analysis
8ae34a7252d6baf011a3b99fbe4f6e624b63d7df
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from builtins import (bytes, str, open, super, range, zip, round, input, int, pow, object, map, zip) __author__ = "Andrea Tramacere" import numpy as np from astropy import wcs from bokeh.layouts import row, widgetbox,gridplot ...
31.288462
132
0.547019
1,071
8,135
3.966387
0.225957
0.006591
0.014124
0.021186
0.250235
0.202448
0.130885
0.118644
0.09887
0.073446
0
0.012397
0.315796
8,135
259
133
31.409266
0.750808
0.153534
0
0.125
0
0
0.076158
0.024704
0
0
0
0
0
1
0.078125
false
0
0.070313
0
0.195313
0.007813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13edd551b75e71fd96ef5d443c0c54bbec028a56
844
py
Python
test/unit/test_testaid_unit_pathlist.py
RebelCodeBase/testaid
998c827b826fe4374ecf0a234fef61a975e2fcd7
[ "Apache-2.0" ]
17
2019-08-04T09:29:19.000Z
2020-05-16T02:25:20.000Z
test/unit/test_testaid_unit_pathlist.py
RebelCodeBase/testaid
998c827b826fe4374ecf0a234fef61a975e2fcd7
[ "Apache-2.0" ]
12
2019-07-19T22:20:42.000Z
2020-01-20T06:45:38.000Z
test/unit/test_testaid_unit_pathlist.py
RebelCodeBase/testaid
998c827b826fe4374ecf0a234fef61a975e2fcd7
[ "Apache-2.0" ]
3
2019-08-08T18:18:13.000Z
2019-10-07T13:46:03.000Z
from pathlib import Path from testaid.pathlist import PathList def test_testaid_unit_pathlist_roles_blacklist(testvars_roles_blacklist): assert testvars_roles_blacklist is not None def test_testaid_unit_pathlist_roles_whitelist(testvars_roles_whitelist): assert testvars_roles_whitelist is not None def tes...
29.103448
73
0.726303
112
844
5.196429
0.3125
0.089347
0.072165
0.092784
0.182131
0.182131
0.120275
0.120275
0
0
0
0.034532
0.17654
844
28
74
30.142857
0.802878
0
0
0
0
0
0.099526
0.058057
0
0
0
0
0.136364
1
0.136364
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13ee6c7b533dc2afb81ce7087fea00c547679671
22,147
py
Python
tests/unit/zhmcclient/test_hba.py
vkpro-forks/python-zhmcclient
eab2dca37cb417d03411450dabf72805214b5ca0
[ "Apache-2.0" ]
null
null
null
tests/unit/zhmcclient/test_hba.py
vkpro-forks/python-zhmcclient
eab2dca37cb417d03411450dabf72805214b5ca0
[ "Apache-2.0" ]
null
null
null
tests/unit/zhmcclient/test_hba.py
vkpro-forks/python-zhmcclient
eab2dca37cb417d03411450dabf72805214b5ca0
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2017 IBM Corp. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
34.658842
77
0.557457
2,608
22,147
4.547546
0.128451
0.018887
0.013491
0.015346
0.592074
0.52403
0.490051
0.426391
0.391062
0.350422
0
0.01895
0.325687
22,147
638
78
34.713166
0.775211
0.192441
0
0.532864
0
0
0.149692
0.01476
0
0
0
0.001567
0.084507
1
0.030516
false
0
0.016432
0
0.053991
0.002347
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13ef6d428251649b315fbe8757c2d7336d7471a8
367
py
Python
compiler-rt/test/asan/TestCases/Windows/lit.local.cfg.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
compiler-rt/test/asan/TestCases/Windows/lit.local.cfg.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
compiler-rt/test/asan/TestCases/Windows/lit.local.cfg.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
def getRoot(config): if not config.parent: return config return getRoot(config.parent) root = getRoot(config) # We only run a small set of tests on Windows for now. # Override the parent directory's "unsupported" decision until we can handle # all of its tests. if root.host_os in ['Windows']: config.unsuppo...
24.466667
76
0.73842
56
367
4.821429
0.660714
0.144444
0
0
0
0
0
0
0
0
0
0
0.179837
367
14
77
26.214286
0.89701
0.395095
0
0
0
0
0.03211
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f22ca29da54a0f4486e1f8539ee236d259fc1e
5,960
py
Python
efetch_server/plugins/fa_sqlite/fa_sqlite_ajax.py
Syrkadian/efetch
120ac963507d54998beecfd8b8cd85ad123e6e54
[ "Apache-2.0" ]
38
2015-08-18T00:29:16.000Z
2021-12-06T15:53:47.000Z
efetch_server/plugins/fa_sqlite/fa_sqlite_ajax.py
Syrkadian/efetch
120ac963507d54998beecfd8b8cd85ad123e6e54
[ "Apache-2.0" ]
20
2016-03-18T02:20:27.000Z
2020-04-09T22:16:42.000Z
efetch_server/plugins/fa_sqlite/fa_sqlite_ajax.py
Syrkadian/efetch
120ac963507d54998beecfd8b8cd85ad123e6e54
[ "Apache-2.0" ]
8
2016-08-23T14:59:15.000Z
2020-04-09T21:43:25.000Z
""" AJAX for SQLite Viewer plugin """ from yapsy.IPlugin import IPlugin from flask import Response, jsonify import json import logging import sqlite3 class FaSqliteAjax(IPlugin): def __init__(self): self.display_name = 'SQLite Ajax' self.popularity = 0 self.cache = True self.fast ...
35.266272
133
0.51896
620
5,960
4.882258
0.217742
0.025768
0.042947
0.041625
0.428477
0.358441
0.346878
0.286092
0.267592
0.169805
0
0.007055
0.357886
5,960
169
134
35.266272
0.783904
0.08104
0
0.308943
0
0
0.158011
0
0
0
0
0.005917
0
1
0.081301
false
0
0.04065
0
0.219512
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f2af320410f86bedc3a6ddc8c44eb547f14053
252
py
Python
raspagem/random/lista_cidades.py
sslppractice/propython
fa470c3bf0dcfbb26037146d77c7491596cabb26
[ "MIT" ]
null
null
null
raspagem/random/lista_cidades.py
sslppractice/propython
fa470c3bf0dcfbb26037146d77c7491596cabb26
[ "MIT" ]
null
null
null
raspagem/random/lista_cidades.py
sslppractice/propython
fa470c3bf0dcfbb26037146d77c7491596cabb26
[ "MIT" ]
null
null
null
import requests, json url = 'http://educacao.dadosabertosbr.com/api/cidades/ce' cidades = requests.get(url).content cidades = cidades.decode('utf-8') cidades = json.loads(cidades) for cidade in cidades: codigo, nome = cidade.split(':') print(nome)
22.909091
57
0.734127
35
252
5.285714
0.685714
0
0
0
0
0
0
0
0
0
0
0.004464
0.111111
252
10
58
25.2
0.821429
0
0
0
0
0
0.218254
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f3a6d9012ba4c4473a1ffb1f1db1418326ee1f
7,566
py
Python
src/autonomous/purepursuit.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
src/autonomous/purepursuit.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
src/autonomous/purepursuit.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
import math from constants import Constants from utils import vector2d from wpilib import SmartDashboard as Dash from autonomous import pursuitpoint class PurePursuit(): """An implementation of the Pure Pursuit path tracking algorithm.""" def __init__(self, path): self.path = path self.pursui...
50.10596
178
0.655432
886
7,566
5.455982
0.216704
0.045511
0.070335
0.029789
0.235416
0.195283
0.13736
0.081092
0.055027
0.033099
0
0.014137
0.252049
7,566
150
179
50.44
0.840078
0.266191
0
0.086538
0
0
0.00977
0
0
0
0
0.006667
0
1
0.105769
false
0
0.048077
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f4c5d6b839fc74a59e3720afa044833541c6ea
8,661
py
Python
esphome/voluptuous_schema.py
TheEggi/esphomeyaml
98e8cc1edc7b29891e8100eb484922e5c2d4fc33
[ "MIT" ]
null
null
null
esphome/voluptuous_schema.py
TheEggi/esphomeyaml
98e8cc1edc7b29891e8100eb484922e5c2d4fc33
[ "MIT" ]
null
null
null
esphome/voluptuous_schema.py
TheEggi/esphomeyaml
98e8cc1edc7b29891e8100eb484922e5c2d4fc33
[ "MIT" ]
null
null
null
import difflib import itertools import voluptuous as vol from esphome.py_compat import string_types class ExtraKeysInvalid(vol.Invalid): def __init__(self, *arg, **kwargs): self.candidates = kwargs.pop('candidates') vol.Invalid.__init__(self, *arg, **kwargs) def ensure_multiple_invalid(err): ...
43.305
99
0.564831
992
8,661
4.792339
0.240927
0.018511
0.008414
0.015145
0.12032
0.089188
0.053429
0.037863
0.037863
0.017669
0
0.000362
0.362776
8,661
199
100
43.522613
0.861026
0.205173
0
0.090226
0
0
0.033017
0
0
0
0
0
0
1
0.06015
false
0
0.030075
0
0.172932
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f5928fe05ccf64858c18af5eff2188153c32e0
20,738
py
Python
semisupervised/DensityPeaks.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
3
2021-12-10T09:04:18.000Z
2022-01-22T15:03:19.000Z
semisupervised/DensityPeaks.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
107
2021-12-02T07:43:11.000Z
2022-03-31T11:02:46.000Z
semisupervised/DensityPeaks.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Filename: DensityPeaks.py # @Author: Daniel Puente Ramírez # @Time: 5/3/22 09:55 # @Version: 4.0 import math from collections import defaultdict import numpy as np import pandas as pd from sklearn.neighbors import KNeighborsClassifier, NearestNeighbor...
35.268707
86
0.580384
2,615
20,738
4.456597
0.142639
0.014158
0.011412
0.013214
0.252703
0.20671
0.165866
0.136005
0.12485
0.120817
0
0.009857
0.3347
20,738
587
87
35.32879
0.834819
0.264876
0
0.165192
0
0
0.020728
0
0
0
0
0
0.00295
1
0.064897
false
0
0.032448
0
0.138643
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f713d62e74a1cd787ec98b134812d16f5287ea
933
py
Python
N-aryTreeLevelOrderTraversal429.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
N-aryTreeLevelOrderTraversal429.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
N-aryTreeLevelOrderTraversal429.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
""" # Definition for a Node. """ class TreeNode(object): def __init__(self, val, children): self.val = val self.children = children class Solution(object): def levelOrder(self, root): """ :type root: Node :rtype: List[List[int]] """ if root is None: ...
20.733333
39
0.485531
103
933
4.359223
0.436893
0.040089
0
0
0
0
0
0
0
0
0
0.022569
0.382637
933
44
40
21.204545
0.756944
0.069668
0
0
0
0
0
0
0
0
0
0
0
1
0.068966
false
0
0.034483
0
0.241379
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f7593938a4204f0e27844ca0c493ca0b47ec5f
16,444
py
Python
plugin.video.team.milhanos/websocket/_core.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
venv/lib/python3.5/site-packages/websocket/_core.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/websocket/_core.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, ...
33.490835
90
0.589698
1,909
16,444
4.964379
0.199057
0.021948
0.020893
0.007386
0.385037
0.357497
0.305476
0.281629
0.257993
0.224755
0
0.006302
0.324495
16,444
490
91
33.559184
0.846867
0.43189
0
0.325
0
0
0.027961
0
0
0
0
0
0
1
0.14
false
0.01
0.08
0.025
0.37
0.005
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13f9663c3671ee791e1374fc1c550b7438edff48
1,033
py
Python
tests/base_tests/polygon_tests/test_contains.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
10
2020-07-18T12:55:52.000Z
2022-03-20T07:09:10.000Z
tests/base_tests/polygon_tests/test_contains.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
52
2019-07-11T16:59:01.000Z
2022-03-29T19:41:59.000Z
tests/base_tests/polygon_tests/test_contains.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
1
2020-03-22T12:56:07.000Z
2020-03-22T12:56:07.000Z
from typing import Tuple from hypothesis import given from gon.base import (Point, Polygon) from tests.utils import (equivalence, implication) from . import strategies @given(strategies.polygons) def test_vertices(polygon: Polygon) -> None: assert all(vertex in pol...
26.487179
72
0.708616
127
1,033
5.598425
0.283465
0.101266
0.090014
0.04782
0.371308
0.371308
0.295359
0.182841
0.182841
0.182841
0
0
0.224589
1,033
38
73
27.184211
0.88764
0
0
0.24
0
0
0
0
0
0
0
0
0.16
1
0.12
false
0
0.2
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9141fcf42d65abf107a484255f641db4d6e639b
3,249
py
Python
examples/canvas/bezier.py
sirpercival/kivy
29ef854a200e6764aae60ea29324379c69d271a3
[ "MIT" ]
2
2015-10-26T12:35:37.000Z
2020-11-26T12:06:09.000Z
examples/canvas/bezier.py
sirpercival/kivy
29ef854a200e6764aae60ea29324379c69d271a3
[ "MIT" ]
null
null
null
examples/canvas/bezier.py
sirpercival/kivy
29ef854a200e6764aae60ea29324379c69d271a3
[ "MIT" ]
3
2015-07-18T11:03:59.000Z
2018-03-17T01:32:42.000Z
#!/usr/bin/env python from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.uix.slider import Slider from kivy.graphics import Color, Bezier, Line class BezierTest(FloatLayout): def __init__(self, points=[], loop=False, *args, **kwargs): super(BezierTest, self).__init__(*args, *...
33.84375
82
0.544783
434
3,249
3.926267
0.221198
0.070423
0.056338
0.035211
0.461854
0.394953
0.326878
0.290493
0.216549
0.216549
0
0.038763
0.333026
3,249
95
83
34.2
0.747577
0.037242
0
0.136986
0
0
0.003202
0
0
0
0
0
0
1
0.09589
false
0
0.068493
0
0.287671
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b918984647c67e09bce945847905654d35530277
15,886
py
Python
tests/test_pyclipper.py
odidev/pyclipper
3de54fa4c4d5b8efeede364fbe69336f935f88f2
[ "MIT" ]
null
null
null
tests/test_pyclipper.py
odidev/pyclipper
3de54fa4c4d5b8efeede364fbe69336f935f88f2
[ "MIT" ]
null
null
null
tests/test_pyclipper.py
odidev/pyclipper
3de54fa4c4d5b8efeede364fbe69336f935f88f2
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Tests for Pyclipper wrapper library. """ from __future__ import print_function from unittest2 import TestCase, main import sys if sys.version_info < (3,): integer_types = (int, long) else: integer_types = (int,) import pyclipper # Example polygons from http://www.angusj.com/delphi/clip...
34.914286
111
0.660078
1,990
15,886
5.080905
0.149246
0.032539
0.021363
0.008901
0.485808
0.419147
0.325784
0.265849
0.235189
0.209277
0
0.029281
0.234672
15,886
454
112
34.991189
0.802352
0.045701
0
0.330247
0
0
0.026948
0.002913
0
0
0
0
0.231481
1
0.197531
false
0
0.021605
0
0.274691
0.003086
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b919ab13ac46e733a617fc950c062280033c20b8
439
py
Python
MAEnv/env_SingleCatchPigs/test_SingleCatchPigs.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
5
2020-05-25T03:08:09.000Z
2022-02-27T05:57:28.000Z
MAEnv/env_SingleCatchPigs/test_SingleCatchPigs.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-12-22T01:35:36.000Z
2022-01-28T01:51:06.000Z
MAEnv/env_SingleCatchPigs/test_SingleCatchPigs.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-05-06T01:56:55.000Z
2020-05-06T01:56:55.000Z
from env_SingleCatchPigs import EnvSingleCatchPigs import random env = EnvSingleCatchPigs(7) max_iter = 10000 env.set_agent_at([2, 2], 0) env.set_pig_at([4, 4], 0) for i in range(max_iter): print("iter= ", i) env.render() action = random.randint(0, 4) print('action is', action) reward, done = env.s...
24.388889
50
0.658314
66
439
4.272727
0.484848
0.106383
0
0
0
0
0
0
0
0
0
0.042735
0.200456
439
17
51
25.823529
0.760684
0
0
0
0
0
0.086758
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b91c1523d70c0416c1afa5a4c6a25a3d2f1e426b
3,417
py
Python
eust/tables/data.py
rasmuse/eust
2138076d52c0ffa20fba10e4e0319dd50c4e8a91
[ "MIT" ]
1
2021-03-14T04:06:02.000Z
2021-03-14T04:06:02.000Z
eust/tables/data.py
rasmuse/eust
2138076d52c0ffa20fba10e4e0319dd50c4e8a91
[ "MIT" ]
9
2019-04-29T09:01:39.000Z
2021-11-15T17:48:36.000Z
eust/tables/data.py
rasmuse/eust
2138076d52c0ffa20fba10e4e0319dd50c4e8a91
[ "MIT" ]
1
2019-10-23T08:56:33.000Z
2019-10-23T08:56:33.000Z
# -*- coding: utf-8 -*- import re import gzip import pandas as pd import numpy as np from eust.core import _download_file, conf _DIMENSION_NAME_RE = re.compile(r"^[a-z_0-9]+$") _YEAR_RE = re.compile(r"^(1|2)[0-9]{3}$") def _is_valid_dimension_name(s: str) -> bool: return bool(_DIMENSION_NAME_RE.match(s)) d...
26.695313
78
0.654375
514
3,417
4.070039
0.315175
0.021511
0.040631
0.011472
0.060229
0.021033
0
0
0
0
0
0.006379
0.220076
3,417
127
79
26.905512
0.778612
0.125549
0
0
0
0
0.047731
0
0
0
0
0
0.064103
1
0.089744
false
0
0.064103
0.012821
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
b91ce0003a23729f5cf4b45b783933c9e0cd6696
22,196
py
Python
utils.py
fatemehtd/Echo-SyncNet
ebb280e83a67b31436c4cfa420f9c06a92ac8c12
[ "MIT" ]
6
2021-03-19T16:55:30.000Z
2022-03-15T08:41:56.000Z
utils.py
matiasmolinas/Echo-SyncNet
f7f81ead7a24d7574c0668df3765ef58fd71d54d
[ "MIT" ]
3
2021-10-01T22:15:44.000Z
2022-03-25T03:12:47.000Z
utils.py
matiasmolinas/Echo-SyncNet
f7f81ead7a24d7574c0668df3765ef58fd71d54d
[ "MIT" ]
3
2021-03-19T16:55:35.000Z
2022-02-03T10:40:48.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from config import CONFIG import json import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # pylint: disable=g-import-not-at-top import io import math import os import time from absl i...
36.748344
113
0.621193
2,947
22,196
4.45979
0.163217
0.02313
0.011869
0.015826
0.297877
0.227574
0.182987
0.160846
0.146238
0.125618
0
0.007998
0.278969
22,196
603
114
36.809287
0.813234
0.128807
0
0.202765
0
0
0.060903
0
0
0
0
0
0.011521
1
0.080645
false
0.004608
0.036866
0.018433
0.182028
0.004608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b91d0a28a2d3c169f55ef3fbe14306db5438a499
8,468
py
Python
UnityPy/classes/Sprite.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
UnityPy/classes/Sprite.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
UnityPy/classes/Sprite.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
from enum import IntEnum from .Mesh import BoneWeights4, SubMesh, VertexData from .NamedObject import NamedObject from .PPtr import PPtr, save_ptr from ..export import SpriteHelper from ..enums import SpriteMeshType from ..streams import EndianBinaryWriter class Sprite(NamedObject): @property def image(self)...
34.563265
90
0.599906
1,003
8,468
4.879362
0.155533
0.051083
0.026972
0.039232
0.380057
0.263997
0.231099
0.190437
0.087045
0.069473
0
0.042114
0.296174
8,468
244
91
34.704918
0.779027
0.05633
0
0.319372
0
0
0
0
0
0
0.000378
0
0
1
0.068063
false
0
0.036649
0.010471
0.188482
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b91e27e8ce2a32cb1f2fa0c55d35f35399d00f99
11,123
py
Python
eazy/filters.py
albertfxwang/eazy-py
bcfd8a1e49f077adc794202871345542ab29800b
[ "MIT" ]
null
null
null
eazy/filters.py
albertfxwang/eazy-py
bcfd8a1e49f077adc794202871345542ab29800b
[ "MIT" ]
null
null
null
eazy/filters.py
albertfxwang/eazy-py
bcfd8a1e49f077adc794202871345542ab29800b
[ "MIT" ]
null
null
null
import numpy as np import os from astropy.table import Table from . import utils __all__ = ["FilterDefinition", "FilterFile", "ParamFilter"] VEGA_FILE = os.path.join(utils.path_to_eazy_data(), 'alpha_lyr_stis_008.fits') VEGA = Table.read(VEGA_FILE) for c in VEGA.col...
30.225543
134
0.507687
1,269
11,123
4.353822
0.22695
0.034751
0.017919
0.01991
0.237828
0.206878
0.1819
0.15095
0.142262
0.115113
0
0.023102
0.37346
11,123
367
135
30.307902
0.769694
0.186281
0
0.288889
0
0.005556
0.052257
0.005914
0
0
0
0
0
1
0.1
false
0
0.072222
0.011111
0.272222
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b91e9c056c9dab4c7981c513788ac7b746223cf5
672
py
Python
LeetCode/106.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
1
2020-12-08T02:01:18.000Z
2020-12-08T02:01:18.000Z
LeetCode/106.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
null
null
null
LeetCode/106.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
null
null
null
# # LeetCode # # Problem - 106 # URL - https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ # # 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 = ri...
24
97
0.651786
86
672
5.046512
0.476744
0.082949
0.092166
0.115207
0
0
0
0
0
0
0
0.00947
0.214286
672
27
98
24.888889
0.8125
0.443452
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
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
b91f064ec51160dd5a168a0ea9d44e81a3af31b7
44,880
py
Python
evalml/automl/automl_search.py
skvorekn/evalml
2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8
[ "BSD-3-Clause" ]
null
null
null
evalml/automl/automl_search.py
skvorekn/evalml
2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8
[ "BSD-3-Clause" ]
null
null
null
evalml/automl/automl_search.py
skvorekn/evalml
2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8
[ "BSD-3-Clause" ]
null
null
null
import copy import time from collections import defaultdict import cloudpickle import numpy as np import pandas as pd import woodwork as ww from sklearn.model_selection import BaseCrossValidator from .pipeline_search_plots import PipelineSearchPlots from evalml.automl.automl_algorithm import IterativeAlgorithm from ...
50.145251
234
0.660561
5,347
44,880
5.309519
0.115766
0.018175
0.010039
0.013737
0.241811
0.147658
0.103029
0.090525
0.061571
0.048679
0
0.002556
0.267603
44,880
894
235
50.201342
0.86115
0.228142
0
0.103565
0
0.013582
0.16504
0.027253
0
0
0
0
0
1
0.047538
false
0.001698
0.044143
0
0.154499
0.005093
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b92225fd1fc48f3b53478df0ef2d1501b1d04475
1,625
py
Python
yellowbrick/regressor/base.py
Juan0001/yellowbrick-docs-zh
36275d9704fc2a946c5bec5f802106bb5281efd1
[ "Apache-2.0" ]
20
2018-03-24T02:29:20.000Z
2022-03-03T05:01:40.000Z
yellowbrick/regressor/base.py
Juan0001/yellowbrick-docs-zh
36275d9704fc2a946c5bec5f802106bb5281efd1
[ "Apache-2.0" ]
4
2018-03-20T12:01:17.000Z
2019-04-07T16:02:19.000Z
yellowbrick/regressor/base.py
Juan0001/yellowbrick-docs-zh
36275d9704fc2a946c5bec5f802106bb5281efd1
[ "Apache-2.0" ]
5
2018-03-17T08:18:57.000Z
2019-11-15T02:20:20.000Z
# yellowbrick.regressor.base # Base classes for regressor Visualizers. # # Author: Rebecca Bilbro <rbilbro@districtdatalabs.com> # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Fri Jun 03 10:30:36 2016 -0700 # # Copyright (C) 2016 District Data Labs # For license information, see LICENSE.tx...
30.660377
79
0.582154
148
1,625
6.310811
0.608108
0.023555
0.029979
0.049251
0.072805
0
0
0
0
0
0
0.017738
0.167385
1,625
52
80
31.25
0.672579
0.424615
0
0
0
0
0.197279
0.042517
0
0
0
0
0
1
0.071429
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
b92247a49fd2631992a5eddee925c5305320a529
2,941
py
Python
contrib/stack/stripmapStack/crossmul.py
falkamelung/isce2
edea69d4b6216f4ac729eba78f12547807a2751a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
contrib/stack/stripmapStack/crossmul.py
falkamelung/isce2
edea69d4b6216f4ac729eba78f12547807a2751a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
contrib/stack/stripmapStack/crossmul.py
falkamelung/isce2
edea69d4b6216f4ac729eba78f12547807a2751a
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-05T16:39:25.000Z
2021-06-05T16:39:25.000Z
#!/usr/bin/env python3 import os import argparse import logging import isce import isceobj from components.stdproc.stdproc import crossmul from iscesys.ImageUtil.ImageUtil import ImageUtil as IU def createParser(): ''' Command Line Parser. ''' parser = argparse.ArgumentParser( description='Generat...
27.485981
102
0.682761
321
2,941
6.208723
0.41433
0.022579
0.042649
0.022077
0
0
0
0
0
0
0
0.012632
0.192452
2,941
106
103
27.745283
0.826526
0.039102
0
0
0
0
0.092053
0
0
0
0
0
0
1
0.057143
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b92338655b37aa1b9646d78826676f4639eac7d3
550
py
Python
27. Remove Element/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
27. Remove Element/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
27. Remove Element/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
from typing import List class Solution: def removeElement(self, nums: List[int], val: int) -> int: if not nums: return 0 curr = 0 n = len(nums) while curr < n: if nums[curr] == val: nums[curr] = nums[n-1] n -= 1 else...
23.913043
62
0.461818
66
550
3.727273
0.424242
0.02439
0
0
0
0
0
0
0
0
0
0.031546
0.423636
550
23
63
23.913043
0.74448
0.018182
0
0
0
0
0.014842
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9270600c4aae588202efc6c296f0228f4d2527a
21,441
py
Python
tensorboard/backend/event_processing/data_provider_test.py
hongxu-jia/tensorboard
98d4dadc61fd5a0580bed808653c59fb37748893
[ "Apache-2.0" ]
1
2021-01-07T14:58:47.000Z
2021-01-07T14:58:47.000Z
tensorboard/backend/event_processing/data_provider_test.py
hongxu-jia/tensorboard
98d4dadc61fd5a0580bed808653c59fb37748893
[ "Apache-2.0" ]
null
null
null
tensorboard/backend/event_processing/data_provider_test.py
hongxu-jia/tensorboard
98d4dadc61fd5a0580bed808653c59fb37748893
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
39.559041
80
0.583741
2,213
21,441
5.482151
0.167646
0.032971
0.066436
0.031322
0.601302
0.560007
0.507089
0.482361
0.457798
0.43785
0
0.012269
0.308148
21,441
541
81
39.632163
0.805582
0.080826
0
0.462555
0
0
0.068962
0
0
0
0
0.001848
0.171806
1
0.052863
false
0
0.048458
0
0.11674
0.002203
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b9299565a87f9a052852f5ae8225680eeeb2de61
1,923
py
Python
tests/test_serialize.py
aferrall/redner
be52e4105140f575f153d640ba889eb6e6015616
[ "MIT" ]
1,146
2018-11-11T01:47:18.000Z
2022-03-31T14:11:03.000Z
tests/test_serialize.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
177
2018-11-13T22:48:25.000Z
2022-03-30T07:19:29.000Z
tests/test_serialize.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
127
2018-11-11T02:32:17.000Z
2022-03-31T07:24:03.000Z
import pyredner import numpy as np import torch cam = pyredner.Camera(position = torch.tensor([0.0, 0.0, -5.0]), look_at = torch.tensor([0.0, 0.0, 0.0]), up = torch.tensor([0.0, 1.0, 0.0]), fov = torch.tensor([45.0]), # in degree c...
34.339286
83
0.560582
264
1,923
3.962121
0.291667
0.034417
0.031549
0.01912
0.397706
0.381453
0.237094
0.237094
0.237094
0.237094
0
0.077145
0.278731
1,923
55
84
34.963636
0.677001
0.01144
0
0.173913
0
0
0.015806
0.015806
0
0
0
0
0
1
0
false
0
0.065217
0
0.065217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b92a551001bac345f595f68ea0440f1231ad8e57
2,302
py
Python
src/zope/publisher/tests/test_requestdataproperty.py
Shoobx/zope.publisher
790e82045d7ae06146bd8c5e27139555b9ec1641
[ "ZPL-2.1" ]
3
2016-11-18T08:58:09.000Z
2021-02-01T06:13:45.000Z
src/zope/publisher/tests/test_requestdataproperty.py
Shoobx/zope.publisher
790e82045d7ae06146bd8c5e27139555b9ec1641
[ "ZPL-2.1" ]
42
2015-06-02T19:26:10.000Z
2022-03-15T07:24:03.000Z
src/zope/publisher/tests/test_requestdataproperty.py
Shoobx/zope.publisher
790e82045d7ae06146bd8c5e27139555b9ec1641
[ "ZPL-2.1" ]
7
2015-04-03T09:29:31.000Z
2021-06-07T14:47:45.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
27.404762
78
0.614683
222
2,302
6.337838
0.504505
0.017058
0.019901
0.039801
0.098081
0.098081
0.098081
0.098081
0.098081
0.098081
0
0.005679
0.235013
2,302
83
79
27.73494
0.793299
0.212858
0
0.26087
0
0
0.074436
0
0
0
0
0
0.043478
1
0.108696
false
0.043478
0.065217
0.021739
0.413043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b92b002b9d57e933962f9291a749b365792c1b9a
1,444
py
Python
src/thornfield/caches/cache_compression_decorator.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
2
2020-11-24T13:27:14.000Z
2020-11-24T13:29:40.000Z
src/thornfield/caches/cache_compression_decorator.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
1
2020-11-24T13:33:45.000Z
2020-11-24T15:10:41.000Z
src/thornfield/caches/cache_compression_decorator.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
null
null
null
from typing import Callable, AnyStr, Optional from zlib import compress as default_compress, decompress as default_decompress from .cache import Cache from ..constants import NOT_FOUND class CacheCompressionDecorator(Cache): def __init__( self, cache: Cache, compress: Optional[Callable[[s...
29.469388
79
0.628809
160
1,444
5.45
0.275
0.068807
0.029817
0.041284
0
0
0
0
0
0
0
0.001905
0.272853
1,444
48
80
30.083333
0.828571
0
0
0.128205
0
0
0.006925
0
0
0
0
0
0
1
0.153846
false
0
0.102564
0.076923
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
b92be50c97841e71ffe31a7d7baa405cc9ba5537
38,846
py
Python
manim/mobject/vector_field.py
kdkasad/manim
249b1dcab0f18a43e953b5fda517734084c0a941
[ "MIT" ]
2
2021-12-07T14:25:07.000Z
2021-12-09T14:16:10.000Z
manim/mobject/vector_field.py
kdkasad/manim
249b1dcab0f18a43e953b5fda517734084c0a941
[ "MIT" ]
3
2021-09-15T08:11:29.000Z
2021-10-06T02:00:03.000Z
manim/mobject/vector_field.py
kdkasad/manim
249b1dcab0f18a43e953b5fda517734084c0a941
[ "MIT" ]
3
2020-04-10T20:38:06.000Z
2020-09-30T03:03:45.000Z
"""Mobjects representing vector fields.""" __all__ = [ "VectorField", "ArrowVectorField", "StreamLines", ] import itertools as it import random from math import ceil, floor from typing import Callable, Iterable, Optional, Sequence, Tuple, Type import numpy as np from colour import Color from PIL import I...
36.96099
185
0.57298
4,720
38,846
4.567161
0.1125
0.032147
0.026627
0.013221
0.425291
0.375006
0.353853
0.323422
0.30649
0.299253
0
0.010795
0.341837
38,846
1,050
186
36.99619
0.832362
0.438604
0
0.351351
0
0
0.022145
0
0
0
0
0.002857
0
1
0.049896
false
0.004158
0.045738
0.004158
0.137214
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b92e1fb5ed102dbd1d7dc2d4b0ef720e265a976f
1,045
py
Python
electrum_trc/scripts/txradar.py
TheSin-/electrum-trc
d2f5b15fd4399a9248cce0d63e20128f3f54e69c
[ "MIT" ]
1
2019-08-20T18:05:32.000Z
2019-08-20T18:05:32.000Z
electrum_trc/scripts/txradar.py
TheSin-/electrum-trc
d2f5b15fd4399a9248cce0d63e20128f3f54e69c
[ "MIT" ]
1
2022-03-14T19:45:31.000Z
2022-03-14T19:45:31.000Z
electrum_trc/scripts/txradar.py
TheSin-/electrum-trc
d2f5b15fd4399a9248cce0d63e20128f3f54e69c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import asyncio from electrum_trc.network import filter_protocol, Network from electrum_trc.util import create_and_start_event_loop, log_exceptions try: txid = sys.argv[1] except: print("usage: txradar txid") sys.exit(1) loop, stopping_fut, loop_thread = create_and_star...
28.243243
99
0.675598
138
1,045
4.949275
0.543478
0.035139
0.043924
0.055637
0.06735
0
0
0
0
0
0
0.019277
0.205742
1,045
36
100
29.027778
0.803614
0.020096
0
0.071429
0
0
0.117302
0.025415
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b92ef9143bb84fe6d37501129ff559d015cf231e
1,091
py
Python
jp.atcoder/dp/dp_g/24586988.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/dp/dp_g/24586988.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/dp/dp_g/24586988.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import typing import numpy as np def solve( n: int, g: np.array, ) -> typing.NoReturn: indeg = np.zeros( n, dtype=np.int64, ) for v in g[:, 1]: indeg[v] += 1 g = g[g[:, 0].argsort()] i = np.searchsorted( g[:, 0], np.arange(n + 1) ) q = [ v for v in range(n) if...
13.810127
30
0.505041
172
1,091
3.162791
0.372093
0.044118
0.066176
0.047794
0.084559
0.084559
0.084559
0
0
0
0
0.02969
0.320807
1,091
78
31
13.987179
0.704453
0
0
0.079365
0
0
0.019248
0
0
0
0
0
0
1
0.031746
false
0
0.095238
0
0.126984
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b930187de467bdc99d38231d4b217f6589a62613
2,039
py
Python
starteMessung.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
starteMessung.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
starteMessung.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
1
2021-08-09T14:57:57.000Z
2021-08-09T14:57:57.000Z
from datetime import datetime from pypylon import pylon import nimmAuf import smbus2 import os import argparse import bestimmeVolumen from threading import Thread import time programmstart = time.time() # Argumente parsen (bei Aufruf im Terminal z.B. 'starteMessung.py -n 100' eingeben) ap = argparse.ArgumentParser(de...
34.559322
169
0.703776
254
2,039
5.570866
0.570866
0.016961
0.018375
0
0
0
0
0
0
0
0
0.022975
0.188818
2,039
58
170
35.155172
0.832527
0.172143
0
0
0
0.025641
0.299166
0.027414
0
0
0.002384
0
0
1
0
false
0
0.230769
0
0.25641
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b93050ad4c3c78860eb79accbddb8566a673cb7e
3,211
py
Python
application/services/decart.py
Sapfir0/web-premier-eye
f060b01e98a923374ea60360ba133caaa654b6c7
[ "MIT" ]
null
null
null
application/services/decart.py
Sapfir0/web-premier-eye
f060b01e98a923374ea60360ba133caaa654b6c7
[ "MIT" ]
null
null
null
application/services/decart.py
Sapfir0/web-premier-eye
f060b01e98a923374ea60360ba133caaa654b6c7
[ "MIT" ]
1
2020-01-06T18:27:45.000Z
2020-01-06T18:27:45.000Z
import os import tempfile def hasOnePointInside(bigRect, minRect): # хотя бы одна точка лежит внутри minY, minX, maxY, maxX = bigRect y1, x1, y2, x2 = minRect a = (minY <= y1 <= maxY) b = (minX <= x1 <= maxX) c = (minY <= y2 <= maxY) d = (minX <= x2 <= maxX) return a or b or c or d d...
28.927928
117
0.62753
408
3,211
4.92402
0.392157
0.029866
0.041812
0.011946
0.092583
0.092583
0.065704
0.065704
0.065704
0.065704
0
0.017307
0.262224
3,211
110
118
29.190909
0.83073
0.094986
0
0.15
0
0
0.057686
0
0
0
0
0
0
1
0.1375
false
0
0.075
0.075
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
b931a37de7e1f1ed0fc213effed503351b163f01
9,946
py
Python
goopylib/objects/_BBox.py
BhavyeMathur/goopylib
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
25
2020-07-09T10:57:16.000Z
2022-02-06T10:31:34.000Z
goopylib/objects/_BBox.py
BhavyeMathur/goopy
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
48
2020-07-02T20:08:40.000Z
2020-07-06T16:09:25.000Z
goopylib/objects/_BBox.py
BhavyeMathur/goopy
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
1
2020-12-01T13:45:53.000Z
2020-12-01T13:45:53.000Z
from goopylib.objects.GraphicsObject import GraphicsObject from goopylib.styles import * class BBox(GraphicsObject): # Internal base class for objects represented by bounding box # (opposite corners) Line segment is a degenerate case. resizing_objects = [] def __init__(self, p1, p2, bounds=None, fi...
37.81749
122
0.594008
1,426
9,946
4.037868
0.095372
0.047933
0.020667
0.016672
0.659083
0.613234
0.597951
0.536124
0.484022
0.456929
0
0.034951
0.289463
9,946
262
123
37.961832
0.779822
0.129801
0
0.397849
0
0
0.120204
0.0051
0
0
0
0
0
1
0.155914
false
0.005376
0.010753
0.091398
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b931c0b51c15ef9d8f1fe028562964e4cc16bd70
670
py
Python
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
1
2021-04-01T06:19:02.000Z
2021-04-01T06:19:02.000Z
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
# https://www.acmicpc.net/problem/1260 n, m, v = map(int, input().split()) graph = [[0] * (n+1) for _ in range(n+1)] visit = [False] * (n+1) for _ in range(m): R, C = map(int, input().split()) graph[R][C] = 1 graph[C][R] = 1 def dfs(v): visit[v] = True print(v, end=" ") for i in range(1, n+...
19.142857
43
0.470149
114
670
2.745614
0.324561
0.031949
0.070288
0.102236
0.479233
0.268371
0.268371
0.159744
0.159744
0.159744
0
0.037778
0.328358
670
35
44
19.142857
0.657778
0.053731
0
0.153846
0
0
0.00316
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b932e9aa7c1cc0da8573d5baaf3b16b4549529cd
347
py
Python
coding_intereview/1576. Replace All ?'s to Avoid Consecutive Repeating Characters.py
Jahidul007/Python-Bootcamp
3c870587465ff66c2c1871c8d3c4eea72463abda
[ "MIT" ]
2
2020-12-07T16:07:07.000Z
2020-12-07T16:08:53.000Z
coding_intereview/1576. Replace All ?'s to Avoid Consecutive Repeating Characters.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
null
null
null
coding_intereview/1576. Replace All ?'s to Avoid Consecutive Repeating Characters.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
1
2020-10-03T16:38:02.000Z
2020-10-03T16:38:02.000Z
class Solution: def modifyString(self, s: str) -> str: s = list(s) for i in range(len(s)): if s[i] == "?": for c in "abc": if (i == 0 or s[i-1] != c) and (i+1 == len(s) or s[i+1] != c): s[i] = c break ...
31.545455
83
0.337176
49
347
2.387755
0.469388
0.068376
0.068376
0.08547
0.102564
0
0
0
0
0
0
0.022989
0.498559
347
10
84
34.7
0.649425
0
0
0
0
0
0.011527
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0