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
07c5ea304ad9e83dcc3f691f719157c2c8a1317f
85
py
Python
app/auth/__init__.py
louisenje/Pitches
11248906ffa7d1b6ed6c47db0c5e7bd3b4768825
[ "Unlicense" ]
null
null
null
app/auth/__init__.py
louisenje/Pitches
11248906ffa7d1b6ed6c47db0c5e7bd3b4768825
[ "Unlicense" ]
null
null
null
app/auth/__init__.py
louisenje/Pitches
11248906ffa7d1b6ed6c47db0c5e7bd3b4768825
[ "Unlicense" ]
null
null
null
from flask import Blueprint auth=Blueprint('auth',__name__) from .import views,forms
21.25
31
0.811765
12
85
5.416667
0.666667
0.4
0
0
0
0
0
0
0
0
0
0
0.094118
85
4
32
21.25
0.844156
0
0
0
0
0
0.046512
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
5
07c638a7630e99e901331aada0e29b538ff7310d
1,482
py
Python
forms/QRGenerator.py
Rono-Barto-Co/Project-QR
e80fc5a41f25542038c090311844912790cb1478
[ "MIT" ]
3
2019-07-04T03:27:06.000Z
2019-09-06T08:52:35.000Z
forms/QRGenerator.py
Rono-Barto-Co/Project-QR
e80fc5a41f25542038c090311844912790cb1478
[ "MIT" ]
null
null
null
forms/QRGenerator.py
Rono-Barto-Co/Project-QR
e80fc5a41f25542038c090311844912790cb1478
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, SelectField from wtforms.validators import DataRequired class QRGenerator(FlaskForm): code_content = StringField('Content', validators=[DataRequired()]) code_size = SelectField('Size', choices=[('15', 'Size'), ...
54.888889
89
0.323887
87
1,482
5.436782
0.471264
0.046512
0
0
0
0
0
0
0
0
0
0.040419
0.549258
1,482
26
90
57
0.667665
0
0
0
0
0
0.112011
0
0
0
0
0
0
1
0
false
0
0.125
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07c6a477f6bfebee04a539e1d02b2df95226ab91
1,259
py
Python
Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
null
null
null
Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
null
null
null
Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np def estimate_volatility(prices, l): """Create an exponential moving average model of the volatility of a stock price, and return the most recent (last) volatility estimate. Parameters ---------- prices : pandas.Series A series of adjusted closing...
31.475
96
0.659253
165
1,259
4.915152
0.515152
0.083847
0.088779
0.071517
0.064118
0
0
0
0
0
0
0.007376
0.246227
1,259
39
97
32.282051
0.847208
0.586974
0
0
0
0
0.145161
0
0
0
0
0.025641
0
1
0.2
false
0
0.2
0
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
07c6e4237d951b4abd908ba105b7d327ebecef98
484
py
Python
jp.atcoder/abc122/abc122_c/9516079.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc122/abc122_c/9516079.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc122/abc122_c/9516079.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys n, q = map(int, sys.stdin.readline().split()) s = '$' + sys.stdin.readline().rstrip() lr = zip(*[map(int, sys.stdin.read().split())] * 2) def main(): res = [None] * (n + 1); res[0] = 0 prev = '$' for i in range(1, n+1): res[i] = res[i-1] res[i] += (prev == 'A' and s[i...
23.047619
52
0.452479
77
484
2.74026
0.480519
0.113744
0.085308
0.132701
0
0
0
0
0
0
0
0.024096
0.31405
484
20
53
24.2
0.611446
0
0
0
0
0
0.030108
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c71ca4f5171ffec7ba2da60f8676b83050c69c
2,262
py
Python
Decoder.py
gokulsg/Attention-is-all-you-need-implementation-from-scratch
f5eb591d169cbef3ef8b066d8d462fee11badc3b
[ "MIT" ]
1
2022-02-19T03:51:38.000Z
2022-02-19T03:51:38.000Z
Decoder.py
gokulsg/Attention-is-all-you-need-implementation-from-scratch
f5eb591d169cbef3ef8b066d8d462fee11badc3b
[ "MIT" ]
null
null
null
Decoder.py
gokulsg/Attention-is-all-you-need-implementation-from-scratch
f5eb591d169cbef3ef8b066d8d462fee11badc3b
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from DecoderLayer import DecoderLayer import math class Decoder(nn.Module): def __init__(self, output_dim, embed_dim, num_layers, num_heads, expand_dim, dropout, device, max_length = 30): super().__init__() self.tok_embedding = nn.Embedding(output_dim, emb...
42.679245
122
0.597259
304
2,262
4.213816
0.233553
0.087432
0.056206
0.058548
0.232631
0.145199
0.145199
0.064012
0.064012
0.064012
0
0.015
0.292661
2,262
53
123
42.679245
0.785625
0.155615
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c821ec1109c1e7667cac57580d2ee557fe694c
901
py
Python
salt/grains/nxos.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/grains/nxos.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/grains/nxos.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Grains for Cisco NX-OS minions .. versionadded:: 2016.11.0 For documentation on setting up the nxos proxy minion look in the documentation for :mod:`salt.proxy.nxos<salt.proxy.nxos>`. """ import logging import salt.utils.nxos import salt.utils.platform from salt.exceptions import NxosClientError log = logging....
21.97561
79
0.675916
113
901
5.168142
0.460177
0.092466
0.089041
0.068493
0.082192
0
0
0
0
0
0
0.009887
0.214206
901
40
80
22.525
0.814972
0.205327
0
0.086957
0
0
0.055085
0
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07c8e1478041c57a7ff67d2397fd305a48517875
3,356
py
Python
tmsproviderapisdk/tms_device.py
tvip/tmsproviderapisdk
f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1
[ "MIT" ]
null
null
null
tmsproviderapisdk/tms_device.py
tvip/tmsproviderapisdk
f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1
[ "MIT" ]
null
null
null
tmsproviderapisdk/tms_device.py
tvip/tmsproviderapisdk
f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1
[ "MIT" ]
null
null
null
from typing import List, Optional, Tuple from tmsproviderapisdk.tms_extended_model import TmsExtendedModel class TmsDevice(TmsExtendedModel): _path_url = "/devices/" def __init__(self, unique_id: str, account: int, device_id: int = None, ipaddr: str = None, mac: str = None, remote_custom_fie...
40.926829
120
0.598033
386
3,356
4.867876
0.165803
0.085152
0.090474
0.021288
0.30016
0.081426
0
0
0
0
0
0.001269
0.29559
3,356
81
121
41.432099
0.79357
0
0
0
0
0
0.116508
0
0
0
0
0
0
1
0.056338
false
0
0.028169
0.014085
0.15493
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07ca1045f3d1ae1412959e210adfbad3cf54eff0
7,676
py
Python
fealty/fields.py
eddiejessup/fealty
03745eb98d85bc2a5d08920773ab9c4515462d30
[ "BSD-3-Clause" ]
null
null
null
fealty/fields.py
eddiejessup/fealty
03745eb98d85bc2a5d08920773ab9c4515462d30
[ "BSD-3-Clause" ]
null
null
null
fealty/fields.py
eddiejessup/fealty
03745eb98d85bc2a5d08920773ab9c4515462d30
[ "BSD-3-Clause" ]
null
null
null
""" A class hierarchy relating to fields of all kinds. """ from __future__ import print_function, division import numpy as np from ciabatta.meta import make_repr_str from fealty import lattice, field_numerics, walled_field_numerics class Space(object): def __init__(self, L, dim): self.L = L self....
29.186312
74
0.60839
1,174
7,676
3.777683
0.099659
0.076212
0.032469
0.032469
0.695829
0.632694
0.570688
0.450282
0.416235
0.369335
0
0.01823
0.256774
7,676
262
75
29.29771
0.759159
0.028661
0
0.432161
0
0
0.058421
0
0
0
0
0
0.075377
1
0.180905
false
0.005025
0.020101
0.070352
0.371859
0.005025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07cb2143ea47874c58c2e1ce2165dfb24f78e2e2
583
py
Python
examples/example_django/example_django/asgi.py
cpascariello/aleph-vm
1b4920bec211ef3bd379e9359f57f06b9308c1a1
[ "MIT" ]
19
2021-04-13T14:01:06.000Z
2022-02-19T00:45:05.000Z
examples/example_django/example_django/asgi.py
cpascariello/aleph-vm
1b4920bec211ef3bd379e9359f57f06b9308c1a1
[ "MIT" ]
65
2021-04-14T09:02:24.000Z
2022-03-29T07:56:03.000Z
examples/example_django/example_django/asgi.py
cpascariello/aleph-vm
1b4920bec211ef3bd379e9359f57f06b9308c1a1
[ "MIT" ]
9
2021-06-01T23:03:28.000Z
2022-02-17T20:24:57.000Z
""" ASGI config for example_django project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault("DJANG...
26.5
78
0.766724
85
583
5.152941
0.647059
0.047945
0.082192
0.091324
0.164384
0.164384
0.164384
0.164384
0.164384
0
0
0.007692
0.108062
583
21
79
27.761905
0.834615
0.377358
0
0
0
0
0.507042
0.253521
0
0
0
0
0
1
0
false
0
0.285714
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
07cc54388c8061e52f8dc1aa33c14d904afe5143
3,964
py
Python
lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
4
2019-11-15T15:21:27.000Z
2020-07-08T15:04:30.000Z
lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
9
2019-11-18T15:54:36.000Z
2020-07-14T13:56:53.000Z
lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
3
2021-01-25T15:41:30.000Z
2021-09-21T08:51:36.000Z
"""Generate values of Method of Simulated Moments criterion function. Given observed moments and weighting matrix in `OUT_ANALYSIS`, "msm_estimation", generate values of Method of Simulated Moments criterion function for combinations of discount factor and present bias values. The goal is to study the bivariate distr...
36.703704
97
0.726791
477
3,964
5.75891
0.27673
0.022934
0.045868
0.053513
0.333091
0.233345
0.210047
0.183109
0.156898
0.04878
0
0.007192
0.193239
3,964
107
98
37.046729
0.851782
0.212916
0
0.031746
1
0
0.145698
0.008801
0
0
0
0
0
1
0.015873
false
0
0.253968
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07cdddcbeb3cb4de7a49a05fd2f00ba890200e08
180
py
Python
space_game/events/KeyPressedEvent.py
Iwomichu/probable-giggle
2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc
[ "MIT" ]
1
2020-11-30T11:21:21.000Z
2020-11-30T11:21:21.000Z
space_game/events/KeyPressedEvent.py
Iwomichu/probable-giggle
2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc
[ "MIT" ]
5
2020-11-03T16:46:49.000Z
2021-01-24T14:29:24.000Z
space_game/events/KeyPressedEvent.py
Iwomichu/probable-giggle
2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc
[ "MIT" ]
null
null
null
from dataclasses import dataclass from space_game.domain_names import KeyId from space_game.events.Event import Event @dataclass class KeyPressedEvent(Event): key_id: KeyId
18
41
0.822222
25
180
5.76
0.6
0.125
0.180556
0
0
0
0
0
0
0
0
0
0.133333
180
9
42
20
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.833333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
07cebbfa2f7886d8fbfa5e82f77ae6da2ef52744
703
py
Python
src/oncall/messengers/teams_messenger.py
navoday-91/oncall
0a977f06bbf308978d0d2c2b46e0aca23937ca9a
[ "BSD-2-Clause" ]
857
2017-05-03T00:59:10.000Z
2022-03-29T06:45:23.000Z
src/oncall/messengers/teams_messenger.py
navoday-91/oncall
0a977f06bbf308978d0d2c2b46e0aca23937ca9a
[ "BSD-2-Clause" ]
142
2017-05-03T02:00:58.000Z
2022-03-25T20:58:11.000Z
src/oncall/messengers/teams_messenger.py
navoday-91/oncall
0a977f06bbf308978d0d2c2b46e0aca23937ca9a
[ "BSD-2-Clause" ]
218
2017-05-03T02:04:56.000Z
2022-03-25T18:28:04.000Z
import pymsteams import logging from oncall.constants import TEAMS_SUPPORT class teams_messenger(object): supports = frozenset([TEAMS_SUPPORT]) def __init__(self, config): self.webhook = config['webhook'] def send(self, message): heading = message.get("subject") final_message = "...
30.565217
91
0.651494
73
703
6.150685
0.547945
0.066815
0
0
0
0
0
0
0
0
0
0
0.243243
703
22
92
31.954545
0.843985
0
0
0
0
0
0.135135
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07cf43823d8f9a2b976bcf3456b4ba03ebef67d9
11,632
py
Python
python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py
Laniakea94/BigDL
4d01734086dda893a7f08ba53251dc3c5c8ecfd1
[ "Apache-2.0" ]
3
2021-07-14T01:28:47.000Z
2022-03-02T01:16:32.000Z
python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py
liangs6212/BigDL
3c89ff7e8bbdc713110536c18099506811cd2b3a
[ "Apache-2.0" ]
null
null
null
python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py
liangs6212/BigDL
3c89ff7e8bbdc713110536c18099506811cd2b3a
[ "Apache-2.0" ]
null
null
null
# + # # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
48.066116
121
0.616145
1,432
11,632
4.869413
0.242318
0.024523
0.022372
0.012907
0.215402
0.18672
0.165209
0.150294
0.150294
0.125341
0
0.010662
0.314649
11,632
241
122
48.26556
0.864024
0.454178
0
0.069565
0
0.008696
0.10633
0.012091
0
0
0
0
0.017391
1
0.06087
false
0
0.06087
0
0.156522
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07cfa7c073692f7ff81f78defb2e3541ec3803be
13,313
py
Python
nf/flows.py
arita37/normalizing-flows
c9896656bfd2007b0c17b801c0fe068560127301
[ "MIT" ]
1
2019-11-11T05:40:30.000Z
2019-11-11T05:40:30.000Z
nf/flows.py
arita37/normalizing-flows
c9896656bfd2007b0c17b801c0fe068560127301
[ "MIT" ]
null
null
null
nf/flows.py
arita37/normalizing-flows
c9896656bfd2007b0c17b801c0fe068560127301
[ "MIT" ]
null
null
null
import math import numpy as np import scipy as sp import scipy.linalg import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F from nf.utils import unconstrained_RQS # supported non-linearities: note that the function must be invertible functional_derivatives = { torch.tanh: ...
35.312997
80
0.533539
1,962
13,313
3.504587
0.103976
0.031414
0.027196
0.020942
0.718877
0.663031
0.620419
0.612711
0.551338
0.522251
0
0.027957
0.312176
13,313
376
81
35.406915
0.722835
0.053857
0
0.542857
0
0
0.005503
0
0
0
0
0
0
1
0.103571
false
0
0.032143
0.003571
0.221429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07d1d3b232129762c8438710d6931bc551a36122
5,286
py
Python
ioos_qc/config_creator/fx_parser.py
HakaiInstitute/ioos_qc
dfb28ee404a17c8355747b792fba0471093953c4
[ "Apache-2.0" ]
null
null
null
ioos_qc/config_creator/fx_parser.py
HakaiInstitute/ioos_qc
dfb28ee404a17c8355747b792fba0471093953c4
[ "Apache-2.0" ]
null
null
null
ioos_qc/config_creator/fx_parser.py
HakaiInstitute/ioos_qc
dfb28ee404a17c8355747b792fba0471093953c4
[ "Apache-2.0" ]
1
2021-01-20T23:20:06.000Z
2021-01-20T23:20:06.000Z
# module pyparsing.py # # Copyright (c) 2003-2019 Paul T. McGuire # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, cop...
31.278107
112
0.600643
682
5,286
4.615836
0.379765
0.027954
0.022236
0.030178
0.031766
0.022236
0.022236
0.022236
0
0
0
0.014545
0.258608
5,286
168
113
31.464286
0.788722
0.439274
0
0.019608
0
0
0.052833
0.012165
0
0
0
0
0
1
0.04902
false
0
0.029412
0
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07d274563189ebc57a38c1571e12c09ed638080d
18,828
py
Python
scanlogger.py
pythonhacker/pyscanlogd
64d6ad38127243e5c422be7f899ecfa802e1ad21
[ "BSD-3-Clause" ]
1
2021-04-03T22:15:06.000Z
2021-04-03T22:15:06.000Z
scanlogger.py
pythonhacker/pyscanlogd
64d6ad38127243e5c422be7f899ecfa802e1ad21
[ "BSD-3-Clause" ]
null
null
null
scanlogger.py
pythonhacker/pyscanlogd
64d6ad38127243e5c422be7f899ecfa802e1ad21
[ "BSD-3-Clause" ]
2
2020-12-18T20:06:21.000Z
2021-04-08T02:47:40.000Z
# -- coding: utf-8 #!/usr/bin/env python """ pyscanlogger: Port scan detector/logger tool, inspired by scanlogd {http://www.openwall.com/scanlogd} but with added ability to log slow port-scans. Features 1. Detects all stealth (half-open) and full-connect scans. 2. Detects Idle scan and logs it correctly usi...
37.8833
132
0.468929
2,152
18,828
4.015799
0.196097
0.013539
0.017357
0.00648
0.206781
0.151701
0.11583
0.103795
0.103217
0.099514
0
0.013553
0.439611
18,828
496
133
37.959677
0.805516
0.126036
0
0.258065
0
0.016129
0.084012
0.001656
0
0
0.00053
0
0
0
null
null
0
0.029032
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
07d2a6693b06381833978cbf344d430f2c2b518b
4,539
py
Python
src/util/util.py
ashleylst/DSDmodel
4276c832e0335539aef2ae2b33e23719957a3f08
[ "MIT" ]
1
2021-07-26T17:30:16.000Z
2021-07-26T17:30:16.000Z
src/util/util.py
ashleylst/DSDmodel
4276c832e0335539aef2ae2b33e23719957a3f08
[ "MIT" ]
null
null
null
src/util/util.py
ashleylst/DSDmodel
4276c832e0335539aef2ae2b33e23719957a3f08
[ "MIT" ]
2
2020-06-29T15:43:22.000Z
2021-05-12T08:25:03.000Z
from itertools import combinations import copy def get_reverse(n): if n == 1: return 0 else: return 1 def get_edge_info(e): v = [0 for i in range(2)] n = [0 for i in range(2)] t = 0 for x in e: v[t], n[t] = x t += 1 return v, n def sort_e_by_domain(val)...
22.695
89
0.516193
638
4,539
3.589342
0.181818
0.019214
0.028821
0.028821
0.199127
0.168122
0.116594
0.091703
0.091703
0.091703
0
0.0524
0.348315
4,539
199
90
22.809045
0.721771
0.041199
0
0.061069
0
0
0
0
0
0
0
0
0
1
0.129771
false
0
0.015267
0.022901
0.305344
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07d5b427e69bdc09287f1c66c02797e0db0b274b
1,218
py
Python
examples/question_answering/qa_sparse_train.py
ebell495/nn_pruning
41263ab898117a639f3f219c23a4cecc8bc0e3f3
[ "Apache-2.0" ]
250
2021-02-22T15:50:04.000Z
2022-03-31T08:12:02.000Z
examples/question_answering/qa_sparse_train.py
vuiseng9/nn_pruning
8f4a14dd63d621483cbc1bc4eb34600d66e9e71b
[ "Apache-2.0" ]
28
2021-02-22T15:54:34.000Z
2022-03-17T08:57:38.000Z
examples/question_answering/qa_sparse_train.py
vuiseng9/nn_pruning
8f4a14dd63d621483cbc1bc4eb34600d66e9e71b
[ "Apache-2.0" ]
31
2021-02-22T16:07:17.000Z
2022-03-28T09:17:24.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Team 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 require...
43.5
128
0.769294
177
1,218
5.19774
0.632768
0.065217
0.028261
0.034783
0
0
0
0
0
0
0
0.008824
0.162562
1,218
27
129
45.111111
0.893137
0.729885
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
07d6951331a7c029a2698e9098ae813a023bef49
10,729
py
Python
ironic/drivers/modules/ilo/raid.py
armohamm/ironic
21093ca886ed736a7a25bf5e71e05d41e132fd2f
[ "Apache-2.0" ]
2
2019-06-17T21:37:53.000Z
2020-07-11T03:58:39.000Z
ironic/drivers/modules/ilo/raid.py
armohamm/ironic
21093ca886ed736a7a25bf5e71e05d41e132fd2f
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
ironic/drivers/modules/ilo/raid.py
armohamm/ironic
21093ca886ed736a7a25bf5e71e05d41e132fd2f
[ "Apache-2.0" ]
6
2019-06-13T12:49:33.000Z
2021-04-17T16:33:19.000Z
# Copyright 2018 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
45.461864
79
0.609004
1,203
10,729
5.143807
0.184539
0.106335
0.098901
0.049774
0.535068
0.476891
0.456529
0.421623
0.405785
0.392534
0
0.002322
0.317737
10,729
235
80
45.655319
0.843033
0.164321
0
0.47093
0
0
0.188168
0.060751
0
0
0
0
0
1
0.046512
false
0
0.075581
0
0.145349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07d7992d7ae8299b452c378aa6d4664a38bab354
1,252
py
Python
src/petronia/aid/bootstrap/__init__.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
19
2017-06-21T10:28:24.000Z
2021-12-31T11:49:28.000Z
src/petronia/aid/bootstrap/__init__.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
10
2016-11-11T18:57:57.000Z
2021-02-01T15:33:43.000Z
src/petronia/aid/bootstrap/__init__.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
3
2017-09-17T03:29:35.000Z
2019-06-03T10:43:08.000Z
""" Common Petronia imports for bootstrap parts of an extension. This should be imported along with the `simp` module. """ from ...base.bus import ( EventBus, ListenerRegistrar, ListenerSetup, QueuePriority, ExtensionMetadataStruct, register_event, EVENT_WILDCARD, TARGET_WILDCARD, ...
19.261538
60
0.747604
130
1,252
6.846154
0.561538
0.101124
0.031461
0
0
0
0
0
0
0
0
0
0.188498
1,252
64
61
19.5625
0.875984
0.126997
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.139535
0
0.139535
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
07d9159827c315605286d46a4f7de494b7d7489e
3,251
py
Python
examples/dump-properties.py
zachjweiner/pyopencl
4e2e4f3150c331680e6d9e36c59290411e4a0c40
[ "Apache-2.0" ]
7
2020-11-23T09:26:17.000Z
2021-01-26T08:23:30.000Z
examples/dump-properties.py
zachjweiner/pyopencl
4e2e4f3150c331680e6d9e36c59290411e4a0c40
[ "Apache-2.0" ]
null
null
null
examples/dump-properties.py
zachjweiner/pyopencl
4e2e4f3150c331680e6d9e36c59290411e4a0c40
[ "Apache-2.0" ]
1
2020-12-14T05:12:10.000Z
2020-12-14T05:12:10.000Z
import pyopencl as cl from optparse import OptionParser parser = OptionParser() parser.add_option("-s", "--short", action="store_true", help="don't print all device properties") (options, args) = parser.parse_args() def print_info(obj, info_cls): for info_name in sorted(dir(info_cls)): ...
38.702381
83
0.450015
311
3,251
4.488746
0.318328
0.045845
0.068052
0.036533
0.057307
0.041547
0.041547
0
0
0
0
0.006135
0.448477
3,251
83
84
39.168675
0.772448
0.014457
0
0.239437
0
0
0.091818
0
0
0
0
0
0
1
0.028169
false
0
0.028169
0
0.070423
0.197183
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07da573d0a32afbfa2ea160efcad1a4e21eef4c3
42,106
py
Python
interfaces/acados_template/acados_template/acados_ocp_solver.py
jgillis/acados
3119e2dda636a8358fbd52247eb0163a167cbc97
[ "BSD-2-Clause" ]
1
2020-07-30T10:54:35.000Z
2020-07-30T10:54:35.000Z
interfaces/acados_template/acados_template/acados_ocp_solver.py
jgillis/acados
3119e2dda636a8358fbd52247eb0163a167cbc97
[ "BSD-2-Clause" ]
null
null
null
interfaces/acados_template/acados_template/acados_ocp_solver.py
jgillis/acados
3119e2dda636a8358fbd52247eb0163a167cbc97
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: future_fstrings -*- # # Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren, # Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor, # Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan, # Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Di...
40.525505
175
0.644682
5,968
42,106
4.255027
0.096682
0.020083
0.013468
0.056509
0.648618
0.556313
0.499606
0.439395
0.398126
0.370363
0
0.006798
0.245428
42,106
1,038
176
40.564547
0.792459
0.1244
0
0.27208
0
0.007123
0.162951
0.028801
0
0
0
0.000963
0
1
0.022792
false
0
0.022792
0
0.061254
0.017094
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07da9e40651ed6fdc8a2ae109d81653125f5c378
5,128
py
Python
noise/estimation/PCA/analyticNoiseEstimation_PCA.py
MaikWischow/Camera-Condition-Monitoring
910f9192d6309a6803ab76c346269fa5029c38e6
[ "MIT" ]
3
2021-12-10T14:52:23.000Z
2022-03-22T08:48:08.000Z
noise/estimation/PCA/analyticNoiseEstimation_PCA.py
MaikWischow/Camera-Condition-Monitoring
910f9192d6309a6803ab76c346269fa5029c38e6
[ "MIT" ]
null
null
null
noise/estimation/PCA/analyticNoiseEstimation_PCA.py
MaikWischow/Camera-Condition-Monitoring
910f9192d6309a6803ab76c346269fa5029c38e6
[ "MIT" ]
2
2021-12-13T08:12:52.000Z
2022-01-17T14:00:48.000Z
import numpy as np import cv2 import sys import os import glob def im2patch(im, pch_size, stride=1): ''' Transform image to patches. Input: im: 3 x H x W or 1 X H x W image, numpy format pch_size: (int, int) tuple or integer stride: (int, int) tuple or integer ''' if isinsta...
34.884354
136
0.576248
738
5,128
3.855014
0.247967
0.029525
0.004218
0.011248
0.15536
0.105448
0.067487
0.056942
0.039367
0
0
0.01911
0.316303
5,128
147
137
34.884354
0.792356
0.284126
0
0.033708
0
0
0.031939
0
0
0
0
0
0
1
0.033708
false
0
0.05618
0
0.134831
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07dab8d1754575bc1f3f83e4e0cadea3c8dcd3af
8,104
py
Python
src/biotite/application/application.py
claudejrogers/biotite
3635bc9071506ecb85ddd9b1dbe6a430295e060e
[ "BSD-3-Clause" ]
null
null
null
src/biotite/application/application.py
claudejrogers/biotite
3635bc9071506ecb85ddd9b1dbe6a430295e060e
[ "BSD-3-Clause" ]
null
null
null
src/biotite/application/application.py
claudejrogers/biotite
3635bc9071506ecb85ddd9b1dbe6a430295e060e
[ "BSD-3-Clause" ]
null
null
null
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "biotite.application" __author__ = "Patrick Kunzmann" __all__ = ["Application", "AppStateError", "TimeoutError", "VersionError", "AppState", "...
31.169231
79
0.604516
918
8,104
5.269063
0.248366
0.072359
0.024602
0.01902
0.167666
0.096547
0.052719
0.013645
0
0
0
0.000534
0.307132
8,104
260
80
31.169231
0.860908
0.538129
0
0.287356
0
0
0.086515
0.009107
0
0
0
0
0
1
0.149425
false
0.091954
0.045977
0
0.356322
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
07db7794b6d98e1a7fc4b7e5727cce2c98e1474f
8,162
py
Python
python/paddle/tensor/attribute.py
douch/Paddle
81c40722869935d6e897f4b1aeb6e6f67606188a
[ "Apache-2.0" ]
1
2021-12-27T02:40:41.000Z
2021-12-27T02:40:41.000Z
python/paddle/tensor/attribute.py
LiYuRio/Paddle
dbd6e2df9d074973b7ee177e2d6b96ed2318008e
[ "Apache-2.0" ]
null
null
null
python/paddle/tensor/attribute.py
LiYuRio/Paddle
dbd6e2df9d074973b7ee177e2d6b96ed2318008e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 app...
33.178862
115
0.590787
1,068
8,162
4.39794
0.195693
0.044496
0.072812
0.073451
0.690228
0.589099
0.5693
0.554396
0.499255
0.466042
0
0.037664
0.29086
8,162
245
116
33.314286
0.773842
0.549253
0
0.342105
0
0
0.062075
0
0
0
0
0.004082
0
1
0.092105
false
0
0.131579
0
0.421053
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07de8a38f3e34f5218e591e882773caeb8f88eba
1,256
py
Python
ocdsmerge/exceptions.py
open-contracting/ocds-merge
80c7cb380d191c75f88feefd34b607bc0de13ee1
[ "BSD-3-Clause" ]
4
2017-09-06T06:14:09.000Z
2019-07-05T13:11:40.000Z
ocdsmerge/exceptions.py
open-contracting/ocds-merge
80c7cb380d191c75f88feefd34b607bc0de13ee1
[ "BSD-3-Clause" ]
20
2017-11-25T02:29:41.000Z
2020-01-08T18:45:49.000Z
ocdsmerge/exceptions.py
open-contracting/ocds-merge
80c7cb380d191c75f88feefd34b607bc0de13ee1
[ "BSD-3-Clause" ]
1
2018-11-07T14:05:12.000Z
2018-11-07T14:05:12.000Z
class OCDSMergeError(Exception): """Base class for exceptions from within this package""" class MissingDateKeyError(OCDSMergeError, KeyError): """Raised when a release is missing a 'date' key""" def __init__(self, key, message): self.key = key self.message = message def __str__(self)...
27.304348
97
0.700637
152
1,256
5.684211
0.394737
0.05787
0.063657
0.083333
0.387731
0.262731
0.215278
0.215278
0.111111
0.111111
0
0
0.204618
1,256
45
98
27.911111
0.864865
0.348726
0
0.315789
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0
0.105263
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
07dedb4b0df0aef6400f3a4ca8f79f22e2a6cabd
2,990
py
Python
appcodec.py
guardhunt/TelemterRC
679f99b317ecc6cbef6e022ae861cde18594f6a0
[ "MIT" ]
null
null
null
appcodec.py
guardhunt/TelemterRC
679f99b317ecc6cbef6e022ae861cde18594f6a0
[ "MIT" ]
null
null
null
appcodec.py
guardhunt/TelemterRC
679f99b317ecc6cbef6e022ae861cde18594f6a0
[ "MIT" ]
null
null
null
import evdev import time import struct class appcodec(): def __init__(self): self.device = evdev.InputDevice("/dev/input/event2") self.capabilities = self.device.capabilities(verbose=True) self.capaRAW = self.device.capabilities(absinfo=False) self.config = {} self.state = {...
37.375
262
0.585619
374
2,990
4.548128
0.286096
0.100529
0.074074
0.089947
0.349794
0.289242
0.201058
0
0
0
0
0.036968
0.285284
2,990
79
263
37.848101
0.759008
0.038462
0
0.068966
0
0
0.06311
0
0
0
0
0
0
1
0.068966
false
0.017241
0.051724
0
0.172414
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
07dee507ce31e115b2b94a29d53cdc5c3d4bd0df
2,316
py
Python
scripts/examples/OpenMV/16-Codes/find_barcodes.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
1,761
2015-07-10T23:14:17.000Z
2022-03-30T07:49:49.000Z
scripts/examples/OpenMV/16-Codes/find_barcodes.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
487
2015-07-07T23:21:20.000Z
2022-03-30T17:13:22.000Z
scripts/examples/OpenMV/16-Codes/find_barcodes.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
882
2015-08-01T08:34:19.000Z
2022-03-30T07:36:23.000Z
# Barcode Example # # This example shows off how easy it is to detect bar codes using the # OpenMV Cam M7. Barcode detection does not work on the M4 Camera. import sensor, image, time, math sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.VGA) # High Res! sensor.set_windowing((640, 80...
35.090909
121
0.638169
324
2,316
4.512346
0.401235
0.065663
0.109439
0.164159
0.086183
0.056088
0.056088
0.056088
0.056088
0
0
0.04442
0.222366
2,316
65
122
35.630769
0.767351
0.259067
0
0
0
0
0.093952
0
0
0
0
0
0
1
0.019231
false
0
0.019231
0
0.346154
0.057692
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07df8ef3eee337410a8a9059f852b86e3f074f99
102
py
Python
Python/factorial.py
devaslooper/Code-Overflow
d7d55ea0f5015bccb5c4100c4240464fcda8504a
[ "MIT" ]
null
null
null
Python/factorial.py
devaslooper/Code-Overflow
d7d55ea0f5015bccb5c4100c4240464fcda8504a
[ "MIT" ]
null
null
null
Python/factorial.py
devaslooper/Code-Overflow
d7d55ea0f5015bccb5c4100c4240464fcda8504a
[ "MIT" ]
null
null
null
n=int(input("Enter number ")) fact=1 for i in range(1,n+1): fact=fact*i print("Factorial is ",fact)
17
29
0.666667
21
102
3.238095
0.666667
0
0
0
0
0
0
0
0
0
0
0.034091
0.137255
102
5
30
20.4
0.738636
0
0
0
0
0
0.254902
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
07e01a30113159cdf23415b99ef5107294e27bab
606
py
Python
mundo 3/099.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
1
2021-08-04T13:21:22.000Z
2021-08-04T13:21:22.000Z
mundo 3/099.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
mundo 3/099.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
import time # O * é para desempacotar o paramêtro. Permite atribuir inumeros parametros. def maior(* num): contador = maior = 0 print('Analisando os valores passados...') for v in num: contador = contador + 1 print(f'{v} ', end='', flush=True) time.sleep(0.3) if contador == 1...
23.307692
76
0.544554
89
606
3.707865
0.539326
0.054545
0
0
0
0
0
0
0
0
0
0.05314
0.316832
606
25
77
24.24
0.743961
0.122112
0
0.1
0
0
0.214015
0
0
0
0
0
0
1
0.05
false
0.05
0.05
0
0.1
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07e0af37e19269400d7c0cf5ac0dc3b1672e18e4
10,752
py
Python
tests/test_packed_to_padded.py
theycallmepeter/pytorch3d_PBR
bc83c23969ff7843fc05d2da001952b368926174
[ "BSD-3-Clause" ]
null
null
null
tests/test_packed_to_padded.py
theycallmepeter/pytorch3d_PBR
bc83c23969ff7843fc05d2da001952b368926174
[ "BSD-3-Clause" ]
null
null
null
tests/test_packed_to_padded.py
theycallmepeter/pytorch3d_PBR
bc83c23969ff7843fc05d2da001952b368926174
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import unittest import torch from common_testing import TestCaseMixin, get_random_cuda_device from pyt...
39.384615
89
0.628255
1,355
10,752
4.635424
0.108487
0.033116
0.057953
0.043305
0.780608
0.736666
0.646712
0.609776
0.540519
0.496099
0
0.018483
0.280413
10,752
272
90
39.529412
0.793331
0.048735
0
0.41784
0
0
0.013111
0
0
0
0
0
0.042254
1
0.107981
false
0
0.023474
0
0.159624
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07e0ba1b41406f219565825c5f80d1ee0cfaded5
8,638
py
Python
easyric/tests/test_io_geotiff.py
HowcanoeWang/EasyRIC
a3420bc7b1e0f1013411565cf0e66dd2d2ba5371
[ "MIT" ]
12
2021-01-25T07:11:52.000Z
2022-02-14T11:57:03.000Z
easyric/tests/test_io_geotiff.py
HowcanoeWang/EasyRIC
a3420bc7b1e0f1013411565cf0e66dd2d2ba5371
[ "MIT" ]
null
null
null
easyric/tests/test_io_geotiff.py
HowcanoeWang/EasyRIC
a3420bc7b1e0f1013411565cf0e66dd2d2ba5371
[ "MIT" ]
null
null
null
import pyproj import pytest import numpy as np from easyric.io import geotiff, shp from skimage.io import imread from skimage.color import rgb2gray import matplotlib.pyplot as plt def test_prase_header_string_width(): out_dict = geotiff._prase_header_string("* 256 image_width (1H) 13503") assert out_dict['widt...
37.232759
117
0.683376
1,266
8,638
4.406003
0.262243
0.025099
0.048763
0.038724
0.459842
0.406597
0.293654
0.239333
0.207601
0.195411
0
0.174127
0.177587
8,638
232
118
37.232759
0.611064
0.04758
0
0.158228
0
0.037975
0.27078
0.064744
0
0
0
0.00431
0.183544
1
0.126582
false
0.025316
0.044304
0
0.170886
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07e0cae8b52445fc39f360d69691eeb8e3e8f35e
9,833
py
Python
src/ebay_rest/api/buy_marketplace_insights/models/item_location.py
matecsaj/ebay_rest
dd23236f39e05636eff222f99df1e3699ce47d4a
[ "MIT" ]
3
2021-12-12T04:28:03.000Z
2022-03-10T03:29:18.000Z
src/ebay_rest/api/buy_marketplace_insights/models/item_location.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
33
2021-06-16T20:44:36.000Z
2022-03-30T14:55:06.000Z
src/ebay_rest/api/buy_marketplace_insights/models/item_location.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
7
2021-06-03T09:30:23.000Z
2022-03-08T19:51:33.000Z
# coding: utf-8 """ Marketplace Insights API <a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limited Release\" />(Limited Release)</a> The Marketpl...
34.992883
442
0.616699
1,256
9,833
4.700637
0.16879
0.051491
0.085366
0.078252
0.571477
0.508977
0.492547
0.445122
0.365346
0.280318
0
0.027718
0.288213
9,833
280
443
35.117857
0.815831
0.485203
0
0.075
0
0
0.059952
0
0
0
0
0
0
1
0.166667
false
0
0.025
0
0.325
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07e1c7308c17fb9509fe646f19b12d537b946ccf
502
py
Python
fractionalKnapsack.py
aadishgoel2013/Algos-with-Python
19541607c8ede9a76a8cbbe047e01343080cfd5b
[ "Apache-2.0" ]
6
2017-11-12T05:13:27.000Z
2022-03-13T07:58:31.000Z
fractionalKnapsack.py
aadishgoel2013/Algos-with-Python
19541607c8ede9a76a8cbbe047e01343080cfd5b
[ "Apache-2.0" ]
null
null
null
fractionalKnapsack.py
aadishgoel2013/Algos-with-Python
19541607c8ede9a76a8cbbe047e01343080cfd5b
[ "Apache-2.0" ]
null
null
null
# Fractional Knapsack wt = [40,50,30,10,10,40,30] pro = [30,20,20,25,5,35,15] n = len(wt) data = [ (i,pro[i],wt[i]) for i in range(n) ] bag = 100 data.sort(key=lambda x: x[1]/x[2], reverse=True) profit=0 ans=[] i=0 while i<n: if data[i][2]<=bag: bag-=data[i][2] ans.append(data[i...
17.310345
49
0.498008
94
502
2.659574
0.414894
0.16
0.072
0.112
0.168
0.168
0
0
0
0
0
0.116667
0.282869
502
28
50
17.928571
0.577778
0.037849
0
0.095238
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07e2537b3e43653ce0616ed6421ef634050042c8
3,085
py
Python
pysrc/classifier.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
1,261
2016-12-16T14:29:30.000Z
2022-03-30T20:21:25.000Z
pysrc/classifier.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
190
2016-12-17T13:44:09.000Z
2022-03-27T09:28:13.000Z
pysrc/classifier.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
155
2016-12-16T22:17:20.000Z
2022-02-16T20:53:59.000Z
#!/usr/bin/env python # -*- python -*- #BEGIN_LEGAL # #Copyright (c) 2019 Intel Corporation # # 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-...
39.551282
96
0.647326
454
3,085
4.167401
0.396476
0.060254
0.059197
0.023256
0.103066
0.103066
0.080338
0.021142
0
0
0
0.023226
0.246353
3,085
77
97
40.064935
0.790538
0.322204
0
0
0
0
0.122152
0.015027
0
0
0
0.012987
0
1
0.047619
false
0
0.095238
0
0.166667
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
07e2d1b8a7c46e378298b64b296fe93ed48acbf5
1,828
py
Python
tests/integration/api/test_target_groups.py
lanz/Tenable.io-SDK-for-Python
e81a61c369ac103d1524b0898153a569536a131e
[ "MIT" ]
90
2017-02-02T18:36:17.000Z
2022-02-05T17:58:50.000Z
tests/integration/api/test_target_groups.py
lanz/Tenable.io-SDK-for-Python
e81a61c369ac103d1524b0898153a569536a131e
[ "MIT" ]
64
2017-02-03T00:54:00.000Z
2020-08-06T14:06:50.000Z
tests/integration/api/test_target_groups.py
lanz/Tenable.io-SDK-for-Python
e81a61c369ac103d1524b0898153a569536a131e
[ "MIT" ]
49
2017-02-03T01:01:00.000Z
2022-02-25T13:25:28.000Z
import pytest from tenable_io.api.target_groups import TargetListEditRequest from tenable_io.api.models import TargetGroup, TargetGroupList @pytest.mark.vcr() def test_target_groups_create(new_target_group): assert isinstance(new_target_group, TargetGroup), u'The `create` method did not return type `TargetGroup`...
44.585366
119
0.784464
260
1,828
5.276923
0.188462
0.152332
0.081633
0.058309
0.439504
0.39723
0.340379
0.198251
0.198251
0
0
0
0.126368
1,828
40
120
45.7
0.859111
0
0
0.241379
0
0
0.261488
0.012035
0
0
0
0
0.310345
1
0.172414
false
0
0.103448
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07e312b03c9acc9dee5930a523090053e38045ca
85,560
py
Python
Installation/nnAudio/Spectrogram.py
tasercake/nnAudio
5edc37b7b73674598d533261314429b875ba285d
[ "MIT" ]
null
null
null
Installation/nnAudio/Spectrogram.py
tasercake/nnAudio
5edc37b7b73674598d533261314429b875ba285d
[ "MIT" ]
null
null
null
Installation/nnAudio/Spectrogram.py
tasercake/nnAudio
5edc37b7b73674598d533261314429b875ba285d
[ "MIT" ]
null
null
null
""" Module containing all the spectrogram classes """ # 0.2.0 import torch import torch.nn as nn from torch.nn.functional import conv1d, conv2d, fold import numpy as np from time import time from nnAudio.librosa_functions import * from nnAudio.utils import * sz_float = 4 # size of a float epsilon = 10e-8 # fudg...
41.695906
172
0.593233
10,919
85,560
4.506457
0.06649
0.021542
0.012803
0.007316
0.759033
0.731191
0.706804
0.692355
0.679612
0.66307
0
0.015438
0.311057
85,560
2,051
173
41.716236
0.819326
0.426706
0
0.606132
0
0
0.061766
0.001006
0
0
0
0.000975
0.004717
1
0.038915
false
0.018868
0.008255
0.005896
0.102594
0.03184
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
07e4a4e5e49ff1a01f2886f954c1382ba8822f86
9,352
py
Python
train.py
hui-won/KoBART_Project
105608997473abc669d777c588d56382efb524c6
[ "MIT" ]
13
2020-12-30T15:09:08.000Z
2022-01-02T08:11:18.000Z
train.py
hui-won/KoBART_Project
105608997473abc669d777c588d56382efb524c6
[ "MIT" ]
2
2021-11-21T11:49:31.000Z
2022-03-18T05:09:13.000Z
train.py
hui-won/KoBART_Project
105608997473abc669d777c588d56382efb524c6
[ "MIT" ]
1
2021-06-15T01:24:18.000Z
2021-06-15T01:24:18.000Z
import argparse import logging import os import numpy as np import pandas as pd import pytorch_lightning as pl import torch from pytorch_lightning import loggers as pl_loggers from torch.utils.data import DataLoader, Dataset from dataset import KoBARTSummaryDataset from transformers import BartForConditionalGeneration,...
39.627119
153
0.559773
971
9,352
5.124614
0.223481
0.02713
0.034164
0.028135
0.270498
0.226889
0.196342
0.186294
0.152532
0.140474
0
0.005295
0.353828
9,352
235
154
39.795745
0.818137
0.013794
0
0.183673
0
0
0.079201
0.003906
0
0
0
0
0
1
0.076531
false
0
0.066327
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
07e4f4a4fe370f9d6aeaae97b9bd2ee2d9364898
11,945
py
Python
homeassistant/components/shelly/sensor.py
RavensburgOP/core
0ea76e848b182ca0ebb0fdb54558f7f733898ad7
[ "Apache-2.0" ]
1
2019-08-28T00:54:28.000Z
2019-08-28T00:54:28.000Z
homeassistant/components/shelly/sensor.py
RavensburgOP/core
0ea76e848b182ca0ebb0fdb54558f7f733898ad7
[ "Apache-2.0" ]
71
2020-07-14T09:08:56.000Z
2022-03-31T06:01:47.000Z
homeassistant/components/shelly/sensor.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
null
null
null
"""Sensor for Shelly.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final, cast import aioshelly from homeassistant.components import sensor from homeassistant.components.sensor import SensorEntity from homeassistant.config_entries import ConfigEntry from home...
34.226361
84
0.669904
1,244
11,945
6.157556
0.152733
0.071802
0.048042
0.063055
0.566449
0.517102
0.487728
0.45248
0.45248
0.437728
0
0.008376
0.230389
11,945
348
85
34.324713
0.824867
0.028631
0
0.508251
0
0
0.060957
0
0
0
0
0
0
1
0.033003
false
0
0.056106
0
0.132013
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07e5b14fe954fccf9ada38a8fb44f9dd227c6830
1,301
py
Python
tests/web/config.py
zcqian/biothings.api
61c0300317cf2ac7db8310b5b5741ad9b08c4163
[ "Apache-2.0" ]
null
null
null
tests/web/config.py
zcqian/biothings.api
61c0300317cf2ac7db8310b5b5741ad9b08c4163
[ "Apache-2.0" ]
null
null
null
tests/web/config.py
zcqian/biothings.api
61c0300317cf2ac7db8310b5b5741ad9b08c4163
[ "Apache-2.0" ]
null
null
null
""" Web settings to override for testing. """ import os from biothings.web.settings.default import QUERY_KWARGS # ***************************************************************************** # Elasticsearch Variables # ***************************************************************************** ES_INDEX = 'bts_...
34.236842
79
0.362798
92
1,301
4.858696
0.630435
0.098434
0.053691
0.085011
0.102908
0
0
0
0
0
0
0.006717
0.08455
1,301
37
80
35.162162
0.368598
0.602613
0
0
0
0
0.206897
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07e700a1cf3d3463190722de4956e44165a923c7
1,969
py
Python
InvenTree/InvenTree/management/commands/rebuild_thumbnails.py
rocheparadox/InvenTree
76c1e936db78424e0d6953c4062eb32863e302c6
[ "MIT" ]
656
2017-03-29T22:06:14.000Z
2022-03-30T11:23:52.000Z
InvenTree/InvenTree/management/commands/rebuild_thumbnails.py
rocheparadox/InvenTree
76c1e936db78424e0d6953c4062eb32863e302c6
[ "MIT" ]
1,545
2017-04-10T23:26:04.000Z
2022-03-31T18:32:10.000Z
InvenTree/InvenTree/management/commands/rebuild_thumbnails.py
fablabbcn/InvenTree
1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd
[ "MIT" ]
196
2017-03-28T03:06:21.000Z
2022-03-28T11:53:29.000Z
""" Custom management command to rebuild thumbnail images - May be required after importing a new dataset, for example """ import os import logging from PIL import UnidentifiedImageError from django.core.management.base import BaseCommand from django.conf import settings from django.db.utils import OperationalError...
27.732394
82
0.630269
214
1,969
5.775701
0.429907
0.05178
0.019417
0.027508
0.211974
0.211974
0.124595
0.124595
0
0
0
0
0.285932
1,969
70
83
28.128571
0.87909
0.111224
0
0.175
0
0
0.144366
0
0
0
0
0
0
1
0.05
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07e88f36bd18f9a9dc8241de858cfab239c3ca4a
1,758
py
Python
cogs/carbon.py
Baracchino-Della-Scuola/Bot
65c1ef37ca9eae5d104de7d7de5cc58cc138402d
[ "MIT" ]
6
2021-12-18T10:15:01.000Z
2022-03-25T18:11:04.000Z
cogs/carbon.py
Baracchino-Della-Scuola/Bot
65c1ef37ca9eae5d104de7d7de5cc58cc138402d
[ "MIT" ]
3
2022-01-13T12:44:46.000Z
2022-02-21T17:40:52.000Z
cogs/carbon.py
Baracchino-Della-Scuola/Bot
65c1ef37ca9eae5d104de7d7de5cc58cc138402d
[ "MIT" ]
1
2022-02-14T21:54:07.000Z
2022-02-14T21:54:07.000Z
import discord from discord.ext import commands import urllib.parse from .constants import themes, controls, languages, fonts, escales import os from pathlib import Path from typing import Any # from pyppeteer import launch from io import * import requests def encode_url(text: str) -> str: first_encoding = urlli...
21.975
86
0.633675
251
1,758
4.310757
0.398406
0.032348
0.027726
0.02403
0.040665
0
0
0
0
0
0
0.032847
0.220705
1,758
79
87
22.253165
0.756934
0.044369
0
0.042553
0
0
0.109705
0.045208
0
0
0
0
0
1
0.170213
false
0
0.191489
0.06383
0.638298
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
07e994b02286199ddba77a78c4751e4388520310
267
py
Python
examples/show_artist.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
examples/show_artist.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
examples/show_artist.py
jimcortez/spotipy_twisted
49ff2a4a5a5a9b3184b22adbe068eb91a38f3102
[ "MIT" ]
null
null
null
# shows artist info for a URN or URL import spotipy_twisted import sys import pprint if len(sys.argv) > 1: urn = sys.argv[1] else: urn = 'spotify:artist:3jOstUTkEu2JkjvRdBA5Gu' sp = spotipy_twisted.Spotify() artist = sp.artist(urn) pprint.pprint(artist)
15.705882
49
0.726592
40
267
4.8
0.525
0.145833
0.083333
0
0
0
0
0
0
0
0
0.022624
0.172285
267
16
50
16.6875
0.846154
0.127341
0
0
0
0
0.160173
0.160173
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07ea3ff52f1fa71b79053f13390d47944be9bd66
499
py
Python
examples/mcp3xxx_mcp3002_single_ended_simpletest.py
sommersoft/Adafruit_CircuitPython_MCP3xxx
94088a7e2b30f1b34e8a5fd7076075d88aad460b
[ "MIT" ]
null
null
null
examples/mcp3xxx_mcp3002_single_ended_simpletest.py
sommersoft/Adafruit_CircuitPython_MCP3xxx
94088a7e2b30f1b34e8a5fd7076075d88aad460b
[ "MIT" ]
null
null
null
examples/mcp3xxx_mcp3002_single_ended_simpletest.py
sommersoft/Adafruit_CircuitPython_MCP3xxx
94088a7e2b30f1b34e8a5fd7076075d88aad460b
[ "MIT" ]
null
null
null
import busio import digitalio import board import adafruit_mcp3xxx.mcp3002 as MCP from adafruit_mcp3xxx.analog_in import AnalogIn # create the spi bus spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI) # create the cs (chip select) cs = digitalio.DigitalInOut(board.D5) # create the mcp object mcp = M...
23.761905
66
0.747495
80
499
4.625
0.525
0.072973
0
0
0
0
0
0
0
0
0
0.030445
0.144289
499
20
67
24.95
0.836066
0.216433
0
0
0
0
0.07513
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
07eb8c54a1c0d882798ebdd645e52dda754bb70e
759
py
Python
glue/core/data_factories/tables.py
rosteen/glue
ed71979f8e0e41f993a2363b3b5a8f8c3167a130
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/core/data_factories/tables.py
mmorys/glue
b58ced518ba6f56c59a4e03ffe84afa47235e193
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/core/data_factories/tables.py
mmorys/glue
b58ced518ba6f56c59a4e03ffe84afa47235e193
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
from glue.core.data_factories.helpers import has_extension from glue.config import data_factory __all__ = ['tabular_data'] @data_factory(label="ASCII Table", identifier=has_extension('csv txt tsv tbl dat ' 'csv.gz txt.gz tbl.bz ' ...
33
75
0.613966
93
759
4.774194
0.516129
0.072072
0.081081
0.108108
0.168919
0
0
0
0
0
0
0.001894
0.304348
759
22
76
34.5
0.839015
0
0
0
0
0
0.123847
0
0
0
0
0
0
1
0.055556
false
0.055556
0.222222
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
1
0
0
0
0
0
1
07ebcae81863c1e60bd65e743d7f7961451a23cf
2,895
py
Python
code_doc/views/author_views.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/views/author_views.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/views/author_views.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render from django.http import Http404 from django.views.generic.edit import UpdateView from django.views.generic import ListView, View from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.utils.decorators import method_decorator...
28.382353
88
0.680484
332
2,895
5.756024
0.337349
0.03663
0.021978
0.031397
0.126635
0.03349
0
0
0
0
0
0.004966
0.234888
2,895
101
89
28.663366
0.857788
0.109154
0
0.220588
0
0
0.122986
0.06169
0
0
0
0.009901
0
1
0.058824
false
0.014706
0.176471
0
0.485294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07ee95bf0289bb4f328ba250a0e725c6cb917270
2,073
py
Python
d00dfeed/analyses/print_sloc_per_soc.py
rehosting/rehosting_sok
499b625c8aa60020f311df97a6253820982f20d4
[ "MIT" ]
4
2021-09-17T02:37:08.000Z
2022-02-15T01:44:41.000Z
d00dfeed/analyses/print_sloc_per_soc.py
rehosting/rehosting_sok
499b625c8aa60020f311df97a6253820982f20d4
[ "MIT" ]
null
null
null
d00dfeed/analyses/print_sloc_per_soc.py
rehosting/rehosting_sok
499b625c8aa60020f311df97a6253820982f20d4
[ "MIT" ]
null
null
null
# External deps import os, sys, json from pathlib import Path from typing import Dict, List # Internal deps os.chdir(sys.path[0]) sys.path.append("..") import df_common as dfc import analyses_common as ac # Generated files directory GEN_FILE_DIR = str(Path(__file__).resolve().parent.parent) + os.sep + "generated_file...
32.904762
122
0.673903
328
2,073
3.893293
0.317073
0.065779
0.062647
0.050901
0.076742
0.050117
0.050117
0.050117
0.050117
0.050117
0
0.002452
0.213218
2,073
62
123
33.435484
0.780503
0.095514
0
0.04878
0
0
0.132045
0
0
0
0
0.016129
0
1
0
false
0
0.170732
0
0.170732
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
07eea84b8f7990a608b685c1a60f3250095ce8a2
1,271
py
Python
mingpt/lr_decay.py
asigalov61/minGPT
b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b
[ "MIT" ]
18
2020-09-10T02:29:38.000Z
2022-03-16T03:17:35.000Z
mingpt/lr_decay.py
asigalov61/minGPT
b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b
[ "MIT" ]
null
null
null
mingpt/lr_decay.py
asigalov61/minGPT
b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b
[ "MIT" ]
7
2020-08-20T16:35:38.000Z
2022-01-10T21:57:49.000Z
import math import pytorch_lightning as pl class LearningRateDecayCallback(pl.Callback): def __init__(self, learning_rate, warmup_tokens=375e6, final_tokens=260e9, lr_decay=True): super().__init__() self.learning_rate = learning_rate self.tokens = 0 self.final_tokens = final_token...
41
106
0.609756
162
1,271
4.530864
0.395062
0.114441
0.108992
0.089918
0.114441
0
0
0
0
0
0
0.024581
0.29583
1,271
31
107
41
0.795531
0.080252
0
0
0
0
0.001715
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07ef68929a367d76f0cb572e51ac36b254e815b0
40,518
py
Python
apprise/config/ConfigBase.py
calvinbui/apprise
a5510790baf5aa1d74afabab25ff57d6b2304d56
[ "MIT" ]
null
null
null
apprise/config/ConfigBase.py
calvinbui/apprise
a5510790baf5aa1d74afabab25ff57d6b2304d56
[ "MIT" ]
null
null
null
apprise/config/ConfigBase.py
calvinbui/apprise
a5510790baf5aa1d74afabab25ff57d6b2304d56
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Chris Caron <lead2gold@gmail.com> # All rights reserved. # # This code is licensed under the MIT License. # # 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 th...
38.116651
79
0.550768
4,575
40,518
4.820109
0.157158
0.023218
0.01696
0.007618
0.33294
0.288455
0.267504
0.239162
0.225648
0.206421
0
0.002547
0.37993
40,518
1,062
80
38.152542
0.875179
0.376944
0
0.371739
0
0.002174
0.090078
0.010273
0
0
0
0
0
1
0.034783
false
0
0.034783
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
07f0b2b68417d129704d340d100e569555824ebc
977
py
Python
ffmpeg_util.py
manuel-fischer/ScrollRec
ec5662d3f61630f939613481290a166133d23a20
[ "MIT" ]
null
null
null
ffmpeg_util.py
manuel-fischer/ScrollRec
ec5662d3f61630f939613481290a166133d23a20
[ "MIT" ]
null
null
null
ffmpeg_util.py
manuel-fischer/ScrollRec
ec5662d3f61630f939613481290a166133d23a20
[ "MIT" ]
null
null
null
import sys import subprocess from subprocess import Popen, PIPE AV_LOG_QUIET = "quiet" AV_LOG_PANIC = "panic" AV_LOG_FATAL = "fatal" AV_LOG_ERROR = "error" AV_LOG_WARNING = "warning" AV_LOG_INFO = "info" AV_LOG_VERBOSE = "verbose" AV_LOG_DEBUG = "debug" ffmpeg_loglevel = AV_LOG_ERROR IS_WIN32 = 'win32' ...
24.425
89
0.698055
118
977
5.5
0.423729
0.069337
0.030817
0
0
0
0
0
0
0
0
0.007624
0.194473
977
40
90
24.425
0.817027
0.007165
0
0
0
0
0.088751
0
0
0
0
0
0
1
0.033333
false
0
0.1
0
0.166667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07f0cc1a2096d19875fd8be0522fd82d52ff8b5c
128
py
Python
setup.py
rizar/CLOSURE
57f80d4e89fa281830bb9c8b6a7a2498747e727a
[ "MIT" ]
14
2019-12-08T04:38:57.000Z
2021-07-13T15:46:57.000Z
setup.py
rizar/CLOSURE
57f80d4e89fa281830bb9c8b6a7a2498747e727a
[ "MIT" ]
null
null
null
setup.py
rizar/CLOSURE
57f80d4e89fa281830bb9c8b6a7a2498747e727a
[ "MIT" ]
2
2020-09-01T10:21:27.000Z
2021-01-15T02:38:25.000Z
from setuptools import setup setup( name="nmn-iwp", version="0.1", keywords="", packages=["vr", "vr.models"] )
14.222222
32
0.585938
16
128
4.6875
0.875
0
0
0
0
0
0
0
0
0
0
0.02
0.21875
128
8
33
16
0.73
0
0
0
0
0
0.164063
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
07f1195aa55500ccfbdb1eb16ce8a5e553bfeb5d
11,381
py
Python
analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
""" Represent a triangulated surface using a 3D boolean grid""" import logging import numpy as np from rpl.tools.ray_tracing.bsp_tree_poly import BSP_Element from rpl.tools.geometry import geom_utils import data_io class BSP_Grid(object): def __init__(self, node_array, tris, allocate_step=100000): ...
42.30855
99
0.567613
1,601
11,381
3.757027
0.202998
0.061347
0.042394
0.01995
0.299584
0.21596
0.200831
0.16143
0.147963
0.135661
0
0.014721
0.313593
11,381
269
100
42.30855
0.755248
0.199719
0
0.186335
0
0
0.085564
0.023027
0
0
0
0
0
1
0.049689
false
0
0.043478
0
0.136646
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07f12eb8f08aef21196193b3111071cb20b8013a
1,884
py
Python
silver_bullet/crypto.py
Hojung-Jeong/Silver-Bullet-Encryption-Tool
5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7
[ "Apache-2.0" ]
null
null
null
silver_bullet/crypto.py
Hojung-Jeong/Silver-Bullet-Encryption-Tool
5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7
[ "Apache-2.0" ]
null
null
null
silver_bullet/crypto.py
Hojung-Jeong/Silver-Bullet-Encryption-Tool
5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7
[ "Apache-2.0" ]
null
null
null
''' >List of functions 1. encrypt(user_input,passphrase) - Encrypt the given string with the given passphrase. Returns cipher text and locked pad. 2. decrypt(cipher_text,locked_pad,passphrase) - Decrypt the cipher text encrypted with SBET. It requires cipher text, locked pad, and passphrase. ''' # CODE ============...
24.789474
146
0.735669
260
1,884
5.215385
0.323077
0.058997
0.047198
0.056047
0.158555
0.158555
0.054572
0
0
0
0
0.00536
0.108811
1,884
76
147
24.789474
0.802263
0.213907
0
0.044444
0
0
0.002653
0
0
0
0
0
0
1
0.088889
false
0.155556
0.111111
0
0.288889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
07f1ea6de606abc50abb899228cdc43831fa522e
876
py
Python
pyfire/errors.py
RavidLevi98/pyfire
404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5
[ "BSD-3-Clause" ]
null
null
null
pyfire/errors.py
RavidLevi98/pyfire
404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5
[ "BSD-3-Clause" ]
1
2021-05-22T21:34:44.000Z
2021-05-22T21:34:44.000Z
pyfire/errors.py
RavidLevi98/pyfire
404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5
[ "BSD-3-Clause" ]
1
2021-05-22T21:21:11.000Z
2021-05-22T21:21:11.000Z
# -*- coding: utf-8 -*- """ pyfire.errors ~~~~~~~~~~~~~~~~~~~~~~ Holds the global used base errors :copyright: 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import xml.etree.ElementTree as ET class XMPPProtocolError(Exception): """Ba...
28.258065
72
0.651826
112
876
4.946429
0.5625
0.081227
0.070397
0
0
0
0
0
0
0
0
0.007452
0.234018
876
30
73
29.2
0.818182
0.359589
0
0
0
0
0.009709
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07f21adedf8ef7aa0ba52361a9cf4372ad43ac9a
4,967
py
Python
app/nextMoveLogic.py
thekitbag/starter-snake-python
48d12d2fa61ecfc976cd5750316b1db49a641f7f
[ "MIT" ]
null
null
null
app/nextMoveLogic.py
thekitbag/starter-snake-python
48d12d2fa61ecfc976cd5750316b1db49a641f7f
[ "MIT" ]
null
null
null
app/nextMoveLogic.py
thekitbag/starter-snake-python
48d12d2fa61ecfc976cd5750316b1db49a641f7f
[ "MIT" ]
null
null
null
import random class Status(object): def getHeadPosition(gamedata): me = gamedata['you'] my_position = me['body'] head = my_position[0] return head def getMyLength(gamedata): me = gamedata['you'] my_position = me['body'] if my_position[0] == my_position[1] == my_position[2]: return 1 elif my_...
29.217647
122
0.655124
604
4,967
5.32947
0.155629
0.055918
0.06151
0.072693
0.462255
0.370923
0.331469
0.314073
0.282075
0.177074
0
0.008033
0.172941
4,967
169
123
29.390533
0.77556
0.034629
0
0.227642
0
0
0.155635
0
0
0
0
0
0
1
0.146341
false
0.097561
0.00813
0
0.357724
0.01626
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
07f27b728b22aae57de29b0aad696e2f245d31dd
2,921
py
Python
generator/util.py
gbtami/lichess-puzzler
e7338b35f592481141acefe39c7aaa444b26aa9e
[ "MIT" ]
1
2021-02-20T11:21:53.000Z
2021-02-20T11:21:53.000Z
generator/util.py
gbtami/lichess-puzzler
e7338b35f592481141acefe39c7aaa444b26aa9e
[ "MIT" ]
null
null
null
generator/util.py
gbtami/lichess-puzzler
e7338b35f592481141acefe39c7aaa444b26aa9e
[ "MIT" ]
null
null
null
from dataclasses import dataclass import math import chess import chess.engine from model import EngineMove, NextMovePair from chess import Color, Board from chess.pgn import GameNode from chess.engine import SimpleEngine, Score nps = [] def material_count(board: Board, side: Color) -> int: values = { chess.PAWN:...
38.946667
442
0.66176
455
2,921
4.123077
0.349451
0.023987
0.028785
0.030384
0.057569
0.034115
0.034115
0
0
0
0
0.063812
0.200616
2,921
74
443
39.472973
0.739615
0.154399
0
0.224138
0
0
0.024857
0
0
0
0
0
0
1
0.137931
false
0
0.137931
0.034483
0.551724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
07f699666466b24dd921c96e35a918f2fe5e627b
293
py
Python
sleep.py
SkylerHoward/O
989246a5cdc297ab9f76cb6b26daebd799a03741
[ "MIT" ]
null
null
null
sleep.py
SkylerHoward/O
989246a5cdc297ab9f76cb6b26daebd799a03741
[ "MIT" ]
null
null
null
sleep.py
SkylerHoward/O
989246a5cdc297ab9f76cb6b26daebd799a03741
[ "MIT" ]
null
null
null
import time, morning from datetime import datetime def main(): while True: a = time.mktime(datetime.now().timetuple()) n = datetime.now() if n.hour == 6 and (n.minute-(n.minute%5)) == 15: return morning.main() time.sleep(300 - (time.mktime(datetime.now().timetuple())-a))
29.3
63
0.648464
43
293
4.418605
0.55814
0.173684
0.189474
0.221053
0.315789
0
0
0
0
0
0
0.028926
0.174061
293
10
63
29.3
0.756198
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
07f6a33d952a989c19f3efa056df22e95ace1f20
4,526
py
Python
tests/unit/commands/local/start_lambda/test_cli.py
ourobouros/aws-sam-cli
3fba861f5106d604fde6d023923a9b83377a35d9
[ "Apache-2.0" ]
2
2018-11-09T04:43:41.000Z
2018-11-20T06:39:45.000Z
tests/unit/commands/local/start_lambda/test_cli.py
ourobouros/aws-sam-cli
3fba861f5106d604fde6d023923a9b83377a35d9
[ "Apache-2.0" ]
null
null
null
tests/unit/commands/local/start_lambda/test_cli.py
ourobouros/aws-sam-cli
3fba861f5106d604fde6d023923a9b83377a35d9
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from mock import patch, Mock from samcli.commands.local.start_lambda.cli import do_cli as start_lambda_cli from samcli.commands.local.cli_common.user_exceptions import UserException from samcli.commands.validate.lib.exceptions import InvalidSamDocumentException from samcli.commands.local....
45.26
96
0.579319
451
4,526
5.48337
0.203991
0.04448
0.053781
0.048524
0.430247
0.430247
0.416903
0.401537
0.335625
0.296806
0
0.002057
0.355502
4,526
99
97
45.717172
0.845732
0.015245
0
0.375
0
0
0.07385
0.047811
0
0
0
0
0.0875
1
0.0625
false
0
0.075
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
07f8b674abd2c96105f1e6a593d1a4ae299e109a
5,389
py
Python
restapi/services/Utils/test_getters.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
3
2022-01-10T01:39:00.000Z
2022-01-11T13:17:36.000Z
restapi/services/Utils/test_getters.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
null
null
null
restapi/services/Utils/test_getters.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
1
2022-01-09T07:30:36.000Z
2022-01-09T07:30:36.000Z
from django.test import TestCase import pandas as pd from .getters import Getter from .converter import Converter from strategies.models import Company from strategies.models import IndicatorType class GetDataTestCase(TestCase): def setUp(self) -> None: # Dummy company data Company.objects.cre...
52.833333
119
0.660419
637
5,389
5.370487
0.10832
0.089448
0.128617
0.126279
0.806197
0.729027
0.583455
0.550132
0.466823
0.351944
0
0
0.200779
5,389
101
120
53.356436
0.794288
0.06903
0
0.189189
0
0
0.067389
0
0
0
0
0
0.310811
1
0.094595
false
0
0.081081
0
0.189189
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
07f928cd0ad75195469f95ed414958ac002210c7
3,376
py
Python
pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
2
2021-01-07T05:09:17.000Z
2021-10-15T05:13:46.000Z
pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
9
2021-09-08T03:12:59.000Z
2022-03-12T00:57:19.000Z
pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation 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 wri...
34.44898
101
0.627073
426
3,376
4.774648
0.373239
0.070796
0.038348
0.031465
0.205015
0.181908
0.096362
0.096362
0.026549
0
0
0.006457
0.265995
3,376
97
102
34.804124
0.814366
0.166469
0
0.142857
0
0
0.183119
0.067597
0.015873
0
0
0
0
1
0.079365
false
0
0.111111
0.015873
0.31746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07fabd24f913f0cde7669692291156d001f2e833
1,979
py
Python
svn-go-stats/transform.py
BT-OpenSource/bt-betalab
af5a1b0d778c1746312149f62da0c4159f387293
[ "MIT" ]
1
2021-03-02T10:44:07.000Z
2021-03-02T10:44:07.000Z
svn-go-stats/transform.py
BT-OpenSource/bt-betalab
af5a1b0d778c1746312149f62da0c4159f387293
[ "MIT" ]
null
null
null
svn-go-stats/transform.py
BT-OpenSource/bt-betalab
af5a1b0d778c1746312149f62da0c4159f387293
[ "MIT" ]
null
null
null
import sys import json import subprocess import re import statistics def get_complexity(): # Load the cyclomatic complexity info cyclostats = subprocess.check_output(['./gocyclo', 'repo']).decode("utf-8") results = re.findall('([0-9]+)\s([^\s]+)\s([^\s]+)\s([^:]+):([0-9]+):([0-9]+)', cyclostats) # S...
29.102941
106
0.623042
250
1,979
4.824
0.376
0.054726
0.104478
0.048093
0.157546
0.099502
0.099502
0
0
0
0
0.013953
0.239515
1,979
68
107
29.102941
0.787375
0.19808
0
0.195122
0
0.02439
0.139505
0.048193
0
0
0
0
0
1
0.04878
false
0
0.121951
0
0.219512
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07fb390e2fe8908e8e3a429d629ca30f1d77df66
11,225
py
Python
test/test_python_errors.py
yangyangxcf/parso
e496b07b6342f6182225a60aad6031d7ad08f24d
[ "PSF-2.0" ]
null
null
null
test/test_python_errors.py
yangyangxcf/parso
e496b07b6342f6182225a60aad6031d7ad08f24d
[ "PSF-2.0" ]
null
null
null
test/test_python_errors.py
yangyangxcf/parso
e496b07b6342f6182225a60aad6031d7ad08f24d
[ "PSF-2.0" ]
null
null
null
""" Testing if parso finds syntax errors and indentation errors. """ import sys import warnings import pytest import parso from parso._compatibility import is_pypy from .failing_examples import FAILING_EXAMPLES, indent, build_nested if is_pypy: # The errors in PyPy might be different. Just skip the module for n...
34.860248
96
0.625568
1,546
11,225
4.372574
0.207633
0.031953
0.035503
0.023669
0.383728
0.331953
0.29142
0.219379
0.203698
0.156805
0
0.020049
0.240178
11,225
321
97
34.968847
0.772541
0.132829
0
0.173913
0
0
0.25599
0
0
0
0
0
0.221739
1
0.091304
false
0.052174
0.052174
0.004348
0.195652
0.004348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
07fb5058c7a297096cbf1ff7f21aedcf66b7d3ad
985
py
Python
shogitk/usikif.py
koji-hirono/pytk-shogi-replayer
a10819a797faecbee5c7b0654beb3694eb522840
[ "MIT" ]
null
null
null
shogitk/usikif.py
koji-hirono/pytk-shogi-replayer
a10819a797faecbee5c7b0654beb3694eb522840
[ "MIT" ]
null
null
null
shogitk/usikif.py
koji-hirono/pytk-shogi-replayer
a10819a797faecbee5c7b0654beb3694eb522840
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from shogitk.shogi import Coords, Move, BLACK, WHITE, DROP, PROMOTE RANKNUM = { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9 } def decoder(f): color = ...
25.921053
74
0.450761
121
985
3.628099
0.454545
0.056948
0.088838
0.072893
0.232346
0.232346
0.132118
0.132118
0
0
0
0.043046
0.386802
985
37
75
26.621622
0.683775
0.02132
0
0.121212
0
0
0.011435
0
0
0
0
0
0
1
0.030303
false
0.030303
0.060606
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07fca3ec2f3896a49c6703b50dabc9ec79e258a9
2,160
py
Python
etherbank_cli/oracles.py
ideal-money/etherbank-cli
d957daa13aa951331cadc35c246c1ce8459ca8df
[ "BSD-2-Clause" ]
1
2018-12-29T02:12:25.000Z
2018-12-29T02:12:25.000Z
etherbank_cli/oracles.py
ideal-money/etherbank-cli
d957daa13aa951331cadc35c246c1ce8459ca8df
[ "BSD-2-Clause" ]
5
2018-12-20T12:45:39.000Z
2019-01-08T06:16:01.000Z
etherbank_cli/oracles.py
ideal-money/etherbank-cli
d957daa13aa951331cadc35c246c1ce8459ca8df
[ "BSD-2-Clause" ]
null
null
null
import click from . import utils @click.group() def main(): "Simple CLI for oracles to work with Ether dollar" pass @main.command() @click.option('--ether-price', type=float, help="The ether price in ether dollar") @click.option('--collateral-ratio', type=float, help="The collateral ratio") @click.option( ...
30
82
0.697222
286
2,160
5.111888
0.304196
0.06156
0.032832
0.045144
0.471272
0.401505
0.305746
0.305746
0.305746
0.305746
0
0.009637
0.183333
2,160
71
83
30.422535
0.819161
0.065741
0
0.37931
0
0
0.254167
0.010185
0
0
0
0
0.017241
1
0.068966
false
0.017241
0.034483
0
0.155172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07fd108f6337b8e7a88da0155cf318b6098e4ae4
2,585
py
Python
src/grader/machine.py
MrKaStep/csc230-grader
559846f4d921c5c4be6b6e9ba8629fb24b448e41
[ "MIT" ]
null
null
null
src/grader/machine.py
MrKaStep/csc230-grader
559846f4d921c5c4be6b6e9ba8629fb24b448e41
[ "MIT" ]
null
null
null
src/grader/machine.py
MrKaStep/csc230-grader
559846f4d921c5c4be6b6e9ba8629fb24b448e41
[ "MIT" ]
null
null
null
import getpass from plumbum import local from plumbum.machines.paramiko_machine import ParamikoMachine from plumbum.path.utils import copy def _once(f): res = None def wrapped(*args, **kwargs): nonlocal res if res is None: res = f(*args, **kwargs) return res return wrapp...
32.3125
133
0.600387
311
2,585
4.787781
0.215434
0.087307
0.036938
0.040296
0.20685
0.045668
0
0
0
0
0
0
0.292843
2,585
79
134
32.721519
0.814551
0
0
0.125
0
0
0.087848
0.010449
0
0
0
0
0
1
0.125
false
0.078125
0.0625
0.015625
0.296875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
07fdb99131cb0d8251646bea304d79ad58fc7ab6
157
py
Python
Mundo 1/Ex33.py
legna7/Python
52e0b642d1b7acc592ec82dd360c5697fb0765db
[ "MIT" ]
null
null
null
Mundo 1/Ex33.py
legna7/Python
52e0b642d1b7acc592ec82dd360c5697fb0765db
[ "MIT" ]
null
null
null
Mundo 1/Ex33.py
legna7/Python
52e0b642d1b7acc592ec82dd360c5697fb0765db
[ "MIT" ]
null
null
null
salario = float(input('digite o seu salario: ')) aumento = (salario + (salario * 15)/100 if salario <= 1250 else salario + (salario * 10)/100) print(aumento)
52.333333
93
0.687898
22
157
4.909091
0.636364
0.259259
0
0
0
0
0
0
0
0
0
0.105263
0.152866
157
3
94
52.333333
0.706767
0
0
0
0
0
0.139241
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
07ff0da6e717ab9585c2e512803b8604ff985d37
2,793
py
Python
tests/test_tree.py
andreax79/airflow-code-editor
031170387496bbc6d540179c6c2f1765e1e70694
[ "Apache-2.0" ]
194
2019-08-06T13:03:11.000Z
2022-03-25T15:29:29.000Z
tests/test_tree.py
andreax79/airflow-code-editor
031170387496bbc6d540179c6c2f1765e1e70694
[ "Apache-2.0" ]
29
2019-08-23T16:07:17.000Z
2022-03-31T03:43:47.000Z
tests/test_tree.py
andreax79/airflow-code-editor
031170387496bbc6d540179c6c2f1765e1e70694
[ "Apache-2.0" ]
32
2019-08-15T12:13:37.000Z
2022-03-31T17:27:24.000Z
#!/usr/bin/env python import os import os.path import airflow import airflow.plugins_manager from airflow import configuration from flask import Flask from unittest import TestCase, main from airflow_code_editor.commons import PLUGIN_NAME from airflow_code_editor.tree import ( get_tree, ) assert airflow.plugins_m...
31.382022
85
0.583602
371
2,793
4.191375
0.191375
0.063023
0.066881
0.063023
0.736334
0.708682
0.612862
0.561415
0.510611
0.463023
0
0.003982
0.280702
2,793
88
86
31.738636
0.770035
0.007161
0
0.597222
0
0
0.090188
0
0
0
0
0
0.222222
1
0.125
false
0
0.125
0
0.277778
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07ff31219d3e42ddfa090b695c0d4b6ede8d31e9
2,826
py
Python
examples/token_freshness.py
greenape/flask-jwt-extended
11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f
[ "MIT" ]
2
2021-03-20T01:55:08.000Z
2021-11-14T12:20:23.000Z
examples/token_freshness.py
greenape/flask-jwt-extended
11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f
[ "MIT" ]
1
2020-08-06T23:02:45.000Z
2020-09-26T01:36:21.000Z
examples/token_freshness.py
greenape/flask-jwt-extended
11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f
[ "MIT" ]
1
2020-10-28T20:09:00.000Z
2020-10-28T20:09:00.000Z
from quart import Quart, jsonify, request from quart_jwt_extended import ( JWTManager, jwt_required, create_access_token, jwt_refresh_token_required, create_refresh_token, get_jwt_identity, fresh_jwt_required, ) app = Quart(__name__) app.config["JWT_SECRET_KEY"] = "super-secret" # Change ...
33.247059
75
0.714084
398
2,826
4.89196
0.28392
0.067797
0.043657
0.039034
0.402671
0.327684
0.276323
0.237288
0.154083
0.154083
0
0.009044
0.178344
2,826
84
76
33.642857
0.829457
0.31564
0
0.288462
0
0
0.13309
0
0
0
0
0
0
1
0
false
0.115385
0.038462
0
0.173077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
07ff9a1f5ea3709124ad1fb347eb63a9284a7ad2
195
py
Python
env/lib/python3.7/site-packages/tinvest/typedefs.py
umchemurziev/Practics
82b49f9d58e67f1ecff9e6303e7d914bc1905730
[ "MIT" ]
1
2021-03-29T18:47:32.000Z
2021-03-29T18:47:32.000Z
env/lib/python3.7/site-packages/tinvest/typedefs.py
umchemurziev/Practics
82b49f9d58e67f1ecff9e6303e7d914bc1905730
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/tinvest/typedefs.py
umchemurziev/Practics
82b49f9d58e67f1ecff9e6303e7d914bc1905730
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Any, Dict, Union __all__ = 'AnyDict' AnyDict = Dict[str, Any] # pragma: no mutate datetime_or_str = Union[datetime, str] # pragma: no mutate
21.666667
59
0.738462
28
195
4.928571
0.5
0.115942
0.202899
0
0
0
0
0
0
0
0
0
0.174359
195
8
60
24.375
0.857143
0.179487
0
0
0
0
0.044586
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
07ffdb3c18cae37c2fe662c5c84ed5398af39b35
1,345
py
Python
keras/linear/model/pipeline_train.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
44
2017-11-17T06:19:05.000Z
2021-11-03T06:00:56.000Z
keras/linear/model/pipeline_train.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
3
2018-08-09T14:28:17.000Z
2018-09-10T03:32:42.000Z
keras/linear/model/pipeline_train.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
21
2017-11-18T15:12:12.000Z
2020-08-15T07:08:33.000Z
import os os.environ['KERAS_BACKEND'] = 'theano' os.environ['THEANO_FLAGS'] = 'floatX=float32,device=cpu' import cloudpickle as pickle import pipeline_invoke import pandas as pd import numpy as np import keras from keras.layers import Input, Dense from keras.models import Model from keras.models import save_model, loa...
30.568182
92
0.709294
196
1,345
4.69898
0.464286
0.034745
0.047774
0.068404
0.065147
0.065147
0.065147
0
0
0
0
0.018437
0.15316
1,345
43
93
31.27907
0.790167
0.094424
0
0
0
0
0.191261
0.078318
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
580077f8f713a612aa61ab64e08f6fd83f19a081
1,454
py
Python
tests/effects/test_cheerlights.py
RatJuggler/led-shim-effects
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
1
2021-04-17T16:18:14.000Z
2021-04-17T16:18:14.000Z
tests/effects/test_cheerlights.py
RatJuggler/led-shim-effects
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
12
2019-07-26T18:01:56.000Z
2019-08-31T15:35:17.000Z
tests/effects/test_cheerlights.py
RatJuggler/led-shim-demo
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import Mock, patch import sys sys.modules['smbus'] = Mock() # Mock the hardware layer to avoid errors. from ledshimdemo.canvas import Canvas from ledshimdemo.effects.cheerlights import CheerLightsEffect class TestCheerLights(TestCase): TEST_CANVAS_SIZE = 3 # t...
39.297297
106
0.72696
175
1,454
5.834286
0.405714
0.039177
0.054848
0.078355
0.27522
0.249755
0.249755
0.181195
0.181195
0.123408
0
0.00251
0.178129
1,454
36
107
40.388889
0.851883
0.078404
0
0.296296
0
0
0.113024
0.080838
0
0
0
0
0.148148
1
0.111111
false
0
0.185185
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5800997c4a49cdfc01a368bf3ebf423b84d98d2c
7,074
py
Python
figures/Figure_7/02_generate_images.py
Jhsmit/ColiCoords-Paper
7b92e67600930f64859d14867113b6de3edf1379
[ "MIT" ]
2
2019-05-12T12:06:50.000Z
2020-11-11T16:44:49.000Z
figures/Figure_7/02_generate_images.py
Jhsmit/ColiCoords-Paper
7b92e67600930f64859d14867113b6de3edf1379
[ "MIT" ]
null
null
null
figures/Figure_7/02_generate_images.py
Jhsmit/ColiCoords-Paper
7b92e67600930f64859d14867113b6de3edf1379
[ "MIT" ]
2
2019-06-17T16:00:56.000Z
2020-02-07T22:17:47.000Z
from colicoords.synthetic_data import add_readout_noise, draw_poisson from colicoords import load import numpy as np import mahotas as mh from tqdm import tqdm import os import tifffile def chunk_list(l, sizes): prev = 0 for s in sizes: result = l[prev:prev+s] prev += s yield result ...
40.890173
126
0.602771
1,062
7,074
3.822034
0.186441
0.055186
0.049273
0.068983
0.293915
0.232816
0.226657
0.196354
0.126632
0.034491
0
0.023374
0.250071
7,074
172
127
41.127907
0.741753
0.045095
0
0.128788
0
0
0.091516
0.010531
0
0
0
0
0.015152
1
0.045455
false
0
0.05303
0
0.121212
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5800bf043c25e136451e6eec4f012f681fa98619
336
py
Python
epiphancloud/models/settings.py
epiphan-video/epiphancloud_api
8799591ea4d3a7285976e0038716b23c9ffe7061
[ "MIT" ]
null
null
null
epiphancloud/models/settings.py
epiphan-video/epiphancloud_api
8799591ea4d3a7285976e0038716b23c9ffe7061
[ "MIT" ]
null
null
null
epiphancloud/models/settings.py
epiphan-video/epiphancloud_api
8799591ea4d3a7285976e0038716b23c9ffe7061
[ "MIT" ]
null
null
null
class DeviceSettings: def __init__(self, settings): self._id = settings["id"] self._title = settings["title"] self._type = settings["type"]["name"] self._value = settings["value"] @property def id(self): return self._id @property def value(self): ret...
22.4
45
0.583333
37
336
5.027027
0.351351
0.064516
0.150538
0
0
0
0
0
0
0
0
0
0.28869
336
14
46
24
0.778243
0
0
0.166667
0
0
0.059524
0
0
0
0
0
0
1
0.25
false
0
0
0.166667
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
1
0
0
0
1
0
0
0
2
580134063c60e1903557dccde046d7a394258b01
319
py
Python
dictionary.py
SchmitzAndrew/OSS-101-example
1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0
[ "MIT" ]
null
null
null
dictionary.py
SchmitzAndrew/OSS-101-example
1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0
[ "MIT" ]
null
null
null
dictionary.py
SchmitzAndrew/OSS-101-example
1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0
[ "MIT" ]
null
null
null
word = input("Enter a word: ") if word == "a": print("one; any") elif word == "apple": print("familiar, round fleshy fruit") elif word == "rhinoceros": print("large thick-skinned animal with one or two horns on its nose") else: print("That word must not exist. This dictionary is very comprehensive.")
29
77
0.667712
47
319
4.531915
0.765957
0.075117
0
0
0
0
0
0
0
0
0
0
0.197492
319
10
78
31.9
0.832031
0
0
0
0
0
0.595611
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
58023a0843c7993ed1535e882c1755e33a7a8544
116
py
Python
solved_bronze/num11720.py
ilmntr/white_study
51d69d122b07e9a0922dddb134bff4ec79077eb9
[ "MIT" ]
null
null
null
solved_bronze/num11720.py
ilmntr/white_study
51d69d122b07e9a0922dddb134bff4ec79077eb9
[ "MIT" ]
null
null
null
solved_bronze/num11720.py
ilmntr/white_study
51d69d122b07e9a0922dddb134bff4ec79077eb9
[ "MIT" ]
null
null
null
cnt = int(input()) num = list(map(int, input())) sum = 0 for i in range(len(num)): sum = sum + num[i] print(sum)
19.333333
29
0.586207
22
116
3.090909
0.636364
0.235294
0
0
0
0
0
0
0
0
0
0.010753
0.198276
116
6
30
19.333333
0.72043
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
58035ad02fa85d7c60de0ef4d5c14279175bc2ac
566
py
Python
setup.py
sdnhub/kube-navi
d16a9289ba7261011e6c8d19c48cdc9bd533e629
[ "Apache-2.0" ]
null
null
null
setup.py
sdnhub/kube-navi
d16a9289ba7261011e6c8d19c48cdc9bd533e629
[ "Apache-2.0" ]
null
null
null
setup.py
sdnhub/kube-navi
d16a9289ba7261011e6c8d19c48cdc9bd533e629
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name = 'kube_navi', packages = ['kube_navi'], # this must be the same as the name above version = '0.1', description = 'Kubernetes resource discovery toolkit', author = 'Srini Seetharaman', author_email = 'srini.seetharaman@gmail.com', url = 'https://github.com/sdnh...
40.428571
106
0.69788
79
566
4.949367
0.670886
0.081841
0.071611
0.086957
0.158568
0.158568
0.158568
0
0
0
0
0.008403
0.159011
566
13
107
43.538462
0.813025
0.210247
0
0
0
0.076923
0.479638
0.061086
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5804951a8f92330526763d3f11395d318d54d180
10,444
py
Python
flink-ai-flow/ai_flow/metric/utils.py
MarvinMiao/flink-ai-extended
e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-12-12T15:21:05.000Z
2020-12-12T15:21:05.000Z
flink-ai-flow/ai_flow/metric/utils.py
MarvinMiao/flink-ai-extended
e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-01-30T11:28:37.000Z
2021-01-30T11:28:37.000Z
flink-ai-flow/ai_flow/metric/utils.py
MarvinMiao/flink-ai-extended
e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
49.032864
122
0.627633
1,094
10,444
5.66819
0.142596
0.10966
0.041122
0.033382
0.362038
0.254959
0.153524
0.140945
0.115465
0.115465
0
0.003742
0.309077
10,444
212
123
49.264151
0.855599
0.072003
0
0.208333
0
0
0.010028
0
0
0
0
0
0
1
0.071429
false
0
0.053571
0.017857
0.22619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58055aabc65a23b166d03e3a5c7b5b2ffaa06173
3,154
py
Python
src/moduels/gui/Tab_Help.py
HaujetZhao/Caps_Writer
f2b2038a2c0984a1d356f024cbac421fe594601a
[ "MIT" ]
234
2020-07-10T11:23:09.000Z
2022-03-31T09:41:40.000Z
src/moduels/gui/Tab_Help.py
HaujetZhao/Caps_Writer
f2b2038a2c0984a1d356f024cbac421fe594601a
[ "MIT" ]
9
2020-07-11T08:31:11.000Z
2022-03-01T04:30:08.000Z
src/moduels/gui/Tab_Help.py
HaujetZhao/Caps_Writer
f2b2038a2c0984a1d356f024cbac421fe594601a
[ "MIT" ]
23
2020-07-14T08:58:44.000Z
2022-03-17T06:38:10.000Z
# -*- coding: UTF-8 -*- from PySide2.QtWidgets import QWidget, QPushButton, QVBoxLayout from PySide2.QtCore import Signal from moduels.component.NormalValue import 常量 from moduels.component.SponsorDialog import SponsorDialog import os, webbrowser class Tab_Help(QWidget): 状态栏消息 = Signal(str, int) def __init...
45.057143
132
0.69499
337
3,154
6.468843
0.338279
0.038532
0.054587
0.093119
0.157798
0.157798
0.157798
0.133945
0.133945
0
0
0.017836
0.182308
3,154
69
133
45.710145
0.827453
0.049778
0
0
0
0.018182
0.146203
0.017397
0
0
0
0
0
1
0.109091
false
0
0.109091
0
0.254545
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5805a2c8d616906daf19682b40baa91f10a88715
1,845
py
Python
app/routes/register.py
AuFeld/COAG
3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20
[ "MIT" ]
1
2021-06-03T10:29:12.000Z
2021-06-03T10:29:12.000Z
app/routes/register.py
AuFeld/COAG
3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20
[ "MIT" ]
45
2021-06-05T14:47:09.000Z
2022-03-30T06:16:44.000Z
app/routes/register.py
AuFeld/COAG
3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20
[ "MIT" ]
null
null
null
from typing import Callable, Optional, Type, cast from fastapi import APIRouter, HTTPException, Request, status from app.models import users from app.common.user import ErrorCode, run_handler from app.users.user import ( CreateUserProtocol, InvalidPasswordException, UserAlreadyExists, ValidatePassword...
32.946429
83
0.648238
184
1,845
6.293478
0.380435
0.018135
0.041451
0.051813
0.098446
0.098446
0.098446
0.098446
0.098446
0.098446
0
0.006767
0.279133
1,845
55
84
33.545455
0.86391
0.042276
0
0.133333
0
0
0.010795
0
0
0
0
0
0
1
0.022222
false
0.155556
0.111111
0
0.177778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5805ce50d417618b337a1e60276ff06de0f997f8
1,425
py
Python
utils/visual.py
xizaoqu/Panoptic-PolarNet
8ce05f437f54e030eac7de150f43caab2810cfbb
[ "BSD-3-Clause" ]
90
2021-03-30T08:02:15.000Z
2022-03-30T03:29:56.000Z
utils/visual.py
xizaoqu/Panoptic-PolarNet
8ce05f437f54e030eac7de150f43caab2810cfbb
[ "BSD-3-Clause" ]
11
2021-04-01T02:29:08.000Z
2022-03-04T07:30:50.000Z
utils/visual.py
xizaoqu/Panoptic-PolarNet
8ce05f437f54e030eac7de150f43caab2810cfbb
[ "BSD-3-Clause" ]
21
2021-04-01T09:29:38.000Z
2022-03-28T01:36:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 import numpy as np def flow_to_img(flow, normalize=True): """Convert flow to viewable image, using color hue to encode flow vector orientation, and color saturation to encode vector length. This is similar to the OpenCV tutorial on dense optical flow, e...
39.583333
116
0.665263
207
1,425
4.52657
0.497585
0.06937
0.034152
0
0
0
0
0
0
0
0
0.057502
0.218947
1,425
36
117
39.583333
0.784367
0.486316
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.117647
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
5806fd8ba37feb4c4d823dfb9c4c105ed07bdd0c
624
py
Python
DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py
zhkmxx9302013/SoftwarePilot
826098465b800085774946c20a7a283f369f1d21
[ "MIT" ]
4
2019-03-20T17:46:01.000Z
2019-03-31T17:32:44.000Z
DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py
zhkmxx9302013/SoftwarePilot
826098465b800085774946c20a7a283f369f1d21
[ "MIT" ]
null
null
null
DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py
zhkmxx9302013/SoftwarePilot
826098465b800085774946c20a7a283f369f1d21
[ "MIT" ]
null
null
null
import argparse from PIL import Image, ImageStat import math parser = argparse.ArgumentParser() parser.add_argument('fname') parser.add_argument('pref', default="", nargs="?") args = parser.parse_args() im = Image.open(args.fname) RGB = im.convert('RGB') imWidth, imHeight = im.size ratg = 1.2 ratgb = 1.66 ming = 10...
20.8
50
0.684295
104
624
4.076923
0.509615
0.042453
0.080189
0.051887
0
0
0
0
0
0
0
0.028571
0.158654
624
29
51
21.517241
0.779048
0
0
0
0
0
0.027244
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58077bea9c4435d13d9ff119348291eadd3323f7
4,561
py
Python
reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py
ped998/scripts
0dcaaf47f9676210e1c972a5d59d8d0de82a1d93
[ "Apache-2.0" ]
null
null
null
reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py
ped998/scripts
0dcaaf47f9676210e1c972a5d59d8d0de82a1d93
[ "Apache-2.0" ]
null
null
null
reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py
ped998/scripts
0dcaaf47f9676210e1c972a5d59d8d0de82a1d93
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """cluster storage stats for python""" # import pyhesity wrapper module from pyhesity import * from datetime import datetime import codecs # command line arguments import argparse parser = argparse.ArgumentParser() parser.add_argument('-v', '--vip', type=str, default='helios.cohesity.com') # cl...
49.043011
293
0.726814
501
4,561
6.60479
0.315369
0.026594
0.006346
0.007253
0.229979
0.221517
0.159263
0.125416
0.122696
0.070716
0
0.019425
0.10831
4,561
92
294
49.576087
0.794197
0.056128
0
0
0
0.09375
0.375146
0.234554
0
0
0
0
0
1
0.03125
false
0.046875
0.0625
0.015625
0.109375
0.046875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
580792f2d4c1bf5c14b84d5f807f69b1126aead4
5,422
py
Python
src/advanceoperate/malimgthread.py
zengrx/S.M.A.R.T
47a9abe89008e9b34f9b9d057656dbf3fb286456
[ "MIT" ]
10
2017-07-11T01:08:28.000Z
2021-05-07T01:49:00.000Z
src/advanceoperate/malimgthread.py
YanqiangHuang/S.M.A.R.T
47a9abe89008e9b34f9b9d057656dbf3fb286456
[ "MIT" ]
null
null
null
src/advanceoperate/malimgthread.py
YanqiangHuang/S.M.A.R.T
47a9abe89008e9b34f9b9d057656dbf3fb286456
[ "MIT" ]
6
2017-05-02T14:27:15.000Z
2017-05-15T05:56:40.000Z
#coding=utf-8 from PyQt4 import QtCore import os, glob, numpy, sys from PIL import Image from sklearn.cross_validation import StratifiedKFold from sklearn.metrics import confusion_matrix from sklearn.neighbors import KNeighborsClassifier from sklearn.neighbors import BallTree from sklearn import cross_validation from ...
31.34104
87
0.568241
669
5,422
4.487294
0.284006
0.006662
0.006995
0.007995
0.177881
0.138574
0.122585
0.122585
0.122585
0.122585
0
0.017013
0.317042
5,422
172
88
31.523256
0.793681
0.080229
0
0.174603
0
0
0.053957
0.032163
0
0
0
0
0
0
null
null
0
0.119048
null
null
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5807aa2f208ead7fccb84b1ddddcf37b4c200266
12,661
py
Python
tests/unittests/command_parse/test_stream.py
itamarhaber/iredis
61208aab34c731f88232abd2cacdf0e075e701f2
[ "BSD-3-Clause" ]
1,857
2019-08-09T02:36:13.000Z
2022-03-31T05:53:09.000Z
tests/unittests/command_parse/test_stream.py
itamarhaber/iredis
61208aab34c731f88232abd2cacdf0e075e701f2
[ "BSD-3-Clause" ]
281
2019-08-08T16:00:59.000Z
2022-03-07T14:05:36.000Z
tests/unittests/command_parse/test_stream.py
itamarhaber/iredis
61208aab34c731f88232abd2cacdf0e075e701f2
[ "BSD-3-Clause" ]
105
2019-08-09T04:36:12.000Z
2022-02-03T13:27:29.000Z
def test_xrange(judge_command): judge_command( "XRANGE somestream - +", {"command": "XRANGE", "key": "somestream", "stream_id": ["-", "+"]}, ) judge_command( "XRANGE somestream 1526985054069 1526985055069", { "command": "XRANGE", "key": "somestream", ...
27.523913
86
0.477766
1,037
12,661
5.699132
0.108968
0.140102
0.043147
0.060914
0.801184
0.711337
0.553299
0.483926
0.435871
0.349746
0
0.092985
0.373983
12,661
459
87
27.583878
0.652662
0.015086
0
0.504717
0
0
0.402311
0
0
0
0
0.002179
0
1
0.035377
false
0
0
0
0.035377
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6af1bee4f8dfc29969377047eaf5953641fb77f7
4,823
py
Python
tests/test_find_forks/test_find_forks.py
ivan2kh/find_forks
409251282a85da48445afc03c5a1797df393ca95
[ "MIT" ]
41
2015-05-15T14:37:42.000Z
2022-02-05T01:52:00.000Z
tests/test_find_forks/test_find_forks.py
ivan2kh/find_forks
409251282a85da48445afc03c5a1797df393ca95
[ "MIT" ]
12
2015-05-15T22:10:36.000Z
2021-12-05T14:21:58.000Z
tests/test_find_forks/test_find_forks.py
ivan2kh/find_forks
409251282a85da48445afc03c5a1797df393ca95
[ "MIT" ]
16
2015-05-15T14:44:33.000Z
2020-11-18T00:54:18.000Z
# coding: utf-8 """test_find_fork.""" # pylint: disable=no-self-use from __future__ import absolute_import, division, print_function, unicode_literals from os import path import unittest from six import PY3 from find_forks.__init__ import CONFIG from find_forks.find_forks import add_forks, determine_names, find_fork...
41.577586
146
0.644412
602
4,823
4.918605
0.237542
0.091185
0.037825
0.051334
0.387707
0.312732
0.206349
0.184059
0.151638
0.151638
0
0.011999
0.239685
4,823
115
147
41.93913
0.795473
0.096828
0
0.097561
0
0.073171
0.224238
0.060479
0
0
0
0
0.207317
1
0.073171
false
0
0.121951
0
0.231707
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af1e67adc2134fb57f91c04b0e1763048fc52e2
15,853
py
Python
neutron/agent/l3/dvr_router.py
insequent/neutron
2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5
[ "Apache-2.0" ]
null
null
null
neutron/agent/l3/dvr_router.py
insequent/neutron
2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5
[ "Apache-2.0" ]
null
null
null
neutron/agent/l3/dvr_router.py
insequent/neutron
2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Openstack Foundation # # 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 ...
43.196185
79
0.6272
2,172
15,853
4.28453
0.177256
0.012895
0.01354
0.018375
0.356437
0.290673
0.229422
0.190415
0.157748
0.1268
0
0.008087
0.290229
15,853
366
80
43.314208
0.818966
0.200151
0
0.204819
0
0
0.055867
0
0
0
0.001603
0.005464
0
1
0.092369
false
0
0.044177
0.004016
0.216867
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af266c300822127b8933d07e4d514dfddafdca3
575
py
Python
sider/warnings.py
PCManticore/sider
cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1
[ "MIT" ]
19
2015-01-17T18:24:36.000Z
2022-02-05T06:33:41.000Z
sider/warnings.py
PCManticore/sider
cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1
[ "MIT" ]
5
2016-01-13T14:19:44.000Z
2016-06-01T18:50:36.000Z
sider/warnings.py
PCManticore/sider
cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1
[ "MIT" ]
6
2015-08-16T10:32:09.000Z
2019-11-29T09:57:06.000Z
""":mod:`sider.warnings` --- Warning categories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module defines several custom warning category classes. """ class SiderWarning(Warning): """All warning classes used by Sider extend this base class.""" class PerformanceWarning(SiderWarning, RuntimeWarning): ...
25
71
0.683478
57
575
6.894737
0.631579
0.132316
0.147583
0.188295
0.26972
0.26972
0.26972
0
0
0
0
0
0.151304
575
22
72
26.136364
0.805328
0.657391
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3
6af312eaf5ecd0a0c44737d1362c73e2f2338489
2,512
py
Python
kadal/query.py
Bucolo/Kadal
a0085f15df4f8ebbf5ec4cd4344e207773c6b498
[ "MIT" ]
1
2022-03-12T15:04:01.000Z
2022-03-12T15:04:01.000Z
kadal/query.py
Bucolo/Kadal
a0085f15df4f8ebbf5ec4cd4344e207773c6b498
[ "MIT" ]
null
null
null
kadal/query.py
Bucolo/Kadal
a0085f15df4f8ebbf5ec4cd4344e207773c6b498
[ "MIT" ]
null
null
null
MEDIA_SEARCH = """ query ($search: String, $type: MediaType, $exclude: MediaFormat, $isAdult: Boolean) { Media(search: $search, type: $type, format_not: $exclude, isAdult: $isAdult) { id type format title { english romaji native } synonyms status description start...
14.03352
104
0.515525
214
2,512
5.995327
0.266355
0.042089
0.056118
0.039751
0.712393
0.690569
0.690569
0.690569
0.690569
0.690569
0
0
0.399682
2,512
178
105
14.11236
0.850796
0
0
0.683908
0
0.017241
0.956608
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6af335ed4a4087ef091d5830d5a795b074596342
1,032
py
Python
sandbox/test/testChainop.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
1
2021-05-26T19:22:17.000Z
2021-05-26T19:22:17.000Z
sandbox/test/testChainop.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
sandbox/test/testChainop.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
import unittest import operator import sandbox.chainop as chainop class BasicChainTest (unittest.TestCase): def testBasicChain(self): double = lambda x: x * 2 self.assertEqual(62, chainop.basic_chain((operator.add, double), 2, 31)) square = lambda x: x ** 2 self.assertEqual(2**31, ...
31.272727
98
0.650194
132
1,032
4.969697
0.371212
0.042683
0.04878
0.054878
0.216463
0.216463
0.216463
0.216463
0.216463
0.106707
0
0.04059
0.212209
1,032
32
99
32.25
0.766298
0
0
0.16
0
0
0.015504
0
0
0
0
0
0.16
1
0.12
false
0
0.12
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af3beecef5460df43fd5570a5ba8ce1f6a0d13d
1,131
py
Python
labs_final/lab5/experiments/run_trpo_pendulum.py
mrmotallebi/berkeley-deeprl-bootcamp
9257c693724c38edfa4571e3510667ca168b7ca1
[ "MIT" ]
3
2018-03-26T14:13:11.000Z
2020-07-23T22:26:28.000Z
labs_final/lab5/experiments/run_trpo_pendulum.py
mrmotallebi/berkeley-deeprl-bootcamp
9257c693724c38edfa4571e3510667ca168b7ca1
[ "MIT" ]
null
null
null
labs_final/lab5/experiments/run_trpo_pendulum.py
mrmotallebi/berkeley-deeprl-bootcamp
9257c693724c38edfa4571e3510667ca168b7ca1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import chainer from algs import trpo from env_makers import EnvMaker from models import GaussianMLPPolicy, MLPBaseline from utils import SnapshotSaver import numpy as np import os import logger log_dir = "data/local/trpo-pendulum" np.random.seed(42) # Clean up existing logs os.system("rm -rf {...
24.586957
51
0.678161
142
1,131
5.211268
0.450704
0.064865
0.075676
0.081081
0.343243
0.343243
0.343243
0.343243
0.343243
0.343243
0
0.02411
0.229885
1,131
45
52
25.133333
0.825488
0.038019
0
0.263158
0
0
0.040516
0.022099
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af3f2a17f291a65e5f9b17cbe9f19d00752f642
2,098
py
Python
jtyoui/regular/regexengine.py
yy1244/Jtyoui
d3c212ed9d6ffa6b37a8ca49098ab59c89216f09
[ "MIT" ]
1
2019-12-05T09:46:51.000Z
2019-12-05T09:46:51.000Z
jtyoui/regular/regexengine.py
yy1244/Jtyoui
d3c212ed9d6ffa6b37a8ca49098ab59c89216f09
[ "MIT" ]
null
null
null
jtyoui/regular/regexengine.py
yy1244/Jtyoui
d3c212ed9d6ffa6b37a8ca49098ab59c89216f09
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2019/12/2 10:17 # @Author: Jtyoui@qq.com """ 正则解析器 """ try: import xml.etree.cElementTree as et except ModuleNotFoundError: import xml.etree.ElementTree as et import re class RegexEngine: def __init__(self, xml, str_): """加载正则表。正则表为xml ...
27.246753
87
0.479981
234
2,098
4.175214
0.34188
0.067554
0.071648
0.0348
0.155578
0.143296
0.108495
0
0
0
0
0.011407
0.373213
2,098
76
88
27.605263
0.731559
0.109152
0
0.254902
0
0
0.027964
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.019608
0.27451
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af4d5fe8b77a49f0cbdce7b5f8e3248894cc3b5
5,117
py
Python
proglearn/transformers.py
rflperry/ProgLearn
9f799b4a8cf2157ba40b04842dc88eaf646e6420
[ "MIT" ]
null
null
null
proglearn/transformers.py
rflperry/ProgLearn
9f799b4a8cf2157ba40b04842dc88eaf646e6420
[ "MIT" ]
1
2020-11-25T19:21:54.000Z
2020-11-25T19:21:54.000Z
proglearn/transformers.py
rflperry/ProgLearn
9f799b4a8cf2157ba40b04842dc88eaf646e6420
[ "MIT" ]
null
null
null
""" Main Author: Will LeVine Corresponding Email: levinewill@icloud.com """ import keras import numpy as np from sklearn.tree import DecisionTreeClassifier from sklearn.utils.validation import check_array, check_is_fitted, check_X_y from .base import BaseTransformer class NeuralClassificationTransformer(BaseTransfor...
26.931579
94
0.587063
526
5,117
5.60076
0.277567
0.00611
0.023082
0.031229
0.39647
0.376103
0.3537
0.3537
0.3537
0.3537
0
0.004018
0.319132
5,117
189
95
27.074074
0.841561
0.492671
0
0.148148
0
0
0.039939
0.012133
0
0
0
0
0
1
0.111111
false
0
0.092593
0
0.314815
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af5766ae43b84c8b76547fb51e5b56cfdb7f3af
9,900
py
Python
morphelia/external/saphire.py
marx-alex/Morphelia
809278b07f1a535789455d54df3cbddc850d609c
[ "MIT" ]
null
null
null
morphelia/external/saphire.py
marx-alex/Morphelia
809278b07f1a535789455d54df3cbddc850d609c
[ "MIT" ]
null
null
null
morphelia/external/saphire.py
marx-alex/Morphelia
809278b07f1a535789455d54df3cbddc850d609c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.collections as mcoll from matplotlib.ticker import MaxNLocator plt.style.use('seaborn-darkgrid') class BaseTraj: def __init__(self, model, X): self.model = model assert len(X.shape) == 2, f"X should be 2...
34.256055
114
0.58101
1,353
9,900
4.10643
0.219512
0.015839
0.011699
0.012599
0.330094
0.287077
0.232901
0.227322
0.215443
0.215443
0
0.02578
0.290808
9,900
288
115
34.375
0.76556
0.153939
0
0.248485
0
0
0.053348
0.003279
0
0
0
0
0.018182
1
0.09697
false
0
0.030303
0
0.224242
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af5ea523e6e4b25159d80c12448780bfd106c8c
4,824
py
Python
account/views.py
Stfuncode/food-beverage-investigator
0fea4943a5c2634068dc04118f83742327937c25
[ "MIT" ]
null
null
null
account/views.py
Stfuncode/food-beverage-investigator
0fea4943a5c2634068dc04118f83742327937c25
[ "MIT" ]
null
null
null
account/views.py
Stfuncode/food-beverage-investigator
0fea4943a5c2634068dc04118f83742327937c25
[ "MIT" ]
null
null
null
import imp from venv import create from django.shortcuts import render, redirect from django.views import View from django.views.generic import ( ListView, ) from account.models import * from account.forms import * from data.models import * from django.contrib.auth import login as auth_login from django.contrib.a...
33.5
87
0.645522
521
4,824
5.873321
0.241843
0.029412
0.037255
0.027778
0.355882
0.287582
0.250654
0.222549
0.196405
0.196405
0
0.001926
0.246476
4,824
144
88
33.5
0.83989
0.004768
0
0.385246
0
0
0.115
0.023958
0
0
0
0
0
1
0.081967
false
0
0.098361
0
0.401639
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af67173be2103fc04ef7a7c51b006d1f866e003
2,697
py
Python
fpds/client.py
mgradowski/aiproject
855332bd982bef2530ad935a209ae8be35963165
[ "MIT" ]
null
null
null
fpds/client.py
mgradowski/aiproject
855332bd982bef2530ad935a209ae8be35963165
[ "MIT" ]
null
null
null
fpds/client.py
mgradowski/aiproject
855332bd982bef2530ad935a209ae8be35963165
[ "MIT" ]
null
null
null
import cv2 import aiohttp import asyncio import concurrent.futures import argparse import numpy as np async def camera_source(ws: aiohttp.ClientWebSocketResponse, threadpool: concurrent.futures.ThreadPoolExecutor, src_id: int=0): loop = asyncio.get_running_loop() try: src = await loop.run_in_executor(...
35.025974
127
0.668891
330
2,697
5.275758
0.354545
0.024124
0.080414
0.032165
0.276852
0.213096
0.180931
0.072947
0.049397
0
0
0.012943
0.226548
2,697
76
128
35.486842
0.821668
0.000742
0
0.25
0
0
0.042703
0
0
0
0
0
0
1
0.014706
false
0.029412
0.088235
0
0.102941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af759aad1d331394cb7f013c9559f17569541f2
3,619
py
Python
Giveme5W1H/extractor/tools/key_value_cache.py
bkrrr/Giveme5W
657738781fe387d76e6e0da35ed009ccf81f4290
[ "Apache-2.0" ]
410
2018-05-02T12:53:02.000Z
2022-03-28T16:11:34.000Z
Giveme5W1H/extractor/tools/key_value_cache.py
bkrrr/Giveme5W
657738781fe387d76e6e0da35ed009ccf81f4290
[ "Apache-2.0" ]
51
2018-05-02T13:53:19.000Z
2022-03-22T00:16:39.000Z
Giveme5W1H/extractor/tools/key_value_cache.py
TU-Berlin/Giveme5W1H
b1586328393a50acde86015d22f78a4c15bf2f34
[ "Apache-2.0" ]
81
2018-05-29T14:03:27.000Z
2022-02-08T08:59:38.000Z
import logging import os import pickle import sys import threading import time from typing import List from Giveme5W1H.extractor.root import path from Giveme5W1H.extractor.tools.util import bytes_2_human_readable class KeyValueCache(object): def __init__(self, cache_path): """ :param cache_path: ...
30.931624
115
0.585797
449
3,619
4.538976
0.325167
0.092738
0.076546
0.020608
0.136899
0.098626
0.027478
0
0
0
0
0.004
0.309201
3,619
116
116
31.198276
0.8112
0.235424
0
0.137931
0
0
0.033953
0
0
0
0
0
0
1
0.172414
false
0
0.155172
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af7f07129b756fc33dfdd705556d009ef89fe63
3,121
py
Python
nsst_translate_corpus.py
AlexanderJenke/nsst
75f6afa39568c72c9c513ac0313db33b80bb67d5
[ "Apache-2.0" ]
null
null
null
nsst_translate_corpus.py
AlexanderJenke/nsst
75f6afa39568c72c9c513ac0313db33b80bb67d5
[ "Apache-2.0" ]
null
null
null
nsst_translate_corpus.py
AlexanderJenke/nsst
75f6afa39568c72c9c513ac0313db33b80bb67d5
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentParser from tqdm import tqdm import NSST from nsst_translate import best_transition_sequence if __name__ == '__main__': parser = ArgumentParser() parser.add_argument("--nsst_file", default="output/nsst_tss20_th4_nSt100_Q0.pkl", help="nsst file") parser.add_argument("--src_lan...
32.852632
104
0.544056
404
3,121
3.977723
0.279703
0.034848
0.052894
0.022402
0.18046
0.100809
0.065961
0
0
0
0
0.017476
0.339955
3,121
94
105
33.202128
0.762621
0.065043
0
0.03125
0
0
0.135237
0.096008
0
0
0
0
0
1
0
false
0.015625
0.0625
0
0.0625
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6afa2508436ad02c7fe767127789a72b5fa053d8
382
py
Python
10 Days of Statistics/Day 1/Standard Deviation.py
dhyanpatel110/HACKERRANK
949b1ff468ff3487663bf063a8fe6cdfb9dea26b
[ "Apache-2.0" ]
null
null
null
10 Days of Statistics/Day 1/Standard Deviation.py
dhyanpatel110/HACKERRANK
949b1ff468ff3487663bf063a8fe6cdfb9dea26b
[ "Apache-2.0" ]
null
null
null
10 Days of Statistics/Day 1/Standard Deviation.py
dhyanpatel110/HACKERRANK
949b1ff468ff3487663bf063a8fe6cdfb9dea26b
[ "Apache-2.0" ]
null
null
null
# Import library import math # Define functionts def mean(data): return sum(data) / len(data) def stddev(data, size): sum = 0 for i in range(size): sum = sum + (data[i] - mean(data)) ** 2 return math.sqrt(sum / size) # Set data size = int(input()) numbers = list(map(int, input().split())) # ...
19.1
47
0.63089
57
382
4.22807
0.578947
0.06639
0
0
0
0
0
0
0
0
0
0.01
0.21466
382
19
48
20.105263
0.793333
0.167539
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.454545
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6afb588f82055ac18339fc17c00162ed0a0496d8
314
py
Python
Homework/Hw4/Solution/problem5a.py
jmsevillam/Herramientas-Computacionales-UniAndes
957338873bd6a17201dfd4629c7edd5760e2271d
[ "MIT" ]
null
null
null
Homework/Hw4/Solution/problem5a.py
jmsevillam/Herramientas-Computacionales-UniAndes
957338873bd6a17201dfd4629c7edd5760e2271d
[ "MIT" ]
null
null
null
Homework/Hw4/Solution/problem5a.py
jmsevillam/Herramientas-Computacionales-UniAndes
957338873bd6a17201dfd4629c7edd5760e2271d
[ "MIT" ]
5
2019-05-27T13:35:51.000Z
2020-09-30T15:19:39.000Z
def decode(word1,word2,code): if len(word1)==1: code+=word1+word2 return code else: code+=word1[0]+word2[0] return decode(word1[1:],word2[1:],code) Alice='Ti rga eoe esg o h ore"ermetsCmuainls' Bob='hspormdcdsamsaefrtecus Hraina optcoae"' print(decode(Alice,Bob,''))
24.153846
47
0.630573
44
314
4.5
0.568182
0.111111
0
0
0
0
0
0
0
0
0
0.057143
0.219745
314
12
48
26.166667
0.75102
0
0
0
0
0
0.242038
0.070064
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6afbbfc0a8b4d96b676b80363b2e541af846b662
7,415
py
Python
pychron/lasers/power/composite_calibration_manager.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/lasers/power/composite_calibration_manager.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/lasers/power/composite_calibration_manager.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2012 Jake Ross # # 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/licens...
30.142276
88
0.552124
774
7,415
5.127907
0.31137
0.018141
0.028219
0.013605
0.11741
0.081633
0.058453
0
0
0
0
0.006265
0.311126
7,415
245
89
30.265306
0.770752
0.157249
0
0.130682
0
0
0.062086
0.003395
0
0
0
0
0
1
0.085227
false
0
0.068182
0.005682
0.289773
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0