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
d99b5ab0ec594ac30b1d197b23a5cda7c48151d5
18,065
py
Python
rasa/train.py
Amirali-Shirkh/rasa-for-botfront
36aa24ad31241c5d1a180bbe34e1c8c50da40ff7
[ "Apache-2.0" ]
null
null
null
rasa/train.py
Amirali-Shirkh/rasa-for-botfront
36aa24ad31241c5d1a180bbe34e1c8c50da40ff7
[ "Apache-2.0" ]
null
null
null
rasa/train.py
Amirali-Shirkh/rasa-for-botfront
36aa24ad31241c5d1a180bbe34e1c8c50da40ff7
[ "Apache-2.0" ]
null
null
null
import asyncio import os import tempfile from contextlib import ExitStack from typing import Text, Optional, List, Union, Dict from rasa.importers.importer import TrainingDataImporter from rasa import model from rasa.model import FingerprintComparisonResult from rasa.core.domain import Domain from rasa.utils.common im...
34.673704
128
0.654027
2,139
18,065
5.259467
0.099579
0.0432
0.053511
0.043022
0.643644
0.565956
0.532178
0.5128
0.470756
0.448444
0
0
0.275505
18,065
520
129
34.740385
0.859566
0.102131
0
0.47619
0
0
0.097136
0.003
0
0
0
0
0
1
0.008403
false
0
0.123249
0
0.173669
0.120448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d99ed7256245422c7c5dd3c60b0661e4f78183ea
35,585
py
Python
rplugin/python3/denite/ui/default.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
rplugin/python3/denite/ui/default.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
rplugin/python3/denite/ui/default.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: default.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import re import typing from denite.util import echo, error, c...
37.816153
79
0.54863
3,700
35,585
4.95
0.09973
0.058094
0.036637
0.012995
0.344253
0.19585
0.13448
0.096861
0.084084
0.06967
0
0.00293
0.328565
35,585
940
80
37.856383
0.763613
0.030547
0
0.25
0
0
0.141075
0.02771
0
0
0
0
0
1
0.057592
false
0
0.007853
0.005236
0.111257
0.001309
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d99f875863138f11af1d76f0c753c198ad6d96bd
1,329
py
Python
PyDSTool/core/context_managers.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/core/context_managers.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/core/context_managers.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
# -*- coding: utf-8 -*- """Context managers implemented for (mostly) internal use""" import contextlib import functools from io import UnsupportedOperation import os import sys __all__ = ["RedirectStdout", "RedirectStderr"] @contextlib.contextmanager def _stdchannel_redirected(stdchannel, dest_filename, mode="w")...
28.891304
109
0.68924
144
1,329
6.229167
0.479167
0.044593
0.086957
0.120401
0.086957
0
0
0
0
0
0
0.014299
0.210685
1,329
45
110
29.533333
0.840801
0.209932
0
0.071429
0
0
0.028404
0
0
0
0
0
0
1
0.035714
false
0
0.178571
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d99ff34b5f61cee604590c456f40398d7da18182
3,215
py
Python
pos_kiosk/hooks.py
Muzzy73/pos_kiosk
1ed42cfaeb15f009293b76d05dd85bd322b42f03
[ "MIT" ]
1
2022-03-05T11:42:36.000Z
2022-03-05T11:42:36.000Z
pos_kiosk/hooks.py
Muzzy73/pos_kiosk
1ed42cfaeb15f009293b76d05dd85bd322b42f03
[ "MIT" ]
null
null
null
pos_kiosk/hooks.py
Muzzy73/pos_kiosk
1ed42cfaeb15f009293b76d05dd85bd322b42f03
[ "MIT" ]
1
2022-03-05T11:42:37.000Z
2022-03-05T11:42:37.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "pos_kiosk" app_title = "Pos Kiosk" app_publisher = "9t9it" app_description = "Kiosk App" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "info@9t9it.com" app_license = "MIT" ...
22.964286
101
0.631415
384
3,215
5.010417
0.338542
0.091476
0.033784
0.035343
0.235967
0.141892
0.108628
0.085239
0.085239
0.045738
0
0.001911
0.186003
3,215
139
102
23.129496
0.733282
0.7521
0
0
0
0
0.231206
0.031206
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9a0c8935f1da040f76922b94d20a857d8b8cd7d
3,338
py
Python
easyai/model/backbone/cls/pnasnet.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
1
2020-09-05T09:18:56.000Z
2020-09-05T09:18:56.000Z
easyai/model/backbone/cls/pnasnet.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
8
2020-04-20T02:18:55.000Z
2022-03-12T00:24:50.000Z
easyai/model/backbone/cls/pnasnet.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: ''' PNASNet in PyTorch. Paper: Progressive Neural Architecture Search ''' from easyai.base_name.block_name import NormalizationType, ActivationType from easyai.base_name.backbone_name import BackboneName from easyai.model.backbone.utility.base_backbone import * fr...
35.892473
95
0.612942
386
3,338
5.012953
0.238342
0.056848
0.069767
0.037209
0.357623
0.328682
0.285271
0.234625
0.131266
0.131266
0
0.010748
0.303176
3,338
92
96
36.282609
0.821152
0.034452
0
0.117647
0
0
0.005602
0
0
0
0
0
0
1
0.102941
false
0
0.073529
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
d9a268f19adc7700cf1335eb9dfc2c8d74c5a4dc
2,208
py
Python
tools/utils.py
vahini01/electoral_rolls
82e42a6ee68844b1c8ac7899e8e7bf7a24e48d44
[ "MIT" ]
16
2018-01-22T02:03:09.000Z
2022-02-24T07:16:47.000Z
tools/utils.py
vahini01/electoral_rolls
82e42a6ee68844b1c8ac7899e8e7bf7a24e48d44
[ "MIT" ]
2
2019-02-01T02:48:17.000Z
2020-09-06T06:09:35.000Z
tools/utils.py
vahini01/electoral_rolls
82e42a6ee68844b1c8ac7899e8e7bf7a24e48d44
[ "MIT" ]
8
2018-01-22T06:48:07.000Z
2021-08-08T16:26:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 10 23:28:58 2017 @author: dhingratul """ import urllib.request import os from selenium import webdriver from selenium.webdriver.support.ui import Select from bs4 import BeautifulSoup import ssl import requests import wget from PyPDF2 import PdfFileR...
25.976471
100
0.646286
299
2,208
4.668896
0.391304
0.034384
0.032235
0.038682
0.259312
0.18553
0.098138
0.098138
0.098138
0.098138
0
0.017748
0.259964
2,208
84
101
26.285714
0.836597
0.14221
0
0.33871
0
0
0.004795
0
0
0
0
0
0
1
0.080645
false
0
0.145161
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9a3883f0ea5d080d5d4d2e05df6fadcaeb5c36e
1,956
py
Python
exp/viz_raw_manhattan.py
ellencwade/coronavirus-2020
b71e018deb8df8450b4d88ddbcd6ded6497aa8f9
[ "MIT" ]
null
null
null
exp/viz_raw_manhattan.py
ellencwade/coronavirus-2020
b71e018deb8df8450b4d88ddbcd6ded6497aa8f9
[ "MIT" ]
null
null
null
exp/viz_raw_manhattan.py
ellencwade/coronavirus-2020
b71e018deb8df8450b4d88ddbcd6ded6497aa8f9
[ "MIT" ]
null
null
null
""" Experiment summary ------------------ Treat each province/state in a country cases over time as a vector, do a simple K-Nearest Neighbor between countries. What country has the most similar trajectory to a given country? Plots similar countries """ import sys sys.path.insert(0, '..') from utils import data impor...
26.432432
74
0.658487
270
1,956
4.614815
0.485185
0.044141
0.017657
0.041734
0.089888
0.089888
0.089888
0.089888
0.089888
0.089888
0
0.019692
0.169223
1,956
74
75
26.432432
0.747077
0.169734
0
0.16
0
0
0.214109
0.080446
0
0
0
0
0
1
0
false
0
0.14
0
0.14
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9a428c026d2352f281b2b7ddd8ec8a286d37297
5,290
py
Python
rational/mxnet/rationals.py
steven-lang/rational_activations
234623dbb9360c215c430185b09e2237d5186b54
[ "MIT" ]
null
null
null
rational/mxnet/rationals.py
steven-lang/rational_activations
234623dbb9360c215c430185b09e2237d5186b54
[ "MIT" ]
null
null
null
rational/mxnet/rationals.py
steven-lang/rational_activations
234623dbb9360c215c430185b09e2237d5186b54
[ "MIT" ]
null
null
null
""" Rational Activation Functions for MXNET ======================================= This module allows you to create Rational Neural Networks using Learnable Rational activation functions with MXNET networks. """ import mxnet as mx from mxnet import initializer from mxnet.gluon import HybridBlock from rational.utils....
42.66129
99
0.56276
584
5,290
4.943493
0.304795
0.02771
0.027018
0.004157
0.085902
0.073433
0.0478
0.0478
0.0478
0.010391
0
0.006928
0.34518
5,290
123
100
43.00813
0.826501
0.413422
0
0.24
0
0
0.038147
0
0
0
0
0
0
1
0.06
false
0
0.14
0.02
0.26
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9a6621d903359b14c87695eb4a1ac8dcea18138
844
py
Python
torchflare/criterion/utils.py
Neklaustares-tPtwP/torchflare
7af6b01ef7c26f0277a041619081f6df4eb1e42c
[ "Apache-2.0" ]
1
2021-09-14T08:38:05.000Z
2021-09-14T08:38:05.000Z
torchflare/criterion/utils.py
weidao-Shi/torchflare
3c55b5a0761f2e85dd6da95767c6ec03f0f5baad
[ "Apache-2.0" ]
null
null
null
torchflare/criterion/utils.py
weidao-Shi/torchflare
3c55b5a0761f2e85dd6da95767c6ec03f0f5baad
[ "Apache-2.0" ]
1
2021-08-06T19:24:43.000Z
2021-08-06T19:24:43.000Z
"""Utils for criterion.""" import torch import torch.nn.functional as F def normalize(x, axis=-1): """Performs L2-Norm.""" num = x denom = torch.norm(x, 2, axis, keepdim=True).expand_as(x) + 1e-12 return num / denom # Source : https://github.com/earhian/Humpback-Whale-Identification-1st-/blob/master...
26.375
107
0.613744
141
844
3.64539
0.439716
0.015564
0.099222
0.054475
0.124514
0.124514
0.124514
0.124514
0.124514
0.124514
0
0.031019
0.197867
844
31
108
27.225806
0.728213
0.236967
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9a90a5af3f207f1020cbf41f94830b75e23fbc9
4,411
py
Python
readthedocs/donate/forms.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/donate/forms.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/donate/forms.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
"""Forms for RTD donations""" import logging from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from readthedocs.payments.forms import StripeModelForm, StripeResourceMixin from readthedocs.payments.utils import stripe from .models import Supporter log ...
33.416667
97
0.594423
478
4,411
5.349372
0.320084
0.038717
0.052796
0.028158
0.525616
0.509973
0.484943
0.44036
0.44036
0.397341
0
0.008729
0.298798
4,411
131
98
33.671756
0.817976
0.112446
0
0.510204
0
0
0.230052
0
0
0
0
0
0
1
0.040816
false
0
0.071429
0
0.22449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ad95f0461bd02e44c310b1381567e8524c288c
6,258
py
Python
pandas_datareaders_unofficial/datareaders/google_finance_options.py
movermeyer/pandas_datareaders_unofficial
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
18
2015-02-05T01:42:51.000Z
2020-12-27T19:24:25.000Z
pandas_datareaders_unofficial/datareaders/google_finance_options.py
movermeyer/pandas_datareaders_unofficial
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
1
2015-01-12T11:08:02.000Z
2015-01-13T09:14:47.000Z
pandas_datareaders_unofficial/datareaders/google_finance_options.py
femtotrader/pandas_datareaders
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
13
2015-09-10T19:39:51.000Z
2022-01-06T17:08:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from .base import DataReaderBase from ..tools import COL, _get_dates, to_float, to_int import pandas as pd #from pandas.tseries.frequencies import to_offset from six.moves import cStringIO as StringIO import logging import traceback import datetime import json import tok...
29.942584
115
0.527964
754
6,258
4.270557
0.324934
0.01087
0.013975
0.013043
0.198758
0.180745
0.146584
0.1
0.1
0.1
0
0.016197
0.319271
6,258
208
116
30.086538
0.739671
0.167945
0
0.281818
0
0
0.087476
0
0
0
0
0
0
1
0.072727
false
0
0.090909
0.009091
0.190909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9adb9ef68a4c2ce5de1ed13aea3230964400996
5,039
py
Python
keras_textclassification/data_preprocess/generator_preprocess.py
Vail-qin/Keras-TextClassification
8acda5ae37db2647c8ecaa70027ffc6003d2abca
[ "MIT" ]
1
2019-12-27T16:59:16.000Z
2019-12-27T16:59:16.000Z
keras_textclassification/data_preprocess/generator_preprocess.py
Yolo-Cultivate/Keras-TextClassification
183cf7b3483588bfe10d19b65124e52df5b338f8
[ "MIT" ]
null
null
null
keras_textclassification/data_preprocess/generator_preprocess.py
Yolo-Cultivate/Keras-TextClassification
183cf7b3483588bfe10d19b65124e52df5b338f8
[ "MIT" ]
1
2022-01-11T06:37:54.000Z
2022-01-11T06:37:54.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2019/11/2 21:08 # @author : Mo # @function: from keras_textclassification.data_preprocess.text_preprocess import load_json, save_json from keras_textclassification.conf.path_config import path_model_dir path_fast_text_model_vocab2index = path_model_dir + 'vocab...
36.781022
92
0.523318
646
5,039
3.773994
0.218266
0.049221
0.054143
0.076702
0.370796
0.322395
0.30886
0.248975
0.226005
0.211649
0
0.039798
0.371701
5,039
136
93
37.051471
0.730259
0.059536
0
0.219048
0
0
0.040825
0.019562
0
0
0
0
0
1
0.057143
false
0
0.038095
0
0.142857
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b0df7f5ef294a68858d836af143c289d120187
4,375
py
Python
Object_detection_image.py
hiperus0988/pyao
72c56975a3d45aa033bdf7650b5369d59240395f
[ "Apache-2.0" ]
1
2021-06-09T22:17:57.000Z
2021-06-09T22:17:57.000Z
Object_detection_image.py
hiperus0988/pyao
72c56975a3d45aa033bdf7650b5369d59240395f
[ "Apache-2.0" ]
null
null
null
Object_detection_image.py
hiperus0988/pyao
72c56975a3d45aa033bdf7650b5369d59240395f
[ "Apache-2.0" ]
null
null
null
######## Image Object Detection Using Tensorflow-trained Classifier ######### # # Author: Evan Juras # Date: 1/15/18 # Description: # This program uses a TensorFlow-trained classifier to perform object detection. # It loads the classifier uses it to perform object detection on an image. # It draws boxes and scores aro...
36.458333
122
0.779886
680
4,375
4.836765
0.377941
0.045607
0.025844
0.034965
0.082396
0.06689
0.034661
0
0
0
0
0.007451
0.141029
4,375
119
123
36.764706
0.867749
0.511314
0
0
0
0
0.083977
0.012066
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b42bca24804913cf6908775c04bc29a0bec6df
1,469
py
Python
model/contact.py
hubogeri/python_training
7a918040e4c8bae5a031134911bc8b465f322699
[ "Apache-2.0" ]
null
null
null
model/contact.py
hubogeri/python_training
7a918040e4c8bae5a031134911bc8b465f322699
[ "Apache-2.0" ]
null
null
null
model/contact.py
hubogeri/python_training
7a918040e4c8bae5a031134911bc8b465f322699
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Contact: def __init__(self, fname=None, mname=None, lname=None, nick=None, title=None, comp=None, addr=None, home=None, mobile=None, work=None, fax=None, email1=None, email2=None, email3=None, homepage=None, bday=None, bmonth=None, byear=None, aday=...
30.604167
135
0.571137
191
1,469
4.319372
0.246073
0.043636
0.019394
0.024242
0
0
0
0
0
0
0
0.009091
0.326072
1,469
47
136
31.255319
0.824242
0
0
0
0
0
0.00545
0
0
0
0
0
0
1
0.1
false
0
0.025
0.05
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b4cabd9071c90b544409b5b87e3302450b1278
11,342
py
Python
test/IECore/BasicPreset.py
ericmehl/cortex
054839cc709ce153d1bcaaefe7f340ebe641ec82
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
test/IECore/BasicPreset.py
ericmehl/cortex
054839cc709ce153d1bcaaefe7f340ebe641ec82
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
test/IECore/BasicPreset.py
ericmehl/cortex
054839cc709ce153d1bcaaefe7f340ebe641ec82
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2010-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
33.655786
107
0.677923
1,199
11,342
6.381985
0.202669
0.102196
0.059592
0.040251
0.657998
0.625457
0.58965
0.570047
0.533717
0.515682
0
0.014208
0.162229
11,342
336
108
33.755952
0.791097
0.156145
0
0.46729
0
0
0.085242
0.013213
0
0
0
0
0.182243
1
0.037383
false
0
0.028037
0
0.070093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b4da54ad6bdf7efb1efb5b210a443bc83b0db4
12,492
py
Python
rlpy/Domains/Pacman.py
imanolarrieta/RL
072a8c328652f45e053baecd640f04adf7f84b49
[ "BSD-3-Clause" ]
1
2019-12-07T13:47:43.000Z
2019-12-07T13:47:43.000Z
rlpy/Domains/Pacman.py
imanolarrieta/RL
072a8c328652f45e053baecd640f04adf7f84b49
[ "BSD-3-Clause" ]
null
null
null
rlpy/Domains/Pacman.py
imanolarrieta/RL
072a8c328652f45e053baecd640f04adf7f84b49
[ "BSD-3-Clause" ]
null
null
null
"""Pacman game domain.""" from rlpy.Tools import __rlpy_location__ from .Domain import Domain from .PacmanPackage import layout, pacman, game, ghostAgents from .PacmanPackage import graphicsDisplay import numpy as np from copy import deepcopy import os import time __copyright__ = "Copyright 2013, RLPy http://acl.mit.e...
38.795031
159
0.616394
1,559
12,492
4.815266
0.264272
0.023445
0.031171
0.022646
0.170641
0.143866
0.130944
0.116558
0.092847
0.066871
0
0.013697
0.292827
12,492
321
160
38.915888
0.836088
0.285383
0
0.21466
0
0
0.044839
0
0
0
0
0.003115
0
1
0.073298
false
0.026178
0.041885
0
0.193717
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b62ab258f0b51ef25d431f8fa66de9acd438a7
1,895
py
Python
setup.py
giggslam/python-messengerbot-sdk
4a6fadf96fe3425da9abc4726fbb84db6d84f7b5
[ "Apache-2.0" ]
23
2019-03-05T08:33:34.000Z
2021-12-13T01:52:47.000Z
setup.py
giggslam/python-messengerbot-sdk
4a6fadf96fe3425da9abc4726fbb84db6d84f7b5
[ "Apache-2.0" ]
null
null
null
setup.py
giggslam/python-messengerbot-sdk
4a6fadf96fe3425da9abc4726fbb84db6d84f7b5
[ "Apache-2.0" ]
6
2019-03-07T07:58:02.000Z
2020-12-18T10:08:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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...
30.079365
76
0.663852
238
1,895
5.168067
0.57563
0.04878
0.012195
0.026016
0
0
0
0
0
0
0
0.020175
0.215303
1,895
62
77
30.564516
0.806994
0.302902
0
0
0
0
0.343272
0.050459
0
0
0
0
0
1
0.025
false
0
0.1
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b76c6f6bd2bcb1986a9d9701e4ee097a1ff3bf
18,905
py
Python
src/transformers/models/mmbt/modeling_mmbt.py
MaximovaIrina/transformers
033c3ed95a14b58f5a657f5124bc5988e4109c9f
[ "Apache-2.0" ]
1
2022-01-12T11:39:47.000Z
2022-01-12T11:39:47.000Z
src/transformers/models/mmbt/modeling_mmbt.py
AugustVIII/transformers
185876392c0dcd4c4bb02f2750822144a3bee545
[ "Apache-2.0" ]
null
null
null
src/transformers/models/mmbt/modeling_mmbt.py
AugustVIII/transformers
185876392c0dcd4c4bb02f2750822144a3bee545
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) HuggingFace Inc. team. # # 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...
46.794554
209
0.685533
2,371
18,905
5.255588
0.169127
0.019501
0.021186
0.020544
0.351416
0.306958
0.25953
0.232084
0.172298
0.137389
0
0.004011
0.23507
18,905
403
210
46.91067
0.857686
0.139646
0
0.229167
0
0.03125
0.414009
0.024936
0
0
0
0
0
1
0.027778
false
0.003472
0.024306
0.003472
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b8347698a1fe18b6d9ec66f6bfbfa77f2567be
1,566
py
Python
using_paramiko.py
allupramodreddy/cisco_py
5488b56d9324011860b78998e694dcce6da5e3d1
[ "Apache-2.0" ]
null
null
null
using_paramiko.py
allupramodreddy/cisco_py
5488b56d9324011860b78998e694dcce6da5e3d1
[ "Apache-2.0" ]
null
null
null
using_paramiko.py
allupramodreddy/cisco_py
5488b56d9324011860b78998e694dcce6da5e3d1
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3 import paramiko,time #using as SSH Client client = paramiko.SSHClient() # check dir(client) to find available options. # auto adjust host key verification with yes or no client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # time for connecting to remote Cisco IOS """ Manually taki...
23.727273
89
0.691571
234
1,566
4.551282
0.495727
0.067606
0.04507
0.037559
0.155869
0.155869
0.093897
0.093897
0
0
0
0.026377
0.176884
1,566
66
90
23.727273
0.799845
0.17433
0
0.2
0
0
0.051893
0
0
0
0
0
0
1
0
false
0.05
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b86cc42aaff67200ff3f4f5f6d27121835fd8c
733
py
Python
old/.history/a_20201125192943.py
pscly/bisai1
e619186cec5053a8e02bd59e48fc3ad3af47d19a
[ "MulanPSL-1.0" ]
null
null
null
old/.history/a_20201125192943.py
pscly/bisai1
e619186cec5053a8e02bd59e48fc3ad3af47d19a
[ "MulanPSL-1.0" ]
null
null
null
old/.history/a_20201125192943.py
pscly/bisai1
e619186cec5053a8e02bd59e48fc3ad3af47d19a
[ "MulanPSL-1.0" ]
null
null
null
# for n in range(400,500): # i = n // 100 # j = n // 10 % 10 # k = n % 10 # if n == i ** 3 + j ** 3 + k ** 3: # print(n) # 第一道题(16) # input("请输入(第一次):") # s1 = input("请输入(第二次):") # l1 = s1.split(' ') # l2 = [] # for i in l1: # if i.isdigit(): # l2.append(int(i)) # for i in l2: # ...
13.089286
39
0.452933
121
733
2.636364
0.421488
0.050157
0.075235
0.075235
0
0
0
0
0
0
0
0.099576
0.356071
733
55
40
13.327273
0.576271
0.472033
0
0
0
0
0.019718
0
0
0
0
0
0
1
0.125
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b92da15285253454115ccfc5647355f3c2b100
345
py
Python
yzcore/templates/project_template/src/const/_job.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
6
2021-01-26T10:27:04.000Z
2022-03-19T16:13:12.000Z
yzcore/templates/project_template/src/const/_job.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
null
null
null
yzcore/templates/project_template/src/const/_job.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
2
2021-07-27T04:11:51.000Z
2022-01-06T09:36:06.000Z
#!/usr/bin/python3.6.8+ # -*- coding:utf-8 -*- """ @auth: cml @date: 2020-12-2 @desc: ... """ class JobStatus(object): PENDING = 0 # 任务等待执行 STARTED = 100 # 任务执行开始 PROCESS = 110 POLLING = 120 CALLBACK = 130 SUCCESS = 200 # 任务执行成功 RETRY = 300 # 任务重试 FAILURE = 400 # 任务执行失败 ...
15
28
0.53913
42
345
4.428571
0.97619
0
0
0
0
0
0
0
0
0
0
0.151261
0.310145
345
22
29
15.681818
0.630252
0.347826
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b95364464c7d47db46ee15f7524a804b79ea1b
10,311
py
Python
pyboleto/html.py
RenanPalmeira/pyboleto
7b12a7a2f7e92cad5f35f843ae67c397b6f7e36e
[ "BSD-3-Clause" ]
null
null
null
pyboleto/html.py
RenanPalmeira/pyboleto
7b12a7a2f7e92cad5f35f843ae67c397b6f7e36e
[ "BSD-3-Clause" ]
null
null
null
pyboleto/html.py
RenanPalmeira/pyboleto
7b12a7a2f7e92cad5f35f843ae67c397b6f7e36e
[ "BSD-3-Clause" ]
1
2019-03-20T01:01:00.000Z
2019-03-20T01:01:00.000Z
# -*- coding: utf-8 -*- """ pyboleto.html ~~~~~~~~~~~~~ Classe Responsável por fazer o output do boleto em html. :copyright: © 2012 by Artur Felipe de Sousa :license: BSD, see LICENSE for more details. """ import os import string import sys import codecs import base64 from itertools import chain...
35.926829
77
0.617011
1,194
10,311
5.156616
0.237018
0.050024
0.027611
0.043853
0.410102
0.404743
0.376969
0.337502
0.335066
0.318824
0
0.009436
0.260014
10,311
286
78
36.052448
0.797379
0.212201
0
0.291667
0
0
0.118981
0.016137
0
0
0
0.003497
0
1
0.089286
false
0
0.047619
0
0.172619
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ba3e40007f306c4c070fefef8a9b0aa2387204
363
py
Python
src/fetchWords.py
theyadev/thierry-bot
f3c72998d4c16afbca77baf4cabaf0f547d51e94
[ "MIT" ]
null
null
null
src/fetchWords.py
theyadev/thierry-bot
f3c72998d4c16afbca77baf4cabaf0f547d51e94
[ "MIT" ]
2
2022-01-20T16:36:33.000Z
2022-03-31T14:16:01.000Z
src/fetchWords.py
theyadev/thierry-bot
f3c72998d4c16afbca77baf4cabaf0f547d51e94
[ "MIT" ]
1
2022-01-28T12:14:14.000Z
2022-01-28T12:14:14.000Z
import requests words_list = requests.get("https://raw.githubusercontent.com/atebits/Words/master/Words/fr.txt").text words_list = filter(lambda x: len(x) > 4, words_list.split('\n')) path = input("Chemin d'écriture ? (words.txt) ") if path == "": path = "./words.txt" with open(path, "w", encoding="utf-8") as ...
27.923077
101
0.672176
56
363
4.285714
0.660714
0.15
0
0
0
0
0
0
0
0
0
0.006309
0.126722
363
13
102
27.923077
0.750789
0
0
0
0
0
0.32967
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
d9ba8bca5b7327bbb7e6554d0a3849c186cc4ba9
1,623
py
Python
inspiration/simplegallery/test/upload/variants/test_aws_uploader.py
Zenahr/simple-music-gallery
2cf6e81208b721a91dcbf77e047c7f77182dd194
[ "MIT" ]
1
2020-07-03T17:21:01.000Z
2020-07-03T17:21:01.000Z
simplegallery/test/upload/variants/test_aws_uploader.py
theemack/simple-photo-gallery
f5db98bca7a7443ea7a9172317811f446eff760c
[ "MIT" ]
1
2020-06-20T12:13:00.000Z
2020-06-20T15:32:03.000Z
inspiration/simplegallery/test/upload/variants/test_aws_uploader.py
Zenahr/simple-music-gallery
2cf6e81208b721a91dcbf77e047c7f77182dd194
[ "MIT" ]
null
null
null
import unittest from unittest import mock import os import subprocess from testfixtures import TempDirectory from simplegallery.upload.uploader_factory import get_uploader class AWSUploaderTestCase(unittest.TestCase): def test_no_location(self): uploader = get_uploader('aws') self.assertFalse(upl...
37.744186
103
0.646334
178
1,623
5.657303
0.337079
0.076465
0.079444
0.053625
0.405164
0.405164
0.405164
0.405164
0.405164
0.405164
0
0.007183
0.227973
1,623
42
104
38.642857
0.796488
0.078866
0
0.285714
0
0
0.167114
0.056376
0
0
0
0
0.142857
1
0.071429
false
0
0.214286
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9be3b65d403b8ba23a315dd5e1dcfb9fd542171
2,553
py
Python
tests/syncdb_signals/tests.py
mdj2/django
e71b63e280559122371d125d75a593dc2435c394
[ "BSD-3-Clause" ]
1
2017-02-08T15:13:43.000Z
2017-02-08T15:13:43.000Z
tests/syncdb_signals/tests.py
mdj2/django
e71b63e280559122371d125d75a593dc2435c394
[ "BSD-3-Clause" ]
null
null
null
tests/syncdb_signals/tests.py
mdj2/django
e71b63e280559122371d125d75a593dc2435c394
[ "BSD-3-Clause" ]
null
null
null
from django.db.models import signals from django.test import TestCase from django.core import management from django.utils import six from shared_models import models PRE_SYNCDB_ARGS = ['app', 'create_models', 'verbosity', 'interactive', 'db'] SYNCDB_DATABASE = 'default' SYNCDB_VERBOSITY = 1 SYNCDB_INTERACTIVE = Fal...
34.04
77
0.703486
328
2,553
5.277439
0.29878
0.057192
0.051993
0.02773
0.233391
0.18602
0.18602
0.139804
0.139804
0.139804
0
0.005462
0.211124
2,553
74
78
34.5
0.854022
0.236584
0
0.27907
0
0
0.044294
0
0
0
0
0
0.162791
1
0.139535
false
0
0.116279
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9be5eda54c6b03914f01c88d3b8d97dd5add586
3,625
py
Python
pytorch_lightning/plugins/environments/slurm_environment.py
gianscarpe/pytorch-lightning
261ea90822e2bf1cfa5d56171ab1f95a81d5c571
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/environments/slurm_environment.py
gianscarpe/pytorch-lightning
261ea90822e2bf1cfa5d56171ab1f95a81d5c571
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/environments/slurm_environment.py
gianscarpe/pytorch-lightning
261ea90822e2bf1cfa5d56171ab1f95a81d5c571
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
33.878505
114
0.622345
466
3,625
4.693133
0.345494
0.051212
0.034294
0.029264
0.132602
0.091449
0.060357
0.046639
0
0
0
0.011839
0.254345
3,625
106
115
34.198113
0.797262
0.285241
0
0.137931
0
0
0.163082
0.045757
0
0
0
0
0
1
0.189655
false
0
0.068966
0.086207
0.431034
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9be639438e84e867c9e53c267b847b31292fe23
928
py
Python
examples/mouse.py
ginkage/trackball-python
06439ac77935f7fd9374bd4f535822e859734729
[ "MIT" ]
22
2019-04-19T11:13:16.000Z
2022-03-04T15:04:43.000Z
examples/mouse.py
ginkage/trackball-python
06439ac77935f7fd9374bd4f535822e859734729
[ "MIT" ]
7
2019-06-17T13:48:41.000Z
2022-02-07T14:24:00.000Z
examples/mouse.py
ginkage/trackball-python
06439ac77935f7fd9374bd4f535822e859734729
[ "MIT" ]
6
2019-04-24T00:58:29.000Z
2022-01-26T15:39:10.000Z
#!/usr/bin/env python import time import os import math from trackball import TrackBall print("""Trackball: Mouse Use the trackball as a mouse in Raspbian, with right-click when the switch is pressed. Press Ctrl+C to exit! """) trackball = TrackBall(interrupt_pin=4) trackball.set_rgbw(0, 0, 0, 0) # Check for xte (...
23.2
78
0.635776
145
928
4.041379
0.544828
0.010239
0.010239
0
0
0
0
0
0
0
0
0.021368
0.243534
928
39
79
23.794872
0.81339
0.09806
0
0.074074
0
0
0.27458
0
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9be866c44b7b03225042353a7fcf648c1ce10ab
11,294
py
Python
garaged/src/garage/tf/regressors/gaussian_mlp_regressor_model.py
artberryx/LSD
99ee081de2502b4d13c140b474f772db8a5f92fe
[ "MIT" ]
7
2022-02-01T03:02:24.000Z
2022-02-10T12:54:05.000Z
garaged/src/garage/tf/regressors/gaussian_mlp_regressor_model.py
artberryx/LSD
99ee081de2502b4d13c140b474f772db8a5f92fe
[ "MIT" ]
null
null
null
garaged/src/garage/tf/regressors/gaussian_mlp_regressor_model.py
artberryx/LSD
99ee081de2502b4d13c140b474f772db8a5f92fe
[ "MIT" ]
2
2022-02-03T03:33:25.000Z
2022-02-10T12:54:07.000Z
"""GaussianMLPRegressorModel.""" import numpy as np import tensorflow as tf import tensorflow_probability as tfp from garage.experiment import deterministic from garage.tf.models import GaussianMLPModel class GaussianMLPRegressorModel(GaussianMLPModel): """GaussianMLPRegressor based on garage.tf.models.Model cla...
44.81746
79
0.611741
1,340
11,294
4.86791
0.158209
0.01533
0.016863
0.016097
0.516787
0.37866
0.322858
0.311207
0.288518
0.237314
0
0.005616
0.322029
11,294
251
80
44.996016
0.846284
0.387108
0
0.167939
0
0
0.028767
0.003887
0
0
0
0
0
1
0.030534
false
0
0.038168
0
0.099237
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9becf802ca0765623e481aef0b8fd051c0096e5
3,594
py
Python
test.py
kim-sunghoon/DiracDeltaNet
7bcc0575f28715d9c7f737f8a239718320f9c05b
[ "Apache-2.0" ]
null
null
null
test.py
kim-sunghoon/DiracDeltaNet
7bcc0575f28715d9c7f737f8a239718320f9c05b
[ "Apache-2.0" ]
null
null
null
test.py
kim-sunghoon/DiracDeltaNet
7bcc0575f28715d9c7f737f8a239718320f9c05b
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import torchvision.datasets as datasets import os import argparse from torch.autograd import Variable from e...
28.983871
115
0.645242
461
3,594
4.91974
0.357918
0.02425
0.019841
0.017637
0.022928
0.022928
0
0
0
0
0
0.034021
0.231219
3,594
123
116
29.219512
0.786826
0.023929
0
0.023256
0
0
0.072846
0
0
0
0
0
0
1
0.023256
false
0
0.186047
0
0.232558
0.05814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c028ee1a5ced657b4755383e247cbb2fed35a8
416
py
Python
paccmann_chemistry/utils/hyperparams.py
PaccMann/paccmann_chemistry
f7e9735aafb936f837c38b5055c654be178f385f
[ "MIT" ]
9
2019-11-06T10:39:15.000Z
2022-01-09T11:08:52.000Z
paccmann_chemistry/utils/hyperparams.py
PaccMann/paccmann_chemistry
f7e9735aafb936f837c38b5055c654be178f385f
[ "MIT" ]
10
2019-11-06T17:33:51.000Z
2020-12-28T07:46:23.000Z
paccmann_chemistry/utils/hyperparams.py
PaccMann/paccmann_chemistry
f7e9735aafb936f837c38b5055c654be178f385f
[ "MIT" ]
5
2020-08-13T15:00:57.000Z
2022-03-24T14:29:07.000Z
"""Model Parameters Module.""" import torch.optim as optim from .search import SamplingSearch, GreedySearch, BeamSearch SEARCH_FACTORY = { 'sampling': SamplingSearch, 'greedy': GreedySearch, 'beam': BeamSearch, } OPTIMIZER_FACTORY = { 'adadelta': optim.Adadelta, 'adagrad': optim.Adagrad, 'adam...
21.894737
60
0.675481
42
416
6.642857
0.547619
0
0
0
0
0
0
0
0
0
0
0
0.185096
416
18
61
23.111111
0.823009
0.057692
0
0
0
0
0.137306
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c1c1059c5b91f27882844cb4c3becda27ebd7c
6,417
py
Python
tests/gpflux/layers/test_latent_variable_layer.py
francescodonato/GPflux
fe45b353243b31d9fa0ec0daeb1d39a2e78ba094
[ "Apache-2.0" ]
100
2021-04-13T07:54:49.000Z
2022-03-21T16:25:45.000Z
tests/gpflux/layers/test_latent_variable_layer.py
francescodonato/GPflux
fe45b353243b31d9fa0ec0daeb1d39a2e78ba094
[ "Apache-2.0" ]
17
2021-04-13T03:13:11.000Z
2022-02-28T07:36:55.000Z
tests/gpflux/layers/test_latent_variable_layer.py
francescodonato/GPflux
fe45b353243b31d9fa0ec0daeb1d39a2e78ba094
[ "Apache-2.0" ]
13
2021-04-12T19:12:17.000Z
2022-03-10T00:41:44.000Z
# # Copyright (c) 2021 The GPflux Contributors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
32.573604
99
0.717781
848
6,417
5.21934
0.275943
0.018075
0.032309
0.046317
0.286941
0.229327
0.208089
0.189336
0.189336
0.173972
0
0.011094
0.171264
6,417
196
100
32.739796
0.821173
0.163316
0
0.217391
0
0
0.011202
0
0
0
0
0
0.113043
1
0.078261
false
0
0.069565
0.008696
0.182609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c21d6803d82661080e36eb0e94a3b82f8b2f7c
18,041
py
Python
aw-actor-trust.py
actingweb/box-actingweb
f586458484649aba927cd78c60b4d0fec7b82ca6
[ "Apache-2.0" ]
null
null
null
aw-actor-trust.py
actingweb/box-actingweb
f586458484649aba927cd78c60b4d0fec7b82ca6
[ "Apache-2.0" ]
null
null
null
aw-actor-trust.py
actingweb/box-actingweb
f586458484649aba927cd78c60b4d0fec7b82ca6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # from actingweb import actor from actingweb import config from actingweb import trust from actingweb import auth import webapp2 import os from google.appengine.ext.webapp import template import json import logging import datetime import time # /trust handlers # # GET /trust with query paramet...
41.955814
152
0.558228
1,868
18,041
5.322805
0.114026
0.056723
0.055818
0.078145
0.615307
0.590969
0.534748
0.473398
0.428342
0.416474
0
0.013286
0.332465
18,041
429
153
42.053613
0.812339
0.087357
0
0.616402
0
0
0.097518
0.004319
0
0
0
0
0
1
0.026455
false
0
0.029101
0
0.15873
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c32f78fb7ce24035473595e0a40c4945453a5b
2,465
py
Python
classy_vision/heads/fully_connected_head.py
dlegor/ClassyVision
9c82d533b66b0a5fbb11f8ab3567a9c70aa4e013
[ "MIT" ]
1
2021-04-11T19:01:10.000Z
2021-04-11T19:01:10.000Z
classy_vision/heads/fully_connected_head.py
prigoyal/ClassyVision
db87bb87068ee8d2c7b21849ddd0548082e20a87
[ "MIT" ]
null
null
null
classy_vision/heads/fully_connected_head.py
prigoyal/ClassyVision
db87bb87068ee8d2c7b21849ddd0548082e20a87
[ "MIT" ]
null
null
null
#!/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. from typing import Any, Dict import torch.nn as nn from classy_vision.generic.util import is_pos_int from classy_visio...
31.602564
83
0.628398
317
2,465
4.712934
0.391167
0.066934
0.032129
0.022758
0
0
0
0
0
0
0
0.004577
0.290872
2,465
77
84
32.012987
0.850114
0.403245
0
0
0
0
0.056732
0
0
0
0
0
0.055556
1
0.083333
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
d9c3ac1232aa677a1999a869a726247c9e688214
3,400
py
Python
custom_components/wyzeapi/binary_sensor.py
np-hacs/ha-wyzeapi
8abc6af59d36514008f696310b290a046d7c7a72
[ "Apache-2.0" ]
null
null
null
custom_components/wyzeapi/binary_sensor.py
np-hacs/ha-wyzeapi
8abc6af59d36514008f696310b290a046d7c7a72
[ "Apache-2.0" ]
null
null
null
custom_components/wyzeapi/binary_sensor.py
np-hacs/ha-wyzeapi
8abc6af59d36514008f696310b290a046d7c7a72
[ "Apache-2.0" ]
null
null
null
import logging import time from datetime import timedelta from typing import List from homeassistant.components.binary_sensor import ( BinarySensorEntity, DEVICE_CLASS_MOTION ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.core import H...
29.059829
109
0.645
382
3,400
5.489529
0.290576
0.042918
0.024797
0.025751
0.104912
0.079161
0.079161
0.079161
0.043872
0.043872
0
0.002419
0.270588
3,400
116
110
29.310345
0.843145
0.031765
0
0.233333
0
0
0.044899
0
0
0
0
0
0
1
0.111111
false
0
0.133333
0.044444
0.377778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c4cf9fb1ad31300587d3e24030d9670ed150d3
3,342
py
Python
src/tornado-3.2.2/tornado/platform/common.py
code-annotator/tornado-annotated
78fa3ab3b87a559c1db9ec11d86d79f6bf47853c
[ "MIT" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
filenv/lib/python2.7/site-packages/tornado/platform/common.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
2
2021-04-30T20:29:40.000Z
2022-02-11T03:38:04.000Z
filenv/lib/python2.7/site-packages/tornado/platform/common.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
"""Lowest-common-denominator implementations of platform functionality.""" from __future__ import absolute_import, division, print_function, with_statement import errno import socket from tornado.platform import interface class Waker(interface.Waker): """Create an OS independent asynchronous pipe. For use ...
36.326087
86
0.55775
415
3,342
4.450602
0.498795
0.043313
0.025988
0.030861
0.033568
0.033568
0
0
0
0
0
0.021296
0.35368
3,342
91
87
36.725275
0.833796
0.382406
0
0.269231
0
0
0.021361
0
0
0
0
0
0
1
0.115385
false
0.038462
0.076923
0.038462
0.25
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c69927875c451378bcb7d50069e903036beefa
5,490
py
Python
bathymetry_blink/bathymetry_blink.py
poster515/BlinkyTape_Python
edc2f7e43fbf07dbfdeba60da7acb7ae7a3707d0
[ "MIT" ]
26
2015-02-14T11:37:21.000Z
2021-05-10T17:24:16.000Z
bathymetry_blink/bathymetry_blink.py
poster515/BlinkyTape_Python
edc2f7e43fbf07dbfdeba60da7acb7ae7a3707d0
[ "MIT" ]
8
2015-02-14T17:33:24.000Z
2021-10-05T20:32:19.000Z
bathymetry_blink/bathymetry_blink.py
poster515/BlinkyTape_Python
edc2f7e43fbf07dbfdeba60da7acb7ae7a3707d0
[ "MIT" ]
15
2015-01-24T23:36:54.000Z
2021-10-02T23:40:08.000Z
""" This script will modulate the blinky lights using the following algorithm: 1) uses user-provided location to obtain row of pixel data from bathy image 2) samples a 'number of LEDs' number of pixels from that row 3) shifts the sampled row data to center it at the location specified by user 4) displays resulting pix...
36.845638
230
0.654098
786
5,490
4.496183
0.375318
0.012733
0.025467
0.007923
0.034522
0.01245
0
0
0
0
0
0.025142
0.232058
5,490
149
231
36.845638
0.813093
0.436976
0
0.044118
0
0
0.213035
0.011673
0
0
0
0
0
1
0
false
0
0.102941
0
0.102941
0.102941
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c6ca6076e88b29cf949f6ea50aa8a721054e5d
5,118
py
Python
service/transforms/export_submissions.py
SFDigitalServices/pts-dispatcher-microservice-py
80ec68d9d7f3f120a708717ed92c8b5a16742ff3
[ "MIT" ]
null
null
null
service/transforms/export_submissions.py
SFDigitalServices/pts-dispatcher-microservice-py
80ec68d9d7f3f120a708717ed92c8b5a16742ff3
[ "MIT" ]
4
2020-08-28T17:21:06.000Z
2021-06-02T01:52:16.000Z
service/transforms/export_submissions.py
SFDigitalServices/pts-dispatcher-microservice-py
80ec68d9d7f3f120a708717ed92c8b5a16742ff3
[ "MIT" ]
null
null
null
""" Export Submissions Transform module """ #pylint: disable=too-few-public-methods import pandas as pd from .transform import TransformBase from ..resources.field_configs import FieldConfigs from ..resources.field_maps import FieldMaps class ExportSubmissionsTransform(TransformBase): """ Transform for Export Subm...
44.12069
112
0.520125
512
5,118
5.074219
0.279297
0.048499
0.023095
0.013087
0.046959
0.046959
0
0
0
0
0
0.002545
0.385893
5,118
115
113
44.504348
0.824053
0.150254
0
0.157895
0
0
0.038116
0.005919
0
0
0
0
0
1
0.065789
false
0
0.052632
0
0.197368
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c723ccb8662448fc572ef43b245239e373eaa3
2,877
py
Python
python/ray/ml/tests/test_torch_trainer.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
python/ray/ml/tests/test_torch_trainer.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
python/ray/ml/tests/test_torch_trainer.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
import pytest import torch import ray from ray.ml.predictors.integrations.torch import TorchPredictor from ray.ml.train.integrations.torch import TorchTrainer from ray import train from ray.ml.examples.pytorch.torch_linear_example import train_func as linear_train_func @pytest.fixture def ray_start_4_cpus(): add...
28.77
88
0.681265
369
2,877
5.01897
0.281843
0.043737
0.019438
0.028078
0.534557
0.510799
0.470842
0.470842
0.446004
0.446004
0
0.012406
0.215502
2,877
99
89
29.060606
0.808152
0.041363
0
0.418919
0
0
0.042468
0
0
0
0
0
0.054054
1
0.148649
false
0
0.121622
0.027027
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
d9c9b89785f6cfc7757c2e1d1d401d256c20d14f
2,567
py
Python
Pzzzzz/plugins/wm.py
Pzzzzz5142/animal-forest-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
5
2020-05-28T06:29:33.000Z
2020-09-30T12:14:46.000Z
Pzzzzz/plugins/wm.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
Pzzzzz/plugins/wm.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
from nonebot import CommandSession, on_command from langdetect import detect, detect_langs from aiohttp import ClientSession from nonebot import get_bot from nonebot.argparse import ArgumentParser import time import hmac import random, sys import hashlib import binascii import urllib bot = get_bot() # 百度通用翻译API,不包含词典、...
27.021053
75
0.592131
314
2,567
4.773885
0.401274
0.096064
0.056037
0.024016
0.044029
0.044029
0.044029
0
0
0
0
0.008333
0.252045
2,567
94
76
27.308511
0.772396
0.031944
0
0.078947
0
0
0.095968
0.009677
0
0
0
0
0
1
0
false
0.013158
0.184211
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ca7d1ad949a33a39144490cd6ec4bc4a1910a2
5,375
py
Python
home/scripts/memory/lpsolve.py
ParksProjets/Mips-Applications
d4284a5ee357b0e5f348b9af28bb0d90c036ae99
[ "MIT" ]
1
2019-01-08T08:41:22.000Z
2019-01-08T08:41:22.000Z
home/scripts/memory/lpsolve.py
ParksProjets/Mips-Applications
d4284a5ee357b0e5f348b9af28bb0d90c036ae99
[ "MIT" ]
null
null
null
home/scripts/memory/lpsolve.py
ParksProjets/Mips-Applications
d4284a5ee357b0e5f348b9af28bb0d90c036ae99
[ "MIT" ]
null
null
null
""" LpSolve wrapper. Copyright (C) 2018, Guillaume Gonnet License MIT """ from ctypes import * import sys import os.path as path import platform # Import the DLL ver = ("x86", "x64")[sys.maxsize > 2**32] here = path.dirname(__file__) if sys.platform == "win32": lib = windll.LoadLibrary(path.abspath(path.join...
25.116822
92
0.630884
790
5,375
4.083544
0.201266
0.031618
0.022319
0.047737
0.32734
0.253255
0.182269
0.16243
0.16243
0.106014
0
0.008387
0.245767
5,375
213
93
25.234742
0.787371
0.067535
0
0.077519
0
0
0.115881
0
0
0
0
0
0.054264
1
0.124031
false
0
0.031008
0.007752
0.248062
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cb7d0cdfc5b919d86c41747507b434bce2ff4e
2,595
py
Python
scripts/charts.py
yshrdbrn/bigdata
51114ae98354ee094e0bcff26c1814f85c434148
[ "MIT" ]
null
null
null
scripts/charts.py
yshrdbrn/bigdata
51114ae98354ee094e0bcff26c1814f85c434148
[ "MIT" ]
1
2020-02-01T04:53:43.000Z
2020-02-01T04:53:43.000Z
scripts/charts.py
yshrdbrn/bigdata
51114ae98354ee094e0bcff26c1814f85c434148
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd def group_by_category(df): grouped = df.groupby(['CATEGORY']).size().to_frame('Crimes') labels = ['Trespassing', 'Vehicle theft', 'General Theft', 'Damage to Property', 'Robbery', 'Homicide'] p = grouped.plot.pie(y='Crimes', labels=labels, ...
38.161765
91
0.668208
373
2,595
4.439678
0.217158
0.050725
0.036232
0.065217
0.597826
0.562802
0.541063
0.396135
0.396135
0.350242
0
0.006358
0.151445
2,595
67
92
38.731343
0.745686
0
0
0.275862
0
0
0.300193
0.056262
0
0
0
0
0
1
0.103448
false
0.017241
0.034483
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cc56ba272dad2f5e9b82b388ad10350a722906
15,349
py
Python
unittests.py
benjaminkrenn/abcvoting
1e3833a7314d3467de7560f7e531a4c35c6eda08
[ "MIT" ]
null
null
null
unittests.py
benjaminkrenn/abcvoting
1e3833a7314d3467de7560f7e531a4c35c6eda08
[ "MIT" ]
null
null
null
unittests.py
benjaminkrenn/abcvoting
1e3833a7314d3467de7560f7e531a4c35c6eda08
[ "MIT" ]
null
null
null
# Unit tests import unittest def run_test_instance(unittestinstance, profile, committeesize, tests): import rules_approval # all rules used? for rule in rules_approval.MWRULES: unittestinstance.assertTrue(rule in tests.keys()) for rule in tests.keys(): output = rules_approval.comp...
42.167582
79
0.410906
2,000
15,349
3.097
0.065
0.042299
0.035841
0.018082
0.67969
0.608492
0.524217
0.463513
0.379238
0.278172
0
0.135299
0.407714
15,349
363
80
42.283747
0.546035
0.020913
0
0.448845
0
0
0.047017
0
0
0
0
0
0.089109
1
0.036304
false
0
0.066007
0
0.105611
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cc99c89bae7a8c33f8aa618bc77a5eebb78e7c
7,638
py
Python
Robustness Check/Calculating Risk Factors/calculate_momentum_factor.py
behnoud-bazrafshan/ThesisPortfolio
2edda0109fb8aafc984b5dfc2e59cabb949b4a78
[ "MIT" ]
null
null
null
Robustness Check/Calculating Risk Factors/calculate_momentum_factor.py
behnoud-bazrafshan/ThesisPortfolio
2edda0109fb8aafc984b5dfc2e59cabb949b4a78
[ "MIT" ]
null
null
null
Robustness Check/Calculating Risk Factors/calculate_momentum_factor.py
behnoud-bazrafshan/ThesisPortfolio
2edda0109fb8aafc984b5dfc2e59cabb949b4a78
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import jdatetime pd.options.mode.chained_assignment = None # Read Bourseview data for market cap # Concat all 75 tickers' data me_list = [] for file_number in range(1, 76): print(file_number) me_path = f'E:/Thesis/New Sampling/Daily Data - Bourseview/'\ ...
38.38191
77
0.612857
1,040
7,638
4.269231
0.247115
0.056982
0.067342
0.021622
0.263063
0.216216
0.137387
0.110811
0.022523
0.022523
0
0.081327
0.238544
7,638
198
78
38.575758
0.682084
0.127258
0
0.070588
0
0
0.165502
0
0
0
0
0
0
1
0
false
0.005882
0.017647
0
0.017647
0.005882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cdaf9a83cf7f7590823c87b5b4ab6e714294e0
4,632
py
Python
source/lambda/geoip_downloader/index.py
aws-samples/siem-on-amazon-opensearch-service
9bac87d39e9fab04f483bae54ffe94948af096ff
[ "MIT-0" ]
92
2021-09-14T06:41:06.000Z
2022-03-31T09:52:07.000Z
source/lambda/geoip_downloader/index.py
aws-samples/siem-on-amazon-opensearch-service
9bac87d39e9fab04f483bae54ffe94948af096ff
[ "MIT-0" ]
74
2021-09-18T01:46:47.000Z
2022-03-28T10:46:59.000Z
source/lambda/geoip_downloader/index.py
aws-samples/siem-on-amazon-opensearch-service
9bac87d39e9fab04f483bae54ffe94948af096ff
[ "MIT-0" ]
42
2021-09-16T23:00:00.000Z
2022-03-29T15:11:43.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 __copyright__ = ('Copyright Amazon.com, Inc. or its affiliates. ' 'All Rights Reserved.') __version__ = '2.7.1' __license__ = 'MIT-0' __author__ = 'Akihiro Nakajima' __url__ = 'https://github.com/aws-s...
34.827068
122
0.633636
527
4,632
5.43833
0.343454
0.058618
0.019888
0.018842
0.137474
0.095604
0.036985
0.036985
0.036985
0.036985
0
0.01498
0.236183
4,632
132
123
35.090909
0.795082
0.053109
0
0.111111
0
0
0.222552
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.138889
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cdbec7cf44be7c5e8dcf70bed770879dcd7e21
16,679
py
Python
components/mroipac/baseline/Baseline.py
earthobservatory/isce2
655c46cc4add275879167b750a5e91f6d00f168e
[ "ECL-2.0", "Apache-2.0" ]
1
2019-10-06T12:21:02.000Z
2019-10-06T12:21:02.000Z
components/mroipac/baseline/Baseline.py
earthobservatory/isce2
655c46cc4add275879167b750a5e91f6d00f168e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
components/mroipac/baseline/Baseline.py
earthobservatory/isce2
655c46cc4add275879167b750a5e91f6d00f168e
[ "ECL-2.0", "Apache-2.0" ]
2
2021-06-24T20:20:18.000Z
2021-06-24T20:32:23.000Z
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2010 California Institute of Technology. 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 th...
39.523697
202
0.655495
1,840
16,679
5.902174
0.244565
0.016206
0.020626
0.013812
0.160958
0.114088
0.068048
0.058748
0.031676
0.020258
0
0.010068
0.24372
16,679
421
203
39.617577
0.85088
0.225553
0
0.105263
0
0
0.07378
0.003269
0
0
0
0.002375
0
1
0.140351
false
0
0.021053
0.059649
0.294737
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cf50080cfd2da35179773577dfa101c0a0615b
1,106
py
Python
src/modules/deuces/deck.py
Bot-Box/FiveCardStud
55e11d7a23becece33658075f922cf007909d058
[ "MIT" ]
null
null
null
src/modules/deuces/deck.py
Bot-Box/FiveCardStud
55e11d7a23becece33658075f922cf007909d058
[ "MIT" ]
1
2020-05-09T20:27:33.000Z
2020-05-09T20:27:33.000Z
src/modules/deuces/deck.py
Bot-Box/FiveCardStud
55e11d7a23becece33658075f922cf007909d058
[ "MIT" ]
null
null
null
from random import shuffle as rshuffle from .card import Card class Deck: """ Class representing a deck. The first time we create, we seed the static deck with the list of unique card integers. Each object instantiated simply makes a copy of this object and shuffles it. """ _FULL_DECK = [] ...
25.136364
79
0.605787
149
1,106
4.328859
0.449664
0.062016
0.074419
0.055814
0.068217
0
0
0
0
0
0
0.006553
0.310127
1,106
43
80
25.72093
0.838794
0.221519
0
0.076923
0
0
0
0
0
0
0
0
0
1
0.192308
false
0
0.076923
0.038462
0.538462
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
d9cfb448c497219965f4d51af8838d801a58ed41
21,000
py
Python
openidc_client/__init__.py
puiterwijk/python-openidc-client
cd8d91c0503124305727f38a0f9fe93bb472209c
[ "MIT" ]
6
2017-03-16T13:32:11.000Z
2021-06-21T19:12:21.000Z
openidc_client/__init__.py
puiterwijk/python-openidc-client
cd8d91c0503124305727f38a0f9fe93bb472209c
[ "MIT" ]
5
2017-03-23T19:50:36.000Z
2022-01-25T04:45:27.000Z
openidc_client/__init__.py
puiterwijk/python-openidc-client
cd8d91c0503124305727f38a0f9fe93bb472209c
[ "MIT" ]
4
2017-03-21T17:34:28.000Z
2022-01-24T06:16:19.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2016, 2017 Red Hat, Inc. # Red Hat Author: Patrick Uiterwijk <puiterwijk@redhat.com> # # 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 restri...
40.384615
87
0.617
2,749
21,000
4.588214
0.191342
0.019979
0.01213
0.012685
0.172362
0.134464
0.120035
0.115754
0.10727
0.075081
0
0.003163
0.307381
21,000
519
88
40.462428
0.864008
0.385571
0
0.27931
0
0
0.135661
0.001921
0
0
0
0.001927
0.013793
1
0.058621
false
0
0.068966
0
0.224138
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cfea74cbe1fffe3e3d0849bdd6679785142bf0
7,159
py
Python
eoxserver/services/ows/wps/v10/encoders/parameters.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
1
2017-11-21T22:23:30.000Z
2017-11-21T22:23:30.000Z
eoxserver/services/ows/wps/v10/encoders/parameters.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
eoxserver/services/ows/wps/v10/encoders/parameters.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
#------------------------------------------------------------------------------- # # WPS 1.0 parameters' XML encoders # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # Martin Paces <martin.paces@eox.at> # #-----------------------------------------------------...
38.283422
80
0.621875
862
7,159
5.056845
0.271462
0.014912
0.026841
0.020647
0.206699
0.140399
0.095435
0.095435
0.095435
0.021565
0
0.002415
0.19011
7,159
186
81
38.489247
0.749396
0.289845
0
0.083333
0
0
0.101117
0
0
0
0
0
0
1
0.091667
false
0
0.016667
0.016667
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
d9d317f8ac0c3d87ca7347265d7a9836b41ed098
2,481
py
Python
gci-vci-serverless/src/helpers/vp_saves_helpers.py
ClinGen/gene-and-variant-curation-tools
30f21d8f03d8b5c180c1ce3cb8401b5abc660080
[ "MIT" ]
1
2021-09-17T20:39:07.000Z
2021-09-17T20:39:07.000Z
gci-vci-serverless/src/helpers/vp_saves_helpers.py
ClinGen/gene-and-variant-curation-tools
30f21d8f03d8b5c180c1ce3cb8401b5abc660080
[ "MIT" ]
133
2021-08-29T17:24:26.000Z
2022-03-25T17:24:31.000Z
gci-vci-serverless/src/helpers/vp_saves_helpers.py
ClinGen/gene-and-variant-curation-tools
30f21d8f03d8b5c180c1ce3cb8401b5abc660080
[ "MIT" ]
null
null
null
import datetime import uuid import simplejson as json from src.db.s3_client import Client as S3Client from decimal import Decimal def get_from_archive(archive_key): ''' Download a VP Save from S3. :param str archive_key: The vp_save data's location (S3 bucket and file path). This value is required. ''' if ...
27.263736
104
0.699315
389
2,481
4.300771
0.290488
0.064555
0.033473
0.045427
0.1315
0.069337
0.069337
0
0
0
0
0.009615
0.203547
2,481
90
105
27.566667
0.837045
0.359532
0
0.266667
0
0
0.101816
0
0
0
0
0
0
1
0.088889
false
0
0.111111
0.022222
0.288889
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9d321dead6bc8e55098581c550215a3e969a2f1
464
py
Python
docs/source/auto_examples/plot_usage.py
ruhugu/brokenaxes
1cfb301c854b3336aeb4dd9a2c329310534dfb21
[ "MIT" ]
362
2017-05-01T10:20:56.000Z
2022-03-29T21:39:09.000Z
docs/source/auto_examples/plot_usage.py
ruhugu/brokenaxes
1cfb301c854b3336aeb4dd9a2c329310534dfb21
[ "MIT" ]
73
2017-04-20T18:54:39.000Z
2021-12-02T08:04:21.000Z
docs/source/auto_examples/plot_usage.py
ruhugu/brokenaxes
1cfb301c854b3336aeb4dd9a2c329310534dfb21
[ "MIT" ]
52
2017-05-04T13:03:25.000Z
2022-03-29T21:39:20.000Z
""" Basic usage =========== This example presents the basic usage of brokenaxes """ import matplotlib.pyplot as plt from brokenaxes import brokenaxes import numpy as np fig = plt.figure(figsize=(5,2)) bax = brokenaxes(xlims=((0, .1), (.4, .7)), ylims=((-1, .7), (.79, 1)), hspace=.05) x = np.linspace(0, 1, 100) bax...
21.090909
83
0.644397
79
464
3.759494
0.594937
0.161616
0.053872
0.06734
0
0
0
0
0
0
0
0.057214
0.133621
464
21
84
22.095238
0.681592
0.163793
0
0
0
0
0.039578
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9d368d362ab070d71b3363fe0fb20728ec9660d
5,985
py
Python
src/entity/002_createRdf.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
1
2021-02-28T15:38:37.000Z
2021-02-28T15:38:37.000Z
src/entity/002_createRdf.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
null
null
null
src/entity/002_createRdf.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
null
null
null
import shutil import os import json import glob import yaml import sys import urllib import ssl import csv import time import requests import json import csv from rdflib import URIRef, BNode, Literal, Graph from rdflib.namespace import RDF, RDFS, FOAF, XSD from rdflib import Namespace all = Graph() with open("data/...
29.338235
129
0.513116
743
5,985
4.095559
0.179004
0.061453
0.055866
0.035491
0.495892
0.394676
0.338153
0.338153
0.261255
0.253368
0
0.018863
0.326817
5,985
204
130
29.338235
0.736411
0.00685
0
0.198198
0
0
0.238463
0
0
0
0
0
0
1
0
false
0
0.144144
0
0.144144
0.018018
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9d4e94302ccb3b8bcc4d40fbc60872ee3780872
2,107
py
Python
client/tests/test_config_read_tool.py
nuft/can-bootloader
18dd77dae1fb2328dac1fd1df2c9e5d5c936771e
[ "BSD-2-Clause" ]
null
null
null
client/tests/test_config_read_tool.py
nuft/can-bootloader
18dd77dae1fb2328dac1fd1df2c9e5d5c936771e
[ "BSD-2-Clause" ]
null
null
null
client/tests/test_config_read_tool.py
nuft/can-bootloader
18dd77dae1fb2328dac1fd1df2c9e5d5c936771e
[ "BSD-2-Clause" ]
null
null
null
import unittest try: from unittest.mock import * except ImportError: from mock import * from msgpack import * import bootloader_read_config from commands import * import sys import json class ReadConfigToolTestCase(unittest.TestCase): @patch('utils.write_command_retry') @patch('utils.write_command'...
30.985294
78
0.596108
258
2,107
4.620155
0.329457
0.120805
0.099832
0.029362
0.514262
0.391779
0.317114
0.162752
0.098993
0.098993
0
0.014208
0.298529
2,107
67
79
31.447761
0.792287
0.04224
0
0.26087
0
0
0.122429
0.058204
0
0
0
0
0.065217
1
0.043478
false
0
0.195652
0
0.26087
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9d51a8133c12a74117e8b569f8ace23d5fb49e6
5,499
py
Python
bot.py
Pyrrolidine/letterboxd-bot
b2cd1364e00c3ec6fb70be9c8be7a8b707a8ffbe
[ "MIT" ]
1
2021-03-14T20:01:53.000Z
2021-03-14T20:01:53.000Z
bot.py
Pyrrolidine/letterboxd-bot
b2cd1364e00c3ec6fb70be9c8be7a8b707a8ffbe
[ "MIT" ]
null
null
null
bot.py
Pyrrolidine/letterboxd-bot
b2cd1364e00c3ec6fb70be9c8be7a8b707a8ffbe
[ "MIT" ]
null
null
null
import logging from asyncio import sleep import discord from discord.ext import commands from config import SETTINGS from crew import crew_embed from diary import diary_embed from film import film_embed from helpers import LetterboxdError from list_ import list_embed from review import review_embed from user import us...
28.640625
78
0.651755
731
5,499
4.771546
0.253078
0.03211
0.024083
0.026089
0.249713
0.205275
0.151663
0.151663
0.131594
0.131594
0
0.005221
0.233679
5,499
191
79
28.790576
0.822496
0.008183
0
0.256579
0
0
0.090626
0
0
0
0
0
0
1
0
false
0
0.078947
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9d5cc7533855c3c985b9ccbdc0f7d78d12441b1
746
py
Python
Complab assignment.py
peteboi/Python-Scripts
d84e352c41cff3f459d88c83bc81f6dc2f25ed05
[ "MIT" ]
null
null
null
Complab assignment.py
peteboi/Python-Scripts
d84e352c41cff3f459d88c83bc81f6dc2f25ed05
[ "MIT" ]
null
null
null
Complab assignment.py
peteboi/Python-Scripts
d84e352c41cff3f459d88c83bc81f6dc2f25ed05
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt def orbit(u): x,y,v_x,v_y = u r=np.hypot(x,y) #r= 1.521e+06 #M,G=1.989e+30,6.7e-11 M,G=20,110 f=G*M/r**3 return np.array([v_x,v_y,-f*x,-f*y]) def RK4(f,u,dt): k1=f(u)*dt k2=f(u+0.5*k1)*dt ...
19.128205
51
0.518767
174
746
2.166667
0.33908
0.026525
0.023873
0.03183
0.03183
0.03183
0
0
0
0
0
0.122995
0.247989
746
38
52
19.631579
0.54902
0.072386
0
0
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9d5e8ec4bcf85e917876d27f935eeb707d35bc9
675
py
Python
factory_generator/management/commands/generate_factories.py
gamabounty/django-factory-generator
284184b22f3564a7a915ac3f3363e588d3721158
[ "MIT" ]
10
2019-04-19T03:00:09.000Z
2022-02-23T16:17:43.000Z
factory_generator/management/commands/generate_factories.py
charlesthk/django-factory-generator
cd0f7aa5b4ecc2bbe8f30a081238056c653d7265
[ "MIT" ]
2
2020-05-10T00:40:51.000Z
2021-02-28T11:31:26.000Z
factory_generator/management/commands/generate_factories.py
charlesthk/django-factory-generator
cd0f7aa5b4ecc2bbe8f30a081238056c653d7265
[ "MIT" ]
6
2019-12-19T16:26:00.000Z
2021-05-13T23:42:35.000Z
import os from django.apps import apps from django.core.management.base import BaseCommand from factory_generator.generator import FactoryAppGenerator class Command(BaseCommand): help = 'Create model factories for all installed apps' def handle(self, *args, **options): created_files = [] fo...
33.75
80
0.715556
80
675
5.875
0.475
0.076596
0.080851
0.085106
0.153191
0.153191
0.153191
0
0
0
0
0
0.198519
675
19
81
35.526316
0.868762
0
0
0
0
0
0.115556
0
0
0
0
0
0
1
0.071429
false
0
0.285714
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
d9d80db949c5d5f415b809076411a2404da55e53
10,912
py
Python
sympy/combinatorics/testutil.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
2
2019-05-18T22:36:49.000Z
2019-05-24T05:56:16.000Z
sympy/combinatorics/testutil.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
1
2020-04-22T12:45:26.000Z
2020-04-22T12:45:26.000Z
sympy/combinatorics/testutil.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
3
2021-02-16T16:40:49.000Z
2022-03-07T18:28:41.000Z
from sympy.combinatorics import Permutation from sympy.combinatorics.util import _distribute_gens_by_base rmul = Permutation.rmul def _cmp_perm_lists(first, second): """ Compare two lists of permutations as sets. This is used for testing purposes. Since the array form of a permutation is currently a...
32.47619
98
0.641679
1,482
10,912
4.588394
0.176113
0.09
0.093824
0.049412
0.340147
0.284853
0.215147
0.162647
0.123824
0.123824
0
0.023035
0.248076
10,912
335
99
32.573134
0.805728
0.363361
0
0.101449
0
0
0.011052
0
0
0
0
0
0.014493
1
0.050725
false
0
0.07971
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9da1ced032a66e58537bdeecea30c322d1a2f01
644
py
Python
malleefowl/tests/test_wps_caps.py
Ouranosinc/malleefowl
685a4cabe4c4ccafc2721a50e1f8178b8b81689e
[ "Apache-2.0" ]
null
null
null
malleefowl/tests/test_wps_caps.py
Ouranosinc/malleefowl
685a4cabe4c4ccafc2721a50e1f8178b8b81689e
[ "Apache-2.0" ]
4
2017-09-21T17:14:45.000Z
2020-11-11T03:20:42.000Z
malleefowl/tests/test_wps_caps.py
Ouranosinc/malleefowl
685a4cabe4c4ccafc2721a50e1f8178b8b81689e
[ "Apache-2.0" ]
null
null
null
import pytest from pywps import Service from pywps.tests import assert_response_success from .common import client_for from malleefowl.processes import processes def test_wps_caps(): client = client_for(Service(processes=processes)) resp = client.get(service='wps', request='getcapabilities', version='1.0.0'...
28
80
0.608696
65
644
5.907692
0.6
0.046875
0
0
0
0
0
0
0
0
0
0.006508
0.284161
644
22
81
29.272727
0.826464
0
0
0
0
0
0.200311
0.032609
0
0
0
0
0.111111
1
0.055556
false
0
0.277778
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
d9dd8d48aa39f42683555f052c81e9f33f26c3cd
1,835
py
Python
setup.py
CallumJHays/pyngrok
e1a28948d1d8cf42f8eed1b166a2caf6b2a68066
[ "MIT" ]
null
null
null
setup.py
CallumJHays/pyngrok
e1a28948d1d8cf42f8eed1b166a2caf6b2a68066
[ "MIT" ]
null
null
null
setup.py
CallumJHays/pyngrok
e1a28948d1d8cf42f8eed1b166a2caf6b2a68066
[ "MIT" ]
null
null
null
from setuptools import setup __author__ = "Alex Laird" __copyright__ = "Copyright 2019, Alex Laird" __version__ = "1.4.0" with open("README.md", "r") as f: long_description = f.read() setup( name="pyngrok", version=__version__, packages=["pyngrok"], python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2...
34.622642
95
0.611444
184
1,835
5.923913
0.532609
0.122018
0.16055
0.095413
0.062385
0.062385
0
0
0
0
0
0.01983
0.230518
1,835
52
96
35.288462
0.752125
0
0
0
0
0.020408
0.572752
0.023978
0
0
0
0
0
1
0
false
0
0.020408
0
0.020408
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ddd794f7ce3da3377a0064524099ee9b8e1fd8
1,377
py
Python
pipelines/trackml.py
texasmichelle/kubeflow-cern
886925fad5c37a72f6999c1100584fa8e4a0adae
[ "Apache-2.0" ]
4
2019-06-06T20:10:08.000Z
2021-02-19T11:59:39.000Z
pipelines/trackml.py
texasmichelle/kubeflow-cern
886925fad5c37a72f6999c1100584fa8e4a0adae
[ "Apache-2.0" ]
null
null
null
pipelines/trackml.py
texasmichelle/kubeflow-cern
886925fad5c37a72f6999c1100584fa8e4a0adae
[ "Apache-2.0" ]
1
2019-10-13T03:51:16.000Z
2019-10-13T03:51:16.000Z
#!/usr/bin/env python3 import kfp.dsl as dsl import kfp.gcp as gcp # Pipeline input variables. KUBECTL_IMAGE = "gcr.io/mcas-195423/trackml_master_kfp_kubectl" KUBECTL_IMAGE_VERSION = "1" TRACKML_IMAGE = "gcr.io/mcas-195423/trackml_master_trackml" TRACKML_IMAGE_VERSION = "1" def train_op(): return dsl.ContainerOp( ...
24.157895
63
0.688453
175
1,377
5.148571
0.354286
0.079911
0.063263
0.073252
0.372919
0.264151
0.215316
0.142064
0.142064
0.142064
0
0.014518
0.149601
1,377
56
64
24.589286
0.75491
0.046478
0
0.204545
0
0
0.223835
0.065699
0
0
0
0
0
1
0.090909
false
0
0.068182
0.068182
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
d9de866f5c692eb5d2ae261f2a1854febddba480
2,211
py
Python
bin/ticker.py
aleasoluciones/infrabbitmq
2759590156c63b9a04fb5daf8d588a084fc30629
[ "MIT" ]
null
null
null
bin/ticker.py
aleasoluciones/infrabbitmq
2759590156c63b9a04fb5daf8d588a084fc30629
[ "MIT" ]
null
null
null
bin/ticker.py
aleasoluciones/infrabbitmq
2759590156c63b9a04fb5daf8d588a084fc30629
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import puka import argparse import logging from infcommon import utils from infrabbitmq import factory as infrabbitmq_factory from infrabbitmq.rabbitmq import RabbitMQError from infrabbitmq.events_names import ( TICK_1_SECOND, TICK_1_MINUTE, TICK_2_MINUTES, TICK_5_...
29.878378
114
0.622795
245
2,211
5.342857
0.302041
0.073338
0.096257
0.061115
0.375859
0.341482
0.298701
0.298701
0.298701
0.298701
0
0.019595
0.284487
2,211
73
115
30.287671
0.807838
0.009498
0
0.218182
0
0
0.043876
0
0
0
0
0
0
1
0.036364
false
0
0.145455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9df003e9cd20fdfdd89b5aaebba29cdc7e644c5
16,137
py
Python
transformers/modeling_encoder_decoder.py
Tarpelite/UniNLP
176c2a0f88c8054bf69e1f92693d353737367c34
[ "MIT" ]
null
null
null
transformers/modeling_encoder_decoder.py
Tarpelite/UniNLP
176c2a0f88c8054bf69e1f92693d353737367c34
[ "MIT" ]
3
2021-06-02T00:41:41.000Z
2022-02-10T01:07:59.000Z
transformers/modeling_encoder_decoder.py
Tarpelite/UniNLP
176c2a0f88c8054bf69e1f92693d353737367c34
[ "MIT" ]
1
2020-01-27T03:02:19.000Z
2020-01-27T03:02:19.000Z
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # 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 a...
51.88746
473
0.656008
1,947
16,137
5.30303
0.216744
0.02615
0.029443
0.032542
0.343923
0.330073
0.302954
0.255303
0.244649
0.237482
0
0.003413
0.273781
16,137
310
474
52.054839
0.877635
0.580653
0
0.296296
0
0.007407
0.120644
0.01786
0
0
0
0
0
1
0.059259
false
0.007407
0.044444
0
0.155556
0.007407
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e182705452fe461a2142c0afa4786d47f19c46
2,131
py
Python
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
dags/treinos_igti/treino03.py
rafaelols/airflow
8e4af5fb576a9568af476c0607819649b724adea
[ "Apache-2.0" ]
null
null
null
from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import datetime, timedelta import pandas as pd import random # Default args definition default_args = { 'owner': 'Rafael', 'depends_o...
25.987805
147
0.697325
290
2,131
4.934483
0.406897
0.025157
0.025157
0.039832
0.125087
0.125087
0.106219
0.071279
0.071279
0.071279
0
0.011878
0.170343
2,131
81
148
26.308642
0.797511
0.017832
0
0.107692
0
0.015385
0.300478
0.047368
0
0
0
0
0
1
0.061538
false
0
0.092308
0.015385
0.2
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e359c85a06bdc44937457ee401aaa8bebc7f50
2,560
py
Python
tclCommands/TclCommandListSys.py
DannyPol/flatcam
25a8634d0658e98b7fae31a095f8bef40c1b3067
[ "MIT" ]
1
2022-02-11T06:19:34.000Z
2022-02-11T06:19:34.000Z
tclCommands/TclCommandListSys.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
tclCommands/TclCommandListSys.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
# ########################################################## # FlatCAM: 2D Post-processing for Manufacturing # # File Author: Marius Adrian Stanciu (c) # # Date: 8/17/2019 # # MIT Licence # # #############...
37.647059
120
0.55
290
2,560
4.8
0.437931
0.030172
0.036638
0.034483
0.103448
0.067529
0.067529
0.067529
0.067529
0.067529
0
0.004585
0.318359
2,560
67
121
38.208955
0.793123
0.3125
0
0.0625
0
0.03125
0.410863
0
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e3f1d0e6ad9650ceb745dc1536525917eaef63
2,694
py
Python
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
3
2018-05-27T15:39:07.000Z
2018-10-29T17:02:11.000Z
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
1
2018-11-12T11:32:12.000Z
2018-11-12T13:07:48.000Z
ogs5py/fileclasses/mcp/core.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Class for the ogs COMPONENT_PROPERTIES file.""" from ogs5py.fileclasses.base import BlockFile class MCP(BlockFile): """ Class for the ogs COMPONENT_PROPERTIES file. Parameters ---------- task_root : str, optional Path to the destiny model folder. ...
25.415094
78
0.485523
213
2,694
5.868545
0.516432
0.076
0.0216
0.0224
0.0592
0.0592
0.0592
0
0
0
0
0.005105
0.418337
2,694
105
79
25.657143
0.792597
0.464736
0
0
0
0
0.346667
0.048
0
0
0
0
0
1
0.025
false
0
0.025
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9e5c18f6a37dd4a96dd21f7ddefb31b197848dd
2,853
py
Python
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
multithreaded_webcrawler.py
the-muses-ltd/Multithreaded-Webcrawler-Cassandra-
eee68faf3c6ecb548edd0e96ce445dcd366fb735
[ "MIT" ]
null
null
null
# This is a reusable webcraawler architecture that can be adapted to scrape any webstie. # RESULTS: # Roughly 24 seconds per thousand courses scraped for ThreadPoolExecutor vs 63s for unthreaded script. # This is a very basic implementation of multithreading in order to show the proof of concept, but is a good base to...
42.58209
164
0.667368
383
2,853
4.859008
0.506527
0.021494
0.024181
0
0
0
0
0
0
0
0
0.009767
0.246407
2,853
66
165
43.227273
0.855814
0.317911
0
0.045455
0
0
0.1797
0
0
0
0
0
0
1
0.068182
false
0
0.159091
0.022727
0.25
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ea76a8227b5405cef7b2e6991bcba1911971f4
5,819
py
Python
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
wikisourcesort.py
ostropunk/wikisourcesort
3af2d086df0818a75b3e6c34550e2cc1382911a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import re # In[2]: def get_excel_dict(excelfile, key=None, index_col=0, header=0): dataframe = pd.read_excel(excelfile, index_col=index_col, header=header) dictionary = dataframe.to_dict() if key is None: return dictionary ...
23.75102
104
0.598385
766
5,819
4.374674
0.206266
0.056699
0.032229
0.03581
0.231274
0.177261
0.177261
0.168606
0.149508
0.149508
0
0.012192
0.238873
5,819
244
105
23.848361
0.744412
0.210174
0
0.116071
0
0
0.11455
0.015364
0
0
0
0
0
1
0.151786
false
0
0.017857
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ec253823566d98d214c4860b8c8d8ac8c80515
2,188
py
Python
python_utilities/plotting/util.py
sdaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
2
2020-04-13T20:17:36.000Z
2020-05-12T01:13:12.000Z
python_utilities/plotting/util.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
5
2015-10-20T22:57:51.000Z
2017-09-07T01:10:23.000Z
python_utilities/plotting/util.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
3
2015-08-17T17:55:41.000Z
2018-09-19T13:56:42.000Z
"""Utility functions for plotting. Author: Seth Axen E-mail: seth.axen@gmail.com""" from collections import deque import numpy as np def rgb_to_hsv(rgb): """Convert RGB colors to HSV colors.""" r, g, b = tuple(map(float, rgb)) if any([r > 1, g > 1, b > 1]): r /= 255. g /= 255. b ...
24.863636
74
0.472121
336
2,188
3.017857
0.300595
0.053254
0.008876
0.021696
0.04142
0
0
0
0
0
0
0.078652
0.349177
2,188
87
75
25.149425
0.633427
0.153565
0
0.03125
0
0
0
0
0
0
0
0
0
1
0.09375
false
0
0.03125
0
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ec2cc7a1a6ba6f4583fe5b1a6bc53ffc63f837
618
py
Python
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
null
null
null
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
null
null
null
tests/test_process.py
confluentinc/utils-core
6001b4c61f7d923d273a23dc5a1580e0fa277d2c
[ "MIT" ]
1
2021-01-14T11:33:35.000Z
2021-01-14T11:33:35.000Z
import pytest from utils.process import run, silent_run, RunError from utils.fs import in_temp_dir def test_run(capsys): with in_temp_dir(): assert run('echo hello > hello.txt; echo world >> hello.txt', shell=True) out = run('ls', return_output=True) assert out == 'hello.txt\n' ...
24.72
81
0.600324
83
618
4.349398
0.433735
0.088643
0.049862
0.121884
0.166205
0.166205
0
0
0
0
0
0
0.26699
618
24
82
25.75
0.796909
0
0
0
0
0
0.160194
0
0
0
0
0
0.375
1
0.0625
false
0
0.1875
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ed79fef6ca74a4e312f154a876ffa2123179f7
16,276
py
Python
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
90
2019-06-12T06:11:39.000Z
2022-03-21T22:28:38.000Z
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
3
2020-03-24T17:01:25.000Z
2021-02-02T22:00:11.000Z
slim/nets/inception_resnet_v2.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
17
2019-06-15T08:49:46.000Z
2022-01-24T06:46:23.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
45.085873
80
0.616552
2,204
16,276
4.310345
0.158802
0.049474
0.041263
0.056
0.526737
0.469368
0.439368
0.371789
0.352
0.337474
0
0.07204
0.281887
16,276
360
81
45.211111
0.74076
0.232735
0
0.300448
0
0
0.107128
0
0
0
0
0.002778
0
1
0.03139
false
0
0.017937
0
0.076233
0.004484
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ee27c57dbf76a3c2165139cae647ead0e58c46
6,479
py
Python
tests/boilerplate_client/boilerplate_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
null
null
null
tests/boilerplate_client/boilerplate_cmd.py
LedgerHQ/ledger-app-neo3
48e1e0dec3e4801fc3ab1b07c4fe4ed86735a642
[ "MIT" ]
5
2021-09-13T16:41:52.000Z
2022-01-12T16:00:21.000Z
tests/boilerplate_client/boilerplate_cmd.py
isabella232/app-neo3
c48ec5032143fe606d694372c2cfc02082b2ce03
[ "MIT" ]
3
2021-09-01T11:40:09.000Z
2022-03-06T06:45:13.000Z
import struct from typing import Tuple from ledgercomm import Transport from boilerplate_client.boilerplate_cmd_builder import BoilerplateCommandBuilder, InsType from boilerplate_client.button import Button from boilerplate_client.exception import DeviceException from boilerplate_client.transaction import Transaction...
34.462766
131
0.533416
659
6,479
5.048558
0.174507
0.109107
0.158702
0.072738
0.607454
0.607454
0.581004
0.562369
0.562369
0.495041
0
0.022061
0.384319
6,479
188
132
34.462766
0.811983
0.104491
0
0.565574
0
0
0.003123
0
0
0
0.00694
0
0.016393
1
0.057377
false
0
0.065574
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9efa4ffda8cacd286187e29ce110d292c7a1e64
946
py
Python
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
142
2018-06-07T07:43:10.000Z
2021-10-30T21:06:32.000Z
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
282
2018-06-07T08:35:03.000Z
2021-03-31T03:14:32.000Z
clpy/sparse/util.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
19
2018-06-19T11:07:53.000Z
2021-05-13T20:57:04.000Z
import clpy import clpy.sparse.base _preamble_atomic_add = ''' #if __CUDA_ARCH__ < 600 __device__ double atomicAdd(double* address, double val) { unsigned long long* address_as_ull = (unsigned long long*)address; unsigned long long old = *address_as_ull, assumed; ...
24.25641
76
0.60148
118
946
4.567797
0.449153
0.06679
0.089054
0.085343
0
0
0
0
0
0
0
0.007496
0.294926
946
38
77
24.894737
0.8006
0
0
0.066667
0
0
0.547569
0.113108
0
0
0
0
0
1
0.1
false
0
0.066667
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
d9efc68d74f0ff6411265258b8ee1094b0fa820e
1,316
py
Python
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
205
2019-12-29T09:45:09.000Z
2022-03-24T09:29:13.000Z
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
61
2019-12-11T10:46:38.000Z
2022-03-28T17:10:52.000Z
test/test_cartesian.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
46
2020-04-08T23:33:31.000Z
2022-03-18T21:58:35.000Z
from pytest import raises from discopy.cartesian import * def test_Box_repr(): f = Box('f', 1, 2, lambda x: (x, x)) assert "Box('f', 1, 2" in repr(f) def test_Function_str(): f = Function(2, 1, lambda x, y: x + y) assert 'Function(dom=2, cod=1,' in str(f) def test_Function_call(): f = Swap(2, ...
25.803922
78
0.595745
221
1,316
3.447964
0.217195
0.073491
0.11811
0.08399
0.423885
0.391076
0.358268
0.358268
0.332021
0.262467
0
0.039039
0.240881
1,316
50
79
26.32
0.723724
0
0
0.333333
0
0
0.027356
0
0
0
0
0
0.222222
1
0.194444
false
0
0.055556
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f0ba759404ab21f8b93c6f40fde8e030bbf8a1
12,904
py
Python
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/qubits/Transmon_Interdigitated.py
PatrickSJacobs/qiskit-metal
9628369c4b880d1e13199e559f898c5e0b96eecb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
45.43662
93
0.577805
1,763
12,904
4.056154
0.152014
0.014543
0.018878
0.01762
0.420361
0.379108
0.346665
0.312823
0.284016
0.275766
0
0.043438
0.327418
12,904
283
94
45.597173
0.780505
0.376317
0
0.262411
0
0
0.018596
0
0
0
0
0
0
1
0.014184
false
0
0.028369
0
0.070922
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f2ed71da13f5b57b61c1c386731f8180c40992
667
py
Python
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
1
2018-03-12T12:29:21.000Z
2018-03-12T12:29:21.000Z
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
null
null
null
www/app.py
leeeGreat/xlw_study_python
03d8eb59f6826b4689d6598ede6393ecbb5058fb
[ "MIT" ]
1
2018-04-13T13:26:50.000Z
2018-04-13T13:26:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'Michael Liao' ''' async web application. ''' import logging; logging.basicConfig(level=logging.INFO) import asyncio, os, json, time from datetime import datetime from aiohttp import web def index(request): return web.Response(body=b'<h1>Awesome</h1>...
22.233333
73
0.698651
99
667
4.585859
0.59596
0.052863
0.022026
0.026432
0.044053
0
0
0
0
0
0
0.041885
0.14093
667
29
74
23
0.750436
0.064468
0
0
0
0
0.140203
0
0
0
0
0
0
1
0.0625
false
0
0.25
0.0625
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f306cc03073671d285f885169a3fe6dd743eef
684
py
Python
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-03-17T09:15:54.000Z
2021-03-17T09:15:54.000Z
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
examples/Testing/flopy3_plotdata.py
ritchie46/flopy
8e7284dcb3aaf5c12293d442248c2c2d9959f835
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-08-05T19:11:27.000Z
2021-08-05T19:11:27.000Z
from __future__ import print_function import os import numpy as np import matplotlib.pyplot as plt import flopy fb = flopy.modflow.Modflow.load('freyberg', version='mf2005', model_ws=os.path.join('..', 'data', 'freyberg'), verbose=True) dis = fb.dis top = fb.dis.top fb.dis.top.plot(grid=True, colorbar=True) fb.d...
20.727273
124
0.71345
121
684
3.966942
0.421488
0.083333
0.066667
0.041667
0.466667
0.410417
0.245833
0
0
0
0
0.019704
0.109649
684
33
125
20.727273
0.768473
0
0
0.238095
0
0
0.091971
0
0
0
0
0
0
1
0
false
0
0.238095
0
0.238095
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f53b3bd4af7f2d655423b3e5a97d903f5c6dac
2,025
py
Python
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
1
2015-11-08T11:31:09.000Z
2015-11-08T11:31:09.000Z
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
null
null
null
apps/pypi/tests/test_slurper.py
cartwheelweb/packaginator
f6ce11da22154bce9cba42e896989bdb0fd5e865
[ "MIT" ]
null
null
null
from django.template.defaultfilters import slugify from django.test import TestCase from package.models import Package, Version from pypi.slurper import Slurper TEST_PACKAGE_NAME = 'Django' TEST_PACKAGE_VERSION = '1.3' TEST_PACKAGE_REPO_NAME = 'django-uni-form' class SlurpAllTests(TestCase): def tes...
39.705882
89
0.718025
244
2,025
5.602459
0.20082
0.160936
0.109729
0.13899
0.663497
0.625457
0.602048
0.602048
0.530358
0.530358
0
0.003766
0.213333
2,025
51
90
39.705882
0.854363
0.039506
0
0.352941
0
0
0.012352
0
0
0
0
0
0.294118
1
0.117647
false
0
0.117647
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f57949a15383ed2a070813678af904fe2e2df0
1,145
py
Python
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-mgmt-logic/azure/mgmt/logic/models/recurrence_schedule_occurrence.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
34.69697
76
0.590393
116
1,145
5.775862
0.672414
0.041791
0
0
0
0
0
0
0
0
0
0.001056
0.172926
1,145
32
77
35.78125
0.706441
0.655022
0
0
0
0
0.146479
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f6bdae288edaa527af57b654eafa00cfa5047b
11,757
py
Python
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/core/apply.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
import inspect import numpy as np from pandas._libs import reduction as libreduction from pandas.util._decorators import cache_readonly from pandas.core.dtypes.common import ( is_dict_like, is_extension_array_dtype, is_list_like, is_sequence, ) from pandas.core.dtypes.generic import ABCSeries def f...
28.745721
88
0.575572
1,409
11,757
4.676366
0.176721
0.030809
0.027622
0.01548
0.222492
0.148733
0.108059
0.078009
0.06435
0.048262
0
0.003227
0.340988
11,757
408
89
28.816176
0.847186
0.150549
0
0.328244
0
0
0.025836
0
0
0
0
0.002451
0
1
0.099237
false
0.01145
0.030534
0.045802
0.28626
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f7ffc0611459c276e6f9ae99c70b7e8ba1a1c3
707
py
Python
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_recognizer/test_shufflenetv1.py
YinAoXiong/ZCls
8aeea3640f8456937db35d043e37cf2c03ac9017
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date: 2021/5/16 下午10:22 @file: test_shufflenetv1.py @author: zj @description: """ import torch from zcls.config import cfg from zcls.config.key_word import KEY_OUTPUT from zcls.model.recognizers.build import build_recognizer def test_data(model): data = torch.randn(1, 3, 224, 224)...
19.638889
98
0.711457
99
707
4.828283
0.535354
0.050209
0.058577
0
0
0
0
0
0
0
0
0.053872
0.15983
707
35
99
20.2
0.750842
0.144272
0
0
0
0
0.137353
0.118928
0
0
0
0
0.058824
1
0.117647
false
0
0.235294
0
0.352941
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9f92ab910680bac296e7b003e06e2747df83ea4
882
py
Python
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day06/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
import os.path from collections import Counter import pytest INPUT_TXT = os.path.join(os.path.dirname(__file__), 'input.txt') def compute(s: str) -> int: lines = s.splitlines() numbers = Counter(int(f) for f in lines[0].split(",")) for d in range(80): numbers2 = Counter({8: numbers[0], 6: numbe...
18.765957
64
0.580499
123
882
4.00813
0.479675
0.060852
0.085193
0.068966
0
0
0
0
0
0
0
0.033588
0.25737
882
46
65
19.173913
0.719084
0
0
0
0
0
0.052154
0
0
0
0
0
0.03125
1
0.09375
false
0
0.09375
0
0.25
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9fb745b63e853aa5e221b1f87db67c0723efc2d
394
py
Python
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
4
2015-04-07T06:00:34.000Z
2019-09-10T01:45:41.000Z
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
null
null
null
zmq_srv.py
iyedb/boost_asio_zeromq
63110c18540c8303ac29d574f25cba234a00a22d
[ "MIT" ]
3
2015-06-30T07:37:41.000Z
2019-09-10T01:45:47.000Z
from __future__ import print_function import zmq import time ADDR='tcp://127.0.0.1:11155' ctx = zmq.Context() srv = ctx.socket(zmq.REP) srv.bind(ADDR) #srv.setsockopt(zmq.RCVTIMEO, 3000); while True: try: msg = srv.recv() except Exception as e: print('zmq socket revc timedout:', e) else: print('cl...
17.130435
41
0.659898
62
394
4.112903
0.677419
0.047059
0
0
0
0
0
0
0
0
0
0.050314
0.192893
394
22
42
17.909091
0.751572
0.088832
0
0
0
0
0.209497
0.058659
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9fdf7b2da8d5e9203d4272f61f62e3af6000e66
10,408
py
Python
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
mypy/server/aststrip.py
mmaryada27/mypy
39103273d705fe45a55c4879779a0d5567f01876
[ "PSF-2.0" ]
null
null
null
"""Strip/reset AST in-place to match state after semantic analysis pass 1. Fine-grained incremental mode reruns semantic analysis (passes 2 and 3) and type checking for *existing* AST nodes (targets) when changes are propagated using fine-grained dependencies. AST nodes attributes are often changed during semantic an...
41.13834
95
0.662952
1,391
10,408
4.83537
0.24371
0.016652
0.019625
0.017841
0.241005
0.195956
0.163247
0.154326
0.14273
0.128159
0
0.002363
0.267967
10,408
252
96
41.301587
0.880431
0.359531
0
0.344371
0
0
0.00682
0
0
0
0
0.007937
0.013245
1
0.145695
false
0
0.092715
0
0.291391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9fe6882b9e62ad1b9764fdded272caab1b5cf79
9,991
py
Python
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
lib/spack/spack/multimethod.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) """This module contains utilities for using multi-methods in spack. You can think of multi-methods like overloaded methods...
38.875486
77
0.651887
1,302
9,991
4.87404
0.268817
0.008667
0.007879
0.013237
0.102584
0.075796
0.058935
0.041286
0.011031
0.011031
0
0.005444
0.282955
9,991
256
78
39.027344
0.880374
0.57772
0
0.025
0
0
0.020088
0
0
0
0
0
0.0125
1
0.1375
false
0
0.075
0
0.3875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a00049d0a23118a6b45ced9a50bf455984aaa3c
8,974
py
Python
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
paperstream/create_diary.py
MarcoRosso/paperstream
f8d5485ea337334b036393f9566b74394b5dd234
[ "MIT" ]
null
null
null
""" Create diaries in A5 and A4 sizes based on PDF templates. Julio Vega """ import datetime import math import sys from io import BytesIO from pathlib import Path from PyPDF2 import PdfFileReader, PdfFileWriter from reportlab.lib.pagesizes import A5, A4 from reportlab.lib.utils import ImageReader from reportlab.pdfb...
33.864151
97
0.613885
1,121
8,974
4.723461
0.257806
0.020397
0.014731
0.014353
0.109726
0.043626
0.029084
0.016997
0.016997
0.016997
0
0.018318
0.20916
8,974
265
98
33.864151
0.727772
0.17651
0
0.074324
0
0
0.046234
0.008879
0
0
0
0
0
1
0.087838
false
0.006757
0.074324
0
0.243243
0.02027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a009f467895ff4a7817d2ca2bfbdacdd183cb58
2,459
py
Python
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
3
2015-01-14T06:27:16.000Z
2015-02-26T23:39:39.000Z
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
8
2015-01-15T17:50:30.000Z
2015-05-12T17:09:04.000Z
wextractor/extractors/csv_extractor.py
codeforamerica/w-drive-extractor
1c62bfff6fc21c4cce4a4409b76355ec4e07daae
[ "MIT" ]
4
2015-01-14T15:20:49.000Z
2021-04-16T10:45:22.000Z
#!/usr/bin/env python import urllib2 import httplib from urlparse import urlparse import csv from wextractor.extractors.extractor import Extractor class CsvExtractor(Extractor): def __init__(self, target, header=None, dtypes=None, url=None): ''' CsvExtractor initializes with an optional url flag ...
34.152778
118
0.604311
308
2,459
4.737013
0.467532
0.038382
0.027416
0.039753
0.031528
0.031528
0
0
0
0
0
0.012528
0.285889
2,459
71
119
34.633803
0.818337
0.220415
0
0.065217
0
0
0.041689
0
0
0
0
0
0
1
0.065217
false
0
0.108696
0
0.23913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a01b2b39f8bda22480b43b79a5034c95f31f8f0
9,010
py
Python
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
2
2021-06-30T22:33:35.000Z
2021-11-22T18:02:36.000Z
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
null
null
null
pyscf/geomopt/berny_solver.py
r-peng/pyscf
9a14f9bcc63bc75f5939cb4d00eb47861d8d8989
[ "Apache-2.0" ]
2
2021-09-16T23:37:42.000Z
2021-10-14T23:00:39.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
34.787645
91
0.642619
1,204
9,010
4.687708
0.274917
0.034018
0.007442
0.007087
0.245571
0.220943
0.193125
0.167789
0.148476
0.123671
0
0.038166
0.249723
9,010
258
92
34.922481
0.796746
0.287569
0
0.069182
0
0
0.131452
0.014588
0
0
0
0
0.037736
1
0.062893
false
0
0.081761
0.006289
0.213836
0.012579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a01ccf4f5933cd1046863655e9835118928c6fc
1,838
py
Python
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
6
2017-09-19T15:05:47.000Z
2021-07-16T16:07:46.000Z
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
1
2018-06-02T18:45:51.000Z
2018-06-02T18:45:51.000Z
src/main/python/taf/foundation/api/ui/aut.py
WesleyPeng/uiXautomation
2d2c4d5a774ffda934d5615036a80c449bac930d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2018 {Flair Inc.} WESLEY PENG # # 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 agre...
25.887324
74
0.62568
220
1,838
5.154545
0.477273
0.05291
0.042328
0.028219
0.037037
0
0
0
0
0
0
0.009238
0.293254
1,838
70
75
26.257143
0.863741
0.307943
0
0.119048
0
0
0.054054
0
0
0
0
0
0
1
0.166667
false
0
0.02381
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a02d8606a3a24d720ef5682953d80e75a8dcabc
1,758
py
Python
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
3
2020-05-07T22:03:48.000Z
2021-03-11T16:36:56.000Z
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
null
null
null
algo/vigenere.py
dkushche/Crypto
75919d6df2084aee1de76c9999ac4e361c4efd48
[ "MIT" ]
null
null
null
import crypto_tools from itertools import cycle def vigenere_little_doc(): return "encrypt/decrypt using vigenere cypher" def vigenere_full_doc(): return """ Advanced caesar we change dict on each char """ def vigenere_str_to_list(string, vigenere_dict): result = list() for char in string:...
30.310345
78
0.660978
236
1,758
4.669492
0.326271
0.069873
0.046279
0.046279
0.137931
0.137931
0.137931
0.058076
0.058076
0.058076
0
0
0.236064
1,758
57
79
30.842105
0.820551
0
0
0
0
0
0.147327
0
0
0
0
0
0
1
0.111111
false
0
0.044444
0.044444
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a036923cf292987a326de518f02ae1d70e60da4
974
py
Python
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
kiwi_scp/commands/cmd_cmd.py
yavook/kiwi-scp
ca4263d913cfbdedc8b14334e3cad61c3b95f0a7
[ "MIT" ]
null
null
null
from typing import Tuple import click from .cmd import KiwiCommandType, KiwiCommand from .decorators import kiwi_command from ..executable import COMPOSE_EXE from ..instance import Instance from ..project import Project @click.argument( "compose_args", metavar="[ARG]...", nargs=-1, ) @click.argument( ...
26.324324
91
0.708419
116
974
5.793103
0.482759
0.049107
0.059524
0
0
0
0
0
0
0
0
0.001267
0.189938
974
36
92
27.055556
0.850444
0.129363
0
0.074074
0
0
0.102259
0.026159
0
0
0
0
0
1
0.037037
false
0
0.259259
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a036ee66041ffdf97db3dd3911676a6d37fc888
4,339
py
Python
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
11
2018-02-08T05:23:28.000Z
2021-05-24T13:23:56.000Z
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
null
null
null
homework/Testing with Examples (Network)/impl_fail-add_relation-does_not_fail_when_person1_is_non_existent.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
2
2020-09-15T08:51:22.000Z
2021-01-26T12:07:18.000Z
class MyError(Exception): pass class PropertyContainer(object): def __init__(self): self.props = {} def set_property(self, prop, value): self.props[prop] = value def get_property(self, prop): return self.props.get(prop) def has_property(self, prop...
34.991935
76
0.569717
533
4,339
4.536585
0.178236
0.022333
0.037221
0.028122
0.295285
0.24483
0.174938
0.163772
0.163772
0.163772
0
0.017662
0.347546
4,339
123
77
35.276423
0.836454
0.144042
0
0.202247
0
0
0.061418
0
0
0
0
0
0
1
0.134831
false
0.022472
0
0.022472
0.280899
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a045d9a56c4a8715b77c0b2cd2d5ff977fa98ed
609
py
Python
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
null
null
null
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
null
null
null
conf/feature_config.py
pupuwudi/nlp_xiaojiang
182ac4522b6012a52de6e1d0db7e6a47cb716e5b
[ "MIT" ]
2
2021-01-18T10:07:20.000Z
2022-01-12T10:09:47.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/5/10 9:13 # @author :Mo # @function :path of FeatureProject import pathlib import sys import os # base dir projectdir = str(pathlib.Path(os.path.abspath(__file__)).parent.parent) sys.path.append(projectdir) # path of BERT model model_dir...
22.555556
72
0.689655
90
609
4.433333
0.655556
0.080201
0.06015
0.080201
0
0
0
0
0
0
0
0.047904
0.17734
609
26
73
23.423077
0.748503
0.284072
0
0
0
0
0.180451
0.072682
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a047a8d5dd4c7ba8745cc48738110ca5fef1d2f
813
py
Python
tests/test_prep_read.py
taruma/hidrokit
a96c4ba2235d58d2bbc905be44d1b413ed19b3d2
[ "MIT" ]
5
2019-07-15T13:35:52.000Z
2020-04-01T17:34:16.000Z
tests/test_prep_read.py
taruma/hidrokit
a96c4ba2235d58d2bbc905be44d1b413ed19b3d2
[ "MIT" ]
107
2019-01-03T02:12:26.000Z
2020-02-18T00:48:27.000Z
tests/test_prep_read.py
hidrokit/hidrokit
c8b949aa6a81981684a24e5dd1e498ec82cbe0ca
[ "MIT" ]
2
2020-06-17T00:08:32.000Z
2020-08-24T18:55:38.000Z
"""Test for .prep.read module """ from hidrokit.prep import read import numpy as np import pandas as pd A = pd.DataFrame( data=[ [1, 3, 4, np.nan, 2, np.nan], [np.nan, 2, 3, np.nan, 1, 4], [2, np.nan, 1, 3, 4, np.nan] ], columns=['A', 'B', 'C', 'D', 'E', 'F'] ) A_date = A.set_inde...
25.40625
79
0.526445
133
813
3.067669
0.353383
0.073529
0.014706
0.02451
0.245098
0.112745
0
0
0
0
0
0.091195
0.217712
813
31
80
26.225806
0.550314
0.03198
0
0
0
0
0.079487
0
0
0
0
0
0.095238
1
0.095238
false
0
0.142857
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a04b26d17a373b84c1afb19abef67f291bb970a
9,747
py
Python
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
46
2021-01-07T03:38:07.000Z
2022-03-24T19:11:23.000Z
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
7
2021-02-06T14:23:18.000Z
2022-02-13T04:08:45.000Z
src/train_DFCAN.py
ikecoglu/DL-SR
5e4c794f1434cd4a9b2b1aecf3738065b11bede1
[ "MIT" ]
16
2021-01-26T16:22:49.000Z
2022-02-26T03:21:08.000Z
import argparse from keras import optimizers import matplotlib.pyplot as plt import numpy as np import datetime from keras.callbacks import TensorBoard import glob import os import tensorflow as tf from models import * from utils.lr_controller import ReduceLROnPlateau from utils.data_loader import data_loader, data_loa...
45.125
109
0.612804
1,204
9,747
4.671927
0.181063
0.048889
0.060444
0.031289
0.276978
0.2544
0.1936
0.125156
0.090667
0.074667
0
0.010528
0.171643
9,747
215
110
45.334884
0.686153
0.144968
0
0.128655
0
0
0.095187
0.012154
0
0
0
0
0
1
0.011696
false
0
0.081871
0
0.093567
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a04bef0858eef7458b1e38ddd409346a98cb2cc
2,635
py
Python
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/exchange/live_graph_clock.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
import pandas as pd from catalyst.constants import LOG_LEVEL from catalyst.exchange.utils.stats_utils import prepare_stats from catalyst.gens.sim_engine import ( BAR, SESSION_START ) from logbook import Logger log = Logger('LiveGraphClock', level=LOG_LEVEL) class LiveGraphClock(object): """Realtime clock...
35.133333
79
0.666414
343
2,635
4.970845
0.472303
0.038123
0.028152
0.019941
0.051613
0
0
0
0
0
0
0.008831
0.26945
2,635
74
80
35.608108
0.876883
0.412144
0
0
0
0
0.029212
0
0
0
0
0
0
1
0.057143
false
0
0.171429
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a072b60d911bf4164d6e02341054f5f6f3f27f0
3,479
py
Python
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
13
2021-03-05T10:47:50.000Z
2022-03-18T19:07:09.000Z
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
18
2021-03-05T10:29:13.000Z
2022-03-08T13:10:38.000Z
nautobot_device_onboarding/tests/test_netdev_keeper.py
pszulczewski/nautobot-plugin-device-onboarding
9ddec52d7bcc751c4616bd7c1180ed2a1d31ff2c
[ "Apache-2.0" ]
14
2021-03-06T19:33:46.000Z
2022-03-28T16:31:38.000Z
"""Unit tests for nautobot_device_onboarding.netdev_keeper module and its classes. (c) 2020-2021 Network To Code 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/LICE...
44.602564
108
0.728658
467
3,479
5.286938
0.357602
0.036857
0.058323
0.032402
0.387201
0.334143
0.321993
0.253949
0.238558
0.238558
0
0.022456
0.180799
3,479
77
109
45.181818
0.84386
0.29635
0
0.108108
0
0
0.131263
0.045549
0
0
0
0
0.189189
1
0.081081
false
0
0.189189
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a076cdd50a9d69b52cffcb8dbe3df578f17d801
2,577
py
Python
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
superneurons/tools/img_val/main.py
Phaeton-lang/baselines
472c248047fbb55b5fa0e620758047b7f0a1d041
[ "MIT" ]
null
null
null
# Created by ay27 at 17/4/9 import os import matplotlib.pyplot as plt import struct import numpy as np def trans(row): return list(map(lambda x: np.uint8(x), row)) def read_image(filename): with open(filename, mode='rb') as file: n = file.read(8) n = struct.unpack("<Q", n)[0] c = fi...
28.01087
84
0.509895
365
2,577
3.50137
0.290411
0.075117
0.056338
0.032864
0.367762
0.312207
0.312207
0.312207
0.245696
0.189358
0
0.038376
0.302289
2,577
92
85
28.01087
0.672414
0.282499
0
0.339623
0
0
0.045927
0.029524
0
0
0
0
0
1
0.056604
false
0
0.075472
0.018868
0.169811
0.113208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0afacd436c5c382b382e786080775c8a2d6bf7
5,581
py
Python
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
otp/chat/ChatInputNormal.py
P1ayerOne/src
3a4343e29f844fe95da7d51aaee7fb680d02bf72
[ "BSD-3-Clause" ]
null
null
null
from direct.showbase import DirectObject from otp.otpbase import OTPGlobals import sys from direct.gui.DirectGui import * from pandac.PandaModules import * from otp.otpbase import OTPLocalizer class ChatInputNormal(DirectObject.DirectObject): ExecNamespace = None def __init__(self, chatMgr): self.chat...
34.450617
99
0.583766
529
5,581
6.117202
0.245747
0.058714
0.035538
0.024722
0.304388
0.272868
0.237948
0.2089
0.182324
0.144623
0
0.009757
0.320552
5,581
161
100
34.664596
0.843618
0
0
0.398601
0
0
0.046407
0
0
0
0
0
0
1
0.111888
false
0.006993
0.062937
0.006993
0.265734
0.027972
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0b53a65038120d7c635ea3a3f7ba3752ca109e
14,068
py
Python
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
1
2019-11-28T10:03:09.000Z
2019-11-28T10:03:09.000Z
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
train_text_summarizer.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
import argparse import json import numpy as np import pandas as pd import os from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report,f1_score from keras.models import Sequential from keras.layers import Dense, Dropout fro...
35.705584
151
0.649062
1,890
14,068
4.632275
0.12963
0.033923
0.013706
0.02193
0.710565
0.68578
0.653341
0.62924
0.583895
0.57076
0
0.020858
0.216164
14,068
393
152
35.796438
0.773102
0.201521
0
0.684015
0
0
0.070995
0.023393
0
0
0
0
0
1
0.02974
false
0
0.052045
0
0.096654
0.152416
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0d48bd45e2a77d4024e66ae20d64213df72227
1,493
py
Python
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/executor/test_status_manager.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
29.27451
74
0.750167
206
1,493
5.330097
0.504854
0.054645
0.035519
0.029144
0.051002
0
0
0
0
0
0
0.007293
0.173476
1,493
50
75
29.86
0.882496
0.348962
0
0
0
0
0.022965
0
0
0
0
0
0.107143
1
0.178571
false
0
0.214286
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a0d98e91f0c9a170743b5f41866a399dbce8684
3,494
py
Python
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
Supplemental/A5. Collision estimation module/Con_est.py
wangqf1997/Human-injury-based-safety-decision-of-automated-vehicles
b104fdeb3d85e867f6b04c5ae7b5a197e705aeba
[ "CC-BY-4.0" ]
null
null
null
''' ------------------------------------------------------------------------------------------------- This code accompanies the paper titled "Human injury-based safety decision of automated vehicles" Author: Qingfan Wang, Qing Zhou, Miao Lin, Bingbing Nie Corresponding author: Bingbing Nie (nbb@tsinghua.edu.cn) -------...
43.135802
117
0.556955
581
3,494
3.061962
0.189329
0.040472
0.055649
0.042159
0.539629
0.470489
0.467678
0.432827
0.412591
0.412591
0
0.070189
0.257871
3,494
81
118
43.135802
0.615889
0.178878
0
0.264151
0
0
0.004203
0
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.113208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0