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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da2b0d4562489488864ba4de9fb762d95ecb2356 | 970 | py | Python | tests/functional/test_get_vehicles.py | vyahello/fake-cars-api | 13c7325a7d8779d4b2e5ce60d5664b843c891cb6 | [
"MIT"
] | null | null | null | tests/functional/test_get_vehicles.py | vyahello/fake-cars-api | 13c7325a7d8779d4b2e5ce60d5664b843c891cb6 | [
"MIT"
] | 3 | 2019-11-22T20:56:17.000Z | 2021-09-15T08:18:30.000Z | tests/functional/test_get_vehicles.py | vyahello/fake-vehicles-api | 13c7325a7d8779d4b2e5ce60d5664b843c891cb6 | [
"MIT"
] | null | null | null | import requests
import pytest
from apistar import TestClient
from api.web.support import Status
from tests.markers import smoke
@pytest.fixture(scope="module")
def response(client: TestClient) -> requests.Response:
return client.get("/api")
@smoke
def test_get_vehicles_status(response: requests.Response) -> Non... | 23.095238 | 66 | 0.697938 | 121 | 970 | 5.454545 | 0.404959 | 0.145455 | 0.090909 | 0.212121 | 0.306061 | 0.20303 | 0.139394 | 0 | 0 | 0 | 0 | 0.029814 | 0.170103 | 970 | 41 | 67 | 23.658537 | 0.790062 | 0 | 0 | 0.172414 | 0 | 0 | 0.068041 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.206897 | false | 0 | 0.172414 | 0.034483 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
da357111c28536ab8eed4063bcc9a095711453cc | 747 | py | Python | rosalindLibrary/programs/fib.py | aevear/RosalindProject | 494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2 | [
"MIT"
] | 1 | 2021-01-20T02:00:21.000Z | 2021-01-20T02:00:21.000Z | rosalindLibrary/programs/fib.py | aevear/RosalindProject | 494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2 | [
"MIT"
] | null | null | null | rosalindLibrary/programs/fib.py | aevear/RosalindProject | 494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# mrna
#-------------------------------------------------------------------------------
def runFib(inputFile):
fi = open(inputFile, 'r') #reads in the file that list the before/after file names
inputData = fi.readline().split() #r... | 32.478261 | 86 | 0.342704 | 58 | 747 | 4.413793 | 0.586207 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008039 | 0.167336 | 747 | 22 | 87 | 33.954545 | 0.403537 | 0.527443 | 0 | 0 | 0 | 0 | 0.002899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
da3c8d5401dfee9fd9d89f39c39af9a102ae502a | 2,446 | py | Python | tester-webserv/PythonTester/src/testcase_generation/Response/media_type.py | aprilmayjune135/42_web_server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2022-01-04T13:07:46.000Z | 2022-01-04T13:08:50.000Z | tester-webserv/PythonTester/src/testcase_generation/Response/media_type.py | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 3 | 2021-09-27T08:35:34.000Z | 2021-11-25T09:49:52.000Z | tester-webserv/PythonTester/src/testcase_generation/Response/media_type.py | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2021-11-17T20:26:55.000Z | 2021-12-22T21:54:24.000Z | import TestCase
from testcase_generation.Response.default import defaultTestCase
import Constants
def defaultMediaTypeTestCase():
testcase = defaultTestCase()
# Request
testcase.request.method = 'GET'
# Response
testcase.response.status_code = 200
testcase.response.expect_body = True
return testcase
def testC... | 38.825397 | 79 | 0.766149 | 292 | 2,446 | 6.356164 | 0.178082 | 0.189655 | 0.123922 | 0.161638 | 0.802263 | 0.640086 | 0.557112 | 0.557112 | 0.427802 | 0.427802 | 0 | 0.001807 | 0.094849 | 2,446 | 62 | 80 | 39.451613 | 0.836495 | 0.006541 | 0 | 0.425926 | 0 | 0 | 0.215492 | 0.10342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 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 | 2 |
da3f1f4cde5731fedeac0f7e5d94ec5f66cd184a | 158 | py | Python | hackerrank/Python/Min and Max/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Python/Min and Max/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Python/Min and Max/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import numpy
n, m = map(int, input().split())
a = numpy.array([input().split() for _ in range(n)], dtype=int)
print(numpy.max(numpy.min(a, axis=1), axis=0))
| 26.333333 | 63 | 0.64557 | 29 | 158 | 3.482759 | 0.689655 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.120253 | 158 | 5 | 64 | 31.6 | 0.71223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
da466d1a320ccba5632829b19d644b45e51663c0 | 314 | py | Python | util/data_type_util.py | Chandru01061997/pythonDB | fc164bdc921fd42af316f034433fbc27bacfd24c | [
"Apache-2.0"
] | 409 | 2020-07-01T14:10:50.000Z | 2022-02-25T03:10:26.000Z | util/data_type_util.py | Chandru01061997/pythonDB | fc164bdc921fd42af316f034433fbc27bacfd24c | [
"Apache-2.0"
] | 14 | 2020-07-03T23:09:49.000Z | 2020-10-07T12:37:12.000Z | util/data_type_util.py | Chandru01061997/pythonDB | fc164bdc921fd42af316f034433fbc27bacfd24c | [
"Apache-2.0"
] | 303 | 2020-07-01T14:08:53.000Z | 2022-03-08T17:59:34.000Z | from uuid import UUID
from datetime import datetime
def uuid_from_string(string):
return UUID('{s}'.format(s=string))
def format_timestamp(string):
if isinstance(string, str):
return datetime.strptime(string, '%Y-%m-%dT%H:%M:%S.%fZ')
if isinstance(string, datetime):
return string
| 20.933333 | 65 | 0.681529 | 44 | 314 | 4.795455 | 0.431818 | 0.075829 | 0.170616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184713 | 314 | 14 | 66 | 22.428571 | 0.824219 | 0 | 0 | 0 | 0 | 0 | 0.076433 | 0.066879 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
da4ed74782f85b5d5a5f393709c19e30745e1f4b | 1,259 | py | Python | theoneapi_sdk/movie/movie.py | eliram/LotR-Eliram-SDK | b3ae064367d30d4d2ef6ec503125e3aa5106b0d7 | [
"Apache-2.0"
] | null | null | null | theoneapi_sdk/movie/movie.py | eliram/LotR-Eliram-SDK | b3ae064367d30d4d2ef6ec503125e3aa5106b0d7 | [
"Apache-2.0"
] | null | null | null | theoneapi_sdk/movie/movie.py | eliram/LotR-Eliram-SDK | b3ae064367d30d4d2ef6ec503125e3aa5106b0d7 | [
"Apache-2.0"
] | null | null | null | """Handle the movie endpoint."""
from typing import TYPE_CHECKING, List
from theoneapi_sdk.movie.movie_dataclass import MovieData, MovieList
from theoneapi_sdk.quote.quote_dataclass import QuotesList
if TYPE_CHECKING:
from theoneapi_sdk.request_handler import RequestHandler
from theoneapi_sdk.filter import Fil... | 40.612903 | 133 | 0.675139 | 162 | 1,259 | 5.055556 | 0.271605 | 0.119658 | 0.10989 | 0.076923 | 0.350427 | 0.311355 | 0.278388 | 0.185592 | 0.102564 | 0.102564 | 0 | 0.008772 | 0.185068 | 1,259 | 30 | 134 | 41.966667 | 0.789474 | 0.123114 | 0 | 0 | 0 | 0 | 0.133581 | 0.073284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.333333 | 0 | 0.866667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
da5b39150b74efcfc4f695de69dc90531942a1d9 | 360 | py | Python | app/__init__.py | simplg/Object-Detection-Flask-TF-VanillaJS | 0ab9b341b998fd49f277af742aa62b60fdf86735 | [
"MIT"
] | null | null | null | app/__init__.py | simplg/Object-Detection-Flask-TF-VanillaJS | 0ab9b341b998fd49f277af742aa62b60fdf86735 | [
"MIT"
] | null | null | null | app/__init__.py | simplg/Object-Detection-Flask-TF-VanillaJS | 0ab9b341b998fd49f277af742aa62b60fdf86735 | [
"MIT"
] | null | null | null | from flask import Flask
from app.services import model_manager
from app.controllers.api_blueprint import api_router
from app.controllers.main_blueprint import main_router
def create_app(test_config=None):
app = Flask(__name__)
model_manager.init_app(app)
app.register_blueprint(api_router)
app.registe... | 25.714286 | 54 | 0.805556 | 52 | 360 | 5.25 | 0.403846 | 0.076923 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136111 | 360 | 14 | 55 | 25.714286 | 0.877814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
da70807eb2e1dbd92d65c49dd5a4de5681a83229 | 1,161 | py | Python | routes/web.py | erikwestlund/zuhanden | 635004bc310235d10379c2811e42f121da14845f | [
"MIT"
] | 3 | 2019-10-30T18:31:23.000Z | 2020-03-11T05:00:44.000Z | routes/web.py | erikwestlund/zuhanden | 635004bc310235d10379c2811e42f121da14845f | [
"MIT"
] | 6 | 2021-03-09T21:14:05.000Z | 2022-02-26T19:24:45.000Z | routes/web.py | erikwestlund/zuhanden | 635004bc310235d10379c2811e42f121da14845f | [
"MIT"
] | null | null | null | """Web Routes."""
from masonite.routes import Get, Post
ROUTES = [Get("/", "IndexController@show").name("index")]
ROUTES = ROUTES + [
Get().route("/users/sign-in", "SignInController@show").name("sign_in"),
Post().route("/users/sign-in", "SignInController@sign_in"),
Get().route("/users/sign-out", "SignInC... | 40.034483 | 87 | 0.667528 | 129 | 1,161 | 5.930233 | 0.263566 | 0.156863 | 0.135948 | 0.120261 | 0.50719 | 0.120261 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11714 | 1,161 | 28 | 88 | 41.464286 | 0.746341 | 0.009475 | 0 | 0.125 | 0 | 0 | 0.564685 | 0.413462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.041667 | 0 | 0.041667 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e511c6ab80ef1771a595dc11f1c4f7c408d02fd1 | 847 | py | Python | code/api/Monitor/newUser_backend.py | RandyCamacho/SeniorDesign-HomeCU | f862c453b0454838d662688fba88e95412d0229e | [
"MIT"
] | null | null | null | code/api/Monitor/newUser_backend.py | RandyCamacho/SeniorDesign-HomeCU | f862c453b0454838d662688fba88e95412d0229e | [
"MIT"
] | null | null | null | code/api/Monitor/newUser_backend.py | RandyCamacho/SeniorDesign-HomeCU | f862c453b0454838d662688fba88e95412d0229e | [
"MIT"
] | null | null | null | from django.contrib.auth.backends import BaseBackend
from django.contrib.auth.hashers import check_password
from .models import BsuOfficeusers
class newUserBackend(BaseBackend):
def checkusername(self, username=None):
try:
user = BsuOfficeusers.objects.get(user_name=username)
return 1
except BsuOfficeusers... | 26.46875 | 78 | 0.779221 | 101 | 847 | 6.49505 | 0.346535 | 0.042683 | 0.059451 | 0.064024 | 0.448171 | 0.448171 | 0.204268 | 0.204268 | 0.204268 | 0.204268 | 0 | 0.001362 | 0.133412 | 847 | 31 | 79 | 27.322581 | 0.892371 | 0 | 0 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.2 | 0.12 | 0 | 0.52 | 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 | 1 | 0 | 0 | 2 |
e516dc00b8ae9fe3e8b9e99903e96f46b24dbaf6 | 189 | py | Python | par ou impar.py | Azultropico/exercicios_python | 02dc118d0330673a0d961b8ff48eb0acd1e81aea | [
"Apache-2.0"
] | null | null | null | par ou impar.py | Azultropico/exercicios_python | 02dc118d0330673a0d961b8ff48eb0acd1e81aea | [
"Apache-2.0"
] | null | null | null | par ou impar.py | Azultropico/exercicios_python | 02dc118d0330673a0d961b8ff48eb0acd1e81aea | [
"Apache-2.0"
] | null | null | null | n1 = int(input("Digite um número: "))
if __name__ == '__main__':
if n1 % 2 == 0:
print("Número Par")
elif n1 % 2 == 1:
print("Número Ímpar")
else:
print("Valor Inválido") | 21 | 37 | 0.571429 | 27 | 189 | 3.703704 | 0.703704 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0.248677 | 189 | 9 | 38 | 21 | 0.65493 | 0 | 0 | 0 | 0 | 0 | 0.326316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e523fccfcc84e837a16106964d13dc172e1fbf92 | 205 | py | Python | maps/bboxes.py | CharlesRethman/HEA-Baselines-ZA-2015-Oct | e8689576a8ec682af3f7714d7bfb3609eadbff19 | [
"MIT"
] | null | null | null | maps/bboxes.py | CharlesRethman/HEA-Baselines-ZA-2015-Oct | e8689576a8ec682af3f7714d7bfb3609eadbff19 | [
"MIT"
] | null | null | null | maps/bboxes.py | CharlesRethman/HEA-Baselines-ZA-2015-Oct | e8689576a8ec682af3f7714d7bfb3609eadbff19 | [
"MIT"
] | null | null | null | l = iface.activeLayer()
iter = l.getFeatures()
geoms = []
for feature in iter:
geom = feature.geometry()
if not(geom.isMultipart()):
l.boundingBox(feature.id())
geoms.append(geom)
| 22.777778 | 35 | 0.629268 | 25 | 205 | 5.16 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 205 | 9 | 36 | 22.777778 | 0.80625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e52a791dd7cf06539d84f8c0ef6bb28561fd022f | 2,417 | py | Python | lib/sysusage.py | Tormir/Beats | b1556c762725a50ac7a5acc9b993bc344bd669b3 | [
"Apache-2.0"
] | null | null | null | lib/sysusage.py | Tormir/Beats | b1556c762725a50ac7a5acc9b993bc344bd669b3 | [
"Apache-2.0"
] | null | null | null | lib/sysusage.py | Tormir/Beats | b1556c762725a50ac7a5acc9b993bc344bd669b3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3.6
import os, subprocess, json, argparse
def Parser():
parser = argparse.ArgumentParser(description='Process metrix from system')
parser.add_argument('-C', metavar='Command', type=str, help='Command which process started, delimiter is ":::", e.g. command:command', required=True)
return p... | 60.425 | 157 | 0.386016 | 213 | 2,417 | 4.333333 | 0.43662 | 0.126761 | 0.183099 | 0.253521 | 0.429036 | 0.403034 | 0.403034 | 0.078007 | 0.078007 | 0 | 0 | 0.012373 | 0.431527 | 2,417 | 39 | 158 | 61.974359 | 0.659389 | 0.007861 | 0 | 0 | 0 | 0 | 0.107217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.032258 | 0.032258 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e53ffa8559a6302d0825134979cfdab0f28e4630 | 477 | py | Python | backend/examples/admin.py | daobook/doccano | 45122687740f74f19e2578c5cf28507f0839bf16 | [
"MIT"
] | 2 | 2021-12-11T22:25:27.000Z | 2021-12-20T01:02:16.000Z | backend/examples/admin.py | daobook/doccano | 45122687740f74f19e2578c5cf28507f0839bf16 | [
"MIT"
] | 1 | 2022-02-15T10:50:18.000Z | 2022-02-15T10:50:18.000Z | backend/examples/admin.py | daobook/doccano | 45122687740f74f19e2578c5cf28507f0839bf16 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Example, Comment
class ExampleAdmin(admin.ModelAdmin):
list_display = ('text', 'project', 'meta')
ordering = ('project',)
search_fields = ('text',)
class CommentAdmin(admin.ModelAdmin):
list_display = ('user', 'example', 'text', 'created_at', )
... | 23.85 | 62 | 0.689727 | 52 | 477 | 6.211538 | 0.480769 | 0.105263 | 0.117647 | 0.160991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155136 | 477 | 19 | 63 | 25.105263 | 0.801489 | 0 | 0 | 0 | 0 | 0 | 0.144654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e54c28e31b4b4c56e93933ccf0dd21e1a1a1a372 | 815 | py | Python | tartiflette/language/ast/base.py | remorses/tartiflette-whl | 92bed13de130a7a88278d7019314135e01281259 | [
"MIT"
] | 530 | 2019-06-04T11:45:36.000Z | 2022-03-31T09:29:56.000Z | tartiflette/language/ast/base.py | remorses/tartiflette-whl | 92bed13de130a7a88278d7019314135e01281259 | [
"MIT"
] | 242 | 2019-06-04T11:53:08.000Z | 2022-03-28T07:06:27.000Z | tartiflette/language/ast/base.py | remorses/tartiflette-whl | 92bed13de130a7a88278d7019314135e01281259 | [
"MIT"
] | 36 | 2019-06-21T06:40:27.000Z | 2021-11-04T13:11:16.000Z | __all__ = (
"Node",
"DefinitionNode",
"ExecutableDefinitionNode",
"TypeSystemDefinitionNode",
"TypeSystemExtensionNode",
"TypeDefinitionNode",
"TypeExtensionNode",
"SelectionNode",
"ValueNode",
"TypeNode",
)
class Node:
__slots__ = ()
class DefinitionNode(Node):
__slo... | 15.377358 | 51 | 0.687117 | 50 | 815 | 10.32 | 0.26 | 0.174419 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201227 | 815 | 52 | 52 | 15.673077 | 0.792627 | 0 | 0 | 0.3125 | 0 | 0 | 0.188957 | 0.087117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
e55b00333f1d03a1830681b90bdf11aebe0e4245 | 6,286 | py | Python | energenie/Handlers/__init__.py | klattimer/pyenergenie | 1677bd2ac2bda9d0cd6960b5fb537a2d097eda4e | [
"MIT"
] | null | null | null | energenie/Handlers/__init__.py | klattimer/pyenergenie | 1677bd2ac2bda9d0cd6960b5fb537a2d097eda4e | [
"MIT"
] | 15 | 2020-03-22T13:55:00.000Z | 2021-12-14T09:07:56.000Z | energenie/Handlers/__init__.py | klattimer/pyenergenie | 1677bd2ac2bda9d0cd6960b5fb537a2d097eda4e | [
"MIT"
] | null | null | null | import os
import importlib, inspect
import logging
from ..Config import Config
class Handler:
_protocol = None
_description = None
_args = {}
@classmethod
def describe(cls):
return {
'protocol': cls.protocol,
'description': cls.description,
'args': cls.... | 28.834862 | 99 | 0.579542 | 680 | 6,286 | 5.167647 | 0.161765 | 0.064883 | 0.047809 | 0.047809 | 0.371372 | 0.282869 | 0.246443 | 0.227092 | 0.206033 | 0.206033 | 0 | 0 | 0.318804 | 6,286 | 217 | 100 | 28.967742 | 0.820645 | 0.017022 | 0 | 0.369697 | 0 | 0 | 0.043105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0.054545 | 0.036364 | 0.036364 | 0.357576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e56f721835eeb1c014f7eed61ff0b3aab278b97d | 2,313 | py | Python | src/controllers/search.py | bcartwri96/sermon-skeleton | 0f32e6f7acd5d2d82367b098d97d70a26e42a0fc | [
"MIT"
] | 1 | 2019-01-21T03:11:14.000Z | 2019-01-21T03:11:14.000Z | src/controllers/search.py | bcartwri96/sermon-skeleton | 0f32e6f7acd5d2d82367b098d97d70a26e42a0fc | [
"MIT"
] | 29 | 2019-01-21T05:48:09.000Z | 2022-03-11T23:45:01.000Z | src/controllers/search.py | bcartwri96/sermon-skeleton | 0f32e6f7acd5d2d82367b098d97d70a26e42a0fc | [
"MIT"
] | null | null | null | # page designed for the search implementation, to be cleaned up in
# the future!
import src.models.models as ml
import src.scripts.index as scripts
from sqlalchemy import and_, or_
def search_master(query, author, book_bible, series):
# naive search. check and rank the match as it
# appears to relate to title... | 38.55 | 93 | 0.651967 | 322 | 2,313 | 4.546584 | 0.164596 | 0.153689 | 0.065574 | 0.092896 | 0.756148 | 0.724044 | 0.724044 | 0.604508 | 0.547131 | 0.547131 | 0 | 0 | 0.206658 | 2,313 | 59 | 94 | 39.20339 | 0.79782 | 0.064419 | 0 | 0.418605 | 0 | 0 | 0.004632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
e5726f32898dbebcb3904086e7f5f0ccc32ada7c | 14,414 | py | Python | grand_tour.py | reedessick/pointy-Poisson | 376fd6054ccac19ac9945c9299dc1a45ecd46fb9 | [
"MIT"
] | null | null | null | grand_tour.py | reedessick/pointy-Poisson | 376fd6054ccac19ac9945c9299dc1a45ecd46fb9 | [
"MIT"
] | null | null | null | grand_tour.py | reedessick/pointy-Poisson | 376fd6054ccac19ac9945c9299dc1a45ecd46fb9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
usage = """grand_tour.py [--options] gps gps gps..."""
description="""a script that generates a pointed follow-up of possible auxiliary couplings, sweeping through a variety of windows and snr thresholds"""
import numpy as np
from laldetchar.idq import idq
from laldetchar.idq import event
import g... | 39.275204 | 211 | 0.55349 | 1,677 | 14,414 | 4.707215 | 0.195587 | 0.025336 | 0.027869 | 0.043324 | 0.46643 | 0.385989 | 0.374462 | 0.357487 | 0.327591 | 0.299975 | 0 | 0.005275 | 0.263494 | 14,414 | 366 | 212 | 39.382514 | 0.73832 | 0.124948 | 0 | 0.277533 | 1 | 0.017621 | 0.184001 | 0.006123 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039648 | null | null | 0.114537 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e575c012f08e5a8055664cc644ae83131842c8cb | 2,142 | py | Python | cea/technologies/thermal_storage.py | VMarty/CityEnergyAnalyst | 5ab4385fc008f3b23f5bd5f9ba683d401cfcef38 | [
"MIT"
] | 1 | 2018-08-16T14:34:23.000Z | 2018-08-16T14:34:23.000Z | cea/technologies/thermal_storage.py | VMarty/CityEnergyAnalyst | 5ab4385fc008f3b23f5bd5f9ba683d401cfcef38 | [
"MIT"
] | null | null | null | cea/technologies/thermal_storage.py | VMarty/CityEnergyAnalyst | 5ab4385fc008f3b23f5bd5f9ba683d401cfcef38 | [
"MIT"
] | null | null | null | """
thermal storage
"""
from __future__ import division
import pandas as pd
from math import log
__author__ = "Thuy-An Nguyen"
__copyright__ = "Copyright 2015, Architecture and Building Systems - ETH Zurich"
__credits__ = ["Thuy-An Nguyen", "Tim Vollrath", "Jimeno A. Fonseca"]
__license__ = "MIT"
__version__ = "0.1"
... | 34.548387 | 117 | 0.668067 | 324 | 2,142 | 4 | 0.37037 | 0.152778 | 0.208333 | 0.131944 | 0.274691 | 0.147377 | 0.112654 | 0.112654 | 0.069444 | 0 | 0 | 0.023339 | 0.219888 | 2,142 | 61 | 118 | 35.114754 | 0.752244 | 0.19141 | 0 | 0 | 0 | 0 | 0.128175 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e577e51b7533e7208a1d0b836b3eb5c9b542e2cf | 275 | py | Python | authors/apps/articles/migrations/0015_merge_20190122_1103.py | andela/Ah-backend-guardians | cc84c18f7c222bc69cf4a263a1c2296b6d335c8b | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/migrations/0015_merge_20190122_1103.py | andela/Ah-backend-guardians | cc84c18f7c222bc69cf4a263a1c2296b6d335c8b | [
"BSD-3-Clause"
] | 32 | 2019-01-09T07:52:32.000Z | 2022-01-13T01:01:55.000Z | authors/apps/articles/migrations/0015_merge_20190122_1103.py | andela/Ah-backend-guardians | cc84c18f7c222bc69cf4a263a1c2296b6d335c8b | [
"BSD-3-Clause"
] | 3 | 2019-01-03T12:05:53.000Z | 2019-09-24T11:41:14.000Z | # Generated by Django 2.1.5 on 2019-01-22 11:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('articles', '0012_auto_20190122_0826'),
('articles', '0014_auto_20190121_1631'),
]
operations = [
]
| 18.333333 | 48 | 0.650909 | 33 | 275 | 5.242424 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221698 | 0.229091 | 275 | 14 | 49 | 19.642857 | 0.59434 | 0.163636 | 0 | 0 | 1 | 0 | 0.27193 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e57e90edde840704d0ec943f37c0d9761a6a388d | 2,289 | py | Python | testcube_client/utils.py | tobyqin/testcube-client | be0fdf7436a527b4ad786f1b158f121f5d1b251e | [
"MIT"
] | 1 | 2017-07-25T14:05:16.000Z | 2017-07-25T14:05:16.000Z | testcube_client/utils.py | tobyqin/testcube-client | be0fdf7436a527b4ad786f1b158f121f5d1b251e | [
"MIT"
] | 17 | 2018-06-25T01:43:48.000Z | 2018-11-15T13:21:53.000Z | testcube_client/utils.py | tobyqin/testcube-client | be0fdf7436a527b4ad786f1b158f121f5d1b251e | [
"MIT"
] | 1 | 2020-05-11T09:07:08.000Z | 2020-05-11T09:07:08.000Z | import json
import logging
from os import environ
from os.path import basename, getsize, getmtime, splitext, exists
import arrow
from .settings import config
def env_to_json():
"""convert current env variables to json text."""
return json.dumps(dict(environ))
def get_default_run_name():
"""try to get ... | 27.25 | 88 | 0.63128 | 313 | 2,289 | 4.434505 | 0.325879 | 0.057637 | 0.011527 | 0.01585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010468 | 0.207077 | 2,289 | 83 | 89 | 27.578313 | 0.75427 | 0.13543 | 0 | 0.042553 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0 | 0.12766 | 0 | 0.638298 | 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 | 1 | 0 | 0 | 2 |
e580d01d3aa8a72e3c26bf42ef6e06a1887e8fa9 | 4,584 | py | Python | game.py | INE-UFSC/jogo-da-forca-grupo-2-2021-2-1 | ed14d6705128c43c253464a209e67fcdd7fb4dfe | [
"MIT"
] | 1 | 2021-11-09T17:46:22.000Z | 2021-11-09T17:46:22.000Z | game.py | INE-UFSC/jogo-da-forca-grupo-2-2021-2-1 | ed14d6705128c43c253464a209e67fcdd7fb4dfe | [
"MIT"
] | null | null | null | game.py | INE-UFSC/jogo-da-forca-grupo-2-2021-2-1 | ed14d6705128c43c253464a209e67fcdd7fb4dfe | [
"MIT"
] | 2 | 2021-11-01T15:08:52.000Z | 2021-11-01T16:19:53.000Z | import os
def _verify_endgame(word, check_word_in_used_letters, num_lifes):
word_only_alpha = [c.lower() for c in word if c.isalpha()]
if check_word_in_used_letters == len(word_only_alpha):
print('> Parabéns você venceu')
return True
if num_lifes == 0:
print('> Acabaram suas chanc... | 32.510638 | 78 | 0.378272 | 389 | 4,584 | 4.118252 | 0.246787 | 0.174782 | 0.131086 | 0.06367 | 0.458802 | 0.374532 | 0.348939 | 0.308989 | 0.268414 | 0.268414 | 0 | 0.005864 | 0.516361 | 4,584 | 140 | 79 | 32.742857 | 0.716734 | 0.030541 | 0 | 0.5625 | 0 | 0 | 0.349324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.008929 | 0 | 0.080357 | 0.598214 | 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 | 1 | 0 | 2 |
e5911b5f19f89ac5924d1aa8f1aebc4e4604c187 | 57 | py | Python | pytest_monitor/__init__.py | ErnestinaQiu/pytest-monitor | 8e0fe5291acd94d301a66c75977d030f7ec135a7 | [
"MIT"
] | null | null | null | pytest_monitor/__init__.py | ErnestinaQiu/pytest-monitor | 8e0fe5291acd94d301a66c75977d030f7ec135a7 | [
"MIT"
] | null | null | null | pytest_monitor/__init__.py | ErnestinaQiu/pytest-monitor | 8e0fe5291acd94d301a66c75977d030f7ec135a7 | [
"MIT"
] | null | null | null | __version__ = "1.6.3"
__author__ = "Jean-Sebastien Dieu"
| 19 | 34 | 0.719298 | 8 | 57 | 4.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.122807 | 57 | 2 | 35 | 28.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e5b8e22d994c4f8741461972d6a0873b7bd9c9db | 9,962 | py | Python | test/cluster/keytar/keytar.py | llhhbc/vitess | 413af7abeec2ef15f8099809de46d8d429fbf193 | [
"Apache-2.0"
] | 15 | 2018-04-26T07:39:29.000Z | 2020-07-05T03:14:19.000Z | test/cluster/keytar/keytar.py | llhhbc/vitess | 413af7abeec2ef15f8099809de46d8d429fbf193 | [
"Apache-2.0"
] | 21 | 2017-08-04T19:21:09.000Z | 2020-08-06T21:08:12.000Z | test/cluster/keytar/keytar.py | llhhbc/vitess | 413af7abeec2ef15f8099809de46d8d429fbf193 | [
"Apache-2.0"
] | 4 | 2018-04-26T07:26:00.000Z | 2018-06-28T13:27:52.000Z | #!/usr/bin/env python
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 31.625397 | 80 | 0.709797 | 1,356 | 9,962 | 5.066372 | 0.275811 | 0.027948 | 0.0131 | 0.01179 | 0.050655 | 0.023581 | 0.023581 | 0.012809 | 0 | 0 | 0 | 0.003279 | 0.173459 | 9,962 | 314 | 81 | 31.726115 | 0.831066 | 0.133808 | 0 | 0.044944 | 0 | 0 | 0.195724 | 0.01478 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05618 | 0.073034 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e5b90a3554ab06af73ddd302f4a2c603dc55c402 | 894 | py | Python | pytedee/pytedee/example.py | konradsikorski/pytedee | 02b7a39b46af3887e933c3d4454d0986a5277bbb | [
"MIT"
] | 4 | 2021-01-05T23:39:07.000Z | 2021-11-18T12:51:50.000Z | pytedee/pytedee/example.py | konradsikorski/pytedee | 02b7a39b46af3887e933c3d4454d0986a5277bbb | [
"MIT"
] | 3 | 2020-11-28T14:02:32.000Z | 2022-02-02T22:08:37.000Z | pytedee/pytedee/example.py | konradsikorski/pytedee | 02b7a39b46af3887e933c3d4454d0986a5277bbb | [
"MIT"
] | 7 | 2020-11-25T21:22:14.000Z | 2022-03-31T19:52:14.000Z | '''
Created on 01.11.2020
@author: joerg
'''
import time
from pytedee.TedeeClient import TedeeClient
from pytedee.Lock import Lock
from pytedee.TedeeClientException import TedeeClientException
'''Tedee Credentials'''
username = "username"
password = "password"
client = TedeeClient(username, password)
print ("Token: ... | 29.8 | 67 | 0.657718 | 113 | 894 | 5.061947 | 0.353982 | 0.085664 | 0.078671 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011688 | 0.138702 | 894 | 29 | 68 | 30.827586 | 0.731169 | 0.130872 | 0 | 0 | 0 | 0 | 0.188172 | 0.061828 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.222222 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
e5c7c4046de95a16522016b26af1724d48486862 | 3,498 | py | Python | backend_app/users/models.py | shakil2995/IUB-Help-Desk-System | 2bf6deb1dbd4f84c784894f69db4dfa971fb65dd | [
"Apache-2.0"
] | 1 | 2021-11-17T14:03:42.000Z | 2021-11-17T14:03:42.000Z | backend_app/users/models.py | shakil2995/IUB-Help-Desk-System | 2bf6deb1dbd4f84c784894f69db4dfa971fb65dd | [
"Apache-2.0"
] | null | null | null | backend_app/users/models.py | shakil2995/IUB-Help-Desk-System | 2bf6deb1dbd4f84c784894f69db4dfa971fb65dd | [
"Apache-2.0"
] | null | null | null | import uuid
from django.db import models
from django.contrib.auth.base_user import BaseUserManager
from django.contrib.auth.models import AbstractBaseUser
from django.utils import timezone
from .modelchioce import PRIORITY_CHOICE, RESOLVE_CHOICE, USER_TYPE_CHOICE
today = timezone.now
class CustomUserManager(BaseUse... | 37.212766 | 124 | 0.731561 | 434 | 3,498 | 5.686636 | 0.274194 | 0.03282 | 0.074554 | 0.08752 | 0.39222 | 0.305511 | 0.289303 | 0.198541 | 0.198541 | 0.198541 | 0 | 0.008947 | 0.16924 | 3,498 | 93 | 125 | 37.612903 | 0.84033 | 0.090337 | 0 | 0.205882 | 0 | 0 | 0.030246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.073529 | 0.088235 | 0.058824 | 0.764706 | 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 | 1 | 0 | 0 | 2 |
e5ce5bfbe9bc862706ab6922b4a70515ff0c41e6 | 3,480 | py | Python | common/NormalTable.py | hanhui666888/AIStudy | 57d8cd4c0bb6accdc409f5518ade51f4d8c66596 | [
"Apache-2.0"
] | null | null | null | common/NormalTable.py | hanhui666888/AIStudy | 57d8cd4c0bb6accdc409f5518ade51f4d8c66596 | [
"Apache-2.0"
] | null | null | null | common/NormalTable.py | hanhui666888/AIStudy | 57d8cd4c0bb6accdc409f5518ade51f4d8c66596 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import math
import random as rd
normalTable = [0.5000,0.5040,0.5080,0.5120,0.5160,0.5199,0.5239,0.5279,0.5319,0.5359,
0.5398,0.5438,0.5478,0.5517,0.5557,0.5596,0.5636,0.5675,0.5714,0.5753,
0.5793,0.5832,0.5871,0.5910,0.5948,0.5987,0.6026,0.6064,0.6103,0.6141,
... | 56.129032 | 85 | 0.583621 | 780 | 3,480 | 2.603846 | 0.432051 | 0.022157 | 0.026588 | 0.039389 | 0.116691 | 0.086657 | 0.086657 | 0.066962 | 0.066962 | 0.054653 | 0 | 0.626467 | 0.192241 | 3,480 | 61 | 86 | 57.04918 | 0.096051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.055556 | 0.055556 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e5ceb9c9097d4a471d8420c4497b1a4b646396ed | 1,493 | py | Python | objax/functional/parallel.py | kihyuks/objax | 101907799e64c0d8160febf84a341d4d386bff51 | [
"Apache-2.0"
] | 715 | 2020-08-20T07:23:03.000Z | 2022-03-31T18:17:54.000Z | objax/functional/parallel.py | kihyuks/objax | 101907799e64c0d8160febf84a341d4d386bff51 | [
"Apache-2.0"
] | 145 | 2020-08-21T07:42:36.000Z | 2022-03-18T16:51:37.000Z | objax/functional/parallel.py | kihyuks/objax | 101907799e64c0d8160febf84a341d4d386bff51 | [
"Apache-2.0"
] | 59 | 2020-08-20T07:30:53.000Z | 2022-01-05T23:00:06.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.414634 | 82 | 0.734092 | 230 | 1,493 | 4.695652 | 0.4 | 0.088889 | 0.059259 | 0.074074 | 0.433333 | 0.433333 | 0.433333 | 0.433333 | 0.433333 | 0.433333 | 0 | 0.006421 | 0.165439 | 1,493 | 40 | 83 | 37.325 | 0.860353 | 0.558607 | 0 | 0 | 0 | 0 | 0.076677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.25 | 0 | 0.916667 | 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 | 1 | 0 | 0 | 2 |
e5d69e1b59d1ee8b1c553f23fc3db8e2a79cac4c | 427 | py | Python | rbfmorph/__init__.py | utkarshmech/rbfmorph | 7f5a96ea990dd3da59d4daa0546d365340c5c7fd | [
"MIT"
] | 2 | 2021-07-08T09:25:29.000Z | 2022-03-25T02:57:17.000Z | rbfmorph/__init__.py | utkarshmech/rbfmorph | 7f5a96ea990dd3da59d4daa0546d365340c5c7fd | [
"MIT"
] | null | null | null | rbfmorph/__init__.py | utkarshmech/rbfmorph | 7f5a96ea990dd3da59d4daa0546d365340c5c7fd | [
"MIT"
] | 1 | 2021-08-31T13:02:28.000Z | 2021-08-31T13:02:28.000Z | """
rbfmorph init file
"""
from .fem_disp import *
from .input import *
from .coordinates import *
from .import_msh import *
from .rbf_func import *
from .solve import *
from .vtk_export import *
from .new_coor import *
__project__ = 'rbfmorph'
__title__ = "rbfmorph"
__author__ = "Utkarsh Thakre"
__license__ = "MIT"
_... | 20.333333 | 33 | 0.737705 | 54 | 427 | 5.074074 | 0.648148 | 0.255474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03022 | 0.147541 | 427 | 20 | 34 | 21.35 | 0.722527 | 0.042155 | 0 | 0 | 0 | 0 | 0.164589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e5dbf5c62b02a11a9f5a3a4f6ad79c8e6ea354e7 | 1,615 | py | Python | sciope/utilities/summarystats/summary_base.py | rmjiang7/sciope | 5122107dedcee9c39458e83d853ec35f91268780 | [
"Apache-2.0"
] | 5 | 2019-05-21T18:56:04.000Z | 2020-08-02T20:09:43.000Z | sciope/utilities/summarystats/summary_base.py | rmjiang7/sciope | 5122107dedcee9c39458e83d853ec35f91268780 | [
"Apache-2.0"
] | 6 | 2020-10-16T08:11:10.000Z | 2022-03-16T09:35:46.000Z | sciope/utilities/summarystats/summary_base.py | rmjiang7/sciope | 5122107dedcee9c39458e83d853ec35f91268780 | [
"Apache-2.0"
] | 6 | 2019-05-23T09:09:00.000Z | 2020-08-02T20:09:45.000Z | # Copyright 2017 Prashant Singh, Fredrik Wrede and Andreas Hellander
#
# 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 appl... | 34.361702 | 112 | 0.709598 | 214 | 1,615 | 5.275701 | 0.556075 | 0.053144 | 0.023029 | 0.028344 | 0.051373 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0064 | 0.226006 | 1,615 | 46 | 113 | 35.108696 | 0.8968 | 0.682353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e5e0d12a9e36fc5f92b96a631ff6de1286ac2249 | 1,566 | py | Python | application/mod_collage/col_controllers.py | hieusydo/Voyage | 2a98118131fad927326d318ae1766e64bbb5add8 | [
"MIT"
] | 1 | 2018-04-23T05:16:49.000Z | 2018-04-23T05:16:49.000Z | application/mod_collage/col_controllers.py | hieusydo/Voyage | 2a98118131fad927326d318ae1766e64bbb5add8 | [
"MIT"
] | null | null | null | application/mod_collage/col_controllers.py | hieusydo/Voyage | 2a98118131fad927326d318ae1766e64bbb5add8 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, session, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import SelectField
from application.mod_collage.photoManip import generateCollage
from application.mod_auth.models import Landmark
mod_collage = Blueprint('collage', __name__, url_prefix='/collage')
... | 32.625 | 72 | 0.716475 | 193 | 1,566 | 5.704663 | 0.466321 | 0.038147 | 0.025431 | 0.049046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00626 | 0.183908 | 1,566 | 48 | 73 | 32.625 | 0.855243 | 0.118774 | 0 | 0 | 1 | 0 | 0.131636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16129 | null | null | 0.16129 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e5ebc328612496ae631b2fd37b4868aa23e5ec05 | 2,229 | py | Python | test/test.py | kiziebar/pycom | 947eb5ebda18cd40cc2478171411846b6bb3360b | [
"MIT"
] | null | null | null | test/test.py | kiziebar/pycom | 947eb5ebda18cd40cc2478171411846b6bb3360b | [
"MIT"
] | null | null | null | test/test.py | kiziebar/pycom | 947eb5ebda18cd40cc2478171411846b6bb3360b | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from pycom import Comet
class TestComet(unittest.TestCase):
def test_criteriaFail(self):
with self.assertRaises(TypeError):
Comet(["Bad", 0.5, 1])
def test_criteriaType(self):
with self.assertRaises(TypeError):
Comet((0, 0.5, 1))
... | 29.328947 | 50 | 0.559892 | 257 | 2,229 | 4.7393 | 0.194553 | 0.074713 | 0.128079 | 0.256158 | 0.654351 | 0.610016 | 0.531199 | 0.452381 | 0.452381 | 0.416256 | 0 | 0.036013 | 0.302378 | 2,229 | 76 | 50 | 29.328947 | 0.747267 | 0 | 0 | 0.466667 | 0 | 0 | 0.004036 | 0 | 0 | 0 | 0 | 0 | 0.216667 | 1 | 0.216667 | false | 0 | 0.05 | 0 | 0.283333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f90b203ec4c7e85f01d14f890abe264c1e434796 | 1,716 | py | Python | Code/coupon_collector.py | PacktPublishing/Modern-Python-Cookbook | 40ff656c64421ddf6c288e058bb99a929f6d4c39 | [
"MIT"
] | 107 | 2016-11-30T02:13:39.000Z | 2022-03-31T06:38:59.000Z | Code/coupon_collector.py | fengfanzhiwu/Modern-Python-Cookbook | 8eff962f6eae514d531beca9051aefa34941ef4d | [
"MIT"
] | 2 | 2017-04-19T04:08:21.000Z | 2019-03-09T16:18:33.000Z | Code/coupon_collector.py | fengfanzhiwu/Modern-Python-Cookbook | 8eff962f6eae514d531beca9051aefa34941ef4d | [
"MIT"
] | 71 | 2017-01-16T06:35:17.000Z | 2022-03-01T21:25:54.000Z | """Python Cookbook
See
http://www.brynmawr.edu/math/people/anmyers/PAPERS/SIGEST_Coupons.pdf
and
https://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind
and
https://en.wikipedia.org/wiki/Binomial_coefficient
"""
from math import factorial
def expected(n, population=8):
"""
What is the probabil... | 23.833333 | 126 | 0.617133 | 282 | 1,716 | 3.698582 | 0.382979 | 0.100671 | 0.107383 | 0.076702 | 0.298178 | 0.233941 | 0 | 0 | 0 | 0 | 0 | 0.0231 | 0.217949 | 1,716 | 71 | 127 | 24.169014 | 0.754098 | 0.652098 | 0 | 0 | 0 | 0 | 0.017505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.636364 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f9268aeb58281141610970f8e216e6cdeda51607 | 461 | py | Python | instagram_api/response/model/phone_verification_settings.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/phone_verification_settings.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/phone_verification_settings.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
__all__ = ['PhoneVerificationSettings', 'PhoneVerificationSettingsInterface']
class PhoneVerificationSettingsInterface(ApiInterfaceBase):
resend_sms_delay_sec: int
max_sms_count: int
robocall_count_down_ti... | 28.8125 | 84 | 0.828633 | 42 | 461 | 8.714286 | 0.595238 | 0.054645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114967 | 461 | 15 | 85 | 30.733333 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.127983 | 0.127983 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 2 |
f926af6496049e7c9e88d6030f7d6842224bd386 | 791 | py | Python | tests/submodules/test_always_on_task.py | MatiCG/pyaww | fa93184d96963b5ca2cb0330cec3a34a4fe423f7 | [
"MIT"
] | null | null | null | tests/submodules/test_always_on_task.py | MatiCG/pyaww | fa93184d96963b5ca2cb0330cec3a34a4fe423f7 | [
"MIT"
] | null | null | null | tests/submodules/test_always_on_task.py | MatiCG/pyaww | fa93184d96963b5ca2cb0330cec3a34a4fe423f7 | [
"MIT"
] | null | null | null | # Standard library imports
from typing import TYPE_CHECKING
# Related third party imports
import pytest
# Local application/library specific imports
if TYPE_CHECKING:
from pyaww import AlwaysOnTask, User
@pytest.mark.asyncio
async def test_restart(always_on_task: "AlwaysOnTask") -> None:
assert await alw... | 24.71875 | 85 | 0.774968 | 114 | 791 | 5.087719 | 0.350877 | 0.151724 | 0.227586 | 0.113793 | 0.515517 | 0.467241 | 0.134483 | 0 | 0 | 0 | 0 | 0 | 0.1378 | 791 | 31 | 86 | 25.516129 | 0.85044 | 0.120101 | 0 | 0.176471 | 0 | 0 | 0.062139 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0 | true | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f92b6b4fadb3ff08ff50008fabfc5374c47c9147 | 688 | py | Python | speedydeploy/providers/linode.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | speedydeploy/providers/linode.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | speedydeploy/providers/linode.py | suvit/speedydeploy | 124d7723f9e5935935f97bd3b1e433cfd251084d | [
"MIT"
] | null | null | null | from fabric import api as fab
from ..base import Ubuntu, Ubuntu104
from ..deployment import _
from ..project.cron import CronTab
from ..project import LogRotate
from .base import Provider
class Linode(Provider):
def __init__(self):
super(Linode, self).__init__()
fab.env.os = Ubuntu104()
... | 16.380952 | 49 | 0.651163 | 86 | 688 | 5.05814 | 0.406977 | 0.068966 | 0.089655 | 0.124138 | 0.082759 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.229651 | 688 | 41 | 50 | 16.780488 | 0.773585 | 0.015988 | 0 | 0.208333 | 0 | 0 | 0.044577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.208333 | 0.25 | 0 | 0.541667 | 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 | 1 | 0 | 0 | 2 |
f92cef77139ea8064b596a73f936a9a1cd5b8f66 | 19,501 | py | Python | CaseConverter/test.py | SylannBin/Utils | b4caa6366f7e6a8fcb70ec7a4b3f180b18418689 | [
"MIT"
] | null | null | null | CaseConverter/test.py | SylannBin/Utils | b4caa6366f7e6a8fcb70ec7a4b3f180b18418689 | [
"MIT"
] | null | null | null | CaseConverter/test.py | SylannBin/Utils | b4caa6366f7e6a8fcb70ec7a4b3f180b18418689 | [
"MIT"
] | null | null | null | from printer import Color, danger, success, info, format_table
from converter import *
def resolve(function, value, expected):
try:
result = function(value)
except ValueError as e:
result = 'ValueError'
except NotImplementedError as e:
return e.message, Color.BLUE
if result ==... | 48.50995 | 75 | 0.68376 | 2,362 | 19,501 | 5.260373 | 0.035563 | 0.116056 | 0.059879 | 0.106237 | 0.783984 | 0.775614 | 0.381167 | 0.381167 | 0.339799 | 0.339799 | 0 | 0.001374 | 0.141531 | 19,501 | 402 | 76 | 48.50995 | 0.740816 | 0 | 0 | 0 | 0 | 0 | 0.42288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005236 | null | null | 0.015707 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
00598c2daee80da81e11b29c14b4a24630b9dc0c | 4,933 | py | Python | candle/estimator.py | paiforsyth/candle | 831da9f92ee6e2bdb86cb0ddc7faedd4ff9d12d9 | [
"MIT"
] | null | null | null | candle/estimator.py | paiforsyth/candle | 831da9f92ee6e2bdb86cb0ddc7faedd4ff9d12d9 | [
"MIT"
] | null | null | null | candle/estimator.py | paiforsyth/candle | 831da9f92ee6e2bdb86cb0ddc7faedd4ff9d12d9 | [
"MIT"
] | null | null | null | import gc
from torch.autograd import Variable
import torch
import torch.autograd as ag
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from .context import Context
from .nested import *
class Function(object):
def __call__(self, *args, **kwargs):
raise NotImplementedError
class ... | 29.89697 | 110 | 0.612204 | 707 | 4,933 | 4.055163 | 0.168317 | 0.059644 | 0.038368 | 0.034182 | 0.436693 | 0.346355 | 0.267178 | 0.218347 | 0.218347 | 0.169515 | 0 | 0.01546 | 0.252585 | 4,933 | 164 | 111 | 30.079268 | 0.762137 | 0 | 0 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217742 | false | 0 | 0.072581 | 0.072581 | 0.516129 | 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 | 1 | 0 | 0 | 2 |
00646f075a36206f708e4585f25c0a0bcf2de3e2 | 484 | py | Python | Exercises/Riemann.py | JoeyDeSmet/Algorithm-intro | dd897c8ed33c6233450fe4fa3eacd474ede0aec1 | [
"Apache-2.0"
] | null | null | null | Exercises/Riemann.py | JoeyDeSmet/Algorithm-intro | dd897c8ed33c6233450fe4fa3eacd474ede0aec1 | [
"Apache-2.0"
] | null | null | null | Exercises/Riemann.py | JoeyDeSmet/Algorithm-intro | dd897c8ed33c6233450fe4fa3eacd474ede0aec1 | [
"Apache-2.0"
] | 1 | 2021-10-14T08:03:41.000Z | 2021-10-14T08:03:41.000Z | import math
def f(x):
return math.pow(x, 2) + 3 * x + 15
def riemannIntegral(interval, a):
x = interval[0]
step = (interval[1] - interval[0]) / a
x1 = x + step
integral = 0
for i in range (interval[0], a):
width = x1 - x
height = f(x1)
integral += width * height
... | 19.36 | 42 | 0.553719 | 71 | 484 | 3.746479 | 0.394366 | 0.101504 | 0.236842 | 0.24812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085799 | 0.301653 | 484 | 25 | 43 | 19.36 | 0.701183 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.055556 | 0.277778 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0070e3db28342011ad26dad5be9905665020e271 | 3,282 | py | Python | external_functions/pyef/template.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 44 | 2016-03-18T22:05:31.000Z | 2021-12-23T01:50:09.000Z | external_functions/pyef/template.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 88 | 2016-08-19T08:05:37.000Z | 2022-03-28T23:29:21.000Z | external_functions/pyef/template.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 24 | 2016-02-07T18:12:06.000Z | 2022-02-19T09:06:17.000Z | '''
Template for creating a PyFerret Python External Function (PyEF).
The names of the functions provided should not be changed. By
default, PyFerret uses the name of the module as the function name.
Copy this file using a name that you would like to be the function
name, then modify the contents of these functions ... | 37.724138 | 75 | 0.694089 | 488 | 3,282 | 4.608607 | 0.366803 | 0.035571 | 0.042686 | 0.042686 | 0.232992 | 0.163628 | 0.130725 | 0.130725 | 0.067586 | 0.067586 | 0 | 0.001611 | 0.243449 | 3,282 | 86 | 76 | 38.162791 | 0.904148 | 0.743754 | 0 | 0 | 0 | 0 | 0.041411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.055556 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
008a94b66bc880792cadcf97f6f2be20449badcd | 2,221 | py | Python | src/ham/util/path_manager.py | n2qzshce/ham_radio_sync | ffe95a4ef88375b5d5e4503cf770e884644536cd | [
"CNRI-Python",
"RSA-MD"
] | 8 | 2021-03-01T17:28:45.000Z | 2022-02-10T02:19:41.000Z | src/ham/util/path_manager.py | n2qzshce/ham_radio_sync | ffe95a4ef88375b5d5e4503cf770e884644536cd | [
"CNRI-Python",
"RSA-MD"
] | 7 | 2021-03-31T03:37:12.000Z | 2021-06-12T20:30:05.000Z | src/ham/util/path_manager.py | n2qzshce/ham_radio_sync | ffe95a4ef88375b5d5e4503cf770e884644536cd | [
"CNRI-Python",
"RSA-MD"
] | 1 | 2021-02-24T21:39:51.000Z | 2021-02-24T21:39:51.000Z | import os
class PathManager:
input_folder_label = None
output_folder_label = None
_input_folder_path = None
_output_folder_path = None
_import_file_path = None
_import_file_style = None
@classmethod
def set_input_folder_label(cls, label):
cls.input_folder_label = label
@classmethod
def set_output_folder... | 25.528736 | 77 | 0.767672 | 352 | 2,221 | 4.474432 | 0.105114 | 0.124444 | 0.062222 | 0.045714 | 0.512381 | 0.406349 | 0.377143 | 0.341587 | 0.245079 | 0.245079 | 0 | 0.000521 | 0.135975 | 2,221 | 86 | 78 | 25.825581 | 0.820219 | 0 | 0 | 0.333333 | 0 | 0 | 0.045925 | 0.022062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.151515 | 0.045455 | 0.606061 | 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 | 1 | 0 | 0 | 2 |
008cde908d293c007a270cb3365f701251d7f2a1 | 1,313 | py | Python | 2013/QualificationRound/problem1.py | radeinla/fbhackercup | 11c30a77cac8c4fc542eba23d0b080cbb0f4ece9 | [
"MIT"
] | null | null | null | 2013/QualificationRound/problem1.py | radeinla/fbhackercup | 11c30a77cac8c4fc542eba23d0b080cbb0f4ece9 | [
"MIT"
] | null | null | null | 2013/QualificationRound/problem1.py | radeinla/fbhackercup | 11c30a77cac8c4fc542eba23d0b080cbb0f4ece9 | [
"MIT"
] | null | null | null |
def is_black(x):
return x == '#'
def is_square(box, N):
size = None
fbj1 = None
fbj2 = None
fbi1 = None
fbi2 = None
blank = "."*N
for i in xrange(0, N):
for j in xrange(0, N):
if fbj1 is None or fbj2 is None:
if is_black(box[i][j]):
... | 28.543478 | 72 | 0.374714 | 164 | 1,313 | 2.969512 | 0.286585 | 0.065708 | 0.073922 | 0.061602 | 0.308008 | 0.308008 | 0.065708 | 0 | 0 | 0 | 0 | 0.061611 | 0.517898 | 1,313 | 45 | 73 | 29.177778 | 0.707741 | 0 | 0 | 0.275 | 0 | 0 | 0.023628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.025 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0094f3b130364ae0c13120be09b4683745e6005c | 69,805 | py | Python | pysnmp-with-texts/CISCO-STACKWISE-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/CISCO-STACKWISE-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/CISCO-STACKWISE-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 CISCO-STACKWISE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-STACKWISE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:13:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 182.735602 | 5,651 | 0.798195 | 8,007 | 69,805 | 6.958411 | 0.099663 | 0.038983 | 0.068221 | 0.007682 | 0.453568 | 0.343151 | 0.312657 | 0.286255 | 0.237041 | 0.216509 | 0 | 0.035015 | 0.097472 | 69,805 | 381 | 5,652 | 183.215223 | 0.849352 | 0.004756 | 0 | 0.07989 | 0 | 0.179063 | 0.480983 | 0.066639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.099174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
00a9b7b80e70b2ade8a74bf8036397114cf2dc47 | 217 | py | Python | app/launcher.py | bcheng004/reddit-recommender | 3446ca25b9320a2ca94e4ab1a08056e81edd6d45 | [
"MIT"
] | 1 | 2022-01-06T02:21:31.000Z | 2022-01-06T02:21:31.000Z | app/launcher.py | bcheng004/reddit-recommender | 3446ca25b9320a2ca94e4ab1a08056e81edd6d45 | [
"MIT"
] | null | null | null | app/launcher.py | bcheng004/reddit-recommender | 3446ca25b9320a2ca94e4ab1a08056e81edd6d45 | [
"MIT"
] | null | null | null | import os, confuse
config = confuse.Configuration('RecLauncher')
config.set_file('config-st.yaml')
server_port = config['streamlit']['server_port'].get()
os.system(f"streamlit run app.py --server.port {server_port}") | 36.166667 | 62 | 0.760369 | 31 | 217 | 5.193548 | 0.612903 | 0.248447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069124 | 217 | 6 | 62 | 36.166667 | 0.79703 | 0 | 0 | 0 | 0 | 0 | 0.426606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
00b06443ce4f30563dab2c820a73ba95e0735e30 | 1,494 | py | Python | src/model/JPPNet.py | quangostudio/fastapi | 62eec06a2dd7a5a137373fc0d08017cf240f51a7 | [
"MIT"
] | null | null | null | src/model/JPPNet.py | quangostudio/fastapi | 62eec06a2dd7a5a137373fc0d08017cf240f51a7 | [
"MIT"
] | null | null | null | src/model/JPPNet.py | quangostudio/fastapi | 62eec06a2dd7a5a137373fc0d08017cf240f51a7 | [
"MIT"
] | 1 | 2021-12-09T11:15:41.000Z | 2021-12-09T11:15:41.000Z | '''
This file implements JPP-Net for human parsing and pose detection.
'''
import tensorflow as tf
import os
from tensorflow.python.framework import graph_util
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
from tensorflow.python.platform import gfile
import time
class JPP(object):
... | 36.439024 | 113 | 0.672691 | 213 | 1,494 | 4.549296 | 0.464789 | 0.033024 | 0.04644 | 0.055728 | 0.092879 | 0.092879 | 0.092879 | 0 | 0 | 0 | 0 | 0.034423 | 0.222222 | 1,494 | 41 | 114 | 36.439024 | 0.799484 | 0.168675 | 0 | 0 | 0 | 0 | 0.018288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.346154 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
00c7a204bdfb47a3865e131d3affcf1f44535d58 | 1,049 | py | Python | tools/similarity.py | bruinxiong/gnerf | 5a6f1141a5b87dac66a755c7238263da85934d72 | [
"MIT"
] | 137 | 2021-07-25T03:48:07.000Z | 2022-03-31T17:52:28.000Z | tools/similarity.py | bruinxiong/gnerf | 5a6f1141a5b87dac66a755c7238263da85934d72 | [
"MIT"
] | 4 | 2021-09-08T03:21:19.000Z | 2022-03-30T07:53:31.000Z | tools/similarity.py | bruinxiong/gnerf | 5a6f1141a5b87dac66a755c7238263da85934d72 | [
"MIT"
] | 10 | 2021-11-16T11:31:55.000Z | 2022-03-23T00:59:35.000Z | import torch
from kornia.losses import ssim as dssim
from lpips_pytorch import LPIPS
lpips_fn = LPIPS(net_type='alex', version='0.1')
lpips_fn.eval()
def mse(image_pred, image_gt, valid_mask=None, reduction='mean'):
value = (image_pred - image_gt) ** 2
if valid_mask is not None:
value = value[valid_m... | 28.351351 | 81 | 0.672069 | 167 | 1,049 | 3.982036 | 0.287425 | 0.162406 | 0.210526 | 0.192481 | 0.306767 | 0.306767 | 0.306767 | 0.26015 | 0.26015 | 0.153383 | 0 | 0.031175 | 0.204957 | 1,049 | 36 | 82 | 29.138889 | 0.766187 | 0.032412 | 0 | 0.153846 | 0 | 0 | 0.025692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.115385 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
00d5c06169e029f19ff54dc53dda05af8a89e021 | 917 | py | Python | formly/forms/widgets.py | coloradocarlos/formly | 88ee816835687c7ab8c80fe78f3e32c9e1761a33 | [
"BSD-3-Clause"
] | 34 | 2015-02-08T15:07:44.000Z | 2021-07-04T05:05:37.000Z | formly/forms/widgets.py | coloradocarlos/formly | 88ee816835687c7ab8c80fe78f3e32c9e1761a33 | [
"BSD-3-Clause"
] | 30 | 2015-01-21T15:39:00.000Z | 2021-07-04T05:12:03.000Z | formly/forms/widgets.py | coloradocarlos/formly | 88ee816835687c7ab8c80fe78f3e32c9e1761a33 | [
"BSD-3-Clause"
] | 10 | 2015-04-22T13:13:27.000Z | 2021-06-08T19:53:36.000Z | from django.forms import TextInput
from django.forms.widgets import MultiWidget, RadioSelect
from django.template.loader import render_to_string
class MultiTextWidget(MultiWidget):
def __init__(self, widgets_length, **kwargs):
widgets = [TextInput() for _ in range(widgets_length)]
kwargs.update({"... | 26.970588 | 62 | 0.676118 | 98 | 917 | 6.122449 | 0.561224 | 0.05 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237732 | 917 | 33 | 63 | 27.787879 | 0.858369 | 0.116685 | 0 | 0.095238 | 0 | 0 | 0.055696 | 0.039241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.095238 | 0.142857 | 0.095238 | 0.52381 | 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 | 1 | 0 | 0 | 2 |
00e1a3dc3b3a1c20f6037788df47098e679b8083 | 447 | py | Python | models/blog.py | AbhishekPednekar84/personal-portfolio | b7aa797e52399bc002efee21e78195edc110a446 | [
"MIT"
] | 2 | 2020-01-15T07:18:11.000Z | 2020-01-29T16:36:20.000Z | models/blog.py | AbhishekPednekar84/personal-portfolio | b7aa797e52399bc002efee21e78195edc110a446 | [
"MIT"
] | 2 | 2019-11-19T08:50:11.000Z | 2019-12-29T07:15:59.000Z | models/blog.py | AbhishekPednekar84/personal-portfolio | b7aa797e52399bc002efee21e78195edc110a446 | [
"MIT"
] | null | null | null | from extensions import db
from sqlalchemy.dialects.postgresql import TSVECTOR
class Blog(db.Model):
__tablename__ = "blog"
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(100))
url = db.Column(db.String(100))
description = db.Column(db.String(1000))
description_token ... | 27.9375 | 79 | 0.689038 | 61 | 447 | 4.885246 | 0.491803 | 0.134228 | 0.134228 | 0.161074 | 0.127517 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026954 | 0.170022 | 447 | 15 | 80 | 29.8 | 0.77628 | 0 | 0 | 0 | 0 | 0.090909 | 0.145414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
da9a059c634fcea4a96216e4d1ee920ceb4dd1fd | 1,581 | py | Python | INBa/2015/SOSNOVY_M_S/task_9_26.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | INBa/2015/SOSNOVY_M_S/task_9_26.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | INBa/2015/SOSNOVY_M_S/task_9_26.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | # Задание 9. Вариант 26
# Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо буква в слове, причем программа может отвечать только "Да" и "Нет". Вслед за тем игрок должен попробовать о... | 32.265306 | 310 | 0.726755 | 233 | 1,581 | 4.93133 | 0.412017 | 0.078329 | 0.121845 | 0.073977 | 0.496084 | 0.496084 | 0.496084 | 0.496084 | 0.496084 | 0.496084 | 0 | 0.008909 | 0.148008 | 1,581 | 49 | 311 | 32.265306 | 0.844098 | 0.223909 | 0 | 0.714286 | 0 | 0 | 0.486509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.02381 | 0.452381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
daaf40a6e0a5cb830dd91fcd7e3b46efbcad6d4e | 13,714 | py | Python | common.py | hwase0ng/klseScrappers | 367ac86b603fad35c4983b04f9e72d4694d4bc31 | [
"MIT"
] | 3 | 2020-05-27T06:01:12.000Z | 2021-11-29T20:56:06.000Z | common.py | hwase0ng/klseScrappers | 367ac86b603fad35c4983b04f9e72d4694d4bc31 | [
"MIT"
] | 3 | 2020-03-08T14:45:16.000Z | 2021-12-13T19:47:14.000Z | common.py | hwase0ng/klseScrappers | 367ac86b603fad35c4983b04f9e72d4694d4bc31 | [
"MIT"
] | null | null | null | """
Created on Apr 27, 2018
@author: hwase0ng
"""
from BeautifulSoup import BeautifulSoup
from utils.dateutils import getToday, getDayOffset, generate_dates
from utils.fileutils import wc_line_count
from curses.ascii import isprint
import csv
import json
import requests
import sys
import settings as S
im... | 29.240938 | 130 | 0.521948 | 1,652 | 13,714 | 4.250605 | 0.224576 | 0.008545 | 0.014099 | 0.013671 | 0.176445 | 0.11464 | 0.08687 | 0.048704 | 0.022928 | 0.016092 | 0 | 0.049882 | 0.350955 | 13,714 | 468 | 131 | 29.303419 | 0.739018 | 0.050095 | 0 | 0.22792 | 1 | 0 | 0.055925 | 0 | 0.002849 | 0 | 0 | 0 | 0.002849 | 0 | null | null | 0.002849 | 0.034188 | null | null | 0.054131 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dabb68b6fb48686276a922ea58be91f96ae78543 | 4,076 | py | Python | src/solutions/common/models/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/models/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/models/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 36.392857 | 128 | 0.73945 | 501 | 4,076 | 5.824351 | 0.313373 | 0.061686 | 0.071624 | 0.069568 | 0.297807 | 0.193968 | 0.113434 | 0.095956 | 0.095956 | 0.06854 | 0 | 0.005631 | 0.172228 | 4,076 | 111 | 129 | 36.720721 | 0.859218 | 0.157017 | 0 | 0.306667 | 0 | 0 | 0.007616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186667 | false | 0 | 0.08 | 0.16 | 0.746667 | 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 | 1 | 0 | 0 | 2 |
dabfd08ab527b85660d4d9570e35a8695162beeb | 131 | py | Python | bench/test_get.py | eabrouwer3/aiotoolz | 10790c9c5a8413502d8f35ce157966290492dbab | [
"BSD-3-Clause"
] | null | null | null | bench/test_get.py | eabrouwer3/aiotoolz | 10790c9c5a8413502d8f35ce157966290492dbab | [
"BSD-3-Clause"
] | null | null | null | bench/test_get.py | eabrouwer3/aiotoolz | 10790c9c5a8413502d8f35ce157966290492dbab | [
"BSD-3-Clause"
] | null | null | null | from aiotoolz import get
tuples = [(1, 2, 3) for i in range(100000)]
def test_get():
for tup in tuples:
get(1, tup)
| 14.555556 | 43 | 0.603053 | 23 | 131 | 3.391304 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.274809 | 131 | 8 | 44 | 16.375 | 0.715789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dac361a95a6b2abc8f3940126e5652a22be4255b | 788 | py | Python | xrpl/utils/str_conversions.py | antonyggvzvmnxxcx/xrpl-py | fda7ce2a28807374b40324478e42e17d97a063d7 | [
"ISC"
] | null | null | null | xrpl/utils/str_conversions.py | antonyggvzvmnxxcx/xrpl-py | fda7ce2a28807374b40324478e42e17d97a063d7 | [
"ISC"
] | 2 | 2022-02-23T22:57:46.000Z | 2022-02-24T11:41:49.000Z | xrpl/utils/str_conversions.py | antonyggvzvmnxxcx/xrpl-py | fda7ce2a28807374b40324478e42e17d97a063d7 | [
"ISC"
] | 1 | 2022-02-21T07:36:36.000Z | 2022-02-21T07:36:36.000Z | """Various useful string conversions utilities for XRPL."""
def str_to_hex(input: str) -> str:
"""
Convert a UTF-8-encoded string into hexadecimal encoding.
XRPL uses hex strings as inputs in fields like `domain`
in the `AccountSet` transaction.
Args:
input: UTF-8-encoded string to conver... | 24.625 | 61 | 0.656091 | 108 | 788 | 4.75 | 0.37037 | 0.023392 | 0.042885 | 0.070175 | 0.553606 | 0.479532 | 0.479532 | 0.479532 | 0.479532 | 0.307992 | 0 | 0.005085 | 0.251269 | 788 | 31 | 62 | 25.419355 | 0.864407 | 0.68401 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
dacec6192e4e79e1e83802fb0e5ede942684c020 | 335 | py | Python | sshr/clients/admin.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | sshr/clients/admin.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | sshr/clients/admin.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from core import SSHRAdmin
from ._dropbox import DropboxClient
from ._qiniu import QiniuClient
from ._webdav import WebdavClient
sshr_admin = SSHRAdmin()
sshr_admin.register('dropbox', DropboxClient)
sshr_admin.register('qiniu', QiniuClient)
sshr_admin.register('webdav',... | 23.928571 | 45 | 0.78209 | 41 | 335 | 6.219512 | 0.487805 | 0.141176 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003333 | 0.104478 | 335 | 13 | 46 | 25.769231 | 0.846667 | 0.125373 | 0 | 0 | 0 | 0 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
dad1393dffc0b140629b9522d25813d0ecd5bc80 | 78 | py | Python | pc.py | MaNongJiaLe/DaYuHaiTang | 3063de6e390dfb2d74ae3ae6a30e10f6dc31d16f | [
"Apache-2.0"
] | null | null | null | pc.py | MaNongJiaLe/DaYuHaiTang | 3063de6e390dfb2d74ae3ae6a30e10f6dc31d16f | [
"Apache-2.0"
] | null | null | null | pc.py | MaNongJiaLe/DaYuHaiTang | 3063de6e390dfb2d74ae3ae6a30e10f6dc31d16f | [
"Apache-2.0"
] | null | null | null |
print('nice' in 'nice to meet you')
a=1000000
b=1000000
c=a+b
print(c)
| 6 | 35 | 0.628205 | 16 | 78 | 3.0625 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229508 | 0.217949 | 78 | 12 | 36 | 6.5 | 0.57377 | 0 | 0 | 0 | 0 | 0 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 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 | 2 |
dadcb98c933ba30f86807ce7fd3fbfa6b2ab04f4 | 2,255 | py | Python | tools/libs/PassID-Server/src/pymrtd/pki/crl.py | lukapercic/PassID-Public-Docs | 4ae305af837231c4bf7ba94154c5bc29d2873fe9 | [
"MIT"
] | 1 | 2022-01-06T11:28:03.000Z | 2022-01-06T11:28:03.000Z | tools/libs/PassID-Server/src/pymrtd/pki/crl.py | lukapercic/PassID-Public-Docs | 4ae305af837231c4bf7ba94154c5bc29d2873fe9 | [
"MIT"
] | 1 | 2021-01-08T17:32:08.000Z | 2021-01-08T17:32:08.000Z | tools/libs/PassID-Server/src/pymrtd/pki/crl.py | lukapercic/PassID-Public-Docs | 4ae305af837231c4bf7ba94154c5bc29d2873fe9 | [
"MIT"
] | 2 | 2020-12-18T22:47:09.000Z | 2020-12-18T22:48:57.000Z | '''
File name: crl.py
Author: ZeroPass - Nejc Skerjanc
License: MIT lincense
Python Version: 3.6
'''
from .x509 import CscaCertificate
from .cert_utils import verify_sig
from asn1crypto.crl import CertificateList
import datetime
"""
CRL: \
-object ***
-serial Number***
-subject key //not... | 28.544304 | 104 | 0.654102 | 255 | 2,255 | 5.67451 | 0.411765 | 0.053214 | 0.030408 | 0.041465 | 0.064962 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008731 | 0.238137 | 2,255 | 78 | 105 | 28.910256 | 0.833527 | 0.218625 | 0 | 0.189189 | 0 | 0 | 0.122507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.027027 | 0.108108 | 0 | 0.567568 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
daeb71ef71ffac61a566af31cde51e40b5ffba23 | 2,173 | py | Python | pythonPrograms/microphone_recognition.py | akierson/capstone-prototype | a7d5754653f8c64d17ba21fbe4801c316a95b318 | [
"MIT"
] | null | null | null | pythonPrograms/microphone_recognition.py | akierson/capstone-prototype | a7d5754653f8c64d17ba21fbe4801c316a95b318 | [
"MIT"
] | null | null | null | pythonPrograms/microphone_recognition.py | akierson/capstone-prototype | a7d5754653f8c64d17ba21fbe4801c316a95b318 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# NOTE: this example requires PyAudio because it uses the Microphone class
import speech_recognition as sr
# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)
# recognize speech using Sphinx
try:
p... | 42.607843 | 163 | 0.774045 | 295 | 2,173 | 5.59322 | 0.308475 | 0.038788 | 0.047273 | 0.033939 | 0.375758 | 0.28 | 0.244848 | 0.178182 | 0.178182 | 0.178182 | 0 | 0.01073 | 0.1422 | 2,173 | 50 | 164 | 43.46 | 0.874464 | 0.277957 | 0 | 0.375 | 0 | 0 | 0.397815 | 0.071979 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.40625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
daf9942d2334651ad722f813433f661721b44f8b | 2,300 | py | Python | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/access_methods/ao_memory.py | lintzc/GPDB | b48c8b97da18f495c10065d0853db87960aebae2 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2017-09-15T06:09:56.000Z | 2017-09-15T06:09:56.000Z | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/access_methods/ao_memory.py | guofengrichard/gpdb | 29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/access_methods/ao_memory.py | guofengrichard/gpdb | 29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2018-12-04T09:13:57.000Z | 2018-12-04T09:13:57.000Z | #!/usr/bin/env python
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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 c... | 34.848485 | 112 | 0.662609 | 299 | 2,300 | 5.010033 | 0.551839 | 0.040053 | 0.026702 | 0.045394 | 0.162884 | 0.162884 | 0.12283 | 0.12283 | 0.12283 | 0.12283 | 0 | 0.012761 | 0.250435 | 2,300 | 65 | 113 | 35.384615 | 0.856148 | 0.008696 | 0 | 0.235294 | 0 | 0 | 0.352295 | 0.047188 | 0 | 0 | 0 | 0 | 0.058824 | 0 | null | null | 0.029412 | 0.323529 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
971097828072775e23da859896c3b27a12ba0f10 | 866 | py | Python | setup.py | emanuil-tolev/fundfind | 95cc4b30efc6a3dc73142d82ea32c8fd8ca74029 | [
"MIT"
] | null | null | null | setup.py | emanuil-tolev/fundfind | 95cc4b30efc6a3dc73142d82ea32c8fd8ca74029 | [
"MIT"
] | null | null | null | setup.py | emanuil-tolev/fundfind | 95cc4b30efc6a3dc73142d82ea32c8fd8ca74029 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = 'fundfind',
version = '0.1',
packages = find_packages(),
url = 'http://fundfind.cottagelabs.com',
author = 'Emanuil Tolev',
author_email = 'emanuil.tolev@gmail.com',
description = 'fundfind - an Open way to share, visualise and map o... | 28.866667 | 107 | 0.58545 | 99 | 866 | 5.080808 | 0.69697 | 0.011928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036278 | 0.267898 | 866 | 29 | 108 | 29.862069 | 0.757098 | 0.057737 | 0 | 0.076923 | 0 | 0 | 0.496925 | 0.02829 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
971279e27cb8fe7a2ddcfa304bd094cf6b9e8fdb | 2,423 | py | Python | Logger.py | amgc500/MCNTE | dae1a7b90bb7b338438eb470db9f1787999d9186 | [
"MIT"
] | null | null | null | Logger.py | amgc500/MCNTE | dae1a7b90bb7b338438eb470db9f1787999d9186 | [
"MIT"
] | null | null | null | Logger.py | amgc500/MCNTE | dae1a7b90bb7b338438eb470db9f1787999d9186 | [
"MIT"
] | null | null | null | """Implement a logging system.
This class will direct output to both the screen and a specified file.
Code for the article "Monte Carlo Methods for the Neutron Transport Equation.
By A. Cox, A. Kyprianou, S. Harris, M. Wang.
Thi sfile contains the code to produce the plots in the case of the 2D version
of the NTE.
... | 35.115942 | 115 | 0.723896 | 364 | 2,423 | 4.796703 | 0.53022 | 0.050401 | 0.014891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007273 | 0.20553 | 2,423 | 68 | 116 | 35.632353 | 0.89974 | 0.752373 | 0 | 0 | 0 | 0 | 0.035842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.176471 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9721ef07918231ab859cd2bc6178d6541bbf6879 | 171 | py | Python | eln/decorators/register_reader.py | lehvitus/eln | b78362af20cacffe076bf3dbfd27dcc090e43e39 | [
"BSD-3-Clause"
] | 2 | 2020-02-05T04:00:32.000Z | 2020-03-18T02:12:33.000Z | eln/decorators/register_reader.py | oleoneto/eln | b78362af20cacffe076bf3dbfd27dcc090e43e39 | [
"BSD-3-Clause"
] | 1 | 2020-03-18T02:36:04.000Z | 2020-03-18T02:36:04.000Z | eln/decorators/register_reader.py | oleoneto/eln | b78362af20cacffe076bf3dbfd27dcc090e43e39 | [
"BSD-3-Clause"
] | null | null | null | # eln:decorators
READERS = dict()
# Decorator for adding reader functions
def register_reader(function):
READERS[function.__name__] = function
return function
| 15.545455 | 41 | 0.748538 | 19 | 171 | 6.473684 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 171 | 10 | 42 | 17.1 | 0.87234 | 0.304094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
972cb511c9c5f56f2bd7197d4176ab7ff15fc5f5 | 1,012 | py | Python | lib/oci_utils/migrate/exception.py | totalamateurhour/oci-utils | b3e8348f66f8a26453fab0f3b616b3c1585468a7 | [
"UPL-1.0"
] | 35 | 2019-04-21T00:58:30.000Z | 2022-01-28T15:22:41.000Z | lib/oci_utils/migrate/exception.py | totalamateurhour/oci-utils | b3e8348f66f8a26453fab0f3b616b3c1585468a7 | [
"UPL-1.0"
] | 43 | 2019-05-19T20:13:41.000Z | 2022-03-31T17:39:25.000Z | lib/oci_utils/migrate/exception.py | totalamateurhour/oci-utils | b3e8348f66f8a26453fab0f3b616b3c1585468a7 | [
"UPL-1.0"
] | 23 | 2019-04-10T12:48:00.000Z | 2022-03-25T16:57:47.000Z | # oci-utils
#
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown
# at http://oss.oracle.com/licenses/upl.
""" Module with oci migrate related exceptions.
"""
class OciMigrateException(Exception):
""" Exceptions for the Im... | 24.682927 | 77 | 0.603755 | 110 | 1,012 | 5.418182 | 0.627273 | 0.110738 | 0.043624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.298419 | 1,012 | 40 | 78 | 25.3 | 0.825352 | 0.477273 | 0 | 0 | 0 | 0 | 0.177057 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
973cc92d02ecaec218f328cfa03f67962ce46109 | 857 | py | Python | smart_match/monge_elkan.py | wujinglin226/smart-match | aa84f9e4dda89aadc23f439f33d20269e2674b0a | [
"MIT"
] | 1 | 2020-09-28T13:14:31.000Z | 2020-09-28T13:14:31.000Z | smart_match/monge_elkan.py | yuqiangfeng96/smart-match | 86a485b569c31d081b3f165aac9532f595d3deec | [
"MIT"
] | null | null | null | smart_match/monge_elkan.py | yuqiangfeng96/smart-match | 86a485b569c31d081b3f165aac9532f595d3deec | [
"MIT"
] | null | null | null | import smart_match
from math import sqrt
class MongeElkan:
def __init__(self, method=None):
self.method = smart_match.get_method(method)
def similarity(self, X, Y):
if not X and not Y:
return 1
if not X or not Y:
return 0
retu... | 24.485714 | 72 | 0.514586 | 113 | 857 | 3.716814 | 0.327434 | 0.095238 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009728 | 0.400233 | 857 | 35 | 73 | 24.485714 | 0.807393 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.086957 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
97463ce31028569c4e360e76832abc2a9f99d118 | 3,957 | py | Python | tests/test_parser.py | MacarielAerial/networkx-query | 07d9d4a5ff1f2db55a62a490458c5461dad057bb | [
"MIT"
] | 8 | 2020-05-02T00:14:19.000Z | 2021-11-16T19:27:37.000Z | tests/test_parser.py | MacarielAerial/networkx-query | 07d9d4a5ff1f2db55a62a490458c5461dad057bb | [
"MIT"
] | null | null | null | tests/test_parser.py | MacarielAerial/networkx-query | 07d9d4a5ff1f2db55a62a490458c5461dad057bb | [
"MIT"
] | 1 | 2021-03-31T08:30:13.000Z | 2021-03-31T08:30:13.000Z | import pytest
from networkx_query import ParserException
from networkx_query.parser import compile_ast, explain, parse
node_0 = {'application': 'test'}
node_1 = {'application': 'test', 'weight': 3, 'group': 'my-group'}
node_2 = {'_link': {'provider': "aws", 'resource_type': "test", 'other': {'weight': 2}}}
def test... | 30.674419 | 119 | 0.62699 | 528 | 3,957 | 4.422348 | 0.106061 | 0.116488 | 0.12591 | 0.170878 | 0.783298 | 0.681799 | 0.643255 | 0.622698 | 0.440685 | 0.372591 | 0 | 0.020242 | 0.163508 | 3,957 | 128 | 120 | 30.914063 | 0.685196 | 0 | 0 | 0.409091 | 0 | 0 | 0.156937 | 0 | 0 | 0 | 0 | 0 | 0.397727 | 1 | 0.215909 | false | 0 | 0.034091 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9748ebd3c81e9508be7de2eff6f2fc9edd532fd6 | 462 | py | Python | src/apps/spam/views/__init__.py | SlonSky/django-grasped | 97ea2f6d2e10232fc084a6407fa089df2cdf086e | [
"MIT"
] | null | null | null | src/apps/spam/views/__init__.py | SlonSky/django-grasped | 97ea2f6d2e10232fc084a6407fa089df2cdf086e | [
"MIT"
] | null | null | null | src/apps/spam/views/__init__.py | SlonSky/django-grasped | 97ea2f6d2e10232fc084a6407fa089df2cdf086e | [
"MIT"
] | null | null | null | """
This package represents Presentation layer.
Put your views for different API.
Your views should use services from Application layer,
without implementing logic and only preparing given
data from request for services and formatting it for
response.
All of sub-packages should use the same services
interfaces, diffe... | 28.875 | 54 | 0.816017 | 66 | 462 | 5.712121 | 0.606061 | 0.090186 | 0.095491 | 0.111406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 462 | 15 | 55 | 30.8 | 0.961735 | 0.980519 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
974c13a3ebcb86826ca3216faddaae29b8d46993 | 245 | py | Python | archived/archive-WSPS/modify_global_att.py | XiaoxiongXie/WRF-SUEWS | 51f8d2359b394016e65121f3baab908b1ad4d89c | [
"MIT"
] | 2 | 2020-09-24T09:15:31.000Z | 2020-09-28T16:16:30.000Z | archived/archive-WSPS/modify_global_att.py | XiaoxiongXie/WRF-SUEWS | 51f8d2359b394016e65121f3baab908b1ad4d89c | [
"MIT"
] | 3 | 2020-09-24T13:46:24.000Z | 2020-10-01T09:54:17.000Z | archived/archive-WSPS/modify_global_att.py | XiaoxiongXie/WRF-SUEWS | 51f8d2359b394016e65121f3baab908b1ad4d89c | [
"MIT"
] | 2 | 2020-10-01T09:46:58.000Z | 2022-01-09T10:38:21.000Z | #!/usr/bin/env python
import netCDF4 as nc4
import os
filename = os.path.join('/Users/zhenkunli/work/2018/WRFV3/run', 'wrfinput_d01')
print 'Processing file %s...' % filename
nc = nc4.Dataset(filename, 'a')
nc.SF_SURFACE_PHYSICS = 9
nc.close()
| 24.5 | 79 | 0.726531 | 39 | 245 | 4.487179 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050459 | 0.110204 | 245 | 9 | 80 | 27.222222 | 0.752294 | 0.081633 | 0 | 0 | 0 | 0 | 0.3125 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
976d30103ee0ad1012aff242e5d67605f2fb00a2 | 1,597 | py | Python | midiio/containers.py | blowfeld/python-midi-io | 8dd5c7fabc29bc407a6fb8987538c7a9dce68d94 | [
"MIT"
] | 1 | 2020-10-19T08:12:35.000Z | 2020-10-19T08:12:35.000Z | midiio/containers.py | blowfeld/python-midi-io | 8dd5c7fabc29bc407a6fb8987538c7a9dce68d94 | [
"MIT"
] | 3 | 2017-11-18T16:46:01.000Z | 2021-11-20T22:55:38.000Z | midiio/containers.py | blowfeld/python-midi-io | 8dd5c7fabc29bc407a6fb8987538c7a9dce68d94 | [
"MIT"
] | null | null | null | from pprint import pformat
class Pattern(object):
def __init__(self, tracks=[], resolution=220, format=1):
self._format = format
self._resolution = resolution
self._tracks = tuple(tracks)
@property
def format(self):
return self._format
@property
def resolution(self)... | 24.953125 | 95 | 0.619912 | 186 | 1,597 | 4.989247 | 0.182796 | 0.107759 | 0.086207 | 0.077586 | 0.364224 | 0.269397 | 0.161638 | 0.101293 | 0 | 0 | 0 | 0.003353 | 0.252974 | 1,597 | 63 | 96 | 25.349206 | 0.774518 | 0 | 0 | 0.26087 | 0 | 0 | 0.051972 | 0.015654 | 0 | 0 | 0 | 0 | 0 | 1 | 0.391304 | false | 0 | 0.021739 | 0.347826 | 0.804348 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
97b740717ca0bdeb0bb1cbe8a4771b0412e31734 | 503 | py | Python | SET/difference.py | ragulkesavan/Python-75-Hackathon | adda961155467a428938fc52e2d761bf5b786788 | [
"MIT"
] | null | null | null | SET/difference.py | ragulkesavan/Python-75-Hackathon | adda961155467a428938fc52e2d761bf5b786788 | [
"MIT"
] | null | null | null | SET/difference.py | ragulkesavan/Python-75-Hackathon | adda961155467a428938fc52e2d761bf5b786788 | [
"MIT"
] | null | null | null | phone=set(["mi","apple","samsung","giomee","jio","nokia","karbon"])
tv=set(["samsung","apple","onida","vediocon"])
brand=phone.difference(tv)
print "brands in phone : ",phone
print "brands in tv : ",tv
print "phone brands that do not have tv : ",brand
'''
OUTPUT:
brands in phone : set(['apple', 'samsung', 'jio', 'nok... | 35.928571 | 86 | 0.626243 | 71 | 503 | 4.43662 | 0.309859 | 0.101587 | 0.088889 | 0.107937 | 0.165079 | 0.165079 | 0.165079 | 0 | 0 | 0 | 0 | 0 | 0.127237 | 503 | 13 | 87 | 38.692308 | 0.71754 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
97d1eed2070eaf000dcbdb4bf3fe9d744a01be14 | 1,255 | py | Python | snafulib/executors/openshift.py | isabella232/snafu | 91cc181f4073fa16d5be9ae6202342102f75d128 | [
"Apache-2.0"
] | 31 | 2017-04-22T07:16:08.000Z | 2022-03-13T13:36:17.000Z | snafulib/executors/openshift.py | serviceprototypinglab/snafu | 91cc181f4073fa16d5be9ae6202342102f75d128 | [
"Apache-2.0"
] | 1 | 2022-02-18T13:07:37.000Z | 2022-02-18T13:07:37.000Z | snafulib/executors/openshift.py | isabella232/snafu | 91cc181f4073fa16d5be9ae6202342102f75d128 | [
"Apache-2.0"
] | 7 | 2017-08-17T11:47:52.000Z | 2022-02-18T11:51:03.000Z | # Snafu: Snake Functions - OpenShift Executor
import requests
import os
import configparser
import subprocess
container = "jszhaw/snafu"
endpoints = {}
def executecontrol(flaskrequest, tenant):
if not tenant in endpoints:
username = os.getenv("OPENSHIFT_USERNAME")
password = os.getenv("OPENSHIFT_PASSWORD")
p... | 31.375 | 122 | 0.717131 | 167 | 1,255 | 5.365269 | 0.467066 | 0.026786 | 0.05692 | 0.055804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006422 | 0.131474 | 1,255 | 39 | 123 | 32.179487 | 0.815596 | 0.115538 | 0 | 0.074074 | 0 | 0 | 0.242315 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.037037 | false | 0.148148 | 0.148148 | 0 | 0.296296 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8af0066c9df56b9dfc441a1e4b4117631b55bd62 | 3,006 | py | Python | tools/profiling/microbenchmarks/speedup.py | lalo/grpc | 4865c79548d4f83ebae4e10fbaf4c3ba10535c97 | [
"BSD-3-Clause"
] | null | null | null | tools/profiling/microbenchmarks/speedup.py | lalo/grpc | 4865c79548d4f83ebae4e10fbaf4c3ba10535c97 | [
"BSD-3-Clause"
] | null | null | null | tools/profiling/microbenchmarks/speedup.py | lalo/grpc | 4865c79548d4f83ebae4e10fbaf4c3ba10535c97 | [
"BSD-3-Clause"
] | 1 | 2020-11-04T04:19:45.000Z | 2020-11-04T04:19:45.000Z | # Copyright 2017, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 44.205882 | 372 | 0.720892 | 468 | 3,006 | 4.602564 | 0.463675 | 0.011142 | 0.012535 | 0.021356 | 0.159703 | 0.126277 | 0.126277 | 0.126277 | 0.126277 | 0.126277 | 0 | 0.240733 | 0.1833 | 3,006 | 67 | 373 | 44.865672 | 0.63666 | 0.489355 | 0 | 0.181818 | 0 | 0 | 0.005312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.060606 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c115d0dcb588341f74d0f27a5c67b230c70e0776 | 2,203 | py | Python | tests/extensions/aria_extension_tosca/simple_v1_0/functions/test_function_get_operation_output.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/extensions/aria_extension_tosca/simple_v1_0/functions/test_function_get_operation_output.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/extensions/aria_extension_tosca/simple_v1_0/functions/test_function_get_operation_output.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | 1 | 2020-06-16T15:13:06.000Z | 2020-06-16T15:13:06.000Z | # -*- coding: utf-8 -*-
# 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 "Lic... | 25.917647 | 99 | 0.71675 | 285 | 2,203 | 5.308772 | 0.424561 | 0.039656 | 0.071381 | 0.071381 | 0.384666 | 0.384666 | 0.317251 | 0.317251 | 0.256444 | 0.256444 | 0 | 0.006279 | 0.204721 | 2,203 | 84 | 100 | 26.22619 | 0.857306 | 0.362687 | 0 | 0.77193 | 0 | 0 | 0.750903 | 0.147292 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c118f0b44128ed4108fefd9f2643f8940209777b | 1,484 | py | Python | cy/old__init__.py | techiaith/anonymeiddiwr-beta | 13391fc62674503e1476d057d787456c1cd0f743 | [
"MIT"
] | null | null | null | cy/old__init__.py | techiaith/anonymeiddiwr-beta | 13391fc62674503e1476d057d787456c1cd0f743 | [
"MIT"
] | null | null | null | cy/old__init__.py | techiaith/anonymeiddiwr-beta | 13391fc62674503e1476d057d787456c1cd0f743 | [
"MIT"
] | null | null | null | # encoding: utf8
from __future__ import unicode_literals, print_function
# Gruff
#from spacy.lang.cy.lemmatization import lemmatize_doc
#from spacy.lang.cy.dictionary_pos_tagger import rule_based_pos_tag
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .tag_map import TAG_MAP
from .stop_words import STOP_W... | 29.68 | 82 | 0.786388 | 193 | 1,484 | 5.735751 | 0.336788 | 0.03794 | 0.075881 | 0.062331 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000782 | 0.138814 | 1,484 | 49 | 83 | 30.285714 | 0.865415 | 0.239892 | 0 | 0 | 0 | 0 | 0.008065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.481481 | 0 | 0.851852 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c11c1101c7284dfff505791ee890d86d4e6ea9a9 | 54 | py | Python | preprocessing/init_buffer.py | GPrathap/OpenBCIPython | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | [
"MIT"
] | 1 | 2021-11-07T12:01:08.000Z | 2021-11-07T12:01:08.000Z | preprocessing/init_buffer.py | GPrathap/OpenBCIPython | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | [
"MIT"
] | null | null | null | preprocessing/init_buffer.py | GPrathap/OpenBCIPython | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | [
"MIT"
] | 1 | 2020-10-15T08:35:01.000Z | 2020-10-15T08:35:01.000Z | ring_buffers = []
max_iteration = 10
channel_data = "" | 18 | 18 | 0.722222 | 7 | 54 | 5.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.148148 | 54 | 3 | 19 | 18 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c123379662e2eddb0a1b05c80adcd7fca1847567 | 193 | py | Python | libsheep/state.py | exogen/80sheep | a6da85f6c10c8088e2c86a186c2934e71e8d2d16 | [
"MIT"
] | 1 | 2016-05-09T03:32:09.000Z | 2016-05-09T03:32:09.000Z | libsheep/state.py | exogen/80sheep | a6da85f6c10c8088e2c86a186c2934e71e8d2d16 | [
"MIT"
] | null | null | null | libsheep/state.py | exogen/80sheep | a6da85f6c10c8088e2c86a186c2934e71e8d2d16 | [
"MIT"
] | null | null | null | from libsheep.filelist import FileListing
class State(object):
def __init__(self):
self.file_list = FileListing(None)
self.downloaded_lists = None
self.hubs = None
| 24.125 | 42 | 0.683938 | 23 | 193 | 5.478261 | 0.73913 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238342 | 193 | 7 | 43 | 27.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c15a11bff5706bd78f8d5633560270d5f1288958 | 1,198 | py | Python | Data Science With Python/22-network-analysis-in-python-(part-1)/02-important-nodes/07-networkx-betweenness-centrality-on-a-social-network.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 3 | 2019-05-12T04:49:24.000Z | 2020-05-06T00:40:28.000Z | Data Science With Python/22-network-analysis-in-python-(part-1)/02-important-nodes/07-networkx-betweenness-centrality-on-a-social-network.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | null | null | null | Data Science With Python/22-network-analysis-in-python-(part-1)/02-important-nodes/07-networkx-betweenness-centrality-on-a-social-network.py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 7 | 2018-11-06T17:43:31.000Z | 2020-11-07T21:08:16.000Z | '''
NetworkX betweenness centrality on a social network
Betweenness centrality is a node importance metric that uses information about the shortest paths in a network. It is defined as the fraction of all possible shortest paths between any pair of nodes that pass through the node.
NetworkX provides the nx.betweennes... | 49.916667 | 241 | 0.803005 | 195 | 1,198 | 4.866667 | 0.379487 | 0.221286 | 0.075869 | 0.054795 | 0.106428 | 0.05058 | 0.05058 | 0.05058 | 0 | 0 | 0 | 0.002935 | 0.146912 | 1,198 | 24 | 242 | 49.916667 | 0.925636 | 0.864775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c15b395be045c74bbf78970ce90b3d9d8a773036 | 667 | py | Python | sktracker/ui/mpl/matplotlib_widget.py | bnoi/scikit-tracker | 8771006a3a682ab299e4446c800c05f36a027df7 | [
"BSD-3-Clause"
] | 6 | 2016-03-03T12:45:32.000Z | 2018-07-06T18:51:46.000Z | sktracker/ui/mpl/matplotlib_widget.py | bnoi/scikit-tracker | 8771006a3a682ab299e4446c800c05f36a027df7 | [
"BSD-3-Clause"
] | 1 | 2021-05-12T07:54:20.000Z | 2021-05-12T07:54:20.000Z | sktracker/ui/mpl/matplotlib_widget.py | bnoi/scikit-tracker | 8771006a3a682ab299e4446c800c05f36a027df7 | [
"BSD-3-Clause"
] | 2 | 2017-11-27T13:40:43.000Z | 2020-12-12T18:31:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
import matplotlib.pyplot as plt
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
class MatplotlibWidget(FigureC... | 23 | 80 | 0.656672 | 72 | 667 | 5.680556 | 0.486111 | 0.085575 | 0.156479 | 0.06846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.256372 | 667 | 28 | 81 | 23.821429 | 0.820565 | 0.031484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c17c68ae3200877db56dbf358f2554f7b5e93369 | 630 | py | Python | tests/test_key_store.py | brickgao/cos-python-sdk | 52d22553e83d0be5c73e8d71a63417e275a32c8e | [
"MIT"
] | null | null | null | tests/test_key_store.py | brickgao/cos-python-sdk | 52d22553e83d0be5c73e8d71a63417e275a32c8e | [
"MIT"
] | null | null | null | tests/test_key_store.py | brickgao/cos-python-sdk | 52d22553e83d0be5c73e8d71a63417e275a32c8e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from contentos_sdk.key_store import KeyStore
def test_key_store():
key_store = KeyStore()
key_store.add_key("account1", "key1")
key_store.add_key("account2", "key2")
assert key_store.get_key("account1") == "key1"
assert key_store.get_accounts() == ["... | 30 | 64 | 0.693651 | 86 | 630 | 4.755814 | 0.383721 | 0.215159 | 0.107579 | 0.124694 | 0.161369 | 0.161369 | 0 | 0 | 0 | 0 | 0 | 0.027985 | 0.149206 | 630 | 20 | 65 | 31.5 | 0.735075 | 0.068254 | 0 | 0 | 0 | 0 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0.153846 | 0.076923 | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c18e05b054dc993ef3dcf4a3fdfe2bf5ac02fbe1 | 249 | py | Python | examples/tutorial/lcu_events.py | TheodorStraube/lcu-driver | 892e5695807a0ad27afa411b103a99fd64397f87 | [
"MIT"
] | 57 | 2019-06-07T09:35:00.000Z | 2022-03-09T06:31:47.000Z | examples/tutorial/lcu_events.py | TheodorStraube/lcu-driver | 892e5695807a0ad27afa411b103a99fd64397f87 | [
"MIT"
] | 11 | 2020-10-31T02:42:59.000Z | 2022-03-18T02:46:33.000Z | examples/tutorial/lcu_events.py | TheodorStraube/lcu-driver | 892e5695807a0ad27afa411b103a99fd64397f87 | [
"MIT"
] | 11 | 2021-01-07T19:09:09.000Z | 2022-03-20T06:54:06.000Z | from lcu_driver import Connector
connector = Connector()
@connector.ready
async def connect(connection):
print('LCU API is ready to be used.')
@connector.close
async def disconnect(connection):
print('Finished task')
connector.start()
| 15.5625 | 41 | 0.742972 | 32 | 249 | 5.75 | 0.65625 | 0.293478 | 0.293478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 249 | 15 | 42 | 16.6 | 0.87619 | 0 | 0 | 0 | 0 | 0 | 0.164659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c1d04f40b1dc8ffd40c7e8d1d706e8daa03e9421 | 5,600 | py | Python | tempest/tests/lib/services/identity/v3/test_protocols_client.py | cityofships/tempest | 59aa6811a3664d88b8939603b8e974644fbe21fa | [
"Apache-2.0"
] | 254 | 2015-01-05T19:22:52.000Z | 2022-03-29T08:14:54.000Z | tempest/tests/lib/services/identity/v3/test_protocols_client.py | cityofships/tempest | 59aa6811a3664d88b8939603b8e974644fbe21fa | [
"Apache-2.0"
] | 13 | 2015-03-02T15:53:04.000Z | 2022-02-16T02:28:14.000Z | tempest/tests/lib/services/identity/v3/test_protocols_client.py | cityofships/tempest | 59aa6811a3664d88b8939603b8e974644fbe21fa | [
"Apache-2.0"
] | 367 | 2015-01-07T15:05:39.000Z | 2022-03-04T09:50:35.000Z | # Copyright 2020 Samsung Electronics Co., Ltd
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 39.716312 | 79 | 0.664286 | 658 | 5,600 | 5.226444 | 0.199088 | 0.14888 | 0.066298 | 0.046525 | 0.73248 | 0.712126 | 0.712126 | 0.671125 | 0.530387 | 0.344868 | 0 | 0.010287 | 0.253571 | 5,600 | 140 | 80 | 40 | 0.81244 | 0.104464 | 0 | 0.358491 | 0 | 0 | 0.1722 | 0.0852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.028302 | 0 | 0.207547 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
c1d5ac280ecee69b50b2c5f6afb9b90afe4637a6 | 1,563 | py | Python | LintCode/chapter 43/603. Largest Divisible Subset/.ipynb_checkpoints/solution-checkpoint.py | vincent507cpu/Comprehensive-Algorithm-Solution | 04e01e49622457f09af2e1133954f043c0c92cb9 | [
"MIT"
] | 4 | 2020-06-26T00:45:53.000Z | 2021-04-19T12:23:32.000Z | LintCode/chapter 43/603. Largest Divisible Subset/solution.py | vincent507cpu/LeetCode-Comprehensive-Solution | 04e01e49622457f09af2e1133954f043c0c92cb9 | [
"MIT"
] | null | null | null | LintCode/chapter 43/603. Largest Divisible Subset/solution.py | vincent507cpu/LeetCode-Comprehensive-Solution | 04e01e49622457f09af2e1133954f043c0c92cb9 | [
"MIT"
] | null | null | null | class Solution:
# @param {int[]} nums a set of distinct positive integers
# @return {int[]} the largest subset
def largestDivisibleSubset(self, nums):
# Write your code here
if not nums:
return 0
nums = sorted(nums)
# n = len(nums)
dp, prev =... | 27.910714 | 61 | 0.408829 | 160 | 1,563 | 3.9125 | 0.26875 | 0.100639 | 0.033546 | 0.038339 | 0.044728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016753 | 0.503519 | 1,563 | 56 | 62 | 27.910714 | 0.789948 | 0.080614 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.078947 | false | 0 | 0 | 0 | 0.236842 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c1eccd50c4c0bef0bc236ab007c3bb33cdd0926d | 173 | py | Python | Exercicios/Desafio013.py | victorhugof94/Python | 8b42955634f3ae44bded350ac88396a02b1f6970 | [
"MIT"
] | null | null | null | Exercicios/Desafio013.py | victorhugof94/Python | 8b42955634f3ae44bded350ac88396a02b1f6970 | [
"MIT"
] | null | null | null | Exercicios/Desafio013.py | victorhugof94/Python | 8b42955634f3ae44bded350ac88396a02b1f6970 | [
"MIT"
] | null | null | null | salario = float(input('valor do salario:'))
aumento = salario + (salario* (15/100))
print('voce ganhou um aumento de salario seu salario agora é: R${:.2f}'.format(aumento))
| 43.25 | 88 | 0.705202 | 26 | 173 | 4.692308 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.127168 | 173 | 3 | 89 | 57.666667 | 0.768212 | 0 | 0 | 0 | 0 | 0 | 0.462428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c1f4bb133035976b48bb331afd3017e6ebbc488d | 1,908 | py | Python | tests/test_utils.py | bccho/pass-glm | 4ad14dd043532419dc413c509672b54d1eb8d516 | [
"MIT"
] | null | null | null | tests/test_utils.py | bccho/pass-glm | 4ad14dd043532419dc413c509672b54d1eb8d516 | [
"MIT"
] | null | null | null | tests/test_utils.py | bccho/pass-glm | 4ad14dd043532419dc413c509672b54d1eb8d516 | [
"MIT"
] | null | null | null | import os
import numpy.random as npr
from numpy.testing import *
import scipy.sparse as sp
from passglm.utils import *
def test_create_folder_if_not_exist():
try:
print 'Creating test folder...'
create_folder_if_not_exist('test_folder')
assert os.path.exists('test_folder')
print ... | 29.353846 | 55 | 0.62631 | 308 | 1,908 | 3.701299 | 0.198052 | 0.184211 | 0.115789 | 0.105263 | 0.668421 | 0.649123 | 0.649123 | 0.649123 | 0.575439 | 0.52193 | 0 | 0.031683 | 0.205975 | 1,908 | 64 | 56 | 29.8125 | 0.720792 | 0 | 0 | 0.5 | 0 | 0 | 0.060797 | 0 | 0 | 0 | 0 | 0 | 0.442308 | 0 | null | null | 0.019231 | 0.096154 | null | null | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de08610cedd78e43d431df85365d4dfba4c47907 | 4,193 | py | Python | users/forms.py | amjadcp/bookingLine-grpA-miniProject | f57fc06f85edfb08f9c170757fddbf7b6de6f35a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | users/forms.py | amjadcp/bookingLine-grpA-miniProject | f57fc06f85edfb08f9c170757fddbf7b6de6f35a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | users/forms.py | amjadcp/bookingLine-grpA-miniProject | f57fc06f85edfb08f9c170757fddbf7b6de6f35a | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from .models import *
class SignupForm(UserCreationForm):
class Meta:
model = User
fields = ('username', 'first_name', 'last_name', 'email', 'password1', 'password2')
def __init__(self, *args, **kargs):
sup... | 32.007634 | 91 | 0.463153 | 348 | 4,193 | 5.5 | 0.149425 | 0.094044 | 0.159875 | 0.206897 | 0.516719 | 0.516719 | 0.462382 | 0.169279 | 0.094044 | 0.094044 | 0 | 0.006731 | 0.36227 | 4,193 | 131 | 92 | 32.007634 | 0.70905 | 0 | 0 | 0.380165 | 0 | 0 | 0.276824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016529 | false | 0.107438 | 0.024793 | 0 | 0.07438 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a9b208fc8ef5bf90a9d2a6941fa2a45a0eec5410 | 8,536 | py | Python | src/migrations/versions/0930fdefb325_initial_migration.py | vishaltanwar96/Py-iTrack | 53fbd73829320337f204f3d03ec667ffa3477592 | [
"MIT"
] | 4 | 2020-08-06T11:07:20.000Z | 2020-11-20T15:45:13.000Z | src/migrations/versions/0930fdefb325_initial_migration.py | vishaltanwar96/Py-iTrack | 53fbd73829320337f204f3d03ec667ffa3477592 | [
"MIT"
] | null | null | null | src/migrations/versions/0930fdefb325_initial_migration.py | vishaltanwar96/Py-iTrack | 53fbd73829320337f204f3d03ec667ffa3477592 | [
"MIT"
] | null | null | null | """initial migration
Revision ID: 0930fdefb325
Revises:
Create Date: 2020-09-27 21:13:23.088570
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0930fdefb325'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto g... | 55.428571 | 118 | 0.534911 | 841 | 8,536 | 5.312723 | 0.117717 | 0.100269 | 0.141003 | 0.150403 | 0.794763 | 0.771486 | 0.729857 | 0.689346 | 0.558863 | 0.501343 | 0 | 0.010974 | 0.306115 | 8,536 | 153 | 119 | 55.79085 | 0.743373 | 0.033622 | 0 | 0.433824 | 0 | 0 | 0.144301 | 0.005602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0.014706 | 0.014706 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
a9b9a871d28a4764dfb7693ea647326d7012450b | 277 | py | Python | cyder/cydhcp/workgroup/forms.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 6 | 2015-04-16T23:18:22.000Z | 2020-08-25T22:50:13.000Z | cyder/cydhcp/workgroup/forms.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 267 | 2015-01-01T00:18:57.000Z | 2015-10-14T00:01:13.000Z | cyder/cydhcp/workgroup/forms.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 5 | 2015-03-23T00:57:09.000Z | 2019-09-09T22:42:37.000Z | from django import forms
from cyder.base.eav.forms import get_eav_form
from cyder.cydhcp.workgroup.models import Workgroup, WorkgroupAV
class WorkgroupForm(forms.ModelForm):
class Meta:
model = Workgroup
WorkgroupAVForm = get_eav_form(WorkgroupAV, Workgroup)
| 19.785714 | 64 | 0.787004 | 35 | 277 | 6.114286 | 0.542857 | 0.084112 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151625 | 277 | 13 | 65 | 21.307692 | 0.910638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a9ba579835c1afe9d5d13cdd3cf78a5b2c2856d9 | 742 | py | Python | Main/migrations/0005_auto_20200809_0710.py | anshumanprajapatiap/django-ecommerce- | 49e7c08fc2ddef969986985e1922184950a5ceff | [
"MIT"
] | 3 | 2020-08-11T06:20:56.000Z | 2020-10-24T14:25:57.000Z | Main/migrations/0005_auto_20200809_0710.py | anshumanprajapatiap/django-ecommerce | 49e7c08fc2ddef969986985e1922184950a5ceff | [
"MIT"
] | null | null | null | Main/migrations/0005_auto_20200809_0710.py | anshumanprajapatiap/django-ecommerce | 49e7c08fc2ddef969986985e1922184950a5ceff | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-09 01:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Main', '0004_auto_20200809_0425'),
]
operations = [
migrations.AlterField(
model_name='address',
name='apartment_addre... | 25.586207 | 62 | 0.578167 | 75 | 742 | 5.573333 | 0.52 | 0.143541 | 0.179426 | 0.208134 | 0.607656 | 0.607656 | 0.511962 | 0.511962 | 0.416268 | 0.416268 | 0 | 0.075875 | 0.307278 | 742 | 28 | 63 | 26.5 | 0.737354 | 0.057951 | 0 | 0.545455 | 1 | 0 | 0.117647 | 0.032999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a9bc2fb8cc5a87cb535142d90ecf6c0ccf9b146f | 1,342 | py | Python | vega/algorithms/nas/modnas/optim/model_optim/base.py | This-50m/vega | 43602d062331336d854d908ac3066f42b2ea3a92 | [
"MIT"
] | 724 | 2020-06-22T12:05:30.000Z | 2022-03-31T07:10:54.000Z | vega/algorithms/nas/modnas/optim/model_optim/base.py | NiuRc/vega | 52b53582fe7df95d7aacc8425013fd18645d079f | [
"MIT"
] | 147 | 2020-06-30T13:34:46.000Z | 2022-03-29T11:30:17.000Z | vega/algorithms/nas/modnas/optim/model_optim/base.py | NiuRc/vega | 52b53582fe7df95d7aacc8425013fd18645d079f | [
"MIT"
] | 160 | 2020-06-29T18:27:58.000Z | 2022-03-23T08:42:21.000Z | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | 36.27027 | 81 | 0.702683 | 178 | 1,342 | 5.213483 | 0.488764 | 0.048491 | 0.028017 | 0.049569 | 0.094828 | 0.094828 | 0.094828 | 0.094828 | 0.094828 | 0 | 0 | 0.008419 | 0.203428 | 1,342 | 36 | 82 | 37.277778 | 0.859682 | 0.461252 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a9dc3563ddac75de349c4809af9b6d68dd5964ad | 106 | py | Python | excript/lista3/q5.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | excript/lista3/q5.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | excript/lista3/q5.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | soma = 0
for i in range(0,101):
if(i%2==0):
soma+=i
print("A soma de todos os pares é:", soma) | 21.2 | 42 | 0.556604 | 23 | 106 | 2.565217 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0.264151 | 106 | 5 | 42 | 21.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.252336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a9de23120b1f70e9fb79e0ee6eae47eca55547c5 | 2,054 | py | Python | src/RIOT/tests/od/tests/02-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | 2 | 2020-04-30T08:17:45.000Z | 2020-05-23T08:46:54.000Z | src/RIOT/tests/od/tests/02-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | src/RIOT/tests/od/tests/02-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | 1 | 2020-02-21T09:21:45.000Z | 2020-02-21T09:21:45.000Z | #!/usr/bin/env python3
# Copyright (C) 2017 Hamburg University of Applied Sciences
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import sys
from testrunner import run
def testfunc(child):
... | 46.681818 | 116 | 0.638267 | 311 | 2,054 | 4.03537 | 0.366559 | 0.210359 | 0.305976 | 0.071713 | 0.529084 | 0.529084 | 0.509163 | 0.43745 | 0.323506 | 0.267729 | 0 | 0.188654 | 0.261928 | 2,054 | 43 | 117 | 47.767442 | 0.639182 | 0.117332 | 0 | 0.066667 | 0 | 0.033333 | 0.561704 | 0.058661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0.033333 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a9df5214be84ff611b6cdee71586384f662371b6 | 379 | py | Python | pytoggl/api/projects_api.py | cloew/pytoggl | ec559e532559bfeaeb0de7f18831d30ed84f5ff1 | [
"MIT"
] | null | null | null | pytoggl/api/projects_api.py | cloew/pytoggl | ec559e532559bfeaeb0de7f18831d30ed84f5ff1 | [
"MIT"
] | null | null | null | pytoggl/api/projects_api.py | cloew/pytoggl | ec559e532559bfeaeb0de7f18831d30ed84f5ff1 | [
"MIT"
] | null | null | null | from .actions import AllFromWorkspaces, Get, WithName
from .api_for import api_for
from .model_api import ModelApi
from ..requests import RequestApis
from ..model import Project
@api_for(Project, RequestApis.Projects)
class ProjectsApi(ModelApi):
""" Represents the Toggl Projects API """
all = AllFrom... | 31.583333 | 54 | 0.733509 | 44 | 379 | 6.227273 | 0.477273 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182058 | 379 | 12 | 55 | 31.583333 | 0.883871 | 0.087071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.9 | 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 | 1 | 0 | 0 | 2 |
a9e29337adc9d3ccffaa9a42248f46b7b76d1765 | 480 | py | Python | codev/core/log.py | baseclue/codev | 7965ffc036ea217e05ca1f566e7b1917c0a67887 | [
"Apache-2.0"
] | 4 | 2016-03-21T12:20:52.000Z | 2017-02-02T09:08:19.000Z | codev/core/log.py | baseclue/codev | 7965ffc036ea217e05ca1f566e7b1917c0a67887 | [
"Apache-2.0"
] | null | null | null | codev/core/log.py | baseclue/codev | 7965ffc036ea217e05ca1f566e7b1917c0a67887 | [
"Apache-2.0"
] | null | null | null | import logging
LOGLEVELS = {
'info': logging.INFO,
'debug': logging.DEBUG,
}
actual_loglevel = 'info'
class LoglevelFilter(logging.Filter):
def __init__(self, loglevel):
self.loglevel = loglevel
super().__init__()
def filter(self, record):
if record.levelno == self.loglevel... | 20 | 44 | 0.685417 | 51 | 480 | 6.215686 | 0.392157 | 0.264984 | 0.255521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20625 | 480 | 23 | 45 | 20.869565 | 0.832021 | 0 | 0 | 0 | 0 | 0 | 0.027083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a9efe50ebc395c79d136c9ed223bd0fa73445f27 | 189 | py | Python | nablapps/poll/apps.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/poll/apps.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/poll/apps.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | """
App configs for poll app
"""
from django.apps import AppConfig
class PollConfig(AppConfig):
"""Default poll config"""
name = 'nablapps.poll'
verbose_name = 'Avstemninger'
| 17.181818 | 33 | 0.687831 | 22 | 189 | 5.863636 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 189 | 10 | 34 | 18.9 | 0.843137 | 0.232804 | 0 | 0 | 0 | 0 | 0.189394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
a9f3f4d963793624fa37eb908b72250431fcb5b9 | 542 | py | Python | app/models/registration.py | bmstu-iu8-g1-2019-project/lingvo-subtitles | 23376822725cf5c076783fa03c4d31ae1de14687 | [
"MIT"
] | null | null | null | app/models/registration.py | bmstu-iu8-g1-2019-project/lingvo-subtitles | 23376822725cf5c076783fa03c4d31ae1de14687 | [
"MIT"
] | null | null | null | app/models/registration.py | bmstu-iu8-g1-2019-project/lingvo-subtitles | 23376822725cf5c076783fa03c4d31ae1de14687 | [
"MIT"
] | null | null | null | from collections import Counter
from werkzeug.security import generate_password_hash
from app import db
def register_user(email, username, password):
db.auth.drop()
if db.auth.find_one({"username": username}) is not None:
return -1
if db.auth.find_one({"email": email}) is not None:
return... | 25.809524 | 60 | 0.664207 | 71 | 542 | 4.901408 | 0.450704 | 0.068966 | 0.114943 | 0.068966 | 0.178161 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004773 | 0.226937 | 542 | 20 | 61 | 27.1 | 0.825776 | 0 | 0 | 0.125 | 1 | 0 | 0.084871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.1875 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a9f79a8550cbe2ffbf9de0e46704c3f19c02a79f | 373 | py | Python | examples/courseware/shapes.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | 2 | 2015-09-17T01:27:02.000Z | 2020-11-26T12:07:13.000Z | examples/courseware/shapes.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | null | null | null | examples/courseware/shapes.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | null | null | null | # draw a rectangle
# rect(x, y, width, height)
rect(20, 50, 100, 200)
rect(130, 50, 100, 200)
oval(240, 50, 100, 200)
oval(20, 250, 100, 100)
oval(130, 250, 100, 100)
rect(240, 250, 100, 100)
for x in range(20, 300, 50):
rect(x, 370, 40, 40)
for x in range(20, 300, 50):
if random() > 0.5:
rect(x,... | 16.217391 | 28 | 0.557641 | 72 | 373 | 2.888889 | 0.388889 | 0.072115 | 0.115385 | 0.115385 | 0.173077 | 0.173077 | 0.173077 | 0 | 0 | 0 | 0 | 0.376812 | 0.260054 | 373 | 22 | 29 | 16.954545 | 0.376812 | 0.112601 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e70cb8d5f07a65dd29cb11814472b7f5f34cf181 | 413 | py | Python | apps/auth/forms.py | capy-pl/nccu-grade-system | db7107d56e45d535eed92b47c06e0d5c06f983a2 | [
"Apache-2.0"
] | 2 | 2019-01-14T17:20:06.000Z | 2019-05-06T03:26:23.000Z | apps/auth/forms.py | capy-pl/nccu-grade-system | db7107d56e45d535eed92b47c06e0d5c06f983a2 | [
"Apache-2.0"
] | 4 | 2018-12-25T15:06:35.000Z | 2019-01-05T08:02:36.000Z | apps/auth/forms.py | capy-pl/nccu-grade-system | db7107d56e45d535eed92b47c06e0d5c06f983a2 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.password_validation import CommonPasswordValidator
class ChangePasswordForm(forms.Form):
password = forms.CharField(label='密碼', max_length=50, widget=forms.PasswordInput)
def clean_password(self):
password = self.cleaned_data['password']
valida... | 34.416667 | 85 | 0.753027 | 43 | 413 | 7.139535 | 0.651163 | 0.065147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005797 | 0.164649 | 413 | 11 | 86 | 37.545455 | 0.884058 | 0 | 0 | 0 | 0 | 0 | 0.024213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.888889 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
e711e9ffc872c6227dcc744b6182d637eafea65d | 759 | py | Python | pastetron/pagination.py | kgaughan/pastetron | 2f605bedb7a6947a1eb60a1e3f2b63c037e3fe49 | [
"MIT"
] | 1 | 2015-09-25T22:11:32.000Z | 2015-09-25T22:11:32.000Z | pastetron/pagination.py | kgaughan/pastetron | 2f605bedb7a6947a1eb60a1e3f2b63c037e3fe49 | [
"MIT"
] | null | null | null | pastetron/pagination.py | kgaughan/pastetron | 2f605bedb7a6947a1eb60a1e3f2b63c037e3fe49 | [
"MIT"
] | null | null | null | """
Pagination support code.
"""
BUFFER = 5
def paginator(page_num, max_page, buffer_size=BUFFER):
"""
Pagination generator.
Generates a sequence of page numbers, giving the pages at the beginning
and end, and around the current page, with a number of buffer pages on
each side of both. Omitted ... | 26.172414 | 78 | 0.648221 | 117 | 759 | 4.042735 | 0.410256 | 0.103594 | 0.164905 | 0.215645 | 0.266385 | 0.221987 | 0.109937 | 0 | 0 | 0 | 0 | 0.014572 | 0.27668 | 759 | 28 | 79 | 27.107143 | 0.846995 | 0.349144 | 0 | 0.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e7195e39c28378891f6a854d918f59f6617bb12b | 1,126 | py | Python | app/projects/migrations/0003_auto_20201214_1344.py | JoaoAPS/BugTracker | 5bb2db85227201c18e50e0fa07822b0623289ec4 | [
"MIT"
] | null | null | null | app/projects/migrations/0003_auto_20201214_1344.py | JoaoAPS/BugTracker | 5bb2db85227201c18e50e0fa07822b0623289ec4 | [
"MIT"
] | null | null | null | app/projects/migrations/0003_auto_20201214_1344.py | JoaoAPS/BugTracker | 5bb2db85227201c18e50e0fa07822b0623289ec4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-14 13:44
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('projects', '0002_auto_20201202_1826'),
]
operati... | 31.277778 | 118 | 0.624334 | 112 | 1,126 | 6.107143 | 0.473214 | 0.116959 | 0.146199 | 0.169591 | 0.47076 | 0.47076 | 0.263158 | 0 | 0 | 0 | 0 | 0.037576 | 0.267318 | 1,126 | 35 | 119 | 32.171429 | 0.791515 | 0.039964 | 0 | 0.413793 | 1 | 0 | 0.117702 | 0.021316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e71d8640f648c91c132e793f9966b2f85d25064f | 321 | py | Python | app.py | sztanyoo/K2010-envvars | fcf0ccc356b865b9ea4cb80005105271a58ed611 | [
"MIT"
] | null | null | null | app.py | sztanyoo/K2010-envvars | fcf0ccc356b865b9ea4cb80005105271a58ed611 | [
"MIT"
] | null | null | null | app.py | sztanyoo/K2010-envvars | fcf0ccc356b865b9ea4cb80005105271a58ed611 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import render_template
import socket
import os
app = Flask(__name__)
TARGET = os.environ.get('TARGET')
@app.route("/")
def main():
return render_template('target.html', name=socket.gethostname(), target=TARGET)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080)... | 18.882353 | 83 | 0.713396 | 47 | 321 | 4.574468 | 0.510638 | 0.027907 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028881 | 0.137072 | 321 | 16 | 84 | 20.0625 | 0.747292 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e735da3f9351417bac702ec156eec7414c20e3c4 | 12,364 | py | Python | delox.py | onexploit/onexploit | 15b07ff6f93f4ddd03b482959c500f1db2edc039 | [
"MIT"
] | null | null | null | delox.py | onexploit/onexploit | 15b07ff6f93f4ddd03b482959c500f1db2edc039 | [
"MIT"
] | null | null | null | delox.py | onexploit/onexploit | 15b07ff6f93f4ddd03b482959c500f1db2edc039 | [
"MIT"
] | null | null | null | import random
from requests import get
import socket
import os , win32gui , win32con
import getpass
import time
from init import banner
from init.color import Color
def ClearCSR():
os.system('clear')
os.system('cls')
def username():
getpass.getuser()
def ip_local():
get('https://ap... | 42.342466 | 160 | 0.410789 | 1,333 | 12,364 | 3.765941 | 0.153038 | 0.084462 | 0.013147 | 0.087849 | 0.676892 | 0.646215 | 0.627291 | 0.620916 | 0.620916 | 0.620916 | 0 | 0.038451 | 0.406826 | 12,364 | 291 | 161 | 42.487973 | 0.646032 | 0.05419 | 0 | 0.592742 | 0 | 0.004032 | 0.263334 | 0.024866 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056452 | false | 0.052419 | 0.032258 | 0 | 0.092742 | 0.245968 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e7392ab44027b89133d39ca29c9b3f1fd98daf39 | 1,156 | py | Python | src/pysonata/sonata/tests/circuit/conftest.py | AllenInstitute/project7 | 901350cdf5c57a56b7efece2a309c72bdf5f2608 | [
"BSD-3-Clause"
] | 35 | 2018-04-10T13:54:27.000Z | 2022-03-12T09:22:31.000Z | src/pysonata/sonata/tests/circuit/conftest.py | AllenInstitute/project7 | 901350cdf5c57a56b7efece2a309c72bdf5f2608 | [
"BSD-3-Clause"
] | 92 | 2018-03-19T10:14:18.000Z | 2022-01-29T15:21:47.000Z | src/pysonata/sonata/tests/circuit/conftest.py | AllenInstitute/project7 | 901350cdf5c57a56b7efece2a309c72bdf5f2608 | [
"BSD-3-Clause"
] | 25 | 2018-03-16T23:14:42.000Z | 2022-02-09T19:37:05.000Z | import os
import pytest
from six import string_types
from sonata.circuit.file import File
def _append_fdir(files):
fdir = os.path.dirname(os.path.realpath(__file__))
if isinstance(files, string_types):
return os.path.join(fdir, files)
else:
return [os.path.join(fdir, f) for f in files]
... | 37.290323 | 118 | 0.684256 | 162 | 1,156 | 4.518519 | 0.246914 | 0.10929 | 0.122951 | 0.125683 | 0.646175 | 0.51776 | 0.478142 | 0.478142 | 0.478142 | 0.478142 | 0 | 0.019417 | 0.198097 | 1,156 | 31 | 119 | 37.290323 | 0.770227 | 0 | 0 | 0.363636 | 0 | 0 | 0.252377 | 0.217805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.136364 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
e73a9a856eec52409b4256399bd7134cda02fe56 | 3,116 | py | Python | images2h5.py | prlz77/LSTM-on-CNN | c71ac68d8d1052a69531cb9b8f969ed04eba2205 | [
"MIT"
] | 11 | 2017-02-26T08:07:46.000Z | 2022-03-01T06:22:09.000Z | images2h5.py | prlz77/LSTM-on-CNN | c71ac68d8d1052a69531cb9b8f969ed04eba2205 | [
"MIT"
] | null | null | null | images2h5.py | prlz77/LSTM-on-CNN | c71ac68d8d1052a69531cb9b8f969ed04eba2205 | [
"MIT"
] | 4 | 2019-11-27T16:59:40.000Z | 2021-12-06T21:21:07.000Z | # -*- coding: utf-8 -*-
""" Generates the outputs of an arbitrary CNN layer. """
__author__ = "Pau Rodríguez López, ISELAB, CVC-UAB"
__email__ = "pau.rodri1@gmail.com"
import argparse
import h5py
import cv2
import os
import numpy as np
parser = argparse.ArgumentParser(description="Reads a list of images, labels and ... | 33.505376 | 121 | 0.656611 | 476 | 3,116 | 4.186975 | 0.294118 | 0.040642 | 0.051179 | 0.022579 | 0.156548 | 0.093327 | 0.067235 | 0.067235 | 0.038133 | 0.038133 | 0 | 0.017598 | 0.161104 | 3,116 | 93 | 122 | 33.505376 | 0.744836 | 0.014121 | 0 | 0.092105 | 1 | 0 | 0.2286 | 0.010949 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065789 | null | null | 0.065789 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.