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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b35d9982525705ce805c06ded1df966dff59ab7 | 3,057 | py | Python | backend/app/api/users.py | vacuumlabs/cowork-reservation | 5b4d275f6e2d1b1877b3b57f5550f27ed2b3f641 | [
"MIT"
] | null | null | null | backend/app/api/users.py | vacuumlabs/cowork-reservation | 5b4d275f6e2d1b1877b3b57f5550f27ed2b3f641 | [
"MIT"
] | 21 | 2021-10-11T11:43:19.000Z | 2022-02-27T19:18:56.000Z | backend/app/api/users.py | vacuumlabs/cowork-reservation | 5b4d275f6e2d1b1877b3b57f5550f27ed2b3f641 | [
"MIT"
] | 2 | 2021-10-16T11:52:43.000Z | 2021-11-15T16:25:08.000Z | import json
from flask import jsonify, request, make_response, render_template
from flask.blueprints import Blueprint
from app.daos import tenant_dao
from app.firebase_utils import *
from app.services import user_service
from app.user_dao import user_dao
users_bp = Blueprint("users_bp", __name__)
@users_bp.... | 42.458333 | 105 | 0.690546 | 378 | 3,057 | 5.277778 | 0.193122 | 0.082707 | 0.110777 | 0.162907 | 0.674687 | 0.659148 | 0.610025 | 0.609023 | 0.586466 | 0.586466 | 0 | 0.012111 | 0.189728 | 3,057 | 72 | 106 | 42.458333 | 0.793298 | 0 | 0 | 0.52381 | 0 | 0 | 0.119201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0 | 0.111111 | 0 | 0.380952 | 0.031746 | 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 |
8b3a84c2a16392cfb5f300789bb38d4d26b81c9c | 1,185 | py | Python | desktop/core/ext-py/docutils-0.14/test/test_parsers/test_parser.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/docutils-0.14/test/test_parsers/test_parser.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/docutils-0.14/test/test_parsers/test_parser.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | #! /usr/bin/env python
# $Id: test_parser.py 7463 2012-06-22 19:49:51Z milde $
# Author: Stefan Rank <strank(AT)strank(DOT)info>
# Copyright: This module has been placed in the public domain.
"""
Tests for basic functionality of parser classes.
"""
import sys
import unittest
import DocutilsTestSupport #... | 31.184211 | 78 | 0.664979 | 143 | 1,185 | 5.377622 | 0.664336 | 0.042913 | 0.031209 | 0.039012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.238819 | 1,185 | 37 | 79 | 32.027027 | 0.82816 | 0.308861 | 0 | 0 | 0 | 0 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 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 |
8b3b6823cfef19d1d56f714c0f6996299375bb5f | 41,975 | py | Python | aloha/aloha_object.py | TDHTTTT/MadGraph_Windows | 8a0be5befed650b6adcb9825c1b57af907c0167a | [
"NCSA"
] | null | null | null | aloha/aloha_object.py | TDHTTTT/MadGraph_Windows | 8a0be5befed650b6adcb9825c1b57af907c0167a | [
"NCSA"
] | null | null | null | aloha/aloha_object.py | TDHTTTT/MadGraph_Windows | 8a0be5befed650b6adcb9825c1b57af907c0167a | [
"NCSA"
] | null | null | null | ################################################################################
#
# Copyright (c) 2010 The MadGraph5_aMC@NLO Development team and Contributors
#
# This file is a part of the MadGraph5_aMC@NLO project, an application which
# automatically generates Feynman diagrams and matrix elements for arbitrary
# h... | 40.555556 | 123 | 0.445289 | 5,617 | 41,975 | 3.204202 | 0.05964 | 0.04745 | 0.028003 | 0.01778 | 0.707023 | 0.649572 | 0.543894 | 0.467774 | 0.396989 | 0.292644 | 0 | 0.102297 | 0.287362 | 41,975 | 1,034 | 124 | 40.594778 | 0.499382 | 0.204407 | 0 | 0.284173 | 0 | 0 | 0.017211 | 0.000641 | 0 | 0 | 0 | 0 | 0.003597 | 1 | 0.138489 | false | 0 | 0.007194 | 0.039568 | 0.350719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b438e05322fd68c73974bbc580bd7c882aa4fa3 | 2,314 | py | Python | tuples.py | sumon-dey/PythonConcepts | a014656232ff97161f995bf0124f6ce9daf42496 | [
"Apache-2.0"
] | 6 | 2019-07-21T13:07:31.000Z | 2021-02-24T10:36:06.000Z | tuples.py | sumon-dey/PythonConcepts | a014656232ff97161f995bf0124f6ce9daf42496 | [
"Apache-2.0"
] | null | null | null | tuples.py | sumon-dey/PythonConcepts | a014656232ff97161f995bf0124f6ce9daf42496 | [
"Apache-2.0"
] | 3 | 2021-02-20T11:01:27.000Z | 2021-07-22T10:58:34.000Z | # Python Tuples
# Ordered, Immutable collection of items which allows Duplicate Members
# We can put the data, which will not change throughout the program, in a Tuple
# Tuples can be called as "Immutable Python Lists" or "Constant Python Lists"
employeeTuple = ("Sam", "Sam" "Mike", "John", "Harry", "Tom", "Sean", "Ju... | 33.536232 | 90 | 0.609767 | 262 | 2,314 | 5.374046 | 0.427481 | 0.025568 | 0.012784 | 0.019886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016691 | 0.119706 | 2,314 | 68 | 91 | 34.029412 | 0.674521 | 0.372083 | 0 | 0.170732 | 0 | 0 | 0.351748 | 0.283916 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.682927 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8c663c96b9101af26692648dfb0ca8488e020977 | 332 | py | Python | stPlus/__init__.py | qiaochen/stPlus | 06294c6cf63d6d81555ffdd4d19c571c49805ff2 | [
"MIT"
] | 7 | 2021-01-23T07:13:21.000Z | 2022-02-19T09:15:20.000Z | stPlus/__init__.py | qiaochen/stPlus | 06294c6cf63d6d81555ffdd4d19c571c49805ff2 | [
"MIT"
] | 1 | 2021-08-22T00:59:03.000Z | 2021-08-22T00:59:03.000Z | stPlus/__init__.py | qiaochen/stPlus | 06294c6cf63d6d81555ffdd4d19c571c49805ff2 | [
"MIT"
] | 6 | 2020-11-29T02:01:01.000Z | 2022-03-26T08:56:50.000Z | #!/usr/bin/env python
"""
# Authors: Shengquan Chen, Boheng Zhang, Xiaoyang Chen
# Created Time : Sat 28 Nov 2020 08:31:29 PM CST
# File Name: utils.py
# Description: stPlus: reference-based enhancement of spatial transcriptomics
"""
__author__ = "Xiaoyang Chen"
__email__ = "xychen20@mails.tsinghua.edu.cn"
from .mod... | 23.714286 | 77 | 0.737952 | 46 | 332 | 5.152174 | 0.934783 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04947 | 0.14759 | 332 | 13 | 78 | 25.538462 | 0.787986 | 0.674699 | 0 | 0 | 0 | 0 | 0.434343 | 0.30303 | 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 |
8c7565fa05e188eaf9fcca6bca1db9405321a1a7 | 2,275 | py | Python | tmp_mail/__init__.py | KMikeeU/temp-mail | 257155b60baee8ed8e24776db3e5492f42e2c10b | [
"MIT"
] | 2 | 2018-12-09T18:36:03.000Z | 2019-05-01T12:54:41.000Z | tmp_mail/__init__.py | KMikeeU/temp-mail | 257155b60baee8ed8e24776db3e5492f42e2c10b | [
"MIT"
] | null | null | null | tmp_mail/__init__.py | KMikeeU/temp-mail | 257155b60baee8ed8e24776db3e5492f42e2c10b | [
"MIT"
] | 3 | 2018-12-09T18:36:07.000Z | 2019-10-22T11:35:09.000Z | import requests
from bs4 import BeautifulSoup
import re
import time
import _thread
class Client():
base = "https://temp-mail.org/en"
def __init__(self, address: str = None):
self.address = address
self.session = requests.Session()
realisticBrowser = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x6... | 27.743902 | 134 | 0.670769 | 313 | 2,275 | 4.814696 | 0.399361 | 0.051095 | 0.02787 | 0.023889 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020516 | 0.164396 | 2,275 | 82 | 135 | 27.743902 | 0.771699 | 0 | 0 | 0.030769 | 0 | 0.015385 | 0.158681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
8c771cbba76c700d1db7d0599ef23c47728f8fc7 | 803 | py | Python | socialnetworks/moves/views.py | gGonz/django-socialnetworks | 3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d | [
"Apache-2.0"
] | 5 | 2015-06-18T03:30:28.000Z | 2017-11-04T21:34:20.000Z | socialnetworks/moves/views.py | gGonz/django-socialnetworks | 3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d | [
"Apache-2.0"
] | 2 | 2015-04-25T00:06:19.000Z | 2015-04-30T22:42:40.000Z | socialnetworks/moves/views.py | gGonz/django-socialnetworks | 3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d | [
"Apache-2.0"
] | 4 | 2015-06-11T18:28:04.000Z | 2016-09-07T15:08:09.000Z | from .clients import MovesAppClient
from .settings import SETUP_URL_NAME
from ..core import views
class MovesAppDialogRedirect(views.OAuthDialogRedirectView):
"""
View that handles the redirects for the Moves app authorization dialog.
"""
client_class = MovesAppClient
class MovesAppCallback(views.OA... | 24.333333 | 75 | 0.73599 | 87 | 803 | 6.689655 | 0.425287 | 0.054983 | 0.103093 | 0.123711 | 0.137457 | 0.137457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198007 | 803 | 32 | 76 | 25.09375 | 0.903727 | 0.296389 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8c801a155d630ce0c04e5998293ea5519ef48632 | 444 | py | Python | bookorbooks/account/migrations/0003_alter_customuser_identity_number.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | 1 | 2021-08-10T22:24:17.000Z | 2021-08-10T22:24:17.000Z | bookorbooks/account/migrations/0003_alter_customuser_identity_number.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | bookorbooks/account/migrations/0003_alter_customuser_identity_number.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-13 09:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0002_auto_20210712_1851'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name='identit... | 23.368421 | 95 | 0.630631 | 49 | 444 | 5.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.256757 | 444 | 18 | 96 | 24.666667 | 0.727273 | 0.101351 | 0 | 0 | 1 | 0 | 0.176322 | 0.057935 | 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 |
8c805e1adcc6b31a87a479f4115ffa71c7a3bbab | 8,678 | py | Python | Code/Python/ImageProcessing/StereoDepth/featureMatchStereo.py | Nailim/shuttler | a12ea89a1c6b289079ce61ebf8bf3361696f10b2 | [
"MIT"
] | null | null | null | Code/Python/ImageProcessing/StereoDepth/featureMatchStereo.py | Nailim/shuttler | a12ea89a1c6b289079ce61ebf8bf3361696f10b2 | [
"MIT"
] | null | null | null | Code/Python/ImageProcessing/StereoDepth/featureMatchStereo.py | Nailim/shuttler | a12ea89a1c6b289079ce61ebf8bf3361696f10b2 | [
"MIT"
] | null | null | null | # for new opencv
#import os,sys
#os.chdir(os.path.expanduser('~/opencv-2.4.6.1/lib'))
#sys.path.append(os.path.expanduser('~/opencv-2.4.6.1/lib/python2.7/dist-packages'))
# before starting
#export PYTHONPATH=~/opencv-2.4.6.1/lib/python2.7/dist-packages
import os
#import cv
import cv2
import math
import argparse
impor... | 35.276423 | 212 | 0.659484 | 1,414 | 8,678 | 3.889675 | 0.193777 | 0.008364 | 0.015273 | 0.01 | 0.453273 | 0.433091 | 0.379273 | 0.353455 | 0.320545 | 0.312364 | 0 | 0.031516 | 0.173658 | 8,678 | 245 | 213 | 35.420408 | 0.735462 | 0.169279 | 0 | 0.411392 | 0 | 0 | 0.102309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031646 | null | null | 0.094937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c8584e4a637146aa64ba5592088fa5de2ab6771 | 7,747 | py | Python | examples/scripts/shapelet_transform.py | wilsonify/sktime | 68395d44bd3f46b0801c506e23e889dd54999d29 | [
"BSD-3-Clause"
] | null | null | null | examples/scripts/shapelet_transform.py | wilsonify/sktime | 68395d44bd3f46b0801c506e23e889dd54999d29 | [
"BSD-3-Clause"
] | null | null | null | examples/scripts/shapelet_transform.py | wilsonify/sktime | 68395d44bd3f46b0801c506e23e889dd54999d29 | [
"BSD-3-Clause"
] | null | null | null | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.11.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # Shapelets and the Shapelet Transform with sktime
#... | 46.668675 | 1,192 | 0.741448 | 1,112 | 7,747 | 5.073741 | 0.368705 | 0.023041 | 0.012761 | 0.014179 | 0.234314 | 0.19213 | 0.160936 | 0.157391 | 0.157391 | 0.142148 | 0 | 0.015104 | 0.171034 | 7,747 | 165 | 1,193 | 46.951515 | 0.863438 | 0.694462 | 0 | 0.28125 | 0 | 0 | 0.04302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109375 | 0 | 0.109375 | 0.140625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c87ba42d9c4fcf728e4c4af9e88b377f8f22da4 | 3,405 | py | Python | nodepool/tests/test_shade_integration.py | Juniper/nodepool | 3de0b20faa6f90437eb62c56ec23c59c6e15b5fa | [
"Apache-2.0"
] | null | null | null | nodepool/tests/test_shade_integration.py | Juniper/nodepool | 3de0b20faa6f90437eb62c56ec23c59c6e15b5fa | [
"Apache-2.0"
] | null | null | null | nodepool/tests/test_shade_integration.py | Juniper/nodepool | 3de0b20faa6f90437eb62c56ec23c59c6e15b5fa | [
"Apache-2.0"
] | 2 | 2019-03-19T12:34:13.000Z | 2020-02-05T10:31:48.000Z | # Copyright (C) 2015 Hewlett-Packard Development Company, L.P.
#
# 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... | 37.833333 | 75 | 0.669016 | 420 | 3,405 | 5.211905 | 0.35 | 0.029237 | 0.038374 | 0.035633 | 0.350845 | 0.315212 | 0.315212 | 0.315212 | 0.315212 | 0.315212 | 0 | 0.003444 | 0.232599 | 3,405 | 89 | 76 | 38.258427 | 0.83429 | 0.214097 | 0 | 0.421053 | 0 | 0 | 0.131678 | 0.021821 | 0 | 0 | 0 | 0 | 0.087719 | 1 | 0.087719 | false | 0.052632 | 0.122807 | 0 | 0.22807 | 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 |
8c89c45428c0846d584df54eae048d3cd2046b39 | 1,944 | py | Python | src/pybbox/bboxApiURL.py | BrunoMalard/pybbox | 08a4437fcaa5ab6034cdad2822abf2b7e812ab6e | [
"MIT"
] | null | null | null | src/pybbox/bboxApiURL.py | BrunoMalard/pybbox | 08a4437fcaa5ab6034cdad2822abf2b7e812ab6e | [
"MIT"
] | null | null | null | src/pybbox/bboxApiURL.py | BrunoMalard/pybbox | 08a4437fcaa5ab6034cdad2822abf2b7e812ab6e | [
"MIT"
] | null | null | null | from .bboxConstant import BboxConstant
import netaddr as net
import socket
class BboxAPIUrl:
"""
Used to handle API url
"""
API_PREFIX = "api/v1"
def __init__(self, api_class, api_method, ip=BboxConstant.DEFAULT_LOCAL_IP):
"""
:param api_class: string
:param api_method: st... | 27.771429 | 80 | 0.596708 | 239 | 1,944 | 4.610879 | 0.230126 | 0.088929 | 0.076225 | 0.054446 | 0.314882 | 0.22323 | 0.083485 | 0.083485 | 0.083485 | 0.083485 | 0 | 0.000746 | 0.310185 | 1,944 | 69 | 81 | 28.173913 | 0.821029 | 0.105967 | 0 | 0.214286 | 0 | 0 | 0.022506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.071429 | 0.119048 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8c91071f0ddeb89b2d1a133336badc4c01678885 | 2,550 | py | Python | azure-keyvault/azure/keyvault/key_vault_authentication.py | azuresdkci1x/azure-sdk-for-python-1722 | e08fa6606543ce0f35b93133dbb78490f8e6bcc9 | [
"MIT"
] | 1 | 2018-11-09T06:16:34.000Z | 2018-11-09T06:16:34.000Z | azure-keyvault/azure/keyvault/key_vault_authentication.py | azuresdkci1x/azure-sdk-for-python-1722 | e08fa6606543ce0f35b93133dbb78490f8e6bcc9 | [
"MIT"
] | null | null | null | azure-keyvault/azure/keyvault/key_vault_authentication.py | azuresdkci1x/azure-sdk-for-python-1722 | e08fa6606543ce0f35b93133dbb78490f8e6bcc9 | [
"MIT"
] | 1 | 2018-11-09T06:17:41.000Z | 2018-11-09T06:17:41.000Z | #---------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#---------------------------------------------------------------------... | 43.220339 | 95 | 0.620784 | 237 | 2,550 | 6.468354 | 0.375527 | 0.068493 | 0.048924 | 0.031311 | 0.184605 | 0.125245 | 0 | 0 | 0 | 0 | 0 | 0.002585 | 0.241569 | 2,550 | 58 | 96 | 43.965517 | 0.790072 | 0.232549 | 0 | 0.153846 | 0 | 0 | 0.017454 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.128205 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c99299cba6a52cf3dabace97db1a9fc2ccbe36e | 1,969 | py | Python | test/territories_test.py | AColocho/us-states | 1b97d9d4d1784ad6e297ffe1df2927eab3e86546 | [
"BSL-1.0"
] | 3 | 2020-12-31T02:08:01.000Z | 2022-01-11T07:21:22.000Z | test/territories_test.py | AColocho/us-states | 1b97d9d4d1784ad6e297ffe1df2927eab3e86546 | [
"BSL-1.0"
] | 14 | 2020-12-23T00:06:20.000Z | 2022-01-10T16:43:43.000Z | test/territories_test.py | AColocho/us-states | 1b97d9d4d1784ad6e297ffe1df2927eab3e86546 | [
"BSL-1.0"
] | 3 | 2020-12-28T08:47:00.000Z | 2022-01-10T15:27:01.000Z | from states import Territories_Abbreviated
from states import Territories_Full_Name
from states import Uninhabited_Territories
from states import Associated_States
from states import Territories
import unittest
class Abbreviated_Test(unittest.TestCase):
def check_lenght(self):
"""
Checks there is o... | 39.38 | 133 | 0.705942 | 236 | 1,969 | 5.677966 | 0.237288 | 0.114925 | 0.059701 | 0.085821 | 0.473134 | 0.473134 | 0.435821 | 0.435821 | 0.435821 | 0.435821 | 0 | 0.007747 | 0.213306 | 1,969 | 50 | 134 | 39.38 | 0.857327 | 0.10259 | 0 | 0.206897 | 0 | 0 | 0.21368 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.172414 | false | 0 | 0.206897 | 0 | 0.551724 | 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 |
8ca1def1e3fb9c5420539abd418d03fb101d97fb | 16,206 | py | Python | lib/jnpr/healthbot/swagger/models/hb_graphs_query.py | Juniper/healthbot-py-client | 49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6 | [
"Apache-2.0"
] | 10 | 2019-10-23T12:54:37.000Z | 2022-02-07T19:24:30.000Z | docs/jnpr_healthbot_swagger/swagger_client/models/hb_graphs_query.py | Juniper/healthbot-py-client | 49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6 | [
"Apache-2.0"
] | 5 | 2019-09-30T04:29:25.000Z | 2022-02-16T12:21:06.000Z | docs/jnpr_healthbot_swagger/swagger_client/models/hb_graphs_query.py | Juniper/healthbot-py-client | 49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6 | [
"Apache-2.0"
] | 4 | 2019-09-30T01:17:48.000Z | 2020-08-25T07:27:54.000Z | # coding: utf-8
"""
Paragon Insights APIs
API interface for PI application # noqa: E501
OpenAPI spec version: 4.0.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class HbGraphsQue... | 31.776471 | 316 | 0.614217 | 1,931 | 16,206 | 4.931124 | 0.08493 | 0.068053 | 0.111741 | 0.101449 | 0.595778 | 0.478051 | 0.414199 | 0.358118 | 0.263495 | 0.16026 | 0 | 0.023215 | 0.300938 | 16,206 | 509 | 317 | 31.8389 | 0.817283 | 0.357584 | 0 | 0.092511 | 1 | 0 | 0.121158 | 0.002552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14978 | false | 0 | 0.013216 | 0 | 0.264317 | 0.008811 | 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 |
8ca571729a1d490bef3f077d7c0408ec944e7fe6 | 24,209 | py | Python | src/stitcher.py | ahelsing/geni-tools | 0799f715ad88a1a11b069e8208f012abef23cbd8 | [
"MIT"
] | 3 | 2015-05-05T13:03:27.000Z | 2021-11-17T11:16:38.000Z | src/stitcher.py | ahelsing/geni-tools | 0799f715ad88a1a11b069e8208f012abef23cbd8 | [
"MIT"
] | null | null | null | src/stitcher.py | ahelsing/geni-tools | 0799f715ad88a1a11b069e8208f012abef23cbd8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#----------------------------------------------------------------------
# Copyright (c) 2013-2016 Raytheon BBN Technologies
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without ... | 50.646444 | 221 | 0.638399 | 3,097 | 24,209 | 4.944785 | 0.223442 | 0.016847 | 0.024487 | 0.016521 | 0.235079 | 0.191132 | 0.137456 | 0.10239 | 0.071569 | 0.062688 | 0 | 0.004983 | 0.253873 | 24,209 | 477 | 222 | 50.752621 | 0.842828 | 0.285596 | 0 | 0.274914 | 0 | 0.027491 | 0.281515 | 0.01028 | 0 | 0 | 0 | 0.002096 | 0 | 0 | null | null | 0.010309 | 0.058419 | null | null | 0.003436 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ca7949e5600af676c35fbf996b6b49821a26ed0 | 320 | py | Python | check_db_connection.py | sernote/python_training | 2e2fa1f71b551d12bb303a0abc31bd86a0a7b81d | [
"Apache-2.0"
] | null | null | null | check_db_connection.py | sernote/python_training | 2e2fa1f71b551d12bb303a0abc31bd86a0a7b81d | [
"Apache-2.0"
] | null | null | null | check_db_connection.py | sernote/python_training | 2e2fa1f71b551d12bb303a0abc31bd86a0a7b81d | [
"Apache-2.0"
] | null | null | null | from fixture.orm import ORMFixture
from model.group import Group
from fixture.contact import Contacthelper
db = ORMFixture(host='localhost', name='addressbook', user='root', password='')
try:
l = db.get_contact_list()
for item in l:
print(item.all_phones_from_page)
print(len(l))
finally:
pass
| 22.857143 | 79 | 0.715625 | 45 | 320 | 4.977778 | 0.688889 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 320 | 13 | 80 | 24.615385 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.272727 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8ca9b54baa338723ba065c5a2b4ac0c863288e7a | 973 | py | Python | ranking-jaccardian.py | bharathbs93/Article-Similarity-Search | 32835dbf3e62b93e369b2596d41ad6359c8f1601 | [
"MIT"
] | null | null | null | ranking-jaccardian.py | bharathbs93/Article-Similarity-Search | 32835dbf3e62b93e369b2596d41ad6359c8f1601 | [
"MIT"
] | null | null | null | ranking-jaccardian.py | bharathbs93/Article-Similarity-Search | 32835dbf3e62b93e369b2596d41ad6359c8f1601 | [
"MIT"
] | null | null | null | #Importing libraries that are needed for processing
import pandas as pd
from sklearn import preprocessing
import numpy as np
from sklearn.metrics.pairwise import pairwise_distances
# Reading the csv file of term document frequency generated in R
input_data = pd.read_csv("finamatrix.csv",index_col=0, header =0 )
# N... | 27.027778 | 77 | 0.798561 | 146 | 973 | 5.157534 | 0.547945 | 0.12085 | 0.043825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014002 | 0.119219 | 973 | 35 | 78 | 27.8 | 0.864644 | 0.26927 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
8cad26aa5c9bb0b79790bafff44921d3d31e5198 | 389 | py | Python | rest/migrations/0032_auto_20200819_2057.py | narcotis/Welbot-V2 | 7525216b61036f62d0be0b5ebb6d3476b73323c8 | [
"MIT"
] | 1 | 2021-06-04T03:28:06.000Z | 2021-06-04T03:28:06.000Z | rest/migrations/0032_auto_20200819_2057.py | narcotis/Welbot-V2 | 7525216b61036f62d0be0b5ebb6d3476b73323c8 | [
"MIT"
] | 2 | 2020-09-09T14:19:10.000Z | 2020-09-09T14:20:21.000Z | rest/migrations/0032_auto_20200819_2057.py | narcotis/Welbot-V2 | 7525216b61036f62d0be0b5ebb6d3476b73323c8 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-19 11:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rest', '0031_auto_20200819_2056'),
]
operations = [
migrations.AlterField(
model_name='culture_event',
name='fare',
... | 20.473684 | 51 | 0.601542 | 43 | 389 | 5.302326 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122302 | 0.285347 | 389 | 18 | 52 | 21.611111 | 0.697842 | 0.115681 | 0 | 0 | 1 | 0 | 0.128655 | 0.067251 | 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 |
8cba3acfbc1a50238c1a027941fbc4491ae9149b | 1,178 | py | Python | ccfx/scripts/testthreadingutil.py | ytetsuwo/ccfinder-core | e20f390e8d26f900c68d8656b9cfb9cbaa3716d9 | [
"MIT"
] | 2 | 2019-10-27T08:01:19.000Z | 2021-12-20T07:53:02.000Z | ccfx/scripts/testthreadingutil.py | ytetsuwo/ccfinder-core | e20f390e8d26f900c68d8656b9cfb9cbaa3716d9 | [
"MIT"
] | 5 | 2019-05-02T16:36:39.000Z | 2019-05-12T16:04:45.000Z | ccfx/scripts/testthreadingutil.py | ytetsuwo/ccfinder-core | e20f390e8d26f900c68d8656b9cfb9cbaa3716d9 | [
"MIT"
] | 2 | 2019-08-04T13:21:51.000Z | 2021-03-07T00:18:36.000Z |
import threadingutil
import sys
import random
import time
random.seed(0)
def f(v): # this function must be declared at global scope, in order to make it visible to subprocess.
time.sleep(random.random() * 2.0)
return v * v
if __name__ == '__main__':
usage = "Usage: testthreadingutil.py [NUMWORKER [INPU... | 26.772727 | 119 | 0.596774 | 151 | 1,178 | 4.589404 | 0.397351 | 0.060606 | 0.034632 | 0.051948 | 0.138528 | 0.138528 | 0.138528 | 0.138528 | 0 | 0 | 0 | 0.018868 | 0.280136 | 1,178 | 43 | 120 | 27.395349 | 0.798349 | 0.173175 | 0 | 0.064516 | 0 | 0 | 0.129897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8cbee8bc9e37824427f878a582ea24c70d8c204c | 1,400 | py | Python | slybot/slybot/utils.py | rmcwilliams2004/mapping | 55f97e61fc558d243a0806ae8bf4a26b080026de | [
"BSD-3-Clause"
] | 8 | 2015-03-16T20:30:50.000Z | 2021-09-21T13:05:46.000Z | slybot/slybot/utils.py | btomashvili/portia | 9039140269f2cfca588a1feec6cc793cba87f202 | [
"BSD-3-Clause"
] | 1 | 2018-10-24T09:29:00.000Z | 2018-10-24T09:29:00.000Z | slybot/slybot/utils.py | btomashvili/portia | 9039140269f2cfca588a1feec6cc793cba87f202 | [
"BSD-3-Clause"
] | 4 | 2015-02-01T01:17:45.000Z | 2022-03-04T06:07:25.000Z | from urlparse import urlparse
import os
import json
from scrapely.htmlpage import HtmlPage
def iter_unique_scheme_hostname(urls):
"""Return an iterator of tuples (scheme, hostname) over the given urls,
filtering dupes
"""
scheme_hostname = set()
for x in urls:
p = urlparse(x)
schem... | 36.842105 | 96 | 0.638571 | 185 | 1,400 | 4.718919 | 0.356757 | 0.068729 | 0.057274 | 0.097365 | 0.187858 | 0.187858 | 0.148912 | 0.084765 | 0.084765 | 0.084765 | 0 | 0.000933 | 0.234286 | 1,400 | 37 | 97 | 37.837838 | 0.813433 | 0 | 0 | 0 | 0 | 0 | 0.103766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | 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 |
8cc0ae2e9a623354a047f26bbb36e199b6e49eb8 | 2,975 | py | Python | propara/utils/prostruct_predicted_json_to_tsv_grid.py | keisks/propara | 49fa8fe0481291df18b2c7b48e7ba1dafaad48e2 | [
"Apache-2.0"
] | 84 | 2018-06-02T02:00:53.000Z | 2022-03-13T12:17:42.000Z | propara/utils/prostruct_predicted_json_to_tsv_grid.py | keisks/propara | 49fa8fe0481291df18b2c7b48e7ba1dafaad48e2 | [
"Apache-2.0"
] | 3 | 2018-10-31T00:28:31.000Z | 2020-05-12T01:06:53.000Z | propara/utils/prostruct_predicted_json_to_tsv_grid.py | keisks/propara | 49fa8fe0481291df18b2c7b48e7ba1dafaad48e2 | [
"Apache-2.0"
] | 13 | 2018-09-14T20:37:51.000Z | 2021-03-23T09:24:49.000Z | import json
import sys
from pprint import pprint
from processes.data.propara_dataset_reader import Action
# Input: json format generated by ProparaPredictor
# paraid": "1114",
# "sentence_texts": ["Rainwater falls onto the soil.", "The rainwater seeps into the soil.",...."],
# "participants": ["rainwater; water", "... | 43.75 | 139 | 0.644034 | 335 | 2,975 | 5.41791 | 0.277612 | 0.038567 | 0.050689 | 0.052893 | 0.17686 | 0.143251 | 0.048485 | 0.048485 | 0 | 0 | 0 | 0.004893 | 0.24437 | 2,975 | 68 | 140 | 43.75 | 0.802491 | 0.201008 | 0 | 0 | 1 | 0 | 0.052365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.088889 | 0 | 0.222222 | 0.088889 | 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 |
8cc61c995bb4f660479b7eb7a1926b0e87dfaec1 | 894 | py | Python | wwwroot/cgi-bin/NetDict/format_conversion.py | fenshitianyue/WebDict | fc04133c3921d6c98f31c1e8608b6e1255088a10 | [
"MIT"
] | 1 | 2019-04-15T04:23:53.000Z | 2019-04-15T04:23:53.000Z | wwwroot/cgi-bin/NetDict/format_conversion.py | fenshitianyue/WebDict | fc04133c3921d6c98f31c1e8608b6e1255088a10 | [
"MIT"
] | null | null | null | wwwroot/cgi-bin/NetDict/format_conversion.py | fenshitianyue/WebDict | fc04133c3921d6c98f31c1e8608b6e1255088a10 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pymysql
import sys
reload(sys)
sys.setdefaultencoding('utf8')
base = {}
def write_file():
fp = open("/home/zanda/Desktop/PythonCode/new_formatted_data", "w+")
for word, meaning in base.items():
fp.write(word + "\3" + meaning + "\n")
fp.close()
def... | 23.526316 | 80 | 0.558166 | 109 | 894 | 4.46789 | 0.642202 | 0.036961 | 0.028747 | 0.032854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014019 | 0.281879 | 894 | 37 | 81 | 24.162162 | 0.744548 | 0.123043 | 0 | 0 | 0 | 0 | 0.156611 | 0.062901 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8cc6690d4201d4fa3d78af7391584f7477660468 | 2,161 | py | Python | app/old/results_to_csv-mo.py | jpenney78/usabmx_results | 7301ba82c8c24f978d9d2196f6cb4311cb85b033 | [
"MIT"
] | null | null | null | app/old/results_to_csv-mo.py | jpenney78/usabmx_results | 7301ba82c8c24f978d9d2196f6cb4311cb85b033 | [
"MIT"
] | null | null | null | app/old/results_to_csv-mo.py | jpenney78/usabmx_results | 7301ba82c8c24f978d9d2196f6cb4311cb85b033 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from bs4 import BeautifulSoup
import urllib2
import re
import sys
import collections
#with open('grands.html') as f:
# soup = BeautifulSoup(f, 'html.parser')
url = sys.argv[-1]
page = urllib2.urlopen(url)
soup = BeautifulSoup(page, 'html.parser')
groups = soup.findAll('h4', class_='race-resul... | 28.064935 | 139 | 0.541416 | 265 | 2,161 | 4.279245 | 0.343396 | 0.071429 | 0.05291 | 0.031746 | 0.084656 | 0.051146 | 0 | 0 | 0 | 0 | 0 | 0.014805 | 0.312355 | 2,161 | 76 | 140 | 28.434211 | 0.748318 | 0.162425 | 0 | 0.04 | 0 | 0 | 0.110679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ccc3f085556e9b031c98cfec64f5d267b519580 | 3,771 | py | Python | include/fetchfile.py | dongniu/cadnano2 | 6805fe2af856c59b06373c0ee0142ad6bc286262 | [
"Unlicense"
] | 17 | 2015-02-07T03:46:49.000Z | 2021-09-25T09:23:41.000Z | include/fetchfile.py | scholer/cadnano2 | 0b8bba1ab3277ac9859ef78615890d351561784c | [
"Unlicense"
] | 2 | 2017-08-22T03:17:16.000Z | 2021-07-03T14:42:41.000Z | include/fetchfile.py | scholer/cadnano2 | 0b8bba1ab3277ac9859ef78615890d351561784c | [
"Unlicense"
] | 9 | 2015-09-06T22:41:38.000Z | 2022-03-27T13:57:37.000Z | #!/usr/bin/env python
# encoding: utf-8
# The MIT License
#
# Copyright (c) 2011 Wyss Institute at Harvard University
#
# 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, i... | 33.669643 | 79 | 0.629011 | 474 | 3,771 | 4.938819 | 0.421941 | 0.056386 | 0.011106 | 0.011961 | 0.113627 | 0.113627 | 0.113627 | 0.052114 | 0.052114 | 0.052114 | 0 | 0.003754 | 0.293556 | 3,771 | 111 | 80 | 33.972973 | 0.875 | 0.37974 | 0 | 0.172414 | 0 | 0 | 0.09399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8cccebd0d964c1db537e29204485613a1e3bfc4a | 4,410 | py | Python | pyjs/tests/test-report.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-09-19T09:14:16.000Z | 2018-09-19T09:14:16.000Z | pyjs/tests/test-report.py | andreyvit/pyjamas | 1154abe3340a84dba7530b8174aaddecfc1a0944 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | pyjs/tests/test-report.py | andreyvit/pyjamas | 1154abe3340a84dba7530b8174aaddecfc1a0944 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-11-18T14:17:59.000Z | 2019-11-18T14:17:59.000Z | #!/usr/bin/env python
import sys
import difflib
differ = difflib.HtmlDiff()
class Coverage:
def __init__(self, testset_name):
self.testset_name = testset_name
self.lines = {}
def tracer(self, frame, event, arg):
lineno = frame.f_lineno
filename = frame.f_globals["__file__"]
... | 23.089005 | 162 | 0.506576 | 480 | 4,410 | 4.604167 | 0.3625 | 0.126697 | 0.027149 | 0.00905 | 0.011312 | 0.011312 | 0.011312 | 0 | 0 | 0 | 0 | 0.061204 | 0.321995 | 4,410 | 191 | 163 | 23.089005 | 0.677926 | 0.004535 | 0 | 0.230769 | 0 | 0.005917 | 0.420957 | 0.015718 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005917 | 0.023669 | null | null | 0.071006 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ccf7d8c58166e297f3266ddf7b93c9e740f2087 | 1,582 | py | Python | pymilvus_orm/__init__.py | PahudPlus/pymilvus-orm | 78e2e38e71cff92ed6d243dcac85314230ce0fdc | [
"Apache-2.0"
] | null | null | null | pymilvus_orm/__init__.py | PahudPlus/pymilvus-orm | 78e2e38e71cff92ed6d243dcac85314230ce0fdc | [
"Apache-2.0"
] | null | null | null | pymilvus_orm/__init__.py | PahudPlus/pymilvus-orm | 78e2e38e71cff92ed6d243dcac85314230ce0fdc | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2019-2020 Zilliz. 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 applicable law or ag... | 29.849057 | 99 | 0.73641 | 195 | 1,582 | 5.820513 | 0.584615 | 0.052863 | 0.022907 | 0.028194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.20354 | 1,582 | 52 | 100 | 30.423077 | 0.888889 | 0.385588 | 0 | 0 | 0 | 0 | 0.02199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.030303 | 0.30303 | 0 | 0.30303 | 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 |
8cd09fbcc54d1551c8b23bec979629192ae13b6e | 4,192 | py | Python | linux/lib/python2.7/dist-packages/samba/tests/ntacls.py | nmercier/linux-cross-gcc | a5b0028fd2b72ec036a4725e93ba29d73cb753a6 | [
"BSD-3-Clause"
] | 3 | 2015-10-31T10:39:25.000Z | 2019-04-27T20:19:33.000Z | linux/lib/python2.7/dist-packages/samba/tests/ntacls.py | nmercier/linux-cross-gcc | a5b0028fd2b72ec036a4725e93ba29d73cb753a6 | [
"BSD-3-Clause"
] | null | null | null | linux/lib/python2.7/dist-packages/samba/tests/ntacls.py | nmercier/linux-cross-gcc | a5b0028fd2b72ec036a4725e93ba29d73cb753a6 | [
"BSD-3-Clause"
] | null | null | null | # Unix SMB/CIFS implementation. Tests for ntacls manipulation
# Copyright (C) Matthieu Patou <mat@matws.net> 2009-2010
# Copyright (C) Andrew Bartlett 2012
#
# 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 ... | 50.506024 | 179 | 0.70062 | 603 | 4,192 | 4.840796 | 0.25539 | 0.013703 | 0.020555 | 0.034258 | 0.642343 | 0.610483 | 0.583076 | 0.583076 | 0.559096 | 0.559096 | 0 | 0.216559 | 0.15291 | 4,192 | 82 | 180 | 51.121951 | 0.605463 | 0.187023 | 0 | 0.45283 | 0 | 0.09434 | 0.368576 | 0.30124 | 0 | 0 | 0.014767 | 0 | 0.075472 | 1 | 0.132075 | false | 0 | 0.09434 | 0 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
8cd3b7d036cac276f28d4d2b1c5af63da168cbbd | 15,856 | py | Python | assignment2/comp411/classifiers/fc_net.py | kukalbriiwa7/COMP511_CS231n | 1537e98cdca43fad906e56a22f48d884523414b0 | [
"MIT"
] | 1 | 2022-02-06T19:35:05.000Z | 2022-02-06T19:35:05.000Z | assignment2/comp411/classifiers/fc_net.py | kukalbriiwa7/COMP511_CS231n | 1537e98cdca43fad906e56a22f48d884523414b0 | [
"MIT"
] | null | null | null | assignment2/comp411/classifiers/fc_net.py | kukalbriiwa7/COMP511_CS231n | 1537e98cdca43fad906e56a22f48d884523414b0 | [
"MIT"
] | null | null | null | from builtins import range
from builtins import object
import numpy as np
from comp411.layers import *
from comp411.layer_utils import *
class ThreeLayerNet(object):
"""
A three-layer fully-connected neural network with Leaky ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume ... | 50.336508 | 138 | 0.48663 | 1,768 | 15,856 | 4.308258 | 0.172511 | 0.043324 | 0.023631 | 0.018905 | 0.48418 | 0.416831 | 0.37797 | 0.345805 | 0.31456 | 0.303269 | 0 | 0.017054 | 0.319564 | 15,856 | 314 | 139 | 50.496815 | 0.688942 | 0.495585 | 0 | 0.264706 | 0 | 0 | 0.023407 | 0 | 0 | 0 | 0 | 0.012739 | 0 | 1 | 0.039216 | false | 0 | 0.04902 | 0 | 0.147059 | 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 |
8cd43ca8bd2a786d14de4833789bfb393dcd55d1 | 1,552 | py | Python | setup.py | PureTryOut/pico-wizard | d5ffe9a777a33c5f5ab5772db84315595d19a50a | [
"MIT"
] | 11 | 2021-02-05T13:49:44.000Z | 2022-02-24T14:14:46.000Z | setup.py | PureTryOut/pico-wizard | d5ffe9a777a33c5f5ab5772db84315595d19a50a | [
"MIT"
] | 26 | 2021-02-12T17:25:34.000Z | 2021-12-30T07:47:18.000Z | setup.py | PureTryOut/pico-wizard | d5ffe9a777a33c5f5ab5772db84315595d19a50a | [
"MIT"
] | 6 | 2021-06-21T17:37:15.000Z | 2022-01-15T16:07:47.000Z | # SPDX-FileCopyrightText: 2021 Anupam Basak <anupam.basak27@gmail.com>
#
# SPDX-License-Identifier: MIT
import setuptools
setuptools.setup(
name="pico-wizard",
version="0.1.0",
author="Anupam Basak",
author_email="anupam.basak27@gmail.com",
description="A Post Installation COnfiguration tool",
... | 29.846154 | 77 | 0.589562 | 158 | 1,552 | 5.651899 | 0.563291 | 0.12318 | 0.06271 | 0.080627 | 0.25308 | 0.25308 | 0.152296 | 0 | 0 | 0 | 0 | 0.015517 | 0.252577 | 1,552 | 51 | 78 | 30.431373 | 0.75431 | 0.125644 | 0 | 0.046512 | 0 | 0 | 0.448737 | 0.061664 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.023256 | 0 | 0.023256 | 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 |
8cda297e14662b818246dabf96df5f485117391e | 1,448 | py | Python | core/tests/test_models.py | maneeshbabu/recipe | 8cb02bf524f7676b11ec68fb4e6e518dea6b3456 | [
"MIT"
] | null | null | null | core/tests/test_models.py | maneeshbabu/recipe | 8cb02bf524f7676b11ec68fb4e6e518dea6b3456 | [
"MIT"
] | null | null | null | core/tests/test_models.py | maneeshbabu/recipe | 8cb02bf524f7676b11ec68fb4e6e518dea6b3456 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTestCase(TestCase):
def test_create_user_with_email_successful(self):
"""Test creating a new user with email is successful"""
email = "test@example.com"
password = "test123"
user = get_user... | 37.128205 | 73 | 0.619475 | 165 | 1,448 | 5.230303 | 0.248485 | 0.048667 | 0.069525 | 0.078795 | 0.473928 | 0.383546 | 0.271147 | 0.199305 | 0.199305 | 0.118192 | 0 | 0.011628 | 0.287293 | 1,448 | 38 | 74 | 38.105263 | 0.824612 | 0.131215 | 0 | 0.166667 | 0 | 0 | 0.061439 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.166667 | false | 0.25 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8cddfb293ba557275c826d5a51078f1b1456befd | 5,980 | py | Python | CIF_Assembly_Entry_debug.py | cschlick/cif-assembly | 84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382 | [
"MIT"
] | null | null | null | CIF_Assembly_Entry_debug.py | cschlick/cif-assembly | 84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382 | [
"MIT"
] | null | null | null | CIF_Assembly_Entry_debug.py | cschlick/cif-assembly | 84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from mmtbx.ncs.ncs import ncs
from phenix.programs import map_symmetry as map_symmetry_program
from cctbx.maptbx.segment_and_split_map import run_get_ncs_from_map
from iotbx import phil
from iotbx.data_manager import DataManager
# initialize data manager
dm = DataManager()
# f... | 32.150538 | 141 | 0.756355 | 936 | 5,980 | 4.464744 | 0.261752 | 0.064609 | 0.056951 | 0.073223 | 0.314669 | 0.199569 | 0.137832 | 0.09811 | 0.047858 | 0.047858 | 0 | 0.016939 | 0.121405 | 5,980 | 185 | 142 | 32.324324 | 0.778455 | 0 | 0 | 0.025862 | 0 | 0 | 0.20346 | 0.171952 | 0 | 0 | 0 | 0 | 0.008621 | 0 | null | null | 0 | 0.086207 | null | null | 0.008621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ce17a97e863e42c948a052d4db20da7594b80e9 | 6,771 | py | Python | EMLABPY/modules/makefinancialreports.py | TradeRES/toolbox-amiris-emlab | 11e6e7101bfbc0d71753e3892d4463c4955d2c34 | [
"Unlicense"
] | null | null | null | EMLABPY/modules/makefinancialreports.py | TradeRES/toolbox-amiris-emlab | 11e6e7101bfbc0d71753e3892d4463c4955d2c34 | [
"Unlicense"
] | null | null | null | EMLABPY/modules/makefinancialreports.py | TradeRES/toolbox-amiris-emlab | 11e6e7101bfbc0d71753e3892d4463c4955d2c34 | [
"Unlicense"
] | null | null | null | from domain.import_object import *
from modules.defaultmodule import DefaultModule
from domain.financialReports import FinancialPowerPlantReport
from domain.powerplant import PowerPlant
from domain.cashflow import CashFlow
from domain.technologies import *
import logging
class CreatingFinancialReports(DefaultModule):
... | 69.091837 | 287 | 0.742136 | 572 | 6,771 | 8.746504 | 0.27972 | 0.020788 | 0.036378 | 0.057166 | 0.30002 | 0.30002 | 0.294024 | 0.280832 | 0.262842 | 0.262842 | 0 | 0.002449 | 0.155664 | 6,771 | 97 | 288 | 69.804124 | 0.87266 | 0.679073 | 0 | 0 | 0 | 0 | 0.024171 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.142857 | false | 0 | 0.25 | 0 | 0.428571 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ce2f056900cdd54d05f6b392b7b1f1788adf0cb | 3,174 | py | Python | guess_number.py | redlinger/Guess_Number | ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7 | [
"MIT"
] | null | null | null | guess_number.py | redlinger/Guess_Number | ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7 | [
"MIT"
] | null | null | null | guess_number.py | redlinger/Guess_Number | ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Guess a Number between 1 and 100
Setup: The computer generates a random number between 1 and 100. The human's
goal is to guess that number in 5 or fewer guesses.
"""
import random
import time
# human number guess
hum_num = 0
# 5 trys to guess the right number
guesses =... | 28.854545 | 82 | 0.538122 | 440 | 3,174 | 3.768182 | 0.270455 | 0.06152 | 0.050663 | 0.06152 | 0.252714 | 0.204463 | 0.130881 | 0.130881 | 0.104946 | 0.104946 | 0 | 0.02712 | 0.361059 | 3,174 | 109 | 83 | 29.119266 | 0.790434 | 0.272842 | 0 | 0.188679 | 1 | 0 | 0.218052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.037736 | 0 | 0.075472 | 0.320755 | 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 |
8ce83244a55e8bc68a89ac42669afba7cecbc338 | 1,961 | py | Python | tests/test__file_importer.py | johnmdelgado/SRE-Project | 4637c2fa5a7d93da96d1e14ab96fcab8b652f076 | [
"MIT"
] | null | null | null | tests/test__file_importer.py | johnmdelgado/SRE-Project | 4637c2fa5a7d93da96d1e14ab96fcab8b652f076 | [
"MIT"
] | null | null | null | tests/test__file_importer.py | johnmdelgado/SRE-Project | 4637c2fa5a7d93da96d1e14ab96fcab8b652f076 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''
FileName: test__file_importer.py
Author: John Delgado
Created Date: 8/7/2020
Version: 1.0 Initial Development
This is the testing file for the file_importer script
'''
import os
import sys
import inspect
functions_dir = os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.curr... | 35.654545 | 137 | 0.570117 | 196 | 1,961 | 5.454082 | 0.484694 | 0.101029 | 0.039289 | 0.064546 | 0.302152 | 0.24696 | 0.177736 | 0.108513 | 0.108513 | 0 | 0 | 0.006109 | 0.165222 | 1,961 | 54 | 138 | 36.314815 | 0.646915 | 0.36206 | 0 | 0 | 0 | 0 | 0.126521 | 0.03974 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.12 | false | 0.04 | 0.36 | 0 | 0.52 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ce85526db08143d6f7b5fd20f02640f67bf4970 | 1,058 | py | Python | ProjectEuler/p049.py | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | ProjectEuler/p049.py | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | ProjectEuler/p049.py | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z |
# Execution time : 0.440223 seconds
# Solution Explanation
# We can simplily iterate through all the 4-digits numbers
# Then generate all the permutation of this number and check
# if the desirable sequence, distinct from the given one, is found
import time
width = 40
import itertools
import math
def solution():
... | 31.117647 | 87 | 0.591682 | 167 | 1,058 | 3.688623 | 0.449102 | 0.038961 | 0.024351 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 0.259924 | 1,058 | 33 | 88 | 32.060606 | 0.729246 | 0.222117 | 0 | 0 | 1 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 0.105263 | 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 |
8cf1600e5f77551d25752ca057e78d7b4032d079 | 518 | py | Python | host/rdmem.py | flowswitch/phison | d9415a8d5c62354d09cd6410754c9d8bb65e164f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | host/rdmem.py | flowswitch/phison | d9415a8d5c62354d09cd6410754c9d8bb65e164f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | host/rdmem.py | flowswitch/phison | d9415a8d5c62354d09cd6410754c9d8bb65e164f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | """read XDATA memory"""
import sys
import PyScsi as drv
import Phison as ph
from util import BinFile
if len(sys.argv)!=4:
sys.exit("Read chip internal memory\nUsage: %s <file> <addr> <size>\nExample: %s ram.bin 0 0x10000" % (sys.argv[0], sys.argv[0]))
addr = int(sys.argv[2], 0)
size = int(sys.argv[3], 0)
disk = ph.... | 23.545455 | 130 | 0.69305 | 92 | 518 | 3.869565 | 0.532609 | 0.117978 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033408 | 0.133205 | 518 | 21 | 131 | 24.666667 | 0.759465 | 0 | 0 | 0 | 0 | 0.0625 | 0.248485 | 0 | 0 | 0 | 0.014141 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8cf1b63f0ee0ab41801ca7a509ae506ce2873aca | 2,672 | py | Python | zapper/context.py | alfuananzo/zapper | 8a87e332ebdad8803058793c036a1426b9240b98 | [
"MIT"
] | 1 | 2019-05-07T09:56:49.000Z | 2019-05-07T09:56:49.000Z | zapper/context.py | alfuananzo/zapper | 8a87e332ebdad8803058793c036a1426b9240b98 | [
"MIT"
] | null | null | null | zapper/context.py | alfuananzo/zapper | 8a87e332ebdad8803058793c036a1426b9240b98 | [
"MIT"
] | null | null | null | #TODO: Kill scans if overwrite is set.
from zapper.helpers import report_to_cli
class context:
def __init__(self, target, scope, api, force=False):
"""
Control one Context entry of ZAP. A context has the following properties:
Attributes:
target: The target of the scan
... | 44.533333 | 188 | 0.611901 | 319 | 2,672 | 5.047022 | 0.310345 | 0.122981 | 0.040994 | 0.046584 | 0.342236 | 0.269565 | 0.228571 | 0 | 0 | 0 | 0 | 0.000505 | 0.258982 | 2,672 | 59 | 189 | 45.288136 | 0.812626 | 0.163922 | 0 | 0.057143 | 0 | 0 | 0.315037 | 0.105166 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.142857 | false | 0 | 0.085714 | 0.057143 | 0.342857 | 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 |
8cf7205decff15f66c7b82d0402b54b1a61e8918 | 476 | py | Python | setup.py | Emrys-Merlin/monitor_airquality | 40a734c8a2cc24d826b61f26e863a5c0913b7106 | [
"MIT"
] | null | null | null | setup.py | Emrys-Merlin/monitor_airquality | 40a734c8a2cc24d826b61f26e863a5c0913b7106 | [
"MIT"
] | null | null | null | setup.py | Emrys-Merlin/monitor_airquality | 40a734c8a2cc24d826b61f26e863a5c0913b7106 | [
"MIT"
] | null | null | null | from importlib.metadata import entry_points
from setuptools import find_packages, setup
setup(
name='monitor_airquality',
version='0.1',
url='',
author='Tim Adler',
author_email='tim+github@emrys-merlin.de',
description='Measure airquality using some sensors connected to a raspberry pi',
p... | 26.444444 | 84 | 0.712185 | 56 | 476 | 5.875 | 0.714286 | 0.155015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005089 | 0.17437 | 476 | 17 | 85 | 28 | 0.832061 | 0 | 0 | 0 | 0 | 0 | 0.384454 | 0.153361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 |
8cfbc2509615626710ec962d624548fc6620ce7a | 16,310 | py | Python | src/insulaudit/devices/clmm/proto.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | 1 | 2020-11-28T13:23:58.000Z | 2020-11-28T13:23:58.000Z | src/insulaudit/devices/clmm/proto.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | null | null | null | src/insulaudit/devices/clmm/proto.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | null | null | null | import struct
import sys
import serial
import time
import logging
from pprint import pprint, pformat
import doctest
from insulaudit.core import Command
from insulaudit.clmm.usbstick import *
from insulaudit import lib
#logging.basicConfig( stream=sys.stdout )
log = logging.getLogger(__name__)
#log.setLevel( logging.D... | 25.604396 | 91 | 0.62385 | 1,915 | 16,310 | 5.273629 | 0.213577 | 0.01317 | 0.014259 | 0.010892 | 0.124963 | 0.096544 | 0.081493 | 0.068225 | 0.068225 | 0.055748 | 0 | 0.042555 | 0.240711 | 16,310 | 636 | 92 | 25.644654 | 0.772933 | 0.067014 | 0 | 0.169399 | 0 | 0 | 0.085438 | 0.016757 | 0 | 0 | 0.026333 | 0 | 0.013661 | 0 | null | null | 0.013661 | 0.027322 | null | null | 0.005464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8cfc14873a8e3827bbe126057b1811e7460db3fe | 300 | py | Python | examples/interrupts.py | nodesign/electripy | 6765dccd93b4d71e77ae258f560a1e2eb6645128 | [
"Unlicense",
"MIT"
] | 3 | 2017-06-20T11:50:47.000Z | 2019-10-28T15:14:53.000Z | examples/interrupts.py | nodesign/electripy | 6765dccd93b4d71e77ae258f560a1e2eb6645128 | [
"Unlicense",
"MIT"
] | null | null | null | examples/interrupts.py | nodesign/electripy | 6765dccd93b4d71e77ae258f560a1e2eb6645128 | [
"Unlicense",
"MIT"
] | null | null | null | from lib.electripy import *
print "Board name : ", getBoardName()
print "INTERRUPTS TEST **************************"
def hello(data):
print "interrupt ", INTERRUPT_TYPE[data]
attachInterrupt(25, CHANGE, hello)
for a in range(0,15):
delay(1000)
print a
detachInterrupt(25)
stop() | 17.647059 | 50 | 0.63 | 36 | 300 | 5.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044534 | 0.176667 | 300 | 17 | 51 | 17.647059 | 0.716599 | 0 | 0 | 0 | 0 | 0 | 0.215947 | 0.086379 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8cfc82cb9558f36c262b30e77dc6228a934d7ef7 | 15,691 | py | Python | Contents/Code/interface/menu.py | tomerblecher/Sub-Zero.bundle | afc7614095fe6b0e1d15f40671f8cc1de37b4402 | [
"MIT"
] | 2 | 2020-12-06T19:40:10.000Z | 2020-12-26T13:20:10.000Z | Contents/Code/interface/menu.py | PlexIL/Sub-Zero.bundle | e74af913f13b390fc5271def4fdc55066358d3e3 | [
"MIT"
] | null | null | null | Contents/Code/interface/menu.py | PlexIL/Sub-Zero.bundle | e74af913f13b390fc5271def4fdc55066358d3e3 | [
"MIT"
] | null | null | null | # coding=utf-8
import locale
import logging
import os
import platform
import traceback
import logger
import copy
from requests import HTTPError
from item_details import ItemDetailsMenu
from refresh_item import RefreshItem
from menu_helpers import add_incl_excl_options, dig_tree, set_refresh_menu_state, \
default_... | 41.510582 | 132 | 0.636734 | 1,816 | 15,691 | 5.290749 | 0.212004 | 0.044963 | 0.024771 | 0.018734 | 0.312968 | 0.258535 | 0.237927 | 0.222107 | 0.198585 | 0.194421 | 0 | 0.007128 | 0.257919 | 15,691 | 377 | 133 | 41.62069 | 0.818018 | 0.025811 | 0 | 0.219858 | 0 | 0 | 0.184196 | 0.025343 | 0 | 0 | 0 | 0.002653 | 0 | 0 | null | null | 0.007092 | 0.08156 | 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 |
8cfca3b3f7b05a6aebdc8eea726b3a320cf8a4ca | 7,643 | py | Python | gsicrawler_pipeline.py | antoniofll/sefarad4.0-testing | 1b50f479ee503e5e23345ab0388eb6c2608ab73d | [
"Apache-2.0"
] | null | null | null | gsicrawler_pipeline.py | antoniofll/sefarad4.0-testing | 1b50f479ee503e5e23345ab0388eb6c2608ab73d | [
"Apache-2.0"
] | null | null | null | gsicrawler_pipeline.py | antoniofll/sefarad4.0-testing | 1b50f479ee503e5e23345ab0388eb6c2608ab73d | [
"Apache-2.0"
] | null | null | null | import luigi
from luigi import configuration
from luigi.s3 import S3Target, S3PathTask
import threading
from time import sleep
import os
import json
import imp
import random
import datetime
import uuid
from bottle import route, run, template, static_file, response, request, install
import luigi
import urllib2
pendin... | 33.230435 | 114 | 0.697501 | 963 | 7,643 | 5.411215 | 0.214953 | 0.046056 | 0.018423 | 0.020725 | 0.466897 | 0.376511 | 0.305508 | 0.216081 | 0.200729 | 0.178852 | 0 | 0.006729 | 0.163941 | 7,643 | 229 | 115 | 33.375546 | 0.808764 | 0.057962 | 0 | 0.301471 | 0 | 0.007353 | 0.153123 | 0.020582 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5065c0ef1a0d7d57ef1fde52307819e6cc954dfe | 6,286 | py | Python | app/verbose.py | erikosmond/knights_tour | beb4cbb3a081d1c134ed180c6044e3ba7a4a6016 | [
"MIT"
] | null | null | null | app/verbose.py | erikosmond/knights_tour | beb4cbb3a081d1c134ed180c6044e3ba7a4a6016 | [
"MIT"
] | null | null | null | app/verbose.py | erikosmond/knights_tour | beb4cbb3a081d1c134ed180c6044e3ba7a4a6016 | [
"MIT"
] | 1 | 2019-05-04T13:03:53.000Z | 2019-05-04T13:03:53.000Z | class Verbose(object):
Initialized = False
def __init__(self, verbosity, show_info=False):
assert type(verbosity) is int, "verbose takes an integer value of 0-1023"
self.verbose_int = verbosity
self.info = """
bit 0[-1](1) - max/min values
bit 1[-2](2) - r... | 43.958042 | 114 | 0.544066 | 763 | 6,286 | 4.338139 | 0.230668 | 0.046526 | 0.039275 | 0.060423 | 0.144411 | 0.056798 | 0.019335 | 0 | 0 | 0 | 0 | 0.024121 | 0.366847 | 6,286 | 143 | 115 | 43.958042 | 0.807538 | 0.063793 | 0 | 0.054054 | 0 | 0.009009 | 0.148932 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0 | null | null | 0.009009 | 0 | null | null | 0.207207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
506906ff6a85d3dd74305ee68d4ad5ec97a8dca5 | 5,216 | py | Python | usbcan/somebus.py | laigui/usbcan | a58e8f4a7d757fdadc4dd57a039cd4afa016d585 | [
"MIT"
] | null | null | null | usbcan/somebus.py | laigui/usbcan | a58e8f4a7d757fdadc4dd57a039cd4afa016d585 | [
"MIT"
] | null | null | null | usbcan/somebus.py | laigui/usbcan | a58e8f4a7d757fdadc4dd57a039cd4afa016d585 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
''' somebus.py: Somebus USBCAN-II adaptor driver class.
Copyright (C) 2019 Laigui Qin <laigui@gmail.com>'''
from ctypes import *
class VciInitConfig(Structure):
"""
INIT_CONFIG结构体定义了初始化CAN的配置
"""
_fields_ = [("AccCode", c_ulong), # 验收码,后面是数据类型
("AccMa... | 31.612121 | 89 | 0.551189 | 435 | 5,216 | 6.524138 | 0.351724 | 0.057082 | 0.11346 | 0.082452 | 0.322058 | 0.300211 | 0.270613 | 0.178999 | 0.178999 | 0.064834 | 0 | 0.017684 | 0.327837 | 5,216 | 165 | 90 | 31.612121 | 0.791786 | 0.308474 | 0 | 0.157895 | 0 | 0 | 0.094744 | 0 | 0 | 0 | 0.003348 | 0 | 0 | 1 | 0.175439 | false | 0.035088 | 0.017544 | 0 | 0.526316 | 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 |
50695771cffd15a76d764cc359fe32d149466b8a | 2,285 | py | Python | PyFlow/Ui/StyleSheetEditor.py | pedroCabrera/PyFlow | 8b439d9b47fff450e91c09d40c7b286e88cb624f | [
"MIT"
] | 7 | 2018-06-24T15:55:00.000Z | 2021-07-13T08:11:25.000Z | PyFlow/Ui/StyleSheetEditor.py | pedroCabrera/PyFlow | 8b439d9b47fff450e91c09d40c7b286e88cb624f | [
"MIT"
] | 32 | 2019-02-18T20:47:46.000Z | 2019-05-30T12:51:10.000Z | PyFlow/Ui/StyleSheetEditor.py | pedroCabrera/PyFlow | 8b439d9b47fff450e91c09d40c7b286e88cb624f | [
"MIT"
] | 5 | 2019-02-19T23:26:21.000Z | 2020-12-23T00:32:59.000Z | from Qt import QtWidgets
from Qt import QtCore
from widgets.pc_HueSlider import pc_HueSlider,pc_GradientSlider
if __name__ == '__main__':
import sys
sys.path.append("..")
import stylesheet
else:
from .. import stylesheet
from .. import resources
class StyleSheetEditor(QtWidgets.QWidget):
"""Style Sheet Editor... | 29.675325 | 71 | 0.760175 | 290 | 2,285 | 5.831034 | 0.262069 | 0.070964 | 0.05204 | 0.037256 | 0.17741 | 0.087522 | 0.067416 | 0.067416 | 0.067416 | 0.067416 | 0 | 0.00197 | 0.111597 | 2,285 | 77 | 72 | 29.675325 | 0.831034 | 0 | 0 | 0.171875 | 0 | 0 | 0.014147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5069c552bceb85ec98f646d7fca3218a5cca5f2d | 1,511 | gyp | Python | test/win/compiler-flags/calling-convention.gyp | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | test/win/compiler-flags/calling-convention.gyp | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 1,432 | 2017-06-21T04:08:48.000Z | 2020-08-25T16:21:15.000Z | test/win/compiler-flags/calling-convention.gyp | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright (c) 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'test_cdecl',
'type': 'loadable_module',
'msvs_settings': {
'VCCLCompilerTool': {
'Calling... | 22.552239 | 72 | 0.483786 | 116 | 1,511 | 6.155172 | 0.474138 | 0.190476 | 0.078431 | 0.123249 | 0.593838 | 0.593838 | 0.352941 | 0 | 0 | 0 | 0 | 0.014478 | 0.360026 | 1,511 | 66 | 73 | 22.893939 | 0.723888 | 0.09861 | 0 | 0.467742 | 0 | 0 | 0.469072 | 0.170103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
506ad7660bd1038dfb11c4b2c1efad4b5755bce2 | 679 | py | Python | agents/base_agent.py | IanYHWu/msc_2021 | 0ae09ed392cce5fdf0e85d1f96b7af82900835f8 | [
"MIT"
] | null | null | null | agents/base_agent.py | IanYHWu/msc_2021 | 0ae09ed392cce5fdf0e85d1f96b7af82900835f8 | [
"MIT"
] | null | null | null | agents/base_agent.py | IanYHWu/msc_2021 | 0ae09ed392cce5fdf0e85d1f96b7af82900835f8 | [
"MIT"
] | null | null | null |
class BaseAgent(object):
"""
Class for the basic agent objects.
"""
def __init__(self,
env,
actor_critic,
storage,
device):
"""
env: (gym.Env) environment following the openAI Gym API
"""
self.env = en... | 19.4 | 63 | 0.483063 | 67 | 679 | 4.776119 | 0.567164 | 0.103125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002591 | 0.431517 | 679 | 34 | 64 | 19.970588 | 0.826425 | 0.237113 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.133333 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
506ec8d37920dc02fb0964cd084a15f385c1f491 | 2,210 | py | Python | pysnmp-with-texts/RBT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/RBT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/RBT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module RBT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:18:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 88.4 | 505 | 0.776923 | 237 | 2,210 | 7.236287 | 0.468354 | 0.080466 | 0.061224 | 0.069971 | 0.337026 | 0.221574 | 0.221574 | 0.208746 | 0.208746 | 0.208746 | 0 | 0.059724 | 0.083258 | 2,210 | 24 | 506 | 92.083333 | 0.786772 | 0.139367 | 0 | 0 | 0 | 0 | 0.325938 | 0.023244 | 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 |
50732e512e8aa60eef305eb3f7a68cdf0138b721 | 1,186 | py | Python | archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 45 | 2015-04-26T04:45:51.000Z | 2022-01-24T15:03:55.000Z | archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 8 | 2018-07-20T20:54:51.000Z | 2020-06-12T05:36:04.000Z | archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 22 | 2018-05-21T23:57:20.000Z | 2022-02-21T00:48:32.000Z | import numpy as np
import theano
import theano.tensor as T
import treeano.nodes as tn
from treeano.sandbox.nodes import fmp
fX = theano.config.floatX
# TODO change me
node = "fmp2"
compute_grad = True
if node == "mp":
n = tn.MaxPool2DNode("mp", pool_size=(2, 2))
elif node == "fmp":
n = fmp.DisjointPseudorando... | 21.178571 | 78 | 0.559022 | 164 | 1,186 | 3.993902 | 0.469512 | 0.018321 | 0.012214 | 0.018321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074911 | 0.290894 | 1,186 | 55 | 79 | 21.563636 | 0.703924 | 0.011804 | 0 | 0.064516 | 0 | 0 | 0.042677 | 0 | 0 | 0 | 0 | 0.018182 | 0.032258 | 1 | 0 | false | 0 | 0.16129 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
507882446718b2c00a42bfdd52f4470e8480586d | 5,583 | py | Python | kolab/yk/yk2.py | KuramitsuLab/kolab | 91fa4bae4a440a15291ba2d2690e4e335cbfd21e | [
"MIT"
] | null | null | null | kolab/yk/yk2.py | KuramitsuLab/kolab | 91fa4bae4a440a15291ba2d2690e4e335cbfd21e | [
"MIT"
] | 1 | 2021-11-14T05:38:27.000Z | 2021-11-14T05:38:27.000Z | kolab/yk/yk2.py | KuramitsuLab/kolab | 91fa4bae4a440a15291ba2d2690e4e335cbfd21e | [
"MIT"
] | 7 | 2020-11-02T13:05:44.000Z | 2022-01-09T11:06:04.000Z | from os import read
import random
import sys
import pegtree as pg
import argparse
import csv
from pegtree.optimizer import optimize
peg = pg.grammar('yk.tpeg')
parse = pg.generate(peg)
parser = argparse.ArgumentParser(description='yk for Parameter Handling')
parser.add_argument('--notConv', action='store_true') # ... | 32.649123 | 111 | 0.506538 | 697 | 5,583 | 3.908178 | 0.177905 | 0.076358 | 0.066814 | 0.082599 | 0.39464 | 0.383627 | 0.361233 | 0.32746 | 0.246696 | 0.232012 | 0 | 0.016023 | 0.373992 | 5,583 | 170 | 112 | 32.841176 | 0.763376 | 0.025793 | 0 | 0.380952 | 1 | 0 | 0.061315 | 0.016203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034014 | false | 0.013605 | 0.047619 | 0 | 0.197279 | 0.013605 | 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 |
50826185ee7d341557b552bde864d1a94b521ad3 | 3,480 | py | Python | isc_dhcp_leases/test_lease6.py | dholl/python-isc-dhcp-leases | 7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced | [
"MIT"
] | 111 | 2015-02-11T21:36:40.000Z | 2022-03-18T13:36:12.000Z | isc_dhcp_leases/test_lease6.py | dholl/python-isc-dhcp-leases | 7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced | [
"MIT"
] | 36 | 2015-05-05T12:04:07.000Z | 2021-06-17T12:58:30.000Z | isc_dhcp_leases/test_lease6.py | dholl/python-isc-dhcp-leases | 7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced | [
"MIT"
] | 52 | 2015-05-02T19:31:20.000Z | 2022-03-18T13:36:29.000Z | import datetime
from unittest import TestCase
from isc_dhcp_leases.iscdhcpleases import Lease6, utc
from freezegun import freeze_time
__author__ = 'Martijn Braam <martijn@brixit.nl>'
class TestLease6(TestCase):
def setUp(self):
self.lease_time = datetime.datetime(2015, 8, 18, 16, 55, 37, tzinfo=utc)
... | 43.5 | 107 | 0.60977 | 493 | 3,480 | 4.190669 | 0.229209 | 0.060987 | 0.060987 | 0.067764 | 0.508228 | 0.47241 | 0.407551 | 0.394482 | 0.394482 | 0.394482 | 0 | 0.201473 | 0.219828 | 3,480 | 79 | 108 | 44.050633 | 0.559484 | 0.014655 | 0 | 0.206349 | 0 | 0.142857 | 0.269197 | 0.230949 | 0 | 0 | 0 | 0 | 0.301587 | 1 | 0.126984 | false | 0 | 0.063492 | 0 | 0.206349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
5088c0c6396ddfd3443bddad31b38216e9bda0c1 | 1,330 | py | Python | python/periodic-web-scrapper/scraper/Scraper.py | MarioCodes/ProyectosClaseDAM | df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9 | [
"Apache-2.0"
] | null | null | null | python/periodic-web-scrapper/scraper/Scraper.py | MarioCodes/ProyectosClaseDAM | df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9 | [
"Apache-2.0"
] | 17 | 2019-06-14T12:30:46.000Z | 2022-02-18T11:38:50.000Z | python/periodic-web-scrapper/scraper/Scraper.py | MarioCodes/ProyectosClaseDAM | df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9 | [
"Apache-2.0"
] | null | null | null | '''
Created on Apr 18, 2018
@author: msanchez
'''
from scraper.RequestScraper import RequestScraper
from scraper.HTMLFilter import HTMLFilter
from scraper.NewsFilter import NewsFilter
from scraper.utilities.WebUtilities import WebUtilities
class Scraper(object):
''' Full scrap operation. Downloads the request wit... | 30.930233 | 159 | 0.64812 | 149 | 1,330 | 5.577181 | 0.456376 | 0.052948 | 0.031288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009184 | 0.263158 | 1,330 | 43 | 160 | 30.930233 | 0.838776 | 0.158647 | 0 | 0 | 0 | 0 | 0.072022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.153846 | 0 | 0.538462 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
50897cd7ac40da6c45acf1571aad36057bdb2d94 | 2,877 | py | Python | cabot_alert_pushover/models.py | dnelson/cabot-alert-pushover | c10f34e59c9f289e60016e7240c4e6ada611f611 | [
"MIT"
] | null | null | null | cabot_alert_pushover/models.py | dnelson/cabot-alert-pushover | c10f34e59c9f289e60016e7240c4e6ada611f611 | [
"MIT"
] | 1 | 2015-02-09T22:26:48.000Z | 2015-02-09T22:26:48.000Z | cabot_alert_pushover/models.py | packetcollision/cabot-alert-pushover | c10f34e59c9f289e60016e7240c4e6ada611f611 | [
"MIT"
] | 1 | 2015-04-29T15:43:31.000Z | 2015-04-29T15:43:31.000Z | from django.db import models
from django.conf import settings
from django.template import Context, Template
from cabot.cabotapp.alert import AlertPlugin, AlertPluginUserData
from os import environ as env
import requests
pushover_alert_url = "https://api.pushover.net/1/messages.json"
pushover_template = "Service {{ ... | 35.518519 | 250 | 0.583246 | 296 | 2,877 | 5.523649 | 0.418919 | 0.07156 | 0.085627 | 0.099083 | 0.155352 | 0.04893 | 0 | 0 | 0 | 0 | 0 | 0.00826 | 0.326729 | 2,877 | 80 | 251 | 35.9625 | 0.835829 | 0.040667 | 0 | 0.163934 | 0 | 0.016393 | 0.149183 | 0.023956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0.065574 | 0.098361 | 0 | 0.278689 | 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 |
508e54ebec8de34c224abfb2a9e4b84d25629fa1 | 6,652 | py | Python | aws_automation/s3.py | VCCRI/Scavenger | a17f48b242a1cd8d626ad3a21439fa2c80b06533 | [
"MIT"
] | 4 | 2018-07-25T15:52:00.000Z | 2020-10-20T00:47:35.000Z | aws_automation/s3.py | VCCRI/Scavenger | a17f48b242a1cd8d626ad3a21439fa2c80b06533 | [
"MIT"
] | null | null | null | aws_automation/s3.py | VCCRI/Scavenger | a17f48b242a1cd8d626ad3a21439fa2c80b06533 | [
"MIT"
] | null | null | null | # a module that wraps some of the S3 commands
import boto3
from botocore.exceptions import ClientError
from boto3.s3.transfer import S3Transfer
import re
import os
# check for existance of bucket
def list_bucket(bucket_name, region):
s3 = boto3.resource('s3', region)
bucket = s3.Bucket(bucket_name)
object_... | 34.827225 | 96 | 0.637853 | 922 | 6,652 | 4.508677 | 0.238612 | 0.048112 | 0.038489 | 0.020447 | 0.237431 | 0.204234 | 0.159731 | 0.135675 | 0.1121 | 0.1121 | 0 | 0.018253 | 0.266987 | 6,652 | 190 | 97 | 35.010526 | 0.83429 | 0.399579 | 0 | 0.362745 | 0 | 0 | 0.040984 | 0 | 0 | 0 | 0 | 0.010526 | 0.009804 | 1 | 0.088235 | false | 0 | 0.04902 | 0 | 0.215686 | 0.068627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
508f157fb5ef3d702783d7357c19874b1334a4e9 | 7,597 | py | Python | bot/exts/info/codeblock/_instructions.py | zwycl/bot | 862fb070a501ca45cccb481d62f079b3bdb1d16f | [
"MIT",
"BSD-3-Clause"
] | 1 | 2020-12-22T09:13:09.000Z | 2020-12-22T09:13:09.000Z | bot/exts/info/codeblock/_instructions.py | Ezamey/bot | 0b7a1be1dd57a464fc79fcb235b79d75bec43f99 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | bot/exts/info/codeblock/_instructions.py | Ezamey/bot | 0b7a1be1dd57a464fc79fcb235b79d75bec43f99 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | """This module generates and formats instructional messages about fixing Markdown code blocks."""
import logging
from typing import Optional
from bot.exts.info.codeblock import _parsing
log = logging.getLogger(__name__)
_EXAMPLE_PY = "{lang}\nprint('Hello, world!')" # Make sure to escape any Markdown symbols here.... | 41.064865 | 97 | 0.675925 | 1,034 | 7,597 | 4.848162 | 0.212766 | 0.052065 | 0.016756 | 0.023938 | 0.309196 | 0.219828 | 0.203072 | 0.174347 | 0.141632 | 0.107321 | 0 | 0.001033 | 0.235619 | 7,597 | 184 | 98 | 41.288043 | 0.862235 | 0.198499 | 0 | 0.17094 | 1 | 0 | 0.441981 | 0.029843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.145299 | 0.008547 | 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 |
50993243321f041c53a88a278ea5aece495a4f45 | 9,453 | py | Python | pysnmp/TRANGO-APEX-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/TRANGO-APEX-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/TRANGO-APEX-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TRANGO-APEX-TRAP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRANGO-APEX-TRAP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:19:34 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 95.484848 | 1,742 | 0.756056 | 1,144 | 9,453 | 6.247378 | 0.131119 | 0.015111 | 0.020148 | 0.026305 | 0.353155 | 0.2762 | 0.2762 | 0.2762 | 0.2762 | 0.248216 | 0 | 0.100188 | 0.101449 | 9,453 | 98 | 1,743 | 96.459184 | 0.741229 | 0.035333 | 0 | 0 | 0 | 0 | 0.088474 | 0.00483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011111 | 0.077778 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
509af6bcf44faa152d90bad8b829b7b4847920a9 | 359 | py | Python | example/controller/tests/helper/security/web/csrf/verify/by_value.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | example/controller/tests/helper/security/web/csrf/verify/by_value.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | example/controller/tests/helper/security/web/csrf/verify/by_value.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
from dp_tornado.engine.controller import Controller
class ByValueController(Controller):
def get(self):
param_key = 'csrf'
if not self.helper.security.web.csrf.verify_token(controller=self, value=self.get_argument(param_key)):
return self.parent.finish_with_e... | 23.933333 | 111 | 0.688022 | 46 | 359 | 5.217391 | 0.717391 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.192201 | 359 | 14 | 112 | 25.642857 | 0.813793 | 0.058496 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 |
509bc06e0b8597b7dcfcd3d366bc4b0a1b33cced | 1,913 | py | Python | dis_snek/api/http/route.py | BoredManCodes/Dis-Snek | 662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b | [
"MIT"
] | null | null | null | dis_snek/api/http/route.py | BoredManCodes/Dis-Snek | 662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b | [
"MIT"
] | null | null | null | dis_snek/api/http/route.py | BoredManCodes/Dis-Snek | 662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING, Any, ClassVar, Optional
from urllib.parse import quote as _uriquote
if TYPE_CHECKING:
from dis_snek.models.discord.snowflake import Snowflake_Type
__all__ = ["Route"]
class Route:
BASE: ClassVar[str] = "https://discord.com/api/v9"
path: str
params: dict[str, str | ... | 28.984848 | 109 | 0.634605 | 250 | 1,913 | 4.632 | 0.288 | 0.041451 | 0.037997 | 0.046632 | 0.162349 | 0.1019 | 0.062176 | 0.062176 | 0 | 0 | 0 | 0.000692 | 0.244642 | 1,913 | 65 | 110 | 29.430769 | 0.800692 | 0.047569 | 0 | 0.066667 | 0 | 0.022222 | 0.161683 | 0.087486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.066667 | 0.066667 | 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 |
50a3bc0cc77af6e3f24e20ed927fe327a30a1517 | 695 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Provide accessors to these models via the Django Admin pages
"""
from django import forms
from django.contrib import admin
from lms.djangoapps.survey.models import SurveyForm
class SurveyFormAdminForm(forms.ModelForm):
"""Form providing validation of SurveyForm content."""
class Meta:
model = ... | 21.71875 | 60 | 0.700719 | 77 | 695 | 6.272727 | 0.571429 | 0.041408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204317 | 695 | 31 | 61 | 22.419355 | 0.873418 | 0.227338 | 0 | 0 | 0 | 0 | 0.023346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
50a5a6f4507fa5ed92be275eb4339130e457b023 | 6,369 | py | Python | calico/etcddriver/test/test_hwm.py | ozdanborne/felix | 5eff313e6498b3a7d775aa16cb09fd4578331701 | [
"Apache-2.0"
] | 6 | 2016-10-18T04:04:25.000Z | 2016-10-18T04:06:49.000Z | calico/etcddriver/test/test_hwm.py | ozdanborne/felix | 5eff313e6498b3a7d775aa16cb09fd4578331701 | [
"Apache-2.0"
] | 1 | 2021-06-01T21:45:37.000Z | 2021-06-01T21:45:37.000Z | calico/etcddriver/test/test_hwm.py | ozdanborne/felix | 5eff313e6498b3a7d775aa16cb09fd4578331701 | [
"Apache-2.0"
] | 2 | 2018-10-31T08:55:19.000Z | 2019-04-16T02:14:50.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2016 Tigera, 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
#
# Unle... | 41.627451 | 79 | 0.633851 | 914 | 6,369 | 4.294311 | 0.257112 | 0.064204 | 0.053503 | 0.069554 | 0.414777 | 0.385223 | 0.318981 | 0.295287 | 0.267771 | 0.246369 | 0 | 0.021537 | 0.241796 | 6,369 | 152 | 80 | 41.901316 | 0.791261 | 0.332862 | 0 | 0.292135 | 0 | 0 | 0.084766 | 0 | 0 | 0 | 0 | 0 | 0.47191 | 1 | 0.044944 | false | 0 | 0.05618 | 0 | 0.123596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
50ae8802ab2f67d8085eed2af76c35268d1f3319 | 3,167 | py | Python | flan/exports/awssqs.py | bretlowery/flan | b79319044fcdb2230ac090232e9056719cb09f17 | [
"MIT"
] | 3 | 2019-08-03T13:27:31.000Z | 2021-06-08T16:25:31.000Z | flan/exports/awssqs.py | bretlowery/flan | b79319044fcdb2230ac090232e9056719cb09f17 | [
"MIT"
] | 2 | 2020-09-24T10:44:55.000Z | 2021-06-25T15:31:24.000Z | flan/exports/awssqs.py | bretlowery/flan | b79319044fcdb2230ac090232e9056719cb09f17 | [
"MIT"
] | null | null | null | from flanexport import FlanExport, timeout_after
import os
import ast
try:
from boto.sqs import connection
from boto.sqs.message import Message
except:
pass
class AWSSQS(FlanExport):
def __init__(self, meta, config):
name = self.__class__.__name__
super().__init__(name, meta, config)... | 38.156627 | 94 | 0.610988 | 346 | 3,167 | 5.277457 | 0.234104 | 0.122673 | 0.07667 | 0.030668 | 0.098028 | 0.081051 | 0.036145 | 0.036145 | 0 | 0 | 0 | 0.003126 | 0.293022 | 3,167 | 83 | 95 | 38.156627 | 0.812416 | 0 | 0 | 0.213333 | 0 | 0 | 0.078598 | 0.013573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0.013333 | 0.186667 | 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 |
50c1727f4cbaa7d21dda9d008ae65222d11294d4 | 1,718 | py | Python | 2017/day25/day25.py | icemanblues/advent-of-code | eac937ac2762d1c8b8cec358a13af352e339446c | [
"Apache-2.0"
] | null | null | null | 2017/day25/day25.py | icemanblues/advent-of-code | eac937ac2762d1c8b8cec358a13af352e339446c | [
"Apache-2.0"
] | 2 | 2020-04-06T18:56:13.000Z | 2022-03-30T20:32:50.000Z | 2017/day25/day25.py | icemanblues/advent-of-code | eac937ac2762d1c8b8cec358a13af352e339446c | [
"Apache-2.0"
] | null | null | null | from typing import Set
day_num = "25"
day_title = "The Halting Problem"
def part1():
tape: Set[int] = set()
curr: int = 0
state: str = 'a'
for _ in range(12523873):
is_one = curr in tape
if state == 'a' and not is_one:
tape.add(curr)
curr += 1
stat... | 23.534247 | 41 | 0.419092 | 214 | 1,718 | 3.242991 | 0.200935 | 0.09366 | 0.15562 | 0.242075 | 0.685879 | 0.685879 | 0.685879 | 0.600865 | 0.600865 | 0.371758 | 0 | 0.027957 | 0.458673 | 1,718 | 72 | 42 | 23.861111 | 0.71828 | 0 | 0 | 0.555556 | 0 | 0 | 0.05064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.015873 | 0 | 0.047619 | 0.031746 | 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 |
50cf002b29b4d43070275df7465fc14466be2932 | 3,430 | py | Python | pcircle/globals.py | fwang2/ccss | f2521cc492c5f459363cbaf4a55c9c504762efa4 | [
"Apache-2.0"
] | 20 | 2015-10-02T14:43:17.000Z | 2020-01-21T15:17:42.000Z | pcircle/globals.py | fwang2/ccss | f2521cc492c5f459363cbaf4a55c9c504762efa4 | [
"Apache-2.0"
] | 37 | 2015-10-01T18:52:08.000Z | 2018-11-20T21:05:39.000Z | pcircle/globals.py | fwang2/ccss | f2521cc492c5f459363cbaf4a55c9c504762efa4 | [
"Apache-2.0"
] | 7 | 2015-12-04T02:36:16.000Z | 2018-08-31T18:16:39.000Z | class T:
WORK_REQUEST = 1
WORK_REPLY = 2
REDUCE = 3
BARRIER = 4
TOKEN = 7
class Tally:
total_dirs = 0
total_files = 0
total_filesize = 0
total_stat_filesize = 0
total_symlinks = 0
total_skipped = 0
total_sparse = 0
max_files = 0
total_nlinks = 0
total_nlinke... | 25.597015 | 113 | 0.533819 | 473 | 3,430 | 3.697674 | 0.450317 | 0.030875 | 0.008576 | 0.009148 | 0.067467 | 0.038308 | 0.034305 | 0.034305 | 0.034305 | 0 | 0 | 0.195934 | 0.325948 | 3,430 | 133 | 114 | 25.789474 | 0.560554 | 0.139942 | 0 | 0 | 0 | 0.018868 | 0.131812 | 0.021798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.95283 | 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 |
50d091c9f0425cffc07e257ef10b1881ccd4fbda | 1,514 | py | Python | pedidos/migrations/0001_initial.py | tiagocordeiro/zumaq-partners | ba2c5d4257438ec062ef034096cd203efe58ef4a | [
"MIT"
] | 1 | 2019-02-13T11:01:25.000Z | 2019-02-13T11:01:25.000Z | pedidos/migrations/0001_initial.py | tiagocordeiro/zumaq-partners | ba2c5d4257438ec062ef034096cd203efe58ef4a | [
"MIT"
] | 619 | 2018-11-26T06:11:05.000Z | 2022-03-31T22:56:13.000Z | pedidos/migrations/0001_initial.py | tiagocordeiro/zumaq-partners | ba2c5d4257438ec062ef034096cd203efe58ef4a | [
"MIT"
] | 1 | 2020-03-12T16:34:13.000Z | 2020-03-12T16:34:13.000Z | # Generated by Django 2.1.7 on 2019-02-14 13:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 38.820513 | 174 | 0.602378 | 155 | 1,514 | 5.735484 | 0.483871 | 0.111361 | 0.050619 | 0.049494 | 0.177728 | 0.177728 | 0.177728 | 0.177728 | 0.177728 | 0.177728 | 0 | 0.017825 | 0.258917 | 1,514 | 38 | 175 | 39.842105 | 0.77451 | 0.029723 | 0 | 0.322581 | 1 | 0 | 0.121336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
50d1ff29cc95475cd6346e510fcbdb66477154e4 | 2,358 | py | Python | spyderlib/utils/debug.py | MarlaJahari/Marve | d8d18122c19f050429a91ef23edc87a85fecad1d | [
"MIT"
] | 1 | 2021-01-25T02:13:36.000Z | 2021-01-25T02:13:36.000Z | SMlib/utils/debug.py | koll00/Gui_SM | d02d28b20ef2ae1aa602b9bb52a6bb55fd66be9c | [
"MIT"
] | null | null | null | SMlib/utils/debug.py | koll00/Gui_SM | d02d28b20ef2ae1aa602b9bb52a6bb55fd66be9c | [
"MIT"
] | 1 | 2021-08-04T08:13:34.000Z | 2021-08-04T08:13:34.000Z | # -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""Debug utilities"""
import inspect
import traceback
import time
def log_time(fd):
timestr = "Logging time: %s" % time.ctime(time.time())
p... | 31.026316 | 79 | 0.583121 | 307 | 2,358 | 4.37785 | 0.456026 | 0.088542 | 0.053571 | 0.0625 | 0.162946 | 0.136161 | 0.072917 | 0 | 0 | 0 | 0 | 0.012463 | 0.285411 | 2,358 | 75 | 80 | 31.44 | 0.78457 | 0.343511 | 0 | 0.297872 | 0 | 0 | 0.055398 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.191489 | 0.382979 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
50d864ab62ce6a701debae2af6bac07b0dbf0ee8 | 9,439 | py | Python | libsolresol.py | MishaKlopukh/solresol-language | 075332912fdda7412e11c759c958997fee6c87a9 | [
"MIT"
] | null | null | null | libsolresol.py | MishaKlopukh/solresol-language | 075332912fdda7412e11c759c958997fee6c87a9 | [
"MIT"
] | null | null | null | libsolresol.py | MishaKlopukh/solresol-language | 075332912fdda7412e11c759c958997fee6c87a9 | [
"MIT"
] | null | null | null | import enum
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from scipy.io import wavfile
import json
jupyter_nb_mode = False
try:
assert jupyter_nb_mode
from IPython.display import Audio
except:
import sounddevice as sd
def Audio(array,rate=44100):
sd.pla... | 44.523585 | 156 | 0.599534 | 1,353 | 9,439 | 4.097561 | 0.162602 | 0.033189 | 0.04798 | 0.063131 | 0.452381 | 0.397367 | 0.337843 | 0.266414 | 0.19733 | 0.173882 | 0 | 0.036847 | 0.238055 | 9,439 | 211 | 157 | 44.734597 | 0.73401 | 0 | 0 | 0.247475 | 0 | 0.030303 | 0.033796 | 0.004979 | 0 | 0 | 0 | 0 | 0.005051 | 1 | 0.176768 | false | 0 | 0.040404 | 0.106061 | 0.39899 | 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 |
50d889e431ae6bc543ceb74e6af10a5b1cfede00 | 4,351 | py | Python | src/icegrams/trie_build.py | vthorsteinsson/Icegrams | d20d137a7e2b3316f38dfd5ace826993704c2050 | [
"MIT"
] | 7 | 2019-03-04T18:14:37.000Z | 2019-03-29T02:57:02.000Z | src/icegrams/trie_build.py | vthorsteinsson/Icegrams | d20d137a7e2b3316f38dfd5ace826993704c2050 | [
"MIT"
] | 1 | 2020-09-04T13:19:38.000Z | 2020-09-06T20:14:58.000Z | src/icegrams/trie_build.py | vthorsteinsson/Icegrams | d20d137a7e2b3316f38dfd5ace826993704c2050 | [
"MIT"
] | 1 | 2019-05-31T11:45:51.000Z | 2019-05-31T11:45:51.000Z | """
Icegrams: A trigrams library for Icelandic
CFFI builder for _trie module
Copyright (C) 2020 Miðeind ehf.
Original author: Vilhjálmur Þorsteinsson
This software is licensed under the MIT License:
Permission is hereby granted, free of charge, to any person
obtaining a copy of ... | 35.08871 | 81 | 0.69846 | 600 | 4,351 | 5.01 | 0.425 | 0.038922 | 0.040253 | 0.05489 | 0.160679 | 0.160679 | 0.137059 | 0.12342 | 0.07851 | 0.07851 | 0 | 0.016627 | 0.225925 | 4,351 | 123 | 82 | 35.373984 | 0.875891 | 0.495059 | 0 | 0.178571 | 0 | 0 | 0.70506 | 0.122892 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053571 | 0 | 0.053571 | 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 |
50d8d110901dc8d422a6e7035234a1d64625b3dc | 1,854 | py | Python | raspi/test/bork_dprc.py | lukaschoebel/bed | 4f3619809adab9156e530bfa71c426871749d53b | [
"MIT"
] | null | null | null | raspi/test/bork_dprc.py | lukaschoebel/bed | 4f3619809adab9156e530bfa71c426871749d53b | [
"MIT"
] | 1 | 2020-09-11T13:11:16.000Z | 2020-09-11T13:11:16.000Z | raspi/test/bork_dprc.py | lukaschoebel/bed | 4f3619809adab9156e530bfa71c426871749d53b | [
"MIT"
] | null | null | null | #!/usr/bin/python
import time
import random
import RPi.GPIO as GPIO
import firebase_admin
from firebase_admin import credentials, firestore
cred = credentials.Certificate("secrets/firestore-creds.json")
firebase_admin.initialize_app(cred)
db = firestore.client()
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.set... | 22.888889 | 62 | 0.639159 | 237 | 1,854 | 4.877637 | 0.50211 | 0.024221 | 0.034602 | 0.050173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023965 | 0.257282 | 1,854 | 80 | 63 | 23.175 | 0.815541 | 0.053937 | 0 | 0 | 0 | 0 | 0.099564 | 0.020349 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104167 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
50db4e1da37404b4b48c1ff5cba8f3fb72458aa5 | 538 | py | Python | how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py | faxu/MachineLearningNotebooks | ea1b7599c3e6903873aa152dc5829afa080e885a | [
"MIT"
] | 1 | 2021-01-18T16:19:04.000Z | 2021-01-18T16:19:04.000Z | how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py | faxu/MachineLearningNotebooks | ea1b7599c3e6903873aa152dc5829afa080e885a | [
"MIT"
] | 1 | 2019-03-18T04:33:24.000Z | 2019-03-18T04:33:24.000Z | MachineLearningNotebooks/how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py | raina777/bp-demo | 064848299731d8388c3709b5b809788860b63fc5 | [
"MIT"
] | 2 | 2020-09-07T01:41:49.000Z | 2020-10-01T18:16:28.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
print("*********************************************************")
print("Hello Azure ML!")
try:
from azureml.core import Run
run = Run.get_context()
print("Log Fibonacci numbers.")
run.log_list('Fibonacci nu... | 31.647059 | 79 | 0.524164 | 64 | 538 | 4.375 | 0.75 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028634 | 0.156134 | 538 | 16 | 80 | 33.625 | 0.588106 | 0.165428 | 0 | 0.181818 | 0 | 0 | 0.524664 | 0.255605 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
50e3b3228607ed7e01edb42284e3a1cc6116992e | 2,393 | py | Python | scripts/publisher.py | kavyadevd/Toy_Car_Simulation | 56609f0b1ae6eb0bb9578615a83bab9ae01d6247 | [
"MIT"
] | null | null | null | scripts/publisher.py | kavyadevd/Toy_Car_Simulation | 56609f0b1ae6eb0bb9578615a83bab9ae01d6247 | [
"MIT"
] | null | null | null | scripts/publisher.py | kavyadevd/Toy_Car_Simulation | 56609f0b1ae6eb0bb9578615a83bab9ae01d6247 | [
"MIT"
] | null | null | null | #!/usr/bin/python2
import rospy
from std_msgs.msg import String
from std_msgs.msg import Float64
def pub_sub(left_speed,right_speed):
pub_right = rospy.Publisher('right_speed', Float64, queue_size=10)
pub_left = rospy.Publisher('left_speed', Float64, queue_size=10)
send = "The robot status: %s" % left_speed
rospy... | 30.679487 | 107 | 0.692018 | 338 | 2,393 | 4.66568 | 0.301775 | 0.051363 | 0.060875 | 0.068484 | 0.412175 | 0.268231 | 0.194673 | 0.053266 | 0 | 0 | 0 | 0.028147 | 0.213122 | 2,393 | 77 | 108 | 31.077922 | 0.809347 | 0.178437 | 0 | 0.037037 | 0 | 0 | 0.130769 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.055556 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
50e5a28d8d3dff6cd20e630e0c995cafb0c49a98 | 11,544 | py | Python | bot.py | areapergrimm/therejectbot | 308a948d0f7fb38edbec55fe55aac62016c59bb7 | [
"MIT"
] | null | null | null | bot.py | areapergrimm/therejectbot | 308a948d0f7fb38edbec55fe55aac62016c59bb7 | [
"MIT"
] | null | null | null | bot.py | areapergrimm/therejectbot | 308a948d0f7fb38edbec55fe55aac62016c59bb7 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import random
import codenames
import trrutils
import asyncio
description = "The Reject Bot."
PREFIX = "."
CHANNELNAME = "spam"
bot = commands.Bot(command_prefix=PREFIX, description=description)
TOKEN = open('TOKEN.txt', 'r').read()
PERMLIST = open('PERMLIST.... | 40.083333 | 214 | 0.610707 | 1,380 | 11,544 | 5.087681 | 0.173913 | 0.047856 | 0.062669 | 0.038883 | 0.484689 | 0.452785 | 0.430708 | 0.385273 | 0.381712 | 0.315197 | 0 | 0.004794 | 0.277287 | 11,544 | 287 | 215 | 40.222997 | 0.836749 | 0 | 0 | 0.43295 | 0 | 0.02682 | 0.228569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015326 | false | 0.065134 | 0.022989 | 0 | 0.141762 | 0.015326 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
50f5d881c3d0d561188e06fdce8329c0abb29d96 | 1,537 | py | Python | rampwf/score_types/__init__.py | rth/ramp-workflow | e97a27235a8dbd68111ca6b0c9136ff35cab81f8 | [
"BSD-3-Clause"
] | null | null | null | rampwf/score_types/__init__.py | rth/ramp-workflow | e97a27235a8dbd68111ca6b0c9136ff35cab81f8 | [
"BSD-3-Clause"
] | 1 | 2020-01-18T09:47:03.000Z | 2020-01-20T15:33:11.000Z | rampwf/score_types/__init__.py | rth/ramp-workflow | e97a27235a8dbd68111ca6b0c9136ff35cab81f8 | [
"BSD-3-Clause"
] | null | null | null | from .accuracy import Accuracy
from .balanced_accuracy import BalancedAccuracy
from .base import BaseScoreType
from .brier_score import (
BrierScore, BrierSkillScore, BrierScoreReliability, BrierScoreResolution)
from .clustering_efficiency import ClusteringEfficiency
from .classification_error import Classification... | 28.462963 | 77 | 0.762524 | 130 | 1,537 | 8.869231 | 0.430769 | 0.036427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002322 | 0.159401 | 1,537 | 53 | 78 | 29 | 0.890093 | 0 | 0 | 0 | 0 | 0 | 0.232921 | 0.043591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.365385 | 0 | 0.365385 | 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 |
50fc5d678ce5f53a6ac5266cf971694049a80f34 | 6,799 | py | Python | server/roster_updater/lib/course.py | HeavenFox/coursepad | cd7b1224f563271a2b89817ae4f2eccdc164d46b | [
"Apache-2.0"
] | 33 | 2016-09-30T03:58:01.000Z | 2021-01-09T16:12:25.000Z | server/roster_updater/lib/course.py | HeavenFox/coursepad | cd7b1224f563271a2b89817ae4f2eccdc164d46b | [
"Apache-2.0"
] | 8 | 2017-01-30T23:27:45.000Z | 2022-02-18T05:15:59.000Z | server/roster_updater/lib/course.py | HeavenFox/coursepad | cd7b1224f563271a2b89817ae4f2eccdc164d46b | [
"Apache-2.0"
] | 7 | 2016-09-30T03:59:50.000Z | 2018-10-21T02:17:12.000Z | import re
# crawl roster
faulty_prof = {
'Francis,J)' : 'Francis,J (jdf2)',
'Glathar,E)' : 'Glathar,E',
'Cady,B)' : 'Cady,B'
}
section_types = set()
day_pattern = {
'M': 1,
'T': 1<<1,
'W': 1<<2,
'R': 1<<3,
'F': 1<<4,
'S': 1<<5,
'U': 1<<6
}
def to_bool(s):
return True if ... | 29.820175 | 123 | 0.564348 | 860 | 6,799 | 4.310465 | 0.203488 | 0.040464 | 0.089021 | 0.101969 | 0.338279 | 0.289722 | 0.182358 | 0.149987 | 0.133261 | 0.114378 | 0 | 0.004261 | 0.27504 | 6,799 | 227 | 124 | 29.951542 | 0.747819 | 0.011914 | 0 | 0.279762 | 0 | 0 | 0.141389 | 0.006704 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005952 | null | null | 0.005952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
50ff2d5fa93361a61b58feca15f43ba6967b76f5 | 320 | py | Python | src/cart/migrations/0009_remove_cartitem_user.py | phisyche/rydhubsolutions | 50cd35c9f2f6530bcc19358beb6c91cda5287f4f | [
"MIT"
] | 5 | 2020-09-07T15:30:10.000Z | 2021-01-21T19:25:22.000Z | src/cart/migrations/0009_remove_cartitem_user.py | phisyche/rydhubsolutions | 50cd35c9f2f6530bcc19358beb6c91cda5287f4f | [
"MIT"
] | 21 | 2019-12-04T22:49:42.000Z | 2022-02-12T09:17:42.000Z | src/cart/migrations/0009_remove_cartitem_user.py | phisyche/rydhubsolutions | 50cd35c9f2f6530bcc19358beb6c91cda5287f4f | [
"MIT"
] | 4 | 2020-03-25T05:50:39.000Z | 2021-08-08T20:59:20.000Z | # Generated by Django 2.2.9 on 2020-01-29 16:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cart', '0008_cartitem_user'),
]
operations = [
migrations.RemoveField(
model_name='cartitem',
name='user',
),
]
| 17.777778 | 47 | 0.58125 | 34 | 320 | 5.382353 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085202 | 0.303125 | 320 | 17 | 48 | 18.823529 | 0.735426 | 0.140625 | 0 | 0 | 1 | 0 | 0.124542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0f9934026df2e6f4b91b0975aecdc12c43dbf68d | 6,417 | py | Python | health/models.py | atiro/obesitydata | b0cc0759db03ee07c63b3b254bf04f59aeef965d | [
"BSD-3-Clause"
] | null | null | null | health/models.py | atiro/obesitydata | b0cc0759db03ee07c63b3b254bf04f59aeef965d | [
"BSD-3-Clause"
] | 15 | 2015-07-27T21:43:25.000Z | 2015-07-29T21:34:48.000Z | health/models.py | atiro/obesitydata | b0cc0759db03ee07c63b3b254bf04f59aeef965d | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
class Health(models.Model):
MALE = 'M'
FEMALE = 'F'
ALL = 'A'
GENDER_CHOICES = (
(MALE, 'Male'),
(FEMALE, 'Female'),
(ALL, 'All')
)
class Meta:
abstract = True
class HealthActivity(models.Model):
MALE = 'M'
FEMALE = 'F'
... | 25.164706 | 95 | 0.58532 | 845 | 6,417 | 4.142012 | 0.136095 | 0.025714 | 0.061714 | 0.082286 | 0.573429 | 0.548286 | 0.52 | 0.52 | 0.52 | 0.52 | 0 | 0.079284 | 0.268817 | 6,417 | 254 | 96 | 25.26378 | 0.666667 | 0.011532 | 0 | 0.536585 | 0 | 0 | 0.125256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004878 | 0 | 0.57561 | 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 |
0fb8484d9a2f11e82bc1b0d029f000c6539ffbe4 | 828 | py | Python | venv/Lib/site-packages/captcha/urls.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 3 | 2020-03-16T02:49:59.000Z | 2022-03-21T15:04:44.000Z | venv/Lib/site-packages/captcha/urls.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T08:04:25.000Z | 2020-12-10T08:04:25.000Z | venv/Lib/site-packages/captcha/urls.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 2 | 2020-05-01T08:16:25.000Z | 2020-07-21T00:12:06.000Z | from django.conf.urls import url
from django.urls import path
from captcha import views
# urlpatterns = [
# url(r'image/(?P<key>\w+)/$', views.captcha_image, name='captcha-image', kwargs={'scale': 1}),
# url(r'image/(?P<key>\w+)@2/$', views.captcha_image, name='captcha-image-2x', kwargs={'scale': 2}),
# ur... | 51.75 | 104 | 0.660628 | 118 | 828 | 4.567797 | 0.211864 | 0.178108 | 0.12616 | 0.155844 | 0.693878 | 0.693878 | 0.64193 | 0.345083 | 0.345083 | 0.178108 | 0 | 0.01084 | 0.108696 | 828 | 16 | 105 | 51.75 | 0.719512 | 0.444444 | 0 | 0 | 0 | 0 | 0.288546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0fba0a7eb708f5b3bddbe1370f87cfb260a40450 | 428 | py | Python | users/migrations/0002_auto_20190529_1832.py | VladaDidko/skill- | 861c08376e2bc9b9a5a44e3a8560324ee53ce2d0 | [
"Unlicense"
] | null | null | null | users/migrations/0002_auto_20190529_1832.py | VladaDidko/skill- | 861c08376e2bc9b9a5a44e3a8560324ee53ce2d0 | [
"Unlicense"
] | 18 | 2019-05-28T17:20:34.000Z | 2022-03-11T23:50:12.000Z | users/migrations/0002_auto_20190529_1832.py | VladaDidko/skill- | 861c08376e2bc9b9a5a44e3a8560324ee53ce2d0 | [
"Unlicense"
] | 3 | 2019-05-27T09:51:54.000Z | 2019-12-12T20:35:29.000Z | # Generated by Django 2.2.1 on 2019-05-29 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='gender',
fi... | 22.526316 | 104 | 0.57243 | 47 | 428 | 5.148936 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.271028 | 428 | 18 | 105 | 23.777778 | 0.711538 | 0.10514 | 0 | 0 | 1 | 0 | 0.112861 | 0 | 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 |
0fbe97554004825caf136fddc2974680e7d04552 | 635 | py | Python | order/models/customers.py | fbsamples/cp_reference | 028b384767d06158a64be8cbb1af613e2f3c881e | [
"MIT"
] | 2 | 2021-09-05T04:21:33.000Z | 2021-11-03T20:56:46.000Z | order/models/customers.py | fbsamples/cp_reference | 028b384767d06158a64be8cbb1af613e2f3c881e | [
"MIT"
] | null | null | null | order/models/customers.py | fbsamples/cp_reference | 028b384767d06158a64be8cbb1af613e2f3c881e | [
"MIT"
] | null | null | null | # Copyright 2004-present, Facebook. All Rights Reserved.
from django.db import models
from core.models import BaseModel
class Customer(BaseModel):
"""Represent a single customer instance
fields:
store: the store this customer belongs to
full_name: customer full name
email: customer email
addr... | 27.608696 | 81 | 0.722835 | 84 | 635 | 5.333333 | 0.571429 | 0.071429 | 0.080357 | 0.107143 | 0.120536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019493 | 0.192126 | 635 | 22 | 82 | 28.863636 | 0.853801 | 0.352756 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 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 |
0fc3095b8ef6cc10b6acc06d5aa68037afc74cc5 | 692 | py | Python | greeting/cliente.py | javalisson/Sockets | 90068c0b5a4b2f21ca789177c3c445c671732a86 | [
"MIT"
] | 2 | 2017-04-26T11:17:56.000Z | 2017-12-05T01:55:20.000Z | greeting/cliente.py | javalisson/Sockets | 90068c0b5a4b2f21ca789177c3c445c671732a86 | [
"MIT"
] | 2 | 2017-02-22T12:35:13.000Z | 2017-03-29T12:44:22.000Z | greeting/cliente.py | javalisson/Sockets | 90068c0b5a4b2f21ca789177c3c445c671732a86 | [
"MIT"
] | 24 | 2017-02-22T12:26:04.000Z | 2020-10-13T05:19:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# adaptado de https://wiki.python.org/moin/TcpCommunication
import socket
TCP_IP = '127.0.0.1'
TCP_PORT = 5005
BUFFER_SIZE = 1024
NOME = "Javalisson"
print ("[CLIENTE] Iniciando")
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print ("[CLIENTE] Conectando")
s.c... | 25.62963 | 97 | 0.690751 | 98 | 692 | 4.795918 | 0.571429 | 0.178723 | 0.038298 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028053 | 0.124277 | 692 | 27 | 98 | 25.62963 | 0.747525 | 0.144509 | 0 | 0 | 0 | 0 | 0.462712 | 0.040678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0fc3569e087d76a290fb758960cbd352ee6f27dc | 2,132 | py | Python | blog/migrations/0001_initial.py | jxtxzzw/eoj3 | 468c16ed6de8b9b542972d0e83b02fd2cfa35e4f | [
"MIT"
] | 1 | 2020-11-17T13:08:07.000Z | 2020-11-17T13:08:07.000Z | blog/migrations/0001_initial.py | zerolfx/eoj3 | 156060399d1c3e5f7bcdbf34eaffbe2be66e1b20 | [
"MIT"
] | 2 | 2020-09-23T21:27:55.000Z | 2021-06-25T15:24:46.000Z | blog/migrations/0001_initial.py | zerolfx/eoj3 | 156060399d1c3e5f7bcdbf34eaffbe2be66e1b20 | [
"MIT"
] | 1 | 2019-07-13T00:44:39.000Z | 2019-07-13T00:44:39.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-04-06 16:37
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | 42.64 | 125 | 0.604597 | 224 | 2,132 | 5.571429 | 0.34375 | 0.079327 | 0.05609 | 0.088141 | 0.544872 | 0.520833 | 0.466346 | 0.466346 | 0.466346 | 0.466346 | 0 | 0.015094 | 0.254221 | 2,132 | 49 | 126 | 43.510204 | 0.769811 | 0.031895 | 0 | 0.439024 | 1 | 0 | 0.110141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097561 | 0 | 0.195122 | 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 |
0fc891bc1997dfbe1f1be5e5c5524986e39b1d74 | 5,345 | py | Python | validation_tests/case_studies/merewether/plot_results.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 136 | 2015-05-07T05:47:43.000Z | 2022-02-16T03:07:40.000Z | validation_tests/case_studies/merewether/plot_results.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 184 | 2015-05-03T09:27:54.000Z | 2021-12-20T04:22:48.000Z | validation_tests/case_studies/merewether/plot_results.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 70 | 2015-03-18T07:35:22.000Z | 2021-11-01T07:07:29.000Z | from anuga.utilities import plot_utils as util
from matplotlib import pyplot as pyplot
import numpy
verbose= True
swwfile = 'merewether_1m.sww'
p=util.get_output(swwfile)
p2=util.get_centroids(p)
# Time index at last time
tindex = len(p2.time)-1
if verbose: print('calculating experimental transect')
x_data = ... | 35.397351 | 113 | 0.674088 | 924 | 5,345 | 3.841991 | 0.257576 | 0.015211 | 0.009296 | 0.005634 | 0.280563 | 0.210423 | 0.155493 | 0.140282 | 0.124507 | 0.109859 | 0 | 0.072328 | 0.123106 | 5,345 | 150 | 114 | 35.633333 | 0.685086 | 0.197568 | 0 | 0.139785 | 0 | 0 | 0.147618 | 0.019479 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053763 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0fcc6d24d3d335350d5fc8d0e26b2a5c90342944 | 2,304 | py | Python | myproject/products/views.py | abhishekmorya/django-rest-assignment | 069fedafa2ba92e06157441500cd3f1fecf450e9 | [
"MIT"
] | null | null | null | myproject/products/views.py | abhishekmorya/django-rest-assignment | 069fedafa2ba92e06157441500cd3f1fecf450e9 | [
"MIT"
] | null | null | null | myproject/products/views.py | abhishekmorya/django-rest-assignment | 069fedafa2ba92e06157441500cd3f1fecf450e9 | [
"MIT"
] | null | null | null | from rest_framework import viewsets, filters, mixins
from rest_framework.response import Response
from products import models
from products import serializers
class CategoryApiView(viewsets.ReadOnlyModelViewSet):
"""API View for Category"""
serializer_class = serializers.CategorySerializer
queryset... | 31.135135 | 121 | 0.691406 | 243 | 2,304 | 6.481481 | 0.263374 | 0.062222 | 0.08254 | 0.071111 | 0.490794 | 0.44254 | 0.35619 | 0.35619 | 0.35619 | 0.249524 | 0 | 0.003313 | 0.213976 | 2,304 | 74 | 122 | 31.135135 | 0.866372 | 0.051215 | 0 | 0.434783 | 0 | 0 | 0.035169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.086957 | 0 | 0.586957 | 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 |
0fcd071e5471654de2c169fc870632e566ae5177 | 302 | py | Python | R function.py | haideraheem/Simple-Python-Programs | dc0a71e88adc7323d46e75168e8fd2db97eea775 | [
"CC0-1.0"
] | null | null | null | R function.py | haideraheem/Simple-Python-Programs | dc0a71e88adc7323d46e75168e8fd2db97eea775 | [
"CC0-1.0"
] | null | null | null | R function.py | haideraheem/Simple-Python-Programs | dc0a71e88adc7323d46e75168e8fd2db97eea775 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 6 17:11:11 2018
@author: Haider Raheem
"""
a= float(input("Type a : "))
b= float(input("Type b : "))
c= float(input("Type c : "))
x= (a*b)+(b*c)+(c*a)
y= (a+b+c)
r= x/y
print( )
print("The result of the calculation is {0:.2f}".format(r)) | 20.133333 | 59 | 0.539735 | 56 | 302 | 2.910714 | 0.571429 | 0.184049 | 0.257669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.211921 | 302 | 15 | 59 | 20.133333 | 0.62605 | 0.271523 | 0 | 0 | 0 | 0 | 0.336683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
0fce3a1010ed62a22f3091187ec07f0057d5fa5a | 449 | py | Python | src/selectedtests/app/controllers/health_controller.py | isabella232/selected-tests | 890cd5f39f5571d50f0406b4c25a1a2eef1006a3 | [
"Apache-2.0"
] | 2 | 2020-04-13T11:26:57.000Z | 2022-01-21T00:03:52.000Z | src/selectedtests/app/controllers/health_controller.py | mongodb/selected-tests | 467f71f1d45b06ac3cc5db252f18658f8cd93083 | [
"Apache-2.0"
] | 54 | 2019-09-26T18:56:34.000Z | 2022-03-12T01:07:00.000Z | src/selectedtests/app/controllers/health_controller.py | isabella232/selected-tests | 890cd5f39f5571d50f0406b4c25a1a2eef1006a3 | [
"Apache-2.0"
] | 6 | 2019-10-01T14:24:27.000Z | 2020-02-13T15:53:47.000Z | """Controller for the health endpoints."""
from fastapi import APIRouter
from pydantic import BaseModel
router = APIRouter()
class HealthCheckResponse(BaseModel):
"""Model for health check responses."""
online: bool
@router.get("", response_model=HealthCheckResponse, description="Health check endpoint")
d... | 24.944444 | 88 | 0.74833 | 48 | 449 | 6.979167 | 0.625 | 0.065672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144766 | 449 | 17 | 89 | 26.411765 | 0.872396 | 0.242762 | 0 | 0 | 0 | 0 | 0.064815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0fd0370ba84af5ab763ef6f4203eaefec7cafeb5 | 920 | py | Python | bookorbooks/account/migrations/0008_auto_20210714_1507.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | 1 | 2021-08-10T22:24:17.000Z | 2021-08-10T22:24:17.000Z | bookorbooks/account/migrations/0008_auto_20210714_1507.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | bookorbooks/account/migrations/0008_auto_20210714_1507.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-14 15:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('account', '0007_alter_childlist_child'),
]
operations = [
migrations.Alter... | 35.384615 | 202 | 0.686957 | 107 | 920 | 5.728972 | 0.457944 | 0.052202 | 0.068516 | 0.107667 | 0.50571 | 0.50571 | 0.50571 | 0.50571 | 0.50571 | 0.50571 | 0 | 0.025815 | 0.2 | 920 | 25 | 203 | 36.8 | 0.807065 | 0.048913 | 0 | 0.315789 | 1 | 0 | 0.120275 | 0.029782 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 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 |
0fdab97e2573fd7c25a3583d3b5d334aba1173ee | 1,067 | py | Python | allies/serializers.py | PaulLerner/Allies | 478a85d0b98b4865854b52585563e0e42855b101 | [
"MIT"
] | null | null | null | allies/serializers.py | PaulLerner/Allies | 478a85d0b98b4865854b52585563e0e42855b101 | [
"MIT"
] | null | null | null | allies/serializers.py | PaulLerner/Allies | 478a85d0b98b4865854b52585563e0e42855b101 | [
"MIT"
] | null | null | null | import numpy as np
import pickle
import struct
class Serializer:
def serialize(self, model):
"""
Serialize a model dict to a string of uint8 bytes
:param model: a dict with model components
:return: a np.array of uint8
"""
raise NotImplementedError
def deseria... | 27.358974 | 81 | 0.633552 | 134 | 1,067 | 5.014925 | 0.41791 | 0.053571 | 0.047619 | 0.0625 | 0.202381 | 0.089286 | 0.089286 | 0.089286 | 0 | 0 | 0 | 0.009091 | 0.278351 | 1,067 | 39 | 82 | 27.358974 | 0.863636 | 0.328022 | 0 | 0.352941 | 0 | 0 | 0.009677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.647059 | 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 |
0fdf08782d0c6126eba111656026fe30af178bba | 389 | py | Python | warpworks/views/index.py | storborg/warpworks | a41a0a5bab8b826157309f7d0bafbdcdff66505b | [
"MIT"
] | null | null | null | warpworks/views/index.py | storborg/warpworks | a41a0a5bab8b826157309f7d0bafbdcdff66505b | [
"MIT"
] | null | null | null | warpworks/views/index.py | storborg/warpworks | a41a0a5bab8b826157309f7d0bafbdcdff66505b | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from pyramid.view import view_config
from pyweaving.generators.twill import twill
@view_config(route_name='index', renderer='index.html')
def index_view(request):
draft = twill(2, warp_color=(200, 0, 0), ... | 32.416667 | 69 | 0.722365 | 54 | 389 | 4.925926 | 0.62963 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.167095 | 389 | 11 | 70 | 35.363636 | 0.783951 | 0 | 0 | 0 | 0 | 0 | 0.03856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0fdf761292ed2657c4ca262e9905100c59129c2e | 3,291 | py | Python | linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/cs.py | dproc/trex_odp_porting_integration | 84d5f27a7eab8186b68c5a2b1409d3d0f41f859b | [
"Apache-2.0"
] | null | null | null | linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/cs.py | dproc/trex_odp_porting_integration | 84d5f27a7eab8186b68c5a2b1409d3d0f41f859b | [
"Apache-2.0"
] | null | null | null | linux_odp/.waf-1.6.8-3e3391c5f23fbabad81e6d17c63a1b1e/waflib/Tools/cs.py | dproc/trex_odp_porting_integration | 84d5f27a7eab8186b68c5a2b1409d3d0f41f859b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import sys
if sys.hexversion < 0x020400f0: from sets import Set as set
from waflib import Utils,Task,Options,Logs,Errors
from waflib.TaskGen import before_method,after_method,... | 33.581633 | 102 | 0.726831 | 550 | 3,291 | 4.194545 | 0.316364 | 0.028609 | 0.039012 | 0.022107 | 0.086693 | 0.070655 | 0.070655 | 0.035544 | 0.035544 | 0 | 0 | 0.006325 | 0.087208 | 3,291 | 98 | 103 | 33.581633 | 0.761651 | 0.041629 | 0 | 0.075269 | 1 | 0.010753 | 0.167566 | 0 | 0 | 0 | 0.003174 | 0 | 0 | 1 | 0.075269 | false | 0.010753 | 0.064516 | 0.010753 | 0.236559 | 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 |
0fe195d068b46848f6a4f6f2244542d3be9fe7d3 | 930 | py | Python | tests/test_build.py | polishmatt/swp | e54a8f4ed13a48dd3a385c6d312edd6e4c86724a | [
"MIT"
] | 1 | 2017-02-13T23:09:46.000Z | 2017-02-13T23:09:46.000Z | tests/test_build.py | polishmatt/swp | e54a8f4ed13a48dd3a385c6d312edd6e4c86724a | [
"MIT"
] | 16 | 2016-11-03T02:50:17.000Z | 2017-01-24T04:35:42.000Z | tests/test_build.py | polishmatt/stawp | e54a8f4ed13a48dd3a385c6d312edd6e4c86724a | [
"MIT"
] | null | null | null |
import unittest
import filecmp
from stawp.build import Builder
class TestBuild(unittest.TestCase):
def build_fixture(self, name, description):
dest='/tmp/swp'
source='tests/fixtures/%s/src' % name
builder = Builder(dist=dest, base=source)
builder.interpret()
builder.render... | 34.444444 | 129 | 0.658065 | 117 | 930 | 5.08547 | 0.487179 | 0.080672 | 0.060504 | 0.10084 | 0.090756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001353 | 0.205376 | 930 | 26 | 130 | 35.769231 | 0.803789 | 0 | 0 | 0 | 0 | 0 | 0.233836 | 0.046336 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.210526 | false | 0 | 0.157895 | 0 | 0.421053 | 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 |
0ff3a9bcd7a1323504d7ab075a98f49049806831 | 832 | py | Python | main.py | irahorecka/craigslist-housing-subscription | 389c325dc30526eaed4c2333f5dd4d60d7939a13 | [
"MIT"
] | null | null | null | main.py | irahorecka/craigslist-housing-subscription | 389c325dc30526eaed4c2333f5dd4d60d7939a13 | [
"MIT"
] | null | null | null | main.py | irahorecka/craigslist-housing-subscription | 389c325dc30526eaed4c2333f5dd4d60d7939a13 | [
"MIT"
] | null | null | null | """
Main file to find and send user Craigslist housing posts.
"""
import time
import users
import posts
import mail
def main():
"""Main app to execute subscription based email notifications."""
users_json = users.get_users()
# At start of subscription, drop all content and populate db without sending ema... | 26 | 88 | 0.661058 | 113 | 832 | 4.690265 | 0.522124 | 0.101887 | 0.067925 | 0.064151 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011254 | 0.252404 | 832 | 31 | 89 | 26.83871 | 0.840836 | 0.388221 | 0 | 0.111111 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.222222 | 0 | 0.277778 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0ff6fb1c2b8d1844c202ef54247d1d380ce729a2 | 10,377 | py | Python | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/rest_commands.py | slab14/metron | 52bd310fcce68dad15eead57f1113092a30d9791 | [
"Apache-2.0"
] | 1 | 2017-02-07T03:31:44.000Z | 2017-02-07T03:31:44.000Z | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/rest_commands.py | slab14/metron | 52bd310fcce68dad15eead57f1113092a30d9791 | [
"Apache-2.0"
] | 2 | 2017-06-22T18:03:12.000Z | 2017-06-25T03:51:47.000Z | metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/rest_commands.py | slab14/metron | 52bd310fcce68dad15eead57f1113092a30d9791 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | 40.694118 | 164 | 0.668979 | 1,272 | 10,377 | 5.081761 | 0.194182 | 0.085087 | 0.056931 | 0.040223 | 0.47401 | 0.377166 | 0.358447 | 0.317915 | 0.247215 | 0.247215 | 0 | 0.004233 | 0.248723 | 10,377 | 254 | 165 | 40.854331 | 0.82491 | 0.037776 | 0 | 0.218935 | 0 | 0.011834 | 0.184467 | 0.063039 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011834 | 0.053254 | 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 |
0ff9a9bae36874fc3a41a605b6109b76794154d0 | 991 | py | Python | headerstest.py | mzeinstra/openAnalyser | 859156117948eb15283c348e6f6025cae9352279 | [
"MIT"
] | 1 | 2021-06-28T09:39:43.000Z | 2021-06-28T09:39:43.000Z | headerstest.py | mzeinstra/openAnalyser | 859156117948eb15283c348e6f6025cae9352279 | [
"MIT"
] | null | null | null | headerstest.py | mzeinstra/openAnalyser | 859156117948eb15283c348e6f6025cae9352279 | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
from bs4 import BeautifulSoup
import urllib3
from socket import timeout
import tldextract
import re
import traceback
import sys
import logging
import socket
import threading
from time import sleep
from collector import Collector
from checker import Checker
http = urllib3.PoolManager(... | 30.030303 | 64 | 0.491423 | 99 | 991 | 4.919192 | 0.424242 | 0.073922 | 0.086242 | 0.129363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.083754 | 991 | 33 | 65 | 30.030303 | 0.531938 | 0 | 0 | 0.193548 | 0 | 0 | 0.389113 | 0.332661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.451613 | 0 | 0.451613 | 0.387097 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ffb6d131a75f4d5e786c2e48eaefbaf6ae88520 | 326 | py | Python | app/blog/blog_entries/migrations/0002_remove_article_for_adult.py | Risoko/DRF-Auth-With-Blog-Entries | ba903d1eba1d1f774bfa3782d51d292430d84dbd | [
"MIT"
] | null | null | null | app/blog/blog_entries/migrations/0002_remove_article_for_adult.py | Risoko/DRF-Auth-With-Blog-Entries | ba903d1eba1d1f774bfa3782d51d292430d84dbd | [
"MIT"
] | null | null | null | app/blog/blog_entries/migrations/0002_remove_article_for_adult.py | Risoko/DRF-Auth-With-Blog-Entries | ba903d1eba1d1f774bfa3782d51d292430d84dbd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-01-08 08:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog_entries', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='article',
name='for_adult',
),
... | 18.111111 | 47 | 0.588957 | 35 | 326 | 5.371429 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082969 | 0.297546 | 326 | 17 | 48 | 19.176471 | 0.737991 | 0.138037 | 0 | 0 | 1 | 0 | 0.143369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ffb9c15a6273824c51ed946ffd5452b3519ceb0 | 380 | py | Python | leetcode/easy/rotated-digits.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 8 | 2019-05-14T12:50:29.000Z | 2022-03-01T09:08:27.000Z | leetcode/easy/rotated-digits.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 46 | 2019-03-24T20:59:29.000Z | 2019-04-09T16:28:43.000Z | leetcode/easy/rotated-digits.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 1 | 2022-01-28T12:46:29.000Z | 2022-01-28T12:46:29.000Z | class Solution:
def rotatedDigits(self, N: 'int') -> 'int':
result = 0
for nr in range(1, N + 1):
ok = False
for digit in str(nr):
if digit in '347':
break
if digit in '6952':
ok = True
els... | 21.111111 | 47 | 0.386842 | 41 | 380 | 3.585366 | 0.609756 | 0.142857 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055249 | 0.523684 | 380 | 17 | 48 | 22.352941 | 0.756906 | 0 | 0 | 0 | 0 | 0 | 0.034211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 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 |
0ffecfc820d549bb4fa3335755a6e86a03bd358c | 2,584 | py | Python | src/process_particle_sys.py | faycalki/tainted-paths | 81cecf6c1fba903ec3b8043e22652d222892609d | [
"MIT"
] | 4 | 2019-09-26T21:34:32.000Z | 2021-11-18T19:31:15.000Z | src/process_particle_sys.py | faycalki/tainted-paths | 81cecf6c1fba903ec3b8043e22652d222892609d | [
"MIT"
] | null | null | null | src/process_particle_sys.py | faycalki/tainted-paths | 81cecf6c1fba903ec3b8043e22652d222892609d | [
"MIT"
] | null | null | null | import sys
sys.dont_write_bytecode = True
from module_info import *
from module_particle_systems import *
from process_common import *
# Lav's export_dir tweak
export_dir = '%s/' % export_dir.replace('\\', '/').rstrip('/')
id_pos = 0
flags_pos = 1
mesh_name_pos = 2
num_particles_pos = 3
life_pos = 4
... | 37.449275 | 159 | 0.700464 | 433 | 2,584 | 3.82679 | 0.196305 | 0.07242 | 0.012674 | 0.061557 | 0.258902 | 0.184671 | 0.161738 | 0.067592 | 0 | 0 | 0 | 0.023203 | 0.149381 | 2,584 | 68 | 160 | 38 | 0.730664 | 0.008514 | 0 | 0.1 | 0 | 0 | 0.086719 | 0.009375 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ba050f61eda5b2d821dc6b5f12862b36a4acfe44 | 8,322 | py | Python | src/Tools/CodeGenerator/Plugins/SharedLibraryTestsPluginImpl/ScalarTypeInfos.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 15 | 2019-12-14T07:54:18.000Z | 2021-03-14T14:53:28.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryTestsPluginImpl/ScalarTypeInfos.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 30 | 2019-12-03T20:58:56.000Z | 2020-04-21T23:34:39.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryTestsPluginImpl/ScalarTypeInfos.py | microsoft/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 13 | 2020-01-23T00:18:47.000Z | 2021-10-04T17:46:45.000Z | # ----------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License
# ----------------------------------------------------------------------
"""Contains the scalar type info objects"""
import os
import textwrap
... | 41.819095 | 290 | 0.43403 | 488 | 8,322 | 7.239754 | 0.262295 | 0.224172 | 0.084065 | 0.143221 | 0.084914 | 0.068497 | 0.068497 | 0.043589 | 0.043589 | 0.043589 | 0 | 0.009601 | 0.299087 | 8,322 | 198 | 291 | 42.030303 | 0.596091 | 0.229993 | 0 | 0.219512 | 0 | 0.00813 | 0.11569 | 0.043972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04065 | false | 0 | 0.04065 | 0 | 0.487805 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba07d0c821ac43a4b143f06257b21b47e9c896a7 | 4,061 | py | Python | src/dynamodb_encryption_sdk/materials/__init__.py | ajw-aws/aws-dynamodb-encryption-python | 4374ad5d87c7ea66c249c5f458cac6ff4465d437 | [
"Apache-2.0"
] | null | null | null | src/dynamodb_encryption_sdk/materials/__init__.py | ajw-aws/aws-dynamodb-encryption-python | 4374ad5d87c7ea66c249c5f458cac6ff4465d437 | [
"Apache-2.0"
] | 1 | 2021-03-20T05:42:35.000Z | 2021-03-20T05:42:35.000Z | src/dynamodb_encryption_sdk/materials/__init__.py | gwsu2008/aws-dynamodb-encryption-python | 80465a4b62b1198d519b0ba96da1643eb8af2c9a | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 33.01626 | 102 | 0.690717 | 436 | 4,061 | 6.392202 | 0.334862 | 0.047363 | 0.06028 | 0.06028 | 0.482957 | 0.391819 | 0.346609 | 0.312881 | 0.167923 | 0 | 0 | 0.004469 | 0.228515 | 4,061 | 122 | 103 | 33.286885 | 0.885094 | 0.561931 | 0 | 0.485714 | 0 | 0 | 0.178715 | 0.014726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0.028571 | 0.171429 | 0 | 0.514286 | 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 |
ba0acde2a7dda4e8e83ad9fe76009f222b95e173 | 1,011 | py | Python | binascii_.py | hlovatt/PyBoardTypeshedGenerator | 1d133cab16ea5d558b03175e6fa48b4a23b76136 | [
"MIT"
] | 5 | 2020-07-26T08:48:39.000Z | 2021-09-13T19:19:37.000Z | binascii_.py | hlovatt/PyBoardTypeshedGenerator | 1d133cab16ea5d558b03175e6fa48b4a23b76136 | [
"MIT"
] | null | null | null | binascii_.py | hlovatt/PyBoardTypeshedGenerator | 1d133cab16ea5d558b03175e6fa48b4a23b76136 | [
"MIT"
] | 1 | 2020-11-07T22:37:44.000Z | 2020-11-07T22:37:44.000Z | """
Generate `pyi` from corresponding `rst` docs.
"""
import rst
from rst2pyi import RST2PyI
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "7.2.0" # Version set by https://github.com/hlovatt/tag2ver
def binascii(shed: RST2PyI) -> None:
shed.module(nam... | 27.324324 | 82 | 0.593472 | 124 | 1,011 | 4.540323 | 0.41129 | 0.049734 | 0.071048 | 0.078153 | 0.293073 | 0.222025 | 0.222025 | 0.222025 | 0.222025 | 0.222025 | 0 | 0.02987 | 0.238378 | 1,011 | 36 | 83 | 28.083333 | 0.701299 | 0.094955 | 0 | 0.275862 | 1 | 0 | 0.393605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.103448 | 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 |
ba0f201ff461642700e5183d5d5d537e2f37ac6f | 332,638 | py | Python | kvmagent/kvmagent/plugins/vm_plugin.py | zstackio/zstack-utility | 919d686d46c68836cbcad51ab0b8bf53bc88abda | [
"ECL-2.0",
"Apache-2.0"
] | 55 | 2017-02-10T07:55:21.000Z | 2021-09-01T00:59:36.000Z | kvmagent/kvmagent/plugins/vm_plugin.py | zstackio/zstack-utility | 919d686d46c68836cbcad51ab0b8bf53bc88abda | [
"ECL-2.0",
"Apache-2.0"
] | 106 | 2017-02-13T09:58:27.000Z | 2022-02-15T09:51:48.000Z | kvmagent/kvmagent/plugins/vm_plugin.py | zstackio/zstack-utility | 919d686d46c68836cbcad51ab0b8bf53bc88abda | [
"ECL-2.0",
"Apache-2.0"
] | 68 | 2017-02-13T11:02:01.000Z | 2021-12-16T11:02:01.000Z | '''
@author: Frank
'''
import contextlib
import os.path
import tempfile
import time
import datetime
import traceback
import xml.etree.ElementTree as etree
import re
import platform
import netaddr
import uuid
import shutil
import simplejson
import base64
import uuid
import json
import socket
from signal import SIGKILL
i... | 43.205351 | 382 | 0.575304 | 38,356 | 332,638 | 4.786683 | 0.053864 | 0.007026 | 0.006231 | 0.011111 | 0.561188 | 0.495152 | 0.433534 | 0.39641 | 0.349998 | 0.311686 | 0 | 0.006607 | 0.309246 | 332,638 | 7,698 | 383 | 43.210964 | 0.792441 | 0.03205 | 0 | 0.431725 | 0 | 0.054129 | 0.1431 | 0.015384 | 0 | 0 | 0.000047 | 0.00026 | 0.001472 | 0 | null | null | 0.012101 | 0.008013 | null | null | 0.00278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.