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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0261e6f26f7d715356931be93b7ec4df1cef403b | 52 | py | Python | cmd/templates/app/dao/__init__.py | ysyisyourbrother/brandnew-flask | 5b83728d1312156f4e6c596f3ffc11f5def7dfae | [
"Apache-2.0"
] | 3 | 2021-07-28T18:58:58.000Z | 2021-07-29T03:51:54.000Z | cmd/templates/app/dao/__init__.py | ysyisyourbrother/brandnew-flask | 5b83728d1312156f4e6c596f3ffc11f5def7dfae | [
"Apache-2.0"
] | null | null | null | cmd/templates/app/dao/__init__.py | ysyisyourbrother/brandnew-flask | 5b83728d1312156f4e6c596f3ffc11f5def7dfae | [
"Apache-2.0"
] | null | null | null | # _*_ coding: utf-8 _*_
__author__ = "{{.Author}}"
| 13 | 26 | 0.576923 | 5 | 52 | 4.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.173077 | 52 | 3 | 27 | 17.333333 | 0.488372 | 0.403846 | 0 | 0 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
02748b9cfc722cd5f139b5302316dd6347a678fa | 270 | py | Python | Mundo 2/ex_064.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 2/ex_064.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 2/ex_064.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | """
Crie um programa que leia vários números inteiros pelo teclado.
O programa só vai parar quando o usuário digitar o valor 999,
que é a condição de parada. No final, mostre quantos números
foram digitados e qual foi a soma entre eles (desconsiderando o flag).
"""
| 38.571429 | 71 | 0.762963 | 45 | 270 | 4.577778 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.188889 | 270 | 6 | 72 | 45 | 0.926941 | 0.951852 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
027c4564356681880c6f4e29a94775bfdd82ec09 | 821 | py | Python | src/controller/msgReactionDeleteRouter.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 126 | 2022-01-15T02:29:07.000Z | 2022-03-30T09:57:40.000Z | src/controller/msgReactionDeleteRouter.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 18 | 2022-01-11T22:24:35.000Z | 2022-03-16T00:13:01.000Z | src/controller/msgReactionDeleteRouter.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 25 | 2022-01-22T15:06:27.000Z | 2022-03-01T04:34:19.000Z |
from discord import Client, Reaction, User, TextChannel, RawReactionActionEvent, PartialEmoji
from typing import Dict
from pymysql import Connection
from src.Storage import Storage
from src.utils.casino.Casino import Casino
from src.utils.casino.table.Table import Table
from src.utils.casino.table.BlackJackTable impo... | 41.05 | 147 | 0.767357 | 100 | 821 | 6.31 | 0.41 | 0.055468 | 0.057052 | 0.085578 | 0.0729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153471 | 821 | 19 | 148 | 43.210526 | 0.906475 | 0.009744 | 0 | 0 | 0 | 0 | 0.001235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
027e1321a2653aa765ea5c41d8c5212d1d240714 | 200 | py | Python | db_dump/etender2mongoscripts/myconfig.py | EBRD-MoldovaOpenContracting/Moldova-Data-Load | 3938f99f7575c2107898056650986739ecb32b60 | [
"Apache-2.0"
] | null | null | null | db_dump/etender2mongoscripts/myconfig.py | EBRD-MoldovaOpenContracting/Moldova-Data-Load | 3938f99f7575c2107898056650986739ecb32b60 | [
"Apache-2.0"
] | null | null | null | db_dump/etender2mongoscripts/myconfig.py | EBRD-MoldovaOpenContracting/Moldova-Data-Load | 3938f99f7575c2107898056650986739ecb32b60 | [
"Apache-2.0"
] | 1 | 2020-06-18T12:26:52.000Z | 2020-06-18T12:26:52.000Z | import pymongo
import os
jsonfolder = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../data")
def getMongoDb():
client = pymongo.MongoClient('localhost', 27017)
return client.md
| 22.222222 | 80 | 0.72 | 26 | 200 | 5.384615 | 0.692308 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0.13 | 200 | 8 | 81 | 25 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
65f088f081576358086916557ab7ac07252b0391 | 244 | py | Python | apps/3d/advection/smooth_example/generate_iniparams.py | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/3d/advection/smooth_example/generate_iniparams.py | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/3d/advection/smooth_example/generate_iniparams.py | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | from finess.params import append_pac_from_module, write_to_header_cpp
import finess.params.dim3
pac = finess.params.dim3.starter_pac()
parameter_list, accessor_list, check_list = pac
if __name__ == "__main__":
write_to_header_cpp(*pac)
| 22.181818 | 69 | 0.79918 | 37 | 244 | 4.702703 | 0.540541 | 0.206897 | 0.149425 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.114754 | 244 | 10 | 70 | 24.4 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0.032922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
65f912996725bc342c32ca1d0da9863f60284f60 | 139 | py | Python | Django/django_project_lsc_03/A_session/urls.py | MarioKarting/Django_basic | 437556628f72ccf8fdfd63c46191dcee39602b00 | [
"MIT"
] | 2 | 2019-05-16T09:32:49.000Z | 2019-05-16T09:32:52.000Z | Django/django_project_lsc_03/A_session/urls.py | MarioKarting/Django_basic | 437556628f72ccf8fdfd63c46191dcee39602b00 | [
"MIT"
] | null | null | null | Django/django_project_lsc_03/A_session/urls.py | MarioKarting/Django_basic | 437556628f72ccf8fdfd63c46191dcee39602b00 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^',views.session),
]
| 10.692308 | 32 | 0.697842 | 19 | 139 | 5.105263 | 0.631579 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194245 | 139 | 12 | 33 | 11.583333 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a0c713841a4ea9e9bb1782e208f1a9564fe46a2 | 190 | py | Python | polaris/polaris/sep12/urls.py | paysharesdev/django-polaris | cbbebed5623a92074071f59f4bca65e2b1c6571b | [
"Apache-2.0"
] | null | null | null | polaris/polaris/sep12/urls.py | paysharesdev/django-polaris | cbbebed5623a92074071f59f4bca65e2b1c6571b | [
"Apache-2.0"
] | null | null | null | polaris/polaris/sep12/urls.py | paysharesdev/django-polaris | cbbebed5623a92074071f59f4bca65e2b1c6571b | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from polaris.sep12 import customer
urlpatterns = [
path("customer/<account>", customer.delete),
path("customer", customer.CustomerAPIView.as_view()),
]
| 23.75 | 57 | 0.736842 | 22 | 190 | 6.318182 | 0.636364 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.131579 | 190 | 7 | 58 | 27.142857 | 0.830303 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a30f45c602b618948dc9a3a832963973b781182 | 4,767 | py | Python | disent/dataset/data/_raw.py | nmichlo/msc-research | 625e57eca77bbfbc4728ccebdb0733e1613bd258 | [
"MIT"
] | 1 | 2022-03-31T21:20:30.000Z | 2022-03-31T21:20:30.000Z | disent/dataset/data/_raw.py | nmichlo/msc-research | 625e57eca77bbfbc4728ccebdb0733e1613bd258 | [
"MIT"
] | null | null | null | disent/dataset/data/_raw.py | nmichlo/msc-research | 625e57eca77bbfbc4728ccebdb0733e1613bd258 | [
"MIT"
] | null | null | null | # ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
# MIT License
#
# Copyright (c) 2021 Nathan Juraj Michlo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Softwar... | 35.842105 | 84 | 0.570799 | 536 | 4,767 | 4.843284 | 0.369403 | 0.03698 | 0.03698 | 0.020801 | 0.190293 | 0.174499 | 0.142527 | 0.142527 | 0.128659 | 0.068567 | 0 | 0.012319 | 0.23369 | 4,767 | 132 | 85 | 36.113636 | 0.69833 | 0.524019 | 0 | 0.310345 | 0 | 0 | 0.0114 | 0 | 0 | 0 | 0 | 0.007576 | 0.017241 | 1 | 0.275862 | false | 0 | 0.051724 | 0.12069 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a37c32cffcde1b2fe8cba1ebeb3fe2fd057d4e7 | 1,603 | py | Python | pyogp/lib/client/tests/test.py | grobertson/PyOGP.lib.Client | 681492d95b9a901a79071b70c77bfdd55cdb02db | [
"Apache-2.0"
] | null | null | null | pyogp/lib/client/tests/test.py | grobertson/PyOGP.lib.Client | 681492d95b9a901a79071b70c77bfdd55cdb02db | [
"Apache-2.0"
] | null | null | null | pyogp/lib/client/tests/test.py | grobertson/PyOGP.lib.Client | 681492d95b9a901a79071b70c77bfdd55cdb02db | [
"Apache-2.0"
] | null | null | null |
"""
Contributors can be viewed at:
http://svn.secondlife.com/svn/linden/projects/2008/pyogp/lib/base/trunk/CONTRIBUTORS.txt
$LicenseInfo:firstyear=2008&license=apachev2$
Copyright 2009, Linden Research, Inc.
Licensed under the Apache License, Version 2.0.
You may obtain a copy of the License at:
http://www.apa... | 23.925373 | 128 | 0.694947 | 243 | 1,603 | 4.452675 | 0.333333 | 0.149723 | 0.228281 | 0.263401 | 0.439002 | 0.439002 | 0.439002 | 0.439002 | 0.439002 | 0.439002 | 0 | 0.016345 | 0.160324 | 1,603 | 66 | 129 | 24.287879 | 0.787519 | 0 | 0 | 0.5 | 0 | 0.026316 | 0.164049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5a4653d951a9863b2f6834cd95365d5ed328a6e9 | 913 | py | Python | RestAPIS/migrations/0002_auto_20200618_0221.py | michaelzap94/lasantabiblia-platform-django | e33aa769737a2f2bcd61bfd594e85f4cdcb4751f | [
"MIT"
] | null | null | null | RestAPIS/migrations/0002_auto_20200618_0221.py | michaelzap94/lasantabiblia-platform-django | e33aa769737a2f2bcd61bfd594e85f4cdcb4751f | [
"MIT"
] | 8 | 2021-03-19T11:25:38.000Z | 2022-03-12T00:49:05.000Z | RestAPIS/migrations/0002_auto_20200618_0221.py | michaelzap94/lasantabiblia-platform-django | e33aa769737a2f2bcd61bfd594e85f4cdcb4751f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-18 01:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('RestAPIS', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='label',
name='permanent',
... | 26.852941 | 72 | 0.56736 | 88 | 913 | 5.795455 | 0.465909 | 0.156863 | 0.196078 | 0.227451 | 0.484314 | 0.484314 | 0.484314 | 0.294118 | 0.294118 | 0.294118 | 0 | 0.035144 | 0.314348 | 913 | 33 | 73 | 27.666667 | 0.779553 | 0.049288 | 0 | 0.444444 | 1 | 0 | 0.108545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5a47fa867e1005c07dc01748f3f0039353b65e9a | 115 | py | Python | web_scraping/ec2files/ec2file53.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T19:44:30.000Z | 2020-04-08T19:44:30.000Z | web_scraping/ec2files/ec2file53.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file53.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=94446, end=96227, max_iter=30, scraper_instance=53)
s.scrape_letterboxd() | 38.333333 | 70 | 0.773913 | 18 | 115 | 4.777778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 0.104348 | 115 | 3 | 71 | 38.333333 | 0.699029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a57327850e785bfd0c9a46fc0814d0481e6f1dd | 902 | py | Python | TrafficLight.py | Researchnix/Taco | 4946fa996638f7fd6704d14ab029c208bf625707 | [
"MIT"
] | null | null | null | TrafficLight.py | Researchnix/Taco | 4946fa996638f7fd6704d14ab029c208bf625707 | [
"MIT"
] | null | null | null | TrafficLight.py | Researchnix/Taco | 4946fa996638f7fd6704d14ab029c208bf625707 | [
"MIT"
] | null | null | null | #
# TrafficLight.py
# Taco --- SPH Innovation Challenge
#
# Created by Mat, Kon and Len on 2017-03-11.
# Copyright 2016 Researchnix. All rights reserved.
#
class TrafficLight:
# State is a 2D array with the values 0 and 1 associating red and green
# to the path from one incoming street to another outgoi... | 23.128205 | 75 | 0.62306 | 128 | 902 | 4.359375 | 0.617188 | 0.048387 | 0.053763 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025357 | 0.300443 | 902 | 38 | 76 | 23.736842 | 0.858954 | 0.519956 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.153846 | 0 | 0.076923 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5a844c94bf9fba5374842b7900aea79be9da618b | 122 | py | Python | kbuilder_django/KB/routing.py | plkmo/Knowledge-Base-Builder | ef25f1d82093e942cbc1fa66485dcad1c5c9faed | [
"Apache-2.0"
] | 2 | 2021-08-09T02:34:46.000Z | 2022-01-14T03:07:36.000Z | kbuilder_django/KB/routing.py | plkmo/Knowledge-Base-Builder | ef25f1d82093e942cbc1fa66485dcad1c5c9faed | [
"Apache-2.0"
] | 1 | 2020-10-18T05:34:21.000Z | 2020-10-18T05:34:21.000Z | kbuilder_django/KB/routing.py | plkmo/Knowledge-Base-Builder | ef25f1d82093e942cbc1fa66485dcad1c5c9faed | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from .consumers import ChatConsumer
channel_routing = [
path('', ChatConsumer),\
]
| 15.25 | 35 | 0.704918 | 13 | 122 | 6.538462 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 122 | 7 | 36 | 17.428571 | 0.867347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ce68414b8f24e141ea3aadfef28748c2995620f1 | 931 | py | Python | z42/zapp/_WEB/view/sso.py | jumploop/collection_python | f66f18dc5ae50fce95679e0f4aee5e28b2543432 | [
"MIT"
] | null | null | null | z42/zapp/_WEB/view/sso.py | jumploop/collection_python | f66f18dc5ae50fce95679e0f4aee5e28b2543432 | [
"MIT"
] | null | null | null | z42/zapp/_WEB/view/sso.py | jumploop/collection_python | f66f18dc5ae50fce95679e0f4aee5e28b2543432 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding:utf-8
import _env
from zapp._WEB.view._base import View, NoLoginView
from zapp._WEB.model.sso_sign import sso_sign
from zapp._WEB.view._j import JsonLoginView
from zapp._WEB.model.id_by_sso import id_by_sso_id, sso_id_by_id
from zapp._WEB.model.session import Session
from _route import... | 27.382353 | 64 | 0.696026 | 142 | 931 | 4.359155 | 0.387324 | 0.06462 | 0.088853 | 0.077544 | 0.087237 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.168636 | 931 | 33 | 65 | 28.212121 | 0.795866 | 0.281418 | 0 | 0 | 0 | 0 | 0.081942 | 0.057663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.555556 | 0.055556 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
ce6c21552d3a09f88f4b18f9650cbb715c1ca55e | 559 | py | Python | robotsim/grippers/robotiqhe/meshes/convert.py | Photon26/wrs-main-210414 | 71efab6f8680af48ba269244136acf69c36cb730 | [
"MIT"
] | null | null | null | robotsim/grippers/robotiqhe/meshes/convert.py | Photon26/wrs-main-210414 | 71efab6f8680af48ba269244136acf69c36cb730 | [
"MIT"
] | null | null | null | robotsim/grippers/robotiqhe/meshes/convert.py | Photon26/wrs-main-210414 | 71efab6f8680af48ba269244136acf69c36cb730 | [
"MIT"
] | null | null | null | import math
import numpy as np
import basis.robot_math as rm
import modeling.meshtools as mt
if __name__ == '__main__':
'''
author: weiwei
date: 20201212osaka
'''
mt.convert_to_stl("base.stl", "base_cvt.stl", scale_ratio=.001)
mt.convert_to_stl("finger1.stl", "finger1_cvt.stl", scale_ratio=.001... | 37.266667 | 81 | 0.722719 | 88 | 559 | 4.215909 | 0.329545 | 0.121294 | 0.148248 | 0.188679 | 0.498652 | 0.498652 | 0.431267 | 0.431267 | 0.431267 | 0.431267 | 0 | 0.06405 | 0.134168 | 559 | 15 | 82 | 37.266667 | 0.702479 | 0 | 0 | 0 | 0 | 0 | 0.29249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ce8b387fcbc43b475eb63e6a41de6d2d9a847ae7 | 280 | py | Python | globals.py | DilipIITBHU/MLST-IMPLEMENTATION | 6ecfaab85f954171fc5aa9694a511a9e44a4ffa8 | [
"MIT"
] | 1 | 2020-02-26T17:28:37.000Z | 2020-02-26T17:28:37.000Z | globals.py | DilipIITBHU/MLST-IMPLEMENTATION | 6ecfaab85f954171fc5aa9694a511a9e44a4ffa8 | [
"MIT"
] | null | null | null | globals.py | DilipIITBHU/MLST-IMPLEMENTATION | 6ecfaab85f954171fc5aa9694a511a9e44a4ffa8 | [
"MIT"
] | 1 | 2020-02-26T17:29:00.000Z | 2020-02-26T17:29:00.000Z | no_of_labels=4
no_of_iterations = 10
graph = {
'a': {('b', 1), ('e', 4),('c',2)},
'b': {('a',1),('c', 3), ('d',3),('e',4)},
'c': {('a',2),('d',1),('b',3)},
'd': {('b',3),('e',1), ('c',1)},
'e': {('d',1),('a',4),('b',4)}
} | 31.111111 | 52 | 0.260714 | 46 | 280 | 1.5 | 0.326087 | 0.115942 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09596 | 0.292857 | 280 | 9 | 53 | 31.111111 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 0.074733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce95c3001e27f63812e3983bf5e7a0554a404f22 | 29,644 | py | Python | pysnmp/Nortel-Magellan-Passport-VnetEtsiQsigMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Nortel-Magellan-Passport-VnetEtsiQsigMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Nortel-Magellan-Passport-VnetEtsiQsigMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-Magellan-Passport-VnetEtsiQsigMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-VnetEtsiQsigMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:19:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davw... | 156.021053 | 4,969 | 0.781473 | 3,103 | 29,644 | 7.465678 | 0.077667 | 0.014936 | 0.011785 | 0.015713 | 0.483726 | 0.444833 | 0.42653 | 0.41548 | 0.407364 | 0.407278 | 0 | 0.086731 | 0.075867 | 29,644 | 189 | 4,970 | 156.846561 | 0.758898 | 0.012616 | 0 | 0 | 0 | 0 | 0.137863 | 0.057619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.104396 | 0.054945 | 0 | 0.054945 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cea00b2f5af72eb9982b5b07353f2951fe1064fa | 2,932 | py | Python | program.py | skotov/language-practice | d2b53fdcd664ef5ebe42c260391b8df5482e93ef | [
"MIT"
] | 1 | 2021-05-22T22:41:37.000Z | 2021-05-22T22:41:37.000Z | program.py | skotov/language-practice | d2b53fdcd664ef5ebe42c260391b8df5482e93ef | [
"MIT"
] | null | null | null | program.py | skotov/language-practice | d2b53fdcd664ef5ebe42c260391b8df5482e93ef | [
"MIT"
] | null | null | null | import random
# TODO adjectives of state
# TODO more complex posessives
# TODO more vocab
# generate posessives
# his mom's house
# the house's door
# our dog's name
# simple or complex
# if simple
# pos. pronoun or object + object -- my house, his house, their dog
# if complex
... | 32.577778 | 159 | 0.625171 | 374 | 2,932 | 4.847594 | 0.355615 | 0.019857 | 0.03861 | 0.046884 | 0.15444 | 0.024269 | 0 | 0 | 0 | 0 | 0 | 0.015132 | 0.211119 | 2,932 | 90 | 160 | 32.577778 | 0.768699 | 0.196453 | 0 | 0.113208 | 1 | 0 | 0.242411 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 0 | null | null | 0 | 0.018868 | null | null | 0.150943 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cea783162d8794e3dfb62a6a62f3e92e5ecb464f | 373 | py | Python | webapp/data_provider.py | data-science-misis/rec-sys | 68634f08096ec33dae1c38a8b0cf0cbe72b41c8c | [
"MIT"
] | null | null | null | webapp/data_provider.py | data-science-misis/rec-sys | 68634f08096ec33dae1c38a8b0cf0cbe72b41c8c | [
"MIT"
] | null | null | null | webapp/data_provider.py | data-science-misis/rec-sys | 68634f08096ec33dae1c38a8b0cf0cbe72b41c8c | [
"MIT"
] | 1 | 2022-01-14T16:04:52.000Z | 2022-01-14T16:04:52.000Z | import pandas as pd
DATASET_FILE_PATH = '../data/dataset.plk'
POPULAR_WINES_DATASET_FILE_PATH = '../data/sorted_popular_wines.plk'
df = pd.read_pickle(DATASET_FILE_PATH)
df['id'] = df.index
popular_wines = pd.read_pickle(POPULAR_WINES_DATASET_FILE_PATH)
popular_wines['id'] = popular_wines.index
def database():
... | 19.631579 | 68 | 0.766756 | 56 | 373 | 4.75 | 0.357143 | 0.315789 | 0.225564 | 0.142857 | 0.203008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120643 | 373 | 18 | 69 | 20.722222 | 0.810976 | 0 | 0 | 0 | 0 | 0 | 0.147453 | 0.085791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.181818 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
cebaaedca89211c5a8335270fb0c11836438910f | 1,978 | py | Python | test/test_cases.py | JoseTomasTocino/toptal-calculator | baeb69fdeca81699d655e1f2f11f03f2a3972ab7 | [
"Unlicense"
] | null | null | null | test/test_cases.py | JoseTomasTocino/toptal-calculator | baeb69fdeca81699d655e1f2f11f03f2a3972ab7 | [
"Unlicense"
] | null | null | null | test/test_cases.py | JoseTomasTocino/toptal-calculator | baeb69fdeca81699d655e1f2f11f03f2a3972ab7 | [
"Unlicense"
] | null | null | null | import unittest
from calculator import evaluator
class SampleTestCases(unittest.TestCase):
def test_case_1(self):
self.assertAlmostEqual(-4.7509872468, evaluator.evaluate("3+sin(6*3)-7"))
def test_case_2(self):
self.assertEqual(0.25, evaluator.evaluate("2x + 1 = 2(1-x)"))
def test_case_... | 29.522388 | 93 | 0.637513 | 296 | 1,978 | 4.10473 | 0.206081 | 0.109465 | 0.172016 | 0.131687 | 0.468313 | 0.468313 | 0.285597 | 0.285597 | 0.218107 | 0.218107 | 0 | 0.09788 | 0.18908 | 1,978 | 66 | 94 | 29.969697 | 0.659601 | 0 | 0 | 0.093023 | 0 | 0 | 0.127907 | 0.012133 | 0 | 0 | 0 | 0 | 0.44186 | 1 | 0.44186 | false | 0 | 0.046512 | 0 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cec88b57215750522f53bab0f97410eb609dac37 | 397 | py | Python | decorators/uppercase_dec.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | 4 | 2021-08-02T21:34:46.000Z | 2021-09-24T03:26:35.000Z | decorators/uppercase_dec.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | null | null | null | decorators/uppercase_dec.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | 4 | 2021-08-02T21:34:47.000Z | 2021-08-11T03:21:37.000Z | def upper_case_first_param(func):
def wrapper(text):
return func(text.upper())
return wrapper
@upper_case_first_param
def recibed_a_msg(name: str) -> str:
return f"{name}, you has received a message."
@upper_case_first_param
def uppercase(msg: str) -> str:
return msg
if __name__ == "__mai... | 18.904762 | 49 | 0.687657 | 57 | 397 | 4.421053 | 0.45614 | 0.107143 | 0.166667 | 0.22619 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188917 | 397 | 20 | 50 | 19.85 | 0.782609 | 0 | 0 | 0.153846 | 0 | 0 | 0.151134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.230769 | 0.615385 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
cedead77c716b75ebfc5364e03be406ca465b805 | 1,536 | py | Python | tests/common.py | domdfcoding/flake8-dunder-all | 256f51461c49ec8f192f74b606768bc3db4ad808 | [
"MIT"
] | 1 | 2021-03-17T13:33:21.000Z | 2021-03-17T13:33:21.000Z | tests/common.py | domdfcoding/flake8-dunder-all | 256f51461c49ec8f192f74b606768bc3db4ad808 | [
"MIT"
] | 27 | 2020-11-23T19:04:21.000Z | 2022-01-13T10:39:38.000Z | tests/common.py | domdfcoding/flake8-dunder-all | 256f51461c49ec8f192f74b606768bc3db4ad808 | [
"MIT"
] | null | null | null | # stdlib
import ast
# this package
from flake8_dunder_all import Plugin
def results(s):
return {"{}:{}: {}".format(*r) for r in Plugin(ast.parse(s)).run()}
testing_source_a = '''
"""a docstring"""
import foo
'''
testing_source_b = '''
"""a docstring"""
import foo
def a_function(): ...
'''
testing_source_c = ''... | 12.487805 | 68 | 0.641927 | 203 | 1,536 | 4.507389 | 0.26601 | 0.298361 | 0.131148 | 0.186885 | 0.374863 | 0.347541 | 0.23388 | 0.183607 | 0.183607 | 0.107104 | 0 | 0.003127 | 0.167318 | 1,536 | 122 | 69 | 12.590164 | 0.712275 | 0.027344 | 0 | 0.555556 | 0 | 0 | 0.680537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012346 | false | 0 | 0.160494 | 0.012346 | 0.185185 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 3 |
0c741bb618f1aa9dce040cde54c9941d1e71a554 | 3,874 | py | Python | stock_indicators/indicators/pivot_points.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 13 | 2021-11-09T13:16:31.000Z | 2022-03-28T00:30:30.000Z | stock_indicators/indicators/pivot_points.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 162 | 2021-11-03T15:57:17.000Z | 2022-03-30T15:32:20.000Z | stock_indicators/indicators/pivot_points.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 5 | 2021-11-04T13:35:05.000Z | 2022-01-06T10:27:38.000Z | from decimal import Decimal
from typing import Optional, TypeVar
from stock_indicators._cslib import CsIndicator
from stock_indicators._cstypes import List as CsList
from stock_indicators._cstypes import Decimal as CsDecimal
from stock_indicators._cstypes import to_pydecimal
from stock_indicators.indicators.common.enu... | 29.8 | 122 | 0.681208 | 454 | 3,874 | 5.700441 | 0.264317 | 0.069552 | 0.066074 | 0.08694 | 0.285935 | 0.194745 | 0.194745 | 0.159969 | 0 | 0 | 0 | 0.013347 | 0.226381 | 3,874 | 129 | 123 | 30.031008 | 0.850184 | 0.26794 | 0 | 0.125 | 0 | 0 | 0.000734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263889 | false | 0 | 0.138889 | 0.125 | 0.569444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0c922a85cf8849acdf057c429d614b0e5846a3cb | 206 | py | Python | Task/Power-set/Python/power-set-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | Task/Power-set/Python/power-set-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Power-set/Python/power-set-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2021-04-13T04:19:31.000Z | 2021-04-13T04:19:31.000Z | def powersetlist(s):
r = [[]]
for e in s:
print "r: %-55r e: %r" % (r,e)
r += [x+[e] for x in r]
return r
s= [0,1,2,3]
print "\npowersetlist(%r) =\n %r" % (s, powersetlist(s))
| 20.6 | 57 | 0.456311 | 37 | 206 | 2.540541 | 0.459459 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.31068 | 206 | 9 | 58 | 22.888889 | 0.619718 | 0 | 0 | 0 | 0 | 0 | 0.194175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0cc9d941c0db25624f2f1ed33f0ca5d22d625b85 | 17,271 | py | Python | tests/test_modeling_albert.py | legacyai/tf-transformers | 65a5f9a4bcb3236483daa598a37b91673f56cb97 | [
"Apache-2.0"
] | 116 | 2021-03-15T09:48:41.000Z | 2022-03-24T05:15:51.000Z | tests/test_modeling_albert.py | legacyai/tf-transformers | 65a5f9a4bcb3236483daa598a37b91673f56cb97 | [
"Apache-2.0"
] | 4 | 2021-03-20T11:20:57.000Z | 2022-01-05T04:59:07.000Z | tests/test_modeling_albert.py | legacyai/tf-transformers | 65a5f9a4bcb3236483daa598a37b91673f56cb97 | [
"Apache-2.0"
] | 9 | 2021-03-17T04:14:48.000Z | 2021-09-13T07:15:31.000Z | # coding=utf-8
# Copyright 2021 TF-Transformers Authors.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 45.093995 | 121 | 0.640032 | 2,052 | 17,271 | 5.101365 | 0.152534 | 0.084257 | 0.030856 | 0.038785 | 0.760031 | 0.734429 | 0.723252 | 0.697459 | 0.671571 | 0.663164 | 0 | 0.049475 | 0.243993 | 17,271 | 382 | 122 | 45.212042 | 0.751781 | 0.399861 | 0 | 0.508108 | 0 | 0 | 0.137295 | 0.011866 | 0 | 0 | 0 | 0 | 0.032432 | 1 | 0.037838 | false | 0.010811 | 0.059459 | 0 | 0.102703 | 0.005405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
0b2ca3f7ecd3b5feec1baab0605b225084b2c4db | 323 | py | Python | pymontecarlo_gui/options/model/elastic_cross_section.py | pymontecarlo/pymontecarlo-gui | 1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f | [
"Apache-2.0"
] | null | null | null | pymontecarlo_gui/options/model/elastic_cross_section.py | pymontecarlo/pymontecarlo-gui | 1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f | [
"Apache-2.0"
] | 2 | 2016-05-16T10:19:56.000Z | 2021-12-29T15:16:20.000Z | pymontecarlo_gui/options/model/elastic_cross_section.py | pymontecarlo/pymontecarlo-gui | 1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f | [
"Apache-2.0"
] | null | null | null | """
Elastic cross section models.
"""
# Standard library modules.
# Third party modules.
# Local modules.
from pymontecarlo_gui.options.model.base import ModelFieldBase
# Globals and constants variables.
class ElasticCrossSectionModelField(ModelFieldBase):
def title(self):
return "Elastic cross sectio... | 17.944444 | 62 | 0.758514 | 34 | 323 | 7.176471 | 0.823529 | 0.098361 | 0.155738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160991 | 323 | 17 | 63 | 19 | 0.900369 | 0.386997 | 0 | 0 | 0 | 0 | 0.112299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0b49bdac47b3965ed39f3c527fe0ca7dadfd3351 | 2,854 | py | Python | douglasdaly/douglasdaly/migrations/0002_auto_20190105_0337.py | douglasdaly/douglasdaly | 984576f6e8b9f7d9cdcc347c0f0ad1323e7d6d1f | [
"MIT"
] | null | null | null | douglasdaly/douglasdaly/migrations/0002_auto_20190105_0337.py | douglasdaly/douglasdaly | 984576f6e8b9f7d9cdcc347c0f0ad1323e7d6d1f | [
"MIT"
] | 17 | 2019-01-22T02:10:38.000Z | 2021-09-22T17:53:23.000Z | douglasdaly/douglasdaly/migrations/0002_auto_20190105_0337.py | douglasdaly/douglasdaly | 984576f6e8b9f7d9cdcc347c0f0ad1323e7d6d1f | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2019-01-05 08:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('douglasdaly', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='fileasset',
name='asset_ptr',
... | 30.361702 | 95 | 0.557814 | 234 | 2,854 | 6.615385 | 0.303419 | 0.087209 | 0.184755 | 0.213178 | 0.640827 | 0.55168 | 0.521964 | 0.356589 | 0.155039 | 0.105943 | 0 | 0.022632 | 0.334268 | 2,854 | 93 | 96 | 30.688172 | 0.792105 | 0.015767 | 0 | 0.632184 | 1 | 0 | 0.200926 | 0.023156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011494 | 0 | 0.045977 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0b54a9078c0b88d607799e5dbf041714b2219e67 | 183 | py | Python | docs/basic_usage/bu03.py | jviide/htm.py | 16ba9afe1d02b5dd5d32aeb81f2033348b553f2c | [
"MIT"
] | 112 | 2019-06-12T19:53:22.000Z | 2022-01-25T04:57:03.000Z | docs/basic_usage/bu03.py | pauleveritt/htm.py | 083699ac3d16666f4cb1dcd41a3e943fb2d38550 | [
"MIT"
] | 14 | 2019-06-12T19:47:56.000Z | 2020-06-22T13:03:32.000Z | docs/basic_usage/bu03.py | pauleveritt/htm.py | 083699ac3d16666f4cb1dcd41a3e943fb2d38550 | [
"MIT"
] | 6 | 2019-06-12T20:24:56.000Z | 2021-02-21T16:47:43.000Z | from htm import htm
@htm
def html(tag, props, children):
return tag, props, children
# start
name = 'World'
result03 = html("""
<div title="Say Hi">Hello {name}</div>
""")
| 12.2 | 40 | 0.628415 | 26 | 183 | 4.423077 | 0.692308 | 0.13913 | 0.278261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.202186 | 183 | 14 | 41 | 13.071429 | 0.773973 | 0.027322 | 0 | 0 | 0 | 0 | 0.267045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
0b63f7ae83024979462cfa274e0adc8b4a141b22 | 4,032 | py | Python | ietf/message/migrations/0006_add_announcement_from.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ietf/message/migrations/0006_add_announcement_from.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ietf/message/migrations/0006_add_announcement_from.py | ekr/ietfdb | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-05 16:10
from __future__ import unicode_literals
from django.db import migrations
def forwards(apps, schema_editor):
AnnouncementFrom = apps.get_model('message', 'AnnouncementFrom')
Group = apps.get_model('group', 'Group')
RoleName = apps.ge... | 45.303371 | 131 | 0.735119 | 502 | 4,032 | 5.880478 | 0.183267 | 0.179201 | 0.216125 | 0.245935 | 0.517276 | 0.498645 | 0.38313 | 0.334011 | 0.259824 | 0.159553 | 0 | 0.005946 | 0.124008 | 4,032 | 88 | 132 | 45.818182 | 0.829841 | 0.049107 | 0 | 0 | 1 | 0 | 0.257659 | 0.06651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.037736 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0b713022259bebbbe24ca7632f555d70dd76915d | 438 | py | Python | samples/static_files.py | imandr/webpie | ee86d0230e5a1c102c2169d95d681292eb022c40 | [
"BSD-3-Clause"
] | null | null | null | samples/static_files.py | imandr/webpie | ee86d0230e5a1c102c2169d95d681292eb022c40 | [
"BSD-3-Clause"
] | null | null | null | samples/static_files.py | imandr/webpie | ee86d0230e5a1c102c2169d95d681292eb022c40 | [
"BSD-3-Clause"
] | null | null | null | from webpie import WPApp
from webpie import WPHandler, WebPieStaticHandler
from webpie import run_server
from webpie import Response
class MyApp(WPApp):
pass
class TopHandler(WPHandler):
def hello(self, request, relpath, **args):
return "Hello world!", "text/plain"
app = MyApp(TopHan... | 24.333333 | 67 | 0.714612 | 56 | 438 | 5.517857 | 0.607143 | 0.12945 | 0.20712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022409 | 0.184932 | 438 | 17 | 68 | 25.764706 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0.148402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0.083333 | 0.666667 | 0.083333 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
0b8cc294a480ca1cabcbaceb29fbae4b1dce4ab2 | 1,027 | py | Python | tests/e2e/executors/__init__.py | yarix/m2cgen | f1aa01e4c70a6d1a8893e27bfbe3c36fcb1e8546 | [
"MIT"
] | 1 | 2021-01-25T09:55:29.000Z | 2021-01-25T09:55:29.000Z | tests/e2e/executors/__init__.py | yarix/m2cgen | f1aa01e4c70a6d1a8893e27bfbe3c36fcb1e8546 | [
"MIT"
] | null | null | null | tests/e2e/executors/__init__.py | yarix/m2cgen | f1aa01e4c70a6d1a8893e27bfbe3c36fcb1e8546 | [
"MIT"
] | null | null | null | from tests.e2e.executors.java import JavaExecutor
from tests.e2e.executors.python import PythonExecutor
from tests.e2e.executors.c import CExecutor
from tests.e2e.executors.go import GoExecutor
from tests.e2e.executors.javascript import JavascriptExecutor
from tests.e2e.executors.visual_basic import VisualBasicExecutor... | 32.09375 | 64 | 0.814995 | 116 | 1,027 | 7.155172 | 0.301724 | 0.151807 | 0.20241 | 0.354217 | 0.053012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.127556 | 1,027 | 31 | 65 | 33.129032 | 0.910714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0ba300d5263501b230d7f3607a31a12b1a08aa5d | 264 | py | Python | Examples/slides_configuration.py | aspose-slides-cloud/aspose-slides-cloud-python | 3ee53c11a22c7efc8aaf8377bc72b41102821ca2 | [
"MIT"
] | null | null | null | Examples/slides_configuration.py | aspose-slides-cloud/aspose-slides-cloud-python | 3ee53c11a22c7efc8aaf8377bc72b41102821ca2 | [
"MIT"
] | null | null | null | Examples/slides_configuration.py | aspose-slides-cloud/aspose-slides-cloud-python | 3ee53c11a22c7efc8aaf8377bc72b41102821ca2 | [
"MIT"
] | 1 | 2020-12-25T16:28:49.000Z | 2020-12-25T16:28:49.000Z | from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
configuration = Configuration()
configuration.app_sid = "MyClientId"
configuration.app_key ="MyClientSecret"
slides_api = SlidesApi(configuration)
| 29.333333 | 57 | 0.852273 | 26 | 264 | 8.5 | 0.5 | 0.190045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 264 | 8 | 58 | 33 | 0.913223 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0bad0802553f211e91a3c231e53d4cf16a460a62 | 1,424 | py | Python | tests/unit_tests/test_tethys_services/test_models/test_helper_functions.py | ezrajrice/tethys | 238271ebb09913f1f57b0d127fd5c81bb4780a0a | [
"BSD-2-Clause"
] | 79 | 2015-10-05T13:13:28.000Z | 2022-02-01T12:30:33.000Z | tests/unit_tests/test_tethys_services/test_models/test_helper_functions.py | ezrajrice/tethys | 238271ebb09913f1f57b0d127fd5c81bb4780a0a | [
"BSD-2-Clause"
] | 542 | 2015-08-12T22:11:32.000Z | 2022-03-29T22:18:08.000Z | tests/unit_tests/test_tethys_services/test_models/test_helper_functions.py | Aquaveo/tethys | 15f67c3fb9458d3af2733542be5ea6391f33b222 | [
"BSD-2-Clause"
] | 71 | 2016-01-16T01:03:41.000Z | 2022-03-31T17:55:54.000Z | from tethys_sdk.testing import TethysTestCase
import tethys_services.models as service_model
from django.core.exceptions import ValidationError
class HelperFunctionTests(TethysTestCase):
def set_up(self):
pass
def tear_down(self):
pass
def test_validate_url_valid(self):
test_url ... | 34.731707 | 109 | 0.733146 | 168 | 1,424 | 5.833333 | 0.267857 | 0.114286 | 0.091837 | 0.193878 | 0.6 | 0.552041 | 0.366327 | 0.328571 | 0.179592 | 0.179592 | 0 | 0.002625 | 0.197331 | 1,424 | 40 | 110 | 35.6 | 0.854768 | 0.005618 | 0 | 0.193548 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.258065 | false | 0.064516 | 0.096774 | 0 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0bbcb8fcc7fe5102649430caa8162fbd1fe14d6b | 8,903 | py | Python | src/train.py | cstrojans/obstacle-tower-challenge | 3acbf0c6fda8d6cd4b09f3f112310d73058f1597 | [
"Apache-2.0"
] | 2 | 2021-01-31T22:21:26.000Z | 2021-06-19T12:14:05.000Z | src/train.py | USC-CSCI527-Spring2021/Obstacle-Tower-Challenge | 3acbf0c6fda8d6cd4b09f3f112310d73058f1597 | [
"Apache-2.0"
] | 1 | 2021-03-29T00:02:25.000Z | 2021-03-29T00:02:25.000Z | src/train.py | cstrojans/obstacle-tower-challenge | 3acbf0c6fda8d6cd4b09f3f112310d73058f1597 | [
"Apache-2.0"
] | 4 | 2021-01-28T18:05:08.000Z | 2021-01-31T18:07:59.000Z | import argparse
from obstacle_tower_env import ObstacleTowerEnv
import sys
import time
from models.common.constants import *
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Run different ML agents on the Obstacle Tower Challenge game.')
parser.add_argument('--env', default=None, type=... | 71.224 | 162 | 0.70729 | 1,241 | 8,903 | 4.923449 | 0.136181 | 0.066612 | 0.027005 | 0.02946 | 0.783961 | 0.765139 | 0.716367 | 0.687561 | 0.666939 | 0.633061 | 0 | 0.01093 | 0.167584 | 8,903 | 124 | 163 | 71.798387 | 0.81352 | 0.067281 | 0 | 0.117021 | 0 | 0 | 0.318538 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0 | false | 0.010638 | 0.12766 | 0 | 0.12766 | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
e7edbdde2dc2748e3b8261374ab1ecfe1c0bad54 | 388 | py | Python | daily-coding-problem/Twitter/problem_1.py | HouariZegai/problem-solving | 77f2b397cfc798e7a0933daf65b849a81192f9d8 | [
"MIT"
] | 1 | 2022-03-24T02:02:40.000Z | 2022-03-24T02:02:40.000Z | daily-coding-problem/Twitter/problem_1.py | HouariZegai/problem-solving | 77f2b397cfc798e7a0933daf65b849a81192f9d8 | [
"MIT"
] | null | null | null | daily-coding-problem/Twitter/problem_1.py | HouariZegai/problem-solving | 77f2b397cfc798e7a0933daf65b849a81192f9d8 | [
"MIT"
] | 1 | 2022-03-24T02:03:21.000Z | 2022-03-24T02:03:21.000Z | """ Asked by: Twitter
Implement an autocomplete system. That is, given a query string s and a set of all possible query strings,
return all strings in the set that have s as a prefix.
For example, given the query string de and the set of strings [dog, deer, deal], return [deer, deal].
Hint: Try preprocessing the dicti... | 48.5 | 106 | 0.760309 | 67 | 388 | 4.402985 | 0.671642 | 0.074576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180412 | 388 | 8 | 107 | 48.5 | 0.927673 | 0.976804 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7f1421291cf8e0e2e2037bab331dbcfdbea9c0e | 208 | py | Python | datatypes.py | loyalgarlic/snakepit-game | 5721f688d78a1e3f5f9ef7b82e8d0b9591373863 | [
"Unlicense"
] | 124 | 2016-06-01T16:02:12.000Z | 2022-03-04T09:40:03.000Z | datatypes.py | AqZyy1998/snake-multi-online | b75712dce46314b350c363dda959a1e2dbc278bf | [
"Unlicense"
] | 8 | 2016-07-07T11:23:44.000Z | 2020-03-28T21:27:19.000Z | datatypes.py | AqZyy1998/snake-multi-online | b75712dce46314b350c363dda959a1e2dbc278bf | [
"Unlicense"
] | 53 | 2016-06-20T00:30:54.000Z | 2021-11-10T04:57:39.000Z | from collections import namedtuple
Position = namedtuple("Position", "x y")
Vector = namedtuple("Vector", "xdir ydir")
Char = namedtuple("Char", "char color")
Draw = namedtuple("Draw", "x y char color")
| 20.8 | 44 | 0.697115 | 26 | 208 | 5.576923 | 0.5 | 0.248276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149038 | 208 | 9 | 45 | 23.111111 | 0.819209 | 0 | 0 | 0 | 0 | 0 | 0.278846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7fb1dba7e13af109ab4e908618c81dd99cab9cf | 385 | py | Python | Homework/Homework6/15_23.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | Homework/Homework6/15_23.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | Homework/Homework6/15_23.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | def displayPermuation(s):
return displayPermuationHelper("", s)
def displayPermuationHelper(s1, s2):
if len(s2) == 0:
print (s1)
for i in range(len(s2)):
displayPermuationHelper(s1 + s2[i], s2[0: i] + s2[i + 1 : ])
def main():
str = input("Please enter a string: ").replace(' ', '')
... | 21.388889 | 68 | 0.597403 | 47 | 385 | 4.723404 | 0.531915 | 0.225225 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.236364 | 385 | 17 | 69 | 22.647059 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.083117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.083333 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7ffb1692cd14109e75ae177dcd0c44616726b04 | 404 | py | Python | tests/test_utils.py | msyaifullah/Stargate | 04d3f8c4f2b92eb244c543de5c3e3b5cb07533f6 | [
"MIT"
] | null | null | null | tests/test_utils.py | msyaifullah/Stargate | 04d3f8c4f2b92eb244c543de5c3e3b5cb07533f6 | [
"MIT"
] | null | null | null | tests/test_utils.py | msyaifullah/Stargate | 04d3f8c4f2b92eb244c543de5c3e3b5cb07533f6 | [
"MIT"
] | null | null | null | import json
import collections
class TestUtils(object):
def __init__(self):
pass
@staticmethod
def string_to_ordered_dict(request_header, request_body):
headers = json.JSONDecoder(object_pairs_hook=collections.OrderedDict).decode(request_header)
body = json.JSONDecoder(object_pai... | 25.25 | 100 | 0.75 | 46 | 404 | 6.26087 | 0.543478 | 0.090278 | 0.145833 | 0.180556 | 0.451389 | 0.451389 | 0.451389 | 0.451389 | 0.451389 | 0 | 0 | 0 | 0.175743 | 404 | 15 | 101 | 26.933333 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e7ffb5d1e67fe57881beca5129ec9309b9fb1e33 | 4,161 | py | Python | chaospy/distributions/collection/chi.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 333 | 2016-10-25T12:00:48.000Z | 2022-03-30T07:50:33.000Z | chaospy/distributions/collection/chi.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 327 | 2016-09-25T16:29:41.000Z | 2022-03-30T03:26:27.000Z | chaospy/distributions/collection/chi.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 74 | 2016-10-17T11:14:13.000Z | 2021-12-09T10:55:59.000Z | """Chi distribution."""
import numpy
from scipy import special
from ..baseclass import SimpleDistribution, ShiftScaleDistribution
class chi(SimpleDistribution):
"""Chi distribution."""
def __init__(self, df=1):
super(chi, self).__init__(dict(df=df))
def _pdf(self, x, df):
return x**(df-... | 27.196078 | 77 | 0.525595 | 521 | 4,161 | 4.119002 | 0.214971 | 0.033551 | 0.046132 | 0.041938 | 0.59739 | 0.56151 | 0.490214 | 0.490214 | 0.419385 | 0.419385 | 0 | 0.096729 | 0.309301 | 4,161 | 152 | 78 | 27.375 | 0.649965 | 0.557078 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.071429 | 0.142857 | 0.547619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f001cc8a4fede693a0032327bec9287a2e829e9d | 184 | py | Python | readonly_model/settings.py | dorosch/django-readonly-model | 991836e47ab97c0c19d0f25a14cc64ea24b9506f | [
"MIT"
] | null | null | null | readonly_model/settings.py | dorosch/django-readonly-model | 991836e47ab97c0c19d0f25a14cc64ea24b9506f | [
"MIT"
] | null | null | null | readonly_model/settings.py | dorosch/django-readonly-model | 991836e47ab97c0c19d0f25a14cc64ea24b9506f | [
"MIT"
] | null | null | null | """
Settings for app
"""
READONLY_MODEL = {
'NAME': 'readonly_model',
'META_ATTR': 'read_only_model',
'DATABASE_ROUTER': 'readonly_model.dbrouters.ReadOnlyModelRouter'
}
| 16.727273 | 69 | 0.690217 | 19 | 184 | 6.315789 | 0.736842 | 0.325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157609 | 184 | 10 | 70 | 18.4 | 0.774194 | 0.086957 | 0 | 0 | 0 | 0 | 0.63125 | 0.275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f00e81a4f70c0eea4c68cbfb331ac4c8910599c0 | 576 | py | Python | apps/mascota/models.py | freygeth/refugiobeta | 6f350b7577a816e028de93cbc187fbf17ce056d3 | [
"Unlicense"
] | null | null | null | apps/mascota/models.py | freygeth/refugiobeta | 6f350b7577a816e028de93cbc187fbf17ce056d3 | [
"Unlicense"
] | null | null | null | apps/mascota/models.py | freygeth/refugiobeta | 6f350b7577a816e028de93cbc187fbf17ce056d3 | [
"Unlicense"
] | null | null | null | from django.db import models
from adopcion.models import Persona
# Create your models here.
class Vacuna(models.Model):
nombre = models.CharField(max_length=50)
def __str__(self):
return self.nombre
class Mascota(models.Model):
nombre = models.CharField(max_length=50)
sexo = models.CharField(max_length=10)
e... | 30.315789 | 86 | 0.779514 | 78 | 576 | 5.576923 | 0.5 | 0.103448 | 0.124138 | 0.165517 | 0.317241 | 0.317241 | 0.197701 | 0.197701 | 0 | 0 | 0 | 0.011788 | 0.116319 | 576 | 18 | 87 | 32 | 0.842829 | 0.041667 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.133333 | 1 | 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 | 1 | 1 | 0 | 0 | 3 |
f021cdc1d99fdd3b7196544605f9e553cb95f3b5 | 60,716 | py | Python | catboost/python-package/ut/medium/gpu/canondata/test.test_export_to_python_with_cat_features_GPU-40_/model.py | timgates42/catboost | 2fa492f5e32ba14c890dc4b3313cfe1024ca4839 | [
"Apache-2.0"
] | 2 | 2021-01-29T04:27:28.000Z | 2021-01-29T04:28:27.000Z | catboost/python-package/ut/medium/gpu/canondata/test.test_export_to_python_with_cat_features_GPU-40_/model.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1 | 2021-12-09T23:08:25.000Z | 2021-12-09T23:08:25.000Z | catboost/python-package/ut/medium/gpu/canondata/test.test_export_to_python_with_cat_features_GPU-40_/model.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1 | 2021-04-27T23:40:09.000Z | 2021-04-27T23:40:09.000Z | ### Types to hold CTR's data
class catboost_model_ctr(object):
def __init__(self, base_hash, base_ctr_type, target_border_idx, prior_num, prior_denom, shift, scale):
self.base_hash = base_hash
self.base_ctr_type = base_ctr_type
self.target_border_idx = target_border_idx
self.prior_n... | 102.215488 | 889 | 0.656104 | 8,349 | 60,716 | 4.620074 | 0.145407 | 0.108418 | 0.129884 | 0.145076 | 0.466414 | 0.439893 | 0.424442 | 0.409846 | 0.391388 | 0.367148 | 0 | 0.516875 | 0.213354 | 60,716 | 593 | 890 | 102.387858 | 0.290733 | 0.01199 | 0 | 0.237548 | 0 | 0 | 0.014337 | 0.000751 | 0 | 0 | 0.000768 | 0 | 0.003831 | 1 | 0.028736 | false | 0 | 0 | 0.001916 | 0.09387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f02df27268b198d61a3689a3ec0da34902678f2a | 1,172 | py | Python | MlbCrawler.py | mudkipmaster/MLB-Crawler | 122cac5f9675599cd6ba4868e11359bae28db633 | [
"MIT"
] | null | null | null | MlbCrawler.py | mudkipmaster/MLB-Crawler | 122cac5f9675599cd6ba4868e11359bae28db633 | [
"MIT"
] | 1 | 2021-06-01T23:38:30.000Z | 2021-06-01T23:38:30.000Z | MlbCrawler.py | mudkipmaster/MLB-Crawler | 122cac5f9675599cd6ba4868e11359bae28db633 | [
"MIT"
] | null | null | null | import datetime
import time
import luigi
import argparse
from visualization_tasks.PlotAllCalls import PlotAllCalls
from visualization_tasks.PlotB2S1Histogram import PlotB2S1Histogram
from visualization_tasks.PlotB3S0Histogram import PlotB3S0Histogram
from visualization_tasks.PlotColumnEqualsDifferenceHistogram impor... | 35.515152 | 103 | 0.803754 | 121 | 1,172 | 7.603306 | 0.421488 | 0.129348 | 0.167391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009814 | 0.130546 | 1,172 | 32 | 104 | 36.625 | 0.893032 | 0.023891 | 0 | 0 | 0 | 0 | 0.056042 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0 | false | 0 | 0.52 | 0 | 0.52 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
f0524f944e3187d957f82149f7477f36627cb41c | 287 | py | Python | application/frontend/templatetags/versiontag.py | cqkenuo/w12scan | eac6147a186cac152fa1ffdd0a31dcb1d3e19d0b | [
"MIT"
] | 864 | 2019-05-13T03:43:23.000Z | 2022-03-27T13:11:34.000Z | application/frontend/templatetags/versiontag.py | cqkenuo/w12scan | eac6147a186cac152fa1ffdd0a31dcb1d3e19d0b | [
"MIT"
] | 60 | 2019-05-13T05:40:29.000Z | 2021-11-14T02:21:02.000Z | application/frontend/templatetags/versiontag.py | cqkenuo/w12scan | eac6147a186cac152fa1ffdd0a31dcb1d3e19d0b | [
"MIT"
] | 291 | 2019-05-14T08:03:32.000Z | 2022-03-27T15:58:53.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2019/3/29 5:35 PM
# @Author : w8ay
# @File : versiontag.py
from django import template
from config import W12SCAN_VERSION
register = template.Library()
@register.simple_tag
def w12_version():
return W12SCAN_VERSION
| 17.9375 | 34 | 0.69338 | 40 | 287 | 4.875 | 0.825 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080851 | 0.181185 | 287 | 15 | 35 | 19.133333 | 0.748936 | 0.393728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
f0547871d613b4188d670395544815b5c2fb2c80 | 228 | py | Python | pyhacks/constants.py | Quitten/pyhacks | dc09f83555ae9db52b7928c4aad3edca50258947 | [
"MIT"
] | 7 | 2019-12-12T14:18:26.000Z | 2021-11-17T18:34:31.000Z | pyhacks/constants.py | Quitten/pyhacks | dc09f83555ae9db52b7928c4aad3edca50258947 | [
"MIT"
] | 1 | 2020-02-27T12:19:44.000Z | 2020-02-27T12:19:44.000Z | pyhacks/constants.py | Quitten/pyhacks | dc09f83555ae9db52b7928c4aad3edca50258947 | [
"MIT"
] | 5 | 2019-11-03T13:12:38.000Z | 2021-11-17T18:34:34.000Z | LOG_FILE_NAME = "logs/log.txt"
SUCESS_FILE_NAME = "logs/success.txt"
FAIL_FILE_NAME = "logs/fail.txt"
EXCEPTION_FILE_NAME = "logs/exception.txt"
ALL_PATHS = [LOG_FILE_NAME, SUCESS_FILE_NAME, FAIL_FILE_NAME, EXCEPTION_FILE_NAME] | 38 | 82 | 0.807018 | 38 | 228 | 4.394737 | 0.289474 | 0.383234 | 0.287425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 228 | 6 | 82 | 38 | 0.795238 | 0 | 0 | 0 | 0 | 0 | 0.257642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f06b1df22ede97356aeb049b95ee70d8ac254432 | 5,300 | py | Python | reconstruction/reconstruction_model.py | garyxcheng/federated | ba7133ead6127af71ea9356e26bfd05c02f8324a | [
"Apache-2.0"
] | 330 | 2020-09-14T23:10:16.000Z | 2022-03-30T19:49:19.000Z | reconstruction/reconstruction_model.py | garyxcheng/federated | ba7133ead6127af71ea9356e26bfd05c02f8324a | [
"Apache-2.0"
] | 52 | 2020-09-30T06:10:51.000Z | 2022-03-31T19:25:16.000Z | reconstruction/reconstruction_model.py | garyxcheng/federated | ba7133ead6127af71ea9356e26bfd05c02f8324a | [
"Apache-2.0"
] | 119 | 2020-09-24T04:54:46.000Z | 2022-03-31T21:46:57.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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 38.405797 | 80 | 0.74 | 734 | 5,300 | 5.282016 | 0.36376 | 0.060356 | 0.027083 | 0.024761 | 0.122259 | 0.109363 | 0.109363 | 0.109363 | 0.109363 | 0.109363 | 0 | 0.0028 | 0.191321 | 5,300 | 137 | 81 | 38.686131 | 0.901773 | 0.820189 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.269231 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f07f67db0005345c49b95c4444540b5297d82701 | 1,265 | py | Python | spikeextractors/__init__.py | alowet/spikeextractors | 3e5a175a5523a3eb3578f96b0fffebee54108d9f | [
"MIT"
] | null | null | null | spikeextractors/__init__.py | alowet/spikeextractors | 3e5a175a5523a3eb3578f96b0fffebee54108d9f | [
"MIT"
] | null | null | null | spikeextractors/__init__.py | alowet/spikeextractors | 3e5a175a5523a3eb3578f96b0fffebee54108d9f | [
"MIT"
] | null | null | null | from .recordingextractor import RecordingExtractor
from .sortingextractor import SortingExtractor
from .cacheextractors import CacheRecordingExtractor, CacheSortingExtractor
from .subsortingextractor import SubSortingExtractor
from .subrecordingextractor import SubRecordingExtractor
from .multirecordingchannelextractor... | 45.178571 | 117 | 0.835573 | 143 | 1,265 | 7.083916 | 0.482517 | 0.011846 | 0.015795 | 0.032577 | 0.029615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018784 | 0.116206 | 1,265 | 27 | 118 | 46.851852 | 0.887299 | 0 | 0 | 0 | 0 | 0.045455 | 0.118577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.045455 | 0.681818 | 0 | 0.681818 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b2c562f84c140f5c5530f18f8163315a63e82054 | 2,781 | py | Python | Needleman-Wunsch.py | wugui2020/BioInformatics-Python | 802b54edc9a2dc25462fa80170e165fddc5e5be0 | [
"MIT"
] | null | null | null | Needleman-Wunsch.py | wugui2020/BioInformatics-Python | 802b54edc9a2dc25462fa80170e165fddc5e5be0 | [
"MIT"
] | null | null | null | Needleman-Wunsch.py | wugui2020/BioInformatics-Python | 802b54edc9a2dc25462fa80170e165fddc5e5be0 | [
"MIT"
] | null | null | null | def alignCost(x,y):
mp = [
[4,'#',0,-2,-1,-2, 0,-2,-1,'#',-1,-1,-1,-2,'#',-1,-1,-1, 1, 0,'#',0,-3,'#',-2],
[],
[0,'#',9,-3,-4,-2,-3,-3,-1,'#',-3,-1,-1,-3,'#',-3,-3,-3,-1,-1,'#',-1,-2,'#',-2],
[-2,'#',-3,6,2,-3,-1,-1,-3,'#',-1,-4,-3,1,'#',-1,0,-2,0,-1,'#',-3,-4,'#',-3]... | 38.625 | 93 | 0.286588 | 555 | 2,781 | 1.434234 | 0.081081 | 0.110553 | 0.060302 | 0.035176 | 0.451005 | 0.287688 | 0.103015 | 0.022613 | 0.022613 | 0 | 0 | 0.195065 | 0.227616 | 2,781 | 71 | 94 | 39.169014 | 0.175512 | 0 | 0 | 0.21875 | 0 | 0 | 0.043825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.015625 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2de6b4623b4ad9a8ae05111805cac1b1c51e396 | 5,947 | py | Python | dbver/versions/00001_init.py | bopopescu/redis-ctl | 16ae59b6dfe3d62ecb59951bd81395c370b005ef | [
"MIT"
] | 109 | 2015-02-11T03:06:09.000Z | 2017-06-06T09:48:00.000Z | dbver/versions/00001_init.py | bopopescu/redis-ctl | 16ae59b6dfe3d62ecb59951bd81395c370b005ef | [
"MIT"
] | 14 | 2015-04-10T02:09:21.000Z | 2017-04-24T00:22:18.000Z | dbver/versions/00001_init.py | bopopescu/redis-ctl | 16ae59b6dfe3d62ecb59951bd81395c370b005ef | [
"MIT"
] | 53 | 2015-03-13T15:34:34.000Z | 2017-05-05T22:31:49.000Z | from migrate import *
from sqlalchemy.sql.sqltypes import *
from sqlalchemy.sql.schema import *
from sqlalchemy.dialects.mysql.base import MEDIUMTEXT
from sqlalchemy.sql.functions import func
meta = MetaData()
cluster = Table(
'cluster', meta,
Column('id', Integer, nullable=False, primary_key=True, autoincrem... | 44.051852 | 117 | 0.726249 | 738 | 5,947 | 5.654472 | 0.120596 | 0.11838 | 0.110232 | 0.099688 | 0.773065 | 0.730649 | 0.702133 | 0.666906 | 0.656842 | 0.656842 | 0 | 0.009224 | 0.124937 | 5,947 | 134 | 118 | 44.380597 | 0.792659 | 0 | 0 | 0.396694 | 0 | 0 | 0.126114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016529 | false | 0 | 0.041322 | 0 | 0.057851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
b2df6233da9d96840b70dbd9d19eb0740a13807b | 606 | py | Python | error.py | 2jun0/CodeSecret-Backend | 66fcb2de26ef4f7eb0f0ec8dcc00b2e0732d592c | [
"MIT"
] | 1 | 2020-07-31T02:50:09.000Z | 2020-07-31T02:50:09.000Z | error.py | 2jun0/CodeSecret-Backend | 66fcb2de26ef4f7eb0f0ec8dcc00b2e0732d592c | [
"MIT"
] | null | null | null | error.py | 2jun0/CodeSecret-Backend | 66fcb2de26ef4f7eb0f0ec8dcc00b2e0732d592c | [
"MIT"
] | null | null | null | from flask import jsonify, make_response
class CustomError(Exception):
def __init__(self, error, msg=None, status=None, exception=None):
self.error = error
self.msg = msg
self.status = status
self.exception = exception
def __str__(self):
if self.exception is not None:
return "[exception]\n{}\n[{}:{}]:{... | 30.3 | 97 | 0.707921 | 86 | 606 | 4.837209 | 0.290698 | 0.108173 | 0.086538 | 0.091346 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133663 | 606 | 20 | 98 | 30.3 | 0.792381 | 0 | 0 | 0 | 0 | 0 | 0.060956 | 0.044481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b2e6ba4582bed675502a84f6f2e44530fbe13e18 | 37,500 | py | Python | rdkit/Chem/Scaffolds/UnitTestMurckoScaffold.py | kazuyaujihara/rdkit | 06027dcd05674787b61f27ba46ec0d42a6037540 | [
"BSD-3-Clause"
] | 1,609 | 2015-01-05T02:41:13.000Z | 2022-03-30T21:57:24.000Z | rdkit/Chem/Scaffolds/UnitTestMurckoScaffold.py | kazuyaujihara/rdkit | 06027dcd05674787b61f27ba46ec0d42a6037540 | [
"BSD-3-Clause"
] | 3,412 | 2015-01-06T12:13:33.000Z | 2022-03-31T17:25:41.000Z | rdkit/Chem/Scaffolds/UnitTestMurckoScaffold.py | kazuyaujihara/rdkit | 06027dcd05674787b61f27ba46ec0d42a6037540 | [
"BSD-3-Clause"
] | 811 | 2015-01-11T03:33:48.000Z | 2022-03-28T11:57:49.000Z | # $Id: test_MurckoScaffold.py 3672 2010-06-14 17:10:00Z landrgr1 $
#
# Created by Peter Gedeck, June 2008
#
from collections import namedtuple
import doctest
import unittest
from rdkit import Chem
from rdkit.Chem.Scaffolds import MurckoScaffold
from rdkit.Chem.Scaffolds.MurckoScaffold import (GetScaffoldForMol, _pyGe... | 66.021127 | 100 | 0.63688 | 5,798 | 37,500 | 4.116419 | 0.156606 | 0.014413 | 0.006704 | 0.002179 | 0.135208 | 0.097373 | 0.080907 | 0.075711 | 0.068169 | 0.058617 | 0 | 0.114982 | 0.135867 | 37,500 | 567 | 101 | 66.137566 | 0.62154 | 0.01776 | 0 | 0.024809 | 0 | 0.305344 | 0.636571 | 0.602744 | 0 | 0 | 0 | 0 | 0.024809 | 1 | 0.015267 | false | 0 | 0.01145 | 0.001908 | 0.03626 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2eb99b981d2445a37f380de523956e7caea3a77 | 24,442 | py | Python | src/froglang/CommandCodeGenerator/command-code.py | Diggie-Bro/Frog | bec49a1b21f0894d35a13418e373a0d62c1ba848 | [
"MIT"
] | 4 | 2020-10-26T06:25:05.000Z | 2020-10-29T06:15:19.000Z | src/froglang/CommandCodeGenerator/command-code.py | Diggie-Bro/Frog-prototype-CommandCode | bec49a1b21f0894d35a13418e373a0d62c1ba848 | [
"MIT"
] | null | null | null | src/froglang/CommandCodeGenerator/command-code.py | Diggie-Bro/Frog-prototype-CommandCode | bec49a1b21f0894d35a13418e373a0d62c1ba848 | [
"MIT"
] | null | null | null | """
command-code.py
The Frog Programming Language Official Commandcode converter
Development Leader: @RedoC
"""
import copy
import re
import grammar.operations as oper
import grammar.keywords as keywd
import utils.parens as utilsparen
class CommandCoder:
"""
class CommandCoder convert frogcode to commandcode... | 42.656195 | 116 | 0.493208 | 2,035 | 24,442 | 5.819656 | 0.090909 | 0.097526 | 0.04965 | 0.04053 | 0.738664 | 0.716879 | 0.681669 | 0.656844 | 0.650764 | 0.605843 | 0 | 0.020426 | 0.405122 | 24,442 | 572 | 117 | 42.730769 | 0.794085 | 0.060183 | 0 | 0.619681 | 0 | 0 | 0.014286 | 0.001132 | 0 | 0 | 0 | 0.027972 | 0 | 1 | 0.010638 | false | 0.00266 | 0.013298 | 0 | 0.138298 | 0.00266 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 3 |
b2fc4b30539637d4b77892b8e2ee35c62dcf0f9f | 216,853 | py | Python | stubs/System/CodeDom/__init__.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs/System/CodeDom/__init__.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs/System/CodeDom/__init__.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | # encoding: utf-8
# module System.CodeDom calls itself CodeDom
# from System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class CodeObject(object):
"""
Provides a common base class for most Code Document Obje... | 36.942589 | 324 | 0.630911 | 21,704 | 216,853 | 6.170199 | 0.029119 | 0.040771 | 0.026554 | 0.03414 | 0.723697 | 0.682291 | 0.651817 | 0.632723 | 0.614286 | 0.594267 | 0 | 0.00074 | 0.28933 | 216,853 | 5,869 | 325 | 36.948884 | 0.868231 | 0.040115 | 0 | 0.809054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.340741 | 0.003292 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
650f012806c04ae749a6d94ca50c8b7d16184c5b | 159 | py | Python | old/ex004.py | N3mT3nta/ExerciciosPython | 23451dd800ef0d73b75e9fa78d0dcfa0859206a0 | [
"MIT"
] | null | null | null | old/ex004.py | N3mT3nta/ExerciciosPython | 23451dd800ef0d73b75e9fa78d0dcfa0859206a0 | [
"MIT"
] | null | null | null | old/ex004.py | N3mT3nta/ExerciciosPython | 23451dd800ef0d73b75e9fa78d0dcfa0859206a0 | [
"MIT"
] | null | null | null | n1 = input('Digite algo:')
print('isnumeric:', n1.isnumeric())
print('isalpha:', n1.isalpha())
print('islower:', n1.islower())
print('isalnum:', n1.isalnum())
| 26.5 | 35 | 0.660377 | 20 | 159 | 5.25 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034014 | 0.075472 | 159 | 5 | 36 | 31.8 | 0.680272 | 0 | 0 | 0 | 0 | 0 | 0.289308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
65148b013dea7fdf0f04635631cd5c0d34693456 | 100 | py | Python | yekpay/signals.py | maryam-afzp/django-yekpay | f7b9d7914035ea4f27238eba9e0c70227cc65046 | [
"MIT"
] | 1 | 2020-03-05T19:54:09.000Z | 2020-03-05T19:54:09.000Z | yekpay/signals.py | Glyphack/django-yekpay | 8c4a44853207be4ff0b1711c0524fb0201859b19 | [
"MIT"
] | null | null | null | yekpay/signals.py | Glyphack/django-yekpay | 8c4a44853207be4ff0b1711c0524fb0201859b19 | [
"MIT"
] | null | null | null | from django.dispatch import Signal
transaction_verified = Signal(providing_args=["transaction",])
| 20 | 62 | 0.81 | 11 | 100 | 7.181818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 100 | 4 | 63 | 25 | 0.868132 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
651c0ad2711a78326851c312a337b1f13d9b75e2 | 533 | py | Python | src/tensorflow_node/architectures/architecture.py | elggem/tensorflow_node | 8669fcfa058e54673c1348abf197dd1cfc373f68 | [
"Unlicense"
] | 9 | 2017-02-14T14:51:40.000Z | 2020-02-13T19:31:56.000Z | src/tensorflow_node/architectures/architecture.py | elggem/ae-destin | 8669fcfa058e54673c1348abf197dd1cfc373f68 | [
"Unlicense"
] | 1 | 2017-05-13T13:10:58.000Z | 2018-02-23T05:52:19.000Z | src/tensorflow_node/architectures/architecture.py | elggem/ae-destin | 8669fcfa058e54673c1348abf197dd1cfc373f68 | [
"Unlicense"
] | 4 | 2017-06-14T12:13:04.000Z | 2020-11-01T12:38:07.000Z | # -*- coding: utf-8 -*-
import abc
import sys
import rospy
import tensorflow as tf
from tensorflow_node.nodes import *
class NetworkArchitecture(object):
__metaclass__ = abc.ABCMeta
def __init__(self):
self.train_op = tf.no_op()
self.nodes = []
pass
def str_to_class(self, str):... | 21.32 | 59 | 0.673546 | 71 | 533 | 4.690141 | 0.492958 | 0.03003 | 0.06006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002427 | 0.227017 | 533 | 24 | 60 | 22.208333 | 0.805825 | 0.0394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.3125 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
65343f0ab025553a37f7164fea94056a8a228b2e | 868 | py | Python | api/app/route/user.py | hexa4313/velov-companion-server | 570c246029002d83d7d7a6a729f29dab9dfa9909 | [
"MIT"
] | null | null | null | api/app/route/user.py | hexa4313/velov-companion-server | 570c246029002d83d7d7a6a729f29dab9dfa9909 | [
"MIT"
] | null | null | null | api/app/route/user.py | hexa4313/velov-companion-server | 570c246029002d83d7d7a6a729f29dab9dfa9909 | [
"MIT"
] | null | null | null | from flask import request
from flask.ext import restful
from flask.ext.restful import marshal_with, reqparse
from route.base import api
from flask.ext.bcrypt import generate_password_hash
from flask.ext.bcrypt import check_password_hash
from model.base import db
from route.base import verify_auth
from model.user impor... | 24.8 | 66 | 0.720046 | 120 | 868 | 5.033333 | 0.358333 | 0.074503 | 0.07947 | 0.062914 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 868 | 34 | 67 | 25.529412 | 0.862857 | 0 | 0 | 0.166667 | 1 | 0 | 0.020737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.375 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
653a51b11f39575433945f7eb552222df68eed9e | 220 | py | Python | backend/users/tests/utils.py | Leryud/doccano-lilo | b67c17431bedd76624346a0dbc41dd226cb1a0b5 | [
"MIT"
] | null | null | null | backend/users/tests/utils.py | Leryud/doccano-lilo | b67c17431bedd76624346a0dbc41dd226cb1a0b5 | [
"MIT"
] | null | null | null | backend/users/tests/utils.py | Leryud/doccano-lilo | b67c17431bedd76624346a0dbc41dd226cb1a0b5 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
def make_user(username: str = 'bob'):
user_model = get_user_model()
user, _ = user_model.objects.get_or_create(username=username, password='pass')
return user
| 27.5 | 82 | 0.745455 | 32 | 220 | 4.8125 | 0.59375 | 0.233766 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 220 | 7 | 83 | 31.428571 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.031818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e8da2762f83bcedc21a372dd3874e054e7fcbb6f | 461 | py | Python | azchaosaws/utils.py | awslabs/aws-az-failure-chaostoolkit | 95f682ce3e96efbf8c6aee58123b5dbbdfd441ee | [
"Apache-2.0"
] | 6 | 2021-10-20T13:01:00.000Z | 2022-02-23T12:32:31.000Z | azchaosaws/utils.py | awslabs/aws-az-failure-chaostoolkit | 95f682ce3e96efbf8c6aee58123b5dbbdfd441ee | [
"Apache-2.0"
] | 1 | 2022-02-09T09:33:02.000Z | 2022-03-03T14:03:09.000Z | azchaosaws/utils.py | awslabs/aws-az-failure-chaostoolkit | 95f682ce3e96efbf8c6aee58123b5dbbdfd441ee | [
"Apache-2.0"
] | null | null | null | import functools
def args_fmt(fn):
@functools.wraps(fn)
def wrapper(**kwargs):
if type(kwargs["dry_run"]) == str:
kwargs["dry_run"] = (
kwargs["dry_run"].lower() == "true"
if (
kwargs["dry_run"].lower() == "true"
or kw... | 24.263158 | 59 | 0.436009 | 45 | 461 | 4.333333 | 0.466667 | 0.230769 | 0.307692 | 0.261538 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.418655 | 461 | 18 | 60 | 25.611111 | 0.727612 | 0 | 0 | 0.133333 | 0 | 0 | 0.104121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8eaff73ac1cea3415bdf135f1182a4cde7ee751 | 128 | py | Python | Recursion/Int_Sumofnum.py | ShivamBhosale/100DaysOfCode_V2 | 9a7a2bbc728c7014fea36bcb6ca0f6a02516e274 | [
"CC0-1.0"
] | null | null | null | Recursion/Int_Sumofnum.py | ShivamBhosale/100DaysOfCode_V2 | 9a7a2bbc728c7014fea36bcb6ca0f6a02516e274 | [
"CC0-1.0"
] | null | null | null | Recursion/Int_Sumofnum.py | ShivamBhosale/100DaysOfCode_V2 | 9a7a2bbc728c7014fea36bcb6ca0f6a02516e274 | [
"CC0-1.0"
] | null | null | null | def sumOfNumbers(n):
if n <= 1:
return n
else:
return n + sumOfNumbers(n-1)
print(sumOfNumbers(10)) | 18.285714 | 36 | 0.554688 | 17 | 128 | 4.176471 | 0.529412 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.328125 | 128 | 7 | 37 | 18.285714 | 0.77907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8f27dcf06cd4ecb2f93a8195aea47e22d9a3ad3 | 436 | py | Python | Newton Scipy of Rosenbrock (1).py | oliver779/Computational_Methods_Course | e3d96d97ae0b3acaa1b61474eb18b3fbbf8edc9c | [
"MIT"
] | null | null | null | Newton Scipy of Rosenbrock (1).py | oliver779/Computational_Methods_Course | e3d96d97ae0b3acaa1b61474eb18b3fbbf8edc9c | [
"MIT"
] | null | null | null | Newton Scipy of Rosenbrock (1).py | oliver779/Computational_Methods_Course | e3d96d97ae0b3acaa1b61474eb18b3fbbf8edc9c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 17 09:11:12 2020
@author: emc1977
"""
import numpy as np
from scipy import optimize
def f(x): # The rosenbrock function
return .5*(1 - x[0])**2 + (x[1] - x[0]**2)**2
def jacobian(x):
return np.array((-2*.5*(1 - x[0]) - 4*x[0]*(x[1] - x[0]**2), 2... | 22.947368 | 86 | 0.550459 | 78 | 436 | 3.076923 | 0.538462 | 0.05 | 0.0625 | 0.066667 | 0.075 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0.211009 | 436 | 18 | 87 | 24.222222 | 0.581395 | 0.229358 | 0 | 0 | 0 | 0 | 0.029126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e8fd301469cd7983144e55e4df12d342d443c27d | 4,350 | py | Python | DJCLayers.py | mneukum/DeepJetCore | 216d5c12d995c8f9dd6a03f8e47cf16d3474314b | [
"Apache-2.0"
] | null | null | null | DJCLayers.py | mneukum/DeepJetCore | 216d5c12d995c8f9dd6a03f8e47cf16d3474314b | [
"Apache-2.0"
] | null | null | null | DJCLayers.py | mneukum/DeepJetCore | 216d5c12d995c8f9dd6a03f8e47cf16d3474314b | [
"Apache-2.0"
] | null | null | null |
djc_global_layers_list={}
from keras.layers import Layer
import tensorflow as tf
class SelectFeatures(Layer):
def __init__(self, index_left, index_right, **kwargs):
super(SelectFeatures, self).__init__(**kwargs)
self.index_left=index_left
self.index_right=index_right
def comput... | 28.807947 | 80 | 0.63954 | 521 | 4,350 | 5.03263 | 0.142035 | 0.053394 | 0.045767 | 0.057971 | 0.535469 | 0.466819 | 0.435927 | 0.384058 | 0.384058 | 0.384058 | 0 | 0.004865 | 0.243908 | 4,350 | 151 | 81 | 28.807947 | 0.792338 | 0.009885 | 0 | 0.378947 | 0 | 0 | 0.029282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294737 | false | 0 | 0.021053 | 0.136842 | 0.610526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3305ba890313db6b920f206936f3bda6e0f8db48 | 32,072 | py | Python | course_sched/test_course_sched.py | mmxmb/course-sched | 2de97797456f040280a9060fb71215e4f5cba1b0 | [
"MIT"
] | null | null | null | course_sched/test_course_sched.py | mmxmb/course-sched | 2de97797456f040280a9060fb71215e4f5cba1b0 | [
"MIT"
] | null | null | null | course_sched/test_course_sched.py | mmxmb/course-sched | 2de97797456f040280a9060fb71215e4f5cba1b0 | [
"MIT"
] | null | null | null | import unittest
from course_sched import (
CourseSched,
COURSE_GRANULARITY,
Course,
Curriculum,
SolverCallbackUtil,
SchedPartialSolutionSerializer
)
import os
import sys
from schema import SchemaError
sys.path.append(os.path.abspath('./api_schema'))
from api_schema import response_schema
N_SOL_... | 44.918768 | 149 | 0.506267 | 3,521 | 32,072 | 4.360693 | 0.070435 | 0.031653 | 0.038101 | 0.03022 | 0.745995 | 0.729256 | 0.702293 | 0.679432 | 0.649147 | 0.618927 | 0 | 0.031823 | 0.408207 | 32,072 | 713 | 150 | 44.981767 | 0.777134 | 0.046396 | 0 | 0.668367 | 0 | 0 | 0.05185 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 1 | 0.042517 | false | 0 | 0.010204 | 0 | 0.068027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
3319c7eacdff318d1067e12febb0b778580354e2 | 738 | py | Python | code/genric/Chem.py | PrincetonLIPS/reversible-inductive-construction | 62dc14d52035b6af92038dd6211b74738dce9563 | [
"MIT"
] | 31 | 2019-07-22T23:34:43.000Z | 2021-09-10T14:28:53.000Z | code/genric/Chem.py | PrincetonLIPS/reversible-inductive-construction | 62dc14d52035b6af92038dd6211b74738dce9563 | [
"MIT"
] | null | null | null | code/genric/Chem.py | PrincetonLIPS/reversible-inductive-construction | 62dc14d52035b6af92038dd6211b74738dce9563 | [
"MIT"
] | 3 | 2019-12-03T14:12:45.000Z | 2020-07-17T14:50:18.000Z | """ Chem utilities from rdkit exposed through custom wrappers.
This module will attempt to import our custom extension. If it fails,
it falls back to the `rdkit` implementation.
"""
try:
from .genric_extensions import MolToSmiles, MolFromSmiles, MolFragmentToSmiles, Kekulize, CombineMols, GetSymmSSSR, SanitizeM... | 38.842105 | 131 | 0.791328 | 90 | 738 | 6.411111 | 0.522222 | 0.062392 | 0.103986 | 0.135182 | 0.443674 | 0.443674 | 0.443674 | 0.325823 | 0.325823 | 0 | 0 | 0 | 0.151762 | 738 | 18 | 132 | 41 | 0.921725 | 0.235772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
331a8a0b64bf80c280c13315b8b7a6818ccf1fcd | 418 | py | Python | tests/mock_response.py | alexmacniven/powned | c3e9fcf286e766bc6947c2c7471310763a7dde38 | [
"MIT"
] | null | null | null | tests/mock_response.py | alexmacniven/powned | c3e9fcf286e766bc6947c2c7471310763a7dde38 | [
"MIT"
] | 1 | 2019-11-01T20:01:36.000Z | 2019-11-01T20:01:36.000Z | tests/mock_response.py | alexmacniven/powned | c3e9fcf286e766bc6947c2c7471310763a7dde38 | [
"MIT"
] | null | null | null | import requests.exceptions
class MockResponse:
def __init__(self, status, content):
self._status_code = status
self._content = content
@property
def status_code(self):
return self._status_code
@property
def text(self):
return str(self._content)
def raise_for_... | 20.9 | 47 | 0.65311 | 48 | 418 | 5.395833 | 0.416667 | 0.15444 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009836 | 0.270335 | 418 | 19 | 48 | 22 | 0.839344 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
332b8f490df99d57e23b0c4dd42504608893c1c1 | 565 | py | Python | 14-Introduction to Data Visualization with Seaborn/Chapter_1/05-Hue and scatter plots.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | 1 | 2020-10-18T16:42:28.000Z | 2020-10-18T16:42:28.000Z | 14-Introduction to Data Visualization with Seaborn/Chapter_1/05-Hue and scatter plots.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | null | null | null | 14-Introduction to Data Visualization with Seaborn/Chapter_1/05-Hue and scatter plots.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | null | null | null | #part1
# Import Matplotlib and Seaborn
import matplotlib.pyplot as plt
import seaborn as sns
# Create a scatter plot of absences vs. final grade
sns.scatterplot(x="absences",y="G3",data=student_data,hue="location")
# Show plot
plt.show()
#part2
# Import Matplotlib and Seaborn
import matplotlib.pyp... | 21.730769 | 70 | 0.677876 | 79 | 565 | 4.810127 | 0.443038 | 0.168421 | 0.1 | 0.136842 | 0.647368 | 0.647368 | 0.647368 | 0.647368 | 0.647368 | 0.647368 | 0 | 0.00907 | 0.219469 | 565 | 26 | 71 | 21.730769 | 0.852608 | 0.325664 | 0 | 0.6 | 0 | 0 | 0.131805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
332d7f26443cd1e8b0515a059eccc916e1796ca8 | 550 | py | Python | dolweb/docs/templatetags/docs.py | SirMangler/www | 6c6b29a18eb7dbe910a78585385766ba7b2a329f | [
"MIT"
] | 85 | 2015-03-05T09:19:56.000Z | 2022-03-29T05:01:22.000Z | dolweb/docs/templatetags/docs.py | SirMangler/www | 6c6b29a18eb7dbe910a78585385766ba7b2a329f | [
"MIT"
] | 92 | 2015-01-12T06:20:49.000Z | 2022-02-09T05:22:58.000Z | dolweb/docs/templatetags/docs.py | SirMangler/www | 6c6b29a18eb7dbe910a78585385766ba7b2a329f | [
"MIT"
] | 81 | 2015-01-10T03:48:05.000Z | 2022-03-15T06:12:02.000Z | # Copyright (c) 2018 Dolphin Emulator Website Contributors
# SPDX-License-Identifier: MIT
import markdown
from django import template
from django.utils import safestring
from dolweb.utils.dyni18n import translate, has_translation
register = template.Library()
@register.filter
def faq_translate(text):
return tra... | 23.913043 | 59 | 0.792727 | 72 | 550 | 5.958333 | 0.472222 | 0.097902 | 0.118881 | 0.13986 | 0.172494 | 0.172494 | 0.172494 | 0.172494 | 0 | 0 | 0 | 0.012346 | 0.116364 | 550 | 22 | 60 | 25 | 0.87037 | 0.154545 | 0 | 0.214286 | 0 | 0 | 0.064935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3360635e4d8a6d1b537911bbd8c55ba51ab78d30 | 592 | py | Python | mariner/exceptions.py | terabyte128/mariner | c54e116c7b6a5079947dd9471179fb83743b284f | [
"MIT"
] | 167 | 2020-10-13T03:27:45.000Z | 2022-03-20T17:46:11.000Z | mariner/exceptions.py | terabyte128/mariner | c54e116c7b6a5079947dd9471179fb83743b284f | [
"MIT"
] | 457 | 2020-09-16T14:06:20.000Z | 2022-03-21T10:55:56.000Z | mariner/exceptions.py | terabyte128/mariner | c54e116c7b6a5079947dd9471179fb83743b284f | [
"MIT"
] | 56 | 2020-10-24T07:37:45.000Z | 2022-03-28T11:13:43.000Z | from abc import ABC, abstractmethod
class MarinerException(Exception, ABC):
@abstractmethod
def get_title(self) -> str:
raise NotImplementedError
@abstractmethod
def get_description(self) -> str:
raise NotImplementedError
class UnexpectedPrinterResponse(MarinerException):
def __... | 25.73913 | 84 | 0.701014 | 62 | 592 | 6.564516 | 0.435484 | 0.058968 | 0.09828 | 0.07371 | 0.206388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 592 | 22 | 85 | 26.909091 | 0.877155 | 0 | 0 | 0.533333 | 0 | 0 | 0.157095 | 0.035473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0.133333 | 0.666667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
336cb93a8ef5f37dcbcf14c0ea8a58de8938c004 | 1,915 | py | Python | aliyun-python-sdk-core/tests/auth/algorithm/test_sha_hmac256.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-core/tests/auth/algorithm/test_sha_hmac256.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-core/tests/auth/algorithm/test_sha_hmac256.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # coding=utf-8
from tests import unittest
from aliyunsdkcore.auth.algorithm import sha_hmac256 as hmac256
class TestShaHmac256(unittest.TestCase):
def test(self):
self.assertEqual(hmac256.get_signer_name(), "SHA256withRSA")
self.assertEqual(hmac256.get_signer_type(), "PRIVATEKEY")
self.a... | 49.102564 | 84 | 0.830287 | 119 | 1,915 | 13.252101 | 0.697479 | 0.047559 | 0.041852 | 0.047559 | 0.091947 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 0.108094 | 1,915 | 38 | 85 | 50.394737 | 0.808548 | 0.006266 | 0 | 0.0625 | 0 | 0 | 0.657549 | 0.618622 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.15625 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6828740247efc12f4f957124c40903ccbadabe5d | 253 | py | Python | server/athenian/api/models/web/deployment_conclusion.py | athenianco/athenian-api | dd5556101a8c49703d6b0516e4268b9e8d8eda5b | [
"RSA-MD"
] | 9 | 2020-10-11T22:12:03.000Z | 2022-02-26T02:16:45.000Z | server/athenian/api/models/web/deployment_conclusion.py | athenianco/athenian-api | dd5556101a8c49703d6b0516e4268b9e8d8eda5b | [
"RSA-MD"
] | 246 | 2019-12-05T06:37:30.000Z | 2022-03-29T10:00:07.000Z | server/athenian/api/models/web/deployment_conclusion.py | athenianco/athenian-api | dd5556101a8c49703d6b0516e4268b9e8d8eda5b | [
"RSA-MD"
] | 5 | 2019-12-04T22:38:05.000Z | 2021-02-26T00:50:04.000Z | from athenian.api.models.web.base_model_ import Enum, Model
class DeploymentConclusion(Model, metaclass=Enum):
"""State of the completed deployment. Case-insensitive."""
SUCCESS = "SUCCESS"
FAILURE = "FAILURE"
CANCELLED = "CANCELLED"
| 25.3 | 62 | 0.72332 | 28 | 253 | 6.464286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166008 | 253 | 9 | 63 | 28.111111 | 0.85782 | 0.205534 | 0 | 0 | 0 | 0 | 0.117949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
683bbbb88024a1ecfdf2d75bdc6027deb0aa7f76 | 5,591 | py | Python | baselines/ViT/interpret_methods.py | XianrenYty/Transition_Attention_Maps | 8329327179f6dcf76df29e03ae519cd594595678 | [
"Apache-2.0"
] | 1 | 2021-10-20T08:07:37.000Z | 2021-10-20T08:07:37.000Z | baselines/ViT/interpret_methods.py | XianrenYty/Transition_Attention_Maps | 8329327179f6dcf76df29e03ae519cd594595678 | [
"Apache-2.0"
] | null | null | null | baselines/ViT/interpret_methods.py | XianrenYty/Transition_Attention_Maps | 8329327179f6dcf76df29e03ae519cd594595678 | [
"Apache-2.0"
] | null | null | null | import os
import torch
from torch import nn
import numpy as np
import torch.nn.functional as F
class InterpretTransformer(object):
def __init__(self, model):
self.model = model
self.model.eval()
def transition_attention_maps(self, input, index=None, start_layer=4, steps=20, with_integral=... | 36.070968 | 123 | 0.576283 | 775 | 5,591 | 3.985806 | 0.139355 | 0.071868 | 0.082551 | 0.041437 | 0.754289 | 0.754289 | 0.732276 | 0.713823 | 0.611848 | 0.586274 | 0 | 0.018454 | 0.282776 | 5,591 | 155 | 124 | 36.070968 | 0.75187 | 0.015561 | 0 | 0.545455 | 0 | 0 | 0.000909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68558baab635bffb0c240d1248b02fbf28257ba6 | 230 | py | Python | LEVEL1/폰켓몬/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | LEVEL1/폰켓몬/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | LEVEL1/폰켓몬/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | def solution(nums):
setNums = set(nums)
if len(setNums) > (len(nums) // 2): return len(nums) // 2
return len(setNums)
# print(solution([3,1,2,3]))
# print(solution([3,3,3,2,2,4]))
print(solution([3, 3, 3, 2, 2, 2]))
| 23 | 61 | 0.582609 | 41 | 230 | 3.268293 | 0.317073 | 0.059701 | 0.313433 | 0.208955 | 0.5 | 0.268657 | 0.268657 | 0 | 0 | 0 | 0 | 0.095238 | 0.178261 | 230 | 9 | 62 | 25.555556 | 0.613757 | 0.247826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6888f812e06241e081c736925e218d6ef0083191 | 347 | py | Python | services/core-api/app/api/now_applications/models/activity_detail/exploration_surface_drilling_detail.py | bcgov/mds | 6c427a66a5edb4196222607291adef8fd6677038 | [
"Apache-2.0"
] | 25 | 2018-07-09T19:04:37.000Z | 2022-03-15T17:27:10.000Z | services/core-api/app/api/now_applications/models/activity_detail/exploration_surface_drilling_detail.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 983 | 2018-04-25T20:08:07.000Z | 2022-03-31T21:45:20.000Z | services/core-api/app/api/now_applications/models/activity_detail/exploration_surface_drilling_detail.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 58 | 2018-05-15T22:35:50.000Z | 2021-11-29T19:40:52.000Z | from app.api.now_applications.models.activity_detail.activity_detail_base import ActivityDetailBase
class ExplorationSurfaceDrillingDetail(ActivityDetailBase):
__mapper_args__ = {'polymorphic_identity': 'exploration_surface_drilling'}
def __repr__(self):
return '<ExplorationSurfaceDrillingDetail %r>'... | 38.555556 | 99 | 0.821326 | 33 | 347 | 8.090909 | 0.787879 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103746 | 347 | 8 | 100 | 43.375 | 0.858521 | 0 | 0 | 0 | 0 | 0 | 0.244957 | 0.175793 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 1 | 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 | 1 | 1 | 0 | 0 | 3 |
688913d891a4dcdc6a0e0a5475a727d028a2d9f7 | 660 | py | Python | project/server/route/views.py | hysan/FlaskReactPostgresStack | cb69ea2c9862339d5f41cf8b01c36d8568802dda | [
"MIT"
] | 3 | 2018-05-26T11:03:56.000Z | 2020-01-03T12:32:28.000Z | project/server/route/views.py | hysan/FlaskReactPostgresStack | cb69ea2c9862339d5f41cf8b01c36d8568802dda | [
"MIT"
] | null | null | null | project/server/route/views.py | hysan/FlaskReactPostgresStack | cb69ea2c9862339d5f41cf8b01c36d8568802dda | [
"MIT"
] | 2 | 2018-05-26T11:03:53.000Z | 2020-04-28T10:10:57.000Z | # project/server/route/views.py
from flask import Blueprint, render_template
from project.server.auth.decorators import jwt_auth
route_blueprint = Blueprint('route', __name__)
@route_blueprint.route("/")
def example_route():
return "hello world route"
@route_blueprint.route('/index')
def example_template_rout... | 24.444444 | 64 | 0.772727 | 92 | 660 | 5.217391 | 0.315217 | 0.145833 | 0.158333 | 0.0875 | 0.120833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001689 | 0.10303 | 660 | 26 | 65 | 25.384615 | 0.809122 | 0.043939 | 0 | 0.117647 | 0 | 0 | 0.154213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.235294 | 0.588235 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
689105b2c33d522a26593915b61f1f02b353802e | 1,156 | py | Python | tensor-boxer/main.py | jvs/tensor-boxer | 92057cd82d9ff00f3edb76f0e15f8e9983e52a20 | [
"MIT"
] | null | null | null | tensor-boxer/main.py | jvs/tensor-boxer | 92057cd82d9ff00f3edb76f0e15f8e9983e52a20 | [
"MIT"
] | null | null | null | tensor-boxer/main.py | jvs/tensor-boxer | 92057cd82d9ff00f3edb76f0e15f8e9983e52a20 | [
"MIT"
] | null | null | null | import os
import flask
import storage
app = flask.Flask(__name__)
@app.route('/')
def index():
return flask.render_template('index.html', images=storage.list_images())
@app.route('/stage/<name>')
def stage(name):
return flask.render_template('stage.html', name=name)
@app.route('/images/<name>')
def imag... | 21.811321 | 76 | 0.684256 | 156 | 1,156 | 4.935897 | 0.282051 | 0.072727 | 0.062338 | 0.064935 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003024 | 0.141869 | 1,156 | 52 | 77 | 22.230769 | 0.773185 | 0 | 0 | 0 | 0 | 0 | 0.123702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.088235 | 0.147059 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6898000a3a8b6862bab5f04d8ce1506a7a1b9fcb | 1,514 | py | Python | authentication/build_pickled.py | surajpaib/VoiAuth | a03a91bb2c0f5230dbcc2d6b0d0380f8ea6eb98d | [
"Apache-2.0"
] | 1 | 2017-09-20T01:57:17.000Z | 2017-09-20T01:57:17.000Z | authentication/build_pickled.py | surajpaib/VoiAuth | a03a91bb2c0f5230dbcc2d6b0d0380f8ea6eb98d | [
"Apache-2.0"
] | null | null | null | authentication/build_pickled.py | surajpaib/VoiAuth | a03a91bb2c0f5230dbcc2d6b0d0380f8ea6eb98d | [
"Apache-2.0"
] | null | null | null | # Run file to clean slate the model
from scripts import ModuleML
import numpy as np
import boto3
from cPickle import dump
import os
model = ModuleML()
s3 = boto3.resource('s3')
bucket = s3.Bucket('voiauth')
class_1 = model.get_mfcc_feature_vectors('authentication/samples/kunaltrain1.wav')
class_1 = class_1[0:300... | 36.926829 | 97 | 0.764201 | 226 | 1,514 | 4.933628 | 0.274336 | 0.169507 | 0.201794 | 0.161435 | 0.638565 | 0.543498 | 0.543498 | 0.429596 | 0.352466 | 0.29417 | 0 | 0.029007 | 0.089168 | 1,514 | 40 | 98 | 37.85 | 0.77955 | 0.021797 | 0 | 0 | 0 | 0 | 0.428668 | 0.394861 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d7a40446d633738fb8f7a2c9b99d9e671a5f8ad7 | 335 | py | Python | tb/disassemble.py | bonfireprocessor/bonfire-core | 6ec137c863225046a6d77e3ad44abaff42e9e3f5 | [
"MIT"
] | null | null | null | tb/disassemble.py | bonfireprocessor/bonfire-core | 6ec137c863225046a6d77e3ad44abaff42e9e3f5 | [
"MIT"
] | null | null | null | tb/disassemble.py | bonfireprocessor/bonfire-core | 6ec137c863225046a6d77e3ad44abaff42e9e3f5 | [
"MIT"
] | 1 | 2020-10-11T10:57:45.000Z | 2020-10-11T10:57:45.000Z | """
RISC-V disassemble helper
(c) 2019 The Bonfire Project
License: See LICENSE
"""
abi_regnames = ( "zero","ra","sp","gp","tp","t0","t1","t2","s0","s1","a0","a1","a2","a3","a4","a5", \
"a6","a7","s2","s3","s4","s5","s6","s7","s8","s9","s10","s11","t3","t4","t5","t6")
def abi_name(x):
return ab... | 23.928571 | 101 | 0.513433 | 54 | 335 | 3.12963 | 0.907407 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.146269 | 335 | 13 | 102 | 25.769231 | 0.475524 | 0.226866 | 0 | 0 | 0 | 0 | 0.272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d7cef05ab8f682921d5281fd708c8c88641e9447 | 272 | py | Python | src/webfetch2/machines/js.py | bhdz/WebFetch.prj | 61d8b70f41d94150f818f17b2d4e4949ef698e08 | [
"BSD-2-Clause"
] | null | null | null | src/webfetch2/machines/js.py | bhdz/WebFetch.prj | 61d8b70f41d94150f818f17b2d4e4949ef698e08 | [
"BSD-2-Clause"
] | null | null | null | src/webfetch2/machines/js.py | bhdz/WebFetch.prj | 61d8b70f41d94150f818f17b2d4e4949ef698e08 | [
"BSD-2-Clause"
] | null | null | null | """ LOL! I need = (One; Javascript) ~please . bin/djet.lang:print
:Note! 13; Street, Lulin10, Sofia; Boril B. Boyanov; (13 = Streetno); ...
([&1] -> Small Addreess) ~please Nigga, Im :l33t{wracker, hacker, physici\
an & physicist} """
| 54.4 | 80 | 0.558824 | 32 | 272 | 4.75 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045226 | 0.268382 | 272 | 4 | 81 | 68 | 0.718593 | 0.852941 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d7db56d50ff725b17087b54b4ca2e6ef2ff991e3 | 712 | py | Python | tests/backends/test_numba_numpy.py | bfis/vector | 0b9bf7ef622b634b749a0fa664da2c2a565affa1 | [
"BSD-3-Clause"
] | 40 | 2020-03-26T13:28:36.000Z | 2022-03-23T22:14:35.000Z | tests/backends/test_numba_numpy.py | cansik/vector | f71f7f12d3f2e813733ec011034d3b346bba2083 | [
"BSD-3-Clause"
] | 66 | 2020-02-14T13:32:18.000Z | 2022-03-29T14:35:31.000Z | tests/backends/test_numba_numpy.py | cansik/vector | f71f7f12d3f2e813733ec011034d3b346bba2083 | [
"BSD-3-Clause"
] | 14 | 2020-01-29T22:03:33.000Z | 2022-03-16T02:46:25.000Z | # Copyright (c) 2019-2021, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/vector for details.
import pytest
import vector
import vector._backends.object_
numba = pytest.importorskip("... | 26.37037 | 94 | 0.735955 | 95 | 712 | 5.389474 | 0.642105 | 0.109375 | 0.078125 | 0.09375 | 0.136719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034768 | 0.151685 | 712 | 26 | 95 | 27.384615 | 0.812914 | 0.323034 | 0 | 0 | 0 | 0 | 0.018908 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0.230769 | 0.384615 | 0.076923 | 0.615385 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
d7e76d6cd302af826ccca76bc5ac965b2c30d373 | 914 | py | Python | rapidsms/backends/vumi/forms.py | catalpainternational/rapidsms | eb7234d04ceb31e4d57187f2d6ba2806d0c54e15 | [
"BSD-3-Clause"
] | 330 | 2015-01-11T03:00:14.000Z | 2022-03-21T11:34:23.000Z | rapidsms/backends/vumi/forms.py | catalpainternational/rapidsms | eb7234d04ceb31e4d57187f2d6ba2806d0c54e15 | [
"BSD-3-Clause"
] | 45 | 2015-01-06T16:14:19.000Z | 2022-03-16T13:12:53.000Z | rapidsms/backends/vumi/forms.py | catalpainternational/rapidsms | eb7234d04ceb31e4d57187f2d6ba2806d0c54e15 | [
"BSD-3-Clause"
] | 166 | 2015-01-30T19:53:38.000Z | 2021-11-09T18:44:44.000Z | from django import forms
from rapidsms.backends.http.forms import BaseHttpForm
class VumiForm(BaseHttpForm):
message_id = forms.CharField()
to_addr = forms.CharField()
from_addr = forms.CharField()
in_reply_to = forms.CharField(required=False)
session_event = forms.CharField(required=False)
c... | 36.56 | 79 | 0.695842 | 107 | 914 | 5.757009 | 0.448598 | 0.204545 | 0.142857 | 0.175325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001366 | 0.199125 | 914 | 24 | 80 | 38.083333 | 0.840164 | 0.07221 | 0 | 0 | 0 | 0 | 0.067376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 3 |
d7eb76ba74ec73de925cf811df5edb99bf431b55 | 300 | py | Python | openapi_core/schema/responses/exceptions.py | dlarrick/openapi-core | 0865a4f54f38bdbe4a0de11addfa425c302aedfd | [
"BSD-3-Clause"
] | null | null | null | openapi_core/schema/responses/exceptions.py | dlarrick/openapi-core | 0865a4f54f38bdbe4a0de11addfa425c302aedfd | [
"BSD-3-Clause"
] | null | null | null | openapi_core/schema/responses/exceptions.py | dlarrick/openapi-core | 0865a4f54f38bdbe4a0de11addfa425c302aedfd | [
"BSD-3-Clause"
] | null | null | null | import attr
from openapi_core.schema.exceptions import OpenAPIMappingError
class OpenAPIResponseError(OpenAPIMappingError):
pass
@attr.s(hash=True)
class MissingResponseContent(OpenAPIResponseError):
response = attr.ib()
def __str__(self):
return "Missing response content"
| 18.75 | 62 | 0.77 | 30 | 300 | 7.533333 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156667 | 300 | 15 | 63 | 20 | 0.893281 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0.111111 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
d7ec3222ff721648ac4717b560b5ec60b46d2e14 | 364 | py | Python | iom/tasks.py | acaciawater/iom | 66ae7cb4134221ba03005b6e5d7b3f158dbc7550 | [
"Apache-2.0"
] | null | null | null | iom/tasks.py | acaciawater/iom | 66ae7cb4134221ba03005b6e5d7b3f158dbc7550 | [
"Apache-2.0"
] | null | null | null | iom/tasks.py | acaciawater/iom | 66ae7cb4134221ba03005b6e5d7b3f158dbc7550 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from iom.management.commands import import_akvo
#from celery import shared_task
from django.conf import settings
#@shared_task
def import_Akvo(user):
command = import_akvo.Command()
command.execute(akvo=settings.AKVOFLOW_ID,cartodb=settings.CARTODB_ID,proj=1,user=user)
#... | 26 | 91 | 0.804945 | 52 | 364 | 5.365385 | 0.480769 | 0.107527 | 0.09319 | 0.136201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.112637 | 364 | 13 | 92 | 28 | 0.860681 | 0.148352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.75 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
d7f0d3f6f24cd385b9a67cb78c3357d8c2868776 | 1,070 | py | Python | src/pywriter/file/__init__.py | peter88213/PyWriter | 9d0cb2304f29f40fb305c35c547bf6f4f5adbea7 | [
"MIT"
] | 1 | 2020-09-04T08:20:38.000Z | 2020-09-04T08:20:38.000Z | src/pywriter/file/__init__.py | peter88213/PyWriter | 9d0cb2304f29f40fb305c35c547bf6f4f5adbea7 | [
"MIT"
] | 19 | 2020-01-04T10:43:27.000Z | 2022-03-30T19:03:44.000Z | src/pywriter/file/__init__.py | peter88213/PyWriter | 9d0cb2304f29f40fb305c35c547bf6f4f5adbea7 | [
"MIT"
] | null | null | null | """Shared modules for template-based document generation.
This is how the file generation from a yWriter project is generally done:
The write method runs through all chapters, scenes, and world building
elements, such as characters, locations ans items, and fills templates.
The package's README file contains ... | 53.5 | 94 | 0.785047 | 169 | 1,070 | 4.905325 | 0.420118 | 0.106152 | 0.154403 | 0.177322 | 0.462002 | 0.462002 | 0.279855 | 0.235223 | 0 | 0 | 0 | 0.005525 | 0.154206 | 1,070 | 19 | 95 | 56.315789 | 0.910497 | 0.974766 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0bea49e7d7879515acf10ca91f26d902c873f031 | 2,290 | py | Python | tests/test_randomnames.py | ajwalkiewicz/randnames | ab8378aee196b61c0eb4e2cacb7f6f3e560599f8 | [
"MIT"
] | null | null | null | tests/test_randomnames.py | ajwalkiewicz/randnames | ab8378aee196b61c0eb4e2cacb7f6f3e560599f8 | [
"MIT"
] | null | null | null | tests/test_randomnames.py | ajwalkiewicz/randnames | ab8378aee196b61c0eb4e2cacb7f6f3e560599f8 | [
"MIT"
] | null | null | null | import unittest
import random
from randname import randname
from bisect import bisect_left
from unittest.mock import patch
class TestRandomNames(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.available_countries = {"PL", "US", "ES"}
cls.available_data = {'US': {'first_names': ['M', '... | 29.74026 | 197 | 0.648035 | 270 | 2,290 | 5.237037 | 0.222222 | 0.059406 | 0.1471 | 0.164074 | 0.41867 | 0.336634 | 0.236917 | 0.152051 | 0 | 0 | 0 | 0.00226 | 0.227074 | 2,290 | 76 | 198 | 30.131579 | 0.79661 | 0.071179 | 0 | 0.226415 | 0 | 0 | 0.056577 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 1 | 0.264151 | false | 0.056604 | 0.09434 | 0 | 0.377358 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0bf379f27e30f521e462343a7cceabb7d61c1767 | 3,553 | py | Python | resolution/controllers/memoize.py | openpermissions/resolution-srv | 92e3110ee115c3997dc5d906f949418c21faf0d6 | [
"Apache-2.0"
] | 3 | 2016-05-03T20:08:12.000Z | 2019-05-20T01:39:36.000Z | resolution/controllers/memoize.py | openpermissions/resolution-srv | 92e3110ee115c3997dc5d906f949418c21faf0d6 | [
"Apache-2.0"
] | 3 | 2016-05-17T09:41:57.000Z | 2016-05-31T10:41:47.000Z | resolution/controllers/memoize.py | openpermissions/resolution-srv | 92e3110ee115c3997dc5d906f949418c21faf0d6 | [
"Apache-2.0"
] | 1 | 2019-05-20T01:39:26.000Z | 2019-05-20T01:39:26.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 Open Permissions Platform Coalition
# 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 appl... | 37.797872 | 168 | 0.604278 | 454 | 3,553 | 4.627753 | 0.264317 | 0.079962 | 0.038077 | 0.039981 | 0.667301 | 0.667301 | 0.667301 | 0.667301 | 0.667301 | 0.667301 | 0 | 0.01238 | 0.295243 | 3,553 | 93 | 169 | 38.204301 | 0.826677 | 0.273572 | 0 | 0.84375 | 0 | 0 | 0.036271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
04018dc9cdd0b0bbf3dc8c22f501b05459321d72 | 653 | py | Python | docs/awesome-selfhosted/resources/themes/default/logic/theme.py | t00m/kb4it-adocs | 40dcdcf62824be70774f53916651dfa431cafe9d | [
"CC0-1.0"
] | 1 | 2020-04-25T00:26:21.000Z | 2020-04-25T00:26:21.000Z | docs/awesome-selfhosted/resources/themes/default/logic/theme.py | t00m/kb4it-adocs | 40dcdcf62824be70774f53916651dfa431cafe9d | [
"CC0-1.0"
] | null | null | null | docs/awesome-selfhosted/resources/themes/default/logic/theme.py | t00m/kb4it-adocs | 40dcdcf62824be70774f53916651dfa431cafe9d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Server module.
# File: theme.py
# Author: Tomás Vírseda
# License: GPL v3
# Description: default theme script
"""
from kb4it.services.builder import KB4ITBuilder
class Theme(KB4ITBuilder):
def generate_sources(self):
pass
def build(self):
"... | 22.517241 | 53 | 0.669219 | 81 | 653 | 5.135802 | 0.567901 | 0.216346 | 0.269231 | 0.137019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01378 | 0.222052 | 653 | 28 | 54 | 23.321429 | 0.805118 | 0.29709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
040a5da6c384858edfaf33475fe2f9128626c4a4 | 271 | py | Python | slac/network/initializer.py | tjvitchutripop/slac-fetch | e49d73f5ce17333c9419dcb0cf20a895ce197948 | [
"MIT"
] | 69 | 2019-11-24T04:01:48.000Z | 2022-01-28T22:22:29.000Z | slac/network/initializer.py | tjvitchutripop/slac-fetch | e49d73f5ce17333c9419dcb0cf20a895ce197948 | [
"MIT"
] | 6 | 2020-08-28T02:53:56.000Z | 2021-10-05T11:00:40.000Z | slac/network/initializer.py | tjvitchutripop/slac-fetch | e49d73f5ce17333c9419dcb0cf20a895ce197948 | [
"MIT"
] | 15 | 2019-11-23T23:37:01.000Z | 2022-02-14T02:55:07.000Z | from torch import nn
def initialize_weight(m):
if isinstance(m, nn.Linear) or isinstance(m, nn.Conv2d) or isinstance(m, nn.ConvTranspose2d):
nn.init.xavier_uniform_(m.weight, gain=1.0)
if m.bias is not None:
nn.init.constant_(m.bias, 0)
| 30.111111 | 97 | 0.667897 | 44 | 271 | 4.022727 | 0.568182 | 0.186441 | 0.220339 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023474 | 0.214022 | 271 | 8 | 98 | 33.875 | 0.807512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
042d50e2ff7b6efde7415cf21009f63dc587cfbd | 492 | py | Python | nlpAnylise/NeureCtr.py | chenwangwww/ppython | 13a2f1193714133701743bfdf1a8add61a29dd4c | [
"Apache-2.0"
] | null | null | null | nlpAnylise/NeureCtr.py | chenwangwww/ppython | 13a2f1193714133701743bfdf1a8add61a29dd4c | [
"Apache-2.0"
] | null | null | null | nlpAnylise/NeureCtr.py | chenwangwww/ppython | 13a2f1193714133701743bfdf1a8add61a29dd4c | [
"Apache-2.0"
] | null | null | null | class NeureCtr:
def __init__(self, content_label):
self._uuid = content_label
self._relevants = {}
@property
def uuid(self):
return self._uuid
@property
def relevants(self):
return self._relevants
@relevants.setter
def relevants(self, value):
if valu... | 25.894737 | 50 | 0.585366 | 56 | 492 | 4.910714 | 0.375 | 0.236364 | 0.116364 | 0.138182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014663 | 0.306911 | 492 | 19 | 51 | 25.894737 | 0.791789 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.117647 | 0.411765 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
042e531337d7c8ecde05e144755577256784b171 | 362 | py | Python | Wurstpack/pyw3jdebug/locals.py | Crigges/WurstScript | 384bf02093394014751a19184f404ed7900864b6 | [
"Apache-2.0"
] | null | null | null | Wurstpack/pyw3jdebug/locals.py | Crigges/WurstScript | 384bf02093394014751a19184f404ed7900864b6 | [
"Apache-2.0"
] | null | null | null | Wurstpack/pyw3jdebug/locals.py | Crigges/WurstScript | 384bf02093394014751a19184f404ed7900864b6 | [
"Apache-2.0"
] | null | null | null | from PythonCard import model
colhead = ['Name','Type','Value']
class Locals(model.Background):
def on_initialize(self,event):
self.locals = {}
self.components.list.columnHeadings = colhead
def update(self,newlocals):
self.components.list.Clear()
self.components.list.columnHeadings = colhead
[self.compone... | 24.133333 | 55 | 0.743094 | 46 | 362 | 5.826087 | 0.565217 | 0.208955 | 0.268657 | 0.238806 | 0.291045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121547 | 362 | 14 | 56 | 25.857143 | 0.842767 | 0 | 0 | 0.2 | 0 | 0 | 0.036011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0454d3df900b644988e4ba9497649ebd0c465029 | 391 | py | Python | server/inquest/persons/test/factories.py | lucasOlivio/inquest | da7c3030f175f31861cf3db385c611c0c05b9406 | [
"MIT"
] | null | null | null | server/inquest/persons/test/factories.py | lucasOlivio/inquest | da7c3030f175f31861cf3db385c611c0c05b9406 | [
"MIT"
] | null | null | null | server/inquest/persons/test/factories.py | lucasOlivio/inquest | da7c3030f175f31861cf3db385c611c0c05b9406 | [
"MIT"
] | null | null | null | import factory
from fordev.generator import cpf
from inquest.users.test.factories import UserFactory
class PersonFactory(factory.django.DjangoModelFactory):
""" Generates an new Person object for testing purposes. """
name = factory.Faker("name")
cpf = cpf(formatting=True)
user_created = factory.Sub... | 24.4375 | 64 | 0.734015 | 45 | 391 | 6.355556 | 0.733333 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 391 | 15 | 65 | 26.066667 | 0.888199 | 0.132992 | 0 | 0 | 1 | 0 | 0.054381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f0a25aa384da59e29cc65511e01cf3c81ad1f0ae | 278 | py | Python | foobar2020/solutionProblem7.py | franklinvp/foobar | 8732fe373e4fd2036a9268e269d8edb0d61f5481 | [
"MIT"
] | 7 | 2020-07-09T20:47:06.000Z | 2022-02-16T11:11:56.000Z | foobar2020/solutionProblem7.py | franklinvp/foobar | 8732fe373e4fd2036a9268e269d8edb0d61f5481 | [
"MIT"
] | null | null | null | foobar2020/solutionProblem7.py | franklinvp/foobar | 8732fe373e4fd2036a9268e269d8edb0d61f5481 | [
"MIT"
] | 2 | 2020-03-02T18:25:00.000Z | 2020-11-03T14:15:24.000Z | This one I had solved before
https://github.com/franklinvp/foobar/blob/master/foobar2018/extra_challenge3_absorbing_probabilities.py
I had got the problem from someone else. However, this time I got to actually test the solution
against the secret test cases.
It passsed!
| 39.714286 | 107 | 0.809353 | 44 | 278 | 5.045455 | 0.818182 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.136691 | 278 | 6 | 108 | 46.333333 | 0.904167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.2 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f0b43f2ff01b4656d55aab75d01baf5f391b514c | 123 | py | Python | pynkTrombone/consts.py | LudwigVonChesterfield/pynktrombone | 76d35ec974bf98d2b3463bc4307df6d2d7847d23 | [
"MIT"
] | 1 | 2022-03-03T08:00:19.000Z | 2022-03-03T08:00:19.000Z | pynkTrombone/consts.py | LudwigVonChesterfield/pynktrombone | 76d35ec974bf98d2b3463bc4307df6d2d7847d23 | [
"MIT"
] | null | null | null | pynkTrombone/consts.py | LudwigVonChesterfield/pynktrombone | 76d35ec974bf98d2b3463bc4307df6d2d7847d23 | [
"MIT"
] | 1 | 2022-03-03T11:11:04.000Z | 2022-03-03T11:11:04.000Z | M_PI = 3.14159265358979323846
EPSILON = 1.0e-38
MAX_TRANSIENTS = 4
BASE_N = 44 # The base number of segments of tract. | 17.571429 | 51 | 0.731707 | 21 | 123 | 4.142857 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282828 | 0.195122 | 123 | 7 | 51 | 17.571429 | 0.59596 | 0.300813 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f0b55ca463208b614e0d69df5ef00db510dd39a7 | 142 | py | Python | airbnb_clone/rooms/urls.py | djangojeng-e/djangoproejcts | 1efc3bc04a4a1bef039c906584cfecf0231c177f | [
"MIT"
] | null | null | null | airbnb_clone/rooms/urls.py | djangojeng-e/djangoproejcts | 1efc3bc04a4a1bef039c906584cfecf0231c177f | [
"MIT"
] | null | null | null | airbnb_clone/rooms/urls.py | djangojeng-e/djangoproejcts | 1efc3bc04a4a1bef039c906584cfecf0231c177f | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = "rooms"
urlpatterns = [
path("<int:pk>", views.room_detail, name="detail")
] | 17.75 | 54 | 0.690141 | 20 | 142 | 4.8 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161972 | 142 | 8 | 55 | 17.75 | 0.806723 | 0 | 0 | 0 | 0 | 0 | 0.132867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f0c37cfdb83c99ab24147aa727c06553ccf7336d | 16,125 | py | Python | tools/tests/python/test_awa_server_write.py | francois-berder/AwaLWM2M | 40f30cd4c18ace0b82f64983ac1e28537fbcaae6 | [
"BSD-3-Clause"
] | null | null | null | tools/tests/python/test_awa_server_write.py | francois-berder/AwaLWM2M | 40f30cd4c18ace0b82f64983ac1e28537fbcaae6 | [
"BSD-3-Clause"
] | null | null | null | tools/tests/python/test_awa_server_write.py | francois-berder/AwaLWM2M | 40f30cd4c18ace0b82f64983ac1e28537fbcaae6 | [
"BSD-3-Clause"
] | null | null | null | #/************************************************************************************************************************
# Copyright (c) 2016, Imagination Technologies Limited and/or its affiliated group companies.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modificat... | 47.566372 | 228 | 0.673488 | 1,823 | 16,125 | 5.851344 | 0.168952 | 0.095622 | 0.054373 | 0.065623 | 0.724571 | 0.706197 | 0.700384 | 0.673854 | 0.664854 | 0.657354 | 0 | 0.023103 | 0.226915 | 16,125 | 338 | 229 | 47.707101 | 0.832585 | 0.262202 | 0 | 0.632479 | 0 | 0.004274 | 0.174574 | 0.014266 | 0 | 0 | 0 | 0.002959 | 0.290598 | 1 | 0.089744 | false | 0 | 0.029915 | 0.008547 | 0.136752 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
f0c70b033bea6841a87ac4047776736d9b9575b6 | 111 | py | Python | samples/src/main/resources/datasets/python/167.py | sritchie/kotlingrad | 8165ed1cd77220a5347c58cded4c6f2bcf22ee30 | [
"Apache-2.0"
] | 11 | 2020-12-19T01:19:44.000Z | 2021-12-25T20:43:33.000Z | src/main/resources/datasets/python/167.py | breandan/katholic | 081c39f3acc73ff41f5865563debe78a36e1038f | [
"Apache-2.0"
] | null | null | null | src/main/resources/datasets/python/167.py | breandan/katholic | 081c39f3acc73ff41f5865563debe78a36e1038f | [
"Apache-2.0"
] | 2 | 2021-01-25T07:59:20.000Z | 2021-08-07T07:13:49.000Z | def slice():
ziffer = "0123456789"
zahl = ziffer[2:7:2]def sum(a, b):
return a if ( a < b ) else b
| 22.2 | 38 | 0.54955 | 20 | 111 | 3.05 | 0.65 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 0.288288 | 111 | 4 | 39 | 27.75 | 0.607595 | 0 | 0 | 0 | 0 | 0 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f0ddeb00208146192d640d82a22aaf65cb01cd30 | 587 | py | Python | Python-I/src/file_io.py | louismagdaleno/Intro-to-Python-OOP | 31868c1cde079397a5074125e212fbdab5873ec2 | [
"MIT"
] | null | null | null | Python-I/src/file_io.py | louismagdaleno/Intro-to-Python-OOP | 31868c1cde079397a5074125e212fbdab5873ec2 | [
"MIT"
] | null | null | null | Python-I/src/file_io.py | louismagdaleno/Intro-to-Python-OOP | 31868c1cde079397a5074125e212fbdab5873ec2 | [
"MIT"
] | null | null | null | """
Python makes performing file I/O simple. Take a look
at how to read and write to files here:
https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files
"""
# Open up the "foo.txt" file (which already exists) for reading
# Print all the contents of the file, then close the file
# YOUR CODE HER... | 32.611111 | 77 | 0.739353 | 105 | 587 | 4.133333 | 0.609524 | 0.041475 | 0.059908 | 0.073733 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002075 | 0.178876 | 587 | 18 | 78 | 32.611111 | 0.89834 | 0.954003 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.055556 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0b0472b6de290535bf028ec87e814a8b8abc3757 | 220 | py | Python | examples/workfolder.py | axju/blurring | 2f2e50b7f47d8556be2d74687f34ac6eabd8d235 | [
"MIT"
] | 15 | 2019-09-20T14:20:53.000Z | 2022-01-06T13:31:17.000Z | examples/workfolder.py | axju/blurring | 2f2e50b7f47d8556be2d74687f34ac6eabd8d235 | [
"MIT"
] | null | null | null | examples/workfolder.py | axju/blurring | 2f2e50b7f47d8556be2d74687f34ac6eabd8d235 | [
"MIT"
] | 2 | 2019-09-21T05:37:30.000Z | 2019-09-22T04:53:57.000Z | import logging
from blurring.data import WorkFolder
log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
logging.basicConfig(level=logging.DEBUG, format=log_format)
folder = WorkFolder()
folder.setup()
| 22 | 67 | 0.745455 | 29 | 220 | 5.586207 | 0.62069 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 220 | 9 | 68 | 24.444444 | 0.826531 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0b06bba1b0081f36fc994a2777174adb66216460 | 64 | py | Python | affo_email_service/services/__init__.py | fossabot/affo-email-service | 4e224c025a410504601651f1a85762c91300f4e9 | [
"BSD-3-Clause"
] | null | null | null | affo_email_service/services/__init__.py | fossabot/affo-email-service | 4e224c025a410504601651f1a85762c91300f4e9 | [
"BSD-3-Clause"
] | 1 | 2019-11-25T14:25:18.000Z | 2019-11-25T14:25:18.000Z | affo_email_service/services/__init__.py | fossabot/affo-email-service | 4e224c025a410504601651f1a85762c91300f4e9 | [
"BSD-3-Clause"
] | 1 | 2019-11-25T14:21:58.000Z | 2019-11-25T14:21:58.000Z | from .email import EmailService
email_service = EmailService()
| 16 | 31 | 0.8125 | 7 | 64 | 7.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 3 | 32 | 21.333333 | 0.910714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9be2eed54aa4f4f154a6dd8ee1d2ba72d0692848 | 447 | py | Python | newTournamentDBHandler.py | Seifar/Liga-Database | 55a134111b5bcfe4bbd124791e723e1216576931 | [
"MIT"
] | null | null | null | newTournamentDBHandler.py | Seifar/Liga-Database | 55a134111b5bcfe4bbd124791e723e1216576931 | [
"MIT"
] | null | null | null | newTournamentDBHandler.py | Seifar/Liga-Database | 55a134111b5bcfe4bbd124791e723e1216576931 | [
"MIT"
] | null | null | null | import GLOBAL
def tounamentExists(name, kind, bow, date):
return False
def writeTournament(name, kind, bow, date):
sqltext = "INSERT INTO TOURNAMENTS ({t[0]}, {t[1]}, {t[2]}, {t[3})".format(t=GLOBAL.TABLE_tournaments)+\
"\nVALUES ('{:s}', '{:s}', '{:s}', {:s}".format(name, kind, bow, __qtDatetoS... | 40.636364 | 108 | 0.619687 | 58 | 447 | 4.62069 | 0.517241 | 0.089552 | 0.123134 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0.145414 | 447 | 11 | 109 | 40.636364 | 0.675393 | 0 | 0 | 0 | 0 | 0.125 | 0.252232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9bf69be6f199643b133b8e93b9650362a8fd0085 | 2,000 | py | Python | esppy/__init__.py | PeterHealy/python-esppy | 3257493b3a933afe9848e3c541fbf44a3276d38d | [
"Apache-2.0"
] | null | null | null | esppy/__init__.py | PeterHealy/python-esppy | 3257493b3a933afe9848e3c541fbf44a3276d38d | [
"Apache-2.0"
] | null | null | null | esppy/__init__.py | PeterHealy/python-esppy | 3257493b3a933afe9848e3c541fbf44a3276d38d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright SAS Institute
#
# 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 b... | 25.974026 | 82 | 0.652 | 237 | 2,000 | 5.362869 | 0.552743 | 0.047207 | 0.047207 | 0.080252 | 0.119591 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0.014594 | 0.212 | 2,000 | 76 | 83 | 26.315789 | 0.791878 | 0.82 | 0 | 0 | 0 | 0 | 0.017964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.