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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b95a94d3b25a23a56d3d3d661b084a44e828fab | 543 | py | Python | my_gallery/migrations/0006_photos_image.py | Abdihakim-Muhumed/gallery | bfdb58466503bedda6ac4b686afb42b69c055f0c | [
"Unlicense"
] | null | null | null | my_gallery/migrations/0006_photos_image.py | Abdihakim-Muhumed/gallery | bfdb58466503bedda6ac4b686afb42b69c055f0c | [
"Unlicense"
] | null | null | null | my_gallery/migrations/0006_photos_image.py | Abdihakim-Muhumed/gallery | bfdb58466503bedda6ac4b686afb42b69c055f0c | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-14 07:15
import cloudinary.models
from django.db import migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('my_gallery', '0005_auto_20201013_0828'),
]
operations = [
migrations.AddField(
mod... | 24.681818 | 125 | 0.655617 | 61 | 543 | 5.704918 | 0.737705 | 0.091954 | 0.109195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082126 | 0.237569 | 543 | 21 | 126 | 25.857143 | 0.758454 | 0.082873 | 0 | 0 | 1 | 0 | 0.09879 | 0.046371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ba05404268d52ee6b9dcf341a6f596fdbe8cb19 | 453 | py | Python | test/unit/test_wrapper.py | Bowowzahoya/cordis_search | 8766717fdd785b2768785b9147e63cac62dfbd43 | [
"MIT"
] | null | null | null | test/unit/test_wrapper.py | Bowowzahoya/cordis_search | 8766717fdd785b2768785b9147e63cac62dfbd43 | [
"MIT"
] | null | null | null | test/unit/test_wrapper.py | Bowowzahoya/cordis_search | 8766717fdd785b2768785b9147e63cac62dfbd43 | [
"MIT"
] | null | null | null | import pandas as pd
from context import *
from cordis_search import wrapper as wr
TEST_PROJECTS_FILE = pd.read_csv(RESOURCES_FOLDER+"fp7_test_projects.csv", sep=";")
print(TEST_PROJECTS_FILE)
def test_search():
query = "multiculturalism"
selected_projects = wr.search(TEST_PROJECTS_FILE, query)
assert se... | 25.166667 | 83 | 0.766004 | 64 | 453 | 5.125 | 0.5 | 0.182927 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032911 | 0.128035 | 453 | 18 | 84 | 25.166667 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 0.046256 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.416667 | 0.083333 | 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 |
8ba29d9fb01d60102507bf5db6c09210143677fa | 3,471 | py | Python | release/util/splunkbase_releaser.py | xynazog/amp4e_splunk_events_input | a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b | [
"BSD-2-Clause"
] | 9 | 2017-07-31T16:13:51.000Z | 2021-01-06T15:02:36.000Z | release/util/splunkbase_releaser.py | xynazog/amp4e_splunk_events_input | a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b | [
"BSD-2-Clause"
] | 51 | 2017-10-24T17:25:44.000Z | 2022-03-31T16:47:58.000Z | release/util/splunkbase_releaser.py | xynazog/amp4e_splunk_events_input | a5bb57cf82ca3e96fa9a444e5e5e9789eb16b70b | [
"BSD-2-Clause"
] | 12 | 2017-08-01T08:59:39.000Z | 2021-02-24T21:10:46.000Z | import os
from distutils.dir_util import copy_tree
from invoke import task, run
import shutil
class SplunkbaseReleaser:
DIRS_TO_ARCHIVE = ['appserver', 'bin', 'certs', 'default', 'metadata', 'README', 'static']
APP_NAME = 'amp4e_events_input'
PATH_TO_PYTHON_LIBS = '/opt/splunk/lib/python3.7/site-packages'
... | 34.71 | 109 | 0.645923 | 486 | 3,471 | 4.277778 | 0.228395 | 0.066378 | 0.064935 | 0.074074 | 0.285233 | 0.224627 | 0.138047 | 0.103896 | 0.05291 | 0.036556 | 0 | 0.004131 | 0.232786 | 3,471 | 99 | 110 | 35.060606 | 0.776568 | 0 | 0 | 0.1 | 0 | 0 | 0.106598 | 0.017862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.05 | 0.075 | 0.45 | 0.025 | 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 |
8ba8ed599cf94b78021c68a977f2d000df6dcd16 | 2,476 | py | Python | aiida_jutools/__init__.py | PhilippRue/aiida-jutools | 66070e7077cb454bcfd70dd3327b335499556a16 | [
"MIT"
] | 5 | 2020-12-11T13:32:09.000Z | 2022-01-19T08:36:40.000Z | aiida_jutools/__init__.py | PhilippRue/aiida-jutools | 66070e7077cb454bcfd70dd3327b335499556a16 | [
"MIT"
] | 7 | 2021-01-28T10:24:13.000Z | 2021-08-18T13:42:47.000Z | aiida_jutools/__init__.py | PhilippRue/aiida-jutools | 66070e7077cb454bcfd70dd3327b335499556a16 | [
"MIT"
] | 5 | 2020-12-07T17:13:38.000Z | 2021-11-25T09:58:48.000Z | # -*- coding: utf-8 -*-
# pylint: disable=unused-import
###############################################################################
# Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. #
# All rights reserved. #
# This file is part of t... | 51.583333 | 117 | 0.586026 | 298 | 2,476 | 4.83557 | 0.503356 | 0.097155 | 0.029146 | 0.019431 | 0.030534 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0.003944 | 0.283118 | 2,476 | 47 | 118 | 52.680851 | 0.807887 | 0.784733 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.928571 | 0 | 0.928571 | 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 |
8baf2837359bef97c791a3fa5aa72048d1181a43 | 590 | py | Python | examples/parallel_spectra.py | zhaonat/py-maxwell-fd3d | bfa4fb826401b98371fdd9306c5fee2e74e7e545 | [
"MIT"
] | 3 | 2022-01-21T03:53:25.000Z | 2022-01-23T04:54:43.000Z | examples/parallel_spectra.py | Guowu-Mcgill/py-maxwell-fd3d | bfa4fb826401b98371fdd9306c5fee2e74e7e545 | [
"MIT"
] | null | null | null | examples/parallel_spectra.py | Guowu-Mcgill/py-maxwell-fd3d | bfa4fb826401b98371fdd9306c5fee2e74e7e545 | [
"MIT"
] | 1 | 2022-01-23T04:54:47.000Z | 2022-01-23T04:54:47.000Z | import os,sys
Nthread = 1
os.environ["OMP_NUM_THREADS"] = str(Nthread) # export OMP_NUM_THREADS=1
os.environ["OPENBLAS_NUM_THREADS"] = str(Nthread) # export OPENBLAS_NUM_THREADS=1
os.environ["MKL_NUM_THREADS"] = str(Nthread) # export MKL_NUM_THREADS=1
os.environ["VECLIB_MAXIMUM_THREADS"] = str(Nthread) # export VECLIB_... | 59 | 99 | 0.798305 | 88 | 590 | 5.125 | 0.431818 | 0.177384 | 0.110865 | 0.254989 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.098305 | 590 | 10 | 99 | 59 | 0.834586 | 0.520339 | 0 | 0 | 0 | 0 | 0.330909 | 0.08 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
8bb10d5482f7eb91428767e4939740b77a7d3702 | 2,386 | py | Python | Emotional-Recognition-Facial/create_training_classification_set.py | ductai199x/No-more-bad-days | ceb7da2d2464062ad4aea028cdfa98380661702c | [
"Apache-2.0"
] | 1 | 2018-01-18T15:10:40.000Z | 2018-01-18T15:10:40.000Z | Emotional-Recognition-Facial/create_training_classification_set.py | ductai199x/No-more-bad-days | ceb7da2d2464062ad4aea028cdfa98380661702c | [
"Apache-2.0"
] | null | null | null | Emotional-Recognition-Facial/create_training_classification_set.py | ductai199x/No-more-bad-days | ceb7da2d2464062ad4aea028cdfa98380661702c | [
"Apache-2.0"
] | null | null | null | import cv2
import glob
import random
import numpy as np
emotions = ["neutral", "anger", "disgust", "happy", "surprise"]
fishface = cv2.face.FisherFaceRecognizer_create() #Initialize fisher face classifier
data = {}
def get_files(emotion): #Define function to get file list, randomly shuffle it and split 80/20
traini... | 33.605634 | 129 | 0.731769 | 327 | 2,386 | 5.217125 | 0.33945 | 0.042204 | 0.03517 | 0.045721 | 0.178195 | 0.14068 | 0.14068 | 0.098476 | 0 | 0 | 0 | 0.018765 | 0.151299 | 2,386 | 70 | 130 | 34.085714 | 0.823704 | 0.150461 | 0 | 0.105263 | 0 | 0 | 0.110119 | 0.011409 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070175 | null | null | 0.087719 | 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 |
8bb228a7e4380e3d2e78dff77a6e5e75257a88f3 | 1,109 | py | Python | main.py | Zlobin/wp-updater | e10ebbb7ddd2a2398c7a660d134ce8598738fe7d | [
"MIT"
] | null | null | null | main.py | Zlobin/wp-updater | e10ebbb7ddd2a2398c7a660d134ce8598738fe7d | [
"MIT"
] | null | null | null | main.py | Zlobin/wp-updater | e10ebbb7ddd2a2398c7a660d134ce8598738fe7d | [
"MIT"
] | null | null | null | # python3 main.py
import urllib.request
import zipfile
import os
import shutil
# @TODO change it
# eg.: /var/www/blog
OLD_WP_PATH = ''
NEW_WP_PATH_TMP = ''
if not (os.path.exists(OLD_WP_PATH)) or not (os.path.exists(NEW_WP_PATH_TMP)):
os._exit(0)
WP_URL = 'http://wordpress.org/latest.zip'
EXTRACTED_NAME = 'wordpr... | 27.04878 | 97 | 0.757439 | 199 | 1,109 | 3.984925 | 0.361809 | 0.128625 | 0.124842 | 0.06053 | 0.218159 | 0.171501 | 0.123581 | 0.070618 | 0 | 0 | 0 | 0.005045 | 0.106402 | 1,109 | 40 | 98 | 27.725 | 0.795156 | 0.208296 | 0 | 0 | 0 | 0 | 0.109195 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
8bb336feea80faaae86bf909a42bb1e797a4c310 | 702 | py | Python | hole/migrations/0008_auto_20210128_1959.py | kavinzhao/fduhole | 508922cfa0558c58b95206dd8fbf51d10525fa1e | [
"Apache-2.0"
] | 9 | 2021-04-14T12:08:38.000Z | 2021-12-16T08:14:40.000Z | hole/migrations/0008_auto_20210128_1959.py | kavinzhao/fduhole | 508922cfa0558c58b95206dd8fbf51d10525fa1e | [
"Apache-2.0"
] | 9 | 2021-04-18T09:48:25.000Z | 2021-11-26T07:43:22.000Z | hole/migrations/0008_auto_20210128_1959.py | kavinzhao/fduhole | 508922cfa0558c58b95206dd8fbf51d10525fa1e | [
"Apache-2.0"
] | 4 | 2021-07-15T02:10:42.000Z | 2022-01-22T02:12:11.000Z | # Generated by Django 3.1.5 on 2021-01-28 11:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hole', '0007_auto_20210126_2138'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='number',
... | 24.206897 | 73 | 0.566952 | 69 | 702 | 5.608696 | 0.695652 | 0.069767 | 0.067183 | 0.087855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065126 | 0.321937 | 702 | 28 | 74 | 25.071429 | 0.747899 | 0.064103 | 0 | 0.227273 | 1 | 0 | 0.10687 | 0.035115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
8bb63310aa365a92b778a469e0b31fbf329b889f | 7,711 | py | Python | v0/aia_eis_v0/circuits/circuit_pack_01.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | 1 | 2022-03-02T12:57:19.000Z | 2022-03-02T12:57:19.000Z | v0/aia_eis_v0/circuits/circuit_pack_01.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | v0/aia_eis_v0/circuits/circuit_pack_01.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | from circuits.elements import ele_C as C
from circuits.elements import ele_L as L
from circuits.elements import ele_Warburg as WB
from circuits.elements import ele_Q as Q
"""
支惠在原始的几个电路基础上新加了很多简单的单路,之后有空再去合并
"""
"""
Define all the circuits used in this project
Python 电路模型函数名 命名规则:
‘a’ == ‘(’; ‘b’ == ‘)’,直... | 26.317406 | 126 | 0.489171 | 1,479 | 7,711 | 2.440162 | 0.139959 | 0.084788 | 0.113605 | 0.085342 | 0.561929 | 0.468828 | 0.421446 | 0.363536 | 0.319756 | 0.294541 | 0 | 0.164704 | 0.317339 | 7,711 | 293 | 127 | 26.317406 | 0.520897 | 0.155492 | 0 | 0.323944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309859 | false | 0 | 0.028169 | 0 | 0.647887 | 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 |
8bb882a476b7069df7988169620b13ea93893010 | 2,204 | py | Python | dj_vercereg/client/vercereg_client.py | davidath/dj-vercereg | d1ae1dba21cab93c759ecf79346bc60c2d88d7a8 | [
"Apache-2.0"
] | null | null | null | dj_vercereg/client/vercereg_client.py | davidath/dj-vercereg | d1ae1dba21cab93c759ecf79346bc60c2d88d7a8 | [
"Apache-2.0"
] | null | null | null | dj_vercereg/client/vercereg_client.py | davidath/dj-vercereg | d1ae1dba21cab93c759ecf79346bc60c2d88d7a8 | [
"Apache-2.0"
] | 1 | 2022-03-14T13:33:19.000Z | 2022-03-14T13:33:19.000Z | #!/usr/bin/env python
# Copyright 2014 The University of Edinburgh
#
# 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 a... | 32.895522 | 169 | 0.720054 | 302 | 2,204 | 5.125828 | 0.536424 | 0.03876 | 0.043928 | 0.05168 | 0.153747 | 0.127907 | 0.127907 | 0.046512 | 0.046512 | 0 | 0 | 0.011841 | 0.156987 | 2,204 | 67 | 170 | 32.895522 | 0.821313 | 0.501815 | 0 | 0 | 0 | 0 | 0.127442 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bbe4c37ae3a9b71342799d82ae3b600239ac59b | 2,638 | py | Python | src/backends/example_mongodb/database.py | rartino/python-optimade-server | 84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57 | [
"MIT"
] | null | null | null | src/backends/example_mongodb/database.py | rartino/python-optimade-server | 84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57 | [
"MIT"
] | null | null | null | src/backends/example_mongodb/database.py | rartino/python-optimade-server | 84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2019 Rickard Armiento
#
# This file is part of a Python candidate reference implementation of
# the optimade API [https://www.optimade.org/]
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "... | 35.173333 | 97 | 0.674375 | 370 | 2,638 | 4.756757 | 0.418919 | 0.040909 | 0.051136 | 0.045455 | 0.147727 | 0.136364 | 0.136364 | 0.082386 | 0.082386 | 0.082386 | 0 | 0.002979 | 0.236543 | 2,638 | 74 | 98 | 35.648649 | 0.870904 | 0.449962 | 0 | 0.194444 | 0 | 0 | 0.009129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.027778 | 0.444444 | 0.027778 | 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 |
8bcfe7bd84165cc2d8ec0ab76054e252d5ad9337 | 2,913 | py | Python | rando/core/models.py | camillemonchicourt/Geotrek-rando | df92c0f19ca37ea1750d934cedafcdb23325bc95 | [
"BSD-2-Clause"
] | null | null | null | rando/core/models.py | camillemonchicourt/Geotrek-rando | df92c0f19ca37ea1750d934cedafcdb23325bc95 | [
"BSD-2-Clause"
] | null | null | null | rando/core/models.py | camillemonchicourt/Geotrek-rando | df92c0f19ca37ea1750d934cedafcdb23325bc95 | [
"BSD-2-Clause"
] | null | null | null | import os
import json
import datetime
from easydict import EasyDict as edict
from django.conf import settings
from rando import logger
from rando.core import classproperty
class JSONManager(object):
def __init__(self, klass=object, filepath='', language=None, use_tmp=False):
self.klass = klass
s... | 27.481132 | 93 | 0.632338 | 335 | 2,913 | 5.358209 | 0.328358 | 0.016713 | 0.012256 | 0.020056 | 0.149304 | 0.118106 | 0.050139 | 0.050139 | 0.050139 | 0 | 0 | 0.001393 | 0.260556 | 2,913 | 105 | 94 | 27.742857 | 0.831941 | 0.068658 | 0 | 0.12 | 0 | 0 | 0.041651 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 1 | 0.173333 | false | 0 | 0.093333 | 0.066667 | 0.573333 | 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 |
8bdfa2aafd82d2863e79980ee316f8cecf63acbc | 2,505 | py | Python | myticker.py | bitsanity/rateboard | f362505d6b9672d2f22bc6e6650975899d2ea127 | [
"Apache-2.0"
] | 3 | 2017-08-24T14:36:49.000Z | 2018-11-21T21:14:06.000Z | myticker.py | bitsanity/rateboard | f362505d6b9672d2f22bc6e6650975899d2ea127 | [
"Apache-2.0"
] | null | null | null | myticker.py | bitsanity/rateboard | f362505d6b9672d2f22bc6e6650975899d2ea127 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys, traceback
import threading
import time
from PyQt4 import QtGui,QtCore
from boardlet import Boardlet
from modellet import Modellet
class MyTicker(Boardlet):
def __init__(self, parent, getbidobj, getaskobj):
super(MyTicker, self).__init__(parent)
... | 28.793103 | 76 | 0.64511 | 336 | 2,505 | 4.639881 | 0.369048 | 0.08018 | 0.032072 | 0.038486 | 0.140475 | 0.122514 | 0.094291 | 0 | 0 | 0 | 0 | 0.016794 | 0.215569 | 2,505 | 86 | 77 | 29.127907 | 0.77659 | 0.032335 | 0 | 0.030303 | 0 | 0 | 0.029339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106061 | null | null | 0.015152 | 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 |
8be59cb6314fe38c5f76d083bb061587be243807 | 2,043 | py | Python | trend_analyze/test/test_fecth_data_from_api.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | null | null | null | trend_analyze/test/test_fecth_data_from_api.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | 2 | 2020-09-26T14:58:33.000Z | 2021-03-31T20:01:40.000Z | trend_analyze/test/test_fecth_data_from_api.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | null | null | null | import unittest
from trend_analyze.config import *
from trend_analyze.src.model import *
from trend_analyze.src.fetch_data_from_api import ApiTwitterFetcher
class TestFetchDataFromApi(unittest.TestCase):
"""
test class for fetch_data_from_api.py
"""
def __init__(self, *args, **kwargs):
super... | 32.951613 | 87 | 0.698972 | 264 | 2,043 | 5.041667 | 0.257576 | 0.047333 | 0.072126 | 0.072126 | 0.225394 | 0.162284 | 0.132231 | 0.084147 | 0.084147 | 0 | 0 | 0.004268 | 0.197259 | 2,043 | 61 | 88 | 33.491803 | 0.807317 | 0.018111 | 0 | 0.047619 | 0 | 0 | 0.036683 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.261905 | false | 0 | 0.095238 | 0 | 0.380952 | 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 |
8be7a3c80ff1ca3e87607f2cacd6a9420c5e831e | 7,305 | py | Python | logging_with_arcpy.py | Kortforsyningen/logging-with-arcpy | b227aea9c377ca6e98b2c398d294c08bce506f84 | [
"MIT"
] | 1 | 2022-03-03T13:20:12.000Z | 2022-03-03T13:20:12.000Z | logging_with_arcpy.py | Kortforsyningen/logging-with-arcpy | b227aea9c377ca6e98b2c398d294c08bce506f84 | [
"MIT"
] | null | null | null | logging_with_arcpy.py | Kortforsyningen/logging-with-arcpy | b227aea9c377ca6e98b2c398d294c08bce506f84 | [
"MIT"
] | 1 | 2022-03-30T11:33:43.000Z | 2022-03-30T11:33:43.000Z | # -*- coding: utf-8 -*-
"""
This module allows Python's logging module and Esri's ArcMap tools to play nicely together.
Everything here works with the root logger, there is currently no functionality to work with multiple loggers.
The standard logging.basicConfig() doesn't work out of the box in ArcMap tools, b... | 46.826923 | 132 | 0.699384 | 1,051 | 7,305 | 4.831589 | 0.34824 | 0.023631 | 0.017724 | 0.021268 | 0.127806 | 0.110083 | 0.110083 | 0.110083 | 0.088224 | 0.088224 | 0 | 0.008325 | 0.210678 | 7,305 | 155 | 133 | 47.129032 | 0.872355 | 0.70089 | 0 | 0.243902 | 0 | 0 | 0.058918 | 0 | 0 | 0 | 0 | 0.019355 | 0 | 1 | 0.121951 | false | 0 | 0.170732 | 0 | 0.341463 | 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 |
8bea72f709ee92f0256045645314ed84137d7a0e | 6,924 | py | Python | tests/test_share_resource/test_master_data.py | anhlt59/django_refactor | 1b1d86af9f732a000e30feb7644f6ca60b6e516a | [
"MIT"
] | null | null | null | tests/test_share_resource/test_master_data.py | anhlt59/django_refactor | 1b1d86af9f732a000e30feb7644f6ca60b6e516a | [
"MIT"
] | null | null | null | tests/test_share_resource/test_master_data.py | anhlt59/django_refactor | 1b1d86af9f732a000e30feb7644f6ca60b6e516a | [
"MIT"
] | null | null | null | import pytest
from app.share_resources.master_data.models import *
# test company_type_category
@pytest.mark.django_db
class TestCompanyTypeCategory:
def test_create(self, create_company_type_category):
assert CompanyTypeCategory.objects.count() == 1
def test_update(self, create_company_type_categor... | 33.941176 | 102 | 0.718515 | 869 | 6,924 | 5.408516 | 0.067894 | 0.044681 | 0.055319 | 0.051064 | 0.651064 | 0.593617 | 0.49 | 0.408511 | 0.328936 | 0.271064 | 0 | 0.005385 | 0.195407 | 6,924 | 203 | 103 | 34.108374 | 0.83827 | 0.03134 | 0 | 0.225352 | 0 | 0 | 0.047491 | 0 | 0 | 0 | 0 | 0 | 0.28169 | 1 | 0.211268 | false | 0 | 0.014085 | 0 | 0.295775 | 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 |
473611358315db91be2c68a0523fa1b4712e6722 | 1,083 | py | Python | conanfile.py | martinmoene/lest-conan-package | db0a1eda840e819edb0c1bb5dc4d8384d1a92c19 | [
"MIT"
] | null | null | null | conanfile.py | martinmoene/lest-conan-package | db0a1eda840e819edb0c1bb5dc4d8384d1a92c19 | [
"MIT"
] | null | null | null | conanfile.py | martinmoene/lest-conan-package | db0a1eda840e819edb0c1bb5dc4d8384d1a92c19 | [
"MIT"
] | null | null | null | from contextlib import closing
from tarfile import open as taropen
from urllib2 import urlopen
from conans import ConanFile
class lestConan(ConanFile):
name = "lest"
version = "1.26.0"
url = "https://github.com/martinmoene/lest-conan-package"
license = "Boost 1.0"
author = "Martin Moene (martin.m... | 32.818182 | 104 | 0.644506 | 145 | 1,083 | 4.786207 | 0.468966 | 0.063401 | 0.073487 | 0.048991 | 0.207493 | 0.207493 | 0.115274 | 0.115274 | 0.115274 | 0.115274 | 0 | 0.01171 | 0.21145 | 1,083 | 32 | 105 | 33.84375 | 0.800937 | 0.1265 | 0 | 0 | 0 | 0 | 0.227176 | 0.047771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 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 | 0 | 1 | 0 | 0 | 1 |
47364a3924f1597cca49227e92174ee485e954ae | 555 | py | Python | erp/migrations/0093_auto_20200922_0802.py | Foohx/acceslibre | 55135e096f2ec4e413ff991f01c17f5e0d5925c0 | [
"MIT"
] | 8 | 2020-07-23T08:17:28.000Z | 2022-03-09T22:31:36.000Z | erp/migrations/0093_auto_20200922_0802.py | Foohx/acceslibre | 55135e096f2ec4e413ff991f01c17f5e0d5925c0 | [
"MIT"
] | 37 | 2020-07-01T08:47:33.000Z | 2022-02-03T19:50:58.000Z | erp/migrations/0093_auto_20200922_0802.py | Foohx/acceslibre | 55135e096f2ec4e413ff991f01c17f5e0d5925c0 | [
"MIT"
] | 4 | 2021-04-08T10:57:18.000Z | 2022-01-31T13:16:31.000Z | # Generated by Django 3.1.1 on 2020-09-22 06:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('erp', '0092_merge_20200916_1733'),
]
operations = [
migrations.AlterField(
model_name='accessibilite',
name='chemine... | 29.210526 | 189 | 0.641441 | 65 | 555 | 5.353846 | 0.815385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07243 | 0.228829 | 555 | 18 | 190 | 30.833333 | 0.740654 | 0.081081 | 0 | 0 | 1 | 0 | 0.267717 | 0.110236 | 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 |
4739439933f695399a93b2006266d661c9ac6918 | 1,521 | py | Python | sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py | ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud | 17ebfc34991649580fce24dae5c0a7933f5b3095 | [
"MIT"
] | null | null | null | sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py | ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud | 17ebfc34991649580fce24dae5c0a7933f5b3095 | [
"MIT"
] | null | null | null | sprint/DS-Unit-3-Sprint-3-Productization-and-Cloud/sprint/aq_dashboard.py | ndow33/DS-Unit-3-Sprint-3-Productization-and-Cloud | 17ebfc34991649580fce24dae5c0a7933f5b3095 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import openaq
import requests
# connects to the api
api = openaq.OpenAQ()
# initialize the app
APP = Flask(__name__)
# configure the database
APP.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
DB = SQLAlchemy(APP)
# define a fu... | 27.160714 | 76 | 0.663379 | 212 | 1,521 | 4.632075 | 0.495283 | 0.040733 | 0.03055 | 0.026477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005973 | 0.229454 | 1,521 | 56 | 77 | 27.160714 | 0.831911 | 0.224852 | 0 | 0 | 0 | 0 | 0.131177 | 0.020665 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.108108 | false | 0 | 0.108108 | 0.027027 | 0.432432 | 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 |
47398e6b8466cbdbb207c2820f76f1b99f1321a9 | 21,273 | py | Python | circus/watcher.py | j4mie/circus | d026b692cc7c4ec57bed7aaa671fce561adc0f3d | [
"Apache-2.0"
] | 1 | 2015-11-05T11:44:54.000Z | 2015-11-05T11:44:54.000Z | circus/watcher.py | j4mie/circus | d026b692cc7c4ec57bed7aaa671fce561adc0f3d | [
"Apache-2.0"
] | null | null | null | circus/watcher.py | j4mie/circus | d026b692cc7c4ec57bed7aaa671fce561adc0f3d | [
"Apache-2.0"
] | null | null | null | import copy
import errno
import os
import signal
import time
from psutil import STATUS_ZOMBIE, STATUS_DEAD, NoSuchProcess
from zmq.utils.jsonapi import jsonmod as json
from circus.process import Process, DEAD_OR_ZOMBIE, UNEXISTING
from circus import logger
from circus import util
from circus.stream import get_pipe_re... | 33.29108 | 79 | 0.56889 | 2,467 | 21,273 | 4.794893 | 0.143899 | 0.012681 | 0.025361 | 0.012089 | 0.268155 | 0.203483 | 0.176769 | 0.159692 | 0.157241 | 0.148618 | 0 | 0.003263 | 0.337282 | 21,273 | 638 | 80 | 33.34326 | 0.835792 | 0.024021 | 0 | 0.318408 | 0 | 0 | 0.055143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002488 | 0.029851 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
473a4e921e84f823480cb7ff0d481a46699ba915 | 15,171 | py | Python | admin_views.py | JackCurragh/DARNED | 13963d129bd8f69fb1106ad1f47394b3211a939c | [
"MIT"
] | null | null | null | admin_views.py | JackCurragh/DARNED | 13963d129bd8f69fb1106ad1f47394b3211a939c | [
"MIT"
] | null | null | null | admin_views.py | JackCurragh/DARNED | 13963d129bd8f69fb1106ad1f47394b3211a939c | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from django.core.context_processors import csrf
from admin_forms import *
from django.template import loader,RequestContext
from django.contrib.admin.views.decorators import staff_member_required
from Human.mode... | 40.564171 | 187 | 0.497265 | 1,703 | 15,171 | 4.409278 | 0.155608 | 0.006126 | 0.00799 | 0.010654 | 0.662805 | 0.646957 | 0.631642 | 0.571714 | 0.567186 | 0.555467 | 0 | 0.021577 | 0.355415 | 15,171 | 373 | 188 | 40.672922 | 0.746293 | 0.086283 | 0 | 0.645695 | 0 | 0.016556 | 0.053252 | 0.038226 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033113 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
474730af1ea1af916a12ede7e8f6ca83e5e468a8 | 952 | py | Python | pastila/schema.py | harlov/pastila | 27ebe862bc25d5cc1a14766e5eec8f48853098c3 | [
"MIT"
] | null | null | null | pastila/schema.py | harlov/pastila | 27ebe862bc25d5cc1a14766e5eec8f48853098c3 | [
"MIT"
] | null | null | null | pastila/schema.py | harlov/pastila | 27ebe862bc25d5cc1a14766e5eec8f48853098c3 | [
"MIT"
] | null | null | null | from pastila.fields import Field
class Schema(object):
data = None
def __init__(self):
self.data = {}
def load(self, data):
for field, value in data.items():
self.load_to_field(field, value)
self.validate()
def validate(self):
for name, field in self.fie... | 22.666667 | 86 | 0.570378 | 119 | 952 | 4.394958 | 0.285714 | 0.091778 | 0.068834 | 0.080306 | 0.110899 | 0.110899 | 0.110899 | 0 | 0 | 0 | 0 | 0.001536 | 0.316176 | 952 | 41 | 87 | 23.219512 | 0.801843 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0.068966 | 0.482759 | 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 |
4749535b6dc42716b629b0a869d4e93214bb93a8 | 3,056 | py | Python | assignments/assignment2/model.py | RuslanOm/dlcourse_ai | f4c85497dc4affb942cacb363f17ce63b39c1bd7 | [
"MIT"
] | null | null | null | assignments/assignment2/model.py | RuslanOm/dlcourse_ai | f4c85497dc4affb942cacb363f17ce63b39c1bd7 | [
"MIT"
] | null | null | null | assignments/assignment2/model.py | RuslanOm/dlcourse_ai | f4c85497dc4affb942cacb363f17ce63b39c1bd7 | [
"MIT"
] | null | null | null | import numpy as np
from layers import FullyConnectedLayer, ReLULayer, softmax_with_cross_entropy, l2_regularization
class TwoLayerNet:
""" Neural network with two fully connected layers """
def __init__(self, n_input, n_output, hidden_layer_size, reg):
"""
Initializes the neural network
... | 32.510638 | 96 | 0.612238 | 403 | 3,056 | 4.48139 | 0.332506 | 0.034884 | 0.033223 | 0.025471 | 0.127353 | 0.087486 | 0.087486 | 0.056478 | 0.056478 | 0.056478 | 0 | 0.023865 | 0.30072 | 3,056 | 93 | 97 | 32.860215 | 0.821245 | 0.375 | 0 | 0.153846 | 0 | 0 | 0.004654 | 0 | 0 | 0 | 0 | 0.021505 | 0 | 1 | 0.102564 | false | 0 | 0.051282 | 0 | 0.25641 | 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 |
474e6ccd3a09db8bd61fb6310dfa022bed136ad4 | 892 | py | Python | demo/singleperson.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 8 | 2020-10-17T14:54:53.000Z | 2022-02-09T11:03:01.000Z | demo/singleperson.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 4 | 2021-01-03T16:02:29.000Z | 2021-11-23T03:26:01.000Z | demo/singleperson.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 2 | 2021-04-10T07:05:55.000Z | 2021-09-19T23:22:18.000Z | import os
import sys
sys.path.append(os.path.dirname(__file__) + "/../")
from scipy.misc import imread
from util.config import load_config
from nnet import predict
from util import visualize
from dataset.pose_dataset import data_to_input
cfg = load_config("demo/pose_cfg.yaml")
# Load and setup CNN part detector
s... | 25.485714 | 68 | 0.784753 | 133 | 892 | 5.06015 | 0.488722 | 0.023774 | 0.032689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001276 | 0.121076 | 892 | 34 | 69 | 26.235294 | 0.857143 | 0.181614 | 0 | 0 | 0 | 0 | 0.053867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 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 |
47529769d5bba7253b76bc8e8bf54fbb83c5bfd5 | 646 | py | Python | projects/migrations/0003_auto_20210719_1152.py | Tajeu2001/awwards | 3a7b068f5d66336d4881a91b6a49338dc6f900d6 | [
"MIT"
] | null | null | null | projects/migrations/0003_auto_20210719_1152.py | Tajeu2001/awwards | 3a7b068f5d66336d4881a91b6a49338dc6f900d6 | [
"MIT"
] | null | null | null | projects/migrations/0003_auto_20210719_1152.py | Tajeu2001/awwards | 3a7b068f5d66336d4881a91b6a49338dc6f900d6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.24 on 2021-07-19 11:52
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_project_technologies'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | 25.84 | 90 | 0.623839 | 65 | 646 | 6.061538 | 0.584615 | 0.121827 | 0.126904 | 0.147208 | 0.324873 | 0.324873 | 0.324873 | 0.324873 | 0.324873 | 0.324873 | 0 | 0.054737 | 0.264706 | 646 | 24 | 91 | 26.916667 | 0.774737 | 0.071207 | 0 | 0.333333 | 1 | 0 | 0.122074 | 0.041806 | 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 |
47567885350f4cfe55660b2d4ce384bb43abd614 | 2,516 | py | Python | Programming_Assignment_5/proj5/oracle.py | csMOOC/Maryland.Cryptography | 58b6111a918599772e5a476764bb3b9897b61283 | [
"MIT"
] | 1 | 2017-11-18T15:34:59.000Z | 2017-11-18T15:34:59.000Z | Programming_Assignment_5/proj5/oracle.py | csMOOC/Maryland.Cryptography | 58b6111a918599772e5a476764bb3b9897b61283 | [
"MIT"
] | null | null | null | Programming_Assignment_5/proj5/oracle.py | csMOOC/Maryland.Cryptography | 58b6111a918599772e5a476764bb3b9897b61283 | [
"MIT"
] | null | null | null | sign_sock = None
vrfy_sock = None
MAX_PACKET_LEN = 8192
NOT_BINARY_STR_ERR = -1
MISSING_DELIMITER_ERR = -2
ORIGINAL_MSG_ERR = -3
def Oracle_Connect():
import socket
global sign_sock
global vrfy_sock
sign_sock, vrfy_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM), socket.socket(socket.AF_INET,... | 27.955556 | 127 | 0.647059 | 372 | 2,516 | 4.244624 | 0.255376 | 0.050665 | 0.043065 | 0.028499 | 0.339455 | 0.314123 | 0.28879 | 0.248258 | 0.197593 | 0.176694 | 0 | 0.025093 | 0.255564 | 2,516 | 89 | 128 | 28.269663 | 0.817939 | 0.080684 | 0 | 0.272727 | 0 | 0 | 0.243068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015152 | null | null | 0.181818 | 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 |
47595ec1c220dcb1c916744d399484c33fcb99c6 | 5,932 | py | Python | medical_test/models.py | AlexanderUstinovv/medical_test | b740fb599aa4097eb44d35a844fef838c4ccf6ad | [
"BSD-3-Clause"
] | null | null | null | medical_test/models.py | AlexanderUstinovv/medical_test | b740fb599aa4097eb44d35a844fef838c4ccf6ad | [
"BSD-3-Clause"
] | null | null | null | medical_test/models.py | AlexanderUstinovv/medical_test | b740fb599aa4097eb44d35a844fef838c4ccf6ad | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
class Measurement(models.Model):
class Meta:
db_table = 'measurement'
verbose_name = 'Измерение'
verbose_name_plural = 'Измерения'
name = models.CharField(max_length=10, verbose_name='Единицы измерения')
desc... | 41.774648 | 102 | 0.607552 | 578 | 5,932 | 5.99308 | 0.217993 | 0.146074 | 0.054561 | 0.07015 | 0.524538 | 0.454388 | 0.340069 | 0.265878 | 0.241051 | 0.241051 | 0 | 0.009298 | 0.311025 | 5,932 | 141 | 103 | 42.070922 | 0.838268 | 0.006575 | 0 | 0.294643 | 0 | 0 | 0.150569 | 0.004074 | 0 | 0 | 0 | 0.007092 | 0 | 1 | 0.053571 | false | 0 | 0.017857 | 0.053571 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
475e2827e051fef8ddf4351c0f8e2268a7395759 | 599 | py | Python | setup.py | jcanode/small_nn | 0e7fa58a52b45b2221b66bd0a67bd7395934133c | [
"MIT"
] | 1 | 2020-07-06T20:43:23.000Z | 2020-07-06T20:43:23.000Z | setup.py | jcanode/small_nn | 0e7fa58a52b45b2221b66bd0a67bd7395934133c | [
"MIT"
] | null | null | null | setup.py | jcanode/small_nn | 0e7fa58a52b45b2221b66bd0a67bd7395934133c | [
"MIT"
] | 1 | 2020-07-04T18:11:43.000Z | 2020-07-04T18:11:43.000Z | import setuptools
from setuptools import setup, find_namespace_packages
setuptools.setup(
name="small_nn-jcanode",
version="0.0.1",
author="Justin Canode",
author_email="jcanode@my.gcu.edu",
description="A small Neural Network Framework",
long_description_content_type="text/markdown",
url=... | 28.52381 | 53 | 0.677796 | 69 | 599 | 5.73913 | 0.724638 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.188648 | 599 | 20 | 54 | 29.95 | 0.802469 | 0 | 0 | 0 | 0 | 0 | 0.407346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47604d58582e9e00c559605b1ca161c8c2ddf27a | 1,212 | py | Python | RVFS/account/urls.py | cahudson94/Raven-Valley-Forge-Shop | 52f46381eafa9410d8e9c759366ef7490dcb1de9 | [
"MIT"
] | 2 | 2018-02-12T01:32:16.000Z | 2021-08-23T19:29:08.000Z | RVFS/account/urls.py | cahudson94/Raven-Valley-Forge-Shop | 52f46381eafa9410d8e9c759366ef7490dcb1de9 | [
"MIT"
] | 1 | 2018-05-23T03:42:20.000Z | 2018-05-23T03:42:20.000Z | RVFS/account/urls.py | cahudson94/Raven-Valley-Forge-Shop | 52f46381eafa9410d8e9c759366ef7490dcb1de9 | [
"MIT"
] | null | null | null | """."""
from django.urls import path, reverse_lazy
from account.views import (AccountView,
InfoFormView,
EditAccountView,
AddAddressView,
AddressListView,
DeleteAddress)
from django.con... | 43.285714 | 78 | 0.634488 | 129 | 1,212 | 5.697674 | 0.333333 | 0.065306 | 0.081633 | 0.035374 | 0.122449 | 0.122449 | 0.122449 | 0.122449 | 0 | 0 | 0 | 0 | 0.227723 | 1,212 | 27 | 79 | 44.888889 | 0.785256 | 0.000825 | 0 | 0 | 0 | 0 | 0.243983 | 0.099585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.291667 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
47615b2e9cbae2e821ca67ff9a73e485fdec4592 | 209 | wsgi | Python | index.wsgi | webgovernor/dungeonsheet | 59800249f0394af0fc08d7ca23e68faf9d0d2920 | [
"MIT"
] | null | null | null | index.wsgi | webgovernor/dungeonsheet | 59800249f0394af0fc08d7ca23e68faf9d0d2920 | [
"MIT"
] | null | null | null | index.wsgi | webgovernor/dungeonsheet | 59800249f0394af0fc08d7ca23e68faf9d0d2920 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, '/home/nullism/web/dnd.nullism.com/')
from main import app
conf = {}
conf['SECRET_KEY'] = 'CHANGEME'
app.config.update(conf)
application = app
| 14.928571 | 56 | 0.712919 | 33 | 209 | 4.484848 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.124402 | 209 | 13 | 57 | 16.076923 | 0.803279 | 0.095694 | 0 | 0 | 0 | 0 | 0.27957 | 0.182796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
476347b456fac42ec555a12cc44e71eae3a0e9fc | 236 | py | Python | src/file_format/utils/json_util.py | tys-hiroshi/test-github-actions-python | c47172949fbdd6ddffe889ca0f91eb11a741021d | [
"MIT"
] | null | null | null | src/file_format/utils/json_util.py | tys-hiroshi/test-github-actions-python | c47172949fbdd6ddffe889ca0f91eb11a741021d | [
"MIT"
] | 2 | 2021-05-21T09:36:42.000Z | 2021-05-28T03:55:44.000Z | src/file_format/utils/json_util.py | tys-hiroshi/test-github-actions-python | c47172949fbdd6ddffe889ca0f91eb11a741021d | [
"MIT"
] | 1 | 2020-08-06T06:21:34.000Z | 2020-08-06T06:21:34.000Z | # -*- coding:utf-8 -*-
import json
class JsonUtil(object):
def __init__(self, jsonFilePath):
with open(jsonFilePath, 'r', encoding='utf-8') as f:
self.content = json.load(f)
if __name__ == '__main__':
pass | 21.454545 | 60 | 0.610169 | 30 | 236 | 4.4 | 0.8 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.233051 | 236 | 11 | 61 | 21.454545 | 0.718232 | 0.084746 | 0 | 0 | 0 | 0 | 0.065116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 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 |
476814d4d4009b43a794a354ff6f84a93d5e7e37 | 1,013 | py | Python | project/notes/serializers.py | J0hnGann0n/modern-django | a8f51806b3f6903847a20b7241044d3a88f4a775 | [
"MIT"
] | 1 | 2017-06-22T22:35:07.000Z | 2017-06-22T22:35:07.000Z | project/notes/serializers.py | J0hnGann0n/modern-django | a8f51806b3f6903847a20b7241044d3a88f4a775 | [
"MIT"
] | null | null | null | project/notes/serializers.py | J0hnGann0n/modern-django | a8f51806b3f6903847a20b7241044d3a88f4a775 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import serializers
# MODEL IMPORTS
from project.notes.models import Note, NoteItem
class UserSerializer(serializers.HyperlinkedModelSerializer):
notes = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='note-detail')
cla... | 29.794118 | 103 | 0.702863 | 108 | 1,013 | 6.527778 | 0.462963 | 0.157447 | 0.059574 | 0.119149 | 0.175887 | 0.175887 | 0.175887 | 0.175887 | 0.175887 | 0 | 0 | 0 | 0.182626 | 1,013 | 33 | 104 | 30.69697 | 0.851449 | 0.012833 | 0 | 0.142857 | 0 | 0 | 0.089178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.619048 | 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 |
4768b72ec107983342fe43250644f8d66a20e6f5 | 483 | py | Python | example/retreive_soil_data.py | Smeaol22/ssurgo_provider | 63bc2251ef031da013af4cf0b252cc48cad4965e | [
"BSD-2-Clause"
] | null | null | null | example/retreive_soil_data.py | Smeaol22/ssurgo_provider | 63bc2251ef031da013af4cf0b252cc48cad4965e | [
"BSD-2-Clause"
] | null | null | null | example/retreive_soil_data.py | Smeaol22/ssurgo_provider | 63bc2251ef031da013af4cf0b252cc48cad4965e | [
"BSD-2-Clause"
] | null | null | null | from pathlib import Path
from src.main import retrieve_soil_composition
# This example is base on geodatabase obtain from ssurgo on Ohio area
ssurgo_folder_path = Path().absolute().parent / 'resources' / 'SSURGO' / 'soils_GSSURGO_oh_3905571_01' \
/ 'soils' / 'gssurgo_g_oh' / 'gSSURGO_OH.gdb'
coor... | 43.909091 | 104 | 0.732919 | 66 | 483 | 5.106061 | 0.636364 | 0.071217 | 0.136499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139024 | 0.151139 | 483 | 10 | 105 | 48.3 | 0.682927 | 0.138716 | 0 | 0 | 0 | 0 | 0.176329 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
477aed8ccac48ab95361c65ae3e38de923016db9 | 8,291 | py | Python | kai_reduce.py | skterry/jackknifeKAI | 8c85b32acd9166d87e7f5dc78943f2ad38f19809 | [
"MIT"
] | null | null | null | kai_reduce.py | skterry/jackknifeKAI | 8c85b32acd9166d87e7f5dc78943f2ad38f19809 | [
"MIT"
] | null | null | null | kai_reduce.py | skterry/jackknifeKAI | 8c85b32acd9166d87e7f5dc78943f2ad38f19809 | [
"MIT"
] | null | null | null | # Copied from /u/jlu/data/microlens/20aug22os/reduce/reduce.py
##################################################
#
# General Notes:
# -- python uses spaces to figure out the beginnings
# and ends of functions/loops/etc. So make sure
# to preserve spacings properly (indent). This
# is easy to do if you use em... | 34.119342 | 130 | 0.621517 | 1,143 | 8,291 | 4.396325 | 0.270341 | 0.033433 | 0.027065 | 0.047363 | 0.459701 | 0.425473 | 0.369751 | 0.349254 | 0.314428 | 0.282985 | 0 | 0.070951 | 0.206127 | 8,291 | 242 | 131 | 34.260331 | 0.692495 | 0.590761 | 0 | 0.04 | 0 | 0 | 0.093664 | 0.01889 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.22 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
477f20974aea53dd1ab2a88bb5960250f6eba452 | 1,007 | py | Python | Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | class Solution:
def generateMatrix(self, n: int) -> List[List[int]]:
matrix = [[None] * n for _ in range(n)]
startRow, endRow = 0, n - 1
startCol, endCol = 0, n - 1
count = 1
while startRow <= endRow and startCol <= endCol:
for col ... | 32.483871 | 59 | 0.440914 | 105 | 1,007 | 4.219048 | 0.238095 | 0.079007 | 0.099323 | 0.094808 | 0.121896 | 0.121896 | 0.121896 | 0.121896 | 0 | 0 | 0 | 0.038745 | 0.461768 | 1,007 | 30 | 60 | 33.566667 | 0.778598 | 0 | 0 | 0.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.136364 | 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 |
4784a44a26bc244fa67aa7f304ae6b3a0ac78c99 | 7,141 | py | Python | originstamp_client/models/timestamp_response.py | OriginStampTimestamping/originstamp-python-client | a13c3d51eac6dd3a920b7b74e079531fe7ab17a2 | [
"MIT"
] | 9 | 2018-11-06T06:43:46.000Z | 2020-09-26T03:29:41.000Z | originstamp_client/models/timestamp_response.py | OriginStampTimestamping/originstamp-python-client | a13c3d51eac6dd3a920b7b74e079531fe7ab17a2 | [
"MIT"
] | 1 | 2019-05-06T10:49:23.000Z | 2019-05-13T09:30:01.000Z | originstamp_client/models/timestamp_response.py | OriginStampTimestamping/originstamp-python-client | a13c3d51eac6dd3a920b7b74e079531fe7ab17a2 | [
"MIT"
] | 1 | 2020-10-02T17:31:47.000Z | 2020-10-02T17:31:47.000Z | # coding: utf-8
"""
OriginStamp Client
OpenAPI spec version: 3.0
OriginStamp Documentation: https://docs.originstamp.com
Contact: mail@originstamp.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class TimestampResponse(... | 31.183406 | 214 | 0.604537 | 846 | 7,141 | 4.990544 | 0.178487 | 0.051161 | 0.108953 | 0.095926 | 0.479157 | 0.412838 | 0.393415 | 0.314306 | 0.208432 | 0.18522 | 0 | 0.020677 | 0.3092 | 7,141 | 228 | 215 | 31.320175 | 0.835192 | 0.42473 | 0 | 0.071429 | 1 | 0 | 0.057261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.030612 | 0 | 0.336735 | 0.020408 | 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 |
4786a66a40aa4e0d9cb192b3447ac559f77b749b | 481 | py | Python | models/model.py | BaoLocPham/hum2song | 706b7fdf838944e2aabe0ae331c0867cb67f6fbc | [
"MIT"
] | null | null | null | models/model.py | BaoLocPham/hum2song | 706b7fdf838944e2aabe0ae331c0867cb67f6fbc | [
"MIT"
] | null | null | null | models/model.py | BaoLocPham/hum2song | 706b7fdf838944e2aabe0ae331c0867cb67f6fbc | [
"MIT"
] | null | null | null | from models.wrap_mobilenet import *
from models.wrap_resnet import *
from models.wrap_vgg import *
from models.wrap_alexnet import *
def get_model(config="resnet"):
if "resnet" in config.backbone:
model = get_resnet(config=config)
elif "mobilenet" in config.backbone:
model = get_mobilenet(confi... | 32.066667 | 41 | 0.702703 | 64 | 481 | 5.140625 | 0.265625 | 0.121581 | 0.170213 | 0.255319 | 0.291793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2079 | 481 | 15 | 42 | 32.066667 | 0.863517 | 0 | 0 | 0 | 0 | 0 | 0.064315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4788b5896e827da02e7c6002f5c921308b7b3159 | 15,484 | py | Python | Contents/Resources/parse_log.py | nathangrigg/Latex.bbpackage | f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3 | [
"BSD-3-Clause"
] | 8 | 2015-10-21T02:03:28.000Z | 2020-12-27T04:04:46.000Z | Contents/Resources/parse_log.py | nathangrigg/Latex.bbpackage | f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3 | [
"BSD-3-Clause"
] | null | null | null | Contents/Resources/parse_log.py | nathangrigg/Latex.bbpackage | f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3 | [
"BSD-3-Clause"
] | 5 | 2015-01-15T14:01:30.000Z | 2021-09-05T20:22:09.000Z | #!/usr/bin/python
# This script derived from a piece of the rubber project
# http://launchpad.net/rubber
# (c) Emmanuel Beffara, 2002--2006
#
# Modified by Nathan Grigg, January 2012
import re
import string
import sys
import getopt
#---- Log parser ----{{{1
re_loghead = re.compile("This is [0-9a-zA-Z-]*")
re_reru... | 33.227468 | 96 | 0.452855 | 1,682 | 15,484 | 4.129608 | 0.212247 | 0.01814 | 0.00907 | 0.013821 | 0.093147 | 0.064498 | 0.031673 | 0.025626 | 0.019868 | 0.011229 | 0 | 0.014318 | 0.436192 | 15,484 | 465 | 97 | 33.298925 | 0.781329 | 0.084216 | 0 | 0.363636 | 0 | 0.006061 | 0.115597 | 0.010782 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012121 | null | null | 0.006061 | 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 |
478b0e311b234d21a0af4f46a1bbc9e444318807 | 527 | py | Python | Lab02_ifelse_and_loops/exercise-17.py | rodrigoc-silva/Python-course | 327b20738a4b383510faddc0ec26a54be1bbd717 | [
"MIT"
] | null | null | null | Lab02_ifelse_and_loops/exercise-17.py | rodrigoc-silva/Python-course | 327b20738a4b383510faddc0ec26a54be1bbd717 | [
"MIT"
] | null | null | null | Lab02_ifelse_and_loops/exercise-17.py | rodrigoc-silva/Python-course | 327b20738a4b383510faddc0ec26a54be1bbd717 | [
"MIT"
] | null | null | null |
#This program converts KPH to MPH.
#constant
CONVERT_FACTOR = 0.6214
#head output
print("KPH \t MPH")
print("_" * 20)
#loop
for kph_speed in range (60, 131, 10):
#calculation
mph_speed = kph_speed * CONVERT_FACTOR
#output
print(kph_speed, '\t', format(mph_speed, '.1f'))
input("\nPress any key to ... | 15.5 | 52 | 0.588235 | 83 | 527 | 3.39759 | 0.674699 | 0.085106 | 0.099291 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160428 | 0.290323 | 527 | 34 | 53 | 15.5 | 0.593583 | 0.470588 | 0 | 0 | 0 | 0 | 0.149425 | 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 |
4790692759f37d6994f35811b0b4dd07154a5efb | 1,664 | py | Python | 1018.py | idarlenearaujo/URI_Python | c4517f90f5310894347edcf58a28d3e569a89a2b | [
"MIT"
] | null | null | null | 1018.py | idarlenearaujo/URI_Python | c4517f90f5310894347edcf58a28d3e569a89a2b | [
"MIT"
] | null | null | null | 1018.py | idarlenearaujo/URI_Python | c4517f90f5310894347edcf58a28d3e569a89a2b | [
"MIT"
] | null | null | null | # entrada
value = int(input())
# variaveis
cashier = True
valueI = value
n1 = 0
n2 = 0
n5 = 0
n10 = 0
n20 = 0
n50 = 0
n100 = 0
# laço quando cashier == False sai
while cashier == True:
# condicionais
if value >= 100:
valueA = value // 100
n100 = valueA
valueB = ... | 20.292683 | 183 | 0.485577 | 204 | 1,664 | 3.960784 | 0.215686 | 0.095297 | 0.155941 | 0.242574 | 0.413366 | 0.402228 | 0 | 0 | 0 | 0 | 0 | 0.107614 | 0.408053 | 1,664 | 82 | 184 | 20.292683 | 0.71269 | 0.103966 | 0 | 0.137255 | 0 | 0.019608 | 0.120172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.019608 | 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 |
4793cb0e3e72768ba54484744717ebd0208905a2 | 795 | py | Python | backend/appengine/routes/desenhos/edit.py | faahbih/projetoolivarts | 3dfd955fe44d58a38b85b6643440a600b0bde81a | [
"MIT"
] | null | null | null | backend/appengine/routes/desenhos/edit.py | faahbih/projetoolivarts | 3dfd955fe44d58a38b85b6643440a600b0bde81a | [
"MIT"
] | null | null | null | backend/appengine/routes/desenhos/edit.py | faahbih/projetoolivarts | 3dfd955fe44d58a38b85b6643440a600b0bde81a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from config.template_middleware import TemplateResponse
from desenho.desenho_model import Desenho, DesenhoForm
from gaecookie.decorator import no_csrf
#from pedido.pedido_model import Pedido, PedidoForm
from routes import desenhos
from tek... | 34.565217 | 63 | 0.783648 | 102 | 795 | 5.882353 | 0.431373 | 0.06 | 0.06 | 0.066667 | 0.073333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001441 | 0.127044 | 795 | 22 | 64 | 36.136364 | 0.863112 | 0.089308 | 0 | 0 | 0 | 0 | 0.065187 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.388889 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
479ba82b2ef03b26d431347ee226aa3e2162ff17 | 221 | py | Python | PYTHON/Exemplos/Aula 1/Ex004.py | B1linha/ADS---Mackenzie | 0dc53418ff7580836f6a64c5370e204e8841d1a9 | [
"MIT"
] | null | null | null | PYTHON/Exemplos/Aula 1/Ex004.py | B1linha/ADS---Mackenzie | 0dc53418ff7580836f6a64c5370e204e8841d1a9 | [
"MIT"
] | null | null | null | PYTHON/Exemplos/Aula 1/Ex004.py | B1linha/ADS---Mackenzie | 0dc53418ff7580836f6a64c5370e204e8841d1a9 | [
"MIT"
] | null | null | null | """ Faça um programa que receba o salário de um funcionário, calcule e mostre o novo salário, sabende-se que este sofreu um aumento de 25%"""
sal = float(input('Salário:'))
nsal = sal*1.25
print ('novo salário = ', nsal) | 55.25 | 142 | 0.710407 | 37 | 221 | 4.243243 | 0.675676 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.167421 | 221 | 4 | 143 | 55.25 | 0.826087 | 0.606335 | 0 | 0 | 0 | 0 | 0.283951 | 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 |
479c652f9d6be7f731af9a0eaf026a8198211ed7 | 1,947 | py | Python | src/test/test_cmdparse_qmp.py | dougpuob/qemu-tasker | 58a24090016abebcda8e95c382bceaef453ea981 | [
"MIT"
] | null | null | null | src/test/test_cmdparse_qmp.py | dougpuob/qemu-tasker | 58a24090016abebcda8e95c382bceaef453ea981 | [
"MIT"
] | null | null | null | src/test/test_cmdparse_qmp.py | dougpuob/qemu-tasker | 58a24090016abebcda8e95c382bceaef453ea981 | [
"MIT"
] | null | null | null | import unittest
import sys
import os
import sys
import json
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
PROJECT_DIR = os.path.abspath(os.path.join(TEST_DIR, os.pardir))
sys.path.insert(0, PROJECT_DIR)
from module.cmdparse import cmdargs
class test_cmdparse(unittest.TestCase):
def __init__(self, methodN... | 31.918033 | 77 | 0.582435 | 208 | 1,947 | 5.269231 | 0.269231 | 0.150547 | 0.190693 | 0.142336 | 0.650547 | 0.583029 | 0.583029 | 0.583029 | 0.583029 | 0.583029 | 0 | 0.023207 | 0.269646 | 1,947 | 60 | 78 | 32.45 | 0.747539 | 0 | 0 | 0.543478 | 0 | 0 | 0.191063 | 0.064715 | 0 | 0 | 0 | 0 | 0.23913 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.23913 | 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 |
479ce552b6ca46a4ea68c0270c6749107ab46cb3 | 3,498 | py | Python | ebbp/ebb_fit_prior.py | uttiyamaji/ebbp | d1b7270b7741cab4b18a9f54b47060f90ac1fc2c | [
"MIT"
] | null | null | null | ebbp/ebb_fit_prior.py | uttiyamaji/ebbp | d1b7270b7741cab4b18a9f54b47060f90ac1fc2c | [
"MIT"
] | null | null | null | ebbp/ebb_fit_prior.py | uttiyamaji/ebbp | d1b7270b7741cab4b18a9f54b47060f90ac1fc2c | [
"MIT"
] | null | null | null | """
ebb_fit_prior : fits a Beta prior by estimating the parameters from the data using
method of moments and MLE estimates
augment : given data and prior, computes the shrinked estimate, credible intervals and
augments those in the given dataframe
check_fit : plots the true average and the shrinked average
"""
impo... | 26.104478 | 129 | 0.57004 | 515 | 3,498 | 3.739806 | 0.287379 | 0.011423 | 0.028557 | 0.024922 | 0.110073 | 0.096573 | 0.040498 | 0.040498 | 0.040498 | 0.040498 | 0 | 0.022312 | 0.295312 | 3,498 | 133 | 130 | 26.300752 | 0.759026 | 0.241567 | 0 | 0.228571 | 0 | 0 | 0.063025 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.071429 | 0.071429 | 0.014286 | 0.271429 | 0.071429 | 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 |
479f58c93d75ceaaa8c1e6a8d36c5a44e2d8377b | 307 | py | Python | methylprep/processing/__init__.py | WonyoungCho/methylprep | 4e34f62be969158453ba9b05b7629433f9bbba8b | [
"MIT"
] | 5 | 2019-08-28T08:27:16.000Z | 2020-03-11T17:20:01.000Z | methylprep/processing/__init__.py | WonyoungCho/methylprep | 4e34f62be969158453ba9b05b7629433f9bbba8b | [
"MIT"
] | 16 | 2021-04-08T22:02:58.000Z | 2022-03-18T17:30:50.000Z | methylprep/processing/__init__.py | WonyoungCho/methylprep | 4e34f62be969158453ba9b05b7629433f9bbba8b | [
"MIT"
] | 3 | 2020-05-21T10:16:24.000Z | 2020-08-30T09:26:52.000Z | from .pipeline import SampleDataContainer, run_pipeline, make_pipeline
from .preprocess import preprocess_noob
from .postprocess import consolidate_values_for_sheet
__all__ = [
'SampleDataContainer',
'preprocess_noob',
'run_pipeline',
'make_pipeline,',
'consolidate_values_for_sheet'
]
| 25.583333 | 70 | 0.781759 | 32 | 307 | 7 | 0.4375 | 0.098214 | 0.133929 | 0.205357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143322 | 307 | 11 | 71 | 27.909091 | 0.851711 | 0 | 0 | 0 | 0 | 0 | 0.286645 | 0.091205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
47a75c9fd27c1c4e7e7447cf693a765246360655 | 1,446 | py | Python | yc164/518.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc164/518.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc164/518.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | def r2i(s):
i = 0
result = 0
while i < len(s):
a = {'IV': 4, 'IX': 9, 'XL': 40, 'XC': 90, 'CD': 400, 'CM': 900}
if s[i:i + 2] in a:
result += a[s[i:i + 2]]
i += 2
continue
b = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
... | 21.58209 | 77 | 0.310512 | 183 | 1,446 | 2.453552 | 0.284153 | 0.13363 | 0.020045 | 0.017817 | 0.066815 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144315 | 0.525588 | 1,446 | 66 | 78 | 21.909091 | 0.510204 | 0 | 0 | 0.032787 | 0 | 0 | 0.029737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0 | 0 | 0.081967 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47a795b1d3c2fd7990f98fee6d037bc7e104529b | 966 | py | Python | asynapplicationinsights/channel/abstractions.py | RobertoPrevato/aioapplicationinsights | c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120 | [
"MIT"
] | 2 | 2018-08-13T14:26:31.000Z | 2019-12-01T01:03:10.000Z | asynapplicationinsights/channel/abstractions.py | RobertoPrevato/aioapplicationinsights | c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120 | [
"MIT"
] | 4 | 2018-10-09T20:32:59.000Z | 2018-12-09T20:46:09.000Z | asynapplicationinsights/channel/abstractions.py | RobertoPrevato/aioapplicationinsights | c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120 | [
"MIT"
] | null | null | null | from asyncio import Queue, QueueEmpty
from abc import ABC, abstractmethod
from typing import List
class TelemetryChannel(ABC):
def __init__(self):
self._queue = Queue()
self._max_length = 500
def get(self):
try:
return self._queue.get_nowait()
except QueueEmpty:
... | 21 | 54 | 0.555901 | 110 | 966 | 4.745455 | 0.372727 | 0.068966 | 0.049808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004862 | 0.361284 | 966 | 45 | 55 | 21.466667 | 0.841167 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.057143 | 0.085714 | 0.028571 | 0.314286 | 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 |
47a8d279cbfb373533f6a00a0322f66158d1d281 | 759 | py | Python | 2021/day3/a.py | vinnymaker18/adventofcode | 92d0a6f5a04e6601b6c82ee323565e7327be36f8 | [
"MIT"
] | null | null | null | 2021/day3/a.py | vinnymaker18/adventofcode | 92d0a6f5a04e6601b6c82ee323565e7327be36f8 | [
"MIT"
] | null | null | null | 2021/day3/a.py | vinnymaker18/adventofcode | 92d0a6f5a04e6601b6c82ee323565e7327be36f8 | [
"MIT"
] | null | null | null | def processInput(inputFile='input.txt'):
return [l.strip() for l in open(inputFile).readlines()]
def filter(data, a=1):
setA = set(range(len(data)))
setB = set(range(len(data)))
def count(bit, value, dataset):
return set(d for d in dataset if data[d][bit] == value)
for bit in range(12):
... | 25.3 | 63 | 0.571805 | 113 | 759 | 3.840708 | 0.371681 | 0.092166 | 0.050691 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016275 | 0.27141 | 759 | 29 | 64 | 26.172414 | 0.768535 | 0 | 0 | 0 | 0 | 0 | 0.017128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0.105263 | 0.263158 | 0.052632 | 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 |
47bbb88fe7ad9a14195f7bde44006fac967ad0e2 | 2,044 | py | Python | python/datadb2/core/svc/build_db2_url.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datadb2/core/svc/build_db2_url.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datadb2/core/svc/build_db2_url.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
from base import BaseObject
from base import CryptoBase
from base import FileIO
from datadb2.core.dmo import BaseDB2Client
class BuildDb2Url(BaseObject):
""" Create a DB2 connection """
__config_path = 'resources/config/db2/schemas.yml'
def __in... | 28.788732 | 81 | 0.581703 | 217 | 2,044 | 5.16129 | 0.387097 | 0.075 | 0.0375 | 0.039286 | 0.141071 | 0.141071 | 0.141071 | 0.076786 | 0 | 0 | 0 | 0.017218 | 0.289628 | 2,044 | 70 | 82 | 29.2 | 0.754132 | 0.150685 | 0 | 0.057143 | 0 | 0 | 0.093284 | 0.019901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.085714 | 0.142857 | 0.028571 | 0.457143 | 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 |
47bcdf89bfb403747fce6b37d8765b1f6f980172 | 431 | py | Python | ex067 - Tabuada v3.0.py | marvincosmo/Python-Curso-em-Video | 47ee3dd6423835e7bca159ffd7ee796423569176 | [
"MIT"
] | null | null | null | ex067 - Tabuada v3.0.py | marvincosmo/Python-Curso-em-Video | 47ee3dd6423835e7bca159ffd7ee796423569176 | [
"MIT"
] | null | null | null | ex067 - Tabuada v3.0.py | marvincosmo/Python-Curso-em-Video | 47ee3dd6423835e7bca159ffd7ee796423569176 | [
"MIT"
] | null | null | null | """ 67 - Faça um programa que mostre a tabuada de vários números, um de cada vez, para cada valor digitado pelo
usuário. O programa será interrompido quando o número solicitado for negativo. """
while True:
n = int(input('Informe um número para ver sua tabuada: '))
if n < 0:
break
print('-' * 13)
... | 33.153846 | 111 | 0.62645 | 67 | 431 | 4.029851 | 0.701493 | 0.051852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.24594 | 431 | 12 | 112 | 35.916667 | 0.8 | 0.431555 | 0 | 0.222222 | 0 | 0 | 0.329114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 |
47c00f796dfbf64fa498d1661e0430227f50240a | 3,301 | py | Python | __init__.py | mchorse/io_export_bobj | 2de7a55c59a5e4ece5ae047cceaa16da94272685 | [
"CNRI-Python"
] | 2 | 2021-10-04T17:03:20.000Z | 2021-12-07T20:20:49.000Z | __init__.py | mchorse/io_export_bobj | 2de7a55c59a5e4ece5ae047cceaa16da94272685 | [
"CNRI-Python"
] | null | null | null | __init__.py | mchorse/io_export_bobj | 2de7a55c59a5e4ece5ae047cceaa16da94272685 | [
"CNRI-Python"
] | null | null | null | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 39.771084 | 131 | 0.723417 | 426 | 3,301 | 5.429577 | 0.467136 | 0.02767 | 0.016861 | 0.024643 | 0.087332 | 0.076092 | 0.051881 | 0.029399 | 0 | 0 | 0 | 0.009479 | 0.16904 | 3,301 | 83 | 132 | 39.771084 | 0.833759 | 0.251136 | 0 | 0 | 0 | 0 | 0.234253 | 0.009057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.152174 | 0 | 0.521739 | 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 |
47c2fc4cc67997a7602b32b94d673235ee2e4478 | 1,303 | py | Python | dashboard/migrations/0010_auto_20191214_1611.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | dashboard/migrations/0010_auto_20191214_1611.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | dashboard/migrations/0010_auto_20191214_1611.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-12-14 15:11
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0009_auto_20191211_2107'),
]
operations = [
migrations.RemoveField(
model_name='subjec... | 32.575 | 161 | 0.593246 | 134 | 1,303 | 5.61194 | 0.485075 | 0.05984 | 0.06383 | 0.079787 | 0.114362 | 0.114362 | 0.114362 | 0 | 0 | 0 | 0 | 0.039236 | 0.276286 | 1,303 | 39 | 162 | 33.410256 | 0.758218 | 0.034536 | 0 | 0.484848 | 1 | 0 | 0.159236 | 0.018312 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 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 |
47cd00f1c6e6fe88e15b29bda7971944f1ec4024 | 2,127 | py | Python | mylast.py | JohnTocher/descrobbler | 0bca4d05e0029b63d11fe615e933362cadb30c11 | [
"Apache-2.0"
] | null | null | null | mylast.py | JohnTocher/descrobbler | 0bca4d05e0029b63d11fe615e933362cadb30c11 | [
"Apache-2.0"
] | null | null | null | mylast.py | JohnTocher/descrobbler | 0bca4d05e0029b63d11fe615e933362cadb30c11 | [
"Apache-2.0"
] | null | null | null | ''' this file creates the objects used to access the scrobbling service api
No actual creds should be stored here!
This module will be imported and used by the main code
'''
import os
import sys
import pylast
try:
API_KEY = os.environ["LASTFM_API_KEY"]
API_SECRET = os.environ["LASTFM_API_SECRET"]
ex... | 29.136986 | 77 | 0.686883 | 296 | 2,127 | 4.726351 | 0.320946 | 0.08649 | 0.090064 | 0.094353 | 0.24732 | 0.181558 | 0.120086 | 0.057184 | 0.057184 | 0 | 0 | 0.002922 | 0.195581 | 2,127 | 72 | 78 | 29.541667 | 0.814144 | 0.170193 | 0 | 0.081633 | 0 | 0 | 0.255441 | 0.033219 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.102041 | 0.061224 | 0.020408 | 0.163265 | 0.22449 | 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 |
47cf4c7848eb2692961ae1f8fb2074a86bde0da7 | 8,595 | py | Python | Code to apply on BS output/Python/makeTtests.py | albertocottica/community-management-simulator | e942f854f41705fcb114a79308536a2765896e60 | [
"MIT"
] | null | null | null | Code to apply on BS output/Python/makeTtests.py | albertocottica/community-management-simulator | e942f854f41705fcb114a79308536a2765896e60 | [
"MIT"
] | null | null | null | Code to apply on BS output/Python/makeTtests.py | albertocottica/community-management-simulator | e942f854f41705fcb114a79308536a2765896e60 | [
"MIT"
] | null | null | null | # runs t-tests over the null hypothesis
# avg_gini if (priority == "newer") == avg_gini if (priority == "more active")
import csv
import numpy as np
from scipy.stats import ttest_ind
from scipy.special import stdtr
def readCsvFile(fileName):
'''
(string) => list of dicts
Read the file called fileName a... | 47.225275 | 118 | 0.532984 | 808 | 8,595 | 5.589109 | 0.262376 | 0.018601 | 0.011072 | 0.017715 | 0.304694 | 0.260629 | 0.238707 | 0.238707 | 0.189105 | 0.189105 | 0 | 0.017515 | 0.368935 | 8,595 | 182 | 119 | 47.225275 | 0.815081 | 0.081559 | 0 | 0.147826 | 0 | 0 | 0.19353 | 0.028007 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034783 | null | null | 0.086957 | 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 |
47d397381f542a9f03743386be3039bce2cd0248 | 9,576 | py | Python | participants_codes/konnectomics/utils/submission.py | orlandi/connectomicsPerspectivesPaper | 98060e613d58c8e1ef9d14eb213439ae4cb8272b | [
"MIT"
] | null | null | null | participants_codes/konnectomics/utils/submission.py | orlandi/connectomicsPerspectivesPaper | 98060e613d58c8e1ef9d14eb213439ae4cb8272b | [
"MIT"
] | null | null | null | participants_codes/konnectomics/utils/submission.py | orlandi/connectomicsPerspectivesPaper | 98060e613d58c8e1ef9d14eb213439ae4cb8272b | [
"MIT"
] | null | null | null | # Copyright 2014 Alistair Muldal <alistair.muldal@pharm.ox.ac.uk>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Th... | 29.018182 | 80 | 0.611529 | 1,325 | 9,576 | 4.352453 | 0.283019 | 0.004855 | 0.012485 | 0.00763 | 0.140454 | 0.109936 | 0.079417 | 0.060343 | 0.056529 | 0.056529 | 0 | 0.017611 | 0.288429 | 9,576 | 329 | 81 | 29.106383 | 0.828735 | 0.163847 | 0 | 0.039216 | 0 | 0 | 0.083122 | 0.011973 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009804 | 0.068627 | null | null | 0.029412 | 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 |
47de6098d15918068f7f92c961c579b6396d5610 | 1,222 | py | Python | scripts/acr_make_overview.py | vogelbac/LAB-QA2GO- | be434da7399d396413309f947f4b634d8fae9a17 | [
"BSD-3-Clause"
] | 14 | 2019-02-07T10:50:58.000Z | 2021-09-03T16:11:00.000Z | scripts/acr_make_overview.py | vogelbac/LAB-QA2GO- | be434da7399d396413309f947f4b634d8fae9a17 | [
"BSD-3-Clause"
] | 6 | 2019-01-28T09:19:27.000Z | 2021-09-09T06:56:42.000Z | scripts/acr_make_overview.py | vogelbac/LAB-QA2GO | be434da7399d396413309f947f4b634d8fae9a17 | [
"BSD-3-Clause"
] | 4 | 2019-01-28T09:00:58.000Z | 2021-05-25T13:54:40.000Z | # script to generate an overview file of all measurentoverview files
import os
import sys
def main(result_folder):
######### Main routine
erg_path = result_folder
fobj = open(erg_path+'overview.txt','w')
#liste mit Werten
value_list =['Datum','Geo_loc','Geo_T1sl1hor','Geo_T1sl1ver','Geo_T1sl5hor','Geo_T1sl5ve... | 31.333333 | 504 | 0.720949 | 193 | 1,222 | 4.233161 | 0.414508 | 0.051408 | 0.029376 | 0.026928 | 0.099143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064397 | 0.110475 | 1,222 | 38 | 505 | 32.157895 | 0.687213 | 0.077741 | 0 | 0.083333 | 1 | 0 | 0.38565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47eb8cdb6e6b5599e5209b828d0aacfe3eb4df25 | 555 | py | Python | Utilities/fe8_exp_test.py | Shahrose/lex-talionis | ef7e48124b36269f4212eb0e3a7747caf53bfadd | [
"MIT"
] | null | null | null | Utilities/fe8_exp_test.py | Shahrose/lex-talionis | ef7e48124b36269f4212eb0e3a7747caf53bfadd | [
"MIT"
] | null | null | null | Utilities/fe8_exp_test.py | Shahrose/lex-talionis | ef7e48124b36269f4212eb0e3a7747caf53bfadd | [
"MIT"
] | null | null | null | mlevel = 1
elevel = 1
mclass_bonus_a = 20
eclass_bonus_a = 0
mclass_bonus_b = 60
eclass_bonus_b = 0
mclass_power = 3
eclass_power = 2
def damage_exp():
return (31 + elevel + eclass_bonus_a - mlevel - mclass_bonus_a) / mclass_power
def defeat_exp(mode=1):
return (elevel * eclass_power + eclass_bonus_b) - ((mle... | 24.130435 | 103 | 0.715315 | 92 | 555 | 3.967391 | 0.282609 | 0.147945 | 0.065753 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040773 | 0.16036 | 555 | 22 | 104 | 25.227273 | 0.742489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0.222222 | 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 |
47fd66e778b3e447ec3e01b548b142f968b5fb7f | 599 | py | Python | setup.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | null | null | null | setup.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | null | null | null | setup.py | xebialabs-community/xld-install-helper | a61baa9fabc6484afa5fd287a25fc6fb88d84670 | [
"MIT"
] | 2 | 2016-12-27T12:12:09.000Z | 2020-09-24T18:06:58.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='xl-helper',
version='1.0.5',
description='XL Deploy helper',
long_description='This tool helps with installation and upgrade of XL Deploy and plugins',
author='Mike Kotsur',
author_email='mkotsur@xebialabs.com',
... | 31.526316 | 94 | 0.684474 | 75 | 599 | 5.346667 | 0.72 | 0.079801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005894 | 0.15025 | 599 | 18 | 95 | 33.277778 | 0.781925 | 0.033389 | 0 | 0 | 0 | 0 | 0.401384 | 0.036332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 |
9a003487767445f7e574b64c73392ed111a08837 | 493 | py | Python | setup.py | hugorodgerbrown/django-netpromoterscore | f0a7ddc32fe942069abacfaa5a3220eaabe9e1db | [
"MIT"
] | 8 | 2016-06-21T21:56:17.000Z | 2021-10-06T17:28:00.000Z | setup.py | hugorodgerbrown/django-netpromoterscore | f0a7ddc32fe942069abacfaa5a3220eaabe9e1db | [
"MIT"
] | null | null | null | setup.py | hugorodgerbrown/django-netpromoterscore | f0a7ddc32fe942069abacfaa5a3220eaabe9e1db | [
"MIT"
] | 1 | 2018-10-19T21:57:54.000Z | 2018-10-19T21:57:54.000Z | from setuptools import setup, find_packages
setup(
name = "django-netpromoterscore",
version = '0.0.2',
description = "Model, Tests, and API for collecting promoter score from users.",
author = "Austin Brennan",
author_email = "ab@epantry.com",
url = "https://github.com/epantry/django-netpromo... | 32.866667 | 84 | 0.677485 | 56 | 493 | 5.857143 | 0.714286 | 0.118902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007538 | 0.192698 | 493 | 15 | 85 | 32.866667 | 0.816583 | 0 | 0 | 0 | 0 | 0 | 0.419028 | 0.046559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
9a0110a8361459c9dacb7bcdc22b39b60eeea30e | 731 | py | Python | DSC_Data_Exchange/dsc-text-node/src/state/configuration_state.py | ai4eu/tutorials | 68eb2208716e655d2aa8b950a0d7d73bf6f20f3a | [
"Apache-2.0"
] | 8 | 2020-04-21T13:29:04.000Z | 2021-12-13T08:59:09.000Z | DSC_Data_Exchange/dsc-text-node/src/state/configuration_state.py | ai4eu/tutorials | 68eb2208716e655d2aa8b950a0d7d73bf6f20f3a | [
"Apache-2.0"
] | 3 | 2021-04-27T11:03:04.000Z | 2021-05-24T18:22:57.000Z | DSC_Data_Exchange/dsc-text-node/src/state/configuration_state.py | ai4eu/tutorials | 68eb2208716e655d2aa8b950a0d7d73bf6f20f3a | [
"Apache-2.0"
] | 6 | 2020-07-06T08:23:25.000Z | 2021-11-24T10:39:34.000Z | import flask
class Configuration:
def __new__(cls):
if not hasattr(cls, 'instance'):
cls.instance = super(Configuration, cls).__new__(cls)
return cls.instance
recipient = None
resource_id = None
artifact_id = None
contract = None
custom_dsc = None
use_custom_d... | 24.366667 | 65 | 0.653899 | 77 | 731 | 5.87013 | 0.363636 | 0.119469 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242134 | 731 | 29 | 66 | 25.206897 | 0.815884 | 0 | 0 | 0 | 0 | 0 | 0.097127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0.045455 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9a11a05b881b07a6c93ac169600004f78ada2754 | 434 | py | Python | exercicios/Lista5/Q9.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | exercicios/Lista5/Q9.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | exercicios/Lista5/Q9.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | #9. Façaumam função que receba a altura e o raio de um cilindro circular e retorne o volume
#do cilindro. O volume de um cilindro circular é calculado por meio da seguinte fórmula:
#V =pi*raio^2 x altura, onde pi = 3.141592.
def volCilindro(raio,altura):
return 3.1415926535*pow(raio,2)*altura
r=float(input("Inform... | 43.4 | 91 | 0.751152 | 76 | 434 | 4.289474 | 0.552632 | 0.092025 | 0.07362 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061995 | 0.145161 | 434 | 10 | 92 | 43.4 | 0.816712 | 0.504608 | 0 | 0 | 0 | 0 | 0.2723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9a122e1fac70741e43cd706c1bfea367874d0fa7 | 1,714 | py | Python | sachima/publish.py | gitter-badger/Sachima | 76547fb6a21f1fea597994e6ee02c5db080d1e7a | [
"MIT"
] | null | null | null | sachima/publish.py | gitter-badger/Sachima | 76547fb6a21f1fea597994e6ee02c5db080d1e7a | [
"MIT"
] | null | null | null | sachima/publish.py | gitter-badger/Sachima | 76547fb6a21f1fea597994e6ee02c5db080d1e7a | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
from sachima import conf
class Publisher(object):
@classmethod
def get_csrf_token(self, html):
soup = BeautifulSoup(html, "html.parser")
csrf = soup.find(id="csrf_token").attrs["value"]
return csrf
@classmethod
def to_superset(sel... | 32.961538 | 78 | 0.449242 | 163 | 1,714 | 4.570552 | 0.466258 | 0.060403 | 0.100671 | 0.06443 | 0.056376 | 0.056376 | 0 | 0 | 0 | 0 | 0 | 0.002099 | 0.443991 | 1,714 | 51 | 79 | 33.607843 | 0.779643 | 0.004084 | 0 | 0.046512 | 0 | 0 | 0.148474 | 0.04108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.069767 | 0.069767 | 0 | 0.162791 | 0.046512 | 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 |
9a13bf9dda86cde96d1e704297f9ca1d15b1b6aa | 3,254 | pyw | Python | src/mediator/Main.pyw | fuqinshen/Python-- | aaa5230354258e1bba761e483c8b9fb6be00402a | [
"MIT"
] | 31 | 2018-10-19T15:28:36.000Z | 2022-02-14T03:01:25.000Z | src/mediator/Main.pyw | fuqinshen/Python-- | aaa5230354258e1bba761e483c8b9fb6be00402a | [
"MIT"
] | null | null | null | src/mediator/Main.pyw | fuqinshen/Python-- | aaa5230354258e1bba761e483c8b9fb6be00402a | [
"MIT"
] | 10 | 2019-01-10T04:02:12.000Z | 2021-11-17T01:52:15.000Z | import tkinter
class Main(tkinter.Frame):
def __init__(self, parent):
super().__init__(parent)
self.parent = parent
self.pack()
self.checkValue = tkinter.StringVar()
self.checkGuest = tkinter.Radiobutton(self, text="Guest", variable=self.checkValue, value="Guest",
... | 39.682927 | 106 | 0.567609 | 352 | 3,254 | 5.193182 | 0.232955 | 0.030635 | 0.039387 | 0.043764 | 0.314004 | 0.28884 | 0.200766 | 0.151532 | 0.131838 | 0.096827 | 0 | 0.018301 | 0.294714 | 3,254 | 81 | 107 | 40.17284 | 0.778214 | 0 | 0 | 0.287879 | 0 | 0 | 0.075292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.166667 | 0.015152 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9a1676b9866c375100521ac48277fdcc219264ce | 1,592 | py | Python | datawinners/blue/urls.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | 1 | 2015-11-02T09:11:12.000Z | 2015-11-02T09:11:12.000Z | datawinners/blue/urls.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | datawinners/blue/urls.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls.defaults import patterns, url
from datawinners.blue import view
from datawinners.blue.view import new_xform_submission_post, edit_xform_submission_post, get_attachment, attachment_download, guest_survey, public_survey
from datawinners.blue.view import ProjectUpload, ProjectUpdate
from datawinners.... | 61.230769 | 153 | 0.741834 | 212 | 1,592 | 5.25 | 0.207547 | 0.039533 | 0.069182 | 0.061995 | 0.37646 | 0.274933 | 0.237197 | 0.172507 | 0.08805 | 0 | 0 | 0 | 0.072236 | 1,592 | 25 | 154 | 63.68 | 0.753555 | 0 | 0 | 0 | 0 | 0 | 0.403266 | 0.336055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 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 |
9a25e9fa72dd391d4676f6e0a6bb06f9710db5d6 | 1,837 | py | Python | matilda/data_pipeline/data_streaming/consumer.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 45 | 2021-01-28T04:12:21.000Z | 2022-02-24T13:15:50.000Z | matilda/data_pipeline/data_streaming/consumer.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 32 | 2021-03-02T18:45:16.000Z | 2022-03-12T00:53:10.000Z | matilda/data_pipeline/data_streaming/consumer.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 10 | 2020-12-25T15:02:40.000Z | 2021-12-30T11:40:15.000Z | from kafka.consumer import KafkaConsumer
from json import loads
from mongoengine import *
from matilda.data_pipeline import object_model
consumer = KafkaConsumer(
'numtest', # kafka topic
bootstrap_servers=['localhost:9092'], # same as our producer
# It handles where the consumer restarts reading after... | 42.72093 | 116 | 0.740338 | 261 | 1,837 | 5.1341 | 0.563218 | 0.041045 | 0.013433 | 0.035821 | 0.074627 | 0.043284 | 0 | 0 | 0 | 0 | 0 | 0.005894 | 0.168753 | 1,837 | 42 | 117 | 43.738095 | 0.871644 | 0.495917 | 0 | 0 | 0 | 0.047619 | 0.221122 | 0.110011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.142857 | 0.190476 | 0.047619 | 0.285714 | 0.095238 | 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 |
9a2921aafee477055d03e47abb30d023e2f9b7df | 2,645 | py | Python | 2017/day06/redistribution.py | kmcginn/advent-of-code | 96a8d7d723f6f222d431fd9ede88d0a303d86761 | [
"MIT"
] | null | null | null | 2017/day06/redistribution.py | kmcginn/advent-of-code | 96a8d7d723f6f222d431fd9ede88d0a303d86761 | [
"MIT"
] | null | null | null | 2017/day06/redistribution.py | kmcginn/advent-of-code | 96a8d7d723f6f222d431fd9ede88d0a303d86761 | [
"MIT"
] | null | null | null | """
from: http://adventofcode.com/2017/day/6
--- Day 6: Memory Reallocation ---
A debugger program here is having an issue: it is trying to repair a memory reallocation routine,
but it keeps getting stuck in an infinite loop.
In this area, there are sixteen memory banks; each memory bank can hold any number of blocks.... | 56.276596 | 100 | 0.761815 | 477 | 2,645 | 4.203354 | 0.389937 | 0.032918 | 0.020948 | 0.005985 | 0.04389 | 0.04389 | 0.04389 | 0.04389 | 0 | 0 | 0 | 0.016768 | 0.18828 | 2,645 | 46 | 101 | 57.5 | 0.917094 | 0.921739 | 0 | 0 | 0 | 0 | 0.088083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 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 |
9a2d7ee04fd9497228365f3b015187758913933a | 965 | py | Python | models.py | curieos/Django-Blog-TDD | ba40b285d87c88aa33b1e2eb3d4bda014a88a319 | [
"MIT"
] | null | null | null | models.py | curieos/Django-Blog-TDD | ba40b285d87c88aa33b1e2eb3d4bda014a88a319 | [
"MIT"
] | 8 | 2019-04-14T13:53:55.000Z | 2019-07-11T18:06:57.000Z | models.py | curieos/Django-Blog-TDD | ba40b285d87c88aa33b1e2eb3d4bda014a88a319 | [
"MIT"
] | null | null | null | from django.utils.text import slugify
from django_extensions.db.fields import AutoSlugField
from django.db import models
from datetime import datetime
def get_current_date_time():
return datetime.now()
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=50)
slug = AutoSlugFi... | 29.242424 | 101 | 0.78342 | 131 | 965 | 5.564886 | 0.442748 | 0.049383 | 0.060357 | 0.049383 | 0.23594 | 0.109739 | 0.109739 | 0 | 0 | 0 | 0 | 0.009292 | 0.107772 | 965 | 32 | 102 | 30.15625 | 0.837398 | 0.02487 | 0 | 0.086957 | 0 | 0 | 0.046858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0.173913 | 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 | 1 | 0 | 0 | 0 | 1 |
9a33a34b59f215b243d9da922749fa4b6ad17b64 | 1,002 | py | Python | code/analytics/models.py | harryface/url-condenser | 800b573a82f41dd4900c8264007c1a0260a1a8b4 | [
"MIT"
] | null | null | null | code/analytics/models.py | harryface/url-condenser | 800b573a82f41dd4900c8264007c1a0260a1a8b4 | [
"MIT"
] | null | null | null | code/analytics/models.py | harryface/url-condenser | 800b573a82f41dd4900c8264007c1a0260a1a8b4 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from shortener.models import CondenseURL
class UrlViewedManager(models.Manager):
def create_event(self, condensed_object, ip_address):
if isinstance(condensed_object, CondenseURL):
obj, created = self.get_or_create(url=condensed_object)
... | 31.3125 | 69 | 0.653693 | 117 | 1,002 | 5.418803 | 0.504274 | 0.085174 | 0.037855 | 0.082019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002674 | 0.253493 | 1,002 | 32 | 70 | 31.3125 | 0.84492 | 0.023952 | 0 | 0.08 | 0 | 0 | 0.048106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0.04 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9a409844ea8ff87b62a343aba1bddbe1b4acc686 | 649 | py | Python | Toolkits/VCS/mygulamali__repo-mine/mine/helpers.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/mygulamali__repo-mine/mine/helpers.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/mygulamali__repo-mine/mine/helpers.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | from sys import stdout
def print_action(action):
def print_action_decorator(function):
def puts(string):
stdout.write(string)
stdout.flush()
def function_wrapper(*args, **kwargs):
puts("{0}... ".format(action))
return_value = function(*args, **kwargs... | 27.041667 | 52 | 0.628659 | 77 | 649 | 5.077922 | 0.454545 | 0.084399 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002041 | 0.244992 | 649 | 23 | 53 | 28.217391 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.061633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a45c1430c4ad59b5117e98f3291087d7df4a619 | 834 | py | Python | print-server/src/auth/Singleton.py | Multi-Agent-io/feecc-io-consolidated | 9ba60176346ca9e15b22c09c2d5f1e1a5ac3ced6 | [
"Apache-2.0"
] | null | null | null | print-server/src/auth/Singleton.py | Multi-Agent-io/feecc-io-consolidated | 9ba60176346ca9e15b22c09c2d5f1e1a5ac3ced6 | [
"Apache-2.0"
] | 2 | 2021-11-27T09:31:12.000Z | 2022-03-23T13:15:57.000Z | print-server/src/auth/Singleton.py | Multi-Agent-io/feecc-io-consolidated | 9ba60176346ca9e15b22c09c2d5f1e1a5ac3ced6 | [
"Apache-2.0"
] | 2 | 2021-12-09T13:23:17.000Z | 2022-03-23T13:04:41.000Z | from __future__ import annotations
import typing as tp
from loguru import logger
class SingletonMeta(type):
"""
The Singleton class ensures there is always only one instance of a certain class that is globally available.
This implementation is __init__ signature agnostic.
"""
_instances: tp.Dic... | 33.36 | 113 | 0.655875 | 107 | 834 | 4.841122 | 0.560748 | 0.048263 | 0.086873 | 0.03861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248201 | 834 | 24 | 114 | 34.75 | 0.826156 | 0.305755 | 0 | 0 | 0 | 0 | 0.138258 | 0.047348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9a4a94c02a87e8e977bec5709e692ef62684b7c3 | 959 | py | Python | app.py | pic-metric/data-science | 89bf6e3733a3595220c945269b66befcaf82a3be | [
"MIT"
] | null | null | null | app.py | pic-metric/data-science | 89bf6e3733a3595220c945269b66befcaf82a3be | [
"MIT"
] | null | null | null | app.py | pic-metric/data-science | 89bf6e3733a3595220c945269b66befcaf82a3be | [
"MIT"
] | 3 | 2020-01-31T22:34:00.000Z | 2020-03-06T01:56:06.000Z | # from python-decouple import config
from flask import Flask, request, jsonify
from .obj_detector import object_detection
# from flask_sqlalchemy import SQLAlchemy
from dotenv import load_dotenv
load_dotenv()
def create_app():
app = Flask(__name__)
@app.route('/img_summary', methods=['GET'])
... | 28.205882 | 78 | 0.607925 | 119 | 959 | 4.722689 | 0.588235 | 0.032028 | 0.046263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0.301356 | 959 | 33 | 79 | 29.060606 | 0.832836 | 0.447341 | 0 | 0 | 0 | 0 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9a4d61b4c436761ff6069be2e39ac836e18b0130 | 1,540 | py | Python | tests/regressions/python/942_lazy_fmap.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | tests/regressions/python/942_lazy_fmap.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | tests/regressions/python/942_lazy_fmap.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | # Copyright (c) 2019 Bita Hasheminezhad
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# #942: `fold_left`, `fold_right` and `fmap` do not work with a lazy function
import numpy as np
from phylanx import Phyl... | 24.0625 | 79 | 0.670779 | 233 | 1,540 | 4.347639 | 0.39485 | 0.034551 | 0.026654 | 0.023692 | 0.122409 | 0.078973 | 0.078973 | 0.078973 | 0.078973 | 0.078973 | 0 | 0.021523 | 0.215584 | 1,540 | 63 | 80 | 24.444444 | 0.817053 | 0.180519 | 0 | 0.057143 | 0 | 0 | 0.079808 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.2 | false | 0.028571 | 0.057143 | 0.142857 | 0.457143 | 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 |
9a5cc32eb8d423266537616c2fd2072b4114deb3 | 2,258 | py | Python | fabric_cm/credmgr/swagger_server/__main__.py | fabric-testbed/CredentialManager | da8ce54ab78544ff907af81d8cd7723ff48f6652 | [
"MIT"
] | 1 | 2021-05-24T17:20:07.000Z | 2021-05-24T17:20:07.000Z | fabric_cm/credmgr/swagger_server/__main__.py | fabric-testbed/CredentialManager | da8ce54ab78544ff907af81d8cd7723ff48f6652 | [
"MIT"
] | 4 | 2021-06-07T16:18:45.000Z | 2021-06-29T20:13:21.000Z | fabric_cm/credmgr/swagger_server/__main__.py | fabric-testbed/CredentialManager | da8ce54ab78544ff907af81d8cd7723ff48f6652 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2020 FABRIC Testbed
#
# 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 ... | 32.724638 | 80 | 0.724978 | 312 | 2,258 | 5.141026 | 0.525641 | 0.054863 | 0.022444 | 0.035536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.206377 | 2,258 | 68 | 81 | 33.205882 | 0.891183 | 0.542516 | 0 | 0 | 0 | 0 | 0.106599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.333333 | 0 | 0.37037 | 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 |
9a5d1a5d6e04e787d275225f739fe6d7102b20fa | 1,529 | py | Python | backendapi/icon/migrations/0001_initial.py | fredblade/Pictogram | d5cc4a25f28b6d80facf51fa9528e8ff969f7c46 | [
"MIT"
] | null | null | null | backendapi/icon/migrations/0001_initial.py | fredblade/Pictogram | d5cc4a25f28b6d80facf51fa9528e8ff969f7c46 | [
"MIT"
] | null | null | null | backendapi/icon/migrations/0001_initial.py | fredblade/Pictogram | d5cc4a25f28b6d80facf51fa9528e8ff969f7c46 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2022-02-27 17:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import versatileimagefield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setting... | 41.324324 | 177 | 0.646828 | 161 | 1,529 | 5.987578 | 0.42236 | 0.129668 | 0.029046 | 0.045643 | 0.487552 | 0.487552 | 0.487552 | 0.487552 | 0.487552 | 0.487552 | 0 | 0.025274 | 0.223676 | 1,529 | 36 | 178 | 42.472222 | 0.786858 | 0.029431 | 0 | 0.482759 | 1 | 0 | 0.078273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.275862 | 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 |
9a5f6f4fdf92f5d8e97feaed00a42aa430e9c51a | 424,971 | py | Python | src/fmiprot.py | tanisc/FMIPROT | 9035b5f89768e1028edd08dc7568b3208552f164 | [
"Apache-2.0"
] | 4 | 2019-02-25T11:53:55.000Z | 2021-03-16T20:16:56.000Z | src/fmiprot.py | tanisc/FMIPROT | 9035b5f89768e1028edd08dc7568b3208552f164 | [
"Apache-2.0"
] | 2 | 2021-09-14T09:54:42.000Z | 2021-11-12T13:30:10.000Z | src/fmiprot.py | tanisc/FMIPROT | 9035b5f89768e1028edd08dc7568b3208552f164 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# python version 2.7
# Cemal Melih Tanis (C)
###############################################################################
import os
import shutil
import datetime
from pytz import timezone
from uuid import uuid4
from definitions import *
import fetchers
import cal... | 64.15625 | 917 | 0.714124 | 60,012 | 424,971 | 5.001166 | 0.03266 | 0.030274 | 0.023257 | 0.018472 | 0.752571 | 0.696062 | 0.656276 | 0.618799 | 0.590181 | 0.552511 | 0 | 0.024111 | 0.113657 | 424,971 | 6,623 | 918 | 64.165937 | 0.772687 | 0.009674 | 0 | 0.425317 | 0 | 0.021315 | 0.169098 | 0.021964 | 0.055321 | 0 | 0.000007 | 0 | 0 | 0 | null | null | 0.018223 | 0.008461 | null | null | 0.005044 | 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 |
9a67bbeeb8843ddedf058092d195c66fcbe342a3 | 1,881 | py | Python | waveguide/waveguide_test.py | DentonGentry/gfiber-platform | 2ba5266103aad0b7b676555eebd3c2061ddb8333 | [
"Apache-2.0"
] | 8 | 2017-09-24T03:11:46.000Z | 2021-08-24T04:29:14.000Z | waveguide/waveguide_test.py | DentonGentry/gfiber-platform | 2ba5266103aad0b7b676555eebd3c2061ddb8333 | [
"Apache-2.0"
] | null | null | null | waveguide/waveguide_test.py | DentonGentry/gfiber-platform | 2ba5266103aad0b7b676555eebd3c2061ddb8333 | [
"Apache-2.0"
] | 1 | 2017-10-05T23:04:10.000Z | 2017-10-05T23:04:10.000Z | #!/usr/bin/python
# Copyright 2015 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 appli... | 28.938462 | 74 | 0.696438 | 255 | 1,881 | 4.988235 | 0.509804 | 0.056604 | 0.081761 | 0.069182 | 0.146226 | 0.078616 | 0.078616 | 0.078616 | 0.078616 | 0.078616 | 0 | 0.012314 | 0.179692 | 1,881 | 64 | 75 | 29.390625 | 0.812054 | 0.335991 | 0 | 0.235294 | 0 | 0 | 0.099187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.058824 | 0.088235 | 0 | 0.205882 | 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 |
7bd4127115e5637b5b3d7a956f2d5a45c70e9ad5 | 5,536 | py | Python | matlab/FRCNN/For_LOC/python/Generate_Trecvid_Data.py | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 198 | 2018-01-07T13:44:29.000Z | 2022-03-21T12:06:16.000Z | matlab/FRCNN/For_LOC/python/Generate_Trecvid_Data.py | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 18 | 2018-02-01T13:24:53.000Z | 2021-04-26T10:51:47.000Z | matlab/FRCNN/For_LOC/python/Generate_Trecvid_Data.py | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 82 | 2018-01-06T14:21:43.000Z | 2022-02-16T09:39:58.000Z | import os
import xml.etree.ElementTree as ET
import numpy as np
import scipy.sparse
import scipy.io as sio
import cPickle
import subprocess
import uuid
def Get_Class_Ind(Class_INT):
concepts = []
concepts.append(('Animal', [
'n01443537', 'n01503061', 'n01639765', 'n01662784', 'n01674464', 'n01726692'... | 37.659864 | 194 | 0.588873 | 676 | 5,536 | 4.616864 | 0.33432 | 0.019225 | 0.031721 | 0.051906 | 0.149311 | 0.126562 | 0.08619 | 0.069529 | 0.069529 | 0.069529 | 0 | 0.149387 | 0.233382 | 5,536 | 146 | 195 | 37.917808 | 0.586004 | 0.039017 | 0 | 0.035398 | 0 | 0 | 0.260837 | 0.073502 | 0 | 0 | 0 | 0 | 0.026549 | 0 | null | null | 0 | 0.070796 | null | null | 0.053097 | 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 |
7bd7021be4efb1d2b67a9ea0b8c76a83b68b38ed | 411 | py | Python | geoxml.py | ssubramanian90/UMich-Python-coursera | 35aa6b7d939852e7e9f1751d6a7b369910c5a572 | [
"bzip2-1.0.6"
] | null | null | null | geoxml.py | ssubramanian90/UMich-Python-coursera | 35aa6b7d939852e7e9f1751d6a7b369910c5a572 | [
"bzip2-1.0.6"
] | null | null | null | geoxml.py | ssubramanian90/UMich-Python-coursera | 35aa6b7d939852e7e9f1751d6a7b369910c5a572 | [
"bzip2-1.0.6"
] | null | null | null | import urllib
import xml.etree.ElementTree as ET
address = raw_input('Enter location: ')
url = address
print 'Retrieving', url
uh = urllib.urlopen(url)
data = uh.read()
print 'Retrieved',len(data),'characters'
tree = ET.fromstring(data)
sumcount=count=0
counts = tree.findall('.//count')
for i in counts:
co... | 17.125 | 40 | 0.690998 | 59 | 411 | 4.79661 | 0.627119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005764 | 0.155718 | 411 | 23 | 41 | 17.869565 | 0.809798 | 0 | 0 | 0 | 0 | 0 | 0.158151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
7be972ac4586def48187bfcf50e95c9e16542c4d | 361 | py | Python | Python Advanced Retake Exam - 16 Dec 2020/Problem 3- Magic triangle - Pascal.py | DiyanKalaydzhiev23/Advanced---Python | ed2c60bb887c49e5a87624719633e2b8432f6f6b | [
"MIT"
] | null | null | null | Python Advanced Retake Exam - 16 Dec 2020/Problem 3- Magic triangle - Pascal.py | DiyanKalaydzhiev23/Advanced---Python | ed2c60bb887c49e5a87624719633e2b8432f6f6b | [
"MIT"
] | null | null | null | Python Advanced Retake Exam - 16 Dec 2020/Problem 3- Magic triangle - Pascal.py | DiyanKalaydzhiev23/Advanced---Python | ed2c60bb887c49e5a87624719633e2b8432f6f6b | [
"MIT"
] | null | null | null | def get_magic_triangle(n):
triangle = [[1], [1, 1]]
for _ in range(2, n):
row = [1]
last_row = triangle[-1]
for i in range(1, len(last_row)):
num = last_row[i-1] + last_row[i]
row.append(num)
row.append(1)
triangle.append(row)
ret... | 21.235294 | 46 | 0.509695 | 51 | 361 | 3.431373 | 0.352941 | 0.16 | 0.182857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04329 | 0.360111 | 361 | 16 | 47 | 22.5625 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 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 |
7beab3658ca8052cfa8c2cfea3b8cd3bd3c9a157 | 262 | py | Python | py4mc/__init__.py | capslock321/py4mc | aad43d33f2ab1d264f0b86a84c80823309677994 | [
"MIT"
] | null | null | null | py4mc/__init__.py | capslock321/py4mc | aad43d33f2ab1d264f0b86a84c80823309677994 | [
"MIT"
] | null | null | null | py4mc/__init__.py | capslock321/py4mc | aad43d33f2ab1d264f0b86a84c80823309677994 | [
"MIT"
] | null | null | null | from .api import MojangApi
from .dispatcher import Dispatch
from .exceptions import (
ApiException,
ResourceNotFound,
InternalServerException,
UserNotFound,
)
__version__ = "0.0.1a"
__license__ = "MIT"
__author__ = "capslock321"
| 17.466667 | 33 | 0.698473 | 23 | 262 | 7.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029557 | 0.225191 | 262 | 14 | 34 | 18.714286 | 0.812808 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bf3d0583faad7a302993fc30d577771cb1e654a | 460 | py | Python | titan/abstracts/decorator.py | DeSireFire/titans | 9194950694084a7cbc6434dfec0ecb2e755f0cdf | [
"Apache-2.0"
] | 17 | 2020-03-14T01:08:07.000Z | 2020-12-26T08:20:14.000Z | titan/abstracts/decorator.py | DeSireFire/titans | 9194950694084a7cbc6434dfec0ecb2e755f0cdf | [
"Apache-2.0"
] | 4 | 2020-12-05T08:50:55.000Z | 2022-02-27T06:48:21.000Z | titan/abstracts/decorator.py | DeSireFire/titans | 9194950694084a7cbc6434dfec0ecb2e755f0cdf | [
"Apache-2.0"
] | 1 | 2020-05-24T06:57:03.000Z | 2020-05-24T06:57:03.000Z | # -*- coding: utf-8 -*-
import timeit
from functools import wraps
from titan.manages.global_manager import GlobalManager
def run_time_sum(func):
@wraps(func)
def wrapper(*args, **kwargs):
start = timeit.default_timer()
__func = func(*args, **kwargs)
end = timeit.default_timer()
... | 25.555556 | 70 | 0.630435 | 56 | 460 | 5.017857 | 0.607143 | 0.049822 | 0.128114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0.241304 | 460 | 17 | 71 | 27.058824 | 0.799427 | 0.045652 | 0 | 0 | 0 | 0 | 0.032037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7bf5036dc7b11f3015385fa7ebed58f2c40e9c71 | 262 | py | Python | src/cs2mako/patterns.py | eventbrite/cs2mako | 163affcc764a574b4af543c3520b7f345992973a | [
"MIT"
] | null | null | null | src/cs2mako/patterns.py | eventbrite/cs2mako | 163affcc764a574b4af543c3520b7f345992973a | [
"MIT"
] | null | null | null | src/cs2mako/patterns.py | eventbrite/cs2mako | 163affcc764a574b4af543c3520b7f345992973a | [
"MIT"
] | 2 | 2015-04-03T05:35:36.000Z | 2021-09-08T11:48:27.000Z | # Copyright (c) 2014 Eventbrite, Inc. All rights reserved.
# See "LICENSE" file for license.
import re
open_r_str = r'\<\?cs\s*([a-zA-Z]+)([:]|\s)'
close_r_str = r'\<\?cs\s*/([a-zA-Z]+)\s*\?\>'
open_r = re.compile(open_r_str)
close_r = re.compile(close_r_str)
| 26.2 | 58 | 0.637405 | 49 | 262 | 3.204082 | 0.489796 | 0.101911 | 0.101911 | 0.089172 | 0.165605 | 0.165605 | 0.165605 | 0.165605 | 0.165605 | 0 | 0 | 0.017316 | 0.118321 | 262 | 9 | 59 | 29.111111 | 0.662338 | 0.335878 | 0 | 0 | 0 | 0 | 0.327485 | 0.327485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
7bf8224c1d14572f51a3d9141d24b9fbd1be25c1 | 2,884 | py | Python | blender/SCAFFOLDER_settings.py | nodtem66/Scaffolder | c2b89e981192f61b028e1e8780a01894b1e34494 | [
"MIT"
] | 8 | 2019-12-24T17:28:03.000Z | 2022-03-23T02:49:28.000Z | blender/SCAFFOLDER_settings.py | nodtem66/Scaffolder | c2b89e981192f61b028e1e8780a01894b1e34494 | [
"MIT"
] | 9 | 2019-12-27T18:10:05.000Z | 2021-08-04T15:18:47.000Z | blender/SCAFFOLDER_settings.py | nodtem66/Scaffolder | c2b89e981192f61b028e1e8780a01894b1e34494 | [
"MIT"
] | null | null | null | import bpy
from bpy.types import Panel
from bpy.props import *
import math
default_surface_names = [
("bcc", "bcc", "", 1),
("schwarzp", "schwarzp", "", 2),
("schwarzd", "schwarzd", "", 3),
("gyroid", "gyroid", "", 4),
("double-p", "double-p", "", 5),
("double-d", "double-d", "", 6),
("doub... | 40.055556 | 106 | 0.645631 | 372 | 2,884 | 4.884409 | 0.311828 | 0.019813 | 0.023115 | 0.022014 | 0.119978 | 0.119978 | 0.100165 | 0.100165 | 0.048431 | 0 | 0 | 0.037399 | 0.184119 | 2,884 | 72 | 107 | 40.055556 | 0.734807 | 0 | 0 | 0 | 0 | 0 | 0.159099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.016667 | 0.066667 | 0.033333 | 0.566667 | 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 |
7bfb8c398b66afff9f9537190851684dffe009d8 | 189 | py | Python | basics.py | c25l/longmont_data_science_tensorflow | 78302ab5b76a1e4632deda164615b4861c21f534 | [
"MIT"
] | null | null | null | basics.py | c25l/longmont_data_science_tensorflow | 78302ab5b76a1e4632deda164615b4861c21f534 | [
"MIT"
] | null | null | null | basics.py | c25l/longmont_data_science_tensorflow | 78302ab5b76a1e4632deda164615b4861c21f534 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import tensorflow as tf
x=tf.Variable(0.5)
y = x*x
sess = tf.Session()
sess.run(tf.global_variables_initializer())
print("x =",sess.run(x))
print("y =",sess.run(y))
| 18.9 | 43 | 0.687831 | 35 | 189 | 3.657143 | 0.571429 | 0.164063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.100529 | 189 | 9 | 44 | 21 | 0.735294 | 0.111111 | 0 | 0 | 0 | 0 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
7bff9b4a9c838befc20c601a3d326698664e8b5d | 1,025 | py | Python | quickSort.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | quickSort.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | quickSort.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# low --> Starting index, high --> Ending index
class Solution(object):
def quickSort(self, arr, low, high):
if low < high:
pi = self.partition(arr, low, high)
self.quickSort(arr, low, pi - 1)
self.quickSort(arr, pi + 1, high)
return a... | 29.285714 | 66 | 0.520976 | 135 | 1,025 | 3.955556 | 0.451852 | 0.065543 | 0.05618 | 0.052434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039334 | 0.355122 | 1,025 | 35 | 67 | 29.285714 | 0.768533 | 0.298537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 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 |
d0056587271ff8ce0d2628ab99ab1c7bc8e2f7e9 | 558 | py | Python | data/Carp.py | shebang-sh/npb-ouenka-bot | 6fc6f7c1717632c3845496c309560233a9c73d8e | [
"MIT"
] | null | null | null | data/Carp.py | shebang-sh/npb-ouenka-bot | 6fc6f7c1717632c3845496c309560233a9c73d8e | [
"MIT"
] | 14 | 2022-03-29T09:07:31.000Z | 2022-03-30T02:37:07.000Z | data/Carp.py | shebang-sh/npb-ouenka-bot | 6fc6f7c1717632c3845496c309560233a9c73d8e | [
"MIT"
] | null | null | null | data={
"田中広輔":"赤く燃え上がる 夢見たこの世界で 研ぎ澄ませそのセンス 打てよ広輔",
"長野久義":"歓声を背に受け 頂をみつめて 紅一筋に 突き進め長野",
"安部友裕":"新しい時代に 今手を伸ばせ 終わらぬ夢の先に 導いてくれ",
"堂林翔太":"光り輝く その道を 翔けぬけて魅せろ 堂林SHOW TIME!",
"會澤翼":"いざ大空へ翔ばたけ 熱い想い乗せ 勝利へ導く一打 決めろよ翼",
"菊池涼介":"【前奏:始まりの鐘が鳴る 広島伝説】\n光を追い越して メーター振りきり駆け抜けろ 止まらないぜ 韋駄天菊池",
"野間峻祥":"鋭い打球飛ばせ 自慢... | 42.923077 | 77 | 0.691756 | 64 | 558 | 6.03125 | 0.984375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 558 | 13 | 78 | 42.923077 | 0.830108 | 0 | 0 | 0 | 0 | 0 | 0.767442 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d00814276e589d5ea8bb86b5cdc709673c74e2be | 331 | py | Python | apps/experiments/forms.py | Intellia-SME/OptiPLANT | 1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c | [
"Apache-2.0"
] | 1 | 2022-01-26T18:07:22.000Z | 2022-01-26T18:07:22.000Z | apps/experiments/forms.py | Intellia-SME/OptiPLANT | 1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c | [
"Apache-2.0"
] | null | null | null | apps/experiments/forms.py | Intellia-SME/OptiPLANT | 1d40b62f00b3fff940499fa27d0c2d59e7e6dd4c | [
"Apache-2.0"
] | 1 | 2022-01-26T18:07:26.000Z | 2022-01-26T18:07:26.000Z | from django import forms
from .models import Experiment
class CreateExperimentForm(forms.ModelForm):
class Meta:
model = Experiment
fields = ['name', 'description', 'dataset']
def save(self, commit=True):
self.instance.experimenter = self.request.user
return super().save(comm... | 23.642857 | 54 | 0.679758 | 36 | 331 | 6.25 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217523 | 331 | 13 | 55 | 25.461538 | 0.868726 | 0 | 0 | 0 | 0 | 0 | 0.066465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d0159e9e7bbcc76b698e4bc18244e26a32e8736f | 1,068 | py | Python | rllib/environment/mdps/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 8 | 2020-10-23T07:52:19.000Z | 2022-03-06T13:35:12.000Z | rllib/environment/mdps/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 3 | 2021-03-04T13:44:01.000Z | 2021-03-23T09:57:50.000Z | rllib/environment/mdps/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 3 | 2021-03-18T08:23:56.000Z | 2021-07-06T11:20:12.000Z | """Common MDPs in RL literature."""
from gym.envs.registration import register
from .baird_star import BairdStar
from .boyan_chain import BoyanChain
from .double_chain import DoubleChainProblem
from .grid_world import EasyGridWorld
from .random_mdp import RandomMDP
from .single_chain import SingleChainProblem
from .tw... | 33.375 | 88 | 0.801498 | 130 | 1,068 | 6.423077 | 0.276923 | 0.083832 | 0.100599 | 0.142515 | 0.268263 | 0.268263 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.088951 | 1,068 | 31 | 89 | 34.451613 | 0.850976 | 0.027154 | 0 | 0.178571 | 0 | 0 | 0.43272 | 0.363988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
d01b679428fa012cfcf64fb9a0547f3b7aa6be3a | 2,850 | py | Python | sborl/errors.py | canonical/sborl | f821ecfcbf977d0605def66dca19ea5e8e39b5a3 | [
"Apache-2.0"
] | null | null | null | sborl/errors.py | canonical/sborl | f821ecfcbf977d0605def66dca19ea5e8e39b5a3 | [
"Apache-2.0"
] | null | null | null | sborl/errors.py | canonical/sborl | f821ecfcbf977d0605def66dca19ea5e8e39b5a3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.
from typing import Union
from ops.model import Application, Relation, Unit
class BaseException(Exception):
"""Base exception for exceptions from this library."""
class InvalidRoleError(BaseException):
"""The specified role is not one... | 28.217822 | 88 | 0.698246 | 333 | 2,850 | 5.855856 | 0.33033 | 0.027692 | 0.028205 | 0.033846 | 0.345128 | 0.268718 | 0.242051 | 0.242051 | 0.242051 | 0.187692 | 0 | 0.001752 | 0.198947 | 2,850 | 100 | 89 | 28.5 | 0.852387 | 0.415789 | 0 | 0.117647 | 0 | 0 | 0.079355 | 0.056129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.058824 | 0 | 0.617647 | 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 |
d01c9a230584278712c3050c6c3bb720320fb106 | 682 | py | Python | app/main/views.py | diellamutoni8/NewsAPPS | 09701c96f687e08de2992e56da4f261b1aadf93c | [
"MIT"
] | null | null | null | app/main/views.py | diellamutoni8/NewsAPPS | 09701c96f687e08de2992e56da4f261b1aadf93c | [
"MIT"
] | null | null | null | app/main/views.py | diellamutoni8/NewsAPPS | 09701c96f687e08de2992e56da4f261b1aadf93c | [
"MIT"
] | null | null | null | from flask import render_template,request,redirect,url_for
from .import main
from ..request import get_sources,get_articles
from ..models import News_article,News_source
@main.route('/')
def index():
'''
Home page function returns news sources
'''
news_sources = get_sources()
title = "Welcome"
... | 25.259259 | 82 | 0.717009 | 86 | 682 | 5.523256 | 0.383721 | 0.088421 | 0.075789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171554 | 682 | 27 | 82 | 25.259259 | 0.840708 | 0.124633 | 0 | 0 | 0 | 0 | 0.119929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d01da04f511cea7e2cb3c255526d51bbef8b8016 | 724 | py | Python | models/todo.py | chidaobanjiu/Flask_Web | 7f8d33086ca307ae7f1b998ed7d52e27fc625388 | [
"MIT"
] | 1 | 2017-02-01T07:13:37.000Z | 2017-02-01T07:13:37.000Z | models/todo.py | chidaobanjiu/mana2077 | 7f8d33086ca307ae7f1b998ed7d52e27fc625388 | [
"MIT"
] | null | null | null | models/todo.py | chidaobanjiu/mana2077 | 7f8d33086ca307ae7f1b998ed7d52e27fc625388 | [
"MIT"
] | null | null | null | from models import Mongua
class Todo(Mongua):
__field__ = Mongua.__fields__ + [
('title', str, ''),
('completed', bool, False),
]
@classmethod
def update(cls, id, form):
t = cls.find(id)
valid_names = [
'title',
'completed'
]
for... | 20.685714 | 42 | 0.476519 | 74 | 724 | 4.527027 | 0.486486 | 0.083582 | 0.047761 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.40884 | 724 | 34 | 43 | 21.294118 | 0.778037 | 0.088398 | 0 | 0.333333 | 0 | 0 | 0.045161 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.291667 | 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 |
d02b8e08d67537a0237e5ce61fdce30861d1d5de | 2,534 | py | Python | JTL/__init__.py | AgalmicVentures/JTL | 967bc670bf696e0214a69bad619cf0148fec2fe6 | [
"MIT"
] | 3 | 2017-12-06T04:35:24.000Z | 2020-01-29T14:29:57.000Z | JTL/__init__.py | AgalmicVentures/JTL | 967bc670bf696e0214a69bad619cf0148fec2fe6 | [
"MIT"
] | null | null | null | JTL/__init__.py | AgalmicVentures/JTL | 967bc670bf696e0214a69bad619cf0148fec2fe6 | [
"MIT"
] | 2 | 2018-01-06T13:18:07.000Z | 2019-09-01T01:24:04.000Z | #!/usr/bin/env python3
# Copyright (c) 2015-2021 Agalmic Ventures LLC (www.agalmicventures.com)
#
# 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 limit... | 35.194444 | 118 | 0.757695 | 368 | 2,534 | 5.173913 | 0.483696 | 0.046218 | 0.026786 | 0.023109 | 0.032563 | 0.032563 | 0 | 0 | 0 | 0 | 0 | 0.006066 | 0.154302 | 2,534 | 71 | 119 | 35.690141 | 0.882408 | 0.52644 | 0 | 0 | 0 | 0 | 0.204134 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.269231 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d02ea29aa2c01102b027e646e76a227470fdeefe | 200 | py | Python | applications/physbam/physbam-lib/External_Libraries/Archives/boost/tools/build/v2/test/test1.py | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | applications/physbam/physbam-lib/External_Libraries/Archives/boost/tools/build/v2/test/test1.py | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | applications/physbam/physbam-lib/External_Libraries/Archives/boost/tools/build/v2/test/test1.py | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | #!/usr/bin/python
import BoostBuild
t = BoostBuild.Tester()
t.write("test.jam","""
actions unbuilt { } unbuilt all ;
ECHO "Hi" ;
""")
t.run_build_system("-ftest.jam", stdout="Hi\n")
t.pass_test()
| 14.285714 | 47 | 0.66 | 30 | 200 | 4.3 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 200 | 13 | 48 | 15.384615 | 0.737143 | 0.08 | 0 | 0 | 0 | 0 | 0.377049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d04dee56b2ed832a66c6149983ca467bfbbbbafc | 404 | py | Python | [5]-RailFence-Cipher.py | anuj0809/Fundamentals-Of-Cryptography | e6f88dcbd5f63f6938ddf5825bf9395d5ede9fe1 | [
"Apache-2.0"
] | null | null | null | [5]-RailFence-Cipher.py | anuj0809/Fundamentals-Of-Cryptography | e6f88dcbd5f63f6938ddf5825bf9395d5ede9fe1 | [
"Apache-2.0"
] | null | null | null | [5]-RailFence-Cipher.py | anuj0809/Fundamentals-Of-Cryptography | e6f88dcbd5f63f6938ddf5825bf9395d5ede9fe1 | [
"Apache-2.0"
] | null | null | null | def threeRailEncrypt(plainText):
plainText = plainText.lower()
cipherText = ""
rail1 = ""
rail2 = ""
rail3 = ""
for i in range(len(plainText)):
if i%3 == 0:
rail1 += plainText[i]
elif i%3 == 1:
rail2 += plainText[i]
else:
rail3 += plainText[i]
cipherTe... | 19.238095 | 37 | 0.564356 | 43 | 404 | 5.302326 | 0.511628 | 0.131579 | 0.175439 | 0.219298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046099 | 0.30198 | 404 | 20 | 38 | 20.2 | 0.762411 | 0 | 0 | 0 | 0 | 0 | 0.014851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0.0625 | 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 |
d04fcbb17bf03785d02041e016915bdc95d6404c | 4,514 | py | Python | tiddlyweb/web/validator.py | tiddlyweb/tiddlyweb | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | [
"BSD-3-Clause"
] | 57 | 2015-02-01T21:03:34.000Z | 2021-12-25T12:02:31.000Z | tiddlyweb/web/validator.py | tiddlyweb/tiddlyweb | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | [
"BSD-3-Clause"
] | 6 | 2016-02-05T11:43:32.000Z | 2019-09-05T13:38:49.000Z | tiddlyweb/web/validator.py | tiddlyweb/tiddlyweb | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | [
"BSD-3-Clause"
] | 17 | 2015-05-12T08:53:23.000Z | 2021-12-21T15:56:30.000Z | """
A collection of routines for validating, santizing and otherwise messing
with content coming in from the web to be :py:class:`tiddlers
<tiddlyweb.model.tiddler.Tidder>`, :py:class:`bags
<tiddlyweb.model.bag.Bag>` or :py:class:`recipes
<tiddlyweb.model.recipe.Recipe>`.
The validators can be extended by adding funct... | 31.347222 | 77 | 0.699158 | 583 | 4,514 | 5.35163 | 0.250429 | 0.035897 | 0.027244 | 0.032051 | 0.441026 | 0.408974 | 0.361859 | 0.213782 | 0.163782 | 0.119551 | 0 | 0.001394 | 0.205361 | 4,514 | 143 | 78 | 31.566434 | 0.868414 | 0.615419 | 0 | 0.119048 | 0 | 0 | 0.003422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.071429 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d053ccfb39ce30bd9ced8dc52651dfaad639314a | 11,426 | py | Python | app/routes.py | mrtoronto/FAIPD | 8cb4df2577af515238ce6ee12e627b830bec67a6 | [
"MIT"
] | null | null | null | app/routes.py | mrtoronto/FAIPD | 8cb4df2577af515238ce6ee12e627b830bec67a6 | [
"MIT"
] | null | null | null | app/routes.py | mrtoronto/FAIPD | 8cb4df2577af515238ce6ee12e627b830bec67a6 | [
"MIT"
] | null | null | null | from datetime import datetime
from flask import render_template, flash, redirect, url_for, request
from flask_login import login_user, logout_user, current_user, login_required
from werkzeug.urls import url_parse
from app import app, db
from app.forms import LoginForm, RegistrationForm, EditProfileForm, PostForm, ... | 40.953405 | 105 | 0.647033 | 1,443 | 11,426 | 4.898129 | 0.106722 | 0.050934 | 0.071307 | 0.059423 | 0.632711 | 0.542586 | 0.422467 | 0.359083 | 0.296406 | 0.232315 | 0 | 0.001712 | 0.233152 | 11,426 | 278 | 106 | 41.100719 | 0.804953 | 0.003851 | 0 | 0.291667 | 0 | 0 | 0.132307 | 0.008826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.079167 | 0.033333 | 0.004167 | 0.229167 | 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 |
d059502a7ec59d16005b90bde454a7338ee03251 | 3,315 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/iSCSI_Data_Out_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/iSCSI_Data_Out_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/iSCSI_Data_Out_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class iSCSI_Data_Out(Base):
__slots__ = ()
_SDM_NAME = 'iSCSI_Data_Out'
_SDM_ATT_MAP = {
'Opcode': 'iSCSI_Data_Out.header.Opcode',
'Flags': 'iSCSI_Data_Out.header.Flags',
'TotalAHSLength': 'iSCSI_Data_O... | 37.670455 | 92 | 0.715837 | 375 | 3,315 | 5.986667 | 0.112 | 0.060134 | 0.080178 | 0.075278 | 0.523831 | 0.523831 | 0.523831 | 0.523831 | 0.523831 | 0.523831 | 0 | 0.000371 | 0.186124 | 3,315 | 87 | 93 | 38.103448 | 0.831727 | 0 | 0 | 0.338028 | 0 | 0 | 0.196078 | 0.116139 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197183 | false | 0 | 0.197183 | 0.014085 | 0.633803 | 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 |
d05a3552b3ed442094ecdba600618970c4eeddf8 | 289 | py | Python | rated/migrations/0005_delete_profileapi.py | nyamzy/Rater | 934a6600afe4b47742621bbe0a47c1afc6325a21 | [
"Unlicense"
] | null | null | null | rated/migrations/0005_delete_profileapi.py | nyamzy/Rater | 934a6600afe4b47742621bbe0a47c1afc6325a21 | [
"Unlicense"
] | null | null | null | rated/migrations/0005_delete_profileapi.py | nyamzy/Rater | 934a6600afe4b47742621bbe0a47c1afc6325a21 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-16 14:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rated', '0004_profileapi'),
]
operations = [
migrations.DeleteModel(
name='ProfileAPI',
),
]
| 17 | 47 | 0.595156 | 30 | 289 | 5.7 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092683 | 0.290657 | 289 | 16 | 48 | 18.0625 | 0.741463 | 0.155709 | 0 | 0 | 1 | 0 | 0.123967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0688c7557a32c0ad0f636ac14f06a163a2f4570 | 36,514 | py | Python | BookDatabaseUtility.py | BitWorks/xbrlstudio | 231beb46c56c8086f9fcc8846955667d947709c2 | [
"MIT"
] | null | null | null | BookDatabaseUtility.py | BitWorks/xbrlstudio | 231beb46c56c8086f9fcc8846955667d947709c2 | [
"MIT"
] | null | null | null | BookDatabaseUtility.py | BitWorks/xbrlstudio | 231beb46c56c8086f9fcc8846955667d947709c2 | [
"MIT"
] | null | null | null | """
:mod: 'BookDatabaseUtility'
~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. py:module:: BookDatabaseUtility
:copyright: Copyright BitWorks LLC, All rights reserved.
:license: MIT
:synopsis: SQLAlchemy ORM engine, metadata, and utility functions for working with dynamic sqlite databases
:description: Contains the f... | 50.019178 | 160 | 0.572082 | 3,812 | 36,514 | 5.289874 | 0.066632 | 0.029011 | 0.051426 | 0.060501 | 0.741433 | 0.71267 | 0.667245 | 0.650136 | 0.629854 | 0.568907 | 0 | 0.010988 | 0.334502 | 36,514 | 729 | 161 | 50.087792 | 0.818848 | 0.078162 | 0 | 0.655608 | 0 | 0 | 0.062838 | 0.033975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036335 | false | 0.014218 | 0.009479 | 0 | 0.086888 | 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 |
d06c3b1e34c6a4e7355555a0f272e78441d27ce6 | 11,611 | py | Python | lablog/python/ExperimentRepository.py | yonch/wireless | 5e5a081fcf3cd49d901f25db6c4c1fabbfc921d5 | [
"MIT"
] | 29 | 2015-03-11T04:54:01.000Z | 2021-09-20T06:07:59.000Z | lablog/python/ExperimentRepository.py | darksidelemm/wireless | 5e5a081fcf3cd49d901f25db6c4c1fabbfc921d5 | [
"MIT"
] | null | null | null | lablog/python/ExperimentRepository.py | darksidelemm/wireless | 5e5a081fcf3cd49d901f25db6c4c1fabbfc921d5 | [
"MIT"
] | 16 | 2015-01-28T18:58:33.000Z | 2021-08-29T02:00:24.000Z |
import bsddb.db as bdb
import os.path
import cPickle
from base64 import b64encode, b64decode
from struct import pack
def toUniqueString(d):
if isinstance(d, int) or isinstance(d, float) or isinstance(d, long):
s = 'n' + repr(d)
elif isinstance(d, str):
s = 's' + d
elif isinstance(d, list):... | 32.432961 | 112 | 0.571872 | 1,229 | 11,611 | 5.308381 | 0.248169 | 0.036481 | 0.029123 | 0.013949 | 0.210454 | 0.175506 | 0.145463 | 0.136419 | 0.097639 | 0.097639 | 0 | 0.004832 | 0.340453 | 11,611 | 357 | 113 | 32.52381 | 0.847088 | 0.06313 | 0 | 0.276498 | 0 | 0 | 0.033563 | 0 | 0 | 0 | 0 | 0 | 0.023041 | 0 | null | null | 0.023041 | 0.02765 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.