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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1c2ab7571b81d2e3669eda467d11c7e178d3aeb | 160 | py | Python | test/test.py | simulency/Robot_Executor_Demo | 5858b2063f11c54dad4bc5e47136a605b1bff0bf | [
"MIT"
] | null | null | null | test/test.py | simulency/Robot_Executor_Demo | 5858b2063f11c54dad4bc5e47136a605b1bff0bf | [
"MIT"
] | null | null | null | test/test.py | simulency/Robot_Executor_Demo | 5858b2063f11c54dad4bc5e47136a605b1bff0bf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from requests import post
r = post(url='http://127.0.0.1:5000/testsuit',data={'userId':'Robert'})
print(r.status_code)
print(r.json()) | 22.857143 | 71 | 0.65625 | 27 | 160 | 3.851852 | 0.814815 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075862 | 0.09375 | 160 | 7 | 72 | 22.857143 | 0.641379 | 0.13125 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f1e98f8e63d1f2de137289519569d5940f30d98b | 756 | py | Python | UnityEngine/Rendering/SphericalHarmonicsL2Array/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/Rendering/SphericalHarmonicsL2Array/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | UnityEngine/Rendering/SphericalHarmonicsL2Array/__init__.py | Grim-es/udon-pie-auto-completion | c2cd86554ed615cdbbb01e19fa40665eafdfaedc | [
"MIT"
] | null | null | null | from UdonPie import System
from UdonPie import UnityEngine
from UdonPie.Undefined import *
class SphericalHarmonicsL2Array:
def __new__(cls, arg1=None):
'''
:returns: SphericalHarmonicsL2Array
:rtype: UnityEngine.SphericalHarmonicsL2Array
'''
pass
def __setitem__(self,... | 24.387097 | 53 | 0.615079 | 66 | 756 | 6.863636 | 0.409091 | 0.072848 | 0.075055 | 0.075055 | 0.15894 | 0.15894 | 0.15894 | 0.15894 | 0.15894 | 0 | 0 | 0.030476 | 0.305556 | 756 | 30 | 54 | 25.2 | 0.832381 | 0.439153 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.3 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f1eabd2c1aa84c67f4ee73ea8ac56e854ca55069 | 13 | py | Python | lnt/__init__.py | flotwig/lnt | 2f4ab3d051508801b521f5da39f0cf522c54a96e | [
"MIT"
] | 7 | 2020-02-21T23:43:10.000Z | 2021-07-06T11:16:37.000Z | lnt/__init__.py | arshbot/lntools | 9c6f344452323ff93b7a6a3763697d2ad81b4961 | [
"MIT"
] | 19 | 2019-08-07T18:00:13.000Z | 2020-12-03T17:21:01.000Z | lnt/__init__.py | arshbot/lntools | 9c6f344452323ff93b7a6a3763697d2ad81b4961 | [
"MIT"
] | 1 | 2019-11-05T21:38:29.000Z | 2019-11-05T21:38:29.000Z | name = "lnt"
| 6.5 | 12 | 0.538462 | 2 | 13 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 13 | 1 | 13 | 13 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 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 |
f1eda59437246b99ce7fe73939e4a8cbf846a464 | 3,474 | py | Python | tests/seleniumwire/proxy/test_utils.py | SilverFruity/selenium-wire | 6413a645447ee265a1613e1c4c0497da5ccfadb6 | [
"MIT"
] | null | null | null | tests/seleniumwire/proxy/test_utils.py | SilverFruity/selenium-wire | 6413a645447ee265a1613e1c4c0497da5ccfadb6 | [
"MIT"
] | null | null | null | tests/seleniumwire/proxy/test_utils.py | SilverFruity/selenium-wire | 6413a645447ee265a1613e1c4c0497da5ccfadb6 | [
"MIT"
] | null | null | null | import contextlib
import os
from unittest import TestCase
from seleniumwire.proxy.utils import get_upstream_proxy
class GetUpstreamProxyTest(TestCase):
def test_get_config(self):
options = {
'proxy': {
'http': 'http://username1:password1@server1:8888',
'https'... | 34.058824 | 81 | 0.590674 | 341 | 3,474 | 5.920821 | 0.196481 | 0.208024 | 0.062407 | 0.041605 | 0.691927 | 0.678058 | 0.659237 | 0.659237 | 0.659237 | 0.659237 | 0 | 0.03916 | 0.286989 | 3,474 | 101 | 82 | 34.39604 | 0.775939 | 0.032815 | 0 | 0.565789 | 0 | 0 | 0.190221 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 1 | 0.065789 | false | 0.171053 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7b0587e0cbd5a76e1a0385ae500b5a1fd9b8f1cc | 63,616 | py | Python | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/aio/_azure_machine_learning_workspaces.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/aio/_azure_machine_learning_workspaces.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/aio/_azure_machine_learning_workspaces.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 62.429833 | 198 | 0.72213 | 6,978 | 63,616 | 6.361135 | 0.046862 | 0.113769 | 0.087952 | 0.039831 | 0.811864 | 0.792264 | 0.719023 | 0.658827 | 0.580878 | 0.520411 | 0 | 0.063974 | 0.178571 | 63,616 | 1,018 | 199 | 62.491159 | 0.78546 | 0.325641 | 0 | 0.446009 | 0 | 0 | 0.14991 | 0.026185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087637 | false | 0.001565 | 0.201878 | 0.001565 | 0.397496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 |
7b100e335c8d8ec8c9beae77e0544629e8dd2924 | 234 | py | Python | github_terminal/github_terminal.py | amritghimire/github-terminal | 9e34f0b2660720e50c69c4f1dee68b08e8aa979a | [
"MIT"
] | null | null | null | github_terminal/github_terminal.py | amritghimire/github-terminal | 9e34f0b2660720e50c69c4f1dee68b08e8aa979a | [
"MIT"
] | 147 | 2020-03-13T16:03:12.000Z | 2022-03-27T17:35:19.000Z | github_terminal/github_terminal.py | amritghimire/github_terminal | 9e34f0b2660720e50c69c4f1dee68b08e8aa979a | [
"MIT"
] | null | null | null | """Main module."""
from .issue import issue
from .pr import pr
def handle_category_action(args):
"""Handle the category specific action."""
category = args.category
return {'issue': issue, 'pr': pr}.get(category, issue)
| 23.4 | 58 | 0.683761 | 31 | 234 | 5.096774 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17094 | 234 | 9 | 59 | 26 | 0.814433 | 0.209402 | 0 | 0 | 0 | 0 | 0.04023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7b12693d8c08c48521ed3b246f1600edc456534e | 446 | py | Python | CursoemVideo/Desafio009.py | davihonorato/Curso-python | 47e6b4b2f5b37ef520b8b31d37dba0b5d259a0b0 | [
"MIT"
] | null | null | null | CursoemVideo/Desafio009.py | davihonorato/Curso-python | 47e6b4b2f5b37ef520b8b31d37dba0b5d259a0b0 | [
"MIT"
] | null | null | null | CursoemVideo/Desafio009.py | davihonorato/Curso-python | 47e6b4b2f5b37ef520b8b31d37dba0b5d259a0b0 | [
"MIT"
] | null | null | null | # Faça um programa que leia um número inteiro qualquer e mostre na tela a sua tabuada.
n1 = int(input('Digite um número qualquer: '))
print('-'*13)
print(f'1 x {n1} = {1*n1}')
print(f'2 x {n1} = {2*n1}')
print(f'3 x {n1} = {3*n1}')
print(f'4 x {n1} = {4*n1}')
print(f'5 x {n1} = {5*n1}')
print(f'6 x {n1} = {6*n1}')
pr... | 26.235294 | 86 | 0.55157 | 97 | 446 | 2.536082 | 0.340206 | 0.243902 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127717 | 0.174888 | 446 | 16 | 87 | 27.875 | 0.540761 | 0.188341 | 0 | 0.153846 | 0 | 0 | 0.558333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.923077 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7b186cb6560ae17263ce1c2841062d4cadde858f | 90 | py | Python | Plumber/Side.py | paldynaagata/plumber | 206e91485109e33d62ad6409f87ee67e21cae7e3 | [
"MIT"
] | null | null | null | Plumber/Side.py | paldynaagata/plumber | 206e91485109e33d62ad6409f87ee67e21cae7e3 | [
"MIT"
] | null | null | null | Plumber/Side.py | paldynaagata/plumber | 206e91485109e33d62ad6409f87ee67e21cae7e3 | [
"MIT"
] | 1 | 2018-11-16T16:22:01.000Z | 2018-11-16T16:22:01.000Z | from enum import Enum
class Side(Enum):
Left = 0
Up = 1
Right = 2
Down = 3 | 15 | 21 | 0.555556 | 15 | 90 | 3.333333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.366667 | 90 | 6 | 22 | 15 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9e2fa6bd9b23f79b8004007dc4621390e6adebd6 | 20,150 | py | Python | vibration_compensation/tests/test_smoothed_toolpath.py | fredizzimo/VibrationCompensation | e668fc70f98983781c2ed26210939f099cd64ca1 | [
"MIT"
] | null | null | null | vibration_compensation/tests/test_smoothed_toolpath.py | fredizzimo/VibrationCompensation | e668fc70f98983781c2ed26210939f099cd64ca1 | [
"MIT"
] | null | null | null | vibration_compensation/tests/test_smoothed_toolpath.py | fredizzimo/VibrationCompensation | e668fc70f98983781c2ed26210939f099cd64ca1 | [
"MIT"
] | null | null | null | import os
from vibration_compensation import read_gcode, Data
import pytest
from numpy.testing import *
import numpy as np
import scipy as sp
import vibration_compensation.bokeh_imports as plt
@pytest.fixture(scope="module")
def figures():
path, filename = os.path.split(os.path.realpath(__file__))
... | 40.707071 | 109 | 0.632159 | 2,898 | 20,150 | 4.198068 | 0.073844 | 0.050962 | 0.087128 | 0.099868 | 0.767631 | 0.740095 | 0.707299 | 0.689216 | 0.651817 | 0.624034 | 0 | 0.043586 | 0.239404 | 20,150 | 494 | 110 | 40.789474 | 0.750228 | 0.001638 | 0 | 0.451991 | 0 | 0 | 0.090006 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 1 | 0.093677 | false | 0 | 0.016393 | 0.002342 | 0.128806 | 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 |
9e546230dad5e92f3cf0d2fc074001107a0e132d | 53 | py | Python | example/simple/lib.py | viniciusfeitosa/pychecko | 5947152e80e9fb7872728855e43e379d8ba4e0a5 | [
"MIT"
] | 5 | 2017-08-27T14:23:58.000Z | 2019-02-01T21:14:47.000Z | example/simple/lib.py | viniciusfeitosa/pychecko | 5947152e80e9fb7872728855e43e379d8ba4e0a5 | [
"MIT"
] | 2 | 2017-09-12T21:32:07.000Z | 2017-09-13T12:51:21.000Z | example/simple/lib.py | viniciusfeitosa/pychecko | 5947152e80e9fb7872728855e43e379d8ba4e0a5 | [
"MIT"
] | null | null | null | def bar(self):
self.email = 'john.doe@email.com'
| 17.666667 | 37 | 0.641509 | 9 | 53 | 3.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 53 | 2 | 38 | 26.5 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.339623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e6094fd31f557581a4255ef1b41cf2984ce5c5a | 281 | py | Python | example_project/example_project/urls.py | pwilczynskiclearcode/django-nuit | e1b619c00db36fba48683e9cf3d51cf4460f99c8 | [
"Apache-2.0"
] | 5 | 2016-05-15T12:43:24.000Z | 2018-10-06T07:45:38.000Z | example_project/example_project/urls.py | pwilczynskiclearcode/django-nuit | e1b619c00db36fba48683e9cf3d51cf4460f99c8 | [
"Apache-2.0"
] | 12 | 2016-04-21T22:01:55.000Z | 2017-04-20T09:27:56.000Z | example_project/example_project/urls.py | pwilczynskiclearcode/django-nuit | e1b619c00db36fba48683e9cf3d51cf4460f99c8 | [
"Apache-2.0"
] | 6 | 2016-04-21T23:27:48.000Z | 2018-02-22T16:24:11.000Z | from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^', include('demo.urls')),
url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'nuit/generic/login.html'}),
url(r'^logout/$', 'django.contrib.auth.views.logout'),
)
| 35.125 | 102 | 0.66548 | 37 | 281 | 5.027027 | 0.567568 | 0.064516 | 0.182796 | 0.236559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11032 | 281 | 7 | 103 | 40.142857 | 0.744 | 0 | 0 | 0 | 0 | 0 | 0.448399 | 0.30605 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e6299cd107b50a4f5b03584d9d8cdfc9aad1979 | 183 | py | Python | django/privat_gos_sait/about_company/templatetags/test_teg.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | django/privat_gos_sait/about_company/templatetags/test_teg.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | django/privat_gos_sait/about_company/templatetags/test_teg.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | from django import template
register = template.Library()
@register.filter('modF')
def modF(value, arg):
print (not (int( value)%int(arg)))
return not (int( value)%int(arg)) | 22.875 | 38 | 0.68306 | 26 | 183 | 4.807692 | 0.576923 | 0.096 | 0.176 | 0.224 | 0.272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153005 | 183 | 8 | 39 | 22.875 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e66e4f393c0c4a7bed8f9898e9b93ecd602b56d | 82 | py | Python | configs/nas_fcos/ranksort_nas_fcos_r50_caffe_fpn_1x_coco_lr0010.py | yinchimaoliang/ranksortloss | d2103598448633a108dbda4143ab8c9c3fd515f8 | [
"Apache-2.0"
] | 210 | 2021-07-27T01:30:05.000Z | 2022-03-29T07:52:35.000Z | configs/nas_fcos/ranksort_nas_fcos_r50_caffe_fpn_1x_coco_lr0010.py | yinchimaoliang/ranksortloss | d2103598448633a108dbda4143ab8c9c3fd515f8 | [
"Apache-2.0"
] | 12 | 2021-07-31T06:36:36.000Z | 2022-01-04T01:51:29.000Z | configs/nas_fcos/ranksort_nas_fcos_r50_caffe_fpn_1x_coco_lr0010.py | yinchimaoliang/ranksortloss | d2103598448633a108dbda4143ab8c9c3fd515f8 | [
"Apache-2.0"
] | 23 | 2021-07-28T01:30:33.000Z | 2022-03-03T11:18:56.000Z | _base_ = 'ranksort_nas_fcos_r50_caffe_fpn_1x_coco.py'
optimizer = dict(lr=0.010)
| 20.5 | 53 | 0.804878 | 15 | 82 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 0.085366 | 82 | 3 | 54 | 27.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.512195 | 0.512195 | 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 |
9e6b90c25c3d9983806540ed68bf691bdbc2ca57 | 4,411 | py | Python | examples/ModelMocks.py | pedro19v/GIMME | c99cfe8465e8e2e3ca507a41e3f9dd09931051b1 | [
"CC-BY-4.0"
] | null | null | null | examples/ModelMocks.py | pedro19v/GIMME | c99cfe8465e8e2e3ca507a41e3f9dd09931051b1 | [
"CC-BY-4.0"
] | null | null | null | examples/ModelMocks.py | pedro19v/GIMME | c99cfe8465e8e2e3ca507a41e3f9dd09931051b1 | [
"CC-BY-4.0"
] | null | null | null | from GIMMECore import TaskModelBridge
from GIMMECore import PlayerModelBridge
class PlayerModelMock(object):
def __init__(self, id, name, currState, pastModelIncreasesGrid, currModelIncreases, preferencesEst, realPreferences):
self.currState = currState
self.id = id
self.name = name
self.pastModelIncreasesGri... | 42.009524 | 153 | 0.800952 | 444 | 4,411 | 7.921171 | 0.182432 | 0.071936 | 0.083594 | 0.131362 | 0.508388 | 0.381575 | 0.289736 | 0.085584 | 0.016491 | 0 | 0 | 0 | 0.099977 | 4,411 | 105 | 154 | 42.009524 | 0.885894 | 0.022897 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.383721 | false | 0 | 0.023256 | 0.197674 | 0.651163 | 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 |
9e7344a6b008966774d4007d0915b060474de0a9 | 408 | py | Python | spider_frame/framework/build/lib/scrapy_plus/middlwares/spider_middlewares.py | originx-23/spider_frame | aa87972265dec0f601d28e50d0edbafefc14dc0b | [
"Apache-2.0"
] | 1 | 2020-03-10T12:35:35.000Z | 2020-03-10T12:35:35.000Z | spider_frame/framework/scrapy_plus/middlwares/spider_middlewares.py | originx-23/spider_frame | aa87972265dec0f601d28e50d0edbafefc14dc0b | [
"Apache-2.0"
] | null | null | null | spider_frame/framework/scrapy_plus/middlwares/spider_middlewares.py | originx-23/spider_frame | aa87972265dec0f601d28e50d0edbafefc14dc0b | [
"Apache-2.0"
] | null | null | null | # 下载器中间件模块: 用于对请求和响应数据进行预处理
class SpiderMiddleware(object):
def process_request(self, request):
# 用于处理请求的: 在请求对象交给引擎之前调用
print("SpiderMiddleware-process_request-{}".format(request.url))
return request
def process_response(self, response):
# 用于处理响应数据: 在响应对象交给爬虫之前调用
pri... | 27.2 | 74 | 0.696078 | 37 | 408 | 7.567568 | 0.486486 | 0.071429 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203431 | 408 | 14 | 75 | 29.142857 | 0.861538 | 0.176471 | 0 | 0 | 0 | 0 | 0.213855 | 0.213855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.714286 | 0.285714 | 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 |
9e7784a91cd071c992cadec8a1b777458fa5c982 | 556 | py | Python | mysql2sqlite/config/__init__.py | MFrat/mysql2sqlite | 409e2bc608a43dfe44f8756b64404a081e9bde40 | [
"MIT"
] | null | null | null | mysql2sqlite/config/__init__.py | MFrat/mysql2sqlite | 409e2bc608a43dfe44f8756b64404a081e9bde40 | [
"MIT"
] | null | null | null | mysql2sqlite/config/__init__.py | MFrat/mysql2sqlite | 409e2bc608a43dfe44f8756b64404a081e9bde40 | [
"MIT"
] | null | null | null | import yaml
from pkg_resources import resource_stream
def load(filename):
with resource_stream(__name__, filename) as config_file:
return yaml.load(config_file)
def load_cluster_config(name):
return load('{0}.yml'.format(name))
_env = load('context.yml')
_configs = {}
def get_config(env):
i... | 19.857143 | 66 | 0.69964 | 77 | 556 | 4.714286 | 0.376623 | 0.057851 | 0.093664 | 0.093664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002183 | 0.176259 | 556 | 27 | 67 | 20.592593 | 0.790393 | 0 | 0 | 0 | 0 | 0 | 0.059353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9e89a89307030c313da5f52ae68c7533e60d34db | 5,813 | py | Python | src/pangadfs_gui/resources.py | sansbacon/pangadfsGUI | d95abd502c723c6b31c4b8f8465ce0f10e804559 | [
"MIT"
] | null | null | null | src/pangadfs_gui/resources.py | sansbacon/pangadfsGUI | d95abd502c723c6b31c4b8f8465ce0f10e804559 | [
"MIT"
] | null | null | null | src/pangadfs_gui/resources.py | sansbacon/pangadfsGUI | d95abd502c723c6b31c4b8f8465ce0f10e804559 | [
"MIT"
] | null | null | null | # Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 6.2.2
# WARNING! All changes made in this file will be lost!
from PySide6 import QtCore
qt_resource_data = b"\
\x00\x00\x03m\
\x89\
PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\
\x00\x00\x10\x00\x00\x00\x10\x... | 39.013423 | 96 | 0.714949 | 1,243 | 5,813 | 3.32502 | 0.370877 | 0.116138 | 0.113235 | 0.087104 | 0.157029 | 0.152432 | 0.141302 | 0.136947 | 0.133317 | 0.126784 | 0 | 0.252898 | 0.035438 | 5,813 | 148 | 97 | 39.277027 | 0.484216 | 0.028041 | 0 | 0.10219 | 0 | 0.489051 | 0 | 0 | 0 | 0 | 0.001417 | 0 | 0 | 1 | 0.014599 | false | 0 | 0.007299 | 0 | 0.021898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e917253ef65622a45897d8cb83c673a3659e9f8 | 760 | py | Python | sockfilter/error.py | cardforcoin/sockfilter | 431249e1351055e35e6411a695f9bab3bdaba0f6 | [
"MIT"
] | 1 | 2015-07-10T06:43:47.000Z | 2015-07-10T06:43:47.000Z | sockfilter/error.py | thesis/sockfilter | 431249e1351055e35e6411a695f9bab3bdaba0f6 | [
"MIT"
] | 1 | 2015-03-19T18:56:51.000Z | 2015-03-19T19:00:51.000Z | sockfilter/error.py | thesis/sockfilter | 431249e1351055e35e6411a695f9bab3bdaba0f6 | [
"MIT"
] | 2 | 2017-06-16T17:05:23.000Z | 2017-06-16T17:05:42.000Z | __all__ = ['SockFilterError']
import collections
class SockFilterError(Exception):
Tuple = collections.namedtuple('SockFilterError', ['address'])
def __init__(self, address):
self.address = address
def __repr__(self):
return repr(self._tuple)
def __str__(self):
return str(... | 21.714286 | 66 | 0.627632 | 82 | 760 | 5.353659 | 0.292683 | 0.123007 | 0.082005 | 0.063781 | 0.305239 | 0.305239 | 0.305239 | 0.305239 | 0.305239 | 0.305239 | 0 | 0 | 0.267105 | 760 | 34 | 67 | 22.352941 | 0.788151 | 0 | 0 | 0.173913 | 0 | 0 | 0.064474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.043478 | 0.173913 | 0.782609 | 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 |
9eb85484a4c2b613cf58fbf7134e3e8c8bc4d4e4 | 51 | py | Python | ex2_02.py | FMarnix/Py4Ev | 09f5f5bdd898e8683f70805dac2b5d6fff0a2c76 | [
"MIT"
] | null | null | null | ex2_02.py | FMarnix/Py4Ev | 09f5f5bdd898e8683f70805dac2b5d6fff0a2c76 | [
"MIT"
] | null | null | null | ex2_02.py | FMarnix/Py4Ev | 09f5f5bdd898e8683f70805dac2b5d6fff0a2c76 | [
"MIT"
] | null | null | null | name = input("Enter your name: ")
print("Hi", name) | 25.5 | 33 | 0.647059 | 8 | 51 | 4.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 51 | 2 | 34 | 25.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.365385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9ebf2adab85b61839169ccb4733f5e77df923033 | 273 | py | Python | src/backend/database_repository.py | Irsutoro/Where-is-my-money | e65642f3134faa8bab40be05231c71657835149c | [
"MIT"
] | null | null | null | src/backend/database_repository.py | Irsutoro/Where-is-my-money | e65642f3134faa8bab40be05231c71657835149c | [
"MIT"
] | null | null | null | src/backend/database_repository.py | Irsutoro/Where-is-my-money | e65642f3134faa8bab40be05231c71657835149c | [
"MIT"
] | null | null | null | from database_management import Database, ResultSet
import configparser
DBINFO = configparser.ConfigParser()
DBINFO.read('database.config')
WMM_MAIN_DB = Database(DBINFO['Database']['Name'], DBINFO['User']['Name'], DBINFO['Database']['Host'], DBINFO['Database']['Port']) | 34.125 | 130 | 0.750916 | 31 | 273 | 6.516129 | 0.516129 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069597 | 273 | 8 | 130 | 34.125 | 0.795276 | 0 | 0 | 0 | 0 | 0 | 0.215328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7b3e1068ad4c1a3b70d65b527f19ed6d8ff46888 | 300 | py | Python | eunice012716/Week1/ch3/3.2/exercise1.py | coookie89/Intern-Training | 6e3b26edfee5bdcc98dd5ac05d35cef125778ad5 | [
"MIT"
] | 1 | 2021-08-24T12:14:46.000Z | 2021-08-24T12:14:46.000Z | eunice012716/Week1/ch3/3.2/exercise1.py | coookie89/Intern-Training | 6e3b26edfee5bdcc98dd5ac05d35cef125778ad5 | [
"MIT"
] | 14 | 2021-07-09T07:48:35.000Z | 2021-08-19T03:06:31.000Z | eunice012716/Week1/ch3/3.2/exercise1.py | coookie89/Intern-Training | 6e3b26edfee5bdcc98dd5ac05d35cef125778ad5 | [
"MIT"
] | 11 | 2021-07-09T07:35:24.000Z | 2021-08-15T07:19:43.000Z | if __name__ == "__main__":
print(
"Zero Initialization:",
"Since the derivatives will remain same for every w in W[l],",
"this method serves almost no purpose as it causes neurons to perform the same calculation in each iterations and produces same outputs.",
)
| 42.857143 | 147 | 0.666667 | 40 | 300 | 4.8 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263333 | 300 | 6 | 148 | 50 | 0.868778 | 0 | 0 | 0 | 0 | 0.166667 | 0.755102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b3ecfae167694eee9445d0425a43d7eef5f6165 | 976 | py | Python | registration/migrations/0003_student_registration.py | NUKSI911/School-Mng | a48991407ae0acc21208b734768bda1f7ea0dbe9 | [
"MIT"
] | null | null | null | registration/migrations/0003_student_registration.py | NUKSI911/School-Mng | a48991407ae0acc21208b734768bda1f7ea0dbe9 | [
"MIT"
] | null | null | null | registration/migrations/0003_student_registration.py | NUKSI911/School-Mng | a48991407ae0acc21208b734768bda1f7ea0dbe9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-18 06:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registration', '0002_auto_20200717_1825'),
]
operations = [
migrations.CreateModel(
name='Student_Registration',
fie... | 34.857143 | 114 | 0.578893 | 100 | 976 | 5.45 | 0.62 | 0.115596 | 0.198165 | 0.26422 | 0.110092 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 0.282787 | 976 | 27 | 115 | 36.148148 | 0.714286 | 0.046107 | 0 | 0 | 1 | 0 | 0.144241 | 0.024758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
7b4abff047d88698499aebe29ee190826ea5b508 | 589 | py | Python | consensus/entities/member.py | flaudanum/consensus | f745a7957d4b1c7e567c3a4a1ec9c04c0fb45aa0 | [
"MIT"
] | null | null | null | consensus/entities/member.py | flaudanum/consensus | f745a7957d4b1c7e567c3a4a1ec9c04c0fb45aa0 | [
"MIT"
] | null | null | null | consensus/entities/member.py | flaudanum/consensus | f745a7957d4b1c7e567c3a4a1ec9c04c0fb45aa0 | [
"MIT"
] | null | null | null | from typing import Sequence, Optional
from consensus.entities.alternative import Alternative
from consensus.entities.ranking import Ranking
class Member:
@property
def name(self):
return self._name
@property
def ranking(self) -> Ranking:
return self._ranking
def __init__(self, n... | 26.772727 | 114 | 0.706282 | 65 | 589 | 6.246154 | 0.338462 | 0.108374 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203735 | 589 | 21 | 115 | 28.047619 | 0.865672 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.133333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7b4ed3eb067c4d5c0264e7ac06396a9673fb643a | 548 | py | Python | tha2/nn/batch_module/batch_input_module.py | luuil/talking-head-anime-2-demo | b0429cdabbc9c8aa53a14b61bb26e051a3259cc7 | [
"MIT"
] | 626 | 2021-03-02T16:59:02.000Z | 2022-03-31T04:00:50.000Z | tha2/nn/batch_module/batch_input_module.py | xuan525/talking-head-anime-2-demo | 5e5b9b62ee53ee8c57410f1ef40e6a035ba5dee4 | [
"MIT"
] | 30 | 2021-03-03T02:57:18.000Z | 2022-03-27T11:50:54.000Z | tha2/nn/batch_module/batch_input_module.py | xuan525/talking-head-anime-2-demo | 5e5b9b62ee53ee8c57410f1ef40e6a035ba5dee4 | [
"MIT"
] | 100 | 2021-03-03T02:59:03.000Z | 2022-03-23T07:04:46.000Z | from abc import ABC, abstractmethod
from typing import List
from torch import Tensor
from torch.nn import Module
from tha2.nn.base.module_factory import ModuleFactory
class BatchInputModule(Module, ABC):
def __init__(self):
super().__init__()
@abstractmethod
def forward_from_batch... | 21.076923 | 55 | 0.680657 | 59 | 548 | 6 | 0.423729 | 0.050847 | 0.062147 | 0.090395 | 0.20904 | 0.20904 | 0.20904 | 0 | 0 | 0 | 0 | 0.00241 | 0.242701 | 548 | 25 | 56 | 21.92 | 0.850602 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.117647 | 0.294118 | 0 | 0.647059 | 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 |
7b553ac03dc8cfec22c6a25dddc7f833bb5818e0 | 251 | py | Python | FreeCodeCamp.org/Inheritance/ChineseChef.py | MizaN13/PythonAbc | db8aa05497a6a1bf3eafcfdd6c31880b57e509fb | [
"MIT"
] | null | null | null | FreeCodeCamp.org/Inheritance/ChineseChef.py | MizaN13/PythonAbc | db8aa05497a6a1bf3eafcfdd6c31880b57e509fb | [
"MIT"
] | null | null | null | FreeCodeCamp.org/Inheritance/ChineseChef.py | MizaN13/PythonAbc | db8aa05497a6a1bf3eafcfdd6c31880b57e509fb | [
"MIT"
] | null | null | null | from Chef import Chef
# inheriting Chef class from ChineseChef class
class ChineseChef(Chef):
def make_special_dish(self):
print("The chef makes orange chicken")
def make_fried_rice(self):
print("The Chef makes fried rice.") | 25.1 | 46 | 0.713147 | 35 | 251 | 5 | 0.514286 | 0.08 | 0.137143 | 0.182857 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211155 | 251 | 10 | 47 | 25.1 | 0.883838 | 0.175299 | 0 | 0 | 0 | 0 | 0.26699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7b5ba76ba3d3799da28a61a93e1fbee92653e87d | 78 | py | Python | __init__.py | codefresh-customer-success/yeti | 70ce4798591bbc279dbe397fd1173aed969da7f9 | [
"MIT"
] | null | null | null | __init__.py | codefresh-customer-success/yeti | 70ce4798591bbc279dbe397fd1173aed969da7f9 | [
"MIT"
] | null | null | null | __init__.py | codefresh-customer-success/yeti | 70ce4798591bbc279dbe397fd1173aed969da7f9 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
### IMPORTS ###
### FUNCTIONS ###
### CLASSES ###
| 9.75 | 24 | 0.525641 | 7 | 78 | 5.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.166667 | 78 | 7 | 25 | 11.142857 | 0.615385 | 0.653846 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b69508d8febf499e6f47797e52bc92d8307a923 | 977 | py | Python | paper_code/distributed_evolution/policies/core.py | adam-katona/QualityEvolvabilityES | ebb96e1dbc2422109714c0f5c8174073f9cc6c6f | [
"MIT"
] | 1 | 2021-10-06T15:08:42.000Z | 2021-10-06T15:08:42.000Z | paper_code/distributed_evolution/policies/core.py | adam-katona/QualityEvolvabilityES | ebb96e1dbc2422109714c0f5c8174073f9cc6c6f | [
"MIT"
] | null | null | null | paper_code/distributed_evolution/policies/core.py | adam-katona/QualityEvolvabilityES | ebb96e1dbc2422109714c0f5c8174073f9cc6c6f | [
"MIT"
] | null | null | null | #Copyright (c) 2019 Uber Technologies, Inc.
#
#Licensed under the Uber Non-Commercial License (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at the root directory of this project.
#
#See the License for the specific language governing permission... | 25.710526 | 77 | 0.669396 | 129 | 977 | 5.03876 | 0.565891 | 0.076923 | 0.04 | 0.049231 | 0.067692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009396 | 0.237462 | 977 | 37 | 78 | 26.405405 | 0.863087 | 0.40737 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0.1 | 0.05 | 0.05 | 0.65 | 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 |
7b9a7bcbd14ad849c8931814f52b1ad2efab9284 | 234 | py | Python | util/flask_learn.py | yt7589/aqp | c9c1c79facdea7ace73e2421e8a5868d87fb58dd | [
"Apache-2.0"
] | null | null | null | util/flask_learn.py | yt7589/aqp | c9c1c79facdea7ace73e2421e8a5868d87fb58dd | [
"Apache-2.0"
] | null | null | null | util/flask_learn.py | yt7589/aqp | c9c1c79facdea7ace73e2421e8a5868d87fb58dd | [
"Apache-2.0"
] | null | null | null | from flask import Flask
class FlaskLearn(object):
def __init__(self):
self.name = 'FlaskLearn'
def startup(self):
print('Flask学习程序')
def hello_world(self):
app = Flask('HelloWorld')
| 18 | 33 | 0.589744 | 25 | 234 | 5.32 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303419 | 234 | 12 | 34 | 19.5 | 0.815951 | 0 | 0 | 0 | 0 | 0 | 0.123932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0.125 | 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 |
7bba7bb55a3d635f3b207f1c00e3e9b54ee91136 | 559 | py | Python | share/oaipmh/views.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | share/oaipmh/views.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | share/oaipmh/views.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | from django.views.generic.base import View
from django.template.response import HttpResponse
from share.oaipmh.repository import OAIRepository
class OAIPMHView(View):
CONTENT_TYPE = 'text/xml'
def get(self, request):
return self.oai_response(**request.GET)
def post(self, request):
retur... | 27.95 | 64 | 0.72093 | 68 | 559 | 5.823529 | 0.426471 | 0.083333 | 0.085859 | 0.106061 | 0.19697 | 0.19697 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0.182469 | 559 | 19 | 65 | 29.421053 | 0.866521 | 0 | 0 | 0 | 0 | 0 | 0.014311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.153846 | 0.846154 | 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 |
7bc2082b84ed08dc1ef6019ee65fc939d7c361c7 | 821 | pyp | Python | LDDImport.pyp | gemvfx/LDDImport | 07179ce7feb474a78df46e204a9d7589fd140811 | [
"MIT"
] | 1 | 2019-05-08T10:50:45.000Z | 2019-05-08T10:50:45.000Z | LDDImport.pyp | gemvfx/LDDImport | 07179ce7feb474a78df46e204a9d7589fd140811 | [
"MIT"
] | 2 | 2016-10-12T15:02:56.000Z | 2019-05-17T11:46:25.000Z | LDDImport.pyp | gemvfx/LDDImport | 07179ce7feb474a78df46e204a9d7589fd140811 | [
"MIT"
] | null | null | null | """
Lego Digital Designer C4D Importer
Copyright: Gerhard Messer
Written for CINEMA 4D R16+
Version History
0.1 - 2015-05-18 - initial plugin
"""
import c4d
from c4d import gui, plugins, utils, bitmaps, storage
import os, sys
#1033677 LDDImport -- registered 25.09.2014
PLUGIN_ID = 1033677
class Olddimporter(... | 22.805556 | 104 | 0.618758 | 97 | 821 | 5.082474 | 0.731959 | 0.032454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069024 | 0.276492 | 821 | 35 | 105 | 23.457143 | 0.760943 | 0.056029 | 0 | 0 | 0 | 0 | 0.08147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0.4375 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
7bc22aafafd24661b36d2b7209bbff0e5200ffcc | 1,100 | py | Python | src/emmental/schedulers/scheduler.py | KeAWang/emmental | dae9f9fbba944f7c8404ab85aa9296545db1b82b | [
"MIT"
] | null | null | null | src/emmental/schedulers/scheduler.py | KeAWang/emmental | dae9f9fbba944f7c8404ab85aa9296545db1b82b | [
"MIT"
] | null | null | null | src/emmental/schedulers/scheduler.py | KeAWang/emmental | dae9f9fbba944f7c8404ab85aa9296545db1b82b | [
"MIT"
] | null | null | null | """Emmental scheduler."""
from abc import ABC, abstractmethod
from typing import Any, Iterator, List
from emmental.data import EmmentalDataLoader
from emmental.model import EmmentalModel
class Scheduler(ABC):
"""Generate batch generator from dataloaders in designed order."""
def __init__(self) -> None:
... | 26.829268 | 80 | 0.649091 | 113 | 1,100 | 6.256637 | 0.433628 | 0.084866 | 0.062235 | 0.07355 | 0.301273 | 0.176803 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27 | 1,100 | 40 | 81 | 27.5 | 0.880448 | 0.383636 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c884409f26ab1814e817a19464e0ba7e1cf384fb | 3,518 | py | Python | core/tests/test_trezor.crypto.hashlib.sha3_512.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | null | null | null | core/tests/test_trezor.crypto.hashlib.sha3_512.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 1 | 2019-02-08T00:22:42.000Z | 2019-02-13T09:41:54.000Z | core/tests/test_trezor.crypto.hashlib.sha3_512.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 2 | 2019-02-07T23:57:09.000Z | 2020-10-21T07:07:27.000Z | from common import *
from trezor.crypto import hashlib
class TestCryptoSha3_512(unittest.TestCase):
# vectors from http://www.di-mgt.com.au/sha_testvectors.html
vectors = [
(b'', 'a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586... | 47.540541 | 258 | 0.752985 | 239 | 3,518 | 10.949791 | 0.259414 | 0.057318 | 0.042797 | 0.034391 | 0.242262 | 0.200994 | 0.142912 | 0.126099 | 0.106229 | 0.049675 | 0 | 0.300375 | 0.166288 | 3,518 | 73 | 259 | 48.191781 | 0.591885 | 0.016487 | 0 | 0.45098 | 0 | 0 | 0.483591 | 0.478764 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.117647 | false | 0 | 0.039216 | 0 | 0.215686 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c88500ca4af18a206e79d65d9f96fe3c65f5c4f1 | 874 | py | Python | bot/bot_manager.py | NgLamVN/HiBot | 022e9419d1a92546ffdccc928318a3b8836444f0 | [
"MIT"
] | null | null | null | bot/bot_manager.py | NgLamVN/HiBot | 022e9419d1a92546ffdccc928318a3b8836444f0 | [
"MIT"
] | null | null | null | bot/bot_manager.py | NgLamVN/HiBot | 022e9419d1a92546ffdccc928318a3b8836444f0 | [
"MIT"
] | null | null | null | from discord.ext import commands
from bot_constant import bot_constant
from command_handler import command_handler
from bot_listener import bot_listener
class bot_manager:
def __init__(self):
self.bot = commands.Bot(command_prefix=bot_constant.bot_prefix, description=bot_constant.bot_description... | 30.137931 | 114 | 0.704805 | 116 | 874 | 4.991379 | 0.215517 | 0.120898 | 0.124352 | 0.072539 | 0.058722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21968 | 874 | 28 | 115 | 31.214286 | 0.848974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.2 | 0.15 | 0.65 | 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 |
c88e002dd5497ced016d594632b6e094770cf858 | 155 | py | Python | utils/start.py | shadowcompiler/Jo | 71f4ca3a143044ea136d49d1bd0e5660d3362ece | [
"MIT"
] | null | null | null | utils/start.py | shadowcompiler/Jo | 71f4ca3a143044ea136d49d1bd0e5660d3362ece | [
"MIT"
] | null | null | null | utils/start.py | shadowcompiler/Jo | 71f4ca3a143044ea136d49d1bd0e5660d3362ece | [
"MIT"
] | null | null | null | # coding:utf-8
# open start message file
start_file = open('ressources/start.txt', 'r', encoding='utf-8')
message = start_file.read()
start_file.close()
| 19.375 | 64 | 0.716129 | 24 | 155 | 4.5 | 0.541667 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.116129 | 155 | 7 | 65 | 22.142857 | 0.773723 | 0.232258 | 0 | 0 | 0 | 0 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8fd4a37e71943ca3b0126a83749c1db79f44af0 | 170 | py | Python | problem0546.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0546.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0546.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #546 The Floor's Revenge - Project Euler
# https://projecteuler.net/problem=546
#
# Code by Kevin Marciniak
#
###########################
| 18.888889 | 42 | 0.476471 | 16 | 170 | 5.0625 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.117647 | 170 | 8 | 43 | 21.25 | 0.5 | 0.588235 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c8fedc41fbea544e5be8866b22145d99a90c6817 | 874 | py | Python | workertasks/migrations/0003_auto_20181109_0049.py | danula/crowdcog | f467b82e5b362931bd03b19d896c13479da1c761 | [
"MIT"
] | 1 | 2021-01-04T07:30:16.000Z | 2021-01-04T07:30:16.000Z | workertasks/migrations/0003_auto_20181109_0049.py | danula/crowdcog | f467b82e5b362931bd03b19d896c13479da1c761 | [
"MIT"
] | null | null | null | workertasks/migrations/0003_auto_20181109_0049.py | danula/crowdcog | f467b82e5b362931bd03b19d896c13479da1c761 | [
"MIT"
] | 1 | 2020-10-01T01:52:15.000Z | 2020-10-01T01:52:15.000Z | # Generated by Django 2.1.3 on 2018-11-09 00:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workertasks', '0002_auto_20181109_0046'),
]
operations = [
migrations.AlterField(
model_name='assignment',
name='beg... | 25.705882 | 51 | 0.565217 | 80 | 874 | 6.05 | 0.5375 | 0.165289 | 0.206612 | 0.239669 | 0.557851 | 0.557851 | 0.557851 | 0.448347 | 0.448347 | 0.448347 | 0 | 0.054054 | 0.322654 | 874 | 33 | 52 | 26.484848 | 0.763514 | 0.051487 | 0 | 0.518519 | 1 | 0 | 0.130593 | 0.027811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7401abe11d874a2c9158a167d53691efb06e85c3 | 286 | py | Python | misago/misago/users/api/ranks.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | 2 | 2021-03-06T21:06:13.000Z | 2021-03-09T15:05:12.000Z | misago/misago/users/api/ranks.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | misago/misago/users/api/ranks.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | from rest_framework import mixins, viewsets
from ..models import Rank
from ..serializers import RankSerializer
class RanksViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
serializer_class = RankSerializer
queryset = Rank.objects.filter(is_tab=True).order_by("order")
| 28.6 | 67 | 0.804196 | 33 | 286 | 6.848485 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 286 | 9 | 68 | 31.777778 | 0.893281 | 0 | 0 | 0 | 0 | 0 | 0.017483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cda6e6521959bff48ad0c53cd84c1fcd356b0e60 | 120 | py | Python | catalog/urls.py | gcrsaldanha/sms | c80feca138f4fcbc36c73fd67418bd9f7679177c | [
"MIT"
] | null | null | null | catalog/urls.py | gcrsaldanha/sms | c80feca138f4fcbc36c73fd67418bd9f7679177c | [
"MIT"
] | 3 | 2020-07-17T16:34:58.000Z | 2021-05-09T23:17:09.000Z | catalog/urls.py | gcrsaldanha/sms | c80feca138f4fcbc36c73fd67418bd9f7679177c | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('item/', views.ItemListCreate.as_view()),
]
| 15 | 50 | 0.7 | 15 | 120 | 5.533333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 120 | 7 | 51 | 17.142857 | 0.83 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 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 |
cdb49be9da54ce81f6ae905cb745a9634a50d912 | 1,160 | py | Python | demos/python/sdk_wireless_camera_control/tests/test_wifi_commands.py | hypoxic/OpenGoPro | 2c3efd3ef39ef3ae502981cd494d48ececff2bc6 | [
"MIT"
] | 1 | 2021-07-19T22:55:05.000Z | 2021-07-19T22:55:05.000Z | demos/python/sdk_wireless_camera_control/tests/test_wifi_commands.py | hypoxic/OpenGoPro | 2c3efd3ef39ef3ae502981cd494d48ececff2bc6 | [
"MIT"
] | null | null | null | demos/python/sdk_wireless_camera_control/tests/test_wifi_commands.py | hypoxic/OpenGoPro | 2c3efd3ef39ef3ae502981cd494d48ececff2bc6 | [
"MIT"
] | null | null | null | # test_wifi_commands.py/Open GoPro, Version 1.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Tue May 18 22:08:51 UTC 2021
from pathlib import Path
import pytest
from open_gopro.wifi_commands import WifiCommands, WifiSettings, WifiCommunicator
from open_gopro imp... | 27.619048 | 108 | 0.710345 | 162 | 1,160 | 4.87037 | 0.450617 | 0.076046 | 0.038023 | 0.035488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021322 | 0.191379 | 1,160 | 41 | 109 | 28.292683 | 0.819829 | 0.148276 | 0 | 0 | 1 | 0 | 0.106599 | 0.077157 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.28 | false | 0 | 0.16 | 0.08 | 0.56 | 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 |
cde416aad15f88ce36db56f042827f7a9028cfa1 | 55 | py | Python | pharmacognosy/users/__init__.py | skylifewww/pharmacognosy | 8a64b75856907a39d3893df5127409ca4f9a6b7a | [
"MIT"
] | null | null | null | pharmacognosy/users/__init__.py | skylifewww/pharmacognosy | 8a64b75856907a39d3893df5127409ca4f9a6b7a | [
"MIT"
] | null | null | null | pharmacognosy/users/__init__.py | skylifewww/pharmacognosy | 8a64b75856907a39d3893df5127409ca4f9a6b7a | [
"MIT"
] | null | null | null | default_app_config = 'pharmacognosy.users.apps.Config'
| 27.5 | 54 | 0.836364 | 7 | 55 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 55 | 1 | 55 | 55 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.563636 | 0.563636 | 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 |
a82cd8403b26e692c28b83d515076f5370c7afa0 | 1,118 | py | Python | src/models/base.py | armavox/vae-cancer-nodules | f417918dcf86d1f8efd17a15ca7efa3fb598c49c | [
"Apache-2.0"
] | null | null | null | src/models/base.py | armavox/vae-cancer-nodules | f417918dcf86d1f8efd17a15ca7efa3fb598c49c | [
"Apache-2.0"
] | null | null | null | src/models/base.py | armavox/vae-cancer-nodules | f417918dcf86d1f8efd17a15ca7efa3fb598c49c | [
"Apache-2.0"
] | null | null | null | # Code provided by:
# @misc{Subramanian2020,
# author = {Subramanian, A.K},
# title = {PyTorch-VAE},
# year = {2020},
# publisher = {GitHub},
# journal = {GitHub repository},
# howpublished = {\url{https://github.com/AntixK/PyTorch-VAE}}
# }
from torch import nn
from abc import abstractmethod
from typing ... | 24.304348 | 79 | 0.647585 | 123 | 1,118 | 5.796748 | 0.512195 | 0.061711 | 0.126227 | 0.092567 | 0.131837 | 0.131837 | 0.131837 | 0 | 0 | 0 | 0 | 0.009217 | 0.223614 | 1,118 | 45 | 80 | 24.844444 | 0.812212 | 0.210197 | 0 | 0.347826 | 0 | 0 | 0.013746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0.086957 | 0.130435 | 0 | 0.521739 | 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 |
a83197b79016dd24f21ac1a667b8f0c1fc06d141 | 194 | py | Python | icrv=club/trial.py | IamWafula/Kiranja | 129c7f53a5e57f13aa7e2c8bc1002c5524a1887c | [
"MIT"
] | 1 | 2020-06-25T20:33:47.000Z | 2020-06-25T20:33:47.000Z | icrv=club/trial.py | IamWafula/Kiranja | 129c7f53a5e57f13aa7e2c8bc1002c5524a1887c | [
"MIT"
] | null | null | null | icrv=club/trial.py | IamWafula/Kiranja | 129c7f53a5e57f13aa7e2c8bc1002c5524a1887c | [
"MIT"
] | null | null | null | print("Enter the first number:")
f_num = int(input())
print("Enter the second number:")
s_num = int(input())
subtraction = f_num - s_num
print ("The value is:")
print ( subtraction ) | 19.4 | 34 | 0.654639 | 29 | 194 | 4.241379 | 0.482759 | 0.162602 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195876 | 194 | 10 | 35 | 19.4 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
b554430e03607ca7131b4390b8ed7a97a2fc968f | 294 | py | Python | vvcatalog/templatetags/vvcatalog_tags.py | synw/django-vvcatalog | f9b0e10ee0221925f991e738abc61771e94fc40d | [
"MIT"
] | 3 | 2017-04-22T11:49:15.000Z | 2018-01-06T02:54:08.000Z | vvcatalog/templatetags/vvcatalog_tags.py | synw/django-vvcatalog | f9b0e10ee0221925f991e738abc61771e94fc40d | [
"MIT"
] | null | null | null | vvcatalog/templatetags/vvcatalog_tags.py | synw/django-vvcatalog | f9b0e10ee0221925f991e738abc61771e94fc40d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django import template
from django.conf import settings
from vvcatalog.conf import CURRENCY, PAGINATION
register = template.Library()
@register.simple_tag
def get_currency():
return CURRENCY
@register.simple_tag
def get_pagination():
return PAGINATION
| 17.294118 | 47 | 0.761905 | 37 | 294 | 5.945946 | 0.513514 | 0.090909 | 0.154545 | 0.181818 | 0.209091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004 | 0.14966 | 294 | 16 | 48 | 18.375 | 0.876 | 0.071429 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.2 | 0.7 | 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 |
b56228bd424dbca97cd48989a1970e7e739489e2 | 240 | py | Python | Numero_Par.py | caibacord6/Programming-2020B | b18f336cb6af31ce691a072a5f1d55e58d3a75bb | [
"Apache-2.0"
] | null | null | null | Numero_Par.py | caibacord6/Programming-2020B | b18f336cb6af31ce691a072a5f1d55e58d3a75bb | [
"Apache-2.0"
] | null | null | null | Numero_Par.py | caibacord6/Programming-2020B | b18f336cb6af31ce691a072a5f1d55e58d3a75bb | [
"Apache-2.0"
] | null | null | null | '''
Script que identifica si un numero ingresado por el usuario es PAR.
'''
N = 0
print ("Ingrese un numero Entero: ")
num = int(input())
if num % 2 == 0 :
print ("El Numero es Par: ")
else:
print ("El Numero es Impar: ")
| 14.117647 | 67 | 0.595833 | 37 | 240 | 3.864865 | 0.648649 | 0.111888 | 0.181818 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0.266667 | 240 | 16 | 68 | 15 | 0.795455 | 0.279167 | 0 | 0 | 0 | 0 | 0.395062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 |
b565a7666a99f366dc37a2201169aff9ae4a272b | 146 | py | Python | tinyfilemanager/constants.py | pentatester/tinyfilemanager | 67fe06eecfd581f53ee6ec992fd94184c328d461 | [
"MIT"
] | null | null | null | tinyfilemanager/constants.py | pentatester/tinyfilemanager | 67fe06eecfd581f53ee6ec992fd94184c328d461 | [
"MIT"
] | null | null | null | tinyfilemanager/constants.py | pentatester/tinyfilemanager | 67fe06eecfd581f53ee6ec992fd94184c328d461 | [
"MIT"
] | null | null | null | from .version import __version__
CONFIG_URL = "https://tinyfilemanager.github.io/config.json"
USER_AGENT = f"pypi/tinyfilemanager/{__version__}"
| 29.2 | 60 | 0.80137 | 18 | 146 | 5.944444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075342 | 146 | 4 | 61 | 36.5 | 0.792593 | 0 | 0 | 0 | 0 | 0 | 0.541096 | 0.232877 | 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 |
b57b1dcffe6a67b617b201e0b65720e64fb65245 | 12,519 | py | Python | auton_survival/__init__.py | PotosnakW/auton-survival | d38ab87e76e8363331eeb21573a3ec094f8e6b09 | [
"MIT"
] | 15 | 2022-02-01T10:03:22.000Z | 2022-03-29T01:02:36.000Z | auton_survival/__init__.py | PotosnakW/auton-survival | d38ab87e76e8363331eeb21573a3ec094f8e6b09 | [
"MIT"
] | 4 | 2022-02-27T01:14:57.000Z | 2022-03-07T14:26:23.000Z | auton_survival/__init__.py | PotosnakW/auton-survival | d38ab87e76e8363331eeb21573a3ec094f8e6b09 | [
"MIT"
] | 6 | 2022-02-10T04:28:49.000Z | 2022-03-23T17:21:41.000Z | r'''
[](https://travis-ci.org/autonlab/DeepSurvivalMachines)
[](https://codecov.io/gh/autonlab/DeepSurv... | 36.71261 | 298 | 0.757329 | 1,607 | 12,519 | 5.861232 | 0.351587 | 0.059348 | 0.008175 | 0.008493 | 0.186644 | 0.1463 | 0.101072 | 0.06179 | 0.06179 | 0.06179 | 0 | 0.018513 | 0.128445 | 12,519 | 340 | 299 | 36.820588 | 0.844469 | 0.98666 | 0 | 0 | 0 | 0 | 0.022124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b580b847610e16bee037d0cfc871196dbf27f07e | 888 | py | Python | build/lib/Kronos_heureka_code/Zeit/Uhrzeit/Stunde/Stunde.py | heureka-code/Kronos-heureka-code | 0ddbc93ec69f0bc50075071e6a3e406c9cc97737 | [
"MIT"
] | null | null | null | build/lib/Kronos_heureka_code/Zeit/Uhrzeit/Stunde/Stunde.py | heureka-code/Kronos-heureka-code | 0ddbc93ec69f0bc50075071e6a3e406c9cc97737 | [
"MIT"
] | null | null | null | build/lib/Kronos_heureka_code/Zeit/Uhrzeit/Stunde/Stunde.py | heureka-code/Kronos-heureka-code | 0ddbc93ec69f0bc50075071e6a3e406c9cc97737 | [
"MIT"
] | null | null | null | from Kronos_heureka_code.__VergleichsStamm import VergleichsStammZahl
from Kronos_heureka_code.Zeit.Uhrzeit.Stunde.StundeException import *
class Stunde(VergleichsStammZahl):
def __init__(self, stunde: int):
self.__stunde: [int, None] = None
self.stunde = stunde
pass
def __repr__(self... | 25.371429 | 69 | 0.631757 | 99 | 888 | 5.343434 | 0.363636 | 0.170132 | 0.073724 | 0.079395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.279279 | 888 | 34 | 70 | 26.117647 | 0.817188 | 0 | 0 | 0.111111 | 0 | 0 | 0.030405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.074074 | 0.148148 | 0.481481 | 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 | 1 | 0 | 0 | 0 | 3 |
b580b8d6104b8ecd26b0f2da95a4d702694e9984 | 349 | py | Python | toolcall/auth_backend.py | thebjorn/toolcall | 2c1597c8224958b4751cfb09f7a1b4439ca6df09 | [
"MIT"
] | null | null | null | toolcall/auth_backend.py | thebjorn/toolcall | 2c1597c8224958b4751cfb09f7a1b4439ca6df09 | [
"MIT"
] | 1 | 2021-06-10T20:46:46.000Z | 2021-06-10T20:46:46.000Z | toolcall/auth_backend.py | thebjorn/toolcall | 2c1597c8224958b4751cfb09f7a1b4439ca6df09 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.models import User
class DKSSOBlindTrustAuthenticator(ModelBackend):
def authenticate(self, username=None, password=None, **kw):
if not kw.get('sso_login'):
return None
return User.ob... | 31.727273 | 63 | 0.713467 | 42 | 349 | 5.904762 | 0.666667 | 0.080645 | 0.137097 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.174785 | 349 | 10 | 64 | 34.9 | 0.857639 | 0.060172 | 0 | 0 | 0 | 0 | 0.027607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b58137e8533b1749b38292870a80b913fef463bc | 3,915 | py | Python | src/modules/single.py | szachovy/MLstats | d39441f1d5b007e91a7c6b7c3b7e0a7ccf0d8ce4 | [
"MIT"
] | 1 | 2019-12-20T12:33:18.000Z | 2019-12-20T12:33:18.000Z | src/modules/single.py | szachovy/MLstats | d39441f1d5b007e91a7c6b7c3b7e0a7ccf0d8ce4 | [
"MIT"
] | null | null | null | src/modules/single.py | szachovy/MLstats | d39441f1d5b007e91a7c6b7c3b7e0a7ccf0d8ce4 | [
"MIT"
] | 1 | 2019-12-13T13:58:35.000Z | 2019-12-13T13:58:35.000Z |
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import scipy
from statsmodels import robust
class Singular_description(object):
'''
Display statistics from every numerical column in data set.
Base class for Mutual description instance.
Outcomes are repre... | 34.043478 | 100 | 0.650319 | 478 | 3,915 | 5.267782 | 0.313808 | 0.075457 | 0.107228 | 0.150119 | 0.257347 | 0.175536 | 0.092931 | 0.078634 | 0.042891 | 0.042891 | 0 | 0.009699 | 0.26258 | 3,915 | 114 | 101 | 34.342105 | 0.862487 | 0.310345 | 0 | 0 | 0 | 0 | 0.043165 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0.185185 | 0.685185 | 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 |
b59f7bb288213617a29b12ada9eb45037af0e654 | 51,234 | py | Python | worker/ttypes.py | apioo/fusio-worker-python | 345cfc0c679a2e30da47f199a26bb9feac7a5d0a | [
"MIT"
] | null | null | null | worker/ttypes.py | apioo/fusio-worker-python | 345cfc0c679a2e30da47f199a26bb9feac7a5d0a | [
"MIT"
] | null | null | null | worker/ttypes.py | apioo/fusio-worker-python | 345cfc0c679a2e30da47f199a26bb9feac7a5d0a | [
"MIT"
] | null | null | null | #
# Autogenerated by Thrift Compiler (0.14.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 37.28821 | 141 | 0.550982 | 5,675 | 51,234 | 4.796652 | 0.042115 | 0.018919 | 0.034055 | 0.037618 | 0.795268 | 0.734947 | 0.689211 | 0.679035 | 0.671136 | 0.665773 | 0 | 0.021386 | 0.329176 | 51,234 | 1,373 | 142 | 37.315368 | 0.770636 | 0.017235 | 0 | 0.666964 | 1 | 0 | 0.030158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0875 | false | 0 | 0.004464 | 0.0375 | 0.179464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 |
b5b331a4b9992ed021aec0b8f431a1df30090448 | 98 | py | Python | pygipo/management/commands/__init__.py | felixhummel/pygipo | e7323de052e3c7f44ec4912bddcbb58abebcc6bf | [
"MIT"
] | null | null | null | pygipo/management/commands/__init__.py | felixhummel/pygipo | e7323de052e3c7f44ec4912bddcbb58abebcc6bf | [
"MIT"
] | null | null | null | pygipo/management/commands/__init__.py | felixhummel/pygipo | e7323de052e3c7f44ec4912bddcbb58abebcc6bf | [
"MIT"
] | null | null | null | # vim: set fileencoding=utf-8 filetype=python :
import logging
log = logging.getLogger(__name__) | 19.6 | 47 | 0.77551 | 13 | 98 | 5.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.122449 | 98 | 5 | 48 | 19.6 | 0.825581 | 0.459184 | 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 |
b5b6b11ffabc6c511331b0f5da3ad46e2f8d0861 | 68 | py | Python | __init__.py | halibot-extra/mastermind | 5ea3681e4d8d264f12cb3c26193d379f04a5d8f1 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | halibot-extra/mastermind | 5ea3681e4d8d264f12cb3c26193d379f04a5d8f1 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | halibot-extra/mastermind | 5ea3681e4d8d264f12cb3c26193d379f04a5d8f1 | [
"BSD-3-Clause"
] | null | null | null | from .mastermind import MastermindModule
Default = MastermindModule
| 22.666667 | 40 | 0.867647 | 6 | 68 | 9.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 68 | 2 | 41 | 34 | 0.967213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a917749cfaae5ec6e9358dec6abb5eb527b394a6 | 756 | py | Python | src/EcmsApi/tables/_base.py | Poseidon-Dev/ecms-api | b2c409d46afeddb73b374b7e80e425be5d09821b | [
"MIT"
] | null | null | null | src/EcmsApi/tables/_base.py | Poseidon-Dev/ecms-api | b2c409d46afeddb73b374b7e80e425be5d09821b | [
"MIT"
] | null | null | null | src/EcmsApi/tables/_base.py | Poseidon-Dev/ecms-api | b2c409d46afeddb73b374b7e80e425be5d09821b | [
"MIT"
] | null | null | null | import os
__all__ = ['TableMixin']
class TableMixin:
"""
Table Mixin class to get quick properties from the table
"""
NAMESPACE = os.getenv('ECMS_HOST')
FORIEGN_KEYS = {}
def __init__(self):
self.TABLE = self.__class__
self.TABLE_NAME = self.__class__.__name__
@property
... | 21 | 80 | 0.62037 | 98 | 756 | 4.377551 | 0.397959 | 0.104895 | 0.060606 | 0.09324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27381 | 756 | 35 | 81 | 21.6 | 0.781421 | 0.074074 | 0 | 0.217391 | 0 | 0 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.217391 | 0.652174 | 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 |
a956a86f044a4f722129f612693295a7f3586387 | 370 | py | Python | backend_sqlalchemy/backend_app/common/contents.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | backend_sqlalchemy/backend_app/common/contents.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | backend_sqlalchemy/backend_app/common/contents.py | jiz148/medical_app | 2f8b3f299ff6a87e62ac7483b6d2bac156a08874 | [
"MIT"
] | null | null | null | FORGET_MY_PASSWORD_SUBJECT = """Password Change Confirmation"""
FORGET_MY_PASSWORD_CONTENT = """hello {user},\n
Please click the following link to change your password:\n
http://jinchispace.com:5001/newpass?token={token}\n
T... | 61.666667 | 90 | 0.575676 | 40 | 370 | 5.175 | 0.725 | 0.077295 | 0.154589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016194 | 0.332432 | 370 | 5 | 91 | 74 | 0.821862 | 0 | 0 | 0 | 0 | 0 | 0.805405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.8 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a96bf3b03cc530da32423d0f425798d71bd9ee56 | 2,145 | py | Python | viusitemapparser/sitemap_file.py | VIU-one/VIU-Sitemap-Parser | 0c7662254f3730c01bd06537bda941cc4faca4c0 | [
"MIT"
] | 1 | 2021-07-28T09:29:17.000Z | 2021-07-28T09:29:17.000Z | viusitemapparser/sitemap_file.py | VIU-one/VIU-Sitemap-Parser | 0c7662254f3730c01bd06537bda941cc4faca4c0 | [
"MIT"
] | null | null | null | viusitemapparser/sitemap_file.py | VIU-one/VIU-Sitemap-Parser | 0c7662254f3730c01bd06537bda941cc4faca4c0 | [
"MIT"
] | null | null | null |
class SitemapFile:
sitemap_file_name = None
sitemap_contents = None
sitemap_headers = None
sitemap_source_type = None # remote or local
sitemap_file_error = None
sitemap_received = False
sitemap_lxml = None
sitemap_plain_text = None
sitemap_type = None # one of xml... | 31.544118 | 109 | 0.653147 | 256 | 2,145 | 5.09375 | 0.191406 | 0.219325 | 0.078221 | 0.080521 | 0.322086 | 0.259202 | 0.244632 | 0.067485 | 0 | 0 | 0 | 0 | 0.278788 | 2,145 | 67 | 110 | 32.014925 | 0.842922 | 0.049883 | 0 | 0.211538 | 0 | 0 | 0.043799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.019231 | 0.519231 | 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 |
a976d3448b7aecfaf9b3ce58c861d7e0169d65cc | 419 | py | Python | osmcsclassify/Config.py | jremillard/osm-changeset-classification | 61b21d526300c1152f7b29c0c93f2953dd1cd323 | [
"MIT"
] | 16 | 2018-03-05T14:21:53.000Z | 2021-07-11T23:16:21.000Z | osmcsclassify/Config.py | jremillard/osm-changeset-classification | 61b21d526300c1152f7b29c0c93f2953dd1cd323 | [
"MIT"
] | 2 | 2018-03-05T16:33:10.000Z | 2018-04-13T01:15:11.000Z | osmcsclassify/Config.py | jremillard/osm-changeset-classification | 61b21d526300c1152f7b29c0c93f2953dd1cd323 | [
"MIT"
] | 2 | 2018-03-14T13:06:34.000Z | 2020-09-12T01:50:21.000Z |
historyDbTempDirName = "/home/jason/nn/osm-changeset-classification/osm-planet"
historyDbFileName = "osm-planet/history.sqlite"
#historyPBF = "../osm-data/vermont.osh.pbf"
#historyPBF = 'osm-planet/history-180319.osm.pbf'
historyPBF = "/media/jason/E46AC1AC6AC17BB4/Remillard/maps/osm2017/history-180319.osm.pbf"
chan... | 41.9 | 102 | 0.799523 | 49 | 419 | 6.836735 | 0.510204 | 0.080597 | 0.095522 | 0.113433 | 0.274627 | 0.274627 | 0 | 0 | 0 | 0 | 0 | 0.103015 | 0.050119 | 419 | 9 | 103 | 46.555556 | 0.738693 | 0.214797 | 0 | 0 | 0 | 0 | 0.713846 | 0.713846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a97b1d6f3802497cc811a528b9874b5a10a2d067 | 136 | py | Python | listful/types.py | d1618033/listful | a24615a4675fe2c2acbfbcc3a0ef7011c3edce8b | [
"MIT"
] | 2 | 2020-07-12T16:31:19.000Z | 2020-07-13T01:55:08.000Z | listful/types.py | d1618033/listful | a24615a4675fe2c2acbfbcc3a0ef7011c3edce8b | [
"MIT"
] | null | null | null | listful/types.py | d1618033/listful | a24615a4675fe2c2acbfbcc3a0ef7011c3edce8b | [
"MIT"
] | null | null | null | import typing
ITEM = typing.TypeVar('ITEM')
FIELD = str
VALUE = typing.TypeVar('VALUE')
GETTER = typing.Callable[[ITEM, FIELD], VALUE]
| 19.428571 | 46 | 0.720588 | 18 | 136 | 5.444444 | 0.5 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 136 | 6 | 47 | 22.666667 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a98eb50fc7ecba50e0962f394c4361c8f9b675ac | 279 | py | Python | src/features/FER.py | pandov/myitacademy | e674816f325d68c84b908bf3429fda9b8d14e615 | [
"Apache-2.0"
] | 1 | 2021-08-03T12:30:59.000Z | 2021-08-03T12:30:59.000Z | src/features/FER.py | pandov/myitacademy | e674816f325d68c84b908bf3429fda9b8d14e615 | [
"Apache-2.0"
] | null | null | null | src/features/FER.py | pandov/myitacademy | e674816f325d68c84b908bf3429fda9b8d14e615 | [
"Apache-2.0"
] | null | null | null | import torchvision
from ..paths import PATH_DATA_PROCESSED
class FER(torchvision.datasets.ImageFolder):
def __init__(self, num_classes: int, **kwargs):
kwargs['root'] = PATH_DATA_PROCESSED.joinpath(f'FER{num_classes}').as_posix()
super().__init__(**kwargs)
| 31 | 85 | 0.727599 | 35 | 279 | 5.371429 | 0.685714 | 0.085106 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 279 | 8 | 86 | 34.875 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0.071685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
8d11f925b8e95f40b8642fed87db31eaede8fedf | 130 | py | Python | tests/features/test_evaluate_constant_expression.py | TomPretty/calculator | a9d5929a386ec9b70aedd8488fbb661f3e189aa5 | [
"MIT"
] | null | null | null | tests/features/test_evaluate_constant_expression.py | TomPretty/calculator | a9d5929a386ec9b70aedd8488fbb661f3e189aa5 | [
"MIT"
] | null | null | null | tests/features/test_evaluate_constant_expression.py | TomPretty/calculator | a9d5929a386ec9b70aedd8488fbb661f3e189aa5 | [
"MIT"
] | null | null | null | from calculator import evaluate
def test_evaluating_a_constant_expression():
source = "3"
assert evaluate(source) == 3
| 16.25 | 44 | 0.738462 | 16 | 130 | 5.75 | 0.8125 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.184615 | 130 | 7 | 45 | 18.571429 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d1fc36a587556244118d9547c8136af6baa8998 | 57 | py | Python | back/test.py | sresoft/thengrow | 2e55ce78ca1c2e5941113c80646e289e38948a4e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | back/test.py | sresoft/thengrow | 2e55ce78ca1c2e5941113c80646e289e38948a4e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | back/test.py | sresoft/thengrow | 2e55ce78ca1c2e5941113c80646e289e38948a4e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from minitwit import *
couch = Couch('sre.cloudant.com') | 19 | 33 | 0.736842 | 8 | 57 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 57 | 3 | 33 | 19 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 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 |
8d2d0951460fe2d3e1895a696608dfbae1f2f939 | 379 | py | Python | ex/ex7.py | bluethon/lpthw | cb5253d593cbde6f36f923fbe0bca3bca5784763 | [
"MIT"
] | null | null | null | ex/ex7.py | bluethon/lpthw | cb5253d593cbde6f36f923fbe0bca3bca5784763 | [
"MIT"
] | null | null | null | ex/ex7.py | bluethon/lpthw | cb5253d593cbde6f36f923fbe0bca3bca5784763 | [
"MIT"
] | null | null | null | from sys import argv
script, first, second, third = argv
print("The script is called:", script)
print("Your first variable is:", first)
print("Your second variable is:", second)
print("Your third variable is:", third)
# $ python ex13.py first 2nd 3rd
# The script is called: ex13.py
# Your first variable is: first
# ... | 25.266667 | 41 | 0.725594 | 60 | 379 | 4.583333 | 0.316667 | 0.218182 | 0.08 | 0.123636 | 0.174545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025397 | 0.168865 | 379 | 14 | 42 | 27.071429 | 0.847619 | 0.387863 | 0 | 0 | 0 | 0 | 0.402655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8d69631760718ebb027fec5987b96495decb9bd3 | 196 | py | Python | Chapter 1- Arrays and Strings/problem2/method1.py | lorderikir/Cracking-the-Coding-Interview | 431909132c5957b2c5afa4d8a5f7f8a8f2c5cb2c | [
"MIT"
] | 6 | 2017-02-19T05:17:51.000Z | 2017-09-15T06:10:45.000Z | Chapter 1- Arrays and Strings/problem2/method1.py | ericjiang97/Cracking-the-Coding-Interview | 431909132c5957b2c5afa4d8a5f7f8a8f2c5cb2c | [
"MIT"
] | null | null | null | Chapter 1- Arrays and Strings/problem2/method1.py | ericjiang97/Cracking-the-Coding-Interview | 431909132c5957b2c5afa4d8a5f7f8a8f2c5cb2c | [
"MIT"
] | null | null | null | def permutation(stringA, stringB):
listA = list(stringA)
listB = list(stringB)
listA.sort()
listB.sort()
if(listA != listB):
return False
else:
return True
| 19.6 | 34 | 0.586735 | 22 | 196 | 5.227273 | 0.590909 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30102 | 196 | 9 | 35 | 21.777778 | 0.839416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d919852a2202d9f80910fe22a32d2a8c5ce0b1c | 417 | py | Python | amfe/mor/hyper_red/__init__.py | sivasanarul/amfe_topopt | ba7fa1ce756e7ea6e4fd7b2bdb609b83bbfac472 | [
"BSD-3-Clause"
] | null | null | null | amfe/mor/hyper_red/__init__.py | sivasanarul/amfe_topopt | ba7fa1ce756e7ea6e4fd7b2bdb609b83bbfac472 | [
"BSD-3-Clause"
] | null | null | null | amfe/mor/hyper_red/__init__.py | sivasanarul/amfe_topopt | ba7fa1ce756e7ea6e4fd7b2bdb609b83bbfac472 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright (c) 2018 TECHNICAL UNIVERSITY OF MUNICH, DEPARTMENT OF MECHANICAL ENGINEERING, CHAIR OF APPLIED MECHANICS,
# BOLTZMANNSTRASSE 15, 85748 GARCHING/MUNICH, GERMANY, RIXEN@TUM.DE.
#
# Distributed under 3-Clause BSD license. See LICENSE file for more information.
#
"""
Hyper reduction module
"""
from .ecsw i... | 26.0625 | 118 | 0.769784 | 54 | 417 | 5.888889 | 0.796296 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036517 | 0.146283 | 417 | 15 | 119 | 27.8 | 0.856742 | 0.685851 | 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 |
8d99d1f8c6074f72d4742c63a48f3c777da7558f | 502 | py | Python | static/random_initializer.py | ajayKumar99/Dog-Breed-Classifier | ff50bf7891a10675028fcb943d2133302b46e835 | [
"MIT"
] | 1 | 2019-06-01T12:16:12.000Z | 2019-06-01T12:16:12.000Z | static/random_initializer.py | ajayKumar99/Dog-Breed-Classifier | ff50bf7891a10675028fcb943d2133302b46e835 | [
"MIT"
] | 11 | 2020-01-28T22:45:15.000Z | 2022-02-10T00:09:14.000Z | static/random_initializer.py | ajayKumar99/Dog-Breed-Classifier | ff50bf7891a10675028fcb943d2133302b46e835 | [
"MIT"
] | null | null | null | import random
def initializer():
i = random.randint(0 , 119)
while True:
j = random.randint(0 , 119)
if i != j:
break
while True:
z = random.randint(0 , 119)
if z != i and z != j:
break
k = random.randint(0 ,2)
while True:
l = random.r... | 21.826087 | 35 | 0.442231 | 71 | 502 | 3.126761 | 0.28169 | 0.351351 | 0.378378 | 0.22973 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 0.442231 | 502 | 22 | 36 | 22.818182 | 0.728571 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 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 |
a5c226b7ff484fc18a6216be10622e778cca5c58 | 2,996 | py | Python | leetcode/188 best-time-to-buy-and-sell-stock-iv.py | xiewendan/algorithm | 64016100dc5122603be468bef90d62edcd1846ec | [
"MIT"
] | null | null | null | leetcode/188 best-time-to-buy-and-sell-stock-iv.py | xiewendan/algorithm | 64016100dc5122603be468bef90d62edcd1846ec | [
"MIT"
] | null | null | null | leetcode/188 best-time-to-buy-and-sell-stock-iv.py | xiewendan/algorithm | 64016100dc5122603be468bef90d62edcd1846ec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# __author__ = xiaobao
# __date__ = 2019/11/13 12:39:48
# desc: desc
# 给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。
# 设计一个算法来计算你所能获取的最大利润。你最多可以完成 k 笔交易。
# 注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。
# 示例 1:
# 输入: [2,4,1], k = 2
# 输出: 2
# 解释: 在第 1 天 (股票价格 = 2) 的时候买入,在第 2 天 (股票价格 = 4) 的时候卖出,这笔交易所能获得利润 = 4-2 ... | 26.75 | 88 | 0.546729 | 556 | 2,996 | 2.829137 | 0.181655 | 0.041958 | 0.307057 | 0.198347 | 0.505404 | 0.39288 | 0.245391 | 0.163382 | 0.157661 | 0.144946 | 0 | 0.106779 | 0.246662 | 2,996 | 112 | 89 | 26.75 | 0.590164 | 0.265354 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.019608 | false | 0 | 0.019608 | 0 | 0.117647 | 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 |
a5ebe1344536e6c6903606e4bea6f0a6ea0bd922 | 1,090 | py | Python | setup.py | LaCiberReserva/api-python-sdk | be56ca3b9aaacdbeaedce6cf6e0be42a67a4448b | [
"MIT"
] | 6 | 2016-09-07T15:16:45.000Z | 2021-01-13T16:36:24.000Z | setup.py | LaCiberReserva/api-python-sdk | be56ca3b9aaacdbeaedce6cf6e0be42a67a4448b | [
"MIT"
] | 3 | 2015-04-28T15:47:27.000Z | 2015-04-29T18:13:26.000Z | setup.py | LaCiberReserva/api-python-sdk | be56ca3b9aaacdbeaedce6cf6e0be42a67a4448b | [
"MIT"
] | 6 | 2015-05-18T14:56:51.000Z | 2021-09-29T22:07:29.000Z | from setuptools import setup, find_packages
setup(
name='blueliv-python-sdk',
version='2.3.0',
description='Blueliv API SDK for Python',
url='https://github.com/Blueliv/api-python-sdk',
author='Blueliv',
author_email='community@blueliv.com',
license='MIT',
classifiers=[
'Develop... | 34.0625 | 77 | 0.612844 | 122 | 1,090 | 5.434426 | 0.516393 | 0.200603 | 0.263952 | 0.156863 | 0.081448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029586 | 0.224771 | 1,090 | 31 | 78 | 35.16129 | 0.75503 | 0 | 0 | 0 | 0 | 0 | 0.588991 | 0.03945 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 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 |
a5ecc124563c5c4c4b6090dd445c7416620d34ee | 298 | py | Python | sample_equations.py | lsDantas/Numerical-Analysis | fed50b3a1363f4b8a8afd6a289fe064b0fffb351 | [
"MIT"
] | null | null | null | sample_equations.py | lsDantas/Numerical-Analysis | fed50b3a1363f4b8a8afd6a289fe064b0fffb351 | [
"MIT"
] | null | null | null | sample_equations.py | lsDantas/Numerical-Analysis | fed50b3a1363f4b8a8afd6a289fe064b0fffb351 | [
"MIT"
] | null | null | null | # Sample Equations
#
# Description: Sample functions (and their derivatives)
# to be used with the root-finding algorithms.
#
#Equation 1
def eq1(x):
return x**5 - 5*x + 1
def eq1_d(x):
return 5*(x**4) - 5
# Equation 2
def eq2(x):
return (pow(x, 2) - 4)
def eq2_d(x):
return 2*x | 15.684211 | 55 | 0.627517 | 53 | 298 | 3.490566 | 0.509434 | 0.151351 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065502 | 0.231544 | 298 | 19 | 56 | 15.684211 | 0.742358 | 0.456376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a5fef01648dc611207e339036772227676f6eba2 | 74 | py | Python | mapperpy/exceptions.py | cohirer2019/MapperPy | 15829059c697aa41552fc728ece4e6f1995f789d | [
"BSD-3-Clause"
] | 2 | 2018-01-09T20:58:58.000Z | 2018-01-10T07:46:28.000Z | mapperpy/exceptions.py | grr07/MapperPy | 3081ca00965bb86c80e4dbb0fc3dcfec344c88cf | [
"BSD-3-Clause"
] | null | null | null | mapperpy/exceptions.py | grr07/MapperPy | 3081ca00965bb86c80e4dbb0fc3dcfec344c88cf | [
"BSD-3-Clause"
] | 4 | 2017-05-21T16:40:14.000Z | 2020-10-20T20:19:45.000Z | __author__ = 'lgrech'
class ConfigurationException(Exception):
pass
| 12.333333 | 40 | 0.756757 | 6 | 74 | 8.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 74 | 5 | 41 | 14.8 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5704fb4289908f61ad13e5b2f0c6b4f31425663d | 516 | py | Python | ml_scraping/src/NLTK/tutorial/lemmatizing.py | josetorrs/thee-flying-chicken | 9145e6a10ae07474e42abba68049022df6f1804f | [
"MIT"
] | 2 | 2018-11-29T04:00:03.000Z | 2018-12-22T18:02:05.000Z | ml_scraping/src/NLTK/tutorial/lemmatizing.py | josetorrs/thee-flying-chicken | 9145e6a10ae07474e42abba68049022df6f1804f | [
"MIT"
] | 12 | 2018-12-02T19:14:36.000Z | 2019-03-05T01:51:46.000Z | ml_scraping/src/NLTK/tutorial/lemmatizing.py | josetorrs/thee-flying-chicken | 9145e6a10ae07474e42abba68049022df6f1804f | [
"MIT"
] | 1 | 2019-02-07T13:37:55.000Z | 2019-02-07T13:37:55.000Z | from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
'''
print(lemmatizer.lemmatize("cacti"))
print(lemmatizer.lemmatize("geese"))
print(lemmatizer.lemmatize("rocks"))
print(lemmatizer.lemmatize("python"))
'''
#default pos="n"(noun)
#"a" = adjective, "v" = verb
#lemmas give back actual words, usual... | 28.666667 | 60 | 0.742248 | 62 | 516 | 6.177419 | 0.5 | 0.313316 | 0.501305 | 0.099217 | 0.146214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075581 | 516 | 17 | 61 | 30.352941 | 0.802935 | 0.207364 | 0 | 0 | 0 | 0 | 0.076305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
570f9962c8fe470c156c3fea6c089465ce8963c9 | 29 | py | Python | Curso Python Completo - Udemy/Teste/conjuntos.py | Cauenumo/Python | 6414ee2013c651e9d45cd328a381a476c6c9073b | [
"Apache-2.0"
] | null | null | null | Curso Python Completo - Udemy/Teste/conjuntos.py | Cauenumo/Python | 6414ee2013c651e9d45cd328a381a476c6c9073b | [
"Apache-2.0"
] | null | null | null | Curso Python Completo - Udemy/Teste/conjuntos.py | Cauenumo/Python | 6414ee2013c651e9d45cd328a381a476c6c9073b | [
"Apache-2.0"
] | null | null | null | s = set()
s.add(2)
print(s)
| 5.8 | 9 | 0.517241 | 7 | 29 | 2.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.206897 | 29 | 4 | 10 | 7.25 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
571c60607c3126796a0b903de02a2a1b9add8bc2 | 301 | py | Python | api/drinks/models/__init__.py | gthole/drink-stash | 873393fddeaa8f58a8b70d082fbff60175901f97 | [
"MIT"
] | 7 | 2019-03-11T22:43:38.000Z | 2022-02-21T13:18:39.000Z | api/drinks/models/__init__.py | gthole/drink-stash | 873393fddeaa8f58a8b70d082fbff60175901f97 | [
"MIT"
] | 62 | 2018-10-13T17:39:07.000Z | 2022-02-26T06:21:41.000Z | api/drinks/models/__init__.py | gthole/drink-stash | 873393fddeaa8f58a8b70d082fbff60175901f97 | [
"MIT"
] | 1 | 2020-10-31T16:10:59.000Z | 2020-10-31T16:10:59.000Z | from .activities import Activity
from .books import Book, BookUser
from .recipes import Quantity, Recipe
from .lists import UserList, UserListRecipe
from .users import UserIngredient, Profile
from .comments import Comment
from .ingredients import Ingredient
from .uom import Uom
from .tags import Tag
| 30.1 | 43 | 0.82392 | 40 | 301 | 6.2 | 0.575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13289 | 301 | 9 | 44 | 33.444444 | 0.950192 | 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 | 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 |
571f2e250abacba65cb4655aa03ae22189d49506 | 6,213 | py | Python | tests/test_pmd.py | believeinlain/asynch-cv | d7f152af44185d6e716dbaf33aed47f16031fac4 | [
"MIT"
] | 1 | 2021-02-25T23:05:41.000Z | 2021-02-25T23:05:41.000Z | tests/test_pmd.py | believeinlain/asynch-cv | d7f152af44185d6e716dbaf33aed47f16031fac4 | [
"MIT"
] | 1 | 2021-02-23T22:54:13.000Z | 2021-02-23T22:54:13.000Z | tests/test_pmd.py | believeinlain/asynch-cv | d7f152af44185d6e716dbaf33aed47f16031fac4 | [
"MIT"
] | null | null | null | """Test of pmd_consumer functionality, with a selection of data."""
from os.path import join, expanduser
from async_cv.play_file import play_file
from async_cv.event_processing.pmd_consumer import pmd_consumer
data_root = 'OneDrive\\Documents\\NIWC\\NeuroComp\\boat_tests\\'
annot_root = 'OneDrive\\Documents\\NIWC\\N... | 43.753521 | 111 | 0.634798 | 976 | 6,213 | 3.768443 | 0.215164 | 0.039152 | 0.092442 | 0.043502 | 0.564437 | 0.480696 | 0.429581 | 0.406199 | 0.401305 | 0.401305 | 0 | 0.267684 | 0.21954 | 6,213 | 141 | 112 | 44.06383 | 0.490823 | 0.228714 | 0 | 0.078431 | 0 | 0.068627 | 0.509462 | 0.420101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9398ac2bf45bb5834bc0471148e5e943898e92d4 | 1,902 | py | Python | MakeMytripChallenge/script/edalevel1.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/edalevel1.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/edalevel1.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pylab as plt
train_data = pd.read_csv("../data/train.csv")
train_data_len=len(train_data)
test_data=pd.read_csv("../data/test.csv")
test_data_len=len(test_data)
data=pd.concat(train_data,test_data)
## pd.read_csv("../data/test.csv")
#print train_data.info()
'... | 24.384615 | 72 | 0.65142 | 376 | 1,902 | 3.156915 | 0.31383 | 0.2123 | 0.188711 | 0.10615 | 0.348778 | 0.119629 | 0.062342 | 0.062342 | 0.062342 | 0.062342 | 0 | 0.075549 | 0.23449 | 1,902 | 77 | 73 | 24.701299 | 0.739698 | 0.23081 | 0 | 0.25 | 0 | 0 | 0.050432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
939e14f60648a84c3d16b33291c7708d501fcdcc | 284 | py | Python | setup.py | lopatinay/psycopg2_error_handler | becbaa4b05da23e3998bf90dd88863915fbdc09e | [
"MIT"
] | null | null | null | setup.py | lopatinay/psycopg2_error_handler | becbaa4b05da23e3998bf90dd88863915fbdc09e | [
"MIT"
] | null | null | null | setup.py | lopatinay/psycopg2_error_handler | becbaa4b05da23e3998bf90dd88863915fbdc09e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="psycopg2_error_handler",
install_requires=[
"psycopg-binary >= 3.0",
],
packages=["psycopg2_error"],
version='0.0.4',
description='Psycopg2 Error Handler',
author='Alexander Lopatin',
license='MIT',
)
| 20.285714 | 41 | 0.640845 | 31 | 284 | 5.741935 | 0.741935 | 0.219101 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0.214789 | 284 | 13 | 42 | 21.846154 | 0.762332 | 0 | 0 | 0 | 0 | 0 | 0.366197 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
93a77d30c70d975852ca4e44274c5118d52260bf | 151 | py | Python | backend/api/urls.py | ChansongJo/PsychoLingExperiment | 0d731b0552a92127a29df7b5929dcbc54e6c81fb | [
"MIT"
] | null | null | null | backend/api/urls.py | ChansongJo/PsychoLingExperiment | 0d731b0552a92127a29df7b5929dcbc54e6c81fb | [
"MIT"
] | 7 | 2020-07-23T07:21:19.000Z | 2021-05-30T04:48:57.000Z | backend/api/urls.py | ChansongJo/PsychoLingExperiment | 0d731b0552a92127a29df7b5929dcbc54e6c81fb | [
"MIT"
] | null | null | null | from django.urls import path, include
from backend.api.views import bulkUploadFromFile
urlpatterns = [
path('bulk_upload/', bulkUploadFromFile)
]
| 21.571429 | 48 | 0.781457 | 17 | 151 | 6.882353 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13245 | 151 | 6 | 49 | 25.166667 | 0.89313 | 0 | 0 | 0 | 0 | 0 | 0.07947 | 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 |
93fc78c30882dacada890972ae5e370f7ddfb618 | 196 | py | Python | app/__init__.py | thomasbhatia/kigata | e98c0604f7003452e8be453750697eff0bf12f08 | [
"BSD-3-Clause"
] | 1 | 2017-02-03T21:28:38.000Z | 2017-02-03T21:28:38.000Z | app/__init__.py | thomasbhatia/kigata | e98c0604f7003452e8be453750697eff0bf12f08 | [
"BSD-3-Clause"
] | 1 | 2016-12-25T11:59:16.000Z | 2018-03-30T11:22:51.000Z | app/__init__.py | thomasbhatia/kigata | e98c0604f7003452e8be453750697eff0bf12f08 | [
"BSD-3-Clause"
] | null | null | null | from . import factory
def create_app(settings_override=None):
# Returns the app API application instance
app = factory.create_app(__name__, __path__, settings_override)
return app
| 19.6 | 67 | 0.755102 | 25 | 196 | 5.44 | 0.68 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 196 | 9 | 68 | 21.777778 | 0.85 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e202e2c2838f8bce3562912eb1428459943e6fe | 345 | py | Python | text_classification/train.py | Ronalmoo/nlp_with_torch | 53d28e0f5cb60443ab476a4dc639f3f57d2cd718 | [
"MIT"
] | null | null | null | text_classification/train.py | Ronalmoo/nlp_with_torch | 53d28e0f5cb60443ab476a4dc639f3f57d2cd718 | [
"MIT"
] | null | null | null | text_classification/train.py | Ronalmoo/nlp_with_torch | 53d28e0f5cb60443ab476a4dc639f3f57d2cd718 | [
"MIT"
] | null | null | null | import argparse
import torch
import torch.nn as nn
import torch.optim as optim
from pathlib import Path
from tqdm import tqdm
from torch.nn.utils import clip_grad_norm_
from torch.optim.lr_scheduler import ReduceLROnPlateau
from torch.utils.tensorboard import SummaryWriter
from data_loader import DataLoader
from model.... | 28.75 | 54 | 0.857971 | 53 | 345 | 5.490566 | 0.471698 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 345 | 11 | 55 | 31.363636 | 0.954098 | 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 |
9e215e4ee29faa4b00acec77ef8f7076aa65aaeb | 59 | py | Python | diventi/tooltips/__init__.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 2 | 2019-06-27T16:00:17.000Z | 2020-08-14T07:46:05.000Z | diventi/tooltips/__init__.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 26 | 2020-02-15T22:39:35.000Z | 2022-02-19T21:09:01.000Z | diventi/tooltips/__init__.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 1 | 2021-11-12T22:30:15.000Z | 2021-11-12T22:30:15.000Z | default_app_config = 'diventi.tooltips.apps.TooltipsConfig' | 59 | 59 | 0.864407 | 7 | 59 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 59 | 1 | 59 | 59 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.6 | 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 |
f530f5246433b7349eaa49877ae725fc25612c34 | 419 | py | Python | docs/02.AI_ML/code-1805/Day05all/cc1.py | mheanng/PythonNote | e3e5ede07968fab0a45f6ac4db96e62092c17026 | [
"Apache-2.0"
] | 2 | 2020-04-09T05:56:23.000Z | 2021-03-25T18:42:36.000Z | docs/02.AI_ML/code-1805/Day05all/cc1.py | mheanng/PythonNote | e3e5ede07968fab0a45f6ac4db96e62092c17026 | [
"Apache-2.0"
] | 22 | 2020-04-09T06:09:14.000Z | 2021-01-06T01:05:32.000Z | docs/02.AI_ML/code-1805/Day05all/cc1.py | mheanng/PythonNote | e3e5ede07968fab0a45f6ac4db96e62092c17026 | [
"Apache-2.0"
] | 6 | 2020-03-09T07:19:21.000Z | 2021-01-05T23:23:42.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import functools
def f1(x):
return x + 3
def f2(x):
return x * 6
def f3(x):
return x - 9
def fc(*fs):
return functools.reduce(
lambda fa, fb: lambda x: fa(fb(x)), *fs)
a = 1
b = f3(f2(f1(a)))
print(b)
c = functools.reduce(
... | 13.966667 | 56 | 0.568019 | 77 | 419 | 3.025974 | 0.38961 | 0.06867 | 0.103004 | 0.090129 | 0.472103 | 0.317597 | 0.317597 | 0.317597 | 0.317597 | 0.317597 | 0 | 0.053797 | 0.245823 | 419 | 29 | 57 | 14.448276 | 0.683544 | 0.050119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.210526 | 0.526316 | 0.157895 | 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 |
f5395b0d73303f8d274b9e326336a2a76f976c99 | 2,969 | py | Python | backend/django/KlasHelper/model.py | Ryulth/KlasHelperRemaster | 4eb8e5bb3e3fbfbd1de63470dc0cb1e078eb34e0 | [
"BSD-3-Clause"
] | 7 | 2018-09-19T02:06:41.000Z | 2019-12-20T13:32:00.000Z | backend/django/KlasHelper/model.py | Ryulth/KlasHelperRemaster | 4eb8e5bb3e3fbfbd1de63470dc0cb1e078eb34e0 | [
"BSD-3-Clause"
] | 11 | 2019-03-21T16:23:09.000Z | 2019-04-25T05:06:38.000Z | backend/django/KlasHelper/model.py | Ryulth/KlasHelperRemaster | 4eb8e5bb3e3fbfbd1de63470dc0cb1e078eb34e0 | [
"BSD-3-Clause"
] | 4 | 2019-03-21T12:57:56.000Z | 2020-01-18T13:17:29.000Z | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free ... | 36.654321 | 104 | 0.718087 | 415 | 2,969 | 5 | 0.284337 | 0.159036 | 0.182169 | 0.242892 | 0.568193 | 0.499759 | 0.476627 | 0.39759 | 0.39759 | 0.293012 | 0 | 0.025851 | 0.179185 | 2,969 | 80 | 105 | 37.1125 | 0.825605 | 0.162344 | 0 | 0.381818 | 1 | 0 | 0.018571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.818182 | 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 |
f552c8ca488deb93fbeda25871d6330722400796 | 116 | py | Python | gittip/__init__.py | gchiam/gittip-py | 2e84067c545d695a323ccaf9c368dff80eb3b1bc | [
"MIT"
] | null | null | null | gittip/__init__.py | gchiam/gittip-py | 2e84067c545d695a323ccaf9c368dff80eb3b1bc | [
"MIT"
] | 1 | 2021-03-25T21:43:46.000Z | 2021-03-25T21:43:46.000Z | gittip/__init__.py | gchiam/gittip-py | 2e84067c545d695a323ccaf9c368dff80eb3b1bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = """Gordon Chiam"""
__email__ = 'gordon.chiam@gmail.com'
__version__ = '0.1.0'
| 19.333333 | 36 | 0.62931 | 15 | 116 | 4.066667 | 0.8 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 116 | 5 | 37 | 23.2 | 0.57 | 0.181034 | 0 | 0 | 0 | 0 | 0.419355 | 0.236559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f593f55b43b326918453c5d3c8a20b1b44abf214 | 1,057 | py | Python | convlab/modules/nlu/multiwoz/error.py | ngduyanhece/ConvLab | a04582a77537c1a706fbf64715baa9ad0be1301a | [
"MIT"
] | 405 | 2019-06-17T05:38:47.000Z | 2022-03-29T15:16:51.000Z | convlab/modules/nlu/multiwoz/error.py | ngduyanhece/ConvLab | a04582a77537c1a706fbf64715baa9ad0be1301a | [
"MIT"
] | 69 | 2019-06-20T22:57:41.000Z | 2022-03-04T12:12:07.000Z | convlab/modules/nlu/multiwoz/error.py | ngduyanhece/ConvLab | a04582a77537c1a706fbf64715baa9ad0be1301a | [
"MIT"
] | 124 | 2019-06-17T05:11:23.000Z | 2021-12-31T05:58:18.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""
"""
class ErrorNLU:
"""Base model for generating NLU error."""
def __init__(self, act_type_rate=0.0, slot_rate=0.0):
"""
Args:
act_type_rate (float): The error rate applied on dialog act type.
... | 28.567568 | 77 | 0.59035 | 137 | 1,057 | 4.321168 | 0.291971 | 0.106419 | 0.130068 | 0.121622 | 0.459459 | 0.317568 | 0.317568 | 0.317568 | 0.317568 | 0.317568 | 0 | 0.005563 | 0.319773 | 1,057 | 36 | 78 | 29.361111 | 0.817803 | 0.513718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.375 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
19117f34054e06a743ed6ab2414e3efe13711b5f | 1,277 | py | Python | utils/device_util.py | zhangxdnw/pc_remote_android | 325b982e8690a6b4928ca59921bfef32e523fbdc | [
"MIT"
] | null | null | null | utils/device_util.py | zhangxdnw/pc_remote_android | 325b982e8690a6b4928ca59921bfef32e523fbdc | [
"MIT"
] | null | null | null | utils/device_util.py | zhangxdnw/pc_remote_android | 325b982e8690a6b4928ca59921bfef32e523fbdc | [
"MIT"
] | 1 | 2021-12-02T19:37:55.000Z | 2021-12-02T19:37:55.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : device_util.py
@Contact : 379327479@qq.com
@License : MIT
@Modify Time @Author @Version @Description
------------ ------- -------- -----------
2021/10/25 10:23 zxd 1.0 None
"""
from adbutils import adb
imp... | 21.644068 | 78 | 0.615505 | 155 | 1,277 | 4.890323 | 0.470968 | 0.094987 | 0.036939 | 0.055409 | 0.07124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029234 | 0.223179 | 1,277 | 58 | 79 | 22.017241 | 0.734879 | 0.256852 | 0 | 0 | 0 | 0 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.125 | 0.125 | 0.666667 | 0.041667 | 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 |
1932d64bc9e05e1c6252391680ff7633a3603ba2 | 280 | py | Python | func/model/status_processing.py | leonidasnascimento/sosi_func0007_company_finacial_report | 07cfc0fec27be36c6e74a4fb28714241b536ee3a | [
"Apache-2.0"
] | null | null | null | func/model/status_processing.py | leonidasnascimento/sosi_func0007_company_finacial_report | 07cfc0fec27be36c6e74a4fb28714241b536ee3a | [
"Apache-2.0"
] | 4 | 2020-01-21T12:23:43.000Z | 2021-06-02T00:53:07.000Z | func/model/status_processing.py | leonidasnascimento/sosi_func0009_company_financial_history | 09853cef5db348bdec98d45d62cb10792aeb6749 | [
"Apache-2.0"
] | null | null | null | class StatusProcessing():
success: bool
message: str
err_stack: str
def __init__(self, _success: bool, _message: str, _err_stack: str = ""):
self.success = _success
self.message = _message
self.err_stack = _err_stack
pass
pass | 25.454545 | 76 | 0.621429 | 32 | 280 | 5 | 0.375 | 0.2 | 0.225 | 0.2625 | 0.4 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0.292857 | 280 | 11 | 77 | 25.454545 | 0.808081 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
194479747ae092634db8f1a11755259ce6781f70 | 137 | py | Python | aiocloudflare/api/zones/amp/sxg/sxg.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 2 | 2021-09-14T13:20:55.000Z | 2022-02-24T14:18:24.000Z | aiocloudflare/api/zones/amp/sxg/sxg.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 46 | 2021-09-08T08:39:45.000Z | 2022-03-29T12:31:05.000Z | aiocloudflare/api/zones/amp/sxg/sxg.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 1 | 2021-12-30T23:02:23.000Z | 2021-12-30T23:02:23.000Z | from aiocloudflare.commons.auth import Auth
class Sxg(Auth):
_endpoint1 = "zones"
_endpoint2 = "amp/sxg"
_endpoint3 = None
| 17.125 | 43 | 0.693431 | 16 | 137 | 5.75 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.211679 | 137 | 7 | 44 | 19.571429 | 0.824074 | 0 | 0 | 0 | 0 | 0 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
194af200ff9330302f3f3fd0408bdb67258731d7 | 2,914 | py | Python | attendees/persons/models/attending.py | xjlin0/-attendees30 | 48a2f2cbec11ec471d7a40d24903b48890feebf9 | [
"MIT"
] | null | null | null | attendees/persons/models/attending.py | xjlin0/-attendees30 | 48a2f2cbec11ec471d7a40d24903b48890feebf9 | [
"MIT"
] | null | null | null | attendees/persons/models/attending.py | xjlin0/-attendees30 | 48a2f2cbec11ec471d7a40d24903b48890feebf9 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import ValidationError
from django.urls import reverse
from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.postgres.fields.jsonb import JSONField
from django.contrib.postgres.indexes import GinIndex
from django.utils.functional impo... | 47 | 171 | 0.726836 | 357 | 2,914 | 5.809524 | 0.456583 | 0.033751 | 0.02459 | 0.024108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004117 | 0.166438 | 2,914 | 61 | 172 | 47.770492 | 0.849732 | 0.092999 | 0 | 0.086957 | 0 | 0.021739 | 0.166793 | 0.030705 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.152174 | false | 0 | 0.195652 | 0.130435 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1954a4ebf580fdf8e0681f8359ed4db8787ecea2 | 10,506 | py | Python | training_dataset_maker1.py | deepakrana47/DT-RAE | bf8f193d7fda262691219360c94e9886229f8d2b | [
"Apache-2.0"
] | 1 | 2018-10-16T02:50:41.000Z | 2018-10-16T02:50:41.000Z | training_dataset_maker1.py | deepakrana47/DT-RAE | bf8f193d7fda262691219360c94e9886229f8d2b | [
"Apache-2.0"
] | null | null | null | training_dataset_maker1.py | deepakrana47/DT-RAE | bf8f193d7fda262691219360c94e9886229f8d2b | [
"Apache-2.0"
] | null | null | null | import os
from utility1 import extract_batchfeature_using_senna, get_parents, get_dep, get_words_id, pdep_2_deporder_dep, dep_2_hid_var
from score_calc import get_rae_score_by_wd, get_rae_score_by_wd_dep
from dynamic_pooling import get_dynamic_pool
from text_process1 import line_processing, get_n_feature
import numpy a... | 35.493243 | 173 | 0.589187 | 1,426 | 10,506 | 4.050491 | 0.123422 | 0.026316 | 0.019391 | 0.026316 | 0.787396 | 0.753809 | 0.698061 | 0.685249 | 0.633483 | 0.577216 | 0 | 0.014706 | 0.288026 | 10,506 | 296 | 174 | 35.493243 | 0.757487 | 0.027698 | 0 | 0.75 | 0 | 0.007813 | 0.091159 | 0.062506 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019531 | 0.03125 | null | null | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
272abb420655213e7bf48eaf6919c819cdcffe0f | 51 | py | Python | src/setting.py | willyii/CarND-Advanced-Lane-Lines | 09e63559314e88d5271761f1ca9d4fb1dfb7c3b9 | [
"MIT"
] | null | null | null | src/setting.py | willyii/CarND-Advanced-Lane-Lines | 09e63559314e88d5271761f1ca9d4fb1dfb7c3b9 | [
"MIT"
] | null | null | null | src/setting.py | willyii/CarND-Advanced-Lane-Lines | 09e63559314e88d5271761f1ca9d4fb1dfb7c3b9 | [
"MIT"
] | null | null | null | CALIBRATION_PATH = "./param/calibration_param.npz"
| 25.5 | 50 | 0.803922 | 6 | 51 | 6.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 51 | 1 | 51 | 51 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.568627 | 0.568627 | 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 |
27374a46a513b5993794c0b268bbbbe4c66d4f3d | 14,428 | py | Python | alex/components/hub/wsio_messages_pb2.py | cifkao/alex | 9573ef5d24919b2b368b35f4dd02aa98f35f0f59 | [
"Apache-2.0"
] | 184 | 2015-02-11T04:14:41.000Z | 2022-03-24T21:43:58.000Z | alex/components/hub/wsio_messages_pb2.py | cifkao/alex | 9573ef5d24919b2b368b35f4dd02aa98f35f0f59 | [
"Apache-2.0"
] | 69 | 2015-01-11T04:57:22.000Z | 2019-04-24T10:25:56.000Z | alex/components/hub/wsio_messages_pb2.py | cifkao/alex | 9573ef5d24919b2b368b35f4dd02aa98f35f0f59 | [
"Apache-2.0"
] | 61 | 2015-03-04T10:52:13.000Z | 2022-03-04T12:14:06.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: alex/components/hub/wsio_messages.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import descriptor_pb2
# @@protoc_... | 37.769634 | 1,508 | 0.734405 | 1,879 | 14,428 | 5.407131 | 0.103779 | 0.05748 | 0.040059 | 0.054626 | 0.750787 | 0.719685 | 0.652559 | 0.624114 | 0.534252 | 0.509646 | 0 | 0.042988 | 0.134184 | 14,428 | 381 | 1,509 | 37.868766 | 0.770333 | 0.039021 | 0 | 0.672566 | 1 | 0.011799 | 0.160664 | 0.131144 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011799 | 0 | 0.056047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
275035b6adeac1d1831948a8af3a764ccc495e55 | 121 | py | Python | opentutorials_python2/opentutorials_python2/20_Object_and_Module/1_Object_and_Module.py | dongrami0425/Python_OpenCV-Study | c7faee4f63720659280c3222ba5abfe27740d1f4 | [
"MIT"
] | null | null | null | opentutorials_python2/opentutorials_python2/20_Object_and_Module/1_Object_and_Module.py | dongrami0425/Python_OpenCV-Study | c7faee4f63720659280c3222ba5abfe27740d1f4 | [
"MIT"
] | null | null | null | opentutorials_python2/opentutorials_python2/20_Object_and_Module/1_Object_and_Module.py | dongrami0425/Python_OpenCV-Study | c7faee4f63720659280c3222ba5abfe27740d1f4 | [
"MIT"
] | null | null | null | # < 객체와 모듈 >
import lib # 모듈을 가져올 때 import 모듈_명
obj = lib.A() # lib라는 모듈의 A클래스에 대한 인스턴스화
print(obj.a())
| 17.285714 | 46 | 0.553719 | 21 | 121 | 3.142857 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330579 | 121 | 6 | 47 | 20.166667 | 0.814815 | 0.471074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 |
27652612bbe951c335e00b18458de63afe679996 | 2,593 | py | Python | MascotasPasto/afiliados/migrations/0001_initial.py | FabianBedoya/Frameworks-7a-2020B | 0828dd00cd05626216b856ca6060da70bb773986 | [
"MIT"
] | null | null | null | MascotasPasto/afiliados/migrations/0001_initial.py | FabianBedoya/Frameworks-7a-2020B | 0828dd00cd05626216b856ca6060da70bb773986 | [
"MIT"
] | null | null | null | MascotasPasto/afiliados/migrations/0001_initial.py | FabianBedoya/Frameworks-7a-2020B | 0828dd00cd05626216b856ca6060da70bb773986 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-30 20:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Paises',
fields=[
... | 46.303571 | 142 | 0.589279 | 251 | 2,593 | 5.944223 | 0.290837 | 0.100536 | 0.120643 | 0.160858 | 0.732574 | 0.697721 | 0.697721 | 0.697721 | 0.697721 | 0.697721 | 0 | 0.017923 | 0.268415 | 2,593 | 55 | 143 | 47.145455 | 0.768582 | 0.017354 | 0 | 0.625 | 1 | 0 | 0.139827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
27b2cdcf2ef39b359a6cd6aa1c9eb5c70814dc30 | 191 | py | Python | src/btt/questions/admin.py | kevinkissi/basic-tech-tips-webapp | ea6443df772ca1c766ab42ab799e958b3e1d2ded | [
"MIT"
] | 116 | 2016-02-15T00:41:02.000Z | 2022-02-12T09:01:53.000Z | quora/questions/admin.py | dynamikcodez/quora-clone | c8ff102a323716a494dc1b7a7f9a10a15bc9d85f | [
"MIT"
] | 3 | 2016-04-21T00:37:11.000Z | 2020-02-14T22:08:29.000Z | quora/questions/admin.py | dynamikcodez/quora-clone | c8ff102a323716a494dc1b7a7f9a10a15bc9d85f | [
"MIT"
] | 65 | 2016-05-28T00:04:44.000Z | 2022-03-23T09:46:53.000Z | from django.contrib import admin
from django.apps import apps
questions = apps.get_app_config('questions')
for model_name, model in questions.models.items():
admin.site.register(model)
| 23.875 | 50 | 0.78534 | 28 | 191 | 5.25 | 0.642857 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120419 | 191 | 7 | 51 | 27.285714 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.04712 | 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 |
27b4e3425ec19e5c0f18c1a9b56400c676dcade2 | 244 | py | Python | view/runnable/showMultiPlayerBoard.py | achrafJhidri/LeCompteEstBon | 06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90 | [
"MIT"
] | null | null | null | view/runnable/showMultiPlayerBoard.py | achrafJhidri/LeCompteEstBon | 06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90 | [
"MIT"
] | null | null | null | view/runnable/showMultiPlayerBoard.py | achrafJhidri/LeCompteEstBon | 06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90 | [
"MIT"
] | null | null | null | from view.runnable.Runnable import Runnable
class showMultiPlayerBoard(Runnable):
def __init__(self,vue, sec):
Runnable.__init__(self,vue)
self.sec = sec
def run(self):
self.vue.showMultiPlayerBoard(self.sec) | 22.181818 | 47 | 0.692623 | 29 | 244 | 5.551724 | 0.413793 | 0.130435 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209016 | 244 | 11 | 47 | 22.181818 | 0.834197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
27c6b6cee2e58fdca81224648f1899984dc4c639 | 610 | py | Python | delivery/pdf_processor/preprocessor/__init__.py | sidmishraw/scp | dd67647a4f85dd7a842e8b3ab97940bfde3dc6c7 | [
"BSD-2-Clause"
] | 2 | 2017-10-28T00:45:12.000Z | 2018-06-10T01:50:53.000Z | delivery/pdf_processor/preprocessor/__init__.py | sidmishraw/scp | dd67647a4f85dd7a842e8b3ab97940bfde3dc6c7 | [
"BSD-2-Clause"
] | 2 | 2017-10-28T03:53:52.000Z | 2018-09-08T21:36:11.000Z | delivery/pdf_processor/preprocessor/__init__.py | sidmishraw/scp | dd67647a4f85dd7a842e8b3ab97940bfde3dc6c7 | [
"BSD-2-Clause"
] | 2 | 2017-11-02T00:12:54.000Z | 2020-03-10T18:46:22.000Z | # __init__.py
# -*- coding: utf-8 -*-
# @Author: Sidharth Mishra
# @Date: 2017-04-05 20:29:06
# @Last Modified by: Sidharth Mishra
# @Last Modified time: 2017-04-05 23:13:28
'''
Houses the core logic used to build the reverse-indices for the words extracted from the PDFs.
The preprocessor module.
'''
# CS 2... | 21.785714 | 94 | 0.768852 | 87 | 610 | 5.126437 | 0.609195 | 0.107623 | 0.141256 | 0.181614 | 0.262332 | 0.188341 | 0 | 0 | 0 | 0 | 0 | 0.061069 | 0.140984 | 610 | 27 | 95 | 22.592593 | 0.790076 | 0.508197 | 0 | 0 | 0 | 0 | 0.22028 | 0.164336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
27e6d25bf46387d82a78a13eaf0d181d421cc269 | 508 | py | Python | EloRater.py | Wally869/RankingELO-Python | 458aad91e18ea97793d7f47b3c7dede1b666ac1d | [
"MIT"
] | 2 | 2021-02-07T12:01:24.000Z | 2022-02-23T06:58:31.000Z | EloRater.py | Wally869/RankingELO-Python | 458aad91e18ea97793d7f47b3c7dede1b666ac1d | [
"MIT"
] | null | null | null | EloRater.py | Wally869/RankingELO-Python | 458aad91e18ea97793d7f47b3c7dede1b666ac1d | [
"MIT"
] | 1 | 2021-02-08T13:30:56.000Z | 2021-02-08T13:30:56.000Z | from __future__ import annotations
def GetWinningProbability(rating1: float, rating2: float):
return 1.0 / (1.0 + 10 ** ((rating1 - rating2) / 400))
def ComputeDeltaRating(ratingPlayer1: float, ratingPlayer2: float, isWinPlayer1: bool) -> float:
P1 = (1.0 / (1.0 + pow(10, ((ratingPlayer1 - ratin... | 31.75 | 97 | 0.63189 | 57 | 508 | 5.561404 | 0.385965 | 0.037855 | 0.028391 | 0.037855 | 0.056782 | 0.056782 | 0 | 0 | 0 | 0 | 0 | 0.117794 | 0.214567 | 508 | 15 | 98 | 33.866667 | 0.676692 | 0.100394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
27ea5a81a26101300f282ccf8c243b98ca71a5d3 | 207 | py | Python | Python 3/Crash course/list comprehension.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/Crash course/list comprehension.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/Crash course/list comprehension.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z | # Without list comprehension
squares1 = []
for value in range(1, 11):
squares1.append(value**2)
print(squares1)
# With list comprehension
squares2 = [value**2 for value in range(1, 11)]
print(squares2)
| 20.7 | 47 | 0.719807 | 30 | 207 | 4.966667 | 0.5 | 0.228188 | 0.134228 | 0.201342 | 0.241611 | 0.241611 | 0 | 0 | 0 | 0 | 0 | 0.074286 | 0.154589 | 207 | 9 | 48 | 23 | 0.777143 | 0.241546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27fa9264fba536d7854de98c1c95fdb0237be0cc | 213 | py | Python | test_project_2/demo/models.py | Munduruca/django | 44c9967fba65ba64d3864b9efa09fc880a3474bc | [
"MIT"
] | null | null | null | test_project_2/demo/models.py | Munduruca/django | 44c9967fba65ba64d3864b9efa09fc880a3474bc | [
"MIT"
] | null | null | null | test_project_2/demo/models.py | Munduruca/django | 44c9967fba65ba64d3864b9efa09fc880a3474bc | [
"MIT"
] | null | null | null | from django.db import models
class Book(models.Model):
title = models.CharField(max_length=36, unique=True)
description = models.TextField(max_length=256,
default=None) | 35.5 | 56 | 0.638498 | 25 | 213 | 5.36 | 0.8 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.2723 | 213 | 6 | 57 | 35.5 | 0.832258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
27ff8314c5d4c4a696ebfe40c4d9de4c10049685 | 519 | py | Python | swexpert/d3/sw_3499.py | ruslanlvivsky/python-algorithm | 2b49bed33cd0e95b8a1e758008191f4392b3f667 | [
"MIT"
] | 3 | 2021-07-18T14:40:24.000Z | 2021-08-14T18:08:13.000Z | swexpert/d3/sw_3499.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | swexpert/d3/sw_3499.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | test_cases = int(input())
for t in range(1, test_cases + 1):
n = int(input())
cards = list(input().split())
deck = []
if len(cards) % 2 == 0:
mid = len(cards) // 2
for i in range(mid):
deck.append(cards[i])
deck.append(cards[i + mid])
else:
mid = le... | 24.714286 | 45 | 0.481696 | 72 | 519 | 3.444444 | 0.347222 | 0.201613 | 0.302419 | 0.258065 | 0.491935 | 0.491935 | 0.491935 | 0.491935 | 0.491935 | 0.491935 | 0 | 0.02029 | 0.33526 | 519 | 21 | 45 | 24.714286 | 0.698551 | 0 | 0 | 0.352941 | 0 | 0 | 0.013462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.058824 | 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 |
fd6cb3a8197d70a40cbcf073555009db0ebadb5a | 254 | py | Python | Day_00/01_Basics/temperature.py | saudijack/unfpyboot | 92939a83803b464208f15f785d4e093aaa795e0b | [
"MIT"
] | null | null | null | Day_00/01_Basics/temperature.py | saudijack/unfpyboot | 92939a83803b464208f15f785d4e093aaa795e0b | [
"MIT"
] | null | null | null | Day_00/01_Basics/temperature.py | saudijack/unfpyboot | 92939a83803b464208f15f785d4e093aaa795e0b | [
"MIT"
] | null | null | null | faren = raw_input("Enter the temperature in Fahrenheit): ")
faren = float(faren) # The calculation on the right gets saved to the variable on the left
cel = 5./9. * (faren - 32.)
print "The temperature in Celcius is " + str(cel) + " degrees." | 63.5 | 102 | 0.669291 | 38 | 254 | 4.447368 | 0.684211 | 0.16568 | 0.189349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020101 | 0.216535 | 254 | 4 | 103 | 63.5 | 0.829146 | 0.26378 | 0 | 0 | 0 | 0 | 0.413978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd7bf0edf248dee0d1875b29c4115d7fb85c2ec8 | 928 | py | Python | surro/util.py | MatthewScholefield/surro | db666a8c5c2fd456b1816562014572ceaabd2b5f | [
"MIT"
] | null | null | null | surro/util.py | MatthewScholefield/surro | db666a8c5c2fd456b1816562014572ceaabd2b5f | [
"MIT"
] | null | null | null | surro/util.py | MatthewScholefield/surro | db666a8c5c2fd456b1816562014572ceaabd2b5f | [
"MIT"
] | null | null | null | import sys
from os.path import join
from threading import Timer
import numpy as np
from openal.audio import SoundSource
assets_root = getattr(sys, '_MEIPASS', '.')
def get_sfx(name):
return join(assets_root, 'assets', name)
def new_pt(*values):
return np.array(values or (0, 0, 0), dtype=float)
def vec_m... | 21.581395 | 87 | 0.644397 | 125 | 928 | 4.568 | 0.464 | 0.049037 | 0.045534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005658 | 0.238147 | 928 | 42 | 88 | 22.095238 | 0.80198 | 0 | 0 | 0 | 0 | 0 | 0.021552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.037037 | 0.185185 | 0.185185 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.