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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
89776f7d4409f709af02771887ce60b668f6799b | 2,005 | py | Python | phr/dnireniec/migrations/0001_initial.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/dnireniec/migrations/0001_initial.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/dnireniec/migrations/0001_initial.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-27 14:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Servici... | 42.659574 | 114 | 0.587032 | 192 | 2,005 | 5.932292 | 0.359375 | 0.164179 | 0.158033 | 0.210711 | 0.665496 | 0.665496 | 0.665496 | 0.665496 | 0.665496 | 0.374012 | 0 | 0.029676 | 0.277307 | 2,005 | 46 | 115 | 43.586957 | 0.756384 | 0.033915 | 0 | 0.564103 | 1 | 0 | 0.185109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.051282 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8995391c370ad5ada6c4d456998567c41f073a31 | 299 | py | Python | Hereditariedade_e_Polimorfismo/17-Inheriting-Attributes.py | nnsdtr/OOP-Python | 3b739966c9b35c32a2bd934574f6421b1470eb23 | [
"MIT"
] | null | null | null | Hereditariedade_e_Polimorfismo/17-Inheriting-Attributes.py | nnsdtr/OOP-Python | 3b739966c9b35c32a2bd934574f6421b1470eb23 | [
"MIT"
] | null | null | null | Hereditariedade_e_Polimorfismo/17-Inheriting-Attributes.py | nnsdtr/OOP-Python | 3b739966c9b35c32a2bd934574f6421b1470eb23 | [
"MIT"
] | null | null | null |
class Date(object):
def get_date(self):
return '2019-08-04'
class Time(Date): # Herda método a partir da classe Date().
def get_time(self):
return '08:11:30'
data = Date()
print(data.get_date())
tempo = Time()
print(tempo.get_time())
print(tempo.get_date())
| 15.736842 | 69 | 0.615385 | 45 | 299 | 3.977778 | 0.488889 | 0.117318 | 0.156425 | 0.189944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061135 | 0.234114 | 299 | 18 | 70 | 16.611111 | 0.720524 | 0.130435 | 0 | 0 | 0 | 0 | 0.070313 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.181818 | 0.545455 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
899d4b9c09be462d1178b6c85328041855e02dc5 | 143 | py | Python | backend/api/apps/suite/apps.py | vivekthoppil/InsuranceSuite | 700392ee71f4afeefb4f2fb768402d4839b992e2 | [
"MIT"
] | 2 | 2021-05-20T06:11:48.000Z | 2022-02-06T16:09:54.000Z | backend/api/apps/suite/apps.py | vivekthoppil/InsuranceSuite | 700392ee71f4afeefb4f2fb768402d4839b992e2 | [
"MIT"
] | 8 | 2021-03-10T03:57:49.000Z | 2022-01-22T10:12:43.000Z | backend/api/apps/suite/apps.py | vivekthoppil/InsuranceSuite | 700392ee71f4afeefb4f2fb768402d4839b992e2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AuthenticationAppConfig(AppConfig):
name = 'api.apps.suite'
verbose_name = 'Insurance Suite'
| 20.428571 | 41 | 0.755245 | 16 | 143 | 6.6875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160839 | 143 | 6 | 42 | 23.833333 | 0.891667 | 0 | 0 | 0 | 0 | 0 | 0.202797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
89a19cd6531cfe9317dbf1c85d1069317a4fd2eb | 224 | py | Python | setup.py | utkarshgiri/kszBispectrum | 38703a0dc47cec0b8f0706bd70ab434090267b1f | [
"MIT"
] | null | null | null | setup.py | utkarshgiri/kszBispectrum | 38703a0dc47cec0b8f0706bd70ab434090267b1f | [
"MIT"
] | null | null | null | setup.py | utkarshgiri/kszBispectrum | 38703a0dc47cec0b8f0706bd70ab434090267b1f | [
"MIT"
] | null | null | null | from distutils.core import setup
from Cython.Build import cythonize
import numpy
setup(
name = 'mpi_cythonized_cic',
ext_modules=cythonize('cycic.pyx'),
include_dirs=[numpy.get_include()]
)
| 20.363636 | 43 | 0.678571 | 27 | 224 | 5.444444 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227679 | 224 | 10 | 44 | 22.4 | 0.849711 | 0 | 0 | 0 | 0 | 0 | 0.121076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
89a7f00434b8e7ba74d11427f85c7c6be960609a | 283 | py | Python | ex026.py | raquelEllem/exerciciosPython | 489c2360de84c69dbe9da7710660fb064cd605fa | [
"MIT"
] | null | null | null | ex026.py | raquelEllem/exerciciosPython | 489c2360de84c69dbe9da7710660fb064cd605fa | [
"MIT"
] | null | null | null | ex026.py | raquelEllem/exerciciosPython | 489c2360de84c69dbe9da7710660fb064cd605fa | [
"MIT"
] | null | null | null | frase = str(input('Digite uma frase: ')).lower().strip()
print('Quantidade de "a/A": {}'.format(frase.count('a')))
print('Posição em que "a/A" aparece a primera vez: {}'.format(frase.find('a') + 1))
print('Posição em que "a/A" aparece a última vez: {}'.format(frase.rfind('a') + 1))
| 56.6 | 83 | 0.639576 | 47 | 283 | 3.851064 | 0.489362 | 0.033149 | 0.154696 | 0.187845 | 0.298343 | 0.298343 | 0.298343 | 0.298343 | 0 | 0 | 0 | 0.007968 | 0.113074 | 283 | 4 | 84 | 70.75 | 0.713147 | 0 | 0 | 0 | 0 | 0 | 0.477032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
985b222f8823c349d191fef0ebf50ac49e79a1e1 | 310 | py | Python | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_pattern_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_pattern_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_pattern_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.non_positive_integer.schema_instance.nistschema_sv_iv_atomic_non_positive_integer_pattern_5_xsd.nistschema_sv_iv_atomic_non_positive_integer_pattern_5 import NistschemaSvIvAtomicNonPositiveIntegerPattern5
__all__ = [
"NistschemaSvIvAtomicNonPositiveIntegerPattern5",
]
| 51.666667 | 240 | 0.912903 | 34 | 310 | 7.588235 | 0.588235 | 0.104651 | 0.197674 | 0.27907 | 0.356589 | 0.356589 | 0.356589 | 0.356589 | 0.356589 | 0 | 0 | 0.013514 | 0.045161 | 310 | 5 | 241 | 62 | 0.858108 | 0 | 0 | 0 | 0 | 0 | 0.148387 | 0.148387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
985f702260bca4d637070085fa76ff0b0d198434 | 149 | py | Python | python/src/main/resources/HelloPython.py | filippovitale/polyglot-java | 6e7873cfc11915bfec7674f0045ef004edacb14a | [
"MIT"
] | 24 | 2015-11-01T15:31:34.000Z | 2022-02-21T02:02:57.000Z | python/src/main/resources/HelloPython.py | filippovitale/polyglot-java | 6e7873cfc11915bfec7674f0045ef004edacb14a | [
"MIT"
] | 6 | 2021-03-10T23:33:09.000Z | 2022-03-31T20:01:07.000Z | python/src/main/resources/HelloPython.py | filippovitale/polyglot-java | 6e7873cfc11915bfec7674f0045ef004edacb14a | [
"MIT"
] | 6 | 2015-02-20T09:16:19.000Z | 2021-04-01T21:35:52.000Z | # coding: utf-8
from polyglot import HelloPythonType
class HelloPython(HelloPythonType):
def hello(self, name):
print 'Python: Hello %s!' % name
| 21.285714 | 36 | 0.744966 | 19 | 149 | 5.842105 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.147651 | 149 | 6 | 37 | 24.833333 | 0.866142 | 0.087248 | 0 | 0 | 0 | 0 | 0.126866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98635eef0fa4c73e5c577da64f7052d1e40185ac | 557 | py | Python | dices.py | carlossdparaujo/probability-tests | 72106823987b011d8332dd82b114fa9c928fb814 | [
"MIT"
] | null | null | null | dices.py | carlossdparaujo/probability-tests | 72106823987b011d8332dd82b114fa9c928fb814 | [
"MIT"
] | null | null | null | dices.py | carlossdparaujo/probability-tests | 72106823987b011d8332dd82b114fa9c928fb814 | [
"MIT"
] | null | null | null | from random import randint
class Dice:
def __init__(self, number_of_sides):
self.number_of_sides = number_of_sides
def roll(self):
return randint(1, self.number_of_sides)
class DishonestDice:
def __init__(self, number_of_sides, dishonesty, dishonest_side):
self.number_of_sides = number_of_sides
self.disho... | 24.217391 | 65 | 0.782765 | 83 | 557 | 4.855422 | 0.253012 | 0.17866 | 0.290323 | 0.295285 | 0.503722 | 0.39206 | 0.148883 | 0 | 0 | 0 | 0 | 0.004184 | 0.141831 | 557 | 22 | 66 | 25.318182 | 0.838912 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.058824 | 0.588235 | 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 |
986b945f5c7e3aff1be9c3f3ff95aca4eb98cee1 | 524 | py | Python | prep/faster_rcnn/model/nms_wrapper.py | Detry322/mobile-faster-rcnn | a2425f1f1cc6524767bb35d0f9ac5b9cc8fcb5c5 | [
"MIT"
] | 5 | 2018-04-07T07:50:23.000Z | 2022-02-18T08:19:18.000Z | prep/faster_rcnn/model/nms_wrapper.py | Detry322/mobile-faster-rcnn | a2425f1f1cc6524767bb35d0f9ac5b9cc8fcb5c5 | [
"MIT"
] | 2 | 2018-09-05T15:41:15.000Z | 2019-08-16T08:34:34.000Z | prep/faster_rcnn/model/nms_wrapper.py | Detry322/mobile-faster-rcnn | a2425f1f1cc6524767bb35d0f9ac5b9cc8fcb5c5 | [
"MIT"
] | 1 | 2018-08-28T08:37:18.000Z | 2018-08-28T08:37:18.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
f... | 32.75 | 58 | 0.629771 | 65 | 524 | 4.723077 | 0.615385 | 0.09772 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.110687 | 524 | 15 | 59 | 34.933333 | 0.650215 | 0.448473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.714286 | 0.142857 | 1 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
987b9b505a5130453c8986b06f29ccb7f9158ef7 | 287 | py | Python | tests/conftest.py | 4Catalyzer/flask-annex | 0025c2b46c22d1b68eb843a4447e11554b559380 | [
"MIT"
] | 7 | 2015-09-11T20:22:15.000Z | 2021-02-08T14:43:38.000Z | tests/conftest.py | 4Catalyzer/flask-annex | 0025c2b46c22d1b68eb843a4447e11554b559380 | [
"MIT"
] | 21 | 2016-02-09T18:26:55.000Z | 2020-08-03T22:37:49.000Z | tests/conftest.py | 4Catalyzer/flask-annex | 0025c2b46c22d1b68eb843a4447e11554b559380 | [
"MIT"
] | 1 | 2021-02-08T14:43:42.000Z | 2021-02-08T14:43:42.000Z | import pytest
from flask import Flask
# -----------------------------------------------------------------------------
@pytest.fixture
def app():
app = Flask(__name__)
app.config["TESTING"] = True
return app
@pytest.fixture
def client(app):
return app.test_client()
| 15.944444 | 79 | 0.491289 | 28 | 287 | 4.857143 | 0.5 | 0.191176 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160279 | 287 | 17 | 80 | 16.882353 | 0.564315 | 0.268293 | 0 | 0.2 | 0 | 0 | 0.033654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
98b0b79f367620343efd9a1db1a35fd516427ea3 | 176 | py | Python | py/tools/assets.py | benjyz/NxtTools | 39e5d0c84993b59c4d26d145f969609ce784877c | [
"MIT"
] | 2 | 2019-06-23T08:02:25.000Z | 2020-09-02T18:20:38.000Z | py/tools/assets.py | benjyz/NxtTools | 39e5d0c84993b59c4d26d145f969609ce784877c | [
"MIT"
] | null | null | null | py/tools/assets.py | benjyz/NxtTools | 39e5d0c84993b59c4d26d145f969609ce784877c | [
"MIT"
] | 1 | 2020-09-02T18:20:40.000Z | 2020-09-02T18:20:40.000Z | """
show baseTarget for a number of blocks
"""
import sys
sys.path.append("../api")
from nxtapi import *
print req("getAccountAssets",account="NXT-4VNQ-RWZC-4WWQ-GVM8S")
| 13.538462 | 64 | 0.704545 | 25 | 176 | 4.96 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.136364 | 176 | 12 | 65 | 14.666667 | 0.796053 | 0 | 0 | 0 | 0 | 0 | 0.356589 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
98b31edc273e25e575fb375d06b7ec8ea1dae9b6 | 1,344 | py | Python | sources/t08/t08ej13.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | sources/t08/t08ej13.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | sources/t08/t08ej13.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | import functools
def debug(func=None, prefix=''):
'''
Decorador que permite llamada tanto sin argumentos como con ellos
'''
if func is None:
# Si la llamada se ha hecho sin método, es la llamada con atributos, de manera que devolvemos
# una llamada al decorador, con un valor ya prefijad... | 27.428571 | 101 | 0.646577 | 178 | 1,344 | 4.769663 | 0.511236 | 0.021201 | 0.030624 | 0.042403 | 0.058893 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0.25744 | 1,344 | 49 | 102 | 27.428571 | 0.848697 | 0.322917 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.225806 | false | 0.064516 | 0.032258 | 0 | 0.483871 | 0.032258 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
98b4d8970ad32796e9399c6cc87148442462a6de | 72 | py | Python | start.py | LedgerPrime/ledgerx | ddbcbe0029cc2d9b648a64cf278a17a3ee35299a | [
"MIT"
] | 21 | 2018-04-17T00:53:19.000Z | 2021-03-25T01:26:46.000Z | start.py | LedgerPrime/ledgerx | ddbcbe0029cc2d9b648a64cf278a17a3ee35299a | [
"MIT"
] | 5 | 2018-04-11T15:46:08.000Z | 2018-04-11T20:58:56.000Z | start.py | LedgerPrime/ledgerx | ddbcbe0029cc2d9b648a64cf278a17a3ee35299a | [
"MIT"
] | 6 | 2018-04-11T16:16:57.000Z | 2020-05-24T23:47:51.000Z | import param
p = param.param('quoting.status')
p.send({'status':True})
| 14.4 | 33 | 0.694444 | 11 | 72 | 4.545455 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 72 | 4 | 34 | 18 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.28169 | 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 |
7f3d7d15adaa4667cfd9b78c57caa03912cd63b3 | 2,897 | py | Python | tests/utils/fs.py | kirov/ephim | 6467bed88e7e8135af42b2fbb5368ccdb3eba969 | [
"MIT"
] | null | null | null | tests/utils/fs.py | kirov/ephim | 6467bed88e7e8135af42b2fbb5368ccdb3eba969 | [
"MIT"
] | null | null | null | tests/utils/fs.py | kirov/ephim | 6467bed88e7e8135af42b2fbb5368ccdb3eba969 | [
"MIT"
] | null | null | null | from io import BytesIO
import os
from pathlib import Path
import tempfile
import yaml
from ephim.utils import exiftool
class EmptyFile:
def populate(self):
return b''
class TextFile(EmptyFile):
def __init__(self, content: str):
self.content = content
def populate(self):
return s... | 35.765432 | 120 | 0.60787 | 394 | 2,897 | 4.401015 | 0.314721 | 0.221453 | 0.280277 | 0.318339 | 0.145329 | 0.126298 | 0.115917 | 0.115917 | 0.115917 | 0.115917 | 0 | 0.122646 | 0.248533 | 2,897 | 80 | 121 | 36.2125 | 0.673863 | 0.003452 | 0 | 0.064516 | 0 | 0.112903 | 0.265511 | 0.254073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177419 | false | 0 | 0.096774 | 0.048387 | 0.435484 | 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 |
7f41bae869c44f9d7160521f3b451167d650b06a | 1,125 | py | Python | pt/xhtml.py | dogada/PyT | a2543176be3c34e231365a974f7724cf0b6684aa | [
"BSD-2-Clause"
] | 6 | 2016-07-22T07:37:18.000Z | 2022-02-08T01:41:29.000Z | pt/xhtml.py | dogada/PyT | a2543176be3c34e231365a974f7724cf0b6684aa | [
"BSD-2-Clause"
] | null | null | null | pt/xhtml.py | dogada/PyT | a2543176be3c34e231365a974f7724cf0b6684aa | [
"BSD-2-Clause"
] | null | null | null | """
XHTML tags.
TODO:
- globals() instead exec?
"""
import pt
_non_empty_html_tags = '''
a abbr acronym address applet b bdo big blockquote body button
caption center cite code colgroup dd dfn div dl dt em fieldset font
form frame frameset h1 h2 h3 h4 h5 h6 head html i iframe ins kbd label
legend li menu no... | 29.605263 | 120 | 0.712 | 197 | 1,125 | 3.984772 | 0.690355 | 0.04586 | 0.066242 | 0.040764 | 0.109554 | 0.109554 | 0 | 0 | 0 | 0 | 0 | 0.011062 | 0.196444 | 1,125 | 37 | 121 | 30.405405 | 0.857301 | 0.24 | 0 | 0 | 0 | 0 | 0.612579 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7f5a6af41acf30c53e3364b54c7aace6fe70fc65 | 15,832 | py | Python | avmplus/build/buildbot/master/custom/buildbot_ext/status/client.py | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | avmplus/build/buildbot/master/custom/buildbot_ext/status/client.py | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | avmplus/build/buildbot/master/custom/buildbot_ext/status/client.py | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | # -*- test-case-name: buildbot.test.test_status -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from twisted.spread import pb
from twisted.python import components... | 44.47191 | 117 | 0.585965 | 1,504 | 15,832 | 6.142952 | 0.231383 | 0.029549 | 0.021647 | 0.019699 | 0.44691 | 0.437601 | 0.40394 | 0.372768 | 0.354367 | 0.354367 | 0 | 0.002087 | 0.334197 | 15,832 | 355 | 118 | 44.597183 | 0.874395 | 0.145275 | 0 | 0.480851 | 0 | 0 | 0.03557 | 0.002107 | 0 | 0 | 0 | 0.011268 | 0.004255 | 0 | null | null | 0.114894 | 0.051064 | null | null | 0.004255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7f672c1f4cb84e4c33bba6377819aa40fcd5097f | 123 | py | Python | text/_cascade/text/spacing/letter.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_cascade/text/spacing/letter.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_cascade/text/spacing/letter.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | class LetterSpacingKeyword:
Normal = "normal"
class LetterSpacing(
LetterSpacingKeyword,
Length,
):
pass
| 12.3 | 27 | 0.691057 | 9 | 123 | 9.444444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235772 | 123 | 9 | 28 | 13.666667 | 0.904255 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7f6d002c19d0c9858d75ac1b2f5fab51e5b04c99 | 142 | py | Python | purepython_flagser/__init__.py | NicolasNin/purepython_flagser | 0c8b66f11e8f8e119d8c4998bd6137332f1b955d | [
"MIT"
] | null | null | null | purepython_flagser/__init__.py | NicolasNin/purepython_flagser | 0c8b66f11e8f8e119d8c4998bd6137332f1b955d | [
"MIT"
] | null | null | null | purepython_flagser/__init__.py | NicolasNin/purepython_flagser | 0c8b66f11e8f8e119d8c4998bd6137332f1b955d | [
"MIT"
] | null | null | null | """Top-level package for purepython_flagser."""
__author__ = """Nicolas Ninin"""
__email__ = 'nicolas.ninin@gmail.com'
__version__ = '0.1.0'
| 23.666667 | 47 | 0.711268 | 18 | 142 | 4.888889 | 0.833333 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0.105634 | 142 | 5 | 48 | 28.4 | 0.669291 | 0.288732 | 0 | 0 | 0 | 0 | 0.431579 | 0.242105 | 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 |
7f75912ef25d766d06c68c856af2d9f50e159bf2 | 225 | py | Python | tools/proxy/test_imports.py | SRGSSR/jass | 154fc68a8e88a4323d7cdef03ff88ce9cbdc877f | [
"MIT"
] | null | null | null | tools/proxy/test_imports.py | SRGSSR/jass | 154fc68a8e88a4323d7cdef03ff88ce9cbdc877f | [
"MIT"
] | 3 | 2015-10-06T13:42:26.000Z | 2021-06-10T17:56:55.000Z | tools/proxy/test_imports.py | SRGSSR/jass | 154fc68a8e88a4323d7cdef03ff88ce9cbdc877f | [
"MIT"
] | 1 | 2015-10-06T09:48:58.000Z | 2015-10-06T09:48:58.000Z | import sys
try:
__import__('imp').find_module('requests')
sys.exit(0)
except ImportError:
print "Please install requests python module using the following command:"
print "sudo pip requests"
sys.exit(1)
| 20.454545 | 78 | 0.706667 | 30 | 225 | 5.133333 | 0.733333 | 0.142857 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.195556 | 225 | 10 | 79 | 22.5 | 0.839779 | 0 | 0 | 0 | 0 | 0 | 0.419643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.375 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7f7ac352c1795e2c552a5507eb4ce43d3fb0f883 | 205 | py | Python | comments/urls.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | 2 | 2020-12-10T06:13:36.000Z | 2021-01-15T09:32:41.000Z | comments/urls.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | 7 | 2021-03-10T21:21:55.000Z | 2021-09-22T19:20:03.000Z | comments/urls.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('new/', views.new_comment, name='new_comment'),# fix
path('delete/<int:id_>/', views.delete_comment, name='delete_comment'),
] | 29.285714 | 75 | 0.702439 | 28 | 205 | 4.964286 | 0.5 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131707 | 205 | 7 | 76 | 29.285714 | 0.780899 | 0.014634 | 0 | 0 | 0 | 0 | 0.228856 | 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 |
7f91017d9228722aeeac72b5c9ffc330c4c69bb8 | 6,345 | py | Python | src/command_modules/azure-cli-role/azure/cli/command_modules/role/_params.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-role/azure/cli/command_modules/role/_params.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-role/azure/cli/command_modules/role/_params.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 104.016393 | 369 | 0.760441 | 900 | 6,345 | 5.161111 | 0.258889 | 0.104198 | 0.179978 | 0.140151 | 0.484177 | 0.405167 | 0.281163 | 0.19268 | 0.109365 | 0.093003 | 0 | 0.012785 | 0.087786 | 6,345 | 60 | 370 | 105.75 | 0.789737 | 0.070134 | 0 | 0 | 0 | 0.020833 | 0.561344 | 0.055829 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7f9c5290c6789674b64240e49ea2060300bcac47 | 1,688 | py | Python | rllib/policies/policies.py | ScottJordan/python-rllib | b4f7625a670743a1a0614a8379d025b1254df46b | [
"MIT"
] | null | null | null | rllib/policies/policies.py | ScottJordan/python-rllib | b4f7625a670743a1a0614a8379d025b1254df46b | [
"MIT"
] | null | null | null | rllib/policies/policies.py | ScottJordan/python-rllib | b4f7625a670743a1a0614a8379d025b1254df46b | [
"MIT"
] | null | null | null | import numpy as np
from typing import Tuple, Union
import gym
class Policy(object):
def get_action(self, obs, stochastic:bool=True) -> Tuple[Union[int, float, np.ndarray, dict], float]:
raise NotImplementedError
def grad_logp(self, obs, action) -> Tuple[np.ndarray, float]:
raise NotImplemente... | 26.375 | 108 | 0.617299 | 202 | 1,688 | 5.039604 | 0.242574 | 0.088409 | 0.132613 | 0.031434 | 0.646365 | 0.646365 | 0.603143 | 0.603143 | 0.54224 | 0.54224 | 0 | 0.002469 | 0.280213 | 1,688 | 63 | 109 | 26.793651 | 0.835391 | 0.152251 | 0 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.419355 | false | 0.064516 | 0.096774 | 0.096774 | 0.709677 | 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 |
7fa6a332139237362a5b1e866aaaebf2b478dc49 | 525 | py | Python | mentorship/admin.py | shraiyya/Microsoft-Engage-2021 | 0c55a8b8f6d0246f25dbbd7e941fd3c52694ba2f | [
"MIT"
] | null | null | null | mentorship/admin.py | shraiyya/Microsoft-Engage-2021 | 0c55a8b8f6d0246f25dbbd7e941fd3c52694ba2f | [
"MIT"
] | null | null | null | mentorship/admin.py | shraiyya/Microsoft-Engage-2021 | 0c55a8b8f6d0246f25dbbd7e941fd3c52694ba2f | [
"MIT"
] | 1 | 2021-11-25T14:19:34.000Z | 2021-11-25T14:19:34.000Z | from django.contrib import admin
from .models import Mentor,Mentee,Appointment,MenteeExitDetails
# Register your models here.
class MentorAdmin(admin.ModelAdmin):
pass
admin.site.register(Mentor, MentorAdmin)
class MenteeAdmin(admin.ModelAdmin):
pass
admin.site.register(Mentee, MenteeAdmin)
class AppointmentA... | 27.631579 | 63 | 0.819048 | 56 | 525 | 7.678571 | 0.375 | 0.139535 | 0.176744 | 0.223256 | 0.334884 | 0.334884 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099048 | 525 | 18 | 64 | 29.166667 | 0.909091 | 0.049524 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.285714 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f68e1f52f43190b0ca7bb19582b3c1be61d61b07 | 14 | py | Python | server/Version.py | ivmfnal/ucondb | 447b131a157597c84cb1bccec4e871db3d5c9323 | [
"BSD-3-Clause"
] | 1 | 2022-03-18T19:01:29.000Z | 2022-03-18T19:01:29.000Z | webserver/Version.py | ivmfnal/metacat | 9eeea5f5e7867395c7203b8a7789607d3bdbd903 | [
"BSD-3-Clause"
] | null | null | null | webserver/Version.py | ivmfnal/metacat | 9eeea5f5e7867395c7203b8a7789607d3bdbd903 | [
"BSD-3-Clause"
] | null | null | null | Version="dev"
| 7 | 13 | 0.714286 | 2 | 14 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 14 | 1 | 14 | 14 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 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 |
f68e21e29eaecc0a0c2b1f1c3c8f1789b5667f6f | 241 | py | Python | pdip/integrator/pubsub/publisher/publisher.py | ahmetcagriakca/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | 2 | 2021-12-09T21:07:46.000Z | 2021-12-11T22:18:01.000Z | pdip/integrator/pubsub/publisher/publisher.py | PythonDataIntegrator/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | null | null | null | pdip/integrator/pubsub/publisher/publisher.py | PythonDataIntegrator/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | 3 | 2021-11-15T00:47:00.000Z | 2021-12-17T11:35:45.000Z | from ..base import ChannelQueue
from ..domain import TaskMessage
class Publisher:
def __init__(self, channel: ChannelQueue):
self.channel = channel
def publish(self, message:TaskMessage):
self.channel.put(message)
| 21.909091 | 46 | 0.713693 | 27 | 241 | 6.222222 | 0.555556 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19917 | 241 | 10 | 47 | 24.1 | 0.870466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
f69b1b5b843bf656bdb7ce46214a73165054bb07 | 71 | py | Python | dpaycligraphenebase/version.py | dpays/dpay-cli | dfa80898e1faea2cee92ebec6fe04873381bd40f | [
"MIT"
] | null | null | null | dpaycligraphenebase/version.py | dpays/dpay-cli | dfa80898e1faea2cee92ebec6fe04873381bd40f | [
"MIT"
] | null | null | null | dpaycligraphenebase/version.py | dpays/dpay-cli | dfa80898e1faea2cee92ebec6fe04873381bd40f | [
"MIT"
] | null | null | null | """THIS FILE IS GENERATED FROM dpaycli SETUP.PY."""
version = '0.02.0'
| 23.666667 | 51 | 0.676056 | 12 | 71 | 4 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.140845 | 71 | 2 | 52 | 35.5 | 0.721311 | 0.633803 | 0 | 0 | 1 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f6b042912489bf56601646852352bc21ca60df7d | 4,099 | py | Python | backend/api/migrations/0016_auto_20200127_1213.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 3 | 2020-03-25T03:06:20.000Z | 2021-01-20T23:36:03.000Z | backend/api/migrations/0016_auto_20200127_1213.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 740 | 2019-12-16T15:53:39.000Z | 2022-03-26T08:25:10.000Z | backend/api/migrations/0016_auto_20200127_1213.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 11 | 2019-11-28T20:39:15.000Z | 2022-01-31T17:53:31.000Z | # Generated by Django 3.0.2 on 2020-01-27 20:13
import db_comments.model_mixins
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0015_vehiclemakeorganization'),
]
operations = [
migrations.AlterFie... | 46.579545 | 186 | 0.609661 | 421 | 4,099 | 5.72209 | 0.220903 | 0.039851 | 0.059776 | 0.056455 | 0.760066 | 0.760066 | 0.709008 | 0.675799 | 0.656704 | 0.570361 | 0 | 0.01053 | 0.2586 | 4,099 | 87 | 187 | 47.114943 | 0.782165 | 0.010978 | 0 | 0.54321 | 1 | 0 | 0.177937 | 0.032577 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
f6b2fa171e6773f5a517144b012febbfc7ae6881 | 115 | py | Python | tfplay/__init__.py | kingspp/tensorflow-playground | 2df26184d9fd1ecceaf2fb874560933eb574e5e2 | [
"MIT"
] | null | null | null | tfplay/__init__.py | kingspp/tensorflow-playground | 2df26184d9fd1ecceaf2fb874560933eb574e5e2 | [
"MIT"
] | null | null | null | tfplay/__init__.py | kingspp/tensorflow-playground | 2df26184d9fd1ecceaf2fb874560933eb574e5e2 | [
"MIT"
] | null | null | null | """
Created on 08 Oct 2016,
@author: Prathyush SP,
@version: 0.3.4
"""
import munch
MODULE_STORE = munch.Munch()
| 11.5 | 28 | 0.678261 | 18 | 115 | 4.277778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.165217 | 115 | 9 | 29 | 12.777778 | 0.708333 | 0.53913 | 0 | 0 | 0 | 0 | 0 | 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 |
f6b478627287a43acf39a0d9e17b0e26796b330b | 202 | py | Python | Website Scanner/ip_address.py | noamts/Malware | 099577f87abdca76910dcf4f1debc234a9f67c9b | [
"MIT"
] | 47 | 2020-03-19T00:08:21.000Z | 2022-03-31T02:32:16.000Z | Website Scanner/ip_address.py | sidwashere/Malware | 1eeb374b1ee992a3dabd00420916dcbd277c66db | [
"MIT"
] | null | null | null | Website Scanner/ip_address.py | sidwashere/Malware | 1eeb374b1ee992a3dabd00420916dcbd277c66db | [
"MIT"
] | 14 | 2020-03-18T22:22:15.000Z | 2022-03-29T05:39:25.000Z | import socket
def get_ip_address(domain_name):
print("[+]Obtaining IP Address")
try:
ip_address=socket.gethostbyname(domain_name)
return ip_address
except:
print("[!]Unable to get IP Address") | 22.444444 | 46 | 0.757426 | 29 | 202 | 5.068966 | 0.551724 | 0.306122 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 202 | 9 | 47 | 22.444444 | 0.835227 | 0 | 0 | 0 | 0 | 0 | 0.246305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
f6b5835fdd8eaaf8328f4227d099a49f97aad521 | 1,001 | py | Python | api/sources/tests/extraction/test_hva.py | nppo/ppp | ff67f35a9c41484d05ebccfb410772ce5b8aa5f6 | [
"MIT"
] | 1 | 2022-02-25T12:30:25.000Z | 2022-02-25T12:30:25.000Z | api/sources/tests/extraction/test_hva.py | nppo/ppp | ff67f35a9c41484d05ebccfb410772ce5b8aa5f6 | [
"MIT"
] | 23 | 2021-12-10T15:52:25.000Z | 2022-03-31T07:23:50.000Z | api/sources/tests/extraction/test_hva.py | nppo/ppp | ff67f35a9c41484d05ebccfb410772ce5b8aa5f6 | [
"MIT"
] | null | null | null | from sources.tests.extraction.base import ExtractorTestCase
class TestPersonsExtraction(ExtractorTestCase):
source = "hva"
entity = "persons"
def test_get_api_count(self):
self.assertEqual(self.extractor.get_api_count(self.extractor.data), 4)
def test_get_api_next_cursor(self):
self... | 34.517241 | 95 | 0.715285 | 129 | 1,001 | 5.333333 | 0.333333 | 0.061047 | 0.087209 | 0.056686 | 0.302326 | 0.110465 | 0.110465 | 0 | 0 | 0 | 0 | 0.029481 | 0.152847 | 1,001 | 28 | 96 | 35.75 | 0.78184 | 0 | 0 | 0 | 0 | 0 | 0.0999 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 1 | 0.315789 | false | 0 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f6c052ffdc343ae1eae1ff82c38d300e53c94307 | 534 | py | Python | burnDownBackEnd/migrations/0002_auto_20180121_2217.py | avados/scrum_burn_down | a5fa018d025d94acfe0e6e60855616c94ff5b915 | [
"MIT"
] | null | null | null | burnDownBackEnd/migrations/0002_auto_20180121_2217.py | avados/scrum_burn_down | a5fa018d025d94acfe0e6e60855616c94ff5b915 | [
"MIT"
] | null | null | null | burnDownBackEnd/migrations/0002_auto_20180121_2217.py | avados/scrum_burn_down | a5fa018d025d94acfe0e6e60855616c94ff5b915 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-01-22 03:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('burnDownBackEnd', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='company',
old_name='pu... | 22.25 | 48 | 0.537453 | 52 | 534 | 5.307692 | 0.634615 | 0.152174 | 0.188406 | 0.217391 | 0.224638 | 0.224638 | 0.224638 | 0.224638 | 0 | 0 | 0 | 0.055233 | 0.355805 | 534 | 23 | 49 | 23.217391 | 0.747093 | 0.08427 | 0 | 0.470588 | 1 | 0 | 0.163793 | 0 | 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 |
10086f5b1e2617ef6cfddf0914fc5de8b664ac49 | 47 | py | Python | search_duplicate_files/__init__.py | yuravg/search_duplicate_files | b48c283655f649f55a432fd98fb8d0e3881fe5ae | [
"MIT"
] | null | null | null | search_duplicate_files/__init__.py | yuravg/search_duplicate_files | b48c283655f649f55a432fd98fb8d0e3881fe5ae | [
"MIT"
] | null | null | null | search_duplicate_files/__init__.py | yuravg/search_duplicate_files | b48c283655f649f55a432fd98fb8d0e3881fe5ae | [
"MIT"
] | null | null | null | """Project version"""
__version__ = '0.1.0b1'
| 11.75 | 23 | 0.638298 | 6 | 47 | 4.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.12766 | 47 | 3 | 24 | 15.666667 | 0.536585 | 0.319149 | 0 | 0 | 0 | 0 | 0.269231 | 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 |
100e7152eff10825cdfc30673db147a0bc17b7e8 | 102 | py | Python | keyword_engine/apps.py | eddiebarry/django-keyword-engine | aa7b2f3b35bcd360c71d25c5211d79793be3902e | [
"CC0-1.0"
] | null | null | null | keyword_engine/apps.py | eddiebarry/django-keyword-engine | aa7b2f3b35bcd360c71d25c5211d79793be3902e | [
"CC0-1.0"
] | null | null | null | keyword_engine/apps.py | eddiebarry/django-keyword-engine | aa7b2f3b35bcd360c71d25c5211d79793be3902e | [
"CC0-1.0"
] | null | null | null | from django.apps import AppConfig
class KeywordEngineConfig(AppConfig):
name = 'keyword_engine'
| 17 | 37 | 0.784314 | 11 | 102 | 7.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 38 | 20.4 | 0.908046 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
1012627babe3c51a04bf033f0dddd6a29c6d1982 | 159 | py | Python | mydemo/3.1.3.4_reversed.py | ebayboy/pydata-book | 77128a7bf2c446e8ef8cdcc53e3295a231376863 | [
"MIT"
] | null | null | null | mydemo/3.1.3.4_reversed.py | ebayboy/pydata-book | 77128a7bf2c446e8ef8cdcc53e3295a231376863 | [
"MIT"
] | null | null | null | mydemo/3.1.3.4_reversed.py | ebayboy/pydata-book | 77128a7bf2c446e8ef8cdcc53e3295a231376863 | [
"MIT"
] | null | null | null | import numpy as np
# reversed/zip函数使用后的对象都需要用list转一下
lst = np.arange(1, 10)
lst_reversed = list(reversed(lst))
print("lst_reversed:{}".format(lst_reversed))
| 19.875 | 45 | 0.761006 | 22 | 159 | 5.363636 | 0.590909 | 0.279661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.100629 | 159 | 7 | 46 | 22.714286 | 0.804196 | 0.194969 | 0 | 0 | 0 | 0 | 0.12 | 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 |
63dfc3b441c035b8099ca3d5b0b05fa8dfd96ab0 | 1,642 | py | Python | deeptech/core/annotations.py | penguinmenac3/deeptech | 0c7fb170d62f193dbbb2018f7b8d42f713178bb8 | [
"MIT"
] | 1 | 2020-10-10T10:11:54.000Z | 2020-10-10T10:11:54.000Z | deeptech/core/annotations.py | penguinmenac3/deeptech | 0c7fb170d62f193dbbb2018f7b8d42f713178bb8 | [
"MIT"
] | null | null | null | deeptech/core/annotations.py | penguinmenac3/deeptech | 0c7fb170d62f193dbbb2018f7b8d42f713178bb8 | [
"MIT"
] | null | null | null | """doc
# deeptech.core.annotations
> A collection of helpful annotations.
"""
from abc import ABC, abstractmethod
class _ClassDecorator(ABC):
def __get__(self, obj, objtype):
"""
A class decorator is a base class that is used for all annotations that should be usable with python classes.
... | 38.186047 | 316 | 0.680877 | 235 | 1,642 | 4.66383 | 0.46383 | 0.027372 | 0.021898 | 0.027372 | 0.038321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001642 | 0.258222 | 1,642 | 42 | 317 | 39.095238 | 0.898194 | 0.609013 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.125 | 0 | 0.5625 | 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 |
63e633c4afe35585a27aa867439b0bf20aa5544f | 286 | py | Python | src/test/python/fixtures/proc_module.py | raduteo/illumon-jpy | 370b0d8cc7a286c615fea2daac47ec9aa101ea26 | [
"Apache-2.0"
] | null | null | null | src/test/python/fixtures/proc_module.py | raduteo/illumon-jpy | 370b0d8cc7a286c615fea2daac47ec9aa101ea26 | [
"Apache-2.0"
] | 1 | 2019-05-01T16:28:34.000Z | 2019-05-01T16:28:34.000Z | src/test/python/fixtures/proc_module.py | raduteo/illumon-jpy | 370b0d8cc7a286c615fea2daac47ec9aa101ea26 | [
"Apache-2.0"
] | 5 | 2018-04-26T20:15:09.000Z | 2020-05-25T22:05:55.000Z |
def initialize():
return 'initialize'
def computeTile(x, y, array):
spend_some_time()
return 'computeTile-' + str(x) + ',' + str(y)
def dispose():
return 'dispose'
def spend_some_time():
l = list(range(10000))
for i in range(10000):
l.reverse()
| 13.619048 | 49 | 0.594406 | 37 | 286 | 4.486486 | 0.540541 | 0.108434 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0.251748 | 286 | 20 | 50 | 14.3 | 0.728972 | 0 | 0 | 0 | 0 | 0 | 0.106762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
63f0699c68393a574e1a7db27ed33edf421f59d5 | 981 | py | Python | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/km_xmascracker.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/km_xmascracker.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/km_xmascracker.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | #Michael Kay's Christmas Cracker.
#See
from Xml.Xslt import test_harness
sheet_1 = """<a xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<xsl:value-of select="*******************"/>
</a>"""
sheet_2 = """<a xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<xsl:value-of select="... | 29.727273 | 83 | 0.594292 | 137 | 981 | 4.124088 | 0.321168 | 0.136283 | 0.063717 | 0.176991 | 0.736283 | 0.736283 | 0.736283 | 0.580531 | 0.492035 | 0.492035 | 0 | 0.049566 | 0.17737 | 981 | 32 | 84 | 30.65625 | 0.650558 | 0.035678 | 0 | 0.181818 | 0 | 0.136364 | 0.398727 | 0.031813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 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 |
63f853475f3ec71b6b631085a79757c8cc399382 | 488 | py | Python | Mask/Mask.py | hengwei-chan/simpletransformer_keras | 286633d3f2286868ecedb647f9d564c4b21eebf7 | [
"MIT"
] | 13 | 2019-04-04T09:50:25.000Z | 2022-03-23T14:23:15.000Z | Mask/Mask.py | hengwei-chan/simpletransformer_keras | 286633d3f2286868ecedb647f9d564c4b21eebf7 | [
"MIT"
] | 1 | 2020-03-30T03:05:13.000Z | 2020-03-30T03:05:13.000Z | Mask/Mask.py | hengwei-chan/simpletransformer_keras | 286633d3f2286868ecedb647f9d564c4b21eebf7 | [
"MIT"
] | 3 | 2019-11-10T13:29:07.000Z | 2021-03-26T17:18:34.000Z | from keras.engine import Layer
import keras.backend as K
import tensorflow as tf
class MaskLayer(Layer):
"""
Generates the mask for the input layer
"""
def __init__(self,mask_function=None, **kwargs):
super().__init__(**kwargs)
def build(self,input_shape):
super().build(input_s... | 22.181818 | 56 | 0.625 | 60 | 488 | 4.9 | 0.583333 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00831 | 0.260246 | 488 | 22 | 57 | 22.181818 | 0.806094 | 0.077869 | 0 | 0 | 1 | 0 | 0.016746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
12182db68625820072fa586fec23a902e96bf80a | 146 | py | Python | python/dragos_portal/__init__.py | dragosinc/customer-portal-sdks | 4407b282dbf7f96632106ccd2e569806091b2d58 | [
"Apache-2.0"
] | null | null | null | python/dragos_portal/__init__.py | dragosinc/customer-portal-sdks | 4407b282dbf7f96632106ccd2e569806091b2d58 | [
"Apache-2.0"
] | null | null | null | python/dragos_portal/__init__.py | dragosinc/customer-portal-sdks | 4407b282dbf7f96632106ccd2e569806091b2d58 | [
"Apache-2.0"
] | 1 | 2020-05-24T19:44:47.000Z | 2020-05-24T19:44:47.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = """Dragos, Inc."""
__version__ = '0.1.0'
from .dragos_portal import DragosPortalAPI
| 18.25 | 42 | 0.664384 | 19 | 146 | 4.631579 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0.136986 | 146 | 7 | 43 | 20.857143 | 0.65873 | 0.294521 | 0 | 0 | 0 | 0 | 0.168317 | 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 |
12428a782a075bcbb8f3c4a339c62478ccda6571 | 283 | py | Python | tests/test_maven_spotless_apply.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 8 | 2021-01-18T09:40:48.000Z | 2022-02-16T03:20:52.000Z | tests/test_maven_spotless_apply.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 4 | 2021-05-15T20:41:41.000Z | 2021-09-22T07:05:44.000Z | tests/test_maven_spotless_apply.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 4 | 2021-04-16T17:03:33.000Z | 2022-03-25T12:16:00.000Z | import pytest
from pre_commit_maven.maven_spotless_apply import main
def test_given_goals_then_executes_generic_main(mocker):
mocked_execute_fn = mocker.Mock()
main(".", execute_fn=mocked_execute_fn)
mocked_execute_fn.assert_called_once_with(["spotless:apply"], ".")
| 25.727273 | 70 | 0.795053 | 40 | 283 | 5.125 | 0.625 | 0.17561 | 0.219512 | 0.214634 | 0.190244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109541 | 283 | 10 | 71 | 28.3 | 0.813492 | 0 | 0 | 0 | 0 | 0 | 0.056537 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 |
1272c25319484a4f9e504deff826157c0433ae89 | 148 | py | Python | lib/disco/__init__.py | applio/disco | b379301e60255910ced3e836ffa6e3f61a96ceec | [
"BSD-3-Clause"
] | 2 | 2017-01-02T13:54:45.000Z | 2018-01-04T23:29:23.000Z | lib/disco/__init__.py | mrgloom/disco | b379301e60255910ced3e836ffa6e3f61a96ceec | [
"BSD-3-Clause"
] | null | null | null | lib/disco/__init__.py | mrgloom/disco | b379301e60255910ced3e836ffa6e3f61a96ceec | [
"BSD-3-Clause"
] | null | null | null | """
:mod:`disco` -- API Reference
=============================
.. toctree::
:titlesonly:
:glob:
*
worker/index
worker/classic
"""
| 11.384615 | 29 | 0.439189 | 11 | 148 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209459 | 148 | 12 | 30 | 12.333333 | 0.555556 | 0.939189 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
89bfd890629b54c9c1d097ec3d3fa8fadf67894c | 475 | py | Python | setup.py | arvind-iyer/envattrs | 077b7810b588539d7339cfe0c37634147aba1648 | [
"Apache-2.0"
] | null | null | null | setup.py | arvind-iyer/envattrs | 077b7810b588539d7339cfe0c37634147aba1648 | [
"Apache-2.0"
] | null | null | null | setup.py | arvind-iyer/envattrs | 077b7810b588539d7339cfe0c37634147aba1648 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
version='1.1.0',
name='envattrs',
package_dir={'': 'src'},
packages=find_packages(where='src'),
install_requires=[
'attrs>=17.1.0',
],
license='APLv2',
classifiers=[
'Development Status :: 3 - Alpha',
'License :... | 23.75 | 61 | 0.578947 | 50 | 475 | 5.42 | 0.7 | 0.088561 | 0.184502 | 0.191882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.261053 | 475 | 19 | 62 | 25 | 0.737892 | 0 | 0 | 0 | 0 | 0 | 0.416842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
89c8742f8f339705427723be9faceaebd12bb4a7 | 459 | py | Python | bfh_cas_bgd_fs2020_sa/_nbdev.py | HansjoergW/bfh_cas_bgd_fs2020_sa | 7c38c1e8aa357d77551bfe1918f70430063f84cb | [
"Apache-2.0"
] | null | null | null | bfh_cas_bgd_fs2020_sa/_nbdev.py | HansjoergW/bfh_cas_bgd_fs2020_sa | 7c38c1e8aa357d77551bfe1918f70430063f84cb | [
"Apache-2.0"
] | 2 | 2021-09-28T05:24:45.000Z | 2022-02-26T09:44:51.000Z | bfh_cas_bgd_fs2020_sa/_nbdev.py | HansjoergW/bfh_cas_bgd_fs2020_sa | 7c38c1e8aa357d77551bfe1918f70430063f84cb | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"get_spark_session": "00_00_core.ipynb",
"get_directory_size": "00_00_core.ipynb",
"get_size_format": "00_00_core.ipynb"}
modules = ["core.py"]
doc_url = "https://HansjoergW.github.io/bfh_... | 28.6875 | 76 | 0.718954 | 70 | 459 | 4.271429 | 0.571429 | 0.040134 | 0.080268 | 0.130435 | 0.220736 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049875 | 0.126362 | 459 | 15 | 77 | 30.6 | 0.695761 | 0.078431 | 0 | 0 | 1 | 0 | 0.605701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
89e24bee98921c68275690a9f3707583ab4b9034 | 179 | py | Python | tablas.py | AdrianRiao/X-Serv-Python-Multiplica | 068659c10c0704fe980785599f0f7d57d4922db0 | [
"Apache-2.0"
] | null | null | null | tablas.py | AdrianRiao/X-Serv-Python-Multiplica | 068659c10c0704fe980785599f0f7d57d4922db0 | [
"Apache-2.0"
] | null | null | null | tablas.py | AdrianRiao/X-Serv-Python-Multiplica | 068659c10c0704fe980785599f0f7d57d4922db0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
for n1 in range(1,11):
print("Tabla del " + str(n1))
print("-----------")
for n2 in range(1,11):
print(str(n1) + " por " + str(n2) + " es " + str(n1*n2))
| 22.375 | 58 | 0.519553 | 31 | 179 | 3 | 0.516129 | 0.16129 | 0.172043 | 0.215054 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096552 | 0.189944 | 179 | 7 | 59 | 25.571429 | 0.544828 | 0.094972 | 0 | 0 | 0 | 0 | 0.186335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d6213d31c370545001c2c37f38ba8423b25ddbd5 | 98 | py | Python | server/calculation/__init__.py | f3rri88/arithmetic-calculator | 5a7c4393f2519d4da615f46a0f0b68a39d2246ac | [
"Unlicense"
] | null | null | null | server/calculation/__init__.py | f3rri88/arithmetic-calculator | 5a7c4393f2519d4da615f46a0f0b68a39d2246ac | [
"Unlicense"
] | null | null | null | server/calculation/__init__.py | f3rri88/arithmetic-calculator | 5a7c4393f2519d4da615f46a0f0b68a39d2246ac | [
"Unlicense"
] | null | null | null | from server.calculation.consumer import OperationConsumer
__all__ = [OperationConsumer.__name__]
| 24.5 | 57 | 0.857143 | 9 | 98 | 8.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 98 | 3 | 58 | 32.666667 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d639406c8bd8eaa6e12115337d703804c38dd441 | 499 | py | Python | examples/web_service.py | dwelch91/itty | a5a75dabe11b7bd61ad608db12539535c81cf6a2 | [
"BSD-3-Clause"
] | null | null | null | examples/web_service.py | dwelch91/itty | a5a75dabe11b7bd61ad608db12539535c81cf6a2 | [
"BSD-3-Clause"
] | null | null | null | examples/web_service.py | dwelch91/itty | a5a75dabe11b7bd61ad608db12539535c81cf6a2 | [
"BSD-3-Clause"
] | null | null | null | from itty import *
@register('get', '/get/{name}')
def test_get(request, name=', world'):
return 'Hello %s!' % name
@register('post', '/post')
def test_post(request):
return "'foo' is: %s" % request.payload().get('foo', 'not specified')
@register('put', '/put')
def test_put(request):
return "'foo' is:... | 19.96 | 73 | 0.633267 | 67 | 499 | 4.641791 | 0.373134 | 0.090032 | 0.102894 | 0.115756 | 0.379421 | 0.379421 | 0.379421 | 0.379421 | 0.379421 | 0.379421 | 0 | 0 | 0.154309 | 499 | 24 | 74 | 20.791667 | 0.736967 | 0 | 0 | 0.142857 | 0 | 0 | 0.276553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.285714 | 0.642857 | 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 |
d63c5bded9bf7a98f4f22e45b2f16b2ad5e570e1 | 178 | py | Python | some/path/to/app/main.py | CameronHudson8/python-implicit-namespace-packages | 80dc55ab31ef43d4cbf57ce68ee3c89a14cd534d | [
"Apache-2.0"
] | null | null | null | some/path/to/app/main.py | CameronHudson8/python-implicit-namespace-packages | 80dc55ab31ef43d4cbf57ce68ee3c89a14cd534d | [
"Apache-2.0"
] | null | null | null | some/path/to/app/main.py | CameronHudson8/python-implicit-namespace-packages | 80dc55ab31ef43d4cbf57ce68ee3c89a14cd534d | [
"Apache-2.0"
] | null | null | null | from module2.Class2 import Class2
from Class3 import Class3
import sys
myInstance = Class2()
print(myInstance.helper.name)
miInstancia = Class3()
print(miInstancia.helper.name)
| 19.777778 | 33 | 0.808989 | 23 | 178 | 6.26087 | 0.478261 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044025 | 0.106742 | 178 | 8 | 34 | 22.25 | 0.861635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.285714 | 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 |
d648419e9940206507929fb241a2484c967629a4 | 7,265 | py | Python | boto3_type_annotations/boto3_type_annotations/route53/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/route53/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/route53/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from typing import Union
from botocore.paginate import Paginator
from botocore.waiter import Waiter
from typing import List
class Client(BaseClient):
def associate_vpc_with_hosted_zone(self, HostedZoneId: str, VPC: Dict, Co... | 38.236842 | 508 | 0.691259 | 879 | 7,265 | 5.521047 | 0.166098 | 0.087987 | 0.124665 | 0.074181 | 0.588708 | 0.534309 | 0.46734 | 0.415825 | 0.353802 | 0.22584 | 0 | 0.000351 | 0.215141 | 7,265 | 189 | 509 | 38.439153 | 0.850754 | 0 | 0 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.46875 | false | 0.46875 | 0.054688 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d6577f8656a2889f593bd4ce34cdb1d71fa7b12c | 210 | py | Python | alpyro_msgs/control_msgs/jointtrajectoryfeedback.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | 1 | 2020-12-13T13:07:10.000Z | 2020-12-13T13:07:10.000Z | alpyro_msgs/control_msgs/jointtrajectoryfeedback.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | alpyro_msgs/control_msgs/jointtrajectoryfeedback.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | from alpyro_msgs import RosMessage
class JointTrajectoryFeedback(RosMessage):
__msg_typ__ = "control_msgs/JointTrajectoryFeedback"
__msg_def__ = "Cg=="
__md5_sum__ = "d41d8cd98f00b204e9800998ecf8427e"
| 23.333333 | 54 | 0.814286 | 19 | 210 | 8.105263 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 0.114286 | 210 | 8 | 55 | 26.25 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.344498 | 0.325359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
c3d5d8fa359927d0feec244ea091a5150d1f163b | 118 | py | Python | geoacumen/__init__.py | geoacumen/python-geoacumen | 147a8267485c0fbba7d13afba8ee73c3161171f7 | [
"Apache-2.0"
] | null | null | null | geoacumen/__init__.py | geoacumen/python-geoacumen | 147a8267485c0fbba7d13afba8ee73c3161171f7 | [
"Apache-2.0"
] | null | null | null | geoacumen/__init__.py | geoacumen/python-geoacumen | 147a8267485c0fbba7d13afba8ee73c3161171f7 | [
"Apache-2.0"
] | null | null | null | import os
__version__ = "2022.01.09"
db_path = os.path.join(os.path.dirname(__file__), "db/Geoacumen-Country.mmdb")
| 19.666667 | 78 | 0.737288 | 19 | 118 | 4.105263 | 0.736842 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0.09322 | 118 | 5 | 79 | 23.6 | 0.654206 | 0 | 0 | 0 | 0 | 0 | 0.29661 | 0.211864 | 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 |
c3fcd07728a046a9e6d1a095fb3962bdc16ba684 | 434 | py | Python | utils/__init__.py | mountainwind1/rstools | ad985448526323d19818f52da45fb9d83b1683a4 | [
"Apache-2.0"
] | 1 | 2019-09-01T15:14:25.000Z | 2019-09-01T15:14:25.000Z | utils/__init__.py | mountainwind1/rstools | ad985448526323d19818f52da45fb9d83b1683a4 | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | mountainwind1/rstools | ad985448526323d19818f52da45fb9d83b1683a4 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
#from ._io import lblsave
from .image import apply_exif_orientation
from .image import img_arr_to_b64
from .image import img_b64_to_arr
from .image import img_data_to_png_data
from .qt import newIcon
from .qt import newButton
from .qt import newAction
from .qt import addActions
from .qt import labelVal... | 24.111111 | 41 | 0.820276 | 70 | 434 | 4.9 | 0.371429 | 0.157434 | 0.314869 | 0.157434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013405 | 0.140553 | 434 | 17 | 42 | 25.529412 | 0.906166 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7f0e5a5a549a26176219ca55e67197a428c12668 | 202 | py | Python | tests/toolkit/test_timer.py | aleph-im/py-aleph | a18beb8b4eba36887ca85054ed2471c3680bdfde | [
"MIT"
] | null | null | null | tests/toolkit/test_timer.py | aleph-im/py-aleph | a18beb8b4eba36887ca85054ed2471c3680bdfde | [
"MIT"
] | null | null | null | tests/toolkit/test_timer.py | aleph-im/py-aleph | a18beb8b4eba36887ca85054ed2471c3680bdfde | [
"MIT"
] | null | null | null | from aleph.toolkit.timer import Timer
import time
def test_timer_sleep():
sleep_duration = 0.5
with Timer() as t:
time.sleep(sleep_duration)
assert t.elapsed() >= sleep_duration
| 16.833333 | 40 | 0.693069 | 29 | 202 | 4.655172 | 0.586207 | 0.288889 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.217822 | 202 | 11 | 41 | 18.363636 | 0.841772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6137de5fb3b9eca526604eedda3de1eb32637a1b | 380 | py | Python | FusionIIIT/Fusion/routing.py | ssaksham9/Fusion | f1e405b457dba399411a2ddb79a9068746c05057 | [
"bzip2-1.0.6"
] | 2 | 2020-01-24T16:34:54.000Z | 2020-08-01T05:09:24.000Z | FusionIIIT/Fusion/routing.py | ssaksham9/Fusion | f1e405b457dba399411a2ddb79a9068746c05057 | [
"bzip2-1.0.6"
] | 1 | 2019-03-27T20:54:19.000Z | 2019-03-27T20:54:19.000Z | FusionIIIT/Fusion/routing.py | ssaksham9/Fusion | f1e405b457dba399411a2ddb79a9068746c05057 | [
"bzip2-1.0.6"
] | 5 | 2020-01-21T11:27:06.000Z | 2020-02-07T13:53:49.000Z | from channels.routing import route
#from notification_channels.consumers import add, disconnect, message
channel_routing = [
#route("websocket.connect", add, path=r"/notifications/"),
# path="r^/(?P<room_name>[a-zA-Z0-9_]+)/$"),
#route("websocket.disconnect", disconnect, path=r"/notifications/"),
#rout... | 38 | 72 | 0.702632 | 45 | 380 | 5.844444 | 0.533333 | 0.076046 | 0.205323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.110526 | 380 | 9 | 73 | 42.222222 | 0.772189 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
6170f7bfc03bb6b0df85f00059a6915a1ff45e7b | 710 | py | Python | app_user/urls.py | xenups/movie_reviewer | ba6528cfacf3ff3238f977297d16dd738b0cf421 | [
"BSD-3-Clause"
] | 1 | 2021-01-20T09:09:50.000Z | 2021-01-20T09:09:50.000Z | app_user/urls.py | xenups/movie_reviewer | ba6528cfacf3ff3238f977297d16dd738b0cf421 | [
"BSD-3-Clause"
] | null | null | null | app_user/urls.py | xenups/movie_reviewer | ba6528cfacf3ff3238f977297d16dd738b0cf421 | [
"BSD-3-Clause"
] | 1 | 2021-01-20T09:13:51.000Z | 2021-01-20T09:13:51.000Z | "ICECREAM"
from bottle_jwt import jwt_auth_required
from ICECREAM.baseapp import BaseApp
from app_user.controller import get_users, create_user, get_user, delete_user
from ICECREAM.wrappers import db_handler, pass_data, jsonify
class USERApp(BaseApp):
def call_router(self, core):
core.route('/api/users/<... | 47.333333 | 111 | 0.742254 | 103 | 710 | 4.84466 | 0.320388 | 0.07014 | 0.150301 | 0.152305 | 0.382766 | 0.382766 | 0.320641 | 0.320641 | 0.320641 | 0.320641 | 0 | 0 | 0.128169 | 710 | 14 | 112 | 50.714286 | 0.806139 | 0.011268 | 0 | 0 | 0 | 0 | 0.101408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
61731e4246f98f21dc9db46470be752fda6aec20 | 259 | py | Python | setting.py | maimai22015/RPPtoEXO-Lyric- | e29d7f7355bae1ef2f4e2e73bf687f3c56127b93 | [
"CC0-1.0"
] | 1 | 2022-01-21T07:48:00.000Z | 2022-01-21T07:48:00.000Z | setting.py | maimai22015/RPPtoEXO-Lyric- | e29d7f7355bae1ef2f4e2e73bf687f3c56127b93 | [
"CC0-1.0"
] | null | null | null | setting.py | maimai22015/RPPtoEXO-Lyric- | e29d7f7355bae1ef2f4e2e73bf687f3c56127b93 | [
"CC0-1.0"
] | null | null | null | #setting
RPPpath = r"D:\document\python projects\Autolipsync\scripttest2.rpp"
TEMPLATEPath = r"D:\document\python projects\Autolipsync\template.exo"
LIPPath = r"D:\document\python projects\Autolipsync\*.avi"
ExportPath = "RPPtoEXO(Lyric).exo"
FPS = 60
| 37 | 71 | 0.760618 | 33 | 259 | 5.969697 | 0.606061 | 0.030457 | 0.152284 | 0.243655 | 0.532995 | 0.532995 | 0 | 0 | 0 | 0 | 0 | 0.012876 | 0.100386 | 259 | 6 | 72 | 43.166667 | 0.832618 | 0.027027 | 0 | 0 | 0 | 0 | 0.70082 | 0.389344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6187d8bd5617d847d971f0f9061d3140b1eb694d | 1,104 | py | Python | tests/widgets/test_text.py | amsico/pyqtschema | 27fdc3c56bcef6975f6cd2624859e43f446320a1 | [
"MIT"
] | 1 | 2022-02-17T09:04:13.000Z | 2022-02-17T09:04:13.000Z | tests/widgets/test_text.py | amsico/pyqtschema | 27fdc3c56bcef6975f6cd2624859e43f446320a1 | [
"MIT"
] | 12 | 2022-01-28T22:31:46.000Z | 2022-02-09T23:06:07.000Z | tests/widgets/test_text.py | amsico/pyqtschema | 27fdc3c56bcef6975f6cd2624859e43f446320a1 | [
"MIT"
] | null | null | null | import pytest
from PyQt5.QtCore import Qt
from pyqtschema.widgets import TextSchemaWidget, TextAreaSchemaWidget, PasswordWidget
@pytest.mark.parametrize('cls', [TextSchemaWidget, TextAreaSchemaWidget, PasswordWidget])
def test_text_init(cls, builder, qtbot):
schema = {}
widget = cls(schema, {}, builder)
... | 26.285714 | 89 | 0.702899 | 116 | 1,104 | 6.62069 | 0.301724 | 0.1875 | 0.260417 | 0.09375 | 0.682292 | 0.682292 | 0.682292 | 0.682292 | 0.682292 | 0.682292 | 0 | 0.001101 | 0.177536 | 1,104 | 41 | 90 | 26.926829 | 0.844714 | 0 | 0 | 0.566667 | 0 | 0 | 0.029891 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.1 | false | 0.133333 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
618ad9874fdb2f67384bcd9a62e216a88ed16752 | 102 | py | Python | challenges/solutions/s6q3.py | kchiv/data_science_basics | a869200d26068a8fa26c82cf76dcd8de0f0636b3 | [
"MIT"
] | 26 | 2015-04-14T11:47:06.000Z | 2019-11-19T23:28:27.000Z | challenges/solutions/s6q3.py | kchiv/data_science_basics | a869200d26068a8fa26c82cf76dcd8de0f0636b3 | [
"MIT"
] | null | null | null | challenges/solutions/s6q3.py | kchiv/data_science_basics | a869200d26068a8fa26c82cf76dcd8de0f0636b3 | [
"MIT"
] | 14 | 2015-08-26T23:07:16.000Z | 2019-03-31T17:19:42.000Z | from matplotlib.backends.backend_pdf import PdfPages
my_pdf = PdfPages('reports.pdf')
my_pdf.close()
| 20.4 | 52 | 0.803922 | 15 | 102 | 5.266667 | 0.666667 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 102 | 4 | 53 | 25.5 | 0.849462 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 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 |
61917d5051274b0ea5c51e00ecb61e7e1bf2a86b | 364 | py | Python | download/models.py | Psemp/artsetforme_public | 240bb8ef22c0589f168b24c0ee5ed8e9030fe94a | [
"MIT"
] | null | null | null | download/models.py | Psemp/artsetforme_public | 240bb8ef22c0589f168b24c0ee5ed8e9030fe94a | [
"MIT"
] | 1 | 2021-10-08T22:20:09.000Z | 2021-10-08T22:20:09.000Z | download/models.py | Psemp/artsetforme_public | 240bb8ef22c0589f168b24c0ee5ed8e9030fe94a | [
"MIT"
] | null | null | null | from django.db import models
class Downloadable(models.Model):
name = models.CharField(max_length=255, blank=False)
short_description = models.CharField(max_length=455, blank=True)
file = models.FileField(blank=False, upload_to="documents")
date_uploaded = models.DateTimeField(auto_created=True)
... | 30.333333 | 68 | 0.744505 | 47 | 364 | 5.553191 | 0.702128 | 0.114943 | 0.137931 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.153846 | 364 | 11 | 69 | 33.090909 | 0.827922 | 0 | 0 | 0 | 0 | 0 | 0.024725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
61975c48f5aa0f503f8f7b3de23a8e5f02f176bb | 4,745 | py | Python | Python/SockDrawerArithmeticDictionary/ArithmeticDictionary.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | Python/SockDrawerArithmeticDictionary/ArithmeticDictionary.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | Python/SockDrawerArithmeticDictionary/ArithmeticDictionary.py | IdkwhatImD0ing/AlgorithmPractice | 2d8d68a6d0168e873d61d1e3873e882bcdaf003f | [
"MIT"
] | null | null | null | from collections import defaultdict
import numpy as np
class AD(dict):
def __init__(self, *args, **kwargs):
"""This initializer simply passes all arguments to dict, so that
we can create an AD with the same ease with which we can create
a dict. There is no need, indeed, to repeat the init... | 31.845638 | 105 | 0.587355 | 777 | 4,745 | 3.480051 | 0.220077 | 0.017012 | 0.049926 | 0.056583 | 0.365754 | 0.278476 | 0.275148 | 0.275148 | 0.254438 | 0.241124 | 0 | 0.022932 | 0.273973 | 4,745 | 149 | 106 | 31.845638 | 0.761974 | 0.16902 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288462 | false | 0 | 0.038462 | 0.230769 | 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 |
61a1a6c538135e3a611cb4e7e69db933bd35afc1 | 766 | py | Python | myppa/key.py | ivochkin/myppa-tool | 4e142503448775767a80b4ea527048d595abcd60 | [
"MIT"
] | null | null | null | myppa/key.py | ivochkin/myppa-tool | 4e142503448775767a80b4ea527048d595abcd60 | [
"MIT"
] | null | null | null | myppa/key.py | ivochkin/myppa-tool | 4e142503448775767a80b4ea527048d595abcd60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import re
class Key(object):
_regexp = re.compile(r'([+-]?)(?:([^:]+):)?([^:]+)(?::(.*))?')
def __init__(self, onmerge, tag, name, envspec):
self._on_merge_add = True if onmerge == "+" else False
self._tag = tag
self._name = name
self._envspec = envspec
... | 23.212121 | 89 | 0.574413 | 106 | 766 | 3.915094 | 0.396226 | 0.084337 | 0.096386 | 0.101205 | 0.081928 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008913 | 0.267624 | 766 | 32 | 90 | 23.9375 | 0.730838 | 0.027415 | 0 | 0 | 0 | 0 | 0.052419 | 0.049731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.045455 | 0.227273 | 0.727273 | 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 |
4ee4bc09a701d6edc23ccc2241f5f140ff5a9985 | 1,514 | py | Python | src/dvi/bayes_utils.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | 5 | 2021-10-04T06:11:21.000Z | 2022-02-22T17:57:43.000Z | src/dvi/bayes_utils.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | null | null | null | src/dvi/bayes_utils.py | luoyan407/predict_trustworthiness | 8f394fc511b9aa31a766a30f0e1b059481aa5f76 | [
"MIT"
] | null | null | null | import math
import torch
EPSILON = 1e-6
HALF_EPSILON = EPSILON / 2.0
def matrix_set_diag(input, diagonal, dim1=0, dim2=1):
org_diag = torch.diag_embed(torch.diagonal(input, dim1=dim1, dim2=dim2),
dim1=dim1, dim2=dim2)
new_diag = torch.diag_embed(diagonal, dim1=dim1, dim2=dim2)
... | 34.409091 | 90 | 0.643329 | 261 | 1,514 | 3.551724 | 0.237548 | 0.019417 | 0.016181 | 0.05178 | 0.154261 | 0.124056 | 0.089536 | 0.062567 | 0 | 0 | 0 | 0.072259 | 0.204756 | 1,514 | 44 | 91 | 34.409091 | 0.697674 | 0.114267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.071429 | 0.178571 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4ee5e25278b225e874f76fc2425a872a981340b7 | 1,464 | py | Python | labs_web/extensions/__init__.py | okorienev/labs_web | 9bfd69ffc2196832523d5809cf921debe530f886 | [
"BSD-3-Clause"
] | 2 | 2018-04-22T11:34:09.000Z | 2018-05-09T20:14:48.000Z | labs_web/extensions/__init__.py | AlexPraefectus/labs_web | 9bfd69ffc2196832523d5809cf921debe530f886 | [
"BSD-3-Clause"
] | null | null | null | labs_web/extensions/__init__.py | AlexPraefectus/labs_web | 9bfd69ffc2196832523d5809cf921debe530f886 | [
"BSD-3-Clause"
] | null | null | null | from .extensions import (celery,
cache,
db,
mail,
admin,
login_manager,
ckeditor,
minio) # extension which need to be initialized in app
... | 38.526316 | 81 | 0.427596 | 88 | 1,464 | 6.920455 | 0.704545 | 0.01642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.534836 | 1,464 | 37 | 82 | 39.567568 | 0.894273 | 0.073087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.054054 | 0.162162 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4ee9e74c58ffa52307974ffb0b5aa7194689d5f7 | 679 | py | Python | accounts/migrations/0004_auto_20211011_1228.py | establishment/django-establishment | ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6 | [
"CC0-1.0"
] | 1 | 2017-04-27T19:35:42.000Z | 2017-04-27T19:35:42.000Z | accounts/migrations/0004_auto_20211011_1228.py | establishment/django-establishment | ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6 | [
"CC0-1.0"
] | null | null | null | accounts/migrations/0004_auto_20211011_1228.py | establishment/django-establishment | ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-11 12:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_tempuser'),
]
operations = [
migrations.AlterField(
model_name='tempuser',
name='extra',
... | 23.413793 | 49 | 0.553756 | 59 | 679 | 6.305085 | 0.610169 | 0.16129 | 0.201613 | 0.233871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04185 | 0.33137 | 679 | 28 | 50 | 24.25 | 0.777533 | 0.066274 | 0 | 0.363636 | 1 | 0 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
f6072afaf8b5bd369affe44c0b3bea3f80b85796 | 534 | py | Python | chrome/installer/mac/signing/test_common.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/installer/mac/signing/test_common.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/installer/mac/signing/test_common.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def import_mock():
# python2 support.
try:
from unittest import mock
return mock
except:
import os.path
import s... | 26.7 | 77 | 0.589888 | 69 | 534 | 4.478261 | 0.681159 | 0.07767 | 0.10356 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016621 | 0.32397 | 534 | 19 | 78 | 28.105263 | 0.839335 | 0.322097 | 0 | 0.153846 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.384615 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f611ac6215d94c87af6b308bb133d511c971a684 | 684 | py | Python | tests/util/test_enc.py | d2verb/cool | 8d9f3d3a89877de7941d4a7a32e38a0be6bd050e | [
"MIT"
] | 4 | 2020-07-17T11:37:28.000Z | 2022-01-25T04:52:01.000Z | tests/util/test_enc.py | d2verb/cool | 8d9f3d3a89877de7941d4a7a32e38a0be6bd050e | [
"MIT"
] | 1 | 2020-07-02T15:30:36.000Z | 2020-07-02T15:30:36.000Z | tests/util/test_enc.py | d2verb/ctftools | 8d9f3d3a89877de7941d4a7a32e38a0be6bd050e | [
"MIT"
] | 1 | 2020-09-29T16:45:29.000Z | 2020-09-29T16:45:29.000Z | from cool.util.enc import b64dec, b64enc, urldec, urlenc
def test_b64enc():
assert b64enc(b"Lorem Ipsum") == b"TG9yZW0gSXBzdW0="
# test urlsafe mode
assert b64enc(b"\xf8\xff\xff") == b"+P//"
assert b64enc(b"\xf8\xff\xff", url=True) == b"-P__"
def test_b64dec():
assert b64dec(b"TG9yZW0gSXBzdW0="... | 25.333333 | 68 | 0.614035 | 104 | 684 | 3.961538 | 0.298077 | 0.067961 | 0.067961 | 0.097087 | 0.106796 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0.076241 | 0.175439 | 684 | 26 | 69 | 26.307692 | 0.654255 | 0.05117 | 0 | 0 | 0 | 0 | 0.306502 | 0 | 0 | 0 | 0 | 0 | 0.642857 | 1 | 0.285714 | true | 0 | 0.071429 | 0 | 0.357143 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f63ec762524a982c93365419799855d3faab2b09 | 898 | py | Python | jarn/xmpp/collaboration/tests/mock.py | ggozad/jarn.xmpp.collaboration | 95f5e60ec48fbf88f5e98e5acd4629aec4bd6b81 | [
"Apache-2.0"
] | 1 | 2020-09-12T03:50:22.000Z | 2020-09-12T03:50:22.000Z | jarn/xmpp/collaboration/tests/mock.py | ggozad/jarn.xmpp.collaboration | 95f5e60ec48fbf88f5e98e5acd4629aec4bd6b81 | [
"Apache-2.0"
] | null | null | null | jarn/xmpp/collaboration/tests/mock.py | ggozad/jarn.xmpp.collaboration | 95f5e60ec48fbf88f5e98e5acd4629aec4bd6b81 | [
"Apache-2.0"
] | null | null | null | from jarn.xmpp.collaboration.protocol import DifferentialSyncronisationHandler
class MockDifferentialSyncronisationHandler(DifferentialSyncronisationHandler):
"""
A mock implementation of the DifferentialSyncronisationHandler which
contains a sample text node and handles events that are to be overriden
... | 26.411765 | 79 | 0.695991 | 90 | 898 | 6.811111 | 0.511111 | 0.052202 | 0.078303 | 0.052202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218263 | 898 | 34 | 80 | 26.411765 | 0.873219 | 0.224944 | 0 | 0.1875 | 0 | 0 | 0.019757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.1875 | 0.0625 | 0.0625 | 0.5625 | 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 |
f6539c690ff3468e84f1287f78054a4f51025382 | 108 | py | Python | addressformatting/__init__.py | pudo/addressformatting | b50c4af5948c34b5fefca99aba0d893c22903c6a | [
"BSD-3-Clause"
] | 3 | 2021-06-25T14:34:17.000Z | 2021-09-15T08:41:49.000Z | addressformatting/__init__.py | pudo/international_address_formatter | b50c4af5948c34b5fefca99aba0d893c22903c6a | [
"BSD-3-Clause"
] | null | null | null | addressformatting/__init__.py | pudo/international_address_formatter | b50c4af5948c34b5fefca99aba0d893c22903c6a | [
"BSD-3-Clause"
] | null | null | null | from addressformatting.format import AddressFormatter
__version__ = "1.2.0"
__all__ = ["AddressFormatter"]
| 21.6 | 53 | 0.796296 | 11 | 108 | 7.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.101852 | 108 | 4 | 54 | 27 | 0.773196 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 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 |
f653e9cb75186051c5dbf76cf8643ac13ec31885 | 388 | py | Python | sashimmi/adapters/adapter.py | chpatton013/sashimmi | 7c03832eb99dd7e96b59cbd3e4f7267c3819d3e5 | [
"MIT"
] | null | null | null | sashimmi/adapters/adapter.py | chpatton013/sashimmi | 7c03832eb99dd7e96b59cbd3e4f7267c3819d3e5 | [
"MIT"
] | null | null | null | sashimmi/adapters/adapter.py | chpatton013/sashimmi | 7c03832eb99dd7e96b59cbd3e4f7267c3819d3e5 | [
"MIT"
] | null | null | null | import abc
class Adapter(metaclass=abc.ABCMeta):
def __init__(self):
self.actions = []
def adapt(self, action):
self.actions.append(action)
@abc.abstractmethod
def command_line_arguments(self, target, apply_substitutions=False):
pass
@abc.abstractmethod
def environme... | 21.555556 | 72 | 0.685567 | 43 | 388 | 5.976744 | 0.55814 | 0.085603 | 0.155642 | 0.217899 | 0.287938 | 0.287938 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221649 | 388 | 17 | 73 | 22.823529 | 0.850993 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0.083333 | 0 | 0.5 | 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 |
f6556359b29ec45a3edf42825fb64dd74a384c3f | 172 | py | Python | ancilla/ancilla/foundation/node/services/files/__init__.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | 7 | 2020-03-31T19:52:59.000Z | 2021-05-21T08:38:47.000Z | ancilla/ancilla/foundation/node/services/files/__init__.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | 15 | 2020-04-01T13:52:07.000Z | 2020-04-01T13:52:11.000Z | ancilla/ancilla/foundation/node/services/files/__init__.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | null | null | null | '''
__init__.py
files
Created by Kevin Musselman (kmussel@gmail.com) on 11/02/19
Copyright 2019 FrenzyLabs
'''
# from .events import *
from .files import FileService
| 15.636364 | 59 | 0.732558 | 24 | 172 | 5.083333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0.168605 | 172 | 10 | 60 | 17.2 | 0.783217 | 0.732558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f658496167c0a7759a0cc2bbf1c56af548612c42 | 406 | py | Python | vsketch/utils.py | blrm/vsketch | 38bd24e121edb6e654e66c51f0a45005c3e5627e | [
"MIT"
] | null | null | null | vsketch/utils.py | blrm/vsketch | 38bd24e121edb6e654e66c51f0a45005c3e5627e | [
"MIT"
] | null | null | null | vsketch/utils.py | blrm/vsketch | 38bd24e121edb6e654e66c51f0a45005c3e5627e | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
import numpy as np
if TYPE_CHECKING:
import vsketch
class MatrixPopper:
def __init__(self, vsk: "vsketch.Vsketch"):
self._vsk = vsk
def __enter__(self):
pass
def __exit__(self, exc_type, exc_val, exc_tb):
self._vsk.popMatrix()
def complex_... | 18.454545 | 50 | 0.674877 | 58 | 406 | 4.362069 | 0.568966 | 0.083004 | 0.142292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.221675 | 406 | 21 | 51 | 19.333333 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0.036946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.076923 | 0.230769 | 0.076923 | 0.692308 | 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 |
f659dc6b954b2b424c0c7a05ac9aed3464d32e0a | 119 | py | Python | coso.py | StrapBot/imgen | baf49c04d6c4c51c0977f83e8db55dc81576cf1c | [
"MIT"
] | 1 | 2021-01-15T18:03:12.000Z | 2021-01-15T18:03:12.000Z | coso.py | StrapBot/imgen | baf49c04d6c4c51c0977f83e8db55dc81576cf1c | [
"MIT"
] | null | null | null | coso.py | StrapBot/imgen | baf49c04d6c4c51c0977f83e8db55dc81576cf1c | [
"MIT"
] | null | null | null | import rethinkdb as r
r.db_create("imgen")
db = r.db("imgen")
db.table_create("keys")
db.table_create("applications")
| 17 | 31 | 0.731092 | 20 | 119 | 4.2 | 0.5 | 0.071429 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092437 | 119 | 6 | 32 | 19.833333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.218487 | 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 |
f66c8c477c76993ff888ea6d33df484af2d52b2b | 62 | py | Python | DomeBuilder/__init__.py | FJFranklin/DomeBuilder | b286486dd4ff99eacf5754653a0e318f57884c21 | [
"MIT"
] | 1 | 2020-08-04T00:13:54.000Z | 2020-08-04T00:13:54.000Z | BeesEtAl/__init__.py | FJFranklin/BeesEtAl | 3fd21d044e77b4a1df56ac2f405e2084bebd54e1 | [
"MIT"
] | null | null | null | BeesEtAl/__init__.py | FJFranklin/BeesEtAl | 3fd21d044e77b4a1df56ac2f405e2084bebd54e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Francis Franklin
"""
| 12.4 | 26 | 0.5 | 6 | 62 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.225806 | 62 | 4 | 27 | 15.5 | 0.625 | 0.774194 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
f66d8d7ada10b22c1374e1abe67289c8c2ec1b11 | 432 | py | Python | tfbp/helpers/dataset.py | whittlbc/tfbp | 4a67463ca675bde28620a80e35c2e1826035f712 | [
"MIT"
] | null | null | null | tfbp/helpers/dataset.py | whittlbc/tfbp | 4a67463ca675bde28620a80e35c2e1826035f712 | [
"MIT"
] | null | null | null | tfbp/helpers/dataset.py | whittlbc/tfbp | 4a67463ca675bde28620a80e35c2e1826035f712 | [
"MIT"
] | null | null | null | import h5py
from tfbp.helpers.definitions import dataset_path
data = h5py.File(dataset_path, 'r')
def train():
return get_dataset('train')
def val():
return get_dataset('val')
def test():
return get_dataset('test')
def get_dataset(setname):
set = data.get(setname)
if not set:
raise BaseEx... | 16.615385 | 79 | 0.6875 | 62 | 432 | 4.693548 | 0.483871 | 0.137457 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005634 | 0.178241 | 432 | 26 | 80 | 16.615385 | 0.814085 | 0 | 0 | 0 | 0 | 0 | 0.140878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9c8f80fc7c60733ca64a385e10b794fa8a3ca615 | 138 | py | Python | archive_scripts/test.py | jungssi/Komolon | 99567769b8d602e41e8ad27d213a71dbc68cd821 | [
"MIT"
] | 3 | 2021-02-16T20:40:59.000Z | 2021-02-16T20:41:03.000Z | archive_scripts/test.py | jungssi/Komolon | 99567769b8d602e41e8ad27d213a71dbc68cd821 | [
"MIT"
] | null | null | null | archive_scripts/test.py | jungssi/Komolon | 99567769b8d602e41e8ad27d213a71dbc68cd821 | [
"MIT"
] | null | null | null | activate_this = '/var/www/Komolon/active_venv.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))
| 34.5 | 52 | 0.76087 | 21 | 138 | 4.52381 | 0.714286 | 0.378947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094203 | 138 | 3 | 53 | 46 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.224638 | 0.224638 | 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 |
9c921221d45d913ad4ecae8b7a1cb7a62539a7e8 | 773 | py | Python | src/blog/migrations/0011_auto_20190511_1421.py | UmangAndrewFrancis/django_fibonacci_test | d8dbd54a8aaa3e8f17af482e3ee83983cccc555b | [
"MIT"
] | null | null | null | src/blog/migrations/0011_auto_20190511_1421.py | UmangAndrewFrancis/django_fibonacci_test | d8dbd54a8aaa3e8f17af482e3ee83983cccc555b | [
"MIT"
] | null | null | null | src/blog/migrations/0011_auto_20190511_1421.py | UmangAndrewFrancis/django_fibonacci_test | d8dbd54a8aaa3e8f17af482e3ee83983cccc555b | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-05-11 08:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0010_auto_20190403_2108'),
]
operations = [
migrations.AlterModelOptions(
name='blogpost',
options={'ordering': ['-pub... | 22.735294 | 52 | 0.52652 | 63 | 773 | 6.333333 | 0.571429 | 0.150376 | 0.260652 | 0.300752 | 0.421053 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0.06012 | 0.354463 | 773 | 33 | 53 | 23.424242 | 0.739479 | 0.055627 | 0 | 0.481481 | 1 | 0 | 0.156593 | 0.031593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
9cab873fb987a53cacd245393f1e62d7247bdf06 | 706 | py | Python | tests/test_landing_page/test_landing_page.py | alvin-c-cruz/accounting | f16ef16ded3cab36eee7227008ae40856680034d | [
"MIT"
] | 1 | 2022-02-05T13:57:40.000Z | 2022-02-05T13:57:40.000Z | tests/test_landing_page/test_landing_page.py | alvin-c-cruz/accounting | f16ef16ded3cab36eee7227008ae40856680034d | [
"MIT"
] | null | null | null | tests/test_landing_page/test_landing_page.py | alvin-c-cruz/accounting | f16ef16ded3cab36eee7227008ae40856680034d | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.landing_page
class TestLandingPage:
@pytest.mark.smoke
@pytest.mark.user_logged_out
def test_landing_page_home(self, landing_page_html):
assert landing_page_html.status_code == 200
@pytest.mark.user_logged_out
def test_landing_page_home_has_register_link(self, l... | 35.3 | 74 | 0.733711 | 101 | 706 | 4.742574 | 0.306931 | 0.275574 | 0.187891 | 0.175365 | 0.665971 | 0.665971 | 0.665971 | 0.665971 | 0.524008 | 0.524008 | 0 | 0.005025 | 0.154391 | 706 | 19 | 75 | 37.157895 | 0.79732 | 0 | 0 | 0.2 | 0 | 0 | 0.072238 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.333333 | 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 |
9ce269b62d9300c2e6ccc4969511f5cddb7367f5 | 177 | py | Python | finished/edabit/very_easy/return_remainder.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | 8 | 2021-05-29T23:30:12.000Z | 2021-09-24T03:25:44.000Z | finished/edabit/very_easy/return_remainder.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | null | null | null | finished/edabit/very_easy/return_remainder.py | UltiRequiem/daily-python-practice | 31f72c45378be90b8fcadd30d7042819ee551a17 | [
"MIT"
] | 6 | 2021-06-02T14:20:24.000Z | 2021-08-19T00:49:26.000Z | # Return the remainder
def remainder(x: int, y: int) -> int:
return x % y
# remainder_lambda = lambda x, y: x % y
if __name__ == "__main__":
print(remainder(1, 3))
| 14.75 | 39 | 0.615819 | 27 | 177 | 3.703704 | 0.518519 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.242938 | 177 | 11 | 40 | 16.090909 | 0.731343 | 0.327684 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9ce61169232ac06c2b941aec51418d494e64a300 | 135 | py | Python | estatisticas_facebook/pages/apps.py | danieldourado/estatisticas_facebook_django | 67274e647cf9e2261f1a7810cd9862a4040dfc06 | [
"MIT"
] | 2 | 2017-12-22T01:00:22.000Z | 2017-12-22T11:14:40.000Z | estatisticas_facebook/pages/apps.py | danieldourado/estatisticas_facebook_django | 67274e647cf9e2261f1a7810cd9862a4040dfc06 | [
"MIT"
] | 18 | 2017-12-14T12:04:45.000Z | 2022-03-11T23:23:05.000Z | estatisticas_facebook/pages/apps.py | danieldourado/estatisticas_facebook_django | 67274e647cf9e2261f1a7810cd9862a4040dfc06 | [
"MIT"
] | 1 | 2021-03-27T16:18:56.000Z | 2021-03-27T16:18:56.000Z | from django.apps import AppConfig
class PagesConfig(AppConfig):
name = 'estatisticas_facebook.pages'
verbose_name = "Pages"
| 16.875 | 40 | 0.748148 | 15 | 135 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 135 | 7 | 41 | 19.285714 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 0.201493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
140e9a7a95f6f4ecd0d02ea38bdcc88d9bc9c9a0 | 54 | py | Python | fastai/version.py | zhanlliu/fastai_study | 0b136a2fd40cbcea4d51a33efc7e7fee24b5bc08 | [
"Apache-2.0"
] | null | null | null | fastai/version.py | zhanlliu/fastai_study | 0b136a2fd40cbcea4d51a33efc7e7fee24b5bc08 | [
"Apache-2.0"
] | null | null | null | fastai/version.py | zhanlliu/fastai_study | 0b136a2fd40cbcea4d51a33efc7e7fee24b5bc08 | [
"Apache-2.0"
] | null | null | null | __all__ = ['__version__']
__version__ = '1.0.30.dev0'
| 18 | 27 | 0.685185 | 7 | 54 | 3.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0.111111 | 54 | 2 | 28 | 27 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 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 |
141daa6f2cb18623879c0f1148f2b910064d8c62 | 688 | py | Python | app_foods/migrations/0002_alter_food_ispremium_alter_food_promotionendat_and_more.py | potchangelo/django-junraider | 0167bd00d6bdf0a605cc55ba5c2138d872ee2ea6 | [
"MIT"
] | 1 | 2022-03-10T15:07:36.000Z | 2022-03-10T15:07:36.000Z | app_foods/migrations/0002_alter_food_ispremium_alter_food_promotionendat_and_more.py | potchangelo/django-junraider | 0167bd00d6bdf0a605cc55ba5c2138d872ee2ea6 | [
"MIT"
] | null | null | null | app_foods/migrations/0002_alter_food_ispremium_alter_food_promotionendat_and_more.py | potchangelo/django-junraider | 0167bd00d6bdf0a605cc55ba5c2138d872ee2ea6 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-07 10:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_foods', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='food',
name='isPremium',
... | 23.724138 | 53 | 0.55814 | 64 | 688 | 5.90625 | 0.65625 | 0.15873 | 0.198413 | 0.230159 | 0.293651 | 0.293651 | 0 | 0 | 0 | 0 | 0 | 0.043197 | 0.327035 | 688 | 28 | 54 | 24.571429 | 0.773218 | 0.0625 | 0 | 0.409091 | 1 | 0 | 0.094868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
14245885391263a0a96d5548945d2d3838460afd | 443 | py | Python | gradertools/verification/interface.py | david58/gradertools | 61a1b2ed0df7bea7e472a7e5300962a8c1c3710d | [
"MIT"
] | null | null | null | gradertools/verification/interface.py | david58/gradertools | 61a1b2ed0df7bea7e472a7e5300962a8c1c3710d | [
"MIT"
] | null | null | null | gradertools/verification/interface.py | david58/gradertools | 61a1b2ed0df7bea7e472a7e5300962a8c1c3710d | [
"MIT"
] | null | null | null | class VerificateInterface:
def __init__(self, inputfile, outputfile, correctoutput):
self.inputfile = inputfile
self.outputfile = outputfile
self.correctoutput = correctoutput
self._status = None
self._message = None
def verificate(self, isolator):
raise NotImple... | 27.6875 | 61 | 0.670429 | 43 | 443 | 6.674419 | 0.395349 | 0.090592 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264108 | 443 | 16 | 62 | 27.6875 | 0.880368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.153846 | 0.538462 | 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 |
1475aac9e769aec92304f4032cafeb4dc25725c3 | 536 | py | Python | masking/__init__.py | pirsquared/Str2D | 4d7716d60bbf1eeefbeffce5290f6786e52a0b24 | [
"MIT"
] | 1 | 2017-12-29T10:49:17.000Z | 2017-12-29T10:49:17.000Z | masking/__init__.py | pirsquared/Str2D | 4d7716d60bbf1eeefbeffce5290f6786e52a0b24 | [
"MIT"
] | 1 | 2017-12-31T08:07:11.000Z | 2021-01-12T03:19:14.000Z | masking/__init__.py | pirsquared/Str2D | 4d7716d60bbf1eeefbeffce5290f6786e52a0b24 | [
"MIT"
] | 1 | 2017-12-30T10:50:35.000Z | 2017-12-30T10:50:35.000Z | """
stencil.py
a module to produce Stencils and Masks that selectively conceal or reveal
elements of a sequence.
More of a discrete Jacquard than a continuous stencil, but, maybe, the noun
stencil is more universally understood.
# there is wonderful trivia and vocabulary to learn and maybe use here:
# https://en.wiki... | 29.777778 | 75 | 0.811567 | 79 | 536 | 5.468354 | 0.64557 | 0.101852 | 0.101852 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136194 | 536 | 17 | 76 | 31.529412 | 0.933045 | 0.686567 | 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 |
1483795774166401415d5f134e4138475784178e | 223 | py | Python | corehq/messaging/smsbackends/grapevine/urls.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/messaging/smsbackends/grapevine/urls.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/messaging/smsbackends/grapevine/urls.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import *
from .api import GrapevineResource
gvi_resource = GrapevineResource()
urlpatterns = patterns('corehq.messaging.smsbackends.grapevine.views',
url(r'^api/', include(gvi_resource.urls)),
)
| 24.777778 | 70 | 0.7713 | 26 | 223 | 6.538462 | 0.730769 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103139 | 223 | 8 | 71 | 27.875 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.219731 | 0.197309 | 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 |
148bacc13d1a64e705772d16949ccaefe7278628 | 124 | py | Python | dashboard/urls.py | CaveBushman/carssoft | dee50e3dee8a22272a601e31f62afef95e951a8c | [
"MIT"
] | null | null | null | dashboard/urls.py | CaveBushman/carssoft | dee50e3dee8a22272a601e31f62afef95e951a8c | [
"MIT"
] | null | null | null | dashboard/urls.py | CaveBushman/carssoft | dee50e3dee8a22272a601e31f62afef95e951a8c | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path("", views.dashboardView, name = "dashboard" ),
] | 17.714286 | 55 | 0.685484 | 14 | 124 | 6.071429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185484 | 124 | 7 | 56 | 17.714286 | 0.841584 | 0 | 0 | 0 | 0 | 0 | 0.072 | 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 |
14950ce1b1ab98de9b2c0c7252b0bec0abd44339 | 238 | py | Python | source/cards/card_type.py | omerk2511/TakiServer | f162d80e1b48f739c77c31a942416bd60b3f5af6 | [
"MIT"
] | 4 | 2020-10-07T16:50:07.000Z | 2020-10-30T11:27:53.000Z | source/cards/card_type.py | omerk2511/TakiServer | f162d80e1b48f739c77c31a942416bd60b3f5af6 | [
"MIT"
] | 2 | 2020-10-14T16:43:48.000Z | 2020-10-25T12:41:51.000Z | source/cards/card_type.py | omerk2511/TakiServer | f162d80e1b48f739c77c31a942416bd60b3f5af6 | [
"MIT"
] | 1 | 2020-10-10T14:29:51.000Z | 2020-10-10T14:29:51.000Z | class CardType(object):
NUMBER_CARD = 'number_card'
PLUS = 'plus'
PLUS_2 = 'plus_2'
STOP = 'stop'
CHANGE_DIRECTION = 'change_direction'
CHANGE_COLOR = 'change_color'
TAKI = 'taki'
SUPER_TAKI = 'super_taki'
| 23.8 | 41 | 0.642857 | 29 | 238 | 4.931034 | 0.448276 | 0.13986 | 0.293706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.243697 | 238 | 9 | 42 | 26.444444 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0.281513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 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 |
149b34c70fe0f08ae7734fb3fdd4725acff65676 | 2,199 | py | Python | canvas_api_helper.py | calstateteach/movie_upload_aws_lambdas | af8082f66997ced5cc2747611438f4d8934f78f8 | [
"MIT"
] | null | null | null | canvas_api_helper.py | calstateteach/movie_upload_aws_lambdas | af8082f66997ced5cc2747611438f4d8934f78f8 | [
"MIT"
] | null | null | null | canvas_api_helper.py | calstateteach/movie_upload_aws_lambdas | af8082f66997ced5cc2747611438f4d8934f78f8 | [
"MIT"
] | null | null | null | """Module for helper functions that wrap Canvas API call.
06.15.2017 tps Created. Python 2.7.
"""
import canvas_api
######## Constants ##########
# 06.14.2017 Beginning of error message returned by Canvas API for file upload
# operation that fails due to running out of storage for user.
# This string is expected to a... | 38.578947 | 89 | 0.728058 | 336 | 2,199 | 4.598214 | 0.369048 | 0.031068 | 0.025243 | 0.02589 | 0.047896 | 0.047896 | 0.047896 | 0.047896 | 0 | 0 | 0 | 0.011111 | 0.181446 | 2,199 | 56 | 90 | 39.267857 | 0.847222 | 0.51296 | 0 | 0 | 0 | 0.052632 | 0.145281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1afd670cab965708737cb92ddfd14c2da47be6c4 | 59 | py | Python | trutly.py | michal20-meet/meet2018y1lab4 | f4ce53f28a52358a35d321bde4de2141b89c104f | [
"MIT"
] | null | null | null | trutly.py | michal20-meet/meet2018y1lab4 | f4ce53f28a52358a35d321bde4de2141b89c104f | [
"MIT"
] | null | null | null | trutly.py | michal20-meet/meet2018y1lab4 | f4ce53f28a52358a35d321bde4de2141b89c104f | [
"MIT"
] | null | null | null | import turtle
turtle.bgcolor('purple')
sho=turtle.clone()
| 11.8 | 24 | 0.762712 | 8 | 59 | 5.625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 59 | 4 | 25 | 14.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 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 |
1affe26f27f0cd3babb54b83f14c44e30c16b9f7 | 1,053 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/map_buffer_alignment.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/map_buffer_alignment.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/map_buffer_alignment.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension ARB.map_buffer_alignment
This module customises the behaviour of the
OpenGL.raw.GL.ARB.map_buffer_alignment to provide a more
Python-friendly API
Overview (from the spec)
This extension adds a requirement to the pointer returned by MapBuffer
and MapBufferRange that they provide a minimum of ... | 35.1 | 71 | 0.811966 | 150 | 1,053 | 5.593333 | 0.526667 | 0.071514 | 0.071514 | 0.125149 | 0.13826 | 0.13826 | 0.13826 | 0.100119 | 0.100119 | 0 | 0 | 0.002195 | 0.134853 | 1,053 | 30 | 72 | 35.1 | 0.918771 | 0.644824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 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 |
2100859ee6d45ea2c98adda22d2f70bc2eff42f4 | 134 | py | Python | core/apps.py | open-contracting/data-registry | 5a73e7f2334c6af5be23070493842b494b3e5357 | [
"BSD-3-Clause"
] | null | null | null | core/apps.py | open-contracting/data-registry | 5a73e7f2334c6af5be23070493842b494b3e5357 | [
"BSD-3-Clause"
] | 170 | 2021-02-12T12:52:37.000Z | 2022-03-28T14:37:05.000Z | core/apps.py | open-contracting/data-registry | 5a73e7f2334c6af5be23070493842b494b3e5357 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.admin.apps import AdminConfig
class CoreAdminConfig(AdminConfig):
default_site = "core.admin.CoreAdminSite"
| 22.333333 | 49 | 0.80597 | 15 | 134 | 7.133333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11194 | 134 | 5 | 50 | 26.8 | 0.89916 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
21148d2efacd8f699f8054ebbd3fa825b59d8201 | 2,820 | py | Python | lgp/models/alfred/hlsm/transformer_modules/positional_encodings.py | dingmyu/hlsm | 628702789d910f745c74e738efbdd65f0fdb654b | [
"BSD-3-Clause"
] | null | null | null | lgp/models/alfred/hlsm/transformer_modules/positional_encodings.py | dingmyu/hlsm | 628702789d910f745c74e738efbdd65f0fdb654b | [
"BSD-3-Clause"
] | null | null | null | lgp/models/alfred/hlsm/transformer_modules/positional_encodings.py | dingmyu/hlsm | 628702789d910f745c74e738efbdd65f0fdb654b | [
"BSD-3-Clause"
] | null | null | null | import torch
from lgp.ops.misc import batch_id_to_range
def positional_encoding_1d_flat(x: torch.tensor, batch_id: torch.tensor):
b, c = x.shape
assert c % 2 == 0
inv_freq = 1.0 / (10000 ** (torch.arange(0, c, 2, device=x.device).float() / c))
pos_b = batch_id_to_range(batch_id, x.device, x.dtype)
... | 38.630137 | 91 | 0.596454 | 521 | 2,820 | 3.024952 | 0.107486 | 0.079949 | 0.053299 | 0.057741 | 0.818528 | 0.729695 | 0.676396 | 0.676396 | 0.653553 | 0.600888 | 0 | 0.035205 | 0.204255 | 2,820 | 72 | 92 | 39.166667 | 0.667112 | 0 | 0 | 0.360656 | 0 | 0 | 0.017376 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.065574 | false | 0 | 0.032787 | 0 | 0.163934 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
212f52a60a50e08499eff13a476d0a2a081afc89 | 127 | py | Python | src/main/resources/docs/tests/W0108.py | h314to/codacy-pylint | 9d31567db6188e1b31ce0e1567998f64946502df | [
"Apache-2.0"
] | null | null | null | src/main/resources/docs/tests/W0108.py | h314to/codacy-pylint | 9d31567db6188e1b31ce0e1567998f64946502df | [
"Apache-2.0"
] | null | null | null | src/main/resources/docs/tests/W0108.py | h314to/codacy-pylint | 9d31567db6188e1b31ce0e1567998f64946502df | [
"Apache-2.0"
] | null | null | null | ##Patterns: W0108
def foo():
return 42
##Warn: W0108
f = lambda: foo() # should be f = foo()
h = lambda (bar): bar + 1
| 12.7 | 40 | 0.566929 | 20 | 127 | 3.6 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 0.259843 | 127 | 9 | 41 | 14.111111 | 0.648936 | 0.362205 | 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 |
21569260299d38dd87da6bef3517409c1bb4768a | 105 | py | Python | src/oscar/apps/search/signals.py | iicc/django-oscar | 67ebe6bc21c242e9b0750b9f306b2f46a2758199 | [
"BSD-3-Clause"
] | 68 | 2016-11-06T05:07:57.000Z | 2021-12-17T09:17:38.000Z | src/oscar/apps/search/signals.py | iicc/django-oscar | 67ebe6bc21c242e9b0750b9f306b2f46a2758199 | [
"BSD-3-Clause"
] | 11 | 2019-12-21T06:06:48.000Z | 2022-01-13T01:41:33.000Z | src/oscar/apps/search/signals.py | iicc/django-oscar | 67ebe6bc21c242e9b0750b9f306b2f46a2758199 | [
"BSD-3-Clause"
] | 28 | 2016-12-04T07:12:50.000Z | 2021-02-06T21:13:15.000Z | from django.dispatch import Signal
user_search = Signal(providing_args=["session_id", "user", "query"])
| 26.25 | 68 | 0.761905 | 14 | 105 | 5.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 105 | 3 | 69 | 35 | 0.810526 | 0 | 0 | 0 | 0 | 0 | 0.180952 | 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 |
216be046e74d3203a03690d6c255988f7bf7643c | 164 | py | Python | primaryschool/__init__.py | larryw3i/primaryschool | ca2b1f2dfa042a31c2119a5098a87c441fbbbbbe | [
"MIT"
] | null | null | null | primaryschool/__init__.py | larryw3i/primaryschool | ca2b1f2dfa042a31c2119a5098a87c441fbbbbbe | [
"MIT"
] | null | null | null | primaryschool/__init__.py | larryw3i/primaryschool | ca2b1f2dfa042a31c2119a5098a87c441fbbbbbe | [
"MIT"
] | null | null | null | import importlib
import os
project_path = os.path.abspath(os.path.dirname(__file__))
def victory():
from primaryschool import ready
ready.go()
pass
| 13.666667 | 57 | 0.719512 | 22 | 164 | 5.136364 | 0.681818 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189024 | 164 | 11 | 58 | 14.909091 | 0.849624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
dced59bb8300ffc1074392f947fb3d2e2ec10c10 | 317 | py | Python | el/app/utils/read_dump.py | deepakxyz/Edna | 825393c6ca88bb31d35cc4c369ea7042b9048fcb | [
"MIT"
] | 2 | 2021-08-31T23:23:11.000Z | 2022-03-07T03:18:01.000Z | el/app/utils/read_dump.py | deepakxyz/Elna | 825393c6ca88bb31d35cc4c369ea7042b9048fcb | [
"MIT"
] | null | null | null | el/app/utils/read_dump.py | deepakxyz/Elna | 825393c6ca88bb31d35cc4c369ea7042b9048fcb | [
"MIT"
] | null | null | null | import json
# Read json
def read_json(json_file_path):
with open(json_file_path, 'r') as rf:
data = rf.read()
data_json = json.loads(data)
return data_json
# Dump json
def dump_json(json_file_path, data):
with open(json_file_path, 'w') as wf:
json.dump(data, wf, indent=4)
| 19.8125 | 41 | 0.643533 | 52 | 317 | 3.692308 | 0.365385 | 0.166667 | 0.25 | 0.166667 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.246057 | 317 | 15 | 42 | 21.133333 | 0.799163 | 0.059937 | 0 | 0 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
dcf3ac8e43107fe4415e875619ffe9570ca17c58 | 468 | py | Python | API/models/connect_to_cluster.py | rkk09c/TrueCarInterview | ad78767522f183067f0216b410c6893ea412d242 | [
"Apache-2.0"
] | null | null | null | API/models/connect_to_cluster.py | rkk09c/TrueCarInterview | ad78767522f183067f0216b410c6893ea412d242 | [
"Apache-2.0"
] | null | null | null | API/models/connect_to_cluster.py | rkk09c/TrueCarInterview | ad78767522f183067f0216b410c6893ea412d242 | [
"Apache-2.0"
] | null | null | null | from cqlengine import connection
from config import cassandra_cluster_ip, cassandra_default_keyspace
class Conn:
def __init__(self):
"""
This class will create a connection with CQLEngine to
the cassandra db provided in the config file. Will not
reactivate a session if one is activ... | 33.428571 | 80 | 0.709402 | 59 | 468 | 5.40678 | 0.627119 | 0.100313 | 0.112853 | 0.169279 | 0.263323 | 0.263323 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24359 | 468 | 13 | 81 | 36 | 0.90113 | 0.32906 | 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 | 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 |
0d0207e4375258053fd37dc020dc190038e9c8df | 419 | py | Python | illud/exceptions/buffer_has_no_end_exception.py | AustinScola/illud | a6aca1de38bbe9d5a795aaa084bcbd6731767d18 | [
"MIT"
] | 1 | 2020-12-05T00:59:15.000Z | 2020-12-05T00:59:15.000Z | illud/exceptions/buffer_has_no_end_exception.py | AustinScola/illud | a6aca1de38bbe9d5a795aaa084bcbd6731767d18 | [
"MIT"
] | 112 | 2021-01-15T21:42:27.000Z | 2021-04-17T19:11:21.000Z | illud/exceptions/buffer_has_no_end_exception.py | AustinScola/illud | a6aca1de38bbe9d5a795aaa084bcbd6731767d18 | [
"MIT"
] | null | null | null | """Raised when a buffer buffer does not have an ending index because it is empty."""
from illud.exception import IlludException
class BufferHasNoEndException(IlludException):
"""Raised when a buffer buffer does not have an ending index because it is empty."""
def __init__(self) -> None:
message: str =... | 41.9 | 88 | 0.725537 | 59 | 419 | 5.016949 | 0.491525 | 0.101351 | 0.131757 | 0.172297 | 0.581081 | 0.581081 | 0.581081 | 0.581081 | 0.581081 | 0.581081 | 0 | 0 | 0.195704 | 419 | 9 | 89 | 46.555556 | 0.878338 | 0.374702 | 0 | 0 | 0 | 0 | 0.243028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0d463050f6926e50f554bc761778bf3fa74aea22 | 348 | py | Python | syspass_api_client/__version__.py | sebagarayco/syspass-api-client-python | f2c77029f3ed4c9c5c61a8344909196455fb56dc | [
"Apache-2.0"
] | null | null | null | syspass_api_client/__version__.py | sebagarayco/syspass-api-client-python | f2c77029f3ed4c9c5c61a8344909196455fb56dc | [
"Apache-2.0"
] | null | null | null | syspass_api_client/__version__.py | sebagarayco/syspass-api-client-python | f2c77029f3ed4c9c5c61a8344909196455fb56dc | [
"Apache-2.0"
] | null | null | null | __title__ = 'syspass-api-client'
__description__ = 'sysPass API client library for Python.'
__url__ = 'https://github.com/sysPass/syspass-api-client-python'
__version__ = '0.1.3'
__build__ = 19090601
__author__ = 'Rubén Domínguez'
__author_email__ = 'nuxsmin@syspass.org'
__license__ = 'Apache 2.0'
__copyright__ = 'Copy... | 34.8 | 64 | 0.772989 | 43 | 348 | 5.395349 | 0.674419 | 0.12931 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054662 | 0.106322 | 348 | 9 | 65 | 38.666667 | 0.691318 | 0 | 0 | 0 | 0 | 0 | 0.537356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.444444 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b4a8b08ad712ca1844d0e75b57b541cd7c45055a | 228 | py | Python | hearts_stt/scripts/list_mics.py | HeartsBRL/hearts_hri | 1e2cbfbe7076ff7c620a3b439092afea87d03760 | [
"MIT"
] | null | null | null | hearts_stt/scripts/list_mics.py | HeartsBRL/hearts_hri | 1e2cbfbe7076ff7c620a3b439092afea87d03760 | [
"MIT"
] | null | null | null | hearts_stt/scripts/list_mics.py | HeartsBRL/hearts_hri | 1e2cbfbe7076ff7c620a3b439092afea87d03760 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import speech_recognition as sr
for index, name in enumerate(sr.Microphone.list_microphone_names()):
print("Microphone with name \"{1}\" found for 'microphone (device_index={0})'".format(index, name) )
| 32.571429 | 106 | 0.72807 | 32 | 228 | 5.0625 | 0.71875 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.122807 | 228 | 6 | 107 | 38 | 0.8 | 0.070175 | 0 | 0 | 0 | 0 | 0.303318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b4ac9d7134a5874a7bd3120a84984c5dbc08131b | 1,122 | py | Python | lexy/readers.py | aminekaabachi/lexy | fdee8a7e97f518ee1eee072ff96b56b6f0e14702 | [
"MIT"
] | null | null | null | lexy/readers.py | aminekaabachi/lexy | fdee8a7e97f518ee1eee072ff96b56b6f0e14702 | [
"MIT"
] | null | null | null | lexy/readers.py | aminekaabachi/lexy | fdee8a7e97f518ee1eee072ff96b56b6f0e14702 | [
"MIT"
] | null | null | null |
from typing import Union
import pandas as pd
from lexy.core.glossary import Glossary
from lexy.core.reader import BaseReader
class CSVReader(BaseReader):
source_type: str = "CSV"
def _prepare_df(self, **options) -> pd.DataFrame:
super()._prepare_df(**options)
return pd.read_csv(filepath_or_b... | 37.4 | 141 | 0.735294 | 145 | 1,122 | 5.489655 | 0.282759 | 0.056533 | 0.030151 | 0.057789 | 0.434673 | 0.434673 | 0.434673 | 0.319095 | 0.319095 | 0.319095 | 0 | 0.001035 | 0.139037 | 1,122 | 29 | 142 | 38.689655 | 0.822981 | 0 | 0 | 0.222222 | 0 | 0 | 0.063336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.888889 | 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 |
b4bbaabc4f97d913adc44182579a855fa84be67b | 320 | py | Python | doping_test/Input.py | Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool | eb359ba618f0022dcd403edc99904f3ef2940e65 | [
"MIT"
] | null | null | null | doping_test/Input.py | Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool | eb359ba618f0022dcd403edc99904f3ef2940e65 | [
"MIT"
] | null | null | null | doping_test/Input.py | Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool | eb359ba618f0022dcd403edc99904f3ef2940e65 | [
"MIT"
] | null | null | null | class Input(object):
"""This class represents inputs. Mainly, this class used to be able to distinguish between inputs and outputs."""
def __init__(self, value):
super(Input, self).__init__()
self.value = value
def __str__(self):
return 'in(' + str(self.value) + ')'
def __repr__(self):
return str(self) | 26.666667 | 114 | 0.69375 | 45 | 320 | 4.577778 | 0.533333 | 0.131068 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 320 | 12 | 115 | 26.666667 | 0.777358 | 0.334375 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.