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
e048929c57d8279d48bbfdb7b6430abd2459ceab
243
py
Python
Others/code_festival/code-festival-2015-final-open/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/code_festival/code-festival-2015-final-open/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/code_festival/code-festival-2015-final-open/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): s, t, u = map(str, input().split()) if len(s) == 5 and len(t) == 7 and len(u) == 5: print('valid') else: print('invalid') if __name__ == '__main__': main()
16.2
52
0.440329
33
243
3
0.666667
0.121212
0
0
0
0
0
0
0
0
0
0.025157
0.345679
243
14
53
17.357143
0.597484
0.08642
0
0
0
0
0.097087
0
0
0
0
0
0
1
0.125
true
0
0
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e048b527992db2f1543fe57b684fc1f640173519
328
py
Python
python_Project/Day_16-20/test_2.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
python_Project/Day_16-20/test_2.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
python_Project/Day_16-20/test_2.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
""" 嵌套的列表的坑 """ names = ['关羽', '张飞', '赵云', '马超', '黄忠'] courses = ['语文', '数学', '英语'] # 录入五个学生三门课程的成绩 scores = [[None] * len(courses) for _ in range(len(names))] for row, name in enumerate(names): for col, course in enumerate(courses): scores[row][col] = float(input(f'请输入{name}的{course}的成绩:')) print...
25.230769
66
0.591463
46
328
4.195652
0.652174
0.082902
0
0
0
0
0
0
0
0
0
0
0.185976
328
13
67
25.230769
0.722846
0.067073
0
0
0
0
0.12709
0.073579
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e04a69c5ceb81801a0a97e45ded8c53330ccbc76
18,672
py
Python
asr/dataloaders/am_dataloader.py
Z-yq/audioSamples.github.io
53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3
[ "Apache-2.0" ]
1
2022-03-03T02:51:55.000Z
2022-03-03T02:51:55.000Z
asr/dataloaders/am_dataloader.py
Z-yq/audioSamples.github.io
53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3
[ "Apache-2.0" ]
null
null
null
asr/dataloaders/am_dataloader.py
Z-yq/audioSamples.github.io
53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3
[ "Apache-2.0" ]
null
null
null
import logging import random import numpy as np import pypinyin import tensorflow as tf from augmentations.augments import Augmentation from utils.speech_featurizers import SpeechFeaturizer from utils.text_featurizers import TextFeaturizer logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(le...
43.322506
152
0.530366
2,041
18,672
4.638413
0.100441
0.051759
0.052393
0.03021
0.758001
0.742051
0.731171
0.716806
0.716806
0.699905
0
0.011319
0.366003
18,672
430
153
43.423256
0.788393
0.000696
0
0.698895
0
0
0.071609
0.00268
0
0
0
0
0
1
0.035912
false
0.002762
0.024862
0.01105
0.093923
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
e04c1f351c8c0376a0ea90e165d6e346051fee43
7,612
py
Python
migrations/versions/2018_04_20_data_src_refactor.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
null
null
null
migrations/versions/2018_04_20_data_src_refactor.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
null
null
null
migrations/versions/2018_04_20_data_src_refactor.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
null
null
null
"""empty message Revision ID: 2018_04_20_data_src_refactor Revises: 2018_04_11_add_sandbox_topic Create Date: 2018-04-20 13:03:32.478880 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. from sqlalchemy.dialects.postgresql import ARRAY revision = '2018_04_20_data_src_refac...
62.909091
152
0.759721
1,072
7,612
4.998134
0.103545
0.176372
0.146323
0.086786
0.879433
0.851437
0.779769
0.739455
0.62486
0.504666
0
0.020339
0.102207
7,612
120
153
63.433333
0.763682
0.042958
0
0.065217
0
0
0.440121
0.328504
0
0
0
0
0
1
0.021739
false
0
0.032609
0
0.054348
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e04ce14b43e2b6f0784e3b17efec18f6e25f76d2
1,897
py
Python
lib/core/parse/cmdline.py
vikas-kundu/phonedict
6795cab0024e792340c43d95552162a985b891f6
[ "MIT" ]
null
null
null
lib/core/parse/cmdline.py
vikas-kundu/phonedict
6795cab0024e792340c43d95552162a985b891f6
[ "MIT" ]
null
null
null
lib/core/parse/cmdline.py
vikas-kundu/phonedict
6795cab0024e792340c43d95552162a985b891f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # coded by Vikas Kundu https://github.com/vikas-kundu # ------------------------------------------- import sys import getopt import time import config from lib.core.parse import banner from lib.core import util from lib.core import installer def options(): ...
28.313433
129
0.461255
216
1,897
4.018519
0.421296
0.02765
0.056452
0.082949
0.12212
0.064516
0.064516
0
0
0
0
0.006552
0.356352
1,897
66
130
28.742424
0.704341
0.072746
0
0.265306
0
0
0.150977
0
0
0
0
0
0
1
0.020408
false
0.020408
0.142857
0
0.163265
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e04d583757322341dcf56eb5852389f9fd5b2748
1,634
py
Python
mistral/tests/unit/utils/test_utils.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
205
2015-06-21T11:51:47.000Z
2022-03-05T04:00:04.000Z
mistral/tests/unit/utils/test_utils.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
8
2015-06-23T14:47:58.000Z
2021-01-28T06:06:44.000Z
mistral/tests/unit/utils/test_utils.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
110
2015-06-14T03:34:38.000Z
2021-11-11T12:12:56.000Z
# Copyright 2013 - Mirantis, Inc. # Copyright 2015 - StackStorm, Inc. # Copyright 2015 - Huawei Technologies Co. Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:/...
29.178571
77
0.632191
200
1,634
5.04
0.53
0.059524
0.029762
0.053571
0.168651
0.168651
0.140873
0.140873
0.140873
0.140873
0
0.013865
0.293758
1,634
55
78
29.709091
0.859619
0.403305
0
0.333333
0
0
0.017727
0
0
0
0
0
0.133333
1
0.066667
false
0.166667
0.133333
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e04da5eb604fc61099ea52110ba3398380247444
2,660
py
Python
shoutcast_api/shoutcast_request.py
scls19fr/shoutcast_api
89a9e826b82411ae5f24ea28e1b1cb22eaaa0890
[ "MIT" ]
6
2020-03-03T06:07:31.000Z
2021-11-24T19:20:12.000Z
shoutcast_api/shoutcast_request.py
scls19fr/shoutcast_api
89a9e826b82411ae5f24ea28e1b1cb22eaaa0890
[ "MIT" ]
6
2020-11-17T20:30:30.000Z
2020-11-22T04:09:36.000Z
shoutcast_api/shoutcast_request.py
scls19fr/shoutcast_api
89a9e826b82411ae5f24ea28e1b1cb22eaaa0890
[ "MIT" ]
1
2020-11-17T20:11:38.000Z
2020-11-17T20:11:38.000Z
import xmltodict import json from .models import Tunein from .utils import _init_session from .Exceptions import APIException base_url = 'http://api.shoutcast.com' tunein_url = 'http://yp.shoutcast.com/{base}?id={id}' tuneins = [Tunein('/sbin/tunein-station.pls'), Tunein('/sbin/tunein-station.m3u'), Tunein('/sbin/tun...
38.550725
119
0.697368
327
2,660
5.455657
0.17737
0.07287
0.080717
0.049327
0.68722
0.645179
0.645179
0.627242
0.597534
0.543722
0
0.009166
0.179699
2,660
68
120
39.117647
0.808433
0
0
0.433962
0
0
0.122556
0.027444
0
0
0
0
0
1
0.075472
false
0
0.09434
0
0.245283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e04ec585b764ff6cb1ec40221ed614d384e735f8
581
py
Python
django_app_permissions/management/commands/resolve_app_groups.py
amp89/django-app-permissions
11f576d2118f5b73fdbefa0675acc3374a5a9749
[ "MIT" ]
2
2020-09-04T04:12:30.000Z
2020-10-20T00:12:01.000Z
django_app_permissions/management/commands/resolve_app_groups.py
amp89/django-app-permissions
11f576d2118f5b73fdbefa0675acc3374a5a9749
[ "MIT" ]
4
2020-09-06T22:29:18.000Z
2020-09-11T01:19:50.000Z
django_app_permissions/management/commands/resolve_app_groups.py
amp89/django-app-permissions
11f576d2118f5b73fdbefa0675acc3374a5a9749
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, no_translations from django.contrib.auth.models import Group from django.conf import settings import sys class Command(BaseCommand): def handle(self, *args, **options): sys.stdout.write("\nResolving app groups") app_list = [app_name.lower...
32.277778
95
0.693632
79
581
4.936709
0.56962
0.089744
0.107692
0.061538
0
0
0
0
0
0
0
0
0.203098
581
18
96
32.277778
0.842333
0
0
0
0
0
0.087629
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e04f5b24d6bd2e775a7ec943b8b4d08de4e402bf
34,343
py
Python
swift/common/db.py
sunzz679/swift-2.4.0--source-read
64355268da5265440f5f7e8d280dd8cd4c2cf2a2
[ "Apache-2.0" ]
null
null
null
swift/common/db.py
sunzz679/swift-2.4.0--source-read
64355268da5265440f5f7e8d280dd8cd4c2cf2a2
[ "Apache-2.0" ]
null
null
null
swift/common/db.py
sunzz679/swift-2.4.0--source-read
64355268da5265440f5f7e8d280dd8cd4c2cf2a2
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
38.032115
79
0.573945
4,027
34,343
4.742737
0.162155
0.019163
0.017802
0.01021
0.320593
0.279125
0.229279
0.209069
0.188387
0.169904
0
0.006636
0.341787
34,343
902
80
38.074279
0.838266
0.041406
0
0.375212
0
0
0.169021
0.000913
0
0
0
0
0
0
null
null
0.005093
0.03056
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e0530a4b979886c9eec477ba716b7cb1d54f44a5
12,101
py
Python
xdl/utils/prop_limits.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/utils/prop_limits.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/utils/prop_limits.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
"""Prop limits are used to validate the input given to xdl elements. For example, a volume property should be a positive number, optionally followed by volume units. The prop limit is used to check that input supplied is valid for that property. """ import re from typing import List, Optional class PropLimit(object):...
35.591176
277
0.650029
1,661
12,101
4.627333
0.198073
0.055035
0.046838
0.031616
0.288967
0.175904
0.136482
0.10994
0.080926
0.080926
0
0.015435
0.218329
12,101
339
278
35.696165
0.796807
0.441203
0
0.109195
0
0.028736
0.288471
0.090353
0
0
0
0
0
1
0.028736
false
0
0.011494
0
0.068966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0531fdc3eeb8a1247c13837ac5c2a532816fd2e
3,884
py
Python
dit/utils/bindargs.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
1
2021-03-15T08:51:42.000Z
2021-03-15T08:51:42.000Z
dit/utils/bindargs.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
dit/utils/bindargs.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
""" Provides usable args and kwargs from inspect.getcallargs. For Python 3.3 and above, this module is unnecessary and can be achieved using features from PEP 362: http://www.python.org/dev/peps/pep-0362/ For example, to override a parameter of some function: >>> import inspect >>> def func(a, b=1, c=2,...
31.072
79
0.65036
512
3,884
4.894531
0.339844
0.035914
0.020351
0.028731
0.106145
0.090982
0.090982
0.05826
0.05826
0
0
0.022004
0.239444
3,884
124
80
31.322581
0.826337
0.514933
0
0
0
0
0.054372
0
0
0
0
0
0
1
0.069767
false
0
0.162791
0
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e053d13d8a4cd7c86d2670f87f97133354905c98
36,370
py
Python
tests/python/gaia-ui-tests/gaiatest/gaia_test.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
1
2020-04-06T13:02:09.000Z
2020-04-06T13:02:09.000Z
tests/python/gaia-ui-tests/gaiatest/gaia_test.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/gaia_test.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import json import os import sys import time from marionette import MarionetteTestCase from marionette.by import By fro...
41.376564
139
0.648474
4,227
36,370
5.388219
0.139815
0.087285
0.057165
0.043379
0.456401
0.395724
0.361257
0.330216
0.282446
0.226466
0
0.004811
0.251389
36,370
878
140
41.42369
0.831711
0.063761
0
0.283721
0
0.00155
0.189417
0.086549
0
0
0
0.001139
0.029457
0
null
null
0.010853
0.031008
null
null
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e053d242f75ab9ddd50217184c0c2cd558a9aad9
5,591
py
Python
library/__mozilla__/pyjamas/DOM.py
certik/pyjamas
5bb72e63e50f09743ac986f4c9690ba50c499ba9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/__mozilla__/pyjamas/DOM.py
certik/pyjamas
5bb72e63e50f09743ac986f4c9690ba50c499ba9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/__mozilla__/pyjamas/DOM.py
certik/pyjamas
5bb72e63e50f09743ac986f4c9690ba50c499ba9
[ "ECL-2.0", "Apache-2.0" ]
1
2019-08-13T20:32:25.000Z
2019-08-13T20:32:25.000Z
def buttonClick(button): JS(""" var doc = button.ownerDocument; if (doc != null) { var evt = doc.createEvent('MouseEvents'); evt.initMouseEvent('click', true, true, null, 0, 0, 0, 0, 0, false, false, false, false, 0, null); button.d...
29.119792
84
0.571275
609
5,591
5.220033
0.280788
0.033973
0.027682
0.021705
0.505505
0.485373
0.431268
0.406103
0.301353
0.287512
0
0.017414
0.301556
5,591
191
85
29.272251
0.796671
0.296548
0
0.330827
0
0.007519
0.898584
0.183784
0
0
0
0
0
1
0.06015
false
0
0
0
0.195489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e05432743bd72af1411301793f19ae278f8a6b5a
485
py
Python
apps/vendors/migrations/0090_auto_20160610_2125.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
apps/vendors/migrations/0090_auto_20160610_2125.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
apps/vendors/migrations/0090_auto_20160610_2125.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-10 21:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vendors', '0089_auto_20160602_2123'), ] operations = [ migrations.AlterField...
23.095238
86
0.626804
55
485
5.327273
0.818182
0.061433
0
0
0
0
0
0
0
0
0
0.096419
0.251546
485
20
87
24.25
0.710744
0.138144
0
0
1
0
0.110843
0.055422
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e0543e59c4fcb122d63759114f58b779ede6cdce
540
py
Python
graph/articulation_points.py
fujihiraryo/library
cdb01e710219d7111f890d09f89531916dd03533
[ "MIT" ]
null
null
null
graph/articulation_points.py
fujihiraryo/library
cdb01e710219d7111f890d09f89531916dd03533
[ "MIT" ]
4
2020-12-16T10:00:00.000Z
2021-02-12T12:51:50.000Z
graph/articulation_points.py
fujihiraryo/python-kyopro-library
cdb01e710219d7111f890d09f89531916dd03533
[ "MIT" ]
null
null
null
from depth_first_search import DFS def articulation_points(graph): n = len(graph) dfs = DFS(graph) order = [None] * n for i, x in enumerate(dfs.preorder): order[x] = i lower = order[:] for x in dfs.preorder[::-1]: for y in graph[x]: if y == dfs.parent[x]: ...
25.714286
62
0.522222
83
540
3.361446
0.385542
0.032258
0.043011
0
0
0
0
0
0
0
0
0.014045
0.340741
540
20
63
27
0.769663
0
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e055245acd2ad8d01c1ab4aacd02a9a0e3b9e3b6
1,558
py
Python
database.py
AndreAngelucci/popcorn_time_bot
710b77b59d6c62569c1bf6984c7cf9adac8ea840
[ "MIT" ]
null
null
null
database.py
AndreAngelucci/popcorn_time_bot
710b77b59d6c62569c1bf6984c7cf9adac8ea840
[ "MIT" ]
1
2021-06-02T00:39:42.000Z
2021-06-02T00:39:42.000Z
database.py
AndreAngelucci/popcorn_time_bot
710b77b59d6c62569c1bf6984c7cf9adac8ea840
[ "MIT" ]
null
null
null
import pymongo from conf import Configuracoes class Mongo_Database: """ Singleton com a conexao com o MongoDB """ _instancia = None def __new__(cls, *args, **kwargs): if not(cls._instancia): cls._instancia = super(Mongo_Database, cls).__new__(cls, *args, **kwargs) return cls._in...
39.948718
88
0.617458
179
1,558
5.122905
0.47486
0.076336
0.049073
0.034896
0
0
0
0
0
0
0
0.000903
0.288832
1,558
38
89
41
0.826715
0.129012
0
0.068966
0
0
0.104677
0
0
0
0
0
0.034483
1
0.137931
false
0
0.068966
0
0.344828
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
e0553357877f320fcfcfc9bb4fdd3aa6b5cc2f78
2,947
py
Python
sensor_core/sleep.py
JorisHerbots/niip_iot_zombie_apocalypse
3ff848f3dab1dde9d2417d0a2c56a76a85e18920
[ "MIT" ]
null
null
null
sensor_core/sleep.py
JorisHerbots/niip_iot_zombie_apocalypse
3ff848f3dab1dde9d2417d0a2c56a76a85e18920
[ "MIT" ]
null
null
null
sensor_core/sleep.py
JorisHerbots/niip_iot_zombie_apocalypse
3ff848f3dab1dde9d2417d0a2c56a76a85e18920
[ "MIT" ]
null
null
null
import machine import pycom import utime from exceptions import Exceptions class Sleep: @property def wakeReason(self): return machine.wake_reason()[0] @property def wakePins(self): return machine.wake_reason()[1] @property def powerOnWake(self): return...
32.032609
121
0.646759
340
2,947
5.341176
0.258824
0.053965
0.053965
0.055066
0.352423
0.209251
0.209251
0.062775
0.062775
0.062775
0
0.012885
0.26264
2,947
91
122
32.384615
0.822826
0.015948
0
0.183099
0
0
0.027441
0
0
0
0
0
0
1
0.211268
false
0
0.056338
0.126761
0.450704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
e0554c3395746111d418fbf380163f0e080e4265
1,260
py
Python
pytorch_gleam/search/rerank_format.py
Supermaxman/pytorch-gleam
8b0d8dddc812e8ae120c9760fd44fe93da3f902d
[ "Apache-2.0" ]
null
null
null
pytorch_gleam/search/rerank_format.py
Supermaxman/pytorch-gleam
8b0d8dddc812e8ae120c9760fd44fe93da3f902d
[ "Apache-2.0" ]
null
null
null
pytorch_gleam/search/rerank_format.py
Supermaxman/pytorch-gleam
8b0d8dddc812e8ae120c9760fd44fe93da3f902d
[ "Apache-2.0" ]
null
null
null
import torch import argparse from collections import defaultdict import os import json def load_predictions(input_path): pred_list = [] for file_name in os.listdir(input_path): if file_name.endswith('.pt'): preds = torch.load(os.path.join(input_path, file_name)) pred_list.extend(preds) question_scores = ...
25.714286
86
0.743651
191
1,260
4.586387
0.350785
0.071918
0.041096
0.054795
0.084475
0
0
0
0
0
0
0.003683
0.138095
1,260
48
87
26.25
0.802947
0.024603
0
0
0
0
0.103589
0
0
0
0
0
0
1
0.054054
false
0.081081
0.135135
0
0.216216
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e055f89145eb203a0a63bfdad54931948d02ec37
388
py
Python
des036.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
des036.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
des036.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
casa = int(input('Qual o valor da casa? ')) sal = int(input('Qual seu salario? ')) prazo = int(input('Quantos meses deseja pagar ? ')) parcela = casa/prazo margem = sal* (30/100) if parcela > margem: print('Este negocio não foi aprovado, aumente o prazo .') else: print("Negocio aprovado pois a parcela é...
38.8
111
0.664948
59
388
4.372881
0.644068
0.093023
0.093023
0
0
0
0
0
0
0
0
0.016026
0.195876
388
9
112
43.111111
0.810897
0
0
0
0
0
0.503958
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e05606e62a7f260ca58d2f3413562fa3ee898b64
1,000
py
Python
HackBitApp/migrations/0003_roadmap.py
SukhadaM/HackBit-Interview-Preparation-Portal
f4c6b0d7168a4ea4ffcf1569183b1614752d9946
[ "MIT" ]
null
null
null
HackBitApp/migrations/0003_roadmap.py
SukhadaM/HackBit-Interview-Preparation-Portal
f4c6b0d7168a4ea4ffcf1569183b1614752d9946
[ "MIT" ]
null
null
null
HackBitApp/migrations/0003_roadmap.py
SukhadaM/HackBit-Interview-Preparation-Portal
f4c6b0d7168a4ea4ffcf1569183b1614752d9946
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-27 18:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('HackBitApp', '0002_company_photo'), ] operations = [ migrations.CreateModel( name='Roadmap', fields=[ ...
34.482759
114
0.571
98
1,000
5.673469
0.581633
0.059353
0.07554
0.113309
0.241007
0.190647
0.190647
0.190647
0.190647
0
0
0.035112
0.288
1,000
28
115
35.714286
0.745787
0.045
0
0
1
0
0.210913
0.069255
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e0573523b4d451bef7e8afb67ef1d49c8d3db2d3
1,051
py
Python
Other_Python/Kernel_Methods/matrix_operations.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
null
null
null
Other_Python/Kernel_Methods/matrix_operations.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
null
null
null
Other_Python/Kernel_Methods/matrix_operations.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 22 14:36:48 2020 @author: matth """ import autograd.numpy as np #%% Kernel operations # Returns the norm of the pairwise difference def norm_matrix(matrix_1, matrix_2): norm_square_1 = np.sum(np.square(matrix_1), axis = 1) norm_square_1 = np.reshape(norm_square_...
25.02381
79
0.676499
172
1,051
3.854651
0.296512
0.116139
0.090498
0.108597
0.440422
0.28356
0.28356
0.28356
0.184012
0.184012
0
0.068884
0.198858
1,051
42
80
25.02381
0.718527
0.164605
0
0.380952
0
0
0.048387
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.238095
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0576a003dfb918c45d8ae2afa80c98a64287387
2,371
py
Python
cors/resources/cors-makeheader.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
cors/resources/cors-makeheader.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
7,642
2018-05-28T09:38:03.000Z
2022-03-31T20:55:48.000Z
cors/resources/cors-makeheader.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
import json from wptserve.utils import isomorphic_decode def main(request, response): origin = request.GET.first(b"origin", request.headers.get(b'origin') or b'none') if b"check" in request.GET: token = request.GET.first(b"token") value = request.server.stash.take(token) if value is n...
33.871429
100
0.619148
329
2,371
4.43465
0.261398
0.13708
0.113091
0.120631
0.191912
0.126114
0.126114
0.100754
0.100754
0.100754
0
0.008451
0.251371
2,371
69
101
34.362319
0.813521
0.065795
0
0.078431
0
0
0.162822
0.064224
0
0
0
0
0
1
0.019608
false
0
0.039216
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e057de6d96dbc248f4a0c02caf3e3c52ad4ff136
1,053
py
Python
device_osc_grid.py
wlfyit/PiLightsLib
98e39af45f05d0ee44e2f166de5b654d58df33ae
[ "MIT" ]
null
null
null
device_osc_grid.py
wlfyit/PiLightsLib
98e39af45f05d0ee44e2f166de5b654d58df33ae
[ "MIT" ]
null
null
null
device_osc_grid.py
wlfyit/PiLightsLib
98e39af45f05d0ee44e2f166de5b654d58df33ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pythonosc import osc_bundle_builder from pythonosc import osc_message_builder from pythonosc import udp_client from .device import DeviceObj # OSC Grid Object class OSCGrid(DeviceObj): def __init__(self, name, width, height, ip, port, bri=1): DeviceObj.__init__(self, name, "os...
24.488372
100
0.636277
142
1,053
4.556338
0.415493
0.061824
0.088099
0.068006
0.034003
0.034003
0
0
0
0
0
0.008838
0.247863
1,053
42
101
25.071429
0.808081
0.058879
0
0
0
0
0.028369
0
0
0
0
0
0
1
0.125
false
0
0.166667
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
e0581bc2242266c4f411267aa587a7bfd0afc840
965
py
Python
main/models.py
StevenSume/EasyCMDB
c2c44c9efe2de2729659d81ef886abff242ac1c5
[ "Apache-2.0" ]
2
2019-08-23T06:04:12.000Z
2019-09-16T07:27:16.000Z
main/models.py
StevenSume/EasyCMDB
c2c44c9efe2de2729659d81ef886abff242ac1c5
[ "Apache-2.0" ]
null
null
null
main/models.py
StevenSume/EasyCMDB
c2c44c9efe2de2729659d81ef886abff242ac1c5
[ "Apache-2.0" ]
null
null
null
from .app import db class Project(db.Model): __tablename__ = 'projects' id = db.Column(db.Integer,primary_key=True,autoincrement=True) project_name = db.Column(db.String(64),unique=True,index=True) def to_dict(self): mydict = { 'id': self.id, 'project_name': self.projec...
26.805556
67
0.592746
121
965
4.446281
0.280992
0.089219
0.111524
0.066915
0.630112
0.561338
0.453532
0.33829
0.33829
0.211896
0
0.008584
0.275648
965
35
68
27.571429
0.761087
0
0
0.413793
0
0
0.070539
0
0
0
0
0
0
1
0.137931
false
0
0.034483
0.068966
0.655172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e05894d94e1647d1250203e64a76b21248195718
1,274
py
Python
test.py
iron-io/iron_cache_python
f68f5a5e216e3189397ffd7d243de0d53bf7c764
[ "BSD-2-Clause" ]
3
2015-08-01T13:30:16.000Z
2021-03-22T10:25:57.000Z
test.py
iron-io/iron_cache_python
f68f5a5e216e3189397ffd7d243de0d53bf7c764
[ "BSD-2-Clause" ]
1
2015-06-02T08:53:44.000Z
2015-06-02T09:59:17.000Z
test.py
iron-io/iron_cache_python
f68f5a5e216e3189397ffd7d243de0d53bf7c764
[ "BSD-2-Clause" ]
3
2015-05-12T18:13:52.000Z
2016-09-08T20:43:40.000Z
from iron_cache import * import unittest import requests class TestIronCache(unittest.TestCase): def setUp(self): self.cache = IronCache("test_cache") def test_get(self): self.cache.put("test_item", "testing") item = self.cache.get("test_item") self.assertEqual(item.value, "te...
31.073171
56
0.631868
161
1,274
4.819876
0.254658
0.185567
0.092784
0.123711
0.592784
0.453608
0.329897
0.329897
0.329897
0.329897
0
0.014315
0.232339
1,274
40
57
31.85
0.779141
0
0
0.151515
0
0
0.142857
0
0
0
0
0
0.181818
1
0.151515
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e059b01690fb071d4b03811c7664f63e0007961b
3,914
py
Python
lib_exec/StereoPipeline/libexec/asp_image_utils.py
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
20
2017-02-01T14:54:57.000Z
2022-01-25T06:34:35.000Z
lib_exec/StereoPipeline/libexec/asp_image_utils.py
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
3
2020-04-21T12:11:26.000Z
2021-01-10T07:00:51.000Z
lib_exec/StereoPipeline/libexec/asp_image_utils.py
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
10
2017-12-18T18:45:25.000Z
2021-11-22T02:43:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # __BEGIN_LICENSE__ # Copyright (c) 2009-2013, United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The NGT platform is licensed under the Apache License, Version 2.0 (the # "Lic...
34.946429
155
0.67348
478
3,914
5.462343
0.481172
0.037534
0.02681
0.056683
0.171582
0.099579
0.099579
0.099579
0.099579
0.099579
0
0.010302
0.231221
3,914
111
156
35.261261
0.857428
0.314768
0
0.173913
0
0.021739
0.113951
0
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e05b4851d3707561c8c65e7a4b20ce903889be85
1,550
py
Python
src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py
leipzig/gatk-sv
96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a
[ "BSD-3-Clause" ]
76
2020-06-18T21:31:43.000Z
2022-03-02T18:42:58.000Z
src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
195
2020-06-22T15:12:28.000Z
2022-03-28T18:06:46.000Z
src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
39
2020-07-03T06:47:18.000Z
2022-03-03T03:47:25.000Z
#!/usr/bin/env python import argparse DELIMITER = "\t" def merge(genotypes_filename, gq_filename, merged_filename): with open(genotypes_filename, "r") as genotypes, open(gq_filename, "r") as gq, open(merged_filename, "w") as merged: # Integrity check: do the files have same columns? genotypes_...
36.046512
120
0.627742
210
1,550
4.466667
0.361905
0.010661
0.085288
0.059701
0.03838
0
0
0
0
0
0
0.009483
0.251613
1,550
42
121
36.904762
0.799138
0.079355
0
0
0
0.037037
0.132022
0.018258
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e05c65974024f19246bfde72289d00cbac7e1014
32
py
Python
esperanto_analyzer/web/__init__.py
fidelisrafael/esperanto-analyzer
af1e8609ec0696e3d1975aa0ba0c88e5f04f8468
[ "BSD-2-Clause" ]
18
2018-09-05T00:46:47.000Z
2021-12-08T08:54:35.000Z
esperanto_analyzer/web/__init__.py
fidelisrafael/esperanto-analyzer
af1e8609ec0696e3d1975aa0ba0c88e5f04f8468
[ "BSD-2-Clause" ]
null
null
null
esperanto_analyzer/web/__init__.py
fidelisrafael/esperanto-analyzer
af1e8609ec0696e3d1975aa0ba0c88e5f04f8468
[ "BSD-2-Clause" ]
3
2019-03-12T17:54:18.000Z
2020-01-11T13:05:03.000Z
from .api.server import run_app
16
31
0.8125
6
32
4.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.125
32
1
32
32
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e05cac875b2516b4ba7c777d72d8ac768173cf38
3,091
py
Python
crawling/sns/main.py
CSID-DGU/2021-2-OSSP2-TwoRolless-2
e9381418e3899d8e1e78415e9ab23b73b4f30a95
[ "MIT" ]
null
null
null
crawling/sns/main.py
CSID-DGU/2021-2-OSSP2-TwoRolless-2
e9381418e3899d8e1e78415e9ab23b73b4f30a95
[ "MIT" ]
null
null
null
crawling/sns/main.py
CSID-DGU/2021-2-OSSP2-TwoRolless-2
e9381418e3899d8e1e78415e9ab23b73b4f30a95
[ "MIT" ]
1
2021-10-15T05:19:20.000Z
2021-10-15T05:19:20.000Z
import tweepy import traceback import time import pymongo from tweepy import OAuthHandler from pymongo import MongoClient from pymongo.cursor import CursorType twitter_consumer_key = "" twitter_consumer_secret = "" twitter_access_token = "" twitter_access_secret = "" auth = OAuthHandler(twitter_consumer_key, twitter_...
29.438095
126
0.547072
325
3,091
5.061538
0.44
0.029179
0.032827
0.043769
0.175684
0.133739
0.041337
0
0
0
0
0.014085
0.310903
3,091
104
127
29.721154
0.756808
0
0
0.075269
0
0
0.155613
0
0
0
0
0
0
1
0.010753
false
0
0.075269
0
0.086022
0.043011
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e05cbd467aaeb3118a784785e85a274a27c23842
698
py
Python
demos/interactive-classifier/config.py
jepabe/Demo_earth2
ab20c3a9114904219688b16f8a1273e68927e6f9
[ "Apache-2.0" ]
1,909
2015-04-22T20:18:22.000Z
2022-03-31T13:42:03.000Z
demos/interactive-classifier/config.py
jepabe/Demo_earth2
ab20c3a9114904219688b16f8a1273e68927e6f9
[ "Apache-2.0" ]
171
2015-09-24T05:49:49.000Z
2022-03-14T00:54:50.000Z
demos/interactive-classifier/config.py
jepabe/Demo_earth2
ab20c3a9114904219688b16f8a1273e68927e6f9
[ "Apache-2.0" ]
924
2015-04-23T05:43:18.000Z
2022-03-28T12:11:31.000Z
#!/usr/bin/env python """Handles Earth Engine service account configuration.""" import ee # The service account email address authorized by your Google contact. # Set up a service account as described in the README. EE_ACCOUNT = 'your-service-account-id@developer.gserviceaccount.com' # The private key associated wit...
41.058824
79
0.787966
101
698
5.356436
0.574257
0.12939
0.066543
0.05915
0
0
0
0
0
0
0
0.009917
0.133238
698
16
80
43.625
0.884298
0.683381
0
0
0
0
0.320574
0.253589
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e05d022e20ec708234ba466419ce63a57d30ac77
2,716
py
Python
PythonScripting/NumbersInPython.py
Neo-sunny/pythonProgs
a9d2359d8a09d005d0ba6f94d7d256bf91499793
[ "MIT" ]
null
null
null
PythonScripting/NumbersInPython.py
Neo-sunny/pythonProgs
a9d2359d8a09d005d0ba6f94d7d256bf91499793
[ "MIT" ]
null
null
null
PythonScripting/NumbersInPython.py
Neo-sunny/pythonProgs
a9d2359d8a09d005d0ba6f94d7d256bf91499793
[ "MIT" ]
null
null
null
""" Demonstration of numbers in Python """ # Python has an integer type called int print("int") print("---") print(0) print(1) print(-3) print(70383028364830) print("") # Python has a real number type called float print("float") print("-----") print(0.0) print(7.35) print(-43.2) print("") # Limited precision print...
17.522581
65
0.674521
387
2,716
4.728682
0.30491
0.036066
0.022951
0.032787
0.065574
0.05847
0.05847
0.05847
0.05847
0.05847
0
0.122475
0.143225
2,716
154
66
17.636364
0.663945
0.238218
0
0.120879
0
0
0.183106
0.017984
0
0
0
0
0
1
0
false
0
0
0
0
0.934066
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e05e6c4440c357c867a4c38e37f726c4d615e768
1,676
py
Python
3DBeam/source/solving_strategies/strategies/linear_solver.py
JoZimmer/Beam-Models
e701c0bae6e3035e7a07cc590da4a132b133dcff
[ "BSD-3-Clause" ]
null
null
null
3DBeam/source/solving_strategies/strategies/linear_solver.py
JoZimmer/Beam-Models
e701c0bae6e3035e7a07cc590da4a132b133dcff
[ "BSD-3-Clause" ]
null
null
null
3DBeam/source/solving_strategies/strategies/linear_solver.py
JoZimmer/Beam-Models
e701c0bae6e3035e7a07cc590da4a132b133dcff
[ "BSD-3-Clause" ]
1
2022-01-05T17:32:32.000Z
2022-01-05T17:32:32.000Z
from source.solving_strategies.strategies.solver import Solver class LinearSolver(Solver): def __init__(self, array_time, time_integration_scheme, dt, comp_model, initial_conditions, force, structure_model): super().__ini...
38.976744
80
0.590095
183
1,676
5.180328
0.404372
0.052743
0.041139
0.044304
0.390295
0.390295
0.390295
0.390295
0.305907
0.305907
0
0.00265
0.324582
1,676
42
81
39.904762
0.834806
0.318616
0
0
0
0
0.011525
0
0
0
0
0.02381
0
1
0.142857
false
0
0.047619
0
0.238095
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e05ea195ece947573587efca60ad05b204af43f6
1,095
py
Python
payment/migrations/0002_auto_20171125_0022.py
Littledelma/mofadog
5a7c6672da248e400a8a5746506a6e7b273c9510
[ "MIT" ]
null
null
null
payment/migrations/0002_auto_20171125_0022.py
Littledelma/mofadog
5a7c6672da248e400a8a5746506a6e7b273c9510
[ "MIT" ]
1
2021-06-08T03:28:08.000Z
2021-06-08T03:28:08.000Z
payment/migrations/0002_auto_20171125_0022.py
Littledelma/mofadog
5a7c6672da248e400a8a5746506a6e7b273c9510
[ "MIT" ]
1
2021-06-08T03:23:34.000Z
2021-06-08T03:23:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-24 16:22 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('payment', '0001_initial'), ] ...
33.181818
138
0.63379
127
1,095
5.307087
0.393701
0.035608
0.047478
0.059347
0.514837
0.497033
0.497033
0.430267
0.284866
0.284866
0
0.093976
0.242009
1,095
32
139
34.21875
0.718072
0.0621
0
0.36
1
0
0.113281
0
0
0
0
0
0
1
0
false
0
0.16
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e05fe1dabdb8d88cb6b7077a77b9ecb4a63a39fd
841
py
Python
src/sqlfluff/rules/L024.py
NathanHowell/sqlfluff
9eb30226d77727cd613947e144a0abe483151f18
[ "MIT" ]
3,024
2020-10-01T11:03:51.000Z
2022-03-31T16:42:00.000Z
src/sqlfluff/rules/L024.py
NathanHowell/sqlfluff
9eb30226d77727cd613947e144a0abe483151f18
[ "MIT" ]
2,395
2020-09-30T12:59:21.000Z
2022-03-31T22:05:29.000Z
src/sqlfluff/rules/L024.py
NathanHowell/sqlfluff
9eb30226d77727cd613947e144a0abe483151f18
[ "MIT" ]
246
2020-10-02T17:08:03.000Z
2022-03-30T17:43:51.000Z
"""Implementation of Rule L024.""" from sqlfluff.core.rules.doc_decorators import document_fix_compatible from sqlfluff.rules.L023 import Rule_L023 @document_fix_compatible class Rule_L024(Rule_L023): """Single whitespace expected after USING in JOIN clause. | **Anti-pattern** .. code-block:: sql ...
21.564103
70
0.652794
107
841
4.981308
0.598131
0.030019
0.078799
0.052533
0.11257
0.11257
0.11257
0.11257
0
0
0
0.023885
0.25327
841
38
71
22.131579
0.821656
0.464923
0
0
0
0
0.087533
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e061aa108e5ec8060888f9dff1215ff5763d024a
2,847
py
Python
projects/scocen/cmd_components_simple.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
4
2018-05-28T11:05:42.000Z
2021-05-14T01:13:11.000Z
projects/scocen/cmd_components_simple.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
13
2019-08-14T07:30:24.000Z
2021-11-08T23:44:29.000Z
projects/scocen/cmd_components_simple.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
4
2016-04-21T08:25:26.000Z
2021-02-25T06:53:52.000Z
""" Plot CMDs for each component. """ import numpy as np from astropy.table import Table import matplotlib.pyplot as plt import matplotlib.cm as cm plt.ion() # Pretty plots from fig_settings import * ############################################ # Some things are the same for all the plotting scripts and we put # thi...
26.858491
122
0.601686
444
2,847
3.774775
0.38964
0.008353
0.023866
0.038186
0.182578
0.127685
0.127685
0.127685
0.082339
0.026253
0
0.062366
0.183351
2,847
105
123
27.114286
0.658495
0.162979
0
0.065574
0
0
0.113199
0
0
0
0
0.009524
0
1
0.016393
false
0
0.098361
0
0.131148
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e061c15bed338723a46d4f04e8c849cc852fe7c0
5,326
py
Python
test/test_cursor_binding.py
rhlahuja/snowflake-connector-python
6abc56c970cdb698a833b7f6ac9cbe7dfa667abd
[ "Apache-2.0" ]
null
null
null
test/test_cursor_binding.py
rhlahuja/snowflake-connector-python
6abc56c970cdb698a833b7f6ac9cbe7dfa667abd
[ "Apache-2.0" ]
null
null
null
test/test_cursor_binding.py
rhlahuja/snowflake-connector-python
6abc56c970cdb698a833b7f6ac9cbe7dfa667abd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2018 Snowflake Computing Inc. All right reserved. # import pytest from snowflake.connector.errors import (ProgrammingError) def test_binding_security(conn_cnx, db_parameters): """ SQL Injection Tests """ try: with conn_cnx()...
36.731034
78
0.480473
579
5,326
4.352332
0.188256
0.114286
0.1
0.183333
0.775397
0.730952
0.730952
0.685317
0.685317
0.655159
0
0.016536
0.375516
5,326
144
79
36.986111
0.74113
0.050507
0
0.727273
0
0
0.226064
0
0
0
0
0
0.090909
1
0.027273
false
0
0.018182
0
0.045455
0
0
0
0
null
0
0
1
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
e061da410580634f463731e3265faeb51909f55c
1,071
py
Python
taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py
hectormartinez/rougexstem
32da9eab253cb88fc1882e59026e8b5b40900a25
[ "Apache-2.0" ]
null
null
null
taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py
hectormartinez/rougexstem
32da9eab253cb88fc1882e59026e8b5b40900a25
[ "Apache-2.0" ]
null
null
null
taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py
hectormartinez/rougexstem
32da9eab253cb88fc1882e59026e8b5b40900a25
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Language Models # # Copyright (C) 2001-2008 University of Pennsylvania # Author: Steven Bird <sb@csse.unimelb.edu.au> # URL: <http://nltk.sf.net> # For license information, see LICENSE.TXT class ModelI(object): """ A processing interface for assigning a probability to the next word....
31.5
78
0.6676
135
1,071
5.251852
0.533333
0.169252
0.152327
0.050776
0.112835
0.112835
0
0
0
0
0
0.00978
0.236228
1,071
33
79
32.454545
0.856968
0.548086
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.454545
false
0
0
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
e06275178027bd16b4be36faab1b32af531b42cb
1,047
py
Python
flask-graphene-sqlalchemy/models.py
JovaniPink/flask-apps
de887f15261c286986cf38d234d49f7e4eb79c1a
[ "MIT" ]
null
null
null
flask-graphene-sqlalchemy/models.py
JovaniPink/flask-apps
de887f15261c286986cf38d234d49f7e4eb79c1a
[ "MIT" ]
null
null
null
flask-graphene-sqlalchemy/models.py
JovaniPink/flask-apps
de887f15261c286986cf38d234d49f7e4eb79c1a
[ "MIT" ]
null
null
null
import os from graphene_sqlalchemy import SQLAlchemyObjectType from sqlalchemy import Column, Integer, String, create_engine from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base POSTGRES_CONNECTION_STRING = ( os.environ.get("POSTGRES_CONNECTION_STRING") ...
26.175
72
0.770774
117
1,047
6.65812
0.444444
0.066752
0.092426
0.05905
0.06932
0
0
0
0
0
0
0.004479
0.147087
1,047
39
73
26.846154
0.867861
0
0
0.068966
0
0
0.088825
0.074499
0
0
0
0
0
1
0
false
0.034483
0.172414
0
0.586207
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e06418cb46f2f01ccc35fc22e565190b30c821ed
16,478
py
Python
curlypiv/synthetics/microsig.py
sean-mackenzie/curlypiv
21c96c1bb1ba2548c4d5bebb389eb66ff58f851d
[ "MIT" ]
null
null
null
curlypiv/synthetics/microsig.py
sean-mackenzie/curlypiv
21c96c1bb1ba2548c4d5bebb389eb66ff58f851d
[ "MIT" ]
1
2021-06-14T17:24:43.000Z
2021-06-14T17:24:43.000Z
curlypiv/synthetics/microsig.py
sean-mackenzie/curlypiv
21c96c1bb1ba2548c4d5bebb389eb66ff58f851d
[ "MIT" ]
null
null
null
# microsig """ Author: Maximilliano Rossi More detail about the MicroSIG can be found at: Website: https://gitlab.com/defocustracking/microsig-python Publication: Rossi M, Synthetic image generator for defocusing and astigmatic PIV/PTV, Meas. Sci. Technol., 31, 017003 (2020) DOI:10.1088/1361-6501/ab42bb. "...
32.956
119
0.506615
2,403
16,478
3.384519
0.158136
0.009591
0.028403
0.01623
0.486045
0.458502
0.434526
0.430714
0.391369
0.363089
0
0.04022
0.327042
16,478
499
120
33.022044
0.693209
0.139641
0
0.397015
0
0
0.094134
0.001915
0
0
0
0
0
1
0.026866
false
0
0.026866
0
0.074627
0.01194
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0651470e7323b974d75e2d23e40d53bc5af99ea
4,146
py
Python
planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py
kmiya/AutowareArchitectureProposal.iv
386b52c9cc90f4535ad833014f2f9500f0e64ccf
[ "Apache-2.0" ]
null
null
null
planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py
kmiya/AutowareArchitectureProposal.iv
386b52c9cc90f4535ad833014f2f9500f0e64ccf
[ "Apache-2.0" ]
null
null
null
planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py
kmiya/AutowareArchitectureProposal.iv
386b52c9cc90f4535ad833014f2f9500f0e64ccf
[ "Apache-2.0" ]
1
2021-07-20T09:38:30.000Z
2021-07-20T09:38:30.000Z
# Copyright 2020 Tier IV, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
30.485294
109
0.600338
529
4,146
4.557656
0.357278
0.039818
0.026545
0.016176
0.159685
0.126918
0.099544
0.099544
0.099544
0.099544
0
0.020074
0.279064
4,146
135
110
30.711111
0.786551
0.940907
0
null
0
null
0
0
null
0
0
0.007407
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
e067ec51a3742d007fe87145e158ef565747647f
2,642
py
Python
main/forms.py
agokhale11/test2
deddf17e7bb67777251cf73cbdb5f6970c16050a
[ "MIT" ]
null
null
null
main/forms.py
agokhale11/test2
deddf17e7bb67777251cf73cbdb5f6970c16050a
[ "MIT" ]
7
2020-06-05T18:32:16.000Z
2022-03-11T23:24:17.000Z
main/forms.py
agokhale11/test2
deddf17e7bb67777251cf73cbdb5f6970c16050a
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.contrib.auth.models import User from django import forms class UploadFileForm(forms.Form): title = forms.CharField(max_length=50) file = forms.FileField() # If you don't do this you cannot use Bootstrap CSS class LoginFor...
41.28125
136
0.62869
291
2,642
5.621993
0.233677
0.05868
0.06846
0.102689
0.577628
0.512836
0.512836
0.474939
0.447433
0.447433
0
0.013786
0.231264
2,642
64
137
41.28125
0.791728
0.018547
0
0.413043
0
0
0.174383
0
0
0
0
0
0
1
0.043478
false
0.217391
0.065217
0
0.543478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
e068d2bbe0be95225acd32e5324a05a51bc85276
5,641
py
Python
pandas 9 - Statistics Information on data sets.py
PythonProgramming/Pandas-Basics-with-2.7
a6ecd5ac7c25dba83e934549903f229de89290d3
[ "MIT" ]
10
2015-07-16T05:46:10.000Z
2020-10-28T10:35:50.000Z
pandas 9 - Statistics Information on data sets.py
PythonProgramming/Pandas-Basics-with-2.7
a6ecd5ac7c25dba83e934549903f229de89290d3
[ "MIT" ]
null
null
null
pandas 9 - Statistics Information on data sets.py
PythonProgramming/Pandas-Basics-with-2.7
a6ecd5ac7c25dba83e934549903f229de89290d3
[ "MIT" ]
9
2017-01-31T18:57:25.000Z
2019-09-10T08:52:57.000Z
import pandas as pd from pandas import DataFrame df = pd.read_csv('sp500_ohlc.csv', index_col = 'Date', parse_dates=True) df['H-L'] = df.High - df.Low # Giving us count (rows), mean (avg), std (standard deviation for the entire # set), minimum for the set, maximum for the set, and some %s in that range. print( df.des...
32.606936
96
0.565148
762
5,641
4.135171
0.217848
0.162488
0.040622
0.055855
0.619486
0.603301
0.506506
0.488099
0.488099
0.488099
0
0.053617
0.29906
5,641
172
97
32.796512
0.743298
0.204928
0
0.730769
0
0
0.104508
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.096154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e06b5b33923a9795875422db89edadd2030423bd
292
py
Python
working/tkinter_widget/test.py
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
working/tkinter_widget/test.py
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
working/tkinter_widget/test.py
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
import cv2 import numpy as np import threading def test(): while 1: img1=cv2.imread('captured car1.jpg') print("{}".format(img1.shape)) print("{}".format(img1)) cv2.imshow('asd',img1) cv2.waitKey(1) t1 = threading.Thread(target=test) t1.start()
18.25
44
0.60274
39
292
4.512821
0.641026
0.119318
0.170455
0
0
0
0
0
0
0
0
0.058296
0.236301
292
15
45
19.466667
0.730942
0
0
0
0
0
0.082474
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e06beb7e97ea00b98e3ff8423b4c33335a68172e
7,856
py
Python
ceilometer/compute/virt/hyperv/utilsv2.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
2
2015-09-07T09:15:26.000Z
2015-09-30T02:13:23.000Z
ceilometer/compute/virt/hyperv/utilsv2.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
ceilometer/compute/virt/hyperv/utilsv2.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
1
2019-09-16T02:11:41.000Z
2019-09-16T02:11:41.000Z
# Copyright 2013 Cloudbase Solutions Srl # # Author: Claudiu Belu <cbelu@cloudbasesolutions.com> # Alessandro Pilotti <apilotti@cloudbasesolutions.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy o...
37.056604
78
0.66777
995
7,856
4.901508
0.257286
0.042444
0.018659
0.019684
0.157064
0.11421
0.046135
0.046135
0.046135
0.02276
0
0.008355
0.253437
7,856
211
79
37.232227
0.823188
0.126782
0
0.062069
0
0
0.088261
0.03791
0
0
0
0
0
1
0.124138
false
0.006897
0.041379
0.013793
0.365517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e06fed7cfa54e3e815b314104d5c76b1f273336e
1,126
py
Python
src/cli.py
cajones314/avocd2019
268e03c5d1bb5b3e14459b831916bb7846f40def
[ "MIT" ]
null
null
null
src/cli.py
cajones314/avocd2019
268e03c5d1bb5b3e14459b831916bb7846f40def
[ "MIT" ]
null
null
null
src/cli.py
cajones314/avocd2019
268e03c5d1bb5b3e14459b831916bb7846f40def
[ "MIT" ]
null
null
null
# system from io import IOBase, StringIO import os # 3rd party import click # internal from days import DayFactory # import logging # logger = logging.getLogger(__name__) # logger.setLevel(logging.DEBUG) # ch = logging.StreamHandler() # logger.addHandler(ch) @click.group(invoke_without_command=True) @click.option...
28.15
122
0.69627
159
1,126
4.811321
0.490566
0.043137
0.062745
0.082353
0.078431
0.078431
0
0
0
0
0
0.013333
0.134103
1,126
39
123
28.871795
0.771282
0.175844
0
0
0
0
0.203704
0.030501
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.238095
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0702674ad6cf140cbb31a3b885b600b8569c9c4
17,033
py
Python
option_c.py
wrosecrans/colormap
0b6a3b7e4caa5df72e7bad8ba196acfbbe5e5946
[ "CC0-1.0" ]
231
2015-06-03T01:28:13.000Z
2022-03-27T02:02:42.000Z
option_c.py
CatarinaL/colormap
bc549477db0c12b54a5928087552ad2cf274980f
[ "CC0-1.0" ]
10
2015-06-06T23:06:06.000Z
2019-10-25T20:10:48.000Z
option_c.py
CatarinaL/colormap
bc549477db0c12b54a5928087552ad2cf274980f
[ "CC0-1.0" ]
97
2015-06-04T00:46:34.000Z
2022-01-23T17:37:24.000Z
from matplotlib.colors import LinearSegmentedColormap from numpy import nan, inf # Used to reconstruct the colormap in viscm parameters = {'xp': [-5.4895292543686764, 14.790571669586654, 82.5546687431056, 29.15531114139253, -4.1316769886951761, -13.002076438907238], 'yp': [-35.948168839230306, -42.27337...
60.187279
141
0.577291
2,411
17,033
4.070095
0.356698
0.034546
0
0
0
0
0
0
0
0
0
0.6799
0.251688
17,033
282
142
60.400709
0.089989
0.002407
0
0
0
0
0.004415
0
0
0
0
0
0
1
0
false
0
0.021898
0
0.021898
0.00365
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e0709fa966341538c2d49529de984d39878ed846
3,885
py
Python
RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
4
2022-01-14T15:06:43.000Z
2022-01-18T14:45:04.000Z
RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
null
null
null
RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import math from algorithm.planner.utils.car_utils import Car_C PI = np.pi class Arrow: def __init__(self, x, y, theta, L, c): angle = np.deg2rad(30) d = 0.3 * L w = 2 x_start = x y_start = y x_end = x + L * np.co...
33.491379
148
0.53565
687
3,885
2.79476
0.117904
0.095833
0.036458
0.04375
0.38125
0.307813
0.247396
0.231771
0.183854
0.163021
0
0.022521
0.291377
3,885
115
149
33.782609
0.6749
0.019305
0
0
0
0
0.003943
0
0
0
0
0
0
1
0.035294
false
0
0.047059
0
0.105882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0712713ade0b6560e6616c234015a83c6ef39c9
696
py
Python
models/database_models/comment_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
7
2020-05-24T02:15:46.000Z
2020-11-26T07:14:44.000Z
models/database_models/comment_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
12
2020-05-17T10:46:29.000Z
2021-05-06T20:08:37.000Z
models/database_models/comment_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
4
2020-05-09T07:26:09.000Z
2021-10-31T07:09:10.000Z
from sqlalchemy import Integer, Text, DateTime, func, Boolean, text from models.database_models import Base, Column class Comment(Base): __tablename__ = "comment" id = Column(Integer, primary_key=True, ) user_id = Column(Integer, nullable=False, comment="评论用户的 ID") post_id = Column(Integer, nullable...
40.941176
106
0.728448
89
696
5.550562
0.438202
0.105263
0.161943
0.093117
0.295547
0.295547
0.153846
0
0
0
0
0.001669
0.139368
696
16
107
43.5
0.823038
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.181818
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e072653c74adbd64f985b81e9b674ad50e5a700a
27,779
py
Python
aws_deploy/ecs/helper.py
jmsantorum/aws-deploy
f117cff3a5440ee42470feaa2a83263c3212cf10
[ "BSD-3-Clause" ]
null
null
null
aws_deploy/ecs/helper.py
jmsantorum/aws-deploy
f117cff3a5440ee42470feaa2a83263c3212cf10
[ "BSD-3-Clause" ]
null
null
null
aws_deploy/ecs/helper.py
jmsantorum/aws-deploy
f117cff3a5440ee42470feaa2a83263c3212cf10
[ "BSD-3-Clause" ]
1
2021-08-05T12:07:11.000Z
2021-08-05T12:07:11.000Z
import json import re from datetime import datetime from json.decoder import JSONDecodeError import click from boto3.session import Session from boto3_type_annotations.ecs import Client from botocore.exceptions import ClientError, NoCredentialsError from dateutil.tz.tz import tzlocal from dictdiffer import diff JSON_...
34.767209
119
0.585586
2,825
27,779
5.536991
0.105841
0.059967
0.017389
0.010357
0.341772
0.266206
0.222478
0.187572
0.141926
0.093211
0
0.001385
0.32431
27,779
798
120
34.810777
0.831966
0.006984
0
0.26015
0
0.004511
0.077991
0.003843
0
0
0
0
0
1
0.103759
false
0.009023
0.015038
0.031579
0.231579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e07447362c2cd948e8959b2a92a8309441af1ece
3,715
py
Python
sbm.py
emmaling27/networks-research
be209e2b653a1fe9eec480a94538d59104e4aa23
[ "MIT" ]
null
null
null
sbm.py
emmaling27/networks-research
be209e2b653a1fe9eec480a94538d59104e4aa23
[ "MIT" ]
null
null
null
sbm.py
emmaling27/networks-research
be209e2b653a1fe9eec480a94538d59104e4aa23
[ "MIT" ]
null
null
null
import networkx as nx from scipy.special import comb import attr @attr.s class Count(object): """Count class with monochromatic and bichromatic counts""" n = attr.ib() monochromatic = attr.ib(default=0) bichromatic = attr.ib(default=0) def count_edge(self, u, v): if (u < self.n / 2) != (v...
35.04717
125
0.54105
528
3,715
3.698864
0.143939
0.084485
0.064516
0.035842
0.395801
0.366615
0.317972
0.260625
0.181772
0.169483
0
0.02902
0.313594
3,715
106
126
35.04717
0.736863
0.035532
0
0.183908
0
0
0
0
0
0
0
0
0
1
0.16092
false
0
0.034483
0.091954
0.390805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0745cd9bd4ca77f2c09e9dd6bb425b9d75991b3
4,516
py
Python
src/data/graph/ops/anagram_transform_op.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
2
2020-08-18T18:43:09.000Z
2020-08-18T20:05:59.000Z
src/data/graph/ops/anagram_transform_op.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
src/data/graph/ops/anagram_transform_op.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
from typing import Callable, Collection, Iterable, List, Union from data.anagram import anagram_iter from data.graph import _op_mixin, bloom_mask, bloom_node, bloom_node_reducer Transformer = Callable[['bloom_node.BloomNode'], 'bloom_node.BloomNode'] _SPACE_MASK = bloom_mask.for_alpha(' ') def merge_fn( host: 'b...
35.84127
79
0.717449
579
4,516
5.267703
0.24525
0.039344
0.059016
0.014426
0.066885
0.015738
0.015738
0.015738
0
0
0
0.003005
0.189548
4,516
125
80
36.128
0.830328
0.104739
0
0.098039
0
0
0.051117
0
0
0
0
0.008
0.019608
1
0.078431
false
0
0.029412
0.009804
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e074a8e70a88cdf3e39529ffdda1dc94abc0febf
15,854
py
Python
gogapi/api.py
tikki/pygogapi
f1b3a811444dc521ea4ad7884104086b52348995
[ "MIT" ]
23
2017-01-03T21:00:27.000Z
2022-01-25T22:08:39.000Z
gogapi/api.py
tikki/pygogapi
f1b3a811444dc521ea4ad7884104086b52348995
[ "MIT" ]
3
2017-06-06T23:08:30.000Z
2019-01-28T02:20:34.000Z
gogapi/api.py
tikki/pygogapi
f1b3a811444dc521ea4ad7884104086b52348995
[ "MIT" ]
8
2017-02-10T15:13:32.000Z
2020-04-18T11:17:15.000Z
import json import re import logging import html.parser import zlib import requests from gogapi import urls from gogapi.base import NotAuthorizedError, logger from gogapi.product import Product, Series from gogapi.search import SearchResult DEBUG_JSON = False GOGDATA_RE = re.compile(r"gogData\.?(.*?) = (.+);") CLIEN...
32.892116
80
0.628233
2,065
15,854
4.60678
0.155448
0.072532
0.090192
0.101861
0.469358
0.411017
0.37002
0.309156
0.266898
0.213708
0
0.004235
0.255393
15,854
481
81
32.960499
0.801609
0.082503
0
0.173203
0
0
0.09924
0.009661
0
0
0
0.002079
0
1
0.261438
false
0
0.03268
0.156863
0.558824
0.006536
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e0756c223fe0a2644bdda0e4b367139a612e5089
943
py
Python
setup.py
gibsonMatt/stacks-pairwise
8f3cde603c2bfed255f6c399557e9332072886fb
[ "MIT" ]
null
null
null
setup.py
gibsonMatt/stacks-pairwise
8f3cde603c2bfed255f6c399557e9332072886fb
[ "MIT" ]
null
null
null
setup.py
gibsonMatt/stacks-pairwise
8f3cde603c2bfed255f6c399557e9332072886fb
[ "MIT" ]
null
null
null
import pathlib import os from setuptools import setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() # specify requirements of your package here REQUIREMENTS = ['biopython', 'numpy', 'pandas'] setup(name='stacksPairwi...
29.46875
100
0.694592
103
943
6.194175
0.669903
0.00627
0
0
0
0
0
0
0
0
0
0.003937
0.191941
943
31
101
30.419355
0.833333
0.110286
0
0
0
0
0.398802
0.081437
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e076824b715f780b36bdb8e03020e256a3cf8b8d
156
py
Python
csv_experiment.py
komax/spanningtree-crossingnumber
444c8809a543905000a63c9d2ff1dcfb31835766
[ "MIT" ]
2
2019-01-07T22:12:09.000Z
2020-05-08T06:44:19.000Z
csv_experiment.py
komax/spanningtree-crossingnumber
444c8809a543905000a63c9d2ff1dcfb31835766
[ "MIT" ]
null
null
null
csv_experiment.py
komax/spanningtree-crossingnumber
444c8809a543905000a63c9d2ff1dcfb31835766
[ "MIT" ]
null
null
null
#! /usr/bin/env python import os import sys args = sys.argv[1:] os.system('python -O -m spanningtree.csv_experiment_statistics ' + ' '.join(args))
19.5
66
0.673077
23
156
4.478261
0.782609
0
0
0
0
0
0
0
0
0
0
0.007752
0.173077
156
7
67
22.285714
0.790698
0.134615
0
0
0
0
0.395522
0.283582
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e0774173b092651de83171acaf096405634f72ae
2,536
py
Python
projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py
klemenkotar/dcrl
457be7af1389db37ec12e165dfad646e17359162
[ "MIT" ]
18
2021-06-09T04:50:47.000Z
2022-02-04T22:56:56.000Z
projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py
klemenkotar/dcrl
457be7af1389db37ec12e165dfad646e17359162
[ "MIT" ]
null
null
null
projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py
klemenkotar/dcrl
457be7af1389db37ec12e165dfad646e17359162
[ "MIT" ]
4
2021-06-09T06:20:25.000Z
2022-03-13T03:11:17.000Z
import torch import torch.optim as optim from torch.optim.lr_scheduler import LambdaLR from allenact.algorithms.onpolicy_sync.losses import PPO from allenact.algorithms.onpolicy_sync.losses.imitation import Imitation from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig from allenact.utils.experiment_util...
34.27027
88
0.635252
273
2,536
5.619048
0.413919
0.031291
0.043025
0.05867
0.078227
0.078227
0
0
0
0
0
0.018364
0.291404
2,536
73
89
34.739726
0.835281
0.054811
0
0.079365
0
0
0.033179
0.01092
0
0
0
0
0
1
0.031746
false
0
0.126984
0.015873
0.206349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e077592087a48a19c044b7ca66417c720c7d2548
12,328
py
Python
BioCAT/src/Calculating_scores.py
DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool
d58d330e3e11380c0c917a0ad9c12a51447f1624
[ "MIT" ]
4
2021-04-16T14:42:47.000Z
2021-06-11T14:29:35.000Z
BioCAT/src/Calculating_scores.py
DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool
d58d330e3e11380c0c917a0ad9c12a51447f1624
[ "MIT" ]
3
2021-07-23T09:30:59.000Z
2021-11-07T17:40:59.000Z
BioCAT/src/Calculating_scores.py
DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool
d58d330e3e11380c0c917a0ad9c12a51447f1624
[ "MIT" ]
1
2022-02-27T17:19:50.000Z
2022-02-27T17:19:50.000Z
from numpy import array from pickle import load from pandas import read_csv import os from BioCAT.src.Combinatorics import multi_thread_shuffling, multi_thread_calculating_scores, make_combine, get_score, get_max_aminochain, skipper # Importing random forest model modelpath = os.path.dirname(os.path.abspath(__file__)...
42.510345
236
0.649903
1,487
12,328
5.149294
0.169469
0.054329
0.030168
0.033956
0.539637
0.474468
0.438684
0.372731
0.325454
0.319054
0
0.002117
0.271901
12,328
289
237
42.657439
0.850936
0.332414
0
0.127119
0
0
0.039943
0
0
0
0
0
0
1
0.042373
false
0
0.042373
0
0.127119
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0776cc9711477b5d215a8a600b08e98b5af4d8a
857
py
Python
deal/linter/_extractors/returns.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
1
2020-09-05T13:54:16.000Z
2020-09-05T13:54:16.000Z
deal/linter/_extractors/returns.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
7
2020-09-05T13:54:28.000Z
2020-11-27T05:59:19.000Z
deal/linter/_extractors/returns.py
Smirenost/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
null
null
null
# built-in from typing import Optional # app from .common import TOKENS, Extractor, Token, traverse from .value import UNKNOWN, get_value get_returns = Extractor() inner_extractor = Extractor() def has_returns(body: list) -> bool: for expr in traverse(body=body): if isinstance(expr, TOKENS.RETURN + TOK...
25.205882
74
0.711785
119
857
5.02521
0.319328
0.06689
0.060201
0.080268
0.41806
0.41806
0.41806
0.41806
0.41806
0.41806
0
0
0.183197
857
33
75
25.969697
0.854286
0.014002
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e077be2cbaa5c0711f376c7e5a696aa0b37ee960
1,526
py
Python
qubiter/device_specific/chip_couplings_ibm.py
yourball/qubiter
5ef0ea064fa8c9f125f7951a01fbb88504a054a5
[ "Apache-2.0" ]
3
2019-10-03T04:27:36.000Z
2021-02-13T17:49:34.000Z
qubiter/device_specific/chip_couplings_ibm.py
yourball/qubiter
5ef0ea064fa8c9f125f7951a01fbb88504a054a5
[ "Apache-2.0" ]
null
null
null
qubiter/device_specific/chip_couplings_ibm.py
yourball/qubiter
5ef0ea064fa8c9f125f7951a01fbb88504a054a5
[ "Apache-2.0" ]
2
2020-10-07T15:22:19.000Z
2021-06-07T04:59:58.000Z
def aaa(): # trick sphinx to build link in doc pass # retired ibmqx2_c_to_tars =\ { 0: [1, 2], 1: [2], 2: [], 3: [2, 4], 4: [2] } # 6 edges # retired ibmqx4_c_to_tars =\ { 0: [], 1: [0], 2: [0, 1, 4], 3: [2, 4], 4: [] } # 6 edges # retired ibmq16Rus_c_to_tars = \ { ...
15.895833
39
0.355177
282
1,526
1.858156
0.152482
0.030534
0.080153
0.091603
0.148855
0.083969
0.083969
0
0
0
0
0.355249
0.382045
1,526
95
40
16.063158
0.200424
0.071429
0
0.105882
0
0
0
0
0
0
0
0
0
1
0.011765
false
0.011765
0
0
0.011765
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e07835355388fff9c6902a335662f753bb73c86c
14,599
py
Python
Template.py
rainshen49/citadel-trading-comp
3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5
[ "MIT" ]
2
2018-12-11T03:33:06.000Z
2021-09-21T01:12:58.000Z
Template.py
rainshen49/citadel-trading-comp
3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5
[ "MIT" ]
null
null
null
Template.py
rainshen49/citadel-trading-comp
3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5
[ "MIT" ]
null
null
null
import signal import requests import time from math import floor shutdown = False MAIN_TAKER = 0.0065 MAIN_MAKER = 0.002 ALT_TAKER = 0.005 ALT_MAKER = 0.0035 TAKER = (MAIN_TAKER + ALT_TAKER)*2 MAKER = MAIN_MAKER + ALT_MAKER TAKEMAIN = MAIN_TAKER - ALT_MAKER TAKEALT = ALT_TAKER - MAIN_MAKER BUFFER = 0.0...
33.407323
116
0.558052
1,713
14,599
4.66725
0.166375
0.011382
0.018762
0.018011
0.353096
0.316573
0.306316
0.295184
0.219262
0.174359
0
0.014465
0.32283
14,599
436
117
33.483945
0.794255
0.046784
0
0.298295
0
0
0.075723
0.001635
0
0
0
0.002294
0
1
0.090909
false
0.002841
0.011364
0.008523
0.196023
0.039773
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e078ffec67d1b2046e248c3ee5d65b353731cbf4
1,479
py
Python
examples/basic/wire_feedthrough.py
souviksaha97/spydrnet-physical
b07bcc152737158ea7cbebf0ef844abe49d29c5e
[ "BSD-3-Clause" ]
null
null
null
examples/basic/wire_feedthrough.py
souviksaha97/spydrnet-physical
b07bcc152737158ea7cbebf0ef844abe49d29c5e
[ "BSD-3-Clause" ]
null
null
null
examples/basic/wire_feedthrough.py
souviksaha97/spydrnet-physical
b07bcc152737158ea7cbebf0ef844abe49d29c5e
[ "BSD-3-Clause" ]
null
null
null
""" ========================================== Genrating feedthrough from single instance ========================================== This example demostrates how to generate a feedthrough wire connection for a given scalar or vector wires. **Initial Design** .. hdl-diagram:: ../../../examples/basic/_initial_design.v...
24.65
74
0.699797
194
1,479
5.087629
0.365979
0.020263
0.040527
0.069909
0.448835
0.343465
0.343465
0.237082
0.149949
0.149949
0
0.013688
0.110886
1,479
59
75
25.067797
0.736882
0.473969
0
0.333333
1
0
0.131339
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e079004173a435849592703f1baaf8e8d87ed079
9,131
py
Python
workflows/workflow.py
sunnyfloyd/panderyx
82f03625159833930ff044a43a6619ab710ff159
[ "MIT" ]
null
null
null
workflows/workflow.py
sunnyfloyd/panderyx
82f03625159833930ff044a43a6619ab710ff159
[ "MIT" ]
null
null
null
workflows/workflow.py
sunnyfloyd/panderyx
82f03625159833930ff044a43a6619ab710ff159
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Optional, Union from tools import tools from exceptions import workflow_exceptions class Workflow: """A class to represent a workflow. Workflow class provides set of methods to manage state of the workflow. It allows for tool insertions, removals and...
33.818519
87
0.61461
1,221
9,131
4.411957
0.15561
0.05569
0.022276
0.019491
0.430295
0.317616
0.278819
0.247633
0.194728
0.164841
0
0.001273
0.311685
9,131
269
88
33.944238
0.855847
0.432045
0
0.257143
0
0
0.005623
0
0
0
0
0
0
1
0.133333
false
0
0.038095
0.019048
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e07a13e1121d2676a50044d556f0800f60bfd2f7
2,849
py
Python
team_fundraising/text.py
namtel-hp/fundraising-website
30cb0cd2bd4505454295d11715e70712525234a3
[ "MIT" ]
5
2019-10-26T12:41:31.000Z
2022-03-13T08:30:29.000Z
team_fundraising/text.py
Maalik1/fundraising-website
a5fcd7e8a5966f299f57c22af8c739a3d6cd501a
[ "MIT" ]
9
2021-03-18T21:27:36.000Z
2022-03-11T23:42:46.000Z
team_fundraising/text.py
Maalik1/fundraising-website
a5fcd7e8a5966f299f57c22af8c739a3d6cd501a
[ "MIT" ]
2
2021-01-11T14:19:01.000Z
2022-02-18T19:18:38.000Z
class Donation_text: # Shown as a message across the top of the page on return from a donation # used in views.py:new_donation() thank_you = ( "Thank you for your donation. " "You may need to refresh this page to see the donation." ) confirmation_email_subject = ( 'Thank y...
33.916667
79
0.65251
397
2,849
4.602015
0.38539
0.019157
0.027367
0.038314
0.252326
0.219486
0.219486
0.204707
0.204707
0.204707
0
0.002921
0.279045
2,849
83
80
34.325301
0.886563
0.206739
0
0
0
0
0.577728
0.022272
0
0
0
0
0
1
0
false
0.090909
0
0
0.254545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0eb2577f85f04e68e802521ef8915750223e0174
624
py
Python
tests/wagtail_live/test_apps.py
wagtail/wagtail-live
dd769be089d457cf36db2506520028bc5f506ac3
[ "BSD-3-Clause" ]
22
2021-06-07T20:36:18.000Z
2022-03-29T01:48:58.000Z
tests/wagtail_live/test_apps.py
wagtail/wagtail-live
dd769be089d457cf36db2506520028bc5f506ac3
[ "BSD-3-Clause" ]
73
2021-05-21T16:08:44.000Z
2022-03-20T23:59:59.000Z
tests/wagtail_live/test_apps.py
wagtail/wagtail-live
dd769be089d457cf36db2506520028bc5f506ac3
[ "BSD-3-Clause" ]
11
2021-06-10T10:05:13.000Z
2022-02-12T13:31:34.000Z
from django.apps import apps from django.test import override_settings from wagtail_live.signals import live_page_update def test_live_page_update_signal_receivers(): assert len(live_page_update.receivers) == 0 @override_settings( WAGTAIL_LIVE_PUBLISHER="tests.testapp.publishers.DummyWebsocketPublisher" ) ...
27.130435
77
0.780449
80
624
5.725
0.4625
0.104803
0.183406
0.065502
0.262009
0.157205
0.157205
0
0
0
0
0.003774
0.150641
624
22
78
28.363636
0.860377
0.06891
0
0
0
0
0.103627
0.082902
0
0
0
0
0.066667
1
0.133333
false
0
0.2
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0eb2fde0bae97bffa51893b405703a8d74ef6c29
14,826
py
Python
PLM/options.py
vtta2008/pipelineTool
2431d2fc987e3b31f2a6a63427fee456fa0765a0
[ "Apache-2.0" ]
7
2017-12-22T02:49:58.000Z
2018-05-09T05:29:06.000Z
PLM/options.py
vtta2008/pipelineTool
2431d2fc987e3b31f2a6a63427fee456fa0765a0
[ "Apache-2.0" ]
null
null
null
PLM/options.py
vtta2008/pipelineTool
2431d2fc987e3b31f2a6a63427fee456fa0765a0
[ "Apache-2.0" ]
3
2019-03-11T21:54:52.000Z
2019-11-25T11:23:17.000Z
# -*- coding: utf-8 -*- """ Script Name: Author: Do Trinh/Jimmy - 3D artist. Description: """ # ------------------------------------------------------------------------------------------------------------- """ Import """ import os from PySide2.QtWidgets import (QFrame, QStyle, QAbstractItemView, QSizePolicy...
43.994065
114
0.475651
1,091
14,826
6.351971
0.511457
0.019625
0.008081
0
0
0
0
0
0
0
0
0.058014
0.391947
14,826
337
115
43.994065
0.710593
0.096587
0
0.008547
0
0
0.006299
0
0
0
0
0
0
1
0
false
0.004274
0.017094
0
0.017094
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eb3ad476194898d48e135372f34d1ee69bc79d8
2,509
py
Python
Crawling/ssafyCrawling.py
Nyapy/FMTG
dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e
[ "MIT" ]
null
null
null
Crawling/ssafyCrawling.py
Nyapy/FMTG
dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e
[ "MIT" ]
null
null
null
Crawling/ssafyCrawling.py
Nyapy/FMTG
dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.chrome.options import Options import sys import time import urllib.request import os sys.stdin = open('idpwd.txt') site = input() id = input() pwd = input() # selenium에서 사용할 웹 드라이버 절대 경로 정보 chromedriver = 'C:\Webdriver\chromedriver.exe' # selenum의 webdriver에 앞서 설치...
32.166667
109
0.719012
369
2,509
4.661247
0.341463
0.110465
0.098837
0.110465
0.437209
0.337209
0.32093
0.247674
0.223837
0.2
0
0.012362
0.09725
2,509
77
110
32.584416
0.74702
0.461538
0
0
0
0
0.230886
0.092354
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eb4432b0091105498b6cde85c1c9de8fc2676cc
1,433
py
Python
100days/day95/StringIO_demo.py
chainren/python-learn
5e48e96c4bb212806b9ae0954fdb368abdcf9ba3
[ "Apache-2.0" ]
null
null
null
100days/day95/StringIO_demo.py
chainren/python-learn
5e48e96c4bb212806b9ae0954fdb368abdcf9ba3
[ "Apache-2.0" ]
16
2020-02-12T03:09:30.000Z
2022-03-12T00:08:59.000Z
100days/day95/StringIO_demo.py
chainren/python-learn
5e48e96c4bb212806b9ae0954fdb368abdcf9ba3
[ "Apache-2.0" ]
null
null
null
from io import StringIO # 定义一个 StringIO 对象,写入并读取其在内存中的内容 f = StringIO() f.write('Python-100') str = f.getvalue() # 读取写入的内容 print('写入内存中的字符串为:%s' %str) f.write('\n') # 追加内容 f.write('坚持100天') f.close() # 关闭 f1 = StringIO('Python-100' + '\n' + '坚持100天') # 读取内容 print(f1.read()) f1.close() # 假设的爬虫数据输出函数 outputDa...
18.61039
47
0.673412
187
1,433
5.160428
0.358289
0.02487
0.027979
0.046632
0.58342
0.58342
0.58342
0.58342
0.58342
0.58342
0
0.035533
0.175157
1,433
77
48
18.61039
0.78088
0.251221
0
0.589744
0
0
0.20038
0.021842
0
0
0
0
0
1
0.051282
false
0
0.025641
0
0.128205
0.25641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eb4945ca1e15b4e7d0b451aa87077b0cebf76c6
10,595
py
Python
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
1
2021-05-09T04:51:28.000Z
2021-05-09T04:51:28.000Z
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
null
null
null
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
null
null
null
import biothings.hub.dataload.uploader as uploader class DrugCentralUploader(uploader.DummySourceUploader): name = "drugcentral" __metadata__ = { "src_meta" : { "url" : "http://drugcentral.org/", "license_url" : "http://drugcentral.org/privacy", "lic...
41.54902
65
0.224823
380
10,595
6.047368
0.271053
0.234987
0.400348
0.469974
0.612707
0.31114
0.073977
0.040905
0
0
0
0.000595
0.682775
10,595
254
66
41.712598
0.68313
0
0
0.416
0
0
0.21142
0.002548
0
0
0
0
0
1
0.004
false
0
0.004
0
0.024
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0eb4f1bf9aa917694ffc04ea836799d3bd9b4710
2,751
py
Python
tests/test_cli.py
Nate1729/FinPack
d76fd5e6538298d5596d5b0f7d3be2bc6520c431
[ "Apache-2.0" ]
1
2022-01-28T20:05:22.000Z
2022-01-28T20:05:22.000Z
tests/test_cli.py
Nate1729/FinPack
d76fd5e6538298d5596d5b0f7d3be2bc6520c431
[ "Apache-2.0" ]
30
2021-11-22T19:07:54.000Z
2021-12-18T03:00:47.000Z
tests/test_cli.py
Nate1729/FinPack
d76fd5e6538298d5596d5b0f7d3be2bc6520c431
[ "Apache-2.0" ]
2
2021-12-13T20:27:52.000Z
2021-12-17T18:39:40.000Z
"""Contains tests for finpack/core/cli.py """ __copyright__ = "Copyright (C) 2021 Matt Ferreira" import os import unittest from importlib import metadata from docopt import docopt from finpack.core import cli class TestCli(unittest.TestCase): @classmethod def setUpClass(cls): cls.DATA_DIR = "temp" ...
25.238532
62
0.623773
324
2,751
5.012346
0.185185
0.112069
0.144089
0.108374
0.576355
0.461207
0.461207
0.461207
0.461207
0.435345
0
0.011748
0.226463
2,751
108
63
25.472222
0.75141
0.013813
0
0.393939
0
0
0.149298
0.018108
0
0
0
0
0.287879
1
0.19697
false
0
0.075758
0
0.287879
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eb6190157c1946b37b5fd1be18f551d0e559832
612
py
Python
python/Patterns/inheritance/main.py
zinderud/ysa
e34d3f4c7afab3976d86f5d27edfcd273414e496
[ "Apache-2.0" ]
null
null
null
python/Patterns/inheritance/main.py
zinderud/ysa
e34d3f4c7afab3976d86f5d27edfcd273414e496
[ "Apache-2.0" ]
1
2017-12-27T10:09:22.000Z
2017-12-27T10:22:47.000Z
python/Patterns/inheritance/main.py
zinderud/ysa
e34d3f4c7afab3976d86f5d27edfcd273414e496
[ "Apache-2.0" ]
null
null
null
class Yaratik(object): def move_left(self): print('Moving left...') def move_right(self): print('Moving left...') class Ejderha(Yaratik): def Ates_puskurtme(self): print('ates puskurtum!') class Zombie(Yaratik): def Isirmak(self): print('Isirdim simdi!') enemy =...
18
74
0.679739
76
612
5.381579
0.394737
0.08802
0.07335
0.09291
0
0
0
0
0
0
0
0
0.19281
612
33
75
18.545455
0.827935
0.222222
0
0.105263
0
0
0.120507
0
0
0
0
0
0
1
0.210526
false
0
0
0
0.368421
0.210526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0eb71b68b065b14b8eebff52fa3bbffc15201b7a
1,527
py
Python
clustering/graph_utils.py
perathambkk/ml-techniques
5d6fd122322342c0b47dc65d09c4425fd73f2ea9
[ "MIT" ]
null
null
null
clustering/graph_utils.py
perathambkk/ml-techniques
5d6fd122322342c0b47dc65d09c4425fd73f2ea9
[ "MIT" ]
null
null
null
clustering/graph_utils.py
perathambkk/ml-techniques
5d6fd122322342c0b47dc65d09c4425fd73f2ea9
[ "MIT" ]
null
null
null
""" Author: Peratham Wiriyathammabhum """ import numpy as np import pandas as pd from sklearn.neighbors import NearestNeighbors def affinity_graph(X): ''' This function returns a numpy array. ''' ni, nd = X.shape A = np.zeros((ni, ni)) for i in range(ni): for j in range(i+1, ni): dist = ((X[i] - X[j])**...
21.814286
75
0.614276
268
1,527
3.466418
0.309701
0.04521
0.06028
0.064586
0.383208
0.334769
0.318622
0.318622
0.318622
0.318622
0
0.020781
0.212181
1,527
70
76
21.814286
0.750623
0.183366
0
0.4375
0
0
0.040067
0
0
0
0
0.014286
0
1
0.083333
false
0.020833
0.0625
0
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0eb8ddc2c0219670903c4425de4ca4b63a33f316
10,124
py
Python
recipe_engine/internal/commands/__init__.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
1
2021-04-24T04:03:01.000Z
2021-04-24T04:03:01.000Z
recipe_engine/internal/commands/__init__.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
recipe_engine/internal/commands/__init__.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """This package houses all subcommands for the recipe engine. See implementation_details.md for the expectations of the modules in this directory...
35.152778
80
0.697452
1,424
10,124
4.785112
0.308287
0.022014
0.014382
0.010566
0.072791
0.046962
0.037276
0.037276
0.037276
0.037276
0
0.002132
0.212465
10,124
287
81
35.275261
0.852502
0.367641
0
0.145455
0
0
0.13239
0
0
0
0
0.003484
0
1
0.054545
false
0
0.066667
0
0.145455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eb8efd29824103fb230c6103a6e3a8b1b30a534
7,295
py
Python
openfl/pipelines/stc_pipeline.py
sarthakpati/openfl
8edebfd565d94f709a7d7f06d9ee38a7975c066e
[ "Apache-2.0" ]
null
null
null
openfl/pipelines/stc_pipeline.py
sarthakpati/openfl
8edebfd565d94f709a7d7f06d9ee38a7975c066e
[ "Apache-2.0" ]
null
null
null
openfl/pipelines/stc_pipeline.py
sarthakpati/openfl
8edebfd565d94f709a7d7f06d9ee38a7975c066e
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """STCPipelinemodule.""" import numpy as np import gzip as gz from .pipeline import TransformationPipeline, Transformer class SparsityTransformer(Transformer): """A transformer class to sparsify input data.""" def __init__(s...
33.159091
99
0.622207
878
7,295
4.995444
0.223235
0.02508
0.02736
0.029184
0.312814
0.21637
0.206794
0.181943
0.170999
0.149567
0
0.012004
0.291981
7,295
219
100
33.310502
0.837173
0.376422
0
0.183908
0
0
0.014595
0
0
0
0
0.004566
0
1
0.137931
false
0
0.045977
0
0.321839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0eb9c920aa1f94bcf5b75523167a5791a71d6de8
1,150
py
Python
modle/__init__.py
Rex0519/NessusToReport
047dd4a2f749addab3991b0ebc8ab609140c32a7
[ "Apache-2.0" ]
244
2020-06-27T12:07:52.000Z
2022-03-30T02:36:27.000Z
modle/__init__.py
Rex0519/NessusToReport
047dd4a2f749addab3991b0ebc8ab609140c32a7
[ "Apache-2.0" ]
23
2021-05-20T07:38:55.000Z
2022-03-13T14:13:01.000Z
modle/__init__.py
Rex0519/NessusToReport
047dd4a2f749addab3991b0ebc8ab609140c32a7
[ "Apache-2.0" ]
74
2020-06-27T12:07:53.000Z
2022-03-11T19:07:45.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # ------------------------------------------------------------ # File: __init__.py.py # Created Date: 2020/6/24 # Created Time: 0:12 # Author: Hypdncy # Author Mail: hypdncy@outlook.com # Copyright (c) 2020 Hypdncy # ---------------------------------------------------------...
39.655172
62
0.117391
31
1,150
4.225806
0.806452
0
0
0
0
0
0
0
0
0
0
0.02289
0.392174
1,150
29
63
39.655172
0.164521
0.950435
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
0ebc4327dea5e082563be3e589c1e4f6b395a97a
7,146
py
Python
tests/component/test_grid_mixin.py
csdms/pymt
188222d7858cd3e8eb15564e56d9b7f0cb43cae5
[ "MIT" ]
38
2017-06-30T17:10:53.000Z
2022-01-05T07:38:03.000Z
tests/component/test_grid_mixin.py
csdms/pymt
188222d7858cd3e8eb15564e56d9b7f0cb43cae5
[ "MIT" ]
96
2017-04-04T18:52:41.000Z
2021-11-01T21:30:48.000Z
tests/component/test_grid_mixin.py
csdms/pymt
188222d7858cd3e8eb15564e56d9b7f0cb43cae5
[ "MIT" ]
15
2017-05-23T15:40:16.000Z
2021-06-14T21:30:28.000Z
import numpy as np import pytest from pytest import approx from pymt.component.grid import GridMixIn class Port: def __init__(self, name, uses=None, provides=None): self._name = name self._uses = uses or [] self._provides = provides or [] def get_component_name(self): return ...
27.805447
84
0.558354
1,074
7,146
3.463687
0.069832
0.04086
0.035484
0.026882
0.816398
0.783602
0.744892
0.710753
0.691129
0.673656
0
0.062864
0.278757
7,146
256
85
27.914063
0.658906
0
0
0.510638
0
0
0.034005
0
0
0
0
0
0.138298
1
0.292553
false
0
0.021277
0.154255
0.579787
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
7
0ebe32fa6550f0c6be308f3edf45681f0583afc5
730
py
Python
scripts/compare.py
SnoozeTime/nes
4d60562c59e175485eb3dff043c0c78473034cdb
[ "Unlicense" ]
1
2022-01-07T02:00:36.000Z
2022-01-07T02:00:36.000Z
scripts/compare.py
SnoozeTime/nes
4d60562c59e175485eb3dff043c0c78473034cdb
[ "Unlicense" ]
6
2020-12-12T03:21:55.000Z
2022-02-18T11:22:28.000Z
scripts/compare.py
SnoozeTime/nes
4d60562c59e175485eb3dff043c0c78473034cdb
[ "Unlicense" ]
1
2018-12-02T20:42:10.000Z
2018-12-02T20:42:10.000Z
import sys def load_log_sp(filename): data = [] with open(filename) as f: for line in f.readlines(): tokens = line.split(" ") spidx = line.find("SP:") endidx = line.find(' ', spidx) data.append((line[0:4], line[spidx+3:endidx])) return data if __nam...
30.416667
85
0.545205
98
730
3.877551
0.5
0.055263
0.071053
0.057895
0
0
0
0
0
0
0
0.040153
0.283562
730
23
86
31.73913
0.686424
0
0
0
0
0
0.039726
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ebf6e6f4a1667f2d0b5238c117fa44dfca6f7c4
10,203
py
Python
tercer_modelo.py
nahuelalmeira/deepLearning
f1fcd06f5735c8be9272b0c8392b1ae467c08582
[ "MIT" ]
null
null
null
tercer_modelo.py
nahuelalmeira/deepLearning
f1fcd06f5735c8be9272b0c8392b1ae467c08582
[ "MIT" ]
null
null
null
tercer_modelo.py
nahuelalmeira/deepLearning
f1fcd06f5735c8be9272b0c8392b1ae467c08582
[ "MIT" ]
null
null
null
"""Exercise 1 Usage: $ CUDA_VISIBLE_DEVICES=2 python practico_1_train_petfinder.py --dataset_dir ../ --epochs 30 --dropout 0.1 0.1 --hidden_layer_sizes 200 100 To know which GPU to use, you can check it with the command $ nvidia-smi """ import argparse import os import mlflow import pickle import numpy as np impo...
45.346667
138
0.51181
968
10,203
5.161157
0.269628
0.033026
0.035228
0.01201
0.1245
0.074059
0.074059
0.042234
0
0
0
0.005103
0.174066
10,203
224
139
45.549107
0.587754
0.095462
0
0.038168
0
0
0.161946
0.027039
0
0
0
0.004464
0.007634
1
0.022901
false
0
0.083969
0
0.114504
0.145038
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ebfda6d11cf85e7a67d60d7c46e294592497198
7,576
py
Python
catpy/applications/export.py
catmaid/catpy
481d87591a6dfaedef2767dcddcbed7185ecc8b8
[ "MIT" ]
5
2018-04-24T15:45:31.000Z
2021-06-18T17:38:07.000Z
catpy/applications/export.py
catmaid/catpy
481d87591a6dfaedef2767dcddcbed7185ecc8b8
[ "MIT" ]
35
2017-05-12T21:49:54.000Z
2022-03-12T00:47:09.000Z
catpy/applications/export.py
catmaid/catpy
481d87591a6dfaedef2767dcddcbed7185ecc8b8
[ "MIT" ]
4
2017-08-24T12:15:41.000Z
2019-10-13T01:05:34.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from pkg_resources import parse_version from warnings import warn from copy import deepcopy import networkx as nx from networkx.readwrite import json_graph from catpy.applications.base import CatmaidClientApplication NX_VERSION_INFO = parse_version(nx....
31.566667
126
0.551082
827
7,576
4.912938
0.290206
0.037903
0.007876
0.017721
0.179424
0.137091
0.103126
0.086389
0.086389
0.086389
0
0.013274
0.343717
7,576
239
127
31.698745
0.803902
0.347413
0
0.054348
0
0.021739
0.205586
0.006102
0
0
0
0.004184
0
1
0.086957
false
0
0.076087
0
0.23913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec1afd2facbda8f3febe8ca1dc7c71fb6558f04
1,993
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/external_writer_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/external_writer_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/external_writer_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Optional from watchmen_auth import PrincipalService from watchmen_data_kernel.cache import CacheService from watchmen_data_kernel.common import DataKernelException from watchmen_data_kernel.external_writer import find_external_writer_create, register_external_writer_creator from watchmen_meta.common...
41.520833
110
0.831912
236
1,993
6.694915
0.275424
0.23038
0.06962
0.070886
0.210127
0.148101
0.070886
0.070886
0
0
0
0
0.104365
1,993
47
111
42.404255
0.885154
0.013046
0
0.105263
0
0
0.086514
0.053944
0
0
0
0
0
1
0.078947
false
0
0.236842
0
0.421053
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ec2342f96bb22e61801a222fde8647beb3203c5
304
py
Python
udemy-python/mediaponderada.py
AlbertoAlfredo/exercicios-cursos
792096ad1f853188adec8fc3e5c629742c8dd7ab
[ "MIT" ]
1
2017-08-27T00:57:20.000Z
2017-08-27T00:57:20.000Z
udemy-python/mediaponderada.py
AlbertoAlfredo/exercicios-cursos
792096ad1f853188adec8fc3e5c629742c8dd7ab
[ "MIT" ]
2
2020-09-09T04:22:06.000Z
2020-12-24T16:25:36.000Z
udemy-python/mediaponderada.py
AlbertoAlfredo/exercicios-cursos
792096ad1f853188adec8fc3e5c629742c8dd7ab
[ "MIT" ]
null
null
null
nota1 = float(input('Digite a nota da primeira nota ')) peso1 = float(input('Digite o peso da primeira nota ')) nota2 = float(input('Digite a nota da seugundo nota ')) peso2 = float(input('Digite o peso da segundo nota ')) media = (nota1/peso1+nota2/peso2)/2 print('A média das duas notas é:', media)
30.4
55
0.703947
50
304
4.28
0.46
0.186916
0.299065
0.158879
0.429907
0.429907
0
0
0
0
0
0.035294
0.161184
304
9
56
33.777778
0.803922
0
0
0
0
0
0.486842
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0ec2983c9be55e068e1ac3a8da9a2e78b097ece9
882
py
Python
scrywarden/module.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
1
2020-12-13T00:49:51.000Z
2020-12-13T00:49:51.000Z
scrywarden/module.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
null
null
null
scrywarden/module.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
null
null
null
from importlib import import_module from typing import Any def import_string(path: str) -> Any: """Imports a dotted path name and returns the class/attribute. Parameters ---------- path: str Dotted module path to retrieve. Returns ------- Class/attribute at the given import path....
24.5
71
0.603175
105
882
4.980952
0.428571
0.095602
0.063098
0.087954
0.091778
0
0
0
0
0
0
0.001623
0.301587
882
35
72
25.2
0.847403
0.278912
0
0.352941
0
0
0.19105
0
0
0
0
0
0
1
0.058824
false
0
0.352941
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0ec3610585ba69b4e61119ece94d8d89e44e43cc
27,448
py
Python
examples/oldexamples/sample_program.py
learningequality/klorimin
c569cd4048ac670bc55a83f4fdda0b818c7f626e
[ "MIT" ]
null
null
null
examples/oldexamples/sample_program.py
learningequality/klorimin
c569cd4048ac670bc55a83f4fdda0b818c7f626e
[ "MIT" ]
null
null
null
examples/oldexamples/sample_program.py
learningequality/klorimin
c569cd4048ac670bc55a83f4fdda0b818c7f626e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import os import re from enum import Enum from os.path import join from le_utils.constants import content_kinds from le_utils.constants import exercises from le_utils.constants import file_formats from le_utils.constants import licenses from ricecooker.chefs import SushiChef from ric...
45.594684
1,965
0.620847
2,579
27,448
6.393176
0.194649
0.040696
0.055495
0.046943
0.549976
0.505762
0.474406
0.464944
0.459425
0.448811
0
0.031639
0.280312
27,448
601
1,966
45.670549
0.803027
0.063174
0
0.298
0
0.024
0.301265
0.161062
0
1
0
0
0
1
0.016
false
0
0.04
0
0.128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
2
0ec3a322173dd7c7c650f060b94c615e6cceb769
19,118
py
Python
release/scripts/modules/bl_i18n_utils/utils_spell_check.py
dvgd/blender
4eb2807db1c1bd2514847d182fbb7a3f7773da96
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/modules/bl_i18n_utils/utils_spell_check.py
dvgd/blender
4eb2807db1c1bd2514847d182fbb7a3f7773da96
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/modules/bl_i18n_utils/utils_spell_check.py
dvgd/blender
4eb2807db1c1bd2514847d182fbb7a3f7773da96
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-12-02T20:05:42.000Z
2020-12-02T20:05:42.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program 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 Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
23.145278
103
0.437703
1,348
19,118
6.181751
0.807122
0.00864
0.00468
0.00684
0.029281
0.023761
0.016081
0.016081
0.016081
0.016081
0
0.001216
0.397583
19,118
825
104
23.173333
0.722324
0.080605
0
0.010485
0
0.001311
0.367117
0.002632
0
0
0
0
0
1
0.005242
false
0.002621
0.005242
0.001311
0.02228
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec3b7be918911b5b776d40be78266905df319e1
7,175
py
Python
naslib/predictors/mlp.py
gmeyerlee/NASLib
21dbceda04cc1faf3d8b6dd391412a459218ef2b
[ "Apache-2.0" ]
null
null
null
naslib/predictors/mlp.py
gmeyerlee/NASLib
21dbceda04cc1faf3d8b6dd391412a459218ef2b
[ "Apache-2.0" ]
null
null
null
naslib/predictors/mlp.py
gmeyerlee/NASLib
21dbceda04cc1faf3d8b6dd391412a459218ef2b
[ "Apache-2.0" ]
null
null
null
import numpy as np import os import json import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader, TensorDataset from naslib.utils.utils import AverageMeterGroup from naslib.predictors.utils.encodings import encode from naslib.predictors imp...
32.466063
88
0.564739
845
7,175
4.620118
0.246154
0.027664
0.030738
0.029201
0.152152
0.089139
0.089139
0.0625
0.0625
0.0625
0
0.01762
0.327666
7,175
220
89
32.613636
0.791667
0.012125
0
0.110497
0
0
0.038255
0
0
0
0
0
0.005525
1
0.049724
false
0
0.060773
0
0.160221
0.016575
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec3f2a1fe20def9bc91ffbd4b3742d74abb33b3
1,301
py
Python
pythonforandroid/recipes/libx264/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
1
2019-09-03T13:44:06.000Z
2019-09-03T13:44:06.000Z
pythonforandroid/recipes/libx264/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
null
null
null
pythonforandroid/recipes/libx264/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
1
2018-11-15T07:58:30.000Z
2018-11-15T07:58:30.000Z
from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM from os.path import exists, join, realpath from os import uname import glob import sh class LibX264Recipe(Recipe): version = 'x264-snapshot-20170608-2245-stable' # using mirror url since can't use ftp url = 'http://mirror.yand...
37.171429
93
0.583397
142
1,301
5.239437
0.542254
0.043011
0.032258
0.040323
0.112903
0.061828
0
0
0
0
0
0.052688
0.285165
1,301
34
94
38.264706
0.747312
0.027671
0
0
0
0.034483
0.248614
0.081552
0
0
0
0
0
1
0.068966
false
0
0.172414
0
0.413793
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec3f460313d8f825c0daad58ff5e76ef71c5401
1,704
py
Python
Win/reg.py
QGB/QPSU
7bc214676d797f42d2d7189dc67c9377bccdf25d
[ "MIT" ]
6
2018-03-25T20:05:21.000Z
2022-03-13T17:23:05.000Z
Win/reg.py
pen9un/QPSU
76e1a3f6f6f6f78452e02f407870a5a32177b667
[ "MIT" ]
15
2018-05-14T03:30:21.000Z
2022-03-03T15:33:25.000Z
Win/reg.py
pen9un/QPSU
76e1a3f6f6f6f78452e02f407870a5a32177b667
[ "MIT" ]
1
2021-07-15T06:23:45.000Z
2021-07-15T06:23:45.000Z
#coding=utf-8 try: if __name__.startswith('qgb.Win'): from .. import py else: import py except Exception as ei: raise ei raise EnvironmentError(__name__) if py.is2(): import _winreg as winreg from _winreg import * else: import winreg from winreg import * def get(skey,name,root=HKEY_CURRENT_USER,returnTyp...
29.894737
119
0.693662
258
1,704
4.426357
0.465116
0.014011
0.028021
0.038529
0
0
0
0
0
0
0
0.02095
0.159624
1,704
56
120
30.428571
0.776536
0.245892
0
0.071429
0
0
0.209703
0.045383
0
0
0
0.017857
0
1
0.047619
false
0
0.142857
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0ec42be3581d1c9d5c9ab4c954473cd6061146b5
3,555
py
Python
tests/test_handler.py
CJSoldier/webssh
b3c33ff6bd76f4f5df40cc1fe9a138cf0cecd08c
[ "MIT" ]
13
2018-09-16T15:51:38.000Z
2019-10-16T09:13:18.000Z
tests/test_handler.py
CJSoldier/webssh
b3c33ff6bd76f4f5df40cc1fe9a138cf0cecd08c
[ "MIT" ]
null
null
null
tests/test_handler.py
CJSoldier/webssh
b3c33ff6bd76f4f5df40cc1fe9a138cf0cecd08c
[ "MIT" ]
null
null
null
import unittest import paramiko from tornado.httputil import HTTPServerRequest from tests.utils import read_file, make_tests_data_path from webssh.handler import MixinHandler, IndexHandler, InvalidValueError class TestMixinHandler(unittest.TestCase): def test_get_real_client_addr(self): handler = MixinH...
40.397727
72
0.686639
427
3,555
5.487119
0.175644
0.088775
0.10542
0.05079
0.788732
0.757576
0.618438
0.580879
0.474178
0.474178
0
0.017394
0.207595
3,555
87
73
40.862069
0.814342
0
0
0.449275
0
0
0.070042
0.01294
0
0
0
0
0.318841
1
0.072464
false
0.15942
0.072464
0
0.173913
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
0ec517fad6215e10cf8fdc40288d6f1a4376050d
17,499
py
Python
apps/notifications/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
apps/notifications/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
apps/notifications/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
import logging from unittest import mock from unittest.mock import call from django.conf import settings from django.contrib.auth import get_user_model from django.core.signing import Signer from django.urls import reverse from django.http import Http404 from django.test import RequestFactory from braces.views import...
37.958785
91
0.66821
2,067
17,499
5.375907
0.106434
0.047516
0.021598
0.021598
0.553456
0.454824
0.37374
0.339093
0.313265
0.293647
0
0.006123
0.225327
17,499
460
92
38.041304
0.813588
0.016401
0
0.274151
0
0
0.082127
0.043824
0
0
0
0.002174
0.117493
1
0.138381
false
0
0.039164
0
0.201044
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec65d0e2393fe675648f46032adc3e480a8ef52
1,032
py
Python
examples/resources.py
willvousden/clint
6dc7ab1a6a162750e968463b43994447bca32544
[ "0BSD" ]
1,230
2015-01-03T05:39:25.000Z
2020-02-18T12:36:03.000Z
examples/resources.py
willvousden/clint
6dc7ab1a6a162750e968463b43994447bca32544
[ "0BSD" ]
50
2015-01-06T17:58:20.000Z
2018-03-19T13:25:22.000Z
examples/resources.py
willvousden/clint
6dc7ab1a6a162750e968463b43994447bca32544
[ "0BSD" ]
153
2015-01-03T03:56:25.000Z
2020-02-13T20:59:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import sys import os sys.path.insert(0, os.path.abspath('..')) from clint import resources resources.init('kennethreitz', 'clint') lorem = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...
33.290323
456
0.767442
151
1,032
5.211921
0.662252
0.081321
0.066074
0.045743
0.134689
0.134689
0
0
0
0
0
0.002222
0.127907
1,032
30
457
34.4
0.872222
0.040698
0
0
0
0.0625
0.611336
0
0
0
0
0
0.125
1
0
false
0
0.25
0
0.25
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ec667f34cc8524a0bd9453e82114220e88aef5a
813
py
Python
photos/urls.py
charlesmugambi/Instagram
3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7
[ "MIT" ]
null
null
null
photos/urls.py
charlesmugambi/Instagram
3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7
[ "MIT" ]
null
null
null
photos/urls.py
charlesmugambi/Instagram
3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^image/$', views.add_image, name='upload_image'), url(r'^profile/$', views.profile_info, name='profile'), url(r'...
42.789474
80
0.675277
117
813
4.581197
0.307692
0.067164
0.078358
0.067164
0.048507
0
0
0
0
0
0
0
0.120541
813
18
81
45.166667
0.74965
0
0
0
0
0
0.242312
0.093481
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec7068e816bc6b2d31f51831d9d75f6ffc1151c
11,247
py
Python
bread.py
vgfang/breadbot
e58807431945e6d4de8dfc6c4dc4c90caebf88ca
[ "MIT" ]
null
null
null
bread.py
vgfang/breadbot
e58807431945e6d4de8dfc6c4dc4c90caebf88ca
[ "MIT" ]
null
null
null
bread.py
vgfang/breadbot
e58807431945e6d4de8dfc6c4dc4c90caebf88ca
[ "MIT" ]
null
null
null
import random import math from fractions import Fraction from datetime import datetime from jinja2 import Template # empty class for passing to template engine class Recipe: def __init__(self): return # returns flour percent using flour type def get_special_flour_percent(flourType: str, breadFlourPercent:int) -> ...
36.996711
103
0.727927
1,465
11,247
5.541297
0.251877
0.028086
0.027223
0.025745
0.166297
0.126386
0.100148
0.087337
0.066396
0.066396
0
0.021022
0.145639
11,247
304
104
36.996711
0.823707
0.156664
0
0.087719
0
0
0.126762
0.009539
0
0
0
0
0
1
0.061404
false
0
0.02193
0.008772
0.219298
0.008772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec7b7a0dee386c8044a5e357cb59fce0132a0cf
19,177
py
Python
posthog/api/test/test_organization_domain.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/api/test/test_organization_domain.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/api/test/test_organization_domain.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
import datetime from unittest.mock import patch import dns.resolver import dns.rrset import pytest import pytz from django.utils import timezone from freezegun import freeze_time from rest_framework import status from posthog.models import Organization, OrganizationDomain, OrganizationMembership, Team from posthog.te...
45.228774
118
0.671012
2,088
19,177
5.945402
0.117337
0.103915
0.098196
0.044466
0.807234
0.773159
0.737071
0.725068
0.694297
0.677864
0
0.018563
0.213433
19,177
423
119
45.335697
0.80423
0.015435
0
0.556522
0
0
0.192134
0.107319
0
0
0
0
0.263768
1
0.069565
false
0.002899
0.031884
0
0.121739
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0ec7d9e291a15b37ad7f7b106420f6f50a25a3a0
1,248
py
Python
tutorial/test input.py
nataliapryakhina/FA_group3
3200464bc20d38a85af9ad3583a360db4ffb7f8d
[ "MIT" ]
null
null
null
tutorial/test input.py
nataliapryakhina/FA_group3
3200464bc20d38a85af9ad3583a360db4ffb7f8d
[ "MIT" ]
null
null
null
tutorial/test input.py
nataliapryakhina/FA_group3
3200464bc20d38a85af9ad3583a360db4ffb7f8d
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt from os import listdir from tensorflow.keras.callbacks import ModelCheckpoint dataDir = "./data/trainSmallFA/" files = listdir(dataDir) files.sort() totalLength = len(files) inputs = np.empty((len(files), 3, 64, 64)...
30.439024
80
0.600962
177
1,248
4.237288
0.457627
0.042667
0.026667
0.04
0.109333
0.053333
0.053333
0
0
0
0
0.042786
0.194712
1,248
41
81
30.439024
0.703483
0.091346
0
0.058824
0
0
0.034544
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec8d0b22163c94b04ce1660f7662d06d776efe5
2,781
py
Python
pepper/responder/brain.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
29
2018-01-20T08:51:42.000Z
2022-01-25T11:59:28.000Z
pepper/responder/brain.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
32
2018-09-20T13:09:34.000Z
2021-06-04T15:23:45.000Z
pepper/responder/brain.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
10
2018-10-25T02:45:21.000Z
2020-10-03T12:59:10.000Z
from pepper.framework import * from pepper import logger from pepper.language import Utterance from pepper.language.generation.thoughts_phrasing import phrase_thoughts from pepper.language.generation.reply import reply_to_question from .responder import Responder, ResponderType from pepper.language import UtteranceTy...
41.507463
126
0.612729
287
2,781
5.780488
0.369338
0.062688
0.0434
0.025316
0.072333
0.050633
0.038577
0.038577
0
0
0
0.003086
0.300971
2,781
66
127
42.136364
0.850309
0.108234
0
0.044444
0
0
0.028306
0
0
0
0
0
0
1
0.088889
false
0
0.244444
0.044444
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ec932467a0e10a4a3b540d34642f573915937be
7,076
py
Python
fedora_college/modules/content/views.py
fedora-infra/fedora-college
cf310dab2e4fea02b9ac5e7f57dc53aafb4834d8
[ "BSD-3-Clause" ]
2
2015-05-16T09:54:17.000Z
2017-01-11T17:58:31.000Z
fedora_college/modules/content/views.py
fedora-infra/fedora-college
cf310dab2e4fea02b9ac5e7f57dc53aafb4834d8
[ "BSD-3-Clause" ]
null
null
null
fedora_college/modules/content/views.py
fedora-infra/fedora-college
cf310dab2e4fea02b9ac5e7f57dc53aafb4834d8
[ "BSD-3-Clause" ]
1
2020-12-07T22:14:01.000Z
2020-12-07T22:14:01.000Z
# -*- coding: utf-8 -*- import re from unicodedata import normalize from flask import Blueprint, render_template, current_app from flask import redirect, url_for, g, abort from sqlalchemy import desc from fedora_college.core.database import db from fedora_college.modules.content.forms import * # noqa from fedora_colle...
34.517073
79
0.53307
772
7,076
4.757772
0.221503
0.036755
0.045739
0.049006
0.452219
0.397767
0.329703
0.329703
0.262184
0.262184
0
0.005341
0.338468
7,076
204
80
34.686275
0.779321
0.026427
0
0.345912
0
0
0.0916
0.01832
0
0
0
0
0
0
null
null
0.006289
0.069182
null
null
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
1
0
0
0
0
0
0
0
0
1
0ecb2c7a8dccded4280171cf1a9314223cfca421
3,611
py
Python
tests/components/airthings/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/airthings/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/airthings/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test the Airthings config flow.""" from unittest.mock import patch import airthings from homeassistant import config_entries from homeassistant.components.airthings.const import CONF_ID, CONF_SECRET, DOMAIN from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import RESULT_TYPE_CREATE_EN...
30.601695
84
0.675159
426
3,611
5.462441
0.197183
0.083799
0.058015
0.085088
0.529437
0.495917
0.453373
0.421573
0.421573
0.421573
0
0.004931
0.213791
3,611
117
85
30.863248
0.814723
0.008585
0
0.388235
0
0
0.11371
0.015398
0
0
0
0
0.164706
1
0
false
0
0.082353
0
0.082353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ecb9ff079e3fe67fcf620b3218ea8892b9b9c1c
1,726
py
Python
utils/utils.py
scomup/StereoNet-ActiveStereoNet
05994cf1eec4a109e095732fe01ecb5558880ba5
[ "MIT" ]
null
null
null
utils/utils.py
scomup/StereoNet-ActiveStereoNet
05994cf1eec4a109e095732fe01ecb5558880ba5
[ "MIT" ]
null
null
null
utils/utils.py
scomup/StereoNet-ActiveStereoNet
05994cf1eec4a109e095732fe01ecb5558880ba5
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) NKU # Licensed under the MIT License. # Written by Xuanyi Li (xuanyili.edu@gmail.com) # ------------------------------------------------------------------------------ import os import torch import torch.nn.functional as F #...
32.566038
128
0.589803
228
1,726
4.333333
0.45614
0.030364
0.036437
0.081984
0.291498
0.255061
0.255061
0.204453
0.1417
0.1417
0
0.018881
0.171495
1,726
52
129
33.192308
0.672028
0.631518
0
0.111111
0
0
0.013158
0
0
0
0
0
0
1
0.111111
false
0.055556
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0ecc375d6cf3b58f62ba3d07d23244af90a9b759
1,036
py
Python
worker/main.py
Devalent/facial-recognition-service
342e31fa7d016992d938b0121b03f0e8fe776ea8
[ "MIT" ]
null
null
null
worker/main.py
Devalent/facial-recognition-service
342e31fa7d016992d938b0121b03f0e8fe776ea8
[ "MIT" ]
null
null
null
worker/main.py
Devalent/facial-recognition-service
342e31fa7d016992d938b0121b03f0e8fe776ea8
[ "MIT" ]
null
null
null
from aiohttp import web import base64 import io import face_recognition async def encode(request): request_data = await request.json() # Read base64 encoded image url = request_data['image'].split(',')[1] image = io.BytesIO(base64.b64decode(url)) # Load image data np_array = face_recognition....
22.521739
68
0.625483
127
1,036
4.976378
0.480315
0.094937
0.060127
0
0
0
0
0
0
0
0
0.022021
0.254826
1,036
45
69
23.022222
0.796632
0.080116
0
0
0
0
0.048523
0
0
0
0
0
0
1
0.035714
false
0
0.142857
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ecd026a7b7cddee19fb7d65983aadf807f4917d
657
py
Python
rblod/setup.py
TiKeil/Two-scale-RBLOD
23f17a3e4edf63ea5f208eca50ca90c19bf511a9
[ "BSD-2-Clause" ]
null
null
null
rblod/setup.py
TiKeil/Two-scale-RBLOD
23f17a3e4edf63ea5f208eca50ca90c19bf511a9
[ "BSD-2-Clause" ]
null
null
null
rblod/setup.py
TiKeil/Two-scale-RBLOD
23f17a3e4edf63ea5f208eca50ca90c19bf511a9
[ "BSD-2-Clause" ]
null
null
null
# ~~~ # This file is part of the paper: # # " An Online Efficient Two-Scale Reduced Basis Approach # for the Localized Orthogonal Decomposition " # # https://github.com/TiKeil/Two-scale-RBLOD.git # # Copyright 2019-2021 all developers. All rights reserved. # License: Licensed as BSD 2-Clause ...
26.28
89
0.648402
83
657
5.120482
0.759036
0.049412
0.047059
0
0
0
0
0
0
0
0
0.029412
0.223744
657
24
90
27.375
0.803922
0.605784
0
0
0
0
0.266393
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0ecdf401d5b3926e749aa892bfa6a87de7f72b30
8,060
py
Python
bin/euclid_fine_plot_job_array.py
ndeporzio/cosmicfish
f68f779d73f039512a958d110bb44194d0daceec
[ "MIT" ]
null
null
null
bin/euclid_fine_plot_job_array.py
ndeporzio/cosmicfish
f68f779d73f039512a958d110bb44194d0daceec
[ "MIT" ]
null
null
null
bin/euclid_fine_plot_job_array.py
ndeporzio/cosmicfish
f68f779d73f039512a958d110bb44194d0daceec
[ "MIT" ]
null
null
null
import os import shutil import numpy as np import pandas as pd ...
65.528455
116
0.262655
511
8,060
3.986301
0.448141
0.037801
0.014728
0.012764
0.028473
0.028473
0.028473
0
0
0
0
0.100917
0.675434
8,060
122
117
66.065574
0.677752
0.121216
0
0
0
0
0.048801
0
0
0
0
0
0
1
0
false
0
0.079208
0
0.079208
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ece61d6db781e687c9a0cc4ff7c881e2a9a0b06
346
py
Python
project4/test/test_arm.py
XDZhelheim/CS205_C_CPP_Lab
f585fd685a51e19fddc9c582846547d34442c6ef
[ "MIT" ]
3
2022-01-11T08:12:40.000Z
2022-03-27T08:15:45.000Z
project4/test/test_arm.py
XDZhelheim/CS205_C_CPP_Lab
f585fd685a51e19fddc9c582846547d34442c6ef
[ "MIT" ]
null
null
null
project4/test/test_arm.py
XDZhelheim/CS205_C_CPP_Lab
f585fd685a51e19fddc9c582846547d34442c6ef
[ "MIT" ]
2
2022-03-03T03:01:20.000Z
2022-03-27T08:16:02.000Z
import os if __name__ == "__main__": dims = ["32", "64", "128", "256", "512", "1024", "2048"] for dim in dims: os.system( f"perf stat -e r11 -x, -r 10 ../matmul.out ../data/mat-A-{dim}.txt ../data/mat-B-{dim}.txt ./out/out-{dim}.txt 2>>res_arm.csv" ) print(f"Finished {dim}...
26.615385
138
0.514451
53
346
3.188679
0.716981
0.106509
0
0
0
0
0
0
0
0
0
0.100386
0.251445
346
13
139
26.615385
0.552124
0
0
0
0
0.111111
0.504323
0.132565
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0