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
513455e1e49a2cc7f2af7ad92dbc3662b0e294bf
761
py
Python
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
input = [line.rstrip() for line in open('./inputs/day4.txt')] badWords = 0 for line in input: dictionary = {} words = line.split(' ') for word in words: print(words) if word in dictionary: badWords = badWords + 1 break dictionary[ word ] = 1 print(len(input) - badWords) # ---- CHAL...
21.742857
82
0.599212
110
761
4.145455
0.354545
0.046053
0.059211
0.061404
0
0
0
0
0
0
0
0.015625
0.243101
761
35
83
21.742857
0.776042
0.030223
0
0.16
0
0
0.025815
0
0
0
0
0
0
1
0.04
false
0
0
0
0.08
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
513c933b5d0724d79a4413fb53c8512d831f68a7
7,464
py
Python
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn import torch.optim as optim from prdataset import * from torch.utils.data import DataLoader from torchvision import transforms import tqdm from models import * from inception_torch import InceptionV3 cuda = torch.cuda.is_availab...
36.950495
143
0.624732
913
7,464
4.992333
0.250821
0.022817
0.014261
0.021062
0.120667
0.087758
0.070206
0.060114
0.047389
0.047389
0
0.017867
0.257637
7,464
201
144
37.134328
0.804728
0.017417
0
0.095238
0
0
0.025372
0.005593
0
0
0
0
0
1
0.083333
false
0
0.071429
0.005952
0.214286
0.005952
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5141a9a0670c91a2b930b40b597fedf7c7054b49
8,906
py
Python
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
6
2015-04-05T01:28:23.000Z
2022-02-06T17:29:47.000Z
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-01-05T23:07:10.000Z
2022-03-30T17:52:45.000Z
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-02-06T17:29:53.000Z
2022-02-26T17:23:09.000Z
import os # Path to your LambdaCast instance (no / behind the path) try: from local import ABSOLUTE_PATH except ImportError: ABSOLUTE_PATH = os.path.dirname(os.path.abspath(__file__)) + "/../.." # Domain your instance should use, for example: 'http://example.com' (no / behind the path) try: from local imp...
33.355805
126
0.717045
1,144
8,906
5.473776
0.357517
0.035292
0.009582
0.011498
0.123283
0.0939
0.075695
0.066113
0.053338
0.040882
0
0.006688
0.177296
8,906
266
127
33.481203
0.84796
0.484505
0
0.054054
0
0
0.40062
0.254598
0
0
0
0
0
1
0
false
0.006757
0.047297
0
0.047297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
514411ea3d0032d20f78be6935784f8081b90d34
2,072
py
Python
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
null
null
null
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
1
2020-11-18T19:15:50.000Z
2020-11-24T02:21:33.000Z
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
null
null
null
"""Text Pre-processing. This module process text messages based on Chen et al. (2019). Added some steps (such as escaping HTML symbols, or having a more detailed list of stop and negative words). """ import html import re import string import pandas as pd # Repeated chars more than 3 times repeat_regex = r'(\w)\1{2...
29.183099
79
0.642857
295
2,072
4.420339
0.372881
0.07362
0.069018
0.089724
0.160276
0.132669
0
0
0
0
0
0.010514
0.173745
2,072
70
80
29.6
0.75
0.326255
0
0
0
0
0.189189
0.067568
0
0
0
0
0
1
0.028571
false
0
0.114286
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
514491bebe24982f7e39bca4c4425c0e236edb60
2,062
py
Python
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
6
2015-08-21T08:43:25.000Z
2021-12-29T16:16:59.000Z
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
2
2019-03-25T10:16:18.000Z
2022-01-11T19:14:01.000Z
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
2
2020-10-29T06:15:03.000Z
2021-12-29T16:42:28.000Z
from PySide.QtGui import QDialog from ..gui.brush_dialog import Ui_BrushDialog from PySide.QtGui import QPixmap from PySide.QtCore import Qt from ..brushes import SquareBrush import math class BrushDialog(QDialog): def __init__(self, parent=None, brush=None): super(BrushDialog, self).__init__(parent) ...
34.366667
79
0.679922
271
2,062
4.98893
0.309963
0.066568
0.04068
0.047337
0.113905
0.056213
0
0
0
0
0
0.013052
0.21969
2,062
59
80
34.949153
0.827222
0.079049
0
0
0
0
0.078565
0
0
0
0
0
0
1
0.108696
false
0
0.130435
0
0.282609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51457008bd685f3f5dea47108bc2573ac5535321
1,510
py
Python
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
from json import JSONDecodeError import requests import sys class Osta: def __init__(self, logger, api_url): self.api_url = api_url self.logger = logger def get_user_items(self, user_id): self.logger.debug('Starting collection of osta.ee meters') query_params = { ...
32.826087
141
0.609272
190
1,510
4.726316
0.447368
0.100223
0.066815
0.053452
0.097996
0
0
0
0
0
0
0.026827
0.284106
1,510
45
142
33.555556
0.803885
0
0
0.105263
0
0.026316
0.247682
0
0
0
0
0
0
1
0.105263
false
0
0.078947
0.026316
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
5146da738f04b9b9d8f97c34d071f17da9198bde
794
py
Python
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
1,128
2019-09-11T01:38:09.000Z
2022-03-31T17:06:56.000Z
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
45
2019-09-11T05:39:53.000Z
2021-12-05T17:52:07.000Z
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
185
2019-09-11T02:15:56.000Z
2022-03-23T16:12:41.000Z
_base_config_ = "base.py" model_size = 512 model_url = "http://folk.ntnu.no/haakohu/checkpoints/step_42000000.ckpt" models = dict( scalar_pose_input=False, max_imsize=128, conv_size={ 4: model_size, 8: model_size, 16: model_size, 32: model_size, 64: model_size//2,...
18.465116
72
0.540302
92
794
4.413043
0.565217
0.199507
0.049261
0
0
0
0
0
0
0
0
0.107692
0.345088
794
42
73
18.904762
0.673077
0
0
0.054054
0
0
0.098361
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
514737538b6050cbe92637918e942f1823b10292
1,699
py
Python
server/weather/RestWeatherProvider.py
EveryOtherUsernameWasAlreadyTaken/BIS
e132ce42dcc74e634231398dfecb08834d478cba
[ "MIT" ]
3
2019-07-09T08:51:20.000Z
2019-09-16T17:27:54.000Z
server/weather/RestWeatherProvider.py
thomasw-mitutoyo-ctl/BIS
08525cc12164902dfe968ae41beb6de0cd5bc411
[ "MIT" ]
24
2019-06-17T12:33:35.000Z
2020-03-27T08:17:35.000Z
server/weather/RestWeatherProvider.py
EveryOtherUsernameWasAlreadyTaken/BIS
e132ce42dcc74e634231398dfecb08834d478cba
[ "MIT" ]
1
2020-03-24T17:54:07.000Z
2020-03-24T17:54:07.000Z
import json import logging import threading from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer log = logging.getLogger(__name__) class RestWeatherProvider(threading.Thread): """ The RestWeatherProvider serves the collected weather data using a simple http server. The weather data can be obtai...
30.339286
114
0.669806
183
1,699
6.054645
0.469945
0.075812
0.048736
0.037906
0
0
0
0
0
0
0
0.00387
0.239553
1,699
55
115
30.890909
0.853715
0.1907
0
0.064516
0
0
0.098784
0.043313
0
0
0
0
0
1
0.16129
false
0
0.129032
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
514976db1636eff4f1c2e435911894cc18620e2c
1,531
py
Python
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
1
2019-03-17T11:26:36.000Z
2019-03-17T11:26:36.000Z
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
null
null
null
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Recruit Communications Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.452381
98
0.665578
221
1,531
4.479638
0.475113
0.060606
0.063636
0.078788
0.205051
0.205051
0.2
0.109091
0.082828
0
0
0.042079
0.208361
1,531
41
99
37.341463
0.774752
0.371653
0
0.1
0
0
0.040084
0
0
0
0
0
0.1
1
0.15
false
0
0.1
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
514b2ccf532fafc08943123f355c409988b89713
6,778
py
Python
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.729032
121
0.627176
961
6,778
4.182102
0.213319
0.042548
0.019905
0.005972
0.253546
0.155511
0.121423
0.070416
0.034337
0.034337
0
0.012932
0.235615
6,778
154
122
44.012987
0.762787
0.165683
0
0.073395
0
0.009174
0.071824
0.012328
0
0
0
0
0
1
0.082569
false
0
0.06422
0
0.155963
0.027523
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
514d779997818ca67945865e73aa82b847c739ae
3,302
py
Python
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
12
2018-06-28T13:40:53.000Z
2022-01-07T12:46:15.000Z
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
6
2019-04-29T16:55:38.000Z
2022-03-04T17:00:15.000Z
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
5
2019-04-21T15:42:55.000Z
2021-08-16T10:53:30.000Z
#<hide> """ filtergraph: Streaming part | Decoding part | (LiveThread:livethread) -->> (AVThread:avthread) --> {InfoFrameFilter:info_filter} """ #</hide> #<hide> import time from valkka.core import * #</hide> """<rtf> Let's consider the following filtergraph: :: Streami...
31.447619
214
0.657783
394
3,302
5.467005
0.418782
0.033426
0.044568
0.051996
0.292479
0.262767
0.262767
0.262767
0.262767
0.192201
0
0.050208
0.197759
3,302
104
215
31.75
0.762929
0.086008
0
0
0
0
0.113487
0.060855
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
514e969fdf154b0e8e5327483cdde2b37efd808d
44,964
py
Python
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
3
2015-08-02T09:03:28.000Z
2017-12-06T09:26:14.000Z
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
5
2015-08-17T01:16:35.000Z
2015-09-16T21:51:27.000Z
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
6
2015-05-17T15:32:20.000Z
2020-04-22T08:43:16.000Z
# -*- coding: utf-8 -ü- import os import re import types try: from zopyx.txng3.ext import stemmer as Stemmer except ImportError: Stemmer = None from cheshire3.baseObjects import Normalizer from cheshire3.exceptions import ( ConfigFileException, MissingDependencyException ) class SimpleNormalizer(No...
33.134856
79
0.455231
4,943
44,964
4.102367
0.233461
0.034717
0.012082
0.031068
0.207318
0.176793
0.151297
0.127626
0.10001
0.086646
0
0.129748
0.382929
44,964
1,356
80
33.159292
0.601096
0.095121
0
0.212938
0
0.001797
0.229401
0.005109
0
0
0
0
0
1
0.043127
false
0.008086
0.007188
0.006289
0.140162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
514e96ff8378de7f403d3d5b87b39b9cacaa544f
1,976
py
Python
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
import unittest from flask.ext.testing import TestCase from project import app, db from project.models import User, BlogPost from base import BaseTestCase class FlaskTestCase(BaseTestCase): # def setUp(self): # self.tester = app.test_client(self) # self.good_cred = dict(username='admin', password=...
37.283019
96
0.671053
243
1,976
5.263374
0.26749
0.062549
0.103987
0.089914
0.656763
0.656763
0.636435
0.555903
0.45817
0.412041
0
0.009603
0.209514
1,976
52
97
38
0.809219
0.091093
0
0.447368
0
0
0.087102
0
0
0
0
0
0.263158
1
0.157895
false
0
0.131579
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5150d680a6e92b183496e1677c8274249125d1ee
3,794
py
Python
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
# MagellanMapper logging """Logging utilities.""" import logging from logging import handlers import pathlib class LogWriter: """File-like object to write standard output to logging functions. Attributes: fn_logging (func): Logging function buffer (list[str]): String buffer. """...
29.874016
77
0.624671
463
3,794
5.062635
0.358531
0.021331
0.038396
0.031997
0.116894
0.116894
0.116894
0.116894
0.081058
0
0
0.007305
0.278334
3,794
126
78
30.111111
0.848795
0.457828
0
0.134615
0
0
0.050976
0
0
0
0
0
0
1
0.115385
false
0.019231
0.057692
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5151eb6104a2efda27edf90bc5d40eacc7c63499
3,322
py
Python
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Created : 2021/10/28 17:12 # @Author : Junhyung Kwon # @Site : # @File : har_train.py # @Software : PyCharm import os import torch import torch.nn.functional as F from torch import nn, optim from torch.optim.lr_scheduler import MultiStepLR from tqdm.au...
30.477064
118
0.621915
460
3,322
4.345652
0.336957
0.036018
0.02001
0.015008
0.244122
0.194097
0.172086
0.172086
0.172086
0.172086
0
0.025549
0.245936
3,322
108
119
30.759259
0.772455
0.048164
0
0.256757
0
0
0.054517
0.033597
0
0
0
0
0
1
0.040541
false
0
0.148649
0
0.22973
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5153b4798f2410a6aa6709c5a6328570a85d91d6
3,052
py
Python
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
2
2021-07-02T20:10:48.000Z
2021-07-13T20:51:18.000Z
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
3
2021-06-24T13:27:21.000Z
2021-07-30T15:37:43.000Z
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
3
2021-06-23T19:53:20.000Z
2022-01-04T17:50:44.000Z
from lime_python import Command from ...extension_base import ExtensionBase from .content_type import ContentType from .uri_templates import UriTemplates class AIModelExtension(ExtensionBase): """Extension to handle Blip Analytics Services.""" async def get_models_async( self, skip: int = 0, ...
27.495495
79
0.564548
298
3,052
5.57047
0.281879
0.059639
0.075904
0.104819
0.414458
0.393976
0.266265
0.266265
0.266265
0.266265
0
0.002056
0.362385
3,052
110
80
27.745455
0.850976
0.014417
0
0.210526
0
0
0.0108
0
0
0
0
0
0
1
0
false
0
0.070175
0
0.192982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5155a6295dbb373ee9af2abbcd7551a82f2a7146
1,683
py
Python
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
""" DataJunction (DJ) is a metric repository. Usage: dj compile [REPOSITORY] [-f] [--loglevel=INFO] [--reload] Actions: compile Compile repository Options: -f, --force Force indexing. [default: false] --loglevel=LEVEL Level for logging. [default: INFO] --relo...
23.054795
63
0.608437
168
1,683
5.892857
0.428571
0.064646
0
0
0
0
0
0
0
0
0
0.003344
0.289364
1,683
72
64
23.375
0.824415
0.276887
0
0.083333
0
0
0.068045
0
0
0
0
0
0
1
0.027778
false
0
0.222222
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
5159b6cde26f7df203594b171f65dbf811705a8e
1,286
py
Python
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
4
2015-03-30T22:46:35.000Z
2020-09-08T02:03:53.000Z
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
21
2015-02-03T23:12:36.000Z
2017-09-15T21:03:24.000Z
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
2
2016-08-14T20:18:52.000Z
2019-09-30T16:02:22.000Z
import sys import collections import tornado class Registry(object): def __init__(self, max_entries=10000, ioloop=None): self.models = collections.OrderedDict() self.timeouts = {} self.ioloop = ioloop or tornado.ioloop.IOLoop.current() self.max_entries = max_entries def regis...
28.577778
75
0.618974
144
1,286
5.375
0.305556
0.134367
0.144703
0.089147
0.289406
0.080103
0
0
0
0
0
0.010672
0.271384
1,286
44
76
29.227273
0.815368
0
0
0
0
0
0
0
0
0
0
0
0
1
0.16129
false
0
0.096774
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
515bc2e00165e4793cb2c05d11188ceed1d51545
1,672
py
Python
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
3
2020-11-04T19:34:47.000Z
2021-06-30T04:13:55.000Z
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
null
null
null
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
1
2021-01-31T19:30:59.000Z
2021-01-31T19:30:59.000Z
# -*- coding: utf-8 -*- from rest_framework import permissions from account.models import BlackList class BlacklistPermission(permissions.BasePermission): """ Global permission check for blacklisted IPs. """ def has_permission(self, request, view): ip_address = request.META["REMOTE_ADDR"] ...
35.574468
78
0.641746
198
1,672
5.232323
0.353535
0.100386
0.043436
0.086873
0.40251
0.38417
0.357143
0.30888
0.30888
0.30888
0
0.000757
0.209928
1,672
47
79
35.574468
0.783497
0.040072
0
0.133333
0
0
0.158491
0.106918
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
515c32b2748b2c0d803dfa8b97d5d1d27008566b
1,498
py
Python
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
from helpers import Helpers import numpy as np def multiples(numbers: [int]) -> [int]: """ Multiplies all of the values in the list excepting the value at the current index e.g. original numbers = [4, 1, 6] returns the multiples = [6, 24, 4] where the first value is the product of 1 * 6 and does not i...
31.208333
85
0.695594
212
1,498
4.716981
0.367925
0.072
0.045
0.06
0.116
0.116
0.062
0
0
0
0
0.017812
0.212951
1,498
47
86
31.87234
0.830365
0.26502
0
0
0
0
0.058107
0
0
0
0
0
0
1
0.074074
false
0
0.074074
0
0.259259
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
515e110e923bd04c8ebed32a1acaa5cd9ac55ba1
943
py
Python
2016b/main.py
xdr940/iKaggle
cc0210e089e5f1af228f02bf67bb9a4459336722
[ "MIT" ]
null
null
null
2016b/main.py
xdr940/iKaggle
cc0210e089e5f1af228f02bf67bb9a4459336722
[ "MIT" ]
null
null
null
2016b/main.py
xdr940/iKaggle
cc0210e089e5f1af228f02bf67bb9a4459336722
[ "MIT" ]
null
null
null
import pandas as pd import pandas_profiling from path import Path import numpy as np from scipy.stats import chi2_contingency from collections import Counter root = Path('/home/roit/datasets/kaggle/2016b') dump_path = root/'dump' ge_info = root/'gene_info' exitnpy = False if exitnpy==False: genes_dic = [] g...
21.431818
65
0.622481
148
943
3.851351
0.466216
0.042105
0.035088
0.052632
0
0
0
0
0
0
0
0.013793
0.231177
943
44
66
21.431818
0.772414
0.02333
0
0
0
0
0.092391
0.058696
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
515f21eaa0b5ed2cf1b0e5658806e586107dfcd7
1,376
py
Python
examples/mxnet/dis_kvstore/client.py
tqchen/dgl
d57ff78da11193fbbee7f37a69fcfe1c14da2ae4
[ "Apache-2.0" ]
2
2020-05-10T14:06:12.000Z
2021-01-01T02:57:20.000Z
examples/mxnet/dis_kvstore/client.py
tqchen/dgl
d57ff78da11193fbbee7f37a69fcfe1c14da2ae4
[ "Apache-2.0" ]
null
null
null
examples/mxnet/dis_kvstore/client.py
tqchen/dgl
d57ff78da11193fbbee7f37a69fcfe1c14da2ae4
[ "Apache-2.0" ]
null
null
null
# This is a simple MXNet server demo shows how to use DGL distributed kvstore. import dgl import argparse import mxnet as mx ID = [] ID.append(mx.nd.array([0,1], dtype='int64')) ID.append(mx.nd.array([2,3], dtype='int64')) ID.append(mx.nd.array([4,5], dtype='int64')) ID.append(mx.nd.array([6,7], dtype='int64')) edata...
32.761905
110
0.631541
227
1,376
3.656388
0.242291
0.048193
0.108434
0.060241
0.439759
0.343373
0.343373
0.245783
0.245783
0.245783
0
0.060262
0.167878
1,376
42
111
32.761905
0.664629
0.055233
0
0.111111
0
0
0.070054
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.148148
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
516282162e672e92cb14c5b353f7f1dcb8f0e66a
2,318
py
Python
python-project/methods/KDE.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
python-project/methods/KDE.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
python-project/methods/KDE.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
import statsmodels.api as sm import numpy as np import os import time import json def apply(train_datasets, var_types_string, test_datasets, n_folds, result_path, filename, foldLog): print("\n========================") print("KDE") print("========================") results = {} folds = {} av...
36.793651
126
0.595772
301
2,318
4.325581
0.269103
0.078341
0.080645
0.067588
0.261137
0.18894
0.115207
0.115207
0.115207
0.115207
0
0.010538
0.222174
2,318
62
127
37.387097
0.711592
0.044866
0
0.14
0
0
0.180009
0.086386
0
0
0
0
0
1
0.04
false
0
0.1
0
0.14
0.22
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5162cae16f1582e2cd15f8c44ff6385eae028502
3,471
py
Python
pay-api/tests/unit/services/test_auth.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_auth.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_auth.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
35.060606
91
0.682224
444
3,471
5.148649
0.317568
0.027559
0.030621
0.059055
0.53762
0.53762
0.506562
0.506562
0.476815
0.404199
0
0.021892
0.223567
3,471
98
92
35.418367
0.825974
0.422645
0
0.586957
0
0
0.16172
0.08086
0
0
0
0
0.065217
1
0.152174
false
0
0.086957
0.086957
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5164ffb41b1068e6e8353350ba4bc5a194d1426f
2,848
py
Python
testNim.py
PauloHSNeto/Ciencia-de-Computa-o-CourseEra
230281ba7227348ed2d27bb20039aed223244d94
[ "bzip2-1.0.6" ]
null
null
null
testNim.py
PauloHSNeto/Ciencia-de-Computa-o-CourseEra
230281ba7227348ed2d27bb20039aed223244d94
[ "bzip2-1.0.6" ]
null
null
null
testNim.py
PauloHSNeto/Ciencia-de-Computa-o-CourseEra
230281ba7227348ed2d27bb20039aed223244d94
[ "bzip2-1.0.6" ]
null
null
null
computador = 0 usuario = 0 rodada = 0 def computador_escolhe_jogada(n, m): global computador n = n - m if (n == 1): print(" ") print("O computador tirou %s peça." % n) print("Agora restam %s peças no tabuleiro." % n) print(" ") if (n == 0): print ("Fim do...
29.061224
79
0.466643
323
2,848
4.049536
0.20743
0.019878
0.06422
0.068807
0.441896
0.262997
0.262997
0.188073
0.188073
0.188073
0
0.013642
0.408006
2,848
97
80
29.360825
0.762159
0
0
0.597826
0
0
0.247542
0
0
0
0
0
0
1
0.032609
false
0.01087
0
0
0.086957
0.358696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
516615c0dc774d664f76be40cc3b724ef7f05aa9
15,206
py
Python
mbuild/formats/hoomd_simulation.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
mbuild/formats/hoomd_simulation.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
mbuild/formats/hoomd_simulation.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
import warnings import itertools import numpy as np import operator from collections import namedtuple import parmed as pmd import mbuild as mb from mbuild.utils.sorting import natural_sort from mbuild.utils.io import import_ from mbuild.utils.conversion import RB_to_OPLS from .hoomd_snapshot import to_hoomdsnapshot ...
40.657754
85
0.636262
1,963
15,206
4.723892
0.173714
0.037852
0.021137
0.008304
0.303677
0.249865
0.182897
0.144398
0.121212
0.111722
0
0.023191
0.268381
15,206
373
86
40.766756
0.810337
0.176378
0
0.164063
0
0
0.099699
0.010165
0
0
0
0
0
1
0.035156
false
0.011719
0.082031
0
0.160156
0.039063
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51668e773b785fc937e32ac3a240021ec3f1a368
595
py
Python
homework/jenya_s/homework12.py
aodarc/LIST-010
4579a047ca1ae0266f368349ea4536c6eb367f97
[ "MIT" ]
null
null
null
homework/jenya_s/homework12.py
aodarc/LIST-010
4579a047ca1ae0266f368349ea4536c6eb367f97
[ "MIT" ]
4
2018-12-19T13:41:12.000Z
2019-01-14T15:11:11.000Z
homework/jenya_s/homework12.py
aodarc/LIST-010
4579a047ca1ae0266f368349ea4536c6eb367f97
[ "MIT" ]
null
null
null
import os class Cpypl: def __init__(self, directory): self.directory = directory self.extension_dict = {"c": (".c", ".h"), "py": (".py", ".pyc"), "pl": (".pl", ".pm"), } def ...
29.75
88
0.480672
66
595
4.181818
0.545455
0.141304
0.123188
0
0
0
0
0
0
0
0
0
0.381513
595
19
89
31.315789
0.75
0
0
0
0
0
0.097222
0.050347
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.357143
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
5a8c5dccd774b45cfea010980c9e6fb6227679df
3,307
py
Python
Python/data/preprocess.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
1
2022-02-11T18:49:34.000Z
2022-02-11T18:49:34.000Z
Python/data/preprocess.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
null
null
null
Python/data/preprocess.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import scipy.ndimage.measurements as scipy_measurements import miapy.data.transformation as miapy_tfm class ClipNegativeTransform(miapy_tfm.Transform): def __init__(self, entries=('images',)) -> None: super().__init__() self.entries = entries def __call__(self, sample: dic...
30.063636
89
0.558512
398
3,307
4.462312
0.261307
0.04955
0.04223
0.033784
0.395833
0.366554
0.34009
0.292793
0.268018
0.268018
0
0.020947
0.335954
3,307
109
90
30.33945
0.787796
0.071969
0
0.486111
0
0
0.031036
0.009801
0
0
0
0
0
1
0.111111
false
0
0.041667
0
0.263889
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
5a8e3a68bba6328be4a0daef3330c63f8527f035
1,828
py
Python
conversion_service/config/settings/worker.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
conversion_service/config/settings/worker.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
conversion_service/config/settings/worker.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
# pylint: skip-file import random import string from .common import * # noqa # we don't use user sessions, so it doesn't matter if we recreate the secret key on each startup SECRET_KEY = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(30)) # disable databases for the worker DATABASES =...
26.114286
96
0.461707
154
1,828
5.38961
0.558442
0.043373
0.086747
0.104819
0.210843
0.093976
0
0
0
0
0
0.002695
0.391138
1,828
69
97
26.492754
0.743037
0.089716
0
0.196429
0
0
0.308389
0.080869
0
0
0
0
0
1
0
false
0
0.053571
0
0.053571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5a9137e47101ff21c41e130f1251b26b67a1b350
708
py
Python
test/espnet2/layers/test_log_mel.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
5,053
2017-12-13T06:21:41.000Z
2022-03-31T13:38:29.000Z
test/espnet2/layers/test_log_mel.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
3,666
2017-12-14T05:58:50.000Z
2022-03-31T22:11:49.000Z
test/espnet2/layers/test_log_mel.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
1,709
2017-12-13T01:02:42.000Z
2022-03-31T11:57:45.000Z
import torch from espnet2.layers.log_mel import LogMel def test_repr(): print(LogMel()) def test_forward(): layer = LogMel(n_fft=16, n_mels=2) x = torch.randn(2, 4, 9) y, _ = layer(x) assert y.shape == (2, 4, 2) y, ylen = layer(x, torch.tensor([4, 2], dtype=torch.long)) assert (ylen == ...
22.125
65
0.610169
121
708
3.396694
0.322314
0.068127
0.087591
0.109489
0.600973
0.600973
0.508516
0.377129
0.377129
0.377129
0
0.048825
0.218927
708
31
66
22.83871
0.694394
0
0
0.454545
0
0
0
0
0
0
0
0
0.090909
1
0.181818
false
0
0.090909
0
0.272727
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5a97b4378066662b1ab8308caa3ca06c47283ec7
43,014
py
Python
AESDataV3.py
JHerrmann01/AESDataManipulator
836ee74326ee0c35435b5fe0bb9875d392b2cc7c
[ "Apache-2.0" ]
null
null
null
AESDataV3.py
JHerrmann01/AESDataManipulator
836ee74326ee0c35435b5fe0bb9875d392b2cc7c
[ "Apache-2.0" ]
null
null
null
AESDataV3.py
JHerrmann01/AESDataManipulator
836ee74326ee0c35435b5fe0bb9875d392b2cc7c
[ "Apache-2.0" ]
null
null
null
###American Environmental Solutions Data Manipulation### ## Created by Jeremy Herrmann ## ##Import Libraries## from __future__ import print_function from os.path import join, dirname, abspath import xlrd from xlrd.sheet import ctype_text import xlsxwriter #################### def loadSpreadsh...
46.907306
241
0.632561
4,692
43,014
5.72954
0.070546
0.024737
0.02377
0.020459
0.698732
0.662947
0.628538
0.542499
0.462486
0.43786
0
0.028124
0.236179
43,014
916
242
46.958515
0.790108
0.023341
0
0.48072
0
0
0.03106
0.001148
0
0
0
0
0
1
0.03856
false
0
0.006427
0
0.083548
0.010283
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5a9823ed404374fd6e8abf22e09c47cf13d68464
6,282
py
Python
lhrhost/robot/robot.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/robot/robot.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/robot/robot.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
1
2018-08-03T17:17:31.000Z
2018-08-03T17:17:31.000Z
"""Abstractions for a liquid-handling robot.""" # Standard imports import asyncio import logging # Local package imports from lhrhost.robot.p_axis import Axis as PAxis from lhrhost.robot.x_axis import Axis as XAxis from lhrhost.robot.y_axis import Axis as YAxis from lhrhost.robot.z_axis import Axis as ZAxis from lhrh...
37.616766
81
0.650748
836
6,282
4.683014
0.19378
0.055172
0.03576
0.036782
0.407918
0.356833
0.314432
0.304215
0.304215
0.294508
0
0.002804
0.262018
6,282
166
82
37.843373
0.841674
0.053327
0
0.304348
0
0
0.054978
0
0
0
0
0
0
1
0.017391
false
0
0.06087
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5a9d0c2e4e731186b891bcd4f534edfa2b33e353
1,599
py
Python
references/stm32_parsing_sim/stm32parser.py
koson/OTA_update_STM32_using_ESP32
7fe7ae64d5290c0a453c29d787b5fe9456910e96
[ "MIT" ]
155
2020-02-15T06:54:15.000Z
2021-09-16T07:19:19.000Z
references/stm32_parsing_sim/stm32parser.py
ksmola/OTA_update_STM32_using_ESP32
dd616a1212da8f874e4826d63cfbd4c3b9ad2df2
[ "MIT" ]
8
2020-10-09T08:56:52.000Z
2021-09-01T03:42:49.000Z
references/stm32_parsing_sim/stm32parser.py
ksmola/OTA_update_STM32_using_ESP32
dd616a1212da8f874e4826d63cfbd4c3b9ad2df2
[ "MIT" ]
25
2020-03-16T04:41:12.000Z
2021-08-19T11:49:40.000Z
import time import math as m start = time.time() def checksum(block): data_chk = [] xor = '0' for line in block: for x in range(0, len(line) - 1, 2): xor = hex(int(xor, 16) ^ int(line[x], 16) ^ int(line[x + 1], 16)) data_chk.append(xor) xor = '0' return data_chk ...
20.766234
77
0.499062
230
1,599
3.378261
0.273913
0.030888
0.03861
0.042471
0.149292
0.110682
0
0
0
0
0
0.071698
0.337086
1,599
76
78
21.039474
0.661321
0.020013
0
0.137255
0
0
0.086957
0
0
0
0.011509
0
0
1
0.039216
false
0
0.039216
0
0.098039
0.196078
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5a9d5971fc9f0f68b3b0383f6727b85c4065e172
3,034
py
Python
sw/device/silicon_creator/lib/crypto/tests/testvectors/wycheproof/rsa_3072_verify_parse_testvectors.py
matutem/opentitan
a41c0a57568f1dc8263a4ecc3913f190750959f5
[ "Apache-2.0" ]
null
null
null
sw/device/silicon_creator/lib/crypto/tests/testvectors/wycheproof/rsa_3072_verify_parse_testvectors.py
matutem/opentitan
a41c0a57568f1dc8263a4ecc3913f190750959f5
[ "Apache-2.0" ]
null
null
null
sw/device/silicon_creator/lib/crypto/tests/testvectors/wycheproof/rsa_3072_verify_parse_testvectors.py
matutem/opentitan
a41c0a57568f1dc8263a4ecc3913f190750959f5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import argparse import json import math import sys import hjson def parse_hex_int(hex_str): # int() throws an error message for empty string ...
28.622642
85
0.586684
385
3,034
4.503896
0.366234
0.036332
0.031719
0.018454
0.122261
0.086505
0.056517
0
0
0
0
0.010412
0.271918
3,034
105
86
28.895238
0.774559
0.152933
0
0.2
0
0
0.202814
0
0
0
0
0
0
1
0.071429
false
0
0.071429
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
5a9e608dad9679e93ef744bc1105dbf95d043cce
2,479
py
Python
Tools/boot_now.py
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
4,224
2015-01-02T11:51:02.000Z
2020-10-27T23:42:28.000Z
Tools/boot_now.py
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
11,736
2015-01-01T11:59:16.000Z
2020-10-28T17:13:38.000Z
Tools/boot_now.py
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
11,850
2015-01-02T14:54:47.000Z
2020-10-28T16:42:47.000Z
#!/usr/bin/env python ############################################################################ # # Copyright (C) 2012-2015 PX4 Development Team. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are me...
41.316667
108
0.702299
341
2,479
5.093842
0.533724
0.020725
0.019574
0.026482
0.133564
0.10593
0.078296
0.078296
0.078296
0.078296
0
0.013069
0.166599
2,479
59
109
42.016949
0.827686
0.632513
0
0
0
0
0.232782
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
5aa4c977dc126a0fbb76c33235561df665c5a977
10,248
py
Python
pyalp/stimulus/film.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
1
2020-11-09T09:23:11.000Z
2020-11-09T09:23:11.000Z
pyalp/stimulus/film.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
null
null
null
pyalp/stimulus/film.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
1
2020-11-09T09:23:19.000Z
2020-11-09T09:23:19.000Z
import gc import os import pyalp.io import pyalp.sequence import pyalp.utils from .base import Stimulus class Film(Stimulus): """Film stimulus Parameters ---------- bin_pathname: none | string, optional Path name to the .bin file. vec_pathname: none | string, optional Path name ...
37.265455
119
0.58509
1,241
10,248
4.638195
0.124899
0.064628
0.075052
0.041696
0.536484
0.437978
0.368485
0.344858
0.317408
0.308374
0
0.016391
0.309426
10,248
274
120
37.40146
0.796948
0.20404
0
0.424837
0
0
0.062815
0.006294
0
0
0
0.00365
0
1
0.026144
false
0.006536
0.039216
0
0.098039
0.143791
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5aa5b513bf2a9038fbb780c73e2c734ede5749d9
1,328
py
Python
python/example_code/s3/s3-python-example-download-file.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/s3/s3-python-example-download-file.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/s3/s3-python-example-download-file.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This f...
32.390244
88
0.718373
189
1,328
5.005291
0.57672
0.052854
0.021142
0
0
0
0
0
0
0
0
0.029973
0.170934
1,328
40
89
33.2
0.829246
0.673946
0
0
0
0
0.230352
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5aab652c059c797506557e8a980477db680cb80f
6,829
py
Python
DPythonS89/test.py
Synchronicity89/Lean
564af47ea980cf0524874643c7190da82236bcfb
[ "Apache-2.0" ]
null
null
null
DPythonS89/test.py
Synchronicity89/Lean
564af47ea980cf0524874643c7190da82236bcfb
[ "Apache-2.0" ]
1
2020-08-25T03:02:47.000Z
2020-08-25T03:02:47.000Z
DPythonS89/test.py
Synchronicity89/Lean
564af47ea980cf0524874643c7190da82236bcfb
[ "Apache-2.0" ]
null
null
null
from clr import AddReference import pandas AddReference("System") AddReference("QuantConnect.Research") AddReference("QuantConnect.Common") AddReference("QuantConnect.Logging") #AddReference("QuantConnect.Data") from System import * from QuantConnect import * from QuantConnect.Logging import * #from Data import * #fro...
36.518717
147
0.661737
812
6,829
5.488916
0.294335
0.033655
0.023334
0.026924
0.337222
0.317029
0.298631
0.282477
0.248373
0.221898
0
0.059295
0.231952
6,829
187
148
36.518717
0.790467
0.220969
0
0.338983
0
0
0.042045
0.003977
0
0
0
0
0.016949
1
0.144068
false
0
0.101695
0.025424
0.432203
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5aae6a12dc22ce122aa713fc2aeac3ad090fe5d0
2,827
py
Python
map_swcf.py
torimcd/Goldblatt_etal_2020
0793b16ef2535db3482c31d84587d80b3578dd3b
[ "BSD-3-Clause" ]
1
2021-12-03T15:11:31.000Z
2021-12-03T15:11:31.000Z
map_swcf.py
torimcd/Goldblatt_etal_2021
0793b16ef2535db3482c31d84587d80b3578dd3b
[ "BSD-3-Clause" ]
null
null
null
map_swcf.py
torimcd/Goldblatt_etal_2021
0793b16ef2535db3482c31d84587d80b3578dd3b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Author: Victoria McDonald email: vmcd@atmos.washington.edu website: http://torimcd.github.com license: BSD """ import matplotlib as mpl mpl.use("Agg") import os import sys import numpy as np import netCDF4 import operator import matplotlib.pyplot as plt from mpl_toolkits.basemap import Base...
28.27
129
0.700389
416
2,827
4.677885
0.473558
0.018499
0.024666
0.011305
0.179342
0.169579
0.144913
0.144913
0.102775
0.102775
0
0.044981
0.15069
2,827
99
130
28.555556
0.765514
0.229926
0
0.107143
0
0
0.169846
0.011633
0
0
0
0
0
1
0
false
0
0.142857
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
5ab017c82dd41b9fd3710bcfd371dbf19774599d
6,706
py
Python
src/mbic/mbic_full_model.py
davidanastasiu/antibiofilm
f50945d52bcfd97538a31d7627af6b3089fdd2cf
[ "MIT" ]
null
null
null
src/mbic/mbic_full_model.py
davidanastasiu/antibiofilm
f50945d52bcfd97538a31d7627af6b3089fdd2cf
[ "MIT" ]
null
null
null
src/mbic/mbic_full_model.py
davidanastasiu/antibiofilm
f50945d52bcfd97538a31d7627af6b3089fdd2cf
[ "MIT" ]
null
null
null
# AntiBiofilm Peptide Research # Department of Computer Science and Engineering, Santa Clara University # Author: Taylor Downey # A python script that uses the optimized hyperparameters found for both # the SVM and the SVR to create a prediction model # Script prints the average RMSE of the full model when run with c...
35.294737
81
0.596779
861
6,706
4.325203
0.220674
0.031955
0.032223
0.012889
0.311762
0.256176
0.1442
0.121643
0.091568
0.055317
0
0.008141
0.230689
6,706
189
82
35.481481
0.713704
0.233224
0
0.141667
0
0
0.045588
0.026414
0
0
0
0
0
1
0.016667
false
0
0.091667
0
0.116667
0.008333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5abddcac686664ae3a44fc39af000fbbf1daafbd
874
py
Python
ax/benchmark2/__init__.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
ax/benchmark2/__init__.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
ax/benchmark2/__init__.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from ax.benchmark2.benchmark import ( benchmark_full_run, benchmark_replication, benchmark_test, ) from a...
28.193548
85
0.772311
83
874
7.951807
0.554217
0.036364
0.09697
0.151515
0
0
0
0
0
0
0
0.006766
0.154462
874
30
86
29.133333
0.886333
0.21968
0
0
0
0
0.273264
0.15805
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5abe5b6784894f2e606b06d1d7978dc1a255825c
724
py
Python
setup.py
nvaytet/metatoenv
6d0b5f1093f4042d63f8acad435f0953633f6821
[ "BSD-3-Clause" ]
null
null
null
setup.py
nvaytet/metatoenv
6d0b5f1093f4042d63f8acad435f0953633f6821
[ "BSD-3-Clause" ]
null
null
null
setup.py
nvaytet/metatoenv
6d0b5f1093f4042d63f8acad435f0953633f6821
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, Command from distutils.command.build_py import build_py with open('README.md') as infile: long_description = infile.read() from psrecord import __version__ setup( name='metatoenv', version=__version__, description= 'Generate a conda environment file from a conda met...
25.857143
70
0.685083
82
724
5.865854
0.621951
0.058212
0
0
0
0
0
0
0
0
0
0.001706
0.190608
724
27
71
26.814815
0.819113
0
0
0
0
0
0.346685
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5abf1554e4e83fbb167495e7bf4f154fc338e021
28,931
py
Python
git_timestamp/timestamp.py
zeitgitter/git-timestamp
44d68c13036ba706d1b2d1d25773427b474fa39e
[ "MIT" ]
16
2020-02-16T03:21:22.000Z
2021-12-17T19:22:56.000Z
git_timestamp/timestamp.py
zeitgitter/git-timestamp
44d68c13036ba706d1b2d1d25773427b474fa39e
[ "MIT" ]
1
2021-11-02T10:07:18.000Z
2021-11-02T10:07:18.000Z
git_timestamp/timestamp.py
zeitgitter/git-timestamp
44d68c13036ba706d1b2d1d25773427b474fa39e
[ "MIT" ]
2
2020-02-16T03:21:26.000Z
2021-04-05T17:19:05.000Z
#!/usr/bin/python3 -tt # -*- coding: utf-8 -*- # (keep hashbang line for `make install`) # # git timestamp — Zeitgitter GIT Timestamping client # # Copyright (C) 2019-2021 Marcel Waldvogel # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
41.868307
103
0.587432
3,555
28,931
4.708861
0.198312
0.01589
0.009677
0.010753
0.201075
0.151314
0.130645
0.090502
0.079092
0.073238
0
0.009598
0.294148
28,931
690
104
41.928986
0.809951
0.186305
0
0.209213
0
0
0.283112
0.013133
0
0
0
0
0
1
0.049904
false
0.011516
0.03071
0.003839
0.130518
0.009597
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ac1bdcd4d5d7d445d4e50d14f8bb0137e1a3a22
7,335
py
Python
src/environments/finite_diff_wave.py
jaberkow/Insight_Project
5c24e39fa5ab949e5a99231758ac77d21f566905
[ "MIT" ]
6
2019-07-10T09:33:44.000Z
2019-08-28T11:28:15.000Z
src/environments/finite_diff_wave.py
jaberkow/WaveRL
5c24e39fa5ab949e5a99231758ac77d21f566905
[ "MIT" ]
4
2019-06-18T00:13:25.000Z
2019-08-05T11:48:03.000Z
src/environments/finite_diff_wave.py
jaberkow/Insight_Project
5c24e39fa5ab949e5a99231758ac77d21f566905
[ "MIT" ]
3
2019-08-15T06:43:31.000Z
2020-09-03T05:05:17.000Z
""" Some elements of the finite difference routines were adapted from HP Langtangen's wonderful book on the FD method for python: https://hplgit.github.io/fdm-book/doc/pub/book/html/._fdm-book-solarized001.html """ import numpy as np from scipy.integrate import simps class Wave1D: """ A utility class for sim...
38.809524
125
0.625767
1,071
7,335
4.189542
0.251167
0.095832
0.039224
0.02407
0.267662
0.242701
0.202362
0.171607
0.171607
0.171607
0
0.020189
0.277437
7,335
188
126
39.015957
0.826415
0.46394
0
0.138889
0
0
0.023222
0
0
0
0
0
0
1
0.111111
false
0
0.027778
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ac23e6adffbb28a348a5b76f4d9393d8fb8087e
1,977
py
Python
ejercicios/ahorcado/ahorcado_01.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
1
2022-02-02T04:44:56.000Z
2022-02-02T04:44:56.000Z
ejercicios/ahorcado/ahorcado_01.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/ahorcado/ahorcado_01.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Contributor: Carolina Morán Source: https://github.com/CarolinaMoran03/Juego-de-ahorcado-con-frase/blob/main/Juego%20de%20ahorcado%20con%20frase """ participante=input("Ingrese nombre del participante: ") print(participante.upper()) def run(): frases =...
29.507463
175
0.571067
239
1,977
4.682008
0.493724
0.053619
0.016086
0.01966
0.023235
0
0
0
0
0
0
0.016047
0.306525
1,977
67
176
29.507463
0.800146
0.103187
0
0.137255
0
0
0.293718
0
0
0
0
0
0
1
0.039216
false
0
0
0
0.039216
0.156863
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ac34357cfbf72b629548e23a5587b2da7dd9eb3
946
py
Python
core/model/encoder/encoder_base.py
baophuc27/answer-generation
36ab9f84f8d4df90abd2bd0255a5229afbd65892
[ "MIT" ]
3
2021-03-25T12:29:49.000Z
2021-06-14T13:15:49.000Z
core/model/encoder/encoder_base.py
baophuc27/answer-generation
36ab9f84f8d4df90abd2bd0255a5229afbd65892
[ "MIT" ]
null
null
null
core/model/encoder/encoder_base.py
baophuc27/answer-generation
36ab9f84f8d4df90abd2bd0255a5229afbd65892
[ "MIT" ]
null
null
null
import torch.nn as nn from abc import ABC,abstractmethod class EncoderBase(nn.Module): @abstractmethod def __init__(self,pretrained_emb,__C): """Constructor of encoder module should take pretrained embedding as an argument because of later comparison of different types of embeddings. ...
30.516129
81
0.650106
100
946
5.95
0.54
0.087395
0.060504
0.070588
0
0
0
0
0
0
0
0
0.283298
946
30
82
31.533333
0.877581
0.4926
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.181818
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
5ac34cb506d949289482e24d712032fea0a5bf81
5,912
py
Python
python/pynamics/frame.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2018-08-20T22:01:18.000Z
2021-04-19T00:50:56.000Z
python/pynamics/frame.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
3
2017-10-24T03:10:17.000Z
2017-10-24T03:15:27.000Z
python/pynamics/frame.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2017-03-03T23:04:17.000Z
2021-03-20T20:33:53.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes Email: danaukes<at>gmail.com Please see LICENSE for full license. """ import pynamics from pynamics.tree_node import TreeNode from pynamics.vector import Vector from pynamics.rotation import Rotation, RotationalVelocity from pynamics.name_generator import NameGen...
36.493827
156
0.625169
826
5,912
4.238499
0.12954
0.053128
0.008569
0.020566
0.402742
0.32048
0.232791
0.226792
0.17595
0.140817
0
0.008792
0.249662
5,912
161
157
36.720497
0.780433
0.019452
0
0.067227
0
0
0.012785
0
0
0
0
0
0
1
0.151261
false
0
0.067227
0.07563
0.327731
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ac3d5779a8d78c93d249f8739858eed7b56674a
6,828
py
Python
couchbase_core/mapper.py
couchbase/couchbase-python-client
99ec055835f5aef0cd07905497b3ab4bb3cbbc32
[ "Apache-2.0" ]
189
2015-01-07T18:34:31.000Z
2022-03-21T17:41:56.000Z
couchbase_core/mapper.py
couchbase/couchbase-python-client
99ec055835f5aef0cd07905497b3ab4bb3cbbc32
[ "Apache-2.0" ]
24
2015-05-19T14:00:16.000Z
2022-03-16T22:01:30.000Z
couchbase_core/mapper.py
couchbase/couchbase-python-client
99ec055835f5aef0cd07905497b3ab4bb3cbbc32
[ "Apache-2.0" ]
60
2015-03-10T22:12:50.000Z
2022-03-07T21:57:40.000Z
from typing import * import enum import datetime import warnings from couchbase.exceptions import InvalidArgumentException Src = TypeVar('Src') Dest = TypeVar('Dest') Functor = TypeVar('Functor', bound=Callable[[Src], Dest]) SrcToDest = TypeVar('SrcToDest', bound=Callable[[Src], Dest]) DestToSrc = TypeVar('DestToSr...
30.756757
113
0.605448
760
6,828
5.180263
0.185526
0.032512
0.02794
0.01905
0.20193
0.1651
0.139192
0.11303
0.11303
0.080264
0
0.000208
0.295255
6,828
221
114
30.895928
0.817955
0.161248
0
0.180451
0
0
0.042713
0
0
0
0
0
0
1
0.165414
false
0
0.037594
0.022556
0.383459
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ac41b3cce04df264e1419de46ced2afc4ce1d2c
2,836
py
Python
thedoorman/run.py
FocusedSupport/thedoorman
4f53a921e1bd97d9ff193482e790fa5757f54e7d
[ "MIT" ]
null
null
null
thedoorman/run.py
FocusedSupport/thedoorman
4f53a921e1bd97d9ff193482e790fa5757f54e7d
[ "MIT" ]
29
2017-03-03T16:21:59.000Z
2019-03-11T19:20:24.000Z
thedoorman/run.py
FocusedSupport/thedoorman
4f53a921e1bd97d9ff193482e790fa5757f54e7d
[ "MIT" ]
null
null
null
import threading import sys import os import signal sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "components/slack"))) from slackbot.bot import Bot from pydispatch import dispatcher from components.dispatcher.signals import Signals, Senders import components.devices.doorbell_monitor as dm ...
28.646465
93
0.744358
336
2,836
6.16369
0.244048
0.084983
0.1014
0.111057
0.02704
0
0
0
0
0
0
0.000419
0.159379
2,836
99
94
28.646465
0.868289
0.11213
0
0
0
0
0.091995
0
0
0
0
0
0
1
0.056338
false
0
0.253521
0
0.309859
0.140845
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ac4b51a79d3af0cebbea2eb96498b7f916e244a
605
py
Python
python/utils/random-sample-with-probabilities.py
leakycup/misc
5cce8cbd7057bf2598c8076ffc257606edb7141e
[ "Apache-2.0" ]
null
null
null
python/utils/random-sample-with-probabilities.py
leakycup/misc
5cce8cbd7057bf2598c8076ffc257606edb7141e
[ "Apache-2.0" ]
null
null
null
python/utils/random-sample-with-probabilities.py
leakycup/misc
5cce8cbd7057bf2598c8076ffc257606edb7141e
[ "Apache-2.0" ]
null
null
null
import sys import codecs import numpy as np #UTF8Writer = codecs.getwriter('utf8') #sys.stdout = UTF8Writer(sys.stdout) input_file = sys.argv[1] probabilities_file = sys.argv[2] sample_size = int(sys.argv[3]) input_list = [] probabilities_list = [] with codecs.open(input_file, 'r', 'utf-8') as f: for line in f...
24.2
96
0.710744
94
605
4.446809
0.414894
0.050239
0.064593
0.043062
0.105263
0.105263
0.105263
0.105263
0.105263
0.105263
0
0.015564
0.150413
605
24
97
25.208333
0.797665
0.119008
0
0.125
0
0
0.022599
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
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
5ac695ccecbc9a0acac17b74afec8f55e9ba28d1
1,286
py
Python
ivy/functional/backends/mxnet/old/linear_algebra.py
Neel-Renavikar/ivy
644ab189a3a3fc52b1f3f86563226106e549eea3
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/mxnet/old/linear_algebra.py
Neel-Renavikar/ivy
644ab189a3a3fc52b1f3f86563226106e549eea3
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/mxnet/old/linear_algebra.py
Neel-Renavikar/ivy
644ab189a3a3fc52b1f3f86563226106e549eea3
[ "Apache-2.0" ]
null
null
null
""" Collection of MXNet linear algebra functions, wrapped to fit Ivy syntax and signature. """ # global import mxnet as _mx import numpy as _np # local import ivy as _ivy from typing import Union, Tuple def matrix_norm(x, p=2, axes=None, keepdims=False): axes = (-2, -1) if axes is None else axes if isinst...
27.361702
86
0.620529
216
1,286
3.564815
0.384259
0.036364
0.020779
0.019481
0.04026
0
0
0
0
0
0
0.043216
0.226283
1,286
46
87
27.956522
0.730653
0.120529
0
0
0
0
0.06983
0
0
0
0
0
0
1
0.125
false
0
0.166667
0.041667
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ac93a900f8dd76c156f7ea7f46e47f6ba5ffc11
759
py
Python
01-introduction to python for data science/04-numpy/baseball-players-bmi.py
thelc127/Data-Scientist-Career-Track-Datacamp
56d0ec0ece7fa9127e72b0da598c89f15f31b6b3
[ "MIT" ]
2
2021-05-21T04:59:19.000Z
2021-05-21T08:32:41.000Z
01-introduction to python for data science/04-numpy/baseball-players-bmi.py
thelc127/Data-Scientist-Career-Track-Datacamp
56d0ec0ece7fa9127e72b0da598c89f15f31b6b3
[ "MIT" ]
null
null
null
01-introduction to python for data science/04-numpy/baseball-players-bmi.py
thelc127/Data-Scientist-Career-Track-Datacamp
56d0ec0ece7fa9127e72b0da598c89f15f31b6b3
[ "MIT" ]
null
null
null
# Create a numpy array from the weight_lb list with the correct units. Multiply by 0.453592 to go from pounds to kilograms. # Store the resulting numpy array as np_weight_kg. # Use np_height_m and np_weight_kg to calculate the BMI of each player. # Use the following equation: # BMI = weight(kg) / height (m3) # save the...
31.625
123
0.764163
137
759
4.065693
0.357664
0.086176
0.089767
0.064632
0.086176
0
0
0
0
0
0
0.033493
0.173913
759
23
124
33
0.854864
0.750988
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
5acb9e1e62ddcd1f2667eff52694832dd21f1914
411
py
Python
editor/templatetags/stamp.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
51
2015-04-19T23:27:04.000Z
2022-03-25T01:43:43.000Z
editor/templatetags/stamp.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
428
2015-01-05T10:56:32.000Z
2022-03-29T14:33:23.000Z
editor/templatetags/stamp.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
71
2015-01-28T20:06:15.000Z
2022-03-25T02:35:40.000Z
from django.template import Library from editor.models import STAMP_STATUS_CHOICES register = Library() @register.inclusion_tag('stamp.html') def stamp(status): label = '' if status=='draft': return {'status': 'draft', 'label': 'Draft'} for s_status, s_label in STAMP_STATUS_CHOICES: if sta...
27.4
52
0.664234
52
411
5.076923
0.423077
0.125
0.136364
0
0
0
0
0
0
0
0
0
0.211679
411
14
53
29.357143
0.814815
0
0
0
0
0
0.114355
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5acc8629a6ec5a5ef8fb0a2628a406996eb759d6
864
py
Python
ubxlib/ubx_cfg_nmea.py
monocilindro/ubxlib
378e86b7766f670b9a8966ee038275a2155bac54
[ "MIT" ]
3
2020-05-03T17:12:21.000Z
2021-01-16T13:45:07.000Z
ubxlib/ubx_cfg_nmea.py
monocilindro/ubxlib
378e86b7766f670b9a8966ee038275a2155bac54
[ "MIT" ]
35
2020-08-29T09:35:15.000Z
2022-03-18T19:42:34.000Z
ubxlib/ubx_cfg_nmea.py
monocilindro/ubxlib
378e86b7766f670b9a8966ee038275a2155bac54
[ "MIT" ]
4
2020-04-24T03:29:07.000Z
2021-01-13T15:52:53.000Z
from .cid import UbxCID from .frame import UbxFrame from .types import CH, U1, X1, X4, Padding class UbxCfgNmea_(UbxFrame): CID = UbxCID(UbxCID.CLASS_CFG, 0x17) NAME = 'UBX-CFG-NMEA' class UbxCfgNmeaPoll(UbxCfgNmea_): NAME = UbxCfgNmea_.NAME + '-POLL' def __init__(self): super().__init__() ...
24
42
0.603009
112
864
4.446429
0.383929
0.110442
0.176707
0.120482
0.080321
0
0
0
0
0
0
0.02719
0.233796
864
35
43
24.685714
0.725076
0
0
0.153846
0
0
0.12963
0
0
0
0.00463
0
0
1
0.115385
false
0
0.115385
0.038462
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ace70d75fc497eeb5ae372bf715cbea09eaaf13
390
py
Python
Lesson_2/up.py
idel28102001/lessons
f88f5034d8c275175dacf66ba5d0342622c1aa50
[ "Apache-2.0" ]
null
null
null
Lesson_2/up.py
idel28102001/lessons
f88f5034d8c275175dacf66ba5d0342622c1aa50
[ "Apache-2.0" ]
null
null
null
Lesson_2/up.py
idel28102001/lessons
f88f5034d8c275175dacf66ba5d0342622c1aa50
[ "Apache-2.0" ]
null
null
null
print('Загадайте число') num = 'да' l = 4 while num == 'да': l -= 1 num = input(f'Количество цифр вашего числа меньше {l}? : ') ## да или нет num_2 = 'да' dig = '' while l > 0: number = 10 while num_2 == 'да': number -= 1 num_2 = input(f'Ваша {l}-e цифра меньше {number}? :') # да или н...
21.666667
78
0.525641
63
390
3.190476
0.428571
0.079602
0.089552
0
0
0
0
0
0
0
0
0.04059
0.305128
390
17
79
22.941176
0.701107
0.053846
0
0.235294
0
0
0.282192
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
5acfa73951bf5dd915adc32a7981cab8b5aacd86
4,247
py
Python
twrap/metrics.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
twrap/metrics.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
twrap/metrics.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
# @Author: Narsi Reddy <cibitaw1> # @Date: 2018-09-22T17:38:05-05:00 # @Email: sainarsireddy@outlook.com # @Last modified by: narsi # @Last modified time: 2019-02-13T22:46:56-06:00 import torch torch.manual_seed(29) from torch import nn import numpy as np np.random.seed(29) import torch.nn.functional as F from tor...
31.932331
104
0.645632
620
4,247
4.256452
0.254839
0.079576
0.025009
0.043577
0.305419
0.228875
0.228875
0.228875
0.147025
0.068966
0
0.053835
0.217094
4,247
132
105
32.174242
0.73985
0.07935
0
0.170455
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.079545
0.011364
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5acfefc74de42e7336d5b91fd88fe5402716e7ad
4,428
py
Python
configs/resnet/contrast_r18_config.py
alecpeltekian/ImgClassification
cf4eca33027ca423623ff965fac354dcfce396d3
[ "Apache-2.0" ]
null
null
null
configs/resnet/contrast_r18_config.py
alecpeltekian/ImgClassification
cf4eca33027ca423623ff965fac354dcfce396d3
[ "Apache-2.0" ]
null
null
null
configs/resnet/contrast_r18_config.py
alecpeltekian/ImgClassification
cf4eca33027ca423623ff965fac354dcfce396d3
[ "Apache-2.0" ]
null
null
null
# ### =============================================================== # ### =============================================================== # ### Modify the dataset loading settings # dataset settings dataset_type = 'ContrastDataset' data_root = '/mnt/cadlabnas/datasets/' img_norm_cfg = dict( mean=[123.675, 116.28...
30.965035
137
0.539747
470
4,428
4.929787
0.468085
0.079413
0.012948
0.018127
0.197669
0.182132
0.11653
0.099266
0.099266
0.054381
0
0.02608
0.168699
4,428
142
138
31.183099
0.603369
0.393631
0
0.148148
0
0
0.179862
0.036126
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
5ad4e2861aebece133d34e92b30760d0b61fc3a9
662
py
Python
roots/FinalModifiedBisection.py
Seek/LaTechNumeric
dabef2040e84bf25cabab07fe20a6434ce52197b
[ "MIT" ]
null
null
null
roots/FinalModifiedBisection.py
Seek/LaTechNumeric
dabef2040e84bf25cabab07fe20a6434ce52197b
[ "MIT" ]
null
null
null
roots/FinalModifiedBisection.py
Seek/LaTechNumeric
dabef2040e84bf25cabab07fe20a6434ce52197b
[ "MIT" ]
null
null
null
import sys EPS = sys.float_info.epsilon #Define the function def f(x): return (x+1)**2 - 1 def bisect(f, x1, x2, eps, maxn): assert f(x1)*f(x2) < 0, \ "We cannot find a root if the function does not change signs" xl = x1 xu = x2 xr = 0 fl = f(xl) err = 1000 for i in range(maxn): r = (xl + xu)/2 print(r...
16.146341
62
0.539275
131
662
2.717557
0.435115
0.061798
0.022472
0
0
0
0
0
0
0
0
0.08137
0.294562
662
40
63
16.55
0.680942
0.028701
0
0
0
0
0.162246
0
0
0
0
0
0.029412
1
0.058824
false
0
0.029412
0.029412
0.147059
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
5ad61d1f671afea82e39013fc63a8845b6a3671b
3,606
py
Python
monique_worker_py/worker.py
biocad/monique-worker-py
56b0ab2e218b80e3a83d7987cd8dd8993a3d66a7
[ "BSD-3-Clause" ]
null
null
null
monique_worker_py/worker.py
biocad/monique-worker-py
56b0ab2e218b80e3a83d7987cd8dd8993a3d66a7
[ "BSD-3-Clause" ]
null
null
null
monique_worker_py/worker.py
biocad/monique-worker-py
56b0ab2e218b80e3a83d7987cd8dd8993a3d66a7
[ "BSD-3-Clause" ]
null
null
null
import zmq import logging import argparse from monique_worker_py.config import read_worker_config from monique_worker_py.qmessage import qmessage_from_json, create_qmessage class Worker: def __init__(self, worker_name, algo): self.worker_name = worker_name self.algo = algo parser = argpar...
37.5625
118
0.598724
388
3,606
5.399485
0.304124
0.052506
0.038186
0.018138
0.157518
0.102148
0.033413
0
0
0
0
0.001185
0.297837
3,606
95
119
37.957895
0.826224
0.13117
0
0
0
0
0.139826
0
0
0
0
0
0
1
0.052632
false
0
0.087719
0
0.175439
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ad6cbcddff8d2b547541b05fb14cdfa5518b9b3
1,081
py
Python
helpers/sendSMS.py
cheikhmbackeseck37/insuris
3362ca445d489e23d57a76bbd6d263f3a5f0b519
[ "MIT" ]
12
2019-08-02T07:58:16.000Z
2022-01-31T23:45:08.000Z
helpers/sendSMS.py
domambia/csdigital-gs1kenya-internal-erp
6736d0e9a3a51653689f8ae921cf811f378d9d8e
[ "MIT" ]
8
2019-08-02T08:06:18.000Z
2022-03-11T23:45:17.000Z
helpers/sendSMS.py
cheikhmbackeseck37/insuris
3362ca445d489e23d57a76bbd6d263f3a5f0b519
[ "MIT" ]
11
2019-07-31T16:23:36.000Z
2022-01-29T08:30:07.000Z
# works with both python 2 and 3 from __future__ import print_function from datetime import datetime import africastalking class SMS: def __init__(self): self.username = "gs1kenya" self.api_key = "0902d36a02514da9fa33a11586683f8d76e5207ea544363e7d41149e6c9a6718" africastalking.initialize(se...
38.607143
89
0.518964
97
1,081
5.670103
0.659794
0.050909
0.036364
0
0
0
0
0
0
0
0
0.081818
0.389454
1,081
27
90
40.037037
0.751515
0.027752
0
0
0
0
0.509056
0.083889
0
0
0
0
0
1
0.08
false
0
0.12
0
0.24
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5adaa94654c12d575666ad0a6b6cf47ac7a0cb0e
1,120
py
Python
examples/cartpole_example/test/cartpole_plot_model_NN_cloop.py
marcosfelt/sysid-neural-structures-fitting
80eda427251e8cce1d2a565b5cbca533252315e4
[ "MIT" ]
17
2019-11-15T06:27:05.000Z
2021-10-02T14:24:25.000Z
examples/cartpole_example/test/cartpole_plot_model_NN_cloop.py
marcosfelt/sysid-neural-structures-fitting
80eda427251e8cce1d2a565b5cbca533252315e4
[ "MIT" ]
null
null
null
examples/cartpole_example/test/cartpole_plot_model_NN_cloop.py
marcosfelt/sysid-neural-structures-fitting
80eda427251e8cce1d2a565b5cbca533252315e4
[ "MIT" ]
4
2020-09-03T17:01:34.000Z
2021-11-05T04:09:24.000Z
import os import pandas as pd import matplotlib.pyplot as plt from examples.cartpole_example.cartpole_dynamics import RAD_TO_DEG, DEG_TO_RAD if __name__ == '__main__': #df_model = pd.read_csv(os.path.join("data", "pendulum_data_PID.csv")) #df_nn = pd.read_csv(os.path.join("data", "pendulum_data_PID_NN_model.c...
35
91
0.655357
200
1,120
3.39
0.315
0.047198
0.053097
0.064897
0.421829
0.421829
0.262537
0.262537
0.262537
0.262537
0
0.019792
0.142857
1,120
31
92
36.129032
0.686458
0.128571
0
0
0
0
0.175565
0.068789
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ae33bc829b96d32b0f8a98265306f77e0baf4b1
3,327
py
Python
tests/test_views.py
localmed/django-assetfiles
34089780126989f49e6b890b85a90047704fde37
[ "MIT" ]
null
null
null
tests/test_views.py
localmed/django-assetfiles
34089780126989f49e6b890b85a90047704fde37
[ "MIT" ]
2
2017-02-11T20:10:46.000Z
2017-02-11T20:10:56.000Z
tests/test_views.py
localmed/django-assetfiles
34089780126989f49e6b890b85a90047704fde37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django_nose.tools import * from tests.base import AssetfilesTestCase class TestServe(AssetfilesTestCase): def test_returns_not_found_without_an_asset(self): response = self.client.get('/static/non/existent/file.css') assert_eq...
44.36
79
0.643823
439
3,327
4.681093
0.177677
0.113869
0.105109
0.122628
0.73528
0.636983
0.525547
0.421411
0.36691
0.273966
0
0.004473
0.193568
3,327
74
80
44.959459
0.761461
0.006312
0
0.241379
0
0
0.351695
0.175242
0
0
0
0
0.206897
1
0.189655
false
0
0.086207
0
0.293103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ae4b5cc0aeea03900ca797b02f8cd9bb0c7e4f9
8,083
py
Python
CHT/cht_data.py
aryam7/WASP
39f3ac2e8ad3b97124b52cc17e97902e3ec1fbc9
[ "Apache-2.0" ]
72
2015-03-01T20:59:06.000Z
2022-03-28T08:48:39.000Z
CHT/cht_data.py
bmvdgeijn/WASP
d3b8447fd7719fffa00b856fd1f27c845554693e
[ "Apache-2.0" ]
93
2015-01-14T23:49:12.000Z
2022-03-26T16:31:52.000Z
CHT/cht_data.py
aryam7/WASP
39f3ac2e8ad3b97124b52cc17e97902e3ec1fbc9
[ "Apache-2.0" ]
51
2015-02-19T23:49:17.000Z
2021-12-16T01:40:37.000Z
import sys import gzip import os import numpy as np import util class TestSNP: def __init__(self, name, geno_hap1, geno_hap2, AS_target_ref, AS_target_alt, hetps, totals, counts): self.name = name self.geno_hap1 = geno_hap1 self.geno_hap2 = geno_hap2 self.AS_targe...
35.143478
107
0.584189
1,085
8,083
4.17235
0.204608
0.016567
0.027833
0.014358
0.22907
0.177159
0.121935
0.121935
0.096311
0.0592
0
0.014765
0.321292
8,083
229
108
35.296943
0.810427
0.153285
0
0.0625
0
0
0.097762
0
0
0
0
0
0
1
0.048611
false
0
0.034722
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ae519116b2d3198ee0c6685afe6a91a67c62aa2
1,023
py
Python
restaurant/admin.backup.py
syahnur197/restaurant-backend
a0f320b69f3fed293555634f6ac094eaa0574c45
[ "MIT" ]
null
null
null
restaurant/admin.backup.py
syahnur197/restaurant-backend
a0f320b69f3fed293555634f6ac094eaa0574c45
[ "MIT" ]
null
null
null
restaurant/admin.backup.py
syahnur197/restaurant-backend
a0f320b69f3fed293555634f6ac094eaa0574c45
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.contenttypes.admin import GenericStackedInline from .models import Image, Product """ To register generics """ class ImageInline(GenericStackedInline): model = Image @admin.register(Image) class ImageAdmin(admin.ModelAdmin): list_display = ( 'id...
19.673077
66
0.57087
86
1,023
6.627907
0.476744
0.105263
0.059649
0.091228
0.150877
0.150877
0.150877
0
0
0
0
0
0.304008
1,023
51
67
20.058824
0.800562
0
0
0.380952
0
0
0.228141
0
0
0
0
0
0
1
0
false
0
0.071429
0
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
5ae5219951f2f425f340756b442acd6b639dbefb
1,025
py
Python
test/twistedutils/test_deferred_deque.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
14
2017-05-06T10:14:32.000Z
2018-07-17T02:58:00.000Z
test/twistedutils/test_deferred_deque.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
2
2017-06-13T05:40:18.000Z
2017-06-13T16:23:01.000Z
test/twistedutils/test_deferred_deque.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
4
2017-06-09T20:20:54.000Z
2018-07-17T02:58:10.000Z
#coding=utf-8 from __future__ import absolute_import import pytest import twisted from twisted.trial import unittest from twisted.internet.defer import Deferred from twisted.python import log from stup.twistedutils.deferred_deque import * class DeferredDequeueTest(unittest.TestCase): def __init__(self, *args, **...
27.702703
67
0.656585
130
1,025
5.015385
0.353846
0.122699
0.116564
0.153374
0.358896
0.358896
0.317485
0.317485
0.317485
0.317485
0
0.001212
0.195122
1,025
36
68
28.472222
0.789091
0.011707
0
0.166667
0
0
0.012871
0
0
0
0
0
0.208333
1
0.083333
false
0
0.291667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ae7e92c23080d64d3b2328bffafe05bd7e29760
1,845
py
Python
quickspy/net/netengine.py
kirte2849/Quickspy
767d0fb8ded283aa0d8122d77e15dc411f553994
[ "MIT" ]
1
2020-07-11T13:41:40.000Z
2020-07-11T13:41:40.000Z
quickspy/net/netengine.py
kirte2849/Quickspy
767d0fb8ded283aa0d8122d77e15dc411f553994
[ "MIT" ]
null
null
null
quickspy/net/netengine.py
kirte2849/Quickspy
767d0fb8ded283aa0d8122d77e15dc411f553994
[ "MIT" ]
null
null
null
from lxml import etree import socket import re import aiohttp from quickspy.color import * class Response: def __init__(self, byte, encoding='utf-8'): global ENCODING ENCODING = encoding self.url = None self.html = None self.byte = byte self.HTML = None s...
24.932432
77
0.58374
229
1,845
4.60262
0.318777
0.060721
0.041746
0.048387
0.166983
0.129032
0.129032
0.072106
0.072106
0.072106
0
0.00625
0.306233
1,845
74
78
24.932432
0.817188
0.009214
0
0.037037
0
0
0.065098
0.019147
0
0
0
0
0
1
0.166667
false
0
0.092593
0.055556
0.444444
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ae91679bd447b62dfc5e7a20c1d3f70d03392e4
1,577
py
Python
yamlapi/demo/tool/read_write_json.py
Ironkubi/yamlapi
efd80cf15a182b0dde03e923f6b3d86c43e5a355
[ "MIT" ]
19
2020-05-29T09:28:42.000Z
2022-02-21T06:09:42.000Z
yamlapi/demo/tool/read_write_json.py
Ironkubi/yamlapi
efd80cf15a182b0dde03e923f6b3d86c43e5a355
[ "MIT" ]
1
2020-03-05T05:45:19.000Z
2020-07-12T03:08:40.000Z
yamlapi/demo/tool/read_write_json.py
Ironkubi/yamlapi
efd80cf15a182b0dde03e923f6b3d86c43e5a355
[ "MIT" ]
7
2020-10-21T02:24:44.000Z
2022-02-21T06:09:22.000Z
import demjson from setting.project_config import * def read_json(json_absolute_path): """ 读取json文件 :param json_absolute_path: 参数为需要读取的json文件的绝对路径 :return: """ with open(json_absolute_path, "r", encoding="utf-8") as f: data_list = demjson.decode(f.read(), encoding="utf-8") return...
23.537313
77
0.590996
182
1,577
4.901099
0.395604
0.044843
0.053812
0.040359
0.069507
0.069507
0.069507
0
0
0
0
0.003666
0.30818
1,577
66
78
23.893939
0.813932
0.223843
0
0
0
0
0.020105
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5aed22439a90e2493b4099bcd8a18e6edf2db414
2,254
py
Python
python/LPG/CRUD.py
andreluizdsantos/Curso_ADS
bdff1f96cfc22f91423bc14f383f3e69b93deb6f
[ "MIT" ]
1
2020-08-31T16:53:18.000Z
2020-08-31T16:53:18.000Z
python/LPG/CRUD.py
andreluizdsantos/Curso_ADS
bdff1f96cfc22f91423bc14f383f3e69b93deb6f
[ "MIT" ]
null
null
null
python/LPG/CRUD.py
andreluizdsantos/Curso_ADS
bdff1f96cfc22f91423bc14f383f3e69b93deb6f
[ "MIT" ]
null
null
null
import sqlite3 #importa a bibliotéca sqlite3 desc = ["Código", "Nome", "Telefone"] lista = [None, None] menu = [' 1 - Cadastrar:', ' 2 - Consultar:', ' 3 - Excluir/Criar Tabela:', ' 9 - Sair e Salvar'] conector = sqlite3.connect('teste.db') #conecta o banco de dados cursor = conector.cursor() #inicia o cursor while T...
49
170
0.632209
327
2,254
4.357798
0.382263
0.044211
0.044912
0.042105
0.192281
0.137544
0.137544
0.137544
0.113684
0.113684
0
0.023865
0.237799
2,254
45
171
50.088889
0.805588
0.291482
0
0.119048
0
0.095238
0.424147
0.034134
0
0
0
0
0
1
0
false
0
0.02381
0
0.02381
0.309524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5afabc1c92de296fe846af7a2b027458e2772a60
3,355
py
Python
test/query_test.py
mochen1228/PyQuakes
8e57c72d45e33812e9af5bd01fbce6c96bcd936d
[ "MIT" ]
2
2021-06-07T21:23:30.000Z
2021-06-08T17:07:52.000Z
test/query_test.py
mochen1228/PyQuakes
8e57c72d45e33812e9af5bd01fbce6c96bcd936d
[ "MIT" ]
null
null
null
test/query_test.py
mochen1228/PyQuakes
8e57c72d45e33812e9af5bd01fbce6c96bcd936d
[ "MIT" ]
1
2021-06-07T21:30:09.000Z
2021-06-07T21:30:09.000Z
import os import sys import unittest from datetime import datetime import requests sys.path.append(os.path.abspath('..')) from src.earthquake_query import EarthquakeQuery from src.timeframe import TimeFrame from src.location import Rectangle, Circle, RadiusUnit, GeoRectangle from src.enum.contributor import Contribut...
40.914634
112
0.692697
402
3,355
5.604478
0.276119
0.066578
0.035508
0.040834
0.068797
0.01953
0
0
0
0
0
0.021805
0.207154
3,355
81
113
41.419753
0.825188
0.129955
0
0
0
0.017544
0.050224
0
0
0
0
0
0.192982
1
0.105263
false
0
0.157895
0
0.280702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5afce0b13a04c2e681d1b3f1a01d8ccfeafdc806
2,256
py
Python
2021/day_10.py
tony-sappe/aoc-2021
526bec249467c5a28bbf68516c1918b8be9c8045
[ "MIT" ]
1
2022-02-19T10:13:54.000Z
2022-02-19T10:13:54.000Z
2021/day_10.py
tony-sappe/aoc-2021
526bec249467c5a28bbf68516c1918b8be9c8045
[ "MIT" ]
null
null
null
2021/day_10.py
tony-sappe/aoc-2021
526bec249467c5a28bbf68516c1918b8be9c8045
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Iterable, List, Tuple Sample_Input = """[({(<(())[]>[[{[]{<()<>> [(()[<>])]({[<{<<[]>>( {([(<{}[<>[]}>{[]{[(<()> (((({<>}<{<{<>}{[]{[]{} [[<[([]))<([[{}[[()]]] [{[{({}]{}}([{[{{{}}([] {<[[]]>}<{[{[{[]{()[[[] [<(<(<(<{}))><([]([]() <{([([[(<>()){}]>(<<{{ <{([{{}}[<[[[<>{}]]]>...
26.541176
96
0.47828
231
2,256
4.497836
0.311688
0.023099
0.046198
0.036574
0.032724
0
0
0
0
0
0
0.015504
0.256649
2,256
84
97
26.857143
0.604055
0
0
0.106061
0
0
0.192819
0.12766
0
0
0
0
0
1
0.075758
false
0
0.030303
0.015152
0.227273
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8502fa85f9bc5db59d062f1bedd1d8a262689de3
8,733
py
Python
examples/6tisch/simple-node/simulations/simulation.py
lucasschnugger/contiki-ng
d61a7c60790382168f3ef4823e80a32e1c307f29
[ "BSD-3-Clause" ]
null
null
null
examples/6tisch/simple-node/simulations/simulation.py
lucasschnugger/contiki-ng
d61a7c60790382168f3ef4823e80a32e1c307f29
[ "BSD-3-Clause" ]
null
null
null
examples/6tisch/simple-node/simulations/simulation.py
lucasschnugger/contiki-ng
d61a7c60790382168f3ef4823e80a32e1c307f29
[ "BSD-3-Clause" ]
null
null
null
import os, time, shutil, random, re from xml.etree import cElementTree as ET def run_test(cooja, dir, test, seed): # run test simulation with seed command = f"java -jar {cooja} -nogui={dir}{test} -random-seed={seed}" os.system(command) def remove_command_in_test(dir, test): file = f"{dir}{test}" ...
42.6
169
0.642276
1,170
8,733
4.640171
0.17094
0.029656
0.016578
0.035366
0.441886
0.354025
0.302081
0.212931
0.180328
0.172223
0
0.018689
0.215733
8,733
204
170
42.808824
0.773982
0.142792
0
0.29697
0
0.042424
0.248187
0.119124
0
0
0
0
0
1
0.054545
false
0
0.012121
0
0.090909
0.048485
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8506b84f31a4d3a7cbcf45361a19e0b5e9647f9e
5,217
py
Python
web2py-appliances-master/TinyWebsite/controllers/pages.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/TinyWebsite/controllers/pages.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/TinyWebsite/controllers/pages.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
#from gluon.debug import dbg def show_page(): """ Show the requested page """ from gluon.tools import prettydate manager_toolbar = ManagerToolbar('page') if request.args(0) and request.args(0).isdigit(): page = db.page(request.args(0)) else: page = db(db.page.url==reque...
44.589744
115
0.593253
627
5,217
4.736842
0.239234
0.072727
0.040404
0.056566
0.382492
0.269697
0.10101
0.10101
0.082492
0.07138
0
0.004087
0.296531
5,217
116
116
44.974138
0.805177
0.062105
0
0.191919
0
0
0.116327
0.009265
0
0
0
0
0
1
0.030303
false
0
0.010101
0
0.070707
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
850800f055d743a3abfb7230c39b201f6bb9fe52
4,307
py
Python
tests/unit/test_units.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
1
2022-03-24T04:33:06.000Z
2022-03-24T04:33:06.000Z
tests/unit/test_units.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_units.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
null
null
null
""" Tests for units.py """ # ----------------------------------------------------------------------------- # IMPORTS # ----------------------------------------------------------------------------- from astropy.units import Quantity, UnitsError, UnitConversionError import numpy as np import pytest from hsr4hci.units...
34.18254
79
0.618296
495
4,307
5.183838
0.19798
0.062354
0.068589
0.057288
0.533905
0.494544
0.464147
0.397506
0.367498
0.367498
0
0.066512
0.200604
4,307
125
80
34.456
0.678769
0.221036
0
0.453333
0
0
0.107664
0
0
0
0
0
0.253333
1
0.04
false
0
0.053333
0
0.093333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
850ce0650d166e24edaa3081144f34f40dfdab65
45,045
py
Python
pynmrstar/entry.py
uwbmrb/PyNMRSTAR
c6e3cdccb4aa44dfbc3b4e984837a6bcde3cf171
[ "MIT" ]
16
2017-02-02T05:00:50.000Z
2021-05-25T11:13:15.000Z
pynmrstar/entry.py
uwbmrb/PyNMRSTAR
c6e3cdccb4aa44dfbc3b4e984837a6bcde3cf171
[ "MIT" ]
29
2016-07-14T21:02:18.000Z
2021-06-26T17:24:07.000Z
pynmrstar/entry.py
bmrb-io/PyNMRSTAR
55df5bf7de192e7a6c95f37e0756f09e3f504170
[ "MIT" ]
4
2016-04-14T16:29:49.000Z
2017-02-28T02:01:57.000Z
import hashlib import json import logging import warnings from io import StringIO from typing import TextIO, BinaryIO, Union, List, Optional, Dict, Any, Tuple from pynmrstar import definitions, utils, loop as loop_mod, parser as parser_mod, saveframe as saveframe_mod from pynmrstar._internal import _json_serialize, _i...
47.971246
120
0.561772
5,379
45,045
4.549359
0.109314
0.014017
0.020187
0.012259
0.341997
0.286339
0.248416
0.226799
0.207797
0.188795
0
0.00235
0.357598
45,045
938
121
48.022388
0.843315
0.224198
0
0.281961
0
0
0.176936
0.043336
0
0
0
0.001066
0
1
0.075306
false
0.007005
0.017513
0.001751
0.175131
0.007005
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
850e1110baca1c14a7d48fb08c645b57e4e9158c
2,862
py
Python
tests/compilation/yaml/test_yaml_load_inclusion.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
tests/compilation/yaml/test_yaml_load_inclusion.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
tests/compilation/yaml/test_yaml_load_inclusion.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
import os from io import StringIO from pytest import mark, raises from preacher.compilation.yaml import YamlError, load @mark.parametrize(('content', 'expected_message'), [ ('!include []', '", line 1, column 1'), ('!include {}', '", line 1, column 1'), ]) def test_given_invalid_inclusion(content, expected_m...
33.670588
87
0.636268
347
2,862
5.144092
0.233429
0.053782
0.036975
0.039216
0.386555
0.202801
0.202801
0.185434
0.07507
0.07507
0
0.003454
0.190776
2,862
84
88
34.071429
0.767271
0
0
0.128571
0
0
0.364081
0.087701
0
0
0
0
0.185714
1
0.057143
false
0
0.057143
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
850f175e41fd56a4797f57b9509f4632b0f87cf8
657
py
Python
death_functions.py
Yamgrenade/Gou
fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded
[ "MIT" ]
null
null
null
death_functions.py
Yamgrenade/Gou
fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded
[ "MIT" ]
9
2019-08-30T15:02:25.000Z
2019-10-03T17:33:54.000Z
death_functions.py
Yamgrenade/Gou
fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded
[ "MIT" ]
1
2020-07-13T16:29:19.000Z
2020-07-13T16:29:19.000Z
import tcod as libtcod from render_functions import RenderOrder from game_states import GameStates from game_messages import Message def kill_player(player): player.char = '%' player.color = libtcod.dark_red return Message('YOU DIED', libtcod.red), GameStates.PLAYER_DEAD def kill_monster(monster): ...
26.28
87
0.730594
84
657
5.583333
0.488095
0.070362
0.06823
0.081023
0
0
0
0
0
0
0
0.001855
0.179604
657
25
88
26.28
0.868275
0
0
0
0
0
0.056231
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8515a99b3eb2ef4eb36f62853a3bd0233a514cfc
4,458
py
Python
tests/cache_test.py
arnib/ssm-cache-python
298bfc38a15cfd4b0de42412a335b61b9971ba22
[ "MIT" ]
1
2020-05-25T08:26:55.000Z
2020-05-25T08:26:55.000Z
tests/cache_test.py
benkehoe/ssm-cache-python
c21c536b7ba38494bfccafea311a853f50360609
[ "MIT" ]
null
null
null
tests/cache_test.py
benkehoe/ssm-cache-python
c21c536b7ba38494bfccafea311a853f50360609
[ "MIT" ]
null
null
null
import os import sys from datetime import datetime, timedelta import boto3 from moto import mock_ssm from . import TestBase sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from ssm_cache import SSMParameter, InvalidParam @mock_ssm class TestSSMCache(TestBase): def setUp(self): ...
35.951613
82
0.651189
551
4,458
4.972777
0.219601
0.061314
0.061314
0.09635
0.537226
0.377007
0.287956
0.281022
0.25146
0.211679
0
0.013162
0.250112
4,458
123
83
36.243902
0.806461
0.071108
0
0.354839
0
0
0.071532
0.005092
0
0
0
0
0.27957
1
0.139785
false
0.010753
0.075269
0
0.247312
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85184c796f1842707b6d4adf1b17e780221e13fb
1,403
py
Python
autograd/optim.py
brandontrabucco/autograd
38687c67d253a1347c1bba6445169e43f1db63e4
[ "MIT" ]
null
null
null
autograd/optim.py
brandontrabucco/autograd
38687c67d253a1347c1bba6445169e43f1db63e4
[ "MIT" ]
null
null
null
autograd/optim.py
brandontrabucco/autograd
38687c67d253a1347c1bba6445169e43f1db63e4
[ "MIT" ]
null
null
null
"""Author: Brandon Trabucco, Copyright 2019 Implements dynamic computational graphs with an interface like pytorch. Also uses the ADAM optimizer.""" import numpy as np import autograd.nodes #################### #### OPTIMIZERS #### #################### class Adam(autograd.nodes.Optimizer): de...
31.886364
82
0.570919
189
1,403
4.111111
0.365079
0.082368
0.056628
0.05148
0.087516
0.087516
0
0
0
0
0
0.023833
0.282252
1,403
43
83
32.627907
0.747766
0.188881
0
0
0
0
0.003899
0
0
0
0
0
0
1
0.12
false
0
0.08
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
851ada71457a99d2701c22836c3b69a5e678b2e0
872
py
Python
src/code_challenges/8_5_20.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
src/code_challenges/8_5_20.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
src/code_challenges/8_5_20.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
''' Print out all of the strings in the following array in alphabetical order, each on a separate line. ['Waltz', 'Tango', 'Viennese Waltz', 'Foxtrot', 'Cha Cha', 'Samba', 'Rumba', 'Paso Doble', 'Jive'] The expected output is: 'Cha Cha' 'Foxtrot' 'Jive' 'Paso Doble' 'Rumba' 'Samba' 'Tango' 'Viennese Waltz' 'Waltz' You ...
27.25
164
0.683486
123
872
4.813008
0.544715
0.065878
0.091216
0.077703
0.199324
0.199324
0.199324
0.199324
0.199324
0.199324
0
0.004243
0.18922
872
31
165
28.129032
0.833098
0.680046
0
0
0
0
0.237918
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
851b02d0eb709b35d28a8b9da557a4b933cbb342
7,740
py
Python
builders/layers/scenegenerators.py
leosampaio/scene-designer
8a7276067acfde1997d386942aabc44d92436a1a
[ "MIT" ]
9
2021-08-18T17:49:42.000Z
2022-02-22T02:15:07.000Z
builders/layers/scenegenerators.py
leosampaio/scene-designer
8a7276067acfde1997d386942aabc44d92436a1a
[ "MIT" ]
null
null
null
builders/layers/scenegenerators.py
leosampaio/scene-designer
8a7276067acfde1997d386942aabc44d92436a1a
[ "MIT" ]
1
2021-10-02T19:53:03.000Z
2021-10-02T19:53:03.000Z
import tensorflow as tf import tensorflow_addons as tfa import builders from builders.layers.helpers import build_cnn, get_normalization_2d from builders.layers import stylegan from builders.layers.spectral import SNConv2D from builders.layers.syncbn import SyncBatchNormalization def build_mask_net(hidden_channel_di...
40.736842
166
0.624548
1,053
7,740
4.392213
0.162393
0.045405
0.07027
0.055351
0.46227
0.424865
0.387459
0.321081
0.278486
0.238919
0
0.022903
0.249742
7,740
189
167
40.952381
0.773549
0.006718
0
0.310811
0
0
0.028653
0.003777
0
0
0
0
0.006757
1
0.067568
false
0
0.047297
0.02027
0.182432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
851ccf02531e4e7ff2823ea6d2824dfc6a043bbd
3,993
py
Python
nbviewer/tests/base.py
AI-Collaboratory/nbviewer
1a40e04cc8aad67aa96bb840603f8f568c08d44d
[ "BSD-3-Clause-Clear" ]
1,840
2015-01-01T13:25:44.000Z
2022-03-17T08:33:01.000Z
nbviewer/tests/base.py
AI-Collaboratory/nbviewer
1a40e04cc8aad67aa96bb840603f8f568c08d44d
[ "BSD-3-Clause-Clear" ]
605
2015-01-01T16:45:01.000Z
2022-03-14T15:25:25.000Z
nbviewer/tests/base.py
AI-Collaboratory/nbviewer
1a40e04cc8aad67aa96bb840603f8f568c08d44d
[ "BSD-3-Clause-Clear" ]
513
2015-01-07T20:54:49.000Z
2022-02-17T16:04:30.000Z
"""Base class for nbviewer tests. Derived from IPython.html notebook test case in 2.0 """ # ----------------------------------------------------------------------------- # Copyright (C) Jupyter Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distribut...
27.163265
79
0.604308
461
3,993
5.136659
0.399132
0.041385
0.030405
0.02027
0.179899
0.179899
0.162162
0.127534
0.090372
0.053209
0
0.003775
0.270223
3,993
146
80
27.349315
0.808854
0.246682
0
0.293478
0
0
0.063226
0
0
0
0
0
0.086957
1
0.119565
false
0
0.141304
0.054348
0.413043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8523860c41be0e36cd1d844b36558c0d7b16343b
4,960
py
Python
active_reward_learning/common/policy.py
david-lindner/idrl
54cfad330b0598ad4f6621796f2411644e50a6ba
[ "MIT" ]
9
2021-11-20T18:14:38.000Z
2022-03-20T16:29:48.000Z
active_reward_learning/common/policy.py
david-lindner/idrl
54cfad330b0598ad4f6621796f2411644e50a6ba
[ "MIT" ]
null
null
null
active_reward_learning/common/policy.py
david-lindner/idrl
54cfad330b0598ad4f6621796f2411644e50a6ba
[ "MIT" ]
null
null
null
import datetime import os import pickle from abc import ABC, abstractmethod import gym import numpy as np class BasePolicy(ABC): @abstractmethod def get_action(self, obs, deterministic=True): raise NotImplementedError() def evaluate(self, env, N=10, rollout=True): if not rollout: ...
30.060606
87
0.599194
620
4,960
4.640323
0.229032
0.036496
0.033368
0.044491
0.242961
0.208551
0.177963
0.10219
0.10219
0.10219
0
0.002002
0.29496
4,960
164
88
30.243902
0.820703
0.014718
0
0.174242
0
0
0.023541
0.005118
0
0
0
0
0.015152
1
0.166667
false
0.007576
0.045455
0.015152
0.401515
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8524f725e1219424eff7106f2965054cd2eeb4a1
8,384
py
Python
raft/servers/zre_server.py
adsharma/raft
49c7bfd472af4c97cc69d7e7e4ffc26808ed88db
[ "MIT" ]
4
2021-01-20T20:29:19.000Z
2021-09-21T18:20:08.000Z
raft/servers/zre_server.py
adsharma/raft
49c7bfd472af4c97cc69d7e7e4ffc26808ed88db
[ "MIT" ]
11
2021-01-07T19:06:42.000Z
2021-08-22T17:57:27.000Z
raft/servers/zre_server.py
adsharma/raft
49c7bfd472af4c97cc69d7e7e4ffc26808ed88db
[ "MIT" ]
null
null
null
import asyncio import logging import threading import uuid from cachetools import TTLCache from pyre import Pyre from serde.msgpack import from_msgpack, to_msgpack from typing import List, Union from ..boards.memory_board import MemoryBoard from ..messages.append_entries import AppendEntriesMessage, LogEntry, Command...
35.982833
87
0.563216
892
8,384
5.115471
0.223094
0.028928
0.019724
0.015122
0.30835
0.229235
0.193294
0.174885
0.117028
0.117028
0
0.002574
0.351145
8,384
232
88
36.137931
0.836213
0.072638
0
0.233503
0
0
0.052039
0
0
0
0
0.00431
0.010152
1
0.025381
false
0.005076
0.06599
0.005076
0.152284
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8525422df5c9d907c2e3e52b44632726d4428acd
6,828
py
Python
loops/ornekUygulama.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
loops/ornekUygulama.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
loops/ornekUygulama.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------# # Karakter Dizilerinin İçeriğini Karşılaştırma #----------------------------------------------# #elimizde iki farklı metin var ilkMetin = "asdasfddgdhfjfdgdşfkgjdfklgşjdfklgjdfkghdfjghjklsdhajlsdhjkjhkhjjh" ikinciMetin = "sdfsuıdoryeuıfsjkdfhdjklghjdfklruseldhfjlkdshflj...
35.936842
747
0.733304
896
6,828
5.603795
0.393973
0.025891
0.01673
0.017526
0.29038
0.280223
0.267875
0.25234
0.25234
0.230034
0
0.005268
0.165934
6,828
189
748
36.126984
0.873573
0.323228
0
0.285714
0
0
0.597217
0.055276
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
85284fae5ffd5fddbef7db877d1222f08e75fa2f
16,667
py
Python
bubble/bubble_runner.py
cp105/ai611_project
2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb
[ "Apache-2.0" ]
1
2020-05-18T03:18:11.000Z
2020-05-18T03:18:11.000Z
bubble/bubble_runner.py
cp105/ai611_project
2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb
[ "Apache-2.0" ]
null
null
null
bubble/bubble_runner.py
cp105/ai611_project
2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb
[ "Apache-2.0" ]
1
2020-11-02T08:46:32.000Z
2020-11-02T08:46:32.000Z
# coding=utf-8 # Copyright 2018 The Dopamine Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
42.845758
122
0.638927
2,016
16,667
5.022321
0.204365
0.016
0.016889
0.011358
0.298765
0.211358
0.167012
0.140741
0.117136
0.106074
0
0.009966
0.259495
16,667
388
123
42.956186
0.810404
0.130557
0
0.25784
0
0
0.068101
0.00354
0
0
0
0.002577
0.006969
1
0.076655
false
0
0.087108
0.003484
0.229965
0.013937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8528bb78af4c1e85b701d3605f8b9052440870fe
10,830
py
Python
Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py
hatching/content
5e00808969b9d56c3f5cbdcb9068b65ac1a6de84
[ "MIT" ]
1
2021-04-20T10:58:15.000Z
2021-04-20T10:58:15.000Z
Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py
hatching/content
5e00808969b9d56c3f5cbdcb9068b65ac1a6de84
[ "MIT" ]
null
null
null
Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py
hatching/content
5e00808969b9d56c3f5cbdcb9068b65ac1a6de84
[ "MIT" ]
1
2021-04-20T20:02:06.000Z
2021-04-20T20:02:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import json class Client(BaseClient): def __init__(self, base_url, *args, **kwarg): super().__init__(base_url, *args, **kwarg) def test_module(client: Client) -> str: r = client._http_request( ...
27.912371
113
0.634257
1,329
10,830
4.987961
0.139955
0.050686
0.058983
0.046161
0.43717
0.345452
0.309549
0.267159
0.255695
0.211344
0
0.002361
0.217729
10,830
387
114
27.984496
0.780099
0.027516
0
0.284615
0
0.003846
0.237768
0.070291
0
0
0
0
0
1
0.092308
false
0.003846
0.015385
0
0.203846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
516b7b328aa661fb5cfc6cbe4557688406fd3782
488
py
Python
doi_request/controller.py
joffilyfe/doi_request
870c6b346d7b28789e45cfdae01dcc0f47dafd43
[ "BSD-2-Clause" ]
null
null
null
doi_request/controller.py
joffilyfe/doi_request
870c6b346d7b28789e45cfdae01dcc0f47dafd43
[ "BSD-2-Clause" ]
null
null
null
doi_request/controller.py
joffilyfe/doi_request
870c6b346d7b28789e45cfdae01dcc0f47dafd43
[ "BSD-2-Clause" ]
null
null
null
import logging from tasks.celery import registry_dispatcher_document logger = logging.getLogger(__name__) class Depositor(object): def deposit_by_pids(self, pids_list): """ Receive a list of pids and collection to registry their dois. scl """ for item in pids_list: ...
23.238095
69
0.651639
57
488
5.350877
0.666667
0.118033
0.170492
0
0
0
0
0
0
0
0
0
0.266393
488
20
70
24.4
0.851955
0.133197
0
0
0
0
0.066667
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5173f3bf7eb06fb274030ee5d5c05a3722df00ba
18,234
py
Python
main.py
KlaudijaMedeksaite/GBUI-voice-project
bd2cd979483e3ac43de5009d148e2e0403f50eda
[ "MIT" ]
null
null
null
main.py
KlaudijaMedeksaite/GBUI-voice-project
bd2cd979483e3ac43de5009d148e2e0403f50eda
[ "MIT" ]
null
null
null
main.py
KlaudijaMedeksaite/GBUI-voice-project
bd2cd979483e3ac43de5009d148e2e0403f50eda
[ "MIT" ]
null
null
null
import time import playsound import os import random from gtts.lang import tts_langs from deep_translator import (GoogleTranslator) import pickle import json # my classes import random_test import mike import lang_tests import level_one import level_two import level_three import extras # game progress vars parts = {"...
27.585477
111
0.530109
2,083
18,234
4.530005
0.116659
0.034337
0.033383
0.024799
0.448177
0.362124
0.297266
0.293133
0.293133
0.234103
0
0.018863
0.305144
18,234
660
112
27.627273
0.725888
0.048426
0
0.437624
0
0
0.230143
0.042773
0.00198
0
0
0
0
1
0.059406
false
0.00198
0.029703
0
0.126733
0.09505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51754b6a4b3d3608f20c547765de1308a45663f9
2,135
py
Python
changes/utils/shards.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
changes/utils/shards.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
changes/utils/shards.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
import heapq from flask import current_app from typing import Any, Callable, cast, Dict, List, Tuple, TypeVar # NOQA Normalized = TypeVar('Normalized') def shard(objects, max_shards, object_stats, avg_time, normalize_object_name=cast(Callable[[str], Normalized], lambda x: x)): # type: (List[str], int, Dict[No...
41.862745
125
0.671194
295
2,135
4.728814
0.39322
0.028674
0.04086
0.022939
0.061649
0.034409
0
0
0
0
0
0.001226
0.236066
2,135
50
126
42.7
0.854077
0.44918
0
0
0
0
0.043088
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5177c744c2f039219154881a88b3bbbb875e7877
5,989
py
Python
main.py
Joeization/pyGaen
172db8a1609da7d6c698d552e5d915df912e9e2d
[ "MIT" ]
1
2019-06-16T16:13:18.000Z
2019-06-16T16:13:18.000Z
main.py
Joeization/pyGaen
172db8a1609da7d6c698d552e5d915df912e9e2d
[ "MIT" ]
null
null
null
main.py
Joeization/pyGaen
172db8a1609da7d6c698d552e5d915df912e9e2d
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import pygame try: import pygame._view except ImportError: pass from choice import * from bgm import * from dialog import * from settings import * from text import * from log import * def main(): pygame.init() pygame.font.init() screen = pygame.display.s...
27.855814
85
0.393054
640
5,989
3.64375
0.254688
0.044597
0.025729
0.02187
0.175386
0.108919
0.090909
0.090909
0.062607
0.042882
0
0.03899
0.477542
5,989
214
86
27.985981
0.706296
0.016029
0
0.361446
0
0
0.020051
0
0
0
0
0
0
1
0.006024
false
0.024096
0.054217
0
0.060241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5178c24558ef71ed70c83cdfa68e492916a169e6
3,045
py
Python
ModelDGI.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
ModelDGI.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
ModelDGI.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
import numpy as np import torch from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score from torch.nn import PReLU from torch_geometric.nn import GCNConv, DeepGraphInfomax from Result import Result class Encoder(torch.nn.Module): def __init__(self, hidden, data): s...
34.602273
104
0.60821
393
3,045
4.516539
0.267176
0.04507
0.051268
0.059155
0.290704
0.272676
0.226479
0.226479
0.226479
0.221408
0
0.010676
0.261741
3,045
87
105
35
0.778915
0
0
0.231884
0
0
0.002956
0
0
0
0
0
0
1
0.057971
false
0
0.101449
0.014493
0.231884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51792436ea974d474c1f1d84607900ce05ba5464
4,496
py
Python
conf/views.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
1
2018-01-28T07:48:13.000Z
2018-01-28T07:48:13.000Z
conf/views.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
null
null
null
conf/views.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
null
null
null
import hashlib from django.utils import timezone from account.decorators import super_admin_required from judge.dispatcher import process_pending_task from judge.languages import languages, spj_languages from options.options import SysOptions from utils.api import APIView, CSRFExemptAPIView, validate_serializer from ...
37.466667
101
0.627002
437
4,496
6.270023
0.290618
0.043796
0.068248
0.045985
0.147445
0.078467
0.056934
0.030657
0
0
0
0.001238
0.281139
4,496
119
102
37.781513
0.846535
0.00823
0
0.244898
0
0
0.08324
0.015706
0
0
0
0
0
1
0.102041
false
0.030612
0.091837
0.020408
0.377551
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
517946e1d2fb85e5f713dbfc6bcd270e2147f166
15,026
py
Python
gamse/pipelines/__init__.py
wangleon/gamse
ed2a3730469a1eeef3def1beca990e9d2641a53b
[ "Apache-2.0" ]
10
2019-04-10T15:05:50.000Z
2021-11-28T15:31:38.000Z
gamse/pipelines/__init__.py
wangleon/gamse
ed2a3730469a1eeef3def1beca990e9d2641a53b
[ "Apache-2.0" ]
15
2020-04-07T07:29:27.000Z
2022-02-19T15:47:04.000Z
gamse/pipelines/__init__.py
wangleon/gamse
ed2a3730469a1eeef3def1beca990e9d2641a53b
[ "Apache-2.0" ]
2
2020-04-02T09:04:27.000Z
2020-10-14T15:29:10.000Z
import os import re import sys import shutil import logging logger = logging.getLogger(__name__) import configparser import numpy as np import astropy.io.fits as fits import matplotlib.pyplot as plt import matplotlib.ticker as tck from ..utils.obslog import read_obslog from ..utils.misc import write_system_info fr...
34.542529
80
0.535605
1,704
15,026
4.623826
0.212441
0.01523
0.01485
0.010661
0.365402
0.335576
0.312476
0.304353
0.294454
0.248763
0
0.012464
0.348596
15,026
434
81
34.62212
0.792501
0.140423
0
0.436306
0
0.003185
0.082482
0.004713
0
0
0
0
0
1
0.025478
false
0.009554
0.044586
0
0.070064
0.022293
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
517c72830a031351a68c7d69fc4b0b87b4a8a950
975
py
Python
src/django/api/management/commands/processfixtures.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
32
2019-01-26T05:04:03.000Z
2022-03-11T15:09:09.000Z
src/django/api/management/commands/processfixtures.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
1,586
2019-01-15T21:54:42.000Z
2022-03-31T17:38:14.000Z
src/django/api/management/commands/processfixtures.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
7
2019-02-28T03:32:46.000Z
2021-11-04T17:03:46.000Z
from django.core.management import call_command from django.core.management.base import BaseCommand class Command(BaseCommand): help = 'Run all processing steps on data loaded from fixtures' def add_arguments(self, parser): parser.add_argument( '-s', '--startid', t...
29.545455
66
0.524103
108
975
4.62037
0.490741
0.06012
0.056112
0.096192
0.128257
0.128257
0.128257
0.128257
0
0
0
0.00487
0.368205
975
32
67
30.46875
0.805195
0
0
0.148148
0
0
0.217436
0
0
0
0
0
0
1
0.074074
false
0
0.074074
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
518478984b76dc79b0984af18a409fa92718c2e2
10,703
py
Python
ngram/language_model.py
brightp-py/rnng-and-rts
c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33
[ "MIT" ]
null
null
null
ngram/language_model.py
brightp-py/rnng-and-rts
c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33
[ "MIT" ]
null
null
null
ngram/language_model.py
brightp-py/rnng-and-rts
c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33
[ "MIT" ]
null
null
null
#!/bin/env python """ language_model.py. Written by joshualoehr. https://github.com/joshualoehr/ngram-language-model Edited by Brighton Pauli, 4/20/2022. """ import argparse from itertools import product from pathlib import Path import numpy as np import nltk from preprocess import preprocess, EOS, UNK def load_d...
36.780069
79
0.608521
1,420
10,703
4.497183
0.226056
0.015659
0.012527
0.008456
0.112277
0.054494
0.036956
0.036956
0.008143
0
0
0.009165
0.296552
10,703
290
80
36.906897
0.839022
0.387181
0
0
0
0
0.094842
0
0
0
0
0
0
1
0.087302
false
0
0.047619
0.007937
0.230159
0.079365
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51854f42a0ad4da0db518cc4b31ddad382a8ad3b
11,484
py
Python
code/pyorg/globals/mt_seg.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyorg/globals/mt_seg.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyorg/globals/mt_seg.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
""" Collection of functions for helping to segment microtubes in tomograms # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 1.07.17 """ import csv import vtk from .utils import * from sklearn.cluster import MeanShift __author__ = 'Antonio Martinez-Sanchez' # Clean an directory con...
36.113208
120
0.638628
1,818
11,484
3.858086
0.191969
0.011976
0.00499
0.03493
0.233105
0.204448
0.185486
0.156401
0.156401
0.150413
0
0.016786
0.247823
11,484
317
121
36.227129
0.795207
0.271334
0
0.145161
0
0
0.077213
0.007891
0
0
0
0
0
1
0.048387
false
0.005376
0.021505
0
0.123656
0.005376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
518655f8a3ef06d9584a599c64e86a70b2d75a88
1,725
py
Python
Medium/396.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/396.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/396.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 396. Rotate Function # # Description: # Given an array of integers A and let n to be its length. # # Assume Bk to be an array obtained by rotating the array A k positions clock-wise, # we define a "rotation function" F on A as follow: # # F(k) = 0 * Bk[0] + 1 * Bk[1] + ... + (n-1)...
28.278689
84
0.441159
277
1,725
2.718412
0.33935
0.023904
0.023904
0.046481
0.12749
0.12749
0.12749
0.12749
0.12749
0.069057
0
0.090909
0.330435
1,725
61
85
28.278689
0.561039
0.613333
0
0
0
0
0.012698
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51874c89c5717dcfb607658189272652ac7ef4e4
892
py
Python
word2vec_train.py
kyucheolsim/gs-word2vec
14a08f4320cd913694dab5980a5c4467c0ed9613
[ "MIT" ]
null
null
null
word2vec_train.py
kyucheolsim/gs-word2vec
14a08f4320cd913694dab5980a5c4467c0ed9613
[ "MIT" ]
2
2021-03-31T20:05:56.000Z
2021-12-13T20:46:58.000Z
word2vec_train.py
kyucheolsim/gs-word2vec
14a08f4320cd913694dab5980a5c4467c0ed9613
[ "MIT" ]
null
null
null
from konlpy.tag import Mecab from gensim.models.word2vec import Word2Vec from W2VData import tokenize, W2VData import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ADD_POS = True LOWER = True SG = 0 ITER = 10 MIN_COUNT = 3 EMBED_SIZE = 100 VOCAB_SIZE = 10000 tok...
30.758621
187
0.748879
140
892
4.6
0.514286
0.049689
0
0
0
0
0
0
0
0
0
0.027202
0.134529
892
28
188
31.857143
0.806995
0.132287
0
0
0
0
0.152146
0.09883
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
518a5d915b98f8e18ba518f211b0e46a72f71a18
3,338
py
Python
india-covid19india-py/main.py
vpt101/covid-19_data_analysis
1d02385ad75b650e584e119a8891433aa70e90d8
[ "CC0-1.0" ]
null
null
null
india-covid19india-py/main.py
vpt101/covid-19_data_analysis
1d02385ad75b650e584e119a8891433aa70e90d8
[ "CC0-1.0" ]
null
null
null
india-covid19india-py/main.py
vpt101/covid-19_data_analysis
1d02385ad75b650e584e119a8891433aa70e90d8
[ "CC0-1.0" ]
null
null
null
# encoding: utf-8 import sys sys.path.append(r'./Ind') from IndStatePlotter import IndStatePlotter from IndTypes import IndType from ModellingMode import ModellingMode import Meta as cc from Ind import IndParser from Ind import IndStateAnalyzer as Isa # from IndStateAnalyzer import IndStateAnalyzer DEFAULT_MODE...
30.623853
123
0.639305
362
3,338
5.859116
0.411602
0.035361
0.020745
0.037718
0.18199
0.162188
0.162188
0.090523
0.090523
0.029231
0
0.007955
0.246854
3,338
108
124
30.907407
0.83572
0.146495
0
0.075472
0
0
0.015183
0
0
0
0
0
0
1
0.09434
false
0
0.150943
0
0.301887
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
518bffc883589adb5a823d3a5c5dcc651a157b64
4,203
py
Python
test/test.py
mtdsousa/antlr4-verilog
c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad
[ "MIT" ]
3
2022-02-15T15:51:43.000Z
2022-02-21T13:18:09.000Z
test/test.py
mtdsousa/antlr4-verilog
c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad
[ "MIT" ]
1
2022-02-21T12:35:10.000Z
2022-02-21T16:45:56.000Z
test/test.py
mtdsousa/antlr4-verilog-python
c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad
[ "MIT" ]
null
null
null
''' Copyright (c) 2022 Marco Diniz Sousa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
38.916667
109
0.655722
405
4,203
6.693827
0.358025
0.020657
0.050904
0.040575
0.357433
0.339727
0.302103
0.272593
0.272593
0.215419
0
0.002248
0.259101
4,203
107
110
39.280374
0.868337
0.142279
0
0.324675
0
0
0.118187
0
0
0
0
0
0.077922
1
0.168831
false
0
0.051948
0
0.311688
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0