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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3437523667b4fd7c19e4eec18e650541f0fb1f99 | 528 | py | Python | helpers.py | chame1eon/binaryninja-frida | 6292320d1854abaa9a1f2a59234c49faebf86416 | [
"MIT"
] | 46 | 2017-10-10T20:28:57.000Z | 2022-02-28T13:45:48.000Z | helpers.py | chame1eon/binaryninja-frida | 6292320d1854abaa9a1f2a59234c49faebf86416 | [
"MIT"
] | 5 | 2019-07-04T20:17:38.000Z | 2020-06-01T17:53:58.000Z | helpers.py | chame1eon/binaryninja-frida | 6292320d1854abaa9a1f2a59234c49faebf86416 | [
"MIT"
] | 7 | 2018-06-04T14:00:24.000Z | 2021-11-15T04:42:25.000Z | '''
Some python helper functions.
Tested on Python 3.8
'''
# https://learning.oreilly.com/library/view/effective-python-90/9780134854717/ch01.xhtml#ch1
def to_str(bytes_or_str):
if isinstance(bytes_or_str, bytes):
value = bytes_or_str.decode('utf-8')
else:
value = bytes_or_str
return value ... | 26.4 | 92 | 0.6875 | 80 | 528 | 4.3125 | 0.4375 | 0.162319 | 0.231884 | 0.173913 | 0.44058 | 0.44058 | 0.44058 | 0.44058 | 0.255072 | 0.255072 | 0 | 0.052381 | 0.204545 | 528 | 19 | 93 | 27.789474 | 0.769048 | 0.331439 | 0 | 0.5 | 0 | 0 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
343f4428b931645496c3bb608e0d5b0d226d8b52 | 86 | py | Python | ForLoop.py | aytona/PythonIntro | a370f532dae6fb17fbcb8c70d2439358f2e3fe7d | [
"MIT"
] | null | null | null | ForLoop.py | aytona/PythonIntro | a370f532dae6fb17fbcb8c70d2439358f2e3fe7d | [
"MIT"
] | null | null | null | ForLoop.py | aytona/PythonIntro | a370f532dae6fb17fbcb8c70d2439358f2e3fe7d | [
"MIT"
] | null | null | null | #!/usr/bin/python3
fh = open('lines.txt')
for line in fh.readlines():
print(line) | 17.2 | 27 | 0.651163 | 14 | 86 | 4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.151163 | 86 | 5 | 28 | 17.2 | 0.753425 | 0.197674 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34459c00bf15a915c60f32d842e7ed2f88e46044 | 288 | py | Python | Depth Map from Stereo Images/depth_map_from_stereo_images.py | boazde/balloon-shooter | 6478f046701b3c804345c4eeb864e82cb1ccdc2b | [
"Apache-2.0"
] | null | null | null | Depth Map from Stereo Images/depth_map_from_stereo_images.py | boazde/balloon-shooter | 6478f046701b3c804345c4eeb864e82cb1ccdc2b | [
"Apache-2.0"
] | null | null | null | Depth Map from Stereo Images/depth_map_from_stereo_images.py | boazde/balloon-shooter | 6478f046701b3c804345c4eeb864e82cb1ccdc2b | [
"Apache-2.0"
] | 1 | 2018-08-05T09:01:32.000Z | 2018-08-05T09:01:32.000Z | import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
imgL = cv.imread('tsukuba_l.png', 0)
imgR = cv.imread('tsukuba_r.png', 0)
stereo = cv.StereoBM_create(numDisparities=16, blockSize=15)
disparity = stereo.compute(imgL, imgR)
plt.imshow(disparity, 'gray')
plt.show()
| 28.8 | 60 | 0.756944 | 47 | 288 | 4.574468 | 0.638298 | 0.074419 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027451 | 0.114583 | 288 | 9 | 61 | 32 | 0.815686 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
3458c8a244167fc4de3cea41505e9b6d068889de | 1,543 | py | Python | linters/lexicon_linter.py | unfoldingWord-dev/tx-job-handler | 5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f | [
"MIT"
] | 1 | 2020-11-25T04:07:37.000Z | 2020-11-25T04:07:37.000Z | linters/lexicon_linter.py | unfoldingWord-dev/tx-job-handler | 5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f | [
"MIT"
] | 52 | 2018-10-25T05:49:30.000Z | 2022-03-16T22:31:57.000Z | linters/lexicon_linter.py | unfoldingWord-dev/tx-job-handler | 5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f | [
"MIT"
] | null | null | null | import os
import re
from linters.markdown_linter import MarkdownLinter
from general_tools.file_utils import read_file
from app_settings.app_settings import AppSettings
class LexiconLinter(MarkdownLinter):
def lint(self):
"""
Checks for issues with OBS
Use self.log.warning("message") to l... | 35.068182 | 85 | 0.594945 | 189 | 1,543 | 4.756614 | 0.455026 | 0.046719 | 0.046719 | 0.040044 | 0.117909 | 0.117909 | 0 | 0 | 0 | 0 | 0 | 0.000918 | 0.294232 | 1,543 | 43 | 86 | 35.883721 | 0.821855 | 0.545042 | 0 | 0 | 0 | 0 | 0.075353 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
345a69af5d907c6bab145563e5584f5ba8f8fc27 | 451 | py | Python | tasurvey/__init__.py | Rcain07/SCULabTAevaluations | fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372 | [
"MIT"
] | null | null | null | tasurvey/__init__.py | Rcain07/SCULabTAevaluations | fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372 | [
"MIT"
] | null | null | null | tasurvey/__init__.py | Rcain07/SCULabTAevaluations | fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372 | [
"MIT"
] | null | null | null | '''
Description: Functional file that initializes our app
'''
import os
from flask import Flask, flash, request, redirect, url_for
from config import Config
from flask_sqlalchemy import SQLAlchemy
from werkzeug.utils import secure_filename
from flask_login import LoginManager
app = Flask(__name__)
app.config.from_objec... | 22.55 | 58 | 0.804878 | 63 | 451 | 5.587302 | 0.492063 | 0.076705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124169 | 451 | 19 | 59 | 23.736842 | 0.891139 | 0.117517 | 0 | 0 | 0 | 0 | 0.01292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.538462 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
345d49286901cd1496500b9260f619ea4162e4b2 | 12,043 | py | Python | posts/views.py | vadimpopovski/codegram | 5bc30671d9e4d60344484e2958de3c5753124fd4 | [
"MIT"
] | null | null | null | posts/views.py | vadimpopovski/codegram | 5bc30671d9e4d60344484e2958de3c5753124fd4 | [
"MIT"
] | null | null | null | posts/views.py | vadimpopovski/codegram | 5bc30671d9e4d60344484e2958de3c5753124fd4 | [
"MIT"
] | null | null | null | from django.http.response import HttpResponse
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, JsonResponse
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from main.functions import get_authenticated_user, get_new... | 37.990536 | 259 | 0.651499 | 1,441 | 12,043 | 5.285219 | 0.105482 | 0.138393 | 0.025998 | 0.033088 | 0.761555 | 0.720851 | 0.699842 | 0.675945 | 0.650604 | 0.650604 | 0 | 0.006622 | 0.235074 | 12,043 | 317 | 260 | 37.990536 | 0.819692 | 0.16931 | 0 | 0.605 | 0 | 0.03 | 0.151411 | 0.05746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045 | false | 0 | 0.04 | 0 | 0.16 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
345fb5b5178a9d7ea4cb8bfbcc908abb4b90eb1f | 73 | py | Python | iitgauth/__init__.py | shubhamvishnoi3288/django-iitg-auth | 4113368445fef8014657c54534c02e9d3b860673 | [
"BSD-3-Clause"
] | 6 | 2017-03-23T16:35:37.000Z | 2018-02-13T14:03:59.000Z | iitgauth/__init__.py | shubhamvishnoi3288/django-iitg-auth | 4113368445fef8014657c54534c02e9d3b860673 | [
"BSD-3-Clause"
] | 4 | 2017-07-02T11:43:50.000Z | 2018-03-25T10:57:16.000Z | iitgauth/__init__.py | shubhamvishnoi3288/django-iitg-auth | 4113368445fef8014657c54534c02e9d3b860673 | [
"BSD-3-Clause"
] | 1 | 2021-05-25T12:45:44.000Z | 2021-05-25T12:45:44.000Z | VERSION = (0, 0, 4)
default_app_config = 'iitgauth.apps.IitgauthConfig'
| 18.25 | 51 | 0.739726 | 10 | 73 | 5.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.123288 | 73 | 3 | 52 | 24.333333 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0.383562 | 0.383562 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
346216230af3553a0fa4f41d0c6e2274efc3bb66 | 932 | py | Python | dj_hybrid/expression_wrapper/wrap.py | cybojenix/django-hybrid-properties | ee52f3132a60b9443cd9c3d9145163c235afac80 | [
"Apache-2.0"
] | 9 | 2018-05-01T09:02:54.000Z | 2020-07-15T08:58:04.000Z | dj_hybrid/expression_wrapper/wrap.py | antdking/django-hybrid | ee52f3132a60b9443cd9c3d9145163c235afac80 | [
"Apache-2.0"
] | 1 | 2018-05-08T18:45:29.000Z | 2018-05-08T18:45:29.000Z | dj_hybrid/expression_wrapper/wrap.py | antdking/django-hybrid | ee52f3132a60b9443cd9c3d9145163c235afac80 | [
"Apache-2.0"
] | 1 | 2018-05-08T18:39:45.000Z | 2018-05-08T18:39:45.000Z | from typing import Type, Union
from dj_hybrid.types import SupportsPython
from .registry import registry
from .types import TypeWrapperOrProxy, Wrapable
def wrap(expression: Wrapable) -> SupportsPython:
"""Wrap an expression so we can control how each one works within python
Django essentially builds a cha... | 30.064516 | 84 | 0.743562 | 117 | 932 | 5.897436 | 0.504274 | 0.069565 | 0.02029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196352 | 932 | 30 | 85 | 31.066667 | 0.921228 | 0.36588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3466cbc335869bc6367a832c3ad0d9c63e1f079e | 426 | py | Python | backend/algorithm/controllers/path_planning/graph.py | SpaceGliderr/fyp-sim-react | 20ad9baac200a8beedbd5a86cd749e5cdb63daca | [
"MIT"
] | null | null | null | backend/algorithm/controllers/path_planning/graph.py | SpaceGliderr/fyp-sim-react | 20ad9baac200a8beedbd5a86cd749e5cdb63daca | [
"MIT"
] | null | null | null | backend/algorithm/controllers/path_planning/graph.py | SpaceGliderr/fyp-sim-react | 20ad9baac200a8beedbd5a86cd749e5cdb63daca | [
"MIT"
] | null | null | null | import numpy as np
class Graph:
def __init__(self, size: int):
self.size = size
self.matrix = np.zeros((size, size), dtype=np.uint8)
def add_edge(self, node1: int, node2: int) -> None:
self.matrix[node1][node2] = 1
self.matrix[node2][node1] = 1
def remove_edge(self, nod... | 23.666667 | 60 | 0.593897 | 61 | 426 | 4.04918 | 0.393443 | 0.202429 | 0.105263 | 0.153846 | 0.194332 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05414 | 0.262911 | 426 | 17 | 61 | 25.058824 | 0.732484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34719799e364b3eadd684c0a5fd67038a3ba1a9b | 408 | py | Python | apps/gsuite/mail_syncer/tests/test_utils.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 32 | 2017-02-22T13:38:38.000Z | 2022-03-31T23:29:54.000Z | apps/gsuite/mail_syncer/tests/test_utils.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 694 | 2017-02-15T23:09:52.000Z | 2022-03-31T23:16:07.000Z | apps/gsuite/mail_syncer/tests/test_utils.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 35 | 2017-09-02T21:13:09.000Z | 2022-02-21T11:30:30.000Z | from googleapiclient.errors import HttpError
from httplib2 import Response
def create_http_response(status, reason):
resp = Response({"status": status})
resp.reason = reason
return resp
def create_http_error(status, reason, error):
return HttpError(
resp=create_http_response(status, reason),... | 25.5 | 80 | 0.683824 | 48 | 408 | 5.6875 | 0.458333 | 0.10989 | 0.095238 | 0.175824 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.181373 | 408 | 15 | 81 | 27.2 | 0.811377 | 0 | 0 | 0 | 0 | 0 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3478fc67a95347f25251e8ec26bfb095d3803bf3 | 269 | py | Python | rasplivestation/__init__.py | Krounet/RaspLiveStation | cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96 | [
"WTFPL"
] | null | null | null | rasplivestation/__init__.py | Krounet/RaspLiveStation | cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96 | [
"WTFPL"
] | null | null | null | rasplivestation/__init__.py | Krounet/RaspLiveStation | cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96 | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 19 14:48:39 2016
@author: Krounet
e-mail : krounet@gmail.com
"""
__version__="0.0.1"
from rasplivestation.livestreamerLaunching import livestreamerLaunching
from rasplivestation.clienttoRasp import clienttoRasp | 24.454545 | 72 | 0.743494 | 33 | 269 | 5.939394 | 0.787879 | 0.193878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0.144981 | 269 | 11 | 73 | 24.454545 | 0.782609 | 0.3829 | 0 | 0 | 0 | 0 | 0.033557 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
caa2a47d26942b262cea4bf3e3c7abe149fab5d2 | 659 | py | Python | app/views.py | JN513/BEMOL | 8be49825addb4680912c7a8cf3812ae835538909 | [
"MIT"
] | 1 | 2021-12-06T23:47:34.000Z | 2021-12-06T23:47:34.000Z | app/views.py | JN513/BEMOL | 8be49825addb4680912c7a8cf3812ae835538909 | [
"MIT"
] | null | null | null | app/views.py | JN513/BEMOL | 8be49825addb4680912c7a8cf3812ae835538909 | [
"MIT"
] | 1 | 2022-03-23T13:22:49.000Z | 2022-03-23T13:22:49.000Z | from django.shortcuts import render, redirect
from django.http import HttpResponse
from app.forms import PersonForm
# Create your views here.
def home(request):
return render(request, 'index.html')
def cadastrados(request):
return render(request, 'cadastrados.html')
def form(request):
data = {}
data[... | 27.458333 | 57 | 0.669196 | 77 | 659 | 5.714286 | 0.402597 | 0.109091 | 0.172727 | 0.118182 | 0.186364 | 0.186364 | 0.186364 | 0 | 0 | 0 | 0 | 0 | 0.201821 | 659 | 24 | 57 | 27.458333 | 0.836502 | 0.15478 | 0 | 0 | 0 | 0 | 0.090416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.125 | 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 | 0 | 0 | 0 | 2 |
cab85709d6006c0a36f8149a81345dd85e7eae3b | 971 | py | Python | awsrx/tailer.py | GEUS-PROMICE/awsrx | f593120a3593a0eb5dfe55c49f1ef72263ceeb5a | [
"MIT"
] | 2 | 2020-11-13T08:26:14.000Z | 2021-04-24T17:02:48.000Z | awsrx/tailer.py | GEUS-PROMICE/awsrx | f593120a3593a0eb5dfe55c49f1ef72263ceeb5a | [
"MIT"
] | null | null | null | awsrx/tailer.py | GEUS-PROMICE/awsrx | f593120a3593a0eb5dfe55c49f1ef72263ceeb5a | [
"MIT"
] | 1 | 2021-07-22T08:46:44.000Z | 2021-07-22T08:46:44.000Z | #! /usr/bin/python2.7
#coding=cp850
#mcit@geus.dk
#
#tail the in_files by lines and write them in out_subdir prepending the aws name
#
#TODO: quick hack: clean it up
import glob, sys, os, os.path
from collections import deque
def tailer(in_files, lines_limit, out_subdir='.'):
for path_name, aws_info in in_fi... | 26.972222 | 80 | 0.584964 | 144 | 971 | 3.715278 | 0.4375 | 0.052336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007386 | 0.302781 | 971 | 35 | 81 | 27.742857 | 0.782866 | 0.177137 | 0 | 0 | 0 | 0 | 0.017722 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
caba839088d90d9f3c925bdaedf92c7faa434941 | 885 | py | Python | quick_django/main/models.py | masatoman/django_test | a850864e132246cffc9d7e2ad308c68623f79bd0 | [
"MIT"
] | null | null | null | quick_django/main/models.py | masatoman/django_test | a850864e132246cffc9d7e2ad308c68623f79bd0 | [
"MIT"
] | null | null | null | quick_django/main/models.py | masatoman/django_test | a850864e132246cffc9d7e2ad308c68623f79bd0 | [
"MIT"
] | null | null | null | from django.db import models
classBook(models.Model):
isbn = models.CharField(
verbose_name='ISBNコード',
max_length=20
)
title = models.CharField(
verbose_name='書名',
max_length=100
)
price = models.IntegerField(
verbose_name=... | 26.818182 | 62 | 0.463277 | 76 | 885 | 5.236842 | 0.578947 | 0.138191 | 0.165829 | 0.19598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015355 | 0.411299 | 885 | 32 | 63 | 27.65625 | 0.74856 | 0.027119 | 0 | 0 | 0 | 0 | 0.133877 | 0.051222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cac76d33c2f744198aac139825eb16f25223cdbd | 654 | py | Python | trackers/SiamRPNpp/tracker/tracker_builder.py | htet96/Integration-of-THOR-and-SiamRPN-wip- | 74d4baded10acfe6b35c6d7b2c66a3da6c36f4a1 | [
"MIT"
] | null | null | null | trackers/SiamRPNpp/tracker/tracker_builder.py | htet96/Integration-of-THOR-and-SiamRPN-wip- | 74d4baded10acfe6b35c6d7b2c66a3da6c36f4a1 | [
"MIT"
] | null | null | null | trackers/SiamRPNpp/tracker/tracker_builder.py | htet96/Integration-of-THOR-and-SiamRPN-wip- | 74d4baded10acfe6b35c6d7b2c66a3da6c36f4a1 | [
"MIT"
] | 1 | 2021-03-29T02:47:56.000Z | 2021-03-29T02:47:56.000Z | # Copyright (c) SenseTime. All Rights Reserved.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from siamrpnpp.core.config import cfg
from siamrpnpp.tracker.siamrpn_tracker import SiamRPNTracker
from siamrpnpp.tracker... | 31.142857 | 64 | 0.792049 | 69 | 654 | 7.173913 | 0.478261 | 0.080808 | 0.129293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152905 | 654 | 20 | 65 | 32.7 | 0.893502 | 0.068807 | 0 | 0 | 0 | 0 | 0.074135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.533333 | 0.066667 | 0.666667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cacd4256dc6120a59cb2c550ba1d38db5d54f626 | 1,488 | py | Python | analysisTool/testtools/pickyinvestor.py | YueZiqihong/BacktestingProject | 5940192dd3561fdaf50b84784751d53a5e40aec5 | [
"MIT"
] | null | null | null | analysisTool/testtools/pickyinvestor.py | YueZiqihong/BacktestingProject | 5940192dd3561fdaf50b84784751d53a5e40aec5 | [
"MIT"
] | null | null | null | analysisTool/testtools/pickyinvestor.py | YueZiqihong/BacktestingProject | 5940192dd3561fdaf50b84784751d53a5e40aec5 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from . import datamonger
class PickyInvestor():
def __init__(self):
self.hushen300df = ['600038.SH','600522.SH','600406.SH','601800.SH']
def setBrokerDatabase(self, db_instance):
self.brokerdb = db_instance
def setMarketDatabase(self, db_instance):
... | 31 | 91 | 0.609543 | 157 | 1,488 | 5.656051 | 0.547771 | 0.045045 | 0.050676 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05268 | 0.272849 | 1,488 | 47 | 92 | 31.659574 | 0.768022 | 0.149866 | 0 | 0.064516 | 0 | 0 | 0.148407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0.064516 | 0.096774 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cacee22303bdeb74b8fd99897abb8318af8068c7 | 286 | py | Python | 5/5B.py | allenalvin333/Hackerrank_Stats | 54b61491377396adc2f529c88d1cfdb0cdc14709 | [
"MIT"
] | null | null | null | 5/5B.py | allenalvin333/Hackerrank_Stats | 54b61491377396adc2f529c88d1cfdb0cdc14709 | [
"MIT"
] | null | null | null | 5/5B.py | allenalvin333/Hackerrank_Stats | 54b61491377396adc2f529c88d1cfdb0cdc14709 | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/s10-poisson-distribution-2/problem
# Enter your code here. Read input from STDIN. Print output to STDOUT
x,y = list(map(float, input().split(" ")))
cost1 = 160 + 40*(x+x**2)
cost2 = 128 + 40*(y+y**2)
print(round(cost1, 3))
print(round(cost2, 3)) | 35.75 | 74 | 0.688811 | 49 | 286 | 4.020408 | 0.714286 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.118881 | 286 | 8 | 75 | 35.75 | 0.698413 | 0.48951 | 0 | 0 | 0 | 0 | 0.006944 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
cad1818d3242b33e885309feb138f0608365c2a1 | 83 | py | Python | cloudprober/grpc_gcp_prober/versions.py | qixuanl1/grpc-gcp-python | 5a2cd9807bbaf1b85402a2a364775e5b65853df6 | [
"Apache-2.0"
] | 10 | 2019-01-14T19:05:06.000Z | 2021-03-08T18:48:47.000Z | cloudprober/grpc_gcp_prober/versions.py | qixuanl1/grpc-gcp-python | 5a2cd9807bbaf1b85402a2a364775e5b65853df6 | [
"Apache-2.0"
] | 3 | 2018-09-10T17:52:44.000Z | 2019-03-28T00:44:21.000Z | cloudprober/grpc_gcp_prober/versions.py | qixuanl1/grpc-gcp-python | 5a2cd9807bbaf1b85402a2a364775e5b65853df6 | [
"Apache-2.0"
] | 11 | 2018-08-28T11:48:19.000Z | 2021-10-09T16:18:36.000Z | """This is a template file for holding version numbers."""
GRPC_VERSION = '1.11.0'
| 27.666667 | 58 | 0.710843 | 14 | 83 | 4.142857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.144578 | 83 | 2 | 59 | 41.5 | 0.760563 | 0.626506 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
caddabc98e1e06ce9ca265209e8431d9b8a8e5e5 | 396 | py | Python | Leetcode/Array/2_-_Medium/1437._Check_If_All_1's_Are_at_Least_Length_K_Places_Away.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | 1 | 2020-09-21T10:01:26.000Z | 2020-09-21T10:01:26.000Z | Leetcode/Array/2_-_Medium/1437._Check_If_All_1's_Are_at_Least_Length_K_Places_Away.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | null | null | null | Leetcode/Array/2_-_Medium/1437._Check_If_All_1's_Are_at_Least_Length_K_Places_Away.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | 2 | 2020-09-01T12:33:55.000Z | 2020-11-30T13:23:50.000Z | class Solution:
def kLengthApart(self, nums: List[int], k: int) -> bool:
prev_1 = -1
for idx, i in enumerate(nums):
if i==1:
if prev_1==-1:
prev_1 = idx
continue
if idx-prev_1-1>=k:
prev_1 = idx
... | 30.461538 | 60 | 0.406566 | 45 | 396 | 3.466667 | 0.488889 | 0.160256 | 0.115385 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046632 | 0.512626 | 396 | 13 | 61 | 30.461538 | 0.761658 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cae1c80a7397a93055cad4f63295d5712bbe0db1 | 192 | py | Python | Exercise 013.py | sayan-datapython/Learn_Python_Full_Course_for_Beginners | 1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c | [
"MIT"
] | null | null | null | Exercise 013.py | sayan-datapython/Learn_Python_Full_Course_for_Beginners | 1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c | [
"MIT"
] | null | null | null | Exercise 013.py | sayan-datapython/Learn_Python_Full_Course_for_Beginners | 1cca3df62cfd7ae5a0c85c019b0f5fe4f6f4740c | [
"MIT"
] | 1 | 2020-09-30T14:25:51.000Z | 2020-09-30T14:25:51.000Z | salario = float(input("Enter o seu salario: "))
novosalario = salario + (salario*0.15)
print('O valor do salario e {} e o acrescimo de 15% no novo salario e {}'.format(salario, novosalario))
| 48 | 104 | 0.703125 | 30 | 192 | 4.5 | 0.6 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030864 | 0.15625 | 192 | 3 | 105 | 64 | 0.802469 | 0 | 0 | 0 | 0 | 0 | 0.453125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cae5c011002e812a851b5713900b33655f82a713 | 1,356 | py | Python | backend/server/backend/migrations/0012_auto_20200801_2315.py | fossabot/Graphery | 61f23b2ad4ad0fa5dff643047597f9bb6cae35a2 | [
"MIT"
] | 5 | 2020-08-26T00:15:01.000Z | 2021-01-11T17:24:51.000Z | backend/server/backend/migrations/0012_auto_20200801_2315.py | fossabot/Graphery | 61f23b2ad4ad0fa5dff643047597f9bb6cae35a2 | [
"MIT"
] | 69 | 2020-08-02T23:45:44.000Z | 2021-04-17T03:04:32.000Z | backend/server/backend/migrations/0012_auto_20200801_2315.py | fossabot/Graphery | 61f23b2ad4ad0fa5dff643047597f9bb6cae35a2 | [
"MIT"
] | 4 | 2020-09-10T05:40:49.000Z | 2020-12-20T11:44:16.000Z | # Generated by Django 3.0.8 on 2020-08-01 23:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('backend', '0011_auto_20200731_2107'),
]
operations = [
migrations.AlterField(
model_name='code'... | 33.9 | 107 | 0.623894 | 138 | 1,356 | 6.007246 | 0.311594 | 0.067551 | 0.101327 | 0.159228 | 0.647768 | 0.647768 | 0.647768 | 0.647768 | 0.647768 | 0.647768 | 0 | 0.030693 | 0.255162 | 1,356 | 39 | 108 | 34.769231 | 0.790099 | 0.033186 | 0 | 0.575758 | 1 | 0 | 0.160428 | 0.017571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b0267cda0ae00986428ec6b28e72c523d8d9663 | 16,916 | py | Python | sellerhub/amazon/orders/ordersFile_columnization.py | clair513/SellerHub | 1bbc173c24c47e9ce1ec43bf627f281267c75fe7 | [
"MIT"
] | 1 | 2021-03-13T19:36:49.000Z | 2021-03-13T19:36:49.000Z | sellerhub/amazon/orders/ordersFile_columnization.py | clair513/SellerHub | 1bbc173c24c47e9ce1ec43bf627f281267c75fe7 | [
"MIT"
] | null | null | null | sellerhub/amazon/orders/ordersFile_columnization.py | clair513/SellerHub | 1bbc173c24c47e9ce1ec43bf627f281267c75fe7 | [
"MIT"
] | null | null | null | """
Script# : 3
INPUT: Raw Data File generated by Amazon Seller Central Portal for a particular seller that has been fed as webpage input by registered User AND undergone 'ordersFile_preprocessing' script.
OUTPUT: Delivers data for Information Dashboard as a Pandas DataFrame or TextParserself. Generalization and a... | 60.848921 | 1,234 | 0.632537 | 2,274 | 16,916 | 4.675902 | 0.215919 | 0.036114 | 0.021066 | 0.029343 | 0.432804 | 0.387755 | 0.355121 | 0.335841 | 0.288818 | 0.284962 | 0 | 0.014896 | 0.206314 | 16,916 | 277 | 1,235 | 61.068592 | 0.777074 | 0.349965 | 0 | 0.362963 | 1 | 0.007407 | 0.278639 | 0 | 0.059259 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.037037 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b08dc9a93ae5d847eaf7656765d8790a54f1236 | 9,833 | py | Python | dynts/dsl/ast/base.py | quantmind/dynts | 21ac57c648bfec402fa6b1fe569496cf098fb5e8 | [
"BSD-3-Clause"
] | 57 | 2015-02-10T13:42:06.000Z | 2022-03-28T14:48:36.000Z | dynts/dsl/ast/base.py | quantmind/dynts | 21ac57c648bfec402fa6b1fe569496cf098fb5e8 | [
"BSD-3-Clause"
] | 1 | 2016-11-01T07:43:05.000Z | 2016-11-01T07:43:05.000Z | dynts/dsl/ast/base.py | quantmind/dynts | 21ac57c648bfec402fa6b1fe569496cf098fb5e8 | [
"BSD-3-Clause"
] | 17 | 2015-05-08T04:09:19.000Z | 2021-08-02T19:24:52.000Z | from functools import reduce
from dynts.conf import settings
from ...api import timeseries, is_timeseries
class Expr:
'''Base class for abstract syntax nodes
'''
def count(self):
'''Number of nodes'''
return 1
def malformed(self):
return False
@property
... | 27.855524 | 89 | 0.548866 | 1,083 | 9,833 | 4.834718 | 0.185596 | 0.039534 | 0.036287 | 0.02903 | 0.219824 | 0.146868 | 0.10848 | 0.076394 | 0.076394 | 0.076394 | 0 | 0.001873 | 0.34852 | 9,833 | 352 | 90 | 27.934659 | 0.815485 | 0.134649 | 0 | 0.27193 | 0 | 0 | 0.023663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219298 | false | 0 | 0.013158 | 0.100877 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1b0a112beb6f9b817075fb1f13f1e51e8667d3a1 | 2,245 | py | Python | tests/e2e_test.py | david-wirelab/tf-localstack | b92f1e3ddbaf1f643ffd8b30aa9dd7969c350969 | [
"MIT"
] | null | null | null | tests/e2e_test.py | david-wirelab/tf-localstack | b92f1e3ddbaf1f643ffd8b30aa9dd7969c350969 | [
"MIT"
] | null | null | null | tests/e2e_test.py | david-wirelab/tf-localstack | b92f1e3ddbaf1f643ffd8b30aa9dd7969c350969 | [
"MIT"
] | null | null | null | import os
import unittest
from runner import Runner
MODULE_NAME = "e2e"
RESOURCE_TYPE = "aws_vpc.this"
class TestE2E(unittest.TestCase):
@classmethod
def setUpClass(self):
self.snippet = """
provider "aws" {
access_key = "test"
region ... | 37.416667 | 117 | 0.460579 | 184 | 2,245 | 5.456522 | 0.548913 | 0.278884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075235 | 0.431626 | 2,245 | 59 | 118 | 38.050847 | 0.711599 | 0 | 0 | 0 | 0 | 0 | 0.816036 | 0.049889 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.037736 | false | 0 | 0.056604 | 0 | 0.113208 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b1c52e5ecdb923c41a018a6b3a02d0c6487f70d | 16,783 | py | Python | pysnmp-with-texts/GUDEADS-EPC2X6-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/GUDEADS-EPC2X6-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/GUDEADS-EPC2X6-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module GUDEADS-EPC2X6-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GUDEADS-EPC2X6-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:20:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | 123.404412 | 1,509 | 0.771018 | 1,883 | 16,783 | 6.870951 | 0.153478 | 0.065853 | 0.115242 | 0.013294 | 0.509584 | 0.314809 | 0.303447 | 0.269593 | 0.254367 | 0.214716 | 0 | 0.103678 | 0.079902 | 16,783 | 135 | 1,510 | 124.318519 | 0.734167 | 0.019663 | 0 | 0.023622 | 0 | 0.023622 | 0.286974 | 0.024629 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047244 | 0 | 0.047244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b2813992eae1e2879e14dffe5915bc48353325b | 291 | py | Python | measure_mate/tests/docs/test_docs.py | niche-tester/measure-mate | c3acba57747bcb89fe0c6b9509ec90f04a581506 | [
"MIT"
] | 15 | 2015-12-14T02:20:31.000Z | 2022-01-30T04:36:39.000Z | measure_mate/tests/docs/test_docs.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 1,403 | 2017-02-16T01:00:04.000Z | 2022-03-15T21:12:13.000Z | measure_mate/tests/docs/test_docs.py | rloomans/measure-mate | e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2 | [
"MIT"
] | 10 | 2015-12-18T01:30:46.000Z | 2022-01-30T04:36:41.000Z | from django.test import TestCase
from django.urls import reverse
from rest_framework import status
class SchemaViewTestCases(TestCase):
def test_schema_view(self):
response = self.client.get(reverse('schema'))
self.assertEqual(response.status_code, status.HTTP_200_OK)
| 29.1 | 66 | 0.773196 | 38 | 291 | 5.763158 | 0.631579 | 0.091324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.147766 | 291 | 9 | 67 | 32.333333 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
1b34f890df60f44c950ca436484410e7cfce1929 | 882 | py | Python | models/convnet.py | nitesh4146/bumblebee | 808261c44c0a5470fc0e969c2fda7c2a3fd2088e | [
"MIT"
] | null | null | null | models/convnet.py | nitesh4146/bumblebee | 808261c44c0a5470fc0e969c2fda7c2a3fd2088e | [
"MIT"
] | null | null | null | models/convnet.py | nitesh4146/bumblebee | 808261c44c0a5470fc0e969c2fda7c2a3fd2088e | [
"MIT"
] | null | null | null | from keras import models, optimizers
from keras.layers import Input, Dense, Activation, Flatten, Conv2D, Lambda, MaxPooling2D, Dropout
def Convnet():
# Model architecture
model = models.Sequential()
model.add(Conv2D(16, (3, 3), input_shape=(66, 200, 3), activation='relu'))
model.add(MaxPooling... | 33.923077 | 98 | 0.6678 | 121 | 882 | 4.818182 | 0.396694 | 0.178388 | 0.19554 | 0.226415 | 0.396226 | 0.296741 | 0.296741 | 0.296741 | 0.296741 | 0.296741 | 0 | 0.063428 | 0.159864 | 882 | 25 | 99 | 35.28 | 0.723347 | 0.10771 | 0 | 0.166667 | 0 | 0 | 0.030651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b39de458bf4415b36a9987b04619b2b42b5117d | 634 | py | Python | ut_engine/start.py | justpic/ut_ali | 5173011c735cdbd4b1cb9becad3b69675993225a | [
"MIT"
] | 1 | 2021-07-08T01:30:07.000Z | 2021-07-08T01:30:07.000Z | ut_engine/start.py | justpic/ut_ali | 5173011c735cdbd4b1cb9becad3b69675993225a | [
"MIT"
] | null | null | null | ut_engine/start.py | justpic/ut_ali | 5173011c735cdbd4b1cb9becad3b69675993225a | [
"MIT"
] | null | null | null | #/usr/bin/python
#-*- coding: utf-8 -*-
#system modules
import sys
#add root path into the sys.path
# sys.path.append('./')
#custom modules
from Model.model import Model
if __name__ == "__main__":
if len(sys.argv)>1:
cmd=sys.argv[1]
if cmd=='score':
from evaluate import score
... | 21.133333 | 59 | 0.536278 | 79 | 634 | 4.202532 | 0.518987 | 0.045181 | 0.048193 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014252 | 0.335962 | 634 | 29 | 60 | 21.862069 | 0.774347 | 0.205047 | 0 | 0.157895 | 0 | 0 | 0.134809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.052632 | 0.157895 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1b3ce8d134ce6dee1a002a8a874aee781ed519d6 | 12,614 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/community/fortios/plugins/modules/fmgr_secprof_proxy.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/fortios/plugins/modules/fmgr_secprof_proxy.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/fortios/plugins/modules/fmgr_secprof_proxy.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | 37.87988 | 118 | 0.679483 | 1,542 | 12,614 | 5.435798 | 0.196498 | 0.041756 | 0.037223 | 0.033405 | 0.483894 | 0.42806 | 0.407421 | 0.361966 | 0.319852 | 0.286805 | 0 | 0.000706 | 0.213731 | 12,614 | 332 | 119 | 37.993976 | 0.844424 | 0.080545 | 0 | 0.301205 | 0 | 0.040161 | 0.624869 | 0.06078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008032 | false | 0.124498 | 0.040161 | 0 | 0.056225 | 0.004016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1b42e7aeafd8cdab87dd69ce4daa80913528aad1 | 250 | py | Python | docs/manual/gears/examples/serialize_array_active.py | bogdanvuk/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 120 | 2018-04-23T08:29:04.000Z | 2022-03-30T14:41:52.000Z | docs/manual/gears/examples/serialize_array_active.py | FZP1607152286/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 12 | 2019-07-09T17:12:58.000Z | 2022-03-18T09:05:10.000Z | docs/manual/gears/examples/serialize_array_active.py | FZP1607152286/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 12 | 2019-05-10T19:42:08.000Z | 2022-03-28T18:26:44.000Z | from pygears.lib import check, drv, serialize
from pygears.typing import Uint, Array
din = drv(t=Array[Uint[8], 4], seq=[(1, 2, 3, 4), (5, 6, 7, 8)])
active = drv(t=Uint[2], seq=[2, 3])
serialize(din, active) \
| check(ref=[[1, 2], [5, 6, 7]])
| 27.777778 | 64 | 0.596 | 47 | 250 | 3.170213 | 0.489362 | 0.147651 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.172 | 250 | 8 | 65 | 31.25 | 0.63285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
1b4b9a8046d58983325c38030899fb910322ffb2 | 552 | py | Python | tagset/__init__.py | gxrzangdan/pyci | ece985a9d4d8c10e4aac079a2ff85bd5144523f1 | [
"BSD-3-Clause"
] | null | null | null | tagset/__init__.py | gxrzangdan/pyci | ece985a9d4d8c10e4aac079a2ff85bd5144523f1 | [
"BSD-3-Clause"
] | null | null | null | tagset/__init__.py | gxrzangdan/pyci | ece985a9d4d8c10e4aac079a2ff85bd5144523f1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# PyCi
#
# Copyright (c) 2009, The PyCi Project
# Authors: Wu Ke <ngu.kho@gmail.com>
# Chen Xing <cxcxcxcx@gmail.com>
# URL: <http://code.google.com/p/pyci>
# For license information, see COPYING
"""TagSet package.
Contains several tag set used for tagging segmentation like CRF.
"""... | 17.806452 | 64 | 0.653986 | 74 | 552 | 4.77027 | 0.702703 | 0.045326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011468 | 0.210145 | 552 | 30 | 65 | 18.4 | 0.798165 | 0.384058 | 0 | 0 | 0 | 0 | 0.152263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1b5897b0cc420dcb769d89ae266c357d767d113c | 955 | py | Python | src/routers/homeworks.py | er5bus/apollo-back | 0a50a07917d08b176ee94c33419f10cb2a7d6fb0 | [
"MIT"
] | null | null | null | src/routers/homeworks.py | er5bus/apollo-back | 0a50a07917d08b176ee94c33419f10cb2a7d6fb0 | [
"MIT"
] | null | null | null | src/routers/homeworks.py | er5bus/apollo-back | 0a50a07917d08b176ee94c33419f10cb2a7d6fb0 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Depends
from typing import List
from src.utils.crud_router import include_generic_collection_document_router
from src.dependencies import current_active_user
from src.services.homeworks import HomeworkService, HomeworkCompletedService
dependencies: List[Depends] = [Depends(current_activ... | 43.409091 | 97 | 0.810471 | 94 | 955 | 7.925532 | 0.319149 | 0.075168 | 0.096644 | 0.128859 | 0.351678 | 0.300671 | 0.177181 | 0.177181 | 0 | 0 | 0 | 0 | 0.122513 | 955 | 21 | 98 | 45.47619 | 0.889021 | 0 | 0 | 0 | 0 | 0 | 0.066038 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.357143 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 2 |
1b65f8081e606fde6bf7b481f98d9364e284f66a | 243 | py | Python | lino_xl/lib/statbel/countries/fixtures/__init__.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:09:48.000Z | 2018-01-12T14:09:48.000Z | lino_xl/lib/statbel/countries/fixtures/__init__.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2019-09-10T05:03:47.000Z | 2019-09-10T05:03:47.000Z | lino_xl/lib/statbel/countries/fixtures/__init__.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | null | null | null | """The fixtures for `lino_xl.lib.statbel.countries`.
These are just wrappers to those in :mod:`lino_xl.lib.countries.fixtures`.
.. autosummary::
:toctree:
all_countries
be
demo
eesti
few_cities
few_countries
"""
| 15.1875 | 74 | 0.674897 | 32 | 243 | 4.96875 | 0.75 | 0.075472 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218107 | 243 | 15 | 75 | 16.2 | 0.836842 | 0.962963 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1b71f876de9ee2d94ff532262f4887f78fd8c289 | 300 | py | Python | wdict/__init__.py | shinaji/wdict | dc3c6cb354342e21bfa2ff875c1a34cc1900593b | [
"MIT"
] | null | null | null | wdict/__init__.py | shinaji/wdict | dc3c6cb354342e21bfa2ff875c1a34cc1900593b | [
"MIT"
] | null | null | null | wdict/__init__.py | shinaji/wdict | dc3c6cb354342e21bfa2ff875c1a34cc1900593b | [
"MIT"
] | null | null | null | #-*- coding:utf-8 -*-
"""
__init__
Copyright (c) 2018 Tetsuya Shinaji
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
Date: 2018/03/01
"""
from __future__ import absolute_import
from .core import Dict
__version__ = "0.3.1"
| 17.647059 | 52 | 0.676667 | 41 | 300 | 4.634146 | 0.853659 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067227 | 0.206667 | 300 | 16 | 53 | 18.75 | 0.731092 | 0.603333 | 0 | 0 | 0 | 0 | 0.05814 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1b76adaddb30b4707fdd00416547e9d932d96277 | 864 | py | Python | recipes/Python/496885_String_InterpolatiEvaluatiEmbedded/recipe-496885.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/496885_String_InterpolatiEvaluatiEmbedded/recipe-496885.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/496885_String_InterpolatiEvaluatiEmbedded/recipe-496885.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | class InterpolationEvaluationException(KeyError):
pass
class expression_dictionary(dict):
def __getitem__(self, key):
try:
return dict.__getitem__(self, key)
except KeyError:
try:
return eval(key,self)
except Exception, e:
rai... | 32 | 82 | 0.611111 | 114 | 864 | 4.517544 | 0.491228 | 0.116505 | 0.054369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047184 | 0.239583 | 864 | 26 | 83 | 33.230769 | 0.736682 | 0.189815 | 0 | 0.111111 | 0 | 0.055556 | 0.143678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1b8d731ff9b1d1f3e71c04dbf1a821fa310d2d95 | 179 | py | Python | panels/quickmocap_panel.py | vltmedia/QuickMocap-BlenderAddon | ef152a87a8738d505555db2d3ec8ff851847983b | [
"Apache-2.0"
] | 17 | 2021-07-25T12:46:25.000Z | 2022-03-23T05:16:36.000Z | panels/quickmocap_panel.py | vltmedia/QuickMocap-BlenderAddon | ef152a87a8738d505555db2d3ec8ff851847983b | [
"Apache-2.0"
] | 4 | 2021-08-04T09:14:15.000Z | 2022-03-08T11:50:13.000Z | panels/quickmocap_panel.py | vltmedia/QuickMocap-BlenderAddon | ef152a87a8738d505555db2d3ec8ff851847983b | [
"Apache-2.0"
] | 3 | 2021-12-09T21:58:57.000Z | 2022-03-31T06:21:23.000Z |
import bpy
class QuickMocapTemplatePanel:
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Tools"
bl_options = {"DEFAULT_CLOSED"}
| 16.272727 | 36 | 0.631285 | 20 | 179 | 5.25 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.284916 | 179 | 10 | 37 | 17.9 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.167665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1ba4de424c82fb446e78a5af5223e59e055c3a6e | 266 | py | Python | py/cap3/calentamiento.py | dacanizares/IntroCS-ES | 1324b59a3bed86559117b01ad85384d593394d4a | [
"MIT"
] | 2 | 2020-03-21T19:12:10.000Z | 2020-03-27T03:59:41.000Z | py/cap3/calentamiento.py | dacanizares/IntroCS-ES | 1324b59a3bed86559117b01ad85384d593394d4a | [
"MIT"
] | 13 | 2020-03-20T01:27:57.000Z | 2020-08-08T18:20:29.000Z | py/cap3/calentamiento.py | dacanizares/IntroCS-ES | 1324b59a3bed86559117b01ad85384d593394d4a | [
"MIT"
] | null | null | null | # Punto 1
def multiplicar(a, b):
m = 0
for i in range(0, b):
m = m + a
return m
# Punto 2
def potencia(a, b):
p = 1
for i in range(0, b):
p = multiplicar(p, a)
return p
# Punto 3
a = input()
b = input()
print potencia(a, b)
| 14 | 29 | 0.507519 | 49 | 266 | 2.755102 | 0.387755 | 0.044444 | 0.088889 | 0.162963 | 0.192593 | 0.192593 | 0 | 0 | 0 | 0 | 0 | 0.040936 | 0.357143 | 266 | 18 | 30 | 14.777778 | 0.748538 | 0.086466 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1bcf4193f1b507db072e56b4dbd6e181fbe0b7ce | 137 | py | Python | samples/autodiscover/services/bases.py | ekiro/haps | 88d225e0177de0a0373d12d42d1b6a80437b8d5c | [
"MIT"
] | 38 | 2018-06-15T11:32:05.000Z | 2020-05-08T17:04:42.000Z | samples/autodiscover/services/bases.py | lunarwings/haps | 537222b5c28244ae87d803918e1b7ede3a338cc8 | [
"MIT"
] | 6 | 2020-03-02T19:13:56.000Z | 2020-12-03T06:00:38.000Z | samples/autodiscover/services/bases.py | ekiro/haps | 88d225e0177de0a0373d12d42d1b6a80437b8d5c | [
"MIT"
] | 2 | 2019-05-17T09:58:36.000Z | 2019-06-10T08:18:48.000Z | from haps import base
@base
class IHeater:
def heat(self) -> None:
raise NotImplementedError
@base
class IPump:
pass
| 10.538462 | 33 | 0.664234 | 17 | 137 | 5.352941 | 0.823529 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270073 | 137 | 12 | 34 | 11.416667 | 0.91 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1bd1d04bc396f8cff36083c8dfa07a6895302798 | 733 | py | Python | python/mesh/generic/fpgaRadio.py | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 133 | 2017-06-24T02:44:28.000Z | 2022-03-25T05:17:00.000Z | python/mesh/generic/fpgaRadio.py | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | null | null | null | python/mesh/generic/fpgaRadio.py | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 33 | 2017-06-19T03:24:40.000Z | 2022-02-03T20:13:12.000Z | import struct
from mesh.generic.radio import Radio
from mesh.generic.slipMsg import SLIP_END
from mesh.generic.cmds import FPGACmds
import crcmod.predefined
class FPGARadio(Radio):
def __init__(self, serial, config):
Radio.__init__(self, serial, config)
self.crc16 = crcmod.predefined.mkCr... | 38.578947 | 158 | 0.684857 | 90 | 733 | 5.455556 | 0.411111 | 0.081466 | 0.09165 | 0.081466 | 0.350306 | 0.350306 | 0.350306 | 0.350306 | 0.350306 | 0.350306 | 0 | 0.013267 | 0.177353 | 733 | 18 | 159 | 40.722222 | 0.800995 | 0.248295 | 0 | 0 | 0 | 0 | 0.038532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.454545 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1bd55542498a1bd15fdd8d4dd1716525214c8319 | 10,665 | py | Python | psx/_dump_/28/_dump_ida_/overlay_b/set_vars.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/28/_dump_ida_/overlay_b/set_vars.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/28/_dump_ida_/overlay_b/set_vars.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | del_items(0x80137C50)
SetType(0x80137C50, "struct THEME_LOC themeLoc[50]")
del_items(0x80138398)
SetType(0x80138398, "int OldBlock[4]")
del_items(0x801383A8)
SetType(0x801383A8, "unsigned char L5dungeon[80][80]")
del_items(0x80138038)
SetType(0x80138038, "struct ShadowStruct SPATS[37]")
del_items(0x8013813C)
SetType(0x... | 35.431894 | 55 | 0.802344 | 1,355 | 10,665 | 6.202214 | 0.24797 | 0.142789 | 0.061875 | 0.002856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279766 | 0.069948 | 10,665 | 300 | 56 | 35.55 | 0.567497 | 0 | 0 | 0 | 0 | 0 | 0.353024 | 0 | 0 | 0 | 0.281294 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
59fbe9b9c44c1dc57ed0a0f530dd480352ca04fe | 184 | py | Python | crash_course/ch10/exec/favorite_number_reader.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch10/exec/favorite_number_reader.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch10/exec/favorite_number_reader.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null |
import json
filename = 'tmp/favorite-number.json'
with open(filename) as f_obj:
favorite = json.load(f_obj)
print('I know your favorite number! It\'s ' + str(favorite) + '.')
| 16.727273 | 66 | 0.679348 | 28 | 184 | 4.392857 | 0.678571 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 184 | 10 | 67 | 18.4 | 0.809211 | 0 | 0 | 0 | 0 | 0 | 0.409836 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 | 0 | 0 | 2 |
59fde8656226ce9a5927a84f87c9663b0ac3a0ce | 406 | py | Python | tests/test_news.py | mugisha-thierry/news_app | b5155182493577d859cd2fa5bcf58d4647bc2dd5 | [
"Unlicense"
] | null | null | null | tests/test_news.py | mugisha-thierry/news_app | b5155182493577d859cd2fa5bcf58d4647bc2dd5 | [
"Unlicense"
] | null | null | null | tests/test_news.py | mugisha-thierry/news_app | b5155182493577d859cd2fa5bcf58d4647bc2dd5 | [
"Unlicense"
] | null | null | null | import unittest
from app.models import News
class MewsTest(unittest.TestCase):
"""
Test Class to test the behaviour of the News class
"""
def setUp(self):
"""
Set up method that will run before every Test
"""
self.new_news = News(1234,'bbc','www.you.com','business')
... | 25.375 | 65 | 0.630542 | 54 | 406 | 4.685185 | 0.648148 | 0.071146 | 0.086957 | 0.118577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.258621 | 406 | 15 | 66 | 27.066667 | 0.827243 | 0.236453 | 0 | 0 | 0 | 0 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
940f0434744074dbc6c913f66fdd1933bcaa8210 | 16,611 | py | Python | src/run_eval.py | Zayat/blockchain-models-simulator | abfb643b1e11424e7874016399b05bdc359eecd4 | [
"MIT"
] | 3 | 2021-06-10T08:32:05.000Z | 2021-06-11T08:06:27.000Z | src/run_eval.py | Zayat/blockchain-models-simulator | abfb643b1e11424e7874016399b05bdc359eecd4 | [
"MIT"
] | null | null | null | src/run_eval.py | Zayat/blockchain-models-simulator | abfb643b1e11424e7874016399b05bdc359eecd4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : run_eval.py
# Author : Mohamed Alzayat <alzayat@mpi-sws.org>
# Date : 21.10.2020
# Last Modified Date: 21.10.2020
# Last Modified By : Mohamed Alzayat <alzayat@mpi-sws.org>
import argparse
from bcns import sim
from evaluation... | 52.566456 | 155 | 0.722232 | 2,118 | 16,611 | 5.39424 | 0.105288 | 0.052079 | 0.083326 | 0.069934 | 0.748271 | 0.725514 | 0.687265 | 0.66512 | 0.643764 | 0.627309 | 0 | 0.010099 | 0.183312 | 16,611 | 315 | 156 | 52.733333 | 0.83208 | 0.02697 | 0 | 0.379845 | 0 | 0.011628 | 0.12661 | 0.019998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089147 | false | 0 | 0.031008 | 0 | 0.124031 | 0.003876 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
94233aaf3bc27bbb95fcba3936869d2e38d18220 | 841 | py | Python | slrfield/slrclasses/__init__.py | lcx366/SLRfield | 7eb70efa30043406b105b78e2612689326c77f7c | [
"MIT"
] | 2 | 2020-04-21T08:57:49.000Z | 2020-08-19T11:34:24.000Z | slrfield/slrclasses/__init__.py | lcx366/SLRfield | 7eb70efa30043406b105b78e2612689326c77f7c | [
"MIT"
] | 1 | 2021-03-14T00:56:53.000Z | 2021-06-03T02:03:10.000Z | slrfield/slrclasses/__init__.py | lcx366/SLRfield | 7eb70efa30043406b105b78e2612689326c77f7c | [
"MIT"
] | 2 | 2020-08-19T11:34:27.000Z | 2022-03-11T02:42:06.000Z | '''
slrfield slrclasses subpackage
This subpackage defines some classes that facilitate the processing of the SLR(Satellite Laser Ranging) data.
# cpfpred.py
Class structure:
CPFdata
- attributes:
- info: all information about the cpf ephemeris file
- version: version number of ... | 35.041667 | 155 | 0.657551 | 108 | 841 | 5.074074 | 0.583333 | 0.054745 | 0.109489 | 0.093066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005059 | 0.294887 | 841 | 24 | 156 | 35.041667 | 0.919056 | 0.97503 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
942f52a56216cd9dd4b3b55735c54ed5fcbd5571 | 610 | py | Python | ex42.py | hninpoeaukyaw/python_exercises | 5d2271a7a3e5b242dde95288d7962e912bcfd702 | [
"MIT"
] | null | null | null | ex42.py | hninpoeaukyaw/python_exercises | 5d2271a7a3e5b242dde95288d7962e912bcfd702 | [
"MIT"
] | null | null | null | ex42.py | hninpoeaukyaw/python_exercises | 5d2271a7a3e5b242dde95288d7962e912bcfd702 | [
"MIT"
] | null | null | null | class Animal(object):
pass
class Dog(Animal):
def __init__(self, name):
self.name = name
class Cat(Animal):
def __init__(self, name):
self.name = name
class Person(object):
def __init__(self, name):
self.name = name
self.pet = None
class Employee(Person):
def __init__(self, name, salary):
super(Employee, self).__init__... | 19.0625 | 36 | 0.722951 | 90 | 610 | 4.677778 | 0.3 | 0.133017 | 0.104513 | 0.142518 | 0.244656 | 0.244656 | 0.244656 | 0.180523 | 0.180523 | 0 | 0 | 0.011278 | 0.127869 | 610 | 31 | 37 | 19.677419 | 0.780075 | 0 | 0 | 0.322581 | 0 | 0 | 0.031148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.129032 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
943df8ec9917dadf2f8a3e2c1b6cb3862ab6f172 | 349 | py | Python | controllers/tests/spawn.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | controllers/tests/spawn.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | controllers/tests/spawn.py | neuroailab/magnebot | 3f537fcd95685efeadf7200208a310a4c6a2f10c | [
"MIT"
] | null | null | null | from magnebot.test_controller import TestController, ActionStatus
"""
Test whether the Magnebot is initialized successfully.
"""
if __name__ == "__main__":
m = TestController()
status = m.init_scene()
assert status == ActionStatus.success, status
status = m.move_by(1)
assert status == ActionStatus... | 24.928571 | 65 | 0.713467 | 40 | 349 | 5.95 | 0.625 | 0.088235 | 0.201681 | 0.260504 | 0.310924 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 0.183381 | 349 | 13 | 66 | 26.846154 | 0.831579 | 0 | 0 | 0.25 | 0 | 0 | 0.027875 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
946731cb45e6088144b61d5dec0e0d8b4e410ade | 474 | py | Python | api/admin/admin_authentication_provider.py | datalogics/circulation | a4767404a63dd034d101e6ee76f824626e5d5269 | [
"Apache-2.0"
] | null | null | null | api/admin/admin_authentication_provider.py | datalogics/circulation | a4767404a63dd034d101e6ee76f824626e5d5269 | [
"Apache-2.0"
] | 6 | 2016-10-25T14:55:39.000Z | 2017-10-09T15:37:03.000Z | api/admin/admin_authentication_provider.py | datalogics/circulation | a4767404a63dd034d101e6ee76f824626e5d5269 | [
"Apache-2.0"
] | 2 | 2016-09-29T16:28:14.000Z | 2021-08-04T12:28:21.000Z | from nose.tools import set_trace
class AdminAuthenticationProvider(object):
def __init__(self, integration):
self.integration = integration
def auth_uri(self, redirect_url):
# Returns a URI that an admin can use to log in with this
# authentication provider.
raise NotImplemente... | 31.6 | 66 | 0.704641 | 56 | 474 | 5.821429 | 0.75 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236287 | 474 | 14 | 67 | 33.857143 | 0.900552 | 0.28903 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9488a6705ec1681c46f7010dca9d78428eb0d9c9 | 524 | py | Python | unfreezePy/extractor/pyinstaller.py | ibradypod/UnfreezePyBin | ecd8e886c8c4bfea58d4ff7f651062e91041e440 | [
"MIT"
] | null | null | null | unfreezePy/extractor/pyinstaller.py | ibradypod/UnfreezePyBin | ecd8e886c8c4bfea58d4ff7f651062e91041e440 | [
"MIT"
] | null | null | null | unfreezePy/extractor/pyinstaller.py | ibradypod/UnfreezePyBin | ecd8e886c8c4bfea58d4ff7f651062e91041e440 | [
"MIT"
] | null | null | null | # encoding: utf-8
import os
import traceback
from app.pyinstaller.readers import CArchiveReader
from app.pyinstaller.readers import ZlibArchiveReader
from extractor import ArchiveExtractor
class PyinstallerExtractor(ArchiveExtractor):
def __init__(self, fpath, **kwargs):
key = kwargs.get("key","")
... | 29.111111 | 82 | 0.734733 | 56 | 524 | 6.732143 | 0.535714 | 0.037135 | 0.095491 | 0.132626 | 0.164456 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002278 | 0.162214 | 524 | 17 | 83 | 30.823529 | 0.856492 | 0.028626 | 0 | 0 | 0 | 0 | 0.013807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
846eee1f9835a8d69195c6aee569d75cbf67c8ca | 716 | py | Python | lang/py/pylib/code/struct/struct_buffers.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/struct/struct_buffers.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/struct/struct_buffers.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""
__version__ = "$Id$"
#end_pymotw_header
import struct
import binascii
s = struct.Struct('I 2s f')
values = (1, 'ab', 2.7)
print 'Original:', values
print
print 'ctypes string buffer'
import ctypes
b = ctypes.... | 19.351351 | 55 | 0.685754 | 112 | 716 | 4.276786 | 0.464286 | 0.125261 | 0.041754 | 0.066806 | 0.363257 | 0.263048 | 0 | 0 | 0 | 0 | 0 | 0.022801 | 0.142458 | 716 | 36 | 56 | 19.888889 | 0.757329 | 0.149441 | 0 | 0.090909 | 0 | 0 | 0.172819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
84806a239925de030e3ae5a0bfc49d874839118d | 690 | py | Python | plaso/formatters/android_webviewcache.py | ir4n6/plaso | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | [
"Apache-2.0"
] | 27 | 2019-04-05T12:01:49.000Z | 2022-02-08T02:26:25.000Z | plaso/formatters/android_webviewcache.py | ir4n6/plaso | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | [
"Apache-2.0"
] | null | null | null | plaso/formatters/android_webviewcache.py | ir4n6/plaso | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | [
"Apache-2.0"
] | 8 | 2019-11-28T08:06:34.000Z | 2020-08-29T13:53:30.000Z | # -*- coding: utf-8 -*-
"""The Android WebViewCache database event formatter."""
from __future__ import unicode_literals
from plaso.formatters import interface
from plaso.formatters import manager
# TODO: move to android_webview.py.
class AndroidWebViewCacheFormatter(interface.ConditionalEventFormatter):
"""Forma... | 24.642857 | 73 | 0.757971 | 69 | 690 | 7.362319 | 0.57971 | 0.149606 | 0.074803 | 0.098425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001692 | 0.143478 | 690 | 27 | 74 | 25.555556 | 0.857868 | 0.223188 | 0 | 0 | 0 | 0 | 0.188931 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
848522d0c16945038ba7b546ab13ef5b66ef936b | 78 | py | Python | src/chat/urls.py | alehpineda/django_webchat | 1fef369d04c9bff0b506a152d4a82d7fa14a53f2 | [
"MIT"
] | null | null | null | src/chat/urls.py | alehpineda/django_webchat | 1fef369d04c9bff0b506a152d4a82d7fa14a53f2 | [
"MIT"
] | null | null | null | src/chat/urls.py | alehpineda/django_webchat | 1fef369d04c9bff0b506a152d4a82d7fa14a53f2 | [
"MIT"
] | null | null | null | from django.urls import path, re_path
app_name = 'chat'
urlpatterns = [
]
| 8.666667 | 37 | 0.692308 | 11 | 78 | 4.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 78 | 8 | 38 | 9.75 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8488ee1fb62a274d4553e3c32bfb9b276cd72576 | 354 | py | Python | pyoctoprintapi/server.py | rfleming71/pyoctoprintapi | 5058d163beee11329315ced814bb6aec04142d8a | [
"MIT"
] | null | null | null | pyoctoprintapi/server.py | rfleming71/pyoctoprintapi | 5058d163beee11329315ced814bb6aec04142d8a | [
"MIT"
] | 1 | 2021-11-12T05:47:05.000Z | 2021-11-12T05:47:05.000Z | pyoctoprintapi/server.py | rfleming71/pyoctoprintapi | 5058d163beee11329315ced814bb6aec04142d8a | [
"MIT"
] | null | null | null | """Define information about the octoprint server"""
class OctoprintServerInfo:
"""Current job information"""
def __init__(self, raw: dict):
self._raw = raw
@property
def safe_mode(self) -> str or None:
return self._raw.get("safemode")
@property
def version(self) -> str:
... | 23.6 | 51 | 0.635593 | 42 | 354 | 5.166667 | 0.595238 | 0.129032 | 0.119816 | 0.147465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240113 | 354 | 14 | 52 | 25.285714 | 0.806691 | 0.194915 | 0 | 0.222222 | 0 | 0 | 0.054745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8497cd64ede98663c1b1f76b7510257ff7fd903c | 1,792 | py | Python | app/main/forms.py | igihozo-stella/60sec-Pitch | a4ae4ca2cf0a6d2488bd721f329e33b6f4e38fec | [
"MIT"
] | null | null | null | app/main/forms.py | igihozo-stella/60sec-Pitch | a4ae4ca2cf0a6d2488bd721f329e33b6f4e38fec | [
"MIT"
] | null | null | null | app/main/forms.py | igihozo-stella/60sec-Pitch | a4ae4ca2cf0a6d2488bd721f329e33b6f4e38fec | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SelectField, TextAreaField, SubmitField,PasswordField,ValidationError
from wtforms.validators import Required, Email, Length, EqualTo
from wtforms.validators import Required
class LoginForm(FlaskForm):
username = StringField("Username:", validators=... | 38.956522 | 128 | 0.714844 | 183 | 1,792 | 6.918033 | 0.333333 | 0.14218 | 0.061611 | 0.082938 | 0.531596 | 0.28357 | 0.21406 | 0.176935 | 0.096367 | 0.096367 | 0 | 0 | 0.154576 | 1,792 | 46 | 129 | 38.956522 | 0.835644 | 0 | 0 | 0.193548 | 0 | 0 | 0.136643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.129032 | 0.129032 | 0 | 0.806452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
849cae0812bd0c8ef041e12b52ebe1e5cee5e1af | 199 | py | Python | 01_foundation/00_basic/31_lambda.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | 01_foundation/00_basic/31_lambda.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | 01_foundation/00_basic/31_lambda.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | # The power of lambda is better shown when you use them as an anonymous function inside another function
double = lambda x: x * 2
print(double(10))
x = lambda a, b, c: a + b + c
print(x(5, 6, 2))
| 22.111111 | 104 | 0.678392 | 39 | 199 | 3.461538 | 0.692308 | 0.02963 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03871 | 0.221106 | 199 | 8 | 105 | 24.875 | 0.832258 | 0.512563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
84cb4b2d578ea0ddb93b0e6e664df51f2ba921d1 | 398 | py | Python | mongodb_consistent_backup/Upload/__init__.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | 1 | 2020-10-20T06:01:21.000Z | 2020-10-20T06:01:21.000Z | mongodb_consistent_backup/Upload/__init__.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | null | null | null | mongodb_consistent_backup/Upload/__init__.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | 1 | 2020-10-20T06:01:25.000Z | 2020-10-20T06:01:25.000Z | from Upload import Upload
def config(parser):
parser.add_argument("--upload.method", dest="upload.method", help="Uploader method (default: none)", default='none', choices=['s3', 'none'])
parser.add_argument("--upload.remove_uploaded", dest="upload.remove_uploaded",help="Remove source files after successful up... | 49.75 | 186 | 0.738693 | 51 | 398 | 5.666667 | 0.529412 | 0.062284 | 0.117647 | 0.15917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002809 | 0.105528 | 398 | 7 | 187 | 56.857143 | 0.808989 | 0 | 0 | 0 | 0 | 0 | 0.464824 | 0.115578 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
84d22ac92da6a7038aa58f693b963ea0ca124211 | 234 | py | Python | quantifiers/CC.py | andregustavom/quantifiers4python | 433b564599cdedffa711d64392381aebdccaad41 | [
"MIT"
] | null | null | null | quantifiers/CC.py | andregustavom/quantifiers4python | 433b564599cdedffa711d64392381aebdccaad41 | [
"MIT"
] | null | null | null | quantifiers/CC.py | andregustavom/quantifiers4python | 433b564599cdedffa711d64392381aebdccaad41 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
def CC(test_scores,thr=0.5):
count = len([i for i in test_scores if i >= thr])
pos_prop = round(count/len(test_scores),2)
num_predict = count
return pos_prop
| 13.764706 | 53 | 0.628205 | 40 | 234 | 3.525 | 0.65 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.282051 | 234 | 16 | 54 | 14.625 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
84dc9c31a5cc661992aad0e76ac68cd3af26038d | 369 | py | Python | tests/unit/test_filehandling.py | conradstorz/utilities | cf7c93c983d88d9fc6a8fcc5a6a5a97887e1f2d9 | [
"MIT"
] | null | null | null | tests/unit/test_filehandling.py | conradstorz/utilities | cf7c93c983d88d9fc6a8fcc5a6a5a97887e1f2d9 | [
"MIT"
] | null | null | null | tests/unit/test_filehandling.py | conradstorz/utilities | cf7c93c983d88d9fc6a8fcc5a6a5a97887e1f2d9 | [
"MIT"
] | null | null | null | from pathlib import Path
import cfsiv_utils.filehandling as fh
def test_clean_filename_str():
data = ['qwerty~!@#$%^&*().ext', Path('qwerty~!@#$%^&().ext')]
reslt = fh.clean_filename_str(data[0])
assert data[1] == reslt
def test_new_name_if_exists():
testname = fh.new_name_if_exists(Path('README.m... | 23.0625 | 66 | 0.663957 | 53 | 369 | 4.377358 | 0.528302 | 0.060345 | 0.137931 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009585 | 0.151762 | 369 | 15 | 67 | 24.6 | 0.731629 | 0 | 0 | 0 | 0 | 0 | 0.168022 | 0.056911 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
84e061e707eaf0e1adb8a679861ce9147fc31a9f | 285 | py | Python | tensorflow_serving_client/proto_util.py | wadefelix/tensorflow-serving-client | 8d6455268a1b7f99c1a55916661f299218d0e8eb | [
"MIT"
] | 8 | 2017-12-08T06:37:30.000Z | 2021-03-28T22:16:59.000Z | tensorflow_serving_client/proto_util.py | wadefelix/tensorflow-serving-client | 8d6455268a1b7f99c1a55916661f299218d0e8eb | [
"MIT"
] | 3 | 2017-08-07T05:13:42.000Z | 2019-11-21T18:50:06.000Z | tensorflow_serving_client/proto_util.py | wadefelix/tensorflow-serving-client | 8d6455268a1b7f99c1a55916661f299218d0e8eb | [
"MIT"
] | 12 | 2017-11-27T19:55:49.000Z | 2021-03-28T22:16:38.000Z | def copy_message(src, dst):
"""
Copy the contents of a src proto message to a destination proto message via string serialization
:param src: Source proto
:param dst: Destination proto
:return:
"""
dst.ParseFromString(src.SerializeToString())
return dst
| 28.5 | 100 | 0.694737 | 36 | 285 | 5.472222 | 0.555556 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 285 | 9 | 101 | 31.666667 | 0.895455 | 0.561404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 2 |
84e83922e6be948bcdc8a6d29d5d312888e54296 | 746 | py | Python | challenges/array/array_duplicate.py | lukasmartinelli/sharpen | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | [
"CC0-1.0"
] | 13 | 2017-04-24T23:27:16.000Z | 2020-05-25T22:41:42.000Z | challenges/array/array_duplicate.py | lukasmartinelli/sharpen | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | [
"CC0-1.0"
] | null | null | null | challenges/array/array_duplicate.py | lukasmartinelli/sharpen | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | [
"CC0-1.0"
] | 2 | 2017-05-27T08:55:28.000Z | 2018-08-11T08:54:51.000Z | import collections
def find_duplicate(arr):
"""
Find the first duplicate in an array of n + 1 integers between 1 and n.
Find a repeating number in linear time using less than O(n) space and
traversing the array only once.
Given the input A.
assert find_duplicate([3, 4, 1, 4, 1]) == 1
... | 22.606061 | 75 | 0.656836 | 115 | 746 | 4.078261 | 0.46087 | 0.221748 | 0.162047 | 0.127932 | 0.24307 | 0.102345 | 0.102345 | 0.102345 | 0 | 0 | 0 | 0.040998 | 0.247989 | 746 | 32 | 76 | 23.3125 | 0.795009 | 0.324397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca04f9a8a801295befff11b7f19b734494ae70d1 | 2,178 | py | Python | tests/test_daemon.py | aewens/revoko | dd44afdf97524eb4ab2a8a240b0bc10b6f859d38 | [
"Apache-2.0"
] | null | null | null | tests/test_daemon.py | aewens/revoko | dd44afdf97524eb4ab2a8a240b0bc10b6f859d38 | [
"Apache-2.0"
] | null | null | null | tests/test_daemon.py | aewens/revoko | dd44afdf97524eb4ab2a8a240b0bc10b6f859d38 | [
"Apache-2.0"
] | null | null | null | from .context import daemon
from pathlib import Path
from argparse import Namespace
args = Namespace(timeout=3 * 60, no_scripts=False, no_updates=False,
kill=[], kill_all=True)
def test_eprint():
assert daemon.eprint("Hello, world!") is None, "eprint returned something"
def test_shell_run_pass():
result... | 35.129032 | 78 | 0.714876 | 306 | 2,178 | 4.918301 | 0.287582 | 0.058472 | 0.065116 | 0.045183 | 0.345515 | 0.301661 | 0.261794 | 0.261794 | 0.261794 | 0.261794 | 0 | 0.004467 | 0.177686 | 2,178 | 61 | 79 | 35.704918 | 0.835846 | 0 | 0 | 0.212766 | 0 | 0 | 0.252525 | 0.012397 | 0 | 0 | 0 | 0 | 0.319149 | 1 | 0.212766 | false | 0.085106 | 0.06383 | 0 | 0.276596 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ca16d21e463b54abc6a96f2de26af157f2c09dbb | 325 | py | Python | aaittech_cms_template/cms_apps.py | ti3r/aaittech-cms-template | 57af1d243cf3c0a536f286c1403af4bc2e55afe7 | [
"MIT"
] | null | null | null | aaittech_cms_template/cms_apps.py | ti3r/aaittech-cms-template | 57af1d243cf3c0a536f286c1403af4bc2e55afe7 | [
"MIT"
] | null | null | null | aaittech_cms_template/cms_apps.py | ti3r/aaittech-cms-template | 57af1d243cf3c0a536f286c1403af4bc2e55afe7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from appconf import AppConf
class AaItTechThemeConf(AppConf):
CMS_TEMPLATES = (#Add the templates in this theme to the existing CMS_TEMPLATES setting in the application
('aaittech/fullwidth.html', 'A&A IT TECH Fullwidth'),
... | 29.545455 | 110 | 0.738462 | 42 | 325 | 5.52381 | 0.690476 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.175385 | 325 | 10 | 111 | 32.5 | 0.86194 | 0.335385 | 0 | 0 | 0 | 0 | 0.207547 | 0.108491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ca16deeed1567cf782ef50d864c2d97897036fbd | 73 | py | Python | snippets/python-set.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 7 | 2018-08-04T09:28:19.000Z | 2020-10-19T17:46:34.000Z | snippets/python-set.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | null | null | null | snippets/python-set.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 2 | 2018-07-31T04:14:55.000Z | 2020-04-02T01:22:39.000Z | # python set
s = set()
s.add(5)
s.remove(5)
s2 = {2, 3, 5}
s.discard(9)
| 9.125 | 14 | 0.547945 | 17 | 73 | 2.352941 | 0.647059 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 0.205479 | 73 | 7 | 15 | 10.428571 | 0.568966 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca2351ab88cb240b18baff7cac53a685ea432501 | 895 | py | Python | rllib/environment/vectorized/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 8 | 2020-10-23T07:52:19.000Z | 2022-03-06T13:35:12.000Z | rllib/environment/vectorized/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 3 | 2021-03-04T13:44:01.000Z | 2021-03-23T09:57:50.000Z | rllib/environment/vectorized/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 3 | 2021-03-18T08:23:56.000Z | 2021-07-06T11:20:12.000Z | """Vectorized Gym Environments."""
from gym.envs.registration import register
from .acrobot import DiscreteVectorizedAcrobotEnv, VectorizedAcrobotEnv
from .cartpole import DiscreteVectorizedCartPoleEnv, VectorizedCartPoleEnv
from .pendulum import VectorizedPendulumEnv
register(
id="VContinuous-CartPole-v0",
e... | 27.96875 | 86 | 0.798883 | 82 | 895 | 8.658537 | 0.304878 | 0.070423 | 0.084507 | 0.119718 | 0.352113 | 0.352113 | 0.298592 | 0.298592 | 0 | 0 | 0 | 0.006188 | 0.097207 | 895 | 31 | 87 | 28.870968 | 0.872525 | 0.031285 | 0 | 0.208333 | 0 | 0 | 0.470383 | 0.433217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca52a7aab07c59186a8296a957a5d226e24e48dc | 809 | py | Python | app/restaurants/views.py | yagnic/recipe-app-me | 2713461de85f7fb009a4244f43eca9ac97c35722 | [
"MIT"
] | null | null | null | app/restaurants/views.py | yagnic/recipe-app-me | 2713461de85f7fb009a4244f43eca9ac97c35722 | [
"MIT"
] | null | null | null | app/restaurants/views.py | yagnic/recipe-app-me | 2713461de85f7fb009a4244f43eca9ac97c35722 | [
"MIT"
] | null | null | null | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Restaurant
from restaurants import ... | 31.115385 | 61 | 0.797281 | 87 | 809 | 7.298851 | 0.482759 | 0.062992 | 0.133858 | 0.059843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142151 | 809 | 25 | 62 | 32.36 | 0.914986 | 0.02843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.411765 | 0 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ca5def6663dd34eb3d655b1ffbb1b95127bf3583 | 995 | py | Python | blogapp/models.py | Altaf-H-Miazee/BlogApp-Django | 4245729352f5ce1180f6ba3b4e7cc6650ffb8358 | [
"MIT"
] | 1 | 2020-10-06T16:23:35.000Z | 2020-10-06T16:23:35.000Z | blogapp/models.py | hosenmdaltaf/BlogApp-Django | 4245729352f5ce1180f6ba3b4e7cc6650ffb8358 | [
"MIT"
] | null | null | null | blogapp/models.py | hosenmdaltaf/BlogApp-Django | 4245729352f5ce1180f6ba3b4e7cc6650ffb8358 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class Author(models.Model):
author= models.ForeignKey(User,on_delete=models.CASCADE, null=True, blank=True)
profile_pic = models.ImageField(upload_to='profile_pic',null=Tr... | 30.151515 | 101 | 0.730653 | 136 | 995 | 5.213235 | 0.463235 | 0.056417 | 0.091678 | 0.119887 | 0.174894 | 0.107193 | 0.107193 | 0.107193 | 0 | 0 | 0 | 0.0047 | 0.144724 | 995 | 32 | 102 | 31.09375 | 0.828437 | 0 | 0 | 0.1 | 0 | 0 | 0.076382 | 0.047236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0.15 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
ca6ad152789223ad92fe49facebc426481abe551 | 815 | py | Python | setup.py | blablalab/supervisor-remote-logging | a3e6b1476ef3a230e1fe092bf23fc84315173a3a | [
"BSD-2-Clause"
] | null | null | null | setup.py | blablalab/supervisor-remote-logging | a3e6b1476ef3a230e1fe092bf23fc84315173a3a | [
"BSD-2-Clause"
] | null | null | null | setup.py | blablalab/supervisor-remote-logging | a3e6b1476ef3a230e1fe092bf23fc84315173a3a | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup, find_packages
with open("requirements.txt") as requirements:
setup(
name="supervisor-remote-logging",
version="0.0.3",
description="Stream supervisord logs various remote endpoints",
author="New Relic Site Engineering Team",
url="https://github.... | 37.045455 | 76 | 0.631902 | 82 | 815 | 6.134146 | 0.682927 | 0.127237 | 0.182903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004839 | 0.239264 | 815 | 21 | 77 | 38.809524 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.385276 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca75f434148d96356dd723dec0e4898094cb7430 | 1,250 | py | Python | CH_13_async_io/T_00_async_await.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_13_async_io/T_00_async_await.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_13_async_io/T_00_async_await.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | import asyncio
@asyncio.coroutine
def main():
print('Hello from main')
yield from asyncio.sleep(1)
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
loop.close()
#################################################################
import asyncio
async def main():
print('Hello from main')
... | 17.123288 | 65 | 0.556 | 143 | 1,250 | 4.706294 | 0.223776 | 0.106984 | 0.089153 | 0.1263 | 0.734027 | 0.698366 | 0.661218 | 0.612184 | 0.612184 | 0.612184 | 0 | 0.005597 | 0.1424 | 1,250 | 72 | 66 | 17.361111 | 0.622201 | 0.0336 | 0 | 0.736842 | 0 | 0 | 0.079281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.131579 | 0 | 0.157895 | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca8000a403d5b123e875d49d431c426113a4a558 | 1,119 | py | Python | paperswithcode/models/evaluation/__init__.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 78 | 2020-10-26T11:08:41.000Z | 2022-03-31T18:38:40.000Z | paperswithcode/models/evaluation/__init__.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 15 | 2020-10-31T11:46:07.000Z | 2022-01-21T09:01:43.000Z | paperswithcode/models/evaluation/__init__.py | Kabongosalomon/paperswithcode-client | 3b85082aa897312424976577bcbc6305e64acac0 | [
"Apache-2.0"
] | 13 | 2020-11-12T00:07:39.000Z | 2022-01-14T03:07:45.000Z | __all__ = [
"Metric",
"Metrics",
"MetricCreateRequest",
"MetricUpdateRequest",
"Result",
"Results",
"ResultCreateRequest",
"ResultUpdateRequest",
"EvaluationTable",
"EvaluationTables",
"EvaluationTableCreateRequest",
"EvaluationTableUpdateRequest",
"ResultSyncRequest"... | 23.3125 | 58 | 0.731903 | 61 | 1,119 | 13.360656 | 0.42623 | 0.088344 | 0.117791 | 0.166871 | 0.30184 | 0.30184 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183199 | 1,119 | 47 | 59 | 23.808511 | 0.891685 | 0 | 0 | 0 | 0 | 0 | 0.27882 | 0.097408 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca8027790a4fceb962c245fd135028de87ab82b7 | 530 | py | Python | tests/test_importall.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 6 | 2018-04-18T03:42:50.000Z | 2021-11-20T18:46:37.000Z | tests/test_importall.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 13 | 2018-10-01T11:45:05.000Z | 2022-03-16T12:28:36.000Z | tests/test_importall.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 5 | 2017-12-09T09:02:17.000Z | 2021-11-15T16:55:30.000Z | #!/usr/bin/env python
#
# test_importall.py -
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
import pkgutil
import importlib
import fsl
def test_importall():
def recurse(module):
path = module.__path__
name = module.__name__
submods = list(pkgutil.iter_modules(path, '{}.... | 16.5625 | 70 | 0.615094 | 58 | 530 | 5.413793 | 0.62069 | 0.082803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273585 | 530 | 31 | 71 | 17.096774 | 0.815584 | 0.166038 | 0 | 0 | 0 | 0 | 0.006881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ca862c6e479fb1bc4dd13ef50993c3c14c1ddfc9 | 2,084 | py | Python | Mobot_simulation/Animation.py | harveybia/the-flash-sudo | 33753bf1ac854a030b2b27341c1ff893798c5821 | [
"Apache-2.0"
] | 2 | 2016-06-16T07:42:43.000Z | 2016-06-24T23:49:19.000Z | Mobot_simulation/Animation.py | harveybia/the-flash-sudo | 33753bf1ac854a030b2b27341c1ff893798c5821 | [
"Apache-2.0"
] | null | null | null | Mobot_simulation/Animation.py | harveybia/the-flash-sudo | 33753bf1ac854a030b2b27341c1ff893798c5821 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
class Animation(object):
DELAY = 20
# Override these methods when creating your own animation
def mousePressed(self, event): pass
def keyPressed(self, event): pass
def keyReleased(self,event):pass
def leftMouseReleased(self,event):pass
def mouseMotion(self,event):pass... | 30.202899 | 70 | 0.604127 | 218 | 2,084 | 5.775229 | 0.385321 | 0.03892 | 0.051628 | 0.063542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010907 | 0.296065 | 2,084 | 68 | 71 | 30.647059 | 0.847307 | 0.131478 | 0 | 0.0625 | 0 | 0 | 0.036171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.270833 | false | 0.166667 | 0.020833 | 0 | 0.333333 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ca8c4743210b0654e5b22385db2cf3bf8ce7e230 | 5,591 | py | Python | src/BasicPacketInfo.py | ghousali17/nids-framework | cee79396ca057cd199cee6c73ffd11f7fa99fdb8 | [
"MIT"
] | 1 | 2021-02-08T04:57:02.000Z | 2021-02-08T04:57:02.000Z | src/BasicPacketInfo.py | ghousali17/nids-framework | cee79396ca057cd199cee6c73ffd11f7fa99fdb8 | [
"MIT"
] | null | null | null | src/BasicPacketInfo.py | ghousali17/nids-framework | cee79396ca057cd199cee6c73ffd11f7fa99fdb8 | [
"MIT"
] | 4 | 2019-03-25T14:25:55.000Z | 2019-05-23T14:09:33.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pcap
import sys
import socket
import struct
class BasicPacketInfo:
def __init__(
self,
src,
dst,
srcPort,
dstPort,
protocol,
timestamp,
generator,
):
# Info to generate flows from packer... | 22.913934 | 163 | 0.567519 | 572 | 5,591 | 5.215035 | 0.251748 | 0.080456 | 0.093865 | 0.006705 | 0.08582 | 0.030841 | 0.030841 | 0 | 0 | 0 | 0 | 0.013341 | 0.343051 | 5,591 | 244 | 164 | 22.913934 | 0.798802 | 0.039528 | 0 | 0.178571 | 0 | 0 | 0.003731 | 0 | 0 | 0 | 0.006715 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.02381 | 0.130952 | 0.488095 | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
ca921305ecd69d1337aa587c3ee6490624527464 | 361 | py | Python | discord/ext/ui/combine/just.py | sushi-chaaaan/discord-ext-ui-fork | aa726b97ee1cd4c60974e74d3c9113142131a76e | [
"MIT"
] | 27 | 2021-05-28T10:43:50.000Z | 2022-03-29T14:30:17.000Z | discord/ext/ui/combine/just.py | sushi-chaaaan/discord-ext-ui-fork | aa726b97ee1cd4c60974e74d3c9113142131a76e | [
"MIT"
] | 13 | 2021-05-29T01:13:12.000Z | 2022-01-08T14:53:21.000Z | discord/ext/ui/combine/just.py | sushi-chaaaan/discord-ext-ui-fork | aa726b97ee1cd4c60974e74d3c9113142131a76e | [
"MIT"
] | 13 | 2021-06-08T15:21:36.000Z | 2022-02-07T13:23:00.000Z | from __future__ import annotations
from typing import Any
from .publisher import Publisher
class Just(Publisher):
def __init__(self, value: Any) -> None:
super().__init__()
self.value: Any = value
def dispatch(self) -> Any:
self.upstream(self.value)
def send(self, value: Any) ->... | 21.235294 | 43 | 0.66205 | 43 | 361 | 5.27907 | 0.465116 | 0.15859 | 0.15859 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240997 | 361 | 16 | 44 | 22.5625 | 0.828467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
04611e1ebaeb1a4f4d094c70fa5acd7403c11436 | 366 | py | Python | GaiaLab/hits/filters/__init__.py | bombrun/GaiaLab | 186b39621cdc5d8fb165907107b1aaed933f0c8f | [
"MIT"
] | 8 | 2018-06-21T14:36:25.000Z | 2020-04-04T18:21:18.000Z | GaiaLab/hits/filters/__init__.py | MaraBucur/GaiaLab | 186b39621cdc5d8fb165907107b1aaed933f0c8f | [
"MIT"
] | 7 | 2018-11-26T15:01:27.000Z | 2019-07-12T14:21:34.000Z | GaiaLab/hits/filters/__init__.py | MaraBucur/GaiaLab | 186b39621cdc5d8fb165907107b1aaed933f0c8f | [
"MIT"
] | 5 | 2018-07-24T07:20:47.000Z | 2021-06-02T07:17:23.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Filters for the datasets. Natively implemented are the Kalman filter and
a single-pole low-pass filter.
There is also a base filter class created for subclassing to allow the
creation of custom filters.
"""
from . import kalman
from . import lowpass
__author__ = "Toby ... | 26.142857 | 72 | 0.740437 | 57 | 366 | 4.614035 | 0.789474 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.163934 | 366 | 13 | 73 | 28.153846 | 0.846405 | 0.672131 | 0 | 0 | 0 | 0 | 0.288288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
046fd9edd934bed85046c10ef5960e82ca8128c6 | 2,686 | py | Python | src/pywink/test/devices/powerstrip_test.py | vickyg3/python-wink | 1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7 | [
"MIT"
] | null | null | null | src/pywink/test/devices/powerstrip_test.py | vickyg3/python-wink | 1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7 | [
"MIT"
] | null | null | null | src/pywink/test/devices/powerstrip_test.py | vickyg3/python-wink | 1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7 | [
"MIT"
] | null | null | null | import json
import os
import unittest
from pywink.api import get_devices_from_response_dict
from pywink.devices import types as device_types
class PowerstripTests(unittest.TestCase):
def test_state_powerstrip_state_should_be_true_if_one_outlet_is_true(self):
with open('{}/api_responses/pivot_power_geniu... | 43.322581 | 115 | 0.70551 | 339 | 2,686 | 5.218289 | 0.162242 | 0.142453 | 0.099491 | 0.117581 | 0.750141 | 0.735444 | 0.680045 | 0.680045 | 0.680045 | 0.680045 | 0 | 0.015131 | 0.188012 | 2,686 | 61 | 116 | 44.032787 | 0.795965 | 0 | 0 | 0.62 | 0 | 0 | 0.065525 | 0.059568 | 0 | 0 | 0 | 0 | 0.26 | 1 | 0.08 | false | 0 | 0.1 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
04723df89eebb8cfa4f96fd91422e906e34ae72a | 9,953 | py | Python | lookatweb/rules/domains.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | 2 | 2018-01-18T13:22:29.000Z | 2018-02-03T13:10:20.000Z | lookatweb/rules/domains.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | lookatweb/rules/domains.py | ivbeg/lookatweb | b98e3ebd29c00e2f718c3392bb31b7202aa82a99 | [
"BSD-3-Clause"
] | null | null | null | from .consts import *
L1_DOMAIN_RULES = [
{'type' : RULETYPE_EQUAL, 'text' : 'ru', 'action' : ACTION_FOLLOW, 'matcherkey' : 'r:net:domains_ru',
'entities' : [
{'name' : 'geo:ru:country/russia'},
]
},
{'type' : RULETYPE_EQUAL, 'text' : 'su', 'action' : ACTION_FOLLOW, 'matcherkey'... | 27.193989 | 107 | 0.437054 | 798 | 9,953 | 5.343358 | 0.140351 | 0.185741 | 0.263133 | 0.325047 | 0.741557 | 0.619606 | 0.577158 | 0.540572 | 0.474672 | 0.278846 | 0 | 0.001091 | 0.35537 | 9,953 | 365 | 108 | 27.268493 | 0.663498 | 0.003818 | 0 | 0.350282 | 0 | 0 | 0.346562 | 0.119863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002825 | 0 | 0.002825 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0482d084a543e80e3312d3162660c7d16901c30c | 7,213 | py | Python | plugin/core.py | rohankumardubey/plux | c3eae790618ef55ac41541f85fffb0c843f07308 | [
"Apache-2.0"
] | 13 | 2022-01-16T20:00:20.000Z | 2022-03-30T20:48:08.000Z | plugin/core.py | rohankumardubey/plux | c3eae790618ef55ac41541f85fffb0c843f07308 | [
"Apache-2.0"
] | 1 | 2022-03-02T22:15:21.000Z | 2022-03-03T09:58:45.000Z | plugin/core.py | localstack/plux | a412ab0a0d7d17c3b5e1f560b7b31dc1876598f7 | [
"Apache-2.0"
] | null | null | null | import abc
import functools
import inspect
from typing import Any, Callable, Dict, List, Tuple, Type, Union
class PluginException(Exception):
def __init__(self, message, namespace: str = None, name: str = None) -> None:
super().__init__(message)
self.namespace = namespace
self.name = name
... | 31.225108 | 117 | 0.652572 | 882 | 7,213 | 5.202948 | 0.256236 | 0.030508 | 0.018305 | 0.031379 | 0.15341 | 0.107867 | 0.079756 | 0.022227 | 0.022227 | 0.022227 | 0 | 0 | 0.267018 | 7,213 | 230 | 118 | 31.36087 | 0.867978 | 0.350478 | 0 | 0.274194 | 0 | 0 | 0.023141 | 0 | 0 | 0 | 0 | 0.008696 | 0 | 1 | 0.201613 | false | 0.056452 | 0.032258 | 0.048387 | 0.491935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0483e1cdc5b3f0b1841bfac50271950641dfff5e | 538,763 | py | Python | pysnmp/DV2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/DV2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/DV2-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module DV2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DV2-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:40:06 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 137.404489 | 7,637 | 0.731407 | 66,917 | 538,763 | 5.888489 | 0.044174 | 0.012121 | 0.015349 | 0.020394 | 0.615118 | 0.605208 | 0.576728 | 0.559517 | 0.505505 | 0.487519 | 0 | 0.096546 | 0.084525 | 538,763 | 3,920 | 7,638 | 137.439541 | 0.70236 | 0.000572 | 0 | 0.000512 | 0 | 0 | 0.103312 | 0.001445 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001793 | 0.001536 | 0 | 0.00589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
049610794903c58c0f44445aec069ae31619a636 | 713 | py | Python | agsadmin/rest_admin/system/System.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 2 | 2015-12-07T05:53:29.000Z | 2020-09-13T18:12:15.000Z | agsadmin/rest_admin/system/System.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 4 | 2015-03-09T05:59:14.000Z | 2018-01-09T00:12:56.000Z | agsadmin/rest_admin/system/System.py | christopherblanchfield/agsadmin | 989cb3795aacf285ccf74ee51b0de26bf2f48bc3 | [
"BSD-3-Clause"
] | 5 | 2015-03-09T01:05:24.000Z | 2019-09-09T23:01:21.000Z | from __future__ import (absolute_import, division, print_function, unicode_literals)
from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str,
super, zip)
from ..._endpoint_base import EndpointBase
from .Directories import Directories
c... | 33.952381 | 117 | 0.692847 | 83 | 713 | 5.590361 | 0.554217 | 0.096983 | 0.090517 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001786 | 0.214586 | 713 | 21 | 118 | 33.952381 | 0.826786 | 0 | 0 | 0.133333 | 0 | 0 | 0.014006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.133333 | 0.666667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
049bdf62a0d5fe27ae8813de7898e6f4dff58bd6 | 248 | py | Python | Python/rand.py | jayyok/ensiie-P | 6739c8478a0631c4c0966aad74d379df12e0bada | [
"Apache-2.0"
] | null | null | null | Python/rand.py | jayyok/ensiie-P | 6739c8478a0631c4c0966aad74d379df12e0bada | [
"Apache-2.0"
] | null | null | null | Python/rand.py | jayyok/ensiie-P | 6739c8478a0631c4c0966aad74d379df12e0bada | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
from random import randint
# Programme déliverant un nombre entre min et max
min = int(input('Veuillez entrer la valeur minimale :\t'))
max = int(input('Veuillez entrer la valeur maximale :\t'))
print(randint(min,max)) | 27.555556 | 59 | 0.717742 | 37 | 248 | 4.810811 | 0.675676 | 0.089888 | 0.179775 | 0.247191 | 0.337079 | 0.337079 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.165323 | 248 | 9 | 60 | 27.555556 | 0.855072 | 0.262097 | 0 | 0 | 0 | 0 | 0.436782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
04aa9f21674cf91fc3a982364012ad0b721101c2 | 690 | py | Python | aoc20211221a.py | BarnabyShearer/aoc | 4feb66c668b068f0f42ad99b916e80732eba5a2d | [
"MIT"
] | null | null | null | aoc20211221a.py | BarnabyShearer/aoc | 4feb66c668b068f0f42ad99b916e80732eba5a2d | [
"MIT"
] | null | null | null | aoc20211221a.py | BarnabyShearer/aoc | 4feb66c668b068f0f42ad99b916e80732eba5a2d | [
"MIT"
] | null | null | null | def parse(data):
return [int(l.split()[-1]) for l in data.split("\n")]
def to10(x):
return (x - 1) % 10 + 1
def deterministic_die():
while True:
yield from range(1, 101)
def turn(die, start):
return to10(start + next(die) + next(die) + next(die))
def game(die, players, target):
score... | 20.909091 | 63 | 0.546377 | 97 | 690 | 3.865979 | 0.412371 | 0.056 | 0.058667 | 0.074667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041754 | 0.305797 | 690 | 32 | 64 | 21.5625 | 0.741127 | 0 | 0 | 0.090909 | 0 | 0 | 0.002899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.136364 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
04bede2bb92f42742c55f231f058a89b588c7e76 | 509 | py | Python | src/app_util/__init__.py | jnsougata/app_util | 941421523d38973486321f26b38aa4735ca0a9b2 | [
"MIT"
] | null | null | null | src/app_util/__init__.py | jnsougata/app_util | 941421523d38973486321f26b38aa4735ca0a9b2 | [
"MIT"
] | null | null | null | src/app_util/__init__.py | jnsougata/app_util | 941421523d38973486321f26b38aa4735ca0a9b2 | [
"MIT"
] | null | null | null | """
Discord API Wrapper Extension
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A basic application command extension for discord.py.
:copyright: (c) 2022-present jnsougata
:license: MIT, see LICENSE for more details.
"""
from .bot import Bot
from .cog import Cog
from .errors import *
from .app import Overwrite
from .context impo... | 22.130435 | 53 | 0.744597 | 66 | 509 | 5.69697 | 0.575758 | 0.071809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.139489 | 509 | 22 | 54 | 23.136364 | 0.849315 | 0.390963 | 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 | 0 | 0 | 0 | 2 |
04c01f5bb0f3d376b162b175bf648b2109a2b261 | 68 | py | Python | gconfig.py | klince/ljd | eb3f9ecef12048be5fccb85bf4cb9cdfb63df344 | [
"MIT"
] | 112 | 2018-08-10T09:09:42.000Z | 2022-03-31T02:44:02.000Z | gconfig.py | klince/ljd | eb3f9ecef12048be5fccb85bf4cb9cdfb63df344 | [
"MIT"
] | null | null | null | gconfig.py | klince/ljd | eb3f9ecef12048be5fccb85bf4cb9cdfb63df344 | [
"MIT"
] | 59 | 2018-08-17T08:50:21.000Z | 2022-02-08T19:12:04.000Z |
#zzw 20180714 support str encode
gFlagDic = {'strEncode' : 'ascii'} | 22.666667 | 34 | 0.720588 | 8 | 68 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0.147059 | 68 | 3 | 34 | 22.666667 | 0.706897 | 0.455882 | 0 | 0 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
04cfac1d30abf2171b453cd7cf451b10c798b69d | 294 | py | Python | userlixo/handlers/bot/callback_query/any.py | AndrielFR/UserLixo | 5755b39e2bc62f72e9f76ee442b7c07f2ae4adeb | [
"MIT"
] | 65 | 2018-11-12T02:56:01.000Z | 2022-03-09T00:57:05.000Z | userlixo/handlers/bot/callback_query/any.py | AndrielFR/UserLixo | 5755b39e2bc62f72e9f76ee442b7c07f2ae4adeb | [
"MIT"
] | 93 | 2019-11-22T23:54:26.000Z | 2022-03-31T00:48:14.000Z | userlixo/handlers/bot/callback_query/any.py | HitaloSama/UserLixo | 85ef00cfc828ad6a6a28bd3c80eea07e0c4fc45a | [
"MIT"
] | 56 | 2018-12-16T17:13:38.000Z | 2022-03-30T18:40:07.000Z | # SPDX-License-Identifier: MIT
# Copyright (c) 2018-2021 Amano Team
import os
from pyrogram import Client
from userlixo.config import langs
# Getting the language to use
@Client.on_callback_query(group=-2)
async def deflang(c, cq):
cq._lang = langs.get_language(os.getenv("LANGUAGE"))
| 19.6 | 56 | 0.755102 | 45 | 294 | 4.844444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.142857 | 294 | 14 | 57 | 21 | 0.829365 | 0.309524 | 0 | 0 | 0 | 0 | 0.040201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
04d06652a7efb578d1962bdee4972afa41617e98 | 2,126 | py | Python | src/file_config/handlers/yaml.py | stephen-bunn/file-config | 9de4d0aacdb7b9bc0069a2da10eb406c88e21103 | [
"0BSD"
] | 7 | 2019-01-10T02:01:05.000Z | 2021-02-21T14:10:28.000Z | src/file_config/handlers/yaml.py | stephen-bunn/file-config | 9de4d0aacdb7b9bc0069a2da10eb406c88e21103 | [
"0BSD"
] | 42 | 2018-10-03T15:15:47.000Z | 2021-12-13T19:52:04.000Z | src/file_config/handlers/yaml.py | stephen-bunn/file-config | 9de4d0aacdb7b9bc0069a2da10eb406c88e21103 | [
"0BSD"
] | 1 | 2019-02-15T12:49:43.000Z | 2019-02-15T12:49:43.000Z | # Copyright (c) 2019 Stephen Bunn <stephen@bunn.io>
# ISC License <https://choosealicense.com/licenses/isc>
from collections import OrderedDict
from ._common import BaseHandler
class YAMLHandler(BaseHandler):
""" The YAML serialization handler.
"""
name = "yaml"
packages = ("yaml",)
options = {... | 32.212121 | 78 | 0.61524 | 233 | 2,126 | 5.549356 | 0.377682 | 0.027069 | 0.020882 | 0.041763 | 0.191802 | 0.191802 | 0.170147 | 0.143852 | 0.08198 | 0.08198 | 0 | 0.014867 | 0.272342 | 2,126 | 65 | 79 | 32.707692 | 0.820944 | 0.483537 | 0 | 0 | 0 | 0 | 0.03303 | 0.023918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
04e7154f348934cac78d204904e5d27232571945 | 18,168 | py | Python | tests/ticketing/test_transactions.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | 1 | 2021-03-14T11:56:47.000Z | 2021-03-14T11:56:47.000Z | tests/ticketing/test_transactions.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | 180 | 2019-09-15T19:52:46.000Z | 2021-11-06T23:48:01.000Z | tests/ticketing/test_transactions.py | bethlakshmi/gbe-divio-djangocms-python2.7 | 6e9b2c894162524bbbaaf73dcbe927988707231d | [
"Apache-2.0"
] | null | null | null | import copy
from mock import patch, Mock
import urllib
from django.core.files import File
from django.core.exceptions import PermissionDenied
from django.shortcuts import get_object_or_404
from django.urls import reverse
from ticketing.models import (
TicketingEvents,
BrownPaperSettings,
EventbriteSettings,... | 44.638821 | 83 | 0.641292 | 1,770 | 18,168 | 6.367797 | 0.133898 | 0.029279 | 0.046846 | 0.027948 | 0.747405 | 0.705616 | 0.684411 | 0.656109 | 0.644308 | 0.634726 | 0 | 0.010482 | 0.259577 | 18,168 | 406 | 84 | 44.748768 | 0.827386 | 0.005284 | 0 | 0.579946 | 0 | 0 | 0.087236 | 0.01406 | 0 | 0 | 0 | 0 | 0.149051 | 1 | 0.04607 | false | 0 | 0.113821 | 0 | 0.162602 | 0.00271 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
04e9345c467b4cd556b5bf96877b1b7bbf75e2df | 235 | py | Python | setup.py | Jhsmit/PyHDX | 34bf653743008508bb14f24ccca21ee39b5b25e3 | [
"MIT"
] | 15 | 2020-10-14T14:15:54.000Z | 2022-03-31T17:55:36.000Z | setup.py | Jhsmit/PyHDX | 34bf653743008508bb14f24ccca21ee39b5b25e3 | [
"MIT"
] | 145 | 2020-10-01T13:32:20.000Z | 2022-03-31T08:31:47.000Z | setup.py | Jhsmit/PyHDX | 34bf653743008508bb14f24ccca21ee39b5b25e3 | [
"MIT"
] | 3 | 2021-03-03T10:57:05.000Z | 2021-05-24T09:11:49.000Z | """The setup script."""
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(),
include_package_data=True
)
| 19.583333 | 43 | 0.748936 | 27 | 235 | 6.296296 | 0.592593 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144681 | 235 | 11 | 44 | 21.363636 | 0.845771 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
04ed512b72b29125fda2c468f7c24dac5e1e16b7 | 1,027 | py | Python | centernet_lightning/datasets/__init__.py | gau-nernst/CenterNet | bd6a21813a63310e3b1c77cefe24077b72d1092a | [
"MIT"
] | 47 | 2021-08-10T09:30:53.000Z | 2022-03-29T07:53:43.000Z | centernet_lightning/datasets/__init__.py | gau-nernst/CenterNet | bd6a21813a63310e3b1c77cefe24077b72d1092a | [
"MIT"
] | 1 | 2021-08-07T13:46:49.000Z | 2021-08-07T13:46:49.000Z | centernet_lightning/datasets/__init__.py | gau-nernst/CenterNet | bd6a21813a63310e3b1c77cefe24077b72d1092a | [
"MIT"
] | 6 | 2021-08-12T02:40:43.000Z | 2022-01-31T16:12:40.000Z | # from .utils import (
# IMAGENET_MEAN, IMAGENET_STD, CollateDetection, CollateTracking,
# get_default_transforms, get_default_detection_transforms, get_default_tracking_transforms
# )
# from .coco import COCODataset
# from .voc import VOCDataset
# from .crowdhuman import CrowdHumanDataset
# from .mot import MO... | 46.681818 | 102 | 0.787731 | 90 | 1,027 | 8.655556 | 0.377778 | 0.077022 | 0.102696 | 0.05905 | 0.336329 | 0.336329 | 0.336329 | 0.336329 | 0.336329 | 0.336329 | 0 | 0 | 0.118793 | 1,027 | 21 | 103 | 48.904762 | 0.860773 | 0.959104 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
04efee032a0d44425bb27f5c80f9f0aee01d3ab5 | 465 | py | Python | tests/utils.py | kurtbrose/ufork | 4674abc5a27a2e3076e28756685512359e8e809f | [
"BSD-3-Clause"
] | 5 | 2016-09-13T05:12:42.000Z | 2021-08-31T11:15:59.000Z | tests/utils.py | skhortiuk/ufork | aa96ae8e903c0e95b0b307e8c738e8455ab477f4 | [
"MIT"
] | 7 | 2016-10-13T01:08:01.000Z | 2021-06-24T19:09:29.000Z | tests/utils.py | skhortiuk/ufork | aa96ae8e903c0e95b0b307e8c738e8455ab477f4 | [
"MIT"
] | 4 | 2017-04-11T20:29:41.000Z | 2020-10-12T15:22:33.000Z | from __future__ import absolute_import
import os
import signal
def check_leaked_workers(arbiter):
leaked_workers = []
for worker in arbiter.workers.values():
try: # check if process still exists
os.kill(worker.pid, signal.SIGKILL)
leaked_workers.append(worker.pid)
exce... | 29.0625 | 71 | 0.670968 | 55 | 465 | 5.472727 | 0.581818 | 0.259136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253763 | 465 | 15 | 72 | 31 | 0.867435 | 0.101075 | 0 | 0 | 0 | 0 | 0.038554 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0.076923 | 0.230769 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
04f50ce80dd5255194e1fa6d4b1af8eddf9cb9d6 | 4,003 | py | Python | tests/operators/vector/test_cos_001.py | laekov/akg | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | [
"Apache-2.0"
] | 1 | 2020-08-31T02:43:43.000Z | 2020-08-31T02:43:43.000Z | tests/operators/vector/test_cos_001.py | laekov/akg | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | [
"Apache-2.0"
] | null | null | null | tests/operators/vector/test_cos_001.py | laekov/akg | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Huawei Technologies Co., Ltd
#
# 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... | 43.51087 | 104 | 0.572071 | 529 | 4,003 | 4.015123 | 0.257089 | 0.101695 | 0.097928 | 0.026365 | 0.348399 | 0.323917 | 0.06968 | 0.06968 | 0.047081 | 0.047081 | 0 | 0.20873 | 0.238821 | 4,003 | 91 | 105 | 43.989011 | 0.488349 | 0.62703 | 0 | 0.076923 | 0 | 0 | 0.107402 | 0.034833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.192308 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6c2d0dc24c606298c21d99b5fb317a520be4673 | 2,139 | py | Python | configuracion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | null | null | null | configuracion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | 7 | 2020-06-05T17:11:32.000Z | 2022-03-11T23:14:00.000Z | configuracion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | 1 | 2016-07-04T18:38:14.000Z | 2016-07-04T18:38:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-09 22:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Actuali... | 31.925373 | 114 | 0.510986 | 181 | 2,139 | 5.872928 | 0.320442 | 0.103481 | 0.117592 | 0.108184 | 0.604892 | 0.604892 | 0.604892 | 0.604892 | 0.604892 | 0.604892 | 0 | 0.013879 | 0.359981 | 2,139 | 66 | 115 | 32.409091 | 0.7626 | 0.031323 | 0 | 0.603448 | 1 | 0 | 0.144998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6cdb079c562be783ee1672f61ed3ddde8daade9 | 408 | py | Python | testing/testing-xarray-pydap.py | jenfly/atmos-read | 0d7315b3ae12b649af298c43bbedbfc5b519afaa | [
"MIT"
] | 3 | 2018-03-30T20:39:52.000Z | 2019-01-02T19:16:08.000Z | testing/testing-xarray-pydap.py | jenfly/atmos-read | 0d7315b3ae12b649af298c43bbedbfc5b519afaa | [
"MIT"
] | null | null | null | testing/testing-xarray-pydap.py | jenfly/atmos-read | 0d7315b3ae12b649af298c43bbedbfc5b519afaa | [
"MIT"
] | null | null | null | import sys
sys.path.append('/home/jwalker/dynamics/python/atmos-tools')
sys.path.append('/home/jwalker/dynamics/python/atmos-read')
import os
import xarray as xray
import pydap
import numpy as np
import collections
import atmos as atm
url = 'http://iridl.ldeo.columbia.edu/SOURCES/.OSU/.PRISM/.monthly/dods'
ds = xray... | 25.5 | 72 | 0.77451 | 65 | 408 | 4.815385 | 0.615385 | 0.044728 | 0.083067 | 0.108626 | 0.27476 | 0.27476 | 0.27476 | 0.27476 | 0 | 0 | 0 | 0.002688 | 0.088235 | 408 | 16 | 73 | 25.5 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.366748 | 0.198044 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b6ce85f9e35e48f81120db106f1180d6d1703043 | 437 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Website Google Map',
'category': 'Website',
'summary': '',
'version': '1.0',
'description': """
Odoo Website Google Map
==========================
""",
'depends': ['base_geoloca... | 23 | 74 | 0.540046 | 43 | 437 | 5.395349 | 0.813953 | 0.116379 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008902 | 0.228833 | 437 | 18 | 75 | 24.277778 | 0.679525 | 0.215103 | 0 | 0 | 0 | 0 | 0.614706 | 0.164706 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6e1e6d3adbca60b66dd0941ce9aa4bd443a43a2 | 278 | py | Python | qcow2tool/sub_scan.py | nishemon/qcow2tool | 4db1516488e598baae9d2e64ba5c0fbea3a68d7b | [
"MIT"
] | 2 | 2018-02-27T07:00:47.000Z | 2020-05-20T09:51:17.000Z | qcow2tool/sub_scan.py | nishemon/qcow2tool | 4db1516488e598baae9d2e64ba5c0fbea3a68d7b | [
"MIT"
] | null | null | null | qcow2tool/sub_scan.py | nishemon/qcow2tool | 4db1516488e598baae9d2e64ba5c0fbea3a68d7b | [
"MIT"
] | 1 | 2019-11-27T09:56:17.000Z | 2019-11-27T09:56:17.000Z | import argparse
def scan(conf, args):
pass
def setup_subcmd(subparsers):
scan_parser = subparsers.add_parser('scan', help='scan qcow2 image dir')
scan_parser.add_argument('srcdir', type=argparse.FileType('r'), nargs=1)
scan_parser.set_defaults(handler=scan)
| 23.166667 | 76 | 0.733813 | 39 | 278 | 5.051282 | 0.666667 | 0.152284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.140288 | 278 | 11 | 77 | 25.272727 | 0.8159 | 0 | 0 | 0 | 0 | 0 | 0.111511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b6e9c145098ed95681098c525d8b180ef7ee86d5 | 554 | py | Python | itaizi/list.py | kaheiseki/itaizi | cb52672475ce074b57bd4244f7d5d1f83b541921 | [
"MIT"
] | null | null | null | itaizi/list.py | kaheiseki/itaizi | cb52672475ce074b57bd4244f7d5d1f83b541921 | [
"MIT"
] | 1 | 2022-03-19T08:51:08.000Z | 2022-03-19T08:51:08.000Z | itaizi/list.py | kaheiseki/itaizi | cb52672475ce074b57bd4244f7d5d1f83b541921 | [
"MIT"
] | null | null | null | itaizi_list = {
"亞":"亜",
"啞":"唖",
"瘂":"唖",
"惡":"悪",
"蘆":"芦",
"鰺":"鯵",
"壓":"圧",
"葊":"庵",
"菴":"庵",
"桉":"案",
"圍":"囲",
"爲":"為",
"醫":"医",
"毓":"育",
"弌":"一",
"壹":"壱",
"稻":"稲",
"囙":"因",
"婣":"姻",
"飮":"飲",
"滛":"淫",
"婬":"淫",
"隱":"隠",
"阴":"陰",
"隂":"陰",
"夘":"卯",
"丒":"丑",
"噓":"... | 10.45283 | 15 | 0.196751 | 99 | 554 | 1.090909 | 0.919192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.277978 | 554 | 53 | 16 | 10.45283 | 0.265 | 0.00361 | 0 | 0 | 0 | 0 | 0.174545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6ed12c39143d84b5ad92a9fccf364f6029a375d | 3,850 | py | Python | tw2/core/jsonify.py | atbinf/tw2.core | 51b124d62954a3d3cd9a89c78d48e534297c9c35 | [
"MIT"
] | 6 | 2015-01-20T13:45:24.000Z | 2022-01-04T18:41:55.000Z | tw2/core/jsonify.py | atbinf/tw2.core | 51b124d62954a3d3cd9a89c78d48e534297c9c35 | [
"MIT"
] | 14 | 2015-07-13T20:20:41.000Z | 2021-10-11T23:59:01.000Z | tw2/core/jsonify.py | atbinf/tw2.core | 51b124d62954a3d3cd9a89c78d48e534297c9c35 | [
"MIT"
] | 5 | 2015-06-10T06:44:56.000Z | 2018-05-16T17:36:07.000Z | """
Copyright (c) 2005-2009 Ben Bangert, James Gardner, Philip Jenvey
and contributors.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must reta... | 42.777778 | 79 | 0.749091 | 542 | 3,850 | 5.311808 | 0.352399 | 0.012157 | 0.015283 | 0.031956 | 0.680792 | 0.680792 | 0.680792 | 0.680792 | 0.680792 | 0.680792 | 0 | 0.006373 | 0.184935 | 3,850 | 89 | 80 | 43.258427 | 0.91109 | 0.814805 | 0 | 0 | 0 | 0 | 0.264012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6f189ef85697f774e1b7b0fd4ad59178117e3ff | 107 | py | Python | es_synonyms/constants.py | agora-team/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | 38 | 2018-09-22T11:54:03.000Z | 2022-01-25T05:42:11.000Z | es_synonyms/constants.py | prashnts/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | null | null | null | es_synonyms/constants.py | prashnts/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | 5 | 2017-08-18T15:36:40.000Z | 2018-08-02T13:36:26.000Z | LEVELS = dict(
ok=0,
warn=1,
error=2)
OPERATORS = dict(
map='=>',
delimiter=',',
comment='#')
| 10.7 | 17 | 0.523364 | 13 | 107 | 4.307692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.233645 | 107 | 9 | 18 | 11.888889 | 0.646341 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6f9606013d32904365396c03ae83f542f67efc6 | 10,618 | py | Python | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | null | null | null | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | null | null | null | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | 1 | 2020-12-10T03:16:05.000Z | 2020-12-10T03:16:05.000Z | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1Virtua... | 32.975155 | 298 | 0.646261 | 1,134 | 10,618 | 5.910935 | 0.15873 | 0.030434 | 0.210055 | 0.015515 | 0.588095 | 0.523497 | 0.464866 | 0.398926 | 0.367597 | 0.367597 | 0 | 0.007225 | 0.283104 | 10,618 | 321 | 299 | 33.077882 | 0.873358 | 0.476455 | 0 | 0.07874 | 1 | 0 | 0.080101 | 0.026165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173228 | false | 0 | 0.023622 | 0 | 0.330709 | 0.007874 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b6fa2f56f4a3f21213075bc4eb29f49e9176bc1f | 278 | py | Python | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 36 | 2020-09-26T08:52:51.000Z | 2022-03-21T21:38:06.000Z | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 11 | 2020-03-22T00:06:34.000Z | 2021-06-22T15:01:20.000Z | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 11 | 2020-09-26T15:27:04.000Z | 2022-03-21T15:42:27.000Z | # -*- coding: utf-8 -*-
"""
Epic Games Store API Wrapper
~~~~~~~~~~~~~~~~~~~
An API wrapper for Epic Games Store
:copyright: (c) 2020 SD4RK
:license: MIT, see LICENSE for more details.
"""
from .api import *
from .models import *
from .exc import EGSException, EGSNotFound
| 16.352941 | 44 | 0.651079 | 37 | 278 | 4.891892 | 0.675676 | 0.099448 | 0.154696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026201 | 0.176259 | 278 | 16 | 45 | 17.375 | 0.764192 | 0.651079 | 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 | 0 | 0 | 0 | 2 |
8e01dbee5a897965e7567344ae6fcd28826e16b6 | 721 | py | Python | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------
# Copyright (c) 2014 Rafael Gonzalez.
#
# See the LICENSE file for details
# ----------------------------------------------------------------------
#--------------------
# System wide imports
# -------------------
from __future__ import divisio... | 17.585366 | 72 | 0.389736 | 49 | 721 | 5.44898 | 0.693878 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011058 | 0.122053 | 721 | 40 | 73 | 18.025 | 0.410743 | 0.669903 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8e18b1fe8693079c206be0f80851013efb31a74f | 2,870 | py | Python | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 14 | 2021-01-13T12:15:03.000Z | 2022-03-20T10:02:11.000Z | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 570 | 2020-09-19T13:37:27.000Z | 2022-03-31T09:14:37.000Z | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 5 | 2021-01-08T16:52:31.000Z | 2022-03-20T10:02:25.000Z | import functools
from datetime import datetime, timedelta
import pytest
from django.utils.timezone import make_aware
from ephios.core.models import AbstractParticipation, Shift
from ephios.core.signup import LocalParticipation, SignupStats, get_conflicting_participations
from ephios.plugins.basesignup.signup.instant ... | 35.432099 | 96 | 0.606272 | 369 | 2,870 | 4.579946 | 0.252033 | 0.170414 | 0.184615 | 0.198817 | 0.385799 | 0.322485 | 0.215976 | 0.215976 | 0.215976 | 0.206509 | 0 | 0.103756 | 0.25784 | 2,870 | 80 | 97 | 35.875 | 0.689671 | 0 | 0 | 0.277778 | 0 | 0 | 0.011498 | 0.011498 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.041667 | false | 0 | 0.097222 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.