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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd85d30221c81c39a3bbf91062a25a942e306de9 | 708 | py | Python | Proj_HMS/Reports/models.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 4 | 2020-06-27T16:01:27.000Z | 2020-06-27T21:38:58.000Z | Proj_HMS/Reports/models.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 6 | 2020-06-28T06:39:26.000Z | 2021-06-10T19:38:57.000Z | Proj_HMS/Reports/models.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 1 | 2021-03-11T05:17:14.000Z | 2021-03-11T05:17:14.000Z | from django.db import models
from django.contrib.auth.models import User
from Profile.models import *
class Report(models.Model):
doctor = models.ForeignKey(Doctor_details ,on_delete=models.CASCADE)
patient = models.ForeignKey(User_detail, on_delete =models.CASCADE)
history = models.TextField(max_length=1... | 30.782609 | 72 | 0.733051 | 92 | 708 | 5.478261 | 0.445652 | 0.178571 | 0.214286 | 0.285714 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.169492 | 708 | 22 | 73 | 32.181818 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.008487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0.058824 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fd8a195ad75cc6709272f2adc21a2d402d9168e3 | 232 | py | Python | rjgtoys/__init__.py | bobgautier/rjgtoys-thing | ab81fe8722072e0e652c2d0660a8a527c00f08d8 | [
"MIT"
] | 2 | 2020-09-19T17:03:13.000Z | 2021-05-28T21:04:25.000Z | rjgtoys/__init__.py | bobgautier/rjgtoys-thing | ab81fe8722072e0e652c2d0660a8a527c00f08d8 | [
"MIT"
] | null | null | null | rjgtoys/__init__.py | bobgautier/rjgtoys-thing | ab81fe8722072e0e652c2d0660a8a527c00f08d8 | [
"MIT"
] | null | null | null | #
# rjgtoys is a container namespace for all my packages.
#
"""
rjgtoys is a namespace package that exists only to keep
all my modules in a single part of the namespace.
"""
__import__('pkg_resources').declare_namespace(__name__)
| 21.090909 | 55 | 0.762931 | 35 | 232 | 4.771429 | 0.742857 | 0.107784 | 0.11976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159483 | 232 | 10 | 56 | 23.2 | 0.85641 | 0.689655 | 0 | 0 | 0 | 0 | 0.209677 | 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 |
fd8b5c0c9c732b8fb2aef066edb00f80d0439df5 | 242 | wsgi | Python | myproject/myproject.wsgi | codeballet/server-bionic | af559cac6a8e11d026f44cc4ae992aaa793d4016 | [
"Unlicense"
] | null | null | null | myproject/myproject.wsgi | codeballet/server-bionic | af559cac6a8e11d026f44cc4ae992aaa793d4016 | [
"Unlicense"
] | null | null | null | myproject/myproject.wsgi | codeballet/server-bionic | af559cac6a8e11d026f44cc4ae992aaa793d4016 | [
"Unlicense"
] | null | null | null | activate_this = '/vagrant/myproject/venv/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))
import sys
sys.path.insert(0, '/vagrant/myproject')
from myapp import app as application
| 26.888889 | 62 | 0.772727 | 36 | 242 | 4.916667 | 0.638889 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.103306 | 242 | 8 | 63 | 30.25 | 0.81106 | 0 | 0 | 0 | 0 | 0 | 0.256198 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
fd9e2eb35e399d9a9c5864bd29d3edbe52e9b32b | 174 | py | Python | scan-reporting/__init__.py | rsjones94/scan-reporting | a1206183082dabb57ceb5da3b8d21f8861665f7d | [
"MIT"
] | null | null | null | scan-reporting/__init__.py | rsjones94/scan-reporting | a1206183082dabb57ceb5da3b8d21f8861665f7d | [
"MIT"
] | null | null | null | scan-reporting/__init__.py | rsjones94/scan-reporting | a1206183082dabb57ceb5da3b8d21f8861665f7d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 28 17:19:21 2020
@author: manusdonahue
"""
from helpers import *
from report_image_generation import * | 17.4 | 37 | 0.695402 | 26 | 174 | 4.576923 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.155172 | 174 | 10 | 37 | 17.4 | 0.714286 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fda7680e6d77f83e4204d90d706733d6949089d1 | 186 | py | Python | package/setup.py | pathompong-y/DisasterMsgClassification | 4d6c53580fbf37e8bd482fa2f8f11accb1643a86 | [
"MIT"
] | 1 | 2020-03-08T15:31:44.000Z | 2020-03-08T15:31:44.000Z | package/setup.py | pathompong-y/DisasterMsgClassification | 4d6c53580fbf37e8bd482fa2f8f11accb1643a86 | [
"MIT"
] | null | null | null | package/setup.py | pathompong-y/DisasterMsgClassification | 4d6c53580fbf37e8bd482fa2f8f11accb1643a86 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='adv_adj_extractor',
version='0.5',
description='Adverb Adjective Extractor',
packages=['distributions'],
zip_safe=False) | 26.571429 | 47 | 0.693548 | 21 | 186 | 6 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.188172 | 186 | 7 | 48 | 26.571429 | 0.821192 | 0 | 0 | 0 | 0 | 0 | 0.315508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
fdb701523286940296ddeee5fa9d2214b625e108 | 233 | py | Python | djorm_pgfulltext/utils.py | DFID/djorm-ext-pgfulltext | 41828319f644a7ec07d72e2093ab71cea27f9b7c | [
"BSD-3-Clause"
] | null | null | null | djorm_pgfulltext/utils.py | DFID/djorm-ext-pgfulltext | 41828319f644a7ec07d72e2093ab71cea27f9b7c | [
"BSD-3-Clause"
] | null | null | null | djorm_pgfulltext/utils.py | DFID/djorm-ext-pgfulltext | 41828319f644a7ec07d72e2093ab71cea27f9b7c | [
"BSD-3-Clause"
] | 1 | 2021-04-10T22:00:06.000Z | 2021-04-10T22:00:06.000Z | import psycopg2
from django.db import connections
from django.utils.text import force_text
def adapt(text):
a = psycopg2.extensions.adapt(force_text(text))
a.prepare(connections['default'].cursor().connection)
return a
| 23.3 | 57 | 0.759657 | 32 | 233 | 5.46875 | 0.5625 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.137339 | 233 | 9 | 58 | 25.888889 | 0.860697 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fdd35c159166396c7c1795c7aeccb8232d2df6c2 | 416 | py | Python | other/dingding/dingtalk/api/rest/OapiImChatServicegroupCreateRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | other/dingding/dingtalk/api/rest/OapiImChatServicegroupCreateRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | other/dingding/dingtalk/api/rest/OapiImChatServicegroupCreateRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | '''
Created by auto_sdk on 2019.08.22
'''
from dingtalk.api.base import RestApi
class OapiImChatServicegroupCreateRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.group_uniq_id = None
self.org_inner_group = None
self.owner_userid = None
self.title = None
def getHttpMethod(self... | 23.111111 | 52 | 0.759615 | 58 | 416 | 5.206897 | 0.655172 | 0.07947 | 0.072848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022161 | 0.132212 | 416 | 17 | 53 | 24.470588 | 0.814404 | 0.079327 | 0 | 0 | 0 | 0 | 0.12 | 0.109333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.583333 | 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 |
fdf8ec28d88e2261eb378b2b18fdcb8e9349afd3 | 635 | py | Python | basics/9_magic_methods.py | kat0lia/python_qa_oop | ca11ccae990b85e7dadd31ffbd4e976f544d1527 | [
"MIT"
] | null | null | null | basics/9_magic_methods.py | kat0lia/python_qa_oop | ca11ccae990b85e7dadd31ffbd4e976f544d1527 | [
"MIT"
] | null | null | null | basics/9_magic_methods.py | kat0lia/python_qa_oop | ca11ccae990b85e7dadd31ffbd4e976f544d1527 | [
"MIT"
] | 6 | 2021-01-21T18:06:33.000Z | 2022-03-30T10:11:41.000Z | class Beauty:
def __init__(self, amount):
self.amount = amount
def __repr__(self):
return "= Beauty:{} =".format(self.amount)
def __str__(self):
return "B*E*A*U*T*Y:{}".format(self.amount)
def __add__(self, other):
if not isinstance(other, Beauty):
raise V... | 20.483871 | 53 | 0.588976 | 82 | 635 | 4.219512 | 0.426829 | 0.17341 | 0.092486 | 0.109827 | 0.17341 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0.023454 | 0.261417 | 635 | 30 | 54 | 21.166667 | 0.714286 | 0.148032 | 0 | 0 | 0 | 0 | 0.076493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.1875 | 0.625 | 0.0625 | 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 |
a9068b089c2433fb748b4328442fea004251a431 | 1,320 | py | Python | tests/old/test_decorator.py | DiamondLightSource/SuRVoS2 | 42bacfb6a5cc267f38ca1337e51a443eae1a9d2b | [
"MIT"
] | 4 | 2017-10-10T14:47:16.000Z | 2022-01-14T05:57:50.000Z | tests/old/test_decorator.py | DiamondLightSource/SuRVoS2 | 42bacfb6a5cc267f38ca1337e51a443eae1a9d2b | [
"MIT"
] | 1 | 2022-01-11T21:11:12.000Z | 2022-01-12T08:22:34.000Z | tests/old/test_decorator.py | DiamondLightSource/SuRVoS2 | 42bacfb6a5cc267f38ca1337e51a443eae1a9d2b | [
"MIT"
] | 2 | 2018-03-06T06:31:29.000Z | 2019-03-04T03:33:18.000Z | import pytest
import numpy as np
import dask.array as da
from survos2.improc.utils import survosify, map_blocks, optimal_chunksize
@survosify(dtype=np.int32)
def func_a(arr):
return func_b(arr) + 1
@survosify(dtype=np.float32)
def func_b(arr):
return func_c(arr) + 1
@survosify(dtype=np.uint8)
def func_c... | 24.90566 | 77 | 0.693182 | 205 | 1,320 | 4.190244 | 0.331707 | 0.052387 | 0.060536 | 0.107101 | 0.280559 | 0.19674 | 0.12922 | 0.12922 | 0 | 0 | 0 | 0.037409 | 0.169697 | 1,320 | 52 | 78 | 25.384615 | 0.74635 | 0.603788 | 0 | 0.117647 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.235294 | 0.705882 | 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 |
8bf30b5c1c1d5b06dd71ce3de842bb68e0756c0c | 283 | py | Python | problem_2.py | vineeths96/Pattern-Recognition-2 | 8691c4fe658028bc9d4a06eb17c216eaa5193df9 | [
"MIT"
] | null | null | null | problem_2.py | vineeths96/Pattern-Recognition-2 | 8691c4fe658028bc9d4a06eb17c216eaa5193df9 | [
"MIT"
] | null | null | null | problem_2.py | vineeths96/Pattern-Recognition-2 | 8691c4fe658028bc9d4a06eb17c216eaa5193df9 | [
"MIT"
] | 1 | 2021-08-15T17:34:56.000Z | 2021-08-15T17:34:56.000Z | import os
from problem_2.load_data import load_data
from problem_2.problem_2 import problem_2
# Create results directory
os.makedirs('results', exist_ok=True)
# Problem 2
X_train, Y_train, X_test, Y_test = load_data('iris_dataset.txt')
problem_2(X_train, Y_train, X_test, Y_test)
| 23.583333 | 64 | 0.798587 | 52 | 283 | 4 | 0.403846 | 0.230769 | 0.115385 | 0.134615 | 0.288462 | 0.288462 | 0.288462 | 0.288462 | 0.288462 | 0.288462 | 0 | 0.023904 | 0.113074 | 283 | 11 | 65 | 25.727273 | 0.804781 | 0.120141 | 0 | 0 | 0 | 0 | 0.093496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e306782610009fb8fe39263f8277d3f4605b2e19 | 374 | py | Python | lib/exabgp/bgp/message/open/version.py | opensourcerouting/exabgp | 2ba3ed23eae97f71372fcb437cf0c30bbffd1e2b | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/bgp/message/open/version.py | opensourcerouting/exabgp | 2ba3ed23eae97f71372fcb437cf0c30bbffd1e2b | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/bgp/message/open/version.py | opensourcerouting/exabgp | 2ba3ed23eae97f71372fcb437cf0c30bbffd1e2b | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
"""
version.py
Created by Thomas Mangin on 2012-07-17.
Copyright (c) 2009-2017 Exa Networks. All rights reserved.
License: 3-clause BSD. (See the COPYRIGHT file)
"""
from exabgp.util import character
# =================================================================== Version
#
class Version(int... | 19.684211 | 77 | 0.574866 | 45 | 374 | 4.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056962 | 0.15508 | 374 | 18 | 78 | 20.777778 | 0.623418 | 0.671123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e31ee833a706e09a3400c1369d0baabe1337ff52 | 436 | py | Python | inputLibs.py | wbellman/Python-Fate-Example | a764d3d386b60d4ecfbb59837321e6c30f1c4249 | [
"MIT"
] | null | null | null | inputLibs.py | wbellman/Python-Fate-Example | a764d3d386b60d4ecfbb59837321e6c30f1c4249 | [
"MIT"
] | null | null | null | inputLibs.py | wbellman/Python-Fate-Example | a764d3d386b60d4ecfbb59837321e6c30f1c4249 | [
"MIT"
] | null | null | null |
def as_int(str):
try:
return int(str)
except:
return None
def as_float(str):
try:
return float(str)
except:
return None
def get_string(prompt, chars=0):
return input(prompt.ljust(chars) + ": ")
def get_number(prompt, chars=0, convert = as_int):
response = get_string(prompt,chars)
retur... | 18.956522 | 50 | 0.692661 | 64 | 436 | 4.59375 | 0.3125 | 0.187075 | 0.153061 | 0.204082 | 0.380952 | 0.231293 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.18578 | 436 | 23 | 51 | 18.956522 | 0.819718 | 0 | 0 | 0.444444 | 0 | 0 | 0.004587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e33716ba8271cca97cf7a19f860821c125fe011c | 303 | py | Python | aula08a.py | LuisAlbertoOliveira/Python-CursoemVideo | e3e2c7169085bab41921a31058b565dd6e7302fe | [
"MIT"
] | null | null | null | aula08a.py | LuisAlbertoOliveira/Python-CursoemVideo | e3e2c7169085bab41921a31058b565dd6e7302fe | [
"MIT"
] | null | null | null | aula08a.py | LuisAlbertoOliveira/Python-CursoemVideo | e3e2c7169085bab41921a31058b565dd6e7302fe | [
"MIT"
] | null | null | null | #from math import sqrt
#num = int(input('Digite um numero: '))
#raiz = sqrt(num)
#print('A raiz quadrada de {} é igual a {:.2f}!'.format(num, raiz))
#
#import random
#n=random.randint(1,15)
#print(n)
#
import emoji
print(emoji.emojize('\033[4;34;40m Ola Mundo! :sunglasses: \033[m ', use_aliases=True)) | 25.25 | 87 | 0.676568 | 51 | 303 | 4 | 0.72549 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.125413 | 303 | 12 | 87 | 25.25 | 0.713208 | 0.607261 | 0 | 0 | 0 | 0 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
e33a18adec2a7f0dc4a4afdafec5a4f665c6e46b | 116 | py | Python | src/artemis_client/managers/assessment_managers/__init__.py | kit-sdq/artemis_client | 2048ae138aec6a07be6672f3ae8352bf58f99856 | [
"MIT"
] | 4 | 2021-12-13T09:13:44.000Z | 2021-12-13T12:27:15.000Z | src/artemis_client/managers/assessment_managers/__init__.py | kit-sdq/artemis_client | 2048ae138aec6a07be6672f3ae8352bf58f99856 | [
"MIT"
] | null | null | null | src/artemis_client/managers/assessment_managers/__init__.py | kit-sdq/artemis_client | 2048ae138aec6a07be6672f3ae8352bf58f99856 | [
"MIT"
] | null | null | null | from .programming_assessment import ProgrammingAssessmentManager
__all__ = [
"ProgrammingAssessmentManager",
]
| 19.333333 | 64 | 0.818966 | 7 | 116 | 12.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 116 | 5 | 65 | 23.2 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 1 | 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 |
e35628faadce0cb72877caac447786e4a7cd033b | 116 | py | Python | test/test_simulator.py | mickey9910326/py-asa-loader | 75852a4c633f34a67f5de2b2a807d2d40ce423bf | [
"MIT"
] | null | null | null | test/test_simulator.py | mickey9910326/py-asa-loader | 75852a4c633f34a67f5de2b2a807d2d40ce423bf | [
"MIT"
] | null | null | null | test/test_simulator.py | mickey9910326/py-asa-loader | 75852a4c633f34a67f5de2b2a807d2d40ce423bf | [
"MIT"
] | null | null | null | import conftest
from asaprog import Simulator
if __name__ == "__main__":
sim = Simulator('COM1')
sim.run()
| 16.571429 | 29 | 0.689655 | 14 | 116 | 5.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.198276 | 116 | 6 | 30 | 19.333333 | 0.763441 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 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 |
e369fa92ea08f19ca2e58db85c6723d975eafd29 | 16,605 | py | Python | x11_hash_py/tests/test_hashes.py | zebra-lucky/x11-hash-py | e2264b0c2a7dd2e7331494908bb8d06084eb49f8 | [
"MIT"
] | null | null | null | x11_hash_py/tests/test_hashes.py | zebra-lucky/x11-hash-py | e2264b0c2a7dd2e7331494908bb8d06084eb49f8 | [
"MIT"
] | 3 | 2018-10-28T13:18:48.000Z | 2019-06-18T08:39:36.000Z | x11_hash_py/tests/test_hashes.py | zebra-lucky/x11-hash-py | e2264b0c2a7dd2e7331494908bb8d06084eb49f8 | [
"MIT"
] | 2 | 2019-06-18T08:36:09.000Z | 2020-07-03T09:16:30.000Z | # -*- coding: utf-8 -*-
import sys
import unittest
from x11_hash_py import getPoWHash
from x11_hash_py.blake import blake
from x11_hash_py.bmw import bmw
from x11_hash_py.groestl import groestl
from x11_hash_py.skein import skein
from x11_hash_py.jh import jh
from x11_hash_py.keccak import Keccak512
from x11_hash_py.l... | 39.162736 | 80 | 0.717314 | 1,149 | 16,605 | 10.167102 | 0.234987 | 0.035354 | 0.09596 | 0.097072 | 0.237631 | 0.232323 | 0.210923 | 0.183445 | 0.081493 | 0.048964 | 0 | 0.365679 | 0.217404 | 16,605 | 423 | 81 | 39.255319 | 0.533282 | 0.016441 | 0 | 0.345029 | 0 | 0 | 0.482389 | 0.439081 | 0 | 0 | 0 | 0 | 0.169591 | 1 | 0.175439 | false | 0 | 0.040936 | 0.005848 | 0.25731 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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 |
e36f06c25acbd508b454758ec752e5d775e42612 | 628 | py | Python | lewis_emulators/mezflipr/device.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 2 | 2020-10-20T16:49:13.000Z | 2021-02-19T10:41:44.000Z | lewis_emulators/mezflipr/device.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 9 | 2019-03-22T15:35:15.000Z | 2021-07-28T11:05:43.000Z | lewis_emulators/mezflipr/device.py | ISISComputingGroup/EPICS-DeviceEmulator | 026c2a14a16bb204ea7527e3765daa182cafa814 | [
"BSD-3-Clause"
] | 1 | 2020-10-21T17:02:44.000Z | 2020-10-21T17:02:44.000Z | from collections import OrderedDict
from .states import DefaultState
from lewis.devices import StateMachineDevice
class SimulatedMezflipr(StateMachineDevice):
def _initialize_data(self):
"""
Initialize all of the device's attributes.
"""
self.connected = True
self.powered... | 22.428571 | 50 | 0.656051 | 64 | 628 | 6.25 | 0.59375 | 0.045 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.261147 | 628 | 27 | 51 | 23.259259 | 0.859914 | 0.066879 | 0 | 0 | 0 | 0 | 0.035587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.1875 | 0.6875 | 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 |
e379bbe406591dbf39eef13def805ad014a27c22 | 159 | py | Python | skip/pagination.py | LCOGT/skip | 2524ba71c39876aae8a31fff3de55e6cb7aa1f83 | [
"BSD-3-Clause"
] | null | null | null | skip/pagination.py | LCOGT/skip | 2524ba71c39876aae8a31fff3de55e6cb7aa1f83 | [
"BSD-3-Clause"
] | 4 | 2020-09-10T20:31:54.000Z | 2022-02-27T18:40:23.000Z | skip/pagination.py | scimma/skip | aa9437d8c4f7d5edbffaec20e6651339241bbb95 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import pagination
class SkipPagination(pagination.PageNumberPagination):
page_size_query_param = 'page_size'
max_page_size = 100
| 22.714286 | 54 | 0.811321 | 19 | 159 | 6.421053 | 0.736842 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0.138365 | 159 | 6 | 55 | 26.5 | 0.868613 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e379d259f1d0fddf34cffd3775da95c06fea2d7a | 626 | py | Python | rest_generator/helpers/console.py | harlov/django-rest-generator | b94bf70b91fccb345b470066f90d475bf2bc8013 | [
"BSD-2-Clause"
] | null | null | null | rest_generator/helpers/console.py | harlov/django-rest-generator | b94bf70b91fccb345b470066f90d475bf2bc8013 | [
"BSD-2-Clause"
] | null | null | null | rest_generator/helpers/console.py | harlov/django-rest-generator | b94bf70b91fccb345b470066f90d475bf2bc8013 | [
"BSD-2-Clause"
] | null | null | null | class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def get_common_string(inp, clr):
return(clr+inp+bcolors.ENDC)
def get_bold(inp):
return get_common_string(... | 20.193548 | 50 | 0.669329 | 94 | 626 | 4.308511 | 0.308511 | 0.17284 | 0.17284 | 0.167901 | 0.335802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072125 | 0.180511 | 626 | 31 | 51 | 20.193548 | 0.717349 | 0 | 0 | 0 | 0 | 0 | 0.097289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0 | 0.086957 | 0.73913 | 0.434783 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8b4c23d797af3b8be5eb77db614d9f5ca59d5e66 | 20 | py | Python | Compile_error.py | chunky2808/Karmo-Onsite-Judge | 545edcf13bf90027be01f2d366f6a000f087f3b7 | [
"MIT"
] | 13 | 2018-07-22T08:05:01.000Z | 2022-03-28T17:49:07.000Z | Compile_error.py | chunky2808/Karmo-Onsite-Judge | 545edcf13bf90027be01f2d366f6a000f087f3b7 | [
"MIT"
] | null | null | null | Compile_error.py | chunky2808/Karmo-Onsite-Judge | 545edcf13bf90027be01f2d366f6a000f087f3b7 | [
"MIT"
] | 5 | 2018-07-26T05:49:48.000Z | 2021-05-09T10:06:51.000Z | a = input()
b = cas
| 6.666667 | 11 | 0.5 | 4 | 20 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 20 | 2 | 12 | 10 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8b5799294741f6db5574df9bbde6b9683c82c067 | 421 | py | Python | tests/documentation/test_processor_invalid_type.py | hile/vaskitsa | acebf6cc970e9c342f6b8dc15f0c8d37b272aa5b | [
"PSF-2.0"
] | null | null | null | tests/documentation/test_processor_invalid_type.py | hile/vaskitsa | acebf6cc970e9c342f6b8dc15f0c8d37b272aa5b | [
"PSF-2.0"
] | null | null | null | tests/documentation/test_processor_invalid_type.py | hile/vaskitsa | acebf6cc970e9c342f6b8dc15f0c8d37b272aa5b | [
"PSF-2.0"
] | null | null | null | """
Test loading processor with invalid type
"""
import pytest
from vaskitsa.documentation.loader import get_processor
from vaskitsa.documentation.base import DocumentGeneratorError
from .constants import REPO_ROOT_PATH
def test_processor_invalid_type():
"""
Test lookup for processor with invalid type
... | 22.157895 | 62 | 0.774347 | 49 | 421 | 6.469388 | 0.469388 | 0.104101 | 0.126183 | 0.15142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15677 | 421 | 18 | 63 | 23.388889 | 0.892958 | 0.199525 | 0 | 0 | 0 | 0 | 0.022293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.571429 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8b5dae72126edfc5ae199ff83cb1a5db46ed4a30 | 1,309 | py | Python | core/number_objects/primitives/variable.py | mike006322/PolynomialCalculator | bf56b0e773a3461ab2aa958d0d90e08f80a4d201 | [
"MIT"
] | null | null | null | core/number_objects/primitives/variable.py | mike006322/PolynomialCalculator | bf56b0e773a3461ab2aa958d0d90e08f80a4d201 | [
"MIT"
] | null | null | null | core/number_objects/primitives/variable.py | mike006322/PolynomialCalculator | bf56b0e773a3461ab2aa958d0d90e08f80a4d201 | [
"MIT"
] | null | null | null | """
Variable object
aka indeterminate or unknown
"""
class Variable:
def __init__(self, label):
if not label:
raise Exception('Variable must be a letter with optional number, e.g. "X", "X1')
if isinstance(label, str):
self.label = label
elif isinstance(label, Varia... | 24.240741 | 92 | 0.595875 | 152 | 1,309 | 4.842105 | 0.269737 | 0.183424 | 0.224185 | 0.244565 | 0.59375 | 0.533967 | 0.533967 | 0.533967 | 0.533967 | 0.533967 | 0 | 0.001105 | 0.308633 | 1,309 | 53 | 93 | 24.698113 | 0.812155 | 0.033613 | 0 | 0.277778 | 0 | 0 | 0.054893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.027778 | 0 | 0.083333 | 0.638889 | 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 |
8b6f9a8f15103f38b16bb3d2365660ee5353e125 | 1,592 | py | Python | dae/dae/configuration/schemas/score_file_conf.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | dae/dae/configuration/schemas/score_file_conf.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | 82 | 2019-07-22T11:44:23.000Z | 2022-01-13T15:27:33.000Z | dae/dae/configuration/schemas/score_file_conf.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | score_file_conf_schema = {
"general": {
"type": "dict",
"schema": {
"header": {"type": "list", "schema": {"type": "string"}},
"score": {"type": "list", "schema": {"type": "string"}},
"no_score_value": {"type": "string"},
"chr_prefix": {"type": "boolean... | 34.608696 | 74 | 0.391332 | 128 | 1,592 | 4.773438 | 0.242188 | 0.310966 | 0.206219 | 0.265139 | 0.450082 | 0.450082 | 0.12766 | 0.12766 | 0 | 0 | 0 | 0 | 0.336683 | 1,592 | 45 | 75 | 35.377778 | 0.578598 | 0 | 0 | 0.266667 | 0 | 0 | 0.381281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
8b7e36532f67f4c065ad5cd484895ebf53498820 | 36,304 | py | Python | structure/construct/construct_map.py | J-T-de/sourcehold-maps | 330ab1b3426dbd93b5de3b0c031419e54f6a1618 | [
"MIT"
] | null | null | null | structure/construct/construct_map.py | J-T-de/sourcehold-maps | 330ab1b3426dbd93b5de3b0c031419e54f6a1618 | [
"MIT"
] | null | null | null | structure/construct/construct_map.py | J-T-de/sourcehold-maps | 330ab1b3426dbd93b5de3b0c031419e54f6a1618 | [
"MIT"
] | null | null | null | from construct import *
ConstructMap = Struct(
Const(b'\xff\xff\xff\xff'),
# Preview
"preview" / Struct(
"size" / Int32sl,
"uncompr_size" / Int32sl,
"compr_size" / Int32sl,
"crc_32" / Int32sl,
"data" / Bytes(this.compr_size),
),
# Descr... | 41.442922 | 171 | 0.336134 | 2,476 | 36,304 | 4.669628 | 0.140145 | 0.174105 | 0.168656 | 0.211209 | 0.776682 | 0.711555 | 0.655769 | 0.653001 | 0.46895 | 0.464885 | 0 | 0.11885 | 0.572857 | 36,304 | 876 | 172 | 41.442922 | 0.626749 | 0.041951 | 0 | 0.696255 | 0 | 0 | 0.082775 | 0.000777 | 0 | 0 | 0 | 0.001142 | 0 | 1 | 0 | false | 0 | 0.001387 | 0 | 0.001387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ba15a117b4f3d2197d157a864a7c402499b3ef9 | 228 | py | Python | rhyme-react/schemer_app/views.py | petroleyum/rhyme-schemer | fd6c27f2b1408bdec6899113010b06bb8e2fe27d | [
"MIT"
] | null | null | null | rhyme-react/schemer_app/views.py | petroleyum/rhyme-schemer | fd6c27f2b1408bdec6899113010b06bb8e2fe27d | [
"MIT"
] | null | null | null | rhyme-react/schemer_app/views.py | petroleyum/rhyme-schemer | fd6c27f2b1408bdec6899113010b06bb8e2fe27d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.views.generic.base import TemplateView
class IndexView(TemplateView):
template_name = 'schemer_app/base.html'
| 25.333333 | 50 | 0.785088 | 29 | 228 | 5.931034 | 0.758621 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.122807 | 228 | 8 | 51 | 28.5 | 0.855 | 0.092105 | 0 | 0 | 0 | 0 | 0.102439 | 0.102439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8be8f8e15735d357033ed5d420fb0da134efb961 | 6,120 | py | Python | code/qanon_paper.py | medialab/webclim_facebook | 246b2c97eb1dbc73f68489fb80870cf5b3586517 | [
"MIT"
] | 3 | 2021-02-16T14:00:16.000Z | 2021-07-27T11:30:29.000Z | code/qanon_paper.py | medialab/webclim_facebook | 246b2c97eb1dbc73f68489fb80870cf5b3586517 | [
"MIT"
] | null | null | null | code/qanon_paper.py | medialab/webclim_facebook | 246b2c97eb1dbc73f68489fb80870cf5b3586517 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from utils import import_data, keep_only_one_year_data, clean_crowdtangle_url_data
def filter_accounts_sharing_less_than_x_fake_news(df, x):
value_count = df.drop_duplicates(subset=['account_id', 'url'], keep='first')['account_id'].value_counts()
df_filtered = df[df['ac... | 53.217391 | 134 | 0.732516 | 853 | 6,120 | 4.921454 | 0.201641 | 0.03859 | 0.045736 | 0.038352 | 0.780372 | 0.744164 | 0.701048 | 0.622677 | 0.622677 | 0.613149 | 0 | 0.007762 | 0.158007 | 6,120 | 115 | 135 | 53.217391 | 0.806909 | 0 | 0 | 0.382022 | 0 | 0 | 0.373142 | 0.05522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.05618 | 0 | 0.101124 | 0.224719 | 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 |
4733f0c9dd87838d18553069cf18c2a741a20f5e | 3,017 | py | Python | modules/Setting.py | Shecspi/Running-Alien | 90b347b635d49b68765ed28da1ddad9733612fe9 | [
"Apache-2.0"
] | null | null | null | modules/Setting.py | Shecspi/Running-Alien | 90b347b635d49b68765ed28da1ddad9733612fe9 | [
"Apache-2.0"
] | null | null | null | modules/Setting.py | Shecspi/Running-Alien | 90b347b635d49b68765ed28da1ddad9733612fe9 | [
"Apache-2.0"
] | null | null | null | # Running Alien v. 0.3
#
# Copyright © 2020 Egor Vavilov (shecspi@gmail.com)
# Licensed under the Apache License, Version 2.0
""" Setting management module.
It includes the methods to get and to set any settings.
The module sets default values of setting when initializing a class.
To reset setting you should kill... | 27.427273 | 71 | 0.658933 | 438 | 3,017 | 4.10274 | 0.19863 | 0.093489 | 0.05064 | 0.070117 | 0.13133 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014273 | 0.256878 | 3,017 | 109 | 72 | 27.678899 | 0.786798 | 0.1412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.393939 | false | 0 | 0 | 0.212121 | 0.621212 | 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 |
4748ee7e94a12fc0d1879ec07668c113a3e14a66 | 529 | py | Python | pulpo_example/serializers.py | pulpocoders/pulpo-forms-examples | 8b9121b8e323b9432d17f7fc0812405668df3b04 | [
"Apache-2.0"
] | 3 | 2015-11-05T00:23:32.000Z | 2017-05-02T15:24:11.000Z | pulpo_example/serializers.py | pulpocoders/pulpo-forms-examples | 8b9121b8e323b9432d17f7fc0812405668df3b04 | [
"Apache-2.0"
] | null | null | null | pulpo_example/serializers.py | pulpocoders/pulpo-forms-examples | 8b9121b8e323b9432d17f7fc0812405668df3b04 | [
"Apache-2.0"
] | 1 | 2015-08-01T02:03:23.000Z | 2015-08-01T02:03:23.000Z |
from rest_framework import serializers
from pulpo_example.models import PulpoUser, Club, Country
class PulpoUserSerializer(serializers.ModelSerializer):
class Meta:
model = PulpoUser
fields = ('name', 'last_name', 'birthdate', 'has_car')
class ClubSerializer(serializers.ModelSerializer):
... | 21.16 | 62 | 0.68431 | 50 | 529 | 7.16 | 0.5 | 0.217877 | 0.259777 | 0.293296 | 0.335196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 529 | 24 | 63 | 22.041667 | 0.864734 | 0 | 0 | 0.214286 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
475e9ebd434a6903c3b08af3cde96117e6dbd381 | 482 | py | Python | awesomeDP/spots/models.py | bentaro/AwesomeDatePlanBackend | d6403e885e190c4e37eeaadca3264f9a79add6f0 | [
"Unlicense"
] | null | null | null | awesomeDP/spots/models.py | bentaro/AwesomeDatePlanBackend | d6403e885e190c4e37eeaadca3264f9a79add6f0 | [
"Unlicense"
] | null | null | null | awesomeDP/spots/models.py | bentaro/AwesomeDatePlanBackend | d6403e885e190c4e37eeaadca3264f9a79add6f0 | [
"Unlicense"
] | null | null | null | from django.db import models
import uuid
class Spot(models.Model):
class Meta:
db_table = 'spot'
spot_id = models.IntegerField(primary_key=True, editable=False)
name = models.CharField(max_length=132, blank=False, null=False)
picture = models.URLField(blank=False, null=False)
detail_ur... | 34.428571 | 68 | 0.724066 | 64 | 482 | 5.375 | 0.5 | 0.145349 | 0.203488 | 0.276163 | 0.395349 | 0.395349 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.165975 | 482 | 13 | 69 | 37.076923 | 0.848259 | 0 | 0 | 0 | 0 | 0 | 0.008299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
477926b73df21c9e1bfcfb46986e243068a3e3ca | 433 | py | Python | keras_bert_ner_light/bert_encode_server/server/server.py | liushaoweihua/keras-bert-ner-light | a265fa0df6134b2e633b3782eb04d756e6cf9698 | [
"MIT"
] | 8 | 2020-03-02T12:58:36.000Z | 2021-09-26T14:51:14.000Z | keras_bert_ner_light/bert_encode_server/server/server.py | liushaoweihua/keras-bert-ner-light | a265fa0df6134b2e633b3782eb04d756e6cf9698 | [
"MIT"
] | 7 | 2020-11-13T18:38:52.000Z | 2022-02-10T01:18:06.000Z | keras_bert_ner_light/bert_encode_server/server/server.py | liushaoweihua/keras-bert-ner-light | a265fa0df6134b2e633b3782eb04d756e6cf9698 | [
"MIT"
] | 2 | 2020-06-16T01:01:57.000Z | 2020-07-01T14:55:12.000Z | # -*- coding: utf-8 -*-
"""
@Author: Shaoweihua.Liu
@Contact: liushaoweihua@126.com
@Site: github.com/liushaoweihua
@File: server.py.py
@Time: 2020/3/2 2:50 PM
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from . import BertServer
from .helper impor... | 19.681818 | 46 | 0.732102 | 60 | 433 | 4.85 | 0.65 | 0.103093 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035422 | 0.152425 | 433 | 22 | 47 | 19.681818 | 0.757493 | 0.355658 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
477c0e2fbd9884f2f211adae6848404f2886d59e | 415 | py | Python | Round700/YetAnotherStringGame/yet_another_string_game_test.py | tqa236/codeforces | 81ad7bdb7786455f83d48d59a8884f62ded66caf | [
"MIT"
] | null | null | null | Round700/YetAnotherStringGame/yet_another_string_game_test.py | tqa236/codeforces | 81ad7bdb7786455f83d48d59a8884f62ded66caf | [
"MIT"
] | null | null | null | Round700/YetAnotherStringGame/yet_another_string_game_test.py | tqa236/codeforces | 81ad7bdb7786455f83d48d59a8884f62ded66caf | [
"MIT"
] | null | null | null | import unittest
from yet_another_string_game import yet_another_string_game
class Test(unittest.TestCase):
def test_1(self):
self.assertEqual(yet_another_string_game("a"), "b")
def test_2(self):
self.assertEqual(yet_another_string_game("bb"), "az")
def test_3(self):
self.assertE... | 21.842105 | 65 | 0.703614 | 57 | 415 | 4.666667 | 0.438596 | 0.18797 | 0.300752 | 0.37594 | 0.43985 | 0.43985 | 0.43985 | 0 | 0 | 0 | 0 | 0.008746 | 0.173494 | 415 | 18 | 66 | 23.055556 | 0.766764 | 0 | 0 | 0 | 0 | 0 | 0.053012 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 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 |
4785199f67b06e8c0b30e1f3811e62bf43e5f8be | 833 | py | Python | src/triggers/tests/base_trigger/tests_trigger_sending.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 151 | 2020-04-21T09:58:57.000Z | 2021-09-12T09:01:21.000Z | src/triggers/tests/base_trigger/tests_trigger_sending.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 163 | 2020-05-29T20:52:00.000Z | 2021-09-11T12:44:56.000Z | src/triggers/tests/base_trigger/tests_trigger_sending.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 39 | 2020-04-21T12:28:16.000Z | 2021-09-12T15:33:47.000Z | import pytest
from triggers.models import TriggerLogEntry
pytestmark = [pytest.mark.django_db]
def pytest_generate_tests(metafunc):
metafunc.parametrize('condition', [True, False])
def log_entry(order):
return TriggerLogEntry.objects.filter(order=order, trigger='test')
@pytest.fixture(autouse=True)
def ... | 23.8 | 74 | 0.757503 | 107 | 833 | 5.71028 | 0.373832 | 0.144026 | 0.104746 | 0.10311 | 0.333879 | 0.288052 | 0.288052 | 0.288052 | 0.288052 | 0.288052 | 0 | 0.001377 | 0.128451 | 833 | 34 | 75 | 24.5 | 0.84022 | 0 | 0 | 0.222222 | 1 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.277778 | false | 0 | 0.111111 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
47879abb8542ad147d5d15f118bc8b511f37a923 | 322 | py | Python | WPAutomate1.py | Shuvo31/Whatsapp-Automation-with-Python | f3825bd41f4a0060d3c43dd03bb5d8f26aa732a8 | [
"MIT"
] | 2 | 2021-05-29T17:01:05.000Z | 2021-05-30T06:54:48.000Z | WPAutomate1.py | Shuvo31/Whatsapp-Automation-with-Python | f3825bd41f4a0060d3c43dd03bb5d8f26aa732a8 | [
"MIT"
] | null | null | null | WPAutomate1.py | Shuvo31/Whatsapp-Automation-with-Python | f3825bd41f4a0060d3c43dd03bb5d8f26aa732a8 | [
"MIT"
] | null | null | null | import pywhatkit
m1 = input("Please Enter the Mobile Number:")
t1=input("Please type the message:")
tm1= int(input("Please Enter the time frame hour:"))
ss1= int(input("Please Enter the time frame minutes "))
try:
pywhatkit.sendwhatmsg(m1,t1,tm1,ss1)
print("Message sent successfully!")
except:
print("Error!"... | 29.272727 | 55 | 0.717391 | 47 | 322 | 4.914894 | 0.553191 | 0.190476 | 0.207792 | 0.246753 | 0.268398 | 0.268398 | 0.268398 | 0 | 0 | 0 | 0 | 0.028986 | 0.142857 | 322 | 10 | 56 | 32.2 | 0.807971 | 0 | 0 | 0 | 0 | 0 | 0.484472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
479e839a3620fe8bdd586a8a2ddc92625735a193 | 2,299 | py | Python | setup.py | marble/pyzshcomplete | c7896c8db3d753fb41fd1de403d9feaf2a3bae1e | [
"MIT"
] | 14 | 2020-05-23T01:52:53.000Z | 2021-09-21T16:41:01.000Z | setup.py | marble/pyzshcomplete | c7896c8db3d753fb41fd1de403d9feaf2a3bae1e | [
"MIT"
] | 35 | 2020-03-13T22:46:59.000Z | 2021-09-17T02:48:34.000Z | setup.py | marble/pyzshcomplete | c7896c8db3d753fb41fd1de403d9feaf2a3bae1e | [
"MIT"
] | 1 | 2021-09-10T09:25:23.000Z | 2021-09-10T09:25:23.000Z | #!/usr/bin/env python3
from setuptools import setup, find_packages
from glob import glob
from os import listdir
from os.path import join
setup(
name='pyzshcomplete',
version='1.0.3',
description='Tab completion for arbitraty python scripts in zsh',
long_description=open('README.rst').read(),
long... | 32.842857 | 74 | 0.595041 | 225 | 2,299 | 6.004444 | 0.475556 | 0.196891 | 0.259067 | 0.211695 | 0.090303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022379 | 0.261418 | 2,299 | 69 | 75 | 33.318841 | 0.773263 | 0.009134 | 0 | 0.030769 | 0 | 0 | 0.530962 | 0.010979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.061538 | 0 | 0.061538 | 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 |
47b7f40adaf5c0d0de95bf7fce7c432bc559673c | 248 | py | Python | setup.py | hubarbeit/bacnet-mqtt-gateway | 1468736d77fa4c1f0506e558cce80458bda71425 | [
"MIT"
] | 3 | 2020-10-28T18:14:08.000Z | 2021-12-01T18:01:45.000Z | setup.py | hubarbeit/bacnet-mqtt-gateway | 1468736d77fa4c1f0506e558cce80458bda71425 | [
"MIT"
] | null | null | null | setup.py | hubarbeit/bacnet-mqtt-gateway | 1468736d77fa4c1f0506e558cce80458bda71425 | [
"MIT"
] | 1 | 2020-09-15T13:47:44.000Z | 2020-09-15T13:47:44.000Z | from setuptools import setup, find_packages
setup(
name = 'bacnet_mqtt_gateway',
packages = find_packages(),
entry_points={
"console_scripts": [
"bacnet_mqtt_gateway = bacnet_mqtt_gateway.script:main",
],
)
| 22.545455 | 68 | 0.653226 | 26 | 248 | 5.846154 | 0.615385 | 0.197368 | 0.335526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245968 | 248 | 10 | 69 | 24.8 | 0.812834 | 0 | 0 | 0 | 0 | 0 | 0.350806 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
47dd2871b16ee6da56a4aed2c07b9279e15ad155 | 700 | py | Python | models/lba_component.py | ruanyyyyyyy/text2shape | 276379df22ffdbe4cb54f30a88d65cf87bf53243 | [
"Apache-2.0"
] | 72 | 2018-03-27T13:45:09.000Z | 2022-03-16T03:04:02.000Z | models/lba_component.py | ruanyyyyyyy/text2shape | 276379df22ffdbe4cb54f30a88d65cf87bf53243 | [
"Apache-2.0"
] | 9 | 2018-05-30T04:05:50.000Z | 2020-12-02T01:19:01.000Z | models/lba_component.py | ruanyyyyyyy/text2shape | 276379df22ffdbe4cb54f30a88d65cf87bf53243 | [
"Apache-2.0"
] | 23 | 2018-03-26T21:35:09.000Z | 2022-02-24T17:39:58.000Z | from lib.config import cfg
from lib.net_component import LBANetComponent
from models.encoder_component import CNNRNNTextEncoder, ShapeEncoder
class LBAComponent1(LBANetComponent):
"""Same model structure as LBA1.
"""
def __init__(self, is_training, reuse=False, name='lba_component_1', no_scope=False):
... | 31.818182 | 99 | 0.752857 | 86 | 700 | 5.744186 | 0.418605 | 0.145749 | 0.097166 | 0.080972 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006908 | 0.172857 | 700 | 21 | 100 | 33.333333 | 0.846287 | 0.041429 | 0 | 0.142857 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
47ec7a7c690120a930854eac6ef160bd2463c532 | 2,224 | py | Python | rowgenerators/appurl/file/excel.py | Metatab/rowgenerators | 6bfd6d8b5c230de32644b5a25fbb09ae3754926e | [
"MIT"
] | 3 | 2017-10-10T16:16:39.000Z | 2020-11-29T15:40:55.000Z | rowgenerators/appurl/file/excel.py | Metatab/rowgenerators | 6bfd6d8b5c230de32644b5a25fbb09ae3754926e | [
"MIT"
] | 2 | 2017-10-13T11:50:15.000Z | 2017-12-06T01:52:37.000Z | rowgenerators/appurl/file/excel.py | Metatab/rowgenerators | 6bfd6d8b5c230de32644b5a25fbb09ae3754926e | [
"MIT"
] | 2 | 2017-10-13T11:44:08.000Z | 2017-12-05T23:38:10.000Z |
# Copyright (c) 2017 Civic Knowledge. This file is licensed under the terms of the
# MIT, included in this distribution as LICENSE
""" """
from .file import FileUrl
from rowgenerators.exceptions import AppUrlError
class ExcelFileUrl(FileUrl):
"""URL that references an Excl file, either .xls or .xlsx"""
matc... | 24.711111 | 103 | 0.629496 | 290 | 2,224 | 4.655172 | 0.427586 | 0.059259 | 0.033333 | 0.026667 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003108 | 0.276529 | 2,224 | 89 | 104 | 24.988764 | 0.835923 | 0.191996 | 0 | 0.065217 | 0 | 0 | 0.042938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.152174 | 0.608696 | 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 |
9a1476bce1b6edf89598ec501730faea441e9965 | 651 | py | Python | nidaqmx_examples/channel_properties.py | stafak/nidaqmx-python | f354d7971b21074c120c6f298dbbf4a5e0e4f4f4 | [
"MIT"
] | 252 | 2017-03-22T02:43:16.000Z | 2022-03-27T14:44:44.000Z | nidaqmx_examples/channel_properties.py | stafak/nidaqmx-python | f354d7971b21074c120c6f298dbbf4a5e0e4f4f4 | [
"MIT"
] | 133 | 2017-03-21T20:57:59.000Z | 2022-03-31T16:08:12.000Z | nidaqmx_examples/channel_properties.py | stafak/nidaqmx-python | f354d7971b21074c120c6f298dbbf4a5e0e4f4f4 | [
"MIT"
] | 124 | 2017-04-01T18:35:24.000Z | 2022-03-25T06:30:00.000Z | import pprint
import nidaqmx
pp = pprint.PrettyPrinter(indent=4)
with nidaqmx.Task() as task:
ai_channel = task.ai_channels.add_ai_voltage_chan(
"Dev1/ai0", max_val=0.1, min_val=-0.1)
print(ai_channel.ai_max)
print(ai_channel.ai_min)
ai_channel.ai_max = 5
print(ai_channel.ai_max)
p... | 23.25 | 62 | 0.72043 | 114 | 651 | 3.736842 | 0.280702 | 0.169014 | 0.180751 | 0.225352 | 0.56338 | 0.535211 | 0.535211 | 0.43662 | 0.276995 | 0.276995 | 0 | 0.042357 | 0.165899 | 651 | 28 | 63 | 23.25 | 0.742173 | 0 | 0 | 0.333333 | 0 | 0 | 0.039877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.611111 | 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 |
9a6e2327d4064aca22cbe076c51b69f30b9552e2 | 1,597 | py | Python | tests/architectures/test_diamonds.py | QuantMarkFramework/circuit-analyser | 45b0bc8916964234510c0378cc71c6a902937044 | [
"MIT"
] | null | null | null | tests/architectures/test_diamonds.py | QuantMarkFramework/circuit-analyser | 45b0bc8916964234510c0378cc71c6a902937044 | [
"MIT"
] | null | null | null | tests/architectures/test_diamonds.py | QuantMarkFramework/circuit-analyser | 45b0bc8916964234510c0378cc71c6a902937044 | [
"MIT"
] | null | null | null | import unittest
from analyser.architectures import diamonds
class TestDiamonds(unittest.TestCase):
def test_1_qubit(self):
correct = [(1, 0), (2, 0), (3, 1), (3, 2)]
self.assertEqual(sorted(diamonds(1, aslist=True)), sorted(correct))
def test_10_qubits(self):
l1 = [(2, 0), (3, 0), (3, 1), (4, 1)]
l2 = [(5,... | 38.95122 | 81 | 0.492799 | 288 | 1,597 | 2.694444 | 0.184028 | 0.018041 | 0.135309 | 0.186856 | 0.449742 | 0.430412 | 0.275773 | 0.275773 | 0.275773 | 0.275773 | 0 | 0.203762 | 0.201002 | 1,597 | 40 | 82 | 39.925 | 0.404389 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.147059 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7be0aefd43a00047ba1efdb6e19b386e1bc4e6e5 | 89 | py | Python | t38.py | tarunagarwal99/python | 13dbf4c4226430a3436d91d60f234827a05a6e0e | [
"MIT"
] | null | null | null | t38.py | tarunagarwal99/python | 13dbf4c4226430a3436d91d60f234827a05a6e0e | [
"MIT"
] | null | null | null | t38.py | tarunagarwal99/python | 13dbf4c4226430a3436d91d60f234827a05a6e0e | [
"MIT"
] | null | null | null | x=input("enter name:")
for i in x:
print(i,end='')
print("*",end='')
| 17.8 | 26 | 0.438202 | 13 | 89 | 3 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314607 | 89 | 4 | 27 | 22.25 | 0.639344 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 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 |
7be80e73cd75707fb09da991d9072f45d0aa1d05 | 2,058 | py | Python | test/test_format_time.py | privcount/privcount | d5dbe7cfea3523805bca51fea354110b0cf8e1d9 | [
"BSD-3-Clause"
] | 29 | 2016-08-15T20:43:40.000Z | 2022-03-30T09:04:57.000Z | test/test_format_time.py | privcount/privcount | d5dbe7cfea3523805bca51fea354110b0cf8e1d9 | [
"BSD-3-Clause"
] | 470 | 2016-08-22T21:44:28.000Z | 2018-08-24T05:38:16.000Z | test/test_format_time.py | privcount/privcount | d5dbe7cfea3523805bca51fea354110b0cf8e1d9 | [
"BSD-3-Clause"
] | 11 | 2016-08-30T02:14:15.000Z | 2020-09-21T09:21:20.000Z | #!/usr/bin/env python
# See LICENSE for licensing information
from privcount.log import normalise_time, format_epoch, format_period, format_datetime
# some of this code is only executed when we reach 1 week
# so let's test it thoroughly
# this test will always exit successfully, unless the logging code throws
# an e... | 22.615385 | 86 | 0.802721 | 321 | 2,058 | 4.82243 | 0.376947 | 0.322997 | 0.416021 | 0.05814 | 0.027132 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143396 | 0.098639 | 2,058 | 90 | 87 | 22.866667 | 0.691105 | 0.237609 | 0 | 0 | 0 | 0 | 0.058102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019608 | null | null | 0.078431 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7be9d9ec75dfbc19dc4ed260ee34646ee91b86c9 | 220 | py | Python | pagetools/subscriptions/apps.py | theithec/pagetools | f5fba7213864555275bddcc1882122f3be843f19 | [
"MIT"
] | null | null | null | pagetools/subscriptions/apps.py | theithec/pagetools | f5fba7213864555275bddcc1882122f3be843f19 | [
"MIT"
] | 14 | 2020-02-23T12:15:49.000Z | 2022-02-13T14:07:27.000Z | pagetools/subscriptions/apps.py | theithec/django-pagetools | 8fb73285acee8c8162329fc2895a3816fcb40165 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SubscriptionsConfig(AppConfig):
name = "pagetools.subscriptions"
verbose_name = "Subscriptions"
from .forms import SubscribeForm
subscribe_form = SubscribeForm
| 20 | 37 | 0.763636 | 21 | 220 | 7.904762 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177273 | 220 | 10 | 38 | 22 | 0.917127 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 0.104545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7bfcc333d4eca105b1ae538dd6d93d6a8b2d5809 | 301 | py | Python | application/tests/repository/conftest.py | mizzsugar/pyramid-app-with-django-password-hash | b0d4af3687923dfb153c9ff5f42eb303e8969c2d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | application/tests/repository/conftest.py | mizzsugar/pyramid-app-with-django-password-hash | b0d4af3687923dfb153c9ff5f42eb303e8969c2d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | application/tests/repository/conftest.py | mizzsugar/pyramid-app-with-django-password-hash | b0d4af3687923dfb153c9ff5f42eb303e8969c2d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | import pytest
import sample.repository
import sample.repository._definitions
@pytest.fixture
def repository(session):
return sample.repository.Repository(session)
@pytest.fixture
def count_users(session):
return lambda: session.query(
sample.repository._definitions.User).count()
| 18.8125 | 52 | 0.780731 | 34 | 301 | 6.823529 | 0.411765 | 0.275862 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129568 | 301 | 15 | 53 | 20.066667 | 0.885496 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.2 | 0.7 | 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 | 1 | 0 | 0 | 0 | 3 |
d02cd5a378bbce840faa5c941cab31865e510a96 | 614 | py | Python | examples/utf8.py | bpedersen2/python-gr | 664f83d11c5d710aa27e117cc1c2899fbd5582a7 | [
"RSA-MD"
] | 25 | 2018-02-23T18:11:51.000Z | 2021-02-16T10:06:47.000Z | examples/utf8.py | bpedersen2/python-gr | 664f83d11c5d710aa27e117cc1c2899fbd5582a7 | [
"RSA-MD"
] | 29 | 2018-01-24T16:40:53.000Z | 2022-02-21T15:29:48.000Z | examples/utf8.py | bpedersen2/python-gr | 664f83d11c5d710aa27e117cc1c2899fbd5582a7 | [
"RSA-MD"
] | 8 | 2017-11-27T10:28:56.000Z | 2021-11-03T13:10:12.000Z | #!/usr/bin/env/python
# -*- coding: utf-8 -*-
import gr
gr.selntran(0)
gr.settextfontprec(2, 0)
gr.setcharheight(0.024)
gr.text(0.05, 0.85, ' !"#$%&\'()*+,-./')
gr.text(0.05, 0.80, '0123456789:;<=>?')
gr.text(0.05, 0.75, '@ABCDEFGHIJKLMNO')
gr.text(0.05, 0.70, 'PQRSTUVWXYZ[\]^_')
gr.text(0.05, 0.65, '`abcdefghijklmn... | 24.56 | 40 | 0.592834 | 128 | 614 | 3.070313 | 0.40625 | 0.183206 | 0.21374 | 0.137405 | 0.447837 | 0.254453 | 0 | 0 | 0 | 0 | 0 | 0.155914 | 0.091205 | 614 | 24 | 41 | 25.583333 | 0.489247 | 0.068404 | 0 | 0 | 0 | 0 | 0.322807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 3 |
d035240d0187413784b9a5fbfbfe9fa7d695f154 | 1,983 | py | Python | server/fire_watch/errorfactory.py | Aradhya-Tripathi/free-watch | c3353c0eec8d545372f22d6ac437ed71c1940f70 | [
"MIT"
] | 5 | 2021-10-09T09:36:12.000Z | 2021-12-14T17:03:31.000Z | server/fire_watch/errorfactory.py | Aradhya-Tripathi/fire-watch | c3353c0eec8d545372f22d6ac437ed71c1940f70 | [
"MIT"
] | 8 | 2022-02-21T19:01:49.000Z | 2022-03-05T20:43:05.000Z | server/fire_watch/errorfactory.py | Aradhya-Tripathi/free-watch | c3353c0eec8d545372f22d6ac437ed71c1940f70 | [
"MIT"
] | 1 | 2021-12-17T09:12:49.000Z | 2021-12-17T09:12:49.000Z | from rest_framework.exceptions import APIException
def set_default_detail(detail):
if not detail:
return dict(error="Error Occurred!")
return detail
class DuplicationError(APIException):
def __init__(self, detail=None, status_code=409):
detail = set_default_detail(detail)
self.st... | 29.597015 | 73 | 0.702975 | 231 | 1,983 | 5.558442 | 0.21645 | 0.163551 | 0.077103 | 0.137072 | 0.711838 | 0.711838 | 0.665109 | 0.665109 | 0.63162 | 0.63162 | 0 | 0.013183 | 0.196672 | 1,983 | 66 | 74 | 30.045455 | 0.792844 | 0 | 0 | 0.565217 | 0 | 0 | 0.040343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.021739 | 0 | 0.478261 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d038bd721b48a4047beccf29c32805c737000beb | 1,895 | py | Python | docl/work.py | cloudify-cosmo/docl | 508b2c51cdd08afa469679b080316b7bb692332a | [
"Apache-2.0"
] | 2 | 2016-10-24T17:41:57.000Z | 2017-01-26T22:37:38.000Z | docl/work.py | cloudify-cosmo/docl | 508b2c51cdd08afa469679b080316b7bb692332a | [
"Apache-2.0"
] | 11 | 2016-10-20T12:10:07.000Z | 2020-10-15T14:51:38.000Z | docl/work.py | cloudify-cosmo/docl | 508b2c51cdd08afa469679b080316b7bb692332a | [
"Apache-2.0"
] | 1 | 2016-10-04T22:09:48.000Z | 2016-10-04T22:09:48.000Z | ########
# Copyright (c) 2016 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 29.609375 | 74 | 0.68971 | 259 | 1,895 | 4.861004 | 0.416988 | 0.0556 | 0.047657 | 0.054011 | 0.23749 | 0.146148 | 0.098491 | 0 | 0 | 0 | 0 | 0.008684 | 0.210026 | 1,895 | 63 | 75 | 30.079365 | 0.832331 | 0.312401 | 0 | 0.235294 | 0 | 0 | 0.118203 | 0.022065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.029412 | 0.147059 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d045368b85fc7890f7bcc07d449e83777f985cb2 | 25,060 | py | Python | ceiclient/client.py | nimbusproject/ceiclient | d76d396318955f9b0fd895414c99888aa0d8b612 | [
"Apache-2.0"
] | null | null | null | ceiclient/client.py | nimbusproject/ceiclient | d76d396318955f9b0fd895414c99888aa0d8b612 | [
"Apache-2.0"
] | null | null | null | ceiclient/client.py | nimbusproject/ceiclient | d76d396318955f9b0fd895414c99888aa0d8b612 | [
"Apache-2.0"
] | null | null | null | import uuid
from ceiclient.exception import CeiClientError
class DashiCeiClient(object):
def __init__(self, connection, dashi_name=None):
if dashi_name:
self.dashi_name = dashi_name
self.connection = connection
class PyonCeiClientException(BaseException):
pass
class PyonCeiCl... | 41.558872 | 120 | 0.681045 | 2,881 | 25,060 | 5.627907 | 0.07185 | 0.139447 | 0.082151 | 0.100407 | 0.749167 | 0.717035 | 0.697422 | 0.689281 | 0.641729 | 0.620636 | 0 | 0.000928 | 0.226337 | 25,060 | 602 | 121 | 41.627907 | 0.835362 | 0.019074 | 0 | 0.439815 | 0 | 0 | 0.13016 | 0.035013 | 0 | 0 | 0 | 0.001661 | 0 | 1 | 0.194444 | false | 0.009259 | 0.00463 | 0.101852 | 0.430556 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d0f15fb042ae582e1adf6fb726575f03d9585141 | 117 | py | Python | flitenv/__init__.py | orsinium-labs/flitenv | b9b48ed702035bc88f76b282f7b4af8c03b75b84 | [
"MIT"
] | 2 | 2021-05-20T06:09:40.000Z | 2021-05-20T06:09:53.000Z | flitenv/__init__.py | orsinium-labs/flitenv | b9b48ed702035bc88f76b282f7b4af8c03b75b84 | [
"MIT"
] | 1 | 2021-05-20T06:18:24.000Z | 2021-05-27T11:51:33.000Z | flitenv/__init__.py | orsinium-labs/flitenv | b9b48ed702035bc88f76b282f7b4af8c03b75b84 | [
"MIT"
] | null | null | null | """Manage venvs for a flit project
"""
from ._cli import entrypoint
__version__ = '0.3.3'
__all__ = ['entrypoint']
| 14.625 | 34 | 0.692308 | 16 | 117 | 4.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.162393 | 117 | 7 | 35 | 16.714286 | 0.704082 | 0.264957 | 0 | 0 | 0 | 0 | 0.189873 | 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 |
d0f4fcf2b368f5b7cd78f42db6e455ae4f28cae9 | 43 | py | Python | lib/tsetmc_api/types.py | mahs4d/tsetmc-api | 4d7252b9e9aeda870e0340d7641aa244427a4ab1 | [
"MIT"
] | 18 | 2020-06-01T06:12:41.000Z | 2021-05-08T07:57:47.000Z | lib/tsetmc_api/types.py | mahs4d/tsetmc-api | 4d7252b9e9aeda870e0340d7641aa244427a4ab1 | [
"MIT"
] | 3 | 2020-08-07T11:25:53.000Z | 2021-04-09T12:37:00.000Z | lib/tsetmc_api/types.py | mahs4d/tsetmc-api | 4d7252b9e9aeda870e0340d7641aa244427a4ab1 | [
"MIT"
] | 6 | 2021-04-09T12:37:40.000Z | 2021-11-08T20:50:16.000Z | SymbolId = str
Price = int
Timestamp = int
| 10.75 | 15 | 0.72093 | 6 | 43 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 43 | 3 | 16 | 14.333333 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d0f63e4083598a13d7d888c4d0096710db30fe97 | 3,409 | py | Python | vmupdate/vm.py | CorwinTanner/vmupdate | 3cd231abb6d00b1fce6850b621b505d30ed14125 | [
"MIT"
] | null | null | null | vmupdate/vm.py | CorwinTanner/vmupdate | 3cd231abb6d00b1fce6850b621b505d30ed14125 | [
"MIT"
] | null | null | null | vmupdate/vm.py | CorwinTanner/vmupdate | 3cd231abb6d00b1fce6850b621b505d30ed14125 | [
"MIT"
] | null | null | null | """
Provide a wrapper class around VM interactions.
"""
from .channel import Channel
from .config import config
from .credentials import get_credentials
from .errors import SshError
from .shells import get_shell
class VM(object):
"""
Provide virtual machine interface.
:ivar virtualizer: virt... | 24.177305 | 79 | 0.578762 | 392 | 3,409 | 4.943878 | 0.227041 | 0.046956 | 0.096491 | 0.039216 | 0.326625 | 0.326625 | 0.326625 | 0.232198 | 0.155831 | 0.155831 | 0 | 0 | 0.330889 | 3,409 | 140 | 80 | 24.35 | 0.849627 | 0.369903 | 0 | 0.054054 | 0 | 0 | 0.015793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0.054054 | 0.135135 | 0 | 0.702703 | 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 |
d0f8a3b0c3e01e4aea9f03cd7d6fb5227d0df596 | 1,175 | py | Python | tests/listoptions/test_msgcontentlist.py | Frawless/option_parser | 64ad95fe0840aafe3e74fddf3cb7687df86f7913 | [
"Apache-2.0"
] | null | null | null | tests/listoptions/test_msgcontentlist.py | Frawless/option_parser | 64ad95fe0840aafe3e74fddf3cb7687df86f7913 | [
"Apache-2.0"
] | null | null | null | tests/listoptions/test_msgcontentlist.py | Frawless/option_parser | 64ad95fe0840aafe3e74fddf3cb7687df86f7913 | [
"Apache-2.0"
] | null | null | null | import pytest
from optconstruct.types.listoptions.msgcontentlist import MsgContentList
test_data = [
# Sample 1
({'msg-content-list-item': ['val1', 10]}, "--msg-content-list-item \"val1\" --msg-content-list-item \"~10\" "),
# Sample 2
({'msg-content-list-item': 'val1'}, "--msg-content-list-item \"val1\... | 36.71875 | 115 | 0.641702 | 155 | 1,175 | 4.767742 | 0.206452 | 0.2977 | 0.397835 | 0.43843 | 0.658999 | 0.594046 | 0.507442 | 0.460081 | 0.460081 | 0.351827 | 0 | 0.026654 | 0.137872 | 1,175 | 31 | 116 | 37.903226 | 0.702863 | 0.037447 | 0 | 0.105263 | 0 | 0 | 0.408 | 0.353778 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
190ed2d18a10460e96df8bd7fd88eb3410530f80 | 3,258 | py | Python | libs/vector2.py | shambu09/cart-pole | b131949bb82446eab150a7a403558553d08c836f | [
"MIT"
] | null | null | null | libs/vector2.py | shambu09/cart-pole | b131949bb82446eab150a7a403558553d08c836f | [
"MIT"
] | null | null | null | libs/vector2.py | shambu09/cart-pole | b131949bb82446eab150a7a403558553d08c836f | [
"MIT"
] | null | null | null | import math
from typing import Iterable
class Vector2:
"""
@params:
x: float
y: float
@methods:
changeofbases(Vector2 : other) -> Vector2 : returns a new vector with the change of bases
angle() -> float : returns the angle of the vector with the x axis
translat... | 28.831858 | 97 | 0.554021 | 455 | 3,258 | 3.896703 | 0.149451 | 0.095883 | 0.047377 | 0.081218 | 0.491822 | 0.439368 | 0.423576 | 0.399887 | 0.399887 | 0.280316 | 0 | 0.017455 | 0.331799 | 3,258 | 112 | 98 | 29.089286 | 0.796968 | 0.180786 | 0 | 0.24 | 0 | 0 | 0.023381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.026667 | 0.16 | 0.586667 | 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 |
ef7fc5df3d3419cf609f5cdfe2151c147238380a | 60 | py | Python | boxcrawler/__init__.py | isaac-galvan/box-link-tasks | 0dc04be90905e97b7519fc5e3578dd8069da3bc3 | [
"MIT"
] | 1 | 2020-05-18T14:25:04.000Z | 2020-05-18T14:25:04.000Z | boxcrawler/__init__.py | isaac-galvan/box-link-tasks | 0dc04be90905e97b7519fc5e3578dd8069da3bc3 | [
"MIT"
] | null | null | null | boxcrawler/__init__.py | isaac-galvan/box-link-tasks | 0dc04be90905e97b7519fc5e3578dd8069da3bc3 | [
"MIT"
] | null | null | null | __version__ = '0.8.0'
from boxcrawler.core import BoxCrawler | 30 | 38 | 0.8 | 9 | 60 | 4.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.1 | 60 | 2 | 38 | 30 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 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 |
ef9b75ae66010ef36933afdc2e5d86ce55323c5b | 438 | py | Python | django/tweetgen/text.py | azarashi2931/tweet-generator | ccc640108080f614f26d5d01a6527e91fe337c1c | [
"MIT"
] | null | null | null | django/tweetgen/text.py | azarashi2931/tweet-generator | ccc640108080f614f26d5d01a6527e91fe337c1c | [
"MIT"
] | null | null | null | django/tweetgen/text.py | azarashi2931/tweet-generator | ccc640108080f614f26d5d01a6527e91fe337c1c | [
"MIT"
] | null | null | null | from markovify import NewlineText
from .chain import SQLChainState3
class TweetgenNewlineText(NewlineText):
def sentence_join(self, sentences):
return "".join(sentences)
def word_join(self, words):
return "".join(words)
@classmethod
def from_sql(cls, user_ids):
return cls(
... | 25.764706 | 49 | 0.650685 | 46 | 438 | 6.043478 | 0.521739 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009317 | 0.26484 | 438 | 16 | 50 | 27.375 | 0.854037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.214286 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4bf4970f689a5acf0062b62a272bb4840858697a | 247 | py | Python | stats-backend/yapapi/yapapi/_cli/run.py | cryptobench/golem-stats-backend | 567e98873bff6282415ecbdc075c27dab75d805a | [
"MIT"
] | null | null | null | stats-backend/yapapi/yapapi/_cli/run.py | cryptobench/golem-stats-backend | 567e98873bff6282415ecbdc075c27dab75d805a | [
"MIT"
] | 4 | 2021-03-28T16:42:41.000Z | 2022-01-01T14:48:46.000Z | stats-backend/yapapi/yapapi/_cli/run.py | golemfactory/golem-stats-backend | 95467749a13e4496032150cf08a9a3686ef213d3 | [
"MIT"
] | null | null | null | from asyncio import get_event_loop
def async_run(f):
def sync_f(*args, **kwargs):
return get_event_loop().run_until_complete(f(*args, **kwargs))
setattr(sync_f, "__wrapped__", f)
sync_f.__doc__ = f.__doc__
return sync_f
| 22.454545 | 70 | 0.688259 | 38 | 247 | 3.868421 | 0.5 | 0.136054 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190283 | 247 | 10 | 71 | 24.7 | 0.735 | 0 | 0 | 0 | 0 | 0 | 0.044534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | 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 |
ef133156cf910fbcc45c5e4b71caa482d4047bc7 | 165 | py | Python | yolox/__init__.py | CaptainEven/MCMOT-ByteTrack | e014275cfb25147dfa6f49cdbed24e91e5d6c41e | [
"MIT"
] | 20 | 2022-01-29T02:12:26.000Z | 2022-03-28T08:21:37.000Z | yolox/__init__.py | CaptainEven/MCMOT-ByteTrack | e014275cfb25147dfa6f49cdbed24e91e5d6c41e | [
"MIT"
] | 11 | 2022-01-29T22:15:22.000Z | 2022-03-26T23:00:18.000Z | yolox/__init__.py | CaptainEven/MCMOT-ByteTrack | e014275cfb25147dfa6f49cdbed24e91e5d6c41e | [
"MIT"
] | 5 | 2022-02-06T17:56:07.000Z | 2022-03-14T23:43:02.000Z | #!/usr/bin/env python3
# encoding=utf-8
from .utils import configure_module
from .utils.myutils import parse_darknet_cfg
configure_module()
__version__ = "0.1.0"
| 16.5 | 44 | 0.775758 | 25 | 165 | 4.8 | 0.76 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034247 | 0.115152 | 165 | 9 | 45 | 18.333333 | 0.787671 | 0.218182 | 0 | 0 | 0 | 0 | 0.03937 | 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 |
ef2029ff810c2b4c90844a6e79dc0d2ed60017a8 | 812 | py | Python | tests/test_bootstrap_label.py | akx/django-bootstrap5 | 2fbe688c30061122e08981f65bf87ec35fcf28ad | [
"BSD-3-Clause"
] | 118 | 2021-03-15T14:01:49.000Z | 2022-03-29T06:40:46.000Z | tests/test_bootstrap_label.py | akx/django-bootstrap5 | 2fbe688c30061122e08981f65bf87ec35fcf28ad | [
"BSD-3-Clause"
] | 97 | 2021-03-19T05:44:28.000Z | 2022-03-31T09:05:29.000Z | tests/test_bootstrap_label.py | akx/django-bootstrap5 | 2fbe688c30061122e08981f65bf87ec35fcf28ad | [
"BSD-3-Clause"
] | 33 | 2021-03-22T14:45:08.000Z | 2022-02-23T18:12:23.000Z | from tests.base import BootstrapTestCase
class BootstrapLabelTestCase(BootstrapTestCase):
def test_bootstrap_label(self):
self.assertHTMLEqual(
self.render('{% bootstrap_label "Subject" %}'),
"<label>Subject</label>",
)
self.assertHTMLEqual(
self.render(... | 36.909091 | 87 | 0.587438 | 72 | 812 | 6.5 | 0.236111 | 0.230769 | 0.181624 | 0.247863 | 0.696581 | 0.696581 | 0.547009 | 0.547009 | 0.429487 | 0.429487 | 0 | 0 | 0.256158 | 812 | 21 | 88 | 38.666667 | 0.774834 | 0 | 0 | 0.210526 | 0 | 0 | 0.3867 | 0.210591 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
ef2ab843a8c31c8aa6df914ce86ca4d373356d0e | 6,082 | py | Python | lipydomics/test/rt_calibration.py | dylanhross/lipydomics | c7c3b72d4549a1a9937f287f3b314eff8e7ed054 | [
"MIT"
] | 3 | 2020-10-30T02:49:08.000Z | 2021-03-30T22:51:45.000Z | lipydomics/test/rt_calibration.py | dylanhross/lipydomics | c7c3b72d4549a1a9937f287f3b314eff8e7ed054 | [
"MIT"
] | 49 | 2019-09-27T19:17:50.000Z | 2021-04-12T16:44:29.000Z | lipydomics/test/rt_calibration.py | dylanhross/lipydomics | c7c3b72d4549a1a9937f287f3b314eff8e7ed054 | [
"MIT"
] | 2 | 2021-06-22T16:35:50.000Z | 2022-02-15T19:31:10.000Z | """
lipydomics/test/rt_calibration.py
Dylan H. Ross
2020/01/09
description:
Define tests associated with the lipydomics/identification/rt_calibration module
"""
import os
from csv import reader
from numpy import array, mean, sqrt
from lipydomics.test import run_tests
from lipydomics.identifi... | 31.677083 | 118 | 0.614272 | 961 | 6,082 | 3.741935 | 0.194589 | 0.046719 | 0.040044 | 0.026696 | 0.736652 | 0.713849 | 0.702169 | 0.678532 | 0.65267 | 0.642937 | 0 | 0.058116 | 0.261592 | 6,082 | 191 | 119 | 31.842932 | 0.742596 | 0.40513 | 0 | 0.656863 | 0 | 0 | 0.074972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.22549 | 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 |
ef33c49a3e82e2de96737cc0927f04fd3f798fd3 | 15,104 | py | Python | streamlit_app.py | MLKaufman/py-enhancer-scanner | f235e8a270c8cb2e3e5d031d59e84e7876aa0eaa | [
"MIT"
] | null | null | null | streamlit_app.py | MLKaufman/py-enhancer-scanner | f235e8a270c8cb2e3e5d031d59e84e7876aa0eaa | [
"MIT"
] | null | null | null | streamlit_app.py | MLKaufman/py-enhancer-scanner | f235e8a270c8cb2e3e5d031d59e84e7876aa0eaa | [
"MIT"
] | null | null | null | import streamlit as st
import streamlit.components.v1 as components
import numpy as np
import pandas as pd
from pyEnhancerScan import EnhancerScan
from Bio import motifs
import base64
import os
from io import BytesIO
GENOME_LIST = ['mm10', 'mm9', 'hg38', 'hg19']
# TODO:
# custom track upload
# descriptions
# convert... | 41.155313 | 181 | 0.683395 | 2,013 | 15,104 | 4.956284 | 0.157476 | 0.030069 | 0.024055 | 0.03047 | 0.718452 | 0.700311 | 0.679563 | 0.671244 | 0.664428 | 0.647489 | 0 | 0.021632 | 0.195048 | 15,104 | 367 | 182 | 41.155313 | 0.79898 | 0.069319 | 0 | 0.710938 | 0 | 0.011719 | 0.301194 | 0.039911 | 0 | 0 | 0 | 0.002725 | 0 | 1 | 0.007813 | false | 0.007813 | 0.035156 | 0 | 0.050781 | 0.019531 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef37c2b7561c67b713f15b0144bbb02511d3f705 | 429 | py | Python | models/database/portal_roles.py | GryPr/Vireo | bcdd5eafcfa548b300ce334005e8517b01e322c0 | [
"MIT"
] | null | null | null | models/database/portal_roles.py | GryPr/Vireo | bcdd5eafcfa548b300ce334005e8517b01e322c0 | [
"MIT"
] | 8 | 2022-03-28T16:15:46.000Z | 2022-03-31T01:31:29.000Z | models/database/portal_roles.py | GryPr/Vireo | bcdd5eafcfa548b300ce334005e8517b01e322c0 | [
"MIT"
] | null | null | null | import sqlalchemy
from sqlalchemy.orm import declarative_base
from services.database.driver import get_engine
Base = declarative_base()
class PortalRoles(Base):
__tablename__ = 'portal_roles'
role_id = sqlalchemy.Column(sqlalchemy.String(20), primary_key=True)
portal_id = sqlalchemy.Column(sqlalchemy.St... | 25.235294 | 72 | 0.785548 | 54 | 429 | 5.981481 | 0.537037 | 0.148607 | 0.241486 | 0.297214 | 0.22291 | 0.22291 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.118881 | 429 | 16 | 73 | 26.8125 | 0.835979 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ef3e7338a40e3f7930bcdfe66b5b49a7ad3ecb63 | 425 | py | Python | contest/sumitrust2019/D.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/sumitrust2019/D.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/sumitrust2019/D.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | n = int(input())
s = input()
ans = 0
password = [0, 0, 0]
for i in range(1000):
for j in range(3):
password[2 - j] = i // (10 ** j) % 10
if str(password[0]) in s:
index = s.index(str(password[0]))
if str(password[1]) in s[index + 1:]:
index2 = index + 1 + s[index + 1:].index(... | 28.333333 | 70 | 0.489412 | 70 | 425 | 2.971429 | 0.314286 | 0.264423 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090278 | 0.322353 | 425 | 14 | 71 | 30.357143 | 0.631944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ef4008a47b6c43b1c5ebde9470e5b8758383da54 | 468 | py | Python | Credentials_Validator/main.py | LeoneBacciu/Credentials_Validator | 7a93c5e9f929cc535e0c3245a9e87e7335b62d89 | [
"MIT"
] | null | null | null | Credentials_Validator/main.py | LeoneBacciu/Credentials_Validator | 7a93c5e9f929cc535e0c3245a9e87e7335b62d89 | [
"MIT"
] | null | null | null | Credentials_Validator/main.py | LeoneBacciu/Credentials_Validator | 7a93c5e9f929cc535e0c3245a9e87e7335b62d89 | [
"MIT"
] | null | null | null | from Validators import Validator
user = Validator([4, 10], [1], [2], [0], [1])
is_valid, error = user.verify('PasswOrd!')
print((is_valid, error))
#returns (True, '')
is_valid, error = user.verify('PasswOrd3')
print((is_valid, error))
#returns (False, 'symbols')
is_valid, error = user.verify('Password!')
print((is_v... | 24.631579 | 54 | 0.692308 | 63 | 468 | 5.015873 | 0.380952 | 0.177215 | 0.303797 | 0.202532 | 0.68038 | 0.541139 | 0.341772 | 0.341772 | 0.341772 | 0.341772 | 0 | 0.026442 | 0.111111 | 468 | 18 | 55 | 26 | 0.733173 | 0.198718 | 0 | 0.4 | 0 | 0 | 0.12938 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.1 | 0 | 0.1 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ef563c5699a9fd0ec32dbdabe046734d8051cfc1 | 1,117 | py | Python | mars/services/meta/core.py | HarshCasper/mars | 4c12c968414d666c7a10f497bc22de90376b1932 | [
"Apache-2.0"
] | null | null | null | mars/services/meta/core.py | HarshCasper/mars | 4c12c968414d666c7a10f497bc22de90376b1932 | [
"Apache-2.0"
] | null | null | null | mars/services/meta/core.py | HarshCasper/mars | 4c12c968414d666c7a10f497bc22de90376b1932 | [
"Apache-2.0"
] | null | null | null | # Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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 a... | 33.848485 | 74 | 0.708147 | 160 | 1,117 | 4.74375 | 0.575 | 0.094862 | 0.034256 | 0.042161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01373 | 0.217547 | 1,117 | 32 | 75 | 34.90625 | 0.854691 | 0.5094 | 0 | 0 | 0 | 0 | 0.031835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ef56837c80048e57672f729e3cd601214a0e3805 | 7,389 | py | Python | SOM_API/SOM_API2.py | AhmedAidarous/Deep-Learning-OCR-Application | 0d1f427f354e2b8407ccc7c60510b539a3eb5021 | [
"MIT"
] | null | null | null | SOM_API/SOM_API2.py | AhmedAidarous/Deep-Learning-OCR-Application | 0d1f427f354e2b8407ccc7c60510b539a3eb5021 | [
"MIT"
] | null | null | null | SOM_API/SOM_API2.py | AhmedAidarous/Deep-Learning-OCR-Application | 0d1f427f354e2b8407ccc7c60510b539a3eb5021 | [
"MIT"
] | null | null | null | # Importing the dataset..
import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from minisom import MiniSom
from PIL import Image
import PIL.ImageOps
from base64 import decodestring
import base64
import io
import json
# Gets the Base64 string, and converts it to the correc... | 37.69898 | 1,098 | 0.702125 | 693 | 7,389 | 7.419913 | 0.412698 | 0.008751 | 0.00739 | 0.005834 | 0.424349 | 0.424349 | 0.424349 | 0.411513 | 0.411513 | 0.411513 | 0 | 0.063171 | 0.218027 | 7,389 | 195 | 1,099 | 37.892308 | 0.826757 | 0.214643 | 0 | 0.018692 | 0 | 0.018692 | 0.44107 | 0.416588 | 0 | 1 | 0 | 0 | 0 | 1 | 0.046729 | false | 0 | 0.102804 | 0 | 0.205607 | 0.028037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef5c1a336a93fc7fa7b9cfffc1b5564813bf4f4d | 181 | py | Python | epd_main/epd_main/__init__.py | RichardBronosky/entrypoint_demo | 136ac138172d7dd29a8c76ab200c1fad79ae6198 | [
"MIT"
] | 20 | 2015-03-12T18:41:40.000Z | 2022-01-05T02:24:02.000Z | epd_main/epd_main/__init__.py | RichardBronosky/entrypoint_demo | 136ac138172d7dd29a8c76ab200c1fad79ae6198 | [
"MIT"
] | null | null | null | epd_main/epd_main/__init__.py | RichardBronosky/entrypoint_demo | 136ac138172d7dd29a8c76ab200c1fad79ae6198 | [
"MIT"
] | 5 | 2017-05-22T07:39:47.000Z | 2022-02-09T06:59:01.000Z | import pkg_resources
class ToolSet(object):
pass
my_tools = ToolSet()
for ep in pkg_resources.iter_entry_points(group='epd_group_id'):
setattr(my_tools, ep.name, ep.load())
| 20.111111 | 64 | 0.756906 | 29 | 181 | 4.448276 | 0.724138 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127072 | 181 | 8 | 65 | 22.625 | 0.816456 | 0 | 0 | 0 | 0 | 0 | 0.066298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
323305d7501118b150ec3878c18b69ec67cb2d1a | 191 | py | Python | foundation/main/urls.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-01-04T06:30:24.000Z | 2016-01-04T06:30:24.000Z | foundation/main/urls.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 36 | 2015-11-27T14:17:34.000Z | 2016-07-14T10:23:52.000Z | foundation/main/urls.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-05-14T01:11:28.000Z | 2016-05-14T01:11:28.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.HomeView.as_view(), name="home"),
]
| 19.1 | 53 | 0.685864 | 26 | 191 | 4.807692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.151832 | 191 | 9 | 54 | 21.222222 | 0.765432 | 0.109948 | 0 | 0 | 0 | 0 | 0.035714 | 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 |
324a5c14afbba82a97f10ba6d30981edcb8129d9 | 7,979 | py | Python | HW2/HW2-DSP/filter_coefficients.py | jimas95/advanced_mechatronics | 5ef5efdb66d4b4bed85d4a756bf7099b92ef7207 | [
"BSD-2-Clause"
] | null | null | null | HW2/HW2-DSP/filter_coefficients.py | jimas95/advanced_mechatronics | 5ef5efdb66d4b4bed85d4a756bf7099b92ef7207 | [
"BSD-2-Clause"
] | null | null | null | HW2/HW2-DSP/filter_coefficients.py | jimas95/advanced_mechatronics | 5ef5efdb66d4b4bed85d4a756bf7099b92ef7207 | [
"BSD-2-Clause"
] | null | null | null | hA = [
0.001867519746044820,
0.002275293677911463,
0.002692845467883248,
0.003119400211540369,
0.003554151391578438,
0.003996262853518041,
0.004444870878876082,
0.004899086349965267,
0.005357997000181999,
0.005820669743355830,
0.006286153075466025,
0.006753479541784039,
... | 23.889222 | 26 | 0.724903 | 612 | 7,979 | 9.45098 | 0.184641 | 0.01314 | 0.013831 | 0.01314 | 0.597856 | 0.597856 | 0.597856 | 0.597856 | 0.597856 | 0.597856 | 0 | 0.899408 | 0.195137 | 7,979 | 334 | 27 | 23.889222 | 0.001246 | 0 | 0 | 0.967949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
328571c9cebd44e507e8be3db3023c5e2897d148 | 255 | py | Python | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Configs/__init__.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Configs/__init__.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Configs/__init__.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | ## @defgroup Components-Configs Configs
# This is the component that defines the template for
# vehicle configurations.
# @ingroup Components
# __init__.py
#
# Created: Oct 2014, T. Lukacyzk
# Modified: Jan 2016, T. MacDonald
from .Config import Config | 23.181818 | 53 | 0.756863 | 33 | 255 | 5.727273 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.160784 | 255 | 11 | 54 | 23.181818 | 0.845794 | 0.819608 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
329d043768e29b50d09a0c461ec54e0062706caa | 199 | py | Python | library_sparks/forms.py | fernandasj/library_sparks | 6aea8404a431822482cd98b7a437359518c8f68a | [
"MIT"
] | null | null | null | library_sparks/forms.py | fernandasj/library_sparks | 6aea8404a431822482cd98b7a437359518c8f68a | [
"MIT"
] | null | null | null | library_sparks/forms.py | fernandasj/library_sparks | 6aea8404a431822482cd98b7a437359518c8f68a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django import forms
from library_sparks.models import Reserve
class ReserveForm(forms.ModelForm):
class Meta:
model = Reserve
fields = ('book',)
| 15.307692 | 41 | 0.648241 | 23 | 199 | 5.565217 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.241206 | 199 | 12 | 42 | 16.583333 | 0.84106 | 0.105528 | 0 | 0 | 0 | 0 | 0.022727 | 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 | 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 |
32c781b0d44ae55a875ec104f013e2d93a1a9dbc | 210 | py | Python | BaseKnowledge/tensorflow_test/base.py | Kose-i/python_test | d7b031aa33d699aeb9fe196fe0a6d216aa006f0d | [
"Unlicense"
] | null | null | null | BaseKnowledge/tensorflow_test/base.py | Kose-i/python_test | d7b031aa33d699aeb9fe196fe0a6d216aa006f0d | [
"Unlicense"
] | null | null | null | BaseKnowledge/tensorflow_test/base.py | Kose-i/python_test | d7b031aa33d699aeb9fe196fe0a6d216aa006f0d | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import tensorflow as tf
sess = tf.Session()
a = tf.constant([1,2])
print(sess.run(a))
b = tf.constant([1,2,3])
print(sess.run(b))
c = tf.constant([[1,2,3][4,5,6]])
print(sess.run(c))
| 15 | 33 | 0.628571 | 43 | 210 | 3.069767 | 0.511628 | 0.227273 | 0.25 | 0.272727 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064865 | 0.119048 | 210 | 13 | 34 | 16.153846 | 0.648649 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.375 | 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 |
088563bed87b041f179c445e6fff15c0a328bcbf | 832 | py | Python | setup.py | wendbv/pluvo-python | 95dcc2829592257b0c2c2133c7b23b926b7d76a9 | [
"MIT"
] | null | null | null | setup.py | wendbv/pluvo-python | 95dcc2829592257b0c2c2133c7b23b926b7d76a9 | [
"MIT"
] | 10 | 2016-08-25T12:47:59.000Z | 2019-09-30T09:16:55.000Z | setup.py | wendbv/pluvo-python | 95dcc2829592257b0c2c2133c7b23b926b7d76a9 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='pluvo',
packages=['pluvo'],
package_data={},
version='0.2.18',
description='Python library to access the Pluvo REST API.',
author='Wend BV',
author_email='info@wend.nl',
license='MIT',
url='https://github.com/wendbv/pluvo-python',
keywo... | 30.814815 | 76 | 0.580529 | 96 | 832 | 4.989583 | 0.583333 | 0.19833 | 0.26096 | 0.217119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.235577 | 832 | 26 | 77 | 32 | 0.715409 | 0 | 0 | 0 | 0 | 0 | 0.512019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 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 |
08b74ba25d094ff8f4d1d32676079e8661e41ba7 | 1,386 | py | Python | tools/line_intersect.py | Erikx3/2D_Pygame_Drone_Simulation | e67fdf9d030a3e68448e521818f557622293284f | [
"MIT"
] | null | null | null | tools/line_intersect.py | Erikx3/2D_Pygame_Drone_Simulation | e67fdf9d030a3e68448e521818f557622293284f | [
"MIT"
] | null | null | null | tools/line_intersect.py | Erikx3/2D_Pygame_Drone_Simulation | e67fdf9d030a3e68448e521818f557622293284f | [
"MIT"
] | null | null | null | import numpy as np
# https://stackoverflow.com/questions/20677795/how-do-i-compute-the-intersection-point-of-two-lines
def line_intersection(line1, line2):
"""
:param line1: line defined by two points, e.g. [[1,1], [2,2]]
:param line2: second line
:return: point of intersection,
"""
# Funct... | 27.72 | 99 | 0.525974 | 227 | 1,386 | 3.207048 | 0.30837 | 0.013736 | 0.020604 | 0.016484 | 0.026099 | 0.016484 | 0 | 0 | 0 | 0 | 0 | 0.079717 | 0.284993 | 1,386 | 49 | 100 | 28.285714 | 0.654894 | 0.324675 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.136364 | 0.590909 | 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 |
08b96d25e9fb8fff4101fc528c340917e6f7e226 | 953 | py | Python | blog/models.py | imagine-maven/blog-web-app-django | 237b3a4414c6a456cc83311b18c9c393f1ad345e | [
"MIT"
] | 1 | 2021-09-28T11:51:45.000Z | 2021-09-28T11:51:45.000Z | blog/models.py | imagine-maven/blog-web-app-django | 237b3a4414c6a456cc83311b18c9c393f1ad345e | [
"MIT"
] | null | null | null | blog/models.py | imagine-maven/blog-web-app-django | 237b3a4414c6a456cc83311b18c9c393f1ad345e | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Django follows the DRY Princip... | 35.296296 | 275 | 0.734523 | 133 | 953 | 5.195489 | 0.616541 | 0.072359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003927 | 0.198321 | 953 | 26 | 276 | 36.653846 | 0.900524 | 0.414481 | 0 | 0 | 0 | 0 | 0.023466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.153846 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
08e35fb405207afc5a27e1df2d74a33c14cc82b9 | 275 | py | Python | castle/secure_mode.py | castle/castle-python | a3732f975192fd2f8a9e840d86da3f0f978874b3 | [
"MIT"
] | 3 | 2021-01-08T16:44:16.000Z | 2021-06-13T14:57:15.000Z | castle/secure_mode.py | castle/castle-python | a3732f975192fd2f8a9e840d86da3f0f978874b3 | [
"MIT"
] | 20 | 2018-01-12T14:33:46.000Z | 2022-03-14T20:21:07.000Z | castle/secure_mode.py | castle/castle-python | a3732f975192fd2f8a9e840d86da3f0f978874b3 | [
"MIT"
] | 6 | 2018-01-30T16:42:03.000Z | 2022-03-09T12:37:21.000Z | import hmac
import hashlib
from castle.configuration import configuration
def signature(user_id, config=configuration):
return hmac.new(
bytes(config.api_secret.encode('utf-8')),
bytes(user_id.encode('utf-8')),
hashlib.sha256
).hexdigest()
| 21.153846 | 49 | 0.694545 | 34 | 275 | 5.529412 | 0.617647 | 0.06383 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022422 | 0.189091 | 275 | 12 | 50 | 22.916667 | 0.820628 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
08e3b77e09fc3fa2caed81f09549877859612fa5 | 1,642 | py | Python | bazaar/warehouse/locations.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | bazaar/warehouse/locations.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | bazaar/warehouse/locations.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import absolute_import
from __future__ import unicode_literals
from bazaar.settings import bazaar_settings
from bazaar.warehouse.models import Location
def get_location(slug):
try:
return Location.objects.get(slug=slug)
except Location.DoesNotExist:
return None
def get_stora... | 38.186047 | 100 | 0.597442 | 166 | 1,642 | 5.578313 | 0.198795 | 0.181425 | 0.136069 | 0.155508 | 0.311015 | 0.269978 | 0.269978 | 0.269978 | 0.269978 | 0 | 0 | 0.004525 | 0.32704 | 1,642 | 42 | 101 | 39.095238 | 0.833484 | 0 | 0 | 0 | 0 | 0 | 0.01218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0.172414 | 0.586207 | 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 |
08e6dd1d56343b032f034539d6fed38581698e4d | 364 | py | Python | chat/routing.py | Lucasanim/Poster-API | 2c50c38ac9ac4292c53ee60636f34c2fbaf40f00 | [
"MIT"
] | null | null | null | chat/routing.py | Lucasanim/Poster-API | 2c50c38ac9ac4292c53ee60636f34c2fbaf40f00 | [
"MIT"
] | null | null | null | chat/routing.py | Lucasanim/Poster-API | 2c50c38ac9ac4292c53ee60636f34c2fbaf40f00 | [
"MIT"
] | null | null | null | from django.urls import re_path, path
from . import consumers
websocket_urlpatterns = [
# re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
# re_path('', consumers.LiveConsumer.as_asgi()),
path('chat/socket/<str:room_name>/', consumers.ChatConsumer.as_asgi()),
path('chat/sock... | 33.090909 | 81 | 0.703297 | 48 | 364 | 5.125 | 0.479167 | 0.097561 | 0.186992 | 0.219512 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112637 | 364 | 10 | 82 | 36.4 | 0.76161 | 0.335165 | 0 | 0 | 0 | 0 | 0.167364 | 0.117155 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3eac0893dd4ed97c93626a4c8c783534bc543a78 | 755 | py | Python | pyfocal/third_party/qtpy/QtWebKit.py | eteq/pyfocal | 6a97bbeac978d02f7e09f36192d0c94c2d47d672 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | pyfocal/third_party/qtpy/QtWebKit.py | eteq/pyfocal | 6a97bbeac978d02f7e09f36192d0c94c2d47d672 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | pyfocal/third_party/qtpy/QtWebKit.py | eteq/pyfocal | 6a97bbeac978d02f7e09f36192d0c94c2d47d672 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright © 2014-2015 Colin Duquesnoy
# Copyright © 2009- The Spyder development Team
#
# Licensed under the terms of the MIT License
# (see LICENSE.txt for details)
"""
Provides QtWebkit classes and functions.
"""
import os
from . import QT_API
from . import PYQT5_API
from . import PYQT4... | 24.354839 | 63 | 0.752318 | 110 | 755 | 5.090909 | 0.481818 | 0.0875 | 0.092857 | 0.075 | 0.142857 | 0.114286 | 0.114286 | 0 | 0 | 0 | 0 | 0.031898 | 0.169536 | 755 | 30 | 64 | 25.166667 | 0.858054 | 0.292715 | 0 | 0 | 0 | 0 | 0.055769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3ebdc28993f7882bea5e85306814972a732b7311 | 263 | py | Python | main.py | SzymczykMarcin/SzkoleniePython2020 | 6223fc4f9581b440f5666f7b693b367111e9abd6 | [
"CC0-1.0"
] | null | null | null | main.py | SzymczykMarcin/SzkoleniePython2020 | 6223fc4f9581b440f5666f7b693b367111e9abd6 | [
"CC0-1.0"
] | null | null | null | main.py | SzymczykMarcin/SzkoleniePython2020 | 6223fc4f9581b440f5666f7b693b367111e9abd6 | [
"CC0-1.0"
] | null | null | null | import string
from math import cos as math_cos
from math import sin
# from hapter_4 import * -> nie wskazane
from chapter_4 import statystyczny_kowalski
def cos(x):
return x
# print(math_cos(60))
# print(sin(60))
k = statystyczny_kowalski()
print(k.imie) | 16.4375 | 43 | 0.745247 | 43 | 263 | 4.418605 | 0.488372 | 0.084211 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.1673 | 263 | 16 | 44 | 16.4375 | 0.840183 | 0.277567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0.125 | 0.75 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
3ec56fcefd331f286e1905ca7152430b0b6b19bb | 428 | py | Python | py/minsk/analysis/binding/scope/globl.py | Phytolizer/Minsk | 5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c | [
"MIT"
] | null | null | null | py/minsk/analysis/binding/scope/globl.py | Phytolizer/Minsk | 5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c | [
"MIT"
] | 1 | 2022-03-23T03:34:48.000Z | 2022-03-24T06:47:30.000Z | py/minsk/analysis/binding/scope/globl.py | Phytolizer/Minsk | 5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Optional
from minsk.analysis.binding.statement import BoundStatement
from minsk.analysis.diagnostic import Diagnostic
from minsk.analysis.variable import VariableSymbol
@dataclass(frozen=True)
class BoundGlobalScope:
previous: Optional["BoundGlobalScope"]
... | 28.533333 | 59 | 0.803738 | 43 | 428 | 8 | 0.511628 | 0.078488 | 0.148256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121495 | 428 | 14 | 60 | 30.571429 | 0.914894 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.454545 | 0 | 0.909091 | 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 |
3ed2624c6819111452e9452213402a200fd3f813 | 1,791 | py | Python | api/namex/services/name_request/mappers/request_applicants.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | 4 | 2018-10-05T23:41:05.000Z | 2019-06-19T16:17:50.000Z | api/namex/services/name_request/mappers/request_applicants.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | 635 | 2018-05-31T04:12:46.000Z | 2022-03-31T18:45:42.000Z | api/namex/services/name_request/mappers/request_applicants.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | 71 | 2018-05-14T20:47:55.000Z | 2022-03-31T23:08:30.000Z | from namex.utils.common import convert_to_ascii
from namex.models import Applicant
def map_request_applicant(applicant: Applicant, request_applicant: dict):
applicant.lastName = convert_to_ascii(request_applicant.get('lastName'))
applicant.firstName = convert_to_ascii(request_applicant.get('firstName'))
i... | 52.676471 | 94 | 0.777778 | 197 | 1,791 | 6.786802 | 0.167513 | 0.299177 | 0.326851 | 0.219895 | 0.470456 | 0.34555 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.115578 | 1,791 | 33 | 95 | 54.272727 | 0.839015 | 0 | 0 | 0 | 0 | 0 | 0.133445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
3edb897d493cb47f66407a53e39126f6752bc441 | 2,683 | py | Python | adanet/experimental/phases/keras_tuner_phase.py | Mario-Kart-Felix/adanet | b0f7fda2e7e5fb31790965b3dcb3fc6b431c05c6 | [
"Apache-2.0"
] | 3,323 | 2018-10-30T15:24:26.000Z | 2022-03-26T02:39:29.000Z | adanet/experimental/phases/keras_tuner_phase.py | yeqingcheng368/adanet | 5e08fad3f501836bb3e2e22316704a10b5f4507f | [
"Apache-2.0"
] | 136 | 2018-10-30T18:22:45.000Z | 2022-02-02T20:39:26.000Z | adanet/experimental/phases/keras_tuner_phase.py | yeqingcheng368/adanet | 5e08fad3f501836bb3e2e22316704a10b5f4507f | [
"Apache-2.0"
] | 542 | 2018-10-30T18:18:04.000Z | 2022-03-31T12:41:50.000Z | # Lint as: python3
# Copyright 2019 The AdaNet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 37.263889 | 83 | 0.746552 | 368 | 2,683 | 5.266304 | 0.377717 | 0.03096 | 0.045408 | 0.016512 | 0.267286 | 0.208462 | 0.132095 | 0.097007 | 0.058824 | 0.058824 | 0 | 0.004492 | 0.170332 | 2,683 | 71 | 84 | 37.788732 | 0.866128 | 0.394707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0.117647 | 0.558824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3ef52b51d015912620d1fdd924ef4075f1943809 | 3,705 | py | Python | stubs.min/System/Windows/Forms/__init___parts/DataGridViewSelectedCellCollection.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/System/Windows/Forms/__init___parts/DataGridViewSelectedCellCollection.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/Forms/__init___parts/DataGridViewSelectedCellCollection.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class DataGridViewSelectedCellCollection(BaseCollection,ICollection,IEnumerable,IList):
""" Represents a collection of cells that are selected in a System.Windows.Forms.DataGridView. """
def Clear(self):
"""
Clear(self: DataGridViewSelectedCellCollection)
Clears the collection.
"""
pass
def Conta... | 39.414894 | 215 | 0.719298 | 434 | 3,705 | 5.970046 | 0.28341 | 0.024315 | 0.04863 | 0.03242 | 0.256272 | 0.208028 | 0.164029 | 0.126206 | 0.106909 | 0.043613 | 0 | 0 | 0.196761 | 3,705 | 93 | 216 | 39.83871 | 0.870632 | 0.757355 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0.454545 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3efaa1dfec42246437c1486b597f910dca47c24e | 1,703 | py | Python | fhirclient/models/usagecontext.py | zzhou41/client-py | cbfa8d7c7f1bad233b237b7c5582fc0577b21f70 | [
"Apache-2.0"
] | null | null | null | fhirclient/models/usagecontext.py | zzhou41/client-py | cbfa8d7c7f1bad233b237b7c5582fc0577b21f70 | [
"Apache-2.0"
] | null | null | null | fhirclient/models/usagecontext.py | zzhou41/client-py | cbfa8d7c7f1bad233b237b7c5582fc0577b21f70 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/UsageContext) on 2019-07-29.
# 2019, SMART Health IT.
import sys
from dataclasses import dataclass
from typing import ClassVar, Optional, List
from .fhirabstractbase import empty_list
from ... | 38.704545 | 109 | 0.703464 | 192 | 1,703 | 6.229167 | 0.520833 | 0.033445 | 0.046823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015317 | 0.19495 | 1,703 | 44 | 110 | 38.704545 | 0.857039 | 0.30828 | 0 | 0 | 1 | 0 | 0.134263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.357143 | 0 | 0.678571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
410f284c66b13c02ea8cc50d3160fda85e696501 | 341 | py | Python | MyLibrary/test_1.py | m9racz/myfirst | 34ca0f774653f9b893c95d2757efa4d2d2457226 | [
"Unlicense"
] | null | null | null | MyLibrary/test_1.py | m9racz/myfirst | 34ca0f774653f9b893c95d2757efa4d2d2457226 | [
"Unlicense"
] | null | null | null | MyLibrary/test_1.py | m9racz/myfirst | 34ca0f774653f9b893c95d2757efa4d2d2457226 | [
"Unlicense"
] | null | null | null | import unittest
from selenium import webdriver
class FirstTest (unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
self.driver.maximize_window()
def test_first_selenium_test(self):
self.driver.get("http://www.swtestacademy.com")
def tearDown(self):
... | 26.230769 | 55 | 0.671554 | 40 | 341 | 5.625 | 0.6 | 0.177778 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219941 | 341 | 13 | 56 | 26.230769 | 0.845865 | 0 | 0 | 0 | 0 | 0 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.6 | 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 |
f5b0782b69699e286989587d233d9a01288a3d95 | 276 | py | Python | scripts/test_plot.py | Lila14/multimds | e54642e0ae47592321352f931f534881ca57d888 | [
"MIT"
] | 1 | 2019-10-29T12:33:57.000Z | 2019-10-29T12:33:57.000Z | scripts/test_plot.py | Lila14/multimds | e54642e0ae47592321352f931f534881ca57d888 | [
"MIT"
] | null | null | null | scripts/test_plot.py | Lila14/multimds | e54642e0ae47592321352f931f534881ca57d888 | [
"MIT"
] | null | null | null | import sys
sys.path.append("..")
import data_tools as dt
import plotting as plot
struct1 = dt.structure_from_file("GM12878_combined_21_100kb_structure.tsv")
struct2 = dt.structure_from_file("K562_21_100kb_structure.tsv")
plot.plot_structures_interactive((struct1, struct2))
| 27.6 | 75 | 0.822464 | 41 | 276 | 5.195122 | 0.560976 | 0.103286 | 0.140845 | 0.178404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086275 | 0.076087 | 276 | 9 | 76 | 30.666667 | 0.74902 | 0 | 0 | 0 | 0 | 0 | 0.246377 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f5b24236ea14db556d86370871a6257f23a8fb29 | 299 | py | Python | output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/unsigned_byte/schema_instance/nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_5_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.unsigned_byte.schema_instance.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_5_xsd.nistschema_sv_iv_atomic_unsigned_byte_min_inclusive_5 import NistschemaSvIvAtomicUnsignedByteMinInclusive5
__all__ = [
"NistschemaSvIvAtomicUnsignedByteMinInclusive5",
]
| 49.833333 | 230 | 0.909699 | 33 | 299 | 7.515152 | 0.606061 | 0.169355 | 0.217742 | 0.16129 | 0.362903 | 0.362903 | 0.362903 | 0.362903 | 0.362903 | 0 | 0 | 0.014035 | 0.046823 | 299 | 5 | 231 | 59.8 | 0.85614 | 0 | 0 | 0 | 0 | 0 | 0.150502 | 0.150502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f5c02f645299ad7e795ec7f2ce9c2249d10c9d90 | 535 | py | Python | leetcode/python/937_reorder_data_in_log_files.py | VVKot/leetcode-solutions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | 4 | 2019-04-22T11:57:36.000Z | 2019-10-29T09:12:56.000Z | leetcode/python/937_reorder_data_in_log_files.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | leetcode/python/937_reorder_data_in_log_files.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | """
T: O(NlogN*L)
S: O(N+L) - because Timsort uses O(N) additional memory
Compress requirements into the one lambda.
All that we have to check is the first letter of the first word.
"""
from typing import List, Tuple
class Solution:
def reorderLogFiles(self, logs: List[str]) -> List[str]:
return sorte... | 25.47619 | 76 | 0.654206 | 82 | 535 | 4.243902 | 0.658537 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009456 | 0.209346 | 535 | 20 | 77 | 26.75 | 0.813239 | 0.33271 | 0 | 0 | 0 | 0 | 0.002865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f5ce26ee83dcd9d91cca7b04d20a23248fa4fbd6 | 900 | py | Python | hood/forms.py | Mash14/neighborhood | afefa5cf640466cc56c9a80be97e06af5c18def9 | [
"CNRI-Python"
] | null | null | null | hood/forms.py | Mash14/neighborhood | afefa5cf640466cc56c9a80be97e06af5c18def9 | [
"CNRI-Python"
] | null | null | null | hood/forms.py | Mash14/neighborhood | afefa5cf640466cc56c9a80be97e06af5c18def9 | [
"CNRI-Python"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from .models import Neighborhood, Post,UserProfile,Business,Police,Health
class NeighborhoodForm(forms.ModelForm):
class Meta:
model = Neighborhood
exclude = ['admin']
class NewProfileForm(forms.ModelForm):
class Meta:
... | 25 | 73 | 0.672222 | 91 | 900 | 6.593407 | 0.373626 | 0.14 | 0.19 | 0.23 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224444 | 900 | 35 | 74 | 25.714286 | 0.859599 | 0 | 0 | 0.222222 | 0 | 0 | 0.123471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f5f40e1d6b82c32a070d68e18742c55257c87b6b | 775 | py | Python | Codeforces/C_Challenging_Cliffs.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/C_Challenging_Cliffs.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/C_Challenging_Cliffs.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
n=int(input())
h=list(map(int,input().split()))
ans=[]
h=sorted(h)
a,b=h[1]-h[0],h[n-1]-h[n-2]
d=min(a,b)
c=-1
for i in range(1,n-1):
if h[i+1]-h[i]<d:
c=i
d=h[i+1]-h[i]
if c!=-1:
ans.append(h[c])
for i in ... | 23.484848 | 36 | 0.376774 | 134 | 775 | 2.171642 | 0.186567 | 0.278351 | 0.309278 | 0.189003 | 0.230241 | 0.195876 | 0.14433 | 0 | 0 | 0 | 0 | 0.040816 | 0.430968 | 775 | 33 | 37 | 23.484848 | 0.619048 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.032258 | 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 |
f5f7af9461572d24548f31485b725d0ae8a1321b | 165 | py | Python | kedro/extras/datasets/video/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | null | null | null | kedro/extras/datasets/video/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | null | null | null | kedro/extras/datasets/video/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | null | null | null | """Dataset implementation to load/save data from/to a video file."""
__all__ = ["VideoDataSet"]
from kedro.extras.datasets.video.video_dataset import VideoDataSet
| 27.5 | 68 | 0.781818 | 22 | 165 | 5.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 165 | 5 | 69 | 33 | 0.843537 | 0.375758 | 0 | 0 | 0 | 0 | 0.123711 | 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 |
eb0094228a9cbe608ee28b05bed1268b8f160722 | 178 | py | Python | gv.py | alexhalme/signover | c2f65a046d54a419187a99c7d4b6faaaa38caec8 | [
"MIT"
] | null | null | null | gv.py | alexhalme/signover | c2f65a046d54a419187a99c7d4b6faaaa38caec8 | [
"MIT"
] | null | null | null | gv.py | alexhalme/signover | c2f65a046d54a419187a99c7d4b6faaaa38caec8 | [
"MIT"
] | null | null | null | import _clibash
import locaf as af
SQL_CRED = ('localhost', 'signout', af.iob('sqlpassword.txt').decode('utf8'), 'signout')
COOKIE = af.MakeObj({
'MAX': 800,
'WARN': 500
}) | 19.777778 | 88 | 0.657303 | 24 | 178 | 4.791667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045752 | 0.140449 | 178 | 9 | 89 | 19.777778 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.273743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
eb08e1d81f3e333f17317a541493133580ffc6d0 | 2,820 | py | Python | win_manage.py | xioustic/win_manage | 707e8735f8d147af927d7c1a0ca2867741ed3ee0 | [
"MIT"
] | 1 | 2018-03-07T07:25:54.000Z | 2018-03-07T07:25:54.000Z | win_manage.py | xioustic/win_manage | 707e8735f8d147af927d7c1a0ca2867741ed3ee0 | [
"MIT"
] | null | null | null | win_manage.py | xioustic/win_manage | 707e8735f8d147af927d7c1a0ca2867741ed3ee0 | [
"MIT"
] | 5 | 2016-09-13T16:38:46.000Z | 2018-03-07T11:05:13.000Z | import win32gui
import win32con
import ctypes
user32 = ctypes.windll.user32
# Functions Used By Classes; Might be Useful to Someone
def close_hwnd(hwnd):
return win32gui.PostMessage(hwnd,win32con.WM_CLOSE,0,0)
def get_hwnd_title(hwnd):
return win32gui.GetWindowText(hwnd)
def get_hwnd_rect(hwnd):
return w... | 22.741935 | 88 | 0.646099 | 355 | 2,820 | 4.946479 | 0.228169 | 0.093964 | 0.087699 | 0.068337 | 0.26082 | 0.1959 | 0 | 0 | 0 | 0 | 0 | 0.025874 | 0.259929 | 2,820 | 124 | 89 | 22.741935 | 0.815525 | 0.101418 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.034483 | 0.264368 | 0.689655 | 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 |
eb2dfac74cdd431e2db6f29e9db79a0707329e7e | 5,949 | py | Python | recipes/Python/578451_DEMO_Kids_Level_PythRF/recipe-578451.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/578451_DEMO_Kids_Level_PythRF/recipe-578451.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/578451_DEMO_Kids_Level_PythRF/recipe-578451.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | # RF_Attenuator.py
#
# Another kids level building and coding project...
#
# This DEMO is to show how to generate a simple identical waveform out of each channel
# BUT in anti-phase. A high quality dual trace Oscilloscope will show the waveforms generated
# are in anti-phase. This simple project uses this technique to... | 60.704082 | 128 | 0.476046 | 708 | 5,949 | 3.960452 | 0.420904 | 0.028531 | 0.040656 | 0.051355 | 0.07632 | 0.07632 | 0.07632 | 0.07632 | 0.07632 | 0.07632 | 0 | 0.045823 | 0.336023 | 5,949 | 97 | 129 | 61.329897 | 0.664051 | 0.880316 | 0 | 0 | 1 | 0.25 | 0.503185 | 0.313694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb34698c15917241b5c44fd55bf3588688360670 | 149 | py | Python | flat_reverse/reverse.py | tenceremitavami/dataScienceBootcampHomeworks | 52b5e7bd3d0e55473086d03810bd53029d2f9e82 | [
"MIT"
] | null | null | null | flat_reverse/reverse.py | tenceremitavami/dataScienceBootcampHomeworks | 52b5e7bd3d0e55473086d03810bd53029d2f9e82 | [
"MIT"
] | null | null | null | flat_reverse/reverse.py | tenceremitavami/dataScienceBootcampHomeworks | 52b5e7bd3d0e55473086d03810bd53029d2f9e82 | [
"MIT"
] | null | null | null | def reversing(li):
reversed_list = [elem[::-1] for elem in li][::-1]
print(reversed_list)
inp = [[1, 2], [3, 4], [5, 6, 7]]
reversing(inp)
| 18.625 | 53 | 0.563758 | 25 | 149 | 3.28 | 0.68 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07563 | 0.201342 | 149 | 7 | 54 | 21.285714 | 0.613445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 |
eb36f06c7812b360a3b755f07c23f3586f5b078f | 910 | py | Python | pystratis/api/smartcontracts/requestmodels/receiptsearchrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/smartcontracts/requestmodels/receiptsearchrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/smartcontracts/requestmodels/receiptsearchrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z | from typing import Optional, List
from pydantic import Field, conint
from pystratis.api import Model
from pystratis.core.types import Address
# noinspection PyUnresolvedReferences
class ReceiptSearchRequest(Model):
"""A request model for the smartcontracts/receipt-search endpoint.
Args:
contract_addr... | 39.565217 | 71 | 0.714286 | 121 | 910 | 5.305785 | 0.380165 | 0.049844 | 0.056075 | 0.065421 | 0.099688 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 0.00672 | 0.182418 | 910 | 22 | 72 | 41.363636 | 0.856183 | 0.449451 | 0 | 0 | 0 | 0 | 0.085837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
eb433c68b7f95e2659fb38be8525c99cff1b1f83 | 926 | py | Python | lib/cache.py | fauziwei/oauth2-provider-tornado-restful | 79ddb824eab75b02fa9df2dc19b6d94da2612a7c | [
"Apache-2.0"
] | 1 | 2018-01-24T09:21:24.000Z | 2018-01-24T09:21:24.000Z | lib/cache.py | fauziwei/oauth2-provider-tornado-restful | 79ddb824eab75b02fa9df2dc19b6d94da2612a7c | [
"Apache-2.0"
] | null | null | null | lib/cache.py | fauziwei/oauth2-provider-tornado-restful | 79ddb824eab75b02fa9df2dc19b6d94da2612a7c | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Fauzi, fauziwei@yahoo.com
import redis
import redis.exceptions
class Cache(object):
# __slots__ = ('rds', 'host', 'port', 'db')
__slots__ = ('rds')
def __init__(self, *args, **kwargs):
self.rds = redis.StrictRedis(
host=kwargs['host'], port=kwargs['port'], db=kwargs['db']
)
def expire(se... | 20.130435 | 60 | 0.667387 | 144 | 926 | 4.194444 | 0.368056 | 0.115894 | 0.107616 | 0.05298 | 0.129139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001311 | 0.176026 | 926 | 45 | 61 | 20.577778 | 0.790301 | 0.155508 | 0 | 0 | 0 | 0 | 0.016774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0.034483 | 0.068966 | 0.103448 | 0.62069 | 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 |
de70b79fd88e397cf53a4d87f4adc3d71c2a5109 | 245 | py | Python | gamefixes/1715130.py | manueliglesiasgarcia/protonfixes | d676b6bf39f6e4268b4791d3d71c6d74e2127121 | [
"BSD-2-Clause"
] | 54 | 2019-06-21T22:03:45.000Z | 2022-03-20T19:24:36.000Z | gamefixes/1715130.py | manueliglesiasgarcia/protonfixes | d676b6bf39f6e4268b4791d3d71c6d74e2127121 | [
"BSD-2-Clause"
] | 21 | 2020-06-13T22:49:18.000Z | 2022-03-20T08:28:39.000Z | gamefixes/1715130.py | manueliglesiasgarcia/protonfixes | d676b6bf39f6e4268b4791d3d71c6d74e2127121 | [
"BSD-2-Clause"
] | 53 | 2019-09-11T15:23:25.000Z | 2022-03-20T08:18:49.000Z | """ Crysis Remastered
"""
#pylint: disable=C0103
from protonfixes import util
def main():
"""
"""
# Replace launcher with game exe in proton arguments
util.protontricks('vcrun2019_ge')
util.protontricks('d3dcompiler_43')
| 17.5 | 56 | 0.681633 | 27 | 245 | 6.111111 | 0.888889 | 0.193939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056122 | 0.2 | 245 | 13 | 57 | 18.846154 | 0.785714 | 0.367347 | 0 | 0 | 0 | 0 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de8daf3cdfcd9df2b89fa9ec3ee204c4e8cd8e30 | 225 | py | Python | quadpy/line_segment/trapezoidal.py | gdmcbain/quadpy | c083d500027d7c1b2187ae06ff2b7fbdd360ccc7 | [
"MIT"
] | 1 | 2019-01-02T19:04:42.000Z | 2019-01-02T19:04:42.000Z | quadpy/line_segment/trapezoidal.py | gdmcbain/quadpy | c083d500027d7c1b2187ae06ff2b7fbdd360ccc7 | [
"MIT"
] | null | null | null | quadpy/line_segment/trapezoidal.py | gdmcbain/quadpy | c083d500027d7c1b2187ae06ff2b7fbdd360ccc7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
import numpy
class Trapezoidal(object):
def __init__(self):
self.weights = numpy.array([1.0, 1.0])
self.points = numpy.array([-1.0, 1.0])
self.degree = 1
return
| 18.75 | 46 | 0.551111 | 31 | 225 | 3.870968 | 0.580645 | 0.066667 | 0.183333 | 0.2 | 0.3 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0.06135 | 0.275556 | 225 | 11 | 47 | 20.454545 | 0.674847 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dea0b9b51a60dd500efc72b88178987bb85c8e9d | 238 | py | Python | NumpyNN/TestFunction.py | ssuurrffaaccee/ToyNeuralNetworkImplementation | ef361e260e5508d29b24d1abbcdd74069d41f983 | [
"MIT"
] | null | null | null | NumpyNN/TestFunction.py | ssuurrffaaccee/ToyNeuralNetworkImplementation | ef361e260e5508d29b24d1abbcdd74069d41f983 | [
"MIT"
] | null | null | null | NumpyNN/TestFunction.py | ssuurrffaaccee/ToyNeuralNetworkImplementation | ef361e260e5508d29b24d1abbcdd74069d41f983 | [
"MIT"
] | null | null | null | from Function import *
from Tensor import InputTensor
from Module import Forward
import numpy as np
def TestNorm2():
a=InputTensor(np.array([1,2]))
b=InputTensor(np.array([1,5]))
x=Norm2Dis(a,b)
Forward()
print(x.Data) | 23.8 | 34 | 0.693277 | 37 | 238 | 4.459459 | 0.594595 | 0.157576 | 0.218182 | 0.230303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.176471 | 238 | 10 | 35 | 23.8 | 0.811224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dea9968efeccc0fc758dac8cceb37debcbdbc452 | 188 | py | Python | src/yammy/__init__.py | xmnlab/pyge | 3c36dd399b0d75c4989e3b04c10a84bf71884949 | [
"BSD-3-Clause"
] | null | null | null | src/yammy/__init__.py | xmnlab/pyge | 3c36dd399b0d75c4989e3b04c10a84bf71884949 | [
"BSD-3-Clause"
] | null | null | null | src/yammy/__init__.py | xmnlab/pyge | 3c36dd399b0d75c4989e3b04c10a84bf71884949 | [
"BSD-3-Clause"
] | null | null | null | """Top-level package for Python Game Engine."""
__author__ = """Ivan Ogasawara"""
__email__ = "ivan.ogasawara@gmail.com"
__version__ = "0.1.0"
from yammy.main import Yammy # noqa: F401
| 23.5 | 47 | 0.707447 | 26 | 188 | 4.653846 | 0.846154 | 0.214876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.138298 | 188 | 7 | 48 | 26.857143 | 0.709877 | 0.281915 | 0 | 0 | 0 | 0 | 0.333333 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.