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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d0f5fb7291bc786033c05a6592bc2587016b41b
| 517
|
py
|
Python
|
flexible_payments/processors/manual.py
|
ninjabit/django-flexible-payments
|
03c6edfc9368df6ff08d843d77ded27a036e6fcd
|
[
"BSD-3-Clause"
] | null | null | null |
flexible_payments/processors/manual.py
|
ninjabit/django-flexible-payments
|
03c6edfc9368df6ff08d843d77ded27a036e6fcd
|
[
"BSD-3-Clause"
] | 8
|
2019-05-03T14:01:23.000Z
|
2021-06-10T18:00:45.000Z
|
flexible_payments/processors/manual.py
|
ninjabit/django-flexible-payments
|
03c6edfc9368df6ff08d843d77ded27a036e6fcd
|
[
"BSD-3-Clause"
] | 1
|
2020-12-15T15:02:46.000Z
|
2020-12-15T15:02:46.000Z
|
from flexible_payments.processors.base import PaymentProcessorBase
from flexible_payments.processors.forms import GenericTransactionForm
from flexible_payments.processors.mixins import ManualProcessorMixin
from flexible_payments.processors.views import GenericTransactionView
class ManualProcessor(PaymentProcessorBase, ManualProcessorMixin):
form_class = GenericTransactionForm
transaction_view_class = GenericTransactionView
def handle_transaction_response(self, transaction, request):
pass
| 36.928571
| 69
| 0.858801
| 47
| 517
| 9.255319
| 0.510638
| 0.110345
| 0.183908
| 0.275862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104449
| 517
| 13
| 70
| 39.769231
| 0.939525
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0.111111
| 0.444444
| 0
| 0.888889
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
0d18ad3daa5ec823898926a15c42cd75fc21dd91
| 85
|
py
|
Python
|
securetea/lib/social_engineering/__init__.py
|
pwned-17/SecureTea-Project
|
f32fcd5054155567b4511ee69ae1617ed595655a
|
[
"MIT"
] | 257
|
2018-03-28T12:43:20.000Z
|
2022-03-29T07:07:23.000Z
|
securetea/lib/social_engineering/__init__.py
|
pwned-17/SecureTea-Project
|
f32fcd5054155567b4511ee69ae1617ed595655a
|
[
"MIT"
] | 155
|
2018-03-31T14:57:46.000Z
|
2022-03-17T18:12:41.000Z
|
securetea/lib/social_engineering/__init__.py
|
pwned-17/SecureTea-Project
|
f32fcd5054155567b4511ee69ae1617ed595655a
|
[
"MIT"
] | 132
|
2018-03-27T06:25:20.000Z
|
2022-03-28T11:32:45.000Z
|
"""Summary."""
from . import socialEngineeringLogger
from . import socialEngineering
| 21.25
| 37
| 0.788235
| 7
| 85
| 9.571429
| 0.714286
| 0.298507
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105882
| 85
| 3
| 38
| 28.333333
| 0.881579
| 0.094118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
|
0d1d9d327a673ff9dfc218c62b8c436ecaf986a7
| 175
|
py
|
Python
|
hoodapp/admin.py
|
jakesIII/Hood-411
|
dda45f8c147a9019c3317730ca6c91cbca9ffb56
|
[
"Unlicense"
] | null | null | null |
hoodapp/admin.py
|
jakesIII/Hood-411
|
dda45f8c147a9019c3317730ca6c91cbca9ffb56
|
[
"Unlicense"
] | 3
|
2020-06-06T00:37:01.000Z
|
2021-06-10T22:30:06.000Z
|
hoodapp/admin.py
|
jakesIII/Hood-411
|
dda45f8c147a9019c3317730ca6c91cbca9ffb56
|
[
"Unlicense"
] | null | null | null |
from django.contrib import admin
from .models import Hood,Biz,Posts
# Register your models here.
admin.site.register(Hood)
admin.site.register(Biz)
admin.site.register(Posts)
| 25
| 34
| 0.805714
| 27
| 175
| 5.222222
| 0.481481
| 0.191489
| 0.361702
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091429
| 175
| 6
| 35
| 29.166667
| 0.886792
| 0.148571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0d260d5b149ce95847239fdfc69db7c89bd5555b
| 3,959
|
py
|
Python
|
intro/part01-28_loyalty_bonus/test/test_loyalty_bonus.py
|
Hannah-Abi/python-pro-21
|
2ce32c4bf118054329d19afdf83c50561be1ada8
|
[
"MIT"
] | null | null | null |
intro/part01-28_loyalty_bonus/test/test_loyalty_bonus.py
|
Hannah-Abi/python-pro-21
|
2ce32c4bf118054329d19afdf83c50561be1ada8
|
[
"MIT"
] | null | null | null |
intro/part01-28_loyalty_bonus/test/test_loyalty_bonus.py
|
Hannah-Abi/python-pro-21
|
2ce32c4bf118054329d19afdf83c50561be1ada8
|
[
"MIT"
] | null | null | null |
import unittest
from unittest.mock import patch
from tmc import points
from tmc.utils import load_module, reload_module, get_stdout
from functools import reduce
from random import randint
exercise = 'src.loyalty_bonus'
@points('1.loyalty_bonus')
class LoyaltyBonusTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
with patch('builtins.input', return_value = '0'):
cls.module = load_module(exercise, 'en')
def check(self,output,points,correct_points):
check1 = output.find(str(correct_points)[:5]) > -1
check2 = output.find(str(correct_points+1e-9)[:5]) > -1
check3 = output.find(str(correct_points-1e-9)[:5]) > -1
self.assertTrue(check1 or check2 or check3, "With input {} correct amount of points {} is not found in output {}".format(points, correct_points, output))
def test_under_99(self):
points = 99
correct_points = 1.1 * points
with patch('builtins.input', return_value = str(points)):
reload_module(self.module)
output = get_stdout()
output_list = output.split("\n")
self.assertTrue(len(output_list) == 2, "With input {} instead of two rows, your program did print out {} rows".format(points, len(output_list)))
self.assertTrue(output.find("Your bonus is 10") > -1, "Row 'Your bonus is 10 %' was not found in output. Output was " + output)
self.assertFalse(output.find("bonus is 15") > -1, "Output contained incorrect bonus-%, 15 %:', print out was " + output)
self.check(output,points, correct_points)
def test_under_100_random(self):
points = randint(1,90)
correct_points = 1.1 * points
with patch('builtins.input', return_value = str(points)):
reload_module(self.module)
output = get_stdout()
output_list = output.split("\n")
self.assertTrue(len(output_list) == 2, "With input {} instead of two rows, your program did print out {} rows".format(points, len(output_list)))
self.assertTrue(output.find("Your bonus is 10") > -1, "Row 'Your bonus is 10 %' was not found in output. Output was " + output)
self.assertFalse(output.find("bonus is 15") > -1, "Output contained incorrect bonus-%, 15 %:', print out was " + output)
self.check(output,points, correct_points)
def test_100(self):
points = 100
correct_points = 1.15 * points
with patch('builtins.input', return_value = str(points)):
reload_module(self.module)
output = get_stdout()
output_list = output.split("\n")
self.assertTrue(len(output_list) == 2, "With input {} instead of two rows, your program did print out {} rows".format(points, len(output_list)))
self.assertTrue(output.find("Your bonus is 15") > -1, "Row 'Your bonus is 15 %' was not found in output. Output was " + output)
self.assertFalse(output.find("bonus is 10") > -1, "Output contained incorrect bonus-%, 10 %:', print out was " + output)
self.check(output,points, correct_points)
def test_over_100_random(self):
points = randint(101,1000)
correct_points = 1.15 * points
with patch('builtins.input', return_value = str(points)):
reload_module(self.module)
output = get_stdout()
output_list = output.split("\n")
self.assertTrue(len(output_list) == 2, "With input {} instead of two rows, your program did print out {} rows".format(points, len(output_list)))
self.assertTrue(output.find("Your bonus is 15") > -1, "Row 'Your bonus is 15 %' was not found in output. Output was " + output)
self.assertFalse(output.find("bonus is 10") > -1, "Output contained incorrect bonus-%, 10 %:', print out was " + output)
self.check(output,points, correct_points)
if __name__ == '__main__':
unittest.main()
| 53.5
| 161
| 0.638798
| 526
| 3,959
| 4.692015
| 0.1673
| 0.068477
| 0.042139
| 0.044571
| 0.777958
| 0.746353
| 0.732982
| 0.732982
| 0.732982
| 0.707861
| 0
| 0.032429
| 0.236676
| 3,959
| 73
| 162
| 54.232877
| 0.784249
| 0
| 0
| 0.5625
| 0
| 0
| 0.264713
| 0
| 0
| 0
| 0
| 0
| 0.203125
| 1
| 0.09375
| false
| 0
| 0.09375
| 0
| 0.203125
| 0.125
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
0d3e0fa139142bc6532cd3742f0c0ba002a9c178
| 184
|
py
|
Python
|
tests/classes/super_wrap.py
|
Jesse-Yung/jsonclasses
|
d40c52aec42bcb978a80ceb98b93ab38134dc790
|
[
"MIT"
] | 50
|
2021-08-18T08:08:04.000Z
|
2022-03-20T07:23:26.000Z
|
tests/classes/super_wrap.py
|
Jesse-Yung/jsonclasses
|
d40c52aec42bcb978a80ceb98b93ab38134dc790
|
[
"MIT"
] | 1
|
2021-11-23T02:12:29.000Z
|
2021-11-23T13:35:26.000Z
|
tests/classes/super_wrap.py
|
Jesse-Yung/jsonclasses
|
d40c52aec42bcb978a80ceb98b93ab38134dc790
|
[
"MIT"
] | 8
|
2021-07-01T02:39:15.000Z
|
2021-12-10T02:20:18.000Z
|
from __future__ import annotations
from typing import Optional
from jsonclasses import jsonclass, types
@jsonclass
class SuperWrap:
s: list[str] = types.listof(str).wrapintolist
| 20.444444
| 49
| 0.798913
| 23
| 184
| 6.217391
| 0.695652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141304
| 184
| 8
| 50
| 23
| 0.905063
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 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
|
0d4c6d06f41925e130c62411dd3db3a3b87cf801
| 262
|
py
|
Python
|
data/lists/__init__.py
|
Skorpio-X/Laenderquiz
|
e222af3ab251d4a119260f89c2ec982dd7597bff
|
[
"MIT"
] | null | null | null |
data/lists/__init__.py
|
Skorpio-X/Laenderquiz
|
e222af3ab251d4a119260f89c2ec982dd7597bff
|
[
"MIT"
] | null | null | null |
data/lists/__init__.py
|
Skorpio-X/Laenderquiz
|
e222af3ab251d4a119260f89c2ec982dd7597bff
|
[
"MIT"
] | null | null | null |
from .africa_list import AFRICA_LIST
from .europe_list import EUROPE_LIST
from .asia_list import ASIA_LIST
from .australiaoceania_list import AUSTRALIAOCEANIA_LIST
from .northamerica_list import NORTHAMERICA_LIST
from .southamerica_list import SOUTHAMERICA_LIST
| 37.428571
| 56
| 0.885496
| 36
| 262
| 6.111111
| 0.25
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091603
| 262
| 6
| 57
| 43.666667
| 0.92437
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 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
| 1
| 0
|
0
| 5
|
b49d1505e6dda75863b142c3163d0f6edadf6898
| 114
|
py
|
Python
|
api/urls.py
|
yaroshyk/todo
|
828d5afc9abd85cd7f8f25e4d01f90c765231357
|
[
"MIT"
] | 3
|
2021-05-30T19:04:37.000Z
|
2021-08-30T14:16:57.000Z
|
api/urls.py
|
yaroshyk/todo
|
828d5afc9abd85cd7f8f25e4d01f90c765231357
|
[
"MIT"
] | null | null | null |
api/urls.py
|
yaroshyk/todo
|
828d5afc9abd85cd7f8f25e4d01f90c765231357
|
[
"MIT"
] | null | null | null |
#from django.urls import path
#from . import views
#urlpatterns= [
# path('add', views.add, name="todo-add")
#]
| 19
| 43
| 0.666667
| 16
| 114
| 4.75
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149123
| 114
| 6
| 44
| 19
| 0.783505
| 0.912281
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.166667
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2eab543c53a03610ab48220cfc279a1ee379ea97
| 91
|
py
|
Python
|
pyecharts/exceptions.py
|
wonderfulsuccess/pyecharts
|
2094986911e6bc37a413b76395059009053934df
|
[
"MIT"
] | 2
|
2018-03-14T00:55:34.000Z
|
2018-03-14T00:55:37.000Z
|
pyecharts/exceptions.py
|
mcjoshua/pyecharts
|
2bfc0ef593867f8ce938695c2308e63f84a7c297
|
[
"MIT"
] | null | null | null |
pyecharts/exceptions.py
|
mcjoshua/pyecharts
|
2bfc0ef593867f8ce938695c2308e63f84a7c297
|
[
"MIT"
] | 10
|
2018-05-12T02:26:01.000Z
|
2021-09-22T07:35:23.000Z
|
class NoJsExtensionFound(Exception):
pass
class InvalidRegistry(Exception):
pass
| 13
| 36
| 0.758242
| 8
| 91
| 8.625
| 0.625
| 0.376812
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175824
| 91
| 6
| 37
| 15.166667
| 0.92
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
2ed8f18473bf09259c04b62c6087358e3163faa4
| 44
|
py
|
Python
|
requests/__init__.py
|
MyNameIsOka/canal_project_github_deploy
|
87412f4fa411e28f9f960b7ed8782c8aaa6659ca
|
[
"MIT"
] | 2
|
2021-02-09T00:47:40.000Z
|
2022-02-14T08:51:45.000Z
|
requests/__init__.py
|
MyNameIsOka/canal_project_github_deploy
|
87412f4fa411e28f9f960b7ed8782c8aaa6659ca
|
[
"MIT"
] | 9
|
2020-11-18T07:11:36.000Z
|
2022-03-02T07:29:10.000Z
|
requests/__init__.py
|
MyNameIsOka/canal_project_github_deploy
|
87412f4fa411e28f9f960b7ed8782c8aaa6659ca
|
[
"MIT"
] | 1
|
2020-07-02T00:41:32.000Z
|
2020-07-02T00:41:32.000Z
|
# Signal to allow import from this directory
| 44
| 44
| 0.818182
| 7
| 44
| 5.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159091
| 44
| 1
| 44
| 44
| 0.972973
| 0.954545
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2ee1c4406b7983b0a76e182f9fb508da7c6a30bd
| 341
|
py
|
Python
|
src/IceRayPy/core/render/__init__.py
|
dmilos/IceRay
|
4e01f141363c0d126d3c700c1f5f892967e3d520
|
[
"MIT-0"
] | 2
|
2020-09-04T12:27:15.000Z
|
2022-01-17T14:49:40.000Z
|
src/IceRayPy/core/render/__init__.py
|
dmilos/IceRay
|
4e01f141363c0d126d3c700c1f5f892967e3d520
|
[
"MIT-0"
] | null | null | null |
src/IceRayPy/core/render/__init__.py
|
dmilos/IceRay
|
4e01f141363c0d126d3c700c1f5f892967e3d520
|
[
"MIT-0"
] | 1
|
2020-09-04T12:27:52.000Z
|
2020-09-04T12:27:52.000Z
|
print( '<' + __name__ + ' name=\'' + __file__ + '\'>' )
import IceRayPy.core.render.manager
import IceRayPy.core.render.pierce
import IceRayPy.core.render.pixel
import IceRayPy.core.render.ray
import IceRayPy.core.render.scanner
import IceRayPy.core.render.sheaf
print( '</' + __name__ + ' name=\'' + __file__ + '\'>' )
| 31
| 59
| 0.665689
| 38
| 341
| 5.552632
| 0.342105
| 0.398104
| 0.511848
| 0.682464
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167155
| 341
| 10
| 60
| 34.1
| 0.742958
| 0
| 0
| 0
| 0
| 0
| 0.154079
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0.25
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2eeb3f4c3a431885767c603779a0d708cfac5bea
| 85
|
py
|
Python
|
insiderScraper/exceptions.py
|
trietmnj/insidertradingscraper
|
5758ddf8bec7f63158cd3c199e8c3a2c7cab55dd
|
[
"MIT"
] | null | null | null |
insiderScraper/exceptions.py
|
trietmnj/insidertradingscraper
|
5758ddf8bec7f63158cd3c199e8c3a2c7cab55dd
|
[
"MIT"
] | 1
|
2021-06-02T00:21:29.000Z
|
2021-06-02T00:21:29.000Z
|
insiderScraper/exceptions.py
|
trietnguyenjhu/insidertradingscraper
|
65a32be5f3c886d15a7c733a5277193bb056e5d8
|
[
"MIT"
] | null | null | null |
class NoDataError(Exception):
pass
class InvalidModeError(Exception):
pass
| 12.142857
| 34
| 0.741176
| 8
| 85
| 7.875
| 0.625
| 0.412698
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188235
| 85
| 6
| 35
| 14.166667
| 0.913043
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
2effa51d953f14b5aadd9c04a83a5070d933384a
| 159
|
py
|
Python
|
diffxpy/__init__.py
|
SabrinaRichter/diffxpy
|
8eff054ca3ce097533134f490aac3580431eee15
|
[
"BSD-3-Clause"
] | null | null | null |
diffxpy/__init__.py
|
SabrinaRichter/diffxpy
|
8eff054ca3ce097533134f490aac3580431eee15
|
[
"BSD-3-Clause"
] | null | null | null |
diffxpy/__init__.py
|
SabrinaRichter/diffxpy
|
8eff054ca3ce097533134f490aac3580431eee15
|
[
"BSD-3-Clause"
] | null | null | null |
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from .log_cfg import logger, unconfigure_logging, enable_logging
| 22.714286
| 64
| 0.823899
| 21
| 159
| 5.714286
| 0.571429
| 0.275
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106918
| 159
| 6
| 65
| 26.5
| 0.84507
| 0
| 0
| 0
| 0
| 0
| 0.044025
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2c29b2d9da4498ed2d5afc19b9c946b47dec4f64
| 15
|
py
|
Python
|
smoke.py
|
patcurry/WebGISFork
|
0f26a2d824eea6456dd266f0594e4577abef85b1
|
[
"MIT"
] | 1
|
2021-07-03T17:03:35.000Z
|
2021-07-03T17:03:35.000Z
|
smoke.py
|
patcurry/WebGISFork
|
0f26a2d824eea6456dd266f0594e4577abef85b1
|
[
"MIT"
] | 2
|
2019-02-22T07:37:10.000Z
|
2019-02-22T08:22:21.000Z
|
smoke.py
|
patcurry/WebGISFork
|
0f26a2d824eea6456dd266f0594e4577abef85b1
|
[
"MIT"
] | 3
|
2019-01-29T08:50:55.000Z
|
2022-02-16T07:17:50.000Z
|
print('smoke')
| 7.5
| 14
| 0.666667
| 2
| 15
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 15
| 1
| 15
| 15
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
2c2ceeb294ec1ccde44e4dc2bfbbd2d88370d297
| 18
|
py
|
Python
|
stdlib/_thread.py
|
asakatida/chimera
|
da5ae03c94ada3d9e02c164f69199487e400b876
|
[
"MIT"
] | 2
|
2017-12-14T07:05:06.000Z
|
2021-02-07T03:31:27.000Z
|
stdlib/_thread.py
|
asakatida/chimera
|
da5ae03c94ada3d9e02c164f69199487e400b876
|
[
"MIT"
] | 149
|
2018-08-06T13:14:46.000Z
|
2019-11-19T02:00:56.000Z
|
stdlib/_thread.py
|
asakatida/chimera
|
da5ae03c94ada3d9e02c164f69199487e400b876
|
[
"MIT"
] | null | null | null |
"""_thread.py."""
| 9
| 17
| 0.5
| 2
| 18
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 18
| 1
| 18
| 18
| 0.470588
| 0.611111
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
25fc144aa5ad5517140e846ed88b74df14129996
| 86
|
py
|
Python
|
tone/utils/__init__.py
|
StevenKangWei/tone
|
21a8db685bf72a57b9a3749044866934cbc68071
|
[
"MIT"
] | null | null | null |
tone/utils/__init__.py
|
StevenKangWei/tone
|
21a8db685bf72a57b9a3749044866934cbc68071
|
[
"MIT"
] | null | null | null |
tone/utils/__init__.py
|
StevenKangWei/tone
|
21a8db685bf72a57b9a3749044866934cbc68071
|
[
"MIT"
] | null | null | null |
# coding=utf-8
from .logger import get_logger # noqa
from . import attrdict # noqa
| 17.2
| 38
| 0.72093
| 13
| 86
| 4.692308
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014493
| 0.197674
| 86
| 4
| 39
| 21.5
| 0.869565
| 0.255814
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
d3270895986723fd84c4d1621979985451300504
| 151
|
py
|
Python
|
actions/static.py
|
armersong/bottle-web-seed
|
5dfe2b5c0852cd092c9606aede8c22733c0c9046
|
[
"Apache-2.0"
] | null | null | null |
actions/static.py
|
armersong/bottle-web-seed
|
5dfe2b5c0852cd092c9606aede8c22733c0c9046
|
[
"Apache-2.0"
] | null | null | null |
actions/static.py
|
armersong/bottle-web-seed
|
5dfe2b5c0852cd092c9606aede8c22733c0c9046
|
[
"Apache-2.0"
] | null | null | null |
from application import Action
class StaticAction(Action):
def download_files(self, filename):
return self.file_service.get_file(filename)
| 30.2
| 51
| 0.774834
| 19
| 151
| 6
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152318
| 151
| 5
| 51
| 30.2
| 0.890625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
d33e5596fc9093155c0c66f913c47443c6d3b02f
| 865
|
py
|
Python
|
algos/GLASSO/base.py
|
GalSha/GLASSO_Framework
|
fb884d810b2aad2e80124d9d4cf5cd1aaf0d8688
|
[
"BSD-3-Clause"
] | null | null | null |
algos/GLASSO/base.py
|
GalSha/GLASSO_Framework
|
fb884d810b2aad2e80124d9d4cf5cd1aaf0d8688
|
[
"BSD-3-Clause"
] | null | null | null |
algos/GLASSO/base.py
|
GalSha/GLASSO_Framework
|
fb884d810b2aad2e80124d9d4cf5cd1aaf0d8688
|
[
"BSD-3-Clause"
] | null | null | null |
class base(object):
def __init__ (self, T, N, lam):
self.T = T
self.N = N
self.lam = lam
def compute(self, S, A0, status_f, history, test_check_f):
pass
def __call__(self, S):
return self.compute(S, None, None, False, None)[0]
def compute_full(self, S, status_f):
return self.compute(S, None, status_f, True, None)[:-1]
def compute_status(self, S, status_f):
return self.compute(S, None, status_f, False, None)[:-2]
def compute_final(self, S):
return self(S)
def compute_test(self, S, test_check_f):
res = self.compute(S, None, None, False, test_check_f)
return res[0], res[-1]
def compute_warmup(self, S):
T = self.T
self.T = 1
self.compute(S, None, None, False, None)
self.T = T
def name(self):
pass
| 26.212121
| 64
| 0.57341
| 133
| 865
| 3.548872
| 0.233083
| 0.084746
| 0.127119
| 0.169492
| 0.362288
| 0.349576
| 0.29661
| 0.173729
| 0.173729
| 0.173729
| 0
| 0.011494
| 0.295954
| 865
| 33
| 65
| 26.212121
| 0.763547
| 0
| 0
| 0.16
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.36
| false
| 0.08
| 0
| 0.16
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
d35aedc5559ba94a0ceb8e135174e555139bb476
| 110
|
py
|
Python
|
ghostpost_app/admin.py
|
Sondosissa18/ghostpost-project
|
4cd1be479eb6f0327ed0d05c0262303c3cacd2b4
|
[
"MIT"
] | null | null | null |
ghostpost_app/admin.py
|
Sondosissa18/ghostpost-project
|
4cd1be479eb6f0327ed0d05c0262303c3cacd2b4
|
[
"MIT"
] | null | null | null |
ghostpost_app/admin.py
|
Sondosissa18/ghostpost-project
|
4cd1be479eb6f0327ed0d05c0262303c3cacd2b4
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from ghostpost_app.models import GhostPost
admin.site.register(GhostPost)
| 15.714286
| 42
| 0.836364
| 15
| 110
| 6.066667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109091
| 110
| 6
| 43
| 18.333333
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 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
|
6cf0817d2e44eba883d46a7401fb490e34e1417a
| 147
|
py
|
Python
|
Part_2_intermediate/mod_1/lesson_6/homework_3/calculations/investment.py
|
Mikma03/InfoShareacademy_Python_Courses
|
3df1008c8c92831bebf1625f960f25b39d6987e6
|
[
"MIT"
] | null | null | null |
Part_2_intermediate/mod_1/lesson_6/homework_3/calculations/investment.py
|
Mikma03/InfoShareacademy_Python_Courses
|
3df1008c8c92831bebf1625f960f25b39d6987e6
|
[
"MIT"
] | null | null | null |
Part_2_intermediate/mod_1/lesson_6/homework_3/calculations/investment.py
|
Mikma03/InfoShareacademy_Python_Courses
|
3df1008c8c92831bebf1625f960f25b39d6987e6
|
[
"MIT"
] | null | null | null |
def calculate_investment_value(initial_value, percentage, years):
result = initial_value * (1 + percentage / 100) ** years
return result
| 24.5
| 65
| 0.727891
| 17
| 147
| 6.058824
| 0.647059
| 0.23301
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033333
| 0.183673
| 147
| 5
| 66
| 29.4
| 0.825
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
6cfcf27b10ce6d62f13764fc2cea8fbbda7e7c11
| 88
|
py
|
Python
|
django_hbase/models/exceptions.py
|
BattleWoLFz99/Twitchain
|
6f12aa932488063619482f0ffc1658064151e091
|
[
"MIT"
] | null | null | null |
django_hbase/models/exceptions.py
|
BattleWoLFz99/Twitchain
|
6f12aa932488063619482f0ffc1658064151e091
|
[
"MIT"
] | 1
|
2021-05-27T11:03:53.000Z
|
2021-05-27T11:03:53.000Z
|
django_hbase/models/exceptions.py
|
BattleWoLFz99/Twitchain
|
6f12aa932488063619482f0ffc1658064151e091
|
[
"MIT"
] | null | null | null |
class BadRowKeyError(Exception):
pass
class EmptyColumnError(Exception):
pass
| 12.571429
| 34
| 0.75
| 8
| 88
| 8.25
| 0.625
| 0.393939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 88
| 6
| 35
| 14.666667
| 0.916667
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
9f18495a49f1afc15c2ebfbfac14e88650c4cc8b
| 214
|
py
|
Python
|
basico/aula002/aula02.py
|
KaicPierre/Curso-de-Python3
|
6267ba92c298f0ffa103e374615f040b0db13339
|
[
"MIT"
] | 1
|
2020-09-04T07:46:45.000Z
|
2020-09-04T07:46:45.000Z
|
basico/aula002/aula02.py
|
KaicPierre/Curso-de-Python3
|
6267ba92c298f0ffa103e374615f040b0db13339
|
[
"MIT"
] | null | null | null |
basico/aula002/aula02.py
|
KaicPierre/Curso-de-Python3
|
6267ba92c298f0ffa103e374615f040b0db13339
|
[
"MIT"
] | null | null | null |
# print(123456)
# print('Kaic', 'Pierre', 'Outra Coisa')
# print('Kaic', 'Pierre', sep='-', end='')
# print('Testando', 'Outras', 'Coisas', sep='-', end='')
print('428', '330', '048', sep='.', end='-')
print('93')
| 30.571429
| 56
| 0.537383
| 26
| 214
| 4.423077
| 0.576923
| 0.156522
| 0.286957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089474
| 0.11215
| 214
| 6
| 57
| 35.666667
| 0.515789
| 0.691589
| 0
| 0
| 0
| 0
| 0.213115
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
9f379b4c64868e8796b5693c2b87f53612ca4164
| 436
|
py
|
Python
|
tests/functional/import_modules_only.py
|
Shopify/shopify_python
|
888ed7841b69acbdcc98853db3b81fff9bcd5e65
|
[
"MIT"
] | 52
|
2017-03-02T22:39:32.000Z
|
2022-03-01T10:34:36.000Z
|
tests/functional/import_modules_only.py
|
Shopify/shopify_python
|
888ed7841b69acbdcc98853db3b81fff9bcd5e65
|
[
"MIT"
] | 59
|
2017-03-02T15:02:05.000Z
|
2022-01-24T16:54:03.000Z
|
tests/functional/import_modules_only.py
|
Shopify/shopify_python
|
888ed7841b69acbdcc98853db3b81fff9bcd5e65
|
[
"MIT"
] | 8
|
2017-05-30T08:06:33.000Z
|
2021-01-12T14:46:26.000Z
|
# pylint: disable=import-error,unused-import,ungrouped-imports,missing-docstring
import os
import io
from os.path import join # [import-modules-only]
from io import FileIO # [import-modules-only]
from os import environ # [import-modules-only]
from nonexistent_package import nonexistent_module # [import-modules-only]
import shopify_python
from shopify_python import google_styleguide
from shopify_python import shopify_styleguide
| 36.333333
| 80
| 0.823394
| 60
| 436
| 5.866667
| 0.416667
| 0.147727
| 0.193182
| 0.178977
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105505
| 436
| 11
| 81
| 39.636364
| 0.902564
| 0.380734
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9f64ca036535f4d559aa51cbc0504c8f8be4a4f9
| 1,580
|
py
|
Python
|
tests/cli/test_help.py
|
plattrap/script-venv
|
3e576ba3a74da94d8ec354081ae52fd05702ebc8
|
[
"BSD-3-Clause"
] | 2
|
2018-03-22T20:57:54.000Z
|
2019-02-07T21:21:06.000Z
|
tests/cli/test_help.py
|
plattrap/script-venv
|
3e576ba3a74da94d8ec354081ae52fd05702ebc8
|
[
"BSD-3-Clause"
] | 611
|
2018-03-18T20:24:16.000Z
|
2022-03-31T02:24:15.000Z
|
tests/cli/test_help.py
|
plattrap/script-venv
|
3e576ba3a74da94d8ec354081ae52fd05702ebc8
|
[
"BSD-3-Clause"
] | 3
|
2018-03-21T23:54:19.000Z
|
2020-08-06T03:36:13.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `script_venv` package cli help."""
from script_venv import cli
from tests.cli.fixtures import CliFixtures
from tests.utils import CliObjectRunner
class TestCliHelp(CliFixtures):
def test_cli_default(self, run_config: CliObjectRunner):
result = run_config.invoke(cli.main)
assert result.exit_code == 0
assert 'Show this message and exit.' in result.output
def test_cli_version(self, run_config: CliObjectRunner):
result = run_config.invoke(cli.main, ['--version'])
assert result.exit_code == 0
assert 'sv, version' in result.output
def test_cli_help(self, run_config: CliObjectRunner):
result = run_config.invoke(cli.main, ['--help'])
assert result.exit_code == 0
assert 'Show this message and exit.' in result.output
def test_cli_register_help(self, run_config: CliObjectRunner):
result = run_config.invoke(cli.main, [':register', '--help'])
assert result.exit_code == 0
assert 'Show this message and exit.' in result.output
def test_cli_create_help(self, run_config: CliObjectRunner):
result = run_config.invoke(cli.main, [':create', '--help'])
assert result.exit_code == 0
assert 'Show this message and exit.' in result.output
def test_cli_list_help(self, run_config: CliObjectRunner) -> None:
result = run_config.invoke(cli.main, [':list', '--help'])
assert result.exit_code == 0
assert 'Show this message and exit.' in result.output
| 32.916667
| 70
| 0.675949
| 210
| 1,580
| 4.919048
| 0.22381
| 0.10455
| 0.058083
| 0.162633
| 0.749274
| 0.718296
| 0.64182
| 0.64182
| 0.64182
| 0.64182
| 0
| 0.005609
| 0.210127
| 1,580
| 47
| 71
| 33.617021
| 0.822115
| 0.053165
| 0
| 0.392857
| 0
| 0
| 0.134318
| 0
| 0
| 0
| 0
| 0
| 0.428571
| 1
| 0.214286
| false
| 0
| 0.107143
| 0
| 0.357143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9f75a51500d67ff7042d327b8072f39957833f81
| 82
|
py
|
Python
|
parasol/__init__.py
|
snasiriany/parasol
|
88b99704676fb1253b8bc6402665a3174a00072d
|
[
"MIT"
] | 66
|
2019-01-07T23:59:26.000Z
|
2021-12-29T16:51:56.000Z
|
parasol/__init__.py
|
snasiriany/parasol
|
88b99704676fb1253b8bc6402665a3174a00072d
|
[
"MIT"
] | 8
|
2019-01-09T01:35:54.000Z
|
2021-08-23T20:05:03.000Z
|
parasol/__init__.py
|
snasiriany/parasol
|
88b99704676fb1253b8bc6402665a3174a00072d
|
[
"MIT"
] | 21
|
2019-03-26T01:02:33.000Z
|
2022-01-26T20:34:34.000Z
|
import numpy as np
np.set_printoptions(suppress=True, precision=4, linewidth=120)
| 27.333333
| 62
| 0.817073
| 13
| 82
| 5.076923
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053333
| 0.085366
| 82
| 2
| 63
| 41
| 0.826667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 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
| 1
|
0
| 5
|
9f79ba77d6196d677bb4613d18f21cff973c4311
| 72
|
py
|
Python
|
tests/test_basics.py
|
pratibha-vellanki/splink_graph
|
c64e6f2b490fb0fe8ed4af54e1b60e936af95fef
|
[
"MIT"
] | 5
|
2021-06-01T10:11:30.000Z
|
2021-12-27T14:20:36.000Z
|
tests/test_basics.py
|
pratibha-vellanki/splink_graph
|
c64e6f2b490fb0fe8ed4af54e1b60e936af95fef
|
[
"MIT"
] | 28
|
2021-04-29T10:24:16.000Z
|
2021-10-06T08:37:22.000Z
|
tests/test_basics.py
|
pratibha-vellanki/splink_graph
|
c64e6f2b490fb0fe8ed4af54e1b60e936af95fef
|
[
"MIT"
] | 3
|
2021-09-03T09:38:50.000Z
|
2021-12-10T10:40:08.000Z
|
import pytest
def test_spark_exists(spark):
assert spark.version
| 10.285714
| 29
| 0.763889
| 10
| 72
| 5.3
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180556
| 72
| 6
| 30
| 12
| 0.898305
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4cb38ce963ca93fdac0e7f61469a11d9fad4d530
| 828
|
py
|
Python
|
packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/azure_ts.py
|
exityan/PySyft
|
35166c487a5be57f9ad28929ed88a8ba6bdd5aeb
|
[
"Apache-2.0"
] | 425
|
2019-09-22T06:14:53.000Z
|
2022-03-30T02:17:34.000Z
|
packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/azure_ts.py
|
Metrix1010/PySyft
|
6477f64b63dc285059c3766deab3993653cead2e
|
[
"Apache-2.0"
] | 352
|
2019-09-17T15:32:51.000Z
|
2022-03-12T01:07:35.000Z
|
packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/azure_ts.py
|
Metrix1010/PySyft
|
6477f64b63dc285059c3766deab3993653cead2e
|
[
"Apache-2.0"
] | 208
|
2019-09-18T18:32:10.000Z
|
2022-03-24T01:10:11.000Z
|
# third party
import terrascript
class azurerm(terrascript.Provider):
pass
class azurerm_resource_group(terrascript.Resource):
pass
class azurerm_virtual_network(terrascript.Resource):
pass
class azurerm_subnet(terrascript.Resource):
pass
class azurerm_network_interface(terrascript.Resource):
pass
class azurerm_public_ip(terrascript.Resource):
pass
class azurerm_network_interface_security_group_association(terrascript.Resource):
pass
class azurerm_linux_virtual_machine(terrascript.Resource):
pass
class vnet(terrascript.Module):
pass
class linuxservers(terrascript.Module):
pass
class mylb(terrascript.Module):
pass
class azurerm_network_security_group(terrascript.Resource):
pass
class azurerm_network_security_rule(terrascript.Resource):
pass
| 15.054545
| 81
| 0.788647
| 92
| 828
| 6.847826
| 0.271739
| 0.171429
| 0.228571
| 0.355556
| 0.528571
| 0.3
| 0.161905
| 0
| 0
| 0
| 0
| 0
| 0.147343
| 828
| 54
| 82
| 15.333333
| 0.892351
| 0.013285
| 0
| 0.481481
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.481481
| 0.037037
| 0
| 0.518519
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
4cc9dd4fef55129c5ced6cc021f3b72ce727dc18
| 144
|
py
|
Python
|
os_module/change_dir.py
|
marioymario/scripts
|
1bd61bc0beb912cce1c85997e3ecdb3fa0161167
|
[
"MIT"
] | null | null | null |
os_module/change_dir.py
|
marioymario/scripts
|
1bd61bc0beb912cce1c85997e3ecdb3fa0161167
|
[
"MIT"
] | 1
|
2021-07-22T20:54:57.000Z
|
2021-07-22T20:54:57.000Z
|
os_module/change_dir.py
|
marioymario/scripts
|
1bd61bc0beb912cce1c85997e3ecdb3fa0161167
|
[
"MIT"
] | null | null | null |
import os
print('will create new_dir change to it and print cwd')
print(os.getcwd())
os.mkdir("new_dir")
os.chdir("new_dir")
print(os.getcwd())
| 20.571429
| 55
| 0.729167
| 27
| 144
| 3.777778
| 0.555556
| 0.176471
| 0.254902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104167
| 144
| 6
| 56
| 24
| 0.790698
| 0
| 0
| 0.333333
| 0
| 0
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.166667
| 0
| 0.166667
| 0.5
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
4cd672541af69b561624ced67beaad9584c0ce0c
| 100
|
py
|
Python
|
conftest.py
|
CTPUG/mdx_staticfiles
|
cfa45a0dbe5dda7f8f03b44b7770645c22f4989e
|
[
"0BSD"
] | null | null | null |
conftest.py
|
CTPUG/mdx_staticfiles
|
cfa45a0dbe5dda7f8f03b44b7770645c22f4989e
|
[
"0BSD"
] | null | null | null |
conftest.py
|
CTPUG/mdx_staticfiles
|
cfa45a0dbe5dda7f8f03b44b7770645c22f4989e
|
[
"0BSD"
] | null | null | null |
from django.conf import settings
def pytest_configure():
settings.configure(STATIC_URL='/st/')
| 20
| 41
| 0.76
| 13
| 100
| 5.692308
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 100
| 4
| 42
| 25
| 0.840909
| 0
| 0
| 0
| 0
| 0
| 0.04
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4ceb44e6bd583b644bbcce473dd690bf6abc557e
| 25
|
py
|
Python
|
testipbase/__init__.py
|
theipguy/testipbase
|
0461b60c925e62a1bea2d2a652794e283834e67b
|
[
"MIT"
] | null | null | null |
testipbase/__init__.py
|
theipguy/testipbase
|
0461b60c925e62a1bea2d2a652794e283834e67b
|
[
"MIT"
] | null | null | null |
testipbase/__init__.py
|
theipguy/testipbase
|
0461b60c925e62a1bea2d2a652794e283834e67b
|
[
"MIT"
] | null | null | null |
from testipbase import *
| 12.5
| 24
| 0.8
| 3
| 25
| 6.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 25
| 1
| 25
| 25
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4cf9649a74fe4da42ad324b2b8d72c99e1b2e5bc
| 49
|
py
|
Python
|
test.py
|
windcry1/My-ACM-ICPC
|
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
|
[
"MIT"
] | null | null | null |
test.py
|
windcry1/My-ACM-ICPC
|
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
|
[
"MIT"
] | null | null | null |
test.py
|
windcry1/My-ACM-ICPC
|
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
|
[
"MIT"
] | null | null | null |
a, b = map(int,input().split())
print(a**b-b**a)
| 16.333333
| 31
| 0.55102
| 11
| 49
| 2.454545
| 0.636364
| 0.148148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102041
| 49
| 2
| 32
| 24.5
| 0.613636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
e233af292c94b38f0b8ab92895e7ba8ae4540c87
| 119
|
py
|
Python
|
config.py
|
aurangzaibsiddiqui/Flask-Splitwise-NamAgg
|
f5a6730bbb1be15ad7055b2136baa1e169cfd61f
|
[
"MIT"
] | null | null | null |
config.py
|
aurangzaibsiddiqui/Flask-Splitwise-NamAgg
|
f5a6730bbb1be15ad7055b2136baa1e169cfd61f
|
[
"MIT"
] | null | null | null |
config.py
|
aurangzaibsiddiqui/Flask-Splitwise-NamAgg
|
f5a6730bbb1be15ad7055b2136baa1e169cfd61f
|
[
"MIT"
] | null | null | null |
consumer_key = 'he0Mq8p7CIpzw3Ao5WMvmmwDctlSKmyhbcgH4FmO'
consumer_secret = 'DXmrRlTPo5Eney984lI7g0WfpJBk5SAu0MeNqL2P'
| 39.666667
| 60
| 0.89916
| 6
| 119
| 17.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132743
| 0.05042
| 119
| 2
| 61
| 59.5
| 0.79646
| 0
| 0
| 0
| 0
| 0
| 0.672269
| 0.672269
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e2635de7f5aacd4f1498cc5141ac69e7fc2caa28
| 135
|
py
|
Python
|
opendomain_responder/geo_locator/__init__.py
|
maverickjoy/pepper-robot-facedetection-open-domain-answering
|
e17f4421eddf2334873261711d3cd132e90d1117
|
[
"MIT"
] | 7
|
2019-03-13T11:10:47.000Z
|
2022-02-20T11:14:26.000Z
|
opendomain_responder/geo_locator/__init__.py
|
maverickjoy/pepper-robot-facedetection-open-domain-answering
|
e17f4421eddf2334873261711d3cd132e90d1117
|
[
"MIT"
] | 9
|
2019-07-07T09:09:06.000Z
|
2022-03-11T23:39:58.000Z
|
opendomain_responder/geo_locator/__init__.py
|
maverickjoy/pepper-robot-facedetection-open-domain-answering
|
e17f4421eddf2334873261711d3cd132e90d1117
|
[
"MIT"
] | 1
|
2022-03-03T13:25:07.000Z
|
2022-03-03T13:25:07.000Z
|
'''
This package is used from the original library GeoText : https://github.com/elyase/geotext
'''
from .geo_locator import GeoLocator
| 27
| 90
| 0.77037
| 19
| 135
| 5.421053
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125926
| 135
| 4
| 91
| 33.75
| 0.872881
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
e28177c1a742534787a4fcc45998054a23a6f655
| 139
|
py
|
Python
|
OpenGLCffi/GLES1/EXT/OES/query_matrix.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
OpenGLCffi/GLES1/EXT/OES/query_matrix.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
OpenGLCffi/GLES1/EXT/OES/query_matrix.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
from OpenGLCffi.GLES1 import params
@params(api='gles1', prms=['mantissa', 'exponent'])
def glQueryMatrixxOES(mantissa, exponent):
pass
| 19.857143
| 51
| 0.755396
| 16
| 139
| 6.5625
| 0.75
| 0.304762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016
| 0.100719
| 139
| 6
| 52
| 23.166667
| 0.824
| 0
| 0
| 0
| 0
| 0
| 0.153285
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
e288cd1dba02e7f1587e9603cc415ede3f1f7e42
| 140
|
py
|
Python
|
software/reachy/trajectory/__init__.py
|
pollen-robotics/reachy-2.0
|
1721c2d93737e576e328bfdb78376d1b0163d3d6
|
[
"Apache-1.1"
] | 167
|
2018-02-07T21:42:13.000Z
|
2021-03-06T08:25:45.000Z
|
software/reachy/trajectory/__init__.py
|
pollen-robotics/reachy-2.0
|
1721c2d93737e576e328bfdb78376d1b0163d3d6
|
[
"Apache-1.1"
] | 39
|
2019-11-27T13:11:59.000Z
|
2021-01-12T09:33:26.000Z
|
software/reachy/trajectory/__init__.py
|
pollen-robotics/reachy-2.0
|
1721c2d93737e576e328bfdb78376d1b0163d3d6
|
[
"Apache-1.1"
] | 47
|
2018-05-27T02:59:28.000Z
|
2021-03-07T14:56:10.000Z
|
"""Trajectory utility module."""
from .recorder import TrajectoryRecorder # noqa: F401
from .player import TrajectoryPlayer # noqa: F401
| 28
| 54
| 0.764286
| 15
| 140
| 7.133333
| 0.733333
| 0.149533
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.142857
| 140
| 4
| 55
| 35
| 0.841667
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
e29bd56e83c57c572c0d6010ff3644c506e3e9e3
| 24
|
py
|
Python
|
Compiled-Packages/qandora/opt/qAndora/playerGst/__init__.py
|
JeffHoogland/qAndora
|
74bdadef1df2db906c5a42418becb91be69a0f05
|
[
"BSD-3-Clause"
] | 6
|
2015-02-22T09:30:22.000Z
|
2021-11-15T10:07:37.000Z
|
Compiled-Packages/qandora-mobile/opt/qAndora/playerGst/__init__.py
|
JeffHoogland/qAndora
|
74bdadef1df2db906c5a42418becb91be69a0f05
|
[
"BSD-3-Clause"
] | 12
|
2015-02-04T20:19:57.000Z
|
2018-04-22T02:01:13.000Z
|
Compiled-Packages/qandora-n900/playerGst/__init__.py
|
JeffHoogland/qAndora
|
74bdadef1df2db906c5a42418becb91be69a0f05
|
[
"BSD-3-Clause"
] | 7
|
2015-02-07T00:24:46.000Z
|
2022-01-18T01:50:25.000Z
|
from playerGst import *
| 12
| 23
| 0.791667
| 3
| 24
| 6.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 24
| 1
| 24
| 24
| 0.95
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
e2b47e7c6342a40df41832758c5eecdbd6074f56
| 197
|
py
|
Python
|
moai/parameters/initialization/lightning/__init__.py
|
tzole1155/moai
|
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
|
[
"Apache-2.0"
] | 10
|
2021-04-02T11:21:33.000Z
|
2022-01-18T18:32:32.000Z
|
moai/parameters/initialization/lightning/__init__.py
|
tzole1155/moai
|
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
|
[
"Apache-2.0"
] | 1
|
2022-03-22T20:10:55.000Z
|
2022-03-24T13:11:02.000Z
|
moai/parameters/initialization/lightning/__init__.py
|
tzole1155/moai
|
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
|
[
"Apache-2.0"
] | 3
|
2021-05-16T20:47:40.000Z
|
2021-12-01T21:15:36.000Z
|
from moai.parameters.initialization.lightning.pretrained import Pretrained
from moai.parameters.initialization.lightning.continued import Continued
__all__ = [
"Continued",
"Pretrained",
]
| 28.142857
| 74
| 0.80203
| 19
| 197
| 8.105263
| 0.473684
| 0.103896
| 0.233766
| 0.415584
| 0.532468
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111675
| 197
| 7
| 75
| 28.142857
| 0.88
| 0
| 0
| 0
| 0
| 0
| 0.09596
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2c4634fa9373e081b698b3fce5db6e28bbd90e72
| 256
|
py
|
Python
|
test/run/t417.py
|
timmartin/skulpt
|
2e3a3fbbaccc12baa29094a717ceec491a8a6750
|
[
"MIT"
] | 2,671
|
2015-01-03T08:23:25.000Z
|
2022-03-31T06:15:48.000Z
|
test/run/t417.py
|
timmartin/skulpt
|
2e3a3fbbaccc12baa29094a717ceec491a8a6750
|
[
"MIT"
] | 972
|
2015-01-05T08:11:00.000Z
|
2022-03-29T13:47:15.000Z
|
test/run/t417.py
|
timmartin/skulpt
|
2e3a3fbbaccc12baa29094a717ceec491a8a6750
|
[
"MIT"
] | 845
|
2015-01-03T19:53:36.000Z
|
2022-03-29T18:34:22.000Z
|
# lists
print "\nlists"
print max([1,2,3,4])
print max([1,2],[2,1],[2,2],[2,2,3])
# tuples
print "\ntuples"
print max((1,2,3,4))
print max((1,2),(2,1),(2,2),(2,2,3))
# dictionaries
print "\ndictionaries"
print max({1:2,3:4,5:6})
print max({1:6,3:4,5:2})
| 17.066667
| 36
| 0.585938
| 59
| 256
| 2.542373
| 0.237288
| 0.106667
| 0.36
| 0.333333
| 0.466667
| 0.466667
| 0.386667
| 0.386667
| 0.386667
| 0.386667
| 0
| 0.165217
| 0.101563
| 256
| 14
| 37
| 18.285714
| 0.486957
| 0.097656
| 0
| 0
| 0
| 0
| 0.127753
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
2c538e57ea0776680e7c4a288152f28829eb759e
| 279
|
py
|
Python
|
moto/redshift/__init__.py
|
richford/moto
|
3b9e6261f9d0f816bae76547c42acf4f16a36482
|
[
"Apache-2.0"
] | 12
|
2018-07-03T15:02:48.000Z
|
2021-11-09T09:34:57.000Z
|
moto/redshift/__init__.py
|
richford/moto
|
3b9e6261f9d0f816bae76547c42acf4f16a36482
|
[
"Apache-2.0"
] | 33
|
2019-08-30T14:36:03.000Z
|
2022-02-04T10:23:49.000Z
|
moto/redshift/__init__.py
|
richford/moto
|
3b9e6261f9d0f816bae76547c42acf4f16a36482
|
[
"Apache-2.0"
] | 26
|
2018-05-09T08:29:37.000Z
|
2021-12-27T13:46:05.000Z
|
from .models import redshift_backends
from ..core.models import base_decorator, deprecated_base_decorator
redshift_backend = redshift_backends["us-east-1"]
mock_redshift = base_decorator(redshift_backends)
mock_redshift_deprecated = deprecated_base_decorator(redshift_backends)
| 39.857143
| 71
| 0.867384
| 35
| 279
| 6.514286
| 0.4
| 0.280702
| 0.276316
| 0.27193
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003846
| 0.0681
| 279
| 6
| 72
| 46.5
| 0.873077
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2c7479fb5388b557511978ad375d2349f56839d6
| 214
|
py
|
Python
|
drf_auth/admin.py
|
moinku07/storemanagement
|
cb1a7df34cbe404cb64d8af43b25472e8e9a25cc
|
[
"MIT"
] | null | null | null |
drf_auth/admin.py
|
moinku07/storemanagement
|
cb1a7df34cbe404cb64d8af43b25472e8e9a25cc
|
[
"MIT"
] | null | null | null |
drf_auth/admin.py
|
moinku07/storemanagement
|
cb1a7df34cbe404cb64d8af43b25472e8e9a25cc
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import PhoneUser, SocialUser, UserProfile
# Register your models here.
admin.site.register(SocialUser)
admin.site.register(PhoneUser)
admin.site.register(UserProfile)
| 26.75
| 54
| 0.827103
| 27
| 214
| 6.555556
| 0.481481
| 0.152542
| 0.288136
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088785
| 214
| 8
| 55
| 26.75
| 0.907692
| 0.121495
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2c9cd84ed0712d6a40cfa5c0dec1829dabce6850
| 104
|
py
|
Python
|
src/lins.py
|
cedric-romain/lins
|
1ccae895a8393b90422ff859a756a2c11ee585b0
|
[
"MIT"
] | null | null | null |
src/lins.py
|
cedric-romain/lins
|
1ccae895a8393b90422ff859a756a2c11ee585b0
|
[
"MIT"
] | null | null | null |
src/lins.py
|
cedric-romain/lins
|
1ccae895a8393b90422ff859a756a2c11ee585b0
|
[
"MIT"
] | null | null | null |
from RunLins import RunLins
from ConfiguratorGUI import ConfiguratorGUI
# ConfiguratorGUI()
RunLins()
| 14.857143
| 43
| 0.826923
| 10
| 104
| 8.6
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 104
| 6
| 44
| 17.333333
| 0.945055
| 0.163462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 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
|
2cb3f7f248924f207de2b33bf8157239de8f244e
| 54
|
py
|
Python
|
pyrusbasic/__init__.py
|
arthurian/russianparser
|
3ea38c9e7f20018ce8efb0196ac2c317e8974529
|
[
"MIT"
] | null | null | null |
pyrusbasic/__init__.py
|
arthurian/russianparser
|
3ea38c9e7f20018ce8efb0196ac2c317e8974529
|
[
"MIT"
] | null | null | null |
pyrusbasic/__init__.py
|
arthurian/russianparser
|
3ea38c9e7f20018ce8efb0196ac2c317e8974529
|
[
"MIT"
] | null | null | null |
from .tokenizer import Word, WordList, WordTokenizer
| 18
| 52
| 0.814815
| 6
| 54
| 7.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 54
| 2
| 53
| 27
| 0.93617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
2cb8b104e8777cf354a188d16790a7a79a0811a0
| 210
|
py
|
Python
|
numba/core/datamodel/__init__.py
|
auderson/numba
|
3d67c9850ab56457f418cf40af6245fd9c337705
|
[
"BSD-2-Clause"
] | 6,620
|
2015-01-04T08:51:04.000Z
|
2022-03-31T12:52:18.000Z
|
numba/core/datamodel/__init__.py
|
auderson/numba
|
3d67c9850ab56457f418cf40af6245fd9c337705
|
[
"BSD-2-Clause"
] | 6,457
|
2015-01-04T03:18:41.000Z
|
2022-03-31T17:38:42.000Z
|
numba/core/datamodel/__init__.py
|
auderson/numba
|
3d67c9850ab56457f418cf40af6245fd9c337705
|
[
"BSD-2-Clause"
] | 930
|
2015-01-25T02:33:03.000Z
|
2022-03-30T14:10:32.000Z
|
from .manager import DataModelManager
from .packer import ArgPacker, DataPacker
from .registry import register_default, default_manager, register
from .models import PrimitiveModel, CompositeModel, StructModel
| 42
| 65
| 0.857143
| 23
| 210
| 7.73913
| 0.608696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 210
| 4
| 66
| 52.5
| 0.941799
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
2cc9c9e31ac530ebcbf3a60749830010ddc02f55
| 32,056
|
py
|
Python
|
backend_tests/test_socle.py
|
kreako/soklaki
|
6830d2b3f6f20c953a2dc726241e8daf3f41e49b
|
[
"MIT"
] | null | null | null |
backend_tests/test_socle.py
|
kreako/soklaki
|
6830d2b3f6f20c953a2dc726241e8daf3f41e49b
|
[
"MIT"
] | null | null | null |
backend_tests/test_socle.py
|
kreako/soklaki
|
6830d2b3f6f20c953a2dc726241e8daf3f41e49b
|
[
"MIT"
] | null | null | null |
import random
from . import client
CYCLES = ["c1", "c2", "c3", "c4"]
def test_socle(login, socle):
assert "c1" in socle
assert "c2" in socle
assert "c3" in socle
assert "c4" in socle
assert "competencies" in socle
assert "containers" in socle
assert "subjects" in socle
def test_invalid_group_load_socle(login):
status, data = client.post(
"load-socle", {"group_id": login["group_id"] + 2}, login["token"]
)
assert data["load_socle"] == {
"errorNonEmptySocle": False,
"errorUnknown": False,
"errorUnknownGroupId": True,
}
status, data = client.post("load-socle", {"group_id": -1}, login["token"])
assert data["load_socle"] == {
"errorNonEmptySocle": False,
"errorUnknown": False,
"errorUnknownGroupId": True,
}
def test_non_empty_load_socle(login, socle):
# Now it is already loaded by fixture
status, data = client.post(
"load-socle", {"group_id": login["group_id"]}, login["token"]
)
assert data["load_socle"] == {
"errorNonEmptySocle": True,
"errorUnknown": False,
"errorUnknownGroupId": False,
}
def test_load_socle(login, socle):
assert "c1" in socle
assert "c2" in socle
assert "c3" in socle
assert "c4" in socle
assert "competencies" in socle
assert "containers" in socle
assert "subjects" in socle
data = client.admin_gql(
""" query socle_counts($group_id: bigint!) {
default_socle_subject_aggregate {
aggregate {
count
}
}
default_socle_container_aggregate {
aggregate {
count
}
}
default_socle_competency_aggregate {
aggregate {
count
}
}
default_socle_competency_subject_aggregate {
aggregate {
count
}
}
socle_subject_aggregate(where: {group_id: {_eq: $group_id}}) {
aggregate {
count
}
}
socle_container_aggregate(where: {group_id: {_eq: $group_id}}) {
aggregate {
count
}
}
socle_competency_aggregate(where: {group_id: {_eq: $group_id}}) {
aggregate {
count
}
}
socle_competency_subject_aggregate(where: {competency: {group_id: {_eq: $group_id}}}) {
aggregate {
count
}
}
}""",
{"group_id": login["group_id"]},
)
data = data["data"]
assert (
data["default_socle_subject_aggregate"]["aggregate"]["count"]
== data["socle_subject_aggregate"]["aggregate"]["count"]
)
assert (
data["default_socle_container_aggregate"]["aggregate"]["count"]
== data["socle_container_aggregate"]["aggregate"]["count"]
)
assert (
data["default_socle_competency_aggregate"]["aggregate"]["count"]
== data["socle_competency_aggregate"]["aggregate"]["count"]
)
assert (
data["default_socle_competency_subject_aggregate"]["aggregate"]["count"]
== data["socle_competency_subject_aggregate"]["aggregate"]["count"]
)
assert (
len(socle["competencies"])
== data["socle_competency_aggregate"]["aggregate"]["count"]
)
assert (
len(socle["containers"])
== data["socle_container_aggregate"]["aggregate"]["count"]
)
assert (
len(socle["subjects"]) == data["socle_subject_aggregate"]["aggregate"]["count"]
)
def test_socle_subject_active(login, socle):
subject_ids = map(lambda x: x["id"], socle["subjects"])
subject_id = random.choice(list(subject_ids))
# assert subject["active"] == True
status, data = client.post(
"update-socle-subject-active",
{"id": subject_id, "active": False},
login["token"],
)
assert status == 200
assert data["update_socle_subject_by_pk"]["id"] == subject_id
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
# Check disappearance in subjects
subject_ids = map(lambda x: x["id"], socle["subjects"])
assert subject_id not in list(subject_ids)
# Check disappearance in competencies
for competency in socle["competencies"]:
subject_ids = map(lambda x: x["subject_id"], competency["subjects"])
assert subject_id not in list(subject_ids)
subject_ids = map(lambda x: x["id"], socle["subjects"])
# Check disappearance in socle tree structure
for cycle in CYCLES:
for l1 in socle[cycle]:
for competency in l1["competencies"]:
for subject in competency["subjects"]:
# Beautiful 4 level nested for loops
# Glory begins now
assert subject["subject_id"] != subject_id
for l2 in socle[cycle]:
for competency in l2["competencies"]:
for subject in competency["subjects"]:
# I knew I could do better
# Look at this beautiful 5 level nested for loop
assert subject["subject_id"] != subject_id
status, data = client.post(
"update-socle-subject-active",
{"id": subject_id, "active": True},
login["token"],
)
assert status == 200
assert data["update_socle_subject_by_pk"]["id"] == subject_id
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
subject_ids = map(lambda x: x["id"], socle["subjects"])
assert subject_id in list(subject_ids)
def test_socle_subject_title(login, socle):
subject_ids = map(lambda x: x["id"], socle["subjects"])
subject_id = random.choice(list(subject_ids))
subject = filter(lambda x: x["id"] == subject_id, socle["subjects"]).__next__()
old_title = subject["title"]
status, data = client.post(
"update-socle-subject-title",
{"id": subject_id, "title": "meuh"},
login["token"],
)
assert status == 200
assert data["update_socle_subject_by_pk"]["id"] == subject_id
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
subject = filter(lambda x: x["id"] == subject_id, socle["subjects"]).__next__()
assert subject["title"] == "meuh"
status, data = client.post(
"update-socle-subject-title",
{"id": subject_id, "title": old_title},
login["token"],
)
assert status == 200
assert data["update_socle_subject_by_pk"]["id"] == subject_id
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
subject = filter(lambda x: x["id"] == subject_id, socle["subjects"]).__next__()
assert subject["title"] == old_title
def test_socle_competency_subject_active(login, socle):
# select a link
link = socle["c4"][0]["children"][0]["competencies"][0]["subjects"][0]
subject_id = link["subject_id"]
link_id = link["id"]
# active = False
status, data = client.post(
"update-socle-competency-subject-active",
{"id": link_id, "active": False},
login["token"],
)
assert status == 200
assert data["update_socle_competency_subject_by_pk"]["id"] == link_id
# Disappeared from socle
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
subjects = socle["c4"][0]["children"][0]["competencies"][0]["subjects"]
if len(subjects) > 0:
link = subjects[0]
assert link["id"] != link_id
else:
assert len(subjects) == 0
# active = True
status, data = client.post(
"update-socle-competency-subject-active",
{"id": link_id, "active": True},
login["token"],
)
assert status == 200
assert data["update_socle_competency_subject_by_pk"]["id"] == link_id
# Reappeared
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
link = socle["c4"][0]["children"][0]["competencies"][0]["subjects"][0]
assert link["id"] == link_id
def test_socle_competency_active(login, socle):
competency_ids = map(lambda x: x["id"], socle["competencies"])
competency_id = random.choice(list(competency_ids))
# active = False
status, data = client.post(
"update-socle-competency-active",
{"id": competency_id, "active": False},
login["token"],
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# Not in socle anymore
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
competency_ids = list(map(lambda x: x["id"], socle["competencies"]))
assert competency_id not in competency_ids
for cycle in CYCLES:
for l1 in socle[cycle]:
for competency in l1["competencies"]:
assert competency["id"] != competency_id
for l2 in l1["children"]:
for competency in l2["competencies"]:
assert competency["id"] != competency_id
# active = True
status, data = client.post(
"update-socle-competency-active",
{"id": competency_id, "active": True},
login["token"],
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# Back in socle
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
competency_ids = list(map(lambda x: x["id"], socle["competencies"]))
assert competency_id in competency_ids
def test_socle_container_active(login, socle):
container_ids = map(lambda x: x["id"], socle["containers"])
container_id = random.choice(list(container_ids))
# active = False
status, data = client.post(
"update-socle-container-active",
{"id": container_id, "active": False},
login["token"],
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Not in socle
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
container_ids = list(map(lambda x: x["id"], socle["containers"]))
assert container_id not in container_ids
for cycle in CYCLES:
for l1 in socle[cycle]:
assert l1["id"] != container_id
for l2 in l1["children"]:
assert l2["id"] != container_id
# active = True
status, data = client.post(
"update-socle-container-active",
{"id": container_id, "active": True},
login["token"],
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Back in socle
status_code, socle = client.post("socle", {}, login["token"])
assert status == 200
container_ids = list(map(lambda x: x["id"], socle["containers"]))
assert container_id in container_ids
def test_socle_competency_container_id(login, socle):
competency_ids = map(lambda x: x["id"], socle["competencies"])
competency_id = random.choice(list(competency_ids))
data = client.gql(
""" query Competency($id: Int!) {
socle_competency_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
container_id
}
}""",
{"id": competency_id},
login["token"],
)
competency = data["data"]["socle_competency_by_pk"]
# Select a random container
container_ids = map(lambda x: x["id"], socle["containers"])
container_id = None
while container_id == None or container_id == competency["container_id"]:
container_id = random.choice(list(container_ids))
# Set container id
status, data = client.post(
"update-socle-competency-container-id",
{
"id": competency_id,
"rank": 3,
"alpha_full_rank": "ac0",
"full_rank": "c0",
"container_id": container_id,
},
login["token"],
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# Modified
data = client.gql(
""" query Competency($id: Int!) {
socle_competency_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
container_id
}
}""",
{"id": competency_id},
login["token"],
)
new_competency = data["data"]["socle_competency_by_pk"]
assert new_competency["alpha_full_rank"] == "ac0"
assert new_competency["full_rank"] == "c0"
assert new_competency["rank"] == 3
assert competency["container_id"] != new_competency["container_id"]
assert new_competency["container_id"] == container_id
# Set container id back
status, data = client.post(
"update-socle-competency-container-id",
{
"id": competency_id,
"rank": competency["rank"],
"alpha_full_rank": competency["alpha_full_rank"],
"full_rank": competency["full_rank"],
"container_id": competency["container_id"],
},
login["token"],
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# Back as before
data = client.gql(
""" query Competency($id: Int!) {
socle_competency_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
container_id
}
}""",
{"id": competency_id},
login["token"],
)
new_competency = data["data"]["socle_competency_by_pk"]
assert new_competency["alpha_full_rank"] == competency["alpha_full_rank"]
assert new_competency["full_rank"] == competency["full_rank"]
assert new_competency["rank"] == competency["rank"]
assert new_competency["container_id"] == competency["container_id"]
def test_socle_container_container_id(login, socle):
token = login["token"]
container_ids = list(map(lambda x: x["id"], socle["containers"]))
container_id = random.choice(container_ids)
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
full_rank
container_id
}
}""",
{"id": container_id},
token,
)
container = data["data"]["socle_container_by_pk"]
# Select a random container as parent
parent_id = None
while parent_id == None or parent_id == container_id:
parent_id = random.choice(container_ids)
# Set container id
status, data = client.post(
"update-socle-container-container-id",
{
"id": container_id,
"alpha_full_rank": "meuha",
"full_rank": "meuh",
"container_id": parent_id,
},
token,
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Modified
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
full_rank
container_id
}
}""",
{"id": container_id},
token,
)
new_container = data["data"]["socle_container_by_pk"]
assert new_container["container_id"] == parent_id
assert new_container["alpha_full_rank"] == "meuha"
assert new_container["full_rank"] == "meuh"
# Set container id as None
status, data = client.post(
"update-socle-container-container-id",
{
"id": container_id,
"alpha_full_rank": "remeuha",
"full_rank": "remeuh",
"container_id": None,
},
token,
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Modified
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
full_rank
container_id
}
}""",
{"id": container_id},
token,
)
new_container = data["data"]["socle_container_by_pk"]
assert new_container["container_id"] == None
assert new_container["alpha_full_rank"] == "remeuha"
assert new_container["full_rank"] == "remeuh"
# Set container id back
status, data = client.post(
"update-socle-container-container-id",
{
"id": container_id,
"container_id": container["container_id"],
"alpha_full_rank": container["alpha_full_rank"],
"full_rank": container["full_rank"],
},
token,
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Back as before
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
full_rank
container_id
}
}""",
{"id": container_id},
token,
)
new_container = data["data"]["socle_container_by_pk"]
assert new_container["container_id"] == container["container_id"]
assert new_container["alpha_full_rank"] == container["alpha_full_rank"]
assert new_container["full_rank"] == container["full_rank"]
def test_socle_competency_rank(login, socle):
token = login["token"]
competency_ids = map(lambda x: x["id"], socle["competencies"])
competency_id = random.choice(list(competency_ids))
data = client.gql(
""" query Competency($id: Int!) {
socle_competency_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
}
}""",
{"id": competency_id},
token,
)
competency = data["data"]["socle_competency_by_pk"]
# Set rank
new_rank = 99
new_full_rank = "98.99"
new_alpha_full_rank = "0098.0099"
status, data = client.post(
"update-socle-competency-rank",
{
"id": competency_id,
"rank": new_rank,
"full_rank": new_full_rank,
"alpha_full_rank": new_alpha_full_rank,
},
token,
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# Modified
data = client.gql(
""" query Competency($id: Int!) {
socle_competency_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
}
}""",
{"id": competency_id},
token,
)
new_competency = data["data"]["socle_competency_by_pk"]
assert new_competency["rank"] == new_rank
assert new_competency["full_rank"] == new_full_rank
assert new_competency["alpha_full_rank"] == new_alpha_full_rank
# Set rank back
status, data = client.post(
"update-socle-competency-rank",
{
"id": competency_id,
"rank": competency["rank"],
"full_rank": competency["full_rank"],
"alpha_full_rank": competency["alpha_full_rank"],
},
token,
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# Back in socle
data = client.gql(
""" query Competency($id: Int!) {
socle_competency_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
}
}""",
{"id": competency_id},
token,
)
new_competency = data["data"]["socle_competency_by_pk"]
assert new_competency["rank"] == competency["rank"]
assert new_competency["full_rank"] == competency["full_rank"]
assert new_competency["alpha_full_rank"] == competency["alpha_full_rank"]
def test_socle_container_rank(login, socle):
token = login["token"]
container_ids = map(lambda x: x["id"], socle["containers"])
container_id = random.choice(list(container_ids))
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
}
}""",
{"id": container_id},
token,
)
container = data["data"]["socle_container_by_pk"]
# Set rank
new_rank = 99
new_full_rank = "98.99"
new_alpha_full_rank = "0098.0099"
status, data = client.post(
"update-socle-container-rank",
{
"id": container_id,
"rank": new_rank,
"full_rank": new_full_rank,
"alpha_full_rank": new_alpha_full_rank,
},
token,
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Modified
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
}
}""",
{"id": container_id},
token,
)
new_container = data["data"]["socle_container_by_pk"]
assert new_container["rank"] == new_rank
assert new_container["full_rank"] == new_full_rank
assert new_container["alpha_full_rank"] == new_alpha_full_rank
# Set rank back
status, data = client.post(
"update-socle-container-rank",
{
"id": container_id,
"rank": container["rank"],
"full_rank": container["full_rank"],
"alpha_full_rank": container["alpha_full_rank"],
},
token,
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Back in socle
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
full_rank
rank
}
}""",
{"id": container_id},
token,
)
new_container = data["data"]["socle_container_by_pk"]
assert new_container["rank"] == container["rank"]
assert new_container["full_rank"] == container["full_rank"]
assert new_container["alpha_full_rank"] == container["alpha_full_rank"]
def test_socle_competency_text(login, socle):
token = login["token"]
competency_ids = map(lambda x: x["id"], socle["competencies"])
competency_id = random.choice(list(competency_ids))
competency = filter(
lambda x: x["id"] == competency_id, socle["competencies"]
).__next__()
# Set text
status, data = client.post(
"update-socle-competency-text",
{
"id": competency_id,
"text": "meuh",
},
token,
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# Modified in socle
status_code, socle = client.post("socle", {}, token)
assert status == 200
new_competency = filter(
lambda x: x["id"] == competency_id, socle["competencies"]
).__next__()
assert new_competency["text"] == "meuh"
# Set back
status, data = client.post(
"update-socle-competency-text",
{
"id": competency_id,
"text": competency["text"],
},
token,
)
assert status == 200
assert data["update_socle_competency_by_pk"]["id"] == competency_id
# back in socle
status_code, socle = client.post("socle", {}, token)
assert status == 200
new_competency = filter(
lambda x: x["id"] == competency_id, socle["competencies"]
).__next__()
assert new_competency["text"] == competency["text"]
def test_socle_container_text(login, socle):
token = login["token"]
container_ids = map(lambda x: x["id"], socle["containers"])
container_id = random.choice(list(container_ids))
container = filter(
lambda x: x["id"] == container_id, socle["containers"]
).__next__()
# Set text
status, data = client.post(
"update-socle-container-text",
{
"id": container_id,
"text": "meuh",
},
token,
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# Modified in socle
status_code, socle = client.post("socle", {}, token)
assert status == 200
new_container = filter(
lambda x: x["id"] == container_id, socle["containers"]
).__next__()
assert new_container["text"] == "meuh"
# Set back
status, data = client.post(
"update-socle-container-text",
{
"id": container_id,
"text": container["text"],
},
token,
)
assert status == 200
assert data["update_socle_container_by_pk"]["id"] == container_id
# back in socle
status_code, socle = client.post("socle", {}, token)
assert status == 200
new_container = filter(
lambda x: x["id"] == container_id, socle["containers"]
).__next__()
assert new_container["text"] == container["text"]
def test_socle_insert_container(login, socle):
token = login["token"]
# insert
status, data = client.post(
"insert-socle-container",
{
"alpha_full_rank": "098.099",
"container_id": None,
"cycle": "c1",
"full_rank": "98.99",
"group_id": login["group_id"],
"rank": 99,
"text": "meuh",
},
token,
)
assert status == 200
container_id = data["insert_socle_container_one"]["id"]
# Verify
data = client.gql(
""" query Container($id: Int!) {
socle_container_by_pk(id: $id) {
alpha_full_rank
container_id
cycle
full_rank
group_id
rank
text
}
}""",
{"id": container_id},
token,
)
container = data["data"]["socle_container_by_pk"]
assert container["alpha_full_rank"] == "098.099"
assert container["container_id"] == None
assert container["cycle"] == "c1"
assert container["full_rank"] == "98.99"
assert container["group_id"] == login["group_id"]
assert container["rank"] == 99
assert container["text"] == "meuh"
# Cleanup
data = client.admin_gql(
""" mutation DeleteContainer($id: Int!) {
delete_socle_container_by_pk(id: $id) {
id
}
}""",
{"id": container_id},
)
assert data["data"]["delete_socle_container_by_pk"]["id"] == container_id
def test_socle_insert_competency(login, socle):
token = login["token"]
container_ids = map(lambda x: x["id"], socle["containers"])
container_id = random.choice(list(container_ids))
# insert
status, data = client.post(
"insert-socle-competency",
{
"alpha_full_rank": "098.099",
"container_id": container_id,
"cycle": "c1",
"full_rank": "98.99",
"group_id": login["group_id"],
"rank": 99,
"text": "meuh",
},
token,
)
assert status == 200
competency_id = data["insert_socle_competency_one"]["id"]
# Verify
data = client.gql(
""" query Competency($id: Int!) {
socle_competency_by_pk(id: $id) {
alpha_full_rank
container_id
cycle
full_rank
group_id
rank
text
}
}""",
{"id": competency_id},
token,
)
competency = data["data"]["socle_competency_by_pk"]
assert competency["alpha_full_rank"] == "098.099"
assert competency["container_id"] == container_id
assert competency["cycle"] == "c1"
assert competency["full_rank"] == "98.99"
assert competency["group_id"] == login["group_id"]
assert competency["rank"] == 99
assert competency["text"] == "meuh"
# Cleanup
data = client.admin_gql(
""" mutation DeleteCompetency($id: Int!) {
delete_socle_competency_by_pk(id: $id) {
id
}
}""",
{"id": competency_id},
)
assert data["data"]["delete_socle_competency_by_pk"]["id"] == competency_id
def test_socle_insert_subject(login, socle):
token = login["token"]
# insert
status, data = client.post(
"insert-socle-subject",
{
"title": "meuh",
"group_id": login["group_id"],
},
token,
)
assert status == 200
subject_id = data["insert_socle_subject_one"]["id"]
# Verify
data = client.gql(
""" query Subject($id: Int!) {
socle_subject_by_pk(id: $id) {
group_id
title
}
}""",
{"id": subject_id},
token,
)
subject = data["data"]["socle_subject_by_pk"]
assert subject["group_id"] == login["group_id"]
assert subject["title"] == "meuh"
# Cleanup
data = client.admin_gql(
""" mutation DeleteCompetency($id: Int!) {
delete_socle_subject_by_pk(id: $id) {
id
}
}""",
{"id": subject_id},
)
assert data["data"]["delete_socle_subject_by_pk"]["id"] == subject_id
def test_socle_insert_competency_subject(login, socle):
token = login["token"]
competency_ids = list(map(lambda x: x["id"], socle["competencies"]))
competency_id = random.choice(competency_ids)
competency = filter(
lambda x: x["id"] == competency_id, socle["competencies"]
).__next__()
competency_subject_ids = list(
map(lambda x: x["subject_id"], competency["subjects"])
)
print(competency_subject_ids)
for subject in socle["subjects"]:
subject_id = subject["id"]
print(subject_id)
if subject_id not in competency_subject_ids:
# found one
break
# insert
status, data = client.post(
"insert-socle-competency-subject",
{
"competency_id": competency_id,
"subject_id": subject_id,
},
token,
)
assert status == 200
link_id = data["insert_socle_competency_subject_one"]["id"]
# Verify
status_code, socle = client.post("socle", {}, token)
assert status == 200
competency = filter(
lambda x: x["id"] == competency_id, socle["competencies"]
).__next__()
competency_subject_ids = list(
map(lambda x: x["subject_id"], competency["subjects"])
)
assert subject_id in competency_subject_ids
# Cleanup
data = client.admin_gql(
""" mutation DeleteCompetencySubject($id: Int!) {
delete_socle_competency_subject_by_pk(id: $id) {
id
}
}""",
{"id": link_id},
)
assert data["data"]["delete_socle_competency_subject_by_pk"]["id"] == link_id
| 31.304688
| 103
| 0.555653
| 3,425
| 32,056
| 4.938978
| 0.04292
| 0.048238
| 0.039194
| 0.049657
| 0.872842
| 0.83625
| 0.758158
| 0.706195
| 0.673563
| 0.655829
| 0
| 0.01176
| 0.312984
| 32,056
| 1,023
| 104
| 31.335288
| 0.756346
| 0.031601
| 0
| 0.61039
| 0
| 0
| 0.220713
| 0.091492
| 0
| 0
| 0
| 0
| 0.233766
| 1
| 0.027417
| false
| 0
| 0.002886
| 0
| 0.030303
| 0.002886
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e2cb0b9fd1efede210fca22afaa937a8df35e0f3
| 76
|
py
|
Python
|
lib/pyCATHY/__init__.py
|
BenjMy/pycathy_wrapper
|
8639713acbb5bc5c5cd293b94bdafe017d03f199
|
[
"BSD-3-Clause"
] | null | null | null |
lib/pyCATHY/__init__.py
|
BenjMy/pycathy_wrapper
|
8639713acbb5bc5c5cd293b94bdafe017d03f199
|
[
"BSD-3-Clause"
] | 8
|
2021-10-14T13:07:46.000Z
|
2022-03-02T03:32:05.000Z
|
lib/pyCATHY/__init__.py
|
BenjMy/pycathy_wrapper
|
8639713acbb5bc5c5cd293b94bdafe017d03f199
|
[
"BSD-3-Clause"
] | null | null | null |
from pyCATHY.plotters import cathy_plots
from pyCATHY.DA import cathy_DA
| 12.666667
| 40
| 0.828947
| 12
| 76
| 5.083333
| 0.583333
| 0.360656
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144737
| 76
| 5
| 41
| 15.2
| 0.938462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
|
e2ef7029319b913f3b55935b14fb0b47dcfb4b19
| 235
|
py
|
Python
|
termplanner/terms/apps.py
|
bauersebastian/termplanner
|
fe82f1db20d000cbc5b008f6c67c7630bbf315f4
|
[
"MIT"
] | null | null | null |
termplanner/terms/apps.py
|
bauersebastian/termplanner
|
fe82f1db20d000cbc5b008f6c67c7630bbf315f4
|
[
"MIT"
] | 19
|
2020-11-16T18:45:19.000Z
|
2021-02-07T14:01:50.000Z
|
termplanner/terms/apps.py
|
bauersebastian/termplanner
|
fe82f1db20d000cbc5b008f6c67c7630bbf315f4
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class TermsConfig(AppConfig):
name = "termplanner.terms"
def ready(self):
try:
import termplanner.terms.signals # noqa F401
except ImportError:
pass
| 19.583333
| 57
| 0.625532
| 24
| 235
| 6.125
| 0.833333
| 0.217687
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018405
| 0.306383
| 235
| 11
| 58
| 21.363636
| 0.883436
| 0.038298
| 0
| 0
| 0
| 0
| 0.075893
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0.125
| 0.375
| 0
| 0.75
| 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
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
3920d8cbc72a5a8e6102af5f56143a65eb906dea
| 47
|
py
|
Python
|
pychecker/__init__.py
|
PyVCEchecker/PyVCEchecker
|
879756927c82a2612c817bdffbae25234ff62558
|
[
"MIT"
] | null | null | null |
pychecker/__init__.py
|
PyVCEchecker/PyVCEchecker
|
879756927c82a2612c817bdffbae25234ff62558
|
[
"MIT"
] | null | null | null |
pychecker/__init__.py
|
PyVCEchecker/PyVCEchecker
|
879756927c82a2612c817bdffbae25234ff62558
|
[
"MIT"
] | null | null | null |
from .check import check_project, check_pkgver
| 23.5
| 46
| 0.851064
| 7
| 47
| 5.428571
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 47
| 1
| 47
| 47
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
39406841926311c77685f4aebc2e2a3cfd3d293a
| 274
|
py
|
Python
|
wrappers/CommonInterface/database.py
|
CN-UPB/python-mano-wrappers
|
8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf
|
[
"Apache-2.0"
] | null | null | null |
wrappers/CommonInterface/database.py
|
CN-UPB/python-mano-wrappers
|
8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf
|
[
"Apache-2.0"
] | null | null | null |
wrappers/CommonInterface/database.py
|
CN-UPB/python-mano-wrappers
|
8e3607feaa97bc3e2c906ee8e4b25b21853ea6cf
|
[
"Apache-2.0"
] | null | null | null |
from abc import ABC, abstractmethod
class CommonInterfaceDatabase(ABC):
def get_mano_list(self):
pass
def post_mano_create(self):
pass
def post_mano_remove(self):
pass
| 12.454545
| 35
| 0.507299
| 26
| 274
| 5.115385
| 0.576923
| 0.180451
| 0.165414
| 0.225564
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.445255
| 274
| 22
| 36
| 12.454545
| 0.875
| 0
| 0
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0.375
| 0.125
| 0
| 0.625
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
1a330f84b40dbee3cde047e9e049134b7c67853d
| 158
|
py
|
Python
|
readability/exceptions/__init__.py
|
thenerdyouknow/py-readability-metrics
|
3c0faab8b9c30d9d92d968510aaa59e1e6369657
|
[
"MIT"
] | null | null | null |
readability/exceptions/__init__.py
|
thenerdyouknow/py-readability-metrics
|
3c0faab8b9c30d9d92d968510aaa59e1e6369657
|
[
"MIT"
] | null | null | null |
readability/exceptions/__init__.py
|
thenerdyouknow/py-readability-metrics
|
3c0faab8b9c30d9d92d968510aaa59e1e6369657
|
[
"MIT"
] | 1
|
2021-08-06T15:28:15.000Z
|
2021-08-06T15:28:15.000Z
|
from warnings import warn
class ReadabilityException(Exception):
pass
def minimum_words_warning():
warn('100 words required for optimal accuracy.')
| 19.75
| 52
| 0.772152
| 19
| 158
| 6.315789
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022556
| 0.158228
| 158
| 8
| 52
| 19.75
| 0.879699
| 0
| 0
| 0
| 0
| 0
| 0.251572
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0.2
| 0.2
| 0
| 0.6
| 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
| 1
| 0
|
0
| 5
|
1a5a4b3ef0bb7c3ad7c7d762c5919168c4548cf0
| 33
|
py
|
Python
|
iter2/iterators/__init__.py
|
ramon93i7/iter2
|
7893d78af77cbb3e66e3e0795a3f08e7c162b07e
|
[
"Apache-2.0"
] | 1
|
2020-11-07T06:04:33.000Z
|
2020-11-07T06:04:33.000Z
|
iter2/iterators/__init__.py
|
ramon93i7/iter2
|
7893d78af77cbb3e66e3e0795a3f08e7c162b07e
|
[
"Apache-2.0"
] | null | null | null |
iter2/iterators/__init__.py
|
ramon93i7/iter2
|
7893d78af77cbb3e66e3e0795a3f08e7c162b07e
|
[
"Apache-2.0"
] | null | null | null |
from .iterator2 import Iterator2
| 16.5
| 32
| 0.848485
| 4
| 33
| 7
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0.121212
| 33
| 1
| 33
| 33
| 0.896552
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
1a67b38e81403abbec69cc939e9fffa50585c600
| 202
|
py
|
Python
|
src/enyo/injectors/hardware.py
|
iulhaq/enyo
|
4ead7f860d1ef136e3fdcf4b0658eb3b86ce9553
|
[
"Apache-2.0"
] | null | null | null |
src/enyo/injectors/hardware.py
|
iulhaq/enyo
|
4ead7f860d1ef136e3fdcf4b0658eb3b86ce9553
|
[
"Apache-2.0"
] | null | null | null |
src/enyo/injectors/hardware.py
|
iulhaq/enyo
|
4ead7f860d1ef136e3fdcf4b0658eb3b86ce9553
|
[
"Apache-2.0"
] | null | null | null |
from . import BaseInjector
class Hardware(BaseInjector):
def __init__(self, job_name, host_group, command, inject_at):
BaseInjector.__init__(self, job_name, host_group, command, inject_at)
| 33.666667
| 77
| 0.762376
| 26
| 202
| 5.384615
| 0.576923
| 0.114286
| 0.157143
| 0.214286
| 0.557143
| 0.557143
| 0.557143
| 0.557143
| 0.557143
| 0
| 0
| 0
| 0.148515
| 202
| 6
| 77
| 33.666667
| 0.813953
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
46c7e22379e083302e0a9f2b84ac7092146ad5c1
| 10
|
py
|
Python
|
sdf.py
|
Sanjit1/StemAwayTestingCode
|
b5110ef64f635ef6b9ec985e316a9ac83b0c406a
|
[
"MIT"
] | null | null | null |
sdf.py
|
Sanjit1/StemAwayTestingCode
|
b5110ef64f635ef6b9ec985e316a9ac83b0c406a
|
[
"MIT"
] | null | null | null |
sdf.py
|
Sanjit1/StemAwayTestingCode
|
b5110ef64f635ef6b9ec985e316a9ac83b0c406a
|
[
"MIT"
] | null | null | null |
print('f')
| 10
| 10
| 0.6
| 2
| 10
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 10
| 1
| 10
| 10
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
201dd27eeb8a9ac509c956f8ac9fda35112e702a
| 124
|
py
|
Python
|
dunnotheway/common/settings.py
|
iuriramos/DunnoTheWay
|
29831698e940183688809d865fa75136abddaf0d
|
[
"BSD-2-Clause"
] | null | null | null |
dunnotheway/common/settings.py
|
iuriramos/DunnoTheWay
|
29831698e940183688809d865fa75136abddaf0d
|
[
"BSD-2-Clause"
] | null | null | null |
dunnotheway/common/settings.py
|
iuriramos/DunnoTheWay
|
29831698e940183688809d865fa75136abddaf0d
|
[
"BSD-2-Clause"
] | null | null | null |
import os
# DunnoTheWay environment variables
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
| 11.272727
| 70
| 0.758065
| 17
| 124
| 5.235294
| 0.647059
| 0.202247
| 0.292135
| 0.337079
| 0.359551
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 124
| 10
| 71
| 12.4
| 0.824074
| 0.266129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
202d491993c9d3893a758c8e04a5ba126fcfb9fd
| 85
|
py
|
Python
|
gromozeka/app/__init__.py
|
moelius/gromozeka
|
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
|
[
"MIT"
] | 1
|
2020-06-12T17:48:43.000Z
|
2020-06-12T17:48:43.000Z
|
gromozeka/app/__init__.py
|
moelius/gromozeka
|
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
|
[
"MIT"
] | 2
|
2018-03-14T16:21:48.000Z
|
2018-06-08T14:41:17.000Z
|
gromozeka/app/__init__.py
|
moelius/gromozeka
|
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
|
[
"MIT"
] | null | null | null |
from gromozeka.app.app import Gromozeka, get_app
__all__ = ['Gromozeka', 'get_app']
| 21.25
| 48
| 0.752941
| 12
| 85
| 4.833333
| 0.5
| 0.413793
| 0.517241
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 85
| 3
| 49
| 28.333333
| 0.773333
| 0
| 0
| 0
| 0
| 0
| 0.188235
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2051a77249dd176addcce15ae6a3ae48209a9780
| 134
|
py
|
Python
|
prostate_cancer_nomograms/MSKCC/post_radical_prostatectomy/model_name.py
|
MaxenceLarose/ProstateCancerNomograms
|
4ff15dccd1f2dbde58d3a21a2e680e909e2e408a
|
[
"Apache-2.0"
] | 1
|
2021-10-04T18:03:10.000Z
|
2021-10-04T18:03:10.000Z
|
prostate_cancer_nomograms/MSKCC/post_radical_prostatectomy/model_name.py
|
MaxenceLarose/ProstateCancerNomograms
|
4ff15dccd1f2dbde58d3a21a2e680e909e2e408a
|
[
"Apache-2.0"
] | null | null | null |
prostate_cancer_nomograms/MSKCC/post_radical_prostatectomy/model_name.py
|
MaxenceLarose/ProstateCancerNomograms
|
4ff15dccd1f2dbde58d3a21a2e680e909e2e408a
|
[
"Apache-2.0"
] | null | null | null |
from prostate_cancer_nomograms.utils import ExtendedEnum
class ModelName(ExtendedEnum):
postoperative_BCR = "Postoperative BCR"
| 22.333333
| 56
| 0.828358
| 14
| 134
| 7.714286
| 0.785714
| 0.296296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119403
| 134
| 5
| 57
| 26.8
| 0.915254
| 0
| 0
| 0
| 0
| 0
| 0.126866
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
6451c8c4d5b42216c9ebb742b1b705d4514cb966
| 171
|
py
|
Python
|
src/Colorspaces/AbstractColorspace.py
|
SunflowerFuchs/pitft
|
419a1bdd0ce0bb9e1c6f11f1461fee4e3d88ff78
|
[
"MIT"
] | null | null | null |
src/Colorspaces/AbstractColorspace.py
|
SunflowerFuchs/pitft
|
419a1bdd0ce0bb9e1c6f11f1461fee4e3d88ff78
|
[
"MIT"
] | null | null | null |
src/Colorspaces/AbstractColorspace.py
|
SunflowerFuchs/pitft
|
419a1bdd0ce0bb9e1c6f11f1461fee4e3d88ff78
|
[
"MIT"
] | null | null | null |
from abc import ABC, abstractmethod
class AbstractColorspace(ABC):
@abstractmethod
def convert(self, red: float, green: float, blue: float) -> int:
pass
| 21.375
| 68
| 0.690058
| 20
| 171
| 5.9
| 0.75
| 0.288136
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.216374
| 171
| 7
| 69
| 24.428571
| 0.880597
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.6
| 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
|
646160af10397f23b0ada06cfee7b040d1645021
| 30
|
py
|
Python
|
code/abc013_1_03.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | 3
|
2019-08-16T16:55:48.000Z
|
2021-04-11T10:21:40.000Z
|
code/abc013_1_03.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
code/abc013_1_03.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
print("0ABCDE".index(input()))
| 30
| 30
| 0.7
| 4
| 30
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033333
| 0
| 30
| 1
| 30
| 30
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.193548
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
647093d126e7daabb71f8d34c07a20f808cd2c13
| 270
|
py
|
Python
|
tests/run_tests.py
|
dialogs/python-bot-sdk
|
737152e5ef8406af0b22600ef7cefa78da9035e8
|
[
"Apache-2.0"
] | 9
|
2019-01-22T09:59:12.000Z
|
2021-05-08T10:59:00.000Z
|
tests/run_tests.py
|
dialogs/python-bot-sdk
|
737152e5ef8406af0b22600ef7cefa78da9035e8
|
[
"Apache-2.0"
] | 29
|
2018-10-08T17:10:49.000Z
|
2021-04-28T18:46:30.000Z
|
tests/run_tests.py
|
dialogs/python-bot-sdk
|
737152e5ef8406af0b22600ef7cefa78da9035e8
|
[
"Apache-2.0"
] | 8
|
2019-01-22T09:49:32.000Z
|
2022-01-26T18:55:52.000Z
|
import unittest
from tests.test_updates import TestUpdates
from tests.test_users import TestUsers
from tests.test_groups import TestGroups
from tests.test_bot import TestBot
from tests.test_messaning import TestMessaging
if __name__ == '__main__':
unittest.main()
| 24.545455
| 46
| 0.82963
| 37
| 270
| 5.702703
| 0.486486
| 0.21327
| 0.308057
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122222
| 270
| 10
| 47
| 27
| 0.890295
| 0
| 0
| 0
| 0
| 0
| 0.02963
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
6473049d0875eba6036f524af16824f3c543de9e
| 73
|
py
|
Python
|
lecture5/debug.py
|
egorhm/python-for-devops-course
|
c385a7fbff173bc401abbbe850336a2b11bc86de
|
[
"MIT"
] | null | null | null |
lecture5/debug.py
|
egorhm/python-for-devops-course
|
c385a7fbff173bc401abbbe850336a2b11bc86de
|
[
"MIT"
] | null | null | null |
lecture5/debug.py
|
egorhm/python-for-devops-course
|
c385a7fbff173bc401abbbe850336a2b11bc86de
|
[
"MIT"
] | null | null | null |
# tail -f /var/log/syslog
import syslog
syslog.syslog("Debug message!")
| 14.6
| 31
| 0.726027
| 11
| 73
| 4.818182
| 0.727273
| 0.45283
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123288
| 73
| 4
| 32
| 18.25
| 0.828125
| 0.315068
| 0
| 0
| 0
| 0
| 0.291667
| 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
|
64bf89502b42e5a4eae807a8d57d23213d5e44b4
| 175
|
py
|
Python
|
allauth/socialaccount/providers/paypal_provider/urls.py
|
Fuzzwah/django-allauth
|
071cbef1388bb61a563d3e41197bd5b7c26664d2
|
[
"MIT"
] | null | null | null |
allauth/socialaccount/providers/paypal_provider/urls.py
|
Fuzzwah/django-allauth
|
071cbef1388bb61a563d3e41197bd5b7c26664d2
|
[
"MIT"
] | null | null | null |
allauth/socialaccount/providers/paypal_provider/urls.py
|
Fuzzwah/django-allauth
|
071cbef1388bb61a563d3e41197bd5b7c26664d2
|
[
"MIT"
] | null | null | null |
from allauth.socialaccount.providers.oauth2_provider.urls import default_urlpatterns
from .provider import PaypalProvider
urlpatterns = default_urlpatterns(PaypalProvider)
| 25
| 84
| 0.874286
| 18
| 175
| 8.333333
| 0.611111
| 0.24
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006211
| 0.08
| 175
| 6
| 85
| 29.166667
| 0.925466
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
64d20bc0bad314fae3c96b66765f38af06451d80
| 131
|
py
|
Python
|
lab2/detector.py
|
LRY89757/hello-dian.ai
|
3072dd2c6ece5c91977a2e8d36978f5dcbcdd3be
|
[
"MIT"
] | 13
|
2021-07-20T05:25:54.000Z
|
2022-03-23T09:35:48.000Z
|
lab2/detector.py
|
LRY89757/hello-dian.ai
|
3072dd2c6ece5c91977a2e8d36978f5dcbcdd3be
|
[
"MIT"
] | 2
|
2021-10-09T06:35:28.000Z
|
2021-10-17T11:43:43.000Z
|
lab2/detector.py
|
LRY89757/hello-dian.ai
|
3072dd2c6ece5c91977a2e8d36978f5dcbcdd3be
|
[
"MIT"
] | 22
|
2021-07-22T14:05:53.000Z
|
2022-03-26T01:18:27.000Z
|
import torch.nn as nn
import resnet
# TODO Design the detector.
# tips: Use pretrained `resnet` as backbone.
...
# End of todo
| 11.909091
| 44
| 0.70229
| 20
| 131
| 4.6
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.206107
| 131
| 10
| 45
| 13.1
| 0.884615
| 0.610687
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
64d7e703558981e99172ead6cedc6f0070eb180b
| 50
|
py
|
Python
|
spec/spec_main.py
|
timo-cmd2/Haiku
|
ec1d16ab90b5274974a319108e18c44fa9178df0
|
[
"CC0-1.0"
] | 3
|
2021-01-11T14:37:46.000Z
|
2021-05-10T08:43:28.000Z
|
spec/spec_main.py
|
timo-cmd2/HyperKube
|
ec1d16ab90b5274974a319108e18c44fa9178df0
|
[
"CC0-1.0"
] | 2
|
2021-07-18T14:25:44.000Z
|
2021-07-20T15:38:03.000Z
|
spec/spec_main.py
|
timo-cmd2/HyperKube
|
ec1d16ab90b5274974a319108e18c44fa9178df0
|
[
"CC0-1.0"
] | null | null | null |
import pytest
print "Initial tests to follow..."
| 12.5
| 34
| 0.74
| 7
| 50
| 5.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 50
| 3
| 35
| 16.666667
| 0.880952
| 0
| 0
| 0
| 0
| 0
| 0.52
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
b3a18169eb862e9cdf972ac7652cbae6140d83e3
| 40
|
py
|
Python
|
test/login.py
|
situmotian/test
|
3ce9f920f2c954949e6f67f7f805b46f2251ed7b
|
[
"MIT"
] | null | null | null |
test/login.py
|
situmotian/test
|
3ce9f920f2c954949e6f67f7f805b46f2251ed7b
|
[
"MIT"
] | null | null | null |
test/login.py
|
situmotian/test
|
3ce9f920f2c954949e6f67f7f805b46f2251ed7b
|
[
"MIT"
] | null | null | null |
num1 = 10
num2 = 20
num3 = 33
num4 = 40
| 8
| 9
| 0.6
| 8
| 40
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.428571
| 0.3
| 40
| 4
| 10
| 10
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b3a2548791ae5bb7b8f211813842ac24c19c7a0e
| 2,302
|
py
|
Python
|
RecoLocalCalo/Configuration/python/customizeHcalOnlyForProfiling.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 852
|
2015-01-11T21:03:51.000Z
|
2022-03-25T21:14:00.000Z
|
RecoLocalCalo/Configuration/python/customizeHcalOnlyForProfiling.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 30,371
|
2015-01-02T00:14:40.000Z
|
2022-03-31T23:26:05.000Z
|
RecoLocalCalo/Configuration/python/customizeHcalOnlyForProfiling.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 3,240
|
2015-01-02T05:53:18.000Z
|
2022-03-31T17:24:21.000Z
|
import FWCore.ParameterSet.Config as cms
# Customise the HCAL-only reconstruction to run on GPU
#
# Currently, this means:
# - running the unpacker on CPU, converting the digis into SoA format and copying them to GPU;
# - running the HBHE local reconstruction, including MAHI, on GPU.
def customizeHcalOnlyForProfilingGPUOnly(process):
process.consumer = cms.EDAnalyzer("GenericConsumer",
eventProducts = cms.untracked.vstring('hbheRecHitProducerGPU')
)
process.consume_step = cms.EndPath(process.consumer)
process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.consume_step)
return process
# Customise the HCAL-only reconstruction to run on GPU, and copy the data to the host
#
# Currently, this means:
# - running the unpacker on CPU, converting the digis into SoA format and copying them to GPU;
# - running the HBHE local reconstruction, including MAHI, on GPU;
# - copying the rechits to CPU and converting them to legacy format.
#
# (this is equivalent to customizeHcalOnlyForProfiling, as the copy and conversion is done by the same module)
def customizeHcalOnlyForProfilingGPUWithHostCopy(process):
process.consumer = cms.EDAnalyzer("GenericConsumer",
eventProducts = cms.untracked.vstring('hbheprereco')
)
process.consume_step = cms.EndPath(process.consumer)
process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.consume_step)
return process
# Customise the HCAL-only reconstruction to run on GPU, copy the data to the host, and convert to legacy format
#
# Currently, this means:
# - running the unpacker on CPU, converting the digis into SoA format and copying them to GPU;
# - running the HBHE local reconstruction, including MAHI, on GPU;
# - copying the rechits to CPU and converting them to legacy format.
#
# The same customisation can be also used on the CPU workflow, running up to the rechits on CPU.
def customizeHcalOnlyForProfiling(process):
process.consumer = cms.EDAnalyzer("GenericConsumer",
eventProducts = cms.untracked.vstring('hbheprereco')
)
process.consume_step = cms.EndPath(process.consumer)
process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.consume_step)
return process
| 37.737705
| 111
| 0.774109
| 296
| 2,302
| 5.97973
| 0.243243
| 0.016949
| 0.061017
| 0.033898
| 0.79322
| 0.79322
| 0.770621
| 0.770621
| 0.770621
| 0.745763
| 0
| 0.001539
| 0.153345
| 2,302
| 60
| 112
| 38.366667
| 0.906619
| 0.496525
| 0
| 0.636364
| 0
| 0
| 0.077397
| 0.01847
| 0
| 0
| 0
| 0
| 0
| 1
| 0.136364
| false
| 0
| 0.045455
| 0
| 0.318182
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b3b80438d7cc7c0c9f4ec77c9db12f8d876274ab
| 96
|
py
|
Python
|
main.py
|
thanhhoangvan/OCR-extract-id-card-information
|
1b4f670b48014c2b4300126eeba4b1437ef479b9
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
thanhhoangvan/OCR-extract-id-card-information
|
1b4f670b48014c2b4300126eeba4b1437ef479b9
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
thanhhoangvan/OCR-extract-id-card-information
|
1b4f670b48014c2b4300126eeba4b1437ef479b9
|
[
"Apache-2.0"
] | null | null | null |
import os
import time
import cv2
import tensorflow as tf
if __name__ == '__main__':
pass
| 10.666667
| 27
| 0.71875
| 14
| 96
| 4.357143
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013514
| 0.229167
| 96
| 8
| 28
| 12
| 0.810811
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.666667
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
b3c35e65f7a04f67268b04cb70fafb212c65aa36
| 13,847
|
py
|
Python
|
tests/test_client.py
|
nationalarchives/ds-caselaw-custom-api-client
|
eca9074afeadbf45b00f3da3a9cf32c44b25470f
|
[
"MIT"
] | 1
|
2022-03-22T17:28:55.000Z
|
2022-03-22T17:28:55.000Z
|
tests/test_client.py
|
nationalarchives/ds-caselaw-custom-api-client
|
eca9074afeadbf45b00f3da3a9cf32c44b25470f
|
[
"MIT"
] | 2
|
2022-03-16T14:29:21.000Z
|
2022-03-16T15:10:41.000Z
|
tests/test_client.py
|
nationalarchives/ds-caselaw-custom-api-client
|
eca9074afeadbf45b00f3da3a9cf32c44b25470f
|
[
"MIT"
] | null | null | null |
import json
import os
import unittest
from unittest.mock import MagicMock, patch
from xml.etree import ElementTree
from src.caselawclient.Client import MarklogicApiClient, RESULTS_PER_PAGE, ROOT_DIR
class ApiClientTest(unittest.TestCase):
@patch("src.caselawclient.Client.Path")
def test_eval_calls_request(self, MockPath):
mock_path_instance = MockPath.return_value
mock_path_instance.read_text.return_value = "mock-query"
client = MarklogicApiClient("", "", "", False)
client.session.request = MagicMock()
client.eval("mock-query-path.xqy", vars='{{"testvar":"test"}}')
client.session.request.assert_called_with(
"POST",
url=client._path_to_request_url("LATEST/eval"),
headers={
"Content-type": "application/x-www-form-urlencoded",
"Accept": "multipart/mixed"
},
data={
"xquery": "mock-query",
"vars": '{{"testvar":"test"}}'
}
)
def test_advanced_search(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'invoke'):
client.advanced_search(
q="my-query",
court="ewhc",
judge="a. judge",
party="a party",
page=2,
page_size=20
)
expected_vars = {
"court": "ewhc",
"judge": "a. judge",
"page": 2,
"page-size": 20,
"q": "my-query",
"party": "a party",
"neutral_citation": "",
"specific_keyword": "",
"order": "",
"from": "",
"to": "",
"show_unpublished": "false",
"only_unpublished": "false"
}
client.invoke.assert_called_with(
'/judgments/search/search.xqy',
json.dumps(expected_vars)
)
def test_eval_xslt_with_default(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = "/judgment/uri"
expected_vars = {
"uri": "/judgment/uri.xml",
"version_uri": None,
"show_unpublished": "true",
"img_location": "",
"xsl_filename": "judgment2.xsl"
}
client.eval_xslt(uri, show_unpublished=True)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, "xquery", "xslt_transform.xqy"),
vars=json.dumps(expected_vars),
accept_header='application/xml'
)
def test_eval_xslt_with_filename(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = "/judgment/uri"
expected_vars = {
"uri": "/judgment/uri.xml",
"version_uri": None,
"show_unpublished": "true",
"img_location": "",
"xsl_filename": "judgment0.xsl"
}
client.eval_xslt(uri, show_unpublished=True, xsl_filename="judgment0.xsl")
client.eval.assert_called_with(
os.path.join(ROOT_DIR, "xquery", "xslt_transform.xqy"),
vars=json.dumps(expected_vars),
accept_header='application/xml'
)
def test_set_boolean_property_true(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = "/judgment/uri"
expected_vars = {
"uri": "/judgment/uri.xml",
"value": "true",
"name": "my-property"
}
client.set_boolean_property(uri, name="my-property", value="true")
client.eval.assert_called_with(
os.path.join(ROOT_DIR, "xquery", "set_boolean_property.xqy"),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_set_boolean_property_false(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = "/judgment/uri"
expected_vars = {
"uri": "/judgment/uri.xml",
"value": "false",
"name": "my-property"
}
client.set_boolean_property(uri, name="my-property", value=False)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, "xquery", "set_boolean_property.xqy"),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_get_unset_boolean_property(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
client.eval.return_value.text = ''
result = client.get_boolean_property("/judgment/uri", "my-property")
self.assertFalse(result)
def test_get_boolean_property(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
client.eval.return_value.text = 'true'
client.eval.return_value.headers = {'content-type': 'multipart/mixed; boundary=595658fa1db1aa98'}
client.eval.return_value.content = b'\r\n--595658fa1db1aa98\r\n' \
b'Content-Type: text/plain\r\n' \
b'X-Primitive: text()\r\n' \
b'X-URI: /ewca/civ/2004/632.xml\r\n' \
b'X-Path: /prop:properties/published/text()\r\n' \
b'\r\ntrue\r\n' \
b'--595658fa1db1aa98--\r\n'
result = client.get_boolean_property("/judgment/uri", "my-property")
self.assertTrue(result)
def test_get_judgment_xml(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
client.eval.return_value.text = 'true'
client.eval.return_value.headers = {'content-type': 'multipart/mixed; boundary=595658fa1db1aa98'}
client.eval.return_value.content = b'\r\n--6bfe89fc4493c0e3\r\n' \
b'Content-Type: application/xml\r\n' \
b'X-Primitive: document-node()\r\n' \
b'X-URI: /ewca/civ/2004/632.xml\r\n' \
b'\r\n<?xml version="1.0" encoding="UTF-8"?>\n' \
b'<akomaNtoso xmlns="http://docs.oasis-open.org/legaldocml/ns/akn/3.0">\n' \
b'<judgment name="judgment" contains="originalVersion">\n' \
b'</judgment>\n' \
b'</akomaNtoso>'
result = client.get_judgment_xml("/judgment/uri")
expected = '<?xml version="1.0" encoding="UTF-8"?>\n' \
'<akomaNtoso xmlns="http://docs.oasis-open.org/legaldocml/ns/akn/3.0">\n' \
'<judgment name="judgment" contains="originalVersion">\n' \
'</judgment>\n' \
'</akomaNtoso>'
self.assertEqual(result, expected)
def test_save_judgment_xml(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = '/ewca/civ/2004/632'
judgment_str = '<root>My updated judgment</root>'
judgment_xml = ElementTree.fromstring(judgment_str)
expected_vars = {
'uri': '/ewca/civ/2004/632.xml',
'judgment': judgment_str,
'annotation':''
}
client.save_judgment_xml(uri, judgment_xml)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, 'xquery', 'update_judgment.xqy'),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_insert_judgment_xml(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = '/ewca/civ/2004/632'
judgment_str = '<root>My new judgment</root>'
judgment_xml = ElementTree.fromstring(judgment_str)
expected_vars = {
'uri': '/ewca/civ/2004/632.xml',
'judgment': judgment_str,
'annotation':''
}
client.insert_judgment_xml(uri, judgment_xml)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, 'xquery', 'insert_judgment.xqy'),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_get_judgment_version(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = '/ewca/civ/2004/632'
version = '3'
expected_vars = {
'uri':'/ewca/civ/2004/632.xml',
'version':'3'
}
client.get_judgment_version(uri, version)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, 'xquery', 'get_judgment_version.xqy'),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_list_judgment_versions(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = '/ewca/civ/2004/632'
expected_vars = {
'uri':'/ewca/civ/2004/632.xml'
}
client.list_judgment_versions(uri)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, 'xquery', 'list_judgment_versions.xqy'),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_checkout_judgment(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = '/ewca/civ/2004/632'
expected_vars = {
'uri':'/ewca/civ/2004/632.xml'
}
client.checkout_judgment(uri)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, 'xquery', 'checkout_judgment.xqy'),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_checkin_judgment(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = '/ewca/civ/2004/632'
expected_vars = {
'uri':'/ewca/civ/2004/632.xml'
}
client.checkin_judgment(uri)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, 'xquery', 'checkin_judgment.xqy'),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_get_property(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
client.eval.return_value.text = 'my-content'
client.eval.return_value.headers = {'content-type': 'multipart/mixed; boundary=595658fa1db1aa98'}
client.eval.return_value.content = b'\r\n--595658fa1db1aa98\r\n' \
b'Content-Type: text/plain\r\n' \
b'X-Primitive: text()\r\n' \
b'X-URI: /ewca/civ/2004/632.xml\r\n' \
b'X-Path: /prop:properties/published/text()\r\n' \
b'\r\nmy-content\r\n' \
b'--595658fa1db1aa98--\r\n'
result = client.get_property("/judgment/uri", "my-property")
self.assertEqual("my-content", result)
def test_get_unset_property(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
client.eval.return_value.text = ''
result = client.get_property("/judgment/uri", "my-property")
self.assertEqual("", result)
def test_set_property(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = "/judgment/uri"
expected_vars = {
"uri": "/judgment/uri.xml",
"value": "my-value",
"name": "my-property"
}
client.set_property(uri, name="my-property", value="my-value")
client.eval.assert_called_with(
os.path.join(ROOT_DIR, "xquery", "set_property.xqy"),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
def test_delete_document(self):
client = MarklogicApiClient("", "", "", False)
with patch.object(client, 'eval'):
uri = "/judgment/uri"
expected_vars = {
"uri": "/judgment/uri.xml",
}
client.delete_judgment(uri)
client.eval.assert_called_with(
os.path.join(ROOT_DIR, "xquery", "delete_judgment.xqy"),
vars=json.dumps(expected_vars),
accept_header="application/xml"
)
| 38.571031
| 123
| 0.504008
| 1,326
| 13,847
| 5.091252
| 0.122926
| 0.063694
| 0.081618
| 0.087987
| 0.779588
| 0.756777
| 0.734558
| 0.734558
| 0.703451
| 0.69723
| 0
| 0.023258
| 0.363472
| 13,847
| 359
| 124
| 38.571031
| 0.742682
| 0
| 0
| 0.511785
| 0
| 0.006734
| 0.216638
| 0.054304
| 0
| 0
| 0
| 0
| 0.063973
| 1
| 0.063973
| false
| 0
| 0.020202
| 0
| 0.087542
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
374cb7203525f6b7f2d441a8aa99001a3750e92a
| 63
|
py
|
Python
|
chapter3/condel/condel/metrics.py
|
chris-zen/phd-thesis
|
1eefdff8e7ca1910304e27ae42551dc64496b101
|
[
"Unlicense"
] | 1
|
2015-12-22T00:53:18.000Z
|
2015-12-22T00:53:18.000Z
|
chapter3/condel/condel/metrics.py
|
chris-zen/phd-thesis
|
1eefdff8e7ca1910304e27ae42551dc64496b101
|
[
"Unlicense"
] | null | null | null |
chapter3/condel/condel/metrics.py
|
chris-zen/phd-thesis
|
1eefdff8e7ca1910304e27ae42551dc64496b101
|
[
"Unlicense"
] | null | null | null |
# To keep backward compatibility
from fannsdb.metrics import *
| 21
| 32
| 0.809524
| 8
| 63
| 6.375
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 63
| 3
| 33
| 21
| 0.944444
| 0.47619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
374e1b7a1357d003864148b61bfda52f9cfe59c4
| 109
|
py
|
Python
|
medseg/dataset_loader/_utils/__init__.py
|
cherise215/Cooperative_Training_and_Latent_Space_Data_Augmentation
|
f5a987fb4babb891a41116e934a9ce6432e0d803
|
[
"Apache-2.0"
] | 18
|
2021-06-20T11:38:08.000Z
|
2022-01-04T11:53:10.000Z
|
medseg/dataset_loader/_utils/__init__.py
|
cherise215/Cooperative_Training_and_Latent_Space_Data_Augmentation
|
f5a987fb4babb891a41116e934a9ce6432e0d803
|
[
"Apache-2.0"
] | 1
|
2021-10-04T07:12:27.000Z
|
2021-12-06T20:54:46.000Z
|
medseg/dataset_loader/_utils/__init__.py
|
cherise215/Cooperative_Training_and_Latent_Space_Data_Augmentation
|
f5a987fb4babb891a41116e934a9ce6432e0d803
|
[
"Apache-2.0"
] | 2
|
2021-09-30T18:25:48.000Z
|
2022-03-14T17:16:41.000Z
|
# Created by cc215 at 11/12/19
# Enter feature description here
# Enter scenario name here
# Enter steps here
| 27.25
| 32
| 0.770642
| 18
| 109
| 4.666667
| 0.777778
| 0.214286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0.174312
| 109
| 4
| 33
| 27.25
| 0.833333
| 0.926606
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
375ae999f6e63f7b4ec278c51b2943312302cc05
| 25
|
py
|
Python
|
test/test.py
|
illumination-k/dotfiles
|
4a94c1b6f4e3c5f4b28a7e11efe0eca7f0757170
|
[
"MIT"
] | null | null | null |
test/test.py
|
illumination-k/dotfiles
|
4a94c1b6f4e3c5f4b28a7e11efe0eca7f0757170
|
[
"MIT"
] | 1
|
2021-06-12T09:34:57.000Z
|
2021-06-12T09:34:57.000Z
|
test/test.py
|
illumination-k/dotfiles
|
4a94c1b6f4e3c5f4b28a7e11efe0eca7f0757170
|
[
"MIT"
] | null | null | null |
#!/usr/loca/bin/python3
| 8.333333
| 23
| 0.68
| 4
| 25
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 0.08
| 25
| 2
| 24
| 12.5
| 0.695652
| 0.88
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
3794743f8ac5a7ea9dc6b0ec6bebf634b69e6393
| 98
|
py
|
Python
|
pymain/__init__.py
|
jasongraffius/pymain
|
c607e1d25bf340962a7d1fcd61531e1f1c508453
|
[
"Apache-2.0"
] | 1
|
2020-10-30T20:09:21.000Z
|
2020-10-30T20:09:21.000Z
|
pymain/__init__.py
|
jasongraffius/pymain
|
c607e1d25bf340962a7d1fcd61531e1f1c508453
|
[
"Apache-2.0"
] | null | null | null |
pymain/__init__.py
|
jasongraffius/pymain
|
c607e1d25bf340962a7d1fcd61531e1f1c508453
|
[
"Apache-2.0"
] | null | null | null |
from .pymain import pymain, alias
from .version import __version__
__all__ = ['pymain', 'alias']
| 19.6
| 33
| 0.744898
| 12
| 98
| 5.416667
| 0.5
| 0.338462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 98
| 4
| 34
| 24.5
| 0.77381
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
37b372de6ea3fb9735328d58d35681ffc8a67f51
| 47
|
py
|
Python
|
km3pipe/style/km3pipe_poster.py
|
KM3NeT/km3pipe
|
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
|
[
"MIT"
] | 1
|
2021-01-26T01:57:56.000Z
|
2021-01-26T01:57:56.000Z
|
km3pipe/style/km3pipe_poster.py
|
KM3NeT/km3pipe
|
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
|
[
"MIT"
] | null | null | null |
km3pipe/style/km3pipe_poster.py
|
KM3NeT/km3pipe
|
e27df0ceea02bcb26d128494a4e1d6a55e2f2e54
|
[
"MIT"
] | null | null | null |
from ..style import use
use("km3pipe-poster")
| 11.75
| 23
| 0.723404
| 7
| 47
| 4.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.12766
| 47
| 3
| 24
| 15.666667
| 0.804878
| 0
| 0
| 0
| 0
| 0
| 0.297872
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
37b5989f39df81f103d1ed03ef5184d335e08e84
| 119
|
py
|
Python
|
backend/home/admin.py
|
crowdbotics-dev/retyetuytrd-dev-23670
|
ed9bf7a6d019152274452ca82896664771233b81
|
[
"FTL",
"AML",
"RSA-MD"
] | null | null | null |
backend/home/admin.py
|
crowdbotics-dev/retyetuytrd-dev-23670
|
ed9bf7a6d019152274452ca82896664771233b81
|
[
"FTL",
"AML",
"RSA-MD"
] | null | null | null |
backend/home/admin.py
|
crowdbotics-dev/retyetuytrd-dev-23670
|
ed9bf7a6d019152274452ca82896664771233b81
|
[
"FTL",
"AML",
"RSA-MD"
] | null | null | null |
from django.contrib import admin
from .models import Homme1
admin.site.register(Homme1)
# Register your models here.
| 17
| 32
| 0.798319
| 17
| 119
| 5.588235
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019417
| 0.134454
| 119
| 6
| 33
| 19.833333
| 0.902913
| 0.218487
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 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
|
808014d84b037123225125d4b62c25271f47a745
| 526
|
py
|
Python
|
src/tf_transformers/models/model_configs/__init__.py
|
s4sarath/tf-transformers
|
361f7b01c7816034ddfc8661f8b6a967835bc1de
|
[
"Apache-2.0"
] | 1
|
2021-09-13T07:21:15.000Z
|
2021-09-13T07:21:15.000Z
|
src/tf_transformers/models/model_configs/__init__.py
|
Vibha111094/tf-transformers
|
f26d440a4de0557e0e481279bfd70a732aaa8825
|
[
"Apache-2.0"
] | null | null | null |
src/tf_transformers/models/model_configs/__init__.py
|
Vibha111094/tf-transformers
|
f26d440a4de0557e0e481279bfd70a732aaa8825
|
[
"Apache-2.0"
] | null | null | null |
from tf_transformers.models.model_configs.albert import albert_base_v2, albert_large_v2
from tf_transformers.models.model_configs.bert import (
bert_base_cased,
bert_base_uncased,
bert_large_cased,
bert_large_uncased,
)
from tf_transformers.models.model_configs.gpt2 import gpt2, gpt2_medium
from tf_transformers.models.model_configs.mt5 import mt5_small
from tf_transformers.models.model_configs.roberta import roberta_base, roberta_large
from tf_transformers.models.model_configs.t5 import t5_base, t5_small
| 43.833333
| 87
| 0.853612
| 79
| 526
| 5.303797
| 0.253165
| 0.085919
| 0.257757
| 0.343675
| 0.515513
| 0.515513
| 0
| 0
| 0
| 0
| 0
| 0.020964
| 0.093156
| 526
| 11
| 88
| 47.818182
| 0.857442
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.545455
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
808648bdc499dbbe6ee995b9e84f4b9add123e67
| 80
|
py
|
Python
|
modplus/__init__.py
|
duanegtr/legendv3-cogs
|
ffde1452a75ad42b4f6511b612ce486e96fcd6de
|
[
"MIT"
] | 3
|
2020-09-03T13:39:30.000Z
|
2021-05-21T01:37:00.000Z
|
modplus/__init__.py
|
duanegtr/legendv3-cogs
|
ffde1452a75ad42b4f6511b612ce486e96fcd6de
|
[
"MIT"
] | null | null | null |
modplus/__init__.py
|
duanegtr/legendv3-cogs
|
ffde1452a75ad42b4f6511b612ce486e96fcd6de
|
[
"MIT"
] | 4
|
2020-09-24T04:24:02.000Z
|
2021-04-25T03:48:44.000Z
|
from .modplus import ModPlus
def setup(bot):
bot.add_cog(ModPlus(bot))
| 16
| 30
| 0.6875
| 12
| 80
| 4.5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 80
| 4
| 31
| 20
| 0.84375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
808dfe48e020f455dba382974e0d9d98163ddd53
| 221
|
py
|
Python
|
active_learning/data/__init__.py
|
ravindrabharathi/fsdl-active-learning2
|
55eb69d5d50759ee3bcdb1fa6c02f4ec6f529305
|
[
"MIT"
] | 3
|
2021-05-09T18:44:48.000Z
|
2021-11-24T20:44:54.000Z
|
active_learning/data/__init__.py
|
ravindrabharathi/fsdl-active-learning2
|
55eb69d5d50759ee3bcdb1fa6c02f4ec6f529305
|
[
"MIT"
] | null | null | null |
active_learning/data/__init__.py
|
ravindrabharathi/fsdl-active-learning2
|
55eb69d5d50759ee3bcdb1fa6c02f4ec6f529305
|
[
"MIT"
] | 6
|
2021-05-03T08:42:56.000Z
|
2021-10-03T09:05:13.000Z
|
from .base_data_module import BaseDataModule
from .cassava import CassavaDataModule
from .deepweeds import DeepweedsDataModule
from .droughtwatch import DroughtWatch
from .mnist import MNIST
from .util import BaseDataset
| 31.571429
| 44
| 0.864253
| 26
| 221
| 7.269231
| 0.538462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108597
| 221
| 6
| 45
| 36.833333
| 0.959391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
80cc136adb6e556251d025bae6d869803dd641f6
| 2,875
|
py
|
Python
|
test.py
|
btaylor66/nQueens
|
3d32f9b1c8b1824e756dfcad3900f1b9a5396276
|
[
"MIT"
] | null | null | null |
test.py
|
btaylor66/nQueens
|
3d32f9b1c8b1824e756dfcad3900f1b9a5396276
|
[
"MIT"
] | null | null | null |
test.py
|
btaylor66/nQueens
|
3d32f9b1c8b1824e756dfcad3900f1b9a5396276
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import unittest
import nqueens
class TestBoardMethods(unittest.TestCase):
def setUp(self):
pass
def test_initialize(self):
"""Procedure:
1. initialize the board
------------
Verification:
2. check board size
"""
test = nqueens.Board(4)
self.assertEqual(test.n, 4, 'Incorrect Board Size')
def test_horizontal_fail(self):
test = nqueens.Board(4)
test.place_queen(0,0)
test.place_queen(0,2)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
def test_vertical_fail(self):
test = nqueens.Board(4)
test.place_queen(0,1)
test.place_queen(3,1)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
def test_diagonal_fail(self):
test = nqueens.Board(4)
test.place_queen(0,0)
test.place_queen(3,3)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
def test_diagonal_fail2(self):
test = nqueens.Board(6)
test.place_queen(5,1)
test.place_queen(4,2)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
def test_diagonal_fail3(self):
test = nqueens.Board(6)
test.place_queen(2,2)
test.place_queen(4,0)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
def test_x_out_of_scope(self):
test = nqueens.Board(4)
test.place_queen(0,0)
test.place_queen(5,3)
self.assertEqual(test.verify_board(),0,'ERROR:root:Error placing queen 5,3: list index out of range',)
#self.assertRaises(test.verify_board(), IndexError, 'ERROR:root:Error placing queen 5,3: list index out of range', )
def test_correct_size4(self):
test = nqueens.Board(4)
test.place_queen(0,2)
test.place_queen(1,0)
test.place_queen(2,3)
test.place_queen(3,1)
self.assertEqual(test.verify_board(),0, 'Board should pass')
def test_horizontal_fail_size1000(self):
test = nqueens.Board(1000)
test.place_queen(0,0)
test.place_queen(0,962)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
def test_vertical_fail_size1000(self):
test = nqueens.Board(1000)
test.place_queen(0,1)
test.place_queen(850,1)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
def test_diagonal_fail_size1000(self):
test = nqueens.Board(1000)
test.place_queen(0,0)
test.place_queen(999,999)
self.assertEqual(test.verify_board(),2, 'Looking for 2 Queen misplaced')
if __name__ == '__main__':
unittest.main()
| 33.823529
| 125
| 0.617043
| 385
| 2,875
| 4.433766
| 0.174026
| 0.115993
| 0.180434
| 0.117165
| 0.730521
| 0.729936
| 0.710018
| 0.710018
| 0.659637
| 0.637376
| 0
| 0.053081
| 0.266087
| 2,875
| 85
| 126
| 33.823529
| 0.755924
| 0.075478
| 0
| 0.483871
| 0
| 0
| 0.133811
| 0
| 0
| 0
| 0
| 0
| 0.177419
| 1
| 0.193548
| false
| 0.032258
| 0.032258
| 0
| 0.241935
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
80ebf30a6a8b06ed013467f7b6b44b36a8bd75dc
| 52
|
py
|
Python
|
django_unicorn/components/__init__.py
|
Joetib/django-unicorn
|
51d3073836fb57ba31f7b53e246ceb7f3bf11895
|
[
"MIT"
] | 1
|
2021-02-28T16:45:26.000Z
|
2021-02-28T16:45:26.000Z
|
django_unicorn/components/__init__.py
|
maximdeclercq/django-unicorn
|
96e9e962f2fa4d2b5ad8f88cefd4b922b4c4b059
|
[
"MIT"
] | null | null | null |
django_unicorn/components/__init__.py
|
maximdeclercq/django-unicorn
|
96e9e962f2fa4d2b5ad8f88cefd4b922b4c4b059
|
[
"MIT"
] | null | null | null |
from .unicorn_view import *
from .updaters import *
| 17.333333
| 27
| 0.769231
| 7
| 52
| 5.571429
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 2
| 28
| 26
| 0.886364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
03b9bbaee23d81e134ccd0c94ea89ec6dff6767c
| 85
|
py
|
Python
|
snippets/booleans/booleans.py
|
peterbe/govspy
|
b1d0d3a3f9cfbbdc6e90ee4abec012f29a4d4b57
|
[
"CNRI-Python"
] | 106
|
2015-02-16T09:09:37.000Z
|
2022-03-16T14:34:29.000Z
|
snippets/booleans/booleans.py
|
peterbe/govspy
|
b1d0d3a3f9cfbbdc6e90ee4abec012f29a4d4b57
|
[
"CNRI-Python"
] | 13
|
2017-02-20T01:34:45.000Z
|
2022-03-11T10:48:58.000Z
|
snippets/booleans/booleans.py
|
peterbe/govspy
|
b1d0d3a3f9cfbbdc6e90ee4abec012f29a4d4b57
|
[
"CNRI-Python"
] | 13
|
2016-02-25T01:24:24.000Z
|
2020-11-10T01:27:56.000Z
|
print(True and False) # False
print(True or False) # True
print(not True) # False
| 21.25
| 30
| 0.694118
| 14
| 85
| 4.214286
| 0.428571
| 0.305085
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 85
| 3
| 31
| 28.333333
| 0.867647
| 0.188235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 1
|
0
| 5
|
03c60698cf8c090f7793380f79731fb33c5aadd6
| 38
|
py
|
Python
|
pykafka/cli/__main__.py
|
Instamojo/pykafka
|
c8c3e445773beefc52039adf708295ed2b8394d2
|
[
"Apache-2.0"
] | 1,174
|
2015-01-26T22:11:37.000Z
|
2022-03-22T14:42:18.000Z
|
pykafka/cli/__main__.py
|
Instamojo/pykafka
|
c8c3e445773beefc52039adf708295ed2b8394d2
|
[
"Apache-2.0"
] | 845
|
2015-01-26T16:02:35.000Z
|
2021-03-23T11:07:12.000Z
|
pykafka/cli/__main__.py
|
Instamojo/pykafka
|
c8c3e445773beefc52039adf708295ed2b8394d2
|
[
"Apache-2.0"
] | 295
|
2015-02-28T10:44:08.000Z
|
2021-12-04T23:05:18.000Z
|
from .kafka_tools import main
main()
| 9.5
| 29
| 0.763158
| 6
| 38
| 4.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 38
| 3
| 30
| 12.666667
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
03c9451eb6a4a1d6de23577b13e7995471571632
| 74
|
py
|
Python
|
src/sympc/algorithms/__init__.py
|
libratiger/SyMPC
|
63cf891cd91634b4c049dea12d9c28eece7d60ad
|
[
"MIT"
] | null | null | null |
src/sympc/algorithms/__init__.py
|
libratiger/SyMPC
|
63cf891cd91634b4c049dea12d9c28eece7d60ad
|
[
"MIT"
] | null | null | null |
src/sympc/algorithms/__init__.py
|
libratiger/SyMPC
|
63cf891cd91634b4c049dea12d9c28eece7d60ad
|
[
"MIT"
] | null | null | null |
"""Applications of primitive MPC operations."""
from . import algorithms
| 18.5
| 47
| 0.756757
| 8
| 74
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135135
| 74
| 3
| 48
| 24.666667
| 0.875
| 0.554054
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
03f528df4d613d02de88e3d739d5080cdc524177
| 154
|
py
|
Python
|
pyusermanager/Token/__init__.py
|
Aurvandill137/pyusermanager
|
56bb16b3ed510eee70ff33ccafdc0a9b0fc673b0
|
[
"MIT"
] | 3
|
2022-02-13T14:10:35.000Z
|
2022-02-14T00:20:02.000Z
|
pyusermanager/Token/__init__.py
|
Aurvandill137/pyusermanager
|
56bb16b3ed510eee70ff33ccafdc0a9b0fc673b0
|
[
"MIT"
] | null | null | null |
pyusermanager/Token/__init__.py
|
Aurvandill137/pyusermanager
|
56bb16b3ed510eee70ff33ccafdc0a9b0fc673b0
|
[
"MIT"
] | 1
|
2022-02-13T14:10:03.000Z
|
2022-02-13T14:10:03.000Z
|
from .token_base_class import Token
from .token_auth_class import Auth
from .token_activation_class import Activation
from .token_reset_class import Reset
| 38.5
| 46
| 0.876623
| 24
| 154
| 5.291667
| 0.333333
| 0.283465
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097403
| 154
| 4
| 47
| 38.5
| 0.913669
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
|
207bbace7635f299efe71855c59b0ad4522fb702
| 538
|
py
|
Python
|
MillerArrays/millerArrayUnpackIpIn.py
|
MooersLab/jupyterlabcctbxsnipsplus
|
80a380046adcc9b16581ed1681884017514edbb7
|
[
"MIT"
] | null | null | null |
MillerArrays/millerArrayUnpackIpIn.py
|
MooersLab/jupyterlabcctbxsnipsplus
|
80a380046adcc9b16581ed1681884017514edbb7
|
[
"MIT"
] | null | null | null |
MillerArrays/millerArrayUnpackIpIn.py
|
MooersLab/jupyterlabcctbxsnipsplus
|
80a380046adcc9b16581ed1681884017514edbb7
|
[
"MIT"
] | null | null | null |
# Description: Unpack into I(+) and I(-) for a specified Miller array.
# Source: NA
"""
Iobs = miller_arrays[${1:0}]
i_plus, i_minus = Iobs.hemispheres_acentrics()
ipd = i_plus.data()
ip=list(ipd)
imd = i_minus.data()
im = list(imd)
len(im)
Iobs.show_summary()
print(Iobs.info())
print(Iobs.observation_type())
"""
Iobs = miller_arrays[0]
i_plus, i_minus = Iobs.hemispheres_acentrics()
ipd = i_plus.data()
ip=list(ipd)
imd = i_minus.data()
im = list(imd)
len(im)
Iobs.show_summary()
print(Iobs.info())
print(Iobs.observation_type())
| 19.925926
| 72
| 0.704461
| 88
| 538
| 4.125
| 0.375
| 0.055096
| 0.088154
| 0.038567
| 0.749311
| 0.749311
| 0.749311
| 0.749311
| 0.749311
| 0.749311
| 0
| 0.006329
| 0.118959
| 538
| 26
| 73
| 20.692308
| 0.759494
| 0.568773
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.2
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2084eecdaab5ce9bbff560f7545a349e8f20262c
| 210
|
py
|
Python
|
mysite/home/views.py
|
GabrielReira/Django-for-Everybody-UM
|
aef49f1b21e7007e7592e60d944c8c52b502386f
|
[
"MIT"
] | null | null | null |
mysite/home/views.py
|
GabrielReira/Django-for-Everybody-UM
|
aef49f1b21e7007e7592e60d944c8c52b502386f
|
[
"MIT"
] | null | null | null |
mysite/home/views.py
|
GabrielReira/Django-for-Everybody-UM
|
aef49f1b21e7007e7592e60d944c8c52b502386f
|
[
"MIT"
] | null | null | null |
from django.views import generic
from django.shortcuts import render
class HomeView(generic.TemplateView):
template_name = 'home/main.html'
def home(request):
return render(request, 'home/main.html')
| 23.333333
| 44
| 0.766667
| 28
| 210
| 5.714286
| 0.642857
| 0.125
| 0.15
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 210
| 8
| 45
| 26.25
| 0.879121
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 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
| 1
| 1
| 1
| 0
|
0
| 5
|
20958eef7ac80b84602ea528e1970b28ec7cfd26
| 142
|
py
|
Python
|
Python/Book Assignments/iftest.py
|
AungWinnHtut/CStutorial
|
4b57721b814e9c2d288af64a979704dd70f14ddb
|
[
"MIT"
] | null | null | null |
Python/Book Assignments/iftest.py
|
AungWinnHtut/CStutorial
|
4b57721b814e9c2d288af64a979704dd70f14ddb
|
[
"MIT"
] | null | null | null |
Python/Book Assignments/iftest.py
|
AungWinnHtut/CStutorial
|
4b57721b814e9c2d288af64a979704dd70f14ddb
|
[
"MIT"
] | 1
|
2022-03-15T12:20:26.000Z
|
2022-03-15T12:20:26.000Z
|
playerage = 9
if playerage>10:
print("You are too old to play this game")
if playerage<8:
print("You are too young to play this game")
| 28.4
| 48
| 0.697183
| 26
| 142
| 3.807692
| 0.576923
| 0.222222
| 0.222222
| 0.282828
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035714
| 0.211268
| 142
| 5
| 48
| 28.4
| 0.848214
| 0
| 0
| 0
| 0
| 0
| 0.475524
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0
| 0
| null | 1
| 1
| 1
| 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
| 5
|
45906315715d1f9b59feb9a50b624e2c0b4d9ed2
| 42
|
py
|
Python
|
dshelper/plots/__init__.py
|
zmcddn/dshelper
|
99a876e0926b6af123207969c6f4ca1fce5369da
|
[
"MIT"
] | 17
|
2019-01-11T14:48:25.000Z
|
2021-09-09T07:42:31.000Z
|
dshelper/plots/__init__.py
|
zmcddn/dshelper
|
99a876e0926b6af123207969c6f4ca1fce5369da
|
[
"MIT"
] | 2
|
2019-01-17T02:43:44.000Z
|
2019-08-29T17:04:54.000Z
|
dshelper/plots/__init__.py
|
zmcddn/dshelper
|
99a876e0926b6af123207969c6f4ca1fce5369da
|
[
"MIT"
] | 2
|
2019-04-02T06:12:05.000Z
|
2019-10-29T03:19:34.000Z
|
from .plot_panel import PlotPanel # noqa
| 21
| 41
| 0.785714
| 6
| 42
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 42
| 1
| 42
| 42
| 0.914286
| 0.095238
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
45ae9e78a97ee8e79888cd115a098d6842eb2c02
| 1,723
|
py
|
Python
|
test/book_loader_test.py
|
ascasse/material_server
|
4472a55b03c2ab25d9a199c4c401ea67761a320b
|
[
"MIT"
] | null | null | null |
test/book_loader_test.py
|
ascasse/material_server
|
4472a55b03c2ab25d9a199c4c401ea67761a320b
|
[
"MIT"
] | null | null | null |
test/book_loader_test.py
|
ascasse/material_server
|
4472a55b03c2ab25d9a199c4c401ea67761a320b
|
[
"MIT"
] | null | null | null |
'''
Books loader test class
'''
import unittest
from plugins.books.book_loader import process_book, read_file, load_json_book
class BookLoaderTest(unittest.TestCase):
def setUp(self):
self.no_lines = read_file('./test/data/book.txt')
self.lines = read_file('./test/data/book_lines.txt')
self.lines_mixed = read_file('./test/data/book_lines_mixed.txt')
def test_process_book_lines_mixed(self):
book = process_book(self.lines_mixed)
self.assertIsNotNone(book)
self.assertEqual(len(book['pages']), 5)
self.assertEqual(len(book['pages'][0]['lines']), 2)
self.assertEqual(len(book['pages'][1]['lines']), 1)
self.assertEqual(len(book['pages'][2]['lines']), 1)
self.assertEqual(len(book['pages'][3]['lines']), 1)
def test_process_book_no_lines(self):
book = process_book(self.no_lines)
self.assertIsNotNone(book)
self.assertEqual(len(book['pages']), 4)
self.assertEqual(len(book['pages'][0]['lines']), 1)
self.assertEqual(len(book['pages'][1]['lines']), 1)
self.assertEqual(len(book['pages'][2]['lines']), 1)
def test_process_book_lines(self):
book = process_book(self.lines)
self.assertIsNotNone(book)
self.assertEqual(len(book['pages']), 4)
self.assertEqual(len(book['pages'][0]['lines']), 3)
self.assertEqual(len(book['pages'][1]['lines']), 1)
self.assertEqual(len(book['pages'][2]['lines']), 2)
def test_load_json_book(self):
book = load_json_book(1, './test/data/las moscas y la miel.json')
self.assertIsNotNone(book)
self.assertEqual(len(book['pages']), 5)
self.assertEqual(book['id'], 1)
| 38.288889
| 77
| 0.63668
| 232
| 1,723
| 4.581897
| 0.172414
| 0.211665
| 0.237065
| 0.289746
| 0.741298
| 0.719661
| 0.52587
| 0.482596
| 0.482596
| 0.482596
| 0
| 0.018545
| 0.186303
| 1,723
| 44
| 78
| 39.159091
| 0.739658
| 0.013349
| 0
| 0.382353
| 0
| 0
| 0.140071
| 0.034279
| 0
| 0
| 0
| 0
| 0.558824
| 1
| 0.147059
| false
| 0
| 0.058824
| 0
| 0.235294
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
45c39736e3354792233a5b18fa3616f051475070
| 70
|
py
|
Python
|
__init__.py
|
fueler/redpanda
|
86ff53de8e28095804c463a87cb78e2ea40b1c39
|
[
"MIT"
] | null | null | null |
__init__.py
|
fueler/redpanda
|
86ff53de8e28095804c463a87cb78e2ea40b1c39
|
[
"MIT"
] | null | null | null |
__init__.py
|
fueler/redpanda
|
86ff53de8e28095804c463a87cb78e2ea40b1c39
|
[
"MIT"
] | null | null | null |
import redpanda.ecs
import redpanda.parser
import redpanada.template
| 14
| 25
| 0.857143
| 9
| 70
| 6.666667
| 0.666667
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 70
| 4
| 26
| 17.5
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
|
45d04d56b0765d110ec07b0c078a1da429eb4050
| 137
|
wsgi
|
Python
|
app.wsgi
|
meteostat/meteostat-server
|
fecb4acab34ce97121a7c9a16e3ca1b4ffb55b7a
|
[
"MIT"
] | 3
|
2021-04-11T03:28:45.000Z
|
2022-02-03T19:55:56.000Z
|
app.wsgi
|
meteostat/meteostat-server
|
fecb4acab34ce97121a7c9a16e3ca1b4ffb55b7a
|
[
"MIT"
] | 1
|
2021-09-21T12:45:07.000Z
|
2021-09-23T08:53:56.000Z
|
app.wsgi
|
meteostat/meteostat-server
|
fecb4acab34ce97121a7c9a16e3ca1b4ffb55b7a
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
"""
Meteostat JSON API Server
The code is licensed under the MIT license.
"""
from server import app as application
| 13.7
| 43
| 0.737226
| 21
| 137
| 4.809524
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175182
| 137
| 9
| 44
| 15.222222
| 0.893805
| 0.635037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
45db9802b0ce937cdee3eed4171e9cc05da63a8a
| 44
|
py
|
Python
|
ontology/__init__.py
|
dmitrijbozhkov/emergenecy-medicine-data
|
7fea6b2c76a180c5e4c145a7fa6c83ae3e7af7bc
|
[
"Apache-2.0"
] | null | null | null |
ontology/__init__.py
|
dmitrijbozhkov/emergenecy-medicine-data
|
7fea6b2c76a180c5e4c145a7fa6c83ae3e7af7bc
|
[
"Apache-2.0"
] | null | null | null |
ontology/__init__.py
|
dmitrijbozhkov/emergenecy-medicine-data
|
7fea6b2c76a180c5e4c145a7fa6c83ae3e7af7bc
|
[
"Apache-2.0"
] | null | null | null |
""" Developing ontology from mdical data """
| 44
| 44
| 0.727273
| 5
| 44
| 6.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 44
| 1
| 44
| 44
| 0.842105
| 0.818182
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b3781e252bef2add023cc96e535e32a655c18404
| 174
|
py
|
Python
|
chapter2/chapter2_type_hints_04.py
|
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
|
d2218d225c5b93723ecf46c19619ed5d3f2473e6
|
[
"MIT"
] | 107
|
2021-03-26T20:18:51.000Z
|
2022-03-26T03:38:08.000Z
|
chapter2/chapter2_type_hints_04.py
|
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
|
d2218d225c5b93723ecf46c19619ed5d3f2473e6
|
[
"MIT"
] | 4
|
2021-06-09T08:48:21.000Z
|
2021-12-27T09:04:43.000Z
|
chapter2/chapter2_type_hints_04.py
|
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
|
d2218d225c5b93723ecf46c19619ed5d3f2473e6
|
[
"MIT"
] | 58
|
2021-03-12T20:51:19.000Z
|
2022-03-27T15:49:49.000Z
|
from typing import Union
def greeting(name: Union[str, None] = None) -> str:
return f"Hello, {name if name else 'Anonymous'}"
print(greeting()) # "Hello, Anonymous"
| 19.333333
| 52
| 0.672414
| 24
| 174
| 4.875
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183908
| 174
| 8
| 53
| 21.75
| 0.823944
| 0.103448
| 0
| 0
| 0
| 0
| 0.246753
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.75
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
2fe53897a1acae22947f11513930864e59b3d140
| 4,660
|
py
|
Python
|
tests/dict/test_dict_validation.py
|
nikitanovosibirsk/valera
|
f2111f5b886fe58f6f8054c20de35102c4518114
|
[
"Apache-2.0"
] | null | null | null |
tests/dict/test_dict_validation.py
|
nikitanovosibirsk/valera
|
f2111f5b886fe58f6f8054c20de35102c4518114
|
[
"Apache-2.0"
] | 2
|
2021-12-05T11:41:46.000Z
|
2022-02-01T15:13:19.000Z
|
tests/dict/test_dict_validation.py
|
nikitanovosibirsk/valera
|
f2111f5b886fe58f6f8054c20de35102c4518114
|
[
"Apache-2.0"
] | null | null | null |
from typing import Any, Dict
import pytest
from baby_steps import given, then, when
from district42 import schema
from th import PathHolder
from valera import validate
from valera.errors import ExtraKeyValidationError, MissingKeyValidationError, TypeValidationError
@pytest.mark.parametrize("value", [
{},
{"id": 1},
{"id": 1, "name": "Bob"},
])
def test_dict_type_validation(value: Dict[Any, Any]):
with given:
sch = schema.dict
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == []
def test_dict_type_validation_error():
with given:
sch = schema.dict
value = []
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == [TypeValidationError(PathHolder(), value, dict)]
def test_dict_no_keys_validation():
with given:
sch = schema.dict({})
value = {}
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == []
def test_dict_keys_validation():
with given:
sch = schema.dict({
"id": schema.int,
"name": schema.str,
})
value = {"id": 1, "name": "Bob"}
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == []
def test_dict_extra_key_validation_error():
with given:
sch = schema.dict({})
value = {"id": 1}
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == [
ExtraKeyValidationError(PathHolder(), value, "id")
]
def test_dict_missing_key_validation_error():
with given:
sch = schema.dict({
"id": schema.int,
"name": schema.str,
})
value = {"id": 1}
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == [
MissingKeyValidationError(PathHolder(), value, "name")
]
@pytest.mark.parametrize("value", [
{},
{"id": 1},
{"id": 1, "name": "Bob"},
])
def test_dict_relaxed_no_keys_validation(value: Dict[Any, Any]):
with given:
sch = schema.dict({...: ...})
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == []
def test_dict_relaxed_keys_validation():
with given:
sch = schema.dict({
"id": schema.int,
"name": schema.str,
...: ...,
})
value = {"id": 1, "name": "Bob", "is_deleted": False}
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == []
def test_dict_nested_keys_validation():
with given:
sch = schema.dict({
"result": schema.dict({
"id": schema.int,
"name": schema.str,
})
})
value = {
"result": {
"id": 1,
"name": "Bob"
}
}
with when:
result = validate(sch, value)
with then:
assert result.get_errors() == []
def test_dict_nested_extra_key_valudidation_error():
with given:
sch = schema.dict({
"result": schema.dict({
"id": schema.int,
})
})
value = {
"result": {
"id": 1,
"name": "Bob",
}
}
with when:
result = validate(sch, value)
with then:
path = PathHolder()["result"]
assert result.get_errors() == [
ExtraKeyValidationError(path, value["result"], "name")
]
def test_dict_nested_missing_key_valudidation_error():
with given:
sch = schema.dict({
"result": schema.dict({
"id": schema.int,
"name": schema.str,
})
})
value = {
"result": {
"id": 1
}
}
with when:
result = validate(sch, value)
with then:
path = PathHolder()["result"]
assert result.get_errors() == [
MissingKeyValidationError(path, value["result"], "name")
]
def test_dict_validation_kwargs():
with given:
sch = schema.dict({
"id": schema.int,
"name": schema.str,
})
value = {"id": 1}
path = PathHolder().items[0]["key"]
with when:
result = validate(sch, value, path=path)
with then:
assert result.get_errors() == [
MissingKeyValidationError(path, value, "name")
]
| 21.574074
| 97
| 0.51824
| 468
| 4,660
| 5.019231
| 0.117521
| 0.063857
| 0.056194
| 0.091954
| 0.812261
| 0.789272
| 0.776501
| 0.690932
| 0.659855
| 0.659855
| 0
| 0.004942
| 0.348712
| 4,660
| 215
| 98
| 21.674419
| 0.769028
| 0
| 0
| 0.715152
| 0
| 0
| 0.043991
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 1
| 0.072727
| false
| 0
| 0.042424
| 0
| 0.115152
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
640620a7dbcb8fdb96e54b871958c105f770a4fe
| 49
|
py
|
Python
|
scripts/create_cache.py
|
OpenJUB/jCourse
|
a2b953480b913c3d2cf9774afd5802b0c5364189
|
[
"MIT"
] | null | null | null |
scripts/create_cache.py
|
OpenJUB/jCourse
|
a2b953480b913c3d2cf9774afd5802b0c5364189
|
[
"MIT"
] | null | null | null |
scripts/create_cache.py
|
OpenJUB/jCourse
|
a2b953480b913c3d2cf9774afd5802b0c5364189
|
[
"MIT"
] | null | null | null |
from app.cache import *
create_timeline_cache()
| 12.25
| 23
| 0.795918
| 7
| 49
| 5.285714
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122449
| 49
| 3
| 24
| 16.333333
| 0.860465
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
640af7e5ad03c70035a236c8c7b6c74f2400f885
| 147
|
py
|
Python
|
models/locobuyticketrequest.py
|
jujinesy/Empier_PythonKakaoBot
|
80d2951955002b1a0b5d77b5c2830bc8def63ea3
|
[
"MIT"
] | 3
|
2017-03-30T15:20:18.000Z
|
2018-01-04T12:46:05.000Z
|
models/locobuyticketrequest.py
|
skdltmxn/kakaobot
|
e738b4a8d994fc4125bbd471bd48378a11a8d371
|
[
"MIT"
] | 1
|
2020-08-06T08:13:22.000Z
|
2020-08-06T08:13:22.000Z
|
models/locobuyticketrequest.py
|
skdltmxn/kakaobot
|
e738b4a8d994fc4125bbd471bd48378a11a8d371
|
[
"MIT"
] | 5
|
2020-08-06T08:18:02.000Z
|
2021-02-28T03:59:45.000Z
|
# -*- coding: utf-8 -*-
from locorequest import LocoRequest
class LocoBuyTicketRequest(LocoRequest):
def method(self):
return "BUY"
| 16.333333
| 40
| 0.680272
| 15
| 147
| 6.666667
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008547
| 0.204082
| 147
| 8
| 41
| 18.375
| 0.846154
| 0.142857
| 0
| 0
| 0
| 0
| 0.024194
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
642d6c9c21bbb35abfb606b222feb394beb9fcfa
| 115
|
py
|
Python
|
vocalsalad/handlers/run.py
|
asimihsan/vocalsalad
|
aa279abca6c2f32cbc4647a3d3d606e017ea2fbb
|
[
"MIT"
] | null | null | null |
vocalsalad/handlers/run.py
|
asimihsan/vocalsalad
|
aa279abca6c2f32cbc4647a3d3d606e017ea2fbb
|
[
"MIT"
] | 1
|
2015-05-10T19:16:48.000Z
|
2016-11-14T13:53:21.000Z
|
vocalsalad/handlers/run.py
|
asimihsan/vocalsalad
|
aa279abca6c2f32cbc4647a3d3d606e017ea2fbb
|
[
"MIT"
] | 1
|
2018-03-04T18:09:53.000Z
|
2018-03-04T18:09:53.000Z
|
import tornado.web
class RunHandler(tornado.web.RequestHandler):
def get(self):
self.write("pong\n")
| 16.428571
| 45
| 0.686957
| 15
| 115
| 5.266667
| 0.8
| 0.253165
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.182609
| 115
| 6
| 46
| 19.166667
| 0.840426
| 0
| 0
| 0
| 0
| 0
| 0.052174
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
643dacab56d1268f380944779002e86ff170a07b
| 49
|
py
|
Python
|
auctioning_platform/shipping/shipping/domain/exceptions.py
|
nhdinh/smp-modulith
|
84c31b36e9b449fe3135f3802c1bbc362e7fb459
|
[
"MIT"
] | 299
|
2019-09-13T23:03:29.000Z
|
2022-03-24T09:20:43.000Z
|
auctioning_platform/shipping/shipping/domain/exceptions.py
|
winston-won/clean-architecture
|
95546b29c9a5ff0e16c7f67b9ab736749e87f8ae
|
[
"MIT"
] | 109
|
2019-11-03T12:16:16.000Z
|
2021-07-26T08:32:28.000Z
|
auctioning_platform/shipping/shipping/domain/exceptions.py
|
winston-won/clean-architecture
|
95546b29c9a5ff0e16c7f67b9ab736749e87f8ae
|
[
"MIT"
] | 38
|
2019-09-13T23:03:34.000Z
|
2022-03-24T09:21:10.000Z
|
class PackageAlreadyShipped(Exception):
pass
| 16.333333
| 39
| 0.795918
| 4
| 49
| 9.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 49
| 2
| 40
| 24.5
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
ff262f6ff9f2e744f7e485f59ca118cc370b991c
| 203
|
py
|
Python
|
app/fer_image_logger.py
|
lhwcv/fer_pytorch
|
a87f135e8370fad7378692433ccd5b55479422e8
|
[
"MIT"
] | 4
|
2020-02-20T08:18:49.000Z
|
2020-12-14T03:41:33.000Z
|
app/fer_image_logger.py
|
lhwcv/fer_pytorch
|
a87f135e8370fad7378692433ccd5b55479422e8
|
[
"MIT"
] | 2
|
2020-03-02T06:54:44.000Z
|
2020-03-03T01:13:26.000Z
|
app/fer_image_logger.py
|
lhwcv/fer_pytorch
|
a87f135e8370fad7378692433ccd5b55479422e8
|
[
"MIT"
] | 3
|
2020-02-27T15:28:10.000Z
|
2020-12-22T08:21:10.000Z
|
'''
Log the image frame, your laugh, sadness,....
'''
from fer_pytorch.utils.common import create_dir_maybe
class ImageLogger():
def __init__(self, save_dir, cache_dir, thresh = 0.9):
pass
| 20.3
| 58
| 0.689655
| 29
| 203
| 4.517241
| 0.931034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0.182266
| 203
| 9
| 59
| 22.555556
| 0.777108
| 0.221675
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.75
| 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
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
ff47ef8f07196e6eedca93bf5d41d045cdb4372e
| 96
|
py
|
Python
|
venv/lib/python3.8/site-packages/future/moves/tkinter/ttk.py
|
GiulianaPola/select_repeats
|
17a0d053d4f874e42cf654dd142168c2ec8fbd11
|
[
"MIT"
] | 2
|
2022-03-13T01:58:52.000Z
|
2022-03-31T06:07:54.000Z
|
venv/lib/python3.8/site-packages/future/moves/tkinter/ttk.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | 19
|
2021-11-20T04:09:18.000Z
|
2022-03-23T15:05:55.000Z
|
venv/lib/python3.8/site-packages/future/moves/tkinter/ttk.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | null | null | null |
/home/runner/.cache/pip/pool/ad/1a/c9/a438dc3f682340dba4102bb8174dba3fe0a45bedc26b6b4de8e89af85c
| 96
| 96
| 0.895833
| 9
| 96
| 9.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.34375
| 0
| 96
| 1
| 96
| 96
| 0.552083
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ff93e1acf0e9b15e81809e43d1f80bb72cb289db
| 28
|
py
|
Python
|
jp.atcoder/abc140/abc140_a/28239283.py
|
kagemeka/atcoder-submissions
|
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
|
[
"MIT"
] | 1
|
2022-02-09T03:06:25.000Z
|
2022-02-09T03:06:25.000Z
|
jp.atcoder/abc140/abc140_a/28239283.py
|
kagemeka/atcoder-submissions
|
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
|
[
"MIT"
] | 1
|
2022-02-05T22:53:18.000Z
|
2022-02-09T01:29:30.000Z
|
jp.atcoder/abc140/abc140_a/28239283.py
|
kagemeka/atcoder-submissions
|
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
|
[
"MIT"
] | null | null | null |
print(pow(int(input()), 3))
| 14
| 27
| 0.607143
| 5
| 28
| 3.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038462
| 0.071429
| 28
| 1
| 28
| 28
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
ff9b12ce60107388bed6b84ccb5f69fa8232d4be
| 103
|
py
|
Python
|
ai2thor/__init__.py
|
maiae061/ai2thor
|
361fce2388772ba08a4d7c6152c2ea6353e7f26a
|
[
"Apache-2.0"
] | 1
|
2019-04-30T07:43:09.000Z
|
2019-04-30T07:43:09.000Z
|
ai2thor/__init__.py
|
maiae061/ai2thor
|
361fce2388772ba08a4d7c6152c2ea6353e7f26a
|
[
"Apache-2.0"
] | null | null | null |
ai2thor/__init__.py
|
maiae061/ai2thor
|
361fce2388772ba08a4d7c6152c2ea6353e7f26a
|
[
"Apache-2.0"
] | 1
|
2022-01-20T20:47:04.000Z
|
2022-01-20T20:47:04.000Z
|
# Copyright Allen Institute for Artificial Intelligence 2017
from ai2thor._version import __version__
| 25.75
| 60
| 0.854369
| 12
| 103
| 6.916667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0.126214
| 103
| 3
| 61
| 34.333333
| 0.866667
| 0.563107
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
ffa24085743a2a0d40448989ebd7515984fea519
| 231
|
py
|
Python
|
log/log.py
|
tiantaozhang/excel_calc
|
b958c8e086daaada4bdafd880ece73fb86033eef
|
[
"MIT"
] | null | null | null |
log/log.py
|
tiantaozhang/excel_calc
|
b958c8e086daaada4bdafd880ece73fb86033eef
|
[
"MIT"
] | null | null | null |
log/log.py
|
tiantaozhang/excel_calc
|
b958c8e086daaada4bdafd880ece73fb86033eef
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import logging
class Log(logging.Logger):
def __init__(self, name, level=logging.NOTSET):
logging.Logger(name, level)
# logging.basicConfig(filename='logger.log', level=logging.INFO)
| 21
| 72
| 0.666667
| 28
| 231
| 5.357143
| 0.607143
| 0.24
| 0.213333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005291
| 0.181818
| 231
| 10
| 73
| 23.1
| 0.78836
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
ffa87f10efed354461e6824723fced35a00147a3
| 73
|
py
|
Python
|
qittle/http/session/__init__.py
|
muffleo/qittle
|
6658e11eae9e6d83bcf0e930803c2f41abd3f4a0
|
[
"MIT"
] | 2
|
2020-09-15T19:48:13.000Z
|
2020-09-16T10:26:17.000Z
|
qittle/http/session/__init__.py
|
cyanlabs-org/qittle
|
6658e11eae9e6d83bcf0e930803c2f41abd3f4a0
|
[
"MIT"
] | 2
|
2021-05-04T17:15:28.000Z
|
2021-05-04T17:20:09.000Z
|
qittle/http/session/__init__.py
|
cyanlabs-org/qittle
|
6658e11eae9e6d83bcf0e930803c2f41abd3f4a0
|
[
"MIT"
] | null | null | null |
from .abc import ABCSessionManager
from .manager import SessionManager
| 24.333333
| 36
| 0.835616
| 8
| 73
| 7.625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136986
| 73
| 2
| 37
| 36.5
| 0.968254
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.