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
c614a1664f6bdf152a7894bbff6e36ef78258fe0
1,234
py
Python
tests/test_asdf_schema.py
WilliamJamieson/asdf-standard
d0934b2abd95507e5d5f79ed69782d5b6b24eadd
[ "BSD-3-Clause" ]
47
2015-04-21T10:03:44.000Z
2020-06-16T12:02:35.000Z
tests/test_asdf_schema.py
WilliamJamieson/asdf-standard
d0934b2abd95507e5d5f79ed69782d5b6b24eadd
[ "BSD-3-Clause" ]
120
2015-01-12T23:45:17.000Z
2020-06-06T17:20:28.000Z
tests/test_asdf_schema.py
WilliamJamieson/asdf-standard
d0934b2abd95507e5d5f79ed69782d5b6b24eadd
[ "BSD-3-Clause" ]
22
2015-04-21T10:14:44.000Z
2020-06-16T08:55:17.000Z
import pytest from common import SCHEMAS_PATH, assert_yaml_header_and_footer, load_yaml from jsonschema import ValidationError @pytest.mark.parametrize("path", SCHEMAS_PATH.glob("asdf-schema-*.yaml")) def test_asdf_schema(path): assert_yaml_header_and_footer(path) # Asserting no exceptions here load_yaml...
33.351351
108
0.67342
139
1,234
5.827338
0.410072
0.074074
0.081481
0.088889
0.449383
0.449383
0.377778
0.377778
0.28642
0.150617
0
0.001947
0.167747
1,234
36
109
34.277778
0.786758
0.081037
0
0.217391
0
0
0.191585
0
0
0
0
0
0.086957
1
0.086957
false
0
0.130435
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c61593afa95fc30a19ca5363d13b5db09015e8fd
5,552
py
Python
retinanet/dataloader/label_encoder.py
lchen-wyze/retinanet-tensorflow2.x
86404a2da6ec636d4b1aef768ac52f018c127798
[ "Apache-2.0" ]
36
2020-09-23T13:32:47.000Z
2022-03-29T18:53:58.000Z
retinanet/dataloader/label_encoder.py
lchen-wyze/retinanet-tensorflow2.x
86404a2da6ec636d4b1aef768ac52f018c127798
[ "Apache-2.0" ]
12
2020-10-25T09:07:58.000Z
2021-11-17T12:53:50.000Z
retinanet/dataloader/label_encoder.py
lchen-wyze/retinanet-tensorflow2.x
86404a2da6ec636d4b1aef768ac52f018c127798
[ "Apache-2.0" ]
9
2020-11-12T20:03:06.000Z
2022-01-03T12:40:48.000Z
import tensorflow as tf from retinanet.dataloader.anchor_generator import AnchorBoxGenerator from retinanet.dataloader.preprocessing_pipeline import PreprocessingPipeline from retinanet.dataloader.utils import compute_iou class LabelEncoder: def __init__(self, params): self.input_shape = params.input.inp...
44.063492
79
0.608249
695
5,552
4.579856
0.185612
0.043984
0.032045
0.024505
0.314797
0.222432
0.15677
0.112473
0.092366
0.060949
0
0.016779
0.2808
5,552
125
80
44.416
0.780366
0.008285
0
0.096154
0
0
0.017078
0
0
0
0
0.008
0
1
0.048077
false
0
0.038462
0
0.144231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c617ffba3ed7d86f83e8204d0efd8b5ec19f40d4
476
py
Python
ex4.py
JasperStfun/OOP
fb6c084979c2550a01b8dd07a24c244d31f943a0
[ "Apache-2.0" ]
null
null
null
ex4.py
JasperStfun/OOP
fb6c084979c2550a01b8dd07a24c244d31f943a0
[ "Apache-2.0" ]
null
null
null
ex4.py
JasperStfun/OOP
fb6c084979c2550a01b8dd07a24c244d31f943a0
[ "Apache-2.0" ]
null
null
null
class DefenerVector: def __init__(self, v): self.__v = v def __enter__(self): self.__temp = self.__v[:] return self.__temp def __exit__(self, exc_type, exc_val, exc_tb): if exc_type is None: self.__v[:] = self.__temp return False v1 = [1, 2, 3] ...
21.636364
50
0.544118
70
476
3.3
0.514286
0.08658
0.077922
0
0
0
0
0
0
0
0
0.031447
0.331933
476
22
51
21.636364
0.694969
0
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0
0
0.315789
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c61b4b710f700b7e7d84698ef9c73f9fe55fc76c
1,488
py
Python
tamcolors/tests/utils_tests/identifier_tests.py
cmcmarrow/tamcolors
65a5f2455bbe35a739b98d14af158c3df7feb786
[ "Apache-2.0" ]
29
2020-07-17T23:46:17.000Z
2022-02-06T05:36:44.000Z
tamcolors/tests/utils_tests/identifier_tests.py
sudo-nikhil/tamcolors
65a5f2455bbe35a739b98d14af158c3df7feb786
[ "Apache-2.0" ]
42
2020-07-25T19:39:52.000Z
2021-02-24T01:19:58.000Z
tamcolors/tests/utils_tests/identifier_tests.py
sudo-nikhil/tamcolors
65a5f2455bbe35a739b98d14af158c3df7feb786
[ "Apache-2.0" ]
8
2020-07-18T23:02:48.000Z
2020-12-30T04:07:35.000Z
# built in libraries import unittest.mock from tempfile import TemporaryDirectory from os.path import join # tamcolors libraries from tamcolors.utils import identifier class IdentifierTests(unittest.TestCase): def test_globals(self): self.assertIsInstance(identifier.IDENTIFIER_FILE_NAME, str) se...
41.333333
114
0.716398
169
1,488
6.023669
0.272189
0.061886
0.123772
0.151277
0.492141
0.492141
0.452849
0.452849
0.452849
0.302554
0
0.012723
0.207661
1,488
35
115
42.514286
0.850721
0.025538
0
0.16
0
0
0.010366
0
0
0
0
0
0.4
1
0.12
false
0
0.16
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c61b82fdb5df4f14bd3407dbc13cb9a344c9c650
2,847
py
Python
source.py
FahimFBA/Invisible-Cloak-Using-Python
4ed662f8ec6ab7bd90c5cf337d10ff8d2496843b
[ "MIT" ]
2
2021-03-29T07:29:39.000Z
2021-12-11T18:05:45.000Z
source.py
FahimFBA/Invisible-Cloak-Using-Python
4ed662f8ec6ab7bd90c5cf337d10ff8d2496843b
[ "MIT" ]
1
2021-12-12T06:37:32.000Z
2021-12-12T16:36:19.000Z
source.py
FahimFBA/Invisible-Cloak-Using-Python
4ed662f8ec6ab7bd90c5cf337d10ff8d2496843b
[ "MIT" ]
2
2021-02-14T15:11:52.000Z
2021-07-08T20:22:58.000Z
# start importing some modules # importing OpenCV import cv2 # using this module , we can process images and videos to identify objects, faces, or even handwriting of a human. # importing NumPy import numpy as np # NumPy is usually imported under the np alias. NumPy is a Python library used for working with arrays. I...
38.472973
250
0.724974
449
2,847
4.57461
0.474388
0.03408
0.019474
0.014606
0.047712
0.047712
0.028238
0
0
0
0
0.034031
0.194942
2,847
73
251
39
0.862129
0.537408
0
0
0
0
0.25522
0
0
0
0
0
0
1
0
false
0
0.085714
0
0.085714
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c61de299d4e4c292c61a91562c711d62f7565f8f
7,333
py
Python
src/user/role_service.py
fugwenna/bunkbot
f438c6a7d1f2c1797755eb8287bc1499c0cf2a88
[ "MIT" ]
2
2017-05-10T03:41:12.000Z
2017-08-12T12:51:44.000Z
src/user/role_service.py
fugwenna/bunkbot
f438c6a7d1f2c1797755eb8287bc1499c0cf2a88
[ "MIT" ]
13
2017-08-09T00:41:17.000Z
2021-09-04T17:47:11.000Z
src/user/role_service.py
fugwenna/bunkbot
f438c6a7d1f2c1797755eb8287bc1499c0cf2a88
[ "MIT" ]
4
2017-05-10T01:15:03.000Z
2021-03-02T03:49:45.000Z
from typing import List from discord import Role, Color, role from ..bunkbot import BunkBot from ..channel.channel_service import ChannelService from ..core.bunk_user import BunkUser from ..core.service import Service from ..db.database_service import DatabaseService class RoleService(Service): """ ...
32.591111
138
0.569617
919
7,333
4.43852
0.151251
0.049032
0.018877
0.01569
0.451091
0.359402
0.313067
0.27188
0.200785
0.171366
0
0.001457
0.344879
7,333
224
139
32.736607
0.847627
0.096277
0
0.123288
0
0
0.004732
0
0
0
0
0
0
1
0.041096
false
0.013699
0.09589
0
0.260274
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c6221c4f4c97c1af9d1e5e7738396af3bac3c4e6
1,591
py
Python
doc/buildbot/sample_slave.py
elhigu/pocl
726569646d3e95ef7625991aef11a2e84216076a
[ "MIT" ]
1
2020-08-13T06:59:37.000Z
2020-08-13T06:59:37.000Z
doc/buildbot/sample_slave.py
elhigu/pocl
726569646d3e95ef7625991aef11a2e84216076a
[ "MIT" ]
null
null
null
doc/buildbot/sample_slave.py
elhigu/pocl
726569646d3e95ef7625991aef11a2e84216076a
[ "MIT" ]
1
2020-08-13T06:59:39.000Z
2020-08-13T06:59:39.000Z
from buildbot.buildslave import BuildSlave from buildbot.schedulers.basic import SingleBranchScheduler from buildbot.changes import filter from buildbot.config import BuilderConfig from buildbot.schedulers.forcesched import * from poclfactory import createPoclFactory # overrride the 'sample_slave' with a descriptive ...
37
105
0.752986
210
1,591
5.628571
0.466667
0.050761
0.022843
0.035533
0.089679
0.089679
0.089679
0.089679
0.089679
0.089679
0
0.001531
0.179133
1,591
42
106
37.880952
0.903522
0.409805
0
0
0
0
0.265152
0
0
0
0
0
0
1
0.043478
false
0.043478
0.26087
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c6224896f978093621d6275c6b492b553a5f89f0
2,575
py
Python
pqr/__init__.py
pittquantum/PittQuantumRepository
5100ff264e76cb97e5eba2929558a08d0ed158f8
[ "MIT" ]
13
2015-10-11T00:52:52.000Z
2022-03-04T16:26:40.000Z
pqr/__init__.py
pittquantum/backend
5100ff264e76cb97e5eba2929558a08d0ed158f8
[ "MIT" ]
54
2015-05-06T07:33:06.000Z
2015-07-07T05:09:08.000Z
pqr/__init__.py
pittquantum/backend
5100ff264e76cb97e5eba2929558a08d0ed158f8
[ "MIT" ]
4
2017-03-03T03:58:50.000Z
2020-01-23T03:55:30.000Z
from flask import Flask, url_for, request, session, abort import os import re import base64 pqr = Flask(__name__) # Determines the destination of the build. Only usefull if you're using # Frozen-Flask pqr.config['FREEZER_DESTINATION'] = os.path.dirname(os.path.abspath(__file__)) + '/../build' # Function to easily f...
33.441558
129
0.616311
307
2,575
5.003257
0.407166
0.041667
0.057292
0.070313
0.1875
0
0
0
0
0
0
0.007644
0.136311
2,575
76
130
33.881579
0.683004
0.202718
0
0
0
0
0.151289
0.014327
0
0
0
0
0.069767
1
0.139535
false
0.023256
0.116279
0.069767
0.395349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c625108183edb6d267c158ee6b26a88a85fb2494
255
py
Python
application/core/common_utils.py
solomonxie/lambda-application-demo
35ac5e17985cdd5694eb154b527d3942ad52cad6
[ "MIT" ]
null
null
null
application/core/common_utils.py
solomonxie/lambda-application-demo
35ac5e17985cdd5694eb154b527d3942ad52cad6
[ "MIT" ]
null
null
null
application/core/common_utils.py
solomonxie/lambda-application-demo
35ac5e17985cdd5694eb154b527d3942ad52cad6
[ "MIT" ]
null
null
null
import json from urllib import request def get_ip(): info = None try: resp = request.urlopen("http://ip-api.com/json/") raw = resp.read() info = json.loads(raw) except Exception as e: print(e) return info
18.214286
57
0.580392
35
255
4.2
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.305882
255
13
58
19.615385
0.830508
0
0
0
0
0
0.090196
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
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
c625be4168c09da47fadb564f1e3637c6cb209e3
2,205
py
Python
src/boxes/datatypes/calc.py
Peilonrayz/alphabet_learner
13229e53215e3c050f106e00e34f90ca2d6fa256
[ "MIT" ]
null
null
null
src/boxes/datatypes/calc.py
Peilonrayz/alphabet_learner
13229e53215e3c050f106e00e34f90ca2d6fa256
[ "MIT" ]
null
null
null
src/boxes/datatypes/calc.py
Peilonrayz/alphabet_learner
13229e53215e3c050f106e00e34f90ca2d6fa256
[ "MIT" ]
null
null
null
import collections.abc from typing import Union, Sequence, Optional from .primitives import Number from .units import Unit, UnitTypes _Value = Union[Unit, Number, float, int] class Calc: type: UnitTypes @classmethod def build( cls, values: Union[_Value, Sequence[_Value]], opera...
27.911392
84
0.576417
248
2,205
4.943548
0.241935
0.04894
0.034258
0.04894
0.213703
0.184339
0.122349
0.122349
0.122349
0.122349
0
0.007299
0.316553
2,205
78
85
28.269231
0.806238
0
0
0.096774
0
0
0.086621
0.02585
0
0
0
0
0
1
0.112903
false
0
0.064516
0.048387
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c626517f412e73181fae98762e0e92e932f1d7ee
676
py
Python
dfrus/machine_code_match.py
dfint/dfrus
84eb206d01e57ba2571b19c2bbbe7765c660fb55
[ "MIT" ]
1
2021-09-11T12:46:01.000Z
2021-09-11T12:46:01.000Z
dfrus/machine_code_match.py
dfint/dfrus
84eb206d01e57ba2571b19c2bbbe7765c660fb55
[ "MIT" ]
8
2021-10-29T18:54:54.000Z
2021-11-29T08:18:05.000Z
dfrus/machine_code_match.py
dfint/dfrus
84eb206d01e57ba2571b19c2bbbe7765c660fb55
[ "MIT" ]
null
null
null
from .binio import from_dword from .opcodes import Reg, mov_reg_imm, mov_acc_mem, mov_rm_reg, x0f_movups, Prefix def match_mov_reg_imm32(b: bytes, reg: Reg, imm: int) -> bool: assert len(b) == 5, b return b[0] == mov_reg_imm | 8 | int(reg) and from_dword(b[1:]) == imm def get_start(s): i = None if s...
26
82
0.573964
122
676
3.008197
0.401639
0.021798
0.049046
0.043597
0.076294
0.076294
0
0
0
0
0
0.072765
0.288462
676
25
83
27.04
0.690229
0.038462
0
0.111111
0
0
0
0
0
0
0.049383
0
0.111111
1
0.111111
false
0
0.111111
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c628a854cb921505c3553f10d9c7e5209dafaeeb
10,483
py
Python
tests/test_base_api.py
yhegen/cumulocity-python-api
729d29a518426fe118ed315df84020578a6961fb
[ "Apache-2.0" ]
9
2021-02-16T08:53:08.000Z
2022-02-15T11:58:19.000Z
tests/test_base_api.py
yhegen/cumulocity-python-api
729d29a518426fe118ed315df84020578a6961fb
[ "Apache-2.0" ]
4
2021-04-20T12:26:41.000Z
2022-02-09T09:52:11.000Z
tests/test_base_api.py
yhegen/cumulocity-python-api
729d29a518426fe118ed315df84020578a6961fb
[ "Apache-2.0" ]
3
2021-04-26T23:05:32.000Z
2021-12-09T14:13:58.000Z
# Copyright (c) 2020 Software AG, # Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, # and/or its subsidiaries and/or its affiliates and/or their licensors. # Use, reproduction, transfer, publication or disclosure is prohibited except # as specifically provided for in your License Agreement with Softwar...
35.900685
110
0.659258
1,249
10,483
5.38751
0.183347
0.033289
0.032694
0.018725
0.575866
0.511517
0.429484
0.385793
0.350572
0.304206
0
0.018568
0.208814
10,483
291
111
36.024055
0.792742
0.180864
0
0.466667
0
0.005556
0.137817
0.00885
0
0
0
0
0.216667
1
0.105556
false
0.027778
0.038889
0
0.155556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c62b0f6c1dafe4863a081c29e104df05db4c301e
866
py
Python
src/xsdtools/jsonschema_generator.py
pietrodelugas/xsdtools
b30e5f6b41c079cca01b3fb8c36feee484df8e34
[ "BSD-3-Clause" ]
1
2020-12-17T04:50:47.000Z
2020-12-17T04:50:47.000Z
src/xsdtools/jsonschema_generator.py
pietrodelugas/xsdtools
b30e5f6b41c079cca01b3fb8c36feee484df8e34
[ "BSD-3-Clause" ]
null
null
null
src/xsdtools/jsonschema_generator.py
pietrodelugas/xsdtools
b30e5f6b41c079cca01b3fb8c36feee484df8e34
[ "BSD-3-Clause" ]
2
2021-07-21T10:38:08.000Z
2021-09-16T17:50:25.000Z
# # Copyright (c) 2020, Quantum Espresso Foundation and SISSA. # Internazionale Superiore di Studi Avanzati). All rights reserved. # This file is distributed under the terms of the BSD 3-Clause license. # See the file 'LICENSE' in the root directory of the present distribution, # or https://opensource.org/licenses/BSD-...
29.862069
75
0.668591
91
866
6.318681
0.747253
0.052174
0.034783
0
0
0
0
0
0
0
0
0.008837
0.215935
866
28
76
30.928571
0.837997
0.420323
0
0
0
0
0.3375
0.045833
0
0
0
0
0
1
0
false
0
0.071429
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
0
0
0
0
1
0
c62e4d453948d4cfc525683440c2c6e5323bf2c9
2,568
py
Python
tests/unittest_db.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
6
2019-08-15T20:19:38.000Z
2021-02-28T21:33:19.000Z
tests/unittest_db.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
31
2019-08-14T08:42:08.000Z
2020-05-07T13:43:43.000Z
tests/unittest_db.py
zaanposni/umfrageBot
3e19dc0629cde394da2ae8706e6e043b4e87059d
[ "MIT" ]
5
2019-08-17T13:39:53.000Z
2020-04-01T07:25:51.000Z
import unittest from pathlib import Path import os import shutil import time from src.bt_utils.handle_sqlite import DatabaseHandler from src.bt_utils.get_content import content_dir from sqlite3 import IntegrityError class TestClass(unittest.TestCase): def testDB(self): if os.path.exists(content_dir): ...
33.789474
84
0.628505
351
2,568
4.472934
0.293447
0.061147
0.040127
0.035669
0.389172
0.357325
0.347771
0.30828
0.30828
0.281529
0
0.041405
0.257009
2,568
75
85
34.24
0.781447
0.020639
0
0.224138
0
0
0.191803
0
0
0
0
0
0.155172
1
0.017241
false
0.017241
0.137931
0
0.172414
0.155172
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c62ff5ebe57088aca1b17d3ec477eb124d6fc9bd
1,777
py
Python
mxnet_load_model.py
whn09/mxnet-ssd
ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159
[ "MIT" ]
1
2019-09-11T02:07:50.000Z
2019-09-11T02:07:50.000Z
mxnet_load_model.py
whn09/mxnet-ssd
ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159
[ "MIT" ]
null
null
null
mxnet_load_model.py
whn09/mxnet-ssd
ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159
[ "MIT" ]
null
null
null
# load model and predicate import mxnet as mx import numpy as np # define test data batch_size = 1 num_batch = 1 filepath = 'frame-1.jpg' DEFAULT_INPUT_SHAPE = 300 # load model sym, arg_params, aux_params = mx.model.load_checkpoint("model/deploy_model_algo_1", 0) # load with net name and epoch num mod = mx.mod.Modul...
34.843137
121
0.747327
287
1,777
4.425087
0.400697
0.037795
0.066929
0.028346
0.053543
0.053543
0
0
0
0
0
0.013898
0.109173
1,777
50
122
35.54
0.788377
0.403489
0
0.074074
0
0
0.081888
0.024085
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
0.185185
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c63135668085d0506f3e10e5b3343cb3a4bdce5a
577
py
Python
dataMapper.py
cbrandl/csv_costanalyser
c4e2c53bb7f13e56aec07425e5c0e1f0bed6b8fa
[ "MIT" ]
null
null
null
dataMapper.py
cbrandl/csv_costanalyser
c4e2c53bb7f13e56aec07425e5c0e1f0bed6b8fa
[ "MIT" ]
null
null
null
dataMapper.py
cbrandl/csv_costanalyser
c4e2c53bb7f13e56aec07425e5c0e1f0bed6b8fa
[ "MIT" ]
null
null
null
class dataMapper: def __init__(self, data): self.__data = data self.__structure = self.getDataStructure() def getDataStructure(self): headings = self.__data[0] structure = {} for key in headings: structure[key.lower()] = '' return structure def m...
27.47619
58
0.551127
57
577
5.333333
0.403509
0.105263
0
0
0
0
0
0
0
0
0
0.005319
0.348354
577
20
59
28.85
0.803191
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
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
c6337ba6bb736b172e7ae3a784113684d1641780
5,320
py
Python
STResNet/plots/error_plots.py
vtsuperdarn/deep_leaning_on_GSP_TEC
f5989d1742be9c02edbcab37433f468cb2c5f771
[ "MIT" ]
9
2018-09-17T02:11:26.000Z
2020-12-16T12:28:35.000Z
STResNet/plots/error_plots.py
vtsuperdarn/deep_leaning_on_GSP_TEC
f5989d1742be9c02edbcab37433f468cb2c5f771
[ "MIT" ]
null
null
null
STResNet/plots/error_plots.py
vtsuperdarn/deep_leaning_on_GSP_TEC
f5989d1742be9c02edbcab37433f468cb2c5f771
[ "MIT" ]
6
2018-07-23T13:37:10.000Z
2022-01-19T17:51:19.000Z
import datetime import pandas import seaborn as sns import matplotlib.pyplot as plt import os import re import glob amean_err = [] astddev_err = [] amin_err = [] amax_err = [] rmean_err = [] rstddev_err = [] rmin_err = [] rmax_err = [] #loading the true and predicted tec maps for calculating the min/max error, mea...
31.111111
140
0.71015
892
5,320
4.044843
0.154709
0.022173
0.026608
0.044346
0.623614
0.572616
0.572616
0.558758
0.545455
0.473392
0
0.043219
0.117105
5,320
170
141
31.294118
0.724931
0.065977
0
0.40625
0
0
0.059084
0.02198
0
0
0
0
0
1
0
false
0
0.054688
0
0.054688
0.078125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c6382fdd07fdfdca681e712305a912e00b66a929
1,262
py
Python
src/ipdasite.services/ipdasite/services/interfaces/curator.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
null
null
null
src/ipdasite.services/ipdasite/services/interfaces/curator.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
5
2021-03-19T21:41:19.000Z
2022-02-11T14:55:14.000Z
src/ipdasite.services/ipdasite/services/interfaces/curator.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # Copyright 2011 California Institute of Technology. ALL RIGHTS # RESERVED. U.S. Government Sponsorship acknowledged. '''Curator: interface''' from zope.interface import Interface from zope import schema from ipdasite.services import ProjectMessageFactory as _ class ICurator(Interface): '''A pe...
33.210526
108
0.669572
146
1,262
5.712329
0.486301
0.035971
0.091127
0.095923
0.052758
0
0
0
0
0
0
0.005149
0.230586
1,262
37
109
34.108108
0.853759
0.161648
0
0.137931
0
0
0.311005
0
0
0
0
0
0
1
0
false
0
0.103448
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c63e00866b579ae084343dd771e2b18a8af736d6
867
py
Python
TelloStuff/Tests/Tello.py
svg94/Drone_Prototype-dirty-implementation-
53ea429714beff6966c2b9c82e0c96d53baca66c
[ "MIT" ]
null
null
null
TelloStuff/Tests/Tello.py
svg94/Drone_Prototype-dirty-implementation-
53ea429714beff6966c2b9c82e0c96d53baca66c
[ "MIT" ]
null
null
null
TelloStuff/Tests/Tello.py
svg94/Drone_Prototype-dirty-implementation-
53ea429714beff6966c2b9c82e0c96d53baca66c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from TelloSDKPy.djitellopy.tello import Tello import cv2 import pygame import numpy as np import time def main(): #Controller Init pygame.init() joysticks = [] for i in range(0,pygame.joystick.get_count()): joysticks.append(pygame.joystick.Joystick(i)) joysticks[...
24.083333
53
0.49827
93
867
4.537634
0.505376
0.052133
0
0
0
0
0
0
0
0
0
0.016854
0.384083
867
35
54
24.771429
0.773408
0.053057
0
0
0
0
0.028186
0
0
0
0
0
0
1
0.037037
false
0
0.185185
0
0.259259
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c63ed36ee241e548d81bdd20f997dcd995f3ec78
11,761
py
Python
models/SPR.py
fresh-professor/DiverseCont
4be198f5531a7efe2cb91b17066322a38d219127
[ "MIT" ]
21
2021-09-08T14:37:06.000Z
2022-02-28T02:58:35.000Z
models/SPR.py
fresh-professor/DiverseCont
4be198f5531a7efe2cb91b17066322a38d219127
[ "MIT" ]
1
2021-12-28T09:17:38.000Z
2021-12-28T11:49:30.000Z
models/SPR.py
fresh-professor/DiverseCont
4be198f5531a7efe2cb91b17066322a38d219127
[ "MIT" ]
null
null
null
import os from copy import deepcopy import tqdm import torch import torch.nn.functional as F import colorful import numpy as np import networkx as nx from tensorboardX import SummaryWriter from .reservoir import reservoir from components import Net from utils import BetaMixture1D class SPR(torch.nn.Module): """ Tr...
43.884328
127
0.585239
1,452
11,761
4.5
0.184573
0.03367
0.036731
0.027548
0.348944
0.240588
0.197123
0.157637
0.130089
0.121824
0
0.005139
0.288581
11,761
267
128
44.048689
0.775786
0.071337
0
0.147208
0
0
0.085802
0.013
0
0
0
0
0
1
0.055838
false
0.005076
0.060914
0
0.147208
0.030457
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c640ef3189a49dcfa1947c8d0c9f7d5961226015
6,602
py
Python
tests/pyunity/testScene/testScene.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
tests/pyunity/testScene/testScene.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
tests/pyunity/testScene/testScene.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
# Copyright (c) 2020-2022 The PyUnity Team # This file is licensed under the MIT License. # See https://docs.pyunity.x10.bz/en/latest/license.html from pyunity import ( SceneManager, Component, Camera, AudioListener, Light, GameObject, Tag, Transform, GameObjectException, ComponentException, Canvas, PyUnit...
36.882682
85
0.628294
735
6,602
5.643537
0.187755
0.065574
0.048216
0.057859
0.372469
0.301109
0.27459
0.202748
0.152604
0.128496
0
0.008656
0.265071
6,602
178
86
37.089888
0.846249
0.041048
0
0.323741
0
0
0.07943
0
0
0
0
0
0.374101
1
0.064748
false
0
0.021583
0
0.100719
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c64201468eb9a627a5893c74a3ccfcc9bf284d58
1,806
py
Python
alembic_migration/alembic_handler.py
NASA-IMPACT/hls-sentinel2-downloader-serverless
e3e4f542fc805c6259f20a6dd932c98cccd4144c
[ "Apache-2.0" ]
null
null
null
alembic_migration/alembic_handler.py
NASA-IMPACT/hls-sentinel2-downloader-serverless
e3e4f542fc805c6259f20a6dd932c98cccd4144c
[ "Apache-2.0" ]
2
2021-07-23T00:49:42.000Z
2021-07-23T00:51:25.000Z
alembic_migration/alembic_handler.py
NASA-IMPACT/hls-sentinel2-downloader-serverless
e3e4f542fc805c6259f20a6dd932c98cccd4144c
[ "Apache-2.0" ]
null
null
null
import logging import os import alembic.command import alembic.config import cfnresponse from db.session import get_session, get_session_maker from retry import retry from sqlalchemy.exc import OperationalError def log(log_statement: str): """ Gets a Logger for the Lambda function with level logging.INFO and...
30.1
87
0.668328
218
1,806
5.426606
0.46789
0.054945
0.050719
0.06847
0.121724
0.089603
0.089603
0
0
0
0
0.002899
0.23588
1,806
59
88
30.610169
0.854348
0.136213
0
0.046512
0
0
0.180809
0.013708
0
0
0
0
0
1
0.069767
false
0
0.186047
0
0.27907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c642eb175ecb18dbaa59adf93fe2e5472ccf50d1
1,229
py
Python
ch2/q25solution.py
kylepw/ctci
7e2fcc6775db3789d0e425f4fb969acf6c44aad5
[ "MIT" ]
null
null
null
ch2/q25solution.py
kylepw/ctci
7e2fcc6775db3789d0e425f4fb969acf6c44aad5
[ "MIT" ]
null
null
null
ch2/q25solution.py
kylepw/ctci
7e2fcc6775db3789d0e425f4fb969acf6c44aad5
[ "MIT" ]
null
null
null
from LinkedList import LinkedList def sum_lists(ll_a, ll_b): n1, n2 = ll_a.head, ll_b.head ll = LinkedList() carry = 0 while n1 or n2: result = carry if n1: result += n1.value n1 = n1.next if n2: result += n2.value n2 = n2.next ...
21.561404
52
0.570382
207
1,229
3.188406
0.251208
0.063636
0.045455
0.045455
0.289394
0.277273
0.166667
0.054545
0
0
0
0.045077
0.314076
1,229
57
53
21.561404
0.737841
0.10415
0
0.243902
0
0
0
0
0
0
0
0
0
1
0.04878
false
0
0.02439
0
0.121951
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c646039bec76cea06e642add68741d31531aa8e2
5,147
py
Python
cmdb-compliance/libs/server/server_common.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
cmdb-compliance/libs/server/server_common.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
1
2022-01-04T13:53:16.000Z
2022-01-04T13:53:16.000Z
cmdb-optimization/libs/server/server_common.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/5/15 14:44 # @Author : Fred Yangxiaofei # @File : server_common.py # @Role : server公用方法,记录日志,更新资产,推送密钥,主要给手动更新资产使用 from models.server import Server, AssetErrorLog, ServerDetail from libs.db_context import DBContext from libs.web_logs import ins_log...
41.508065
120
0.541092
552
5,147
4.786232
0.25
0.051476
0.024603
0.036336
0.370553
0.342165
0.310371
0.259273
0.259273
0.154428
0
0.007476
0.350301
5,147
123
121
41.845528
0.782596
0.108413
0
0.244186
0
0
0.032863
0
0
0
0
0
0
1
0.034884
false
0.011628
0.05814
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c6463fc79c5c1fa3ed6d7d6dc133cda7182d1756
1,607
py
Python
src/test/serialization/codec/object/test_string_codec.py
typingtanuki/pyserialization
f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151
[ "Apache-2.0" ]
null
null
null
src/test/serialization/codec/object/test_string_codec.py
typingtanuki/pyserialization
f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151
[ "Apache-2.0" ]
null
null
null
src/test/serialization/codec/object/test_string_codec.py
typingtanuki/pyserialization
f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151
[ "Apache-2.0" ]
null
null
null
import unittest from src.main.serialization.codec.codec import Codec from src.main.serialization.codec.object.stringCodec import StringCodec from src.main.serialization.codec.primitive.shortCodec import ShortCodec from src.main.serialization.codec.utils.byteIo import ByteIo from src.main.serialization.codec.utils.byte...
40.175
116
0.654636
186
1,607
5.548387
0.365591
0.015504
0.087209
0.116279
0.161822
0.077519
0
0
0
0
0
0.02771
0.236465
1,607
39
117
41.205128
0.813366
0
0
0.0625
0
0.03125
0.357187
0.11201
0
0
0
0
0.03125
1
0.0625
false
0
0.21875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c647d169764fd3968e368f07e9481ecd112d4727
539
py
Python
dataviz/ex1.py
jonaslindemann/compute-course-public
b8f55595ebbd790d79b525efdff17b8517154796
[ "MIT" ]
4
2021-09-12T12:07:01.000Z
2021-09-29T17:38:34.000Z
dataviz/ex1.py
jonaslindemann/compute-course-public
b8f55595ebbd790d79b525efdff17b8517154796
[ "MIT" ]
null
null
null
dataviz/ex1.py
jonaslindemann/compute-course-public
b8f55595ebbd790d79b525efdff17b8517154796
[ "MIT" ]
5
2020-10-24T16:02:31.000Z
2021-09-28T20:57:46.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jun 7 14:58:44 2017 @author: Jonas Lindemann """ import numpy as np import pyvtk as vtk print("Reading from uvw.dat...") xyzuvw = np.loadtxt('uvw.dat', skiprows=2) print("Converting to points and vectors") points = xyzuvw[:, 0:3].tolist() vectors = xyzuvw[:...
24.5
96
0.654917
77
539
4.584416
0.649351
0.033994
0.096317
0.11898
0
0
0
0
0
0
0
0.053215
0.163265
539
21
97
25.666667
0.72949
0.155844
0
0
0
0
0.183529
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c6487ab8b368f34287f785fc89a730b8d8fe1f9f
2,237
py
Python
nginc/__init__.py
FlorianLudwig/nginc
489546d1b0190047150bf3134071aa88c64f8c3d
[ "Apache-2.0" ]
1
2015-11-01T12:16:17.000Z
2015-11-01T12:16:17.000Z
nginc/__init__.py
FlorianLudwig/nginc
489546d1b0190047150bf3134071aa88c64f8c3d
[ "Apache-2.0" ]
null
null
null
nginc/__init__.py
FlorianLudwig/nginc
489546d1b0190047150bf3134071aa88c64f8c3d
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Florian Ludwig # # 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 writin...
30.22973
89
0.646848
299
2,237
4.769231
0.464883
0.01122
0.047686
0.02244
0.050491
0.035063
0
0
0
0
0
0.021524
0.23156
2,237
73
90
30.643836
0.808028
0.246312
0
0.125
0
0
0.139354
0
0
0
0
0
0
1
0.083333
false
0.020833
0.145833
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c649c2159d59b04bdc795f0bcf96424017779542
1,417
py
Python
Part 2 - Regression/Section 4 - Simple Linear Regression/practice_linear_regression.py
aditya30394/Machine-Learning-A-Z
8caaf1f94f800fcc7bd594569593c4d713c32d9e
[ "MIT" ]
null
null
null
Part 2 - Regression/Section 4 - Simple Linear Regression/practice_linear_regression.py
aditya30394/Machine-Learning-A-Z
8caaf1f94f800fcc7bd594569593c4d713c32d9e
[ "MIT" ]
null
null
null
Part 2 - Regression/Section 4 - Simple Linear Regression/practice_linear_regression.py
aditya30394/Machine-Learning-A-Z
8caaf1f94f800fcc7bd594569593c4d713c32d9e
[ "MIT" ]
null
null
null
# Import important libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Read the data set dataset = pd.read_csv('Salary_Data.csv') X = dataset.iloc[:,:-1].values y = dataset.iloc[:, 1].values # Splitting the dataset into the Training set and Test set from sklearn.model_selection import t...
32.953488
94
0.762879
234
1,417
4.5
0.371795
0.039886
0.039886
0.034188
0.281102
0.241216
0.241216
0.186135
0.186135
0.186135
0
0.004058
0.130558
1,417
43
95
32.953488
0.850649
0.314749
0
0.25
0
0
0.16183
0
0
0
0
0
0
1
0
false
0
0.208333
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
c64c0a450e0399b2acbc4deba8555735fd48b6da
1,853
py
Python
source/source_test.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
7
2019-10-13T18:58:33.000Z
2021-08-07T12:46:22.000Z
source/source_test.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
7
2019-12-16T21:25:34.000Z
2022-02-10T00:11:22.000Z
source/source_test.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
4
2020-02-01T11:23:51.000Z
2021-12-13T12:27:18.000Z
# -*- coding: utf-8 -*- """Test for various sources Supported sources - Yahoo Finance - I3Investor - KLSe """ import datetime as dt import string import unittest from source import YahooFinanceSource, GoogleFinanceSource class SourceTest(unittest.TestCase): _TEST_YAHOO_FINANCE_SYMBOL = '6742.KL' _YAHOO_F...
30.377049
114
0.679439
213
1,853
5.544601
0.305164
0.071126
0.060965
0.048264
0.252329
0.234547
0.152413
0.152413
0
0
0
0.021097
0.232596
1,853
60
115
30.883333
0.809423
0.188343
0
0.172414
0
0
0.094086
0
0
0
0
0
0
1
0.137931
false
0
0.137931
0
0.482759
0.241379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c64e4b280de8cd0b21024951fd1499e577dd81d6
2,197
py
Python
solver.py
n8henrie/knapsack
c52179e43a833d57f0df185d5d225444d1725204
[ "MIT" ]
null
null
null
solver.py
n8henrie/knapsack
c52179e43a833d57f0df185d5d225444d1725204
[ "MIT" ]
null
null
null
solver.py
n8henrie/knapsack
c52179e43a833d57f0df185d5d225444d1725204
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import namedtuple from itertools import combinations import knapsack def solve_it(input_data, language="rust"): if language == "python": return solve_it_python(input_data) return solve_it_rust(input_data) def solve_it_rust(input_data): return knapsack.so...
26.46988
129
0.61766
308
2,197
4.256494
0.340909
0.08238
0.022883
0.036613
0.143402
0.022883
0
0
0
0
0
0.01306
0.268093
2,197
82
130
26.792683
0.802239
0.084206
0
0.071429
0
0.017857
0.088191
0
0
0
0
0
0
1
0.053571
false
0
0.071429
0.017857
0.196429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c65170e65e760d40c99c948a36c0e972a977e113
3,765
py
Python
api/mon/utils.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
97
2016-11-15T14:44:23.000Z
2022-03-13T18:09:15.000Z
api/mon/utils.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
334
2016-11-17T19:56:57.000Z
2022-03-18T10:45:53.000Z
api/mon/utils.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
33
2017-01-02T16:04:13.000Z
2022-02-07T19:20:24.000Z
from django.conf import settings from api.task.internal import InternalTask from api.task.response import mgmt_task_response from vms.utils import AttrDict from vms.models import Vm from que import TG_DC_UNBOUND, TG_DC_BOUND class MonitoringGraph(AttrDict): """ Monitoring graph configuration. """ def...
37.277228
106
0.619124
449
3,765
4.962138
0.345212
0.064183
0.028725
0.021544
0
0
0
0
0
0
0
0.001468
0.276228
3,765
100
107
37.65
0.816147
0.162815
0
0.046875
0
0
0.09375
0
0
0
0
0
0
1
0.0625
false
0
0.09375
0
0.265625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c6555d7ff4abb61b8057f24c0663ec8a607ba4a5
714
py
Python
Pillow-4.3.0/Tests/test_image_toqpixmap.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
Pillow-4.3.0/Tests/test_image_toqpixmap.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
Pillow-4.3.0/Tests/test_image_toqpixmap.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
from helper import unittest, PillowTestCase, hopper from test_imageqt import PillowQtTestCase, PillowQPixmapTestCase from PIL import ImageQt if ImageQt.qt_is_installed: from PIL.ImageQt import QPixmap class TestToQPixmap(PillowQPixmapTestCase, PillowTestCase): def test_sanity(self): PillowQtTestCas...
25.5
64
0.666667
77
714
6.012987
0.584416
0.056156
0
0
0
0
0
0
0
0
0
0.001821
0.231092
714
27
65
26.444444
0.84153
0.028011
0
0
0
0
0.041908
0
0
0
0
0
0.125
1
0.0625
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d65ef125e43cf3342be46e1656a8eaaba3ec76c9
6,483
py
Python
hw-10/rainwater-hw-10.py
rainwaterone/stat656
c582fc8c6a55c377e2b57d1f7b10471d625d79db
[ "MIT" ]
null
null
null
hw-10/rainwater-hw-10.py
rainwaterone/stat656
c582fc8c6a55c377e2b57d1f7b10471d625d79db
[ "MIT" ]
null
null
null
hw-10/rainwater-hw-10.py
rainwaterone/stat656
c582fc8c6a55c377e2b57d1f7b10471d625d79db
[ "MIT" ]
null
null
null
""" STAT 656 HW-10 @author:Lee Rainwater @heavy_lifting_by: Dr. Edward Jones @date: 2020-07-29 """ import pandas as pd # Classes provided from AdvancedAnalytics ver 1.25 from AdvancedAnalytics.Text import text_analysis from AdvancedAnalytics.Text import sentiment_analysis from sklearn.feature_extrac...
37.912281
100
0.653555
919
6,483
4.45049
0.231774
0.04401
0.017604
0.020538
0.587775
0.534474
0.497066
0.429095
0.416626
0.377017
0
0.020691
0.187413
6,483
170
101
38.135294
0.755695
0.197902
0
0.372881
0
0
0.181393
0
0
0
0
0
0
1
0.008475
false
0
0.050847
0
0.067797
0.211864
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d661b7759b3dc688b6b6db70c85b0949bed0d166
10,520
py
Python
dist/geoapi/data/queries.py
tinyperegrine/geoapi
63d50427adef7b8db727f2942b39791bdae32a4c
[ "MIT" ]
2
2021-05-24T22:00:30.000Z
2021-07-26T07:39:23.000Z
src/geoapi/data/queries.py
tinyperegrine/geoapi
63d50427adef7b8db727f2942b39791bdae32a4c
[ "MIT" ]
5
2021-03-19T03:42:09.000Z
2022-03-11T23:59:20.000Z
src/geoapi/data/queries.py
tinyperegrine/geoapi
63d50427adef7b8db727f2942b39791bdae32a4c
[ "MIT" ]
null
null
null
"""Query Object for all read-only queries to the Real Property table """ import os import logging from time import time from typing import List import asyncio import aiohttp import aiofiles import databases from PIL import Image import sqlalchemy from sqlalchemy.sql import select, func import geoapi.common.spatial_uti...
39.400749
120
0.616825
1,206
10,520
5.150912
0.201493
0.032196
0.046523
0.047328
0.341919
0.314392
0.264488
0.208789
0.17933
0.162911
0
0.011437
0.310171
10,520
266
121
39.548872
0.844564
0.060171
0
0.240741
0
0.012346
0.063832
0
0
0
0
0.007519
0
1
0.006173
false
0
0.092593
0
0.148148
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6640fe2dcd11b0460e228747652381b73af179f
1,685
py
Python
src/api/proxy/proxy.py
HaoJiangGuo/fp-server
9c00b8f0ee64049eb9f214c3efe1fdee977542a6
[ "MIT" ]
2
2018-08-17T06:56:21.000Z
2019-01-08T03:10:32.000Z
src/api/proxy/proxy.py
HaoJiangGuo/fp-server
9c00b8f0ee64049eb9f214c3efe1fdee977542a6
[ "MIT" ]
null
null
null
src/api/proxy/proxy.py
HaoJiangGuo/fp-server
9c00b8f0ee64049eb9f214c3efe1fdee977542a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ API for proxy """ from core import exceptions from core.web import WebHandler from service.proxy.serializers import ProxySerializer from service.proxy.proxy import proxy_srv from utils import log as logger from utils.routes import route def return_developing(): ...
23.402778
68
0.591691
199
1,685
4.899497
0.41206
0.035897
0.057436
0.046154
0.110769
0.094359
0
0
0
0
0
0.004858
0.267062
1,685
71
69
23.732394
0.784615
0.069436
0
0.108108
0
0
0.064917
0
0
0
0
0
0
1
0.027027
false
0
0.162162
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d66723dcef2bb7193246b5983ca2285df66c7c28
2,058
py
Python
projects/crawler_for_prodect_category/category_output/to_html.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
projects/crawler_for_prodect_category/category_output/to_html.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
projects/crawler_for_prodect_category/category_output/to_html.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from projects.crawler_for_prodect_category.category_output import output_utils import codecs Logger = output_utils.Logger def output(filename, datas): """ 将爬取的数据导出到html :return: """ Logger.info('Output to html file, please wait ...') # object_serialize('object.pkl',self.dat...
43.787234
113
0.573372
274
2,058
4.270073
0.412409
0.153846
0.136752
0.064103
0.198291
0.157265
0.157265
0
0
0
0
0.024528
0.227405
2,058
46
114
44.73913
0.711321
0.056365
0
0
0
0.114286
0.459093
0.227202
0
0
0
0
0
1
0.028571
false
0
0.057143
0
0.085714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d667529945c63e9ee84e1cddf5e8de3b084ac4c0
5,567
py
Python
hsv.py
FarinaMatteo/siv-project
fbac7c7c114db51d9fdcf90aba296906abdf91af
[ "MIT" ]
null
null
null
hsv.py
FarinaMatteo/siv-project
fbac7c7c114db51d9fdcf90aba296906abdf91af
[ "MIT" ]
null
null
null
hsv.py
FarinaMatteo/siv-project
fbac7c7c114db51d9fdcf90aba296906abdf91af
[ "MIT" ]
1
2021-04-13T11:22:06.000Z
2021-04-13T11:22:06.000Z
""" Background vs Foreground Image segmentation. The goal is to produce a segmentation map that imitates videocalls tools like the ones implemented in Google Meet, Zoom without using Deep Learning- or Machine Learning- based techniques. This script does the following: - builds a background model using the first 3s ...
43.492188
126
0.623496
718
5,567
4.657382
0.380223
0.011962
0.025419
0.015251
0.088517
0.071172
0.049641
0.049641
0.049641
0
0
0.018665
0.297467
5,567
128
127
43.492188
0.836359
0.331238
0
0.060606
0
0
0.046208
0
0
0
0.001087
0
0
1
0.015152
false
0
0.090909
0
0.106061
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d66b1cd60139d9cc3f50ee9f63aec7859add227e
6,967
py
Python
cuchem/cuchem/wf/cluster/gpurandomprojection.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
cuchem/cuchem/wf/cluster/gpurandomprojection.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
cuchem/cuchem/wf/cluster/gpurandomprojection.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
#!/opt/conda/envs/rapids/bin/python3 # # Copyright (c) 2020, NVIDIA 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 ...
35.912371
98
0.68724
860
6,967
5.317442
0.275581
0.026241
0.062322
0.043735
0.218456
0.176252
0.127706
0.096217
0.085502
0.085502
0
0.005373
0.225348
6,967
193
99
36.098446
0.841949
0.117985
0
0.102362
0
0
0.048992
0.009667
0
0
0
0
0
1
0.086614
false
0
0.133858
0.015748
0.307087
0.03937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d66c0ed5c84f564a500b3ce340b852c977ab112f
2,176
py
Python
pkg/azure/resource_group.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
10
2021-01-02T11:59:46.000Z
2021-06-14T04:38:45.000Z
pkg/azure/resource_group.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
12
2021-01-06T07:02:22.000Z
2021-03-11T06:34:07.000Z
pkg/azure/resource_group.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
3
2021-01-10T12:33:52.000Z
2021-04-12T14:29:13.000Z
# Import the needed management objects from the libraries. The azure.common library # is installed automatically with the other libraries. from azure.common.client_factory import get_client_from_cli_profile from azure.mgmt.resource import ResourceManagementClient from utils.dbconn import * from utils.logger import * fr...
50.604651
108
0.68704
259
2,176
5.625483
0.320463
0.089224
0.111187
0.154427
0.302677
0.23267
0.128346
0.05628
0
0
0
0.004681
0.214614
2,176
42
109
51.809524
0.847864
0.075368
0
0.157895
0
0
0.182271
0.010956
0
0
0
0
0
1
0
false
0
0.184211
0
0.263158
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d670c4735ca674e296208c80467697f931ec147e
2,020
py
Python
docs/examples/arch/full_rhino.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
docs/examples/arch/full_rhino.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
docs/examples/arch/full_rhino.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
import os from compas_assembly.datastructures import Assembly from compas_assembly.geometry import Arch from compas_assembly.rhino import AssemblyArtist from compas.rpc import Proxy proxy = Proxy() proxy.restart_server() try: HERE = os.path.dirname(__file__) except NameError: HERE = os.getcwd() DATA = os.p...
29.275362
97
0.517327
193
2,020
5.243523
0.450777
0.049407
0.05336
0
0
0
0
0
0
0
0
0.011976
0.090594
2,020
68
98
29.705882
0.538922
0.421782
0
0
0
0
0.098176
0.045178
0
0
0
0
0
1
0
false
0
0.151515
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d67c213b9a36706b9d0346fd0b72cfdc78942fe2
855
py
Python
palabox/processing/text/properly_cut_text.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
palabox/processing/text/properly_cut_text.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
palabox/processing/text/properly_cut_text.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
"""Cut properly some text.""" import re END_OF_SENTENCE_CHARACTERS = {".", ";", "!", "?"} def properly_cut_text( text: str, start_idx: int, end_idx: int, nbr_before: int = 30, nbr_after: int = 30 ) -> str: """Properly cut a text around some interval.""" str_length = len(text) start_idx = max(0, star...
27.580645
88
0.604678
124
855
3.959677
0.346774
0.09776
0.07332
0.077393
0.232179
0.13442
0.13442
0.13442
0
0
0
0.01374
0.233918
855
30
89
28.5
0.735878
0.173099
0
0.210526
0
0
0.05036
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d67f25d3516ae26ca8b76017de005e34113a7d6e
7,293
py
Python
process/triplifier.py
biocodellc/ontology-data-pipeline
f89dc159ab710368b3054bf8e8d70fb4c967527c
[ "BSD-3-Clause" ]
13
2020-06-27T18:37:12.000Z
2022-03-07T16:19:14.000Z
process/triplifier.py
biocodellc/ontology-data-pipeline
f89dc159ab710368b3054bf8e8d70fb4c967527c
[ "BSD-3-Clause" ]
31
2019-01-05T18:39:37.000Z
2021-12-13T19:43:40.000Z
process/triplifier.py
biocodellc/ontology-data-pipeline
f89dc159ab710368b3054bf8e8d70fb4c967527c
[ "BSD-3-Clause" ]
1
2021-11-17T19:04:31.000Z
2021-11-17T19:04:31.000Z
# -*- coding: utf-8 -*- import re import pandas as pd import multiprocessing from multiprocessing.dummy import Pool as ThreadPool import logging from .utils import isNull class Triplifier(object): def __init__(self, config): self.config = config self.integer_columns = [] for rule in self.c...
39.209677
127
0.574935
894
7,293
4.525727
0.214765
0.037074
0.033366
0.044488
0.347751
0.314632
0.219476
0.150766
0.121602
0.09738
0
0.024718
0.295489
7,293
185
128
39.421622
0.762748
0.124092
0
0.224
0
0.072
0.197118
0
0
0
0
0.005405
0
1
0.088
false
0
0.08
0
0.288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d680bcdee688777add2842ce0bdbc8ac9c241004
455
py
Python
core/urls.py
tyronedamasceno/coffe-api
8cbf48c35c5dbd9ddfbeb921140be1d96a48698f
[ "MIT" ]
null
null
null
core/urls.py
tyronedamasceno/coffe-api
8cbf48c35c5dbd9ddfbeb921140be1d96a48698f
[ "MIT" ]
8
2020-02-12T02:59:28.000Z
2022-02-10T14:02:04.000Z
core/urls.py
tyronedamasceno/coffe-api
8cbf48c35c5dbd9ddfbeb921140be1d96a48698f
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from core import views router = routers.DefaultRouter() router.register('coffe_types', views.CoffeTypeViewSet, base_name='coffe_types') router.register('harvests', views.HarvestViewSet, base_name='harvests') router.register( 'storage_repor...
22.75
79
0.771429
54
455
6.333333
0.481481
0.122807
0
0
0
0
0
0
0
0
0
0
0.10989
455
19
80
23.947368
0.844444
0
0
0
0
0
0.153846
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d681b7a1e2748c8e44788cf4efd924a9d9b41944
5,876
py
Python
ros/src/waypoint_updater/waypoint_updater.py
ryan-jonesford/CarND-Capstone
f8095bb2b7370b0825a89d419c19884431dfb754
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
ryan-jonesford/CarND-Capstone
f8095bb2b7370b0825a89d419c19884431dfb754
[ "MIT" ]
3
2018-11-04T23:54:56.000Z
2018-11-18T19:37:11.000Z
ros/src/waypoint_updater/waypoint_updater.py
ryan-jonesford/CarND-Capstone
f8095bb2b7370b0825a89d419c19884431dfb754
[ "MIT" ]
2
2018-10-29T23:45:15.000Z
2018-11-04T21:43:16.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint from scipy.spatial import KDTree import numpy as np from std_msgs.msg import Int32 import math ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As men...
36.955975
131
0.615895
802
5,876
4.32793
0.266833
0.037453
0.030251
0.023048
0.084126
0.035725
0
0
0
0
0
0.015188
0.294078
5,876
158
132
37.189873
0.821601
0.088836
0
0.063636
0
0
0.025512
0
0
0
0
0.006329
0
1
0.109091
false
0.009091
0.063636
0.009091
0.218182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d681e5845812f47217df144a4c421bd1734a615c
1,633
py
Python
tools/configure.py
corrodedHash/sigmarsGarden
c6070005d9e01523c0b0deb2efbbfa5ffef0ce6f
[ "MIT" ]
null
null
null
tools/configure.py
corrodedHash/sigmarsGarden
c6070005d9e01523c0b0deb2efbbfa5ffef0ce6f
[ "MIT" ]
null
null
null
tools/configure.py
corrodedHash/sigmarsGarden
c6070005d9e01523c0b0deb2efbbfa5ffef0ce6f
[ "MIT" ]
null
null
null
from typing import Any import cv2 import numpy as np from sigmarsGarden.config import Configuration from sigmarsGarden.parse import circle_coords def configure(img: Any) -> Configuration: cv2.namedWindow("configureDisplay") # def click_and_crop(event, x, y, flags, param) -> None: # print(event, x, ...
24.014706
77
0.590325
199
1,633
4.678392
0.38191
0.118153
0.051557
0.025779
0.135338
0.098818
0
0
0
0
0
0.052074
0.306185
1,633
67
78
24.373134
0.769638
0.090631
0
0
0
0
0.048616
0
0
0
0
0
0
1
0.040816
false
0
0.102041
0
0.163265
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d682adb11768d513c2f5a3a5ae14d06fb88db0b8
4,847
py
Python
gpt2_generate.py
LindgeW/PreLM
39a6b1c2fc0ccff7e8143f14d113cdfa79f63d79
[ "Apache-2.0" ]
1
2022-03-09T14:40:24.000Z
2022-03-09T14:40:24.000Z
gpt2_generate.py
LindgeW/PreLM
39a6b1c2fc0ccff7e8143f14d113cdfa79f63d79
[ "Apache-2.0" ]
null
null
null
gpt2_generate.py
LindgeW/PreLM
39a6b1c2fc0ccff7e8143f14d113cdfa79f63d79
[ "Apache-2.0" ]
null
null
null
import torch from transformers import GPT2Tokenizer, GPT2LMHeadModel from torch.utils.data import TensorDataset, DataLoader # reference: \transformers\generation_utils.py def select_greedy(logits): next_token_logits = logits[:, -1, :] # Greedy decoding next_token = torch.argmax(next_token_logits, dim=-1) ...
39.08871
101
0.676295
663
4,847
4.713424
0.268477
0.05472
0.0576
0.04032
0.26752
0.21184
0.12416
0.12416
0.12416
0.12416
0
0.019156
0.203012
4,847
123
102
39.406504
0.789801
0.17908
0
0.162791
0
0
0.030571
0.005558
0
0
0
0
0
1
0.081395
false
0
0.034884
0
0.197674
0.081395
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d68824df1e94960138084688a7d3f88b19a19dff
8,044
py
Python
gradient_chaser.py
RobertOpitz/Gradient_Chaser
ca2011342d28798808769831655b74d9adfc6d26
[ "MIT" ]
null
null
null
gradient_chaser.py
RobertOpitz/Gradient_Chaser
ca2011342d28798808769831655b74d9adfc6d26
[ "MIT" ]
null
null
null
gradient_chaser.py
RobertOpitz/Gradient_Chaser
ca2011342d28798808769831655b74d9adfc6d26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 13 17:37:31 2020 @author: robertopitz """ import numpy as np from random import randrange from math import isnan import pygame as pg def get_new_prey_pos(pos, board): while True: c = randrange(1,len(board)-1) r = randrange(1,len...
34.084746
80
0.441074
1,182
8,044
2.890017
0.132826
0.087822
0.063525
0.042155
0.523126
0.46897
0.407787
0.390515
0.321721
0.277518
0
0.049211
0.345724
8,044
235
81
34.229787
0.599848
0.076827
0
0.305556
0
0.011111
0.127068
0.016816
0
0
0
0
0
1
0.066667
false
0.005556
0.022222
0.005556
0.127778
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
d689694bd6143417bf16953605dd1dede7dec316
1,375
py
Python
prior_config.py
ZENGXH/NPDRAW
339d1d9b4880cce891cafe7c20198ef7c121a29e
[ "MIT" ]
21
2021-06-28T18:29:28.000Z
2022-03-13T09:12:07.000Z
prior_config.py
ZENGXH/NPDRAW
339d1d9b4880cce891cafe7c20198ef7c121a29e
[ "MIT" ]
null
null
null
prior_config.py
ZENGXH/NPDRAW
339d1d9b4880cce891cafe7c20198ef7c121a29e
[ "MIT" ]
2
2021-07-05T02:29:32.000Z
2021-11-02T08:25:14.000Z
from utils.yacs_config import CfgNode as CN __C = CN() cfg = __C # cfg.canvas_init=0 cfg.use_vit=0 cfg.use_fast_vit=0 cfg.img_mean=-1 cfg.vit_mlp_dim=2048 cfg.vit_depth=8 cfg.vit_dropout=1 cfg.concat_one_hot=0 cfg.mask_out_prevloc_samples=0 #cfg.input_id_canvas=0 cfg.register_deprecated_key('input_id_canvas') cfg.use_...
22.177419
48
0.786909
276
1,375
3.637681
0.434783
0.087649
0.104582
0.119522
0.080677
0
0
0
0
0
0
0.050553
0.079273
1,375
61
49
22.540984
0.742496
0.100364
0
0
0
0
0.07824
0
0
0
0
0
0
1
0
false
0
0.017544
0
0.017544
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d689def2b69b86b6725aa76fbe9f83cda3ccc692
1,769
py
Python
2021/09/main2.py
chirsz-ever/aoc
dbdc2e32fbef108752db87f3747ce5898a0775ce
[ "BSL-1.0" ]
null
null
null
2021/09/main2.py
chirsz-ever/aoc
dbdc2e32fbef108752db87f3747ce5898a0775ce
[ "BSL-1.0" ]
null
null
null
2021/09/main2.py
chirsz-ever/aoc
dbdc2e32fbef108752db87f3747ce5898a0775ce
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python3 import sys from itertools import repeat, product from operator import mul from functools import reduce inputFile = 'input' if len(sys.argv) >= 2: inputFile = sys.argv[1] heightmap : list[list[int]] = [] with open(inputFile) as fin: for line in fin: heightmap.append([int(c) for ...
26.80303
64
0.569248
280
1,769
3.589286
0.217857
0.037811
0.103483
0.055721
0.366169
0.366169
0.366169
0.366169
0.315423
0.208955
0
0.029253
0.265687
1,769
66
64
26.80303
0.744419
0.011871
0
0.113208
0
0
0.033753
0
0
0
0
0
0
1
0.037736
false
0
0.075472
0
0.245283
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d689f1e24c703d9de5c7460fe0778d147ec02403
974
py
Python
tpDcc/libs/qt/core/traymessage.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
3
2019-08-26T05:56:12.000Z
2019-10-03T11:35:53.000Z
tpDcc/libs/qt/core/traymessage.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
null
null
null
tpDcc/libs/qt/core/traymessage.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
1
2021-03-03T21:01:50.000Z
2021-03-03T21:01:50.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains custom tray balloon """ from __future__ import print_function, division, absolute_import from Qt.QtWidgets import QWidget, QSystemTrayIcon, QMenu class TrayMessage(QWidget, object): def __init__(self, parent=None): super(TrayMessa...
27.055556
68
0.677618
117
974
5.367521
0.470085
0.127389
0.171975
0.050955
0.098726
0.098726
0
0
0
0
0
0.001316
0.219713
974
35
69
27.828571
0.825
0.128337
0
0
0
0
0.036949
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d68d945342e1ae0d7e7a7a1d0a9e54406e6ceb70
18,034
py
Python
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
5
2017-03-03T13:53:51.000Z
2019-05-09T09:47:28.000Z
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
5
2017-10-07T11:15:09.000Z
2021-01-25T17:03:59.000Z
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
6
2017-03-26T17:06:20.000Z
2021-11-15T22:22:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import coloredlogs import logging import json import itertools import shlex import time import queue import sys import os import collections import tempfile from jsonpath_ng import jsonpath, parse from .runner import AsyncRunner from .common import merge_p...
37.886555
182
0.523345
2,256
18,034
4.055408
0.155142
0.020111
0.027872
0.003826
0.260794
0.173789
0.15029
0.132583
0.100557
0.087113
0
0.016541
0.342963
18,034
475
183
37.966316
0.755591
0.010314
0
0.118497
0
0.011561
0.135592
0.006541
0
0
0
0
0
1
0.057803
false
0.028902
0.046243
0.00578
0.156069
0.020231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d68e21dba61d5cbeb398194248f4e63acb8aae21
8,346
py
Python
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
8
2021-02-08T22:12:53.000Z
2022-02-20T16:33:11.000Z
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
null
null
null
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
4
2021-03-04T11:21:42.000Z
2022-02-15T07:47:19.000Z
''' FuSeConv: Fully Separable Convolutions for Fast Inference on Systolic Arrays Authors: Surya Selvam, Vinod Ganesan, Pratyush Kumar Email ID: selvams@purdue.edu, vinodg@cse.iitm.ac.in, pratyush@cse.iitm.ac.in ''' import os import torch import wandb import random import argparse import torchvision import torch.nn as ...
39.367925
149
0.606278
920
8,346
5.43587
0.26087
0.041792
0.061188
0.074985
0.454709
0.395321
0.25215
0.158768
0.146771
0.146771
0
0.033742
0.257848
8,346
211
150
39.554502
0.773652
0.024682
0
0.274725
0
0
0.106493
0.002705
0
0
0
0
0.005495
1
0.021978
false
0
0.06044
0
0.087912
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d69171373efa977663e506a9e0cd4ffbf706ae5a
2,590
py
Python
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
24
2015-02-03T00:04:06.000Z
2021-09-14T06:50:01.000Z
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
1
2021-03-23T10:44:18.000Z
2021-03-23T15:38:38.000Z
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
5
2015-08-16T11:31:09.000Z
2021-12-27T13:31:33.000Z
import os.path from fabric.api import local, env from fabric.utils import fastprint from prezi.fabric.s3 import CommonTasks, S3Deploy, NoopServiceManager env.forward_agent = True env.user = 'publisher' env.roledefs = {'production': [], 'stage': [], 'local': []} class SingleVirtualenvS3Deploy(S3Deploy): def __in...
35.479452
130
0.660232
310
2,590
5.348387
0.354839
0.072376
0.082027
0.096502
0.08263
0.036188
0.036188
0.036188
0
0
0
0.005435
0.218533
2,590
72
131
35.972222
0.813735
0.034749
0
0.037736
0
0.018868
0.214429
0.033267
0
0
0
0
0
1
0.169811
false
0
0.075472
0.037736
0.320755
0.075472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d69196f51793e1153bef57beef63e6af53ecc91a
706
py
Python
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import warnings from django import get_version as get_django_version __title__ = "dj-stripe" __summary__ = "Django + Stripe Made Easy" __uri__ = "https://github.com/pydanny/dj-stripe/" __version__ = "0.5.0" __author__ = "Daniel Greenfeld" __email__ = "pydanny@gmail.com" __li...
29.416667
81
0.723796
98
706
4.744898
0.55102
0.086022
0.068817
0.090323
0.124731
0.124731
0
0
0
0
0
0.028523
0.155807
706
23
82
30.695652
0.751678
0
0
0
0
0
0.498584
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6946eb298801b23fec7b4b5e6de31aae00f1e3a
10,283
py
Python
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
import logging import os import time import numpy as np from autolamella.acquire import ( grab_images, save_reference_images, save_final_images, ) from autolamella.align import realign from autolamella.autoscript import reset_state def milling( microscope, settings, stage_setting...
38.950758
111
0.665565
1,148
10,283
5.684669
0.208188
0.075697
0.033865
0.03034
0.404382
0.366074
0.325621
0.275054
0.227245
0.209163
0
0.004285
0.251094
10,283
263
112
39.098859
0.843137
0.134008
0
0.302885
0
0
0.137509
0.051169
0
0
0
0.003802
0
1
0.033654
false
0
0.052885
0
0.115385
0.004808
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6979012b22ac73cacf5e578b3aa216da2c78397
2,210
py
Python
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
null
null
null
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
null
null
null
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
1
2021-12-16T22:49:29.000Z
2021-12-16T22:49:29.000Z
import pygame from Robot import Robot class SlowRobot(Robot): moveState = -15 shootState = 0 def __init__(self, image, name): super().__init__(image, name) self.movingLeft = False self.movingRight = True self.movingUp = False self.movingDown = True def update(se...
32.5
70
0.466516
182
2,210
5.620879
0.247253
0.117302
0.109482
0.043011
0.351906
0.242424
0.242424
0.242424
0.242424
0.242424
0
0.018456
0.460633
2,210
68
71
32.5
0.839765
0
0
0.365385
0
0
0
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.134615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6997f85637504050677de593bfdc5dfb24a288e
934
py
Python
istype/__init__.py
Cologler/typing-instancecheck-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
6
2018-07-08T09:38:35.000Z
2020-06-25T13:15:02.000Z
istype/__init__.py
Cologler/typing-instancecheck-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
1
2018-07-08T10:12:49.000Z
2018-07-08T11:31:18.000Z
istype/__init__.py
Cologler/istype-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from typing import Iterable from itertools import zip_longest from .internal import TypeMatcher from .g import isinstanceof, issubclassof def match(args: (list, tuple), types: Iterable...
19.87234
63
0.574946
108
934
4.916667
0.601852
0.062147
0
0
0
0
0
0
0
0
0
0.014925
0.282655
934
46
64
20.304348
0.777612
0.260171
0
0.130435
0
0
0.06135
0
0
0
0
0
0
1
0.043478
false
0.043478
0.173913
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d69b51ad69fd05add04bf2431b9d7c7e537e89f6
3,669
py
Python
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
10
2018-04-03T01:51:16.000Z
2022-02-07T04:27:26.000Z
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
19
2018-05-20T00:43:31.000Z
2021-03-18T20:36:52.000Z
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
1
2018-07-11T23:36:43.000Z
2018-07-11T23:36:43.000Z
from aetherling.space_time.space_time_types import * from aetherling.space_time.nested_counters import * from aetherling.modules.ram_any_type import * from aetherling.modules.term_any_type import TermAnyType from aetherling.modules.mux_any_type import DefineMuxAnyType from aetherling.modules.map_fully_parallel_sequenti...
42.662791
121
0.67021
505
3,669
4.6
0.247525
0.067155
0.106328
0.07232
0.303487
0.238485
0.226431
0.148945
0.095566
0.095566
0
0.001063
0.230853
3,669
85
122
43.164706
0.822112
0.131098
0
0.035714
0
0
0.019802
0
0
0
0
0
0
1
0.053571
false
0
0.214286
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
0
0
0
0
1
0
d69d1551c5ade2888af4e328fc5206b21287212d
1,227
py
Python
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
# Process two rose images by summing them together # FIN Laske kaksi ruusukuvaa yhteen # # Samuli Siltanen April 2021 # Python-käännös Ville Tilvis 2021 import numpy as np import matplotlib.pyplot as plt # Read in the images # FIN Lue kuvat levyltä im1 = plt.imread('../_kuvat/ruusu1.png') im2 = plt.imread('../_kuvat...
22.309091
55
0.727791
194
1,227
4.582474
0.515464
0.033746
0.026997
0.031496
0.042745
0.042745
0
0
0
0
0
0.049242
0.139364
1,227
54
56
22.722222
0.792614
0.365118
0
0
0
0
0.170604
0.027559
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d69d82f810cb6e55ebc41352a4d82679e4b15e3c
5,712
py
Python
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
1
2019-11-05T15:00:51.000Z
2019-11-05T15:00:51.000Z
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
null
null
null
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from django.utils.html import format_html from datetime import date, datetime from django_summernote.admin import SummernoteModelAdmin from mptt.admin import MPTTModelAdmin, DraggableMPTTAdmin from .m...
31.558011
76
0.608193
624
5,712
5.363782
0.227564
0.040335
0.025097
0.014341
0.177771
0.153272
0.126382
0.126382
0.126382
0.126382
0
0.006308
0.278361
5,712
180
77
31.733333
0.805677
0.019608
0
0.22069
0
0
0.140075
0.011256
0
0
0
0
0
1
0.062069
false
0
0.062069
0
0.268966
0.027586
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d69f54878d575fc34023843ff11b4582ac0a48da
1,703
py
Python
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
1
2021-09-02T03:48:44.000Z
2021-09-02T03:48:44.000Z
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
null
null
null
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Address, Coupon, Item, Order, OrderItem, Payment, Session def make_refund_accepted(modeladmin, request, queryset): queryset.update(refund_requested=False, refund_granted=True) make_refund_accepted.short_description = "Update orders to refound granted" clas...
22.706667
78
0.63946
163
1,703
6.435583
0.380368
0.060057
0.113441
0.049571
0.171592
0.108675
0.108675
0.108675
0
0
0
0
0.23899
1,703
74
79
23.013514
0.809414
0
0
0.428571
0
0
0.259542
0.013506
0
0
0
0
0
1
0.017857
false
0
0.035714
0
0.267857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6a34d6160e9405d0d8eb8de229e4504ff3e1406
18,624
py
Python
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
null
null
null
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
null
null
null
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
2
2019-08-29T16:14:37.000Z
2019-08-30T08:52:03.000Z
# -*- coding: utf-8 -*- """ Part of slugdetection package @author: Deirdree A Polak github: dapolak """ import numpy as np import pandas as pd from datetime import datetime import matplotlib.pyplot as plt from pyspark.sql import functions as F from pyspark.sql.window import Window class Data_Engineering: """ ...
44.342857
120
0.574152
2,452
18,624
4.26876
0.165171
0.032674
0.039171
0.022738
0.348524
0.289099
0.236171
0.211713
0.195089
0.154772
0
0.012026
0.330273
18,624
419
121
44.448687
0.827147
0.381873
0
0.195531
0
0
0.130135
0
0
0
0
0
0.083799
1
0.067039
false
0
0.03352
0
0.156425
0.022346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6a35d2bfc2590a217cfcb8cbdd8bde2a6488383
2,632
py
Python
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
import os import time import yaml import argparse from PIL import Image import matplotlib.pyplot as plt from vietocr.tool.predictor import Predictor from vietocr.tool.config import Cfg def main(): parser = argparse.ArgumentParser() parser.add_argument("--img", required=True, help="foo help") parser.add_a...
34.631579
111
0.665274
387
2,632
4.426357
0.609819
0.024518
0.014011
0.022183
0.154116
0.127262
0.101576
0.072388
0.072388
0.072388
0
0.128345
0.162234
2,632
75
112
35.093333
0.648526
0.197948
0
0
0
0
0.035305
0
0
0
0
0
0
1
0.022222
false
0
0.177778
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6a7a396afccca6f90d97a49c348647708bf30b9
9,790
py
Python
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
#! python3 # Multi-atlas segmentation scheme trying to give a platform to do tests before translating them to the plugin. from __future__ import print_function from GetMetricFromElastixRegistration import GetFinalMetricFromElastixLogFile from MultiAtlasSegmentation import MultiAtlasSegmentation from ApplyBiasCorrection...
60.432099
229
0.81236
1,188
9,790
6.464646
0.223064
0.078125
0.033203
0.023438
0.41862
0.29974
0.230339
0.219141
0.214063
0.214063
0
0.017984
0.091216
9,790
162
230
60.432099
0.845229
0.331869
0
0.044944
0
0.044944
0.124904
0.027448
0
0
0
0
0
1
0
false
0
0.146067
0
0.146067
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6a8326296ab6af0cd67cc06c386c30e1cff6c27
1,591
py
Python
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jes.gui.dialogs.intro ===================== The "intro" dialog, which displays the JESIntroduction.txt file. :copyright: (C) 2014 Matthew Frazier and Mark Guzdial :license: GNU GPL v2 or later, see jes/help/JESCopyright.txt for details """ from __future__ import with_statement import JES...
28.927273
74
0.672533
182
1,591
5.785714
0.593407
0.011396
0
0
0
0
0
0
0
0
0
0.018548
0.220616
1,591
54
75
29.462963
0.830645
0.236329
0
0
0
0
0.054908
0.019967
0
0
0
0
0
1
0.068966
false
0
0.241379
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
d6ac72939accd121f9983c21fee472c5729238d1
899
py
Python
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
import collections class Solution: def isValidSudoku(self, board: List[List[str]]) -> bool: cols = collections.defaultdict(set) rows = collections.defaultdict(set) grid = collections.defaultdict(set) for r in range(len(board)): for c in range(len(board)...
34.576923
103
0.463849
111
899
3.756757
0.387387
0.100719
0.117506
0.064748
0.091127
0
0
0
0
0
0
0.007634
0.41713
899
26
104
34.576923
0.788168
0.115684
0
0
0
0
0.001261
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6b10c402152179bd5b2001946c3c77a518e7627
9,375
py
Python
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import seaborn as sns get_ipython().run_line_magic('matplotlib', 'inline') import matplotlib.pyplot as plt # In[2]: from sklearn.preprocessing import LabelEncoder from sklearn.metrics import classification_report from sklearn.m...
22.865854
154
0.68192
1,414
9,375
4.428571
0.219236
0.017247
0.012456
0.022996
0.4481
0.423028
0.359949
0.296072
0.24992
0.216864
0
0.043593
0.14848
9,375
409
155
22.92176
0.740824
0.11552
0
0.103226
0
0
0.172422
0
0
0
0
0
0
1
0.025806
false
0
0.154839
0
0.180645
0.077419
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6b123a5d8064301b36365941fb80c50a959742e
3,950
py
Python
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class ZhimaCreditOrderRepaymentApplyModel(object): def __init__(self): self._action_type = None self._category = None self._order_info = None self._out_ord...
30.152672
75
0.591899
496
3,950
4.387097
0.102823
0.073529
0.068934
0.045037
0.32261
0.264706
0.045037
0.027574
0
0
0
0.000368
0.311392
3,950
130
76
30.384615
0.799632
0.010633
0
0.126126
0
0
0.097848
0
0
0
0
0
0
1
0.153153
false
0
0.018018
0.063063
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6b2ed2144802e9da93811adc368ed32fd611400
1,503
py
Python
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os, json __author__ = 'Manfred Minimair <manfred@minimair.org>' class JSONStorage: """ File storage for a dictionary. """ file = '' # file name of storage file data = None # data dict indent = ' ' # indent prefix for pretty printing json files def __init__(self, path, name): ...
28.358491
80
0.558217
190
1,503
4.347368
0.363158
0.048426
0.033898
0.038741
0.065375
0.065375
0.065375
0
0
0
0
0
0.337991
1,503
52
81
28.903846
0.830151
0.348636
0
0.083333
0
0
0.051157
0.026797
0
0
0
0
0
1
0.166667
false
0
0.041667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6b3ca6a1ac3ed90a5486b776195623690a10478
2,219
py
Python
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
1
2021-07-09T19:32:16.000Z
2021-07-09T19:32:16.000Z
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
null
null
null
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
null
null
null
#!-*- conding: utf8 -*- #coding: utf-8 """ Aluno: Gabriel Ribeiro Camelo Matricula: 401091 """ import matplotlib.pyplot as pplt # gráficos import math # Matemática import re # expressões regulares import numpy as np # matrizes from statistics import p...
24.384615
75
0.633168
344
2,219
4.078488
0.456395
0.009979
0.015681
0.01283
0.081967
0.034212
0
0
0
0
0
0.017741
0.237945
2,219
90
76
24.655556
0.811946
0.343398
0
0
0
0
0.038325
0
0
0
0
0
0
1
0.042553
false
0
0.12766
0
0.212766
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6b7e37b488f062925a4fc8dd11c3dc8a00b2e5d
4,424
py
Python
tools/weixin.py
GingerWWW/news_spider
51e1437cf9a58071cc5bd2c12f854ae84f96a5d5
[ "MIT" ]
208
2018-02-11T01:58:08.000Z
2022-03-28T07:15:12.000Z
tools/weixin.py
DeteMin/news_spider
9e29525a8bcb2310fca3bb4f9ca4b99b39ecfc9c
[ "MIT" ]
19
2018-04-17T11:03:28.000Z
2022-03-17T00:02:20.000Z
tools/weixin.py
DeteMin/news_spider
9e29525a8bcb2310fca3bb4f9ca4b99b39ecfc9c
[ "MIT" ]
44
2018-02-26T09:47:41.000Z
2022-03-22T13:34:27.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: weixin.py @time: 2018-02-10 17:55 """ import re import time import hashlib # from urlparse import urljoin # PY2 # from urllib.parse import urljoin # PY3 from future.moves.urllib.parse import urljoin ...
30.937063
141
0.614828
615
4,424
4.092683
0.253659
0.038141
0.023838
0.033373
0.265793
0.232817
0.176798
0.176798
0.176798
0.162892
0
0.00729
0.255877
4,424
142
142
31.15493
0.75729
0.117089
0
0.116279
0
0.011628
0.167411
0.034954
0
0
0
0
0
1
0.104651
false
0
0.127907
0
0.348837
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6ca0b78e18a4bf98def2fc3af39ef75294bf852
14,129
py
Python
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path import json import re import numpy as np import os from collections import OrderedDict from .TxtMpiFile import TxtMpiFile from .BaseSource import BaseSource from tweezers.meta import MetaDict, UnitDict class TxtMpiSource(BaseSource): """ Data source for \*.txt files from the MPI with...
32.038549
119
0.55793
1,608
14,129
4.890547
0.246269
0.019837
0.025432
0.018311
0.212233
0.195956
0.160478
0.151322
0.127416
0.116734
0
0.003633
0.337674
14,129
440
120
32.111364
0.836717
0.386439
0
0.214286
0
0.005495
0.091051
0.015175
0
0
0
0
0
1
0.087912
false
0.021978
0.049451
0
0.241758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6ca4d4ba42af57fc033e9368f2ae8ef9b4d183f
6,482
py
Python
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
3
2017-12-18T06:37:50.000Z
2018-02-23T08:31:25.000Z
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
null
null
null
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from threading import Thread from time import sleep import logging import shexter.requester import shexter.platform as platform import shexter.config """ This file is for the shexter daemon, which runs persistantly. Every 5 seconds, it polls the phone to see if there are unread messages. If t...
32.248756
149
0.631749
805
6,482
4.959006
0.300621
0.039078
0.04008
0.0501
0.102455
0.082415
0.046343
0.035321
0.035321
0.035321
0
0.009705
0.268744
6,482
200
150
32.41
0.832489
0.149954
0
0.106195
0
0.00885
0.161117
0
0
0
0
0
0
1
0.079646
false
0
0.079646
0
0.19469
0.123894
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6caa6b944d454c9401a57591872b8b05ba06ad2
7,218
py
Python
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
import sys import os import logging import time import datetime from PIL import ( Image, ImageDraw, ImageFont ) from config import * from util import * from info_epd import praytimes DEBUG_PRAYTIMES = False class SalahMixin: """Uses praytimes library for calculating prayer times. Make sure s...
34.371429
87
0.541563
876
7,218
4.27968
0.221461
0.040011
0.044812
0.067485
0.150173
0.081889
0.016538
0.016538
0.016538
0
0
0.013944
0.334303
7,218
209
88
34.535885
0.766285
0.077445
0
0.063291
0
0
0.104866
0
0
0
0
0
0
1
0.050633
false
0
0.056962
0.006329
0.139241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6d00e0815efbd0fa8cd9dea45c88de5c7194783
2,689
py
Python
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
5
2018-03-08T17:22:27.000Z
2018-03-11T14:20:53.000Z
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
263
2018-03-08T18:05:12.000Z
2022-03-11T23:26:20.000Z
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
6
2018-03-12T19:48:19.000Z
2022-01-14T04:58:52.000Z
from django.template import Library register = Library() hundreds = [ '', 'сто', 'двести', 'триста', 'четыреста', 'пятьсот', 'шестьсот', 'семьсот', 'восемьсот', 'девятьсот' ] first_decade = [ '', ('одна', 'один'), ('две', 'два'), 'три', 'четыре', 'пять...
22.040984
92
0.564522
300
2,689
4.923333
0.39
0.067705
0.035207
0.046039
0.249831
0.13541
0.098849
0.098849
0.098849
0.098849
0
0.041907
0.290071
2,689
121
93
22.223141
0.731797
0.014875
0
0.09
0
0
0.128458
0
0
0
0
0
0
1
0.03
false
0.01
0.01
0
0.11
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6d5022d562b8e05c89e7d039fdd54b153bdd856
10,444
py
Python
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
""" Unit tests for resdk/resources/utils.py file. """ # pylint: disable=missing-docstring, protected-access import unittest import six from mock import MagicMock, call, patch from resdk.resources import Collection, Data, Process, Relation, Sample from resdk.resources.utils import ( _print_input_line, endswith_co...
37.035461
95
0.567503
1,156
10,444
4.957612
0.128028
0.075903
0.069098
0.062991
0.555749
0.440586
0.362938
0.282673
0.238527
0.238527
0
0.021751
0.278054
10,444
281
96
37.16726
0.738329
0.065588
0
0.234742
0
0
0.162034
0.010294
0
0
0
0
0.15493
1
0.070423
false
0
0.023474
0
0.098592
0.023474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6d7581ab54e0bc20bcf26b8c40b0005e45bc25c
1,136
py
Python
pa1-skeleton/submission/parse_block.py
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
pa1-skeleton/submission/parse_block.py
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
pa1-skeleton/submission/parse_block.py
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
class BSBIIndex(BSBIIndex): def parse_block(self, block_dir_relative): """Parses a tokenized text file into termID-docID pairs Parameters ---------- block_dir_relative : str Relative Path to the directory that contains the files for the block ...
39.172414
120
0.564261
140
1,136
4.321429
0.521429
0.052893
0.105785
0.042975
0.089256
0.089256
0
0
0
0
0
0.001337
0.341549
1,136
28
121
40.571429
0.807487
0.365317
0
0
0
0
0.023451
0
0
0
0
0
0
1
0.1
false
0
0
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
d6dd795a3bd40d81aa9b1e2a17911949cba95e34
14,321
py
Python
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
#!/usr/bin/env python # (c) 2012, Marco Vito Moscaritolo <marco@agavee.com> # modified by Tomas Karasek <tomas.karasek@digile.fi> # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
33.46028
79
0.649047
1,994
14,321
4.521063
0.245236
0.019967
0.009318
0.009318
0.130006
0.086744
0.050804
0.033943
0.026179
0.016639
0
0.007915
0.241254
14,321
427
80
33.538642
0.821738
0.407863
0
0.061611
0
0
0.126424
0.002695
0
0
0
0.002342
0
1
0.085308
false
0.009479
0.066351
0
0.265403
0.009479
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6de6584aa755891b400cead530c2e7d4744bf03
7,003
py
Python
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
from datetime import date import numpy as np from sklearn.metrics import ( roc_curve, auc, ) import torch from torch.utils.data import DataLoader from .metrics import accuracy_thresh, fbeta, pairwise_confusion_matrix import pandas as pd from tqdm import tqdm class ModelEvaluator: """Class for evaluati...
34.497537
87
0.565472
821
7,003
4.585871
0.228989
0.033466
0.01753
0.022311
0.308632
0.244622
0.214343
0.127224
0.127224
0.115803
0
0.005798
0.334999
7,003
202
88
34.668317
0.802663
0.109096
0
0.136986
0
0
0.057129
0.006185
0
0
0
0
0
1
0.034247
false
0
0.054795
0
0.109589
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6df220a36694618699e66a95c74ab11a133b077
7,381
py
Python
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import collections import xml.etree.ElementTree as x_etree import synapse.common as s_common import synapse.lib.syntax as s_syntax class DataElem: def __init__(self, item, name=None, parent=None): self._d_name = name self._d_item = item self._d_parent = parent self._d_special = ...
25.898246
75
0.520661
873
7,381
4.272623
0.200458
0.02815
0.041019
0.028954
0.407775
0.32252
0.276676
0.237802
0.237802
0.183914
0
0.003063
0.380843
7,381
284
76
25.989437
0.813129
0.22585
0
0.402685
0
0
0.001458
0
0
0
0
0.003521
0
1
0.127517
false
0
0.026846
0.020134
0.308725
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6e3ab9d5ea800c6d75075d9a0c1f51418a5e6e8
1,851
py
Python
addon/blenderAddon/test.py
kazulagi/plantFEM
20bf2df8202d41aa5dc25d1cc820385dabbc604f
[ "MIT" ]
21
2020-06-21T08:21:44.000Z
2022-01-13T04:28:30.000Z
addon/blenderAddon/test.py
kazulagi/plantFEM_binary
32acf059a6d778307211718c2a512ff796b81c52
[ "MIT" ]
5
2021-05-08T05:20:06.000Z
2022-03-25T05:39:29.000Z
addon/blenderAddon/test.py
kazulagi/plantFEM_binary
32acf059a6d778307211718c2a512ff796b81c52
[ "MIT" ]
4
2020-10-20T18:28:59.000Z
2021-12-15T08:35:25.000Z
bl_info = { "name": "plantFEM (Seed)", "author": "Haruka Tomobe", "version": (1, 0), "blender": (2, 80, 0), "location": "View3D > Add > Mesh > plantFEM Object", "description": "Adds a new plantFEM Object", "warning": "", "wiki_url": "", "category": "Add Mesh", } import bpy from bp...
26.070423
68
0.670989
222
1,851
5.342342
0.364865
0.05059
0.063238
0.030354
0.298482
0.251265
0.177066
0.177066
0.102867
0.102867
0
0.0171
0.210157
1,851
70
69
26.442857
0.794118
0
0
0.148148
0
0
0.22
0.062162
0
0
0
0
0
1
0.092593
false
0
0.092593
0
0.388889
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6e6226b3673f32b61f24bf4e754297739bd3b2c
1,295
py
Python
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
from tkinter import * import os main = Tk() main.geometry('{}x{}'.format(550, 550)) main.wm_title("Welcome to Face Recognition Based Attendence System ") svalue3= StringVar() # defines the widget state as string svalue2 = StringVar() #imagePath = PhotoImage(file="facerec.png") #widgetf = Label(main, image=imagePath)....
26.428571
115
0.713514
185
1,295
4.902703
0.502703
0.039691
0.062845
0.041896
0.13892
0.085998
0.085998
0.085998
0.085998
0.085998
0
0.04375
0.135135
1,295
48
116
26.979167
0.766071
0.197683
0
0
0
0
0.178295
0
0
0
0
0
0
1
0.068966
false
0
0.068966
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6e750c2e34d4d5c52e114e9bd8b810a1a5e2430
2,586
py
Python
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
14
2020-06-05T09:30:42.000Z
2022-01-19T00:26:48.000Z
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
6
2020-06-09T14:05:21.000Z
2021-03-18T13:55:15.000Z
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
1
2020-06-09T13:53:15.000Z
2020-06-09T13:53:15.000Z
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # 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 applicab...
34.026316
82
0.656999
351
2,586
4.635328
0.407407
0.043024
0.055317
0.019668
0.13153
0.08236
0.041795
0.041795
0.041795
0
0
0.008155
0.241299
2,586
75
83
34.48
0.821101
0.29041
0
0
0
0
0.119074
0.027563
0
0
0
0
0
1
0.170732
false
0
0.073171
0
0.292683
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6e87832836db722cb4f55a3e89485349b743a75
859
py
Python
LaneTracking-master/main.py
cmflannery/openvision
884ae95325dba1db0d428179796efe03964d5f5b
[ "MIT" ]
null
null
null
LaneTracking-master/main.py
cmflannery/openvision
884ae95325dba1db0d428179796efe03964d5f5b
[ "MIT" ]
null
null
null
LaneTracking-master/main.py
cmflannery/openvision
884ae95325dba1db0d428179796efe03964d5f5b
[ "MIT" ]
null
null
null
from __future__ import division import cv2 import track import detect def main(video_path): cap = cv2.VideoCapture(video_path) ticks = 0 lt = track.LaneTracker(2, 0.1, 500) ld = detect.LaneDetector(180) while cap.isOpened(): precTick = ticks ticks = cv2.getTickCount() d...
23.861111
115
0.571595
114
859
4.254386
0.438596
0.082474
0.049485
0.086598
0.028866
0
0
0
0
0
0
0.076555
0.270081
859
35
116
24.542857
0.69697
0
0
0
0
0
0.001164
0
0
0
0.004657
0
0
1
0.043478
false
0
0.173913
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6e8a2cccf8950f95f736755d08af27a34195960
368
py
Python
app_server/config.py
brdavs/faker-trader
6681bb65bab6d024e2f9dffec62a7decf64c76cd
[ "MIT" ]
null
null
null
app_server/config.py
brdavs/faker-trader
6681bb65bab6d024e2f9dffec62a7decf64c76cd
[ "MIT" ]
null
null
null
app_server/config.py
brdavs/faker-trader
6681bb65bab6d024e2f9dffec62a7decf64c76cd
[ "MIT" ]
null
null
null
SEECRET = 'Extremely secretive seecret. You could not guess this one if your life depended on it.' DATABASE = 'db/data.db' DATABASE_PRICES = 'db/prices.db' SESSION_TTL = 240 WEBSOCKETS_PORT= 7334 WEBSOCKETS_URI = 'ws://localhost:' + str(WEBSOCKETS_PORT) DEFAULT_LEDGER = { 'value': 10000, 'asset_id': 1 } DEFAU...
24.533333
98
0.73913
53
368
4.924528
0.811321
0.061303
0
0
0
0
0
0
0
0
0
0.061093
0.154891
368
15
99
24.533333
0.778135
0
0
0
0
0
0.368564
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6ec2af6465219bbbd1c415984736e30d5b7e368
2,160
py
Python
flarmfuncs.py
acasadoalonso/RealTimeScoring
843fd151a9a963851f79549b8c9117ac37779578
[ "MIT" ]
null
null
null
flarmfuncs.py
acasadoalonso/RealTimeScoring
843fd151a9a963851f79549b8c9117ac37779578
[ "MIT" ]
null
null
null
flarmfuncs.py
acasadoalonso/RealTimeScoring
843fd151a9a963851f79549b8c9117ac37779578
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import MySQLdb from ognddbfuncs import getognchk unkglider = [] def getflarmid(conn, registration): # get the FLARMID from the GLIDERS table on the database cursG = conn.cursor() # set the cursor for searching the devices try: cursG.execute("select idglider, flarmtype from...
44.081633
121
0.572685
246
2,160
5.028455
0.373984
0.016168
0.036378
0.043654
0.315279
0.315279
0.315279
0.315279
0.21342
0.21342
0
0.00507
0.269444
2,160
48
122
45
0.778834
0.28287
0
0.243902
0
0
0.189295
0
0
0
0
0
0
1
0.04878
false
0
0.04878
0
0.170732
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6ec4b20c2057ab10ad8e413862f2137de3b2c8f
1,916
py
Python
sf2_webapp/__main__.py
EdinburghGenomics/sf2-webapp
7deab0a6513f8586646e16edacbc19bcfc3b18ad
[ "MIT" ]
null
null
null
sf2_webapp/__main__.py
EdinburghGenomics/sf2-webapp
7deab0a6513f8586646e16edacbc19bcfc3b18ad
[ "MIT" ]
null
null
null
sf2_webapp/__main__.py
EdinburghGenomics/sf2-webapp
7deab0a6513f8586646e16edacbc19bcfc3b18ad
[ "MIT" ]
null
null
null
"""Edinburgh Genomics Online SF2 web application. examples: To start the tornado server: $ start_sf2_webapp More information is available at: - http://gitlab.genepool.private/hdunnda/sf2-webapp """ __version__="0.0.1" import os import tornado.options from tornado.options import define, options import sf2...
34.214286
166
0.740605
252
1,916
5.507937
0.305556
0.097983
0.043228
0.054755
0.233429
0.146974
0.07781
0
0
0
0
0.00612
0.147182
1,916
55
167
34.836364
0.843329
0.138831
0
0
0
0
0.263126
0
0
0
0
0
0.148148
1
0.037037
false
0
0.222222
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6f068d6c5eae56035d6b920c42bb8ee0fe1c621
1,705
py
Python
ppcd/utils/loss_compute.py
geoyee/PdRSCD
4a1a7256320f006c15e3e5b5b238fdfba8198853
[ "Apache-2.0" ]
44
2021-04-21T02:41:55.000Z
2022-03-09T03:01:16.000Z
ppcd/utils/loss_compute.py
MinZHANG-WHU/PdRSCD
612976225201d78adc7ff99529ada17b41fedc5d
[ "Apache-2.0" ]
2
2021-09-30T07:52:47.000Z
2022-02-12T09:05:35.000Z
ppcd/utils/loss_compute.py
MinZHANG-WHU/PdRSCD
612976225201d78adc7ff99529ada17b41fedc5d
[ "Apache-2.0" ]
6
2021-07-23T02:18:39.000Z
2022-01-14T01:15:50.000Z
# import paddle def check_logits_losses(logits_list, losses): # 自动权重和衰减 if 'ceof' not in losses.keys(): losses['ceof'] = [1] * len(losses['type']) if 'decay' not in losses.keys(): losses['decay'] = [1] * len(losses['type']) if len(losses['type']) == len(losses['ceof']) and \ ...
39.651163
96
0.567155
222
1,705
4.171171
0.225225
0.118791
0.070194
0.048596
0.37581
0.228942
0.157667
0.110151
0.110151
0.110151
0
0.005029
0.300293
1,705
43
97
39.651163
0.771165
0.024633
0
0.111111
0
0
0.149041
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6f151a961ded81e75f0e5f337aec384c9bf1232
28,150
py
Python
aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py
adegomme/aiida-bigdft-plugin
dfd17f166a8cd547d3e581c7c3c9f4eb32bd2aab
[ "MIT" ]
2
2020-06-10T02:45:59.000Z
2020-08-05T18:55:05.000Z
aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py
mikiec84/aiida-bigdft-plugin
ce6ddc69def97977fe0209861ea7f1637090b60f
[ "MIT" ]
6
2019-12-15T19:35:34.000Z
2021-05-07T15:32:18.000Z
aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py
mikiec84/aiida-bigdft-plugin
ce6ddc69def97977fe0209861ea7f1637090b60f
[ "MIT" ]
1
2020-08-05T18:55:21.000Z
2020-08-05T18:55:21.000Z
import numpy as np from futile.Utils import write HaeV = 27.21138386 def _occ_and_virt(log): """ Extract the number of occupied and empty orbitals from a logfile """ norb = log.log['Total Number of Orbitals'] if log.log['Spin treatment'] == 'Averaged': norbv = log.evals[0].info[0]-norb ...
37.383798
79
0.590515
3,554
28,150
4.587226
0.164041
0.015948
0.010428
0.010121
0.25161
0.201435
0.171993
0.161197
0.141569
0.11961
0
0.008755
0.310231
28,150
752
80
37.433511
0.83087
0.357052
0
0.158602
0
0
0.049097
0.002947
0
0
0
0
0.005376
1
0.094086
false
0.002688
0.026882
0.008065
0.217742
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6f34e314e7e198246f5d865ff9cf3535ca580d5
1,290
py
Python
pi-pytorch/tutorials/sensor/eval.py
tongni1975/stackup-workshops
d83f1d5adcc0b133b10e22d1db295020af967bac
[ "MIT" ]
12
2018-07-21T14:38:55.000Z
2020-08-18T07:27:39.000Z
pi-pytorch/tutorials/sensor/eval.py
tongni1975/stackup-workshops
d83f1d5adcc0b133b10e22d1db295020af967bac
[ "MIT" ]
1
2019-07-28T03:17:44.000Z
2019-12-14T09:01:18.000Z
pi-pytorch/tutorials/sensor/eval.py
tongni1975/stackup-workshops
d83f1d5adcc0b133b10e22d1db295020af967bac
[ "MIT" ]
10
2018-06-12T07:54:07.000Z
2020-08-18T07:31:47.000Z
import torch from torch.autograd import Variable from sklearn.metrics import confusion_matrix, classification_report import numpy as np import time # import our model and data from rnn import RNN from data import get_data hidden_size = 10 learning_rate = 0.01 num_layers = 2 num_epochs = 1000 sequence_length = 10 batc...
24.807692
67
0.712403
187
1,290
4.663102
0.438503
0.051606
0.03211
0.041284
0.036697
0
0
0
0
0
0
0.018886
0.17907
1,290
51
68
25.294118
0.804533
0.078295
0
0
0
0
0.092905
0
0
0
0
0
0
1
0.029412
false
0
0.205882
0
0.264706
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6f3a4cb8ec73baf05b168d49488b8ba1e024e77
357
py
Python
semesterIII/FADP/Exp2.py
ShreerajRaul/ghriet
4ff8372ced0c871f019a61b735c60725b6d373d4
[ "MIT" ]
null
null
null
semesterIII/FADP/Exp2.py
ShreerajRaul/ghriet
4ff8372ced0c871f019a61b735c60725b6d373d4
[ "MIT" ]
null
null
null
semesterIII/FADP/Exp2.py
ShreerajRaul/ghriet
4ff8372ced0c871f019a61b735c60725b6d373d4
[ "MIT" ]
null
null
null
# Solve the quadratic equation ax**2 + bx + c = 0 # import complex math module import cmath a=int(input("Enter a:")) b=int(input("Enter b:")) c=int(input("Enter c:")) # calculate the discriminant d = (b**2) - (4*a*c) # find two solutions sol1 = (-b-cmath.sqrt(d))/(2*a) sol2 = (-b+cmath.sqrt(d))/(2*a) print('The solutio...
29.75
55
0.641457
66
357
3.469697
0.530303
0.104803
0.170306
0.09607
0.113537
0.113537
0
0
0
0
0
0.038961
0.137255
357
12
55
29.75
0.704545
0.336134
0
0
0
0
0.223176
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6f5c7c92dd0905f3aec94fff3ac8b43d06bc4f8
2,084
py
Python
pynars/utils/tools.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/utils/tools.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/utils/tools.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
import sys from typing import Callable, List try: sys.getsizeof(0) getsizeof = lambda x: sys.getsizeof(x) except: # import resource getsizeof = lambda _: 1#resource.getrusage(resource.RUSAGE_SELF).ru_maxrss def get_size(obj, seen=None): """Recursively finds size of objects""" size = getsizeof(...
33.079365
374
0.640595
323
2,084
3.96904
0.312694
0.043682
0.046802
0.032761
0.168487
0.168487
0.168487
0.054602
0
0
0
0.017337
0.225048
2,084
63
375
33.079365
0.776471
0.242802
0
0
0
0
0.010296
0
0
0
0
0
0
1
0.078947
false
0
0.105263
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6f7adc0b1077f898d2e6f6848ac5efb072221fd
7,331
py
Python
funwalk/hyphae.py
cameronmartino/funwalk
24d4bcf6790322f53c0e066492303b4fd2e0980e
[ "MIT" ]
null
null
null
funwalk/hyphae.py
cameronmartino/funwalk
24d4bcf6790322f53c0e066492303b4fd2e0980e
[ "MIT" ]
null
null
null
funwalk/hyphae.py
cameronmartino/funwalk
24d4bcf6790322f53c0e066492303b4fd2e0980e
[ "MIT" ]
1
2019-12-16T19:45:03.000Z
2019-12-16T19:45:03.000Z
from __future__ import division import numpy as np import pandas as pd import math from tqdm import tqdm from matplotlib.colors import rgb2hex def MonodExt(k1,k2,kt,l,Stmp,ks=200): # source: Lejeune et al 1995, Morphology of Trichoderma reesei QM 9414 in Submerged Cultures return (k1+k2*(l/(l+kt)))*(Stmp/(Stmp...
47.915033
116
0.506343
939
7,331
3.848775
0.257721
0.077476
0.063918
0.019923
0.192861
0.125069
0.075263
0.075263
0.075263
0.075263
0
0.04117
0.370482
7,331
153
117
47.915033
0.741928
0.214568
0
0.065421
0
0
0.026414
0
0
0
0
0
0
1
0.046729
false
0
0.056075
0.009346
0.149533
0.009346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6f9290567678db771e6a8c50fd70341df8c77a3
1,636
py
Python
Tree/(CODECHEF) Binary_Operations.py
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
1
2020-08-27T06:59:52.000Z
2020-08-27T06:59:52.000Z
Tree/(CODECHEF) Binary_Operations.py
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
null
null
null
Tree/(CODECHEF) Binary_Operations.py
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10**6) class Node: def __init__(self, val, pos): self.left = None self.right = None self.pos = pos self.val = val def insert(node, val, pos): if node is None: print(pos) return Node(val, pos) if val < node.val: # move to left...
27.266667
81
0.56846
232
1,636
3.991379
0.228448
0.097192
0.032397
0.045356
0.182505
0.12959
0.075594
0.075594
0.075594
0.075594
0
0.008182
0.327628
1,636
60
82
27.266667
0.833636
0.094743
0
0.203704
0
0
0.000679
0
0
0
0
0
0
1
0.092593
false
0
0.018519
0
0.222222
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6fa1a37daf66eeb44908ffa65e9185aef668bb0
814
py
Python
kubernetes/generate.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
kubernetes/generate.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
kubernetes/generate.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
from kubernetes import client, config import json # 生成YML def main(): pod = create_pod("dev") print(json.dumps(client.ApiClient().sanitize_for_serialization(pod))) def create_pod(environment): return client.V1Pod( api_version="v1", kind="Pod", metadata=client.V1ObjectMeta( ...
22
73
0.443489
63
814
5.52381
0.634921
0.051724
0
0
0
0
0
0
0
0
0
0.013514
0.454545
814
36
74
22.611111
0.77027
0.006143
0
0
0
0
0.057001
0
0
0
0
0
0
1
0.068966
false
0
0.068966
0.034483
0.172414
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6fb376cc1a2cdba245a1630f216a970be324900
1,680
py
Python
manim/animation/update.py
philschatz/manim
e3359a571d9a02a08979b3e037ddada3e874eb7c
[ "MIT" ]
5
2019-02-22T14:10:08.000Z
2022-03-13T01:03:49.000Z
manim/animation/update.py
philschatz/manim
e3359a571d9a02a08979b3e037ddada3e874eb7c
[ "MIT" ]
17
2021-04-10T13:47:17.000Z
2021-05-17T21:25:30.000Z
manim/animation/update.py
philschatz/manim
e3359a571d9a02a08979b3e037ddada3e874eb7c
[ "MIT" ]
1
2021-03-31T20:46:51.000Z
2021-03-31T20:46:51.000Z
"""Animations that update mobjects.""" __all__ = ["UpdateFromFunc", "UpdateFromAlphaFunc", "MaintainPositionRelativeTo"] import operator as op import typing from ..animation.animation import Animation if typing.TYPE_CHECKING: from ..mobject.mobject import Mobject class UpdateFromFunc(Animation): """ ...
28.965517
81
0.674405
175
1,680
6.217143
0.348571
0.077206
0.058824
0.060662
0.217831
0.171875
0.171875
0.171875
0.125
0.125
0
0
0.225595
1,680
57
82
29.473684
0.83628
0.108929
0
0.189189
0
0
0.059264
0.017711
0
0
0
0
0
1
0.135135
false
0
0.108108
0
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6fb8c0182b842a2a3c6c84fa4f6e7466f61a46b
5,583
py
Python
nets/mobilenet.py
DanielWong0623/Dog-Face-Recognition-PyTorch
70920a65617d9b6de59919d8920e4a1a133d58d3
[ "MIT" ]
null
null
null
nets/mobilenet.py
DanielWong0623/Dog-Face-Recognition-PyTorch
70920a65617d9b6de59919d8920e4a1a133d58d3
[ "MIT" ]
null
null
null
nets/mobilenet.py
DanielWong0623/Dog-Face-Recognition-PyTorch
70920a65617d9b6de59919d8920e4a1a133d58d3
[ "MIT" ]
null
null
null
import torch import torch.nn as nn def _make_divisible(ch, divisor=8, min_ch=None): if min_ch is None: min_ch = divisor new_ch = max(min_ch, int(ch + divisor / 2) // divisor * divisor) if new_ch < 0.9 * ch: new_ch += divisor return new_ch # ---------------------- # Mobi...
30.675824
105
0.51818
684
5,583
4.049708
0.209064
0.030325
0.019495
0.039711
0.177256
0.150181
0.098556
0.053791
0.053791
0.053791
0
0.095736
0.348916
5,583
181
106
30.845304
0.6663
0.106574
0
0.144
0
0
0.001675
0
0
0
0
0
0
1
0.08
false
0
0.016
0.016
0.184
0.008
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6fc1bb2c513a94df13f8c3502baea0cf10d6404
538
py
Python
xbrr/edinet/reader/aspects/stock.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
xbrr/edinet/reader/aspects/stock.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
xbrr/edinet/reader/aspects/stock.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
from xbrr.base.reader.base_parser import BaseParser from xbrr.edinet.reader.element_value import ElementValue class Stock(BaseParser): def __init__(self, reader): tags = { "dividend_paid": "jpcrp_cor:DividendPaidPerShareSummaryOfBusinessResults", # 一株配当 "dividends_surplus": "jppf...
38.428571
96
0.665428
48
538
7.104167
0.6875
0.046921
0
0
0
0
0
0
0
0
0
0
0.247212
538
13
97
41.384615
0.841975
0.031599
0
0
0
0
0.32882
0.270793
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6fc289ed39bfadb67662fbe1b9dc0d8849d8f8c
2,031
py
Python
ClusterAuthors.py
wjs018/JitaChat
0b289f7f6e65c1a8b0627e7c3573307580042d1c
[ "MIT" ]
null
null
null
ClusterAuthors.py
wjs018/JitaChat
0b289f7f6e65c1a8b0627e7c3573307580042d1c
[ "MIT" ]
null
null
null
ClusterAuthors.py
wjs018/JitaChat
0b289f7f6e65c1a8b0627e7c3573307580042d1c
[ "MIT" ]
null
null
null
"""This program first reads in the sqlite database made by ParseAuthors.py. Then, after just a little data cleaning, it undergoes PCA decomposition. After being decomposed via PCA, the author data is then clustered by way of a K-means clustering algorithm. The number of clusters can be set by changing the value of n_cl...
31.734375
89
0.690793
286
2,031
4.776224
0.493007
0.023426
0.026354
0.029283
0.04978
0.04978
0
0
0
0
0
0.010336
0.237814
2,031
64
90
31.734375
0.872093
0.476613
0
0
0
0
0.088995
0.039234
0
0
0
0
0
1
0
false
0
0.26087
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6fcc73481c40c481a1a9aa8423bcb41c20526de
718
py
Python
Leetcode/304. Range Sum Query 2D - Immutable/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/304. Range Sum Query 2D - Immutable/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/304. Range Sum Query 2D - Immutable/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class NumMatrix: def __init__(self, matrix: List[List[int]]): if not matrix or not matrix[0]: return None m, n = len(matrix), len(matrix[0]) self.dp = [[0] * (n + 1) for _ in range(m + 1)] for r in range(m): for c in range(n): self.dp[r + 1][c + 1] = self...
42.235294
116
0.568245
122
718
3.295082
0.327869
0.134328
0.069652
0.039801
0.087065
0
0
0
0
0
0
0.056075
0.254875
718
16
117
44.875
0.695327
0.182451
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.1
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0