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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a12dd912fe3b4ddd8f8b7fe49af04027be5fa5b | 1,908 | py | Python | model_lstm/model_lstm/utils/preprocessors.py | ofbennett/sentiment-analysis-app | 94362ae3e638daeec29e09065549fd4078af8a1a | [
"MIT"
] | 2 | 2020-10-04T16:58:54.000Z | 2021-10-04T13:51:10.000Z | model_lstm/model_lstm/utils/preprocessors.py | ofbennett/sentiment-analysis-app | 94362ae3e638daeec29e09065549fd4078af8a1a | [
"MIT"
] | null | null | null | model_lstm/model_lstm/utils/preprocessors.py | ofbennett/sentiment-analysis-app | 94362ae3e638daeec29e09065549fd4078af8a1a | [
"MIT"
] | null | null | null | from sklearn.base import BaseEstimator, TransformerMixin
import re
from nltk.stem import SnowballStemmer
class TextCleaning(BaseEstimator, TransformerMixin):
def __init__(self, regex):
self.regex = regex
def fit(self, X, y = None):
return self
def transform(self, X):
X = X.copy()
... | 27.257143 | 81 | 0.55608 | 222 | 1,908 | 4.612613 | 0.27027 | 0.047852 | 0.09375 | 0.105469 | 0.509766 | 0.382813 | 0.382813 | 0.234375 | 0.213867 | 0.213867 | 0 | 0.00317 | 0.338574 | 1,908 | 70 | 82 | 27.257143 | 0.808241 | 0 | 0 | 0.508772 | 0 | 0 | 0.01781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.052632 | 0.508772 | 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 |
2a270fb938d4444ba6c9ab7a54f96ad2510ba16f | 523 | py | Python | tests/a2/models.py | movermeyer/nicedjango | c38ada1e50efb5ef0874ef063074b621579c2954 | [
"MIT"
] | 1 | 2016-10-18T18:40:45.000Z | 2016-10-18T18:40:45.000Z | tests/a2/models.py | movermeyer/nicedjango | c38ada1e50efb5ef0874ef063074b621579c2954 | [
"MIT"
] | null | null | null | tests/a2/models.py | movermeyer/nicedjango | c38ada1e50efb5ef0874ef063074b621579c2954 | [
"MIT"
] | 1 | 2018-03-05T01:21:23.000Z | 2018-03-05T01:21:23.000Z | """
Multiple inheritance sample 1 from docs.
Note: not more than one review per book looks like a wrong example.
"""
from django.db import models
class Model(models.Model):
class Meta:
app_label = 'a2'
abstract = True
class Article(Model):
article_id = models.AutoField(primary_key=True)
... | 18.678571 | 67 | 0.705545 | 72 | 523 | 5.027778 | 0.611111 | 0.044199 | 0.093923 | 0.132597 | 0.342541 | 0.342541 | 0 | 0 | 0 | 0 | 0 | 0.014354 | 0.200765 | 523 | 27 | 68 | 19.37037 | 0.851675 | 0.208413 | 0 | 0 | 0 | 0 | 0.004926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
2a392d234d6418ac71e824ad727b1bc6e9642f0f | 418 | py | Python | tests/test_default.py | kenneyhe-zingbox/ansible-letsencrypt | fe42cf118bb5dd60019b504ce0eee282cf1230c1 | [
"MIT"
] | null | null | null | tests/test_default.py | kenneyhe-zingbox/ansible-letsencrypt | fe42cf118bb5dd60019b504ce0eee282cf1230c1 | [
"MIT"
] | 3 | 2017-12-21T18:12:10.000Z | 2018-01-10T23:08:55.000Z | tests/test_default.py | kenneyhe-zingbox/ansible-letsencrypt | fe42cf118bb5dd60019b504ce0eee282cf1230c1 | [
"MIT"
] | 1 | 2021-06-17T14:28:41.000Z | 2021-06-17T14:28:41.000Z | from testinfra.utils.ansible_runner import AnsibleRunner
testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
def test_letsencrypt_folder(File):
# letsencrypt = host.file("/etc/letsencrypt")
letsencrypt = File("/var/log/certbot")
assert letsencrypt.is_directory
assert letse... | 32.153846 | 79 | 0.748804 | 47 | 418 | 6.510638 | 0.638298 | 0.222222 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01108 | 0.136364 | 418 | 12 | 80 | 34.833333 | 0.836565 | 0.102871 | 0 | 0 | 0 | 0 | 0.144772 | 0.072386 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2a43ee2f4b2f1e1da2bc07144f2d3edda65c20f2 | 902 | py | Python | tests/tasks.py | microhuang/Flask-Celery-Tools | 61f9050d123815dd4fb1e5494fdf9bf2d7cfbeae | [
"MIT"
] | 4 | 2020-09-17T06:21:39.000Z | 2021-10-13T14:18:37.000Z | tests/tasks.py | microhuang/Flask-Celery-Tools | 61f9050d123815dd4fb1e5494fdf9bf2d7cfbeae | [
"MIT"
] | 2 | 2020-10-20T16:50:24.000Z | 2020-12-11T15:05:02.000Z | tests/tasks.py | microhuang/Flask-Celery-Tools | 61f9050d123815dd4fb1e5494fdf9bf2d7cfbeae | [
"MIT"
] | 2 | 2018-05-30T05:57:35.000Z | 2018-06-11T12:04:18.000Z | """Tasks for tests."""
from celery import shared_task
from flask_celery import single_instance
@shared_task(bind=True)
@single_instance
def add(self, x, y):
"""Celery task: add numbers."""
return x + y
@shared_task(bind=True)
@single_instance(include_args=True, lock_timeout=20)
def mul(self, x, y):
""... | 18.791667 | 52 | 0.660754 | 134 | 902 | 4.30597 | 0.335821 | 0.034662 | 0.121317 | 0.155979 | 0.540728 | 0.485269 | 0.485269 | 0.419411 | 0.362218 | 0.362218 | 0 | 0.01087 | 0.184035 | 902 | 47 | 53 | 19.191489 | 0.773098 | 0.233925 | 0 | 0.36 | 0 | 0 | 0.022901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2a43fdf09e6cc99387b75899e8ec3f22d6b55ff2 | 1,414 | py | Python | setup.py | ikirudennis/alternativefacts | c34f119679bcc7b6ecbb227e17aa7b2022f04108 | [
"MIT"
] | 1 | 2017-01-24T02:27:26.000Z | 2017-01-24T02:27:26.000Z | setup.py | ikirudennis/alternativefacts | c34f119679bcc7b6ecbb227e17aa7b2022f04108 | [
"MIT"
] | null | null | null | setup.py | ikirudennis/alternativefacts | c34f119679bcc7b6ecbb227e17aa7b2022f04108 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import os
def get_version():
basedir = os.path.dirname(__file__)
with open(os.path.join(basedir, 'alternativefacts/version.py')) as f:
variables = {}
exec(f.read(), variables)
return variables.get('VERSION')
raise RuntimeError('No version ... | 34.487805 | 73 | 0.635078 | 144 | 1,414 | 6.152778 | 0.541667 | 0.214447 | 0.282167 | 0.146727 | 0.060948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013812 | 0.231966 | 1,414 | 40 | 74 | 35.35 | 0.802026 | 0 | 0 | 0.054054 | 0 | 0 | 0.5138 | 0.03397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.054054 | 0 | 0.108108 | 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 |
2a52742f1628620c11ff02307e95d32101a66cf5 | 565 | py | Python | packages/reporting-server/parsers/test_doors_state_parser.py | baviera08/romi-dashboard | ac3a15014ad3c3bdac523a6550934a06653cfba1 | [
"Apache-2.0"
] | 23 | 2021-04-13T23:01:12.000Z | 2022-03-21T02:15:24.000Z | packages/reporting-server/parsers/test_doors_state_parser.py | baviera08/romi-dashboard | ac3a15014ad3c3bdac523a6550934a06653cfba1 | [
"Apache-2.0"
] | 326 | 2021-03-10T17:32:17.000Z | 2022-03-30T04:42:14.000Z | packages/reporting-server/parsers/test_doors_state_parser.py | baviera08/romi-dashboard | ac3a15014ad3c3bdac523a6550934a06653cfba1 | [
"Apache-2.0"
] | 13 | 2021-04-10T10:33:36.000Z | 2022-02-22T15:39:58.000Z | import unittest
from models.tortoise_models.door_state import DoorState
from rest_server.__mocks__.parsed_data import mock_door_state
from .doors_state_parser import doors_state_parser
class TestCaseDoorsState(unittest.IsolatedAsyncioTestCase):
def setUp(self):
self.data = mock_door_state
async def... | 33.235294 | 85 | 0.787611 | 74 | 565 | 5.635135 | 0.459459 | 0.064748 | 0.115108 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002049 | 0.136283 | 565 | 16 | 86 | 35.3125 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0.038938 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 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 |
2a59b7f24394db2c7747d7b2f4070826d66fc30b | 639 | py | Python | Spread/standarddeviation.py | InnovAnon-Inc/sceadar | 56ab87a5e813cbf5129f0bc8bb518c25331041dc | [
"Unlicense"
] | null | null | null | Spread/standarddeviation.py | InnovAnon-Inc/sceadar | 56ab87a5e813cbf5129f0bc8bb518c25331041dc | [
"Unlicense"
] | null | null | null | Spread/standarddeviation.py | InnovAnon-Inc/sceadar | 56ab87a5e813cbf5129f0bc8bb518c25331041dc | [
"Unlicense"
] | null | null | null | from Spread.stddevct import StdDevCT
from Operations.differencepower import DifferencePower
from Spread.generalizedvariance import GeneralizedVariance
class StandardDeviation (GeneralizedVariance):
def __init__ (self, length, min_value, max_value, arithmetic_mean):
GeneralizedVariance.__init__ (self, length, min_v... | 35.5 | 68 | 0.771518 | 75 | 639 | 6.386667 | 0.333333 | 0.083507 | 0.058455 | 0.070981 | 0.22547 | 0.22547 | 0.125261 | 0 | 0 | 0 | 0 | 0 | 0.123631 | 639 | 18 | 69 | 35.5 | 0.855357 | 0.353678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2a748d0f475ebffede2fa602544de658685cf4a0 | 206 | py | Python | pyramm/config.py | nzta-captif/pyramm | ac895841011bf54cb79b55982240632148dc51b1 | [
"MIT"
] | null | null | null | pyramm/config.py | nzta-captif/pyramm | ac895841011bf54cb79b55982240632148dc51b1 | [
"MIT"
] | 7 | 2020-10-22T16:45:40.000Z | 2022-03-23T03:23:47.000Z | pyramm/config.py | nzta-captif/pyramm | ac895841011bf54cb79b55982240632148dc51b1 | [
"MIT"
] | 2 | 2020-10-22T16:18:45.000Z | 2021-03-11T22:13:23.000Z | from pathlib import Path
from configparser import ConfigParser
CONFIG_FILE = Path.home().joinpath(".pyramm.ini")
def config():
parser = ConfigParser()
parser.read(CONFIG_FILE)
return parser
| 17.166667 | 49 | 0.73301 | 25 | 206 | 5.96 | 0.6 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169903 | 206 | 11 | 50 | 18.727273 | 0.871345 | 0 | 0 | 0 | 0 | 0 | 0.053398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2a8770b6658f0fad86fcfb94fd38177506430743 | 263 | py | Python | anadroid/_version.py | greensoftwarelab/PyAnaDroid | c37a85a2c8e0206895f2e96d28c2baa045f6a211 | [
"MIT"
] | null | null | null | anadroid/_version.py | greensoftwarelab/PyAnaDroid | c37a85a2c8e0206895f2e96d28c2baa045f6a211 | [
"MIT"
] | 2 | 2022-03-31T17:33:48.000Z | 2022-03-31T17:38:22.000Z | anadroid/_version.py | greensoftwarelab/PyAnaDroid | c37a85a2c8e0206895f2e96d28c2baa045f6a211 | [
"MIT"
] | null | null | null | """
Provides anadroid version information.
"""
# This file is auto-generated! Do not edit!
# Use `python -m incremental.update anadroid` to change this file.
from incremental import Version
__version__ = Version("anadroid", 0, 5, 26)
__all__ = ["__version__"]
| 21.916667 | 66 | 0.73384 | 34 | 263 | 5.323529 | 0.735294 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017937 | 0.152091 | 263 | 11 | 67 | 23.909091 | 0.793722 | 0.555133 | 0 | 0 | 1 | 0 | 0.175926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
2a87da7190ca02342b1d1a7ce3fd3cb4a1a5a035 | 1,835 | py | Python | django_react_drf_same_origin/backend/api/views.py | devidw/django-spa-cookie-auth | 91d514d3f4dff3c88e618c3307d7d529804f21bb | [
"MIT"
] | 66 | 2020-12-18T13:06:27.000Z | 2022-03-12T23:19:22.000Z | django_react_drf_same_origin/backend/api/views.py | mostafijur-rahman299/django-spa-cookie-auth | 1ee1495613fe78e5951f9484613aa1299e66ba94 | [
"MIT"
] | 1 | 2021-02-01T13:37:45.000Z | 2021-02-06T21:27:13.000Z | django_react_drf_same_origin/backend/api/views.py | mostafijur-rahman299/django-spa-cookie-auth | 1ee1495613fe78e5951f9484613aa1299e66ba94 | [
"MIT"
] | 23 | 2020-11-24T13:43:12.000Z | 2022-03-17T10:42:27.000Z | import json
from django.contrib.auth import authenticate, login, logout
from django.http import JsonResponse
from django.middleware.csrf import get_token
from django.views.decorators.http import require_POST
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
from rest_framework.permis... | 30.583333 | 92 | 0.743324 | 200 | 1,835 | 6.745 | 0.35 | 0.093403 | 0.088955 | 0.035582 | 0.33358 | 0.226835 | 0.226835 | 0.226835 | 0.226835 | 0.226835 | 0 | 0.005825 | 0.158038 | 1,835 | 59 | 93 | 31.101695 | 0.867314 | 0 | 0 | 0.195122 | 0 | 0 | 0.113896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.097561 | 0.195122 | 0.04878 | 0.658537 | 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 |
2a8b8feb872585fe2dca7f2c17be84fc1e0231f6 | 276 | py | Python | lecciones/05/funciones.py | ImAlexisSaez/curso-python-desde-0 | c4a84dae0804adefe4ee6024b411d8ed288da759 | [
"MIT"
] | 2 | 2020-08-31T02:17:36.000Z | 2022-01-29T15:25:27.000Z | lecciones/05/funciones.py | ImAlexisSaez/curso-python-desde-0 | c4a84dae0804adefe4ee6024b411d8ed288da759 | [
"MIT"
] | null | null | null | lecciones/05/funciones.py | ImAlexisSaez/curso-python-desde-0 | c4a84dae0804adefe4ee6024b411d8ed288da759 | [
"MIT"
] | null | null | null | def mensaje(): # Declaración de la función
print("Estamos aprendiendo Python.")
print("Estamos aprendiendo instrucciones básicas.")
print("Poco a poco iremos avanzando.")
mensaje() # Llamada a la función
print("Ejecutando código fuera de función")
mensaje()
| 23 | 55 | 0.721014 | 33 | 276 | 6.030303 | 0.606061 | 0.090452 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177536 | 276 | 11 | 56 | 25.090909 | 0.876652 | 0.166667 | 0 | 0.285714 | 0 | 0 | 0.581498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0 | 0 | 0.142857 | 0.571429 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
aa541043061e3a6e568f68931746230c76adfc8e | 883 | py | Python | api/views/quiz.py | evan-rusin/fly-project | 8afc697f2a9fb63317cca2763ed0ed76f9ef2ead | [
"BSD-2-Clause"
] | 15 | 2016-11-17T08:34:52.000Z | 2021-11-12T07:08:58.000Z | api/views/quiz.py | evan-rusin/fly-project | 8afc697f2a9fb63317cca2763ed0ed76f9ef2ead | [
"BSD-2-Clause"
] | 137 | 2015-12-07T19:48:03.000Z | 2016-10-11T20:19:33.000Z | api/views/quiz.py | evan-rusin/fly-project | 8afc697f2a9fb63317cca2763ed0ed76f9ef2ead | [
"BSD-2-Clause"
] | 11 | 2016-10-21T22:43:54.000Z | 2021-08-28T14:41:02.000Z | import django_filters
from django.contrib.auth.models import User, Group
from rest_framework import viewsets, mixins
from rest_framework.response import Response
from rest_framework.authentication import TokenAuthentication
from rest_framework import filters
from api.pagination import LargeResultsSetPagination
from api... | 33.961538 | 69 | 0.799547 | 92 | 883 | 7.554348 | 0.478261 | 0.046043 | 0.097842 | 0.066187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138165 | 883 | 25 | 70 | 35.32 | 0.913272 | 0 | 0 | 0 | 0 | 0 | 0.035108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.47619 | 0 | 0.904762 | 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 |
aa6316bcb4faf828d06c87393e40f312b542878e | 226 | py | Python | testing/example.py | gndctrl2mjrtm/dkeras | 97bcf176dbc96bd52cc6e19283159a6e73f0a4dc | [
"MIT"
] | 195 | 2019-09-05T08:41:53.000Z | 2022-03-09T14:04:07.000Z | testing/example.py | gndctrl2mjrtm/dkeras | 97bcf176dbc96bd52cc6e19283159a6e73f0a4dc | [
"MIT"
] | 4 | 2019-11-27T00:45:31.000Z | 2020-03-11T14:12:44.000Z | testing/example.py | gndctrl2mjrtm/dkeras | 97bcf176dbc96bd52cc6e19283159a6e73f0a4dc | [
"MIT"
] | 14 | 2019-11-27T17:32:36.000Z | 2022-02-12T03:55:15.000Z | # Ideas
"""
server = dkeras.DataServer()
model1.link(model3)
model1.postprocess = lambda z: np.float16(z)
server = model1 + model2 + model3
server.add(camera1, dest=('m1', 'm2'))
server.add_address('192.168.1.42')
"""
| 12.555556 | 44 | 0.668142 | 31 | 226 | 4.83871 | 0.741935 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 0.141593 | 226 | 17 | 45 | 13.294118 | 0.670103 | 0.942478 | 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 |
aa6700aa443cee4ea5ff2c63f4018e63ec72bd19 | 377 | py | Python | tests/test_operations.py | LadaOndris/text_classification | 3f9e60f0a40f2817f081adf53cda696a8b0f51b2 | [
"MIT"
] | null | null | null | tests/test_operations.py | LadaOndris/text_classification | 3f9e60f0a40f2817f081adf53cda696a8b0f51b2 | [
"MIT"
] | null | null | null | tests/test_operations.py | LadaOndris/text_classification | 3f9e60f0a40f2817f081adf53cda696a8b0f51b2 | [
"MIT"
] | null | null | null | from unittest import TestCase
import torch
from src.transformer.operations import softmax
class Test(TestCase):
def test_softmax(self):
data = torch.ones(size=[16, 8, 4])
expected_output = torch.full_like(data, fill_value=0.25, dtype=torch.float32)
output = softmax(data, dim=-1)
... | 23.5625 | 85 | 0.708223 | 51 | 377 | 5.117647 | 0.666667 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.190981 | 377 | 15 | 86 | 25.133333 | 0.822951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 |
aa72a99c59272a2127c464ed1720defc3e659e92 | 242 | py | Python | setup.py | tulcod/PyBRML | 55357ef60e394d7146af037dbfcab97f7b29d44b | [
"CNRI-Python"
] | 1 | 2015-03-20T04:05:50.000Z | 2015-03-20T04:05:50.000Z | setup.py | tulcod/PyBRML | 55357ef60e394d7146af037dbfcab97f7b29d44b | [
"CNRI-Python"
] | null | null | null | setup.py | tulcod/PyBRML | 55357ef60e394d7146af037dbfcab97f7b29d44b | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='brml',
version='0',
description='Python version of Bayesian Reasoning and Machine Learning library',
packages=['brml'],
install_requires=['numpy']
)
| 22 | 86 | 0.681818 | 29 | 242 | 5.655172 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.190083 | 242 | 10 | 87 | 24.2 | 0.831633 | 0.082645 | 0 | 0 | 0 | 0 | 0.357466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 |
aa7980500283639d4b4935edd9b6a3a29a849d13 | 1,847 | py | Python | spug_api/apps/schedule/models.py | zysam/spug | 77f3427e2b817dad3a4a37f8e45eba0dd667a858 | [
"MIT"
] | 3 | 2019-06-07T03:26:33.000Z | 2021-12-28T01:51:30.000Z | spug_api/apps/schedule/models.py | markexin/spug | 3dce00995ebb4196a0c75bef0f6e50612a98e610 | [
"MIT"
] | 10 | 2021-03-19T10:59:00.000Z | 2022-02-27T05:10:31.000Z | spug_api/apps/schedule/models.py | lgq9220/spug | 83098fbd1d5780f827a4aca41eb87321f3d2ab21 | [
"MIT"
] | 1 | 2020-04-22T14:37:44.000Z | 2020-04-22T14:37:44.000Z | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
# Copyright: (c) <spug.dev@gmail.com>
# Released under the MIT License.
from django.db import models
from libs import ModelMixin, human_datetime
from apps.account.models import User
import json
class Task(models.Model, ModelMixin):
TRIGGERS ... | 34.849057 | 85 | 0.657282 | 227 | 1,847 | 5.189427 | 0.444934 | 0.101868 | 0.122241 | 0.162988 | 0.273345 | 0.16129 | 0.135823 | 0.078098 | 0 | 0 | 0 | 0.014286 | 0.204115 | 1,847 | 52 | 86 | 35.519231 | 0.787075 | 0.074716 | 0 | 0 | 0 | 0 | 0.069795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0.023256 | 0.627907 | 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 |
aa7c95f1c516c6ad68c0ad6ba4317bc5689246fb | 2,741 | py | Python | netbox/ipam/api/nested_serializers.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 6 | 2017-12-01T05:13:39.000Z | 2020-01-23T13:04:43.000Z | netbox/ipam/api/nested_serializers.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 8 | 2021-04-16T01:38:00.000Z | 2022-01-04T21:27:27.000Z | netbox/ipam/api/nested_serializers.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 3 | 2017-11-18T01:28:22.000Z | 2018-05-17T14:04:43.000Z | from rest_framework import serializers
from ipam.models import Aggregate, IPAddress, Prefix, RIR, Role, VLAN, VLANGroup, VRF
from utilities.api import WritableNestedSerializer
__all__ = [
'NestedAggregateSerializer',
'NestedIPAddressSerializer',
'NestedPrefixSerializer',
'NestedRIRSerializer',
'Ne... | 25.858491 | 85 | 0.706676 | 253 | 2,741 | 7.541502 | 0.217391 | 0.113208 | 0.159329 | 0.259958 | 0.527778 | 0.473795 | 0.473795 | 0.473795 | 0.1174 | 0.060797 | 0 | 0 | 0.174024 | 2,741 | 105 | 86 | 26.104762 | 0.842756 | 0.017512 | 0 | 0.241379 | 0 | 0 | 0.199851 | 0.072469 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051724 | 0 | 0.551724 | 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 |
aa7d4c1de367f2e8733b853fe165cd1bd3dbe7de | 25,764 | py | Python | test/test_androiddriver/test_adb.py | beijixing0202/QT4a | 03ec513d5820afc37c32158c0d4a723b1e32876a | [
"BSD-3-Clause"
] | null | null | null | test/test_androiddriver/test_adb.py | beijixing0202/QT4a | 03ec513d5820afc37c32158c0d4a723b1e32876a | [
"BSD-3-Clause"
] | null | null | null | test/test_androiddriver/test_adb.py | beijixing0202/QT4a | 03ec513d5820afc37c32158c0d4a723b1e32876a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
#
# Tencent is pleased to support the open source community by making QTA available.
# Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the BSD 3-Clause License (the "License"); you may not use this
# file except in compliance with the License. You may... | 60.196262 | 205 | 0.63581 | 4,057 | 25,764 | 3.946019 | 0.222332 | 0.167906 | 0.1784 | 0.122556 | 0.4891 | 0.414579 | 0.334499 | 0.194828 | 0.145668 | 0.136861 | 0 | 0.284077 | 0.292113 | 25,764 | 427 | 206 | 60.337237 | 0.593705 | 0.027907 | 0 | 0.104859 | 0 | 0.063939 | 0.820144 | 0.108114 | 0 | 0 | 0 | 0 | 0.038363 | 1 | 0.025575 | false | 0 | 0.012788 | 0 | 0.089514 | 0.002558 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aa9279905e721169dbb3a05ff58bde8698b71dc2 | 253 | py | Python | students/k3343/laboratory_works/Andreeva_Ekaterina/laboratory_work_1/hotels/urls.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3343/laboratory_works/Andreeva_Ekaterina/laboratory_work_1/hotels/urls.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3343/laboratory_works/Andreeva_Ekaterina/laboratory_work_1/hotels/urls.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | from django.urls import path
from django.contrib.auth import views as view
from . import views
urlpatterns = [
path('', views.show_hotels, name='all_hotels'),
path('single_hotel/<int:pk>', views.show_hotel_single, name="single_hotel"),
] | 31.625 | 81 | 0.715415 | 36 | 253 | 4.861111 | 0.527778 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15415 | 253 | 8 | 82 | 31.625 | 0.817757 | 0 | 0 | 0 | 0 | 0 | 0.174089 | 0.08502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
aa92e5eaa42bad8cb0c78e20095787f73c918ef0 | 2,090 | py | Python | theme2html.py | persquare/NorthernLights | 53a53e181822c907a7fea7ff618cf10a412ede81 | [
"MIT"
] | null | null | null | theme2html.py | persquare/NorthernLights | 53a53e181822c907a7fea7ff618cf10a412ede81 | [
"MIT"
] | null | null | null | theme2html.py | persquare/NorthernLights | 53a53e181822c907a7fea7ff618cf10a412ede81 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
class ThemePage(object):
"""docstring for ClassName"""
def __init__(self):
super(ThemePage, self).__init__()
self.scopes = []
self.sort_key = 'scope'
def gen_header(self, line):
pass
def parse_file(self, file):
lines = [line.strip(... | 28.243243 | 113 | 0.505263 | 243 | 2,090 | 4.259259 | 0.304527 | 0.023188 | 0.02029 | 0.021256 | 0.117874 | 0.069565 | 0.069565 | 0.069565 | 0.069565 | 0.069565 | 0 | 0.010431 | 0.311962 | 2,090 | 73 | 114 | 28.630137 | 0.709319 | 0.061244 | 0 | 0.071429 | 0 | 0 | 0.182478 | 0.015034 | 0 | 0 | 0 | 0.013699 | 0 | 0 | null | null | 0.017857 | 0 | null | null | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aa9d694c302395d28e118ef790ac8af16b2cd010 | 142 | py | Python | Mundos/Mundo 1/Aulas/Aula 7/ex012.py | NicolasdeLimaAlves/Curso-de-Python | 4987a2c8075a76f676aa69bfd968fdf8d1c7fa52 | [
"MIT"
] | null | null | null | Mundos/Mundo 1/Aulas/Aula 7/ex012.py | NicolasdeLimaAlves/Curso-de-Python | 4987a2c8075a76f676aa69bfd968fdf8d1c7fa52 | [
"MIT"
] | null | null | null | Mundos/Mundo 1/Aulas/Aula 7/ex012.py | NicolasdeLimaAlves/Curso-de-Python | 4987a2c8075a76f676aa69bfd968fdf8d1c7fa52 | [
"MIT"
] | null | null | null | pro = float(input('Preço do produto: R$'))
des = pro - (pro * 5 / 100)
print('O produto que custava {:.2f} vai custar {:.2f}'.format(pro,des)) | 47.333333 | 71 | 0.626761 | 24 | 142 | 3.708333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.15493 | 142 | 3 | 71 | 47.333333 | 0.691667 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 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 |
aaa2953459ea19d3ffcaec38eab5d956ae6ce6b7 | 1,784 | py | Python | bluebird/utils/timeutils.py | rkm/bluebird | 2325ebb151724d4444c092c095a040d7365dda79 | [
"MIT"
] | 8 | 2019-01-29T15:19:39.000Z | 2020-07-16T03:55:36.000Z | bluebird/utils/timeutils.py | rkm/bluebird | 2325ebb151724d4444c092c095a040d7365dda79 | [
"MIT"
] | 46 | 2019-02-08T14:23:11.000Z | 2021-04-06T13:45:10.000Z | bluebird/utils/timeutils.py | rkm/bluebird | 2325ebb151724d4444c092c095a040d7365dda79 | [
"MIT"
] | 3 | 2019-05-06T14:18:07.000Z | 2021-06-17T10:39:59.000Z | """
Contains utility functions for dates and times
"""
import datetime
import logging
import time
from bluebird.settings import Settings
_LOGGER = logging.getLogger(__name__)
DEFAULT_LIFETIME = datetime.timedelta(seconds=10)
def before(date_time):
"""
Check if the given time has passed (i.e. before now())... | 22.3 | 86 | 0.63565 | 236 | 1,784 | 4.707627 | 0.402542 | 0.028803 | 0.018002 | 0.027003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005385 | 0.2713 | 1,784 | 79 | 87 | 22.582278 | 0.849231 | 0.394058 | 0 | 0.071429 | 0 | 0 | 0.075789 | 0.050526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.142857 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
aaba5fe05760820c044c48d4954dc54b0987c3fb | 896 | py | Python | semantic-conventions/src/tests/conftest.py | ekmixon/build-tools | ea3b32830bcf270c8cede6a320c200988501f92a | [
"Apache-2.0"
] | 17 | 2020-07-29T17:27:04.000Z | 2021-11-28T14:11:38.000Z | semantic-conventions/src/tests/conftest.py | ekmixon/build-tools | ea3b32830bcf270c8cede6a320c200988501f92a | [
"Apache-2.0"
] | 58 | 2020-07-29T18:11:59.000Z | 2022-03-30T09:39:25.000Z | semantic-conventions/src/tests/conftest.py | ekmixon/build-tools | ea3b32830bcf270c8cede6a320c200988501f92a | [
"Apache-2.0"
] | 23 | 2020-07-29T17:27:07.000Z | 2022-02-23T18:14:50.000Z | import os
import pytest
from ruamel.yaml import YAML
_TEST_DIR = os.path.dirname(__file__)
# Fixtures in pytest work with reused outer names, so shut up pylint here.
# pylint:disable=redefined-outer-name
@pytest.fixture
def test_file_path():
def loader(*path):
return os.path.join(_TEST_DIR, "data", *pa... | 20.363636 | 74 | 0.696429 | 132 | 896 | 4.492424 | 0.318182 | 0.148398 | 0.121417 | 0.126476 | 0.246206 | 0.104553 | 0.104553 | 0 | 0 | 0 | 0 | 0.001395 | 0.199777 | 896 | 43 | 75 | 20.837209 | 0.825662 | 0.120536 | 0 | 0.346154 | 0 | 0 | 0.017834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.115385 | 0.076923 | 0.730769 | 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 |
aabc49eaf524285405a06ba58d7418ed819ae534 | 475 | py | Python | MotunrayoKoyejo/Phase 1/Python Basic 1/Day9/Q73.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | MotunrayoKoyejo/Phase 1/Python Basic 1/Day9/Q73.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | MotunrayoKoyejo/Phase 1/Python Basic 1/Day9/Q73.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | print('\nCalculate the midpoint of a line :')
x1 = float(input('The value of x (the first endpoint) '))
y1 = float(input('The value of y (the first endpoint) '))
x2 = float(input('The value of x (the first endpoint) '))
y2 = float(input('The value of y (the first endpoint) '))
x_m_point = (x1 + x2)/2
y_m_point = (y1... | 31.666667 | 57 | 0.671579 | 87 | 475 | 3.574713 | 0.264368 | 0.141479 | 0.167203 | 0.231511 | 0.475884 | 0.475884 | 0.475884 | 0.475884 | 0.475884 | 0 | 0 | 0.025381 | 0.170526 | 475 | 15 | 58 | 31.666667 | 0.763959 | 0 | 0 | 0.166667 | 0 | 0 | 0.544118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 1 | 0 | 2 |
aac42150e9f32d794b188a862397b5770c11468b | 2,615 | py | Python | pcml/lib/GlobalOperationPrimitives.py | KevinWhalen/pcml | b6282b98b69e0289790e347aa0ec6fc021359323 | [
"BSD-3-Clause"
] | 1 | 2018-03-07T20:35:15.000Z | 2018-03-07T20:35:15.000Z | pcml/lib/GlobalOperationPrimitives.py | Jindam/HPCGISLab | 54ec030cd87b3f6f46ea68cdf007b21344517515 | [
"BSD-3-Clause"
] | null | null | null | pcml/lib/GlobalOperationPrimitives.py | Jindam/HPCGISLab | 54ec030cd87b3f6f46ea68cdf007b21344517515 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2014 High-Performance Computing and GIS (HPCGIS) Laboratory. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Authors and contributors: Eric Shook (eshook@kent.edu); Zhengliang Feng (odayfans@gmail.com, zfeng2@kent.edu)
"""
from ..c... | 31.506024 | 109 | 0.662333 | 335 | 2,615 | 5.146269 | 0.283582 | 0.041763 | 0.053364 | 0.074246 | 0.642111 | 0.642111 | 0.642111 | 0.632831 | 0.632831 | 0.632831 | 0 | 0.030948 | 0.209178 | 2,615 | 82 | 110 | 31.890244 | 0.802708 | 0.2413 | 0 | 0.813559 | 0 | 0 | 0.008134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.101695 | 0 | 0.237288 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aad1f197ea37b7ec0e06f5bdeb6531fa582aede4 | 2,494 | py | Python | j_notebooks/core_constants.py | andrewt-cville/fb_recruiting | dc8997b2b4626114e4fc06e99a2e68d8e44b0b26 | [
"Apache-2.0"
] | null | null | null | j_notebooks/core_constants.py | andrewt-cville/fb_recruiting | dc8997b2b4626114e4fc06e99a2e68d8e44b0b26 | [
"Apache-2.0"
] | 4 | 2022-01-21T22:27:35.000Z | 2022-01-21T22:39:27.000Z | j_notebooks/core_constants.py | andrewt-cville/fb_recruiting | dc8997b2b4626114e4fc06e99a2e68d8e44b0b26 | [
"Apache-2.0"
] | null | null | null | import requests
import json
def get_defYears():
return ['2002', '2003', '2004', '2005', '2006', '2007', '2008','2009','2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020']
def get_header():
return {'user-agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.... | 45.345455 | 202 | 0.684844 | 266 | 2,494 | 6.345865 | 0.537594 | 0.031991 | 0.049763 | 0.021327 | 0.111374 | 0.111374 | 0.094787 | 0.061611 | 0 | 0 | 0 | 0.058044 | 0.122694 | 2,494 | 55 | 203 | 45.345455 | 0.713437 | 0 | 0 | 0.04878 | 0 | 0.02439 | 0.32986 | 0.018437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.04878 | 0.121951 | 0.414634 | 0.02439 | 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 |
2aa92d3079dc909388bc1b9520eda56ea436cdba | 548 | py | Python | __init__.py | Innovation-DOOEL-Skopje/ViewHRV | 25c57ec3822daaca8335c6a70b5d2107c6655b48 | [
"MIT"
] | null | null | null | __init__.py | Innovation-DOOEL-Skopje/ViewHRV | 25c57ec3822daaca8335c6a70b5d2107c6655b48 | [
"MIT"
] | null | null | null | __init__.py | Innovation-DOOEL-Skopje/ViewHRV | 25c57ec3822daaca8335c6a70b5d2107c6655b48 | [
"MIT"
] | null | null | null | # # -*- coding: utf-8 -*-
# """
# Notes
# -----
# Author
# ------
# .. Ervin Shaqiri , Marjan Gushev
# Last Update
# -----------
# 13.11.2019
# :copyright:
# :license:
# """
# # Local imports
# # from package.__version__ import __version__
# import Package
# # Metadata
# __author__ = "Ervin Shaqiri, Marjan Gushev... | 18.896552 | 93 | 0.633212 | 53 | 548 | 6.018868 | 0.773585 | 0.112853 | 0.112853 | 0.15047 | 0.188088 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020089 | 0.182482 | 548 | 29 | 93 | 18.896552 | 0.691964 | 0.890511 | 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 |
2ac84d2f2751b2936ef2c7ceda2e752ae5ba5eac | 232 | py | Python | src/main.py | cld-santos/fifi | 5576543afc7a9c1a8f919e7019bb5eab8cba073e | [
"Apache-2.0"
] | null | null | null | src/main.py | cld-santos/fifi | 5576543afc7a9c1a8f919e7019bb5eab8cba073e | [
"Apache-2.0"
] | null | null | null | src/main.py | cld-santos/fifi | 5576543afc7a9c1a8f919e7019bb5eab8cba073e | [
"Apache-2.0"
] | null | null | null | import sys
from fifi import investigate
if __name__=='__main__':
subject = sys.argv[1]
url = sys.argv[2]
# investigate('febre amarela', 'http://www.brasil.gov.br/home-1/ultimas-noticias')
investigate(subject, url)
| 23.2 | 86 | 0.689655 | 32 | 232 | 4.75 | 0.71875 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015464 | 0.163793 | 232 | 9 | 87 | 25.777778 | 0.768041 | 0.344828 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2ac88c5d0161a99e852a85615708c76851d21a25 | 2,161 | py | Python | hchztests/tests/test_container_webdav.py | codedsk/hubcheck-hubzero-tests | 89dd7164fed9161a5bf80e0a5635cec3da5be31d | [
"MIT"
] | 1 | 2016-01-02T01:36:14.000Z | 2016-01-02T01:36:14.000Z | hchztests/tests/test_container_webdav.py | codedsk/hubcheck-hubzero-tests | 89dd7164fed9161a5bf80e0a5635cec3da5be31d | [
"MIT"
] | null | null | null | hchztests/tests/test_container_webdav.py | codedsk/hubcheck-hubzero-tests | 89dd7164fed9161a5bf80e0a5635cec3da5be31d | [
"MIT"
] | null | null | null | import unittest
import pytest
import sys
import time
import hubcheck
from webdav import WebdavClient
from webdav.Connection import WebdavError,AuthorizationError
pytestmark = [ pytest.mark.container,
pytest.mark.webdav,
pytest.mark.nightly,
pytest.mark.reboot
... | 26.036145 | 71 | 0.640444 | 236 | 2,161 | 5.745763 | 0.338983 | 0.044248 | 0.047935 | 0.039823 | 0.272861 | 0.233038 | 0.193215 | 0.193215 | 0.193215 | 0.138643 | 0 | 0.004487 | 0.278112 | 2,161 | 82 | 72 | 26.353659 | 0.864744 | 0.053216 | 0 | 0.136364 | 0 | 0 | 0.060307 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | null | null | 0.136364 | 0.159091 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2ac93bfc784a35467809b491d9544789fcf7d9a4 | 384 | py | Python | qutip/tests/test_hardware_info.py | tonybruguier/qutip | 52d01da181a21b810c3407812c670f35fdc647e8 | [
"BSD-3-Clause"
] | null | null | null | qutip/tests/test_hardware_info.py | tonybruguier/qutip | 52d01da181a21b810c3407812c670f35fdc647e8 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T12:27:00.000Z | 2022-03-12T12:27:00.000Z | qutip/tests/test_hardware_info.py | tonybruguier/qutip | 52d01da181a21b810c3407812c670f35fdc647e8 | [
"BSD-3-Clause"
] | null | null | null | """
Tests for qutip.hardware_info.
"""
from qutip.hardware_info import hardware_info
def test_hardware_info():
info = hardware_info()
assert info["os"] in ("Windows", "FreeBSD", "Linux", "Mac OSX")
assert info["cpus"] > 0
assert isinstance(info["cpus"], int)
cpu_freq = info.get("cpu_freq", 0.0)
... | 24 | 67 | 0.664063 | 54 | 384 | 4.537037 | 0.462963 | 0.244898 | 0.138776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01278 | 0.184896 | 384 | 15 | 68 | 25.6 | 0.769968 | 0.078125 | 0 | 0 | 0 | 0 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ad41031f0927398dc626ce0c48e111edcd41c16 | 1,388 | py | Python | gui/wellplot/settings/layout/widgets/ui_tracklayouttreewidget.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 2 | 2019-10-04T13:54:51.000Z | 2021-05-21T19:36:15.000Z | gui/wellplot/settings/layout/widgets/ui_tracklayouttreewidget.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 3 | 2019-11-19T17:06:09.000Z | 2020-01-18T20:39:54.000Z | gui/wellplot/settings/layout/widgets/ui_tracklayouttreewidget.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 2 | 2020-07-02T13:20:48.000Z | 2020-11-11T00:18:51.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'tracklayouttreewidget.ui'
#
# Created: Tue Jun 23 21:01:09 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8... | 33.047619 | 79 | 0.741354 | 134 | 1,388 | 7.61194 | 0.537313 | 0.062745 | 0.078431 | 0.109804 | 0.160784 | 0.160784 | 0.160784 | 0.160784 | 0.160784 | 0.160784 | 0 | 0.027122 | 0.176513 | 1,388 | 41 | 80 | 33.853659 | 0.865267 | 0.162824 | 0 | 0.230769 | 1 | 0 | 0.029488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.038462 | 0.038462 | 0.115385 | 0.384615 | 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 |
2adb59302dfc2ec27651cc389b9c66c966443aa6 | 815 | py | Python | test/test_stmts.py | rocky/xpython | ce4ed4329cee2af0aab94254276f5a5687dd25f9 | [
"MIT"
] | 1 | 2020-04-28T13:18:13.000Z | 2020-04-28T13:18:13.000Z | test/test_stmts.py | rocky/xbyterun | fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9 | [
"MIT"
] | null | null | null | test/test_stmts.py | rocky/xbyterun | fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9 | [
"MIT"
] | null | null | null | """Test Python statements."""
from xdis.version_info import PYTHON_VERSION_TRIPLE, version_tuple_to_str
try:
import vmtest
except ImportError:
from . import vmtest
if PYTHON_VERSION_TRIPLE[:2] in ((3, 10),):
print("Test not gone over yet for %s" % version_tuple_to_str())
class TestStmts(vmtest.VmTest... | 20.897436 | 73 | 0.63681 | 103 | 815 | 4.708738 | 0.427184 | 0.131959 | 0.090722 | 0.164948 | 0.356701 | 0.356701 | 0.197938 | 0.197938 | 0.197938 | 0 | 0 | 0.006634 | 0.260123 | 815 | 38 | 74 | 21.447368 | 0.797678 | 0.068712 | 0 | 0.347826 | 0 | 0 | 0.066489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.043478 | 0.173913 | 0 | 0.478261 | 0.043478 | 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 |
2add779f4df7a51f2c5178e9bbfd9de6fdf7d323 | 279 | py | Python | app.py | juliuskrahn-com/backend | 819c4204be410aa8e0049f14a94646f0754ae821 | [
"MIT"
] | null | null | null | app.py | juliuskrahn-com/backend | 819c4204be410aa8e0049f14a94646f0754ae821 | [
"MIT"
] | 1 | 2021-03-24T10:38:41.000Z | 2021-03-24T10:38:41.000Z | app.py | juliuskrahn/blog-backend | 819c4204be410aa8e0049f14a94646f0754ae821 | [
"MIT"
] | null | null | null | from aws_cdk import core
import stacks
app = core.App()
stacks.Production(app, "Production", env=core.Environment(account="473883619336", region="eu-central-1"))
stacks.Testing(app, "Testing", env=core.Environment(account="473883619336", region="eu-central-1"))
app.synth()
| 23.25 | 105 | 0.749104 | 38 | 279 | 5.473684 | 0.473684 | 0.067308 | 0.173077 | 0.240385 | 0.509615 | 0.509615 | 0.509615 | 0.509615 | 0.509615 | 0 | 0 | 0.101563 | 0.082437 | 279 | 11 | 106 | 25.363636 | 0.710938 | 0 | 0 | 0 | 0 | 0 | 0.232975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
2af708bfd795871225f7f60fff7193b99390bc1b | 942 | py | Python | src/wowapi/helper/file_cacher.py | MislavJaksic/World-of-Warcraft-API | f414cf967ed0f54bb8aef74c48ed3b761613db6c | [
"MIT"
] | null | null | null | src/wowapi/helper/file_cacher.py | MislavJaksic/World-of-Warcraft-API | f414cf967ed0f54bb8aef74c48ed3b761613db6c | [
"MIT"
] | 2 | 2021-04-21T17:38:08.000Z | 2021-04-21T17:38:35.000Z | src/wowapi/helper/file_cacher.py | MislavJaksic/World-of-Warcraft-API | f414cf967ed0f54bb8aef74c48ed3b761613db6c | [
"MIT"
] | null | null | null | from pathlib import Path
import pickle
import logging
class FileCacher(object):
def __init__(self, dir_path: Path):
self.dir_path = dir_path
def __str__(self):
string = "FileCacher["
string += str(self.dir_path.resolve())
string += "]"
return string
def object_to_... | 29.4375 | 62 | 0.64862 | 123 | 942 | 4.731707 | 0.317073 | 0.060137 | 0.075601 | 0.07732 | 0.180412 | 0.140893 | 0.140893 | 0.140893 | 0.140893 | 0 | 0 | 0 | 0.240977 | 942 | 31 | 63 | 30.387097 | 0.813986 | 0 | 0 | 0 | 0 | 0 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.041667 | 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 |
2afbdf11a26cac4bc40bece60d23100b0a64d445 | 128 | py | Python | Algo_practice/CountDiv.py | harsh52/Assignments-competitive_coding | bec05217ca3d67f71d5209498dc5e6bfae9d4a93 | [
"Apache-2.0"
] | 8 | 2018-09-28T19:15:50.000Z | 2020-02-22T11:17:24.000Z | Algo_practice/CountDiv.py | harsh52/Assignments-competitive_coding | bec05217ca3d67f71d5209498dc5e6bfae9d4a93 | [
"Apache-2.0"
] | null | null | null | Algo_practice/CountDiv.py | harsh52/Assignments-competitive_coding | bec05217ca3d67f71d5209498dc5e6bfae9d4a93 | [
"Apache-2.0"
] | 2 | 2019-09-14T21:33:52.000Z | 2020-02-13T11:06:08.000Z | def solution(A,B,K):
count = 0
for i in range(A,B):
if(i%K==0):
count += 1
#print(count)
return count
solution(6,11,2) | 14.222222 | 21 | 0.601563 | 27 | 128 | 2.851852 | 0.666667 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068627 | 0.203125 | 128 | 9 | 22 | 14.222222 | 0.686275 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
63104d29f5038f04906c20016b184fe47c390bc0 | 475 | py | Python | custom_components/mila/milacloud/resource.py | sanghviharshit/ha-mila | e5e3bc0c380daedde04fc7a3a19ff872d6809bd2 | [
"MIT"
] | 2 | 2022-03-25T23:39:15.000Z | 2022-03-25T23:49:22.000Z | custom_components/mila/milacloud/resource.py | sanghviharshit/ha-mila | e5e3bc0c380daedde04fc7a3a19ff872d6809bd2 | [
"MIT"
] | 1 | 2022-03-26T09:40:59.000Z | 2022-03-28T09:26:24.000Z | custom_components/mila/milacloud/resource.py | sanghviharshit/ha-mila | e5e3bc0c380daedde04fc7a3a19ff872d6809bd2 | [
"MIT"
] | 1 | 2022-03-26T09:36:37.000Z | 2022-03-26T09:36:37.000Z | """Milacares API"""
from .const import URL_ACCOUNT
class Resource(object):
def __init__(self, api, device, data):
self.api = api
self.device = device
self.data = data
@property
def id(self):
return self.device["id"] if self.is_device else None
@property
def is_acc... | 21.590909 | 60 | 0.625263 | 59 | 475 | 4.627119 | 0.389831 | 0.120879 | 0.153846 | 0.139194 | 0.168498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265263 | 475 | 21 | 61 | 22.619048 | 0.782235 | 0.027368 | 0 | 0.2 | 0 | 0 | 0.032895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
6325c6258163a26c43d4609e97bd03ece406baa0 | 751 | py | Python | Foresite/processed_data/models.py | khoamb/Foresite | 97b155452d92fe1c487e7cbeffbc867604a1e726 | [
"MIT"
] | null | null | null | Foresite/processed_data/models.py | khoamb/Foresite | 97b155452d92fe1c487e7cbeffbc867604a1e726 | [
"MIT"
] | 6 | 2018-11-29T23:25:16.000Z | 2018-11-30T01:17:33.000Z | Foresite/processed_data/models.py | PricelessAntonio/Foresite | 4eec1ab5bf588b1ef6ec176a612bc62e8d55b424 | [
"MIT"
] | 3 | 2018-09-05T18:57:03.000Z | 2020-03-22T02:19:58.000Z | from django.db import models
from upload_csv.models import CsvUpload
class ProcessedData(models.Model):
upload_csv_processed = models.OneToOneField(
CsvUpload, on_delete=models.CASCADE, primary_key=True)
day_1 = models.FloatField(null=True, blank=True, default=None)
day_2 = models.FloatField(null=... | 46.9375 | 66 | 0.75233 | 107 | 751 | 5.149533 | 0.35514 | 0.15971 | 0.254083 | 0.3049 | 0.591652 | 0.591652 | 0.591652 | 0.591652 | 0.511797 | 0 | 0 | 0.015385 | 0.134487 | 751 | 15 | 67 | 50.066667 | 0.832308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.923077 | 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 |
63271846667581d908047078deca17eed1b4f83c | 137 | py | Python | ex046.py | bruceewmesmo/python-mundo-02 | d37d6271f3870f16521391bd7884b57aaae3484a | [
"MIT"
] | null | null | null | ex046.py | bruceewmesmo/python-mundo-02 | d37d6271f3870f16521391bd7884b57aaae3484a | [
"MIT"
] | null | null | null | ex046.py | bruceewmesmo/python-mundo-02 | d37d6271f3870f16521391bd7884b57aaae3484a | [
"MIT"
] | null | null | null |
# EXERCICIO 046 - CONTAGEM REGRESSIVA
from time import sleep
for cont in range(10,-1,-1):
print(cont)
sleep(1)
print('BOOM!')
| 13.7 | 37 | 0.664234 | 21 | 137 | 4.333333 | 0.761905 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0.20438 | 137 | 9 | 38 | 15.222222 | 0.761468 | 0.255474 | 0 | 0 | 0 | 0 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 |
632dd9f6e12bbbd1b4acf6b14acf7925e0d8ee52 | 434 | py | Python | scripts/get-db-raw-snapshot-mysql.py | TakesxiSximada/dumpcar | 5046c36ab62c38aeee511a6593a0ad176eb9d941 | [
"Apache-2.0"
] | null | null | null | scripts/get-db-raw-snapshot-mysql.py | TakesxiSximada/dumpcar | 5046c36ab62c38aeee511a6593a0ad176eb9d941 | [
"Apache-2.0"
] | null | null | null | scripts/get-db-raw-snapshot-mysql.py | TakesxiSximada/dumpcar | 5046c36ab62c38aeee511a6593a0ad176eb9d941 | [
"Apache-2.0"
] | null | null | null | import getpass
import argparse
import subprocess
parser = argparse.ArgumentParser()
parser.add_argument('host')
parser.add_argument('user')
parser.add_argument('db')
args = parser.parse_args()
child = subprocess.run('mysqldump -h {} -u {} {}'.format(
args.host, args.user, args.db), shell=True)
child.wait()
child... | 24.111111 | 57 | 0.702765 | 59 | 434 | 5.101695 | 0.372881 | 0.089701 | 0.169435 | 0.179402 | 0.498339 | 0.498339 | 0.498339 | 0.498339 | 0.498339 | 0.498339 | 0 | 0 | 0.119816 | 434 | 17 | 58 | 25.529412 | 0.787958 | 0 | 0 | 0.428571 | 0 | 0 | 0.133641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.214286 | 0 | 0.214286 | 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 |
632fdaeecd11b2730275a527955c48e365afd77e | 5,689 | py | Python | ecomcat_api/ztest.py | andrewraharjo/CAN-Bus-Hack_Prius_Focus | b2a73dfb4a3762d8439acd64d2e1b5d729988b2e | [
"MIT"
] | 34 | 2016-08-05T02:49:04.000Z | 2022-03-12T07:44:44.000Z | ecomcat_api/ztest.py | andrewraharjo/CAN-Bus-Hack_Prius_Focus | b2a73dfb4a3762d8439acd64d2e1b5d729988b2e | [
"MIT"
] | null | null | null | ecomcat_api/ztest.py | andrewraharjo/CAN-Bus-Hack_Prius_Focus | b2a73dfb4a3762d8439acd64d2e1b5d729988b2e | [
"MIT"
] | 15 | 2016-12-03T03:19:13.000Z | 2021-10-17T04:49:14.000Z | from PyEcom import *
from config import *
import time, struct, sys, binascii
def str_to_hexarr(val):
payload = []
for x in val:
payload.append(ord(x))
return payload
def nbo_int_to_bytearr(dword):
arr = []
arr.append(dword & 0xFF)
arr.append((dword >> 8) & 0xFF)
arr... | 30.918478 | 83 | 0.587449 | 651 | 5,689 | 4.933948 | 0.281106 | 0.047945 | 0.089041 | 0.128892 | 0.411582 | 0.394147 | 0.347447 | 0.272727 | 0.110212 | 0.110212 | 0 | 0.212321 | 0.252417 | 5,689 | 183 | 84 | 31.087432 | 0.542911 | 0.647214 | 0 | 0 | 0 | 0 | 0.026837 | 0 | 0 | 0 | 0.142492 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
63340edda44bb9c3df306e15359004e548f7b446 | 467 | py | Python | 4.py | gor-dimm/lr8 | a49265d185a86ac31992f3e70e51ec17f857bf49 | [
"MIT"
] | null | null | null | 4.py | gor-dimm/lr8 | a49265d185a86ac31992f3e70e51ec17f857bf49 | [
"MIT"
] | null | null | null | 4.py | gor-dimm/lr8 | a49265d185a86ac31992f3e70e51ec17f857bf49 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def getInput():
return input()
def testInput(a):
try:
val = int(a)
except ValueError:
return False
return True
def strToInt(a):
return int(a)
def printInt(a):
print(a)
if __name__ == '__main__':
a = getInput()
isInta... | 15.064516 | 69 | 0.588865 | 58 | 467 | 4.603448 | 0.62069 | 0.074906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.284797 | 467 | 30 | 70 | 15.566667 | 0.793413 | 0.092077 | 0 | 0 | 0 | 0 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.105263 | 0.421053 | 0.210526 | 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 |
2d4a475000ced27dbdca8e97b33cbf5f2dde8ea6 | 2,225 | py | Python | my_funcs.py | IgorReshetnyak/Spectra | 223f8fd40cfbd80d0845ff463b4dde1b5d32f7bf | [
"MIT"
] | null | null | null | my_funcs.py | IgorReshetnyak/Spectra | 223f8fd40cfbd80d0845ff463b4dde1b5d32f7bf | [
"MIT"
] | null | null | null | my_funcs.py | IgorReshetnyak/Spectra | 223f8fd40cfbd80d0845ff463b4dde1b5d32f7bf | [
"MIT"
] | null | null | null | #COPYRIGHT Igor RESHETNYAK 2016-2020
import math
import numpy
import time
def broad_gauss(data, energies, broad=0.1):
if len(data)!=len(energies):
exit("Error data and energies length differ")
data1=numpy.zeros(len(energies));
ne=len(energies)
for i in range(ne):
norm=0.0 ... | 27.134146 | 96 | 0.580674 | 356 | 2,225 | 3.620787 | 0.168539 | 0.085337 | 0.125679 | 0.132661 | 0.731575 | 0.708301 | 0.640031 | 0.577967 | 0.554694 | 0.554694 | 0 | 0.045265 | 0.245393 | 2,225 | 81 | 97 | 27.469136 | 0.722454 | 0.01573 | 0 | 0.461538 | 0 | 0 | 0.052682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.046154 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d556a815d9c760c24f13a15f5cb2f4c91a81feb | 590 | py | Python | app.py | choochootrain/choochoodash | fcc5f9e1af4c9ebe4a168372f8f16306951d2ddd | [
"MIT"
] | null | null | null | app.py | choochootrain/choochoodash | fcc5f9e1af4c9ebe4a168372f8f16306951d2ddd | [
"MIT"
] | null | null | null | app.py | choochootrain/choochoodash | fcc5f9e1af4c9ebe4a168372f8f16306951d2ddd | [
"MIT"
] | null | null | null | import os
import requests
from flask import Flask, render_template
app = Flask(__name__)
app.config['DEBUG'] = True
@app.route('/')
def index():
return render_template('index.html')
#API
@app.route('/api/ping', methods=['GET'])
def api_ping():
return "pong"
@app.route('/api/weather/<int:city_id>', methods=... | 23.6 | 104 | 0.686441 | 91 | 590 | 4.230769 | 0.516484 | 0.062338 | 0.057143 | 0.083117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019305 | 0.122034 | 590 | 24 | 105 | 24.583333 | 0.723938 | 0.005085 | 0 | 0 | 0 | 0.058824 | 0.250853 | 0.044369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.117647 | 0.529412 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
2d650c07ad9573d840d1742e4877c9000e5ab436 | 334 | py | Python | basics/print_distance_readings.py | justinbooms/imu-positioning | 26f33b4021ba824a44bc329ab4dc0c0c2dbfbbd0 | [
"MIT"
] | null | null | null | basics/print_distance_readings.py | justinbooms/imu-positioning | 26f33b4021ba824a44bc329ab4dc0c0c2dbfbbd0 | [
"MIT"
] | null | null | null | basics/print_distance_readings.py | justinbooms/imu-positioning | 26f33b4021ba824a44bc329ab4dc0c0c2dbfbbd0 | [
"MIT"
] | null | null | null | import easygopigo3 as easy
gpg = easy.EasyGoPiGo3()
import di_sensors
import time
my_distance_sensor = gpg.init_distance_sensor()
print("Distance Sensor Reading (mm): " + str(my_distance_sensor.read_mm()))
##my_imu = gpg.init_motion_sensor()
##my_imu.read()
##
##for i in range(100):
## print(my_imu.read())
##t... | 22.266667 | 75 | 0.718563 | 51 | 334 | 4.45098 | 0.509804 | 0.246696 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0.125749 | 334 | 14 | 76 | 23.857143 | 0.756849 | 0.302395 | 0 | 0 | 0 | 0 | 0.135747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2d6f1cd0f83c98647a3594353c8a2361c8365a14 | 221 | py | Python | sample.py | rokups/snek | 8c64a19ebaa74ac739c64f2fb1460b06b2b6d55c | [
"MIT"
] | 4 | 2019-02-06T23:07:42.000Z | 2020-06-08T19:36:31.000Z | sample.py | rokups/snek | 8c64a19ebaa74ac739c64f2fb1460b06b2b6d55c | [
"MIT"
] | null | null | null | sample.py | rokups/snek | 8c64a19ebaa74ac739c64f2fb1460b06b2b6d55c | [
"MIT"
] | null | null | null | import sys
import platform
import ctypes
text = f'Arguments: {sys.argv}\n' +\
f'Interpreter: {sys.version}\n' +\
f'OS: {platform.win32_ver()}'
ctypes.windll.user32.MessageBoxW(0, text, 'snek', 1)
| 22.1 | 53 | 0.628959 | 30 | 221 | 4.6 | 0.666667 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.20362 | 221 | 9 | 54 | 24.555556 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.382075 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2d739716df9efe27729bb8bc3d94a36f3fe01b0b | 12,306 | py | Python | mmtbx/geometry/tests/tst_topology.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | mmtbx/geometry/tests/tst_topology.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | mmtbx/geometry/tests/tst_topology.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
from mmtbx.geometry import topology
import unittest
class TestAtom(unittest.TestCase):
def test_1(self):
foo = object()
bar = object()
a = topology.Atom( foo = foo, bar = bar )
self.assertEqual( a.foo, foo )
self.assertEqual( a... | 35.982456 | 86 | 0.591013 | 1,731 | 12,306 | 4.095321 | 0.109185 | 0.129073 | 0.071942 | 0.060939 | 0.720976 | 0.707011 | 0.668642 | 0.644238 | 0.632811 | 0.622655 | 0 | 0.092549 | 0.243133 | 12,306 | 341 | 87 | 36.087977 | 0.668563 | 0 | 0 | 0.594306 | 0 | 0 | 0.00772 | 0 | 0 | 0 | 0 | 0 | 0.320285 | 1 | 0.042705 | false | 0 | 0.010676 | 0.003559 | 0.078292 | 0.003559 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d73ac22b27169801ecab1b7ed3c0715a7bc8969 | 210 | py | Python | decorators/decorator.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | 4 | 2021-08-02T21:34:46.000Z | 2021-09-24T03:26:35.000Z | decorators/decorator.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | null | null | null | decorators/decorator.py | UltiRequiem/professional-phython-platzi | 0bf8f97b172d0799d6906193090ef69beb1c8b4b | [
"MIT"
] | 4 | 2021-08-02T21:34:47.000Z | 2021-08-11T03:21:37.000Z | def decorator(func):
def wrapper():
print("Decoring")
func()
print("Done!")
return wrapper
@decorator
def say_hi():
print("Hi!")
if __name__ == "__main__":
say_hi()
| 12.352941 | 26 | 0.542857 | 23 | 210 | 4.521739 | 0.565217 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 210 | 16 | 27 | 13.125 | 0.707483 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.363636 | 0.272727 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2d8af5bde08bccb8801400762209680c1690511d | 151 | py | Python | _solutions/pandas/series/pandas_series_slice_datetime.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/pandas/series/pandas_series_slice_datetime.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/pandas/series/pandas_series_slice_datetime.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null |
s = pd.Series(
data=np.random.randn(NUMBER),
index=pd.date_range('2000-01-01', freq='D', periods=NUMBER))
result = s['2000-02-14':'2000-02']
| 21.571429 | 64 | 0.635762 | 26 | 151 | 3.653846 | 0.730769 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167939 | 0.13245 | 151 | 6 | 65 | 25.166667 | 0.557252 | 0 | 0 | 0 | 0 | 0 | 0.186667 | 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 |
2d919e1f16d23a647675a6db1589afef99098e27 | 1,226 | py | Python | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/shadow.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/shadow.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/shadow.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | '''OpenGL extension SGIX.shadow
Overview (from the spec)
This extension defines two new operations to be performed on texture
values before they are passed on to the filtering subsystem. These
operations perform either a <= or >= test on the value from texture
memory and the iterated R value, and return 1.0 or ... | 40.866667 | 98 | 0.80832 | 180 | 1,226 | 5.305556 | 0.5 | 0.075393 | 0.067016 | 0.092147 | 0.230366 | 0.13822 | 0 | 0 | 0 | 0 | 0 | 0.018657 | 0.125612 | 1,226 | 29 | 99 | 42.275862 | 0.872201 | 0.54894 | 0 | 0 | 0 | 0 | 0.198305 | 0.174576 | 0 | 0 | 0.040678 | 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 |
2d9c8b84d1f3fe5ddf153b4767b87468c135b546 | 804 | py | Python | csr/kernels/scipy.py | mdekstrand/csr | 665ceefff882d7e42db41034246b6ddb1f93e372 | [
"MIT"
] | 11 | 2021-02-07T16:37:31.000Z | 2022-03-19T15:19:16.000Z | csr/kernels/scipy.py | mdekstrand/csr | 665ceefff882d7e42db41034246b6ddb1f93e372 | [
"MIT"
] | 25 | 2021-02-11T22:42:01.000Z | 2022-01-27T21:04:31.000Z | csr/kernels/scipy.py | lenskit/csr | 03fde2d8c3cb7eb330028f34765ff2a06f849631 | [
"MIT"
] | 2 | 2021-02-07T02:05:04.000Z | 2021-06-01T15:23:09.000Z | """
SciPy "kernel". This kernel is not Numba-compatible, and will never be
selected as the default. It primarily exists for ease in testing and
benchmarking CSR operations.
"""
import numpy as np
from scipy.sparse import csr_matrix
from csr import CSR
max_nnz = np.iinfo('i8').max
def to_handle(csr: CSR):
valu... | 17.866667 | 81 | 0.664179 | 138 | 804 | 3.782609 | 0.5 | 0.015326 | 0.019157 | 0.034483 | 0.038314 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001592 | 0.218905 | 804 | 44 | 82 | 18.272727 | 0.829618 | 0.211443 | 0 | 0 | 0 | 0 | 0.003195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0.043478 | 0.130435 | 0.130435 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
2d9dc598e3909d8971f2ae462dd996f91b6df60e | 25,211 | py | Python | riscvmodel/insn.py | bieganski/riscv-python-model | 4441f5c44387dc7b005e0759b01f8e78b02a5f24 | [
"MIT"
] | null | null | null | riscvmodel/insn.py | bieganski/riscv-python-model | 4441f5c44387dc7b005e0759b01f8e78b02a5f24 | [
"MIT"
] | null | null | null | riscvmodel/insn.py | bieganski/riscv-python-model | 4441f5c44387dc7b005e0759b01f8e78b02a5f24 | [
"MIT"
] | null | null | null | # Copyright Stefan Wallentowitz
# Licensed under the MIT License, see LICENSE for details.
# SPDX-License-Identifier: MIT
"""
Instructions
"""
from .isa import *
from .variant import *
from .model import State
@isa("lui", RV32I, opcode=0b0110111)
class InstructionLUI(InstructionUType):
"""
The Load Upper Imme... | 35.309524 | 110 | 0.671175 | 3,104 | 25,211 | 5.431057 | 0.120168 | 0.137027 | 0.147704 | 0.192194 | 0.687092 | 0.637027 | 0.591529 | 0.576877 | 0.546743 | 0.53138 | 0 | 0.088296 | 0.195431 | 25,211 | 713 | 111 | 35.359046 | 0.742802 | 0.106858 | 0 | 0.449893 | 0 | 0 | 0.01432 | 0 | 0 | 0 | 0.002148 | 0.001403 | 0 | 1 | 0.183369 | false | 0.059701 | 0.006397 | 0.006397 | 0.362473 | 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 |
2dc1fce6ff36eced9643eb2405ebb15d6785acf4 | 264 | py | Python | public/cantusdata/test/views/test_browse.py | jacobsanz97/cantus | 37d139ae20972c36d4abb96a2a5ac5106b0c1b47 | [
"MIT"
] | 12 | 2015-01-08T14:34:55.000Z | 2021-06-03T06:53:04.000Z | public/cantusdata/test/views/test_browse.py | jacobsanz97/cantus | 37d139ae20972c36d4abb96a2a5ac5106b0c1b47 | [
"MIT"
] | 303 | 2015-01-14T17:10:32.000Z | 2022-02-14T20:27:21.000Z | public/cantusdata/test/views/test_browse.py | jacobsanz97/cantus | 37d139ae20972c36d4abb96a2a5ac5106b0c1b47 | [
"MIT"
] | 2 | 2019-10-07T21:21:27.000Z | 2019-10-20T16:58:22.000Z | from rest_framework.test import APITestCase
from rest_framework import status
class BrowseViewTestCase(APITestCase):
def test_get_browse(self):
response = self.client.get("/browse/")
self.assertEqual(response.status_code, status.HTTP_200_OK)
| 29.333333 | 66 | 0.768939 | 33 | 264 | 5.939394 | 0.606061 | 0.081633 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.147727 | 264 | 8 | 67 | 33 | 0.857778 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2dc858685507f59151c55418ca42c6818c4fab18 | 282 | py | Python | model/resnet44.py | lorenz0890/pytorch-admm-pruning | 85f15d86e6d9037fe4016ebcd435065ecba823b5 | [
"BSD-3-Clause"
] | null | null | null | model/resnet44.py | lorenz0890/pytorch-admm-pruning | 85f15d86e6d9037fe4016ebcd435065ecba823b5 | [
"BSD-3-Clause"
] | null | null | null | model/resnet44.py | lorenz0890/pytorch-admm-pruning | 85f15d86e6d9037fe4016ebcd435065ecba823b5 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torchvision.models
import torch.nn.functional as F
import torch.nn as nn
from .resnet import resnet44
def ResNet44(num_classes=10):
model = nn.Sequential(
resnet44(num_classes=num_classes),
nn.LogSoftmax(1)
)
return model | 23.5 | 46 | 0.695035 | 38 | 282 | 5.078947 | 0.526316 | 0.170984 | 0.134715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.234043 | 282 | 12 | 47 | 23.5 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 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 |
2dcf8bc8a5a0492476ff8cc6f512e7c828b813d7 | 414 | py | Python | index/models.py | brahici/WBO | 8781512b2ae3e308e2fe9310935a0f5ce4e30a29 | [
"BSD-3-Clause"
] | null | null | null | index/models.py | brahici/WBO | 8781512b2ae3e308e2fe9310935a0f5ce4e30a29 | [
"BSD-3-Clause"
] | null | null | null | index/models.py | brahici/WBO | 8781512b2ae3e308e2fe9310935a0f5ce4e30a29 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
class Menu(models.Model):
label = models.CharField(max_length=64)
url = models.CharField(max_length=254)
sequence = models.IntegerField()
visible = models.BooleanField(default=False)
def __unicode__(self):
return self.label
class Meta:
ordering = (... | 24.352941 | 48 | 0.671498 | 48 | 414 | 5.604167 | 0.666667 | 0.111524 | 0.133829 | 0.178439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015674 | 0.229469 | 414 | 16 | 49 | 25.875 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.070218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2dd26c6204a033b6f1e83b70cb2fbe90ad12917d | 3,875 | py | Python | examples/libtest/DatetimeModuleTest.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 739 | 2015-01-01T02:05:11.000Z | 2022-03-30T15:26:16.000Z | examples/libtest/DatetimeModuleTest.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2015-03-25T23:17:04.000Z | 2021-08-19T08:25:22.000Z | examples/libtest/DatetimeModuleTest.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 167 | 2015-01-01T22:27:47.000Z | 2022-03-17T13:29:19.000Z | # Testing datetime module
import sys
import UnitTest
import datetime
class DatetimeModuleTest(UnitTest.UnitTest):
def testDate(self):
d = datetime.date(2010, 4, 9)
self.assertEqual(d.year, 2010)
self.assertEqual(d.month, 4)
self.assertEqual(d.day, 9)
self.assertEqual(d.we... | 34.598214 | 108 | 0.599226 | 542 | 3,875 | 4.252768 | 0.234317 | 0.234273 | 0.033839 | 0.066377 | 0.339696 | 0.215184 | 0.160521 | 0.150542 | 0.138395 | 0.12538 | 0 | 0.165068 | 0.246452 | 3,875 | 111 | 109 | 34.90991 | 0.624315 | 0.014194 | 0 | 0.078652 | 0 | 0 | 0.090933 | 0.006813 | 0 | 0 | 0 | 0 | 0.438202 | 1 | 0.146067 | false | 0 | 0.044944 | 0 | 0.202247 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2dd503e2807b79a835cbe6e07372b54f279a4edd | 3,828 | py | Python | app/genre/datastore.py | datphan/moviecrab | e3bcff700b994388f1ded68d268a960b10d57a81 | [
"BSD-3-Clause"
] | null | null | null | app/genre/datastore.py | datphan/moviecrab | e3bcff700b994388f1ded68d268a960b10d57a81 | [
"BSD-3-Clause"
] | null | null | null | app/genre/datastore.py | datphan/moviecrab | e3bcff700b994388f1ded68d268a960b10d57a81 | [
"BSD-3-Clause"
] | null | null | null | from abc import abstractmethod, ABCMeta
from datetime import datetime
from flask_security.utils import encrypt_password
from ..datastore import SQLAlchemyDatastore
from ..utils import fix_docs
class GenreDatastore(object):
"""Abstract GenreDatastore class.
.. versionadded:: 0.1.0
"""
__metaclass__... | 29.446154 | 98 | 0.631139 | 457 | 3,828 | 5.175055 | 0.262582 | 0.034249 | 0.035518 | 0.038055 | 0.413953 | 0.366596 | 0.279493 | 0.217336 | 0.217336 | 0.186892 | 0 | 0.006424 | 0.268025 | 3,828 | 129 | 99 | 29.674419 | 0.837616 | 0.388976 | 0 | 0.367347 | 0 | 0 | 0.068846 | 0 | 0 | 0 | 0 | 0.007752 | 0 | 1 | 0.22449 | false | 0.163265 | 0.102041 | 0.061224 | 0.489796 | 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 |
2df31a29b7b8de55930b8e265b17dab114002b6a | 610 | py | Python | stock_activities/migrations/0008_auto_20210524_0215.py | ericpesto/Archeon-Django-REST-API | e02b871b95c5247d83580acfe25f6ec299fdb9b1 | [
"MIT"
] | 1 | 2021-06-07T17:31:23.000Z | 2021-06-07T17:31:23.000Z | stock_activities/migrations/0008_auto_20210524_0215.py | ericpesto/Archeon-Django-REST-API | e02b871b95c5247d83580acfe25f6ec299fdb9b1 | [
"MIT"
] | null | null | null | stock_activities/migrations/0008_auto_20210524_0215.py | ericpesto/Archeon-Django-REST-API | e02b871b95c5247d83580acfe25f6ec299fdb9b1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-24 02:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stock_activities', '0007_auto_20210522_1833'),
]
operations = [
migrations.AlterField(
model_name='stockactivity',
n... | 25.416667 | 73 | 0.608197 | 64 | 610 | 5.640625 | 0.671875 | 0.110803 | 0.138504 | 0.160665 | 0.254848 | 0.254848 | 0 | 0 | 0 | 0 | 0 | 0.075171 | 0.280328 | 610 | 23 | 74 | 26.521739 | 0.747153 | 0.07377 | 0 | 0.352941 | 1 | 0 | 0.161634 | 0.040853 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
2df5518865fd89345cea0e35c89a91387c0ff281 | 357 | py | Python | src/jbdl/rbdl/math/cross_force_space.py | yz-mao/jbdl | a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb | [
"MIT"
] | 21 | 2021-08-29T06:59:18.000Z | 2022-01-13T22:53:02.000Z | src/jbdl/rbdl/math/cross_force_space.py | yz-mao/jbdl | a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb | [
"MIT"
] | 2 | 2021-08-31T08:34:09.000Z | 2021-09-06T07:40:51.000Z | src/jbdl/rbdl/math/cross_force_space.py | yz-mao/jbdl | a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb | [
"MIT"
] | 4 | 2021-08-29T06:59:22.000Z | 2021-10-04T05:59:41.000Z | import jax.numpy as jnp
from jax.api import jit
from jbdl.rbdl.math import cross_motion_space
@jit
def cross_force_space(v):
vcross = -jnp.transpose(cross_motion_space(v))
return vcross
if __name__ == "__main__":
from jax import make_jaxpr
a = jnp.ones((6, 1))
print(make_jaxpr(cross_force_space)... | 21 | 50 | 0.722689 | 58 | 357 | 4.103448 | 0.517241 | 0.12605 | 0.189076 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.173669 | 357 | 16 | 51 | 22.3125 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.022409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2df97e060f8e316c4080d64e9a478c6ed11edf50 | 2,423 | py | Python | opbasm/color.py | 1Maxnet1/opbasm | bef9e446f089a6bc6cfc21f6c8e799010572daf5 | [
"MIT"
] | 50 | 2015-06-02T11:32:11.000Z | 2022-03-28T19:12:00.000Z | opbasm/color.py | 1Maxnet1/opbasm | bef9e446f089a6bc6cfc21f6c8e799010572daf5 | [
"MIT"
] | 22 | 2015-06-15T15:21:45.000Z | 2022-01-19T09:18:00.000Z | opbasm/color.py | 1Maxnet1/opbasm | bef9e446f089a6bc6cfc21f6c8e799010572daf5 | [
"MIT"
] | 13 | 2015-06-02T11:51:03.000Z | 2022-01-19T10:16:24.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''Color formatting
'''
# Copyright © 2014 Kevin Thibedeau
# (kevin 'period' thibedeau 'at' gmail 'punto' com)
#
# 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... | 29.91358 | 86 | 0.680974 | 343 | 2,423 | 4.728863 | 0.460641 | 0.038841 | 0.019729 | 0.039457 | 0.049322 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004188 | 0.211721 | 2,423 | 80 | 87 | 30.2875 | 0.844503 | 0.478333 | 0 | 0 | 0 | 0 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.257143 | 0.628571 | 0.171429 | 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 |
2dfce4eeb0b1fe6364c68900f08cc196107998fc | 1,487 | py | Python | osf/models/rdm_announcement.py | yuanyuan-deng/RDM-osf.io | e1c54e97c898d26406d71129db7e4baf82802224 | [
"Apache-2.0"
] | null | null | null | osf/models/rdm_announcement.py | yuanyuan-deng/RDM-osf.io | e1c54e97c898d26406d71129db7e4baf82802224 | [
"Apache-2.0"
] | 8 | 2018-11-09T05:57:09.000Z | 2019-07-25T10:27:55.000Z | osf/models/rdm_announcement.py | yuanyuan-deng/RDM-osf.io | e1c54e97c898d26406d71129db7e4baf82802224 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from osf.models.base import BaseModel
from osf.utils.fields import NonNaiveDateTimeField, EncryptedTextField
class RdmAnnouncement(BaseModel):
user = models.ForeignKey('OSFUser', null=True)
title = models.CharField(max_length=256, blank=True, null=F... | 47.967742 | 76 | 0.763282 | 175 | 1,487 | 6.308571 | 0.32 | 0.094203 | 0.129529 | 0.280797 | 0.677536 | 0.565217 | 0.522645 | 0.096014 | 0 | 0 | 0 | 0.009382 | 0.139879 | 1,487 | 30 | 77 | 49.566667 | 0.853792 | 0.014122 | 0 | 0.12 | 0 | 0 | 0.014644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
93073cad5cf341a185e1aab28773942026aba472 | 1,523 | py | Python | custom_tasks/other/python/round_predictions/custom.py | geomex/custom-models | 899292552d97c2132306c2e1e372d67ffb9c1a50 | [
"Apache-2.0"
] | 10 | 2021-07-18T20:13:21.000Z | 2022-03-16T08:20:15.000Z | custom_tasks/other/python/round_predictions/custom.py | geomex/custom-models | 899292552d97c2132306c2e1e372d67ffb9c1a50 | [
"Apache-2.0"
] | 6 | 2021-08-19T22:25:43.000Z | 2022-02-04T15:48:36.000Z | custom_tasks/other/python/round_predictions/custom.py | geomex/custom-models | 899292552d97c2132306c2e1e372d67ffb9c1a50 | [
"Apache-2.0"
] | 31 | 2021-06-30T18:14:55.000Z | 2022-03-26T05:30:55.000Z | from typing import List, Optional
import pickle
import pandas as pd
import numpy as np
from pathlib import Path
from sklearn.pipeline import Pipeline
def fit(
X: pd.DataFrame,
y: pd.Series,
output_dir: str,
class_order: Optional[List[str]] = None,
row_weights: Optional[np.ndarray] = None,
**kw... | 24.174603 | 90 | 0.640184 | 213 | 1,523 | 4.502347 | 0.413146 | 0.056309 | 0.040667 | 0.022941 | 0.025026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003433 | 0.235062 | 1,523 | 62 | 91 | 24.564516 | 0.819742 | 0.147078 | 0 | 0.054054 | 0 | 0 | 0.036508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.162162 | 0.135135 | 0.594595 | 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 |
930e45f4d02f8de9aa6c0f3216f36d0e1467b66d | 101 | py | Python | nideep/eval/eval_utils.py | kashefy/caffe_sandbox | 31afc409df14fece0ac21707185e586dd2d625a9 | [
"BSD-2-Clause"
] | 15 | 2015-08-26T21:15:15.000Z | 2016-03-10T06:25:08.000Z | nideep/eval/eval_utils.py | nigroup/nideep | 31afc409df14fece0ac21707185e586dd2d625a9 | [
"BSD-2-Clause"
] | 35 | 2016-05-24T13:57:01.000Z | 2018-03-07T18:43:07.000Z | nideep/eval/eval_utils.py | nigroup/nideep | 31afc409df14fece0ac21707185e586dd2d625a9 | [
"BSD-2-Clause"
] | 11 | 2016-05-24T13:42:55.000Z | 2019-10-04T16:20:54.000Z | '''
Created on Mar 1, 2016
@author: kashefy
'''
class Phase:
TRAIN = 'Train'
TEST = 'Test'
| 10.1 | 22 | 0.574257 | 13 | 101 | 4.461538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.267327 | 101 | 9 | 23 | 11.222222 | 0.716216 | 0.39604 | 0 | 0 | 0 | 0 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93126857683317270dcf8dc5f7d2a82755e17de6 | 2,144 | py | Python | App/migrations/0007_categories_test_data.py | avivz450/A-GBusinessesPromotions | 0dd6e678af5a95dd0246fd1d448c099d86774263 | [
"MIT"
] | 1 | 2021-08-18T22:23:57.000Z | 2021-08-18T22:23:57.000Z | App/migrations/0007_categories_test_data.py | avivz450/A-GBusinessesPromotions | 0dd6e678af5a95dd0246fd1d448c099d86774263 | [
"MIT"
] | 72 | 2021-05-22T18:04:54.000Z | 2021-09-18T16:32:15.000Z | App/migrations/0007_categories_test_data.py | avivz450/A-GBusinessesPromotions | 0dd6e678af5a95dd0246fd1d448c099d86774263 | [
"MIT"
] | null | null | null | from django.db import migrations, transaction
class Migration(migrations.Migration):
dependencies = [
("App", "0006_sales_test_data"),
]
def generate_data(apps, schema_editor):
from App.models import Website, Business_Category
categories_test_data = [
(
... | 20.419048 | 69 | 0.254664 | 107 | 2,144 | 4.943925 | 0.476636 | 0.120983 | 0.068053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032432 | 0.654851 | 2,144 | 104 | 70 | 20.615385 | 0.67973 | 0 | 0 | 0.540816 | 1 | 0 | 0.054571 | 0.010261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010204 | false | 0 | 0.020408 | 0 | 0.061224 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
93269f941a904401bd0f2abb5f4c334094fdc6b5 | 173 | py | Python | pokemon/objects/pokemon.py | nanato12/pokemon-stats | 0701a2fc720d41ef9294e674cdf8917b3b996379 | [
"Apache-2.0"
] | null | null | null | pokemon/objects/pokemon.py | nanato12/pokemon-stats | 0701a2fc720d41ef9294e674cdf8917b3b996379 | [
"Apache-2.0"
] | null | null | null | pokemon/objects/pokemon.py | nanato12/pokemon-stats | 0701a2fc720d41ef9294e674cdf8917b3b996379 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Pokemon:
number: int
name: str
H: int
A: int
B: int
C: int
D: int
S: int
total: int
| 11.533333 | 33 | 0.572254 | 25 | 173 | 3.96 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.364162 | 173 | 14 | 34 | 12.357143 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.916667 | 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 |
933bb32a0d7e5f70b1f951b7b455900ce0857405 | 4,148 | py | Python | upass.py | yoshiumw/upass | e8847661ec4f7401564240ff3dff9c744e693f1b | [
"MIT"
] | null | null | null | upass.py | yoshiumw/upass | e8847661ec4f7401564240ff3dff9c744e693f1b | [
"MIT"
] | null | null | null | upass.py | yoshiumw/upass | e8847661ec4f7401564240ff3dff9c744e693f1b | [
"MIT"
] | null | null | null | """U-Pass Auto Completer (upass.py)
This script allows university students in Vancouver to renew their U-Pass automatically.
This tool requires an additional Python script (init.py) that creates a textfile that this script reads.
This script requires that 'selenium' be installed within the Python environment y... | 41.48 | 143 | 0.735776 | 530 | 4,148 | 5.584906 | 0.320755 | 0.050676 | 0.080405 | 0.089865 | 0.525338 | 0.502027 | 0.502027 | 0.502027 | 0.502027 | 0.502027 | 0 | 0.014178 | 0.166827 | 4,148 | 99 | 144 | 41.89899 | 0.842303 | 0.154291 | 0 | 0.430556 | 0 | 0 | 0.104363 | 0.042453 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0 | false | 0.194444 | 0.111111 | 0 | 0.111111 | 0.027778 | 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 |
9342126eed723bd86d6cab909dad9bf0e956e23c | 4,092 | py | Python | printers.py | falouu/el4000 | 2ec0472ef259519173bc755765abb5a0199e9978 | [
"MIT"
] | null | null | null | printers.py | falouu/el4000 | 2ec0472ef259519173bc755765abb5a0199e9978 | [
"MIT"
] | null | null | null | printers.py | falouu/el4000 | 2ec0472ef259519173bc755765abb5a0199e9978 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Output formatters (for printing info and data files)
#
# Copyright (C) 2014 Peter Wu <peter@lekensteyn.nl>
import math
from defs import info, data
# Python 2.7 compatibility
if b'' == '':
import functools, itertools
iterbytes = functools.partial(itertools.imap, ord)
else:
iterbytes... | 31.96875 | 83 | 0.604106 | 531 | 4,092 | 4.508475 | 0.276836 | 0.046784 | 0.055138 | 0.0401 | 0.352966 | 0.339599 | 0.270677 | 0.270677 | 0.249791 | 0.187135 | 0 | 0.013118 | 0.27346 | 4,092 | 127 | 84 | 32.220472 | 0.792129 | 0.193793 | 0 | 0.430233 | 0 | 0.011628 | 0.047751 | 0.011091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0.069767 | 0.034884 | 0.011628 | 0.348837 | 0.302326 | 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 |
93443bea2d8f28d75d196bc6e1f9586cfbcf32af | 1,295 | py | Python | mayan/apps/authentication/urls.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 2,743 | 2017-12-18T07:12:30.000Z | 2022-03-27T17:21:25.000Z | mayan/apps/authentication/urls.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 15 | 2017-12-18T14:58:07.000Z | 2021-03-01T20:05:05.000Z | mayan/apps/authentication/urls.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 257 | 2017-12-18T03:12:58.000Z | 2022-03-25T08:59:10.000Z | from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import url
from django.contrib.auth.views import logout
from .views import (
login_view, password_change_done, password_change_view,
password_reset_complete_view, password_reset_confirm_view,
password_reset_done... | 29.431818 | 112 | 0.669498 | 167 | 1,295 | 4.844311 | 0.227545 | 0.257108 | 0.059333 | 0.098888 | 0.200247 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.194595 | 1,295 | 43 | 113 | 30.116279 | 0.762224 | 0 | 0 | 0.358974 | 0 | 0.025641 | 0.301931 | 0.19305 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.358974 | 0.128205 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9364a51bd8ed01cbafc6bda7f669e3128903d538 | 1,631 | py | Python | latestos/client/base.py | ProfessorManhattan/latestos | 1ca0636aaa1a5f94ae2fd25a60fffbf4d3aff752 | [
"MIT"
] | null | null | null | latestos/client/base.py | ProfessorManhattan/latestos | 1ca0636aaa1a5f94ae2fd25a60fffbf4d3aff752 | [
"MIT"
] | null | null | null | latestos/client/base.py | ProfessorManhattan/latestos | 1ca0636aaa1a5f94ae2fd25a60fffbf4d3aff752 | [
"MIT"
] | null | null | null | from abc import ABC
from typing import Any, Dict, List, Tuple
class BaseClient(ABC):
"""Defines the interface used to make requests through the web"""
def get(self, url: str, *args, **kwargs) -> Tuple[Any, str]:
"""
Makes a GET request to the given URL.
Args:
url (str): u... | 25.484375 | 80 | 0.53832 | 188 | 1,631 | 4.648936 | 0.329787 | 0.04119 | 0.154462 | 0.048055 | 0.377574 | 0.306636 | 0.249428 | 0.249428 | 0.249428 | 0.249428 | 0 | 0 | 0.351931 | 1,631 | 63 | 81 | 25.888889 | 0.826869 | 0.433476 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9364a9f12012275af5db5c9088ca38f8457d6da0 | 2,471 | py | Python | vision/utils/model_book.py | minsu1206/ssdlite_revision | ed7ab8d1aa87fd75c299f5994475a564b50c0d3d | [
"MIT"
] | null | null | null | vision/utils/model_book.py | minsu1206/ssdlite_revision | ed7ab8d1aa87fd75c299f5994475a564b50c0d3d | [
"MIT"
] | null | null | null | vision/utils/model_book.py | minsu1206/ssdlite_revision | ed7ab8d1aa87fd75c299f5994475a564b50c0d3d | [
"MIT"
] | null | null | null | from collections import OrderedDict
import torch.nn as nn
class ModelBook:
"""Maintain the mapping between modules and their paths.
Example:
book = ModelBook(model_ft)
for p, m in book.conv2d_modules():
print('path:', p, 'num of filters:', m.out_channels)
as... | 30.134146 | 90 | 0.585593 | 318 | 2,471 | 4.31761 | 0.235849 | 0.072105 | 0.029133 | 0.06118 | 0.333576 | 0.24909 | 0.17043 | 0.13984 | 0.088857 | 0.088857 | 0 | 0.007186 | 0.32416 | 2,471 | 81 | 91 | 30.506173 | 0.81497 | 0.149332 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.240741 | false | 0 | 0.037037 | 0.111111 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
937bd8ca02e74c48d36e5966c07d43bb07f2f036 | 3,805 | py | Python | lib/gcn/sparse/torch_vertex.py | ChenFengYe/relightable-nr | 239a97406f4df01cf5786dcdde58e464395a682d | [
"MIT"
] | 105 | 2020-06-15T08:51:32.000Z | 2022-03-24T08:27:40.000Z | lib/gcn/sparse/torch_vertex.py | ChenFengYe/relightable-nr | 239a97406f4df01cf5786dcdde58e464395a682d | [
"MIT"
] | 8 | 2020-06-15T08:53:04.000Z | 2021-04-06T15:20:37.000Z | gcn_lib/sparse/torch_vertex.py | LansburyCH/relightable-nr | d5953029eeb41b40f53995000c6b010dcf5d5120 | [
"MIT"
] | 22 | 2020-06-17T03:17:18.000Z | 2022-03-26T18:01:28.000Z | import torch
from torch import nn
import torch_geometric as tg
from .torch_nn import MLP
from .torch_edge import DilatedKnnGraph
class MRConv(nn.Module):
"""
Max-Relative Graph Convolution (Paper: https://arxiv.org/abs/1904.03751)
"""
def __init__(self, in_channels, out_channels, act_type='relu', norm... | 38.434343 | 140 | 0.646518 | 518 | 3,805 | 4.486486 | 0.179537 | 0.039157 | 0.039157 | 0.063253 | 0.608434 | 0.592083 | 0.521084 | 0.446644 | 0.446644 | 0.384682 | 0 | 0.014493 | 0.220237 | 3,805 | 98 | 141 | 38.826531 | 0.76879 | 0.113535 | 0 | 0.236364 | 0 | 0 | 0.02144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.090909 | 0.054545 | 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 |
fa763e0593e535916f24919e83f2858a5f58d7e1 | 3,171 | py | Python | tests/unit2/test_view_old.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | 1 | 2020-01-18T04:48:38.000Z | 2020-01-18T04:48:38.000Z | tests/unit2/test_view_old.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | 1 | 2019-08-11T18:47:27.000Z | 2019-08-12T03:02:11.000Z | tests/unit2/test_view_old.py | LiorAvrahami/arcade | fce254a9eb89629de1f99d57a63759a2953184e9 | [
"MIT"
] | null | null | null | # import pytest
# import arcade
#
#
# class FakeWindow(arcade.Window):
# """A test double Window that is never displayed"""
#
# def __init__(self):
# super().__init__()
# # Track the behavior of Views:
# self.draw_calls = [] # records sequence of calls to on_draw()
# self.update... | 29.915094 | 88 | 0.624093 | 386 | 3,171 | 4.810881 | 0.287565 | 0.051696 | 0.045234 | 0.040388 | 0.294561 | 0.245019 | 0.183091 | 0.149704 | 0.084006 | 0 | 0 | 0.008268 | 0.237149 | 3,171 | 105 | 89 | 30.2 | 0.759405 | 0.924945 | 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 |
fa7b49d4ed0d86719b5164c46d5e106a7bb63b9f | 701 | py | Python | geom/SinCosTan.py | JesterOrNot/python_calc | 3e939046930eca2204f8354d9f221f6127d2db91 | [
"MIT"
] | 1 | 2019-07-22T19:42:15.000Z | 2019-07-22T19:42:15.000Z | geom/SinCosTan.py | JesterOrNot/python_calc | 3e939046930eca2204f8354d9f221f6127d2db91 | [
"MIT"
] | 1 | 2019-07-23T17:49:48.000Z | 2019-07-23T17:52:14.000Z | geom/SinCosTan.py | JesterOrNot/python_calc | 3e939046930eca2204f8354d9f221f6127d2db91 | [
"MIT"
] | 1 | 2019-07-23T17:45:40.000Z | 2019-07-23T17:45:40.000Z | #! /usr/bin/python3.7
# soh cah toa
def sin():
o = float(input('What is the oppisite?: '))
h = float(input("What is the hypotnuse?: "))
s = o / h
print("sin = {}".format(s))
def cos():
a = float(input('What is the ajacent?: '))
h = float(input("What is the hypotnuse?: "))
c = a / h
print('cos = {}'.format(c))... | 23.366667 | 71 | 0.584879 | 112 | 701 | 3.660714 | 0.401786 | 0.153659 | 0.204878 | 0.234146 | 0.409756 | 0.409756 | 0.409756 | 0 | 0 | 0 | 0 | 0.003578 | 0.202568 | 701 | 30 | 72 | 23.366667 | 0.729875 | 0.045649 | 0 | 0.076923 | 0 | 0 | 0.375749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.153846 | 0.153846 | 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 |
fa7e05c3a1ae8006eb7088431795f720953c2e82 | 1,609 | py | Python | 04_Data Manipulation with pandas/04_Creating and Visualizing DataFrames/04_Price of conventional vs. organic avocados.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | 04_Data Manipulation with pandas/04_Creating and Visualizing DataFrames/04_Price of conventional vs. organic avocados.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | null | null | null | 04_Data Manipulation with pandas/04_Creating and Visualizing DataFrames/04_Price of conventional vs. organic avocados.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 3 | 2021-02-08T00:31:16.000Z | 2022-03-17T13:52:32.000Z | '''
04 - Price of conventional vs. organic avocados:
Creating multiple plots for different subsets of data allows you to compare
groups. In this exercise, you'll create multiple histograms to compare the prices
of conventional and organic avocados.
matplotlib.pyplot has been imported as plt and pandas has been import... | 36.568182 | 94 | 0.662523 | 239 | 1,609 | 4.439331 | 0.401674 | 0.075401 | 0.080113 | 0.032045 | 0.111216 | 0.111216 | 0.111216 | 0.047125 | 0 | 0 | 0 | 0.097191 | 0.181479 | 1,609 | 43 | 95 | 37.418605 | 0.708428 | 0.83468 | 0 | 0 | 0 | 0 | 0.251969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa8030134b2a278ad1492e594e32d2c14d287183 | 2,428 | py | Python | pycbc/handlers/check.py | mchestr/pycbc | c215c1f177fe383ec6e797437fa2d5f4727eb9f3 | [
"Unlicense"
] | null | null | null | pycbc/handlers/check.py | mchestr/pycbc | c215c1f177fe383ec6e797437fa2d5f4727eb9f3 | [
"Unlicense"
] | null | null | null | pycbc/handlers/check.py | mchestr/pycbc | c215c1f177fe383ec6e797437fa2d5f4727eb9f3 | [
"Unlicense"
] | null | null | null | import logging
import logging.config
from pycbc import client, token
from pycbc.config import load
log = logging.getLogger(__name__)
_AVAILABLE = b'iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAOhJREFUKJHNkMFNw0AURN//u6QJo0Qy9BFbpA0HEeoKSJgyjPYAbRAUQ5og6/0ckCM7yiUXx... | 50.583333 | 730 | 0.812191 | 177 | 2,428 | 10.937853 | 0.536723 | 0.028409 | 0.018595 | 0.02376 | 0.021694 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080169 | 0.121499 | 2,428 | 47 | 731 | 51.659574 | 0.827473 | 0 | 0 | 0.057143 | 0 | 0.028571 | 0.521417 | 0.481466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.114286 | 0 | 0.342857 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa879bee35452a5e27262c621b3196b591d11b24 | 5,387 | py | Python | ipymd/formats/python.py | nathanfdunn/ipymd | cca5f98e34a024396e21ab7a3f322bbe2e3f37d1 | [
"BSD-3-Clause"
] | 521 | 2015-01-01T09:22:05.000Z | 2022-02-06T23:54:10.000Z | ipymd/formats/python.py | nathanfdunn/ipymd | cca5f98e34a024396e21ab7a3f322bbe2e3f37d1 | [
"BSD-3-Clause"
] | 79 | 2015-01-04T21:17:29.000Z | 2018-08-28T16:39:21.000Z | ipymd/formats/python.py | nathanfdunn/ipymd | cca5f98e34a024396e21ab7a3f322bbe2e3f37d1 | [
"BSD-3-Clause"
] | 56 | 2015-03-01T08:48:26.000Z | 2022-01-29T03:11:13.000Z | # -*- coding: utf-8 -*-
"""Python reader and writer."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import re
import ast
from collections import OrderedDict
from ..lib.base_lexer import Base... | 27.484694 | 79 | 0.575645 | 613 | 5,387 | 4.882545 | 0.251223 | 0.028065 | 0.013365 | 0.015035 | 0.082526 | 0.082526 | 0.0284 | 0.0284 | 0.020047 | 0 | 0 | 0.003455 | 0.247819 | 5,387 | 195 | 80 | 27.625641 | 0.735193 | 0.221645 | 0 | 0.101695 | 0 | 0 | 0.048905 | 0.005596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211864 | false | 0 | 0.067797 | 0.033898 | 0.508475 | 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 |
fa9af22fa7934795222ad549da06fc9ad593a98d | 2,080 | py | Python | partnerweb_parser/date_func.py | ChanTerelLy/partnerweb_parser | 4bebe39318c43e069e322c04e2d402db317ab7db | [
"MIT"
] | null | null | null | partnerweb_parser/date_func.py | ChanTerelLy/partnerweb_parser | 4bebe39318c43e069e322c04e2d402db317ab7db | [
"MIT"
] | null | null | null | partnerweb_parser/date_func.py | ChanTerelLy/partnerweb_parser | 4bebe39318c43e069e322c04e2d402db317ab7db | [
"MIT"
] | null | null | null | import calendar
import datetime
from datetime import datetime as dt
import pytz
moscow = pytz.timezone('Europe/Moscow')
def current_date():
now_date = datetime.date.today() # Текущая дата (без времени)
cur_year = now_date.year # Год текущий
cur_month = now_date.month # Месяц текущий
cur_day = now_da... | 32.5 | 105 | 0.725 | 327 | 2,080 | 4.345566 | 0.201835 | 0.064039 | 0.084448 | 0.053483 | 0.544687 | 0.501759 | 0.420127 | 0.339901 | 0.300493 | 0.261084 | 0 | 0.0159 | 0.153365 | 2,080 | 64 | 106 | 32.5 | 0.791028 | 0.04375 | 0 | 0.234043 | 0 | 0 | 0.052446 | 0.011599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0 | 0.085106 | 0.106383 | 0.595745 | 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 |
fa9cda2a000dde9bc1bd4154c7f3f12394c65f7c | 208 | py | Python | minimum.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | null | null | null | minimum.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | null | null | null | minimum.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | null | null | null | a=int(input("Enter the first number:"))
b=int(input("Enter the second number:"))
c=int(input("Enter the third number:"))
if a<b in c>a:
min=a
elif a<b in c>b:
min=b
else:
min=c
print(min)
| 13.866667 | 40 | 0.610577 | 42 | 208 | 3.02381 | 0.404762 | 0.188976 | 0.307087 | 0.377953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216346 | 208 | 14 | 41 | 14.857143 | 0.779141 | 0 | 0 | 0 | 0 | 0 | 0.343137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
fab60ff746e5ffe14bbca1134eac1bab1a29f37f | 6,933 | py | Python | src/m1/model.py | pvzteam/pvz_recsys2019 | 3fd14d3b82033474d2e172402abd0ebc5e7b0afc | [
"Apache-2.0"
] | 1 | 2019-07-24T08:41:53.000Z | 2019-07-24T08:41:53.000Z | src/m1/model.py | pvzteam/pvz_recsys2019 | 3fd14d3b82033474d2e172402abd0ebc5e7b0afc | [
"Apache-2.0"
] | null | null | null | src/m1/model.py | pvzteam/pvz_recsys2019 | 3fd14d3b82033474d2e172402abd0ebc5e7b0afc | [
"Apache-2.0"
] | 1 | 2020-12-02T09:49:12.000Z | 2020-12-02T09:49:12.000Z | # -*- coding: utf-8 -*-
import gc
import numpy as np
import pandas as pd
import lightgbm as lgb
from data import *
from feat import *
from resource import *
from utils import (load_dataframe, convert_dtype, CrossValidation, merge_all)
def rank_feat_inside_session(df, cols):
for col in cols:
col_n = '... | 38.516667 | 114 | 0.630607 | 905 | 6,933 | 4.474033 | 0.166851 | 0.028155 | 0.044455 | 0.03754 | 0.792047 | 0.763645 | 0.696962 | 0.659669 | 0.659669 | 0.649296 | 0 | 0.059973 | 0.240012 | 6,933 | 179 | 115 | 38.731844 | 0.708484 | 0.003029 | 0 | 0.580153 | 0 | 0 | 0.175832 | 0.074819 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061069 | false | 0 | 0.083969 | 0 | 0.183206 | 0.022901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fabcae7c7fe83da20e2a985001d5f1af459a81fb | 1,088 | py | Python | civil/apps/definitions/admin.py | christopinka/django-civil | d134624da9d36c4ba0bea2df8a21698df196bdf6 | [
"Apache-2.0"
] | 3 | 2020-06-15T21:01:06.000Z | 2022-02-17T17:41:57.000Z | civil/apps/definitions/admin.py | christopinka/django-civil | d134624da9d36c4ba0bea2df8a21698df196bdf6 | [
"Apache-2.0"
] | null | null | null | civil/apps/definitions/admin.py | christopinka/django-civil | d134624da9d36c4ba0bea2df8a21698df196bdf6 | [
"Apache-2.0"
] | 1 | 2021-11-06T18:33:29.000Z | 2021-11-06T18:33:29.000Z | # -*- coding: utf-8 -*-
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from civil.library.admin import BaseAdmin
from .models import *
#==============================================================================
class NameOnlyAdmin(BaseAdmin):
list_display = ('id', '... | 36.266667 | 79 | 0.604779 | 96 | 1,088 | 6.78125 | 0.427083 | 0.138249 | 0.261137 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001 | 0.080882 | 1,088 | 29 | 80 | 37.517241 | 0.65 | 0.234375 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.473684 | 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 |
fac94055cd160a82d0e5dc330f3df39c005a9bca | 225 | py | Python | tworaven_apps/image_utils/urls.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 20 | 2017-12-11T07:26:06.000Z | 2021-11-22T16:16:20.000Z | tworaven_apps/image_utils/urls.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 849 | 2017-10-20T18:21:18.000Z | 2022-02-18T02:45:44.000Z | tworaven_apps/image_utils/urls.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 1 | 2020-05-18T06:02:13.000Z | 2020-05-18T06:02:13.000Z | from django.conf.urls import url
from tworaven_apps.image_utils import views
urlpatterns = (
# Create new log entry
#
url(r'^markup-image$',
views.view_markup_image,
name='view_markup_image'),
)
| 18.75 | 43 | 0.675556 | 30 | 225 | 4.866667 | 0.666667 | 0.226027 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226667 | 225 | 11 | 44 | 20.454545 | 0.83908 | 0.088889 | 0 | 0 | 0 | 0 | 0.153465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
faca17f369309dc144868a867918cfe16a0f2f8b | 11,139 | py | Python | Tools/unicode/makeunicodedata.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 5 | 2022-03-26T21:53:36.000Z | 2022-03-30T21:47:20.000Z | Tools/unicode/makeunicodedata.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 6 | 2020-11-18T15:48:14.000Z | 2021-05-03T21:20:50.000Z | Tools/unicode/makeunicodedata.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 2 | 2015-07-16T08:14:13.000Z | 2022-03-27T01:55:17.000Z | #
# (re)generate unicode property and type databases
#
# this script converts a unicode 3.0 database file to
# Modules/unicodedata_db.h and Objects/unicodetype_db.h
#
# history:
# 2000-09-24 fl created (based on bits and pieces from unidb)
# 2000-09-25 fl merged tim's splitbin fixes, separate decomposition table
# ... | 30.434426 | 77 | 0.529132 | 1,378 | 11,139 | 4.218433 | 0.256168 | 0.018579 | 0.003097 | 0.002752 | 0.249613 | 0.24342 | 0.217616 | 0.212455 | 0.172544 | 0.146568 | 0 | 0.03157 | 0.343119 | 11,139 | 365 | 78 | 30.517808 | 0.762881 | 0.166083 | 0 | 0.28125 | 1 | 0 | 0.126772 | 0.026276 | 0 | 0 | 0.005762 | 0.00274 | 0.003906 | 0 | null | null | 0 | 0.011719 | null | null | 0.144531 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
facf5ba9d9c54f6351e3a588f530398889e61c19 | 1,723 | py | Python | ontask/oauth/views.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 33 | 2017-12-02T04:09:24.000Z | 2021-11-07T08:41:57.000Z | ontask/oauth/views.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 189 | 2017-11-16T04:06:29.000Z | 2022-03-11T23:35:59.000Z | ontask/oauth/views.py | pinheiroo27/ontask_b | 23fee8caf4e1c5694a710a77f3004ca5d9effeac | [
"MIT"
] | 30 | 2017-11-30T03:35:44.000Z | 2022-01-31T03:08:08.000Z | # -*- coding: utf-8 -*-
"""Call back view for OAuth2 authentication."""
from django import http
from django.contrib import messages
from django.contrib.auth.decorators import user_passes_test
from django.core.handlers.wsgi import WSGIRequest
from django.shortcuts import redirect, reverse
from django.utils.translation ... | 33.784314 | 78 | 0.714452 | 219 | 1,723 | 5.552511 | 0.456621 | 0.049342 | 0.049342 | 0.061678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003658 | 0.206616 | 1,723 | 50 | 79 | 34.46 | 0.885881 | 0.27278 | 0 | 0.241379 | 0 | 0 | 0.09688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.310345 | 0 | 0.482759 | 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 |
facf71d5d2af872c34d173c4d9e46ca81c6811b0 | 933 | py | Python | _utils.py | catalinbotean/LicentaRosustnet | c59c1b539f3ff602827a1d2613c4684f5cf91d65 | [
"BSD-3-Clause"
] | null | null | null | _utils.py | catalinbotean/LicentaRosustnet | c59c1b539f3ff602827a1d2613c4684f5cf91d65 | [
"BSD-3-Clause"
] | null | null | null | _utils.py | catalinbotean/LicentaRosustnet | c59c1b539f3ff602827a1d2613c4684f5cf91d65 | [
"BSD-3-Clause"
] | null | null | null | import enum
from typing import Sequence, TypeVar, Type
T = TypeVar("T", bound=enum.Enum)
class StrEnumMeta(enum.EnumMeta):
auto = enum.auto
def from_str(self: Type[T], member: str) -> T: # type: ignore[misc]
try:
return self[member]
except KeyError:
# TODO: use `add_... | 29.15625 | 115 | 0.60343 | 125 | 933 | 4.408 | 0.544 | 0.065336 | 0.036298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.249732 | 933 | 32 | 116 | 29.15625 | 0.78 | 0.155413 | 0 | 0 | 0 | 0 | 0.174522 | 0.033121 | 0.05 | 0 | 0 | 0.03125 | 0 | 1 | 0.1 | false | 0.05 | 0.1 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fadc9bf4539325b36b93f4d31e6ebd90427b62db | 7,743 | py | Python | src/bo4e/bo/marktlokation.py | bo4e/BO4E-python | 28b12f853c8a496d14b133759b7aa2d6661f79a0 | [
"MIT"
] | 1 | 2022-03-02T12:49:44.000Z | 2022-03-02T12:49:44.000Z | src/bo4e/bo/marktlokation.py | bo4e/BO4E-python | 28b12f853c8a496d14b133759b7aa2d6661f79a0 | [
"MIT"
] | 21 | 2022-02-04T07:38:46.000Z | 2022-03-28T14:01:53.000Z | src/bo4e/bo/marktlokation.py | bo4e/BO4E-python | 28b12f853c8a496d14b133759b7aa2d6661f79a0 | [
"MIT"
] | null | null | null | """
Contains Marktlokation class
and corresponding marshmallow schema for de-/serialization
"""
import attr
from marshmallow import fields
from marshmallow_enum import EnumField # type:ignore[import]
from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, GeschaeftsobjektSchema
from bo4e.bo.geschaeftspartner import G... | 47.213415 | 180 | 0.767661 | 883 | 7,743 | 6.679502 | 0.374858 | 0.048491 | 0.030858 | 0.03747 | 0.092065 | 0.055612 | 0.045439 | 0.035605 | 0.035605 | 0.017633 | 0 | 0.005585 | 0.167506 | 7,743 | 163 | 181 | 47.503067 | 0.909401 | 0.244866 | 0 | 0 | 0 | 0 | 0.022166 | 0.005793 | 0 | 0 | 0 | 0.01227 | 0 | 1 | 0.013699 | false | 0 | 0.246575 | 0 | 0.808219 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
faded8c9f8cb40cb8a3b311954261cad01666c3c | 1,446 | py | Python | db/csvs_test_examples/project/project_new_potential/doc.py | souissim/gridpath | 4eeca2be24b485edc56026e38cfda83f4a6b27ea | [
"Apache-2.0"
] | 44 | 2020-10-27T19:05:44.000Z | 2022-03-22T17:17:37.000Z | db/csvs_test_examples/project/project_new_potential/doc.py | souissim/gridpath | 4eeca2be24b485edc56026e38cfda83f4a6b27ea | [
"Apache-2.0"
] | 67 | 2020-10-08T22:36:53.000Z | 2022-03-22T22:58:33.000Z | db/csvs_test_examples/project/project_new_potential/doc.py | souissim/gridpath | 4eeca2be24b485edc56026e38cfda83f4a6b27ea | [
"Apache-2.0"
] | 21 | 2020-10-08T23:23:48.000Z | 2022-03-28T01:21:21.000Z | # Copyright 2016-2020 Blue Marble Analytics LLC. All rights reserved.
"""
**Relevant tables:**
+--------------------------------+----------------------------------------------+
|:code:`scenarios` table column |:code:`project_new_potential_scenario_id` |
+--------------------------------+------------------------... | 51.642857 | 81 | 0.520055 | 144 | 1,446 | 5.0625 | 0.555556 | 0.05487 | 0.104252 | 0.05487 | 0.079561 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006415 | 0.137621 | 1,446 | 27 | 82 | 53.555556 | 0.578188 | 0.99101 | 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 |
fadf886a8953595d93a3380cd1443e99e570dbb1 | 1,156 | py | Python | src/credentials.py | LRY579/NOJ | 4b63a9dd98290058d8f7af56e91a58f1a25c1292 | [
"BSD-2-Clause"
] | null | null | null | src/credentials.py | LRY579/NOJ | 4b63a9dd98290058d8f7af56e91a58f1a25c1292 | [
"BSD-2-Clause"
] | null | null | null | src/credentials.py | LRY579/NOJ | 4b63a9dd98290058d8f7af56e91a58f1a25c1292 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from keystoneauth1 import loading
from keystoneauth1 import session
import novaclient.client as nova_client
import glanceclient.client as glance_client
import neutronclient.v2_0.client as neutron_client
import os
# I think it's not a good idea to let the user change the ... | 31.243243 | 91 | 0.715398 | 161 | 1,156 | 4.956522 | 0.434783 | 0.030075 | 0.055138 | 0.075188 | 0.175439 | 0.175439 | 0.175439 | 0 | 0 | 0 | 0 | 0.007503 | 0.192907 | 1,156 | 36 | 92 | 32.111111 | 0.847803 | 0.199827 | 0 | 0.2 | 0 | 0 | 0.059783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.08 | 0.24 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
faf0f965f51beb439bcbbdf93d32f142afb3a16b | 446 | py | Python | Extension.py | Shridat/Assignment1 | 6f52f6477260ff19030fce0d7d56a2f464e00aef | [
"MIT"
] | null | null | null | Extension.py | Shridat/Assignment1 | 6f52f6477260ff19030fce0d7d56a2f464e00aef | [
"MIT"
] | null | null | null | Extension.py | Shridat/Assignment1 | 6f52f6477260ff19030fce0d7d56a2f464e00aef | [
"MIT"
] | 2 | 2021-10-30T16:04:58.000Z | 2021-10-30T18:52:40.000Z | file_name=str(input("Input the Filename:"))
if(file_name.split('.')[1]=='c'):
print('The extension of the file is C')
if(file_name.split('.')[1]=='cpp'):
print('The extension of the file is C++')
if(file_name.split('.')[1]=='java'):
print('The extension of the file is Java')
if(file_name.split('.')[1]=='py'):
p... | 37.166667 | 46 | 0.64574 | 77 | 446 | 3.662338 | 0.246753 | 0.170213 | 0.177305 | 0.265957 | 0.787234 | 0.617021 | 0.617021 | 0.319149 | 0.319149 | 0.319149 | 0 | 0.012723 | 0.118834 | 446 | 11 | 47 | 40.545455 | 0.704835 | 0 | 0 | 0 | 0 | 0 | 0.450673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 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 | 0 | 1 | 0 | 2 |
faf8e00376f3cd6b9ca1d71894b7dd4affe771aa | 28,077 | py | Python | pysnmp-with-texts/INTELCORPORATION-MULTI-FLEX-SERVER-DRIVE-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/INTELCORPORATION-MULTI-FLEX-SERVER-DRIVE-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/INTELCORPORATION-MULTI-FLEX-SERVER-DRIVE-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 INTELCORPORATION-MULTI-FLEX-SERVER-DRIVE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/INTELCORPORATION-MULTI-FLEX-SERVER-DRIVE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:54:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by u... | 155.983333 | 3,322 | 0.785625 | 3,272 | 28,077 | 6.740831 | 0.14945 | 0.056583 | 0.099021 | 0.071681 | 0.474973 | 0.363801 | 0.182989 | 0.163312 | 0.13697 | 0.113937 | 0 | 0.060649 | 0.087403 | 28,077 | 179 | 3,323 | 156.854749 | 0.800141 | 0.013605 | 0 | 0.011696 | 0 | 0.081871 | 0.369898 | 0.104096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011696 | 0.052632 | 0 | 0.052632 | 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 |
4f028c1f594b3043319b005f48b66bbffcdbcaa4 | 2,750 | py | Python | bench_press/run/actions/action.py | s-tian/bench-press | 04240a8c9402c2b8639900567d6bfbee3cf0222e | [
"MIT"
] | 9 | 2020-03-18T05:11:07.000Z | 2020-11-21T03:17:30.000Z | bench_press/run/actions/action.py | s-tian/bench-press | 04240a8c9402c2b8639900567d6bfbee3cf0222e | [
"MIT"
] | 6 | 2020-11-13T17:45:10.000Z | 2022-02-09T23:36:40.000Z | bench_press/run/actions/action.py | s-tian/bench-press | 04240a8c9402c2b8639900567d6bfbee3cf0222e | [
"MIT"
] | 4 | 2020-03-23T07:51:40.000Z | 2020-11-10T03:15:14.000Z | import time
import numpy as np
class Action:
def apply(self, environment):
raise NotImplementedError
class EndAction:
def apply(self, environment):
pass
class DeltaAction(Action):
def __init__(self, delta):
assert len(delta) == 3, 'A delta action must contain three dimensio... | 25 | 122 | 0.651273 | 346 | 2,750 | 5.014451 | 0.289017 | 0.036888 | 0.055331 | 0.106052 | 0.217867 | 0.156772 | 0.03804 | 0.03804 | 0 | 0 | 0 | 0.001464 | 0.254909 | 2,750 | 109 | 123 | 25.229358 | 0.84529 | 0.137091 | 0 | 0.301587 | 0 | 0 | 0.141075 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 1 | 0.349206 | false | 0.015873 | 0.047619 | 0.126984 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4f0711bd2678b5ff53245846eae56f46d25130f6 | 4,382 | py | Python | NER/src/CH/predict_update.py | STHSF/DeepNaturallanguageprocessing | 1fe79a961abf3e55fb3ce2b0266b26f56ade2483 | [
"Apache-2.0"
] | 15 | 2016-09-13T05:41:53.000Z | 2019-12-30T13:01:33.000Z | NER/src/CH/predict_update.py | STHSF/DeepNaturallanguageprocessing | 1fe79a961abf3e55fb3ce2b0266b26f56ade2483 | [
"Apache-2.0"
] | 20 | 2020-01-28T21:42:25.000Z | 2022-02-10T00:44:02.000Z | NER/src/CH/predict_update.py | STHSF/DeepNaturallanguageprocessing | 1fe79a961abf3e55fb3ce2b0266b26f56ade2483 | [
"Apache-2.0"
] | 10 | 2016-09-28T02:56:11.000Z | 2022-03-12T16:41:20.000Z | # coding=utf-8
"""
Training model
"""
import pickle
import time
import numpy as np
import tensorflow as tf
from sklearn.model_selection import train_test_split
import config
from batch_generate import BatchGenerator
from sequence_labelling_ner_crf import SequenceLabelingModel
# 数据导入
# data_path = "/Users/li/worksho... | 40.201835 | 121 | 0.644455 | 550 | 4,382 | 4.830909 | 0.267273 | 0.04968 | 0.027098 | 0.011291 | 0.147535 | 0.09936 | 0.058713 | 0.0414 | 0 | 0 | 0 | 0.006481 | 0.260612 | 4,382 | 109 | 122 | 40.201835 | 0.81358 | 0.035144 | 0 | 0 | 1 | 0 | 0.090952 | 0.014762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.085366 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f0c55ea8fcd7f4363f7d9e6b60d178dfba69d15 | 689 | py | Python | kiwiii/test/parser/test_helper.py | mojaie/kiwiii-server | 2f550d58bfc9876b9153a2899610e8ca256c294e | [
"MIT"
] | null | null | null | kiwiii/test/parser/test_helper.py | mojaie/kiwiii-server | 2f550d58bfc9876b9153a2899610e8ca256c294e | [
"MIT"
] | 3 | 2017-09-08T02:00:30.000Z | 2017-10-05T08:14:59.000Z | kiwiii/test/parser/test_helper.py | mojaie/kiwiii-server | 2f550d58bfc9876b9153a2899610e8ca256c294e | [
"MIT"
] | null | null | null | #
# (C) 2014-2017 Seiji Matsuoka
# Licensed under the MIT License (MIT)
# http://opensource.org/licenses/MIT
#
import os
import unittest
from kiwiii.parser import helper
TEST_FILE = os.path.join(
os.path.dirname(__file__),
"../../../resources/raw/instruments/SpectraMaxM2.txt"
)
class TestHelper(unittest.Te... | 26.5 | 57 | 0.689405 | 90 | 689 | 5.133333 | 0.533333 | 0.136364 | 0.272727 | 0.324675 | 0.419913 | 0.225108 | 0.155844 | 0 | 0 | 0 | 0 | 0.055363 | 0.161103 | 689 | 25 | 58 | 27.56 | 0.743945 | 0.145138 | 0 | 0 | 0 | 0 | 0.114923 | 0.087479 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 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 |
4f0d2c131ccff9a41d0a446c111066b2fe28c87f | 3,104 | py | Python | src/3rdparty/sheets/plugins/scripting/scripts/logger.py | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | src/3rdparty/sheets/plugins/scripting/scripts/logger.py | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | src/3rdparty/sheets/plugins/scripting/scripts/logger.py | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env kross
import os, time, Kross, KSpread
T = Kross.module("kdetranslation")
class Logger:
def __init__(self, scriptaction):
self.scriptaction = scriptaction
#self.currentpath = self.scriptaction.currentPath()
#self.undostack = KSpread.undoStack()
#self.undostack.conne... | 43.71831 | 190 | 0.610825 | 357 | 3,104 | 5.296919 | 0.369748 | 0.023797 | 0.023797 | 0.030143 | 0.059228 | 0.059228 | 0.030672 | 0.030672 | 0.030672 | 0 | 0 | 0.014388 | 0.238724 | 3,104 | 70 | 191 | 44.342857 | 0.785865 | 0.078608 | 0 | 0 | 0 | 0 | 0.202243 | 0.026639 | 0 | 0 | 0 | 0.014286 | 0 | 0 | null | null | 0 | 0.019231 | null | null | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f0e7657d15b4f76d2bb38999b9c06b6e60156b5 | 1,603 | py | Python | pyannote/audio/train/checkpoint.py | Mymoza/pyannote-audio | 9ac612ee6b854a1a65c3d8992856550304969674 | [
"MIT"
] | 1 | 2020-09-30T23:47:27.000Z | 2020-09-30T23:47:27.000Z | pyannote/audio/train/checkpoint.py | picheny-nyu/pyannote-audio | 9ac612ee6b854a1a65c3d8992856550304969674 | [
"MIT"
] | null | null | null | pyannote/audio/train/checkpoint.py | picheny-nyu/pyannote-audio | 9ac612ee6b854a1a65c3d8992856550304969674 | [
"MIT"
] | 1 | 2020-02-06T16:22:54.000Z | 2020-02-06T16:22:54.000Z | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2016-2019 CNRS
# 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 restriction, including without limita... | 33.395833 | 79 | 0.746725 | 237 | 1,603 | 4.970464 | 0.56962 | 0.074703 | 0.022071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00687 | 0.182782 | 1,603 | 47 | 80 | 34.106383 | 0.892366 | 0.731129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.181818 | 0 | 0.636364 | 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 |
87815daadc010085e501b4708152cf7fe5cd2adb | 15,779 | py | Python | ecommerce_recommender_system_with_word2vec.py | ryosuke1224-haas/ecommerce_recommender_system_with_ward2vec | b097f5c0e7ccaedf3edec5a7eb6781ecf4d9320d | [
"MIT"
] | null | null | null | ecommerce_recommender_system_with_word2vec.py | ryosuke1224-haas/ecommerce_recommender_system_with_ward2vec | b097f5c0e7ccaedf3edec5a7eb6781ecf4d9320d | [
"MIT"
] | null | null | null | ecommerce_recommender_system_with_word2vec.py | ryosuke1224-haas/ecommerce_recommender_system_with_ward2vec | b097f5c0e7ccaedf3edec5a7eb6781ecf4d9320d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Ecommerce Recommender System with Word2Vec.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1HiQz7t-5RXlehJtTWjSvuU2HuVQul2oc
# Ecommerce Recommender System with Word2Vec
"""
# Commented out IPython magic to ensure Pyth... | 32.534021 | 124 | 0.751315 | 2,329 | 15,779 | 4.908974 | 0.169171 | 0.022041 | 0.007347 | 0.008922 | 0.49742 | 0.381265 | 0.318639 | 0.288376 | 0.255838 | 0.247442 | 0 | 0.02224 | 0.110907 | 15,779 | 485 | 125 | 32.534021 | 0.792715 | 0.189999 | 0 | 0.278571 | 1 | 0.007143 | 0.202957 | 0.018362 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042857 | null | null | 0.067857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
878680ee9ff25d5ab51c0b265659b965e99632c2 | 141 | py | Python | 2021-10-Python-SEA-ENGRSL-Workshops/Workshop_1-Hello-Python/code/s06a_s3.py | shawnduong/manimations | 1d36d9d1e7dff90a1a8da1e687ef442f750e29c5 | [
"MIT"
] | null | null | null | 2021-10-Python-SEA-ENGRSL-Workshops/Workshop_1-Hello-Python/code/s06a_s3.py | shawnduong/manimations | 1d36d9d1e7dff90a1a8da1e687ef442f750e29c5 | [
"MIT"
] | null | null | null | 2021-10-Python-SEA-ENGRSL-Workshops/Workshop_1-Hello-Python/code/s06a_s3.py | shawnduong/manimations | 1d36d9d1e7dff90a1a8da1e687ef442f750e29c5 | [
"MIT"
] | null | null | null | if condition1:
...
elif condition2:
...
elif condition3:
...
elif condition4:
...
elif condition5:
...
elif condition6:
...
else:
...
| 9.4 | 16 | 0.609929 | 13 | 141 | 6.615385 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.191489 | 141 | 14 | 17 | 10.071429 | 0.701754 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87930bc3d45493f93ea60f44e2d9fd9c57a9941c | 886 | py | Python | checkout_sdk/sessions/session_secret_credentials.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | checkout_sdk/sessions/session_secret_credentials.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | checkout_sdk/sessions/session_secret_credentials.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from checkout_sdk.authorization_type import AuthorizationType
from checkout_sdk.exception import CheckoutAuthorizationException
from checkout_sdk.platform_type import PlatformType
from checkout_sdk.sdk_authorization import SdkAuthorization
from checkout_sdk.sdk_credentials import... | 42.190476 | 105 | 0.812641 | 86 | 886 | 8.081395 | 0.360465 | 0.086331 | 0.107914 | 0.051799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14447 | 886 | 20 | 106 | 44.3 | 0.916887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
87b089b4b628602fe4f969daeef363813d0674cc | 1,164 | py | Python | setup.py | texodus/perspective-python | 5f51ade90c2933c75cd0710e65fc8c7a5ed95cfa | [
"Apache-2.0"
] | 1 | 2019-01-23T21:01:44.000Z | 2019-01-23T21:01:44.000Z | setup.py | texodus/perspective-python | 5f51ade90c2933c75cd0710e65fc8c7a5ed95cfa | [
"Apache-2.0"
] | null | null | null | setup.py | texodus/perspective-python | 5f51ade90c2933c75cd0710e65fc8c7a5ed95cfa | [
"Apache-2.0"
] | null | null | null | import os
import os.path
from setuptools import setup, find_packages
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='perspective-python',
version='0.0.14',
descriptio... | 30.631579 | 90 | 0.659794 | 143 | 1,164 | 5.265734 | 0.538462 | 0.151394 | 0.199203 | 0.207171 | 0.185923 | 0.11421 | 0.11421 | 0 | 0 | 0 | 0 | 0.02439 | 0.189863 | 1,164 | 37 | 91 | 31.459459 | 0.774125 | 0.037801 | 0 | 0 | 0 | 0.032258 | 0.439177 | 0.022361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.129032 | 0 | 0.129032 | 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 |
87bbb1ab8ef4f323b33305c4741c032eeb535c52 | 732 | py | Python | tests.py | julzhk/minimal_django | f7105fd7a12953259738b4771a48f71460b730cd | [
"MIT"
] | 1 | 2016-07-27T13:39:03.000Z | 2016-07-27T13:39:03.000Z | tests.py | julzhk/minimal_django | f7105fd7a12953259738b4771a48f71460b730cd | [
"MIT"
] | null | null | null | tests.py | julzhk/minimal_django | f7105fd7a12953259738b4771a48f71460b730cd | [
"MIT"
] | 1 | 2016-07-27T13:40:04.000Z | 2016-07-27T13:40:04.000Z | from django.core.urlresolvers import resolve
from django.test import TestCase
from django.http import HttpRequest, QueryDict
from minimal_django import index, urlpatterns
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
found = resolve('/', urlconf = urlpatterns)
se... | 40.666667 | 78 | 0.724044 | 88 | 732 | 5.875 | 0.511364 | 0.116054 | 0.05029 | 0.112186 | 0.170213 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168033 | 732 | 17 | 79 | 43.058824 | 0.848933 | 0.244536 | 0 | 0 | 0 | 0 | 0.010929 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
87decfb6904dc64c9921334b229518f0cbfef6bc | 1,311 | py | Python | Cardio/cardio.py | abrahamwebdev/covid_cardio | 24dc641d7249d702824bc2c60c4a72d14e1b32c3 | [
"MIT"
] | null | null | null | Cardio/cardio.py | abrahamwebdev/covid_cardio | 24dc641d7249d702824bc2c60c4a72d14e1b32c3 | [
"MIT"
] | null | null | null | Cardio/cardio.py | abrahamwebdev/covid_cardio | 24dc641d7249d702824bc2c60c4a72d14e1b32c3 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import tensorflow as tf
import matplotlib.pyplot as plt
import keras
import time
import keras.backend as K
import os
import shutil
import random
from keras.optimizers import Adam
from tensorflow.keras.optimizers.schedules import InverseTimeDecay,ExponentialDecay
from tensorflow.k... | 42.290323 | 126 | 0.870328 | 162 | 1,311 | 6.987654 | 0.438272 | 0.079505 | 0.100707 | 0.082155 | 0.243816 | 0.19258 | 0.116608 | 0 | 0 | 0 | 0 | 0.015025 | 0.086194 | 1,311 | 31 | 127 | 42.290323 | 0.929883 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.964286 | 0 | 0.964286 | 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 |
87ed877d50ca502ff3f758d0feacf2158a3ce4a3 | 842 | py | Python | checkov/kubernetes/checks/resource/k8s/ContainerSecurityContext.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | checkov/kubernetes/checks/resource/k8s/ContainerSecurityContext.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | checkov/kubernetes/checks/resource/k8s/ContainerSecurityContext.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | from typing import Any, Dict
from checkov.common.models.enums import CheckResult
from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck
class ContainerSecurityContext(BaseK8sContainerCheck):
def __init__(self) -> None:
# CIS-1.5 5.7.3
name = "Apply security cont... | 35.083333 | 97 | 0.710214 | 98 | 842 | 5.938776 | 0.632653 | 0.037801 | 0.034364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.204276 | 842 | 23 | 98 | 36.608696 | 0.853731 | 0.124703 | 0 | 0 | 0 | 0 | 0.122783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.214286 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.