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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ff4a34f6c2b66d252c8ef998148e6563c577d44 | 2,371 | py | Python | tickets/forms.py | ptrcktylr/splat-issue-tracker | 8119a59d0982966708f83d83de27da68aafd8ef9 | [
"MIT"
] | 1 | 2021-03-28T19:03:39.000Z | 2021-03-28T19:03:39.000Z | tickets/forms.py | ptrcktylr/splat-issue-tracker | 8119a59d0982966708f83d83de27da68aafd8ef9 | [
"MIT"
] | null | null | null | tickets/forms.py | ptrcktylr/splat-issue-tracker | 8119a59d0982966708f83d83de27da68aafd8ef9 | [
"MIT"
] | null | null | null | from django import forms
from django.forms import fields, widgets
from .models import Comment, Ticket, Attachment
class TicketFormWithProject(forms.ModelForm):
class Meta:
model = Ticket
fields = ('title', 'description', 'type', 'priority')
widget = {
'title': forms.TextInput(a... | 37.634921 | 88 | 0.574019 | 228 | 2,371 | 5.960526 | 0.162281 | 0.147167 | 0.206034 | 0.309051 | 0.780721 | 0.710817 | 0.652686 | 0.623252 | 0.558499 | 0.558499 | 0 | 0 | 0.23914 | 2,371 | 63 | 89 | 37.634921 | 0.753326 | 0 | 0 | 0.54717 | 0 | 0 | 0.258853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27267fdaa927c9a7b7355711bec9c0e69f13217b | 173 | py | Python | guessme/guessme.py | ctf-team/hacktoberfest-ctf-2020 | ddd0ba9cf334ce3740f4d2ff485a2afcbc86e504 | [
"Apache-2.0"
] | 1 | 2020-10-29T02:17:51.000Z | 2020-10-29T02:17:51.000Z | guessme/guessme.py | ThrDev/hacktoberfest-ctf-2020 | 6407d9e95eee69658444c375fcca5aeff0ddc9dd | [
"Apache-2.0"
] | null | null | null | guessme/guessme.py | ThrDev/hacktoberfest-ctf-2020 | 6407d9e95eee69658444c375fcca5aeff0ddc9dd | [
"Apache-2.0"
] | 4 | 2020-10-27T23:27:57.000Z | 2020-10-29T02:17:52.000Z | while True:
x = input("Please guess the password: ")
if x == "changeme":
print("Correct!")
break
else:
print("Please try again.") | 21.625 | 45 | 0.508671 | 19 | 173 | 4.631579 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358382 | 173 | 8 | 46 | 21.625 | 0.792793 | 0 | 0 | 0 | 0 | 0 | 0.359281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
27419804b5d8433478abb695d93849c8b3895945 | 328 | py | Python | unbrake-api/unbrake_api/management/commands/fix.py | fga-eps-mds/2019.1-Simulador-de-Frenagem | a7452511fa7059121cd9035a7b21f3cd8fec1548 | [
"MIT"
] | 9 | 2019-03-23T02:56:08.000Z | 2019-08-29T21:32:00.000Z | unbrake-api/unbrake_api/management/commands/fix.py | fga-eps-mds/2019.1-Simulador-de-Frenagem | a7452511fa7059121cd9035a7b21f3cd8fec1548 | [
"MIT"
] | 260 | 2019-03-23T01:07:29.000Z | 2022-03-29T16:31:48.000Z | unbrake-api/unbrake_api/management/commands/fix.py | fga-eps-mds/2019.1-Simulador-de-Frenagem | a7452511fa7059121cd9035a7b21f3cd8fec1548 | [
"MIT"
] | 2 | 2019-05-07T03:39:58.000Z | 2019-09-09T07:02:11.000Z | '''
Link check_format script to a manage.py commanD
'''
from django.core.management import BaseCommand
from ._script import run_script
class Command(BaseCommand):
'''
Fix some formatting fixes
'''
help = "Fix some formatting fixes"
def handle(self, *args, **options):
run_script('./script... | 19.294118 | 47 | 0.679878 | 41 | 328 | 5.341463 | 0.682927 | 0.082192 | 0.155251 | 0.200913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207317 | 328 | 16 | 48 | 20.5 | 0.842308 | 0.222561 | 0 | 0 | 0 | 0 | 0.163793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
27613f98d6b3a9ea73ddbb7b626fb8481836f439 | 119 | py | Python | src/gameSettings/SpeedFallingConstants.py | DaDudek/Tetris | b3848132fd315e883e714e1882ec4bfd38b890e1 | [
"MIT"
] | 2 | 2022-01-16T20:44:08.000Z | 2022-01-18T13:41:32.000Z | src/gameSettings/SpeedFallingConstants.py | DaDudek/Tetris | b3848132fd315e883e714e1882ec4bfd38b890e1 | [
"MIT"
] | null | null | null | src/gameSettings/SpeedFallingConstants.py | DaDudek/Tetris | b3848132fd315e883e714e1882ec4bfd38b890e1 | [
"MIT"
] | null | null | null | SPEED_FALLING = 1000
SPEED_FALLING_SPEED_UP_INTERVAL = 10000
SPEED_FALLING_INCREASE = 50
SPEED_FALLING_MAX_SPEED = 200
| 23.8 | 39 | 0.865546 | 18 | 119 | 5.166667 | 0.555556 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130841 | 0.10084 | 119 | 4 | 40 | 29.75 | 0.738318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
276b8f9ce5681a930b825d79bcffec74e180699e | 365 | py | Python | Python3/0844-Backspace-String-Compare/soln.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0844-Backspace-String-Compare/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0844-Backspace-String-Compare/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | import functools
class Solution:
def backspaceCompare(self, S, T):
"""
:type S: str
:type T: str
:rtype: bool
"""
def back(stack, c):
if c != '#': stack.append(c)
elif stack: stack.pop()
return stack
return functools.reduce(... | 28.076923 | 77 | 0.493151 | 41 | 365 | 4.390244 | 0.536585 | 0.166667 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.367123 | 365 | 13 | 77 | 28.076923 | 0.779221 | 0.10411 | 0 | 0 | 0 | 0 | 0.003472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
276f72bc0eb18cc2ef2c6d59294cba2276cd91f0 | 2,133 | py | Python | tests/app_tests.py | FarmBot-Labs/farmware-tools | e683a254c3acb7869bec6eb74d56e8e2cd8ac0d6 | [
"MIT"
] | 5 | 2018-04-25T00:31:34.000Z | 2021-04-17T16:31:22.000Z | tests/app_tests.py | FarmBot-Labs/farmware-tools | e683a254c3acb7869bec6eb74d56e8e2cd8ac0d6 | [
"MIT"
] | 1 | 2019-05-21T16:05:18.000Z | 2019-05-22T00:02:18.000Z | tests/app_tests.py | FarmBot-Labs/farmware-tools | e683a254c3acb7869bec6eb74d56e8e2cd8ac0d6 | [
"MIT"
] | 1 | 2019-05-12T12:41:38.000Z | 2019-05-12T12:41:38.000Z | #!/usr/bin/env python
'''Farmware Tools Tests: app'''
from __future__ import print_function
import time
from farmware_tools import app
def run_tests(app_login):
'Run app tests.'
TIMESTAMP = str(int(time.time()))
print(app.log('hi', get_info=app_login))
print(app.request('GET', 'tools', get_info=app_l... | 44.4375 | 77 | 0.66948 | 319 | 2,133 | 4.200627 | 0.225705 | 0.155224 | 0.186567 | 0.279851 | 0.56194 | 0.505224 | 0.425373 | 0.265672 | 0.183582 | 0.126866 | 0 | 0.014053 | 0.165963 | 2,133 | 47 | 78 | 45.382979 | 0.739179 | 0.028598 | 0 | 0.047619 | 0 | 0 | 0.122537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.071429 | 0 | 0.095238 | 0.595238 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
276fe96d97427fc5764f56b9297947bebaa630e1 | 355 | py | Python | segmentation/commands/common.py | sofroniewn/pytorch-segmentation | 0d2c6f874ed10973b860fe99b557baa691d584b7 | [
"MIT"
] | 1 | 2019-12-06T03:11:28.000Z | 2019-12-06T03:11:28.000Z | segmentation/commands/common.py | sofroniewn/pytorch-segmentation | 0d2c6f874ed10973b860fe99b557baa691d584b7 | [
"MIT"
] | null | null | null | segmentation/commands/common.py | sofroniewn/pytorch-segmentation | 0d2c6f874ed10973b860fe99b557baa691d584b7 | [
"MIT"
] | null | null | null | import click
def success(msg):
click.echo('[' + click.style('success', fg='green') + '] ' + msg)
def status(msg):
click.echo('[' + click.style('status', fg='blue') + '] ' + msg)
def error(msg):
click.echo('[' + click.style('error', fg='red') + '] ' + msg)
def warn(msg):
click.echo('[' + click.style(... | 25.357143 | 69 | 0.543662 | 46 | 355 | 4.195652 | 0.326087 | 0.165803 | 0.248705 | 0.352332 | 0.455959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185915 | 355 | 13 | 70 | 27.307692 | 0.66782 | 0 | 0 | 0 | 0 | 0 | 0.146479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0 | 0.555556 | 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 |
2776a9d1adec7b0291c63fdca01df4bc1bded695 | 2,516 | py | Python | fruits/crisper/datadict/_DataContainer.py | lesniak43/ananas | 2b5989dcb21464aa9dcdce0a758d009ee430a076 | [
"MIT"
] | null | null | null | fruits/crisper/datadict/_DataContainer.py | lesniak43/ananas | 2b5989dcb21464aa9dcdce0a758d009ee430a076 | [
"MIT"
] | null | null | null | fruits/crisper/datadict/_DataContainer.py | lesniak43/ananas | 2b5989dcb21464aa9dcdce0a758d009ee430a076 | [
"MIT"
] | null | null | null | import numpy as np
from copy import deepcopy
from ._Backend import Backend
class DataContainer:
def __getitem__(self, key):
raise NotImplementedError()
@property
def obj(self):
if isinstance(self._obj, Backend):
return self._obj.load()
else:
return self._obj... | 27.648352 | 102 | 0.616057 | 321 | 2,516 | 4.411215 | 0.208723 | 0.088983 | 0.044492 | 0.048023 | 0.345339 | 0.292373 | 0.24435 | 0.227401 | 0.227401 | 0.227401 | 0 | 0.004862 | 0.264308 | 2,516 | 90 | 103 | 27.955556 | 0.76013 | 0.008744 | 0 | 0.392405 | 0 | 0 | 0.026495 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 1 | 0.278481 | false | 0 | 0.037975 | 0.177215 | 0.632911 | 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 |
277ba5e45977ef576e7574a233e759c5442184db | 11,517 | py | Python | src/msva_models.py | sherzod-hakimov/MSVA | 0bc1af18f12e11fb5784385e80997dd4a6084b46 | [
"MIT"
] | null | null | null | src/msva_models.py | sherzod-hakimov/MSVA | 0bc1af18f12e11fb5784385e80997dd4a6084b46 | [
"MIT"
] | null | null | null | src/msva_models.py | sherzod-hakimov/MSVA | 0bc1af18f12e11fb5784385e80997dd4a6084b46 | [
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
class LayerNorm(nn.Module):
def __init__(self, features, eps=1e-6):
super(LayerNorm, self).__init__()
self.gamma = nn.Parameter(torch.ones(features))
self.beta = nn.Parameter(torch.zeros(features))
self.eps = eps
... | 42.655556 | 161 | 0.604411 | 1,758 | 11,517 | 3.716724 | 0.088168 | 0.075298 | 0.051729 | 0.055096 | 0.766912 | 0.739822 | 0.684267 | 0.679369 | 0.670187 | 0.660545 | 0 | 0.035714 | 0.268212 | 11,517 | 270 | 162 | 42.655556 | 0.739559 | 0 | 0 | 0.477733 | 0 | 0 | 0.008965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004049 | 0.012146 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
277c0719115403d7bfd2d6c3a2e6d6856831d13f | 222 | py | Python | Tuples_and_Sets/01_count_same_values.py | MihailMarkovski/Python-Advanced-2020 | 8edea78cbe5588a409ba9bc3767861250f58c1a6 | [
"MIT"
] | 4 | 2020-09-19T13:53:19.000Z | 2020-11-01T18:34:53.000Z | Tuples_and_Sets/01_count_same_values.py | MNikov/Python-Advanced-September-2020 | 1d65039de7f094d908411afffa8aee9689ab4220 | [
"MIT"
] | null | null | null | Tuples_and_Sets/01_count_same_values.py | MNikov/Python-Advanced-September-2020 | 1d65039de7f094d908411afffa8aee9689ab4220 | [
"MIT"
] | null | null | null | def count_num_occurrences(nums):
num_dict = {n: 0 for n in nums}
for n in nums:
num_dict[n] += 1
[print(f'{float(n)} - {t} times') for n, t in num_dict.items()]
count_num_occurrences(input().split())
| 24.666667 | 67 | 0.617117 | 39 | 222 | 3.333333 | 0.487179 | 0.161538 | 0.292308 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.220721 | 222 | 8 | 68 | 27.75 | 0.739884 | 0 | 0 | 0 | 0 | 0 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 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 |
277fd04b2d0eee2bee6f3d1cbfc7130aa3549123 | 349 | py | Python | tests/fixtures/plugins/gemstones_inc/workflows/analyze_gemstone_workflow.py | withrocks/commonlims | d8a925c917aa26e8205fefb3966a9f49f8f2e2f8 | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | tests/fixtures/plugins/gemstones_inc/workflows/analyze_gemstone_workflow.py | withrocks/commonlims | d8a925c917aa26e8205fefb3966a9f49f8f2e2f8 | [
"BSD-3-Clause"
] | 99 | 2019-05-20T14:16:33.000Z | 2021-01-19T09:25:15.000Z | tests/fixtures/plugins/gemstones_inc/workflows/analyze_gemstone_workflow.py | withrocks/commonlims | d8a925c917aa26e8205fefb3966a9f49f8f2e2f8 | [
"BSD-3-Clause"
] | 1 | 2020-08-10T07:55:40.000Z | 2020-08-10T07:55:40.000Z | from clims.workflow import CamundaWorkflow
class AnalyzeGemstoneWorkflow(CamundaWorkflow):
"""
A workflow for analyzing gemstones.
Since this is a CamundaWorkflow, the workflow itself is defined mostly in the associated .bpmn
file (same name, different extension).
"""
pass
class Sub1(Analyz... | 21.8125 | 98 | 0.74212 | 38 | 349 | 6.815789 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.200573 | 349 | 15 | 99 | 23.266667 | 0.924731 | 0.487106 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.4 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
27f93b73847740abb55ac05dc7b24f174815ec82 | 534 | py | Python | dowhy/interpreters/visual_interpreter.py | Sid-darthvader/dowhy | 535cdb47d7eed8988573770769ecea3856180b48 | [
"MIT"
] | 2,904 | 2019-05-07T08:09:33.000Z | 2022-03-31T18:28:41.000Z | dowhy/interpreters/visual_interpreter.py | Sid-darthvader/dowhy | 535cdb47d7eed8988573770769ecea3856180b48 | [
"MIT"
] | 238 | 2019-05-11T02:57:22.000Z | 2022-03-31T23:47:18.000Z | dowhy/interpreters/visual_interpreter.py | Sid-darthvader/dowhy | 535cdb47d7eed8988573770769ecea3856180b48 | [
"MIT"
] | 527 | 2019-05-08T16:23:45.000Z | 2022-03-30T21:02:41.000Z | from dowhy.interpreter import Interpreter
class VisualInterpreter(Interpreter):
"""Base class for interpreters that show plots or visualizations as output.
"""
def __init__(self, instance, **kwargs):
super().__init__(instance, **kwargs)
def show(self, interpret_plot):
"""Display the i... | 26.7 | 79 | 0.662921 | 56 | 534 | 6.142857 | 0.732143 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256554 | 534 | 19 | 80 | 28.105263 | 0.866499 | 0.421348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7e0331c950babe8ed74fd65242008e7d47b45eb6 | 252 | py | Python | sqla_taskq/examples/funcs.py | LeResKP/taskq | db0ff65487595d424607a3a645234c71ec380e29 | [
"MIT"
] | 1 | 2021-09-12T15:06:35.000Z | 2021-09-12T15:06:35.000Z | sqla_taskq/examples/funcs.py | LeResKP/taskq | db0ff65487595d424607a3a645234c71ec380e29 | [
"MIT"
] | null | null | null | sqla_taskq/examples/funcs.py | LeResKP/taskq | db0ff65487595d424607a3a645234c71ec380e29 | [
"MIT"
] | 1 | 2020-12-19T02:20:44.000Z | 2020-12-19T02:20:44.000Z | import time
def test_func1(*args, **kw):
print 'test_func1 called'
time.sleep(2)
print 'test_func1 done'
return 1
def test_func2(*args, **kw):
print 'test_func2 called'
time.sleep(4)
print 'test_func2 done'
return 2
| 15.75 | 29 | 0.642857 | 38 | 252 | 4.105263 | 0.421053 | 0.230769 | 0.141026 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.246032 | 252 | 15 | 30 | 16.8 | 0.768421 | 0 | 0 | 0 | 0 | 0 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.363636 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd7c78df342171b3244b1ca2c25286afe7eee080 | 1,258 | py | Python | monai/deploy/core/datastores/memory.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 28 | 2021-09-17T18:16:42.000Z | 2022-03-31T16:32:36.000Z | monai/deploy/core/datastores/memory.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 109 | 2021-09-17T18:34:31.000Z | 2022-03-31T21:04:35.000Z | monai/deploy/core/datastores/memory.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 11 | 2021-09-17T20:23:31.000Z | 2022-03-29T08:55:19.000Z | # Copyright 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | 33.105263 | 74 | 0.700318 | 177 | 1,258 | 4.909605 | 0.525424 | 0.088608 | 0.069045 | 0.036824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.208267 | 1,258 | 37 | 75 | 34 | 0.864458 | 0.439587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0.117647 | 0.235294 | 0.823529 | 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 |
fd85764432d3575307ff2d6903004e87502f2b5c | 1,776 | py | Python | tests/test_disjoint.py | TLESORT/Continual_Learning_Data_Former | 51b43d770d97e441bb6e63e0a568c2f3d5bc8866 | [
"MIT"
] | 34 | 2019-07-25T13:22:29.000Z | 2021-04-25T02:12:04.000Z | tests/test_disjoint.py | TLESORT/Continual_Learning_Data_Former | 51b43d770d97e441bb6e63e0a568c2f3d5bc8866 | [
"MIT"
] | null | null | null | tests/test_disjoint.py | TLESORT/Continual_Learning_Data_Former | 51b43d770d97e441bb6e63e0a568c2f3d5bc8866 | [
"MIT"
] | 4 | 2019-07-26T03:24:27.000Z | 2020-06-13T08:01:37.000Z | import pytest
from tests.utils_tests import check_task_sequences_files
from continuum.disjoint import Disjoint
import os
dataset_size = 100
dir_data = "./Archives"
#@pytest.mark.parametrize("datasets", ["mnist", "fashion", "kmnist","cifar10","LSUN","core50"])
@pytest.mark.skip(reason="Too memory hungry")
@pytest.mar... | 45.538462 | 115 | 0.746059 | 245 | 1,776 | 5.244898 | 0.289796 | 0.077821 | 0.114397 | 0.053697 | 0.722179 | 0.722179 | 0.722179 | 0.686381 | 0.686381 | 0.686381 | 0 | 0.013889 | 0.108108 | 1,776 | 38 | 116 | 46.736842 | 0.797348 | 0.190878 | 0 | 0.307692 | 0 | 0 | 0.123776 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.115385 | false | 0 | 0.153846 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fda3ae0e2837bc7c74df28cad6a49cce721736f4 | 517 | py | Python | prometheus_push_client/transports/base.py | gistart/prometheus-push-client | fcaddb31e81d5c04d86c01d219f73b7d2e1736ed | [
"Apache-2.0"
] | 11 | 2021-05-11T16:37:19.000Z | 2022-03-30T21:46:21.000Z | prometheus_push_client/transports/base.py | gistart/prometheus-push-client | fcaddb31e81d5c04d86c01d219f73b7d2e1736ed | [
"Apache-2.0"
] | 2 | 2021-05-12T21:59:54.000Z | 2021-05-15T17:50:10.000Z | prometheus_push_client/transports/base.py | gistart/prometheus-push-client | fcaddb31e81d5c04d86c01d219f73b7d2e1736ed | [
"Apache-2.0"
] | 3 | 2021-05-25T00:51:58.000Z | 2021-09-01T02:35:02.000Z | """
For documentation purposes
"""
class BaseSyncTransport: # pragma: no cover
def start(self):
raise NotImplementedError()
def stop(self):
raise NotImplementedError()
def push_all(self, iterable):
raise NotImplementedError()
class BaseAsyncTransport: # pragma: no cover
a... | 20.68 | 45 | 0.669246 | 50 | 517 | 6.88 | 0.38 | 0.418605 | 0.325581 | 0.098837 | 0.709302 | 0.267442 | 0.267442 | 0 | 0 | 0 | 0 | 0 | 0.245648 | 517 | 25 | 46 | 20.68 | 0.882051 | 0.117988 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fda4c9cfbe1a06f7b6f764633dc2d48eeea048c7 | 536 | py | Python | tests/contexts/bunker/__mothers__/LogTraceMother.py | parada3desu/logbunker | 1cc3f197c0d1662946ef65bb9f97a89f625d0c1b | [
"MIT"
] | null | null | null | tests/contexts/bunker/__mothers__/LogTraceMother.py | parada3desu/logbunker | 1cc3f197c0d1662946ef65bb9f97a89f625d0c1b | [
"MIT"
] | null | null | null | tests/contexts/bunker/__mothers__/LogTraceMother.py | parada3desu/logbunker | 1cc3f197c0d1662946ef65bb9f97a89f625d0c1b | [
"MIT"
] | 1 | 2021-12-28T15:20:20.000Z | 2021-12-28T15:20:20.000Z | from logbunker.contexts.bunker.logs.domain.entities.LogTrace import LogTrace
from tests.utils.mothers.WordMother import WordMother
class LogTraceMother:
@staticmethod
def create(trace: str) -> LogTrace:
return LogTrace(trace)
@staticmethod
def random() -> LogTrace:
return LogTraceMot... | 26.8 | 76 | 0.701493 | 56 | 536 | 6.696429 | 0.482143 | 0.12 | 0.138667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212687 | 536 | 19 | 77 | 28.210526 | 0.888626 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 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 |
fda6c219b0de5a0ab481be64c18fbb9d2c161c75 | 361 | py | Python | case/Test_Environment/cloud_call/__init__.py | Four-sun/Requests_Load | 472f3f6d9bd407f1c4ed30a5557ec141e2434188 | [
"Apache-2.0"
] | null | null | null | case/Test_Environment/cloud_call/__init__.py | Four-sun/Requests_Load | 472f3f6d9bd407f1c4ed30a5557ec141e2434188 | [
"Apache-2.0"
] | null | null | null | case/Test_Environment/cloud_call/__init__.py | Four-sun/Requests_Load | 472f3f6d9bd407f1c4ed30a5557ec141e2434188 | [
"Apache-2.0"
] | null | null | null | case = {"message":"运行正确","responseCode":"100000",
"result":[{"specificationValue":[{"id":172,"key":"颜色","merchantCode":"0185","productId":44,"value":"黑色"},
{"id":173,"key":"颜色","merchantCode":"0185","productId":44,"value":"红色"}],
"key":"颜色"}]}
print(ca... | 72.2 | 114 | 0.512465 | 35 | 361 | 5.285714 | 0.6 | 0.081081 | 0.183784 | 0.227027 | 0.4 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0.090592 | 0.204986 | 361 | 5 | 115 | 72.2 | 0.554007 | 0 | 0 | 0 | 0 | 0 | 0.441989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
fdb8332204a389e23006d63a933a7ba59f8b0fb4 | 225 | py | Python | main.py | eladb21/SlowMapping | c655c34329b95d6f515f8cb55c828e0597fc2cdd | [
"MIT"
] | null | null | null | main.py | eladb21/SlowMapping | c655c34329b95d6f515f8cb55c828e0597fc2cdd | [
"MIT"
] | null | null | null | main.py | eladb21/SlowMapping | c655c34329b95d6f515f8cb55c828e0597fc2cdd | [
"MIT"
] | null | null | null | import GUI
from multiprocessing import freeze_support
if __name__ == '__main__':
#freeze support for handle with multiprocessing in fast scanner
freeze_support()
#start GUI
gui = GUI.GUI()
gui.startGUI()
| 22.5 | 67 | 0.72 | 28 | 225 | 5.428571 | 0.607143 | 0.157895 | 0.177632 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208889 | 225 | 9 | 68 | 25 | 0.853933 | 0.315556 | 0 | 0 | 0 | 0 | 0.052632 | 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 |
fdb914d3de0d7d8e559680a91469bc8415be350c | 165 | py | Python | django-mkdocs/docs/urls.py | masa1203/django_mypractice | c3ffef6f19a4dd16e2947f36c88f1f5773b427ce | [
"MIT"
] | null | null | null | django-mkdocs/docs/urls.py | masa1203/django_mypractice | c3ffef6f19a4dd16e2947f36c88f1f5773b427ce | [
"MIT"
] | 26 | 2019-12-25T19:26:23.000Z | 2021-09-22T19:11:28.000Z | django-mkdocs/docs/urls.py | sawady1203/django_mypractice | c3ffef6f19a4dd16e2947f36c88f1f5773b427ce | [
"MIT"
] | 1 | 2021-06-10T05:14:02.000Z | 2021-06-10T05:14:02.000Z | from django.urls import path, re_path
from . import views
app_name = "docs"
urlpatterns = [
re_path(r'^(?P<path>.*)$', views.serve_docs, name="serve_docs"),
]
| 18.333333 | 68 | 0.672727 | 25 | 165 | 4.24 | 0.56 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 165 | 8 | 69 | 20.625 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0.169697 | 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 |
fddc441f373f09511ca23bf7b052e0be04d582a2 | 243 | py | Python | tests/test_paths.py | mjturtora/pyexamp | ef56b028c4bf990e3c2f4e05a8f3df6cda38c00c | [
"BSD-2-Clause"
] | null | null | null | tests/test_paths.py | mjturtora/pyexamp | ef56b028c4bf990e3c2f4e05a8f3df6cda38c00c | [
"BSD-2-Clause"
] | null | null | null | tests/test_paths.py | mjturtora/pyexamp | ef56b028c4bf990e3c2f4e05a8f3df6cda38c00c | [
"BSD-2-Clause"
] | null | null | null | from .context import sample
import os
print
print '\nIn test: ', os.path.abspath(os.path.join(os.path.dirname(__file__), '.'))
def test_examp():
print '\nIN test_examp = ', os.path.abspath('.')
assert len(sample.read_secrets()) == 4
| 24.3 | 82 | 0.674897 | 36 | 243 | 4.361111 | 0.555556 | 0.152866 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.144033 | 243 | 9 | 83 | 27 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.127572 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | null | null | 0 | 0.285714 | null | null | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fde2bd3953f8e26feb6c04abab1b277e23c8cd87 | 350 | py | Python | twapp/apps.py | Daniel-Muruthi/poladapi | 6a7c6d7a78f66c3ae2a2fdf6bebfc68c009aee36 | [
"MIT"
] | null | null | null | twapp/apps.py | Daniel-Muruthi/poladapi | 6a7c6d7a78f66c3ae2a2fdf6bebfc68c009aee36 | [
"MIT"
] | null | null | null | twapp/apps.py | Daniel-Muruthi/poladapi | 6a7c6d7a78f66c3ae2a2fdf6bebfc68c009aee36 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TwappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'twapp'
def ready(self):
from twapp import signals
from twapp import automation
from twapp import tweet_handlers
from twapp import scheduler
... | 17.5 | 56 | 0.665714 | 39 | 350 | 5.897436 | 0.615385 | 0.156522 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277143 | 350 | 19 | 57 | 18.421053 | 0.909091 | 0.048571 | 0 | 0 | 0 | 0 | 0.103659 | 0.088415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fdf66f349e544522ec1574a73ccdc54aa43d0e16 | 930 | py | Python | client/basics/objects.py | TaianC/raspbot-rca | 4a662259c779de2706aa4abd0a0601f301e3e3fd | [
"MIT-0"
] | null | null | null | client/basics/objects.py | TaianC/raspbot-rca | 4a662259c779de2706aa4abd0a0601f301e3e3fd | [
"MIT-0"
] | 10 | 2020-01-16T15:47:21.000Z | 2020-02-14T17:36:11.000Z | client/basics/objects.py | perpetualCreations/raspbot-rca | 4a662259c779de2706aa4abd0a0601f301e3e3fd | [
"MIT-0"
] | null | null | null | """
Raspbot Remote Control Application (Raspbot RCA, Raspbot RCA-G), v1.2
basics module, contains basic application functions such as exiting client software, multithreading, and editing configs.
Made by perpetualCreations
Contains objects for module, including any package imports. Interact with these objects through ... | 34.444444 | 121 | 0.772043 | 116 | 930 | 6.137931 | 0.612069 | 0.050562 | 0.030899 | 0.064607 | 0.103933 | 0.103933 | 0.103933 | 0.103933 | 0 | 0 | 0 | 0.005128 | 0.16129 | 930 | 26 | 122 | 35.769231 | 0.907692 | 0.447312 | 0 | 0.117647 | 0 | 0 | 0.106931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.647059 | 0 | 0.647059 | 0.235294 | 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 |
e32b587adf18dda3a1344f61537b9b0e1af4cd84 | 276 | py | Python | djsuperadmin/views.py | bnznamco/insuperadmin | 5817d8e46feeec757cc874485690e02600036a7c | [
"MIT"
] | 1 | 2019-04-30T15:21:24.000Z | 2019-04-30T15:21:24.000Z | djsuperadmin/views.py | bnznamco/insuperadmin | 5817d8e46feeec757cc874485690e02600036a7c | [
"MIT"
] | null | null | null | djsuperadmin/views.py | bnznamco/insuperadmin | 5817d8e46feeec757cc874485690e02600036a7c | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from .models import Content
from .serializers import ContentSerializer
class ContentViewSet(viewsets.ModelViewSet):
queryset = Content.objects.all()
serializer_class = ContentSerializer
model = Content
lookup_field = 'pk'
| 25.090909 | 44 | 0.782609 | 29 | 276 | 7.344828 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 276 | 10 | 45 | 27.6 | 0.918103 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e32fd7b58a2b89e500629ccd7c79bfb5d3635233 | 3,483 | py | Python | tests/test_pagseguro_transacton.py | mbodock/py-pag | f6f03ee07aa0f7208f749ca26ab5bf0a96293b10 | [
"MIT"
] | 6 | 2015-08-21T14:37:52.000Z | 2021-04-01T00:50:41.000Z | tests/test_pagseguro_transacton.py | mbodock/py-pag | f6f03ee07aa0f7208f749ca26ab5bf0a96293b10 | [
"MIT"
] | null | null | null | tests/test_pagseguro_transacton.py | mbodock/py-pag | f6f03ee07aa0f7208f749ca26ab5bf0a96293b10 | [
"MIT"
] | 2 | 2019-10-15T23:30:04.000Z | 2021-04-01T00:50:43.000Z | # encoding: utf-8
import mock
from py_pag.pagseguro import PagSeguroTransaction
from py_pag.exceptions import ApiErrorException, UnauthorizedException
from .base_test_case import BaseTestCase
from .utils import *
class PagSeguroTransactionTestCase(BaseTestCase):
def test_can_instantiate(self):
transacti... | 45.828947 | 114 | 0.733563 | 383 | 3,483 | 6.428198 | 0.203655 | 0.176279 | 0.184809 | 0.21121 | 0.661251 | 0.606418 | 0.55199 | 0.55199 | 0.528838 | 0.442729 | 0 | 0.008144 | 0.15389 | 3,483 | 75 | 115 | 46.44 | 0.827282 | 0.004307 | 0 | 0.293103 | 0 | 0 | 0.16532 | 0.01558 | 0 | 0 | 0 | 0 | 0.224138 | 1 | 0.224138 | false | 0 | 0.086207 | 0 | 0.327586 | 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 |
e33013697ab44b5501ad8afedcf2daede7a71c61 | 122 | py | Python | 2-Tuples/tuple/tuple.py | l33th/intermediate-python-programming | 4cdb688b2ae6d5dc36970c1dd9aadfc5258aa6e7 | [
"MIT"
] | 1 | 2021-12-19T07:17:17.000Z | 2021-12-19T07:17:17.000Z | 2-Tuples/tuple/tuple.py | l33th/advanced-python-programming | 4cdb688b2ae6d5dc36970c1dd9aadfc5258aa6e7 | [
"MIT"
] | null | null | null | 2-Tuples/tuple/tuple.py | l33th/advanced-python-programming | 4cdb688b2ae6d5dc36970c1dd9aadfc5258aa6e7 | [
"MIT"
] | null | null | null | # The single tuple value must have a comma at the end
# so that it is recognized
my_tuple = ("Max",)
print(type(my_tuple)) | 30.5 | 53 | 0.729508 | 23 | 122 | 3.782609 | 0.826087 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172131 | 122 | 4 | 54 | 30.5 | 0.861386 | 0.622951 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e336653c94fb027e6aaeced2e3fc32e0ccdb2210 | 2,149 | py | Python | tests/test_lock.py | cariad/lstr | fd5a5780754c50050de2e0227417eef8bc4e0f80 | [
"MIT"
] | null | null | null | tests/test_lock.py | cariad/lstr | fd5a5780754c50050de2e0227417eef8bc4e0f80 | [
"MIT"
] | 2 | 2021-03-09T10:17:52.000Z | 2021-03-11T07:28:07.000Z | tests/test_lock.py | cariad/lstr | fd5a5780754c50050de2e0227417eef8bc4e0f80 | [
"MIT"
] | null | null | null | from pytest import mark, raises
from lstr import Lock
def test_eq__false() -> None:
assert Lock(index=0, length=1) != Lock(index=1, length=1)
def test_eq__not_implemented() -> None:
with raises(NotImplementedError) as ex:
Lock(index=0, length=1) != "foo"
assert str(ex.value) == "Cannot compare ... | 29.847222 | 79 | 0.577478 | 324 | 2,149 | 3.774691 | 0.135802 | 0.264922 | 0.188062 | 0.300899 | 0.670482 | 0.656582 | 0.555192 | 0.345053 | 0.345053 | 0.307441 | 0 | 0.055218 | 0.233132 | 2,149 | 71 | 80 | 30.267606 | 0.686893 | 0 | 0 | 0.214286 | 0 | 0 | 0.05584 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.035714 | 0 | 0.160714 | 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 |
e340c8cfe279a3dbbe07783f06758a01c54f7b69 | 326 | py | Python | messenger/server/src/tests/test_validate_request.py | v-v-d/Python_client-server_apps | 5741c92dc5324ae8af2c7102d95f63c57e71b4c7 | [
"MIT"
] | null | null | null | messenger/server/src/tests/test_validate_request.py | v-v-d/Python_client-server_apps | 5741c92dc5324ae8af2c7102d95f63c57e71b4c7 | [
"MIT"
] | null | null | null | messenger/server/src/tests/test_validate_request.py | v-v-d/Python_client-server_apps | 5741c92dc5324ae8af2c7102d95f63c57e71b4c7 | [
"MIT"
] | 1 | 2020-02-27T08:08:26.000Z | 2020-02-27T08:08:26.000Z | import pytest
from src.protocol import validate_request
@pytest.fixture
def raw_fixture():
return '''
{
"action": "echo",
"time": 1576455201.819919,
"data": "message",
}
'''
def test_valid_validate_request(raw_fixture):
assert validate_request(raw_fix... | 17.157895 | 45 | 0.604294 | 33 | 326 | 5.727273 | 0.636364 | 0.238095 | 0.190476 | 0.26455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06867 | 0.285276 | 326 | 18 | 46 | 18.111111 | 0.742489 | 0 | 0 | 0 | 0 | 0 | 0.383436 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.384615 | 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 |
e35235c7e90fe615b1e2854223978a831e3e123f | 53 | py | Python | ration/__init__.py | bdlabs/ration | fd0d7d2555689ffaf598838d8921c41645a7578c | [
"MIT"
] | 53 | 2015-03-04T22:15:55.000Z | 2021-01-21T11:35:30.000Z | ration/__init__.py | bdlabs/ration | fd0d7d2555689ffaf598838d8921c41645a7578c | [
"MIT"
] | 5 | 2015-05-01T17:02:35.000Z | 2017-10-16T15:27:37.000Z | ration/__init__.py | bdlabs/ration | fd0d7d2555689ffaf598838d8921c41645a7578c | [
"MIT"
] | 9 | 2015-05-01T17:00:31.000Z | 2021-01-25T15:41:22.000Z | from ration import RationApp
__all__ = ['RationApp'] | 17.666667 | 28 | 0.773585 | 6 | 53 | 6.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 53 | 3 | 29 | 17.666667 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
e369b5f6405a61ca1ec6ba599c2cc7a3317b3b27 | 188 | py | Python | src/animated_parse_tree/v1/operand.py | ethanolx/Animated-Parse-Tree-py | 503435f946557597c66d85928cee1ea4215f4f33 | [
"MIT"
] | 2 | 2022-01-01T04:14:15.000Z | 2022-01-01T04:14:17.000Z | src/animated_parse_tree/v1/operand.py | ethanolx/Animated-Parse-Tree-py | 503435f946557597c66d85928cee1ea4215f4f33 | [
"MIT"
] | 11 | 2022-01-04T02:21:06.000Z | 2022-01-04T07:12:44.000Z | src/animated_parse_tree/v1/operand.py | ethanolx/Animated-Parse-Tree-py | 503435f946557597c66d85928cee1ea4215f4f33 | [
"MIT"
] | null | null | null | from .node import Node
class Operand(Node):
def __init__(self, value):
super().__init__()
self.value = float(value)
self.width = len(str(float(value))) | 23.5 | 43 | 0.590426 | 23 | 188 | 4.478261 | 0.608696 | 0.15534 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 188 | 8 | 43 | 23.5 | 0.757353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
e372ceb5936cbd8c429354d3fbc447dd4beffccb | 170 | py | Python | test_utils/scripts/get_package_version.py | dgorelik/google-cloud-python | 26de36df3f42b1b514e8c0d839f3cc2d34ee30a3 | [
"Apache-2.0"
] | null | null | null | test_utils/scripts/get_package_version.py | dgorelik/google-cloud-python | 26de36df3f42b1b514e8c0d839f3cc2d34ee30a3 | [
"Apache-2.0"
] | null | null | null | test_utils/scripts/get_package_version.py | dgorelik/google-cloud-python | 26de36df3f42b1b514e8c0d839f3cc2d34ee30a3 | [
"Apache-2.0"
] | null | null | null | import re
with open("setup.py") as f:
content = f.read()
VERSION_REGEX = re.compile(r"""version\s*=\s*["'](.+)["']""")
print(VERSION_REGEX.search(content).group(1)) | 24.285714 | 61 | 0.629412 | 26 | 170 | 4.038462 | 0.730769 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.105882 | 170 | 7 | 62 | 24.285714 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.19883 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
e385e4b3c27724b8a07e1fb920c235c490f3b1ad | 43 | py | Python | sass/__init__.py | Christiaanvdm/django-bims | f92a63156c711b2d53c5f8ea06867cd64cee9eb9 | [
"MIT"
] | null | null | null | sass/__init__.py | Christiaanvdm/django-bims | f92a63156c711b2d53c5f8ea06867cd64cee9eb9 | [
"MIT"
] | null | null | null | sass/__init__.py | Christiaanvdm/django-bims | f92a63156c711b2d53c5f8ea06867cd64cee9eb9 | [
"MIT"
] | null | null | null | default_app_config = 'sass.apps.SassConfig' | 43 | 43 | 0.837209 | 6 | 43 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 43 | 1 | 43 | 43 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 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 |
e388822c82a832db68e6db471b90316e58c82e51 | 6,646 | py | Python | migrations/versions/2c6c39987357_initial_migration.py | anjinkristou/assistor | 02d9b826b9d8844d475c11c33db48cf278282183 | [
"MIT"
] | 1 | 2022-01-29T14:00:32.000Z | 2022-01-29T14:00:32.000Z | migrations/versions/2c6c39987357_initial_migration.py | anjinkristou/assistor | 02d9b826b9d8844d475c11c33db48cf278282183 | [
"MIT"
] | null | null | null | migrations/versions/2c6c39987357_initial_migration.py | anjinkristou/assistor | 02d9b826b9d8844d475c11c33db48cf278282183 | [
"MIT"
] | null | null | null | """Initial migration
Revision ID: 2c6c39987357
Revises:
Create Date: 2021-11-05 12:11:09.536290
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2c6c39987357'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | 41.798742 | 65 | 0.653024 | 840 | 6,646 | 5.069048 | 0.125 | 0.140911 | 0.20714 | 0.258337 | 0.797558 | 0.788633 | 0.687177 | 0.594176 | 0.573509 | 0.535932 | 0 | 0.007363 | 0.141739 | 6,646 | 158 | 66 | 42.063291 | 0.73913 | 0.043184 | 0 | 0.45 | 0 | 0 | 0.16229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0.007143 | 0.014286 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e389b1efdc1adf1563b0c689a068b90dbd4e9107 | 415 | py | Python | ottbot/constants.py | AlexanderHOtt/ottbot_v4 | fc60571789ce2e74b0051d7891597e58f29d3190 | [
"MIT"
] | 3 | 2021-09-12T01:07:17.000Z | 2022-02-28T05:46:03.000Z | ottbot/constants.py | AlexanderHOtt/ottbot_v4 | fc60571789ce2e74b0051d7891597e58f29d3190 | [
"MIT"
] | null | null | null | ottbot/constants.py | AlexanderHOtt/ottbot_v4 | fc60571789ce2e74b0051d7891597e58f29d3190 | [
"MIT"
] | null | null | null | import typing as t
from hikari.colors import Color
SERVER_ID: int = 545984256640286730
# SERVER_ID: int = 640562201001721856
DELETE_CUSTOM_ID: str = "AUTHOR_DELETE_BUTTON:"
FAILED_COLOUR: t.Final[Color] = Color(0xF04747)
PASS_COLOUR: t.Final[Color] = Color(0x43B581)
WHITE: t.Final[Color] = Color(0xFFFF... | 25.9375 | 98 | 0.73012 | 59 | 415 | 5 | 0.610169 | 0.081356 | 0.111864 | 0.162712 | 0.149153 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153623 | 0.168675 | 415 | 15 | 99 | 27.666667 | 0.701449 | 0.216867 | 0 | 0 | 0 | 0 | 0.087948 | 0.068404 | 0 | 0 | 0.078176 | 0 | 0 | 1 | 0 | true | 0.125 | 0.25 | 0 | 0.25 | 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 |
8b4d41676cb13f5b17674bd92e1cddd06993c0f5 | 95 | py | Python | wgus/constants.py | IzeBerg/python-wgus | c457af6ea57c40c7a2552fb69db1dd74bc6c9740 | [
"MIT"
] | null | null | null | wgus/constants.py | IzeBerg/python-wgus | c457af6ea57c40c7a2552fb69db1dd74bc6c9740 | [
"MIT"
] | null | null | null | wgus/constants.py | IzeBerg/python-wgus | c457af6ea57c40c7a2552fb69db1dd74bc6c9740 | [
"MIT"
] | null | null | null | META_PROTOCOL_VERSION = "7.2"
PATCHES_PROTOCOL_VERSION = "1.9"
INSTALLATION_ID = "python-wgus"
| 23.75 | 32 | 0.778947 | 14 | 95 | 4.928571 | 0.857143 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.094737 | 95 | 3 | 33 | 31.666667 | 0.755814 | 0 | 0 | 0 | 0 | 0 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b521ee5f72ccc173808ba0ef0355acac48dd280 | 332 | py | Python | monte/runtime/meta.py | washort/monte | 118916fda537984eb5897a3d854f52eef4509f2a | [
"MIT"
] | null | null | null | monte/runtime/meta.py | washort/monte | 118916fda537984eb5897a3d854f52eef4509f2a | [
"MIT"
] | null | null | null | monte/runtime/meta.py | washort/monte | 118916fda537984eb5897a3d854f52eef4509f2a | [
"MIT"
] | null | null | null | from monte.runtime.base import MonteObject
from monte.runtime.data import String
class StaticContext(MonteObject):
def __init__(self, fqn, fields, objectExpr):
self.fqn = fqn
self.fields = fields
self.objectExpr = objectExpr
def getFQNPrefix(self):
return String(self.fqn.decod... | 25.538462 | 48 | 0.695783 | 39 | 332 | 5.820513 | 0.512821 | 0.092511 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213855 | 332 | 12 | 49 | 27.666667 | 0.869732 | 0 | 0 | 0 | 0 | 0 | 0.01506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8b5314d79c3642a8832b49c0832ee16412657570 | 1,161 | py | Python | tests/parsers/c_parser/types/struct_type_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 21 | 2017-12-12T20:38:43.000Z | 2019-04-14T12:46:10.000Z | tests/parsers/c_parser/types/struct_type_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 6 | 2018-01-06T13:32:23.000Z | 2018-09-14T15:09:11.000Z | tests/parsers/c_parser/types/struct_type_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 11 | 2017-12-12T20:38:46.000Z | 2018-07-19T03:12:03.000Z | """
Tests for the :module`regression_tests.parsers.c_parser.struct_type` module.
"""
from tests.parsers.c_parser import WithModuleTests
class StructTypeTests(WithModuleTests):
"""Tests for `StructType`."""
def test_struct_type_is_struct(self):
type = self.get_type('struct { int a; }')
se... | 34.147059 | 80 | 0.671835 | 147 | 1,161 | 5.040816 | 0.278912 | 0.145749 | 0.333333 | 0.368421 | 0.264507 | 0.187584 | 0.187584 | 0.187584 | 0.187584 | 0.187584 | 0 | 0 | 0.196382 | 1,161 | 33 | 81 | 35.181818 | 0.794212 | 0.086133 | 0 | 0.130435 | 0 | 0 | 0.048851 | 0 | 0 | 0 | 0 | 0 | 0.652174 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.217391 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b7173ad9c1085df1cc89666ad4264190e2461e9 | 131 | py | Python | setup.py | vaddisrinivas/vault-to-xml | 2748f133a317e95eb6dc2a18d29b477c0414802d | [
"Apache-2.0"
] | 2 | 2018-12-18T11:22:15.000Z | 2019-01-03T12:19:41.000Z | setup.py | vaddisrinivas/vault-to-xml | 2748f133a317e95eb6dc2a18d29b477c0414802d | [
"Apache-2.0"
] | null | null | null | setup.py | vaddisrinivas/vault-to-xml | 2748f133a317e95eb6dc2a18d29b477c0414802d | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
#add you dependencies here
install_requires=['configparser','hvac','lxml','PyYAML']
) | 21.833333 | 60 | 0.717557 | 15 | 131 | 6.2 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152672 | 131 | 6 | 61 | 21.833333 | 0.837838 | 0.19084 | 0 | 0 | 0 | 0 | 0.247619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b73bdfd3a35d1359b71d5ae71a5f50593c13038 | 187 | py | Python | mcqquiz/urls.py | i-adarsh/walkover-django | d6f89469fa2a9cf279fad0442d7850edb47ccb88 | [
"Apache-2.0"
] | null | null | null | mcqquiz/urls.py | i-adarsh/walkover-django | d6f89469fa2a9cf279fad0442d7850edb47ccb88 | [
"Apache-2.0"
] | null | null | null | mcqquiz/urls.py | i-adarsh/walkover-django | d6f89469fa2a9cf279fad0442d7850edb47ccb88 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.urls import path
from .views import *
urlpatterns = [
path('<token>/', test , name='test'),
path('result', result , name='result'),
] | 23.375 | 43 | 0.668449 | 24 | 187 | 5.208333 | 0.541667 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171123 | 187 | 8 | 44 | 23.375 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ba4f5b3051df86672696e0b7c919a31b186c0a8 | 583 | py | Python | components/header/__init__.py | mateusfg7/Geometry-Math | 21e0a9ad2d8a567f50223d7f9b3310f1a08d324c | [
"MIT"
] | 6 | 2020-01-20T13:18:39.000Z | 2020-09-25T17:28:21.000Z | components/header/__init__.py | mateusfg7/Geometry-Math | 21e0a9ad2d8a567f50223d7f9b3310f1a08d324c | [
"MIT"
] | 3 | 2020-01-17T11:46:45.000Z | 2020-05-25T13:18:20.000Z | components/header/__init__.py | mateusfg7/Geometry-Math | 21e0a9ad2d8a567f50223d7f9b3310f1a08d324c | [
"MIT"
] | null | null | null | from typing import NoReturn
def header() -> NoReturn:
'''
Clears the screen and display the header, containing the banner and credits.
'''
import os
os.system('clear')
print("""
▒█▀▀█ █▀▀ █▀▀█ █▀▄▀█ █▀▀ ▀▀█▀▀ █▀▀█ █░░█ ▒█▀▄▀█ █▀▀█ ▀▀█▀▀ █░░█
▒█░▄▄ █▀▀ █░░█ █░▀░█ █▀▀ ░░█░░ █▄▄▀ █▄▄█ ▒█▒█▒█... | 29.15 | 80 | 0.392796 | 84 | 583 | 4.583333 | 0.607143 | 0.083117 | 0.135065 | 0.077922 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028384 | 0.214408 | 583 | 19 | 81 | 30.684211 | 0.471616 | 0.13036 | 0 | 0.142857 | 0 | 0 | 0.521385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0.142857 | 0 | 0.214286 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8bbd2362efbfe4106fbca89d370159fcb6a7b544 | 1,179 | py | Python | amazing_printer/inspector.py | tkbky/amazing_printer | e8be4d7547cf5916fa35eafaaf7a6212aa025bfc | [
"MIT"
] | 5 | 2019-04-02T01:39:50.000Z | 2020-10-01T07:40:07.000Z | amazing_printer/inspector.py | tkbky/amazing_printer | e8be4d7547cf5916fa35eafaaf7a6212aa025bfc | [
"MIT"
] | null | null | null | amazing_printer/inspector.py | tkbky/amazing_printer | e8be4d7547cf5916fa35eafaaf7a6212aa025bfc | [
"MIT"
] | null | null | null | from .indentator import Indentator
from .formatter import Formatter
class Inspector:
DEFAULT_OPTIONS = {
'sort_keys': False, # Do not sort hash keys
'indent': 4, # 4 spaces
'index': True, # Show list indices
'multiple_lines': True, # Span fields inside a dict or an array into multi... | 31.026316 | 92 | 0.620865 | 126 | 1,179 | 5.722222 | 0.452381 | 0.116505 | 0.110957 | 0.099861 | 0.153953 | 0.105409 | 0 | 0 | 0 | 0 | 0 | 0.002318 | 0.268024 | 1,179 | 37 | 93 | 31.864865 | 0.83314 | 0.118745 | 0 | 0 | 0 | 0 | 0.078412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.172414 | 0.517241 | 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 |
8bd419467b243e899e804c58cab8f24cd4164210 | 2,877 | py | Python | src/quocspyside2interface/gui/settings/RemoteCommForm.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | 1 | 2021-03-27T17:41:16.000Z | 2021-03-27T17:41:16.000Z | src/quocspyside2interface/gui/settings/RemoteCommForm.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | null | null | null | src/quocspyside2interface/gui/settings/RemoteCommForm.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | null | null | null | # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2021- QuOCS Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://ww... | 39.958333 | 124 | 0.688217 | 318 | 2,877 | 6.044025 | 0.402516 | 0.025494 | 0.041623 | 0.049948 | 0.117066 | 0.082206 | 0.047867 | 0 | 0 | 0 | 0 | 0.005537 | 0.183872 | 2,877 | 72 | 125 | 39.958333 | 0.813032 | 0.360445 | 0 | 0.114286 | 0 | 0 | 0.018293 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.228571 | false | 0.114286 | 0.142857 | 0.057143 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
47433e1aab3539b2c5f3fc20c336161ae441b56d | 1,280 | py | Python | app/grandchallenge/cases/migrations/0019_auto_20200120_0604.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/cases/migrations/0019_auto_20200120_0604.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/cases/migrations/0019_auto_20200120_0604.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.9 on 2020-01-20 06:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("cases", "0018_auto_20191218_0936"),
]
operations = [
migrations.RemoveField(
model_name="rawimageuploadsession", name="processin... | 28.444444 | 71 | 0.504688 | 98 | 1,280 | 6.479592 | 0.622449 | 0.070866 | 0.188976 | 0.214173 | 0.173228 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0.047859 | 0.379688 | 1,280 | 44 | 72 | 29.090909 | 0.751889 | 0.035156 | 0 | 0.315789 | 1 | 0 | 0.182482 | 0.08678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.105263 | 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 |
475deeb6faaee1a8437239e8992947855926cf68 | 1,036 | py | Python | tests/foundation/testapplicationmiddleware.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 4 | 2017-09-07T13:39:50.000Z | 2018-05-31T16:14:50.000Z | tests/foundation/testapplicationmiddleware.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 103 | 2017-03-19T15:58:21.000Z | 2018-07-11T20:36:17.000Z | tests/foundation/testapplicationmiddleware.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 2 | 2017-10-14T15:20:11.000Z | 2018-04-20T09:55:44.000Z |
from tests.testcase import TestCase
from edmunds.foundation.applicationmiddleware import ApplicationMiddleware
class TestApplicationMiddleware(TestCase):
"""
Test the Application Middleware
"""
def test_no_abstract_handle(self):
"""
Test if abstract handle method is required
... | 24.666667 | 119 | 0.722008 | 86 | 1,036 | 8.581395 | 0.418605 | 0.075881 | 0.04878 | 0.059621 | 0.138211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210425 | 1,036 | 41 | 120 | 25.268293 | 0.9022 | 0.207529 | 0 | 0.153846 | 0 | 0 | 0.008242 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0.153846 | 0.153846 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
476adebde3a89dd023496303ae0af28b36461444 | 104 | py | Python | Console/Python/Excercises/4_exc.py | DavidsDvm/Dev_Exercises | 59e12913e987e710558044e27c07b192576167f3 | [
"Unlicense",
"MIT"
] | 1 | 2021-08-30T21:06:52.000Z | 2021-08-30T21:06:52.000Z | Console/Python/Excercises/4_exc.py | DavidsDvm/Dev_Exercises | 59e12913e987e710558044e27c07b192576167f3 | [
"Unlicense",
"MIT"
] | 1 | 2021-05-18T05:42:02.000Z | 2021-05-18T05:42:02.000Z | Console/Python/Excercises/4_exc.py | DavidsDvm/Dev_Exercises | 59e12913e987e710558044e27c07b192576167f3 | [
"Unlicense",
"MIT"
] | null | null | null | es_estudiante = '123'
es_profesor = '456'
reslultado = es_estudiante + es_profesor
print(reslultado)
| 13 | 40 | 0.759615 | 13 | 104 | 5.769231 | 0.538462 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0.144231 | 104 | 7 | 41 | 14.857143 | 0.775281 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
4776725b5f1be1bb628a85884e75fa7bebcabe5e | 119 | py | Python | mezzanine_client/__init__.py | gcushen/mezzanine-client-python | d81d87f9e756a6827b128f0f8b9b2fb71dfe2659 | [
"ISC"
] | 7 | 2016-06-06T09:27:15.000Z | 2020-12-07T19:43:33.000Z | mezzanine_client/__init__.py | gcushen/mezzanine-client-python | d81d87f9e756a6827b128f0f8b9b2fb71dfe2659 | [
"ISC"
] | null | null | null | mezzanine_client/__init__.py | gcushen/mezzanine-client-python | d81d87f9e756a6827b128f0f8b9b2fb71dfe2659 | [
"ISC"
] | 3 | 2017-01-17T15:28:59.000Z | 2022-03-19T04:11:01.000Z | from __future__ import unicode_literals
from .api import Mezzanine
__version__ = '0.2.2'
__author__ = 'George Cushen'
| 19.833333 | 39 | 0.789916 | 16 | 119 | 5.0625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.134454 | 119 | 5 | 40 | 23.8 | 0.757282 | 0 | 0 | 0 | 0 | 0 | 0.151261 | 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 |
47828279de02c13dc19fc023bc3e05e45f8572a7 | 64 | py | Python | stubs/dns/name.py | istankovic/aioice | 26abbb23e485aed9a338208f53b81727c3ca6206 | [
"BSD-3-Clause"
] | 43 | 2019-02-04T04:49:49.000Z | 2022-02-16T09:13:30.000Z | stubs/dns/name.py | istankovic/aioice | 26abbb23e485aed9a338208f53b81727c3ca6206 | [
"BSD-3-Clause"
] | 45 | 2019-02-27T10:52:19.000Z | 2022-03-27T10:07:23.000Z | stubs/dns/name.py | istankovic/aioice | 26abbb23e485aed9a338208f53b81727c3ca6206 | [
"BSD-3-Clause"
] | 22 | 2019-03-11T16:53:48.000Z | 2022-03-28T15:46:20.000Z | class Name:
...
def from_text(text: str) -> Name:
...
| 9.142857 | 33 | 0.5 | 8 | 64 | 3.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296875 | 64 | 6 | 34 | 10.666667 | 0.688889 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
479c209aaa6925bee0b660121f9406381182d90c | 1,400 | py | Python | stubs.min/Rhino/Geometry/__init___parts/PointCloudItem.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/Rhino/Geometry/__init___parts/PointCloudItem.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Rhino/Geometry/__init___parts/PointCloudItem.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class PointCloudItem(object):
# no doc
Color=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Color(self: PointCloudItem) -> Color
Set: Color(self: PointCloudItem)=value
"""
Hidden=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Get: Hidden(self: ... | 27.45098 | 80 | 0.671429 | 176 | 1,400 | 5.340909 | 0.147727 | 0.255319 | 0.153191 | 0.204255 | 0.476596 | 0.476596 | 0.476596 | 0.476596 | 0.476596 | 0.476596 | 0 | 0.00172 | 0.169286 | 1,400 | 50 | 81 | 28 | 0.806535 | 0.004286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
47b7004bfc51bc3cc11ec5345360ee968de38ba3 | 294 | py | Python | open_csv.py | ttglennhall/simple_dev_python | 68c199255beba0053c7c9b905dca7ea5ec919c66 | [
"MIT"
] | null | null | null | open_csv.py | ttglennhall/simple_dev_python | 68c199255beba0053c7c9b905dca7ea5ec919c66 | [
"MIT"
] | null | null | null | open_csv.py | ttglennhall/simple_dev_python | 68c199255beba0053c7c9b905dca7ea5ec919c66 | [
"MIT"
] | null | null | null | import csv
with open('data/lecz-urban-rural-population-land-area-estimates-v2-csv/lecz-urban-rural-population-land-area-estimates_codebook.csv','rU') as inputFile:
inputReader = csv.reader(inputFile)
for line in inputReader:
#line = line.rstrip().split(',')
print(line) | 42 | 152 | 0.714286 | 40 | 294 | 5.225 | 0.625 | 0.086124 | 0.133971 | 0.229665 | 0.392345 | 0.392345 | 0.392345 | 0 | 0 | 0 | 0 | 0.003953 | 0.139456 | 294 | 7 | 153 | 42 | 0.822134 | 0.105442 | 0 | 0 | 0 | 0.2 | 0.463878 | 0.456274 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
47ca3c6e6e9e44edc8ab7f670fef8bddc95d03d7 | 219 | py | Python | phlogiston/__init__.py | TrevorFSmith/phlogiston | 21a15ea3f8389d095bec66f3b0876fd1d52a5bc8 | [
"MIT"
] | null | null | null | phlogiston/__init__.py | TrevorFSmith/phlogiston | 21a15ea3f8389d095bec66f3b0876fd1d52a5bc8 | [
"MIT"
] | null | null | null | phlogiston/__init__.py | TrevorFSmith/phlogiston | 21a15ea3f8389d095bec66f3b0876fd1d52a5bc8 | [
"MIT"
] | null | null | null | '''Phlogiston is a Django app which maps Tasty Pie APIs to Backbone.js Models and Collections.'''
# Copyright 2013 Trevor F. Smith (http://trevor.smith.name/) Some rights reserved: http://opensource.org/licenses/MIT | 54.75 | 119 | 0.753425 | 33 | 219 | 5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.13242 | 219 | 4 | 119 | 54.75 | 0.847368 | 0.954338 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a0b3fe05df26481f5dd1a6b35a9c2ed1de6290d | 77 | py | Python | demo/version.py | ferren/pyXterm | b4444cf90893089423295b8792173f0c08b73b52 | [
"Apache-2.0"
] | null | null | null | demo/version.py | ferren/pyXterm | b4444cf90893089423295b8792173f0c08b73b52 | [
"Apache-2.0"
] | null | null | null | demo/version.py | ferren/pyXterm | b4444cf90893089423295b8792173f0c08b73b52 | [
"Apache-2.0"
] | null | null | null | # This file was generated by wxPython's wscript.
VERSION_STRING = '4.1.0a1'
| 19.25 | 48 | 0.74026 | 13 | 77 | 4.307692 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.155844 | 77 | 3 | 49 | 25.666667 | 0.8 | 0.597403 | 0 | 0 | 1 | 0 | 0.241379 | 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 |
9a2b5e92a2767274e6716ec3fefe5dbe83086f45 | 150 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/__init__.py | jonathadv/python-cookiecutter | 7c5552c4dcc225bad48e567e29589eaaaf87e37e | [
"MIT"
] | 1 | 2021-11-22T02:57:18.000Z | 2021-11-22T02:57:18.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/__init__.py | jonathadv/python-cookiecutter | 7c5552c4dcc225bad48e567e29589eaaaf87e37e | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/__init__.py | jonathadv/python-cookiecutter | 7c5552c4dcc225bad48e567e29589eaaaf87e37e | [
"MIT"
] | null | null | null | from {{cookiecutter.project_slug}}.__version__ import (
__author__,
__author_email__,
__description__,
__title__,
__version__,
)
| 16.666667 | 55 | 0.706667 | 12 | 150 | 6.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206667 | 150 | 8 | 56 | 18.75 | 0.672269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
9a49287ca94e5ef98f380922211c0c2c5e1a0fd8 | 1,601 | py | Python | siibra/commons.py | xgui3783/siibra-python | ea30739b99105af91a591a124db5174b90de6be8 | [
"Apache-2.0"
] | null | null | null | siibra/commons.py | xgui3783/siibra-python | ea30739b99105af91a591a124db5174b90de6be8 | [
"Apache-2.0"
] | null | null | null | siibra/commons.py | xgui3783/siibra-python | ea30739b99105af91a591a124db5174b90de6be8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2020 Institute of Neuroscience and Medicine (INM-1), Forschungszentrum Jülich GmbH
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENS... | 29.648148 | 99 | 0.659588 | 216 | 1,601 | 4.75 | 0.583333 | 0.05848 | 0.035088 | 0.031189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010888 | 0.254216 | 1,601 | 53 | 100 | 30.207547 | 0.848409 | 0.527795 | 0 | 0 | 0 | 0 | 0.031117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.043478 | 0.173913 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9a5092513c9e36e3be317f9d0880590f5e1c5a0e | 613 | py | Python | source/tests/test_smaller_element.py | adrinamin/algorithm_exercises | 8a3c61afe4672aabaeb7a311ea9948165d9d6b10 | [
"MIT"
] | null | null | null | source/tests/test_smaller_element.py | adrinamin/algorithm_exercises | 8a3c61afe4672aabaeb7a311ea9948165d9d6b10 | [
"MIT"
] | null | null | null | source/tests/test_smaller_element.py | adrinamin/algorithm_exercises | 8a3c61afe4672aabaeb7a311ea9948165d9d6b10 | [
"MIT"
] | null | null | null | import unittest
import smaller_element_array.smaller_element as smaller_element
class SmallerElementTest(unittest.TestCase):
def test_get_smaller_element_array_basic(self):
input_array=[3,4,9,6,1]
expected = [1,1,2,1,0]
result = smaller_element.get_smaller_element_array(input_array)
... | 36.058824 | 71 | 0.712887 | 87 | 613 | 4.724138 | 0.344828 | 0.306569 | 0.231144 | 0.214112 | 0.540146 | 0.540146 | 0.399027 | 0.399027 | 0.399027 | 0.399027 | 0 | 0.052419 | 0.190865 | 613 | 17 | 72 | 36.058824 | 0.77621 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
9a55c7253cf0cd6a3e4de24a9abea79fb6ad1905 | 1,080 | py | Python | database/_characters_table.py | Elitedestroyer2/AnimeRec | d0f2b894ec37a492764d1cd532a84327f12f3e52 | [
"MIT"
] | null | null | null | database/_characters_table.py | Elitedestroyer2/AnimeRec | d0f2b894ec37a492764d1cd532a84327f12f3e52 | [
"MIT"
] | null | null | null | database/_characters_table.py | Elitedestroyer2/AnimeRec | d0f2b894ec37a492764d1cd532a84327f12f3e52 | [
"MIT"
] | null | null | null |
def check_character_exists(self, characterName):
#See if character's name exsits
self.cursor.execute('''SELECT count(Name) FROM Characters WHERE Name=? ''', characterName)
if self.cursor.fetchone()[0] == 1:
return True
else:
return False
def enter_new_character(self, character):
se... | 32.727273 | 94 | 0.708333 | 135 | 1,080 | 5.562963 | 0.318519 | 0.11984 | 0.181092 | 0.091878 | 0.400799 | 0.191744 | 0 | 0 | 0 | 0 | 0 | 0.002183 | 0.151852 | 1,080 | 32 | 95 | 33.75 | 0.817686 | 0.027778 | 0 | 0.130435 | 0 | 0 | 0.273855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0 | 0.086957 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9a5ef61baffc157ed0e44ddf0561596b086ab72a | 131 | py | Python | data types and variables - exersice/print_part of the ascii table.py | DiyanKalaydzhiev23/fundamentals---python | 7fa032d9a3270648ffa383bb00dad8e51613189d | [
"MIT"
] | null | null | null | data types and variables - exersice/print_part of the ascii table.py | DiyanKalaydzhiev23/fundamentals---python | 7fa032d9a3270648ffa383bb00dad8e51613189d | [
"MIT"
] | null | null | null | data types and variables - exersice/print_part of the ascii table.py | DiyanKalaydzhiev23/fundamentals---python | 7fa032d9a3270648ffa383bb00dad8e51613189d | [
"MIT"
] | null | null | null | start = int(input())
end = int(input())
symbol = ""
for i in range(start, end + 1):
symbol = chr(i)
print(symbol, end=" ")
| 18.714286 | 31 | 0.564885 | 20 | 131 | 3.7 | 0.6 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.229008 | 131 | 6 | 32 | 21.833333 | 0.722772 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
7bd28100a7fd1786ea59a2ccfd2af1188de5036e | 453 | py | Python | ga4gh/drs/entrypoint.py | ga4gh/ga4gh-drs-client | 07fd7c79d318bfb55de663f2def623d1c6a8d6ac | [
"MIT"
] | 4 | 2019-10-21T13:56:10.000Z | 2021-04-25T23:31:57.000Z | ga4gh/drs/entrypoint.py | ga4gh/ga4gh-drs-client | 07fd7c79d318bfb55de663f2def623d1c6a8d6ac | [
"MIT"
] | 1 | 2021-06-02T00:21:25.000Z | 2021-06-02T00:21:25.000Z | ga4gh/drs/entrypoint.py | ga4gh/ga4gh-drs-client | 07fd7c79d318bfb55de663f2def623d1c6a8d6ac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module ga4gh.drs.entrypoint.py
Main entrypoint into the drs client program, all sub-groups and and sub-commands
are added to the main entrypoint here
"""
import click
from ga4gh.drs.cli.parsing.get import get
from ga4gh.drs.cli.parsing.schemes import schemes
@click.group()
def main():
... | 23.842105 | 80 | 0.743929 | 70 | 453 | 4.785714 | 0.585714 | 0.071642 | 0.071642 | 0.089552 | 0.131343 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010336 | 0.145695 | 453 | 18 | 81 | 25.166667 | 0.855297 | 0.532009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
7bf85e183e173efd57468dd52a40f7dc2bdb3c5c | 355 | py | Python | Experiment-1/EXAMPLES/Exp-1_ClassTask-1(2).py | aaryarajoju/cu-py | 2292ab06197405d379f063dd03861936c9912103 | [
"Unlicense"
] | 2 | 2021-01-08T08:29:27.000Z | 2021-01-14T13:47:27.000Z | Experiment-1/EXAMPLES/Exp-1_ClassTask-1(2).py | aaryarajoju/cu-py | 2292ab06197405d379f063dd03861936c9912103 | [
"Unlicense"
] | 1 | 2020-11-02T20:20:34.000Z | 2020-11-02T20:57:31.000Z | Experiment-1/EXAMPLES/Exp-1_ClassTask-1(2).py | aaryarajoju/cu-py | 2292ab06197405d379f063dd03861936c9912103 | [
"Unlicense"
] | null | null | null | #Class Task-1
#WAP to print a Quote, press Enter to display the name of the Author of the Quote, and finally press Enter to exit.
#(Hint: Use two print and input statements)
#print quote in desired form
print("\n Health is Wealth")
#print author name desired form
print("\n Anonymous")
#wait for user to exit
input("... | 27.307692 | 116 | 0.738028 | 64 | 355 | 4.09375 | 0.5625 | 0.068702 | 0.091603 | 0.129771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003425 | 0.177465 | 355 | 12 | 117 | 29.583333 | 0.893836 | 0.695775 | 0 | 0 | 0 | 0 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d0093cfb5ebd7fd0ebde00f0fb9a8895e0dab6ea | 3,164 | py | Python | bot/other.py | ZhymabekRoman/PyDejavuBot | 09ff77bbed6f40ca947047d3867a828b8b821d6c | [
"MIT"
] | 2 | 2020-09-30T02:13:37.000Z | 2020-12-04T17:08:46.000Z | bot/other.py | ZhymabekRoman/PyDejavuBot | 09ff77bbed6f40ca947047d3867a828b8b821d6c | [
"MIT"
] | 6 | 2020-10-22T20:21:51.000Z | 2022-01-01T03:41:56.000Z | bot/other.py | ZhymabekRoman/PyDejavuBot | 09ff77bbed6f40ca947047d3867a828b8b821d6c | [
"MIT"
] | 1 | 2021-09-24T14:47:39.000Z | 2021-09-24T14:47:39.000Z | # -*- coding: utf-8 -*-
# SCRIPT # ======================================================================================================================
# Name...........: PyDejavuBot - Free Open Source Telegram Bot, designed for recognize a melody.
# File name......: other.py
# Description ...: It stores codes that a... | 40.564103 | 132 | 0.653603 | 390 | 3,164 | 5.087179 | 0.369231 | 0.044355 | 0.042339 | 0.042339 | 0.266129 | 0.266129 | 0.259073 | 0.259073 | 0.259073 | 0.259073 | 0 | 0.012968 | 0.146966 | 3,164 | 77 | 133 | 41.090909 | 0.722119 | 0.282554 | 0 | 0 | 0 | 0 | 0.230322 | 0.204383 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.142857 | 0.122449 | 0.673469 | 0.081633 | 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 |
d01040c612cc10e678cd3d501995211e68d609f1 | 5,360 | py | Python | printer.py | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | printer.py | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | printer.py | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | # coding: utf-8
# GDB用のpretty-printer
import math
import frea.printer
import spine.printer
import re
import gdb
def buildPrinter(obj):
obj.pretty_printers.append(Lookup)
frea.printer.buildPrinter(obj)
spine.printer.buildPrinter(obj)
Re_Beat = re.compile("^beat::(.+)$")
def Lookup(val):
name = val.type... | 29.450549 | 93 | 0.609142 | 687 | 5,360 | 4.426492 | 0.181951 | 0.082867 | 0.105229 | 0.069056 | 0.395594 | 0.357448 | 0.27754 | 0.230516 | 0.117724 | 0.078264 | 0 | 0.021948 | 0.24347 | 5,360 | 181 | 94 | 29.61326 | 0.72799 | 0.006157 | 0 | 0.291139 | 0 | 0 | 0.058227 | 0.004696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.297468 | false | 0.012658 | 0.031646 | 0.164557 | 0.651899 | 0.094937 | 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 |
d0245fe0fb86a243198b6be6cddf0197d49b03a3 | 702 | py | Python | __init__.py | AERTteam/EditOS | bd5a9bf6772cb75c72f23666bf381e187f39c436 | [
"Unlicense"
] | null | null | null | __init__.py | AERTteam/EditOS | bd5a9bf6772cb75c72f23666bf381e187f39c436 | [
"Unlicense"
] | null | null | null | __init__.py | AERTteam/EditOS | bd5a9bf6772cb75c72f23666bf381e187f39c436 | [
"Unlicense"
] | null | null | null | # This file lists all the modules, classes, functions and variables that are imported into other files through this file:
# The reason of importing these modules can be understood by looking into their implications...
import sys
from PyQt4 import QtGui, QtCore
from Variables_Module import * # team created module, (see... | 70.2 | 146 | 0.649573 | 89 | 702 | 5.05618 | 0.483146 | 0.04 | 0.053333 | 0.062222 | 0.342222 | 0.342222 | 0.342222 | 0.342222 | 0.022222 | 0 | 0 | 0.001608 | 0.11396 | 702 | 10 | 146 | 70.2 | 0.721865 | 0.789174 | 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 |
d05a5c022c9f53ebdf9c7e56e3c0ea0afcfcc073 | 158 | py | Python | Patterns - Weather Station/weatherstation_solution_3_factory_strings_hardcoded/main.py | musen-rse/examples_python | 75f2afb94c9ee2e1f1333638d186c2c3c3a96436 | [
"MIT"
] | 1 | 2022-01-23T14:02:47.000Z | 2022-01-23T14:02:47.000Z | Patterns - Weather Station/weatherstation_solution_2_factory_methods/main.py | musen-rse/examples_python | 75f2afb94c9ee2e1f1333638d186c2c3c3a96436 | [
"MIT"
] | 1 | 2021-09-12T07:00:30.000Z | 2021-09-12T07:00:30.000Z | Patterns - Weather Station/weatherstation_solution_4_factory_strings/main.py | musen-rse/examples_python | 75f2afb94c9ee2e1f1333638d186c2c3c3a96436 | [
"MIT"
] | 1 | 2022-01-23T14:02:29.000Z | 2022-01-23T14:02:29.000Z | from charts import ConsoleChartFactory
from core.app import Application
if __name__ == "__main__":
app = Application(ConsoleChartFactory())
app.run() | 26.333333 | 44 | 0.759494 | 17 | 158 | 6.588235 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 158 | 6 | 45 | 26.333333 | 0.835821 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 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 |
d065402dbad84b0ced778103464da0a3090408be | 289 | py | Python | app/Doggies.py | knguyen111601/masonite_test_dogs | d506c07039e298906dabeb4f497ce357cfd48c8f | [
"MIT"
] | null | null | null | app/Doggies.py | knguyen111601/masonite_test_dogs | d506c07039e298906dabeb4f497ce357cfd48c8f | [
"MIT"
] | null | null | null | app/Doggies.py | knguyen111601/masonite_test_dogs | d506c07039e298906dabeb4f497ce357cfd48c8f | [
"MIT"
] | null | null | null | """Doggies Model."""
from masoniteorm.models import Model
from masoniteorm.relationships import has_many
class Doggies(Model):
"""Doggies Model."""
@has_many("owner_id", "id")
def owners(self):
from app.Owner import Owner
return Owner
__table__= "doggies" | 24.083333 | 46 | 0.678201 | 35 | 289 | 5.4 | 0.514286 | 0.190476 | 0.21164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204152 | 289 | 12 | 47 | 24.083333 | 0.821739 | 0.100346 | 0 | 0 | 0 | 0 | 0.068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d06a945a28ebe39e016979b28008a2d897218a34 | 1,254 | py | Python | Python/BasicDS/ArrayQueue.py | i-love-linux/BasicDataStructure | 7853e14053d3425c836b6164cc1c78c9ee68213b | [
"MIT"
] | null | null | null | Python/BasicDS/ArrayQueue.py | i-love-linux/BasicDataStructure | 7853e14053d3425c836b6164cc1c78c9ee68213b | [
"MIT"
] | null | null | null | Python/BasicDS/ArrayQueue.py | i-love-linux/BasicDataStructure | 7853e14053d3425c836b6164cc1c78c9ee68213b | [
"MIT"
] | null | null | null | # coding=utf-8
# @Time : 2020/2/12
# @Author : Wang Xiaoxiao
# @University : Dalian University of Technology
# @FileName : ArrayQueue.py
# @Software : PyCharm
# @github : https://github.com/i-love-linux/BasicDataStructure
from BasicDS.Array import Array
class ArrayQueue:
"""
基本操作:
getSiz... | 22.8 | 66 | 0.569378 | 147 | 1,254 | 4.680272 | 0.462585 | 0.09157 | 0.101744 | 0.123547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.290271 | 1,254 | 54 | 67 | 23.222222 | 0.75618 | 0.315789 | 0 | 0 | 0 | 0 | 0.033292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.2 | 0.64 | 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 |
d07a6a5c4e730bf80fbcfcce5d8ede62edd88e4b | 232 | py | Python | datascience/sympy/matrix.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 13 | 2017-08-22T12:26:07.000Z | 2021-07-29T16:13:50.000Z | datascience/sympy/matrix.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 1 | 2021-02-08T10:24:33.000Z | 2021-02-08T10:24:33.000Z | datascience/sympy/matrix.py | janbodnar/Python-Course | 51705ab5a2adef52bcdb99a800e94c0d67144a38 | [
"BSD-2-Clause"
] | 17 | 2018-08-13T11:10:33.000Z | 2021-07-29T16:14:02.000Z | #!/usr/bin/python
from sympy import Matrix, pprint
M = Matrix([[1, 2], [3, 4], [0, 3]])
print(M)
pprint(M)
N = Matrix([2, 2])
print("---------------------------")
print("M * N")
print("---------------------------")
pprint(M*N)
| 14.5 | 36 | 0.426724 | 32 | 232 | 3.09375 | 0.5 | 0.212121 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039801 | 0.133621 | 232 | 15 | 37 | 15.466667 | 0.452736 | 0.068966 | 0 | 0.222222 | 0 | 0 | 0.274419 | 0.251163 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.777778 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d0cda53eded45103ae649ed96576f5068fb29d2e | 87 | py | Python | src/motor/3rdparty/graphics/OpenGL/mak/build.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/3rdparty/graphics/OpenGL/mak/build.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/3rdparty/graphics/OpenGL/mak/build.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | def build(bld):
bld.thirdparty('motor.3rdparty.graphics.OpenGL', feature='OpenGL')
| 29 | 70 | 0.735632 | 11 | 87 | 5.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.091954 | 87 | 2 | 71 | 43.5 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0d39070616aecb5caf736ca87c24c418b024568 | 151 | py | Python | plugins/fangmail_cms.py | cflq3/getcms | 6cf07da0ea3ec644866df715cff1f311a46ee378 | [
"MIT"
] | 22 | 2016-09-01T08:27:07.000Z | 2021-01-11T13:32:59.000Z | plugins/fangmail_cms.py | cflq3/getcms | 6cf07da0ea3ec644866df715cff1f311a46ee378 | [
"MIT"
] | null | null | null | plugins/fangmail_cms.py | cflq3/getcms | 6cf07da0ea3ec644866df715cff1f311a46ee378 | [
"MIT"
] | 20 | 2015-11-07T19:09:48.000Z | 2018-05-02T03:10:41.000Z | #!/usr/bin/env python
# encoding: utf-8
def run(whatweb, pluginname):
whatweb.recog_from_content(pluginname, "fangmail/default/css/em_css.css")
| 18.875 | 77 | 0.741722 | 22 | 151 | 4.954545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.112583 | 151 | 7 | 78 | 21.571429 | 0.80597 | 0.238411 | 0 | 0 | 0 | 0 | 0.276786 | 0.276786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0d413dc41867aee50a9f29532f8d301b2314551 | 20,423 | py | Python | pysnmp_mibs/RFC1316-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/RFC1316-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/RFC1316-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module RFC1316-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/RFC1316-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:26:15 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( Inte... | 214.978947 | 1,516 | 0.679626 | 2,400 | 20,423 | 5.7825 | 0.18125 | 0.008647 | 0.008863 | 0.011817 | 0.459288 | 0.400562 | 0.317697 | 0.306672 | 0.293774 | 0.27331 | 0 | 0.043694 | 0.208833 | 20,423 | 94 | 1,517 | 217.265957 | 0.8152 | 0.014591 | 0 | 0.023529 | 0 | 0.258824 | 0.516007 | 0.004325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035294 | 0.070588 | 0 | 0.094118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1902e6789c80ad22b2e830b97761e6f970f9a726 | 787 | py | Python | drb/cmdline.py | vinted/docker-rpm-builder | 2af4d70f3c4da6589ab46e7d5fed46bcd5e5b21e | [
"Apache-2.0"
] | 355 | 2015-01-09T01:53:29.000Z | 2019-02-28T17:50:45.000Z | drb/cmdline.py | vinted/docker-rpm-builder | 2af4d70f3c4da6589ab46e7d5fed46bcd5e5b21e | [
"Apache-2.0"
] | 54 | 2015-02-06T17:16:56.000Z | 2019-04-02T16:25:59.000Z | drb/cmdline.py | vinted/docker-rpm-builder | 2af4d70f3c4da6589ab46e7d5fed46bcd5e5b21e | [
"Apache-2.0"
] | 59 | 2015-02-06T18:50:58.000Z | 2019-03-05T08:42:39.000Z | import os
from pkgutil import iter_modules
from importlib import import_module
import click
click.disable_unicode_literals_warning = True
from . import commands
@click.group()
def cmdline():
pass
def autoload_commands(group, source_package):
"""
autoloads to group from source package. the click.command(... | 23.147059 | 92 | 0.742058 | 104 | 787 | 5.403846 | 0.490385 | 0.115658 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0.174079 | 787 | 33 | 93 | 23.848485 | 0.861538 | 0.301144 | 0 | 0 | 0 | 0 | 0.013566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
ef938ebfdc352e0367b1eb6e0c3d95f9f0feaaa0 | 216 | py | Python | ai/from-scratch/nn_1_1.py | admariner/playground | 02a3104472c8fa3589fe87f7265e70c61d5728c7 | [
"MIT"
] | 3 | 2021-06-12T04:42:32.000Z | 2021-06-24T13:57:38.000Z | ai/from-scratch/nn_1_1.py | admariner/playground | 02a3104472c8fa3589fe87f7265e70c61d5728c7 | [
"MIT"
] | null | null | null | ai/from-scratch/nn_1_1.py | admariner/playground | 02a3104472c8fa3589fe87f7265e70c61d5728c7 | [
"MIT"
] | 1 | 2021-08-19T14:57:17.000Z | 2021-08-19T14:57:17.000Z | weight = 0.1
def neural_network(input, weight):
prediction = input * weight
return prediction
number_of_toes = [8.5, 9.5, 10, 9]
input = number_of_toes[0]
pred = neural_network(input, weight)
print(pred) | 16.615385 | 36 | 0.703704 | 34 | 216 | 4.294118 | 0.529412 | 0.226027 | 0.246575 | 0.328767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056497 | 0.180556 | 216 | 13 | 37 | 16.615385 | 0.768362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 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 |
ef951906853367acf9cf41ae5aa6227d1bbd19ce | 217 | py | Python | {{cookiecutter.project_name}}/pages/locators.py | victory-sokolov/selenium-boilerplate | 43ac0e37c93c6379186f06050ab29e8521ac3ad1 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/pages/locators.py | victory-sokolov/selenium-boilerplate | 43ac0e37c93c6379186f06050ab29e8521ac3ad1 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/pages/locators.py | victory-sokolov/selenium-boilerplate | 43ac0e37c93c6379186f06050ab29e8521ac3ad1 | [
"MIT"
] | null | null | null | from selenium.webdriver.common.by import By
class LoginPageLocators:
USERNAME = (By.ID, "username")
PASSWORD = (By.ID, "password")
SIGN_IN_BTN = (By.ID, "login-submit")
class MainPageLocators:
pass
| 19.727273 | 43 | 0.691244 | 27 | 217 | 5.481481 | 0.666667 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184332 | 217 | 10 | 44 | 21.7 | 0.836158 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ef9a528056ee6c4523df056acd03feb5ea6d9999 | 167 | py | Python | instagram/posts/forms.py | developer-LeeSteve/django_instagram_clonecoding | efad44cb6bda89b935bf203e66cdc6b69a3caa6a | [
"MIT"
] | 1 | 2020-12-16T14:23:49.000Z | 2020-12-16T14:23:49.000Z | instagram/posts/forms.py | SihwanLee/django_instagram_clonecoding | efad44cb6bda89b935bf203e66cdc6b69a3caa6a | [
"MIT"
] | null | null | null | instagram/posts/forms.py | SihwanLee/django_instagram_clonecoding | efad44cb6bda89b935bf203e66cdc6b69a3caa6a | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from posts import models
class CreatePostForm(ModelForm):
class Meta:
model = models.Post
fields = ['title', 'body', 'thumb'] | 20.875 | 37 | 0.736527 | 21 | 167 | 5.857143 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155689 | 167 | 8 | 37 | 20.875 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
efa916fa17c4fdbbe322919420289e58611f1ff7 | 122 | py | Python | elegy/model/__init__.py | SamuelMarks/elegy | 1e578e82ff042a76d19283325106b9b5ef7fd7e9 | [
"Apache-2.0"
] | null | null | null | elegy/model/__init__.py | SamuelMarks/elegy | 1e578e82ff042a76d19283325106b9b5ef7fd7e9 | [
"Apache-2.0"
] | null | null | null | elegy/model/__init__.py | SamuelMarks/elegy | 1e578e82ff042a76d19283325106b9b5ef7fd7e9 | [
"Apache-2.0"
] | null | null | null | from .model import Model, load
from .model_base import Optimizer
__all__ = [
"Model",
"Optimizer",
"load",
]
| 13.555556 | 33 | 0.639344 | 14 | 122 | 5.214286 | 0.5 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237705 | 122 | 8 | 34 | 15.25 | 0.784946 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
efb448d3303f7d574d7e56053aa520daa107c9bb | 321 | py | Python | diameter_learning/types.py | RobinCamarasa/Boundary-Point-Extraction | ab92c16c2e84fb41f3403ed30ebd6f0737c303ae | [
"MIT"
] | null | null | null | diameter_learning/types.py | RobinCamarasa/Boundary-Point-Extraction | ab92c16c2e84fb41f3403ed30ebd6f0737c303ae | [
"MIT"
] | null | null | null | diameter_learning/types.py | RobinCamarasa/Boundary-Point-Extraction | ab92c16c2e84fb41f3403ed30ebd6f0737c303ae | [
"MIT"
] | null | null | null | """Types of the project
"""
from typing import (
Mapping, List, Tuple, Union
)
SliceAnnotation = Mapping[
str,
Mapping[
str,
Union[
List[Tuple[float, float]],
float,
Tuple[float, float]
]
]
]... | 17.833333 | 42 | 0.41433 | 25 | 321 | 5.32 | 0.56 | 0.225564 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.492212 | 321 | 17 | 43 | 18.882353 | 0.815951 | 0.062305 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
efd195c1fc7d8095115698d61d316c77253fe6a3 | 2,106 | py | Python | second-round-intreview/parcoord-brushing/backend/src/code/densityplotbrush/DensityPlotBrush.py | halilagin/parcoord-brushing | 71dde2d9b24038afb51f80fa43ea45c21f459238 | [
"MIT"
] | null | null | null | second-round-intreview/parcoord-brushing/backend/src/code/densityplotbrush/DensityPlotBrush.py | halilagin/parcoord-brushing | 71dde2d9b24038afb51f80fa43ea45c21f459238 | [
"MIT"
] | null | null | null | second-round-intreview/parcoord-brushing/backend/src/code/densityplotbrush/DensityPlotBrush.py | halilagin/parcoord-brushing | 71dde2d9b24038afb51f80fa43ea45c21f459238 | [
"MIT"
] | null | null | null | """
Inferring a binomial proportion via exact mathematical analysis.
"""
import sys
import numpy as np
from scipy.stats import beta
from scipy.special import beta as beta_func
import matplotlib.pyplot as plt
import matplotlib.patches as patches
#from HDIofICDF import *
from scipy.optimize import fmin
#from scipy.stats ... | 25.071429 | 94 | 0.708927 | 282 | 2,106 | 5.251773 | 0.429078 | 0.06077 | 0.047265 | 0.067522 | 0.081026 | 0.044564 | 0.044564 | 0 | 0 | 0 | 0 | 0.01853 | 0.205603 | 2,106 | 84 | 95 | 25.071429 | 0.866707 | 0.236942 | 0 | 0.14 | 0 | 0 | 0.001892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.06 | 0.68 | 0 | 0.74 | 0.02 | 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 |
efe1e9c98fcbf32825737b54a0bb926f7b10edb7 | 78 | py | Python | bzl/version.tpl.py | redoclag/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 4,535 | 2017-10-20T05:03:57.000Z | 2022-03-30T15:42:33.000Z | bzl/version.tpl.py | HOZHENWAI/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 984 | 2017-10-20T17:16:09.000Z | 2022-03-30T05:43:18.000Z | bzl/version.tpl.py | HOZHENWAI/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 492 | 2017-10-20T18:22:32.000Z | 2022-03-30T09:00:05.000Z | # Provides access to the version of a package
{PREFIX}_VERSION = "{VERSION}"
| 19.5 | 45 | 0.730769 | 11 | 78 | 5.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 78 | 3 | 46 | 26 | 0.861538 | 0.551282 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
eff6076e5000311936460f0ab38c5ee953805904 | 307 | py | Python | source/risk/risk_manager.py | qg0/EliteQuant_Python | f9b24280443e824e8f6841ac136a319406bba3c6 | [
"Apache-2.0"
] | 8 | 2020-07-13T02:42:13.000Z | 2022-02-18T21:46:52.000Z | source/risk/risk_manager.py | qg0/EliteQuant_Python | f9b24280443e824e8f6841ac136a319406bba3c6 | [
"Apache-2.0"
] | null | null | null | source/risk/risk_manager.py | qg0/EliteQuant_Python | f9b24280443e824e8f6841ac136a319406bba3c6 | [
"Apache-2.0"
] | 5 | 2020-07-13T02:42:22.000Z | 2021-12-29T15:16:53.000Z | # encoding: UTF-8
from __future__ import print_function
from .risk_manager_base import RiskManagerBase
class PassThroughRiskManager(RiskManagerBase):
def order_in_compliance(self, original_order):
"""
Pass through the order without constraints
"""
return original_order
| 27.909091 | 50 | 0.739414 | 33 | 307 | 6.545455 | 0.787879 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.205212 | 307 | 10 | 51 | 30.7 | 0.881148 | 0.192182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.4 | 0 | 1 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
eff96a10d0b958a18fbd50564534859061bb10ca | 1,005 | py | Python | sfcsmUtil/operate.py | chenhui0228/sfcsm | ef9adbc7d2ec8d97cee053678002b65ca41b804b | [
"Apache-2.0"
] | 1 | 2018-06-04T06:26:27.000Z | 2018-06-04T06:26:27.000Z | sfcsmUtil/operate.py | chenhui0228/sfcsm | ef9adbc7d2ec8d97cee053678002b65ca41b804b | [
"Apache-2.0"
] | null | null | null | sfcsmUtil/operate.py | chenhui0228/sfcsm | ef9adbc7d2ec8d97cee053678002b65ca41b804b | [
"Apache-2.0"
] | null | null | null | #-*- coding: UTF-8 -*-
# author 01107267
# date 2017-05-24
class Operate:
def __init__(self):
self.op_service_ceph_stop = 'service ceph stop'
self.op_service_ceph_start = 'service ceph start'
self.op_service_ceph_osd_stop = 'service ceph stop osd'
self.op_service_ceph_osd_sta... | 41.875 | 66 | 0.6199 | 137 | 1,005 | 4.291971 | 0.270073 | 0.336735 | 0.168367 | 0.173469 | 0.591837 | 0.35034 | 0.102041 | 0 | 0 | 0 | 0 | 0.056834 | 0.264677 | 1,005 | 24 | 67 | 41.875 | 0.738836 | 0.052736 | 0 | 0.1 | 0 | 0 | 0.330097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4be7b098bcaba4a9442ef5aae005e01e26695407 | 266 | py | Python | crayon/__init__.py | arangatang/Crayon | ff1ca68fe676028a8209ad56c108b8d8179ba2d7 | [
"MIT"
] | null | null | null | crayon/__init__.py | arangatang/Crayon | ff1ca68fe676028a8209ad56c108b8d8179ba2d7 | [
"MIT"
] | null | null | null | crayon/__init__.py | arangatang/Crayon | ff1ca68fe676028a8209ad56c108b8d8179ba2d7 | [
"MIT"
] | null | null | null | from .Runner.runner import run_config
from .ConfigGenerator import (
Algorithm,
Dataset,
generate_config,
GLUONTS_METRICS,
)
from .Tuner.tuner import grid_search
from .Benchmarker import benchmark
from .Benchmarker.benchmarker import display_ranking
| 24.181818 | 52 | 0.793233 | 31 | 266 | 6.645161 | 0.580645 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154135 | 266 | 10 | 53 | 26.6 | 0.915556 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4bee5743c0261c433e10db8ddb3648d9715d7de3 | 780 | py | Python | notify-cli/setup.py | MatthewScholefield/notify-server | 4c7ea1f62c0b18275ffff716423ee2984d9f4752 | [
"MIT"
] | null | null | null | notify-cli/setup.py | MatthewScholefield/notify-server | 4c7ea1f62c0b18275ffff716423ee2984d9f4752 | [
"MIT"
] | null | null | null | notify-cli/setup.py | MatthewScholefield/notify-server | 4c7ea1f62c0b18275ffff716423ee2984d9f4752 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='notify-cli',
version='0.1.2',
description='A python client for notify-server',
url='https://github.com/matthewscholefield/notify-server',
author='Matthew Scholefield',
author_email='matthew331199@gmail.com',
classifiers=[
'Development Status... | 27.857143 | 62 | 0.605128 | 79 | 780 | 5.848101 | 0.632911 | 0.097403 | 0.21645 | 0.225108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028961 | 0.247436 | 780 | 27 | 63 | 28.888889 | 0.758092 | 0 | 0 | 0.08 | 0 | 0 | 0.537179 | 0.074359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 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 |
ef02463ccb97685d31516fede18a8166edbff01c | 759 | py | Python | cortex/__init__.py | pulkitag/pycortex | f329dccbe3f04dc4556b930f284bcddd760fc76b | [
"BSD-2-Clause"
] | 1 | 2021-03-08T22:52:52.000Z | 2021-03-08T22:52:52.000Z | cortex/__init__.py | candleinwindsteve/pycortex | 988dc996a33f16208537a2e8ffe14e2ae3ea6647 | [
"BSD-2-Clause"
] | null | null | null | cortex/__init__.py | candleinwindsteve/pycortex | 988dc996a33f16208537a2e8ffe14e2ae3ea6647 | [
"BSD-2-Clause"
] | null | null | null | from .dataset import Dataset, Volume, Vertex, VolumeRGB, VertexRGB, Volume2D, Vertex2D
from . import align, volume, quickflat, webgl, segment, options
from .database import db
from .utils import *
from .quickflat import make_figure as quickshow
load = Dataset.from_file
try:
from . import webgl
from .webgl import sh... | 26.172414 | 86 | 0.766798 | 104 | 759 | 5.461538 | 0.490385 | 0.052817 | 0.045775 | 0.080986 | 0.232394 | 0.232394 | 0.232394 | 0.232394 | 0.232394 | 0.232394 | 0 | 0.003096 | 0.14888 | 759 | 29 | 87 | 26.172414 | 0.876161 | 0.052701 | 0 | 0.333333 | 0 | 0 | 0.13649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.458333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
ef1cdc3d48f24b9392632477427c296ba2013161 | 1,144 | py | Python | spinsim/utilities_old/scalar.py | rpanderson/spinsim | 8f93b7dd1964290e2cc85ae1c15e73ca31a34bdc | [
"BSD-3-Clause"
] | 2 | 2021-11-09T08:45:42.000Z | 2022-02-09T22:36:54.000Z | spinsim/utilities_old/scalar.py | rpanderson/spinsim | 8f93b7dd1964290e2cc85ae1c15e73ca31a34bdc | [
"BSD-3-Clause"
] | null | null | null | spinsim/utilities_old/scalar.py | rpanderson/spinsim | 8f93b7dd1964290e2cc85ae1c15e73ca31a34bdc | [
"BSD-3-Clause"
] | 1 | 2021-06-02T10:28:50.000Z | 2021-06-02T10:28:50.000Z | """
Some device functions for doing complex scalar maths with :mod:`numba.cuda`.
"""
import math
import numpy as np
import numba as nb
from numba import cuda
#@cuda.jit(device = True, inline = True)
def conj(z):
"""
Conjugate of a complex number.
.. math::
\\begin{align*}
(a + ib)^* &= a ... | 21.185185 | 76 | 0.522727 | 149 | 1,144 | 4.006711 | 0.375839 | 0.087102 | 0.085427 | 0.100503 | 0.452261 | 0.452261 | 0.452261 | 0.351759 | 0.351759 | 0.241206 | 0 | 0.006281 | 0.304196 | 1,144 | 54 | 77 | 21.185185 | 0.743719 | 0.680944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ef36114e415816049fb7d7f4cd5c8437480296dd | 330 | py | Python | automate_tasks/02_trying_xpath.py | devak23/python | 4caeb2cfae328e5fe77b5ed5d1d0b5c6df14a20f | [
"MIT"
] | null | null | null | automate_tasks/02_trying_xpath.py | devak23/python | 4caeb2cfae328e5fe77b5ed5d1d0b5c6df14a20f | [
"MIT"
] | null | null | null | automate_tasks/02_trying_xpath.py | devak23/python | 4caeb2cfae328e5fe77b5ed5d1d0b5c6df14a20f | [
"MIT"
] | null | null | null | import requests
from lxml import html
page = requests.get("http://sublime-text-unofficial-documentation.readthedocs.io/en/latest/reference/keyboard_shortcuts_win.html")
tree = html.fromstring(page.content)
element = tree.xpath('//table[@class="docutils"]/tbody//tr//td[text()="Move line/selection up"]');
print(element... | 36.666667 | 130 | 0.766667 | 46 | 330 | 5.456522 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.060606 | 330 | 8 | 131 | 41.25 | 0.806452 | 0 | 0 | 0 | 0 | 0.333333 | 0.545455 | 0.160606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ef4f21eb51a142177086f04dd04c2444a7886500 | 98 | py | Python | misc.py | foamliu/Expression-Transfer | 7ad036bfbd41ffe56e001ed56289e3de742652f4 | [
"MIT"
] | 1 | 2020-01-06T05:35:38.000Z | 2020-01-06T05:35:38.000Z | misc.py | foamliu/Expression-Transfer | 7ad036bfbd41ffe56e001ed56289e3de742652f4 | [
"MIT"
] | null | null | null | misc.py | foamliu/Expression-Transfer | 7ad036bfbd41ffe56e001ed56289e3de742652f4 | [
"MIT"
] | null | null | null | import os
def ensure_folder(folder):
if not os.path.isdir(folder):
os.mkdir(folder)
| 14 | 33 | 0.663265 | 15 | 98 | 4.266667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 98 | 6 | 34 | 16.333333 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef66f04f4063bf756cf3d0811c38111f518d90d5 | 341 | py | Python | jd/api/rest/KplOpenTradeMasterInsertaddressRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 5 | 2019-10-30T01:16:30.000Z | 2020-06-14T03:32:19.000Z | jd/api/rest/KplOpenTradeMasterInsertaddressRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 2 | 2020-10-12T07:12:48.000Z | 2021-06-02T03:15:47.000Z | jd/api/rest/KplOpenTradeMasterInsertaddressRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 3 | 2019-12-06T17:33:49.000Z | 2021-03-01T13:24:22.000Z | from jd.api.base import RestApi
class KplOpenTradeMasterInsertaddressRequest(RestApi):
def __init__(self,domain='gw.api.360buy.com',port=80):
RestApi.__init__(self,domain, port)
self.client = None
self.addressDomain = None
self.isDefaul = None
def getapiname(self):
return 'jd.kpl.open.trade.master.... | 18.944444 | 56 | 0.741935 | 43 | 341 | 5.697674 | 0.651163 | 0.065306 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017182 | 0.146628 | 341 | 17 | 57 | 20.058824 | 0.824742 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 0.113433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
322879b0327975c7fbab7c4a42ed426c12d32d13 | 982 | py | Python | test.py | StephenStorm/SlowFast | 9e3616ec05bd0433c721d0b9438ac3ac0f145ac5 | [
"Apache-2.0"
] | null | null | null | test.py | StephenStorm/SlowFast | 9e3616ec05bd0433c721d0b9438ac3ac0f145ac5 | [
"Apache-2.0"
] | null | null | null | test.py | StephenStorm/SlowFast | 9e3616ec05bd0433c721d0b9438ac3ac0f145ac5 | [
"Apache-2.0"
] | null | null | null | python tools/run_net.py --cfg configs/myconfig/Kinetics/c2/I3D_8x8_R50.yaml DATA.PATH_TO_DATA_DIR datas
python tools/run_net.py --predict_source 0 \
--cfg configs/myconfig/Kinetics/c2/SLOWFAST_8x8_R50.yaml
python tools/run_net.py --predict_source /home/stephen/workspace/Data/hmdb51_org1/wave/Wie_man_winkt_wave_... | 33.862069 | 188 | 0.792261 | 171 | 982 | 4.25731 | 0.333333 | 0.048077 | 0.115385 | 0.14011 | 0.771978 | 0.769231 | 0.717033 | 0.663462 | 0.589286 | 0.403846 | 0 | 0.067114 | 0.089613 | 982 | 28 | 189 | 35.071429 | 0.747204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3245994bef0f08eed0b78353837dca4a7d350bbe | 343 | py | Python | src/pyrin/logging/masking/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/logging/masking/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/logging/masking/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
logging masking package.
"""
from pyrin.packaging.base import Package
class LoggingMaskingPackage(Package):
"""
logging masking package class.
"""
NAME = __name__
DEPENDS = ['pyrin.configuration']
COMPONENT_NAME = 'logging.masking.component'
CONFIG_STORE_NAMES... | 19.055556 | 48 | 0.673469 | 34 | 343 | 6.588235 | 0.588235 | 0.25 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00361 | 0.19242 | 343 | 17 | 49 | 20.176471 | 0.805054 | 0.227405 | 0 | 0 | 0 | 0 | 0.243802 | 0.103306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
32464755fbf958172d71325bf0300e9a764e8d50 | 321 | py | Python | ea/problem.py | aleksanb/RBN-Reservoir | 1f68598d7e9349083816c7b91e98f7b066e991dd | [
"MIT"
] | 4 | 2016-01-27T10:38:04.000Z | 2022-02-24T11:46:24.000Z | ea/problem.py | aleksanb/RBN-Reservoir | 1f68598d7e9349083816c7b91e98f7b066e991dd | [
"MIT"
] | null | null | null | ea/problem.py | aleksanb/RBN-Reservoir | 1f68598d7e9349083816c7b91e98f7b066e991dd | [
"MIT"
] | 1 | 2020-06-12T14:37:38.000Z | 2020-06-12T14:37:38.000Z | from ea.genotypes import SymbolVectorGenotype
class Problem(object):
genotype_symbol_set_size = 2
def initial_population(self):
return [SymbolVectorGenotype(self.genotype_symbol_set_size,
self.problem_size)
for j in range(self.children_pool_size)]... | 26.75 | 67 | 0.660436 | 35 | 321 | 5.771429 | 0.685714 | 0.138614 | 0.168317 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004348 | 0.283489 | 321 | 11 | 68 | 29.181818 | 0.873913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 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 |
327e612908f9657b6b58568f0f250590b28e0827 | 1,073 | py | Python | src/delayedqueue/delayed_queue_item.py | syogaraj/delayedqueue | b225ae356029ae03a1ef8c349f6e5dd0f0c1f56c | [
"MIT"
] | null | null | null | src/delayedqueue/delayed_queue_item.py | syogaraj/delayedqueue | b225ae356029ae03a1ef8c349f6e5dd0f0c1f56c | [
"MIT"
] | null | null | null | src/delayedqueue/delayed_queue_item.py | syogaraj/delayedqueue | b225ae356029ae03a1ef8c349f6e5dd0f0c1f56c | [
"MIT"
] | null | null | null | """
Wrapper for the item which is going to be enqueued in the queue.
"""
class DelayedQueueItem:
def __init__(self, item, delay, time_func):
self.item = item
self.delay = delay
self.time_func = time_func
self.target_time = int(self.time_func() * 1000) + delay * 1000
def get_de... | 38.321429 | 132 | 0.655172 | 143 | 1,073 | 4.706294 | 0.321678 | 0.08321 | 0.104012 | 0.05052 | 0.520059 | 0.520059 | 0.520059 | 0.430906 | 0.332838 | 0.332838 | 0 | 0.019394 | 0.231128 | 1,073 | 27 | 133 | 39.740741 | 0.796364 | 0.059646 | 0 | 0.222222 | 0 | 0.055556 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3281b580247ed86714bca34063630ae0bee48f53 | 443 | py | Python | sequence/stack.py | Daetalus/Algorithms | dfc5c1dd029d070d9cb65c681e67fab2d2b16000 | [
"Unlicense"
] | null | null | null | sequence/stack.py | Daetalus/Algorithms | dfc5c1dd029d070d9cb65c681e67fab2d2b16000 | [
"Unlicense"
] | null | null | null | sequence/stack.py | Daetalus/Algorithms | dfc5c1dd029d070d9cb65c681e67fab2d2b16000 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
class Stack(object):
def __init__(self):
self.items = []
def push(self, item):
self.items.append(item)
def pop(self):
return s... | 21.095238 | 39 | 0.623025 | 58 | 443 | 4.448276 | 0.568966 | 0.174419 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009146 | 0.259594 | 443 | 20 | 40 | 22.15 | 0.777439 | 0.092551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.214286 | 0.071429 | 0.785714 | 0.071429 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3284ea53198ae9a910565a9b6ef0efc37d549cf4 | 136 | py | Python | archives/learning/module/m2/mul.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-07-08T10:53:13.000Z | 2021-07-20T00:20:10.000Z | archives/learning/module/m2/mul.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 1 | 2021-05-11T05:20:18.000Z | 2021-05-11T05:20:18.000Z | archives/learning/module/m2/mul.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-10-31T06:31:54.000Z | 2020-08-31T20:55:00.000Z | # -*- coding: UTF-8 -*-
__author__ = 'mcxiaoke'
def fib(n):
a, b = 0, 1
while b < n:
print b,
a, b = b, a + b
| 13.6 | 23 | 0.419118 | 22 | 136 | 2.409091 | 0.636364 | 0.113208 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.397059 | 136 | 9 | 24 | 15.111111 | 0.609756 | 0.154412 | 0 | 0 | 0 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32b2768b1fb73773e84f51886d49655218f470cb | 608 | py | Python | tests/test_package.py | nalch/pact-state-provider | e0649ddb918512c8a999c7bfb716cece87996346 | [
"Apache-2.0"
] | null | null | null | tests/test_package.py | nalch/pact-state-provider | e0649ddb918512c8a999c7bfb716cece87996346 | [
"Apache-2.0"
] | null | null | null | tests/test_package.py | nalch/pact-state-provider | e0649ddb918512c8a999c7bfb716cece87996346 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from pact_state_provider import import_state_func
from pact_state_provider.example import user_exists
def test_import():
func = import_state_func('pact_state_provider.example', 'user exists')
assert func == user_exists
def test_missing_import():
func = import_state_func('missing_... | 26.434783 | 74 | 0.738487 | 81 | 608 | 5.259259 | 0.345679 | 0.117371 | 0.140845 | 0.133803 | 0.117371 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001965 | 0.162829 | 608 | 22 | 75 | 27.636364 | 0.834971 | 0.034539 | 0 | 0.142857 | 0 | 0 | 0.203419 | 0.046154 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.214286 | false | 0 | 0.5 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0897b2f9d9d32782060ad16a74b1b5279cf8c3e5 | 195 | py | Python | api/conn.py | 13A5T0N/rs_examen | 69d722446b5044436db901a21e2c18b68baeacfa | [
"MIT"
] | 1 | 2021-05-13T22:36:55.000Z | 2021-05-13T22:36:55.000Z | api/conn.py | 13A5T0N/rs_examen | 69d722446b5044436db901a21e2c18b68baeacfa | [
"MIT"
] | null | null | null | api/conn.py | 13A5T0N/rs_examen | 69d722446b5044436db901a21e2c18b68baeacfa | [
"MIT"
] | null | null | null | import mysql.connector
db = mysql.connector.connect(
host = "localhost",
user = "root",
password = "",
database = "rs_examen"
)
cursor = db.cursor(dictionary=True)
| 16.25 | 36 | 0.6 | 20 | 195 | 5.8 | 0.8 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 195 | 11 | 37 | 17.727273 | 0.811189 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
08b122b95d3cb6290df2d76fc27c862472b30128 | 93 | py | Python | audformat/testing/__init__.py | audeering/audformat | a9ffce03e333e21a1ceb0db1d13e9f1fb5b61cca | [
"MIT"
] | 4 | 2021-01-04T12:22:33.000Z | 2021-08-12T13:56:19.000Z | audformat/testing/__init__.py | audeering/audformat | a9ffce03e333e21a1ceb0db1d13e9f1fb5b61cca | [
"MIT"
] | 134 | 2020-12-18T16:29:13.000Z | 2022-03-30T07:59:46.000Z | audformat/testing/__init__.py | audeering/audformat | a9ffce03e333e21a1ceb0db1d13e9f1fb5b61cca | [
"MIT"
] | null | null | null | from audformat.core.testing import (
create_db,
add_table,
create_audio_files,
)
| 15.5 | 36 | 0.709677 | 12 | 93 | 5.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215054 | 93 | 5 | 37 | 18.6 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08b5526df08d1091995606b44fe50ea7d1ffc3be | 169 | py | Python | eleme_reapi/computed/timestamp.py | nanarino/file-pycrypt | 009577183923ced389e0a79ee14d41a33375ea5e | [
"MIT"
] | 6 | 2020-09-14T09:37:41.000Z | 2021-01-28T14:45:21.000Z | eleme_reapi/computed/timestamp.py | nanarino/eleme_reapi | 009577183923ced389e0a79ee14d41a33375ea5e | [
"MIT"
] | null | null | null | eleme_reapi/computed/timestamp.py | nanarino/eleme_reapi | 009577183923ced389e0a79ee14d41a33375ea5e | [
"MIT"
] | 2 | 2019-07-19T05:07:00.000Z | 2019-08-07T06:17:22.000Z | """当前时间戳生成"""
import time
def timestamp() -> str:
"""生成请求饿百接口所需的timestamp参数"""
return str(int(time.time()))
if __name__ == "__main__":
print(timestamp()) | 15.363636 | 32 | 0.627219 | 17 | 169 | 5.764706 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177515 | 169 | 11 | 33 | 15.363636 | 0.705036 | 0.177515 | 0 | 0 | 0 | 0 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
08be31282aaabce03cf8ae6c4ed79826ac067560 | 16 | py | Python | python/testData/intentions/convertTripleQuotedUnicodeString_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/convertTripleQuotedUnicodeString_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/convertTripleQuotedUnicodeString_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | s = u"string\n"
| 8 | 15 | 0.5625 | 4 | 16 | 2.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 16 | 1 | 16 | 16 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 |
08c542b80af929d2c9bc2c0d6eb12685960ff1b3 | 18,545 | py | Python | tests/test_gateway.py | nevermined-io/gateway | 03e1a63f1de4083ff9a3b22516566633baaffa35 | [
"Apache-2.0"
] | 1 | 2020-12-02T16:01:04.000Z | 2020-12-02T16:01:04.000Z | tests/test_gateway.py | nevermined-io/gateway | 03e1a63f1de4083ff9a3b22516566633baaffa35 | [
"Apache-2.0"
] | 19 | 2021-02-23T10:10:04.000Z | 2022-03-22T09:14:04.000Z | tests/test_gateway.py | nevermined-io/gateway | 03e1a63f1de4083ff9a3b22516566633baaffa35 | [
"Apache-2.0"
] | null | null | null | import json
import mimetypes
import uuid
from unittest.mock import MagicMock, Mock
import pytest
from common_utils_py.agreements.service_agreement import ServiceAgreement
from common_utils_py.agreements.service_types import ServiceTypes
from common_utils_py.did import DID, did_to_id_bytes
from common_utils_py.oauth2.t... | 42.052154 | 137 | 0.695767 | 2,100 | 18,545 | 5.879524 | 0.128095 | 0.023164 | 0.013607 | 0.023326 | 0.757269 | 0.733458 | 0.720661 | 0.697416 | 0.676926 | 0.657812 | 0 | 0.03399 | 0.21154 | 18,545 | 440 | 138 | 42.147727 | 0.810423 | 0.026314 | 0 | 0.571006 | 0 | 0 | 0.168468 | 0.036587 | 0 | 0 | 0.009646 | 0 | 0.130178 | 1 | 0.04142 | false | 0.008876 | 0.106509 | 0 | 0.150888 | 0.014793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08deb04df43c8355dfbde8b98e98bbfc48197584 | 2,392 | py | Python | chaospy/distributions/collection/laplace.py | yuanyuansjtu/chaospy | 0b10d5eaa6abb77198e8eb025fea759c4629bca6 | [
"MIT"
] | 1 | 2021-02-28T07:53:32.000Z | 2021-02-28T07:53:32.000Z | chaospy/distributions/collection/laplace.py | yuanyuansjtu/chaospy | 0b10d5eaa6abb77198e8eb025fea759c4629bca6 | [
"MIT"
] | null | null | null | chaospy/distributions/collection/laplace.py | yuanyuansjtu/chaospy | 0b10d5eaa6abb77198e8eb025fea759c4629bca6 | [
"MIT"
] | null | null | null | """Laplace Probability Distribution."""
import numpy
from scipy import special
import chaospy
from ..baseclass import SimpleDistribution, ShiftScaleDistribution
class laplace(SimpleDistribution):
"""Laplace Probability Distribution."""
def __init__(self):
super(laplace, self).__init__()
def _pd... | 28.819277 | 72 | 0.531773 | 300 | 2,392 | 4.123333 | 0.303333 | 0.009701 | 0.03557 | 0.029103 | 0.033145 | 0.017785 | 0.017785 | 0 | 0 | 0 | 0 | 0.075821 | 0.299749 | 2,392 | 82 | 73 | 29.170732 | 0.662687 | 0.401756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.111111 | 0.166667 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3eb7e92558135c2b7fb97be6ce9ac6e2f0d9d4ac | 493 | py | Python | parser/fase2/team10/InstruccionesPL/OutIdentificador.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team10/InstruccionesPL/OutIdentificador.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team10/InstruccionesPL/OutIdentificador.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from InstruccionesPL.TablaSimbolosPL.TipoPL import TipoPL, Tipo_DatoPL
from InstruccionesPL.TablaSimbolosPL.InstruccionPL import InstruccionPL
class OutIdentificador(InstruccionPL):
def __init__(self, id,tipo, strGram, linea, columna):
InstruccionPL.__init__(self,TipoPL(Tipo_DatoPL.ID), linea, columna,st... | 37.923077 | 83 | 0.738337 | 55 | 493 | 6.436364 | 0.490909 | 0.107345 | 0.19209 | 0.107345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168357 | 493 | 13 | 84 | 37.923077 | 0.863415 | 0 | 0 | 0 | 0 | 0 | 0.066802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3ee9c5173612dd6ac4ea31e7bd846753dbbd1b00 | 957 | py | Python | django_fakery/utils.py | fcurella/django-fakery | 10f962ad73bd689495bdc04f521eddce4cb01922 | [
"MIT"
] | 99 | 2015-09-25T19:19:31.000Z | 2022-03-10T11:48:26.000Z | django_fakery/utils.py | sobolevn/django-fakery | bac6965d2f780ddbad90ef94ab5b6bb8a79a1e1c | [
"MIT"
] | 53 | 2015-10-08T11:54:27.000Z | 2022-01-11T17:28:09.000Z | django_fakery/utils.py | sobolevn/django-fakery | bac6965d2f780ddbad90ef94ab5b6bb8a79a1e1c | [
"MIT"
] | 6 | 2015-10-08T11:46:11.000Z | 2022-01-15T16:29:58.000Z | from typing import overload
from django.apps import apps
from django.db import models
from six import string_types
from .types import T
def language_to_locale(language):
"""
Converts django's `LANGUAGE_CODE` settings to a proper locale code.
"""
tokens = language.split("-")
if len(tokens) == 1:... | 19.530612 | 71 | 0.664577 | 134 | 957 | 4.597015 | 0.410448 | 0.064935 | 0.071429 | 0.077922 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.009296 | 0.213166 | 957 | 48 | 72 | 19.9375 | 0.808765 | 0.115987 | 0 | 0.25 | 0 | 0 | 0.008444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.178571 | 0 | 0.535714 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.