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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
733b8809d1ee3f520f93f3489ae1ea90a71422f4 | 438 | py | Python | chapter9/leds_led_shim.py | PacktPublishing/Learn-Robotics---Fundamentals-of-Robotics-Programming | 7f38c27c4459f3fd2cffff9c037784e6d7f2f5a2 | [
"MIT"
] | 33 | 2019-01-09T20:41:20.000Z | 2022-03-21T10:30:06.000Z | chapter9/leds_led_shim.py | PacktPublishing/Learn-Robotics---Fundamentals-of-Robotics-Programming | 7f38c27c4459f3fd2cffff9c037784e6d7f2f5a2 | [
"MIT"
] | 3 | 2020-06-13T21:05:06.000Z | 2021-09-01T19:18:19.000Z | chapter9/leds_led_shim.py | PacktPublishing/Learn-Robotics---Fundamentals-of-Robotics-Programming | 7f38c27c4459f3fd2cffff9c037784e6d7f2f5a2 | [
"MIT"
] | 9 | 2018-12-20T09:49:09.000Z | 2021-12-13T06:19:06.000Z | import ledshim
class Leds(object):
def __init__(self):
self.count = 24
def set_one(self, led_number, color):
ledshim.set_pixel(led_number, *color)
def set_range(self, a_range, color):
ledshim.set_multiple_pixels(a_range, color)
def set_all(self, color):
l... | 21.9 | 52 | 0.60274 | 57 | 438 | 4.368421 | 0.403509 | 0.072289 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006431 | 0.289954 | 438 | 20 | 53 | 21.9 | 0.794212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.071429 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
734d54424f9e36b12a07dbc1a3db00ec241a9f0f | 12,047 | py | Python | tests/test_rfc3114.py | pysnmp/pyasn1-modules | 93f5699988fbb090be13aaa339498c128ba7dedb | [
"BSD-2-Clause"
] | null | null | null | tests/test_rfc3114.py | pysnmp/pyasn1-modules | 93f5699988fbb090be13aaa339498c128ba7dedb | [
"BSD-2-Clause"
] | null | null | null | tests/test_rfc3114.py | pysnmp/pyasn1-modules | 93f5699988fbb090be13aaa339498c128ba7dedb | [
"BSD-2-Clause"
] | null | null | null | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
import unittest
from pyasn1.codec.der.decoder import decode as der_decoder
from pyasn1.codec.der.encoder import encode as der_encoder
... | 48.971545 | 88 | 0.782684 | 699 | 12,047 | 13.373391 | 0.525036 | 0.014442 | 0.008986 | 0.012302 | 0.073064 | 0.057125 | 0.057125 | 0.026102 | 0.026102 | 0.026102 | 0 | 0.08649 | 0.16502 | 12,047 | 245 | 89 | 49.171429 | 0.842827 | 0.013115 | 0 | 0.084577 | 0 | 0 | 0.590439 | 0.555425 | 0 | 1 | 0 | 0 | 0.129353 | 1 | 0.004975 | false | 0 | 0.024876 | 0 | 0.039801 | 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 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7df9703e62e73095285d835812fb9b4f54675d35 | 294 | py | Python | latte/monkey_patches/frappe/permissions.py | sunnyakaxd/latte | de74065122a1f858bd75f8e1a36fca3b23981f4c | [
"MIT"
] | null | null | null | latte/monkey_patches/frappe/permissions.py | sunnyakaxd/latte | de74065122a1f858bd75f8e1a36fca3b23981f4c | [
"MIT"
] | null | null | null | latte/monkey_patches/frappe/permissions.py | sunnyakaxd/latte | de74065122a1f858bd75f8e1a36fca3b23981f4c | [
"MIT"
] | null | null | null | from frappe import permissions, _dict
from frappe.permissions import rights
def allow_everything():
'''
returns a dict with access to everything
eg. {"read": 1, "write": 1, ...}
'''
perm = _dict({ptype: 1 for ptype in rights})
return perm
permissions.allow_everything = allow_everything | 24.5 | 47 | 0.731293 | 40 | 294 | 5.25 | 0.575 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.156463 | 294 | 12 | 47 | 24.5 | 0.834677 | 0.248299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7dfa60c2a5c32b3dc7e103207506c0cf780088d6 | 445,697 | py | Python | steam/protobufs/steammessages_clientserver_2_pb2.py | XronoZ-create/steam | 3330d37cc2670faaaaf4d3e14c7c2b20712f0853 | [
"MIT"
] | 1 | 2022-01-11T20:35:05.000Z | 2022-01-11T20:35:05.000Z | steam/protobufs/steammessages_clientserver_2_pb2.py | XronoZ-create/steam | 3330d37cc2670faaaaf4d3e14c7c2b20712f0853 | [
"MIT"
] | null | null | null | steam/protobufs/steammessages_clientserver_2_pb2.py | XronoZ-create/steam | 3330d37cc2670faaaaf4d3e14c7c2b20712f0853 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: steammessages_clientserver_2.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fro... | 44.556333 | 36,343 | 0.773075 | 49,122 | 445,697 | 6.708176 | 0.031473 | 0.048726 | 0.04299 | 0.035172 | 0.637083 | 0.590725 | 0.582106 | 0.574334 | 0.569715 | 0.56638 | 0 | 0.037768 | 0.117741 | 445,697 | 10,002 | 36,344 | 44.560788 | 0.800234 | 0.02987 | 0 | 0.733161 | 1 | 0.004834 | 0.20984 | 0.185599 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00752 | 0.000645 | 0 | 0.000645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b43452b5e6767e9c734eb29331af5af02aa6f92a | 3,889 | py | Python | crealityWS/crealityWS/settings.py | augu1352/Creality | a1dc3e17f29ebd9c80c6ed476d752552fd8f32e1 | [
"MIT"
] | null | null | null | crealityWS/crealityWS/settings.py | augu1352/Creality | a1dc3e17f29ebd9c80c6ed476d752552fd8f32e1 | [
"MIT"
] | null | null | null | crealityWS/crealityWS/settings.py | augu1352/Creality | a1dc3e17f29ebd9c80c6ed476d752552fd8f32e1 | [
"MIT"
] | null | null | null | """
Django settings for crealityWS project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os... | 25.754967 | 96 | 0.686038 | 433 | 3,889 | 6.027714 | 0.43649 | 0.074713 | 0.059004 | 0.06705 | 0.187356 | 0.162069 | 0.102299 | 0.102299 | 0.045977 | 0 | 0 | 0.01676 | 0.171509 | 3,889 | 150 | 97 | 25.926667 | 0.793296 | 0.368989 | 0 | 0 | 1 | 0.012987 | 0.554037 | 0.44058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.077922 | 0.025974 | 0 | 0.025974 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b4451cb314c33494422baad7ec624c5661b6d060 | 235 | py | Python | nautobot_ssot_servicenow/urls.py | nautobot/nautobot-plugin-ssot-servicenow | 9c87f40e173cf2accdcae63da5a515199ab28aaa | [
"Apache-2.0"
] | 2 | 2022-01-25T18:37:15.000Z | 2022-03-15T14:48:02.000Z | nautobot_ssot_servicenow/urls.py | nautobot/nautobot-plugin-ssot-servicenow | 9c87f40e173cf2accdcae63da5a515199ab28aaa | [
"Apache-2.0"
] | 1 | 2022-01-14T17:21:18.000Z | 2022-01-14T17:21:18.000Z | nautobot_ssot_servicenow/urls.py | nautobot/nautobot-plugin-ssot-servicenow | 9c87f40e173cf2accdcae63da5a515199ab28aaa | [
"Apache-2.0"
] | 1 | 2022-03-15T14:48:03.000Z | 2022-03-15T14:48:03.000Z | """URL patterns for nautobot-ssot-servicenow."""
from django.urls import path
from . import views
app_name = "nautobot_ssot_servicenow"
urlpatterns = [
path("config/", views.SSOTServiceNowConfigView.as_view(), name="config"),
]
| 21.363636 | 77 | 0.740426 | 28 | 235 | 6.071429 | 0.678571 | 0.141176 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123404 | 235 | 10 | 78 | 23.5 | 0.825243 | 0.178723 | 0 | 0 | 0 | 0 | 0.197861 | 0.128342 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b4584fceb3463ad973710cb22cf6bd7e88a6cad9 | 26,511 | py | Python | src/encoded/tests/fixtures/schemas/experiment.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 102 | 2015-05-20T01:17:43.000Z | 2022-03-07T06:03:55.000Z | src/encoded/tests/fixtures/schemas/experiment.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 901 | 2015-01-07T23:11:57.000Z | 2022-03-18T13:56:12.000Z | src/encoded/tests/fixtures/schemas/experiment.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 65 | 2015-02-06T23:00:26.000Z | 2022-01-22T07:58:44.000Z | import pytest
@pytest.fixture
def experiment_chip_control(testapp, lab, award, ileum):
item = {
'award': award['uuid'],
'lab': lab['uuid'],
'status': 'released',
'date_released': '2019-10-08',
'biosample_ontology': ileum['uuid'],
'assay_term_name': 'ChIP-seq',
... | 30.091941 | 134 | 0.604391 | 2,974 | 26,511 | 5.16308 | 0.090787 | 0.054184 | 0.066688 | 0.06773 | 0.801824 | 0.75858 | 0.695409 | 0.66506 | 0.628199 | 0.622859 | 0 | 0.032602 | 0.231753 | 26,511 | 880 | 135 | 30.126136 | 0.721314 | 0 | 0 | 0.638814 | 0 | 0.002695 | 0.254347 | 0.009958 | 0 | 0 | 0 | 0 | 0.002695 | 1 | 0.086253 | false | 0 | 0.001348 | 0.004043 | 0.173854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b45d40200f29a502282da356feff14ba69526f79 | 435 | py | Python | dash/admin.py | CMPUT404W17T00/CMPUT404-project | 870e1844885906f8b48eac9a888e4874d28b3745 | [
"Apache-2.0"
] | 2 | 2017-03-02T01:46:36.000Z | 2018-11-01T20:36:58.000Z | dash/admin.py | CMPUT404W17T00/CMPUT404-project | 870e1844885906f8b48eac9a888e4874d28b3745 | [
"Apache-2.0"
] | 47 | 2017-01-23T00:00:17.000Z | 2017-04-12T21:22:23.000Z | dash/admin.py | CMPUT404W17T00/CMPUT404-project | 870e1844885906f8b48eac9a888e4874d28b3745 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Post, Comment, Author, Category, CanSee, FriendRequest, \
Follow, RemoteCommentAuthor
# Register your models here.
admin.site.register(Author)
admin.site.register(RemoteCommentAuthor)
admin.site.register(Post)
admin.site.register(Comment)
admin.... | 29 | 77 | 0.781609 | 52 | 435 | 6.538462 | 0.346154 | 0.211765 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117241 | 435 | 14 | 78 | 31.071429 | 0.885417 | 0.05977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b45de14e4eb97993aa51725263d3f456292a817d | 289 | py | Python | risktool/risktool/form.py | vijaybabu4589/risk_table_analysys | 16c8387db266728c2aab3b90dc543cc46f949b03 | [
"MIT"
] | null | null | null | risktool/risktool/form.py | vijaybabu4589/risk_table_analysys | 16c8387db266728c2aab3b90dc543cc46f949b03 | [
"MIT"
] | null | null | null | risktool/risktool/form.py | vijaybabu4589/risk_table_analysys | 16c8387db266728c2aab3b90dc543cc46f949b03 | [
"MIT"
] | null | null | null | from django import forms
class mainform(forms.Form):
risk=forms.CharField()#required=False
riskdesc = forms.CharField()
risksol = forms.CharField()
consequence = forms.IntegerField()
likelihood = forms.IntegerField()
def changed_risk(self):
pass | 26.272727 | 42 | 0.67474 | 30 | 289 | 6.466667 | 0.666667 | 0.216495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224913 | 289 | 11 | 43 | 26.272727 | 0.866071 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.888889 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b4835d1aca5630f3f909264447a8ac061c891bb7 | 602 | py | Python | flatpaksync/structs/permissionlist.py | jeteokeeffe/flatpak-sync | 44e894371272a21264343244b444a464d8c206b9 | [
"MIT"
] | 8 | 2020-04-23T01:19:10.000Z | 2022-03-29T05:12:01.000Z | flatpaksync/structs/permissionlist.py | jeteokeeffe/flatpak-sync | 44e894371272a21264343244b444a464d8c206b9 | [
"MIT"
] | 1 | 2020-05-05T16:54:53.000Z | 2020-05-05T16:54:53.000Z | flatpaksync/structs/permissionlist.py | jeteokeeffe/flatpak-sync | 44e894371272a21264343244b444a464d8c206b9 | [
"MIT"
] | 1 | 2020-04-28T18:36:32.000Z | 2020-04-28T18:36:32.000Z | from flatpaksync.structs.permission import permission
class permissionlist():
"""
list of flatpak permissions for a specific app
"""
def __init__(self):
self.permlist = []
self.count = 0
def getAll(self):
return self.permlist
def get(self, name: str):
retur... | 18.242424 | 53 | 0.593023 | 70 | 602 | 5.042857 | 0.514286 | 0.135977 | 0.101983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.30897 | 602 | 32 | 54 | 18.8125 | 0.84375 | 0.076412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.235294 | 0.764706 | 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 |
c303ea606471720a370e687a58dea8f223272dc0 | 74,583 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/ListView.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/System/Windows/Forms/__init___parts/ListView.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/System/Windows/Forms/__init___parts/ListView.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class ListView(Control,IComponent,IDisposable,IOleControl,IOleObject,IOleInPlaceObject,IOleInPlaceActiveObject,IOleWindow,IViewObject,IViewObject2,IPersist,IPersistStreamInit,IPersistPropertyBag,IPersistStorage,IQuickActivate,ISupportOleDropSource,IDropTarget,ISynchronizeInvoke,IWin32Window,IArrangedElement,IBindableCo... | 24.074564 | 330 | 0.70622 | 8,890 | 74,583 | 5.916423 | 0.100675 | 0.065251 | 0.090347 | 0.065878 | 0.572751 | 0.542198 | 0.49518 | 0.457669 | 0.435557 | 0.426621 | 0 | 0.000169 | 0.204551 | 74,583 | 3,097 | 331 | 24.082338 | 0.886392 | 0.583136 | 0 | 0.392544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.392544 | false | 0.392544 | 0 | 0 | 0.607456 | 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 |
c3040ff250b54464e6d8c36455f67284f37da5b8 | 3,515 | py | Python | python/parse_packet.py | animeshpatcha/automation | bebc234fa79b03185239abe80dfd31e0780eecca | [
"MIT"
] | null | null | null | python/parse_packet.py | animeshpatcha/automation | bebc234fa79b03185239abe80dfd31e0780eecca | [
"MIT"
] | null | null | null | python/parse_packet.py | animeshpatcha/automation | bebc234fa79b03185239abe80dfd31e0780eecca | [
"MIT"
] | null | null | null | import logging
import sys
import logging.handlers
from scapy.all import *
import pprint
import json
def print_packets(pcap):
# For each packet in the pcap process the contents
# Print out the timestamp in UTC
pkt_structure = {}
pcap_dict = {}
pkt_counter = 0
for pkt in pcap:
pkt_structu... | 40.402299 | 97 | 0.572973 | 434 | 3,515 | 4.426267 | 0.251152 | 0.140552 | 0.187402 | 0.274857 | 0.385737 | 0.249349 | 0.170744 | 0.097866 | 0 | 0 | 0 | 0.007765 | 0.303841 | 3,515 | 86 | 98 | 40.872093 | 0.777278 | 0.022475 | 0 | 0.051948 | 0 | 0 | 0.123798 | 0.006991 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077922 | null | null | 0.064935 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c334a9d35a363b67aa983abc4908ddfac5c035a7 | 735 | py | Python | ndl/scheduler.py | DianCh/numpy-deep-learning | 46544730520f17f172eecbd5be3dc00ed714b252 | [
"MIT"
] | null | null | null | ndl/scheduler.py | DianCh/numpy-deep-learning | 46544730520f17f172eecbd5be3dc00ed714b252 | [
"MIT"
] | null | null | null | ndl/scheduler.py | DianCh/numpy-deep-learning | 46544730520f17f172eecbd5be3dc00ed714b252 | [
"MIT"
] | null | null | null | """Implements learning rate schedulers."""
from abc import ABC, abstractmethod
class Scheduler(ABC):
"""Generic scheduler."""
@abstractmethod
def step(self):
"""Make one step to adjust the learning rate."""
pass
class StepLR(Scheduler):
"""Exponentially decrease the optimizer's lear... | 20.416667 | 72 | 0.644898 | 88 | 735 | 5.261364 | 0.477273 | 0.103672 | 0.071274 | 0.090713 | 0.406048 | 0.298056 | 0.155508 | 0.155508 | 0.155508 | 0.155508 | 0 | 0.01085 | 0.247619 | 735 | 35 | 73 | 21 | 0.826401 | 0.342857 | 0 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.066667 | 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 |
c3371db4f7752adc91704cd98a52de15cb9d5ab7 | 114 | py | Python | src/Attendance_System/reschedule_management/apps.py | Sameer-Arora/Attendance_System | 1a9a86c944ba6c14851664547ccd6226d42114d4 | [
"MIT"
] | null | null | null | src/Attendance_System/reschedule_management/apps.py | Sameer-Arora/Attendance_System | 1a9a86c944ba6c14851664547ccd6226d42114d4 | [
"MIT"
] | 1 | 2021-05-27T08:22:27.000Z | 2021-05-27T08:22:27.000Z | src/Attendance_System/reschedule_management/apps.py | Sameer-Arora/Attendance_System | 1a9a86c944ba6c14851664547ccd6226d42114d4 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RescheduleManagemetConfig(AppConfig):
name = 'reschedule_managemet'
| 19 | 43 | 0.807018 | 11 | 114 | 8.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 114 | 5 | 44 | 22.8 | 0.919192 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 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 |
c33c98300528ce2d90bd73cf18b4883c1829550f | 428 | py | Python | nbest.py | markvanheeswijk/kryptos | 1f560f10246ea1f1c8af6439f52eac74973bcf26 | [
"MIT"
] | null | null | null | nbest.py | markvanheeswijk/kryptos | 1f560f10246ea1f1c8af6439f52eac74973bcf26 | [
"MIT"
] | null | null | null | nbest.py | markvanheeswijk/kryptos | 1f560f10246ea1f1c8af6439f52eac74973bcf26 | [
"MIT"
] | null | null | null | # keep a list of the N best things we have seen, discard anything else
class nbest(object):
def __init__(self,N=1000):
self.store = []
self.N = N
def add(self,item):
self.store.append(item)
self.store.sort(reverse=True)
self.store = self.store[:self.N]
d... | 25.176471 | 70 | 0.588785 | 61 | 428 | 3.934426 | 0.52459 | 0.2625 | 0.1625 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.296729 | 428 | 16 | 71 | 26.75 | 0.784053 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
c37075c84bf47e1453feffa10c027ffbd36d21d4 | 21,963 | py | Python | tests/test_postcode_parser.py | WintersDeep/wintersdeep_postcode | b5f53484d2209d48919a4db663f05c9d39a396fa | [
"MIT"
] | 2 | 2021-12-03T11:41:05.000Z | 2022-01-31T13:33:29.000Z | tests/test_postcode_parser.py | WintersDeep/wintersdeep_postcode | b5f53484d2209d48919a4db663f05c9d39a396fa | [
"MIT"
] | null | null | null | tests/test_postcode_parser.py | WintersDeep/wintersdeep_postcode | b5f53484d2209d48919a4db663f05c9d39a396fa | [
"MIT"
] | null | null | null | # python3 imports
from os.path import abspath, dirname, join
from sys import path as python_path
from unittest import TestCase
from re import compile
# determine where we are running (needed to patch PYTHON_PATH)
TEST_CASE_PATH = abspath( __file__ )
TEST_CASE_DIRECTORY = dirname( TEST_CASE_PATH )
PROJECT_ROOT_DIRECTOR... | 50.258581 | 118 | 0.709056 | 2,456 | 21,963 | 6.114007 | 0.114821 | 0.109084 | 0.102491 | 0.125266 | 0.772043 | 0.740943 | 0.722296 | 0.648375 | 0.631526 | 0.595964 | 0 | 0.012178 | 0.207394 | 21,963 | 437 | 119 | 50.258581 | 0.850414 | 0.176388 | 0 | 0.618375 | 0 | 0 | 0.081658 | 0.008166 | 0 | 0 | 0 | 0 | 0.597173 | 1 | 0.077739 | false | 0 | 0.077739 | 0 | 0.159011 | 0.003534 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c37af07242b189f52e47b75db87ce9b6ed0717b4 | 429 | py | Python | code/socialDistribution/models/__init__.py | CMPUT404F21TEAM/social-distribution | c6775bfa3bf93025d426bc4601431128a51d4c48 | [
"W3C-20150513"
] | null | null | null | code/socialDistribution/models/__init__.py | CMPUT404F21TEAM/social-distribution | c6775bfa3bf93025d426bc4601431128a51d4c48 | [
"W3C-20150513"
] | 173 | 2021-09-30T00:12:03.000Z | 2021-12-09T00:32:46.000Z | code/socialDistribution/models/__init__.py | CMPUT404F21TEAM/social-distribution | c6775bfa3bf93025d426bc4601431128a51d4c48 | [
"W3C-20150513"
] | 3 | 2021-12-09T01:27:49.000Z | 2022-03-11T06:04:16.000Z | """ Module for all models in socialDistribution app. """
# Django Software Foundation, "Organizing models in a package", 2021-10-30
# https://docs.djangoproject.com/en/3.2/topics/db/models/#organizing-models-in-a-package
from .author import Author, LocalAuthor
from .post import LocalPost, InboxPost
from .category imp... | 35.75 | 88 | 0.787879 | 60 | 429 | 5.633333 | 0.633333 | 0.071006 | 0.106509 | 0.112426 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026385 | 0.11655 | 429 | 11 | 89 | 39 | 0.865435 | 0.487179 | 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 |
c380d5e5840c9e9f6caa14e6b365d894bb10ea36 | 2,205 | py | Python | Codefights/interview-practice/arrays/rotateImage/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codefights/interview-practice/arrays/rotateImage/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codefights/interview-practice/arrays/rotateImage/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python3
from solution1 import rotateImage as f
qa = [
([[1,2,3],
[4,5,6],
[7,8,9]],
[[7,4,1],
[8,5,2],
[9,6,3]]),
([[1]],
[[1]]),
([[10,9,6,3,7],
[6,10,2,9,7],
[7,6,3,8,2],
[8,9,7,9,9],
[6,8,6,8,2]],
[[6,8,7,6,10],
[8,9,6,10,9],
... | 28.269231 | 47 | 0.437642 | 518 | 2,205 | 1.862934 | 0.142857 | 0.010363 | 0.006218 | 0.039378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.48693 | 0.253968 | 2,205 | 77 | 48 | 28.636364 | 0.099696 | 0.003175 | 0 | 0.027397 | 0 | 0 | 0.029144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013699 | 0 | 0.013699 | 0.09589 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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 |
6f34a7a661949da15518c4c322b5e167027efa31 | 10,844 | py | Python | pubnub/pubnub_core.py | rado0x54/python | c2ddecc122105d66712dd6b0c12d94b29286bc73 | [
"MIT"
] | null | null | null | pubnub/pubnub_core.py | rado0x54/python | c2ddecc122105d66712dd6b0c12d94b29286bc73 | [
"MIT"
] | null | null | null | pubnub/pubnub_core.py | rado0x54/python | c2ddecc122105d66712dd6b0c12d94b29286bc73 | [
"MIT"
] | null | null | null | import logging
import time
from abc import ABCMeta, abstractmethod
from .endpoints.objects_v2.uuid.set_uuid import SetUuid
from .endpoints.objects_v2.channel.get_all_channels import GetAllChannels
from .endpoints.objects_v2.channel.get_channel import GetChannel
from .endpoints.objects_v2.channel.remove_channel import... | 32.178042 | 101 | 0.753228 | 1,255 | 10,844 | 6.246215 | 0.152988 | 0.072713 | 0.040822 | 0.044904 | 0.223881 | 0.132925 | 0.086235 | 0.076796 | 0.068121 | 0.05715 | 0 | 0.003488 | 0.180468 | 10,844 | 336 | 102 | 32.27381 | 0.878587 | 0.00664 | 0 | 0.060729 | 0 | 0 | 0.010032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.299595 | false | 0.004049 | 0.242915 | 0.255061 | 0.854251 | 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 |
6f37b45e5d5ea05fe3349a063ccdf92af8553797 | 231 | py | Python | notebooks/1.hello_world.py | shameeriqbal/pandas-tutorial | 66f14310ea65a326283d01b720ad553d636800a3 | [
"MIT"
] | null | null | null | notebooks/1.hello_world.py | shameeriqbal/pandas-tutorial | 66f14310ea65a326283d01b720ad553d636800a3 | [
"MIT"
] | null | null | null | notebooks/1.hello_world.py | shameeriqbal/pandas-tutorial | 66f14310ea65a326283d01b720ad553d636800a3 | [
"MIT"
] | null | null | null |
# coding: utf-8
# IPython (or Jupyter) notebooks are good for illustrative purposes. It allows to document the process and save the results which are easy to publish.
#
# ### Hello World Example
# In[1]:
print "Hello World!"
| 19.25 | 150 | 0.718615 | 35 | 231 | 4.742857 | 0.857143 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.194805 | 231 | 11 | 151 | 21 | 0.88172 | 0.82684 | 0 | 0 | 0 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6f3a7613ca57b0b8edadab0babf7227f1ef3dbf3 | 165 | py | Python | python_3/test_import_funs/module_A/add_num.py | duttashi/valet | 25b57db860d5c1abce9f1d8b45b73bc8e8743025 | [
"MIT"
] | null | null | null | python_3/test_import_funs/module_A/add_num.py | duttashi/valet | 25b57db860d5c1abce9f1d8b45b73bc8e8743025 | [
"MIT"
] | 39 | 2020-10-11T06:57:35.000Z | 2021-11-02T08:57:01.000Z | python_3/test_import_funs/module_A/add_num.py | duttashi/valet | 25b57db860d5c1abce9f1d8b45b73bc8e8743025 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 11 10:18:56 2020
@author: Ashish
"""
def add_num(num1, num2):
print("In module A")
return num1+num2 | 16.5 | 36 | 0.575758 | 26 | 165 | 3.615385 | 0.923077 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138211 | 0.254545 | 165 | 10 | 37 | 16.5 | 0.626016 | 0.454545 | 0 | 0 | 0 | 0 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 |
6f77b3d204b503a9a5cb2b15fbb77f5d02a267d7 | 131 | py | Python | setup.py | exalearn/design-tutorial | 4571d08c8ae462414853fe8bd24082aaece053aa | [
"Apache-2.0"
] | null | null | null | setup.py | exalearn/design-tutorial | 4571d08c8ae462414853fe8bd24082aaece053aa | [
"Apache-2.0"
] | null | null | null | setup.py | exalearn/design-tutorial | 4571d08c8ae462414853fe8bd24082aaece053aa | [
"Apache-2.0"
] | 2 | 2020-02-11T17:03:24.000Z | 2020-07-27T09:48:06.000Z | from setuptools import setup
setup(
name='graphsage',
version='0.0.1',
install_requires=['networkx','ase','pandas']
)
| 16.375 | 48 | 0.656489 | 16 | 131 | 5.3125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.167939 | 131 | 7 | 49 | 18.714286 | 0.752294 | 0 | 0 | 0 | 0 | 0 | 0.236641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
48a748fb5d40ced7cc42f5d088e93584337820f3 | 75 | py | Python | bondules/__init__.py | mathfour/python-packages | 83814bea721b52a813d524fe8b802158a71b097d | [
"MIT"
] | null | null | null | bondules/__init__.py | mathfour/python-packages | 83814bea721b52a813d524fe8b802158a71b097d | [
"MIT"
] | null | null | null | bondules/__init__.py | mathfour/python-packages | 83814bea721b52a813d524fe8b802158a71b097d | [
"MIT"
] | null | null | null | name = "bondules"
__version__ = "1.0.1"
import bondules.the_bon_library | 18.75 | 31 | 0.733333 | 11 | 75 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.146667 | 75 | 4 | 31 | 18.75 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0.178082 | 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 |
48a8b368195f6ee7bbfe48f928ff134ba0c09b2a | 173 | py | Python | Wardo/comments/urls.py | WillArevalo/Wardo | 6b10f302f7010a593a64bbc3971b5fe883792684 | [
"Apache-2.0"
] | null | null | null | Wardo/comments/urls.py | WillArevalo/Wardo | 6b10f302f7010a593a64bbc3971b5fe883792684 | [
"Apache-2.0"
] | 8 | 2020-06-05T17:07:39.000Z | 2022-03-11T23:14:26.000Z | Wardo/comments/urls.py | WillArevalo/Wardo | 6b10f302f7010a593a64bbc3971b5fe883792684 | [
"Apache-2.0"
] | null | null | null | from comments.views import create_comment
from django.urls import path
app_name = "comments"
urlpatterns = [
path('createcomment', create_comment, name="createcomment")
] | 21.625 | 60 | 0.786127 | 21 | 173 | 6.333333 | 0.619048 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115607 | 173 | 8 | 61 | 21.625 | 0.869281 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 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 |
48e2edde6404f6cec08ef7011ac9544a65038465 | 138 | py | Python | baekjoon/math/1297-tv-easy/tv.py | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | 2 | 2019-02-08T01:23:07.000Z | 2020-11-19T12:23:52.000Z | baekjoon/math/1297-tv-easy/tv.py | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | null | null | null | baekjoon/math/1297-tv-easy/tv.py | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | null | null | null | import math
rr, x, y = list(map(int, input().split()))
r = math.sqrt(x * x + y * y)
print(math.ceil(rr * x // r), math.ceil(rr * y // r)) | 27.6 | 53 | 0.550725 | 28 | 138 | 2.714286 | 0.5 | 0.078947 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 138 | 5 | 53 | 27.6 | 0.684685 | 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 | 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 |
48e3c0e202b618b2bef7e2d84a24954a9cfe9601 | 6,733 | py | Python | entities.py | IaroslavLisniak/StochasticCorrelationModeling | b82756a80a0cc9242dc1d2755925a65e0e6329cd | [
"MIT"
] | null | null | null | entities.py | IaroslavLisniak/StochasticCorrelationModeling | b82756a80a0cc9242dc1d2755925a65e0e6329cd | [
"MIT"
] | null | null | null | entities.py | IaroslavLisniak/StochasticCorrelationModeling | b82756a80a0cc9242dc1d2755925a65e0e6329cd | [
"MIT"
] | null | null | null | import numpy as np
import finmath_calculations
# MATHEMATICAL FUNCTIONS ###############################################################################################
class coef_function1d(object):
'''
1-dimensional coeffitient function. It depends on only 1 argument.
Contains its value, first and secon... | 31.909953 | 120 | 0.538987 | 756 | 6,733 | 4.699735 | 0.21164 | 0.012384 | 0.011821 | 0.013791 | 0.400225 | 0.334365 | 0.260343 | 0.253307 | 0.253307 | 0.23642 | 0 | 0.007525 | 0.28947 | 6,733 | 210 | 121 | 32.061905 | 0.735159 | 0.334918 | 0 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290698 | false | 0 | 0.023256 | 0.186047 | 0.604651 | 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 |
48f0f5ebad92be98c07ce3521a1658a6b97678b6 | 1,005 | py | Python | app/domains/student/models.py | Renanrbsc/Event_Manager_System | 32b54b2db5c1f86184ab763d45d0c78dfddd594b | [
"MIT"
] | 1 | 2021-02-25T16:16:18.000Z | 2021-02-25T16:16:18.000Z | app/domains/student/models.py | Renanrbsc/Event_Manager_System | 32b54b2db5c1f86184ab763d45d0c78dfddd594b | [
"MIT"
] | null | null | null | app/domains/student/models.py | Renanrbsc/Event_Manager_System | 32b54b2db5c1f86184ab763d45d0c78dfddd594b | [
"MIT"
] | null | null | null | from random import randint
class Student:
_id = str()
_name = str()
_lastname = str()
def __init__(self, id: int = None, name: str = "", lastname: str = ""):
self.setId(id)
self.setName(name)
self.setLastname(lastname)
def setId(self, id: int) -> None:
if id:
... | 23.928571 | 75 | 0.539303 | 116 | 1,005 | 4.517241 | 0.267241 | 0.057252 | 0.099237 | 0.097328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013062 | 0.314428 | 1,005 | 41 | 76 | 24.512195 | 0.74746 | 0 | 0 | 0 | 0 | 0 | 0.075622 | 0.053731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.033333 | 0.166667 | 0.633333 | 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 |
48fa4715381baf7256b45ea36bd95f5c665576ec | 960 | py | Python | evm/p2p/exceptions.py | vaporyco/py-evm | c66c5f289f83c71af3b5c499875de8d36ec196ce | [
"MIT"
] | null | null | null | evm/p2p/exceptions.py | vaporyco/py-evm | c66c5f289f83c71af3b5c499875de8d36ec196ce | [
"MIT"
] | null | null | null | evm/p2p/exceptions.py | vaporyco/py-evm | c66c5f289f83c71af3b5c499875de8d36ec196ce | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
# Workaround for import cycles caused by type annotations:
# http://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles
if TYPE_CHECKING:
from evm.p2p.p2p_proto import DisconnectReason # noqa: F401
class AuthenticationError(Exception):
pass
class DecryptionError... | 16 | 71 | 0.746875 | 99 | 960 | 7.121212 | 0.505051 | 0.202837 | 0.280851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006345 | 0.179167 | 960 | 59 | 72 | 16.271186 | 0.888325 | 0.141667 | 0 | 0.366667 | 0 | 0 | 0.019536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.366667 | 0.066667 | 0.033333 | 0.566667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5b09c68507258761a2f0f6f48e80b5aaf0774337 | 7,514 | py | Python | coffee/expression.py | coneoproject/COFFEE | 70c1e66a4e4e39d3bf75274505a16901af110751 | [
"BSD-3-Clause"
] | 12 | 2015-03-28T12:44:05.000Z | 2020-08-10T17:00:32.000Z | coffee/expression.py | coneoproject/COFFEE | 70c1e66a4e4e39d3bf75274505a16901af110751 | [
"BSD-3-Clause"
] | 89 | 2015-01-05T13:30:30.000Z | 2019-09-11T18:49:20.000Z | coffee/expression.py | coneoproject/COFFEE | 70c1e66a4e4e39d3bf75274505a16901af110751 | [
"BSD-3-Clause"
] | 7 | 2015-01-23T13:37:50.000Z | 2018-09-10T07:46:02.000Z | # This file is part of COFFEE
#
# COFFEE is Copyright (c) 2014, Imperial College London.
# Please see the AUTHORS file in the main source directory for
# a full list of copyright holders. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided ... | 32.812227 | 92 | 0.680197 | 1,076 | 7,514 | 4.599442 | 0.217472 | 0.075571 | 0.039604 | 0.02748 | 0.369165 | 0.321883 | 0.274399 | 0.233583 | 0.188725 | 0.149727 | 0 | 0.005074 | 0.23942 | 7,514 | 228 | 93 | 32.95614 | 0.860892 | 0.308092 | 0 | 0.264706 | 0 | 0 | 0.003932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272059 | false | 0 | 0.029412 | 0.227941 | 0.573529 | 0.007353 | 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 |
5b1ad204384f520532a95c1d25bab1f4b5001bd8 | 168 | py | Python | cses/intro/missing_number.py | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | null | null | null | cses/intro/missing_number.py | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | 6 | 2021-10-12T09:14:30.000Z | 2021-10-16T19:29:08.000Z | cses/intro/missing_number.py | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | null | null | null | from functools import reduce
from operator import xor
input()
xs = list(map(int, input().strip().split()))
print(reduce(xor, xs) ^ reduce(xor, range(1, len(xs) + 2)))
| 24 | 59 | 0.684524 | 27 | 168 | 4.259259 | 0.666667 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.130952 | 168 | 6 | 60 | 28 | 0.773973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 |
d295a31d81a72980eedcb108c2e48d1cf29f9cac | 6,841 | py | Python | src/expression.py | IbraheemWazirUK/NDVerifier | 56d3fb5f09c481db193ec8f90b6d581d47550646 | [
"MIT"
] | null | null | null | src/expression.py | IbraheemWazirUK/NDVerifier | 56d3fb5f09c481db193ec8f90b6d581d47550646 | [
"MIT"
] | null | null | null | src/expression.py | IbraheemWazirUK/NDVerifier | 56d3fb5f09c481db193ec8f90b6d581d47550646 | [
"MIT"
] | null | null | null | from .helper import find_mutual, delete_mutual, print_list, append_no_dupl
class Exp():
def __init__(self):
pass
def eliminate(self, e, c):
pass
def introduction(self, e, c):
return False
# returns all expressions x such that self -> x
def implications(self, cur_true_exps):
res = []
for e in cur_tr... | 28.743697 | 103 | 0.695512 | 1,217 | 6,841 | 3.598192 | 0.073131 | 0.132679 | 0.208495 | 0.102306 | 0.763873 | 0.71272 | 0.673898 | 0.566111 | 0.501941 | 0.458095 | 0 | 0.003211 | 0.180675 | 6,841 | 238 | 104 | 28.743697 | 0.778055 | 0.105832 | 0 | 0.534091 | 0 | 0 | 0.006722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.011364 | 0.005682 | 0.085227 | 0.460227 | 0.005682 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2a099fa3a08d9eb49498b2610baf18a19c20c10 | 858 | py | Python | src/xml_editors/IDLocators.py | rdok/cyberpunk2077-r6-config-editor | d4149e91bbeeb641c7e8f85be468085b251c6ae7 | [
"MIT"
] | 1 | 2021-01-03T21:15:14.000Z | 2021-01-03T21:15:14.000Z | src/xml_editors/IDLocators.py | rdok/cyberpunk2077-r6-config-editor | d4149e91bbeeb641c7e8f85be468085b251c6ae7 | [
"MIT"
] | 8 | 2020-12-25T18:32:12.000Z | 2021-11-05T20:48:14.000Z | src/xml_editors/IDLocators.py | rdok/cyberpunk2077-r6-config-editor | d4149e91bbeeb641c7e8f85be468085b251c6ae7 | [
"MIT"
] | null | null | null | from xml.etree import ElementTree
class IDLocators:
def back(self, root: ElementTree):
xpath = './/mapping[@name="LeftY_Axis"]' \
'//button[@overridableUI="back"]'
element = root.find(xpath)
return element.get('id')
def forward(self, root):
xpath = './/mapping[... | 30.642857 | 52 | 0.548951 | 88 | 858 | 5.306818 | 0.306818 | 0.068522 | 0.137045 | 0.171306 | 0.773019 | 0.755889 | 0.755889 | 0.567452 | 0.486081 | 0 | 0 | 0 | 0.27972 | 858 | 27 | 53 | 31.777778 | 0.755663 | 0 | 0 | 0.545455 | 0 | 0 | 0.298368 | 0.289044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
d2af8e00bed1c53b592845891938f68ff164b628 | 344 | py | Python | Task/Pragmatic-directives/Python/pragmatic-directives-1.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Pragmatic-directives/Python/pragmatic-directives-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Pragmatic-directives/Python/pragmatic-directives-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import __future__
>>> __future__.all_feature_names
['nested_scopes', 'generators', 'division', 'absolute_import', 'with_statement', 'print_function', 'unicode_literals'... | 49.142857 | 136 | 0.726744 | 48 | 344 | 4.854167 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100649 | 0.104651 | 344 | 6 | 137 | 57.333333 | 0.655844 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d2ccf032e46ef7d62b6249533417a52bdb433455 | 280 | py | Python | tests/unit/plugins/filter/test_foo.py | pedrohdz-scrap/ansible-collection-devenv | 4287d596f7928e08779d70f4f7435ef1fca4c5c9 | [
"Apache-2.0"
] | null | null | null | tests/unit/plugins/filter/test_foo.py | pedrohdz-scrap/ansible-collection-devenv | 4287d596f7928e08779d70f4f7435ef1fca4c5c9 | [
"Apache-2.0"
] | null | null | null | tests/unit/plugins/filter/test_foo.py | pedrohdz-scrap/ansible-collection-devenv | 4287d596f7928e08779d70f4f7435ef1fca4c5c9 | [
"Apache-2.0"
] | 1 | 2021-09-11T12:58:36.000Z | 2021-09-11T12:58:36.000Z | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
from plugins.filter.normalize_pyvenv_apps import convert_string
def test_convert_string():
assert convert_string('foo') == {'name': 'foo'}
def test_foo():
assert True
| 20 | 64 | 0.775 | 36 | 280 | 5.555556 | 0.638889 | 0.195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139286 | 280 | 13 | 65 | 21.538462 | 0.829876 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d2fba40b75351d8b7d27a9d1439cdfb7e1c3567a | 2,895 | py | Python | pythran/tests/test_numpy_linalg.py | rfiischer/pythran | a580245b1b45e5eb0df01c518e442041b89afa21 | [
"BSD-3-Clause"
] | 1 | 2020-07-21T10:01:20.000Z | 2020-07-21T10:01:20.000Z | pythran/tests/test_numpy_linalg.py | lsix/pythran | dc2b0544c49a8f9fc278fc91de32b0cc97a3ef40 | [
"BSD-3-Clause"
] | null | null | null | pythran/tests/test_numpy_linalg.py | lsix/pythran | dc2b0544c49a8f9fc278fc91de32b0cc97a3ef40 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from pythran.tests import TestEnv
import numpy
from pythran.typing import NDArray
@TestEnv.module
class TestNumpyLinalg(TestEnv):
def test_linalg_norm0(self):
self.run_test("def linalg_norm0(x): from numpy.linalg import norm ; return norm(x)", numpy.arange(6.), linalg_norm0=[NDArray[float... | 52.636364 | 205 | 0.557168 | 412 | 2,895 | 3.798544 | 0.126214 | 0.072843 | 0.07476 | 0.086262 | 0.702875 | 0.578914 | 0.43131 | 0.43131 | 0.395527 | 0.395527 | 0 | 0.033981 | 0.288428 | 2,895 | 54 | 206 | 53.611111 | 0.725728 | 0 | 0 | 0 | 0 | 0.162791 | 0.577548 | 0.007254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.325581 | 0 | 0.581395 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
d2ffcd3bc5b6787cfb95abe4beab1b1f2dc44f87 | 167 | py | Python | tests/test_client.py | jdewinne/pyspinnaker | 6ba610dc518217e0750b46cd0aeebbdee75b5a9d | [
"MIT"
] | null | null | null | tests/test_client.py | jdewinne/pyspinnaker | 6ba610dc518217e0750b46cd0aeebbdee75b5a9d | [
"MIT"
] | 1 | 2021-06-01T22:58:18.000Z | 2021-06-01T22:58:18.000Z | tests/test_client.py | jdewinne/pyspinnaker | 6ba610dc518217e0750b46cd0aeebbdee75b5a9d | [
"MIT"
] | 1 | 2019-06-04T02:25:50.000Z | 2019-06-04T02:25:50.000Z | from spinnaker import SpinnakerClient
class TestClient(object):
def test_init(self):
x = SpinnakerClient("http://localhost")
assert x is not None
| 23.857143 | 47 | 0.694611 | 20 | 167 | 5.75 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221557 | 167 | 6 | 48 | 27.833333 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
960565c4907c1ca6487881e0b2340b54f7fb2b99 | 1,446 | py | Python | service/User/service.py | mackness33/Twitter-Tracker | dc1709df40332dfe3ff23f4da326d855277398cb | [
"MIT"
] | 1 | 2021-11-25T14:35:01.000Z | 2021-11-25T14:35:01.000Z | service/User/service.py | mackness33/Twitter-Tracker | dc1709df40332dfe3ff23f4da326d855277398cb | [
"MIT"
] | null | null | null | service/User/service.py | mackness33/Twitter-Tracker | dc1709df40332dfe3ff23f4da326d855277398cb | [
"MIT"
] | null | null | null | from ..core_model import Service
from database.models.odm_user_mongo import user
from .user import User
from flask import flash
from werkzeug.security import generate_password_hash, check_password_hash
class UsersService(Service):
__model__ = user
__return_class__ = User
__collection__ = "user"
def __... | 29.510204 | 84 | 0.625173 | 183 | 1,446 | 4.710383 | 0.393443 | 0.058005 | 0.069606 | 0.106729 | 0.12645 | 0.12645 | 0.088167 | 0 | 0 | 0 | 0 | 0 | 0.284924 | 1,446 | 48 | 85 | 30.125 | 0.833656 | 0.092669 | 0 | 0.171429 | 1 | 0 | 0.13751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.2 | 0.142857 | 0 | 0.514286 | 0.142857 | 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 |
9613afd635936be89fc56e9cc269418e0f539deb | 902 | py | Python | python/simplepvr/simple_pvr/pvr_initializer.py | olefriis/simplepvr | 8047d0f0de8caafcea89fbc42337273e34ed101c | [
"WTFPL"
] | 5 | 2015-01-27T01:11:36.000Z | 2022-03-22T20:54:55.000Z | python/simplepvr/simple_pvr/pvr_initializer.py | olefriis/simplepvr | 8047d0f0de8caafcea89fbc42337273e34ed101c | [
"WTFPL"
] | null | null | null | python/simplepvr/simple_pvr/pvr_initializer.py | olefriis/simplepvr | 8047d0f0de8caafcea89fbc42337273e34ed101c | [
"WTFPL"
] | null | null | null | # -*- coding: <utf-8> -*-
from .config import config
from datetime import timedelta
import os
from time import sleep
from .master_import import HDHomeRun
from .master_import import RecordingManager
from .master_import import Scheduler
from .server import app
_config_recordings_path = config.get('SimplePVR', 'recor... | 21.47619 | 76 | 0.768293 | 104 | 902 | 6.298077 | 0.394231 | 0.10687 | 0.09771 | 0.134351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.151885 | 902 | 42 | 77 | 21.47619 | 0.849673 | 0.025499 | 0 | 0 | 0 | 0 | 0.027335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.321429 | 0.107143 | 0.607143 | 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 |
961d785d817363756add300541bad4dcaab09751 | 407 | py | Python | utils/context.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | utils/context.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | utils/context.py | rompdodger/RompDodger | 9c8b481d9f69e05c15f01271f6c18e09ab2723e6 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
class Context(commands.Context):
"""Custom context"""
def __init__(self, **kwargs):
super().__init__(**kwargs)
@property
def session(self):
return self.bot.session
@property
def db(self):
return self.bot.db
def green_tick(self):
return "<:greenTic... | 19.380952 | 42 | 0.714988 | 50 | 407 | 5.62 | 0.5 | 0.142349 | 0.099644 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104348 | 0.152334 | 407 | 21 | 43 | 19.380952 | 0.710145 | 0.034398 | 0 | 0.133333 | 0 | 0 | 0.154639 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.266667 | 0.8 | 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 |
82657dfefdc6cc6b96d89ad990bde80ff0c4fecb | 738 | py | Python | ImageData.py | FrieAT/MD_CompressedWavelet | 82bd10edd611485cd5f0b81da744e07a3b7c98eb | [
"MIT"
] | 2 | 2020-03-28T11:50:45.000Z | 2020-12-08T13:36:26.000Z | ImageData.py | FrieAT/MD_CompressedWavelet | 82bd10edd611485cd5f0b81da744e07a3b7c98eb | [
"MIT"
] | 2 | 2020-04-20T11:12:59.000Z | 2020-05-11T05:37:36.000Z | ImageData.py | FrieAT/MD_CompressedWavelet | 82bd10edd611485cd5f0b81da744e07a3b7c98eb | [
"MIT"
] | null | null | null | from OrigPic import OrigPic
from WaveletPic import WaveletPic
from StationaryWaveletPic import StationaryWaveletPic
from FVExtraction import FVExtraction
from ScanAssets import ScanAssets
from PipelineManager import PipelineManager
from LOOCV import LOOCV
from EuclideanDistance import EuclideanDistance
from kNearestNei... | 35.142857 | 57 | 0.895664 | 76 | 738 | 8.697368 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104336 | 738 | 20 | 58 | 36.9 | 1 | 0 | 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 |
826de85c29ed45f5e379200f14cee2abd73bdc3d | 310 | py | Python | cogs/Watchafaboulas.py | Ree23/Discord-bot | 312994df2f146ae4bc2c55ad6aefb4fb33b63b0f | [
"MIT"
] | null | null | null | cogs/Watchafaboulas.py | Ree23/Discord-bot | 312994df2f146ae4bc2c55ad6aefb4fb33b63b0f | [
"MIT"
] | null | null | null | cogs/Watchafaboulas.py | Ree23/Discord-bot | 312994df2f146ae4bc2c55ad6aefb4fb33b63b0f | [
"MIT"
] | null | null | null | from discord.ext import commands
class Watchafaboulas:
def __init__(self, Human_Boi):
self.Human_Boi = Human_Boi
@commands.command(name="ping")
async def ping(self, ctx):
await ctx.send("pong")
def setup(Human_Boi):
Human_Boi.add_cog(Watchafaboulas(Human_Boi))
| 22.142857 | 49 | 0.667742 | 41 | 310 | 4.780488 | 0.560976 | 0.244898 | 0.122449 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229032 | 310 | 13 | 50 | 23.846154 | 0.820084 | 0 | 0 | 0 | 0 | 0 | 0.026936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
828762659c703b698d4c008a37cf7c76040628a5 | 21,130 | py | Python | stubs.min/Autodesk/Revit/DB/Structure/__init___parts/RebarContainerItem.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/Autodesk/Revit/DB/Structure/__init___parts/RebarContainerItem.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/DB/Structure/__init___parts/RebarContainerItem.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class RebarContainerItem(object,IDisposable):
""" Provides implementation for Rebar stored in RebarContainer. """
def CanApplyPresentationMode(self,dBView):
"""
CanApplyPresentationMode(self: RebarContainerItem,dBView: View) -> bool
Checks if a presentation mode can be applied for this rebar in the ... | 38.699634 | 297 | 0.72177 | 2,576 | 21,130 | 5.89441 | 0.139363 | 0.092729 | 0.023709 | 0.031612 | 0.530361 | 0.504413 | 0.474974 | 0.454755 | 0.439278 | 0.397063 | 0 | 0.000894 | 0.206058 | 21,130 | 545 | 298 | 38.770642 | 0.904208 | 0.599337 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.384615 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
828f43dae6f2468b3d6e827d0b96cc7fc5e90768 | 98 | py | Python | poikit/api/datav/__init__.py | Civitasv/PoiKit | da806ed0b8b219fdd0ab945f88fb43f21c132263 | [
"MIT"
] | null | null | null | poikit/api/datav/__init__.py | Civitasv/PoiKit | da806ed0b8b219fdd0ab945f88fb43f21c132263 | [
"MIT"
] | null | null | null | poikit/api/datav/__init__.py | Civitasv/PoiKit | da806ed0b8b219fdd0ab945f88fb43f21c132263 | [
"MIT"
] | null | null | null | # -- coding: utf-8 --
import requests
base_url = "https://geo.datav.aliyun.com/areas_v3/bound/"
| 16.333333 | 57 | 0.683673 | 15 | 98 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.122449 | 98 | 5 | 58 | 19.6 | 0.732558 | 0.193878 | 0 | 0 | 0 | 0 | 0.571429 | 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 |
82af51a77c1076cbd45e2816f85b194f497894b8 | 318 | py | Python | people/basic_factories.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | 3 | 2018-12-05T16:44:59.000Z | 2020-08-01T14:12:32.000Z | people/basic_factories.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | 6 | 2020-06-03T15:56:59.000Z | 2022-02-10T07:23:55.000Z | people/basic_factories.py | jordifierro/pachatary-api | c03ad67ceb856068daa6d082091372eb1ed3d009 | [
"MIT"
] | null | null | null | from .repositories import PersonRepo, BlockRepo
from .validators import PersonPermissionsValidator
def create_person_repo():
return PersonRepo()
def create_block_repo():
return BlockRepo()
def create_person_permissions_validator():
return PersonPermissionsValidator(person_repo=create_person_repo())
| 21.2 | 71 | 0.811321 | 33 | 318 | 7.515152 | 0.454545 | 0.108871 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122642 | 318 | 14 | 72 | 22.714286 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | true | 0 | 0.25 | 0.375 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
82d5f5b8204251bb2fee99550549c8f073511b1f | 289 | py | Python | mymodule/Counter.py | CRIStAL-PADR/python-paper-template | 5e8dd89ba9eba7f934802c5cd7258c727b16d098 | [
"MIT"
] | 2 | 2017-06-29T08:42:01.000Z | 2017-06-29T08:52:05.000Z | mymodule/Counter.py | CRIStAL-PADR/python-paper-template | 5e8dd89ba9eba7f934802c5cd7258c727b16d098 | [
"MIT"
] | 1 | 2018-07-18T06:14:03.000Z | 2018-07-20T08:44:08.000Z | mymodule/mymodule.py | CRIStAL-Sigma/mock_tex_paper | 8b97f6f0221ad202f377d7b27d422523162fb386 | [
"MIT"
] | 5 | 2017-06-30T08:57:14.000Z | 2020-08-16T21:35:42.000Z | class Counter:
"This is a counter class"
def __init__(self):
self.value = 0
def increment(self):
"Increments the counter"
self.value = self.value + 1
def decrement(self):
"Decrements the counter"
self.value = self.value - 1 | 24.083333 | 35 | 0.574394 | 35 | 289 | 4.628571 | 0.457143 | 0.277778 | 0.17284 | 0.234568 | 0.358025 | 0.358025 | 0.358025 | 0 | 0 | 0 | 0 | 0.015625 | 0.33564 | 289 | 12 | 36 | 24.083333 | 0.828125 | 0.238754 | 0 | 0 | 0 | 0 | 0.231034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82dba02b7b674719f7faa5aef431cae0f942f5e4 | 118,032 | py | Python | pythonocc/lib/OCC/STEPConstruct.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | 2 | 2017-10-30T15:51:48.000Z | 2020-11-04T02:23:36.000Z | pythonocc/lib/OCC/STEPConstruct.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | null | null | null | pythonocc/lib/OCC/STEPConstruct.py | mbattistello/lambda_converters | 0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3 | [
"MIT"
] | 4 | 2017-11-29T05:24:34.000Z | 2020-03-05T23:23:23.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _STEPCon... | 41.429273 | 539 | 0.751212 | 10,779 | 118,032 | 7.912886 | 0.073291 | 0.137479 | 0.077732 | 0.100325 | 0.698287 | 0.384592 | 0.337589 | 0.292744 | 0.264312 | 0.255543 | 0 | 0.006522 | 0.178985 | 118,032 | 2,848 | 540 | 41.44382 | 0.87364 | 0.262632 | 0 | 0.165254 | 1 | 0 | 0.007656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264831 | false | 0.003178 | 0.03178 | 0.004237 | 0.636653 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
82e67a0f126bdee06864d3375f52da39a7aac36d | 984 | py | Python | 120_triangle.py | claytonjwong/leetcode-py | 16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7 | [
"MIT"
] | 1 | 2020-07-15T14:16:23.000Z | 2020-07-15T14:16:23.000Z | 120_triangle.py | claytonjwong/leetcode-py | 16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7 | [
"MIT"
] | null | null | null | 120_triangle.py | claytonjwong/leetcode-py | 16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7 | [
"MIT"
] | null | null | null | #
# 120. Triangle
#
# Q: https://leetcode.com/problems/triangle/
# A: https://leetcode.com/problems/triangle/discuss/38726/Kt-Js-Py3-Cpp-The-ART-of-Dynamic-Programming
#
# TopDown
class Solution:
def minimumTotal(self, A: List[List[int]]) -> int:
N = len(A)
def go(i = 0, j = 0):
if i ==... | 26.594595 | 102 | 0.477642 | 155 | 984 | 3.032258 | 0.283871 | 0.038298 | 0.038298 | 0.042553 | 0.706383 | 0.548936 | 0.548936 | 0.548936 | 0.548936 | 0.548936 | 0 | 0.046296 | 0.341463 | 984 | 36 | 103 | 27.333333 | 0.679012 | 0.189024 | 0 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7d5c0d4a00564fb0538344253781b0c6210cd81c | 529 | py | Python | rl/configs/Config.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | 7 | 2020-10-08T04:59:51.000Z | 2021-12-03T06:12:39.000Z | rl/configs/Config.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | rl/configs/Config.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | class Config():
def __init__(self):
pass
def to_dict(self):
res_dict = dict()
for key, value in self.__dict__.items():
if isinstance(value, Config):
res_dict.update(value.to_dict())
else:
res_dict[key] = value
return res_di... | 20.346154 | 48 | 0.572779 | 58 | 529 | 4.827586 | 0.431034 | 0.1 | 0.139286 | 0.182143 | 0.246429 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334594 | 529 | 25 | 49 | 21.16 | 0.795455 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.157895 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7d5cf3ea2f471a09a43edcc080bd6ea24adf1206 | 286 | py | Python | apps/terminal_location_shortcuts/terminal_location_shortcuts.py | DonnerWolfBach/knausj_talon | 2b217f375fc6c6e98629158435cd9b1f3a0ea538 | [
"MIT"
] | null | null | null | apps/terminal_location_shortcuts/terminal_location_shortcuts.py | DonnerWolfBach/knausj_talon | 2b217f375fc6c6e98629158435cd9b1f3a0ea538 | [
"MIT"
] | null | null | null | apps/terminal_location_shortcuts/terminal_location_shortcuts.py | DonnerWolfBach/knausj_talon | 2b217f375fc6c6e98629158435cd9b1f3a0ea538 | [
"MIT"
] | null | null | null | from talon import Module
mod = Module()
@mod.action_class
class Actions:
def terminal_location_shortcuts_go(location :str):
"""moves the terminal to the location"""
def terminal_location_shortcuts_path(location: str):
"""returns the path to the location"""
| 20.428571 | 56 | 0.70979 | 37 | 286 | 5.297297 | 0.513514 | 0.091837 | 0.193878 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199301 | 286 | 13 | 57 | 22 | 0.855895 | 0.234266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d6aca9f8f1871468354a7bb0058cbb9a6077de4 | 1,463 | py | Python | src/PokerRL/envs/holdem_env.py | skamano/PokerRL | 3790a887751b7b5ebf4053618ea30c4aebcc90c9 | [
"MIT"
] | null | null | null | src/PokerRL/envs/holdem_env.py | skamano/PokerRL | 3790a887751b7b5ebf4053618ea30c4aebcc90c9 | [
"MIT"
] | null | null | null | src/PokerRL/envs/holdem_env.py | skamano/PokerRL | 3790a887751b7b5ebf4053618ea30c4aebcc90c9 | [
"MIT"
] | null | null | null | import copy
import gym
import numpy as np
from gym import error, spaces, utils
from gym.utils import seeding
from .. import HoldemGame, HoldemPlayer
class HoldemEnv(gym.Env):
metadata = {'render.modes': ['human']}
def __init__(self, game: HoldemGame):
self._game = game
@property
def ac... | 28.134615 | 108 | 0.578947 | 188 | 1,463 | 4.457447 | 0.43617 | 0.02864 | 0.02864 | 0.0358 | 0.126492 | 0.126492 | 0.126492 | 0.126492 | 0.126492 | 0.126492 | 0 | 0.02233 | 0.295967 | 1,463 | 51 | 109 | 28.686275 | 0.791262 | 0.206425 | 0 | 0.294118 | 0 | 0 | 0.020036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.058824 | 0.176471 | 0 | 0.558824 | 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 |
7d6f2c32af6c9a849109ea435865ce58c69b4f8a | 256 | py | Python | powerpy/pattern/creational/lazy.py | jacopodl/PowerPy | a86d3f56f39f236d661b85598fe9e7c4c5d59d6b | [
"MIT"
] | null | null | null | powerpy/pattern/creational/lazy.py | jacopodl/PowerPy | a86d3f56f39f236d661b85598fe9e7c4c5d59d6b | [
"MIT"
] | null | null | null | powerpy/pattern/creational/lazy.py | jacopodl/PowerPy | a86d3f56f39f236d661b85598fe9e7c4c5d59d6b | [
"MIT"
] | null | null | null | def lazy(func):
fnattr = "__lazy_" + func.__name__
@property
def wrapper(*args, **kwargs):
if not hasattr(func, fnattr):
setattr(func, fnattr, func(*args, **kwargs))
return getattr(func, fnattr)
return wrapper
| 23.272727 | 56 | 0.597656 | 29 | 256 | 5.034483 | 0.517241 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273438 | 256 | 10 | 57 | 25.6 | 0.784946 | 0 | 0 | 0 | 0 | 0 | 0.027344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d95c63896b26e3ff2b34e19ee99e078a93be32a | 19 | py | Python | xpath_json/__init__.py | kotari/xpath_json | e2e5983e8d906a318270e6bfaeaaf224a1f945fb | [
"MIT"
] | null | null | null | xpath_json/__init__.py | kotari/xpath_json | e2e5983e8d906a318270e6bfaeaaf224a1f945fb | [
"MIT"
] | null | null | null | xpath_json/__init__.py | kotari/xpath_json | e2e5983e8d906a318270e6bfaeaaf224a1f945fb | [
"MIT"
] | null | null | null | name = "xpath_json" | 19 | 19 | 0.736842 | 3 | 19 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 19 | 1 | 19 | 19 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 |
7d9e2d35e191bb236c1f4aec71a939f6da682395 | 1,170 | py | Python | packs/utils/info_manager.py | CiceroAraujo/SB | 637cc4bc63c952f058c316b2b1fbfbb5cd6250c8 | [
"MIT"
] | 1 | 2020-09-09T17:42:52.000Z | 2020-09-09T17:42:52.000Z | packs/utils/info_manager.py | CiceroAraujo/SB | 637cc4bc63c952f058c316b2b1fbfbb5cd6250c8 | [
"MIT"
] | null | null | null | packs/utils/info_manager.py | CiceroAraujo/SB | 637cc4bc63c952f058c316b2b1fbfbb5cd6250c8 | [
"MIT"
] | null | null | null | import yaml
import os
from ..directories import flying
class InfoManager:
all_files = dict()
def __init__(self, from_file_name1: str, to_file_name2: str):
self.file_name = to_file_name2
self.from_file_name1 = from_file_name1
if set([self.file_name]) & set(InfoManager.all_files.keys()... | 26.590909 | 80 | 0.650427 | 167 | 1,170 | 4.167665 | 0.335329 | 0.068966 | 0.103448 | 0.073276 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006818 | 0.247863 | 1,170 | 43 | 81 | 27.209302 | 0.784091 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.096774 | 0.16129 | 0.612903 | 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 |
7dbb848ba42a89e672707583a002aed7f1180c01 | 2,281 | py | Python | oscar_ecomenv/Lib/site-packages/phonenumbers/data/region_AL.py | PamilerinId/Ecommerce-Boiler | 1d706f88c8c828e86309793cb33ea102f385bf2f | [
"Apache-2.0"
] | null | null | null | oscar_ecomenv/Lib/site-packages/phonenumbers/data/region_AL.py | PamilerinId/Ecommerce-Boiler | 1d706f88c8c828e86309793cb33ea102f385bf2f | [
"Apache-2.0"
] | null | null | null | oscar_ecomenv/Lib/site-packages/phonenumbers/data/region_AL.py | PamilerinId/Ecommerce-Boiler | 1d706f88c8c828e86309793cb33ea102f385bf2f | [
"Apache-2.0"
] | null | null | null | """Auto-generated file, do not edit by hand. AL metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_AL = PhoneMetadata(id='AL', country_code=355, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[2-57]\\d{7}|6\\d{8}|8\\d{5,7}|9\\d{5}',... | 120.052632 | 524 | 0.643577 | 388 | 2,281 | 3.600515 | 0.237113 | 0.020043 | 0.023622 | 0.180387 | 0.362921 | 0.303508 | 0.261274 | 0.169649 | 0.155333 | 0.047244 | 0 | 0.130089 | 0.06313 | 2,281 | 18 | 525 | 126.722222 | 0.523631 | 0.023235 | 0 | 0 | 1 | 0.125 | 0.330333 | 0.231773 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7dcd5fa3d7606091f6d50c9b92e5bd62c80261e7 | 56 | py | Python | my_wallet/apiv1/__init__.py | ibolorino/wallet-backend | 99b00caebdbcf4b5e7f0f7b183615231405b15b6 | [
"MIT"
] | null | null | null | my_wallet/apiv1/__init__.py | ibolorino/wallet-backend | 99b00caebdbcf4b5e7f0f7b183615231405b15b6 | [
"MIT"
] | null | null | null | my_wallet/apiv1/__init__.py | ibolorino/wallet-backend | 99b00caebdbcf4b5e7f0f7b183615231405b15b6 | [
"MIT"
] | null | null | null | default_app_config = "my_wallet.apiv1.apps.ApiV1Config"
| 28 | 55 | 0.839286 | 8 | 56 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.053571 | 56 | 1 | 56 | 56 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7dcf515119cd2404e06a62fc54e8c5063b430a77 | 206 | wsgi | Python | contrib/wsgi/flagon_status_api.wsgi | ashcrow/flagon | 50e6aa96854468a89399ef08573e4f814a002d26 | [
"MIT"
] | 18 | 2015-08-27T03:49:42.000Z | 2021-05-12T21:48:17.000Z | contrib/wsgi/flagon_status_api.wsgi | ashcrow/flagon | 50e6aa96854468a89399ef08573e4f814a002d26 | [
"MIT"
] | 2 | 2016-07-18T13:48:46.000Z | 2017-05-20T15:56:03.000Z | contrib/wsgi/flagon_status_api.wsgi | ashcrow/flagon | 50e6aa96854468a89399ef08573e4f814a002d26 | [
"MIT"
] | 5 | 2015-09-20T08:46:01.000Z | 2021-06-10T03:41:04.000Z | from flagon.status_api import StatusAPI
# Import and setup the backend to use ...
# from flagon.backends import localmemory
# backend = localmemory.LocalMemoryBackend({})
application = StatusAPI(backend)
| 25.75 | 46 | 0.786408 | 24 | 206 | 6.708333 | 0.666667 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131068 | 206 | 7 | 47 | 29.428571 | 0.899441 | 0.601942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7dd9cc02a594bd6a2b649328d2926c40cef6668f | 56 | py | Python | creme/proba/__init__.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | 1 | 2019-08-24T00:04:19.000Z | 2019-08-24T00:04:19.000Z | creme/proba/__init__.py | koaning/creme | fea9594b0620b57edef0d986edc735a3a0977dc9 | [
"BSD-3-Clause"
] | null | null | null | creme/proba/__init__.py | koaning/creme | fea9594b0620b57edef0d986edc735a3a0977dc9 | [
"BSD-3-Clause"
] | 2 | 2021-06-20T09:29:38.000Z | 2021-06-23T07:47:21.000Z | from .gaussian import Gaussian
__all__ = ['Gaussian']
| 11.2 | 30 | 0.732143 | 6 | 56 | 6.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 4 | 31 | 14 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
7ddea2450470233e362b7b23f65c70c29275a08b | 153 | py | Python | mlfx/variables/__init__.py | jamiefeiss/MLFX | a5ad01fdcaa23023ddfa1d34443bdb63542fec68 | [
"MIT"
] | 1 | 2020-09-12T00:11:39.000Z | 2020-09-12T00:11:39.000Z | mlfx/variables/__init__.py | jamiefeiss/MLFX | a5ad01fdcaa23023ddfa1d34443bdb63542fec68 | [
"MIT"
] | 4 | 2020-11-13T19:00:50.000Z | 2022-02-10T02:01:01.000Z | mlfx/variables/__init__.py | jamiefeiss/MLFX | a5ad01fdcaa23023ddfa1d34443bdb63542fec68 | [
"MIT"
] | null | null | null | from .Variable import Variable
from .Global import Global
from .Parameter import Parameter
__all__ = [
'Variable',\
'Global',\
'Parameter'
] | 17 | 32 | 0.69281 | 16 | 153 | 6.375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202614 | 153 | 9 | 33 | 17 | 0.836066 | 0 | 0 | 0 | 0 | 0 | 0.149351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
7de2c36637805dc54ba60e35b9042e415e740afa | 146 | py | Python | src/hist/axis/transform.py | andrzejnovak/hist | 15a41565ac9a3683bff74b98803c4b88ad8a19ae | [
"BSD-3-Clause"
] | null | null | null | src/hist/axis/transform.py | andrzejnovak/hist | 15a41565ac9a3683bff74b98803c4b88ad8a19ae | [
"BSD-3-Clause"
] | null | null | null | src/hist/axis/transform.py | andrzejnovak/hist | 15a41565ac9a3683bff74b98803c4b88ad8a19ae | [
"BSD-3-Clause"
] | null | null | null | from boost_histogram.axis.transform import AxisTransform, Function, Pow, log, sqrt
__all__ = ("AxisTransform", "Pow", "Function", "sqrt", "log")
| 36.5 | 82 | 0.732877 | 17 | 146 | 6 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 146 | 3 | 83 | 48.666667 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0.212329 | 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 |
816d2159e508a6c7403148550befb50538b937a0 | 9,388 | py | Python | tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_4_2.py | dael-victoria-reyes/data-act-broker-backend | f83c7cad29cac24d95f45a262710dc1564de7dc1 | [
"CC0-1.0"
] | 1 | 2019-06-22T21:53:16.000Z | 2019-06-22T21:53:16.000Z | tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_4_2.py | dael-victoria-reyes/data-act-broker-backend | f83c7cad29cac24d95f45a262710dc1564de7dc1 | [
"CC0-1.0"
] | null | null | null | tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_4_2.py | dael-victoria-reyes/data-act-broker-backend | f83c7cad29cac24d95f45a262710dc1564de7dc1 | [
"CC0-1.0"
] | null | null | null | from tests.unit.dataactcore.factories.domain import OfficeFactory
from tests.unit.dataactcore.factories.staging import (DetachedAwardFinancialAssistanceFactory,
PublishedAwardFinancialAssistanceFactory)
from tests.unit.dataactvalidator.utils import number_of_errors,... | 80.239316 | 119 | 0.57957 | 857 | 9,388 | 5.957993 | 0.140023 | 0.056796 | 0.084606 | 0.124951 | 0.79436 | 0.772816 | 0.759303 | 0.663729 | 0.647474 | 0.621426 | 0 | 0.056055 | 0.359608 | 9,388 | 116 | 120 | 80.931034 | 0.793247 | 0.115999 | 0 | 0.505882 | 0 | 0 | 0.060346 | 0.005563 | 0 | 0 | 0 | 0 | 0.035294 | 1 | 0.035294 | false | 0 | 0.035294 | 0 | 0.070588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
817980c57d80007562dc5878f272364a882e0894 | 563 | py | Python | experiments/ripe/collect.py | OleksiiOleksenko/intel_mpx_explained | dd6da57e0fcf22df358d1a742079b414620a7c88 | [
"MIT"
] | 15 | 2017-02-08T04:02:50.000Z | 2021-02-20T16:47:25.000Z | experiments/ripe/collect.py | OleksiiOleksenko/intel_mpx_explained | dd6da57e0fcf22df358d1a742079b414620a7c88 | [
"MIT"
] | 1 | 2020-02-01T00:29:32.000Z | 2020-02-04T14:25:57.000Z | experiments/ripe/collect.py | OleksiiOleksenko/intel_mpx_explained | dd6da57e0fcf22df358d1a742079b414620a7c88 | [
"MIT"
] | 3 | 2017-02-08T04:02:51.000Z | 2018-03-30T07:58:45.000Z | #!/usr/bin/env python
from __future__ import absolute_import
from core import collect
def main():
collect.collect("ripe", user_parameters={
"ok": ["TOTAL OK:", lambda l: collect.get_int_from_string(l)],
"some": ["TOTAL SOME:", lambda l: collect.get_int_from_string(l)],
"fa... | 37.533333 | 84 | 0.623446 | 75 | 563 | 4.4 | 0.36 | 0.106061 | 0.212121 | 0.257576 | 0.469697 | 0.469697 | 0.469697 | 0.469697 | 0 | 0 | 0 | 0 | 0.222025 | 563 | 14 | 85 | 40.214286 | 0.753425 | 0.035524 | 0 | 0 | 0 | 0 | 0.154982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.2 | 0 | 0.3 | 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 |
81834b6a4afb3439f8b312cbfee4d71b51be9ace | 1,123 | py | Python | StandAloneTools/scannerPingTest.py | DICtools/CaptuRPi | 2942b9d957464b0ca154080b5e31b98baa1c853d | [
"Apache-2.0"
] | 4 | 2021-03-23T00:06:34.000Z | 2022-01-22T18:34:53.000Z | StandAloneTools/scannerPingTest.py | DICtools/CaptuRPi | 2942b9d957464b0ca154080b5e31b98baa1c853d | [
"Apache-2.0"
] | 1 | 2020-01-13T14:59:54.000Z | 2021-09-29T11:09:21.000Z | StandAloneTools/scannerPingTest.py | DICtools/CaptuRPi | 2942b9d957464b0ca154080b5e31b98baa1c853d | [
"Apache-2.0"
] | 1 | 2021-02-04T17:08:02.000Z | 2021-02-04T17:08:02.000Z | #!/usr/bin/python
# import os
hostname = "192.168.0.201" #example
hosts = ['192.168.0.200','192.168.0.201','192.168.0.202', '192.168.0.203' ,'192.168.0.204','192.168.0.205','192.168.0.206','192.168.0.207', '192.168.0.208', '192.168.0.209', '192.168.0.210', '192.168.0.211', '192.168.0.212', '192.168.0.213', '192.168... | 28.794872 | 294 | 0.568121 | 172 | 1,123 | 3.69186 | 0.406977 | 0.170079 | 0.198425 | 0.031496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218009 | 0.248442 | 1,123 | 39 | 295 | 28.794872 | 0.53436 | 0.240427 | 0 | 0 | 0 | 0 | 0.303571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8185e15a8b6a72ac97cf93c79161000ca6bfa057 | 247 | py | Python | python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/hypotenuese_of_triangle_sqrt.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/hypotenuese_of_triangle_sqrt.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/hypotenuese_of_triangle_sqrt.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | from math import sqrt
print("Input the lengths of the shorter sides of the triangle")
a=float(input("enter the 1 side of the triangle"))
b=float(input("enter the 2 side of the triangle"))
c=sqrt(a**2+b**2)
print("The length of the triangle = ",c)
| 35.285714 | 63 | 0.724696 | 48 | 247 | 3.729167 | 0.4375 | 0.139665 | 0.290503 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018957 | 0.145749 | 247 | 6 | 64 | 41.166667 | 0.829384 | 0 | 0 | 0 | 0 | 0 | 0.595142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
81a38a2e4c513dd861faed103e7679ac3cc1599a | 19 | py | Python | ciaomuloni/__init__.py | michelepagot/ciaomuloni | 8f7c2187d223bb3d26aeeafe180d39841094d1ad | [
"MIT"
] | null | null | null | ciaomuloni/__init__.py | michelepagot/ciaomuloni | 8f7c2187d223bb3d26aeeafe180d39841094d1ad | [
"MIT"
] | null | null | null | ciaomuloni/__init__.py | michelepagot/ciaomuloni | 8f7c2187d223bb3d26aeeafe180d39841094d1ad | [
"MIT"
] | null | null | null | name = "ciaomuloni" | 19 | 19 | 0.736842 | 2 | 19 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 19 | 1 | 19 | 19 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 |
81b4347fdc2d9cf8ca0a37dad66cd99c84a50082 | 151 | py | Python | python全栈/day05/乘法表.py | Ringo-li/python_exercise_100 | 2c6c42b84a88ffbbac30c67ffbd7bad3418eda14 | [
"MIT"
] | null | null | null | python全栈/day05/乘法表.py | Ringo-li/python_exercise_100 | 2c6c42b84a88ffbbac30c67ffbd7bad3418eda14 | [
"MIT"
] | null | null | null | python全栈/day05/乘法表.py | Ringo-li/python_exercise_100 | 2c6c42b84a88ffbbac30c67ffbd7bad3418eda14 | [
"MIT"
] | null | null | null | i = 1
while i <= 9:
j = 1
while j <= i:
print("{}x{}={}\t".format(j, i, i * j), end='')
j += 1
print()
i += 1 | 18.875 | 56 | 0.311258 | 24 | 151 | 1.958333 | 0.416667 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0.450331 | 151 | 8 | 57 | 18.875 | 0.506024 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
81b47fed1746c7c5f00415117c122b580d14ad56 | 1,400 | py | Python | data/models.py | Czahrien/temperature-tracker | 7238535536dc864a2e81c9267877a964bef54c20 | [
"MIT"
] | null | null | null | data/models.py | Czahrien/temperature-tracker | 7238535536dc864a2e81c9267877a964bef54c20 | [
"MIT"
] | 6 | 2020-02-12T01:24:31.000Z | 2021-06-10T18:43:57.000Z | data/models.py | Czahrien/temperature-tracker | 7238535536dc864a2e81c9267877a964bef54c20 | [
"MIT"
] | null | null | null | from django.db import models
class Email(models.Model):
email = models.EmailField()
name = models.CharField(max_length=30)
def __str__(self):
return '%s (%s)' % (self.email, self.name)
class MailingList(models.Model):
name = models.CharField(max_length=30)
description = models.CharField(m... | 30.434783 | 106 | 0.668571 | 171 | 1,400 | 5.292398 | 0.345029 | 0.066298 | 0.099448 | 0.132597 | 0.330387 | 0.301657 | 0.048619 | 0 | 0 | 0 | 0 | 0.010601 | 0.191429 | 1,400 | 45 | 107 | 31.111111 | 0.788869 | 0 | 0 | 0.272727 | 0 | 0 | 0.055714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.030303 | 0.030303 | 0.181818 | 0.939394 | 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 |
81bceaf55ae0efa76193e528f1c68e8639f1d5e4 | 3,657 | py | Python | test.py | QC-SciLab/HepTrkX-quantum | ff6638fc2883781245f5e6f0d875a5fef1dc90b6 | [
"MIT"
] | 11 | 2019-10-08T10:56:59.000Z | 2022-02-22T03:46:06.000Z | test.py | QC-SciLab/HepTrkX-quantum | ff6638fc2883781245f5e6f0d875a5fef1dc90b6 | [
"MIT"
] | 1 | 2019-10-06T05:38:26.000Z | 2019-10-06T05:38:26.000Z | test.py | QC-SciLab/HepTrkX-quantum | ff6638fc2883781245f5e6f0d875a5fef1dc90b6 | [
"MIT"
] | 7 | 2019-09-19T12:14:11.000Z | 2021-04-22T10:20:25.000Z | import sys,os,time
sys.path.append(os.path.abspath(os.path.join('.')))
import numpy as np
from sklearn import metrics
from tools import *
import tensorflow as tf
def test_validation(config,network):
t_start = time.time()
n_testing = config['n_valid']
print('Starting testing the validation set with ' + str(n_test... | 38.494737 | 194 | 0.672683 | 569 | 3,657 | 4.182777 | 0.212654 | 0.030252 | 0.013445 | 0.020168 | 0.731933 | 0.731933 | 0.731933 | 0.697479 | 0.643697 | 0.627731 | 0 | 0.018752 | 0.154225 | 3,657 | 94 | 195 | 38.904255 | 0.750727 | 0.097894 | 0 | 0.535714 | 0 | 0.053571 | 0.148787 | 0.007663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.089286 | 0 | 0.125 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
81df1a657e99202b0b9f192ba445feda6e5f538e | 9,818 | py | Python | code/plot_table_and_figure.py | leokan92/Contextual-bandit-Resnet-trading | 57fa89b01ba99999b132161efa0eb16b5c32ecf8 | [
"MIT"
] | null | null | null | code/plot_table_and_figure.py | leokan92/Contextual-bandit-Resnet-trading | 57fa89b01ba99999b132161efa0eb16b5c32ecf8 | [
"MIT"
] | null | null | null | code/plot_table_and_figure.py | leokan92/Contextual-bandit-Resnet-trading | 57fa89b01ba99999b132161efa0eb16b5c32ecf8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 4 20:39:32 2022
@author: leona
"""
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import settings
import os
path = settings.RESULTS_DIR
##########################################
#Plotting results for on... | 47.429952 | 178 | 0.653392 | 1,513 | 9,818 | 4.005948 | 0.14805 | 0.060881 | 0.051147 | 0.069296 | 0.725953 | 0.716713 | 0.716713 | 0.676951 | 0.644448 | 0.626629 | 0 | 0.019253 | 0.105928 | 9,818 | 207 | 179 | 47.429952 | 0.671224 | 0.041149 | 0 | 0.408805 | 0 | 0.006289 | 0.150778 | 0.039328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.081761 | 0 | 0.132075 | 0.006289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c49ae02b782cdda34dbb4145d01ea0dd2101cdf8 | 172 | py | Python | bot/urls.py | dharmagetic/telegram_geo_guess_bot | 9a7bec5e2db512385c545ffc38d58fd087da4c2e | [
"MIT"
] | null | null | null | bot/urls.py | dharmagetic/telegram_geo_guess_bot | 9a7bec5e2db512385c545ffc38d58fd087da4c2e | [
"MIT"
] | 2 | 2020-06-05T17:48:08.000Z | 2021-06-10T19:37:08.000Z | bot/urls.py | dharmagetic/telegram_geo_guess_bot | 9a7bec5e2db512385c545ffc38d58fd087da4c2e | [
"MIT"
] | null | null | null | from django.conf.urls import url
from bot.views import CommandReceiveView
urlpatterns = [
url(r'^(?P<bot_token>.+)$', CommandReceiveView.as_view(), name='command'),
] | 24.571429 | 78 | 0.72093 | 22 | 172 | 5.545455 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 172 | 7 | 79 | 24.571429 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0.150289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c49b458a87eb302d8bf6a940a2dfd8a358a68a8b | 439 | py | Python | pyinfra/facts/gem.py | vindarel/pyinfra | 863f5bc727d7cc6e0bc721e8dbb2a32c7236efa5 | [
"MIT"
] | null | null | null | pyinfra/facts/gem.py | vindarel/pyinfra | 863f5bc727d7cc6e0bc721e8dbb2a32c7236efa5 | [
"MIT"
] | null | null | null | pyinfra/facts/gem.py | vindarel/pyinfra | 863f5bc727d7cc6e0bc721e8dbb2a32c7236efa5 | [
"MIT"
] | null | null | null | from pyinfra.api import FactBase
from .util.packaging import parse_packages
GEM_REGEX = r'^([a-zA-Z0-9\-\+\_]+)\s\(([0-9\.]+)\)$'
class GemPackages(FactBase):
'''
Returns a dict of installed gem packages:
.. code:: python
'package_name': ['version'],
...
'''
command = 'gem lis... | 19.086957 | 53 | 0.594533 | 53 | 439 | 4.811321 | 0.735849 | 0.101961 | 0.12549 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01194 | 0.236902 | 439 | 22 | 54 | 19.954545 | 0.749254 | 0.230068 | 0 | 0 | 0 | 0 | 0.2 | 0.122581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c4a0c231885c9fee7a300569a011c34d7104fd70 | 162 | py | Python | Python/Lektion1/BuzzerModuleUsage.py | fm85/JoyPiExamples | bbc61f46f442c7486fbded303e9d7ab3e7e2dd71 | [
"MIT"
] | null | null | null | Python/Lektion1/BuzzerModuleUsage.py | fm85/JoyPiExamples | bbc61f46f442c7486fbded303e9d7ab3e7e2dd71 | [
"MIT"
] | null | null | null | Python/Lektion1/BuzzerModuleUsage.py | fm85/JoyPiExamples | bbc61f46f442c7486fbded303e9d7ab3e7e2dd71 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import BuzzerGpioOutputExample as Buzzer
Buzzer.initGPIO()
Buzzer.switchOn()
Buzzer.time.sleep(1)
Buzzer.switchOff()
Buzzer.cleanupGPIO()
| 18 | 40 | 0.796296 | 20 | 162 | 6.45 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.074074 | 162 | 8 | 41 | 20.25 | 0.846667 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
c4a7df710923f6b0d05cde15e44f332ac3ab03ab | 251 | py | Python | unit 7/exc. 7.1.4.py | AviKalPython/self.py | 44f8de33797a9ea28bbd1e01006920ba7c818b97 | [
"MIT"
] | null | null | null | unit 7/exc. 7.1.4.py | AviKalPython/self.py | 44f8de33797a9ea28bbd1e01006920ba7c818b97 | [
"MIT"
] | null | null | null | unit 7/exc. 7.1.4.py | AviKalPython/self.py | 44f8de33797a9ea28bbd1e01006920ba7c818b97 | [
"MIT"
] | null | null | null | # exc. 7.1.4
def squared_numbers(start, stop):
while start <= stop:
print(start**2)
start += 1
def main():
start = -3
stop = 3
squared_numbers(start, stop)
if __name__ == "__main__":
main() | 17.928571 | 34 | 0.50996 | 31 | 251 | 3.806452 | 0.516129 | 0.228814 | 0.322034 | 0.389831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.358566 | 251 | 14 | 35 | 17.928571 | 0.689441 | 0.039841 | 0 | 0 | 0 | 0 | 0.035242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.1 | 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 |
c4b4a0376270f2502e17d2a34b1aa54c4a2dce9c | 3,805 | py | Python | pyflight/models/route.py | ageitgey/pyflight | 3d1624e1455e98b011ccaba1510da818f46a6e1d | [
"MIT"
] | 4 | 2018-01-19T07:24:25.000Z | 2021-05-01T04:45:36.000Z | pyflight/models/route.py | ageitgey/pyflight | 3d1624e1455e98b011ccaba1510da818f46a6e1d | [
"MIT"
] | null | null | null | pyflight/models/route.py | ageitgey/pyflight | 3d1624e1455e98b011ccaba1510da818f46a6e1d | [
"MIT"
] | 2 | 2018-04-02T04:10:35.000Z | 2019-08-13T13:51:26.000Z | """
Contains the Route class which
represents a traveller's intent
as well as a low-fare search
about an itinerary between two points.
"""
from .segment import Segment
class Route(object):
r"""Represents the traveller's intent as well as a low-fare
search about an itinerary between two points.
In the Re... | 28.185185 | 76 | 0.558476 | 458 | 3,805 | 4.574236 | 0.187773 | 0.095465 | 0.099284 | 0.13747 | 0.697852 | 0.697852 | 0.672076 | 0.672076 | 0.672076 | 0.656325 | 0 | 0 | 0.310644 | 3,805 | 134 | 77 | 28.395522 | 0.798704 | 0.654665 | 0 | 0 | 0 | 0 | 0.036861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.038462 | 0 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c4c0cb2bca584719d3ee22a2ff3afeb90ba45753 | 309 | py | Python | brownie/typing.py | acolytec3/brownie | e00e1f26f5b05e963fe50ffe198634c9e8876589 | [
"MIT"
] | null | null | null | brownie/typing.py | acolytec3/brownie | e00e1f26f5b05e963fe50ffe198634c9e8876589 | [
"MIT"
] | null | null | null | brownie/typing.py | acolytec3/brownie | e00e1f26f5b05e963fe50ffe198634c9e8876589 | [
"MIT"
] | null | null | null | from typing import TypeVar
from brownie.network.account import Accounts
from brownie.network.transaction import TransactionReceipt
# NETWORK
# Account
AccountsType = TypeVar("AccountsType", bound=Accounts)
# Transactions
TransactionReceiptType = TypeVar("TransactionReceiptType", bound=TransactionReceipt)
| 25.75 | 84 | 0.838188 | 29 | 309 | 8.931034 | 0.482759 | 0.084942 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093851 | 309 | 11 | 85 | 28.090909 | 0.925 | 0.090615 | 0 | 0 | 0 | 0 | 0.122744 | 0.079422 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 |
c4d84388d91d20ffa890fad004bbcf2d23d01a00 | 339 | py | Python | test.py | Doddj/test-repo | 15d1d9dbf57e26c7e3bd7e16ff4a0a0db095b51c | [
"MIT"
] | null | null | null | test.py | Doddj/test-repo | 15d1d9dbf57e26c7e3bd7e16ff4a0a0db095b51c | [
"MIT"
] | null | null | null | test.py | Doddj/test-repo | 15d1d9dbf57e26c7e3bd7e16ff4a0a0db095b51c | [
"MIT"
] | null | null | null | # Important class
class ImportantClass:
def __init__(self, var):
# Instance variable
self.var = var
# Important function
def importantFunction(self, old_var, new_var):
return old_var + new_var
# Make users happy
def makeUsersHappy(self, users):
... | 22.6 | 50 | 0.60177 | 36 | 339 | 5.444444 | 0.555556 | 0.071429 | 0.091837 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321534 | 339 | 15 | 51 | 22.6 | 0.852174 | 0.20354 | 0 | 0 | 0 | 0 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.285714 | 0.142857 | 1 | 0.142857 | 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 |
f205b4d663f8b398c1c63f9bec89aceb401d4e63 | 14,034 | py | Python | src/main/python/systemds/operator/nodes/matrix.py | Shafaq-Siddiqi/systemml | eca11c6fe9cff88df2e1960caf1b0cff9bf2b2b6 | [
"Apache-2.0"
] | null | null | null | src/main/python/systemds/operator/nodes/matrix.py | Shafaq-Siddiqi/systemml | eca11c6fe9cff88df2e1960caf1b0cff9bf2b2b6 | [
"Apache-2.0"
] | null | null | null | src/main/python/systemds/operator/nodes/matrix.py | Shafaq-Siddiqi/systemml | eca11c6fe9cff88df2e1960caf1b0cff9bf2b2b6 | [
"Apache-2.0"
] | null | null | null | # -------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you unde... | 38.767956 | 133 | 0.628759 | 1,691 | 14,034 | 5.027203 | 0.18628 | 0.088931 | 0.090578 | 0.109517 | 0.507587 | 0.468768 | 0.450182 | 0.437831 | 0.427479 | 0.380779 | 0 | 0.002659 | 0.249608 | 14,034 | 362 | 133 | 38.767956 | 0.804577 | 0.26393 | 0 | 0.115607 | 0 | 0.017341 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 1 | 0.306358 | false | 0.011561 | 0.052023 | 0.144509 | 0.705202 | 0.00578 | 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 |
f2107a30cee5e244b31054b8987216f57e27bdb2 | 1,470 | py | Python | heimdall_valid_bank/base_validate_error.py | leogregianin/heimdall | fbbd2c2251278221d78868c7dcd1e0292c98822b | [
"MIT"
] | 8 | 2021-01-12T20:55:06.000Z | 2021-11-09T11:23:04.000Z | heimdall_bank_validate/base_validate_error.py | thaisribeiro/heimdall | b787c7b3e5b0be8ad2ff5fd9af96aeefef6ef49b | [
"MIT"
] | null | null | null | heimdall_bank_validate/base_validate_error.py | thaisribeiro/heimdall | b787c7b3e5b0be8ad2ff5fd9af96aeefef6ef49b | [
"MIT"
] | 1 | 2021-01-25T13:01:48.000Z | 2021-01-25T13:01:48.000Z | class InvalidAgencyNumber(Exception):
def __init__(self, agency_number=None):
self.message = 'Agência inválida.'
if agency_number is not None:
self.message = f'A agência deve conter {agency_number} números. Complete com zeros a esquerda se necessário.'
super().__init__(self.mes... | 28.823529 | 128 | 0.672789 | 173 | 1,470 | 5.32948 | 0.265896 | 0.20282 | 0.086768 | 0.10846 | 0.535792 | 0.535792 | 0.468547 | 0.468547 | 0.407809 | 0.407809 | 0 | 0 | 0.227891 | 1,470 | 50 | 129 | 29.4 | 0.812335 | 0 | 0 | 0.5 | 0 | 0 | 0.272109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.147059 | 0.588235 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f220d49e96f107fb5195386562964a48d926577d | 209 | py | Python | qpylib/__init__.py | FrancisMcNameeIBM/qpylib | 13067866807b107ef63243a11c13870db109f9b0 | [
"Apache-2.0"
] | 18 | 2019-03-19T14:15:54.000Z | 2021-11-08T10:30:27.000Z | qpylib/__init__.py | FrancisMcNameeIBM/qpylib | 13067866807b107ef63243a11c13870db109f9b0 | [
"Apache-2.0"
] | 18 | 2019-03-20T16:17:03.000Z | 2022-03-21T11:09:35.000Z | qpylib/__init__.py | FrancisMcNameeIBM/qpylib | 13067866807b107ef63243a11c13870db109f9b0 | [
"Apache-2.0"
] | 25 | 2019-03-19T14:41:18.000Z | 2022-03-18T08:09:19.000Z | # Copyright 2019 IBM Corporation All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
__author__ = 'IBM'
__version__ = 'unknown'
try:
from .version import __version__
except ImportError:
pass
| 19 | 53 | 0.746411 | 25 | 209 | 5.76 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.167464 | 209 | 10 | 54 | 20.9 | 0.793103 | 0.416268 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
1ee7d777cda8d31ada04834b8bc99db6a3711acb | 62 | py | Python | autokey/.config/autokey/data/TouchCursor/02 QWERTY/05 - T Tilde.py | zdog234/touchcursor-x11 | 4d5cb6417c6bb6a2e10976ac5f9579a98ce96421 | [
"MIT"
] | 8 | 2017-09-27T21:12:52.000Z | 2021-06-16T14:08:43.000Z | autokey/.config/autokey/data/TouchCursor/02 QWERTY/05 - T Tilde.py | zdog234/touchcursor-x11 | 4d5cb6417c6bb6a2e10976ac5f9579a98ce96421 | [
"MIT"
] | null | null | null | autokey/.config/autokey/data/TouchCursor/02 QWERTY/05 - T Tilde.py | zdog234/touchcursor-x11 | 4d5cb6417c6bb6a2e10976ac5f9579a98ce96421 | [
"MIT"
] | 1 | 2018-02-19T19:00:18.000Z | 2018-02-19T19:00:18.000Z | engine.run_script('init-touchcursor')
keyboard.send_keys('~')
| 20.666667 | 37 | 0.774194 | 8 | 62 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 62 | 2 | 38 | 31 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
481b6ac8d316efdf302b4174a7edfde2f60062c9 | 317 | py | Python | PythonExe/ex030.py | ScnMatheus/my-python-projects | 9cc3511dd6e25d9b16429347598c105f15bd6916 | [
"MIT"
] | null | null | null | PythonExe/ex030.py | ScnMatheus/my-python-projects | 9cc3511dd6e25d9b16429347598c105f15bd6916 | [
"MIT"
] | null | null | null | PythonExe/ex030.py | ScnMatheus/my-python-projects | 9cc3511dd6e25d9b16429347598c105f15bd6916 | [
"MIT"
] | null | null | null | #Crie um programa que leia um número inteiro e diga se é par ou impar
from time import sleep
num = int(input('Digite um número: '))
if num % 2 == 0:
print('ANALISANDO...')
sleep(2)
print('O número é par!')
else:
print('ANALISANDO...')
sleep(2)
print('O número é impar')
print('======FIM=====') | 26.416667 | 69 | 0.608833 | 50 | 317 | 3.86 | 0.6 | 0.082902 | 0.207254 | 0.217617 | 0.352332 | 0.352332 | 0.352332 | 0.352332 | 0 | 0 | 0 | 0.016064 | 0.214511 | 317 | 12 | 70 | 26.416667 | 0.759036 | 0.214511 | 0 | 0.363636 | 0 | 0 | 0.35743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 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 |
483670921befd2f71314843e8fa176046b923c86 | 472 | py | Python | chatbot/model/message.py | aminzai/linebot | 3b0805a710ce11e4cd3afb76859c3be9c18a9d91 | [
"BSD-3-Clause"
] | 1 | 2018-05-14T13:08:12.000Z | 2018-05-14T13:08:12.000Z | chatbot/model/message.py | aminzai/linebot | 3b0805a710ce11e4cd3afb76859c3be9c18a9d91 | [
"BSD-3-Clause"
] | null | null | null | chatbot/model/message.py | aminzai/linebot | 3b0805a710ce11e4cd3afb76859c3be9c18a9d91 | [
"BSD-3-Clause"
] | null | null | null | from chatbot.model import Base
from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy import DateTime
class Message(Base):
__tablename__ = 'messages'
idx = Column(Integer, primary_key=True)
id = Column(String)
uid = Column(Integer)
text = Colum... | 22.47619 | 43 | 0.71822 | 56 | 472 | 5.964286 | 0.446429 | 0.179641 | 0.239521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205508 | 472 | 20 | 44 | 23.6 | 0.890667 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 1 | 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 |
485807bc30069053947937a39abd417b4bbda7b5 | 563 | py | Python | partay/config.py | thomasleese/partay | bc256a07877a464c074f00dec53f480f97944983 | [
"MIT"
] | null | null | null | partay/config.py | thomasleese/partay | bc256a07877a464c074f00dec53f480f97944983 | [
"MIT"
] | null | null | null | partay/config.py | thomasleese/partay | bc256a07877a464c074f00dec53f480f97944983 | [
"MIT"
] | null | null | null | """Config related classes and functions."""
from collections import UserDict
import yaml
class Config(UserDict):
def __init__(self, filename):
with open(filename) as file:
self.data = yaml.safe_load(file.read())
@property
def genius_api_key(self):
return self['genius']['api... | 19.413793 | 51 | 0.641208 | 66 | 563 | 5.19697 | 0.545455 | 0.09621 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22913 | 563 | 28 | 52 | 20.107143 | 0.790323 | 0.065719 | 0 | 0.176471 | 0 | 0 | 0.113462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.176471 | 0.588235 | 0.058824 | 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 |
486582042db804fe01696f6c6cd445a24a09a8ab | 202 | py | Python | health/blog/admin.py | TimothyAgevi/Team-213-A | 6193140223089a7017229c3ef3b4181ce961cf32 | [
"MIT"
] | null | null | null | health/blog/admin.py | TimothyAgevi/Team-213-A | 6193140223089a7017229c3ef3b4181ce961cf32 | [
"MIT"
] | null | null | null | health/blog/admin.py | TimothyAgevi/Team-213-A | 6193140223089a7017229c3ef3b4181ce961cf32 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Blog
# Register your models here.
admin.site.site_header ='Community Health Admin' #changes the header of the admin page
admin.site.register(Blog)
| 25.25 | 86 | 0.79703 | 31 | 202 | 5.16129 | 0.580645 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133663 | 202 | 7 | 87 | 28.857143 | 0.914286 | 0.306931 | 0 | 0 | 0 | 0 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 |
4883db763af5d22b45211dc10a2715c849ebcdba | 388 | py | Python | rest_jwt_permission/scopes/base.py | chessbr/rest-api-permission | 2a260224606daf792b97af60f925055c394c4d79 | [
"MIT"
] | 13 | 2017-11-01T18:49:45.000Z | 2021-02-03T09:08:29.000Z | rest_jwt_permission/scopes/base.py | chessbr/rest-api-permission | 2a260224606daf792b97af60f925055c394c4d79 | [
"MIT"
] | 17 | 2017-10-29T16:06:17.000Z | 2021-06-10T18:13:11.000Z | rest_jwt_permission/scopes/base.py | chessbr/rest-api-permission | 2a260224606daf792b97af60f925055c394c4d79 | [
"MIT"
] | 2 | 2018-03-07T10:46:47.000Z | 2022-01-10T14:09:39.000Z | # -*- coding: utf-8 -*-
class Scope(object):
"""
A base scope.
This indicates a permission access.
The `identifier` should be unique.
"""
identifier = None
def __init__(self, identifier):
self.identifier = identifier
def get_description(self):
return None
def __s... | 19.4 | 55 | 0.610825 | 43 | 388 | 5.302326 | 0.604651 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.273196 | 388 | 19 | 56 | 20.421053 | 0.804965 | 0.275773 | 0 | 0 | 0 | 0 | 0.054475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6f8a74aeca0839aaeb8fdccc0d87ddc1c3daf9a3 | 1,071 | py | Python | ensembler/aggregators/__init__.py | brandongk-ubco/ensembler | 9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d | [
"MIT"
] | null | null | null | ensembler/aggregators/__init__.py | brandongk-ubco/ensembler | 9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d | [
"MIT"
] | null | null | null | ensembler/aggregators/__init__.py | brandongk-ubco/ensembler | 9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d | [
"MIT"
] | null | null | null | import torch
def harmonize_batch(y_hat,
y,
reduction=lambda y_hat: 1 - torch.prod(1 - y_hat, dim=0),
activation=torch.nn.Softmax2d()):
assert torch.max(y_hat) >= 0
assert torch.max(y_hat) <= 1
assert torch.max(y) >= 0
assert torch.max(y) <= ... | 28.945946 | 77 | 0.448179 | 159 | 1,071 | 2.899371 | 0.150943 | 0.156182 | 0.24295 | 0.260304 | 0.403471 | 0.403471 | 0.303688 | 0.303688 | 0.303688 | 0.303688 | 0 | 0.051248 | 0.289449 | 1,071 | 36 | 78 | 29.75 | 0.554534 | 0 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 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 |
6f914570a7bafed29457757d9370867f72b62601 | 1,047 | py | Python | tests/unit/project/libs/shared/infrastructure/test_mongodb_utils.py | ticdenis/python-skeleton | cb1dc68fa4453709545af4072775aeb373d20df8 | [
"MIT"
] | 2 | 2020-08-14T21:01:22.000Z | 2021-02-03T12:04:39.000Z | tests/unit/project/libs/shared/infrastructure/test_mongodb_utils.py | ticdenis/python-skeleton | cb1dc68fa4453709545af4072775aeb373d20df8 | [
"MIT"
] | null | null | null | tests/unit/project/libs/shared/infrastructure/test_mongodb_utils.py | ticdenis/python-skeleton | cb1dc68fa4453709545af4072775aeb373d20df8 | [
"MIT"
] | 1 | 2022-01-10T16:03:59.000Z | 2022-01-10T16:03:59.000Z | from typing import Any, Dict, Union, final
from aioddd import Aggregate, Id
from project.libs.shared.infrastructure.mongodb_utils import MongoDBBaseMapper
@final
class TestMongoDBBaseMapper:
@staticmethod
def test_to_documents_and_to_aggregates() -> None:
class _Aggregate(Aggregate):
_id... | 29.083333 | 87 | 0.612225 | 120 | 1,047 | 5.091667 | 0.358333 | 0.0491 | 0.026187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283668 | 1,047 | 35 | 88 | 29.914286 | 0.814667 | 0 | 0 | 0 | 0 | 0 | 0.011461 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.208333 | false | 0 | 0.125 | 0.125 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6f91b0cb3215e42eadacd438593370252d8e5ba9 | 51 | py | Python | ghu_web/ghu_main/__init__.py | humanitarians-united/hu | 7e0b180d011eaff1d45cee7470091a1ef9408d23 | [
"Apache-2.0"
] | 2 | 2017-05-08T22:45:16.000Z | 2017-09-10T12:51:51.000Z | ghu_web/ghu_main/__init__.py | global-humanitarians-unite/ghu | 7e0b180d011eaff1d45cee7470091a1ef9408d23 | [
"Apache-2.0"
] | 79 | 2017-05-08T19:46:53.000Z | 2017-12-03T03:24:35.000Z | ghu_web/ghu_main/__init__.py | humanitarians-united/hu | 7e0b180d011eaff1d45cee7470091a1ef9408d23 | [
"Apache-2.0"
] | 1 | 2017-03-16T00:11:29.000Z | 2017-03-16T00:11:29.000Z | default_app_config = 'ghu_main.apps.GhuMainConfig'
| 25.5 | 50 | 0.843137 | 7 | 51 | 5.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 51 | 1 | 51 | 51 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6fb49bcb8f015e1ea87a25c00cfd83b5cad95933 | 266 | py | Python | core/exceptions/conversion_unit_not_implemented.py | joaquinquintas/shipwell_backend_ricardo | 55de24c8c7e3a685a1dca786e5c026410d353473 | [
"MIT"
] | null | null | null | core/exceptions/conversion_unit_not_implemented.py | joaquinquintas/shipwell_backend_ricardo | 55de24c8c7e3a685a1dca786e5c026410d353473 | [
"MIT"
] | null | null | null | core/exceptions/conversion_unit_not_implemented.py | joaquinquintas/shipwell_backend_ricardo | 55de24c8c7e3a685a1dca786e5c026410d353473 | [
"MIT"
] | null | null | null | '''
core exception module
'''
class ConversionUnitNotImplemented(Exception):
'''
raises when tring can not convert a TemperatureUnit
'''
def __init__(self, unit_name: str):
super().__init__('Conversion unit %s not implemented' % unit_name)
| 22.166667 | 74 | 0.68797 | 29 | 266 | 5.965517 | 0.793103 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203008 | 266 | 11 | 75 | 24.181818 | 0.816038 | 0.274436 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6fbddb69f3c4be4db5d050e97bbe4b021e352c0a | 279 | py | Python | backend/jwt_response_payload_handler.py | crosspower/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 17 | 2019-01-23T04:37:43.000Z | 2019-10-15T01:42:31.000Z | backend/jwt_response_payload_handler.py | snickerjp/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 1 | 2019-01-23T08:04:44.000Z | 2019-01-23T08:44:33.000Z | backend/jwt_response_payload_handler.py | snickerjp/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 6 | 2019-01-23T09:10:59.000Z | 2020-12-02T04:15:41.000Z | from backend.serializers.user_model_serializer import UserModelDetailSerializer
def jwt_response_payload_handler(token, user=None, request=None):
return {
'token': token,
'user': UserModelDetailSerializer(user, context={'request':request}).data
} | 34.875 | 82 | 0.727599 | 28 | 279 | 7.071429 | 0.678571 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 279 | 8 | 83 | 34.875 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 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 | 0 | 1 | 0 | 0 | 0 | 3 |
6ff901566f3929f27b15986379f1449f360b9996 | 603 | py | Python | catalogue/migrations/0015_auto_20170308_0010.py | R-Wolf/CFD_A_library | b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9 | [
"MIT"
] | 4 | 2017-03-14T05:03:03.000Z | 2019-04-13T05:13:24.000Z | catalogue/migrations/0015_auto_20170308_0010.py | gpulkit96/CFD_A_library | b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9 | [
"MIT"
] | 1 | 2017-05-18T08:39:46.000Z | 2017-05-18T08:39:46.000Z | catalogue/migrations/0015_auto_20170308_0010.py | gpulkit96/CFD_A_library | b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9 | [
"MIT"
] | 2 | 2017-03-13T08:54:21.000Z | 2017-05-18T06:24:58.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-07 18:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0014_auto_20170307_2340'),
]
operations = [
migrations.RemoveField(
... | 21.535714 | 49 | 0.562189 | 58 | 603 | 5.637931 | 0.672414 | 0.192661 | 0.238532 | 0.275229 | 0.348624 | 0.348624 | 0 | 0 | 0 | 0 | 0 | 0.080685 | 0.321725 | 603 | 27 | 50 | 22.333333 | 0.718826 | 0.112769 | 0 | 0.45 | 1 | 0 | 0.131579 | 0.043233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 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 |
82eb5249cc54e1594f3b856354028fbbec6b4bd7 | 6,943 | py | Python | api/namex/services/name_request/auto_analyse/abstract_name_analysis_builder.py | rarmitag/namex | 1b308bf96130619d4a61d44e075cc7ab177dc6cd | [
"Apache-2.0"
] | null | null | null | api/namex/services/name_request/auto_analyse/abstract_name_analysis_builder.py | rarmitag/namex | 1b308bf96130619d4a61d44e075cc7ab177dc6cd | [
"Apache-2.0"
] | 2 | 2019-01-14T23:59:11.000Z | 2019-01-30T16:09:16.000Z | api/namex/services/name_request/auto_analyse/abstract_name_analysis_builder.py | rarmitag/namex | 1b308bf96130619d4a61d44e075cc7ab177dc6cd | [
"Apache-2.0"
] | null | null | null | import abc
from . import ProcedureResult
from .mixins.get_synonyms_lists import GetSynonymsListsMixin
from .mixins.get_designations_lists import GetDesignationsListsMixin
from .mixins.get_word_classification_lists import GetWordClassificationListsMixin
class AbstractNameAnalysisBuilder(GetSynonymsListsMixin, GetDes... | 33.541063 | 182 | 0.739018 | 818 | 6,943 | 6.028117 | 0.195599 | 0.110728 | 0.054756 | 0.076049 | 0.593592 | 0.501115 | 0.467451 | 0.456094 | 0.429325 | 0.429325 | 0 | 0 | 0.203802 | 6,943 | 206 | 183 | 33.703884 | 0.892004 | 0.133516 | 0 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0 | 1 | 0.302326 | false | 0 | 0.05814 | 0.232558 | 0.616279 | 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 |
82f9e14c1417ce615006e8a66a83e0a10dda430e | 465 | py | Python | iris_sdk/models/data/import_tn_checker_list.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/import_tn_checker_list.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/import_tn_checker_list.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData, BaseResourceSimpleList
from iris_sdk.models.maps.import_tn_checker_list import TnListMap
class TelephoneNumbers(TnListMap, BaseData):
@property
def items(self):
return self.telephone_number.items
def __init__(self):
... | 27.352941 | 74 | 0.76129 | 57 | 465 | 5.947368 | 0.54386 | 0.115044 | 0.168142 | 0.100295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15914 | 465 | 16 | 75 | 29.0625 | 0.867008 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 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 |
82fa2d7fa46b27dc1f89738b3333cc8dcf9be2b9 | 161 | py | Python | dvc/output/gs.py | Abrosimov-a-a/dvc | 93280c937b9160003afb0d2f3fd473c03d6d9673 | [
"Apache-2.0"
] | null | null | null | dvc/output/gs.py | Abrosimov-a-a/dvc | 93280c937b9160003afb0d2f3fd473c03d6d9673 | [
"Apache-2.0"
] | null | null | null | dvc/output/gs.py | Abrosimov-a-a/dvc | 93280c937b9160003afb0d2f3fd473c03d6d9673 | [
"Apache-2.0"
] | 1 | 2019-12-01T07:43:48.000Z | 2019-12-01T07:43:48.000Z | from __future__ import unicode_literals
from dvc.output.s3 import OutputS3
from dvc.remote.gs import RemoteGS
class OutputGS(OutputS3):
REMOTE = RemoteGS
| 17.888889 | 39 | 0.801242 | 22 | 161 | 5.636364 | 0.636364 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0.149068 | 161 | 8 | 40 | 20.125 | 0.883212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 |
d205077de599d7e971e9b17d988d3058ce1bd586 | 3,854 | py | Python | src/vector.py | MelroLeandro/pythonMCG | 7aaf9727fe90965481f1e45b219a766cfe942325 | [
"MIT"
] | null | null | null | src/vector.py | MelroLeandro/pythonMCG | 7aaf9727fe90965481f1e45b219a766cfe942325 | [
"MIT"
] | null | null | null | src/vector.py | MelroLeandro/pythonMCG | 7aaf9727fe90965481f1e45b219a766cfe942325 | [
"MIT"
] | null | null | null | """
Implements mainly the Vector class. See its documentation.
"""
class VectorError(Exception):
"""
An exception to use with Vector
"""
def __init__(self, msg):
self.msg = msg
def __str__(self):
return repr(self.value)
class Vector(tuple):
"""
A vector.
"""
def __... | 26.763889 | 109 | 0.51946 | 479 | 3,854 | 3.970772 | 0.256785 | 0.123028 | 0.070978 | 0.079916 | 0.474763 | 0.45163 | 0.361199 | 0.317035 | 0.225026 | 0.225026 | 0 | 0.008703 | 0.344058 | 3,854 | 143 | 110 | 26.951049 | 0.743671 | 0.123768 | 0 | 0.175 | 0 | 0 | 0.085549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0 | 0.125 | 0.675 | 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 |
d21a678522c06df4d334f6384361206e46071a1e | 250 | py | Python | servicos/urls.py | tiagocordeiro/estudio-abc | 1f48d785063717ddc3b17b32df342b9eec7dbd32 | [
"MIT"
] | null | null | null | servicos/urls.py | tiagocordeiro/estudio-abc | 1f48d785063717ddc3b17b32df342b9eec7dbd32 | [
"MIT"
] | 435 | 2018-07-26T16:42:24.000Z | 2022-03-28T20:11:05.000Z | servicos/urls.py | tiagocordeiro/estudio-abc | 1f48d785063717ddc3b17b32df342b9eec7dbd32 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('dashboard/servicos/', views.servicos_list, name='servicos_list'),
path('dashboard/servicos/upload/fotolito/', views.fotolito_upload,
name='upload_fotolito'),
]
| 25 | 75 | 0.72 | 29 | 250 | 6.068966 | 0.448276 | 0.147727 | 0.238636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148 | 250 | 9 | 76 | 27.777778 | 0.826291 | 0 | 0 | 0 | 0 | 0 | 0.328 | 0.14 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
d244a3ecdecc8858fbf2c55a8a66b2b3d798f44f | 242 | py | Python | app/__init__.py | Keqing84/unzip-bot | 5bed2dd0996b50dddb13b85f37e06ed19cd36d51 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | Keqing84/unzip-bot | 5bed2dd0996b50dddb13b85f37e06ed19cd36d51 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | Keqing84/unzip-bot | 5bed2dd0996b50dddb13b85f37e06ed19cd36d51 | [
"Apache-2.0"
] | null | null | null | from os import environ as env
from Config import Config
AUTH_USERS = []
if " " in Config.AUTH_USER:
achat = Config.AUTH_USER
achat.split(" ")
else:
achat = Config.AUTH_USER
for ID in achat:
AUTH_USERS.append(int(ID))
| 18.615385 | 31 | 0.669421 | 37 | 242 | 4.243243 | 0.513514 | 0.254777 | 0.267516 | 0.242038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235537 | 242 | 12 | 32 | 20.166667 | 0.848649 | 0 | 0 | 0.2 | 0 | 0 | 0.008264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
d24d1d4b7217041e9bea4a5f5e18a5cec1df6ad7 | 1,443 | py | Python | dlcli/api/links.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2017-12-06T11:07:48.000Z | 2017-12-06T11:07:48.000Z | dlcli/api/links.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2020-02-22T20:29:15.000Z | 2020-02-22T20:29:15.000Z | dlcli/api/links.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | null | null | null | import logging
import utils
import json
from wrapper import *
logger = logging.getLogger(__name__)
# noinspection PyUnusedLocal
def get_links(url='', org='', account='', key='', timeout=60, **kwargs):
return get(utils.build_api_url(url, org, account,
endpoint='links'),
... | 39 | 88 | 0.593209 | 156 | 1,443 | 5.320513 | 0.25641 | 0.057831 | 0.125301 | 0.077108 | 0.661446 | 0.661446 | 0.63253 | 0.63253 | 0.63253 | 0.63253 | 0 | 0.007394 | 0.250173 | 1,443 | 36 | 89 | 40.083333 | 0.759704 | 0.074151 | 0 | 0.347826 | 0 | 0 | 0.079639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0.130435 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d2734fdfbe83dc2459c693a426269b88a2e79da1 | 26 | py | Python | src/constants/confirmation_constants.py | Kevingislason/bitcoin_hardware_wallet_ui | 226983546c7c8838ca8bc72accdd6adbd8013446 | [
"MIT"
] | null | null | null | src/constants/confirmation_constants.py | Kevingislason/bitcoin_hardware_wallet_ui | 226983546c7c8838ca8bc72accdd6adbd8013446 | [
"MIT"
] | 5 | 2021-06-02T03:21:46.000Z | 2022-03-12T00:55:35.000Z | src/constants/confirmation_constants.py | Kevingislason/abacus_wallet_bridge | 226983546c7c8838ca8bc72accdd6adbd8013446 | [
"MIT"
] | null | null | null | MINIMUM_CONFIRMATIONS = 6
| 13 | 25 | 0.846154 | 3 | 26 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.115385 | 26 | 1 | 26 | 26 | 0.869565 | 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 |
d2754ba6e31d1afedac30456b0a9ab7171f74775 | 266 | py | Python | ajax_filtered_fields/urls.py | schizo99/django-ajax-filtered-fields | b110a56d2960ae02fa0d20de7a6e9eea037c9495 | [
"MIT"
] | 1 | 2018-09-20T12:37:36.000Z | 2018-09-20T12:37:36.000Z | ajax_filtered_fields/urls.py | schizo99/django-ajax-filtered-fields | b110a56d2960ae02fa0d20de7a6e9eea037c9495 | [
"MIT"
] | null | null | null | ajax_filtered_fields/urls.py | schizo99/django-ajax-filtered-fields | b110a56d2960ae02fa0d20de7a6e9eea037c9495 | [
"MIT"
] | 1 | 2018-09-20T12:37:21.000Z | 2018-09-20T12:37:21.000Z | from django.conf.urls import url
from ajax_filtered_fields import settings
from ajax_filtered_fields.views import json_index
if settings.AUTH_DECORATOR:
json_index = settings.AUTH_DECORATOR(json_index)
urlpatterns = [
url(r'^json_index/$', json_index),
]
| 22.166667 | 52 | 0.793233 | 38 | 266 | 5.263158 | 0.473684 | 0.225 | 0.16 | 0.22 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 266 | 11 | 53 | 24.181818 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.048872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
962e449b8a3bac16e9a91896c5a733e3cb931d8b | 1,895 | py | Python | neuralNetwork.py | firvain/phaetons | 0f32d0b83fbc2e14b4106e0a04ad39950229ff84 | [
"MIT"
] | null | null | null | neuralNetwork.py | firvain/phaetons | 0f32d0b83fbc2e14b4106e0a04ad39950229ff84 | [
"MIT"
] | 5 | 2020-05-05T11:09:13.000Z | 2022-02-10T01:41:15.000Z | neuralNetwork.py | firvain/phaetons | 0f32d0b83fbc2e14b4106e0a04ad39950229ff84 | [
"MIT"
] | 1 | 2020-11-03T04:53:16.000Z | 2020-11-03T04:53:16.000Z | import numpy as np
from neural import LSTM_WindTurbine
from neural import LSTM_PvSystem
from neural import LSTM_LedSystem
from neural import LSTM_LoadStationSystem
from neural.example import LSTM
# WIND TURBINE SYSTEM functions
def predictPw(forecastHours, visualize):
val = LSTM_WindTurbine.LSTM_RUN(
"dat... | 24.294872 | 77 | 0.737203 | 220 | 1,895 | 6.254545 | 0.231818 | 0.207849 | 0.071948 | 0.093023 | 0.380814 | 0.380814 | 0.281977 | 0.281977 | 0.281977 | 0 | 0 | 0.003841 | 0.175726 | 1,895 | 77 | 78 | 24.61039 | 0.877081 | 0.070185 | 0 | 0.2 | 0 | 0 | 0.134396 | 0.134396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.12 | 0.04 | 0.56 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.