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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ae5a11c5db74aade34a9f04ac38a5bf8cd3eee6 | 239 | py | Python | Python/Skrypty/Python - Szkolenie_11-2015/przyklady_rec_python/PythonExample/structure.py | Elzei/show-off | fd6c46480160d795a7c1c833a798f3d49eddf144 | [
"MIT"
] | null | null | null | Python/Skrypty/Python - Szkolenie_11-2015/przyklady_rec_python/PythonExample/structure.py | Elzei/show-off | fd6c46480160d795a7c1c833a798f3d49eddf144 | [
"MIT"
] | null | null | null | Python/Skrypty/Python - Szkolenie_11-2015/przyklady_rec_python/PythonExample/structure.py | Elzei/show-off | fd6c46480160d795a7c1c833a798f3d49eddf144 | [
"MIT"
] | null | null | null | from struct import pack, unpack, calcsize
dane = open('dane.dat', 'w')
toWrite = pack('c5shhl', 'w', 'ala ',
2, 4, 12)
dane.write(toWrite)
dane.close()
dane = open('dane.dat', 'r')
toRead = unpack('c5shhl', dane.read())
print toRead
| 17.071429 | 41 | 0.640167 | 36 | 239 | 4.25 | 0.611111 | 0.104575 | 0.156863 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.154812 | 239 | 13 | 42 | 18.384615 | 0.727723 | 0 | 0 | 0 | 0 | 0 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ae5cc40ebee883c683de5563f89d2845c37d8dc | 550 | py | Python | personal_website/wsgi.py | ars140/personal-website | eb02a514a7184903b4c7175cb3f0605a4e185d57 | [
"BSD-2-Clause"
] | null | null | null | personal_website/wsgi.py | ars140/personal-website | eb02a514a7184903b4c7175cb3f0605a4e185d57 | [
"BSD-2-Clause"
] | null | null | null | personal_website/wsgi.py | ars140/personal-website | eb02a514a7184903b4c7175cb3f0605a4e185d57 | [
"BSD-2-Clause"
] | null | null | null | """
WSGI config for personal_website project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from dotenv import load_dotenv
#project_folder = os.path.expanduser('~/perso... | 28.947368 | 78 | 0.794545 | 78 | 550 | 5.435897 | 0.615385 | 0.106132 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006012 | 0.092727 | 550 | 18 | 79 | 30.555556 | 0.843687 | 0.6 | 0 | 0 | 0 | 0 | 0.222749 | 0.222749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0af2ccca1b3993ff32ab7aa5df571e2a9ba5ec10 | 9,112 | py | Python | pytudes/_2021/miscellany/bit_manipulation.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | 1 | 2022-02-08T09:47:35.000Z | 2022-02-08T09:47:35.000Z | pytudes/_2021/miscellany/bit_manipulation.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | 62 | 2021-04-02T23:41:16.000Z | 2022-03-25T13:16:10.000Z | pytudes/_2021/miscellany/bit_manipulation.py | TeoZosa/pytudes | 4f01ab20f936bb4b3f42d1946180d4a20fd95fbf | [
"Apache-2.0"
] | null | null | null | """https://leetcode.com/problems/sum-of-two-integers/discuss/84278/A-summary%3A-how-to-use-bit-manipulation-to-solve-problems-easily-and-efficiently
Bit manipulation is the act of algorithmically manipulating bits or other pieces of data shorter than a word.
Computer programming tasks that require bit manipulation in... | 23.978947 | 148 | 0.552129 | 1,256 | 9,112 | 3.855096 | 0.217357 | 0.036142 | 0.041305 | 0.03862 | 0.371128 | 0.33292 | 0.278397 | 0.240397 | 0.214787 | 0.114002 | 0 | 0.114264 | 0.288301 | 9,112 | 379 | 149 | 24.042216 | 0.632382 | 0.764816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0af57b2feefefe8b3e2c509c97bbe172e86e5c3f | 1,056 | py | Python | get_vpn.py | adilmirz/sd_wan_demo | cc483cc760480fb7dffe86e3aed4cf97ac13ec03 | [
"MIT"
] | 6 | 2019-02-06T12:48:55.000Z | 2019-09-25T05:12:23.000Z | get_vpn.py | adilmirz/sd_wan_demo | cc483cc760480fb7dffe86e3aed4cf97ac13ec03 | [
"MIT"
] | 2 | 2019-01-07T23:13:11.000Z | 2019-02-26T08:14:52.000Z | get_vpn.py | adilmirz/sd_wan_demo | cc483cc760480fb7dffe86e3aed4cf97ac13ec03 | [
"MIT"
] | 11 | 2018-12-10T16:34:15.000Z | 2021-09-23T08:20:30.000Z | #! /usr/bin/env python
from env_lab import sdwan_always
import requests
import urllib3
from requests.auth import HTTPBasicAuth
from viptela.viptela import Viptela
from tabulate import tabulate
# Silence the insecure warning due to SSL Certificate
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def... | 34.064516 | 185 | 0.726326 | 138 | 1,056 | 5.398551 | 0.485507 | 0.073826 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008791 | 0.138258 | 1,056 | 30 | 186 | 35.2 | 0.80989 | 0.088068 | 0 | 0 | 0 | 0 | 0.245833 | 0.027083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.315789 | 0 | 0.368421 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
e405835202777cf92b229b2f66e345cc801df53b | 1,235 | py | Python | src/agents/simple_single_observation.py | nkbeebe/FW-Airsim | aabdf6cc8f7b68317b4bcf394340ae8a420eeb89 | [
"MIT"
] | null | null | null | src/agents/simple_single_observation.py | nkbeebe/FW-Airsim | aabdf6cc8f7b68317b4bcf394340ae8a420eeb89 | [
"MIT"
] | null | null | null | src/agents/simple_single_observation.py | nkbeebe/FW-Airsim | aabdf6cc8f7b68317b4bcf394340ae8a420eeb89 | [
"MIT"
] | null | null | null | # from envs.single_observation import SingleObservation
# import gym
# import numpy as np
# from stable_baselines3 import TD3
# from stable_baselines3.common.noise import NormalActionNoise, OrnsteinUhlenbeckActionNoise
# from torch.utils.tensorboard import SummaryWriter
# import wandb
# wandb.init(project="Sin... | 33.378378 | 93 | 0.668826 | 147 | 1,235 | 5.496599 | 0.52381 | 0.029703 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026423 | 0.203239 | 1,235 | 36 | 94 | 34.305556 | 0.794715 | 0.912551 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c10e5bcea726ded502b22311aa26bed58e7f863 | 19,916 | py | Python | devbox/etc/.vim/bundle/jedi-vim/jedi/jedi/evaluate/imports.py | turiphro/dockerfiles | d87bcadde7f2e284da3edad891112e4ec59e29df | [
"MIT"
] | 1 | 2015-11-06T02:36:26.000Z | 2015-11-06T02:36:26.000Z | jedi/evaluate/imports.py | idobatter/jedi | e66f2d8f4b5fef2f304957c7936884455d2b3433 | [
"MIT"
] | null | null | null | jedi/evaluate/imports.py | idobatter/jedi | e66f2d8f4b5fef2f304957c7936884455d2b3433 | [
"MIT"
] | null | null | null | """
:mod:`jedi.evaluate.imports` is here to resolve import statements and return
the modules/classes/functions/whatever, which they stand for. However there's
not any actual importing done. This module is about finding modules in the
filesystem. This can be quite tricky sometimes, because Python imports are not
always ... | 38.97456 | 94 | 0.578028 | 2,407 | 19,916 | 4.585376 | 0.166597 | 0.031712 | 0.01649 | 0.009242 | 0.142521 | 0.077104 | 0.040681 | 0.020477 | 0.013953 | 0.013953 | 0 | 0.003592 | 0.34294 | 19,916 | 510 | 95 | 39.05098 | 0.839829 | 0.200291 | 0 | 0.166172 | 0 | 0 | 0.018596 | 0.001737 | 0 | 0 | 0 | 0.003922 | 0 | 1 | 0.083086 | false | 0.005935 | 0.311573 | 0.011869 | 0.513353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7c26aa40bda2fc289975269a5b18f7cc3e8346e9 | 108 | py | Python | dojo/tools/trustwave/__init__.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 1,772 | 2018-01-22T23:32:15.000Z | 2022-03-31T14:49:33.000Z | dojo/tools/trustwave/__init__.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 3,461 | 2018-01-20T19:12:28.000Z | 2022-03-31T17:14:39.000Z | dojo/tools/trustwave/__init__.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 1,173 | 2018-01-23T07:10:23.000Z | 2022-03-31T14:40:43.000Z | # Based on the generic csv so we are able to import Trustwave scans exported in CSV
__author__ = 'ekelson'
| 27 | 83 | 0.768519 | 18 | 108 | 4.388889 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 108 | 3 | 84 | 36 | 0.908046 | 0.75 | 0 | 0 | 0 | 0 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c27dc05c8cc54265fdbedd005e7c273a4394935 | 3,090 | py | Python | app/forms.py | erhic/blog_API | d407e384861f948af2268b3cb5bb0a70e877b919 | [
"MIT"
] | null | null | null | app/forms.py | erhic/blog_API | d407e384861f948af2268b3cb5bb0a70e877b919 | [
"MIT"
] | null | null | null | app/forms.py | erhic/blog_API | d407e384861f948af2268b3cb5bb0a70e877b919 | [
"MIT"
] | null | null | null | # importing the flask module that are used while creating a form
from flask_wtf import FlaskForm #the form from flask
from wtforms import StringField,BooleanField,PasswordField,EmailField,SubmitField,ValidationError,TextAreaField,SelectField#the field class that we are going to use/import from the flask package wtform... | 43.521127 | 215 | 0.716505 | 372 | 3,090 | 5.924731 | 0.33871 | 0.119782 | 0.036298 | 0.029492 | 0.375227 | 0.349365 | 0.283122 | 0.204174 | 0.204174 | 0.204174 | 0 | 0.006996 | 0.167314 | 3,090 | 71 | 216 | 43.521127 | 0.849592 | 0.216505 | 0 | 0.114286 | 0 | 0 | 0.160325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.142857 | 0.114286 | 0 | 0.828571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
7c27f918064e5cf9fb056acfa949be74f320b0cd | 6,364 | py | Python | azdev/help.py | marstr/azure-cli-dev-tools | 8b82b1867a425a9a017868c6c1aef2f4bb5aa62b | [
"MIT"
] | null | null | null | azdev/help.py | marstr/azure-cli-dev-tools | 8b82b1867a425a9a017868c6c1aef2f4bb5aa62b | [
"MIT"
] | null | null | null | azdev/help.py | marstr/azure-cli-dev-tools | 8b82b1867a425a9a017868c6c1aef2f4bb5aa62b | [
"MIT"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------
fr... | 29.192661 | 142 | 0.662319 | 817 | 6,364 | 5.157895 | 0.307222 | 0.088277 | 0.034172 | 0.03085 | 0.118652 | 0.061699 | 0.04224 | 0 | 0 | 0 | 0 | 0.001007 | 0.219516 | 6,364 | 217 | 143 | 29.327189 | 0.847393 | 0.048083 | 0 | 0.27972 | 0 | 0.020979 | 0.885823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.006993 | 0 | 0.006993 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c3a5c159d931ecfad01b73b4673fe46dc599c50 | 54,337 | py | Python | websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner_pb2.py | jo2y/google-cloud-python | 1b76727be16bc4335276f793340bb72d32be7166 | [
"Apache-2.0"
] | 1 | 2018-06-29T17:53:28.000Z | 2018-06-29T17:53:28.000Z | websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner_pb2.py | jo2y/google-cloud-python | 1b76727be16bc4335276f793340bb72d32be7166 | [
"Apache-2.0"
] | 4 | 2018-11-13T22:15:36.000Z | 2018-12-07T18:31:38.000Z | websecurityscanner/google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner_pb2.py | jo2y/google-cloud-python | 1b76727be16bc4335276f793340bb72d32be7166 | [
"Apache-2.0"
] | 1 | 2021-06-30T11:44:03.000Z | 2021-06-30T11:44:03.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/websecurityscanner_v1alpha/proto/web_security_scanner.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message a... | 44.685033 | 6,294 | 0.768408 | 6,123 | 54,337 | 6.530786 | 0.070064 | 0.108783 | 0.112534 | 0.131439 | 0.74875 | 0.6668 | 0.650895 | 0.552566 | 0.536261 | 0.513554 | 0 | 0.035055 | 0.119053 | 54,337 | 1,215 | 6,295 | 44.721811 | 0.800326 | 0.037083 | 0 | 0.627181 | 1 | 0.011938 | 0.413908 | 0.272242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012856 | 0 | 0.012856 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
7c3f5a486013fffa74a65da72ac26727dbfd95d3 | 4,060 | py | Python | samcli/commands/traces/traces_puller_factory.py | aubelsb2/aws-sam-cli | 13e80fef8c9e53ec35a500ab0ae0ab873e22a56d | [
"BSD-2-Clause",
"Apache-2.0"
] | 859 | 2020-08-25T03:53:17.000Z | 2022-03-31T12:33:07.000Z | samcli/commands/traces/traces_puller_factory.py | aubelsb2/aws-sam-cli | 13e80fef8c9e53ec35a500ab0ae0ab873e22a56d | [
"BSD-2-Clause",
"Apache-2.0"
] | 1,369 | 2020-08-25T10:57:03.000Z | 2022-03-31T23:00:25.000Z | samcli/commands/traces/traces_puller_factory.py | aubelsb2/aws-sam-cli | 13e80fef8c9e53ec35a500ab0ae0ab873e22a56d | [
"BSD-2-Clause",
"Apache-2.0"
] | 275 | 2020-08-25T19:33:50.000Z | 2022-03-26T08:32:52.000Z | """
Factory methods which generates puller and consumer instances for XRay events
"""
from typing import Any, List
from samcli.commands.traces.trace_console_consumers import XRayTraceConsoleConsumer
from samcli.lib.observability.observability_info_puller import (
ObservabilityPuller,
ObservabilityEventConsumer... | 35.929204 | 114 | 0.769458 | 400 | 4,060 | 7.6325 | 0.23 | 0.023583 | 0.036685 | 0.034065 | 0.617753 | 0.553226 | 0.474943 | 0.461841 | 0.432362 | 0.432362 | 0 | 0.000296 | 0.167734 | 4,060 | 112 | 115 | 36.25 | 0.903226 | 0.369951 | 0 | 0.05 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.15 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7c49058b086073206457d42f3aa42786669003f2 | 2,456 | py | Python | dist_matrix/tests/test_helper.py | sparks-baird/wasserstein-distance | a37b5c2a0f7322cd8edb1432148445cf5de468a2 | [
"MIT"
] | 5 | 2021-12-10T15:48:55.000Z | 2022-03-29T15:28:06.000Z | dist_matrix/tests/test_helper.py | sparks-baird/wasserstein-distance | a37b5c2a0f7322cd8edb1432148445cf5de468a2 | [
"MIT"
] | null | null | null | dist_matrix/tests/test_helper.py | sparks-baird/wasserstein-distance | a37b5c2a0f7322cd8edb1432148445cf5de468a2 | [
"MIT"
] | null | null | null | # """
# Test helper functions for distance matrix calculations.
# """
# import os
# import numpy as np
# from numba.cuda.testing import unittest, CUDATestCase
# # import numba.cuda.kernels.device.helper as hp
# import mat_discover.ElM2D.helper as hp
# from numpy.testing import assert_allclose, assert_equal
# bits = ... | 28.229885 | 62 | 0.561889 | 343 | 2,456 | 3.883382 | 0.253644 | 0.072072 | 0.072072 | 0.063063 | 0.244745 | 0.191441 | 0.102102 | 0.102102 | 0.102102 | 0.055556 | 0 | 0.044444 | 0.285423 | 2,456 | 86 | 63 | 28.55814 | 0.71453 | 0.935668 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c4feaa6181dfdcc9e3f97f89df34c60ad42a52d | 2,085 | py | Python | project/server/models.py | RiccardoNizzolo/prime_num | 3a28a85228b6abc2b6097dae8d8c7363ae80757c | [
"MIT"
] | 1 | 2019-02-26T09:32:41.000Z | 2019-02-26T09:32:41.000Z | project/server/models.py | RiccardoNizzolo/prime_num | 3a28a85228b6abc2b6097dae8d8c7363ae80757c | [
"MIT"
] | null | null | null | project/server/models.py | RiccardoNizzolo/prime_num | 3a28a85228b6abc2b6097dae8d8c7363ae80757c | [
"MIT"
] | null | null | null | # project/server/models.py
import datetime
from flask import current_app
from project.server import db, bcrypt
class ModelsHistory(db.Model):
__tablename__ = "models_history"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
model_name=db.Column(db.String(255), unique=True, nullable=Fa... | 28.561644 | 69 | 0.679137 | 279 | 2,085 | 4.867384 | 0.283154 | 0.106038 | 0.132548 | 0.106038 | 0.638439 | 0.483063 | 0.410898 | 0.410898 | 0.410898 | 0.349043 | 0 | 0.020433 | 0.201918 | 2,085 | 72 | 70 | 28.958333 | 0.795673 | 0.011511 | 0 | 0.367347 | 0 | 0 | 0.035471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.061224 | 0.102041 | 0.755102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
7c51c30b3594aa6e64e946b0088b10fc052b17ce | 143 | py | Python | src/app/shopping_cart/models/shopping_cart_coupon.py | daniellima/desafio-lojaintegrada | 3cb17f4ec9769472e111adfe6d550e668518aabd | [
"MIT"
] | null | null | null | src/app/shopping_cart/models/shopping_cart_coupon.py | daniellima/desafio-lojaintegrada | 3cb17f4ec9769472e111adfe6d550e668518aabd | [
"MIT"
] | null | null | null | src/app/shopping_cart/models/shopping_cart_coupon.py | daniellima/desafio-lojaintegrada | 3cb17f4ec9769472e111adfe6d550e668518aabd | [
"MIT"
] | null | null | null | class ShoppingCartCoupon:
def __init__(self, id, name, amount):
self.id = id
self.name = name
self.amount = amount | 23.833333 | 41 | 0.601399 | 17 | 143 | 4.823529 | 0.470588 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 143 | 6 | 42 | 23.833333 | 0.828283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
7c65a75118ea1ed33ff27570e3a23a0b0a009898 | 758 | py | Python | tests/test_finance_hsudata.py | revang/pdcool | 6ce27eae7d8e4dac831be415ffa9d4781e657862 | [
"MIT"
] | null | null | null | tests/test_finance_hsudata.py | revang/pdcool | 6ce27eae7d8e4dac831be415ffa9d4781e657862 | [
"MIT"
] | null | null | null | tests/test_finance_hsudata.py | revang/pdcool | 6ce27eae7d8e4dac831be415ffa9d4781e657862 | [
"MIT"
] | null | null | null | import unittest
import logging
from pdcool.finance.hsudata import *
from pdcool.finance.tushare import get_dataframe_for_index
logging.basicConfig(level=logging.DEBUG)
class FinanceHsudataTest(unittest.TestCase):
# 2021.12.19 测试通过
# def test_sync_stock(self):
# sync_stock()
# 2021.12.19 测试通过
... | 22.969697 | 58 | 0.692612 | 105 | 758 | 4.619048 | 0.409524 | 0.072165 | 0.065979 | 0.098969 | 0.31134 | 0.31134 | 0.226804 | 0.226804 | 0 | 0 | 0 | 0.086235 | 0.204485 | 758 | 32 | 59 | 23.6875 | 0.718076 | 0.41161 | 0 | 0 | 0 | 0 | 0.039261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7c72a9fb896124a019c726879b77c1de523b353f | 516 | py | Python | example/setup.py | orsinium-archive/install-requires | dca57cf7e684629e092df6dcb0dd329d3572999d | [
"Apache-2.0"
] | 2 | 2020-08-02T23:14:53.000Z | 2020-08-03T10:31:17.000Z | example/setup.py | orsinium-archive/install-requires | dca57cf7e684629e092df6dcb0dd329d3572999d | [
"Apache-2.0"
] | 1 | 2019-11-28T15:04:15.000Z | 2019-11-29T13:06:39.000Z | example/setup.py | orsinium/install-requires | dca57cf7e684629e092df6dcb0dd329d3572999d | [
"Apache-2.0"
] | 2 | 2020-07-10T11:20:28.000Z | 2020-08-02T23:15:00.000Z | from setuptools import setup, find_packages
from pathlib import Path
from pip._internal import main as pip
pip(['install', 'install-requires[pipfile]'])
from install_requires import convert # noQA
path = Path(__file__).parent
install_requires, dependency_links = convert('Pipfile', 'setup.py', path)
setup(
n... | 22.434783 | 73 | 0.75 | 64 | 516 | 5.828125 | 0.46875 | 0.201072 | 0.134048 | 0.160858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006787 | 0.143411 | 516 | 22 | 74 | 23.454545 | 0.837104 | 0.007752 | 0 | 0 | 0 | 0 | 0.17451 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c73966cb6eaf82559eecf911ae073d783c44b80 | 130 | py | Python | tests/run_coverage.py | adrihor/pythonista-dropbox | cb4a9cd3b1ac0a04be13944003e0897e7d82f375 | [
"0BSD"
] | 2 | 2021-03-04T14:06:19.000Z | 2021-03-04T21:08:52.000Z | tests/run_coverage.py | adrihor/pythonista-dropbox | cb4a9cd3b1ac0a04be13944003e0897e7d82f375 | [
"0BSD"
] | null | null | null | tests/run_coverage.py | adrihor/pythonista-dropbox | cb4a9cd3b1ac0a04be13944003e0897e7d82f375 | [
"0BSD"
] | null | null | null | import pytest
def main():
pytest.main('-s .')
return 0
if __name__ == "__main__":
import sys
sys.exit(main())
| 10.833333 | 26 | 0.576923 | 17 | 130 | 3.941176 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.269231 | 130 | 11 | 27 | 11.818182 | 0.694737 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7c7578d53b6ceb613c6d9d73e4abaaaf82b10a4f | 233 | py | Python | array/majority_element.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | array/majority_element.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | array/majority_element.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | def majority_element(nums):
threshold = len(nums) // 2
for num in set(nums):
if nums.count(num) > threshold:
return num
print(majority_element([3, 2, 3]))
print(majority_element([2, 2, 1, 1, 1, 2, 2]))
| 21.181818 | 46 | 0.596567 | 36 | 233 | 3.777778 | 0.472222 | 0.330882 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062857 | 0.248927 | 233 | 10 | 47 | 23.3 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.285714 | 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 | 0 | 0 | 2 |
7c7b9f12b0b7820006966f79cd8954273ff4fa39 | 8,280 | py | Python | tests/serializers_regress/models.py | doismellburning/django | 039465a6a7a18f48ea77ceadb6949990c0ec92e1 | [
"BSD-3-Clause"
] | null | null | null | tests/serializers_regress/models.py | doismellburning/django | 039465a6a7a18f48ea77ceadb6949990c0ec92e1 | [
"BSD-3-Clause"
] | null | null | null | tests/serializers_regress/models.py | doismellburning/django | 039465a6a7a18f48ea77ceadb6949990c0ec92e1 | [
"BSD-3-Clause"
] | null | null | null | """
A test spanning all the capabilities of all the serializers.
This class sets up a model for each model field type
(except for image types, because of the Pillow dependency).
"""
from django.db import models
from django.contrib.contenttypes.fields import (
GenericForeignKey, GenericRelation
)
from django.contri... | 24.210526 | 84 | 0.737319 | 1,009 | 8,280 | 5.995045 | 0.258672 | 0.102496 | 0.128947 | 0.180526 | 0.416763 | 0.139527 | 0.102662 | 0.060671 | 0.029426 | 0.029426 | 0 | 0.007623 | 0.160266 | 8,280 | 341 | 85 | 24.281525 | 0.862362 | 0.2343 | 0 | 0.106667 | 0 | 0 | 0.008339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.02 | 0.02 | 0.94 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7c7fec149236f24d1ab7f7e837d0fabe6d285d6c | 1,147 | py | Python | scipy/fft/tests/test_fft_function.py | Ennosigaeon/scipy | 2d872f7cf2098031b9be863ec25e366a550b229c | [
"BSD-3-Clause"
] | 9,095 | 2015-01-02T18:24:23.000Z | 2022-03-31T20:35:31.000Z | scipy/fft/tests/test_fft_function.py | Ennosigaeon/scipy | 2d872f7cf2098031b9be863ec25e366a550b229c | [
"BSD-3-Clause"
] | 11,500 | 2015-01-01T01:15:30.000Z | 2022-03-31T23:07:35.000Z | scipy/fft/tests/test_fft_function.py | Ennosigaeon/scipy | 2d872f7cf2098031b9be863ec25e366a550b229c | [
"BSD-3-Clause"
] | 5,838 | 2015-01-05T11:56:42.000Z | 2022-03-31T23:21:19.000Z | import numpy as np
import subprocess
import sys
TEST_BODY = r"""
import pytest
import numpy as np
from numpy.testing import assert_allclose
import scipy
import sys
import pytest
if hasattr(scipy, 'fft'):
raise AssertionError("scipy.fft should require an explicit import")
np.random.seed(1234)
x = np.random.randn(... | 24.404255 | 72 | 0.721883 | 186 | 1,147 | 4.354839 | 0.387097 | 0.088889 | 0.049383 | 0.037037 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0.148148 | 0 | 0.021142 | 0.17524 | 1,147 | 46 | 73 | 24.934783 | 0.835095 | 0.186574 | 0 | 0.375 | 0 | 0.03125 | 0.641855 | 0.115426 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.03125 | false | 0 | 0.46875 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7c8139649602ef2d39e353c37ce08758b0099bfb | 1,330 | py | Python | prediction/rows.py | applidium/Bike-Share-Prediction | f1996ae84c21ff4dafbddc8aaf25e2bf8fe529e2 | [
"BSD-3-Clause"
] | 199 | 2015-09-11T21:53:13.000Z | 2018-08-09T03:05:46.000Z | prediction/rows.py | applidium/Bike-Share-Prediction | f1996ae84c21ff4dafbddc8aaf25e2bf8fe529e2 | [
"BSD-3-Clause"
] | null | null | null | prediction/rows.py | applidium/Bike-Share-Prediction | f1996ae84c21ff4dafbddc8aaf25e2bf8fe529e2 | [
"BSD-3-Clause"
] | 1 | 2016-05-26T12:54:43.000Z | 2016-05-26T12:54:43.000Z | class Row:
def __init__(self, result):
self.result = result
def to_json(self):
return { column: float(value) for column, value in zip(Row.columns(), self.result) }
@classmethod
def columns(self):
return ["open", "weather", "temperature", "wind_speed", "humidity", "hour", "minut... | 36.944444 | 163 | 0.64812 | 168 | 1,330 | 5.011905 | 0.386905 | 0.047506 | 0.021378 | 0.030879 | 0.484561 | 0.370546 | 0.296912 | 0.209026 | 0.128266 | 0.128266 | 0 | 0.000946 | 0.205263 | 1,330 | 35 | 164 | 38 | 0.795648 | 0.027068 | 0 | 0.32 | 0 | 0 | 0.209752 | 0.018576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0 | 0.16 | 0.64 | 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 | 0 | 0 | 0 | 2 |
7c974885cf541b5d6e2c0baff5f638a17d99d929 | 826 | py | Python | src/hamcrest/core/string_description.py | pexip/os-pyhamcrest | 6533db5b8c6f27ff69ffcc661c4160207e35aa47 | [
"BSD-3-Clause"
] | null | null | null | src/hamcrest/core/string_description.py | pexip/os-pyhamcrest | 6533db5b8c6f27ff69ffcc661c4160207e35aa47 | [
"BSD-3-Clause"
] | null | null | null | src/hamcrest/core/string_description.py | pexip/os-pyhamcrest | 6533db5b8c6f27ff69ffcc661c4160207e35aa47 | [
"BSD-3-Clause"
] | null | null | null | from base_description import BaseDescription
__author__ = "Jon Reid"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = "BSD, see License.txt"
def tostring(selfdescribing):
"""Returns the description of a
:py:class:`~hamcrest.core.selfdescribing.SelfDescribing` object as a
string.
:param se... | 24.294118 | 79 | 0.688862 | 93 | 826 | 5.870968 | 0.462366 | 0.054945 | 0.115385 | 0.084249 | 0.07326 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006088 | 0.2046 | 826 | 33 | 80 | 25.030303 | 0.824962 | 0.368039 | 0 | 0 | 0 | 0 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7c9b5942b18377e9807165f6a3c504d8ac9f2320 | 93 | py | Python | plumbum/version.py | gsimbr/plumbum | 456d2c30624873e5deaa7d26aad432e2bb288ebd | [
"MIT"
] | 1 | 2020-07-22T19:50:08.000Z | 2020-07-22T19:50:08.000Z | plumbum/version.py | gsimbr/plumbum | 456d2c30624873e5deaa7d26aad432e2bb288ebd | [
"MIT"
] | null | null | null | plumbum/version.py | gsimbr/plumbum | 456d2c30624873e5deaa7d26aad432e2bb288ebd | [
"MIT"
] | null | null | null | version = (1, 6, 7)
version_string = ".".join(map(str, version))
release_date = "2018.08.08"
| 23.25 | 44 | 0.655914 | 15 | 93 | 3.933333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 0.129032 | 93 | 3 | 45 | 31 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7caab25c12f936a581155120e4ae9c95943de267 | 307 | py | Python | config.py | SongshGeo/Water-Allocation-Institution | ecf18e7acd4605936c8dd3cc7e1373b3b5013d5f | [
"MIT"
] | null | null | null | config.py | SongshGeo/Water-Allocation-Institution | ecf18e7acd4605936c8dd3cc7e1373b3b5013d5f | [
"MIT"
] | null | null | null | config.py | SongshGeo/Water-Allocation-Institution | ecf18e7acd4605936c8dd3cc7e1373b3b5013d5f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*-coding:utf-8 -*-
# Created date: 2022/3/2
# @Author : Shuang Song
# @Contact : SongshGeo@gmail.com
# GitHub : https://github.com/SongshGeo
# Research Gate: https://www.researchgate.net/profile/Song_Shuang9
ROOT = "/Users/songshgeo/Documents/Pycharm/WAInstitution_YRB_2021"
| 27.909091 | 66 | 0.71987 | 41 | 307 | 5.317073 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04428 | 0.117264 | 307 | 10 | 67 | 30.7 | 0.760148 | 0.729642 | 0 | 0 | 0 | 0 | 0.75 | 0.75 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cac7ef97026d86af566557be86f1cef514f5b75 | 1,528 | py | Python | pkg/codegen/internal/test/testdata/simple-enum-schema/python/pulumi_plant_provider/outputs.py | MisinformedDNA/pulumi | 12dd0767ac1f800e333d531237831d65f04e92ab | [
"Apache-2.0"
] | 1 | 2022-01-04T13:56:27.000Z | 2022-01-04T13:56:27.000Z | pkg/codegen/internal/test/testdata/simple-enum-schema/python/pulumi_plant_provider/outputs.py | MisinformedDNA/pulumi | 12dd0767ac1f800e333d531237831d65f04e92ab | [
"Apache-2.0"
] | 19 | 2020-12-08T03:11:45.000Z | 2022-03-31T11:21:44.000Z | pkg/codegen/internal/test/testdata/simple-enum-schema/python/pulumi_plant_provider/outputs.py | MisinformedDNA/pulumi | 12dd0767ac1f800e333d531237831d65f04e92ab | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by test. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from . import _utilities, _tables
from ._enums import *
__a... | 27.781818 | 80 | 0.630236 | 174 | 1,528 | 5.310345 | 0.390805 | 0.047619 | 0.056277 | 0.073593 | 0.145022 | 0.145022 | 0.073593 | 0 | 0 | 0 | 0 | 0.000881 | 0.257199 | 1,528 | 54 | 81 | 28.296296 | 0.813216 | 0.092277 | 0 | 0.195122 | 1 | 0 | 0.091962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.146341 | 0.121951 | 0.439024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7cb0924794e7a03f1a60217a362508c72f2c99ee | 614 | py | Python | practica_1/src/clients/GVGAI-PythonClient/src/utils/CompetitionParameters.py | BlancaCC/Tecnicas-de-los-sistemas-inteligentes | b251052416d4428fe324b7fab3147888fbde41b2 | [
"Apache-2.0"
] | null | null | null | practica_1/src/clients/GVGAI-PythonClient/src/utils/CompetitionParameters.py | BlancaCC/Tecnicas-de-los-sistemas-inteligentes | b251052416d4428fe324b7fab3147888fbde41b2 | [
"Apache-2.0"
] | null | null | null | practica_1/src/clients/GVGAI-PythonClient/src/utils/CompetitionParameters.py | BlancaCC/Tecnicas-de-los-sistemas-inteligentes | b251052416d4428fe324b7fab3147888fbde41b2 | [
"Apache-2.0"
] | null | null | null | import sys
class CompetitionParameters:
"""
* Competition parameters, should be the same with the ones on Server side:
* refer to core.competition.CompetitionParameters
"""
def __init__(self):
pass
if 'win32' in sys.platform:
OS_WIN = True
else:
OS_WIN = False
... | 23.615385 | 79 | 0.67101 | 76 | 614 | 5.131579 | 0.723684 | 0.061538 | 0.05641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064444 | 0.267101 | 614 | 26 | 80 | 23.615385 | 0.802222 | 0.201954 | 0 | 0 | 0 | 0 | 0.053305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.055556 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
7cce692341f90932367a378d4ace94f4803b1a92 | 56 | py | Python | tests/unit/__init__.py | webclinic017/grand_trade_auto | 88d730446f432a8762e364ca8a64ef2e4ae93677 | [
"MIT"
] | 1 | 2020-12-12T23:49:45.000Z | 2020-12-12T23:49:45.000Z | tests/unit/__init__.py | webclinic017/grand_trade_auto | 88d730446f432a8762e364ca8a64ef2e4ae93677 | [
"MIT"
] | 85 | 2020-12-14T01:40:09.000Z | 2022-01-16T22:15:49.000Z | tests/unit/__init__.py | JonathanCasey/trade_stack | 88d730446f432a8762e364ca8a64ef2e4ae93677 | [
"MIT"
] | 1 | 2021-10-19T19:57:23.000Z | 2021-10-19T19:57:23.000Z | # pylint: disable=missing-module-docstring
__all__ = []
| 18.666667 | 42 | 0.75 | 6 | 56 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 56 | 2 | 43 | 28 | 0.76 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
7cd329b9d8e08d308d8d763af3a09ce16d44229e | 699 | py | Python | fcs_trade/app/cta_strategy/__init__.py | fcscolorstone/fcs-trade | d76c5b8338ab55f49d78b218817326c2d1168151 | [
"MIT"
] | 2 | 2019-09-26T06:46:03.000Z | 2020-01-29T23:28:07.000Z | fcs_trade/app/cta_strategy/__init__.py | fcscolorstone/fcs-trade | d76c5b8338ab55f49d78b218817326c2d1168151 | [
"MIT"
] | null | null | null | fcs_trade/app/cta_strategy/__init__.py | fcscolorstone/fcs-trade | d76c5b8338ab55f49d78b218817326c2d1168151 | [
"MIT"
] | 2 | 2019-05-31T00:15:37.000Z | 2022-02-11T08:32:27.000Z | from pathlib import Path
from fcs_trade.trader.app import BaseApp
from fcs_trade.trader.constant import Direction
from fcs_trade.trader.object import TickData, BarData, TradeData, OrderData
from fcs_trade.trader.utility import BarGenerator, ArrayManager
from .base import APP_NAME, StopOrder
from .engine import CtaEng... | 29.125 | 75 | 0.783977 | 85 | 699 | 6.2 | 0.505882 | 0.053131 | 0.091082 | 0.136622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150215 | 699 | 23 | 76 | 30.391304 | 0.887205 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.529412 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7cd5a4671035d7b3f53bb962bcd0ef3dba12e54b | 185 | py | Python | neo_batterylevelshutdown/__init__.py | ConnectBox/connectbox-hat-service | b8d1736c5950b1860b596ba755e1228bb369eeba | [
"MIT"
] | null | null | null | neo_batterylevelshutdown/__init__.py | ConnectBox/connectbox-hat-service | b8d1736c5950b1860b596ba755e1228bb369eeba | [
"MIT"
] | 3 | 2019-02-28T14:03:01.000Z | 2021-11-15T17:47:22.000Z | neo_batterylevelshutdown/__init__.py | ConnectBox/connectbox-hat-service | b8d1736c5950b1860b596ba755e1228bb369eeba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for NEO_BatteryLevelShutdown."""
__author__ ='ConnectBox/connectbox Developers'
__email__ = 'dorjamjr@comcast.net'
__version__ = '0.15.0'
| 23.125 | 53 | 0.724324 | 21 | 185 | 5.761905 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.108108 | 185 | 7 | 54 | 26.428571 | 0.70303 | 0.378378 | 0 | 0 | 0 | 0 | 0.53211 | 0.192661 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7cd9682ad38b98d2f2886ecabba9b7f3f40479fe | 3,051 | py | Python | app/bns/migrations/0030_auto_20180610_2329.py | dianedetoeuf/django_kobo | d437a289e1952bb55fb7004fddbff6b978aa15d6 | [
"MIT"
] | 1 | 2018-12-20T07:59:55.000Z | 2018-12-20T07:59:55.000Z | app/bns/migrations/0030_auto_20180610_2329.py | dianedetoeuf/django_kobo | d437a289e1952bb55fb7004fddbff6b978aa15d6 | [
"MIT"
] | 9 | 2018-11-06T01:51:28.000Z | 2018-12-21T22:19:42.000Z | app/bns/migrations/0030_auto_20180610_2329.py | dianedetoeuf/django_kobo | d437a289e1952bb55fb7004fddbff6b978aa15d6 | [
"MIT"
] | 2 | 2018-11-21T15:13:32.000Z | 2020-02-19T08:39:37.000Z | # Generated by Django 2.0.5 on 2018-06-10 23:29
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('bns', '0029_livelihood_views'),
]
operations = [
migrations.CreateModel(
name='LivelihoodNBPerDistrict',
... | 44.867647 | 145 | 0.574893 | 302 | 3,051 | 5.642384 | 0.251656 | 0.09507 | 0.091549 | 0.119718 | 0.754108 | 0.694249 | 0.685446 | 0.685446 | 0.685446 | 0.685446 | 0 | 0.027688 | 0.289741 | 3,051 | 67 | 146 | 45.537313 | 0.758653 | 0.014749 | 0 | 0.639344 | 1 | 0 | 0.153462 | 0.071904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.081967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ce1e0c330f93a3e4c0a36308ecadf27de494e8c | 126 | py | Python | Python/Iniciante/2006.py | TiagoSanti/uri-solutions | e80d9e2874cac13e721a96d7aeb075e7d72ceb2d | [
"MIT"
] | null | null | null | Python/Iniciante/2006.py | TiagoSanti/uri-solutions | e80d9e2874cac13e721a96d7aeb075e7d72ceb2d | [
"MIT"
] | null | null | null | Python/Iniciante/2006.py | TiagoSanti/uri-solutions | e80d9e2874cac13e721a96d7aeb075e7d72ceb2d | [
"MIT"
] | null | null | null | T = int(input())
respostas = list(map(int, input().split()))
num = 0
for i in respostas:
if i == T:
num += 1
print(num)
| 11.454545 | 43 | 0.579365 | 22 | 126 | 3.318182 | 0.681818 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.222222 | 126 | 10 | 44 | 12.6 | 0.72449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7ce793387c8261c36eee09b1a1ab83377b5162ab | 4,923 | py | Python | garaged/src/garage/tf/policies/discrete_qf_derived_policy.py | artberryx/LSD | 99ee081de2502b4d13c140b474f772db8a5f92fe | [
"MIT"
] | 7 | 2022-02-01T03:02:24.000Z | 2022-02-10T12:54:05.000Z | garaged/src/garage/tf/policies/discrete_qf_derived_policy.py | artberryx/LSD | 99ee081de2502b4d13c140b474f772db8a5f92fe | [
"MIT"
] | null | null | null | garaged/src/garage/tf/policies/discrete_qf_derived_policy.py | artberryx/LSD | 99ee081de2502b4d13c140b474f772db8a5f92fe | [
"MIT"
] | 2 | 2022-02-03T03:33:25.000Z | 2022-02-10T12:54:07.000Z | """A Discrete QFunction-derived policy.
This policy chooses the action that yields to the largest Q-value.
"""
import akro
import numpy as np
import tensorflow as tf
from garage.tf.policies.policy import Policy
class DiscreteQfDerivedPolicy(Policy):
"""DiscreteQfDerived policy.
Args:
env_spec (gara... | 28.293103 | 79 | 0.611213 | 563 | 4,923 | 5.134991 | 0.269982 | 0.026634 | 0.024905 | 0.031131 | 0.308544 | 0.232446 | 0.198893 | 0.189208 | 0.17641 | 0.17641 | 0 | 0.00146 | 0.304489 | 4,923 | 173 | 80 | 28.456647 | 0.842874 | 0.4026 | 0 | 0.036364 | 0 | 0 | 0.064171 | 0.018922 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.254545 | false | 0 | 0.072727 | 0 | 0.527273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7cf80312d7bf8a170d7d38b43151b1897443531a | 73 | py | Python | Day-1/day-1-3-exercise/main.py | MihirMore/100daysofcode-Python | 947d91842639c04ee7d23cc82bf04053d3982a85 | [
"MIT"
] | 4 | 2021-04-09T20:01:22.000Z | 2022-03-18T20:49:58.000Z | Day-1/day-1-3-exercise/main.py | MihirMore/100daysofcode-Python | 947d91842639c04ee7d23cc82bf04053d3982a85 | [
"MIT"
] | null | null | null | Day-1/day-1-3-exercise/main.py | MihirMore/100daysofcode-Python | 947d91842639c04ee7d23cc82bf04053d3982a85 | [
"MIT"
] | null | null | null | name = input("Please enter your name? ")
length = len(name)
print(length) | 24.333333 | 40 | 0.712329 | 11 | 73 | 4.727273 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 73 | 3 | 41 | 24.333333 | 0.825397 | 0 | 0 | 0 | 0 | 0 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
7cf8d3e8ab14fd0517864a28e9f48b1d03aa1353 | 761 | py | Python | plantstuff/graphdb/models.py | christabor/plantstuff | 8515fcc4c86ef0a96f34278d90419e5fad2b48d3 | [
"MIT"
] | 6 | 2018-02-08T06:02:40.000Z | 2022-03-02T11:29:30.000Z | plantstuff/graphdb/models.py | christabor/plantstuff | 8515fcc4c86ef0a96f34278d90419e5fad2b48d3 | [
"MIT"
] | 13 | 2018-03-07T16:15:22.000Z | 2020-03-03T04:50:26.000Z | plantstuff/graphdb/models.py | christabor/plantstuff | 8515fcc4c86ef0a96f34278d90419e5fad2b48d3 | [
"MIT"
] | null | null | null | from neomodel import (config, StructuredNode, StringProperty, IntegerProperty,
UniqueIdProperty, RelationshipTo, RelationshipFrom)
config.DATABASE_URL = 'bolt://neo4j:password@localhost:7687'
class Plant(StructuredNode):
name = StringProperty(unique_index=True, required=True)
flower =... | 27.178571 | 78 | 0.724047 | 72 | 761 | 7.541667 | 0.527778 | 0.066298 | 0.062615 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007899 | 0.1682 | 761 | 27 | 79 | 28.185185 | 0.849921 | 0 | 0 | 0.125 | 0 | 0 | 0.114323 | 0.047306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
7cfc7061a8bb2b68056977a1fe25324ea092d83b | 487 | py | Python | python/class/privacy_student.py | mum-chen/Language-learning | 95ec7b91ee2ce50ba69a82c1b1e47ece5fe63012 | [
"MIT"
] | null | null | null | python/class/privacy_student.py | mum-chen/Language-learning | 95ec7b91ee2ce50ba69a82c1b1e47ece5fe63012 | [
"MIT"
] | null | null | null | python/class/privacy_student.py | mum-chen/Language-learning | 95ec7b91ee2ce50ba69a82c1b1e47ece5fe63012 | [
"MIT"
] | null | null | null |
class Student(object):
def __init__(self, name, score):
self.__name = name
self.__score = score
def print_score(self):
print '%s: %s' % (self.__name, self.__score)
if __name__ == '__main__':
bart = Student('bart simpson', 59)
lisa = Student('lisa simpson', 87)
bart.print... | 23.190476 | 52 | 0.628337 | 60 | 487 | 4.55 | 0.416667 | 0.087912 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.26078 | 487 | 20 | 53 | 24.35 | 0.747222 | 0.125257 | 0 | 0 | 0 | 0 | 0.090692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6b00a78dd6450fd14b828a4fcb25c00a9997ac3c | 1,372 | py | Python | xarray/backends/memory.py | ianthomas23/xarray | aa1d1d19b822897399c8ed2cf346afbac71f45b3 | [
"Apache-2.0"
] | null | null | null | xarray/backends/memory.py | ianthomas23/xarray | aa1d1d19b822897399c8ed2cf346afbac71f45b3 | [
"Apache-2.0"
] | null | null | null | xarray/backends/memory.py | ianthomas23/xarray | aa1d1d19b822897399c8ed2cf346afbac71f45b3 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import copy
import numpy as np
from ..core.variable import Variable
from .common import AbstractWritableDataStore
class InMemoryDataStore(AbstractWritableDataStore):
"""
Stores dimensions, variables and attributes in ordered dictionaries, making
this store fast compar... | 28.583333 | 79 | 0.667638 | 176 | 1,372 | 5.056818 | 0.431818 | 0.073034 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252915 | 1,372 | 47 | 80 | 29.191489 | 0.868293 | 0.205539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.037037 | 0.185185 | 0.074074 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6b0c0feb9b0314ba8b9f571ce43ebeaf60673527 | 362 | py | Python | script/microval/setup.py | boschresearch/vitemi | d70e46e3436577919114ef6cf4a7073a08efcd92 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T19:14:40.000Z | 2022-03-08T19:14:40.000Z | script/microval/setup.py | boschresearch/vitemi | d70e46e3436577919114ef6cf4a7073a08efcd92 | [
"BSD-3-Clause"
] | null | null | null | script/microval/setup.py | boschresearch/vitemi | d70e46e3436577919114ef6cf4a7073a08efcd92 | [
"BSD-3-Clause"
] | null | null | null | import setuptools
setuptools.setup(name='microval',
version='0.1',
description='Micromechanical Fatigue Validation Framework',
author='Erik Natkowski (CR/AMP3)',
author_email='erik.natkowski@de.bosch.com',
packages=setuptools.find_pac... | 36.2 | 76 | 0.574586 | 33 | 362 | 6.212121 | 0.818182 | 0.126829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.323204 | 362 | 9 | 77 | 40.222222 | 0.82449 | 0 | 0 | 0 | 0 | 0 | 0.292818 | 0.074586 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
6b1a57b2471c69bbe8dcf0f5ce14e365b3cd5dec | 693 | py | Python | api/src/model/order_item.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | 18 | 2020-04-12T19:43:24.000Z | 2021-11-14T17:35:34.000Z | api/src/model/order_item.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | 6 | 2020-04-12T22:56:15.000Z | 2020-04-17T19:06:41.000Z | api/src/model/order_item.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | null | null | null | import sqlalchemy as db
from sqlalchemy.orm import relationship
from src.db import helper
from src.db.sqlalchemy import Base
from src.model.order import Order
from src.model.product import Product
class OrderItem(Base):
__tablename__ = 'compra_local_order_item'
id = db.Column(db.Integer, helper.get_sequen... | 31.5 | 100 | 0.764791 | 95 | 693 | 5.252632 | 0.357895 | 0.056112 | 0.08016 | 0.072144 | 0.166333 | 0.128257 | 0.128257 | 0.128257 | 0 | 0 | 0 | 0 | 0.128427 | 693 | 21 | 101 | 33 | 0.826159 | 0 | 0 | 0 | 0 | 0 | 0.105339 | 0.105339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6b1c164f1bedfa16feae86fe72e9a7e6e3b9f8ef | 989 | py | Python | UNIOA/InitOpt_Delta_z.py | Huilin-Li/UNIOA | 0f2527eac955a7193406775e5b71fab35f064422 | [
"MIT"
] | null | null | null | UNIOA/InitOpt_Delta_z.py | Huilin-Li/UNIOA | 0f2527eac955a7193406775e5b71fab35f064422 | [
"MIT"
] | null | null | null | UNIOA/InitOpt_Delta_z.py | Huilin-Li/UNIOA | 0f2527eac955a7193406775e5b71fab35f064422 | [
"MIT"
] | null | null | null | import numpy as np
class InitOpt_Delta_z:
@staticmethod
def your():
pass
@staticmethod
def ba1(t, z1_0, w1):
new_z1 = z1_0 * (1 - np.exp(-w1 * t))
return new_z1
@staticmethod
def ba2(old_z2, w2):
new_z2 = w2 * old_z2
return new_z2
@staticmethod
... | 20.604167 | 69 | 0.518706 | 143 | 989 | 3.41958 | 0.342657 | 0.245399 | 0.09816 | 0.03272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0528 | 0.368049 | 989 | 47 | 70 | 21.042553 | 0.7296 | 0.050556 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.028571 | 0.028571 | 0.057143 | 0.514286 | 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 | 0 | 0 | 0 | 2 |
6b1ef03c75cab8a43e7b698d350b4164118d03d1 | 2,402 | py | Python | libp2p/host/host_interface.py | lithp/py-libp2p | f38899e26edabe59b291e466143d1c696c44de8d | [
"Apache-2.0",
"MIT"
] | null | null | null | libp2p/host/host_interface.py | lithp/py-libp2p | f38899e26edabe59b291e466143d1c696c44de8d | [
"Apache-2.0",
"MIT"
] | null | null | null | libp2p/host/host_interface.py | lithp/py-libp2p | f38899e26edabe59b291e466143d1c696c44de8d | [
"Apache-2.0",
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Any, List, Sequence
import multiaddr
from libp2p.network.network_interface import INetwork
from libp2p.network.stream.net_stream_interface import INetStream
from libp2p.peer.id import ID
from libp2p.peer.peerinfo import PeerInfo
from libp2p.typing import StreamHa... | 29.292683 | 97 | 0.653206 | 299 | 2,402 | 5.143813 | 0.337793 | 0.027308 | 0.052016 | 0.029909 | 0.03381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002879 | 0.276853 | 2,402 | 81 | 98 | 29.654321 | 0.882556 | 0.180683 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.151515 | false | 0.060606 | 0.242424 | 0 | 0.424242 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6b20823e1059c3aaa71efe242e6e103f7bbfd767 | 983 | py | Python | trab2/moviedatabase/movies/migrations/0001_initial.py | pedrochamberlain/INF1407 | 9400af8bacb1df2fff565bb24c7dfbba6895c9d0 | [
"MIT"
] | null | null | null | trab2/moviedatabase/movies/migrations/0001_initial.py | pedrochamberlain/INF1407 | 9400af8bacb1df2fff565bb24c7dfbba6895c9d0 | [
"MIT"
] | null | null | null | trab2/moviedatabase/movies/migrations/0001_initial.py | pedrochamberlain/INF1407 | 9400af8bacb1df2fff565bb24c7dfbba6895c9d0 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-11-03 04:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Filme',
fields=[
('id', models.AutoField(au... | 36.407407 | 114 | 0.608342 | 109 | 983 | 5.348624 | 0.550459 | 0.132075 | 0.123499 | 0.164666 | 0.190395 | 0.190395 | 0.190395 | 0 | 0 | 0 | 0 | 0.033012 | 0.260427 | 983 | 26 | 115 | 37.807692 | 0.768913 | 0.045778 | 0 | 0 | 1 | 0 | 0.168803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.263158 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b25c4218b0036a2b8e70dc79fa2ae5de35aee46 | 561 | py | Python | ibm_resilient_incident/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | ibm_resilient_incident/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | ibm_resilient_incident/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
from setuptools import setup, find_packages
setup(name='ibm_resilient_incident-rapid7-plugin',
version='1.0.0',
description='The Resilient Incident Response Platform (IRP) is a leading platform for orchestrating and automating incident response processes',
aut... | 37.4 | 150 | 0.713012 | 68 | 561 | 5.75 | 0.735294 | 0.130435 | 0.102302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010965 | 0.187166 | 561 | 14 | 151 | 40.071429 | 0.846491 | 0.172906 | 0 | 0 | 1 | 0 | 0.466377 | 0.149675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b28e311fcd71537ee414964619878678378453d | 1,886 | py | Python | LAD-AMA-Common/metrics_ext_utils/metrics_common_utils.py | shridpant/azure-linux-extensions | 4b5e66f33d5b93b15b427a9438931f0414f12a6e | [
"Apache-2.0"
] | 266 | 2015-01-05T04:13:15.000Z | 2022-03-24T17:52:51.000Z | LAD-AMA-Common/metrics_ext_utils/metrics_common_utils.py | shridpant/azure-linux-extensions | 4b5e66f33d5b93b15b427a9438931f0414f12a6e | [
"Apache-2.0"
] | 703 | 2015-01-27T07:16:57.000Z | 2022-03-29T09:01:23.000Z | LAD-AMA-Common/metrics_ext_utils/metrics_common_utils.py | shridpant/azure-linux-extensions | 4b5e66f33d5b93b15b427a9438931f0414f12a6e | [
"Apache-2.0"
] | 276 | 2015-01-20T11:11:15.000Z | 2022-03-24T12:40:49.000Z | #!/usr/bin/env python
#
# Azure Linux extension
#
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the ""Software""), to deal in the Software without restrictio... | 41 | 120 | 0.731707 | 283 | 1,886 | 4.840989 | 0.540636 | 0.064234 | 0.018978 | 0.023358 | 0.026277 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.188759 | 1,886 | 46 | 121 | 41 | 0.891503 | 0.709438 | 0 | 0 | 0 | 0 | 0.236626 | 0.084362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6b3bc7277d4f0fd387891e7b72126bd691c7b18f | 705 | py | Python | napkin/gen_plantuml_png.py | scottx611x/napkin | 318363364abea483173813d5212772ee9a641fe8 | [
"MIT"
] | null | null | null | napkin/gen_plantuml_png.py | scottx611x/napkin | 318363364abea483173813d5212772ee9a641fe8 | [
"MIT"
] | null | null | null | napkin/gen_plantuml_png.py | scottx611x/napkin | 318363364abea483173813d5212772ee9a641fe8 | [
"MIT"
] | null | null | null | """
Generate PlantUML script and PNG file
"""
import os
try:
import plantuml
except ImportError:
raise ImportError('plantuml package is required but not yet installed.\n'
'Please install it by "pip install plantuml"')
from . import gen_plantuml
def generate(diagram_name, output_dir, sd_c... | 32.045455 | 82 | 0.689362 | 89 | 705 | 5.224719 | 0.516854 | 0.12043 | 0.08172 | 0.107527 | 0.15914 | 0.15914 | 0.15914 | 0 | 0 | 0 | 0 | 0.001848 | 0.232624 | 705 | 21 | 83 | 33.571429 | 0.857671 | 0.052482 | 0 | 0 | 1 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6b409d306eaec43bdb67378e992ffbab2654e7a7 | 184 | py | Python | SPOJ/IITWPCN.py | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/IITWPCN.py | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/IITWPCN.py | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | import sys
t = input()
while(t):
str = sys.stdin.readline().split()
B = int(str[1])
if(B&1):
print "1.000000"
else:
print "0.000000"
t -= 1
| 12.266667 | 38 | 0.472826 | 27 | 184 | 3.222222 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.353261 | 184 | 14 | 39 | 13.142857 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.087432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b42769d7cc233120cf212ff1cdf7a541a82e844 | 260 | py | Python | ctfproblems/Hopper/45_truly_blue/grader.py | milesmcc/pactf-2018 | cfd9d94a7b6828259220f52ab3c5893a28429c62 | [
"MIT"
] | null | null | null | ctfproblems/Hopper/45_truly_blue/grader.py | milesmcc/pactf-2018 | cfd9d94a7b6828259220f52ab3c5893a28429c62 | [
"MIT"
] | null | null | null | ctfproblems/Hopper/45_truly_blue/grader.py | milesmcc/pactf-2018 | cfd9d94a7b6828259220f52ab3c5893a28429c62 | [
"MIT"
] | null | null | null | def grade(key, submission):
if submission == 'last bits matter' or submission == 'last bitsmatter':
return True, "Nice job! You found the needle in the haystack!"
else:
return False, "Sorry, that isn't right! Looks can be deceiving..."
| 43.333333 | 75 | 0.661538 | 36 | 260 | 4.777778 | 0.861111 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 260 | 5 | 76 | 52 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.492308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
860fddf98ca8ddb406bfcc0f00be6ee17f118642 | 5,564 | py | Python | plugins/abuseipdb/komand_abuseipdb/actions/check_ip/schema.py | JaredAllen13/insightconnect-plugins | f68ce8c60ad20439284228dfcbcd9f8c1c0c7d31 | [
"MIT"
] | null | null | null | plugins/abuseipdb/komand_abuseipdb/actions/check_ip/schema.py | JaredAllen13/insightconnect-plugins | f68ce8c60ad20439284228dfcbcd9f8c1c0c7d31 | [
"MIT"
] | null | null | null | plugins/abuseipdb/komand_abuseipdb/actions/check_ip/schema.py | JaredAllen13/insightconnect-plugins | f68ce8c60ad20439284228dfcbcd9f8c1c0c7d31 | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json
class Component:
DESCRIPTION = "Look up an IP address in the database"
class Input:
ADDRESS = "address"
DAYS = "days"
VERBOSE = "verbose"
class Output:
ABUSECONFIDENCESCORE = "abuseConfidenceScore"
... | 24.728889 | 138 | 0.523544 | 510 | 5,564 | 5.652941 | 0.313725 | 0.045092 | 0.067638 | 0.013181 | 0.148456 | 0.130073 | 0.084634 | 0.063822 | 0.02983 | 0.02983 | 0 | 0.015494 | 0.3156 | 5,564 | 224 | 139 | 24.839286 | 0.741597 | 0.00665 | 0 | 0.279621 | 1 | 0.009479 | 0.849774 | 0.016109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009479 | false | 0 | 0.009479 | 0 | 0.14218 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8612423f6dc9c97dee9ac47414d5da1375ca167e | 259 | py | Python | Ogrenciler/fadime/soru11.py | ProEgitim/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | 1 | 2021-04-18T17:35:22.000Z | 2021-04-18T17:35:22.000Z | Ogrenciler/fadime/soru11.py | waroi/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | null | null | null | Ogrenciler/fadime/soru11.py | waroi/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | 2 | 2021-04-18T18:22:26.000Z | 2021-04-24T17:16:19.000Z | note=int(input("notunuzu giriniz"))
if(note>90):
print("AA")
elif(note>85):
print("BA")
elif(note>75):
print("BB")
elif(note>65):
print("DC")
elif(note>55):
print("FF KALDINIZ ")
else:
print("yanlıs bir giris yyaptiniz")
| 18.5 | 39 | 0.579151 | 37 | 259 | 4.054054 | 0.648649 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049505 | 0.220077 | 259 | 14 | 40 | 18.5 | 0.693069 | 0 | 0 | 0 | 0 | 0 | 0.238462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
861a66768d3f3e888f5d7cecebd8886802dadc4f | 170 | py | Python | Exe9.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | Exe9.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | Exe9.py | flavioUENP/aula1 | 8deba1de0ac54109c54d7e44d2852a8ca639e625 | [
"Apache-2.0"
] | null | null | null | cavalos=int(input("Digite a quantidade de cavalos comprados: "))
qfpc=4
total=(cavalos*qfpc)
print("Você precisa de:", total, "ferraduras para ferrar os novos cavalos. ") | 42.5 | 77 | 0.752941 | 25 | 170 | 5.12 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.111765 | 170 | 4 | 77 | 42.5 | 0.84106 | 0 | 0 | 0 | 0 | 0 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8642f202240eadd98ecc67f2c87a95ef03e3a64e | 151 | py | Python | 1/p1.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | 1/p1.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | 1/p1.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | import math
line = input().split()
n = int(line[0])
m = int(line[1])
a = int(line[2])
answer = math.ceil(m/a) * math.ceil(n/a)
print(str(int(answer)))
| 18.875 | 40 | 0.622517 | 30 | 151 | 3.133333 | 0.533333 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.13245 | 151 | 7 | 41 | 21.571429 | 0.694656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
865d052e0074225cf6d2b6f2cbee5b75449305bf | 230 | py | Python | modules/php/test.py | Josue87/wp_hunter | fa1de6dfa41bc524136dbc7770aeca690e11ac80 | [
"MIT"
] | 53 | 2020-12-08T12:26:45.000Z | 2022-02-19T15:53:49.000Z | modules/php/test.py | Josue87/wp_hunter | fa1de6dfa41bc524136dbc7770aeca690e11ac80 | [
"MIT"
] | null | null | null | modules/php/test.py | Josue87/wp_hunter | fa1de6dfa41bc524136dbc7770aeca690e11ac80 | [
"MIT"
] | 13 | 2020-12-08T12:56:13.000Z | 2022-01-17T17:55:25.000Z | from modules._template import Template
class Module(Template):
def __init__(self):
pattern_list = [r"regex1", r"regex2"] # All the expressions you want
super(Module, self).__init__(pattern_list, "test_php")
| 25.555556 | 76 | 0.7 | 30 | 230 | 4.966667 | 0.733333 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.191304 | 230 | 8 | 77 | 28.75 | 0.790323 | 0.121739 | 0 | 0 | 0 | 0 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
866076e27b4f92181148792050b16f1847a49e22 | 5,687 | py | Python | nova/conf/ironic.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/conf/ironic.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/conf/ironic.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2015 Intel Corporation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comme... | 15.165333 | 88 | 0.652893 | 891 | 5,687 | 4.075196 | 0.16835 | 0.061966 | 0.052327 | 0.123933 | 0.615258 | 0.503993 | 0.438722 | 0.431837 | 0.349491 | 0.305701 | 0 | 0.002542 | 0.100756 | 5,687 | 374 | 89 | 15.205882 | 0.70747 | 0 | 0 | 0.804813 | 0 | 0 | 0.417092 | 0.007737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.016043 | 0.002674 | 0 | 0.002674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86706847e667dd01d0d4e4b4389c286b1e71e945 | 127 | py | Python | mkdocs_click/__version__.py | jmaupetit/mkdocs-click | 74c4c776b950e204f96b6cbd7dbf4dd9cecfffd9 | [
"Apache-2.0"
] | null | null | null | mkdocs_click/__version__.py | jmaupetit/mkdocs-click | 74c4c776b950e204f96b6cbd7dbf4dd9cecfffd9 | [
"Apache-2.0"
] | null | null | null | mkdocs_click/__version__.py | jmaupetit/mkdocs-click | 74c4c776b950e204f96b6cbd7dbf4dd9cecfffd9 | [
"Apache-2.0"
] | null | null | null | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under the Apache license (see LICENSE)
__version__ = "0.3.0"
| 25.4 | 49 | 0.724409 | 19 | 127 | 4.631579 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065421 | 0.15748 | 127 | 4 | 50 | 31.75 | 0.757009 | 0.771654 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
867a1ea582695f0458675f912894a347814f4ebf | 4,182 | py | Python | text.py | Joeization/pyGaen | 172db8a1609da7d6c698d552e5d915df912e9e2d | [
"MIT"
] | 1 | 2019-06-16T16:13:18.000Z | 2019-06-16T16:13:18.000Z | text.py | Joeization/pyGaen | 172db8a1609da7d6c698d552e5d915df912e9e2d | [
"MIT"
] | null | null | null | text.py | Joeization/pyGaen | 172db8a1609da7d6c698d552e5d915df912e9e2d | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
class Text(object):
'''Load dialog and choice files
to parse a dialog/choice file
it is not necessary to separate into 2 files
first we need to load the text
'''
def __init__(self, tar):
f = open(tar, 'r')
self.content = []
for... | 31.443609 | 105 | 0.38044 | 446 | 4,182 | 3.558296 | 0.251121 | 0.180844 | 0.20794 | 0.249527 | 0.431002 | 0.374921 | 0.359168 | 0.310019 | 0.196597 | 0.10586 | 0 | 0.019487 | 0.496891 | 4,182 | 132 | 106 | 31.681818 | 0.734791 | 0.08704 | 0 | 0.405797 | 0 | 0 | 0.010368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0.014493 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8694537b81bdbc1a530d3c70267a31ab210ecfea | 406 | py | Python | apps/users/views.py | lorenz-bienek/drf-saas-starter | 8377de9e452dcb929abde798e0383f6bdeaf9f2f | [
"BSD-3-Clause"
] | 9 | 2017-11-03T14:44:43.000Z | 2019-06-06T21:03:16.000Z | apps/users/views.py | lorenz-bienek/drf-saas-starter | 8377de9e452dcb929abde798e0383f6bdeaf9f2f | [
"BSD-3-Clause"
] | 1 | 2017-08-02T15:52:01.000Z | 2019-08-13T22:48:25.000Z | apps/users/views.py | lorenz-bienek/drf-saas-starter | 8377de9e452dcb929abde798e0383f6bdeaf9f2f | [
"BSD-3-Clause"
] | 3 | 2017-08-01T10:27:01.000Z | 2018-07-26T16:07:07.000Z | from rest_framework.viewsets import ModelViewSet
from ..activities.mixins import ActivitiesMixin
from ..comments.mixins import CommentsMixin
from .models import User
from .serializers import UserSerializer
class UserViewSet(ActivitiesMixin, CommentsMixin, ModelViewSet):
"""A ViewSet for viewing and editing user ... | 31.230769 | 64 | 0.802956 | 44 | 406 | 7.363636 | 0.636364 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130542 | 406 | 12 | 65 | 33.833333 | 0.917847 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
869bf33acfaf6b9ed8b025b360b0d416649ee96e | 4,388 | py | Python | tests/tables/resources.py | oroschz/dotcoin | 5c1a2b77a2444f2e9fbeba708ce1315d41b1a11f | [
"MIT"
] | null | null | null | tests/tables/resources.py | oroschz/dotcoin | 5c1a2b77a2444f2e9fbeba708ce1315d41b1a11f | [
"MIT"
] | null | null | null | tests/tables/resources.py | oroschz/dotcoin | 5c1a2b77a2444f2e9fbeba708ce1315d41b1a11f | [
"MIT"
] | null | null | null | from dotcoin.core.types import Market, Context, Ticker, Order, Book, Table
MARKET = Market("BTC", "ETH")
CONTEXT = Context(MARKET, "BINANCE")
TICKER = Ticker(CONTEXT, **{
'bid': 0.023176,
'ask': 0.023184,
'last': 0.023182,
'volume': 336552.631,
'var': -0.694
})
TICKER_TABLE = Table(
["Last E... | 34.551181 | 86 | 0.401322 | 529 | 4,388 | 5.461248 | 0.236295 | 0.015922 | 0.034268 | 0.077882 | 0.01073 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212367 | 0.185506 | 4,388 | 126 | 87 | 34.825397 | 0.27756 | 0 | 0 | 0.116071 | 0 | 0.053571 | 0.57794 | 0.237238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008929 | 0 | 0.008929 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
869bf664009bb9df4d55a68ede90049a97e4afee | 4,627 | py | Python | pyowm/owm.py | ahertz/pyowm | e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c | [
"MIT"
] | null | null | null | pyowm/owm.py | ahertz/pyowm | e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c | [
"MIT"
] | null | null | null | pyowm/owm.py | ahertz/pyowm | e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pyowm import constants
from pyowm.agroapi10 import agro_manager
from pyowm.airpollutionapi30 import airpollution_manager
from pyowm.alertapi30 import alert_manager
from pyowm.stationsapi30 import stations_manager
from pyowm.tiles import tile_manager
from pyowm.utils i... | 34.529851 | 121 | 0.666523 | 555 | 4,627 | 5.414414 | 0.234234 | 0.037937 | 0.036606 | 0.045258 | 0.346423 | 0.297171 | 0.243594 | 0.069218 | 0.037271 | 0.037271 | 0 | 0.008384 | 0.252431 | 4,627 | 133 | 122 | 34.789474 | 0.860364 | 0.407608 | 0 | 0.058824 | 0 | 0 | 0.043029 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.254902 | false | 0 | 0.215686 | 0.019608 | 0.72549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
869f785399ac4a46a7eccca56fb8d322d588c0ad | 200 | py | Python | ch4/return.single.value.2.py | ldmcdaniel/learning_python | 63717c397cd75e45a8aef909d4b601466cd6036a | [
"MIT"
] | 55 | 2018-07-04T10:12:15.000Z | 2022-03-03T19:51:54.000Z | ch4/return.single.value.2.py | ldmcdaniel/learning_python | 63717c397cd75e45a8aef909d4b601466cd6036a | [
"MIT"
] | 6 | 2020-03-24T16:37:46.000Z | 2021-06-10T21:04:36.000Z | ch4/return.single.value.2.py | ldmcdaniel/learning_python | 63717c397cd75e45a8aef909d4b601466cd6036a | [
"MIT"
] | 32 | 2018-07-10T05:56:31.000Z | 2021-09-04T23:19:42.000Z | from functools import reduce
from operator import mul
def factorial(n):
return reduce(mul, range(1, n + 1), 1)
f5 = factorial(5) # f5 = 120
print(f5)
print([factorial(k) for k in range(10)])
| 16.666667 | 42 | 0.675 | 34 | 200 | 3.970588 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074534 | 0.195 | 200 | 11 | 43 | 18.181818 | 0.763975 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
86a1e03ee9e5664f8234553d58ecf40ca16dfdc1 | 69 | py | Python | lang/py/cookbook/v2/source/cb2_1_6_exm_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_6_exm_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_6_exm_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | largeString = small1 + small2 + ' something ' + small3 + ' yet more'
| 34.5 | 68 | 0.652174 | 7 | 69 | 6.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.217391 | 69 | 1 | 69 | 69 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86ac357589be39eef6d665598cc259ea87e2bde1 | 1,255 | py | Python | conference/tests/factories/talk.py | judy2k/epcon | 0a033f915bd79c1e93e6408069e33655990fbf07 | [
"BSD-2-Clause"
] | null | null | null | conference/tests/factories/talk.py | judy2k/epcon | 0a033f915bd79c1e93e6408069e33655990fbf07 | [
"BSD-2-Clause"
] | null | null | null | conference/tests/factories/talk.py | judy2k/epcon | 0a033f915bd79c1e93e6408069e33655990fbf07 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import
import factory
import factory.django
import factory.fuzzy
from django.template.defaultfilters import slugify
from faker import Faker
import conference.models
from conference.models import TALK_LANGUAGES
from conference.tests.factories.speaker import SpeakerFactory
fake = Faker(... | 34.861111 | 108 | 0.772112 | 153 | 1,255 | 6.222222 | 0.366013 | 0.084034 | 0.078782 | 0.097689 | 0.236345 | 0.115546 | 0.115546 | 0 | 0 | 0 | 0 | 0.009174 | 0.131474 | 1,255 | 35 | 109 | 35.857143 | 0.86422 | 0 | 0 | 0.076923 | 0 | 0 | 0.039044 | 0.01753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.346154 | 0 | 0.884615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
86afc4f1dd3a42258d0c0785ca6bf1397aa135aa | 2,033 | py | Python | deploy/reset_compute.py | wtwde/compass-docker-osa-ocata | af14c185b70125740ea4801981085c740bf98ae0 | [
"Apache-2.0"
] | null | null | null | deploy/reset_compute.py | wtwde/compass-docker-osa-ocata | af14c185b70125740ea4801981085c740bf98ae0 | [
"Apache-2.0"
] | null | null | null | deploy/reset_compute.py | wtwde/compass-docker-osa-ocata | af14c185b70125740ea4801981085c740bf98ae0 | [
"Apache-2.0"
] | null | null | null | ##############################################################################
# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, ... | 28.236111 | 97 | 0.578947 | 243 | 2,033 | 4.666667 | 0.374486 | 0.049383 | 0.042328 | 0.037037 | 0.202822 | 0.202822 | 0.156966 | 0.156966 | 0.156966 | 0.156966 | 0 | 0.008491 | 0.246926 | 2,033 | 71 | 98 | 28.633803 | 0.732201 | 0.163305 | 0 | 0.217391 | 0 | 0.021739 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.108696 | 0.065217 | null | null | 0.282609 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
86b71566ceb31f189fc9d98074f06ecd407bbf5e | 765 | py | Python | screenbase.py | mahart-studio/UniCloud | ab137c82680f23f2fea6fc226867b32967019ede | [
"MIT"
] | 3 | 2019-12-06T15:31:14.000Z | 2021-01-09T05:45:52.000Z | screenbase.py | avour/UniCloud | ab137c82680f23f2fea6fc226867b32967019ede | [
"MIT"
] | null | null | null | screenbase.py | avour/UniCloud | ab137c82680f23f2fea6fc226867b32967019ede | [
"MIT"
] | null | null | null | from kivy.uix.screenmanager import Screen
from kivy.core.window import Window
from kivy.uix.modalview import ModalView
class ScreenBase(Screen):
__events__ = ('on_back_button',)
def on_pre_enter(self):
Window.bind(on_key_down=self.listen_for_key)
def on_pre_leave(self):
Window.unbind(on_... | 26.37931 | 66 | 0.661438 | 101 | 765 | 4.752475 | 0.455446 | 0.083333 | 0.075 | 0.0625 | 0.1875 | 0.116667 | 0.116667 | 0.116667 | 0 | 0 | 0 | 0.003484 | 0.249673 | 765 | 28 | 67 | 27.321429 | 0.832753 | 0.056209 | 0 | 0.105263 | 0 | 0 | 0.039161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.157895 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
86b74386662b2bac83d0db5b8c708058bb296035 | 416 | py | Python | exam2pdf/__init__.py | agossino/exam2pdf | bc396c5dbf030fe7c6eb84723ceafc3a3f3467e1 | [
"MIT"
] | null | null | null | exam2pdf/__init__.py | agossino/exam2pdf | bc396c5dbf030fe7c6eb84723ceafc3a3f3467e1 | [
"MIT"
] | null | null | null | exam2pdf/__init__.py | agossino/exam2pdf | bc396c5dbf030fe7c6eb84723ceafc3a3f3467e1 | [
"MIT"
] | null | null | null | from .question import (
Answer,
Answer,
TrueFalseAnswer,
Question,
Question,
TrueFalseQuest,
)
from .exam import Exam
from .utility import Exam2pdfException
__all__ = [
"Exam",
"Answer",
"Answer",
"TrueFalseAnswer",
"Question",
"Question",
"TrueFalseQuest",
"Exam... | 16.64 | 50 | 0.641827 | 36 | 416 | 6.916667 | 0.472222 | 0.096386 | 0.216867 | 0.281125 | 0.457831 | 0.457831 | 0 | 0 | 0 | 0 | 0 | 0.012539 | 0.233173 | 416 | 24 | 51 | 17.333333 | 0.768025 | 0 | 0 | 0.363636 | 0 | 0 | 0.189904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86c96f21577c9c38a2330ea6cf36f0996a5484b9 | 1,458 | py | Python | netmiko/alcatel/alcatel_aos_ssh.py | Richard-Su/netmiko | 2dc032b64c3049d3048966441ee30a0139bebc81 | [
"MIT"
] | null | null | null | netmiko/alcatel/alcatel_aos_ssh.py | Richard-Su/netmiko | 2dc032b64c3049d3048966441ee30a0139bebc81 | [
"MIT"
] | null | null | null | netmiko/alcatel/alcatel_aos_ssh.py | Richard-Su/netmiko | 2dc032b64c3049d3048966441ee30a0139bebc81 | [
"MIT"
] | null | null | null | """Alcatel-Lucent Enterprise AOS support (AOS6 and AOS8)."""
import time
from netmiko.cisco_base_connection import CiscoSSHConnection
class AlcatelAosSSH(CiscoSSHConnection):
"""Alcatel-Lucent Enterprise AOS support (AOS6 and AOS8)."""
def session_preparation(self):
# Prompt can be anything, but best... | 29.16 | 82 | 0.605624 | 179 | 1,458 | 4.782123 | 0.418994 | 0.042056 | 0.063084 | 0.093458 | 0.404206 | 0.396028 | 0.396028 | 0.35514 | 0.252336 | 0.252336 | 0 | 0.006573 | 0.269547 | 1,458 | 49 | 83 | 29.755102 | 0.797183 | 0.23251 | 0 | 0.214286 | 0 | 0 | 0.028011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
86d42563b862f28bab4fbe6392e5c12a638258e8 | 316 | py | Python | src/collective/handsontable/browser.py | collective/collective.handsontable | d06025cab05490926972b0c58067ea4b1ff35565 | [
"BSD-3-Clause"
] | null | null | null | src/collective/handsontable/browser.py | collective/collective.handsontable | d06025cab05490926972b0c58067ea4b1ff35565 | [
"BSD-3-Clause"
] | null | null | null | src/collective/handsontable/browser.py | collective/collective.handsontable | d06025cab05490926972b0c58067ea4b1ff35565 | [
"BSD-3-Clause"
] | null | null | null | from plone.protect import PostOnly
from Products.Five import BrowserView
class Save(BrowserView):
def save(self):
"""Save json to the context.
Or pretend for now. :-)
"""
PostOnly(self.request)
# XXX Do something. Where is the data?
return ['foobar success']
| 19.75 | 46 | 0.617089 | 38 | 316 | 5.131579 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291139 | 316 | 15 | 47 | 21.066667 | 0.870536 | 0.278481 | 0 | 0 | 0 | 0 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
86e2b13aea21d8a669fad96360cc9d0933bbf3eb | 1,675 | py | Python | menu/views/download_password.py | davidpales1/superbly | 4bf82bfdaa0bc77819739dbcdbbd2e3b9e83f9f5 | [
"BSD-3-Clause"
] | 2 | 2019-03-01T03:49:15.000Z | 2021-04-26T09:22:56.000Z | menu/views/download_password.py | davidpales1/superbly | 4bf82bfdaa0bc77819739dbcdbbd2e3b9e83f9f5 | [
"BSD-3-Clause"
] | null | null | null | menu/views/download_password.py | davidpales1/superbly | 4bf82bfdaa0bc77819739dbcdbbd2e3b9e83f9f5 | [
"BSD-3-Clause"
] | null | null | null | from sgcommapp.models import *
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from django.views.generic import View
import reportlab
from reportlab.platypus import Paragraph, SimpleDocTemplate
from reportlab.lib.styles import getSampleStyle... | 34.895833 | 192 | 0.65194 | 178 | 1,675 | 6.050562 | 0.438202 | 0.03714 | 0.030641 | 0.03714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001554 | 0.231642 | 1,675 | 47 | 193 | 35.638298 | 0.835276 | 0.032239 | 0 | 0 | 0 | 0 | 0.146404 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.15625 | 0.34375 | 0 | 0.46875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
86e70fa59a822643011baedbf77af03e4eb3eafd | 574 | py | Python | src/particle/particle/__init__.py | tamasgal/particle | c39800130dba24b19cbc24a51ec98fae9e769d46 | [
"BSD-3-Clause"
] | null | null | null | src/particle/particle/__init__.py | tamasgal/particle | c39800130dba24b19cbc24a51ec98fae9e769d46 | [
"BSD-3-Clause"
] | null | null | null | src/particle/particle/__init__.py | tamasgal/particle | c39800130dba24b19cbc24a51ec98fae9e769d46 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/particle for details.
from __future__ import absolute_import
from .particle import Particle
from .particle import P... | 38.266667 | 75 | 0.810105 | 78 | 574 | 5.769231 | 0.679487 | 0.053333 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019763 | 0.118467 | 574 | 14 | 76 | 41 | 0.869565 | 0.372822 | 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 | 0 | 0 | 0 | 2 |
86ed7eb1317743357c55597670e6184bc6ac7bc3 | 1,509 | py | Python | Jobs/Boxplots.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | 2 | 2021-02-18T04:21:34.000Z | 2022-03-09T11:16:17.000Z | Jobs/Boxplots.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | null | null | null | Jobs/Boxplots.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | 1 | 2020-12-13T08:32:04.000Z | 2020-12-13T08:32:04.000Z | import matplotlib.pyplot as plt
import numpy as np
# Fixing random state for reproducibility
np.random.seed(19680801)
# fake up some data
dcn_pd = np.array([0.19285714285714300,
0.42380952380952400,
0.06473079249848760,
0.06655974338412180,
0... | 28.471698 | 64 | 0.585818 | 141 | 1,509 | 6.191489 | 0.546099 | 0.017182 | 0.027491 | 0.02291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.55098 | 0.324056 | 1,509 | 52 | 65 | 29.019231 | 0.304902 | 0.045063 | 0 | 0.046512 | 0 | 0 | 0.052192 | 0.02366 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86ede70c3873698aff860ca45d7bc1b3f4ecb26c | 242 | py | Python | 10. Loops/86. repeater_exercise.py | AnmolTomer/Udemy---Colt-Steele-Modern-Python-Bootcamp-Codebook | 5073fd92e38d95a1b7ecf3b9effb9c9683ce5ceb | [
"MIT"
] | 3 | 2020-06-17T10:05:37.000Z | 2021-12-14T17:24:21.000Z | 10. Loops/86. repeater_exercise.py | AnmolTomer/Udemy---Colt-Steele-Modern-Python-Bootcamp-Codebook | 5073fd92e38d95a1b7ecf3b9effb9c9683ce5ceb | [
"MIT"
] | null | null | null | 10. Loops/86. repeater_exercise.py | AnmolTomer/Udemy---Colt-Steele-Modern-Python-Bootcamp-Codebook | 5073fd92e38d95a1b7ecf3b9effb9c9683ce5ceb | [
"MIT"
] | 4 | 2019-02-28T17:15:46.000Z | 2020-04-26T05:56:57.000Z | t = input("How many times do I have to tell you to clean your room : ? \n")
t = int(t)
for time in range(t):
print(f"time {time+1} : CLEAN UP YOUR ROOM")
# We are adding one to initialiser time shows that by default it starts with 0. | 48.4 | 80 | 0.669421 | 48 | 242 | 3.375 | 0.770833 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.231405 | 242 | 5 | 80 | 48.4 | 0.860215 | 0.318182 | 0 | 0 | 0 | 0 | 0.603774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
86fc11a1a7337c301ee1bc7bdc71ffaae835472f | 121 | py | Python | deep-redundancy/fix.py | THEPortatCERN/Hackathon2018-Pier18 | 97e7f0825959e9a8ebc00d091191b1409003b236 | [
"MIT"
] | null | null | null | deep-redundancy/fix.py | THEPortatCERN/Hackathon2018-Pier18 | 97e7f0825959e9a8ebc00d091191b1409003b236 | [
"MIT"
] | null | null | null | deep-redundancy/fix.py | THEPortatCERN/Hackathon2018-Pier18 | 97e7f0825959e9a8ebc00d091191b1409003b236 | [
"MIT"
] | 1 | 2018-10-06T07:34:52.000Z | 2018-10-06T07:34:52.000Z | import ftfy
with open("data/small_text.json") as fp:
for line in fp:
print(ftfy.fix_encoding(line), end='')
| 20.166667 | 46 | 0.652893 | 20 | 121 | 3.85 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206612 | 121 | 5 | 47 | 24.2 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
810366174a17e7b0e0d29420b5605e632bf25e15 | 712 | py | Python | practice.py | ksyu0508/alpha-omok | 46f7eeb29b68fe79fde9966cc61fb9586ca508e7 | [
"MIT"
] | null | null | null | practice.py | ksyu0508/alpha-omok | 46f7eeb29b68fe79fde9966cc61fb9586ca508e7 | [
"MIT"
] | null | null | null | practice.py | ksyu0508/alpha-omok | 46f7eeb29b68fe79fde9966cc61fb9586ca508e7 | [
"MIT"
] | null | null | null | from omok.OmokGame import OmokGame as game
from omok.OmokLogic import Board
g = game(15)
b = g.getInitBoard()
pl = 1
game.display(b)
b, pl = g.getNextState(b,pl,49)
game.display(b)
b, pl = g.getNextState(b,pl,50)
b, pl = g.getNextState(b,pl,64)
b, pl = g.getNextState(b,pl,65)
b, pl = g.getNextState(b,pl,66)
game.displ... | 25.428571 | 42 | 0.686798 | 144 | 712 | 3.395833 | 0.215278 | 0.177914 | 0.106339 | 0.425358 | 0.768916 | 0.768916 | 0.419223 | 0.419223 | 0.419223 | 0.220859 | 0 | 0.044728 | 0.120787 | 712 | 27 | 43 | 26.37037 | 0.736422 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
810387c3cf39ac2d901cc8f584437c5ab609af85 | 1,786 | py | Python | tests/python/test_listgen.py | 447983454/taichi | 2bfbca88b2d8cb1a070da9a40c5422c99b23fc2f | [
"MIT"
] | 1 | 2020-06-01T14:22:19.000Z | 2020-06-01T14:22:19.000Z | tests/python/test_listgen.py | 447983454/taichi | 2bfbca88b2d8cb1a070da9a40c5422c99b23fc2f | [
"MIT"
] | null | null | null | tests/python/test_listgen.py | 447983454/taichi | 2bfbca88b2d8cb1a070da9a40c5422c99b23fc2f | [
"MIT"
] | null | null | null | import taichi as ti
from random import randrange
@ti.all_archs
def test_listgen():
x = ti.var(ti.i32)
n = 1024
ti.root.dense(ti.ij, 4).dense(ti.ij, 4).dense(ti.ij,
4).dense(ti.ij,
4).dense(ti.ij,
... | 29.278689 | 79 | 0.427212 | 262 | 1,786 | 2.877863 | 0.232824 | 0.026525 | 0.074271 | 0.066313 | 0.809019 | 0.755968 | 0.661804 | 0.607427 | 0.523873 | 0.5 | 0 | 0.046653 | 0.447928 | 1,786 | 60 | 80 | 29.766667 | 0.718053 | 0.129339 | 0 | 0.363636 | 0 | 0 | 0.007742 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.136364 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8109b103366e237f7a4993a33ad44ed872cba5c1 | 631 | py | Python | plugin_manager/core/settings/develop.py | ahharu/plugin-manager | 43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb | [
"MIT"
] | 219 | 2015-08-16T15:36:50.000Z | 2021-11-15T09:38:54.000Z | plugin_manager/core/settings/develop.py | ahharu/plugin-manager | 43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb | [
"MIT"
] | 76 | 2015-08-12T14:49:09.000Z | 2022-03-11T23:20:33.000Z | plugin_manager/core/settings/develop.py | ahharu/plugin-manager | 43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb | [
"MIT"
] | 67 | 2015-08-18T11:04:41.000Z | 2021-01-10T13:46:42.000Z | # dev server settings for core project.
DEBUG = True
DATABASES = {
'default': {
# The last part of ENGINE is 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'ado_mssql'.
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': '', # Or path to database file if using sqlite3
'USER'... | 39.4375 | 94 | 0.554675 | 71 | 631 | 4.887324 | 0.633803 | 0.080692 | 0.126801 | 0.207493 | 0.10951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018648 | 0.320127 | 631 | 16 | 95 | 39.4375 | 0.79021 | 0.513471 | 0 | 0 | 0 | 0 | 0.27 | 0.126667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8115a88b38f63ca0ea652b3a18e0085fed4a0137 | 991 | py | Python | finrl/commands/deploy_commands.py | JuohmaruSanshiro/FinRL-Library | d62fd577a0be37e1daffdc5ba10862e42b38e04b | [
"MIT"
] | 2 | 2021-03-16T02:33:57.000Z | 2021-04-01T02:09:49.000Z | finrl/commands/deploy_commands.py | JuohmaruSanshiro/FinRL-Library | d62fd577a0be37e1daffdc5ba10862e42b38e04b | [
"MIT"
] | null | null | null | finrl/commands/deploy_commands.py | JuohmaruSanshiro/FinRL-Library | d62fd577a0be37e1daffdc5ba10862e42b38e04b | [
"MIT"
] | 2 | 2021-03-16T07:04:33.000Z | 2021-12-19T09:12:10.000Z | import logging
import sys
from pathlib import Path
from typing import Any, Dict
from finrl.config import setup_utils_configuration
from finrl.config.directory_operations import copy_sample_files, create_userdata_dir
from finrl.exceptions import OperationalException
from finrl.misc import render_template, render_templa... | 28.314286 | 84 | 0.704339 | 125 | 991 | 5.352 | 0.504 | 0.067265 | 0.049327 | 0.044843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001256 | 0.196771 | 991 | 34 | 85 | 29.147059 | 0.839196 | 0.170535 | 0 | 0 | 0 | 0 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.529412 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8117e2a6621ef62729357cdaccd0c04e8b707285 | 328 | py | Python | flickr_rsync/file_info.py | phdesign/flickr-syncp | f48d0ec95a560a8945b091aec4da882287e8b5be | [
"MIT"
] | 3 | 2018-09-09T04:17:09.000Z | 2018-11-15T13:00:08.000Z | flickr_rsync/file_info.py | phdesign/flickr-syncp | f48d0ec95a560a8945b091aec4da882287e8b5be | [
"MIT"
] | 4 | 2017-08-18T09:08:04.000Z | 2018-03-31T15:07:25.000Z | flickr_rsync/file_info.py | phdesign/flickr-syncp | f48d0ec95a560a8945b091aec4da882287e8b5be | [
"MIT"
] | 5 | 2017-11-03T19:16:53.000Z | 2018-12-28T18:58:03.000Z | class FileInfo(object):
def __init__(self, **kwargs):
self.id = kwargs.get('id')
self.name = kwargs.get('name')
self.full_path = kwargs.get('full_path')
self.checksum = kwargs.get('checksum')
def __repr__(self):
return "FileInfo: {{id={}, name={}}}".format(self.id, self... | 27.333333 | 72 | 0.588415 | 41 | 328 | 4.463415 | 0.390244 | 0.196721 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228659 | 328 | 11 | 73 | 29.818182 | 0.72332 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
812c10f0ef454a7e3125229aef4a146ed7406a4a | 1,598 | py | Python | Servidor/app_folder/config.py | alejandrosanchezm/SNPTool | 8bcfcf29bd5cb8a47870625a9eb4b0e2b9a75ee5 | [
"Apache-2.0"
] | null | null | null | Servidor/app_folder/config.py | alejandrosanchezm/SNPTool | 8bcfcf29bd5cb8a47870625a9eb4b0e2b9a75ee5 | [
"Apache-2.0"
] | null | null | null | Servidor/app_folder/config.py | alejandrosanchezm/SNPTool | 8bcfcf29bd5cb8a47870625a9eb4b0e2b9a75ee5 | [
"Apache-2.0"
] | null | null | null | ##################################################################################################################################
"""
Archivo que guarda variables de configuración de la aplicación.
"""
class Config(object):
DEBUG = False
TESTING = False
SECRET_KEY = "OCML3BRawWEUeaxcuKHLpw"
MONGO_SE... | 28.535714 | 130 | 0.572591 | 168 | 1,598 | 5.22619 | 0.464286 | 0.045558 | 0.051253 | 0.068337 | 0.399772 | 0.399772 | 0.399772 | 0.362187 | 0.259681 | 0.177677 | 0 | 0.0142 | 0.162703 | 1,598 | 55 | 131 | 29.054545 | 0.642003 | 0.076345 | 0 | 0.235294 | 0 | 0 | 0.3314 | 0.23198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0 | 0 | 0.970588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
812cb5264e7d667ea6e648ffe04faa6c169f3770 | 282 | py | Python | tasks.py | denzuko/workspace-dotfiles-ansible | d42df4d513b7527db5307f800b1e3849b9e34a61 | [
"BSD-3-Clause"
] | 1 | 2021-12-14T18:51:47.000Z | 2021-12-14T18:51:47.000Z | tasks.py | denzuko/workspace-dotfiles-ansible | d42df4d513b7527db5307f800b1e3849b9e34a61 | [
"BSD-3-Clause"
] | null | null | null | tasks.py | denzuko/workspace-dotfiles-ansible | d42df4d513b7527db5307f800b1e3849b9e34a61 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python3
from invoke import Collection, task
@task(default=True)
def provision(context):
context.run(f"ansible-playbook -K $HOME/.local/etc/config.yml")
@task
def report(context):
context.run(f"monit summary")
namespace = Collection(run_playbook, report)
| 20.142857 | 67 | 0.737589 | 40 | 282 | 5.175 | 0.7 | 0.135266 | 0.164251 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.124113 | 282 | 13 | 68 | 21.692308 | 0.834008 | 0.078014 | 0 | 0 | 0 | 0 | 0.23166 | 0.104247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
813003b543d6673ff6628499ba0e3a9484057012 | 2,576 | py | Python | scripts/add-ons/export-xml.py | georgebrock/task | 00204e01912aeb9e39b94ac7ba16562fdd5b5f2c | [
"MIT"
] | 1 | 2017-10-13T06:00:59.000Z | 2017-10-13T06:00:59.000Z | scripts/add-ons/export-xml.py | georgebrock/task | 00204e01912aeb9e39b94ac7ba16562fdd5b5f2c | [
"MIT"
] | null | null | null | scripts/add-ons/export-xml.py | georgebrock/task | 00204e01912aeb9e39b94ac7ba16562fdd5b5f2c | [
"MIT"
] | null | null | null | #! /usr/bin/python
################################################################################
## taskwarrior - a command line task list manager.
##
## Copyright 2006-2014, Paul Beckingham, Federico Hernandez.
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software an... | 40.888889 | 101 | 0.578028 | 307 | 2,576 | 4.850163 | 0.498371 | 0.0591 | 0.017461 | 0.018805 | 0.037609 | 0.037609 | 0.037609 | 0.037609 | 0 | 0 | 0 | 0.009553 | 0.227873 | 2,576 | 62 | 102 | 41.548387 | 0.739065 | 0.496118 | 0 | 0.074074 | 0 | 0.037037 | 0.265408 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.481481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
813d33e81d4d2ff45bf21a2936175064d14dc482 | 1,277 | py | Python | testData/mock/pydanticv1/main.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 238 | 2019-08-05T12:46:09.000Z | 2022-03-25T08:53:25.000Z | testData/mock/pydanticv1/main.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 415 | 2019-07-15T17:39:35.000Z | 2022-03-31T01:18:38.000Z | testData/mock/pydanticv1/main.py | KotlinIsland/pydantic-pycharm-plugin | 6a20563c3a174931ff49759c713c7fa609a82abb | [
"Apache-2.0",
"MIT"
] | 7 | 2019-08-09T01:03:16.000Z | 2022-02-08T03:28:19.000Z | from typing import *
from enum import Enum
class BaseModel:
class Config:
pass
___slots__ = ()
@classmethod
def from_orm(cls, obj):
pass
class Extra(str, Enum):
allow = 'allow'
ignore = 'ignore'
forbid = 'forbid'
class GetterDict:
pass
class json:
def loads(... | 19.348485 | 54 | 0.631167 | 142 | 1,277 | 5.309859 | 0.5 | 0.035809 | 0.04244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287392 | 1,277 | 66 | 55 | 19.348485 | 0.828571 | 0 | 0 | 0.115385 | 0 | 0 | 0.013302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.115385 | 0.038462 | 0 | 0.711538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
8142ce7929dd7f00711b678f00a30ffb5fdb1465 | 255 | py | Python | riscv_config/constants.py | sujeettogo/riscv-config | acd6701e9475c7b24b5ab9e2466ab49f15e81025 | [
"BSD-3-Clause"
] | null | null | null | riscv_config/constants.py | sujeettogo/riscv-config | acd6701e9475c7b24b5ab9e2466ab49f15e81025 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T00:01:51.000Z | 2021-06-02T00:01:51.000Z | riscv_config/constants.py | sujeettogo/riscv-config | acd6701e9475c7b24b5ab9e2466ab49f15e81025 | [
"BSD-3-Clause"
] | 1 | 2019-08-01T13:36:08.000Z | 2019-08-01T13:36:08.000Z | import os
root = os.path.abspath(os.path.dirname(__file__))
isa_schema = os.path.join(root, 'schemas/schema_isa.yaml')
platform_schema = os.path.join(root, 'schemas/schema_platform.yaml')
priv_versions = ["1.10", "1.11"]
user_versions = ["2.2", "2.3"]
| 25.5 | 68 | 0.713725 | 42 | 255 | 4.095238 | 0.5 | 0.139535 | 0.139535 | 0.186047 | 0.383721 | 0.383721 | 0.383721 | 0 | 0 | 0 | 0 | 0.04329 | 0.094118 | 255 | 9 | 69 | 28.333333 | 0.701299 | 0 | 0 | 0 | 0 | 0 | 0.254902 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d48fff207d0598d8c4999bc1fe74d4b03f887f91 | 11,770 | py | Python | sdk/python/pulumi_aws/apigatewayv2/authorizer.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/apigatewayv2/authorizer.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/apigatewayv2/authorizer.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 50.299145 | 177 | 0.661088 | 1,353 | 11,770 | 5.555063 | 0.15595 | 0.049761 | 0.04843 | 0.028739 | 0.676557 | 0.643427 | 0.629058 | 0.611895 | 0.602847 | 0.602847 | 0 | 0.000908 | 0.251402 | 11,770 | 233 | 178 | 50.515021 | 0.852117 | 0.4661 | 0 | 0.211009 | 1 | 0 | 0.164282 | 0.042384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100917 | false | 0.009174 | 0.06422 | 0.018349 | 0.266055 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d49a65fca62445cb6a34890991a401da781e2a12 | 392 | py | Python | src/IO/io.py | nekumelon/SonOfAnton | ec2dfb64e6d14a4cf94d02c948e3e68ed32bb276 | [
"MIT"
] | null | null | null | src/IO/io.py | nekumelon/SonOfAnton | ec2dfb64e6d14a4cf94d02c948e3e68ed32bb276 | [
"MIT"
] | null | null | null | src/IO/io.py | nekumelon/SonOfAnton | ec2dfb64e6d14a4cf94d02c948e3e68ed32bb276 | [
"MIT"
] | null | null | null | """
Different methods for receiving inputs for queries
"""
from IO.tts import speak
# Input
def textInput(head):
return input(f'{head}: ');
def inp():
query = textInput('Query');
return query;
# Output
def textOutput(head, text):
print(f'{head}: {text}');
def voiceOutput(text):
speak(text);
... | 14.518519 | 50 | 0.642857 | 49 | 392 | 5.142857 | 0.530612 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19898 | 392 | 27 | 51 | 14.518519 | 0.802548 | 0.163265 | 0 | 0 | 0 | 0 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.076923 | 0.615385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d49bbee9523635cabbe7051707e2da8a845e5067 | 64 | py | Python | flask-skeleton/views/third_bp/__init__.py | x1ah/python-snippets | a7b9e10401bd9007d259bd418c0639a3607254e0 | [
"MIT"
] | null | null | null | flask-skeleton/views/third_bp/__init__.py | x1ah/python-snippets | a7b9e10401bd9007d259bd418c0639a3607254e0 | [
"MIT"
] | null | null | null | flask-skeleton/views/third_bp/__init__.py | x1ah/python-snippets | a7b9e10401bd9007d259bd418c0639a3607254e0 | [
"MIT"
] | null | null | null | # coding: utf-8
from . import third
__all__ = [
'third'
]
| 8 | 19 | 0.578125 | 8 | 64 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.28125 | 64 | 7 | 20 | 9.142857 | 0.695652 | 0.203125 | 0 | 0 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
d4a428fa54f4b29d14b6cfb72ad4909c4c72c30a | 14,011 | py | Python | sdk/python/pulumi_azure_native/aad/ou_container.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/aad/ou_container.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/aad/ou_container.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 38.919444 | 481 | 0.632075 | 1,553 | 14,011 | 5.329684 | 0.114617 | 0.059804 | 0.074423 | 0.063791 | 0.642866 | 0.528815 | 0.454271 | 0.349523 | 0.327776 | 0.300713 | 0 | 0.006263 | 0.259296 | 14,011 | 359 | 482 | 39.027855 | 0.791289 | 0.178859 | 0 | 0.38914 | 1 | 0 | 0.141013 | 0.036043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144796 | false | 0.054299 | 0.027149 | 0 | 0.276018 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4a8e405c4b79e7f7fb6da8ec53fddc221462516 | 167 | py | Python | tudo/ex005.py | Ramon-Erik/Exercicios-Python | 158a7f1846dd3d486aa0517fa337d46d73aab649 | [
"MIT"
] | 1 | 2021-07-08T00:35:57.000Z | 2021-07-08T00:35:57.000Z | tudo/ex005.py | Ramon-Erik/Exercicios-Python | 158a7f1846dd3d486aa0517fa337d46d73aab649 | [
"MIT"
] | null | null | null | tudo/ex005.py | Ramon-Erik/Exercicios-Python | 158a7f1846dd3d486aa0517fa337d46d73aab649 | [
"MIT"
] | null | null | null | num = int(input('Digite um número: '))
ant = 1 - num # antecessor
suc = 1 + num # sucessor
print('O antecessor de {} é {} /n e o sucessor é {}'.format(num, ant, suc))
| 33.4 | 75 | 0.616766 | 28 | 167 | 3.678571 | 0.642857 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.203593 | 167 | 4 | 76 | 41.75 | 0.759399 | 0.113772 | 0 | 0 | 0 | 0 | 0.427586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4b9cdb47efa1cb9a70d8f4110b41fe0242cf02b | 856 | py | Python | news.py | nspacestd/WarBot | a9b4c520543bef37dedb5b7f5ebf0d779f43f4d0 | [
"MIT"
] | null | null | null | news.py | nspacestd/WarBot | a9b4c520543bef37dedb5b7f5ebf0d779f43f4d0 | [
"MIT"
] | 1 | 2016-08-29T16:34:50.000Z | 2016-08-29T17:21:23.000Z | news.py | nspacestd/WarBot | a9b4c520543bef37dedb5b7f5ebf0d779f43f4d0 | [
"MIT"
] | null | null | null | from datetime import datetime
import utils
class News:
"""This class represents a news item and is initialized with
data in text format
"""
def __init__(self, data):
info = data.split('|')
self.id = info[0]
self.link = info[1]
self.time = datetim... | 23.777778 | 69 | 0.549065 | 101 | 856 | 4.514851 | 0.514851 | 0.052632 | 0.052632 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00713 | 0.344626 | 856 | 35 | 70 | 24.457143 | 0.805704 | 0.267523 | 0 | 0 | 0 | 0 | 0.034305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4bced21af44fc974c78e2f79a6592d15406fd23 | 1,156 | py | Python | world/batch/start.py | szarta/llk | badf17be3a42bf1f544fc82c6876211f10a7b7a7 | [
"MIT"
] | 1 | 2021-08-05T04:08:57.000Z | 2021-08-05T04:08:57.000Z | world/batch/start.py | szarta/llk | badf17be3a42bf1f544fc82c6876211f10a7b7a7 | [
"MIT"
] | null | null | null | world/batch/start.py | szarta/llk | badf17be3a42bf1f544fc82c6876211f10a7b7a7 | [
"MIT"
] | 1 | 2021-08-06T03:48:48.000Z | 2021-08-06T03:48:48.000Z | #
# This is a batchcode file, used by Evennia's batch code processor to generate
# rooms, exits, items, and npcs within the MUD.
#
# It gets run (within the game) with:
#
# @batchcode path.to.file
#
#########################
# The Existential Plane #
#########################
#
# This is the character selection zon... | 28.9 | 78 | 0.708478 | 177 | 1,156 | 4.576271 | 0.621469 | 0.024691 | 0.025926 | 0.041975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.15917 | 1,156 | 39 | 79 | 29.641026 | 0.829218 | 0.231834 | 0 | 0.111111 | 1 | 0 | 0.632603 | 0.026764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4be9b8899ed3b872a1918154560cc594b71c12a | 357 | py | Python | mailing/urls.py | decosterkevin/foodtrack-back | c459b7f30854e6d114ffb0ff04b1ae7f36b73cd8 | [
"MIT"
] | null | null | null | mailing/urls.py | decosterkevin/foodtrack-back | c459b7f30854e6d114ffb0ff04b1ae7f36b73cd8 | [
"MIT"
] | 4 | 2021-04-08T21:59:06.000Z | 2021-06-10T20:42:55.000Z | mailing/urls.py | decosterkevin/foodtrack-back | c459b7f30854e6d114ffb0ff04b1ae7f36b73cd8 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import MailingListView, contact
# router = DefaultRouter()
# router.register(r'products', ProductView)
# router.register(r'products/<int:pk>', SingleProductView)
urlpatterns = [
path('subscribe', MailingListView.as_v... | 29.75 | 58 | 0.767507 | 40 | 357 | 6.8 | 0.625 | 0.102941 | 0.110294 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 357 | 12 | 59 | 29.75 | 0.855346 | 0.344538 | 0 | 0 | 0 | 0 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d4beb126f84f1fc20442da8afdf03535adfb532f | 190 | py | Python | jupyterlab_gitsync/tests.py | mkalil/jupyter-extensions | 2949aa8fb08b2e0b7a0a14e1b977f62c3c6ddfb4 | [
"Apache-2.0"
] | 5 | 2020-03-24T10:30:31.000Z | 2020-09-29T20:29:17.000Z | jupyterlab_gitsync/tests.py | mkalil/jupyter-extensions | 2949aa8fb08b2e0b7a0a14e1b977f62c3c6ddfb4 | [
"Apache-2.0"
] | 5 | 2020-06-19T19:20:48.000Z | 2021-09-02T12:49:11.000Z | jupyterlab_gitsync/tests.py | mkalil/jupyter-extensions | 2949aa8fb08b2e0b7a0a14e1b977f62c3c6ddfb4 | [
"Apache-2.0"
] | 2 | 2020-03-18T20:00:47.000Z | 2021-06-30T07:36:18.000Z | #!/usr/bin/env python
import unittest
if __name__ == "__main__":
suite = unittest.TestLoader().discover('.', pattern = "*_test.py")
unittest.TextTestRunner(verbosity=2).run(suite)
| 23.75 | 70 | 0.694737 | 22 | 190 | 5.590909 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.131579 | 190 | 7 | 71 | 27.142857 | 0.739394 | 0.105263 | 0 | 0 | 0 | 0 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
d4cbae1337aa21ea2183039244ae45588039af0f | 757 | py | Python | app.py | hmtmcse/flask-exp | b3dd28b0f283ada7e1ea81f2627678e6ce4ce6a8 | [
"Apache-2.0"
] | 3 | 2021-02-16T10:05:40.000Z | 2022-03-08T12:45:50.000Z | app.py | hmtmcse/flask-exp | b3dd28b0f283ada7e1ea81f2627678e6ce4ce6a8 | [
"Apache-2.0"
] | null | null | null | app.py | hmtmcse/flask-exp | b3dd28b0f283ada7e1ea81f2627678e6ce4ce6a8 | [
"Apache-2.0"
] | 1 | 2021-02-16T10:05:55.000Z | 2021-02-16T10:05:55.000Z | from flask import Flask, redirect, url_for, request, g
from functools import wraps
app = Flask(__name__)
def login_required(f):
@wraps(f)
def decorated_function(*args, **kwargs):
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
return f(*args, **kwargs)
... | 20.459459 | 54 | 0.616909 | 89 | 757 | 5.033708 | 0.449438 | 0.089286 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254954 | 757 | 37 | 55 | 20.459459 | 0.794326 | 0 | 0 | 0 | 0 | 0 | 0.07124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.071429 | 0.071429 | 0.571429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4cee3c4a8916cdaa807d1eb89d9dc4624ba5f05 | 253 | py | Python | irisett/errors.py | beebyte/irisett | 210e8d1fd0fd3dffa89fff889c0873597bfd753c | [
"MIT"
] | 8 | 2016-12-15T21:50:32.000Z | 2021-12-06T10:01:37.000Z | irisett/errors.py | beebyte/irisett | 210e8d1fd0fd3dffa89fff889c0873597bfd753c | [
"MIT"
] | null | null | null | irisett/errors.py | beebyte/irisett | 210e8d1fd0fd3dffa89fff889c0873597bfd753c | [
"MIT"
] | 3 | 2016-12-17T22:37:59.000Z | 2019-10-05T15:45:12.000Z | class IrisettError(Exception):
def __str__(self) -> str:
if len(self.args) == 1:
ret = self.args[0]
else:
ret = str(self.__class__.__name__)
return ret
class InvalidArguments(IrisettError):
pass
| 21.083333 | 46 | 0.577075 | 28 | 253 | 4.785714 | 0.607143 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.316206 | 253 | 11 | 47 | 23 | 0.763006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4cfda94e81347d7cef910f007f412fc3a25fdaa | 3,387 | py | Python | newsdb.py | flauberjp/LogsAnalysis | e2391dc794df8f19a693e1a95f67bbbec83ec230 | [
"MIT"
] | null | null | null | newsdb.py | flauberjp/LogsAnalysis | e2391dc794df8f19a693e1a95f67bbbec83ec230 | [
"MIT"
] | null | null | null | newsdb.py | flauberjp/LogsAnalysis | e2391dc794df8f19a693e1a95f67bbbec83ec230 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
# "Database code" for the DB news.
import psycopg2
most_popular_three_articles_of_all_time = '''
select
title,
views
from
(
select
path,
count(*) AS Views
from
log
where
status like '2%' AND
path in (
select
concat('/artic... | 20.403614 | 79 | 0.555654 | 423 | 3,387 | 4.252955 | 0.22695 | 0.048916 | 0.040022 | 0.053363 | 0.770428 | 0.74597 | 0.698166 | 0.522513 | 0.493608 | 0.493608 | 0 | 0.009637 | 0.356658 | 3,387 | 165 | 80 | 20.527273 | 0.815971 | 0.06643 | 0 | 0.657718 | 0 | 0.006711 | 0.705246 | 0.010175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020134 | false | 0 | 0.006711 | 0 | 0.04698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4d6c1df8aa613c50548d628b22ec4faaf7ab50c | 359 | py | Python | pulse_lib/schedule/hardware_schedule.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | null | null | null | pulse_lib/schedule/hardware_schedule.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | 26 | 2020-04-06T09:33:39.000Z | 2022-02-18T14:08:22.000Z | pulse_lib/schedule/hardware_schedule.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | 3 | 2020-03-31T11:56:23.000Z | 2021-12-06T13:42:50.000Z |
class HardwareSchedule:
def load(self):
pass
def unload(self):
pass
def set_schedule_parameters(self, **kwargs):
pass
def set_configuration(self, params, n_waveforms):
pass
def start(self, waveform_duration, n_repetitions, sequence_params):
pass
def ... | 17.95 | 71 | 0.632312 | 41 | 359 | 5.341463 | 0.585366 | 0.159817 | 0.100457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292479 | 359 | 19 | 72 | 18.894737 | 0.862205 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0.384615 | 0 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d4e33620d66a01f3dbf9056d6af10d59a8e8ba07 | 3,450 | py | Python | query/plans/tpch12.py | cakebytheoceanLuo/dogqc | 163618becdb57bd952a1ac5ba346d3c7ec163e04 | [
"MIT"
] | 12 | 2020-02-08T10:41:50.000Z | 2022-02-25T13:21:52.000Z | query/plans/tpch12.py | cakebytheoceanLuo/dogqc | 163618becdb57bd952a1ac5ba346d3c7ec163e04 | [
"MIT"
] | 62 | 2021-12-02T03:08:20.000Z | 2022-03-31T14:05:58.000Z | query/plans/tpch12.py | cakebytheoceanLuo/dogqc | 163618becdb57bd952a1ac5ba346d3c7ec163e04 | [
"MIT"
] | 4 | 2020-03-15T03:34:10.000Z | 2022-03-18T07:51:37.000Z |
alg.aggregation (
[ "l_shipmode" ],
[ ( Reduction.SUM, "highline", "high_line_count" ),
( Reduction.SUM, "lowline", "low_line_count" ) ],
alg.map (
"highline",
scal.CaseExpr (
[
(
scal.OrExpr (
scal.EqualsExpr (... | 39.204545 | 80 | 0.293913 | 182 | 3,450 | 5.472527 | 0.258242 | 0.156627 | 0.091365 | 0.104418 | 0.618474 | 0.542169 | 0.467871 | 0.389558 | 0.389558 | 0.389558 | 0 | 0.018251 | 0.618841 | 3,450 | 87 | 81 | 39.655172 | 0.739164 | 0 | 0 | 0.529412 | 0 | 0 | 0.087587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
d4fbbd9c5713aec42f43709ca0b0b8aad1b93096 | 33,399 | py | Python | vendor/istio.io/api/python/istio_api/mixer/v1/check_pb2.py | zhangzhoujian/istio | 071f21f1876ce56a08d4c007399c5f670e4ba21c | [
"Apache-2.0"
] | 1 | 2018-10-31T16:40:08.000Z | 2018-10-31T16:40:08.000Z | vendor/istio.io/api/python/istio_api/mixer/v1/check_pb2.py | zhangzhoujian/istio | 071f21f1876ce56a08d4c007399c5f670e4ba21c | [
"Apache-2.0"
] | 1 | 2018-10-18T14:05:54.000Z | 2018-10-18T14:05:54.000Z | vendor/istio.io/api/python/istio_api/mixer/v1/check_pb2.py | zhangzhoujian/istio | 071f21f1876ce56a08d4c007399c5f670e4ba21c | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mixer/v1/check.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as... | 46.131215 | 3,302 | 0.766879 | 4,127 | 33,399 | 5.9055 | 0.078992 | 0.039061 | 0.035451 | 0.033973 | 0.742122 | 0.688495 | 0.634868 | 0.575743 | 0.538733 | 0.520105 | 0 | 0.052409 | 0.107069 | 33,399 | 723 | 3,303 | 46.195021 | 0.764812 | 0.029672 | 0 | 0.63024 | 1 | 0.002994 | 0.235737 | 0.183409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.01497 | 0 | 0.01497 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
d4ff961a5e61127ce1b994e47903c6f4ec8ca92c | 348 | py | Python | plugin.video.youtube/resources/lib/youtube_plugin/kodion/json_store/__init__.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 2 | 2018-11-02T19:55:30.000Z | 2020-08-14T02:22:20.000Z | plugin.video.youtube/resources/lib/youtube_plugin/kodion/json_store/__init__.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | null | null | null | plugin.video.youtube/resources/lib/youtube_plugin/kodion/json_store/__init__.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 3 | 2019-12-17T20:47:00.000Z | 2021-02-11T19:03:59.000Z | # -*- coding: utf-8 -*-
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .json_store import JSONStore
from .api_keys import APIKeyStore
from .login_tokens import LoginTokenStore
__all__ = ['JSONStore', 'APIKey... | 21.75 | 57 | 0.721264 | 45 | 348 | 5.422222 | 0.733333 | 0.032787 | 0.040984 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043919 | 0.149425 | 348 | 15 | 58 | 23.2 | 0.780405 | 0.442529 | 0 | 0 | 0 | 0 | 0.203488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
be0cce4ad5b9e7b1f811a5fe31e4f6d6a83ce3ab | 453 | py | Python | emd_with_classes/classes/dataset_interface.py | VidyaKamath1089/odin | da03f9a86cb2c66092815e3a57795be2db9150bd | [
"Apache-2.0"
] | 1 | 2021-01-09T10:50:57.000Z | 2021-01-09T10:50:57.000Z | emd_with_classes/classes/dataset_interface.py | VidyaKamath1089/odin | da03f9a86cb2c66092815e3a57795be2db9150bd | [
"Apache-2.0"
] | null | null | null | emd_with_classes/classes/dataset_interface.py | VidyaKamath1089/odin | da03f9a86cb2c66092815e3a57795be2db9150bd | [
"Apache-2.0"
] | null | null | null | import abc
class DatasetInterface(metaclass=abc.ABCMeta):
@property
@abc.abstractmethod
def dataset_type_name(self):
pass
@classmethod
def __subclasshook__(cls, subclass):
return (hasattr(subclass, 'load') and
callable(subclass.load) or
NotImplemen... | 21.571429 | 48 | 0.635762 | 44 | 453 | 6.409091 | 0.704545 | 0.120567 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282561 | 453 | 20 | 49 | 22.65 | 0.867692 | 0.075055 | 0 | 0.142857 | 0 | 0 | 0.009685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.071429 | 0.071429 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
be0e578ba4c24b7c2e2a1f6901cf824d6a632021 | 73,258 | py | Python | pysnmp-with-texts/A3COM-PRIVATE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/A3COM-PRIVATE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/A3COM-PRIVATE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module A3COM-PRIVATE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-PRIVATE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:08:13 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 152.620833 | 7,047 | 0.78532 | 8,772 | 73,258 | 6.557912 | 0.094961 | 0.061537 | 0.10769 | 0.011543 | 0.552359 | 0.404808 | 0.363123 | 0.335779 | 0.304627 | 0.289938 | 0 | 0.064042 | 0.092413 | 73,258 | 479 | 7,048 | 152.939457 | 0.801167 | 0.004477 | 0 | 0 | 0 | 0.089172 | 0.309417 | 0.012315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023355 | 0.014862 | 0 | 0.014862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be16a49a2d21ff82a1300a21a412da0fc29051e2 | 103 | py | Python | Codeforces Problems/Minutes Before the New Year/Minutes Before the New Year.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | null | null | null | Codeforces Problems/Minutes Before the New Year/Minutes Before the New Year.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | 1 | 2020-10-13T20:57:34.000Z | 2020-10-13T20:57:34.000Z | Codeforces Problems/Minutes Before the New Year/Minutes Before the New Year.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | null | null | null | t=int(input())
for i in range(t):
h,m=[int(x) for x in input().split()]
h_a=1440-(60*h+m)
print(h_a) | 20.6 | 38 | 0.601942 | 26 | 103 | 2.307692 | 0.576923 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0.135922 | 103 | 5 | 39 | 20.6 | 0.606742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
be1f2de40324a4eadbf3e2c5a80240eada85ed77 | 486 | py | Python | examples/Q-size/additional_functions.py | real-lhj/ignnition | 3d565a886abb459c3dfbd8d69667db6c614fce19 | [
"Apache-2.0"
] | 18 | 2021-06-09T15:52:55.000Z | 2022-03-28T05:54:14.000Z | examples/Q-size/additional_functions.py | real-lhj/ignnition | 3d565a886abb459c3dfbd8d69667db6c614fce19 | [
"Apache-2.0"
] | 11 | 2021-06-03T07:55:04.000Z | 2022-03-11T16:54:15.000Z | examples/Q-size/additional_functions.py | real-lhj/ignnition | 3d565a886abb459c3dfbd8d69667db6c614fce19 | [
"Apache-2.0"
] | 12 | 2020-07-07T16:45:09.000Z | 2021-04-05T15:55:30.000Z | import tensorflow as tf
def normalization(feature, feature_name):
if feature_name == 'delay':
feature = (tf.math.log(feature) + 1.78) / 0.93
if feature_name == 'traffic':
feature = (feature - 0.28) / 0.15
if feature_name == 'jitter':
feature = (feature - 1.5) / 1.5
if feature_n... | 30.375 | 54 | 0.592593 | 66 | 486 | 4.242424 | 0.454545 | 0.235714 | 0.232143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081461 | 0.26749 | 486 | 15 | 55 | 32.4 | 0.705056 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.