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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9f1ce770ee9aa055dfdd1c8e9c9f686570cba84 | 264 | py | Python | lesson-03/homework/solution-03.py | Evgesha3425/lessons2 | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | 1 | 2021-11-14T13:06:45.000Z | 2021-11-14T13:06:45.000Z | lesson-03/homework/solution-03.py | Evgesha3425/lessons | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | null | null | null | lesson-03/homework/solution-03.py | Evgesha3425/lessons | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | null | null | null | """
Создать список состоящий из отдельных единичных символов,
преобразовать список в строку, инвертировать строку и вывести на печать.
"""
my_spisok_list = ['m', 'y', '_', 's', 'p', 'i', 's', 'o', 'k']
my_spisok_str = "".join(my_spisok_list)
print(my_spisok_str)
| 29.333333 | 72 | 0.693182 | 39 | 264 | 4.461538 | 0.717949 | 0.183908 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132576 | 264 | 8 | 73 | 33 | 0.759825 | 0.492424 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9f72e3ead4cb9ad6f2819e5ba95523c69a522eb | 5,140 | py | Python | experimentum/WebGUI/views/experiments.py | PascalKleindienst/experimentum | 5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b | [
"Apache-2.0"
] | null | null | null | experimentum/WebGUI/views/experiments.py | PascalKleindienst/experimentum | 5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b | [
"Apache-2.0"
] | 3 | 2019-04-17T08:07:12.000Z | 2019-04-28T15:24:18.000Z | experimentum/WebGUI/views/experiments.py | PascalKleindienst/experimentum | 5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Contains all views/routes for the experiments.
It should call ``experiments:run`` to run an experiment,
show the ouput log and performance table, and show the
generated plots and charts if available.
Available Routes for:
* Running Experiments
* Showing Plots and Charts of experimen... | 33.815789 | 99 | 0.655447 | 606 | 5,140 | 5.473597 | 0.311881 | 0.018993 | 0.012059 | 0.013265 | 0.092855 | 0.053663 | 0.033765 | 0.018089 | 0 | 0 | 0 | 0.00327 | 0.226654 | 5,140 | 151 | 100 | 34.039735 | 0.831195 | 0.385214 | 0 | 0.029851 | 1 | 0 | 0.151067 | 0.02266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.119403 | 0 | 0.223881 | 0.059701 | 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 |
e9f95c955ca05c0089758a247fcb98767b52ad21 | 958 | py | Python | tasks/conda.py | RubenPants/EDBSCAN | fbbe44914a0615afffb43d66eeb527e9564eaf31 | [
"MIT"
] | null | null | null | tasks/conda.py | RubenPants/EDBSCAN | fbbe44914a0615afffb43d66eeb527e9564eaf31 | [
"MIT"
] | null | null | null | tasks/conda.py | RubenPants/EDBSCAN | fbbe44914a0615afffb43d66eeb527e9564eaf31 | [
"MIT"
] | null | null | null | """Conda tasks."""
import logging
from invoke import task
logger = logging.getLogger(__name__)
@task
def create(c):
"""Recreate the conda environment."""
logger.info("Recreating conda environment edbscan-env...")
c.run("conda-merge environment.run.yml environment.dev.yml > environment.yml", pty=True)
... | 31.933333 | 92 | 0.692067 | 130 | 958 | 5.069231 | 0.284615 | 0.048558 | 0.103187 | 0.127466 | 0.770865 | 0.682853 | 0.682853 | 0.682853 | 0.682853 | 0.682853 | 0 | 0 | 0.152401 | 958 | 29 | 93 | 33.034483 | 0.811576 | 0.077244 | 0 | 0.526316 | 0 | 0 | 0.529954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 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 |
e9fa02f1356525c276392f8f573bfb5247af8bd2 | 507 | py | Python | setup.py | t3hmrman/lwhn-example-app-python-flask | 7c79ddebd45fbfc993bfa9950a415475da33b4c3 | [
"MIT"
] | null | null | null | setup.py | t3hmrman/lwhn-example-app-python-flask | 7c79ddebd45fbfc993bfa9950a415475da33b4c3 | [
"MIT"
] | null | null | null | setup.py | t3hmrman/lwhn-example-app-python-flask | 7c79ddebd45fbfc993bfa9950a415475da33b4c3 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="lwhn_example_app_python_flask",
version="1.0.0",
packages=find_packages(where="."),
package_dir={"": "."},
install_requires=[
"Flask-Session>=0.3.1",
"attrs>=18.1.0",
"flask-login>=0.4.1",
"flask>=1.0",
... | 23.045455 | 62 | 0.542406 | 63 | 507 | 4.142857 | 0.571429 | 0.022989 | 0.10728 | 0.153257 | 0.191571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062162 | 0.270217 | 507 | 21 | 63 | 24.142857 | 0.643243 | 0 | 0 | 0.1 | 0 | 0 | 0.376726 | 0.138067 | 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 |
e9fc1bfe80e395a9699e91ac80bd2f5cb4c1a221 | 611 | py | Python | conanfile.py | bincrafters/demo-azure-iot-sdk | 4469a9e841b432734884280834ec7903f6a3f904 | [
"MIT"
] | 1 | 2019-07-02T02:08:04.000Z | 2019-07-02T02:08:04.000Z | conanfile.py | bincrafters/azure-iot-sdk-demo-conan | 4469a9e841b432734884280834ec7903f6a3f904 | [
"MIT"
] | null | null | null | conanfile.py | bincrafters/azure-iot-sdk-demo-conan | 4469a9e841b432734884280834ec7903f6a3f904 | [
"MIT"
] | 1 | 2022-03-23T08:59:05.000Z | 2022-03-23T08:59:05.000Z | from conans import ConanFile
class AzureIotSdkDemoConan(ConanFile):
name = "Azure-IOT-SDK-Demo-Conan"
version = "1.0.0"
generators = "cmake"
settings = "os", "arch", "compiler", "build_type"
url = "https://github.com/bincrafters/azure-iot-sdk-demo-conan"
license = "https://github.com/bincrafte... | 38.1875 | 91 | 0.672668 | 83 | 611 | 4.939759 | 0.53012 | 0.097561 | 0.134146 | 0.109756 | 0.268293 | 0.219512 | 0.219512 | 0.219512 | 0.219512 | 0 | 0 | 0.019493 | 0.160393 | 611 | 16 | 92 | 38.1875 | 0.779727 | 0 | 0 | 0 | 0 | 0.076923 | 0.478758 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.769231 | 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 |
e9fca6ae554ef69340be8db7a6f0ab67031fa87b | 793 | py | Python | api/cases/migrations/0002_auto_20200210_1326.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 3 | 2019-05-15T09:30:39.000Z | 2020-04-22T16:14:23.000Z | api/cases/migrations/0002_auto_20200210_1326.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 85 | 2019-04-24T10:39:35.000Z | 2022-03-21T14:52:12.000Z | api/cases/migrations/0002_auto_20200210_1326.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 1 | 2021-01-17T11:12:19.000Z | 2021-01-17T11:12:19.000Z | # Generated by Django 2.2.9 on 2020-02-10 13:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("cases", "0001_initial"),
("goodstype", "0001_initial"),
]
operations = [
migrat... | 26.433333 | 108 | 0.600252 | 82 | 793 | 5.695122 | 0.5 | 0.068522 | 0.089936 | 0.141328 | 0.248394 | 0.248394 | 0.248394 | 0.248394 | 0.248394 | 0.248394 | 0 | 0.04021 | 0.278689 | 793 | 29 | 109 | 27.344828 | 0.776224 | 0.056747 | 0 | 0.227273 | 1 | 0 | 0.158177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
18052f3259ffdce58eaa0d7abfc8a7ab7fb5c3b2 | 6,410 | py | Python | GAN/DCGAN/dcgan_cifar10.py | fengjiran/scholar_project | 35e86b7a8d0226ad0fee3b2983821a3f331f68aa | [
"Apache-2.0"
] | 3 | 2017-08-20T08:47:18.000Z | 2019-06-21T06:09:27.000Z | GAN/DCGAN/dcgan_cifar10.py | fengjiran/scholar_project | 35e86b7a8d0226ad0fee3b2983821a3f331f68aa | [
"Apache-2.0"
] | null | null | null | GAN/DCGAN/dcgan_cifar10.py | fengjiran/scholar_project | 35e86b7a8d0226ad0fee3b2983821a3f331f68aa | [
"Apache-2.0"
] | null | null | null | import argparse
from keras.models import Sequential
from keras.layers import Dense, Dropout, LeakyReLU
from keras.layers import Reshape
from keras.layers.core import Activation
from keras.layers.pooling import GlobalAveragePooling2D
from keras.layers.normalization import BatchNormalization
from keras.layers.conv... | 34.648649 | 99 | 0.618253 | 791 | 6,410 | 4.865992 | 0.207332 | 0.062354 | 0.02728 | 0.020785 | 0.390231 | 0.288906 | 0.272798 | 0.24344 | 0.24344 | 0.211743 | 0 | 0.039314 | 0.253978 | 6,410 | 184 | 100 | 34.836957 | 0.765579 | 0.037442 | 0 | 0.330769 | 0 | 0 | 0.0465 | 0.003551 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107692 | null | null | 0.053846 | 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 |
1808d6267ba45f64ecc80f58b7b49b8f9ab9605c | 1,368 | py | Python | zvt/domain/quotes/stock/stock_style_factor.py | markqiu/zvt | 1bcfb71279f2652c3600f0f8e45d941f98ceaa10 | [
"MIT"
] | 6 | 2020-09-03T10:02:00.000Z | 2021-02-04T02:51:47.000Z | zvt/domain/quotes/stock/stock_style_factor.py | wlwd13303/zvt | 23105a5bfdc3a5080c6c22d11e9e53d216688dea | [
"MIT"
] | null | null | null | zvt/domain/quotes/stock/stock_style_factor.py | wlwd13303/zvt | 23105a5bfdc3a5080c6c22d11e9e53d216688dea | [
"MIT"
] | 2 | 2020-07-08T04:15:40.000Z | 2021-06-08T08:51:31.000Z | # -*- coding: utf-8 -*-
# this file is generated by gen_kdata_schema function, dont't change it
from sqlalchemy.ext.declarative import declarative_base
from zvt.contract.register import register_schema
from zvt.domain.quotes import StockStyleFactorCommon
FactorBase = declarative_base()
class StockStyleFactor(Factor... | 41.454545 | 108 | 0.722953 | 149 | 1,368 | 6.147651 | 0.61745 | 0.030568 | 0.052402 | 0.065502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000885 | 0.173977 | 1,368 | 32 | 109 | 42.75 | 0.809735 | 0.06652 | 0 | 0 | 1 | 0 | 0.464678 | 0.225275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0.045455 | 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 |
180f8a815a7ccd0eea9fa749a4167dd740a130f1 | 2,420 | py | Python | bin/libs/python/embedcurl.py | vdjserver/agave-cli | 4ad0826779cd760eb8a102978c456fee214ce8a3 | [
"BSD-3-Clause"
] | null | null | null | bin/libs/python/embedcurl.py | vdjserver/agave-cli | 4ad0826779cd760eb8a102978c456fee214ce8a3 | [
"BSD-3-Clause"
] | 1 | 2019-06-11T21:48:12.000Z | 2019-06-11T22:11:35.000Z | bin/libs/python/embedcurl.py | vdjserver/agave-cli | 4ad0826779cd760eb8a102978c456fee214ce8a3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# embedcurl.py
#
# A Python 2.7 command line utility for exporting curl commands to
# embedcurl.io and hurl.it references you can share
#
import json, sys, argparse, re, urllib, base64
from operator import attrgetter
debug = False
def parse_args():
parser = argparse.ArgumentParser(prog="embedcu... | 30.25 | 178 | 0.604959 | 317 | 2,420 | 4.555205 | 0.44795 | 0.020776 | 0.047091 | 0.045706 | 0.199446 | 0.166205 | 0.166205 | 0.117729 | 0.117729 | 0.117729 | 0 | 0.012707 | 0.252066 | 2,420 | 80 | 179 | 30.25 | 0.785083 | 0.059504 | 0 | 0.076923 | 0 | 0.038462 | 0.261118 | 0.025099 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057692 | null | null | 0.096154 | 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 |
180fbb24991fc9f83509712d49c4a60b9a86636a | 2,938 | py | Python | venv/lib/python2.7/site-packages/webassets/filter/less_ruby.py | mutaihillary/mycalculator | 55685dd7c968861f18ae0701129f5af2bc682d67 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/webassets/filter/less_ruby.py | mutaihillary/mycalculator | 55685dd7c968861f18ae0701129f5af2bc682d67 | [
"MIT"
] | 7 | 2021-02-08T20:22:15.000Z | 2022-03-11T23:19:41.000Z | venv/lib/python2.7/site-packages/webassets/filter/less_ruby.py | mutaihillary/mycalculator | 55685dd7c968861f18ae0701129f5af2bc682d67 | [
"MIT"
] | null | null | null | import time
import os, subprocess
import tempfile
from webassets.filter import Filter
from webassets.exceptions import FilterError
__all__ = ('LessFilter',)
class LessFilter(Filter):
"""Converts `Less <http://lesscss.org/>`_ markup to real CSS.
This uses the old Ruby implementation available in the 1.x ve... | 36.725 | 101 | 0.635807 | 375 | 2,938 | 4.936 | 0.538667 | 0.035656 | 0.011885 | 0.015127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010952 | 0.285228 | 2,938 | 79 | 102 | 37.189873 | 0.870476 | 0.36147 | 0 | 0.0625 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.28125 | 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 |
18137022c5a1b4dfe9ca7a81e47fa228daf5cbf6 | 514 | py | Python | tests/r/test_animals.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_animals.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_animals.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.animals import animals
def test_animals():
"""Test module animals.py by downloading
animals.csv and testing shape of
extracted data has 20... | 21.416667 | 43 | 0.752918 | 72 | 514 | 5.097222 | 0.569444 | 0.081744 | 0.13079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014252 | 0.180934 | 514 | 23 | 44 | 22.347826 | 0.857482 | 0.215953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
181415a524acbf2c8628f7a4f820f562828a8bca | 525 | py | Python | tests/tfhub/tfhub_yamnet.py | pbeukema/tensorflow-onnx | a8d5a3cc72d24ca18d64572588ad06490940a230 | [
"Apache-2.0"
] | null | null | null | tests/tfhub/tfhub_yamnet.py | pbeukema/tensorflow-onnx | a8d5a3cc72d24ca18d64572588ad06490940a230 | [
"Apache-2.0"
] | null | null | null | tests/tfhub/tfhub_yamnet.py | pbeukema/tensorflow-onnx | a8d5a3cc72d24ca18d64572588ad06490940a230 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
import os
import numpy
from _tools import generate_random_images, benchmark_tflite
def main(opset=13):
url = "https://tfhub.dev/google/coral-model/yamnet/classification/coral/1?coral-format=tflite"
dest = "tf-yamnet"
name = "yamnet"
onnx_name = os.path.join(dest, ... | 26.25 | 98 | 0.700952 | 76 | 525 | 4.618421 | 0.605263 | 0.068376 | 0.11396 | 0.096866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.154286 | 525 | 19 | 99 | 27.631579 | 0.756757 | 0.066667 | 0 | 0 | 1 | 0.083333 | 0.243852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1817c920b2814ac5ca57e4eba992ebeca4480f57 | 993 | py | Python | templates/BCSWAN/lambda/save.py | meracan/aws-cloudformation | 88fa6b44fd132f3d649493a2e783e44acec6951b | [
"MIT"
] | 1 | 2021-01-07T12:39:14.000Z | 2021-01-07T12:39:14.000Z | templates/BCSWAN/lambda/save.py | meracan/aws-cloudformation | 88fa6b44fd132f3d649493a2e783e44acec6951b | [
"MIT"
] | null | null | null | templates/BCSWAN/lambda/save.py | meracan/aws-cloudformation | 88fa6b44fd132f3d649493a2e783e44acec6951b | [
"MIT"
] | null | null | null | import binarypy
def saveJSON(data):
None
def saveGeoJSON(data):
None
def saveCSV(data):
None
def saveBinary(data):
None
def saveNetCDF(data):
None
def saveMat(data):
None
def saveTri(data):
None
def saveSLF(data):
None
def saveShapefile(data):
None
def save(format,data):
if format... | 20.6875 | 60 | 0.66566 | 122 | 993 | 5.418033 | 0.319672 | 0.108926 | 0.149773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003593 | 0.159114 | 993 | 48 | 61 | 20.6875 | 0.788024 | 0.048338 | 0 | 0.257143 | 0 | 0 | 0.060381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.314286 | false | 0 | 0.028571 | 0.028571 | 0.371429 | 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 |
181865c9d52afb248fcc32d4e8cd0dc1fc0fbfac | 11,457 | py | Python | split_half_reliability/abide_motion_wrapper.py | neurohackweek/kids_rsfMRI_motion | 48535d4b55e8e7641774fdb84226b00f3e35ecb2 | [
"MIT"
] | 1 | 2019-05-26T23:06:21.000Z | 2019-05-26T23:06:21.000Z | split_half_reliability/abide_motion_wrapper.py | neurohackweek/kids_rsfMRI_motion | 48535d4b55e8e7641774fdb84226b00f3e35ecb2 | [
"MIT"
] | null | null | null | split_half_reliability/abide_motion_wrapper.py | neurohackweek/kids_rsfMRI_motion | 48535d4b55e8e7641774fdb84226b00f3e35ecb2 | [
"MIT"
] | 7 | 2017-01-02T17:31:59.000Z | 2020-06-15T15:20:24.000Z | #!/usr/bin/env python
import numpy as np
import os
import pandas as pd
import sys
def abide_motion_wrapper(motion_thresh, age_l, age_u, n, n_perms=1000, overwrite=True):
behav_data_f = 'DATA/Phenotypic_V1_0b_preprocessed1.csv'
f_name = 'RESULTS/rsq_{:03.0f}pct_{:03.0f}subs_{:02.0f}to{:02.0f}.csv'.for... | 36.958065 | 119 | 0.667976 | 1,840 | 11,457 | 3.93587 | 0.232609 | 0.03963 | 0.02237 | 0.029826 | 0.185722 | 0.158106 | 0.12317 | 0.103286 | 0.103286 | 0.084783 | 0 | 0.013982 | 0.232172 | 11,457 | 309 | 120 | 37.07767 | 0.809253 | 0.205726 | 0 | 0.043165 | 0 | 0.007194 | 0.064018 | 0.014973 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028777 | null | null | 0.021583 | 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 |
181f32aa5d2967c0011db3e6be14257c98ecc4df | 792 | py | Python | Software/Python/Test/setting.py | Debaq/simPEATC | 47567d264bdf045a4c6116b959dc7e14d1575003 | [
"MIT"
] | 3 | 2019-09-03T17:29:17.000Z | 2019-09-24T04:26:20.000Z | Software/Python/Test/setting.py | Debaq/simPEATC | 47567d264bdf045a4c6116b959dc7e14d1575003 | [
"MIT"
] | null | null | null | Software/Python/Test/setting.py | Debaq/simPEATC | 47567d264bdf045a4c6116b959dc7e14d1575003 | [
"MIT"
] | null | null | null |
import pandas as pd
def i18n():
file = open('translation.csv','r')
reader = csv.reader(file)
people = {}
for row in reader:
people[row[0]]={'value':row[1],'value2':row[2]}
print(people)
def get():
df = pd.read_csv('setting.csv')
saved_column = df['conf']
font=[]
font=df.iloc[:,0]
print(font)
#proporc... | 23.294118 | 68 | 0.623737 | 143 | 792 | 3.335664 | 0.384615 | 0.207547 | 0.146751 | 0.075472 | 0.125786 | 0.092243 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0.102273 | 792 | 34 | 69 | 23.294118 | 0.594937 | 0.070707 | 0 | 0 | 0 | 0 | 0.115646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.130435 | 0.086957 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
181f592604d15201b4695a3087e24ba63a05c951 | 1,231 | py | Python | simple_open_api_server/openapi.py | xyloon/tutorial_openapi | 6234d62ba7f32242ce13ff2381b8ce56e41a4a29 | [
"MIT"
] | null | null | null | simple_open_api_server/openapi.py | xyloon/tutorial_openapi | 6234d62ba7f32242ce13ff2381b8ce56e41a4a29 | [
"MIT"
] | null | null | null | simple_open_api_server/openapi.py | xyloon/tutorial_openapi | 6234d62ba7f32242ce13ff2381b8ce56e41a4a29 | [
"MIT"
] | null | null | null | from flask import Flask, request
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
door = "closed"
passwords = set()
class PassWord(Resource):
def get(self):
global passwords
return {
"result": "OK",
"passwords": list(passwords)
}
... | 20.864407 | 61 | 0.556458 | 132 | 1,231 | 5.015152 | 0.356061 | 0.067976 | 0.084592 | 0.10423 | 0.1571 | 0.087613 | 0 | 0 | 0 | 0 | 0 | 0.004848 | 0.329813 | 1,231 | 58 | 62 | 21.224138 | 0.797576 | 0 | 0 | 0.386364 | 0 | 0 | 0.096669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.25 | 0.045455 | 0 | 0.272727 | 0.022727 | 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 |
18204d3b08717e9caad6e1147e8f9d7015a427d6 | 186 | py | Python | Questoes/Sequencia IJ 4.py | gsillva18/URI_Phyton | 45cc0388a3b914b2b8131329c48bce7b0f0bfec6 | [
"MIT"
] | 1 | 2021-12-14T09:42:08.000Z | 2021-12-14T09:42:08.000Z | Questoes/Sequencia IJ 4.py | gsillva18/URI_Phyton | 45cc0388a3b914b2b8131329c48bce7b0f0bfec6 | [
"MIT"
] | null | null | null | Questoes/Sequencia IJ 4.py | gsillva18/URI_Phyton | 45cc0388a3b914b2b8131329c48bce7b0f0bfec6 | [
"MIT"
] | null | null | null | for i in range(0,21,2):
if(i==0):
i=i
elif(i==10 or i==20):
i=int(i/10)
else:
i/=10
for k in range(1,4):
print("I={} J={}".format(i, k+i)) | 20.666667 | 41 | 0.408602 | 38 | 186 | 2 | 0.526316 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.354839 | 186 | 9 | 41 | 20.666667 | 0.508333 | 0 | 0 | 0 | 0 | 0 | 0.048128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
18207e701ad2eb5236d0137bd57d04dafb4367b2 | 1,339 | py | Python | window_resize.py | manya1712/eye-care | 73a8fa578f747959273f45898cc9b7fb5cc2a8ab | [
"MIT"
] | null | null | null | window_resize.py | manya1712/eye-care | 73a8fa578f747959273f45898cc9b7fb5cc2a8ab | [
"MIT"
] | null | null | null | window_resize.py | manya1712/eye-care | 73a8fa578f747959273f45898cc9b7fb5cc2a8ab | [
"MIT"
] | null | null | null |
import pyautogui as pag
alert = 0
class changes():
def __init__(self):
self.last = 35
def change(i, obj):
last = obj.last
if i > 0 and i < 31:
if last > 0 and last < 31:
pass
else:
pag.hotkey('ctrl', '-')
elif i > 30 and i < 51:
if last > 3... | 19.128571 | 88 | 0.431665 | 162 | 1,339 | 3.506173 | 0.419753 | 0.042254 | 0.091549 | 0.089789 | 0.177817 | 0.133803 | 0 | 0 | 0 | 0 | 0 | 0.068152 | 0.430172 | 1,339 | 69 | 89 | 19.405797 | 0.676278 | 0.477969 | 0 | 0.481481 | 0 | 0 | 0.029542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.111111 | 0.037037 | 0 | 0.185185 | 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 |
182141d7c6bfd34a07509a41fbe14105ade0fe1c | 1,318 | py | Python | passwordgen.py | GravyPy/Password-Generator | dce98f4a0a332ba63a18dd0bc62295248ed6366a | [
"MIT"
] | null | null | null | passwordgen.py | GravyPy/Password-Generator | dce98f4a0a332ba63a18dd0bc62295248ed6366a | [
"MIT"
] | null | null | null | passwordgen.py | GravyPy/Password-Generator | dce98f4a0a332ba63a18dd0bc62295248ed6366a | [
"MIT"
] | null | null | null | import string
import random
import time
import os
import os.path
# Defining All Possible Characters
chars = string.ascii_letters + string.punctuation + string.digits
# Creates Empty Password Variable to Be Filled Later
password = ''
# Gathers User Input for Text File
passwordApp = input("What App is this Password f... | 29.288889 | 98 | 0.712443 | 183 | 1,318 | 5.125683 | 0.535519 | 0.057569 | 0.025586 | 0.031983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012915 | 0.177542 | 1,318 | 45 | 99 | 29.288889 | 0.852399 | 0.197269 | 0 | 0.117647 | 0 | 0 | 0.276879 | 0.021884 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0 | false | 0.323529 | 0.147059 | 0 | 0.147059 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1829024470832337f4af5eafe4def25b2b58eafb | 335 | py | Python | testdata/setup.py | gjtempleton/drone-pypi | eb31da944a11c95782e5656bf6da9d9beae30488 | [
"Apache-2.0"
] | null | null | null | testdata/setup.py | gjtempleton/drone-pypi | eb31da944a11c95782e5656bf6da9d9beae30488 | [
"Apache-2.0"
] | 3 | 2018-04-17T13:33:17.000Z | 2019-03-20T07:47:59.000Z | testdata/setup.py | gjtempleton/drone-pypi | eb31da944a11c95782e5656bf6da9d9beae30488 | [
"Apache-2.0"
] | 1 | 2018-11-05T08:41:21.000Z | 2018-11-05T08:41:21.000Z | from setuptools import setup
setup(
name='drone-pypi-test',
version='0.1.0',
description='Testing drone-pypi publishes, no other purpose.',
url='http://github.com/gjtempleton/drone-pypi',
packages=['testdata/drone_pypi_test'],
maintainer='Guy Templeton',
maintainer_email="guyjtempleton@goo... | 27.916667 | 66 | 0.710448 | 41 | 335 | 5.731707 | 0.731707 | 0.153191 | 0.110638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010453 | 0.143284 | 335 | 12 | 67 | 27.916667 | 0.808362 | 0 | 0 | 0 | 0 | 0 | 0.511905 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
183062eef22a4b5d6d1a72e2b80db32c44e54d50 | 2,940 | py | Python | cloud-sql/postgres/sqlalchemy/connect_unix.py | jsj14/python-docs-samples | 9cf5461b166eea824c40c704ed06c5ea53cf91d4 | [
"Apache-2.0"
] | null | null | null | cloud-sql/postgres/sqlalchemy/connect_unix.py | jsj14/python-docs-samples | 9cf5461b166eea824c40c704ed06c5ea53cf91d4 | [
"Apache-2.0"
] | null | null | null | cloud-sql/postgres/sqlalchemy/connect_unix.py | jsj14/python-docs-samples | 9cf5461b166eea824c40c704ed06c5ea53cf91d4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42 | 101 | 0.688435 | 405 | 2,940 | 4.876543 | 0.464198 | 0.035443 | 0.031899 | 0.018228 | 0.099241 | 0.06481 | 0 | 0 | 0 | 0 | 0 | 0.01635 | 0.230272 | 2,940 | 69 | 102 | 42.608696 | 0.856385 | 0.682993 | 0 | 0 | 0 | 0 | 0.093574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.095238 | 0 | 0.190476 | 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 |
183b7fbdb1eb60cafe5137732e94ed809b786450 | 1,809 | py | Python | src/routeStore.py | LiamTyler/ClimbingWallLEDController | 99e65ab44e9bd84ac3dbe76ba4a3d66f24ba3c9e | [
"MIT"
] | null | null | null | src/routeStore.py | LiamTyler/ClimbingWallLEDController | 99e65ab44e9bd84ac3dbe76ba4a3d66f24ba3c9e | [
"MIT"
] | null | null | null | src/routeStore.py | LiamTyler/ClimbingWallLEDController | 99e65ab44e9bd84ac3dbe76ba4a3d66f24ba3c9e | [
"MIT"
] | null | null | null | import base64, os, pickle
STORE_LOCATION = './routes.db'
g_routeStore = None
class RouteStore:
def __init__( self , storeLocation=STORE_LOCATION ):
self.fileLocation = storeLocation
self.LoadRouteStore()
def _UpdateRouteStore( self ):
pickle.dump( self.routes, open( self.fileLocation... | 31.736842 | 82 | 0.573245 | 201 | 1,809 | 5.114428 | 0.358209 | 0.16537 | 0.068093 | 0.043774 | 0.210117 | 0.169261 | 0.169261 | 0.169261 | 0.169261 | 0.169261 | 0 | 0.003281 | 0.326147 | 1,809 | 57 | 83 | 31.736842 | 0.840033 | 0.037037 | 0 | 0.177778 | 0 | 0 | 0.038506 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.2 | false | 0 | 0.022222 | 0.044444 | 0.355556 | 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 |
183eb868ad7b0ce4c374f0cef05c776053c1ca41 | 538 | py | Python | rmcalyse/plugins/orthonormaliser.py | antgobar/rmcalyse | dee40416bfd7cf73a4ede6eb309b484397e11310 | [
"MIT"
] | 3 | 2021-02-17T18:09:16.000Z | 2021-03-12T12:36:19.000Z | rmcalyse/plugins/orthonormaliser.py | antgobar/rmcalyse | dee40416bfd7cf73a4ede6eb309b484397e11310 | [
"MIT"
] | null | null | null | rmcalyse/plugins/orthonormaliser.py | antgobar/rmcalyse | dee40416bfd7cf73a4ede6eb309b484397e11310 | [
"MIT"
] | 1 | 2021-03-12T12:37:24.000Z | 2021-03-12T12:37:24.000Z | import dask.dataframe as dd
from .base_plugin import BasePlugin
class Orthonormaliser(BasePlugin, plugin_name='orthonormalise'):
def process(self, df, meta, other_data):
xyz_array = df[['x','y','z']].to_dask_array(lengths=True)
answer = (meta.M @ xyz_array.T).T
answer_df = dd.from_dask_ar... | 24.454545 | 67 | 0.667286 | 75 | 538 | 4.56 | 0.586667 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217472 | 538 | 21 | 68 | 25.619048 | 0.812352 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
18418386e53eb956b4a39f71df6727d75b6c0003 | 221 | py | Python | coders/curso_python/fundamentos_projeto/area_circulo_v6.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2021-02-20T23:50:07.000Z | 2021-08-15T03:04:35.000Z | coders/curso_python/fundamentos_projeto/area_circulo_v6.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 18 | 2019-08-07T02:33:00.000Z | 2021-03-18T22:52:38.000Z | coders/curso_python/fundamentos_projeto/area_circulo_v6.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2020-09-28T13:00:09.000Z | 2021-12-30T12:21:08.000Z | #!/usr/local/bin/python3
from math import pi
def circulo(raio):
return pi * float(raio)**2
if __name__ == '__main__':
raio = float(input('Informe o raio: '))
area = circulo(raio)
print(f'Area {area}')
| 17 | 43 | 0.628959 | 32 | 221 | 4.09375 | 0.71875 | 0.167939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.208145 | 221 | 12 | 44 | 18.416667 | 0.737143 | 0.104072 | 0 | 0 | 0 | 0 | 0.177665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
184482d3ec962b740b47f9c44d92ce63fd6e97ec | 1,008 | py | Python | tests/unit/vision/benchmarks_test.py | joemzhao/learn2learn | e161e0a9e0de513d64315c4ceaf2d8608e4cef4d | [
"MIT"
] | null | null | null | tests/unit/vision/benchmarks_test.py | joemzhao/learn2learn | e161e0a9e0de513d64315c4ceaf2d8608e4cef4d | [
"MIT"
] | null | null | null | tests/unit/vision/benchmarks_test.py | joemzhao/learn2learn | e161e0a9e0de513d64315c4ceaf2d8608e4cef4d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
import learn2learn as l2l
TOO_BIG_TO_TEST = [
'tiered-imagenet',
]
class UtilTests(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_tasksets(self):
names = l2l.vision.benchmarks.list_tasksets()
for n... | 25.846154 | 78 | 0.606151 | 112 | 1,008 | 5.303571 | 0.419643 | 0.141414 | 0.106061 | 0.146465 | 0.26936 | 0.26936 | 0.26936 | 0.212121 | 0.212121 | 0.212121 | 0 | 0.007013 | 0.292659 | 1,008 | 38 | 79 | 26.526316 | 0.826087 | 0.020833 | 0 | 0.178571 | 0 | 0 | 0.048682 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.107143 | false | 0.071429 | 0.071429 | 0 | 0.214286 | 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 |
184c4fe619a5aa2a520c62dc6270ea706745474d | 5,345 | py | Python | src/spaceone/inventory/model/storageaccount/cloud_service.py | jean1042/plugin-azure-cloud-services | 3a75a516c9a4d1e8a4962988934ead3fd40e8494 | [
"Apache-2.0"
] | 1 | 2020-12-08T11:59:54.000Z | 2020-12-08T11:59:54.000Z | src/spaceone/inventory/model/storageaccount/cloud_service.py | jean1042/plugin-azure-cloud-services | 3a75a516c9a4d1e8a4962988934ead3fd40e8494 | [
"Apache-2.0"
] | 4 | 2021-01-26T10:43:37.000Z | 2021-12-17T10:13:33.000Z | src/spaceone/inventory/model/storageaccount/cloud_service.py | jean1042/plugin-azure-cloud-services | 3a75a516c9a4d1e8a4962988934ead3fd40e8494 | [
"Apache-2.0"
] | 2 | 2021-01-13T03:24:05.000Z | 2021-01-19T07:25:45.000Z | from schematics.types import ModelType, StringType, PolyModelType
from spaceone.inventory.libs.schema.metadata.dynamic_field import TextDyField, DateTimeDyField, EnumDyField, \
ListDyField, SizeField, StateItemDyField
from spaceone.inventory.libs.schema.metadata.dynamic_layout import ItemDynamicLayout, TableDynami... | 50.424528 | 211 | 0.782226 | 575 | 5,345 | 6.986087 | 0.205217 | 0.102066 | 0.182972 | 0.04705 | 0.188947 | 0.150859 | 0.097585 | 0.074683 | 0.074683 | 0.04232 | 0 | 0 | 0.098223 | 5,345 | 105 | 212 | 50.904762 | 0.833402 | 0.021141 | 0 | 0.139241 | 0 | 0 | 0.330321 | 0.152471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012658 | 0.063291 | 0 | 0.177215 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
184ceb147a3cd664d75795d651cdb96d3b565bc5 | 590 | py | Python | apps/groups/views.py | mkdir700/Marilyn | 49d735f61914b0e57410ec2d73d583c422bccaa5 | [
"MIT"
] | null | null | null | apps/groups/views.py | mkdir700/Marilyn | 49d735f61914b0e57410ec2d73d583c422bccaa5 | [
"MIT"
] | 4 | 2021-04-08T20:57:24.000Z | 2021-09-22T19:12:13.000Z | apps/groups/views.py | mkdir700/Marilyn | 49d735f61914b0e57410ec2d73d583c422bccaa5 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from django.contrib.auth.models import Group
from rest_framework.authentication import SessionAuthentication
from rest_framework_simplejwt.authentication import JWTAuthentication
from rest_framework.permissions import IsAuthenticatedOrReadOnly, IsAdminUser
from .serializer import Gro... | 42.142857 | 77 | 0.855932 | 55 | 590 | 9.036364 | 0.490909 | 0.064386 | 0.136821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 590 | 13 | 78 | 45.384615 | 0.93597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
184dc54d4c3885f8058261af9ec570958ea989dd | 292 | py | Python | catalog/bindings/csw/temporal_csref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/temporal_csref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/temporal_csref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.csw.temporal_csref_type import TemporalCsrefType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class TemporalCsref(TemporalCsrefType):
class Meta:
name = "temporalCSRef"
namespace = "http://www.opengis.net/gml"
| 24.333333 | 62 | 0.75 | 32 | 292 | 6.65625 | 0.625 | 0.122066 | 0.150235 | 0.215962 | 0.2723 | 0.2723 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15411 | 292 | 11 | 63 | 26.545455 | 0.862348 | 0 | 0 | 0 | 0 | 0 | 0.222603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
184e3571f54da10902bda058bbe7614c395cdf25 | 911 | py | Python | setup.py | Abdellbar/sparkapi | 6d77e823e8c3893c87310cf4992c1f148b02c14f | [
"Apache-2.0"
] | null | null | null | setup.py | Abdellbar/sparkapi | 6d77e823e8c3893c87310cf4992c1f148b02c14f | [
"Apache-2.0"
] | null | null | null | setup.py | Abdellbar/sparkapi | 6d77e823e8c3893c87310cf4992c1f148b02c14f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='sparkapi',
version='0.1',
description='A Nice Python API to CISCO spark',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software Lic... | 29.387097 | 73 | 0.608123 | 99 | 911 | 5.525253 | 0.686869 | 0.007313 | 0.051188 | 0.062157 | 0.124314 | 0.124314 | 0 | 0 | 0 | 0 | 0 | 0.013294 | 0.256861 | 911 | 31 | 74 | 29.387097 | 0.794682 | 0 | 0 | 0.074074 | 0 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | true | 0 | 0.037037 | 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 |
185046b71a4673923fec3eadbe441e7763c85b84 | 2,126 | py | Python | freq_month.py | martengooz/github-scraper | c6a04df030d7a0657fa71e30bc6f32f3f076ff84 | [
"MIT"
] | 1 | 2019-04-22T18:12:58.000Z | 2019-04-22T18:12:58.000Z | freq_month.py | martengooz/github-scraper | c6a04df030d7a0657fa71e30bc6f32f3f076ff84 | [
"MIT"
] | null | null | null | freq_month.py | martengooz/github-scraper | c6a04df030d7a0657fa71e30bc6f32f3f076ff84 | [
"MIT"
] | null | null | null | import numpy
import json
import time
import datetime
from dateutil.relativedelta import *
import dateutil
import dateutil.parser
from scipy.stats.stats import pearsonr
import matplotlib.pyplot as plt
import scipy
from operator import truediv
with open('repos') as data_file:
data = json.load(data_file)
popularityli... | 27.25641 | 126 | 0.706491 | 280 | 2,126 | 5.296429 | 0.371429 | 0.037761 | 0.038436 | 0.03911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018142 | 0.144403 | 2,126 | 77 | 127 | 27.61039 | 0.797141 | 0.114299 | 0 | 0.035714 | 0 | 0 | 0.103412 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.196429 | null | null | 0.035714 | 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 |
1858a24757c3345611f98acdbf8e3f683a9035d6 | 1,006 | py | Python | xpresso/binders/_security/dependants.py | dantownsend/xpresso | a4c4dbe96972a6f0339f30d7d794932f70510eea | [
"MIT"
] | null | null | null | xpresso/binders/_security/dependants.py | dantownsend/xpresso | a4c4dbe96972a6f0339f30d7d794932f70510eea | [
"MIT"
] | null | null | null | xpresso/binders/_security/dependants.py | dantownsend/xpresso | a4c4dbe96972a6f0339f30d7d794932f70510eea | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Optional, Sequence, Union
from di.api.providers import DependencyProviderType
from xpresso.binders.api import SecurityBase
from xpresso.dependencies.models import Dependant
class Security(Dependant):
_dependency: Union[DependencyProviderType[SecurityBase], ... | 29.588235 | 85 | 0.684891 | 94 | 1,006 | 7.117021 | 0.468085 | 0.121076 | 0.174888 | 0.2287 | 0.182362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225646 | 1,006 | 33 | 86 | 30.484848 | 0.858793 | 0.025845 | 0 | 0 | 0 | 0 | 0.006135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0.041667 | 0.458333 | 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 |
185915cf57d5d33ac2e8a4762fd1ee63f9facbda | 1,699 | py | Python | public/sep_search/scraper/article_list_scraper.py | AFFogarty/SEP-Bot | a3db29a5fb71f1bb99a849edbfa179d719e0a103 | [
"MIT"
] | 1 | 2015-06-16T02:01:58.000Z | 2015-06-16T02:01:58.000Z | public/sep_search/scraper/article_list_scraper.py | AFFogarty/SEP-Bot | a3db29a5fb71f1bb99a849edbfa179d719e0a103 | [
"MIT"
] | null | null | null | public/sep_search/scraper/article_list_scraper.py | AFFogarty/SEP-Bot | a3db29a5fb71f1bb99a849edbfa179d719e0a103 | [
"MIT"
] | null | null | null | from lxml import html
import re
import requests
SEP_URL = "http://plato.stanford.edu/"
class ArticleListScraper():
query = None
results = None
def __init__(self, query):
self.set_query(query)
def set_query(self, query):
# query_no_accents = remove_accents(query)
query_no_pose... | 30.890909 | 83 | 0.553855 | 204 | 1,699 | 4.431373 | 0.441176 | 0.039823 | 0.026549 | 0.037611 | 0.064159 | 0.064159 | 0.064159 | 0 | 0 | 0 | 0 | 0.003431 | 0.313714 | 1,699 | 54 | 84 | 31.462963 | 0.77187 | 0.134785 | 0 | 0 | 0 | 0 | 0.113465 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.02381 | 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 |
185c32317b3813395e629e93d93e229d306c669d | 3,942 | py | Python | ibis/backends/pandas/__init__.py | rohankumardubey/ibis | e416dcfdb32792ffeb6f5214b361872582aa8795 | [
"Apache-2.0"
] | 986 | 2017-06-07T07:33:01.000Z | 2022-03-31T13:00:46.000Z | ibis/backends/pandas/__init__.py | rohankumardubey/ibis | e416dcfdb32792ffeb6f5214b361872582aa8795 | [
"Apache-2.0"
] | 2,623 | 2017-06-07T18:29:11.000Z | 2022-03-31T20:27:31.000Z | ibis/backends/pandas/__init__.py | rohankumardubey/ibis | e416dcfdb32792ffeb6f5214b361872582aa8795 | [
"Apache-2.0"
] | 238 | 2017-06-26T19:02:58.000Z | 2022-03-31T15:18:29.000Z | import pandas as pd
import toolz
import ibis.common.exceptions as com
import ibis.config
import ibis.expr.schema as sch
import ibis.expr.types as ir
from ibis.backends.base import BaseBackend
from .client import PandasDatabase, PandasTable, ibis_schema_to_pandas
class BasePandasBackend(BaseBackend):
"""
Bas... | 29.2 | 78 | 0.606038 | 459 | 3,942 | 5.106754 | 0.305011 | 0.030717 | 0.017918 | 0.029437 | 0.057167 | 0.057167 | 0.057167 | 0.057167 | 0.057167 | 0.057167 | 0 | 0.002175 | 0.300101 | 3,942 | 134 | 79 | 29.41791 | 0.847408 | 0.145611 | 0 | 0.051948 | 0 | 0 | 0.111006 | 0.006938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.012987 | 0.142857 | 0.064935 | 0.506494 | 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 |
185e4e3c8d1306c4c260bd398e1842c98dba58db | 2,723 | py | Python | keras_to_tfserving.py | sellpy/stockholm-ai | 187bda91d6bc5cfef89083b15836ec18e819a1b8 | [
"MIT"
] | 2 | 2018-03-26T16:31:38.000Z | 2018-03-28T08:55:07.000Z | keras_to_tfserving.py | sellpy/stockholm-ai | 187bda91d6bc5cfef89083b15836ec18e819a1b8 | [
"MIT"
] | null | null | null | keras_to_tfserving.py | sellpy/stockholm-ai | 187bda91d6bc5cfef89083b15836ec18e819a1b8 | [
"MIT"
] | null | null | null | """Should export."""
import os
import tensorflow as tf
import keras.backend as K
import sys
from keras.models import load_model, Model, Sequential
from tensorflow.python.saved_model import builder as saved_model_builder
from tensorflow.python.saved_model import tag_constants
from tensorflow.python.saved_model.signatur... | 30.943182 | 75 | 0.630187 | 327 | 2,723 | 5.006116 | 0.363914 | 0.030544 | 0.036652 | 0.045816 | 0.087966 | 0.043983 | 0 | 0 | 0 | 0 | 0 | 0.003083 | 0.285347 | 2,723 | 87 | 76 | 31.298851 | 0.83813 | 0.139185 | 0 | 0 | 0 | 0 | 0.060241 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.016129 | false | 0 | 0.129032 | 0 | 0.145161 | 0.048387 | 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 |
1861725ad366c5ec35e8b1fd7fdc17aa053f2e37 | 1,221 | py | Python | pandora-hub/pandora/app/sockets.py | williamlagos/django-coding | 246dc1aba32eae0b035c407de3e8fe954606b776 | [
"MIT"
] | null | null | null | pandora-hub/pandora/app/sockets.py | williamlagos/django-coding | 246dc1aba32eae0b035c407de3e8fe954606b776 | [
"MIT"
] | 21 | 2020-03-24T18:18:22.000Z | 2021-03-31T20:18:53.000Z | pandora-hub/pandora/app/sockets.py | efforia/dashboard | 246dc1aba32eae0b035c407de3e8fe954606b776 | [
"MIT"
] | null | null | null | #
# This file is part of Efforia project.
#
# Copyright (C) 2013 Diego Stuani Cavalli <diego.stuani.cavalli@gmail.com>
#
# Efforia is free software: you can redistribute it and/or modify
# it under the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation, either version 3 of the... | 29.071429 | 77 | 0.726454 | 176 | 1,221 | 5.022727 | 0.613636 | 0.016968 | 0.067873 | 0.052036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010142 | 0.192465 | 1,221 | 41 | 78 | 29.780488 | 0.88641 | 0.587224 | 0 | 0 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.25 | 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 |
18676782d298ed2656997c29a957a5eedc055cad | 1,737 | py | Python | tests/test_damson.py | xasync/lupin | ae4527761f6c98e30ab2e6e96e46fa48dda7563b | [
"Apache-2.0"
] | null | null | null | tests/test_damson.py | xasync/lupin | ae4527761f6c98e30ab2e6e96e46fa48dda7563b | [
"Apache-2.0"
] | null | null | null | tests/test_damson.py | xasync/lupin | ae4527761f6c98e30ab2e6e96e46fa48dda7563b | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import damson
from damson.constraint import Required, DataType, Between
from damson.exception import NotPassBetweenException, NotPassDataTypeException
import pytest
import mocks
def test_validate():
data = {'age': 18}
flag, errors = damson.validate(data, age=[Required(), ... | 27.571429 | 100 | 0.62464 | 219 | 1,737 | 4.872146 | 0.351598 | 0.104967 | 0.071228 | 0.048735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061345 | 0.221071 | 1,737 | 62 | 101 | 28.016129 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.048935 | 0.027058 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.177778 | false | 0.111111 | 0.133333 | 0.066667 | 0.422222 | 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 |
186bf1e2844f9297013d81bf2b5497674f7ccfda | 1,676 | py | Python | helper/calculus.py | spasal/fall-detector | 1a37420a919f3789a1fb038550f79ab826f1d7a1 | [
"MIT"
] | null | null | null | helper/calculus.py | spasal/fall-detector | 1a37420a919f3789a1fb038550f79ab826f1d7a1 | [
"MIT"
] | null | null | null | helper/calculus.py | spasal/fall-detector | 1a37420a919f3789a1fb038550f79ab826f1d7a1 | [
"MIT"
] | null | null | null | from math import atan2,degrees, sqrt, pow, acos
import numpy as np
def calculate_points(eig_vecs, mean_vec, axis_length):
points = []
points.append([]), points.append([])
index = 0
startpoint = mean_vec[0]
for direction in eig_vecs:
x_add, y_add = direction[0] * axis_length, direction... | 27.032258 | 94 | 0.607995 | 225 | 1,676 | 4.426667 | 0.368889 | 0.021084 | 0.01004 | 0.016064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071778 | 0.268496 | 1,676 | 61 | 95 | 27.47541 | 0.74062 | 0.144988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.076923 | false | 0 | 0.051282 | 0 | 0.205128 | 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 |
186f4d863cbcdceab0fc0a305f3384095cf9a58e | 2,023 | py | Python | tests/test_interpreter.py | GTOliver/Chucklebot | 488ee5476a731ebc89db2ae6d69d7de2fcd76925 | [
"Apache-2.0"
] | null | null | null | tests/test_interpreter.py | GTOliver/Chucklebot | 488ee5476a731ebc89db2ae6d69d7de2fcd76925 | [
"Apache-2.0"
] | null | null | null | tests/test_interpreter.py | GTOliver/Chucklebot | 488ee5476a731ebc89db2ae6d69d7de2fcd76925 | [
"Apache-2.0"
] | null | null | null | from chuckle_bot.ally_message import AllyMessage
from chuckle_bot.interpreter import Interpreter
def dummy_encounter_context():
class DummyEncounterContext:
def __init__(self):
self.participants = ['char_a', 'char_b']
return DummyEncounterContext()
def dummy_interpreter():
return Int... | 26.618421 | 100 | 0.669797 | 237 | 2,023 | 5.367089 | 0.261603 | 0.044025 | 0.042453 | 0.070755 | 0.326258 | 0.326258 | 0.263365 | 0.263365 | 0.263365 | 0.263365 | 0 | 0.005559 | 0.199703 | 2,023 | 76 | 101 | 26.618421 | 0.780111 | 0 | 0 | 0.245283 | 0 | 0 | 0.124506 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 1 | 0.226415 | false | 0 | 0.037736 | 0.037736 | 0.339623 | 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 |
1871ed243ba08d5aa62e3e05a483ddc6d3592aed | 2,705 | py | Python | App.py | mwaitzman/SimpleBulkImageComparisonTool | a7ee890a5894024376a78b3a5063fc4e8ac944d1 | [
"Unlicense"
] | 2 | 2021-07-03T11:29:45.000Z | 2021-08-09T00:13:58.000Z | App.py | mwaitzman/SimpleBulkImageComparisonTool | a7ee890a5894024376a78b3a5063fc4e8ac944d1 | [
"Unlicense"
] | null | null | null | App.py | mwaitzman/SimpleBulkImageComparisonTool | a7ee890a5894024376a78b3a5063fc4e8ac944d1 | [
"Unlicense"
] | null | null | null | import requests
import os
import sys
def remove_nonpicture_files(arr, file, extensions):
for extension in extensions:
if file.endswith("." + extension):
return
arr.remove(file)
return
print("Running " + sys.argv[0] + " with " + str(len(sys.argv)) + " args...")
if not(len(sys.argv) == 4... | 38.098592 | 308 | 0.58817 | 397 | 2,705 | 3.957179 | 0.327456 | 0.049013 | 0.020369 | 0.040738 | 0.129854 | 0.071292 | 0.071292 | 0.071292 | 0 | 0 | 0 | 0.051699 | 0.227726 | 2,705 | 70 | 309 | 38.642857 | 0.700335 | 0.018854 | 0 | 0.089552 | 0 | 0.044776 | 0.272247 | 0.035445 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.014925 | false | 0 | 0.044776 | 0 | 0.089552 | 0.208955 | 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 |
187320f87ab52c1561bd76504e7ab7ff036ca99f | 11,967 | py | Python | ambra_sdk/service/entrypoints/generated/session.py | dyens/sdk-python | 24bf05268af2832c70120b84fd53bf44862cffec | [
"Apache-2.0"
] | null | null | null | ambra_sdk/service/entrypoints/generated/session.py | dyens/sdk-python | 24bf05268af2832c70120b84fd53bf44862cffec | [
"Apache-2.0"
] | null | null | null | ambra_sdk/service/entrypoints/generated/session.py | dyens/sdk-python | 24bf05268af2832c70120b84fd53bf44862cffec | [
"Apache-2.0"
] | null | null | null | """ Session.
Do not edit this file by hand.
This is generated by parsing api.html service doc.
"""
from ambra_sdk.exceptions.service import AuthFailed
from ambra_sdk.exceptions.service import BadPassword
from ambra_sdk.exceptions.service import Blocked
from ambra_sdk.exceptions.service import Disabled
from ambra_sdk.e... | 35.722388 | 266 | 0.610679 | 1,332 | 11,967 | 5.290541 | 0.144144 | 0.11622 | 0.037463 | 0.06556 | 0.514687 | 0.497942 | 0.372215 | 0.346814 | 0.336455 | 0.318575 | 0 | 0.001073 | 0.298822 | 11,967 | 335 | 267 | 35.722388 | 0.838756 | 0.147238 | 0 | 0.498008 | 1 | 0.027888 | 0.280353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047809 | false | 0.035857 | 0.087649 | 0 | 0.183267 | 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 |
1877bb761655b6515813238cb2161834582ec724 | 14,608 | py | Python | HDP_HLM/SAMPLE2/summary.py | GUZHIXIANG/DAA_taguchi | 5c77f0a326b53e0cc908cf08714fd470870877ec | [
"MIT"
] | null | null | null | HDP_HLM/SAMPLE2/summary.py | GUZHIXIANG/DAA_taguchi | 5c77f0a326b53e0cc908cf08714fd470870877ec | [
"MIT"
] | null | null | null | HDP_HLM/SAMPLE2/summary.py | GUZHIXIANG/DAA_taguchi | 5c77f0a326b53e0cc908cf08714fd470870877ec | [
"MIT"
] | null | null | null | import numpy as np
from sklearn import metrics
import matplotlib
matplotlib.use('Agg') #in the case of perform on server
import matplotlib.pyplot as plt
import json, os, pickle, csv, argparse, multiprocessing, time
from paver.easy import pushd
#--------------------------------------multi process function---------------... | 43.867868 | 270 | 0.510337 | 1,802 | 14,608 | 3.960599 | 0.140955 | 0.023539 | 0.03643 | 0.016393 | 0.383915 | 0.289337 | 0.168278 | 0.141236 | 0.094017 | 0.076643 | 0 | 0.013766 | 0.273959 | 14,608 | 332 | 271 | 44 | 0.659155 | 0.098234 | 0 | 0.19863 | 0 | 0 | 0.102583 | 0.052367 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020548 | null | null | 0.047945 | 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 |
187ea18f1fd08ef1d0959c38c42072a07b2a64ea | 2,717 | py | Python | web/config.py | CptnDuras/steem-open-mic | a776dbf471b90113090036355b6b854972ef3b20 | [
"MIT"
] | 2 | 2018-04-30T06:31:13.000Z | 2018-05-03T01:30:18.000Z | web/config.py | CptnDuras/steem-open-mic | a776dbf471b90113090036355b6b854972ef3b20 | [
"MIT"
] | null | null | null | web/config.py | CptnDuras/steem-open-mic | a776dbf471b90113090036355b6b854972ef3b20 | [
"MIT"
] | null | null | null | ##########################################################
#
# This is a sample flask.cfg for developing the Flask App.
#
##########################################################
import os
from dotenv import load_dotenv
from pathlib import Path
env_path = Path('.') / '.env'
load_dotenv(dotenv_path=env_path)
# Set d... | 33.54321 | 108 | 0.732794 | 373 | 2,717 | 5.072386 | 0.375335 | 0.118922 | 0.071882 | 0.036998 | 0.223573 | 0.185518 | 0.073996 | 0 | 0 | 0 | 0 | 0.021586 | 0.11336 | 2,717 | 80 | 109 | 33.9625 | 0.763802 | 0.191388 | 0 | 0 | 0 | 0 | 0.357212 | 0.131655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.085106 | 0.06383 | 0 | 0.06383 | 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 |
187ef64f952aa2fad1597695139f7e89e8d2fec2 | 664 | py | Python | sendmail/flaskmail110/monitor.py | 5StevenWu/wemonitor | 54b73550a45ac83f437bf1c0ffe686792f4f6b5c | [
"Apache-2.0"
] | null | null | null | sendmail/flaskmail110/monitor.py | 5StevenWu/wemonitor | 54b73550a45ac83f437bf1c0ffe686792f4f6b5c | [
"Apache-2.0"
] | 6 | 2021-08-23T20:58:51.000Z | 2022-03-12T00:32:43.000Z | sendmail/flaskmail110/monitor.py | 5StevenWu/wemonitor | 54b73550a45ac83f437bf1c0ffe686792f4f6b5c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, request
import requests
import re
from send2alimail import sendmail
import time
app = Flask(__name__)
@app.route('/')
def index():
return 'mail110'
@app.route('/mail')
def mail():
return '发送邮件报警'
def passimsa():
response = reques... | 17.473684 | 51 | 0.629518 | 86 | 664 | 4.72093 | 0.593023 | 0.081281 | 0.093596 | 0.1133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034417 | 0.212349 | 664 | 37 | 52 | 17.945946 | 0.741874 | 0.162651 | 0 | 0 | 0 | 0 | 0.13587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.086957 | 0.217391 | 0.086957 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43e4e9933db8cfe13cd6ef87ac2be3fa2f0ea144 | 910 | py | Python | iotbx/detectors/test_mar.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/detectors/test_mar.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/detectors/test_mar.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
import sys
class ImageWorker(object):
def __init__(self,relpath):
from iotbx.detectors import mar
m = mar.MARImage(relpath)
m.read()
self.fi = m.get_flex_image()
self.fi.setWindow(1.0) #fraction of original image dimension written to graphics display
self.fi.ad... | 30.333333 | 92 | 0.687912 | 136 | 910 | 4.455882 | 0.558824 | 0.079208 | 0.064356 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01321 | 0.168132 | 910 | 29 | 93 | 31.37931 | 0.787318 | 0.127473 | 0 | 0 | 0 | 0 | 0.102402 | 0.046776 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 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 |
43e6a3bc5275d383b23e08b5c839734aad9acad7 | 318 | py | Python | setup.py | christopher-wolff/lab | 3e26beb30bfb88fef79558a8c1584ddb6c1843e9 | [
"MIT"
] | 2 | 2019-03-28T16:47:50.000Z | 2019-04-08T04:50:50.000Z | setup.py | christopher-wolff/rlsuite | 3e26beb30bfb88fef79558a8c1584ddb6c1843e9 | [
"MIT"
] | null | null | null | setup.py | christopher-wolff/rlsuite | 3e26beb30bfb88fef79558a8c1584ddb6c1843e9 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='rlsuite',
version='0.0.1',
description='A suite of basic reinforcement learning algorithms and environments.',
url='http://github.com/christopher-wolff/rlsuite',
author='Christopher Wolff',
license='MIT',
packages=find_packages()
)
| 26.5 | 87 | 0.710692 | 38 | 318 | 5.894737 | 0.789474 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.163522 | 318 | 11 | 88 | 28.909091 | 0.830827 | 0 | 0 | 0 | 0 | 0 | 0.449686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43ea85d9db79f60c51507d92186dc34bab295ede | 1,437 | py | Python | examples/probe/show_activations.py | MathGaron/pytorch_toolbox | 2afd13e50ba71dfce66467a4b070d9b922668502 | [
"MIT"
] | 10 | 2018-02-26T04:51:11.000Z | 2021-10-01T02:30:37.000Z | examples/probe/show_activations.py | MathGaron/pytorch_toolbox | 2afd13e50ba71dfce66467a4b070d9b922668502 | [
"MIT"
] | 9 | 2017-11-16T16:11:16.000Z | 2020-02-13T13:10:55.000Z | examples/probe/show_activations.py | MathGaron/pytorch_toolbox | 2afd13e50ba71dfce66467a4b070d9b922668502 | [
"MIT"
] | 7 | 2018-02-12T19:06:14.000Z | 2021-03-25T19:13:51.000Z | from PIL import Image
from torch.autograd import Variable
import numpy as np
import matplotlib.pyplot as plt
from examples.classification.cat_dog_net import CatDogNet
from pytorch_toolbox.transformations.image import Resize, Normalize, NumpyImage2Tensor
from pytorch_toolbox.transformations.to_float import ToFloat
from ... | 32.659091 | 86 | 0.683368 | 172 | 1,437 | 5.511628 | 0.459302 | 0.046414 | 0.075949 | 0.10443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022563 | 0.228949 | 1,437 | 43 | 87 | 33.418605 | 0.833032 | 0.07794 | 0 | 0 | 0 | 0 | 0.038552 | 0.016522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 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 |
43f1088ccaeeb644d461956a1d749bf4460b90b3 | 465 | py | Python | vpc_hyp2/fin_attach.py | dhanraj-vedanth/IaaS_VPC_CDN | 262dbc7db63d5e76398dadc8015256fb37986e36 | [
"MIT"
] | null | null | null | vpc_hyp2/fin_attach.py | dhanraj-vedanth/IaaS_VPC_CDN | 262dbc7db63d5e76398dadc8015256fb37986e36 | [
"MIT"
] | null | null | null | vpc_hyp2/fin_attach.py | dhanraj-vedanth/IaaS_VPC_CDN | 262dbc7db63d5e76398dadc8015256fb37986e36 | [
"MIT"
] | null | null | null | import os
import sys
tenant_check = int(sys.argv[1])
domain_name = sys.argv[2]
each = int(sys.argv[3])
#subnet = sys.argv[4]
# subnet_dict = sys.argv[5]
os.system("docker run --name " +str(domain_name) +" --cap-add=NET_ADMIN -itd main-vm")
print( "docker run --name " +str(domain_name) +" --cap-add=NET_ADMIN -itd main... | 31 | 86 | 0.694624 | 81 | 465 | 3.876543 | 0.444444 | 0.111465 | 0.063694 | 0.101911 | 0.617834 | 0.617834 | 0.617834 | 0.617834 | 0.617834 | 0.617834 | 0 | 0.012346 | 0.129032 | 465 | 14 | 87 | 33.214286 | 0.762963 | 0.098925 | 0 | 0 | 0 | 0 | 0.446043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.222222 | 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 |
43f1b4a39b78b229eff104cc22c6e539c18e1a2c | 731 | py | Python | tests/test-cases/basic/mnode_case.py | SMAT-Lab/Scalpel | 1022200043f2d9e8c24256821b863997ab34dd49 | [
"Apache-2.0"
] | 102 | 2021-12-15T09:08:48.000Z | 2022-03-24T15:15:25.000Z | tests/test-cases/basic/mnode_case.py | StarWatch27/Scalpel | 8853e6e84f318f3cfeda0e03d274748b2fbe30fa | [
"Apache-2.0"
] | 11 | 2021-12-04T11:48:31.000Z | 2022-03-21T09:21:45.000Z | tests/test-cases/basic/mnode_case.py | StarWatch27/Scalpel | 8853e6e84f318f3cfeda0e03d274748b2fbe30fa | [
"Apache-2.0"
] | 11 | 2021-12-04T11:47:41.000Z | 2022-02-06T09:04:39.000Z | from X import A
from X import B
from X.C import C2
from Y import D as d
from .. import Test
def main(a, b):
#def main(a, b, x=10, y=10, z = 10):
AA(a,b)
return 0
def AA(a,b):
BB()
CC()
x = d.xx()
return 0
def BB(a,b):
CC()
y = 10
return 0
def CC(a,b):
Test.fun(a,b)
z = 10... | 16.244444 | 51 | 0.50342 | 148 | 731 | 2.405405 | 0.222973 | 0.05618 | 0.168539 | 0.05618 | 0.359551 | 0.359551 | 0.359551 | 0.292135 | 0.261236 | 0.261236 | 0 | 0.110417 | 0.343365 | 731 | 44 | 52 | 16.613636 | 0.63125 | 0.04788 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.138889 | 0.083333 | 0.722222 | 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 |
43f592147658187ef9b72a05c52bf5228bb4c89d | 389 | py | Python | templates/django/FS_DJANGO_PROJECT_NAME/celeryconf.py | bmpenuelas/fill-stack | 3c09705f70f26f67150b9a5da62ac606727fd575 | [
"MIT"
] | 12 | 2020-06-02T15:07:21.000Z | 2021-07-11T23:28:40.000Z | templates/django/FS_DJANGO_PROJECT_NAME/celeryconf.py | bmpenuelas/fill-stack | 3c09705f70f26f67150b9a5da62ac606727fd575 | [
"MIT"
] | null | null | null | templates/django/FS_DJANGO_PROJECT_NAME/celeryconf.py | bmpenuelas/fill-stack | 3c09705f70f26f67150b9a5da62ac606727fd575 | [
"MIT"
] | 1 | 2020-06-15T20:00:00.000Z | 2020-06-15T20:00:00.000Z | # coding=UTF8
from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ FS_DJANGO_PROJECT_NAME }}.settings")
app = Celery('{{ FS_DJANGO_PROJECT_NAME }}')
CELERY_TIMEZONE = 'UTC'
app.config_from_object('django.con... | 22.882353 | 88 | 0.799486 | 52 | 389 | 5.634615 | 0.519231 | 0.068259 | 0.102389 | 0.129693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.095116 | 389 | 16 | 89 | 24.3125 | 0.829545 | 0.028278 | 0 | 0 | 0 | 0 | 0.292553 | 0.175532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 |
43f7546fbd05f4c36b45278bc79232727f0843d7 | 670 | py | Python | Data/Levels/Campaign/Level_4e5.py | irskep/gw0rp | f985c919141e19ee099766c18b7fe416f921836c | [
"MIT",
"BSD-3-Clause"
] | 1 | 2017-05-25T17:41:23.000Z | 2017-05-25T17:41:23.000Z | Data/Levels/Campaign/Level_4e5.py | irskep/gw0rp | f985c919141e19ee099766c18b7fe416f921836c | [
"MIT",
"BSD-3-Clause"
] | null | null | null | Data/Levels/Campaign/Level_4e5.py | irskep/gw0rp | f985c919141e19ee099766c18b7fe416f921836c | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from gamelib import event
B_RIGHT = 72 #to 4e4
def go_to(lev):
event.go_to_level("Level_4"+lev, True, True, True)
def go_4():
event.move_player(-44, 24)
go_to("e4")
def kill():
event.clear_ai_messages()
for i in range(300):
try:
o = event.get_object(i)
if hasat... | 23.103448 | 54 | 0.602985 | 101 | 670 | 3.762376 | 0.485149 | 0.031579 | 0.063158 | 0.084211 | 0.315789 | 0.315789 | 0.315789 | 0 | 0 | 0 | 0 | 0.038229 | 0.258209 | 670 | 29 | 55 | 23.103448 | 0.726358 | 0.008955 | 0 | 0.173913 | 0 | 0 | 0.106928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.043478 | 0.043478 | 0 | 0.26087 | 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 |
43fe5733bd3b0eae9864ce1d722da8a5a15bc6f0 | 52,376 | py | Python | rig/utils.py | fsanges/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 165 | 2015-01-26T05:22:04.000Z | 2022-03-22T02:50:41.000Z | rig/utils.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 5 | 2015-12-02T02:39:44.000Z | 2020-12-09T02:45:54.000Z | rig/utils.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 83 | 2015-02-10T17:18:24.000Z | 2022-02-10T07:16:47.000Z | import maya.cmds as mc
import glTools.utils.channelState
import glTools.utils.defaultAttrState
import glTools.utils.attribute
import glTools.utils.base
import glTools.utils.cleanup
import glTools.utils.colorize
import glTools.utils.component
import glTools.utils.connection
import glTools.utils.deformer
import glTools... | 33.552851 | 163 | 0.682526 | 6,415 | 52,376 | 5.568044 | 0.105846 | 0.015538 | 0.010387 | 0.017022 | 0.503626 | 0.437666 | 0.408802 | 0.366528 | 0.339847 | 0.311123 | 0 | 0.003733 | 0.15089 | 52,376 | 1,560 | 164 | 33.574359 | 0.799429 | 0.144074 | 0 | 0.397507 | 0 | 0 | 0.187484 | 0.008426 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00831 | 0.033241 | null | null | 0.045706 | 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 |
a10184cd402fdaba0383a2fe5e4a84289e12b6d1 | 2,295 | py | Python | script/test/galil_overall_listener.py | changyan100/BeihangEyerobot | fd3c268ad4608d82712ddd0fcb992f8265b0ac97 | [
"MIT"
] | 1 | 2020-09-22T01:06:44.000Z | 2020-09-22T01:06:44.000Z | script/test/galil_overall_listener.py | changyan100/BeihangEyerobot | fd3c268ad4608d82712ddd0fcb992f8265b0ac97 | [
"MIT"
] | null | null | null | script/test/galil_overall_listener.py | changyan100/BeihangEyerobot | fd3c268ad4608d82712ddd0fcb992f8265b0ac97 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# REMEMBER: chmod +x XX.py
import rospy
from galil_command import g_control
# use omni customed message type
from omni_msgs.msg import OmniState
from sensor_msgs.msg import JointState
from std_msgs.msg import Float32MultiArray
def callback1(data):
rospy.loginfo(rospy.get_caller_id() + " py... | 26.37931 | 80 | 0.67451 | 309 | 2,295 | 4.857605 | 0.423948 | 0.031979 | 0.025983 | 0.027981 | 0.123917 | 0.123917 | 0.090606 | 0.090606 | 0.090606 | 0.090606 | 0 | 0.022523 | 0.226144 | 2,295 | 86 | 81 | 26.686047 | 0.822635 | 0.348584 | 0 | 0.058824 | 0 | 0 | 0.094418 | 0.015162 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.117647 | false | 0 | 0.147059 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1098ea43e7241fde9ed177b07955aede02d1f0d | 1,134 | py | Python | django/django/db/backends/ado_mssql/creation.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | null | null | null | django/django/db/backends/ado_mssql/creation.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | null | null | null | django/django/db/backends/ado_mssql/creation.py | jonaustin/advisoryscan | ba452c155f0d478450e0c91de5ea00f404e98616 | [
"MIT"
] | 1 | 2018-12-06T12:50:52.000Z | 2018-12-06T12:50:52.000Z | DATA_TYPES = {
'AutoField': 'int IDENTITY (1, 1)',
'BooleanField': 'bit',
'CharField': 'varchar(%(maxlength)s)',
'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',
'DateField': 'smalldatetime',
'DateTimeField': 'smalldatetime',
'DecimalField': 'nume... | 42 | 109 | 0.573192 | 92 | 1,134 | 6.967391 | 0.608696 | 0.043682 | 0.079563 | 0.046802 | 0.071763 | 0.071763 | 0.071763 | 0 | 0 | 0 | 0 | 0.02093 | 0.241623 | 1,134 | 26 | 110 | 43.615385 | 0.724419 | 0 | 0 | 0 | 0 | 0 | 0.633157 | 0.16843 | 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 | 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 |
a10caf45628485f240ee78b40ae3f65c0d06a9a8 | 5,525 | py | Python | dump/body_bench_ctypes.py | ouseful-PR/pymunk | 4e304cc83a25c2486237bce102cd7db23d0b6a1a | [
"MIT"
] | 9 | 2019-10-09T13:38:53.000Z | 2021-12-08T14:12:57.000Z | pymunk-pymunk-4.0.0/dump/body_bench_ctypes.py | adrienchevrier/FollE_ML | 56d39bcbafa33d336255d21379c4fa3b7268fe20 | [
"MIT"
] | 9 | 2020-01-28T22:19:00.000Z | 2022-02-10T00:29:43.000Z | pymunk-pymunk-4.0.0/dump/body_bench_ctypes.py | adrienchevrier/FollE_ML | 56d39bcbafa33d336255d21379c4fa3b7268fe20 | [
"MIT"
] | null | null | null | import ctypes
from ctypes import *
#ctypes.cdll.LoadLibrary("libex.dylib")
chipmunk_lib = cdll.LoadLibrary("./ex.so")
function_pointer = CFUNCTYPE
#function_pointer = WINFUNCTYPE
float_type = c_double
cpFloat = c_double
#class Vec2d(): # this would be very fast in pypy
class Vec2d(ctypes.Structure):
"""2d vec... | 27.90404 | 86 | 0.566516 | 677 | 5,525 | 4.435746 | 0.25997 | 0.03663 | 0.05661 | 0.044955 | 0.320346 | 0.276057 | 0.265401 | 0.265401 | 0.234099 | 0.202131 | 0 | 0.019345 | 0.298281 | 5,525 | 197 | 87 | 28.045685 | 0.755223 | 0.068959 | 0 | 0.186667 | 0 | 0 | 0.062973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006667 | 0.046667 | null | null | 0.026667 | 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 |
a10e2ea7516b8d036bab401fd510147f8c215d23 | 703 | py | Python | scripts/echo_langcode.py | vsoto/MyBabler | 34ac309f4729d47826f6fe698fd4e3a21043ba14 | [
"Apache-2.0"
] | 26 | 2017-05-31T19:14:14.000Z | 2021-03-26T08:28:08.000Z | scripts/echo_langcode.py | vsoto/MyBabler | 34ac309f4729d47826f6fe698fd4e3a21043ba14 | [
"Apache-2.0"
] | 5 | 2021-03-14T04:05:50.000Z | 2021-12-10T07:42:27.000Z | scripts/echo_langcode.py | vsoto/MyBabler | 34ac309f4729d47826f6fe698fd4e3a21043ba14 | [
"Apache-2.0"
] | 14 | 2017-05-29T16:15:57.000Z | 2021-04-20T01:26:56.000Z | import pymongo
import sys
from pymongo import MongoClient
client = MongoClient()
db = client['scraping'] #get the database
lang = sys.argv[1]
## The database consists of 3 different collections
# 1. tweets
# 2. blog posts
# 3. forum posts
tweets = db['tweets']
blog_posts = db['blogPosts']
forum_posts = db['forumP... | 21.30303 | 62 | 0.715505 | 103 | 703 | 4.84466 | 0.456311 | 0.054108 | 0.12024 | 0.150301 | 0.204409 | 0.204409 | 0.204409 | 0.204409 | 0.204409 | 0.204409 | 0 | 0.013311 | 0.145092 | 703 | 32 | 63 | 21.96875 | 0.816972 | 0.290185 | 0 | 0.133333 | 0 | 0 | 0.195918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a10f116c6df732e17f5d897ddd39034ef5896e64 | 2,026 | py | Python | pages/insights.py | HunterAshby/Fresh_build | 173695a71350f6b356f02abac253f69b1f6cd590 | [
"MIT"
] | null | null | null | pages/insights.py | HunterAshby/Fresh_build | 173695a71350f6b356f02abac253f69b1f6cd590 | [
"MIT"
] | null | null | null | pages/insights.py | HunterAshby/Fresh_build | 173695a71350f6b356f02abac253f69b1f6cd590 | [
"MIT"
] | null | null | null | # Imports from 3rd party libraries
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
# Imports from this application
from app import app
# 1 column layout
# https://dash-bootstrap-components... | 49.414634 | 149 | 0.692004 | 316 | 2,026 | 4.417722 | 0.553797 | 0.028653 | 0.032951 | 0.018625 | 0.02149 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002743 | 0.280355 | 2,026 | 41 | 150 | 49.414634 | 0.954733 | 0.076012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a11292b22e686267940afe862fef8cfc4bbcff3e | 513 | py | Python | colors.py | px86/fisherman | 847a50e5301628ce475e7af1ef0508542db199f5 | [
"MIT"
] | 1 | 2022-02-12T13:02:54.000Z | 2022-02-12T13:02:54.000Z | colors.py | px86/fisherman | 847a50e5301628ce475e7af1ef0508542db199f5 | [
"MIT"
] | null | null | null | colors.py | px86/fisherman | 847a50e5301628ce475e7af1ef0508542db199f5 | [
"MIT"
] | null | null | null | '''Define terminal escape sequences for color codes.
<ESC>[{attr1};...;{attrn}m
0 Reset all attributes
1 Bright
2 Dim
4 Underscore
5 Blink
7 Reverse
8 Hidden
Foreground Colours
------------------
30 Black
31 Red
32 Green
33 Yellow
34 Blue
35 Magenta
36 Cyan
37 White
Background Colours
------------------
40 Black
41... | 11.4 | 52 | 0.633528 | 87 | 513 | 3.735632 | 0.816092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.181287 | 513 | 44 | 53 | 11.659091 | 0.62381 | 0.97076 | 0 | 0 | 0 | 0 | 0.484615 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a11403648f850c357b1c805827847731070e4794 | 15,830 | py | Python | simpa/utils/libraries/literature_values.py | IMSY-DKFZ/simpa | b8bddcf43a4bff2564f0ec208dc511b82e49bfb4 | [
"MIT"
] | 3 | 2022-03-14T15:40:09.000Z | 2022-03-20T02:34:25.000Z | simpa/utils/libraries/literature_values.py | jgroehl/simpa | e56f0802e5a8555ee8bb139dd4f776025e7e9267 | [
"MIT"
] | 3 | 2022-03-18T07:19:12.000Z | 2022-03-30T12:15:19.000Z | simpa/utils/libraries/literature_values.py | IMSY-DKFZ/simpa | b8bddcf43a4bff2564f0ec208dc511b82e49bfb4 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Division of Intelligent Medical Systems, DKFZ
# SPDX-FileCopyrightText: 2021 Janek Groehl
# SPDX-License-Identifier: MIT
class StandardProperties:
"""
This class contains a listing of default parameters that can be used.
These values are sensible default values but are gener... | 40.589744 | 146 | 0.682186 | 2,163 | 15,830 | 4.822006 | 0.331946 | 0.016107 | 0.007478 | 0.009396 | 0.212081 | 0.177852 | 0.133941 | 0.103164 | 0.103164 | 0.087824 | 0 | 0.06826 | 0.230954 | 15,830 | 389 | 147 | 40.694087 | 0.788484 | 0.623816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002571 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a1165a66ad5a4092bfe6456ae843524373b40a06 | 2,776 | py | Python | behaviors/behavior_simplemissionerror/src/behavior_simplemissionerror/simplemissionerror_sm.py | tu-darmstadt-ros-pkg/hector_flexbe_behavior | 0ef7980653dea369b300330f7a9b1312bcef720e | [
"BSD-3-Clause"
] | 1 | 2021-06-03T20:15:56.000Z | 2021-06-03T20:15:56.000Z | behaviors/behavior_simplemissionerror/src/behavior_simplemissionerror/simplemissionerror_sm.py | tu-darmstadt-ros-pkg/hector_flexbe_behavior | 0ef7980653dea369b300330f7a9b1312bcef720e | [
"BSD-3-Clause"
] | 1 | 2018-03-14T07:10:01.000Z | 2018-03-14T07:10:01.000Z | behaviors/behavior_simplemissionerror/src/behavior_simplemissionerror/simplemissionerror_sm.py | tu-darmstadt-ros-pkg/hector_flexbe_behavior | 0ef7980653dea369b300330f7a9b1312bcef720e | [
"BSD-3-Clause"
] | 3 | 2016-06-09T15:29:02.000Z | 2020-02-05T14:59:32.000Z | #!/usr/bin/env python
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] tags will be kept. ... | 31.545455 | 161 | 0.650216 | 278 | 2,776 | 6.356115 | 0.44964 | 0.025467 | 0.022637 | 0.03622 | 0.18223 | 0.18223 | 0.18223 | 0.18223 | 0.139219 | 0.091681 | 0 | 0.017668 | 0.184438 | 2,776 | 87 | 162 | 31.908046 | 0.762809 | 0.289265 | 0 | 0.2 | 1 | 0 | 0.198183 | 0.015332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 0 | 0.3 | 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 |
a120f1f7c163b79e05d9a84da09fc35bd2cb1c99 | 39,193 | py | Python | util/minorview/model.py | qianlong4526888/haha | 01baf923693873c11ae072ce4dde3d8f1d7b6239 | [
"BSD-3-Clause"
] | 135 | 2016-10-21T03:31:49.000Z | 2022-03-25T01:22:20.000Z | util/minorview/model.py | qianlong4526888/haha | 01baf923693873c11ae072ce4dde3d8f1d7b6239 | [
"BSD-3-Clause"
] | 35 | 2017-03-10T17:57:46.000Z | 2022-02-18T17:34:16.000Z | util/minorview/model.py | qianlong4526888/haha | 01baf923693873c11ae072ce4dde3d8f1d7b6239 | [
"BSD-3-Clause"
] | 48 | 2016-12-08T12:03:13.000Z | 2022-02-16T09:16:13.000Z | # Copyright (c) 2013 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality o... | 35.309009 | 78 | 0.549307 | 4,532 | 39,193 | 4.622904 | 0.144748 | 0.005489 | 0.00988 | 0.010023 | 0.22691 | 0.158942 | 0.129874 | 0.101236 | 0.075939 | 0.063386 | 0 | 0.005697 | 0.350598 | 39,193 | 1,109 | 79 | 35.340848 | 0.81746 | 0.093512 | 0 | 0.268542 | 0 | 0.002558 | 0.041035 | 0.005673 | 0 | 0 | 0 | 0.000902 | 0 | 0 | null | null | 0.002558 | 0.01023 | null | null | 0.026854 | 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 |
a124c8bc31d29f57226843f70702f379bd5814fc | 672 | py | Python | app/migrations/0003_alter_product_image_alter_user_avatar.py | kennedybabu/sneakers | e598fdd2312281fd37bfcada2998804aea443d3e | [
"Unlicense"
] | null | null | null | app/migrations/0003_alter_product_image_alter_user_avatar.py | kennedybabu/sneakers | e598fdd2312281fd37bfcada2998804aea443d3e | [
"Unlicense"
] | null | null | null | app/migrations/0003_alter_product_image_alter_user_avatar.py | kennedybabu/sneakers | e598fdd2312281fd37bfcada2998804aea443d3e | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-23 05:55
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0002_alter_product_image_alter_user_avatar'),
]
operations = [
migrations.AlterField(
model_name='produc... | 26.88 | 102 | 0.629464 | 72 | 672 | 5.708333 | 0.569444 | 0.116788 | 0.121655 | 0.141119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0501 | 0.25744 | 672 | 24 | 103 | 28 | 0.773547 | 0.066964 | 0 | 0.222222 | 1 | 0 | 0.1232 | 0.0672 | 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 |
a12501666d009fb94aff490fa8a6fe8cdfc6b6c6 | 195 | py | Python | tests/test_get_all_bench.py | hansroh/aquests | 9de84cfff84ff5d5179d16c5c1f7be3487516843 | [
"MIT"
] | 8 | 2017-02-23T19:24:43.000Z | 2018-07-10T20:58:52.000Z | tests/test_get_all_bench.py | hansroh/aquests | 9de84cfff84ff5d5179d16c5c1f7be3487516843 | [
"MIT"
] | 1 | 2017-02-23T19:52:51.000Z | 2017-02-25T04:05:34.000Z | tests/test_get_all_bench.py | hansroh/aquests | 9de84cfff84ff5d5179d16c5c1f7be3487516843 | [
"MIT"
] | null | null | null | import aquests
def get_all_20_cs10 ():
aquests.configure (2000, http2_constreams = 1, force_http1 = 1)
for i in range (3000):
aquests.get ("http://127.0.0.1:5000/")
aquests.fetchall ()
| 19.5 | 64 | 0.687179 | 31 | 195 | 4.16129 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159509 | 0.164103 | 195 | 9 | 65 | 21.666667 | 0.631902 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
a128c33d2747cc9a95ca2f9266665a2f9a9c2151 | 515 | py | Python | kaiju/tests/little_app_callable.py | nlw0/kaiju | d3552ccabec899059d98000c71070da28d9b1527 | [
"MIT"
] | null | null | null | kaiju/tests/little_app_callable.py | nlw0/kaiju | d3552ccabec899059d98000c71070da28d9b1527 | [
"MIT"
] | null | null | null | kaiju/tests/little_app_callable.py | nlw0/kaiju | d3552ccabec899059d98000c71070da28d9b1527 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import little_app
import bson
import sys
from kaiju.arguments import ObjectId
from kaiju.cli import KaijuCLI
cli = KaijuCLI(little_app.trilotest.operations,
description="Little test app")
gargs, opargs = cli.parse_args(sys.argv[1:])
little_app.trilotest.handle_kaiju_... | 22.391304 | 65 | 0.724272 | 69 | 515 | 5.304348 | 0.521739 | 0.098361 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002358 | 0.176699 | 515 | 22 | 66 | 23.409091 | 0.860849 | 0.038835 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.133333 | 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 |
a12f3afee3fce617a9dedfb322f37b8ead657b3c | 1,452 | py | Python | alerts/streamtip/support.py | isabella232/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 14 | 2016-04-30T00:00:02.000Z | 2022-03-31T14:52:37.000Z | alerts/streamtip/support.py | google/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 9 | 2016-05-03T12:30:09.000Z | 2018-09-10T01:46:02.000Z | alerts/streamtip/support.py | isabella232/mirandum | 758286dfef5801747cade7902bc234d14b85de52 | [
"Apache-2.0"
] | 11 | 2016-04-30T08:12:07.000Z | 2021-10-21T04:25:41.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 37.230769 | 102 | 0.661846 | 197 | 1,452 | 4.837563 | 0.624365 | 0.062959 | 0.027282 | 0.033578 | 0.048269 | 0.048269 | 0 | 0 | 0 | 0 | 0 | 0.014401 | 0.234848 | 1,452 | 38 | 103 | 38.210526 | 0.843384 | 0.402204 | 0 | 0 | 0 | 0.043478 | 0.170188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.043478 | 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 |
a13975c6549354a97a415ba4734c70854a54a2b4 | 482 | py | Python | main/migrations/0007_auto_20200228_1655.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 5 | 2021-08-16T16:32:41.000Z | 2022-02-22T03:47:49.000Z | main/migrations/0007_auto_20200228_1655.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 7 | 2021-04-12T14:48:48.000Z | 2022-02-14T08:30:57.000Z | main/migrations/0007_auto_20200228_1655.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2021-04-28T14:28:34.000Z | 2021-04-28T14:28:34.000Z | # Generated by Django 2.0 on 2020-02-28 11:10
from django.db import migrations, models
import main.models
class Migration(migrations.Migration):
dependencies = [
('main', '0006_auto_20200120_1628'),
]
operations = [
migrations.AlterField(
model_name='user',
name=... | 24.1 | 135 | 0.641079 | 55 | 482 | 5.490909 | 0.727273 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081744 | 0.238589 | 482 | 19 | 136 | 25.368421 | 0.741144 | 0.089212 | 0 | 0 | 1 | 0 | 0.160183 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
a1398f0c6c09395aa67412489c17ea977cbac44e | 1,325 | py | Python | 2021-02-16/solution.py | ammardodin/daily-coding-problem | 8cdc335912ffe35a9e5b5f58d505541537878efb | [
"MIT"
] | null | null | null | 2021-02-16/solution.py | ammardodin/daily-coding-problem | 8cdc335912ffe35a9e5b5f58d505541537878efb | [
"MIT"
] | null | null | null | 2021-02-16/solution.py | ammardodin/daily-coding-problem | 8cdc335912ffe35a9e5b5f58d505541537878efb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# The missing value is always in range 1...len(nums)+1
# linear space and time
def find_first_missing(nums):
seen = [False] * len(nums)
for n in nums:
if n >= 1 and n <= len(nums):
seen[n-1] = True
for i in range(len(nums)):
if not seen[i]:
... | 29.444444 | 88 | 0.584151 | 238 | 1,325 | 3.168067 | 0.281513 | 0.129973 | 0.169761 | 0.175066 | 0.3687 | 0.297082 | 0.236074 | 0.209549 | 0.140584 | 0.068966 | 0 | 0.055672 | 0.281509 | 1,325 | 45 | 89 | 29.444444 | 0.736345 | 0.284528 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.222222 | 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 |
a141c99c7ce259b0b04731ce9c133dd9685ca575 | 550 | py | Python | tasks/pytask.py | PeopleNet/common | 17526c02a2bde2f4d3ca1f1429a63d3e9f9b2ece | [
"MIT"
] | null | null | null | tasks/pytask.py | PeopleNet/common | 17526c02a2bde2f4d3ca1f1429a63d3e9f9b2ece | [
"MIT"
] | null | null | null | tasks/pytask.py | PeopleNet/common | 17526c02a2bde2f4d3ca1f1429a63d3e9f9b2ece | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os, sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python_task_helper', 'files'))
from task_helper import TaskHelper
class PyTask(TaskHelper):
def task(self, args):
return {'result': 'Hi, this is a python task and my name is '+args['name']}
if __name... | 30.555556 | 99 | 0.701818 | 79 | 550 | 4.670886 | 0.632911 | 0.081301 | 0.086721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138182 | 550 | 17 | 100 | 32.352941 | 0.778481 | 0.370909 | 0 | 0 | 0 | 0 | 0.252199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.625 | 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 |
a1428a1cfcdf2f37da359e1f5717689dc88a70d5 | 1,769 | py | Python | tests/test_core/test_items/test_item_search.py | spacemanspiff2007/HABApp | 3b21a95a768f003524c13464e0970e9426e8607c | [
"Apache-2.0"
] | 44 | 2018-12-13T08:46:44.000Z | 2022-03-07T03:23:21.000Z | tests/test_core/test_items/test_item_search.py | spacemanspiff2007/HABApp | 3b21a95a768f003524c13464e0970e9426e8607c | [
"Apache-2.0"
] | 156 | 2019-03-02T20:53:31.000Z | 2022-03-23T13:13:58.000Z | tests/test_core/test_items/test_item_search.py | spacemanspiff2007/HABApp | 3b21a95a768f003524c13464e0970e9426e8607c | [
"Apache-2.0"
] | 18 | 2019-03-08T07:13:21.000Z | 2022-03-22T19:52:31.000Z | import pytest
from HABApp import Rule
from HABApp.core import Items
from HABApp.core.items import Item, BaseValueItem
from HABApp.openhab.items import OpenhabItem, SwitchItem
def test_search_type():
item1 = BaseValueItem('item_1')
item2 = Item('item_2')
assert Rule.get_items() == []
Items.add_item(... | 28.079365 | 114 | 0.665348 | 238 | 1,769 | 4.777311 | 0.189076 | 0.104661 | 0.17942 | 0.253298 | 0.51803 | 0.486368 | 0.432718 | 0.288478 | 0.233949 | 0.233949 | 0 | 0.041497 | 0.169022 | 1,769 | 62 | 115 | 28.532258 | 0.731973 | 0 | 0 | 0.268293 | 0 | 0 | 0.072923 | 0 | 0 | 0 | 0 | 0 | 0.390244 | 1 | 0.097561 | false | 0 | 0.121951 | 0 | 0.219512 | 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 |
a144e300ee825731e571bf2de42dcea28a2e97e5 | 1,948 | py | Python | taxcalc/behavior.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | taxcalc/behavior.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | taxcalc/behavior.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | import numpy as np
import copy
def update_income(behavioral_effect, calcY):
delta_inc = np.where(calcY.c00100 > 0, behavioral_effect, 0)
# Attribute the behavioral effects across itemized deductions,
# wages, and other income.
_itemized = np.where(calcY.c04470 < calcY._standard,
... | 28.647059 | 74 | 0.672485 | 250 | 1,948 | 5.028 | 0.352 | 0.072395 | 0.045346 | 0.052506 | 0.05887 | 0.05887 | 0 | 0 | 0 | 0 | 0 | 0.075574 | 0.23922 | 1,948 | 67 | 75 | 29.074627 | 0.772605 | 0.2423 | 0 | 0.096774 | 0 | 0 | 0.008287 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.193548 | 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 |
a149b5cacbba36e3086ba31080411081b01e439e | 1,084 | py | Python | snafu/installations.py | uranusjr/snafu | ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331 | [
"ISC"
] | 27 | 2017-10-09T02:41:23.000Z | 2020-12-18T22:42:55.000Z | snafu/installations.py | imbi7py/snafu | ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331 | [
"ISC"
] | 10 | 2017-12-20T02:24:54.000Z | 2018-02-22T17:10:04.000Z | snafu/installations.py | imbi7py/snafu | ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331 | [
"ISC"
] | 1 | 2020-12-19T05:56:54.000Z | 2020-12-19T05:56:54.000Z | import contextlib
import itertools
import os
import pathlib
import re
import subprocess
import attr
@attr.s
class Installation:
path = attr.ib(convert=pathlib.Path)
@property
def python(self):
return self.path.joinpath('python.exe')
@property
def scripts_dir(self):
return self.... | 24.636364 | 75 | 0.609779 | 128 | 1,084 | 5.109375 | 0.460938 | 0.061162 | 0.06422 | 0.055046 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254613 | 1,084 | 43 | 76 | 25.209302 | 0.809406 | 0 | 0 | 0.088235 | 0 | 0 | 0.071956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.205882 | 0.088235 | 0.558824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a149dd23f88f7ce136318c590d2e37223a49ff7f | 19,793 | py | Python | sympy/simplify/tests/test_fu.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/simplify/tests/test_fu.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/simplify/tests/test_fu.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | from sympy import (
Add,
Mul,
S,
Symbol,
cos,
cot,
pi,
I,
sin,
sqrt,
tan,
root,
csc,
sec,
powsimp,
symbols,
sinh,
cosh,
tanh,
coth,
sech,
csch,
Dummy,
Rational,
)
from sympy.simplify.fu import (
L,
TR1,
TR10,
... | 33.434122 | 88 | 0.447178 | 3,491 | 19,793 | 2.504726 | 0.056717 | 0.051235 | 0.016011 | 0.006862 | 0.54849 | 0.445906 | 0.359561 | 0.319076 | 0.291857 | 0.227928 | 0 | 0.087361 | 0.315263 | 19,793 | 591 | 89 | 33.490694 | 0.55781 | 0.028849 | 0 | 0.141414 | 0 | 0 | 0.000156 | 0 | 0 | 0 | 0 | 0 | 0.40404 | 1 | 0.054545 | false | 0 | 0.010101 | 0 | 0.064646 | 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 |
a14abc3f567e7619cfc6163a11b9aa2ab70c8e1f | 167 | py | Python | Python/Chapter07/progex07_6.py | msiplab/EicProgLab | 4ca523d09c3b414fceda10f3cff055e94fbcc2a9 | [
"MIT"
] | 1 | 2021-04-16T04:26:05.000Z | 2021-04-16T04:26:05.000Z | Python/Chapter07/progex07_6.py | msiplab/EicProgLab | 4ca523d09c3b414fceda10f3cff055e94fbcc2a9 | [
"MIT"
] | null | null | null | Python/Chapter07/progex07_6.py | msiplab/EicProgLab | 4ca523d09c3b414fceda10f3cff055e94fbcc2a9 | [
"MIT"
] | 2 | 2020-06-30T02:11:18.000Z | 2021-08-09T04:44:16.000Z | """ラムダ式のサンプル"""
from random import gauss
f = lambda x: 2.0*x + gauss(0,0.01)
for n in range(10):
x = 0.1 * n
print('f({0: 4.3f}) ~ {1: 4.3f}'.format(x,f(x))) | 20.875 | 52 | 0.538922 | 36 | 167 | 2.5 | 0.583333 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0.209581 | 167 | 8 | 52 | 20.875 | 0.560606 | 0.053892 | 0 | 0 | 0 | 0 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
a14fb1c51ef31bdef03af0c40daed090d71917a1 | 2,911 | py | Python | Level17_Cookie.py | z-Wind/Python_Challenge | be91ed491be57a1b9bf4b6d6bcb8ca23f48ef81b | [
"MIT"
] | null | null | null | Level17_Cookie.py | z-Wind/Python_Challenge | be91ed491be57a1b9bf4b6d6bcb8ca23f48ef81b | [
"MIT"
] | null | null | null | Level17_Cookie.py | z-Wind/Python_Challenge | be91ed491be57a1b9bf4b6d6bcb8ca23f48ef81b | [
"MIT"
] | null | null | null | # http://www.pythonchallenge.com/pc/return/romance.html
__author__ = 'chihchieh.sun'
import urllib.request
import urllib.error
import urllib.parse
import http.cookiejar
import re
import bz2
import xmlrpc.client
def unquote_plus_to_bytes(s):
if isinstance(s, bytes):
s = s.replace(b'+', b' ')... | 30.010309 | 94 | 0.678117 | 355 | 2,911 | 5.456338 | 0.349296 | 0.087248 | 0.079504 | 0.090346 | 0.46825 | 0.440372 | 0.423335 | 0.423335 | 0.378937 | 0.378937 | 0 | 0.005485 | 0.185847 | 2,911 | 96 | 95 | 30.322917 | 0.811814 | 0.082446 | 0 | 0.229508 | 0 | 0 | 0.1627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0.098361 | 0.114754 | 0 | 0.180328 | 0.114754 | 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 |
a1542228b1d74e391305461bf0a63ceb5f3a078b | 4,709 | py | Python | components/base_com/comEXT.py | bforest-ariadne/Live-AV-Template | 6b663c3757c15ab5695a22d42001b35f7c8db925 | [
"MIT"
] | 2 | 2019-08-30T01:22:56.000Z | 2019-11-02T02:36:00.000Z | components/base_com/comEXT.py | bforest-ariadne/Live-AV-Template | 6b663c3757c15ab5695a22d42001b35f7c8db925 | [
"MIT"
] | null | null | null | components/base_com/comEXT.py | bforest-ariadne/Live-AV-Template | 6b663c3757c15ab5695a22d42001b35f7c8db925 | [
"MIT"
] | null | null | null | '''
Matthew Ragan | matthewragan.com
'''
import socket
import json
# parComMOD = mod('/IO/base_com/parComMOD')
import parComMOD
class Com:
'''
This is a bare bones Communcation class.
This sample class has several important features that can be described here.
Notes
... | 31.604027 | 103 | 0.506265 | 467 | 4,709 | 5.036403 | 0.37045 | 0.021259 | 0.022959 | 0.017857 | 0.061224 | 0.061224 | 0.061224 | 0.061224 | 0.061224 | 0.061224 | 0 | 0.00144 | 0.410278 | 4,709 | 148 | 104 | 31.817568 | 0.845517 | 0.571459 | 0 | 0.125 | 0 | 0 | 0.050667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.075 | 0 | 0.225 | 0.05 | 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 |
a1559e85341f4419db413aeb430a26dc65a209dd | 1,423 | py | Python | hostel_project/hostel_webapp/migrations/0001_initial.py | harsh-ux/hostel-app | 89c341d55116913de81a3c7bd8a08d77729c39cb | [
"MIT"
] | null | null | null | hostel_project/hostel_webapp/migrations/0001_initial.py | harsh-ux/hostel-app | 89c341d55116913de81a3c7bd8a08d77729c39cb | [
"MIT"
] | 12 | 2020-08-18T08:06:40.000Z | 2021-09-22T19:32:06.000Z | hostel_project/hostel_webapp/migrations/0001_initial.py | harsh-ux/hostel-app | 89c341d55116913de81a3c7bd8a08d77729c39cb | [
"MIT"
] | 4 | 2020-08-03T06:49:44.000Z | 2020-08-03T20:05:24.000Z | # Generated by Django 2.2 on 2020-08-05 14:27
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
... | 36.487179 | 119 | 0.587491 | 142 | 1,423 | 5.760563 | 0.492958 | 0.04401 | 0.066015 | 0.08802 | 0.327628 | 0.193154 | 0.193154 | 0.193154 | 0.193154 | 0.193154 | 0 | 0.024272 | 0.276177 | 1,423 | 38 | 120 | 37.447368 | 0.769903 | 0.030218 | 0 | 0.322581 | 1 | 0 | 0.089985 | 0.015239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.225806 | 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 |
a15a276f7266cc395f4ce5920743d0316a681b9b | 2,145 | py | Python | Vol3B/WebScraping1/solutions.py | joshualy/numerical_computing | 9f474e36fe85ae663bd20e2f2d06265d1f095173 | [
"CC-BY-3.0"
] | null | null | null | Vol3B/WebScraping1/solutions.py | joshualy/numerical_computing | 9f474e36fe85ae663bd20e2f2d06265d1f095173 | [
"CC-BY-3.0"
] | null | null | null | Vol3B/WebScraping1/solutions.py | joshualy/numerical_computing | 9f474e36fe85ae663bd20e2f2d06265d1f095173 | [
"CC-BY-3.0"
] | 1 | 2019-11-05T14:45:03.000Z | 2019-11-05T14:45:03.000Z | from bs4 import BeautifulSoup
import re
#Problem 1
# Part 1
print 'html', 'head', 'title', 'meta', 'style', 'body', 'div', 'h1', 'p', 'a'
# Part 2
print "text/css"
#Problem 2
html_doc = """
<html><head><title>The Three Stooges</title></head>
<body>
<p class="title"><b>The Three Stooges</b></p>
<p cl... | 29.383562 | 207 | 0.701632 | 343 | 2,145 | 4.309038 | 0.344023 | 0.074425 | 0.060893 | 0.08931 | 0.29161 | 0.221922 | 0.170501 | 0.079838 | 0.079838 | 0.079838 | 0 | 0.026175 | 0.127273 | 2,145 | 73 | 208 | 29.383562 | 0.763355 | 0.169697 | 0 | 0.052632 | 0 | 0.078947 | 0.42891 | 0.085308 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.078947 | 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 |
a15bf294c7a8f8a64fa4c150d55c3cdd87b531e4 | 416 | py | Python | setup.py | WanderingStar/munin-netgear-cm500 | 9643cf3775632c0092b97a698c8d9c4516dd96fc | [
"MIT"
] | 1 | 2019-12-27T00:40:18.000Z | 2019-12-27T00:40:18.000Z | setup.py | WanderingStar/munin-netgear-cm500 | 9643cf3775632c0092b97a698c8d9c4516dd96fc | [
"MIT"
] | null | null | null | setup.py | WanderingStar/munin-netgear-cm500 | 9643cf3775632c0092b97a698c8d9c4516dd96fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='cm500',
version='1.0',
description='Python Distribution Utilities',
author='Aneel Nazareth',
author_email='github-python@account.loath.org',
url='https://github.com/WanderingStar/munin-netgear-cm500.git',
requires=[... | 27.733333 | 69 | 0.658654 | 48 | 416 | 5.6875 | 0.770833 | 0.087912 | 0.124542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041056 | 0.180288 | 416 | 14 | 70 | 29.714286 | 0.759531 | 0.048077 | 0 | 0 | 0 | 0 | 0.458228 | 0.15443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
a16dcef7c160684027947b0b41a4151d82959c7e | 2,699 | py | Python | Scripts/simulation/situations/complex/paparazzi_lock_out_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/situations/complex/paparazzi_lock_out_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/situations/complex/paparazzi_lock_out_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\situations\complex\paparazzi_lock_out_situation.py
# Compiled at: 2018-09-17 20:18:03
# Size of sour... | 44.983333 | 159 | 0.792145 | 316 | 2,699 | 6.458861 | 0.427215 | 0.057325 | 0.039196 | 0.058795 | 0.084762 | 0.081823 | 0.056835 | 0.029397 | 0 | 0 | 0 | 0.029085 | 0.133753 | 2,699 | 60 | 160 | 44.983333 | 0.843884 | 0.123009 | 0 | 0.142857 | 0 | 0 | 0.034731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.047619 | 0.214286 | 0.095238 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a17433a160d7b34bda88fd8cb55ec71ea7cd3bed | 978 | py | Python | code/handshake_intercept_test.py | MartinHarvey/WiFI-Audit-Device-Final-Project | ea72d30729fd0b27a14296f26a8f46d77d3d3426 | [
"MIT"
] | null | null | null | code/handshake_intercept_test.py | MartinHarvey/WiFI-Audit-Device-Final-Project | ea72d30729fd0b27a14296f26a8f46d77d3d3426 | [
"MIT"
] | null | null | null | code/handshake_intercept_test.py | MartinHarvey/WiFI-Audit-Device-Final-Project | ea72d30729fd0b27a14296f26a8f46d77d3d3426 | [
"MIT"
] | null | null | null | import handshake_intercept
import sys
import subprocess
def test_iface():
#Check if there is no monitor interface
assert handshake_intercept.check_iface()
#create a monitor iface
handshake_intercept.create_iface()
#Assert there is a monitor iface
assert not handshake_intercept.check_iface()
... | 34.928571 | 75 | 0.724949 | 138 | 978 | 4.971014 | 0.376812 | 0.209913 | 0.100583 | 0.122449 | 0.099125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.186094 | 978 | 28 | 76 | 34.928571 | 0.856784 | 0.213701 | 0 | 0.105263 | 0 | 0 | 0.117955 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a175d6c22e29ea08a25eec3d13735640f8d68131 | 1,232 | py | Python | tagopsdb/model/asset.py | ifwe/tagopsdb | 5455810cb9ccdd0803975a2513741c43313b1b7d | [
"Apache-2.0"
] | null | null | null | tagopsdb/model/asset.py | ifwe/tagopsdb | 5455810cb9ccdd0803975a2513741c43313b1b7d | [
"Apache-2.0"
] | 1 | 2021-03-25T21:57:08.000Z | 2021-03-25T21:57:08.000Z | tagopsdb/model/asset.py | ifwe/tagopsdb | 5455810cb9ccdd0803975a2513741c43313b1b7d | [
"Apache-2.0"
] | 1 | 2016-08-02T06:05:58.000Z | 2016-08-02T06:05:58.000Z | # Copyright 2016 Ifwe Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 33.297297 | 74 | 0.723214 | 169 | 1,232 | 5.218935 | 0.627219 | 0.068027 | 0.029478 | 0.036281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.181818 | 1,232 | 36 | 75 | 34.222222 | 0.861111 | 0.443182 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a1799385649bc1898233aaa1caceb58b47539559 | 2,240 | py | Python | app/src/app/endpoints/prompt/new.py | require-id/core | 63415602106c0d742cd868050654272d58109e74 | [
"MIT"
] | 2 | 2020-04-02T09:57:10.000Z | 2021-03-26T05:40:12.000Z | app/src/app/endpoints/prompt/new.py | require-id/core | 63415602106c0d742cd868050654272d58109e74 | [
"MIT"
] | null | null | null | app/src/app/endpoints/prompt/new.py | require-id/core | 63415602106c0d742cd868050654272d58109e74 | [
"MIT"
] | null | null | null | import datetime
import uuid
from app.shared import schema
from app.shared.data import load, store
from app.shared.handler import lambda_handler
from app.shared.utils import is_expired, sha3
SCHEMA = schema.Schema(
prompt_user_hash=schema.HASH | schema.REQUIRED,
timestamp=(schema.TIMESTAMP, lambda: datetime.da... | 35.555556 | 115 | 0.661607 | 260 | 2,240 | 5.546154 | 0.319231 | 0.041609 | 0.058252 | 0.069348 | 0.14147 | 0.023578 | 0.023578 | 0.023578 | 0 | 0 | 0 | 0.011952 | 0.215625 | 2,240 | 62 | 116 | 36.129032 | 0.808765 | 0.012054 | 0 | 0.156863 | 0 | 0 | 0.161086 | 0.019005 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0.039216 | 0.117647 | 0 | 0.196078 | 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 |
a17ff17c586b4c4594c4ea16282b387039ec47f7 | 2,125 | py | Python | book-code/Chapter-7/mongodb/pymongo_example.py | holtkampjs/photogallery | e74aff437335beb2085df3a2f0d892ce986a4c09 | [
"MIT"
] | 2 | 2022-02-24T22:29:49.000Z | 2022-03-01T19:34:47.000Z | book-code/Chapter-7/mongodb/pymongo_example.py | holtkampjs/photogallery | e74aff437335beb2085df3a2f0d892ce986a4c09 | [
"MIT"
] | 3 | 2022-03-01T18:21:59.000Z | 2022-03-08T20:42:35.000Z | book-code/Chapter-7/mongodb/pymongo_example.py | holtkampjs/photogallery | e74aff437335beb2085df3a2f0d892ce986a4c09 | [
"MIT"
] | null | null | null | '''
MIT License
Copyright (c) 2019 Arshdeep Bahga and Vijay Madisetti
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 limitation the rights
to use, copy, mo... | 31.25 | 78 | 0.702118 | 297 | 2,125 | 5.020202 | 0.589226 | 0.059021 | 0.017438 | 0.024145 | 0.033535 | 0.033535 | 0 | 0 | 0 | 0 | 0 | 0.018845 | 0.225882 | 2,125 | 67 | 79 | 31.716418 | 0.887538 | 0.021647 | 0 | 0.117647 | 0 | 0 | 0.37871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.058824 | 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 |
a183a892b3e19b7f0d1d3bb207d2ea4024d36f26 | 465 | py | Python | notebooks/weather-wheel.py | saiprasadlaxmeshwar/intro-to-files-in-repos | fa2aa7de7066cfcb0318e5cb94ba2dc82fa082d9 | [
"Apache-2.0"
] | 4 | 2020-12-16T23:03:17.000Z | 2021-12-18T17:53:45.000Z | notebooks/weather-wheel.py | saiprasadlaxmeshwar/intro-to-files-in-repos | fa2aa7de7066cfcb0318e5cb94ba2dc82fa082d9 | [
"Apache-2.0"
] | null | null | null | notebooks/weather-wheel.py | saiprasadlaxmeshwar/intro-to-files-in-repos | fa2aa7de7066cfcb0318e5cb94ba2dc82fa082d9 | [
"Apache-2.0"
] | 3 | 2021-12-23T03:04:48.000Z | 2022-03-25T14:12:33.000Z | # Databricks notebook source
from weather import temp
# COMMAND ----------
Temp = temp.Temperature(spark=spark, low_path="/databricks-datasets/weather/low_temps", high_path="/databricks-datasets/weather/high_temps")
# COMMAND ----------
try:
Temp.joint_df
except AttributeError:
print("Run .join() method to crea... | 17.884615 | 140 | 0.673118 | 56 | 465 | 5.446429 | 0.5 | 0.091803 | 0.108197 | 0.190164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 465 | 25 | 141 | 18.6 | 0.743902 | 0.260215 | 0 | 0 | 0 | 0 | 0.338279 | 0.228487 | 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 |
a184fe2e286a347dde707defc4947e1de04e94c3 | 4,269 | py | Python | tsdb/cli.py | Strix-CZ/tsdb | 2eb6216a0b79179d92b02fd67bd395862ed406b7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tsdb/cli.py | Strix-CZ/tsdb | 2eb6216a0b79179d92b02fd67bd395862ed406b7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | tsdb/cli.py | Strix-CZ/tsdb | 2eb6216a0b79179d92b02fd67bd395862ed406b7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import time
from cmd import Cmd
from optparse import OptionParser
from pprint import pprint
from tsdb import *
VERSION="0.37"
class TSDBCLI(Cmd):
"""Implements a simple CLI for inspecting TSDBs"""
def __init__(self, db_path):
Cmd.__init__(self)
se... | 25.716867 | 85 | 0.526821 | 533 | 4,269 | 4.058161 | 0.260788 | 0.084142 | 0.025428 | 0.020804 | 0.216366 | 0.114656 | 0.096163 | 0.096163 | 0.043458 | 0.043458 | 0 | 0.006257 | 0.363551 | 4,269 | 165 | 86 | 25.872727 | 0.789842 | 0.034903 | 0 | 0.15 | 0 | 0 | 0.050935 | 0.005167 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058333 | null | null | 0.141667 | 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 |
a187fd71b5555db2b725f66184f90784838cfa0f | 370 | py | Python | MyMovies/movies/migrations/0003_auto_20200119_0215.py | janlopes/python | 1d0735dd26929559ad492022864381029b75a029 | [
"Apache-2.0"
] | null | null | null | MyMovies/movies/migrations/0003_auto_20200119_0215.py | janlopes/python | 1d0735dd26929559ad492022864381029b75a029 | [
"Apache-2.0"
] | null | null | null | MyMovies/movies/migrations/0003_auto_20200119_0215.py | janlopes/python | 1d0735dd26929559ad492022864381029b75a029 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-19 02:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('movies', '0002_myfavoritemovies'),
]
operations = [
migrations.RenameField(
model_name='myfavoritemovies',
old_name='idMovie... | 19.473684 | 47 | 0.591892 | 37 | 370 | 5.810811 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073077 | 0.297297 | 370 | 18 | 48 | 20.555556 | 0.753846 | 0.121622 | 0 | 0 | 1 | 0 | 0.170279 | 0.065015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1880951810ed8ee025f6940eee9612aa4e27517 | 10,565 | py | Python | pdc/apps/releaseschedule/tests.py | hluk/product-definition-center | af79f73c30fa5f5709ba03d584b7a49b83166b81 | [
"MIT"
] | 18 | 2015-12-15T17:56:18.000Z | 2021-04-10T13:49:48.000Z | pdc/apps/releaseschedule/tests.py | hluk/product-definition-center | af79f73c30fa5f5709ba03d584b7a49b83166b81 | [
"MIT"
] | 303 | 2015-11-18T07:37:06.000Z | 2021-05-26T12:34:01.000Z | pdc/apps/releaseschedule/tests.py | hluk/product-definition-center | af79f73c30fa5f5709ba03d584b7a49b83166b81 | [
"MIT"
] | 27 | 2015-11-19T20:33:54.000Z | 2021-03-25T08:15:28.000Z | #
# Copyright (c) 2017 Red Hat
# Licensed under The MIT License (MIT)
# http://opensource.org/licenses/MIT
#
from datetime import date, datetime, timedelta
from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
from pdc.apps.release.models import Rele... | 41.108949 | 89 | 0.614103 | 1,249 | 10,565 | 5.058447 | 0.119295 | 0.080722 | 0.101931 | 0.064103 | 0.752453 | 0.702279 | 0.668883 | 0.619816 | 0.604463 | 0.58547 | 0 | 0.031522 | 0.261335 | 10,565 | 256 | 90 | 41.269531 | 0.778063 | 0.064269 | 0 | 0.464789 | 0 | 0 | 0.128512 | 0.050208 | 0 | 0 | 0 | 0 | 0.169014 | 1 | 0.042254 | false | 0 | 0.032864 | 0.004695 | 0.098592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1885fcc7320a17007f0f6652e996b531d283cf5 | 382 | py | Python | setup.py | wasperen/pwm-reader | 501581b6ca71ab77feba7545cb1ab1cc4c6daadc | [
"MIT"
] | null | null | null | setup.py | wasperen/pwm-reader | 501581b6ca71ab77feba7545cb1ab1cc4c6daadc | [
"MIT"
] | null | null | null | setup.py | wasperen/pwm-reader | 501581b6ca71ab77feba7545cb1ab1cc4c6daadc | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='read_pwm',
version='1.0',
packages=[''],
url='https://github.com/wasperen/pwm-reader.git',
license='MIT',
author='',
author_email='pigpio@abyz.co.uk',
install_requires=[
'pigpio',
],
description='Class to monitor a PWM signal... | 23.875 | 105 | 0.638743 | 49 | 382 | 4.918367 | 0.877551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.209424 | 382 | 15 | 106 | 25.466667 | 0.791391 | 0 | 0 | 0 | 0 | 0 | 0.434555 | 0 | 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 |
a18c274b7d8fe8223d8edff128dfd49bd62f8b3c | 587 | py | Python | scripts/updates/jsonfile.py | elahd/container | 4651e2a48c40d704b47a598b11e8c278b142d646 | [
"MIT"
] | null | null | null | scripts/updates/jsonfile.py | elahd/container | 4651e2a48c40d704b47a598b11e8c278b142d646 | [
"MIT"
] | 1 | 2021-03-06T18:44:57.000Z | 2021-03-06T18:44:57.000Z | scripts/updates/jsonfile.py | elahd/container | 4651e2a48c40d704b47a598b11e8c278b142d646 | [
"MIT"
] | null | null | null | import json
class JsonFile:
def __init__(self, filepath):
self._filepath = filepath
def read(self):
with open(self._filepath, "r") as jsonfile:
return json.loads(jsonfile.read())
def write(self, content):
with open(self._filepath, "w") as jsonfile:
jsonfil... | 26.681818 | 65 | 0.565588 | 70 | 587 | 4.642857 | 0.428571 | 0.147692 | 0.073846 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007229 | 0.293015 | 587 | 22 | 66 | 26.681818 | 0.775904 | 0 | 0 | 0 | 0 | 0 | 0.008503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.411765 | 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 |
a18ffc222cc5338097804fe2d91f57fd741d28e0 | 2,391 | py | Python | tests/contrib/django/test_connection.py | vijayperiasamy-eb/dd-trace-py | 2b0d396fc7f76582e8ffedff48933245a77ebaf2 | [
"BSD-3-Clause"
] | null | null | null | tests/contrib/django/test_connection.py | vijayperiasamy-eb/dd-trace-py | 2b0d396fc7f76582e8ffedff48933245a77ebaf2 | [
"BSD-3-Clause"
] | null | null | null | tests/contrib/django/test_connection.py | vijayperiasamy-eb/dd-trace-py | 2b0d396fc7f76582e8ffedff48933245a77ebaf2 | [
"BSD-3-Clause"
] | 1 | 2021-02-11T10:20:14.000Z | 2021-02-11T10:20:14.000Z | import mock
import time
# 3rd party
from django.contrib.auth.models import User
from ddtrace.contrib.django.conf import settings
from ddtrace.contrib.django.patch import apply_django_patches, connections
# testing
from .utils import DjangoTraceTestCase, override_ddtrace_settings
class DjangoConnectionTest(DjangoTr... | 32.753425 | 83 | 0.658302 | 297 | 2,391 | 5.127946 | 0.319865 | 0.039396 | 0.042022 | 0.049902 | 0.188444 | 0.147078 | 0.115561 | 0 | 0 | 0 | 0 | 0.008287 | 0.242995 | 2,391 | 72 | 84 | 33.208333 | 0.833149 | 0.088666 | 0 | 0.191489 | 0 | 0 | 0.079314 | 0.010204 | 0 | 0 | 0 | 0 | 0.404255 | 1 | 0.106383 | false | 0 | 0.12766 | 0 | 0.255319 | 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 |
a191d1a8acbb4aa123c067779328facdf7ac6e3a | 3,340 | py | Python | test_synch/optimize/run.py | mgricci/am_cdbn_mirror | 6e7539da0a550550b8510bcc84c7063fc90fc701 | [
"MIT"
] | 1 | 2021-01-05T06:36:23.000Z | 2021-01-05T06:36:23.000Z | test_synch/optimize/run.py | mgricci/am_cdbn_mirror | 6e7539da0a550550b8510bcc84c7063fc90fc701 | [
"MIT"
] | null | null | null | test_synch/optimize/run.py | mgricci/am_cdbn_mirror | 6e7539da0a550550b8510bcc84c7063fc90fc701 | [
"MIT"
] | null | null | null | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.ioff()
import numpy as np
import torch
from torchvision import datasets, transforms
from mnist import Net
from scipy.optimize import minimize
from test_utils import cplx_imshow
import ipdb
PATH = '/home/jk/matt/mnist_cnn.pt'
img_side = 28
#T... | 31.214953 | 146 | 0.611677 | 543 | 3,340 | 3.642726 | 0.3186 | 0.038928 | 0.015167 | 0.021234 | 0.094034 | 0.075834 | 0.057634 | 0.057634 | 0.057634 | 0.031345 | 0 | 0.035378 | 0.204491 | 3,340 | 106 | 147 | 31.509434 | 0.70907 | 0.070359 | 0 | 0.022472 | 0 | 0 | 0.060078 | 0.008398 | 0 | 0 | 0 | 0.009434 | 0 | 0 | null | null | 0 | 0.101124 | null | null | 0.078652 | 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 |
a195dcb065fcce6faef053a1ad1209e5fcab207c | 518 | py | Python | output/models/nist_data/list_pkg/time/schema_instance/nistschema_sv_iv_list_time_pattern_5_xsd/nistschema_sv_iv_list_time_pattern_5.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/time/schema_instance/nistschema_sv_iv_list_time_pattern_5_xsd/nistschema_sv_iv_list_time_pattern_5.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/time/schema_instance/nistschema_sv_iv_list_time_pattern_5_xsd/nistschema_sv_iv_list_time_pattern_5.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
__NAMESPACE__ = "NISTSchema-SV-IV-list-time-pattern-5-NS"
@dataclass
class NistschemaSvIvListTimePattern5:
class Meta:
name = "NISTSchema-SV-IV-list-time-pattern-5"
namespace = "NISTSchema-SV-IV-list-time-pattern-5-NS"
value: L... | 25.9 | 86 | 0.617761 | 74 | 518 | 4.256757 | 0.527027 | 0.114286 | 0.133333 | 0.171429 | 0.355556 | 0.355556 | 0.355556 | 0.260317 | 0.260317 | 0 | 0 | 0.047619 | 0.22973 | 518 | 19 | 87 | 27.263158 | 0.741855 | 0 | 0 | 0 | 0 | 0.066667 | 0.359073 | 0.220077 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.333333 | 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 |
a199173157a14ad074eff5ee5154a3a6959a29ad | 4,720 | py | Python | chains.py | mnutsch/Crypto_Algorithmic_Trading | a45ec6f9458588b6c9be2114d56dc6fa373ed86c | [
"MIT"
] | 7 | 2018-03-16T15:01:20.000Z | 2021-05-06T11:59:56.000Z | chains.py | mnutsch/Crypto_Algorithmic_Trading | a45ec6f9458588b6c9be2114d56dc6fa373ed86c | [
"MIT"
] | null | null | null | chains.py | mnutsch/Crypto_Algorithmic_Trading | a45ec6f9458588b6c9be2114d56dc6fa373ed86c | [
"MIT"
] | null | null | null | # Name: chains.py
# Author: Patrick Mullaney
# Date Created: 3-3-2018
# Last Edited: 3-10-2018
# Description: This file contains functions related to obtaining a chain of valid transactions.
import calc, currency, conversions
import itertools
# Returns a string for a chain of transactions.
def chainMessage(chain):
... | 38.064516 | 95 | 0.586653 | 465 | 4,720 | 5.954839 | 0.251613 | 0.137234 | 0.126399 | 0.137234 | 0.258216 | 0.24991 | 0.221741 | 0.221741 | 0.221741 | 0.221741 | 0 | 0.015429 | 0.189831 | 4,720 | 124 | 96 | 38.064516 | 0.708682 | 0.319915 | 0 | 0.42029 | 0 | 0 | 0.026772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028986 | null | null | 0.043478 | 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 |
a19c72a5a5c32425b299f816943ba6f74f3b6dce | 1,003 | py | Python | de/uop/twitterbot/persistance/MysqlManager.py | EEXCESS/Twitter | e5d80d6c9e8735295d74ca7252a10ccdc7da11ab | [
"MIT"
] | null | null | null | de/uop/twitterbot/persistance/MysqlManager.py | EEXCESS/Twitter | e5d80d6c9e8735295d74ca7252a10ccdc7da11ab | [
"MIT"
] | null | null | null | de/uop/twitterbot/persistance/MysqlManager.py | EEXCESS/Twitter | e5d80d6c9e8735295d74ca7252a10ccdc7da11ab | [
"MIT"
] | null | null | null | from peewee import *
import Config
custom_db = MySQLDatabase(port=Config.database_port, database=Config.database_db, user=Config.database_user,
passwd=Config.database_pw)
class CustomModel(Model):
class Meta:
database = custom_db
class User(CustomModel):
username = CharFi... | 25.075 | 108 | 0.696909 | 91 | 1,003 | 7.593407 | 0.428571 | 0.081042 | 0.125904 | 0.156295 | 0.256151 | 0.185239 | 0.185239 | 0 | 0 | 0 | 0 | 0 | 0.207378 | 1,003 | 39 | 109 | 25.717949 | 0.869182 | 0 | 0 | 0.275862 | 0 | 0 | 0.020937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.068966 | 0 | 0.896552 | 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 |
a1a48ee90fc2db9dcabc5ab0c59dcbb959dac246 | 1,142 | py | Python | test/spider_queue.py | brabadu/grab | 92b1d68ceeece3087e053064520261a7aef3bd02 | [
"MIT"
] | 1 | 2021-05-10T16:03:24.000Z | 2021-05-10T16:03:24.000Z | test/spider_queue.py | brabadu/grab | 92b1d68ceeece3087e053064520261a7aef3bd02 | [
"MIT"
] | null | null | null | test/spider_queue.py | brabadu/grab | 92b1d68ceeece3087e053064520261a7aef3bd02 | [
"MIT"
] | null | null | null | from unittest import TestCase
from grab.spider import Spider, Task, Data
from .tornado_util import SERVER
from .mixin.spider_queue import SpiderQueueMixin
class BasicSpiderTestCase(TestCase, SpiderQueueMixin):
def setUp(self):
SERVER.reset()
def setup_queue(self, bot):
bot.setup_queue(backend... | 30.864865 | 73 | 0.600701 | 148 | 1,142 | 4.554054 | 0.412162 | 0.059347 | 0.077151 | 0.094955 | 0.197329 | 0.197329 | 0.197329 | 0.154303 | 0.103858 | 0 | 0 | 0.016109 | 0.293345 | 1,142 | 36 | 74 | 31.722222 | 0.819083 | 0.085814 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.25 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1a55b19a6dcb3084f1a0e7d078b872ce184d7ba | 1,667 | py | Python | tests/permission/test_client.py | oslokommune/okdata-sdk-python | 39d9f79b96b2fe4c33136bc9344043f33cc0ee4c | [
"MIT"
] | 2 | 2021-01-13T06:53:04.000Z | 2021-08-02T05:14:06.000Z | tests/permission/test_client.py | oslokommune/okdata-sdk-python | 39d9f79b96b2fe4c33136bc9344043f33cc0ee4c | [
"MIT"
] | 4 | 2021-04-21T06:14:36.000Z | 2021-08-03T08:35:14.000Z | tests/permission/test_client.py | oslokommune/okdata-sdk-python | 39d9f79b96b2fe4c33136bc9344043f33cc0ee4c | [
"MIT"
] | 1 | 2021-08-02T05:14:09.000Z | 2021-08-02T05:14:09.000Z | import re
import json
from okdata.sdk.permission.client import PermissionClient
from okdata.sdk.permission.user_types import User
def test_update_permission(requests_mock):
client = PermissionClient()
matcher = re.compile("permissions/okdata%3Adataset%3Afoo")
res = {
"resource_name": "okdata:data... | 31.45283 | 85 | 0.631074 | 179 | 1,667 | 5.72067 | 0.268156 | 0.139648 | 0.109375 | 0.099609 | 0.676758 | 0.676758 | 0.676758 | 0.676758 | 0.606445 | 0.606445 | 0 | 0.010054 | 0.224355 | 1,667 | 52 | 86 | 32.057692 | 0.781903 | 0 | 0 | 0.466667 | 0 | 0 | 0.265147 | 0.040792 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.155556 | 0 | 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 |
a1a810e15d3f84f34a4a5c71e01207d56abab041 | 727 | py | Python | scanpy/tests/test_score_genes.py | dhb2128/scanpy | 78649a991197af4685a8fe2f7a0d24064e3056bd | [
"BSD-3-Clause"
] | 3 | 2018-07-16T21:05:10.000Z | 2020-07-07T20:15:50.000Z | scanpy/tests/test_score_genes.py | romain-lopez/scanpy | d6ca1b87a47253e86ef44d7de7ce85c3c6c498d8 | [
"BSD-3-Clause"
] | null | null | null | scanpy/tests/test_score_genes.py | romain-lopez/scanpy | d6ca1b87a47253e86ef44d7de7ce85c3c6c498d8 | [
"BSD-3-Clause"
] | 1 | 2018-07-12T08:29:53.000Z | 2018-07-12T08:29:53.000Z | import numpy as np
import scanpy as sc
from anndata import AnnData
def test_add_score():
# TODO: write a test that costs less resources and is more meaningful
adata = AnnData(np.random.randint(0, 1000, 100000).reshape((100, 1000)))
gene_names = np.array([''.join([chr(x) for x in np.random.randint(65, 90, 6... | 48.466667 | 145 | 0.711142 | 121 | 727 | 4.140496 | 0.545455 | 0.063872 | 0.11976 | 0.063872 | 0.177645 | 0.127745 | 0.127745 | 0 | 0 | 0 | 0 | 0.083467 | 0.143054 | 727 | 14 | 146 | 51.928571 | 0.720706 | 0.09216 | 0 | 0 | 0 | 0 | 0.022796 | 0 | 0 | 0 | 0 | 0.071429 | 0.083333 | 1 | 0.083333 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1a82cc7e463a74596338a395e9edafe087279fe | 35,832 | py | Python | gewittergefahr/prediction_paper_2019/make_attribution_schemas.py | dopplerchase/GewitterGefahr | 4415b08dd64f37eba5b1b9e8cc5aa9af24f96593 | [
"MIT"
] | 26 | 2018-10-04T01:07:35.000Z | 2022-01-29T08:49:32.000Z | gewittergefahr/prediction_paper_2019/make_attribution_schemas.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 4 | 2017-12-25T02:01:08.000Z | 2018-12-19T01:54:21.000Z | gewittergefahr/prediction_paper_2019/make_attribution_schemas.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 11 | 2017-12-10T23:05:29.000Z | 2022-01-29T08:49:33.000Z | """Makes event-attribution schematics for 2019 tornado-prediction paper."""
import numpy
import pandas
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as pyplot
from descartes import PolygonPatch
from gewittergefahr.gg_utils import storm_tracking_utils as tracking_utils
from gewittergefahr.gg_utils im... | 37.877378 | 85 | 0.675765 | 4,789 | 35,832 | 4.632909 | 0.07559 | 0.030423 | 0.038942 | 0.006671 | 0.778925 | 0.72538 | 0.658584 | 0.584531 | 0.554604 | 0.513769 | 0 | 0.023435 | 0.214027 | 35,832 | 945 | 86 | 37.91746 | 0.764372 | 0.096506 | 0 | 0.458971 | 0 | 0 | 0.055564 | 0.015933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011127 | false | 0 | 0.015299 | 0 | 0.036161 | 0.015299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1ae352eb30ee178ddf1824afb9dd9ebb16d33e5 | 1,165 | py | Python | Codes/08. Strings.py | mrfoxie/Python-for-beginners | 4aaff536cf4c311fd4fbd6cb913a546c4db66c50 | [
"MIT"
] | null | null | null | Codes/08. Strings.py | mrfoxie/Python-for-beginners | 4aaff536cf4c311fd4fbd6cb913a546c4db66c50 | [
"MIT"
] | null | null | null | Codes/08. Strings.py | mrfoxie/Python-for-beginners | 4aaff536cf4c311fd4fbd6cb913a546c4db66c50 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Strings are used to display message's on the screen or to convey instruction to users
test = 'This is a testing.'
print(test)
# Now say for example you want to print 'You're having it' if we write in single quotes then it will show us error
# test1 = 'You're having it' # uncomment the line to s... | 37.580645 | 116 | 0.746781 | 213 | 1,165 | 4.075117 | 0.441315 | 0.02765 | 0.038018 | 0.044931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.188841 | 1,165 | 30 | 117 | 38.833333 | 0.911111 | 0.701288 | 0 | 0 | 0 | 0 | 0.540299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a1b237a1923e2d71881c6a3458905924e39f940c | 246 | py | Python | 01.Python/04.titanic1.py | rmatam/Deep-Learning | 665492254d36d3991e4b58abf6dd62d7fdac8769 | [
"Apache-2.0"
] | null | null | null | 01.Python/04.titanic1.py | rmatam/Deep-Learning | 665492254d36d3991e4b58abf6dd62d7fdac8769 | [
"Apache-2.0"
] | null | null | null | 01.Python/04.titanic1.py | rmatam/Deep-Learning | 665492254d36d3991e4b58abf6dd62d7fdac8769 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 20 15:37:43 2016
@author: rmatam
"""
import pandas as pd
#import matplotlib as mpb
train=pd.read_csv('E:\\DataScience\\kaggle\\titanic\\Data\\train.csv')
print(train)
print(train[1:3])
| 18.923077 | 71 | 0.650407 | 39 | 246 | 4.076923 | 0.794872 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.166667 | 246 | 12 | 72 | 20.5 | 0.702439 | 0.402439 | 0 | 0 | 0 | 0 | 0.388889 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
a1b5141d4debcc372b7e783a442cf38f10dedf66 | 2,409 | py | Python | lektor/types/base.py | yagebu/lektor | a31d8e57a5b2f4b090072527269c26a65202c736 | [
"BSD-3-Clause"
] | 4,104 | 2015-11-16T18:37:51.000Z | 2022-03-28T14:28:24.000Z | lektor/types/base.py | yagebu/lektor | a31d8e57a5b2f4b090072527269c26a65202c736 | [
"BSD-3-Clause"
] | 854 | 2015-12-05T12:19:02.000Z | 2022-03-31T16:47:27.000Z | lektor/types/base.py | yagebu/lektor | a31d8e57a5b2f4b090072527269c26a65202c736 | [
"BSD-3-Clause"
] | 442 | 2015-11-21T10:18:02.000Z | 2022-03-29T19:55:17.000Z | from jinja2 import Undefined
from lektor.constants import PRIMARY_ALT
class BadValue(Undefined):
__slots__ = ()
def get_undefined_info(undefined):
if isinstance(undefined, Undefined):
try:
undefined._fail_with_undefined_error()
except Exception as e:
return str(e)
... | 25.62766 | 86 | 0.581569 | 296 | 2,409 | 4.513514 | 0.253378 | 0.033683 | 0.035928 | 0.020958 | 0.034431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00238 | 0.3022 | 2,409 | 93 | 87 | 25.903226 | 0.792385 | 0.011208 | 0 | 0.028986 | 0 | 0 | 0.066807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188406 | false | 0 | 0.028986 | 0.086957 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.