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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1e21b40e037b294f52d53d73a2e377be9f40e45 | 283 | py | Python | Core/HTMLScraper.py | Puddler/ElementalInfo | 9ac39e29d701fe80183cc02be0c7e0f51713b289 | [
"Unlicense"
] | null | null | null | Core/HTMLScraper.py | Puddler/ElementalInfo | 9ac39e29d701fe80183cc02be0c7e0f51713b289 | [
"Unlicense"
] | null | null | null | Core/HTMLScraper.py | Puddler/ElementalInfo | 9ac39e29d701fe80183cc02be0c7e0f51713b289 | [
"Unlicense"
] | null | null | null | import requests
from bs4 import BeautifulSoup
def getHTML(url):
f = requests.get(url)
return f.text;
def getSoupFromURL(url):
html = getHTML(url)
return BeautifulSoup(html, "html.parser")
def getSoupFromHTML(html):
return BeautifulSoup(html, "html.parser")
| 16.647059 | 45 | 0.710247 | 35 | 283 | 5.742857 | 0.457143 | 0.099502 | 0.228856 | 0.268657 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.183746 | 283 | 16 | 46 | 17.6875 | 0.865801 | 0 | 0 | 0.2 | 0 | 0 | 0.077739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b1eecdccf3c42f050cd86dc0e7bc57d1fa541d56 | 133 | py | Python | command/State.py | junessi/tusync | 06d98633db4835138a566c54c228529b5fb8c82e | [
"MIT"
] | 1 | 2021-08-13T02:45:55.000Z | 2021-08-13T02:45:55.000Z | command/State.py | junessi/tusync | 06d98633db4835138a566c54c228529b5fb8c82e | [
"MIT"
] | null | null | null | command/State.py | junessi/tusync | 06d98633db4835138a566c54c228529b5fb8c82e | [
"MIT"
] | null | null | null | from enum import Enum
class State(Enum):
DONE = 0
NULL = 1
UNKNOWN_COMMAND = 2
INVALID_DATE = 3
EMPTY_DATE = 4
| 13.3 | 23 | 0.616541 | 20 | 133 | 3.95 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.323308 | 133 | 9 | 24 | 14.777778 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
592888befc224cb52b480f24dacc2e3cf177b4a8 | 131 | py | Python | module01/ex/ex025.py | LauroHBrant/python-course | 2154181ca4b684b0d1fa635706bcb1647a753bc3 | [
"MIT"
] | 2 | 2021-01-07T23:59:36.000Z | 2021-01-18T00:23:52.000Z | module01/ex/ex025.py | LauroHBrant/python-course | 2154181ca4b684b0d1fa635706bcb1647a753bc3 | [
"MIT"
] | null | null | null | module01/ex/ex025.py | LauroHBrant/python-course | 2154181ca4b684b0d1fa635706bcb1647a753bc3 | [
"MIT"
] | null | null | null | name = str(input('Type your complete name: ')).strip().upper().split()
print(f'Does your name have "POTTER"? {"POTTER" in name}')
| 32.75 | 70 | 0.664122 | 20 | 131 | 4.35 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122137 | 131 | 3 | 71 | 43.666667 | 0.756522 | 0 | 0 | 0 | 0 | 0 | 0.557252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
593cfc5ceed4b81e840815c4d0d9500632a703f7 | 892 | py | Python | apps/core/management/commands/erms_sync_identities_and_users.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | null | null | null | apps/core/management/commands/erms_sync_identities_and_users.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | null | null | null | apps/core/management/commands/erms_sync_identities_and_users.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | null | null | null | import logging
from django.core.management.base import BaseCommand
from django.db.transaction import atomic
from core.models import DataSource
from ...logic.sync import sync_identities_with_erms, sync_users_with_erms
logger = logging.getLogger(__name__)
class Command(BaseCommand):
help = 'Sync organizations b... | 33.037037 | 90 | 0.690583 | 110 | 892 | 5.372727 | 0.518182 | 0.054146 | 0.060914 | 0.07445 | 0.169205 | 0.169205 | 0.169205 | 0.169205 | 0.169205 | 0.169205 | 0 | 0 | 0.221973 | 892 | 26 | 91 | 34.307692 | 0.851585 | 0 | 0 | 0 | 0 | 0 | 0.121076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.388889 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
59414ae969c1b4ef3471064b5e48c546a698e9b6 | 152 | py | Python | script/cal.py | dongwkim/POCDriver | 2ae730686d229263a35b710c4e4c9f49bae458e7 | [
"Apache-2.0"
] | null | null | null | script/cal.py | dongwkim/POCDriver | 2ae730686d229263a35b710c4e4c9f49bae458e7 | [
"Apache-2.0"
] | null | null | null | script/cal.py | dongwkim/POCDriver | 2ae730686d229263a35b710c4e4c9f49bae458e7 | [
"Apache-2.0"
] | null | null | null | import csv
for row in csv.reader(10_10k.out):
rowtotal = 0
for column in row[15]:
rowtotal += float(column)
print(row[0], rowtotal)
| 19 | 34 | 0.631579 | 24 | 152 | 3.958333 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.25 | 152 | 7 | 35 | 21.714286 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3cc05413bedefcb0b46942fa99f810355ff43e2a | 194 | py | Python | src/config/settings/__init__.py | Flaiers/django-clean-architecture | 4d14c1a7426e162d5e413e8f70e16e269cd63f82 | [
"MIT"
] | 2 | 2021-07-31T20:01:36.000Z | 2021-09-07T13:37:42.000Z | src/config/settings/__init__.py | Flaiers/django-template | 4d14c1a7426e162d5e413e8f70e16e269cd63f82 | [
"MIT"
] | 1 | 2021-11-13T00:14:14.000Z | 2021-11-13T00:14:14.000Z | src/config/settings/__init__.py | Flaiers/django-template | 4d14c1a7426e162d5e413e8f70e16e269cd63f82 | [
"MIT"
] | 2 | 2021-09-07T13:37:43.000Z | 2021-10-31T20:19:29.000Z | import os
if os.getenv("LEVEL") == "PRODUCTION":
print('RUN PRODUCTION MODE')
from .production import *
else:
print('RUN LOCAL MODE')
from .local import *
from .base import *
| 16.166667 | 38 | 0.64433 | 25 | 194 | 5 | 0.52 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226804 | 194 | 11 | 39 | 17.636364 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.247423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3cc6f0d07ac2527b6ead69602c50cb26a7f9f27f | 218 | py | Python | steiner/oparser/pace.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | 1 | 2019-01-15T16:58:03.000Z | 2019-01-15T16:58:03.000Z | steiner/oparser/pace.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | null | null | null | steiner/oparser/pace.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | null | null | null | """Output conforming to PACE guidelines"""
def parse(solution):
if solution is not None:
print "VALUE " + str(solution[1])
for (u, v) in solution[0].edges:
print "{} {}".format(u, v)
| 21.8 | 42 | 0.56422 | 29 | 218 | 4.241379 | 0.793103 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.279817 | 218 | 9 | 43 | 24.222222 | 0.770701 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3cec8054f454d4bb25a1d42410c43a2fcf138987 | 1,987 | py | Python | budgetbanger/models.py | barcai/HackTheBurgh2016 | bc5e6dd7d25d72c38d6c3baacc34178222b4f5ce | [
"Apache-2.0"
] | null | null | null | budgetbanger/models.py | barcai/HackTheBurgh2016 | bc5e6dd7d25d72c38d6c3baacc34178222b4f5ce | [
"Apache-2.0"
] | null | null | null | budgetbanger/models.py | barcai/HackTheBurgh2016 | bc5e6dd7d25d72c38d6c3baacc34178222b4f5ce | [
"Apache-2.0"
] | null | null | null | from flask_login import UserMixin
from werkzeug.security import check_password_hash, generate_password_hash
from . import db
'''
give backrefs unique names
'''
class User(db.Model, UserMixin):
__tablename__ = 'User'
id = db.Column(db.Integer, primary_key = True)
user_name = db.Column(db.String(100), uniq... | 30.106061 | 86 | 0.687469 | 272 | 1,987 | 4.790441 | 0.283088 | 0.116654 | 0.145817 | 0.117421 | 0.403684 | 0.24482 | 0.168074 | 0.056792 | 0.056792 | 0 | 0 | 0.010044 | 0.198289 | 1,987 | 66 | 87 | 30.106061 | 0.80791 | 0 | 0 | 0.083333 | 1 | 0 | 0.036336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.229167 | 0.0625 | 0.0625 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3cf347f8f4c272d5beb8a8b855ec9ae478d9b1fd | 95 | py | Python | graph2.py | ropso/AlgorithmDesignAndAnalysis-Python | de4a1f695c819a98f590d9156fc84e4468529289 | [
"MIT"
] | null | null | null | graph2.py | ropso/AlgorithmDesignAndAnalysis-Python | de4a1f695c819a98f590d9156fc84e4468529289 | [
"MIT"
] | null | null | null | graph2.py | ropso/AlgorithmDesignAndAnalysis-Python | de4a1f695c819a98f590d9156fc84e4468529289 | [
"MIT"
] | null | null | null | mat=[]
m=int(input())
for i in range(0,m):
mat.append([int(i) for i in input().split(" ")]) | 23.75 | 52 | 0.568421 | 19 | 95 | 2.842105 | 0.578947 | 0.148148 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.157895 | 95 | 4 | 52 | 23.75 | 0.6625 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3cf3a520c124d2c4205909a02fe91b1337a320fd | 463 | py | Python | 2021_04_14/dojo_test.py | devppjr/dojo | de0bf116153bd1251dd948c18fc73ac41def0fa5 | [
"MIT"
] | 114 | 2015-03-10T22:17:42.000Z | 2022-03-09T17:49:48.000Z | 2021_04_14/dojo_test.py | devppjr/dojo | de0bf116153bd1251dd948c18fc73ac41def0fa5 | [
"MIT"
] | 9 | 2018-09-04T12:49:59.000Z | 2019-11-17T21:29:51.000Z | 2021_04_14/dojo_test.py | devppjr/dojo | de0bf116153bd1251dd948c18fc73ac41def0fa5 | [
"MIT"
] | 39 | 2015-01-29T01:20:56.000Z | 2022-02-17T16:26:25.000Z | import unittest
from dojo import main
class DojoTest(unittest.TestCase):
def test_zero(self):
primes_list = list(primes(0))
self.assertListEqual(primes_list, [])
def test_one(self):
primes_list = list(primes(3))
self.assertListEqual(primes_list, [2])
def test_two(self):
... | 22.047619 | 55 | 0.650108 | 60 | 463 | 4.733333 | 0.433333 | 0.211268 | 0.147887 | 0.190141 | 0.464789 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030641 | 0.224622 | 463 | 20 | 56 | 23.15 | 0.760446 | 0 | 0 | 0 | 0 | 0 | 0.017279 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a715110a7ecd4f6b4f29cb86e26a33407bf913e5 | 31 | py | Python | _solutions/basics/types/type_strinput_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/basics/types/type_strinput_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/basics/types/type_strinput_a.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null |
result = input('Type NASA: ')
| 10.333333 | 29 | 0.612903 | 4 | 31 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 31 | 2 | 30 | 15.5 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a73656b7b454d4d153bbbca154cafd7917ca06b5 | 6,994 | py | Python | tests/test_lint.py | philvarner/stac-check | 51d5adde0acf7f9be6fb840bd0828e794ea750e4 | [
"MIT"
] | 8 | 2021-11-08T16:15:36.000Z | 2022-02-21T23:57:58.000Z | tests/test_lint.py | jonhealy1/stac-check | 51d5adde0acf7f9be6fb840bd0828e794ea750e4 | [
"MIT"
] | 1 | 2022-03-03T12:24:53.000Z | 2022-03-03T12:24:53.000Z | tests/test_lint.py | jonhealy1/stac-check | 51d5adde0acf7f9be6fb840bd0828e794ea750e4 | [
"MIT"
] | null | null | null | from re import L
from stac_check.lint import Linter
import pytest
def test_linter_bad_asset_requests():
file = "sample_files/1.0.0/core-item.json"
linter = Linter(file, assets=True)
asset_request_errors = [
"http://cool-sat.com/catalog/20201211_223832_CS2/20201211_223832_CS2.EPH"
]
assert l... | 38.218579 | 150 | 0.716471 | 973 | 6,994 | 4.911614 | 0.126413 | 0.140615 | 0.016321 | 0.0837 | 0.750785 | 0.71584 | 0.71584 | 0.667504 | 0.643231 | 0.605775 | 0 | 0.054378 | 0.163855 | 6,994 | 182 | 151 | 38.428571 | 0.762825 | 0 | 0 | 0.535484 | 0 | 0.012903 | 0.307692 | 0.189305 | 0 | 0 | 0 | 0 | 0.387097 | 1 | 0.116129 | false | 0 | 0.019355 | 0 | 0.135484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
599805314db6133f5f1d74953277cc8e2155aac5 | 1,736 | py | Python | saw-remote-api/python/saw_client/llvm_type.py | Grain/saw-script | 81287fb74cbdac3bb3f75b984f1125deb3055e64 | [
"BSD-3-Clause"
] | 411 | 2015-06-09T22:00:47.000Z | 2022-03-30T11:41:23.000Z | saw-remote-api/python/saw_client/llvm_type.py | Grain/saw-script | 81287fb74cbdac3bb3f75b984f1125deb3055e64 | [
"BSD-3-Clause"
] | 1,151 | 2015-06-12T20:46:31.000Z | 2022-03-23T02:56:32.000Z | saw-remote-api/python/saw_client/llvm_type.py | Grain/saw-script | 81287fb74cbdac3bb3f75b984f1125deb3055e64 | [
"BSD-3-Clause"
] | 65 | 2015-06-10T17:52:26.000Z | 2022-02-10T18:17:06.000Z | from abc import ABCMeta, abstractmethod
from typing import Any, Dict, List, Optional, Set, Union, overload
class LLVMType(metaclass=ABCMeta):
@abstractmethod
def to_json(self) -> Any: pass
class LLVMIntType(LLVMType):
def __init__(self, width : int) -> None:
self.width = width
def to_json(sel... | 31.563636 | 85 | 0.619816 | 214 | 1,736 | 4.78972 | 0.252336 | 0.06439 | 0.061463 | 0.08878 | 0.394146 | 0.378537 | 0.378537 | 0.277073 | 0.277073 | 0.277073 | 0 | 0 | 0.247696 | 1,736 | 54 | 86 | 32.148148 | 0.784839 | 0 | 0 | 0.292683 | 0 | 0 | 0.091014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0.02439 | 0.04878 | 0.146341 | 0.682927 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
59aec7a643b81af95fbdd4c752ac0b6683a15b4d | 1,451 | py | Python | threp/utils.py | wasupandceacar/threp | 606376968a18228b09a73a5cc35bd0a11b16fe04 | [
"MIT"
] | 24 | 2018-02-12T13:44:57.000Z | 2021-12-16T09:49:54.000Z | threp/utils.py | wasupandceacar/threp | 606376968a18228b09a73a5cc35bd0a11b16fe04 | [
"MIT"
] | 4 | 2018-03-14T12:16:29.000Z | 2021-12-22T12:03:23.000Z | threp/utils.py | wasupandceacar/threp | 606376968a18228b09a73a5cc35bd0a11b16fe04 | [
"MIT"
] | 3 | 2020-02-01T12:03:38.000Z | 2021-12-15T18:02:32.000Z | from struct import unpack
from math import ceil, floor
def unsigned_int(_bytes, pointer):
return unpack('I', _bytes[pointer:pointer + 4])[0]
def unsigned_char(_bytes, pointer):
return unpack('B', _bytes[pointer:pointer + 1])[0]
def float_(_bytes, pointer):
return unpack('f', _bytes[pointer:pointer + 4])[... | 25.910714 | 54 | 0.634735 | 204 | 1,451 | 4.372549 | 0.406863 | 0.080717 | 0.071749 | 0.080717 | 0.091928 | 0.091928 | 0 | 0 | 0 | 0 | 0 | 0.04647 | 0.228808 | 1,451 | 56 | 55 | 25.910714 | 0.75067 | 0.052378 | 0 | 0 | 0 | 0 | 0.054785 | 0 | 0 | 0 | 0.005844 | 0 | 0 | 1 | 0.225 | false | 0.025 | 0.05 | 0.125 | 0.575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
59b0933a6930882b8db42169897b894d16d4aa39 | 518 | py | Python | api/gsn-api/gsndb/migrations/0004_auto_20190327_1847.py | DonovanDarko/gsn | a6e76fcf7abea4559157de35edff9c184c944898 | [
"ISC"
] | 2 | 2019-01-15T22:46:03.000Z | 2019-04-09T01:34:19.000Z | api/gsn_api/gsndb/migrations/0004_auto_20190327_1847.py | MrYetly/gsn | 1b49a5db31f5e19c0d39ee7f3b8783b55c3bf81d | [
"ISC"
] | null | null | null | api/gsn_api/gsndb/migrations/0004_auto_20190327_1847.py | MrYetly/gsn | 1b49a5db31f5e19c0d39ee7f3b8783b55c3bf81d | [
"ISC"
] | 3 | 2019-03-22T03:25:46.000Z | 2019-03-30T20:59:29.000Z | # Generated by Django 2.1.5 on 2019-03-27 18:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gsndb', '0003_auto_20190326_2144'),
]
operations = [
migrations.RenameField(
model_name='student',
old_name='birth_date',
... | 21.583333 | 47 | 0.567568 | 52 | 518 | 5.442308 | 0.692308 | 0.14841 | 0.183746 | 0.212014 | 0.310954 | 0.310954 | 0.310954 | 0 | 0 | 0 | 0 | 0.088319 | 0.322394 | 518 | 23 | 48 | 22.521739 | 0.717949 | 0.086873 | 0 | 0.352941 | 1 | 0 | 0.176221 | 0.048832 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
59cbad2a502624c51bb60f8675464c2675138392 | 259 | py | Python | comparing_epsilons.py | Turgibot/Reinforcement_Learning | 4894c7da80bf4f915b5aee147fececd7fc94efae | [
"MIT"
] | null | null | null | comparing_epsilons.py | Turgibot/Reinforcement_Learning | 4894c7da80bf4f915b5aee147fececd7fc94efae | [
"MIT"
] | null | null | null | comparing_epsilons.py | Turgibot/Reinforcement_Learning | 4894c7da80bf4f915b5aee147fececd7fc94efae | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
class Bandit:
def __init__(self, true_mean):
self.true_mean = true_mean
self.mean = 0
self.counter = 0
def pull_handle(self):
return np.random.rand() + self.id
| 18.5 | 41 | 0.625483 | 37 | 259 | 4.162162 | 0.594595 | 0.155844 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.293436 | 259 | 14 | 42 | 18.5 | 0.830601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
59d06798622a6641e63c0ccc653ee776420e47ae | 392 | py | Python | pyglotaran_extras/plotting/data.py | glotaran/pyglotaran_extras | 619bce07782a62a2233aaebb66066d4eee19b16d | [
"MIT"
] | 2 | 2021-07-20T15:14:29.000Z | 2022-02-05T20:24:59.000Z | pyglotaran_extras/plotting/data.py | glotaran/pyglotaran-extras | 01ab372bbe5cdd6bfa003fafaeb958df915129ba | [
"MIT"
] | 54 | 2021-04-26T06:55:36.000Z | 2022-03-25T17:16:17.000Z | pyglotaran_extras/plotting/data.py | glotaran/pyglotaran-extras | 01ab372bbe5cdd6bfa003fafaeb958df915129ba | [
"MIT"
] | 1 | 2021-03-25T22:20:39.000Z | 2021-03-25T22:20:39.000Z | """Deprecated module."""
from pyglotaran_extras.deprecation import warn_deprecated
from pyglotaran_extras.plotting.plot_data import plot_data_overview
__all__ = ["plot_data_overview"]
warn_deprecated(
deprecated_qual_name_usage="pyglotaran_extras.plotting.data",
new_qual_name_usage="pyglotaran_extras.plottin... | 28 | 67 | 0.808673 | 52 | 392 | 5.596154 | 0.5 | 0.219931 | 0.247423 | 0.19244 | 0.391753 | 0.254296 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.096939 | 392 | 13 | 68 | 30.153846 | 0.810734 | 0.045918 | 0 | 0 | 0 | 0 | 0.244565 | 0.182065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab9e26cef7960b66fff8e80179ed6ae6e9987c31 | 331 | py | Python | flasky.py | The-Go-Getter-Dev/happyflaskdev | cb7b36a4146dd37704f7ba26eb8c3adc85fb5097 | [
"MIT"
] | null | null | null | flasky.py | The-Go-Getter-Dev/happyflaskdev | cb7b36a4146dd37704f7ba26eb8c3adc85fb5097 | [
"MIT"
] | null | null | null | flasky.py | The-Go-Getter-Dev/happyflaskdev | cb7b36a4146dd37704f7ba26eb8c3adc85fb5097 | [
"MIT"
] | null | null | null | import os
from app import create_app, db
from app.models import User,Cult,Rating,Post
from flask_migrate import Migrate
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(app, db)
@app.shell_context_processor
def make_shell_context():
return dict(db=db, User=User, Cult=Cult,Post=Post,Rati... | 25.461538 | 68 | 0.779456 | 54 | 331 | 4.62963 | 0.444444 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114804 | 331 | 12 | 69 | 27.583333 | 0.853242 | 0 | 0 | 0 | 0 | 0 | 0.057402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
aba47e2d92e9d056295626369963b9fafe6e6652 | 277 | py | Python | simple_chatbot/responses.py | Codingplace42/django-simple-chatbot | ba9b5b9f2ed40a1e8b67671f9ad67f1d122e0962 | [
"MIT"
] | 9 | 2021-05-02T14:52:00.000Z | 2022-03-28T16:07:14.000Z | simple_chatbot/responses.py | Codingplace42/django-simple-chatbot | ba9b5b9f2ed40a1e8b67671f9ad67f1d122e0962 | [
"MIT"
] | 1 | 2021-12-05T01:19:44.000Z | 2021-12-05T01:19:44.000Z | simple_chatbot/responses.py | Codingplace42/django-simple-chatbot | ba9b5b9f2ed40a1e8b67671f9ad67f1d122e0962 | [
"MIT"
] | 7 | 2021-09-08T06:06:48.000Z | 2022-03-23T06:53:34.000Z | from abc import ABC, abstractmethod
from random import choice
class BaseResponse(ABC):
@abstractmethod
def get_response(self):
pass
class GenericRandomResponse(BaseResponse):
choices = ()
def get_response(self):
return choice(self.choices)
| 17.3125 | 42 | 0.707581 | 30 | 277 | 6.466667 | 0.533333 | 0.175258 | 0.14433 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220217 | 277 | 15 | 43 | 18.466667 | 0.898148 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
abb106d3beb6a4c4035c779092c254933c3afc62 | 374 | py | Python | src/discord_bot/bot.py | darakelian/gam-bot | 1363c5f44bcc7e622e97e3d0d455eb185417fecb | [
"MIT"
] | null | null | null | src/discord_bot/bot.py | darakelian/gam-bot | 1363c5f44bcc7e622e97e3d0d455eb185417fecb | [
"MIT"
] | null | null | null | src/discord_bot/bot.py | darakelian/gam-bot | 1363c5f44bcc7e622e97e3d0d455eb185417fecb | [
"MIT"
] | null | null | null | from discord import Intents
from discord.ext.commands import Bot
from . import settings
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from discord.ext.commands import Context
def build_bot() -> "Bot[Context]":
b = Bot(command_prefix=settings.COMMAND_PREFIX, intents=Intents.all())
for cog_cls in sett... | 24.933333 | 74 | 0.743316 | 56 | 374 | 4.821429 | 0.464286 | 0.122222 | 0.103704 | 0.162963 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171123 | 374 | 14 | 75 | 26.714286 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
abdb234337c3a91a59cd77d0372e6ccd49e9a2b8 | 3,277 | py | Python | extr_registro_civil.py | marcelo-guimaraes/DockerCICD | be4b16b7d3d038a24aeae784806757790d808918 | [
"MIT"
] | null | null | null | extr_registro_civil.py | marcelo-guimaraes/DockerCICD | be4b16b7d3d038a24aeae784806757790d808918 | [
"MIT"
] | null | null | null | extr_registro_civil.py | marcelo-guimaraes/DockerCICD | be4b16b7d3d038a24aeae784806757790d808918 | [
"MIT"
] | null | null | null | import requests
import json
import time
from datetime import date, timedelta
"""
Classe RegistroCivil: classe para conexão com a API da Transparência do Registro Civil.
Métodos:
=> obitos:
=> parametros:
=> data_inicio (str): data inicial da pesquisa no formato YYYY-MM-DD
... | 65.54 | 597 | 0.743058 | 255 | 3,277 | 9.443137 | 0.65098 | 0.012458 | 0.03613 | 0.038621 | 0.052326 | 0.022425 | 0.022425 | 0 | 0 | 0 | 0 | 0.089142 | 0.168142 | 3,277 | 49 | 598 | 66.877551 | 0.794204 | 0 | 0 | 0 | 0 | 0.0625 | 0.705819 | 0.517889 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 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 | 1 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
abf691184e98f6ee2696c7b931f8283774a0c97e | 135 | py | Python | examples/pycuse_hello.py | jevinskie/pycuse | 96e8e44bf82d1d90ca8c94a98a296123746ca1ff | [
"MIT"
] | null | null | null | examples/pycuse_hello.py | jevinskie/pycuse | 96e8e44bf82d1d90ca8c94a98a296123746ca1ff | [
"MIT"
] | null | null | null | examples/pycuse_hello.py | jevinskie/pycuse | 96e8e44bf82d1d90ca8c94a98a296123746ca1ff | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from pycuse import cuse
print("pycuse hello")
cd = cuse.CUSEDev("cuse-hello", fg=True, debug=True)
print(cd)
| 15 | 52 | 0.711111 | 22 | 135 | 4.363636 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.125926 | 135 | 8 | 53 | 16.875 | 0.805085 | 0.155556 | 0 | 0 | 0 | 0 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
28018a1e4621275e9ba03a58e7369b210d5051fd | 503 | py | Python | tests/mock_browser.py | alfie-max/Publish | 0014cc45f2496c44c9171353dc42a58d73dd5490 | [
"MIT"
] | 1 | 2016-03-08T07:17:46.000Z | 2016-03-08T07:17:46.000Z | tests/mock_browser.py | alfie-max/Publish | 0014cc45f2496c44c9171353dc42a58d73dd5490 | [
"MIT"
] | 5 | 2021-03-18T19:55:25.000Z | 2022-03-11T23:11:27.000Z | tests/mock_browser.py | alfie-max/Publish | 0014cc45f2496c44c9171353dc42a58d73dd5490 | [
"MIT"
] | null | null | null | class Browser(object):
def __init__(self):
form = {}
def open(self, url):
pass
def set_handle_robots(self, status):
pass
def set_cookiejar(self, cj):
pass
def forms(self):
forms = [{'session[username_or_email]':'', 'session[password]':''}]
return f... | 18.62963 | 75 | 0.536779 | 56 | 503 | 4.571429 | 0.517857 | 0.109375 | 0.101563 | 0.132813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021021 | 0.337972 | 503 | 26 | 76 | 19.346154 | 0.747748 | 0 | 0 | 0.368421 | 0 | 0 | 0.125249 | 0.05169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0.315789 | 0 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e602bfa2c979bd2e63426075e015cb18743ab1e4 | 1,348 | py | Python | tests/test_fpack_utils.py | frankurcrazy/fpack | ce2369ec3018b20d79f101ed0b439fd312681472 | [
"BSD-3-Clause"
] | 2 | 2020-08-26T14:16:39.000Z | 2021-01-11T08:43:36.000Z | tests/test_fpack_utils.py | frankurcrazy/fpack | ce2369ec3018b20d79f101ed0b439fd312681472 | [
"BSD-3-Clause"
] | 17 | 2021-04-28T06:02:45.000Z | 2022-03-29T18:05:56.000Z | tests/test_fpack_utils.py | frankurcrazy/fpack | ce2369ec3018b20d79f101ed0b439fd312681472 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import io
import unittest
try:
from fpack.utils import get_length
except ImportError:
import os
import sys
sys.path.append(os.path.abspath(os.path.join(".", "..")))
from fpack.utils import get_length
class TestGetLength(unittest.TestCase):
def test_get_length_memoryvie... | 25.923077 | 65 | 0.670623 | 185 | 1,348 | 4.621622 | 0.372973 | 0.210526 | 0.105263 | 0.168421 | 0.320468 | 0.067836 | 0 | 0 | 0 | 0 | 0 | 0.00653 | 0.204748 | 1,348 | 51 | 66 | 26.431373 | 0.791045 | 0.014837 | 0 | 0.057143 | 0 | 0 | 0.07159 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 1 | 0.257143 | false | 0 | 0.2 | 0 | 0.485714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e60611b7c9be4bd86f1cfc6dc463479f0bf59250 | 216 | py | Python | pycspr/codec/_bytearray/cl_list.py | momipsl/pycspr | 82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5 | [
"Apache-2.0"
] | 2 | 2021-04-14T13:49:20.000Z | 2021-07-06T22:07:02.000Z | pycspr/codec/_bytearray/cl_list.py | momipsl/pycspr | 82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5 | [
"Apache-2.0"
] | null | null | null | pycspr/codec/_bytearray/cl_list.py | momipsl/pycspr | 82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5 | [
"Apache-2.0"
] | 1 | 2021-04-15T12:52:42.000Z | 2021-04-15T12:52:42.000Z | import typing
import operator
from operator import add
def to_bytes(instance: list, item_encoder: typing.Callable) -> bytearray:
return [len(instance)] + map(operator.add, [item_encoder(i) for i in instance])
| 24 | 83 | 0.75463 | 31 | 216 | 5.16129 | 0.645161 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143519 | 216 | 8 | 84 | 27 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
e6079305ec163da80713e2a4a67aaed563a40947 | 56 | py | Python | example-config.py | PabloJabat/trading-bot-python | f97930a34b614ae3538a27398ee82d9fde72cf9a | [
"MIT"
] | 4 | 2020-08-11T16:16:47.000Z | 2021-03-13T14:44:43.000Z | example-config.py | fcarazo/trading-bot-python | db1144f18cd12814fa4806cffa1020c6bfcad2a4 | [
"MIT"
] | 6 | 2021-03-13T16:06:21.000Z | 2022-03-29T22:28:48.000Z | example-config.py | fcarazo/trading-bot-python | db1144f18cd12814fa4806cffa1020c6bfcad2a4 | [
"MIT"
] | 2 | 2021-03-13T15:45:23.000Z | 2021-10-16T11:10:00.000Z | API_KEY = "your-api-key"
SECRET_KEY = "your-secret-key"
| 18.666667 | 30 | 0.714286 | 10 | 56 | 3.8 | 0.4 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 56 | 2 | 31 | 28 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.482143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e61cfc9b6d939c1dbaf4b64ec91f4f25d97e76a2 | 207 | py | Python | conditional_distribution.py | lliryc/baytrino | 272bd17b7a7c9fb027e976adb7278ec5b582d36c | [
"Apache-2.0"
] | 6 | 2021-01-29T12:13:51.000Z | 2022-01-28T18:02:38.000Z | conditional_distribution.py | lliryc/baytrino | 272bd17b7a7c9fb027e976adb7278ec5b582d36c | [
"Apache-2.0"
] | null | null | null | conditional_distribution.py | lliryc/baytrino | 272bd17b7a7c9fb027e976adb7278ec5b582d36c | [
"Apache-2.0"
] | null | null | null | import numpy as np
import typing as t
class ProbRelation:
def __init__(self, probs: t.List[t.List[float]], shape:t.Tuple[int, int]):
self.distibution = np.array(probs)
self.shape = shape | 29.571429 | 78 | 0.676329 | 32 | 207 | 4.25 | 0.59375 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 207 | 7 | 79 | 29.571429 | 0.824242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e66704902c8913fb1a77416d13c1b5fb51f51be4 | 611 | py | Python | py/DREAM/Output/HotElectronDistributionFunction.py | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | py/DREAM/Output/HotElectronDistributionFunction.py | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | py/DREAM/Output/HotElectronDistributionFunction.py | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | # Wrapper class for 'f_hot' -- the hot electron distribution function
import numpy as np
import matplotlib.pyplot as plt
from . DistributionFunction import DistributionFunction
class HotElectronDistributionFunction(DistributionFunction):
def __init__(self, name, data, grid, output, attr=list()):
"... | 23.5 | 110 | 0.664484 | 67 | 611 | 5.910448 | 0.626866 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232406 | 611 | 25 | 111 | 24.44 | 0.84435 | 0.214403 | 0 | 0 | 0 | 0 | 0.030162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
051993096a367f147bd30a21090b38f503c5ffb3 | 111 | py | Python | healthplan/tier.py | jpbarela/pyActuarialValue | bda98370250e6ecaecd9beffb8bcc11456dd4fa4 | [
"Apache-2.0"
] | 2 | 2016-05-09T01:01:09.000Z | 2017-10-04T12:04:17.000Z | healthplan/tier.py | jpbarela/pyActuarialValue | bda98370250e6ecaecd9beffb8bcc11456dd4fa4 | [
"Apache-2.0"
] | 1 | 2015-01-01T17:16:44.000Z | 2015-01-01T17:43:30.000Z | healthplan/tier.py | jpbarela/pyActuarialValue | bda98370250e6ecaecd9beffb8bcc11456dd4fa4 | [
"Apache-2.0"
] | 3 | 2015-07-25T15:55:06.000Z | 2020-05-03T16:48:20.000Z | from enum import Enum
class Tier(Enum):
platinum = 1
gold = 2
silver = 3
bronze = 4
na = 5 | 13.875 | 21 | 0.558559 | 17 | 111 | 3.647059 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.369369 | 111 | 8 | 22 | 13.875 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
051e41bed7bb04b2fbc5ed6df8841c7227bdcf13 | 1,239 | py | Python | takenote/notes/models.py | macerocket/takenote | df02c41e44a9c2f4a0505d1de0ed732a59dda173 | [
"Apache-2.0"
] | null | null | null | takenote/notes/models.py | macerocket/takenote | df02c41e44a9c2f4a0505d1de0ed732a59dda173 | [
"Apache-2.0"
] | null | null | null | takenote/notes/models.py | macerocket/takenote | df02c41e44a9c2f4a0505d1de0ed732a59dda173 | [
"Apache-2.0"
] | null | null | null | """ models for the rest interface of the takenotes project. """
from django.db import models
# Create your models here.
class Note(models.Model):
"""
A Note represent notes taken at a meeting or w/e.
"""
name = models.CharField(max_length=255, unique=True)
notes = models.TextField()
private_f... | 31.769231 | 81 | 0.69088 | 171 | 1,239 | 4.859649 | 0.491228 | 0.072202 | 0.101083 | 0.120337 | 0.245487 | 0.245487 | 0.245487 | 0.245487 | 0.245487 | 0.245487 | 0 | 0.003006 | 0.194512 | 1,239 | 38 | 82 | 32.605263 | 0.829659 | 0.256659 | 0 | 0.315789 | 0 | 0.052632 | 0.141055 | 0.026376 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0.105263 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
051f96840bb8bc6be4e83515474bdf5563b5408b | 83 | py | Python | src/naturerec_web/home/__init__.py | davewalker5/NatureRecorderPy | 53b3c2a589986f91bc78999f40a6dc55f61afe36 | [
"MIT"
] | null | null | null | src/naturerec_web/home/__init__.py | davewalker5/NatureRecorderPy | 53b3c2a589986f91bc78999f40a6dc55f61afe36 | [
"MIT"
] | null | null | null | src/naturerec_web/home/__init__.py | davewalker5/NatureRecorderPy | 53b3c2a589986f91bc78999f40a6dc55f61afe36 | [
"MIT"
] | null | null | null | from naturerec_web.home.home_blueprint import home_bp
__all__ = [
"home_bp"
]
| 13.833333 | 53 | 0.746988 | 12 | 83 | 4.5 | 0.666667 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 83 | 5 | 54 | 16.6 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0588b1aabfa397fccb6d84b9273f9486260c7fd2 | 4,326 | py | Python | fastshop/fastshop/settings.py | IlyaDjurin/project-shop | affe4d6b02c4676f564088f360fed7bd8bae983a | [
"MIT"
] | null | null | null | fastshop/fastshop/settings.py | IlyaDjurin/project-shop | affe4d6b02c4676f564088f360fed7bd8bae983a | [
"MIT"
] | null | null | null | fastshop/fastshop/settings.py | IlyaDjurin/project-shop | affe4d6b02c4676f564088f360fed7bd8bae983a | [
"MIT"
] | null | null | null | """
Django settings for fastshop project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | 27.55414 | 91 | 0.686778 | 467 | 4,326 | 6.250535 | 0.396146 | 0.084618 | 0.046591 | 0.059952 | 0.175745 | 0.147311 | 0.093868 | 0.093868 | 0.042138 | 0 | 0 | 0.016084 | 0.180767 | 4,326 | 157 | 92 | 27.55414 | 0.807562 | 0.230236 | 0 | 0.041237 | 1 | 0.010309 | 0.567715 | 0.475212 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051546 | 0.030928 | 0 | 0.030928 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0597b27ffe3c466adb2aa6fea2f9db406729dcd5 | 271 | py | Python | Coursera/Week.2/Task.20.py | v1nnyb0y/Coursera.BasePython | bbfb3184dc27a4cdb16b087123890991afbc5506 | [
"MIT"
] | null | null | null | Coursera/Week.2/Task.20.py | v1nnyb0y/Coursera.BasePython | bbfb3184dc27a4cdb16b087123890991afbc5506 | [
"MIT"
] | null | null | null | Coursera/Week.2/Task.20.py | v1nnyb0y/Coursera.BasePython | bbfb3184dc27a4cdb16b087123890991afbc5506 | [
"MIT"
] | null | null | null | '''
Мороженое
'''
k = int(input())
if (k % 5 == 4 and k >= 9):
print('YES')
elif (k % 5 == 3):
print('YES')
elif (k % 5 == 2 and k >= 12):
print('YES')
elif (k % 5 == 1 and k >= 6):
print('YES')
elif (k % 5 == 0):
print('YES')
else:
print('NO')
| 14.263158 | 30 | 0.435424 | 46 | 271 | 2.565217 | 0.434783 | 0.084746 | 0.40678 | 0.440678 | 0.474576 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073684 | 0.298893 | 271 | 18 | 31 | 15.055556 | 0.547368 | 0.03321 | 0 | 0.384615 | 0 | 0 | 0.066929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
555624840801c60b45f6ec114e20ecefd1624060 | 895 | py | Python | moby_distribution/__init__.py | shabbywu/distribution | decc93545094089408e1da629a2e8253fc359a90 | [
"Apache-2.0"
] | 7 | 2021-12-15T16:02:32.000Z | 2022-03-18T08:15:12.000Z | moby_distribution/__init__.py | shabbywu/distribution | decc93545094089408e1da629a2e8253fc359a90 | [
"Apache-2.0"
] | null | null | null | moby_distribution/__init__.py | shabbywu/distribution | decc93545094089408e1da629a2e8253fc359a90 | [
"Apache-2.0"
] | 1 | 2022-03-18T08:04:46.000Z | 2022-03-18T08:04:46.000Z | from moby_distribution.registry.client import DockerRegistryV2Client, default_client, set_default_client
from moby_distribution.registry.resources.blobs import Blob
from moby_distribution.registry.resources.image import ImageRef, LayerRef
from moby_distribution.registry.resources.manifests import ManifestRef
from moby_... | 34.423077 | 104 | 0.794413 | 92 | 895 | 7.467391 | 0.358696 | 0.093159 | 0.232897 | 0.203785 | 0.299854 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014031 | 0.124022 | 895 | 25 | 105 | 35.8 | 0.862245 | 0 | 0 | 0 | 0 | 0 | 0.181006 | 0.024581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
55ac25df14740dccd0681c52dafb1884ed9136b7 | 3,969 | py | Python | adversarials/core/base.py | deven96/Wasserstein_GAN | c50df5fa6daa31adf50f50b6e4a06f5336777a52 | [
"MIT"
] | 7 | 2018-12-20T19:56:06.000Z | 2019-05-23T23:39:18.000Z | adversarials/core/base.py | deven96/Wasserstein_GAN | c50df5fa6daa31adf50f50b6e4a06f5336777a52 | [
"MIT"
] | null | null | null | adversarials/core/base.py | deven96/Wasserstein_GAN | c50df5fa6daa31adf50f50b6e4a06f5336777a52 | [
"MIT"
] | 2 | 2018-12-20T17:24:45.000Z | 2019-01-27T23:03:02.000Z | """Base classes for Adversarial package.
@author
Victor I. Afolabi
Artificial Intelligence Expert & Software Engineer.
Email: javafolabi@gmail.com | victor.afolabi@zephyrtel.com
GitHub: https://github.com/victor-iyiola
@project
File: base.py
Created on 20 December, 2018 @ 06:56 PM.... | 30.29771 | 86 | 0.582514 | 461 | 3,969 | 4.785249 | 0.373102 | 0.036265 | 0.025385 | 0.013599 | 0.066183 | 0.024479 | 0 | 0 | 0 | 0 | 0 | 0.006043 | 0.291257 | 3,969 | 130 | 87 | 30.530769 | 0.778173 | 0.317208 | 0 | 0.078125 | 0 | 0 | 0.064765 | 0.010023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0.109375 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
55be563529339912b64bad42311b70e3f52c60de | 642 | py | Python | midauth/web/admin/dashboard.py | calvinkim27/test0620 | 36df5190d9c8057ae5dff924f7882603ddc12cfb | [
"MIT"
] | null | null | null | midauth/web/admin/dashboard.py | calvinkim27/test0620 | 36df5190d9c8057ae5dff924f7882603ddc12cfb | [
"MIT"
] | null | null | null | midauth/web/admin/dashboard.py | calvinkim27/test0620 | 36df5190d9c8057ae5dff924f7882603ddc12cfb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint, render_template, current_app
from flask.ext.login import current_user
blueprint = Blueprint('admin.dashboard', __name__)
@blueprint.before_request
def restrict_blueprint_to_admins():
"""
.. seealso:: http://flask.pocoo.org/snippets/59/
"""
if no... | 22.137931 | 62 | 0.719626 | 78 | 642 | 5.692308 | 0.538462 | 0.094595 | 0.09009 | 0.112613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005455 | 0.143302 | 642 | 28 | 63 | 22.928571 | 0.801818 | 0.110592 | 0 | 0 | 0 | 0 | 0.106691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.571429 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 3 |
e9584c3b19deb69eebea31247be5f27d8a052d56 | 3,343 | py | Python | lang/engine/core.py | marc-dantas/lyon | abbd5a78acf020601e06bee5fc19c6301391275c | [
"MIT"
] | 2 | 2022-01-30T22:10:41.000Z | 2022-01-30T22:32:34.000Z | lang/engine/core.py | marc-dantas/lyon | abbd5a78acf020601e06bee5fc19c6301391275c | [
"MIT"
] | null | null | null | lang/engine/core.py | marc-dantas/lyon | abbd5a78acf020601e06bee5fc19c6301391275c | [
"MIT"
] | 1 | 2022-01-10T16:55:26.000Z | 2022-01-10T16:55:26.000Z | from .util import filter_interpolations
from .models import *
from .memory import *
from .errs import INVALID_COMMAND
# Memory
SPACE = Space()
NUM = Num()
VAR = Var()
PARAM = Param()
CMP = Cmp()
# General constants
INTERPOLATIONS = (SPACE, NUM, PARAM)
TYPES = (String, Number)
class CommandToken:
def __init__(s... | 27.178862 | 72 | 0.616811 | 403 | 3,343 | 4.920596 | 0.218362 | 0.044377 | 0.040343 | 0.018154 | 0.109934 | 0.087746 | 0.087746 | 0.087746 | 0.087746 | 0.087746 | 0 | 0.002049 | 0.270117 | 3,343 | 122 | 73 | 27.401639 | 0.810656 | 0.04487 | 0 | 0.129412 | 0 | 0 | 0.015997 | 0 | 0 | 0 | 0 | 0.008197 | 0 | 1 | 0.247059 | false | 0 | 0.047059 | 0.105882 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e95c31c0c4444bfa44946a6c7fd1121bf0aae106 | 385 | py | Python | chainer_openpose/transforms/box.py | iory/chainer-openpose | 020cf7c6946ecaa3e110d937a73565f4e76e3c42 | [
"MIT"
] | 3 | 2020-10-20T12:58:48.000Z | 2020-10-20T20:38:27.000Z | chainer_openpose/transforms/box.py | iory/chainer-openpose | 020cf7c6946ecaa3e110d937a73565f4e76e3c42 | [
"MIT"
] | null | null | null | chainer_openpose/transforms/box.py | iory/chainer-openpose | 020cf7c6946ecaa3e110d937a73565f4e76e3c42 | [
"MIT"
] | null | null | null | import numpy as np
def get_pose_bboxes(poses):
pose_bboxes = []
for pose in poses:
x1 = pose[pose[:, 2] > 0][:, 0].min()
y1 = pose[pose[:, 2] > 0][:, 1].min()
x2 = pose[pose[:, 2] > 0][:, 0].max()
y2 = pose[pose[:, 2] > 0][:, 1].max()
pose_bboxes.append([x1, y1, x2, y2]... | 27.5 | 45 | 0.514286 | 59 | 385 | 3.237288 | 0.389831 | 0.314136 | 0.188482 | 0.209424 | 0.230366 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072202 | 0.280519 | 385 | 13 | 46 | 29.615385 | 0.617329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e964496da23e6d0bdbfc8544901f4805fe65a250 | 3,526 | py | Python | pytils/object_view.py | d33jiang/pytils | 6e44a05480abec6297b77730676bcb5fd5088f6f | [
"MIT"
] | null | null | null | pytils/object_view.py | d33jiang/pytils | 6e44a05480abec6297b77730676bcb5fd5088f6f | [
"MIT"
] | null | null | null | pytils/object_view.py | d33jiang/pytils | 6e44a05480abec6297b77730676bcb5fd5088f6f | [
"MIT"
] | null | null | null | import collections.abc
from typing import Any, ByteString, ItemsView, Iterable, Iterator, KeysView, Mapping, Sequence, Text, ValuesView
__all__ = [
'ObjectView',
]
class ObjectView(collections.abc.Sequence, collections.abc.Mapping):
def __init__(self, data: Any):
object.__setattr__(self, '_ov_backin... | 27.333333 | 112 | 0.645491 | 436 | 3,526 | 4.708716 | 0.174312 | 0.081831 | 0.139308 | 0.173892 | 0.364345 | 0.225037 | 0.176327 | 0.150999 | 0.11885 | 0.11885 | 0 | 0 | 0.248157 | 3,526 | 128 | 113 | 27.546875 | 0.774425 | 0 | 0 | 0.213483 | 0 | 0 | 0.031197 | 0.013613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.370787 | false | 0 | 0.022472 | 0.280899 | 0.741573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e96513d2ce02fdabfd663be7bb6110c2a93c03c4 | 188 | py | Python | MongoDB/Exercises/personal_finances/run.py | CaioCavalcanti/big-data-course | 287cada875ef80333889acedb01af0ecb6fb956b | [
"MIT"
] | 15 | 2019-10-03T19:46:56.000Z | 2019-10-16T01:35:45.000Z | MongoDB/Exercises/personal_finances/run.py | CaioCavalcanti/big-data-course | 287cada875ef80333889acedb01af0ecb6fb956b | [
"MIT"
] | null | null | null | MongoDB/Exercises/personal_finances/run.py | CaioCavalcanti/big-data-course | 287cada875ef80333889acedb01af0ecb6fb956b | [
"MIT"
] | null | null | null | from eve import Eve
from personal_finances.auth import RolesAuth, add_token
if __name__ == '__main__':
app = Eve(auth=RolesAuth)
app.on_insert_accounts += add_token
app.run() | 23.5 | 55 | 0.734043 | 27 | 188 | 4.62963 | 0.62963 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175532 | 188 | 8 | 56 | 23.5 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e9873fd47a6c007cd519985bb1c6dacf999573f8 | 519 | py | Python | pinax/testimonials/templatetags/pinax_testimonials_tags.py | pinax/pinax-testimonials | aa3a1cb73011ae88eecc646e8328afabb82a5e27 | [
"MIT"
] | 9 | 2015-12-15T22:51:10.000Z | 2021-07-06T03:17:13.000Z | pinax/testimonials/templatetags/pinax_testimonials_tags.py | eldarion/marturion | aa3a1cb73011ae88eecc646e8328afabb82a5e27 | [
"MIT"
] | 15 | 2015-08-03T13:14:57.000Z | 2020-03-26T03:52:55.000Z | pinax/testimonials/templatetags/pinax_testimonials_tags.py | eldarion/marturion | aa3a1cb73011ae88eecc646e8328afabb82a5e27 | [
"MIT"
] | 6 | 2015-07-30T22:24:06.000Z | 2020-03-23T08:37:11.000Z | from django import template
from ..models import Testimonial
register = template.Library()
@register.simple_tag
def random_testimonials(number):
return Testimonial.objects.filter(active=True).order_by("?")[:number]
@register.simple_tag
def random_testimonial():
queryset = Testimonial.objects.filter(active... | 23.590909 | 78 | 0.766859 | 65 | 519 | 6 | 0.415385 | 0.107692 | 0.130769 | 0.153846 | 0.479487 | 0.346154 | 0.346154 | 0.241026 | 0 | 0 | 0 | 0.002165 | 0.109827 | 519 | 21 | 79 | 24.714286 | 0.841991 | 0 | 0 | 0.230769 | 0 | 0 | 0.015414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e9a2e96d396369c95dc2f1fdb6dc97c13a91d0fc | 2,291 | py | Python | src/bricks/audio_device.py | SandroWissmann/Bricks-Py | 640140f9fd4a947b175a090563113108cc047f89 | [
"MIT"
] | null | null | null | src/bricks/audio_device.py | SandroWissmann/Bricks-Py | 640140f9fd4a947b175a090563113108cc047f89 | [
"MIT"
] | null | null | null | src/bricks/audio_device.py | SandroWissmann/Bricks-Py | 640140f9fd4a947b175a090563113108cc047f89 | [
"MIT"
] | null | null | null | """
Module to play sounds in the game.
class AudioDevice
Audio device needs to be constructed to play sounds.
Use free standing functions to play sounds.
Only one audio device should be created.
Functions:
play_destroy_brick(audio_device: AudioDevice)
play_hit_brick(audio_device: AudioDevice)
... | 28.6375 | 65 | 0.762549 | 303 | 2,291 | 5.40264 | 0.181518 | 0.17471 | 0.215027 | 0.238241 | 0.56628 | 0.56628 | 0.393403 | 0.050092 | 0 | 0 | 0 | 0 | 0.143605 | 2,291 | 79 | 66 | 29 | 0.834353 | 0.36316 | 0 | 0 | 0 | 0 | 0.113798 | 0.032006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.032258 | 0 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9a38578e9cbf6241bb87ab327be1509fde834e1 | 349 | py | Python | opsbot/plugins/persistence/__init__.py | Degreeno/opsbot | 7050483e63f1ed88d10373cf2f208e42499347fe | [
"Apache-2.0"
] | null | null | null | opsbot/plugins/persistence/__init__.py | Degreeno/opsbot | 7050483e63f1ed88d10373cf2f208e42499347fe | [
"Apache-2.0"
] | 1 | 2020-07-28T11:38:56.000Z | 2020-07-29T14:32:50.000Z | opsbot/plugins/persistence/__init__.py | Degreeno/opsbot | 7050483e63f1ed88d10373cf2f208e42499347fe | [
"Apache-2.0"
] | 1 | 2021-12-23T12:00:37.000Z | 2021-12-23T12:00:37.000Z | from abc import abstractmethod
from typing import Dict
from .. import OpsbotPlugin
class PersistencePlugin(OpsbotPlugin):
@abstractmethod
def read_state(self) -> Dict:
pass
@abstractmethod
def persist_state(self, state):
pass
@classmethod
def _config_key(cls, key):
... | 17.45 | 38 | 0.667622 | 39 | 349 | 5.871795 | 0.564103 | 0.148472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243553 | 349 | 19 | 39 | 18.368421 | 0.867424 | 0 | 0 | 0.307692 | 0 | 0 | 0.051576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.153846 | 0.230769 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e9ab1bec3b2ba5088d7733cc33ff8985682bbe2f | 1,016 | py | Python | tests/test_passport.py | ukgovdatascience/scrubadub | 9d742628345f3e8867ccbb9e9e0181540850bb88 | [
"MIT"
] | 1 | 2018-11-19T15:37:46.000Z | 2018-11-19T15:37:46.000Z | tests/test_passport.py | ukgovdatascience/scrubadub | 9d742628345f3e8867ccbb9e9e0181540850bb88 | [
"MIT"
] | 1 | 2018-01-26T17:39:54.000Z | 2018-01-26T17:39:54.000Z | tests/test_passport.py | ukgovdatascience/scrubadub | 9d742628345f3e8867ccbb9e9e0181540850bb88 | [
"MIT"
] | 3 | 2019-08-29T11:53:42.000Z | 2021-04-10T19:51:26.000Z | import unittest
from base import BaseTestCase
class PassportTestCase(unittest.TestCase, BaseTestCase):
"""
Test cases for Credit Card number removal removal.
"""
def test_passport_long(self):
"""
Expect clash with NINO
BEFORE: My passport number is 5333800068GBR8812049F25092... | 26.736842 | 67 | 0.634843 | 105 | 1,016 | 6.009524 | 0.390476 | 0.095087 | 0.152139 | 0.171157 | 0.454834 | 0.454834 | 0.263074 | 0.263074 | 0.263074 | 0.263074 | 0 | 0.078804 | 0.275591 | 1,016 | 37 | 68 | 27.459459 | 0.778533 | 0.367126 | 0 | 0.153846 | 0 | 0 | 0.007619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e9aed929304a73252b3bc5000f7213974b7d68cb | 1,878 | py | Python | run.py | mikegribov/filedjson | ee9f8408edcf8a72b8ed415237789a602ee6b579 | [
"MIT"
] | null | null | null | run.py | mikegribov/filedjson | ee9f8408edcf8a72b8ed415237789a602ee6b579 | [
"MIT"
] | null | null | null | run.py | mikegribov/filedjson | ee9f8408edcf8a72b8ed415237789a602ee6b579 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from xjson import XJson
from xjson.xnodes import XList
import os
import io
import sys
import traceback
from xjson.plugins.plugin_json import PluginJson
from xjson.classes.file_list import FileList
name, ext="arr", "xml"
plugin = XJson(os.path.join("tests", "examples", "single_file_... | 40.826087 | 89 | 0.688498 | 260 | 1,878 | 4.846154 | 0.230769 | 0.07619 | 0.126984 | 0.178571 | 0.552381 | 0.552381 | 0.521429 | 0.521429 | 0.405556 | 0.299206 | 0 | 0.000593 | 0.102769 | 1,878 | 45 | 90 | 41.733333 | 0.747181 | 0.768371 | 0 | 0 | 0 | 0 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.727273 | 0 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e9aef05b0e8832b8e97fd86b83e7d2b02e16cb9d | 359 | py | Python | pils/settings.py | jjerphan/pils | a7b3f4bd8204f56b24c793c9f8a32df80d7d4e9c | [
"MIT"
] | 2 | 2019-01-10T16:25:34.000Z | 2021-01-05T02:19:12.000Z | pils/settings.py | jjerphan/pils | a7b3f4bd8204f56b24c793c9f8a32df80d7d4e9c | [
"MIT"
] | 1 | 2019-02-01T13:03:44.000Z | 2020-05-09T15:01:11.000Z | pils/settings.py | jjerphan/pils | a7b3f4bd8204f56b24c793c9f8a32df80d7d4e9c | [
"MIT"
] | null | null | null | import os
# Folders structures
HERE = os.path.abspath(os.path.join(os.path.realpath(__file__), os.pardir))
ROOT = os.path.join(HERE, os.pardir)
PROBLEMS_FOLDER = os.path.join(HERE, "problems")
BIN_FOLDER = os.path.join(HERE, "bin")
TEMP_FOLDER = os.path.join(HERE, "temp")
def clean_lines(lines):
return list(map(... | 27.615385 | 75 | 0.707521 | 58 | 359 | 4.241379 | 0.448276 | 0.170732 | 0.203252 | 0.227642 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111421 | 359 | 12 | 76 | 29.916667 | 0.77116 | 0.050139 | 0 | 0 | 0 | 0 | 0.050147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e9b67b06631c6f775495d448f1680b43a2b898d8 | 55 | py | Python | service_api/service_api/__init__.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | 1 | 2021-07-12T11:20:58.000Z | 2021-07-12T11:20:58.000Z | service_api/service_api/__init__.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | service_api/service_api/__init__.py | FrederichRiver/neutrino3 | c16c6ea824999c012252d0e281473a6ab13fd38e | [
"BSD-3-Clause"
] | null | null | null | __version__ = (1, 2, 30)
__all__ = ['event', 'event2']
| 18.333333 | 29 | 0.6 | 7 | 55 | 3.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0.163636 | 55 | 2 | 30 | 27.5 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9c5e2f1b89bd04ce6028673fbda948f54f2bbb3 | 102 | py | Python | samples/src/main/resources/datasets/python/76.py | sritchie/kotlingrad | 8165ed1cd77220a5347c58cded4c6f2bcf22ee30 | [
"Apache-2.0"
] | 11 | 2020-12-19T01:19:44.000Z | 2021-12-25T20:43:33.000Z | src/main/resources/datasets/python/76.py | breandan/katholic | 081c39f3acc73ff41f5865563debe78a36e1038f | [
"Apache-2.0"
] | null | null | null | src/main/resources/datasets/python/76.py | breandan/katholic | 081c39f3acc73ff41f5865563debe78a36e1038f | [
"Apache-2.0"
] | 2 | 2021-01-25T07:59:20.000Z | 2021-08-07T07:13:49.000Z | def test13(a, b):
"""Test for Docstring"""
a.b[1]
ziffern = "0123456789"
ziffern[a:b]
| 17 | 28 | 0.54902 | 15 | 102 | 3.733333 | 0.666667 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 0.264706 | 102 | 5 | 29 | 20.4 | 0.573333 | 0.176471 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9d8a537b569029b5ed477f28f6d20e94c49cc6f | 21 | py | Python | static/__init__.py | zhwei/ServerMonitor | d6615d00fe886a322a6f702e2acefe330e97f981 | [
"MIT"
] | 1 | 2020-02-07T12:59:19.000Z | 2020-02-07T12:59:19.000Z | views/__init__.py | zhwei/ServerMonitor | d6615d00fe886a322a6f702e2acefe330e97f981 | [
"MIT"
] | null | null | null | views/__init__.py | zhwei/ServerMonitor | d6615d00fe886a322a6f702e2acefe330e97f981 | [
"MIT"
] | 7 | 2015-07-28T09:27:58.000Z | 2018-07-03T00:35:37.000Z | __author__ = 'zhwei'
| 10.5 | 20 | 0.714286 | 2 | 21 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9dc380bcf39fda294adaf9444e58a948b62c4d7 | 156 | py | Python | website/settings/staging.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | null | null | null | website/settings/staging.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | 5 | 2020-04-26T09:03:33.000Z | 2022-02-02T13:00:39.000Z | website/settings/staging.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | null | null | null | import os
from website.settings.production import *
DEBUG = True if "DEBUG" in os.environ else False
ALLOWED_HOSTS = ["lkkpomia-stage.azurewebsites.net"]
| 22.285714 | 52 | 0.775641 | 22 | 156 | 5.454545 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 156 | 6 | 53 | 26 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.237179 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
759cb233bc9fd01786ea2067cba73e0c94496890 | 378 | py | Python | tests/test_tokens.py | sourovafrin/hiveengine | 208a350e4a55983e1ac2ae775f22ca3d581a0377 | [
"MIT"
] | 7 | 2020-04-12T20:06:32.000Z | 2021-09-16T14:56:06.000Z | tests/test_tokens.py | sourovafrin/hiveengine | 208a350e4a55983e1ac2ae775f22ca3d581a0377 | [
"MIT"
] | 2 | 2020-05-01T23:27:47.000Z | 2020-06-16T20:16:38.000Z | tests/test_tokens.py | sourovafrin/hiveengine | 208a350e4a55983e1ac2ae775f22ca3d581a0377 | [
"MIT"
] | 5 | 2020-05-01T23:24:28.000Z | 2022-02-27T18:42:08.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
from hiveengine.tokens import Tokens
class Testcases(unittest.TestCase):
def test_tokens(self):
tokens = Tokens()
self.assertTrue(tok... | 27 | 43 | 0.772487 | 47 | 378 | 5.787234 | 0.510638 | 0.147059 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003205 | 0.174603 | 378 | 13 | 44 | 29.076923 | 0.86859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.545455 | 0 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
75a4fcb1698fa32d3837e8969adceb094f5972b2 | 188 | py | Python | Programming-101-v3/week6/1-Who-Follows-You-Back/github_network_test.py | pepincho/Python101-and-Algo1-Courses | 7cf38d26d5be5ffc1a37477ae6375a99906df9e2 | [
"MIT"
] | 2 | 2016-10-11T14:09:05.000Z | 2017-01-20T19:30:34.000Z | Programming-101-v3/week6/1-Who-Follows-You-Back/github_network_test.py | pepincho/HackBulgaria | 7cf38d26d5be5ffc1a37477ae6375a99906df9e2 | [
"MIT"
] | null | null | null | Programming-101-v3/week6/1-Who-Follows-You-Back/github_network_test.py | pepincho/HackBulgaria | 7cf38d26d5be5ffc1a37477ae6375a99906df9e2 | [
"MIT"
] | null | null | null | import unittest
from github_network import GithubNetwork
class Test_GithubNetwork(unittest.TestCase):
def setUp(self):
pass
if __name__ == '__main__':
unittest.main()
| 14.461538 | 44 | 0.723404 | 21 | 188 | 6 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196809 | 188 | 12 | 45 | 15.666667 | 0.834437 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
75b5321e1190889eaff3527defbc04461cbb535c | 183 | py | Python | coursera/stanford-algo/min-cuts/large-data.py | akras14/cs-101 | 5a836482ae0cca21fea2d8b1ca4be43a6c5e9562 | [
"MIT"
] | null | null | null | coursera/stanford-algo/min-cuts/large-data.py | akras14/cs-101 | 5a836482ae0cca21fea2d8b1ca4be43a6c5e9562 | [
"MIT"
] | null | null | null | coursera/stanford-algo/min-cuts/large-data.py | akras14/cs-101 | 5a836482ae0cca21fea2d8b1ca4be43a6c5e9562 | [
"MIT"
] | null | null | null | import csv
from mincut import findMin
with open("data.txt") as f:
data = []
for line in csv.reader(f, dialect="excel-tab"):
data.append(line[:-1])
print findMin(data)
| 22.875 | 51 | 0.650273 | 29 | 183 | 4.103448 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.202186 | 183 | 7 | 52 | 26.142857 | 0.808219 | 0 | 0 | 0 | 0 | 0 | 0.092896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
75b88f1c632cd458008d1c5b3bce34030c53646e | 1,934 | py | Python | pava/implementation/natives/java/net/NetworkInterface.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | 4 | 2017-03-30T16:51:16.000Z | 2020-10-05T12:25:47.000Z | pava/implementation/natives/java/net/NetworkInterface.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | pava/implementation/natives/java/net/NetworkInterface.py | laffra/pava | 54d10cf7f8def2f96e254c0356623d08f221536f | [
"MIT"
] | null | null | null | def add_native_methods(clazz):
def getAll____(a0):
raise NotImplementedError()
def getByName0__java_lang_String__(a0, a1):
raise NotImplementedError()
def getByIndex0__int__(a0, a1):
raise NotImplementedError()
def getByInetAddress0__java_net_InetAddress__(a0, a1):
rai... | 41.148936 | 115 | 0.792658 | 216 | 1,934 | 6.032407 | 0.138889 | 0.128933 | 0.225633 | 0.234843 | 0.65848 | 0.270146 | 0.209517 | 0.191865 | 0.191865 | 0.191865 | 0 | 0.034525 | 0.146329 | 1,934 | 46 | 116 | 42.043478 | 0.754694 | 0 | 0 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
75c19a3b3f89a74186033a10cdee7cd1e3a21b71 | 98 | py | Python | udemy/python-video-workbook/my_progress/025.py | djrgit/coursework | 2a91da9b76cb1acbd12f3d8049f15d2e71f475a1 | [
"MIT"
] | null | null | null | udemy/python-video-workbook/my_progress/025.py | djrgit/coursework | 2a91da9b76cb1acbd12f3d8049f15d2e71f475a1 | [
"MIT"
] | null | null | null | udemy/python-video-workbook/my_progress/025.py | djrgit/coursework | 2a91da9b76cb1acbd12f3d8049f15d2e71f475a1 | [
"MIT"
] | 3 | 2018-08-13T23:14:22.000Z | 2019-01-11T22:50:07.000Z | # Exercise 25 - Print Alphabet
import string
for letter in string.ascii_lowercase:
print(letter) | 19.6 | 37 | 0.795918 | 14 | 98 | 5.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.142857 | 98 | 5 | 38 | 19.6 | 0.892857 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
75f244a3b0c155fc3bd3c549e8528826f7a35d1a | 1,591 | py | Python | examples/tmp.py | wallbreaker007/ada-detection | fbc27a876bb2a8dcc84cf0fe659ccbbc29d17211 | [
"Apache-2.0"
] | null | null | null | examples/tmp.py | wallbreaker007/ada-detection | fbc27a876bb2a8dcc84cf0fe659ccbbc29d17211 | [
"Apache-2.0"
] | null | null | null | examples/tmp.py | wallbreaker007/ada-detection | fbc27a876bb2a8dcc84cf0fe659ccbbc29d17211 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
@Time : 2020/6/8 18:59
@Author : qinhanluo
@File : tmp.py
@Software: PyCharm
@Description : TODO
'''
import numpy as np
from sklearn.manifold import TSNE
import matplotlib.pyplot as plt
from sklearn import datasets
from sklearn.decomposition import PCA
from sklearn.linear_model import L... | 26.966102 | 65 | 0.619736 | 201 | 1,591 | 4.810945 | 0.447761 | 0.056877 | 0.062048 | 0.028956 | 0.062048 | 0.062048 | 0.062048 | 0 | 0 | 0 | 0 | 0.018444 | 0.216216 | 1,591 | 59 | 66 | 26.966102 | 0.757017 | 0.522313 | 0 | 0 | 0 | 0 | 0.067321 | 0.036466 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0 | false | 0.052632 | 0.368421 | 0 | 0.368421 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
f95431f251945fde1a7338518a29e427bbdd42a4 | 321 | py | Python | problems/subtract_the_product_and_sum_of_digits_of_an_integer/solution.py | jimit105/leetcode-submissions | ff20c54acf8ad71ed0851c81a0463520fca6a69f | [
"MIT"
] | null | null | null | problems/subtract_the_product_and_sum_of_digits_of_an_integer/solution.py | jimit105/leetcode-submissions | ff20c54acf8ad71ed0851c81a0463520fca6a69f | [
"MIT"
] | null | null | null | problems/subtract_the_product_and_sum_of_digits_of_an_integer/solution.py | jimit105/leetcode-submissions | ff20c54acf8ad71ed0851c81a0463520fca6a69f | [
"MIT"
] | null | null | null | class Solution:
def subtractProductAndSum(self, n: int) -> int:
prod = 1
sum_ = 0
while n > 0:
last_digit = n % 10
prod *= last_digit
sum_ += last_digit
n //= 10
return prod - sum_
... | 21.4 | 51 | 0.383178 | 30 | 321 | 3.9 | 0.533333 | 0.230769 | 0.17094 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048276 | 0.548287 | 321 | 15 | 52 | 21.4 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f95951c464e1894fb4ead27de1055af7d585ce3b | 2,104 | py | Python | app/migrations/0002_food_foodpackages_foodraw.py | dev-mahmoudwahba/FitnessTrainer | 17d5e633d957a2bf4cff165f1d99943d0c54a9d7 | [
"MIT"
] | 1 | 2022-01-09T23:01:17.000Z | 2022-01-09T23:01:17.000Z | app/migrations/0002_food_foodpackages_foodraw.py | dev-mahmoudwahba/FitnessTrainer | 17d5e633d957a2bf4cff165f1d99943d0c54a9d7 | [
"MIT"
] | null | null | null | app/migrations/0002_food_foodpackages_foodraw.py | dev-mahmoudwahba/FitnessTrainer | 17d5e633d957a2bf4cff165f1d99943d0c54a9d7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-05 14:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='FoodPackages',
... | 38.962963 | 150 | 0.55751 | 204 | 2,104 | 5.563725 | 0.289216 | 0.042291 | 0.111013 | 0.132159 | 0.742731 | 0.742731 | 0.663436 | 0.663436 | 0.663436 | 0.663436 | 0 | 0.021204 | 0.305133 | 2,104 | 53 | 151 | 39.698113 | 0.75513 | 0.021388 | 0 | 0.659574 | 1 | 0 | 0.108896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f95bfaead43b7bb5f2ebf23a54ea14bef999ffa3 | 134 | py | Python | Week3/functions.py | JacobFrericks/python-text-adventure-class | 90e0af101a2f48aa7ddb0e8074faac37c9dc81a6 | [
"MIT"
] | null | null | null | Week3/functions.py | JacobFrericks/python-text-adventure-class | 90e0af101a2f48aa7ddb0e8074faac37c9dc81a6 | [
"MIT"
] | null | null | null | Week3/functions.py | JacobFrericks/python-text-adventure-class | 90e0af101a2f48aa7ddb0e8074faac37c9dc81a6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from functions.Mario import Mario
def main():
print(add('1', '1'))
if __name__ == '__main__':
main() | 14.888889 | 33 | 0.626866 | 19 | 134 | 4 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.186567 | 134 | 9 | 34 | 14.888889 | 0.669725 | 0.156716 | 0 | 0 | 0 | 0 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f9684e6154675a07a2609de58cd885c8135a8bdd | 147 | py | Python | taskmanager/app/__init__.py | richzli/Task-Manager | de1e0125ec3643afe2d49f9104755b3235c7669e | [
"MIT"
] | null | null | null | taskmanager/app/__init__.py | richzli/Task-Manager | de1e0125ec3643afe2d49f9104755b3235c7669e | [
"MIT"
] | 2 | 2019-09-13T22:51:00.000Z | 2019-12-05T04:57:26.000Z | taskmanager/app/__init__.py | richzli/Task-Manager | de1e0125ec3643afe2d49f9104755b3235c7669e | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__, instance_relative_config=True)
from taskmanager.app import views
app.config.from_object("config")
| 18.375 | 52 | 0.809524 | 21 | 147 | 5.333333 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108844 | 147 | 7 | 53 | 21 | 0.854962 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f989dcdc5e68d4f8dca24e9433f4c94798b2d5cf | 167 | py | Python | tests/views.py | prezi/django-debug-toolbar | a95251012afd8cde9c76ea42c8d810ffdd230a00 | [
"BSD-3-Clause"
] | 64 | 2015-01-09T02:35:21.000Z | 2021-06-18T19:47:41.000Z | tests/views.py | prezi/django-debug-toolbar | a95251012afd8cde9c76ea42c8d810ffdd230a00 | [
"BSD-3-Clause"
] | null | null | null | tests/views.py | prezi/django-debug-toolbar | a95251012afd8cde9c76ea42c8d810ffdd230a00 | [
"BSD-3-Clause"
] | 15 | 2015-01-22T03:20:32.000Z | 2020-09-23T12:40:44.000Z | from django.contrib.auth.models import User
from django.http import HttpResponse
def execute_sql(request):
list(User.objects.all())
return HttpResponse() | 23.857143 | 43 | 0.754491 | 22 | 167 | 5.681818 | 0.772727 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155689 | 167 | 7 | 44 | 23.857143 | 0.886525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f9d323ba18f76e930748f40cbfe34fe56faca981 | 89 | py | Python | login.py | meloncodezhang/testdemo | a36598b29e963203c47041435680953f59229990 | [
"MIT"
] | null | null | null | login.py | meloncodezhang/testdemo | a36598b29e963203c47041435680953f59229990 | [
"MIT"
] | null | null | null | login.py | meloncodezhang/testdemo | a36598b29e963203c47041435680953f59229990 | [
"MIT"
] | null | null | null | # 张三修定义了一个变量
num = 1
num2 = 20
num3 = 30
# 经理定义了一个变量
args = [1,2,3,4]
num4 = (1,2,3,4)
| 8.9 | 16 | 0.573034 | 18 | 89 | 2.833333 | 0.722222 | 0.078431 | 0.117647 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0.235955 | 89 | 9 | 17 | 9.888889 | 0.514706 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f9d7ff1adccdc6d26f386f04b0f33d4531e98a70 | 47 | py | Python | pytype/__version__.py | josalmi/pytype | e93d60c22abde3cb19956917109e1ffe5fe1388a | [
"Apache-2.0"
] | null | null | null | pytype/__version__.py | josalmi/pytype | e93d60c22abde3cb19956917109e1ffe5fe1388a | [
"Apache-2.0"
] | null | null | null | pytype/__version__.py | josalmi/pytype | e93d60c22abde3cb19956917109e1ffe5fe1388a | [
"Apache-2.0"
] | null | null | null | # pylint: skip-file
__version__ = '2020.09.29'
| 15.666667 | 26 | 0.702128 | 7 | 47 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 0.12766 | 47 | 2 | 27 | 23.5 | 0.512195 | 0.361702 | 0 | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ddbb467cd68f1c7f6e51e15cc1a6e78c33f45eb4 | 247 | py | Python | app/errors/__init__.py | SilverMaple/MoodBit | e43756c7a3c5a2cfd1b17f8225958bd164fa2044 | [
"MIT"
] | null | null | null | app/errors/__init__.py | SilverMaple/MoodBit | e43756c7a3c5a2cfd1b17f8225958bd164fa2044 | [
"MIT"
] | null | null | null | app/errors/__init__.py | SilverMaple/MoodBit | e43756c7a3c5a2cfd1b17f8225958bd164fa2044 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2018/3/27 13:41:50
# @Author : SilverMaple
# @Site : https://github.com/SilverMaple
# @File : __init__.py
from flask import Blueprint
bp = Blueprint('errors', __name__)
from app.errors import handlers | 22.454545 | 43 | 0.659919 | 33 | 247 | 4.69697 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069652 | 0.186235 | 247 | 11 | 44 | 22.454545 | 0.701493 | 0.562753 | 0 | 0 | 0 | 0 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 3 |
ddcdb3f178f97c0f0c0ca81b592d9e31a7e7e63e | 249 | py | Python | governance/snapshot-vote-analysis/2021-11-18 voting centralization analysis/plan.py | SetProtocol/index-coop-analytics | c80c7ffe44034dbba9f64dfbcd0c5b6aba930e13 | [
"MIT"
] | 12 | 2021-04-12T23:19:55.000Z | 2021-09-06T21:56:26.000Z | governance/snapshot-vote-analysis/2021-11-18 voting centralization analysis/plan.py | joseph-knecht/index-coop-analytics | 448635e3b60e5f124295f4415915215b363e2e34 | [
"MIT"
] | 70 | 2021-04-05T19:48:22.000Z | 2021-09-21T14:00:06.000Z | governance/snapshot-vote-analysis/2021-11-18 voting centralization analysis/plan.py | joseph-knecht/index-coop-analytics | 448635e3b60e5f124295f4415915215b363e2e34 | [
"MIT"
] | 15 | 2021-04-27T04:15:14.000Z | 2021-09-08T15:21:00.000Z | # 1. query GraphQL for all proposal IDs
# 2. Iterate through proposals and query GraphQL for votes for each proposal
# 3. Check vote results for "0" vote responses - if it's a 0 it's because the proposal closed too recently and we should discard it
| 62.25 | 131 | 0.767068 | 45 | 249 | 4.244444 | 0.711111 | 0.125654 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024752 | 0.188755 | 249 | 3 | 132 | 83 | 0.920792 | 0.971888 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ddce9745df2e28bc93f5bc81590b39138376aa78 | 2,439 | py | Python | test.py | puffy310/PySvelte | c1282a3e02350cae983ea12aca0dbe3070376915 | [
"Apache-2.0"
] | null | null | null | test.py | puffy310/PySvelte | c1282a3e02350cae983ea12aca0dbe3070376915 | [
"Apache-2.0"
] | 1 | 2022-03-10T13:34:29.000Z | 2022-03-10T13:34:29.000Z | test.py | puffy310/PySvelte | c1282a3e02350cae983ea12aca0dbe3070376915 | [
"Apache-2.0"
] | 2 | 2022-03-01T22:55:50.000Z | 2022-03-19T02:32:35.000Z | import einops
from unseal import hooks
from unseal.transformers_util import load_from_pretrained # TODO fix that it doesnt work to directly call unseal.transformes_util
import pysvelte
model, tokenizer, config = load_from_pretrained('gpt2')
text = "Mr and Mrs Dursley, of number four, Privet Drive, were proud to sa... | 90.333333 | 1,472 | 0.781468 | 413 | 2,439 | 4.554479 | 0.527845 | 0.041467 | 0.019139 | 0.012759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004317 | 0.145141 | 2,439 | 27 | 1,473 | 90.333333 | 0.897842 | 0.077491 | 0 | 0 | 0 | 0.066667 | 0.678396 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ddcff8c9fb0dee86bf2174c3d171e6eb5ee75b2d | 341 | py | Python | tlib/__init__.py | txu2008/TXLIB | 402f3730e8710803675736e0f2e25719cd646409 | [
"MIT"
] | 1 | 2019-08-08T05:06:28.000Z | 2019-08-08T05:06:28.000Z | tlib/__init__.py | txu2008/TXLIB | 402f3730e8710803675736e0f2e25719cd646409 | [
"MIT"
] | 1 | 2021-06-02T00:17:19.000Z | 2021-06-02T00:17:19.000Z | tlib/__init__.py | txu2008/TXLIB | 402f3730e8710803675736e0f2e25719cd646409 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/11/20 13:34
# @Author : Tao.Xu
# @Email : tao.xu2008@outlook.com
"""
Some own/observed great lib/ideas,common useful python libs.
"""
import sys
from tlib import version
if sys.version_info < (2, 6):
raise ImportError('tlib needs to be run on py... | 22.733333 | 70 | 0.659824 | 56 | 341 | 4 | 0.839286 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075812 | 0.187683 | 341 | 15 | 70 | 22.733333 | 0.732852 | 0.539589 | 0 | 0 | 0 | 0 | 0.308219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ddd55e70360ee34733575321b5502d704fdf32c9 | 112,886 | py | Python | pysnmp-with-texts/CERENT-GLOBAL-REGISTRY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CERENT-GLOBAL-REGISTRY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CERENT-GLOBAL-REGISTRY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CERENT-GLOBAL-REGISTRY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CERENT-GLOBAL-REGISTRY
# Produced by pysmi-0.3.4 at Wed May 1 11:48:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 87.849027 | 9,616 | 0.799267 | 12,617 | 112,886 | 7.14314 | 0.109059 | 0.11251 | 0.196893 | 0.018685 | 0.344422 | 0.150669 | 0.144366 | 0.141903 | 0.139506 | 0.13823 | 0 | 0.110644 | 0.083757 | 112,886 | 1,284 | 9,617 | 87.917445 | 0.76071 | 0.002994 | 0 | 0 | 0 | 0.010188 | 0.121878 | 0.004398 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.100313 | 0.004702 | 0 | 0.004702 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
dde33c5bc097decb403fbf33e834a98c20a71b9d | 5,104 | py | Python | mknshoes/mknshoes/settings.py | AMuratTuran/mkn | 557086426773ced10d82c969304bd349414a601e | [
"BSD-3-Clause"
] | null | null | null | mknshoes/mknshoes/settings.py | AMuratTuran/mkn | 557086426773ced10d82c969304bd349414a601e | [
"BSD-3-Clause"
] | null | null | null | mknshoes/mknshoes/settings.py | AMuratTuran/mkn | 557086426773ced10d82c969304bd349414a601e | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for mknshoes project.
Generated by 'django-admin startproject' using Django 1.11.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | 28.836158 | 91 | 0.662813 | 529 | 5,104 | 6.253308 | 0.387524 | 0.074667 | 0.041112 | 0.052902 | 0.160218 | 0.129988 | 0.08283 | 0.08283 | 0.037183 | 0 | 0 | 0.011133 | 0.208072 | 5,104 | 176 | 92 | 29 | 0.807274 | 0.195337 | 0 | 0.034188 | 1 | 0.008547 | 0.502693 | 0.407199 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.042735 | 0 | 0.042735 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
dde3417a548be93694c558c429646ba35ee4cbfb | 39 | py | Python | display/display/handlers/calendar/__init__.py | owlsn/h_crawl | c0431ee6484e61d9339553c3350962ea517749d6 | [
"MIT"
] | null | null | null | display/display/handlers/calendar/__init__.py | owlsn/h_crawl | c0431ee6484e61d9339553c3350962ea517749d6 | [
"MIT"
] | 8 | 2021-03-18T20:33:29.000Z | 2022-03-11T23:21:04.000Z | display/display/handlers/calendar/__init__.py | owlsn/h_crawl | c0431ee6484e61d9339553c3350962ea517749d6 | [
"MIT"
] | null | null | null | # coding = utf-8
__all__ = ['calendar'] | 19.5 | 22 | 0.641026 | 5 | 39 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.153846 | 39 | 2 | 22 | 19.5 | 0.606061 | 0.358974 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ddf5271c42b203fab88f7e8c0445e1515113a25b | 595 | py | Python | social_team_builder/accounts/mixins.py | OzRayan/Social_Team_Builder | a4faeb0b7a88faf2898ace4ca61f75e7721d8527 | [
"MIT"
] | null | null | null | social_team_builder/accounts/mixins.py | OzRayan/Social_Team_Builder | a4faeb0b7a88faf2898ace4ca61f75e7721d8527 | [
"MIT"
] | 8 | 2021-03-18T21:02:42.000Z | 2021-09-22T17:53:18.000Z | social_team_builder/projects/mixin.py | OzRayan/Social_Team_Builder | a4faeb0b7a88faf2898ace4ca61f75e7721d8527 | [
"MIT"
] | null | null | null | # NOTE: # noinspection - prefixed comments are for pycharm editor only
# for ignoring PEP 8 style highlights
class PageTitleMixin:
"""Page title mixin class
- for class based views
:argument: -page_title
:methods: - get_page_title()
- get_context_data()
"""
page_title = ''
d... | 27.045455 | 70 | 0.658824 | 69 | 595 | 5.449275 | 0.463768 | 0.191489 | 0.095745 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.25042 | 595 | 21 | 71 | 28.333333 | 0.840807 | 0.453782 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fb09002a36a89825f03c67cec601abf91be34f70 | 92 | py | Python | lib/emailsmtp/urls.py | hdknr/emailqueue | 05e108562f4fb612440f769973b9a3d02c11afcd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | lib/emailsmtp/urls.py | hdknr/emailqueue | 05e108562f4fb612440f769973b9a3d02c11afcd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | lib/emailsmtp/urls.py | hdknr/emailqueue | 05e108562f4fb612440f769973b9a3d02c11afcd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from django.conf.urls import patterns, url
import views
urlpatterns = patterns(
'',
)
| 11.5 | 42 | 0.706522 | 11 | 92 | 5.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 92 | 7 | 43 | 13.142857 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fb1611f57b2c15a47885c4e5562b9bd057cedb02 | 8,394 | py | Python | nova/objects/bandwidth_usage.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/objects/bandwidth_usage.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/objects/bandwidth_usage.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/L... | 13.095164 | 88 | 0.615797 | 1,291 | 8,394 | 3.869868 | 0.109992 | 0.18735 | 0.05004 | 0.042034 | 0.786229 | 0.71257 | 0.6253 | 0.595076 | 0.564852 | 0.520616 | 0 | 0.002933 | 0.106505 | 8,394 | 640 | 89 | 13.115625 | 0.6632 | 0 | 0 | 0.915625 | 0 | 0 | 0.401596 | 0.025137 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.004688 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb3234e56ca12786b57aba482688826501a4b390 | 172 | py | Python | atividades/ex85_1.py | Fleen66/Python_exercises | fd05fdf1181da833a1a1bc9f4a476afc8f467977 | [
"MIT"
] | null | null | null | atividades/ex85_1.py | Fleen66/Python_exercises | fd05fdf1181da833a1a1bc9f4a476afc8f467977 | [
"MIT"
] | null | null | null | atividades/ex85_1.py | Fleen66/Python_exercises | fd05fdf1181da833a1a1bc9f4a476afc8f467977 | [
"MIT"
] | null | null | null | nun = [[], []]
val = 0
for c in range(0, 8):
val = int(input('Digite um numero: '))
if val % 2 == 0:
num[0].append(val)
else:
num[1].append(val) | 21.5 | 42 | 0.476744 | 28 | 172 | 2.928571 | 0.678571 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0.313953 | 172 | 8 | 43 | 21.5 | 0.635593 | 0 | 0 | 0 | 0 | 0 | 0.104046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb35706c247175d01dee3873ac8f180bbaf83439 | 8,195 | py | Python | cvrf/admin.py | cyberxml/django-cyberxml | 58722cd1ca5192851e894e60a063b6da84a14ed0 | [
"MIT"
] | null | null | null | cvrf/admin.py | cyberxml/django-cyberxml | 58722cd1ca5192851e894e60a063b6da84a14ed0 | [
"MIT"
] | null | null | null | cvrf/admin.py | cyberxml/django-cyberxml | 58722cd1ca5192851e894e60a063b6da84a14ed0 | [
"MIT"
] | null | null | null | from django.contrib import admin
from models import \
AcknowledgmentType_model, \
AcknowledgmentType11_model, \
AcknowledgmentsType_model, \
AcknowledgmentsType10_model, \
AggregateSeverityType_model, \
AliasType_model, \
BranchType_model, \
CVSSScoreSetsType_model, \
CWEType_model, ... | 35.171674 | 59 | 0.81806 | 806 | 8,195 | 8.032258 | 0.152605 | 0.176089 | 0.246525 | 0.387396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005685 | 0.098475 | 8,195 | 232 | 60 | 35.323276 | 0.870601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.008696 | 0 | 0.008696 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
34a8b37da7474f59b0fdc4d51d777e80f721389d | 246 | py | Python | Famcy/_elements_/input/input.py | nexuni/Famcy | 80f8f18fe1614ab3c203ca3466b9506b494470bf | [
"Apache-2.0"
] | null | null | null | Famcy/_elements_/input/input.py | nexuni/Famcy | 80f8f18fe1614ab3c203ca3466b9506b494470bf | [
"Apache-2.0"
] | 12 | 2022-02-05T04:56:44.000Z | 2022-03-30T09:59:26.000Z | Famcy/_elements_/input/input.py | nexuni/Famcy | 80f8f18fe1614ab3c203ca3466b9506b494470bf | [
"Apache-2.0"
] | null | null | null | import Famcy
import json
class input(Famcy.FamcyElement):
def __init__(self):
super(input, self).__init__()
def render_element(self):
html = "<input" + self.setAttrTag() + ">"
self.html = html
return html | 22.363636 | 49 | 0.613821 | 28 | 246 | 5.071429 | 0.535714 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264228 | 246 | 11 | 50 | 22.363636 | 0.78453 | 0 | 0 | 0 | 0 | 0 | 0.02834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
34b3f4f0eb2250ac16704efd0e2d910e15c5b42e | 117 | py | Python | simple_qrcode_generated.py | spitchi-k/AR_test | a25a47429fbf1487439cdca240684c94842c8856 | [
"MIT"
] | null | null | null | simple_qrcode_generated.py | spitchi-k/AR_test | a25a47429fbf1487439cdca240684c94842c8856 | [
"MIT"
] | null | null | null | simple_qrcode_generated.py | spitchi-k/AR_test | a25a47429fbf1487439cdca240684c94842c8856 | [
"MIT"
] | null | null | null | import qrcode
img = qrcode.make('https://keiichimorimoto.github.io/AR_test/')
img.save('img/simple_qrcode.png')
| 23.4 | 64 | 0.735043 | 17 | 117 | 4.941176 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094017 | 117 | 4 | 65 | 29.25 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0.557522 | 0.185841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
34cf5e5e7451778b7fed829936c11fe5eab72820 | 22 | py | Python | plyer/platforms/win/__init__.py | johnbolia/plyer | 6dc9055a781e30feabb60e1506bd0ac343d2a7d6 | [
"MIT"
] | 1 | 2020-07-10T12:50:47.000Z | 2020-07-10T12:50:47.000Z | plyer/platforms/win/__init__.py | johnbolia/plyer | 6dc9055a781e30feabb60e1506bd0ac343d2a7d6 | [
"MIT"
] | null | null | null | plyer/platforms/win/__init__.py | johnbolia/plyer | 6dc9055a781e30feabb60e1506bd0ac343d2a7d6 | [
"MIT"
] | null | null | null | activity = 'activity'
| 11 | 21 | 0.727273 | 2 | 22 | 8 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
34ef54fb3a695bb5abbdc1bd599b97481bac5503 | 390 | py | Python | src/schnetpack/md/utils/__init__.py | giadefa/schnetpack | 9dabc3b6e3b28deb2fb3743ea1857c46b055efbf | [
"MIT"
] | 450 | 2018-09-04T08:37:47.000Z | 2022-03-30T08:05:37.000Z | src/schnetpack/md/utils/__init__.py | giadefa/schnetpack | 9dabc3b6e3b28deb2fb3743ea1857c46b055efbf | [
"MIT"
] | 239 | 2018-09-11T21:09:08.000Z | 2022-03-18T09:25:11.000Z | src/schnetpack/md/utils/__init__.py | giadefa/schnetpack | 9dabc3b6e3b28deb2fb3743ea1857c46b055efbf | [
"MIT"
] | 166 | 2018-09-13T13:01:06.000Z | 2022-03-31T12:59:12.000Z | """
This module contains various utility functions and classes used in combination with :obj:`schnetpack.md`.
This includes e.g. unit conversion, loading of molecular dynamics data and the computation of spectra.
"""
from .basic_utils import *
from .md_units import *
from .hdf5_data import *
from .normal_mode_transform... | 35.454545 | 105 | 0.789744 | 55 | 390 | 5.490909 | 0.690909 | 0.165563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.138462 | 390 | 10 | 106 | 39 | 0.895833 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
34fc2841f9fcdafcd0ef57abda77a28eeb72be06 | 173 | py | Python | challenges/tree_insertion/test_tree_insertion.py | glasscharlie/data-structures-and-algorithms | 4546a0606334c6e3156b567d8cc82d39fb183c58 | [
"MIT"
] | null | null | null | challenges/tree_insertion/test_tree_insertion.py | glasscharlie/data-structures-and-algorithms | 4546a0606334c6e3156b567d8cc82d39fb183c58 | [
"MIT"
] | 4 | 2019-12-02T22:28:03.000Z | 2019-12-09T04:17:53.000Z | challenges/tree_insertion/test_tree_insertion.py | glasscharlie/data-structures-and-algorithms | 4546a0606334c6e3156b567d8cc82d39fb183c58 | [
"MIT"
] | null | null | null | from tree_insertion import Node, BinarySearchTree, tree_insertion
def test_node():
node = Node(3)
actual = node.value
expected = 3
assert actual == expected | 24.714286 | 65 | 0.710983 | 22 | 173 | 5.454545 | 0.590909 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.213873 | 173 | 7 | 66 | 24.714286 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
34fed06738560f5c182150c30f20c1ecde24ef80 | 103 | py | Python | redis-py_test/RedisHlper.py | Askr-ssy/Batch-test-service- | c314fb70bf1346c09ae994ce7e543b68741ee4c0 | [
"Apache-2.0"
] | null | null | null | redis-py_test/RedisHlper.py | Askr-ssy/Batch-test-service- | c314fb70bf1346c09ae994ce7e543b68741ee4c0 | [
"Apache-2.0"
] | null | null | null | redis-py_test/RedisHlper.py | Askr-ssy/Batch-test-service- | c314fb70bf1346c09ae994ce7e543b68741ee4c0 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
class RedisSubscriber(object):
def __init__(self,channel):
self.
| 20.6 | 31 | 0.621359 | 11 | 103 | 5.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.213592 | 103 | 4 | 32 | 25.75 | 0.728395 | 0.223301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b51cb3815a6b78cecbd4224e59e0dc0c392063a | 287 | py | Python | Func4.py | MiladDeveloper-Hub/Python-Course | dfae734fd6b6ccea1d173919532ae2ea379f6f88 | [
"Apache-2.0"
] | null | null | null | Func4.py | MiladDeveloper-Hub/Python-Course | dfae734fd6b6ccea1d173919532ae2ea379f6f88 | [
"Apache-2.0"
] | null | null | null | Func4.py | MiladDeveloper-Hub/Python-Course | dfae734fd6b6ccea1d173919532ae2ea379f6f88 | [
"Apache-2.0"
] | null | null | null | def power(number, power=2):
return number ** power
print(power(2, 3)) # 2 * 2 * 2 = 8
print(power(3)) # 3 * 2 = 9
print("------------------")
def showFullName(first, last):
return f"{first} {last}"
print(showFullName(last="Golchinpour", first="Milad"))
| 16.882353 | 55 | 0.536585 | 37 | 287 | 4.162162 | 0.405405 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.233449 | 287 | 16 | 56 | 17.9375 | 0.65 | 0.080139 | 0 | 0 | 0 | 0 | 0.195918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 3 |
9b77f512cfd239f210af71c1b0bdb967a0461411 | 1,997 | py | Python | src/airbnb_priceforecaster/features/__init__.py | andersbogsnes/airbnb_priceforecaster | f397c16a08fe7eba9977611f4af5352d234a4624 | [
"MIT"
] | null | null | null | src/airbnb_priceforecaster/features/__init__.py | andersbogsnes/airbnb_priceforecaster | f397c16a08fe7eba9977611f4af5352d234a4624 | [
"MIT"
] | null | null | null | src/airbnb_priceforecaster/features/__init__.py | andersbogsnes/airbnb_priceforecaster | f397c16a08fe7eba9977611f4af5352d234a4624 | [
"MIT"
] | null | null | null | from airbnb_priceforecaster.features.amenities import amenities
from airbnb_priceforecaster.features.bed_type import bed_type
from airbnb_priceforecaster.features.beds import beds
from airbnb_priceforecaster.features.cleaning_fee import cleaning_fee
from airbnb_priceforecaster.features.extra_people import extra_people
... | 51.205128 | 89 | 0.83325 | 241 | 1,997 | 6.506224 | 0.170124 | 0.108418 | 0.271046 | 0.357781 | 0.189413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092639 | 1,997 | 39 | 90 | 51.205128 | 0.865342 | 0.01352 | 0 | 0 | 0 | 0 | 0.113763 | 0.011173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.486486 | 0 | 0.486486 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9ba05f2cde5ab9bc9e093544e537ecaa34ef39e8 | 701 | py | Python | torch/ao/sparsity/__init__.py | chloeyutianyi/pytorch | 0751a41ab148b34db1f63e14d7c40781e16ef2f2 | [
"Intel"
] | 2 | 2021-03-17T12:00:33.000Z | 2021-03-17T12:18:29.000Z | torch/ao/sparsity/__init__.py | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | null | null | null | torch/ao/sparsity/__init__.py | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | null | null | null | # Variables
from ._mappings import get_dynamic_sparse_quantized_mapping
from ._mappings import get_static_sparse_quantized_mapping
# Sparsifier
from .sparsifier.base_sparsifier import BaseSparsifier
from .sparsifier.weight_norm_sparsifier import WeightNormSparsifier
# Scheduler
from .scheduler.base_scheduler import B... | 29.208333 | 73 | 0.863053 | 72 | 701 | 8.180556 | 0.402778 | 0.071307 | 0.112054 | 0.071307 | 0.14601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088445 | 701 | 23 | 74 | 30.478261 | 0.921753 | 0.131241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9bbfd17d9ada7890bcf5386a81e74c55f11c9239 | 2,622 | py | Python | exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py | burk/python-sdk | 83fb81d09e0d6a407c8907a75bebb895decc7edc | [
"MIT"
] | null | null | null | exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py | burk/python-sdk | 83fb81d09e0d6a407c8907a75bebb895decc7edc | [
"MIT"
] | null | null | null | exabel_data_sdk/stubs/exabel/api/math/aggregation_pb2.py | burk/python-sdk | 83fb81d09e0d6a407c8907a75bebb895decc7edc | [
"MIT"
] | null | null | null | """Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
_sym_db... | 124.857143 | 1,311 | 0.832571 | 359 | 2,622 | 5.810585 | 0.278552 | 0.077661 | 0.136625 | 0.116491 | 0.448226 | 0.405082 | 0.370566 | 0.370566 | 0.370566 | 0.370566 | 0 | 0.047295 | 0.048436 | 2,622 | 21 | 1,312 | 124.857143 | 0.788778 | 0.011823 | 0 | 0 | 1 | 0.1 | 0.223511 | 0.191029 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32d963c76a2f6ab62db037d2496975d9d638955c | 236 | py | Python | advesarial_text/graphs.py | slowy07/tensorflow-model-research | 48ba4ba6240452eb3e3350fe7099f2b045acc530 | [
"MIT"
] | null | null | null | advesarial_text/graphs.py | slowy07/tensorflow-model-research | 48ba4ba6240452eb3e3350fe7099f2b045acc530 | [
"MIT"
] | null | null | null | advesarial_text/graphs.py | slowy07/tensorflow-model-research | 48ba4ba6240452eb3e3350fe7099f2b045acc530 | [
"MIT"
] | null | null | null | from __future__ import absoulte_import
from __future__ import division
from __future__ import print_function
import csv
import os
import tensorflow as tf
import advesarial_losses as adv_lib
flags = tf.app.flags
FLAGS = flags.FLAGS
| 15.733333 | 38 | 0.830508 | 35 | 236 | 5.142857 | 0.514286 | 0.166667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148305 | 236 | 14 | 39 | 16.857143 | 0.895522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.777778 | 0 | 0.777778 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
32e3bd3681b7ded48f678ddbbd1c01177870467e | 273 | py | Python | hiss/utils/__init__.py | KennethanCeyer/hiss | 5aa428333a1a1b10ec4a766029de065a97a514b1 | [
"Apache-2.0"
] | 2 | 2018-01-08T05:56:42.000Z | 2018-04-02T13:53:23.000Z | hiss/utils/__init__.py | KennethanCeyer/hiss | 5aa428333a1a1b10ec4a766029de065a97a514b1 | [
"Apache-2.0"
] | 5 | 2020-05-10T12:03:25.000Z | 2020-06-17T04:17:09.000Z | hiss/utils/__init__.py | KennethanCeyer/hiss | 5aa428333a1a1b10ec4a766029de065a97a514b1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# portable serial port access with python
# this is a wrapper module for different platform implementations
#
# (C) 2017-2017 Kenneth Ceyer <kennethan@nhpcw.com>
# this is distributed under
# Apache 2.0 <https://www.apache.org/licenses/LICENSE-2.0>
| 30.333333 | 65 | 0.754579 | 42 | 273 | 4.904762 | 0.833333 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.131868 | 273 | 8 | 66 | 34.125 | 0.818565 | 0.941392 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32f0ac15b515470cbc51e2d15b0c98b2fa6423b2 | 1,637 | py | Python | src/modules/service/python/service.py | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | src/modules/service/python/service.py | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | src/modules/service/python/service.py | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | """@package service
@file service.py
@author Ivan Murashko <ivan.murashko@gmail.com>
Copyright (c) 2007-2011 Kalinka Team
This file is part of Kalinka mediaserver.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
... | 34.829787 | 74 | 0.728772 | 233 | 1,637 | 5.085837 | 0.55794 | 0.074262 | 0.021941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.215638 | 1,637 | 46 | 75 | 35.586957 | 0.910436 | 0.818571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fd1069e5f039f3ba9f80c8e3b1ad3f71ceb89dff | 97 | py | Python | cerver/network.py | ermiry-com/py-cerver | b2db27a7e41a2dd2511882290a2d0de4b7ee82db | [
"MIT"
] | 5 | 2021-03-25T20:33:55.000Z | 2021-12-21T05:03:23.000Z | cerver/network.py | ermiry-com/py-cerver | b2db27a7e41a2dd2511882290a2d0de4b7ee82db | [
"MIT"
] | 5 | 2021-03-31T05:54:07.000Z | 2021-07-01T01:21:39.000Z | cerver/network.py | ermiry-com/py-cerver | b2db27a7e41a2dd2511882290a2d0de4b7ee82db | [
"MIT"
] | 7 | 2021-03-25T20:33:58.000Z | 2021-12-29T05:28:56.000Z | from ctypes import c_int
Protocol = c_int
PROTOCOL_NONE = 0
PROTOCOL_TCP = 6
PROTOCOL_UDP = 17
| 12.125 | 24 | 0.773196 | 17 | 97 | 4.117647 | 0.705882 | 0.114286 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.185567 | 97 | 7 | 25 | 13.857143 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd144c484bc4aae5f0e50b2aefed639336b07c89 | 1,148 | py | Python | SenseHat/rpy_display.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | SenseHat/rpy_display.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | SenseHat/rpy_display.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | from sense_hat import SenseHat
from time import sleep
sense = SenseHat()
sense.clear()
w = (255,255,255)
b = (0,0,0)
# Create screen
screen =[[b,b,b,b,b,b,b,b],
[b,b,b,b,b,b,b,b],
[b,b,b,b,b,b,b,b],
[b,b,b,b,b,b,b,b],
[b,b,b,b,b,b,b,b],
[b,b,b,b,b,b,b,b],
[b,b,b,b,b,b,b... | 21.259259 | 52 | 0.522648 | 221 | 1,148 | 2.656109 | 0.262443 | 0.214651 | 0.316865 | 0.415673 | 0.180579 | 0.180579 | 0.109029 | 0.109029 | 0.109029 | 0.109029 | 0 | 0.05604 | 0.300523 | 1,148 | 53 | 53 | 21.660377 | 0.674969 | 0.152439 | 0 | 0.157895 | 0 | 0 | 0.029076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.105263 | 0.026316 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd2b70c92de5b297a5e9ce388f635e6da52b67c6 | 1,078 | py | Python | vial/utils.py | martastain/vial | 421373e5821ff45f1e1c7313e2be28641f309955 | [
"MIT"
] | null | null | null | vial/utils.py | martastain/vial | 421373e5821ff45f1e1c7313e2be28641f309955 | [
"MIT"
] | null | null | null | vial/utils.py | martastain/vial | 421373e5821ff45f1e1c7313e2be28641f309955 | [
"MIT"
] | null | null | null | from http import HTTPStatus
def status_phrase(status):
return HTTPStatus(status).phrase
def status_description(status):
return HTTPStatus(status).description
def format_status(status):
return f"{status} {status_phrase(status)}"
class CaseInsensitiveDict(dict):
"""Basic case insensitive dict wit... | 23.955556 | 64 | 0.638219 | 139 | 1,078 | 4.690647 | 0.302158 | 0.053681 | 0.06135 | 0.092025 | 0.070552 | 0.070552 | 0.070552 | 0 | 0 | 0 | 0 | 0 | 0.237477 | 1,078 | 44 | 65 | 24.5 | 0.793187 | 0.04731 | 0 | 0.074074 | 0 | 0 | 0.031342 | 0.022527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.037037 | 0.185185 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fd629f7f3193a608c9cc95f20443f433329a0cc2 | 1,350 | py | Python | Scientific Computing with Python Certification/polygon-area-calculator/shape_calculator.py | ankit27kh/freeCodeCamp | 0cddfedea3d908fabf831e5b359df47625095da0 | [
"MIT"
] | null | null | null | Scientific Computing with Python Certification/polygon-area-calculator/shape_calculator.py | ankit27kh/freeCodeCamp | 0cddfedea3d908fabf831e5b359df47625095da0 | [
"MIT"
] | null | null | null | Scientific Computing with Python Certification/polygon-area-calculator/shape_calculator.py | ankit27kh/freeCodeCamp | 0cddfedea3d908fabf831e5b359df47625095da0 | [
"MIT"
] | null | null | null | class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def set_width(self, n):
self.width = n
def set_height(self, n):
self.height = n
def get_area(self):
return self.height * self.width
def get_perimeter(self):
... | 22.881356 | 69 | 0.556296 | 178 | 1,350 | 4.022472 | 0.213483 | 0.150838 | 0.062849 | 0.046089 | 0.358939 | 0.166201 | 0.152235 | 0.152235 | 0.081006 | 0 | 0 | 0.010893 | 0.32 | 1,350 | 58 | 70 | 23.275862 | 0.769063 | 0 | 0 | 0.292683 | 0 | 0 | 0.075556 | 0.056296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.341463 | false | 0 | 0 | 0.146341 | 0.585366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b5d0da974906abd7041e01dd1250c7a2d8d2a97f | 219 | py | Python | recipe/dump_dir.py | conda-forge/cyflann-feedstock | 3a4289e2475558aa274ddd0137ddbd092ff6e247 | [
"BSD-3-Clause"
] | 1 | 2019-02-08T15:07:45.000Z | 2019-02-08T15:07:45.000Z | recipe/dump_dir.py | conda-forge/cyflann-feedstock | 3a4289e2475558aa274ddd0137ddbd092ff6e247 | [
"BSD-3-Clause"
] | 15 | 2017-07-29T19:17:27.000Z | 2021-11-08T15:26:44.000Z | recipe/dump_dir.py | conda-forge/cyflann-feedstock | 3a4289e2475558aa274ddd0137ddbd092ff6e247 | [
"BSD-3-Clause"
] | 4 | 2017-07-29T19:09:47.000Z | 2019-01-11T18:51:51.000Z | import json
import os
import cyflann.flann_info
pth = os.path.join(os.path.dirname(cyflann.flann_info.__file__), 'flann_config.json')
with open(pth, 'w') as f:
json.dump({'FLANN_DIR': os.environ['FLANN_DIR']}, f)
| 24.333333 | 85 | 0.726027 | 37 | 219 | 4.054054 | 0.540541 | 0.16 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 219 | 8 | 86 | 27.375 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b5e9b526435b74bf579825738f7d318ce22f3fff | 288 | py | Python | gem/templatetags/gem_tags.py | praekeltfoundation/Molo-Merge-CMS-Scratchpad | cad49b4fa57028e473af134851b95112a885b8b2 | [
"BSD-2-Clause"
] | null | null | null | gem/templatetags/gem_tags.py | praekeltfoundation/Molo-Merge-CMS-Scratchpad | cad49b4fa57028e473af134851b95112a885b8b2 | [
"BSD-2-Clause"
] | 3 | 2017-02-27T09:08:37.000Z | 2017-02-28T14:55:39.000Z | gem/templatetags/gem_tags.py | praekeltfoundation/Molo-Merge-CMS-Scratchpad | cad49b4fa57028e473af134851b95112a885b8b2 | [
"BSD-2-Clause"
] | 1 | 2017-02-27T07:49:23.000Z | 2017-02-27T07:49:23.000Z | from django.template import Library
from django.conf import settings
register = Library()
@register.simple_tag()
def get_site_static_prefix():
return settings.SITE_STATIC_PREFIX
@register.filter('fieldtype')
def fieldtype(field):
return field.field.widget.__class__.__name__
| 19.2 | 48 | 0.791667 | 37 | 288 | 5.783784 | 0.594595 | 0.093458 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118056 | 288 | 14 | 49 | 20.571429 | 0.84252 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bd3b06bf366a0f405dae7ab2baf9c133345e90e3 | 208 | py | Python | truechat/chat/urls.py | TrueChat/Backend | 7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac | [
"MIT"
] | 1 | 2019-12-19T19:04:33.000Z | 2019-12-19T19:04:33.000Z | truechat/chat/urls.py | TrueChat/Backend | 7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac | [
"MIT"
] | 6 | 2020-06-05T23:42:41.000Z | 2022-02-10T13:32:59.000Z | truechat/chat/urls.py | TrueChat/Backend | 7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from chat.views import ChatViewSet
chats_router = DefaultRouter()
chats_router.register(r'', ChatViewSet, basename='chats')
urlpatterns = chats_router.urls
| 23.111111 | 57 | 0.822115 | 25 | 208 | 6.68 | 0.64 | 0.197605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 208 | 8 | 58 | 26 | 0.888298 | 0 | 0 | 0 | 0 | 0 | 0.024038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bd4e802fd45e12a0e096cb70fd7123da7053d846 | 1,046 | py | Python | lib/take2/lib/helper.py | zacharyfrederick/deep_q_gaf | 6b712b17a6c89c1cba0d22e18fa336369c521d4e | [
"MIT"
] | null | null | null | lib/take2/lib/helper.py | zacharyfrederick/deep_q_gaf | 6b712b17a6c89c1cba0d22e18fa336369c521d4e | [
"MIT"
] | null | null | null | lib/take2/lib/helper.py | zacharyfrederick/deep_q_gaf | 6b712b17a6c89c1cba0d22e18fa336369c521d4e | [
"MIT"
] | null | null | null | import os
import pandas as pd
from . import unsafe_helper
class Helper:
def __init__(self):
self.unsafe = unsafe_helper.Unsafe()
def format_path_w_symbol(self, path, symbol):
return os.path.join(path, symbol)
def format_df_dates(self, df, column_name):
df[column_name] = pd.to_date... | 30.764706 | 61 | 0.670172 | 152 | 1,046 | 4.368421 | 0.243421 | 0.108434 | 0.084337 | 0.108434 | 0.442771 | 0.325301 | 0.216867 | 0.216867 | 0.216867 | 0.14759 | 0 | 0.001215 | 0.213193 | 1,046 | 34 | 62 | 30.764706 | 0.805589 | 0 | 0 | 0.12 | 0 | 0 | 0.022923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0 | 0.12 | 0.16 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bd4f1b93f228ba9ea3320dcc83d08d80acb1edec | 580 | py | Python | Python/Experiments/ITERATORS/Polyglot.Ninja/iterator_protocol.py | nitin-cherian/LifeLongLearning | 84084792058358365162c645742c70064a2d5fd6 | [
"MIT"
] | 4 | 2018-01-19T17:15:06.000Z | 2018-01-24T00:06:42.000Z | Python/Experiments/ITERATORS/Polyglot.Ninja/iterator_protocol.py | nitin-cherian/LifeLongLearning | 84084792058358365162c645742c70064a2d5fd6 | [
"MIT"
] | null | null | null | Python/Experiments/ITERATORS/Polyglot.Ninja/iterator_protocol.py | nitin-cherian/LifeLongLearning | 84084792058358365162c645742c70064a2d5fd6 | [
"MIT"
] | null | null | null | # iterator_protocol.py
print("""
The iterator protocol specifies two special methods to be implemented for any object to allow iteration
1. For any object to be iterated over, it must implement the __iter__ method which returns an iterator object.
Any object that returns an iterator is an iterable.
2. An iterator m... | 38.666667 | 115 | 0.801724 | 90 | 580 | 5.022222 | 0.566667 | 0.088496 | 0.053097 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006186 | 0.163793 | 580 | 14 | 116 | 41.428571 | 0.925773 | 0.034483 | 0 | 0 | 0 | 0.25 | 0.969534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1fd99a7553b813d9cf5c799454a06285e03b00b9 | 1,470 | py | Python | db/db_models/__init__.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | 1 | 2020-03-14T11:00:14.000Z | 2020-03-14T11:00:14.000Z | db/db_models/__init__.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | null | null | null | db/db_models/__init__.py | akarapun/elearning | fe116d5815925269819061ea183cbfdb773844cf | [
"MIT"
] | null | null | null | from .Badge import Badge as BadgeDBModel
from .BadgeCondition import BadgeCondition as BadgeConditionDBModel
from .BadgeType import BadgeType as BadgeTypeDBModel
from .Organization import Organization as OrganizationDBModel
from .OrganizationType import OrganizationType as OrganizationTypeDBModel
from .OrgPos import Or... | 56.538462 | 85 | 0.876871 | 156 | 1,470 | 8.262821 | 0.352564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105442 | 1,470 | 26 | 86 | 56.538462 | 0.980228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1fdc368975530bca5f7f3ae8a3d13922ebf99417 | 31,293 | py | Python | descriptastorus/descriptors/dists.py | sharmavaruns/descriptastorus | 7a3e457bc64e480e44f0ce624052da68d2a27bad | [
"BSD-3-Clause"
] | 118 | 2019-01-15T23:04:29.000Z | 2022-03-25T01:31:06.000Z | descriptastorus/descriptors/dists.py | sharmavaruns/descriptastorus | 7a3e457bc64e480e44f0ce624052da68d2a27bad | [
"BSD-3-Clause"
] | 14 | 2019-02-15T17:15:46.000Z | 2022-03-10T14:18:56.000Z | descriptastorus/descriptors/dists.py | sharmavaruns/descriptastorus | 7a3e457bc64e480e44f0ce624052da68d2a27bad | [
"BSD-3-Clause"
] | 40 | 2018-12-18T11:39:38.000Z | 2022-03-23T09:45:45.000Z | try:
from math import inf
except ImportError:
inf = float('Inf')
dists={
'VSA_EState1': ('betaprime', (0.12979362790686721, 2.0084510281921832, -1.7874327445880742e-34, 0.4022005514286884), 0.0, 0.0, 0.0, 0.0),
'Chi4n': ('mielke', (3.4334547302721328, 4.644325894559659, -0.1540765028544061, 3.772462610... | 149.727273 | 211 | 0.757006 | 3,335 | 31,293 | 7.052174 | 0.446177 | 0.010375 | 0.005357 | 0.005612 | 0.038054 | 0.036184 | 0.036184 | 0.032952 | 0.032952 | 0.032952 | 0 | 0.695107 | 0.085003 | 31,293 | 208 | 212 | 150.447115 | 0.126288 | 0 | 0 | 0 | 0 | 0 | 0.119164 | 0.006519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009662 | 0 | 0.009662 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9524bf3290b6d8f286fd06d32e6b070c02c90bcd | 365 | py | Python | dsigm/_exceptions.py | paradoxysm/dsigm | 42d6f5458fdb52f03c14e25b5cbcd31a2183434a | [
"BSD-3-Clause"
] | null | null | null | dsigm/_exceptions.py | paradoxysm/dsigm | 42d6f5458fdb52f03c14e25b5cbcd31a2183434a | [
"BSD-3-Clause"
] | 7 | 2020-03-05T21:35:02.000Z | 2020-03-31T02:52:26.000Z | dsigm/_exceptions.py | paradoxysm/dsigm | 42d6f5458fdb52f03c14e25b5cbcd31a2183434a | [
"BSD-3-Clause"
] | 1 | 2020-03-05T20:42:06.000Z | 2020-03-05T20:42:06.000Z | """Warnings"""
# Authors: Jeffrey Wang
# License: BSD 3 clause
class ConvergenceWarning(UserWarning):
"""
Custom warning to capture convergence issues.
"""
class InitializationWarning(UserWarning):
"""
Custom warning to capture initialization issues.
"""
class StabilizationWarning(UserWarning):
"""
Custom w... | 18.25 | 49 | 0.745205 | 35 | 365 | 7.771429 | 0.6 | 0.1875 | 0.264706 | 0.286765 | 0.363971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003205 | 0.145205 | 365 | 19 | 50 | 19.210526 | 0.86859 | 0.536986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.