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
126ee51683c13a2a0d3c8f7660aaea573d956c4c
2,448
py
Python
main.py
prostodrug95/ping-pong
66f7d0d5bf83d9400e1933c78da2e2fc262b5fcb
[ "CC0-1.0" ]
1
2021-06-04T16:57:30.000Z
2021-06-04T16:57:30.000Z
main.py
prostodrug95/ping-pong
66f7d0d5bf83d9400e1933c78da2e2fc262b5fcb
[ "CC0-1.0" ]
null
null
null
main.py
prostodrug95/ping-pong
66f7d0d5bf83d9400e1933c78da2e2fc262b5fcb
[ "CC0-1.0" ]
null
null
null
from pygame import * font.init() speed_x = 1 speed_y = 1 w,h = 500,500 window = display.set_mode((w,h)) background = transform.scale(image.load("amogus.png"), (w,h)) font1 = font.Font(None,35) lose1 = font1.render('ПЕРВЫЙ БОТ СЛИТ',True,(180,0,0)) font2 = font.Font(None,35) lose2 = font1.render('ВТОРОЙ БОТ ...
29.853659
92
0.566176
369
2,448
3.609756
0.243902
0.078078
0.067568
0.036036
0.214715
0.184685
0.160661
0.160661
0.118619
0.118619
0
0.050729
0.299428
2,448
81
93
30.222222
0.725948
0
0
0.121212
0
0
0.03591
0
0
0
0
0
0
1
0.060606
false
0
0.015152
0
0.106061
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
126f1e95442d045eb408d956eca0a3026f66efae
3,964
py
Python
mysql-utilities-1.6.0/mysql/utilities/exception.py
bopopescu/mysql-dbcompare
1e912fd87282be3b3bed48487e6beb0ecb1de339
[ "Apache-2.0" ]
2
2018-03-20T07:42:58.000Z
2018-03-20T07:43:49.000Z
mysql-utilities-1.6.0/mysql/utilities/exception.py
bopopescu/mysql-dbcompare
1e912fd87282be3b3bed48487e6beb0ecb1de339
[ "Apache-2.0" ]
null
null
null
mysql-utilities-1.6.0/mysql/utilities/exception.py
bopopescu/mysql-dbcompare
1e912fd87282be3b3bed48487e6beb0ecb1de339
[ "Apache-2.0" ]
1
2020-07-23T23:07:08.000Z
2020-07-23T23:07:08.000Z
# # Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights # reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in ...
27.150685
78
0.686176
495
3,964
5.341414
0.347475
0.051437
0.079425
0.090772
0.366868
0.348336
0.29652
0.233737
0.219365
0.187595
0
0.009135
0.226791
3,964
145
79
27.337931
0.853507
0.456105
0
0.425926
0
0
0
0
0
0
0
0
0
1
0.185185
false
0.074074
0
0.018519
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
12704a095122fadc942cb65a97c8da4187d6b314
3,322
py
Python
TEST.py
MemoryHeroLi/testPyQt5
f4155904be626b1f1811bb89f5838c9f5a7aad49
[ "MIT" ]
null
null
null
TEST.py
MemoryHeroLi/testPyQt5
f4155904be626b1f1811bb89f5838c9f5a7aad49
[ "MIT" ]
null
null
null
TEST.py
MemoryHeroLi/testPyQt5
f4155904be626b1f1811bb89f5838c9f5a7aad49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'TEST.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, ...
48.144928
75
0.717941
335
3,322
7.044776
0.310448
0.094915
0.066102
0.050847
0.147458
0.074576
0
0
0
0
0
0.023688
0.173992
3,322
68
76
48.852941
0.83637
0.080975
0
0
1
0
0.091297
0
0
0
0
0
0
1
0.037037
false
0
0.018519
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
12709adefb63994c976a043d3df1e7443e69d9f6
1,793
py
Python
tests/test_search_bodemdiepteinterval.py
DOV-Vlaanderen/dov-pydownloader
126b17f4ad870d9fae5cb2c4b868c564cf7cd1b3
[ "MIT" ]
null
null
null
tests/test_search_bodemdiepteinterval.py
DOV-Vlaanderen/dov-pydownloader
126b17f4ad870d9fae5cb2c4b868c564cf7cd1b3
[ "MIT" ]
4
2016-12-23T10:36:05.000Z
2017-01-03T11:38:39.000Z
tests/test_search_bodemdiepteinterval.py
DOV-Vlaanderen/dov-pydownloader
126b17f4ad870d9fae5cb2c4b868c564cf7cd1b3
[ "MIT" ]
null
null
null
"""Module grouping tests for the bodemdiepteinterval search module.""" import datetime from owslib.fes import PropertyIsEqualTo from pydov.search.bodemdiepteinterval import BodemdiepteintervalSearch from pydov.types.bodemdiepteinterval import Bodemdiepteinterval from pydov.util.dovutil import build_dov_url from tests...
40.75
82
0.782487
177
1,793
7.661017
0.457627
0.123894
0.061947
0.146018
0
0
0
0
0
0
0
0.00953
0.122142
1,793
43
83
41.697674
0.85197
0.035694
0
0
0
0
0.387696
0.208358
0
0
0
0
0
1
0
false
0
0.1875
0
0.53125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1273e125cf6e955179d20d62b853392bde84917e
81
py
Python
module1_script.py
KeiandraK/Lambdata-BW3-Keiandra
df759d9ff20322ff22bbe2fa05aaf5fa08b1ba70
[ "MIT" ]
null
null
null
module1_script.py
KeiandraK/Lambdata-BW3-Keiandra
df759d9ff20322ff22bbe2fa05aaf5fa08b1ba70
[ "MIT" ]
null
null
null
module1_script.py
KeiandraK/Lambdata-BW3-Keiandra
df759d9ff20322ff22bbe2fa05aaf5fa08b1ba70
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd print(3+5/12) x= 12 y=6 z=3 print(x+z-y)
9
19
0.679012
22
81
2.5
0.636364
0
0
0
0
0
0
0
0
0
0
0.121212
0.185185
81
9
20
9
0.712121
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.285714
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1273e26fea12a529cba1a7987ef758ea601ca1da
438
py
Python
setup.py
cessor/substitute
d55598e6964bb630fc7703d5d8460bc960793ab9
[ "MIT" ]
1
2020-02-26T00:10:37.000Z
2020-02-26T00:10:37.000Z
setup.py
cessor/substitute
d55598e6964bb630fc7703d5d8460bc960793ab9
[ "MIT" ]
null
null
null
setup.py
cessor/substitute
d55598e6964bb630fc7703d5d8460bc960793ab9
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name='substitute', version='1.1.1', description='A friendly substitute for python mocking frameworks', author='Johannes Hofmeister', author_email='substitute@spam.cessor.de', url='http://cessor.github.io/substitute', packages=['substitute'], k...
39.818182
121
0.687215
49
438
6.122449
0.795918
0.013333
0
0
0
0
0
0
0
0
0
0.007895
0.13242
438
11
122
39.818182
0.781579
0
0
0
0
0
0.529138
0.058275
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
89bf8ee8a7e5c3c278485bd4901ccfbb359df2a4
6,922
py
Python
clumioapi/models/mssql_database_backup.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
null
null
null
clumioapi/models/mssql_database_backup.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
1
2021-09-16T05:56:05.000Z
2021-09-16T05:56:05.000Z
clumioapi/models/mssql_database_backup.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021. Clumio, Inc. # from typing import Any, Dict, Mapping, Optional, Sequence, Type, TypeVar from clumioapi.models import mssql_database_backup_embedded from clumioapi.models import mssql_database_backup_links from clumioapi.models import mssql_database_file T = TypeVar('T', bound='MssqlDatabaseBackup...
36.819149
99
0.625397
758
6,922
5.501319
0.168865
0.059233
0.041007
0.023741
0.351319
0.278657
0.197842
0.074341
0.057074
0.026859
0
0.002491
0.304103
6,922
187
100
37.016043
0.863193
0.314793
0
0.052174
0
0
0.116264
0
0
0
0
0
0
1
0.017391
false
0
0.034783
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89bfa647876f92e41264d07022e4066b9ff7e709
394
py
Python
infra/docker/python/accounts/forms.py
YA-androidapp/docker-django
5614f4421b5fab8bbf6b02ebd75c990c012d3db1
[ "Apache-2.0" ]
null
null
null
infra/docker/python/accounts/forms.py
YA-androidapp/docker-django
5614f4421b5fab8bbf6b02ebd75c990c012d3db1
[ "Apache-2.0" ]
null
null
null
infra/docker/python/accounts/forms.py
YA-androidapp/docker-django
5614f4421b5fab8bbf6b02ebd75c990c012d3db1
[ "Apache-2.0" ]
null
null
null
from allauth.account.forms import SignupForm from django import forms from .models import CustomUser from allauth.account.adapter import DefaultAccountAdapter class CustomSignupForm(SignupForm): age = forms.IntegerField() class Meta: model = CustomUser def signup(self, request, user): us...
23.176471
57
0.713198
45
394
6.222222
0.577778
0.078571
0.128571
0
0
0
0
0
0
0
0
0
0.213198
394
16
58
24.625
0.903226
0
0
0
0
0
0.007614
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
89c1c2b31fc38070addd4abcaa1f6789312a5e74
485
py
Python
Cogs/Help.py
Goldfish64/CorpBot.py
05607332ff15cbecc3a3b950efcfbcf295adad78
[ "MIT" ]
2
2021-03-16T01:27:52.000Z
2021-11-23T03:02:21.000Z
Cogs/Help.py
Goldfish64/CorpBot.py
05607332ff15cbecc3a3b950efcfbcf295adad78
[ "MIT" ]
null
null
null
Cogs/Help.py
Goldfish64/CorpBot.py
05607332ff15cbecc3a3b950efcfbcf295adad78
[ "MIT" ]
null
null
null
import asyncio import discord import inspect from discord.ext import commands from Cogs import * # This module is for random funny things I guess... class Help: def __init__(self, bot, cogs): # cogs = an array of the cogs used to start the bot self.bot = bot self.cogs = cogs def message(self, message)...
24.25
65
0.703093
76
485
4.434211
0.657895
0.059347
0
0
0
0
0
0
0
0
0
0
0.220619
485
20
66
24.25
0.891534
0.424742
0
0
0
0
0.043636
0
0
0
0
0
0
1
0.181818
false
0
0.454545
0.090909
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
89c23a647647ff32bdfe12c1a122bd1e6b3b7682
5,351
py
Python
tests/dku_config/test_dss_parameter.py
Muennighoff/dss-plugin-dkulib
8d9a954841c23f163f1992822a2a8e4171695f73
[ "Apache-2.0" ]
null
null
null
tests/dku_config/test_dss_parameter.py
Muennighoff/dss-plugin-dkulib
8d9a954841c23f163f1992822a2a8e4171695f73
[ "Apache-2.0" ]
null
null
null
tests/dku_config/test_dss_parameter.py
Muennighoff/dss-plugin-dkulib
8d9a954841c23f163f1992822a2a8e4171695f73
[ "Apache-2.0" ]
null
null
null
import logging import pytest from dkulib.dku_config.custom_check import CustomCheckError from dkulib.dku_config.dss_parameter import DSSParameter, DSSParameterError LOGGER = logging.getLogger(__name__) class TestDSSParameter: def test_nominal_case(self): dss_parameter = DSSParameter( name='...
28.015707
75
0.484395
509
5,351
4.88998
0.147348
0.091603
0.136601
0.092808
0.695862
0.623945
0.545199
0.500201
0.451989
0.397348
0
0.018506
0.424407
5,351
190
76
28.163158
0.78961
0
0
0.579882
0
0
0.070641
0
0
0
0
0
0.136095
1
0.047337
false
0.005917
0.023669
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89c3b7ade106d6f5c8c31707197352a51ca80f2c
166
py
Python
strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod class AbstractScaleIn(object): __metaclass__ = ABCMeta @abstractmethod def scalein(self, command): pass
18.444444
39
0.716867
16
166
7.1875
0.875
0.365217
0
0
0
0
0
0
0
0
0
0
0.222892
166
8
40
20.75
0.891473
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.166667
0.166667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
5
89c46bb5cab509b8a596d2ce23c543ef5071170a
1,525
py
Python
code/src04_train_Model_for_Classification_Cervix_Type/threading_test_v1.py
gakarak/Challenge_Cervical_Cancer_Screening-
7cb7cb308b43de4f85a09053723e50c368c05891
[ "Apache-2.0" ]
null
null
null
code/src04_train_Model_for_Classification_Cervix_Type/threading_test_v1.py
gakarak/Challenge_Cervical_Cancer_Screening-
7cb7cb308b43de4f85a09053723e50c368c05891
[ "Apache-2.0" ]
null
null
null
code/src04_train_Model_for_Classification_Cervix_Type/threading_test_v1.py
gakarak/Challenge_Cervical_Cancer_Screening-
7cb7cb308b43de4f85a09053723e50c368c05891
[ "Apache-2.0" ]
2
2017-06-27T07:14:06.000Z
2021-07-20T15:21:58.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'ar' # import numpy as np import multiprocessing as mp import multiprocessing.pool from sklearn.cluster import KMeans import math import numpy as np from concurrent.futures import ThreadPoolExecutor import threading def my_fun(params): idx = params[0] va...
28.773585
79
0.601967
214
1,525
4.186916
0.425234
0.022321
0.035714
0.049107
0.154018
0.122768
0.044643
0
0
0
0
0.0399
0.211148
1,525
52
80
29.326923
0.704904
0.257705
0
0
0
0
0.112601
0
0
0
0
0
0
1
0.058824
false
0
0.205882
0.029412
0.323529
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89c5c5bc48949e63b438dc53999fcd0b926a88dd
6,187
py
Python
src/UI_statistics_window.py
GatherLab/OLED-evaluation
419dfd5d2c3773f5f90d76aef634f8b1cc0b6378
[ "MIT" ]
null
null
null
src/UI_statistics_window.py
GatherLab/OLED-evaluation
419dfd5d2c3773f5f90d76aef634f8b1cc0b6378
[ "MIT" ]
null
null
null
src/UI_statistics_window.py
GatherLab/OLED-evaluation
419dfd5d2c3773f5f90d76aef634f8b1cc0b6378
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PySide2 import QtCore, QtGui, QtWidgets import json import core_functions as cf import numpy as np class Ui_Statistics(object): def setupUi(self, Statistics): # Note: this is not how it should be done but currently I don't know # how to do it differently. This is only...
42.965278
86
0.607564
618
6,187
5.970874
0.288026
0.079675
0.082385
0.096748
0.452575
0.376694
0.288076
0.245257
0.12981
0.123035
0
0.029932
0.287215
6,187
143
87
43.265734
0.806803
0.377727
0
0.304348
0
0
0.318397
0
0
0
0
0
0
1
0.028986
false
0
0.057971
0
0.101449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89c7466fa6bef7614fbace29a648ac7f92e2485b
1,935
py
Python
encapsulamiento.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
encapsulamiento.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
encapsulamiento.py
francomanca93/poo-algoritmos-python
47bc0289cf1a91e2bee93f354bd39e1b592fa774
[ "MIT" ]
null
null
null
class Perros(object): #Declaramos la clase principal Perros def __init__(self, nombre, peso): #Definimos los parámetros self.__nombre = nombre #Declaramos los atributos self.__peso = peso # Getter, setter y deleter de nombre @property def nombre(self): #Definimos el método para obt...
37.941176
89
0.697674
254
1,935
5.220472
0.34252
0.045249
0.031674
0.030166
0.180995
0.125189
0.125189
0
0
0
0
0.002699
0.234109
1,935
51
90
37.941176
0.892038
0.482687
0
0.222222
0
0
0.14524
0
0
0
0
0.019608
0
1
0.194444
false
0
0
0.027778
0.277778
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
89c8316841df2172a19b9834e4e82b01d6035805
1,336
py
Python
icv/data/converter/coco_converter.py
dmxj/icv
0b074ec9475f2c70038d2e8b7166414fd5b93e61
[ "MIT" ]
5
2019-09-10T04:02:19.000Z
2020-07-24T07:46:08.000Z
icv/data/converter/coco_converter.py
dmxj/icv
0b074ec9475f2c70038d2e8b7166414fd5b93e61
[ "MIT" ]
null
null
null
icv/data/converter/coco_converter.py
dmxj/icv
0b074ec9475f2c70038d2e8b7166414fd5b93e61
[ "MIT" ]
1
2020-03-20T03:44:04.000Z
2020-03-20T03:44:04.000Z
# -*- coding: UTF-8 -*- from ..voc import Voc from ..coco import Coco from ..core.sample import Sample from icv.utils import reset_dir, mkfile import os class CocoConverter(object): def __init__(self, coco): assert isinstance(coco, Coco) self.coco = coco def to_voc(self, voc_root, split=None,...
31.809524
109
0.626497
186
1,336
4.274194
0.317204
0.090566
0.030189
0.037736
0.05283
0.05283
0
0
0
0
0
0.001032
0.274701
1,336
41
110
32.585366
0.819401
0.015719
0
0
0
0
0.01904
0
0
0
0
0
0.060606
1
0.060606
false
0
0.151515
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89c867ed9daeb13b7d633af74291b2198a878d31
2,097
py
Python
source/game24_calc/game24.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
source/game24_calc/game24.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
source/game24_calc/game24.py
adrinamin/algorithm_exercises
8a3c61afe4672aabaeb7a311ea9948165d9d6b10
[ "MIT" ]
null
null
null
""" game24.py module The 24 game is played as follows: You are given a list of four integers, each between 1 and 9, in a fixed order. By placing operators +,-,* and / between the numbers, and grouping them with parentheses, determine whether it is possible to reach the value 24. Example: 5,2,7,8 => ((5*2)-7)*8 Usage:...
29.535211
105
0.552217
275
2,097
4.156364
0.421818
0.013123
0.073491
0.07699
0.114611
0.114611
0.114611
0.086614
0
0
0
0.041126
0.339056
2,097
71
106
29.535211
0.78355
0.37196
0
0.194444
0
0
0.082224
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.194444
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89ca9e1945a597daeaa0428e522ece404164bfa6
3,819
py
Python
fully_colorization/preprocess/change_conv2d.py
HamsterBiz/Automatic-Video-Colorization-1
e110650d130d3eadfe29073bf445513d10a5b3f6
[ "MIT" ]
3
2020-06-11T13:10:52.000Z
2022-02-14T05:44:23.000Z
fully_colorization/preprocess/change_conv2d.py
HamsterBiz/Automatic-Video-Colorization-1
e110650d130d3eadfe29073bf445513d10a5b3f6
[ "MIT" ]
1
2022-03-12T00:28:57.000Z
2022-03-12T00:28:57.000Z
fully_colorization/preprocess/change_conv2d.py
HamsterBiz/Automatic-Video-Colorization-1
e110650d130d3eadfe29073bf445513d10a5b3f6
[ "MIT" ]
2
2020-10-31T11:54:53.000Z
2021-03-26T10:57:34.000Z
# -*- coding: utf-8 -*- # pretrained model parameter에서 slim.conv2d의 variable들을 tf.layers.conv2d로 바꿔줌. old_check_file = "ckpt_woflow/model.ckpt" #기존 파일이름 new_check_file = "ckpt_woflow/model_renamed.ckpt" # 저장할 새로운 파일이름 import tensorflow as tf tf.compat.v1.disable_eager_execution() vars_to_rename = { "individual/g_co...
53.788732
78
0.758576
603
3,819
4.419569
0.131012
0.363227
0.148593
0.064165
0.177111
0.159099
0
0
0
0
0
0.053473
0.098979
3,819
70
79
54.557143
0.721011
0.030636
0
0
0
0
0.676765
0.676765
0
0
0
0
0
1
0
false
0
0.015873
0
0.015873
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
89cb794317763c2361b3ee494c9f942ea5e6b4de
23
py
Python
pyshinobicctvapi/const.py
xannor/yshinobicctvapi
6f96ef103ea10e9cfe4897b690430ea5480d98ba
[ "Unlicense" ]
null
null
null
pyshinobicctvapi/const.py
xannor/yshinobicctvapi
6f96ef103ea10e9cfe4897b690430ea5480d98ba
[ "Unlicense" ]
null
null
null
pyshinobicctvapi/const.py
xannor/yshinobicctvapi
6f96ef103ea10e9cfe4897b690430ea5480d98ba
[ "Unlicense" ]
null
null
null
STREAM_MJPEG = "mjpeg"
11.5
22
0.73913
3
23
5.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.130435
23
1
23
23
0.8
0
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
89ccc2c1f8883a4c5a1c51e4feef89d87005a9b9
4,511
py
Python
DQM/SiStripMonitorClient/python/SiStripDQMSourceConfigOfflineGlobalRunCAF_cfi.py
malbouis/cmssw
16173a30d3f0c9ecc5419c474bb4d272c58b65c8
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/SiStripMonitorClient/python/SiStripDQMSourceConfigOfflineGlobalRunCAF_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/SiStripMonitorClient/python/SiStripDQMSourceConfigOfflineGlobalRunCAF_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # SiStrip DQM Source # Hardware Monitoring from DQM.SiStripMonitorHardware.siStripFEDMonitor_P5_cff import * # Condition DB Monitoring from DQM.SiStripMonitorSummary.SiStripMonitorCondData_cfi import * # DQMEventInfo DqmEventInfoSiStrip = cms.EDAnalyzer( "DQMEventInfo", ...
44.22549
200
0.835957
348
4,511
10.663793
0.218391
0.026677
0.041229
0.048504
0.44651
0.429264
0.429264
0.200485
0
0
0
0.003224
0.106185
4,511
101
201
44.663366
0.917163
0.095544
0
0.214286
0
0
0.094135
0.06555
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
89d0540c48a7bca84cfcb3e101a9c683df469f1f
978
py
Python
chat/management/commands/chat_server.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
1
2018-02-17T08:46:11.000Z
2018-02-17T08:46:11.000Z
chat/management/commands/chat_server.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
chat/management/commands/chat_server.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
import datetime import signal from django.core.management import BaseCommand from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop from chat.tornado import application class Command(BaseCommand): def sig_handler(self, sig, frame): """Catch signal and init callback""" IOLoop...
28.764706
74
0.697342
123
978
5.455285
0.463415
0.071535
0.062593
0
0
0
0
0
0
0
0
0.01671
0.204499
978
33
75
29.636364
0.845758
0.150307
0
0
0
0
0.010989
0
0
0
0
0
0
1
0.157895
false
0
0.315789
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
89d177050e0f9c43ee5d6213695249987e195575
1,407
py
Python
test/test_tags_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
test/test_tags_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
test/test_tags_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ Prisma Cloud Compute API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 21.04.439 Generated by: https://openapi-generator.tech """ from __future__ import absolute_impor...
20.1
124
0.656006
195
1,407
4.358974
0.312821
0.070588
0.127059
0.103529
0.451765
0.390588
0.338824
0.284706
0.115294
0
0
0.027778
0.257996
1,407
69
125
20.391304
0.786398
0.405117
0
0.291667
1
0
0.010309
0
0
0
0
0
0
1
0.333333
false
0.291667
0.208333
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
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
89d2abb22bb276794a319caa2cd6ebdafdc37553
1,287
py
Python
src/lockstep/clients/leads_client.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
1
2022-03-17T00:23:24.000Z
2022-03-17T00:23:24.000Z
src/lockstep/clients/leads_client.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
null
null
null
src/lockstep/clients/leads_client.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
null
null
null
# # Lockstep Software Development Kit for Python # # (c) 2021-2022 Lockstep, Inc. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. # # @author Ted Spence <tspence@lockstep.io> # @copyright 2021-2022 Lockstep, Inc. # @version 2022.4 # ...
31.390244
75
0.672883
167
1,287
5.143713
0.60479
0.034924
0.066356
0.044237
0.072177
0
0
0
0
0
0
0.022704
0.247086
1,287
40
76
32.175
0.863777
0.607615
0
0
0
0
0.053985
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
89d3819062a399528d942dfc8efc7adbf2f43f4d
219
py
Python
lazymodel/models.py
apnarm/django-lazycache
a68f782ff989fadf30fd3ecf0dad0af799b0341b
[ "MIT" ]
null
null
null
lazymodel/models.py
apnarm/django-lazycache
a68f782ff989fadf30fd3ecf0dad0af799b0341b
[ "MIT" ]
null
null
null
lazymodel/models.py
apnarm/django-lazycache
a68f782ff989fadf30fd3ecf0dad0af799b0341b
[ "MIT" ]
null
null
null
# TODO: define these models and get tests working again from django.db import models from lazymodel import ModelWithCaching class Account(ModelWithCaching): pass class PhotoGallery(ModelWithCaching): pass
15.642857
55
0.785388
26
219
6.615385
0.730769
0.232558
0
0
0
0
0
0
0
0
0
0
0.173516
219
13
56
16.846154
0.950276
0.242009
0
0.333333
0
0
0
0
0
0
0
0.076923
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
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
1
0
0
0
1
1
1
0
1
0
0
7
89d3da54bf6c144f8db6cbc9be5e6d799aa65800
2,881
py
Python
addGateways.py
tjschuler/Prisma-Access-Azure-AD-scripts
241b44c05c8db057b1fbe57c3d4d3ea3321df024
[ "MIT" ]
null
null
null
addGateways.py
tjschuler/Prisma-Access-Azure-AD-scripts
241b44c05c8db057b1fbe57c3d4d3ea3321df024
[ "MIT" ]
null
null
null
addGateways.py
tjschuler/Prisma-Access-Azure-AD-scripts
241b44c05c8db057b1fbe57c3d4d3ea3321df024
[ "MIT" ]
null
null
null
import os import json while True: try: filename = str(input("Enter the filename for the .csv: ")) stream = open(filename, 'r').read() break except Exception: print("Couldn't open the file. Try again.") # While the file is a CSV, it is easier to use a quote as the delim...
41.753623
103
0.663311
386
2,881
4.950777
0.362694
0.015699
0.023025
0.017268
0.238619
0.161172
0.127682
0.097331
0.097331
0.097331
0
0.011581
0.220757
2,881
68
104
42.367647
0.839644
0.32454
0
0.212766
0
0
0.287708
0
0
0
0
0
0
1
0
false
0
0.042553
0
0.042553
0.191489
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89d409645521caf21089344eee4ad88ca9bce9a6
146
py
Python
dendrogenous/test/test_functional.py
fmaguire/dendrogenous
56beedf15cfffa35ab64ec088a10af7309faeb83
[ "BSD-3-Clause" ]
null
null
null
dendrogenous/test/test_functional.py
fmaguire/dendrogenous
56beedf15cfffa35ab64ec088a10af7309faeb83
[ "BSD-3-Clause" ]
null
null
null
dendrogenous/test/test_functional.py
fmaguire/dendrogenous
56beedf15cfffa35ab64ec088a10af7309faeb83
[ "BSD-3-Clause" ]
null
null
null
from dendrogenous.test.base import BaseTestCase class testFunctionalDendrogenous(BaseTestCase): """ Functional test of full run """
18.25
47
0.739726
14
146
7.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.184932
146
7
48
20.857143
0.907563
0.184932
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
89d51bd707cac8f01e37c01f5477d44d15ccb882
1,390
py
Python
plugin/content/config.py
zhongshmx/JX3BOT
f00179f100349bd38aa871d76ac1fd36601c3e78
[ "Unlicense" ]
null
null
null
plugin/content/config.py
zhongshmx/JX3BOT
f00179f100349bd38aa871d76ac1fd36601c3e78
[ "Unlicense" ]
null
null
null
plugin/content/config.py
zhongshmx/JX3BOT
f00179f100349bd38aa871d76ac1fd36601c3e78
[ "Unlicense" ]
1
2021-09-28T13:26:06.000Z
2021-09-28T13:26:06.000Z
# -*- coding: utf-8 -* """ @Software : PyCharm @File : config.py @Author : 梦影 @Time : 2021/04/26 20:21:16 """ from plugin.common import bot, common import time class extend: @staticmethod async def select(value): # 查询用户群数据 sql = 'SELECT * FROM `main` WHERE `Value` = %s' data = await bot.cli...
26.226415
92
0.560432
169
1,390
4.609467
0.455621
0.130937
0.154044
0.100128
0.143774
0
0
0
0
0
0
0.020429
0.295683
1,390
52
93
26.730769
0.775281
0.116547
0
0.222222
0
0.027778
0.181518
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89d804d203431be8b125a34a72f55117f6ac54d2
611
py
Python
gen-robots-osx.py
jamesacampbell/random-robots-txt
b008bf74b1f080c82597da80ff0873bea56538cb
[ "MIT" ]
1
2017-12-01T22:06:46.000Z
2017-12-01T22:06:46.000Z
gen-robots-osx.py
jamesacampbell/random-robots-txt
b008bf74b1f080c82597da80ff0873bea56538cb
[ "MIT" ]
null
null
null
gen-robots-osx.py
jamesacampbell/random-robots-txt
b008bf74b1f080c82597da80ff0873bea56538cb
[ "MIT" ]
null
null
null
""" Author: James Campbell What: Generates a random robots.txt on OSX Notes: Only works on Python 3.6+. If gshuf doesnt work do brew install coreutils """ import subprocess # change this for the number of words you want numberofwords = 500 r = subprocess.Popen(f"gshuf -n{numberofwords} /usr/share/dict/words",stdout=...
32.157895
131
0.707038
96
611
4.5
0.729167
0.0625
0
0
0
0
0
0
0
0
0
0.01518
0.13748
611
18
132
33.944444
0.804554
0.315876
0
0
1
0
0.392683
0.112195
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
89d8713aaae9a7376b89ddc2e44e25155e876d3b
22,470
py
Python
src/atlinter/pair_interpolation.py
BlueBrain/atlas-interpolation
c19ca081ee5354d72987e8ee4cacb78d96319c34
[ "Apache-2.0" ]
null
null
null
src/atlinter/pair_interpolation.py
BlueBrain/atlas-interpolation
c19ca081ee5354d72987e8ee4cacb78d96319c34
[ "Apache-2.0" ]
5
2021-11-03T10:50:53.000Z
2022-01-17T12:45:34.000Z
src/atlinter/pair_interpolation.py
BlueBrain/atlas-interpolation
c19ca081ee5354d72987e8ee4cacb78d96319c34
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Blue Brain Project, EPFL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34.097117
87
0.611037
2,688
22,470
4.965774
0.157366
0.055289
0.026071
0.011987
0.376086
0.303042
0.247678
0.217261
0.182799
0.144891
0
0.017471
0.302047
22,470
658
88
34.148936
0.833642
0.441923
0
0.235043
0
0
0.033508
0
0
0
0
0.00304
0
1
0.098291
false
0
0.042735
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89d96a6a92f05825ae249ab68a0f0c9119c3e39c
142
py
Python
azure-vote/azure-vote/mathlib.py
Naven360/azure-voting-app-redis
4db4ec14d3dc7e6973cf15abd35991e7b808f8ea
[ "MIT" ]
null
null
null
azure-vote/azure-vote/mathlib.py
Naven360/azure-voting-app-redis
4db4ec14d3dc7e6973cf15abd35991e7b808f8ea
[ "MIT" ]
null
null
null
azure-vote/azure-vote/mathlib.py
Naven360/azure-voting-app-redis
4db4ec14d3dc7e6973cf15abd35991e7b808f8ea
[ "MIT" ]
null
null
null
def calc_addition(a, b): return a + b def calc_multiply(a, b): return a * b def calc_substraction(a, b): return a - b
12.909091
28
0.577465
24
142
3.291667
0.333333
0.151899
0.303797
0.341772
0.556962
0.43038
0.43038
0
0
0
0
0
0.316901
142
10
29
14.2
0.814433
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
89d9c795b6169e6fd71d4df0205bf5d7c8f7fc9e
3,270
py
Python
tests/test_dyndnsupdate.py
Turgon37/DynDNSUpdate
3282dba416403a2df0dde4e98d862f0d6bc0897f
[ "MIT" ]
null
null
null
tests/test_dyndnsupdate.py
Turgon37/DynDNSUpdate
3282dba416403a2df0dde4e98d862f0d6bc0897f
[ "MIT" ]
null
null
null
tests/test_dyndnsupdate.py
Turgon37/DynDNSUpdate
3282dba416403a2df0dde4e98d862f0d6bc0897f
[ "MIT" ]
1
2015-03-04T01:08:08.000Z
2015-03-04T01:08:08.000Z
# -*- coding: utf8 -*- import http.client import logging import shlex import shutil import socket import ssl import subprocess from unittest.mock import patch, Mock, call from .mocks.connexionmock import createHTTPConnectionMock, createHTTPSConnectionMock import dyndnsupdate # URL settings def test_without_setting...
39.878049
250
0.65841
369
3,270
5.682927
0.298103
0.014306
0.014306
0.12351
0.563662
0.497854
0.463519
0.441106
0.407248
0.287077
0
0.014792
0.214373
3,270
81
251
40.37037
0.801479
0.088073
0
0.473684
0
0.017544
0.189556
0.046117
0
0
0
0
0.263158
1
0.105263
false
0.035088
0.175439
0
0.280702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89d9e48927ec828fd9208dc357f86ea67a28a09c
793
py
Python
scripts/add_come.py
belamu/kanthaus.online
de84010a77e60156cbefb8e014ac6290540ded69
[ "CC0-1.0", "MIT" ]
6
2018-09-03T15:48:19.000Z
2021-09-27T12:04:04.000Z
scripts/add_come.py
belamu/kanthaus.online
de84010a77e60156cbefb8e014ac6290540ded69
[ "CC0-1.0", "MIT" ]
13
2017-12-25T20:44:37.000Z
2020-10-30T09:37:10.000Z
scripts/add_come.py
belamu/kanthaus.online
de84010a77e60156cbefb8e014ac6290540ded69
[ "CC0-1.0", "MIT" ]
14
2018-01-05T19:54:40.000Z
2021-03-24T10:16:31.000Z
#!/usr/bin/env python3 # Usage: ./scripts/add_come.py url = "https://codi.kanthaus.online/come/download" import urllib.request with urllib.request.urlopen(url) as response: markdown = response.read().decode() import yaml parts = markdown.split('---') frontmatter = parts[1] frontmatter = yaml.safe_load(frontmatte...
27.344828
82
0.741488
108
793
5.351852
0.638889
0.17301
0
0
0
0
0
0
0
0
0
0.009943
0.112232
793
28
83
28.321429
0.81108
0.063052
0
0
0
0
0.22942
0.05803
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89da59d4dd7ad791f2d39f92732c1becceee0d21
918
py
Python
classifiers/VGGFace2/helper_scripts/vggface2_80_dataset_script.py
johannaSommer/adversarial_relighting
6749a8b4a60e83b0907550d771643921bcfdea9e
[ "MIT" ]
1
2021-08-28T15:27:09.000Z
2021-08-28T15:27:09.000Z
classifiers/VGGFace2/helper_scripts/vggface2_80_dataset_script.py
johannaSommer/adversarial_relighting
6749a8b4a60e83b0907550d771643921bcfdea9e
[ "MIT" ]
1
2022-03-03T03:24:00.000Z
2022-03-03T03:24:00.000Z
classifiers/VGGFace2/helper_scripts/vggface2_80_dataset_script.py
johannaSommer/adversarial_relighting
6749a8b4a60e83b0907550d771643921bcfdea9e
[ "MIT" ]
1
2021-08-28T15:27:11.000Z
2021-08-28T15:27:11.000Z
import os from shutil import copy path_new = "../../../data/vggface2-80" path_old = "../../../datasets/vggface2/train" # Create destination folder if not os.path.exists(path_new): os.makedirs(path_new) subfolders = [entry for entry in os.scandir(path_old) if entry.is_dir()][0:80] for dir in subfolders: fol...
27.818182
88
0.655773
133
918
4.368421
0.345865
0.060241
0.024096
0.037866
0.216867
0.092943
0.092943
0
0
0
0
0.02521
0.222222
918
32
89
28.6875
0.788515
0.061002
0
0
0
0
0.182771
0.066356
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89dbb17620026a1abd4d449a3a6748a5cdc88ef7
3,935
py
Python
Linked Lists/Python/doubly_linked_list/main.py
tayfunkscu/data-structures
374bb24f543cb729e4d4a0acc62260c9c4330c0e
[ "MIT" ]
null
null
null
Linked Lists/Python/doubly_linked_list/main.py
tayfunkscu/data-structures
374bb24f543cb729e4d4a0acc62260c9c4330c0e
[ "MIT" ]
null
null
null
Linked Lists/Python/doubly_linked_list/main.py
tayfunkscu/data-structures
374bb24f543cb729e4d4a0acc62260c9c4330c0e
[ "MIT" ]
null
null
null
import time class DoublyLinkedList: def __init__(self): self.head = None self.current = None def display(self): it = self.head while it is not None: print(it.value, end=" ") it = it.next print("") def displayReverse(self): it = self...
23.011696
95
0.520712
486
3,935
4.183128
0.176955
0.118052
0.047221
0.031481
0.413674
0.315789
0.256763
0.235121
0.209543
0.111166
0
0.025765
0.368742
3,935
170
96
23.147059
0.792673
0.040915
0
0.488189
0
0
0.022836
0
0
0
0
0
0
1
0.094488
false
0
0.007874
0
0.165354
0.070866
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89dc0192de8a0e22c6c782a2de51f56a3b78a7ae
306
py
Python
stl/load.py
karen-leung-tri/py-stl
87f764a2b8b7c756a239f200b77c3875f959cae6
[ "BSD-3-Clause" ]
null
null
null
stl/load.py
karen-leung-tri/py-stl
87f764a2b8b7c756a239f200b77c3875f959cae6
[ "BSD-3-Clause" ]
null
null
null
stl/load.py
karen-leung-tri/py-stl
87f764a2b8b7c756a239f200b77c3875f959cae6
[ "BSD-3-Clause" ]
null
null
null
from traces import Domain, TimeSeries def from_pandas(df, compact=True): '''TODO''' domain = Domain(df.index[0], df.index[-1]) data = {col: TimeSeries(df[col].T, domain=domain) for col in df.columns} if compact: for val in data.values(): val.compact() return data
25.5
76
0.620915
44
306
4.295455
0.545455
0.126984
0
0
0
0
0
0
0
0
0
0.008584
0.238562
306
11
77
27.818182
0.802575
0.013072
0
0
0
0
0
0
0
0
0
0.090909
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
89dc83bef82356a8e78989258d5bfb95205eaf7c
2,075
py
Python
cw_persistent_bugger.py
yiyinghsieh/python-algorithms-data-structures
26879343d3d83ca431946f8a92def2bc8672f807
[ "BSD-2-Clause" ]
null
null
null
cw_persistent_bugger.py
yiyinghsieh/python-algorithms-data-structures
26879343d3d83ca431946f8a92def2bc8672f807
[ "BSD-2-Clause" ]
null
null
null
cw_persistent_bugger.py
yiyinghsieh/python-algorithms-data-structures
26879343d3d83ca431946f8a92def2bc8672f807
[ "BSD-2-Clause" ]
null
null
null
"""Codewars: Persistent Bugger 6 kyu URL: https://www.codewars.com/kata/55bf01e5a717a0d57e0000ec/train/python Write a function, persistence, that takes in a positive parameter num and returns its multiplicative persistence, which is the number of times you must multiply the digits in num until you reach a single d...
22.802198
72
0.612048
310
2,075
3.964516
0.319355
0.071603
0.052889
0.065094
0.115541
0.09764
0.043938
0
0
0
0
0.074798
0.284819
2,075
90
73
23.055556
0.753369
0.389398
0
0.090909
0
0
0.006395
0
0
0
0
0
0.181818
1
0.090909
false
0
0
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89dcd41c1b43c62ebd5fac901007bae71bac0d77
385
py
Python
dbbackup/utils.py
lefeverd/dbbackup
cbd9f09567efa7e34a450dac462875582f8e02b2
[ "Apache-2.0" ]
null
null
null
dbbackup/utils.py
lefeverd/dbbackup
cbd9f09567efa7e34a450dac462875582f8e02b2
[ "Apache-2.0" ]
1
2021-06-02T00:38:37.000Z
2021-06-02T00:38:37.000Z
dbbackup/utils.py
lefeverd/dbbackup
cbd9f09567efa7e34a450dac462875582f8e02b2
[ "Apache-2.0" ]
null
null
null
import os def get_file_size(absolute_path): return os.stat(absolute_path).st_size def sizeof_fmt(num, suffix='B'): # Thanks https://stackoverflow.com/a/1094933 for unit in ['', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi']: if abs(num) < 1024.0: return "%3.1f%s%s" % (num, unit, suffix) ...
25.666667
63
0.561039
60
385
3.5
0.666667
0.114286
0.07619
0.133333
0
0
0
0
0
0
0
0.067797
0.233766
385
14
64
27.5
0.644068
0.109091
0
0
0
0
0.099707
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
89dd2be94e22bee24353b0eddb7d7b32ae0dc12a
5,953
py
Python
tests/test_vocab.py
kmkurn/text2array
910c349fcbd85299b137c132f218a26860211a6b
[ "Apache-2.0" ]
null
null
null
tests/test_vocab.py
kmkurn/text2array
910c349fcbd85299b137c132f218a26860211a6b
[ "Apache-2.0" ]
null
null
null
tests/test_vocab.py
kmkurn/text2array
910c349fcbd85299b137c132f218a26860211a6b
[ "Apache-2.0" ]
1
2021-02-27T08:53:59.000Z
2021-02-27T08:53:59.000Z
from typing import Iterable, MutableMapping from tqdm import tqdm # type: ignore import pytest from text2array import StringStore, Vocab class TestFromSamples: @staticmethod def from_samples(ss, **kwargs): return Vocab.from_samples(ss, pbar=tqdm(disable=True), **kwargs) def test_ok(self): ...
31.664894
92
0.436923
761
5,953
3.332457
0.144547
0.055205
0.076893
0.086751
0.519322
0.466088
0.415221
0.366325
0.320978
0.295741
0
0.011191
0.324542
5,953
187
93
31.834225
0.619498
0.002016
0
0.386076
0
0
0.078633
0
0
0
0
0
0.278481
1
0.113924
false
0.006329
0.025316
0.006329
0.170886
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89de287bde4163591292e22935587e9251683f36
558
py
Python
ai_guesses_number.py
dedeogluhu/python-beginner-projects
612c0e9fa983d1915bebc1fbc0152aee0976d692
[ "MIT" ]
null
null
null
ai_guesses_number.py
dedeogluhu/python-beginner-projects
612c0e9fa983d1915bebc1fbc0152aee0976d692
[ "MIT" ]
1
2020-09-27T10:12:39.000Z
2020-09-27T10:12:39.000Z
ai_guesses_number.py
dedeogluhu/python-beginner-projects
612c0e9fa983d1915bebc1fbc0152aee0976d692
[ "MIT" ]
null
null
null
import random x = 0 y = 100 counter = 0 print("choose a number between 0-100 and let me guess your number") while True: a = random.randint(int(x),int(y)) print("your number is", a, end = " ") guess = int(input("1.too low\n2.too high\n3.congratulations")) if guess == 3: print("tha...
17.4375
98
0.541219
82
558
3.682927
0.597561
0.099338
0
0
0
0
0
0
0
0
0
0.043478
0.340502
558
32
99
17.4375
0.777174
0
0
0
0
0
0.345259
0.041145
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89de4a6f60e2e4cdcdc3747c6ac5f4201051823c
811
py
Python
input_parameters.py
danush-95/1D-axisymmetric-element
8db6e1f23eb5453da6cc9dba91dfc476ca87bfeb
[ "MIT" ]
null
null
null
input_parameters.py
danush-95/1D-axisymmetric-element
8db6e1f23eb5453da6cc9dba91dfc476ca87bfeb
[ "MIT" ]
2
2021-06-17T19:17:08.000Z
2021-07-29T19:22:02.000Z
input_parameters.py
danush-95/1D-axisymmetric-element
8db6e1f23eb5453da6cc9dba91dfc476ca87bfeb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Danush This file contains all the necessary input parameters for the infinite element problem. Any changes here reflects in the main.py file """ import numpy as np def parameter_list(): """This function returns all the input parameters n_e - no. of elements to be...
26.16129
81
0.601726
135
811
3.525926
0.592593
0.094538
0.05042
0
0
0
0
0
0
0
0
0.060498
0.307028
811
31
82
26.16129
0.786477
0.553637
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89df3eb91818b947a567a6685f3e154490516860
2,477
py
Python
mod_motif.py
aniketk21/tfbs-prediction
dbb98450182f5be7a7f1ff71b8c382fcbba8666b
[ "MIT" ]
2
2017-07-07T07:22:41.000Z
2018-02-11T15:56:08.000Z
mod_motif.py
aniketk21/tfbs-prediction
dbb98450182f5be7a7f1ff71b8c382fcbba8666b
[ "MIT" ]
null
null
null
mod_motif.py
aniketk21/tfbs-prediction
dbb98450182f5be7a7f1ff71b8c382fcbba8666b
[ "MIT" ]
null
null
null
''' mod_motif.py usage: python mod_motif.py dataset.dat gff_file output.dat this will modify the motif scores, found in the `gff_file` ''' import sys mchr = open(sys.argv[1]) gff = open(sys.argv[2]) out = open(sys.argv[3], 'w') mchrl = mchr.readlines() gffl = gff.readlines() for i in range(len(mchrl)): ...
24.77
113
0.50545
375
2,477
3.232
0.269333
0.05198
0.020627
0.037129
0.221122
0.138614
0.105611
0.105611
0.057756
0
0
0.041509
0.358094
2,477
99
114
25.020202
0.720755
0.12717
0
0.102941
0
0
0.027014
0
0
0
0
0
0
0
null
null
0
0.014706
null
null
0.029412
0
0
0
null
0
0
0
0
0
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
89e1a9c53dc6347f086ce73a95f9e26add38a845
129
py
Python
lib/JumpScale/lib/sandboxer/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/lib/sandboxer/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/lib/sandboxer/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j j.base.loader.makeAvailable(j, 'tools') from Sandboxer import Sandboxer j.tools.sandboxer = Sandboxer()
21.5
39
0.790698
18
129
5.666667
0.5
0.117647
0
0
0
0
0
0
0
0
0
0
0.108527
129
5
40
25.8
0.886957
0
0
0
0
0
0.039063
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
89e44893dd1ed37d0cacd918cd6953876b8082e3
5,401
py
Python
sympy/core/compatibility.py
cielavenir/sympy
ada04faf48a4eb6c1529e8a5d49a6f2f9ce2616e
[ "BSD-3-Clause" ]
2
2015-11-13T16:40:57.000Z
2017-09-15T15:37:19.000Z
openrave/sympy/core/compatibility.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
1
2016-06-13T01:29:51.000Z
2016-06-14T00:38:27.000Z
openrave/sympy/core/compatibility.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
null
null
null
""" Reimplementations of constructs introduced in later versions of Python than we support. """ # These are in here because telling if something is an iterable just by calling # hasattr(obj, "__iter__") behaves differently in Python 2 and Python 3. In # particular, hasattr(str, "__iter__") is False in Python 2 and Tr...
30.173184
84
0.595816
744
5,401
4.245968
0.326613
0.02849
0.02849
0.037987
0.156695
0.156695
0.11301
0.091485
0.091485
0.061728
0
0.021406
0.299389
5,401
178
85
30.342697
0.813425
0.460655
0
0.185185
0
0
0.006696
0
0
0
0
0
0
1
0.17284
false
0
0.098765
0.098765
0.469136
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89e4ba7fcaf844dc87baaae6e1b45c22cb420a82
7,289
py
Python
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_SPnet_aichallenger_224_128_0.54G_1.3/code/test/test_single_person.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
1
2020-12-18T14:49:19.000Z
2020-12-18T14:49:19.000Z
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_SPnet_aichallenger_224_128_0.54G_1.3/code/test/test_single_person.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_SPnet_aichallenger_224_128_0.54G_1.3/code/test/test_single_person.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.906404
132
0.625463
1,098
7,289
4.02459
0.225865
0.02444
0.046164
0.023761
0.171985
0.140077
0.124689
0.124689
0.104322
0.104322
0
0.041379
0.224173
7,289
202
133
36.084158
0.740053
0.203732
0
0.030769
0
0
0.067767
0
0
0
0
0
0
1
0.046154
false
0
0.061538
0
0.138462
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89eb1f8d5a7f0d8efc338ec547c038bda3a22a04
5,007
py
Python
instagram_scraper/utils.py
mikhaelsantos/instagram-scraper
8822580afe71668e93e17a4efe3d89f1688a5a21
[ "Unlicense" ]
null
null
null
instagram_scraper/utils.py
mikhaelsantos/instagram-scraper
8822580afe71668e93e17a4efe3d89f1688a5a21
[ "Unlicense" ]
null
null
null
instagram_scraper/utils.py
mikhaelsantos/instagram-scraper
8822580afe71668e93e17a4efe3d89f1688a5a21
[ "Unlicense" ]
1
2018-08-17T12:32:04.000Z
2018-08-17T12:32:04.000Z
import re def extract_tags(item): """Extracts the hashtags from the caption text.""" caption_text = '' if 'caption' in item and item['caption']: if isinstance(item['caption'], dict): caption_text = item['caption']['text'] else: caption_text = item['caption'] el...
108.847826
3,651
0.690633
730
5,007
4.7
0.417808
0.025649
0.012824
0.020985
0.047508
0.026231
0
0
0
0
0
0.166845
0.067505
5,007
45
3,652
111.266667
0.568002
0.04254
0
0.066667
0
0.033333
0.820352
0.784967
0
0
0
0
0
1
0.1
false
0
0.033333
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
89eb41ae8485cac765ccc73868fbd5656b22ac73
8,045
py
Python
riding_forecast.py
GooseDad/Test
544555a2684a50b11c1de9aeb849872bd7502501
[ "Apache-2.0" ]
null
null
null
riding_forecast.py
GooseDad/Test
544555a2684a50b11c1de9aeb849872bd7502501
[ "Apache-2.0" ]
null
null
null
riding_forecast.py
GooseDad/Test
544555a2684a50b11c1de9aeb849872bd7502501
[ "Apache-2.0" ]
null
null
null
import csv import datetime from scipy.stats import norm from regional_poll_interpolator import RegionalPollInterpolator import riding_poll_model party_long_names = { 'cpc': 'Conservative/Conservateur', 'lpc': 'Liberal/Lib', 'ndp': 'NDP-New Democratic Party/NPD-Nouveau Parti d', 'gpc': 'Green Party/Pa...
34.82684
79
0.612679
929
8,045
5.142088
0.284177
0.042705
0.01884
0.023446
0.135859
0.096504
0.057777
0.039355
0.039355
0.039355
0
0.023347
0.270603
8,045
230
80
34.978261
0.790729
0.104413
0
0.10101
0
0
0.193571
0.013417
0
0
0
0
0.010101
1
0.025253
false
0
0.025253
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89ecab6bc7c96ef4ec3c90aee3bd1aeff3579ec5
9,090
py
Python
engine.py
benzhang13/schedule-comparer
31607883a1907a50adee78574377c53a4c531a86
[ "MIT" ]
null
null
null
engine.py
benzhang13/schedule-comparer
31607883a1907a50adee78574377c53a4c531a86
[ "MIT" ]
null
null
null
engine.py
benzhang13/schedule-comparer
31607883a1907a50adee78574377c53a4c531a86
[ "MIT" ]
null
null
null
import discord from app.process_excel import receive_file, read_all_files, delete_file from app.process_ical import receive_file as ical_receive_file from datetime import datetime from dotenv import load_dotenv import os dir_path = os.path.dirname(os.path.realpath(__file__)) client = discord.Client() load_dotenv() d...
53.470588
117
0.577558
1,036
9,090
5.004826
0.201737
0.075217
0.098939
0.119769
0.491032
0.454966
0.406172
0.397879
0.353134
0.333076
0
0.006594
0.332673
9,090
169
118
53.786982
0.84817
0
0
0.348485
0
0.007576
0.209582
0.004844
0
0
0
0
0
1
0.007576
false
0
0.045455
0
0.060606
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89ef27909812cb68db4e32120922fdf1198b7341
1,579
py
Python
debug/fixed_width_rnn.py
JunLi-Galios/unsup_temp_embed_alternating
1b054fd82aadcfe1aa219be17beb77c89efd974e
[ "MIT" ]
null
null
null
debug/fixed_width_rnn.py
JunLi-Galios/unsup_temp_embed_alternating
1b054fd82aadcfe1aa219be17beb77c89efd974e
[ "MIT" ]
null
null
null
debug/fixed_width_rnn.py
JunLi-Galios/unsup_temp_embed_alternating
1b054fd82aadcfe1aa219be17beb77c89efd974e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Baseline for relative time embedding: learn regression model in terms of relative time. """ __author__ = 'Jun Li' __date__ = 'Feberary 2021' import torch import torch.nn as nn from torch.nn import functional as F from ute.utils.arg_pars import opt from ute.utils.logging_setup import logger ...
27.224138
75
0.631412
217
1,579
4.37788
0.43318
0.063158
0.044211
0.04
0
0
0
0
0
0
0
0.015345
0.257125
1,579
57
76
27.701754
0.794544
0.085497
0
0
0
0
0.01324
0
0
0
0
0
0
1
0.105263
false
0
0.131579
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89ef6e59d097c25a325548a902521efbe1e234db
193
py
Python
example/postrequest.py
ayankashyap/speakeasy
5fc69a060eeb5701ab9c061ed7525a061e1388e6
[ "MIT" ]
null
null
null
example/postrequest.py
ayankashyap/speakeasy
5fc69a060eeb5701ab9c061ed7525a061e1388e6
[ "MIT" ]
null
null
null
example/postrequest.py
ayankashyap/speakeasy
5fc69a060eeb5701ab9c061ed7525a061e1388e6
[ "MIT" ]
null
null
null
import requests dictToSend = {'input': 'Triple X'} # change the input text here res = requests.post('http://localhost:5000/convert', json=dictToSend) print('response from server:', res.text)
32.166667
69
0.73057
26
193
5.423077
0.807692
0
0
0
0
0
0
0
0
0
0
0.023529
0.119171
193
5
70
38.6
0.805882
0.134715
0
0
0
0
0.381818
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
89f0162980637253b6ca436d96b92541d4384986
120
py
Python
examples/standalone_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
1
2018-03-30T16:57:49.000Z
2018-03-30T16:57:49.000Z
examples/standalone_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
null
null
null
examples/standalone_app.py
saddy001/remi
1dd886a55b0d2750880253508df43c90db4f0b08
[ "Apache-2.0" ]
null
null
null
from remi import start, App from simple_app import MyApp if __name__ == "__main__": start(MyApp, standalone=True)
17.142857
33
0.741667
17
120
4.705882
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.175
120
6
34
20
0.808081
0
0
0
0
0
0.066667
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
89f0ce7428b537765109cc137d76c48be2e614a8
2,171
py
Python
usermanage/user.py
szatjp/rabbitplan
bae942e4673863027fe7f1936e58f2d9d4ebc5c7
[ "CC0-1.0" ]
null
null
null
usermanage/user.py
szatjp/rabbitplan
bae942e4673863027fe7f1936e58f2d9d4ebc5c7
[ "CC0-1.0" ]
null
null
null
usermanage/user.py
szatjp/rabbitplan
bae942e4673863027fe7f1936e58f2d9d4ebc5c7
[ "CC0-1.0" ]
null
null
null
# coding:utf-8 ''' Created on 2012-3-8 @author: tongjp ''' import datetime from django.contrib import auth from django.http import HttpResponseRedirect from django.shortcuts import render_to_response #from django.views.generic.list_detail import object_list,object_detail from django.contrib.auth.models import User f...
29.739726
97
0.631967
222
2,171
6.094595
0.427928
0.153732
0.028825
0.033259
0.12269
0.12269
0.070953
0
0
0
0
0.005682
0.270382
2,171
73
98
29.739726
0.848485
0.150622
0
0.074074
0
0
0.090452
0
0
0
0
0
0
1
0.185185
false
0.074074
0.222222
0.074074
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
89f10ae8b7023ac10ece591b86c26d8921d5d1cf
8,831
py
Python
v1alpha1/swagger_client/models/detail.py
dinagraves/client-python
c4f77332b402e61a1e1700fa0c746183008d435c
[ "Apache-2.0" ]
10
2017-11-19T20:21:16.000Z
2021-04-23T06:59:33.000Z
v1alpha1/swagger_client/models/detail.py
dinagraves/client-python
c4f77332b402e61a1e1700fa0c746183008d435c
[ "Apache-2.0" ]
1
2021-06-01T21:55:48.000Z
2021-06-01T21:55:48.000Z
v1alpha1/swagger_client/models/detail.py
dinagraves/client-python
c4f77332b402e61a1e1700fa0c746183008d435c
[ "Apache-2.0" ]
1
2019-08-11T16:51:36.000Z
2019-08-11T16:51:36.000Z
# coding: utf-8 """ Grafeas API An API to insert and retrieve annotations on cloud artifacts. OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in co...
31.315603
230
0.615899
1,060
8,831
4.961321
0.181132
0.096977
0.06389
0.034227
0.528047
0.459973
0.416239
0.362616
0.317171
0.285606
0
0.001642
0.310497
8,831
281
231
31.427046
0.862046
0.463594
0
0.23
1
0
0.088082
0.005489
0
0
0
0
0
1
0.2
false
0
0.03
0
0.36
0.01
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
89f111936bad03aca0486268dcb26a7ace32001a
52
py
Python
PythonProjects/23-TkinterCommunication/src/main2.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/23-TkinterCommunication/src/main2.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/23-TkinterCommunication/src/main2.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
import m1e_communication m1e_communication.main(2)
13
25
0.865385
7
52
6.142857
0.714286
0.744186
0
0
0
0
0
0
0
0
0
0.0625
0.076923
52
3
26
17.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
89f1d794c6606211816ae6be84f0a01fc23091fc
2,116
py
Python
flod_organisations/manage.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
1
2017-10-17T12:15:28.000Z
2017-10-17T12:15:28.000Z
flod_organisations/manage.py
Trondheim-kommune/Bookingbasen
58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6
[ "BSD-2-Clause-FreeBSD" ]
6
2021-03-22T17:15:52.000Z
2022-01-13T00:39:58.000Z
flod_organisations/manage.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
1
2019-09-09T13:35:03.000Z
2019-09-09T13:35:03.000Z
# -*- coding: utf-8 -*- import os from flask.ext.script import Manager from run import application from domain import models from database import init_db manager = Manager(application) import json def no_map(model, mapped_models): return model def map_activity_type(model, mapped_models): if "brreg_activ...
28.594595
118
0.712665
267
2,116
5.307116
0.280899
0.100917
0.076217
0.046577
0.132675
0.046577
0.046577
0.046577
0
0
0
0.000571
0.172968
2,116
73
119
28.986301
0.809143
0.009924
0
0.041667
0
0
0.22255
0.030527
0
0
0
0
0
0
null
null
0
0.125
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
89f3cebe6712e73f788766b163b60831e545280b
364
py
Python
spec/construct/test_debug_switch_user.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
11
2018-04-01T03:58:15.000Z
2021-08-14T09:04:55.000Z
spec/construct/test_debug_switch_user.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
73
2016-07-20T10:27:15.000Z
2020-12-17T18:56:46.000Z
spec/construct/test_debug_switch_user.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
37
2016-08-15T08:25:56.000Z
2021-08-28T14:48:46.000Z
# runs in debug mode, so the _read() needs to be called manually import unittest from debug_switch_user import _schema class TestDebugSwitchUser(unittest.TestCase): def test_debug_switch_user(self): r = _schema.parse_file('src/nav_parent_switch.bin') r._read() self.assertEqual(r.code, 1)...
26
64
0.711538
52
364
4.75
0.711538
0.089069
0.121457
0
0
0
0
0
0
0
0
0.013652
0.195055
364
13
65
28
0.829352
0.17033
0
0
0
0
0.083333
0.083333
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89f6226b3375969de1abcdae2bec38f52419b391
4,438
py
Python
train_vae_on_convs.py
tencia/video_predict
fbd84769d595b6518d8174024dd2d862cd48518f
[ "MIT" ]
84
2016-01-08T23:35:22.000Z
2021-06-01T06:52:26.000Z
train_vae_on_convs.py
tencia/video_predict
fbd84769d595b6518d8174024dd2d862cd48518f
[ "MIT" ]
2
2016-05-26T10:32:22.000Z
2018-03-30T11:51:18.000Z
train_vae_on_convs.py
tencia/video_predict
fbd84769d595b6518d8174024dd2d862cd48518f
[ "MIT" ]
34
2016-03-31T21:13:33.000Z
2021-12-11T19:49:38.000Z
import numpy as np import sys import os import theano import theano.tensor as T import lasagne as nn import utils as u import models as m import config as c # # trains a vae using convolutional features (and a separately trained network # for reversing the convolutional feature extraction. def main(data_file = '', n...
48.23913
95
0.698288
676
4,438
4.331361
0.338757
0.021858
0.01127
0.008197
0.118852
0.081967
0.052596
0.052596
0.052596
0
0
0.009348
0.180487
4,438
91
96
48.769231
0.795711
0.128662
0
0
0
0
0.060976
0.006227
0
0
0
0
0
1
0.029851
false
0
0.149254
0
0.19403
0.059701
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89f93f80f884d8be4061c9cfd378e03b3f3d6fbb
214
py
Python
bitmovin_api_sdk/models/file_input_stream_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/models/file_input_stream_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/models/file_input_stream_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class FileInputStreamType(Enum): TTML = "TTML" WEBVTT = "WEBVTT"
19.454545
59
0.766355
29
214
5.517241
0.689655
0
0
0
0
0
0
0
0
0
0
0.005587
0.163551
214
10
60
21.4
0.888268
0.060748
0
0
0
0
0.050251
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
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
1
0
1
0
0
3
89f94f54e520048aaffee6928a77cb1a6e3ef139
4,088
py
Python
src/tools/images.py
jdmonaco/grid-remapping-model
5794b0666d51be4359fd8d74da93dca8e98402bf
[ "MIT" ]
2
2019-03-31T13:56:44.000Z
2022-02-18T18:04:29.000Z
src/tools/images.py
ModelDBRepository/138951
f71d4febd29e6e09bb7370022ab85f4a8f1c81b3
[ "MIT" ]
null
null
null
src/tools/images.py
ModelDBRepository/138951
f71d4febd29e6e09bb7370022ab85f4a8f1c81b3
[ "MIT" ]
null
null
null
#encoding: utf-8 """ tools.images -- Toolbox functions for creating image output Exported namespace: image_blast, array_to_rgba, array_to_image, diffmap Written by Joe Monaco Center for Theoretical Neuroscience Copyright (c) 2007-2008 Columbia Unversity. All Rights Reserved. """ import os as _os import numpy as _N...
31.446154
78
0.611057
631
4,088
3.884311
0.337559
0.022848
0.02244
0.010608
0.041616
0.041616
0.041616
0.013056
0.013056
0.013056
0
0.014075
0.270059
4,088
129
79
31.689922
0.807306
0.012231
0
0.098592
0
0
0.043307
0
0
0
0
0
0.014085
0
null
null
0
0.084507
null
null
0.014085
0
0
0
null
0
0
0
0
0
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
89faf9ca5f17678fb596ebe90143d1485a301df3
1,386
py
Python
python_stock/5/Python5-18.py
hollo08/stockstrategy
09ece2457d653439a8ace80a6ac7dd4da9813846
[ "MIT" ]
1
2020-09-18T15:08:46.000Z
2020-09-18T15:08:46.000Z
python_stock/5/Python5-18.py
hollo08/stockstrategy
09ece2457d653439a8ace80a6ac7dd4da9813846
[ "MIT" ]
null
null
null
python_stock/5/Python5-18.py
hollo08/stockstrategy
09ece2457d653439a8ace80a6ac7dd4da9813846
[ "MIT" ]
2
2022-01-23T03:26:22.000Z
2022-03-28T16:21:01.000Z
#定义一个嵌套字典变量 users = {'num1': {'name': 'admin', 'passwd': 'admin888', 'sex': '1'}, 'num2': {'name': '赵杰', 'passwd': 'qd123456', 'sex': '0'}} list1 = [] #定义两个空的列表 list2 = [] for key1 ,value1 in users.items() : list1.append(value1['name']) #添加用户姓名 list2.append(value1['passwd']) #添加用户密码 prin...
43.3125
127
0.481962
138
1,386
4.84058
0.5
0.035928
0.050898
0.056886
0.056886
0.056886
0
0
0
0
0
0.04955
0.359307
1,386
31
128
44.709677
0.702703
0.135642
0
0.433333
0
0
0.15443
0
0
0
0
0
0
1
0
false
0.133333
0
0
0
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
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
89fb095e61e1c1df946fce48cf100b184e5599dc
424
py
Python
tests/test_hand.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
tests/test_hand.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
tests/test_hand.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # type: ignore '''Provide player hand tests.''' from spades import db from spades.game.models.card import Card from spades.game.models.player import Hand def test_hand(app) -> None: '''Test hand.''' hand = Hand() hand.add_card(Card('A', 'S')) db.session.add(hand) db.sessio...
21.2
42
0.620283
63
424
4.126984
0.460317
0.115385
0.107692
0.153846
0
0
0
0
0
0
0
0.00295
0.200472
424
19
43
22.315789
0.764012
0.17217
0
0
0
0
0.017699
0
0
0
0
0
0.181818
1
0.090909
false
0
0.272727
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89fbeff5e102c8ed93a9dcb609eeb07e8969b34f
1,191
py
Python
Setup.py
jmoore001/JM_Custom_Maya_Tools
a042a497f22fe21b9c70ea56581682731100e259
[ "MIT" ]
1
2021-10-03T18:03:36.000Z
2021-10-03T18:03:36.000Z
Setup.py
jmoore001/JM_Custom_Maya_Tools
a042a497f22fe21b9c70ea56581682731100e259
[ "MIT" ]
null
null
null
Setup.py
jmoore001/JM_Custom_Maya_Tools
a042a497f22fe21b9c70ea56581682731100e259
[ "MIT" ]
null
null
null
import maya.cmds as cmds import os import sys user = os.environ.get('USER') path = 'C:/Users/' + user + '/Documents/maya/JM_Custom_Maya_Tools/Scripts' if path not in sys.path: sys.path.append(path) import InitilizeTools import JMCustomMarkingMenu version = cmds.about(version = True) destWindows = 'C:/Users/' + use...
44.111111
248
0.753988
147
1,191
6.047619
0.421769
0.026997
0.033746
0.064117
0.20135
0.139483
0.105737
0.105737
0.105737
0.105737
0
0.002817
0.105793
1,191
27
249
44.111111
0.831925
0
0
0
0
0.043478
0.384228
0.24245
0
0
0
0
0
1
0
false
0
0.26087
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89fcae0b5887d34e67c9e20f4c13b08e578b22b7
10,072
py
Python
pints/_mcmc/_differential_evolution.py
lisaplag/pints
3de6617e57ba5b395edaca48961bfc5a4b7209b3
[ "RSA-MD" ]
null
null
null
pints/_mcmc/_differential_evolution.py
lisaplag/pints
3de6617e57ba5b395edaca48961bfc5a4b7209b3
[ "RSA-MD" ]
null
null
null
pints/_mcmc/_differential_evolution.py
lisaplag/pints
3de6617e57ba5b395edaca48961bfc5a4b7209b3
[ "RSA-MD" ]
null
null
null
# # Differential evolution MCMC # # This file is part of PINTS (https://github.com/pints-team/pints/) which is # released under the BSD 3-clause license. See accompanying LICENSE.md for # copyright notice and full license details. # from __future__ import absolute_import, division from __future__ import print_function,...
33.461794
79
0.590052
1,254
10,072
4.539075
0.238437
0.042516
0.027056
0.028461
0.228918
0.173753
0.166725
0.148981
0.12825
0.12825
0
0.015933
0.314535
10,072
300
80
33.573333
0.808517
0.32357
0
0.211679
0
0
0.082382
0
0
0
0
0.006667
0
1
0.10219
false
0
0.036496
0
0.19708
0.007299
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
89ffd0729487f13d0cbc63a922ded256cede7242
23,621
py
Python
kms-samples-python/asymmetric.py
QPC-WORLDWIDE67c7x/aliyunu
4ebf00e1b196ecca94c5dcef6da4f32af9ac9578
[ "Apache-2.0" ]
17
2020-01-15T08:46:07.000Z
2022-02-24T15:53:48.000Z
kms-samples-python/asymmetric.py
QPC-WORLDWIDE67c7x/aliyunu
4ebf00e1b196ecca94c5dcef6da4f32af9ac9578
[ "Apache-2.0" ]
3
2020-10-13T20:38:58.000Z
2021-04-30T20:25:43.000Z
kms-samples-python/asymmetric.py
QPC-WORLDWIDE67c7x/aliyunu
4ebf00e1b196ecca94c5dcef6da4f32af9ac9578
[ "Apache-2.0" ]
5
2020-11-24T06:55:57.000Z
2022-02-21T01:15:50.000Z
import argparse import base64 import hashlib import json import ecdsa from Crypto.Cipher import PKCS1_OAEP from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA from Crypto.Signature import pss from Crypto.Signature import pkcs1_15 from ecdsa.util import sigdecode_der from aliyunsdkcore.client import AcsCli...
32.225102
112
0.678718
2,912
23,621
5.224245
0.085852
0.026293
0.042595
0.025242
0.637152
0.557287
0.513048
0.485111
0.470256
0.455531
0
0.019396
0.22298
23,621
732
113
32.269126
0.809469
0.010033
0
0.556569
0
0
0.082858
0.009264
0
0
0
0
0
1
0.195255
false
0
0.04562
0.096715
0.395985
0.023723
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d600a5b699bd81d4f87f286c0412f32f92acc617
55
py
Python
run/task/exception.py
run-hub/run
67072c4e837982aca4962f006c7eb180337e8ebc
[ "Unlicense" ]
1
2016-01-14T19:37:31.000Z
2016-01-14T19:37:31.000Z
run/task/exception.py
roll/run
67072c4e837982aca4962f006c7eb180337e8ebc
[ "Unlicense" ]
null
null
null
run/task/exception.py
roll/run
67072c4e837982aca4962f006c7eb180337e8ebc
[ "Unlicense" ]
null
null
null
class ConvertError(Exception): # Public pass
9.166667
30
0.654545
5
55
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.272727
55
5
31
11
0.9
0.109091
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
d6017026544f420a111eccfab9031abf79be64d6
2,057
py
Python
dataset_initial_exploration.py
diarmuidwhelan/python_project
6964d72ab110a807a59093d4200177e0bf225597
[ "Apache-2.0" ]
null
null
null
dataset_initial_exploration.py
diarmuidwhelan/python_project
6964d72ab110a807a59093d4200177e0bf225597
[ "Apache-2.0" ]
null
null
null
dataset_initial_exploration.py
diarmuidwhelan/python_project
6964d72ab110a807a59093d4200177e0bf225597
[ "Apache-2.0" ]
null
null
null
################################################################################################################### #GMIT Higher Diploma in Data Analytics #Scripting and Programming #Python Project #Diarmuid Whelan, 2018-04-10 #Iris Dataset initial exploration #Will provide summary stats and plots for the Iris Dataset ...
40.333333
156
0.671852
280
2,057
4.925
0.435714
0.023205
0.026106
0.029007
0.129079
0.094271
0.094271
0.094271
0.094271
0.094271
0
0.012263
0.127856
2,057
50
157
41.14
0.75641
0.414195
0
0.083333
0
0
0.266527
0.068206
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d60174b1c29d306cf33605f0ff3e650f9be71eb2
784
py
Python
example_usage/model_wrapping.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
1
2022-01-08T17:08:13.000Z
2022-01-08T17:08:13.000Z
example_usage/model_wrapping.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
5
2021-09-15T18:14:48.000Z
2021-09-19T16:17:51.000Z
example_usage/model_wrapping.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
null
null
null
from stable_baselines_model_based_rl.utils.configuration import Configuration from stable_baselines_model_based_rl.wrapper.wrapped_model_env import WrappedModelEnv cfg_path = './sample_output/CartPole-v1/loss=0.0002335651806788519-lag=4.00-2021-08-14-13-15-36/config.yaml' model_path = './sample_output/CartPole-v1/los...
29.037037
108
0.709184
114
784
4.72807
0.5
0.037106
0.070501
0.089054
0.374768
0.374768
0.25974
0.25974
0.25974
0.25974
0
0.124431
0.159439
784
26
109
30.153846
0.693475
0
0
0
0
0.111111
0.274235
0.23852
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d601de97a6ffd9f68c9eb7d019863b8a412710c4
1,447
py
Python
tests/opytimizer/optimizers/test_ihs.py
macoldibelli/opytimizer
ca0574d520ecc17b1ac875bc6271d466c88d18ac
[ "MIT" ]
null
null
null
tests/opytimizer/optimizers/test_ihs.py
macoldibelli/opytimizer
ca0574d520ecc17b1ac875bc6271d466c88d18ac
[ "MIT" ]
null
null
null
tests/opytimizer/optimizers/test_ihs.py
macoldibelli/opytimizer
ca0574d520ecc17b1ac875bc6271d466c88d18ac
[ "MIT" ]
null
null
null
import sys import numpy as np import pytest from opytimizer.core import function from opytimizer.optimizers import ihs from opytimizer.spaces import search def test_ihs_hyperparams(): hyperparams = { 'HMCR': 0.5, 'PAR_min': 0.5, 'PAR_max': 1, 'bw_min': 2, 'bw_max': 5 ...
19.554054
72
0.615757
224
1,447
3.727679
0.236607
0.150898
0.158084
0.057485
0.300599
0.172455
0.047904
0
0
0
0
0.043145
0.279198
1,447
73
73
19.821918
0.75743
0
0
0.065217
0
0
0.020733
0
0
0
0
0
0.282609
1
0.108696
false
0
0.130435
0.021739
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d60206cec0a5f383271617545d203b99f0b179aa
14,440
py
Python
dialogflow_v2beta1/proto/intent_pb2_grpc.py
gertventer1970/dialogflow-python-client-v2
e78b0e6765f94fb9ecbbc72c9fc30ce7245703e2
[ "Apache-2.0" ]
1
2020-10-14T07:43:19.000Z
2020-10-14T07:43:19.000Z
dialogflow_v2beta1/proto/intent_pb2_grpc.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "Apache-2.0" ]
null
null
null
dialogflow_v2beta1/proto/intent_pb2_grpc.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from dialogflow_v2beta1.proto import ( intent_pb2 as google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_intent__pb2, ) from googl...
40.448179
142
0.696122
1,395
14,440
6.749104
0.091039
0.097504
0.050558
0.061391
0.845353
0.835794
0.809453
0.768561
0.721827
0.721827
0
0.014249
0.236981
14,440
356
143
40.561798
0.840261
0.072091
0
0.682274
1
0
0.09121
0.060029
0
0
0
0
0
1
0.053512
false
0
0.013378
0.023411
0.100334
0
0
0
0
null
0
0
0
1
1
1
1
1
1
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
7
d602616d1834b85919025d38d89d7171948156d1
2,067
py
Python
images/pipelines.py
heranly/imageSpider
2bf802e6401b737a24874a740d50c1f75fe985ce
[ "MIT" ]
1
2020-04-23T11:52:14.000Z
2020-04-23T11:52:14.000Z
images/pipelines.py
heranly/imageSpider
2bf802e6401b737a24874a740d50c1f75fe985ce
[ "MIT" ]
null
null
null
images/pipelines.py
heranly/imageSpider
2bf802e6401b737a24874a740d50c1f75fe985ce
[ "MIT" ]
1
2020-06-09T03:32:48.000Z
2020-06-09T03:32:48.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import hashlib # from bitarray.test_bitarray import to_bytes from scrapy.pipelines.images import ImagesPipeline from scrapy.exc...
39
100
0.641993
252
2,067
5.134921
0.444444
0.030912
0.030912
0.040185
0.074189
0
0
0
0
0
0
0.001975
0.265119
2,067
52
101
39.75
0.849901
0.22061
0
0.085714
0
0
0.139549
0.018148
0
0
0
0
0
1
0.114286
false
0
0.171429
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
0
0
0
0
1
0
d6029c98ea0c42de189e1a9444390288eb1679e6
1,432
py
Python
tests/fixtures/api.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
122
2021-06-21T17:30:29.000Z
2022-03-25T06:21:38.000Z
tests/fixtures/api.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
null
null
null
tests/fixtures/api.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
21
2021-06-22T10:08:15.000Z
2022-03-18T08:57:02.000Z
from contextlib import contextmanager from unittest import mock import meltano.api.app import pytest from flask import request_started from flask_security.utils import login_user, logout_user from meltano.api.models import db as _db from meltano.api.security.identity import create_dev_user from meltano.core.migration_...
22.730159
84
0.678073
186
1,432
5.080645
0.424731
0.068783
0.050794
0.055026
0.055026
0
0
0
0
0
0
0
0.232542
1,432
62
85
23.096774
0.859873
0.085196
0
0.097561
0
0
0.029096
0
0
0
0
0
0
1
0.195122
false
0
0.243902
0.04878
0.560976
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d606af08fdc496e4fe99e4d2b023dc88e875f64d
4,432
py
Python
Web/digital/app/views.py
inishchith/offgrid
90c0100bf06ab025184e60357dd77f83c2edcb45
[ "MIT" ]
3
2018-10-17T11:12:28.000Z
2018-11-29T05:17:25.000Z
Web/digital/app/views.py
inishchith/offgrid
90c0100bf06ab025184e60357dd77f83c2edcb45
[ "MIT" ]
null
null
null
Web/digital/app/views.py
inishchith/offgrid
90c0100bf06ab025184e60357dd77f83c2edcb45
[ "MIT" ]
5
2018-10-16T15:40:40.000Z
2019-01-12T22:14:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render,redirect from django.http import HttpResponse, HttpResponseRedirect from . import queries import requests import googlemaps from .config import * # Create your views here. def index(request): return render(reques...
34.092308
132
0.593637
540
4,432
4.805556
0.290741
0.101734
0.124085
0.076301
0.228131
0.137187
0.114836
0.090173
0.060116
0.060116
0
0.009281
0.24639
4,432
129
133
34.356589
0.767665
0.372969
0
0.283784
0
0
0.097212
0.014307
0
0
0
0
0
1
0.108108
false
0
0.094595
0.027027
0.324324
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d607865fe1f92b56986d3ae6847a22b22564a535
13,683
py
Python
zeenode/zeenode/cogs/main.py
flowitoo/selfbot
8de0c84391bbc08546a7a8b6c657438405da675c
[ "MIT" ]
1
2021-04-26T21:32:14.000Z
2021-04-26T21:32:14.000Z
zeenode/zeenode/cogs/main.py
flowitoo/selfbot
8de0c84391bbc08546a7a8b6c657438405da675c
[ "MIT" ]
null
null
null
zeenode/zeenode/cogs/main.py
flowitoo/selfbot
8de0c84391bbc08546a7a8b6c657438405da675c
[ "MIT" ]
null
null
null
import discord, requests, pyfiglet, datetime, aiohttp, urllib3, asyncio import io from discord.ext import commands as zeenode from zeenode.load import token from zeenode.config import prefix bot = zeenode.Bot(command_prefix=prefix, self_bot=True) bot.remove_command('help') Output = "[ERROR] - " class M...
66.746341
551
0.636337
1,665
13,683
5.160961
0.176577
0.024206
0.021762
0.041545
0.520424
0.468172
0.437915
0.420459
0.387059
0.33888
0
0.073746
0.225024
13,683
204
552
67.073529
0.736609
0
0
0.392045
0
0.0625
0.432302
0.013206
0
0
0.005787
0
0
1
0.011364
false
0.005682
0.028409
0
0.051136
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
0
0
0
0
0
0
0
0
1
0
d6082e04e4d0bf99e02a55271452f4fb2a318c3c
419
py
Python
util/math.py
KAIST-HCIL/DeepFisheyeNet
ecdf9265a0f7c5048ace0636c0ce26260a39f352
[ "MIT" ]
23
2020-10-13T18:10:32.000Z
2022-03-02T04:28:42.000Z
util/math.py
KAIST-HCIL/DeepFisheyeNet
ecdf9265a0f7c5048ace0636c0ce26260a39f352
[ "MIT" ]
1
2021-07-20T02:11:54.000Z
2021-09-24T02:33:27.000Z
util/math.py
KAIST-HCIL/DeepFisheyeNet
ecdf9265a0f7c5048ace0636c0ce26260a39f352
[ "MIT" ]
null
null
null
import torch def argmax_2d(tensor): assert len(tensor.shape) == 4 N, C, H, W = tensor.shape tensor = tensor.reshape(N, C, H*W) _, idx = tensor.max(dim = -1) row, col = unravel_index(idx, H, W) return torch.stack([row, col], dim = 2) def unravel_index(idx, H, W): row = (idx / W).long() ...
20.95
43
0.594272
68
419
3.573529
0.411765
0.032922
0.115226
0.032922
0.139918
0
0
0
0
0
0
0.018987
0.245823
419
19
44
22.052632
0.75
0
0
0
0
0
0
0
0
0
0
0
0.071429
1
0.214286
false
0
0.071429
0.071429
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
d608eeced9ea4fb133349f54be3a4852652eadaf
828
py
Python
Selenium/tests_homepage_information.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
5
2018-02-14T21:11:06.000Z
2020-02-23T14:53:11.000Z
Selenium/tests_homepage_information.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
106
2018-02-09T00:31:05.000Z
2018-03-29T07:28:34.000Z
Selenium/tests_homepage_information.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
6
2018-02-23T17:48:03.000Z
2020-05-14T13:39:36.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys from django.test import TestCase class TestHomepageInformation(TestCase): def test_homepage_shows_correct_information(self): browser_driver = webdriver.Chrome() browser_driver.get("http://127.0.0.1:8000/") self....
39.428571
88
0.724638
101
828
5.712871
0.445545
0.135182
0.088388
0.038128
0.058925
0.058925
0.058925
0
0
0
0
0.035088
0.173913
828
20
89
41.4
0.80848
0
0
0
0
0
0.140097
0
0
0
0
0
0.235294
1
0.117647
false
0
0.176471
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d60929790eb33c556b8ac1934f6844896e136e3a
81
py
Python
version.py
DMcP89/yahoo-oauth
0153be8c7d03c4ab6634fce8c619e4292019f565
[ "MIT" ]
61
2015-06-01T08:03:02.000Z
2021-09-25T14:39:46.000Z
version.py
DMcP89/yahoo-oauth
0153be8c7d03c4ab6634fce8c619e4292019f565
[ "MIT" ]
28
2015-06-01T08:03:30.000Z
2021-09-27T23:08:16.000Z
version.py
DMcP89/yahoo-oauth
0153be8c7d03c4ab6634fce8c619e4292019f565
[ "MIT" ]
19
2015-06-06T15:31:28.000Z
2021-05-23T02:59:31.000Z
# Do not edit this file, pipeline versioning is governed by git tags __version__=
40.5
68
0.802469
13
81
4.692308
1
0
0
0
0
0
0
0
0
0
0
0
0.160494
81
2
69
40.5
0.897059
0.814815
0
0
1
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
d6098e88a068d8b50569303641093b4d642d476a
1,240
py
Python
tests/test_default.py
krlsdu/ansible-sdkman
31473737d0e46858932b1386556cbda85478dbc6
[ "Apache-2.0" ]
null
null
null
tests/test_default.py
krlsdu/ansible-sdkman
31473737d0e46858932b1386556cbda85478dbc6
[ "Apache-2.0" ]
null
null
null
tests/test_default.py
krlsdu/ansible-sdkman
31473737d0e46858932b1386556cbda85478dbc6
[ "Apache-2.0" ]
null
null
null
sdkman_dir = '/usr/local/sdkman' def script_wrap(cmds): sdk_init_tmpl = 'export SDKMAN_DIR={0} && source {0}/bin/sdkman-init.sh' sdk_init = sdk_init_tmpl.format(sdkman_dir) result_cmds = [sdk_init] + cmds return "/bin/bash -c '{0}'".format('; '.join(result_cmds)) def check_run_for_rc_and_result(cmds...
30.243902
76
0.682258
185
1,240
4.318919
0.351351
0.052566
0.041302
0.048811
0.212766
0.142678
0.142678
0.142678
0.142678
0
0
0.017647
0.177419
1,240
40
77
31
0.765686
0
0
0.066667
0
0
0.210484
0.03629
0
0
0
0
0.3
1
0.166667
false
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d609e197017d18ff638787a76403b554be370344
2,102
py
Python
research_scripts/models/metrics.py
mikeyo89/job-scraper
2cbebc377d34afe9efd740a94ef6c7b2460f9598
[ "MIT" ]
1
2021-12-27T23:53:28.000Z
2021-12-27T23:53:28.000Z
research_scripts/models/metrics.py
mikeyo89/job-scraper
2cbebc377d34afe9efd740a94ef6c7b2460f9598
[ "MIT" ]
null
null
null
research_scripts/models/metrics.py
mikeyo89/job-scraper
2cbebc377d34afe9efd740a94ef6c7b2460f9598
[ "MIT" ]
null
null
null
# Metrics dataset that comprises of vectors which will be searched for in job postings. pl = [ ['python', False], ['c#', False], ['c', False], ['c++', False], ['ruby', False], ['java', False], [['javascript', 'js'], False], [['html', 'html5'], False], ['css', False], ['sql', Fal...
26.275
87
0.486679
201
2,102
5.089552
0.557214
0.034213
0.032258
0.02346
0.022483
0
0
0
0
0
0
0.000621
0.233587
2,102
80
88
26.275
0.634389
0.040438
0
0
0
0
0.296627
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d60a7fac3a95dca71de1420dd67565ca4da447a2
3,850
py
Python
image-segmentation/config/config.py
swcho84/image-segmentation
ef9b9b3d832e9efe6f43522cc5ca0e17279d6608
[ "MIT" ]
64
2019-03-09T08:55:11.000Z
2022-01-27T07:08:02.000Z
image-segmentation/config/config.py
swcho84/image-segmentation
ef9b9b3d832e9efe6f43522cc5ca0e17279d6608
[ "MIT" ]
2
2019-11-07T11:49:13.000Z
2020-01-16T14:39:03.000Z
image-segmentation/config/config.py
swcho84/image-segmentation
ef9b9b3d832e9efe6f43522cc5ca0e17279d6608
[ "MIT" ]
21
2019-03-09T08:56:35.000Z
2022-03-02T12:24:43.000Z
from configparser import ConfigParser import json import os from ast import literal_eval type_caster = { 'int': int, 'str': lambda x: x if x.lower() != 'none' else None, 'float': float, 'bool': lambda x: True if x == 'True' else False if x == 'False' else exec("raise Exception('invalid bool value: {}'....
36.666667
168
0.543896
472
3,850
4.144068
0.28178
0.018405
0.018405
0.019939
0.093047
0.021472
0
0
0
0
0
0.00662
0.293766
3,850
104
169
37.019231
0.712762
0
0
0.091954
0
0.011494
0.144675
0.020779
0
0
0
0
0.022989
1
0.08046
false
0.022989
0.045977
0
0.195402
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d60b68696ab0e13ca68be8ff221db4648d047fae
2,676
py
Python
examples/benchmarks/plot_label_shift.py
ltiao/gp-dre
5997a74826636a58662f5fa8c41a81d32ba8baa2
[ "MIT" ]
null
null
null
examples/benchmarks/plot_label_shift.py
ltiao/gp-dre
5997a74826636a58662f5fa8c41a81d32ba8baa2
[ "MIT" ]
null
null
null
examples/benchmarks/plot_label_shift.py
ltiao/gp-dre
5997a74826636a58662f5fa8c41a81d32ba8baa2
[ "MIT" ]
1
2021-11-10T00:52:11.000Z
2021-11-10T00:52:11.000Z
# -*- coding: utf-8 -*- """ Label Shift =========== """ # sphinx_gallery_thumbnail_number = 2 import matplotlib.pyplot as plt import seaborn as sns import numpy as np import pandas as pd from gpdre.benchmarks import LabelShift from gpdre.applications.covariate_shift.benchmarks import regression_metric from gpdre.dat...
27.306122
112
0.662182
347
2,676
4.827089
0.342939
0.059104
0.047761
0.028657
0.117612
0.058507
0.058507
0.058507
0.058507
0.058507
0
0.007711
0.224589
2,676
97
113
27.587629
0.799518
0.041106
0
0.035714
0
0
0.036078
0
0
0
0
0
0
1
0.017857
false
0
0.178571
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d60bb3f33489816451b9a463c16331528a0cc38f
353
py
Python
Bot/get_info.py
dnrhead/mensa_bot
a10b04512219115894b008d50fb7a0970d5d1a44
[ "Apache-2.0" ]
null
null
null
Bot/get_info.py
dnrhead/mensa_bot
a10b04512219115894b008d50fb7a0970d5d1a44
[ "Apache-2.0" ]
null
null
null
Bot/get_info.py
dnrhead/mensa_bot
a10b04512219115894b008d50fb7a0970d5d1a44
[ "Apache-2.0" ]
null
null
null
from db_tools import get_all_user_and_mensas, get_all_mensa_subscriptions,\ get_users users_mensas = get_all_user_and_mensas() print("unique sending messages %d" % len(users_mensas)) print("unique users %d" % len(get_users())) mensas = get_all_mensa_subscriptions() print("unique mensas %d" % len(mensas)) print("...
29.416667
75
0.767705
54
353
4.666667
0.37037
0.095238
0.142857
0.103175
0.365079
0
0
0
0
0
0
0
0.113314
353
11
76
32.090909
0.805112
0
0
0
0
0
0.206799
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.555556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
d6108461167974069c65c6a572584dc99e5f0b27
65
py
Python
src/oceansat/commandline.py
brorfred/oceansat
5b336e385ca5efee5e8c59da97e8f9435b0fd3de
[ "MIT" ]
null
null
null
src/oceansat/commandline.py
brorfred/oceansat
5b336e385ca5efee5e8c59da97e8f9435b0fd3de
[ "MIT" ]
null
null
null
src/oceansat/commandline.py
brorfred/oceansat
5b336e385ca5efee5e8c59da97e8f9435b0fd3de
[ "MIT" ]
null
null
null
import oceansat def version(): print(oceansat.__version__)
10.833333
31
0.738462
7
65
6.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.169231
65
5
32
13
0.814815
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
d6108b5fa4eb3387a55232b0c5fb47448ce7b83d
2,915
py
Python
tests/test_data_generators/test_generate.py
elenakulgavaya/fild
8cfaa158d5c763d826a08f8edc6bde9c4ac96b69
[ "MIT" ]
null
null
null
tests/test_data_generators/test_generate.py
elenakulgavaya/fild
8cfaa158d5c763d826a08f8edc6bde9c4ac96b69
[ "MIT" ]
null
null
null
tests/test_data_generators/test_generate.py
elenakulgavaya/fild
8cfaa158d5c763d826a08f8edc6bde9c4ac96b69
[ "MIT" ]
null
null
null
import unittest from tests.data import AllowedNone, ComposeOptional, Mix, Optional class TestGenerate(unittest.TestCase): def test_generate_field_is_generated(self): entity = Optional() entity.OptInt.generate() self.assertTrue(entity.OptInt.generated) def test_generate_field_value(se...
34.294118
73
0.716295
298
2,915
6.731544
0.147651
0.052343
0.097208
0.069791
0.655533
0.585244
0.502493
0.332004
0.239282
0.137587
0
0
0.194511
2,915
84
74
34.702381
0.854344
0
0
0.430769
1
0
0.002744
0
0
0
0
0
0.230769
1
0.230769
false
0
0.030769
0
0.276923
0
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
1
0
0
0
0
0
0
0
2
d611269e7267ec4b426e96b22d2c98447876859d
3,902
py
Python
and_beyond/client/ui/accounts/create_account_menu.py
Gaming32/Pyweek32Sandbox
eb29f43f11644a9bbf756c0ff09c74d6ddc4d071
[ "MIT" ]
1
2021-09-27T11:33:37.000Z
2021-09-27T11:33:37.000Z
and_beyond/client/ui/accounts/create_account_menu.py
Gaming32/and-Beyond
eb29f43f11644a9bbf756c0ff09c74d6ddc4d071
[ "MIT" ]
null
null
null
and_beyond/client/ui/accounts/create_account_menu.py
Gaming32/and-Beyond
eb29f43f11644a9bbf756c0ff09c74d6ddc4d071
[ "MIT" ]
null
null
null
import logging from asyncio.events import AbstractEventLoop from typing import TYPE_CHECKING from and_beyond.client import globals from and_beyond.client.ui import Ui, UiButton, UiLabel, UiTextInput from and_beyond.client.ui.label_screen import LabelScreen from and_beyond.common import USERNAME_REGEX from zxcvbn impor...
41.073684
112
0.636853
453
3,902
5.245033
0.251656
0.05303
0.064394
0.050505
0.313973
0.195286
0.093434
0.093434
0.093434
0.044613
0
0.002474
0.274987
3,902
94
113
41.510638
0.837398
0
0
0.16092
0
0
0.120964
0.012301
0
0
0
0
0
1
0.034483
false
0.183908
0.103448
0
0.264368
0
0
0
0
null
0
0
0
0
0
0
0
0
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
d61213ab7de50c9a60bac067952659cf38ee277c
373
py
Python
decode_can.py
awharkrider/CPSC_3320_HACK_A_CAR
531bd170a9701808e1e348ff1de50a1c7a586414
[ "MIT" ]
null
null
null
decode_can.py
awharkrider/CPSC_3320_HACK_A_CAR
531bd170a9701808e1e348ff1de50a1c7a586414
[ "MIT" ]
null
null
null
decode_can.py
awharkrider/CPSC_3320_HACK_A_CAR
531bd170a9701808e1e348ff1de50a1c7a586414
[ "MIT" ]
null
null
null
from pyvit.file.db import jsondb from pyvit.hw import socketcan parser = jsondb.JsonDbParser() b = parser.parse('examples/example_db.json') dev = socketcan.SocketCanDev('vcan0') dev.start() # Read in file and # decode frame and print while True: frame = dev.recv() signals = b.parse_frame(frame) if si...
17.761905
44
0.678284
53
373
4.735849
0.603774
0.071713
0
0
0
0
0
0
0
0
0
0.003425
0.217158
373
21
45
17.761905
0.856164
0.104558
0
0
0
0
0.087349
0.072289
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6125c1539b6dd4f0fdf3d0cb8cf22747f85dd3d
17,224
py
Python
Graficos.py
Dashboard-Plotly/Dashboard-CO2
c96ae541cdc68dde6afe67a20dbb40ac86a27128
[ "MIT" ]
null
null
null
Graficos.py
Dashboard-Plotly/Dashboard-CO2
c96ae541cdc68dde6afe67a20dbb40ac86a27128
[ "MIT" ]
null
null
null
Graficos.py
Dashboard-Plotly/Dashboard-CO2
c96ae541cdc68dde6afe67a20dbb40ac86a27128
[ "MIT" ]
null
null
null
#Importação das bibliotecas from pandas import read_csv from dash import Dash, html, dcc, Input, Output import plotly.express as px app = Dash(__name__, title='Emissão de CO2') df = read_csv("annual-co2-emissions-per-country.csv") df_array = df.values #Tranformando tudo o que estiver no df em uma lista para parar d...
43.38539
769
0.474106
1,699
17,224
4.739847
0.281931
0.037253
0.03775
0.021855
0.250466
0.191854
0.159692
0.096362
0.061344
0.057122
0
0.031469
0.385625
17,224
397
770
43.38539
0.728974
0.123258
0
0.35061
0
0.036585
0.297669
0.021651
0
0
0
0.002519
0
1
0.006098
false
0
0.009146
0
0.021341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6128aaf87e5dbb02bad2f67476de3832d5e901a
1,257
py
Python
fastapi-master-api/app/service/metrics.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
1
2021-12-25T09:19:25.000Z
2021-12-25T09:19:25.000Z
fastapi-master-api/app/service/metrics.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
fastapi-master-api/app/service/metrics.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
from typing import List from app.domain import metric as domain from app.domain.user_token import LoggedUser from app.repository.database.metrics import MetricsRepo, metrics_repo from app.service.authorization import authorize from sqlalchemy.orm import Session class CreateMetric: def __init__( self, ...
25.653061
69
0.611774
139
1,257
5.33813
0.258993
0.080863
0.06469
0.051213
0.067385
0
0
0
0
0
0
0
0.30708
1,257
48
70
26.1875
0.851894
0
0
0
0
0
0.010342
0
0
0
0
0
0
1
0.121951
false
0
0.146341
0.04878
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d6169cbe2973f8bdef157451116e0006c93172c8
683
py
Python
supriya/ugens/PV_BinScramble.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_BinScramble.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_BinScramble.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya.ugens.PV_ChainUGen import PV_ChainUGen class PV_BinScramble(PV_ChainUGen): """ Scrambles bins. :: >>> pv_chain = supriya.ugens.FFT( ... source=supriya.ugens.WhiteNoise.ar(), ... ) >>> pv_bin_scramble = supriya.ugens.PV_BinScramble....
22.032258
73
0.525622
69
683
4.956522
0.449275
0.140351
0.081871
0.046784
0
0
0
0
0
0
0
0.017058
0.313324
683
30
74
22.766667
0.712154
0.524158
0
0
0
0
0.094488
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d617cb53c1aff6113206c5e5d387df8dda280fca
8,490
py
Python
CS111_CS213/TreeGenerator/turtlegraphics.py
jawaff/CollegeCS
ab7d24bd78719842f8790cc0e6c06dd1b327e416
[ "Apache-2.0" ]
null
null
null
CS111_CS213/TreeGenerator/turtlegraphics.py
jawaff/CollegeCS
ab7d24bd78719842f8790cc0e6c06dd1b327e416
[ "Apache-2.0" ]
null
null
null
CS111_CS213/TreeGenerator/turtlegraphics.py
jawaff/CollegeCS
ab7d24bd78719842f8790cc0e6c06dd1b327e416
[ "Apache-2.0" ]
null
null
null
""" turtlegraphics.py This module supports simple Turtle Graphics. The Turtle class represents a turtle object in a graphics window. To instantiate a turtle, enter turtle = Turtle() # Default window size 200 x 200 or turtle = Turtle(width = 500, height = 500) # Window size 500 x 500 The turtl...
29.894366
76
0.596702
1,082
8,490
4.567468
0.263401
0.031566
0.002428
0.00607
0.098341
0.074059
0.032376
0.032376
0.032376
0.032376
0
0.011636
0.291402
8,490
283
77
30
0.80984
0.061131
0
0.125749
0
0
0.030184
0
0
0
0
0
0
0
null
null
0
0.041916
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
d6197c8f322c6e106cd13638291841c5e76b145d
63
py
Python
FilterTesting/parameters.py
nikobotics/QuadrotorTesting
470f5dc9512b8dcce34bb1656b74fbf9c79c1dc0
[ "MIT" ]
null
null
null
FilterTesting/parameters.py
nikobotics/QuadrotorTesting
470f5dc9512b8dcce34bb1656b74fbf9c79c1dc0
[ "MIT" ]
null
null
null
FilterTesting/parameters.py
nikobotics/QuadrotorTesting
470f5dc9512b8dcce34bb1656b74fbf9c79c1dc0
[ "MIT" ]
null
null
null
SIZE = 1000 NUM_SENSORS = 2 DETERMINE_EFFECTIVENESS_TRIALS = 10
21
35
0.825397
9
63
5.444444
1
0
0
0
0
0
0
0
0
0
0
0.127273
0.126984
63
3
35
21
0.763636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d619e59499d4ab2065147196c6ae2bffbc2f56cd
4,310
py
Python
traiders/backend/api/serializers/comment.py
rdilruba/bounswe2019group2
b373908a4a8e92481f359297aba07245f0a23c1c
[ "Apache-2.0" ]
11
2019-02-15T12:08:32.000Z
2019-11-14T19:25:09.000Z
traiders/backend/api/serializers/comment.py
bounswe/bounswe2019group2
05d41cf7b6bc1b3f994e82495d2a885a6eaa7cf3
[ "Apache-2.0" ]
279
2019-02-13T14:57:39.000Z
2022-03-12T00:02:30.000Z
traiders/backend/api/serializers/comment.py
rdilruba/bounswe2019group2
b373908a4a8e92481f359297aba07245f0a23c1c
[ "Apache-2.0" ]
13
2019-03-20T08:30:55.000Z
2021-01-31T16:49:14.000Z
from rest_framework import serializers, fields from rest_framework.exceptions import PermissionDenied from ..models import ArticleComment, EquipmentComment, Equipment from . import UserSerializer class IsLiked(serializers.BooleanField): def get_attribute(self, instance): if self.context['request'].user.i...
38.828829
109
0.628306
475
4,310
5.572632
0.24
0.054023
0.074802
0.083113
0.430298
0.39252
0.344919
0.294673
0.238761
0.238761
0
0
0.264037
4,310
110
110
39.181818
0.834489
0.015313
0
0.283951
0
0
0.15818
0
0
0
0
0
0
1
0.111111
false
0
0.049383
0.024691
0.419753
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d619e65c055a22f7471ea471a7d73c6dedb9a000
2,614
py
Python
contrastive_dataloader.py
rajahaseeb147/Alzheimers_final
dd9b8607ec47b4317cb139e8c78c3c0b3c8ca1b8
[ "MIT" ]
null
null
null
contrastive_dataloader.py
rajahaseeb147/Alzheimers_final
dd9b8607ec47b4317cb139e8c78c3c0b3c8ca1b8
[ "MIT" ]
null
null
null
contrastive_dataloader.py
rajahaseeb147/Alzheimers_final
dd9b8607ec47b4317cb139e8c78c3c0b3c8ca1b8
[ "MIT" ]
null
null
null
import os import torch import torch.utils.data as data import torchvision.transforms as transform import numpy as np from PIL import Image import cv2 class AlzhDataset(data.Dataset): def __init__(self, type, root='/data/tm/alzh/New_dataset/train', transform=None): self.transform = transform if type...
35.324324
85
0.571155
349
2,614
4.045845
0.283668
0.038244
0.063739
0.089235
0.283286
0.247875
0.247875
0.227337
0.227337
0.227337
0
0.014795
0.301836
2,614
74
86
35.324324
0.758904
0.029839
0
0.096774
0
0
0.104826
0.054193
0
0
0
0
0
1
0.080645
false
0
0.112903
0.016129
0.274194
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d61b02e3c2cbe185d9b13c07deb6296c38aee33e
3,346
py
Python
resources/ganttChartDrawer.py
judgyknowitall/ethogram_maker
605001243717bc6f10e32b24f09de2652b115676
[ "MIT" ]
null
null
null
resources/ganttChartDrawer.py
judgyknowitall/ethogram_maker
605001243717bc6f10e32b24f09de2652b115676
[ "MIT" ]
null
null
null
resources/ganttChartDrawer.py
judgyknowitall/ethogram_maker
605001243717bc6f10e32b24f09de2652b115676
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 27 12:05:33 2021 @author: Zahra Ghavasieh Draws a Gantt chart given params """ # Importing the matplotlib.pyplot import matplotlib.pyplot as plt # Colours used for bars in chart clrs = [ #'black', # Groom 'tab:orange', # In Place Activi...
25.937984
89
0.559474
457
3,346
4.070022
0.315098
0.018817
0.026882
0.017742
0.619892
0.541935
0.536559
0.536559
0.536559
0.486022
0
0.028217
0.300956
3,346
129
90
25.937985
0.766994
0.306037
0
0.269231
0
0
0.120614
0
0
0
0
0
0
1
0.038462
false
0
0.019231
0
0.057692
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d61b385ee63fb2df0ad78f9cdd0a14b2fe85c71e
367
py
Python
setup.py
nontas/trafficsignrecognition
dcf0c2657c14098842ee5f9b9a5cf72be8be7d52
[ "BSD-3-Clause" ]
null
null
null
setup.py
nontas/trafficsignrecognition
dcf0c2657c14098842ee5f9b9a5cf72be8be7d52
[ "BSD-3-Clause" ]
1
2017-03-25T10:07:28.000Z
2017-03-28T08:34:41.000Z
setup.py
nontas/trafficsignrecognition
dcf0c2657c14098842ee5f9b9a5cf72be8be7d52
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name='trafficsignrecognition', version='0.1', description="Traffic Sign Detection and Recognition", author='Epameinondas Antonakos', author_email='antonakosn@gmail.com', packages=find_packages(), install_requires=['menpofit>=0.4,<0.5', ...
26.214286
57
0.667575
41
367
5.878049
0.780488
0.099585
0
0
0
0
0
0
0
0
0
0.033898
0.196185
367
13
58
28.230769
0.783051
0
0
0
0
0
0.395095
0.119891
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
d61bab398771bbaa9398eaa8f2cd33b77ed4ebdf
5,834
py
Python
data-prep/Landsat/landsat-calculate-yearly-stats.py
jjmcnelis/VegMapper
9513e121fa6495cf8f61d20908017412a73b1c2e
[ "Apache-2.0" ]
null
null
null
data-prep/Landsat/landsat-calculate-yearly-stats.py
jjmcnelis/VegMapper
9513e121fa6495cf8f61d20908017412a73b1c2e
[ "Apache-2.0" ]
null
null
null
data-prep/Landsat/landsat-calculate-yearly-stats.py
jjmcnelis/VegMapper
9513e121fa6495cf8f61d20908017412a73b1c2e
[ "Apache-2.0" ]
null
null
null
import os import sys import numpy as np import rasterio import dask import dask.array as da import certifi import boto3 from botocore.exceptions import ClientError """ This file calculates yearly NDVI statistics (min, mean, max, standard deviation) per pixel for Landsat tiles in an S3 bucket and outputs a .tif file. ...
37.63871
120
0.631471
792
5,834
4.550505
0.334596
0.017758
0.013873
0.024972
0.125416
0.119867
0.070477
0.04717
0.028857
0.028857
0
0.028651
0.264141
5,834
154
121
37.883117
0.810855
0.165924
0
0.141176
0
0
0.130299
0.012484
0
0
0
0.006494
0
1
0
false
0
0.105882
0
0.105882
0.105882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d61c05a3a19fdc413a5ccfadf754e3b2889f7b2e
7,588
py
Python
apps/fifth_edition/tests/test_NPC_view_get.py
tylerfrenchx13/django-dnd
b0c78c51aebeed4195fd91a3e55c313c645f9c3b
[ "MIT" ]
null
null
null
apps/fifth_edition/tests/test_NPC_view_get.py
tylerfrenchx13/django-dnd
b0c78c51aebeed4195fd91a3e55c313c645f9c3b
[ "MIT" ]
null
null
null
apps/fifth_edition/tests/test_NPC_view_get.py
tylerfrenchx13/django-dnd
b0c78c51aebeed4195fd91a3e55c313c645f9c3b
[ "MIT" ]
null
null
null
from apps.fifth_edition.models import NPC from django.test import TestCase from rest_framework.test import APIClient class TestNPCViewGET(TestCase): """ Test class to verify functionality of the NPCViewGET API view. """ def setUp(self): """ Method to create required test data ...
30.845528
93
0.6136
902
7,588
5.034368
0.13082
0.048447
0.024224
0.031491
0.82625
0.822506
0.81634
0.808853
0.800925
0.74477
0
0.014098
0.289536
7,588
245
94
30.971429
0.828232
0.306537
0
0.431373
0
0
0.106202
0.018461
0
0
0
0
0.264706
1
0.127451
false
0.009804
0.029412
0
0.166667
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
d61c1827e9bee48f783ccf9d425e7b3db2637bbc
815
py
Python
conans/test/unittests/tools/microsoft/test_msbuild.py
thombet/conan
eee0d568ee631fffe1856a5da1c23f47dcdf5c1c
[ "MIT" ]
1
2021-05-29T16:44:56.000Z
2021-05-29T16:44:56.000Z
conans/test/unittests/tools/microsoft/test_msbuild.py
thombet/conan
eee0d568ee631fffe1856a5da1c23f47dcdf5c1c
[ "MIT" ]
1
2019-06-07T03:02:02.000Z
2019-06-07T03:02:02.000Z
conans/test/unittests/tools/microsoft/test_msbuild.py
thombet/conan
eee0d568ee631fffe1856a5da1c23f47dcdf5c1c
[ "MIT" ]
1
2021-08-20T19:47:51.000Z
2021-08-20T19:47:51.000Z
import textwrap from conan.tools.microsoft import MSBuild from conans.model.conf import ConfDefinition from conans.test.utils.mocks import ConanFileMock, MockSettings def test_msbuild_cpu_count(): c = ConfDefinition() c.loads(textwrap.dedent("""\ tools.microsoft.msbuild:max_cpu_count=23 tools...
29.107143
63
0.6
84
815
5.714286
0.583333
0.058333
0
0
0
0
0
0
0
0
0
0.0189
0.28589
815
27
64
30.185185
0.805842
0
0
0
0
0
0.203681
0.078528
0
0
0
0
0.047619
1
0.047619
false
0
0.190476
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d61c63b1dd316f86e8ffb3040c524a54af923622
3,549
py
Python
main/tests/test_authentication.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
5
2021-08-16T16:32:41.000Z
2022-02-22T03:47:49.000Z
main/tests/test_authentication.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
7
2021-04-12T14:48:48.000Z
2022-02-14T08:30:57.000Z
main/tests/test_authentication.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
1
2021-04-28T14:28:34.000Z
2021-04-28T14:28:34.000Z
from main.authorization import is_admin, is_guest, is_user from django.contrib.messages.api import get_messages from django.test.client import Client from main.forms import LoginForm, RegisterForm from main.models import User from django.test import TestCase from django.urls import reverse class TestAuthentication(Te...
51.434783
148
0.691744
424
3,549
5.683962
0.273585
0.062241
0.052282
0.045643
0.508299
0.473029
0.473029
0.429876
0.344398
0.344398
0
0.009431
0.193294
3,549
69
148
51.434783
0.832344
0.108199
0
0.321429
0
0
0.119048
0
0
0
0
0
0.375
1
0.071429
false
0.107143
0.125
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d61c9be7e1ffc0dbe58eeae48ca58bb9133715d1
1,695
py
Python
capturemelody.py
eashwar/super-midio-bros
e8572d257efa071b57b4c6107fab03427fa1b64e
[ "MIT" ]
null
null
null
capturemelody.py
eashwar/super-midio-bros
e8572d257efa071b57b4c6107fab03427fa1b64e
[ "MIT" ]
null
null
null
capturemelody.py
eashwar/super-midio-bros
e8572d257efa071b57b4c6107fab03427fa1b64e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Contains an example of midi input, and a separate example of midi output. By default it runs the output example. python midi.py --output python midi.py --input """ import sys import os import pygame import pygame.midi from pygame.locals import * try: # Ensure set available for output exa...
21.455696
76
0.585251
233
1,695
4.090129
0.369099
0.075551
0.047219
0.053515
0.100735
0.100735
0.06086
0
0
0
0
0.009507
0.317404
1,695
79
77
21.455696
0.814175
0.149853
0
0.125
0
0
0.02933
0
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.166667
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d61db194bfc91c5eef18a8f2e3d3830fbbe2299c
271
py
Python
Leetcode/Palindrome Partitioning II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Leetcode/Palindrome Partitioning II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Leetcode/Palindrome Partitioning II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
class Solution(object): def minCut(self, s): """ :type s: str :rtype: int """ H = [[True for _ in xrange(len(s))] for _ in xrange(len(s))] def isPalindrome(self, s): if s == s[::-1]: return True
16.9375
68
0.446494
34
271
3.5
0.617647
0.084034
0.184874
0.235294
0.252101
0
0
0
0
0
0
0.006135
0.398524
271
16
69
16.9375
0.723926
0.088561
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
d61ecb31d1af9c59bf9f73777d714e9801f16ffd
837
py
Python
decide-tree/decide_prune.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
decide-tree/decide_prune.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
decide-tree/decide_prune.py
ubear/MachineLearn
c24947f7078269f51bf7ee0d2167ca6b71152d1e
[ "MIT" ]
null
null
null
#coding:utf-8 from decision_tree import * def prune(tree, mingain): if tree.tb.results == None: prune(tree.tb, mingain) if tree.fb.results == None: prune(tree.fb, mingain) if tree.tb.results != None and tree.fb.results != None: tb, fb = [], [] for v, c in tree.tb.results....
24.617647
66
0.561529
121
837
3.735537
0.322314
0.066372
0.086283
0.066372
0.163717
0.115044
0
0
0
0
0
0.006791
0.296296
837
33
67
25.363636
0.760611
0.014337
0
0
0
0
0.033981
0
0
0
0
0
0
1
0.043478
false
0
0.130435
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d61fdf22e164038147400e000aa5557c2c904a07
195
py
Python
data_collection/gazette/spiders/sc_imbituba.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
454
2018-04-07T03:32:57.000Z
2020-08-17T19:56:22.000Z
data_collection/gazette/spiders/sc_imbituba.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
254
2020-08-18T14:09:43.000Z
2022-03-28T11:30:51.000Z
data_collection/gazette/spiders/sc_imbituba.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
183
2018-04-11T15:09:37.000Z
2020-08-15T18:55:11.000Z
from gazette.spiders.base.fecam import FecamGazetteSpider class ScImbitubaSpider(FecamGazetteSpider): name = "sc_imbituba" FECAM_QUERY = "cod_entidade:116" TERRITORY_ID = "4207304"
24.375
57
0.769231
21
195
6.952381
0.904762
0
0
0
0
0
0
0
0
0
0
0.060241
0.148718
195
7
58
27.857143
0.819277
0
0
0
0
0
0.174359
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2