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
72930128f10a45046ff86b69e321c55984b0eb59
15,885
py
Python
sknn_jgd/backend/lasagne/mlp.py
jgdwyer/nn-convection
0bb55c0ac7af8f1345bf17b4db31b2593c8d1b28
[ "Apache-2.0" ]
1
2016-08-08T14:33:20.000Z
2016-08-08T14:33:20.000Z
sknn_jgd/backend/lasagne/mlp.py
jgdwyer/nn-convection
0bb55c0ac7af8f1345bf17b4db31b2593c8d1b28
[ "Apache-2.0" ]
null
null
null
sknn_jgd/backend/lasagne/mlp.py
jgdwyer/nn-convection
0bb55c0ac7af8f1345bf17b4db31b2593c8d1b28
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, unicode_literals, print_function) __all__ = ['MultiLayerPerceptronBackend'] import os import sys import math import time import types import logging import itertools log = logging.getLogger('sknn') import numpy import theano import sklearn....
40.730769
117
0.577274
1,932
15,885
4.591097
0.191511
0.010147
0.008117
0.009019
0.211725
0.164938
0.135062
0.108005
0.098309
0.078805
0
0.007796
0.313629
15,885
389
118
40.835476
0.805742
0.059553
0
0.116438
0
0
0.07284
0.003427
0
0
0
0
0.027397
1
0.078767
false
0
0.065068
0.017123
0.222603
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7293c3777f58eec10956f70997622aaecdee719d
1,677
py
Python
L2J_DataPack/data/scripts/quests/998_FallenAngelSelect/__init__.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
L2J_DataPack/data/scripts/quests/998_FallenAngelSelect/__init__.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
L2J_DataPack/data/scripts/quests/998_FallenAngelSelect/__init__.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
# Made by Kerberos # this script is part of the Official L2J Datapack Project. # Visit http://www.l2jdp.com/forum/ for more details. import sys from com.l2jserver.gameserver.instancemanager import QuestManager from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestS...
34.9375
153
0.689326
215
1,677
5.325581
0.47907
0.024454
0.055895
0.09083
0.253275
0.220087
0.188646
0.115284
0.115284
0.115284
0
0.041698
0.199165
1,677
48
154
34.9375
0.810871
0.075134
0
0.108108
0
0.027027
0.179587
0.067183
0
0
0
0
0
1
0.081081
false
0
0.135135
0
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7295b71bdde90ae99770dabaff2f0e425c610dba
10,859
py
Python
ai_safety_gridworlds/environments/side_effects_sokoban.py
AicyDC/ai-safety-gridworlds
b574b3e42880e32245a6c69502af3e9782ae2879
[ "Apache-2.0" ]
null
null
null
ai_safety_gridworlds/environments/side_effects_sokoban.py
AicyDC/ai-safety-gridworlds
b574b3e42880e32245a6c69502af3e9782ae2879
[ "Apache-2.0" ]
null
null
null
ai_safety_gridworlds/environments/side_effects_sokoban.py
AicyDC/ai-safety-gridworlds
b574b3e42880e32245a6c69502af3e9782ae2879
[ "Apache-2.0" ]
1
2020-02-13T01:30:09.000Z
2020-02-13T01:30:09.000Z
# Copyright 2018 The AI Safety Gridworlds Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.916399
80
0.664702
1,455
10,859
4.753265
0.257732
0.034702
0.013158
0.017351
0.233661
0.199248
0.168884
0.146906
0.071139
0.043667
0
0.011012
0.222304
10,859
310
81
35.029032
0.807934
0.359978
0
0.103659
0
0
0.035635
0
0
0
0
0
0
1
0.054878
false
0.02439
0.060976
0
0.146341
0.006098
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7295e60221af8bcb23ad558a2feefc9a7f5e4f9d
956
py
Python
setup.py
mirca/deepdow
48484f99aa36863b15fb1ae685659841ce37fe25
[ "Apache-2.0" ]
2
2021-05-06T07:00:05.000Z
2022-03-15T22:13:37.000Z
setup.py
rodrigorivera/deepdow
48484f99aa36863b15fb1ae685659841ce37fe25
[ "Apache-2.0" ]
null
null
null
setup.py
rodrigorivera/deepdow
48484f99aa36863b15fb1ae685659841ce37fe25
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup import deepdow DESCRIPTION = "Portfolio optimization with deep learning" LONG_DESCRIPTION = DESCRIPTION INSTALL_REQUIRES = [ "cvxpylayers", "matplotlib", "mlflow", "numpy>=1.16.5", "pandas", "pillow", "seaborn", "torch>=1.5", "tensorboar...
24.512821
94
0.646444
103
956
5.825243
0.68932
0.075
0.086667
0
0
0
0
0
0
0
0
0.020672
0.190377
956
38
95
25.157895
0.754522
0
0
0
0
0
0.358787
0.024059
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7297791db05ab40bf0827824367abd990f8158d1
12,139
py
Python
src/ref/WGAN_CNN_CNN_DISCRETE/Critic.py
chychen/nba_scrip_generation
942df59cc0426aa30b54a0e09c0f646aa8fd4f18
[ "MIT" ]
1
2020-07-09T09:00:09.000Z
2020-07-09T09:00:09.000Z
src/ref/WGAN_CNN_CNN_DISCRETE/Critic.py
chychen/bball_defensive_strategies_generation
942df59cc0426aa30b54a0e09c0f646aa8fd4f18
[ "MIT" ]
null
null
null
src/ref/WGAN_CNN_CNN_DISCRETE/Critic.py
chychen/bball_defensive_strategies_generation
942df59cc0426aa30b54a0e09c0f646aa8fd4f18
[ "MIT" ]
null
null
null
""" modeling """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import shutil import numpy as np import tensorflow as tf from tensorflow.contrib import rnn from tensorflow.contrib import layers from utils_cnn import Norm class C_MODE...
43.199288
121
0.539583
1,368
12,139
4.468567
0.195175
0.013087
0.016031
0.021757
0.331588
0.263864
0.256012
0.221659
0.202683
0.177163
0
0.011254
0.370459
12,139
280
122
43.353571
0.788668
0.134443
0
0.180412
0
0
0.01623
0
0
0
0
0
0
1
0.051546
false
0
0.056701
0.010309
0.149485
0.036082
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72988ee005f70d398f192554b5dfb6763416e1a6
13,582
py
Python
tests/attr/test_kernel_shap.py
trsvchn/captum
0435ff10a71724a788bdc54f01324f4f5c788541
[ "BSD-3-Clause" ]
3,140
2019-10-10T17:05:37.000Z
2022-03-31T17:31:01.000Z
tests/attr/test_kernel_shap.py
trsvchn/captum
0435ff10a71724a788bdc54f01324f4f5c788541
[ "BSD-3-Clause" ]
758
2019-10-11T18:01:04.000Z
2022-03-31T21:36:07.000Z
tests/attr/test_kernel_shap.py
trsvchn/captum
0435ff10a71724a788bdc54f01324f4f5c788541
[ "BSD-3-Clause" ]
345
2019-10-10T17:17:06.000Z
2022-03-30T07:31:31.000Z
#!/usr/bin/env python3 import io import unittest import unittest.mock from typing import Any, Callable, List, Tuple, Union import torch from captum._utils.typing import BaselineType, TensorOrTupleOfTensorsGeneric from captum.attr._core.kernel_shap import KernelShap from tests.helpers.basic import ( BaseTest, ...
35.931217
88
0.547121
1,684
13,582
4.177553
0.127078
0.019901
0.013646
0.072921
0.697655
0.681876
0.618053
0.592608
0.571429
0.516134
0
0.116524
0.321381
13,582
377
89
36.026525
0.64674
0.026064
0
0.452096
0
0
0.014145
0
0
0
0
0
0.098802
1
0.068862
false
0
0.032934
0
0.10479
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
729b69592bb4f1c56bbfc69279479c3149d38d7b
60,446
py
Python
py_cui/__init__.py
ne-msft/py_cui
b4938dd2c23a422496af7e32a33c2dbfcb348719
[ "BSD-3-Clause" ]
null
null
null
py_cui/__init__.py
ne-msft/py_cui
b4938dd2c23a422496af7e32a33c2dbfcb348719
[ "BSD-3-Clause" ]
null
null
null
py_cui/__init__.py
ne-msft/py_cui
b4938dd2c23a422496af7e32a33c2dbfcb348719
[ "BSD-3-Clause" ]
null
null
null
"""A python library for intuitively creating CUI/TUI interfaces with pre-built widgets. """ # # Author: Jakub Wlodek # Created: 12-Aug-2019 # Docs: https://jwlodek.github.io/py_cui-docs # License: BSD-3-Clause (New/Revised) # # Some python core library imports import sys import os import time import copy impo...
37.266338
188
0.553089
6,960
60,446
4.593822
0.093103
0.015951
0.017953
0.007131
0.455572
0.394208
0.344416
0.322209
0.305695
0.287117
0
0.004253
0.369851
60,446
1,621
189
37.289328
0.835154
0.323181
0
0.379147
0
0
0.054478
0.000741
0
0
0
0
0
1
0.090047
false
0.011058
0.031596
0
0.167457
0.00158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a124c3d481e06d142109091c80f7375d688299
6,447
py
Python
deployer/src/config_manager.py
yugabyte/docsearch-scraper
8b58d364c7721cbce892843e946834a3ccc5fcd7
[ "MIT" ]
null
null
null
deployer/src/config_manager.py
yugabyte/docsearch-scraper
8b58d364c7721cbce892843e946834a3ccc5fcd7
[ "MIT" ]
2
2021-03-31T20:20:23.000Z
2021-12-13T20:58:56.000Z
deployer/src/config_manager.py
tubone24/docsearch-scraper
07937b551be7f88322c2fe2f28f3ad4eb254e996
[ "MIT" ]
1
2020-04-01T22:01:17.000Z
2020-04-01T22:01:17.000Z
import algoliasearch from os import environ from . import algolia_helper from . import snippeter from . import emails from . import helpers from . import fetchers from .helpdesk_helper import add_note, get_conversation, \ get_emails_from_conversation, get_conversation_url_from_cuid from deployer.src.algolia_inte...
40.54717
106
0.547076
648
6,447
5.12037
0.194444
0.084388
0.046414
0.075347
0.474382
0.385775
0.361061
0.351115
0.324895
0.233876
0
0.001452
0.359237
6,447
158
107
40.803797
0.801743
0.0076
0
0.32
0
0
0.09334
0.017824
0
0
0
0
0
1
0.064
false
0.016
0.072
0
0.168
0.088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a1afeaa2791d784987902c76baf2fe264f4270
1,131
py
Python
Source/budgie/__init__.py
pylover/budgie
f453cf2fbbf440e8e2314c7fb63f101dbe048e17
[ "WTFPL" ]
3
2016-10-30T07:41:30.000Z
2016-11-07T04:55:44.000Z
Source/budgie/__init__.py
pylover/budgie
f453cf2fbbf440e8e2314c7fb63f101dbe048e17
[ "WTFPL" ]
11
2016-10-28T12:18:24.000Z
2016-10-29T15:18:56.000Z
Source/budgie/__init__.py
pylover/budgie
f453cf2fbbf440e8e2314c7fb63f101dbe048e17
[ "WTFPL" ]
null
null
null
import sys from sqlalchemy.exc import DatabaseError from . import cli from .configuration import settings, init as init_config from .observer import HelpdeskObserver, MaximumClientsReached from .models import init as init_models, metadata, engine, check_db from .smtp import SMTPConfigurationError __version__ = '0....
21.75
113
0.66313
132
1,131
5.545455
0.44697
0.028689
0.027322
0.043716
0.057377
0.057377
0
0
0
0
0
0.008353
0.259063
1,131
51
114
22.176471
0.865155
0.015031
0
0.117647
0
0.029412
0.098287
0
0
0
0
0
0
1
0.058824
false
0
0.205882
0
0.264706
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a38e5ecc9516d35d7db3206173481ed721f2aa
3,422
py
Python
locations/spiders/shopnsave.py
thismakessand/alltheplaces
b6116199844c9e88bff3a691290f07a7457470ba
[ "MIT" ]
1
2019-08-19T10:00:55.000Z
2019-08-19T10:00:55.000Z
locations/spiders/shopnsave.py
thismakessand/alltheplaces
b6116199844c9e88bff3a691290f07a7457470ba
[ "MIT" ]
null
null
null
locations/spiders/shopnsave.py
thismakessand/alltheplaces
b6116199844c9e88bff3a691290f07a7457470ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import re from locations.items import GeojsonPointItem DAY_DICT = { 'Mon': 'Mo', 'Tue': 'Tu', 'Wed': 'We', 'Thu': 'Th', 'Fri': 'Fr', 'Sat': 'Sa', 'Sun': 'Su', 'Monday': 'Mo', 'Tuesday': 'Tu', 'Wednesday': 'We', 'Thursday': 'Th', 'Th...
36.021053
133
0.564582
449
3,422
4.224944
0.300668
0.094887
0.050606
0.071692
0.454929
0.394834
0.324196
0.324196
0.283079
0.283079
0
0.016756
0.232613
3,422
94
134
36.404255
0.705255
0.006137
0
0.038961
0
0.077922
0.333922
0.114151
0
0
0
0
0
1
0.077922
false
0
0.038961
0.012987
0.25974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a3d114ee07b14005e62845551d3b0c0d260004
831
py
Python
tests/twitter_learning_journal/dao/test_os_env.py
DEV3L/twitter-learning-journal
a51d22a60a3d1249add352d8357975a7f2db585c
[ "Beerware" ]
1
2021-01-12T17:06:57.000Z
2021-01-12T17:06:57.000Z
tests/twitter_learning_journal/dao/test_os_env.py
DEV3L/twitter-learning-journal
a51d22a60a3d1249add352d8357975a7f2db585c
[ "Beerware" ]
null
null
null
tests/twitter_learning_journal/dao/test_os_env.py
DEV3L/twitter-learning-journal
a51d22a60a3d1249add352d8357975a7f2db585c
[ "Beerware" ]
1
2018-07-31T21:16:33.000Z
2018-07-31T21:16:33.000Z
from unittest.mock import patch from app.twitter_learning_journal.dao.os_env import os_environ @patch('app.twitter_learning_journal.dao.os_env.os') def test_os_environ(mock_os): expected_value = 'environment_value' mock_os.environ.__contains__.return_value = True # patch in statement mock_os.environ.__...
26.806452
74
0.776173
119
831
4.89916
0.277311
0.154374
0.102916
0.157804
0.469983
0.42024
0.291595
0.178388
0.178388
0.178388
0
0
0.141998
831
30
75
27.7
0.817672
0.021661
0
0.277778
0
0
0.108508
0.051788
0
0
0
0
0.222222
1
0.166667
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a434d4367495e97d23e862eb1e69cd74b1b481
477
py
Python
web-scraper/mongoscraper/populate.py
naveenr414/hack-umbc
f5d0fa5b6c3203d54a3c98b8a43b8028229431f8
[ "MIT" ]
null
null
null
web-scraper/mongoscraper/populate.py
naveenr414/hack-umbc
f5d0fa5b6c3203d54a3c98b8a43b8028229431f8
[ "MIT" ]
null
null
null
web-scraper/mongoscraper/populate.py
naveenr414/hack-umbc
f5d0fa5b6c3203d54a3c98b8a43b8028229431f8
[ "MIT" ]
null
null
null
import pymongo myclient = pymongo.MongoClient() mydb = myclient["mydb"] hor = mydb["HoR"] sen = mydb["Senator"] gov = mydb["Governor"] def write(fileJSON): myDoc = fileJSON if( "hor" in myDoc.values()): hor.insert_one(myDoc) elif( "senate" in myDoc.values()): sen.insert_one(myDoc) else...
18.346154
38
0.601677
65
477
4.353846
0.446154
0.095406
0.14841
0.063604
0.091873
0
0
0
0
0
0
0
0.245283
477
25
39
19.08
0.786111
0
0
0.1
0
0
0.065126
0
0
0
0
0
0
1
0.15
false
0
0.05
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a4e5a582877273a13f89ab82a67ba0dbfaef06
1,444
py
Python
tests/test_utils_obj_value.py
ZSD-tim/dayu_widgets
31c2530bdc4161d9311574d9850c2e9471e53072
[ "MIT" ]
157
2019-03-10T05:55:21.000Z
2022-03-31T09:07:00.000Z
tests/test_utils_obj_value.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
16
2019-07-15T11:30:53.000Z
2021-12-16T14:17:59.000Z
tests/test_utils_obj_value.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
56
2019-06-19T03:35:27.000Z
2022-03-22T08:07:32.000Z
""" Test get_obj_value set_obj_value has_obj_value """ import pytest from dayu_widgets import utils class _HasNameAgeObject(object): def __init__(self, name, age): super(_HasNameAgeObject, self).__init__() self.name = name self.age = age @pytest.mark.parametrize('obj', ( {'name': 'xi...
29.469388
68
0.607341
184
1,444
4.51087
0.244565
0.154217
0.079518
0.072289
0.426506
0.180723
0.180723
0.091566
0.091566
0
0
0.011807
0.237535
1,444
48
69
30.083333
0.742053
0.166205
0
0.117647
0
0
0.10119
0
0
0
0
0
0.088235
1
0.117647
false
0
0.058824
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
72a54534a71e2246424e06879611de77216a27cb
22,969
py
Python
tim_camera/oop_detection_webcam.py
Tim-orius/aidem
965a71888db72f42223777e890f4bcf88cde7fd3
[ "MIT" ]
null
null
null
tim_camera/oop_detection_webcam.py
Tim-orius/aidem
965a71888db72f42223777e890f4bcf88cde7fd3
[ "MIT" ]
null
null
null
tim_camera/oop_detection_webcam.py
Tim-orius/aidem
965a71888db72f42223777e890f4bcf88cde7fd3
[ "MIT" ]
null
null
null
""" Webcam Detection with Tensorflow calssifier and object distance calculation """ __version__ = "0.1.0" __author__ = "Tim Rosenkranz" __email__ = "tim.rosenkranz@stud.uni-frankfurt.de" __credits__ = "Special thanks to The Anh Vuong who came up with the original idea." \ "This code is also based off of ...
49.184154
221
0.530846
2,714
22,969
4.299926
0.186809
0.013196
0.009597
0.011311
0.503599
0.475321
0.453985
0.435219
0.427506
0.427506
0
0.035979
0.359876
22,969
467
222
49.184154
0.757737
0.266751
0
0.348548
0
0
0.039709
0.002163
0
0
0
0
0
1
0.045643
false
0
0.058091
0.004149
0.124481
0.033195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a66499365040683f1a28fc9b02b8c6e95b1740
4,107
py
Python
modules/zabbix_smart.py
yakumo-saki/smart_to_zabbix
04dd1debe0c831b4ec94962884543c989ad57730
[ "MIT" ]
null
null
null
modules/zabbix_smart.py
yakumo-saki/smart_to_zabbix
04dd1debe0c831b4ec94962884543c989ad57730
[ "MIT" ]
23
2021-08-30T14:59:27.000Z
2021-11-05T16:51:08.000Z
modules/zabbix_smart.py
yakumo-saki/smart_to_zabbix
04dd1debe0c831b4ec94962884543c989ad57730
[ "MIT" ]
null
null
null
import json import logging import config as cfg from modules.const import Keys, AttrKey from modules.zabbix_sender import send_to_zabbix logger = logging.getLogger(__name__) SMART_ATTR_KEY = "ata_smart_attributes" NVME_ATTR_KEY = "nvme_smart_health_information_log" def send_attribute_discovery(result): """ zab...
30.198529
90
0.70392
550
4,107
5.014545
0.189091
0.019579
0.035533
0.007252
0.45504
0.32016
0.127266
0.115301
0.099347
0.063814
0
0.001468
0.170441
4,107
135
91
30.422222
0.808042
0.09496
0
0.313953
0
0
0.157468
0.046266
0
0
0
0
0
1
0.069767
false
0
0.081395
0
0.22093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a84aac36dbbd7474150732b72b1f6e0905fbe4
2,007
py
Python
data.py
kpister/biaxial-rnn-music-composition
f6feafad0fe1066dd957293803a86d6c584d9952
[ "BSD-2-Clause" ]
null
null
null
data.py
kpister/biaxial-rnn-music-composition
f6feafad0fe1066dd957293803a86d6c584d9952
[ "BSD-2-Clause" ]
null
null
null
data.py
kpister/biaxial-rnn-music-composition
f6feafad0fe1066dd957293803a86d6c584d9952
[ "BSD-2-Clause" ]
null
null
null
import itertools from midi_to_statematrix import UPPER_BOUND, LOWER_BOUND def startSentinel(): def noteSentinel(note): position = note part_position = [position] pitchclass = (note + LOWER_BOUND) % 12 part_pitchclass = [int(i == pitchclass) for i in range(12)] return part...
26.76
89
0.636273
242
2,007
5.177686
0.297521
0.039904
0.045491
0.057462
0.329609
0.158021
0.158021
0.158021
0.158021
0.158021
0
0.024275
0.261086
2,007
74
90
27.121622
0.820634
0.078226
0
0.18
0
0
0
0
0
0
0
0
0
1
0.16
false
0
0.04
0.02
0.38
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a872cd27be148319e99d8b66913e6b97bcfc81
7,861
py
Python
ocdb/ws/controllers/datasets.py
eocdb/ocdb-server
0e28d092e8ecf5f4813878aab43de990cc5fb4ee
[ "MIT" ]
null
null
null
ocdb/ws/controllers/datasets.py
eocdb/ocdb-server
0e28d092e8ecf5f4813878aab43de990cc5fb4ee
[ "MIT" ]
null
null
null
ocdb/ws/controllers/datasets.py
eocdb/ocdb-server
0e28d092e8ecf5f4813878aab43de990cc5fb4ee
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2018 by EUMETSAT # # 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,...
38.346341
97
0.677649
975
7,861
5.281026
0.232821
0.052437
0.040396
0.02719
0.357157
0.264517
0.24898
0.235774
0.199456
0.199456
0
0.001653
0.230632
7,861
204
98
38.534314
0.849702
0.2043
0
0.231343
0
0
0.084248
0.009038
0
0
0
0.004902
0.141791
1
0.08209
false
0
0.08209
0.007463
0.223881
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a973eeb72b3616d349d7fd689d925f5f433b09
4,209
py
Python
libAnt/node.py
ayanezcasal/AntLibAYC
c266af973f4c32d4baf30130fe51a572478488ec
[ "MIT" ]
19
2018-04-14T15:29:17.000Z
2022-02-05T08:51:16.000Z
libAnt/node.py
ayanezcasal/AntLibAYC
c266af973f4c32d4baf30130fe51a572478488ec
[ "MIT" ]
5
2018-12-16T09:32:06.000Z
2021-10-20T20:20:06.000Z
libAnt/node.py
ayanezcasal/AntLibAYC
c266af973f4c32d4baf30130fe51a572478488ec
[ "MIT" ]
12
2016-08-24T09:00:44.000Z
2022-01-24T00:16:13.000Z
import threading from queue import Queue, Empty from time import sleep from libAnt.drivers.driver import Driver from libAnt.message import * class Network: def __init__(self, key: bytes = b'\x00' * 8, name: str = None): self.key = key self.name = name self.number = 0 def __str__(self...
33.943548
117
0.516512
404
4,209
5.168317
0.321782
0.038314
0.05364
0.014368
0.022031
0
0
0
0
0
0
0.005927
0.39867
4,209
123
118
34.219512
0.819044
0.029461
0
0.153061
0
0
0.000981
0
0
0
0
0.00813
0
1
0.142857
false
0.040816
0.05102
0.030612
0.27551
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a98cda239838c97dafaaefa4602ca6f04cc90c
5,168
py
Python
tests/test_seasonality.py
OliPerkins1987/Wildfire_Human_Agency_Model
49ac17c7c2ad5e03d572b6ae22c227e89a944624
[ "MIT" ]
1
2021-06-24T16:45:22.000Z
2021-06-24T16:45:22.000Z
tests/test_seasonality.py
OliPerkins1987/Wildfire_Human_Agency_Model
49ac17c7c2ad5e03d572b6ae22c227e89a944624
[ "MIT" ]
null
null
null
tests/test_seasonality.py
OliPerkins1987/Wildfire_Human_Agency_Model
49ac17c7c2ad5e03d572b6ae22c227e89a944624
[ "MIT" ]
1
2021-10-05T08:57:17.000Z
2021-10-05T08:57:17.000Z
# -*- coding: utf-8 -*- """ Created on Thu Sep 30 12:17:04 2021 @author: Oli """ import pytest import pandas as pd import numpy as np import netCDF4 as nc import os from copy import deepcopy os.chdir(os.path.dirname(os.path.realpath(__file__))) wd = os.getcwd().replace('\\', '/') exec(open("test_set...
32.917197
125
0.60952
576
5,168
5.211806
0.310764
0.031979
0.083944
0.058294
0.597602
0.553298
0.490673
0.490673
0.490673
0.466023
0
0.01998
0.225232
5,168
156
126
33.128205
0.72977
0.033475
0
0.623656
0
0
0.176729
0.022832
0
0
0
0
0.021505
1
0.021505
false
0
0.215054
0
0.236559
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72a9deefb1b6924bdaa40e4fd75c347025f116d3
572
py
Python
tests/test_client.py
patvdleer/nefit-client-python
97f2c1e454b7c0d5829e1a9c285c998980c603e3
[ "MIT" ]
11
2017-07-20T10:12:55.000Z
2020-12-25T12:40:31.000Z
tests/test_client.py
patvdleer/nefit-client-python
97f2c1e454b7c0d5829e1a9c285c998980c603e3
[ "MIT" ]
5
2018-01-01T22:11:09.000Z
2020-05-14T20:59:50.000Z
tests/test_client.py
patvdleer/nefit-client-python
97f2c1e454b7c0d5829e1a9c285c998980c603e3
[ "MIT" ]
11
2017-04-09T18:55:53.000Z
2020-04-22T14:31:12.000Z
import os import unittest from nefit import NefitClient, NefitResponseException class ClientTest(unittest.TestCase): def test_exceptions(self): client = NefitClient( os.environ.get("NEFIT_SERIAL", 123456789), os.environ.get("NEFIT_ACCESS_KEY", "abc1abc2abc3abc4"), "asdd...
26
67
0.657343
53
572
6.811321
0.622642
0.049862
0.066482
0.094183
0
0
0
0
0
0
0
0.030162
0.246504
572
21
68
27.238095
0.807425
0
0
0
0
0
0.115385
0
0
0
0
0
0.058824
1
0.058824
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ac281779d052a2842e7fce7e7f54eebca721c0
5,080
py
Python
opencivicdata/merge.py
GovHawkDC/python-opencivicdata
1679a4e5df381c777c3e6c53d7c056321662e99a
[ "BSD-3-Clause" ]
null
null
null
opencivicdata/merge.py
GovHawkDC/python-opencivicdata
1679a4e5df381c777c3e6c53d7c056321662e99a
[ "BSD-3-Clause" ]
null
null
null
opencivicdata/merge.py
GovHawkDC/python-opencivicdata
1679a4e5df381c777c3e6c53d7c056321662e99a
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.db import transaction def compute_diff(obj1, obj2): """ Given two objects compute a list of differences. Each diff dict has the following keys: field - name of the field new - the new value for the field one - value of the field in o...
34.794521
97
0.491339
536
5,080
4.524254
0.244403
0.040825
0.043299
0.019794
0.202887
0.087423
0.046186
0.026392
0
0
0
0.015227
0.405315
5,080
145
98
35.034483
0.787488
0.100787
0
0.22807
0
0
0.092023
0
0
0
0
0.006897
0.008772
1
0.035088
false
0
0.017544
0
0.070175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ac92211f4ec9ab263019e3549666f802fa242f
3,257
py
Python
src/python/pants/core/project_info/filedeps.py
silverguo/pants
141510d03fbf2b7e1a0b54f66b54088697f6fa51
[ "Apache-2.0" ]
null
null
null
src/python/pants/core/project_info/filedeps.py
silverguo/pants
141510d03fbf2b7e1a0b54f66b54088697f6fa51
[ "Apache-2.0" ]
null
null
null
src/python/pants/core/project_info/filedeps.py
silverguo/pants
141510d03fbf2b7e1a0b54f66b54088697f6fa51
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import itertools from pathlib import PurePath from typing import Iterable from pants.base.build_root import BuildRoot from pants.engine.addresses import Address, Addresses, BuildFileAddre...
30.726415
100
0.645072
357
3,257
5.764706
0.358543
0.030612
0.043732
0.021866
0.089407
0.066084
0.066084
0.044704
0
0
0
0.0034
0.277556
3,257
105
101
31.019048
0.871228
0.055266
0
0.186047
0
0
0.111726
0
0
0
0
0
0
1
0.023256
false
0
0.116279
0.011628
0.209302
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72adadcbd8e2ff6b2637e141f68ab8b5a7fcd9ed
5,887
py
Python
perfkitbenchmarker/providers/rackspace/rackspace_network.py
dq922/CloudControlVM
fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/rackspace/rackspace_network.py
dq922/CloudControlVM
fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/rackspace/rackspace_network.py
dq922/CloudControlVM
fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.477124
80
0.565993
620
5,887
5.214516
0.298387
0.040829
0.039592
0.042066
0.339004
0.32725
0.290752
0.272502
0.241571
0.201361
0
0.004639
0.340921
5,887
152
81
38.730263
0.828608
0.174282
0
0.34375
0
0
0.08958
0.030278
0
0
0
0
0
1
0.03125
false
0
0.083333
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72b5ec574a910346ea5b219b420b4689179e7f53
818
py
Python
vendor-local/src/django-piston/tests/test_project/settings.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
vendor-local/src/django-piston/tests/test_project/settings.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
9
2019-03-15T11:39:32.000Z
2019-04-30T00:59:50.000Z
vendor-local/src/django-piston/tests/test_project/settings.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
import os DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/tmp/piston.db' } } DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = '/tmp/piston.db' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessi...
24.058824
62
0.687042
81
818
6.777778
0.555556
0.165756
0.047359
0.054645
0
0
0
0
0
0
0
0.004412
0.168704
818
33
63
24.787879
0.802941
0
0
0
0
0
0.545232
0.370416
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72b62ed3f7cc27fe8cfe04f0c5e5ac430e3c0735
14,958
py
Python
src/sage/combinat/combinatorial_map.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/combinatorial_map.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/combinatorial_map.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
""" Combinatorial maps This module provides a decorator that can be used to add semantic to a Python method by marking it as implementing a *combinatorial map*, that is a map between two :class:`enumerated sets <EnumeratedSets>`:: sage: from sage.combinat.combinatorial_map import combinatorial_map sage: class...
36.043373
130
0.595935
1,659
14,958
5.212779
0.17179
0.197965
0.072271
0.080944
0.509135
0.461147
0.410384
0.392808
0.390495
0.390495
0
0.00572
0.28707
14,958
414
131
36.130435
0.805233
0.759794
0
0.114754
0
0
0.040826
0
0
0
0
0
0
1
0.180328
false
0
0.032787
0
0.459016
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72b71a7472c7bdcc100bc857b45e0a2173cf0beb
5,048
py
Python
tests/cppproj/xdressrc.py
xdress/xdress
eb7f0a02b3edf617d401939ede7f0d713a88917f
[ "BSD-2-Clause-FreeBSD" ]
88
2015-01-04T14:49:05.000Z
2021-03-25T15:32:41.000Z
tests/cppproj/xdressrc.py
scopatz/xdress
2d95c900e849f924644756d421b1f4da4624e6c9
[ "BSD-2-Clause-FreeBSD" ]
26
2015-02-03T19:09:11.000Z
2022-03-24T00:15:55.000Z
tests/cppproj/xdressrc.py
scopatz/xdress
2d95c900e849f924644756d421b1f4da4624e6c9
[ "BSD-2-Clause-FreeBSD" ]
25
2015-01-27T18:25:15.000Z
2022-03-24T00:10:18.000Z
import os from xdress.utils import apiname package = 'cppproj' packagedir = 'cppproj' includes = ['src'] plugins = ('xdress.autoall', 'xdress.pep8names', 'xdress.cythongen', 'xdress.stlwrap', ) extra_types = 'cppproj_extra_types' # non-default value dtypes = [ ('map', 'str', 'int'), ('set', 'in...
33.210526
89
0.522187
469
5,048
5.486141
0.251599
0.069957
0.051302
0.027983
0.204042
0.141469
0.097163
0.074621
0
0
0
0.013896
0.201664
5,048
151
90
33.430464
0.624566
0.037044
0
0.153285
0
0
0.340062
0.009887
0
0
0
0.006623
0
1
0
false
0
0.014599
0
0.014599
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72b766456e6162990d0a72bfeab659fdbe69bb40
1,259
py
Python
routines/server.py
henryshunt/c-aws
6e15bb18c2243f11a129b01298cb31749033f8d4
[ "MIT" ]
null
null
null
routines/server.py
henryshunt/c-aws
6e15bb18c2243f11a129b01298cb31749033f8d4
[ "MIT" ]
null
null
null
routines/server.py
henryshunt/c-aws
6e15bb18c2243f11a129b01298cb31749033f8d4
[ "MIT" ]
null
null
null
import os import subprocess import routines.config as config import routines.helpers as helpers def get_static_info(): """ Outputs data concerning the computer in the C-AWS station """ startup_time = None data_drive_space = None camera_drive_space = None # Get system startup ...
33.131579
74
0.629071
155
1,259
4.864516
0.341935
0.092838
0.084881
0.06366
0.372679
0.241379
0.119363
0
0
0
0
0.002198
0.277204
1,259
38
75
33.131579
0.826374
0.094519
0
0.076923
0
0
0.010949
0
0
0
0
0
0
1
0.038462
false
0.038462
0.153846
0
0.192308
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72b93e836d4145542223f40d01a9abd8ec9065ef
654
py
Python
DQM/DTMonitorModule/python/dtChamberEfficiencyHI_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/DTMonitorModule/python/dtChamberEfficiencyHI_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQM/DTMonitorModule/python/dtChamberEfficiencyHI_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms from RecoMuon.TrackingTools.MuonServiceProxy_cff import MuonServiceProxy dtEfficiencyMonitor = cms.EDAnalyzer("DTChamberEfficiency", MuonServiceProxy, debug = cms.untracked.bool(True), TrackCollection = cms.InputTag("standAloneMuons"), theMaxChi2 = cms.do...
32.7
73
0.717125
63
654
7.428571
0.603175
0.117521
0.102564
0
0
0
0
0
0
0
0
0.016334
0.157492
654
19
74
34.421053
0.833031
0
0
0
0
0
0.105666
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ba794e4ffc0f8c96701df9930a1aeef6a247aa
3,075
py
Python
test.py
jasonivey/scripts
09f9702e5ce62abbb7699aae16b45b33711fe856
[ "MIT" ]
null
null
null
test.py
jasonivey/scripts
09f9702e5ce62abbb7699aae16b45b33711fe856
[ "MIT" ]
null
null
null
test.py
jasonivey/scripts
09f9702e5ce62abbb7699aae16b45b33711fe856
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # vim:softtabstop=4:ts=4:sw=4:expandtab:tw=120 from ansimarkup import AnsiMarkup, parse import csv import datetime import operator import os from pathlib import Path import re import sys import traceback _VERBOSE = False user_tags = { 'error' : parse('<bold><red>'), 'nam...
35.755814
103
0.666016
442
3,075
4.400452
0.316742
0.027764
0.026735
0.026735
0.275578
0.162468
0.112082
0.112082
0.112082
0.112082
0
0.012058
0.190894
3,075
85
104
36.176471
0.769695
0.03122
0
0.058824
0
0
0.143895
0.047388
0
0
0
0
0.029412
1
0.161765
false
0
0.132353
0.058824
0.426471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ba9085ddab97bd04e95141330b44b2e8f9e59c
625
py
Python
RDyn-master/rdyn/test/rdyn_test.py
nogrady/dynamo
4a94453c810cb6cd0eb976c6db9e379cfb2e1f3b
[ "MIT" ]
12
2020-02-05T10:24:54.000Z
2022-02-24T02:26:00.000Z
RDyn-master/rdyn/test/rdyn_test.py
nogrady/dynamo
4a94453c810cb6cd0eb976c6db9e379cfb2e1f3b
[ "MIT" ]
4
2020-12-03T04:24:24.000Z
2021-09-18T13:14:50.000Z
RDyn-master/rdyn/test/rdyn_test.py
nogrady/dynamo
4a94453c810cb6cd0eb976c6db9e379cfb2e1f3b
[ "MIT" ]
6
2019-07-30T12:55:44.000Z
2021-09-05T06:26:18.000Z
import unittest import shutil from rdyn.alg.RDyn_v2 import RDynV2 class RDynTestCase(unittest.TestCase): def test_rdyn_simplified(self): print("1") rdb = RDynV2(size=500, iterations=100) rdb.execute(simplified=True) print("2") rdb = RDynV2(size=500, iterations=100, max_ev...
24.038462
99
0.6384
83
625
4.626506
0.493976
0.070313
0.101563
0.125
0.377604
0.226563
0
0
0
0
0
0.070833
0.232
625
25
100
25
0.729167
0
0
0.111111
0
0
0.0352
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.277778
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72bb20592ab5dcb9752888e9d174ab8e1560ff6a
1,436
py
Python
recognition/datasets/build.py
Jung-Jun-Uk/UNPG
a6f9c1731a68fc035eb8fe8198f5a5c643825a5b
[ "Apache-2.0" ]
7
2022-03-15T13:09:05.000Z
2022-03-31T04:11:19.000Z
recognition/datasets/build.py
Jung-Jun-Uk/UNPG
a6f9c1731a68fc035eb8fe8198f5a5c643825a5b
[ "Apache-2.0" ]
1
2022-03-31T02:03:05.000Z
2022-03-31T11:18:02.000Z
recognition/datasets/build.py
Jung-Jun-Uk/UNPG
a6f9c1731a68fc035eb8fe8198f5a5c643825a5b
[ "Apache-2.0" ]
null
null
null
import os from .kface import KFace from .ms1m import MS1M from .bin_datasets import BIN from .ijb import IJB def build_datasets(data_cfg, batch_size, cuda, workers, mode, rank=-1): assert mode in ['train', 'test'] cfg = data_cfg[mode] if cfg['dataset'] == 'kface': dataset =...
46.322581
112
0.559192
186
1,436
4.145161
0.268817
0.070039
0.101167
0.155642
0.290532
0.259403
0.155642
0
0
0
0
0.004931
0.293872
1,436
30
113
47.866667
0.755424
0
0
0
0
0
0.132312
0
0
0
0
0
0.04
1
0.04
false
0
0.2
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72bb21a725c716541be205c2b5b7874c878a779b
1,316
py
Python
django_cd/notifications.py
ppinard/django-cd
1bc9304466ace12867df3b18a8ef7f204b9744b4
[ "MIT" ]
1
2021-12-22T15:18:17.000Z
2021-12-22T15:18:17.000Z
django_cd/notifications.py
ppinard/django-cd
1bc9304466ace12867df3b18a8ef7f204b9744b4
[ "MIT" ]
null
null
null
django_cd/notifications.py
ppinard/django-cd
1bc9304466ace12867df3b18a8ef7f204b9744b4
[ "MIT" ]
null
null
null
"""""" # Standard library modules. import abc # Third party modules. from django.core.mail import send_mail from django.template import Engine, Context # Local modules. from .models import RunState # Globals and constants variables. class Notification(metaclass=abc.ABCMeta): @classmethod def notify(self, ...
28
87
0.637538
144
1,316
5.638889
0.451389
0.044335
0.03202
0.046798
0
0
0
0
0
0
0
0
0.268997
1,316
46
88
28.608696
0.844075
0.071429
0
0.066667
0
0
0.067713
0.023121
0
0
0
0
0
1
0.133333
false
0
0.133333
0.033333
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72bde1ffa295f39cff6155beef6e3b3159a43bd3
536
py
Python
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 3 19:02:33 2019 @author: sercangul """ def maxConsecutiveOnes(x): # Initialize result count = 0 # Count the number of iterations to # reach x = 0. while (x!=0): # This operation reduces length ...
18.482759
42
0.544776
68
536
4.176471
0.735294
0.014085
0
0
0
0
0
0
0
0
0
0.053073
0.33209
536
29
43
18.482759
0.740223
0.429104
0
0
0
0
0.027397
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72be55bfd5b76b9d59e5532d60fbf00e392fbde4
6,744
py
Python
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
5
2021-06-13T17:04:37.000Z
2022-03-04T17:16:06.000Z
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
null
null
null
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
8
2021-03-11T18:23:47.000Z
2022-02-22T11:13:23.000Z
import numpy as np from .problem import Problem from .algorithm_genetic import GeneralEvolutionaryAlgorithm from .individual import Individual from .operators import CustomGenerator, nondominated_truncate, RandomGenerator, UniformGenerator import time class CMA_ES(GeneralEvolutionaryAlgorithm): """ Implementa...
40.626506
116
0.647539
798
6,744
5.319549
0.264411
0.033687
0.041461
0.039576
0.282686
0.182332
0.136631
0.095642
0.036278
0.036278
0
0.017936
0.264235
6,744
165
117
40.872727
0.837162
0.307088
0
0.129412
0
0
0.066048
0.01425
0
0
0
0
0
1
0.070588
false
0
0.070588
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72bf6f79bc537479ff8af423d399ec3e3244b8ce
4,988
py
Python
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ APNS Proxy Serverのクライアント """ import time import zmq import simplejson as json READ_TIMEOUT = 1500 # msec FLUSH_TIMEOUT = 5000 # msec COMMAND_ASK_ADDRESS = b'\1' COMMAND_SEND = b'\2' COMMAND_FEEDBACK = b'\3' DEVICE_TOKEN_LENGTH = 64 JSON_ALERT_KEY_SET = set(['body', 'action_loc_key', ...
30.414634
94
0.589014
573
4,988
4.965096
0.246073
0.044991
0.018981
0.016872
0.140598
0.089982
0.070299
0.070299
0.070299
0.070299
0
0.006369
0.307538
4,988
163
95
30.601227
0.817313
0.027065
0
0.125
0
0
0.103666
0
0
0
0
0
0
1
0.116667
false
0
0.025
0.008333
0.216667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c1ef9e3306b06082ecfe37e40b05472ed66d4a
1,047
py
Python
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
#Import the json library to parse JSON file to Python import json #Import list of punctuation characters from the string library from string import punctuation as p #This method checks if the given word is a profanity def is_profanity(word): #Open the JSON file words_file = open('data.json') #Parse the JSON f...
26.846154
114
0.73639
173
1,047
4.398844
0.364162
0.027595
0.018397
0
0
0
0
0
0
0
0
0.008475
0.211079
1,047
39
115
26.846154
0.912833
0.578797
0
0
0
0
0.02331
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c22519e149895de228608442ca88e10bbdc5d3
1,613
py
Python
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
25
2015-01-20T13:13:51.000Z
2021-11-05T12:52:13.000Z
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
2
2018-11-11T21:02:10.000Z
2020-04-10T09:18:52.000Z
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
14
2015-01-26T10:20:28.000Z
2021-10-31T13:05:24.000Z
from setuptools import setup import os here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() #NEWS = open(os.path.join(here, 'NEWS.txt')).read() rootdir = os.path.dirname(os.path.abspath(__file__)) exec(open(rootdir + '/cerridwen/version.py').read()) version = __VERS...
35.844444
81
0.629882
170
1,613
5.858824
0.570588
0.036145
0.026104
0.028112
0.036145
0
0
0
0
0
0
0.003953
0.215747
1,613
44
82
36.659091
0.783399
0.075635
0
0
0
0
0.476478
0.045699
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c2286c61223e879e49fc3a51d82e195787e502
4,768
py
Python
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
128
2015-12-28T01:02:30.000Z
2019-05-24T21:20:50.000Z
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
277
2015-05-03T18:48:57.000Z
2019-05-23T17:41:28.000Z
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
96
2015-08-07T18:49:50.000Z
2019-05-20T19:49:27.000Z
import datetime from abc import ABC, abstractmethod import pajbot class AccessToken(ABC): SHOULD_REFRESH_THRESHOLD = 0.9 """Fraction between 0 and 1 indicating what fraction/percentage of the specified full validity period should actually be utilized. E.g. if this is set to 0.9, the implementation will ...
32.216216
105
0.635067
592
4,768
4.890203
0.261824
0.090155
0.018998
0.034542
0.173748
0.12677
0.033851
0.033851
0.033851
0.033851
0
0.006173
0.286493
4,768
147
106
32.435374
0.844797
0.139681
0
0.260417
0
0
0.066719
0
0
0
0
0
0
1
0.125
false
0.020833
0.03125
0.041667
0.302083
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c2e94771b614f6c939030fdbb56bca1d8a8d06
1,965
py
Python
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
# Image classification using AWS Sagemaker and Linear Learner # Program set up and import libraries import numpy as np import pandas as pd import os from sagemaker import get_execution_role role = get_execution_role() bucket = 'chi-hackathon-skin-images' # Import Data import boto3 from sagemaker import get_execution...
30.703125
114
0.795929
279
1,965
5.390681
0.412186
0.031915
0.042553
0.029255
0.219415
0.110372
0.110372
0.110372
0.110372
0.110372
0
0.018151
0.102799
1,965
63
115
31.190476
0.83494
0.148092
0
0.157895
0
0
0.180397
0.084185
0
0
0
0
0
1
0
false
0
0.263158
0
0.263158
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c448e2ac75cf97f325c368c89cf5c864f7ebd6
34,227
py
Python
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # copyright 2015 Hamilton Kibbe <ham@hamiltonkib.be> and Paulo Henrique Silva # <ph.silva@gmail.com> # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
32.690544
164
0.624302
4,023
34,227
5.195377
0.097688
0.034161
0.011196
0.016363
0.507488
0.4384
0.387206
0.363667
0.313956
0.287259
0
0.01399
0.266953
34,227
1,046
165
32.721797
0.819051
0.293891
0
0.458
0
0
0.066719
0.026819
0
0
0
0.000956
0
1
0.142
false
0.008
0.008
0.022
0.248
0.002
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c7d7e3f8694c5c646ef95b15742cc54526c455
4,174
py
Python
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
null
null
null
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
1
2021-06-09T12:56:47.000Z
2021-06-11T10:49:06.000Z
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
null
null
null
import base64 import math import re from io import BytesIO import matplotlib.cm import numpy as np import torch import torch.nn from PIL import Image # Compute edge magnitudes from scipy import ndimage class RunningAverage: def __init__(self): self.avg = 0 self.count = 0 ...
28.394558
80
0.565884
594
4,174
3.880471
0.281145
0.020824
0.014317
0.013015
0.086768
0.035575
0.035575
0
0
0
0
0.047716
0.292046
4,174
146
81
28.589041
0.732318
0.081696
0
0.039216
0
0
0.008717
0.005993
0
0
0
0
0
1
0.147059
false
0
0.098039
0.029412
0.372549
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c85d886bda8e81edae28edb917d772be6187cc
8,439
py
Python
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
"""In programming, a factory is a function that returns an object. Functions are easy to understand because they have clear inputs and outputs. Most gdsfactory functions take some inputs and return a Component object. Some of these inputs parameters are also functions. - Component: Object with. - name. - refe...
25.041543
100
0.670103
958
8,439
5.824635
0.298539
0.027599
0.014337
0.022581
0.100179
0.063978
0.036022
0.016487
0
0
0
0.008868
0.211636
8,439
336
101
25.116071
0.829851
0.221353
0
0.152074
0
0
0.171081
0.010471
0
0
0
0
0.004608
1
0.02765
false
0.004608
0.069124
0.009217
0.336406
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72caabf05592563e94088a4e1c8a8ae64828efbb
3,253
py
Python
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2021-02-23T21:53:30.000Z
2021-02-23T21:53:30.000Z
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2020-11-13T19:08:27.000Z
2020-11-13T19:08:27.000Z
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2021-03-04T10:17:01.000Z
2021-03-04T10:17:01.000Z
import pickle import numpy as np INPUT_FILENAME = 'NP_WEIGHTS.pck' PRECISION = 100 # Open weights fc1_k, fc1_b, fc2_k, fc2_b = pickle.load( open(INPUT_FILENAME, 'rb')) # Round them fc1_k, fc1_b, fc2_k, fc2_b = fc1_k*PRECISION//1, fc1_b*PRECISION//1, fc2_k*PRECISION//1, fc2_b*PRECISION*PRECISION//1 fc1_k, fc1_b, f...
27.567797
117
0.619428
574
3,253
3.30662
0.167247
0.036881
0.03372
0.021075
0.660695
0.584299
0.584299
0.584299
0.534773
0.5
0
0.031622
0.173686
3,253
117
118
27.803419
0.674479
0.165078
0
0.375
0
0
0.161085
0.023525
0
0
0
0
0
1
0.0625
false
0
0.03125
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72cb0ad23b1774315b100a3169e33454e096362a
346
py
Python
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
import cv2 import numpy as np import random img = cv2.imread('../../Assets/Images/flower-white.jpeg', 1) imgInfo = img.shape height = imgInfo[0] width = imgInfo[1] cv2.imshow('img', img) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) imgG = cv2.GaussianBlur(gray, (3, 3), 0) dst = cv2.Canny(img, 50, 50) cv2.imshow(...
17.3
60
0.687861
57
346
4.157895
0.54386
0.050633
0
0
0
0
0
0
0
0
0
0.070234
0.135838
346
20
61
17.3
0.722408
0
0
0
0
0
0.124277
0.106936
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72cb9ae8cd277faadce0f3f6be82d9d90c087279
7,767
py
Python
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
1
2021-09-01T00:34:17.000Z
2021-09-01T00:34:17.000Z
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
"""Detection model trainer. This file provides a generic training method to train a DetectionModel. """ import datetime import os import tensorflow as tf import time from avod.builders import optimizer_builder from avod.core import trainer_utils from avod.core import summary_utils slim = tf.contrib.slim def train(m...
35.62844
87
0.643234
904
7,767
5.225664
0.21792
0.038103
0.050381
0.020322
0.255292
0.217189
0.210627
0.202371
0.202371
0.202371
0
0.0081
0.26883
7,767
218
88
35.62844
0.823737
0.15862
0
0.231343
0
0
0.04705
0.009913
0
0
0
0
0
1
0.007463
false
0
0.052239
0
0.059701
0.037313
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72cbf3d35b93e0b877b0f490045834b6cee53f3c
1,237
py
Python
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ class HMACKey(models.Model): """ The default HMACKey model that can auto generate a key/secret for HMAC Auth via a signal """ def generate_key(): ...
30.925
73
0.673403
157
1,237
5.095541
0.541401
0.0375
0.0275
0.045
0.0725
0.0725
0
0
0
0
0
0.009504
0.234438
1,237
39
74
31.717949
0.835269
0.173808
0
0
0
0
0.071502
0.028601
0
0
0
0
0
1
0.08
false
0
0.2
0.04
0.64
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72cc196deafcaa7796f8d6ee97d9294d3efde7f3
6,222
py
Python
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
null
null
null
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
2
2021-02-10T22:44:36.000Z
2021-04-09T22:36:41.000Z
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
1
2021-08-24T21:55:34.000Z
2021-08-24T21:55:34.000Z
import os from tempfile import NamedTemporaryFile import boto3 from moto import mock_s3 import pandas as pd import pandavro as pdx import pickle import pytest @pytest.fixture(autouse=True, scope='session') def aws_credentials(): """ Sets AWS credentials to invalid values. Applied to all test functions and ...
31.907692
77
0.635969
868
6,222
4.381336
0.172811
0.056797
0.047331
0.050486
0.531948
0.505916
0.472259
0.424139
0.424139
0.424139
0
0.013031
0.235294
6,222
194
78
32.072165
0.786255
0.128576
0
0.373134
0
0
0.116152
0.018261
0
0
0
0
0
1
0.067164
false
0
0.059701
0
0.156716
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72cfd36241688b520b69fa546395cf4b9423fe79
779
py
Python
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
1
2021-12-12T12:17:11.000Z
2021-12-12T12:17:11.000Z
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
null
null
null
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np def areaFinder(contours): areas = [] for c in contours: a =cv.contourArea(c) areas.append(a) return areas def sortedContoursByArea(img, larger_to_smaller=True): edges_img = cv.Canny(img, 100, 150) contours , h = cv.findContours(edges_img, cv.RETR_...
35.409091
88
0.724005
109
779
5.027523
0.46789
0.153285
0.082117
0.113139
0.153285
0.153285
0
0
0
0
0
0.019939
0.16303
779
22
89
35.409091
0.820552
0.03466
0
0
0
0
0.037284
0.033289
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.285714
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72cfd74acaa21b51c8cdcd979a394eceb3c1b59d
1,813
py
Python
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
468
2019-07-03T02:43:52.000Z
2022-03-30T05:51:03.000Z
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
126
2019-07-04T15:51:57.000Z
2021-07-31T13:14:40.000Z
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
117
2019-07-04T11:31:08.000Z
2022-03-18T12:21:32.000Z
"""Precision for ranking.""" import numpy as np from matchzoo.engine.base_metric import ( BaseMetric, sort_and_couple, RankingMetric ) class Precision(RankingMetric): """Precision metric.""" ALIAS = 'precision' def __init__(self, k: int = 1, threshold: float = 0.): """ :class:`Preci...
30.216667
68
0.539989
226
1,813
4.137168
0.362832
0.042781
0.032086
0.053476
0.070588
0.047059
0.047059
0.047059
0
0
0
0.0266
0.336459
1,813
59
69
30.728814
0.750623
0.385549
0
0
0
0
0.10262
0.04476
0
0
0
0
0
1
0.130435
false
0
0.086957
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72d0cee317d77c14ae420378473b099449564673
4,168
py
Python
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
11
2017-08-03T15:42:19.000Z
2021-02-04T12:43:35.000Z
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
null
null
null
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
1
2021-02-04T12:43:37.000Z
2021-02-04T12:43:37.000Z
from mung.torch_ext.eval import Loss from ltprg.model.seq import DataParameter, SequenceModelNoInput, SequenceModelInputToHidden, SequenceModelAttendedInput from ltprg.model.seq import VariableLengthNLLLoss # Expects config of the form: # { # data_parameter : { # seq : [SEQUENCE PARAMETER NAME] # inp...
43.416667
120
0.676823
476
4,168
5.661765
0.189076
0.053061
0.031169
0.029685
0.35436
0.337291
0.327644
0.327644
0.299443
0.299443
0
0.000917
0.215451
4,168
95
121
43.873684
0.823242
0.25048
0
0.25
0
0
0.12012
0.015682
0
0
0
0
0
1
0.035714
false
0
0.053571
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72d67501443e4ca7891e84e39882fcf4f2a78705
1,623
py
Python
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
from sys import exit # ------------------------------------------------------------------------------ global dev_name global game_title dev_name = "" # enter your name in the quotes! game_title = "" # enter the game title in the quotes! # ------------------------------------------------------------------------------ ...
22.541667
93
0.51756
194
1,623
4.231959
0.42268
0.051157
0.026797
0
0
0
0
0
0
0
0
0.012195
0.242144
1,623
71
94
22.859155
0.655285
0.390018
0
0.097561
0
0
0.174538
0
0
0
0
0
0
1
0.097561
false
0
0.02439
0
0.121951
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72d812548fd737a5e6c2dd14c16ac5901a2c0669
1,018
py
Python
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
null
null
null
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
1
2021-09-01T20:10:29.000Z
2021-09-01T20:10:29.000Z
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
null
null
null
import os, zipfile # Zip files. def zipfiles(directory): # File extension to zip. #ext = ('.gdb', '.csv') ext = ('.gdb') # Iterate over all files and check for desired extentions for zipping. for file in os.listdir(directory): if file.endswith(ext): #: Zip it. ...
33.933333
109
0.570727
131
1,018
4.221374
0.458015
0.086799
0.108499
0.151899
0
0
0
0
0
0
0
0.009818
0.299607
1,018
29
110
35.103448
0.765778
0.130648
0
0
0
0
0.076223
0.037543
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72dca5ec94eec75c7728a1bea9a137060f5e6849
5,097
py
Python
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
1
2022-02-24T08:39:26.000Z
2022-02-24T08:39:26.000Z
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding 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...
33.754967
88
0.679419
707
5,097
4.649222
0.261669
0.049285
0.043505
0.056891
0.404624
0.378765
0.368421
0.350776
0.332522
0.310009
0
0.011157
0.191093
5,097
150
89
33.98
0.786078
0.111634
0
0.07619
0
0
0.267612
0.10988
0
0
0
0
0.095238
1
0.047619
false
0
0.085714
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72dd8b3d7047f515b38a96161e263e0136b29c7e
3,419
py
Python
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
""" 例子为MNIST,对手写图片进行分类。 神经网络hello world。 """ import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) # 封装网络用到的API def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf....
24.956204
74
0.563908
495
3,419
3.652525
0.262626
0.044801
0.024889
0.028761
0.181416
0.106748
0.106748
0.08573
0.08573
0.08573
0
0.071076
0.288096
3,419
136
75
25.139706
0.671734
0.157356
0
0.142857
0
0
0.019473
0
0
0
0
0
0
1
0.063492
false
0
0.047619
0.031746
0.174603
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72df31fd0b80ac5547d308a5a1ccd1a315222eb8
7,607
py
Python
Camvid/CamVid_utlis.py
Water2style/FCN-pytorch-CanRun
b2994f98930580cd2c32f58d19f94becb68a3ccb
[ "MIT" ]
7
2019-03-17T15:58:44.000Z
2022-01-28T20:06:38.000Z
Camvid/CamVid_utlis.py
cenchaojun/FCN-pytorch-CanRun
364d42590c592bed77a760b0a567ccffe93f59bb
[ "MIT" ]
null
null
null
Camvid/CamVid_utlis.py
cenchaojun/FCN-pytorch-CanRun
364d42590c592bed77a760b0a567ccffe93f59bb
[ "MIT" ]
1
2019-11-04T06:42:05.000Z
2019-11-04T06:42:05.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from matplotlib import pyplot as plt import matplotlib.image as mpimg import numpy as np import scipy.misc import random import os import imageio ############################# # global variables # ############################# root_dir = "/ho...
40.897849
102
0.574471
927
7,607
4.581446
0.389428
0.021191
0.03061
0.019779
0.151401
0.136567
0.08971
0.059336
0.059336
0.059336
0
0.029423
0.285132
7,607
186
103
40.897849
0.751563
0.384909
0
0.154639
0
0
0.06257
0.00668
0
0
0
0
0
1
0.030928
false
0
0.082474
0
0.113402
0.082474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72dfdaa4454ede71b658a424efe5fbeaae467461
804
py
Python
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
1
2021-04-23T11:37:01.000Z
2021-04-23T11:37:01.000Z
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
null
null
null
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import websocket import time try: import thread except ImportError: import _thread as thread runs = 100 def on_message(ws, message): print(message) def on_error(ws, error): print(error) def on_close(ws): print("### closed ###") def on_open(ws): ...
18.697674
104
0.589552
104
804
4.326923
0.451923
0.044444
0.04
0
0
0
0
0
0
0
0
0.015679
0.28607
804
42
105
19.142857
0.768293
0.024876
0
0
0
0
0.089069
0
0
0
0
0
0
1
0.178571
false
0
0.178571
0
0.357143
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
72e01bf0a4210399b76b4de5d871a56ed311bc12
3,915
py
Python
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
2
2021-08-03T13:05:55.000Z
2021-08-25T15:03:24.000Z
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
null
null
null
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
null
null
null
# Dialogs for setting filter parameters. from PyQt5.QtWidgets import QLabel, QGridLayout, QPushButton, \ QLineEdit, QVBoxLayout, QHBoxLayout, QDialog, QComboBox, QWidget from PyQt5.QtCore import pyqtSignal class FilterDialog(QDialog): ''' Dialog for choosing filter types. ''' def __init__(self, default, parent ...
24.778481
72
0.678927
490
3,915
5.385714
0.297959
0.041682
0.022736
0.024252
0.153088
0.090944
0.058355
0.039409
0
0
0
0.006001
0.191315
3,915
157
73
24.936306
0.827543
0.347126
0
0.225
0
0
0.010081
0
0
0
0
0
0
1
0.075
false
0
0.025
0
0.1625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e01bffe818f26ef544964b5648f4372f9a04d4
813
py
Python
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
41
2019-06-07T17:36:10.000Z
2021-11-16T06:26:16.000Z
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
316
2021-03-19T14:53:31.000Z
2022-03-27T03:36:51.000Z
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
11
2019-06-06T01:19:08.000Z
2020-07-23T07:34:56.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy from .build import build, make_path from parlai.utils.misc import warn_once from parlai.core.teachers import...
30.111111
79
0.702337
108
813
5.148148
0.611111
0.03777
0
0
0
0
0
0
0
0
0
0.003044
0.191882
813
26
80
31.269231
0.843227
0.233702
0
0
0
0
0.174475
0.045234
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e12151f37d1939bde729526720c6ed8432a926
4,345
py
Python
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 14 10:37:04 2021 @author: martin urbanec """ #calculates trajectory of small mass positioned close to L4 Lagrange point #creates gif as output import math import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation, PillowWriter ...
22.630208
161
0.595397
924
4,345
2.779221
0.257576
0.030374
0.017134
0.021417
0.190421
0.101636
0.083723
0.066978
0.053738
0.053738
0
0.104114
0.177675
4,345
191
162
22.748691
0.61461
0.272957
0
0.06422
0
0
0.011513
0
0
0
0
0
0
1
0.045872
false
0
0.036697
0
0.110092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e1bd59d28fcd4bceaa6c1453fe80d65e9ccc96
5,078
py
Python
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
from __future__ import unicode_literals import json from .common import InfoExtractor from ..utils import ( ExtractorError, float_or_none, sanitized_Request, ) class AzubuIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?azubu\.tv/[^/]+#!/play/(?P<id>\d+)' _TESTS = [ { 'ur...
36.797101
200
0.551398
505
5,078
5.382178
0.362376
0.018028
0.022075
0.020603
0.185798
0.135394
0.049301
0.049301
0.022075
0
0
0.06883
0.29618
5,078
137
201
37.065693
0.691662
0
0
0.136752
0
0.025641
0.337141
0.086648
0
0
0
0
0
1
0.017094
false
0
0.034188
0
0.119658
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e2f4f20411bdef4f641e8d7563731afc8c78a7
8,157
py
Python
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
# (c) Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. from __future__ import absolute_import, division, print_function import sys from os.path import join, ...
32.891129
79
0.60868
1,102
8,157
4.35118
0.244102
0.039416
0.035037
0.01585
0.161001
0.111783
0.074661
0.055474
0.044213
0.027112
0
0.001891
0.286993
8,157
247
80
33.024292
0.822558
0.301581
0
0.117647
0
0
0.239803
0.017116
0
0
0
0.008097
0
1
0.066176
false
0
0.073529
0
0.154412
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e3326bd28b6a407fd1315276c6cbaaa56add9a
494
py
Python
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
19
2021-01-18T13:51:08.000Z
2022-03-05T07:32:26.000Z
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
2
2021-02-05T16:09:44.000Z
2021-06-16T18:56:47.000Z
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
1
2021-04-29T20:26:55.000Z
2021-04-29T20:26:55.000Z
#!/bin/env python3 from transformers import TFBertForTokenClassification from data_preparation.data_preparation_pos import MBERTTokenizer as MBERT_Tokenizer_pos import sys if __name__ == "__main__": if len(sys.argv) > 1: modelname = sys.argv[1] else: modelname = "ltgoslo/norbert" model = T...
32.933333
87
0.769231
58
494
6.206897
0.586207
0.177778
0.094444
0
0
0
0
0
0
0
0
0.007177
0.153846
494
14
88
35.285714
0.854067
0.034413
0
0
0
0
0.048319
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e3f9ddf2ff488e4523f7cf3d57f420ea39a9f3
6,992
py
Python
mlmodels/model_tch/nbeats/model.py
gitter-badger/mlmodels
f08cc9b6ec202d4ad25ecdda2f44487da387569d
[ "MIT" ]
1
2019-12-10T06:38:08.000Z
2019-12-10T06:38:08.000Z
mlmodels/model_tch/nbeats/model.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
mlmodels/model_tch/nbeats/model.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn from torch.nn import functional as F def seasonality_model(thetas, t, device): p = thetas.size()[-1] assert p < 10, 'thetas_dim is too big.' p1, p2 = (p // 2, p // 2) if p % 2 == 0 else (p // 2, p // 2 + 1) s1 = torch.tensor([np.cos(2 * np.pi * i * ...
39.502825
119
0.635441
923
6,992
4.547129
0.138678
0.076721
0.036693
0.053371
0.433167
0.297832
0.239695
0.228258
0.228258
0.203479
0
0.011523
0.255292
6,992
176
120
39.727273
0.794507
0.017305
0
0.169014
0
0
0.05609
0.032925
0
0
0
0
0.014085
1
0.112676
false
0
0.028169
0
0.288732
0.021127
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e5fa5123e3b4ee554b59dbd26a061b553bcda4
2,916
py
Python
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
2
2022-01-03T07:28:21.000Z
2022-01-23T06:49:47.000Z
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
null
null
null
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
1
2022-01-03T07:28:22.000Z
2022-01-03T07:28:22.000Z
from math import exp from random import seed from random import random def initialize_network(n_inputs, n_hidden, n_outputs): network = list() hidden_layer = [{'weights':[random() for i in range(n_inputs + 1)]} for i in range(n_hidden)] network.append(hidden_layer) output_layer = [{'weights':[random() for i in r...
29.16
95
0.682785
448
2,916
4.341518
0.1875
0.046787
0.027764
0.045244
0.231877
0.154756
0.062725
0.062725
0.031877
0
0
0.097511
0.159465
2,916
100
96
29.16
0.696042
0
0
0.084337
0
0
0.042852
0
0
0
0
0
0
1
0.096386
false
0
0.036145
0.024096
0.192771
0.024096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e64a1d83c3d728c1a241962b109b3208e3da0f
1,993
py
Python
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
3
2016-05-08T23:45:29.000Z
2020-01-21T11:12:46.000Z
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
"""\ Copyright (c) 2009 Paul J. Davis <paul.joseph.davis@gmail.com> This file is part of hypercouch which is released uner the MIT license. """ import time import unittest import couchdb COUCHURI = "http://127.0.0.1:5984/" TESTDB = "hyper_tests" class MultiDesignTest(unittest.TestCase): def setUp(self): s...
32.145161
113
0.515805
247
1,993
4.093117
0.421053
0.034619
0.051434
0.055391
0.077151
0.0455
0
0
0
0
0
0.026393
0.315605
1,993
61
114
32.672131
0.714809
0.067235
0
0.215686
0
0
0.280151
0
0
0
0
0
0.078431
1
0.098039
false
0
0.058824
0
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e6e5211adcbf36c0973a390acaf06195e58f6f
6,739
py
Python
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
1
2021-08-16T08:33:31.000Z
2021-08-16T08:33:31.000Z
"""Torch NodeEmbedding.""" from datetime import timedelta import torch as th from ...backend import pytorch as F from ...utils import get_shared_mem_array, create_shared_mem_array _STORE = None class NodeEmbedding: # NodeEmbedding '''Class for storing node embeddings. The class is optimized for training larg...
30.355856
99
0.588811
787
6,739
4.905972
0.265565
0.030303
0.014245
0.021756
0.16317
0.135198
0.118104
0.118104
0.09583
0.09583
0
0.010137
0.326606
6,739
221
100
30.493213
0.840679
0.485384
0
0.181818
0
0
0.004289
0
0
0
0
0
0
1
0.155844
false
0
0.051948
0
0.337662
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e73a6f2f22fa84ad441b95a06268e872edfef4
2,815
py
Python
tests/sentry/web/frontend/test_create_team.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
tests/sentry/web/frontend/test_create_team.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
tests/sentry/web/frontend/test_create_team.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import OrganizationMember, OrganizationMemberTeam, Team from sentry.testutils import TestCase, PermissionTestCase class CreateTeamPermissionTest(PermissionTestCase): def setUp(self): super(CreateTeamPe...
32.356322
81
0.649023
304
2,815
5.828947
0.25
0.027652
0.053612
0.051919
0.358916
0.335214
0.288375
0.255643
0.255643
0.255643
0
0.004212
0.240853
2,815
86
82
32.732558
0.824988
0
0
0.318182
0
0
0.077087
0.015631
0
0
0
0
0.19697
1
0.121212
false
0
0.060606
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ee24f7120a48a59768912e69a446c1ca036274
10,706
py
Python
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
import unittest import os from pyxdsm.XDSM import XDSM, __file__ from numpy.distutils.exec_command import find_executable def filter_lines(lns): # Empty lines are excluded. # Leading and trailing whitespaces are removed # Comments are removed. return [ln.strip() for ln in lns if ln.strip() and not ln....
33.772871
110
0.515412
1,296
10,706
4.114198
0.204475
0.060765
0.028132
0.033758
0.306264
0.249437
0.213053
0.187172
0.171793
0.171793
0
0.014456
0.32804
10,706
316
111
33.879747
0.726717
0.084252
0
0.219409
0
0.004219
0.488878
0.027781
0
0
0
0
0.059072
1
0.033755
false
0.004219
0.033755
0.004219
0.075949
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72f6da1974a7d86bd87801e4461a62cded6e702d
1,379
py
Python
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
from PIL import Image from PIL import ImageDraw from PIL import ImageFont import sys import ST7735 # Create ST7735 LCD display class object and set pin numbers and display hardware information. disp = ST7735.ST7735( dc=24, cs=ST7735.BG_SPI_CS_BACK, rst=25, port=0, width=122, height=160, ro...
26.519231
96
0.701233
229
1,379
4.213974
0.519651
0.050777
0.033161
0.029016
0.043523
0.043523
0
0
0
0
0
0.076249
0.172589
1,379
51
97
27.039216
0.768624
0.329224
0
0.058824
0
0
0.146288
0.115721
0
0
0
0
0
1
0
false
0
0.147059
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72f7f3e6d5b462f2c1a23997a28ebc45762b8fc7
245
py
Python
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
import sqlite3 conn=sqlite3.connect('Survey.db') fo=open('insertcommand.txt') str=fo.readline() while str: str="INSERT INTO data VALUES"+str conn.execute(str) #print(str) str=fo.readline() conn.commit() conn.close() fo.close()
16.333333
37
0.689796
36
245
4.694444
0.583333
0.059172
0.153846
0
0
0
0
0
0
0
0
0.009524
0.142857
245
14
38
17.5
0.795238
0.040816
0
0.181818
0
0
0.209402
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72f91b913afb43954a794d5c35602920d06bf7b3
11,325
py
Python
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
null
null
null
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
null
null
null
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
1
2019-07-28T10:11:01.000Z
2019-07-28T10:11:01.000Z
import pytest from detectem.core import Detector, Result, ResultCollection from detectem.plugin import Plugin, PluginCollection from detectem.settings import INDICATOR_TYPE, HINT_TYPE, MAIN_ENTRY, GENERIC_TYPE from detectem.plugins.helpers import meta_generator class TestDetector(): HAR_ENTRY_1 = { 'requ...
32.449857
93
0.47947
1,117
11,325
4.696509
0.120859
0.047083
0.045368
0.048037
0.62886
0.571102
0.521159
0.516775
0.479604
0.453679
0
0.011486
0.346578
11,325
348
94
32.543103
0.697432
0
0
0.357143
0
0
0.189404
0.012804
0
0
0
0
0.055195
1
0.055195
false
0
0.016234
0
0.123377
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72fa110e2fe65a7ff391593c876372e3cc4ad11c
8,317
py
Python
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
from django.dispatch.dispatcher import receiver from django.shortcuts import get_object_or_404, redirect, render from django.contrib.auth.decorators import login_required from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, logout as aut...
39.046948
242
0.666106
990
8,317
5.464646
0.157576
0.058965
0.031608
0.024584
0.438078
0.359704
0.292052
0.201294
0.154713
0.154713
0
0.001993
0.215823
8,317
213
243
39.046948
0.827507
0.006132
0
0.360465
0
0
0.075387
0
0
0
0
0
0
1
0.075581
false
0.02907
0.075581
0.005814
0.296512
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72fc770cdae73372ef5eddce8deb799fc40b9990
3,078
py
Python
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import torch from torch import nn from kbcr.kernels import GaussianKernel from kbcr.smart import NeuralKB import pytest @pytest.mark.light def test_smart_v1(): embedding_size = 50 rs = np.random.RandomState(0) for _ in range(32): with torch.no_grad(...
30.475248
108
0.525016
394
3,078
3.819797
0.266497
0.03588
0.025914
0.043854
0.190033
0.102326
0.082392
0
0
0
0
0.018765
0.342105
3,078
100
109
30.78
0.724444
0.012021
0
0
0
0
0.016458
0
0
0
0
0
0.028986
1
0.014493
false
0
0.086957
0
0.101449
0.072464
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72fca82d10a22b6f1dadf793abb5d2d66ab69ad0
254
py
Python
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
import tkinter window=tkinter.Tk() window.title("YUN DAE HEE") window.geometry("640x400+100+100") window.resizable(True, True) image=tkinter.PhotoImage(file="opencv_frame_0.png") label=tkinter.Label(window, image=image) label.pack() window.mainloop()
19.538462
51
0.775591
37
254
5.27027
0.621622
0
0
0
0
0
0
0
0
0
0
0.054852
0.066929
254
13
52
19.538462
0.767932
0
0
0
0
0
0.172549
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72fd5b11bfca65c6e323b75581cbff1627fbd28f
1,547
py
Python
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
from django.conf import settings from termcolor import colored #: Red color constant for :func:`.ievv_colorize`. COLOR_RED = 'red' #: Blue color constant for :func:`.ievv_colorize`. COLOR_BLUE = 'blue' #: Yellow color constant for :func:`.ievv_colorize`. COLOR_YELLOW = 'yellow' #: Grey color constant for :func:`.i...
25.783333
82
0.614092
195
1,547
4.723077
0.333333
0.156352
0.129207
0.108578
0.294245
0.294245
0.294245
0.093377
0
0
0
0
0.266322
1,547
59
83
26.220339
0.811454
0.648352
0
0
0
0
0.111607
0.053571
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ff28fd3335697c188eb234e3558bfd46b20d35
12,438
py
Python
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
3
2020-04-14T14:08:11.000Z
2021-01-27T00:36:23.000Z
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
null
null
null
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
5
2020-02-15T09:54:13.000Z
2021-08-19T17:31:57.000Z
# coding: utf-8 # In[1]: import baostock as bs import pandas as pd import numpy as np import talib as ta import matplotlib.pyplot as plt import KlineService import BaoStockUtil import math import datetime from scipy import integrate from RSI import DayRSI,WeekRSI,MonthRSI,SixtyMinRSI from concurrent.futures import...
34.359116
133
0.651069
1,325
12,438
6.008302
0.258113
0.030147
0.02261
0.031654
0.224846
0.163422
0.099862
0.099862
0.068082
0.049491
0
0.027968
0.226725
12,438
361
134
34.454294
0.79975
0.087474
0
0.171548
0
0
0.082378
0.004205
0
0
0
0.00277
0
1
0.050209
false
0
0.062762
0.004184
0.16318
0.033473
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ff4801f405ee21c99ddd54c7ec445e3fe9a25d
1,558
py
Python
osnoise/conf/base.py
abousselmi/OSNoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
4
2017-11-17T13:19:32.000Z
2020-05-29T05:10:58.000Z
osnoise/conf/base.py
abousselmi/osnoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
null
null
null
osnoise/conf/base.py
abousselmi/osnoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Orange # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
26.40678
74
0.625802
200
1,558
4.79
0.505
0.06263
0.050104
0.046973
0
0
0
0
0
0
0
0.018341
0.265083
1,558
59
75
26.40678
0.818341
0.348524
0
0.243243
0
0
0.275449
0.027944
0
0
0
0
0
1
0.054054
false
0
0.027027
0.027027
0.108108
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72ff9b4fe0f33f7f62e39cedf2e3740b3be6be6c
9,360
py
Python
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
1
2022-03-12T13:43:36.000Z
2022-03-12T13:43:36.000Z
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
1
2022-03-12T04:53:08.000Z
2022-03-12T13:41:15.000Z
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
null
null
null
#도움말 import discord from discord.ext import commands from discord.ext.commands import Context from define import * class HelpCommand_Context(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="도움말", aliases=["명령어", "?"]) @CommandExecutionTime async def _Hel...
52.58427
128
0.570833
1,171
9,360
4.487617
0.181042
0.068506
0.111323
0.145576
0.669648
0.656708
0.606089
0.532445
0.351855
0.315699
0
0.002947
0.274893
9,360
178
129
52.58427
0.771328
0.000321
0
0.344828
0
0
0.232767
0.024687
0
0
0
0
0
1
0.013793
false
0
0.027586
0
0.151724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f400616765ba783e10a8ef7b8571b9c9e51facfb
778
py
Python
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
12
2020-07-18T16:55:23.000Z
2022-03-14T12:26:08.000Z
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
5
2021-05-31T22:08:51.000Z
2021-08-31T15:42:44.000Z
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
2
2021-09-24T03:02:27.000Z
2021-11-09T06:21:00.000Z
import cProfile import pstats import os # 性能分析装饰器定义 def do_cprofile(filename): """ Decorator for function profiling. """ def wrapper(func): def profiled_func(*args, **kwargs): # Flag for do profiling or not. DO_PROF = False if DO_PROF: profil...
27.785714
61
0.521851
76
778
5.25
0.513158
0.06015
0.105263
0.100251
0
0
0
0
0
0
0
0
0.394602
778
28
62
27.785714
0.847134
0.131105
0
0.1
0
0
0.010622
0
0
0
0
0
0
1
0.15
false
0
0.15
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f40395409149c4799e946dbfb2cb47f22353b013
4,531
py
Python
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
32.364286
110
0.604282
580
4,531
4.508621
0.27931
0.048184
0.042065
0.036711
0.469981
0.455067
0.416826
0.390057
0.390057
0.390057
0
0.016462
0.262635
4,531
139
111
32.597122
0.766238
0.165306
0
0.446602
0
0
0.286784
0.164794
0
0
0
0
0
1
0.058252
false
0
0.097087
0
0.223301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f404334cff69f2f2935c67baf019e6df2ad2e301
12,512
py
Python
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/DeepLearningProject
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
2
2021-09-03T11:44:31.000Z
2021-09-22T11:51:47.000Z
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
null
null
null
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
1
2020-10-20T08:06:50.000Z
2020-10-20T08:06:50.000Z
""" StarGAN v2 Copyright (c) 2020-present NAVER Corp. This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, US...
40.623377
164
0.629955
1,783
12,512
4.176108
0.174986
0.020682
0.007252
0.010878
0.326887
0.284448
0.22549
0.218775
0.197556
0.164384
0
0.016447
0.261349
12,512
308
165
40.623377
0.789223
0.120844
0
0.185185
0
0
0.029924
0
0
0
0
0
0.018519
1
0.060185
false
0
0.060185
0
0.148148
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
f404f9b14c52ee5b292f41c316a483d68139b651
2,261
py
Python
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
import random highscore = [] def not_in_range(guess_it): """This is to check that the numbers inputted by the user are in range, and will let the user know. If the numbers are in range then it passes. """ if guess_it < 1: print('I am not thinking of negative numbers!') elif guess_it > 10:...
32.3
88
0.590889
313
2,261
4.15655
0.370607
0.048424
0.029977
0.043812
0.104535
0.05073
0.05073
0.05073
0
0
0
0.011643
0.316232
2,261
69
89
32.768116
0.829884
0.259177
0
0.208333
0
0
0.249538
0
0
0
0
0
0
1
0.0625
false
0.020833
0.020833
0
0.083333
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f407eb6974ae23f62280d5ff068afc9b35ea9eeb
984
py
Python
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
8
2019-05-20T19:26:01.000Z
2019-05-26T13:02:45.000Z
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
import click APP_YAML_TEMPLATE = """runtime: python37 env_variables: ELMO_BASE_URL: '{BASE_URL}' ELMO_VENDOR: '{VENDOR}' handlers: - url: /.* script: auto secure: always redirect_http_response_code: 301 """ @click.command() @click.argument("base_url") @click.argument("vendor") def generate_app_yaml(base_u...
25.230769
76
0.704268
136
984
4.823529
0.470588
0.117378
0.068598
0.042683
0.085366
0
0
0
0
0
0
0.006258
0.188008
984
38
77
25.894737
0.814768
0.275407
0
0
0
0
0.458944
0.041056
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.086957
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f408a9fe238e011fdbd51d60d3da477f1a193548
1,713
py
Python
prepareDataSet.py
Dakewe-DS1000/LapRSNet
47e630acd3f0523ee5ac698566ff45e645681b23
[ "Apache-2.0" ]
6
2019-11-14T12:12:43.000Z
2021-07-10T13:05:14.000Z
prepareDataSet.py
Dakewe-DS1000/LapRSNet
47e630acd3f0523ee5ac698566ff45e645681b23
[ "Apache-2.0" ]
null
null
null
prepareDataSet.py
Dakewe-DS1000/LapRSNet
47e630acd3f0523ee5ac698566ff45e645681b23
[ "Apache-2.0" ]
1
2021-05-18T06:41:11.000Z
2021-05-18T06:41:11.000Z
# Prepare my dataset for Digital Pathology import os import math import cv2 import pdb rootFolder = "F:\DataBase\LymphnodePathology" trainFolder = rootFolder + "\\trainDataSet" testFolder = rootFolder + "\\testDataSet" srcTrainFilePath = trainFolder + "\\20X\\" dstTrainFilePath = trainFolder + "\\5X\\" srcTestFileP...
34.959184
124
0.694688
157
1,713
7.503185
0.388535
0.010187
0.010187
0.040747
0.295416
0.295416
0.232598
0.210526
0.137521
0.137521
0
0.01444
0.191477
1,713
48
125
35.6875
0.836101
0.023351
0
0.181818
0
0
0.104129
0.017953
0
0
0
0
0
1
0
false
0
0.121212
0
0.121212
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
f40be0fa2a141ea92705b94cef65862a1f2be235
2,619
py
Python
junn-predict/junn_predict/common/logging.py
modsim/junn
a40423b98c6a3739dd0b2ba02d546a5db91f9215
[ "BSD-2-Clause" ]
null
null
null
junn-predict/junn_predict/common/logging.py
modsim/junn
a40423b98c6a3739dd0b2ba02d546a5db91f9215
[ "BSD-2-Clause" ]
null
null
null
junn-predict/junn_predict/common/logging.py
modsim/junn
a40423b98c6a3739dd0b2ba02d546a5db91f9215
[ "BSD-2-Clause" ]
null
null
null
"""Logging helpers.""" import logging import sys import colorlog import tqdm class TqdmLoggingHandler(logging.StreamHandler): """TqdmLoggingHandler, outputs log messages to the console compatible with tqdm.""" def emit(self, record): # noqa: D102 message = self.format(record) tqdm.tqdm.writ...
25.930693
88
0.640321
331
2,619
4.858006
0.323263
0.033582
0.044776
0.069652
0.126244
0.070274
0
0
0
0
0
0.007179
0.255441
2,619
100
89
26.19
0.817436
0.233677
0
0.075472
0
0.018868
0.058542
0.013837
0
0
0
0
0
1
0.132075
false
0
0.075472
0
0.283019
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f40cae84710b69af5184821f31d2608460ea3b50
2,284
py
Python
subpartcode/ultrasonic_basic_code.py
LesterYHZ/Automated-Bridge-Inspection-Robot-Project
c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726
[ "MIT" ]
1
2020-04-15T01:17:06.000Z
2020-04-15T01:17:06.000Z
subpartcode/ultrasonic_basic_code.py
LesterYHZ/Automated-Bridge-Inspection-Robot-Project
c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726
[ "MIT" ]
null
null
null
subpartcode/ultrasonic_basic_code.py
LesterYHZ/Automated-Bridge-Inspection-Robot-Project
c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726
[ "MIT" ]
1
2020-04-13T16:45:06.000Z
2020-04-13T16:45:06.000Z
#Basic Ultrasonic sensor (HC-SR04) code import RPi.GPIO as GPIO #GPIO RPI library import time # makes sure Pi waits between steps GPIO.setmode(GPIO.BCM) #sets GPIO pin numbering #GPIO.setmode(GPIO.BOARD) #Remove warnings GPIO.setwarnings(False) #Create loop variable #loop = 1 #BCM TRIG = 23 #output pin - triggers t...
26.252874
134
0.700088
348
2,284
4.525862
0.37931
0.038095
0.026667
0.024127
0
0
0
0
0
0
0
0.039713
0.206217
2,284
86
135
26.55814
0.829013
0.533275
0
0.066667
0
0
0.069472
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f40ff4bc5a583d0c231681fd8bba22b2aa827939
3,481
py
Python
6_refin_widgets.py
jiaxinjiang2919/Refinance-Calculator
f4bb0c536b88692ef90f504fdb2d9bed85588b7c
[ "Apache-2.0" ]
14
2019-05-01T05:03:20.000Z
2022-01-08T03:18:05.000Z
6_refin_widgets.py
jiaxinjiang2919/Refinance-Calculator
f4bb0c536b88692ef90f504fdb2d9bed85588b7c
[ "Apache-2.0" ]
null
null
null
6_refin_widgets.py
jiaxinjiang2919/Refinance-Calculator
f4bb0c536b88692ef90f504fdb2d9bed85588b7c
[ "Apache-2.0" ]
8
2019-05-19T11:24:28.000Z
2022-02-16T20:19:30.000Z
# -*- coding: utf-8 -*- """ Created on Sun Mar 24 15:02:37 2019 @author: Matt Macarty """ from tkinter import * import numpy as np class LoanCalculator: def __init__(self): window = Tk() window.title("Loan Calculator") Label(window, text="Loan Amount").grid(row=1...
36.642105
118
0.578857
447
3,481
4.474273
0.263982
0.077
0.09
0.076
0.233
0.176
0.176
0.118
0.08
0
0
0.040048
0.275496
3,481
94
119
37.031915
0.752974
0.077851
0
0.034483
0
0
0.075137
0
0
0
0
0
0
1
0.051724
false
0.017241
0.034483
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4117b390cbdb79866a23c18436a60de53454ed6
19,224
py
Python
ndctl.py
davelarsen58/pmemtool
a7acb0991cbcd683f761d4b108d018d7d2d10aeb
[ "MIT" ]
3
2021-12-17T04:26:30.000Z
2022-03-30T06:32:21.000Z
ndctl.py
davelarsen58/pmemtool
a7acb0991cbcd683f761d4b108d018d7d2d10aeb
[ "MIT" ]
9
2021-12-21T17:14:58.000Z
2022-02-12T00:45:11.000Z
ndctl.py
davelarsen58/pmemtool
a7acb0991cbcd683f761d4b108d018d7d2d10aeb
[ "MIT" ]
1
2022-01-18T23:26:02.000Z
2022-01-18T23:26:02.000Z
#!/usr/bin/python3 # # PMTOOL NDCTL Python Module # Copyright (C) David P Larsen # Released under MIT License import os import json from common import message, get_linenumber, pretty_print from common import V0, V1, V2, V3, V4, V5, D0, D1, D2, D3, D4, D5 import common as c import time DEFAULT_FSTAB_FILE = "/etc/fsta...
27.700288
120
0.5567
2,408
19,224
4.240864
0.126246
0.028202
0.052879
0.03349
0.649334
0.608598
0.54906
0.511555
0.493929
0.49011
0
0.03553
0.254786
19,224
693
121
27.74026
0.6773
0.2964
0
0.543544
0
0
0.216888
0.06067
0
0
0
0
0
1
0.06006
false
0
0.027027
0
0.132132
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f41456d2af09359f55da03d5a94e013a18221147
3,935
py
Python
core/swift3.1.1Action/swift3runner.py
ianpartridge/incubator-openwhisk-runtime-swift
5aacba1435f46b13cbb0a70874afb4b53c1a78bc
[ "Apache-2.0" ]
2
2017-08-18T23:02:29.000Z
2018-01-20T22:44:33.000Z
core/swift3.1.1Action/swift3runner.py
ianpartridge/incubator-openwhisk-runtime-swift
5aacba1435f46b13cbb0a70874afb4b53c1a78bc
[ "Apache-2.0" ]
4
2017-02-03T17:01:33.000Z
2017-03-27T01:29:56.000Z
core/swift3.1.1Action/swift3runner.py
ianpartridge/incubator-openwhisk-runtime-swift
5aacba1435f46b13cbb0a70874afb4b53c1a78bc
[ "Apache-2.0" ]
4
2019-10-08T13:43:47.000Z
2021-11-10T15:36:35.000Z
"""Python proxy to run Swift action. /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Ve...
34.217391
104
0.636595
524
3,935
4.681298
0.389313
0.028536
0.022829
0.013045
0.044028
0.019568
0
0
0
0
0
0.006928
0.266328
3,935
114
105
34.517544
0.842743
0.357814
0
0.061538
0
0
0.128737
0.078119
0
0
0
0
0
1
0.076923
false
0.015385
0.107692
0
0.246154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f416d0a9f34ba173050cd0b0ffffe6b5fee17622
6,006
py
Python
yandex_market_language/models/promo.py
stefanitsky/yandex_market_language
e17595b556fc55e183cf366227b2739c5c6178dc
[ "MIT" ]
7
2020-03-28T22:35:52.000Z
2021-09-16T10:50:10.000Z
yandex_market_language/models/promo.py
stefanitsky/yandex_market_language
e17595b556fc55e183cf366227b2739c5c6178dc
[ "MIT" ]
192
2020-03-29T12:38:53.000Z
2021-09-01T14:12:07.000Z
yandex_market_language/models/promo.py
stefanitsky/yandex_market_language
e17595b556fc55e183cf366227b2739c5c6178dc
[ "MIT" ]
6
2020-06-05T09:07:02.000Z
2021-11-28T14:37:58.000Z
import typing as t from yandex_market_language import models from yandex_market_language.models.abstract import XMLElement, XMLSubElement class Promo(models.AbstractModel): """ Docs: https://yandex.ru/support/partnermarket/elements/promo-gift.html """ MAPPING = { "start-date": "start_date", ...
27.934884
78
0.580087
693
6,006
4.784993
0.108225
0.046442
0.033173
0.033776
0.354946
0.27503
0.252714
0.240953
0.202352
0.183655
0
0.000239
0.304529
6,006
214
79
28.065421
0.793632
0.059441
0
0.178344
0
0
0.085827
0
0
0
0
0
0
1
0.101911
false
0
0.019108
0.038217
0.254777
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4173149ff496f494a4326e1f0ac4dc7014b0225
3,834
py
Python
src/testCmd.py
skogsbaer/check-assignments
cda8208c10644eecfe0bb988bee61098485aa6c4
[ "BSD-3-Clause" ]
null
null
null
src/testCmd.py
skogsbaer/check-assignments
cda8208c10644eecfe0bb988bee61098485aa6c4
[ "BSD-3-Clause" ]
null
null
null
src/testCmd.py
skogsbaer/check-assignments
cda8208c10644eecfe0bb988bee61098485aa6c4
[ "BSD-3-Clause" ]
1
2021-03-26T14:00:14.000Z
2021-03-26T14:00:14.000Z
import shell from dataclasses import dataclass from utils import * from ownLogging import * from typing import * from ansi import * import re import os import testHaskell import testPython import testJava @dataclass class TestArgs: dirs: List[str] assignments: List[str] # take all if empty interactive: boo...
30.919355
103
0.594158
429
3,834
5.275058
0.30303
0.034026
0.067609
0.03977
0.144057
0.107821
0.052143
0.052143
0
0
0
0.000751
0.305164
3,834
123
104
31.170732
0.848724
0.004434
0
0.140351
0
0
0.133159
0.006291
0
0
0
0
0
1
0.061404
false
0
0.096491
0
0.236842
0.096491
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f4189a148892e47a3efe2ef760b39a4a07630dfd
14,098
py
Python
kipoi_containers/singularityhelper.py
kipoi/kipoi-containers
5978cf1563dcc1072170f28a0a956cc28aa3c406
[ "MIT" ]
null
null
null
kipoi_containers/singularityhelper.py
kipoi/kipoi-containers
5978cf1563dcc1072170f28a0a956cc28aa3c406
[ "MIT" ]
11
2021-11-30T19:30:50.000Z
2022-03-29T17:06:15.000Z
kipoi_containers/singularityhelper.py
kipoi/kipoi-containers
5978cf1563dcc1072170f28a0a956cc28aa3c406
[ "MIT" ]
null
null
null
from collections import Counter from datetime import datetime import os import requests from subprocess import Popen, PIPE from pathlib import Path import json from typing import Dict, Union, TYPE_CHECKING from kipoi_utils.external.torchvision.dataset_utils import download_url if TYPE_CHECKING: import zenodoclien...
36.148718
109
0.62633
1,589
14,098
5.319698
0.155444
0.117355
0.072874
0.024843
0.57175
0.535195
0.469301
0.415829
0.338578
0.316574
0
0.003498
0.269967
14,098
389
110
36.241645
0.81782
0.152007
0
0.453968
0
0.003175
0.251758
0.098805
0
0
0
0
0
1
0.034921
false
0.003175
0.031746
0
0.095238
0.019048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f418aa86180868641545c7ca6a350482c74458ed
1,152
py
Python
policy/_cache.py
garenchan/policy
fbd056c0474e62252d1fe986fe029cacde6845d8
[ "Apache-2.0" ]
5
2018-10-17T21:06:07.000Z
2021-12-31T01:33:09.000Z
policy/_cache.py
garenchan/policy
fbd056c0474e62252d1fe986fe029cacde6845d8
[ "Apache-2.0" ]
1
2018-09-07T09:00:41.000Z
2018-09-07T11:06:14.000Z
policy/_cache.py
garenchan/policy
fbd056c0474e62252d1fe986fe029cacde6845d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ policy._cache ~~~~~~~~~~~~~~~ Cache for policy file. """ import os import logging LOG = logging.getLogger(__name__) # Global file cache CACHE = {} def read_file(filename: str, force_reload=False): """Read a file if it has been modified. :param filename: File name ...
21.735849
76
0.631944
150
1,152
4.713333
0.46
0.076379
0.067893
0.067893
0
0
0
0
0
0
0
0.002326
0.253472
1,152
52
77
22.153846
0.819767
0.327257
0
0
0
0
0.058577
0
0
0
0
0
0
1
0.090909
false
0.045455
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f419167b819e5ee174fbe6b84ca88ef1f496b659
10,858
py
Python
contrib/opencensus-ext-django/opencensus/ext/django/middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-django/opencensus/ext/django/middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-django/opencensus/ext/django/middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus 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 or agreed to in w...
36.682432
79
0.667618
1,254
10,858
5.454545
0.191388
0.041813
0.034795
0.018275
0.351462
0.264035
0.200585
0.182749
0.125292
0.11155
0
0.001995
0.261374
10,858
295
80
36.80678
0.850873
0.193314
0
0.237838
0
0
0.075052
0.025367
0
0
0
0
0
1
0.059459
false
0
0.059459
0.005405
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f419f2c87349548809cd06192323167246871ccd
1,322
py
Python
codeblockCar/codingPage/tests.py
ICT2x01-p2-4/ICT2x01-p2-4
6249c0a807354b33db80f367344fe14cb5512840
[ "MIT" ]
null
null
null
codeblockCar/codingPage/tests.py
ICT2x01-p2-4/ICT2x01-p2-4
6249c0a807354b33db80f367344fe14cb5512840
[ "MIT" ]
24
2021-09-29T02:46:17.000Z
2021-11-06T13:32:11.000Z
codeblockCar/codingPage/tests.py
ICT2x01-p2-4/Codeblock-car
6249c0a807354b33db80f367344fe14cb5512840
[ "MIT" ]
null
null
null
from typing import Reversible from django.test import TestCase, Client from challenge.models import Challenge from codingPage.models import Command, Log from django.core.exceptions import ValidationError from django.urls import reverse class CodingPageTest(TestCase): def setUp(self) -> None: self.client = ...
38.882353
113
0.630862
162
1,322
5.080247
0.481481
0.019441
0.025516
0.029162
0.09113
0.010936
0.010936
0.010936
0
0
0
0.024267
0.251891
1,322
33
114
40.060606
0.807887
0.088502
0
0
0
0
0.100503
0.017588
0
0
0
0
0.071429
1
0.107143
false
0
0.214286
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f41b63806a18c6ea9b6ee2484bb3111d3bc16034
33,899
py
Python
app/main/views/templates.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
16
2019-11-05T21:35:49.000Z
2022-01-12T15:00:32.000Z
app/main/views/templates.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
509
2019-07-11T22:03:19.000Z
2022-03-30T15:19:26.000Z
app/main/views/templates.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
8
2020-02-21T20:19:29.000Z
2022-03-31T14:17:02.000Z
from datetime import datetime, timedelta from string import ascii_uppercase from dateutil.parser import parse from flask import abort, flash, jsonify, redirect, render_template, request, url_for from flask_babel import _ from flask_babel import lazy_gettext as _l from flask_login import current_user from markupsafe im...
36.927015
127
0.661081
3,925
33,899
5.355159
0.094522
0.056948
0.041867
0.038822
0.586565
0.514915
0.438127
0.400447
0.349018
0.28498
0
0.004404
0.236467
33,899
917
128
36.967285
0.807673
0.002625
0
0.397419
0
0.00129
0.187032
0.088325
0
0
0
0
0
1
0.04129
false
0.00129
0.024516
0.006452
0.138065
0.002581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f41c237f71cc3272ed38dd3e63b60d183d0e2aa0
7,999
py
Python
linearRegression_gradientDescent/linearRegression_gradientDescent.py
MarcelloVendruscolo/DeepLearningForImageAnalysis
0f57d63510d0f7b2729d214b3729a21a663794b5
[ "MIT" ]
null
null
null
linearRegression_gradientDescent/linearRegression_gradientDescent.py
MarcelloVendruscolo/DeepLearningForImageAnalysis
0f57d63510d0f7b2729d214b3729a21a663794b5
[ "MIT" ]
null
null
null
linearRegression_gradientDescent/linearRegression_gradientDescent.py
MarcelloVendruscolo/DeepLearningForImageAnalysis
0f57d63510d0f7b2729d214b3729a21a663794b5
[ "MIT" ]
null
null
null
import numpy as np from load_auto import load_auto import matplotlib.pyplot as plt import math def initialize_parameters(observation_dimension): # observation_dimension: number of features taken into consideration of the input # returns weights as a vector and offset as a scalar weights = np.zeros((observa...
48.478788
169
0.739717
1,042
7,999
5.446257
0.154511
0.061322
0.044405
0.022203
0.515066
0.456564
0.411806
0.332863
0.30185
0.227313
0
0.015704
0.156145
7,999
165
170
48.478788
0.825037
0.3998
0
0.202247
0
0
0.059444
0.026138
0
0
0
0
0
1
0.101124
false
0
0.044944
0.011236
0.247191
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f41df8a9a5f75d57ee4443306eca56bc32c0d2b4
3,426
py
Python
unit_tests/test_hr_calculations.py
mdholbrook/heart_rate_sentinel_server
927b59ad6d2078bd6e3491014fdebbc610d25e63
[ "MIT" ]
null
null
null
unit_tests/test_hr_calculations.py
mdholbrook/heart_rate_sentinel_server
927b59ad6d2078bd6e3491014fdebbc610d25e63
[ "MIT" ]
null
null
null
unit_tests/test_hr_calculations.py
mdholbrook/heart_rate_sentinel_server
927b59ad6d2078bd6e3491014fdebbc610d25e63
[ "MIT" ]
null
null
null
import pytest from functions.hr_calculations import * @pytest.mark.parametrize("candidate, database, expected", [ ('jack', [{'patient_id': 'jump'}, {'patient_id': 'jack'}], 1), ('jungle', [{'patient_id': 'jungle'}, {'patient_id': 'jack'}], 0), ('bo', [{'patient_id': 'james'}, {'patient_id': 'boo'}, ...
32.018692
78
0.600117
507
3,426
3.923077
0.191322
0.058824
0.044243
0.055304
0.663147
0.566114
0.450478
0.343891
0.278532
0.278532
0
0.180065
0.197607
3,426
106
79
32.320755
0.54347
0.037361
0
0.225352
0
0
0.282847
0
0
0
0
0
0.112676
1
0.112676
false
0
0.028169
0
0.140845
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f41e1e3571049d96370122828fa85b57484158ca
2,492
py
Python
selfdrive/boardd/tests/test_boardd_api.py
919bot/Tessa
9b48ff9020e8fb6992fc78271f2720fd19e01093
[ "MIT" ]
114
2020-02-24T14:18:01.000Z
2022-03-19T03:42:00.000Z
selfdrive/boardd/tests/test_boardd_api.py
919bot/Tessa
9b48ff9020e8fb6992fc78271f2720fd19e01093
[ "MIT" ]
15
2020-02-25T03:37:44.000Z
2021-09-08T01:51:15.000Z
selfdrive/boardd/tests/test_boardd_api.py
919bot/Tessa
9b48ff9020e8fb6992fc78271f2720fd19e01093
[ "MIT" ]
73
2018-12-03T19:34:42.000Z
2020-07-27T05:10:23.000Z
import random import numpy as np import selfdrive.boardd.tests.boardd_old as boardd_old import selfdrive.boardd.boardd as boardd from common.realtime import sec_since_boot from cereal import log import unittest def generate_random_can_data_list(): can_list = [] cnt = random.randint(1, 64) for j in range(cnt):...
31.948718
104
0.668539
378
2,492
4.142857
0.203704
0.07599
0.034483
0.045977
0.57599
0.501277
0.415709
0.415709
0.392082
0.392082
0
0.017051
0.199839
2,492
77
105
32.363636
0.768305
0.062199
0
0.296296
0
0
0.037355
0
0
0
0
0
0.12963
1
0.055556
false
0
0.12963
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
f41f9b1b5316c6d5a7a52a8e3e8227d25b183272
2,037
py
Python
py_types/static/parse.py
zekna/py-types
ec39da1277986f0ea44830dfb0da9d906deb13e1
[ "MIT" ]
5
2015-06-18T20:04:56.000Z
2016-03-15T15:32:44.000Z
py_types/static/parse.py
sarlianna/py-types
ec39da1277986f0ea44830dfb0da9d906deb13e1
[ "MIT" ]
1
2016-01-19T01:39:54.000Z
2016-01-27T19:17:31.000Z
py_types/static/parse.py
zekna/py-types
ec39da1277986f0ea44830dfb0da9d906deb13e1
[ "MIT" ]
null
null
null
import ast import inspect import sys import argparse from ..runtime.asserts import typecheck @typecheck def pretty_print_defs(defs: list) -> None: for d in defs: print("Function definition for {}".format(d["name"])) print("Arguments:") for arg in d["args"]: arg_type = "untyped...
29.955882
122
0.587138
242
2,037
4.772727
0.409091
0.034632
0.025974
0.039827
0
0
0
0
0
0
0
0.002837
0.307806
2,037
67
123
30.402985
0.816312
0.135002
0
0.061224
0
0
0.091168
0.014815
0
0
0
0
0.020408
1
0.081633
false
0.020408
0.102041
0
0.244898
0.163265
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0