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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d34a7cfae80b6d85219b391a8be71615f56da983 | 544 | py | Python | psx/_dump_/1/_dump_ida_/overlay_3/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/1/_dump_ida_/overlay_3/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/1/_dump_ida_/overlay_3/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x8009CFEC, "VID_OpenModule__Fv", SN_NOWARN)
set_name(0x8009D0AC, "InitScreens__Fv", SN_NOWARN)
set_name(0x8009D19C, "MEM_SetupMem__Fv", SN_NOWARN)
set_name(0x8009D1C8, "SetupWorkRam__Fv", SN_NOWARN)
set_name(0x8009D258, "SYSI_Init__Fv", SN_NOWARN)
set_name(0x8009D364, "GM_Open__Fv", SN_NOWARN)
set_name(0x8009... | 45.333333 | 53 | 0.818015 | 86 | 544 | 4.55814 | 0.360465 | 0.196429 | 0.280612 | 0.331633 | 0.484694 | 0.267857 | 0 | 0 | 0 | 0 | 0 | 0.156556 | 0.060662 | 544 | 11 | 54 | 49.454545 | 0.610568 | 0 | 0 | 0 | 0 | 0 | 0.272059 | 0 | 0 | 0 | 0.202206 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d34c2d6e2fefcfa696b631d87738f6d537c01702 | 86 | py | Python | src/syntax/__init__.py | Somsubhra/Simplify | eeb0899347fb6474de2d674a04b6cd2838dc3490 | [
"MIT"
] | null | null | null | src/syntax/__init__.py | Somsubhra/Simplify | eeb0899347fb6474de2d674a04b6cd2838dc3490 | [
"MIT"
] | null | null | null | src/syntax/__init__.py | Somsubhra/Simplify | eeb0899347fb6474de2d674a04b6cd2838dc3490 | [
"MIT"
] | null | null | null | __author__ = 's7a'
# All imports
from syntactic_simplifier import SyntacticSimplifier | 21.5 | 52 | 0.837209 | 9 | 86 | 7.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.116279 | 86 | 4 | 52 | 21.5 | 0.868421 | 0.127907 | 0 | 0 | 0 | 0 | 0.040541 | 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 |
d37a74d5aad47725ec06bbf5c258795b4b1218eb | 363 | py | Python | stubs/m5stack_flowui-1_4_0-beta/lidar.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 38 | 2020-10-18T21:59:44.000Z | 2022-03-17T03:03:28.000Z | stubs/m5stack_flowui-1_4_0-beta/lidar.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 176 | 2020-10-18T14:31:03.000Z | 2022-03-30T23:22:39.000Z | stubs/m5stack_flowui-1_4_0-beta/lidar.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 6 | 2020-12-28T21:11:12.000Z | 2022-02-06T04:07:50.000Z | """
Module: 'lidar' on M5 FlowUI v1.4.0-beta
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32')
# Stubber: 1.3.1
def deinit():
pass
def distance():
pass
def draw_map():
pass
def get_distance():
pass
def ge... | 15.125 | 141 | 0.628099 | 57 | 363 | 3.947368 | 0.614035 | 0.155556 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133562 | 0.195592 | 363 | 23 | 142 | 15.782609 | 0.636986 | 0.539945 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d387e32a17c689150c1112a900550cf81b3f09bb | 507 | py | Python | vine/branches.py | robinson96/GRAPE | f6404ae6ee2933647e515a9480077ab01fb2c430 | [
"BSD-3-Clause"
] | 4 | 2017-04-30T17:08:42.000Z | 2019-11-15T04:44:09.000Z | vine/branches.py | robinson96/GRAPE | f6404ae6ee2933647e515a9480077ab01fb2c430 | [
"BSD-3-Clause"
] | 1 | 2016-02-12T07:51:30.000Z | 2016-02-12T07:51:30.000Z | vine/branches.py | robinson96/GRAPE | f6404ae6ee2933647e515a9480077ab01fb2c430 | [
"BSD-3-Clause"
] | null | null | null | import sys, os
import grapeGit as git
import option
# list local branches (git branch)
class Branches(option.Option):
def __init__(self):
super(Branches,self).__init__()
self._key = "b"
self._section = "Workspace"
def description(self):
return "List all of your local repo's bra... | 23.045455 | 55 | 0.635108 | 63 | 507 | 4.920635 | 0.603175 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262327 | 507 | 21 | 56 | 24.142857 | 0.828877 | 0.063116 | 0 | 0 | 0 | 0 | 0.143763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.1875 | 0.0625 | 0.625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d38cfe12a676ebc754b535709a39e6365ec58399 | 94 | py | Python | qiushaoyi/programs/django_first/app_second/apps.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 2 | 2018-03-29T08:26:17.000Z | 2019-06-17T10:56:19.000Z | qiushaoyi/programs/django_first/app_second/apps.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 1 | 2022-03-22T20:26:08.000Z | 2022-03-22T20:26:08.000Z | qiushaoyi/programs/django_first/app_second/apps.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 1 | 2019-02-18T10:44:20.000Z | 2019-02-18T10:44:20.000Z | from django.apps import AppConfig
class AppSecondConfig(AppConfig):
name = 'app_second'
| 15.666667 | 33 | 0.765957 | 11 | 94 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6ca91b7b1a01ed47bfe9a26a1f9bd82fd69ad25b | 923 | py | Python | mgmt/migrations/0017_auto_20210708_1225.py | AndreDrDre/AviationStockManagement | 8331edbacc936919ede04da12d7e529e5e38be1c | [
"CC0-1.0"
] | null | null | null | mgmt/migrations/0017_auto_20210708_1225.py | AndreDrDre/AviationStockManagement | 8331edbacc936919ede04da12d7e529e5e38be1c | [
"CC0-1.0"
] | null | null | null | mgmt/migrations/0017_auto_20210708_1225.py | AndreDrDre/AviationStockManagement | 8331edbacc936919ede04da12d7e529e5e38be1c | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-07-08 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mgmt', '0016_auto_20210708_0725'),
]
operations = [
migrations.AddField(
model_name='parts',
name='breadth',
... | 27.147059 | 73 | 0.562297 | 97 | 923 | 5.237113 | 0.42268 | 0.141732 | 0.181102 | 0.212598 | 0.661417 | 0.661417 | 0.590551 | 0.590551 | 0.590551 | 0.590551 | 0 | 0.061611 | 0.314193 | 923 | 33 | 74 | 27.969697 | 0.740916 | 0.048754 | 0 | 0.592593 | 1 | 0 | 0.082192 | 0.026256 | 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 |
6cb97562ecf8226017bbecdb88252d846ed40700 | 23 | py | Python | cloudmesh/launcher/__init__.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | cloudmesh/launcher/__init__.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | 4 | 2021-06-08T20:20:08.000Z | 2022-03-11T23:30:22.000Z | cloudmesh/launcher/__init__.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | __all__ = ['launcher']
| 11.5 | 22 | 0.652174 | 2 | 23 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cd45d6b4ea6740e5ed863730cbec47c108075a1 | 310 | py | Python | groot-backend/django/code/groot/permissions.py | ayushmantripathy9/We-Are-Groot | db919dbe24363d02ee08ea79520813e9dc9af174 | [
"MIT"
] | null | null | null | groot-backend/django/code/groot/permissions.py | ayushmantripathy9/We-Are-Groot | db919dbe24363d02ee08ea79520813e9dc9af174 | [
"MIT"
] | null | null | null | groot-backend/django/code/groot/permissions.py | ayushmantripathy9/We-Are-Groot | db919dbe24363d02ee08ea79520813e9dc9af174 | [
"MIT"
] | null | null | null | from rest_framework import permissions
from groot.models import Room
class CanAccessRoom(permissions.BasePermission):
"""
This permission grants a user access to a given room
"""
def has_object_permission(self, request, view, obj):
return (request.user in obj.participants.all())
| 28.181818 | 60 | 0.725806 | 39 | 310 | 5.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196774 | 310 | 10 | 61 | 31 | 0.891566 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
6ce232cf0d9ab14e4c4ffd06a8794a2af83b2d51 | 344 | py | Python | meijer2/tests/test_example.py | sllawcj/python_Meijer | d8caf2e97ce30df565810bac9dff4d1cccc59022 | [
"MIT"
] | 6 | 2020-03-23T02:58:30.000Z | 2022-01-16T02:41:50.000Z | meijer2/tests/test_example.py | sllawcj/python_Meijer | d8caf2e97ce30df565810bac9dff4d1cccc59022 | [
"MIT"
] | 1 | 2021-12-12T21:45:11.000Z | 2021-12-12T21:45:11.000Z | meijer2/tests/test_example.py | sllawcj/python_Meijer | d8caf2e97ce30df565810bac9dff4d1cccc59022 | [
"MIT"
] | 3 | 2020-11-04T02:35:13.000Z | 2021-11-07T20:46:04.000Z | #!/usr/bin/env python
"""
.. currentmodule:: test_example
.. moduleauthor:: Jed <jed@bored>
This is a sample test module.
"""
import pytest
"""
This is just an example test suite. It will check the current project version
numbers against the original version numbers and will start failing as soon as
the current vers... | 22.933333 | 78 | 0.747093 | 51 | 344 | 5.019608 | 0.705882 | 0.164063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 344 | 14 | 79 | 24.571429 | 0.888889 | 0.340116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6ce596865751e85d018a982bb9d87f32646748bd | 1,955 | py | Python | app/models/PhishingEmail.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | null | null | null | app/models/PhishingEmail.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | null | null | null | app/models/PhishingEmail.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | 1 | 2021-02-18T03:08:21.000Z | 2021-02-18T03:08:21.000Z | ## Application Objects
from app import db
## Utilities
from datetime import datetime
from sqlalchemy import extract
from sqlalchemy.ext.hybrid import hybrid_property
# Defines model for EmailAddress class
class PhishingEmail(db.Model):
__tablename__ = 'phishing_email'
mail_id = db.Column(db.Integer, primary_k... | 30.076923 | 80 | 0.707928 | 259 | 1,955 | 5.131274 | 0.30888 | 0.121896 | 0.045147 | 0.071482 | 0.285929 | 0.164033 | 0.114372 | 0.114372 | 0 | 0 | 0 | 0.002543 | 0.195396 | 1,955 | 64 | 81 | 30.546875 | 0.842339 | 0.035294 | 0 | 0.119048 | 0 | 0 | 0.040912 | 0.012858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.095238 | 0.261905 | 0.809524 | 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 |
6cea11a1dc5c1ed098a9d44735f66118358c258a | 10,461 | py | Python | pywinrt/winsdk/windows/applicationmodel/activation/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 3 | 2022-02-14T14:53:08.000Z | 2022-03-29T20:48:54.000Z | pywinrt/winsdk/windows/applicationmodel/activation/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 4 | 2022-01-28T02:53:52.000Z | 2022-02-26T18:10:05.000Z | pywinrt/winsdk/windows/applicationmodel/activation/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | null | null | null | # WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4
import enum
import winsdk
_ns_module = winsdk._import_ns_module("Windows.ApplicationModel.Activation")
try:
import winsdk.windows.applicationmodel.appointments.appointmentsprovider
except Exception:
pass
try:
import ... | 43.049383 | 136 | 0.879457 | 729 | 10,461 | 12.277092 | 0.33882 | 0.078659 | 0.031844 | 0.046704 | 0.111955 | 0.10771 | 0.10771 | 0.103128 | 0.03352 | 0.014749 | 0 | 0.015296 | 0.087563 | 10,461 | 242 | 137 | 43.227273 | 0.922368 | 0.00803 | 0 | 0.263889 | 1 | 0 | 0.003373 | 0.003373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.087963 | 0.101852 | 0 | 0.337963 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6cecc3b890e19a8bdb25b114e009854833a5306c | 24 | py | Python | lister/__init__.py | nricklin/gbdx-s3-browser | b226e7242911f2893e8c225c77b7900fe2398541 | [
"MIT"
] | 5 | 2015-10-11T20:49:32.000Z | 2018-08-07T15:33:18.000Z | lister/__init__.py | nricklin/gbdx-s3-browser | b226e7242911f2893e8c225c77b7900fe2398541 | [
"MIT"
] | 4 | 2015-10-16T19:45:06.000Z | 2017-04-03T20:26:01.000Z | lister/__init__.py | nricklin/gbdx-s3-browser | b226e7242911f2893e8c225c77b7900fe2398541 | [
"MIT"
] | 5 | 2015-10-27T19:31:16.000Z | 2019-09-27T15:15:11.000Z | __author__ = 'nricklin'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cf8015b376b9f6e489a226a08ee13b51430596b | 458 | py | Python | utils/checks.py | nwunderly/squire | 8cfbbcc6267fb5363e3cfbfa5406a1440e8d202f | [
"MIT"
] | 1 | 2020-11-04T00:12:53.000Z | 2020-11-04T00:12:53.000Z | utils/checks.py | nwunderly/squire | 8cfbbcc6267fb5363e3cfbfa5406a1440e8d202f | [
"MIT"
] | null | null | null | utils/checks.py | nwunderly/squire | 8cfbbcc6267fb5363e3cfbfa5406a1440e8d202f | [
"MIT"
] | 1 | 2021-08-15T21:37:08.000Z | 2021-08-15T21:37:08.000Z | import logging
from discord.ext import commands
from utils.settings import MODS, ADMINS
logger = logging.getLogger('utils.checks')
def is_admin(user):
return user.id in ADMINS
def is_mod(user):
return user.id in MODS
def hall_monitor():
async def func(ctx):
return is_admin(ctx.author)
... | 15.793103 | 42 | 0.69869 | 67 | 458 | 4.701493 | 0.432836 | 0.031746 | 0.088889 | 0.101587 | 0.463492 | 0.349206 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209607 | 458 | 28 | 43 | 16.357143 | 0.870166 | 0 | 0 | 0.25 | 0 | 0 | 0.026201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.125 | 0.8125 | 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 |
9f441e0c735ff171439f823c57367e28eba4dd3d | 1,170 | py | Python | test/utils.py | calebho/gameanalysis | 280726a8aa125850b827a1e10b1203e91f515461 | [
"Apache-2.0"
] | 7 | 2017-05-17T10:40:45.000Z | 2021-10-30T12:20:24.000Z | test/utils.py | calebho/gameanalysis | 280726a8aa125850b827a1e10b1203e91f515461 | [
"Apache-2.0"
] | 1 | 2016-11-07T12:10:18.000Z | 2016-11-07T12:10:18.000Z | test/utils.py | calebho/gameanalysis | 280726a8aa125850b827a1e10b1203e91f515461 | [
"Apache-2.0"
] | 3 | 2015-05-04T19:58:32.000Z | 2016-05-17T14:08:28.000Z | """Utilities for testing"""
import itertools
from gameanalysis import rsgame
def basic_games():
"""Small basic games for testing"""
yield rsgame.empty(1, 2)
yield rsgame.empty(2, 2)
yield rsgame.empty(2, 3)
yield rsgame.empty(3, 2)
yield rsgame.empty(3, 3)
yield rsgame.empty([2, 3], [3, 2... | 27.209302 | 78 | 0.598291 | 189 | 1,170 | 3.68254 | 0.195767 | 0.331897 | 0.482759 | 0.219828 | 0.468391 | 0.248563 | 0.114943 | 0 | 0 | 0 | 0 | 0.085433 | 0.219658 | 1,170 | 42 | 79 | 27.857143 | 0.676889 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
9f4be5438672fcd763b6978e1f3b28492b5a2a38 | 4,822 | py | Python | app/models.py | Mohraf/online-auction | b4abd3087bc2dd7b4702fc4567eaf996f1e9b1ba | [
"MIT"
] | null | null | null | app/models.py | Mohraf/online-auction | b4abd3087bc2dd7b4702fc4567eaf996f1e9b1ba | [
"MIT"
] | null | null | null | app/models.py | Mohraf/online-auction | b4abd3087bc2dd7b4702fc4567eaf996f1e9b1ba | [
"MIT"
] | null | null | null | from email.policy import default
from . import db
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class ItemPh... | 29.402439 | 83 | 0.681875 | 647 | 4,822 | 4.887172 | 0.145286 | 0.078431 | 0.098039 | 0.068311 | 0.570841 | 0.514232 | 0.506958 | 0.393422 | 0.330171 | 0.330171 | 0 | 0.003779 | 0.176898 | 4,822 | 164 | 84 | 29.402439 | 0.792895 | 0.014309 | 0 | 0.353448 | 1 | 0 | 0.114316 | 0.018105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163793 | false | 0.077586 | 0.051724 | 0.060345 | 0.793103 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
9f6e20217021b1e6c954b2b302ecf97e97b1473f | 296 | py | Python | ex049.py | favitoria/python123 | 99074c309b700f48ddc6aa0811a1891145281af7 | [
"MIT"
] | null | null | null | ex049.py | favitoria/python123 | 99074c309b700f48ddc6aa0811a1891145281af7 | [
"MIT"
] | null | null | null | ex049.py | favitoria/python123 | 99074c309b700f48ddc6aa0811a1891145281af7 | [
"MIT"
] | null | null | null | from time import sleep
num = int(input('Digite um número: '))
print('-' * 10)
print('TA', end=' ')
sleep(1)
print('BU', end=' ')
sleep(1)
print('A', end=' ')
sleep(1)
print('DA')
sleep(1)
print('-' * 10)
for t in range(1,11):
print('{} x {:2} = {}'.format(num, t, num*t))
print('-' * 10)
| 18.5 | 49 | 0.540541 | 49 | 296 | 3.265306 | 0.530612 | 0.15 | 0.275 | 0.2625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 0.175676 | 296 | 15 | 50 | 19.733333 | 0.598361 | 0 | 0 | 0.466667 | 0 | 0 | 0.152027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.533333 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
9f7b1b5d3bc8032988ba58d642ff74a1ff67e743 | 545 | py | Python | src/LossHistory.py | corbosiny/FrameStackingStreetFighter | 3659a44a1eb1fac3536dda7e1608e2bc0a7c0f5a | [
"Unlicense"
] | null | null | null | src/LossHistory.py | corbosiny/FrameStackingStreetFighter | 3659a44a1eb1fac3536dda7e1608e2bc0a7c0f5a | [
"Unlicense"
] | null | null | null | src/LossHistory.py | corbosiny/FrameStackingStreetFighter | 3659a44a1eb1fac3536dda7e1608e2bc0a7c0f5a | [
"Unlicense"
] | null | null | null | from tensorflow.python import keras
class LossHistory(keras.callbacks.Callback):
"""
A class for keras to use to store training losses for the model to use:
1. initialize a LossHistory object inside your agent
2. and put callbacks= [self.lossHistory] in the model.fit() call
"""
def __init__(sel... | 28.684211 | 75 | 0.651376 | 75 | 545 | 4.613333 | 0.586667 | 0.086705 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.238532 | 545 | 19 | 76 | 28.684211 | 0.828916 | 0.346789 | 0 | 0.2 | 0 | 0 | 0.012012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.1 | 0.1 | 0 | 0.6 | 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 |
9f848b6398fc5eb840d9cd7e749bfae27ec4b532 | 175 | py | Python | apps/utils/forms/widgets.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | apps/utils/forms/widgets.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | 5 | 2021-03-19T10:16:00.000Z | 2022-02-10T09:16:32.000Z | apps/utils/forms/widgets.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | """Django forms widgets."""
# Django
from django import forms
class CustomDateInput(forms.DateInput):
"""Custom date input class."""
input_type = 'date'
| 15.909091 | 40 | 0.645714 | 19 | 175 | 5.894737 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 175 | 10 | 41 | 17.5 | 0.82963 | 0.308571 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9f8f9ab273fc2be05433026e7539a2c5919764c9 | 584 | py | Python | agent.py | iejMac/TTTArena | 056636f064769c3251fb2448e7487b4fa8394733 | [
"MIT"
] | 3 | 2021-05-23T23:55:03.000Z | 2021-07-09T16:01:10.000Z | agent.py | iejMac/TTTArena | 056636f064769c3251fb2448e7487b4fa8394733 | [
"MIT"
] | null | null | null | agent.py | iejMac/TTTArena | 056636f064769c3251fb2448e7487b4fa8394733 | [
"MIT"
] | 2 | 2021-07-09T11:44:09.000Z | 2021-07-11T12:32:58.000Z | class Agent:
def __init__(self, name):
self.name = name
def reset(self, state):
# Completely resets the state of the Agent for a new game
return
def make_action(self, state):
# Returns a valid move in (row, column) format where 0 <= row, column < board_len
move = (0, 0)
return move
def u... | 32.444444 | 101 | 0.686644 | 89 | 584 | 4.41573 | 0.573034 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006772 | 0.241438 | 584 | 17 | 102 | 34.352941 | 0.880361 | 0.515411 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.230769 | 0.769231 | 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 |
9f970ead3bc5651ace51500f8e2837fe9f90fc6c | 144,421 | py | Python | lino_xl/lib/statbel/countries/fixtures/inscodes.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:09:48.000Z | 2018-01-12T14:09:48.000Z | lino_xl/lib/statbel/countries/fixtures/inscodes.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2019-09-10T05:03:47.000Z | 2019-09-10T05:03:47.000Z | lino_xl/lib/statbel/countries/fixtures/inscodes.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
# Copyright 2012-2015 Luc Saffre
# License: BSD (see file COPYING for details)
"""Inserts the primary keys of Places and Countries used by CBSS.
Note that this fixture doesn't create itself any Places or Countries,
it just updates existing ones, which may come from
:mod:`lino_xl.lib.countries.f... | 42.489262 | 90 | 0.795923 | 21,597 | 144,421 | 5.321063 | 0.275872 | 0.124914 | 0.003394 | 0.005482 | 0.481844 | 0.16958 | 0.08533 | 0.031849 | 0.018161 | 0.011225 | 0 | 0.218656 | 0.061293 | 144,421 | 3,398 | 91 | 42.501766 | 0.629023 | 0.10835 | 0 | 0.005899 | 0 | 0.008382 | 0.95126 | 0.883822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00031 | false | 0.000931 | 0.000931 | 0 | 0.001242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9fa072832572043151ecbe76d2831ddea9d92299 | 3,000 | py | Python | python/day10/chunky.py | kyclark/advent2021 | b7961ffb7eca3a64b826424ceb9f6c628d7b046c | [
"MIT"
] | 1 | 2021-12-01T21:32:19.000Z | 2021-12-01T21:32:19.000Z | python/day10/chunky.py | kyclark/advent2021 | b7961ffb7eca3a64b826424ceb9f6c628d7b046c | [
"MIT"
] | null | null | null | python/day10/chunky.py | kyclark/advent2021 | b7961ffb7eca3a64b826424ceb9f6c628d7b046c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : Ken Youens-Clark <kyclark@gmail.com>
Date : 2021-12-17
Purpose: Rock the Casbah
"""
import argparse
import sys
from typing import NamedTuple, TextIO
class Args(NamedTuple):
""" Command-line arguments """
data: TextIO
# --------------------------------------------------... | 26.785714 | 69 | 0.434 | 265 | 3,000 | 4.74717 | 0.362264 | 0.214626 | 0.310016 | 0.351351 | 0.31717 | 0.31717 | 0.31717 | 0.31717 | 0.31717 | 0.31717 | 0 | 0.010686 | 0.251333 | 3,000 | 111 | 70 | 27.027027 | 0.549421 | 0.234333 | 0 | 0.098361 | 0 | 0 | 0.133571 | 0.050312 | 0 | 0 | 0 | 0 | 0.295082 | 1 | 0.065574 | false | 0 | 0.04918 | 0 | 0.213115 | 0.032787 | 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 |
9fce9983785ef39bc9ed12263626f42d6cb721da | 372 | py | Python | aliyun/api/rest/Cdn20141111DescribeOneMinuteDataRequest.py | snowyxx/aliyun-python-demo | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | [
"Apache-2.0"
] | null | null | null | aliyun/api/rest/Cdn20141111DescribeOneMinuteDataRequest.py | snowyxx/aliyun-python-demo | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | [
"Apache-2.0"
] | null | null | null | aliyun/api/rest/Cdn20141111DescribeOneMinuteDataRequest.py | snowyxx/aliyun-python-demo | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | [
"Apache-2.0"
] | null | null | null | '''
Created by auto_sdk on 2015.04.27
'''
from aliyun.api.base import RestApi
class Cdn20141111DescribeOneMinuteDataRequest(RestApi):
def __init__(self,domain='cdn.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.DataTime = None
self.DomainName = None
def getapiname(self):
return '... | 28.615385 | 61 | 0.747312 | 48 | 372 | 5.604167 | 0.6875 | 0.05948 | 0.104089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080745 | 0.134409 | 372 | 12 | 62 | 31 | 0.754658 | 0.08871 | 0 | 0 | 0 | 0 | 0.203762 | 0.153605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 |
4c7be750e1d866a86f0f8d447e3dc13ff52a45fb | 392 | py | Python | pypy/module/cpyext/dictproxyobject.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-06-02T23:02:09.000Z | 2021-06-02T23:02:09.000Z | pypy/module/cpyext/dictproxyobject.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-03-30T18:08:41.000Z | 2021-03-30T18:08:41.000Z | pypy/module/cpyext/dictproxyobject.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2022-03-30T11:42:37.000Z | 2022-03-30T11:42:37.000Z | from pypy.objspace.std.dictproxyobject import W_DictProxyObject
from pypy.module.cpyext.api import cpython_api, build_type_checkers
from pypy.module.cpyext.pyobject import PyObject
PyDictProxy_Check, PyDictProxy_CheckExact = build_type_checkers(
"DictProxy", W_DictProxyObject)
@cpython_api([PyObject], PyObject)
d... | 35.636364 | 67 | 0.834184 | 51 | 392 | 6.137255 | 0.470588 | 0.076677 | 0.089457 | 0.127796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 392 | 10 | 68 | 39.2 | 0.879213 | 0 | 0 | 0 | 0 | 0 | 0.022959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
4c81b2c56b50fc4d1f84ac4e9cb0b654a1c4f173 | 44 | py | Python | numbers.py | OfficialB/python | 233e8c0cac6457c35f4c6e5b1c9b03611302a345 | [
"MIT"
] | null | null | null | numbers.py | OfficialB/python | 233e8c0cac6457c35f4c6e5b1c9b03611302a345 | [
"MIT"
] | null | null | null | numbers.py | OfficialB/python | 233e8c0cac6457c35f4c6e5b1c9b03611302a345 | [
"MIT"
] | null | null | null | n = 1
while True:
print(n)
n = n + 1 | 11 | 13 | 0.454545 | 9 | 44 | 2.222222 | 0.555556 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.409091 | 44 | 4 | 13 | 11 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cd0331e098ecbcdcfe624d577e50ef1010cd49c | 278 | py | Python | planning_and_simulation_modules/city/config/tableConfig.py | Planheat/Planheat-Tool | 9764fcb86d3898b232c4cc333dab75ebe41cd421 | [
"MIT"
] | 2 | 2020-04-07T03:43:33.000Z | 2021-03-23T13:17:42.000Z | planning_and_simulation_modules/city/config/tableConfig.py | Planheat/Planheat-Tool | 9764fcb86d3898b232c4cc333dab75ebe41cd421 | [
"MIT"
] | 1 | 2020-07-20T09:56:13.000Z | 2020-07-22T10:26:06.000Z | planning_and_simulation_modules/city/config/tableConfig.py | Planheat/Planheat-Tool | 9764fcb86d3898b232c4cc333dab75ebe41cd421 | [
"MIT"
] | 1 | 2020-07-20T09:40:15.000Z | 2020-07-20T09:40:15.000Z | data_rows = [2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 16, 18, 20, 22, 24, 25, 27]
data_rows_cool = [2, 3, 4, 6, 7, 8, 10, 12, 14]
hig_temp_techs = [2, 7, 8, 13, 14, 16, 18, 20, 22]
med_temp_techs = [3, 4, 5, 9, 10, 11]
low_temp_techs = [24, 25]
no_imput_rows_color = [232, 232, 232] | 46.333333 | 77 | 0.579137 | 65 | 278 | 2.292308 | 0.492308 | 0.040268 | 0.040268 | 0.107383 | 0.161074 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0.35 | 0.208633 | 278 | 6 | 78 | 46.333333 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cd9bc4f6d52a4643695c09ad2215a551668c558 | 596 | py | Python | kvdroid/metrics.py | VICTORVICKIE/Kvdroid | 9441ef189b6cdbf761e4f3bfd22cbdf8eb93e7fb | [
"MIT"
] | null | null | null | kvdroid/metrics.py | VICTORVICKIE/Kvdroid | 9441ef189b6cdbf761e4f3bfd22cbdf8eb93e7fb | [
"MIT"
] | null | null | null | kvdroid/metrics.py | VICTORVICKIE/Kvdroid | 9441ef189b6cdbf761e4f3bfd22cbdf8eb93e7fb | [
"MIT"
] | null | null | null | from kvdroid import activity
class Metrics(object):
config = activity.getResources().getConfiguration()
metric = activity.getResources().getDisplayMetrics()
def height_dp(self):
return self.config.screenHeightDp
def width_dp(self):
return self.config.screenWidthDp
def height_px(... | 21.285714 | 56 | 0.657718 | 62 | 596 | 6.258065 | 0.483871 | 0.103093 | 0.14433 | 0.082474 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002247 | 0.253356 | 596 | 27 | 57 | 22.074074 | 0.869663 | 0 | 0 | 0 | 0 | 0 | 0.028523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4cdc62db5b8ea61030619f5c6df46387d826ae99 | 918 | py | Python | tests/test_asyncio.py | adityaoza1901/AioContext | d00dc4ef001a6b2235d4984b2966d8da76725673 | [
"MIT"
] | 37 | 2018-03-01T14:06:44.000Z | 2022-01-19T15:14:15.000Z | tests/test_asyncio.py | adityaoza1901/AioContext | d00dc4ef001a6b2235d4984b2966d8da76725673 | [
"MIT"
] | 2 | 2018-03-05T14:06:52.000Z | 2020-11-28T14:32:46.000Z | tests/test_asyncio.py | adityaoza1901/AioContext | d00dc4ef001a6b2235d4984b2966d8da76725673 | [
"MIT"
] | 1 | 2021-04-22T15:18:46.000Z | 2021-04-22T15:18:46.000Z | import asyncio
import pytest
@asyncio.coroutine
def _check_update_context(context):
assert context == {'key1': 'value1'}
context['key1'] = 'value2'
context['key2'] = 'value2'
assert context == {'key1': 'value2', 'key2': 'value2'}
@pytest.mark.asyncio
@asyncio.coroutine
def test_ensure_future(contex... | 25.5 | 68 | 0.706972 | 110 | 918 | 5.7 | 0.218182 | 0.157895 | 0.189793 | 0.15949 | 0.701754 | 0.701754 | 0.701754 | 0.637959 | 0.444976 | 0.200957 | 0 | 0.029374 | 0.147059 | 918 | 35 | 69 | 26.228571 | 0.771392 | 0 | 0 | 0.538462 | 0 | 0 | 0.119826 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 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 |
4ce9705dc7bf1e3dc5eeaf5fc42299da95ab12f5 | 662 | py | Python | applications/RANSApplication/RANSApplication.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 2 | 2020-12-22T11:50:11.000Z | 2021-09-15T11:36:30.000Z | applications/RANSApplication/RANSApplication.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 3 | 2021-08-18T16:12:20.000Z | 2021-09-02T07:36:15.000Z | applications/RANSApplication/RANSApplication.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 1 | 2017-05-02T00:52:44.000Z | 2017-05-02T00:52:44.000Z | # Application dependent names and paths
from KratosMultiphysics.kratos_utilities import CheckIfApplicationsAvailable
from KratosMultiphysics import IsDistributedRun
if (IsDistributedRun() and CheckIfApplicationsAvailable("TrilinosApplication")):
import KratosMultiphysics.TrilinosApplication
elif (IsDistributedRun()... | 38.941176 | 80 | 0.867069 | 50 | 662 | 11.38 | 0.48 | 0.115993 | 0.098418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084592 | 662 | 16 | 81 | 41.375 | 0.938944 | 0.055891 | 0 | 0 | 0 | 0 | 0.134831 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
980383568d170ff00fe4243c1a4431c608c73003 | 196 | py | Python | backend/steps/admin.py | mariaeid/Examensarbete | 3b04d404f399ecd5e9e0011bbbe81e715d45fa62 | [
"MIT"
] | null | null | null | backend/steps/admin.py | mariaeid/Examensarbete | 3b04d404f399ecd5e9e0011bbbe81e715d45fa62 | [
"MIT"
] | 14 | 2020-06-06T00:21:31.000Z | 2022-03-12T00:10:08.000Z | backend/steps/admin.py | mariaeid/Examensarbete | 3b04d404f399ecd5e9e0011bbbe81e715d45fa62 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Steps
class StepsAdmin(admin.ModelAdmin):
list_display = ('number', 'title', 'description', 'icon')
admin.site.register(Steps, StepsAdmin)
| 24.5 | 59 | 0.760204 | 24 | 196 | 6.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 196 | 7 | 60 | 28 | 0.850575 | 0 | 0 | 0 | 0 | 0 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 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 |
9803c73d26a8e39fe12c0b2c62ef59cbb1fb160f | 1,408 | py | Python | admin-portal/therapy/migrations/0003_auto_20210918_2007.py | oakbani/ksdp-portal | 8f44b3cb0081a7f31b9c8121883dd51945a05520 | [
"MIT"
] | null | null | null | admin-portal/therapy/migrations/0003_auto_20210918_2007.py | oakbani/ksdp-portal | 8f44b3cb0081a7f31b9c8121883dd51945a05520 | [
"MIT"
] | null | null | null | admin-portal/therapy/migrations/0003_auto_20210918_2007.py | oakbani/ksdp-portal | 8f44b3cb0081a7f31b9c8121883dd51945a05520 | [
"MIT"
] | 1 | 2021-09-19T10:58:17.000Z | 2021-09-19T10:58:17.000Z | # Generated by Django 3.2.7 on 2021-09-18 15:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("therapy", "0002_auto_20210918_1918"),
]
operations = [
migrations.AlterField(
model_name="therapist",
name="OT",
... | 28.734694 | 81 | 0.451705 | 117 | 1,408 | 5.358974 | 0.452991 | 0.15949 | 0.199362 | 0.23126 | 0.523126 | 0.424242 | 0.357257 | 0.357257 | 0.357257 | 0.357257 | 0 | 0.055035 | 0.393466 | 1,408 | 48 | 82 | 29.333333 | 0.679157 | 0.03196 | 0 | 0.404762 | 1 | 0 | 0.130051 | 0.016899 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 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 |
e221df9c0fbdd79705c2475263076125570b9143 | 144 | py | Python | audio_recorder/models.py | clappingmin/django_audio_record | aac3ae76c44ca3ed372e8d8eeeaa6f87969dccc5 | [
"MIT"
] | 13 | 2017-04-30T20:21:40.000Z | 2021-12-12T00:55:23.000Z | audio_recorder/models.py | clappingmin/django_audio_record | aac3ae76c44ca3ed372e8d8eeeaa6f87969dccc5 | [
"MIT"
] | 16 | 2018-05-21T22:07:43.000Z | 2018-05-26T01:06:18.000Z | audio_recorder/models.py | clappingmin/django_audio_record | aac3ae76c44ca3ed372e8d8eeeaa6f87969dccc5 | [
"MIT"
] | 5 | 2018-02-08T15:19:30.000Z | 2021-02-27T15:32:03.000Z | from django.db import models
class AudioFileMixin(models.Model):
audio_file = models.FileField()
class Meta:
abstract = True
| 16 | 35 | 0.694444 | 17 | 144 | 5.823529 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 144 | 8 | 36 | 18 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 |
e22246eb185b93f577a257ec4a3681b8604fc0d7 | 43 | py | Python | test/login.py | reatone/test007 | 47bdf238f3216e58a6b330fb179271e70391a076 | [
"MIT"
] | null | null | null | test/login.py | reatone/test007 | 47bdf238f3216e58a6b330fb179271e70391a076 | [
"MIT"
] | null | null | null | test/login.py | reatone/test007 | 47bdf238f3216e58a6b330fb179271e70391a076 | [
"MIT"
] | null | null | null | num = 1
num = 2
num = 3
num = 4
num = 5
| 4.777778 | 7 | 0.465116 | 10 | 43 | 2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.418605 | 43 | 8 | 8 | 5.375 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e2383ad9040df69d8686aa19313f7ca8c4162340 | 25 | py | Python | main/libxxf86misc/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 46 | 2021-06-10T02:27:32.000Z | 2022-03-27T11:33:24.000Z | main/libxxf86misc/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 58 | 2021-07-03T13:58:20.000Z | 2022-03-13T16:45:35.000Z | main/libxxf86misc/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 6 | 2021-07-04T10:46:40.000Z | 2022-01-09T00:03:59.000Z | pkgname = "libXxf86misc"
| 12.5 | 24 | 0.76 | 2 | 25 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.12 | 25 | 1 | 25 | 25 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e23a4d16dcbb4edf884117af99bd358518dd7d94 | 763 | py | Python | tests/test_utils.py | lee88688/cloud-file-manager | d3be3021a28213d08da95733d4b2b3f271de7bbe | [
"MIT"
] | 5 | 2018-07-22T14:04:55.000Z | 2019-12-27T12:51:46.000Z | tests/test_utils.py | lee88688/cloud-file-manager | d3be3021a28213d08da95733d4b2b3f271de7bbe | [
"MIT"
] | 9 | 2018-07-19T08:30:41.000Z | 2020-07-07T19:25:44.000Z | tests/test_utils.py | lee88688/cloud-file-manager | d3be3021a28213d08da95733d4b2b3f271de7bbe | [
"MIT"
] | 1 | 2020-01-23T08:44:30.000Z | 2020-01-23T08:44:30.000Z | import unittest
from cloudr.utils import change_path_prefix
class TestUtils(unittest.TestCase):
def test_change_path_prefix(self):
self.assertEqual(change_path_prefix('/123', '/', '/'), '/123')
self.assertEqual(change_path_prefix('/123/234', '/123', '/123'), '/123/234')
self.assertEqual(c... | 40.157895 | 92 | 0.631717 | 95 | 763 | 4.789474 | 0.231579 | 0.197802 | 0.316484 | 0.384615 | 0.615385 | 0.615385 | 0.615385 | 0.276923 | 0 | 0 | 0 | 0.165899 | 0.146789 | 763 | 18 | 93 | 42.388889 | 0.533026 | 0 | 0 | 0 | 0 | 0 | 0.205767 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e27159dba09cae5a17bc0cb3734fff8446dd5d60 | 375 | py | Python | kafka_helpers/kafka_exceptions.py | ChristopherHaydenTodd/ctodd-python-lib-kafka | 8fcd544aa8931978565a581fe01b23bb512d933f | [
"MIT"
] | 3 | 2019-02-24T14:04:25.000Z | 2020-03-31T18:53:30.000Z | kafka_helpers/kafka_exceptions.py | ChristopherHaydenTodd/ctodd-python-lib-kafka | 8fcd544aa8931978565a581fe01b23bb512d933f | [
"MIT"
] | null | null | null | kafka_helpers/kafka_exceptions.py | ChristopherHaydenTodd/ctodd-python-lib-kafka | 8fcd544aa8931978565a581fe01b23bb512d933f | [
"MIT"
] | 3 | 2019-06-26T21:00:30.000Z | 2020-03-19T19:52:42.000Z | """
Purpose:
File for holding custom exception types that will be generated by the
kafka_helpers libraries
"""
###
# Consumer Exceptions
###
class TopicNotFound(Exception):
"""
Purpose:
The TopicNotFound will be raised when attempting to consume a topic that
does not exis... | 12.931034 | 80 | 0.624 | 40 | 375 | 5.825 | 0.8 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293333 | 375 | 28 | 81 | 13.392857 | 0.879245 | 0.682667 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e2a961e3a452a9527ea5562c63d635cf9c720f00 | 1,026 | py | Python | release/stubs.min/Wms/RemotingImplementation/BackgroundAgents/Handlers.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingImplementation/BackgroundAgents/Handlers.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/RemotingImplementation/BackgroundAgents/Handlers.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Wms.RemotingImplementation.BackgroundAgents.Handlers calls itself Handlers
# from Wms.RemotingImplementation,Version=1.23.1.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no important
from __init__ import *
# no functions
# classes
class PingHandler(MessageHandlerBase... | 34.2 | 214 | 0.75731 | 117 | 1,026 | 6.196581 | 0.512821 | 0.062069 | 0.066207 | 0.078621 | 0.155862 | 0.155862 | 0.155862 | 0.155862 | 0.155862 | 0.155862 | 0 | 0.01105 | 0.117934 | 1,026 | 29 | 215 | 35.37931 | 0.790055 | 0.651072 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.25 | 0.083333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e2ab01c43cd58b8eaa49ad277888812ca2c2df1c | 201 | py | Python | mailie/_auth.py | 2000prath/mailie | 6bb825964f708e924143b16a641d8c192121f5f7 | [
"Apache-2.0"
] | null | null | null | mailie/_auth.py | 2000prath/mailie | 6bb825964f708e924143b16a641d8c192121f5f7 | [
"Apache-2.0"
] | 29 | 2021-12-02T23:56:23.000Z | 2022-03-25T08:27:29.000Z | mailie/_auth.py | 2000prath/mailie | 6bb825964f708e924143b16a641d8c192121f5f7 | [
"Apache-2.0"
] | 1 | 2022-03-31T07:57:16.000Z | 2022-03-31T07:57:16.000Z | class Auth:
"""
Base class for authentication schemes.
"""
def auth(self):
...
def synchronous_auth(self):
...
async def asynchronous_auth(self):
...
| 14.357143 | 42 | 0.522388 | 19 | 201 | 5.421053 | 0.578947 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.348259 | 201 | 13 | 43 | 15.461538 | 0.78626 | 0.189055 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c344c81d5a6d4e904f810896fbf0239a55577c5 | 219 | py | Python | src/components/examples/python-sample/pysample.py | ghsecuritylab/comanche | a8862eaed59045377874b95b120832a0cba42193 | [
"Apache-2.0"
] | 19 | 2017-10-03T16:01:49.000Z | 2021-06-07T10:21:46.000Z | src/components/examples/python-sample/pysample.py | dnbaker/comanche | 121cd0fa16e55d461b366e83511d3810ea2b11c9 | [
"Apache-2.0"
] | 25 | 2018-02-21T23:43:03.000Z | 2020-09-02T08:47:32.000Z | src/components/examples/python-sample/pysample.py | dnbaker/comanche | 121cd0fa16e55d461b366e83511d3810ea2b11c9 | [
"Apache-2.0"
] | 19 | 2017-10-24T17:41:40.000Z | 2022-02-22T02:17:18.000Z | # python class
import sys
class Sample:
def __init__(self):
print("Python Sample component instantiated.")
def say_hello(self):
print("Say hello from Python my friend! :" + str(sys.version))
| 18.25 | 70 | 0.657534 | 28 | 219 | 4.964286 | 0.642857 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237443 | 219 | 11 | 71 | 19.909091 | 0.832335 | 0.054795 | 0 | 0 | 0 | 0 | 0.349754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2c44f4f1b4c55cb97c4c4fc7cd84092114415238 | 217 | py | Python | outlier_detection/tests/test_LevelShift_outlier.py | AdysTech/outlier-detection | f0425b2201ce6b49611cbc8d206312ac82c763ce | [
"MIT"
] | 2 | 2020-09-16T07:55:08.000Z | 2022-03-26T16:34:29.000Z | outlier_detection/tests/test_LevelShift_outlier.py | AdysTech/outlier-detection | f0425b2201ce6b49611cbc8d206312ac82c763ce | [
"MIT"
] | null | null | null | outlier_detection/tests/test_LevelShift_outlier.py | AdysTech/outlier-detection | f0425b2201ce6b49611cbc8d206312ac82c763ce | [
"MIT"
] | 2 | 2021-11-22T16:55:10.000Z | 2022-03-19T07:05:11.000Z | import outlier_detection as tso
from .test_data_setup import import_dataframe
import numpy as nm
class TestLSOutlier:
def test_init(self):
df = import_dataframe()
ls = tso.LevelShiftDetector(df) | 21.7 | 45 | 0.741935 | 29 | 217 | 5.344828 | 0.689655 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202765 | 217 | 10 | 46 | 21.7 | 0.895954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2c48a199a21d2e4a183ef6bd7845c58c71ad8964 | 305 | py | Python | events/contrib/plugins/form_elements/fields/hidden_model_object/defaults.py | mansonul/events | 4f6ca37bc600dcba3f74400d299826882d53b7d2 | [
"MIT"
] | null | null | null | events/contrib/plugins/form_elements/fields/hidden_model_object/defaults.py | mansonul/events | 4f6ca37bc600dcba3f74400d299826882d53b7d2 | [
"MIT"
] | null | null | null | events/contrib/plugins/form_elements/fields/hidden_model_object/defaults.py | mansonul/events | 4f6ca37bc600dcba3f74400d299826882d53b7d2 | [
"MIT"
] | null | null | null | __title__ = 'fobi.contrib.plugins.form_elements.fields.' \
'hidden_model_object.default'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = 'Copyright (c) 2014-2017 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('IGNORED_MODELS',)
IGNORED_MODELS = []
| 33.888889 | 60 | 0.731148 | 37 | 305 | 5.351351 | 0.783784 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.134426 | 305 | 8 | 61 | 38.125 | 0.704545 | 0 | 0 | 0 | 0 | 0 | 0.603279 | 0.318033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c5649f763dcd1c412c7afb17ba7050aab0e679b | 225 | py | Python | server/ripoff9gag/api.py | secret-transaction/RipOff9Gag | 49b13c047137b9fad182ebfc6097ccfbeb35a289 | [
"Apache-2.0"
] | 1 | 2017-11-05T04:05:46.000Z | 2017-11-05T04:05:46.000Z | server/ripoff9gag/api.py | secret-transaction/RipOff9Gag | 49b13c047137b9fad182ebfc6097ccfbeb35a289 | [
"Apache-2.0"
] | null | null | null | server/ripoff9gag/api.py | secret-transaction/RipOff9Gag | 49b13c047137b9fad182ebfc6097ccfbeb35a289 | [
"Apache-2.0"
] | null | null | null | import endpoints
from api_user import UserAPI
from api_posts import PostsAPI
from api_comments import ReactionAPI
from api_image import ImageAPI
APPLICATION = endpoints.api_server([PostsAPI, ReactionAPI, UserAPI, ImageAPI]) | 28.125 | 78 | 0.848889 | 30 | 225 | 6.2 | 0.466667 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 225 | 8 | 78 | 28.125 | 0.93 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
2c64b81f283945becf8d857b58ca26622244f4ea | 215 | py | Python | chanjo_report/server/extensions.py | henrikstranneheim/chanjo-report | 689cae2521644f136278f810621fa8c6207bcbe4 | [
"MIT"
] | null | null | null | chanjo_report/server/extensions.py | henrikstranneheim/chanjo-report | 689cae2521644f136278f810621fa8c6207bcbe4 | [
"MIT"
] | null | null | null | chanjo_report/server/extensions.py | henrikstranneheim/chanjo-report | 689cae2521644f136278f810621fa8c6207bcbe4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Extensions module. Each extension is initialized in the app factory
located in app.py
"""
from __future__ import absolute_import, unicode_literals
from ..miner import Miner
api = Miner()
| 23.888889 | 70 | 0.744186 | 30 | 215 | 5.133333 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.148837 | 215 | 8 | 71 | 26.875 | 0.836066 | 0.502326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
2c7269a0959abd8aafdb8038191cf3a13c59448a | 1,119 | py | Python | setup.py | marceloomg13/BotonAnimado | e3ba7aa365fe1a8102f1a423dd818589a1497772 | [
"MIT"
] | null | null | null | setup.py | marceloomg13/BotonAnimado | e3ba7aa365fe1a8102f1a423dd818589a1497772 | [
"MIT"
] | null | null | null | setup.py | marceloomg13/BotonAnimado | e3ba7aa365fe1a8102f1a423dd818589a1497772 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='BotonAnimado',
packages=['BotonAnimado'], # Mismo nombre que en la estructura de carpetas de arriba
version='1.0',
license='LGPL v3', # La licencia que tenga tu paquete
description='A random test lib',
author='RDCH106',
author_email='conta... | 53.285714 | 127 | 0.635389 | 129 | 1,119 | 5.496124 | 0.581395 | 0.187588 | 0.246827 | 0.183357 | 0.115656 | 0.115656 | 0 | 0 | 0 | 0 | 0 | 0.032143 | 0.24933 | 1,119 | 21 | 128 | 53.285714 | 0.811905 | 0.231457 | 0 | 0 | 0 | 0.05 | 0.56235 | 0.026379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c8767dd0fea84fd026b6e3891b6ea0cd110fa7d | 162 | py | Python | fmsquared/constants.py | ramadan8/FMSquared | 3a443f825c929a5bac0af2c34b70344ca61ad378 | [
"MIT"
] | null | null | null | fmsquared/constants.py | ramadan8/FMSquared | 3a443f825c929a5bac0af2c34b70344ca61ad378 | [
"MIT"
] | null | null | null | fmsquared/constants.py | ramadan8/FMSquared | 3a443f825c929a5bac0af2c34b70344ca61ad378 | [
"MIT"
] | null | null | null | class Constants(object):
valid_time_periods = ['overall', '7day', '1month', '3month', '6month', '12month']
valid_art_extensions = ['png', 'jpg', 'jpeg', 'webp'] | 54 | 82 | 0.666667 | 19 | 162 | 5.473684 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041379 | 0.104938 | 162 | 3 | 83 | 54 | 0.675862 | 0 | 0 | 0 | 0 | 0 | 0.306748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 |
2c8a9509005148b13e05aaaa8649d974e897d339 | 338 | py | Python | tests/wire/test_Wire.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | tests/wire/test_Wire.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | tests/wire/test_Wire.py | jamesjiang52/Bitwise | c71f151d23034b3f9e2a939f637be0eaa16c45c3 | [
"MIT"
] | null | null | null | import bitwise as bw
class TestWire:
def test_Wire(self):
wire = bw.wire.Wire()
assert wire.value == 0
wire.value = 1
assert wire.value == 1
wire.value = 0
assert wire.value == 0
print(wire.__doc__)
print(wire)
wire(value=1)
asser... | 16.9 | 30 | 0.529586 | 44 | 338 | 3.954545 | 0.363636 | 0.362069 | 0.344828 | 0.183908 | 0.298851 | 0.298851 | 0.298851 | 0 | 0 | 0 | 0 | 0.033019 | 0.372781 | 338 | 19 | 31 | 17.789474 | 0.787736 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0.153846 | 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 |
2c9f2dd4fbd07e386b5afd9c178bbe8a9176f2bf | 28 | py | Python | tests/__init__.py | tsuru/morfeu | 1b7f83780ccd181e342e9be70059bf32419fe76d | [
"BSD-3-Clause"
] | 4 | 2015-12-16T18:43:18.000Z | 2016-10-05T18:39:06.000Z | tests/__init__.py | tsuru/morfeu | 1b7f83780ccd181e342e9be70059bf32419fe76d | [
"BSD-3-Clause"
] | 7 | 2015-12-02T14:34:31.000Z | 2016-01-30T04:46:51.000Z | tests/__init__.py | tsuru/morfeu | 1b7f83780ccd181e342e9be70059bf32419fe76d | [
"BSD-3-Clause"
] | 2 | 2016-02-19T10:30:22.000Z | 2016-08-26T06:10:27.000Z | __author__ = 'gustavosouza'
| 14 | 27 | 0.785714 | 2 | 28 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ca1f68880a58b0924b7d38e46942c011ebcc20e | 54 | py | Python | gsfarc/__init__.py | geospatial-services-framework/gsfpyarc | 5ef69299fbc0b763ad4c1857ceac3ff087c0dc14 | [
"MIT"
] | 1 | 2021-11-06T18:36:28.000Z | 2021-11-06T18:36:28.000Z | gsfarc/__init__.py | geospatial-services-framework/gsfpyarc | 5ef69299fbc0b763ad4c1857ceac3ff087c0dc14 | [
"MIT"
] | null | null | null | gsfarc/__init__.py | geospatial-services-framework/gsfpyarc | 5ef69299fbc0b763ad4c1857ceac3ff087c0dc14 | [
"MIT"
] | null | null | null | '''
Created on Jan 19, 2016
@author: elefebvre
'''
| 6.75 | 23 | 0.611111 | 7 | 54 | 4.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.222222 | 54 | 7 | 24 | 7.714286 | 0.642857 | 0.796296 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ca39bde0b47f0d11214a7ccc4a39a6c0ade7fb0 | 101 | py | Python | 1133.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | 3 | 2021-09-21T18:50:20.000Z | 2021-12-14T13:07:31.000Z | 1133.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | 1133.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | a=int(input())
b=int(input())
if a>b:a,b=b,a
for i in range(a+1,b):
if i%5==2 or i%5==3:print(i)
| 16.833333 | 32 | 0.554455 | 30 | 101 | 1.866667 | 0.5 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.158416 | 101 | 5 | 33 | 20.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 1 | 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 |
2ca64820869c978bcb689b9af808188c807cc8b4 | 86 | py | Python | languages/imp/programs/prog1.py | ellisonch/kinc | ae060ff66627dc07d4a1d2e60a21b5d7be5edf79 | [
"MIT"
] | 2 | 2015-08-18T17:16:38.000Z | 2015-09-02T07:40:20.000Z | languages/imp/programs/prog1.py | ellisonch/kinc | ae060ff66627dc07d4a1d2e60a21b5d7be5edf79 | [
"MIT"
] | 1 | 2015-08-18T17:19:33.000Z | 2015-08-18T17:19:33.000Z | languages/imp/programs/prog1.py | ellisonch/kinc | ae060ff66627dc07d4a1d2e60a21b5d7be5edf79 | [
"MIT"
] | null | null | null | import sys
n = sys.argv[1]
s = 0
while (not(n <= 0)):
s = s + n
n = n + -1
print s
| 9.555556 | 20 | 0.488372 | 20 | 86 | 2.1 | 0.5 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0.313953 | 86 | 8 | 21 | 10.75 | 0.644068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 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 |
2ca75104c1eefd55920485fab45e47af368cfa72 | 846 | py | Python | devops-console/apps/orgs/utils.py | lilinghell/devops | 1b2890d3f2d9f6e15e5b32d0910bc4768f065adc | [
"Apache-2.0"
] | 4 | 2019-12-06T06:19:33.000Z | 2021-12-23T13:05:06.000Z | devops-console/apps/orgs/utils.py | lilinghell/devops | 1b2890d3f2d9f6e15e5b32d0910bc4768f065adc | [
"Apache-2.0"
] | 8 | 2020-03-15T03:40:38.000Z | 2022-03-12T00:50:27.000Z | devops-console/apps/orgs/utils.py | lilinghell/devops | 1b2890d3f2d9f6e15e5b32d0910bc4768f065adc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
from functools import partial
from werkzeug.local import Local
from common.utils import LocalProxy
from .models import Organization
_thread_locals = Local()
def get_org_from_request(request):
oid = request.session.get("oid")
# if not oid:
# oid = request.META.get("HTTP_X_JM... | 18.8 | 55 | 0.722222 | 117 | 846 | 4.897436 | 0.34188 | 0.122164 | 0.031414 | 0.055846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001416 | 0.165485 | 846 | 44 | 56 | 19.227273 | 0.810198 | 0.092199 | 0 | 0 | 0 | 0 | 0.078637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.181818 | 0.136364 | 0.681818 | 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 |
2cacc8ac7a80c2cb8ad7055d3c4fdb1d17c969ae | 293 | py | Python | nuqasm2/__init__.py | jwoehr/nuqasm2 | 2c037eaed2ac4d30899b440f82b2e6370f1bfb95 | [
"Apache-2.0"
] | 6 | 2020-01-15T07:06:25.000Z | 2021-02-06T00:31:47.000Z | nuqasm2/__init__.py | jwoehr/nuqasm2 | 2c037eaed2ac4d30899b440f82b2e6370f1bfb95 | [
"Apache-2.0"
] | 2 | 2020-02-23T04:34:39.000Z | 2020-03-02T18:55:47.000Z | nuqasm2/__init__.py | jwoehr/nuqasm2 | 2c037eaed2ac4d30899b440f82b2e6370f1bfb95 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 27 13:41:36 2020
@author: jax
"""
from .qasmast import QasmTranslator, Qasm_Exception
from .ast2circ import Ast2Circ, Ast2CircException, Ast2CircOpNotFoundException
from .load import load_from_string, load_from_file, load
| 26.636364 | 78 | 0.767918 | 40 | 293 | 5.5 | 0.75 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070039 | 0.122867 | 293 | 10 | 79 | 29.3 | 0.785992 | 0.317406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2cbb713112f3e0da0421aca32c42747942294f42 | 3,409 | py | Python | ClassFiles/OOP/Encapsulation.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | ClassFiles/OOP/Encapsulation.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | ClassFiles/OOP/Encapsulation.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | ''' Encapsulation : Part 1
Encapsulation is the process of restricting access to methods and variables in a class in order to prevent direct data modification so that it prevents accidental data modification.
Encapsulation basically allows the internal representation of an object to be hidden from the v... | 32.778846 | 195 | 0.664418 | 463 | 3,409 | 4.781857 | 0.285097 | 0.04878 | 0.03794 | 0.02168 | 0.701445 | 0.666215 | 0.666215 | 0.616983 | 0.616983 | 0.616983 | 0 | 0.036428 | 0.2511 | 3,409 | 103 | 196 | 33.097087 | 0.830787 | 0.823409 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ccae60c389bc36b573b4e4c8972b6e76a302558 | 308 | py | Python | Module 3/Chapter 2/ch2_3.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 50 | 2016-12-11T13:49:01.000Z | 2022-03-20T19:47:55.000Z | Module 3/Chapter 2/ch2_3.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | null | null | null | Module 3/Chapter 2/ch2_3.py | PacktPublishing/Natural-Language-Processing-Python-and-NLTK | bb7fd9a3071b4247d13accfbf0a48eefec76e925 | [
"MIT"
] | 40 | 2017-06-14T14:02:48.000Z | 2021-10-14T06:25:00.000Z | import nltk
from nltk.collocations import BigramCollocationFinder
from nltk.corpus import webtext
from nltk.metrics import BigramAssocMeasures
tokens=[t.lower() for t in webtext.words('grail.txt')]
words=BigramCollocationFinder.from_words(tokens)
print(words.nbest(BigramAssocMeasures.likelihood_ratio, 10))
| 38.5 | 60 | 0.844156 | 39 | 308 | 6.615385 | 0.564103 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.071429 | 308 | 7 | 61 | 44 | 0.895105 | 0 | 0 | 0 | 0 | 0 | 0.029221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
e2c87bffd1684e545a881fc4b29506d41af8b4eb | 836 | py | Python | config.py | mukul-pathania/flaskapp | 8aab014f011082183be416a784b61e94ead40054 | [
"MIT"
] | 3 | 2020-01-20T02:53:07.000Z | 2020-06-28T02:10:16.000Z | config.py | mukul-pathania/flaskapp | 8aab014f011082183be416a784b61e94ead40054 | [
"MIT"
] | null | null | null | config.py | mukul-pathania/flaskapp | 8aab014f011082183be416a784b61e94ead40054 | [
"MIT"
] | 3 | 2020-01-16T08:51:27.000Z | 2020-06-20T14:18:48.000Z | import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir,".env"))
class Config(object):
SECRET_KEY = os.environ.get("SECRET_KEY") or "This-is-top-secret"
DB_CONFIG = {"host":str(os.environ.get("DATABASE_HOST")),
"user":str... | 38 | 69 | 0.663876 | 118 | 836 | 4.474576 | 0.40678 | 0.170455 | 0.227273 | 0.151515 | 0.174242 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.181818 | 836 | 21 | 70 | 39.809524 | 0.766082 | 0 | 0 | 0 | 0 | 0 | 0.228469 | 0.02512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e2fcde36f9652a1c26506189cb08514b7487396a | 454 | py | Python | allegation/utils/date.py | invinst/CPDB | c2d8ae8888b13d956cc1068742f18d45736d4121 | [
"Apache-2.0"
] | 16 | 2016-05-20T09:03:32.000Z | 2020-09-13T14:23:06.000Z | allegation/utils/date.py | invinst/CPDB | c2d8ae8888b13d956cc1068742f18d45736d4121 | [
"Apache-2.0"
] | 2 | 2016-05-24T01:44:14.000Z | 2016-06-17T22:19:45.000Z | allegation/utils/date.py | invinst/CPDB | c2d8ae8888b13d956cc1068742f18d45736d4121 | [
"Apache-2.0"
] | 2 | 2016-10-10T16:14:19.000Z | 2020-10-26T00:17:02.000Z | import random
import time
import datetime
from common.constants import DATE_ONLY_FORMAT
def tomorrow():
return datetime.datetime.now() + datetime.timedelta(days=1)
def generate_random_date(start, end, format=DATE_ONLY_FORMAT):
etime = time.mktime(time.strptime(end, format))
stime = time.mktime(time.str... | 23.894737 | 63 | 0.740088 | 60 | 454 | 5.5 | 0.45 | 0.048485 | 0.084848 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002584 | 0.147577 | 454 | 18 | 64 | 25.222222 | 0.850129 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0.090909 | 0.727273 | 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 |
39108bc3144d071ff2a10bd4a2fce7bf8d7bc94a | 997 | py | Python | group_work/2022-03-17/loop_exercise.py | klp/cuny_gc_python_class_sp2022 | 5614d5a1c790bac211f1221b7c727b59e9e05ca1 | [
"BSD-2-Clause"
] | null | null | null | group_work/2022-03-17/loop_exercise.py | klp/cuny_gc_python_class_sp2022 | 5614d5a1c790bac211f1221b7c727b59e9e05ca1 | [
"BSD-2-Clause"
] | null | null | null | group_work/2022-03-17/loop_exercise.py | klp/cuny_gc_python_class_sp2022 | 5614d5a1c790bac211f1221b7c727b59e9e05ca1 | [
"BSD-2-Clause"
] | null | null | null | """ Create a function called 'only_lower' that takes a list of strings as an
argument
and returns another list. This new list will contain only the lowered version of
the words of the previous list (exclude numbers and punctuation)
Hint:
- google "python isalpha" and play a bit with this method to see how it w... | 39.88 | 81 | 0.752257 | 170 | 997 | 4.382353 | 0.529412 | 0.036242 | 0.040268 | 0.037584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210632 | 997 | 25 | 82 | 39.88 | 0.946633 | 0.911735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3918913a1b6f60c8fc98f7ba164511a5a25a89c9 | 159 | py | Python | tests/conftest.py | ASFHyP3/hyp3-gamma | 87b3ff81bc053fd74b3b2c1e33d72bd4fad3a4bd | [
"BSD-3-Clause"
] | 8 | 2021-04-23T08:07:22.000Z | 2022-03-14T05:13:46.000Z | tests/conftest.py | ASFHyP3/hyp3-gamma | 87b3ff81bc053fd74b3b2c1e33d72bd4fad3a4bd | [
"BSD-3-Clause"
] | 37 | 2020-12-11T00:57:50.000Z | 2022-03-31T16:21:01.000Z | tests/conftest.py | ASFHyP3/hyp3-rtc-gamma | 256aee7f0fcc78c914cd6d9a095159f30cf865d4 | [
"BSD-3-Clause"
] | 2 | 2020-07-14T00:42:14.000Z | 2020-08-03T15:57:47.000Z | import os
from pathlib import Path
import pytest
@pytest.fixture()
def test_data_dir():
here = Path(os.path.dirname(__file__))
return here / 'data'
| 14.454545 | 42 | 0.710692 | 23 | 159 | 4.652174 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18239 | 159 | 10 | 43 | 15.9 | 0.823077 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3936a70754f26f473b80fbbc92a3df31b4ca7900 | 165 | py | Python | lightpack/tests/sanity_tests.py | briancline/lightpack | 7ea008085f21575bb98dcc833d39753625f6b6a2 | [
"MIT"
] | 1 | 2018-05-02T15:04:35.000Z | 2018-05-02T15:04:35.000Z | lightpack/tests/sanity_tests.py | briancline/lightpack | 7ea008085f21575bb98dcc833d39753625f6b6a2 | [
"MIT"
] | null | null | null | lightpack/tests/sanity_tests.py | briancline/lightpack | 7ea008085f21575bb98dcc833d39753625f6b6a2 | [
"MIT"
] | null | null | null | from lightpack.tests import unittest
class SanityTests(unittest.TestCase):
def test_psych(self):
self.assertTrue(True)
self.assertFalse(False)
| 20.625 | 37 | 0.721212 | 19 | 165 | 6.210526 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193939 | 165 | 7 | 38 | 23.571429 | 0.887218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
39439a5fe04915dbc9c16fb235aff0986814e242 | 511 | py | Python | tests/test_unit/test_yaml.py | instituteofcancerresearch/slidebook-python | 0477478c68b435e52e52f438411dba954a50bf04 | [
"MIT"
] | 1 | 2022-01-26T17:32:58.000Z | 2022-01-26T17:32:58.000Z | tests/test_unit/test_yaml.py | instituteofcancerresearch/slidebook-python | 0477478c68b435e52e52f438411dba954a50bf04 | [
"MIT"
] | 8 | 2022-01-26T18:08:49.000Z | 2022-02-15T13:48:39.000Z | tests/test_unit/test_yaml.py | instituteofcancerresearch/slidebook-python | 0477478c68b435e52e52f438411dba954a50bf04 | [
"MIT"
] | 1 | 2022-03-24T08:42:26.000Z | 2022-03-24T08:42:26.000Z | from pathlib import Path
from sld.yaml import open_yaml
data_dir = Path.cwd() / "tests" / "data"
test_yaml = data_dir / "test.yaml"
def test_open_yaml():
yaml_contents = open_yaml(test_yaml)
assert len(yaml_contents) == 4
assert yaml_contents["a"] == 1
assert yaml_contents["b"] == 2
assert yaml_... | 28.388889 | 65 | 0.677104 | 70 | 511 | 4.714286 | 0.385714 | 0.290909 | 0.272727 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016588 | 0.174168 | 511 | 17 | 66 | 30.058824 | 0.765403 | 0 | 0 | 0 | 0 | 0 | 0.144814 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a3ece3b49e6e7901d088b748a11e4b43a2e9bce | 138 | py | Python | Sketche/title.py | kantel/p5 | 2ef14191c35fdb056b44624c6ff0ff764c88cc30 | [
"MIT"
] | null | null | null | Sketche/title.py | kantel/p5 | 2ef14191c35fdb056b44624c6ff0ff764c88cc30 | [
"MIT"
] | null | null | null | Sketche/title.py | kantel/p5 | 2ef14191c35fdb056b44624c6ff0ff764c88cc30 | [
"MIT"
] | null | null | null | from p5 import *
def setup():
title("🐍 Jörgs Python Sketch 🐍".encode("utf-8"))
def draw():
background(245, 245, 245)
run() | 13.8 | 52 | 0.586957 | 21 | 138 | 3.952381 | 0.809524 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103774 | 0.231884 | 138 | 10 | 53 | 13.8 | 0.660377 | 0 | 0 | 0 | 0 | 0 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a40bf2f730b3869f884e394f878e6cc92957491 | 121 | py | Python | app.py | mikedh/packz | 3b055ee77774be3498f7c357d4a27484a491bcb3 | [
"MIT"
] | null | null | null | app.py | mikedh/packz | 3b055ee77774be3498f7c357d4a27484a491bcb3 | [
"MIT"
] | null | null | null | app.py | mikedh/packz | 3b055ee77774be3498f7c357d4a27484a491bcb3 | [
"MIT"
] | null | null | null |
def do():
import trimesh
return trimesh.creation.icosphere().convex_hull
if __name__ == '__main__':
do()
| 12.1 | 51 | 0.652893 | 14 | 121 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223141 | 121 | 9 | 52 | 13.444444 | 0.744681 | 0 | 0 | 0 | 0 | 0 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a4d27aeb74da93719a789fd159b4795c67326b5 | 618 | py | Python | mltools/examples.py | markvdw/mltools | ed07ee92c53c5d4de94feea33487a845b655adb3 | [
"MIT"
] | 1 | 2016-07-20T13:06:43.000Z | 2016-07-20T13:06:43.000Z | mltools/examples.py | markvdw/mltools | ed07ee92c53c5d4de94feea33487a845b655adb3 | [
"MIT"
] | null | null | null | mltools/examples.py | markvdw/mltools | ed07ee92c53c5d4de94feea33487a845b655adb3 | [
"MIT"
] | null | null | null | import numpy as np
import numpy.random as rnd
import simple_optimise as mlopt
vec = rnd.randn(10)
mat = rnd.randn(10, 10)
mat += mat.T
# Single output, single input
def f1_1(x):
return x**2.0
def fD_1(x):
return vec * x
def f1_D(x):
return x.dot(mat.dot(x))
def f1_DD(x):
return vec.dot(x.dot(v... | 17.657143 | 60 | 0.692557 | 122 | 618 | 3.336066 | 0.278689 | 0.09828 | 0.12285 | 0.088452 | 0.068796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.169903 | 618 | 35 | 60 | 17.657143 | 0.719298 | 0.043689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0.238095 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1a60759ecd1ccef0f99a4e175e2c1809ce691058 | 1,398 | py | Python | python-functions/challenge.py | HenriqueMAP/microsoft-learn-studies | 86fdacdec8763e407b9b0f113fe001d56c38f94e | [
"MIT"
] | 1 | 2020-10-06T12:40:00.000Z | 2020-10-06T12:40:00.000Z | python-functions/challenge.py | HenriqueMAP/microsoft-learn-studies | 86fdacdec8763e407b9b0f113fe001d56c38f94e | [
"MIT"
] | null | null | null | python-functions/challenge.py | HenriqueMAP/microsoft-learn-studies | 86fdacdec8763e407b9b0f113fe001d56c38f94e | [
"MIT"
] | null | null | null | import processor
my_list = [5, 'Dan', '4', 7, 'Steve', 'Amy', 'Rhonda', 4, '9', 'Jill', 7, 'Kim']
my_bad_list = 5
numbers = processor.process_numbers(my_list)
print(numbers)
names = processor.process_names(my_list)
print(names)
numbers = processor.process_numbers(my_bad_list)
print(numbers)
names = processor.proce... | 48.206897 | 374 | 0.743205 | 238 | 1,398 | 4.302521 | 0.352941 | 0.0625 | 0.027344 | 0.058594 | 0.446289 | 0.383789 | 0.383789 | 0.345703 | 0.259766 | 0.259766 | 0 | 0.01425 | 0.146638 | 1,398 | 28 | 375 | 49.928571 | 0.844091 | 0 | 0 | 0.210526 | 0 | 0.210526 | 0.704578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.631579 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1a60bb8583128622e22208a353eed4c80f96d1c9 | 39 | py | Python | PythonCode/2413.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | PythonCode/2413.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | PythonCode/2413.py | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | t = int(input())
t *= 2
t += t
print(t) | 9.75 | 16 | 0.487179 | 9 | 39 | 2.111111 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.230769 | 39 | 4 | 17 | 9.75 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1aa0586c4dbfd4c2b77bfa00d3e9b90b44747978 | 12,159 | py | Python | password.py | barackmaund1/Password-locker | b3af140127f3c6165b55f97e492adbd490a2fd77 | [
"MIT"
] | null | null | null | password.py | barackmaund1/Password-locker | b3af140127f3c6165b55f97e492adbd490a2fd77 | [
"MIT"
] | null | null | null | password.py | barackmaund1/Password-locker | b3af140127f3c6165b55f97e492adbd490a2fd77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
from user import User,Credential
def create_account(first_name,last_name,user_name,password):
"""
function to create new account or to sign up
"""
new_account=User(first_name,last_name,user_name,password)
return new_account
def save_account(account):
"""
Function ... | 42.513986 | 179 | 0.499712 | 1,165 | 12,159 | 5.079828 | 0.121888 | 0.072491 | 0.078067 | 0.054748 | 0.723555 | 0.694153 | 0.66661 | 0.657148 | 0.628422 | 0.612876 | 0 | 0.001118 | 0.411465 | 12,159 | 285 | 180 | 42.663158 | 0.82588 | 0.056008 | 0 | 0.706161 | 0 | 0.028436 | 0.254653 | 0.045914 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066351 | false | 0.232227 | 0.004739 | 0 | 0.118483 | 0.388626 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1ac900e65390b7bbe6302d10d69728cab6c85482 | 548 | py | Python | src/domain/node.py | kovanostra/graph-to-graph | a4f949c6f8f60ceaf90ddfcc8274a19bdc85bc17 | [
"MIT"
] | 1 | 2020-02-03T07:37:14.000Z | 2020-02-03T07:37:14.000Z | src/domain/node.py | kovanostra/graph-to-graph | a4f949c6f8f60ceaf90ddfcc8274a19bdc85bc17 | [
"MIT"
] | null | null | null | src/domain/node.py | kovanostra/graph-to-graph | a4f949c6f8f60ceaf90ddfcc8274a19bdc85bc17 | [
"MIT"
] | 1 | 2020-01-26T09:39:17.000Z | 2020-01-26T09:39:17.000Z | import numpy as np
from src.domain.graph import Graph
class Node:
def __init__(self, graph: Graph, node_id: int):
self.node_id = node_id
self.features = self._get_node_features(graph)
self.neighbors = self._get_neighbors(graph)
self.neighbors_count = len(self.neighbors)
def _... | 30.444444 | 66 | 0.698905 | 78 | 548 | 4.628205 | 0.333333 | 0.083102 | 0.116343 | 0.088643 | 0.160665 | 0.160665 | 0 | 0 | 0 | 0 | 0 | 0.002278 | 0.198905 | 548 | 17 | 67 | 32.235294 | 0.820046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
46cb478c44288acd22123b079969ab88e333de41 | 146 | py | Python | saku/auction/apps.py | Mehdi-MosTafavi/Saku-Backend | 348a1a676ffc8ddd9077f8c94733c5f6dce98fbd | [
"MIT"
] | null | null | null | saku/auction/apps.py | Mehdi-MosTafavi/Saku-Backend | 348a1a676ffc8ddd9077f8c94733c5f6dce98fbd | [
"MIT"
] | null | null | null | saku/auction/apps.py | Mehdi-MosTafavi/Saku-Backend | 348a1a676ffc8ddd9077f8c94733c5f6dce98fbd | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AuctionConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'auction'
| 20.857143 | 56 | 0.760274 | 17 | 146 | 6.411765 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 146 | 6 | 57 | 24.333333 | 0.879032 | 0 | 0 | 0 | 0 | 0 | 0.246575 | 0.19863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
46d77882538c0b876d8c8027855f6c3234898080 | 268 | py | Python | tests/helpers.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 122 | 2020-07-12T23:08:49.000Z | 2021-12-18T16:14:10.000Z | tests/helpers.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 47 | 2020-07-15T02:18:09.000Z | 2021-09-22T19:51:59.000Z | tests/helpers.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 52 | 2020-07-13T10:49:52.000Z | 2021-10-30T03:34:55.000Z | from thenewboston.accounts.manage import create_account
from thenewboston.verify_keys.verify_key import encode_verify_key
def random_encoded_account_number():
signing_key, account_number = create_account()
return encode_verify_key(verify_key=account_number)
| 33.5 | 65 | 0.850746 | 36 | 268 | 5.916667 | 0.472222 | 0.169014 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097015 | 268 | 7 | 66 | 38.285714 | 0.880165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.8 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46e069b22aa7249a2832500a3be3fcc3da71c062 | 2,451 | py | Python | simpleparser/builtin_parsers.py | maetaro/simpleparser | 73e429b0e4fa861ee57c6743ed597163edd919e8 | [
"MIT"
] | null | null | null | simpleparser/builtin_parsers.py | maetaro/simpleparser | 73e429b0e4fa861ee57c6743ed597163edd919e8 | [
"MIT"
] | null | null | null | simpleparser/builtin_parsers.py | maetaro/simpleparser | 73e429b0e4fa861ee57c6743ed597163edd919e8 | [
"MIT"
] | 1 | 2020-09-20T13:51:33.000Z | 2020-09-20T13:51:33.000Z | """a simple parser combinator."""
from simpleparser import token, seq, transform, choice, Parser
def lf() -> Parser:
r"""Return a LF parser.
Returns
-------
Parser: LF(\n) parser.
Example
-------
>>> from simpleparser.builtin_parsers import lf
>>> p = lf()
>>> p.exec("\nfoo"... | 22.906542 | 142 | 0.512444 | 287 | 2,451 | 4.362369 | 0.289199 | 0.076677 | 0.041534 | 0.044728 | 0.246006 | 0.220447 | 0.162141 | 0.123003 | 0.083067 | 0 | 0 | 0.005774 | 0.29335 | 2,451 | 106 | 143 | 23.122642 | 0.71709 | 0.757242 | 0 | 0 | 0 | 0 | 0.01108 | 0 | 0 | 0 | 0 | 0.009434 | 0 | 1 | 0.307692 | true | 0 | 0.076923 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
200913d13c003f670dcb7fe6089a0ce0613ce10f | 518 | py | Python | tests/test_util.py | nickfrostatx/malt | 1d8dc81101928e6c7b3ad42b70d617e70331bda3 | [
"MIT"
] | null | null | null | tests/test_util.py | nickfrostatx/malt | 1d8dc81101928e6c7b3ad42b70d617e70331bda3 | [
"MIT"
] | 6 | 2016-05-12T04:58:46.000Z | 2017-06-04T00:45:00.000Z | tests/test_util.py | nickfrostatx/malt | 1d8dc81101928e6c7b3ad42b70d617e70331bda3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test out the utility functions."""
from malt import json
def test_json():
resp = json({'greeting': 'Hello World!'})
assert resp.headers['Content-Type'] == 'application/json; charset=utf-8'
assert list(resp) == [b'{"greeting":"Hello World!"}\n']
def test_pretty_json():
re... | 27.263158 | 76 | 0.627413 | 69 | 518 | 4.666667 | 0.405797 | 0.161491 | 0.223602 | 0.124224 | 0.614907 | 0.614907 | 0.428571 | 0.428571 | 0.428571 | 0.428571 | 0 | 0.006897 | 0.160232 | 518 | 18 | 77 | 28.777778 | 0.733333 | 0.104247 | 0 | 0.222222 | 0 | 0 | 0.417031 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
200b9a3559a5e6a153acaff9c63bcb785945a473 | 241 | py | Python | tests/apollo/util/consts.py | evdzhurov/concord-bft | 2e4fdabe0228b51d4d43398158e97d4e36ff974a | [
"Apache-2.0"
] | null | null | null | tests/apollo/util/consts.py | evdzhurov/concord-bft | 2e4fdabe0228b51d4d43398158e97d4e36ff974a | [
"Apache-2.0"
] | null | null | null | tests/apollo/util/consts.py | evdzhurov/concord-bft | 2e4fdabe0228b51d4d43398158e97d4e36ff974a | [
"Apache-2.0"
] | null | null | null | # Constants shared between C++ code and python
# TODO: Share properly via a configuration file
# ControllerWithSimpleHistory::EvaluationPeriod
EVALUATION_PERIOD_SEQUENCES = 64
# kWorkWindowSize in SysConsts.hpp
STATE_TRANSFER_WINDOW = 300
| 26.777778 | 47 | 0.825726 | 28 | 241 | 6.964286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023697 | 0.124481 | 241 | 8 | 48 | 30.125 | 0.900474 | 0.701245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
201f3ed4a77ee5afde8df370f3e82cc1e560469b | 113 | py | Python | Django/DjangoT1.11_LTS/30_Menggunakan class Form/contact/forms.py | Akhadafi/WEB-Framework | 4547a682ac1f007aa6f97512baf76b92ef1c9b9a | [
"MIT"
] | null | null | null | Django/DjangoT1.11_LTS/30_Menggunakan class Form/contact/forms.py | Akhadafi/WEB-Framework | 4547a682ac1f007aa6f97512baf76b92ef1c9b9a | [
"MIT"
] | null | null | null | Django/DjangoT1.11_LTS/30_Menggunakan class Form/contact/forms.py | Akhadafi/WEB-Framework | 4547a682ac1f007aa6f97512baf76b92ef1c9b9a | [
"MIT"
] | null | null | null | from django import forms
class ContactForm(forms.Form):
nama = forms.CharField()
alamat = forms.CharField()
| 18.833333 | 30 | 0.743363 | 14 | 113 | 6 | 0.714286 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150442 | 113 | 5 | 31 | 22.6 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2023c27ba0e12cca1130277acad92be0b4a4129b | 9,544 | py | Python | tests/quickff_module/test_quickff.py | t-brink/pyiron | c07552b54a39e3f036ba395325cd4b372af0f794 | [
"BSD-3-Clause"
] | null | null | null | tests/quickff_module/test_quickff.py | t-brink/pyiron | c07552b54a39e3f036ba395325cd4b372af0f794 | [
"BSD-3-Clause"
] | 1 | 2021-11-02T09:22:56.000Z | 2021-11-02T09:22:56.000Z | tests/quickff_module/test_quickff.py | t-brink/pyiron | c07552b54a39e3f036ba395325cd4b372af0f794 | [
"BSD-3-Clause"
] | 1 | 2021-11-02T08:35:47.000Z | 2021-11-02T08:35:47.000Z | # coding: utf-8
# Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
# Distributed under the terms of "New BSD License", see the LICENSE file.
import unittest
import os
import posixpath
import numpy as np
from molmod.units import *
from pyiron.atomistics.struct... | 47.72 | 132 | 0.621438 | 1,087 | 9,544 | 5.266789 | 0.185833 | 0.110044 | 0.197031 | 0.221659 | 0.717904 | 0.654148 | 0.533974 | 0.387948 | 0.230917 | 0.203668 | 0 | 0.001672 | 0.247904 | 9,544 | 199 | 133 | 47.959799 | 0.795904 | 0.025147 | 0 | 0.121212 | 0 | 0 | 0.125997 | 0.045592 | 0 | 0 | 0 | 0 | 0.418182 | 1 | 0.042424 | false | 0 | 0.054545 | 0 | 0.10303 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
202406fad1a4f322b0ab4520488abf38e3d56bba | 1,140 | py | Python | api/__init__.py | stanfordv/curriculum1 | 57a7b4cbe1b2191fa1ba62c99128024007f4418e | [
"MIT"
] | null | null | null | api/__init__.py | stanfordv/curriculum1 | 57a7b4cbe1b2191fa1ba62c99128024007f4418e | [
"MIT"
] | null | null | null | api/__init__.py | stanfordv/curriculum1 | 57a7b4cbe1b2191fa1ba62c99128024007f4418e | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, make_response
from flask.ext.mongoalchemy import MongoAlchemy
from flask.ext.cors import CORS
import datetime
import json
from bson.objectid import ObjectId
from werkzeug import Response
app = Flask(__name__)
# app.config['MONGOALCHEMY_DATABASE'] = 'flask-react-todo'
app.config['MONGO... | 29.230769 | 99 | 0.713158 | 143 | 1,140 | 5.608392 | 0.412587 | 0.033666 | 0.029925 | 0.072319 | 0.087282 | 0.087282 | 0 | 0 | 0 | 0 | 0 | 0.012526 | 0.159649 | 1,140 | 39 | 100 | 29.230769 | 0.824635 | 0.049123 | 0 | 0 | 0 | 0 | 0.086796 | 0.019391 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.166667 | false | 0 | 0.266667 | 0.133333 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
202447a8aa0e247c6d24aeaed8d3fb04669a842f | 353 | py | Python | emencia_paste_djangocms_3/django_buildout/project/mods_available/admin_tools/__init__.py | emencia/emencia_paste_djangocms_3 | 29eabbcb17e21996a6e1d99592fc719dc8833b59 | [
"MIT"
] | 1 | 2015-01-17T21:38:50.000Z | 2015-01-17T21:38:50.000Z | emencia_paste_djangocms_3/django_buildout/project/mods_available/admin_tools/__init__.py | emencia/emencia_paste_djangocms_3 | 29eabbcb17e21996a6e1d99592fc719dc8833b59 | [
"MIT"
] | 5 | 2015-01-28T15:51:02.000Z | 2015-03-16T15:51:15.000Z | emencia_paste_djangocms_3/django_buildout/project/mods_available/admin_tools/__init__.py | emencia/emencia_paste_djangocms_3 | 29eabbcb17e21996a6e1d99592fc719dc8833b59 | [
"MIT"
] | null | null | null | """
Enable `django-admin-tools`_ to enhance the administration interface. This enables three widgets to customize certain elements. `filebrowser`_ is used, so if your project has not enabled it, you need to remove the occurrences of these widgets.
.. warning::
This mod cannot live with `admin_style`_, you have... | 50.428571 | 243 | 0.753541 | 53 | 353 | 4.943396 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175637 | 353 | 6 | 244 | 58.833333 | 0.900344 | 0.974504 | 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 |
2025635a744bb49650b0c6464e08a5f7b51f45d5 | 1,440 | py | Python | robokassa/migrations/0001_initial.py | hflabs/django-robokassa | 3bbbc473cd7bef16297b94133350eda667d76d29 | [
"MIT"
] | 1 | 2021-12-06T10:27:56.000Z | 2021-12-06T10:27:56.000Z | robokassa/migrations/0001_initial.py | hflabs/django-robokassa | 3bbbc473cd7bef16297b94133350eda667d76d29 | [
"MIT"
] | null | null | null | robokassa/migrations/0001_initial.py | hflabs/django-robokassa | 3bbbc473cd7bef16297b94133350eda667d76d29 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='SuccessNotification',
fields=[
('id', models.Au... | 53.333333 | 273 | 0.675 | 175 | 1,440 | 5.445714 | 0.411429 | 0.069255 | 0.062959 | 0.062959 | 0.309549 | 0.309549 | 0.24659 | 0.24659 | 0.162644 | 0.162644 | 0 | 0.316189 | 0.176389 | 1,440 | 26 | 274 | 55.384615 | 0.487352 | 0.014583 | 0 | 0 | 0 | 0.2 | 0.505293 | 0.414961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20459351c1e8b5fed86c1fec0b7202743721149e | 297 | py | Python | exercises/part2/common-architectures/attention_setup.py | jacobdanovitch/allennlp-guide | 2ccdefe0e720c7dd832c80a1ebd40fd2396d867d | [
"MIT"
] | null | null | null | exercises/part2/common-architectures/attention_setup.py | jacobdanovitch/allennlp-guide | 2ccdefe0e720c7dd832c80a1ebd40fd2396d867d | [
"MIT"
] | null | null | null | exercises/part2/common-architectures/attention_setup.py | jacobdanovitch/allennlp-guide | 2ccdefe0e720c7dd832c80a1ebd40fd2396d867d | [
"MIT"
] | null | null | null | import torch
from allennlp.modules.attention import (
DotProductAttention,
BilinearAttention,
LinearAttention,
)
from allennlp.modules.matrix_attention import (
DotProductMatrixAttention,
BilinearMatrixAttention,
LinearMatrixAttention,
)
from allennlp.nn import Activation
| 22.846154 | 47 | 0.794613 | 24 | 297 | 9.791667 | 0.625 | 0.153191 | 0.161702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154882 | 297 | 12 | 48 | 24.75 | 0.936255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
645d9d72febd72e5ce05b62cb36fdeb7ad46ad91 | 538 | py | Python | client/starwhale/cli/mngt.py | goldenxinxing/starwhale | 2fbb72b0ce5e135b432120c779440e53942be3b5 | [
"Apache-2.0"
] | 1 | 2022-03-24T02:03:48.000Z | 2022-03-24T02:03:48.000Z | client/starwhale/cli/mngt.py | goldenxinxing/starwhale | 2fbb72b0ce5e135b432120c779440e53942be3b5 | [
"Apache-2.0"
] | null | null | null | client/starwhale/cli/mngt.py | goldenxinxing/starwhale | 2fbb72b0ce5e135b432120c779440e53942be3b5 | [
"Apache-2.0"
] | null | null | null | import click
def add_mngt_command(cli: click.core.Group) -> None:
@cli.command("quickstart", help="StarWhale Quickstart")
def _quickstart() -> None:
# TODO: init git repo, add some gitignore
pass
@cli.command("autocomplete", help="Generate zsh/bash command auto complete")
def _autocom... | 29.888889 | 88 | 0.652416 | 68 | 538 | 5.058824 | 0.558824 | 0.087209 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210037 | 538 | 17 | 89 | 31.647059 | 0.809412 | 0.072491 | 0 | 0.25 | 0 | 0 | 0.289738 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.333333 | false | 0.25 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6465c72a3448e77f10e0249730b270d61b96636b | 206 | py | Python | functions/answer.py | codefire53/aegisbot | b4cb4f42e3cbdf8554eb234661cc6091e83f1be4 | [
"MIT"
] | null | null | null | functions/answer.py | codefire53/aegisbot | b4cb4f42e3cbdf8554eb234661cc6091e83f1be4 | [
"MIT"
] | null | null | null | functions/answer.py | codefire53/aegisbot | b4cb4f42e3cbdf8554eb234661cc6091e83f1be4 | [
"MIT"
] | null | null | null | '''This function is based on kerang ajaib bot'''
import random
def kerang(question):
ans=['Ya','Tidak']
if question.lower().startswith('apakah'):
return random.choice(ans)
| 22.888889 | 48 | 0.61165 | 25 | 206 | 5.04 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247573 | 206 | 8 | 49 | 25.75 | 0.812903 | 0.203884 | 0 | 0 | 0 | 0 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
647ea386228662cee6ab8815191980316cf1ddec | 244 | wsgi | Python | Unicog/unicog/unicog.wsgi | MEASHY/Mahjong-Solitaire | 164dd8223c23b643538d998b711cda9db9875117 | [
"MIT"
] | 6 | 2018-02-05T04:57:00.000Z | 2020-05-03T15:00:04.000Z | Unicog/unicog/unicog.wsgi | MEASHY/Mahjong-Solitaire | 164dd8223c23b643538d998b711cda9db9875117 | [
"MIT"
] | 95 | 2018-01-31T20:28:13.000Z | 2018-04-10T01:55:35.000Z | Unicog/unicog/unicog.wsgi | MEASHY/Mahjong-Solitaire | 164dd8223c23b643538d998b711cda9db9875117 | [
"MIT"
] | 1 | 2018-08-06T19:47:25.000Z | 2018-08-06T19:47:25.000Z | #!/usr/bin/python
import sys
activate_this = 'home/ubuntu/unicog/Backend/flask/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
sys.path.insert(0, "/home/ubuntu/unicog/Backend")
from app import app as application
| 22.181818 | 71 | 0.786885 | 37 | 244 | 4.972973 | 0.621622 | 0.26087 | 0.173913 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.081967 | 244 | 10 | 72 | 24.4 | 0.816964 | 0.065574 | 0 | 0 | 0 | 0 | 0.353982 | 0.353982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
648ccfc3b1f3024271f7513f104c8c5afe945a15 | 448 | py | Python | specdist/__init__.py | borisbolliet/pi_spec | 88c96f86253b4e719fe31642f3d779e1f4ae576b | [
"MIT"
] | 1 | 2021-11-03T16:11:37.000Z | 2021-11-03T16:11:37.000Z | specdist/__init__.py | borisbolliet/specdist | 88c96f86253b4e719fe31642f3d779e1f4ae576b | [
"MIT"
] | null | null | null | specdist/__init__.py | borisbolliet/specdist | 88c96f86253b4e719fe31642f3d779e1f4ae576b | [
"MIT"
] | null | null | null | from .config import *
from .utils import *
from .firas_data import *
from .edges_data import edges
from .standard_mu_and_y_distortions import *
from .cosmotherm_wrapper import *
from .Recfast_wrapper import *
from .cosmology import *
from .pispec_functions import *
from .pispec_run_fisher_constraints import *
from .spe... | 29.866667 | 44 | 0.814732 | 61 | 448 | 5.688525 | 0.47541 | 0.345821 | 0.164265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 448 | 14 | 45 | 32 | 0.885204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
648d5f60167703525050b9bb29d5f09fd40655d4 | 210 | py | Python | coder_directory_api/auth/__init__.py | seekheart/coder_directory_api | 87ceabb4baaf888a1436a50acd991498bc57e85b | [
"MIT"
] | 3 | 2017-12-14T03:52:57.000Z | 2018-09-28T14:16:01.000Z | coder_directory_api/auth/__init__.py | seekheart/coder_directory_api | 87ceabb4baaf888a1436a50acd991498bc57e85b | [
"MIT"
] | 23 | 2017-11-18T18:30:13.000Z | 2021-05-06T19:44:02.000Z | coder_directory_api/auth/__init__.py | seekheart/coder_directory_api | 87ceabb4baaf888a1436a50acd991498bc57e85b | [
"MIT"
] | 1 | 2017-12-25T15:47:38.000Z | 2017-12-25T15:47:38.000Z | """
Authorization Package
Copyright (c) 2017 by Mike Tung.
MIT License, see LICENSE for details
"""
__all__ = ['check_token', 'token_required', 'make_token', 'refresh_token']
from .jwt_authorization import *
| 21 | 74 | 0.742857 | 27 | 210 | 5.444444 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.133333 | 210 | 9 | 75 | 23.333333 | 0.785714 | 0.438095 | 0 | 0 | 0 | 0 | 0.436364 | 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 |
64a489854a4fd493b659145a8c290d91c7426a30 | 477 | py | Python | src/golem/__init__.py | aspuru-guzik-group/golem | bbb3ae63063accb98e6864e32f366ff05986fb3e | [
"MIT"
] | 10 | 2021-03-08T21:19:20.000Z | 2022-03-08T06:09:06.000Z | src/golem/__init__.py | aspuru-guzik-group/golem | bbb3ae63063accb98e6864e32f366ff05986fb3e | [
"MIT"
] | 1 | 2021-03-08T22:22:50.000Z | 2021-03-08T22:22:50.000Z | src/golem/__init__.py | aspuru-guzik-group/golem | bbb3ae63063accb98e6864e32f366ff05986fb3e | [
"MIT"
] | null | null | null | from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from .golem import Golem
from .extensions import BaseDist, Delta, Normal, TruncatedNormal, FoldedNormal
from .extensions import Uniform, TruncatedUniform, BoundedUniform, Gamma
from .extensions import Poisson, DiscreteLaplace, ... | 43.363636 | 79 | 0.844864 | 49 | 477 | 8.061224 | 0.530612 | 0.177215 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098532 | 477 | 10 | 80 | 47.7 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0.014675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.777778 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
64aab852be67982c12d1893827ccdca10d824307 | 262 | py | Python | yesPlanet/roles.py | naorsa/CleanApp | 8e8e66edaaf1e774dee99019abb37000a2de7417 | [
"Apache-2.0"
] | null | null | null | yesPlanet/roles.py | naorsa/CleanApp | 8e8e66edaaf1e774dee99019abb37000a2de7417 | [
"Apache-2.0"
] | null | null | null | yesPlanet/roles.py | naorsa/CleanApp | 8e8e66edaaf1e774dee99019abb37000a2de7417 | [
"Apache-2.0"
] | null | null | null | from rolepermissions.roles import AbstractUserRole
class Doctor(AbstractUserRole):
available_permissions = {
'create_medical_record': True,
}
class Nurse(AbstractUserRole):
available_permissions = {
'edit_patient_file': True,
}
| 21.833333 | 50 | 0.71374 | 23 | 262 | 7.869565 | 0.73913 | 0.276243 | 0.39779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206107 | 262 | 11 | 51 | 23.818182 | 0.870192 | 0 | 0 | 0.222222 | 0 | 0 | 0.145038 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
64b84cb67be4cd7649b42ec09fb769730b38e4bd | 208 | py | Python | synth/synth_part_builder/part_exception.py | jmgindi/synth | 7ec29a36e95fd50a2ec6342e877c0fea71815962 | [
"MIT"
] | 11 | 2019-06-13T19:10:04.000Z | 2022-01-21T21:27:56.000Z | synth/synth_part_builder/part_exception.py | jmgindi/synth | 7ec29a36e95fd50a2ec6342e877c0fea71815962 | [
"MIT"
] | 5 | 2019-08-21T00:51:47.000Z | 2022-02-12T12:16:40.000Z | synth/synth_part_builder/part_exception.py | jmgindi/synth | 7ec29a36e95fd50a2ec6342e877c0fea71815962 | [
"MIT"
] | 3 | 2019-06-14T21:27:28.000Z | 2021-03-20T23:20:16.000Z | #!/usr/bin/env python3
"""
PartBuilder exception for part builder errors
"""
class PartBuilderException(Exception):
"""
Raised by PartBuilder functions when things go wrong
"""
pass
| 17.333333 | 60 | 0.668269 | 22 | 208 | 6.318182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.235577 | 208 | 11 | 61 | 18.909091 | 0.867925 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
64cc0ecd40864c7707a29b4005d299ad516f4c93 | 267 | py | Python | locations/views.py | shubhamdipt/refugee-management | 7d41e62e061f92793da5b8129409b97c3bed0467 | [
"MIT"
] | null | null | null | locations/views.py | shubhamdipt/refugee-management | 7d41e62e061f92793da5b8129409b97c3bed0467 | [
"MIT"
] | null | null | null | locations/views.py | shubhamdipt/refugee-management | 7d41e62e061f92793da5b8129409b97c3bed0467 | [
"MIT"
] | null | null | null | from django.http import JsonResponse
from locations.models import City
def api_cities(request):
cities = City.objects.order_by("name").select_related("country")
ctx = {"results": [{"id": i.id, "text": i.name} for i in cities]}
return JsonResponse(ctx)
| 26.7 | 69 | 0.70412 | 38 | 267 | 4.868421 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153558 | 267 | 9 | 70 | 29.666667 | 0.818584 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b39a5452dc18d241ef7bcb684cbf356ffbceb508 | 535 | py | Python | iterastors_and_generators_exercise/possible_permutations.py | Veselin-Stoilov/software-university-OOP | 452a77cabf2e7d93f30f629c67c6b22682eb255d | [
"MIT"
] | null | null | null | iterastors_and_generators_exercise/possible_permutations.py | Veselin-Stoilov/software-university-OOP | 452a77cabf2e7d93f30f629c67c6b22682eb255d | [
"MIT"
] | null | null | null | iterastors_and_generators_exercise/possible_permutations.py | Veselin-Stoilov/software-university-OOP | 452a77cabf2e7d93f30f629c67c6b22682eb255d | [
"MIT"
] | null | null | null | import itertools
def possible_permutations(elements):
for el in list(itertools.permutations(elements)):
yield list(el)
# def possible_permutations(elements):
# if len(elements) <= 1:
# yield elements
# else:
# for perm in possible_permutations(elements[1:]):
# for i i... | 26.75 | 75 | 0.611215 | 69 | 535 | 4.681159 | 0.42029 | 0.247678 | 0.260062 | 0.19195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023018 | 0.269159 | 535 | 19 | 76 | 28.157895 | 0.803069 | 0.611215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.2 | 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 |
b3a09f626901c8efd13a835b001c800359595f70 | 128 | py | Python | main/itertools-product/itertools-product.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/itertools-product/itertools-product.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/itertools-product/itertools-product.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | from itertools import product
a = (map(int, raw_input().split()) for i in xrange(2))
for pair in product(*a):
print pair,
| 18.285714 | 54 | 0.671875 | 22 | 128 | 3.863636 | 0.772727 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.1875 | 128 | 6 | 55 | 21.333333 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3d998a4ffd321b9dbbefcba2b49a99f446a9399 | 77 | py | Python | python_script/getListFromFilePath.py | vishalbhandare/testcodeExample | 650f4e94d5db408f375c0365ca3e5c2a452a977c | [
"MIT"
] | null | null | null | python_script/getListFromFilePath.py | vishalbhandare/testcodeExample | 650f4e94d5db408f375c0365ca3e5c2a452a977c | [
"MIT"
] | null | null | null | python_script/getListFromFilePath.py | vishalbhandare/testcodeExample | 650f4e94d5db408f375c0365ca3e5c2a452a977c | [
"MIT"
] | null | null | null | import os
path = input("Enter Path to list: ")
os.system('ls -lrt ' + path)
| 15.4 | 36 | 0.636364 | 13 | 77 | 3.769231 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 77 | 4 | 37 | 19.25 | 0.790323 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 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 |
b3db563ab57402844399a0f0a99bef57d793aaf9 | 210 | py | Python | app_folder/tools/image_upload.py | Nuznhy/day-f-hack | 9f3dbcd73e73ea4e7807e5197bf0b0ded76bc9f3 | [
"MIT"
] | null | null | null | app_folder/tools/image_upload.py | Nuznhy/day-f-hack | 9f3dbcd73e73ea4e7807e5197bf0b0ded76bc9f3 | [
"MIT"
] | null | null | null | app_folder/tools/image_upload.py | Nuznhy/day-f-hack | 9f3dbcd73e73ea4e7807e5197bf0b0ded76bc9f3 | [
"MIT"
] | null | null | null | from cloudinary import uploader
def image_upload(image_str) -> str:
try:
result = uploader.upload(image_str)
except FileNotFoundError as e:
raise ValueError(e)
return result['url'] | 23.333333 | 43 | 0.685714 | 26 | 210 | 5.423077 | 0.692308 | 0.156028 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 210 | 9 | 44 | 23.333333 | 0.875776 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3e2ca2f1d4303aa0b80bd13108785d752991793 | 190 | py | Python | test/web/conftest.py | KarimjonovSodiq/TagBot | 3d6c92f77835240b727b8907816bed46648d45de | [
"MIT"
] | 59 | 2019-05-05T22:00:25.000Z | 2022-03-05T09:56:51.000Z | test/web/conftest.py | KarimjonovSodiq/TagBot | 3d6c92f77835240b727b8907816bed46648d45de | [
"MIT"
] | 185 | 2019-05-03T11:59:01.000Z | 2022-03-27T17:04:56.000Z | test/web/conftest.py | KarimjonovSodiq/TagBot | 3d6c92f77835240b727b8907816bed46648d45de | [
"MIT"
] | 18 | 2019-05-13T05:12:23.000Z | 2022-03-30T08:17:47.000Z | import pytest
from tagbot.web import app
@pytest.fixture
def client():
with app.test_client() as client:
yield client
@app.route("/die")
def die():
raise Exception("!")
| 12.666667 | 37 | 0.652632 | 26 | 190 | 4.730769 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215789 | 190 | 14 | 38 | 13.571429 | 0.825503 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3f0a809d813aa03f7639a32460f90ab51df7b41 | 1,559 | py | Python | CybORG/CybORG/Agents/Wrappers/ChallengeWrapper.py | yyzpiero/AutomaticCyberOperations | 027decb59ce97cc7c9d86aba3af9e21b390e4286 | [
"MIT"
] | null | null | null | CybORG/CybORG/Agents/Wrappers/ChallengeWrapper.py | yyzpiero/AutomaticCyberOperations | 027decb59ce97cc7c9d86aba3af9e21b390e4286 | [
"MIT"
] | null | null | null | CybORG/CybORG/Agents/Wrappers/ChallengeWrapper.py | yyzpiero/AutomaticCyberOperations | 027decb59ce97cc7c9d86aba3af9e21b390e4286 | [
"MIT"
] | null | null | null | from CybORG.Agents.Wrappers import BaseWrapper, OpenAIGymWrapper, BlueTableWrapper,RedTableWrapper,EnumActionWrapper
class ChallengeWrapper(BaseWrapper):
def __init__(self, agent_name: str, env, agent=None):
super().__init__(env, agent)
self.agent_name = agent_name
if agent_name.lower() ==... | 31.816327 | 116 | 0.673509 | 197 | 1,559 | 5.081218 | 0.253807 | 0.080919 | 0.077922 | 0.063936 | 0.188811 | 0.103896 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0.22322 | 1,559 | 48 | 117 | 32.479167 | 0.82659 | 0 | 0 | 0 | 0 | 0 | 0.042976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.028571 | 0.257143 | 0.6 | 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 |
b611dda8022148d5950879a3c178dd2783a55be9 | 452 | py | Python | api/routes/Notifications.py | fdemian/Morpheus | 9e5e2d7a8001e5239c45c633bf8dbc204fb05146 | [
"BSD-2-Clause"
] | null | null | null | api/routes/Notifications.py | fdemian/Morpheus | 9e5e2d7a8001e5239c45c633bf8dbc204fb05146 | [
"BSD-2-Clause"
] | 14 | 2017-03-30T16:00:05.000Z | 2017-06-08T23:50:45.000Z | api/routes/Notifications.py | fdemian/Morpheus | 9e5e2d7a8001e5239c45c633bf8dbc204fb05146 | [
"BSD-2-Clause"
] | null | null | null | from tornado.websocket import WebSocketHandler
class Notifications(WebSocketHandler):
def data_received(self, chunk):
pass
def initialize(self):
print("Initializing websocket")
def open(self):
self.settings['notifications_handler'] = self
# Notifications for a given user we... | 21.52381 | 53 | 0.679204 | 49 | 452 | 6.183673 | 0.591837 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234513 | 452 | 20 | 54 | 22.6 | 0.875723 | 0.10177 | 0 | 0 | 0 | 0 | 0.148515 | 0.05198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.083333 | 0.083333 | 0 | 0.583333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
377772cc06b182f80de4181da11b76256c672ee8 | 2,858 | py | Python | test/extended_arg.py | gwk/cove | 0cdfba60c75b325f64fc33afa72659061333a1a6 | [
"CC0-1.0"
] | null | null | null | test/extended_arg.py | gwk/cove | 0cdfba60c75b325f64fc33afa72659061333a1a6 | [
"CC0-1.0"
] | null | null | null | test/extended_arg.py | gwk/cove | 0cdfba60c75b325f64fc33afa72659061333a1a6 | [
"CC0-1.0"
] | null | null | null | '''
256 definitions cause LOAD_NAME and LOAD_CONST to both require EXTENDED_ARGS.
Generated with: `for i in range(0, 0xff, 0x10): print(*[f'x{j:02x}=0x{j:02x}' for j in range(i, i+0x10)], sep='; ')`
'''
x00=0x00; x01=0x01; x02=0x02; x03=0x03; x04=0x04; x05=0x05; x06=0x06; x07=0x07; x08=0x08; x09=0x09; x0a=0x0a; x0b=0x... | 84.058824 | 158 | 0.697691 | 567 | 2,858 | 3.497355 | 0.962963 | 0.01059 | 0.006051 | 0.011094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359025 | 0.110217 | 2,858 | 33 | 159 | 86.606061 | 0.420763 | 0.06788 | 0 | 0 | 1 | 0 | 0.003012 | 0 | 0 | 0 | 0.385542 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
377f65cc2a6aae65719aa834c0d9c1eabb09dc4b | 623 | py | Python | core/verify-installation/selenium.py | bfosterscripps/utilities | 11b689a3286929e9e6ae245a08753031164afc39 | [
"MIT"
] | null | null | null | core/verify-installation/selenium.py | bfosterscripps/utilities | 11b689a3286929e9e6ae245a08753031164afc39 | [
"MIT"
] | null | null | null | core/verify-installation/selenium.py | bfosterscripps/utilities | 11b689a3286929e9e6ae245a08753031164afc39 | [
"MIT"
] | null | null | null | # Author: Brandon Foster
# Date: 20150821
# Purpose:
# test to see if selenium for python is installed
import sys
try:
# attempt to import relevant selenium pieces
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriv... | 31.15 | 93 | 0.747994 | 92 | 623 | 5.054348 | 0.597826 | 0.103226 | 0.090323 | 0.12043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038153 | 0.200642 | 623 | 19 | 94 | 32.789474 | 0.895582 | 0.4687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 |
37813376f84e54c96822721bbf76566e5220c965 | 58 | py | Python | examples/hello.py | tmontes/ppytty | 2c4e4965c8e9914fc9a17017457cdbf428d6b6e7 | [
"MIT"
] | 1 | 2018-05-23T19:39:47.000Z | 2018-05-23T19:39:47.000Z | examples/hello.py | tmontes/ppytty | 2c4e4965c8e9914fc9a17017457cdbf428d6b6e7 | [
"MIT"
] | 85 | 2018-06-23T17:28:14.000Z | 2018-08-14T13:48:38.000Z | examples/hello.py | tmontes/ppytty | 2c4e4965c8e9914fc9a17017457cdbf428d6b6e7 | [
"MIT"
] | null | null | null | import ppytty
ppytty_task = ppytty.Label('Hello world!')
| 14.5 | 42 | 0.758621 | 8 | 58 | 5.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 3 | 43 | 19.333333 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 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 |
378f19a380258d59993e16b16921c7462b438b6b | 48 | py | Python | kolibri/core/logger/constants/interaction_types.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 545 | 2016-01-19T19:26:55.000Z | 2022-03-20T00:13:04.000Z | kolibri/core/logger/constants/interaction_types.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 8,329 | 2016-01-19T19:32:02.000Z | 2022-03-31T21:23:12.000Z | kolibri/core/logger/constants/interaction_types.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 493 | 2016-01-19T19:26:48.000Z | 2022-03-28T14:35:05.000Z | HINT = "hint"
ANSWER = "answer"
ERROR = "error"
| 12 | 17 | 0.625 | 6 | 48 | 5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 48 | 3 | 18 | 16 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37ad6917e774954e52baf3fcfdae70eac4b21375 | 279 | py | Python | reflux/__init__.py | BD103/Reflux | a00b8ec51249f2d59aa5164d46237899c69ff2a7 | [
"MIT"
] | 30 | 2021-01-27T22:55:56.000Z | 2021-12-26T10:54:48.000Z | reflux/__init__.py | BD103/Reflux | a00b8ec51249f2d59aa5164d46237899c69ff2a7 | [
"MIT"
] | 12 | 2021-01-26T14:48:59.000Z | 2021-12-24T17:37:48.000Z | reflux/__init__.py | BD103/Reflux | a00b8ec51249f2d59aa5164d46237899c69ff2a7 | [
"MIT"
] | 7 | 2021-01-29T13:39:53.000Z | 2022-01-15T10:17:41.000Z | from reflux.theme import Theme
from reflux.theme import make_engine
from reflux.resources import shelf as Resources
__all__ = ["Theme", "Resources", "make_engine"]
__author__ = "frissyn"
__version__ = "1.1.0"
__doc__ = "Extensive styling and theming functionality for Replit."
| 27.9 | 67 | 0.777778 | 37 | 279 | 5.378378 | 0.621622 | 0.150754 | 0.150754 | 0.211055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.129032 | 279 | 9 | 68 | 31 | 0.806584 | 0 | 0 | 0 | 0 | 0 | 0.329749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37c640f84e17500a065a74e61a1698151266af2a | 304 | py | Python | flaskr/widgets/widget.py | TreasureMaster/Flask_tutorial | e505a42a747f4a431c0cd735e0114c1b85ebcfe6 | [
"BSD-3-Clause"
] | null | null | null | flaskr/widgets/widget.py | TreasureMaster/Flask_tutorial | e505a42a747f4a431c0cd735e0114c1b85ebcfe6 | [
"BSD-3-Clause"
] | null | null | null | flaskr/widgets/widget.py | TreasureMaster/Flask_tutorial | e505a42a747f4a431c0cd735e0114c1b85ebcfe6 | [
"BSD-3-Clause"
] | null | null | null | """Базовый класс Widget для всех виджетов."""
class Widget:
def __init__(self, app=None):
self.app = app
if app is not None:
self.init_app(app)
def init_app(self, app):
# Должен работать как синглтон ?
if self.app is None:
self.app = app | 23.384615 | 45 | 0.569079 | 42 | 304 | 3.97619 | 0.452381 | 0.209581 | 0.131737 | 0.167665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.335526 | 304 | 13 | 46 | 23.384615 | 0.826733 | 0.233553 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
805fcf0c57013bb5c434e249048b1ffc38f318bc | 84 | py | Python | teste.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | teste.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | teste.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | from random import choice
n = [2, 5, 9, 1, 4]
res = choice(n) % n[0]
print(res) | 21 | 26 | 0.571429 | 17 | 84 | 2.823529 | 0.764706 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.25 | 84 | 4 | 27 | 21 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.