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
0c11d6edd1fa7404e67e7a29c7dcaef50cd598a8
1,834
py
Python
FunTOTP/interface.py
Z33DD/FunTOTP
912c1a4a307af6a495f12a82305ae7dbf49916a2
[ "Unlicense" ]
3
2020-01-19T17:10:37.000Z
2022-02-19T18:39:20.000Z
FunTOTP/interface.py
Z33DD/FunTOTP
912c1a4a307af6a495f12a82305ae7dbf49916a2
[ "Unlicense" ]
null
null
null
FunTOTP/interface.py
Z33DD/FunTOTP
912c1a4a307af6a495f12a82305ae7dbf49916a2
[ "Unlicense" ]
1
2020-01-19T20:25:18.000Z
2020-01-19T20:25:18.000Z
from getpass import getpass from colorama import init, Fore, Back, Style yes = ['Y', 'y', 'YES', 'yes', 'Yes'] class interface(object): """ Terminal CLI """ def log(self, arg, get=False): if not get: print("[*]: {} ".format(arg)) else: return "[*]: {} ".format(a...
25.123288
76
0.490185
203
1,834
4.374384
0.369458
0.070946
0.033784
0.050676
0.291667
0.218468
0.218468
0.150901
0
0
0
0.002584
0.366957
1,834
72
77
25.472222
0.762274
0.124318
0
0.255814
0
0
0.105686
0
0
0
0
0
0
1
0.162791
false
0.162791
0.046512
0.023256
0.372093
0.162791
0
0
0
null
0
0
0
0
0
0
0
0
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
0c1b29cfd60d9ee7d4e6451a8264af9459d2ddcb
2,522
py
Python
app/request/migrations/0001_initial.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
null
null
null
app/request/migrations/0001_initial.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
32
2019-08-30T13:09:28.000Z
2021-06-10T19:07:56.000Z
app/request/migrations/0001_initial.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
3
2019-09-19T10:12:50.000Z
2019-09-30T15:59:13.000Z
# Generated by Django 2.2.5 on 2019-09-24 09:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
50.44
179
0.596352
274
2,522
5.339416
0.372263
0.135338
0.07177
0.064935
0.405332
0.367054
0.347915
0.293233
0.161996
0.161996
0
0.014675
0.243458
2,522
49
180
51.469388
0.752096
0.017843
0
0.404762
1
0
0.117172
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.142857
0
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
0c20b529cd83a9fd598afa8e482ff4d521f8b78a
954
py
Python
setup.py
eppeters/xontrib-dotenv
f866f557592d822d1ecb2b607c63c4cdecb580e4
[ "BSD-2-Clause" ]
null
null
null
setup.py
eppeters/xontrib-dotenv
f866f557592d822d1ecb2b607c63c4cdecb580e4
[ "BSD-2-Clause" ]
null
null
null
setup.py
eppeters/xontrib-dotenv
f866f557592d822d1ecb2b607c63c4cdecb580e4
[ "BSD-2-Clause" ]
1
2020-03-16T00:39:57.000Z
2020-03-16T00:39:57.000Z
#!/usr/bin/env python """ xontrib-dotenv ----- Automatically reads .env file from current working directory or parentdirectories and push variables to environment. """ from setuptools import setup setup( name='xontrib-dotenv', version='0.1', description='Reads .env files into environment', long_descr...
25.105263
60
0.631027
100
954
5.91
0.7
0.06599
0
0
0
0
0
0
0
0
0
0.006711
0.219078
954
37
61
25.783784
0.786577
0.165618
0
0
0
0
0.43401
0
0
0
0
0
0
1
0
true
0
0.037037
0
0.037037
0
0
0
0
null
0
0
0
0
0
0
0
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
0c24e2918c9577a7b38b38b7b54cfb7d7c91ca26
337
py
Python
pytest/np.py
i0Ek3/disintegration
b59307f8166b93d76fab35af180a5cf3ffa51b09
[ "MIT" ]
null
null
null
pytest/np.py
i0Ek3/disintegration
b59307f8166b93d76fab35af180a5cf3ffa51b09
[ "MIT" ]
null
null
null
pytest/np.py
i0Ek3/disintegration
b59307f8166b93d76fab35af180a5cf3ffa51b09
[ "MIT" ]
null
null
null
import numpy as np list = [np.linspace([1,2,3], 3),\ np.array([1,2,3]),\ np.arange(3),\ np.arange(8).reshape(2,4),\ np.zeros((2,3)),\ np.zeros((2,3)).T,\ np.ones((3,1)),\ np.eye(3),\ np.full((3,3), 1),\ np.random.rand(3),\ np.random.rand(3,3),\ np.random.uniform(5,15,3),\ np.random.randn(3),\ np.random.normal(3, 2.5, ...
17.736842
33
0.590504
74
337
2.689189
0.364865
0.135678
0.180905
0.090452
0
0
0
0
0
0
0
0.106452
0.080119
337
18
34
18.722222
0.535484
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.0625
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
0c2a0afb31018189385f06e7bd9d48b8c0f6df9c
2,895
py
Python
OpenPNM/Network/models/pore_topology.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
1
2021-03-30T21:38:26.000Z
2021-03-30T21:38:26.000Z
OpenPNM/Network/models/pore_topology.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
null
null
null
OpenPNM/Network/models/pore_topology.py
Eng-RSMY/OpenPNM
a0a057d0f6346c515792459b1da97f05bab383c1
[ "MIT" ]
null
null
null
r""" =============================================================================== pore_topology -- functions for monitoring and adjusting topology =============================================================================== """ import scipy as _sp def get_subscripts(network, shape, **kwargs): r""" Retu...
29.242424
79
0.587219
366
2,895
4.530055
0.412568
0.015078
0.005428
0
0
0
0
0
0
0
0
0.004202
0.260104
2,895
98
80
29.540816
0.769841
0.485665
0
0.051282
0
0
0.084034
0
0
0
0
0
0
1
0.076923
false
0.051282
0.025641
0
0.179487
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
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
0c3b154bc332d251c3e35e98a56001cf94c27a53
1,319
py
Python
setup.py
themis-project/themis-finals-checker-app-py
12e70102bcca3d6e4082d96e676e364176c0da67
[ "MIT" ]
null
null
null
setup.py
themis-project/themis-finals-checker-app-py
12e70102bcca3d6e4082d96e676e364176c0da67
[ "MIT" ]
null
null
null
setup.py
themis-project/themis-finals-checker-app-py
12e70102bcca3d6e4082d96e676e364176c0da67
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import io import os about = {} about_filename = os.path.join( os.path.dirname(os.path.realpath(__file__)), 'themis', 'finals', 'checker', 'app', '__about__.py') with io.open(about_filename, 'rb') as fp: exec(fp.read(), about) setup( ...
26.918367
87
0.581501
178
1,319
4.185393
0.460674
0.144966
0.204027
0.147651
0
0
0
0
0
0
0
0.061404
0.222138
1,319
48
88
27.479167
0.664717
0.015921
0
0.046512
0
0
0.435185
0.173611
0
0
0
0
0
1
0
false
0
0.069767
0
0.069767
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
0c3ec0f29f7bce414073cc341dd9839fbf5fca06
1,393
py
Python
guts/api/contrib/type_actions.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/api/contrib/type_actions.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/api/contrib/type_actions.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
1
2022-03-03T05:41:31.000Z
2022-03-03T05:41:31.000Z
# Copyright (c) 2015 Aptira Pty Ltd. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
29.638298
78
0.724336
174
1,393
5.695402
0.62069
0.060545
0.026236
0.032291
0
0
0
0
0
0
0
0.007124
0.193826
1,393
46
79
30.282609
0.875334
0.463747
0
0
0
0
0.049451
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.684211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0c4483174d1c4ff711dd1bd4cb802a150131d7f7
469
py
Python
posthog/migrations/0087_fix_annotation_created_at.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
posthog/migrations/0087_fix_annotation_created_at.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
posthog/migrations/0087_fix_annotation_created_at.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
# Generated by Django 3.0.7 on 2020-10-14 07:46 import django.utils.timezone from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0086_team_session_recording_opt_in"), ] operations = [ migrations.AlterField( model_name...
23.45
85
0.648188
53
469
5.603774
0.792453
0.074074
0.127946
0
0
0
0
0
0
0
0
0.053521
0.24307
469
19
86
24.684211
0.783099
0.095949
0
0
1
0
0.14455
0.080569
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
0c4fdea50a153837205a14c5c61c7d560b9d7a43
14,406
py
Python
vdisk.py
cookpan001/vdisk
1414e5c20eba3722ce99818fe48ddf0217fb25ca
[ "BSD-3-Clause" ]
1
2016-01-11T06:46:11.000Z
2016-01-11T06:46:11.000Z
vdisk.py
cookpan001/vdisk
1414e5c20eba3722ce99818fe48ddf0217fb25ca
[ "BSD-3-Clause" ]
null
null
null
vdisk.py
cookpan001/vdisk
1414e5c20eba3722ce99818fe48ddf0217fb25ca
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # author: cookpan001 import sys import logging import time import mimetypes import urllib import urllib2 """ oauth2 client """ class OAuth2(object): ACCESS_TOKEN_URL = "https://auth.sina.com.cn/oauth2/access_token" AUTHORIZE_URL = "https://auth.sina.com.cn/oauth2/authoriz...
36.470886
115
0.521102
1,557
14,406
4.663455
0.156069
0.090897
0.044484
0.057568
0.432998
0.3797
0.335904
0.310288
0.290456
0.265115
0
0.012513
0.356518
14,406
394
116
36.563452
0.770766
0.026586
0
0.478659
0
0
0.0989
0.005197
0
0
0
0
0
0
null
null
0
0.027439
null
null
0.003049
0
0
0
null
0
0
0
0
0
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
0c517d2c976cb6c4a933b0a237cbe0bcc83aaacb
31,109
py
Python
hpedockerplugin/request_context.py
renovate-bot/python-hpedockerplugin
b7fa6b3193fa6dd42574585b4c621ff6a16babc9
[ "Apache-2.0" ]
49
2016-06-14T22:25:40.000Z
2021-04-05T05:00:59.000Z
hpedockerplugin/request_context.py
imran-ansari/python-hpedockerplugin
e2726f48ac793dc894100e3772c40ce89bfe9bb8
[ "Apache-2.0" ]
550
2016-07-25T12:01:12.000Z
2021-11-15T17:52:40.000Z
hpedockerplugin/request_context.py
imran-ansari/python-hpedockerplugin
e2726f48ac793dc894100e3772c40ce89bfe9bb8
[ "Apache-2.0" ]
96
2016-06-01T22:07:03.000Z
2021-06-22T09:05:05.000Z
import abc import json import re from collections import OrderedDict from oslo_log import log as logging import hpedockerplugin.exception as exception from hpedockerplugin.hpe import share LOG = logging.getLogger(__name__) class RequestContextBuilderFactory(object): def __init__(self, all_configs): sel...
43.387727
79
0.567746
3,256
31,109
5.157248
0.115786
0.027096
0.065031
0.051453
0.477787
0.385958
0.31783
0.271677
0.23672
0.1942
0
0.003663
0.333119
31,109
716
80
43.448324
0.805746
0.488187
0
0.275542
0
0
0.181001
0.013736
0
0
0
0.001397
0
1
0.080495
false
0.077399
0.024768
0.006192
0.167183
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0c51eb0b9b67869087426ffee62488bbc0029d3f
1,230
py
Python
src/freshchat/client/configuration.py
twyla-ai/python-freshchat
5bb0ea730f82b63292688be61315b6b880896e1f
[ "MIT" ]
4
2019-10-15T11:03:28.000Z
2021-08-19T01:14:12.000Z
src/freshchat/client/configuration.py
twyla-ai/python-freshchat
5bb0ea730f82b63292688be61315b6b880896e1f
[ "MIT" ]
137
2019-10-18T04:36:21.000Z
2022-03-21T04:11:18.000Z
src/freshchat/client/configuration.py
twyla-ai/python-freshchat
5bb0ea730f82b63292688be61315b6b880896e1f
[ "MIT" ]
1
2021-08-19T01:14:14.000Z
2021-08-19T01:14:14.000Z
import os from dataclasses import dataclass, field from typing import AnyStr, Dict, Optional from urllib.parse import urljoin @dataclass class FreshChatConfiguration: """ Class represents the base configuration for Freshchat """ app_id: str token: str = field(repr=False) default_channel_id: O...
28.604651
80
0.64065
144
1,230
5.402778
0.5
0.041131
0.061697
0.088689
0.069409
0
0
0
0
0
0
0.001111
0.268293
1,230
42
81
29.285714
0.863333
0.24065
0
0
0
0
0.099299
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0c52795432861cbcf4e3ec45d893ec1acc331585
7,668
py
Python
aiida_phonopy/parsers/phonopy.py
giovannipizzi/aiida-phonopy
26e419c34415c68f815fa81ce2ac644aa387ae72
[ "MIT" ]
null
null
null
aiida_phonopy/parsers/phonopy.py
giovannipizzi/aiida-phonopy
26e419c34415c68f815fa81ce2ac644aa387ae72
[ "MIT" ]
null
null
null
aiida_phonopy/parsers/phonopy.py
giovannipizzi/aiida-phonopy
26e419c34415c68f815fa81ce2ac644aa387ae72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from aiida.orm.data.folder import FolderData from aiida.parsers.parser import Parser from aiida.common.datastructures import calc_states from aiida.parsers.exceptions import OutputParsingError from aiida.common.exceptions import UniquenessError import numpy from aiida.orm.data.array import Arra...
36.865385
185
0.594027
828
7,668
5.275362
0.292271
0.024725
0.021978
0.021978
0.125916
0.084936
0.067766
0.055403
0.055403
0.037088
0
0.002913
0.328378
7,668
207
186
37.043478
0.845243
0.13276
0
0.232558
0
0.007752
0.105877
0
0
0
0
0.004831
0
0
null
null
0.031008
0.108527
null
null
0.007752
0
0
0
null
0
0
0
0
0
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
0c52883ec5869dd4ebaf9438c8845a04d78492ff
1,128
py
Python
bagua/bagua_define.py
jphgxq/bagua
3444f79b8fe9c9d2975a8994a1a613ebd14c3d33
[ "MIT" ]
1
2021-07-12T03:33:38.000Z
2021-07-12T03:33:38.000Z
bagua/bagua_define.py
jphgxq/bagua
3444f79b8fe9c9d2975a8994a1a613ebd14c3d33
[ "MIT" ]
null
null
null
bagua/bagua_define.py
jphgxq/bagua
3444f79b8fe9c9d2975a8994a1a613ebd14c3d33
[ "MIT" ]
null
null
null
import enum from typing import List import sys if sys.version_info >= (3, 9): from typing import TypedDict # pytype: disable=not-supported-yet else: from typing_extensions import TypedDict # pytype: disable=not-supported-yet from pydantic import BaseModel class TensorDtype(str, enum.Enum): F32 = "f32" ...
22.56
80
0.656915
137
1,128
5.262774
0.481752
0.041609
0.044383
0.07767
0.119279
0.119279
0.119279
0
0
0
0
0.023474
0.244681
1,128
49
81
23.020408
0.82277
0.093085
0
0
0
0
0.024851
0
0
0
0
0
0
1
0.060606
false
0
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0c6419af7c4ea362b8097a85b3a1cb0ca9746ce0
9,196
py
Python
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
4
2019-09-16T15:50:22.000Z
2021-04-08T15:32:48.000Z
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
3
2018-05-04T09:28:24.000Z
2018-12-03T09:00:31.000Z
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
1
2020-10-12T15:14:17.000Z
2020-10-12T15:14:17.000Z
"""Test VIMS wavelength module.""" from pathlib import Path import numpy as np from numpy.testing import assert_array_almost_equal as assert_array from pyvims import QUB from pyvims.vars import ROOT_DATA from pyvims.wvlns import (BAD_IR_PIXELS, CHANNELS, FWHM, SHIFT, VIMS_IR, VIMS_VIS, WLN...
27.450746
79
0.605154
1,357
9,196
3.957259
0.162122
0.036872
0.026071
0.024581
0.551955
0.458845
0.372626
0.285847
0.22067
0.206145
0
0.124024
0.247716
9,196
334
80
27.532934
0.652212
0.107329
0
0.29703
0
0
0.006163
0
0
0
0
0
0.584158
1
0.049505
false
0
0.034653
0
0.084158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
a7433e8c895ee751d0a668a187a9eb4c45927efe
6,223
py
Python
mooc_access_number.py
mengshouer/mooc_access_number
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
6
2020-05-12T14:36:17.000Z
2021-12-03T01:56:58.000Z
mooc_access_number.py
mengshouer/mooc_tools
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
2
2020-05-11T06:21:13.000Z
2020-05-23T12:34:18.000Z
mooc_access_number.py
mengshouer/mooc_tools
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
1
2020-05-11T04:19:15.000Z
2020-05-11T04:19:15.000Z
import requests,time,json,re,base64 requests.packages.urllib3.disable_warnings() from io import BytesIO from PIL import Image,ImageDraw,ImageChops from lxml import etree from urllib.parse import urlparse, parse_qs username = "" #登录账号 password = "" #登录密码 s = requests.Session() s.headers.update({'User-Ag...
32.752632
151
0.527398
686
6,223
4.733236
0.346939
0.033877
0.008623
0.022174
0.204496
0.152756
0.115799
0.094241
0.094241
0.072067
0
0.025941
0.31239
6,223
189
152
32.925926
0.732882
0.030853
0
0.270833
0
0.010417
0.21519
0.036676
0
0
0
0
0
1
0.03125
false
0.083333
0.052083
0
0.09375
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
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
a747752e784483f13e0672fa7ef44261d743dd9f
403
py
Python
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-27 20:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('babybuddy', '0016_auto_20191127_1424'), ] operations = [ migrations.AddField( model_name='promocode', name='max_usag...
21.210526
49
0.615385
44
403
5.477273
0.840909
0
0
0
0
0
0
0
0
0
0
0.109589
0.275434
403
18
50
22.388889
0.715753
0.111663
0
0
1
0
0.174157
0.123596
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a74cb2eb35421327d8faf002d2a0cd393a5579ab
1,151
py
Python
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def splitListToParts(self, root, k): res = [] size = 0 traverse = root while traverse: si...
20.553571
47
0.536056
154
1,151
3.967532
0.415584
0.03437
0.032733
0
0
0
0
0
0
0
0
0.059289
0.340573
1,151
56
48
20.553571
0.745718
0.107732
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
a74d8736deea9179712853219ede84e9608d42dd
1,276
py
Python
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
212
2020-06-11T01:03:36.000Z
2022-03-17T17:29:21.000Z
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
25
2020-06-15T13:35:13.000Z
2022-03-10T05:44:05.000Z
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
24
2020-06-11T01:17:24.000Z
2022-03-30T13:34:45.000Z
import torch import torch.nn as nn import torch.nn.functional as F def conv3x3x3(in_planes, out_planes, stride): # 3x3x3 convolution with padding return nn.Conv3d( in_planes, out_planes, kernel_size=3, stride=stride, padding=1) def upconv3x3x3(in_planes, out_planes, stri...
27.73913
103
0.670063
182
1,276
4.450549
0.208791
0.081481
0.077778
0.081481
0.609877
0.528395
0.504938
0.397531
0.098765
0.098765
0
0.043699
0.22884
1,276
45
104
28.355556
0.779472
0.023511
0
0.371429
0
0
0
0
0
0
0
0
0
1
0.171429
false
0
0.085714
0.171429
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
a74fd79fe36c35a1329c69bf98a54c22cc8f9a55
12,349
py
Python
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
""" @created_at 2015-01-18 @author Exequiel Fuentes Lettura <efulet@gmail.com> """ from pybrain.datasets import ClassificationDataSet from pybrain.tools.shortcuts import buildNetwork from pybrain.structure.modules import SoftmaxLayer from pybrain.supervised.trainers import BackpropTrainer from pybrain.utilities impor...
38.711599
128
0.581667
1,356
12,349
5.115044
0.261062
0.018743
0.02451
0.05075
0.251298
0.149942
0.141292
0.114619
0.09357
0.09357
0
0.008134
0.332982
12,349
318
129
38.833333
0.83392
0.204956
0
0.236364
0
0
0.048359
0
0
0
0
0
0
0
null
null
0
0.072727
null
null
0.042424
0
0
0
null
0
0
0
0
0
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
a75006d06757a5f27ac00ff68ada7211ab1bbdc4
342
py
Python
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
from sys import argv from subprocess import call try : link = argv[ 1 ] except IndexError: link = raw_input( " - which url interests you? " ) try: ydl_answ = call( "youtube-dl -F "+ link, shell = True ) if ydl_answ is not 0 : print "-- failed "+ link + " code "+ str(ydl_answ) except OSError as ose : print "Ex...
21.375
56
0.663743
52
342
4.288462
0.692308
0.09417
0
0
0
0
0
0
0
0
0
0.007491
0.219298
342
15
57
22.8
0.827715
0
0
0.166667
0
0
0.219298
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
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
1
0
0
0
0
0
0
0
0
1
a75582560560cf86bc8bb8744feee3c442ea60e2
1,514
py
Python
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
1
2019-03-05T06:00:38.000Z
2019-03-05T06:00:38.000Z
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
2
2019-03-02T05:12:59.000Z
2019-09-26T17:03:56.000Z
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
null
null
null
import os import cv2 from Segmentation import CombinedHist, get_histograms, HistQueue import matplotlib.pyplot as plt import numpy as np listofFiles = os.listdir('generated_frames') # change the size of queue accordingly queue_of_hists = HistQueue.HistQueue(25) x = [] y_r = [] y_g = [] y_b = [] def compare(current_h...
29.115385
114
0.718626
236
1,514
4.389831
0.385593
0.042471
0.034749
0.078185
0.153475
0.063707
0
0
0
0
0
0.019142
0.137384
1,514
51
115
29.686275
0.774119
0.035667
0
0
1
0
0.046671
0.0151
0
0
0
0
0
1
0.025641
false
0
0.128205
0
0.153846
0.076923
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
a75778c132db31042c63da3f963565d091dded6a
1,231
py
Python
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
""" Helper functions to visualize a graph in a notebook or save the plot to file. Import as: import dataflow.core.visualization as dtfcorvisu """ import IPython import networkx as networ import pygraphviz import dataflow.core.dag as dtfcordag import helpers.hdbg as hdbg import helpers.hio as hio def draw(dag: dtf...
25.122449
77
0.707555
174
1,231
4.867816
0.298851
0.056671
0.070838
0.070838
0.095632
0.068477
0
0
0
0
0
0
0.192526
1,231
48
78
25.645833
0.852113
0.25589
0
0.095238
0
0
0.020906
0
0
0
0
0
0.095238
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a75cf13072fe0194f0d08765f3c331975a5d8df7
424
py
Python
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
null
null
null
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
5
2021-04-08T18:54:04.000Z
2021-06-10T18:37:26.000Z
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-03-01 00:58 from django.db import migrations, models import user.models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='photo', ...
21.2
88
0.606132
48
424
5.291667
0.708333
0.07874
0
0
0
0
0
0
0
0
0
0.06129
0.268868
424
19
89
22.315789
0.758065
0.106132
0
0
1
0
0.079576
0
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
a7624496ee4975eb04a3c005275217a54323fb5d
27,209
py
Python
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
#Minesweeper! from tkinter import * import random, time, math, threading, os.path, os #Tkinter Class class MinesweeperMain: #Initialising class def __init__(self, xLength, yLength, percentOfBombs, caller=None, winChoice=True): try: #kills the 'play again' host (if it exists) caller.root.destr...
40.429421
183
0.592745
3,143
27,209
5.123131
0.161311
0.024593
0.033039
0.022854
0.366476
0.315861
0.2686
0.242889
0.234443
0.197429
0
0.014127
0.313168
27,209
672
184
40.489583
0.847496
0.177184
0
0.4334
0
0.001988
0.04482
0
0
0
0
0
0
1
0.029821
false
0.081511
0.005964
0
0.05169
0.007952
0
0
0
null
0
0
0
0
0
0
0
0
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
a7625f42a7dd6cbf1419217f4da8ae9f6f00c5f6
5,431
py
Python
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
7
2021-05-31T15:30:22.000Z
2022-02-05T14:12:31.000Z
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
17
2021-06-09T01:04:27.000Z
2022-03-18T14:48:12.000Z
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
5
2021-06-07T13:52:33.000Z
2021-08-04T00:09:39.000Z
# -*- coding: utf-8 -*- """ Scrape Website Data | Cannlytics Copyright © 2021 Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 1/10/2021 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANT...
30.511236
110
0.598048
699
5,431
4.606581
0.298999
0.054658
0.052174
0.086957
0.312422
0.305901
0.148447
0.104348
0.040994
0.040994
0
0.021415
0.234763
5,431
177
111
30.683616
0.753128
0.224268
0
0.252174
0
0.034783
0.21491
0.062409
0
0
0
0.028249
0
1
0.095652
false
0.043478
0.026087
0
0.26087
0.017391
0
0
0
null
0
0
0
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
a7646b2e354d22868d6a6f4cc986b8c2069e186b
709
py
Python
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
import fastapi from starlette.requests import Request from web.viewmodels.account.AccountViewModel import AccountViewModel from web.viewmodels.account.LoginViewModel import LoginViewModel from web.viewmodels.account.RegisterViewModel import RegisterViewModel router = fastapi.APIRouter() @router.get('/account') def i...
22.870968
70
0.760226
82
709
6.536585
0.292683
0.067164
0.119403
0.134328
0.20709
0.20709
0.20709
0.20709
0
0
0
0
0.126939
709
30
71
23.633333
0.865913
0
0
0.142857
0
0
0.076164
0
0
0
0
0
0
1
0.190476
false
0
0.238095
0.047619
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a7659e9cd38acecd1d387852d0d503d7207e98a9
29,031
py
Python
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # # UVEServer # # Operational State Server for UVEs # import gevent import json import copy import xmltodict import redis import datetime import sys from opserver_util import OpServerUtils import re from gevent.coros import BoundedSemaphore from pys...
41.711207
91
0.450484
2,852
29,031
4.445302
0.130084
0.027134
0.026029
0.016564
0.389494
0.293816
0.26053
0.226771
0.192538
0.183862
0
0.008511
0.441494
29,031
695
92
41.771223
0.773406
0.043987
0
0.355556
0
0
0.048022
0
0
0
0
0
0
0
null
null
0.010256
0.022222
null
null
0.006838
0
0
0
null
0
0
0
0
0
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
a765ee4d5ce159cb94158867be1e207d0bdc988c
1,064
py
Python
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
7
2017-06-13T15:55:23.000Z
2019-05-23T18:52:00.000Z
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
2
2019-02-16T12:56:33.000Z
2020-07-02T19:32:58.000Z
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
8
2017-05-17T22:46:07.000Z
2022-03-11T14:27:56.000Z
import os import hashlib import getpass import hmac import botocore.session import botocore.exceptions def _hash(value): return hmac.new(os.environ['TEST_KEY'], value, digestmod=hashlib.sha256).hexdigest() def main(): access_key = getpass.getpass("Access Key: ").strip() secret_acces...
30.4
72
0.656015
135
1,064
4.918519
0.422222
0.162651
0.135542
0.069277
0
0
0
0
0
0
0
0.003641
0.225564
1,064
34
73
31.294118
0.802184
0
0
0
0
0
0.193609
0
0
0
0
0
0
1
0.074074
false
0.111111
0.222222
0.037037
0.333333
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
1
0
0
0
0
0
1
a7687184494cf93d9f5d684cfc40811e7667b3e4
772
py
Python
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
3
2017-08-29T22:56:38.000Z
2017-12-12T06:20:35.000Z
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
1
2017-09-10T08:02:24.000Z
2017-09-12T01:03:25.000Z
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
null
null
null
#encoding: utf-8 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) import zmq, sys, json import seg import detoken import datautils from random import sample serverl=["tcp://127.0.0.1:"+str(port) for port in xrange(5556,5556+4)] def _translate_core(jsond): global serverl sock = zmq.Context().socket(zmq.R...
19.794872
182
0.75
109
772
5.256881
0.495413
0.062827
0.034904
0
0
0
0
0
0
0
0
0.02907
0.108808
772
38
183
20.315789
0.803779
0.01943
0
0
0
0
0.027778
0
0
0
0
0
0
1
0.185185
false
0
0.222222
0.037037
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a76b01dad5f2ae8289af31fef183a815e3bdd1f2
1,318
py
Python
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
1
2021-05-14T18:27:13.000Z
2021-05-14T18:27:13.000Z
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
null
null
null
from shutil import rmtree from tempfile import mkdtemp import pytest import param import pydrobert.param.serialization as serial param.parameterized.warnings_as_exceptions = True @pytest.fixture(params=["ruamel_yaml", "pyyaml"]) def yaml_loader(request): if request.param == "ruamel_yaml": try: ...
24.867925
56
0.677542
161
1,318
5.322981
0.298137
0.070012
0.112019
0.18203
0.371062
0.371062
0.371062
0.371062
0.261377
0.261377
0
0
0.240516
1,318
52
57
25.346154
0.856144
0.028832
0
0.205128
0
0
0.043887
0
0
0
0
0
0
1
0.102564
false
0
0.230769
0.025641
0.358974
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a76e729d78669a3e706e9fdd618185c47c67bee8
7,958
py
Python
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Citations from flask import (Blueprint, request, render_template, flash, url_for, redirect, session) from flask.ext.login import login_required, current_user import logging, sys, re from sqlalchemy.exc import IntegrityError, InvalidRequestError from DictionaryOfNewZealandE...
35.846847
86
0.518975
824
7,958
4.868932
0.173544
0.035892
0.034895
0.050598
0.461864
0.398056
0.366152
0.366152
0.366152
0.342223
0
0.007876
0.361774
7,958
221
87
36.00905
0.782044
0.01244
0
0.450549
0
0
0.094184
0.022002
0
0
0
0
0
0
null
null
0
0.043956
null
null
0.076923
0
0
0
null
0
0
0
0
0
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
a77229f1a130b744660ffd1757e86e6d6dd38d54
1,074
py
Python
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
1
2021-05-15T07:56:51.000Z
2021-05-15T07:56:51.000Z
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
class Solution: def chooseandswap (self, A): opt = 'a' fir = A[0] arr = [0]*26 for s in A : arr[ord(s)-97] += 1 i = 0 while i < len(A) : if opt > 'z' : break while opt < fir : if o...
23.347826
46
0.286778
109
1,074
2.743119
0.33945
0.0301
0.050167
0.046823
0.086957
0
0
0
0
0
0
0.02657
0.614525
1,074
45
47
23.866667
0.695652
0
0
0.111111
0
0
0.009311
0
0
0
0
0
0
1
0.027778
false
0
0
0
0.111111
0.027778
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
a774dc8ec0c70281d59955e540db50979da5c0cf
4,744
py
Python
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.base.buil...
41.982301
103
0.706788
580
4,744
5.631034
0.377586
0.038579
0.033068
0.007348
0.032149
0.014085
0.014085
0
0
0
0
0.006869
0.20215
4,744
112
104
42.357143
0.856011
0.314081
0
0.044776
0
0
0.171816
0
0
0
0
0.026786
0
1
0.119403
false
0
0.104478
0.014925
0.373134
0.014925
0
0
0
null
0
0
0
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
a775681f9ac02e296e8b3818c15064c985162dc4
1,825
py
Python
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
1
2021-06-26T15:32:35.000Z
2021-06-26T15:32:35.000Z
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
null
null
null
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
null
null
null
class AccountManager(object): def __init__(self, balance = 0): self.balance = balance def getBalance(self): return self.balance def withdraw(self, value): if self.balance >= value: self.balance = self.balance - value print('Successful Withdrawal.') ...
26.449275
65
0.629041
185
1,825
6.054054
0.205405
0.127679
0.053571
0.078571
0.541964
0.525
0.491964
0.424107
0.340179
0.340179
0
0.020453
0.249863
1,825
69
66
26.449275
0.797663
0
0
0.470588
0
0
0.071742
0
0
0
0
0
0
1
0.313725
false
0
0
0.058824
0.431373
0.117647
0
0
0
null
0
0
0
0
0
0
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
a777a11d9cdd73ba24751d88b5b9e8b62e919781
2,509
py
Python
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
1
2017-10-25T01:42:14.000Z
2017-10-25T01:42:14.000Z
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
null
null
null
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
null
null
null
import unittest from cosymlib import file_io from numpy import testing from cosymlib.molecule.geometry import Geometry import os data_dir = os.path.join(os.path.dirname(__file__), 'data') class TestSymgroupFchk(unittest.TestCase): def setUp(self): self._structure = file_io.read_generic_structure_file(d...
44.017544
96
0.595058
273
2,509
5.278388
0.304029
0.06662
0.062457
0.095767
0.491325
0.432339
0.353227
0.269951
0.100625
0.100625
0
0.20056
0.288561
2,509
56
97
44.803571
0.606723
0.094061
0
0.105263
0
0
0.017211
0
0
0
0
0
0.131579
1
0.131579
false
0
0.131579
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
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
a7780199003eb4084f3a08db621a30c4ac94b9d2
2,894
py
Python
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
1
2022-03-26T22:50:26.000Z
2022-03-26T22:50:26.000Z
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
null
null
null
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding:utf-8 -*- import rospy import numpy as np import tf import math import cv2 import time from geometry_msgs.msg import Twist, Vector3, Pose from nav_msgs.msg import Odometry from sensor_msgs.msg import Image, CompressedImage from cv_bridge import CvBridge, CvBridgeError import smach...
33.651163
129
0.664824
445
2,894
4.195506
0.377528
0.097483
0.045528
0.028923
0.193894
0.193894
0.172469
0.094269
0.076058
0.076058
0
0.06418
0.203179
2,894
86
130
33.651163
0.745447
0.182446
0
0
0
0
0.008109
0
0
0
0
0.011628
0
1
0.04
false
0
0.24
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a78199b06e3d85a0cae2dc6b22fe2403a2e45cd5
405
py
Python
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
# https://open.kattis.com/problems/luhnchecksum for _ in range(int(input())): count = 0 for i, d in enumerate(reversed(input())): if i % 2 == 0: count += int(d) continue x = 2 * int(d) if x < 10: count += x else: x = str(x) ...
25.3125
48
0.449383
56
405
3.232143
0.5
0.088398
0
0
0
0
0
0
0
0
0
0.044715
0.392593
405
15
49
27
0.691057
0.111111
0
0
0
0
0.022346
0
0
0
0
0
0
1
0
false
0.076923
0
0
0
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
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
a7871a31d1f892b28ff5af9f08dffdc9caf09213
262
py
Python
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
2
2018-12-05T01:03:10.000Z
2019-03-16T04:27:03.000Z
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
null
null
null
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
1
2018-12-04T14:18:08.000Z
2018-12-04T14:18:08.000Z
from django.urls import include, path from . import views from django.views.generic.base import RedirectView # アプリケーションの名前空間 # https://docs.djangoproject.com/ja/2.0/intro/tutorial03/ app_name = 'main' urlpatterns = [ path('', views.index, name='index'), ]
21.833333
57
0.736641
35
262
5.485714
0.714286
0.104167
0
0
0
0
0
0
0
0
0
0.017467
0.125954
262
11
58
23.818182
0.820961
0.263359
0
0
0
0
0.047368
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
a7882585c7ab1245006e29c8a68efd228a0cc9dc
1,114
py
Python
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
4
2017-07-04T15:18:59.000Z
2017-07-08T10:48:37.000Z
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
16
2017-07-04T15:36:41.000Z
2017-10-18T07:47:45.000Z
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
null
null
null
"""server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
37.133333
79
0.701975
176
1,114
4.369318
0.363636
0.052016
0.078023
0.031209
0.261378
0.222367
0.097529
0.097529
0
0
0
0.009585
0.157092
1,114
29
80
38.413793
0.809372
0.567325
0
0
0
0
0.193684
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
a78b53e7326a1d9b30856a88ddc123ec056f3a2a
18,573
py
Python
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os.path from datetime import date, datetime from sqlite3 import dbapi2 as sqlite from bs4 import BeautifulSoup import simplejson as json import xbmcvfs import xbmcgui import common import connection import database_common as db_common def create(): c = _datab...
33.769091
127
0.586658
2,252
18,573
4.62833
0.112789
0.05603
0.034539
0.019956
0.527679
0.45438
0.415523
0.367936
0.293677
0.266142
0
0.005395
0.301405
18,573
549
128
33.830601
0.797919
0.015991
0
0.406667
0
0.002222
0.400416
0.004763
0
0
0
0.001821
0
0
null
null
0.002222
0.022222
null
null
0.004444
0
0
0
null
0
0
0
0
0
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
a78ce58146e32ab5bc583a0b5ea144d7df99f985
10,152
py
Python
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
1
2021-12-07T08:02:30.000Z
2021-12-07T08:02:30.000Z
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import distance from matplotlib import style from clustering_algorithms.affinity_propagation import AffinityPropagation from clustering_algorithms.custom_k_means import KMeans from clustering_algorithms.custom_mean_shift import MeanShift from clustering_algorithms.custom_mean_shift_strin...
42.476987
123
0.775611
1,363
10,152
5.294204
0.10785
0.070676
0.039911
0.063193
0.719512
0.694568
0.65133
0.601441
0.570122
0.52439
0
0.009061
0.130319
10,152
239
124
42.476987
0.808246
0.149823
0
0.3
0
0
0.082384
0.012232
0
0
0
0
0
1
0.161538
false
0
0.092308
0.007692
0.284615
0.446154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
a799e70dc24ceb42c8e876b81ace1c8f5d0f6ceb
727
py
Python
demo_odoo_tutorial_wizard/models/models.py
digitalsatori/odoo-demo-addons-tutorial
8eb56156ac55f317f90bca089886c392556759c2
[ "MIT" ]
57
2020-06-22T05:28:11.000Z
2022-03-25T08:15:08.000Z
demo_odoo_tutorial_wizard/models/models.py
digitalsatori/odoo-demo-addons-tutorial
8eb56156ac55f317f90bca089886c392556759c2
[ "MIT" ]
2
2020-11-20T07:11:27.000Z
2022-03-30T00:20:29.000Z
demo_odoo_tutorial_wizard/models/models.py
digitalsatori/odoo-demo-addons-tutorial
8eb56156ac55f317f90bca089886c392556759c2
[ "MIT" ]
29
2020-07-04T15:24:01.000Z
2022-03-28T01:29:03.000Z
from odoo import models, fields, api from odoo.exceptions import ValidationError class DemoOdooWizardTutorial(models.Model): _name = 'demo.odoo.wizard.tutorial' _description = 'Demo Odoo Wizard Tutorial' name = fields.Char('Description', required=True) partner_id = fields.Many2one('res.partner', strin...
34.619048
72
0.696011
87
727
5.666667
0.482759
0.089249
0.056795
0.089249
0
0
0
0
0
0
0
0.001712
0.196699
727
21
72
34.619048
0.842466
0.060523
0
0.125
0
0
0.165689
0.036657
0
0
0
0
0
1
0.125
false
0
0.125
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a79daf8941b0f06f1e88f279de06585e5430d9d8
659
py
Python
eaa_donations/donations/models/partner_charity.py
andrewbird2/eaa_donations
40a2cb2431130b330130f101c89bd3f8c503d2e2
[ "MIT" ]
null
null
null
eaa_donations/donations/models/partner_charity.py
andrewbird2/eaa_donations
40a2cb2431130b330130f101c89bd3f8c503d2e2
[ "MIT" ]
13
2020-06-05T19:27:58.000Z
2022-02-26T13:40:54.000Z
eaa_donations/donations/models/partner_charity.py
andrewbird2/eaa_donations
40a2cb2431130b330130f101c89bd3f8c503d2e2
[ "MIT" ]
null
null
null
from django.db import models class PartnerCharity(models.Model): slug_id = models.CharField(max_length=30, unique=True) name = models.TextField(unique=True, verbose_name='Name (human readable)') email = models.EmailField(help_text='Used to cc the charity on receipts') xero_account_name = models.TextFi...
36.611111
101
0.732929
87
659
5.402299
0.643678
0.042553
0.080851
0
0
0
0
0
0
0
0
0.003656
0.169954
659
17
102
38.764706
0.855576
0
0
0
0
0
0.180577
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.076923
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a7a3c07297bdc5a9d9dc9e8e2723b1d3e587876e
915
py
Python
sghymnal/users/models.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/users/models.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/users/models.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db.models import BooleanField, CharField from django.urls import reverse from django.utils.translation import ugettext_lazy as _ class User(AbstractUser): # First Name and Last Name do not cover name patterns # around the globe. name = CharF...
39.782609
74
0.748634
110
915
6.109091
0.509091
0.169643
0.169643
0
0
0
0
0
0
0
0
0.003901
0.159563
915
22
75
41.590909
0.869961
0.07541
0
0
0
0
0.149466
0
0
0
0
0
0
1
0.0625
false
0
0.25
0.0625
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a7a3c324c55d54b727b474911571c79dbd56bbdd
3,285
py
Python
GNetLMM/pycore/mtSet/linalg/linalg_matrix.py
PMBio/GNetLMM
103d6433ff6d4a13b5787c116032fda268dc4302
[ "Apache-2.0" ]
4
2016-02-25T18:40:36.000Z
2019-05-06T06:15:47.000Z
GNetLMM/pycore/mtSet/linalg/linalg_matrix.py
PMBio/GNetLMM
103d6433ff6d4a13b5787c116032fda268dc4302
[ "Apache-2.0" ]
6
2016-03-29T02:55:17.000Z
2017-11-27T19:30:04.000Z
GNetLMM/pycore/mtSet/linalg/linalg_matrix.py
PMBio/GNetLMM
103d6433ff6d4a13b5787c116032fda268dc4302
[ "Apache-2.0" ]
2
2017-05-09T05:23:50.000Z
2019-07-27T13:19:22.000Z
"""Matrix linear algebra routines needed for GP models""" import scipy as SP import scipy.linalg as linalg import logging def solve_chol(A,B): """ Solve cholesky decomposition:: return A\(A'\B) """ # X = linalg.solve(A,linalg.solve(A.transpose(),B)) # much faster version X = ...
26.92623
150
0.565297
426
3,285
4.349765
0.328639
0.056665
0.015111
0.027523
0.384781
0.351862
0.305451
0.25796
0.25796
0.25796
0
0.019644
0.333638
3,285
121
151
27.14876
0.826862
0.104718
0
0.511111
0
0
0.118846
0
0
0
0
0
0
0
null
null
0
0.066667
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
a7ad127304af82024c33b51ab7d7e16625068796
2,315
py
Python
src/midiutil/midiosc.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
7
2015-01-05T06:32:49.000Z
2020-10-30T19:29:07.000Z
src/midiutil/midiosc.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
null
null
null
src/midiutil/midiosc.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
4
2016-03-09T22:29:26.000Z
2021-04-07T13:52:28.000Z
""" This module provides an interface to MIDI things for OSC """ import sys import time import traceback import thread import threading import copy import string import re from threading import Thread,Lock from math import sqrt from ctypes import * from time import sleep from traceback import format_exc from array im...
21.238532
59
0.72959
333
2,315
4.882883
0.294294
0.077491
0.04797
0.03321
0.291513
0.269373
0.198032
0.077491
0
0
0
0.013092
0.142117
2,315
108
60
21.435185
0.805639
0
0
0.246575
0
0
0.079365
0.021315
0
0
0
0
0
0
null
null
0.027397
0.219178
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
a7ae40689370a8b6c40572fb34aab6f86b6f10fd
5,106
py
Python
nonebot/adapters/qqguild/message.py
nonebot/adapter-qqguild
a3e4d353bfdaafb296743bc0f15ed5d643c64d85
[ "MIT" ]
39
2021-12-23T14:26:41.000Z
2022-03-22T14:11:19.000Z
nonebot/adapters/qqguild/message.py
nonebot/adapter-qqguild
a3e4d353bfdaafb296743bc0f15ed5d643c64d85
[ "MIT" ]
4
2022-01-22T17:59:50.000Z
2022-03-22T12:40:10.000Z
nonebot/adapters/qqguild/message.py
nonebot/adapter-qqguild
a3e4d353bfdaafb296743bc0f15ed5d643c64d85
[ "MIT" ]
2
2022-01-16T02:38:51.000Z
2022-03-01T15:48:36.000Z
import re from typing import Any, Type, Tuple, Union, Iterable from nonebot.typing import overrides from nonebot.adapters import Message as BaseMessage from nonebot.adapters import MessageSegment as BaseMessageSegment from .utils import escape, unescape from .api import Message as GuildMessage from .api import Messa...
29.859649
87
0.607521
534
5,106
5.657303
0.161049
0.06852
0.038729
0.105925
0.324396
0.266799
0.266799
0.24429
0.207216
0.097319
0
0.000263
0.255386
5,106
170
88
30.035294
0.794319
0
0
0.30597
0
0
0.109479
0.039757
0
0
0
0
0
1
0.171642
false
0
0.059701
0.156716
0.470149
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
a7ae54fa73c46e74acbf26edef75a93f9daec057
2,689
py
Python
creme/metrics/__init__.py
Raul9595/creme
39cec7ac27ccd40ff0a7bdd6bceaf7ce25c1a8da
[ "BSD-3-Clause" ]
1
2020-07-27T03:06:46.000Z
2020-07-27T03:06:46.000Z
creme/metrics/__init__.py
2torus/creme
bcc5e2a0155663a1f0ba779c68f23456695bcb54
[ "BSD-3-Clause" ]
1
2022-02-10T06:24:42.000Z
2022-02-10T06:24:42.000Z
creme/metrics/__init__.py
igorol/creme
60977c4accfdca08cfd76a162095ff738ef87281
[ "BSD-3-Clause" ]
1
2021-04-16T08:27:14.000Z
2021-04-16T08:27:14.000Z
""" A set of metrics used in machine learning that can be computed in a streaming fashion, without any loss in precision. """ from .accuracy import Accuracy from .accuracy import RollingAccuracy from .confusion import ConfusionMatrix from .confusion import RollingConfusionMatrix from .cross_entropy import CrossEntropy ...
25.130841
98
0.748605
272
2,689
7.367647
0.279412
0.062874
0.10479
0.021956
0
0
0
0
0
0
0
0.005408
0.174786
2,689
106
99
25.367925
0.897702
0.043511
0
0
0
0
0.217239
0.033151
0
0
0
0
0
1
0
false
0
0.49
0
0.49
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
a7aefa18f5080501a0e0759b55fb0c060403255f
628
py
Python
cd/checks/is_player_connected.py
Axelware/CD-bot
8f923c09c3c8cfcff48813c6dd11ac50c410af72
[ "MIT" ]
2
2021-12-10T00:36:59.000Z
2021-12-11T09:11:46.000Z
cd/checks/is_player_connected.py
Axelware/CD-bot
8f923c09c3c8cfcff48813c6dd11ac50c410af72
[ "MIT" ]
2
2021-12-10T01:53:10.000Z
2021-12-10T09:06:01.000Z
cd/checks/is_player_connected.py
Axelware/CD-bot
8f923c09c3c8cfcff48813c6dd11ac50c410af72
[ "MIT" ]
1
2021-12-10T00:37:07.000Z
2021-12-10T00:37:07.000Z
# Future from __future__ import annotations # Standard Library from collections.abc import Callable from typing import Literal, TypeVar # Packages from discord.ext import commands # Local from cd import custom, exceptions __all__ = ( "is_player_connected", ) T = TypeVar("T") def is_player_connected() -> Ca...
19.030303
95
0.719745
81
628
5.395062
0.567901
0.036613
0.077803
0.077803
0
0
0
0
0
0
0
0
0.192675
628
32
96
19.625
0.861933
0.06051
0
0
0
0
0.102564
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
a7b03e4ffb4bbb414e62639fa7c3f4af65273269
4,074
py
Python
setup.py
zkbt/henrietta
653d798b241ad5591b704967a0413a2457a4e734
[ "MIT" ]
null
null
null
setup.py
zkbt/henrietta
653d798b241ad5591b704967a0413a2457a4e734
[ "MIT" ]
12
2018-09-12T03:56:04.000Z
2019-02-15T04:12:53.000Z
setup.py
zkbt/henrietta
653d798b241ad5591b704967a0413a2457a4e734
[ "MIT" ]
null
null
null
''' This setup.py file sets up our package to be installable on any computer, so that folks can `import henrietta` from within any directory. Thanks to this file, you can... ...tell python to look for `henrietta` in the current directory (which you can continue to edit), by typing *one* of the following commands: `p...
37.376147
109
0.650957
531
4,074
4.956686
0.482109
0.018617
0.024696
0.009878
0.032675
0.032675
0.032675
0.032675
0.032675
0
0
0.004916
0.251105
4,074
108
110
37.722222
0.857752
0.554737
0
0
0
0
0.361905
0.042577
0
0
0
0
0
1
0
true
0
0.043478
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
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
a7b37c8008c4aac92350512db834814661a375e1
41,807
py
Python
zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
''' All ldap operations for test. @author: quarkonics ''' from apibinding.api import ApiError import apibinding.inventory as inventory import apibinding.api_actions as api_actions import zstackwoodpecker.test_util as test_util import account_operations import config_operations import os import inspec...
50.73665
288
0.75107
5,389
41,807
5.506216
0.055855
0.070434
0.042463
0.064705
0.787349
0.740471
0.683349
0.619385
0.526843
0.452937
0
0.000199
0.158777
41,807
824
289
50.73665
0.843527
0.003349
0
0.443672
0
0.005563
0.137777
0
0
0
0
0
0
1
0.132128
false
0.013908
0.011127
0
0.275382
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a7b426f2174df82614170a394fb020de8df61abf
293
py
Python
datasets_example/populate_elastic.py
aleksbobic/csx
151ac6644694ac585bf5d070bae7146e94c30aec
[ "MIT" ]
null
null
null
datasets_example/populate_elastic.py
aleksbobic/csx
151ac6644694ac585bf5d070bae7146e94c30aec
[ "MIT" ]
null
null
null
datasets_example/populate_elastic.py
aleksbobic/csx
151ac6644694ac585bf5d070bae7146e94c30aec
[ "MIT" ]
null
null
null
import requests import sys requests.put(f"http://localhost:9200/{sys.argv[1]}?pretty") headers = {"Content-Type": "application/x-ndjson"} data = open(sys.argv[2], "rb").read() requests.post( f"http://localhost:9200/{sys.argv[1]}/_bulk?pretty", headers=headers, data=data )
22.538462
84
0.665529
42
293
4.619048
0.571429
0.108247
0.14433
0.185567
0.268041
0.268041
0.268041
0
0
0
0
0.043137
0.129693
293
12
85
24.416667
0.717647
0
0
0
0
0
0.441281
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a7c3c5875178bbdc7bd8d2fd3aaff1ff122b86d9
682
py
Python
retired/example_process_discharge_simulation.py
changliao1025/pyswat
cdcda1375be8c0f71459a78438b1e9f8a22a77bc
[ "MIT" ]
2
2021-12-11T01:39:00.000Z
2022-02-15T17:57:45.000Z
retired/example_process_discharge_simulation.py
changliao1025/pyswat
cdcda1375be8c0f71459a78438b1e9f8a22a77bc
[ "MIT" ]
5
2022-03-10T16:38:30.000Z
2022-03-28T17:31:20.000Z
retired/example_process_discharge_simulation.py
changliao1025/pyswat
cdcda1375be8c0f71459a78438b1e9f8a22a77bc
[ "MIT" ]
null
null
null
from swaty.simulation.swat_main import swat_main from swaty.swaty_read_model_configuration_file import swat_read_model_configuration_file from swaty.classes.pycase import swaty from swaty.postprocess.extract.swat_extract_stream_discharge import swat_extract_stream_discharge sFilename_configuration_in = '/global/homes/...
52.461538
110
0.879765
97
682
5.752577
0.360825
0.064516
0.11828
0.139785
0.107527
0
0
0
0
0
0
0.006221
0.057185
682
13
111
52.461538
0.861586
0.121701
0
0
0
0.111111
0.180602
0.180602
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a7c4df68721fac6742030901c0c135b22a7c5979
861
py
Python
ThinkPython/chap9/ex9.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap9/ex9.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap9/ex9.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
def is_reverse(i, j): """ Convert 2-digit numbers to strings and check if they are palindromic. If one of the numbers has less then 2 digits, fill with zeros. """ str_i = str(i) str_j = str(j) if len(str_i) < 2: str_i = str_i.zfill(2) if len(str_j) < 2: str_j = str_j.zfil...
26.90625
123
0.551684
143
861
3.13986
0.405594
0.062361
0.046771
0.035635
0
0
0
0
0
0
0
0.039146
0.347271
861
31
124
27.774194
0.759786
0
0
0
0
0
0.142857
0
0
0
0
0
0
0
null
null
0
0
null
null
0.086957
0
0
0
null
0
0
0
0
0
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
a7cd3abce5d928c3da35821e7b78b76d44e1ec29
2,465
py
Python
trial_inputs_pb2.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
trial_inputs_pb2.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
trial_inputs_pb2.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: trial_inputs.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
32.012987
196
0.76146
307
2,465
5.833876
0.374593
0.031267
0.080402
0.075377
0.261307
0.240089
0.204355
0.127303
0.127303
0.127303
0
0.027176
0.11927
2,465
76
197
32.434211
0.797789
0.096146
0
0.280702
1
0.017544
0.20162
0.154365
0
0
0
0
0
1
0
false
0
0.087719
0
0.087719
0
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
a7d11260063260bb345e5b5925deed0ee559e5c2
725
py
Python
ffmpeg-3.2.5/tools/zmqshell.py
huyu0415/FFmpeg
7a3f75791cb3255805bf17126d4074a328f46c8c
[ "Apache-2.0" ]
3,645
2016-08-25T09:31:17.000Z
2022-03-25T06:28:34.000Z
ffmpeg-3.2.5/tools/zmqshell.py
huyu0415/FFmpeg
7a3f75791cb3255805bf17126d4074a328f46c8c
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
ffmpeg-3.2.5/tools/zmqshell.py
huyu0415/FFmpeg
7a3f75791cb3255805bf17126d4074a328f46c8c
[ "Apache-2.0" ]
764
2016-08-26T09:19:00.000Z
2022-03-22T12:07:16.000Z
#!/usr/bin/env python2 import sys, zmq, cmd class LavfiCmd(cmd.Cmd): prompt = 'lavfi> ' def __init__(self, bind_address): context = zmq.Context() self.requester = context.socket(zmq.REQ) self.requester.connect(bind_address) cmd.Cmd.__init__(self) def onecmd(self, cmd): ...
26.851852
79
0.627586
91
725
4.868132
0.571429
0.099323
0.036117
0
0
0
0
0
0
0
0
0.014545
0.241379
725
26
80
27.884615
0.790909
0.028966
0
0
0
0
0.14936
0
0
0
0
0
0
0
null
null
0.05
0.05
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a7d2785f99402cef40bc5312be1781d2a6eaf683
3,843
py
Python
qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
161
2017-02-03T05:33:01.000Z
2022-03-31T02:11:21.000Z
qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
5
2017-02-03T05:51:38.000Z
2019-06-18T18:54:00.000Z
qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
76
2017-03-23T23:15:46.000Z
2022-02-10T21:58:18.000Z
#!/usr/bin/env python # encoding=gbk """ Convert mask to geojson format """ import os import os.path import re import logging import logging.config from multiprocessing import Pool import skimage.io as sk import numpy as np import scipy.io as sio import setting from spaceNet import geoTools as gT import spaceNet.ima...
40.03125
118
0.674993
542
3,843
4.424354
0.197417
0.093411
0.048791
0.063803
0.581735
0.486239
0.483319
0.447456
0.435363
0.350292
0
0.007818
0.201145
3,843
95
119
40.452632
0.77329
0.033047
0
0.25
0
0
0.063872
0
0
0
0
0
0
0
null
null
0
0.194444
null
null
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a7d285c6e1ae9ac1ca025fdba430e5dba345f5fd
412
py
Python
core/migrations/0008_touristspot_photo.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
1
2021-12-31T12:59:49.000Z
2021-12-31T12:59:49.000Z
core/migrations/0008_touristspot_photo.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
null
null
null
core/migrations/0008_touristspot_photo.py
isnardsilva/django-attractions-api
feade087d840b72b603d2a4bf538b8c362aa91bd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-19 03:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20200614_0254'), ] operations = [ migrations.AddField( model_name='touristspot', name='photo', ...
21.684211
77
0.604369
46
412
5.304348
0.826087
0
0
0
0
0
0
0
0
0
0
0.103679
0.274272
412
18
78
22.888889
0.712375
0.109223
0
0
1
0
0.128767
0.063014
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a7dbae6b6e0c89662cba5d9864585c9b7e89ef3a
444
py
Python
tools/create_transmit_grouped_command_cron.py
Vayel/GUCEM-BVC
e5645dec332756d3c9db083abf2c8f3625a10d4d
[ "WTFPL" ]
2
2016-09-23T18:02:40.000Z
2017-04-28T18:35:59.000Z
tools/create_transmit_grouped_command_cron.py
Vayel/GUCEM-BVC
e5645dec332756d3c9db083abf2c8f3625a10d4d
[ "WTFPL" ]
82
2016-09-26T14:38:31.000Z
2018-02-12T18:47:12.000Z
tools/create_transmit_grouped_command_cron.py
Vayel/GUCEM-BVC
e5645dec332756d3c9db083abf2c8f3625a10d4d
[ "WTFPL" ]
null
null
null
import os from cron_helper import create JOB_COMMENT = 'BVC transmit grouped command reminder' HERE = os.path.dirname(os.path.abspath(__file__)) def create_job(cron): job = cron.new( command=os.path.join(HERE, 'manage.sh transmit_grouped_command_reminder'), comment=JOB_COMMENT, ) job.day...
21.142857
82
0.684685
63
444
4.492063
0.539683
0.095406
0.155477
0.212014
0
0
0
0
0
0
0
0.011268
0.20045
444
20
83
22.2
0.785915
0
0
0
0
0
0.198198
0.074324
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.214286
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
38eb4d628bf96b1cec0ba5a9060d8732e87f164b
276
py
Python
runme.py
AndreWohnsland/Cocktailmaker_AW
30efdcb85d7fb58ac2980c873c611d7b9c2b37b1
[ "MIT" ]
37
2019-07-06T11:54:08.000Z
2022-01-21T12:26:16.000Z
runme.py
AndreWohnsland/Cocktailmaker_AW
30efdcb85d7fb58ac2980c873c611d7b9c2b37b1
[ "MIT" ]
5
2019-12-09T07:44:08.000Z
2022-02-01T12:00:24.000Z
runme.py
AndreWohnsland/Cocktailmaker_AW
30efdcb85d7fb58ac2980c873c611d7b9c2b37b1
[ "MIT" ]
4
2019-07-06T12:45:01.000Z
2021-12-29T17:09:44.000Z
import sys from PyQt5.QtWidgets import QApplication import src_ui.setup_mainwindow as setupui if __name__ == "__main__": app = QApplication(sys.argv) w = setupui.MainScreen() w.showFullScreen() w.setFixedSize(800, 480) sys.exit(app.exec_())
21.230769
42
0.684783
34
276
5.235294
0.735294
0
0
0
0
0
0
0
0
0
0
0.032258
0.213768
276
12
43
23
0.788018
0
0
0
0
0
0.030303
0
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
1
38eda790aa9bd3615e42c068cced417ca94aa56a
2,099
py
Python
tools/database_tool.py
noahzhy/qumaishou
f776e5c750b350ca3b741fccf3e5dfd199c1296b
[ "Apache-2.0" ]
null
null
null
tools/database_tool.py
noahzhy/qumaishou
f776e5c750b350ca3b741fccf3e5dfd199c1296b
[ "Apache-2.0" ]
null
null
null
tools/database_tool.py
noahzhy/qumaishou
f776e5c750b350ca3b741fccf3e5dfd199c1296b
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd import sys import glob # 导入同级目录下其他文件夹下的文件 sys.path.append("./") db_dir_path = 'database' def db_save(db_name, df): # index 表示是否显示行名,default=True df = remove_repetition(df) if df.to_csv(os.path.join(db_dir_path, '{}.csv'.format(db_name)), index=False, sep=','): retur...
23.852273
92
0.666508
310
2,099
4.225806
0.3
0.100763
0.030534
0.045802
0.201527
0.152672
0.070229
0.053435
0.053435
0.053435
0
0.007634
0.188661
2,099
88
93
23.852273
0.761597
0.159123
0
0.150943
0
0
0.16546
0.064067
0
0
0
0
0
1
0.169811
false
0.056604
0.075472
0.018868
0.377358
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
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
38f0f18dc070774e4c59dd082f508779d0e46e34
940
py
Python
root/tpd_near_trainstops_per_line.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
null
null
null
root/tpd_near_trainstops_per_line.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
null
null
null
root/tpd_near_trainstops_per_line.py
transitanalystisarel/TransitAnalystIsrael
341de9272b352c18333ff136a00de0b97cd82216
[ "MIT" ]
3
2019-05-08T04:36:03.000Z
2020-11-23T19:46:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # collect a set of trip_id s at all stops in a GTFS file over the selected week of the service period starting at serviceweekstartdate # filter stops near trainstations based on input txt file - stopsneartrainstop_post_edit # merge sets of trips at stops near each trainst...
40.869565
134
0.811702
134
940
5.5
0.559701
0.043419
0.024423
0.037992
0.255088
0.255088
0.255088
0.255088
0.255088
0.143826
0
0.005988
0.111702
940
23
135
40.869565
0.876647
0.37234
0
0.2
0
0
0.068847
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
38f5e5531d57aca7c42b9394241ccc224319e068
310
py
Python
tests/unit/helpers_test/test_password.py
alefeans/flask-base
e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe
[ "MIT" ]
11
2019-10-03T18:47:49.000Z
2022-02-01T10:42:02.000Z
tests/unit/helpers_test/test_password.py
alefeans/flask-base
e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe
[ "MIT" ]
null
null
null
tests/unit/helpers_test/test_password.py
alefeans/flask-base
e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe
[ "MIT" ]
8
2019-10-03T18:47:53.000Z
2021-06-07T14:47:51.000Z
import pytest from app.helpers import check_password, encrypt_password @pytest.mark.parametrize('sent', [ ('test'), ('changeme'), ('1234123'), ]) def test_if_check_password_and_encrypt_password_works_properly(sent): expected = encrypt_password(sent) assert check_password(sent, expected)
23.846154
69
0.745161
37
310
5.918919
0.567568
0.178082
0
0
0
0
0
0
0
0
0
0.026217
0.13871
310
12
70
25.833333
0.794007
0
0
0
0
0
0.074194
0
0
0
0
0
0.1
1
0.1
false
0.4
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ac01a8777ade5c22566c19425f199dbb6101a624
8,700
py
Python
testing/scipy_distutils-0.3.3_34.586/command/build_clib.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-08-26T05:10:56.000Z
2018-08-26T05:10:56.000Z
testing/scipy_distutils-0.3.3_34.586/command/build_clib.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
null
null
null
testing/scipy_distutils-0.3.3_34.586/command/build_clib.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-06-26T18:06:44.000Z
2018-06-26T18:06:44.000Z
""" Modified version of build_clib that handles fortran source files. """ import os import string import sys import re from glob import glob from types import * from distutils.command.build_clib import build_clib as old_build_clib from distutils.command.build_clib import show_compilers from scipy_distutils import log...
38.666667
83
0.545057
912
8,700
4.994518
0.218202
0.029638
0.026345
0.016465
0.262788
0.24764
0.200659
0.150604
0.12865
0.105818
0
0.002581
0.376552
8,700
224
84
38.839286
0.837205
0.036207
0
0.227273
0
0
0.077803
0
0
0
0
0
0
0
null
null
0
0.085227
null
null
0.011364
0
0
0
null
0
0
0
0
0
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
ac0406d097b2c425817270a16cec9aaa0dab57d1
425
py
Python
events/migrations/0003_invitation_detail.py
ebar0n/mishteh
dd025add9b80dff2253c1ee976fc656dff3abc03
[ "MIT" ]
null
null
null
events/migrations/0003_invitation_detail.py
ebar0n/mishteh
dd025add9b80dff2253c1ee976fc656dff3abc03
[ "MIT" ]
null
null
null
events/migrations/0003_invitation_detail.py
ebar0n/mishteh
dd025add9b80dff2253c1ee976fc656dff3abc03
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-10-13 19:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("events", "0002_auto_20191013_1712")] operations = [ migrations.AddField( model_name="invitation", name="detail", field=...
23.611111
70
0.623529
45
425
5.755556
0.777778
0.07722
0
0
0
0
0
0
0
0
0
0.095541
0.261176
425
17
71
25
0.729299
0.101176
0
0
1
0
0.134211
0.060526
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
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
ac045942a364b8e9223f019c563338e05ffde92d
1,954
py
Python
pygitscrum/print.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
2
2021-04-23T11:10:32.000Z
2021-04-23T11:10:41.000Z
pygitscrum/print.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
2
2021-11-23T09:26:50.000Z
2021-11-23T09:27:02.000Z
pygitscrum/print.py
thib1984/pygitscrum
4f5f726e5b3c95f93da33c21da51953657bd0349
[ "MIT" ]
null
null
null
""" print scripts """ from termcolor import colored from pygitscrum.args import compute_args import colorama def print_resume_list(list_to_print, message): """ print list summary """ if len(list_to_print) > 0: print("") print( my_colored( message + " : ", ...
20.14433
53
0.449335
180
1,954
4.65
0.233333
0.083632
0.150538
0.125448
0.273596
0.167264
0.167264
0.09319
0.09319
0
0
0.0018
0.431423
1,954
96
54
20.354167
0.751575
0.06653
0
0.344262
0
0
0.061993
0
0
0
0
0
0
1
0.114754
false
0
0.04918
0
0.196721
0.42623
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
ac062225c63cd5c3323bbc8f4dcab95e8e43641a
261
py
Python
test/_test_compute_m.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
test/_test_compute_m.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
test/_test_compute_m.py
yiruiliu110/eegnn
253773c301681bb00b4789c34f48c82468ad16da
[ "MIT" ]
null
null
null
import torch from estimation import compute_m i = [[0, 1, 1, 2], [2, 0, 2, 1]] v_z = [3, 4, 5, 2] v_c = [0, 1, 1, 0] z = torch.sparse_coo_tensor(i, v_z, (3, 3)) c = torch.sparse_coo_tensor(i, v_c, (3, 3)) max_K = 10 m = compute_m(z, c, max_K) print(m)
15.352941
43
0.578544
60
261
2.316667
0.383333
0.115108
0.043165
0.28777
0.316547
0.316547
0
0
0
0
0
0.108374
0.222222
261
17
44
15.352941
0.576355
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ac07adb5420f61816fe1726ed429cadf16e37902
505
py
Python
simfile/_private/serializable.py
garcia/simfile
4e15660c964d8d3c0e6d1f69431138e7eb4db288
[ "MIT" ]
22
2017-04-24T05:37:13.000Z
2022-03-08T00:41:37.000Z
simfile/_private/serializable.py
garcia/simfile
4e15660c964d8d3c0e6d1f69431138e7eb4db288
[ "MIT" ]
10
2021-05-31T01:21:56.000Z
2022-03-17T04:26:54.000Z
simfile/_private/serializable.py
garcia/simfile
4e15660c964d8d3c0e6d1f69431138e7eb4db288
[ "MIT" ]
3
2019-06-05T15:23:53.000Z
2021-09-11T02:39:36.000Z
from abc import ABCMeta, abstractmethod from io import StringIO from typing import TextIO class Serializable(metaclass=ABCMeta): @abstractmethod def serialize(self, file: TextIO) -> None: """ Write the object to provided text file object as MSD. """ pass def __str__(s...
24.047619
61
0.615842
54
505
5.685185
0.611111
0.136808
0.071661
0
0
0
0
0
0
0
0
0
0.30297
505
21
62
24.047619
0.872159
0.178218
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0.090909
0.272727
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ac0b33a69404bee3fc2c70f72e63ffeda7d74b5d
746
py
Python
generate_hamming_command.py
zoeleeee/mnist_challenge
8a98f7dde35ee1d7a1fb77e85ca931000fb71631
[ "MIT" ]
null
null
null
generate_hamming_command.py
zoeleeee/mnist_challenge
8a98f7dde35ee1d7a1fb77e85ca931000fb71631
[ "MIT" ]
null
null
null
generate_hamming_command.py
zoeleeee/mnist_challenge
8a98f7dde35ee1d7a1fb77e85ca931000fb71631
[ "MIT" ]
null
null
null
import numpy as np import os path = 'preds' files = os.listdir(path) lst = [] for f in files: if f.find('_0_HASH') == -1: continue if f.find('CW') == -1: continue if f.find('low')==-1 and f.find('high')==-1 and f.find('mix')==-1: continue if f.endswith('show.npy'): lst.a...
25.724138
82
0.567024
135
746
2.985185
0.318519
0.08933
0.124069
0.173697
0.37469
0.295285
0.248139
0.248139
0
0
0
0.044143
0.210456
746
28
83
26.642857
0.640068
0
0
0.136364
0
0
0.112903
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.045455
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ac0d30f40fdb142e0b5b6ff9a6caa98ff58e125e
1,257
py
Python
app/__init__.py
annerachael/fifth_year_project
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
[ "Apache-2.0" ]
null
null
null
app/__init__.py
annerachael/fifth_year_project
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
[ "Apache-2.0" ]
null
null
null
app/__init__.py
annerachael/fifth_year_project
3843b4e6315e9a5374f80a2aabc0bcb8423fd0d9
[ "Apache-2.0" ]
null
null
null
# app/__init__.py from flask import Flask from redis import Redis from rq_scheduler import Scheduler from flask_migrate import Migrate from flask_login import LoginManager from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy """ This file shall contain configurations for the web app """ # cr...
25.14
69
0.731106
169
1,257
5.266272
0.378698
0.060674
0.044944
0.038202
0
0
0
0
0
0
0
0
0.176611
1,257
49
70
25.653061
0.859903
0.142403
0
0
0
0
0.127849
0.052527
0
0
0
0
0
1
0.034483
false
0
0.310345
0
0.37931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ac1751b7ad47eb3e921543a2e5f6b1310543b55f
1,377
py
Python
encode_morse.py
cmanagoli/github-upload
9759b8ee905e1fd37b169231d2150de31e143191
[ "MIT" ]
null
null
null
encode_morse.py
cmanagoli/github-upload
9759b8ee905e1fd37b169231d2150de31e143191
[ "MIT" ]
4
2020-10-14T21:30:35.000Z
2020-10-14T21:43:06.000Z
encode_morse.py
cmanagoli/github-upload
9759b8ee905e1fd37b169231d2150de31e143191
[ "MIT" ]
null
null
null
# Author: Chinmai Managoli import sys as sys # Morse code dictionary char_to_dots = { 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '...
34.425
96
0.336964
121
1,377
3.719008
0.735537
0.093333
0.044444
0
0
0
0
0
0
0
0
0.009285
0.217865
1,377
39
97
35.307692
0.408542
0.041394
0
0
0
0
0.361217
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.068966
0.172414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ac1adabe581fd30a1766857374cb20cf0b69b1b2
2,362
py
Python
OnStage/player_chair.py
IanDCarroll/xox
38feac84e81e8c00a397f7f976efee15756cd3ac
[ "MIT" ]
null
null
null
OnStage/player_chair.py
IanDCarroll/xox
38feac84e81e8c00a397f7f976efee15756cd3ac
[ "MIT" ]
30
2016-11-25T05:34:34.000Z
2017-02-11T00:10:17.000Z
OnStage/player_chair.py
IanDCarroll/tik-tak-toe
38feac84e81e8c00a397f7f976efee15756cd3ac
[ "MIT" ]
1
2016-11-26T01:41:37.000Z
2016-11-26T01:41:37.000Z
import sys from Training.observer_abilities import * from Training.cortex_3x3_caddy import * class Player(Observer): def __init__(self, marker_code): self.ui = None self.marker_code = marker_code def get_enemy_code(self): if self.marker_code == 10: return 1 return ...
27.149425
58
0.595682
299
2,362
4.474916
0.237458
0.107623
0.053812
0.040359
0.161435
0
0
0
0
0
0
0.011635
0.308637
2,362
86
59
27.465116
0.807716
0
0
0.102941
0
0
0.022862
0
0
0
0
0
0
1
0.191176
false
0
0.044118
0.014706
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ac1eac77532b97e37684d7282cd7c2a9da13f188
1,332
py
Python
src/config/contents.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
13
2021-09-20T17:04:28.000Z
2022-03-15T09:27:25.000Z
src/config/contents.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
null
null
null
src/config/contents.py
miloszowi/everyone-mention-telegram-bot
a6b441b197b743f57e089dbe32d262b87a155140
[ "MIT" ]
null
null
null
# markdownv2 python-telegram-bot specific joined = '{} joined group `{}`' not_joined = '{} is already in group `{}`' left = '{} left group `{}`' not_left = '{} did not join group `{}` before' mention_failed = 'There are no users to mention' no_groups = 'There are no groups for this chat' # html python-telegram-bot spe...
30.976744
128
0.701201
214
1,332
4.331776
0.406542
0.03452
0.038835
0.053937
0
0
0
0
0
0
0
0.000876
0.143393
1,332
42
129
31.714286
0.811569
0.054805
0
0
0
0.1
0.91242
0.089968
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ac2ed7f7134d3ec9fcd2d668ed386c6b314f071b
1,306
py
Python
FusionIIIT/applications/counselling_cell/migrations/0002_auto_20210501_1036.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
1
2021-08-05T10:31:35.000Z
2021-08-05T10:31:35.000Z
FusionIIIT/applications/counselling_cell/migrations/0002_auto_20210501_1036.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
1
2021-05-05T09:50:22.000Z
2021-05-05T09:50:22.000Z
FusionIIIT/applications/counselling_cell/migrations/0002_auto_20210501_1036.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
4
2021-03-16T08:11:42.000Z
2021-05-06T11:03:44.000Z
# Generated by Django 3.1.5 on 2021-05-01 10:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('globals', '0003_auto_20191024_1242'), ('counselling_cell', '0001_initial'), ] operations = [ migrat...
31.853659
128
0.624043
122
1,306
6.434426
0.532787
0.057325
0.099363
0.11465
0.170701
0.170701
0.170701
0.170701
0
0
0
0.038906
0.271822
1,306
40
129
32.65
0.78654
0.034456
0
0.352941
1
0
0.266878
0.150119
0
0
0
0
0
1
0
false
0
0.058824
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ac3afa06674bd280c370406d538274f60a4acaa0
2,330
py
Python
ex01_search.py
tbaptista/pacman
f30213e1104b794996204fa0a4ac90c583f8a2e4
[ "Apache-2.0" ]
1
2019-01-10T05:37:10.000Z
2019-01-10T05:37:10.000Z
ex01_search.py
tbaptista/pacman
f30213e1104b794996204fa0a4ac90c583f8a2e4
[ "Apache-2.0" ]
null
null
null
ex01_search.py
tbaptista/pacman
f30213e1104b794996204fa0a4ac90c583f8a2e4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # ----------------------------------------------------------------------------- # Copyright (c) 2015 Tiago Baptista # All rights reserved. # ----------------------------------------------------------------------------- """ Path-finding exercise using the pac-man game. Using the mouse, choose a target l...
28.072289
82
0.584979
278
2,330
4.705036
0.435252
0.009174
0.013761
0.025994
0.033639
0.033639
0.033639
0.033639
0
0
0
0.012636
0.25279
2,330
83
83
28.072289
0.738656
0.269099
0
0.155556
0
0
0.05285
0
0
0
0
0.012048
0
1
0.133333
false
0
0.088889
0.022222
0.311111
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ac3bc1d1f68c8f2adb204c9c5f0374180c3d4c1e
3,867
py
Python
site_search/tests/test_permissions.py
AccentDesign/djangocms-site-search
90ed1e5ab5fe96be8f1a4a74994f18164a7363aa
[ "MIT" ]
1
2019-06-06T12:56:30.000Z
2019-06-06T12:56:30.000Z
site_search/tests/test_permissions.py
AccentDesign/djangocms-site-search
90ed1e5ab5fe96be8f1a4a74994f18164a7363aa
[ "MIT" ]
null
null
null
site_search/tests/test_permissions.py
AccentDesign/djangocms-site-search
90ed1e5ab5fe96be8f1a4a74994f18164a7363aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.contrib.auth.models import User from django.test import TestCase from cms.api import assign_user_to_page, create_page from ..helpers import get_request from ..views import SearchResultsView class PermissionsTestCase(TestCase): def set...
40.28125
75
0.58495
451
3,867
4.731707
0.184035
0.06373
0.044986
0.067479
0.67104
0.660731
0.629803
0.629803
0.629803
0.629803
0
0.003946
0.213602
3,867
95
76
40.705263
0.695824
0.055081
0
0.514706
0
0
0.030322
0
0
0
0
0
0.117647
1
0.147059
false
0.029412
0.088235
0.014706
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ac3bc471644b6e8784c772369a7f273ad6a22e32
12,179
py
Python
FSO_Comm_Demo.py
MansourM61/FSO-Comm-GnuRadio-Module
44bfefaa95fb9af19f9817029f663892b0f84417
[ "MIT" ]
6
2019-10-31T10:02:49.000Z
2022-03-03T21:42:19.000Z
FSO_Comm_Demo.py
MansourM61/FSO-Comm-GnuRadio-Module
44bfefaa95fb9af19f9817029f663892b0f84417
[ "MIT" ]
null
null
null
FSO_Comm_Demo.py
MansourM61/FSO-Comm-GnuRadio-Module
44bfefaa95fb9af19f9817029f663892b0f84417
[ "MIT" ]
2
2022-01-03T07:59:44.000Z
2022-01-30T11:25:21.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: FSO Communication Block Modules Test # Author: M Mansour Abadi # Description: Modules from FSO_Comm are used in a simple FSO comunication link including various channel effects. # Gen...
36.247024
131
0.642417
1,842
12,179
3.873507
0.159609
0.05494
0.067835
0.057183
0.506097
0.401822
0.34548
0.243588
0.162579
0.039383
0
0.033986
0.224485
12,179
335
132
36.355224
0.72144
0.028738
0
0.062992
0
0
0.027946
0
0
0
0
0
0
0
null
null
0.003937
0.066929
null
null
0.003937
0
0
0
null
0
0
0
0
0
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
ac3e3b4c92edc26c0c53ec7942b32aed32b778c8
1,165
py
Python
fapistrano/signal.py
liwushuo/fapistrano
2a31aad01a04d7ea9108dc6f95aee9a53290459f
[ "MIT" ]
18
2016-03-25T09:40:20.000Z
2022-02-23T02:09:50.000Z
fapistrano/signal.py
liwushuo/fapistrano
2a31aad01a04d7ea9108dc6f95aee9a53290459f
[ "MIT" ]
null
null
null
fapistrano/signal.py
liwushuo/fapistrano
2a31aad01a04d7ea9108dc6f95aee9a53290459f
[ "MIT" ]
3
2016-03-22T07:41:15.000Z
2021-02-25T04:27:53.000Z
# -*- coding: utf-8 -*- from functools import wraps from .utils import run_function class Signal(object): def __init__(self, name, doc=''): self.name = name self.doc = doc self.receivers = {} class Namespace(dict): def signal(self, name, doc=None): try: return se...
22.843137
62
0.611159
138
1,165
5.043478
0.405797
0.045977
0.031609
0
0
0
0
0
0
0
0
0.001161
0.260944
1,165
50
63
23.3
0.807201
0.018026
0
0
0
0
0.055166
0
0
0
0
0
0.027027
0
null
null
0
0.054054
null
null
0.027027
0
0
0
null
0
0
0
0
0
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
ac435b3434ef327610b43e5ed8a12c8f4b36a43d
1,205
py
Python
src/normalizer.py
lucassouzamatos/water-potability-ai
6714e894b4575a58e35cc6e1cac699f0f5f1e9bc
[ "MIT" ]
null
null
null
src/normalizer.py
lucassouzamatos/water-potability-ai
6714e894b4575a58e35cc6e1cac699f0f5f1e9bc
[ "MIT" ]
null
null
null
src/normalizer.py
lucassouzamatos/water-potability-ai
6714e894b4575a58e35cc6e1cac699f0f5f1e9bc
[ "MIT" ]
null
null
null
import pandas as pd class Normalizer: csv_data = 'dataset/water_potability.csv' # file from work data def __init__(self) -> None: self.dataset = pd.read_csv(self.csv_data) self.__normalize_data__() self.__separate__() ''' @ convert all info to number ''' def __normalize_data__(self) -> Non...
40.166667
149
0.712863
145
1,205
5.627586
0.344828
0.296569
0.0625
0.088235
0.330882
0.085784
0
0
0
0
0
0.001916
0.13361
1,205
30
150
40.166667
0.779693
0.015768
0
0
0
0
0.158287
0.026071
0
0
0
0
0
1
0.157895
false
0
0.052632
0
0.315789
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
ac455afb457dd1a64725218027c80809e20d17f1
3,594
py
Python
mrl/g_models/generative_base.py
DarkMatterAI/mrl
e000c3570d4461c3054c882697cce55217ede552
[ "MIT" ]
4
2021-11-16T09:29:55.000Z
2021-12-27T17:55:32.000Z
mrl/g_models/generative_base.py
DarkMatterAI/mrl
e000c3570d4461c3054c882697cce55217ede552
[ "MIT" ]
null
null
null
mrl/g_models/generative_base.py
DarkMatterAI/mrl
e000c3570d4461c3054c882697cce55217ede552
[ "MIT" ]
3
2021-11-16T09:41:41.000Z
2021-12-27T17:55:33.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/09_generative_models.generative_base.ipynb (unless otherwise specified). __all__ = ['GenerativeModel', 'beam_search'] # Cell from ..imports import * from ..torch_imports import * from ..torch_core import * from ..layers import * # Cell class GenerativeModel(nn.Module...
28.299213
120
0.598219
463
3,594
4.49676
0.343413
0.023055
0.019212
0.027378
0.049472
0.030259
0
0
0
0
0
0.014689
0.280189
3,594
127
121
28.299213
0.790104
0.303561
0
0.153846
1
0
0.022318
0
0
0
0
0.007874
0
1
0.134615
false
0
0.076923
0
0.269231
0
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
ac474bcb1cc36e8c400164e2a77001ca5f025265
498
py
Python
venv/lib/python3.8/site-packages/webargs/__init__.py
mrunix1998/booking-flights-system
4eab3d845c4ba6742bd550604fe69b7f101c8da4
[ "MIT" ]
1
2022-03-28T16:37:17.000Z
2022-03-28T16:37:17.000Z
venv/venv/lib/python3.8/site-packages/webargs/__init__.py
mrunix1998/booking-flights-system
4eab3d845c4ba6742bd550604fe69b7f101c8da4
[ "MIT" ]
null
null
null
venv/venv/lib/python3.8/site-packages/webargs/__init__.py
mrunix1998/booking-flights-system
4eab3d845c4ba6742bd550604fe69b7f101c8da4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from distutils.version import LooseVersion from marshmallow.utils import missing # Make marshmallow's validation functions importable from webargs from marshmallow import validate from webargs.core import dict2schema, ValidationError from webargs import fields __version__ = "5.3.2" __version_...
27.666667
77
0.783133
56
498
6.517857
0.589286
0.090411
0
0
0
0
0
0
0
0
0
0.013667
0.118474
498
17
78
29.294118
0.817768
0.170683
0
0
0
0
0.163415
0
0
0
0
0
0
1
0
false
0
0.5
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
ac483bee0ecf390755efd9546940d7a56a66bf85
483
py
Python
scripts/imageio_remove_bin-script.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2021-11-25T02:14:23.000Z
2021-11-25T02:14:23.000Z
scripts/imageio_remove_bin-script.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
scripts/imageio_remove_bin-script.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
#!C:\Users\stpny\Downloads\grasp_public-master\grasp_public-master\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'imageio==2.5.0','console_scripts','imageio_remove_bin' __requires__ = 'imageio==2.5.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] =...
37.153846
86
0.689441
71
483
4.338028
0.535211
0.077922
0.087662
0.097403
0.25974
0.25974
0.25974
0.25974
0.25974
0
0
0.026128
0.128364
483
12
87
40.25
0.705463
0.345756
0
0
0
0
0.304636
0.076159
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
1
ac495d1405722c44232ce6b138bdc896307b81e8
21,345
py
Python
pythonweb/user/views.py
onwebbe/rasiberryPiWebManager
14ff9f14f3f873457666fa1669fae715148538c9
[ "Apache-2.0" ]
null
null
null
pythonweb/user/views.py
onwebbe/rasiberryPiWebManager
14ff9f14f3f873457666fa1669fae715148538c9
[ "Apache-2.0" ]
7
2020-09-07T07:51:28.000Z
2022-02-26T17:54:49.000Z
pythonweb/user/views.py
onwebbe/rasiberryPiWebManager
14ff9f14f3f873457666fa1669fae715148538c9
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse import json # Create your views here. def info(request): userInfo = { 'id': '4291d7da9005377ec9aec4a71ea837f', 'name': '天野远子', 'username': 'admin', 'password': '', 'avatar': '/avatar2.jpg', 'status': 1, 'telephone': ...
25.747889
357
0.469056
1,615
21,345
6.198762
0.157895
0.217361
0.159824
0.03636
0.596044
0.581261
0.575467
0.575467
0.575467
0.568075
0
0.026364
0.312298
21,345
828
358
25.778986
0.65563
0.005669
0
0.5822
0
0.016069
0.474143
0.179843
0
0
0
0
0
1
0.002472
false
0.001236
0.011125
0
0.016069
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
ac4bb093b09ad6b3234a1c157636387e7fbb5f98
3,278
py
Python
WHI_long_term_size_distr_including_fresh_emissions_plotting.py
annahs/atmos_research
b5853c9b12e327492f8f8ba5069bca3fd2e981c8
[ "MIT" ]
2
2018-08-17T15:25:26.000Z
2019-04-17T16:50:00.000Z
WHI_long_term_size_distr_including_fresh_emissions_plotting.py
annahs/atmos_research
b5853c9b12e327492f8f8ba5069bca3fd2e981c8
[ "MIT" ]
null
null
null
WHI_long_term_size_distr_including_fresh_emissions_plotting.py
annahs/atmos_research
b5853c9b12e327492f8f8ba5069bca3fd2e981c8
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit from matplotlib import dates import os import pickle from datetime import datetime from pprint import pprint import sys import math import traceback import time os.chdir('C:/Users/Sarah Hanna/Documents/Data/WHI long term record/co...
26.650407
137
0.742221
564
3,278
4.035461
0.292553
0.101494
0.065905
0.050088
0.286467
0.130931
0.064148
0.064148
0.034271
0.034271
0
0.021893
0.136059
3,278
122
138
26.868852
0.78178
0.078096
0
0.070588
0
0
0.062396
0.007965
0
0
0
0
0
0
null
null
0
0.141176
null
null
0.047059
0
0
0
null
0
0
0
0
0
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
ac4ee0a9c265d35fc43a606e8c10147a4a14ebe8
342
py
Python
pos_multie_print/config/docs.py
ashish-greycube/pos_multie_print
f84f36cdf32f53b200c8fe7b9c754e199094d841
[ "MIT" ]
null
null
null
pos_multie_print/config/docs.py
ashish-greycube/pos_multie_print
f84f36cdf32f53b200c8fe7b9c754e199094d841
[ "MIT" ]
null
null
null
pos_multie_print/config/docs.py
ashish-greycube/pos_multie_print
f84f36cdf32f53b200c8fe7b9c754e199094d841
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/pos_multie_print" # docs_base_url = "https://[org_name].github.io/pos_multie_print" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html =...
28.5
68
0.739766
50
342
4.82
0.72
0.058091
0.116183
0
0
0
0
0
0
0
0
0
0.122807
342
11
69
31.090909
0.803333
0.745614
0
0
0
0
0.236842
0
0
0
0
0
0
1
0.5
false
0
0
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
1
0
0
0
0
0
0
0
1
ac4f82e72b64166dbb545dc5a1c2ec940777bbee
1,096
py
Python
pe3.py
ChrisCalderon/project-euler
96055343fc3ef7653184708fe350018ee751ea17
[ "MIT" ]
1
2015-12-16T05:13:30.000Z
2015-12-16T05:13:30.000Z
pe3.py
ChrisCalderon/project-euler
96055343fc3ef7653184708fe350018ee751ea17
[ "MIT" ]
null
null
null
pe3.py
ChrisCalderon/project-euler
96055343fc3ef7653184708fe350018ee751ea17
[ "MIT" ]
null
null
null
PRIMES = [3] def next_prime(): num = PRIMES[-1] + 2 # odd + 2 is the next odd, don't check evens for primality is_prime = False while True: lim = num**0.5 # don't check for prime factors larger than this for p in PRIMES: if p > lim: is_prime = True ...
22.833333
83
0.469891
145
1,096
3.42069
0.358621
0.056452
0.03629
0
0
0
0
0
0
0
0
0.060163
0.438869
1,096
47
84
23.319149
0.746341
0.184307
0
0.153846
0
0
0.009029
0
0
0
0
0
0
0
null
null
0
0
null
null
0.025641
0
0
0
null
0
0
0
0
0
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
ac505c7c29aa070c9931ea9a50fc3af3c4aa490f
10,701
py
Python
cryptoquant/api/okex/futures_api.py
studyquant/StudyQuant
24790634ac320b25361672754558c3797f4fc9e3
[ "Apache-2.0" ]
74
2018-08-10T17:05:57.000Z
2022-03-26T07:06:02.000Z
cryptoquant/api/okex/futures_api.py
ezailwoo/studyquant
24790634ac320b25361672754558c3797f4fc9e3
[ "Apache-2.0" ]
1
2022-03-24T06:42:00.000Z
2022-03-24T06:42:00.000Z
cryptoquant/api/okex/futures_api.py
ezailwoo/studyquant
24790634ac320b25361672754558c3797f4fc9e3
[ "Apache-2.0" ]
18
2020-09-22T09:03:49.000Z
2022-03-31T20:48:54.000Z
from .client import Client from .consts import * class FutureAPI(Client): def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, first=False): Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, first) # query position def get_position(self): ...
43.149194
236
0.657882
1,293
10,701
5.119876
0.100541
0.117825
0.097583
0.072508
0.499245
0.460121
0.42568
0.391692
0.338973
0.307251
0
0.001452
0.227642
10,701
247
237
43.323887
0.799516
0.105504
0
0.277108
0
0
0.076745
0
0
0
0
0
0
1
0.216867
false
0.012048
0.012048
0.096386
0.457831
0
0
0
0
null
0
0
0
0
0
0
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
ac5ea208004616e2bfb96c0a007f009fdaeed064
2,793
py
Python
src/expand_mnist.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
src/expand_mnist.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
src/expand_mnist.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
"""expand_mnist.py ~~~~~~~~~~~~~~~~~~ Take the 50,000 MNIST training images, and create an expanded set of 250,000 images, by displacing each training image up, down, left and right, by one pixel. Save the resulting file to ../data/mnist_expanded.pkl.gz. Note that this program is memory intensive, and may not run on...
29.09375
88
0.6058
393
2,793
4.16285
0.37659
0.040342
0.064181
0.036675
0.164425
0.09291
0.051345
0
0
0
0
0.028473
0.270677
2,793
95
89
29.4
0.774669
0.33942
0
0.052632
0
0
0.130867
0.032027
0
0
0
0.010526
0
1
0.026316
false
0
0.210526
0.026316
0.263158
0.131579
0
0
0
null
0
0
0
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
ac6056041eeb8497e63663fa127d721d28fac540
17,489
py
Python
randconv/coordinator_factory.py
jm-begon/randconv
cb7438f5876c18192e8caaf3cafd88e839c26048
[ "BSD-3-Clause" ]
1
2016-08-01T08:09:28.000Z
2016-08-01T08:09:28.000Z
randconv/coordinator_factory.py
jm-begon/randconv
cb7438f5876c18192e8caaf3cafd88e839c26048
[ "BSD-3-Clause" ]
null
null
null
randconv/coordinator_factory.py
jm-begon/randconv
cb7438f5876c18192e8caaf3cafd88e839c26048
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ A set of factory function to help create usual cases of coordinator """ __author__ = "Begon Jean-Michel <jm.begon@gmail.com>" __copyright__ = "3-clause BSD License" __date__ = "20 January 2015" import math from .image import * from .util import (OddUniformGenerator, NumberGenerator, ...
40.204598
95
0.623535
1,775
17,489
5.935211
0.173521
0.01196
0.01851
0.01775
0.407879
0.371334
0.358994
0.35178
0.324822
0.314191
0
0.01014
0.312025
17,489
434
96
40.297235
0.865442
0.041283
0
0.227074
0
0
0.066083
0.003751
0
0
0
0.002304
0
0
null
null
0
0.021834
null
null
0.030568
0
0
0
null
0
0
0
0
0
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
ac61daa3c54495624b8682899688bd4fd36deaca
13,110
py
Python
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
tanmuContent = ''' <style> .barrage-input-tip { z-index: 1999; position: absolute; left: 10px; width: 179.883px; height: 35.7422px; line-height: 35.7422px; border-radius: 35.7422px; box-sizing: border-box; color: rgb(255, 255, 255); ...
39.017857
427
0.564607
1,499
13,110
4.955971
0.274183
0.024768
0.014807
0.014538
0.390362
0.353076
0.330192
0.316059
0.237448
0.237448
0
0.061124
0.272464
13,110
336
428
39.017857
0.713986
0
0
0.316614
0
0.07837
0.998322
0.2054
0
0
0
0
0
1
0
false
0
0.00627
0
0.00627
0
0
0
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
ac622bca39310127b42776aefdbd9c65467abc04
871
py
Python
example/example2.py
xrloong/xrSolver
4f36660b78456840f65215ffce0481cdc280f980
[ "Apache-2.0" ]
null
null
null
example/example2.py
xrloong/xrSolver
4f36660b78456840f65215ffce0481cdc280f980
[ "Apache-2.0" ]
null
null
null
example/example2.py
xrloong/xrSolver
4f36660b78456840f65215ffce0481cdc280f980
[ "Apache-2.0" ]
null
null
null
from xrsolver import Problem import solver # This example is the second case from https://www.youtube.com/watch?v=WJEZh7GWHnw s = solver.Solver() p = Problem() x1 = p.generateVariable("x1", lb=0, ub=3) x2 = p.generateVariable("x2", lb=0, ub=3) x3 = p.generateVariable("x3", lb=0, ub=3) x4 = p.generateVariable("x4",...
23.540541
82
0.64868
147
871
3.843537
0.292517
0.150442
0.044248
0.053097
0
0
0
0
0
0
0
0.096515
0.143513
871
36
83
24.194444
0.660858
0.091848
0
0
1
0
0.038071
0
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ac67224e0a480ab178264f670f037b9c677d4fdc
358
py
Python
paint/migrations/0007_auto_20200405_1748.py
atulk17/Paint-App
4b56455596d140cee4a9b19c71fe82364c3f3b7c
[ "BSD-2-Clause" ]
null
null
null
paint/migrations/0007_auto_20200405_1748.py
atulk17/Paint-App
4b56455596d140cee4a9b19c71fe82364c3f3b7c
[ "BSD-2-Clause" ]
null
null
null
paint/migrations/0007_auto_20200405_1748.py
atulk17/Paint-App
4b56455596d140cee4a9b19c71fe82364c3f3b7c
[ "BSD-2-Clause" ]
1
2020-05-31T11:37:48.000Z
2020-05-31T11:37:48.000Z
# Generated by Django 3.0.4 on 2020-04-05 12:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('paint', '0006_auto_20200405_1746'), ] operations = [ migrations.AlterModelTable( name='office_expense', table=...
19.888889
48
0.578212
36
358
5.611111
0.833333
0.128713
0
0
0
0
0
0
0
0
0
0.127049
0.318436
358
17
49
21.058824
0.70082
0.125698
0
0
1
0
0.190476
0.078231
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
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
ac6f2dbc609bab1cd3af2ace2bafd614f0610168
10,226
py
Python
sample_facemesh.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
92
2021-03-09T08:27:17.000Z
2022-03-09T08:20:48.000Z
sample_facemesh.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
1
2021-12-23T05:15:26.000Z
2022-02-21T20:35:21.000Z
sample_facemesh.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
46
2021-03-08T10:24:54.000Z
2021-12-20T07:12:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import copy import argparse import cv2 as cv import numpy as np import mediapipe as mp from utils import CvFpsCalc def get_args(): parser = argparse.ArgumentParser() parser.add_argument("--device", type=int, default=0) parser.add_argument("--width", help='c...
38.588679
88
0.552415
1,319
10,226
4.089462
0.172858
0.28198
0.05469
0.064516
0.436782
0.410085
0.346682
0.346682
0.346682
0.063033
0
0.097927
0.264033
10,226
264
89
38.734848
0.618788
0.030413
0
0.26455
0
0
0.02265
0.01047
0
0
0
0
0
1
0.026455
false
0
0.031746
0
0.079365
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
ac6f3083292de976db6a89e3601228fd50986b48
1,413
py
Python
andromeda/modules/loans/views/inventory_loans.py
sango09/andromeda_api_rest
b4a3267146f4f9a985fb3f512e652d4ff354bba2
[ "MIT" ]
1
2021-09-08T18:58:16.000Z
2021-09-08T18:58:16.000Z
andromeda/modules/loans/views/inventory_loans.py
sango09/andromeda_api_rest
b4a3267146f4f9a985fb3f512e652d4ff354bba2
[ "MIT" ]
null
null
null
andromeda/modules/loans/views/inventory_loans.py
sango09/andromeda_api_rest
b4a3267146f4f9a985fb3f512e652d4ff354bba2
[ "MIT" ]
null
null
null
"""Vista del inventario del modulo de prestamos tecnologicos.""" # Django REST Framework from rest_framework import viewsets, mixins # Permisos from rest_framework.permissions import IsAuthenticated from andromeda.modules.inventory.permissions import IsAdmin, IsStaff # Modelos from andromeda.modules.loans.models imp...
36.230769
104
0.685775
132
1,413
7.295455
0.5
0.040498
0.062305
0.060228
0
0
0
0
0
0
0
0
0.242038
1,413
38
105
37.184211
0.89916
0.184006
0
0
0
0
0.029229
0
0
0
0
0
0
1
0.090909
false
0
0.227273
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
ac7e4bb5b2639e3ce5fc5958996d880251838bdd
317
py
Python
setup.py
algerbrex/plex
0d7096634d13ee4d695b580892894910eba6a4eb
[ "MIT" ]
2
2018-02-15T16:26:54.000Z
2021-11-08T12:26:12.000Z
setup.py
algerbrex/plex
0d7096634d13ee4d695b580892894910eba6a4eb
[ "MIT" ]
null
null
null
setup.py
algerbrex/plex
0d7096634d13ee4d695b580892894910eba6a4eb
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='plex', version='0.1.0', author='Christian Dean', author_email='c1dea2n@gmail.com', packages=['plex'], license='MIT', platforms='any', description='Generic, lighweight regex based lexer.', long_description=open('README.md').read(), )
21.133333
57
0.649842
38
317
5.368421
0.868421
0
0
0
0
0
0
0
0
0
0
0.019305
0.182965
317
14
58
22.642857
0.76834
0
0
0
0
0
0.305994
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ac85b889248a7fe66df90411b1896a2b3cc25961
131
py
Python
Codeforces/problems/0799/A/799A.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
Codeforces/problems/0799/A/799A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
Codeforces/problems/0799/A/799A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
import math n, t, k, d = map(int, input().split()) x = math.ceil(n/k) * t if (d + t) < x: print("YES") else: print("NO")
13.1
38
0.503817
25
131
2.64
0.68
0
0
0
0
0
0
0
0
0
0
0
0.251908
131
10
39
13.1
0.673469
0
0
0
0
0
0.037879
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.285714
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
ac8b7fc77b1b29feaa2f6078b42fbbccbd054d3d
1,971
py
Python
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_1894 # title: Circular dependencies between computed fields crashs the engine # decription: # Checked on LI-T4.0.0.419 after commit 19.10.2016 18:26 # https://github.com/FirebirdSQL/firebird/commit/6a00b3aee6ba17b2f80a5b00def728023e34...
24.036585
106
0.650431
264
1,971
4.723485
0.409091
0.048115
0.009623
0.089816
0.275862
0.275862
0.275862
0.275862
0.232558
0.232558
0
0.089041
0.259259
1,971
81
107
24.333333
0.765068
0.23998
0
0.4375
0
0.020833
0.673414
0
0
0
0
0
0.020833
1
0.020833
false
0
0.041667
0
0.0625
0
0
0
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
3ba741e941c63d039ed8b54e0f39f036cca0c01c
1,735
py
Python
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
12
2021-08-01T09:41:24.000Z
2021-12-03T02:53:10.000Z
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
5
2021-09-11T16:51:01.000Z
2022-02-18T16:20:29.000Z
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
2
2021-08-03T16:02:27.000Z
2021-08-06T07:51:54.000Z
"""Test module for the Error dialog widget.""" import os import logging import pytest from PySide2.QtGui import QClipboard from src.widgets import error_dialog from src.about import about_to_string @pytest.fixture() def error_log_path(_package): """Get the log directory path.""" yield os.path.join(_package...
27.539683
78
0.725648
237
1,735
5.14346
0.375527
0.045119
0.049221
0.049221
0.032814
0
0
0
0
0
0
0.002094
0.174063
1,735
62
79
27.983871
0.848569
0.301441
0
0
0
0
0.092721
0
0
0
0
0
0.206897
1
0.241379
false
0.034483
0.206897
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3ba806cb9a29badf3e7a080781be0d67fc995823
1,017
py
Python
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
import gzip def read_fasta(filename): name = None seqs = [] fp = None if filename.endswith('.gz'): fp = gzip.open(filename, 'rt') else: fp = open(filename) for line in fp.readlines(): line = line.rstrip() if line.startswith('>'): if len(seqs) > 0: seq = ''.join(seqs) yield(name, seq) na...
17.237288
43
0.573255
139
1,017
4.179856
0.251799
0.082616
0.061962
0.068847
0.557659
0.557659
0.464716
0.464716
0.464716
0.464716
0
0.007752
0.238938
1,017
58
44
17.534483
0.742894
0
0
0.745098
0
0
0.012783
0
0
0
0
0
0
1
0.039216
false
0
0.019608
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ba9c357940e99f10b2151b5ccc410817c1d8e70
10,559
py
Python
test/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
6
2020-01-17T13:23:35.000Z
2022-01-15T22:49:34.000Z
learn/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
null
null
null
learn/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
1
2019-05-26T15:57:35.000Z
2019-05-26T15:57:35.000Z
import networkx as nx import string import numpy as np import math def degree_centrality(G): centrality={} s=1.0 centrality=dict((n,d*s) for n,d in G.degree_iter()) return centrality def in_degree_centrality(G): if not G.is_directed(): raise nx.NetworkXError("in_degree_centrality() not...
43.632231
254
0.58604
1,207
10,559
4.887324
0.115162
0.079335
0.054246
0.037294
0.587049
0.457366
0.371419
0.26513
0.221054
0.21563
0
0.011148
0.311867
10,559
241
255
43.813278
0.800716
0.04991
0
0.321244
0
0
0.132635
0.05519
0
0
0
0
0
0
null
null
0
0.020725
null
null
0.046632
0
0
0
null
0
0
0
0
0
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