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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6efdd858055997f80aafaaffde2d0f802fbcec1 | 216 | py | Python | copyImage.py | MauricioQueiros/dealingWithFiles | 1a99753f928e5dbc4202d93c61ecce3f235f2344 | [
"MIT"
] | null | null | null | copyImage.py | MauricioQueiros/dealingWithFiles | 1a99753f928e5dbc4202d93c61ecce3f235f2344 | [
"MIT"
] | null | null | null | copyImage.py | MauricioQueiros/dealingWithFiles | 1a99753f928e5dbc4202d93c61ecce3f235f2344 | [
"MIT"
] | null | null | null | #Copy a image
def copyImage(imagePathToCopy, imageNameToPaste):
with open(imagePathToCopy, 'rb') as rf:
with open(imageNameToPaste, 'wb') as wf:
for line in rf:
wf.write(line) | 30.857143 | 49 | 0.62037 | 26 | 216 | 5.153846 | 0.692308 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282407 | 216 | 7 | 50 | 30.857143 | 0.864516 | 0.055556 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 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 |
d6f5093886a911828813b1cbd57ad326b9f81128 | 11,780 | py | Python | src/cascade/stats/compartmental.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | src/cascade/stats/compartmental.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | src/cascade/stats/compartmental.py | adolgert/cascade | 2084e07c9ee5e901dd407b817220de882c7246a3 | [
"MIT"
] | null | null | null | r"""
.. _compartmental-modeling-tools:
Compartmental Modeling Tools
----------------------------
These functions build theoretical distributions with which to understand
how Dismod-AT works, and how disease processes work.
1. Specify a disease process by making simple Python functions that
return disease rates ... | 29.672544 | 107 | 0.655178 | 1,652 | 11,780 | 4.598063 | 0.209443 | 0.031332 | 0.010532 | 0.012638 | 0.247367 | 0.196419 | 0.156398 | 0.13415 | 0.124408 | 0.097946 | 0 | 0.013298 | 0.240323 | 11,780 | 396 | 108 | 29.747475 | 0.835401 | 0.651358 | 0 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242105 | false | 0 | 0.031579 | 0.073684 | 0.526316 | 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 |
ba3d64caf9b23b40b170a7ff0947a7ebfbb45f53 | 105 | py | Python | app.py | dhain/sample-flask | 0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0 | [
"MIT"
] | null | null | null | app.py | dhain/sample-flask | 0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0 | [
"MIT"
] | null | null | null | app.py | dhain/sample-flask | 0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
i = 0
return str(i)
| 11.666667 | 23 | 0.609524 | 16 | 105 | 3.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.238095 | 105 | 8 | 24 | 13.125 | 0.7375 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba41ba647531a6e0fb784e885f85d47c2246f90c | 1,022 | py | Python | where/estimation/rejectors/gnss_pdop_cov.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 16 | 2018-08-31T10:31:11.000Z | 2022-03-15T16:07:24.000Z | where/estimation/rejectors/gnss_pdop_cov.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 5 | 2018-07-13T14:04:24.000Z | 2021-06-17T02:14:44.000Z | where/estimation/rejectors/gnss_pdop_cov.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 15 | 2018-06-07T05:45:24.000Z | 2022-03-15T16:07:27.000Z | """Reject observations based on PDOP, which is based on estimated covariance matrix of unknowns
Description:
------------
Identifies observations from the dataset with PDOP greater than a configured limit.
"""
# External library imports
import numpy as np
# Midgard imports
from midgard.dev import plugins
# Where i... | 24.333333 | 95 | 0.726027 | 142 | 1,022 | 5.070423 | 0.549296 | 0.05 | 0.041667 | 0.069444 | 0.080556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001202 | 0.18591 | 1,022 | 41 | 96 | 24.926829 | 0.864183 | 0.506849 | 0 | 0 | 0 | 0 | 0.019355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ba48ba24fda8aa0f77aea9998163750beb72aff6 | 566 | py | Python | staff_erp/models/salary_info.py | saurabh-0777/odoo_project | c400ce051fcb69e7649285231080f6f6eddb2f8f | [
"MIT"
] | null | null | null | staff_erp/models/salary_info.py | saurabh-0777/odoo_project | c400ce051fcb69e7649285231080f6f6eddb2f8f | [
"MIT"
] | null | null | null | staff_erp/models/salary_info.py | saurabh-0777/odoo_project | c400ce051fcb69e7649285231080f6f6eddb2f8f | [
"MIT"
] | null | null | null | from odoo import api, fields, models
class SalaryInfo(models.Model):
_name = 'salary.info'
_rec_name = 'salary'
name = fields.Many2one(comodel_name='staff.info')
staff_type = fields.Selection([('std_1', 'teaching'),
('std_2', 'account'),
... | 33.294118 | 59 | 0.503534 | 54 | 566 | 5.074074 | 0.574074 | 0.072993 | 0.153285 | 0.182482 | 0.248175 | 0.248175 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.358657 | 566 | 16 | 60 | 35.375 | 0.738292 | 0 | 0 | 0 | 0 | 0 | 0.173145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.666667 | 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 |
ba4d64f567cc59042b33bbd3df817e5e5f04d4b3 | 619 | py | Python | src/telegram/views/messages.py | Roboy/tss19-funboy | 7d4341ea3be506c43e8dd23c11cd8403905ddf8a | [
"BSD-3-Clause"
] | null | null | null | src/telegram/views/messages.py | Roboy/tss19-funboy | 7d4341ea3be506c43e8dd23c11cd8403905ddf8a | [
"BSD-3-Clause"
] | 15 | 2020-03-21T00:33:11.000Z | 2022-03-12T00:19:42.000Z | src/telegram/views/messages.py | Roboy/tss19-funboy | 7d4341ea3be506c43e8dd23c11cd8403905ddf8a | [
"BSD-3-Clause"
] | 1 | 2021-05-06T17:32:02.000Z | 2021-05-06T17:32:02.000Z |
def start_message():
return f"* Welcome to Funboy Joker bot! *\n" \
f"\n" \
f"*DISCLAIMER:*\n" \
f"This is a research experiment aiming to improve computer-generated humour. \n" \
f"It may contain offensive language! \n" \
f"This bot will ask you to rate autom... | 47.615385 | 94 | 0.597738 | 93 | 619 | 3.967742 | 0.623656 | 0.04336 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009412 | 0.313409 | 619 | 12 | 95 | 51.583333 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.694175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0 | 0.090909 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba502f35836768f2cffa7616e7935f29ca032480 | 623 | py | Python | learn/services/repetition.py | Aigrefin/py3learn | 8104315689caff2523bda3b4ad70a807f4a43fa7 | [
"MIT"
] | null | null | null | learn/services/repetition.py | Aigrefin/py3learn | 8104315689caff2523bda3b4ad70a807f4a43fa7 | [
"MIT"
] | 1 | 2021-06-10T19:05:49.000Z | 2021-06-10T19:05:49.000Z | learn/services/repetition.py | Aigrefin/py3learn | 8104315689caff2523bda3b4ad70a807f4a43fa7 | [
"MIT"
] | null | null | null | import datetime
import math
import django
from py3njection import inject
from learn.infrastructure.configuration import LearnConfiguration
from learn.learn_base_settings import available_settings
@inject
def compute_next_repetition(successes, conf: LearnConfiguration):
next_repetition_delta = float(conf.get_con... | 36.647059 | 110 | 0.760835 | 67 | 623 | 6.820896 | 0.477612 | 0.111597 | 0.083151 | 0.109409 | 0.205689 | 0.205689 | 0.205689 | 0 | 0 | 0 | 0 | 0.001953 | 0.17817 | 623 | 16 | 111 | 38.9375 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 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 |
ba50f0e38be2ab31ee4582ffc578be5f6fbd27ec | 632 | py | Python | apps/publications/migrations/0026_title_type_data_migration.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | 1 | 2019-12-12T15:38:42.000Z | 2019-12-12T15:38:42.000Z | apps/publications/migrations/0026_title_type_data_migration.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | apps/publications/migrations/0026_title_type_data_migration.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-06-15 08:51
from django.db import migrations
def fix_unknown_pub_types(apps, schema_editor):
Title = apps.get_model('publications', 'Title')
Title.objects.filter(pub_type='U', issn='', eissn='').exclude(isbn='').update(pub_type='B')
Title.objects.filter(pub_type='U', i... | 25.28 | 95 | 0.681962 | 83 | 632 | 5 | 0.60241 | 0.06747 | 0.062651 | 0.086747 | 0.125301 | 0.125301 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.158228 | 632 | 24 | 96 | 26.333333 | 0.744361 | 0.071203 | 0 | 0 | 1 | 0 | 0.107692 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ba54fc81a6a32822f3703f1f0570b73ce483b245 | 196 | py | Python | torchtable/operator/__init__.py | keitakurita/torchtable | e3ae98b5c5b2e809a43787a111bb30ca7f0240b9 | [
"MIT"
] | 2 | 2019-05-14T13:23:58.000Z | 2020-01-16T03:50:24.000Z | torchtable/operator/__init__.py | keitakurita/torchtable | e3ae98b5c5b2e809a43787a111bb30ca7f0240b9 | [
"MIT"
] | null | null | null | torchtable/operator/__init__.py | keitakurita/torchtable | e3ae98b5c5b2e809a43787a111bb30ca7f0240b9 | [
"MIT"
] | 1 | 2019-04-28T20:13:43.000Z | 2019-04-28T20:13:43.000Z | from .core import *
__all__ = ["Operator", "LambdaOperator", "TransformerOperator",
"Normalize", "FillMissing", "Vocab", "Categorize",
"ToTensor", "UnknownCategoryError", ]
| 32.666667 | 63 | 0.637755 | 13 | 196 | 9.307692 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19898 | 196 | 5 | 64 | 39.2 | 0.770701 | 0 | 0 | 0 | 0 | 0 | 0.530612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba591954fd47661d8b51e8d547bd2d12229468b7 | 1,358 | py | Python | trainer/model.py | Antoine-BL/chess-ai.py | c68ca76063c14b1b8b91d338c8cead9f411521ca | [
"MIT"
] | 2 | 2019-08-21T15:52:29.000Z | 2021-09-11T23:07:17.000Z | trainer/model.py | Antoine-BL/chess-ai.py | c68ca76063c14b1b8b91d338c8cead9f411521ca | [
"MIT"
] | 5 | 2020-09-25T23:15:31.000Z | 2022-02-10T00:07:33.000Z | trainer/model.py | Antoine-BL/EuroTruck-ai.py | c68ca76063c14b1b8b91d338c8cead9f411521ca | [
"MIT"
] | null | null | null | from tensorflow.python.keras.layers import Lambda, Convolution2D, BatchNormalization, Flatten, Dense, Cropping2D
from tensorflow.python.keras.models import Sequential
from tensorflow.python.keras.optimizers import Adam
from trainer.util import normalize, resize
def model():
m = Sequential()
m.add(Convolutio... | 28.291667 | 112 | 0.67894 | 180 | 1,358 | 5.088889 | 0.311111 | 0.087336 | 0.216157 | 0.200873 | 0.580786 | 0.541485 | 0.498908 | 0.498908 | 0.351528 | 0.313319 | 0 | 0.051127 | 0.150221 | 1,358 | 47 | 113 | 28.893617 | 0.742634 | 0.008837 | 0 | 0.37931 | 0 | 0 | 0.029039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.206897 | 0.034483 | 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 |
ba600423f3d623956a76156da8b2dffa5d6cebec | 368 | py | Python | pajbot/migration_revisions/db/0006_create_user_rank_materialized_view.py | MrBean355/pajbot | 3f27aabccfb242f5e3e8eedd20c97633b0d39950 | [
"MIT"
] | 145 | 2019-06-08T15:38:40.000Z | 2022-03-29T22:51:47.000Z | pajbot/migration_revisions/db/0006_create_user_rank_materialized_view.py | MrBean355/pajbot | 3f27aabccfb242f5e3e8eedd20c97633b0d39950 | [
"MIT"
] | 671 | 2019-05-26T22:19:08.000Z | 2022-03-31T06:00:49.000Z | pajbot/migration_revisions/db/0006_create_user_rank_materialized_view.py | MrBean355/pajbot | 3f27aabccfb242f5e3e8eedd20c97633b0d39950 | [
"MIT"
] | 105 | 2019-05-25T18:22:13.000Z | 2022-02-23T00:57:27.000Z | def up(cursor, bot):
cursor.execute(
"""
CREATE MATERIALIZED VIEW user_rank AS (
SELECT
id as user_id,
RANK() OVER (ORDER BY points DESC) points_rank,
RANK() OVER (ORDER BY num_lines DESC) num_lines_rank
FROM "user"
)
"""
)
cursor.execu... | 26.285714 | 64 | 0.57337 | 47 | 368 | 4.319149 | 0.510638 | 0.128079 | 0.187192 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334239 | 368 | 13 | 65 | 28.307692 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.341667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba69035771c043a913fe7ffd868ffbc5084fb0f1 | 386 | py | Python | myforum/usercenter/models.py | zalax303/test_django | 5728e26c7b6a6287d126ba4058ba54680a9bace4 | [
"Apache-2.0"
] | null | null | null | myforum/usercenter/models.py | zalax303/test_django | 5728e26c7b6a6287d126ba4058ba54680a9bace4 | [
"Apache-2.0"
] | null | null | null | myforum/usercenter/models.py | zalax303/test_django | 5728e26c7b6a6287d126ba4058ba54680a9bace4 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
from django.db import models
from django.contrib.auth.models import User
class ActivateCode(models.Model):
owner = models.ForeignKey(User, verbose_name="用户")
code = models.CharField(verbose_name="激活码", max_length=100)
expire_timestamp = models.DateTimeField()
create_time = models.DateTimeField(auto... | 29.692308 | 60 | 0.797927 | 54 | 386 | 5.537037 | 0.648148 | 0.190635 | 0.153846 | 0.180602 | 0.200669 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.093264 | 386 | 12 | 61 | 32.166667 | 0.842857 | 0.031088 | 0 | 0 | 0 | 0 | 0.013405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
ba69c5e73ad4a27f76fcd447918d6d125e088cb9 | 357 | py | Python | Exercicio-03.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | Exercicio-03.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | Exercicio-03.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | # Fazer com que o interpretador leia duas notas de um aluno, calcule e mostre a sua média.
n1 = float(input('\nDigite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
media = (n1 + n2) / 2
print('\nA primeira nota é: {:.1f}.'.format(n1))
print('A segunda nota é: {:.1f}.'.format(n2))
print('Portanto, s... | 44.625 | 90 | 0.661064 | 60 | 357 | 3.933333 | 0.583333 | 0.038136 | 0.101695 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033003 | 0.151261 | 357 | 8 | 91 | 44.625 | 0.745875 | 0.246499 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
ba7944516d0e09575b93381855069585973ab4f1 | 460 | py | Python | tests/test_timedelete.py | giuliocalzolari/pse_timecard | 5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c | [
"WTFPL"
] | 11 | 2019-08-21T09:21:53.000Z | 2022-02-06T21:41:34.000Z | tests/test_timedelete.py | giuliocalzolari/pse_timecard | 5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c | [
"WTFPL"
] | 22 | 2019-08-21T09:17:58.000Z | 2022-03-14T20:04:10.000Z | tests/test_timedelete.py | giuliocalzolari/pse_timecard | 5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c | [
"WTFPL"
] | 9 | 2019-08-21T11:43:34.000Z | 2021-11-08T15:36:24.000Z | from freezegun import freeze_time
from salesforce_timecard.core import TimecardEntry
import pytest
import json
@freeze_time("2020-9-18")
@pytest.mark.vcr()
@pytest.mark.block_network
def test_delete_timecard():
te = TimecardEntry("tests/fixtures/cfg_user_password.json")
rs = te.list_timecard(False, "2020-09-1... | 27.058824 | 63 | 0.730435 | 68 | 460 | 4.75 | 0.588235 | 0.06192 | 0.03096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092732 | 0.132609 | 460 | 16 | 64 | 28.75 | 0.716792 | 0 | 0 | 0 | 0 | 0 | 0.191304 | 0.080435 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0.076923 | 0.307692 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
ba93fd1478bd06284c76c1ea6935491739d75c91 | 347 | py | Python | rackio/workers/__init__.py | crivero7/rackio-framework | d3362041b1fc4c3af7eb51ac06b1f0f1b5aa497c | [
"MIT"
] | null | null | null | rackio/workers/__init__.py | crivero7/rackio-framework | d3362041b1fc4c3af7eb51ac06b1f0f1b5aa497c | [
"MIT"
] | null | null | null | rackio/workers/__init__.py | crivero7/rackio-framework | d3362041b1fc4c3af7eb51ac06b1f0f1b5aa497c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""rackio/workers/__init__.py
This module implements all Rackio Workers.
"""
from .alarms import AlarmWorker
from .api import APIWorker
from .continuos import _ContinuosWorker
from .controls import ControlWorker
from .functions import FunctionWorker
from .logger import LoggerWorker
from .state... | 24.785714 | 42 | 0.801153 | 41 | 347 | 6.658537 | 0.658537 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.123919 | 347 | 13 | 43 | 26.692308 | 0.894737 | 0.268012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ba9d99b33e51af7c8fc9a8456d443439f7486391 | 1,103 | py | Python | population.py | SSebigo/Gomoku | cc7195e3696a614119beb7ec1942f28a23b155b7 | [
"MIT"
] | null | null | null | population.py | SSebigo/Gomoku | cc7195e3696a614119beb7ec1942f28a23b155b7 | [
"MIT"
] | null | null | null | population.py | SSebigo/Gomoku | cc7195e3696a614119beb7ec1942f28a23b155b7 | [
"MIT"
] | null | null | null | from typing import List
from neural_network import NeuralNetwork
class Population(object):
_individuals: list
_layers: int
_neurons: int
population: list
def __init__(self, layers: int, neurons: int, max_individuals: int):
self._layers = layers
self._neurons = neurons
self... | 26.902439 | 75 | 0.606528 | 118 | 1,103 | 5.508475 | 0.29661 | 0.067692 | 0.096923 | 0.124615 | 0.143077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014175 | 0.296464 | 1,103 | 40 | 76 | 27.575 | 0.823454 | 0.062557 | 0 | 0.107143 | 0 | 0 | 0.02233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.071429 | 0.107143 | 0.535714 | 0.035714 | 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 |
baa0fbddbd32d3ef3694797a1f0547612c46e0e3 | 163 | py | Python | old/07/04.py | systemquant/book-pandas-for-finance | 90b7eb9be1de20a12ae72b9bb5d51424a979b174 | [
"MIT"
] | 10 | 2021-02-04T12:49:56.000Z | 2022-03-26T11:28:11.000Z | old/07/04.py | systemquant/book-pandas-for-finance | 90b7eb9be1de20a12ae72b9bb5d51424a979b174 | [
"MIT"
] | 1 | 2022-03-24T03:47:14.000Z | 2022-03-24T03:54:52.000Z | old/07/04.py | systemquant/book-pandas-for-finance | 90b7eb9be1de20a12ae72b9bb5d51424a979b174 | [
"MIT"
] | 4 | 2021-07-17T16:50:15.000Z | 2022-03-22T05:55:34.000Z | import pybithumb
df = pybithumb.get_ohlcv("BTC", interval="day")
df["변동성"] = (df['high'] - df['low']) * 0.5
df["목표가"] = df["open"] + df["변동성"].shift(1)
print(df)
| 23.285714 | 47 | 0.588957 | 27 | 163 | 3.518519 | 0.666667 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.122699 | 163 | 6 | 48 | 27.166667 | 0.643357 | 0 | 0 | 0 | 0 | 0 | 0.159509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
baa74fba93f9d044432ac0ced5081ee63ebaa072 | 3,095 | py | Python | examples/tutorial/tutorial_part_signatures.py | PhilippBoeing/synbioweaver | 23efdf79a325885a43e82ba13e6ccefb8eb3d733 | [
"MIT"
] | null | null | null | examples/tutorial/tutorial_part_signatures.py | PhilippBoeing/synbioweaver | 23efdf79a325885a43e82ba13e6ccefb8eb3d733 | [
"MIT"
] | null | null | null | examples/tutorial/tutorial_part_signatures.py | PhilippBoeing/synbioweaver | 23efdf79a325885a43e82ba13e6ccefb8eb3d733 | [
"MIT"
] | null | null | null | # This example runs the examples from figure 5 of the manuscript
from synbioweaver import *
class BBa_B0030(RBS):
def __init__(self):
super(BBa_B0030, self).__init__()
self.type = "biobrick"
self.sequence = "attaaagaggagaaa"
declareNewMolecule('GFP')
declareNewMolecule('TetR')
declareNew... | 40.194805 | 136 | 0.685622 | 297 | 3,095 | 7.074074 | 0.262626 | 0.057592 | 0.0495 | 0.205616 | 0.378391 | 0.15802 | 0.15802 | 0.131366 | 0.061875 | 0 | 0 | 0.010993 | 0.17706 | 3,095 | 76 | 137 | 40.723684 | 0.813899 | 0.072698 | 0 | 0.035714 | 0 | 0 | 0.090465 | 0.023402 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.196429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
baccd6c81424ffaf497761f8ea7d84c7831a264c | 281 | py | Python | nmfamv2/metadata/metadata_reader.py | gmarupilla/NMRFAMv2 | 2e9e7e1f43dbf1d8bcdbcff044bb686db3af09e0 | [
"MIT"
] | null | null | null | nmfamv2/metadata/metadata_reader.py | gmarupilla/NMRFAMv2 | 2e9e7e1f43dbf1d8bcdbcff044bb686db3af09e0 | [
"MIT"
] | null | null | null | nmfamv2/metadata/metadata_reader.py | gmarupilla/NMRFAMv2 | 2e9e7e1f43dbf1d8bcdbcff044bb686db3af09e0 | [
"MIT"
] | null | null | null | from .metadata_parser import parse_metadata
from nmfamv2.metadata import Metadata
def read_metafile(metafile_path):
parsed_metadata = parse_metadata(metafile_path)
# Validator and object creation are combined
Metadata(parsed_metadata)
# Parser
# Validator
# Object
| 20.071429 | 51 | 0.797153 | 34 | 281 | 6.352941 | 0.5 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.153025 | 281 | 13 | 52 | 21.615385 | 0.903361 | 0.234875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bae4f943156deccc9e0898af0ab959a665ca6cf6 | 71 | py | Python | lang/py/cookbook/v2/source/cb2_18_14_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_18_14_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_18_14_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | if isinstance(other, float):
other = Measurement(other, 0)
| 23.666667 | 41 | 0.619718 | 8 | 71 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.267606 | 71 | 2 | 42 | 35.5 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bafacff0ec0ab11de0b328ed7de05110681cf6f5 | 3,392 | py | Python | src/yellowdog_client/model/alibaba_instances_compute_source.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/alibaba_instances_compute_source.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/alibaba_instances_compute_source.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from datetime import datetime
from typing import Dict, Optional, Set
from .alibaba_compute_source import AlibabaComputeSource
from .alibaba_instance_charge_type import AlibabaInstanceChargeType
from .alibaba_spot_strategy import AlibabaSpotStrategy
from .compute_source_exhausti... | 54.709677 | 140 | 0.760613 | 410 | 3,392 | 6.25122 | 0.317073 | 0.051502 | 0.049941 | 0.062427 | 0.218494 | 0.151385 | 0.063207 | 0 | 0 | 0 | 0 | 0.000352 | 0.162736 | 3,392 | 61 | 141 | 55.606557 | 0.902113 | 0.020047 | 0 | 0 | 0 | 0 | 0.029906 | 0.029906 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.236842 | 0 | 0.973684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
240bbb7d490c0bb706b81afc89be633224723a57 | 335 | py | Python | webapp/route/__init__.py | fainle/python_flask_demo | a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2 | [
"MIT"
] | null | null | null | webapp/route/__init__.py | fainle/python_flask_demo | a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2 | [
"MIT"
] | null | null | null | webapp/route/__init__.py | fainle/python_flask_demo | a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import functools
from flask import url_for, redirect, session
def login_required(view):
@functools.wraps(view)
def _(**kwargs):
if session.get('admin_name') is None:
return redirect(url_for('admin_bp.admin_login'))
return view(**kwargs... | 22.333333 | 60 | 0.647761 | 44 | 335 | 4.75 | 0.659091 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.21791 | 335 | 14 | 61 | 23.928571 | 0.793893 | 0.125373 | 0 | 0 | 0 | 0 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.777778 | 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 |
2420253761f3a882e54c81d9a136fc97fd5aabe5 | 818 | py | Python | teachers/mixins.py | gtsiokos/diogenis | c83d4dac26df68bbbf897c48a5552ea9c9ede9c2 | [
"BSD-3-Clause"
] | 1 | 2019-08-16T13:47:46.000Z | 2019-08-16T13:47:46.000Z | teachers/mixins.py | gtsiokos/diogenis | c83d4dac26df68bbbf897c48a5552ea9c9ede9c2 | [
"BSD-3-Clause"
] | null | null | null | teachers/mixins.py | gtsiokos/diogenis | c83d4dac26df68bbbf897c48a5552ea9c9ede9c2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
from django.http import Http404
from django.contrib.auth.decorators import user_passes_test
from django.utils.decorators import method_decorator
from diogenis.teachers.models import Teacher
def user_is_teacher(user):
try:
request_user =... | 32.72 | 88 | 0.722494 | 100 | 818 | 5.76 | 0.5 | 0.041667 | 0.067708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011747 | 0.167482 | 818 | 24 | 89 | 34.083333 | 0.834068 | 0.077017 | 0 | 0 | 0 | 0 | 0.019947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
2422ddb221efb76a94a68ff38b54871aeac62562 | 289 | py | Python | main/sort-array-by-parity-ii/sort-array-by-parity-ii.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/sort-array-by-parity-ii/sort-array-by-parity-ii.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/sort-array-by-parity-ii/sort-array-by-parity-ii.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | class Solution:
def sortArrayByParityII(self, a):
"""
:type A: List[int]
:rtype: List[int]
"""
evens = (x for x in a if x % 2 == 0)
odds = (x for x in a if x % 2 == 1)
return list(itertools.chain.from_iterable(zip(evens, odds)))
| 28.9 | 68 | 0.512111 | 42 | 289 | 3.5 | 0.595238 | 0.095238 | 0.068027 | 0.095238 | 0.163265 | 0.163265 | 0.163265 | 0.163265 | 0 | 0 | 0 | 0.021277 | 0.349481 | 289 | 9 | 69 | 32.111111 | 0.760638 | 0.124567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2425854b676c78565d350a24516b06e65e8ec2fd | 400 | py | Python | scripts/return_length_of_string.py | arifulhaqueuc/python-algorithm-excersice | 7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e | [
"MIT"
] | null | null | null | scripts/return_length_of_string.py | arifulhaqueuc/python-algorithm-excersice | 7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e | [
"MIT"
] | 4 | 2018-05-16T23:06:49.000Z | 2018-10-26T22:47:52.000Z | scripts/return_length_of_string.py | arifulhaqueuc/python-algorithm-excersice | 7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e | [
"MIT"
] | null | null | null | '''
Write a program that maps a list of words into a list of integers representing the lengths of the correponding words.
Write it in three different ways:
1) using a for-loop,
2) using the higher order function map(), and
3) using list comprehensions.
'''
#2
l = ['apple', 'orange', 'cat']
print map( la... | 20 | 118 | 0.65 | 68 | 400 | 3.823529 | 0.588235 | 0.038462 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016502 | 0.2425 | 400 | 19 | 119 | 21.052632 | 0.841584 | 0.005 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
24312b312592739156a1fc2562fbc4d478ed5b64 | 8,457 | py | Python | test/base/test_db_util.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 2 | 2016-02-23T00:09:14.000Z | 2019-02-11T07:48:44.000Z | test/base/test_db_util.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | null | null | null | test/base/test_db_util.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 6 | 2015-05-27T13:09:50.000Z | 2019-02-11T07:48:46.000Z | import galaxy.model
from galaxy.model.orm import *
from galaxy.model.mapping import context as sa_session
from base.twilltestcase import *
import sys
def delete_obj( obj ):
sa_session.delete( obj )
sa_session.flush()
def delete_request_type_permissions( id ):
rtps = sa_session.query( galaxy.model.RequestTy... | 54.915584 | 112 | 0.620433 | 942 | 8,457 | 5.36518 | 0.104034 | 0.158884 | 0.072022 | 0.102889 | 0.688564 | 0.562327 | 0.463593 | 0.396518 | 0.325287 | 0.244954 | 0 | 0 | 0.274329 | 8,457 | 153 | 113 | 55.27451 | 0.823529 | 0 | 0 | 0.263158 | 0 | 0 | 0.006503 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 1 | 0.217105 | false | 0.013158 | 0.032895 | 0.164474 | 0.434211 | 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 |
24353a8838c097071f87e4366d98031a90d7f990 | 555 | py | Python | Dataset/Leetcode/train/94/679.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/94/679.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/94/679.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode) -> List[int]:
stack=[(None,root)]
result=[]
while stack:
val,node=stack.pop()
if val!=None:
result.append(val)
if node:
stack.append([node.val,node.right])
if no... | 29.210526 | 139 | 0.52973 | 60 | 555 | 4.9 | 0.533333 | 0.047619 | 0.217687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002695 | 0.331532 | 555 | 18 | 140 | 30.833333 | 0.789757 | 0 | 0 | 0 | 0 | 0 | 0.014467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
24394928ea89d1fbae27a1d71e8a36f43eb76722 | 519 | py | Python | ocr/utils/toDataURL.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | ocr/utils/toDataURL.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | ocr/utils/toDataURL.py | takuya-motoshima/document-scanner | 7e4c2821ec21ba96468bcbe512bd0d40f653b0e1 | [
"MIT"
] | null | null | null | import ocr.utils as utils
def toDataURL(img, mime = None):
"""Image to Data URL.
Args:
img: CV2 Image object or image path.
mime: The media type of the Data URL. Required if the image is an CV2 Image object.
Returns:
Return Data URL and MIME type.
Raises:
ValueError: Image types other... | 30.529412 | 88 | 0.662813 | 81 | 519 | 4.246914 | 0.567901 | 0.081395 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035806 | 0.246628 | 519 | 17 | 89 | 30.529412 | 0.84399 | 0.618497 | 0 | 0 | 0 | 0 | 0.188679 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
24400036af7843669245f2d059e89cd38ee90833 | 15,581 | py | Python | test/unit/test_globals.py | cstockton/py-emit | 3c240afb4a6159aa3a9a5930c0f6a606d41370b1 | [
"MIT"
] | null | null | null | test/unit/test_globals.py | cstockton/py-emit | 3c240afb4a6159aa3a9a5930c0f6a606d41370b1 | [
"MIT"
] | null | null | null | test/unit/test_globals.py | cstockton/py-emit | 3c240afb4a6159aa3a9a5930c0f6a606d41370b1 | [
"MIT"
] | 3 | 2017-08-29T22:59:25.000Z | 2020-02-21T19:13:41.000Z | import pytest
import random
import time
import itertools
from multiprocessing.pool import ThreadPool
from datetime import timedelta
from emit.globals import Proxy, GuardedProxy, Config, ConfigDescriptor, LoggerProxy, log, conf
from ..helpers import TestCase
@pytest.mark.conf
@pytest.mark.log
@pytest.mark.proxy
class ... | 35.654462 | 102 | 0.638021 | 1,923 | 15,581 | 4.790952 | 0.114925 | 0.065994 | 0.209704 | 0.134592 | 0.678823 | 0.632042 | 0.594378 | 0.563117 | 0.545859 | 0.492565 | 0 | 0.002655 | 0.274886 | 15,581 | 436 | 103 | 35.736239 | 0.812799 | 0.066941 | 0 | 0.459215 | 0 | 0 | 0.072413 | 0.026999 | 0 | 0 | 0 | 0 | 0.317221 | 1 | 0.123867 | false | 0.054381 | 0.024169 | 0.006042 | 0.202417 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
244b171397f7962fd703f3299789a0f3c13a25b6 | 2,592 | py | Python | lib/tclient.py | AjaxVM/hiths-pyweek6 | 6661ddb8b7c75b0788ce41a411838bc28d59d284 | [
"Unlicense"
] | null | null | null | lib/tclient.py | AjaxVM/hiths-pyweek6 | 6661ddb8b7c75b0788ce41a411838bc28d59d284 | [
"Unlicense"
] | null | null | null | lib/tclient.py | AjaxVM/hiths-pyweek6 | 6661ddb8b7c75b0788ce41a411838bc28d59d284 | [
"Unlicense"
] | null | null | null | from twisted.spread import pb
from twisted.internet import reactor
from tserver import User, CopyUser
import sys, signal
player_count = 0
loop = 0
client = None
game_creator = False
class Client(pb.Referenceable):
def __init__(self, name):
self.name = name
self.players = []
def connected(sel... | 26.181818 | 64 | 0.649691 | 316 | 2,592 | 5.18038 | 0.367089 | 0.026878 | 0.041539 | 0.043983 | 0.051313 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00823 | 0.25 | 2,592 | 98 | 65 | 26.44898 | 0.833848 | 0.078704 | 0 | 0.057971 | 0 | 0 | 0.048844 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 0 | null | null | 0.014493 | 0.057971 | null | null | 0.101449 | 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 |
244de003b0cb8a85188f7fa3c01262ae70811773 | 218 | py | Python | nglview/color.py | i386uk/nglview | 39e207e474ef85feb0e4928d02d2d68428435b15 | [
"MIT"
] | null | null | null | nglview/color.py | i386uk/nglview | 39e207e474ef85feb0e4928d02d2d68428435b15 | [
"MIT"
] | null | null | null | nglview/color.py | i386uk/nglview | 39e207e474ef85feb0e4928d02d2d68428435b15 | [
"MIT"
] | null | null | null | COLOR_SCHEMES = [
" ", "picking", "random", "uniform", "atomindex", "residueindex",
"chainindex", "modelindex", "sstruc", "element", "resname", "bfactor",
"hydrophobicity", "value", "volume", "occupancy"
]
| 36.333333 | 74 | 0.619266 | 17 | 218 | 7.882353 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151376 | 218 | 5 | 75 | 43.6 | 0.724324 | 0 | 0 | 0 | 0 | 0 | 0.56422 | 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 |
245e3ffeeef59a7f223bf3d12f43d4f94ed7e8f3 | 295 | py | Python | webapp/rest/permissions.py | zohaib-ansari/vehicle-webapp | 19ddf8aa3ebb6fe7d0642ddef8facdeda7822184 | [
"MIT"
] | null | null | null | webapp/rest/permissions.py | zohaib-ansari/vehicle-webapp | 19ddf8aa3ebb6fe7d0642ddef8facdeda7822184 | [
"MIT"
] | null | null | null | webapp/rest/permissions.py | zohaib-ansari/vehicle-webapp | 19ddf8aa3ebb6fe7d0642ddef8facdeda7822184 | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsReporter(permissions.BasePermission):
"""
Permission allowing reporters to access their own reports
"""
def has_object_permission(self, request, view, obj):
return obj.reporter == request.user.IITGUser | 26.818182 | 65 | 0.688136 | 31 | 295 | 6.451613 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240678 | 295 | 11 | 66 | 26.818182 | 0.892857 | 0.19322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
79e0f7cba7f4db860df1c6875bec34fdc21fc9f7 | 918 | py | Python | organizations/migrations/0002_auto_20170316_1255.py | ourrevcambridge/orgcat | 7c34cc52a6645c14650c8732a39f984dd02640d8 | [
"MIT"
] | 1 | 2017-04-12T15:37:26.000Z | 2017-04-12T15:37:26.000Z | organizations/migrations/0002_auto_20170316_1255.py | ourrevcambridge/orgcat | 7c34cc52a6645c14650c8732a39f984dd02640d8 | [
"MIT"
] | 15 | 2017-03-15T12:40:40.000Z | 2017-03-19T16:54:21.000Z | organizations/migrations/0002_auto_20170316_1255.py | ourrevcambridge/orgcat | 7c34cc52a6645c14650c8732a39f984dd02640d8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-16 12:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organizations', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 26.228571 | 63 | 0.577342 | 87 | 918 | 5.942529 | 0.551724 | 0.069633 | 0.162476 | 0.193424 | 0.398453 | 0.398453 | 0.232108 | 0.158607 | 0 | 0 | 0 | 0.045526 | 0.3061 | 918 | 34 | 64 | 27 | 0.766091 | 0.074074 | 0 | 0.444444 | 1 | 0 | 0.120425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 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 |
79ea43854b99cd63bf78e9bb4cf3c7419c1987e4 | 1,731 | py | Python | supplies/serializers.py | cupracer/family-tools | 95a9f4d845fca4a00e2b666afc7eb791745121e7 | [
"MIT"
] | null | null | null | supplies/serializers.py | cupracer/family-tools | 95a9f4d845fca4a00e2b666afc7eb791745121e7 | [
"MIT"
] | null | null | null | supplies/serializers.py | cupracer/family-tools | 95a9f4d845fca4a00e2b666afc7eb791745121e7 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Category, Brand, Supply, Unit, SupplyItem, Packaging, Product
class CategorySerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Category
fields = ('id', 'name')
class BrandSerializer(serializers.HyperlinkedModelSerial... | 29.844828 | 142 | 0.696707 | 158 | 1,731 | 7.512658 | 0.28481 | 0.218197 | 0.082561 | 0.155013 | 0.395956 | 0.224094 | 0.224094 | 0.171862 | 0.171862 | 0.171862 | 0 | 0 | 0.192952 | 1,731 | 57 | 143 | 30.368421 | 0.849678 | 0 | 0 | 0.375 | 0 | 0 | 0.105142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
79ea60291f462e69652232c844088f03b0e274e0 | 2,077 | py | Python | tests/auth/test_authentication.py | gems-uff/sms | 01cfa84bd467617c58f58da04711c5097dd93fe6 | [
"MIT"
] | null | null | null | tests/auth/test_authentication.py | gems-uff/sms | 01cfa84bd467617c58f58da04711c5097dd93fe6 | [
"MIT"
] | null | null | null | tests/auth/test_authentication.py | gems-uff/sms | 01cfa84bd467617c58f58da04711c5097dd93fe6 | [
"MIT"
] | null | null | null | from flask import url_for, request, current_app
from app.auth.models import User, PreAllowedUser
from app.extensions import db
def test_register_and_login(client, database):
# Register unconfirmed user
response = client.post(url_for('auth.register'), data={
'email': 'a@a.com',
'password': 'a'... | 38.462963 | 81 | 0.645161 | 266 | 2,077 | 4.887218 | 0.330827 | 0.032308 | 0.038462 | 0.030769 | 0.425385 | 0.425385 | 0.362308 | 0.319231 | 0.292308 | 0.259231 | 0 | 0.008275 | 0.243621 | 2,077 | 53 | 82 | 39.188679 | 0.819223 | 0.404911 | 0 | 0.44 | 0 | 0 | 0.137789 | 0 | 0 | 0 | 0 | 0.018868 | 0.2 | 1 | 0.04 | false | 0.12 | 0.12 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
79ec797722a54ea4de53df3ee7b7d76d115a33ff | 256 | py | Python | alphaml/datasets/cls_dataset/banana.py | dingdian110/alpha-ml | d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde | [
"BSD-3-Clause"
] | 1 | 2021-09-06T20:21:15.000Z | 2021-09-06T20:21:15.000Z | alphaml/datasets/cls_dataset/banana.py | dingdian110/alpha-ml | d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde | [
"BSD-3-Clause"
] | null | null | null | alphaml/datasets/cls_dataset/banana.py | dingdian110/alpha-ml | d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde | [
"BSD-3-Clause"
] | null | null | null | import os
import pandas as pd
def load_banana():
print(os.curdir)
file_path = 'data/xgb_dataset/banana/banana.csv'
data = pd.read_csv(file_path, delimiter=',',converters={2: lambda x:int(int(x) == 1)}).values
return data[:, :2], data[:, 2] | 32 | 97 | 0.664063 | 41 | 256 | 4.02439 | 0.634146 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.160156 | 256 | 8 | 98 | 32 | 0.748837 | 0 | 0 | 0 | 0 | 0 | 0.136187 | 0.132296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
031edf024d26f78ee1dab7fb7974111571cd521e | 99 | py | Python | utils.py | FrCln/SpaceGarbage | 0e121143888b108eac2b86b1dd9fcbf20dcef36e | [
"MIT"
] | null | null | null | utils.py | FrCln/SpaceGarbage | 0e121143888b108eac2b86b1dd9fcbf20dcef36e | [
"MIT"
] | null | null | null | utils.py | FrCln/SpaceGarbage | 0e121143888b108eac2b86b1dd9fcbf20dcef36e | [
"MIT"
] | null | null | null | import asyncio
async def sleep(delay):
for i in range(delay):
await asyncio.sleep(0)
| 14.142857 | 30 | 0.656566 | 15 | 99 | 4.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.252525 | 99 | 6 | 31 | 16.5 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
032dd466c58aab15fcfe54642491eba4025f614d | 629 | py | Python | tests/test_base.py | giommok/cumulator | 042e303b64976ef71a93a91aa85180f14d46c25e | [
"MIT"
] | 1 | 2020-06-10T10:23:54.000Z | 2020-06-10T10:23:54.000Z | tests/test_base.py | giommok/cumulator | 042e303b64976ef71a93a91aa85180f14d46c25e | [
"MIT"
] | null | null | null | tests/test_base.py | giommok/cumulator | 042e303b64976ef71a93a91aa85180f14d46c25e | [
"MIT"
] | 1 | 2020-06-10T10:24:33.000Z | 2020-06-10T10:24:33.000Z | import unittest
from src.cumulator.base import Cumulator
class TestBase(unittest.TestCase):
def test_run(self):
cumulator = Cumulator()
# Test without parameters
def foo():
return 1
output = cumulator.run(foo)
self.assertEqual(1, output)
# Tests with ... | 20.290323 | 43 | 0.573927 | 72 | 629 | 4.888889 | 0.472222 | 0.127841 | 0.153409 | 0.178977 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.322735 | 629 | 30 | 44 | 20.966667 | 0.807512 | 0.109698 | 0 | 0 | 0 | 0 | 0.014414 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.176471 | false | 0 | 0.117647 | 0.117647 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
033f1ce15dd3f5451ab5ea5f76d26c2940fd06fc | 4,792 | py | Python | test/test_cells_shapes_api.py | aspose-cells-cloud/aspose-cells-cloud-python | 0189236d38053dc67f7edc754b5101f17262cee8 | [
"MIT"
] | 3 | 2018-05-23T03:16:26.000Z | 2020-11-07T11:42:41.000Z | test/test_cells_shapes_api.py | aspose-cells-cloud/aspose-cells-cloud-python | 0189236d38053dc67f7edc754b5101f17262cee8 | [
"MIT"
] | null | null | null | test/test_cells_shapes_api.py | aspose-cells-cloud/aspose-cells-cloud-python | 0189236d38053dc67f7edc754b5101f17262cee8 | [
"MIT"
] | 4 | 2018-08-29T18:45:05.000Z | 2021-03-25T07:59:56.000Z | # coding: utf-8
"""
Web API Swagger specification
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import ... | 31.946667 | 229 | 0.654215 | 555 | 4,792 | 5.430631 | 0.210811 | 0.065693 | 0.041805 | 0.031851 | 0.663238 | 0.624751 | 0.612475 | 0.575979 | 0.469144 | 0.454545 | 0 | 0.016564 | 0.256678 | 4,792 | 149 | 230 | 32.161074 | 0.82959 | 0.150459 | 0 | 0.521739 | 1 | 0 | 0.04752 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.086957 | false | 0.076087 | 0.108696 | 0 | 0.206522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0349c26375f078381cec8ba16ba182742669965f | 397 | py | Python | tests/data_elements/test_person_name.py | GalBenZvi/dicom_parser | fc3e892ebf99c4e5d62cb5e7de7df341baf445fe | [
"MIT"
] | 11 | 2020-08-08T21:41:54.000Z | 2021-07-27T12:48:31.000Z | tests/data_elements/test_person_name.py | GalBenZvi/dicom_parser | fc3e892ebf99c4e5d62cb5e7de7df341baf445fe | [
"MIT"
] | 45 | 2020-03-03T14:32:16.000Z | 2021-07-30T16:42:17.000Z | tests/data_elements/test_person_name.py | GalBenZvi/dicom_parser | fc3e892ebf99c4e5d62cb5e7de7df341baf445fe | [
"MIT"
] | 6 | 2021-10-19T09:19:22.000Z | 2022-03-13T19:26:10.000Z | """
Definition of the :class:`PersonNameTestCase` class.
"""
from dicom_parser.data_elements.person_name import PersonName
from tests.test_data_element import DataElementTestCase
class PersonNameTestCase(DataElementTestCase):
"""
Tests for the
:class:`~dicom_parser.data_elements.person_name.PersonName`
... | 23.352941 | 63 | 0.755668 | 43 | 397 | 6.744186 | 0.511628 | 0.055172 | 0.103448 | 0.158621 | 0.227586 | 0.227586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153652 | 397 | 16 | 64 | 24.8125 | 0.863095 | 0.335013 | 0 | 0 | 0 | 0 | 0.04721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
034fd7638dab87452398628fd889166df2e7b69c | 909 | py | Python | src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py | BlockResearchGroup/compas_3gs | 66bd1545ce0f0034bd629753da9b8cd45fff6abd | [
"MIT"
] | 9 | 2020-04-29T03:21:45.000Z | 2022-01-23T02:54:27.000Z | src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py | BlockResearchGroup/compas_3gs | 66bd1545ce0f0034bd629753da9b8cd45fff6abd | [
"MIT"
] | 8 | 2020-01-30T15:17:17.000Z | 2021-09-28T16:56:42.000Z | src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py | BlockResearchGroup/compas_3gs | 66bd1545ce0f0034bd629753da9b8cd45fff6abd | [
"MIT"
] | 5 | 2020-03-31T12:53:29.000Z | 2020-12-07T21:57:50.000Z | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import scriptcontext as sc
import compas_rhino
from compas_3gs.rhino import SettingsForm
from compas_3gs.rhino import ForceVolMeshObject
from compas_3gs.rhino import FormNetworkObject
__commandname__ = "TGS... | 23.921053 | 124 | 0.624862 | 90 | 909 | 5.9 | 0.488889 | 0.056497 | 0.090395 | 0.101695 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008906 | 0.135314 | 909 | 37 | 125 | 24.567568 | 0.666667 | 0.178218 | 0 | 0 | 0 | 0 | 0.099596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.421053 | 0 | 0.526316 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cee01dc4ca892acb2cf457702c9a788e7276faf5 | 614 | py | Python | DSA/Python/src/dsa/lib/math/nums/tests/test_three_sum.py | JackieMa000/problems | c521558830a0bbf67f94109af92d7be4397d0a43 | [
"BSD-3-Clause"
] | null | null | null | DSA/Python/src/dsa/lib/math/nums/tests/test_three_sum.py | JackieMa000/problems | c521558830a0bbf67f94109af92d7be4397d0a43 | [
"BSD-3-Clause"
] | 1 | 2020-10-23T04:06:56.000Z | 2020-10-23T04:06:56.000Z | DSA/Python/src/dsa/lib/math/nums/tests/test_three_sum.py | JackieMa000/problems | c521558830a0bbf67f94109af92d7be4397d0a43 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from typing import List
from dsa.lib.math.nums.three_sum import ThreeSum
class ThreeSumTest(unittest.TestCase):
def test_case1(self):
self.assertEqual([[0, 0, 0]], self.three_sum([0, 0, 0, 0]))
self.assertEqual([[-2, 0, 2]], self.three_sum([-2, 0, 0, 2, 2]))
self.assertEqu... | 30.7 | 72 | 0.571661 | 97 | 614 | 3.546392 | 0.28866 | 0.034884 | 0.043605 | 0.034884 | 0.034884 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.213355 | 614 | 19 | 73 | 32.315789 | 0.625259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.214286 | false | 0 | 0.214286 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cee901804439796dcdaf795233ffadc0af103dcb | 183 | py | Python | hackerrank/Python/Hex Color Code/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Python/Hex Color Code/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Python/Hex Color Code/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import re
for _ in range(0, int(input())):
matches = re.findall(r'(#(?:[\da-f]{3}){1,2})(?!\w)(?=.*;)', input(), re.IGNORECASE)
if matches:
print(*matches, sep='\n')
| 26.142857 | 88 | 0.513661 | 27 | 183 | 3.444444 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.180328 | 183 | 6 | 89 | 30.5 | 0.593333 | 0 | 0 | 0 | 0 | 0 | 0.202186 | 0.191257 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cef51d1bebab54bc43146e3a95ff04dc8d153fb9 | 459 | py | Python | students/migrations/0006_auto_20200403_2355.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | students/migrations/0006_auto_20200403_2355.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | students/migrations/0006_auto_20200403_2355.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2020-04-03 20:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('students', '0005_subject'),
]
operations = [
migrations.RemoveField(
model_name='subject',
name='papers',
),
... | 19.125 | 47 | 0.538126 | 41 | 459 | 5.97561 | 0.682927 | 0.089796 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063333 | 0.346405 | 459 | 23 | 48 | 19.956522 | 0.753333 | 0.098039 | 0 | 0.294118 | 1 | 0 | 0.109223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
30030def9ba42ea5610ba31e8842674e5faf76f9 | 80 | py | Python | demo/py/constants.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | 1 | 2019-02-03T08:41:52.000Z | 2019-02-03T08:41:52.000Z | demo/py/constants.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | demo/py/constants.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | # Constants
DEFAULT_TITLE = 'Khan Academy'
HOME_DOMAIN = 'www.khanacademy.org'
| 16 | 35 | 0.7625 | 10 | 80 | 5.9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 80 | 4 | 36 | 20 | 0.842857 | 0.1125 | 0 | 0 | 0 | 0 | 0.449275 | 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 |
30183648f14231172bd2966dd1817ea75267e595 | 428 | py | Python | src/grokcore/registries/tests/registries/global.py | zopefoundation/grokcore.registries | 90c5221867e07c0194df36f13fa4dda5f3a4923c | [
"ZPL-2.1"
] | null | null | null | src/grokcore/registries/tests/registries/global.py | zopefoundation/grokcore.registries | 90c5221867e07c0194df36f13fa4dda5f3a4923c | [
"ZPL-2.1"
] | null | null | null | src/grokcore/registries/tests/registries/global.py | zopefoundation/grokcore.registries | 90c5221867e07c0194df36f13fa4dda5f3a4923c | [
"ZPL-2.1"
] | null | null | null | import grokcore.component as grok
from grokcore.component.interfaces import IContext
import grokcore.view as view
from zope.interface import Interface
from grokcore.registries.tests.registries.interfaces import IExample
class MyExample(grok.GlobalUtility):
grok.name('global')
grok.implements(IExample)
class... | 23.777778 | 68 | 0.773364 | 56 | 428 | 5.910714 | 0.553571 | 0.084592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 428 | 17 | 69 | 25.176471 | 0.909341 | 0 | 0 | 0 | 0 | 0 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
30246a2f75b29a8ba062fda27b38c1e541c4ddd0 | 190 | py | Python | exercicios nivel 4/06-PA.py | Carlosxc-dev/LINGUAGEM_PYTHON | 5d512038d9c841dea96e4ccea18da76265318199 | [
"MIT"
] | 1 | 2021-11-25T00:29:07.000Z | 2021-11-25T00:29:07.000Z | exercicios nivel 4/06-PA.py | Carlosxc-dev/LINGUAGEM_PYTHON | 5d512038d9c841dea96e4ccea18da76265318199 | [
"MIT"
] | null | null | null | exercicios nivel 4/06-PA.py | Carlosxc-dev/LINGUAGEM_PYTHON | 5d512038d9c841dea96e4ccea18da76265318199 | [
"MIT"
] | null | null | null | prim = int(input('primeiro termo: '))
raz = int(input('razao: '))
dec = prim + (10 - 1) * raz
for c in range(prim, dec + raz, raz):
print(' {}'.format(c,), end=' ->')
print('acabou')
| 19 | 38 | 0.547368 | 28 | 190 | 3.714286 | 0.642857 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.2 | 190 | 9 | 39 | 21.111111 | 0.664474 | 0 | 0 | 0 | 0 | 0 | 0.187166 | 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 |
3024da0c8cff966a108eb9eabba60d6ffdc885bc | 2,878 | py | Python | Gmail.py | renauddahou/appointment_bot | f78c4242c6d0eb1dfc2edfdca8c4f37b22d9cf93 | [
"MIT"
] | 3 | 2021-05-12T22:27:08.000Z | 2022-03-24T14:50:20.000Z | Gmail.py | renauddahou/appointment_bot | f78c4242c6d0eb1dfc2edfdca8c4f37b22d9cf93 | [
"MIT"
] | 3 | 2021-12-26T12:38:57.000Z | 2022-03-25T19:34:31.000Z | Gmail.py | renauddahou/appointment_bot | f78c4242c6d0eb1dfc2edfdca8c4f37b22d9cf93 | [
"MIT"
] | 4 | 2021-07-30T16:41:30.000Z | 2022-02-01T14:48:45.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 10 17:49:07 2020
@author: Amir
"""
import email
import imaplib
from email.header import decode_header
import re
def gmail_ckeck(email_address, password):
mail = imaplib.IMAP4_SSL('imap.gmail.com')
(retcode, capabilities) = mail.login(email_addres... | 35.530864 | 105 | 0.407575 | 252 | 2,878 | 4.555556 | 0.400794 | 0.076655 | 0.052265 | 0.062718 | 0.398955 | 0.277003 | 0.277003 | 0.277003 | 0.277003 | 0.277003 | 0 | 0.020209 | 0.50139 | 2,878 | 80 | 106 | 35.975 | 0.779791 | 0.061501 | 0 | 0.388889 | 0 | 0 | 0.056901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0.111111 | 0.074074 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
30332c35e591fa52e355d5d29a0ebf609792b6f8 | 191 | py | Python | doxieapi/__init__.py | Stealthii/doxieapi | bf6803a579b9a9f768e3e602e3cb2fb1eb0e8f3c | [
"0BSD"
] | null | null | null | doxieapi/__init__.py | Stealthii/doxieapi | bf6803a579b9a9f768e3e602e3cb2fb1eb0e8f3c | [
"0BSD"
] | null | null | null | doxieapi/__init__.py | Stealthii/doxieapi | bf6803a579b9a9f768e3e602e3cb2fb1eb0e8f3c | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
"""
doxieapi
~~~~~~~~
A Python library for the developer API of the Doxie Go Wi-Fi document scanner.
"""
from .api import DoxieScanner
__all__ = ['DoxieScanner']
| 13.642857 | 78 | 0.65445 | 25 | 191 | 4.84 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.183246 | 191 | 13 | 79 | 14.692308 | 0.769231 | 0.628272 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
303cbb53a5783485cb968c141cc21be11daa907d | 1,458 | py | Python | tests/test_main_page.py | litovsky2/shop_test | a618f23debfb2efa6f1fceb7eff6443a10f0b11f | [
"Apache-2.0"
] | 1 | 2020-05-03T21:32:49.000Z | 2020-05-03T21:32:49.000Z | tests/test_main_page.py | litovsky2/shop_test | a618f23debfb2efa6f1fceb7eff6443a10f0b11f | [
"Apache-2.0"
] | 1 | 2020-07-01T11:12:02.000Z | 2020-07-01T11:12:02.000Z | tests/test_main_page.py | litovsky2/shop_test | a618f23debfb2efa6f1fceb7eff6443a10f0b11f | [
"Apache-2.0"
] | 2 | 2021-03-08T14:46:09.000Z | 2021-08-30T13:12:21.000Z | import allure
from common.constans import PrintedDress, PrintedSummerDress, Colors
@allure.step('Product Card')
def test_open_product_card(app, login):
"""
1. Open page
2. Choose product
3. Open product card
4. Check product info
"""
app.page.select_woman_catego... | 37.384615 | 76 | 0.688615 | 181 | 1,458 | 5.39779 | 0.226519 | 0.143296 | 0.159672 | 0.163767 | 0.607984 | 0.607984 | 0.341863 | 0.227226 | 0.227226 | 0.227226 | 0 | 0.006855 | 0.199588 | 1,458 | 38 | 77 | 38.368421 | 0.830334 | 0.102195 | 0 | 0.090909 | 0 | 0 | 0.046453 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
304ae112f3d07172cbbce9d1b6a8739bf5926f0c | 1,304 | py | Python | generate_datajson/vaccine_data.py | a01sa01to/covid19-ibaraki | 83ae6a69bab2fc5d27af520d04820a57d4d93b13 | [
"MIT"
] | 47 | 2020-03-22T07:29:18.000Z | 2021-12-22T12:26:06.000Z | generate_datajson/vaccine_data.py | a01sa01to/covid19-ibaraki | 83ae6a69bab2fc5d27af520d04820a57d4d93b13 | [
"MIT"
] | 118 | 2020-03-26T15:32:36.000Z | 2021-12-29T12:45:20.000Z | generate_datajson/vaccine_data.py | a01sa01to/covid19-ibaraki | 83ae6a69bab2fc5d27af520d04820a57d4d93b13 | [
"MIT"
] | 24 | 2020-03-24T11:40:54.000Z | 2022-01-17T02:25:08.000Z | import json
file_content = []
with open('vaccine_data.ndjson', 'r', encoding="UTF-8") as f:
for row in f.readlines():
rowJson = json.loads(row.replace('\n',''))
if rowJson['prefecture'] == '08':
del rowJson['prefecture']
if not rowJson['medical_worker']:
del rowJson['medical_worker']
... | 31.047619 | 83 | 0.615798 | 197 | 1,304 | 3.888325 | 0.269036 | 0.287206 | 0.234987 | 0.101828 | 0.313316 | 0.154047 | 0.096606 | 0.096606 | 0.096606 | 0 | 0 | 0.017975 | 0.189417 | 1,304 | 41 | 84 | 31.804878 | 0.706717 | 0 | 0 | 0.055556 | 0 | 0 | 0.160276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.027778 | 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 |
305fb866531bf4803870ee45e5b57b07d815bff0 | 694 | py | Python | swiper/user/models.py | Han-spros/swiper | 47590fe930ff22cbdf837b896c767bc42124ff54 | [
"MIT"
] | null | null | null | swiper/user/models.py | Han-spros/swiper | 47590fe930ff22cbdf837b896c767bc42124ff54 | [
"MIT"
] | null | null | null | swiper/user/models.py | Han-spros/swiper | 47590fe930ff22cbdf837b896c767bc42124ff54 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class User(models.Model):
SEXS = ((0, '未知'), (1, '男'), (2, '女'))
LOCATIONS = (('gz', '广州'), ('sz', '深圳'), ('sh', '上海'), ('bj', '北京'), ('cq', '重庆'))
phonenum = models.CharField(max_length=11, unique=True)
nickname = models.CharField(max_length=16)... | 38.555556 | 86 | 0.654179 | 91 | 694 | 4.901099 | 0.593407 | 0.201794 | 0.121076 | 0.161435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032929 | 0.168588 | 694 | 18 | 87 | 38.555556 | 0.740035 | 0.034582 | 0 | 0 | 0 | 0 | 0.046338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
30608fa48d5c9db3434a2558d2ebd1e7a3ae3040 | 1,696 | py | Python | probs/discrete/negative_binomial.py | TylerYep/probs | feb46808bd7fe324f78642b581d6117fd6fedca4 | [
"MIT"
] | null | null | null | probs/discrete/negative_binomial.py | TylerYep/probs | feb46808bd7fe324f78642b581d6117fd6fedca4 | [
"MIT"
] | null | null | null | probs/discrete/negative_binomial.py | TylerYep/probs | feb46808bd7fe324f78642b581d6117fd6fedca4 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from scipy.stats import nbinom # type: ignore[import]
from probs.discrete.rv import DiscreteRV
@dataclass(eq=False)
class NegativeBinomial(DiscreteRV):
"""
The negative binomial distribution is a discrete probability distribution
that models the number of failures k in... | 30.836364 | 80 | 0.646816 | 250 | 1,696 | 4.36 | 0.436 | 0.036697 | 0.022018 | 0.041284 | 0.16055 | 0.140367 | 0.124771 | 0.124771 | 0.124771 | 0.124771 | 0 | 0.011155 | 0.260024 | 1,696 | 54 | 81 | 31.407407 | 0.857371 | 0.428066 | 0 | 0.076923 | 0 | 0 | 0.027473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | 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 |
306ba668c7b411ccfc244e0a763013d6e68ac1a9 | 171 | py | Python | ex049.py | vinisantos7/PythonExercicios | bc8f38e03a606d6b0216632a93affeab0792e534 | [
"MIT"
] | 2 | 2021-11-04T21:09:11.000Z | 2021-11-08T09:42:10.000Z | ex049.py | vinisantos7/PythonExercicios | bc8f38e03a606d6b0216632a93affeab0792e534 | [
"MIT"
] | null | null | null | ex049.py | vinisantos7/PythonExercicios | bc8f38e03a606d6b0216632a93affeab0792e534 | [
"MIT"
] | null | null | null | print("x"*25)
print("Bem-Vindo a Tabuada v2.0")
print("x"*25)
n = int(input("Digite um número para a tabuada: "))
for t in range(1, 11):
print(f"{n} x {t:2} = {n*t}") | 24.428571 | 51 | 0.590643 | 36 | 171 | 2.805556 | 0.666667 | 0.118812 | 0.158416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.169591 | 171 | 7 | 52 | 24.428571 | 0.640845 | 0 | 0 | 0.333333 | 0 | 0 | 0.453488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
307806ce04eed5ab7fc2db0bbc77902ec9abf704 | 180 | py | Python | Jarvis/features/launch_app.py | HezyCB/JARVIS-2 | aa3ba0aa2f4595c48e0bd18211c65a0569684eb4 | [
"MIT"
] | 76 | 2021-02-03T14:44:27.000Z | 2022-03-28T04:39:36.000Z | Jarvis/features/launch_app.py | HezyCB/JARVIS-2 | aa3ba0aa2f4595c48e0bd18211c65a0569684eb4 | [
"MIT"
] | 9 | 2021-03-25T03:17:36.000Z | 2022-03-19T19:24:42.000Z | Jarvis/features/launch_app.py | HezyCB/JARVIS-2 | aa3ba0aa2f4595c48e0bd18211c65a0569684eb4 | [
"MIT"
] | 77 | 2021-03-06T08:10:36.000Z | 2022-03-25T16:10:05.000Z | import subprocess
def launch_app(path_of_app):
try:
subprocess.call([path_of_app])
return True
except Exception as e:
print(e)
return False | 20 | 38 | 0.627778 | 24 | 180 | 4.5 | 0.708333 | 0.111111 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305556 | 180 | 9 | 39 | 20 | 0.864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 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 |
307b3ba6e61f0edd61df95b0af94e845aa5436e7 | 418 | py | Python | django-rest-framework-fast/api/v2/views.py | mervatkheir/kite-python-blog-post-code | 9a331e5d327cd27c6ecd72926f3e74afd252efb5 | [
"MIT"
] | 238 | 2018-10-10T18:50:40.000Z | 2022-02-09T21:26:24.000Z | django-rest-framework-fast/api/v2/views.py | mrrizal/kite-python-blog-post-code | 597f2d75b2ad5dda97e9b19f6e9c7195642e1739 | [
"MIT"
] | 38 | 2019-12-04T22:42:45.000Z | 2022-03-12T00:04:57.000Z | django-rest-framework-fast/api/v2/views.py | mrrizal/kite-python-blog-post-code | 597f2d75b2ad5dda97e9b19f6e9c7195642e1739 | [
"MIT"
] | 154 | 2018-11-11T22:48:09.000Z | 2022-03-22T07:12:18.000Z | from characters.models import Character
from characters.serializers import CharacterSerializer
from rest_framework import generics
class CharacterListView(generics.ListCreateAPIView):
queryset = Character.objects.all()
serializer_class = CharacterSerializer
class CharacterDetailView(generics.RetrieveUpdateD... | 29.857143 | 65 | 0.832536 | 37 | 418 | 9.324324 | 0.513514 | 0.081159 | 0.13913 | 0.156522 | 0.353623 | 0.353623 | 0.353623 | 0 | 0 | 0 | 0 | 0 | 0.114833 | 418 | 13 | 66 | 32.153846 | 0.932432 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0619dcc1160c6a4dfdbc2934437079b0ef6afaf8 | 395 | py | Python | setup.py | JurgenPalsma/dc-generator | 2df92be5d1061864ee654eb413bdd08e599bc3dd | [
"MIT"
] | 12 | 2020-03-26T13:53:27.000Z | 2022-03-26T16:26:20.000Z | setup.py | JurgenPalsma/dc-generator | 2df92be5d1061864ee654eb413bdd08e599bc3dd | [
"MIT"
] | null | null | null | setup.py | JurgenPalsma/dc-generator | 2df92be5d1061864ee654eb413bdd08e599bc3dd | [
"MIT"
] | 7 | 2019-02-23T12:25:10.000Z | 2021-12-09T07:20:13.000Z | from setuptools import setup
setup(name='dcgenerator',
version='0.1',
description='Generate dc events from time series',
url='https://github.com/JurgenPalsma/dcgenerator',
author='Flying Circus',
author_email='jurgen.palsma@gmail.com',
license='MIT',
packages=['dcgenerator'],
... | 28.214286 | 56 | 0.63038 | 42 | 395 | 5.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006601 | 0.232911 | 395 | 14 | 57 | 28.214286 | 0.805281 | 0 | 0 | 0 | 1 | 0 | 0.373737 | 0.058081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0637f6c3c9de8ad36608c3847e85336fe19b3b26 | 645 | py | Python | and/ttp/2017/semana4/walkingAmongMountains.py | aLagoG/kygerand | 0991cf5d5c3d49f4602b6992d4e3bdec8e27898e | [
"MIT"
] | 1 | 2017-09-16T04:05:31.000Z | 2017-09-16T04:05:31.000Z | and/ttp/2017/semana4/walkingAmongMountains.py | aLagoG/kygerand | 0991cf5d5c3d49f4602b6992d4e3bdec8e27898e | [
"MIT"
] | 9 | 2017-01-25T19:34:38.000Z | 2020-07-27T17:02:09.000Z | and/ttp/2017/semana4/walkingAmongMountains.py | aLagoG/kygerand | 0991cf5d5c3d49f4602b6992d4e3bdec8e27898e | [
"MIT"
] | null | null | null | n = input();
mp = [[int(i) for i in raw_input()] for j in xrange(n)]
pnt = [[0 for i in xrange(n)] for j in xrange(n)]
x, y = [int(i) for i in raw_input().split()]
for i in xrange(1,x):
pnt[0][i] = pnt[0][i-1]+mp[0][i]-mp[0][i-1] if mp[0][i]>mp[0][i-1] else pnt[0][i-1]
for i in xrange(1,y):
pnt[i][0] = pnt[i-1][0]+... | 37.941176 | 85 | 0.525581 | 184 | 645 | 1.831522 | 0.11413 | 0.071217 | 0.106825 | 0.142433 | 0.5727 | 0.41543 | 0.320475 | 0 | 0 | 0 | 0 | 0.071823 | 0.15814 | 645 | 17 | 86 | 37.941176 | 0.548803 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
064ab2c6467200414b067feed1868bd5e05cfaa4 | 1,293 | py | Python | caravel/loaders/_png.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | null | null | null | caravel/loaders/_png.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | null | null | null | caravel/loaders/_png.py | neurospin/pycaravel | 412d37ae1b06afcc9645e01a096bbe2674cfe47a | [
"CECILL-B"
] | 1 | 2020-08-27T13:17:00.000Z | 2020-08-27T13:17:00.000Z | # coding: utf-8
##########################################################################
# NSAp - Copyright (C) CEA, 2020
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for det... | 24.865385 | 74 | 0.520495 | 147 | 1,293 | 4.55102 | 0.530612 | 0.044843 | 0.032885 | 0.06278 | 0.071749 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006383 | 0.273009 | 1,293 | 51 | 75 | 25.352941 | 0.705319 | 0.539056 | 0 | 0 | 0 | 0 | 0.014035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
06556055c40c35a9d717e9e1b378737090b2df39 | 302 | py | Python | tg_gui/_platform_displayio_/shared.py | TG-Techie/tg-gui | 11d0eabeffb36fa43fc90f818624053928c37637 | [
"MIT"
] | 1 | 2019-03-20T19:49:14.000Z | 2019-03-20T19:49:14.000Z | tg_gui/_platform_displayio_/shared.py | TG-Techie/tg_gui | 11d0eabeffb36fa43fc90f818624053928c37637 | [
"MIT"
] | 15 | 2019-02-09T12:24:05.000Z | 2021-12-01T17:21:06.000Z | tg_gui/_platform_displayio_/shared.py | TG-Techie/tg-gui | 11d0eabeffb36fa43fc90f818624053928c37637 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from displayio import Shape, Group, TileGrid, Palette, Bitmap, OnDiskBitmap
NativeElement = Group | Shape | TileGrid | Palette | Bitmap | OnDiskBitmap
NativeContainer = Group
else:
NativeElement = object
NativeContainer = object
| 27.454545 | 79 | 0.748344 | 31 | 302 | 7.225806 | 0.548387 | 0.107143 | 0.1875 | 0.294643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198676 | 302 | 10 | 80 | 30.2 | 0.92562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
067c09b6f2a552b9aa72b55a71741cdde3c0cbee | 8,732 | py | Python | luna/mol/atom.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | 2 | 2022-03-23T13:34:36.000Z | 2022-03-27T22:21:08.000Z | luna/mol/atom.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | 1 | 2022-03-22T19:29:50.000Z | 2022-03-22T19:29:50.000Z | luna/mol/atom.py | keiserlab/LUNA | ab2a968550f3f91107f8a91ad00da6aa3e2df68b | [
"MIT"
] | null | null | null | import numpy as np
from openbabel import openbabel as ob
import logging
logger = logging.getLogger()
class AtomData:
"""Store atomic data (atomic number, coordinates, bond type, and serial number).
Parameters
----------
atomic_num : int
Atomic number.
coord : array_like of float (size 3)... | 34.928 | 122 | 0.61475 | 1,134 | 8,732 | 4.499118 | 0.169312 | 0.028812 | 0.0196 | 0.038808 | 0.349667 | 0.251666 | 0.196982 | 0.19071 | 0.19071 | 0.19071 | 0 | 0.004827 | 0.264544 | 8,732 | 249 | 123 | 35.068273 | 0.789629 | 0.390289 | 0 | 0.223141 | 0 | 0.008264 | 0.043185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.289256 | false | 0 | 0.024793 | 0.033058 | 0.561983 | 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 |
0698ddf547c57339f83986d2ec83f39b1adf80a3 | 233 | py | Python | setup.py | kowalcj0/teeb | 15b87d9857510890fbe417e4de473b8b685b3319 | [
"BSD-3-Clause"
] | null | null | null | setup.py | kowalcj0/teeb | 15b87d9857510890fbe417e4de473b8b685b3319 | [
"BSD-3-Clause"
] | null | null | null | setup.py | kowalcj0/teeb | 15b87d9857510890fbe417e4de473b8b685b3319 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
setup(
name="Teeb",
install_requires=["chardet==4.0.0", "send2trash==1.5.0", "wand==0.6.5"],
)
| 25.888889 | 76 | 0.656652 | 37 | 233 | 4.108108 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055838 | 0.154506 | 233 | 8 | 77 | 29.125 | 0.715736 | 0.407725 | 0 | 0 | 0 | 0 | 0.340741 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
069d259501ee0ad7f4c234fd4a9336eca8bab60c | 637 | py | Python | playlist_organizer/client/deezer/settings.py | perminovs/playlist_organizer | cc5da2b0a031e29235e9ebe982f1062900602dd4 | [
"MIT"
] | null | null | null | playlist_organizer/client/deezer/settings.py | perminovs/playlist_organizer | cc5da2b0a031e29235e9ebe982f1062900602dd4 | [
"MIT"
] | null | null | null | playlist_organizer/client/deezer/settings.py | perminovs/playlist_organizer | cc5da2b0a031e29235e9ebe982f1062900602dd4 | [
"MIT"
] | null | null | null | from pydantic import BaseSettings
class DeezerSettings(BaseSettings):
api_host: str = 'https://api.deezer.com'
user_info_path: str = 'user/me'
playlists_path: str = 'user/me/playlists'
playlist_tracks_path: str = 'playlist/{}/tracks'
@property
def user_info_url(self) -> str:
return f... | 25.48 | 61 | 0.66876 | 83 | 637 | 4.879518 | 0.337349 | 0.069136 | 0.074074 | 0.118519 | 0.345679 | 0.237037 | 0.237037 | 0.237037 | 0.237037 | 0 | 0 | 0 | 0.205651 | 637 | 24 | 62 | 26.541667 | 0.800395 | 0 | 0 | 0.176471 | 0 | 0 | 0.295133 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.176471 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
069f831615d2592dffe7e15e0512bd6627e063ca | 1,652 | py | Python | pyage2/lib/actions.py | kachayev/pyage2 | adf87e0deeddaa4301dbcaf4fa7d396a71d129de | [
"Apache-2.0"
] | 13 | 2021-07-09T07:10:42.000Z | 2022-03-16T10:38:59.000Z | pyage2/lib/actions.py | kachayev/pyage2 | adf87e0deeddaa4301dbcaf4fa7d396a71d129de | [
"Apache-2.0"
] | null | null | null | pyage2/lib/actions.py | kachayev/pyage2 | adf87e0deeddaa4301dbcaf4fa7d396a71d129de | [
"Apache-2.0"
] | 1 | 2022-01-16T13:24:32.000Z | 2022-01-16T13:24:32.000Z | # Copyright 2021 PyAge2, Oleksii Kachaiev <kachayev@gmail.com>. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | 37.545455 | 84 | 0.766344 | 233 | 1,652 | 5.317597 | 0.476395 | 0.048426 | 0.048426 | 0.050847 | 0.054883 | 0.054883 | 0 | 0 | 0 | 0 | 0 | 0.009286 | 0.152542 | 1,652 | 44 | 85 | 37.545455 | 0.875714 | 0.366223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.173913 | 0.086957 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
06a25915be2cf155b3153cd03aaa095116d1e484 | 352 | py | Python | Curso em Video - Exercicios/ex006.py | JefferMarcelino/Aulas-Python | 3885b1cfa7f27b90b702ee81fc5eab108c029e52 | [
"MIT"
] | 2 | 2021-01-27T19:30:05.000Z | 2022-01-10T20:34:53.000Z | Curso em Video - Exercicios/ex006.py | JefferMarcelino/Aulas-Python | 3885b1cfa7f27b90b702ee81fc5eab108c029e52 | [
"MIT"
] | null | null | null | Curso em Video - Exercicios/ex006.py | JefferMarcelino/Aulas-Python | 3885b1cfa7f27b90b702ee81fc5eab108c029e52 | [
"MIT"
] | null | null | null | """
EXERCÍCIO 006: Dobro, Triplo, Raiz Quadrada
Crie um algoritmo que leia um número e mostre o seu dobro, triplo e raiz quadrada.
"""
n = int(input('Digite um número: '))
print('O dobro de {} vale {}.'.format(n, (n * 2)))
print('O triplo de {} vale {}.'.format(n, (n * 3)))
print('A raiz quadrada de {} é igual a {:.2f... | 35.2 | 82 | 0.619318 | 61 | 352 | 3.57377 | 0.52459 | 0.165138 | 0.110092 | 0.119266 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.176136 | 352 | 9 | 83 | 39.111111 | 0.724138 | 0.360795 | 0 | 0 | 0 | 0 | 0.470046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
ebe8e591a0b9b4b36a891f5a5dfead02a0b973da | 2,300 | py | Python | hungarian/python/code/point.py | hrutkabence/tutorials | bd76294860804aee8ecda5e1445464506bf02ee0 | [
"CC0-1.0"
] | null | null | null | hungarian/python/code/point.py | hrutkabence/tutorials | bd76294860804aee8ecda5e1445464506bf02ee0 | [
"CC0-1.0"
] | null | null | null | hungarian/python/code/point.py | hrutkabence/tutorials | bd76294860804aee8ecda5e1445464506bf02ee0 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import math
class Point(object):
""" class for 2D points
x, y - position of point, default 0,0
p - decimals in coordinate output, default 2
"""
def __init__(self, x=0, y=0, p=2):
self.x = x
self.y = y
self.p = p
de... | 25.274725 | 65 | 0.513478 | 330 | 2,300 | 3.409091 | 0.290909 | 0.057778 | 0.037333 | 0.039111 | 0.213333 | 0.190222 | 0.122667 | 0.122667 | 0.122667 | 0.122667 | 0 | 0.033592 | 0.326957 | 2,300 | 90 | 66 | 25.555556 | 0.693152 | 0.196522 | 0 | 0.056604 | 0 | 0 | 0.012651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264151 | false | 0 | 0.018868 | 0 | 0.528302 | 0.075472 | 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 |
ebf03515b2af7a1e35e2369f06d9b3087f0c51d9 | 2,893 | py | Python | models/models.py | ahuimanu/vatsimlib | 12f1bcd248b2157349304583cbc1b499d9f39be0 | [
"MIT"
] | null | null | null | models/models.py | ahuimanu/vatsimlib | 12f1bcd248b2157349304583cbc1b499d9f39be0 | [
"MIT"
] | null | null | null | models/models.py | ahuimanu/vatsimlib | 12f1bcd248b2157349304583cbc1b499d9f39be0 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from datetime import datetime
from typing import Optional
@dataclass
class VatsimGeneral:
version: str
reload: str
update: str # will be used as a pk
update_timestamp: str # ISO 8601 date string in UTC
connected_clients: int
unique_users: int
def get_dat... | 28.087379 | 230 | 0.614587 | 346 | 2,893 | 5.052023 | 0.589595 | 0.080092 | 0.020595 | 0.018307 | 0.098398 | 0.098398 | 0.098398 | 0.098398 | 0.098398 | 0.098398 | 0 | 0.153185 | 0.316281 | 2,893 | 102 | 231 | 28.362745 | 0.730536 | 0.322157 | 0 | 0.350649 | 0 | 0 | 0.010026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0.064935 | 0.038961 | 0.012987 | 0.805195 | 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 |
ebf042ca58b471a448c4adbffa95dc9ab6a93834 | 360 | py | Python | temp-api/app/models.py | TheLongRunSmoke/birdfeeder | 6f238c9b8c8abdc866aaf042f79b674714fdaa8c | [
"MIT"
] | null | null | null | temp-api/app/models.py | TheLongRunSmoke/birdfeeder | 6f238c9b8c8abdc866aaf042f79b674714fdaa8c | [
"MIT"
] | 1 | 2017-11-28T04:26:45.000Z | 2017-11-28T04:57:47.000Z | temp-api/app/models.py | TheLongRunSmoke/birdfeeder | 6f238c9b8c8abdc866aaf042f79b674714fdaa8c | [
"MIT"
] | null | null | null | from app import db
class Temperature(db.Model):
"""
Model for temperature storing.
"""
timestamp = db.Column(db.Integer, primary_key=True, index=True, unique=True)
internal = db.Column(db.Float)
external = db.Column(db.Float)
cpu = db.Column(db.Float)
def __repr__(self):
re... | 24 | 80 | 0.644444 | 47 | 360 | 4.829787 | 0.553191 | 0.140969 | 0.176211 | 0.198238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 360 | 14 | 81 | 25.714286 | 0.810714 | 0.083333 | 0 | 0 | 0 | 0 | 0.048232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 2 |
ebf4ac0d537eab2740d82a66c4418235ab9c1ffc | 885 | py | Python | src/ytbdl/__init__.py | danloveg/dl-album | 20d142a0992f61b9d13beceb6abe9a9086e33e6a | [
"MIT"
] | null | null | null | src/ytbdl/__init__.py | danloveg/dl-album | 20d142a0992f61b9d13beceb6abe9a9086e33e6a | [
"MIT"
] | null | null | null | src/ytbdl/__init__.py | danloveg/dl-album | 20d142a0992f61b9d13beceb6abe9a9086e33e6a | [
"MIT"
] | null | null | null | import os
import confuse
config = confuse.LazyConfig('ytbdl', None)
def get_loaded_config_sources():
''' Get existing configuration files
Returns:
(list): A list of (string) paths to configuration files that exist on
the file system. Returns an empty list if no configuration files
... | 26.818182 | 79 | 0.673446 | 121 | 885 | 4.834711 | 0.46281 | 0.123077 | 0.051282 | 0.075214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 885 | 32 | 80 | 27.65625 | 0.866667 | 0.503955 | 0 | 0 | 0 | 0 | 0.042895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
23020e348129d1d194a31757b17377da03a41aa9 | 652 | py | Python | dongtai_agent_python/tests/policy/test_tracking.py | jinghao1/DongTai-agent-python | c06e9dd72c49bde952efe3e3153fc2f5501461ca | [
"Apache-2.0"
] | 17 | 2021-11-13T11:57:10.000Z | 2022-03-26T12:45:30.000Z | dongtai_agent_python/tests/policy/test_tracking.py | Bidaya0/DongTai-agent-python | 4e437b22cb95648e583d1009df821520d7d1d3c3 | [
"Apache-2.0"
] | 2 | 2021-11-08T07:43:38.000Z | 2021-12-09T02:23:46.000Z | dongtai_agent_python/tests/policy/test_tracking.py | Bidaya0/DongTai-agent-python | 4e437b22cb95648e583d1009df821520d7d1d3c3 | [
"Apache-2.0"
] | 17 | 2021-11-02T08:21:57.000Z | 2022-02-19T13:24:36.000Z | import unittest
from dongtai_agent_python.policy import tracking
class TestTracking(unittest.TestCase):
def test_yaml_load_is_safe(self):
try:
import yaml
self.assertFalse(tracking.yaml_load_is_safe(('test', yaml.UnsafeLoader), None))
self.assertFalse(tracking.yaml_loa... | 29.636364 | 98 | 0.653374 | 75 | 652 | 5.28 | 0.44 | 0.10101 | 0.126263 | 0.176768 | 0.396465 | 0.396465 | 0.396465 | 0.310606 | 0 | 0 | 0 | 0.003968 | 0.226994 | 652 | 21 | 99 | 31.047619 | 0.781746 | 0 | 0 | 0 | 0 | 0 | 0.050614 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.066667 | false | 0.066667 | 0.266667 | 0 | 0.4 | 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 |
231a46a705da24db623316f5754d9f510e7b8d96 | 1,527 | py | Python | api/views/user.py | jcasmer/grow_control_backend- | 6a18a137e0a16138607413925727d7e5f8486777 | [
"BSD-3-Clause"
] | 1 | 2019-05-11T14:45:47.000Z | 2019-05-11T14:45:47.000Z | api/views/user.py | jcasmer/grow_control_backend- | 6a18a137e0a16138607413925727d7e5f8486777 | [
"BSD-3-Clause"
] | 6 | 2021-03-18T20:45:02.000Z | 2021-09-22T17:41:38.000Z | api/views/user.py | jcasmer/grow_control_backend- | 6a18a137e0a16138607413925727d7e5f8486777 | [
"BSD-3-Clause"
] | null | null | null | '''
'''
from django.contrib.auth.models import User, Group
from rest_framework import status, viewsets
from rest_framework.exceptions import ValidationError
from rest_framework import mixins
from rest_framework.filters import OrderingFilter
from django_filters.rest_framework import DjangoFilterBackend
fr... | 31.8125 | 102 | 0.728225 | 154 | 1,527 | 7.071429 | 0.467532 | 0.059688 | 0.062443 | 0.063361 | 0.161616 | 0.112029 | 0.112029 | 0.112029 | 0.112029 | 0.112029 | 0 | 0 | 0.200393 | 1,527 | 47 | 103 | 32.489362 | 0.891892 | 0.123117 | 0 | 0.153846 | 0 | 0 | 0.024019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.346154 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
231f0d4149a6494f0d37247083fc3c9b9526fe29 | 504 | py | Python | graphchart.py | hengloem/py-data-visualization | 181ff5db7ace8111508efc7d5c351839935d652e | [
"MIT"
] | null | null | null | graphchart.py | hengloem/py-data-visualization | 181ff5db7ace8111508efc7d5c351839935d652e | [
"MIT"
] | null | null | null | graphchart.py | hengloem/py-data-visualization | 181ff5db7ace8111508efc7d5c351839935d652e | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
years = [1950, 1955, 1960, 1965, 1970, 1975, 1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015]
pops = [2.5, 2.7, 3, 3.3, 3.6, 4.0, 4.4, 4.8, 5.3, 5.7, 6.1, 6.5, 6.9, 7.3]
deaths = [1.2, 1.7, 1.8, 2.2, 2.5, 2.7, 2.9, 3, 3.1, 3.3, 3.5, 3.8, 4, 4.3]
plt.plot(years, pops, color=(255/255, 1... | 26.526316 | 92 | 0.605159 | 111 | 504 | 2.747748 | 0.423423 | 0.039344 | 0.029508 | 0.02623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306604 | 0.15873 | 504 | 18 | 93 | 28 | 0.412736 | 0 | 0 | 0 | 0 | 0 | 0.12749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
231f9bd0145ee2eafeef11269aea705cc5fa7a87 | 6,136 | py | Python | source/FnAssetAPI/Host.py | IngenuityEngine/ftrack-connect-foundry | a0d5ba788e3dc5c1536ebe9740bcf4393e3f5e1d | [
"MIT"
] | 1 | 2019-10-22T06:33:08.000Z | 2019-10-22T06:33:08.000Z | source/FnAssetAPI/Host.py | IngenuityEngine/ftrack-connect-foundry | a0d5ba788e3dc5c1536ebe9740bcf4393e3f5e1d | [
"MIT"
] | null | null | null | source/FnAssetAPI/Host.py | IngenuityEngine/ftrack-connect-foundry | a0d5ba788e3dc5c1536ebe9740bcf4393e3f5e1d | [
"MIT"
] | null | null | null | from .audit import auditApiCall
from .exceptions import InvalidCommand
__all__ = ['Host']
class Host(object):
"""
The Host provides an abstraction of the caller of API functions. Largely to
provide information about the Document state to the Manager, without
requiring specific knowledge of which host it is... | 25.355372 | 82 | 0.699641 | 796 | 6,136 | 5.371859 | 0.34799 | 0.010524 | 0.039991 | 0.014032 | 0.116464 | 0.033676 | 0 | 0 | 0 | 0 | 0 | 0.000637 | 0.23191 | 6,136 | 241 | 83 | 25.460581 | 0.906641 | 0.728162 | 0 | 0.4 | 0 | 0 | 0.049003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.314286 | false | 0 | 0.057143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
232912e4c2ce40a26c2b13a2ea3b4a25afdd40e1 | 3,077 | py | Python | bookstoreapp/forms.py | Timoh97/SMART-READERS | 99ff765d156b3a40698a6d0c9137f8afa03544ac | [
"MIT"
] | null | null | null | bookstoreapp/forms.py | Timoh97/SMART-READERS | 99ff765d156b3a40698a6d0c9137f8afa03544ac | [
"MIT"
] | null | null | null | bookstoreapp/forms.py | Timoh97/SMART-READERS | 99ff765d156b3a40698a6d0c9137f8afa03544ac | [
"MIT"
] | 1 | 2022-01-14T10:26:35.000Z | 2022-01-14T10:26:35.000Z | from django import forms
from .models import *
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.db import transaction
from bookstoreapp.models import *
#ordersystem
from django import forms
# from django.contrib.auth.models import User
from django.contrib.auth import get_user... | 39.961039 | 165 | 0.675333 | 364 | 3,077 | 5.598901 | 0.230769 | 0.052993 | 0.061825 | 0.07949 | 0.663395 | 0.623651 | 0.623651 | 0.58685 | 0.439647 | 0.439647 | 0 | 0.008427 | 0.19012 | 3,077 | 77 | 166 | 39.961039 | 0.80939 | 0.708807 | 0 | 0.368421 | 0 | 0 | 0.141686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.473684 | 0 | 0.736842 | 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 |
23464d407345ae66d94f69478f5a3d5337be637f | 946 | py | Python | golf-sim/golf-sim.py | cbarrese/katas | 655b07562c06bb8b532ca141705ff127fb7e9e12 | [
"MIT"
] | null | null | null | golf-sim/golf-sim.py | cbarrese/katas | 655b07562c06bb8b532ca141705ff127fb7e9e12 | [
"MIT"
] | null | null | null | golf-sim/golf-sim.py | cbarrese/katas | 655b07562c06bb8b532ca141705ff127fb7e9e12 | [
"MIT"
] | null | null | null | import random
p = [4, 3, 4, 4, 5, 3, 5, 4, 4, 5, 4, 4, 3, 4, 5, 4, 3, 4]
b = ['b', 0, 'B']
f = [{i: [0, 0] for i in range(4)} for z in range(3)]
w = None
for r in range(3):
c = True
a = [0, 1, 2, 3]
m = None
while c:
t = [map(lambda x: random.randint(x-1, x+1), p) for i in range(4)]
s = ... | 30.516129 | 99 | 0.428118 | 203 | 946 | 1.995074 | 0.280788 | 0.049383 | 0.059259 | 0.081481 | 0.083951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064309 | 0.342495 | 946 | 30 | 100 | 31.533333 | 0.586817 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.066667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
236c5f0d3ad9eba2bd8b973cfc71aa175670c211 | 2,178 | py | Python | game/textIntro.py | guluc3m/ElJuegoDePusles | 45b5ac281c3ac8ec1f144556e588346a7a015021 | [
"MIT"
] | 1 | 2018-10-21T11:42:31.000Z | 2018-10-21T11:42:31.000Z | game/textIntro.py | guluc3m/ElJuegoDePusles | 45b5ac281c3ac8ec1f144556e588346a7a015021 | [
"MIT"
] | null | null | null | game/textIntro.py | guluc3m/ElJuegoDePusles | 45b5ac281c3ac8ec1f144556e588346a7a015021 | [
"MIT"
] | 2 | 2018-12-30T14:04:50.000Z | 2019-10-27T03:32:41.000Z | #Intro
Intro_Tavern_Elrick = u"¿Qué os parece? ¿Trabajaremos juntos?"
Intro_Tavern_Alida = u"¿Pero si todos superamos las pruebas, quien se casara con la princesa?"
Harek = u"Supongo que la princesa se casará con quién más le guste"
Elrick = u"Sería lo más inteligente. Utilizar las pruebas para conocernos y ver nuestra... | 87.12 | 246 | 0.772268 | 386 | 2,178 | 4.375648 | 0.494819 | 0.029011 | 0.015394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171258 | 2,178 | 25 | 247 | 87.12 | 0.92964 | 0.017906 | 0 | 0 | 0 | 0.304348 | 0.853602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2373ab8962f73ef7abf5effc552053ed5c20e4ab | 146 | py | Python | ex28_sh/sh_spike.py | techieguy007/learn-more-python-the-hard-way-solutions | 7886c860f69d69739a41d6490b8dc3fa777f227b | [
"Zed",
"Unlicense"
] | 466 | 2016-11-01T19:40:59.000Z | 2022-03-23T16:34:13.000Z | ex28_sh/sh_spike.py | Desperaaado/learn-more-python-the-hard-way-solutions | 7886c860f69d69739a41d6490b8dc3fa777f227b | [
"Zed",
"Unlicense"
] | 2 | 2017-09-20T09:01:53.000Z | 2017-09-21T15:03:56.000Z | ex28_sh/sh_spike.py | Desperaaado/learn-more-python-the-hard-way-solutions | 7886c860f69d69739a41d6490b8dc3fa777f227b | [
"Zed",
"Unlicense"
] | 241 | 2017-06-17T08:02:26.000Z | 2022-03-30T09:09:39.000Z | import subprocess
import sys
import os
while True:
line = input('> ')
exec = line.strip().split(' ')
status = subprocess.run(exec)
| 13.272727 | 34 | 0.630137 | 18 | 146 | 5.111111 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232877 | 146 | 10 | 35 | 14.6 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
88cc9bf2217df7c1469f0332dd2da660bb7b852c | 19,144 | py | Python | src/win/efuseWin_BootCfg2.py | KKKelvin7/NXP-MCUBootUtility | b4cded82aa9d20c2cb718f60493d1226fc999b43 | [
"Apache-2.0"
] | null | null | null | src/win/efuseWin_BootCfg2.py | KKKelvin7/NXP-MCUBootUtility | b4cded82aa9d20c2cb718f60493d1226fc999b43 | [
"Apache-2.0"
] | null | null | null | src/win/efuseWin_BootCfg2.py | KKKelvin7/NXP-MCUBootUtility | b4cded82aa9d20c2cb718f60493d1226fc999b43 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Aug 8 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
impor... | 48.465823 | 190 | 0.729994 | 3,065 | 19,144 | 4.287765 | 0.082871 | 0.07457 | 0.141531 | 0.051058 | 0.787171 | 0.728961 | 0.693806 | 0.578907 | 0.416527 | 0.402831 | 0 | 0.053856 | 0.124164 | 19,144 | 394 | 191 | 48.588832 | 0.729946 | 0.012746 | 0 | 0.012295 | 1 | 0 | 0.042886 | 0.002583 | 0 | 0 | 0.001076 | 0 | 0 | 1 | 0.020492 | false | 0.004098 | 0.008197 | 0 | 0.032787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88cd952c28db68aa348176e890db4ed64336fc66 | 332 | py | Python | hud_api_replace/management/commands/delete_expired_geodata.py | Ooblioob/django-hud | 66aac9f182f8c68a380dc36ade46d7e0df30bf24 | [
"CC0-1.0"
] | 10 | 2015-01-05T21:13:07.000Z | 2017-05-28T04:08:15.000Z | hud_api_replace/management/commands/delete_expired_geodata.py | Ooblioob/django-hud | 66aac9f182f8c68a380dc36ade46d7e0df30bf24 | [
"CC0-1.0"
] | 15 | 2015-01-29T02:08:39.000Z | 2018-01-17T13:24:50.000Z | hud_api_replace/management/commands/delete_expired_geodata.py | Ooblioob/django-hud | 66aac9f182f8c68a380dc36ade46d7e0df30bf24 | [
"CC0-1.0"
] | 34 | 2015-01-26T19:34:47.000Z | 2021-02-20T10:55:22.000Z | from django.core.management.base import BaseCommand, CommandError
import time
from hud_api_replace.models import CachedGeodata
class Command(BaseCommand):
help = 'Deletes geodata records that are expired.'
def handle(self, *args, **options):
CachedGeodata.objects.all().filter(expires__lte=time.time(... | 27.666667 | 77 | 0.759036 | 41 | 332 | 6.04878 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138554 | 332 | 11 | 78 | 30.181818 | 0.867133 | 0 | 0 | 0 | 0 | 0 | 0.123494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 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 |
88d4df17e09f04b37643b41464da40650a4a1467 | 302 | py | Python | ExPython/CursoemVideo/ex011.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | 1 | 2020-10-06T00:27:05.000Z | 2020-10-06T00:27:05.000Z | ExPython/CursoemVideo/ex011.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | null | null | null | ExPython/CursoemVideo/ex011.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | null | null | null | largura=float(input('digite qual a largura da sua parede:'))
comprimento=float(input('digite qual o comprimento da sua parede:'))
quantidade=((largura*comprimento)/2)
print('A area da sua parede é de',(largura*comprimento),'para pintar sua parede será necessario {} litros de tinta'.format(quantidade)) | 75.5 | 135 | 0.771523 | 45 | 302 | 5.177778 | 0.533333 | 0.154506 | 0.141631 | 0.171674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.099338 | 302 | 4 | 135 | 75.5 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.521452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88f228f6aba01067ca766c9e905ecf9ba9e9f3a0 | 1,719 | py | Python | rules.py | ONSdigital/blaise-data-delivery-alerts | 5077ae6da9ef406549c994bc735745fcbb02e61d | [
"MIT"
] | null | null | null | rules.py | ONSdigital/blaise-data-delivery-alerts | 5077ae6da9ef406549c994bc735745fcbb02e61d | [
"MIT"
] | null | null | null | rules.py | ONSdigital/blaise-data-delivery-alerts | 5077ae6da9ef406549c994bc735745fcbb02e61d | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
import pytz
ALLOWED_AGE_PER_STATUS = {
"default": 5 * 60,
# LMS instruments can take a very long time to generate when the SPS is not cached
"started": 35 * 60,
"nifi_notified": 30 * 60,
}
COMPLETE_STATES = ["inactive", "in_arc"]
def slow_process(state_recor... | 29.135593 | 87 | 0.709133 | 227 | 1,719 | 5.0837 | 0.325991 | 0.200173 | 0.045061 | 0.065858 | 0.392548 | 0.185442 | 0.057192 | 0 | 0 | 0 | 0 | 0.007965 | 0.196626 | 1,719 | 58 | 88 | 29.637931 | 0.827661 | 0.046539 | 0 | 0.071429 | 1 | 0 | 0.175932 | 0.032376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.02381 | 0.47619 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88f4ca8390bec41333df4559d2ca341bcce83beb | 39,506 | py | Python | pysnmp/A3COM-HUAWEI-SNA-DLSW-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/A3COM-HUAWEI-SNA-DLSW-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/A3COM-HUAWEI-SNA-DLSW-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module A3COM-HUAWEI-SNA-DLSW-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-SNA-DLSW-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 16:52:16 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 131.249169 | 5,640 | 0.75505 | 4,583 | 39,506 | 6.508182 | 0.082261 | 0.010863 | 0.013277 | 0.017702 | 0.496765 | 0.442787 | 0.382472 | 0.342676 | 0.320448 | 0.303349 | 0 | 0.093705 | 0.085607 | 39,506 | 300 | 5,641 | 131.686667 | 0.731979 | 0.008708 | 0 | 0.027778 | 0 | 0 | 0.097515 | 0.014328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.111111 | 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 |
000ac16fad7b0087c58e7dce0cb0032d35a1586a | 209 | py | Python | ex015a.py | emerfelippini/Curso_em_video-Aulas_Python | 5b1d78b259732bb9bbad27cd30ce91bba77c5ef0 | [
"MIT"
] | null | null | null | ex015a.py | emerfelippini/Curso_em_video-Aulas_Python | 5b1d78b259732bb9bbad27cd30ce91bba77c5ef0 | [
"MIT"
] | null | null | null | ex015a.py | emerfelippini/Curso_em_video-Aulas_Python | 5b1d78b259732bb9bbad27cd30ce91bba77c5ef0 | [
"MIT"
] | null | null | null | dia = int(input('Quantos dias alugados? '))
km = float(input('Quantos KM rodados? '))
print('Como você ficou {} dias com ele e rodou {:.2f}KM, sua conta ficou em {:.2f}R$'.format(dia, km, (60*dia)+(0.15*km)))
| 52.25 | 122 | 0.645933 | 37 | 209 | 3.648649 | 0.702703 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038889 | 0.138756 | 209 | 3 | 123 | 69.666667 | 0.711111 | 0 | 0 | 0 | 0 | 0.333333 | 0.574163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
000bdce1c17e5a0d04aad4788cb96fae87e895ca | 775 | py | Python | xiaomirouter/client/ip.py | RiRomain/python-xiaomi-router | 36867d077349a70678db75cf261428cdd80a0c51 | [
"MIT"
] | null | null | null | xiaomirouter/client/ip.py | RiRomain/python-xiaomi-router | 36867d077349a70678db75cf261428cdd80a0c51 | [
"MIT"
] | null | null | null | xiaomirouter/client/ip.py | RiRomain/python-xiaomi-router | 36867d077349a70678db75cf261428cdd80a0c51 | [
"MIT"
] | null | null | null | """ Ip Info """
class Ip(object):
""" Ip Info """
def __init__(self, downspeed, online, upspeed, active, ip):
self._downspeed = downspeed
self._online = online
self._upspeed = upspeed
self._active = active
self._ip = ip
def get_downspeed(self):
return self... | 22.794118 | 76 | 0.624516 | 97 | 775 | 4.659794 | 0.206186 | 0.159292 | 0.154867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263226 | 775 | 33 | 77 | 23.484848 | 0.791594 | 0.082581 | 0 | 0 | 0 | 0 | 0.04298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0 | 0.3 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
00357487ee3571e98c5b7547cf6b9f56fc60e338 | 483 | py | Python | BOJ16360.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | 2 | 2019-03-05T15:42:46.000Z | 2019-07-24T15:52:36.000Z | BOJ16360.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | BOJ16360.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | r=""
for _ in range(int(input())):
s=input();tn=s[-2]+s[-1]
if tn=='ne':
r+=s[:-2]+'anes\n'
else:
t=s[-1]
if t=='a' or t=='o' or t=='u':
r+=s+'s\n'
elif t=='i' or t=='y':
r+=s[:-1]+'ios\n'
elif t=='l' or t=='r' or t=='v':
r+=s+'es\n... | 23 | 40 | 0.3147 | 88 | 483 | 1.715909 | 0.363636 | 0.092715 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.391304 | 483 | 20 | 41 | 24.15 | 0.493197 | 0 | 0 | 0.1 | 0 | 0 | 0.093168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0053cf487a42c750c2cd4aedb2f3962276b8ea47 | 1,660 | py | Python | pytf2/currency.py | mninc/pytf | 3dbf93f6c6b8edd7366f9fdb8f46ad84df3ac819 | [
"MIT"
] | 7 | 2018-03-09T22:50:31.000Z | 2021-08-09T10:17:45.000Z | pytf2/currency.py | mninc/pytf | 3dbf93f6c6b8edd7366f9fdb8f46ad84df3ac819 | [
"MIT"
] | 2 | 2019-06-19T19:18:34.000Z | 2020-08-20T11:10:09.000Z | pytf2/currency.py | mninc/pytf | 3dbf93f6c6b8edd7366f9fdb8f46ad84df3ac819 | [
"MIT"
] | 1 | 2019-08-15T08:23:32.000Z | 2019-08-15T08:23:32.000Z | from functools import total_ordering
def keys_to_scrap(keyprice, keys, metal):
return round(keys * round(keyprice * 9)) + round(metal * 9)
def scrap_to_keys(keyprice, scrap, force_ref=False):
keys = 0
while not force_ref and scrap > round(keyprice * 9):
keys += 1
scrap -= round(keyprice ... | 24.411765 | 65 | 0.56747 | 225 | 1,660 | 4 | 0.2 | 0.11 | 0.073333 | 0.083333 | 0.213333 | 0.191111 | 0.191111 | 0.115556 | 0.077778 | 0 | 0 | 0.022202 | 0.321687 | 1,660 | 67 | 66 | 24.776119 | 0.777087 | 0 | 0 | 0.153846 | 0 | 0 | 0.00241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211538 | false | 0 | 0.019231 | 0.153846 | 0.442308 | 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 |
cc50d33be84a339a3707572fbfdb3ba740f84346 | 840 | py | Python | employee_management/employee_management/doctype/valiant/Permission_Override/permission_override.py | Vivekananthan112599/Frappe-Vivek | 6a2b70c736e17e9748c6a30e5722341acfb3b5c5 | [
"MIT"
] | null | null | null | employee_management/employee_management/doctype/valiant/Permission_Override/permission_override.py | Vivekananthan112599/Frappe-Vivek | 6a2b70c736e17e9748c6a30e5722341acfb3b5c5 | [
"MIT"
] | null | null | null | employee_management/employee_management/doctype/valiant/Permission_Override/permission_override.py | Vivekananthan112599/Frappe-Vivek | 6a2b70c736e17e9748c6a30e5722341acfb3b5c5 | [
"MIT"
] | null | null | null | import frappe
def permission_ov(user):
pass
# print("///////////******///////******////******///**")
# print(user)
# print(frappe.session.user)
# return """(`tabValiant`.`native`='Salem' )"""
# return "(`tabValiant`.owner = 'i am')".format(user=frappe.db.escape(user))
def has_permission(doc, user=None, permiss... | 24 | 76 | 0.513095 | 85 | 840 | 5 | 0.435294 | 0.094118 | 0.065882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 840 | 34 | 77 | 24.705882 | 0.625 | 0.438095 | 0 | 0.133333 | 0 | 0 | 0.25 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.066667 | 0 | 0.4 | 0.466667 | 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 | 0 | 1 | 0 | 2 |
cc5d1f2725d275ded5ef2a2efe3f720356553637 | 4,658 | py | Python | koto - backend/backend/views.py | SirJAKfromSpace/Koto-FinanceManager | bfec6f36d97b5986294e348bdf2c0b229449bb19 | [
"MIT"
] | null | null | null | koto - backend/backend/views.py | SirJAKfromSpace/Koto-FinanceManager | bfec6f36d97b5986294e348bdf2c0b229449bb19 | [
"MIT"
] | null | null | null | koto - backend/backend/views.py | SirJAKfromSpace/Koto-FinanceManager | bfec6f36d97b5986294e348bdf2c0b229449bb19 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import get_object_or_404
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.response import Response
from rest_framework import generics
from .models import kotoUser
from .models import transaction
from .models import ... | 36.390625 | 219 | 0.678188 | 583 | 4,658 | 5.348199 | 0.320755 | 0.028865 | 0.048749 | 0.036883 | 0.323605 | 0.249519 | 0.17864 | 0.133098 | 0.088518 | 0.088518 | 0 | 0.001693 | 0.238944 | 4,658 | 127 | 220 | 36.677165 | 0.877856 | 0.298197 | 0 | 0.239437 | 0 | 0 | 0.078554 | 0.008416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0.084507 | 0.253521 | 0 | 0.591549 | 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 |
cc6f7c4f27c2a00ff15ccd7856ec922db8699702 | 2,187 | py | Python | chime/href.py | sanAkdam/chime | 1adbddbdddcdc2669086dee60d1bfb2f97535cff | [
"BSD-3-Clause"
] | 8 | 2015-02-05T22:12:41.000Z | 2015-05-15T16:15:14.000Z | chime/href.py | sanAkdam/chime | 1adbddbdddcdc2669086dee60d1bfb2f97535cff | [
"BSD-3-Clause"
] | 168 | 2015-02-02T23:02:52.000Z | 2015-05-15T21:54:07.000Z | chime/href.py | codeforamerica/bizarro-cms | 1adbddbdddcdc2669086dee60d1bfb2f97535cff | [
"BSD-3-Clause"
] | 5 | 2016-11-20T15:51:32.000Z | 2021-04-16T09:44:08.000Z | from urlparse import urlparse
from re import match
def get_redirect(req_path, ref_url):
'''
>>> get_redirect('/style.css', 'http://preview.local/tree/foo/view/')
'/tree/foo/view/style.css'
>>> get_redirect('/style.css', 'http://preview.local/tree/foo/view/quux.html')
'/tree/foo/view/style.css'
... | 31.242857 | 106 | 0.652492 | 308 | 2,187 | 4.441558 | 0.201299 | 0.122807 | 0.096491 | 0.111111 | 0.727339 | 0.710526 | 0.633772 | 0.542398 | 0.516813 | 0.446637 | 0 | 0.001686 | 0.186557 | 2,187 | 69 | 107 | 31.695652 | 0.767285 | 0.595793 | 0 | 0.263158 | 0 | 0 | 0.052016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cc87ec2077a4bb23825353e65fcb8ba6c7ee17e1 | 570 | py | Python | common/migrations/0016_GlobalComments.py | jakubhyza/kelvin | b06c0ed0594a3fb48df1e50ff30cee010ddeea5a | [
"MIT"
] | 8 | 2020-01-11T15:25:25.000Z | 2022-02-20T17:32:58.000Z | common/migrations/0016_GlobalComments.py | jakubhyza/kelvin | b06c0ed0594a3fb48df1e50ff30cee010ddeea5a | [
"MIT"
] | 72 | 2020-01-13T21:07:26.000Z | 2022-03-28T10:17:50.000Z | common/migrations/0016_GlobalComments.py | jakubhyza/kelvin | b06c0ed0594a3fb48df1e50ff30cee010ddeea5a | [
"MIT"
] | 6 | 2020-01-11T16:50:04.000Z | 2022-02-19T10:12:19.000Z | # Generated by Django 3.0.7 on 2020-11-07 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('common', '0015_task_unique_dir'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='line',
... | 23.75 | 74 | 0.580702 | 60 | 570 | 5.416667 | 0.683333 | 0.123077 | 0.153846 | 0.178462 | 0.246154 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0.055138 | 0.3 | 570 | 23 | 75 | 24.782609 | 0.759399 | 0.078947 | 0 | 0.352941 | 1 | 0 | 0.095602 | 0 | 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 |
cca2291d6cc0c07dfc8cf1b487d638a6d05c267b | 3,274 | py | Python | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/sm_19991228.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/sm_19991228.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/sm_19991228.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | #Example for Jon Smirl on 28 Dec 1999, originally by Steve Muench, with improvements by Mike Brown and Jeremy Richman
from Xml.Xslt import test_harness
sheet_1 = """<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<html>
<head/>
<body>
<xsl:apply-template... | 25.578125 | 117 | 0.640806 | 447 | 3,274 | 4.655481 | 0.234899 | 0.095147 | 0.060548 | 0.074003 | 0.730899 | 0.713599 | 0.623258 | 0.623258 | 0.58001 | 0.58001 | 0 | 0.013348 | 0.153329 | 3,274 | 127 | 118 | 25.779528 | 0.737374 | 0.035431 | 0 | 0.666667 | 0 | 0.047619 | 0.827051 | 0.191321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009524 | false | 0 | 0.009524 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ccb7c733b68470d611b304324e4c358b41fac520 | 1,442 | py | Python | project/encryption_utils.py | v2121/redshift-django | b6d66b2ee0443f039cfbad9f53c4ffd4efd156ec | [
"CC0-1.0"
] | null | null | null | project/encryption_utils.py | v2121/redshift-django | b6d66b2ee0443f039cfbad9f53c4ffd4efd156ec | [
"CC0-1.0"
] | null | null | null | project/encryption_utils.py | v2121/redshift-django | b6d66b2ee0443f039cfbad9f53c4ffd4efd156ec | [
"CC0-1.0"
] | null | null | null | import Crypto.Random
from Crypto.Cipher import AES
import hashlib
import base64
SALT_SIZE = 16
AES_MULTIPLE = 16
NUMBER_OF_ITERATIONS = 20
def generate_key(password, salt):
key = password.encode('utf-8') + salt
for i in range(NUMBER_OF_ITERATIONS):
key = hashlib.sha256(str(key).encode('utf-8')).digest... | 31.347826 | 63 | 0.731623 | 194 | 1,442 | 5.206186 | 0.278351 | 0.054455 | 0.056436 | 0.068317 | 0.19604 | 0.146535 | 0.146535 | 0.146535 | 0.146535 | 0.146535 | 0 | 0.020921 | 0.17129 | 1,442 | 45 | 64 | 32.044444 | 0.824268 | 0 | 0 | 0.102564 | 1 | 0 | 0.01387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0.153846 | 0.102564 | 0 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ccb976a45584bf29937e03ff9e1aef9ce04de815 | 462 | py | Python | core/xml/utils.py | Magoli1/carla-pre-crash-scenario-generator | 46666309a55e9aab59cebeda33aca7723c1d360c | [
"MIT"
] | 1 | 2022-03-30T08:28:53.000Z | 2022-03-30T08:28:53.000Z | core/xml/utils.py | Magoli1/carla-pre-crash-scenario-generator | 46666309a55e9aab59cebeda33aca7723c1d360c | [
"MIT"
] | null | null | null | core/xml/utils.py | Magoli1/carla-pre-crash-scenario-generator | 46666309a55e9aab59cebeda33aca7723c1d360c | [
"MIT"
] | null | null | null | from xml.etree import ElementTree
from xml.dom import minidom
def get_pretty_xml(tree):
"""Transforms and pretty-prints a given xml-tree to string
:param tree: XML-tree
:type tree: object
:returns: (Prettified) stringified version of the passed xml-tree
:rtype: str
"""
stringified_tree = ... | 28.875 | 69 | 0.71645 | 60 | 462 | 5.45 | 0.65 | 0.085627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.183983 | 462 | 15 | 70 | 30.8 | 0.864721 | 0.378788 | 0 | 0 | 0 | 0 | 0.026923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccd4b8a090334276bc85ce2b13557564dea0406a | 231 | py | Python | setup.py | seakarki/vehicle_accident_prediction | a921015104865dc1e4901fb1581f7822bef75f06 | [
"FTL"
] | null | null | null | setup.py | seakarki/vehicle_accident_prediction | a921015104865dc1e4901fb1581f7822bef75f06 | [
"FTL"
] | null | null | null | setup.py | seakarki/vehicle_accident_prediction | a921015104865dc1e4901fb1581f7822bef75f06 | [
"FTL"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Prediction of likely occurance of Vehicle Accident',
author='sea karki',
license='',
)
| 21 | 69 | 0.679654 | 28 | 231 | 5.535714 | 0.785714 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.194805 | 231 | 10 | 70 | 23.1 | 0.817204 | 0 | 0 | 0 | 0 | 0 | 0.290043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
aeafb1f7e55c1238f2645e1019c684aa0c10629d | 1,002 | py | Python | src/gafaelfawr/schema/admin_history.py | slaclab/gafaelfawr | 7a64b0f159003d4745531c89d5b0f7d9777f7bce | [
"MIT"
] | null | null | null | src/gafaelfawr/schema/admin_history.py | slaclab/gafaelfawr | 7a64b0f159003d4745531c89d5b0f7d9777f7bce | [
"MIT"
] | 5 | 2019-06-18T17:28:52.000Z | 2020-04-20T22:15:54.000Z | src/gafaelfawr/schema/admin_history.py | slaclab/gafaelfawr | 7a64b0f159003d4745531c89d5b0f7d9777f7bce | [
"MIT"
] | 1 | 2019-06-25T16:04:57.000Z | 2019-06-25T16:04:57.000Z | """The admin_history database table.
This is a stopgap representation of changes to the admin table until we have a
group system and a group-based authorization system up and running.
"""
from __future__ import annotations
from datetime import datetime
from sqlalchemy import Column, DateTime, Enum, Index, Integer, ... | 30.363636 | 78 | 0.746507 | 128 | 1,002 | 5.632813 | 0.5 | 0.090153 | 0.062413 | 0.070735 | 0.083218 | 0.083218 | 0 | 0 | 0 | 0 | 0 | 0.007117 | 0.158683 | 1,002 | 32 | 79 | 31.3125 | 0.848161 | 0.180639 | 0 | 0 | 0 | 0 | 0.083538 | 0.025799 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
aeb856b22c775bb3a156957570f8b200275c77c9 | 21,563 | py | Python | data/prepare_data_3dhp.py | YxZhxn/Ray3D | cc19cf1a8471b8464c172808e77d6305a3218a3c | [
"Apache-2.0"
] | 23 | 2022-03-22T05:09:34.000Z | 2022-03-31T08:24:43.000Z | data/prepare_data_3dhp.py | YxZhxn/Ray3D | cc19cf1a8471b8464c172808e77d6305a3218a3c | [
"Apache-2.0"
] | 4 | 2022-03-22T05:11:48.000Z | 2022-03-30T03:27:10.000Z | data/prepare_data_3dhp.py | YxZhxn/Ray3D | cc19cf1a8471b8464c172808e77d6305a3218a3c | [
"Apache-2.0"
] | 2 | 2022-03-23T09:47:50.000Z | 2022-03-25T01:12:18.000Z | import os
import sys
import copy
import ipdb
import json
import mat73
import numpy as np
import scipy.io as sio
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from lib.camera.camera import CameraInfoPacket, catesian2homogenous
rot = np.array([[1, 0, 0], [0, 0, -1], [0, 1, 0]]) # rotate along the x ax... | 37.177586 | 119 | 0.518202 | 2,909 | 21,563 | 3.538673 | 0.17188 | 0.025646 | 0.011657 | 0.016029 | 0.366913 | 0.322615 | 0.308432 | 0.2891 | 0.265689 | 0.226345 | 0 | 0.21151 | 0.317442 | 21,563 | 580 | 120 | 37.177586 | 0.487906 | 0.012985 | 0 | 0.28125 | 0 | 0 | 0.172367 | 0.001931 | 0 | 0 | 0 | 0 | 0.011719 | 1 | 0.003906 | false | 0 | 0.017578 | 0 | 0.027344 | 0.005859 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aeba984159365e20b71a8671ae068606c6f145f8 | 332 | py | Python | db.py | amkudr/roadbotproject | f3a0cd10b85bc43e8c823b8670c8b4801e9ed3ab | [
"MIT"
] | null | null | null | db.py | amkudr/roadbotproject | f3a0cd10b85bc43e8c823b8670c8b4801e9ed3ab | [
"MIT"
] | 1 | 2021-06-21T12:41:08.000Z | 2021-06-21T12:41:08.000Z | db.py | amkudr/roadbotproject | f3a0cd10b85bc43e8c823b8670c8b4801e9ed3ab | [
"MIT"
] | 1 | 2021-06-21T08:01:12.000Z | 2021-06-21T08:01:12.000Z | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
import settings
engine = create_engine(settings.API_DATA)
db_session = scoped_session(sessionmaker(bind=engine))
Base = declarative_base()
Base.query = db_session.query... | 27.666667 | 55 | 0.843373 | 43 | 332 | 6.27907 | 0.44186 | 0.155556 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090361 | 332 | 11 | 56 | 30.181818 | 0.89404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
aed73b39402bd942e4be1fdb0e1b2019a73a5408 | 21,700 | py | Python | src/pyadobemc/pyadobemc.py | andymaheshw/SiteCatalystPy | 3bb82b1c5cd6ee130e9a3c7b52a1c364913a9506 | [
"MIT"
] | null | null | null | src/pyadobemc/pyadobemc.py | andymaheshw/SiteCatalystPy | 3bb82b1c5cd6ee130e9a3c7b52a1c364913a9506 | [
"MIT"
] | null | null | null | src/pyadobemc/pyadobemc.py | andymaheshw/SiteCatalystPy | 3bb82b1c5cd6ee130e9a3c7b52a1c364913a9506 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 06 00:27:21 2016
@author: maheshwa
"""
from __future__ import print_function
import requests
import time
import binascii
import hashlib
import json
# Authentication
class AdobeAnalytics:
def __init__(self, user_name, shared_secret, endpoint='', debug=False):
... | 36.593592 | 118 | 0.6553 | 2,418 | 21,700 | 5.705542 | 0.176179 | 0.102059 | 0.069006 | 0.076544 | 0.515802 | 0.413308 | 0.400551 | 0.381052 | 0.377646 | 0.352783 | 0 | 0.005374 | 0.262581 | 21,700 | 592 | 119 | 36.655405 | 0.856768 | 0.406129 | 0 | 0.092486 | 0 | 0 | 0.169703 | 0.122558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352601 | false | 0.017341 | 0.034682 | 0.040462 | 0.739884 | 0.017341 | 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 |
4e00da2e34037c4502cad55e6ab548d6d329f370 | 2,861 | py | Python | tests/TestItemkind.py | ORTECScientificBenchmarks/ortec-scientific-benchmarks-loadbuilding | 8b1f5c58d930448a29195355d28fda856f4705b2 | [
"MIT"
] | 4 | 2018-05-23T22:48:42.000Z | 2020-04-21T10:21:30.000Z | tests/TestItemkind.py | ORTECScientificBenchmarks/ortec-scientific-benchmarks-loadbuilding | 8b1f5c58d930448a29195355d28fda856f4705b2 | [
"MIT"
] | null | null | null | tests/TestItemkind.py | ORTECScientificBenchmarks/ortec-scientific-benchmarks-loadbuilding | 8b1f5c58d930448a29195355d28fda856f4705b2 | [
"MIT"
] | null | null | null | import unittest
from ortec.scientific.benchmarks.loadbuilding.instance.ThreeDitemkind import ThreeDitemkind
class TestItemkind(unittest.TestCase):
def setUp(self):
self.item_kind = ThreeDitemkind()
self.item_kind.id = 1
self.item_kind.quantity = 10
self.item_kind.boundingBox... | 42.073529 | 92 | 0.688221 | 344 | 2,861 | 5.485465 | 0.177326 | 0.148384 | 0.222576 | 0.118707 | 0.676736 | 0.555379 | 0.445681 | 0.445681 | 0.427133 | 0.427133 | 0 | 0.020052 | 0.198182 | 2,861 | 68 | 93 | 42.073529 | 0.802528 | 0 | 0 | 0.224138 | 0 | 0 | 0.013953 | 0 | 0 | 0 | 0 | 0 | 0.293103 | 1 | 0.310345 | false | 0 | 0.034483 | 0 | 0.362069 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e031c5ec8a60556bf8f5a17d8935996db1b3e9d | 292 | py | Python | netpen/utils.py | defcronyke/netpen | 66bf5c4401752a6ad9f411f04d88c0189281f8fb | [
"MIT"
] | 27 | 2021-07-13T14:41:59.000Z | 2022-03-19T09:48:50.000Z | netpen/utils.py | defcronyke/netpen | 66bf5c4401752a6ad9f411f04d88c0189281f8fb | [
"MIT"
] | 7 | 2021-07-13T20:12:04.000Z | 2022-02-23T18:16:47.000Z | netpen/utils.py | defcronyke/netpen | 66bf5c4401752a6ad9f411f04d88c0189281f8fb | [
"MIT"
] | 3 | 2021-07-13T15:25:01.000Z | 2021-11-18T09:57:09.000Z | import socket
import ipaddress
def net_family(net):
if isinstance(ipaddress.ip_network(net, strict=False),
ipaddress.IPv6Network):
return socket.AF_INET6
return socket.AF_INET
def flag6(net):
return '-6' if net_family(net) == socket.AF_INET6 else ''
| 20.857143 | 61 | 0.678082 | 39 | 292 | 4.923077 | 0.512821 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022124 | 0.226027 | 292 | 13 | 62 | 22.461538 | 0.827434 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.