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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb7fc096b934fb70ce80d9b25b9920992168492e | 824 | py | Python | python-CSDN博客爬虫/CSDN_article/csdn/test.py | wangchuanli001/Project-experience | b563c5c3afc07c913c2e1fd25dff41c70533f8de | [
"Apache-2.0"
] | 12 | 2019-12-07T01:44:55.000Z | 2022-01-27T14:13:30.000Z | python-CSDN博客爬虫/CSDN_article/csdn/test.py | hujiese/Project-experience | b563c5c3afc07c913c2e1fd25dff41c70533f8de | [
"Apache-2.0"
] | 23 | 2020-05-23T03:56:33.000Z | 2022-02-28T07:54:45.000Z | python-CSDN博客爬虫/CSDN_article/csdn/test.py | hujiese/Project-experience | b563c5c3afc07c913c2e1fd25dff41c70533f8de | [
"Apache-2.0"
] | 7 | 2019-12-20T04:48:56.000Z | 2021-11-19T02:23:45.000Z | import random
import MySQLdb
import requests
# ! -*- encoding:utf-8 -*-
import requests
# 要访问的目标页面
targetUrl = "https://blog.csdn.net/wang978252321/article/details/95489446"
# targetUrl = "http://proxy.abuyun.com/switch-ip"
# targetUrl = "http://proxy.abuyun.com/current-ip"
# 代理服务器
proxyHost = "http-dyn.abuyun.com... | 19.619048 | 74 | 0.684466 | 100 | 824 | 5.62 | 0.54 | 0.048043 | 0.042705 | 0.085409 | 0.096085 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054775 | 0.135922 | 824 | 41 | 75 | 20.097561 | 0.734551 | 0.196602 | 0 | 0.08 | 0 | 0 | 0.308869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.12 | 0.16 | 0 | 0.16 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cb80caec425effb53efd7354ad0dff729134141a | 803 | py | Python | setup.py | codecov/tornpsql | 6d24b20db6ba554064edd747febeea5028bd2e84 | [
"Apache-2.0"
] | null | null | null | setup.py | codecov/tornpsql | 6d24b20db6ba554064edd747febeea5028bd2e84 | [
"Apache-2.0"
] | 2 | 2019-10-01T07:31:06.000Z | 2020-10-29T15:53:39.000Z | setup.py | codecov/tornpsql | 6d24b20db6ba554064edd747febeea5028bd2e84 | [
"Apache-2.0"
] | 3 | 2020-08-27T00:03:18.000Z | 2021-05-30T02:04:57.000Z | from setuptools import setup
setup(name='tornpsql',
version='2.1.5',
description="PostgreSQL handler for Tornado Web",
long_description="",
classifiers=["Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Pr... | 36.5 | 72 | 0.597758 | 82 | 803 | 5.768293 | 0.743902 | 0.080338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020443 | 0.268991 | 803 | 21 | 73 | 38.238095 | 0.785349 | 0 | 0 | 0 | 0 | 0 | 0.444583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb811398470b8cc79c6cd844862ffc7058f5bb1b | 7,392 | py | Python | workflow/scripts/mask-contigs.py | AKBrueggemann/snakemake-workflow-sars-cov2 | e4cfe0f2f93efc6b45ede0183070bff81f08f502 | [
"BSD-2-Clause"
] | null | null | null | workflow/scripts/mask-contigs.py | AKBrueggemann/snakemake-workflow-sars-cov2 | e4cfe0f2f93efc6b45ede0183070bff81f08f502 | [
"BSD-2-Clause"
] | null | null | null | workflow/scripts/mask-contigs.py | AKBrueggemann/snakemake-workflow-sars-cov2 | e4cfe0f2f93efc6b45ede0183070bff81f08f502 | [
"BSD-2-Clause"
] | null | null | null | '# Copyright ' + str(datetime.datetime.now().year) + ' Thomas Battenfeld, Alexander Thomas, Johannes Köster.'
'# Licensed under the GNU GPLv3 license (https://opensource.org/licenses/GPL-3.0)'
'# This file may not be copied, modified, or distributed'
'# except according to those terms.
'
'# Copyright 2021 Thomas Ba... | 37.145729 | 125 | 0.540449 | 796 | 7,392 | 4.898241 | 0.257538 | 0.048474 | 0.049243 | 0.055399 | 0.294947 | 0.239292 | 0.196204 | 0.196204 | 0.196204 | 0.142857 | 0 | 0.005975 | 0.366071 | 7,392 | 198 | 126 | 37.333333 | 0.826078 | 0.120536 | 0 | 0.216418 | 0 | 0.029851 | 0.121517 | 0.004056 | 0 | 0 | 0 | 0.005051 | 0 | 0 | null | null | 0 | 0.007463 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb81a1e07f6c274ad26ad849f859995ac2573b0c | 638 | py | Python | prototyper/build/stages/wsgi_app.py | vitalik/django-prototyper | 0bf7b2437c45868d2ee90c7c4d69c7d71247c978 | [
"MIT"
] | 114 | 2018-03-19T14:45:22.000Z | 2022-02-07T20:42:28.000Z | prototyper/build/stages/wsgi_app.py | vitalik/django-prototyper | 0bf7b2437c45868d2ee90c7c4d69c7d71247c978 | [
"MIT"
] | 7 | 2018-05-04T13:35:20.000Z | 2022-02-10T12:03:46.000Z | prototyper/build/stages/wsgi_app.py | vitalik/django-prototyper | 0bf7b2437c45868d2ee90c7c4d69c7d71247c978 | [
"MIT"
] | 8 | 2018-06-25T08:09:06.000Z | 2022-02-07T20:42:36.000Z | from ..base import BuildStage
from pathlib import Path
TPL = """\"\"\"
WSGI config for {0} project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
\"\"\"
import os
from django.core.ws... | 23.62963 | 78 | 0.730408 | 90 | 638 | 5.044444 | 0.611111 | 0.039648 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00726 | 0.136364 | 638 | 26 | 79 | 24.538462 | 0.816697 | 0 | 0 | 0 | 0 | 0 | 0.619122 | 0.10815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb82a4817e12d6d4179e7cddccb7eec72aa3842a | 399 | py | Python | tests/test_http_api.py | b2wads/baas-transfer | ce2b62c2bed3a06ec85faf1e30fa86d12ede6fea | [
"BSD-3-Clause"
] | null | null | null | tests/test_http_api.py | b2wads/baas-transfer | ce2b62c2bed3a06ec85faf1e30fa86d12ede6fea | [
"BSD-3-Clause"
] | 2 | 2021-03-31T19:48:34.000Z | 2021-12-13T20:48:54.000Z | tests/test_http_api.py | b2wads/baas-transfer | ce2b62c2bed3a06ec85faf1e30fa86d12ede6fea | [
"BSD-3-Clause"
] | 1 | 2020-03-16T15:10:22.000Z | 2020-03-16T15:10:22.000Z | from aioresponses import aioresponses
from asynctest import TestCase
from asyncworker.testing import HttpClientContext
from baas.api import app
class TransferAPITest(TestCase):
async def test_health(self):
async with HttpClientContext(app) as client:
resp = await client.get("/health")
... | 28.5 | 52 | 0.701754 | 46 | 399 | 6.065217 | 0.630435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220551 | 399 | 13 | 53 | 30.692308 | 0.897106 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cb8782c8d3ed5f70ac8e8fb4474a4810fb8ff2aa | 1,276 | py | Python | cvisionlib/camfeed.py | methusael13/cvision | 4f147cd91bf43704662fe32960e6c98057ef5eac | [
"MIT"
] | 2 | 2018-01-15T14:38:35.000Z | 2018-03-04T10:00:28.000Z | cvisionlib/camfeed.py | methusael13/cvision | 4f147cd91bf43704662fe32960e6c98057ef5eac | [
"MIT"
] | null | null | null | cvisionlib/camfeed.py | methusael13/cvision | 4f147cd91bf43704662fe32960e6c98057ef5eac | [
"MIT"
] | null | null | null | '''
Author: Methusael Murmu
Module implementing parallel Camera I/O feed
'''
import cv2
from threading import Thread
class CameraFeedException(Exception):
def __init__(self, src, msg = None):
if msg is None:
msg = 'Unable to open camera devive: %d' % src
super(CameraFeedExcepti... | 25.019608 | 60 | 0.61442 | 151 | 1,276 | 4.788079 | 0.377483 | 0.082988 | 0.107884 | 0.06639 | 0.094053 | 0.094053 | 0.094053 | 0.094053 | 0 | 0 | 0 | 0.003322 | 0.29232 | 1,276 | 50 | 61 | 25.52 | 0.797342 | 0.053292 | 0 | 0.114286 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.028571 | 0.057143 | 0.057143 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb905a1474b77d18994505f88c59914d489cc249 | 512 | py | Python | verify_package_installs.py | lukassnoek/ICON2017_MVPA | 89af3be9b9565cd8a9f6be940edb1c870b5a1c9d | [
"MIT"
] | 19 | 2017-08-06T06:30:21.000Z | 2021-11-02T10:37:48.000Z | verify_package_installs.py | lukassnoek/ICON2017_MVPA | 89af3be9b9565cd8a9f6be940edb1c870b5a1c9d | [
"MIT"
] | 1 | 2017-08-06T11:44:10.000Z | 2017-08-06T11:44:10.000Z | verify_package_installs.py | lukassnoek/ICON2017_MVPA | 89af3be9b9565cd8a9f6be940edb1c870b5a1c9d | [
"MIT"
] | 6 | 2017-08-06T07:08:12.000Z | 2020-06-04T09:22:28.000Z | import warnings
import os
from importlib import import_module
packages = ['sklearn', 'nibabel', 'numpy',
'matplotlib', 'skbold', 'niwidgets', 'scipy']
warnings.filterwarnings("ignore")
for package in packages:
try:
import_module(package)
print('%s was succesfully installed!' % package... | 26.947368 | 68 | 0.642578 | 58 | 512 | 5.637931 | 0.637931 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232422 | 512 | 18 | 69 | 28.444444 | 0.832061 | 0 | 0 | 0 | 0 | 0 | 0.310547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cb91cfb48f8d827ab0cbcfd61e22339fb73c61b6 | 296 | py | Python | python_practice/decorators.py | vishalvb/practice | 4c38f863408c91aa072bd20510f098043fecd043 | [
"MIT"
] | null | null | null | python_practice/decorators.py | vishalvb/practice | 4c38f863408c91aa072bd20510f098043fecd043 | [
"MIT"
] | null | null | null | python_practice/decorators.py | vishalvb/practice | 4c38f863408c91aa072bd20510f098043fecd043 | [
"MIT"
] | null | null | null | #decorators
def decorator(myfunc):
def wrapper(*args):
return myfunc(*args)
return wrapper
@decorator
def display():
print('display function')
@decorator
def info(name, age):
print('name is {} and age is {}'.format(name,age))
info('john', 23)
#hi = decorator(display)
#hi()
display() | 14.095238 | 51 | 0.682432 | 40 | 296 | 5.05 | 0.475 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.148649 | 296 | 21 | 52 | 14.095238 | 0.793651 | 0.125 | 0 | 0.166667 | 0 | 0 | 0.171206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.083333 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb930e85278de85a62b2b49b52741474d0c750b3 | 342 | py | Python | old_app/app.py | kelj0/GPGdotgetter | 619ada58598fefbd9a5f33d50a15df7f35996d1e | [
"MIT"
] | null | null | null | old_app/app.py | kelj0/GPGdotgetter | 619ada58598fefbd9a5f33d50a15df7f35996d1e | [
"MIT"
] | 7 | 2021-04-02T10:26:34.000Z | 2021-04-03T21:15:37.000Z | old_app/app.py | kelj0/GPGdotgetter | 619ada58598fefbd9a5f33d50a15df7f35996d1e | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask('savedots')
app.config['DATABASE_FILE'] = 'savedots_DB.sqlite'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///savedots_DB.sqlite'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.secret_key = "CHANGE_ME"
if __name__ == '__main__':
print("Please run main.py to start... | 26.307692 | 70 | 0.736842 | 47 | 342 | 5 | 0.659574 | 0.114894 | 0.13617 | 0.161702 | 0.297872 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.119883 | 342 | 12 | 71 | 28.5 | 0.777409 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb9357f27908177cf2214963118161546dd6dd87 | 1,765 | py | Python | nnet/trans_func.py | Bhumbra/Nnet | aa8a8891d28cb2244668093f90e1909be79314bd | [
"BSD-3-Clause"
] | 1 | 2021-07-07T21:11:27.000Z | 2021-07-07T21:11:27.000Z | nnet/trans_func.py | Bhumbra/Nnet | aa8a8891d28cb2244668093f90e1909be79314bd | [
"BSD-3-Clause"
] | null | null | null | nnet/trans_func.py | Bhumbra/Nnet | aa8a8891d28cb2244668093f90e1909be79314bd | [
"BSD-3-Clause"
] | null | null | null | # Transfer functions and derivatives
# Note _all_ transfer functions and derivatives _must_ accept keyword arguments
# and handle the output keyword argument out=z correctly.
# Gary Bhumbra
import numpy as np
import scipy.special
#-------------------------------------------------------------------------------
"""
de... | 32.090909 | 80 | 0.430595 | 227 | 1,765 | 3.303965 | 0.255507 | 0.037333 | 0.093333 | 0.053333 | 0.381333 | 0.310667 | 0.273333 | 0.273333 | 0.273333 | 0.273333 | 0 | 0.014384 | 0.172805 | 1,765 | 54 | 81 | 32.685185 | 0.499315 | 0.388669 | 0 | 0.416667 | 0 | 0 | 0.062344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb9f2ac1408c2f916e30ffa4b8d707e4f3ab1eff | 2,281 | py | Python | config/scripts/dados-pygen/models.py | uhndev/hateoas-server | 7eac7928b9fb3be2ffcd9ec1eb833ba533333e98 | [
"Unlicense",
"MIT"
] | null | null | null | config/scripts/dados-pygen/models.py | uhndev/hateoas-server | 7eac7928b9fb3be2ffcd9ec1eb833ba533333e98 | [
"Unlicense",
"MIT"
] | null | null | null | config/scripts/dados-pygen/models.py | uhndev/hateoas-server | 7eac7928b9fb3be2ffcd9ec1eb833ba533333e98 | [
"Unlicense",
"MIT"
] | null | null | null | import random
import config
from faker import Factory
fake = Factory.create()
class User:
def __init__(self):
self.username = fake.user_name()
self.email = fake.company_email()
self.firstName = fake.first_name()
self.lastName = fake.last_name()
self.dateOfBirth = fake.iso8601()
self.password... | 31.246575 | 77 | 0.644454 | 265 | 2,281 | 5.437736 | 0.335849 | 0.058293 | 0.038168 | 0.036086 | 0.48161 | 0.406662 | 0.406662 | 0.406662 | 0.277585 | 0.277585 | 0 | 0.015317 | 0.198597 | 2,281 | 72 | 78 | 31.680556 | 0.772976 | 0.017975 | 0 | 0.258065 | 0 | 0 | 0.097452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032258 | 0.048387 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cba3386606abea1e2c3dfe0f137338d796e10c89 | 539 | py | Python | batuta/base.py | makecodes/batuta | b460bdb216e0d9486dacab3273b891d7515287c3 | [
"Unlicense"
] | null | null | null | batuta/base.py | makecodes/batuta | b460bdb216e0d9486dacab3273b891d7515287c3 | [
"Unlicense"
] | 2 | 2022-01-22T15:17:15.000Z | 2022-01-22T16:08:27.000Z | batuta/base.py | makecodes/batuta | b460bdb216e0d9486dacab3273b891d7515287c3 | [
"Unlicense"
] | null | null | null | from dynaconf import FlaskDynaconf
from flask import Flask
def create_app(**config):
app = Flask(__name__)
FlaskDynaconf(app) # config managed by Dynaconf
app.config.load_extensions('EXTENSIONS') # Load extensions from settings.toml
app.config.update(config) # Override with passed config
return... | 26.95 | 82 | 0.714286 | 72 | 539 | 5.208333 | 0.513889 | 0.096 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.202226 | 539 | 19 | 83 | 28.368421 | 0.862791 | 0.400742 | 0 | 0.181818 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cbaf10d4a0aa43c5e434d348b34679078fdc57a8 | 1,475 | py | Python | python/euler002/euler002.py | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | null | null | null | python/euler002/euler002.py | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | null | null | null | python/euler002/euler002.py | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | 1 | 2020-12-16T09:25:19.000Z | 2020-12-16T09:25:19.000Z | #!/usr/bin/env python
#---------------------------------#
#- Fibonacci Lookup Table -#
#---------------------------------#
fib_table = {0:0, 1:1, 2:1, 3:2}
#---------------------------------#
#- Compute Fibonacci Value -#
#---------------------------------#
def Fibonacci( F ):
# Check exit
... | 19.666667 | 50 | 0.44 | 151 | 1,475 | 4.15894 | 0.324503 | 0.063694 | 0.042994 | 0.047771 | 0.098726 | 0.098726 | 0 | 0 | 0 | 0 | 0 | 0.025341 | 0.304407 | 1,475 | 74 | 51 | 19.932432 | 0.586745 | 0.425085 | 0 | 0.074074 | 0 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbb30457af6425432e38e401ec2a806f28ae68ab | 6,968 | py | Python | SimpleHTTPSAuthServer.py | oza6ut0ne/SimpleHTTPSAuthServer | 084e5c0cb686e8c41ba1f911a6bc8939f2e24a59 | [
"MIT"
] | null | null | null | SimpleHTTPSAuthServer.py | oza6ut0ne/SimpleHTTPSAuthServer | 084e5c0cb686e8c41ba1f911a6bc8939f2e24a59 | [
"MIT"
] | null | null | null | SimpleHTTPSAuthServer.py | oza6ut0ne/SimpleHTTPSAuthServer | 084e5c0cb686e8c41ba1f911a6bc8939f2e24a59 | [
"MIT"
] | null | null | null | import base64
import os
import random
import re
import socket
import sys
import ssl
import string
if sys.version_info[0] == 2:
from BaseHTTPServer import HTTPServer as Server
from SimpleHTTPServer import SimpleHTTPRequestHandler as Handler
from SocketServer import ThreadingMixIn
from httplib import UNA... | 33.5 | 86 | 0.617681 | 784 | 6,968 | 5.330357 | 0.256378 | 0.011965 | 0.021536 | 0.01364 | 0.194783 | 0.131132 | 0.116774 | 0.116774 | 0.092367 | 0.054559 | 0 | 0.008146 | 0.277698 | 6,968 | 207 | 87 | 33.661836 | 0.822174 | 0 | 0 | 0.130952 | 0 | 0 | 0.102899 | 0.006171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065476 | false | 0.107143 | 0.113095 | 0.005952 | 0.255952 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cbb79607ab88cfb6b0f8cd6f2a609f20a5508f65 | 867 | py | Python | app/helpers.py | QwertygidQ/phystech-backend | 657a5862d3bab91623551c7f4f6868cfdb1df4b8 | [
"MIT"
] | null | null | null | app/helpers.py | QwertygidQ/phystech-backend | 657a5862d3bab91623551c7f4f6868cfdb1df4b8 | [
"MIT"
] | null | null | null | app/helpers.py | QwertygidQ/phystech-backend | 657a5862d3bab91623551c7f4f6868cfdb1df4b8 | [
"MIT"
] | null | null | null | from flask import request, jsonify
from functools import wraps
from schema import SchemaError
def json_required(func):
@wraps(func)
def wrapper(*args, **kwargs):
if not request.data or not request.json:
return jsonify({
'status': 'Error',
'reason': 'No JSON ... | 25.5 | 53 | 0.517878 | 81 | 867 | 5.518519 | 0.382716 | 0.089485 | 0.058166 | 0.071588 | 0.483221 | 0.348993 | 0.348993 | 0.201342 | 0 | 0 | 0 | 0 | 0.388697 | 867 | 34 | 54 | 25.5 | 0.843396 | 0 | 0 | 0.518519 | 0 | 0 | 0.081797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.111111 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
cbbf46aa2d552297fb3fb4b62e94db053b8ce1eb | 1,581 | py | Python | basic_auth/handler.py | andrei-shabanski/s3pypi | 48718149cf43d6e3252712d072d5b0de850bac55 | [
"MIT"
] | 249 | 2016-04-07T08:36:44.000Z | 2021-06-03T06:55:08.000Z | basic_auth/handler.py | andrei-shabanski/s3pypi | 48718149cf43d6e3252712d072d5b0de850bac55 | [
"MIT"
] | 58 | 2016-06-08T22:41:18.000Z | 2021-05-28T20:03:39.000Z | basic_auth/handler.py | AstrocyteResearch/s3pypi | cd8d02015772dcded3b3db1a588c89e174d10471 | [
"MIT"
] | 100 | 2016-06-23T23:28:23.000Z | 2021-03-12T15:09:29.000Z | import base64
import hashlib
import json
import logging
from dataclasses import dataclass
import boto3
log = logging.getLogger()
region = "us-east-1"
def handle(event: dict, context):
request = event["Records"][0]["cf"]["request"]
try:
authenticate(request["headers"])
except Exception as e:
... | 23.597015 | 73 | 0.648956 | 181 | 1,581 | 5.596685 | 0.441989 | 0.031589 | 0.019743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013546 | 0.206199 | 1,581 | 66 | 74 | 23.954545 | 0.793626 | 0 | 0 | 0 | 0 | 0 | 0.145478 | 0.020873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.145833 | 0.125 | 0.020833 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cbc875e1529c951ebc046e3930e392b9612e4907 | 1,302 | py | Python | study/hfppnetwork/hfppnetwork/sms/logginghelper.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | 7 | 2015-07-15T06:47:16.000Z | 2020-10-17T20:51:09.000Z | study/hfppnetwork/hfppnetwork/sms/logginghelper.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | null | null | null | study/hfppnetwork/hfppnetwork/sms/logginghelper.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | 8 | 2017-01-30T02:27:01.000Z | 2021-04-21T04:15:48.000Z | # -*- coding: utf-8 -*-
"""
Copyright (C) 2013 TopCoder Inc., All Rights Reserved.
This is the module that defines logging helper methods
This module resides in Python source file logginghelper.py
Thread Safety:
It is thread safe because no module-level variable is used.
@author: TCSASSEMBLER
@version: 1.0
"""
import... | 31.756098 | 76 | 0.69278 | 173 | 1,302 | 5.196532 | 0.416185 | 0.050056 | 0.046719 | 0.060067 | 0.309232 | 0.249166 | 0.208009 | 0.077864 | 0 | 0 | 0 | 0.006783 | 0.207373 | 1,302 | 41 | 77 | 31.756098 | 0.864341 | 0.529186 | 0 | 0 | 0 | 0 | 0.202703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbca5e82b89e8b333ac4997324a7acc5ec0553d9 | 2,566 | py | Python | hw8/next_permutation.py | alexander-paskal/ece143-hw | 9e3d475cb44fd16f87879cb74dc9305d70805355 | [
"MIT"
] | 1 | 2022-02-02T07:30:20.000Z | 2022-02-02T07:30:20.000Z | hw8/next_permutation.py | alexander-paskal/ece143-hw | 9e3d475cb44fd16f87879cb74dc9305d70805355 | [
"MIT"
] | null | null | null | hw8/next_permutation.py | alexander-paskal/ece143-hw | 9e3d475cb44fd16f87879cb74dc9305d70805355 | [
"MIT"
] | null | null | null | """
Given a permutation of any length, generate the next permutation in lexicographic order.
For example, this are the permutations for [1,2,3] in lexicographic order.
# >>> list(it.permutations([1,2,3]))
[(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]
Then, your function next_permutation(t:tuple)... | 27.591398 | 96 | 0.537412 | 347 | 2,566 | 3.919308 | 0.337176 | 0.088235 | 0.013235 | 0.008824 | 0.189706 | 0.151471 | 0.052941 | 0.052941 | 0.052941 | 0.052941 | 0 | 0.042478 | 0.339439 | 2,566 | 92 | 97 | 27.891304 | 0.759882 | 0.420109 | 0 | 0.318182 | 1 | 0 | 0.039528 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 1 | 0.022727 | false | 0 | 0.022727 | 0 | 0.113636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbcfd99b4f40fab95fa519c4f1885786acde8bae | 2,373 | py | Python | sylwek/data_provider.py | fizykpl/Synerise2 | baf755004d62b3d14a0988bbe8a5add15f10d066 | [
"MIT"
] | null | null | null | sylwek/data_provider.py | fizykpl/Synerise2 | baf755004d62b3d14a0988bbe8a5add15f10d066 | [
"MIT"
] | null | null | null | sylwek/data_provider.py | fizykpl/Synerise2 | baf755004d62b3d14a0988bbe8a5add15f10d066 | [
"MIT"
] | null | null | null | import time
import numpy as np
from matplotlib import pyplot as plt
from sylwek.similarity_measure import SimilarityMeasure
from utils import mnist_reader
class DataProvider:
images = {}
labels = {}
similarity_measure = None
next_id = -1 #TODO 2. Prosimy nadać każdemu obrazkowi unikalny identyfikator... | 28.939024 | 115 | 0.604298 | 310 | 2,373 | 4.451613 | 0.319355 | 0.050725 | 0.021739 | 0.028986 | 0.228986 | 0.195652 | 0.156522 | 0.105797 | 0.105797 | 0.105797 | 0 | 0.018311 | 0.286557 | 2,373 | 81 | 116 | 29.296296 | 0.79681 | 0.142014 | 0 | 0.107143 | 0 | 0 | 0.070086 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.107143 | false | 0 | 0.089286 | 0 | 0.339286 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbdf9ff14b79b043642bf4e92833f21eebe9c6f0 | 621 | py | Python | build_automation/content_management/migrations/0046_auto_20200228_1432.py | SolarSPELL-Main/DLMS | 7e799246c55f5a64fa236567c411d1c2a2c4f38f | [
"MIT"
] | null | null | null | build_automation/content_management/migrations/0046_auto_20200228_1432.py | SolarSPELL-Main/DLMS | 7e799246c55f5a64fa236567c411d1c2a2c4f38f | [
"MIT"
] | 9 | 2020-01-15T21:33:16.000Z | 2021-06-10T22:13:28.000Z | build_automation/content_management/migrations/0046_auto_20200228_1432.py | SolarSPELL-Main/DLMS | 7e799246c55f5a64fa236567c411d1c2a2c4f38f | [
"MIT"
] | 3 | 2019-11-16T03:54:48.000Z | 2021-09-10T18:53:20.000Z | # Generated by Django 2.1.3 on 2020-02-28 21:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('content_management', '0045_auto_20200228_1345'),
]
operations = [
migrations.RemoveField(
model... | 25.875 | 129 | 0.63124 | 66 | 621 | 5.80303 | 0.621212 | 0.062663 | 0.073107 | 0.114883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0671 | 0.256039 | 621 | 23 | 130 | 27 | 0.761905 | 0.072464 | 0 | 0.235294 | 1 | 0 | 0.182927 | 0.090592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1db107f2c1e2018df51dd16f8e25f706a3117779 | 7,945 | py | Python | PyFlow/UI/Widgets/GraphEditor_ui.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | PyFlow/UI/Widgets/GraphEditor_ui.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | PyFlow/UI/Widgets/GraphEditor_ui.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'e:/GIT/PyFlow/PyFlow/UI/Widgets\GraphEditor_ui.ui',
# licensing of 'e:/GIT/PyFlow/PyFlow/UI/Widgets\GraphEditor_ui.ui' applies.
#
# Created: Sat May 4 12:25:24 2019
# by: pyside2-uic running on PySide2 5.12.0
#
# WARNING! All changes ... | 60.648855 | 148 | 0.746633 | 739 | 7,945 | 7.975643 | 0.223275 | 0.005429 | 0.004072 | 0.010859 | 0.201222 | 0.158466 | 0.109942 | 0.084153 | 0.084153 | 0.07058 | 0 | 0.022153 | 0.15343 | 7,945 | 130 | 149 | 61.115385 | 0.854148 | 0.042039 | 0 | 0.051724 | 1 | 0 | 0.057756 | 0.009209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.008621 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1db11b3357bbf28fcc5549063a419c83717d2922 | 995 | py | Python | computer_wordle.py | AntonKueltz/computer-wordle-client | 5cd88d779f529de2c19b82d599ff478476cb0feb | [
"MIT"
] | null | null | null | computer_wordle.py | AntonKueltz/computer-wordle-client | 5cd88d779f529de2c19b82d599ff478476cb0feb | [
"MIT"
] | null | null | null | computer_wordle.py | AntonKueltz/computer-wordle-client | 5cd88d779f529de2c19b82d599ff478476cb0feb | [
"MIT"
] | 2 | 2022-02-03T01:36:51.000Z | 2022-02-07T20:52:36.000Z | #!/usr/bin/env python3
import api
from urllib.parse import urljoin
GREEN = 'G'
YELLOW = 'Y'
GRAY = '.'
with open('wordlist.txt') as wordlist_file:
wordlist = tuple(line.strip() for line in wordlist_file)
class Game:
def __init__(self):
response = api.start_new_game()
self._game_id = respon... | 26.184211 | 70 | 0.654271 | 133 | 995 | 4.578947 | 0.368421 | 0.068966 | 0.049261 | 0.052545 | 0.085386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0013 | 0.227136 | 995 | 37 | 71 | 26.891892 | 0.790637 | 0.021106 | 0 | 0 | 0 | 0 | 0.130524 | 0.029805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.076923 | 0.115385 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
1db591283c587148c660788ee47bee65cf843d14 | 693 | py | Python | src/tact/server/websocket.py | wabain/tact | bd95608bebc640e47f31f6d0a403108fe998188d | [
"MIT"
] | null | null | null | src/tact/server/websocket.py | wabain/tact | bd95608bebc640e47f31f6d0a403108fe998188d | [
"MIT"
] | null | null | null | src/tact/server/websocket.py | wabain/tact | bd95608bebc640e47f31f6d0a403108fe998188d | [
"MIT"
] | null | null | null | """Base definitions for the websocket interface"""
import json
from abc import ABC, abstractmethod
class WebsocketConnectionLost(Exception):
pass
class AbstractWSManager(ABC):
@abstractmethod
async def send(self, conn_id: str, msg: dict) -> None:
# This is implemented as a separate method primar... | 27.72 | 69 | 0.695527 | 78 | 693 | 6.076923 | 0.551282 | 0.050633 | 0.139241 | 0.082278 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217893 | 693 | 24 | 70 | 28.875 | 0.874539 | 0.168831 | 0 | 0.333333 | 0 | 0 | 0.003515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1dca8369ce474af0f5d87fe2a557846435779fc6 | 1,956 | py | Python | tests/test_reader.py | goiosunsw/audacity.py | 899fa99e11e0345f95a563ea3c72b0d98f84e646 | [
"MIT"
] | 1 | 2018-01-05T02:06:04.000Z | 2018-01-05T02:06:04.000Z | tests/test_reader.py | goiosunsw/audacity.py | 899fa99e11e0345f95a563ea3c72b0d98f84e646 | [
"MIT"
] | null | null | null | tests/test_reader.py | goiosunsw/audacity.py | 899fa99e11e0345f95a563ea3c72b0d98f84e646 | [
"MIT"
] | null | null | null | import unittest
import os
import sys
import argparse
import numpy as np
import audacity as aud
print('Module file:')
print(aud.__file__)
SCRIPT_DIR = os.path.split(os.path.realpath(__file__))[0]
PACKAGE_DIR = os.path.realpath(os.path.join(SCRIPT_DIR,'..'))
DATA_DIR = os.path.join(PACKAGE_DIR, 'data')
TEST_FILE_1 = ... | 26.432432 | 75 | 0.644683 | 284 | 1,956 | 4.214789 | 0.327465 | 0.06015 | 0.053467 | 0.066834 | 0.155388 | 0.135338 | 0.135338 | 0.135338 | 0.100251 | 0 | 0 | 0.009315 | 0.231595 | 1,956 | 73 | 76 | 26.794521 | 0.787092 | 0.063906 | 0 | 0.188679 | 0 | 0 | 0.049781 | 0 | 0 | 0 | 0 | 0.013699 | 0.075472 | 1 | 0.09434 | false | 0 | 0.113208 | 0 | 0.245283 | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dcbbd2677c54b75d412f37ba6ff6de126f5a9fa | 248 | py | Python | tests/test_lightcurve.py | moemyself3/lightcurator | 0848435a170fea1d8979a416068ad88f7d8012a2 | [
"MIT"
] | 2 | 2019-03-20T15:11:22.000Z | 2020-05-31T01:55:03.000Z | tests/test_lightcurve.py | moemyself3/lightcurator | 0848435a170fea1d8979a416068ad88f7d8012a2 | [
"MIT"
] | 18 | 2019-03-20T06:42:17.000Z | 2021-01-24T04:57:08.000Z | tests/test_lightcurve.py | moemyself3/lightcurator | 0848435a170fea1d8979a416068ad88f7d8012a2 | [
"MIT"
] | null | null | null | import unittest
from lightcurator import lightcurve as lc
class TestLightcuratorMethods(unittest.TestCase):
def test_matchcat(self):
cc = lc.matchcat(23)
self.assertEqual(cc, 1)
if __name__ == '__main__':
unittest.main()
| 20.666667 | 49 | 0.709677 | 29 | 248 | 5.758621 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.197581 | 248 | 11 | 50 | 22.545455 | 0.824121 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd06073161d1a6fc8153bce35244468454bcf1e | 3,173 | py | Python | lab_2/find_lcs_length_optimized_test.py | alenashuvar/2020-2-level-labs | aa5185fae19b386c741faa8dcff3424872642090 | [
"MIT"
] | 3 | 2020-09-05T16:27:19.000Z | 2021-03-12T12:08:00.000Z | lab_2/find_lcs_length_optimized_test.py | alenashuvar/2020-2-level-labs | aa5185fae19b386c741faa8dcff3424872642090 | [
"MIT"
] | 100 | 2020-09-06T16:36:23.000Z | 2020-12-12T06:18:47.000Z | lab_2/find_lcs_length_optimized_test.py | alenashuvar/2020-2-level-labs | aa5185fae19b386c741faa8dcff3424872642090 | [
"MIT"
] | 62 | 2020-09-06T10:49:43.000Z | 2021-09-10T07:07:53.000Z | """
Tests find_lcs_optimized function
"""
import timeit
import unittest
from memory_profiler import memory_usage
from lab_2.main import find_lcs_length_optimized, tokenize_big_file
class FindLcsOptimizedTest(unittest.TestCase):
"""
Checks for find_lcs_optimized function
"""
def test_find_lcs_length_... | 42.306667 | 95 | 0.656792 | 363 | 3,173 | 5.347107 | 0.225895 | 0.064915 | 0.107161 | 0.18135 | 0.683153 | 0.683153 | 0.629057 | 0.588872 | 0.433282 | 0.433282 | 0 | 0.043535 | 0.276079 | 3,173 | 74 | 96 | 42.878378 | 0.80148 | 0.100536 | 0 | 0.347826 | 0 | 0 | 0.183346 | 0.054785 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.065217 | false | 0 | 0.086957 | 0 | 0.173913 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd87ba8ad5a67a4277d8da50db47d17748918d9 | 2,208 | py | Python | pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | null | null | null | pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | 7 | 2020-06-30T23:14:35.000Z | 2021-08-02T17:08:05.000Z | pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | null | null | null | #
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
#
import sys, string, time
import c... | 27.6 | 98 | 0.688859 | 288 | 2,208 | 5.239583 | 0.381944 | 0.032472 | 0.037111 | 0.043075 | 0.163022 | 0.082174 | 0.049039 | 0.049039 | 0.049039 | 0 | 0 | 0.00579 | 0.217844 | 2,208 | 79 | 99 | 27.949367 | 0.867979 | 0.132699 | 0 | 0.192982 | 0 | 0 | 0.215522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017544 | 0.052632 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ddcb5a365134a0fc6fdd220c36768b3059a205b | 363 | py | Python | rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py | xl2623/RotorTM | 4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8 | [
"BSD-3-Clause"
] | 1 | 2022-01-10T13:43:11.000Z | 2022-01-10T13:43:11.000Z | rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py | xl2623/RotorTM | 4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8 | [
"BSD-3-Clause"
] | null | null | null | rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py | xl2623/RotorTM | 4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8 | [
"BSD-3-Clause"
] | 3 | 2022-01-21T03:04:38.000Z | 2022-01-25T15:05:31.000Z | #! /usr/bin/env python
from math import factorial
import numpy as np
# test passed
def generate_poly(max_exponent,max_diff,symbol):
f=np.zeros((max_diff+1, max_exponent+1), dtype=float)
for k in range(max_diff+1):
for i in range(max_exponent+1):
if (i - k) >= 0:
f[k,i] = factorial(i)*symbol**(i-k)/facto... | 24.2 | 55 | 0.663912 | 69 | 363 | 3.391304 | 0.492754 | 0.141026 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.179063 | 363 | 15 | 56 | 24.2 | 0.765101 | 0.090909 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de5367a1f3c604d3f330ae4e673bd72ff6587fa | 7,651 | py | Python | preprocessing/emotic/load_data_from_numpy.py | GKalliatakis/DisplaceNet | 439bcd5ed4133b040baa107c215170eb963aa343 | [
"MIT"
] | 7 | 2019-05-13T01:49:43.000Z | 2020-02-19T04:16:35.000Z | preprocessing/emotic/load_data_from_numpy.py | GKalliatakis/DisplaceNet | 439bcd5ed4133b040baa107c215170eb963aa343 | [
"MIT"
] | null | null | null | preprocessing/emotic/load_data_from_numpy.py | GKalliatakis/DisplaceNet | 439bcd5ed4133b040baa107c215170eb963aa343 | [
"MIT"
] | 4 | 2019-05-28T16:06:31.000Z | 2020-02-27T09:29:16.000Z | """Python utilities required to load data (image & their annotations) stored in numpy arrays.
Functions `load_numpy_arrays_single_output` & `load_numpy_arrays_emotions_age_only` are deprecated.
Use either the main function `load_data_from_numpy` to load all the applicable arrays
or the supporting `load_anno... | 46.369697 | 180 | 0.656385 | 1,038 | 7,651 | 4.378613 | 0.05973 | 0.075248 | 0.10033 | 0.118812 | 0.445325 | 0.40484 | 0.40484 | 0.384378 | 0.384378 | 0.267547 | 0 | 0.000612 | 0.14534 | 7,651 | 164 | 181 | 46.652439 | 0.694449 | 0.044177 | 0 | 0.163265 | 0 | 0 | 0.361466 | 0.230685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.020408 | 0 | 0.061224 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
1df523cdc41ccb402483976f0573983b6122d8e9 | 4,412 | py | Python | tests/test_vims_pixel.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 4 | 2019-09-16T15:50:22.000Z | 2021-04-08T15:32:48.000Z | tests/test_vims_pixel.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 3 | 2018-05-04T09:28:24.000Z | 2018-12-03T09:00:31.000Z | tests/test_vims_pixel.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T15:14:17.000Z | 2020-10-12T15:14:17.000Z | """Test VIMS image module."""
from numpy.testing import assert_array_almost_equal as assert_array
from pytest import approx, fixture, raises
from pyvims import VIMS
from pyvims.errors import VIMSError
@fixture
def img_id():
"""Testing image ID."""
return '1731456416_1'
@fixture
def cube(img_id):
"""T... | 26.739394 | 75 | 0.635086 | 678 | 4,412 | 4.023599 | 0.225664 | 0.120968 | 0.104472 | 0.043988 | 0.273094 | 0.072214 | 0.019062 | 0 | 0 | 0 | 0 | 0.106358 | 0.215775 | 4,412 | 164 | 76 | 26.902439 | 0.680925 | 0.084542 | 0 | 0.147059 | 0 | 0 | 0.037149 | 0 | 0 | 0 | 0 | 0 | 0.578431 | 1 | 0.088235 | false | 0 | 0.039216 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1df8beec4fea3bcefebf61482d69a744dbb216ea | 302 | py | Python | apistar/exceptions.py | sylwekb/apistar | 890006884dbb9644824511e0275fa00515204c5b | [
"BSD-3-Clause"
] | null | null | null | apistar/exceptions.py | sylwekb/apistar | 890006884dbb9644824511e0275fa00515204c5b | [
"BSD-3-Clause"
] | null | null | null | apistar/exceptions.py | sylwekb/apistar | 890006884dbb9644824511e0275fa00515204c5b | [
"BSD-3-Clause"
] | null | null | null | class SchemaError(Exception):
def __init__(self, schema, code):
self.schema = schema
self.code = code
msg = schema.errors[code].format(**schema.__dict__)
super().__init__(msg)
class NoCurrentApp(Exception):
pass
class ConfigurationError(Exception):
pass
| 20.133333 | 59 | 0.65894 | 32 | 302 | 5.84375 | 0.5 | 0.106952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231788 | 302 | 14 | 60 | 21.571429 | 0.806034 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1dfaf8dad72aefecc4b8134cc8efce48a3d16816 | 288 | py | Python | pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py | dysdsyd/VO_benchmark | a7602edab934419c1ec73618ee655e18026f834f | [
"Apache-2.0"
] | 2 | 2021-09-11T09:13:31.000Z | 2021-11-03T01:39:56.000Z | pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py | dysdsyd/VO_benchmark | a7602edab934419c1ec73618ee655e18026f834f | [
"Apache-2.0"
] | null | null | null | pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py | dysdsyd/VO_benchmark | a7602edab934419c1ec73618ee655e18026f834f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='torch-dimcheck',
version='0.0.1',
description='Dimensionality annotations for tensor parameters and return values',
packages=['torch_dimcheck'],
author='Michał Tyszkiewicz',
author_email='michal.tyszkiewicz@gmail.com',
)
| 26.181818 | 85 | 0.725694 | 33 | 288 | 6.272727 | 0.818182 | 0.125604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.15625 | 288 | 10 | 86 | 28.8 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0.503472 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dfd962e97e4b42a0882e32bbba5a65998278c73 | 263 | py | Python | task_management/urls.py | AbdelrahmanRabiee/ayenapp | 43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25 | [
"MIT"
] | null | null | null | task_management/urls.py | AbdelrahmanRabiee/ayenapp | 43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25 | [
"MIT"
] | 5 | 2020-06-06T01:47:05.000Z | 2022-02-10T14:05:22.000Z | task_management/urls.py | AbdelrahmanRabiee/ayenapp | 43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25 | [
"MIT"
] | null | null | null | from django.urls import path
from rest_framework import routers
from task_management import viewsets
app_name = "task_management"
urlpatterns = [
]
task_router = routers.SimpleRouter()
task_router.register(r'tasks', viewsets.TasksViewSet, base_name='tasks') | 18.785714 | 72 | 0.802281 | 34 | 263 | 6 | 0.617647 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114068 | 263 | 14 | 72 | 18.785714 | 0.875536 | 0 | 0 | 0 | 0 | 0 | 0.094697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
38005601c897e3e947cdabb62140e650a9ec4e7f | 1,473 | py | Python | audtool/__init__.py | Guaxinim5573/audacious-player | 7bcd2afdd91bb18a41fb70500aaf76eaa17da837 | [
"MIT"
] | null | null | null | audtool/__init__.py | Guaxinim5573/audacious-player | 7bcd2afdd91bb18a41fb70500aaf76eaa17da837 | [
"MIT"
] | 1 | 2021-11-29T16:25:22.000Z | 2021-11-29T16:25:22.000Z | audtool/__init__.py | Guaxinim5573/audacious-player | 7bcd2afdd91bb18a41fb70500aaf76eaa17da837 | [
"MIT"
] | null | null | null | import subprocess
import logging
logger = logging.getLogger(__name__)
# Run a command line command and returns stdout
def _run(command):
result = subprocess.run(command, check=True, stdout=subprocess.PIPE, text=True)
result.stdout = result.stdout[:-1]
return result.stdout
def is_playing():
result = subprocess.ru... | 26.781818 | 91 | 0.697895 | 201 | 1,473 | 5.019901 | 0.378109 | 0.109019 | 0.089197 | 0.047572 | 0.105055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002358 | 0.136456 | 1,473 | 55 | 92 | 26.781818 | 0.790881 | 0.129667 | 0 | 0.05 | 0 | 0 | 0.201411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3800ef2480e2344c284a3ea135e2ec8a35e84cfa | 3,377 | py | Python | GiftUi.py | DrPleaseRespect/GiftBox | d39b3b644aa579297315ee3b3cb38c79556682f9 | [
"MIT"
] | null | null | null | GiftUi.py | DrPleaseRespect/GiftBox | d39b3b644aa579297315ee3b3cb38c79556682f9 | [
"MIT"
] | null | null | null | GiftUi.py | DrPleaseRespect/GiftBox | d39b3b644aa579297315ee3b3cb38c79556682f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'GiftUi.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
###################... | 37.522222 | 95 | 0.665976 | 336 | 3,377 | 6.64881 | 0.342262 | 0.08863 | 0.026858 | 0.040286 | 0.102954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030094 | 0.183299 | 3,377 | 89 | 96 | 37.94382 | 0.779913 | 0.066035 | 0 | 0 | 1 | 0 | 0.044646 | 0.007721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.067797 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3801139345c9a4ae91e8d3ae8ff7f84beeaa380a | 251 | py | Python | telegram_coin_bot/__init__.py | sigmaister/telegram-coin-bot | b14329de8fc86cb135f05d7207f64a00f349cabf | [
"MIT"
] | 17 | 2020-07-17T18:55:27.000Z | 2021-11-20T03:54:01.000Z | telegram_coin_bot/__init__.py | sigmaister/telegram-coin-bot | b14329de8fc86cb135f05d7207f64a00f349cabf | [
"MIT"
] | 5 | 2020-07-17T19:23:06.000Z | 2020-08-11T12:45:14.000Z | telegram_coin_bot/__init__.py | sigmaister/telegram-coin-bot | b14329de8fc86cb135f05d7207f64a00f349cabf | [
"MIT"
] | 10 | 2020-07-17T19:01:40.000Z | 2021-12-18T13:21:55.000Z | __author__ = "Wild Print"
__maintainer__ = __author__
__email__ = "telegram_coin_bot@rambler.ru"
__license__ = "MIT"
__version__ = "0.0.1"
__all__ = (
"__author__",
"__email__",
"__license__",
"__maintainer__",
"__version__",
)
| 15.6875 | 42 | 0.669323 | 23 | 251 | 5.130435 | 0.695652 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0.191235 | 251 | 15 | 43 | 16.733333 | 0.566502 | 0 | 0 | 0 | 0 | 0 | 0.40239 | 0.111554 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38028042957e1e98ecf41fea1079a9cdbc4aaca9 | 3,200 | py | Python | tests/backend/message.py | IronMeerkat/genesis | 4a053ae4639a12295be9951905ca69383c1da860 | [
"MIT"
] | null | null | null | tests/backend/message.py | IronMeerkat/genesis | 4a053ae4639a12295be9951905ca69383c1da860 | [
"MIT"
] | null | null | null | tests/backend/message.py | IronMeerkat/genesis | 4a053ae4639a12295be9951905ca69383c1da860 | [
"MIT"
] | null | null | null | import test_agent
print('Logging in')
Meerkat = test_agent.TestAgent(username='meerkat', password='12345678', endpoint='/messages/')
Pangolin = test_agent.TestAgent(username='pangolin', password='12345678', endpoint='/messages/')
Badger = test_agent.TestAgent(username='badger', password='12345678', endpoint='/messages... | 50 | 115 | 0.763438 | 445 | 3,200 | 5.355056 | 0.202247 | 0.044062 | 0.055812 | 0.038607 | 0.345363 | 0.266051 | 0.219052 | 0.187998 | 0.145195 | 0.145195 | 0 | 0.015647 | 0.10125 | 3,200 | 64 | 116 | 50 | 0.812935 | 0 | 0 | 0.163636 | 0 | 0 | 0.413933 | 0.010622 | 0 | 0 | 0 | 0 | 0.309091 | 1 | 0 | false | 0.127273 | 0.018182 | 0 | 0.018182 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3808406b3ee798849fbc2399203409d6b196a582 | 1,503 | py | Python | server/tree_gen/tree_gen.py | patrickferner/Lo-Finity | 406531106277c2ad3422518e8beb39b1c3fa53f3 | [
"MIT"
] | 1 | 2021-06-14T14:41:36.000Z | 2021-06-14T14:41:36.000Z | server/tree_gen/tree_gen.py | Jorbeatz/Lo-Finity | 406531106277c2ad3422518e8beb39b1c3fa53f3 | [
"MIT"
] | null | null | null | server/tree_gen/tree_gen.py | Jorbeatz/Lo-Finity | 406531106277c2ad3422518e8beb39b1c3fa53f3 | [
"MIT"
] | 1 | 2019-07-22T21:45:10.000Z | 2019-07-22T21:45:10.000Z | import requests
import json
import pdb
import time
#url_string = "https://api.hooktheory.com/v1/trends/nodes?cp=1"
response = requests.get("https://api.hooktheory.com/v1/trends/nodes?cp=1", headers={'Authorization': "Bearer 0449bff346d2609ac119bfb7d290e9bb"})
hook_result = json.loads(response.text)
json_result = {}
ch... | 28.903846 | 144 | 0.667332 | 202 | 1,503 | 4.806931 | 0.311881 | 0.064882 | 0.055613 | 0.064882 | 0.3862 | 0.297631 | 0.297631 | 0.297631 | 0.297631 | 0.183316 | 0 | 0.045603 | 0.182967 | 1,503 | 52 | 145 | 28.903846 | 0.745114 | 0.05988 | 0 | 0.054054 | 0 | 0 | 0.209072 | 0.045358 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
380d0996fe02d82d90603eefc1f9b3eea03168d3 | 666 | py | Python | examples/hover_example.py | kail85/mpldatacursor | 2df44a3912c2684b2d66fadc7cacbb9f60a15186 | [
"MIT"
] | 165 | 2015-01-09T03:48:50.000Z | 2022-03-16T03:25:23.000Z | examples/hover_example.py | kail85/mpldatacursor | 2df44a3912c2684b2d66fadc7cacbb9f60a15186 | [
"MIT"
] | 87 | 2015-02-09T11:17:49.000Z | 2022-01-04T02:48:00.000Z | examples/hover_example.py | kail85/mpldatacursor | 2df44a3912c2684b2d66fadc7cacbb9f60a15186 | [
"MIT"
] | 46 | 2015-01-13T00:59:18.000Z | 2022-03-03T12:46:40.000Z | """
Demonstrates the hover functionality of mpldatacursor as well as point labels
and a custom formatting function. Notice that overlapping points have both
labels displayed.
"""
import string
import matplotlib.pyplot as plt
import numpy as np
from mpldatacursor import datacursor
np.random.seed(1977)
x, y = np.random.... | 27.75 | 77 | 0.771772 | 100 | 666 | 5.1 | 0.62 | 0.043137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017271 | 0.130631 | 666 | 23 | 78 | 28.956522 | 0.863558 | 0.363363 | 0 | 0 | 0 | 0 | 0.074519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
38188123fc74067b2382c0edf77f410238662bfd | 1,040 | py | Python | bf_smb_tmux.py | BadNameException/SambaBF | 7421ac1d821807ffc565b7b5b466c85084343fb9 | [
"MIT"
] | null | null | null | bf_smb_tmux.py | BadNameException/SambaBF | 7421ac1d821807ffc565b7b5b466c85084343fb9 | [
"MIT"
] | null | null | null | bf_smb_tmux.py | BadNameException/SambaBF | 7421ac1d821807ffc565b7b5b466c85084343fb9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
from subprocess import Popen, PIPE, check_output
p = 1
USERNAME = "sigurdkb"
IP = "172.16.0.30"
PORT = "445"
new_results = []
correct_pw = ""
cracked = bool(False)
counter = 0
guess_result = ((),)
pw = ''
def connect_smb():
global correct_pw
global cracked
global guess_result... | 17.931034 | 54 | 0.626923 | 152 | 1,040 | 4.171053 | 0.532895 | 0.070978 | 0.050473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.207692 | 1,040 | 57 | 55 | 18.245614 | 0.75 | 0.031731 | 0 | 0.045455 | 0 | 0 | 0.138308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.022727 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
381c5c0ab457121c1be3d4dc192a40949d85e8c1 | 1,378 | py | Python | isdbeads/__init__.py | michaelhabeck/bayesian-random-tomography | 9429a3688df368f0fe8fd7beaa8202386951164a | [
"MIT"
] | 2 | 2021-04-17T14:05:05.000Z | 2022-02-24T16:03:29.000Z | isdbeads/__init__.py | michaelhabeck/bayesian-random-tomography | 9429a3688df368f0fe8fd7beaa8202386951164a | [
"MIT"
] | null | null | null | isdbeads/__init__.py | michaelhabeck/bayesian-random-tomography | 9429a3688df368f0fe8fd7beaa8202386951164a | [
"MIT"
] | null | null | null | from .universe import (
Universe,
Particle
)
from .probability import (
Probability
)
from .likelihood import (
Likelihood,
Normal,
Exponential,
LowerUpper,
Logistic,
GaussianMixture,
Relu
)
from .model import (
ModelDistances,
ModelImage,
ModelVolume,
Radius... | 12.759259 | 26 | 0.656749 | 113 | 1,378 | 7.964602 | 0.619469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277939 | 1,378 | 107 | 27 | 12.878505 | 0.904523 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3820fe50d4dce95d717e614296b340c0f9ebd66c | 1,294 | py | Python | gui/Color.py | brianjimenez/emol | b789b85b40a99247f008fb7cafa0d019d142cd3c | [
"MIT"
] | null | null | null | gui/Color.py | brianjimenez/emol | b789b85b40a99247f008fb7cafa0d019d142cd3c | [
"MIT"
] | null | null | null | gui/Color.py | brianjimenez/emol | b789b85b40a99247f008fb7cafa0d019d142cd3c | [
"MIT"
] | null | null | null | '''
Created on Oct 10, 2012
@author: Brian Jimenez-Garcia
@contact: brian.jimenez@bsc.es
'''
class Color:
def __init__(self, red=0., green=0., blue=0., alpha=1.0):
self.__red = red
self.__green = green
self.__blue = blue
self.__alpha = alpha
def get_rgba(self):
... | 26.408163 | 66 | 0.578053 | 264 | 1,294 | 2.708333 | 0.231061 | 0.083916 | 0.071329 | 0.05035 | 0.090909 | 0.054545 | 0.01958 | 0 | 0 | 0 | 0 | 0.187123 | 0.231839 | 1,294 | 49 | 67 | 26.408163 | 0.532193 | 0.085781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0.147059 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
382269a9358bb58a18f501c0bd286c171e8ac7d7 | 775 | py | Python | Spell Compendium/scr/Spell1148 - Nimbus of Light.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-04-26T08:03:56.000Z | 2021-04-26T08:03:56.000Z | Spell Compendium/scr/Spell1148 - Nimbus of Light.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 2 | 2021-06-11T05:55:01.000Z | 2021-08-03T23:41:02.000Z | Spell Compendium/scr/Spell1148 - Nimbus of Light.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-05-17T15:37:58.000Z | 2021-05-17T15:37:58.000Z | from toee import *
def OnBeginSpellCast(spell):
print "Nimbus of Light OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
def OnSpellEffect(spell):
print "Nimbus of Light OnSpellEffect"
spell.duration = 10 * s... | 31 | 151 | 0.740645 | 101 | 775 | 5.564356 | 0.39604 | 0.071174 | 0.115658 | 0.128114 | 0.163701 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01072 | 0.157419 | 775 | 24 | 152 | 32.291667 | 0.849923 | 0.067097 | 0 | 0 | 0 | 0 | 0.267684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38229cdc49513c553f97ed67ce3eaa6b0ba92dcb | 17,258 | py | Python | pyBAScloudAPI/examples/main.py | bascloud/BASCloudAPI | 6a06d430720e99204f84f5362b4f22d7d4a72b76 | [
"MIT"
] | 3 | 2021-04-30T07:44:11.000Z | 2021-05-03T06:35:01.000Z | pyBAScloudAPI/examples/main.py | bascloud/BASCloudAPI | 6a06d430720e99204f84f5362b4f22d7d4a72b76 | [
"MIT"
] | 9 | 2021-06-23T04:21:51.000Z | 2022-01-17T04:15:06.000Z | pyBAScloudAPI/examples/main.py | bascloud/BAScloudAPI | 6a06d430720e99204f84f5362b4f22d7d4a72b76 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import pyBAScloudAPI as api
def printErrorHandler(exception, json):
print("\t\tException occured in request: ", exception, json)
print("Testing util functions.")
print("\t2021-04-26T10:56:58.000Z = ", api.Util.parseDateTimeString(dateTime="2021-04-26T10:56:58.000Z"))
... | 30.224168 | 178 | 0.735195 | 2,142 | 17,258 | 5.82493 | 0.114846 | 0.047608 | 0.038952 | 0.059469 | 0.626513 | 0.473511 | 0.382303 | 0.301835 | 0.259918 | 0.107558 | 0 | 0.012055 | 0.10117 | 17,258 | 571 | 179 | 30.224168 | 0.79229 | 0.103952 | 0 | 0.207612 | 0 | 0.00346 | 0.337029 | 0.01394 | 0 | 0 | 0 | 0 | 0.00346 | 1 | 0.00346 | false | 0.00346 | 0.00692 | 0 | 0.010381 | 0.740484 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
382e05c1aec0a1e0fafc3e75a778a936b61e0df4 | 51,977 | py | Python | mm_power_sdk_python/models/private_trial.py | MolecularMatch/mm-power-sdk-python | 1fcbcc25c47d7b435e03929cb185eb7f10fb415d | [
"Apache-2.0"
] | null | null | null | mm_power_sdk_python/models/private_trial.py | MolecularMatch/mm-power-sdk-python | 1fcbcc25c47d7b435e03929cb185eb7f10fb415d | [
"Apache-2.0"
] | null | null | null | mm_power_sdk_python/models/private_trial.py | MolecularMatch/mm-power-sdk-python | 1fcbcc25c47d7b435e03929cb185eb7f10fb415d | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
MolecularMatch MMPower
MMPower API # noqa: E501
OpenAPI spec version: 1.0.0
Contact: support@molecularmatch.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class PrivateTrial(object):
"""NOTE: T... | 35.920525 | 993 | 0.649595 | 6,187 | 51,977 | 5.290124 | 0.065621 | 0.058662 | 0.105591 | 0.096792 | 0.679377 | 0.572563 | 0.532478 | 0.444913 | 0.355545 | 0.277146 | 0 | 0.021011 | 0.273871 | 51,977 | 1,446 | 994 | 35.945367 | 0.846193 | 0.45751 | 0 | 0.090461 | 1 | 0 | 0.136703 | 0.008254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167763 | false | 0 | 0.004934 | 0 | 0.266447 | 0.003289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
382f2f78668adbeb3d9c2f747861ad2dbe227500 | 78,600 | py | Python | lib/rucio/daemons/conveyor/utils.py | brianv0/rucio | 127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0 | [
"Apache-2.0"
] | null | null | null | lib/rucio/daemons/conveyor/utils.py | brianv0/rucio | 127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0 | [
"Apache-2.0"
] | null | null | null | lib/rucio/daemons/conveyor/utils.py | brianv0/rucio | 127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0 | [
"Apache-2.0"
] | null | null | null | # Copyright European Organization for Nuclear Research (CERN)
#
# 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
#
# Authors:
# - Vincent Garonne, <vin... | 54.926625 | 223 | 0.537494 | 8,395 | 78,600 | 4.787135 | 0.060393 | 0.024759 | 0.01814 | 0.009306 | 0.64574 | 0.595576 | 0.540485 | 0.50214 | 0.481835 | 0.445183 | 0 | 0.006353 | 0.37117 | 78,600 | 1,430 | 224 | 54.965035 | 0.806741 | 0.065585 | 0 | 0.507042 | 0 | 0.004401 | 0.138667 | 0.018589 | 0 | 0 | 0 | 0.000699 | 0 | 0 | null | null | 0.00088 | 0.016725 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3830df09c72d6bc67a2ca0f6763f909dda7df0af | 574 | py | Python | list_images.py | mrowacz/digital_api_scripts | bc8758862a6fccc982c9e5ae05e6590e88dc9059 | [
"MIT"
] | null | null | null | list_images.py | mrowacz/digital_api_scripts | bc8758862a6fccc982c9e5ae05e6590e88dc9059 | [
"MIT"
] | null | null | null | list_images.py | mrowacz/digital_api_scripts | bc8758862a6fccc982c9e5ae05e6590e88dc9059 | [
"MIT"
] | null | null | null | import os
import json
import requests
url = "https://api.digitalocean.com/v2/images?per_page=999"
headers = {"Authorization" : "Bearer " + os.environ['DIGITALOCEAN_ACCESS_TOKEN']}
r = requests.get(url, headers=headers)
distros = {}
for entry in r.json()["images"]:
s = "(" + str(entry["id"]) + ") " + entry["name"... | 26.090909 | 81 | 0.634146 | 74 | 574 | 4.851351 | 0.527027 | 0.142061 | 0.133705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008639 | 0.19338 | 574 | 21 | 82 | 27.333333 | 0.766739 | 0 | 0 | 0 | 0 | 0 | 0.261324 | 0.043554 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3837ed605953a3a84f61221e934440108abfdf2f | 2,790 | py | Python | docs/source/conf.py | ducouloa/ml4ir | 75aeecaff11682a7bd71c5521e59c449c43c3f9f | [
"Apache-2.0"
] | 70 | 2020-02-05T00:42:29.000Z | 2022-03-07T09:33:01.000Z | docs/source/conf.py | ducouloa/ml4ir | 75aeecaff11682a7bd71c5521e59c449c43c3f9f | [
"Apache-2.0"
] | 102 | 2020-01-31T21:12:55.000Z | 2022-03-28T17:04:43.000Z | docs/source/conf.py | ducouloa/ml4ir | 75aeecaff11682a7bd71c5521e59c449c43c3f9f | [
"Apache-2.0"
] | 23 | 2020-02-05T00:43:07.000Z | 2022-02-13T13:33:51.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 32.44186 | 79 | 0.684946 | 367 | 2,790 | 5.13624 | 0.476839 | 0.02122 | 0.020159 | 0.029708 | 0.084881 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006783 | 0.15448 | 2,790 | 85 | 80 | 32.823529 | 0.792285 | 0.653405 | 0 | 0 | 0 | 0 | 0.312567 | 0.029001 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
383c4dbc8788963ff0f2227ca34717a2ddb9d2f7 | 334 | py | Python | backend/api/room/urls.py | jeraldlyh/HoloRPG | e835eb1f7a6b18c87007ecf8168d959b4e176a23 | [
"MIT"
] | null | null | null | backend/api/room/urls.py | jeraldlyh/HoloRPG | e835eb1f7a6b18c87007ecf8168d959b4e176a23 | [
"MIT"
] | null | null | null | backend/api/room/urls.py | jeraldlyh/HoloRPG | e835eb1f7a6b18c87007ecf8168d959b4e176a23 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import DungeonViewSet, RoomViewSet
router = DefaultRouter()
router.register(r"dungeon", DungeonViewSet, basename="dungeon")
router.register(r"room", RoomViewSet, basename="room")
urlpatterns = [
path("", include(ro... | 27.833333 | 63 | 0.775449 | 38 | 334 | 6.789474 | 0.526316 | 0.085271 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10479 | 334 | 12 | 64 | 27.833333 | 0.862876 | 0 | 0 | 0 | 0 | 0 | 0.065672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
384212c693fe183ca43529aa8c41250ed2908324 | 656 | py | Python | hardhat/recipes/tkdiff.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/tkdiff.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/tkdiff.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | from .base import GnuRecipe
class TkDiffRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(TkDiffRecipe, self).__init__(*args, **kwargs)
self.sha256 = '734bb417184c10072eb64e8d27424533' \
'8e41b7fdeff661b5ef30e89f3e3aa357'
self.name = 'tkdiff'
self.... | 29.818182 | 79 | 0.592988 | 65 | 656 | 5.830769 | 0.615385 | 0.05277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097917 | 0.268293 | 656 | 21 | 80 | 31.238095 | 0.691667 | 0 | 0 | 0.125 | 0 | 0 | 0.272866 | 0.144817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3847bfe54774d87addfadb9073d4d4d898715bfd | 1,552 | py | Python | steps/app/migrations/0006_auto_20180330_1816.py | VishalCR7/steps | 521e9317b0973795e9f2b98df9d41908ae95e042 | [
"Apache-2.0"
] | null | null | null | steps/app/migrations/0006_auto_20180330_1816.py | VishalCR7/steps | 521e9317b0973795e9f2b98df9d41908ae95e042 | [
"Apache-2.0"
] | null | null | null | steps/app/migrations/0006_auto_20180330_1816.py | VishalCR7/steps | 521e9317b0973795e9f2b98df9d41908ae95e042 | [
"Apache-2.0"
] | 3 | 2018-10-06T11:40:53.000Z | 2018-10-07T18:49:06.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-30 12:46
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0005_auto_20180330_1813'),
]
operations = [
... | 36.952381 | 147 | 0.646907 | 156 | 1,552 | 6.237179 | 0.371795 | 0.080164 | 0.128469 | 0.149024 | 0.570401 | 0.546763 | 0.464543 | 0.36999 | 0.304214 | 0.133607 | 0 | 0.026981 | 0.235825 | 1,552 | 41 | 148 | 37.853659 | 0.793423 | 0.042526 | 0 | 0.470588 | 1 | 0 | 0.186784 | 0.015509 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
697365290d19012dbb2289c34b92ed5cceafd229 | 2,854 | py | Python | users.py | mavi0/onos-reroute-api | e3a155ce860a944563297c076e6ef4d8ac5a563e | [
"MIT"
] | null | null | null | users.py | mavi0/onos-reroute-api | e3a155ce860a944563297c076e6ef4d8ac5a563e | [
"MIT"
] | null | null | null | users.py | mavi0/onos-reroute-api | e3a155ce860a944563297c076e6ef4d8ac5a563e | [
"MIT"
] | null | null | null | import json, base64
import logging, coloredlogs
import hashlib, copy
from flask_table import Table, Col
logger = logging.getLogger(__name__)
coloredlogs.install(level='INFO')
class Users:
def __init__(self):
self.__users = self.__load_users("json/users.json")
self.__generate_hash_keys()
de... | 29.122449 | 99 | 0.575333 | 354 | 2,854 | 4.409605 | 0.231638 | 0.067265 | 0.05189 | 0.066624 | 0.297886 | 0.261371 | 0.261371 | 0.244715 | 0.244715 | 0.244715 | 0 | 0.003024 | 0.304835 | 2,854 | 97 | 100 | 29.42268 | 0.78377 | 0.084443 | 0 | 0.202899 | 0 | 0 | 0.100998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.043478 | 0.057971 | 0 | 0.536232 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
697cb4df0fee5fb2e4b8167c3cfa2dce9ba8fde7 | 3,564 | py | Python | tests/test_puls_util.py | xiaohan2012/capitalization-restoration-train | 24f9236a553ac91f4e291625e5616d8558f80d3e | [
"MIT"
] | 1 | 2020-03-07T01:25:21.000Z | 2020-03-07T01:25:21.000Z | tests/test_puls_util.py | xiaohan2012/capitalization-restoration-train | 24f9236a553ac91f4e291625e5616d8558f80d3e | [
"MIT"
] | null | null | null | tests/test_puls_util.py | xiaohan2012/capitalization-restoration-train | 24f9236a553ac91f4e291625e5616d8558f80d3e | [
"MIT"
] | null | null | null | import json
import os
import codecs
from capitalization_train.puls_util import (separate_title_from_body,
extract_and_capitalize_headlines_from_corpus,
get_input_example,
get_doc_ids_from_... | 40.044944 | 355 | 0.62486 | 404 | 3,564 | 5.207921 | 0.294554 | 0.073194 | 0.039924 | 0.052281 | 0.312262 | 0.228612 | 0.142586 | 0.075095 | 0.075095 | 0.075095 | 0 | 0.069835 | 0.232604 | 3,564 | 88 | 356 | 40.5 | 0.699452 | 0 | 0 | 0.028571 | 0 | 0 | 0.236532 | 0.127104 | 0 | 0 | 0 | 0 | 0.2 | 0 | null | null | 0 | 0.071429 | null | null | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6982d7079fdcf3a58b79ac8ac6683d28485634e2 | 1,147 | py | Python | server/src/utils/mailer.py | ocskier/TutorDashboard | 4dedfee7676418660cca0043ee71db720f915cca | [
"Apache-2.0"
] | 1 | 2020-10-28T21:36:13.000Z | 2020-10-28T21:36:13.000Z | server/src/utils/mailer.py | ocskier/TutorDashboard | 4dedfee7676418660cca0043ee71db720f915cca | [
"Apache-2.0"
] | 36 | 2020-10-14T15:12:21.000Z | 2021-07-15T21:33:39.000Z | server/src/utils/mailer.py | ocskier/TutorDashboard | 4dedfee7676418660cca0043ee71db720f915cca | [
"Apache-2.0"
] | 1 | 2020-10-22T07:50:59.000Z | 2020-10-22T07:50:59.000Z | import smtplib, ssl, os
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from .html_template import emailHtml
from .text_template import emailText
port = 465
context = ssl.create_default_context()
def sendEmail(emailData):
adminUser = os.getenv("ADMIN_USERNAME")
password =... | 29.410256 | 79 | 0.691369 | 128 | 1,147 | 6.132813 | 0.484375 | 0.02293 | 0.033121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007592 | 0.196164 | 1,147 | 39 | 80 | 29.410256 | 0.843818 | 0 | 0 | 0 | 0 | 0 | 0.155923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.166667 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6988900c33f8027bb264778efef7f83d1aa37d8a | 200 | py | Python | clancy_database/__init__.py | arthurian/visualizing_russian_tools | 65fd37839dc0650bb25d1f98904da5b79ae1a754 | [
"BSD-3-Clause"
] | 2 | 2020-07-10T14:17:03.000Z | 2020-11-17T09:18:26.000Z | clancy_database/__init__.py | eelegiap/visualizing_russian_tools | 9c36baebc384133c7c27d7a7c4e0cedc8cb84e74 | [
"BSD-3-Clause"
] | 13 | 2019-03-17T13:27:31.000Z | 2022-01-18T17:03:14.000Z | clancy_database/__init__.py | eelegiap/visualizing_russian_tools | 9c36baebc384133c7c27d7a7c4e0cedc8cb84e74 | [
"BSD-3-Clause"
] | 2 | 2019-10-19T16:37:44.000Z | 2020-06-22T13:30:20.000Z | # List of tables that should be routed to this app.
# Note that this is not intended to be a complete list of the available tables.
TABLE_NAMES = (
'lemma',
'inflection',
'aspect_pair',
)
| 25 | 79 | 0.69 | 31 | 200 | 4.387097 | 0.774194 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23 | 200 | 7 | 80 | 28.571429 | 0.883117 | 0.635 | 0 | 0 | 0 | 0 | 0.371429 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
699310c68f6ee0233724f50d1b8ed775e875d6af | 714 | py | Python | reflex/src/reflex/reflex_polling.py | EnricoSartori/reflex_ros_pkg | 960373a48a0d9095025763400a00c1b30fe4ede5 | [
"Apache-2.0"
] | null | null | null | reflex/src/reflex/reflex_polling.py | EnricoSartori/reflex_ros_pkg | 960373a48a0d9095025763400a00c1b30fe4ede5 | [
"Apache-2.0"
] | null | null | null | reflex/src/reflex/reflex_polling.py | EnricoSartori/reflex_ros_pkg | 960373a48a0d9095025763400a00c1b30fe4ede5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import rospy
from reflex_msgs.msg import HandCommand
from time import sleep
from reflex_base_services import *
class ReFlex_Polling(ReFlex):
def __init__(self):
super(ReFlex_Polling, self).__init__()
def callback(data):
# data is a HandCommand variable... | 25.5 | 67 | 0.658263 | 87 | 714 | 5.08046 | 0.517241 | 0.088235 | 0.095023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.243697 | 714 | 27 | 68 | 26.444444 | 0.807407 | 0.177871 | 0 | 0 | 0 | 0 | 0.070326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6998bcb96c84eee08055afeb394e0c10dfe55e4a | 248 | py | Python | test-crates/hello-world/check_installed/check_installed.py | pattonw/pyo3-pack | 675d92819faf56e972d1553ea8199425cb7f7e94 | [
"Apache-2.0",
"MIT"
] | null | null | null | test-crates/hello-world/check_installed/check_installed.py | pattonw/pyo3-pack | 675d92819faf56e972d1553ea8199425cb7f7e94 | [
"Apache-2.0",
"MIT"
] | null | null | null | test-crates/hello-world/check_installed/check_installed.py | pattonw/pyo3-pack | 675d92819faf56e972d1553ea8199425cb7f7e94 | [
"Apache-2.0",
"MIT"
] | null | null | null | from subprocess import check_output
def main():
output = check_output(["hello-world"]).decode("utf-8").strip()
if not output == "Hello, world!":
raise Exception(output)
print("SUCCESS")
if __name__ == '__main__':
main()
| 19.076923 | 66 | 0.633065 | 30 | 248 | 4.9 | 0.666667 | 0.14966 | 0.217687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.205645 | 248 | 12 | 67 | 20.666667 | 0.741117 | 0 | 0 | 0 | 0 | 0 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
699dbfba09e4b2780e57672a2d8ecc9e67db0fe3 | 702 | py | Python | resilient-circuits/resilient_circuits/__init__.py | COLDTURNIP/resilient-python-api | 14423f1dec32af67f7203c8d4d36d0a9e2651802 | [
"MIT"
] | 28 | 2017-12-22T00:26:59.000Z | 2022-01-22T14:51:33.000Z | resilient-circuits/resilient_circuits/__init__.py | COLDTURNIP/resilient-python-api | 14423f1dec32af67f7203c8d4d36d0a9e2651802 | [
"MIT"
] | 18 | 2018-03-06T19:04:20.000Z | 2022-03-21T15:06:30.000Z | resilient-circuits/resilient_circuits/__init__.py | COLDTURNIP/resilient-python-api | 14423f1dec32af67f7203c8d4d36d0a9e2651802 | [
"MIT"
] | 28 | 2018-05-01T17:53:22.000Z | 2022-03-28T09:56:59.000Z | # (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved.
import pkg_resources
try:
__version__ = pkg_resources.get_distribution(__name__).version
except pkg_resources.DistributionNotFound:
__version__ = None
from .actions_component import ResilientComponent
from .action_message import ActionMessageBase, Act... | 43.875 | 124 | 0.837607 | 72 | 702 | 7.791667 | 0.652778 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01278 | 0.108262 | 702 | 15 | 125 | 46.8 | 0.883387 | 0.079772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69a258f2db5f02076d0ecb02bb0169664304388a | 1,732 | py | Python | Day 23/ViralAdvertising.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | Day 23/ViralAdvertising.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | Day 23/ViralAdvertising.py | sandeep-krishna/100DaysOfCode | af4594fb6933e4281d298fa921311ccc07295a7c | [
"MIT"
] | null | null | null | '''
HackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly people on social media.
On the first day, half of those people (i.e., ) like the advertisement and each shares it with of their friends. At the beginning of the second day, people re... | 28.866667 | 261 | 0.714781 | 280 | 1,732 | 4.389286 | 0.467857 | 0.065094 | 0.029292 | 0.034174 | 0.039056 | 0.039056 | 0.039056 | 0.039056 | 0 | 0 | 0 | 0.023952 | 0.228637 | 1,732 | 59 | 262 | 29.355932 | 0.895958 | 0.789261 | 0 | 0 | 0 | 0 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69aa6a9832bfa5efcd1c75e435948454112b6d04 | 4,480 | py | Python | azure-iot-device/azure/iot/device/provisioning/security/sk_security_client.py | olivakar/azure-iot-sdk-python | d8f2403030cf94510d381d8d5ac37af6e8d306f8 | [
"MIT"
] | 35 | 2018-12-01T05:42:30.000Z | 2021-03-10T12:23:41.000Z | azure-iot-device/azure/iot/device/provisioning/security/sk_security_client.py | olivakar/azure-iot-sdk-python | d8f2403030cf94510d381d8d5ac37af6e8d306f8 | [
"MIT"
] | 81 | 2018-11-20T20:01:43.000Z | 2019-09-06T23:57:17.000Z | azure-iot-device/azure/iot/device/provisioning/security/sk_security_client.py | olivakar/azure-iot-sdk-python | d8f2403030cf94510d381d8d5ac37af6e8d306f8 | [
"MIT"
] | 18 | 2019-03-19T18:53:43.000Z | 2021-01-10T09:47:24.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""This mo... | 50.909091 | 125 | 0.697321 | 563 | 4,480 | 5.42984 | 0.300178 | 0.093229 | 0.106313 | 0.091593 | 0.39156 | 0.388943 | 0.376186 | 0.376186 | 0.340203 | 0.340203 | 0 | 0.003456 | 0.225 | 4,480 | 87 | 126 | 51.494253 | 0.877016 | 0.665402 | 0 | 0.103448 | 0 | 0 | 0.022632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69ab300f18ef0da610d86dd3cc10be0de5d8ac1c | 10,093 | py | Python | mestopy/mestopy.py | pyfar-seminar/mestopy | 5eed12b12bb58965fa70be591d774f149fcbf6e8 | [
"MIT"
] | null | null | null | mestopy/mestopy.py | pyfar-seminar/mestopy | 5eed12b12bb58965fa70be591d774f149fcbf6e8 | [
"MIT"
] | null | null | null | mestopy/mestopy.py | pyfar-seminar/mestopy | 5eed12b12bb58965fa70be591d774f149fcbf6e8 | [
"MIT"
] | null | null | null | from scipy.signal import oaconvolve
from pyfar import Signal
# Class to generate ref-Objects, that can bei part of the MeasurementChain
class Device(object):
"""Class for device in MeasurementChain.
This class holds methods and properties of a device in the
'MeasurementChain' class. A device can be e.g.,... | 34.803448 | 83 | 0.574458 | 1,221 | 10,093 | 4.683866 | 0.164619 | 0.053156 | 0.036545 | 0.01154 | 0.273649 | 0.216996 | 0.205456 | 0.141633 | 0.088477 | 0.07239 | 0 | 0.001215 | 0.347766 | 10,093 | 289 | 84 | 34.923875 | 0.867538 | 0.377192 | 0 | 0.304636 | 1 | 0 | 0.132646 | 0.008179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139073 | false | 0 | 0.013245 | 0 | 0.251656 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69ab8661fbcc312d7db1662206a4daeec8008df9 | 482 | py | Python | setup.py | Chichilele/algorithms | acc7470631b3ced2a8e126011af1e6ff1ff62394 | [
"MIT"
] | null | null | null | setup.py | Chichilele/algorithms | acc7470631b3ced2a8e126011af1e6ff1ff62394 | [
"MIT"
] | null | null | null | setup.py | Chichilele/algorithms | acc7470631b3ced2a8e126011af1e6ff1ff62394 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="algorithms",
version="0.1",
description="Implements a few optimisation algorithms",
long_description=long_description,
long_description_content_type="text/markdown",
ur... | 28.352941 | 83 | 0.728216 | 58 | 482 | 5.844828 | 0.706897 | 0.176991 | 0.112094 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.139004 | 482 | 16 | 84 | 30.125 | 0.812048 | 0 | 0 | 0 | 0 | 0 | 0.354772 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69ac26e95480ef9ba55d71661068918c6ae8a979 | 2,445 | py | Python | pandas_loc_iloc.py | tseth92/pandas_experiments | ab26e0c6004546bea1ebdbe8807a6d4014189e64 | [
"MIT"
] | null | null | null | pandas_loc_iloc.py | tseth92/pandas_experiments | ab26e0c6004546bea1ebdbe8807a6d4014189e64 | [
"MIT"
] | null | null | null | pandas_loc_iloc.py | tseth92/pandas_experiments | ab26e0c6004546bea1ebdbe8807a6d4014189e64 | [
"MIT"
] | null | null | null | '''
This code compares the loc and iloc in pandas dataframe
'''
__author__ = "Tushar SEth"
__email__ = "tusharseth93@gmail.com"
import pandas as pd
import timeit
df_test = pd.DataFrame()
tlist = []
tlist2 = []
################ this code creates a dataframe df_test ##################
###############with two column... | 33.958333 | 73 | 0.521472 | 307 | 2,445 | 4.065147 | 0.37785 | 0.057692 | 0.052885 | 0.017628 | 0.145833 | 0.116987 | 0.116987 | 0.059295 | 0.059295 | 0 | 0 | 0.027506 | 0.122699 | 2,445 | 71 | 74 | 34.43662 | 0.554312 | 0.235992 | 0 | 0.090909 | 0 | 0 | 0.363203 | 0.045758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 0.484848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
69ae65d2b4f7488006dab65f0a909611be5333f5 | 2,061 | py | Python | felapps/apps/dataworkshop/dataworkshop.py | archman/felapps | 89532a592070d2a0cf07f0f2b4c723cbf1c1bd33 | [
"MIT"
] | 2 | 2018-04-01T14:37:39.000Z | 2021-03-12T04:16:12.000Z | felapps/apps/dataworkshop/dataworkshop.py | Archman/felapps | 89532a592070d2a0cf07f0f2b4c723cbf1c1bd33 | [
"MIT"
] | null | null | null | felapps/apps/dataworkshop/dataworkshop.py | Archman/felapps | 89532a592070d2a0cf07f0f2b4c723cbf1c1bd33 | [
"MIT"
] | 2 | 2016-07-10T11:14:33.000Z | 2019-07-06T05:42:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
DataWorkshop: application to handle data, e.g. generated from imageviewer
Author: Tong Zhang
Created: Sep. 23rd, 2015
"""
from ...utils import datautils
from ...utils import miscutils
from ...utils import funutils
from ...utils import resutils
import wx
import wx.lib... | 34.35 | 212 | 0.675885 | 241 | 2,061 | 5.622407 | 0.410788 | 0.026568 | 0.04428 | 0.070849 | 0.525461 | 0.525461 | 0.525461 | 0.495203 | 0.427306 | 0.427306 | 0 | 0.011522 | 0.199903 | 2,061 | 59 | 213 | 34.932203 | 0.810188 | 0.252305 | 0 | 0.25 | 1 | 0 | 0.121774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.21875 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69b2168377003bbbd37472a46ea76cd577d96277 | 1,082 | py | Python | setup.py | ysatapathy23/TomoEncoders | 6f3f8c6dd088e4df968337e33a034a42d1f6c799 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ysatapathy23/TomoEncoders | 6f3f8c6dd088e4df968337e33a034a42d1f6c799 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ysatapathy23/TomoEncoders | 6f3f8c6dd088e4df968337e33a034a42d1f6c799 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: atekawade
"""
from setuptools import setup, find_packages
setup(
# Needed to silence warnings (and to be a worthwhile package)
name='tomo_encoders',
url='https://github.com/aniketkt/TomoEncoders',
author='Aniket Tekawade',
author_email='a... | 38.642857 | 250 | 0.682994 | 121 | 1,082 | 5.966942 | 0.727273 | 0.166205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004435 | 0.166359 | 1,082 | 27 | 251 | 40.074074 | 0.796009 | 0.212569 | 0 | 0 | 0 | 0 | 0.554361 | 0.179211 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69b54d1f2fc387e83bb92bd862115b2d1c6f2876 | 7,728 | py | Python | ROS/src/spiderplan_proxy/src/spiderplan_proxy.py | uwe-koeckemann/SpiderPlan | ae8666967ee9e4d3563c43934823f65e72f1d9ce | [
"MIT"
] | null | null | null | ROS/src/spiderplan_proxy/src/spiderplan_proxy.py | uwe-koeckemann/SpiderPlan | ae8666967ee9e4d3563c43934823f65e72f1d9ce | [
"MIT"
] | null | null | null | ROS/src/spiderplan_proxy/src/spiderplan_proxy.py | uwe-koeckemann/SpiderPlan | ae8666967ee9e4d3563c43934823f65e72f1d9ce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Copyright (c) 2015 Uwe Köckemann <uwe.kockemann@oru.se>
#Permission is hereby granted, free of charge, to any person obtaining
#a copy of this software and associated documentation files (the
#"Software"), to deal in the Software without restriction, including
#without l... | 29.38403 | 118 | 0.749482 | 1,021 | 7,728 | 5.513222 | 0.260529 | 0.02878 | 0.054361 | 0.031977 | 0.245337 | 0.20803 | 0.167525 | 0.13537 | 0.077101 | 0.063599 | 0 | 0.010435 | 0.131988 | 7,728 | 262 | 119 | 29.496183 | 0.828712 | 0.200699 | 0 | 0.170455 | 0 | 0 | 0.051382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073864 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69c0ea03d21d79afcf9d113b44197d452321d747 | 16,034 | py | Python | Createmodele_V13_1.1.py | pad-awan/domotiquesante | c91d97065bfcf9816367263266c608cfdc0c8009 | [
"CNRI-Python"
] | null | null | null | Createmodele_V13_1.1.py | pad-awan/domotiquesante | c91d97065bfcf9816367263266c608cfdc0c8009 | [
"CNRI-Python"
] | null | null | null | Createmodele_V13_1.1.py | pad-awan/domotiquesante | c91d97065bfcf9816367263266c608cfdc0c8009 | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 09 22:25:07 2019
@author: arnaudhub
"""
#import pandas as pd
from sqlalchemy import create_engine
from sqlalchemy.sql import text
import configparser,os
from urllib import parse
#import sql.connector
config = configparser.ConfigParser()
config.re... | 43.102151 | 137 | 0.674192 | 2,306 | 16,034 | 4.364267 | 0.095837 | 0.051471 | 0.077504 | 0.083466 | 0.687003 | 0.590421 | 0.50626 | 0.482015 | 0.459161 | 0.419316 | 0 | 0.030988 | 0.205002 | 16,034 | 371 | 138 | 43.218329 | 0.758531 | 0.008607 | 0 | 0.248466 | 0 | 0 | 0.850167 | 0.247306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015337 | 0.018405 | 0 | 0.018405 | 0.064417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69c5c7a7d8c414585a90c6896cbf35b9061ae450 | 6,136 | py | Python | authors/apps/authentication/tests/test_register.py | andela/ah-code-titans | 4f1fc77c2ecdf8ca15c24327d39fe661eac85785 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/authentication/tests/test_register.py | andela/ah-code-titans | 4f1fc77c2ecdf8ca15c24327d39fe661eac85785 | [
"BSD-3-Clause"
] | 20 | 2018-11-26T16:22:46.000Z | 2018-12-21T10:08:25.000Z | authors/apps/authentication/tests/test_register.py | andela/ah-code-titans | 4f1fc77c2ecdf8ca15c24327d39fe661eac85785 | [
"BSD-3-Clause"
] | 3 | 2019-01-24T15:39:42.000Z | 2019-09-25T17:57:08.000Z | from rest_framework import status
from django.urls import reverse
from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_base64_encode
from ..models import User
from ..token import account_activation_token
# local import
from authors.base_test_config import TestConfiguration
class TestRe... | 31.306122 | 107 | 0.602347 | 669 | 6,136 | 5.313901 | 0.168909 | 0.060759 | 0.08045 | 0.073136 | 0.686639 | 0.662166 | 0.625879 | 0.585091 | 0.539522 | 0.531083 | 0 | 0.014443 | 0.289113 | 6,136 | 195 | 108 | 31.466667 | 0.80055 | 0.078716 | 0 | 0.486111 | 0 | 0 | 0.138111 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 1 | 0.097222 | false | 0.138889 | 0.048611 | 0 | 0.159722 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69c769830c272d7a9f4d246a127dbb4b3989b330 | 1,399 | py | Python | tests/unit/test_parameters/test_geometric_parameters.py | manjunathnilugal/PyBaMM | 65d5cba534b4f163670e753714964aaa75d6a2d2 | [
"BSD-3-Clause"
] | 330 | 2019-04-17T11:36:57.000Z | 2022-03-28T16:49:55.000Z | tests/unit/test_parameters/test_geometric_parameters.py | masoodtamaddon/PyBaMM | a31e2095600bb92e913598ac4d02b2b6b77b31c1 | [
"BSD-3-Clause"
] | 1,530 | 2019-03-26T18:13:03.000Z | 2022-03-31T16:12:53.000Z | tests/unit/test_parameters/test_geometric_parameters.py | masoodtamaddon/PyBaMM | a31e2095600bb92e913598ac4d02b2b6b77b31c1 | [
"BSD-3-Clause"
] | 178 | 2019-03-27T13:48:04.000Z | 2022-03-31T09:30:11.000Z | #
# Tests for the standard parameters
#
import pybamm
import unittest
class TestGeometricParameters(unittest.TestCase):
def test_macroscale_parameters(self):
geo = pybamm.geometric_parameters
L_n = geo.L_n
L_s = geo.L_s
L_p = geo.L_p
L_x = geo.L_x
l_n = geo.l_n
... | 28.55102 | 78 | 0.620443 | 197 | 1,399 | 4.020305 | 0.28934 | 0.025253 | 0.167929 | 0.229798 | 0.433081 | 0.433081 | 0.391414 | 0.391414 | 0.391414 | 0.391414 | 0 | 0.01003 | 0.287348 | 1,399 | 48 | 79 | 29.145833 | 0.784353 | 0.023588 | 0 | 0 | 0 | 0 | 0.091777 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.135135 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69c79c1acedc30f9a5022e2647ed20f40fd5e207 | 1,860 | py | Python | src/preprocessing1/convert_ctrees_to_dtrees_rstdt.py | norikinishida/discourse-parsing | 7377a78cc32ad6430d256694e31ed9426e7c6340 | [
"Apache-2.0"
] | 2 | 2022-02-16T20:41:22.000Z | 2022-03-11T18:28:24.000Z | src/preprocessing1/convert_ctrees_to_dtrees_rstdt.py | norikinishida/discourse-parsing | 7377a78cc32ad6430d256694e31ed9426e7c6340 | [
"Apache-2.0"
] | null | null | null | src/preprocessing1/convert_ctrees_to_dtrees_rstdt.py | norikinishida/discourse-parsing | 7377a78cc32ad6430d256694e31ed9426e7c6340 | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import pyprind
import utils
import treetk
import treetk.rstdt
def main(args):
"""
We use n-ary ctrees (ie., *.labeled.nary.ctree) to generate dtrees.
Morey et al. (2018) demonstrate that scores evaluated on these dtrees are superficially lower than those on right-heavy binarize... | 30 | 167 | 0.597849 | 233 | 1,860 | 4.669528 | 0.493562 | 0.030331 | 0.044118 | 0.025735 | 0.040441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00824 | 0.282258 | 1,860 | 61 | 168 | 30.491803 | 0.806742 | 0.166667 | 0 | 0.051282 | 1 | 0 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.051282 | false | 0 | 0.153846 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69d1dab7f54ca1ad815eec0feddd2d80d74004a4 | 912 | py | Python | straitlets/tests/test_test_utils.py | quantopian/serializable-traitlets | f7de75507978e08446a15894a8417997940ea7a6 | [
"Apache-2.0"
] | 13 | 2016-01-27T01:55:18.000Z | 2022-02-10T12:09:46.000Z | straitlets/tests/test_test_utils.py | quantopian/serializable-traitlets | f7de75507978e08446a15894a8417997940ea7a6 | [
"Apache-2.0"
] | 5 | 2016-02-17T13:52:50.000Z | 2018-12-13T21:30:26.000Z | straitlets/tests/test_test_utils.py | quantopian/serializable-traitlets | f7de75507978e08446a15894a8417997940ea7a6 | [
"Apache-2.0"
] | 10 | 2017-07-21T14:27:17.000Z | 2022-03-16T11:19:47.000Z | """
Tests for the test utils.
"""
import pytest
from straitlets import Serializable, Integer
from straitlets.test_utils import assert_serializables_equal
def test_assert_serializables_equal():
class Foo(Serializable):
x = Integer()
y = Integer()
class Bar(Serializable):
x = Integer(... | 25.333333 | 64 | 0.625 | 127 | 912 | 4.346457 | 0.204724 | 0.036232 | 0.081522 | 0.076087 | 0.586957 | 0.485507 | 0.432971 | 0.432971 | 0.432971 | 0.432971 | 0 | 0.028409 | 0.22807 | 912 | 35 | 65 | 26.057143 | 0.755682 | 0.027412 | 0 | 0.304348 | 0 | 0 | 0.003413 | 0 | 0 | 0 | 0 | 0 | 0.478261 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69d2955809d68e17f8be812fa27e25216fd7813e | 4,026 | py | Python | fdm/analysis/tools.py | szajek/FDM | 6270b0eb2bf3ef80f2ed87d0f39cf39ab82ae02b | [
"MIT"
] | 1 | 2017-11-12T09:57:52.000Z | 2017-11-12T09:57:52.000Z | fdm/analysis/tools.py | szajek/FDM | 6270b0eb2bf3ef80f2ed87d0f39cf39ab82ae02b | [
"MIT"
] | null | null | null | fdm/analysis/tools.py | szajek/FDM | 6270b0eb2bf3ef80f2ed87d0f39cf39ab82ae02b | [
"MIT"
] | null | null | null | import numpy
from fdm.geometry import create_close_point_finder
def create_weights_distributor(close_point_finder):
def distribute(point, value):
close_points = close_point_finder(point)
distance_sum = sum(close_points.values())
return dict(
{p: (1. - distance/distance_sum)*va... | 30.5 | 119 | 0.709389 | 530 | 4,026 | 5.00566 | 0.15283 | 0.081417 | 0.047493 | 0.036185 | 0.480211 | 0.356201 | 0.257067 | 0.159065 | 0.159065 | 0.159065 | 0 | 0.00186 | 0.198957 | 4,026 | 132 | 120 | 30.5 | 0.820775 | 0 | 0 | 0.134831 | 0 | 0 | 0.031289 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 1 | 0.202247 | false | 0 | 0.022472 | 0.067416 | 0.404494 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69d3674b80e0407aa5556ee4e06d257e26cbc733 | 1,058 | py | Python | dht22.py | trihatmaja/dht22-raspi | 7bce4b1c35d9eed9e4913caa6f3b9b3aed5c3219 | [
"MIT"
] | null | null | null | dht22.py | trihatmaja/dht22-raspi | 7bce4b1c35d9eed9e4913caa6f3b9b3aed5c3219 | [
"MIT"
] | null | null | null | dht22.py | trihatmaja/dht22-raspi | 7bce4b1c35d9eed9e4913caa6f3b9b3aed5c3219 | [
"MIT"
] | null | null | null | import Adafruit_DHT as dht
import time
from influxdb import InfluxDBClient
def get_serial():
cpu_serial = "0000000000000000"
try:
f = open('/proc/cpuinfo', 'r')
for line in f:
if line[0:6] == 'Serial':
cpu_serial = line[10:26]
f.close()
except:
cp... | 23.511111 | 66 | 0.535917 | 131 | 1,058 | 4.122137 | 0.526718 | 0.074074 | 0.022222 | 0.025926 | 0.048148 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069577 | 0.307183 | 1,058 | 44 | 67 | 24.045455 | 0.667121 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e260f9ca6210cf18c090c8a49bc65255c0f206 | 856 | py | Python | 03-datatypes/examples/07-tuples.py | luxwarp/python-course | d6ec4961ef43bd9d99954cffaea837220638e83f | [
"0BSD"
] | null | null | null | 03-datatypes/examples/07-tuples.py | luxwarp/python-course | d6ec4961ef43bd9d99954cffaea837220638e83f | [
"0BSD"
] | null | null | null | 03-datatypes/examples/07-tuples.py | luxwarp/python-course | d6ec4961ef43bd9d99954cffaea837220638e83f | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
# tuples is a type of list.
# tuples is immutable.
# the structure of a tuple: (1, "nice work", 2.3, [1,2,"hey"])
my_tuple = ("hey", 1, 2, "hey ho!", "hey", "hey")
print("My tuple:", my_tuple)
# to get a tuple value use it's index
print("Second item in my_tuple:", my_tuple[1])
# to count how ... | 35.666667 | 97 | 0.693925 | 157 | 856 | 3.726115 | 0.414013 | 0.119658 | 0.061538 | 0.095727 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015471 | 0.169393 | 856 | 23 | 98 | 37.217391 | 0.807314 | 0.65771 | 0 | 0 | 0 | 0 | 0.448399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
69e2f9e47e947283eba6f71f70baad174d0962cb | 7,048 | py | Python | retraction_synda.py | meteorologist15/synda_retraction | 4a9174d2bc5d3573b5cdd39636380607120d586c | [
"CC0-1.0"
] | null | null | null | retraction_synda.py | meteorologist15/synda_retraction | 4a9174d2bc5d3573b5cdd39636380607120d586c | [
"CC0-1.0"
] | null | null | null | retraction_synda.py | meteorologist15/synda_retraction | 4a9174d2bc5d3573b5cdd39636380607120d586c | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
import subprocess
import requests
import json
import os
import re
import argparse
import logging
import csv
import shutil
retracted_exps = "retracted_exps.csv" #Generic info list from file here.
logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s')
handle_api = "https://... | 36.518135 | 214 | 0.614784 | 876 | 7,048 | 4.76484 | 0.27968 | 0.026354 | 0.020364 | 0.015812 | 0.152372 | 0.146143 | 0.146143 | 0.128414 | 0.128414 | 0.128414 | 0 | 0.008488 | 0.281215 | 7,048 | 192 | 215 | 36.708333 | 0.815436 | 0.135783 | 0 | 0.125 | 0 | 0 | 0.167051 | 0.00395 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e3ad1eebd1e1fccdf1e001090572086c5c45ba | 366 | py | Python | theboss/network_simulation_strategy/network_simulation_strategy.py | Tomev/BoSS | 45db090345650741c85b39b47cbc7b391d6daa33 | [
"Apache-2.0"
] | null | null | null | theboss/network_simulation_strategy/network_simulation_strategy.py | Tomev/BoSS | 45db090345650741c85b39b47cbc7b391d6daa33 | [
"Apache-2.0"
] | 4 | 2020-07-10T00:28:43.000Z | 2020-10-12T11:51:38.000Z | theboss/network_simulation_strategy/network_simulation_strategy.py | Tomev/BoSS | 45db090345650741c85b39b47cbc7b391d6daa33 | [
"Apache-2.0"
] | 1 | 2020-09-12T15:35:09.000Z | 2020-09-12T15:35:09.000Z | __author__ = "Tomasz Rybotycki"
import abc
from numpy import ndarray
class NetworkSimulationStrategy(abc.ABC):
@classmethod
def __subclasshook__(cls, subclass):
return hasattr(subclass, "simulate") and callable(subclass.simulate)
@abc.abstractmethod
def simulate(self, input_state: ndarray) ... | 22.875 | 76 | 0.737705 | 37 | 366 | 7.054054 | 0.702703 | 0.122605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18306 | 366 | 15 | 77 | 24.4 | 0.87291 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
69e3ea4c1c7c901fc078c30d615b40492cfe71fd | 769 | py | Python | ecommerce/core/migrations/0020_auto_20200923_1948.py | berrondo/ecommerce | daa0fa3c336d7e1e9816cc187f858bab7122fb1b | [
"MIT"
] | 1 | 2020-09-04T02:23:02.000Z | 2020-09-04T02:23:02.000Z | ecommerce/core/migrations/0020_auto_20200923_1948.py | berrondo/ecommerce | daa0fa3c336d7e1e9816cc187f858bab7122fb1b | [
"MIT"
] | null | null | null | ecommerce/core/migrations/0020_auto_20200923_1948.py | berrondo/ecommerce | daa0fa3c336d7e1e9816cc187f858bab7122fb1b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-23 19:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0019_auto_20200923_1942'),
]
operations = [
migrations.AlterField(
model_name='orderite... | 30.76 | 151 | 0.642393 | 87 | 769 | 5.54023 | 0.494253 | 0.06639 | 0.087137 | 0.136929 | 0.460581 | 0.460581 | 0.286307 | 0.286307 | 0.286307 | 0.286307 | 0 | 0.052277 | 0.228869 | 769 | 24 | 152 | 32.041667 | 0.76054 | 0.058518 | 0 | 0.333333 | 1 | 0 | 0.148199 | 0.031856 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e536b2f665710fad652d1507cbb967f6b032a2 | 1,989 | py | Python | framework.py | w1rtp/USMAnywhereAPI | d239fde894e085cfe5350800225ebe88297f922f | [
"MIT"
] | 3 | 2019-02-04T18:15:00.000Z | 2021-06-22T21:03:22.000Z | framework.py | w1rtp/USMAnywhereAPI | d239fde894e085cfe5350800225ebe88297f922f | [
"MIT"
] | 1 | 2018-10-04T21:51:50.000Z | 2018-10-06T18:17:00.000Z | framework.py | w1rtp/USMAnywhereAPI | d239fde894e085cfe5350800225ebe88297f922f | [
"MIT"
] | 2 | 2019-12-23T16:03:01.000Z | 2022-03-17T01:13:17.000Z | #!/usr/bin/env python
"""
Nicholas' Example API code for interacting with Alienvault API.
This is just Example code written by NMA.IO.
There isn't really much you can do with the API just yet, so
this will be a work in progress.
Grab your API key here:
https://www.alienvault.com/documentation/usm-anywhere/api/ali... | 31.078125 | 124 | 0.667672 | 278 | 1,989 | 4.715827 | 0.55036 | 0.021358 | 0.021358 | 0.02746 | 0.064073 | 0.064073 | 0.064073 | 0.064073 | 0.064073 | 0.064073 | 0 | 0.01737 | 0.189542 | 1,989 | 63 | 125 | 31.571429 | 0.795906 | 0.388135 | 0 | 0.074074 | 0 | 0 | 0.347566 | 0.020495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.074074 | 0 | 0.222222 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69e81c899520bdfc0aa12c011c27b56eb5e31e55 | 2,477 | py | Python | gen_files.py | qbosen/leetcode_file_generator | 594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8 | [
"MIT"
] | null | null | null | gen_files.py | qbosen/leetcode_file_generator | 594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8 | [
"MIT"
] | null | null | null | gen_files.py | qbosen/leetcode_file_generator | 594d7bb1e5ac5cb3100ddbaecc3f8359c17dbbb8 | [
"MIT"
] | null | null | null | # coding=utf-8
# /usr/bin/python gen_files.py 100
import os
import sys
import time
from settings import *
from settings_advanced import *
try:
import cPickle as pickle
except ImportError:
import pickle
from content_parser import DescriptionParser
from content_parser_advance import AdvancedDescriptionParser
... | 31.75641 | 99 | 0.686314 | 370 | 2,477 | 4.37027 | 0.302703 | 0.038961 | 0.044527 | 0.049474 | 0.145949 | 0.145949 | 0.145949 | 0.145949 | 0.145949 | 0.145949 | 0 | 0.006471 | 0.188938 | 2,477 | 77 | 100 | 32.168831 | 0.798407 | 0.023819 | 0 | 0 | 0 | 0 | 0.057995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.178571 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e933da38595f381a40d626b00d56311127794d | 1,287 | py | Python | interface/exemplos1/05.py | ell3a/estudos-python | 09808a462aa3e73ad433501acb11f62217548af8 | [
"MIT"
] | null | null | null | interface/exemplos1/05.py | ell3a/estudos-python | 09808a462aa3e73ad433501acb11f62217548af8 | [
"MIT"
] | null | null | null | interface/exemplos1/05.py | ell3a/estudos-python | 09808a462aa3e73ad433501acb11f62217548af8 | [
"MIT"
] | null | null | null | from tkinter import *
import tkFileDialog
root = Tk()
menubar = Menu(root)
root.config(menu=menubar)
root.title('Tk Menu')
root.geometry('150x150')
filemenu = Menu(menubar)
filemenu2 = Menu(menubar)
filemenu3 = Menu(menubar)
menubar.add_cascade(label='Arquivo', menu=filemenu)
menubar.add_cascade(label='Cores', menu=... | 33 | 61 | 0.724165 | 163 | 1,287 | 5.650307 | 0.386503 | 0.076004 | 0.114007 | 0.071661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012378 | 0.121212 | 1,287 | 39 | 62 | 33 | 0.801945 | 0 | 0 | 0 | 0 | 0 | 0.139752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.058824 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e9b7f3b724fc8a84cb33e494ceb8bad87452a5 | 349 | py | Python | public/models.py | level09/yooo | deb8fbdd2d2114a9189e35ee5ab6014876f99438 | [
"MIT"
] | 6 | 2015-02-20T17:24:46.000Z | 2020-05-21T18:23:25.000Z | public/models.py | level09/yooo | deb8fbdd2d2114a9189e35ee5ab6014876f99438 | [
"MIT"
] | null | null | null | public/models.py | level09/yooo | deb8fbdd2d2114a9189e35ee5ab6014876f99438 | [
"MIT"
] | null | null | null | from extensions import db
import datetime
import json
class Link(db.Document):
lid = db.SequenceField(unique=True)
longUrl = db.StringField()
shortUrl = db.StringField()
date_submitted = db.DateTimeField(default=datetime.datetime.now)
usage = db.IntField(default=0)
def __unicode__(self):
... | 26.846154 | 68 | 0.710602 | 43 | 349 | 5.651163 | 0.674419 | 0.106996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 0.183381 | 349 | 13 | 69 | 26.846154 | 0.849123 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
69ea5b5cea2f3bde949a1ce25fc96a75ca9f7638 | 6,132 | py | Python | script/python/lib/exhaust_generation/exhaustive_tpls.py | timblechmann/nt2 | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | [
"BSL-1.0"
] | 2 | 2016-09-14T00:23:53.000Z | 2018-01-14T12:51:18.000Z | script/python/lib/exhaust_generation/exhaustive_tpls.py | timblechmann/nt2 | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | [
"BSL-1.0"
] | null | null | null | script/python/lib/exhaust_generation/exhaustive_tpls.py | timblechmann/nt2 | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | [
"BSL-1.0"
] | null | null | null | #! /usr/bin/env python
# -*- coding: iso-8859-15 -*-
##############################################################################
# Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II
# Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI
#
# Distributed under the Boost ... | 46.105263 | 95 | 0.379485 | 581 | 6,132 | 3.836489 | 0.280551 | 0.034545 | 0.05249 | 0.081651 | 0.288022 | 0.143114 | 0.104531 | 0.097353 | 0.097353 | 0.036788 | 0 | 0.036976 | 0.404599 | 6,132 | 132 | 96 | 46.454545 | 0.573542 | 0.061481 | 0 | 0.267241 | 0 | 0.068966 | 0.559221 | 0.172526 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008621 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69ede5a7a5d5e261a9c1ba0ddb8dc8c9e3cbfadd | 1,224 | py | Python | account/forms.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:38.000Z | 2021-06-18T03:03:38.000Z | account/forms.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | null | null | null | account/forms.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth import authenticate, login
from django.utils.timezone import now
class LoginForm(forms.Form):
""" 登录表单 """
username = forms.CharField(label='用户名', max_length=100, required=False, initial='admin')
password = forms.CharField(label='密码', max_length=20... | 30.6 | 101 | 0.591503 | 134 | 1,224 | 5.298507 | 0.462687 | 0.042254 | 0.053521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008187 | 0.301471 | 1,224 | 39 | 102 | 31.384615 | 0.822222 | 0.017974 | 0 | 0 | 0 | 0 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.4 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69ef030a305db0390a90f17929cad93e52de6059 | 2,090 | py | Python | welly/__init__.py | agilescientific/welly | 1ced65d6e7d48642112e72ec8b412687e5a910db | [
"Apache-2.0"
] | 3 | 2022-03-17T08:42:25.000Z | 2022-03-23T08:26:13.000Z | welly/__init__.py | agilescientific/welly | 1ced65d6e7d48642112e72ec8b412687e5a910db | [
"Apache-2.0"
] | 3 | 2022-03-08T13:01:14.000Z | 2022-03-21T09:42:09.000Z | welly/__init__.py | agilescientific/welly | 1ced65d6e7d48642112e72ec8b412687e5a910db | [
"Apache-2.0"
] | 1 | 2022-03-16T03:51:39.000Z | 2022-03-16T03:51:39.000Z | """
==================
welly
==================
"""
from .project import Project
from .well import Well
from .header import Header
from .curve import Curve
from .synthetic import Synthetic
from .location import Location
from .crs import CRS
from . import tools
from . import quality
def read_las(path, **kwargs):
"... | 25.180723 | 79 | 0.596651 | 245 | 2,090 | 4.979592 | 0.416327 | 0.045082 | 0.034426 | 0.037705 | 0.081967 | 0.081967 | 0.081967 | 0.081967 | 0.081967 | 0.081967 | 0 | 0 | 0.292345 | 2,090 | 82 | 80 | 25.487805 | 0.824882 | 0.426794 | 0 | 0.052632 | 0 | 0 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.342105 | 0 | 0.447368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69f45cc29efc997451ff86c0a0f571e78b3958e7 | 125 | py | Python | tridu_py3.py | YuriSerrano/URI-1933 | 58fdc5e90293ef55afacb164b955551a72a81d78 | [
"MIT"
] | null | null | null | tridu_py3.py | YuriSerrano/URI-1933 | 58fdc5e90293ef55afacb164b955551a72a81d78 | [
"MIT"
] | null | null | null | tridu_py3.py | YuriSerrano/URI-1933 | 58fdc5e90293ef55afacb164b955551a72a81d78 | [
"MIT"
] | null | null | null | import sys
'''
Criado por Yuri Serrano
'''
a,b = input().split()
a = int(a)
b = int(b)
if b > a:
print(b)
else:
print(a) | 8.928571 | 23 | 0.568 | 24 | 125 | 2.958333 | 0.583333 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224 | 125 | 14 | 24 | 8.928571 | 0.731959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69f9c87dea73354181eadb4afd02ba8d68d76483 | 1,168 | py | Python | piptui/custom/apNPSApplicationEvents.py | UltraStudioLTD/PipTUI | 62f5707faa004ba6d330288656ba192f37516921 | [
"MIT"
] | 33 | 2019-07-11T13:19:29.000Z | 2022-02-23T12:42:22.000Z | piptui/custom/apNPSApplicationEvents.py | UltraStudioLTD/PipTUI | 62f5707faa004ba6d330288656ba192f37516921 | [
"MIT"
] | 6 | 2019-07-20T21:21:51.000Z | 2021-09-24T16:24:34.000Z | piptui/custom/apNPSApplicationEvents.py | UltraStudioLTD/PipTUI | 62f5707faa004ba6d330288656ba192f37516921 | [
"MIT"
] | 8 | 2019-07-21T07:38:08.000Z | 2021-11-11T13:30:45.000Z | import collections
from npyscreen import StandardApp, apNPSApplicationEvents
class PipTuiEvents(object):
def __init__(self):
self.interal_queue = collections.deque()
super(apNPSApplicationEvents).__init__()
def get(self, maximum=None):
if maximum is None:
maximum = -1
... | 28.487805 | 69 | 0.576199 | 112 | 1,168 | 5.696429 | 0.419643 | 0.068966 | 0.070533 | 0.053292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003958 | 0.351027 | 1,168 | 40 | 70 | 29.2 | 0.837731 | 0 | 0 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0.090909 | 0.060606 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0e0038faf589bc3f8391d7469e67376d79fd62bf | 1,656 | py | Python | scripts/conteo_go.py | Carlosriosch/BrucellaMelitensis | 4f16755fbb3e3ba33010d1e0d9fa68803b377075 | [
"MIT"
] | null | null | null | scripts/conteo_go.py | Carlosriosch/BrucellaMelitensis | 4f16755fbb3e3ba33010d1e0d9fa68803b377075 | [
"MIT"
] | null | null | null | scripts/conteo_go.py | Carlosriosch/BrucellaMelitensis | 4f16755fbb3e3ba33010d1e0d9fa68803b377075 | [
"MIT"
] | null | null | null | from __future__ import division
from collections import Counter
import numpy as np
import glob
path_input = "../GO_analysis_PPI_Brucella/2.GO_crudos_y_ancestors/"
path_output = "../GO_analysis_PPI_Brucella/3.GO_proporciones/"
files = glob.glob(path_input + "*CON_GEN_ID_ancestors*.txt")
for f in files:
# est... | 31.245283 | 159 | 0.667271 | 244 | 1,656 | 4.438525 | 0.491803 | 0.014774 | 0.024007 | 0.038781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007868 | 0.232488 | 1,656 | 52 | 160 | 31.846154 | 0.844217 | 0.341787 | 0 | 0 | 0 | 0 | 0.166667 | 0.134259 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e0641eb1c77685ac180e16ede2719bf186f1b48 | 616 | py | Python | acq4/util/PySideImporter.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 1 | 2020-06-04T17:04:53.000Z | 2020-06-04T17:04:53.000Z | acq4/util/PySideImporter.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 24 | 2016-09-27T17:25:24.000Z | 2017-03-02T21:00:11.000Z | acq4/util/PySideImporter.py | sensapex/acq4 | 9561ba73caff42c609bd02270527858433862ad8 | [
"MIT"
] | 4 | 2016-10-19T06:39:36.000Z | 2019-09-30T21:06:45.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function
"""This module installs an import hook which overrides PyQt4 imports to pull from
PySide instead. Used for transitioning between the two libraries."""
import imp
class PyQtImporter:
def find_module(self, name, path):
if name == 'PyQt4' and pa... | 29.333333 | 82 | 0.655844 | 79 | 616 | 4.987342 | 0.582278 | 0.050761 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008677 | 0.251623 | 616 | 21 | 83 | 29.333333 | 0.845987 | 0.034091 | 0 | 0 | 0 | 0 | 0.058691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0.076923 | 0.846154 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0e09835187c4782a7d307df7391d9bcf5ed91648 | 14,774 | py | Python | PythonChessEnviroment.py | teleansh/PythonChessEnviorment | cd19a9148a0da8e69c0efcf21dd559ab2084e07a | [
"MIT"
] | null | null | null | PythonChessEnviroment.py | teleansh/PythonChessEnviorment | cd19a9148a0da8e69c0efcf21dd559ab2084e07a | [
"MIT"
] | 1 | 2022-03-08T16:16:26.000Z | 2022-03-08T16:16:26.000Z | PythonChessEnviroment.py | teleansh/PythonChessEnviorment | cd19a9148a0da8e69c0efcf21dd559ab2084e07a | [
"MIT"
] | null | null | null | b = "r n b q k b n r p p p p p p p p".split(" ") + ['.']*32 + "p p p p p p p p r n b q k b n r".upper().split(" ")
def newBoard():
b = "r n b q k b n r p p p p p p p p".split(" ") + ['.']*32 + "p p p p p p p p r n b q k b n r".upper().split(" ")
def display(): #white side view
c , k= 1 ... | 26.66787 | 173 | 0.425274 | 2,052 | 14,774 | 3.061891 | 0.066277 | 0.037243 | 0.061117 | 0.012733 | 0.742321 | 0.686774 | 0.672609 | 0.663855 | 0.635206 | 0.635206 | 0 | 0.048368 | 0.41925 | 14,774 | 553 | 174 | 26.716094 | 0.683916 | 0.020306 | 0 | 0.662844 | 0 | 0 | 0.018337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0 | 0.004587 | 0.080275 | 0.011468 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e0d7b53e41d2bf0a7a2e0799a229887f7c07708 | 5,408 | py | Python | txosc/async.py | oubiwann/txosc | 6560a0dc9ef564d785170d4529967599455e4f3e | [
"MIT"
] | 1 | 2018-02-11T07:34:29.000Z | 2018-02-11T07:34:29.000Z | txosc/async.py | oubiwann/txosc | 6560a0dc9ef564d785170d4529967599455e4f3e | [
"MIT"
] | 1 | 2019-01-14T22:42:45.000Z | 2019-01-14T22:42:45.000Z | txosc/async.py | oubiwann/txosc | 6560a0dc9ef564d785170d4529967599455e4f3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- test-case-name: txosc.test.test_async -*-
# Copyright (c) 2009 Alexandre Quessy, Arjan Scherpenisse
# See LICENSE for details.
"""
Asynchronous OSC sender and receiver using Twisted
"""
import struct
import socket
from twisted.internet import defer, protocol
from twisted.application.intern... | 28.765957 | 143 | 0.645895 | 616 | 5,408 | 5.579545 | 0.301948 | 0.038406 | 0.027931 | 0.022112 | 0.137911 | 0.036078 | 0.036078 | 0.019203 | 0.019203 | 0 | 0 | 0.008953 | 0.256472 | 5,408 | 187 | 144 | 28.919786 | 0.84581 | 0.044379 | 0 | 0.169014 | 0 | 0 | 0.028958 | 0 | 0 | 0 | 0 | 0.005348 | 0 | 0 | null | null | 0 | 0.084507 | null | null | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e0f6259ba624db7fa0c2c5d4fdc06aa5c711408 | 2,740 | py | Python | main.py | theIsaacLim/hakdPizza | 0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5 | [
"MIT"
] | null | null | null | main.py | theIsaacLim/hakdPizza | 0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5 | [
"MIT"
] | null | null | null | main.py | theIsaacLim/hakdPizza | 0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5 | [
"MIT"
] | null | null | null | from selenium import webdriver
from time import sleep # Sleep will pause the program
import os # for getting the local path
from json import loads
dirpath = os.getcwd() # gets local path
driver = webdriver.Chrome(dirpath + "/chromedriver")
def login(username, password):
global driver
# LOGIN
driver.fi... | 42.153846 | 147 | 0.729562 | 389 | 2,740 | 5.033419 | 0.421594 | 0.050562 | 0.059755 | 0.058223 | 0.122574 | 0.110317 | 0.064351 | 0.035751 | 0 | 0 | 0 | 0.013089 | 0.163504 | 2,740 | 64 | 148 | 42.8125 | 0.841187 | 0.309854 | 0 | 0.05 | 0 | 0.05 | 0.232994 | 0.011784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0.1 | 0.1 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0e0fc6085ae3cea9518a28dc404a0b76c2ffa235 | 127,770 | py | Python | pandatools/Client.py | Jon-Burr/panda-client | ff7ee8fc8481537cf604d983340eda102f041a20 | [
"Apache-2.0"
] | null | null | null | pandatools/Client.py | Jon-Burr/panda-client | ff7ee8fc8481537cf604d983340eda102f041a20 | [
"Apache-2.0"
] | null | null | null | pandatools/Client.py | Jon-Burr/panda-client | ff7ee8fc8481537cf604d983340eda102f041a20 | [
"Apache-2.0"
] | null | null | null | '''
client methods
'''
import os
if os.environ.has_key('PANDA_DEBUG'):
print "DEBUG : importing %s" % __name__
import re
import sys
import time
import stat
import types
try:
import json
except:
import simplejson as json
import random
import urllib
import struct
import commands
import cPickle as pickle
i... | 34.757889 | 149 | 0.555796 | 12,948 | 127,770 | 5.439527 | 0.108743 | 0.017492 | 0.017208 | 0.017308 | 0.402507 | 0.363207 | 0.339382 | 0.318397 | 0.298434 | 0.272011 | 0 | 0.01331 | 0.341982 | 127,770 | 3,675 | 150 | 34.767347 | 0.824407 | 0.103084 | 0 | 0.500369 | 0 | 0.002214 | 0.121755 | 0.011996 | 0 | 0 | 0 | 0.000544 | 0 | 0 | null | null | 0.007011 | 0.008487 | null | null | 0.042435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e1612123e14f431ace50f65fe276956a0f82853 | 815 | py | Python | tests/test_use_profile.py | popadi/git-profile | ca20173f63f57c21868c4c49c1e5c515d4bc87fd | [
"MIT"
] | 3 | 2019-08-24T19:24:49.000Z | 2019-08-30T09:44:46.000Z | tests/test_use_profile.py | sturmianseq/git-profiles | ca20173f63f57c21868c4c49c1e5c515d4bc87fd | [
"MIT"
] | 9 | 2019-09-01T13:25:25.000Z | 2019-09-05T19:52:25.000Z | tests/test_use_profile.py | popadi/git-profile | ca20173f63f57c21868c4c49c1e5c515d4bc87fd | [
"MIT"
] | 2 | 2020-09-14T16:22:26.000Z | 2021-08-15T08:24:09.000Z | import os
import sys
import pytest
from random import randrange
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + "/../")
import src.utils.messages as msg
from src.executor import executor, parser
from src.git_manager.git_manager import GitManager
@pytest.fixture(autouse=True)
def prep... | 25.46875 | 64 | 0.710429 | 108 | 815 | 5.175926 | 0.546296 | 0.059034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012103 | 0.188957 | 815 | 31 | 65 | 26.290323 | 0.833585 | 0.026994 | 0 | 0 | 0 | 0 | 0.022756 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
385257dce453f9dc6b74ab4ff222f4ac8563e40e | 1,997 | py | Python | server/editors/views.py | nickdotreid/opioid-mat-decision-aid | bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1 | [
"MIT"
] | null | null | null | server/editors/views.py | nickdotreid/opioid-mat-decision-aid | bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1 | [
"MIT"
] | 27 | 2018-09-30T07:59:21.000Z | 2020-11-05T19:25:41.000Z | server/editors/views.py | nickdotreid/opioid-mat-decision-aid | bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1 | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate
from django.shortcuts import render
from rest_framework import serializers
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.authtoken.models import Token
from rest_framework.response import Response
from .models import Editor
fr... | 31.203125 | 63 | 0.589885 | 188 | 1,997 | 6.143617 | 0.340426 | 0.034632 | 0.073593 | 0.049351 | 0.101299 | 0.074459 | 0.074459 | 0.074459 | 0 | 0 | 0 | 0.009146 | 0.343015 | 1,997 | 63 | 64 | 31.698413 | 0.871189 | 0 | 0 | 0.172414 | 0 | 0 | 0.040561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.068966 | 0.155172 | 0 | 0.327586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
385fbc5a17a50e64c4dcfcdc7d4027af3cdc018a | 1,688 | py | Python | Modules/Projects/models/project.py | Carlosma7/Odoo | c234fcc18d15d4d8369e237286bee610fd76ceee | [
"CC0-1.0"
] | null | null | null | Modules/Projects/models/project.py | Carlosma7/Odoo | c234fcc18d15d4d8369e237286bee610fd76ceee | [
"CC0-1.0"
] | null | null | null | Modules/Projects/models/project.py | Carlosma7/Odoo | c234fcc18d15d4d8369e237286bee610fd76ceee | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError
# Class for project management and their relationships
class Projects(models.Model):
# Name of table
_name = "projects.project"
# Simple fields of the object
name = fields.Char(string="Project titl... | 41.170732 | 129 | 0.742299 | 234 | 1,688 | 5.277778 | 0.380342 | 0.048583 | 0.051822 | 0.032389 | 0.02753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002147 | 0.172393 | 1,688 | 41 | 130 | 41.170732 | 0.88189 | 0.331161 | 0 | 0 | 0 | 0 | 0.212093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
385fcab1d94b44c44b147f9d7caf4a23de41ae7a | 402 | py | Python | models/food.py | ByK95/food_order | c3a40f00128cc381894b80b61ca6b919bbf49c4e | [
"MIT"
] | 1 | 2022-01-20T10:30:05.000Z | 2022-01-20T10:30:05.000Z | models/food.py | ByK95/food_order | c3a40f00128cc381894b80b61ca6b919bbf49c4e | [
"MIT"
] | null | null | null | models/food.py | ByK95/food_order | c3a40f00128cc381894b80b61ca6b919bbf49c4e | [
"MIT"
] | null | null | null | from app.shared.models import db
from app.models.mixins import ModelMixin
class Food(ModelMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(255), nullable=False)
category_id = db.Column(db.Integer, db.ForeignKey("category.id"), nullable=False)
restourant_id = db... | 33.5 | 85 | 0.716418 | 57 | 402 | 5 | 0.438596 | 0.112281 | 0.140351 | 0.126316 | 0.284211 | 0.217544 | 0.217544 | 0 | 0 | 0 | 0 | 0.008798 | 0.151741 | 402 | 11 | 86 | 36.545455 | 0.826979 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
386175f2b9107f26e003609e3390ad4e1d9fa916 | 1,574 | py | Python | setup.py | sjkingo/ticketus | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | [
"BSD-2-Clause"
] | 3 | 2019-02-09T10:52:55.000Z | 2021-09-19T14:14:36.000Z | setup.py | sjkingo/ticketus | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | [
"BSD-2-Clause"
] | null | null | null | setup.py | sjkingo/ticketus | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | [
"BSD-2-Clause"
] | 3 | 2018-03-04T18:05:02.000Z | 2021-09-19T14:14:38.000Z | from setuptools import find_packages, setup
from ticketus import __version__ as version
setup(
name='ticketus',
version=version,
license='BSD',
author='Sam Kingston',
author_email='sam@sjkwi.com.au',
description='Ticketus is a simple, no-frills ticketing system for helpdesks.',
url='https:... | 32.791667 | 82 | 0.625159 | 152 | 1,574 | 6.328947 | 0.611842 | 0.066528 | 0.077963 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009306 | 0.249047 | 1,574 | 47 | 83 | 33.489362 | 0.804569 | 0 | 0 | 0.066667 | 0 | 0 | 0.564168 | 0.086404 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.088889 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3869ffe900c403550a635fd5893cce20c49720b4 | 298 | py | Python | infra/controllers/errors/NotFoundError.py | JVGC/MyFinancesPython | 5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826 | [
"MIT"
] | null | null | null | infra/controllers/errors/NotFoundError.py | JVGC/MyFinancesPython | 5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826 | [
"MIT"
] | null | null | null | infra/controllers/errors/NotFoundError.py | JVGC/MyFinancesPython | 5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826 | [
"MIT"
] | null | null | null | from infra.controllers.contracts import HttpResponse
class NotFoundError(HttpResponse):
def __init__(self, message) -> None:
status_code = 404
self.message = message
body = {
'message': self.message
}
super().__init__(body, status_code)
| 19.866667 | 52 | 0.620805 | 29 | 298 | 6.034483 | 0.62069 | 0.188571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.288591 | 298 | 14 | 53 | 21.285714 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.02349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3872e9a2f5c1058e44e25d6f8294aa9843e070f9 | 341 | py | Python | Items/Armors/Chest.py | saisua/RAF-Game | 79b2b618aa18c31a40c080865b58fac02c1cac68 | [
"MIT"
] | null | null | null | Items/Armors/Chest.py | saisua/RAF-Game | 79b2b618aa18c31a40c080865b58fac02c1cac68 | [
"MIT"
] | null | null | null | Items/Armors/Chest.py | saisua/RAF-Game | 79b2b618aa18c31a40c080865b58fac02c1cac68 | [
"MIT"
] | null | null | null | from .Armor import Armor
class Chest(Armor):
LIFE_PER_LEVEL = 100
PROTECTION_PER_LEVEL = 5
DAMAGE_PART = 1.2
def __init__(self, owner, level:int=None, life:int=None, protection:int=None):
self.name = "Chest armor"
super().__init__(owner, owner.level if level is None else level, life, ... | 26.230769 | 90 | 0.668622 | 49 | 341 | 4.387755 | 0.530612 | 0.097674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.231672 | 341 | 13 | 91 | 26.230769 | 0.79771 | 0 | 0 | 0 | 0 | 0 | 0.032164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3877c817f150e95b91b3d8ee611f5c78f11d6109 | 4,121 | py | Python | executiontime_calculator.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | 3 | 2015-02-26T06:39:40.000Z | 2017-07-04T14:56:18.000Z | executiontime_calculator.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | null | null | null | executiontime_calculator.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | 1 | 2018-02-21T00:12:06.000Z | 2018-02-21T00:12:06.000Z | from datetime import datetime
from datetime import timedelta
from job import WEEKDAYS
from job import Job
def calculateNextExecution(job, now=datetime.now()):
executionTime = now.replace()
if job.executionType == "weekly":
diff = WEEKDAYS.index(job.executionDay) - now.weekday()
if diff < 0 an... | 33.504065 | 100 | 0.580199 | 408 | 4,121 | 5.830882 | 0.176471 | 0.087432 | 0.043716 | 0.035309 | 0.562842 | 0.562842 | 0.525851 | 0.525851 | 0.525851 | 0.525851 | 0 | 0.029588 | 0.31109 | 4,121 | 122 | 101 | 33.778689 | 0.808383 | 0.045377 | 0 | 0.481928 | 0 | 0 | 0.088963 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 0 | null | null | 0 | 0.048193 | null | null | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.