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
942dc9b440e4ffa9fdc514a9cb6d21b6ea806211
398
py
Python
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 # 成绩排名 (20) n = int(input()) l = input() maxRecord = l minRecord = l maxScore = int(l.split()[2]) minScore = int(l.split()[2]) for i in range(n-1): l = input() s = int(l.split()[2]) if s < minScore: minScore = s minRecord = l if s > maxScore: maxScore = s maxRecord = l p...
18.952381
39
0.580402
62
398
3.725806
0.403226
0.051948
0.116883
0.12987
0
0
0
0
0
0
0
0.028481
0.20603
398
21
40
18.952381
0.702532
0.077889
0
0.352941
0
0
0.005464
0
0
0
0
0
0
1
0
false
0
0
0
0
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
942ecae3009ce2581679881569b9f0511a4f09f7
9,057
py
Python
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
12
2019-08-17T15:40:11.000Z
2022-02-04T16:22:18.000Z
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
null
null
null
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
3
2019-06-04T08:39:56.000Z
2020-01-10T06:52:04.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Attention(nn.Module): def __init__(self, query_size, attention_size): super(Attention, self).__init__() self.query_size = query_size self.key_size = attention_size self.map_query = nn.Linear(query_size, attent...
38.540426
114
0.602738
1,311
9,057
4.007628
0.154081
0.026646
0.031405
0.021698
0.308337
0.254473
0.177579
0.168062
0.142558
0.100114
0
0.010408
0.299879
9,057
234
115
38.705128
0.818167
0.320857
0
0.266667
0
0
0.027276
0
0
0
0
0
0.014815
1
0.051852
false
0
0.022222
0
0.118519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9432f1baae90553cebe69202cb4904909bae73e4
3,737
py
Python
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
2
2018-12-19T22:06:22.000Z
2019-01-29T16:59:31.000Z
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
null
null
null
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
2
2019-02-10T22:40:43.000Z
2019-04-03T06:16:33.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # """ InferSent models. See https://github.com/facebookresearch/InferSent. """ from __future__ import absolute_import, division,...
33.366071
138
0.704843
509
3,737
4.97053
0.357564
0.06166
0.040316
0.010672
0.121344
0.097233
0.081423
0.048221
0.048221
0
0
0.016468
0.17126
3,737
111
139
33.666667
0.800452
0.270003
0
0
0
0
0.132548
0.010634
0
0
0
0
0.018868
1
0.075472
false
0
0.169811
0
0.320755
0.037736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
943370e1bfc6784163e96c08d443c0404b7a159d
799
py
Python
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
51
2015-09-02T16:48:36.000Z
2022-03-03T04:01:09.000Z
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
26
2015-06-16T21:30:21.000Z
2019-12-12T12:53:30.000Z
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
20
2015-12-25T05:57:37.000Z
2022-01-06T06:44:55.000Z
"""This module provides constants used in the rest of the package """ # some constants missingval = -99999999. m2km = 0.001 km2m = 1000. gravity = 9.81 maxparcels = 99999 L = 2.501e6 # latent heat of vaporization Rd = 287.04 # gas constant dry air Rv = 461.5 # gas constant water vapor epsilon ...
17.755556
65
0.627034
137
799
3.642336
0.627737
0.012024
0.036072
0.056112
0.088176
0.088176
0.088176
0
0
0
0
0.19322
0.261577
799
44
66
18.159091
0.652542
0.289111
0
0
0
0
0
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
943405ec2b5893fc8c55f18e23a5611334471ceb
23,161
py
Python
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
1
2019-11-18T23:12:22.000Z
2019-11-18T23:12:22.000Z
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
null
null
null
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
1
2020-04-19T12:16:15.000Z
2020-04-19T12:16:15.000Z
from collections import defaultdict from typing import Union, List, Dict, Set, Iterable, Optional from baikal._core.data_placeholder import is_data_placeholder_list, DataPlaceholder from baikal._core.digraph import DiGraph from baikal._core.step import Step, InputStep from baikal._core.typing import ArrayLike from bai...
35.964286
112
0.614265
2,764
23,161
4.992041
0.149783
0.012176
0.00587
0.012176
0.218655
0.140093
0.118206
0.099652
0.075228
0.058124
0
0.001066
0.311731
23,161
643
113
36.020218
0.8645
0.354734
0
0.2
0
0
0.056264
0
0
0
0
0.007776
0
1
0.060317
false
0.003175
0.022222
0.003175
0.152381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
943464b9a939d5e26362c02446f6afb5de549747
1,127
py
Python
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
112
2018-04-18T07:13:03.000Z
2022-03-11T03:36:34.000Z
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
16
2018-05-11T11:41:08.000Z
2021-04-24T03:50:54.000Z
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
45
2018-04-18T07:13:06.000Z
2021-12-22T03:46:18.000Z
''' Encode dataset as biLM embeddings to a file. ''' import argparse import json from bilm import dump_bilm_embeddings parser = argparse.ArgumentParser() parser.add_argument('--gpu', '-g', type=int, default=-1, help='GPU ID (negative value indicates CPU)') parser.add_argument('--batchsize', '-b', ...
33.147059
72
0.704525
153
1,127
4.973856
0.48366
0.047306
0.089356
0.052562
0.144547
0.086728
0
0
0
0
0
0.041622
0.168589
1,127
33
73
34.151515
0.770544
0.063886
0
0
0
0
0.267431
0.08787
0
0
0
0
0.041667
1
0
false
0
0.125
0
0.125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94352c18896ac52cb3e3688b9085e562ded5443b
7,023
py
Python
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
import cv2 import cv2.aruco as aruco import numpy as np import configparser import os class ARTracker: # Constructor def __init__(self, cameras, write=False): self.write=write self.distanceToMarker = -1 self.distanceToMarker1 = 0 self.distanceToMarker2 = 0 self.widthOf...
46.82
137
0.544212
791
7,023
4.788875
0.262958
0.019799
0.031415
0.033263
0.324974
0.278775
0.26056
0.220961
0.206705
0.19905
0
0.038318
0.349708
7,023
149
138
47.134228
0.79111
0.153496
0
0.324074
0
0
0.065529
0.018578
0
0
0
0
0
1
0.027778
false
0
0.046296
0
0.12037
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94354260b7f3c6fef0f04ea5b99624f3fede367a
1,850
py
Python
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
import os import requests PAGE_ACCESS_TOKEN = os.getenv('PAGE_ACCESS_TOKEN') def send_msg(data): res = requests.post("https://graph.facebook.com/v2.6/me/messages", params={'access_token': PAGE_ACCESS_TOKEN}, json=data) if res.status_code == 200: pass ...
27.205882
129
0.535676
216
1,850
4.412037
0.412037
0.080797
0.075551
0.09234
0.271773
0.214061
0.159496
0.081847
0
0
0
0.026054
0.294595
1,850
67
130
27.61194
0.704215
0.094054
0
0.280702
0
0.035088
0.313585
0
0
0
0
0
0
1
0.052632
false
0.035088
0.035088
0
0.087719
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9436f350e7d7acc2d2cbaf063890d3cd75d3b805
5,015
py
Python
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
1
2017-09-08T02:34:22.000Z
2017-09-08T02:34:22.000Z
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
null
null
null
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
null
null
null
import random, string, sys GROWTH_RATE = 2 # we only place repo's in locations that support at least GROWTH_RATE times the size of the repo CHIP_RATE = 0.9 # if a repo has no locations that support GROWTH_RATE * repo.local_size, we chip off a bit off the desired size to see if we can find a repo anyway MAX_SERVERS = 1...
31.149068
185
0.705085
792
5,015
4.270202
0.189394
0.022768
0.028386
0.014193
0.152868
0.041987
0
0
0
0
0
0.01939
0.15673
5,015
160
186
31.34375
0.780326
0.098903
0
0.141732
0
0.007874
0.054102
0
0
0
0
0
0
1
0.141732
false
0
0.007874
0.062992
0.275591
0.086614
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94370721e69f25f233cc1d50ab8e488f9896e6fc
881
py
Python
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
class Solution(object): def compareVersion(self, version1, version2): v1 = version1.split('.') v2 = version2.split('.') int_v1 = 0 int_v2 = 0 point_v1 = 0 point_v2 = 0 int_v1 = self.convert(v1[0]) int_v2 = self.convert(v2[0]) if len(v1) > 1: point_v1 = self.convert(v1[1]) if len(v2) > 1: ...
17.62
80
0.553916
163
881
2.895706
0.288344
0.042373
0.076271
0.033898
0.161017
0.161017
0
0
0
0
0
0.129376
0.254257
881
49
81
17.979592
0.589041
0
0
0.205128
0
0
0.026107
0
0
0
0
0
0
1
0.051282
false
0
0
0
0.25641
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
943809361a17063e9ad22cf431e9277484379aec
1,003
py
Python
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
#!/bin/python3 # Copyright (C) 2020 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org> # SPDX-License-Identifier: MIT """Day Three, Toboggan Trajectory.""" from sys import argv from utils import open_file, arrange, usage_and_exit, product def solve(terrain, slopes): """Return the product of the number of t...
22.288889
74
0.63011
143
1,003
4.293706
0.475524
0.043974
0.039088
0.052117
0.14658
0.084691
0
0
0
0
0
0.030457
0.214357
1,003
44
75
22.795455
0.748731
0.31007
0
0
0
0
0.013514
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
943c68bb009981d99005672e8d3f04e12a35c5f4
1,753
py
Python
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
import pickle # openしたfileのread, write関数を細工して,2**3 class LargeObject(object): def __init__(self, f): self.f = f def __getattr__(self, item): # 項目名'item'を参照されたらf.'item'を返す # (itemは任意の文字列) # 要するにfile objectのread write以外は元のファイルオブジェクトを見ればよい return getattr(self.f, item) ...
31.303571
101
0.560753
215
1,753
4.413953
0.339535
0.085353
0.075869
0.063224
0.325606
0.269758
0.219178
0.219178
0.219178
0.084299
0
0.025224
0.298916
1,753
55
102
31.872727
0.746949
0.124929
0
0.263158
0
0
0.074705
0
0
0
0
0
0
1
0.157895
false
0
0.052632
0.026316
0.368421
0.131579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
943f4b96e47fad94ad779b8d7570c1b93a4ab158
4,373
py
Python
RpiServer/main.py
MaxThom/LightYourHearth
bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c
[ "MIT" ]
null
null
null
RpiServer/main.py
MaxThom/LightYourHearth
bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c
[ "MIT" ]
4
2021-06-08T22:21:15.000Z
2022-03-12T00:47:34.000Z
RpiServer/main.py
MaxThom/LightYourHearth-rpi
e8b01569e583d7aa3343b9bdcd8b0e7d4834ae5f
[ "MIT" ]
null
null
null
from blue_connect import BluetoothComm from ledstrip import Ledstrip from button_manager import ButtonManager import subprocess import constants import pprint import time import datetime # ps -ef | grep python # sudo kill -9 [pid] # pip freeze > requirements.txt # pip install -r requirements.txt # sudo systemctl st...
34.706349
102
0.686943
524
4,373
5.429389
0.26145
0.105448
0.036555
0.049209
0.035852
0.035852
0.035852
0.035852
0
0
0
0.004734
0.227075
4,373
125
103
34.984
0.836982
0.075234
0
0.148515
0
0
0.028763
0.016117
0
0
0
0
0
1
0.059406
false
0
0.079208
0
0.138614
0.089109
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9440dc39866b4ed3cdff0a21be7c14bc4667a7e9
837
py
Python
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Tutorials > 10 Days of Statistics > Day 5: Normal Distribution II # Problems based on basic statistical distributions. # # https://www.hackerrank.com/challenges/s10-normal-distribution-2/problem # challenge id: 21230 # import math def N(x, µ, σ): """ Normal Distribution """ π = math.pi return math.exp(...
24.617647
74
0.610514
131
837
3.908397
0.450382
0.027344
0.017578
0.152344
0.287109
0.140625
0.140625
0.140625
0
0
0
0.065574
0.198327
837
33
75
25.363636
0.695976
0.450418
0
0
0
0
0.041002
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.416667
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9441d12538aebf4fa87c06330fdaa81538b0282c
2,214
py
Python
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
import pygame from random import randrange from cloud_part import Cloud_Part import math ''' This class creates clouds at random locations in the screen. ''' class Cloud(object): # Class initializer def __init__(self, screen, width, height, horizontal_constraints, vertical_constraints, VERBOSE): super...
38.842105
101
0.533875
264
2,214
4.25
0.30303
0.064171
0.096257
0.034759
0.157754
0.157754
0.092692
0.092692
0
0
0
0.031496
0.369015
2,214
56
102
39.535714
0.771654
0.049684
0
0
0
0
0.025616
0
0
0
0
0
0
1
0.027027
false
0
0.108108
0
0.162162
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9441f8090083e12e5068f348f98fdd3f2fe20640
2,070
py
Python
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
3
2021-02-22T00:56:48.000Z
2021-03-25T06:15:38.000Z
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
3
2021-05-03T18:42:30.000Z
2022-02-27T12:23:09.000Z
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
null
null
null
import base64 import json import pathlib import requests import sys BASE_DIR = pathlib.Path(__file__).parent.absolute() with open(BASE_DIR.joinpath('config.json')) as config_file: config = json.load(config_file) WEB_HOOK = "https://pabe.vanillacre.me/deepwebhook" querystring: dict = { "apikey": config['API_K...
33.934426
106
0.702415
278
2,070
5.064748
0.395683
0.044744
0.036932
0.02983
0.267045
0.225852
0.177557
0.177557
0.177557
0.115057
0
0.009227
0.162319
2,070
60
107
34.5
0.802768
0.165217
0
0.095238
0
0.047619
0.228356
0
0
0
0
0
0
1
0.047619
false
0
0.119048
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
944340e0a695126f125615f284c92afb1ac4bd00
4,587
py
Python
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
6
2018-04-02T22:00:57.000Z
2021-12-17T00:33:12.000Z
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
null
null
null
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
null
null
null
from _binding import * class SndFileError(Exception): pass class VirtualIO(SF_VIRTUAL_IO): def __init__(self, fd): # references self._fd = fd self._c_char = c_char self._string_at = string_at def get_filelen(userdata): where = self._fd.tell() ...
29.216561
96
0.571179
554
4,587
4.425993
0.184116
0.053834
0.022431
0.020799
0.128059
0.115008
0.081566
0.055465
0.055465
0.055465
0
0.006485
0.327665
4,587
156
97
29.403846
0.788586
0.010464
0
0.146341
0
0
0.014998
0
0
0
0
0
0
1
0.154472
false
0.00813
0.00813
0.03252
0.349594
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9449a2b0d6c1565d42d9cb5e3842bc3035d92db9
833
py
Python
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
null
null
null
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
1
2020-04-28T07:54:19.000Z
2020-05-23T17:57:43.000Z
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
null
null
null
"""tkimage.pyw 简单的图片查看器 """ import tkinter as tk import tkinter.filedialog as fd def openimage(canvas): """事件处理函数:使用文件对话框打开图片 """ filename = fd.askopenfilename(filetypes=[("PNG图片", "*.png"), ("GIF图片", "*.gif")]) global image # 注意这个需要定义为全局变量 ...
25.242424
66
0.565426
86
833
5.372093
0.616279
0.056277
0
0
0
0
0
0
0
0
0
0.023411
0.282113
833
32
67
26.03125
0.749164
0.105642
0
0
0
0
0.079023
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9449bc4a88c928fcca8b119b92228696c1d3f838
1,027
py
Python
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
3
2019-05-04T14:04:41.000Z
2020-12-10T22:05:03.000Z
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
null
null
null
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
null
null
null
import joblib import pandas as pd from util import draw_boxes, display_image, get_image_from_s3, get_image_boxes import os objects = joblib.load(os.path.join('..','data','data.joblib')) id2url = joblib.load(os.path.join('..','data','id2url.joblib')) meta = pd.read_csv(os.path.join('..','open_images_', 'validation-ima...
26.333333
100
0.682571
141
1,027
4.765957
0.397163
0.059524
0.058036
0.050595
0.127976
0.071429
0
0
0
0
0
0.011876
0.180136
1,027
38
101
27.026316
0.786223
0.029211
0
0.1
0
0
0.171817
0.069221
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
944e55182faf9a6527a5868bbcdc772b013e1b6d
1,221
py
Python
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
5
2021-06-08T23:56:19.000Z
2022-03-12T00:57:00.000Z
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
import numpy as np def inference(x, targets, model, alphabet): """Evaluate the log likelihood ratios given the model and input. Then maps the distribution over the alphabet. Args: x(ndarray(float)): 3 dimensional np array first dimension is channels second dimension is trials and thir...
37
80
0.657658
173
1,221
4.618497
0.50289
0.055069
0.047559
0.067584
0
0
0
0
0
0
0
0.015184
0.244881
1,221
32
81
38.15625
0.85141
0.651106
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
944f4e07ae76e0175a6fe84669287a44fcfa23a9
1,231
py
Python
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
3,509
2015-01-01T11:47:51.000Z
2022-03-30T09:22:43.000Z
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
651
2015-01-09T16:18:10.000Z
2022-03-26T23:52:00.000Z
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
440
2015-01-02T21:28:11.000Z
2022-03-25T05:38:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import sys import re import os import argparse from os.path import * from subprocess import Popen, PIPE from CheckOptions import CheckOptions class CheckManpage (CheckOptions): def __init__(self, args): CheckOptions.__init__(...
26.76087
82
0.649878
154
1,231
5.006494
0.525974
0.038911
0.031128
0.020752
0.119326
0.119326
0.119326
0.119326
0.119326
0.119326
0
0.00207
0.215272
1,231
45
83
27.355556
0.796066
0.034119
0
0.166667
0
0
0.232519
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.333333
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9450618219812524336f36a73f4f2432207e9704
1,789
py
Python
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
5
2020-07-08T11:58:46.000Z
2022-01-26T13:58:00.000Z
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
63
2021-05-09T06:18:24.000Z
2022-03-27T18:05:58.000Z
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
1
2022-02-11T03:24:14.000Z
2022-02-11T03:24:14.000Z
import hydra from fseval.adapters.openml import OpenMLDataset from fseval.config import DatasetConfig, EstimatorConfig, PipelineConfig from fseval.main import run_pipeline from fseval.types import Task from hydra.core.config_store import ConfigStore from sklearn.base import BaseEstimator from sklearn.feature_selection ...
24.506849
72
0.713248
208
1,789
5.961538
0.375
0.028226
0.03871
0.024194
0.119355
0.082258
0.082258
0
0
0
0
0.004011
0.163779
1,789
72
73
24.847222
0.820856
0.058133
0
0.27451
0
0
0.139005
0.043739
0
0
0
0
0
1
0.039216
false
0
0.196078
0
0.254902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94509be309d1816f01aaf5c9843c5c4efa72acc0
2,776
py
Python
onadata/apps/remote_app/models.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/remote_app/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/remote_app/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
from random import choice from string import ascii_lowercase, digits from django.utils import timezone from django.db import models from django.conf import settings from django.contrib.auth import get_user_model from django.db.models.signals import post_delete, post_save from django.dispatch import receiver import j...
26.438095
74
0.67147
323
2,776
5.597523
0.303406
0.030973
0.026549
0.039823
0.220686
0.140487
0.140487
0.140487
0.140487
0.140487
0
0.006591
0.23487
2,776
104
75
26.692308
0.844633
0
0
0.2125
0
0
0.014769
0
0
0
0
0
0
1
0.1
false
0
0.125
0.0375
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9451d8920aafd4d93813d4d8a6d863e885a6a62c
2,276
py
Python
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
# HABET Basic Tracking Payload CircuitPython Script # Recieves GPS data and transmits it via LoRa radio module # Utilizes Adafruit Feather M4 Express, Ultimate GPS FeatherWing, RFM95W 433 MHz FeatherWing # Last updated 9/2/2020 by Austin Trask import time import board import busio import digitalio import analogio impo...
25.288889
92
0.685413
326
2,276
4.705521
0.429448
0.036506
0.023468
0
0
0
0
0
0
0
0
0.032683
0.233743
2,276
89
93
25.573034
0.846904
0.368629
0
0.125
0
0
0.039604
0
0
0
0
0
0
1
0.041667
false
0
0.125
0.020833
0.1875
0.104167
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9453b14b9e14bb2251d140e523b7352f31df8836
1,058
py
Python
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python #=============================== # MNEMOSINE PY EXCHANGE #=============================== from threading import Thread import queue import logging import uuid from message_broker.broker.broker import Broker logging.basicConfig(level=logging.INFO, format='[...
25.804878
62
0.559546
107
1,058
5.392523
0.364486
0.155979
0.103986
0.138648
0.412478
0.412478
0.412478
0.412478
0.412478
0.412478
0
0.00267
0.29206
1,058
40
63
26.45
0.76769
0.10397
0
0.333333
0
0
0.034292
0
0
0
0
0
0
1
0.125
false
0
0.208333
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9454a7596d445e08a15c5b3eac352a2c7dc0a75a
1,293
py
Python
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
import time from functionality_core import FCore from functionality_cores.utilcore import asynced from functionality_cores.kerberos import require_ring class jokes(FCore): """Collection of joke commands.""" def get_commands(self): return {"recursion":self.recursion, "bee":self.bee} @asynced ...
36.942857
89
0.581593
161
1,293
4.565217
0.42236
0.04898
0.103401
0.085714
0.212245
0.212245
0.212245
0.212245
0.212245
0.212245
0
0.014177
0.290797
1,293
35
90
36.942857
0.78735
0.021655
0
0.066667
0
0
0.04127
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0.033333
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
945713b531ab76dc304c8cb885e6156fb03e8b00
1,403
py
Python
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
import os import subprocess from random import randint os.system("g++ hillClimb.cpp -o test -std=c++11") inf = 1<<20 radious = [90, 45, 30, 360, 10] best = [] for i in range(len(radious)): f = open("%d" % (radious[i]), "w") b = open("best%d" % (radious[i]), "w") best += [[-inf]] f.close() b.close()...
25.509091
86
0.498931
203
1,403
3.44335
0.344828
0.06867
0.042918
0.078684
0.267525
0.240343
0.131617
0.100143
0.100143
0.100143
0
0.032967
0.286529
1,403
55
87
25.509091
0.665335
0.007128
0
0.125
0
0
0.055276
0
0
0
0
0
0
1
0.041667
false
0
0.0625
0
0.104167
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9459564910a505c210ee0c2d7c209c21ba0721f1
5,243
py
Python
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
1
2022-03-26T18:08:54.000Z
2022-03-26T18:08:54.000Z
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
null
null
null
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
null
null
null
# Simple TCP server import socket import queue import select class TCPServer: def __init__(self, ip, port, callback=None, max_connections=5, bytes_count=1024): # The IP address this server binds to self.ip = ip # The port this server binds to self.port = port # Callbac...
33.825806
87
0.54034
627
5,243
4.443381
0.296651
0.038765
0.013999
0.02369
0.121321
0.060302
0.030869
0.030869
0
0
0
0.002567
0.405684
5,243
154
88
34.045455
0.891528
0.403014
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.05
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
945dd0d9b70abc4ba2a33b9db34923ccdcde4e40
2,225
py
Python
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Macsnow # @Date: 2017-05-11 10:53:57 # @Last Modified by: Macsnow # @Last Modified time: 2017-05-11 15:36:00 from flask.ext.restful import Resource, reqparse from flask import session from src.common.util import abortIfSubjectUnauthenticated from src.common.util import abo...
37.711864
96
0.60809
240
2,225
5.558333
0.325
0.041979
0.077961
0.063718
0.288606
0.163418
0.115442
0.115442
0.065967
0
0
0.02545
0.275955
2,225
58
97
38.362069
0.802607
0.061573
0
0.304348
0
0
0.092885
0
0
0
0
0
0
1
0.108696
false
0
0.217391
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9464fd14b792b482c66ebf4c89048f0fbdc126f7
449
py
Python
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
1
2015-10-20T15:09:08.000Z
2015-10-20T15:09:08.000Z
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
null
null
null
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
null
null
null
import string import unittest class TestUtil(unittest.TestCase): def test_random_string(self): from vmreflect.utils import get_random_string for l in range(20): self.assertEquals(l, len(get_random_string(length=l))) for alphabet in ['1234', string.letters, '!$(AJ$)AF(A@F']: ...
29.933333
67
0.625835
58
449
4.706897
0.551724
0.175824
0.164835
0
0
0
0
0
0
0
0
0.018405
0.273942
449
14
68
32.071429
0.819018
0
0
0
0
0
0.037946
0
0
0
0
0
0.181818
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9465ea6e8a3e28767df80dc2e1f77115e0fcf158
2,788
py
Python
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
7
2018-05-22T04:54:08.000Z
2020-05-28T20:27:39.000Z
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
9
2018-07-20T12:54:24.000Z
2020-11-05T17:44:19.000Z
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
1
2019-06-12T14:19:33.000Z
2019-06-12T14:19:33.000Z
# -*- coding: utf8 -*- from flask import url_for, current_app from nose.tools import * from base import Test, db, with_context from explicates.model.collection import Collection from explicates.model.annotation import Annotation class TestModelAnnotation(Test): def setUp(self): super(TestModelAnnotatio...
31.681818
76
0.573888
254
2,788
6.122047
0.259843
0.05209
0.07717
0.046302
0.51254
0.51254
0.51254
0.442444
0.340193
0.340193
0
0.000532
0.325323
2,788
87
77
32.045977
0.826156
0.071736
0
0.39726
0
0
0.064667
0
0
0
0
0
0.054795
1
0.068493
false
0
0.068493
0
0.150685
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9466a0890aee0dc1575d353661a33b3cadbde55e
6,641
py
Python
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
1
2019-10-29T13:37:26.000Z
2019-10-29T13:37:26.000Z
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
null
null
null
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2016, Allgeyer Tobias, Aumann Florian, Borella Jocelyn, Hutmacher Robin, Karrenbauer Oliver, Marek Felix, Meissner Pascal, Trautmann Jeremias, Wittenbeck Valerij All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted...
58.254386
755
0.568288
587
6,641
6.202726
0.357751
0.056029
0.05493
0.029662
0.299368
0.268608
0.18786
0.167536
0.135677
0.103818
0
0.001646
0.359584
6,641
113
756
58.769912
0.854456
0.248005
0
0.25641
0
0
0.274478
0.069823
0
0
0
0
0
1
0
false
0
0.141026
0
0.179487
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94674f843dab73643aa11740f5acb4a209e24514
58,296
py
Python
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- """Unit test of paragraph processing classes: PreProcessed and PostProcessed as well as Processor subclasses. Copyright: Ian Vermes 2019 """ from tests.base_testcases import ParagraphsTestCase, BaseTestCase, ProcessorTestCase_Genuine from tests.special_testcases import Pr...
38.403162
190
0.571206
6,501
58,296
4.945239
0.102138
0.006408
0.009145
0.009145
0.574668
0.50944
0.447728
0.394102
0.356901
0.344023
0
0.011594
0.320914
58,296
1,517
191
38.428477
0.800419
0.037481
0
0.48562
0
0.000822
0.189355
0.012402
0
0
0
0
0.132293
1
0.0682
false
0.002465
0.013147
0
0.098603
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
946b8d6d8025c10201a0e997dc4dab9b8be0198b
2,911
py
Python
geode/utility/json_conversion.py
jjqcat/geode
157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e
[ "BSD-3-Clause" ]
75
2015-02-08T22:04:31.000Z
2022-02-26T14:31:43.000Z
geode/utility/json_conversion.py
girving/geode
4267bd8d0c1a768ee0b6f57a40a551d8c0965178
[ "BSD-3-Clause" ]
15
2015-01-08T15:11:38.000Z
2021-09-05T13:27:22.000Z
geode/utility/json_conversion.py
girving/geode
4267bd8d0c1a768ee0b6f57a40a551d8c0965178
[ "BSD-3-Clause" ]
22
2015-03-11T16:43:13.000Z
2021-02-15T09:37:51.000Z
import json from numpy import * from geode import * def from_ndarray(v, typ = float): return map(typ, v.flatten()) def from_array(v, typ = float): return map(typ, v) to_json_fn = {} from_json_fn = {} from_json_fn['int'] = lambda v: int(v) from_json_fn['real'] = lambda v: real(v) from_json_fn['float'] = ...
25.761062
82
0.618344
497
2,911
3.416499
0.183099
0.130742
0.111896
0.053004
0.383981
0.187279
0.117786
0.091873
0.091873
0.054181
0
0.007887
0.172449
2,911
112
83
25.991071
0.69697
0.013054
0
0.067416
0
0
0.106931
0
0
0
0
0
0
1
0.078652
false
0
0.033708
0.044944
0.179775
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
946e1bad96b68d54c90ade3c0e3ea528c85c1987
2,350
py
Python
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
2
2019-10-08T17:36:02.000Z
2019-10-08T18:42:05.000Z
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
null
null
null
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
null
null
null
from tibanna_ffcommon.core import API as _API from .stepfunction import StepFunctionPony from .stepfunction_cost_updater import StepFunctionCostUpdater from .vars import ( TIBANNA_DEFAULT_STEP_FUNCTION_NAME, LAMBDA_TYPE, IAM_BUCKETS, DEV_ENV, PROD_ENV ) class API(_API): # This one cannot be im...
34.558824
124
0.648936
263
2,350
5.528517
0.319392
0.057772
0.020633
0.035763
0.310867
0.246217
0.188446
0.188446
0.188446
0.188446
0
0.002387
0.286809
2,350
67
125
35.074627
0.865155
0.071915
0
0.303571
0
0
0.001378
0
0
0
0
0
0
1
0.107143
false
0.017857
0.160714
0
0.446429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
946e744db067216acca7174cc9413bd1c9de27ef
1,262
py
Python
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
import pca9685 _DC_MOTORS = ((8, 9, 10), (13, 12, 11), (2, 3, 4), (7, 6, 5)) class DCMotors: def __init__(self, i2c, address=0x40, freq=1600): self.pca9685 = pca9685.PCA9685(i2c, address) self.pca9685.freq(freq) def _pin(self, pin, value=None): if value is None: return b...
27.434783
61
0.515055
165
1,262
3.812121
0.315152
0.122417
0.079491
0.081081
0.251192
0.149444
0.079491
0
0
0
0
0.116481
0.360539
1,262
45
62
28.044444
0.662949
0.019017
0
0.4
0
0
0
0
0
0
0.003241
0
0
1
0.114286
false
0
0.028571
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
946fcddeae45422d84791902026dee2a591bd902
978
py
Python
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
1
2018-04-23T00:45:24.000Z
2018-04-23T00:45:24.000Z
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
null
null
null
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*-coding:utf-8-*- """chargen Usage: chargen.py start project <project> chargen.py add template <template_file> into <project> chargen.py (-h | --help) chargen.py --version Options: -h --help Show this screen. --version Show version. """ from docopt import docopt import c...
23.285714
77
0.701431
129
978
5.03876
0.294574
0.107692
0.110769
0.101538
0.290769
0.290769
0.290769
0.290769
0
0
0
0.006083
0.159509
978
41
78
23.853659
0.784672
0.278119
0
0.125
0
0
0.116046
0
0
0
0
0
0
1
0.1875
false
0
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9472f1d45c073a911013e85819b6ce785223389f
2,092
py
Python
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
22
2016-09-11T11:40:17.000Z
2019-07-27T21:45:21.000Z
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
14
2016-08-16T22:19:31.000Z
2020-12-17T00:03:34.000Z
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
19
2016-08-16T20:06:57.000Z
2021-09-16T11:42:11.000Z
from orangecontrib.recommendation import Learner, Model import numpy as np __all__ = ["LearnerRecommendation", "ModelRecommendation"] class ModelRecommendation(Model): def predict_on_range(self, predictions): # Just for modeling ratings with latent factors try: if self.min_rating is...
36.701754
79
0.657744
246
2,092
5.325203
0.304878
0.054962
0.049618
0.043511
0.227481
0.160305
0.062595
0
0
0
0
0.004528
0.260994
2,092
57
80
36.701754
0.84282
0.08891
0
0.052632
0
0
0.038381
0.011041
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9473f79c4819abb3294b7e94567ee6d53a6be9c6
14,480
py
Python
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
1
2020-09-15T15:36:07.000Z
2020-09-15T15:36:07.000Z
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
12
2020-03-03T17:48:22.000Z
2022-03-12T00:02:51.000Z
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
2
2019-08-16T13:01:05.000Z
2020-06-14T15:04:57.000Z
#!/usr/bin/python3 from datetime import datetime import os import shutil import logging import base64 import requests import json import cv2 as cv from PIL import Image, ImageEnhance import pandas as pd import numpy as np import math logging.basicConfig(filename='app.log', filemode='w',level=logging.INFO, format="...
43.223881
193
0.617541
1,675
14,480
5.138507
0.201791
0.042291
0.033461
0.019519
0.260718
0.160335
0.104566
0.056001
0.035552
0.012316
0
0.014272
0.259669
14,480
334
194
43.353293
0.788619
0.043785
0
0.086331
0
0.010791
0.16207
0.022512
0
0
0
0
0
1
0.039568
false
0.021583
0.043165
0.007194
0.122302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94748c13b48c015ed744c4825ce449b56551be58
3,445
py
Python
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
2
2015-09-12T10:11:38.000Z
2015-09-13T13:18:25.000Z
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
2
2015-09-12T07:18:15.000Z
2015-10-07T06:01:56.000Z
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
5
2015-09-11T11:19:51.000Z
2018-02-08T18:17:44.000Z
#!/usr/bin/env python3 # This is a simple 4 banger calculator LICENSE = """DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2015 Arti Zirk <arti.zirk@gmail.com> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, ...
28.708333
111
0.628447
429
3,445
4.932401
0.375291
0.06758
0.028355
0.018431
0.226843
0.175803
0.152174
0.141777
0.141777
0.108696
0
0.016315
0.270537
3,445
119
112
28.94958
0.825706
0.158781
0
0.153846
0
0.015385
0.264398
0.016081
0
0
0
0
0.015385
1
0.153846
false
0
0.030769
0
0.276923
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94796da60c973686297c10aaaafe4c00df0e9db5
2,444
py
Python
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
41
2020-11-18T10:12:29.000Z
2022-03-28T21:46:41.000Z
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
4
2020-12-08T15:28:15.000Z
2022-02-01T11:40:17.000Z
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
14
2020-11-18T11:39:17.000Z
2022-03-21T15:05:11.000Z
from hetdesrun.component.registration import register from hetdesrun.datatypes import DataType # add your own imports here from hetdesrun.utils import plotly_fig_to_json_dict import pandas as pd def handle_substitutions(original_series, substitution_series): """Applies substituion series on raw values ...
34.422535
94
0.720949
288
2,444
5.902778
0.381944
0.137647
0.108235
0.042353
0.105294
0.084706
0.064706
0.064706
0.064706
0.064706
0
0.005514
0.183715
2,444
70
95
34.914286
0.846617
0.252046
0
0
0
0
0.040427
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
947efdbc985976ac04f87ceecfcc075b0bbb1d41
16,366
py
Python
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
null
null
null
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
1
2018-09-18T00:41:53.000Z
2018-09-19T00:28:33.000Z
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
null
null
null
import getpass import argparse import boto3 import sys, os, csv from github import Github from github.InputFileContent import InputFileContent import json from datetime import timedelta from collections import OrderedDict from . import utils from .utils import ensure, ymd, splitfilter, vals, lmap, lfilter, utcnow MAX_...
37.280182
141
0.668459
2,199
16,366
4.789905
0.18281
0.035128
0.025634
0.009684
0.273521
0.226716
0.184088
0.160068
0.151714
0.12551
0
0.003428
0.215813
16,366
438
142
37.365297
0.817282
0.114139
0
0.233129
0
0.009202
0.303716
0.0403
0
0
0
0.002283
0.006135
1
0.070552
false
0.02454
0.033742
0.006135
0.190184
0.03681
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94837f054bfa14530b650e254c7da3d29ae1ed3b
10,958
py
Python
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
186
2017-04-30T18:11:12.000Z
2022-03-31T18:35:09.000Z
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
17
2017-02-09T11:08:49.000Z
2022-01-29T14:40:09.000Z
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
92
2017-09-13T05:20:40.000Z
2022-03-19T16:17:02.000Z
#!/usr/bin/env python3 # md_poly_lj_module.py #------------------------------------------------------------------------------------------------# # This software was written in 2016/17 # # by Michael P. Allen <m.p.allen@warwick.ac.uk>/<m.p.allen@bristol.ac.uk> ...
52.180952
113
0.515788
1,477
10,958
3.780636
0.274204
0.004298
0.010745
0.00985
0.252507
0.223138
0.184993
0.152042
0.141655
0.141655
0
0.043411
0.354627
10,958
209
114
52.430622
0.746182
0.446158
0
0.227642
0
0
0.095134
0.013639
0
0
0
0
0.056911
1
0.04065
false
0
0.01626
0
0.081301
0.113821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
948c6619b9b82445ad34ff17a5f8f5eb8c8c2d63
1,609
py
Python
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
from win32com import client as wc import os, time class Pdf_docx_md(object): def load_files(self, path): ''' 加载所需文件,返回文件名(All) ''' os.chdir(path) dir = os.getcwd() files = os.listdir(dir) for file in files: yield file def do_exchange(sel...
27.741379
84
0.550653
198
1,609
4.257576
0.40404
0.118624
0.099644
0.085409
0.142349
0.090154
0.090154
0.090154
0
0
0
0.019856
0.311374
1,609
57
85
28.22807
0.740975
0.040398
0
0.057143
0
0.028571
0.161533
0.085558
0
0
0
0
0
1
0.114286
false
0
0.057143
0
0.228571
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
948d70917a8ff7f0374b0985e3aa182bab5e84b4
649
py
Python
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
3
2017-05-22T03:14:21.000Z
2019-05-24T11:44:15.000Z
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
null
null
null
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/domains/python?filters%5Bsubdomains%5D%5B%5D=py-sets # Set Union input() first = set(map(int, input().split())) input() second = set(map(int, input().split())) print(len(first.union(second))) # Set Intersection input() first = set(input().split()) input() second = set(input().split()) ...
18.542857
81
0.699538
87
649
5.206897
0.310345
0.1766
0.172185
0.15894
0.567329
0.326711
0.326711
0.326711
0.326711
0.326711
0
0.006814
0.095532
649
34
82
19.088235
0.764906
0.224961
0
0.6
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
846725d310463621e9c429dbf9bb3ad4bef3a529
1,146
py
Python
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
class EntityExtractor: def __init__(self, data_source): self.data_source = data_source def extract(self, query): query = query.lower() aggregation = self._extract_aggregation(query) dimensions = self._extract_dimensions(query) filters = self._extract_filters(query) ...
31.833333
62
0.620419
121
1,146
5.652893
0.264463
0.073099
0.081871
0.061404
0.152047
0.076023
0
0
0
0
0
0
0.298429
1,146
35
63
32.742857
0.850746
0
0
0.066667
0
0
0.022688
0
0
0
0
0
0
1
0.166667
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
8468ee72e6d83b1a43c0ba9a4f645f8b97bb8a4a
5,938
py
Python
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
5
2019-05-10T04:16:57.000Z
2021-06-12T03:43:11.000Z
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
null
null
null
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
4
2019-05-10T04:33:55.000Z
2021-09-09T03:05:00.000Z
import os from glob import glob from time import sleep from flask_cors import CORS from flask import Flask, jsonify, request, render_template, Response, send_file import Common import threading from liveDownloader import run as RUN app = Flask(__name__) app.config['JSON_AS_ASCII'] = False CORS(app, supports_credential...
30.608247
99
0.640957
646
5,938
5.854489
0.232198
0.04019
0.0899
0.087255
0.301428
0.285034
0.285034
0.285034
0.285034
0.178213
0
0.016132
0.175312
5,938
193
100
30.766839
0.756177
0.001516
0
0.304054
0
0
0.190147
0.003712
0
0
0
0.005181
0
1
0.135135
false
0
0.054054
0.027027
0.344595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8469fabb25cbc09922ff10f7b4374ba8210bc37e
512
py
Python
fun/fun/asgi.py
larryw3i/fun
e753ce6d448f7f6ec3169a4d1fa7e1c7bff70a27
[ "MIT" ]
1
2022-01-01T11:14:58.000Z
2022-01-01T11:14:58.000Z
fun/fun/asgi.py
larryw3i/osp
d9526a179876053a6b93e5a110d2de730376f511
[ "MIT" ]
4
2021-06-12T06:05:44.000Z
2021-06-13T06:20:00.000Z
fun/fun/asgi.py
larryw3i/osp
d9526a179876053a6b93e5a110d2de730376f511
[ "MIT" ]
null
null
null
""" ASGI config for newv project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application settings_exists = os.path.exists( ...
24.380952
78
0.748047
73
512
5.123288
0.643836
0.088235
0.096257
0
0
0
0
0
0
0
0
0.004484
0.128906
512
20
79
25.6
0.834081
0.410156
0
0
0
0
0.210884
0.07483
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
846af959bf6097940802093edacbaf3bdcb9cb94
1,300
py
Python
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
2
2021-08-31T19:54:53.000Z
2021-09-06T10:47:19.000Z
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
null
null
null
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
null
null
null
import json import os import sys import cv2 import numpy as np import pandas as pd import torch from tqdm import tqdm from aim_target.utils import compute_accuracy with open(sys.argv[1], "r") as f: config = json.load(f) model = torch.load( f"{config['checkpoints']}/{config['image_size']}_{config['model']}.p...
29.545455
87
0.686154
198
1,300
4.348485
0.378788
0.092915
0.052265
0.04878
0.055749
0
0
0
0
0
0
0.009074
0.152308
1,300
43
88
30.232558
0.772232
0.124615
0
0
0
0
0.109347
0.059083
0
0
0
0
0
1
0
false
0
0.28125
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
846c44254933e76179e17c4bb021953ba3b99f10
11,471
py
Python
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
7
2017-06-08T13:44:16.000Z
2021-01-26T07:57:53.000Z
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
76
2017-03-21T14:51:47.000Z
2022-02-16T11:53:38.000Z
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
3
2019-04-24T10:10:54.000Z
2021-01-26T07:57:54.000Z
#!/usr/bin/env python3 """Assembly metadata methods.""" import sys from collections import defaultdict from tolkein import toinsdc from tolkein import tolog from .es_functions import index_stream from .es_functions import query_keyword_value_template from .es_functions import query_value_template from .hub import a...
34.447447
88
0.601866
1,347
11,471
4.835189
0.126949
0.042991
0.017964
0.020267
0.363581
0.301244
0.245663
0.212191
0.196837
0.158606
0
0.002109
0.297359
11,471
332
89
34.551205
0.805955
0.058757
0
0.246479
0
0
0.115492
0.009135
0
0
0
0.003012
0
1
0.042254
false
0
0.042254
0
0.119718
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8470cc594037f191b3b43b6897fa69a25d35dce1
2,890
py
Python
tests/test_time_res_method.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
tests/test_time_res_method.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
tests/test_time_res_method.py
GispoCoding/datacube-ows
4ffe14ccf9f382bff8f4a33fc54729d3e18b670e
[ "Apache-2.0" ]
null
null
null
import pytest from datetime import datetime import pytz from datacube_ows.ows_configuration import OWSProductLayer, TIMERES_RAW, TIMERES_MON, TIMERES_YR def dummy_timeres_layer(time_res): prod = product_layer = OWSProductLayer.__new__(OWSProductLayer) prod.time_resolution = time_res return prod class Th...
30.104167
96
0.689619
418
2,890
4.466507
0.23445
0.041243
0.048741
0.03428
0.504017
0.498125
0.371719
0.343867
0.247456
0.247456
0
0.058257
0.210035
2,890
95
97
30.421053
0.759527
0
0
0.307692
0
0
0.038062
0
0
0
0
0
0.269231
1
0.115385
false
0
0.089744
0.038462
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8472be5ff4c0eb90b45ae9ec3a6f3d498c42634d
8,846
py
Python
ini/types.py
ClementJ18/ini_parser
68bee79af6319cc967c3fa13e4ba7b5ef0485fa0
[ "MIT" ]
null
null
null
ini/types.py
ClementJ18/ini_parser
68bee79af6319cc967c3fa13e4ba7b5ef0485fa0
[ "MIT" ]
null
null
null
ini/types.py
ClementJ18/ini_parser
68bee79af6319cc967c3fa13e4ba7b5ef0485fa0
[ "MIT" ]
null
null
null
from .utils import to_float from .enums import * import regex import sys from itertools import zip_longest from collections import defaultdict class Bool: @classmethod def convert(cls, parser, value): value = parser.get_macro(value) if isinstance(value, bool): return value ...
30.191126
144
0.553697
970
8,846
4.903093
0.174227
0.041632
0.026493
0.025231
0.301514
0.226451
0.165265
0.128469
0.067283
0.067283
0
0.004987
0.342641
8,846
292
145
30.294521
0.812898
0.009835
0
0.232227
0
0.004739
0.053555
0.012271
0
0
0
0
0
1
0.146919
false
0.009479
0.028436
0.047393
0.450237
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8473a16363e9a185f76eb2bc8c324f1926385713
8,299
py
Python
ina233.py
scottvr/pi-ina233
906d4349fffbe06a14c9fd9bf9dc2f32c50ccdc2
[ "MIT" ]
1
2021-02-21T09:18:47.000Z
2021-02-21T09:18:47.000Z
ina233.py
scottvr/pi-ina233
906d4349fffbe06a14c9fd9bf9dc2f32c50ccdc2
[ "MIT" ]
null
null
null
ina233.py
scottvr/pi-ina233
906d4349fffbe06a14c9fd9bf9dc2f32c50ccdc2
[ "MIT" ]
1
2021-07-27T06:08:34.000Z
2021-07-27T06:08:34.000Z
""" This library supports the TI INA233 current and power monitor with a Raspberry PI using SMBus/I2C. By scottvr for 1SimplePhone.com """ from smbus2 import SMBus class INA233: CLEAR_FAULTS = 0x03 RESTORE_DEFAULT_ALL = 0x12 CAPABILITY = 0x19 IOUT_OC_WARN_LIMIT = 0x4A VI...
35.314894
106
0.599108
1,152
8,299
3.913194
0.198785
0.051242
0.036602
0.036602
0.486025
0.405501
0.374889
0.374889
0.318101
0.318101
0
0.056239
0.314375
8,299
234
107
35.465812
0.735852
0.177732
0
0.234286
0
0
0
0
0
0
0.020381
0
0
1
0.097143
false
0
0.005714
0
0.468571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8474415733d26503f0e0b41a1a2b80c15eaec5b3
530
py
Python
but/trades/serializers/api_sell_base.py
yevgnenll/but
2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1
[ "MIT" ]
4
2017-02-25T04:46:41.000Z
2021-03-16T21:41:51.000Z
but/trades/serializers/api_sell_base.py
yevgnenll/but
2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1
[ "MIT" ]
18
2016-04-09T07:29:33.000Z
2017-04-06T04:39:54.000Z
but/trades/serializers/api_sell_base.py
yevgnenll/but
2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1
[ "MIT" ]
null
null
null
from rest_framework import serializers from trades.models import Sell class SellBaseModelSerializer(serializers.ModelSerializer): username = serializers.CharField( source="user.username", ) class Meta: model = Sell fields = ( 'pk', 'title', ...
19.62963
59
0.475472
38
530
6.5
0.763158
0
0
0
0
0
0
0
0
0
0
0
0.437736
530
26
60
20.384615
0.828859
0
0
0
0
0
0.150943
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8478a40f6283841cbeef90271865092b9e8ed207
3,484
py
Python
bootstrap.py
ptweir/pyresampling
7d81e2b3b2af57e43e24dddd2e04918f73f9f290
[ "MIT" ]
4
2015-11-18T18:27:38.000Z
2017-01-18T18:20:22.000Z
bootstrap.py
ptweir/pyresampling
7d81e2b3b2af57e43e24dddd2e04918f73f9f290
[ "MIT" ]
null
null
null
bootstrap.py
ptweir/pyresampling
7d81e2b3b2af57e43e24dddd2e04918f73f9f290
[ "MIT" ]
null
null
null
import numpy as np import collections try: from scipy.stats import scoreatpercentile except: # in case no scipy scoreatpercentile = False def _confidence_interval_1d(A, alpha=.05, metric=np.mean, numResamples=10000, interpolate=True): """Calculates bootstrap confidence interval along one dimensional ar...
43.55
129
0.705511
424
3,484
5.742925
0.287736
0.103491
0.041068
0.034497
0.243121
0.232444
0.183573
0.183573
0.138398
0.059138
0
0.024845
0.214409
3,484
79
130
44.101266
0.864815
0.367968
0
0.153846
0
0
0.021614
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84791502a9e42427caeb5f730a6711482d65741e
806
py
Python
suasor/suasor/auxilium.py
campovski/suasor
11bd745b8e023d9cf79ce23bec992e23a6427613
[ "MIT" ]
null
null
null
suasor/suasor/auxilium.py
campovski/suasor
11bd745b8e023d9cf79ce23bec992e23a6427613
[ "MIT" ]
14
2018-04-09T15:51:18.000Z
2018-04-16T13:44:22.000Z
suasor/suasor/auxilium.py
campovski/suasor
11bd745b8e023d9cf79ce23bec992e23a6427613
[ "MIT" ]
null
null
null
import datetime import os from .models import Log, LogType from .settings import DEBUG, DIR_DATA, DIR_DATA_DEBUG, DIR_DATA_IMAGES, DIR_DATA_PEOPLE, DIR_DATA_LOG """ Writes information about error that occured (like name or image could not be extracted). @param at: The name of function that this error occured in @p...
32.24
101
0.684864
127
806
4.181102
0.464567
0.079096
0.045198
0
0
0
0
0
0
0
0
0.006154
0.193548
806
24
102
33.583333
0.810769
0
0
0
0
0
0.050489
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
847cbacea93949610c39623fec080a8c96e35146
2,091
py
Python
twitchchat_display/main.py
shughes-uk/twitchchat_display
b81157ead7007703f4f795ea4c0d4f1cd3d553ce
[ "MIT" ]
1
2015-12-17T08:12:14.000Z
2015-12-17T08:12:14.000Z
twitchchat_display/main.py
shughes-uk/twitchchat_display
b81157ead7007703f4f795ea4c0d4f1cd3d553ce
[ "MIT" ]
null
null
null
twitchchat_display/main.py
shughes-uk/twitchchat_display
b81157ead7007703f4f795ea4c0d4f1cd3d553ce
[ "MIT" ]
2
2015-09-22T00:46:44.000Z
2015-11-04T01:29:15.000Z
#!/usr/bin/env python # This Python file uses the following encoding: utf-8 import logging.config import signal import sys import time from pathlib import Path import click import pygame from twitchchat import twitch_chat from .config import get_config, logging_config from .display import TwitchChatDisplay logger =...
28.256757
80
0.645146
233
2,091
5.60515
0.44206
0.036753
0.048239
0.064319
0.052067
0
0
0
0
0
0
0.002536
0.245815
2,091
73
81
28.643836
0.825618
0.034433
0
0.065574
0
0
0.178483
0
0
0
0
0
0
1
0.032787
false
0
0.163934
0
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
847e369447b3cdbbad166cace6b991fbfe990141
19,440
py
Python
confclass.py
eladn/confclass
5008d1ee5a18b02135a4a981b4eeab7ce9a62ab6
[ "Apache-2.0" ]
null
null
null
confclass.py
eladn/confclass
5008d1ee5a18b02135a4a981b4eeab7ce9a62ab6
[ "Apache-2.0" ]
null
null
null
confclass.py
eladn/confclass
5008d1ee5a18b02135a4a981b4eeab7ce9a62ab6
[ "Apache-2.0" ]
null
null
null
import typing from typing import Optional, Callable, Iterable, Iterator, Dict, Union import dataclasses import argparse from functools import partial import yaml import os __all__ = [ 'confclass', 'confparam' ] # A sentinel object to detect if a parameter is supplied or not. # Use an empty class to give it ...
43.882619
117
0.641358
2,362
19,440
4.832345
0.121084
0.044419
0.021027
0.023305
0.373927
0.283336
0.220343
0.160505
0.11004
0.101454
0
0.001135
0.274846
19,440
442
118
43.9819
0.808541
0.140278
0
0.1625
0
0
0.058632
0.026876
0
0
0
0.004525
0.015625
1
0.103125
false
0.003125
0.021875
0.0375
0.24375
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
847fd9cb96497848a266a48adad5af45d252833f
4,594
py
Python
client/views.py
adwalkz/DjangoDataAnalysis
1a888fc3a5dc34651a3b25d476e985ff39d8e305
[ "MIT" ]
4
2021-08-04T17:02:56.000Z
2021-09-30T07:07:04.000Z
client/views.py
adwalkz/DjangoDataAnalysis
1a888fc3a5dc34651a3b25d476e985ff39d8e305
[ "MIT" ]
null
null
null
client/views.py
adwalkz/DjangoDataAnalysis
1a888fc3a5dc34651a3b25d476e985ff39d8e305
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, get_list_or_404 from django.db.models import Count, Avg, Max, Min from ts.models import * from .models import SurveyQuestion, SurveyQuestionChoice, SurveyResponse import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from fpdf import FPDF cl...
28.534161
139
0.597736
575
4,594
4.582609
0.25913
0.039469
0.020873
0.026565
0.270968
0.226186
0.182922
0.182922
0.153321
0.080455
0
0.017841
0.280148
4,594
160
140
28.7125
0.778954
0.054854
0
0.07
0
0
0.098206
0.023371
0
0
0
0
0
1
0.09
false
0
0.07
0
0.21
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84863eae140817ec0c54b39184cf63b3eb2511d1
15,051
py
Python
Structures/Interceptor.py
saisua/Scraper
ae9f93fbb0b3350cd5c8ba8e87b7ad63461d9a30
[ "MIT" ]
null
null
null
Structures/Interceptor.py
saisua/Scraper
ae9f93fbb0b3350cd5c8ba8e87b7ad63461d9a30
[ "MIT" ]
13
2020-06-19T13:31:16.000Z
2020-06-19T14:05:44.000Z
Structures/Interceptor.py
saisua/Scraper2
ae9f93fbb0b3350cd5c8ba8e87b7ad63461d9a30
[ "MIT" ]
null
null
null
print("Starting Interceptor imports... ") import sys import socket from multiprocessing import Manager, Process from re import search, sub from os import getcwd import io import pyshark import pem from pyshark.capture.capture import Capture from pyshark.capture.live_capture import LiveCapture from pyshark.packet.pack...
42.27809
124
0.626071
1,704
15,051
5.031103
0.240023
0.017963
0.011431
0.014697
0.224775
0.185233
0.123411
0.112446
0.094716
0.085151
0
0.004065
0.248223
15,051
356
125
42.27809
0.753601
0.157332
0
0.130435
0
0
0.084678
0.047946
0
0
0
0
0
1
0.081522
false
0.016304
0.130435
0.01087
0.309783
0.038043
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8489217661ac1eae3afe68e1e0d39ce20002a5f3
538
py
Python
sources/rnt/mediane/normalizations/enumeration.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
null
null
null
sources/rnt/mediane/normalizations/enumeration.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
11
2018-04-04T08:24:30.000Z
2021-03-19T21:45:04.000Z
sources/rnt/mediane/normalizations/enumeration.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
1
2018-10-25T09:13:41.000Z
2018-10-25T09:13:41.000Z
from django.utils.translation import ugettext_lazy as _ NONE = 'None' UNIFICATION = 'UNIF' PROJECTION = 'PROJ' __tuple_list = ((UNIFICATION, _(UNIFICATION)), (PROJECTION, _(PROJECTION)), (NONE, _(NONE)),) def as_tuple_list(): return __tuple_list def get_from(id_enum): for k, v in __tuple_list: if ...
20.692308
93
0.654275
68
538
4.632353
0.485294
0.114286
0
0
0
0
0
0
0
0
0
0
0.208178
538
26
94
20.692308
0.739437
0
0
0
0
0
0.122449
0
0
0
0
0
0
1
0.157895
false
0
0.052632
0.052632
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
848a70bcaf3c6665cc367d128e79aa6e018703cf
1,932
py
Python
src/datasets.py
dmilios/dirichletGPC
7e460ca07005a5aed97937d2bf2a8a47b6f8051e
[ "Apache-2.0" ]
12
2018-12-19T15:38:20.000Z
2022-02-14T14:58:40.000Z
src/datasets.py
dmilios/dirichletGPC
7e460ca07005a5aed97937d2bf2a8a47b6f8051e
[ "Apache-2.0" ]
null
null
null
src/datasets.py
dmilios/dirichletGPC
7e460ca07005a5aed97937d2bf2a8a47b6f8051e
[ "Apache-2.0" ]
1
2019-12-25T01:51:02.000Z
2019-12-25T01:51:02.000Z
# Copyright 2018 Dimitrios Milios, Raffaello Camoriano, # Pietro Michiardi,Lorenzo Rosasco, Maurizio Filippone # 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...
32.2
75
0.624741
274
1,932
4.357664
0.456204
0.050251
0.021776
0.026801
0.103853
0.070352
0.070352
0
0
0
0
0.023726
0.258282
1,932
59
76
32.745763
0.809491
0.46118
0
0.064516
0
0
0.037149
0
0
0
0
0
0
1
0.096774
false
0
0.064516
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
848b436aa24ac308d60e90b617dd1c05c1c87340
4,559
py
Python
cleanup_timescale.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
10
2020-09-25T19:48:50.000Z
2021-10-13T13:42:56.000Z
cleanup_timescale.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
null
null
null
cleanup_timescale.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
1
2021-02-08T14:50:48.000Z
2021-02-08T14:50:48.000Z
#!/usr/bin/python3 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
30.393333
77
0.704321
606
4,559
5.136964
0.270627
0.075169
0.026984
0.04433
0.517828
0.469643
0.42435
0.378734
0.353678
0.277867
0
0.006366
0.207502
4,559
149
78
30.597315
0.855245
0.238868
0
0.543689
0
0
0.30981
0
0
0
0
0
0
1
0.067961
false
0
0.038835
0
0.106796
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8490aeceeb675f3713fb1cedf7105b2e3140cf51
1,472
py
Python
tempZonal/overlay1.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
tempZonal/overlay1.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
tempZonal/overlay1.py
Mihir-DG/Tropospheric-Temperature-and-Zonal-Wind-Profiles
13e0c706faed446f10758341807c066670260e0b
[ "MIT" ]
null
null
null
from netCDF4 import Dataset as dst import numpy as np from matplotlib import pyplot as plt tempnc = dst("../air.mon.mean.nc", mode='r') zonalnc = dst("../uwnd.mon.mean.nc", mode='r') #Datasets downloaded 21 Aug 2020 #Time length- 871 ==> 871/12 --> 7/12 def slice_per(source, step): return [source[i::step] for i in ...
24.131148
60
0.665761
240
1,472
4.0125
0.3625
0.041537
0.018692
0.026999
0.463136
0.43406
0.43406
0.43406
0.43406
0.43406
0
0.045161
0.157609
1,472
60
61
24.533333
0.730645
0.045516
0
0.52
0
0
0.084226
0
0
0
0
0
0
1
0.06
false
0
0.06
0.02
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849299b9fc910775a11fc0036ffa60ec51f4037c
4,609
py
Python
tests/buf_test.py
ClasherKasten/babi
e11d61da9387b3740fcf7c9ec631e51cfd4b194b
[ "MIT" ]
null
null
null
tests/buf_test.py
ClasherKasten/babi
e11d61da9387b3740fcf7c9ec631e51cfd4b194b
[ "MIT" ]
null
null
null
tests/buf_test.py
ClasherKasten/babi
e11d61da9387b3740fcf7c9ec631e51cfd4b194b
[ "MIT" ]
null
null
null
from __future__ import annotations from unittest import mock import pytest import babi.buf from babi.buf import Buf def test_buf_truthiness(): assert bool(Buf([])) is False assert bool(Buf(['a', 'b'])) is True def test_buf_repr(): ret = repr(Buf(['a', 'b', 'c'])) assert ret == "Buf(['a', 'b', 'c'...
18.659919
72
0.533521
654
4,609
3.636086
0.134557
0.029437
0.037847
0.065601
0.633305
0.612279
0.563499
0.52439
0.52439
0.495795
0
0.011354
0.254719
4,609
246
73
18.735772
0.680349
0
0
0.47973
0
0.006757
0.067694
0
0
0
0
0
0.25
1
0.128378
false
0
0.033784
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8493fc3f305b6cd5d37b4ba35bfc0dfffc975a3f
18,557
py
Python
simulation.py
laloc2496/cdn_configuration_optimization
58cf2278456d0ef8796570f12f1d00fd68aec686
[ "MIT" ]
null
null
null
simulation.py
laloc2496/cdn_configuration_optimization
58cf2278456d0ef8796570f12f1d00fd68aec686
[ "MIT" ]
null
null
null
simulation.py
laloc2496/cdn_configuration_optimization
58cf2278456d0ef8796570f12f1d00fd68aec686
[ "MIT" ]
null
null
null
import networkx as nx import random, pickle, string from src.util.gen_files import * import threading import time from src.net.topology import NetTopology from src.algorithm import * import os, sys from random import randint, shuffle, sample from src.util.utils import * from src.algorithm.cache import * from src.util.s...
49.092593
197
0.620898
1,526
18,557
7.500655
0.135649
0.017124
0.023065
0.020182
0.643107
0.614625
0.577232
0.563079
0.49004
0.440503
0
0.008328
0.28178
18,557
377
198
49.222812
0.850465
0.040254
0
0.595016
0
0
0.06101
0.01327
0
0
0
0
0
1
0.034268
false
0.012461
0.037383
0
0.140187
0.006231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8495d4f3d80007cf3963d73184d2d8cdc2010a50
4,475
py
Python
assignment3/code/lr_1d.py
cjy513203427/SML_Assignment
630e5b73d2ce222f4adb29f91d2ee3007f8972ff
[ "MIT" ]
null
null
null
assignment3/code/lr_1d.py
cjy513203427/SML_Assignment
630e5b73d2ce222f4adb29f91d2ee3007f8972ff
[ "MIT" ]
null
null
null
assignment3/code/lr_1d.py
cjy513203427/SML_Assignment
630e5b73d2ce222f4adb29f91d2ee3007f8972ff
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File : lr_1d.py.py @Modify Time @Author @Desciption ------------ ------- ----------- 2021/7/5 22:51 Jonas None ''' import numpy as np import math import matplotlib.pyplot as plt from scipy.stats import norm train_data = np.loadtxt("lin_reg_tr...
28.322785
111
0.576313
766
4,475
3.16188
0.197128
0.034682
0.019818
0.036334
0.199835
0.120562
0.095376
0.022296
0.022296
0
0
0.03416
0.260782
4,475
157
112
28.503185
0.698005
0.052737
0
0.017699
0
0
0.049657
0
0
0
0
0
0
1
0.079646
false
0
0.035398
0.00885
0.19469
0.035398
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849602ab96643a0ca50a7973accb1f2950c12d70
1,252
py
Python
datasets/mvda_soil/demos.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
3
2019-03-18T03:22:06.000Z
2021-04-06T07:53:51.000Z
datasets/mvda_soil/demos.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
null
null
null
datasets/mvda_soil/demos.py
ryuzakyl/data-bloodhound
ae0413e748e55a0d2dbae35bbe96a672f313a64b
[ "Apache-2.0" ]
2
2020-10-05T08:22:25.000Z
2020-10-05T08:24:02.000Z
#!/usr/bin/env # -*- coding: utf-8 -*- # Copyright (C) Victor M. Mendiola Lau - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Victor M. Mendiola Lau <ryuzakyl@gmail.com>, March 2017 import pylab import numpy as np from dataset...
27.217391
79
0.632588
184
1,252
4.184783
0.538043
0.083117
0.046753
0.058442
0.101299
0.101299
0.101299
0.101299
0.101299
0.101299
0
0.009109
0.210863
1,252
45
80
27.822222
0.770243
0.464856
0
0.222222
0
0
0.012214
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8496886dbc56ebec7509a1f73cdab97ecc41c0e3
3,487
py
Python
gan_training/DCGAN.py
sanilpande/stars-align
cdf69f487d3e4d2cef1d455840f094e2df55415e
[ "MIT" ]
null
null
null
gan_training/DCGAN.py
sanilpande/stars-align
cdf69f487d3e4d2cef1d455840f094e2df55415e
[ "MIT" ]
null
null
null
gan_training/DCGAN.py
sanilpande/stars-align
cdf69f487d3e4d2cef1d455840f094e2df55415e
[ "MIT" ]
1
2020-11-04T15:08:38.000Z
2020-11-04T15:08:38.000Z
""" DCGAN Model to get Generator for DefenseGAN Baseline Implementation. References: https://www.coursera.org/learn/build-basic-generative-adversarial-networks-gans https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html """ import torch from torch import nn class Generator(nn.Module): """Genera...
39.179775
120
0.632062
478
3,487
4.378661
0.219665
0.077401
0.042045
0.064979
0.466316
0.315815
0.311515
0.270425
0.211658
0.161491
0
0.047711
0.260683
3,487
88
121
39.625
0.764158
0.148265
0
0.172414
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0.034483
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8496d65386d0cc0e3eff34b5236093dc29e85684
3,713
py
Python
figures/scripts/metrics_roc.py
ljalil/MasterThesis
59f4ec6356f41647cc4ac9510bcdd0c8506919b8
[ "CC-BY-4.0" ]
6
2020-06-25T16:28:02.000Z
2022-02-12T19:53:37.000Z
figures/scripts/metrics_roc.py
ljalil/MasterThesis
59f4ec6356f41647cc4ac9510bcdd0c8506919b8
[ "CC-BY-4.0" ]
null
null
null
figures/scripts/metrics_roc.py
ljalil/MasterThesis
59f4ec6356f41647cc4ac9510bcdd0c8506919b8
[ "CC-BY-4.0" ]
1
2020-08-14T13:37:32.000Z
2020-08-14T13:37:32.000Z
# -*- coding: utf-8 -*- """ Created on Sat May 9 11:03:34 2020 @author: Abdeljalil """ import numpy as np np.random.seed(10) import matplotlib.pyplot as plt from sklearn.datasets import make_classification from sklearn.linear_model import LogisticRegression from sklearn.ensemble import (RandomTreesEmbedding, Rando...
33.45045
96
0.748721
647
3,713
4.017002
0.248841
0.02501
0.018469
0.030781
0.297807
0.190073
0.088111
0
0
0
0
0.029636
0.118503
3,713
111
97
33.45045
0.764436
0.173714
0
0
0
0
0.076797
0.015097
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849755a42d03dcd27711cb278727ab380e899f5c
1,729
py
Python
annotate/ac_build.py
universalbenefitNLP/text_annotate_py
e60e29af410c4ec0c8a2b09de8ea772d0572e066
[ "Unlicense" ]
null
null
null
annotate/ac_build.py
universalbenefitNLP/text_annotate_py
e60e29af410c4ec0c8a2b09de8ea772d0572e066
[ "Unlicense" ]
null
null
null
annotate/ac_build.py
universalbenefitNLP/text_annotate_py
e60e29af410c4ec0c8a2b09de8ea772d0572e066
[ "Unlicense" ]
null
null
null
import sys import os import argparse import pickle import ahocorasick from utils.utils import check_file, ensure_dir sys.path.append(os.path.join(os.path.dirname(__file__), '..')) def _get_parser(): parser = argparse.ArgumentParser() parser.add_argument('--infile', type=str, default='../data/synonym', help...
28.816667
105
0.661076
227
1,729
4.881057
0.356828
0.021661
0.061372
0.032491
0.146209
0.043321
0
0
0
0
0
0.000722
0.198959
1,729
59
106
29.305085
0.799278
0
0
0.045455
0
0
0.115095
0
0
0
0
0
0.022727
1
0.045455
false
0
0.136364
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849802068a48f6b66e9845576227f8306065b792
3,368
py
Python
src/count/HashCount.py
abagaria/opiq
b7df5134d8b265972ad70f7ba92b385f1e3fe5f2
[ "MIT" ]
13
2020-02-13T16:09:16.000Z
2021-07-21T16:23:39.000Z
src/count/HashCount.py
abagaria/opiq
b7df5134d8b265972ad70f7ba92b385f1e3fe5f2
[ "MIT" ]
2
2020-08-04T01:46:37.000Z
2021-06-28T10:30:53.000Z
src/count/HashCount.py
abagaria/opiq
b7df5134d8b265972ad70f7ba92b385f1e3fe5f2
[ "MIT" ]
3
2020-08-01T07:33:02.000Z
2021-11-13T20:54:55.000Z
# Taken from https://github.com/openai/EPG/blob/master/epg/exploration.py import numpy as np import torch device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class HashingBonusEvaluator(object): """Hash-based count bonus for exploration. Tang, H., Houthooft, R., Foote, D., Stooke, A., Chen...
42.632911
122
0.620546
450
3,368
4.482222
0.348889
0.076351
0.044621
0.03768
0.292018
0.271195
0.242935
0.1765
0.16113
0.131879
0
0.028991
0.252375
3,368
79
123
42.632911
0.772041
0.331057
0
0.238095
0
0
0.004521
0
0
0
0
0
0
1
0.142857
false
0
0.047619
0.02381
0.309524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8498d5ed9bad8601b8ff437aad645427031351bd
1,435
py
Python
app.py
salsal97/birthday-bingo-flask
e7f235d8284a2442f5e06637148f421ec7ac609c
[ "MIT" ]
null
null
null
app.py
salsal97/birthday-bingo-flask
e7f235d8284a2442f5e06637148f421ec7ac609c
[ "MIT" ]
null
null
null
app.py
salsal97/birthday-bingo-flask
e7f235d8284a2442f5e06637148f421ec7ac609c
[ "MIT" ]
null
null
null
import re import os import random import json from datetime import datetime from flask import Flask, render_template app = Flask(__name__) # using Flask's app.route decorator to map the URL route / to that function: @app.route("/") def home(): no_of_columns=4 image_path='static/index/' image_list=os.lis...
25.175439
76
0.61324
194
1,435
4.386598
0.391753
0.052879
0.070505
0.044653
0.199765
0.199765
0.199765
0.091657
0.091657
0.091657
0
0.001878
0.25784
1,435
56
77
25.625
0.797183
0.066899
0
0.177778
0
0
0.166916
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849afa26cbaa85520b913e54c9ff304fa6ad9cd6
259
py
Python
blink_cursor.py
macshaggy/curses-example
b6b9c03b508515cf35e0a5f24963a386568c8029
[ "Unlicense" ]
1
2022-02-15T08:24:28.000Z
2022-02-15T08:24:28.000Z
blink_cursor.py
macshaggy/curses-example
b6b9c03b508515cf35e0a5f24963a386568c8029
[ "Unlicense" ]
null
null
null
blink_cursor.py
macshaggy/curses-example
b6b9c03b508515cf35e0a5f24963a386568c8029
[ "Unlicense" ]
null
null
null
import curses screen = curses.initscr() curses.curs_set(0) screen.addstr(2, 2, "Hello, I disabled the cursor!") screen.refresh() screen.getch() curses.curs_set(1) screen.addstr(2, 2, "And now it's back on.") screen.refresh() screen.getch() curses.endwin()
17.266667
52
0.722008
42
259
4.404762
0.571429
0.108108
0.140541
0.151351
0.324324
0
0
0
0
0
0
0.026087
0.111969
259
15
53
17.266667
0.778261
0
0
0.363636
0
0
0.192308
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849b5137ce5d8ff5f15fdccb8056c6c7fb8d7923
3,028
py
Python
script/model.py
jayeolasegun/Term-Deposit-Classification
e1ce928814f26712813f600bc704183d5a9e603d
[ "CC0-1.0" ]
null
null
null
script/model.py
jayeolasegun/Term-Deposit-Classification
e1ce928814f26712813f600bc704183d5a9e603d
[ "CC0-1.0" ]
null
null
null
script/model.py
jayeolasegun/Term-Deposit-Classification
e1ce928814f26712813f600bc704183d5a9e603d
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Jayeola Gbenga """ from sklearn.metrics import precision_score, recall_score, f1_score, roc_auc_score, accuracy_score, classification_report, confusion_matrix, average_precision_score from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRe...
30.897959
164
0.693857
379
3,028
5.327177
0.258575
0.027241
0.05894
0.076275
0.099059
0.0842
0.044577
0
0
0
0
0.00779
0.194518
3,028
98
165
30.897959
0.820008
0.05251
0
0
0
0
0.057733
0
0
0
0
0
0
1
0.123077
false
0
0.123077
0
0.261538
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
849b79c678c32714b70be8d959429c3a52dedbd6
1,096
py
Python
examples/vtrace/vtrace_main.py
cg31/cule
6cd8e06059c3c3a193a4b2e0821dc1b9daeb726c
[ "BSD-3-Clause" ]
208
2019-05-25T21:35:35.000Z
2022-03-28T17:33:13.000Z
examples/vtrace/vtrace_main.py
cg31/cule
6cd8e06059c3c3a193a4b2e0821dc1b9daeb726c
[ "BSD-3-Clause" ]
30
2019-07-27T08:23:54.000Z
2022-03-24T18:17:36.000Z
examples/vtrace/vtrace_main.py
cg31/cule
6cd8e06059c3c3a193a4b2e0821dc1b9daeb726c
[ "BSD-3-Clause" ]
27
2019-07-27T05:42:23.000Z
2022-03-05T03:08:52.000Z
import os import sys _path = os.path.abspath(os.path.pardir) if not _path in sys.path: sys.path = [_path] + sys.path from a2c.a2c_main import a2c_parser_options from utils.launcher import main def vtrace_parser_options(parser): parser = a2c_parser_options(parser) parser.add_argument('--c-hat', type=int,...
33.212121
138
0.710766
162
1,096
4.62963
0.401235
0.064
0.113333
0.06
0.170667
0.170667
0.170667
0.109333
0
0
0
0.020563
0.156934
1,096
32
139
34.25
0.791126
0
0
0
0
0
0.278285
0.020073
0
0
0
0
0
1
0.086957
false
0
0.217391
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84a079370d636370f1b591d1c907976b21011209
740
py
Python
test/Fitting/Helper/covariance.py
Marcel-Rodekamp/qcdanalysistools
945c8201337ba0d52bc37267198d367bbe3e75e3
[ "MIT" ]
null
null
null
test/Fitting/Helper/covariance.py
Marcel-Rodekamp/qcdanalysistools
945c8201337ba0d52bc37267198d367bbe3e75e3
[ "MIT" ]
null
null
null
test/Fitting/Helper/covariance.py
Marcel-Rodekamp/qcdanalysistools
945c8201337ba0d52bc37267198d367bbe3e75e3
[ "MIT" ]
null
null
null
import numpy as np import qcdanalysistools as tools Nt = 6 data = np.random.randn(1000,Nt) # for different analysis style set Jackknife,Bootstrap or Blocking params = tools.analysis.BootstrapParams( t_data_size = data.shape[0], t_num_subdatasets = 1000, t_with_blocking = True, t_num_blocks = 50) #par...
22.424242
66
0.685135
107
740
4.514019
0.439252
0.041408
0.118012
0.080745
0.335404
0.335404
0.335404
0.293996
0.198758
0.198758
0
0.037099
0.198649
740
32
67
23.125
0.777403
0.497297
0
0
0
0
0.061281
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84a2c67d501b3191d0fcf4e3e728aec5720bd5db
351
py
Python
reverse.py
abishak-cit/Python_Abi
77008ac06d38a3838eb1b0e8408586584ad457a6
[ "Apache-2.0" ]
null
null
null
reverse.py
abishak-cit/Python_Abi
77008ac06d38a3838eb1b0e8408586584ad457a6
[ "Apache-2.0" ]
null
null
null
reverse.py
abishak-cit/Python_Abi
77008ac06d38a3838eb1b0e8408586584ad457a6
[ "Apache-2.0" ]
null
null
null
#input of num num = int(input()) #initial value of reverse reverse_num = 0 #conditon for entry using while loop while(num>0): #remainder of the given no remainder = num % 10 # formula of the reverse reverse_num = (reverse_num * 10) + remainder #floor division of the num num = num//10 #display th...
23.4
47
0.689459
54
351
4.407407
0.444444
0.168067
0.142857
0
0
0
0
0
0
0
0
0.02952
0.22792
351
14
48
25.071429
0.848708
0.464387
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84a5a559826a0b1cfc3399aa82d37b0bf832ff51
4,536
py
Python
ppgan/datasets/photopen_dataset.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
3
2022-02-20T11:40:50.000Z
2022-02-20T11:46:29.000Z
ppgan/datasets/photopen_dataset.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
38
2021-10-14T12:55:45.000Z
2021-12-24T06:09:10.000Z
ppgan/datasets/photopen_dataset.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
1
2021-09-22T09:29:19.000Z
2021-09-22T09:29:19.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
38.440678
115
0.659392
663
4,536
4.280543
0.239819
0.059197
0.054968
0.059197
0.585624
0.572234
0.572234
0.572234
0.547569
0.487667
0
0.012557
0.227513
4,536
117
116
38.769231
0.797374
0.133818
0
0.55814
0
0
0.030659
0
0
0
0
0
0
1
0.104651
false
0
0.116279
0.046512
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84a8ab03d12084e27de0595a388320ee876c313d
49,028
py
Python
dnanexus/chip_workflow.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
null
null
null
dnanexus/chip_workflow.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
null
null
null
dnanexus/chip_workflow.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Instantiate the ENCODE ChIP-seq workflow''' import sys import logging import re import dxpy import time import pprint EPILOG = '''Notes: Examples: # Build blank TF workflow from fastq to peaks %(prog)s --target tf --name "ENCODE TF ChIP-seq (no reference)" --outf "/ChIP-seq/" # ...
46.122295
182
0.571755
5,559
49,028
4.767764
0.089764
0.025091
0.029995
0.01811
0.596061
0.530486
0.449743
0.394318
0.339005
0.293654
0
0.015842
0.32149
49,028
1,062
183
46.165725
0.780887
0.057212
0
0.388286
0
0.0141
0.234162
0.034362
0
0
0
0.000942
0.006508
1
0.011931
false
0
0.007592
0.001085
0.037961
0.004338
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84aa7a485b23bade222cd7a7bb91c2a1c86b90b1
5,893
py
Python
research/cv/centernet_det/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/centernet_det/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/centernet_det/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# !/usr/bin/env python # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applica...
35.077381
108
0.642797
787
5,893
4.590851
0.316391
0.024356
0.023526
0.022142
0.052311
0
0
0
0
0
0
0.02816
0.246733
5,893
167
109
35.287425
0.785763
0.119294
0
0.113821
0
0.00813
0.129781
0.018931
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.162602
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84ac7100c4712d1ce87ee51e11280bbc7f7e34ca
12,760
py
Python
oneclick-env.py
hmsjy2017/rpi.sh
93fce371afbda13981b46dfdda8fb3658dc69add
[ "MIT" ]
null
null
null
oneclick-env.py
hmsjy2017/rpi.sh
93fce371afbda13981b46dfdda8fb3658dc69add
[ "MIT" ]
null
null
null
oneclick-env.py
hmsjy2017/rpi.sh
93fce371afbda13981b46dfdda8fb3658dc69add
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import base64 import argparse import platform bit = platform.architecture()[0] def logo(): print(""" ___ ____ _ _ _ _____ / _ \ _ __ ___ / ___| (_) ___| | __ | ____|_ ____ __ | | | | '_ \ / _ \ | | | |/...
40.125786
177
0.636755
1,864
12,760
4.266094
0.18133
0.105634
0.073944
0.032067
0.451836
0.392354
0.368209
0.287852
0.239562
0.215292
0
0.031334
0.18464
12,760
317
178
40.252366
0.732987
0.128527
0
0.117155
0
0.150628
0.584695
0.100442
0
0
0
0
0
1
0.066946
false
0.004184
0.016736
0
0.087866
0.309623
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84b0bec30f453aa165d3b13115fa78f5cf8b59c7
2,842
py
Python
models/ssl_online.py
SaeidAbdolian/seasonal-contrast
5395c027922569f5c5b1785ad1ccddd839749c36
[ "Apache-2.0" ]
74
2021-04-25T13:56:50.000Z
2022-03-25T08:01:14.000Z
models/ssl_online.py
SaeidAbdolian/seasonal-contrast
5395c027922569f5c5b1785ad1ccddd839749c36
[ "Apache-2.0" ]
11
2021-05-28T00:24:51.000Z
2022-03-26T17:41:47.000Z
models/ssl_online.py
SaeidAbdolian/seasonal-contrast
5395c027922569f5c5b1785ad1ccddd839749c36
[ "Apache-2.0" ]
8
2021-07-04T18:04:53.000Z
2022-02-05T16:30:16.000Z
import torch from torch import nn from pytorch_lightning import Callback from pl_bolts.models.self_supervised.evaluator import SSLEvaluator from sklearn.metrics import average_precision_score from datasets.bigearthnet_datamodule import BigearthnetDataModule class SSLOnlineEvaluator(Callback): def __init__(self,...
35.525
115
0.64145
320
2,842
5.45
0.371875
0.03211
0.029817
0.03211
0.268349
0.24656
0.183486
0.149083
0.149083
0.149083
0
0.011116
0.271992
2,842
79
116
35.974684
0.831803
0
0
0.163934
0
0
0.006685
0
0
0
0
0
0
1
0.04918
false
0
0.098361
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84b481634f7f37995b27de2c74c109a567cd3989
10,111
py
Python
deprecated/word_index_transform/word_index_transform.py
thhapke/di_textanalysis
1a2866e9d19df3f49931dc774d0223e5600895f4
[ "MIT" ]
2
2020-04-09T06:41:02.000Z
2020-05-07T10:56:03.000Z
deprecated/word_index_transform/word_index_transform.py
thhapke/di_textanalysis
1a2866e9d19df3f49931dc774d0223e5600895f4
[ "MIT" ]
null
null
null
deprecated/word_index_transform/word_index_transform.py
thhapke/di_textanalysis
1a2866e9d19df3f49931dc774d0223e5600895f4
[ "MIT" ]
2
2020-05-19T18:30:56.000Z
2021-11-18T09:03:50.000Z
import json import os import csv import re import pickle import collections import subprocess import spacy import sdi_utils.gensolution as gs import sdi_utils.set_logging as slog import sdi_utils.textfield_parser as tfp import sdi_utils.tprogress as tp supported_languages = ['DE', 'EN', 'ES', 'FR'] lexicon_language...
34.986159
152
0.584908
1,206
10,111
4.768657
0.208126
0.014606
0.011302
0.013911
0.291949
0.214745
0.199444
0.188141
0.159972
0.147453
0
0.007583
0.282662
10,111
288
153
35.107639
0.78533
0.094353
0
0.197115
0
0.004808
0.205589
0.042411
0
0
0
0
0
1
0.038462
false
0.004808
0.057692
0
0.149038
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84b7c410edf7c271a3e1fd7e4b7628ff057b3c2c
21,371
py
Python
overrule/BCS/overlap_boolean_rule.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
2
2020-07-09T03:15:58.000Z
2022-03-09T11:57:17.000Z
overrule/BCS/overlap_boolean_rule.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
null
null
null
overrule/BCS/overlap_boolean_rule.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
1
2021-05-18T11:55:04.000Z
2021-05-18T11:55:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ----------------------------------------------# # OverRule: Overlap Estimation using Rule Sets # # @Authors: Dennis Wei, Michael Oberst, # # Fredrik D. Johansson # # ----------------------------------------------# import logging import ...
39.212844
156
0.48271
2,658
21,371
3.820918
0.162528
0.023927
0.015754
0.020087
0.451457
0.401438
0.372095
0.34807
0.339602
0.330445
0
0.016931
0.39198
21,371
544
157
39.284926
0.764661
0.187029
0
0.52
0
0
0.027349
0
0
0
0
0.003676
0.010667
1
0.034667
false
0
0.021333
0
0.088
0.002667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84b9e9871acbe9ff363a0e59ef9598addf9b4e9d
16,463
py
Python
src/quo/i_o/termui.py
secretuminc/quo
c4f77d52f015c612d32ed0fc2fc79545af598f10
[ "MIT" ]
1
2021-02-15T03:56:00.000Z
2021-02-15T03:56:00.000Z
src/quo/i_o/termui.py
chouette254/quo
fec78ae3b4a6d70501e2119868336c28c590fa50
[ "MIT" ]
3
2021-02-22T11:49:23.000Z
2021-02-28T06:47:41.000Z
src/quo/i_o/termui.py
secretuminc/quo
c4f77d52f015c612d32ed0fc2fc79545af598f10
[ "MIT" ]
null
null
null
import inspect import io import itertools import os import struct import sys import math from typing import Any, Optional, IO from quo.accordance import ( DEFAULT_COLUMNS, get_winterm_size, bit_bytes, isatty, strip_ansi_colors, ) from quo.color import ansi_color_codes, _a...
32.860279
227
0.615137
2,246
16,463
4.461264
0.234194
0.007984
0.013473
0.011677
0.163772
0.151397
0.120559
0.07006
0.061677
0.056487
0
0.010602
0.283849
16,463
500
228
32.926
0.839271
0.47707
0
0.2
0
0
0.088082
0.013894
0
0
0
0
0
1
0.062745
false
0.011765
0.086275
0
0.239216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84b9eb0c102288c50bbed9bdfca4a239cee038fc
3,026
py
Python
Magnetic Field/biot_square.py
ValeriaTelles/Physics-Programs
9fdd1b60ad5dd9c6750855bf63c2aa89383a0b1a
[ "MIT" ]
null
null
null
Magnetic Field/biot_square.py
ValeriaTelles/Physics-Programs
9fdd1b60ad5dd9c6750855bf63c2aa89383a0b1a
[ "MIT" ]
null
null
null
Magnetic Field/biot_square.py
ValeriaTelles/Physics-Programs
9fdd1b60ad5dd9c6750855bf63c2aa89383a0b1a
[ "MIT" ]
null
null
null
# Name: Valeria Telles # Date: 2 March 2020 # Program: biot_square.py import numpy as np import matplotlib.pyplot as plt import time as time from matplotlib.patches import Circle def biot(Rvec, wire, I): mu_4pi = 10 dB = np.zeros((len(wire), 3)) R = Rvec - wire Rsqr = np.sum( R**2, axis = 1 ) ...
25.863248
89
0.616986
552
3,026
3.358696
0.326087
0.011866
0.008091
0.010787
0.161273
0.130529
0.053937
0.053937
0.053937
0.031284
0
0.050146
0.209187
3,026
117
89
25.863248
0.724613
0.307667
0
0.066667
0
0
0.055985
0
0
0
0
0
0
1
0.05
false
0
0.066667
0.016667
0.166667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84bb50006f22e7f74b51168de711fdca99d21854
1,612
py
Python
RCN_for_CAPTCHA_v1.0/src/get_test_data.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
2
2021-02-20T15:43:43.000Z
2021-02-20T15:43:51.000Z
RCN_for_CAPTCHA_v1.0/src/get_test_data.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
null
null
null
RCN_for_CAPTCHA_v1.0/src/get_test_data.py
ZhongqiuWang/RCN_for_CAPTCHA
ea231c63ea72437e1b47f8b0684f1dcbf1973fa3
[ "MIT" ]
null
null
null
import os import shutil import numpy as np from cv2 import imread def get_captcha_data_iters(data_dir, test_size, target_data_dir, seed=5): """ 获取测试图片 :param data_dir: 测试图片文件所在路径 :param test_size: 测试图片张数 :param target_data_dir: 将选出的测试图片放到该路径下 :param seed: 随机种子 :return: test_set ...
29.309091
85
0.616625
212
1,612
4.429245
0.386792
0.089457
0.046858
0.031949
0
0
0
0
0
0
0
0.005195
0.283499
1,612
54
86
29.851852
0.807792
0.175558
0
0
0
0
0.030087
0
0
0
0
0
0
1
0.096774
false
0
0.129032
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84bd5f607b82fa8a39bd0ca835a5cf720f40f089
27,550
py
Python
overrides.py
inuitwallet/plunge_android
0a23a78218a9852f0b9363b276c942ca2e517823
[ "MIT" ]
null
null
null
overrides.py
inuitwallet/plunge_android
0a23a78218a9852f0b9363b276c942ca2e517823
[ "MIT" ]
null
null
null
overrides.py
inuitwallet/plunge_android
0a23a78218a9852f0b9363b276c942ca2e517823
[ "MIT" ]
null
null
null
import json from kivy.app import App from kivy.config import ConfigParser from kivy.core.window import Window from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button from kivy.uix.label import Label from kivy.uix.popup import Popup from kivy.uix.slider import Slider from kivy.metrics import dp from ...
40.754438
140
0.616189
3,590
27,550
4.521727
0.100836
0.028461
0.026612
0.019898
0.509826
0.435779
0.358899
0.325633
0.300499
0.284852
0
0.014646
0.271361
27,550
675
141
40.814815
0.794012
0.094483
0
0.309381
0
0
0.054775
0
0
0
0
0
0
1
0.05988
false
0
0.037924
0
0.161677
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84bfb20ccc017f5c1536067957e13d0482a7d66c
3,370
py
Python
scripts/read_msd2.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
null
null
null
scripts/read_msd2.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
11
2017-08-15T22:11:32.000Z
2017-08-22T23:32:17.000Z
scripts/read_msd2.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
1
2017-01-31T19:44:02.000Z
2017-01-31T19:44:02.000Z
""" Reads mean squared displacement for a list of trials and saves results to a yaml file """ import os import yaml from thermof.trajectory import Trajectory from thermof.read import read_run_info # -------------------------------------------------------------------------------------------------- main = '' box1_atoms =...
43.205128
123
0.563501
465
3,370
3.931183
0.251613
0.032823
0.027352
0.021882
0.137856
0.071116
0.053611
0.028446
0.028446
0.028446
0
0.052731
0.217804
3,370
77
124
43.766234
0.640744
0.084273
0
0
0
0.016393
0.067598
0.010725
0
0
0
0
0
1
0.016393
false
0
0.065574
0
0.098361
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84c0de3f23adbe842d0efaadf9c2467bc66d8a1e
4,230
py
Python
LineDetection/line_following_opencv.py
angrajales/SDC_Eafit
ecbde0235100655baa1cbd189ab02ac2c9f35e67
[ "Apache-2.0" ]
null
null
null
LineDetection/line_following_opencv.py
angrajales/SDC_Eafit
ecbde0235100655baa1cbd189ab02ac2c9f35e67
[ "Apache-2.0" ]
null
null
null
LineDetection/line_following_opencv.py
angrajales/SDC_Eafit
ecbde0235100655baa1cbd189ab02ac2c9f35e67
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np class LineFollowing(object): def __init__(self): self.polyLeft1 = 450 self.polyRight1 = 320 self.polyLeft2 = 500 self.polyRight2 = 320 self.ignore_mask_color = 255 # White color def next_action(self, frame, slope=-1): p_next_action =...
45.483871
169
0.500709
487
4,230
4.112936
0.293635
0.074888
0.038442
0.019471
0.164254
0.081378
0.069895
0.03994
0.03994
0
0
0.053507
0.346099
4,230
92
170
45.978261
0.670644
0.134279
0
0.114286
0
0
0.026988
0
0
0
0
0
0
1
0.057143
false
0
0.028571
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84c4318fb98bf099642661dc62436fb1ca14b9d3
748
py
Python
Company-Based/amazon/load_balancer.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
Company-Based/amazon/load_balancer.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
Company-Based/amazon/load_balancer.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
def load_balance(arr): """ :type arr: List[int] :rtype: bool """ if len(arr) < 5: return False p_sum = [arr[0]] # Calc prefix sum for i in range(1, len(arr)): p_sum.append(p_sum[-1]+arr[i]) low = 1 high = len(arr)-1 while low < high: lower = p_sum[low-...
23.375
53
0.490642
115
748
3.095652
0.365217
0.089888
0.039326
0
0
0
0
0
0
0
0
0.050314
0.362299
748
31
54
24.129032
0.696017
0.147059
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.190476
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84c71a7531ae9fa2ac7181c6e7cdd2b229658408
1,058
py
Python
Data Structure/Recursion/Problems/FibonacciNumber.py
xiaomaomi7/DSA
e5cb88c9f1d39fd305c0f92db4ecae6e846cff01
[ "MIT" ]
null
null
null
Data Structure/Recursion/Problems/FibonacciNumber.py
xiaomaomi7/DSA
e5cb88c9f1d39fd305c0f92db4ecae6e846cff01
[ "MIT" ]
null
null
null
Data Structure/Recursion/Problems/FibonacciNumber.py
xiaomaomi7/DSA
e5cb88c9f1d39fd305c0f92db4ecae6e846cff01
[ "MIT" ]
null
null
null
''' Author: Hongxiang Qi Date: 22/06/2021 Description: Write a recursive function called fib which accepts a number and returns the nth number in the Fibonacci sequence. Recall that the Fibonacci sequence is the sequence of whole numbers 0,1,1,2,3,5,8,... which starts with 0 and 1, and where every number thereafter is ...
27.128205
109
0.643667
168
1,058
4.053571
0.5
0.035242
0.058737
0.023495
0.208517
0.208517
0.179148
0.179148
0.179148
0
0
0.072704
0.258979
1,058
39
110
27.128205
0.795918
0.42155
0
0
0
0
0.226804
0
0
0
0
0
0.142857
1
0.142857
false
0
0
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84cb010d5b5c6e2312275904e2f2082e3246dbef
1,216
py
Python
test/asyncpool.py
timgates42/stream.py
6a4945cbddaf74138eee5ba33eee3988cfceb84d
[ "MIT" ]
34
2015-02-04T15:00:52.000Z
2021-08-24T01:33:36.000Z
test/asyncpool.py
timgates42/stream.py
6a4945cbddaf74138eee5ba33eee3988cfceb84d
[ "MIT" ]
2
2016-02-16T22:02:02.000Z
2016-03-02T18:25:00.000Z
test/asyncpool.py
timgates42/stream.py
6a4945cbddaf74138eee5ba33eee3988cfceb84d
[ "MIT" ]
7
2015-10-14T19:58:53.000Z
2022-03-28T04:18:36.000Z
#!/usr/bin/env python2.6 import os import sys from pprint import pprint from random import randint sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) from stream import filter, map, ThreadPool, ProcessPool ## The test data dataset = [] def alternating(n): values = [] for i in range(1, n+1): v...
17.623188
65
0.683388
181
1,216
4.508287
0.348066
0.034314
0.022059
0.040441
0.230392
0.230392
0.230392
0.122549
0.122549
0.122549
0
0.025743
0.169408
1,216
68
66
17.882353
0.782178
0.050987
0
0.292683
0
0
0.008718
0
0
0
0
0
0.04878
1
0.146341
false
0
0.146341
0
0.341463
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84ceb7de86289497443ba36288d408d44c8ab72e
2,779
py
Python
sagas/ofbiz/entity_meta_indexer.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/ofbiz/entity_meta_indexer.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/ofbiz/entity_meta_indexer.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
from sagas.ofbiz.entities import OfEntity as e, oc, MetaEntity, all_entities import resources_pb2 as res import protobuf_utils def build_field_index(ents): field_index={} for ent_name in ents: ent=MetaEntity(ent_name) if not oc.j.Utils.isViewEntity(ent.model): for fld in ent.model.g...
30.877778
79
0.593739
344
2,779
4.607558
0.27907
0.037855
0.028391
0.035962
0.196845
0.078233
0.078233
0.078233
0
0
0
0.000512
0.297589
2,779
89
80
31.224719
0.810963
0.062612
0
0.031746
0
0
0.09209
0.026761
0
0
0
0
0
1
0.126984
false
0
0.079365
0
0.285714
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84cebcba7d82ad0421772f1cc2c1ed6a4c0f886b
261
py
Python
exercicios-com-funcoes/exercicio01.py
diegolinkk/exercicios-python-brasil
3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5
[ "MIT" ]
null
null
null
exercicios-com-funcoes/exercicio01.py
diegolinkk/exercicios-python-brasil
3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5
[ "MIT" ]
null
null
null
exercicios-com-funcoes/exercicio01.py
diegolinkk/exercicios-python-brasil
3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5
[ "MIT" ]
null
null
null
# Faça um programa para imprimir: # 1 # 2 2 # 3 3 3 # ..... # n n n n n n ... n def contador(n): for numero in range(1,n): string = str(numero) + " " string *= numero print(string) contador(15)
17.4
34
0.448276
36
261
3.25
0.527778
0.102564
0.128205
0.136752
0.059829
0.059829
0
0
0
0
0
0.059603
0.421456
261
15
35
17.4
0.715232
0.398467
0
0
0
0
0.006623
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84d53ac24c7879eddf6eb1cc6dd18e51a194809c
4,592
py
Python
pythonlibs/mantis/sg/fisher/stbase/market.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
22
2019-10-28T07:28:12.000Z
2022-03-19T15:36:41.000Z
pythonlibs/mantis/sg/fisher/stbase/market.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
1
2019-11-07T04:54:14.000Z
2019-11-07T07:12:48.000Z
pythonlibs/mantis/sg/fisher/stbase/market.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
13
2019-10-28T07:29:07.000Z
2021-11-03T06:53:12.000Z
#coding:utf-8 import time,datetime import os,os.path import json import traceback from threading import Thread,Condition from Queue import Queue from collections import OrderedDict from mantis.fundamental.utils.timeutils import timestamp_current, timestamp_to_str,datetime_to_timestamp,\ current_datetim...
29.818182
107
0.574477
470
4,592
5.544681
0.282979
0.041443
0.030698
0.036838
0.300844
0.23868
0.123561
0.088258
0.05449
0.05449
0
0.005756
0.319033
4,592
153
108
30.013072
0.82763
0.059016
0
0.318584
0
0
0.01404
0
0
0
0
0
0
1
0.141593
false
0.017699
0.106195
0.00885
0.336283
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84d6b98590fb4046c65ce15b09a1a6c1ece9068c
14,409
py
Python
ai/experiment.py
lgoodridge/Asteroids-AI
bf6abd2b42db1b13667060c30de13a53aaa05110
[ "MIT" ]
4
2018-11-06T16:27:11.000Z
2021-11-12T12:23:54.000Z
ai/experiment.py
lgoodridge/Asteroids-AI
bf6abd2b42db1b13667060c30de13a53aaa05110
[ "MIT" ]
null
null
null
ai/experiment.py
lgoodridge/Asteroids-AI
bf6abd2b42db1b13667060c30de13a53aaa05110
[ "MIT" ]
1
2022-02-25T10:35:34.000Z
2022-02-25T10:35:34.000Z
""" Defines functions for running AI experiments. """ from __future__ import print_function from ai.ai_app import AI_App from ai.generation import Generation from ai.utils import algorithm_id_to_generation_class, \ BEST_BRAIN_FILENAME, LOG_FILENAME, META_FILENAME from collections import OrderedDict from dateti...
39.368852
83
0.630162
1,775
14,409
4.886761
0.154366
0.042541
0.021905
0.028476
0.468296
0.434402
0.3733
0.338022
0.295135
0.285681
0
0.003776
0.264904
14,409
365
84
39.476712
0.815144
0.16219
0
0.418972
0
0
0.15801
0.020204
0
0
0
0
0
1
0.023715
false
0
0.047431
0
0.102767
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84d726cdadffb9899d6b5d6a67cdc9191f4d113d
2,655
py
Python
tests/test_SpellingResolver.py
microsoft/cai-advanced-processing-service
91fce8048fe275aa870083bed22d452d330ef535
[ "MIT" ]
9
2021-11-17T11:50:47.000Z
2022-02-15T14:48:32.000Z
tests/test_SpellingResolver.py
microsoft/cai-advanced-processing-service
91fce8048fe275aa870083bed22d452d330ef535
[ "MIT" ]
7
2021-12-03T17:05:26.000Z
2022-03-02T04:59:50.000Z
tests/test_SpellingResolver.py
microsoft/cai-advanced-processing-service
91fce8048fe275aa870083bed22d452d330ef535
[ "MIT" ]
null
null
null
import unittest, json import azure.functions as func from ddt import ddt, data, unpack from SpellingResolver.main import main @ddt class TestSpellingResolver(unittest.TestCase): @data( ({"query":"anton marta 123", "convertnumbers": True, "convertsymbols": True, "addit...
32.777778
63
0.448588
221
2,655
5.257919
0.384615
0.082616
0.110155
0.123924
0.313253
0.313253
0.313253
0.313253
0.285714
0.285714
0
0.045984
0.418456
2,655
81
64
32.777778
0.706606
0.020716
0
0.293333
0
0
0.332936
0.041716
0
0
0
0
0.013333
1
0.013333
false
0
0.053333
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84db039c9f5c049f0b4ccd9906d76791791b4bff
603
py
Python
ex112/UtilidadesCeV/dados/__init__.py
LucasIdalino/Exerc-cios-do-Curso
4ca4610d1acfe4672c20114f891b6aabae816049
[ "MIT" ]
null
null
null
ex112/UtilidadesCeV/dados/__init__.py
LucasIdalino/Exerc-cios-do-Curso
4ca4610d1acfe4672c20114f891b6aabae816049
[ "MIT" ]
null
null
null
ex112/UtilidadesCeV/dados/__init__.py
LucasIdalino/Exerc-cios-do-Curso
4ca4610d1acfe4672c20114f891b6aabae816049
[ "MIT" ]
null
null
null
def leiadinheiro(msg): validade = False while not validade: entrada = str(input(msg)).replace(',', '.').strip() if entrada.isalpha() or entrada == "": print(f'Erro! {entrada} não é um preço válido') else: validade = True return float(entrada) def lei...
22.333333
59
0.500829
68
603
4.441176
0.588235
0.05298
0.072848
0
0
0
0
0
0
0
0
0.002695
0.384743
603
26
60
23.192308
0.811321
0
0
0.090909
0
0
0.124792
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0