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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e83f3484eb9c0cb1a59faf7f7747eba70027c928 | 603 | py | Python | test/test_bot.py | dzd/slack-starterbot | 509154fa1a7347ab6bab07909ce011c60f0e07d4 | [
"MIT"
] | null | null | null | test/test_bot.py | dzd/slack-starterbot | 509154fa1a7347ab6bab07909ce011c60f0e07d4 | [
"MIT"
] | null | null | null | test/test_bot.py | dzd/slack-starterbot | 509154fa1a7347ab6bab07909ce011c60f0e07d4 | [
"MIT"
] | null | null | null | import unittest
from mock import MagicMock
from pprint import pprint
# from collections import OrderedDict
class TestMatching(unittest.TestCase):
def setUp(self):
"""
Tests setup
"""
pass
def test_basic_csv_translation(self):
"""
Basic check
"""
... | 17.735294 | 41 | 0.628524 | 82 | 603 | 4.402439 | 0.609756 | 0.041551 | 0.038781 | 0.083102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044543 | 0.25539 | 603 | 33 | 42 | 18.272727 | 0.759465 | 0.119403 | 0 | 0 | 0 | 0 | 0.360248 | 0.05383 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.157895 | 0 | 0.315789 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e842a64b01693bb474c641daf47ea6ab4f10726a | 5,904 | py | Python | tests/test_at.py | afq984/pyardrone | 2c39263d5fdea91070c20f0ae9c9f355a9b5fe17 | [
"MIT"
] | 11 | 2019-07-26T16:15:47.000Z | 2021-03-15T13:51:17.000Z | tests/test_at.py | afq984/pyardrone | 2c39263d5fdea91070c20f0ae9c9f355a9b5fe17 | [
"MIT"
] | 3 | 2020-05-15T19:40:31.000Z | 2021-07-22T10:20:38.000Z | tests/test_at.py | afq984/pyardrone | 2c39263d5fdea91070c20f0ae9c9f355a9b5fe17 | [
"MIT"
] | 2 | 2019-07-26T16:15:47.000Z | 2020-12-08T10:27:32.000Z | import enum
import unittest
from pyardrone import at
from pyardrone.at import parameters, base
from pyardrone.utils import repack_to_int
class CommandTest(unittest.TestCase):
def test_init_by_arg(self):
cmd = at.REF_0_5(3)
self.assertEqual(cmd.input, 3)
def test_init_by_kwarg(self):
... | 25.669565 | 72 | 0.631098 | 759 | 5,904 | 4.621871 | 0.212121 | 0.077822 | 0.029076 | 0.033922 | 0.306727 | 0.243444 | 0.120582 | 0.081813 | 0.047605 | 0.047605 | 0 | 0.048251 | 0.259316 | 5,904 | 229 | 73 | 25.781659 | 0.753945 | 0.031673 | 0 | 0.115385 | 0 | 0 | 0.026603 | 0.0037 | 0 | 0 | 0 | 0 | 0.24359 | 1 | 0.25641 | false | 0.00641 | 0.032051 | 0 | 0.371795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8497f395236f72da90010f72e77bba2adfb6404 | 3,811 | py | Python | CCGENV2.py | CHK-source/CCGENV2 | 8892919dcc8d295e9877501b400f0c44a293c92a | [
"Apache-2.0"
] | null | null | null | CCGENV2.py | CHK-source/CCGENV2 | 8892919dcc8d295e9877501b400f0c44a293c92a | [
"Apache-2.0"
] | null | null | null | CCGENV2.py | CHK-source/CCGENV2 | 8892919dcc8d295e9877501b400f0c44a293c92a | [
"Apache-2.0"
] | null | null | null | #bibliotecas
import random
from datetime import date
#variaveis
con = bin = 0
data = date.today().year
#layout
print("_________ _________ ___________________ _______ ")
print("\_ ___ \ \_ ___ \ / _____/\_ _____/ \ \ ")
print("/ \ \/ / \ \/ / \ ___ | __)_ / | \ ")
... | 33.725664 | 78 | 0.478877 | 374 | 3,811 | 4.590909 | 0.235294 | 0.093186 | 0.051252 | 0.046593 | 0.619103 | 0.619103 | 0.598719 | 0.545137 | 0.545137 | 0.545137 | 0 | 0.042358 | 0.256626 | 3,811 | 112 | 79 | 34.026786 | 0.563713 | 0.006822 | 0 | 0.52 | 0 | 0 | 0.404087 | 0.008174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 0.71 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e84b3a039e631c92c6125cba5b1b8bd4d81866b4 | 4,955 | py | Python | krittika/compute/mat_mul/systolic_mat_mul_is.py | scalesim-project/krittika | 89f4010cc5f7922aed3624fa611d9b51de1d61f5 | [
"MIT"
] | 3 | 2021-06-19T14:15:37.000Z | 2021-10-03T07:14:03.000Z | krittika/compute/mat_mul/systolic_mat_mul_is.py | scalesim-project/krittika | 89f4010cc5f7922aed3624fa611d9b51de1d61f5 | [
"MIT"
] | 1 | 2021-09-01T02:16:31.000Z | 2021-09-01T02:16:31.000Z | krittika/compute/mat_mul/systolic_mat_mul_is.py | scalesim-project/krittika | 89f4010cc5f7922aed3624fa611d9b51de1d61f5 | [
"MIT"
] | null | null | null | import numpy as np
from scalesim.scale_config import scale_config
from scalesim.compute.systolic_compute_is import systolic_compute_is
# Treat this as a macro for initialization
dummy_matrix = np.ones((1, 1)) * -1
class SystolicMatMulIS:
def __init__(self):
# Compute Unit
self.arr_row = 1
... | 31.360759 | 107 | 0.672856 | 664 | 4,955 | 4.612952 | 0.149096 | 0.082599 | 0.10284 | 0.06856 | 0.479922 | 0.389161 | 0.342801 | 0.342801 | 0.342801 | 0.327457 | 0 | 0.014085 | 0.254894 | 4,955 | 157 | 108 | 31.56051 | 0.815547 | 0.015338 | 0 | 0.216495 | 0 | 0 | 0.066941 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 1 | 0.206186 | false | 0 | 0.030928 | 0.030928 | 0.381443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e85e2cb2186225fa5835984ae0ffe758115ca57e | 456 | py | Python | lib/connect/az/urls.py | hdknr/connect | fb99dc3069dc165d6771fb19e2415b45ee421353 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | lib/connect/az/urls.py | hdknr/connect | fb99dc3069dc165d6771fb19e2415b45ee421353 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | lib/connect/az/urls.py | hdknr/connect | fb99dc3069dc165d6771fb19e2415b45ee421353 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include
from views import default, req, grant
urlpatterns = patterns(
'',
url(r'(?:(?P<tenant>.*)/)?api/', include('connect.az.api')),
url(r'(?:(?P<tenant>.*)/)?tos', req, name='az_tos'),
url(r'(?:(?P<tenant>.*)/)?policy', grant, name=... | 35.076923 | 64 | 0.559211 | 63 | 456 | 3.984127 | 0.396825 | 0.079681 | 0.099602 | 0.219124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002532 | 0.133772 | 456 | 12 | 65 | 38 | 0.632911 | 0.046053 | 0 | 0 | 0 | 0 | 0.374134 | 0.270208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e85ed5808712538a89d3171b628b850465f38f51 | 620 | py | Python | GradingScale2.py | schm2055/CourseraPythonCourses | 1a7f60b6877c69116804cc04b5fa55daf26bf588 | [
"CC0-1.0"
] | null | null | null | GradingScale2.py | schm2055/CourseraPythonCourses | 1a7f60b6877c69116804cc04b5fa55daf26bf588 | [
"CC0-1.0"
] | null | null | null | GradingScale2.py | schm2055/CourseraPythonCourses | 1a7f60b6877c69116804cc04b5fa55daf26bf588 | [
"CC0-1.0"
] | null | null | null | #Grading scale based on user input score
#ask for numerical score to be graded
grade = raw_input('Enter your numerical score\n')
#provide error checking with Try/Except
#use if, elif statements to capture correct grade per the score range
try:
float_grade = float(grade)
if float_grade >= 0.9:
print 'A'
... | 28.181818 | 69 | 0.659677 | 94 | 620 | 4.276596 | 0.542553 | 0.174129 | 0.136816 | 0.149254 | 0.104478 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.26129 | 620 | 22 | 70 | 28.181818 | 0.855895 | 0.385484 | 0 | 0 | 0 | 0 | 0.148541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8636d8211dac795f1bb34bed83a855779388b20 | 1,191 | py | Python | cholesky_sp_np.py | ioannapap/cholesky | 0f4054fe0577aff5e5b76ad05bd14541138a650f | [
"Apache-2.0"
] | null | null | null | cholesky_sp_np.py | ioannapap/cholesky | 0f4054fe0577aff5e5b76ad05bd14541138a650f | [
"Apache-2.0"
] | null | null | null | cholesky_sp_np.py | ioannapap/cholesky | 0f4054fe0577aff5e5b76ad05bd14541138a650f | [
"Apache-2.0"
] | null | null | null | import numpy as np
import scipy as sp
from scipy.linalg import cho_factor, cho_solve
import time
start_time = time.time()
#float_formatter = '{:.4f}'.format
#np.set_printoptions(formatter={'float_kind':float_formatter})
N = 1000
print('N: ', N)
#Filling N*N array to initialize it
A1 = np.zeros((N,N), float)
A2 = np.... | 18.609375 | 62 | 0.61293 | 233 | 1,191 | 3.038627 | 0.257511 | 0.084746 | 0.19774 | 0.112994 | 0.415254 | 0.338983 | 0.30791 | 0.30791 | 0.30791 | 0.259887 | 0 | 0.079717 | 0.167926 | 1,191 | 64 | 63 | 18.609375 | 0.634712 | 0.144416 | 0 | 0.142857 | 0 | 0 | 0.079724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e867b1c6f0c39ef7058fc49fbf5da86af513caf4 | 4,102 | py | Python | rocket/a_car_rental/b_user/migrations/0001_initial.py | t444ov/django-carrental | 64d2071468a311d000ea307e213b980818f6bff6 | [
"BSD-3-Clause"
] | null | null | null | rocket/a_car_rental/b_user/migrations/0001_initial.py | t444ov/django-carrental | 64d2071468a311d000ea307e213b980818f6bff6 | [
"BSD-3-Clause"
] | null | null | null | rocket/a_car_rental/b_user/migrations/0001_initial.py | t444ov/django-carrental | 64d2071468a311d000ea307e213b980818f6bff6 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-08 09:44
import django.contrib.auth.models
import django.contrib.auth.validators
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth',... | 82.04 | 329 | 0.677231 | 488 | 4,102 | 5.528689 | 0.331967 | 0.077465 | 0.05189 | 0.055597 | 0.279837 | 0.209785 | 0.181616 | 0.146034 | 0.146034 | 0.146034 | 0 | 0.013294 | 0.174793 | 4,102 | 49 | 330 | 83.714286 | 0.783752 | 0.01097 | 0 | 0.047619 | 1 | 0 | 0.313194 | 0.009125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02381 | 0.119048 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e86893d9c19e434ffdf4efd01304b627664dc347 | 308 | py | Python | encbup/__init__.py | skorokithakis/encbup | 5c1ed4ca05c6f0d29207956e06493360c59fdd6e | [
"MIT"
] | 43 | 2015-03-10T17:23:46.000Z | 2021-06-26T21:40:38.000Z | encbup/__init__.py | grokskookum/encbup | 5c1ed4ca05c6f0d29207956e06493360c59fdd6e | [
"MIT"
] | 2 | 2015-01-14T21:33:11.000Z | 2015-03-16T23:38:49.000Z | encbup/__init__.py | grokskookum/encbup | 5c1ed4ca05c6f0d29207956e06493360c59fdd6e | [
"MIT"
] | 8 | 2015-01-14T18:04:55.000Z | 2020-06-01T19:54:14.000Z | NUM_VERSION = (0, 1)
VERSION = ".".join(str(nv) for nv in NUM_VERSION)
__version__ = VERSION
try:
from .encbup import (
File,
Key,
Reader,
Writer,
main,
)
except ImportError:
# Ignore if dependencies haven't been satisfied yet (when setting up).
pass
| 19.25 | 74 | 0.594156 | 38 | 308 | 4.657895 | 0.842105 | 0.112994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.311688 | 308 | 15 | 75 | 20.533333 | 0.825472 | 0.220779 | 0 | 0 | 0 | 0 | 0.004202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e8709576ce9310a54206e1f55fae3bee181eb4ce | 7,170 | py | Python | driftbase/auth/authenticate.py | directivegames/drift-base | 5fc7d4686c56e93fc22178f3b1bb49239d7eee45 | [
"MIT"
] | 1 | 2021-09-04T01:45:44.000Z | 2021-09-04T01:45:44.000Z | driftbase/auth/authenticate.py | directivegames/drift-base | 5fc7d4686c56e93fc22178f3b1bb49239d7eee45 | [
"MIT"
] | 30 | 2020-12-09T04:10:26.000Z | 2022-03-02T02:34:49.000Z | driftbase/auth/authenticate.py | directivegames/drift-base | 5fc7d4686c56e93fc22178f3b1bb49239d7eee45 | [
"MIT"
] | null | null | null | import logging
import http.client as http_client
from flask import g, current_app
from flask_smorest import abort
from click import secho
from driftbase.models.db import User, CorePlayer, UserIdentity, UserRole
from driftbase.utils import UserCache
log = logging.getLogger(__name__)
def abort_unauthorized(descript... | 36.581633 | 92 | 0.614923 | 882 | 7,170 | 4.774376 | 0.199546 | 0.037046 | 0.051294 | 0.019948 | 0.376158 | 0.314415 | 0.235574 | 0.210876 | 0.210876 | 0.210876 | 0 | 0.00296 | 0.293166 | 7,170 | 195 | 93 | 36.769231 | 0.82794 | 0.069038 | 0 | 0.192053 | 0 | 0 | 0.16271 | 0.007813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019868 | false | 0.099338 | 0.046358 | 0 | 0.086093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e875d829af7f750051cbfb85e1f4fffe9534adce | 6,648 | py | Python | Chapter03/demoTabWidget.py | houdinii/Qt5-Python-GUI-Programming-Cookbook | 70982e18fd15ae5ac545c7411e9b6ddcbd1a0e5a | [
"MIT"
] | 131 | 2018-08-22T22:12:33.000Z | 2022-03-10T18:48:12.000Z | Chapter03/demoTabWidget.py | Jhongesell/QT5-Python3-GUI-Programming-Cookbook | e0e69bb13d1d59c24a07bc54b7c63239aa1bf0ff | [
"MIT"
] | 4 | 2018-08-09T08:42:07.000Z | 2021-03-02T13:37:21.000Z | Chapter03/demoTabWidget.py | Jhongesell/QT5-Python3-GUI-Programming-Cookbook | e0e69bb13d1d59c24a07bc54b7c63239aa1bf0ff | [
"MIT"
] | 79 | 2018-08-03T03:09:21.000Z | 2022-03-15T21:25:43.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'demoTabWidget.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
D... | 51.138462 | 112 | 0.669224 | 809 | 6,648 | 5.336218 | 0.187886 | 0.053509 | 0.112115 | 0.036136 | 0.237202 | 0.207088 | 0.172805 | 0.034746 | 0 | 0 | 0 | 0.063958 | 0.200361 | 6,648 | 129 | 113 | 51.534884 | 0.748119 | 0.027678 | 0 | 0 | 1 | 0 | 0.087877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017391 | false | 0 | 0.017391 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e87c135b1a790a30c1e499b4efa5ad2623d845eb | 4,754 | py | Python | stackdriver/profiler.py | tervay/the-blue-alliance | e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8 | [
"MIT"
] | 1 | 2016-03-19T20:29:35.000Z | 2016-03-19T20:29:35.000Z | stackdriver/profiler.py | gregmarra/the-blue-alliance | 5bedaf5c80b4623984760d3da3289640639112f9 | [
"MIT"
] | 11 | 2020-10-10T03:05:29.000Z | 2022-02-27T09:57:22.000Z | stackdriver/profiler.py | gregmarra/the-blue-alliance | 5bedaf5c80b4623984760d3da3289640639112f9 | [
"MIT"
] | null | null | null | # From https://medium.com/google-cloud/custom-tracing-in-profiling-gae-using-the-stackdriver-api-b270288622c6
from datetime import datetime
import logging
import random
import threading
from google.appengine.api import app_identity
from google.appengine.ext import deferred
from googleapiclient import discovery
from o... | 33.013889 | 131 | 0.62053 | 560 | 4,754 | 5.110714 | 0.3625 | 0.062893 | 0.022711 | 0.041929 | 0.100629 | 0.040182 | 0.02376 | 0.02376 | 0 | 0 | 0 | 0.00645 | 0.282499 | 4,754 | 143 | 132 | 33.244755 | 0.8326 | 0.170593 | 0 | 0.193548 | 0 | 0 | 0.078237 | 0.023141 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086022 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e883d4186de7e9e982f75ab8c0395bfbd3cafb9b | 336 | py | Python | spacedrive/utils/__init__.py | croxis/SpaceDrive | 3f610cf72002beb11e73a47c2f118e35ff2d9575 | [
"MIT"
] | 5 | 2016-01-02T05:23:37.000Z | 2017-07-01T13:53:36.000Z | spacedrive/utils/__init__.py | croxis/SpaceDrive | 3f610cf72002beb11e73a47c2f118e35ff2d9575 | [
"MIT"
] | 1 | 2016-06-28T08:43:59.000Z | 2016-07-07T20:28:43.000Z | spacedrive/utils/__init__.py | croxis/SpaceDrive | 3f610cf72002beb11e73a47c2f118e35ff2d9575 | [
"MIT"
] | null | null | null | __author__ = 'croxis'
def convertToPatches(model):
"""Sets up a model for autotesselation."""
for node in model.find_all_matches("**/+GeomNode"):
geom_node = node.node()
num_geoms = geom_node.get_num_geoms()
for i in range(num_geoms):
geom_node.modify_geom(i).make_pa... | 37.333333 | 60 | 0.64881 | 45 | 336 | 4.466667 | 0.577778 | 0.119403 | 0.119403 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 336 | 9 | 60 | 37.333333 | 0.77907 | 0.107143 | 0 | 0 | 0 | 0 | 0.062718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e88729ecfea73ef35190280c535e0a8bf28a1453 | 414 | py | Python | src/gui/migrations/0018_alter_attachment_description.py | digitalfabrik/ish-goalkeeper | a500c7a628ef66897941dadc0addb0be01658e02 | [
"MIT"
] | 12 | 2021-10-30T12:57:26.000Z | 2021-10-31T11:33:20.000Z | src/gui/migrations/0018_alter_attachment_description.py | digitalfabrik/ish-goalkeeper | a500c7a628ef66897941dadc0addb0be01658e02 | [
"MIT"
] | 53 | 2019-07-31T12:44:44.000Z | 2021-10-21T12:40:29.000Z | src/gui/migrations/0018_alter_attachment_description.py | digitalfabrik/ish-goalkeeper | a500c7a628ef66897941dadc0addb0be01658e02 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-21 08:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gui', '0017_auto_20210921_0806'),
]
operations = [
migrations.AlterField(
model_name='attachment',
name='description... | 21.789474 | 73 | 0.613527 | 45 | 414 | 5.511111 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 0.270531 | 414 | 18 | 74 | 23 | 0.708609 | 0.108696 | 0 | 0 | 1 | 0 | 0.141689 | 0.06267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e88b07ad7b7b48b9dd0510c0b486552addea3259 | 1,655 | py | Python | checkov/terraform/checks/resource/gcp/GKEMetadataServerisEnabled.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | checkov/terraform/checks/resource/gcp/GKEMetadataServerisEnabled.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | checkov/terraform/checks/resource/gcp/GKEMetadataServerisEnabled.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceCheck
from checkov.common.models.enums import CheckResult, CheckCategories
class GKEMetadataServerisEnabled(BaseResourceCheck):
def __init__(self):
name = "Ensure the GKE Metadata Server is Enabled"
id = "CKV_GCP_6... | 45.972222 | 107 | 0.683988 | 173 | 1,655 | 6.283237 | 0.450867 | 0.088316 | 0.060718 | 0.042318 | 0.051518 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.236254 | 1,655 | 35 | 108 | 47.285714 | 0.856804 | 0.20423 | 0 | 0.190476 | 0 | 0 | 0.172577 | 0.077226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.095238 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e892ea899653399696cffaed13aeca3038e92c1b | 3,278 | py | Python | CSAW CTF'18/scripts/sso.py | Gitr007/CTFChalls | ccd4f8ce472e53b5cc518389807264418d008ea6 | [
"Apache-2.0"
] | 1 | 2019-01-21T21:02:00.000Z | 2019-01-21T21:02:00.000Z | CSAW CTF'18/scripts/sso.py | Gitr007/CTFChalls | ccd4f8ce472e53b5cc518389807264418d008ea6 | [
"Apache-2.0"
] | null | null | null | CSAW CTF'18/scripts/sso.py | Gitr007/CTFChalls | ccd4f8ce472e53b5cc518389807264418d008ea6 | [
"Apache-2.0"
] | null | null | null | import requests
import re, time
import base64
import jwt
# Author : Abdelmoughite EL JOAYDI
# get Oauth2 authorization code
def sso_oauth2_authorize():
_aurl = "http://web.chal.csaw.io:9000/oauth2/authorize"
_cookies = {
"__cfduid": "d1ee7ae250702f10489ab1eb535a63a001537014669",
"CSAW-CTF-2018-Q... | 36.021978 | 129 | 0.656498 | 342 | 3,278 | 6.114035 | 0.345029 | 0.020086 | 0.031564 | 0.043042 | 0.14682 | 0.14682 | 0.079388 | 0.039216 | 0.039216 | 0 | 0 | 0.074759 | 0.175717 | 3,278 | 90 | 130 | 36.422222 | 0.699112 | 0.124161 | 0 | 0.111111 | 0 | 0 | 0.408662 | 0.112469 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8956978ded9f57f765bb5a86fa31f4954f62c88 | 464 | py | Python | text/code/exact-string-matching/karp-rabin.py | pmikolajczyk41/string-algorithms | faa7c7b3ab18a157a27e8c08081f2efebf8be900 | [
"MIT"
] | 1 | 2020-06-27T01:33:43.000Z | 2020-06-27T01:33:43.000Z | text/code/exact-string-matching/karp-rabin.py | TenGumis/string-algorithms | e57a9dc6150e92ab65cad4a5c1e68533b7166eb7 | [
"MIT"
] | null | null | null | text/code/exact-string-matching/karp-rabin.py | TenGumis/string-algorithms | e57a9dc6150e92ab65cad4a5c1e68533b7166eb7 | [
"MIT"
] | null | null | null | def karp_rabin(text, word, n, m):
MOD = 257
A = random.randint(2, MOD - 1)
Am = pow(A, m, MOD)
def generate(t):
return sum(ord(c) * pow(A, i, MOD) for i, c in enumerate(t[::-1])) % MOD
text += '$'
hash_text, hash_word = generate(text[1:m + 1]), generate(word[1:])
for i in range(1, n - m + 2):
if h... | 35.692308 | 76 | 0.55819 | 88 | 464 | 2.863636 | 0.352273 | 0.126984 | 0.095238 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.241379 | 464 | 12 | 77 | 38.666667 | 0.681818 | 0 | 0 | 0 | 1 | 0 | 0.002155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e897316fe6e9cde18b2d3b55f291ca1860295ae6 | 641 | py | Python | loader.py | DurbeKK/tg_pdf_bot | 75a180cc7c876df84a4cac825939898892a43aa9 | [
"MIT"
] | 3 | 2021-12-03T09:27:54.000Z | 2021-12-09T03:19:42.000Z | loader.py | DurbeKK/tg-pdf-bot | 75a180cc7c876df84a4cac825939898892a43aa9 | [
"MIT"
] | null | null | null | loader.py | DurbeKK/tg-pdf-bot | 75a180cc7c876df84a4cac825939898892a43aa9 | [
"MIT"
] | null | null | null | import logging
import os
from aiogram import Bot, Dispatcher, types
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from data import config
# these paths will be used in the handlers files
cwd = os.getcwd()
input_path = os.path.join(cwd, "user_files", "input")
output_path = os.path.join(cwd, "user_files... | 26.708333 | 89 | 0.719189 | 95 | 641 | 4.778947 | 0.589474 | 0.048458 | 0.044053 | 0.061674 | 0.114537 | 0.114537 | 0.114537 | 0 | 0 | 0 | 0 | 0.001799 | 0.132605 | 641 | 23 | 90 | 27.869565 | 0.814748 | 0.071763 | 0 | 0 | 0 | 0.0625 | 0.206081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e89c8e04e39d1ef35d363cdc4a22cbb09ddda59e | 866 | py | Python | test/image_type_matching.py | buda-base/volume-manifest-tool | 4c81eacc3d3a88ececb2af21b5b244e9d7d2e07c | [
"Apache-2.0"
] | 1 | 2019-10-07T18:05:43.000Z | 2019-10-07T18:05:43.000Z | test/image_type_matching.py | buda-base/volume-manifest-tool | 4c81eacc3d3a88ececb2af21b5b244e9d7d2e07c | [
"Apache-2.0"
] | 22 | 2019-02-26T17:52:18.000Z | 2020-08-10T15:09:19.000Z | test/image_type_matching.py | buda-base/volume-manifest-tool | 4c81eacc3d3a88ececb2af21b5b244e9d7d2e07c | [
"Apache-2.0"
] | null | null | null | import unittest
from v_m_b.image.generateManifest import is_BUDA_Matching_file_ext
tests:[] = [
['asdfgdfg.notther', 'NOT', False],
['asdfgdfg.jpg', 'NOT', False],
['asdfgdfg.TIF', 'not', False],
['asdfgdfg.jpG', 'TIF', False],
['asdfgdfg.JpG', 'tiff', False],
['asdfgdfg.TIF', 'TIFF', True],
... | 27.935484 | 126 | 0.598152 | 110 | 866 | 4.518182 | 0.4 | 0.156942 | 0.096579 | 0.072435 | 0.241449 | 0.092555 | 0 | 0 | 0 | 0 | 0 | 0.007082 | 0.184758 | 866 | 30 | 127 | 28.866667 | 0.696884 | 0.020785 | 0 | 0 | 1 | 0 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8a75fd82e49a8e6de45d136efdd7b8320091f03 | 595 | py | Python | Project Euler Problems/Problem50.py | rishusingh022/My-Journey-of-Data-Structures-and-Algorithms | 28a70fdf10366fc97ddb9f6a69852b3478b564e6 | [
"MIT"
] | null | null | null | Project Euler Problems/Problem50.py | rishusingh022/My-Journey-of-Data-Structures-and-Algorithms | 28a70fdf10366fc97ddb9f6a69852b3478b564e6 | [
"MIT"
] | 1 | 2021-10-01T18:26:34.000Z | 2021-10-01T18:26:34.000Z | Project Euler Problems/Problem50.py | rishusingh022/My-Journey-of-Data-Structures-and-Algorithms | 28a70fdf10366fc97ddb9f6a69852b3478b564e6 | [
"MIT"
] | 7 | 2021-10-01T16:07:29.000Z | 2021-10-04T13:23:48.000Z | n = 1000000
# n = 100
prime = [True for i in range(n+1)]
p = 2
while (p * p <= n):
if (prime[p] == True):
for i in range(p * p, n+1, p):
prime[i] = False
p += 1
primes = []
for i in range(2,n+1):
if prime[i]:
primes.append(i)
count = 0
ans = 0
for index,elem in enumerate(prime... | 18.59375 | 39 | 0.460504 | 93 | 595 | 2.946237 | 0.301075 | 0.058394 | 0.087591 | 0.160584 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059155 | 0.403361 | 595 | 32 | 40 | 18.59375 | 0.712676 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8a89383924c4573586d281772ec781db73ac575 | 851 | py | Python | opta/commands/kubectl.py | wpride/opta | 04b745019af595464f4a8060b9bffa2399c137e0 | [
"Apache-2.0"
] | null | null | null | opta/commands/kubectl.py | wpride/opta | 04b745019af595464f4a8060b9bffa2399c137e0 | [
"Apache-2.0"
] | null | null | null | opta/commands/kubectl.py | wpride/opta | 04b745019af595464f4a8060b9bffa2399c137e0 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import click
from opta.amplitude import amplitude_client
from opta.core.generator import gen_all
from opta.core.kubernetes import configure_kubectl as configure
from opta.layer import Layer
from opta.utils import check_opta_file_exists
@click.command()
@click.option(
"-c", "--config"... | 29.344828 | 84 | 0.756757 | 121 | 851 | 5.14876 | 0.429752 | 0.064205 | 0.038523 | 0.060995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142186 | 851 | 28 | 85 | 30.392857 | 0.853425 | 0.061105 | 0 | 0.095238 | 0 | 0 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e8aed8ff3554d7b904fb90fd38fcdfc97b60da0a | 553 | py | Python | programming-laboratory-I/mvk6/analisa.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/mvk6/analisa.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/mvk6/analisa.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Analisa Chave
chave = raw_input().lower()
vogais = ["a", "e", "i", "o", "u"]
inicia = True
if len(chave) > 2:
vogal = 0
for i in range(len(chave)):
if (i < len(chave) - 2) and (chave[i] == chave[i + 1] == chave[i + 2]):
print "Chave in... | 19.75 | 73 | 0.605787 | 82 | 553 | 4.073171 | 0.52439 | 0.071856 | 0.053892 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045238 | 0.240506 | 553 | 27 | 74 | 20.481481 | 0.75 | 0.144665 | 0 | 0.222222 | 0 | 0 | 0.196581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8b8bdf4d5bb3a16c0f1b028b6ea585dcac4499a | 2,779 | py | Python | pymemcache/test/conftest.py | liquidpele/pymemcache | 0001f94a06b91078ed7b7708729ef0d1aaa73a68 | [
"Apache-2.0"
] | null | null | null | pymemcache/test/conftest.py | liquidpele/pymemcache | 0001f94a06b91078ed7b7708729ef0d1aaa73a68 | [
"Apache-2.0"
] | null | null | null | pymemcache/test/conftest.py | liquidpele/pymemcache | 0001f94a06b91078ed7b7708729ef0d1aaa73a68 | [
"Apache-2.0"
] | null | null | null | import os.path
import pytest
import socket
import ssl
def pytest_addoption(parser):
parser.addoption(
"--server", action="store", default="localhost", help="memcached server"
)
parser.addoption(
"--port", action="store", default="11211", help="memcached server port"
)
parser.addo... | 25.036036 | 88 | 0.662828 | 323 | 2,779 | 5.603715 | 0.306502 | 0.064641 | 0.089503 | 0.124309 | 0.379006 | 0.295028 | 0.043094 | 0 | 0 | 0 | 0 | 0.009532 | 0.207269 | 2,779 | 110 | 89 | 25.263636 | 0.812074 | 0.004318 | 0 | 0.230769 | 0 | 0 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.102564 | 0.115385 | 0.384615 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e8bc1653095cc63bc888eb8802d09469ed63c2f1 | 3,627 | py | Python | sweeps/generators/trace_generator.py | TAKAKEYA/gem5-aladdin | 2e35169b13b2baf789056a70d1ade463a26727ea | [
"BSD-3-Clause"
] | 1 | 2021-07-13T03:30:08.000Z | 2021-07-13T03:30:08.000Z | sweeps/generators/trace_generator.py | TAKAKEYA/gem5-aladdin | 2e35169b13b2baf789056a70d1ade463a26727ea | [
"BSD-3-Clause"
] | 2 | 2019-03-22T14:23:38.000Z | 2019-03-22T15:45:35.000Z | sweeps/generators/trace_generator.py | TAKAKEYA/gem5-aladdin | 2e35169b13b2baf789056a70d1ade463a26727ea | [
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
import tempfile
from xenon.base.datatypes import *
from xenon.generators import base_generator
from benchmarks.datatypes import *
DYNAMIC_TRACE = "dynamic_trace.gz"
class TraceGenerator(base_generator.Generator):
def __init__(self, sweep, dma=False):
# The configured design sweep ob... | 41.215909 | 100 | 0.666942 | 472 | 3,627 | 4.947034 | 0.334746 | 0.056531 | 0.046253 | 0.035974 | 0.211991 | 0.211991 | 0.193148 | 0.164882 | 0.164882 | 0.164882 | 0 | 0.001473 | 0.251172 | 3,627 | 87 | 101 | 41.689655 | 0.858247 | 0.057899 | 0 | 0.25 | 0 | 0 | 0.145287 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0 | null | null | 0 | 0.1 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8beccb81697df9d43ceb6f7de7a60f0ba602063 | 1,681 | py | Python | crisiscleanup/calls/migrations/0003_auto_20180115_1743.py | CrisisCleanup/wcicp-call-service | 0a00e092625e2a48c9807737a4b72e343e1ab0b9 | [
"Apache-1.1"
] | null | null | null | crisiscleanup/calls/migrations/0003_auto_20180115_1743.py | CrisisCleanup/wcicp-call-service | 0a00e092625e2a48c9807737a4b72e343e1ab0b9 | [
"Apache-1.1"
] | null | null | null | crisiscleanup/calls/migrations/0003_auto_20180115_1743.py | CrisisCleanup/wcicp-call-service | 0a00e092625e2a48c9807737a4b72e343e1ab0b9 | [
"Apache-1.1"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-15 17:43
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('calls', '0002_auto_20171109_0100'),
]
operations = [
migrations... | 29.491228 | 90 | 0.573468 | 167 | 1,681 | 5.556886 | 0.407186 | 0.077586 | 0.09806 | 0.128233 | 0.6875 | 0.649784 | 0.612069 | 0.532328 | 0.532328 | 0.409483 | 0 | 0.032035 | 0.312909 | 1,681 | 56 | 91 | 30.017857 | 0.771429 | 0.040452 | 0 | 0.653061 | 1 | 0 | 0.106211 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8c362b3d6e742eb3b6bca6aa744cdb61aba56ed | 1,049 | py | Python | fixture/db.py | kuzmin-anton/python_training | 2f0fe27212918af98c8177589b548f9558f0ee66 | [
"Apache-2.0"
] | null | null | null | fixture/db.py | kuzmin-anton/python_training | 2f0fe27212918af98c8177589b548f9558f0ee66 | [
"Apache-2.0"
] | null | null | null | fixture/db.py | kuzmin-anton/python_training | 2f0fe27212918af98c8177589b548f9558f0ee66 | [
"Apache-2.0"
] | null | null | null | import psycopg2
class DbFixture:
def __init__(self, host, database, user, password, port):
self.host = host
self.database = database
self.user = user
self.password = password
self.port = port
self.connection = psycopg2.connect(host=host, database=databas... | 34.966667 | 114 | 0.590086 | 121 | 1,049 | 4.933884 | 0.421488 | 0.040201 | 0.075377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.306006 | 1,049 | 30 | 115 | 34.966667 | 0.81456 | 0 | 0 | 0 | 0 | 0 | 0.245837 | 0.060725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.12 | 0.04 | 0 | 0.24 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e8c9407db36f45545675f7343e02ae9fa4651930 | 1,965 | py | Python | haprestio/adm_v1/login.py | innofocus/haprestio | 6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde | [
"MIT"
] | null | null | null | haprestio/adm_v1/login.py | innofocus/haprestio | 6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde | [
"MIT"
] | null | null | null | haprestio/adm_v1/login.py | innofocus/haprestio | 6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde | [
"MIT"
] | null | null | null | import time
from flask import jsonify
from flask_restplus import Resource
from flask_jwt_extended import create_access_token
from . import get_token2, get_token2_m
from ..data.accounts import Account
from ..auth.jwt import admin_required
@get_token2.route('/name=<string:name>/password=<string:password>')
@get_token2.... | 40.9375 | 118 | 0.661069 | 247 | 1,965 | 5.11336 | 0.315789 | 0.092637 | 0.05384 | 0.030879 | 0.546318 | 0.546318 | 0.516231 | 0.516231 | 0.463975 | 0.463975 | 0 | 0.026455 | 0.230534 | 1,965 | 48 | 119 | 40.9375 | 0.808862 | 0.087532 | 0 | 0.473684 | 0 | 0 | 0.244219 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.184211 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e8d2b37757a97a7cdcccc2ba6819bdd746e21fa4 | 7,879 | py | Python | analysis/flight_data/generate_wind_db_from_flight_log.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | analysis/flight_data/generate_wind_db_from_flight_log.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | analysis/flight_data/generate_wind_db_from_flight_log.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | #!/usr/bin/python
# Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 35.331839 | 80 | 0.676736 | 1,177 | 7,879 | 4.35514 | 0.278675 | 0.038236 | 0.019313 | 0.005462 | 0.207764 | 0.169333 | 0.12817 | 0.112758 | 0.102029 | 0.082716 | 0 | 0.013609 | 0.20726 | 7,879 | 222 | 81 | 35.490991 | 0.807077 | 0.192918 | 0 | 0.176471 | 0 | 0.008403 | 0.178374 | 0.0257 | 0 | 0 | 0 | 0 | 0.016807 | 0 | null | null | 0.016807 | 0.10084 | null | null | 0.016807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8d3b1367f0a094beaa46f4438587f04ead98175 | 3,350 | py | Python | projects/GreenSOBA/agents/pc.py | GGP00/soba | c193f323f26eccf579a454b8bb4bec4e80644444 | [
"MIT"
] | 1 | 2017-03-06T12:33:02.000Z | 2017-03-06T12:33:02.000Z | projects/GreenSOBA/agents/pc.py | GGP00/soba | c193f323f26eccf579a454b8bb4bec4e80644444 | [
"MIT"
] | 3 | 2017-04-26T08:57:35.000Z | 2019-04-24T08:28:24.000Z | projects/GreenSOBA/agents/pc.py | GGP00/soba | c193f323f26eccf579a454b8bb4bec4e80644444 | [
"MIT"
] | 1 | 2019-01-20T17:39:00.000Z | 2019-01-20T17:39:00.000Z | from mesa import Agent, Model
from transitions import Machine
from transitions import State
import json
import configuration.settings
class PC(Agent):
states = [
State(name='off', on_enter=['set_off']),
State(name='on', on_enter=['set_on']),
State(name='standby', on_enter=['set_standby'])
... | 36.813187 | 160 | 0.591045 | 386 | 3,350 | 4.84715 | 0.173575 | 0.157135 | 0.14698 | 0.086585 | 0.533405 | 0.424372 | 0.424372 | 0.424372 | 0.400855 | 0.400855 | 0 | 0.013877 | 0.311642 | 3,350 | 91 | 161 | 36.813187 | 0.797485 | 0.015522 | 0 | 0.44 | 0 | 0 | 0.029109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0.053333 | 0.066667 | 0 | 0.226667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e8d438e56342e274e2527217514ea57d3675647b | 9,568 | py | Python | src/controllers/main/account.py | tassaron/flask-shop | 371cc04fdee384fc27a1faf790b01039ce289e3d | [
"MIT"
] | 1 | 2022-03-08T04:57:54.000Z | 2022-03-08T04:57:54.000Z | src/controllers/main/account.py | tassaron/muffin-shop | 371cc04fdee384fc27a1faf790b01039ce289e3d | [
"MIT"
] | null | null | null | src/controllers/main/account.py | tassaron/muffin-shop | 371cc04fdee384fc27a1faf790b01039ce289e3d | [
"MIT"
] | null | null | null | """
Handles logging in/registering/editing a user account
"""
from flask import (
flash,
request,
session,
render_template,
current_app,
redirect,
url_for,
abort,
)
import flask_login
from sqlalchemy.exc import IntegrityError
from is_safe_url import is_safe_url
from muffin_shop.helpers.m... | 35.969925 | 100 | 0.613294 | 1,118 | 9,568 | 5.052773 | 0.207513 | 0.031864 | 0.02974 | 0.035405 | 0.449637 | 0.342716 | 0.316516 | 0.26695 | 0.252788 | 0.21703 | 0 | 0.001626 | 0.292747 | 9,568 | 265 | 101 | 36.10566 | 0.832865 | 0.079327 | 0 | 0.319249 | 0 | 0 | 0.174121 | 0.019233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046948 | false | 0.089202 | 0.046948 | 0 | 0.173709 | 0.051643 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2cd634d4b57b972148c5c05d97336c8b87131ae6 | 1,790 | py | Python | butter_bot/motor_driver.py | heidtn/butter_bot | 5c470111449f17ebad24013e1bbbcbedfabb0315 | [
"MIT"
] | 1 | 2016-03-11T19:59:59.000Z | 2016-03-11T19:59:59.000Z | butter_bot/motor_driver.py | heidtn/butter_bot | 5c470111449f17ebad24013e1bbbcbedfabb0315 | [
"MIT"
] | null | null | null | butter_bot/motor_driver.py | heidtn/butter_bot | 5c470111449f17ebad24013e1bbbcbedfabb0315 | [
"MIT"
] | null | null | null | """this is pulled from Pololu's library for driving motors here: https://github.com/pololu/drv8835-motor-driver-rpi/blob/master/pololu_drv8835_rpi.py"""
from RPIO import PWM
import RPIO
import lcm
from butterbotlcm import motor_t
lc = lcm.LCM()
A1IN = 17
A2IN = 27
B2IN = 23
B1IN = 22
TIMING = 2000
MAX_SPEED = T... | 22.375 | 152 | 0.640223 | 244 | 1,790 | 4.491803 | 0.418033 | 0.029197 | 0.023723 | 0.031022 | 0.04927 | 0.04927 | 0 | 0 | 0 | 0 | 0 | 0.051263 | 0.248045 | 1,790 | 79 | 153 | 22.658228 | 0.763001 | 0 | 0 | 0.035088 | 0 | 0 | 0.026862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017544 | 0.070175 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cda5cb615fddd0d998948e90aa74d4652c7a5c2 | 1,196 | py | Python | example_project/settings.py | texastribune/django-hstore-schema | 85dd103411567787aa06bb1ab17884823455770d | [
"Apache-2.0"
] | null | null | null | example_project/settings.py | texastribune/django-hstore-schema | 85dd103411567787aa06bb1ab17884823455770d | [
"Apache-2.0"
] | null | null | null | example_project/settings.py | texastribune/django-hstore-schema | 85dd103411567787aa06bb1ab17884823455770d | [
"Apache-2.0"
] | null | null | null | import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__)))
STATICFILES_DIRS = (os.path.join(PROJECT_PATH, 'static'),)
STATICFILES_FINDERS = ("django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppD... | 38.580645 | 81 | 0.708194 | 130 | 1,196 | 6.346154 | 0.492308 | 0.173333 | 0.036364 | 0.033939 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0.009872 | 0.15301 | 1,196 | 30 | 82 | 39.866667 | 0.804541 | 0 | 0 | 0 | 0 | 0.035714 | 0.516722 | 0.409699 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cdc55242a2a1519ba7c5ad22ad6602624fb252a | 3,587 | py | Python | pi/people_counter.py | kchristidis/watchtower | 9d3efde68303cdd476fe494b070d498dfdfce08e | [
"Apache-2.0"
] | null | null | null | pi/people_counter.py | kchristidis/watchtower | 9d3efde68303cdd476fe494b070d498dfdfce08e | [
"Apache-2.0"
] | null | null | null | pi/people_counter.py | kchristidis/watchtower | 9d3efde68303cdd476fe494b070d498dfdfce08e | [
"Apache-2.0"
] | 1 | 2018-12-19T20:39:13.000Z | 2018-12-19T20:39:13.000Z | # import the necessary packages
import datetime
import imutils
import time
import cv2
from picamera import PiCamera
from picamera.array import PiRGBArray
SENSITIVITY = 40 # 0-255, lower==more sensitive
state = ''
people = 0
# if the video argument is None, then we are reading from webcam
camera = PiCamera()
camera.r... | 31.464912 | 91 | 0.570951 | 471 | 3,587 | 4.301486 | 0.388535 | 0.009872 | 0.005923 | 0.017769 | 0.139191 | 0.117473 | 0.117473 | 0.117473 | 0.117473 | 0.117473 | 0 | 0.043727 | 0.317814 | 3,587 | 113 | 92 | 31.743363 | 0.784226 | 0.333426 | 0 | 0.304348 | 0 | 0 | 0.026672 | 0 | 0 | 0 | 0.001693 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cdce922c8752d97858c2d15c2db806691880f2f | 480 | py | Python | application/services/compare/enhance_encoder.py | YuMurata/flask | d4169e6ced5dc712e525f9ef606e9887c831f8c4 | [
"MIT"
] | null | null | null | application/services/compare/enhance_encoder.py | YuMurata/flask | d4169e6ced5dc712e525f9ef606e9887c831f8c4 | [
"MIT"
] | null | null | null | application/services/compare/enhance_encoder.py | YuMurata/flask | d4169e6ced5dc712e525f9ef606e9887c831f8c4 | [
"MIT"
] | null | null | null | from .ImageEnhancer import ImageEnhancer
import io
import base64
class EnhanceEncoder:
def __init__(self, image_path: str):
self.enhancer = ImageEnhancer(image_path)
def Encode(self, param):
image = self.enhancer.enhance(param)
output = io.BytesIO()
image.save(output, format=... | 24 | 56 | 0.654167 | 53 | 480 | 5.773585 | 0.528302 | 0.124183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032345 | 0.227083 | 480 | 19 | 57 | 25.263158 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0.054167 | 0.045833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2cde738019e3ebaa0b8a1db424e4503a6b5cf190 | 3,085 | py | Python | comp0037_reactive_planner_controller/src/comp0037_reactive_planner_controller/search_grid.py | stapiastocker/Robotic-Systems-CW3 | f7fad19ab45caee6f20f85f59e8749c91b64727f | [
"BSD-3-Clause"
] | 1 | 2018-04-21T09:34:22.000Z | 2018-04-21T09:34:22.000Z | comp0037_reactive_planner_controller/src/comp0037_reactive_planner_controller/search_grid.py | stapiastocker/Robotic-Systems-CW3 | f7fad19ab45caee6f20f85f59e8749c91b64727f | [
"BSD-3-Clause"
] | 2 | 2018-02-14T18:08:01.000Z | 2018-03-17T10:51:25.000Z | comp0037_reactive_planner_controller/src/comp0037_reactive_planner_controller/search_grid.py | stapiastocker/Robotic-Systems-CW3 | f7fad19ab45caee6f20f85f59e8749c91b64727f | [
"BSD-3-Clause"
] | 8 | 2018-02-20T13:21:00.000Z | 2019-01-05T15:07:50.000Z | # -*- coding: utf-8 -*-
from cell import *
import math
def clamp(x, minimum, maximum):
return max(minimum, min(x, maximum))
class SearchGrid(object):
# This class stores the state of a search grid to illustrate forward search
def __init__(self, width, height, robotRadius):
self.width = width
... | 37.168675 | 104 | 0.651216 | 377 | 3,085 | 5.318302 | 0.384615 | 0.076309 | 0.02793 | 0.040399 | 0.072818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006157 | 0.262885 | 3,085 | 82 | 105 | 37.621951 | 0.87555 | 0.33128 | 0 | 0 | 0 | 0 | 0.007832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cdec0e9bfc4058ae80d8298ad6c746f951e0167 | 952 | py | Python | tests/test_trim.py | gmagoon/atropos | 3f44bd494e711af0acf7fe06de0c25505a4a358a | [
"CC0-1.0"
] | null | null | null | tests/test_trim.py | gmagoon/atropos | 3f44bd494e711af0acf7fe06de0c25505a4a358a | [
"CC0-1.0"
] | null | null | null | tests/test_trim.py | gmagoon/atropos | 3f44bd494e711af0acf7fe06de0c25505a4a358a | [
"CC0-1.0"
] | null | null | null | # coding: utf-8
from atropos.adapters import Adapter, ColorspaceAdapter, PREFIX, BACK
from atropos.commands.trim.modifiers import AdapterCutter
from atropos.io.seqio import ColorspaceSequence, Sequence
def test_cs_5p():
read = ColorspaceSequence("name", "0123", "DEFG", "T")
adapter = ColorspaceAdapter("CG", PR... | 36.615385 | 78 | 0.698529 | 123 | 952 | 5.317073 | 0.552846 | 0.055046 | 0.024465 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.193277 | 952 | 25 | 79 | 38.08 | 0.835938 | 0.122899 | 0 | 0.111111 | 0 | 0 | 0.042169 | 0 | 0 | 0 | 0 | 0.04 | 0.055556 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ce3a90849494699a836f0bd15da7d6864650e43 | 932 | py | Python | P2_RecorridoGrafos/Stack.py | FabriK12/project-ADAGrupoC | 3081ce2b35d314d3fe45e0aac8b9e5d20d1b8a31 | [
"BSD-3-Clause"
] | null | null | null | P2_RecorridoGrafos/Stack.py | FabriK12/project-ADAGrupoC | 3081ce2b35d314d3fe45e0aac8b9e5d20d1b8a31 | [
"BSD-3-Clause"
] | null | null | null | P2_RecorridoGrafos/Stack.py | FabriK12/project-ADAGrupoC | 3081ce2b35d314d3fe45e0aac8b9e5d20d1b8a31 | [
"BSD-3-Clause"
] | null | null | null | class Node():
def __init__(self, valor):
self.valor = valor
self.next = None
class Stack:
def __init__(self):
self.head = Node("head")
self.size = 0
def __str__(self):
actual = self.head.next
str1 = "["
while actual:
str1 += str(actual.valor) + ", "
actual = actual.next
s... | 19.829787 | 50 | 0.603004 | 131 | 932 | 4.198473 | 0.251908 | 0.116364 | 0.152727 | 0.116364 | 0.301818 | 0.301818 | 0.287273 | 0.185455 | 0.185455 | 0.185455 | 0 | 0.015782 | 0.252146 | 932 | 47 | 51 | 19.829787 | 0.773314 | 0 | 0 | 0.105263 | 0 | 0 | 0.072153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.052632 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ce87aa3755c017a80826aeb3323b2ba23c57215 | 219 | py | Python | settings.py | christophanneser/Bao-for-Presto | b1d93689025d51cdea1a2e81edb8f077df8afcc1 | [
"MIT"
] | null | null | null | settings.py | christophanneser/Bao-for-Presto | b1d93689025d51cdea1a2e81edb8f077df8afcc1 | [
"MIT"
] | null | null | null | settings.py | christophanneser/Bao-for-Presto | b1d93689025d51cdea1a2e81edb8f077df8afcc1 | [
"MIT"
] | null | null | null | """This settings module defines the benchmark driver settings"""
EXPORT_GRAPHVIZ = False
EXPORT_JSON = False
REPEATS = 1
LOGICAL_DOT = ''
FRAGMENTED_DOT = ''
LOGICAL_JSON = ''
FRAGMENTED_JSON = ''
PRESTO_SETTINGS = {}
| 19.909091 | 64 | 0.739726 | 26 | 219 | 5.961538 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.150685 | 219 | 10 | 65 | 21.9 | 0.827957 | 0.26484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ce9400b5d232e7a862ae2e711b0e07cba584766 | 567 | py | Python | nameko-examples/orders/setup.py | mtianyan/NamekoMicroServices | b5fca91afda8c5af49d14d908b3d8d11ec4f369f | [
"Apache-2.0"
] | null | null | null | nameko-examples/orders/setup.py | mtianyan/NamekoMicroServices | b5fca91afda8c5af49d14d908b3d8d11ec4f369f | [
"Apache-2.0"
] | null | null | null | nameko-examples/orders/setup.py | mtianyan/NamekoMicroServices | b5fca91afda8c5af49d14d908b3d8d11ec4f369f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='nameko-examples-orders',
version='0.0.1',
description='Store and serve orders',
packages=find_packages(exclude=['test', 'test.*']),
install_requires=[
'nameko==2.8.5',
'nameko-sqlalchemy==0.0.4',
... | 22.68 | 55 | 0.522046 | 71 | 567 | 4.098592 | 0.633803 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.285714 | 567 | 24 | 56 | 23.625 | 0.644444 | 0.035273 | 0 | 0.090909 | 0 | 0 | 0.344322 | 0.084249 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ce9cc076fae18a67886b9450757d7a75acd9efc | 6,928 | py | Python | auviewer/modules/featurization/model.py | autonlab/auviewer | 448157693e600209c805d09b1f99cdca583749e9 | [
"MIT"
] | 11 | 2020-10-25T00:10:15.000Z | 2022-02-21T18:56:06.000Z | auviewer/modules/featurization/model.py | autonlab/auviewer | 448157693e600209c805d09b1f99cdca583749e9 | [
"MIT"
] | 20 | 2021-01-21T19:32:35.000Z | 2021-12-10T20:38:48.000Z | auviewer/modules/featurization/model.py | autonlab/auviewer | 448157693e600209c805d09b1f99cdca583749e9 | [
"MIT"
] | 4 | 2021-04-13T13:51:07.000Z | 2022-03-28T21:25:25.000Z | from abc import ABC, abstractmethod
from typing import AnyStr, List, Dict, Optional, Union
from functools import partial
class AdvancedFeaturizer(ABC):
pass
class SimpleFeaturizer(ABC):
id = None
parameters = []
# def __init__(self, files: Union[str, List[str]], series: Union[str, List[str], None]):... | 37.448649 | 119 | 0.572893 | 793 | 6,928 | 4.918033 | 0.239596 | 0.053077 | 0.063333 | 0.030513 | 0.187692 | 0.135897 | 0.086667 | 0.045128 | 0.045128 | 0.031282 | 0 | 0.001296 | 0.331553 | 6,928 | 184 | 120 | 37.652174 | 0.840855 | 0.314232 | 0 | 0.084906 | 0 | 0 | 0.153795 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.066038 | false | 0.009434 | 0.028302 | 0 | 0.179245 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cefb38ca96d06722d17dfbfe9451179a6000e0e | 3,652 | py | Python | result_analysis_scripts/plot_results.py | javigm98/Mejorando-el-Aprendizaje-Automatico | fefdbb5c3b3826230738b3e5fbd76f64e701d344 | [
"MIT"
] | null | null | null | result_analysis_scripts/plot_results.py | javigm98/Mejorando-el-Aprendizaje-Automatico | fefdbb5c3b3826230738b3e5fbd76f64e701d344 | [
"MIT"
] | null | null | null | result_analysis_scripts/plot_results.py | javigm98/Mejorando-el-Aprendizaje-Automatico | fefdbb5c3b3826230738b3e5fbd76f64e701d344 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import numpy as np
import os
def plot_bars(bars, values, name, save_name, y_label=None):
plt.close('all')
fig, ax = plt.subplots()
pos = np.arange(len(bars))
rects=ax.bar(pos, values)
ax.bar_label(rects, labels=[... | 36.888889 | 128 | 0.650055 | 595 | 3,652 | 3.85042 | 0.178151 | 0.087298 | 0.020952 | 0.030554 | 0.683108 | 0.625928 | 0.625928 | 0.614142 | 0.614142 | 0.614142 | 0 | 0.020741 | 0.194688 | 3,652 | 98 | 129 | 37.265306 | 0.758245 | 0.023001 | 0 | 0.662921 | 0 | 0 | 0.054979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0 | 0.05618 | 0 | 0.11236 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cf01a7f6d507de014e0943a531be2e3958ed86a | 422 | py | Python | Quiron/users/admin.py | CesarNav/Quiron | 5e20e891436513cf664fba9806d57b104b65d9cd | [
"MIT"
] | null | null | null | Quiron/users/admin.py | CesarNav/Quiron | 5e20e891436513cf664fba9806d57b104b65d9cd | [
"MIT"
] | null | null | null | Quiron/users/admin.py | CesarNav/Quiron | 5e20e891436513cf664fba9806d57b104b65d9cd | [
"MIT"
] | null | null | null | # Django
from django.contrib import admin
# Import our models to the admin
from users.models import Profile
# Register the model profile in the admin
@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
list_display = ['pk', 'user','prof_register','picture']
list_display_links = ('pk', 'prof_regist... | 26.375 | 61 | 0.727488 | 55 | 422 | 5.345455 | 0.545455 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151659 | 422 | 15 | 62 | 28.133333 | 0.821229 | 0.182464 | 0 | 0 | 0 | 0 | 0.232353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2cf2241f95638fef1bf906f2cef524cf217d5272 | 941 | py | Python | defunct/random_forests_small_bytes.py | naritapandhe/Microsoft-Malware-Classification-Challenge | 9461becb5db6c2df844026c6382b51b74de7473e | [
"MIT"
] | 9 | 2018-08-11T18:56:05.000Z | 2021-02-07T17:37:54.000Z | defunct/random_forests_small_bytes.py | naritapandhe/Microsoft-Malware-Classification-Challenge | 9461becb5db6c2df844026c6382b51b74de7473e | [
"MIT"
] | null | null | null | defunct/random_forests_small_bytes.py | naritapandhe/Microsoft-Malware-Classification-Challenge | 9461becb5db6c2df844026c6382b51b74de7473e | [
"MIT"
] | 4 | 2017-12-04T04:33:21.000Z | 2020-12-10T10:20:16.000Z | from pyspark.sql import SparkSession
from pyspark.mllib.linalg import SparseVector, VectorUDT, Vectors
from pyspark.sql.types import *
from pyspark.ml.classification import RandomForestClassifier
from pyspark.ml.evaluation import MulticlassClassificationEvaluator
#initialize spark session
spark = SparkSession\
... | 31.366667 | 68 | 0.764081 | 105 | 941 | 6.828571 | 0.571429 | 0.076709 | 0.039052 | 0.04742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007203 | 0.114772 | 941 | 29 | 69 | 32.448276 | 0.853541 | 0.061637 | 0 | 0 | 0 | 0 | 0.138794 | 0.084187 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cf3053ce63474ddb9588e275f1dbd95bba277bc | 541 | py | Python | conftest.py | Qqwy/pyton-multiple_indexed_collection | 7e21435b85b388f87ccccfe25dc726a0ae58ce08 | [
"MIT"
] | 1 | 2018-05-01T11:12:04.000Z | 2018-05-01T11:12:04.000Z | conftest.py | Qqwy/pyton-multiple_indexed_collection | 7e21435b85b388f87ccccfe25dc726a0ae58ce08 | [
"MIT"
] | 2 | 2018-05-23T19:08:41.000Z | 2018-05-28T18:58:25.000Z | conftest.py | Qqwy/pyton-multiple_indexed_collection | 7e21435b85b388f87ccccfe25dc726a0ae58ce08 | [
"MIT"
] | 1 | 2018-05-23T18:46:33.000Z | 2018-05-23T18:46:33.000Z | import pytest
@pytest.fixture(autouse=True)
def fill_doctests_namespace(doctest_namespace):
"""
Common classes and objects used in doctests.
"""
class User():
def __init__(self, name, user_id):
self.name = name
self.user_id = user_id
john = User('John', 1)
pete =... | 27.05 | 48 | 0.632163 | 66 | 541 | 4.954545 | 0.439394 | 0.293578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007335 | 0.243993 | 541 | 19 | 49 | 28.473684 | 0.792176 | 0.081331 | 0 | 0 | 0 | 0 | 0.058212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cf4e559a2c7be69eef5efbce03feec209c9e93f | 311 | py | Python | Python/Chapter07/progex07_7.py | msiplab/EicProgLab | 4ca523d09c3b414fceda10f3cff055e94fbcc2a9 | [
"MIT"
] | 1 | 2021-04-16T04:26:05.000Z | 2021-04-16T04:26:05.000Z | Python/Chapter07/progex07_7.py | msiplab/EicProgLab | 4ca523d09c3b414fceda10f3cff055e94fbcc2a9 | [
"MIT"
] | null | null | null | Python/Chapter07/progex07_7.py | msiplab/EicProgLab | 4ca523d09c3b414fceda10f3cff055e94fbcc2a9 | [
"MIT"
] | 2 | 2020-06-30T02:11:18.000Z | 2021-08-09T04:44:16.000Z | """デコレータのサンプル"""
from random import gauss
def noisy(func):
def noisy_func(*args, **kwargs):
y = func(*args, **kwargs) + gauss(0,0.01)
return y
return noisy_func
@noisy
def f(x):
return 2.0*x
for n in range(10):
x = 0.1 * n
print('f({0: 4.3f}) ~ {1: 4.3f}'.format(x,f(x)))
| 18.294118 | 52 | 0.553055 | 55 | 311 | 3.090909 | 0.490909 | 0.158824 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06867 | 0.250804 | 311 | 16 | 53 | 19.4375 | 0.660944 | 0.032154 | 0 | 0 | 0 | 0 | 0.081356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cfb35627d9e663a33c25298a3d046de52732430 | 372 | py | Python | test/test.py | mlares/iate_audit | 3ae8aff2b3de853d43619c592ac8cedf0ff35591 | [
"MIT"
] | null | null | null | test/test.py | mlares/iate_audit | 3ae8aff2b3de853d43619c592ac8cedf0ff35591 | [
"MIT"
] | null | null | null | test/test.py | mlares/iate_audit | 3ae8aff2b3de853d43619c592ac8cedf0ff35591 | [
"MIT"
] | null | null | null | from pinnacle import pinnacle
import pytest
import pathlib
import os
PATH = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))
def test_gen_dir_name():
import secrets
import string
ALPHABET = string.ascii_letters + string.digits
new_dir = ''.join(secrets.choice(ALPHABET) for i in range(10))
r... | 23.25 | 66 | 0.728495 | 56 | 372 | 4.642857 | 0.607143 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.169355 | 372 | 15 | 67 | 24.8 | 0.822006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.461538 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2cfe7b5cdc2e3e3ba694a182adba9570a1e7983c | 2,188 | py | Python | ibmcnx/doc/ProfRoleID.py | stoeps13/ibmcnx2 | 14e3387e0b5726afbb094b9be5016f47e830362a | [
"Apache-2.0"
] | 11 | 2015-03-07T14:09:43.000Z | 2022-03-16T07:31:55.000Z | ibmcnx/doc/ProfRoleID.py | stoeps13/ibmcnx2 | 14e3387e0b5726afbb094b9be5016f47e830362a | [
"Apache-2.0"
] | null | null | null | ibmcnx/doc/ProfRoleID.py | stoeps13/ibmcnx2 | 14e3387e0b5726afbb094b9be5016f47e830362a | [
"Apache-2.0"
] | 9 | 2015-03-04T16:50:46.000Z | 2020-05-22T05:31:27.000Z | '''
Print all user with ROLE_ID=employee.extended
Author: Christoph Stoettner
Mail: christoph.stoettner@stoeps.de
Documentation: http://scripting101.stoeps.de
Version: 5.0.1
Date: 09/19/2015
License: Apache 2.0
'''
import os
import sys
from java.util import Properties
import Con... | 28.789474 | 192 | 0.686929 | 290 | 2,188 | 5.096552 | 0.455172 | 0.023681 | 0.077808 | 0.032476 | 0.02571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017251 | 0.152194 | 2,188 | 75 | 193 | 29.173333 | 0.779515 | 0.036563 | 0 | 0.086957 | 0 | 0.021739 | 0.357491 | 0.031909 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021739 | 0.108696 | null | null | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cffbcfe57f11f9f8030c1dd8a3af359ace2aa64 | 510 | py | Python | chhotu/products/migrations/0005_auto_20160820_1537.py | roshan007/chhout.web.backend | a952a53d908fb0c648b8b7279130166c2054f502 | [
"MIT"
] | null | null | null | chhotu/products/migrations/0005_auto_20160820_1537.py | roshan007/chhout.web.backend | a952a53d908fb0c648b8b7279130166c2054f502 | [
"MIT"
] | null | null | null | chhotu/products/migrations/0005_auto_20160820_1537.py | roshan007/chhout.web.backend | a952a53d908fb0c648b8b7279130166c2054f502 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-20 15:37
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('products', '0004_product_uuid'),
]
operations = [
migrations.Alte... | 23.181818 | 105 | 0.637255 | 57 | 510 | 5.54386 | 0.736842 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054688 | 0.247059 | 510 | 21 | 106 | 24.285714 | 0.768229 | 0.129412 | 0 | 0 | 1 | 0 | 0.120181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa04d0740e83e64b1920c08bd2892d6f175e96b4 | 2,551 | py | Python | api/authenticate/serializer.py | selelab/admin | d858209da3b7efc4501d503968402268d3f689f8 | [
"BSD-3-Clause"
] | null | null | null | api/authenticate/serializer.py | selelab/admin | d858209da3b7efc4501d503968402268d3f689f8 | [
"BSD-3-Clause"
] | 17 | 2020-03-27T14:18:46.000Z | 2022-02-27T01:24:58.000Z | api/authenticate/serializer.py | selelab/admin | d858209da3b7efc4501d503968402268d3f689f8 | [
"BSD-3-Clause"
] | 1 | 2020-02-26T09:09:07.000Z | 2020-02-26T09:09:07.000Z | from rest_framework import serializers
from django.core.mail import EmailMessage
import secrets
from accounting.models import Project
from accounting.serializer import ProjectSerializer
from .models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields =... | 30.011765 | 83 | 0.600549 | 245 | 2,551 | 6.040816 | 0.371429 | 0.096622 | 0.048649 | 0.064189 | 0.243243 | 0.222973 | 0.222973 | 0.175676 | 0.077027 | 0.077027 | 0 | 0.000555 | 0.29361 | 2,551 | 84 | 84 | 30.369048 | 0.820755 | 0 | 0 | 0.147059 | 0 | 0 | 0.190514 | 0.018424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044118 | false | 0.102941 | 0.088235 | 0 | 0.323529 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fa0784967c194bf5477c27c00190f3fadb5de1b9 | 1,242 | py | Python | blog/migrations/0001_initial.py | yuan64198/DjangoHiringBlog | a220b1480809044caf72fd36d6c26ca8672ee9cf | [
"MIT"
] | null | null | null | blog/migrations/0001_initial.py | yuan64198/DjangoHiringBlog | a220b1480809044caf72fd36d6c26ca8672ee9cf | [
"MIT"
] | null | null | null | blog/migrations/0001_initial.py | yuan64198/DjangoHiringBlog | a220b1480809044caf72fd36d6c26ca8672ee9cf | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-26 07:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 36.529412 | 120 | 0.619968 | 132 | 1,242 | 5.704545 | 0.583333 | 0.095618 | 0.099602 | 0.058433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026853 | 0.250403 | 1,242 | 33 | 121 | 37.636364 | 0.781955 | 0.036232 | 0 | 0 | 1 | 0 | 0.072803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa09f1dd1c1c0cedf90d76c5861baba4c1567c9c | 1,206 | py | Python | tests/mail/__init__.py | quantmind/lux | 7318fcd86c77616aada41d8182a04339680a554c | [
"BSD-3-Clause"
] | 21 | 2015-03-28T23:27:43.000Z | 2020-11-23T13:24:10.000Z | tests/mail/__init__.py | quantmind/lux | 7318fcd86c77616aada41d8182a04339680a554c | [
"BSD-3-Clause"
] | 195 | 2015-02-18T17:22:28.000Z | 2017-12-01T23:01:16.000Z | tests/mail/__init__.py | quantmind/lux | 7318fcd86c77616aada41d8182a04339680a554c | [
"BSD-3-Clause"
] | 16 | 2015-03-31T23:15:38.000Z | 2017-04-18T11:59:43.000Z | from lux.core import LuxExtension
from lux.ext import smtp
EXTENSIONS = ['lux.ext.smtp']
DEFAULT_CONTENT_TYPE = 'text/html'
EMAIL_BACKEND = 'tests.mail.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = '127.0.0.1'
EMAIL_PORT = 25
EMAIL_HOST_USER = 'server@luxtest.com'
EMAIL_HOST_PASSWORD = 'dummy'
EMAIL_DEFAULT_FROM = ... | 21.157895 | 68 | 0.64262 | 145 | 1,206 | 5.131034 | 0.496552 | 0.03629 | 0.040323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008556 | 0.22471 | 1,206 | 56 | 69 | 21.535714 | 0.787166 | 0 | 0 | 0.04878 | 0 | 0 | 0.220564 | 0.019071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.073171 | 0.04878 | 0.02439 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fa0bed25c37a472602b84a119c39e234bb339cd5 | 3,287 | py | Python | tests/z_test_dataset.py | morhadar/Recursive-CNNs | 57bab915b12d3502d4e7e71f6cde8e5b227b7a19 | [
"Apache-2.0"
] | 1 | 2022-03-22T06:34:00.000Z | 2022-03-22T06:34:00.000Z | tests/z_test_dataset.py | morhadar/Recursive-CNNs | 57bab915b12d3502d4e7e71f6cde8e5b227b7a19 | [
"Apache-2.0"
] | null | null | null | tests/z_test_dataset.py | morhadar/Recursive-CNNs | 57bab915b12d3502d4e7e71f6cde8e5b227b7a19 | [
"Apache-2.0"
] | null | null | null | import unittest
from torchvision import transforms
# (Ugly) Path hack. #TODO - get rid of it
import sys, os; sys.path.insert(0, os.path.abspath('.'))
from dataprocessor import MyDatasetDoc
from dataprocessor.dataset import MyDatasetCorner, SmartDoc, SmartDocCorner
from utils import draw_circle_pil, get_concat_h
clas... | 43.25 | 137 | 0.679343 | 432 | 3,287 | 4.893519 | 0.25 | 0.02649 | 0.059603 | 0.069536 | 0.619678 | 0.579943 | 0.556291 | 0.556291 | 0.556291 | 0.468307 | 0 | 0.023141 | 0.198053 | 3,287 | 75 | 138 | 43.826667 | 0.778832 | 0.122908 | 0 | 0.37037 | 0 | 0 | 0.17125 | 0.16394 | 0 | 0 | 0 | 0.013333 | 0.259259 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa0ec82fdbe72c124d6b716e574062c9eb7eca93 | 1,075 | py | Python | secondProject/driveTest/driveManager/migrations/0001_initial.py | loic9654/Djangodev | 2babb235d68f508c64171a146be8483009dea7f7 | [
"Apache-2.0"
] | null | null | null | secondProject/driveTest/driveManager/migrations/0001_initial.py | loic9654/Djangodev | 2babb235d68f508c64171a146be8483009dea7f7 | [
"Apache-2.0"
] | null | null | null | secondProject/driveTest/driveManager/migrations/0001_initial.py | loic9654/Djangodev | 2babb235d68f508c64171a146be8483009dea7f7 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-13 20:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
... | 32.575758 | 118 | 0.586047 | 108 | 1,075 | 5.722222 | 0.5 | 0.038835 | 0.087379 | 0.116505 | 0.343042 | 0.255663 | 0.255663 | 0.255663 | 0.255663 | 0.255663 | 0 | 0.031048 | 0.28093 | 1,075 | 32 | 119 | 33.59375 | 0.768435 | 0.04186 | 0 | 0.4 | 1 | 0 | 0.090467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa1315fbeebf3e96c281d9d5b8e71c45cd5743bb | 795 | py | Python | src/azure-databricks/event-datapipeline/nb-01-setup.py | bablulawrence/azure-training | 308fe5bf28e990a27bfe3c86029733bd25b7a3ac | [
"MIT"
] | 1 | 2021-12-01T09:33:32.000Z | 2021-12-01T09:33:32.000Z | src/azure-databricks/event-datapipeline/nb-01-setup.py | bablulawrence/azure-training | 308fe5bf28e990a27bfe3c86029733bd25b7a3ac | [
"MIT"
] | null | null | null | src/azure-databricks/event-datapipeline/nb-01-setup.py | bablulawrence/azure-training | 308fe5bf28e990a27bfe3c86029733bd25b7a3ac | [
"MIT"
] | null | null | null | # Databricks notebook source
# MAGIC %run ./includes/utils
# COMMAND ----------
mountDataLake(clientId="64492359-3450-4f1e-be01-8717789fd01e",
clientSecret=dbutils.secrets.get(scope="dpdatalake",key="adappsecret"),
tokenEndPoint="https://login.microsoftonline.com/0b55e01a-573a-4060-b656-d... | 36.136364 | 114 | 0.70566 | 92 | 795 | 6.01087 | 0.619565 | 0.059675 | 0.059675 | 0.065099 | 0.249548 | 0.249548 | 0.151899 | 0.151899 | 0 | 0 | 0 | 0.075643 | 0.168553 | 795 | 22 | 115 | 36.136364 | 0.760968 | 0.524528 | 0 | 0 | 0 | 0.2 | 0.421918 | 0.09863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa15233afe0b6206be1c5964beca52e4e7f5b518 | 822 | py | Python | myapp/urls.py | HapticHash/mysite20 | db4006dd34246d8cda4594512953a99321c407f7 | [
"MIT"
] | 1 | 2020-09-05T19:23:13.000Z | 2020-09-05T19:23:13.000Z | myapp/urls.py | HapticHash/mysite20 | db4006dd34246d8cda4594512953a99321c407f7 | [
"MIT"
] | null | null | null | myapp/urls.py | HapticHash/mysite20 | db4006dd34246d8cda4594512953a99321c407f7 | [
"MIT"
] | 1 | 2020-09-05T19:26:40.000Z | 2020-09-05T19:26:40.000Z | from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from myapp import views
app_name = 'myapp'
urlpatterns = [
path(r'', views.index, name='index'),
path(r'about', views.about, name='about'),
path(r'<int:top_no>', views.detail, name='detail'),
path(r'courses',v... | 39.142857 | 73 | 0.73236 | 119 | 822 | 4.983193 | 0.302521 | 0.10118 | 0.047218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086375 | 822 | 21 | 74 | 39.142857 | 0.789614 | 0 | 0 | 0 | 0 | 0 | 0.251519 | 0.025516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.210526 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fa159c41f47bb95bc6a129720dca5b1b94afd426 | 356 | py | Python | setup.py | AllenInstitute/mpl_figure_formatter | 625ef9b78fdf377677c8c336023db672e9593a4d | [
"MIT"
] | 1 | 2021-04-26T07:12:33.000Z | 2021-04-26T07:12:33.000Z | setup.py | AllenInstitute/mpl_figure_formatter | 625ef9b78fdf377677c8c336023db672e9593a4d | [
"MIT"
] | null | null | null | setup.py | AllenInstitute/mpl_figure_formatter | 625ef9b78fdf377677c8c336023db672e9593a4d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='mpl_figure_formatter',
version='0.0.1',
description='Formats multipanel figures',
url='https://github.com/dougollerenshaw/mpl_figure_formatter',
author='Doug Ollerenshaw',
author_email="dougo@alleninstitute.org",
license='MIT',
install_requires=[
... | 25.428571 | 66 | 0.69382 | 39 | 356 | 6.179487 | 0.846154 | 0.074689 | 0.149378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.16573 | 356 | 14 | 67 | 25.428571 | 0.801347 | 0 | 0 | 0 | 0 | 0 | 0.459384 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa1986cce8078b3aa47fccb3aff7ef2e22a163c8 | 836 | py | Python | vislice.py | KTedi/Vislice2020 | d5d6b5a506b4fd029f3bc65d19315031e793ef1e | [
"MIT"
] | null | null | null | vislice.py | KTedi/Vislice2020 | d5d6b5a506b4fd029f3bc65d19315031e793ef1e | [
"MIT"
] | null | null | null | vislice.py | KTedi/Vislice2020 | d5d6b5a506b4fd029f3bc65d19315031e793ef1e | [
"MIT"
] | null | null | null | import bottle
import model
vislice = model.Vislice()
@bottle.get('/')
def index():
return bottle.template('views/index.tpl')
@bottle.post('/igra/')
def nova_igra():
id_igre = vislice.nova_igra()
bottle.redirect('/igra/{}/.format'.format(id_igre))
@bottle.get('/igra/<id_igre:int>/')
def pokazi_igro(id_ig... | 27.866667 | 134 | 0.704545 | 120 | 836 | 4.775 | 0.358333 | 0.115183 | 0.052356 | 0.08726 | 0.205934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114833 | 836 | 30 | 135 | 27.866667 | 0.774324 | 0.053828 | 0 | 0 | 0 | 0 | 0.152971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.086957 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa1b86c0eba105b9b175fb43f31051a85751446e | 2,320 | py | Python | longclaw/orders/migrations/0001_initial.py | MakeCollective/longclaw | 94b7632c76a549a1d9373368688261f3529429de | [
"MIT"
] | null | null | null | longclaw/orders/migrations/0001_initial.py | MakeCollective/longclaw | 94b7632c76a549a1d9373368688261f3529429de | [
"MIT"
] | 1 | 2021-04-08T04:17:51.000Z | 2021-04-08T04:17:51.000Z | longclaw/orders/migrations/0001_initial.py | MakeCollective/longclaw | 94b7632c76a549a1d9373368688261f3529429de | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-01 00:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shipping', '0003_auto_20190322_1429'),
('catalog', '0001_initial'),
]
operations = [
... | 52.727273 | 187 | 0.627586 | 252 | 2,320 | 5.623016 | 0.380952 | 0.050812 | 0.0494 | 0.077629 | 0.38391 | 0.38391 | 0.350035 | 0.309104 | 0.244178 | 0.244178 | 0 | 0.029917 | 0.221983 | 2,320 | 43 | 188 | 53.953488 | 0.755125 | 0.019397 | 0 | 0.277778 | 1 | 0 | 0.171139 | 0.039595 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa22a3057b0e4dc8470579b0cb4f0ba1aebc15c2 | 2,737 | py | Python | nicos_tuw/xccm/setups/virtual_IOcard.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_tuw/xccm/setups/virtual_IOcard.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_tuw/xccm/setups/virtual_IOcard.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'Actuators and feedback of the shutter, detector, and valves'
group = 'lowlevel'
excludes = ['IOcard']
devices = dict(
I1_pnCCD_Active = device('nicos.devices.generic.ManualSwitch',
description = 'high: Detector is turned on',
states = [0, 1],
),
I2_Shutter_safe = device('ni... | 37.493151 | 79 | 0.63829 | 319 | 2,737 | 5.329154 | 0.260188 | 0.103529 | 0.169412 | 0.235294 | 0.738824 | 0.682353 | 0.597647 | 0.508235 | 0.508235 | 0.435294 | 0 | 0.025084 | 0.242601 | 2,737 | 72 | 80 | 38.013889 | 0.794983 | 0 | 0 | 0.492754 | 0 | 0 | 0.436244 | 0.198758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa23ea67f04b7fdd7e442e200b808e9a4ef41fca | 3,077 | py | Python | mentorbot/MentorDetails/models.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | 2 | 2018-06-04T10:46:09.000Z | 2020-06-02T14:48:44.000Z | mentorbot/MentorDetails/models.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | 4 | 2018-07-18T13:16:50.000Z | 2021-09-07T23:41:25.000Z | mentorbot/MentorDetails/models.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | null | null | null | from random import randint
from django.db import models
from django.core.mail import EmailMessage
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.base_user import AbstractBaseUser
from django.utils.translation import gettext_lazy as _
from mentorbot.usermanager import UserManager
clas... | 39.961039 | 261 | 0.706857 | 387 | 3,077 | 5.408269 | 0.328165 | 0.078834 | 0.077401 | 0.103201 | 0.292403 | 0.292403 | 0.206402 | 0.120401 | 0.078356 | 0.078356 | 0 | 0.014179 | 0.174846 | 3,077 | 76 | 262 | 40.486842 | 0.810161 | 0.050699 | 0 | 0.115385 | 0 | 0 | 0.054718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0.019231 | 0.134615 | 0.038462 | 0.884615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fa240fe39fbcfd1a4bc158925b742ac122bd8081 | 744 | py | Python | Round 1A/append_sort.py | e-ntro-py/GoogleCodeJam-2021 | c42283480fa20a853c6d31d5faf0e83c6ad0f5f7 | [
"MIT"
] | 30 | 2021-03-27T20:18:15.000Z | 2022-03-19T06:18:58.000Z | Round 1A/append_sort.py | e-ntro-py/GoogleCodeJam-2021 | c42283480fa20a853c6d31d5faf0e83c6ad0f5f7 | [
"MIT"
] | 1 | 2021-05-24T19:14:29.000Z | 2021-05-25T04:14:10.000Z | Round 1A/append_sort.py | e-ntro-py/GoogleCodeJam-2021 | c42283480fa20a853c6d31d5faf0e83c6ad0f5f7 | [
"MIT"
] | 7 | 2021-03-28T12:38:55.000Z | 2021-09-19T15:30:39.000Z | # Copyright (c) 2021 kamyu. All rights reserved.
#
# Google Code Jam 2021 Round 1A - Problem A. Append Sort
# https://codingcompetitions.withgoogle.com/codejam/round/000000000043585d/00000000007549e5
#
# Time: O(N * log(MAX_X) * size(int)) = O(N * log(MAX_X))
# Space: O(size(int)) = O(1)
#
def append_sort():
N = ... | 26.571429 | 91 | 0.533602 | 117 | 744 | 3.350427 | 0.478632 | 0.035714 | 0.022959 | 0.040816 | 0.084184 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110694 | 0.283602 | 744 | 27 | 92 | 27.555556 | 0.624765 | 0.369624 | 0 | 0 | 0 | 0 | 0.026087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa25f741ab50638d2878131ae65ceb6f1ca525f0 | 896 | py | Python | taxinnovation/apps/listo_api/migrations/0032_auto_20210604_1126.py | rootUserM/Docekerfiles-examples | b2b2e6b8cd37f699bd182a358d472deff5eb1921 | [
"CC-BY-3.0"
] | null | null | null | taxinnovation/apps/listo_api/migrations/0032_auto_20210604_1126.py | rootUserM/Docekerfiles-examples | b2b2e6b8cd37f699bd182a358d472deff5eb1921 | [
"CC-BY-3.0"
] | null | null | null | taxinnovation/apps/listo_api/migrations/0032_auto_20210604_1126.py | rootUserM/Docekerfiles-examples | b2b2e6b8cd37f699bd182a358d472deff5eb1921 | [
"CC-BY-3.0"
] | null | null | null | # Generated by Django 3.1.1 on 2021-06-04 16:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('listo_api', '0031_detalle_declaracion_declaracion_filing_period_type'),
]
operations = [
migrations.AddField(
... | 35.84 | 181 | 0.696429 | 104 | 896 | 5.701923 | 0.471154 | 0.141653 | 0.107926 | 0.091062 | 0.347386 | 0.347386 | 0.242833 | 0.242833 | 0.242833 | 0.242833 | 0 | 0.036262 | 0.199777 | 896 | 24 | 182 | 37.333333 | 0.790795 | 0.050223 | 0 | 0.333333 | 1 | 0 | 0.282686 | 0.137809 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa2cf399dd90a83c374bf308276c06e0f65c9eda | 1,879 | py | Python | markets/migrations/0001_initial.py | aknirmal90/arbitrage | e43c91be80c6f8ef4070d30a3a897c2e113ae136 | [
"MIT"
] | 3 | 2017-12-14T12:41:01.000Z | 2021-05-17T11:51:53.000Z | markets/migrations/0001_initial.py | aknirmal90/arbitrage | e43c91be80c6f8ef4070d30a3a897c2e113ae136 | [
"MIT"
] | 2 | 2020-06-05T17:55:14.000Z | 2021-06-10T19:48:10.000Z | markets/migrations/0001_initial.py | aknirmal90/arbitrage | e43c91be80c6f8ef4070d30a3a897c2e113ae136 | [
"MIT"
] | 2 | 2018-07-11T03:23:51.000Z | 2021-07-16T17:42:21.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-02 19:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | 39.145833 | 116 | 0.580628 | 189 | 1,879 | 5.571429 | 0.444444 | 0.08547 | 0.068376 | 0.091168 | 0.2849 | 0.231719 | 0.231719 | 0.231719 | 0.231719 | 0.150047 | 0 | 0.024318 | 0.277807 | 1,879 | 47 | 117 | 39.978723 | 0.751658 | 0.036189 | 0 | 0.282051 | 1 | 0 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa36bdb45ca8ca5cdee122d2ce018c50b101bba6 | 1,512 | py | Python | UserManagement/migrations/0007_auto_20170303_1510.py | SkillSmart/ConferenceManagementSystem | 43af08260f321d1d506755da5c1b6ce1cf95fc42 | [
"MIT"
] | null | null | null | UserManagement/migrations/0007_auto_20170303_1510.py | SkillSmart/ConferenceManagementSystem | 43af08260f321d1d506755da5c1b6ce1cf95fc42 | [
"MIT"
] | null | null | null | UserManagement/migrations/0007_auto_20170303_1510.py | SkillSmart/ConferenceManagementSystem | 43af08260f321d1d506755da5c1b6ce1cf95fc42 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-03 14:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('UserManagement', '0006_auto_20170303_1238'),
]
operations = [
migrations.Cr... | 42 | 246 | 0.603836 | 159 | 1,512 | 5.603774 | 0.515723 | 0.061728 | 0.056117 | 0.058361 | 0.291807 | 0.291807 | 0.291807 | 0.291807 | 0.291807 | 0.291807 | 0 | 0.04287 | 0.244048 | 1,512 | 35 | 247 | 43.2 | 0.736658 | 0.044974 | 0 | 0.107143 | 1 | 0 | 0.25052 | 0.015961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa392f6ac2f525398da7999ec9c41fd28becafb8 | 805 | py | Python | samples/how-to/dslogmanager.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | samples/how-to/dslogmanager.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | samples/how-to/dslogmanager.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Prerequisites:
# 1. Initialize the SDK
# 2. Login as either a Client or a User
def example_check_server_logs():
from accelbyte_py_sdk.api.dslogmanager import check_server_logs
result, error = check_server_logs(
pod_name="<your-pod-name>"
)
if error:
print(error)
def example_downlo... | 23 | 73 | 0.69441 | 104 | 805 | 5.086538 | 0.346154 | 0.113422 | 0.085066 | 0.102079 | 0.533081 | 0.533081 | 0.533081 | 0.459357 | 0.459357 | 0.20794 | 0 | 0.00318 | 0.218634 | 805 | 34 | 74 | 23.676471 | 0.837838 | 0.091925 | 0 | 0.409091 | 0 | 0 | 0.085282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | true | 0 | 0.136364 | 0 | 0.272727 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa411fe37e49f0bd657d56ed89a416c386ebfec5 | 43,250 | py | Python | airmozilla/main/views/pages.py | mozilla/airmozilla | fa6acbbbacc1e22553457807bcea7ce7a9ef6fe3 | [
"BSD-3-Clause"
] | 115 | 2015-01-06T18:45:39.000Z | 2022-02-07T10:56:49.000Z | airmozilla/main/views/pages.py | 64lines/airmozilla | 9a204a6a5ca62876b81137b40ed2e4e00ede0ca9 | [
"BSD-3-Clause"
] | 321 | 2015-01-02T15:19:25.000Z | 2018-07-05T14:58:50.000Z | airmozilla/main/views/pages.py | 64lines/airmozilla | 9a204a6a5ca62876b81137b40ed2e4e00ede0ca9 | [
"BSD-3-Clause"
] | 101 | 2015-01-13T17:59:15.000Z | 2020-12-15T02:58:38.000Z | import datetime
import hashlib
import urllib
import time
import collections
import urlparse
import requests
from django import http
from django.conf import settings
from django.contrib.sites.requests import RequestSite
from django.shortcuts import get_object_or_404, redirect, render
from django.core.cache import cach... | 34.298176 | 79 | 0.578821 | 4,824 | 43,250 | 5.012231 | 0.135158 | 0.01737 | 0.014145 | 0.012366 | 0.314695 | 0.239754 | 0.164027 | 0.133587 | 0.107986 | 0.100376 | 0 | 0.005478 | 0.324671 | 43,250 | 1,260 | 80 | 34.325397 | 0.822343 | 0.087306 | 0 | 0.293103 | 0 | 0 | 0.080456 | 0.009855 | 0 | 0 | 0 | 0 | 0.003043 | 0 | null | null | 0.002028 | 0.034483 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa49de07068edc4c85901347ef131e5898d5e9d8 | 4,251 | py | Python | app/tests/v2/base_test.py | LarryKarani/iReporterApi | cb075f71a2c975db8328689bfbd0f20be5d381ec | [
"MIT"
] | null | null | null | app/tests/v2/base_test.py | LarryKarani/iReporterApi | cb075f71a2c975db8328689bfbd0f20be5d381ec | [
"MIT"
] | null | null | null | app/tests/v2/base_test.py | LarryKarani/iReporterApi | cb075f71a2c975db8328689bfbd0f20be5d381ec | [
"MIT"
] | 1 | 2018-12-05T09:54:29.000Z | 2018-12-05T09:54:29.000Z | import unittest
from app import create_app
from app.api.v2.models.users import Db
class BaseTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.db_obj = Db()
self.db_obj.drop_all_tables()
self.db_obj.create_tables()
self.client = self.app.... | 26.403727 | 62 | 0.441778 | 332 | 4,251 | 5.445783 | 0.246988 | 0.057522 | 0.096792 | 0.112279 | 0.538164 | 0.491704 | 0.470686 | 0.441925 | 0.384403 | 0.384403 | 0 | 0.042034 | 0.412374 | 4,251 | 160 | 63 | 26.56875 | 0.681745 | 0.00447 | 0 | 0.415385 | 0 | 0 | 0.270513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0.076923 | 0.023077 | 0 | 0.046154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fa4c0965c37cbdcf3edd1863d3ba29d2b79bb91f | 1,385 | py | Python | ch5/mnist.py | aidiary/PRML | db2dfc10bd39dc5649528d3778aa5fffb283186b | [
"MIT"
] | 93 | 2016-04-17T16:07:57.000Z | 2021-05-29T09:19:12.000Z | ch5/mnist.py | sojvai/PRML | db2dfc10bd39dc5649528d3778aa5fffb283186b | [
"MIT"
] | null | null | null | ch5/mnist.py | sojvai/PRML | db2dfc10bd39dc5649528d3778aa5fffb283186b | [
"MIT"
] | 55 | 2016-03-12T15:03:57.000Z | 2022-01-09T02:34:54.000Z | #coding:utf-8
import numpy as np
from mlp import MultiLayerPerceptron
from sklearn.datasets import fetch_mldata
from sklearn.cross_validation import train_test_split
from sklearn.preprocessing import LabelBinarizer
from sklearn.metrics import confusion_matrix, classification_report
"""
MNISTの手書き数字データの認識
scikit-learnのイ... | 27.7 | 76 | 0.7213 | 173 | 1,385 | 5.554913 | 0.526012 | 0.026015 | 0.029136 | 0.056191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034996 | 0.174729 | 1,385 | 49 | 77 | 28.265306 | 0.805774 | 0.158845 | 0 | 0 | 0 | 0 | 0.031481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.26087 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa5e6d798a25a340c30a7b84f5d9906cf0504480 | 2,703 | py | Python | hk_ros_2021/scripts/scan.py | Slewentogzz/hk_ros_2021 | 4c4f43b49d9eb447ab8170f108c71d2119769467 | [
"MIT"
] | null | null | null | hk_ros_2021/scripts/scan.py | Slewentogzz/hk_ros_2021 | 4c4f43b49d9eb447ab8170f108c71d2119769467 | [
"MIT"
] | null | null | null | hk_ros_2021/scripts/scan.py | Slewentogzz/hk_ros_2021 | 4c4f43b49d9eb447ab8170f108c71d2119769467 | [
"MIT"
] | 1 | 2021-02-08T13:16:30.000Z | 2021-02-08T13:16:30.000Z | #! /usr/bin/env python
import rospy
from sensor_msgs.msg import LaserScan
from darknet_ros_msgs.msg import BoundingBoxes
import tf2_ros
import tf2_msgs.msg
import geometry_msgs.msg
#def callback(msg):
#class animal_pos:
# def __init__(self):
# self.angle = 0
# self.dist = 0
class Callbacks:
def __i... | 31.8 | 229 | 0.664077 | 396 | 2,703 | 4.388889 | 0.262626 | 0.086306 | 0.059839 | 0.077675 | 0.365362 | 0.289988 | 0.125432 | 0.125432 | 0.125432 | 0.125432 | 0 | 0.034004 | 0.173141 | 2,703 | 84 | 230 | 32.178571 | 0.743624 | 0.248243 | 0 | 0.045455 | 0 | 0 | 0.046131 | 0.013393 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa70737fa6d048db649c3a1698623b23318ebf76 | 2,119 | py | Python | supports/pyload/src/pyload/plugins/accounts/ZeveraCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | 1 | 2020-04-02T17:03:39.000Z | 2020-04-02T17:03:39.000Z | supports/pyload/src/pyload/plugins/accounts/ZeveraCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | supports/pyload/src/pyload/plugins/accounts/ZeveraCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import json
import time
from ..base.multi_account import MultiAccount
class ZeveraCom(MultiAccount):
__name__ = "ZeveraCom"
__type__ = "account"
__version__ = "0.38"
__status__ = "testing"
__pyload_version__ = "0.5"
__config__ = [
("mh_mode",... | 27.166667 | 111 | 0.57008 | 226 | 2,119 | 5.075221 | 0.517699 | 0.038361 | 0.041848 | 0.05231 | 0.115083 | 0.115083 | 0.115083 | 0.06626 | 0 | 0 | 0 | 0.016086 | 0.295894 | 2,119 | 77 | 112 | 27.519481 | 0.752681 | 0.00991 | 0 | 0.035088 | 0 | 0.017544 | 0.253817 | 0.012405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0.122807 | 0.070175 | 0 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3afd137484aa9eebbe729dd63d021258fd0d378f | 406 | py | Python | alembic_dvc/versions/35ca1ab00f2_add_archived_to_load.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | alembic_dvc/versions/35ca1ab00f2_add_archived_to_load.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | alembic_dvc/versions/35ca1ab00f2_add_archived_to_load.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | """add archived to loadtbl
Revision ID: 35ca1ab00f2
Revises: 146580790cd
Create Date: 2016-01-08 12:32:49.891035
"""
# revision identifiers, used by Alembic.
revision = '35ca1ab00f2'
down_revision = '146580790cd'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('LoadTbl', sa.Column(... | 17.652174 | 63 | 0.731527 | 54 | 406 | 5.444444 | 0.648148 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144092 | 0.14532 | 406 | 22 | 64 | 18.454545 | 0.70317 | 0.369458 | 0 | 0 | 0 | 0 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7002486e8fdf20bcbe609b12939e405b09ecbd4 | 27,552 | py | Python | src/cspline.py | aseifahrt/serval | 81d5bfa083b455545d81c381d76977ee1a60e3b1 | [
"MIT"
] | null | null | null | src/cspline.py | aseifahrt/serval | 81d5bfa083b455545d81c381d76977ee1a60e3b1 | [
"MIT"
] | null | null | null | src/cspline.py | aseifahrt/serval | 81d5bfa083b455545d81c381d76977ee1a60e3b1 | [
"MIT"
] | null | null | null | from __future__ import division
__author__ = 'Mathias Zechmeister'
__version__ = '2020-04-03'
import numpy as np
from scipy.linalg import solve_banded, solveh_banded
import os.path
try:
# for debugging
from gplot import *
from pause import pause
from ds9 import ds9
except:
pass
from ctypes import c_in... | 30.511628 | 278 | 0.495318 | 4,562 | 27,552 | 2.935116 | 0.116835 | 0.005377 | 0.002913 | 0.009037 | 0.359671 | 0.307244 | 0.258925 | 0.224869 | 0.20351 | 0.190067 | 0 | 0.069392 | 0.32161 | 27,552 | 902 | 279 | 30.545455 | 0.646996 | 0.146124 | 0 | 0.261421 | 0 | 0 | 0.026831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002538 | 0.022843 | null | null | 0.032995 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d70d5a358ed7a4a6914ac2e61cdefa17328dccbc | 979 | py | Python | src/45-JumpGameII.py | Jiezhi/myleetcode | b346e94c46da2a3033ebc8ff50e621aa179c4f62 | [
"MIT"
] | 1 | 2022-03-03T15:11:48.000Z | 2022-03-03T15:11:48.000Z | src/45-JumpGameII.py | Jiezhi/myleetcode | b346e94c46da2a3033ebc8ff50e621aa179c4f62 | [
"MIT"
] | null | null | null | src/45-JumpGameII.py | Jiezhi/myleetcode | b346e94c46da2a3033ebc8ff50e621aa179c4f62 | [
"MIT"
] | 2 | 2022-01-20T22:49:58.000Z | 2022-01-20T22:53:13.000Z | #!/usr/bin/env python
"""
CREATED AT: 2021/9/27
Des:
https://leetcode.com/problems/jump-game-ii/
GITHUB: https://github.com/Jiezhi/myleetcode
Difficulty: Medium
Tags: DP
See: 55
"""
from typing import List
class Solution:
def jump(self, nums: List[int]) -> int:
"""
106 / 106 test cases passed.... | 19.979592 | 53 | 0.493361 | 140 | 979 | 3.392857 | 0.507143 | 0.021053 | 0.151579 | 0.185263 | 0.149474 | 0.101053 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0.344229 | 979 | 48 | 54 | 20.395833 | 0.665109 | 0.288049 | 0 | 0 | 0 | 0 | 0.01278 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7110ca2b0e65be1681b674b334e86e9fd575b4e | 3,945 | py | Python | core/python/build.py | lf-shaw/kungfu | 22a9ec192f4129e61697fdbdbfe1326b5f2886d4 | [
"Apache-2.0"
] | 2,209 | 2017-11-15T07:51:14.000Z | 2021-01-19T03:16:48.000Z | core/python/build.py | jumpjungle/kungfu | 4a2152b7f2ccabd4650dd97b7f4c1685272b0525 | [
"Apache-2.0"
] | 45 | 2017-11-16T04:38:51.000Z | 2021-01-18T22:20:33.000Z | core/python/build.py | jumpjungle/kungfu | 4a2152b7f2ccabd4650dd97b7f4c1685272b0525 | [
"Apache-2.0"
] | 889 | 2017-11-15T08:04:38.000Z | 2021-01-16T12:41:25.000Z | import os
import sys
import subprocess
import platform
import click
from kungfu.version import get_version
@click.group(invoke_without_command=True)
@click.option('-l', '--log_level', type=click.Choice(['trace', 'debug', 'info', 'warning', 'error', 'critical']),
default='warning', help='logging level')
... | 37.571429 | 120 | 0.631179 | 488 | 3,945 | 4.936475 | 0.262295 | 0.033624 | 0.024907 | 0.031548 | 0.160648 | 0.115816 | 0.102947 | 0.054795 | 0.054795 | 0.054795 | 0 | 0.004414 | 0.195944 | 3,945 | 104 | 121 | 37.932692 | 0.755044 | 0 | 0 | 0.108434 | 0 | 0 | 0.226362 | 0.025602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072289 | false | 0.060241 | 0.072289 | 0 | 0.180723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7111e574021214b25d45c2c2dcb8ec3ba5af2a6 | 6,646 | py | Python | tests/test_argtools_scan.py | chriscannon9001/tablarray | f07530f84a8c86abe996cdb999233ed9bb8edf7e | [
"BSD-3-Clause"
] | null | null | null | tests/test_argtools_scan.py | chriscannon9001/tablarray | f07530f84a8c86abe996cdb999233ed9bb8edf7e | [
"BSD-3-Clause"
] | null | null | null | tests/test_argtools_scan.py | chriscannon9001/tablarray | f07530f84a8c86abe996cdb999233ed9bb8edf7e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Unit tests on kwargs_tools.array_2_args, the most important component
of that lib.
Using kwargs_tools.test_file_2_args for leg-work setting up the problem.
Use a reference args, kwargs set to compare results from
tests/resources/scan_test_case1.csv.
Created on Tue ... | 35.164021 | 102 | 0.578694 | 915 | 6,646 | 4.062295 | 0.239344 | 0.109228 | 0.088781 | 0.112994 | 0.39844 | 0.283293 | 0.255851 | 0.206887 | 0.06672 | 0.06672 | 0 | 0.056025 | 0.269485 | 6,646 | 189 | 103 | 35.164021 | 0.709578 | 0.201174 | 0 | 0.128205 | 0 | 0 | 0.066089 | 0.005588 | 0 | 0 | 0 | 0 | 0.247863 | 1 | 0.205128 | false | 0 | 0.042735 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d71308360d93cc3ccc532707445e3f1175049c52 | 240 | py | Python | 1006.py | idarlenearaujo/URI_Python | c4517f90f5310894347edcf58a28d3e569a89a2b | [
"MIT"
] | null | null | null | 1006.py | idarlenearaujo/URI_Python | c4517f90f5310894347edcf58a28d3e569a89a2b | [
"MIT"
] | null | null | null | 1006.py | idarlenearaujo/URI_Python | c4517f90f5310894347edcf58a28d3e569a89a2b | [
"MIT"
] | null | null | null | # entrada 3 float
A = float(input())
B = float(input())
C = float(input())
# variaveis (pesos)
P1 = 2
P2 = 3
P3 = 5
# calculo da media
MEDIA = ((A * P1) + (B*P2) + (C*P3)) / (P1+P2+P3)
print('MEDIA = {:.1f}'.format(MEDIA))
| 16 | 50 | 0.525 | 38 | 240 | 3.315789 | 0.526316 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0.25 | 240 | 14 | 51 | 17.142857 | 0.622222 | 0.208333 | 0 | 0 | 0 | 0 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7192061dcd5a19707f5234ccd2ba7fc1ec798ca | 1,151 | py | Python | Code/Initialization/CUDA_Initializations/Default/Function_1P.py | jaspertaylor-projects/QuantumLatticeGasAlgorithm | a7fb8da08e0bd41c5b7fda96f2d5cb50a95cb0ca | [
"MIT"
] | 1 | 2020-05-21T19:34:20.000Z | 2020-05-21T19:34:20.000Z | Code/Initialization/CUDA_Initializations/Default/Function_1P.py | jaspertaylor-projects/QuantumLatticeGasAlgorithm | a7fb8da08e0bd41c5b7fda96f2d5cb50a95cb0ca | [
"MIT"
] | null | null | null | Code/Initialization/CUDA_Initializations/Default/Function_1P.py | jaspertaylor-projects/QuantumLatticeGasAlgorithm | a7fb8da08e0bd41c5b7fda96f2d5cb50a95cb0ca | [
"MIT"
] | null | null | null | def get_CUDA(vectorSize = 10, func = "sin(2*pi*X/Lx)", px = "0.", py = "0.", pz = "0.", **kwargs):
return '''__global__ void initialize(dcmplx *QField, int* lattice, int* gpu_params){
int deviceNum = gpu_params[0];
int numGPUs = gpu_params[2];
int xSize = lattice[0]*numGPUs;
int ySize = lattice[2];
int zSize = l... | 37.129032 | 99 | 0.615117 | 176 | 1,151 | 3.965909 | 0.289773 | 0.017192 | 0.030086 | 0.017192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020576 | 0.155517 | 1,151 | 30 | 100 | 38.366667 | 0.697531 | 0 | 0 | 0 | 0 | 0.035714 | 0.841008 | 0.113814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0.035714 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d71a4a116f68973b4ab6ada47ddb6c27b640607a | 2,992 | py | Python | antipetros_discordbot/cogs/admin_cogs/purge_messages_cog.py | Preen1/Antipetros_Discord_Bot | 25143f09faf7abede35dee5672a7402595680e9b | [
"MIT"
] | null | null | null | antipetros_discordbot/cogs/admin_cogs/purge_messages_cog.py | Preen1/Antipetros_Discord_Bot | 25143f09faf7abede35dee5672a7402595680e9b | [
"MIT"
] | null | null | null | antipetros_discordbot/cogs/admin_cogs/purge_messages_cog.py | Preen1/Antipetros_Discord_Bot | 25143f09faf7abede35dee5672a7402595680e9b | [
"MIT"
] | null | null | null |
# region [Imports]
# * Standard Library Imports -->
# * Standard Library Imports -->
import os
from typing import Optional
# * Third Party Imports -->
import discord
from discord.ext import commands
# * Gid Imports -->
import gidlogger as glog
# * Local Imports -->
from antipetros_discordbot.cogs import get_alia... | 28.495238 | 150 | 0.729278 | 378 | 2,992 | 5.505291 | 0.31746 | 0.023546 | 0.057665 | 0.04469 | 0.17876 | 0.17876 | 0.113407 | 0.113407 | 0.113407 | 0.113407 | 0 | 0.003571 | 0.157754 | 2,992 | 104 | 151 | 28.769231 | 0.822222 | 0.137032 | 0 | 0.042553 | 0 | 0 | 0.103125 | 0.021875 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0.12766 | false | 0 | 0.234043 | 0.06383 | 0.510638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d72549d4fdfee3cbb3a541d3826dccf26e36211e | 396 | py | Python | setup.py | allyjweir/django-url-mapper | 65cb2905790fc405688f5bf1f484256bd674f6e7 | [
"MIT"
] | null | null | null | setup.py | allyjweir/django-url-mapper | 65cb2905790fc405688f5bf1f484256bd674f6e7 | [
"MIT"
] | 1 | 2016-09-13T11:44:57.000Z | 2016-09-13T11:44:57.000Z | setup.py | allyjweir/django-url-mapper | 65cb2905790fc405688f5bf1f484256bd674f6e7 | [
"MIT"
] | 1 | 2017-04-23T21:07:49.000Z | 2017-04-23T21:07:49.000Z | from setuptools import setup, find_packages
setup(
name='django-url-mapper',
version='1.0.1',
author='Colin Barnwell',
scripts=[],
description='Use fixed keys in your Django template to refer to dynamic URLs',
long_description=open('README.md').read(),
install_requires=[
"Django >=... | 23.294118 | 82 | 0.661616 | 50 | 396 | 5.12 | 0.8 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015924 | 0.207071 | 396 | 16 | 83 | 24.75 | 0.799363 | 0 | 0 | 0 | 0 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d73003148ba4edba387c2db84b66cdbe704156a4 | 3,304 | py | Python | test/test_cfgenvy.py | jlubken/cfgenvy | 01e8fd485c2ebce8fcf0b3d83c576b827ccfe5c3 | [
"MIT"
] | null | null | null | test/test_cfgenvy.py | jlubken/cfgenvy | 01e8fd485c2ebce8fcf0b3d83c576b827ccfe5c3 | [
"MIT"
] | null | null | null | test/test_cfgenvy.py | jlubken/cfgenvy | 01e8fd485c2ebce8fcf0b3d83c576b827ccfe5c3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test cfgenvy."""
from io import StringIO
from typing import Optional
from pytest import mark
from cfgenvy import Parser, yaml_dumps, yaml_type
class Service(Parser):
"""Service."""
YAML = "!test"
@classmethod
def _yaml_init(cls, loader, node):
"""Yaml init."""
... | 18.988506 | 63 | 0.532082 | 313 | 3,304 | 5.428115 | 0.214058 | 0.064744 | 0.038846 | 0.094173 | 0.230135 | 0.208358 | 0.160094 | 0.096527 | 0.096527 | 0.071807 | 0 | 0.000449 | 0.326271 | 3,304 | 173 | 64 | 19.098266 | 0.762803 | 0.06477 | 0 | 0.28125 | 0 | 0 | 0.113283 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 1 | 0.09375 | false | 0.070313 | 0.03125 | 0 | 0.203125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d73162857b67a21e7c66660a4b28f57d7e4f38a8 | 251 | py | Python | redis_gt/defaults.py | sukobuto/py-recter | 49f9770dd924955bcd80d4843ec419baa9b2b766 | [
"MIT"
] | null | null | null | redis_gt/defaults.py | sukobuto/py-recter | 49f9770dd924955bcd80d4843ec419baa9b2b766 | [
"MIT"
] | 3 | 2020-03-24T16:26:02.000Z | 2021-02-02T21:55:59.000Z | redis_gt/defaults.py | sukobuto/python-redis-gt | 49f9770dd924955bcd80d4843ec419baa9b2b766 | [
"MIT"
] | null | null | null | import redis
class Defaults:
redis = None
redis_url = 'redis://127.0.0.1:6379'
@classmethod
def get_redis(cls):
if cls.redis is not None:
return cls.redis
return redis.StrictRedis.from_url(cls.redis_url)
| 19.307692 | 56 | 0.629482 | 36 | 251 | 4.277778 | 0.555556 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0.2749 | 251 | 12 | 57 | 20.916667 | 0.791209 | 0 | 0 | 0 | 0 | 0 | 0.087649 | 0.087649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d734919a06cc42b7a4ec7a0463a2babe42bb7a36 | 1,611 | py | Python | pepper_music_player/metadata/formatting_test.py | dseomn/pepper-music-player | 641b23a8577793581c1b912a9c115857e5c6fe30 | [
"Apache-2.0"
] | 3 | 2020-01-30T03:15:13.000Z | 2021-10-30T13:10:38.000Z | pepper_music_player/metadata/formatting_test.py | dseomn/pepper-music-player | 641b23a8577793581c1b912a9c115857e5c6fe30 | [
"Apache-2.0"
] | 16 | 2019-12-31T18:08:40.000Z | 2020-10-30T01:20:31.000Z | pepper_music_player/metadata/formatting_test.py | dseomn/pepper-music-player | 641b23a8577793581c1b912a9c115857e5c6fe30 | [
"Apache-2.0"
] | 1 | 2020-02-17T21:42:46.000Z | 2020-02-17T21:42:46.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.22 | 79 | 0.66977 | 200 | 1,611 | 5.33 | 0.485 | 0.056285 | 0.089118 | 0.123827 | 0.293621 | 0.159475 | 0.159475 | 0.069418 | 0 | 0 | 0 | 0.021104 | 0.235258 | 1,611 | 49 | 80 | 32.877551 | 0.834416 | 0.372439 | 0 | 0.125 | 0 | 0 | 0.031219 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d739737727d169049c9be8fd90c2af9858917c61 | 642 | py | Python | day04/myapp/ext.py | zhouqi007/flask1112 | 0300ec86102ca5bda5c716f66a844b7f9b805069 | [
"Apache-2.0"
] | null | null | null | day04/myapp/ext.py | zhouqi007/flask1112 | 0300ec86102ca5bda5c716f66a844b7f9b805069 | [
"Apache-2.0"
] | null | null | null | day04/myapp/ext.py | zhouqi007/flask1112 | 0300ec86102ca5bda5c716f66a844b7f9b805069 | [
"Apache-2.0"
] | null | null | null | from flask_migrate import Migrate
from flask_session import Session
from flask_sqlalchemy import SQLAlchemy
from flask_bootstraps import Bootstrap
from flask_debugtoolbar import DebugToolbarExtension
from flask_caching import Cache
from myapp.settings import CACHE
db = SQLAlchemy()
bootstrap = Bootstrap()
... | 20.709677 | 53 | 0.713396 | 81 | 642 | 5.506173 | 0.320988 | 0.121076 | 0.112108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21028 | 642 | 30 | 54 | 21.4 | 0.879684 | 0.015576 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d73d401265941ac615cf7f717681b062a404a30e | 4,015 | py | Python | python_little_tools/oracle_tool.py | mndarren/Python-Little-Tools | fa972e5c771da3e034ad3aa36137579906ee1bd4 | [
"Apache-2.0"
] | null | null | null | python_little_tools/oracle_tool.py | mndarren/Python-Little-Tools | fa972e5c771da3e034ad3aa36137579906ee1bd4 | [
"Apache-2.0"
] | null | null | null | python_little_tools/oracle_tool.py | mndarren/Python-Little-Tools | fa972e5c771da3e034ad3aa36137579906ee1bd4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
.. current_module:: oracle_tool.py
.. created_by:: Darren Xie
.. created_on:: 11/23/2020
Collect Oracle DB tools
"""
import os
from subprocess import Popen, PIPE
from pathlib import Path
from typing import Dict
import logging
import cx_Oracle
ENTRY_NAME1 = 'MyEntry1'... | 33.739496 | 100 | 0.587796 | 511 | 4,015 | 4.475538 | 0.362035 | 0.027984 | 0.019676 | 0.024923 | 0.331001 | 0.312637 | 0.312637 | 0.312637 | 0.312637 | 0.279405 | 0 | 0.00822 | 0.303113 | 4,015 | 118 | 101 | 34.025424 | 0.809149 | 0.183811 | 0 | 0.289474 | 0 | 0 | 0.131679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.078947 | 0.078947 | 0 | 0.171053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d73fdeb735ad3010a448289e0bf811dba1636997 | 563 | py | Python | adlibre_tms/apps/saasu_client/settings.py | adlibre/Adlibre-TMS | 4c8de1e4448203fb267d38ec0f4ec9e64d58a21d | [
"BSD-3-Clause"
] | 26 | 2015-01-06T11:09:18.000Z | 2022-03-16T06:20:53.000Z | adlibre_tms/apps/saasu_client/settings.py | adlibre/Adlibre-TMS | 4c8de1e4448203fb267d38ec0f4ec9e64d58a21d | [
"BSD-3-Clause"
] | 4 | 2015-02-26T11:00:35.000Z | 2020-06-05T18:02:02.000Z | adlibre_tms/apps/saasu_client/settings.py | adlibre/Adlibre-TMS | 4c8de1e4448203fb267d38ec0f4ec9e64d58a21d | [
"BSD-3-Clause"
] | 16 | 2015-02-08T05:24:38.000Z | 2021-06-13T14:45:30.000Z | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
SAASU_ERRORS = {
'no_key': 'Please set your SAASU_WSACCESS_KEY setting.',
'no_uid': 'Please set your SAASU_FILE_UID setting.',
'disabled': 'Disabled in demo mode'
}
SAASU_WSACCESS_KEY = getattr(settings, 'SAASU_WSACCE... | 33.117647 | 66 | 0.774423 | 78 | 563 | 5.294872 | 0.358974 | 0.125908 | 0.154964 | 0.239709 | 0.307506 | 0.213075 | 0.213075 | 0 | 0 | 0 | 0 | 0 | 0.131439 | 563 | 16 | 67 | 35.1875 | 0.844581 | 0 | 0 | 0 | 0 | 0 | 0.296625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d742cde0041a510d9a6e61e11d5a0cf11a9471b9 | 13,328 | py | Python | databrowse/plugins/db_sdt_viewer/data_sets.py | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 3 | 2016-09-20T07:04:09.000Z | 2018-07-17T17:31:21.000Z | databrowse/plugins/db_sdt_viewer/data_sets.py | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 19 | 2016-10-25T07:05:28.000Z | 2018-08-07T23:18:16.000Z | databrowse/plugins/db_sdt_viewer/data_sets.py | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 2 | 2016-10-28T00:12:42.000Z | 2016-10-28T00:18:03.000Z | import os
import subprocess
from multiprocessing import Process
from packaging import version
import matplotlib
from matplotlib import animation
BACKEND = 'Agg'
if matplotlib.get_backend().lower() != BACKEND.lower():
matplotlib.use(BACKEND)
import matplotlib.pyplot as plt
def save_animation(filepath, shp, ds, col... | 41.65 | 140 | 0.516206 | 1,544 | 13,328 | 4.397668 | 0.156088 | 0.076583 | 0.028719 | 0.044183 | 0.61944 | 0.58866 | 0.575258 | 0.550074 | 0.492342 | 0.486009 | 0 | 0.016303 | 0.33726 | 13,328 | 319 | 141 | 41.780564 | 0.752406 | 0.017182 | 0 | 0.487365 | 0 | 0 | 0.117445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039711 | false | 0.072202 | 0.025271 | 0 | 0.075812 | 0.028881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d747ff6c239b8d2011bccd338866ff03fbb5f21e | 1,177 | py | Python | backend/apps/ecommerce/resolvers.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 3 | 2021-11-18T09:29:14.000Z | 2022-01-13T20:12:11.000Z | backend/apps/ecommerce/resolvers.py | rubberdok/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 277 | 2022-01-17T18:16:44.000Z | 2022-03-31T19:44:04.000Z | backend/apps/ecommerce/resolvers.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
from decorators import staff_member_required, login_required
from .models import Order, Product
if TYPE_CHECKING:
from graphene import ResolveInfo
class EcommerceResolvers:
@login_required
def resolve_product(self, info: "ResolveInfo", product_id: int):
try:
... | 30.973684 | 83 | 0.700085 | 141 | 1,177 | 5.64539 | 0.333333 | 0.069095 | 0.113065 | 0.086683 | 0.143216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215803 | 1,177 | 37 | 84 | 31.810811 | 0.862405 | 0 | 0 | 0.241379 | 0 | 0 | 0.049278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.137931 | 0.068966 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d7483701cd0ba9bd234a19d14d414a4b89debcdd | 2,702 | py | Python | repl/repl.py | JesterOrNot/MathLang | 7edd069884e3bfa03c8e9ebc96a30af752c60ff6 | [
"MIT"
] | 2 | 2020-07-08T19:07:23.000Z | 2021-09-04T14:05:26.000Z | repl/repl.py | JesterOrNot/MathLang | 7edd069884e3bfa03c8e9ebc96a30af752c60ff6 | [
"MIT"
] | 3 | 2019-11-27T03:49:38.000Z | 2020-05-03T19:59:57.000Z | repl/repl.py | JesterOrNot/MathLang | 7edd069884e3bfa03c8e9ebc96a30af752c60ff6 | [
"MIT"
] | 2 | 2020-02-06T17:00:02.000Z | 2021-12-26T03:12:13.000Z | import sys
import tty
import re
import os
def syntax_highlight(input, keywords: dict):
i = 0
splitted = input.split(" ")
for f in splitted:
for keyword in keywords.keys():
if re.match(keyword, f):
splitted[i] = keywords.get(
keyword) + re.findall(key... | 31.788235 | 71 | 0.473353 | 337 | 2,702 | 3.771513 | 0.267062 | 0.155783 | 0.198269 | 0.141621 | 0.379229 | 0.354052 | 0.354052 | 0.354052 | 0.329662 | 0.329662 | 0 | 0.15683 | 0.341599 | 2,702 | 84 | 72 | 32.166667 | 0.557617 | 0 | 0 | 0.282051 | 0 | 0 | 0.212065 | 0.061806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.051282 | 0 | 0.115385 | 0.051282 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d74bc0834318547ef9d562dafd540dddc8824982 | 836 | py | Python | examples/ent-rsvp/backend/src/schema/versions/40753f0af94b_2021224202439_add_column_description_to_table_event_.py | lazytype/ent | d9729f3bb5c2410021e58dfdac0ef03efb439edb | [
"MIT"
] | 35 | 2021-05-28T00:16:56.000Z | 2022-03-14T10:02:09.000Z | examples/ent-rsvp/backend/src/schema/versions/40753f0af94b_2021224202439_add_column_description_to_table_event_.py | lazytype/ent | d9729f3bb5c2410021e58dfdac0ef03efb439edb | [
"MIT"
] | 187 | 2021-05-26T19:23:59.000Z | 2022-03-30T17:53:49.000Z | examples/ent-rsvp/backend/src/schema/versions/40753f0af94b_2021224202439_add_column_description_to_table_event_.py | lazytype/ent | d9729f3bb5c2410021e58dfdac0ef03efb439edb | [
"MIT"
] | 6 | 2021-06-11T23:09:22.000Z | 2022-02-01T23:45:35.000Z | # Code generated by github.com/lolopinto/ent/ent, DO NOT edit.
"""add column description to table event_activities
Revision ID: 40753f0af94b
Revises: 5f5b00396248
Create Date: 2021-02-24 20:24:39.321183+00:00
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision i... | 25.333333 | 65 | 0.715311 | 105 | 836 | 5.619048 | 0.571429 | 0.055932 | 0.071186 | 0.077966 | 0.149153 | 0.149153 | 0.149153 | 0.149153 | 0 | 0 | 0 | 0.086207 | 0.167464 | 836 | 32 | 66 | 26.125 | 0.761494 | 0.47488 | 0 | 0 | 1 | 0 | 0.194514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d74c6337e8d6dd17c4538b17332fa08627d26120 | 293 | py | Python | tests/start.py | zaanposni/vvs | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 13 | 2019-12-02T12:47:05.000Z | 2020-01-29T09:56:38.000Z | tests/start.py | zaanposni/vvspy | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 16 | 2019-12-01T19:20:06.000Z | 2019-12-21T11:50:00.000Z | tests/start.py | FI18-Trainees/vvs-py | c69503c9fd12dcb87f8d98e422d38e3bc12a10fe | [
"MIT"
] | 2 | 2021-01-30T18:58:33.000Z | 2021-08-30T07:07:22.000Z | import unittest
from unittests import TestParser as test_a
# TODO: import new unittests in alphabetical order
tests = [test_a]
if __name__ == '__main__':
print(f"Tests: {[x.__name__ for x in tests]}")
print("================================================\n")
unittest.main()
| 22.538462 | 63 | 0.580205 | 35 | 293 | 4.457143 | 0.628571 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16041 | 293 | 12 | 64 | 24.416667 | 0.634146 | 0.163823 | 0 | 0 | 0 | 0 | 0.386831 | 0.205761 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d74ea0bbae18400d4ef9a8159043bed3ea6f0581 | 11,707 | py | Python | scripts/ide/ocaccel_utils.py | OpenCAPI/oc-accel | dc42c6b5a2e96369d8f731b6d8cb8718f2366b83 | [
"Apache-2.0"
] | 49 | 2019-10-31T08:14:29.000Z | 2022-02-15T06:07:07.000Z | scripts/ide/ocaccel_utils.py | OpenCAPI/oc-accel | dc42c6b5a2e96369d8f731b6d8cb8718f2366b83 | [
"Apache-2.0"
] | 18 | 2019-11-18T21:14:13.000Z | 2021-10-06T10:04:02.000Z | scripts/ide/ocaccel_utils.py | OpenCAPI/oc-accel | dc42c6b5a2e96369d8f731b6d8cb8718f2366b83 | [
"Apache-2.0"
] | 54 | 2019-10-30T21:59:54.000Z | 2021-04-23T16:46:06.000Z | #!/usr/bin/env python
#
# Copyright 2019 International Business Machines
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 31.8125 | 125 | 0.556675 | 1,480 | 11,707 | 4.293243 | 0.187162 | 0.016525 | 0.015738 | 0.015423 | 0.425559 | 0.375039 | 0.34797 | 0.322631 | 0.314133 | 0.314133 | 0 | 0.012296 | 0.32613 | 11,707 | 367 | 126 | 31.899183 | 0.79313 | 0.057231 | 0 | 0.438127 | 0 | 0 | 0.084687 | 0.003812 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013378 | 0.036789 | null | null | 0.050167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d74ffc50c590c6295399583709869844bfadc078 | 975 | py | Python | data/test/python/d74ffc50c590c6295399583709869844bfadc078urls.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/test/python/d74ffc50c590c6295399583709869844bfadc078urls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/test/python/d74ffc50c590c6295399583709869844bfadc078urls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from django_messages.api import ReceivedMessageResource, SentMessageResource, TrashMessageResource
from friendship.api import FollowerResource, FollowingResource
from tastypie.api import Api
from plan.api import PlanResource
from traveller.api import TravellerResource
from notifications.api import AllNotificationResour... | 32.5 | 98 | 0.815385 | 104 | 975 | 7.471154 | 0.317308 | 0.07722 | 0.16731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014689 | 0.092308 | 975 | 29 | 99 | 33.62069 | 0.863277 | 0 | 0 | 0 | 0 | 0 | 0.012308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.347826 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d7544eeafc869bbea4a5ee915db1e7eac5b1e472 | 625 | py | Python | EcoApp/EcoApp/cor/migrations/0017_auto_20200524_0318.py | palonsovazquez/EcoAppApi | a47c593c782f881858e2519d4a52c09a0a8b2cef | [
"Apache-2.0"
] | null | null | null | EcoApp/EcoApp/cor/migrations/0017_auto_20200524_0318.py | palonsovazquez/EcoAppApi | a47c593c782f881858e2519d4a52c09a0a8b2cef | [
"Apache-2.0"
] | null | null | null | EcoApp/EcoApp/cor/migrations/0017_auto_20200524_0318.py | palonsovazquez/EcoAppApi | a47c593c782f881858e2519d4a52c09a0a8b2cef | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-24 01:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('drf_firebase_auth', '0001_initial'),
('cor', '0016_auto_20200524_0303'),
]
operations = [
migration... | 26.041667 | 140 | 0.632 | 68 | 625 | 5.647059 | 0.691176 | 0.0625 | 0.072917 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.2496 | 625 | 23 | 141 | 27.173913 | 0.744136 | 0.072 | 0 | 0.117647 | 1 | 0 | 0.197232 | 0.105536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d75b47a89f257e3cbd90783d4918c8f83fefc931 | 3,341 | py | Python | test/test_lru.py | grounzeroj/AsBuiltReport | 8f5d7b12e605beccd8d5f3b8c13bb8a822341584 | [
"MIT"
] | null | null | null | test/test_lru.py | grounzeroj/AsBuiltReport | 8f5d7b12e605beccd8d5f3b8c13bb8a822341584 | [
"MIT"
] | null | null | null | test/test_lru.py | grounzeroj/AsBuiltReport | 8f5d7b12e605beccd8d5f3b8c13bb8a822341584 | [
"MIT"
] | null | null | null | from mako.util import LRUCache
import string, unittest, time, random
import thread
class item:
def __init__(self, id):
self.id = id
def __str__(self):
return "item id %d" % self.id
class LRUTest(unittest.TestCase):
def testlru(self):
l = LRUCache(10, threshold=.... | 30.651376 | 107 | 0.503741 | 430 | 3,341 | 3.77907 | 0.330233 | 0.034462 | 0.025846 | 0.034462 | 0.182769 | 0.098462 | 0.025846 | 0 | 0 | 0 | 0 | 0.059086 | 0.397186 | 3,341 | 108 | 108 | 30.935185 | 0.747766 | 0.129602 | 0 | 0.082192 | 0 | 0 | 0.016229 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 0 | null | null | 0 | 0.041096 | null | null | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d76108a922128b39561c26586b5b30893b252b25 | 3,133 | py | Python | tests/components/gogogate2/test_init.py | Maelstrom96/core | e10c3e22e0048405684817d4bb2590561036f419 | [
"Apache-2.0"
] | 4 | 2021-02-09T19:17:48.000Z | 2021-11-05T17:23:33.000Z | tests/components/gogogate2/test_init.py | Maelstrom96/core | e10c3e22e0048405684817d4bb2590561036f419 | [
"Apache-2.0"
] | 54 | 2020-07-17T22:04:51.000Z | 2022-03-31T06:01:49.000Z | tests/components/gogogate2/test_init.py | helldog136/core | 0426b211f62a618f7277b9f178e832309699fbc5 | [
"Apache-2.0"
] | 10 | 2021-04-01T18:53:13.000Z | 2021-12-26T22:19:50.000Z | """Tests for the GogoGate2 component."""
from unittest.mock import MagicMock, patch
from gogogate2_api import GogoGate2Api
import pytest
from homeassistant.components.gogogate2 import DEVICE_TYPE_GOGOGATE2, async_setup_entry
from homeassistant.components.gogogate2.common import DeviceDataUpdateCoordinator
from homeas... | 32.298969 | 87 | 0.722311 | 359 | 3,133 | 6.030641 | 0.228412 | 0.055889 | 0.088684 | 0.029561 | 0.490531 | 0.450808 | 0.439723 | 0.439723 | 0.439723 | 0.395381 | 0 | 0.015817 | 0.192786 | 3,133 | 96 | 88 | 32.635417 | 0.840253 | 0.010852 | 0 | 0.466667 | 0 | 0 | 0.091094 | 0.057907 | 0 | 0 | 0 | 0 | 0.053333 | 1 | 0 | false | 0.066667 | 0.146667 | 0 | 0.146667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7732e4ee14514a93c70fbc695da766ddd4108e5 | 1,255 | py | Python | TA-linode/bin/ta_linode/aob_py3/splunktalib/conf_manager/knowledge_objects.py | jriddle-linode/splunk-addon-linode | 5954acd12ef88ab991365ef51072db68aed46aa1 | [
"Apache-2.0"
] | 11 | 2020-01-23T11:32:26.000Z | 2021-09-23T09:24:02.000Z | TA-linode/bin/ta_linode/aob_py3/splunktalib/conf_manager/knowledge_objects.py | jriddle-linode/splunk-addon-linode | 5954acd12ef88ab991365ef51072db68aed46aa1 | [
"Apache-2.0"
] | 26 | 2019-07-15T02:38:22.000Z | 2021-12-01T04:14:17.000Z | TA-linode/bin/ta_linode/aob_py3/splunktalib/conf_manager/knowledge_objects.py | jriddle-linode/splunk-addon-linode | 5954acd12ef88ab991365ef51072db68aed46aa1 | [
"Apache-2.0"
] | 6 | 2019-07-14T17:44:06.000Z | 2020-11-17T17:33:23.000Z | # SPDX-FileCopyrightText: 2020 Splunk Inc.
#
# SPDX-License-Identifier: Apache-2.0
from builtins import object
import splunktalib.common.xml_dom_parser as xdp
import splunktalib.conf_manager.request as req
class KnowledgeObjectManager(object):
def __init__(self, splunkd_uri, session_key):
self.splunkd_ur... | 31.375 | 83 | 0.662151 | 159 | 1,255 | 5.044025 | 0.402516 | 0.062344 | 0.069825 | 0.042394 | 0.331671 | 0.244389 | 0.244389 | 0.167082 | 0.084788 | 0 | 0 | 0.010471 | 0.239044 | 1,255 | 39 | 84 | 32.179487 | 0.829319 | 0.20239 | 0 | 0 | 0 | 0 | 0.134615 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d776fe1a35c88836b2eac8248eb0f951bf173516 | 557 | py | Python | Deck.py | jariwezerhu/Blackjack-Assist-Tool | d1e56e911b845d9fb68c391c97aca464a357a9fb | [
"MIT"
] | null | null | null | Deck.py | jariwezerhu/Blackjack-Assist-Tool | d1e56e911b845d9fb68c391c97aca464a357a9fb | [
"MIT"
] | null | null | null | Deck.py | jariwezerhu/Blackjack-Assist-Tool | d1e56e911b845d9fb68c391c97aca464a357a9fb | [
"MIT"
] | null | null | null | # 1 = Ace, 10 = Jack, 10 = Queen, 10 = King
deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
deck = deck * 4
# TODO: Add cut-card functionality
def initiate_deck():
"""Asks the user how many decks are in play and generates the shoe"""
while True:
try:
deck_count = int(input("How many de... | 29.315789 | 73 | 0.560144 | 85 | 557 | 3.623529 | 0.647059 | 0.038961 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080429 | 0.330341 | 557 | 18 | 74 | 30.944444 | 0.745308 | 0.249551 | 0 | 0 | 0 | 0 | 0.16545 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7785467b96053bb1d15ec946cb93bb794323428 | 3,027 | py | Python | settings.py | ianiancilla/kanacode | 24a6d15cf8cdc51c8d860aabae2dbf39805b8568 | [
"MIT"
] | null | null | null | settings.py | ianiancilla/kanacode | 24a6d15cf8cdc51c8d860aabae2dbf39805b8568 | [
"MIT"
] | null | null | null | settings.py | ianiancilla/kanacode | 24a6d15cf8cdc51c8d860aabae2dbf39805b8568 | [
"MIT"
] | null | null | null | import os
import pygame
import pygame.freetype
class Settings(object):
"""class to manage app settings"""
def __init__(self):
"""initialise app settings"""
self.game_title = "Kanacode"
# **** DISPLAY SETTINGS ****
# window settings
self.full_screen = False
... | 36.035714 | 129 | 0.650149 | 411 | 3,027 | 4.50365 | 0.304136 | 0.10967 | 0.06537 | 0.06483 | 0.298757 | 0.133441 | 0.078876 | 0 | 0 | 0 | 0 | 0.045474 | 0.244466 | 3,027 | 83 | 130 | 36.46988 | 0.763883 | 0.207136 | 0 | 0 | 0 | 0 | 0.054054 | 0.009291 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.021277 | false | 0 | 0.06383 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d77925883b840f283f17819e52bdd283c9476c7f | 249 | py | Python | run.py | kaguna/Flask-API | 96024da2ef088ea7ebb963556c3f99afeaf1f251 | [
"MIT"
] | 1 | 2019-01-15T22:13:03.000Z | 2019-01-15T22:13:03.000Z | run.py | kaguna/Python-Flask-Postgres-CP3 | 96024da2ef088ea7ebb963556c3f99afeaf1f251 | [
"MIT"
] | 6 | 2017-12-15T08:06:44.000Z | 2018-02-08T16:41:42.000Z | run.py | kaguna/Python-Flask-Postgres-CP3 | 96024da2ef088ea7ebb963556c3f99afeaf1f251 | [
"MIT"
] | 2 | 2018-03-23T11:53:36.000Z | 2018-07-21T21:13:22.000Z | # runs the API
from flask import redirect
from app import create_app
# from flask_cors import CORS
app = create_app("development")
# CORS(app)
@app.route("/")
def home():
return redirect("/apidocs")
if __name__ == '__main__':
app.run()
| 14.647059 | 31 | 0.686747 | 35 | 249 | 4.571429 | 0.571429 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 249 | 16 | 32 | 15.5625 | 0.784314 | 0.200803 | 0 | 0 | 0 | 0 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d779d247b7445495a59d7b60157d0b4402c0516f | 1,469 | py | Python | functional/Decorator.py | sammffl/pythonPractice | aab8e8e3524a53c8f82838af2a2bd96d6ea7a3a5 | [
"MIT"
] | 2 | 2016-06-01T05:51:46.000Z | 2017-06-11T12:21:26.000Z | functional/Decorator.py | sammffl/pythonPractice | aab8e8e3524a53c8f82838af2a2bd96d6ea7a3a5 | [
"MIT"
] | null | null | null | functional/Decorator.py | sammffl/pythonPractice | aab8e8e3524a53c8f82838af2a2bd96d6ea7a3a5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import functools
# 装饰器
def log(func):
def wrapper(*args, **kw):
try:
print 'begin %s():' % func.__name__
return func(*args, **kw)
except Exception,e:
raise e
finally:
print 'end'
return wrapper
# 相当于 now = log(... | 15.967391 | 56 | 0.488768 | 165 | 1,469 | 4.151515 | 0.260606 | 0.070073 | 0.081752 | 0.093431 | 0.414599 | 0.385401 | 0.318248 | 0.318248 | 0.318248 | 0.318248 | 0 | 0.022044 | 0.320626 | 1,469 | 91 | 57 | 16.142857 | 0.664329 | 0.104152 | 0 | 0.396226 | 0 | 0 | 0.0658 | 0.017598 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018868 | null | null | 0.226415 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.