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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
affc39443576305ee2e0ade1abbbe279cdbe06bc | 627 | py | Python | default_values.py | Omar-X/App_init | 9de2fff36a8a5d2911e5dd495b62a7ce91d4a68e | [
"MIT"
] | 1 | 2021-10-11T09:40:27.000Z | 2021-10-11T09:40:27.000Z | default_values.py | Omar-X/App_init | 9de2fff36a8a5d2911e5dd495b62a7ce91d4a68e | [
"MIT"
] | null | null | null | default_values.py | Omar-X/App_init | 9de2fff36a8a5d2911e5dd495b62a7ce91d4a68e | [
"MIT"
] | null | null | null | import os
# getting path so you can run the script python3 App_init, python3 .
if os.getcwd()[-8:] != "App_init":
default_path = "App_init/"
print(default_path)
else:
default_path = ""
# reading all built in modules
default_modules = open(f"{default_path}default_modules.txt", "r").readlines()
for a, i in ... | 27.26087 | 77 | 0.639553 | 90 | 627 | 4.288889 | 0.477778 | 0.290155 | 0.11658 | 0.088083 | 0.093264 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010163 | 0.215311 | 627 | 22 | 78 | 28.5 | 0.77439 | 0.226475 | 0 | 0 | 0 | 0 | 0.117155 | 0.069038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b306523785b4bd7109a4337c13f607cc42984c0b | 590 | py | Python | main/python-sphinx-removed-in/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/python-sphinx-removed-in/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/python-sphinx-removed-in/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | pkgname = "python-sphinx-removed-in"
pkgver = "0.2.1"
pkgrel = 0
build_style = "python_module"
hostmakedepends = ["python-setuptools"]
checkdepends = ["python-sphinx"]
depends = ["python-sphinx"]
pkgdesc = "Sphinx extension for versionremoved and removed-in directives"
maintainer = "q66 <q66@chimera-linux.org>"
license... | 36.875 | 78 | 0.759322 | 72 | 590 | 6.180556 | 0.708333 | 0.101124 | 0.134831 | 0.094382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102421 | 0.089831 | 590 | 15 | 79 | 39.333333 | 0.726257 | 0.033898 | 0 | 0 | 0 | 0.071429 | 0.642606 | 0.31162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b30aff42a0561262838decac18137273d9752c56 | 2,680 | py | Python | modele/Class.py | AntoineDelay/chess | 66dedf1c468a075bb202f85753caa075316dac28 | [
"MIT"
] | null | null | null | modele/Class.py | AntoineDelay/chess | 66dedf1c468a075bb202f85753caa075316dac28 | [
"MIT"
] | null | null | null | modele/Class.py | AntoineDelay/chess | 66dedf1c468a075bb202f85753caa075316dac28 | [
"MIT"
] | null | null | null |
class Case :
def __init__(self,x,y):
self.id = str(x)+','+str(y)
self.x = x
self.y = y
self.piece = None
def check_case(self):
"""renvoie la piece si la case est occupé,renvoie -1 sinon """
if(self.piece != None):
return self.piece
re... | 29.130435 | 104 | 0.538806 | 360 | 2,680 | 3.816667 | 0.172222 | 0.078603 | 0.048035 | 0.046579 | 0.226346 | 0.172489 | 0.172489 | 0.172489 | 0.045124 | 0.045124 | 0 | 0.010686 | 0.336567 | 2,680 | 91 | 105 | 29.450549 | 0.762092 | 0.054851 | 0 | 0.168831 | 0 | 0 | 0.009917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246753 | false | 0.012987 | 0 | 0.051948 | 0.454545 | 0.012987 | 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 | 0 | 0 | 0 | 1 |
b3106616365026d8efdce59e1af5c72f5a869234 | 257 | py | Python | Dynamic Programming/416. Partition Equal Subset Sum/Python Solution/Solution.py | lionelsamrat10/LeetCode-Solutions | 47f5c94995225b875b1eb0e92c5f643bec646a86 | [
"MIT"
] | 9 | 2021-03-24T11:21:03.000Z | 2022-02-14T05:05:48.000Z | Dynamic Programming/416. Partition Equal Subset Sum/Python Solution/Solution.py | lionelsamrat10/LeetCode-Solutions | 47f5c94995225b875b1eb0e92c5f643bec646a86 | [
"MIT"
] | 38 | 2021-10-07T18:04:12.000Z | 2021-12-05T05:53:27.000Z | Dynamic Programming/416. Partition Equal Subset Sum/Python Solution/Solution.py | lionelsamrat10/LeetCode-Solutions | 47f5c94995225b875b1eb0e92c5f643bec646a86 | [
"MIT"
] | 27 | 2021-10-06T19:55:48.000Z | 2021-11-18T16:53:20.000Z | class Solution:
def canPartition(self, nums: List[int]) -> bool:
dp, s = set([0]), sum(nums)
if s&1:
return False
for num in nums:
dp.update([v+num for v in dp if v+num <= s>>1])
return s>>1 in dp
| 28.555556 | 59 | 0.498054 | 42 | 257 | 3.047619 | 0.547619 | 0.046875 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.365759 | 257 | 8 | 60 | 32.125 | 0.760736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b310942ec473743eb33ea648c960c10e28fedd79 | 712 | py | Python | self_paced_ensemble/canonical_resampling/__init__.py | thulio/self-paced-ensemble | 0270edecc2f88783e2f4657510e089c2cacfcabe | [
"MIT"
] | 203 | 2019-06-04T07:43:25.000Z | 2022-03-30T22:16:32.000Z | self_paced_ensemble/canonical_resampling/__init__.py | thulio/self-paced-ensemble | 0270edecc2f88783e2f4657510e089c2cacfcabe | [
"MIT"
] | 14 | 2020-02-26T09:42:46.000Z | 2022-01-11T12:25:16.000Z | self_paced_ensemble/canonical_resampling/__init__.py | thulio/self-paced-ensemble | 0270edecc2f88783e2f4657510e089c2cacfcabe | [
"MIT"
] | 46 | 2019-11-25T01:13:31.000Z | 2021-12-29T06:49:07.000Z | """
--------------------------------------------------------------------------
The `self_paced_ensemble.canonical_resampling` module implement a
resampling-based classifier for imbalanced classification.
15 resampling algorithms are included:
'RUS', 'CNN', 'ENN', 'NCR', 'Tomek', 'ALLKNN', 'OSS',
'NM', 'CC', 'SMOTE', ... | 32.363636 | 74 | 0.585674 | 64 | 712 | 6.390625 | 0.828125 | 0.09291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00312 | 0.099719 | 712 | 21 | 75 | 33.904762 | 0.634945 | 0.852528 | 0 | 0 | 0 | 0 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b312241b809985558a61adf947e84c53f8e2bb9c | 997 | py | Python | python/ql/test/query-tests/Security/CWE-089/sql_injection.py | p-snft/ql | 6243c722c6d18f152fe47d2c800540d5bc5c3c3f | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2021-07-12T09:23:48.000Z | 2021-10-04T10:05:46.000Z | python/ql/test/query-tests/Security/CWE-089/sql_injection.py | p-snft/ql | 6243c722c6d18f152fe47d2c800540d5bc5c3c3f | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-02-21T16:20:02.000Z | 2019-05-01T12:10:05.000Z | python/ql/test/query-tests/Security/CWE-089/sql_injection.py | p-snft/ql | 6243c722c6d18f152fe47d2c800540d5bc5c3c3f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
from django.conf.urls import patterns, url
from django.db import connection, models
from django.db.models.expressions import RawSQL
class Name(models.Model):
pass
def save_name(request):
if request.method == 'POST':
name = request.POST.get('name')
curs = connection.cursor()
#GOOD -- ... | 34.37931 | 93 | 0.620863 | 124 | 997 | 4.919355 | 0.419355 | 0.081967 | 0.122951 | 0.155738 | 0.360656 | 0.360656 | 0.360656 | 0.360656 | 0.304918 | 0.304918 | 0 | 0 | 0.242728 | 997 | 28 | 94 | 35.607143 | 0.807947 | 0.12337 | 0 | 0.111111 | 0 | 0 | 0.29229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.277778 | 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 | 0 | 0 | 0 | 1 |
b31e77923a41068a3cef4c14e6a23d2de634a6cd | 386 | py | Python | front_end/migrations/0002_rename_nome_popular_especies_nome_popular.py | majubr/website_Django | eb0683459af82e4abb3e8ccb016d52d4365ff729 | [
"MIT"
] | null | null | null | front_end/migrations/0002_rename_nome_popular_especies_nome_popular.py | majubr/website_Django | eb0683459af82e4abb3e8ccb016d52d4365ff729 | [
"MIT"
] | null | null | null | front_end/migrations/0002_rename_nome_popular_especies_nome_popular.py | majubr/website_Django | eb0683459af82e4abb3e8ccb016d52d4365ff729 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-15 03:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('front_end', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='especies',
old_name='Nome_Po... | 20.315789 | 48 | 0.562176 | 40 | 386 | 5.25 | 0.775 | 0.07619 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073643 | 0.331606 | 386 | 18 | 49 | 21.444444 | 0.74031 | 0.11658 | 0 | 0 | 1 | 0 | 0.165109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b33442383156f3c0acad7de6e549de783efa735c | 836 | py | Python | application/file/routes.py | h4k1m0u/flask-webapp | d095449a3d324c50de745f7ac5f84b6fa2cb08b4 | [
"MIT"
] | null | null | null | application/file/routes.py | h4k1m0u/flask-webapp | d095449a3d324c50de745f7ac5f84b6fa2cb08b4 | [
"MIT"
] | null | null | null | application/file/routes.py | h4k1m0u/flask-webapp | d095449a3d324c50de745f7ac5f84b6fa2cb08b4 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, url_for, redirect
from flask import current_app as app
from .forms import UploadForm
from werkzeug.utils import secure_filename
import os
file_bp = Blueprint('file', __name__,
template_folder='templates', static_folder='static')
@file_bp.route('/uplo... | 26.125 | 72 | 0.688995 | 108 | 836 | 5.148148 | 0.444444 | 0.07554 | 0.053957 | 0.097122 | 0.111511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194976 | 836 | 31 | 73 | 26.967742 | 0.826152 | 0.061005 | 0 | 0 | 0 | 0 | 0.112532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.263158 | 0.052632 | 0.526316 | 0.105263 | 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 | 0 | 1 | 0 | 0 | 1 |
b336dfd4f06633eb05d75f4fdb5a06c0dcb65ff7 | 1,590 | py | Python | python_experiments/paper_figures/tkde/data_legacy/eval_varying_eps_c_pcg.py | RapidsAtHKUST/SimRank | 3a601b08f9a3c281e2b36b914e06aba3a3a36118 | [
"MIT"
] | 8 | 2020-04-14T23:17:00.000Z | 2021-06-21T12:34:04.000Z | python_experiments/paper_figures/tkde/data_legacy/eval_varying_eps_c_pcg.py | RapidsAtHKUST/SimRank | 3a601b08f9a3c281e2b36b914e06aba3a3a36118 | [
"MIT"
] | null | null | null | python_experiments/paper_figures/tkde/data_legacy/eval_varying_eps_c_pcg.py | RapidsAtHKUST/SimRank | 3a601b08f9a3c281e2b36b914e06aba3a3a36118 | [
"MIT"
] | 1 | 2021-01-17T16:26:50.000Z | 2021-01-17T16:26:50.000Z | import json
if __name__ == '__main__':
with open('varying_eps_c.dicts') as ifs:
pcg_varying_eps_cpu = eval(ifs.readline())
pcg_varying_eps_mem = eval(ifs.readline())
pcg_varying_c_cpu = eval(ifs.readline())
pcg_varying_c_mem = eval(ifs.readline())
pcg_tag = 'pcg'
... | 27.894737 | 58 | 0.445283 | 185 | 1,590 | 3.594595 | 0.210811 | 0.210526 | 0.156391 | 0.120301 | 0.756391 | 0.690226 | 0.52782 | 0.485714 | 0.485714 | 0.485714 | 0 | 0.018681 | 0.427673 | 1,590 | 56 | 59 | 28.392857 | 0.712088 | 0 | 0 | 0.5 | 0 | 0 | 0.10566 | 0.072956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.022727 | 0 | 0.068182 | 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 | 0 | 0 | 0 | 1 |
b33cf42bd0fd23988f48859e9516133f47659bcc | 481 | py | Python | src/richie/apps/courses/migrations/0017_auto_20200827_1011.py | leduong/richie | bf7ed379b7e2528cd790dadcec10ac2656efd189 | [
"MIT"
] | 174 | 2018-04-14T23:36:01.000Z | 2022-03-10T09:27:01.000Z | src/richie/apps/courses/migrations/0017_auto_20200827_1011.py | leduong/richie | bf7ed379b7e2528cd790dadcec10ac2656efd189 | [
"MIT"
] | 631 | 2018-04-04T11:28:53.000Z | 2022-03-31T11:18:31.000Z | src/richie/apps/courses/migrations/0017_auto_20200827_1011.py | leduong/richie | bf7ed379b7e2528cd790dadcec10ac2656efd189 | [
"MIT"
] | 64 | 2018-06-27T08:35:01.000Z | 2022-03-10T09:27:43.000Z | # Generated by Django 2.2.15 on 2020-08-27 08:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("courses", "0016_auto_20200417_1237"),
]
operations = [
migrations.AlterField(
model_name="courserun",
name="resourc... | 22.904762 | 83 | 0.590437 | 51 | 481 | 5.431373 | 0.764706 | 0.086643 | 0.115523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0.301455 | 481 | 20 | 84 | 24.05 | 0.720238 | 0.095634 | 0 | 0.142857 | 1 | 0 | 0.150115 | 0.053118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b343279a8195c95b740ea2b5b46901eb458edfeb | 8,799 | py | Python | nrf5_mesh/CMake/SES/SESGenerator.py | aberke/city-science-bike-swarm | 797e803014fc0c3878016309a62460a736140958 | [
"MIT"
] | 15 | 2019-02-25T20:25:29.000Z | 2021-02-27T17:57:38.000Z | nrf5_mesh/CMake/SES/SESGenerator.py | aberke/city-science-bike-swarm | 797e803014fc0c3878016309a62460a736140958 | [
"MIT"
] | 3 | 2020-02-21T22:35:38.000Z | 2020-10-05T02:25:30.000Z | nrf5_mesh/CMake/SES/SESGenerator.py | aberke/city-science-bike-swarm | 797e803014fc0c3878016309a62460a736140958 | [
"MIT"
] | 5 | 2019-06-29T21:03:57.000Z | 2021-06-15T06:16:20.000Z | #!/usr/bin/env python3
# Usage: python SESGenerator.py <target_configuration>.json <output_directory>
#
# <target_configuration>.json is a json file generated from CMake on the form:
# {
# "target": {
# "name": "light_control_client_nrf52832_xxAA_s132_5.0.0",
# "sources": "main.c;provisioner.c;..",... | 37.763948 | 152 | 0.642459 | 1,092 | 8,799 | 4.915751 | 0.201465 | 0.036885 | 0.056632 | 0.029806 | 0.292474 | 0.233793 | 0.186848 | 0.167474 | 0.157414 | 0.152012 | 0 | 0.028321 | 0.197409 | 8,799 | 232 | 153 | 37.926724 | 0.731804 | 0.091374 | 0 | 0.030488 | 1 | 0 | 0.250439 | 0.049962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079268 | false | 0 | 0.042683 | 0.012195 | 0.189024 | 0.018293 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b344553cf35913d934c9423d0a59566943fcaa1d | 1,446 | py | Python | PythonFIAP/Capitulo5_Manipula_Arquivos/Boston.py | DanielGMesquita/StudyPath | 0b3d0bb1deac7eb0d1b301edca5e5ed320568f4c | [
"MIT"
] | null | null | null | PythonFIAP/Capitulo5_Manipula_Arquivos/Boston.py | DanielGMesquita/StudyPath | 0b3d0bb1deac7eb0d1b301edca5e5ed320568f4c | [
"MIT"
] | null | null | null | PythonFIAP/Capitulo5_Manipula_Arquivos/Boston.py | DanielGMesquita/StudyPath | 0b3d0bb1deac7eb0d1b301edca5e5ed320568f4c | [
"MIT"
] | null | null | null | #Análise do relatório de vôos e viagens do aeroporto de Boston com base nos relatórios econômicos oficiais
with open('economic-indicators.csv', 'r') as boston:
total_voos = 0
maior = 0
total_passageiros = 0
maior_media_diaria = 0
ano_usuario = input('Qual ano deseja pesquisar?: ')
#Retornar o t... | 45.1875 | 106 | 0.64592 | 205 | 1,446 | 4.44878 | 0.341463 | 0.039474 | 0.035088 | 0.026316 | 0.122807 | 0.074561 | 0.074561 | 0.074561 | 0 | 0 | 0 | 0.014884 | 0.25657 | 1,446 | 31 | 107 | 46.645161 | 0.833488 | 0.226141 | 0 | 0 | 0 | 0 | 0.218525 | 0.020683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.173913 | 0 | 0 | 0 | 0.173913 | 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 | 0 | 0 | 1 |
b347b691c3c4c7996f91f105edcfcd1839de843a | 1,464 | py | Python | blog/templatetags/blog_tags.py | josephdubon/boilerplate_dubon_django_blog | 1dbe470006be066b12dd6486eb26a41d304206f8 | [
"Unlicense",
"MIT"
] | null | null | null | blog/templatetags/blog_tags.py | josephdubon/boilerplate_dubon_django_blog | 1dbe470006be066b12dd6486eb26a41d304206f8 | [
"Unlicense",
"MIT"
] | 2 | 2021-06-10T20:43:00.000Z | 2021-09-22T19:55:41.000Z | blog/templatetags/blog_tags.py | josephdubon/boilerplate_dubon_django_blog | 1dbe470006be066b12dd6486eb26a41d304206f8 | [
"Unlicense",
"MIT"
] | null | null | null | from django import template
from django.db.models import Count
from django.utils.safestring import mark_safe
import markdown
from ..models import Post
register = template.Library()
####
# Register as simple tags
####
# A simple template tag that returns the number of posts published so far.=
@register.simple_tag
d... | 26.618182 | 88 | 0.734973 | 205 | 1,464 | 5.141463 | 0.370732 | 0.062619 | 0.028463 | 0.034156 | 0.041746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003306 | 0.173497 | 1,464 | 54 | 89 | 27.111111 | 0.867769 | 0.426913 | 0 | 0.086957 | 0 | 0 | 0.097257 | 0.033666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0.130435 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
b34ced91974433146e88095dc35d1816f2301813 | 829 | py | Python | weather_board_log.py | petervdb/weather_monitor | 35df2493385892969544579d4b465a5cd31daad4 | [
"MIT"
] | null | null | null | weather_board_log.py | petervdb/weather_monitor | 35df2493385892969544579d4b465a5cd31daad4 | [
"MIT"
] | null | null | null | weather_board_log.py | petervdb/weather_monitor | 35df2493385892969544579d4b465a5cd31daad4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import SI1132
import BME280
import sys
import time
import os
if len(sys.argv) != 2:
print("Usage: weather_board.py <i2c device file>")
sys.exit()
si1132 = SI1132.SI1132(sys.argv[1])
bme280 = BME280.BME280(sys.argv[1], 0x03, 0x02, 0x02, 0x02)
def get_altitude(pressure, seaLevel):
atmosph... | 28.586207 | 62 | 0.652593 | 117 | 829 | 4.564103 | 0.452991 | 0.039326 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148352 | 0.121834 | 829 | 28 | 63 | 29.607143 | 0.585165 | 0.0193 | 0 | 0 | 0 | 0 | 0.211823 | 0 | 0 | 0 | 0.019704 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.304348 | 0.434783 | 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 | 0 | 0 | 1 | 0 | 1 |
b3505f341d67a1c5794fe4b0bc6c75cbc2db2874 | 8,184 | py | Python | tpdatasrc/tpgamefiles/scr/tpModifiers/duelist.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 69 | 2015-05-05T14:09:25.000Z | 2022-02-15T06:13:04.000Z | tpdatasrc/tpgamefiles/scr/tpModifiers/duelist.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 457 | 2015-05-01T22:07:45.000Z | 2022-03-31T02:19:10.000Z | tpdatasrc/tpgamefiles/scr/tpModifiers/duelist.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | 25 | 2016-02-04T21:19:53.000Z | 2021-11-15T23:14:51.000Z | from templeplus.pymod import PythonModifier
from toee import *
import tpdp
import char_class_utils
import d20_action_utils
###################################################
def GetConditionName():
return "Duelist"
print "Registering " + GetConditionName()
classEnum = stat_level_duelist
preciseStrikeEnum = 2400
#... | 32.347826 | 146 | 0.758187 | 1,114 | 8,184 | 5.344704 | 0.217235 | 0.054081 | 0.032751 | 0.042324 | 0.42039 | 0.336245 | 0.270574 | 0.209271 | 0.17484 | 0.164763 | 0 | 0.026823 | 0.143573 | 8,184 | 252 | 147 | 32.47619 | 0.822657 | 0.215176 | 0 | 0.363636 | 0 | 0 | 0.005743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028409 | null | null | 0.005682 | 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 | 0 | 0 | 1 |
b35f80332b012e3019899544e95458e4103fb451 | 1,524 | py | Python | megatron/logging.py | coreweave/gpt-neox | 5c9641c8b1dae16e5642d78a29e879ad312e0725 | [
"Apache-2.0"
] | 1 | 2021-04-27T21:28:25.000Z | 2021-04-27T21:28:25.000Z | megatron/logging.py | fplk/gpt-neox | 9992042ab113428022e5e91421c04917577b8e00 | [
"Apache-2.0"
] | null | null | null | megatron/logging.py | fplk/gpt-neox | 9992042ab113428022e5e91421c04917577b8e00 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# 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 ... | 28.222222 | 106 | 0.612861 | 206 | 1,524 | 4.495146 | 0.509709 | 0.064795 | 0.055076 | 0.034557 | 0.056156 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008531 | 0.307743 | 1,524 | 53 | 107 | 28.754717 | 0.869194 | 0.479003 | 0 | 0.354839 | 0 | 0 | 0.001294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.096774 | 0.032258 | 0 | 0.193548 | 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 | 0 | 0 | 0 | 1 |
b36568a7f5e7ad85c77f6c9d7ddd21f9cadfde38 | 1,132 | py | Python | src/afterpay/merchant.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | src/afterpay/merchant.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | src/afterpay/merchant.py | nyneava/afterpay-python | ec9f9230ce321a2d9876ac93f222c24ffe7eee1a | [
"MIT"
] | null | null | null | from afterpay.attribute_getter import AttributeGetter
from afterpay.exceptions import AfterpayError
class Merchant(AttributeGetter):
"""
Merchant object
Attributes:
redirectConfirmUrl: The consumer is redirected to this URL when the payment process is completed.
redirectCancelUrl: The cons... | 35.375 | 116 | 0.701413 | 120 | 1,132 | 6.375 | 0.391667 | 0.05098 | 0.066667 | 0.060131 | 0.266667 | 0.266667 | 0.266667 | 0.183007 | 0.183007 | 0.183007 | 0 | 0 | 0.229682 | 1,132 | 31 | 117 | 36.516129 | 0.877294 | 0.201413 | 0 | 0 | 0 | 0 | 0.222603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.105263 | 0.473684 | 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 | 0 | 0 | 0 | 1 |
b36b45596be0c00b3ce27b76dfcdb7d0c441a008 | 693 | py | Python | webdriver_setup/opera.py | xloem/webdriver-setup | 3cd091559ea6d3017995ac7f252c2c107ff1f44c | [
"Apache-2.0"
] | 1 | 2020-12-06T13:27:45.000Z | 2020-12-06T13:27:45.000Z | webdriver_setup/opera.py | xloem/webdriver-setup | 3cd091559ea6d3017995ac7f252c2c107ff1f44c | [
"Apache-2.0"
] | 1 | 2021-11-28T14:03:23.000Z | 2021-11-28T14:03:23.000Z | webdriver_setup/opera.py | xloem/webdriver-setup | 3cd091559ea6d3017995ac7f252c2c107ff1f44c | [
"Apache-2.0"
] | 2 | 2021-07-21T11:24:56.000Z | 2021-09-20T11:13:24.000Z | from selenium import webdriver
from webdriver_manager.opera import OperaDriverManager
from webdriver_setup.driver import DriverBase
class OperaDriver(DriverBase):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def create_driver(self, **kwargs):
"""Create Opera webdriver
... | 25.666667 | 83 | 0.701299 | 74 | 693 | 6.297297 | 0.486486 | 0.055794 | 0.064378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001828 | 0.210678 | 693 | 26 | 84 | 26.653846 | 0.850091 | 0.207792 | 0 | 0 | 0 | 0 | 0.033865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2fa20b3896ff72ff33be98125f29809dab379a74 | 260 | py | Python | helper.py | vanashimko/discrete-fourier-transform | 9430ba2b0b7b994c495d6ea2a9beb1099c512e0c | [
"MIT"
] | 1 | 2018-10-06T10:17:42.000Z | 2018-10-06T10:17:42.000Z | helper.py | vanashimko/discrete-fourier-transform | 9430ba2b0b7b994c495d6ea2a9beb1099c512e0c | [
"MIT"
] | null | null | null | helper.py | vanashimko/discrete-fourier-transform | 9430ba2b0b7b994c495d6ea2a9beb1099c512e0c | [
"MIT"
] | null | null | null | from itertools import repeat
from random import randrange
def randoms_from(values, length=None):
_range = range(length) if length is not None else repeat(0)
values_len = len(values)
for _ in _range:
yield values[randrange(0, values_len)]
| 26 | 63 | 0.723077 | 38 | 260 | 4.789474 | 0.552632 | 0.076923 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.203846 | 260 | 9 | 64 | 28.888889 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fa21b6782bbe1bd275b38f48a0d897b2c47128c | 3,317 | py | Python | azure/cart_svc_serverless/getCartTotal/__init__.py | ishrivatsa/lambda-samples | 17acaa5014401cd9947445140de7ee638aff0b61 | [
"MIT"
] | null | null | null | azure/cart_svc_serverless/getCartTotal/__init__.py | ishrivatsa/lambda-samples | 17acaa5014401cd9947445140de7ee638aff0b61 | [
"MIT"
] | 1 | 2021-06-02T01:00:22.000Z | 2021-06-02T01:00:22.000Z | azure/cart_svc_serverless/getCartTotal/__init__.py | ishrivatsa/serverless-examples | 17acaa5014401cd9947445140de7ee638aff0b61 | [
"MIT"
] | null | null | null | import logging
import os
from os import environ
import redis
import json
import azure.functions as func
redisHost= ""
redisPort = 6379
redisPassword = ""
def connectRedis(host, port, password):
try:
logging.info("Connecting to Redis ")
redisConnection = redis.StrictRedis(host=host, p... | 30.431193 | 91 | 0.614109 | 392 | 3,317 | 5.122449 | 0.244898 | 0.060259 | 0.109562 | 0.069721 | 0.256972 | 0.239044 | 0.209163 | 0.13994 | 0.13994 | 0.114542 | 0 | 0.017184 | 0.280675 | 3,317 | 108 | 92 | 30.712963 | 0.824392 | 0.024118 | 0 | 0.243902 | 0 | 0 | 0.18776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0.109756 | 0.073171 | 0 | 0.256098 | 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 | 0 | 0 | 0 | 1 |
2faa39feebe9d6a660e11520ad56bb2a92a90312 | 1,325 | py | Python | compliance_suite/functions/update_server_settings.py | alextsaihi/rnaget-compliance-suite | a3accae431b9e4f7791dfa5ae867e70da2dd6278 | [
"Apache-2.0"
] | 1 | 2019-09-18T14:38:55.000Z | 2019-09-18T14:38:55.000Z | compliance_suite/functions/update_server_settings.py | alextsaihi/rnaget-compliance-suite | a3accae431b9e4f7791dfa5ae867e70da2dd6278 | [
"Apache-2.0"
] | 14 | 2019-05-24T18:55:23.000Z | 2022-02-25T16:56:28.000Z | compliance_suite/functions/update_server_settings.py | alextsaihi/rnaget-compliance-suite | a3accae431b9e4f7791dfa5ae867e70da2dd6278 | [
"Apache-2.0"
] | 8 | 2019-04-08T14:48:35.000Z | 2022-02-04T16:59:59.000Z | # -*- coding: utf-8 -*-
"""Module compliance_suite.functions.update_server_settings.py
Functions to update server config/settings based on the response of a previous
API request. Each function should accept a Runner object and modify its
"retrieved_server_settings" attribute
"""
def update_supported_filters(runner, ... | 37.857143 | 79 | 0.731321 | 159 | 1,325 | 5.91195 | 0.371069 | 0.104255 | 0.097872 | 0.092553 | 0.42766 | 0.42766 | 0.42766 | 0.42766 | 0.42766 | 0.317021 | 0 | 0.000926 | 0.184906 | 1,325 | 35 | 80 | 37.857143 | 0.869444 | 0.584151 | 0 | 0 | 0 | 0 | 0.137014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
2fab631d5340c51e5036835293e80b75871b2ef7 | 1,272 | py | Python | rnacentral_pipeline/rnacentral/ftp_export/fasta.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 1 | 2018-08-09T14:41:16.000Z | 2018-08-09T14:41:16.000Z | rnacentral_pipeline/rnacentral/ftp_export/fasta.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | 60 | 2015-02-04T16:43:53.000Z | 2022-01-27T10:28:43.000Z | rnacentral_pipeline/rnacentral/ftp_export/fasta.py | RNAcentral/rnacentral-import-pipeline | 238e573440c72581a051b16c15f56fcd25bece74 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright [2009-2017] EMBL-European Bioinformatics Institute
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
Unless required by... | 31.02439 | 72 | 0.751572 | 181 | 1,272 | 5.209945 | 0.574586 | 0.063627 | 0.041357 | 0.060445 | 0.182397 | 0.182397 | 0.182397 | 0.101803 | 0 | 0 | 0 | 0.012093 | 0.154874 | 1,272 | 40 | 73 | 31.8 | 0.865116 | 0.51022 | 0 | 0.142857 | 0 | 0 | 0.07 | 0.036667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fb2669f969726a9b2f0b2041c3aff48c8729aac | 1,746 | py | Python | setup.py | RicoViking9000/profanityfilter | 1c1c1dbc0e895b85ee1e685ab5ef8b4c37c5db00 | [
"BSD-3-Clause"
] | 63 | 2016-09-21T17:33:43.000Z | 2021-12-04T18:36:05.000Z | setup.py | RicoViking9000/profanityfilter | 1c1c1dbc0e895b85ee1e685ab5ef8b4c37c5db00 | [
"BSD-3-Clause"
] | 12 | 2017-07-14T04:47:37.000Z | 2022-02-15T09:50:21.000Z | setup.py | RicoViking9000/profanityfilter | 1c1c1dbc0e895b85ee1e685ab5ef8b4c37c5db00 | [
"BSD-3-Clause"
] | 28 | 2017-07-07T21:52:42.000Z | 2022-02-05T09:49:22.000Z | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
setup(
name='profanityfilter',
version='2.0.6.',
description='A universal Python library for detecting and/or filtering profane words.',
long_description='For more detai... | 34.92 | 92 | 0.616838 | 174 | 1,746 | 6.12069 | 0.557471 | 0.160563 | 0.211268 | 0.146479 | 0.123944 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017517 | 0.247995 | 1,746 | 49 | 93 | 35.632653 | 0.793602 | 0.0252 | 0 | 0.046512 | 0 | 0 | 0.573703 | 0.021226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.069767 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
2fcb561133a4b45129e3d2727e197182d5c62b3e | 227 | py | Python | train.py | tamasandacian/twitter-sentiment-analysis | 154083feae49d4ff159aee6cfae0df6807a662b3 | [
"MIT"
] | 1 | 2019-08-08T05:08:42.000Z | 2019-08-08T05:08:42.000Z | train.py | tamasandacian/twitter-sentiment-analysis | 154083feae49d4ff159aee6cfae0df6807a662b3 | [
"MIT"
] | null | null | null | train.py | tamasandacian/twitter-sentiment-analysis | 154083feae49d4ff159aee6cfae0df6807a662b3 | [
"MIT"
] | null | null | null | # Create FastText model using from raw train data
import fastText
TRAIN_FILE = './datasets/raw_data/tweets.train'
su_model = fastText.train_supervised(input=TRAIN_FILE, wordNgrams=3)
su_model.save_model('model_sentiment.bin') | 32.428571 | 68 | 0.814978 | 34 | 227 | 5.205882 | 0.588235 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.088106 | 227 | 7 | 69 | 32.428571 | 0.850242 | 0.207048 | 0 | 0 | 0 | 0 | 0.284916 | 0.178771 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
2fcfdfc34dd0b46d25701e6315fbd7285e1e2ee4 | 555 | py | Python | backend/media/migrations/0010_auto_20210613_0444.py | LakesideMiners/rt911 | ce2eb82efa6eedbaabf16f567b3db1d8fb808809 | [
"Unlicense"
] | 8 | 2020-07-25T04:54:44.000Z | 2022-01-31T16:08:53.000Z | backend/media/migrations/0010_auto_20210613_0444.py | LakesideMiners/rt911 | ce2eb82efa6eedbaabf16f567b3db1d8fb808809 | [
"Unlicense"
] | 18 | 2020-07-20T00:53:19.000Z | 2022-03-03T21:48:17.000Z | backend/media/migrations/0010_auto_20210613_0444.py | LakesideMiners/rt911 | ce2eb82efa6eedbaabf16f567b3db1d8fb808809 | [
"Unlicense"
] | 2 | 2021-10-29T23:19:02.000Z | 2021-11-06T06:44:54.000Z | # Generated by Django 3.1.12 on 2021-06-13 04:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('media', '0009_auto_20210611_1441'),
]
operations = [
migrations.RemoveField(
model_name='collection',
name='media_i... | 24.130435 | 108 | 0.592793 | 57 | 555 | 5.631579 | 0.701754 | 0.056075 | 0.11838 | 0.143302 | 0.174455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080605 | 0.284685 | 555 | 22 | 109 | 25.227273 | 0.72796 | 0.082883 | 0 | 0.25 | 1 | 0 | 0.161736 | 0.045365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fd243b0141adccef1b512ff16e5f007093b92d7 | 1,691 | py | Python | station/controller/handlers/read_letters_handler.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | station/controller/handlers/read_letters_handler.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | station/controller/handlers/read_letters_handler.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | import json
import rospy
from std_msgs.msg import String
from handlers.handler import Handler
from mapping.command_panel import CommandPanel
from mapping.resistance import Resistance
class ReadLettersHandler(Handler):
def initialize(self):
self.sub = rospy.Subscriber('letters', String, self.read_letters)... | 34.510204 | 105 | 0.702543 | 204 | 1,691 | 5.553922 | 0.333333 | 0.106796 | 0.049426 | 0.044131 | 0.121801 | 0.121801 | 0.063548 | 0 | 0 | 0 | 0 | 0.000746 | 0.207569 | 1,691 | 48 | 106 | 35.229167 | 0.844776 | 0.046718 | 0 | 0 | 0 | 0 | 0.053449 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.111111 | false | 0.027778 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fd9550a294f6b02e8dabd77fe3e2f1337833926 | 1,813 | py | Python | openstates/openstates-master/openstates/ca/actions.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ca/actions.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ca/actions.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | from billy.scrape.actions import Rule, BaseCategorizer
# These are regex patterns that map to action categories.
_categorizer_rules = (
Rule((r'\(Ayes (?P<yes_votes>\d+)\.\s+Noes\s+'
r'(?P<no_votes>\d+)\.( Page \S+\.)?\)')),
Rule(r'^Introduced', 'bill:introduced'),
Rule(r'(?i)Referred to (?P<... | 35.54902 | 74 | 0.630998 | 236 | 1,813 | 4.822034 | 0.338983 | 0.096661 | 0.026362 | 0.057996 | 0.279438 | 0.137083 | 0.047452 | 0 | 0 | 0 | 0 | 0.00403 | 0.178709 | 1,813 | 50 | 75 | 36.26 | 0.760242 | 0.036955 | 0 | 0.055556 | 0 | 0 | 0.583477 | 0.094091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.305556 | 0.027778 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 1 |
2fe2e978cb293b53e1d50c670400eb304e6da2dc | 982 | py | Python | EMPIRIC_POSTPROCESS/SPalignResults/run_pdb.py | yvehchan/TIM_EMPIRIC | 273091a4a257ed51dfd529709138396a18fa49ac | [
"MIT"
] | null | null | null | EMPIRIC_POSTPROCESS/SPalignResults/run_pdb.py | yvehchan/TIM_EMPIRIC | 273091a4a257ed51dfd529709138396a18fa49ac | [
"MIT"
] | null | null | null | EMPIRIC_POSTPROCESS/SPalignResults/run_pdb.py | yvehchan/TIM_EMPIRIC | 273091a4a257ed51dfd529709138396a18fa49ac | [
"MIT"
] | null | null | null | import subprocess as sub
import sys
# tm_pdb = ('Tm',"pdb1i4n_A.ent")
# tt_pdb = ('Tt',"pdb1vc4_A.ent")
# ss_pdb = ('Ss',"pdb2c3z_A.ent")
if sys.argv[1] == 'Tm':
template_name, current_template = 'Tm',"pdb1i4n_A.ent"
elif sys.argv[1] == 'Tt':
template_name, current_template = 'Tt',"pdb1vc4_A.ent"
elif sys.a... | 29.757576 | 104 | 0.638493 | 160 | 982 | 3.75625 | 0.41875 | 0.039933 | 0.039933 | 0.134775 | 0.053245 | 0.053245 | 0 | 0 | 0 | 0 | 0 | 0.024361 | 0.163951 | 982 | 32 | 105 | 30.6875 | 0.707674 | 0.149695 | 0 | 0 | 0 | 0 | 0.251208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 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 | 0 | 0 | 1 |
2fe31a354876b84e075d42b8513e52335b95d67e | 407 | py | Python | search/migrations/0006_auto_20180516_0457.py | kimyou7/ParkGoGreen | a0b21210823d711af56d76226919950aa01a2b92 | [
"MIT"
] | null | null | null | search/migrations/0006_auto_20180516_0457.py | kimyou7/ParkGoGreen | a0b21210823d711af56d76226919950aa01a2b92 | [
"MIT"
] | null | null | null | search/migrations/0006_auto_20180516_0457.py | kimyou7/ParkGoGreen | a0b21210823d711af56d76226919950aa01a2b92 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-05-16 11:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('search', '0005_auto_20180516_0455'),
]
operations = [
migrations.AlterField(
model_name='park',
name='zip_code',
... | 21.421053 | 72 | 0.604423 | 47 | 407 | 5.106383 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108844 | 0.277641 | 407 | 18 | 73 | 22.611111 | 0.707483 | 0.110565 | 0 | 0 | 1 | 0 | 0.113889 | 0.063889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fe822a53dc8ca2f474f7ee2540a5f1ad8fb13ec | 1,903 | py | Python | signalr_async/core/messages.py | sam-mosleh/signalr-async | 40bf79d5482051f76522987cb348e7632bcc0c07 | [
"MIT"
] | 4 | 2021-01-20T18:11:52.000Z | 2022-01-12T16:24:39.000Z | signalr_async/core/messages.py | sam-mosleh/signalr-async | 40bf79d5482051f76522987cb348e7632bcc0c07 | [
"MIT"
] | 2 | 2021-10-15T15:21:44.000Z | 2021-12-08T22:26:39.000Z | signalr_async/core/messages.py | sam-mosleh/signalr-async | 40bf79d5482051f76522987cb348e7632bcc0c07 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from enum import IntEnum
from typing import Any, Dict, List, Optional, Union
class MessageTypes(IntEnum):
INVOCATION = 1
STREAM_ITEM = 2
COMPLETION = 3
STREAM_INVOCATION = 4
CANCEL_INVOCATION = 5
PING = 6
CLOSE = 7
class HubMessageBase:
type_:... | 22.388235 | 56 | 0.7299 | 195 | 1,903 | 7.005128 | 0.271795 | 0.093704 | 0.051245 | 0.079063 | 0.355051 | 0.338946 | 0.338946 | 0.338946 | 0.264275 | 0.264275 | 0 | 0.004551 | 0.191802 | 1,903 | 84 | 57 | 22.654762 | 0.883615 | 0 | 0 | 0.296875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046875 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2fea604bea2a0fd4db7527c2e44b6035cbadde44 | 1,613 | py | Python | setuper web app/handlers/admin/adminhandler.py | dragondjf/CloudSetuper | 31aefe629f7f2d59d287981eda3e4e618ace9e9f | [
"MIT"
] | 22 | 2015-01-08T12:54:20.000Z | 2021-05-16T04:15:45.000Z | setuper web app/handlers/admin/adminhandler.py | dragondjf/CloudSetuper | 31aefe629f7f2d59d287981eda3e4e618ace9e9f | [
"MIT"
] | null | null | null | setuper web app/handlers/admin/adminhandler.py | dragondjf/CloudSetuper | 31aefe629f7f2d59d287981eda3e4e618ace9e9f | [
"MIT"
] | 11 | 2015-01-25T01:26:45.000Z | 2021-08-18T01:40:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tornado.web import authenticated, removeslash
from handlers.basehandlers import BaseHandler
adminusers = [
{
'username': 'admin',
'password': 'admin'
}
]
class AdminLoginHandler(BaseHandler):
role = "admin"
@removeslash
def ge... | 24.439394 | 90 | 0.520769 | 140 | 1,613 | 5.935714 | 0.421429 | 0.039711 | 0.048135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000969 | 0.360198 | 1,613 | 65 | 91 | 24.815385 | 0.804264 | 0.026038 | 0 | 0.269231 | 0 | 0 | 0.13703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.038462 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 1 |
2feed576dc500b8d42c7907dda91a0c63a0e4230 | 4,573 | py | Python | character-identifier/embedding_loader.py | vtt-project/vtt-char-identify | 8d991bc5b3bec1415cea2e5ea4dcc37b6c6b36b1 | [
"Apache-2.0"
] | 12 | 2018-05-20T22:01:05.000Z | 2020-05-08T06:38:38.000Z | character-identifier/embedding_loader.py | vtt-project/vtt-char-identify | 8d991bc5b3bec1415cea2e5ea4dcc37b6c6b36b1 | [
"Apache-2.0"
] | null | null | null | character-identifier/embedding_loader.py | vtt-project/vtt-char-identify | 8d991bc5b3bec1415cea2e5ea4dcc37b6c6b36b1 | [
"Apache-2.0"
] | 5 | 2018-11-18T21:16:27.000Z | 2021-09-23T13:46:52.000Z | import os
import sys
import numpy as np
import gensim
from gensim.models import word2vec
import data_utils
from config_utils import data_paths
DECREASE_FACTOR=1e-4 # TODO @Future: there should be a smarter way
def load_word2vec_embeddings(filename):
binary_file = ".bin" in filename
return gensim.models.Key... | 44.833333 | 145 | 0.730374 | 618 | 4,573 | 5.122977 | 0.255663 | 0.084018 | 0.037903 | 0.04801 | 0.435565 | 0.371762 | 0.35597 | 0.283007 | 0.246368 | 0.186987 | 0 | 0.004061 | 0.192215 | 4,573 | 101 | 146 | 45.277228 | 0.853005 | 0.252132 | 0 | 0.127273 | 0 | 0 | 0.040934 | 0 | 0 | 0 | 0 | 0.019802 | 0 | 1 | 0.109091 | false | 0 | 0.127273 | 0 | 0.309091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ff404338aa621080a3a500a159897b5f6c9013e | 5,821 | py | Python | TestInterfaceResiduePrediction.py | sebastiandaberdaku/AntibodyInterfacePrediction | 4d31f57f7cdac1fe68cfb4f3448f6e3129ae2838 | [
"BSD-3-Clause"
] | 10 | 2017-10-11T16:05:35.000Z | 2021-10-01T14:43:10.000Z | TestInterfaceResiduePrediction.py | sebastiandaberdaku/AntibodyInterfacePrediction | 4d31f57f7cdac1fe68cfb4f3448f6e3129ae2838 | [
"BSD-3-Clause"
] | null | null | null | TestInterfaceResiduePrediction.py | sebastiandaberdaku/AntibodyInterfacePrediction | 4d31f57f7cdac1fe68cfb4f3448f6e3129ae2838 | [
"BSD-3-Clause"
] | 2 | 2018-09-13T17:04:13.000Z | 2019-01-22T08:55:22.000Z | # This script runs the IF algorithm for outlier detection to remove false positive patches and maps the predicted LSPs on the underlying residues.
# The results are compared to other predictor software packages.
# Please remember to set the path variable to the current location of the test set.
import numpy as np
from... | 47.325203 | 202 | 0.662429 | 811 | 5,821 | 4.532676 | 0.288533 | 0.027203 | 0.027203 | 0.007617 | 0.215996 | 0.194777 | 0.160501 | 0.108542 | 0 | 0 | 0 | 0.013653 | 0.232434 | 5,821 | 122 | 203 | 47.713115 | 0.809087 | 0.162171 | 0 | 0 | 0 | 0 | 0.12113 | 0.10721 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.026667 | 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 | 0 | 0 | 1 |
2ff6da846eaf58d5ba7cf9c6f7b0be471d5b5563 | 9,139 | py | Python | solrcl/document.py | zaccheob/solrcl | de731c0e1f12361770121e6f2aad7e41c7a40f68 | [
"MIT"
] | null | null | null | solrcl/document.py | zaccheob/solrcl | de731c0e1f12361770121e6f2aad7e41c7a40f68 | [
"MIT"
] | null | null | null | solrcl/document.py | zaccheob/solrcl | de731c0e1f12361770121e6f2aad7e41c7a40f68 | [
"MIT"
] | null | null | null | # -*- coding: utf8 -*-
import warnings
import xml.etree.cElementTree as ET
import re
import logging
logger = logging.getLogger("solrcl")
logger.setLevel(logging.DEBUG)
import exceptions
class SOLRDocumentError(exceptions.SOLRError): pass
class SOLRDocumentWarning(UserWarning): pass
class SOLRDocument(object):
"... | 40.083333 | 291 | 0.589561 | 1,065 | 9,139 | 4.956808 | 0.243192 | 0.031824 | 0.023868 | 0.017049 | 0.15628 | 0.124266 | 0.07312 | 0.054935 | 0.044327 | 0.021974 | 0 | 0.002228 | 0.312397 | 9,139 | 227 | 292 | 40.259912 | 0.837842 | 0.094759 | 0 | 0.191617 | 0 | 0 | 0.052931 | 0.002847 | 0 | 0 | 0 | 0 | 0.005988 | 0 | null | null | 0.017964 | 0.02994 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ff8bf398acab99da30d643bdc618ebcc561b20a | 14,054 | py | Python | testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2021 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 51.291971 | 221 | 0.674897 | 1,615 | 14,054 | 5.76904 | 0.19195 | 0.011592 | 0.025545 | 0.040571 | 0.578834 | 0.541913 | 0.518193 | 0.498444 | 0.459053 | 0.443061 | 0 | 0.007832 | 0.218728 | 14,054 | 273 | 222 | 51.479853 | 0.84071 | 0.110431 | 0 | 0.510067 | 0 | 0.026846 | 0.37698 | 0.078108 | 0.006711 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013423 | null | null | 0.315436 | 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 | 0 | 0 | 1 |
2ffb1e0056539f8edf4a7ae850e5442548db09df | 1,833 | py | Python | fern/models.py | edilio/dental | 3fa6b453939c7536883d1036fd414b3fae8977d7 | [
"MIT"
] | 1 | 2016-03-14T18:56:06.000Z | 2016-03-14T18:56:06.000Z | fern/models.py | edilio/dental | 3fa6b453939c7536883d1036fd414b3fae8977d7 | [
"MIT"
] | null | null | null | fern/models.py | edilio/dental | 3fa6b453939c7536883d1036fd414b3fae8977d7 | [
"MIT"
] | null | null | null | import datetime
from django.db import models
from django.utils import timezone
class Source(models.Model):
name = models.CharField(max_length=50)
def __unicode__(self):
return self.name
GENDER_CHOICES = (
('F', 'Female'),
('M', 'Male'),
)
class Patient(models.Model):
fullname = model... | 26.185714 | 90 | 0.642662 | 225 | 1,833 | 5.088889 | 0.328889 | 0.062882 | 0.094323 | 0.125764 | 0.40524 | 0.361572 | 0.361572 | 0.361572 | 0.282969 | 0.282969 | 0 | 0.014979 | 0.235134 | 1,833 | 70 | 91 | 26.185714 | 0.801712 | 0 | 0 | 0.45283 | 0 | 0 | 0.029989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.056604 | 0.075472 | 0.603774 | 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 | 0 | 1 | 0 | 0 | 1 |
2ffe9071010ecb101be8a813c44cbb919e9b3376 | 267 | py | Python | quoters/check_connection.py | suman-kr/random-quotes | 5d3241dc9647a7b16a93dece12e9f214072e64c3 | [
"MIT"
] | 22 | 2020-01-24T08:59:18.000Z | 2022-02-09T02:35:20.000Z | quoters/check_connection.py | suman-kr/random-quotes | 5d3241dc9647a7b16a93dece12e9f214072e64c3 | [
"MIT"
] | 9 | 2021-04-07T00:57:09.000Z | 2022-03-31T10:18:06.000Z | quoters/check_connection.py | suman-kr/random-quotes | 5d3241dc9647a7b16a93dece12e9f214072e64c3 | [
"MIT"
] | 1 | 2021-06-06T19:00:55.000Z | 2021-06-06T19:00:55.000Z | import socket
from quoters.constants import CONN_URL
def is_connected():
try:
sock_conn = socket.create_connection((CONN_URL, 80))
if(sock_conn):
sock_conn.close()
return True
except OSError:
pass
return False
| 20.538462 | 60 | 0.632959 | 33 | 267 | 4.909091 | 0.69697 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.29588 | 267 | 12 | 61 | 22.25 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 1 |
2ffffeae1ee94afdecc472f7586e718b4d8018e7 | 4,733 | py | Python | save_combine.py | firebrettbrown/bbgm | 31d41cef2175be452793866e1119150518936120 | [
"MIT"
] | 11 | 2019-06-25T17:20:48.000Z | 2020-07-04T03:09:17.000Z | save_combine.py | firebrettbrown/bbgm | 31d41cef2175be452793866e1119150518936120 | [
"MIT"
] | null | null | null | save_combine.py | firebrettbrown/bbgm | 31d41cef2175be452793866e1119150518936120 | [
"MIT"
] | 10 | 2019-06-28T06:26:28.000Z | 2022-01-17T18:12:36.000Z | import argparse
import os
import sys
import shutil
import subprocess
import re
from bs4 import BeautifulSoup
import pandas as pd
import numpy as np
import pickle
from selenium import webdriver
tables = {}
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-... | 41.156522 | 175 | 0.539193 | 596 | 4,733 | 4.172819 | 0.318792 | 0.04423 | 0.018094 | 0.017692 | 0.232006 | 0.190189 | 0.145155 | 0.118617 | 0.090873 | 0.090873 | 0 | 0.0094 | 0.30319 | 4,733 | 115 | 176 | 41.156522 | 0.744694 | 0.760828 | 0 | 0 | 0 | 0.034483 | 0.149763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.37931 | 0 | 0.37931 | 0.034483 | 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 | 0 | 0 | 0 | 1 |
64052ebf346968245c36b8f3711569edc3bcb093 | 454 | py | Python | navigationCommand.py | islam-shamiul/Selenium_python | ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a | [
"MIT"
] | null | null | null | navigationCommand.py | islam-shamiul/Selenium_python | ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a | [
"MIT"
] | null | null | null | navigationCommand.py | islam-shamiul/Selenium_python | ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a | [
"MIT"
] | 1 | 2020-07-21T08:43:25.000Z | 2020-07-21T08:43:25.000Z | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Chrome(executable_path="E:/SQA/chromedriver_win32/chromedriver.exe")
driver.get("http://newtours.demoaut.com/")
time.sleep(5)
print(driver.title)
driver.get("https://www.google.com/")
time.sleep(5)
print(dr... | 15.133333 | 87 | 0.762115 | 66 | 454 | 5.212121 | 0.469697 | 0.104651 | 0.116279 | 0.174419 | 0.389535 | 0.389535 | 0.389535 | 0.203488 | 0 | 0 | 0 | 0.014423 | 0.0837 | 454 | 30 | 88 | 15.133333 | 0.8125 | 0 | 0 | 0.470588 | 0 | 0 | 0.204396 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
641072198fc4166738877f258f40200bcaf10935 | 539 | py | Python | geotrek/outdoor/migrations/0026_auto_20210915_1346.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | 50 | 2016-10-19T23:01:21.000Z | 2022-03-28T08:28:34.000Z | geotrek/outdoor/migrations/0026_auto_20210915_1346.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | 1,422 | 2016-10-27T10:39:40.000Z | 2022-03-31T13:37:10.000Z | geotrek/outdoor/migrations/0026_auto_20210915_1346.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | 46 | 2016-10-27T10:59:10.000Z | 2022-03-22T15:55:56.000Z | # Generated by Django 3.1.13 on 2021-09-15 13:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('outdoor', '0025_merge_ratings_min_max'),
]
operations = [
migrations.RemoveField(
model_name='site',
name='ratings_... | 23.434783 | 96 | 0.588126 | 56 | 539 | 5.517857 | 0.696429 | 0.058252 | 0.084142 | 0.110032 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052356 | 0.29128 | 539 | 22 | 97 | 24.5 | 0.756545 | 0.085343 | 0 | 0.25 | 1 | 0 | 0.158859 | 0.052953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64146f732312850431c198582abd3211505c6c74 | 233 | py | Python | Python/Arquivos/conta_palavras.py | lucsap/APC | 344011552dccdf8210d65cee0531460a1a2d6fae | [
"MIT"
] | null | null | null | Python/Arquivos/conta_palavras.py | lucsap/APC | 344011552dccdf8210d65cee0531460a1a2d6fae | [
"MIT"
] | null | null | null | Python/Arquivos/conta_palavras.py | lucsap/APC | 344011552dccdf8210d65cee0531460a1a2d6fae | [
"MIT"
] | null | null | null | def palavras_repetidas(fileName, word):
file = open(fileName, 'r')
count = 0
for i in file.readlines():
if word in i:
count += 1
print(f'{word} aparece no arquivo {fileName} {count} vez(es).') | 29.125 | 67 | 0.575107 | 32 | 233 | 4.15625 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.291845 | 233 | 8 | 67 | 29.125 | 0.793939 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 1 |
6416796cf00258667b65d09bd35e52a24ddcd9ba | 145 | py | Python | CodeForces/Bit++.py | PratikGarai/Coding-Challenges | af5f4458505b26538ec2d7dc0ca09aa236b2d01c | [
"MIT"
] | null | null | null | CodeForces/Bit++.py | PratikGarai/Coding-Challenges | af5f4458505b26538ec2d7dc0ca09aa236b2d01c | [
"MIT"
] | 2 | 2020-10-01T16:13:37.000Z | 2020-10-30T19:12:38.000Z | CodeForces/Bit++.py | PratikGarai/Coding-Challenges | af5f4458505b26538ec2d7dc0ca09aa236b2d01c | [
"MIT"
] | 6 | 2020-10-03T09:04:26.000Z | 2022-01-09T11:57:40.000Z | n = int(input())
x = 0
for i in range(n):
l = set([j for j in input()])
if "+" in l:
x += 1
else :
x -= 1
print(x)
| 12.083333 | 33 | 0.4 | 27 | 145 | 2.148148 | 0.592593 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.413793 | 145 | 11 | 34 | 13.181818 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64199ae9b43b9d4ae5575ea15f308f73ddc6c547 | 889 | py | Python | geotrek/feedback/urls.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | null | null | null | geotrek/feedback/urls.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | null | null | null | geotrek/feedback/urls.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
from django.urls import path, register_converter
from mapentity.registry import registry
from rest_framework.routers import DefaultRouter
from geotrek.common.urls import LangConverter
from geotrek.feedback import models as feedback_models
from .views import CategoryList, FeedbackOptio... | 38.652174 | 102 | 0.80315 | 109 | 889 | 6.431193 | 0.449541 | 0.028531 | 0.031384 | 0.042796 | 0.065621 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001227 | 0.08324 | 889 | 22 | 103 | 40.409091 | 0.858896 | 0 | 0 | 0 | 0 | 0 | 0.172103 | 0.121485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 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 | 0 | 0 | 0 | 1 |
6423b272fd3f08098ebf8d314748cf75a6207bb0 | 1,157 | py | Python | accounts/accounts/doctype/purchase_invoice/purchase_invoice.py | sumaiya2908/Accounting-App | 4de21b6a5d69ab422483303c4a743f3e323783a3 | [
"MIT"
] | null | null | null | accounts/accounts/doctype/purchase_invoice/purchase_invoice.py | sumaiya2908/Accounting-App | 4de21b6a5d69ab422483303c4a743f3e323783a3 | [
"MIT"
] | null | null | null | accounts/accounts/doctype/purchase_invoice/purchase_invoice.py | sumaiya2908/Accounting-App | 4de21b6a5d69ab422483303c4a743f3e323783a3 | [
"MIT"
] | null | null | null | # Copyright (c) 2021, Summayya and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
from ..gl_entry.gl_entry import create_gl_entry
class PurchaseInvoice(Document):
def validate(self):
self.set_status()
self.set_total_amoun... | 26.906977 | 70 | 0.611063 | 143 | 1,157 | 4.776224 | 0.412587 | 0.051245 | 0.057101 | 0.038067 | 0.166911 | 0.11713 | 0.11713 | 0.11713 | 0 | 0 | 0 | 0.012346 | 0.299914 | 1,157 | 43 | 71 | 26.906977 | 0.830864 | 0.146932 | 0 | 0.083333 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
6425b9d5a46f13b1d3e986f11cbc61c7dd984f83 | 499 | py | Python | setup.py | dgaston/kvasir | 5e938193a936944c765b8dd78600acc258fedbab | [
"MIT"
] | null | null | null | setup.py | dgaston/kvasir | 5e938193a936944c765b8dd78600acc258fedbab | [
"MIT"
] | null | null | null | setup.py | dgaston/kvasir | 5e938193a936944c765b8dd78600acc258fedbab | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='Kvasir',
version='0.9',
description='Kvasir OpenShift App',
author='Dan Gaston',
author_email='admin@deaddriftbio.com',
url='https://www.python.org/community/sigs/current/distutils-sig',
install_requires=['Flask', 'MarkupSafe', 'Flask-MongoEn... | 38.384615 | 87 | 0.593186 | 52 | 499 | 5.653846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.234469 | 499 | 12 | 88 | 41.583333 | 0.764398 | 0 | 0 | 0 | 0 | 0 | 0.456914 | 0.044088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64286b89fc025e5e539006ca29420f5163f9fba7 | 19,894 | py | Python | cytomine-applications/landmark_model_builder/validation.py | Cytomine-ULiege/Cytomine-python-datamining | 16db995f175e8972b8731a8df9391625e1920288 | [
"Apache-2.0"
] | null | null | null | cytomine-applications/landmark_model_builder/validation.py | Cytomine-ULiege/Cytomine-python-datamining | 16db995f175e8972b8731a8df9391625e1920288 | [
"Apache-2.0"
] | null | null | null | cytomine-applications/landmark_model_builder/validation.py | Cytomine-ULiege/Cytomine-python-datamining | 16db995f175e8972b8731a8df9391625e1920288 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# * Copyright (c) 2009-2015. Authors: see NOTICE file.
# *
# * 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... | 38.111111 | 120 | 0.595255 | 2,609 | 19,894 | 4.364124 | 0.165964 | 0.047427 | 0.019322 | 0.014491 | 0.208238 | 0.106973 | 0.040488 | 0.025382 | 0.019234 | 0 | 0 | 0.010458 | 0.264602 | 19,894 | 521 | 121 | 38.184261 | 0.767806 | 0.03584 | 0 | 0.056511 | 0 | 0.002457 | 0.184657 | 0.023596 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007371 | 0.019656 | null | null | 0.004914 | 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 | 0 | 0 | 1 |
6431a7d544c46cfb92483bf64ab03075de332a4d | 2,477 | py | Python | virtool/validators.py | ReeceHoffmann/virtool | f9befad060fe16fa29fb80124e674ac5a9c4f538 | [
"MIT"
] | 39 | 2016-10-31T23:28:59.000Z | 2022-01-15T00:00:42.000Z | virtool/validators.py | ReeceHoffmann/virtool | f9befad060fe16fa29fb80124e674ac5a9c4f538 | [
"MIT"
] | 1,690 | 2017-02-07T23:39:48.000Z | 2022-03-31T22:30:44.000Z | virtool/validators.py | ReeceHoffmann/virtool | f9befad060fe16fa29fb80124e674ac5a9c4f538 | [
"MIT"
] | 25 | 2017-02-08T18:25:31.000Z | 2021-09-20T22:55:25.000Z | import re
from email_validator import validate_email, EmailSyntaxError
from virtool.users.utils import PERMISSIONS
RE_HEX_COLOR = re.compile("^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$")
def strip(value: str) -> str:
"""
Strip flanking whitespace from the passed string. Used to coerce values in Cerberus validators... | 32.168831 | 113 | 0.705289 | 358 | 2,477 | 4.815642 | 0.256983 | 0.020882 | 0.030162 | 0.053364 | 0.357309 | 0.24942 | 0.216937 | 0.180974 | 0.135731 | 0.135731 | 0 | 0.003093 | 0.216795 | 2,477 | 76 | 114 | 32.592105 | 0.885567 | 0.549859 | 0 | 0 | 0 | 0.05 | 0.156315 | 0.035197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.15 | 0 | 0.45 | 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 | 0 | 0 | 0 | 1 |
6436ac8ba5b8954f205ea6a742afb28c7e206a5a | 799 | py | Python | oo/pessoa.py | thaila52/pythonbirds | 55101aaf319361dae7f3d927c3a8d2777b0f8a8b | [
"MIT"
] | null | null | null | oo/pessoa.py | thaila52/pythonbirds | 55101aaf319361dae7f3d927c3a8d2777b0f8a8b | [
"MIT"
] | null | null | null | oo/pessoa.py | thaila52/pythonbirds | 55101aaf319361dae7f3d927c3a8d2777b0f8a8b | [
"MIT"
] | null | null | null | class Pessoa:
olhos = 2
def __init__(self, *filhos, nome=None, idade=35):
self.nome = nome
self.idade = idade
self.filhos = list(filhos)
def cumprimentar(self):
return f'Olá{id(self)}'
if __name__ == '__main__':
thaila = Pessoa(nome='Thaila')
junior = Pessoa(thaila,... | 25.774194 | 63 | 0.638298 | 100 | 799 | 4.9 | 0.32 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.229036 | 799 | 30 | 64 | 26.633333 | 0.788961 | 0 | 0 | 0 | 0 | 0 | 0.046366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0.037037 | 0.185185 | 0.444444 | 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 | 0 | 0 | 1 | 0 | 1 |
644138068d0aa242e34e9494e5392a407d2e6756 | 4,694 | py | Python | src/fognode/app.py | hehaichi/dist-fog-c | 1d09134c4059718d3f67021f574a85e51754ed8b | [
"MIT"
] | null | null | null | src/fognode/app.py | hehaichi/dist-fog-c | 1d09134c4059718d3f67021f574a85e51754ed8b | [
"MIT"
] | null | null | null | src/fognode/app.py | hehaichi/dist-fog-c | 1d09134c4059718d3f67021f574a85e51754ed8b | [
"MIT"
] | null | null | null | from flask import Flask
from flask import request
app = Flask(__name__)
# Imports
import psutil
from flask import jsonify
import redis
import json
from os import urandom
import hashlib
import docker
from docker import APIClient
import requests
import zipfile
from celery import Celery
from celery.utils.log import get_t... | 28.621951 | 110 | 0.659139 | 597 | 4,694 | 4.978224 | 0.261307 | 0.048452 | 0.030283 | 0.010094 | 0.086137 | 0.012113 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.196208 | 4,694 | 163 | 111 | 28.797546 | 0.767294 | 0.083937 | 0 | 0.024 | 0 | 0 | 0.162269 | 0.017978 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136 | null | null | 0.048 | 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 | 0 | 0 | 1 |
64428d8d713a83be8c76fc25d74c248dd372769d | 13,566 | py | Python | tarot_deck.py | Soren98/tarot | 648f543034ef0e660b2f7f1f876052398286d227 | [
"Unlicense"
] | null | null | null | tarot_deck.py | Soren98/tarot | 648f543034ef0e660b2f7f1f876052398286d227 | [
"Unlicense"
] | null | null | null | tarot_deck.py | Soren98/tarot | 648f543034ef0e660b2f7f1f876052398286d227 | [
"Unlicense"
] | null | null | null | import json
from copy import deepcopy
from random import shuffle
cards = ['magician', 'high priestess', 'empress', 'emperor', 'hierophant', 'lovers', 'chariot', 'justice', 'hermit',
'wheel of fortune', 'strength', 'hanged man', 'death', 'temperance', 'devil', 'tower', 'star', 'moon', 'sun',
'judgem... | 65.221154 | 120 | 0.618605 | 1,433 | 13,566 | 5.849965 | 0.387997 | 0.035071 | 0.00501 | 0.008589 | 0.014553 | 0.014553 | 0.014553 | 0.014553 | 0 | 0 | 0 | 0.000098 | 0.250258 | 13,566 | 207 | 121 | 65.536232 | 0.824108 | 0 | 0 | 0 | 0 | 0 | 0.682736 | 0.001843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025253 | false | 0.010101 | 0.015152 | 0 | 0.060606 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff24c50a953f9de8e5c507018c8a393f88c6968a | 3,394 | py | Python | src/library/blas/AutoGemm/KernelsToPreCompile.py | tingxingdong/clean | 9cdaed4c755b825b0c10a99f9974224993aa39a9 | [
"Apache-2.0"
] | 1 | 2021-07-07T11:28:56.000Z | 2021-07-07T11:28:56.000Z | src/library/blas/AutoGemm/KernelsToPreCompile.py | tingxingdong/clean | 9cdaed4c755b825b0c10a99f9974224993aa39a9 | [
"Apache-2.0"
] | null | null | null | src/library/blas/AutoGemm/KernelsToPreCompile.py | tingxingdong/clean | 9cdaed4c755b825b0c10a99f9974224993aa39a9 | [
"Apache-2.0"
] | null | null | null | import os
import argparse
import AutoGemmParameters
import Common
################################################################################
# Auto-Gemm
################################################################################
def writeOfflineCompilation(args):
print "AutoGemm.py: Generating list of k... | 36.891304 | 130 | 0.570418 | 338 | 3,394 | 5.686391 | 0.360947 | 0.016649 | 0.01873 | 0.010406 | 0.085848 | 0.021852 | 0.021852 | 0.01769 | 0.01769 | 0 | 0 | 0.011615 | 0.213612 | 3,394 | 91 | 131 | 37.296703 | 0.708505 | 0.042428 | 0 | 0.028986 | 0 | 0.028986 | 0.209175 | 0.009928 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057971 | null | null | 0.043478 | 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 | 0 | 0 | 1 |
ff2a2e9042dfa861f9dd3f86cd1a00194ad688f3 | 5,184 | py | Python | python/iperf_mar1.py | ttlequals0/misc | 95ce083312bc241b196afcf675f93480ca6866b0 | [
"MIT"
] | null | null | null | python/iperf_mar1.py | ttlequals0/misc | 95ce083312bc241b196afcf675f93480ca6866b0 | [
"MIT"
] | null | null | null | python/iperf_mar1.py | ttlequals0/misc | 95ce083312bc241b196afcf675f93480ca6866b0 | [
"MIT"
] | null | null | null | #!/usr/local/apps/networking/bin/python2.7
# script will test all server clinet pairs with iperf
### this is the prd script
# pmw 2/18/16
import os
import re
import sys
import datetime
#from subprocess import Popen, PIP
import subprocess
import logging
from pprint import pprint
import argparse
import socket
import Queu... | 29.622857 | 104 | 0.565586 | 681 | 5,184 | 4.25257 | 0.317181 | 0.008633 | 0.01105 | 0.008287 | 0.203729 | 0.164365 | 0.150207 | 0.150207 | 0.132942 | 0.115331 | 0 | 0.019267 | 0.279128 | 5,184 | 174 | 105 | 29.793103 | 0.755686 | 0.094136 | 0 | 0.201389 | 0 | 0 | 0.139162 | 0.019025 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.083333 | 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 | 0 | 0 | 1 |
ff3079fc8a9e3d739eb7e1706631d0a9711499a3 | 7,769 | py | Python | calvin_models/calvin_agent/datasets/npz_dataset.py | nikepupu/calvin | 23ce311bb14a07d284b87589842f0a542ab0a6fa | [
"MIT"
] | null | null | null | calvin_models/calvin_agent/datasets/npz_dataset.py | nikepupu/calvin | 23ce311bb14a07d284b87589842f0a542ab0a6fa | [
"MIT"
] | null | null | null | calvin_models/calvin_agent/datasets/npz_dataset.py | nikepupu/calvin | 23ce311bb14a07d284b87589842f0a542ab0a6fa | [
"MIT"
] | null | null | null | import logging
import os
from pathlib import Path
import re
from typing import Dict, List, Optional, Tuple
from calvin_agent.datasets.base_dataset import BaseDataset
from calvin_agent.datasets.utils.episode_utils import (
get_state_info_dict,
process_actions,
process_depth,
process_rgb,
process_sta... | 41.324468 | 118 | 0.644098 | 1,026 | 7,769 | 4.584795 | 0.192982 | 0.037415 | 0.041667 | 0.040391 | 0.442177 | 0.404337 | 0.366071 | 0.318027 | 0.27551 | 0.26233 | 0 | 0.004031 | 0.265543 | 7,769 | 187 | 119 | 41.545455 | 0.820365 | 0.246235 | 0 | 0.156863 | 0 | 0.009804 | 0.063588 | 0.021257 | 0 | 0 | 0 | 0.010695 | 0.058824 | 1 | 0.068627 | false | 0 | 0.088235 | 0 | 0.22549 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff3706c2486945d76ad59f2792a976df3fa7f5b3 | 464 | py | Python | multimenus/migrations/0006_auto_20200715_1100.py | arck1/djangocms-multimenus | 45accefcb280b96373121331f3294ffffe3e36af | [
"MIT"
] | null | null | null | multimenus/migrations/0006_auto_20200715_1100.py | arck1/djangocms-multimenus | 45accefcb280b96373121331f3294ffffe3e36af | [
"MIT"
] | null | null | null | multimenus/migrations/0006_auto_20200715_1100.py | arck1/djangocms-multimenus | 45accefcb280b96373121331f3294ffffe3e36af | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2020-07-15 11:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('multimenus', '0005_auto_20200415_1621'),
]
operations = [
migrations.AlterField(
model_name='menuitem',
name='url',... | 24.421053 | 125 | 0.625 | 55 | 464 | 5.163636 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101744 | 0.258621 | 464 | 18 | 126 | 25.777778 | 0.723837 | 0.099138 | 0 | 0 | 1 | 0 | 0.194712 | 0.055288 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff3d57b7a5ef287c60851d0bb59634ded80f741c | 1,584 | py | Python | day4/day4.py | areddish/aoc2020 | 9d609e8147e370e31ffe92e4170c5ca7c463186c | [
"MIT"
] | 1 | 2020-12-08T03:02:00.000Z | 2020-12-08T03:02:00.000Z | day4/day4.py | areddish/aoc2020 | 9d609e8147e370e31ffe92e4170c5ca7c463186c | [
"MIT"
] | null | null | null | day4/day4.py | areddish/aoc2020 | 9d609e8147e370e31ffe92e4170c5ca7c463186c | [
"MIT"
] | null | null | null | def check_hgt(h):
if "cm" in h:
return 150 <= int(h.replace("cm","")) <= 193
elif "in" in h:
return 59 <= int(h.replace("in","")) <= 76
else:
return False
def check_hcl(h):
if h[0] != '#' or len(h) != 7:
return False
for x in h[1:]:
if not x in list("... | 27.310345 | 73 | 0.508207 | 216 | 1,584 | 3.666667 | 0.361111 | 0.05303 | 0.045455 | 0.064394 | 0.219697 | 0.151515 | 0.151515 | 0.151515 | 0 | 0 | 0 | 0.062673 | 0.315025 | 1,584 | 57 | 74 | 27.789474 | 0.667281 | 0.022727 | 0 | 0.265306 | 0 | 0 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0.22449 | 0 | 0.040816 | 0.244898 | 0.040816 | 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 | 0 | 0 | 1 |
ff4088986ff98e499e58a08879fd7b5b158a61fc | 893 | py | Python | marmot/features/google_translate_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 19 | 2015-08-21T13:06:37.000Z | 2021-07-26T09:56:29.000Z | marmot/features/google_translate_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 36 | 2015-01-13T13:01:07.000Z | 2016-06-22T06:59:59.000Z | marmot/features/google_translate_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 8 | 2015-12-11T16:41:47.000Z | 2019-04-08T16:28:40.000Z | from goslate import Goslate
from nltk import word_tokenize
import ipdb
from marmot.features.feature_extractor import FeatureExtractor
from marmot.exceptions.no_data_error import NoDataError
class GoogleTranslateFeatureExtractor(FeatureExtractor):
def __init__(self, lang='en'):
self.lang = lang
def ... | 30.793103 | 97 | 0.677492 | 98 | 893 | 5.979592 | 0.44898 | 0.119454 | 0.040956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.234043 | 893 | 28 | 98 | 31.892857 | 0.853801 | 0 | 0 | 0 | 0 | 0 | 0.117581 | 0.034714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0.047619 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ff40b32664a84e5bb2c3ecaa367f1779b82a8367 | 235 | py | Python | hackerrank/built_ins/zipped.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | hackerrank/built_ins/zipped.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | hackerrank/built_ins/zipped.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | if __name__ == '__main__':
_, X = input().split()
subjects = list()
for _ in range(int(X)):
subjects.append(map(float, input().split()))
for i in zip(*subjects):
print("{0:.1f}".format(sum(i)/len(i)))
| 23.5 | 52 | 0.544681 | 32 | 235 | 3.6875 | 0.71875 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.238298 | 235 | 9 | 53 | 26.111111 | 0.648045 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 |
ff45f44cc60ac4208193a70ca5502f0bb47aa1a1 | 9,110 | py | Python | scripts/dspace_dsa_maker.py | masonpublishing/dspace_simple_archives_import | 02b90aca955dc34019e4efd77d823dbe91a9812e | [
"Apache-2.0"
] | 1 | 2019-06-04T15:36:39.000Z | 2019-06-04T15:36:39.000Z | scripts/dspace_dsa_maker.py | masonpublishing/dspace_simple_archives_import | 02b90aca955dc34019e4efd77d823dbe91a9812e | [
"Apache-2.0"
] | null | null | null | scripts/dspace_dsa_maker.py | masonpublishing/dspace_simple_archives_import | 02b90aca955dc34019e4efd77d823dbe91a9812e | [
"Apache-2.0"
] | 1 | 2019-06-04T15:42:39.000Z | 2019-06-04T15:42:39.000Z | """
dspace_dsa_maker.py - prepare DSpace Simple Archives for import.
Copyright 2018 University of Toronto Libraries
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... | 42.570093 | 97 | 0.597475 | 1,080 | 9,110 | 4.951852 | 0.288889 | 0.017951 | 0.021877 | 0.03534 | 0.212603 | 0.15445 | 0.121167 | 0.121167 | 0.077786 | 0.077786 | 0 | 0.003837 | 0.284852 | 9,110 | 213 | 98 | 42.769953 | 0.817038 | 0.10944 | 0 | 0.140496 | 0 | 0 | 0.181215 | 0.010487 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049587 | null | null | 0.041322 | 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 | 0 | 0 | 1 |
ff46471a452e693a79e98c3a031f0fa30bba73ed | 533 | py | Python | tests/test_notes_append_header.py | fujiawei-dev/tookit-py | 5ab3a18a41885f6166150cc27183621b96f8f991 | [
"BSD-3-Clause"
] | null | null | null | tests/test_notes_append_header.py | fujiawei-dev/tookit-py | 5ab3a18a41885f6166150cc27183621b96f8f991 | [
"BSD-3-Clause"
] | null | null | null | tests/test_notes_append_header.py | fujiawei-dev/tookit-py | 5ab3a18a41885f6166150cc27183621b96f8f991 | [
"BSD-3-Clause"
] | null | null | null | """
Date: 2022.04.13 10:28
Description: Omit
LastEditors: Rustle Karl
LastEditTime: 2022.04.13 10:28
"""
import tempfile
from pathlib import Path
from create_config_file.notes import notes_append_header
def test_notes_append_header():
path = tempfile.gettempdir()
file = Path(path) / "file.txt"
file.writ... | 20.5 | 56 | 0.718574 | 75 | 533 | 4.88 | 0.453333 | 0.120219 | 0.185792 | 0.054645 | 0.453552 | 0.387978 | 0.387978 | 0.387978 | 0.387978 | 0.387978 | 0 | 0.053691 | 0.161351 | 533 | 25 | 57 | 21.32 | 0.765101 | 0.180113 | 0 | 0.428571 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
ff46c556255a2b8fc5d5a10506e048de2e0a70b8 | 959 | py | Python | examples/multifig.py | ianhi/mpl-playback | 2c0896205b94e2c3c1ee9e8582291cc2e94aab99 | [
"BSD-3-Clause"
] | 1 | 2021-05-06T22:38:23.000Z | 2021-05-06T22:38:23.000Z | examples/multifig.py | ianhi/mpl-playback | 2c0896205b94e2c3c1ee9e8582291cc2e94aab99 | [
"BSD-3-Clause"
] | 4 | 2021-01-12T02:15:00.000Z | 2021-06-30T21:14:43.000Z | examples/multifig.py | ianhi/mpl-playback | 2c0896205b94e2c3c1ee9e8582291cc2e94aab99 | [
"BSD-3-Clause"
] | null | null | null | """
================
Multiple Figures
================
Test case for putting multiple figures into sphinx gallery.
The playback file was generated using:
``record_file("multifig.py", ["slider_fig", "fig"])``
"""
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider
# The parametri... | 22.833333 | 65 | 0.694473 | 149 | 959 | 4.389262 | 0.583893 | 0.009174 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.15537 | 959 | 41 | 66 | 23.390244 | 0.785185 | 0.402503 | 0 | 0 | 1 | 0 | 0.00713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0.058824 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff4a89c35219dc2f2732b8374cd3ee1ff05ce0d0 | 572 | py | Python | src/tratamientos/migrations/0006_auto_20170201_1554.py | mava-ar/sgk | cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4 | [
"Apache-2.0"
] | null | null | null | src/tratamientos/migrations/0006_auto_20170201_1554.py | mava-ar/sgk | cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4 | [
"Apache-2.0"
] | 32 | 2016-05-09T19:37:08.000Z | 2022-01-13T01:00:52.000Z | src/tratamientos/migrations/0006_auto_20170201_1554.py | mava-ar/sgk | cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2017-02-01 18:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tratamientos', '0005_sesion_profesional'),
]
operat... | 26 | 129 | 0.662587 | 64 | 572 | 5.765625 | 0.671875 | 0.065041 | 0.075881 | 0.119241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.216783 | 572 | 21 | 130 | 27.238095 | 0.779018 | 0.117133 | 0 | 0 | 1 | 0 | 0.151394 | 0.045817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff4a945a55cd1faab9edb57d2954c239971d2727 | 3,749 | py | Python | src/alembic/versions/89944f8b35b3_db_games_model_migrations.py | green2cerberuz/db_vgames | d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9 | [
"MIT"
] | null | null | null | src/alembic/versions/89944f8b35b3_db_games_model_migrations.py | green2cerberuz/db_vgames | d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9 | [
"MIT"
] | null | null | null | src/alembic/versions/89944f8b35b3_db_games_model_migrations.py | green2cerberuz/db_vgames | d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9 | [
"MIT"
] | null | null | null | """DB Games model migrations
Revision ID: 89944f8b35b3
Revises:
Create Date: 2020-11-14 03:49:03.255055
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "89944f8b35b3"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### comman... | 37.868687 | 88 | 0.623099 | 430 | 3,749 | 5.344186 | 0.181395 | 0.104439 | 0.115753 | 0.113142 | 0.724543 | 0.71671 | 0.684943 | 0.648825 | 0.535248 | 0.404265 | 0 | 0.024791 | 0.203788 | 3,749 | 98 | 89 | 38.255102 | 0.745059 | 0.078688 | 0 | 0.45 | 0 | 0 | 0.161545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.025 | 0 | 0.05 | 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 | 0 | 0 | 0 | 1 |
ff4bc07be12dc2426e91dab41e8aaf03e6096812 | 468 | py | Python | way/python/first_steps/basics/testgui.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/first_steps/basics/testgui.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/first_steps/basics/testgui.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | from tkinter import *
clicks = 0
def click_button():
global clicks
clicks += 1
buttonText.set("Clicks {}".format(clicks))
root = Tk()
root.title("GUI на Python")
root.geometry("300x250")
buttonText = StringVar()
buttonText.set("Clicks {}".format(clicks))
btn = Button(textvariable=bu... | 19.5 | 76 | 0.632479 | 55 | 468 | 5.345455 | 0.672727 | 0.07483 | 0.129252 | 0.170068 | 0.210884 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042895 | 0.202991 | 468 | 23 | 77 | 20.347826 | 0.745308 | 0 | 0 | 0.133333 | 0 | 0 | 0.114607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 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 | 0 | 0 | 0 | 1 |
ff4eece822bfb55c7cca08af69a260d962fcf85b | 406 | py | Python | string/Python/0067-add-binary-1.py | ljyljy/LeetCode-Solution-in-Good-Style | 0998211d21796868061eb22e2cbb9bcd112cedce | [
"Apache-2.0"
] | 1 | 2021-01-10T17:03:21.000Z | 2021-01-10T17:03:21.000Z | string/Python/0067-add-binary-1.py | lemonnader/LeetCode-Solution-Well-Formed | baabdb1990fd49ab82a712e121f49c4f68b29459 | [
"Apache-2.0"
] | null | null | null | string/Python/0067-add-binary-1.py | lemonnader/LeetCode-Solution-Well-Formed | baabdb1990fd49ab82a712e121f49c4f68b29459 | [
"Apache-2.0"
] | 1 | 2021-07-25T07:53:14.000Z | 2021-07-25T07:53:14.000Z | class Solution:
def addBinary(self, a: str, b: str) -> str:
return bin(int(a, 2) + int(b, 2))[2:]
if __name__ == '__main__':
a = "11"
b = "1"
solution = Solution()
result = solution.addBinary(a, b)
print(result)
result1 = int(a, 2)
result2 = int(b, 2)
print(result1)
pr... | 20.3 | 47 | 0.561576 | 56 | 406 | 3.928571 | 0.375 | 0.036364 | 0.045455 | 0.2 | 0.231818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057432 | 0.270936 | 406 | 19 | 48 | 21.368421 | 0.685811 | 0 | 0 | 0 | 0 | 0 | 0.027094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0.066667 | 0.2 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff51372a814f4b42e447cbc94944724fd9e86cc6 | 3,017 | py | Python | envergo/evaluations/migrations/0007_auto_20210816_1212.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | null | null | null | envergo/evaluations/migrations/0007_auto_20210816_1212.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | 6 | 2021-07-12T14:33:18.000Z | 2022-02-14T10:36:09.000Z | envergo/evaluations/migrations/0007_auto_20210816_1212.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.12 on 2021-08-16 12:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('evaluations', '0006_auto_20210709_1235'),
]
operations = [
migrations.AddField(
model_name='evaluation',
name='comm... | 41.328767 | 173 | 0.598608 | 292 | 3,017 | 6.017123 | 0.246575 | 0.102447 | 0.130905 | 0.153671 | 0.707456 | 0.682413 | 0.659078 | 0.58395 | 0.55037 | 0.480933 | 0 | 0.025431 | 0.270136 | 3,017 | 72 | 174 | 41.902778 | 0.77248 | 0.015247 | 0 | 0.590909 | 1 | 0 | 0.233412 | 0.032334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015152 | 0 | 0.060606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff5d7939ba961dd0adaed7bb04d2952b658dec7e | 33,088 | py | Python | lib/devops/supervisor.py | jpotter/angel | 66e98f73621a735c7e5a7f3a70926ad99dd39f3e | [
"Apache-2.0"
] | null | null | null | lib/devops/supervisor.py | jpotter/angel | 66e98f73621a735c7e5a7f3a70926ad99dd39f3e | [
"Apache-2.0"
] | null | null | null | lib/devops/supervisor.py | jpotter/angel | 66e98f73621a735c7e5a7f3a70926ad99dd39f3e | [
"Apache-2.0"
] | null | null | null | import fcntl
import os
import random
import select
import signal
import sys
import time
import traceback
from devops.file_and_dir_helpers import *
from angel.util.pidfile import *
from devops.unix_helpers import set_proc_title
from angel.stats.disk_stats import disk_stats_get_usage_for_path
from devops.process_helpers... | 53.977162 | 242 | 0.634913 | 4,304 | 33,088 | 4.663104 | 0.141961 | 0.050224 | 0.023916 | 0.033483 | 0.423767 | 0.36283 | 0.293523 | 0.230394 | 0.179322 | 0.118336 | 0 | 0.004898 | 0.284272 | 33,088 | 612 | 243 | 54.065359 | 0.842581 | 0.214882 | 0 | 0.322892 | 0 | 0.024096 | 0.14015 | 0.017115 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019277 | 0.038554 | null | null | 0.004819 | 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 | 0 | 0 | 1 |
ff65c0e6971ce7212c2e0454417283a2f36e752e | 1,886 | py | Python | Eval/model.py | gabbar-08/Coupon-Redemption-Prediction | 98a65f1ca2c14bf9d6430aeebcb1594b20211bcf | [
"MIT"
] | null | null | null | Eval/model.py | gabbar-08/Coupon-Redemption-Prediction | 98a65f1ca2c14bf9d6430aeebcb1594b20211bcf | [
"MIT"
] | null | null | null | Eval/model.py | gabbar-08/Coupon-Redemption-Prediction | 98a65f1ca2c14bf9d6430aeebcb1594b20211bcf | [
"MIT"
] | null | null | null |
#Step 1 :- Importing dependancies and train test data generated
from config import *
train_data = pd.read_csv("data/train_data/train_feature.csv")
test_data = pd.read_csv("data/test_data/test_feature.csv")
#Step 2 :- Getting train data insights and drop unnecessary columns, Splitting data into input and target ... | 41.911111 | 181 | 0.742842 | 296 | 1,886 | 4.527027 | 0.35473 | 0.041791 | 0.042537 | 0.05597 | 0.21791 | 0.192537 | 0.192537 | 0.192537 | 0.192537 | 0.192537 | 0 | 0.015263 | 0.131495 | 1,886 | 44 | 182 | 42.863636 | 0.802808 | 0.265642 | 0 | 0 | 1 | 0 | 0.365139 | 0.13148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff6d9a9eb43a919d390d165fa0fb6535151149e1 | 5,160 | py | Python | template/template/scripts/launcher.py | chrismear/renios | 8eed53054fb4361eecb09e3c0eb3e26fd76d0cf0 | [
"CC-BY-3.0"
] | 15 | 2015-02-01T12:31:41.000Z | 2021-08-07T01:17:10.000Z | template/template/scripts/launcher.py | chrismear/renios | 8eed53054fb4361eecb09e3c0eb3e26fd76d0cf0 | [
"CC-BY-3.0"
] | null | null | null | template/template/scripts/launcher.py | chrismear/renios | 8eed53054fb4361eecb09e3c0eb3e26fd76d0cf0 | [
"CC-BY-3.0"
] | 4 | 2015-01-23T00:00:14.000Z | 2019-12-02T15:15:28.000Z | #!/usr/bin/env python
#@PydevCodeAnalysisIgnore
# Copyright 2004-2012 Tom Rothamel <pytom@bishoujo.us>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including witho... | 31.463415 | 101 | 0.673256 | 706 | 5,160 | 4.798867 | 0.349858 | 0.055785 | 0.026564 | 0.042503 | 0.205431 | 0.154959 | 0.115702 | 0.115702 | 0.078217 | 0.078217 | 0 | 0.005678 | 0.214922 | 5,160 | 163 | 102 | 31.656442 | 0.830659 | 0.458333 | 0 | 0.180556 | 0 | 0 | 0.141118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff6fd947f9d7fe716c3704fa2463950dd4e84bb7 | 402 | py | Python | setup.py | leandrocorreasantos/rapidapi_criptobot_br | 4102fed414708dae101c1d809c2723f7e27f272a | [
"MIT"
] | null | null | null | setup.py | leandrocorreasantos/rapidapi_criptobot_br | 4102fed414708dae101c1d809c2723f7e27f272a | [
"MIT"
] | null | null | null | setup.py | leandrocorreasantos/rapidapi_criptobot_br | 4102fed414708dae101c1d809c2723f7e27f272a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='rapidapi-criptobot-br',
version='1.1.0',
packages=['api'],
description='class to access criptobot-br on rapidapi',
author='Leandro Correa dos Santos',
author_email='leandro.admo@gmail.com',
install_requires=['requests', 'json']... | 28.714286 | 77 | 0.706468 | 51 | 402 | 5.529412 | 0.823529 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008902 | 0.161692 | 402 | 13 | 78 | 30.923077 | 0.827893 | 0.049751 | 0 | 0 | 0 | 0 | 0.498688 | 0.112861 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff8d466cb78def77047b6716960d07d37e514d93 | 3,805 | py | Python | server02.py | timgates42/csdesign | dd63c304e1b16ecd65bea072f9360986993df845 | [
"MIT"
] | 116 | 2015-01-07T08:39:32.000Z | 2021-12-21T13:07:53.000Z | server02.py | afcarl/csdesign | dd63c304e1b16ecd65bea072f9360986993df845 | [
"MIT"
] | null | null | null | server02.py | afcarl/csdesign | dd63c304e1b16ecd65bea072f9360986993df845 | [
"MIT"
] | 28 | 2015-01-07T07:27:16.000Z | 2021-07-17T22:26:37.000Z | ###############################################################################
#
# Copyright (c) 2012 Ruslan Spivak
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, inc... | 34.279279 | 79 | 0.59343 | 467 | 3,805 | 4.788009 | 0.496788 | 0.039356 | 0.005367 | 0.003578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009963 | 0.287779 | 3,805 | 110 | 80 | 34.590909 | 0.815129 | 0.398423 | 0 | 0.096154 | 0 | 0 | 0.109541 | 0.01262 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff90cad1c5012214e02b97154f23b7b726789505 | 628 | py | Python | ipsc/2016/g.py | csferng/competitive-programming | f7ae710392c0fd606f735df6efcfca5e8fbd3501 | [
"MIT"
] | null | null | null | ipsc/2016/g.py | csferng/competitive-programming | f7ae710392c0fd606f735df6efcfca5e8fbd3501 | [
"MIT"
] | null | null | null | ipsc/2016/g.py | csferng/competitive-programming | f7ae710392c0fd606f735df6efcfca5e8fbd3501 | [
"MIT"
] | null | null | null | import collections
import itertools
import re
import sys
read_str = lambda : sys.stdin.readline().strip()
read_str_list = lambda : sys.stdin.readline().strip().split()
read_int = lambda : int(read_str())
read_int_list = lambda : map(int, read_str_list())
read_float = lambda : float(read_str())
read_float_list = lambda... | 21.655172 | 61 | 0.659236 | 102 | 628 | 3.794118 | 0.382353 | 0.144703 | 0.085271 | 0.113695 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01145 | 0.165605 | 628 | 28 | 62 | 22.428571 | 0.727099 | 0 | 0 | 0 | 0 | 0 | 0.02707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff95ea9c8a58457600ab644dcc9310c524b6fa2e | 11,719 | py | Python | nova/scheduler/solvers/pluggable_hosts_pulp_solver.py | rishabh1jain1/schedwise | b8c56362b11767cc583ea96b42dc28c408bb76cd | [
"Apache-2.0"
] | null | null | null | nova/scheduler/solvers/pluggable_hosts_pulp_solver.py | rishabh1jain1/schedwise | b8c56362b11767cc583ea96b42dc28c408bb76cd | [
"Apache-2.0"
] | 5 | 2020-06-05T17:58:28.000Z | 2022-02-11T03:39:35.000Z | nova/scheduler/solvers/pluggable_hosts_pulp_solver.py | rishabh1jain1/schedwise | b8c56362b11767cc583ea96b42dc28c408bb76cd | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 Cisco Systems, Inc.
# 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
#
# Unless r... | 49.65678 | 138 | 0.631112 | 1,498 | 11,719 | 4.682911 | 0.150868 | 0.039914 | 0.05417 | 0.036066 | 0.554954 | 0.533571 | 0.513329 | 0.480257 | 0.464006 | 0.420527 | 0 | 0.006357 | 0.275109 | 11,719 | 235 | 139 | 49.868085 | 0.819423 | 0.141394 | 0 | 0.337838 | 0 | 0 | 0.056179 | 0.017697 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033784 | null | null | 0.013514 | 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 | 0 | 0 | 1 |
ff9c87881ced0c2a95f22bc798cffd2d0381f7e0 | 721 | py | Python | cblue/data/__init__.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 293 | 2021-06-07T06:04:37.000Z | 2022-03-28T09:38:28.000Z | cblue/data/__init__.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 6 | 2021-06-11T09:50:15.000Z | 2022-03-18T07:33:56.000Z | cblue/data/__init__.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 61 | 2021-06-07T06:38:42.000Z | 2022-03-30T07:16:46.000Z | from .data_process import EEDataProcessor, REDataProcessor, ERDataProcessor, CTCDataProcessor, \
CDNDataProcessor, STSDataProcessor, QQRDataProcessor, QICDataProcessor, QTRDataProcessor
from .dataset import EEDataset, REDataset, ERDataset, CTCDataset, CDNDataset, STSDataset, \
QQRDataset, QICDataset, QTRDataset... | 48.066667 | 96 | 0.696255 | 44 | 721 | 11.295455 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198336 | 721 | 14 | 97 | 51.5 | 0.859862 | 0 | 0 | 0 | 0 | 0 | 0.316227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff9dcee27fd788e74a17caecd46d9f95eb475438 | 1,008 | py | Python | djapi/authtoken/models.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | 12 | 2017-10-23T10:52:30.000Z | 2021-09-06T19:08:57.000Z | djapi/authtoken/models.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | null | null | null | djapi/authtoken/models.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | null | null | null | import binascii
import os
from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
@python_2_unicode_compatible
class Token(models.Model):
"""
The default authorization token model.
... | 28 | 69 | 0.686508 | 127 | 1,008 | 5.19685 | 0.503937 | 0.060606 | 0.045455 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007481 | 0.204365 | 1,008 | 35 | 70 | 28.8 | 0.815461 | 0.037698 | 0 | 0 | 0 | 0 | 0.036688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.24 | 0.08 | 0.68 | 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 | 0 | 1 | 0 | 0 | 1 |
ff9f80880a91fdc6467f39d9797eb0e52dc6a441 | 2,035 | py | Python | app/lib/docker_config.py | joshburt/com.shapeandshare.therowantree.client.api | 6f17f469482a91071bedb7eedd158539cebe5639 | [
"MIT"
] | null | null | null | app/lib/docker_config.py | joshburt/com.shapeandshare.therowantree.client.api | 6f17f469482a91071bedb7eedd158539cebe5639 | [
"MIT"
] | null | null | null | app/lib/docker_config.py | joshburt/com.shapeandshare.therowantree.client.api | 6f17f469482a91071bedb7eedd158539cebe5639 | [
"MIT"
] | null | null | null | # Allow over-riding the defaults with non-secure ENV variables, or secure docker secrets
import therowantree_config as default_config
import os
###############################################################################
# Direcrtory Options
########################################################################... | 37 | 88 | 0.611794 | 234 | 2,035 | 4.948718 | 0.175214 | 0.15544 | 0.124352 | 0.138169 | 0.226252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091892 | 2,035 | 54 | 89 | 37.685185 | 0.626623 | 0.067813 | 0 | 0 | 0 | 0 | 0.201693 | 0.059238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.09375 | 0.0625 | 0 | 0.0625 | 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 | 0 | 0 | 0 | 1 |
ffa241b51a436f0dcd5e0dcb3336517e8a723091 | 1,626 | py | Python | Tests/Plot/LamHole/test_Hole_54_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | 2 | 2020-06-29T13:48:37.000Z | 2021-06-15T07:34:05.000Z | Tests/Plot/LamHole/test_Hole_54_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | Tests/Plot/LamHole/test_Hole_54_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@date Created on Wed Jan 13 17:45:15 2016
@copyright (C) 2015-2016 EOMYS ENGINEERING.
@author pierre_b
"""
from os.path import join
from unittest import TestCase
import matplotlib.pyplot as plt
from numpy import pi
from pyleecan.Classes.Frame import Frame
from pyleecan.Classes.LamHole imp... | 30.679245 | 73 | 0.675892 | 244 | 1,626 | 4.397541 | 0.393443 | 0.100652 | 0.141659 | 0.059646 | 0.272134 | 0.272134 | 0.272134 | 0.272134 | 0.205033 | 0.205033 | 0 | 0.065167 | 0.207257 | 1,626 | 52 | 74 | 31.269231 | 0.767261 | 0.116851 | 0 | 0.114286 | 0 | 0 | 0.043724 | 0.035261 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.028571 | false | 0 | 0.371429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ffa5af6affd31cfe1fe0ccc78cba42510b4fe8d2 | 521 | py | Python | mysite/addOne.py | xinkaiwang/robotJump | 622e97451f450b755aecbd60e15b2cd47d875f47 | [
"MIT"
] | null | null | null | mysite/addOne.py | xinkaiwang/robotJump | 622e97451f450b755aecbd60e15b2cd47d875f47 | [
"MIT"
] | null | null | null | mysite/addOne.py | xinkaiwang/robotJump | 622e97451f450b755aecbd60e15b2cd47d875f47 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
import django
django.setup()
# your imports, e.g. Django models
from buckets.models import *
from buckets.name2date import name2date
bucket = BucketInfo.objects.get(name='xinkaibuk1')
allInDb = set()
allInDb.update(I... | 21.708333 | 67 | 0.773512 | 74 | 521 | 5.351351 | 0.594595 | 0.080808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.099808 | 521 | 24 | 68 | 21.708333 | 0.799574 | 0.122841 | 0 | 0 | 0 | 0 | 0.178022 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffa7676c4e5ed4bfd01c893490761de5a7bbcf0c | 255 | py | Python | backend/test.py | Harin329/Masterplan | 0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a | [
"Unlicense"
] | null | null | null | backend/test.py | Harin329/Masterplan | 0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a | [
"Unlicense"
] | null | null | null | backend/test.py | Harin329/Masterplan | 0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a | [
"Unlicense"
] | null | null | null | import boto3
import os
from dotenv import load_dotenv
load_dotenv()
client = boto3.client(
'dynamodb',
aws_access_key_id=os.getenv('AWS_ACCESS_KEY_ID'),
aws_secret_access_key=os.getenv('AWS_SECRET_ACCESS_KEY'),
region_name="us-east-1"
)
| 19.615385 | 61 | 0.752941 | 40 | 255 | 4.425 | 0.475 | 0.20339 | 0.135593 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 0.137255 | 255 | 12 | 62 | 21.25 | 0.790909 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 | 0 | 0 | 0 | 1 |
ffa8a6dc6156e32b6503b1d0530884e4f28a8bfa | 5,600 | py | Python | src/opendr/control/mobile_manipulation/mobileRL/envs/eeplanner.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 3 | 2021-06-24T01:54:25.000Z | 2021-12-12T16:21:24.000Z | src/opendr/control/mobile_manipulation/mobileRL/envs/eeplanner.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 79 | 2021-06-23T10:40:10.000Z | 2021-12-16T07:59:42.000Z | src/opendr/control/mobile_manipulation/mobileRL/envs/eeplanner.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 5 | 2021-07-04T07:38:50.000Z | 2021-12-12T16:18:47.000Z | # Copyright 2020-2021 OpenDR European Project
#
# 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
#
# Unless required by applicable law or agree... | 40.875912 | 113 | 0.531964 | 572 | 5,600 | 4.837413 | 0.251748 | 0.063607 | 0.052042 | 0.045537 | 0.593422 | 0.576075 | 0.542103 | 0.542103 | 0.542103 | 0.52584 | 0 | 0.010287 | 0.409821 | 5,600 | 136 | 114 | 41.176471 | 0.826929 | 0.125 | 0 | 0.718447 | 0 | 0 | 0.019861 | 0.009623 | 0 | 0 | 0 | 0 | 0.009709 | 1 | 0.116505 | false | 0 | 0.019417 | 0.038835 | 0.223301 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffae59649ff2b990843a197023e765523f170d67 | 7,220 | py | Python | snaps/openstack/tests/create_user_tests.py | hashnfv/hashnfv-snaps | 0dfca494ef7c2778babfac48d9b701953860b54f | [
"Apache-2.0"
] | null | null | null | snaps/openstack/tests/create_user_tests.py | hashnfv/hashnfv-snaps | 0dfca494ef7c2778babfac48d9b701953860b54f | [
"Apache-2.0"
] | null | null | null | snaps/openstack/tests/create_user_tests.py | hashnfv/hashnfv-snaps | 0dfca494ef7c2778babfac48d9b701953860b54f | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Cable Television Laboratories, Inc. ("CableLabs")
# and others. 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://w... | 37.604167 | 79 | 0.645429 | 813 | 7,220 | 5.543665 | 0.212792 | 0.03905 | 0.043266 | 0.02951 | 0.564233 | 0.549368 | 0.524961 | 0.516086 | 0.507877 | 0.49878 | 0 | 0.002982 | 0.256925 | 7,220 | 191 | 80 | 37.801047 | 0.837092 | 0.170499 | 0 | 0.452174 | 0 | 0 | 0.044064 | 0 | 0 | 0 | 0 | 0 | 0.365217 | 1 | 0.13913 | false | 0.130435 | 0.043478 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ffb11c0fb609d6059063047b9dfca31cac6fe559 | 276 | py | Python | setup.py | muhammad-alaref/CAM2RequestsCLI | 83911b52de7fe575682184ef9714cbb2b6fc5af4 | [
"Apache-2.0"
] | null | null | null | setup.py | muhammad-alaref/CAM2RequestsCLI | 83911b52de7fe575682184ef9714cbb2b6fc5af4 | [
"Apache-2.0"
] | null | null | null | setup.py | muhammad-alaref/CAM2RequestsCLI | 83911b52de7fe575682184ef9714cbb2b6fc5af4 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='CAM2RequestsCLI',
version='v1.0-rc0',
packages=find_packages(),
zip_safe=False,
install_requires=[
'click',
'requests',
],
entry_points='''
[console_scripts]
CAM2RequestsCLI=CAM2RequestsCLI:cli
''',
)
| 16.235294 | 43 | 0.717391 | 30 | 276 | 6.4 | 0.8 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025105 | 0.134058 | 276 | 16 | 44 | 17.25 | 0.778243 | 0 | 0 | 0 | 0 | 0 | 0.347826 | 0.126812 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 1 |
4401048e9f96083e7a2404057ad05e3545075fdb | 173 | py | Python | run.py | BloomTech-Labs/tally-ai-ds | 09d7a207bf5e6f9de2d615ad078cebb8340abcd8 | [
"MIT"
] | 8 | 2020-01-08T18:16:20.000Z | 2020-06-30T23:49:38.000Z | run.py | Lambda-School-Labs/tally-ai-ds | 09d7a207bf5e6f9de2d615ad078cebb8340abcd8 | [
"MIT"
] | 5 | 2021-03-30T13:48:15.000Z | 2021-09-22T19:11:46.000Z | run.py | BloomTech-Labs/tally-ai-ds | 09d7a207bf5e6f9de2d615ad078cebb8340abcd8 | [
"MIT"
] | 5 | 2020-02-02T04:27:26.000Z | 2020-06-05T05:12:28.000Z | """ Entry point for the Yelp API Flask Reviews for Tally-ai"""
from yelpapi.app import create_app
APP = create_app()
if __name__=='__main__':
APP.run(host="0.0.0.0")
| 19.222222 | 62 | 0.693642 | 30 | 173 | 3.666667 | 0.7 | 0.054545 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.16185 | 173 | 8 | 63 | 21.625 | 0.731034 | 0.317919 | 0 | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
44046b1afd25c838028ace50bbff2629930820b6 | 745 | py | Python | batch/batch/globals.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | batch/batch/globals.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | batch/batch/globals.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | states = {'Pending', 'Ready', 'Creating', 'Running', 'Cancelled', 'Error', 'Failed', 'Success'}
complete_states = ('Cancelled', 'Error', 'Failed', 'Success')
valid_state_transitions = {
'Pending': {'Ready'},
'Ready': {'Creating', 'Running', 'Cancelled', 'Error'},
'Creating': {'Ready', 'Running'},
'Run... | 26.607143 | 95 | 0.636242 | 82 | 745 | 5.536585 | 0.560976 | 0.123348 | 0.132159 | 0.178414 | 0.14978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031847 | 0.157047 | 745 | 27 | 96 | 27.592593 | 0.691083 | 0 | 0 | 0 | 0 | 0 | 0.334228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
441fd066a3b9ceec8854e7357e20db9ea179837b | 1,785 | py | Python | rem/_dummy_fork_locking.py | heni/rem | 00caa0e2e6b0bd0091e8290c1e11884c8c45d347 | [
"MIT"
] | 14 | 2015-03-25T08:31:02.000Z | 2022-03-31T10:58:40.000Z | rem/_dummy_fork_locking.py | heni/rem | 00caa0e2e6b0bd0091e8290c1e11884c8c45d347 | [
"MIT"
] | 3 | 2015-02-07T16:00:01.000Z | 2015-10-07T11:39:27.000Z | rem/_dummy_fork_locking.py | heni/rem | 00caa0e2e6b0bd0091e8290c1e11884c8c45d347 | [
"MIT"
] | 6 | 2015-02-06T16:43:05.000Z | 2020-02-18T13:43:31.000Z | import threading
__all__ = ["acquire_fork", "acquire_lock", "release_fork", "release_lock"]
class TwoExclusiveResourcesDispatcher(object):
def __init__(self):
self.FirstResourceUsage = 0
self.SecondResourceUsage = 0
self.lock = threading.Lock()
self.FirstResourceEvent = threading.... | 30.254237 | 76 | 0.664986 | 149 | 1,785 | 7.825503 | 0.241611 | 0.048027 | 0.078902 | 0.054889 | 0.325901 | 0.174957 | 0.09434 | 0.09434 | 0.09434 | 0.09434 | 0 | 0.009002 | 0.253221 | 1,785 | 58 | 77 | 30.775862 | 0.865716 | 0 | 0 | 0.142857 | 0 | 0 | 0.069468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0 | 0.261905 | 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 | 0 | 0 | 0 | 1 |
4423940e7bf16fa7a158c1ac06a6349871fe59a2 | 2,410 | py | Python | my/core/error.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | my/core/error.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | my/core/error.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | """
Various error handling helpers
See https://beepb00p.xyz/mypy-error-handling.html#kiss for more detail
"""
from itertools import tee
from typing import Union, TypeVar, Iterable, List, Tuple, Type
T = TypeVar('T')
E = TypeVar('E', bound=Exception) # TODO make covariant?
ResT = Union[T, E]
Res = ResT[T, Exception... | 24.1 | 120 | 0.573444 | 329 | 2,410 | 4.145897 | 0.407295 | 0.020528 | 0.026393 | 0.024927 | 0.061584 | 0.035191 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.302905 | 2,410 | 99 | 121 | 24.343434 | 0.802381 | 0.248133 | 0 | 0.298507 | 0 | 0 | 0.023596 | 0 | 0 | 0 | 0 | 0.020202 | 0.029851 | 1 | 0.089552 | false | 0 | 0.029851 | 0.014925 | 0.208955 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4426bbfc28bdebbc507707d96ca993bfc6cb31e2 | 1,158 | py | Python | Jira/CVE-2019-8451/__init__.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Jira/CVE-2019-8451/__init__.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Jira/CVE-2019-8451/__init__.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | import requests
import sys
# http://www.jas502n.com:8080/plugins/servlet/gadgets/makeRequest?url=http://www.jas502n.com:8080@www.baidu.com/
def ssrf_poc(url, ssrf_url):
if url[-1] == '/':
url = url[:-1]
else:
url = url
vuln_url = url + "/plugins/servlet/gadgets/makeRequest?url=" + url + ... | 28.95 | 112 | 0.585492 | 168 | 1,158 | 3.916667 | 0.494048 | 0.053191 | 0.045593 | 0.051672 | 0.221885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053691 | 0.227979 | 1,158 | 39 | 113 | 29.692308 | 0.682327 | 0.094991 | 0 | 0.066667 | 0 | 0.066667 | 0.381453 | 0.072658 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.2 | 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 | 0 | 0 | 1 |
4437b9810c4e7fa906b091e98a1904da452af26d | 915 | py | Python | api/v1/views/index.py | bdbaraban/HolbertonBnB | 70812bcef485e4d57ca0f7a1d0ddc59583f4122a | [
"MIT"
] | 1 | 2022-02-08T03:51:31.000Z | 2022-02-08T03:51:31.000Z | api/v1/views/index.py | bdbaraban/HolbertonBnB | 70812bcef485e4d57ca0f7a1d0ddc59583f4122a | [
"MIT"
] | null | null | null | api/v1/views/index.py | bdbaraban/HolbertonBnB | 70812bcef485e4d57ca0f7a1d0ddc59583f4122a | [
"MIT"
] | 8 | 2020-12-10T14:41:39.000Z | 2022-03-10T21:35:59.000Z | #!/usr/bin/env python3
"""Defines a status route for the HolbertonBnB API."""
from flask import jsonify
from flasgger import swag_from
from models import storage
from api.v1.views import app_views
@app_views.route("/status")
@swag_from("../apidocs/status/status.yml")
def status():
"""Returns the server status.
... | 26.142857 | 58 | 0.645902 | 115 | 915 | 5.086957 | 0.478261 | 0.123077 | 0.044444 | 0.071795 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002736 | 0.201093 | 915 | 34 | 59 | 26.911765 | 0.797538 | 0.280874 | 0 | 0 | 0 | 0 | 0.233494 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | true | 0 | 0.210526 | 0 | 0.421053 | 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 | 0 | 0 | 0 | 1 |
4437f26ba6c39393772f578c50974f0c3bd7647f | 3,538 | py | Python | data_strctures/queue.py | CodenameREBIRTH/algopy | f3894c98b7232d0f6067eb52ca68f9e6a8875884 | [
"MIT"
] | 4 | 2019-09-28T17:02:47.000Z | 2020-01-15T15:51:40.000Z | data_strctures/queue.py | CodenameREBIRTH/algopy | f3894c98b7232d0f6067eb52ca68f9e6a8875884 | [
"MIT"
] | 1 | 2019-10-15T03:56:59.000Z | 2019-10-15T03:56:59.000Z | data_strctures/queue.py | CodenameREBIRTH/algopy | f3894c98b7232d0f6067eb52ca68f9e6a8875884 | [
"MIT"
] | 3 | 2019-10-14T16:22:08.000Z | 2020-10-07T08:32:08.000Z | import inspect
class Queue(object):
'''
Queue data structure FIFO - First In First Out
'''
def __init__(self, capacity = 10):
'''
:param size: max capacity of the queue, default is 10
'''
self.queue = []
self.front = None
self.rear = None
self.s... | 18.331606 | 75 | 0.498021 | 406 | 3,538 | 4.263547 | 0.197044 | 0.062392 | 0.025997 | 0.041594 | 0.49509 | 0.380127 | 0.284229 | 0.218371 | 0.182553 | 0.182553 | 0 | 0.00943 | 0.400509 | 3,538 | 192 | 76 | 18.427083 | 0.806695 | 0.2671 | 0 | 0.528571 | 0 | 0 | 0.000931 | 0 | 0 | 0 | 0 | 0.005208 | 0 | 1 | 0.228571 | false | 0 | 0.014286 | 0.014286 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44399f62445aff54bdaa825b5afca3b8782554ba | 1,803 | py | Python | merak/utils/refs.py | Yao1993/merak | 517b7a8eca82eebbf22bcd3688a79e1e76ed9d42 | [
"Apache-2.0"
] | 16 | 2021-01-22T04:09:30.000Z | 2022-03-17T10:38:34.000Z | merak/utils/refs.py | Yao1993/merak | 517b7a8eca82eebbf22bcd3688a79e1e76ed9d42 | [
"Apache-2.0"
] | 6 | 2021-04-12T10:09:47.000Z | 2022-03-24T09:31:13.000Z | merak/utils/refs.py | Yao1993/merak | 517b7a8eca82eebbf22bcd3688a79e1e76ed9d42 | [
"Apache-2.0"
] | 2 | 2021-07-14T05:39:17.000Z | 2021-07-28T16:27:40.000Z | # Copyright 2021 (David) Siu-Kei Muk. 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
#
# Unless required by applicable... | 32.781818 | 80 | 0.665003 | 224 | 1,803 | 5.013393 | 0.513393 | 0.053428 | 0.042743 | 0.028495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005583 | 0.205214 | 1,803 | 54 | 81 | 33.388889 | 0.778088 | 0.364393 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.133333 | 0 | 0.566667 | 0.033333 | 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 | 0 | 1 | 0 | 0 | 1 |
443a6baa9c0756dd7aae2e5c5109341c173ecdeb | 538 | py | Python | Python/kth-largest-element-in-a-stream.py | se77enn/LeetCode-Solution | d29ef5358cae592b63952c3d293897a176fb75e1 | [
"MIT"
] | 1 | 2020-10-27T03:22:31.000Z | 2020-10-27T03:22:31.000Z | Python/kth-largest-element-in-a-stream.py | se77enn/LeetCode-Solution | d29ef5358cae592b63952c3d293897a176fb75e1 | [
"MIT"
] | null | null | null | Python/kth-largest-element-in-a-stream.py | se77enn/LeetCode-Solution | d29ef5358cae592b63952c3d293897a176fb75e1 | [
"MIT"
] | 1 | 2021-03-22T18:58:23.000Z | 2021-03-22T18:58:23.000Z | # Time: O(nlogk)
# Space: O(k)
import heapq
class KthLargest(object):
def __init__(self, k, nums):
"""
:type k: int
:type nums: List[int]
"""
self.__k = k
self.__min_heap = []
for n in nums:
self.add(n)
def add(self, val):
"""
... | 19.214286 | 44 | 0.494424 | 68 | 538 | 3.573529 | 0.455882 | 0.144033 | 0.226337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.375465 | 538 | 27 | 45 | 19.925926 | 0.720238 | 0.167286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
44460ed3ad075b11814a0994ca4285eafdbb39b1 | 823 | py | Python | scratch/interesting_cc.py | mikeboers/PyFlickr | 60f258ad6a5266fa8d8e6f6dc829e90e61df9696 | [
"BSD-3-Clause"
] | null | null | null | scratch/interesting_cc.py | mikeboers/PyFlickr | 60f258ad6a5266fa8d8e6f6dc829e90e61df9696 | [
"BSD-3-Clause"
] | null | null | null | scratch/interesting_cc.py | mikeboers/PyFlickr | 60f258ad6a5266fa8d8e6f6dc829e90e61df9696 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import datetime
from pprint import pprint
import logging
logging.basicConfig(file=sys.stderr, level=logging.DEBUG)
from flickr import Flickr
from flickr.util import *
key = os.environ.get('FLICKR_KEY')
secret = os.environ.get('FLICKR_SECRET')
if not (key and secret):
print 'please set FLICK... | 21.657895 | 100 | 0.663426 | 115 | 823 | 4.678261 | 0.495652 | 0.050186 | 0.04461 | 0.066915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017028 | 0.215067 | 823 | 37 | 101 | 22.243243 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0.104623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.259259 | null | null | 0.148148 | 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 | 0 | 0 | 1 |
44474deb5fa0c086545a3adfa369f518e9e5f9f5 | 2,415 | py | Python | fused_biattention.py | utahnlp/layer_augmentation_qa | a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0 | [
"Apache-2.0"
] | 6 | 2019-10-08T11:48:21.000Z | 2021-05-28T07:00:56.000Z | fused_biattention.py | utahnlp/layer_augmentation_qa | a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0 | [
"Apache-2.0"
] | null | null | null | fused_biattention.py | utahnlp/layer_augmentation_qa | a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0 | [
"Apache-2.0"
] | 1 | 2020-07-02T06:31:06.000Z | 2020-07-02T06:31:06.000Z | import sys
import torch
from torch import nn
from torch.autograd import Variable
from view import *
from holder import *
from util import *
from join_table import *
from trilinear_prod import *
from fusion import *
# fused bidir attention
class FusedBiAttention(torch.nn.Module):
def __init__(self, opt, shared):
su... | 23.446602 | 107 | 0.719669 | 387 | 2,415 | 4.26615 | 0.22739 | 0.109025 | 0.053301 | 0.050878 | 0.217444 | 0.188976 | 0.121139 | 0.121139 | 0.121139 | 0.121139 | 0 | 0.016484 | 0.171014 | 2,415 | 102 | 108 | 23.676471 | 0.808192 | 0.13913 | 0 | 0.196721 | 0 | 0 | 0.001938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131148 | false | 0.065574 | 0.163934 | 0.032787 | 0.377049 | 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 | 0 | 0 | 0 | 1 |
4449271c863f70b26b80fbfbede707ee87657d0c | 5,565 | py | Python | BresMaker.py | EvolveWithProseeker/Proseeker | 640c54952fc9295d03a2fdb22a452a8e4f6d4611 | [
"MIT"
] | 3 | 2021-05-31T00:56:30.000Z | 2022-03-23T14:24:09.000Z | BresMaker.py | EvolveWithProseeker/Proseeker | 640c54952fc9295d03a2fdb22a452a8e4f6d4611 | [
"MIT"
] | null | null | null | BresMaker.py | EvolveWithProseeker/Proseeker | 640c54952fc9295d03a2fdb22a452a8e4f6d4611 | [
"MIT"
] | 1 | 2022-03-24T08:49:30.000Z | 2022-03-24T08:49:30.000Z | # Simplified Bres Maker
# Version: 1.0
#Python Version: 2.0
# IMPORTS
import pandas as pd
import numpy as np
from sklearn.cluster import KMeans
from numpy import asarray
from numpy import savetxt
import sys
import os
# DEFINITIONS
def find(s, ch):
return [i for i, ltr in enumerate(s) if ltr == ch]
# DATALOAD... | 29.759358 | 120 | 0.4708 | 760 | 5,565 | 3.434211 | 0.165789 | 0.245211 | 0.144828 | 0.012644 | 0.414559 | 0.350958 | 0.350958 | 0.350958 | 0.337931 | 0.337931 | 0 | 0.014694 | 0.315184 | 5,565 | 186 | 121 | 29.919355 | 0.670165 | 0.040611 | 0 | 0.264901 | 0 | 0 | 0.042997 | 0.009951 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006623 | false | 0 | 0.046358 | 0.006623 | 0.059603 | 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 | 0 | 0 | 0 | 1 |
44503eada61c7c6d19634eb06fc44feea60e5c94 | 2,445 | py | Python | SeeThru_Feeds/Library/Components/HTTP.py | SeeThru-Networks/Python-Feed | 9c29fcf3462475e339f95d3e9766ed3a652ee6c0 | [
"MIT"
] | 3 | 2020-04-15T19:58:37.000Z | 2020-06-24T14:08:48.000Z | SeeThru_Feeds/Library/Components/HTTP.py | SeeThru-Networks/Python-Feed | 9c29fcf3462475e339f95d3e9766ed3a652ee6c0 | [
"MIT"
] | null | null | null | SeeThru_Feeds/Library/Components/HTTP.py | SeeThru-Networks/Python-Feed | 9c29fcf3462475e339f95d3e9766ed3a652ee6c0 | [
"MIT"
] | null | null | null | from SeeThru_Feeds.Model.Components.ComponentBase import ComponentBase
from SeeThru_Feeds.Model.Properties.Properties import FillableProperty, ResultProperty
import requests
class HTTPBase(ComponentBase):
URL = FillableProperty(name="url", required=True)
COOKIES = FillableProperty(name="cookies", required=Fal... | 45.277778 | 141 | 0.737423 | 280 | 2,445 | 6.271429 | 0.246429 | 0.039863 | 0.085421 | 0.06549 | 0.280182 | 0.156036 | 0.156036 | 0.1082 | 0.059226 | 0 | 0 | 0 | 0.164417 | 2,445 | 53 | 142 | 46.132075 | 0.85952 | 0 | 0 | 0.046512 | 0 | 0 | 0.116564 | 0.013497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.511628 | 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 | 0 | 1 | 0 | 0 | 1 |
445cac484200f11a9ce597a53a164ef8e3583569 | 13,084 | py | Python | WaveBlocksND/IOManager.py | raoulbq/WaveBlocksND | 225b5dd9b1af1998bd40b5f6467ee959292b6a83 | [
"BSD-3-Clause"
] | 3 | 2016-09-01T21:13:54.000Z | 2020-03-23T15:45:32.000Z | WaveBlocksND/IOManager.py | raoulbq/WaveBlocksND | 225b5dd9b1af1998bd40b5f6467ee959292b6a83 | [
"BSD-3-Clause"
] | null | null | null | WaveBlocksND/IOManager.py | raoulbq/WaveBlocksND | 225b5dd9b1af1998bd40b5f6467ee959292b6a83 | [
"BSD-3-Clause"
] | 6 | 2016-03-16T15:22:01.000Z | 2021-03-13T14:06:54.000Z | """The WaveBlocks Project
This file contains code for serializing simulation data.
@author: R. Bourquin
@copyright: Copyright (C) 2010, 2011, 2012, 2016 R. Bourquin
@license: Modified BSD License
"""
import os
import types
import pickle
import json
import six
import h5py as hdf
import numpy as np
__all__ = ["IOMana... | 36.64986 | 125 | 0.608759 | 1,732 | 13,084 | 4.485566 | 0.194573 | 0.023426 | 0.016991 | 0.00901 | 0.290642 | 0.252413 | 0.19256 | 0.170678 | 0.162183 | 0.130004 | 0 | 0.004956 | 0.306023 | 13,084 | 356 | 126 | 36.752809 | 0.850661 | 0.367625 | 0 | 0.232558 | 0 | 0.011628 | 0.100333 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.104651 | false | 0 | 0.05814 | 0 | 0.296512 | 0.017442 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
445e689615f50b3103fabda264a4d3bf138fe65a | 1,968 | py | Python | Scripts/domain-db-all-domain-rates.py | colinwalshbrown/CWB_utils | 86675812f9398845d1994b57500830e2c3dc6cc0 | [
"MIT"
] | null | null | null | Scripts/domain-db-all-domain-rates.py | colinwalshbrown/CWB_utils | 86675812f9398845d1994b57500830e2c3dc6cc0 | [
"MIT"
] | null | null | null | Scripts/domain-db-all-domain-rates.py | colinwalshbrown/CWB_utils | 86675812f9398845d1994b57500830e2c3dc6cc0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import sqlite3
import matplotlib.pyplot as plt
import numpy as np
def main(args):
if len(args) < 2:
print "usage: domain-db-all-domain-rates.py <db> <species>"
sys.exit(1)
conn = sqlite3.connect(args[0])
conn.row_factory = sqlite3.Row
cur = conn.c... | 31.741935 | 121 | 0.552337 | 284 | 1,968 | 3.690141 | 0.369718 | 0.073473 | 0.022901 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019635 | 0.275407 | 1,968 | 61 | 122 | 32.262295 | 0.715288 | 0.010163 | 0 | 0 | 0 | 0.020408 | 0.307653 | 0.067283 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081633 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
445f77fe93f324f67e10e55b0a43977d0e9569e3 | 292 | py | Python | spider/conf.py | schoeu/spid | eebb21fd41799cb077938593b4ff352b51322bc4 | [
"MIT"
] | 1 | 2018-10-18T06:59:34.000Z | 2018-10-18T06:59:34.000Z | spider/conf.py | schoeu/spid | eebb21fd41799cb077938593b4ff352b51322bc4 | [
"MIT"
] | 8 | 2021-03-18T21:11:03.000Z | 2022-03-11T23:30:58.000Z | spider/conf.py | schoeu/spid | eebb21fd41799cb077938593b4ff352b51322bc4 | [
"MIT"
] | null | null | null | import utils
import os
import json
def getjsondata(path):
if not os.path.isabs(path):
path = os.path.join(os.path.dirname(os.path.realpath(__file__)), path)
f = open(path)
data = json.loads(f.read())
return data
def getconfig():
return getjsondata('./conf.json') | 22.461538 | 78 | 0.664384 | 43 | 292 | 4.418605 | 0.511628 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 292 | 13 | 79 | 22.461538 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.037543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4460778f6a8c643ae09c2cfcff03efe7a38ed115 | 2,080 | py | Python | rocketbear/orderings.py | wallarelvo/rocketbear | 905c24e4243f178a50907ae965de68dc119de25d | [
"Apache-2.0"
] | 1 | 2015-04-13T09:59:21.000Z | 2015-04-13T09:59:21.000Z | rocketbear/orderings.py | wallarelvo/rocketbear | 905c24e4243f178a50907ae965de68dc119de25d | [
"Apache-2.0"
] | null | null | null | rocketbear/orderings.py | wallarelvo/rocketbear | 905c24e4243f178a50907ae965de68dc119de25d | [
"Apache-2.0"
] | null | null | null |
import graph
"""
This file contains multiple heuristics that can be used for static and
dynamic variable orderings
"""
class DynamicDomOverDeg(graph.ConstraintGraph):
"""
Dynamic ordering using the pruned domain over the degree
"""
def ordering(self, v):
"""
Returns the evaluation u... | 24.186047 | 78 | 0.647596 | 234 | 2,080 | 5.726496 | 0.333333 | 0.036567 | 0.05597 | 0.059701 | 0.514179 | 0.489552 | 0.489552 | 0.489552 | 0.489552 | 0.402985 | 0 | 0.001321 | 0.272115 | 2,080 | 85 | 79 | 24.470588 | 0.883752 | 0.371154 | 0 | 0.185185 | 0 | 0 | 0.020101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0 | 0.592593 | 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 | 0 | 1 | 0 | 0 | 1 |
44619703bad870796ed0246c1284937d5fd67724 | 681 | py | Python | examples/caseless_example.py | kajuberdut/incase | 48b281ac49e22d0b76510771bfa9de9ed94d1fc4 | [
"MIT"
] | null | null | null | examples/caseless_example.py | kajuberdut/incase | 48b281ac49e22d0b76510771bfa9de9ed94d1fc4 | [
"MIT"
] | null | null | null | examples/caseless_example.py | kajuberdut/incase | 48b281ac49e22d0b76510771bfa9de9ed94d1fc4 | [
"MIT"
] | null | null | null | from incase import Case, Caseless
# Instances of Caseless are strings
example = Caseless("example string")
print(isinstance(example, str))
# True
# By property
print(example.snake)
# example_string
# Or by subscript (string or Case)
print(example["camel"])
# exampleString
print(example[Case.UPPER_SNAKE])
# EXAMPLE_... | 21.28125 | 52 | 0.754772 | 93 | 681 | 5.430108 | 0.473118 | 0.077228 | 0.071287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129222 | 681 | 31 | 53 | 21.967742 | 0.851602 | 0.395007 | 0 | 0 | 0 | 0 | 0.197995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.636364 | 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 | 0 | 0 | 1 | 0 | 1 |
44685ac8d733d07256270373907d763751c70fec | 1,567 | py | Python | gui_pyside6/ejemplo_cuatro/manejo_eventos.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | gui_pyside6/ejemplo_cuatro/manejo_eventos.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | gui_pyside6/ejemplo_cuatro/manejo_eventos.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | # signals (eventos) y slots (metodos que procesan los eventos)
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QMessageBox
from PySide6.QtCore import QSize
import sys
class VentanaPrincipal(QMainWindow):
def __init__(self):
super(... | 40.179487 | 135 | 0.67709 | 180 | 1,567 | 5.733333 | 0.488889 | 0.053295 | 0.046512 | 0.044574 | 0.155039 | 0.050388 | 0 | 0 | 0 | 0 | 0 | 0.001675 | 0.238034 | 1,567 | 39 | 136 | 40.179487 | 0.862647 | 0.32993 | 0 | 0 | 0 | 0 | 0.07411 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0 | 0.304348 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.