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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8947ad08bef2deb3269a7b91e8e8b3e276ee0925 | 1,552 | py | Python | boto3_type_annotations/boto3_type_annotations/s3control/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/s3control/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/s3control/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from typing import Union
from botocore.paginate import Paginator
from botocore.waiter import Waiter
from typing import List
class Client(BaseClient):
def can_paginate(self, operation_name: str = None):
pass
def... | 33.73913 | 210 | 0.698454 | 193 | 1,552 | 5.492228 | 0.300518 | 0.072642 | 0.10566 | 0.059434 | 0.175472 | 0.062264 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213273 | 1,552 | 45 | 211 | 34.488889 | 0.868141 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.375 | 0.21875 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8971d5cd2b6e7c641df590fe5b687f2a12c7cbc6 | 317 | bzl | Python | platform/runc/deps.bzl | AngelAlvie/homeworld | 84406acd0ea03ddd4c807868b204a04898e639e3 | [
"MIT"
] | 18 | 2017-06-24T08:27:52.000Z | 2022-01-04T08:41:11.000Z | platform/runc/deps.bzl | AngelAlvie/homeworld | 84406acd0ea03ddd4c807868b204a04898e639e3 | [
"MIT"
] | 453 | 2017-07-01T14:24:39.000Z | 2020-07-02T05:32:25.000Z | platform/runc/deps.bzl | AngelAlvie/homeworld | 84406acd0ea03ddd4c807868b204a04898e639e3 | [
"MIT"
] | 19 | 2017-07-02T19:59:03.000Z | 2020-02-23T00:24:54.000Z | load("@bazel_gazelle//:deps.bzl", "go_repository")
def runc_dependencies():
go_repository(
name = "com_github_opencontainers_runc",
commit = "029124da7af7360afa781a0234d1b083550f797c", # v1.0.0-rc7 plus a few patches for a regression
importpath = "github.com/opencontainers/runc",
)
| 35.222222 | 110 | 0.70347 | 35 | 317 | 6.171429 | 0.742857 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123552 | 0.182965 | 317 | 8 | 111 | 39.625 | 0.710425 | 0.14511 | 0 | 0 | 0 | 0 | 0.513011 | 0.464684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8971f4310eab2ed0e57777e4d021c75697933c40 | 167 | py | Python | problem0564.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0564.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0564.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #564 Maximal polygons - Project Euler
# https://projecteuler.net/problem=564
#
# Code by Kevin Marciniak
#
###########################
| 18.555556 | 39 | 0.479042 | 14 | 167 | 5.714286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.113772 | 167 | 8 | 40 | 20.875 | 0.5 | 0.580838 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8973c359dea15d0c0af615072b5f3cbaeeb7c102 | 181 | py | Python | main/frontend.py | batpad/go-api | 6c187396fddae9ebcb923540824c86c40f8254bb | [
"MIT"
] | null | null | null | main/frontend.py | batpad/go-api | 6c187396fddae9ebcb923540824c86c40f8254bb | [
"MIT"
] | 5 | 2020-06-06T00:54:03.000Z | 2021-11-15T17:49:56.000Z | main/frontend.py | batpad/go-api | 6c187396fddae9ebcb923540824c86c40f8254bb | [
"MIT"
] | null | null | null | import os
frontend_url = os.environ.get('FRONTEND_URL')
if frontend_url == 'prddsgoproxyapp.azurewebsites.net':
# We use a nicer frontend URL:
frontend_url = 'go.ifrc.org'
| 25.857143 | 55 | 0.729282 | 26 | 181 | 4.923077 | 0.653846 | 0.429688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154696 | 181 | 6 | 56 | 30.166667 | 0.836601 | 0.154696 | 0 | 0 | 0 | 0 | 0.370861 | 0.218543 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 3 |
89793951214ab1fa6bc8c2966cc7278b32ed6d07 | 1,430 | py | Python | py/common/utils.py | sonya/eea | b09502354eb6ce7975a21aa97dd3c812852b0626 | [
"Apache-2.0"
] | 1 | 2020-08-12T19:42:45.000Z | 2020-08-12T19:42:45.000Z | py/common/utils.py | sonya/eea | b09502354eb6ce7975a21aa97dd3c812852b0626 | [
"Apache-2.0"
] | null | null | null | py/common/utils.py | sonya/eea | b09502354eb6ce7975a21aa97dd3c812852b0626 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2012 Sonya Huang
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 32.5 | 133 | 0.722378 | 234 | 1,430 | 4.376068 | 0.525641 | 0.058594 | 0.025391 | 0.03125 | 0.072266 | 0.072266 | 0 | 0 | 0 | 0 | 0 | 0.046721 | 0.146853 | 1,430 | 43 | 134 | 33.255814 | 0.792623 | 0.566434 | 0 | 0 | 0 | 0 | 0.060201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8983bb0ef28aead6dc364a46158dac5892e59fac | 290 | py | Python | abc151/c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc151/c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc151/c.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | n, m = map(int, input().split())
a = [0] * (n+1)
b = [0] * (n+1)
c = 0
for i in [0]*(m):
s = input().split()
if a[int(s[0])] == 0:
if s[1] == "AC":
a[int(s[0])] = 1
c += b[int(s[0])]
else:
b[int(s[0])] += 1
print(sum(a), c)
| 14.5 | 32 | 0.334483 | 54 | 290 | 1.796296 | 0.37037 | 0.164948 | 0.206186 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078212 | 0.382759 | 290 | 19 | 33 | 15.263158 | 0.463687 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 1 | null | 0 | 1 | 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 | 3 |
898e0ee149a37f39f8e53f5e09d23292246eba5f | 260 | py | Python | test/Python/extension_coexistence.py | cathyzhyi/mlir-npcomp | 79a3f639bfb449ba1409ff6dff161badf5a11b44 | [
"Apache-2.0"
] | null | null | null | test/Python/extension_coexistence.py | cathyzhyi/mlir-npcomp | 79a3f639bfb449ba1409ff6dff161badf5a11b44 | [
"Apache-2.0"
] | 6 | 2020-10-21T18:18:10.000Z | 2021-04-02T20:38:28.000Z | test/Python/extension_coexistence.py | cathyzhyi/mlir-npcomp | 79a3f639bfb449ba1409ff6dff161badf5a11b44 | [
"Apache-2.0"
] | null | null | null | # Some checks that we can import the various extensions and libraries and
# not have symbol collisions or other goings on.
# RUN: %PYTHON %s
import sys
print(f"PYTHONPATH={sys.path}")
import mlir
import npcomp
import _npcomp
print("Extensions all loaded")
| 18.571429 | 73 | 0.765385 | 40 | 260 | 4.95 | 0.775 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161538 | 260 | 13 | 74 | 20 | 0.908257 | 0.515385 | 0 | 0 | 0 | 0 | 0.344262 | 0.172131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8992fd77900e316395938e00065dc5be9d128edb | 200 | py | Python | v2/backend/site/models/contact_submission.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 558 | 2017-10-04T14:33:18.000Z | 2022-03-24T21:25:08.000Z | v2/backend/site/models/contact_submission.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 22 | 2018-04-29T04:25:49.000Z | 2021-08-02T17:26:02.000Z | v2/backend/site/models/contact_submission.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 127 | 2017-11-14T19:47:27.000Z | 2022-03-24T21:25:12.000Z | from backend.database import (
Model,
Column,
String,
Text,
)
class ContactSubmission(Model):
name = Column(String(50))
email = Column(String(50))
message = Column(Text)
| 15.384615 | 31 | 0.635 | 22 | 200 | 5.772727 | 0.636364 | 0.283465 | 0.220472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.25 | 200 | 12 | 32 | 16.666667 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.5 | 0 | 1 | 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 | 3 |
8993a6dadc2628eaec23371e0e1ac1e14b59f310 | 76 | py | Python | venv/player_data/player_state.py | EpicNicks/new-fork-discord-bot | 73893dbf3455a7edefe21625b24cde77f3978e56 | [
"MIT"
] | null | null | null | venv/player_data/player_state.py | EpicNicks/new-fork-discord-bot | 73893dbf3455a7edefe21625b24cde77f3978e56 | [
"MIT"
] | null | null | null | venv/player_data/player_state.py | EpicNicks/new-fork-discord-bot | 73893dbf3455a7edefe21625b24cde77f3978e56 | [
"MIT"
] | null | null | null |
from enum import Enum
class PlayerState(Enum):
NONE = 1
CASINO = 2 | 12.666667 | 24 | 0.657895 | 11 | 76 | 4.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.276316 | 76 | 6 | 25 | 12.666667 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8997c6eeb77822ebfc697e3356a4ca6e466d1df2 | 1,149 | py | Python | memrise/core/repositories/base.py | kolesnikov-bn/django-memrise-scraper | 00dddb53f04ce2f794fe3611ea97190ef8265079 | [
"MIT"
] | null | null | null | memrise/core/repositories/base.py | kolesnikov-bn/django-memrise-scraper | 00dddb53f04ce2f794fe3611ea97190ef8265079 | [
"MIT"
] | null | null | null | memrise/core/repositories/base.py | kolesnikov-bn/django-memrise-scraper | 00dddb53f04ce2f794fe3611ea97190ef8265079 | [
"MIT"
] | null | null | null | from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Generic, List, TypeVar, TYPE_CHECKING
from memrise.core.modules.actions.actions_batch import ActionsBatch
from memrise.core.modules.selectors import DiffContainer
if TYPE_CHECKING:
from mem... | 29.461538 | 75 | 0.736292 | 122 | 1,149 | 6.836066 | 0.434426 | 0.101918 | 0.053957 | 0.089928 | 0.269784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174064 | 1,149 | 38 | 76 | 30.236842 | 0.87882 | 0.150566 | 0 | 0.227273 | 0 | 0 | 0.011591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.318182 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
89afb2d6b130049e56655d095164441670969b7e | 1,309 | py | Python | alpha_zero/tests/test_reversi.py | tsukushibito/python_alpha_zero | 59412fe417175cbb6ecd1dd90b6a2d47781c6e38 | [
"MIT"
] | null | null | null | alpha_zero/tests/test_reversi.py | tsukushibito/python_alpha_zero | 59412fe417175cbb6ecd1dd90b6a2d47781c6e38 | [
"MIT"
] | null | null | null | alpha_zero/tests/test_reversi.py | tsukushibito/python_alpha_zero | 59412fe417175cbb6ecd1dd90b6a2d47781c6e38 | [
"MIT"
] | null | null | null | from alpha_zero.game import Game
from alpha_zero.reversi.ai import ReversiDualNetwork
from alpha_zero.reversi.ai import search_with_mtcs
from alpha_zero.reversi.ai import choice_next_action
from alpha_zero.reversi import ReversiState
from alpha_zero.reversi import run_self_match
from alpha_zero.reversi import save_sel... | 26.18 | 66 | 0.753247 | 182 | 1,309 | 5.021978 | 0.32967 | 0.088621 | 0.128009 | 0.175055 | 0.353392 | 0.181619 | 0.089716 | 0.089716 | 0 | 0 | 0 | 0.0065 | 0.177235 | 1,309 | 49 | 67 | 26.714286 | 0.841226 | 0.063407 | 0 | 0.071429 | 0 | 0 | 0.006574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.357143 | null | null | 0.035714 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
89b53aa9aec1ab1b130fdaa43710688b22fc0846 | 245 | py | Python | front_end/django-project/cyder/models/admin.py | Jonathan56/CyDER | 58cc88f5140585b6d4d9073eca29e3d3b324eb5e | [
"BSD-3-Clause-LBNL"
] | 10 | 2017-05-03T18:00:49.000Z | 2021-07-25T03:09:32.000Z | front_end/django-project/cyder/models/admin.py | Jonathan56/CyDER | 58cc88f5140585b6d4d9073eca29e3d3b324eb5e | [
"BSD-3-Clause-LBNL"
] | null | null | null | front_end/django-project/cyder/models/admin.py | Jonathan56/CyDER | 58cc88f5140585b6d4d9073eca29e3d3b324eb5e | [
"BSD-3-Clause-LBNL"
] | 2 | 2018-02-12T17:14:15.000Z | 2021-02-02T02:12:27.000Z | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Model)
admin.site.register(Node)
admin.site.register(Section)
admin.site.register(Device)
admin.site.register(Load)
admin.site.register(PV)
| 22.272727 | 32 | 0.8 | 36 | 245 | 5.444444 | 0.444444 | 0.27551 | 0.520408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 245 | 10 | 33 | 24.5 | 0.871111 | 0.106122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98238c2929415f8471280fb63c011dd04ce2ff15 | 1,007 | py | Python | src/services/stream/amazon.py | flipstables/holo | 4e86ce74172318ab179fede29d849e34e92c7b0b | [
"MIT"
] | 102 | 2016-01-07T21:54:42.000Z | 2022-01-17T02:03:05.000Z | src/services/stream/amazon.py | flipstables/holo | 4e86ce74172318ab179fede29d849e34e92c7b0b | [
"MIT"
] | 25 | 2016-01-10T11:46:40.000Z | 2018-06-19T14:47:04.000Z | src/services/stream/amazon.py | flipstables/holo | 4e86ce74172318ab179fede29d849e34e92c7b0b | [
"MIT"
] | 36 | 2016-02-18T17:37:17.000Z | 2019-02-24T02:01:40.000Z | # https://www.amazon.com/dp/B01NCUV2FV
# https://www.amazon.com/-/dp/B01NCUV2FV
# https://www.amazon.com/Scums-Wish/dp/B01NCUV2FV
# https://www.amazon.com/gp/product/B01NCUV2FV
from logging import debug, info, warning, error
import re
from .. import AbstractServiceHandler
class ServiceHandler(AbstractServiceHandler)... | 23.97619 | 92 | 0.71003 | 144 | 1,007 | 4.763889 | 0.416667 | 0.078717 | 0.102041 | 0.123907 | 0.1793 | 0.151604 | 0.109329 | 0.109329 | 0.109329 | 0.109329 | 0 | 0.017162 | 0.132075 | 1,007 | 41 | 93 | 24.560976 | 0.767735 | 0.224429 | 0 | 0.095238 | 0 | 0 | 0.126779 | 0.071151 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.190476 | 0.857143 | 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 | 1 | 0 | 0 | 3 |
982bd4a0344cdc95d635d830f87de07538f53cf5 | 2,060 | py | Python | test/service_descriptors/service.py | argo-vision/pyservices | 0de442389cc0cd3bd007ca19a72c6168d3dab4c5 | [
"MIT"
] | 2 | 2019-04-25T21:10:27.000Z | 2019-07-08T07:56:43.000Z | test/service_descriptors/service.py | argo-vision/pyservices | 0de442389cc0cd3bd007ca19a72c6168d3dab4c5 | [
"MIT"
] | 2 | 2019-07-09T12:50:54.000Z | 2019-07-10T16:53:57.000Z | test/service_descriptors/service.py | argo-vision/pyservices | 0de442389cc0cd3bd007ca19a72c6168d3dab4c5 | [
"MIT"
] | 4 | 2019-06-30T08:53:15.000Z | 2019-07-08T15:41:45.000Z | from pyservices.service_descriptors.layer_supertypes import Service
from pyservices.service_descriptors.interfaces import RPC, \
RestResourceInterface, RPCInterface
from pyservices.data_descriptors.entity_codecs import JSON
from test.data_descriptors.meta_models import *
class AccountManager(Service):
service... | 30.294118 | 67 | 0.611165 | 240 | 2,060 | 5.075 | 0.3 | 0.032841 | 0.027094 | 0.034483 | 0.170772 | 0.128079 | 0.095238 | 0.095238 | 0.095238 | 0.07225 | 0 | 0.009136 | 0.309223 | 2,060 | 67 | 68 | 30.746269 | 0.846803 | 0.032039 | 0 | 0.183673 | 0 | 0 | 0.031658 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 1 | 0.244898 | false | 0 | 0.081633 | 0.142857 | 0.612245 | 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 | 1 | 0 | 0 | 3 |
9830811c1e99830bd2b82f7bd8b2a5e6269e4680 | 399 | py | Python | adie/tests/test_spike.py | willstrawson/adie_ongoingthoughts | a9ba9e8e4326fd528db72eac8ed5cc932fc490b5 | [
"MIT"
] | 1 | 2021-06-04T15:39:14.000Z | 2021-06-04T15:39:14.000Z | adie/tests/test_spike.py | willstrawson/adie_ongoingthoughts | a9ba9e8e4326fd528db72eac8ed5cc932fc490b5 | [
"MIT"
] | 27 | 2020-11-30T11:13:00.000Z | 2021-05-02T07:58:37.000Z | adie/tests/test_spike.py | willstrawson/adie_ongoingthoughts | a9ba9e8e4326fd528db72eac8ed5cc932fc490b5 | [
"MIT"
] | 4 | 2020-11-27T13:49:31.000Z | 2021-04-28T15:51:09.000Z | import os
import numpy as np
from adie.spike import smr2array
from adie.tests import get_test_data_path
test_file = os.path.join(get_test_data_path(), "file.smr")
def test_smr2array():
out = smr2array(test_file)
assert type(out) == tuple
assert type(out[0]) == list
assert type(out[0][0]) == dict
... | 22.166667 | 58 | 0.681704 | 66 | 399 | 3.984848 | 0.439394 | 0.152091 | 0.197719 | 0.114068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051988 | 0.180451 | 399 | 17 | 59 | 23.470588 | 0.752294 | 0 | 0 | 0 | 0 | 0 | 0.02005 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
98450c619d5b4e0dcc1b79954887f012934d0dad | 833 | py | Python | tenant_workspace/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 1 | 2020-07-16T10:58:23.000Z | 2020-07-16T10:58:23.000Z | tenant_workspace/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 13 | 2018-11-30T02:29:39.000Z | 2022-03-11T23:35:49.000Z | tenant_workspace/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | null | null | null | from django.conf.urls import include, url
from tenant_workspace.views import workspace_view, module_view
urlpatterns = (
# MODULE
url(r'^workspace/(.*)/module/(.*)/finish$', module_view.finish_master_page, name='tenant_workspace_module_finish_master'),
url(r'^workspace/(.*)/module/(.*)/(.*)/submit$', modu... | 52.0625 | 131 | 0.731092 | 103 | 833 | 5.553398 | 0.213592 | 0.20979 | 0.136364 | 0.241259 | 0.372378 | 0.183566 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085234 | 833 | 15 | 132 | 55.533333 | 0.750656 | 0.019208 | 0 | 0 | 0 | 0 | 0.447174 | 0.404177 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
984b760b03801e8c44f708860f9dfb4efe83634f | 8,925 | py | Python | visualdl/server/mock/data.py | gmhou/VisualDL | fa7b30e09b91c336b1eb900ad799f71cf0db9f94 | [
"Apache-2.0"
] | 1 | 2018-01-19T10:54:38.000Z | 2018-01-19T10:54:38.000Z | visualdl/server/mock/data.py | gmhou/VisualDL | fa7b30e09b91c336b1eb900ad799f71cf0db9f94 | [
"Apache-2.0"
] | null | null | null | visualdl/server/mock/data.py | gmhou/VisualDL | fa7b30e09b91c336b1eb900ad799f71cf0db9f94 | [
"Apache-2.0"
] | null | null | null | def sequence_data():
return [[1465980660.726887, 1, 0.07000000029802322],
[1465980660.767164, 2, 0.18000000715255737],
[1465980660.799817, 3, 0.3199999928474426],
[1465980660.831853, 4, 0.33000001311302185],
[1465980660.86555, 5, 0.3400000035762787],
[1465... | 38.973799 | 62 | 0.452437 | 637 | 8,925 | 6.33595 | 0.477237 | 0.033697 | 0.004955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.690634 | 0.423417 | 8,925 | 228 | 63 | 39.144737 | 0.093665 | 0 | 0 | 0.119469 | 0 | 0 | 0.346667 | 0.005602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00885 | true | 0 | 0 | 0.00885 | 0.017699 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9867f81c5c4029151dddbfd26ea0e23aa77c26d8 | 173 | py | Python | server_py/flatgov/crs/urls.py | aih/BillMap | d130b1396cb25b415cd7d9ea7389ad558a34eec1 | [
"CC0-1.0"
] | 2 | 2022-01-18T14:55:52.000Z | 2022-01-31T03:38:39.000Z | server_py/flatgov/crs/urls.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 321 | 2020-09-01T16:20:35.000Z | 2021-07-03T06:42:34.000Z | server_py/flatgov/crs/urls.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 1 | 2022-03-31T15:02:49.000Z | 2022-03-31T15:02:49.000Z | from django.urls import path
from crs.views import csv_report, CSVDownloadView
urlpatterns = [
path('csv-download/', CSVDownloadView.as_view(), name='csv-download'),
]
| 24.714286 | 74 | 0.751445 | 22 | 173 | 5.818182 | 0.681818 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121387 | 173 | 6 | 75 | 28.833333 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.144509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
98a2e78a3c24d70f1ba3dd03d0ee0d5b875687e4 | 9,189 | py | Python | Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/01_grundlagen.py | Apop85/Scripts | e71e1c18539e67543e3509c424c7f2d6528da654 | [
"MIT"
] | null | null | null | Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/01_grundlagen.py | Apop85/Scripts | e71e1c18539e67543e3509c424c7f2d6528da654 | [
"MIT"
] | 6 | 2020-12-24T15:15:09.000Z | 2022-01-13T01:58:35.000Z | Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/01_grundlagen.py | Apop85/Scripts | 1d8dad316c55e1f1343526eac9e4b3d0909e4873 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
###
# File: 01_grundlagen.py
# Project: Kapitel_07_Sequenzen_Mengen_und_Generatoren
# Created Date: Tuesday 26.02.2019, 11:02
# Author: Apop85
# -----
# Last Modified: Tuesday 05.03.2019, 15:39
# -----
# Copyright (c) 2019 Apop85
# This software is published under the MIT l... | 117.807692 | 585 | 0.78126 | 1,353 | 9,189 | 5.288248 | 0.351072 | 0.011321 | 0.004193 | 0.01188 | 0.044444 | 0.036618 | 0.036618 | 0.031586 | 0.027114 | 0.015933 | 0 | 0.012255 | 0.12972 | 9,189 | 77 | 586 | 119.337662 | 0.88083 | 0.04908 | 0 | 0 | 0 | 0.388889 | 0.879202 | 0.003212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.018519 | 0 | 0.037037 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98ae1428109adfd0f59b33f8dc3ed2256a016beb | 800 | py | Python | lino_book/projects/integer_pk/lib/integer_pk/models.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 3 | 2016-08-25T05:58:09.000Z | 2019-12-05T11:13:45.000Z | lino_book/projects/integer_pk/lib/integer_pk/models.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 18 | 2016-11-12T21:38:58.000Z | 2019-12-03T17:54:38.000Z | lino_book/projects/integer_pk/lib/integer_pk/models.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 9 | 2016-10-15T11:12:33.000Z | 2021-09-22T04:37:37.000Z | from django.db import models
from django.utils.translation import gettext_lazy as _
class Person(models.Model):
name = models.CharField(max_length=200)
def __str__(self):
return self.name
class AutoPerson(models.Model):
id = models.AutoField(primary_key=True, verbose_name=_("ID"))
name ... | 21.621622 | 68 | 0.6975 | 105 | 800 | 5.019048 | 0.314286 | 0.142315 | 0.144213 | 0.166983 | 0.548387 | 0.548387 | 0.548387 | 0.548387 | 0.548387 | 0.548387 | 0 | 0.021638 | 0.19125 | 800 | 36 | 69 | 22.222222 | 0.79289 | 0 | 0 | 0.571429 | 0 | 0 | 0.0075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0.190476 | 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 | 1 | 1 | 0 | 0 | 3 |
7f29c93206579a52aebe7d2f9f0e95640ee6aea0 | 237 | py | Python | Chapter 07/Chap07_Example7.131.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.131.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.131.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | myemp = {
'Name': 'Angela',
'Age':30,
'Sex': 'Female',
'Profession': 'Doctor'}
print(myemp.items())# I1
print(type(myemp.items()))# I2
for key, value in myemp.items():
print(key, '-----',value)# I3
| 23.7 | 36 | 0.510549 | 28 | 237 | 4.321429 | 0.678571 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028409 | 0.257384 | 237 | 9 | 37 | 26.333333 | 0.659091 | 0.033755 | 0 | 0 | 0 | 0 | 0.199074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 3 |
7f3999734455352473532ef25cddf059eb5baee3 | 214 | py | Python | Tencent/Video_Generation/MakeItTalk/src/dataset/image_translation/__init__.py | orange-eng/internship | c8c566df453d3a4bdf692338f74916ae15792fa1 | [
"Apache-2.0"
] | 2 | 2021-11-14T14:09:47.000Z | 2022-02-08T22:04:50.000Z | Tencent/Video_Generation/MakeItTalk/util/__init__.py | orange-eng/internship | c8c566df453d3a4bdf692338f74916ae15792fa1 | [
"Apache-2.0"
] | null | null | null | Tencent/Video_Generation/MakeItTalk/util/__init__.py | orange-eng/internship | c8c566df453d3a4bdf692338f74916ae15792fa1 | [
"Apache-2.0"
] | null | null | null | """
# Copyright 2020 Adobe
# All Rights Reserved.
# NOTICE: Adobe permits you to use, modify, and distribute this file in
# accordance with the terms of the Adobe license agreement accompanying
# it.
"""
| 19.454545 | 72 | 0.71028 | 29 | 214 | 5.241379 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.214953 | 214 | 10 | 73 | 21.4 | 0.880952 | 0.915888 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 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 | 3 |
7f5e4eb717f97fd0e6c7a580dc42daec258b77fb | 56 | py | Python | xviewer/server.py | pslinge144/dataset_viz | 5fa2da2a8f3729b43d36dca9658cfba2d0ddd84b | [
"MIT"
] | null | null | null | xviewer/server.py | pslinge144/dataset_viz | 5fa2da2a8f3729b43d36dca9658cfba2d0ddd84b | [
"MIT"
] | null | null | null | xviewer/server.py | pslinge144/dataset_viz | 5fa2da2a8f3729b43d36dca9658cfba2d0ddd84b | [
"MIT"
] | null | null | null | from xviewer.database import Database
db = Database()
| 11.2 | 37 | 0.767857 | 7 | 56 | 6.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 4 | 38 | 14 | 0.914894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
7f6081321c0857fd95e95d676c631048ca1b2718 | 773 | py | Python | fairsearchcore/__init__.py | utkarshmttl/fairsearch-fair-python | a92a3d6a94e8050a1216d7f5d1157d4882d4d584 | [
"Apache-2.0"
] | 11 | 2019-08-13T05:53:48.000Z | 2022-02-26T19:51:03.000Z | fairsearchcore/__init__.py | utkarshmttl/fairsearch-fair-python | a92a3d6a94e8050a1216d7f5d1157d4882d4d584 | [
"Apache-2.0"
] | 1 | 2020-05-13T20:17:14.000Z | 2020-05-13T20:17:14.000Z | fairsearchcore/__init__.py | utkarshmttl/fairsearch-fair-python | a92a3d6a94e8050a1216d7f5d1157d4882d4d584 | [
"Apache-2.0"
] | 5 | 2020-05-08T15:21:56.000Z | 2021-11-09T13:54:52.000Z | # -*- coding: utf-8 -*-
"""
---------------------------------------
Fair search core for Python
---------------------------------------
This is the Python library with the core algorithms used to do FA*IR ranking.
For details on support methods - see `fairsearchcore.fair` and `fairsearchcore.simulator`. Full docume... | 32.208333 | 109 | 0.701164 | 98 | 773 | 5.44898 | 0.693878 | 0.037453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010264 | 0.117723 | 773 | 24 | 110 | 32.208333 | 0.772727 | 0.715395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7f8e21c7d952a6a9dde87e9a945ae5de2d1776d5 | 2,438 | gyp | Python | third_party/webrtc/src/chromium/src/device/devices_app/devices_app.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/device/devices_app/devices_app.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/device/devices_app/devices_app.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'devices_app_lib',
'type': 'static_library',
'include_d... | 28.348837 | 72 | 0.579984 | 261 | 2,438 | 5.084291 | 0.287356 | 0.067822 | 0.048983 | 0.064054 | 0.478523 | 0.352675 | 0.198191 | 0.198191 | 0.198191 | 0.198191 | 0 | 0.002786 | 0.263741 | 2,438 | 85 | 73 | 28.682353 | 0.73649 | 0.063577 | 0 | 0.407407 | 0 | 0 | 0.617376 | 0.448442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7f9848c0ecd8fb8d0992622d1fc41891ce82a9fd | 233 | py | Python | tests/__init__.py | thefirstofthe300/python-harvest_apiv2 | 449b1cb39999a21eb9f02a4baa28657bdcf8469b | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | thefirstofthe300/python-harvest_apiv2 | 449b1cb39999a21eb9f02a4baa28657bdcf8469b | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | thefirstofthe300/python-harvest_apiv2 | 449b1cb39999a21eb9f02a4baa28657bdcf8469b | [
"Apache-2.0"
] | null | null | null |
from .clients import *
from .company import *
from .estimates import *
from .expenses import *
from .invoices import *
from .projects import *
from .roles import *
from .tasks import *
from .timesheets import *
from .users import *
| 19.416667 | 25 | 0.738197 | 30 | 233 | 5.733333 | 0.4 | 0.523256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175966 | 233 | 11 | 26 | 21.181818 | 0.895833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7fa2f91f6379e3304b1fea261d336c31c785f310 | 392 | py | Python | home/test_views.py | TaraRhoseyn/CI_MS4_Kicks | eb25477c18059b338933a84a367d00f8726f4afe | [
"CNRI-Python",
"Condor-1.1",
"RSA-MD",
"Naumen",
"MS-PL"
] | null | null | null | home/test_views.py | TaraRhoseyn/CI_MS4_Kicks | eb25477c18059b338933a84a367d00f8726f4afe | [
"CNRI-Python",
"Condor-1.1",
"RSA-MD",
"Naumen",
"MS-PL"
] | null | null | null | home/test_views.py | TaraRhoseyn/CI_MS4_Kicks | eb25477c18059b338933a84a367d00f8726f4afe | [
"CNRI-Python",
"Condor-1.1",
"RSA-MD",
"Naumen",
"MS-PL"
] | null | null | null | # IMPORTS
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Third party
from django.test import SimpleTestCase
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class TestHomeView(SimpleTestCase):
def test_home_http_success(self):
response = s... | 30.153846 | 79 | 0.431122 | 27 | 392 | 6.111111 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008646 | 0.114796 | 392 | 12 | 80 | 32.666667 | 0.466859 | 0.446429 | 0 | 0 | 0 | 0 | 0.004717 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7faedeca77fdbae7ccf56ffee05b25a823e85a05 | 160 | py | Python | GodwillOnyewuchi/Phase 1/Python Basic 2/day 4 task/task 3.py | nkem1010/python-challenge-solutions | 203cedc691094a83b110fc75764aac51dbbc1a03 | [
"MIT"
] | 1 | 2020-05-15T21:27:45.000Z | 2020-05-15T21:27:45.000Z | GodwillOnyewuchi/Phase 1/Python Basic 2/day 4 task/task 3.py | GREENFONTS/python-challenge-solutions | a9aad85a250892fe41961a7d5e77f67b8d14fc1b | [
"MIT"
] | null | null | null | GodwillOnyewuchi/Phase 1/Python Basic 2/day 4 task/task 3.py | GREENFONTS/python-challenge-solutions | a9aad85a250892fe41961a7d5e77f67b8d14fc1b | [
"MIT"
] | null | null | null |
numbers = input("Enter a string of number: ")
num_strings = list(numbers)
if len(num_strings) > 2:
print(num_strings[0:2])
else:
print(num_strings)
| 14.545455 | 45 | 0.68125 | 25 | 160 | 4.2 | 0.64 | 0.380952 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.1875 | 160 | 10 | 46 | 16 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 3 |
7fb9e63b725ab7f58b5fc2554278534dbe1e8ac4 | 4,987 | py | Python | y.py | rasooli300/moqat | 26edc3bcd3329fe6a78690e27cd6a8ab2ae564e8 | [
"Apache-2.0"
] | null | null | null | y.py | rasooli300/moqat | 26edc3bcd3329fe6a78690e27cd6a8ab2ae564e8 | [
"Apache-2.0"
] | null | null | null | y.py | rasooli300/moqat | 26edc3bcd3329fe6a78690e27cd6a8ab2ae564e8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
try:
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass,mechanize,requests,bhottool
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
except ImportError:
os.system('pip2... | 32.809211 | 117 | 0.339683 | 390 | 4,987 | 4.187179 | 0.397436 | 0.061237 | 0.030006 | 0.030618 | 0.334966 | 0.282303 | 0.282303 | 0.282303 | 0.252909 | 0.224127 | 0 | 0.071529 | 0.147784 | 4,987 | 151 | 118 | 33.02649 | 0.312706 | 0.005214 | 0 | 0.283582 | 0 | 0.029851 | 0.727365 | 0.455133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0.029851 | 0.037313 | 0 | 0.067164 | 0.11194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f6970b2b52eed7345b86ff30678ceb7d1e4ca006 | 576 | py | Python | handler/page.py | cxteam666/Torweb | 8b346e3ddb599fcaf06a752c2f49aced443114e2 | [
"MIT"
] | 3 | 2017-04-30T17:58:48.000Z | 2018-12-15T07:14:41.000Z | handler/page.py | cxteam666/Torweb | 8b346e3ddb599fcaf06a752c2f49aced443114e2 | [
"MIT"
] | 1 | 2017-04-09T07:28:34.000Z | 2017-04-09T07:28:34.000Z | handler/page.py | cxteam666/Torweb | 8b346e3ddb599fcaf06a752c2f49aced443114e2 | [
"MIT"
] | 1 | 2019-01-28T09:02:46.000Z | 2019-01-28T09:02:46.000Z | #!/usr/bin/python
# -*- coding:utf-8 -*-
# Powered By KK Studio
from BaseHandler import BaseHandler
# 404 Page
class Page404Handler(BaseHandler):
def get(self):
self.render('page/404.html', title="404")
# 500 Page
class Page500Handler(BaseHandler):
def get(self):
self.render('page/500.html', ... | 23.04 | 53 | 0.671875 | 74 | 576 | 5.22973 | 0.391892 | 0.093023 | 0.175711 | 0.217054 | 0.361757 | 0.361757 | 0.361757 | 0 | 0 | 0 | 0 | 0.052743 | 0.177083 | 576 | 25 | 54 | 23.04 | 0.763713 | 0.170139 | 0 | 0.307692 | 0 | 0 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.692308 | 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 | 1 | 0 | 0 | 3 |
f6a4005b53e655f6492cf3c118442768ad681cff | 487 | py | Python | keyboard.py | evrardco/neural-snake | a9b2bc0b736de83b59538ce72df9e0f33f6bba1e | [
"MIT"
] | null | null | null | keyboard.py | evrardco/neural-snake | a9b2bc0b736de83b59538ce72df9e0f33f6bba1e | [
"MIT"
] | null | null | null | keyboard.py | evrardco/neural-snake | a9b2bc0b736de83b59538ce72df9e0f33f6bba1e | [
"MIT"
] | null | null | null | import pygame
from keymap import *
def get_dir():
pressed = pygame.key.get_pressed()
if pressed[KEYMAP[RIGHT]]:
return 0.0
elif pressed[KEYMAP[UP]]:
return 270.0
elif pressed[KEYMAP[LEFT]]:
return 180.0
elif pressed[KEYMAP[DOWN]]:
return 90.0
return None
def upda... | 23.190476 | 38 | 0.61191 | 68 | 487 | 4.294118 | 0.382353 | 0.267123 | 0.232877 | 0.184932 | 0.280822 | 0.280822 | 0.280822 | 0.280822 | 0 | 0 | 0 | 0.050992 | 0.275154 | 487 | 21 | 39 | 23.190476 | 0.776204 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
f6b5eec156e6647c87ed055fbc82e39de95e085b | 615 | py | Python | doc/design/annotations.py | zopefoundation/groktoolkit | 6d295997510139b0588b2401d5f54fca8234a15e | [
"ZPL-2.1"
] | 2 | 2015-12-05T05:46:55.000Z | 2017-07-03T17:39:32.000Z | doc/design/annotations.py | zopefoundation/groktoolkit | 6d295997510139b0588b2401d5f54fca8234a15e | [
"ZPL-2.1"
] | 7 | 2017-07-06T15:07:31.000Z | 2021-04-20T14:38:21.000Z | doc/design/annotations.py | zopefoundation/groktoolkit | 6d295997510139b0588b2401d5f54fca8234a15e | [
"ZPL-2.1"
] | 2 | 2016-03-20T18:03:15.000Z | 2018-01-11T04:33:40.000Z | import grok
from zope import interface
from BTrees.OOBTree import OOTreeSet
class Article(grok.Model):
pass
class IComments(interface.Interface):
def addComment(text):
pass
def getComments():
pass
class Comments(grok.Annotation):
grok.context(Article) # this is actually the default... | 21.206897 | 69 | 0.687805 | 72 | 615 | 5.819444 | 0.458333 | 0.085919 | 0.066826 | 0.081146 | 0.114558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22439 | 615 | 28 | 70 | 21.964286 | 0.878407 | 0.092683 | 0 | 0.15 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.15 | 0.15 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f6ca7edd8260c289ff5b54553301b3103fd724c1 | 413 | py | Python | main.py | NebulaCyberSolutions/x2y | 84847faca057040efb88bd2e6625e032ffa882a7 | [
"MIT"
] | 3 | 2018-04-12T06:25:58.000Z | 2018-04-12T17:17:09.000Z | main.py | NebulaCyberSolutions/IronSky | 84847faca057040efb88bd2e6625e032ffa882a7 | [
"MIT"
] | 9 | 2018-04-16T14:26:25.000Z | 2018-06-23T23:13:43.000Z | main.py | NebulaCyberSolutions/IronSky | 84847faca057040efb88bd2e6625e032ffa882a7 | [
"MIT"
] | null | null | null | import user.config.shortcodes as shortcodes
import user.config.config as config_file
from include.parameters import *
from include.meta_info import *
from include.checkout import *
from include.load_codes import *
from include.build import *
def Start():
config = Parameters(config_file)
meta = MetaInfo()
CheckOutpu... | 27.533333 | 48 | 0.786925 | 56 | 413 | 5.732143 | 0.375 | 0.17134 | 0.211838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123487 | 413 | 15 | 49 | 27.533333 | 0.88674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 3 |
f6d1c08b687ed5843ca5eaa9352a84442dc8b30a | 432 | py | Python | post/mixins.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | post/mixins.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | 12 | 2019-09-11T18:37:19.000Z | 2019-09-16T21:51:35.000Z | post/mixins.py | abhiabhi94/blog | 0da1522361e47af3bbfba974f801277e14c7a397 | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import UserPassesTestMixin
from django.http import Http404
from django.utils.translation import gettext_lazy as _
class IsOwnerMixin(UserPassesTestMixin):
"""ensuring the author themselves is updating the post"""
def test_func(self):
post = self.get_object()
if... | 30.857143 | 61 | 0.717593 | 54 | 432 | 5.648148 | 0.722222 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.203704 | 432 | 13 | 62 | 33.230769 | 0.869186 | 0.118056 | 0 | 0 | 0 | 0 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
f6e0f25cfa10313761446d65001d367c5dde5205 | 197 | py | Python | faker/providers/PhoneNumber.py | SysGrove/faker | 61c1aa3eeece341c0984e95cd3128bcdf3797a78 | [
"MIT"
] | 1 | 2016-04-04T22:35:45.000Z | 2016-04-04T22:35:45.000Z | faker/providers/PhoneNumber.py | SysGrove/faker | 61c1aa3eeece341c0984e95cd3128bcdf3797a78 | [
"MIT"
] | null | null | null | faker/providers/PhoneNumber.py | SysGrove/faker | 61c1aa3eeece341c0984e95cd3128bcdf3797a78 | [
"MIT"
] | null | null | null | from . import BaseProvider
class Provider(BaseProvider):
formats = ('###-###-###',)
@classmethod
def phoneNumber(cls):
return cls.numerify( cls.randomElement( cls.formats ) ) | 21.888889 | 63 | 0.634518 | 18 | 197 | 6.944444 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203046 | 197 | 9 | 63 | 21.888889 | 0.796178 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 | 1 | 0 | 0 | 0 | 3 |
101262cbfb5710d3bf117f725e82a50423a3642f | 20 | py | Python | config.py | ryan2214/P2P_Chat_Hackathons | ddc7a91ff743c87122edcc45ba524da509c9968b | [
"MIT"
] | 2 | 2021-04-05T21:57:22.000Z | 2021-04-06T13:01:39.000Z | config.py | ryan2214/P2P_Chat_Hackathons | ddc7a91ff743c87122edcc45ba524da509c9968b | [
"MIT"
] | null | null | null | config.py | ryan2214/P2P_Chat_Hackathons | ddc7a91ff743c87122edcc45ba524da509c9968b | [
"MIT"
] | null | null | null | SECRET_KEY = "happy" | 20 | 20 | 0.75 | 3 | 20 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 20 | 1 | 20 | 20 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
63e3b5f5c68c5ac3b24c90538fe698b9fb36b324 | 19 | py | Python | pymagecli/__init__.py | softinio/pymage | 8c5ae582701c1148aa4a8501cfdc6f841e0c6f0a | [
"MIT"
] | null | null | null | pymagecli/__init__.py | softinio/pymage | 8c5ae582701c1148aa4a8501cfdc6f841e0c6f0a | [
"MIT"
] | null | null | null | pymagecli/__init__.py | softinio/pymage | 8c5ae582701c1148aa4a8501cfdc6f841e0c6f0a | [
"MIT"
] | null | null | null | name = "pymagecli"
| 9.5 | 18 | 0.684211 | 2 | 19 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
63f1bc4b37ae0a978888377774d1a3488c969f19 | 618 | py | Python | bluepeople/array_same_diff.py | netotz/codecamp | ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c | [
"Unlicense"
] | null | null | null | bluepeople/array_same_diff.py | netotz/codecamp | ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c | [
"Unlicense"
] | null | null | null | bluepeople/array_same_diff.py | netotz/codecamp | ff6b5ce1af1d99bbb00f7e095ca6beac92020b1c | [
"Unlicense"
] | 1 | 2020-04-05T06:22:18.000Z | 2020-04-05T06:22:18.000Z | from functools import reduce
from typing import Sequence, Union
def is_same_difference(array: Sequence[Union[int, float]]) -> bool:
return reduce(
lambda a, b: a if a == b else None,
(float(f'{abs(x - y):g}') for x, y in zip(array[:-1], array[1:]))
) is not None
def test():
assert is_sam... | 32.526316 | 73 | 0.61165 | 110 | 618 | 3.309091 | 0.436364 | 0.115385 | 0.307692 | 0.302198 | 0.252747 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094142 | 0.226537 | 618 | 18 | 74 | 34.333333 | 0.667364 | 0 | 0 | 0 | 0 | 0 | 0.022654 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12012a28f26496443a7b1678f7046105d4e6fde1 | 124 | py | Python | Simple-Calculator-Web-app/Django Calculator App/calc/urls.py | Prajakta-collab/Hacktoberfest2020-4 | 5bf3d061d2ae0050e5b3b5a633159c9e8509b887 | [
"MIT"
] | null | null | null | Simple-Calculator-Web-app/Django Calculator App/calc/urls.py | Prajakta-collab/Hacktoberfest2020-4 | 5bf3d061d2ae0050e5b3b5a633159c9e8509b887 | [
"MIT"
] | null | null | null | Simple-Calculator-Web-app/Django Calculator App/calc/urls.py | Prajakta-collab/Hacktoberfest2020-4 | 5bf3d061d2ae0050e5b3b5a633159c9e8509b887 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from calc import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]
| 17.714286 | 43 | 0.645161 | 17 | 124 | 4.705882 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209677 | 124 | 6 | 44 | 20.666667 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
1204d224e0d3ba588359b884360e4a0f3e471b9f | 775 | py | Python | click_project/commands/value.py | hobeika/click-project | 216da0a3b3551cc06324c98f295c90176380f201 | [
"MIT"
] | null | null | null | click_project/commands/value.py | hobeika/click-project | 216da0a3b3551cc06324c98f295c90176380f201 | [
"MIT"
] | 1 | 2021-03-17T10:39:54.000Z | 2021-03-17T10:40:39.000Z | click_project/commands/value.py | hobeika/click-project | 216da0a3b3551cc06324c98f295c90176380f201 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import print_function, absolute_import
from click_project.decorators import group, use_settings
from click_project.keyvaluestore import keyvaluestore_generic_commands
from click_project.log import get_logger
LOGGER = get_logger(__name__)
class ValueConf... | 22.794118 | 75 | 0.756129 | 109 | 775 | 5.155963 | 0.59633 | 0.106762 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001541 | 0.162581 | 775 | 33 | 76 | 23.484848 | 0.864407 | 0.397419 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.363636 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
1206d192e4968bdf92c26f8b626ff954fa37ad4d | 617 | py | Python | src/generator/skeleton/models/switch.py | dslab-epfl/svshi | 0b0f62931698bfd670dae3117078889d966688de | [
"MIT"
] | 1 | 2022-02-11T14:54:49.000Z | 2022-02-11T14:54:49.000Z | src/generator/skeleton/models/switch.py | dslab-epfl/svshi | 0b0f62931698bfd670dae3117078889d966688de | [
"MIT"
] | null | null | null | src/generator/skeleton/models/switch.py | dslab-epfl/svshi | 0b0f62931698bfd670dae3117078889d966688de | [
"MIT"
] | null | null | null | ###
### DO NOT TOUCH THIS FILE!!!
###
from models.device import Device
from models.multiton import multiton
from typing import Optional
@multiton
class Switch(Device):
"""
A switch.
"""
def __init__(self, name: str):
super().__init__(name, "switch")
def on(self):
"""
Tur... | 17.138889 | 89 | 0.531605 | 75 | 617 | 4.253333 | 0.493333 | 0.08464 | 0.075235 | 0.112853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.34846 | 617 | 35 | 90 | 17.628571 | 0.793532 | 0.26094 | 0 | 0.230769 | 0 | 0 | 0.016529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.230769 | 0.230769 | 0 | 0.615385 | 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 | 1 | 0 | 0 | 3 |
120b6450f6fd54addffeccb3c6ab054514b06dfb | 1,040 | py | Python | app/home/remoteGet.py | Daniel-Fernandez-951/LS-MedCart | 0d223e9d65b3c1a99065f1210d8189c302553751 | [
"MIT"
] | null | null | null | app/home/remoteGet.py | Daniel-Fernandez-951/LS-MedCart | 0d223e9d65b3c1a99065f1210d8189c302553751 | [
"MIT"
] | null | null | null | app/home/remoteGet.py | Daniel-Fernandez-951/LS-MedCart | 0d223e9d65b3c1a99065f1210d8189c302553751 | [
"MIT"
] | 1 | 2021-01-08T15:43:40.000Z | 2021-01-08T15:43:40.000Z | import json
import requests
from json2html import *
def get_studies():
pack_dat = {}
x = 0
resp = requests.get('https://api.otreeba.com/v1/studies?page=1&count=16').json()
for x in resp['data']:
study = OrderedDict({
"Title": x['name'],
"Updated": x['updatedAt']... | 28.888889 | 97 | 0.570192 | 126 | 1,040 | 4.579365 | 0.357143 | 0.097054 | 0.02773 | 0.031196 | 0.700173 | 0.700173 | 0.700173 | 0.700173 | 0.440208 | 0.440208 | 0 | 0.016 | 0.278846 | 1,040 | 36 | 98 | 28.888889 | 0.753333 | 0.134615 | 0 | 0.428571 | 0 | 0 | 0.195313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 3 |
121088797679903c18eea39c98442f579889342c | 1,449 | py | Python | FreeTAKServer/model/RestMessages/GeoObjectPost.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 27 | 2020-05-01T01:45:59.000Z | 2020-07-03T00:17:13.000Z | FreeTAKServer/model/RestMessages/GeoObjectPost.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 34 | 2020-04-26T11:25:52.000Z | 2020-07-03T21:06:34.000Z | FreeTAKServer/model/RestMessages/GeoObjectPost.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 15 | 2020-05-01T01:46:07.000Z | 2020-07-03T12:14:04.000Z | from FreeTAKServer.model.RestMessages.GeoObject import GeoObject, RestEnumerations
class GeoObjectPost(GeoObject):
def __init__(self):
pass
def setaddress(self, address):
self.address = address
def getaddress(self):
try:
return self.address
except:
... | 21.626866 | 82 | 0.626639 | 150 | 1,449 | 6.026667 | 0.306667 | 0.099558 | 0.108407 | 0.037611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289855 | 1,449 | 66 | 83 | 21.954545 | 0.878523 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.413043 | false | 0.021739 | 0.021739 | 0.152174 | 0.695652 | 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 | 1 | 0 | 0 | 3 |
1213fd7cb1bdd560555f1e7372baee7c4e1f4007 | 259 | py | Python | core/file_manager/os_utils.py | daniele21/DL_soccer_prediction_v2 | 97bafe911fd8883d6679cf55fd0fff34db67ef06 | [
"MIT"
] | null | null | null | core/file_manager/os_utils.py | daniele21/DL_soccer_prediction_v2 | 97bafe911fd8883d6679cf55fd0fff34db67ef06 | [
"MIT"
] | null | null | null | core/file_manager/os_utils.py | daniele21/DL_soccer_prediction_v2 | 97bafe911fd8883d6679cf55fd0fff34db67ef06 | [
"MIT"
] | null | null | null | import os
from core.logger.logging import logger
def exists(path):
return os.path.exists(path)
def ensure_folder(folder):
if(exists(folder) == False):
logger.info(f'\n> Creating folder at {folder}\n')
os.makedirs(folder)
return | 19.923077 | 57 | 0.671815 | 37 | 259 | 4.675676 | 0.540541 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204633 | 259 | 13 | 58 | 19.923077 | 0.839806 | 0 | 0 | 0 | 0 | 0 | 0.126923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 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 | 1 | 1 | 0 | 0 | 3 |
122b7eb7603c8da9e7bc6cac68eab124c74c12df | 11,117 | py | Python | api/util/paylib/alipayapi.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | 2 | 2017-12-02T13:58:30.000Z | 2018-08-02T17:07:59.000Z | api/util/paylib/alipayapi.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null | api/util/paylib/alipayapi.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import urllib
import urllib2
import logging
import base64
from base.core.util.dateutils import int_days
import hmac
import hashlib
import json
import datetime
import rsa
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
from django.conf imp... | 32.130058 | 1,596 | 0.657731 | 1,139 | 11,117 | 6.19842 | 0.28885 | 0.015864 | 0.014164 | 0.011898 | 0.24221 | 0.205241 | 0.158782 | 0.14915 | 0.141218 | 0.141218 | 0 | 0.048338 | 0.231447 | 11,117 | 345 | 1,597 | 32.223188 | 0.777739 | 0.032203 | 0 | 0.28 | 0 | 0.005 | 0.313054 | 0.214129 | 0 | 1 | 0 | 0.002899 | 0 | 0 | null | null | 0.005 | 0.08 | null | null | 0.005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1245e310d357f722265c996902cc5d1aedd7ab66 | 132 | py | Python | Bilibili_learning/Day03/Type_function_search_for_all_data_type.py | LuGuo25/Bilibili_python | 03cd10fdc08f97755a8a14a4a8bf410304d73158 | [
"Apache-2.0"
] | null | null | null | Bilibili_learning/Day03/Type_function_search_for_all_data_type.py | LuGuo25/Bilibili_python | 03cd10fdc08f97755a8a14a4a8bf410304d73158 | [
"Apache-2.0"
] | null | null | null | Bilibili_learning/Day03/Type_function_search_for_all_data_type.py | LuGuo25/Bilibili_python | 03cd10fdc08f97755a8a14a4a8bf410304d73158 | [
"Apache-2.0"
] | null | null | null | # type() 函数搜寻所有数据类型
print(type(518))
age = 10
print(type(age))
money = 35.6
print(type(money))
name = '漩涡鸣人'
print(type(name))
| 9.428571 | 19 | 0.651515 | 21 | 132 | 4.095238 | 0.52381 | 0.418605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072072 | 0.159091 | 132 | 13 | 20 | 10.153846 | 0.702703 | 0.128788 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
124e18bdf5e003062e7954eea33f100c1ac3dcc9 | 287 | py | Python | Logic/Classes/LogicRankRewardConfig.py | terexdev/BSDS-V39 | 7deea469fbfbc56c48f8326ba972369679f6b098 | [
"Apache-2.0"
] | 11 | 2021-11-04T01:49:50.000Z | 2022-01-31T16:50:47.000Z | Logic/Classes/LogicRankRewardConfig.py | terexdev/BSDS-V39 | 7deea469fbfbc56c48f8326ba972369679f6b098 | [
"Apache-2.0"
] | 6 | 2021-11-04T08:52:01.000Z | 2021-12-27T02:33:19.000Z | Logic/Classes/LogicRankRewardConfig.py | terexdev/BSDS-V39 | 7deea469fbfbc56c48f8326ba972369679f6b098 | [
"Apache-2.0"
] | 5 | 2021-11-04T02:31:56.000Z | 2022-03-14T02:04:33.000Z | from Logic.LogicCondition import LogicCondition
from Logic.LogicGemOffer import LogicGemOffer
from Logic.Data.DataManager import Writer
from Logic.Data.DataManager import Reader
class LogicRankRewardConfig:
def decode(self: Reader):
self.readVint()
self.readVint()
| 26.090909 | 47 | 0.783972 | 32 | 287 | 7.03125 | 0.46875 | 0.16 | 0.115556 | 0.213333 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156794 | 287 | 10 | 48 | 28.7 | 0.929752 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
126ad13cd3967e3a2a1df4af77ed7ce2f63c8815 | 537 | py | Python | spec_file.py | SaidkomilMS/PrayTimesCalc | 107a8b49c8073ec5aeb868ae450f4b3744672928 | [
"Unlicense"
] | 1 | 2021-08-08T14:38:08.000Z | 2021-08-08T14:38:08.000Z | spec_file.py | SaidkomilMS/PrayTimesCalc | 107a8b49c8073ec5aeb868ae450f4b3744672928 | [
"Unlicense"
] | 1 | 2020-10-04T13:47:07.000Z | 2020-10-04T13:47:44.000Z | spec_file.py | SaidkomilMS/PrayTimesCalc | 107a8b49c8073ec5aeb868ae450f4b3744672928 | [
"Unlicense"
] | null | null | null | from datetime import date, timedelta
import math
def mytitle(st):
return st[0].upper() + st[1:]
def tomorrow_date():
return date.today() + timedelta(days=1)
sin = lambda x: math.sin(math.radians(x))
cos = lambda x: math.cos(math.radians(x))
tan = lambda x: math.tan(math.radians(x))
asin = lambda x: mat... | 29.833333 | 52 | 0.675978 | 93 | 537 | 3.892473 | 0.311828 | 0.154696 | 0.212707 | 0.198895 | 0.265193 | 0.143646 | 0 | 0 | 0 | 0 | 0 | 0.015419 | 0.154562 | 537 | 17 | 53 | 31.588235 | 0.781938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 3 |
89c30377abace331c1d93ab138a6c8217f33adac | 9,904 | py | Python | mainApi/tests/test_auth.py | kitkat0225/IAS-project | e32d48daf47dcdd46b008988c77b37aff0c04f39 | [
"Apache-2.0"
] | null | null | null | mainApi/tests/test_auth.py | kitkat0225/IAS-project | e32d48daf47dcdd46b008988c77b37aff0c04f39 | [
"Apache-2.0"
] | null | null | null | mainApi/tests/test_auth.py | kitkat0225/IAS-project | e32d48daf47dcdd46b008988c77b37aff0c04f39 | [
"Apache-2.0"
] | null | null | null | import pyotp
import pytest
from fastapi.encoders import jsonable_encoder
from starlette import status
from mainApi.app.auth.models.user import ShowUserModel, LoginUserReplyModel, CreateUserModel, CreateUserReplyModel, \
ChangeUserPasswordModel, UpdateUserModel
from httpx import AsyncClient
class TestAuth:
... | 45.431193 | 120 | 0.667912 | 1,196 | 9,904 | 5.23495 | 0.106187 | 0.066763 | 0.040249 | 0.05111 | 0.79524 | 0.760581 | 0.724485 | 0.678486 | 0.606293 | 0.572912 | 0 | 0.007646 | 0.247274 | 9,904 | 217 | 121 | 45.640553 | 0.832193 | 0.045133 | 0 | 0.493243 | 0 | 0 | 0.072752 | 0.018956 | 0 | 0 | 0 | 0 | 0.304054 | 1 | 0 | false | 0.135135 | 0.040541 | 0 | 0.047297 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d626f01882aa9cba3e411be827a26d408dae81dc | 1,722 | py | Python | RestApi/Python/Modules/ClassInheritance.py | srsettur/IxNetwork | aea47fa4d6ba11b1952012448f5e4f9d06487d81 | [
"MIT"
] | null | null | null | RestApi/Python/Modules/ClassInheritance.py | srsettur/IxNetwork | aea47fa4d6ba11b1952012448f5e4f9d06487d81 | [
"MIT"
] | null | null | null | RestApi/Python/Modules/ClassInheritance.py | srsettur/IxNetwork | aea47fa4d6ba11b1952012448f5e4f9d06487d81 | [
"MIT"
] | null | null | null | """
Description
Demonstrate how to use Python class inheritance to leverage OpenIxia
library and extend the OpenIxia library with your own library.
Create your own classes and inherit the corresponding OpenIxia class.
Your scripts will be instantiating objects using your classes.
With inherita... | 30.75 | 80 | 0.728223 | 202 | 1,722 | 5.970297 | 0.39604 | 0.082919 | 0.045605 | 0.062189 | 0.178275 | 0.178275 | 0.178275 | 0.178275 | 0.178275 | 0.11194 | 0 | 0 | 0.198026 | 1,722 | 55 | 81 | 31.309091 | 0.87328 | 0.412311 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0.076923 | 0.269231 | 0 | 0.730769 | 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 | 1 | 0 | 0 | 3 |
c3922c0539dafb84a3d9b11a3136d2faec463287 | 2,789 | py | Python | tests/utest/test_external_rules.py | bithium/robotframework-robocop | 8493f0f0effb8007dd3c053466c82365f4439bcc | [
"Apache-2.0"
] | null | null | null | tests/utest/test_external_rules.py | bithium/robotframework-robocop | 8493f0f0effb8007dd3c053466c82365f4439bcc | [
"Apache-2.0"
] | null | null | null | tests/utest/test_external_rules.py | bithium/robotframework-robocop | 8493f0f0effb8007dd3c053466c82365f4439bcc | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
import sys
import pytest
import robocop.exceptions
class TestExternalRules:
def test_loading_external_rule(self, robocop_pre_load): # noqa
robocop_pre_load.config.ext_rules = {f"{Path(__file__).parent.parent}/test_data/ext_rule/external_rule.py"}
robocop_pre_load.load_c... | 48.929825 | 119 | 0.72535 | 383 | 2,789 | 4.851175 | 0.172324 | 0.156082 | 0.218515 | 0.096878 | 0.797632 | 0.785791 | 0.699139 | 0.699139 | 0.680301 | 0.680301 | 0 | 0.014423 | 0.179634 | 2,789 | 56 | 120 | 49.803571 | 0.79764 | 0.012191 | 0 | 0.391304 | 0 | 0 | 0.260648 | 0.175464 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.152174 | false | 0 | 0.086957 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c3aaac41c7d90b0fe69581c30d00b48953e23277 | 1,472 | py | Python | aiotdlib/api/types/message_reaction.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | null | null | null | aiotdlib/api/types/message_reaction.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | null | null | null | aiotdlib/api/types/message_reaction.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | null | null | null | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 35.902439 | 155 | 0.55163 | 143 | 1,472 | 5.552448 | 0.538462 | 0.055416 | 0.056675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000942 | 0.278533 | 1,472 | 40 | 156 | 36.8 | 0.746704 | 0.637908 | 0 | 0 | 1 | 0 | 0.044053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0.076923 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c3ce76077c5dfea76fd493ed6c468ecf1f5a15b0 | 462 | py | Python | rcommander_web/scripts/test_list_actions.py | gt-ros-pkg/rcommander-pr2 | 7c7408db30525b80a77dde34b4a8af68ec23d5a4 | [
"BSD-3-Clause"
] | 3 | 2015-03-18T10:20:13.000Z | 2021-03-01T02:46:20.000Z | rcommander_web/scripts/test_list_actions.py | gt-ros-pkg/rcommander-pr2 | 7c7408db30525b80a77dde34b4a8af68ec23d5a4 | [
"BSD-3-Clause"
] | null | null | null | rcommander_web/scripts/test_list_actions.py | gt-ros-pkg/rcommander-pr2 | 7c7408db30525b80a77dde34b4a8af68ec23d5a4 | [
"BSD-3-Clause"
] | 2 | 2016-08-03T21:50:59.000Z | 2021-03-01T02:46:20.000Z | import roslib; roslib.load_manifest('rcommander_web')
import rospy
from rcommander_web.srv import ActionInfo, ActionInfoResponse, ActionInfoRequest
rospy.init_node('get_actions', anonymous=True)
list_actions = rospy.ServiceProxy('list_rcommander_actions', ActionInfo)
print 'got\n', list_actions('.')
print 'got\n', li... | 38.5 | 80 | 0.805195 | 61 | 462 | 5.852459 | 0.42623 | 0.154062 | 0.10084 | 0.145658 | 0.366947 | 0.310924 | 0.310924 | 0.218487 | 0 | 0 | 0 | 0 | 0.0671 | 462 | 11 | 81 | 42 | 0.828306 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
c3e425bf5d60c238191888269f5a8c61cd5ab8a0 | 1,988 | py | Python | buildroot-2017.08/support/testing/tests/init/test_busybox.py | xregist/v3s-linux-sdk | a2b013e3959662d65650a13fc23ec1cd503865eb | [
"Apache-2.0"
] | null | null | null | buildroot-2017.08/support/testing/tests/init/test_busybox.py | xregist/v3s-linux-sdk | a2b013e3959662d65650a13fc23ec1cd503865eb | [
"Apache-2.0"
] | null | null | null | buildroot-2017.08/support/testing/tests/init/test_busybox.py | xregist/v3s-linux-sdk | a2b013e3959662d65650a13fc23ec1cd503865eb | [
"Apache-2.0"
] | 1 | 2020-01-31T10:27:07.000Z | 2020-01-31T10:27:07.000Z | import infra.basetest
from tests.init.base import InitSystemBase as InitSystemBase
class InitSystemBusyboxBase(InitSystemBase):
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
# BR2_TARGET_ROOTFS_TAR is not set
"""
def checkInit(self):
super(InitSystemBusyboxBase, self).... | 29.235294 | 80 | 0.549799 | 156 | 1,988 | 6.782051 | 0.288462 | 0.204159 | 0.070888 | 0.204159 | 0.669187 | 0.669187 | 0.567108 | 0.555766 | 0.555766 | 0.555766 | 0 | 0.013342 | 0.20825 | 1,988 | 67 | 81 | 29.671642 | 0.658831 | 0.158954 | 0 | 0.666667 | 0 | 0 | 0.042208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.066667 | 0 | 0.566667 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
c3e49ca67de841573cf8c8ad3c885159babf948c | 608 | py | Python | biapol_utilities/__init__.py | zoccoler/biapol-utilities | 25f1f1b66b2149a7cafabf1ba0f99454b739bf93 | [
"BSD-3-Clause"
] | 4 | 2021-12-17T19:37:11.000Z | 2022-03-29T16:39:31.000Z | biapol_utilities/__init__.py | zoccoler/biapol-utilities | 25f1f1b66b2149a7cafabf1ba0f99454b739bf93 | [
"BSD-3-Clause"
] | 34 | 2021-11-04T14:10:24.000Z | 2022-01-31T13:23:44.000Z | biapol_utilities/__init__.py | zoccoler/biapol-utilities | 25f1f1b66b2149a7cafabf1ba0f99454b739bf93 | [
"BSD-3-Clause"
] | 2 | 2021-12-14T13:53:16.000Z | 2021-12-15T12:30:51.000Z | """Biapol utilities for Python
``biapol-utilities`` (a.k.a. ``biapolutils``) is a collection of utility functions
for image processing and visualization that is maintained by the Bio-image Analysis
Technology Development Group at DFG Cluster of Excellence "Physics of Life", TU Dresden
Subpackages
-----------
label
... | 25.333333 | 87 | 0.745066 | 79 | 608 | 5.683544 | 0.632911 | 0.066815 | 0.071269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.166118 | 608 | 23 | 88 | 26.434783 | 0.879684 | 0.871711 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c3f4d343bfcc39c799f84c9f1285265384df36ae | 160 | py | Python | tests/test_kitti_raw_ds.py | f-sky/DeepV2D | 5c1c6f58ee359d045a7efd5161445ea87d83bdbe | [
"BSD-3-Clause"
] | 1 | 2021-09-29T06:49:42.000Z | 2021-09-29T06:49:42.000Z | tests/test_kitti_raw_ds.py | f-sky/DeepV2D | 5c1c6f58ee359d045a7efd5161445ea87d83bdbe | [
"BSD-3-Clause"
] | null | null | null | tests/test_kitti_raw_ds.py | f-sky/DeepV2D | 5c1c6f58ee359d045a7efd5161445ea87d83bdbe | [
"BSD-3-Clause"
] | null | null | null | import sys
sys.path.append('deepv2d')
from deepv2d.data_stream.kitti import KittiRaw
ds = KittiRaw('/home/linghao/Datasets/kitti/kitti_raw')
d=ds[0]
print()
| 16 | 55 | 0.7625 | 25 | 160 | 4.8 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.09375 | 160 | 9 | 56 | 17.777778 | 0.806897 | 0 | 0 | 0 | 0 | 0 | 0.28125 | 0.2375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
c3f67e5de487748c7a3afac38913b15616c4797b | 311 | py | Python | Python/Curso em video/desafio 41.py | marcelosilva7/Primeiro-repositorio | 2550c86d07101bed84e0d110599a9492b1069263 | [
"MIT"
] | null | null | null | Python/Curso em video/desafio 41.py | marcelosilva7/Primeiro-repositorio | 2550c86d07101bed84e0d110599a9492b1069263 | [
"MIT"
] | null | null | null | Python/Curso em video/desafio 41.py | marcelosilva7/Primeiro-repositorio | 2550c86d07101bed84e0d110599a9492b1069263 | [
"MIT"
] | null | null | null | idade = int(input('Digite sua idade: '))
if idade < 9:
print('Categoria Mirim')
elif idade < 14 and idade >= 9:
print('Categoria Infantil')
elif idade >= 14 and idade < 19:
print('Categoria Junior')
elif idade >= 19 and idade < 20:
print('Categoria sênior')
else:
print('Categoria Master')
| 23.923077 | 40 | 0.649518 | 43 | 311 | 4.697674 | 0.465116 | 0.346535 | 0.108911 | 0.19802 | 0.188119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04898 | 0.212219 | 311 | 12 | 41 | 25.916667 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.318328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7f21541766287b3f5e8588c185909f175bdfdcbc | 932 | py | Python | virtman/virtman/drivers/connector.py | vmthunder/packages | e530e243007a0f403cad1b67a490ffb9687969c3 | [
"Apache-2.0"
] | 2 | 2015-03-15T11:12:53.000Z | 2018-10-12T03:05:52.000Z | virtman/virtman/drivers/connector.py | vmthunder/packages | e530e243007a0f403cad1b67a490ffb9687969c3 | [
"Apache-2.0"
] | null | null | null | virtman/virtman/drivers/connector.py | vmthunder/packages | e530e243007a0f403cad1b67a490ffb9687969c3 | [
"Apache-2.0"
] | null | null | null | import os
from brick.initiator.connector import ISCSIConnector
from virtman.utils import singleton
from virtman.utils import rootwrap
from virtman.openstack.common import processutils as putils
class ISCSIExecutor(ISCSIConnector):
def __init__(self):
ISCSIConnector.__init__(self, device_sca... | 34.518519 | 119 | 0.687768 | 104 | 932 | 5.913462 | 0.490385 | 0.065041 | 0.052033 | 0.071545 | 0.273171 | 0.182114 | 0.182114 | 0.182114 | 0.182114 | 0.182114 | 0 | 0.00267 | 0.196352 | 932 | 26 | 120 | 35.846154 | 0.818425 | 0.14485 | 0 | 0 | 0 | 0 | 0.063719 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.2 | false | 0 | 0.333333 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
615dc6515326ab0c6ed29e1e9c3345544b486ba9 | 1,327 | py | Python | freezer-dr-7.1.0/freezer_dr/evacuators/drivers/dummy/dummy.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 15 | 2016-05-25T08:14:59.000Z | 2022-03-10T11:36:00.000Z | freezer-dr-7.1.0/freezer_dr/evacuators/drivers/dummy/dummy.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | freezer-dr-7.1.0/freezer_dr/evacuators/drivers/dummy/dummy.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 3 | 2019-01-10T10:40:36.000Z | 2019-03-19T06:33:01.000Z | # (c) Copyright 2014,2015 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 31.595238 | 75 | 0.728711 | 179 | 1,327 | 5.290503 | 0.603352 | 0.063358 | 0.044351 | 0.033791 | 0.044351 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011289 | 0.198945 | 1,327 | 41 | 76 | 32.365854 | 0.879586 | 0.505652 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.0625 | 0.25 | 0.8125 | 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 | 1 | 0 | 0 | 3 |
6174ed58764b9da459ac0ce0f81ae3c4a96e5794 | 60 | py | Python | venv/lib/python3.8/site-packages/ipyfilechooser/__init__.py | ngds/ner-annotator | 22708535ffd97ba97a12cbcbffb4be7aa4632992 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/ipyfilechooser/__init__.py | ngds/ner-annotator | 22708535ffd97ba97a12cbcbffb4be7aa4632992 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/ipyfilechooser/__init__.py | ngds/ner-annotator | 22708535ffd97ba97a12cbcbffb4be7aa4632992 | [
"MIT"
] | null | null | null | from .filechooser import FileChooser
__version__ = '0.4.1'
| 15 | 36 | 0.766667 | 8 | 60 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.133333 | 60 | 3 | 37 | 20 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6182daaf8743e14cdfdf635e10484b2f8819710b | 243 | py | Python | src/tools/palette/closeTimerCallbacks.py | t3kt/raytk | e0e2b3643b2f536d597c5db64f02d17f7e8f23ac | [
"CC-BY-4.0"
] | 108 | 2020-11-23T01:22:37.000Z | 2022-03-29T09:27:32.000Z | src/tools/palette/closeTimerCallbacks.py | t3kt/raytk | e0e2b3643b2f536d597c5db64f02d17f7e8f23ac | [
"CC-BY-4.0"
] | 794 | 2020-11-21T22:27:37.000Z | 2022-03-24T06:41:19.000Z | src/tools/palette/closeTimerCallbacks.py | t3kt/raytk | e0e2b3643b2f536d597c5db64f02d17f7e8f23ac | [
"CC-BY-4.0"
] | 3 | 2021-06-19T00:57:54.000Z | 2021-11-01T11:55:07.000Z | # noinspection PyUnreachableCode
if False:
# noinspection PyUnresolvedReferences
from _stubs import *
from .palette import Palette
ext.palette = Palette(COMP())
def onDone(timerOp, segment, interrupt):
ext.palette.onCloseTimerComplete()
| 24.3 | 40 | 0.794239 | 25 | 243 | 7.68 | 0.68 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 243 | 9 | 41 | 27 | 0.901408 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
618bfd3751b3f428a9b0a0f991af2a1596f39378 | 42 | py | Python | tests/conftest.py | snyk-omar/sadevbot-plugins | 67b5ab947b9f094a605c1ac4d77d401da3d4e991 | [
"MIT"
] | null | null | null | tests/conftest.py | snyk-omar/sadevbot-plugins | 67b5ab947b9f094a605c1ac4d77d401da3d4e991 | [
"MIT"
] | 7 | 2020-09-26T18:24:11.000Z | 2020-11-30T00:23:53.000Z | tests/conftest.py | snyk-omar/sadevbot-plugins | 67b5ab947b9f094a605c1ac4d77d401da3d4e991 | [
"MIT"
] | 7 | 2020-09-25T23:21:21.000Z | 2021-01-03T20:31:18.000Z | pytest_plugins = ["errbot.backends.test"]
| 21 | 41 | 0.761905 | 5 | 42 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
6192d188c5744d703abb457fb223f1fb99e42db1 | 126 | py | Python | extension.py | kiranmayi9/task-mycaptain | 59c808925063eb0e4aa7eb7d8cd9068ba3766803 | [
"MIT"
] | null | null | null | extension.py | kiranmayi9/task-mycaptain | 59c808925063eb0e4aa7eb7d8cd9068ba3766803 | [
"MIT"
] | null | null | null | extension.py | kiranmayi9/task-mycaptain | 59c808925063eb0e4aa7eb7d8cd9068ba3766803 | [
"MIT"
] | null | null | null | filename = input("input the filename:")
f_extns = filename.split(".")
print("the extension of the file is:"+repr(f_extns[-1))
| 31.5 | 55 | 0.706349 | 20 | 126 | 4.35 | 0.65 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.111111 | 126 | 3 | 56 | 42 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61c043038e067226ab2583f7adc267709e6802b2 | 47 | py | Python | pyhydroquebec/__version__.py | charlesdagenais/pyhydroquebec | dbe4e119c45ea1ecf1850de760bb13d28038a56c | [
"Apache-2.0"
] | 90 | 2017-03-15T13:01:26.000Z | 2022-03-18T18:43:36.000Z | pyhydroquebec/__version__.py | charlesdagenais/pyhydroquebec | dbe4e119c45ea1ecf1850de760bb13d28038a56c | [
"Apache-2.0"
] | 66 | 2017-03-26T13:32:12.000Z | 2022-02-11T04:32:24.000Z | pyhydroquebec/__version__.py | charlesdagenais/pyhydroquebec | dbe4e119c45ea1ecf1850de760bb13d28038a56c | [
"Apache-2.0"
] | 50 | 2017-03-01T14:06:43.000Z | 2022-03-02T02:32:45.000Z | """PyHydroQuebec version."""
VERSION = "3.0.5"
| 15.666667 | 28 | 0.638298 | 6 | 47 | 5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.106383 | 47 | 2 | 29 | 23.5 | 0.642857 | 0.468085 | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
4ee8b8433ee7d9646f890023d69ea167500bf1b5 | 187 | py | Python | (Ex7)_Unsupervised_learning_AND_PCA_algorithm/projectData.py | HarryPham0123/Coursera_Machine_learning_AndrewNg | ae1fa34969fa0dafd44aa6606f6749c09b447239 | [
"MIT"
] | 1 | 2021-11-10T07:23:30.000Z | 2021-11-10T07:23:30.000Z | (Ex7)_Unsupervised_learning_AND_PCA_algorithm/projectData.py | HarryPham0123/Coursera_Machine_learning_AndrewNg | ae1fa34969fa0dafd44aa6606f6749c09b447239 | [
"MIT"
] | null | null | null | (Ex7)_Unsupervised_learning_AND_PCA_algorithm/projectData.py | HarryPham0123/Coursera_Machine_learning_AndrewNg | ae1fa34969fa0dafd44aa6606f6749c09b447239 | [
"MIT"
] | null | null | null | import numpy as np
# TODO: Reduce n-dim data X to K-dim data Z
def project_data(X, U, K):
U_reduce = U[:, :K] # (n, K)
Z = np.dot(X, U_reduce) # (m, K)
return Z
| 18.7 | 44 | 0.529412 | 37 | 187 | 2.594595 | 0.513514 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320856 | 187 | 9 | 45 | 20.777778 | 0.755906 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f613e50dcfb4c054f8581f1fe88afa19cf53d911 | 6,031 | py | Python | tests/test_quant_utils.py | vkoriukina/distiller | 5463ddf2b0b0e6c53a475e412c048de9be411e50 | [
"Apache-2.0"
] | 1 | 2019-02-01T04:00:51.000Z | 2019-02-01T04:00:51.000Z | tests/test_quant_utils.py | vkoriukina/distiller | 5463ddf2b0b0e6c53a475e412c048de9be411e50 | [
"Apache-2.0"
] | null | null | null | tests/test_quant_utils.py | vkoriukina/distiller | 5463ddf2b0b0e6c53a475e412c048de9be411e50 | [
"Apache-2.0"
] | 1 | 2019-04-01T05:41:18.000Z | 2019-04-01T05:41:18.000Z | #
# Copyright (c) 2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 37.69375 | 110 | 0.664732 | 853 | 6,031 | 4.580305 | 0.16061 | 0.109803 | 0.165856 | 0.172767 | 0.735091 | 0.717942 | 0.694139 | 0.662401 | 0.598157 | 0.547991 | 0 | 0.055902 | 0.202122 | 6,031 | 159 | 111 | 37.930818 | 0.756027 | 0.177748 | 0 | 0.445652 | 0 | 0 | 0.000407 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 1 | 0.021739 | false | 0 | 0.054348 | 0 | 0.076087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f61fc0a6d1324fcf7d0b1ed8664a4d222a0db814 | 1,007 | py | Python | LeetCode/top_interview_medium/others/evaluate_reverse_polish_notation.py | smartx-jshan/Coding_Practice | bc7d485e7992031e55df62483818b721ad7d1d4f | [
"Apache-2.0"
] | null | null | null | LeetCode/top_interview_medium/others/evaluate_reverse_polish_notation.py | smartx-jshan/Coding_Practice | bc7d485e7992031e55df62483818b721ad7d1d4f | [
"Apache-2.0"
] | null | null | null | LeetCode/top_interview_medium/others/evaluate_reverse_polish_notation.py | smartx-jshan/Coding_Practice | bc7d485e7992031e55df62483818b721ad7d1d4f | [
"Apache-2.0"
] | null | null | null | class Solution:
def evalRPN(self, tokens: List[str]) -> int:
number_stack = []
for token in tokens:
if token == "+" or token == "*" or token == "/" or token == "-": #계산해야하는 연산자가 들어오면
second_operand = number_stack.pop() #두번째 피연산자를 꺼내기
... | 35.964286 | 95 | 0.482622 | 96 | 1,007 | 4.864583 | 0.395833 | 0.211991 | 0.182013 | 0.188437 | 0.430407 | 0.374732 | 0.374732 | 0.374732 | 0.374732 | 0.374732 | 0 | 0 | 0.419067 | 1,007 | 27 | 96 | 37.296296 | 0.798291 | 0.072493 | 0 | 0 | 0 | 0 | 0.008611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
f62e00e59128534232215b5625c7d1ee3426f7e7 | 446 | py | Python | stopcovid/utils/kinesis.py | esl-works/dialog-engine | f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9 | [
"MIT"
] | 4 | 2020-04-17T15:50:33.000Z | 2020-04-17T16:49:00.000Z | stopcovid/utils/kinesis.py | stopcovid-co/dialog-engine | f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9 | [
"MIT"
] | 6 | 2020-06-18T16:17:27.000Z | 2020-08-24T13:21:56.000Z | stopcovid/utils/kinesis.py | esl-works/dialog-engine | f29ab486a6f193edce5bbcd2bf3b86b8ad9ceaa9 | [
"MIT"
] | 3 | 2020-04-17T16:11:35.000Z | 2020-05-21T11:38:05.000Z | import json
from base64 import b64decode
from typing import List, cast
def get_payload_from_kinesis_record(record: dict) -> dict:
payload_bytes = b64decode(record["kinesis"]["data"])
return cast(dict, json.loads(payload_bytes.decode("UTF-8")))
def get_payloads_from_kinesis_event(kinesis_payload: dict) -> Li... | 31.857143 | 74 | 0.769058 | 62 | 446 | 5.274194 | 0.419355 | 0.100917 | 0.085627 | 0.12844 | 0.201835 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0.017949 | 0.125561 | 446 | 13 | 75 | 34.307692 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.05157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f63922e68ca42b51b3e93e9f0fdfb487a8f4af6a | 1,396 | py | Python | base/operators.py | kevinrpb/rfid-protocols | 01543f995f17d92fab0b159cf1c85f4ff65cd402 | [
"MIT"
] | 1 | 2021-01-25T19:03:52.000Z | 2021-01-25T19:03:52.000Z | base/operators.py | kevinrpb/rfid-protocols | 01543f995f17d92fab0b159cf1c85f4ff65cd402 | [
"MIT"
] | null | null | null | base/operators.py | kevinrpb/rfid-protocols | 01543f995f17d92fab0b159cf1c85f4ff65cd402 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from enum import Enum
from bitarray import bitarray
class OperatorKind(Enum):
AND = '&'
OR = '|'
XOR = '^'
@staticmethod
def all() -> list:
return [
OperatorKind.AND,
OperatorKind.OR,
OperatorKind.XOR
]
@property
def operator(self):
if... | 19.942857 | 63 | 0.673352 | 155 | 1,396 | 5.929032 | 0.245161 | 0.043526 | 0.047878 | 0.065288 | 0.4037 | 0.383025 | 0.383025 | 0.255713 | 0.206746 | 0.206746 | 0 | 0 | 0.219198 | 1,396 | 69 | 64 | 20.231884 | 0.843119 | 0 | 0 | 0.313725 | 0 | 0 | 0.002149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.117647 | 0.627451 | 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 | 1 | 0 | 0 | 3 |
f6571921c8c8664b000ef96d097241eb79bc23fc | 50 | py | Python | exercises/arduino_projects/PIN_generator_2.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | 1 | 2020-12-25T18:21:18.000Z | 2020-12-25T18:21:18.000Z | exercises/arduino_projects/PIN_generator_2.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | 1 | 2021-02-11T15:05:59.000Z | 2021-02-11T15:05:59.000Z | exercises/arduino_projects/PIN_generator_2.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | null | null | null | from string import ascii_letters
h_file_name = "" | 16.666667 | 32 | 0.8 | 8 | 50 | 4.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 3 | 33 | 16.666667 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f6725bfac7cf0521dd06a13d4ce88ba750c4dd55 | 1,325 | py | Python | src/compas_viewers/objectviewer/objects/_primitiveobject.py | GeneKao/compas_viewers | 6ccaa058de176478a131c54d91c4c6e2dcd52a88 | [
"MIT"
] | 5 | 2019-12-02T09:20:58.000Z | 2020-09-05T20:00:44.000Z | src/compas_viewers/objectviewer/objects/_primitiveobject.py | GeneKao/compas_viewers | 6ccaa058de176478a131c54d91c4c6e2dcd52a88 | [
"MIT"
] | 8 | 2019-11-24T18:32:17.000Z | 2020-11-18T13:18:04.000Z | src/compas_viewers/objectviewer/objects/_primitiveobject.py | GeneKao/compas_viewers | 6ccaa058de176478a131c54d91c4c6e2dcd52a88 | [
"MIT"
] | 4 | 2019-11-29T10:21:56.000Z | 2020-08-08T16:53:27.000Z | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from compas.utilities import pairwise
from .node import Node
__all__ = ['PrimitiveView', 'PrimitiveObject']
class PrimitiveObject(Node):
def __init__(self, scene, primitive, **kwargs):
super(P... | 21.031746 | 80 | 0.576604 | 123 | 1,325 | 5.788618 | 0.317073 | 0.146067 | 0.123596 | 0.088483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22717 | 1,325 | 62 | 81 | 21.370968 | 0.695313 | 0.122264 | 0 | 0.25641 | 0 | 0 | 0.031061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.025641 | 0.128205 | 0.153846 | 0.564103 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
9cb6237cb88db01ea6eb93f2c4eedb48284d2d16 | 10,037 | py | Python | pkgs/conf-pkg/src/genie/libs/conf/acl/iosxe/tests/test_acl.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | null | null | null | pkgs/conf-pkg/src/genie/libs/conf/acl/iosxe/tests/test_acl.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | null | null | null | pkgs/conf-pkg/src/genie/libs/conf/acl/iosxe/tests/test_acl.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Python
import unittest
from unittest.mock import Mock
# Genie
from genie.conf.tests import TestCase
from genie.conf import Genie
from genie.conf.base import Testbed, Device, Link, Interface
from genie.conf.base.attributes import UnsupportedAttributeWarning
# Stp
from genie.libs.conf.acl impor... | 43.077253 | 129 | 0.466773 | 1,079 | 10,037 | 4.130677 | 0.112141 | 0.084362 | 0.131927 | 0.169621 | 0.800314 | 0.76823 | 0.695984 | 0.639219 | 0.632937 | 0.566525 | 0 | 0.062553 | 0.409086 | 10,037 | 232 | 130 | 43.262931 | 0.688923 | 0.020424 | 0 | 0.567708 | 0 | 0.005208 | 0.214628 | 0.019252 | 0 | 0 | 0 | 0 | 0.015625 | 1 | 0.010417 | false | 0 | 0.036458 | 0 | 0.052083 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9cc48e1430ff26317adc3e18816ce498ec7d7e4c | 77 | py | Python | src/objects/__init__.py | iamantony/PythonNotes | 4ed740378bd5e031e2c21675f33ae8e199a48bbb | [
"MIT"
] | null | null | null | src/objects/__init__.py | iamantony/PythonNotes | 4ed740378bd5e031e2c21675f33ae8e199a48bbb | [
"MIT"
] | null | null | null | src/objects/__init__.py | iamantony/PythonNotes | 4ed740378bd5e031e2c21675f33ae8e199a48bbb | [
"MIT"
] | null | null | null | __author__ = 'Antony Cherepanov'
from point import Point, PointException
| 19.25 | 40 | 0.779221 | 8 | 77 | 7 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 77 | 3 | 41 | 25.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9cca1e65fbabd33ec147929ee63d5da80faa69b5 | 555 | py | Python | pyjunix/__init__.py | aanastasiou/pyjunix | a2deb9a5e159155a175098918e3514e30714185d | [
"Apache-2.0"
] | 1 | 2020-09-30T02:59:37.000Z | 2020-09-30T02:59:37.000Z | pyjunix/__init__.py | aanastasiou/pyjunix | a2deb9a5e159155a175098918e3514e30714185d | [
"Apache-2.0"
] | 1 | 2021-06-02T00:30:47.000Z | 2021-06-02T00:30:47.000Z | pyjunix/__init__.py | aanastasiou/pyjunix | a2deb9a5e159155a175098918e3514e30714185d | [
"Apache-2.0"
] | null | null | null | """
Module access for subsequent PyJUnix directives.
:authors: Athanasios Anastasiou
:date: September 2019
"""
from .pyjkeys import PyJKeys
from .pyjarray import PyJArray
from .pyjunarray import PyJUnArray
from .pyjls import PyJLs
from .pyjgrep import PyJGrep
from .pyjprtprn import PyJPrtPrn
from .pyjsort import PyJ... | 23.125 | 48 | 0.814414 | 72 | 555 | 6.277778 | 0.402778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.138739 | 555 | 23 | 49 | 24.130435 | 0.937238 | 0.185586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9cef5cbb349b81e538712bc687a60da2a039a2ee | 32,858 | py | Python | python-connectors/meteonomiqs-api_weather-features-retriever/connector.py | meteonomiqs/meteonomiqs-api | 2d6a475a9566e46c3a6c310c2d1e088a43bc5bd5 | [
"Apache-2.0"
] | 1 | 2021-08-04T08:47:01.000Z | 2021-08-04T08:47:01.000Z | python-connectors/meteonomiqs-api_weather-features-retriever/connector.py | meteonomiqs/meteonomiqs-api | 2d6a475a9566e46c3a6c310c2d1e088a43bc5bd5 | [
"Apache-2.0"
] | null | null | null | python-connectors/meteonomiqs-api_weather-features-retriever/connector.py | meteonomiqs/meteonomiqs-api | 2d6a475a9566e46c3a6c310c2d1e088a43bc5bd5 | [
"Apache-2.0"
] | null | null | null | from six.moves import xrange
from dataiku.connector import Connector
import os
import pwd
import requests
import json
import base64
import datetime
from time import sleep
import logging
from constants import Plan, Granularity
import constants
logger = logging.getLogger(__name__)
class MyConnector(Con... | 73.838202 | 282 | 0.5189 | 3,794 | 32,858 | 4.442541 | 0.076173 | 0.167725 | 0.181549 | 0.098843 | 0.765648 | 0.726016 | 0.697775 | 0.673806 | 0.666746 | 0.666746 | 0 | 0.003356 | 0.319831 | 32,858 | 445 | 283 | 73.838202 | 0.750817 | 0.133879 | 0 | 0.46319 | 0 | 0.018405 | 0.242849 | 0.005041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02454 | false | 0 | 0.03681 | 0.006135 | 0.09816 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9cfab8befa1e38c81c5ce1fc166f9cd1ee70ed15 | 635 | py | Python | apps/vision/tasks.py | dlooto/driver-vision | 676256891971df1d5eee990be54fb31f485d0ae3 | [
"MIT"
] | 2 | 2020-06-16T01:52:47.000Z | 2021-03-24T08:34:23.000Z | apps/vision/tasks.py | dlooto/driver-vision | 676256891971df1d5eee990be54fb31f485d0ae3 | [
"MIT"
] | 2 | 2020-02-12T03:09:54.000Z | 2020-06-05T22:47:17.000Z | apps/vision/tasks.py | dlooto/driver-vision | 676256891971df1d5eee990be54fb31f485d0ae3 | [
"MIT"
] | null | null | null | #coding=utf-8
#
# Copyright (C) 2014 NianNian TECH Co., Ltd. All rights reserved.
# Created on Jan 4, 2016, by Junn
#
# from celery.task import task
#
# @task
# def start_move(worker):
# if worker.is_working:
# return
# worker.is_working = True
# worker.run()
# @task()
# def stop_move(wor... | 20.483871 | 66 | 0.614173 | 84 | 635 | 4.559524 | 0.595238 | 0.104439 | 0.195822 | 0.109661 | 0.18799 | 0.18799 | 0.18799 | 0 | 0 | 0 | 0 | 0.036638 | 0.269291 | 635 | 31 | 67 | 20.483871 | 0.788793 | 0.650394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9cfc00457f6173736b8c3b5170f9c512de42a6be | 892 | py | Python | MkSShellExecutor.py | MakeSenseCorp/mksdk-py | 3466124288c3a89effa0e918c2f310e25db17e0e | [
"Apache-2.0"
] | null | null | null | MkSShellExecutor.py | MakeSenseCorp/mksdk-py | 3466124288c3a89effa0e918c2f310e25db17e0e | [
"Apache-2.0"
] | 7 | 2018-02-19T12:15:46.000Z | 2018-05-04T23:02:12.000Z | MkSShellExecutor.py | MakeSenseCorp/mksdk-py | 3466124288c3a89effa0e918c2f310e25db17e0e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
import time
if sys.version_info[0] < 3:
import thread
else:
import _thread
import threading
import subprocess
class ShellExecutor():
def __init__(self):
self.SudoSocket = None
self.IsRunning = False
# self.Pipe = subprocess.Popen("", shell=True, stdin=subprocess.PIPE,... | 20.744186 | 97 | 0.724215 | 120 | 892 | 5.316667 | 0.408333 | 0.075235 | 0.081505 | 0.056426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002632 | 0.147982 | 892 | 43 | 98 | 20.744186 | 0.836842 | 0.286996 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.142857 | 0.25 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
141e1f2e226408256760939eefd60733b97372fc | 667 | py | Python | _research/fxqu4nt/setup.py | mothaibatacungmua/mothaibatacungmua | 5f5e8bdcb56d4eadbcf68bd017e90841622597ac | [
"CC0-1.0"
] | null | null | null | _research/fxqu4nt/setup.py | mothaibatacungmua/mothaibatacungmua | 5f5e8bdcb56d4eadbcf68bd017e90841622597ac | [
"CC0-1.0"
] | null | null | null | _research/fxqu4nt/setup.py | mothaibatacungmua/mothaibatacungmua | 5f5e8bdcb56d4eadbcf68bd017e90841622597ac | [
"CC0-1.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='fxqu4nt',
version='0.0.1',
packages=find_packages(),
install_requires=[
'click',
'qpython==2.0.0',
'PyQt5==5.13.0',
'pandas==0.25.3',
'pyqtgraph==0.10.0',
'pyyaml',
'nose2'
],
entry_... | 29 | 76 | 0.646177 | 90 | 667 | 4.455556 | 0.455556 | 0.122195 | 0.179551 | 0.209476 | 0.389027 | 0.389027 | 0.389027 | 0.389027 | 0 | 0 | 0 | 0.048356 | 0.224888 | 667 | 23 | 77 | 29 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.625749 | 0.396707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
144cbe8734abbb54262cc80aef13a5f4bc3bc551 | 489 | py | Python | Django/makeplan/my_todos/migrations/0002_auto_20190731_1840.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | 1 | 2019-05-04T09:21:52.000Z | 2019-05-04T09:21:52.000Z | Django/makeplan/my_todos/migrations/0002_auto_20190731_1840.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | 26 | 2020-07-18T02:02:54.000Z | 2022-02-26T10:49:58.000Z | Django/makeplan/my_todos/migrations/0002_auto_20190731_1840.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-07-31 10:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('my_todos', '0001_initial'),
]
operations = [
migrations.RemoveField(
m... | 20.375 | 49 | 0.574642 | 51 | 489 | 5.294118 | 0.705882 | 0.155556 | 0.192593 | 0.222222 | 0.281481 | 0.281481 | 0 | 0 | 0 | 0 | 0 | 0.064897 | 0.306748 | 489 | 23 | 50 | 21.26087 | 0.731563 | 0.141104 | 0 | 0.375 | 1 | 0 | 0.110312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
145ec9ce777c8d70f8cd96df8ec80764580569e7 | 1,195 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/CategoryType.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/CategoryType.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/CategoryType.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class CategoryType(Enum, IComparable, IFormattable, IConvertible):
"""
The type of category.
enum CategoryType,values: AnalyticalModel (5),Annotation (2),Internal (4),Invalid (0),Model (1)
"""
def __eq__(self, *args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y ... | 24.387755 | 221 | 0.568201 | 133 | 1,195 | 4.390977 | 0.360902 | 0.136986 | 0.143836 | 0.15411 | 0.22089 | 0.22089 | 0.22089 | 0.193493 | 0.193493 | 0.193493 | 0 | 0.005931 | 0.294561 | 1,195 | 48 | 222 | 24.895833 | 0.686833 | 0.374895 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0.37037 | 0 | 0 | 0.62963 | 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 | 1 | 0 | 0 | 3 |
147aa5692dc2fec378a628ae2d60ad1ce88f34e5 | 353 | py | Python | Set1/Challenge5/encodeRepeatingKeyXor.py | lcheung90/crypto-challenges | 5e8b337acadd89e0203b6bf65c218fb9a0408d82 | [
"Unlicense"
] | null | null | null | Set1/Challenge5/encodeRepeatingKeyXor.py | lcheung90/crypto-challenges | 5e8b337acadd89e0203b6bf65c218fb9a0408d82 | [
"Unlicense"
] | null | null | null | Set1/Challenge5/encodeRepeatingKeyXor.py | lcheung90/crypto-challenges | 5e8b337acadd89e0203b6bf65c218fb9a0408d82 | [
"Unlicense"
] | null | null | null | def encodeRepeatingKeyXor(s, key):
keySize = len(s)
mask = expandToLength(key,keySize)
xor = [ ord(x) ^ ord(y) for x, y in zip(s, mask) ]
b16_xor_tokens = map(lambda x: hex(x), xor)
return ''.join(map(lambda x: x[2:].zfill(2), b16_xor_tokens))
def expandToLength(s, length):
return (s * ... | 39.222222 | 66 | 0.606232 | 55 | 353 | 3.818182 | 0.472727 | 0.095238 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025271 | 0.215297 | 353 | 9 | 67 | 39.222222 | 0.732852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
147af8250c3ac96d3099193050427acae7b15631 | 1,215 | py | Python | lastfmtimeline/Util.py | D3r3k23/LastFmTimeline | 3843539c2787d5e85d8ac4509783e05bf19b9787 | [
"MIT"
] | 2 | 2020-12-17T07:10:54.000Z | 2022-02-10T04:42:21.000Z | lastfmtimeline/Util.py | D3r3k23/LastFmTimeline | 3843539c2787d5e85d8ac4509783e05bf19b9787 | [
"MIT"
] | null | null | null | lastfmtimeline/Util.py | D3r3k23/LastFmTimeline | 3843539c2787d5e85d8ac4509783e05bf19b9787 | [
"MIT"
] | null | null | null | import enum
import math
import pickle
from dataclasses import dataclass
from datetime import datetime
import yaml
class MyEnum(enum.Enum):
def __str__(self):
return self.name.lower()
@classmethod
def from_str(cls, s):
for member in list(cls):
if s == str(member):
... | 20.59322 | 49 | 0.630453 | 170 | 1,215 | 4.405882 | 0.405882 | 0.053405 | 0.040053 | 0.042724 | 0.053405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246914 | 1,215 | 58 | 50 | 20.948276 | 0.818579 | 0 | 0 | 0.045455 | 0 | 0 | 0.014815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.136364 | 0.113636 | 0.772727 | 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 | 1 | 0 | 0 | 3 |
147dac64c42a5d7acf4254d7cfd05e8de6d5a245 | 1,148 | py | Python | broker/tests/test_mappings.py | SbastianGarzon/o2r-meta | ec5f7c6d432cbb43ab7df2985fc502e60fe7bcff | [
"Apache-2.0"
] | 2 | 2017-06-28T14:47:57.000Z | 2020-11-10T01:59:11.000Z | broker/tests/test_mappings.py | SbastianGarzon/o2r-meta | ec5f7c6d432cbb43ab7df2985fc502e60fe7bcff | [
"Apache-2.0"
] | 95 | 2016-07-14T13:21:52.000Z | 2021-04-08T12:51:53.000Z | broker/tests/test_mappings.py | SbastianGarzon/o2r-meta | ec5f7c6d432cbb43ab7df2985fc502e60fe7bcff | [
"Apache-2.0"
] | 4 | 2016-07-21T12:16:37.000Z | 2021-10-04T13:31:40.000Z | # pylint: skip-file
import pytest
def validate_mapping(path, script_runner):
ret = script_runner.run('python3', 'o2rmeta.py', '-debug', 'validate',
'-s', 'schema/json/map-schema.json',
'-c', path)
print(ret.stdout)
print(ret.stderr)
assert ret.success, "process should return success"
... | 35.875 | 79 | 0.746516 | 152 | 1,148 | 5.434211 | 0.282895 | 0.20339 | 0.130751 | 0.188862 | 0.618644 | 0.578692 | 0.547216 | 0.276029 | 0 | 0 | 0 | 0.007992 | 0.128049 | 1,148 | 31 | 80 | 37.032258 | 0.817183 | 0.014808 | 0 | 0 | 0 | 0 | 0.306466 | 0.20372 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.318182 | false | 0 | 0.045455 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 1 | 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 | 3 |
1485d04433a2b43b2fb8b7d9b59bf62b119b5345 | 431 | py | Python | home/admin.py | kana-shimmichi/Weeet | 4e332107748cbf63b6c109d3e5ce968a42ed10c3 | [
"BSD-3-Clause"
] | null | null | null | home/admin.py | kana-shimmichi/Weeet | 4e332107748cbf63b6c109d3e5ce968a42ed10c3 | [
"BSD-3-Clause"
] | 9 | 2021-03-19T00:17:56.000Z | 2022-03-12T00:17:14.000Z | home/admin.py | kana-shimmichi/Weeet | 4e332107748cbf63b6c109d3e5ce968a42ed10c3 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import *
admin.site.register(MstLang)
admin.site.register(MstCost)
admin.site.register(MstSkill)
admin.site.register(CreditInfomation)
admin.site.register(BuyerProfile)
admin.site.register(MakerProfile)
admin.site.register(Order)
admin.site.register(OrderMessage)
admin.si... | 26.9375 | 37 | 0.832947 | 56 | 431 | 6.410714 | 0.357143 | 0.300836 | 0.568245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048724 | 431 | 16 | 38 | 26.9375 | 0.87561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
14aa7f4b483ace91692564f95670ecda72d12323 | 261 | py | Python | icubam/messaging/serializable.py | Inria-Chile/icubam | 96df2c54976d1b7bc25732c8a5f67fafa0adffab | [
"Apache-2.0"
] | null | null | null | icubam/messaging/serializable.py | Inria-Chile/icubam | 96df2c54976d1b7bc25732c8a5f67fafa0adffab | [
"Apache-2.0"
] | null | null | null | icubam/messaging/serializable.py | Inria-Chile/icubam | 96df2c54976d1b7bc25732c8a5f67fafa0adffab | [
"Apache-2.0"
] | null | null | null | import dataclasses
import json
class Serizalizable:
"""Base class for message server POST responses/requests."""
def to_json(self):
return json.dumps(dataclasses.asdict(self))
def from_json(self, encoded):
self.__init__(**json.loads(encoded))
| 20.076923 | 62 | 0.735632 | 34 | 261 | 5.470588 | 0.647059 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 261 | 12 | 63 | 21.75 | 0.837838 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 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 | 1 | 0 | 0 | 3 |
14b148d01a9d1b34550ad4ee3604b8d539623268 | 321 | py | Python | olx/product/urls.py | bhole-yash/olx-clone | 5ecde117b6ed3f9587ecfb93ebd3ff6773896b37 | [
"MIT"
] | null | null | null | olx/product/urls.py | bhole-yash/olx-clone | 5ecde117b6ed3f9587ecfb93ebd3ff6773896b37 | [
"MIT"
] | null | null | null | olx/product/urls.py | bhole-yash/olx-clone | 5ecde117b6ed3f9587ecfb93ebd3ff6773896b37 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'product'
urlpatterns = [
path('', views.productlist, name='product_list'),
path('detail/<slug:product_slug>', views.productdetail, name='product_detail'),
path('<slug:category_slug>', views.productlist, name='product_list_category'),
]
... | 29.181818 | 84 | 0.700935 | 38 | 321 | 5.736842 | 0.421053 | 0.201835 | 0.183486 | 0.247706 | 0.284404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 321 | 10 | 85 | 32.1 | 0.798535 | 0 | 0 | 0 | 0 | 0 | 0.321543 | 0.151125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
14bd64f57d0f27e16e11ee45e316688289cf8e11 | 36,935 | py | Python | features/text_features/helpers/blabla/blabla/document_engine.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T09:05:11.000Z | 2022-01-24T00:48:22.000Z | features/text_features/helpers/blabla/blabla/document_engine.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T19:12:10.000Z | 2022-02-08T14:46:34.000Z | features/text_features/helpers/blabla/blabla/document_engine.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 25 | 2020-08-07T20:03:08.000Z | 2022-03-16T07:33:25.000Z | import traceback
from blabla.sentence_aggregators.phonetic_and_phonological_feature_aggregator import (
phonetic_and_phonological_feature_processor,
)
from blabla.sentence_aggregators.lexico_semantic_fearture_aggregator import (
lexico_semantic_feature_processor,
)
from blabla.sentence_aggregators.morpho_synta... | 35.042694 | 145 | 0.605767 | 3,822 | 36,935 | 5.661172 | 0.06044 | 0.033276 | 0.059897 | 0.089846 | 0.76383 | 0.710219 | 0.669501 | 0.647456 | 0.631603 | 0.601562 | 0 | 0.0177 | 0.313199 | 36,935 | 1,053 | 146 | 35.075973 | 0.835258 | 0.430676 | 0 | 0.100313 | 0 | 0.003135 | 0.158897 | 0.043434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23511 | false | 0 | 0.025078 | 0 | 0.492163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ae38b3918843f4d9febc41db64a301aaf5f8af0 | 3,822 | py | Python | secistsploit/core/exploit/Banner.py | reneaicisneros/SecistSploit | b4e1bb0a213bee39c3bb79ab36e03e19122b80c0 | [
"MIT"
] | 15 | 2018-12-06T16:03:32.000Z | 2021-06-23T01:17:00.000Z | secistsploit/core/exploit/Banner.py | reneaicisneros/SecistSploit | b4e1bb0a213bee39c3bb79ab36e03e19122b80c0 | [
"MIT"
] | null | null | null | secistsploit/core/exploit/Banner.py | reneaicisneros/SecistSploit | b4e1bb0a213bee39c3bb79ab36e03e19122b80c0 | [
"MIT"
] | 6 | 2019-03-01T04:10:00.000Z | 2020-02-26T08:43:54.000Z | import random
banner1 = ('''
██████ ██████ █████▒ ▄████▄ ▒█████ ███▄ █ ██████ ▒█████ ██▓ ▓█████
▒██ ▒ ▒██ ▒ ▓██ ▒ ▒██▀ ▀█ ▒██▒ ██▒ ██ ▀█ █ ▒██ ▒ ▒██▒ ██▒▓██▒ ▓█ ▀
░ ▓██▄ ░ ▓██▄ ▒████ ░ ▒▓█ ▄ ▒██░ ██▒▓██ ▀█ ██▒░ ▓██▄ ▒██░ ██▒▒██░ ▒███
▒ ██▒ ▒ ... | 53.830986 | 95 | 0.0382 | 447 | 3,822 | 3.639821 | 0.340045 | 0.059004 | 0.073755 | 0.086048 | 0.07437 | 0.038107 | 0.034419 | 0.029502 | 0.029502 | 0.029502 | 0 | 0.007692 | 0.52381 | 3,822 | 70 | 96 | 54.6 | 0.067033 | 0 | 0 | 0.116667 | 0 | 0.083333 | 0.932496 | 0.090005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.016667 | 0 | 0.033333 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
211fbf325419cc82a17d4af9b87928d56528f1e6 | 314 | py | Python | problem_013.py | arboreus/project_euler | 796173e8e72fcbfc15bbb3def7a36349639fafcf | [
"MIT"
] | null | null | null | problem_013.py | arboreus/project_euler | 796173e8e72fcbfc15bbb3def7a36349639fafcf | [
"MIT"
] | null | null | null | problem_013.py | arboreus/project_euler | 796173e8e72fcbfc15bbb3def7a36349639fafcf | [
"MIT"
] | null | null | null | #13) Large sum
#Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
nums = """
37107287533902102798797998220837590246510135740250
...
53503534226472524250874054075591789781264330331690
""".replace('\n', ' ').strip().split(' ')
# Solution
str(sum([int(x) for x in nums]))[:10]
| 26.166667 | 88 | 0.738854 | 37 | 314 | 6.27027 | 0.810811 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.382671 | 0.117834 | 314 | 11 | 89 | 28.545455 | 0.454874 | 0.347134 | 0 | 0 | 0 | 0 | 0.549505 | 0.49505 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2121ac8b24344b42167630051bcb3a35de1a9c4a | 162 | py | Python | python/draw_action.py | c0lbarator/unibot | a144e8b645c99ac9c4043fd576b77882afab2dd1 | [
"MIT"
] | 1 | 2020-04-06T11:57:24.000Z | 2020-04-06T11:57:24.000Z | Programms/Plotter/draw_action.py | RedNicStone/plott3r | ab3f92deba64720daddce51918a8118c03bf35b8 | [
"Apache-2.0"
] | null | null | null | Programms/Plotter/draw_action.py | RedNicStone/plott3r | ab3f92deba64720daddce51918a8118c03bf35b8 | [
"Apache-2.0"
] | null | null | null | class DrawAction:
PEN_UP = 1
PEN_DOWN = 2
PEN_MOVE = 3
def __init__(self, t, x=0, y=0):
self.t = t
self.x = x
self.y = y
| 16.2 | 36 | 0.481481 | 28 | 162 | 2.535714 | 0.571429 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.407407 | 162 | 9 | 37 | 18 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 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 | 1 | 0 | 0 | 3 |
2122757d25688ecc0447479fef3c71ca0ea2e8e7 | 129 | py | Python | fundamentals/2-objects-data-structures/1-numbers.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | fundamentals/2-objects-data-structures/1-numbers.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | fundamentals/2-objects-data-structures/1-numbers.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | # Basic operations
print(2+1)
print(3*4)
print(3/2)
# Modulo or "Mod" operator
print(7 % 4)
print(50 % 5)
# Power
print(2 ** 3) | 11.727273 | 26 | 0.635659 | 25 | 129 | 3.28 | 0.6 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122642 | 0.178295 | 129 | 11 | 27 | 11.727273 | 0.650943 | 0.364341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
214f5d9c3953fbf9088caa9c5adbc52e1b0cdc8a | 283 | py | Python | website/moneybird_accounting/apps.py | JobDoesburg/landolfio | 4cbf31c2e6f93745f5aa0d20893bf20f3acecc6e | [
"MIT"
] | 1 | 2021-02-24T14:33:09.000Z | 2021-02-24T14:33:09.000Z | website/moneybird_accounting/apps.py | JobDoesburg/landolfio | 4cbf31c2e6f93745f5aa0d20893bf20f3acecc6e | [
"MIT"
] | 2 | 2022-01-13T04:03:38.000Z | 2022-03-12T01:03:10.000Z | website/moneybird_accounting/apps.py | JobDoesburg/landolfio | 4cbf31c2e6f93745f5aa0d20893bf20f3acecc6e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
# TODO better document everything
class MoneybirdAccountingConfig(AppConfig):
name = "moneybird_accounting"
label = "moneybird"
verbose_name = "Moneybird"
def ready(self):
from moneybird_accounting import signals # noqa
| 21.769231 | 56 | 0.734982 | 29 | 283 | 7.068966 | 0.724138 | 0.126829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201413 | 283 | 12 | 57 | 23.583333 | 0.90708 | 0.127208 | 0 | 0 | 0 | 0 | 0.155738 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
214fa060140c8a3db0eceb955b526e326cdff0cd | 212 | py | Python | apps/accounts/serializer.py | JonathanHuarca/deploy-heroku-django | 5f88c230dbf59bdf993a0b8088b26fa9e60ac3ce | [
"FTL",
"Xnet",
"X11"
] | null | null | null | apps/accounts/serializer.py | JonathanHuarca/deploy-heroku-django | 5f88c230dbf59bdf993a0b8088b26fa9e60ac3ce | [
"FTL",
"Xnet",
"X11"
] | null | null | null | apps/accounts/serializer.py | JonathanHuarca/deploy-heroku-django | 5f88c230dbf59bdf993a0b8088b26fa9e60ac3ce | [
"FTL",
"Xnet",
"X11"
] | null | null | null | from rest_framework import serializers
from apps.accounts.models import User
class UserCustomSerializer(serializers.ModelSerializer):
id = serializers.IntegerField()
class Meta:
model = User
| 17.666667 | 56 | 0.759434 | 22 | 212 | 7.272727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183962 | 212 | 11 | 57 | 19.272727 | 0.924855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
dcbe8d4ea46690bfc7377499956623325b598878 | 273 | py | Python | test/arena1/someimport.py | da-x/crumb | ff2bd8a38949c50a4bdb590ea98804b386402a53 | [
"BSD-3-Clause"
] | 1 | 2015-01-22T18:45:32.000Z | 2015-01-22T18:45:32.000Z | test/arena1/someimport.py | da-x/crumb | ff2bd8a38949c50a4bdb590ea98804b386402a53 | [
"BSD-3-Clause"
] | null | null | null | test/arena1/someimport.py | da-x/crumb | ff2bd8a38949c50a4bdb590ea98804b386402a53 | [
"BSD-3-Clause"
] | null | null | null | import time
def knows_how_to_generate(output_file, another_input_dep):
f = open(output_file, "w")
print >>f, "#define GENERATED \"%s\"" % (time.ctime(), )
print >>f, "#define ANOTHER_GENERATED \"%s\"" % (open(another_input_dep).read().strip(), )
f.close()
| 34.125 | 94 | 0.644689 | 38 | 273 | 4.368421 | 0.605263 | 0.120482 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157509 | 273 | 7 | 95 | 39 | 0.721739 | 0 | 0 | 0 | 1 | 0 | 0.172161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dcc832c02abdb922a02019be32153ac120373233 | 751 | py | Python | ourGames/models.py | Shamaun-Nabi/Online-Gaming-Shop | 817f43e8a7db0805fedc47089894b531251b1131 | [
"MIT"
] | 3 | 2021-03-30T17:56:43.000Z | 2021-04-10T08:55:07.000Z | ourGames/models.py | Shamaun-Nabi/Online-Gaming-Shop-with-Team | 817f43e8a7db0805fedc47089894b531251b1131 | [
"MIT"
] | 2 | 2021-03-19T16:18:46.000Z | 2021-03-20T13:23:13.000Z | ourGames/models.py | Shamaun-Nabi/Online-Gaming-Shop | 817f43e8a7db0805fedc47089894b531251b1131 | [
"MIT"
] | 3 | 2021-03-08T15:57:11.000Z | 2021-07-07T17:00:43.000Z | from django.db import models
# Create your models here.
class Category(models.Model):
name=models.CharField(max_length=20)
def __str__(self):
return self.name
class Game(models.Model):
name = models.CharField(max_length=30)
price = models.FloatField()
description=models.TextField(def... | 32.652174 | 86 | 0.725699 | 94 | 751 | 5.617021 | 0.521277 | 0.113636 | 0.136364 | 0.181818 | 0.291667 | 0.238636 | 0.147727 | 0 | 0 | 0 | 0 | 0.014331 | 0.163782 | 751 | 23 | 87 | 32.652174 | 0.826433 | 0.139814 | 0 | 0.25 | 0 | 0 | 0.057453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.125 | 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 | 1 | 1 | 0 | 0 | 3 |
dceb94626266670773a657926dd6356eabff300a | 595 | py | Python | ch3/Player.py | antallen/PythonMaterial | c582fb1610610feb72002f43a3758d5c58d6da85 | [
"MIT"
] | null | null | null | ch3/Player.py | antallen/PythonMaterial | c582fb1610610feb72002f43a3758d5c58d6da85 | [
"MIT"
] | null | null | null | ch3/Player.py | antallen/PythonMaterial | c582fb1610610feb72002f43a3758d5c58d6da85 | [
"MIT"
] | 1 | 2021-07-23T09:59:15.000Z | 2021-07-23T09:59:15.000Z | class Player:
# 初始化玩家,每人發 20000 遊戲幣以及出發位置為 0
def __init__(self,money = 20000, po = 0):
self.__money = money
self.__po = po
# 設定玩家名稱
def setName(self,name):
self.__name = name
# 取得玩家名稱
def getName(self):
return self.__name
# 修改玩家遊戲幣
... | 20.517241 | 45 | 0.522689 | 65 | 595 | 4.476923 | 0.415385 | 0.154639 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.389916 | 595 | 29 | 46 | 20.517241 | 0.768595 | 0.121008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0 | 0.1875 | 0.6875 | 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 | 1 | 0 | 0 | 3 |
0d051ed2a7a2cc63b648dd5b68c116bc01c4a16f | 1,162 | py | Python | datastructure/practice/c2/r_2_6.py | stoneyangxu/python-kata | 979af91c74718a525dcd2a83fe53ec6342af9741 | [
"MIT"
] | null | null | null | datastructure/practice/c2/r_2_6.py | stoneyangxu/python-kata | 979af91c74718a525dcd2a83fe53ec6342af9741 | [
"MIT"
] | null | null | null | datastructure/practice/c2/r_2_6.py | stoneyangxu/python-kata | 979af91c74718a525dcd2a83fe53ec6342af9741 | [
"MIT"
] | null | null | null | import unittest
class CreditCard:
def __init__(self, customer, bank, acnt, limit):
self._customer = customer
self._bank = bank
self._acnt = acnt
self._limit = limit
self._balance = 0
def get_customer(self):
return self._customer
def get_bank(self):
... | 22.346154 | 66 | 0.599828 | 132 | 1,162 | 5.007576 | 0.356061 | 0.083207 | 0.1059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021197 | 0.309811 | 1,162 | 51 | 67 | 22.784314 | 0.802993 | 0 | 0 | 0 | 0 | 0 | 0.042169 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.243243 | false | 0 | 0.027027 | 0.135135 | 0.513514 | 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 | 1 | 0 | 0 | 3 |
0d19c69d7aef9fe0b64d97dacbf8e23a460b9383 | 331 | py | Python | tests/test_command.py | JPHutchins/pyavreceiver | 2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f | [
"Apache-2.0"
] | 2 | 2020-12-28T06:09:18.000Z | 2021-01-09T22:36:57.000Z | tests/test_command.py | JPHutchins/pyavreceiver | 2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f | [
"Apache-2.0"
] | 1 | 2021-02-03T22:59:49.000Z | 2021-02-03T22:59:49.000Z | tests/test_command.py | JPHutchins/pyavreceiver | 2c86d0ab1f3bca886d2a876096ac760ffb1dcd5f | [
"Apache-2.0"
] | null | null | null | """Tests for command base classes."""
import pytest
from pyavreceiver.command import TelnetCommand
def test_telnet_command():
"""Test telnet command abstract base class."""
with pytest.raises(TypeError):
# pylint: disable=abstract-class-instantiated
TelnetCommand(name="FAKE", group="FAKE", va... | 27.583333 | 61 | 0.722054 | 38 | 331 | 6.236842 | 0.684211 | 0.084388 | 0.14346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163142 | 331 | 11 | 62 | 30.090909 | 0.855596 | 0.353474 | 0 | 0 | 0 | 0 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0d3716a089ade79d39bd30e6311d35ffa2a8fea3 | 622 | py | Python | piecewise/environment/__init__.py | jtbish/piecewise | d27e095e298698d83901bfd1236e0e0669261136 | [
"MIT"
] | 3 | 2019-12-04T02:28:08.000Z | 2022-02-02T13:13:36.000Z | piecewise/environment/__init__.py | jtbish/piecewise | d27e095e298698d83901bfd1236e0e0669261136 | [
"MIT"
] | 5 | 2020-01-15T04:33:36.000Z | 2021-03-26T14:58:47.000Z | piecewise/environment/__init__.py | jtbish/piecewise | d27e095e298698d83901bfd1236e0e0669261136 | [
"MIT"
] | 1 | 2020-06-04T08:55:27.000Z | 2020-06-04T08:55:27.000Z | from .environment import EnvironmentStepTypes
from .reinforcement.cartpole_environment import (make_cartpole_train_env,
make_cartpole_test_env)
from .reinforcement.mountain_car_environment import (make_mountain_car_train_env,
... | 62.2 | 81 | 0.68328 | 69 | 622 | 5.521739 | 0.246377 | 0.110236 | 0.146982 | 0.133858 | 0.304462 | 0.12336 | 0 | 0 | 0 | 0 | 0 | 0.029279 | 0.286174 | 622 | 9 | 82 | 69.111111 | 0.828829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0d4bc0f5f535c2a14ab30e726f897a769f6a43fb | 269 | py | Python | afterglow_core/views/ajax_api/__init__.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 2 | 2021-05-24T15:12:07.000Z | 2022-02-17T19:58:16.000Z | afterglow_core/views/ajax_api/__init__.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 1 | 2022-02-27T03:01:06.000Z | 2022-02-27T03:01:06.000Z | afterglow_core/views/ajax_api/__init__.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 2 | 2021-06-08T18:16:40.000Z | 2021-07-09T14:19:49.000Z | """
Afterglow Core: AJAX API endpoints
"""
url_prefix = '/ajax/'
from .app_authorizations import *
from .tokens import *
from .sessions import *
from .initialize import *
from .oauth2_providers import *
from .oauth2_clients import *
from .server_status import *
| 14.157895 | 34 | 0.736059 | 33 | 269 | 5.848485 | 0.575758 | 0.310881 | 0.165803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.167286 | 269 | 18 | 35 | 14.944444 | 0.852679 | 0.126394 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 0.875 | 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 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.