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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c61cab3c865673fe6c842b370482d357d813efac | 749 | py | Python | scripts/deploy_esp/seo/error.py | smart-edge-open/open-developer-experience-kits | e33837157ff9b8f255be946e6c24e51bc76d8c88 | [
"Apache-2.0"
] | 3 | 2021-11-23T06:30:33.000Z | 2022-02-23T08:50:55.000Z | scripts/deploy_esp/seo/error.py | smart-edge-open/open-developer-experience-kits | e33837157ff9b8f255be946e6c24e51bc76d8c88 | [
"Apache-2.0"
] | 7 | 2021-10-13T02:59:30.000Z | 2022-03-14T13:06:36.000Z | scripts/deploy_esp/seo/error.py | smart-edge-open/open-developer-experience-kits | e33837157ff9b8f255be946e6c24e51bc76d8c88 | [
"Apache-2.0"
] | 7 | 2021-12-04T04:44:29.000Z | 2022-03-20T02:11:33.000Z | # SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2021-2022 Intel Corporation
""" Error handling related utilities """
import enum
TS_REF = "See the Troubleshooting section of the Intel® Smart Edge Open Provisioning Process document"
class Codes(enum.Enum):
""" Script exit codes """
NO_ERROR = 0
G... | 24.16129 | 102 | 0.684913 | 98 | 749 | 5.091837 | 0.714286 | 0.032064 | 0.048096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027826 | 0.23231 | 749 | 30 | 103 | 24.966667 | 0.838261 | 0.368491 | 0 | 0 | 0 | 0 | 0.206818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c624e476645db0e6cf50b94ea175b922b41212d1 | 608 | py | Python | src/core/config.py | week-with-me/fastapi-graphql | faf0ab428e47f09c1d4d3939c03e98320962a45b | [
"MIT"
] | null | null | null | src/core/config.py | week-with-me/fastapi-graphql | faf0ab428e47f09c1d4d3939c03e98320962a45b | [
"MIT"
] | null | null | null | src/core/config.py | week-with-me/fastapi-graphql | faf0ab428e47f09c1d4d3939c03e98320962a45b | [
"MIT"
] | null | null | null | from functools import lru_cache
from pydantic import BaseSettings, Field
class Settings(BaseSettings):
LEVEL: str
PROJECT_TITLE: str = 'FastAPI with GraphQL and REST'
GRAPHQL_API: str = '/graphql'
REST_API: str = '/rest'
COMMON_API: str = '/api'
class Config:
env_file = ".env"
... | 21.714286 | 63 | 0.677632 | 74 | 608 | 5.378378 | 0.472973 | 0.050251 | 0.065327 | 0.080402 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217105 | 608 | 28 | 64 | 21.714286 | 0.836134 | 0 | 0 | 0 | 0 | 0 | 0.139573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c62683defad49be62b8ff124abb0d5537a0522a7 | 537 | py | Python | src/spaceone/notification/manager/notification_manager.py | jihyungSong/plugin-megazone-sms-notification-protocol | 93c12937137da6f06fd94c1fa152666792bac72b | [
"Apache-2.0"
] | 1 | 2021-06-22T08:00:05.000Z | 2021-06-22T08:00:05.000Z | src/spaceone/notification/manager/notification_manager.py | jihyungSong/plugin-megazone-sms-notification-protocol | 93c12937137da6f06fd94c1fa152666792bac72b | [
"Apache-2.0"
] | 1 | 2022-02-18T03:47:44.000Z | 2022-02-28T01:54:22.000Z | src/spaceone/notification/manager/notification_manager.py | jihyungSong/plugin-megazone-sms-notification-protocol | 93c12937137da6f06fd94c1fa152666792bac72b | [
"Apache-2.0"
] | 1 | 2021-06-22T08:00:07.000Z | 2021-06-22T08:00:07.000Z | from spaceone.core.manager import BaseManager
from spaceone.notification.manager.megazone_sms_manager import MegazoneSMSManager
class NotificationManager(BaseManager):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def dispatch(self, access_key, secret_key, title, body, to, *... | 41.307692 | 87 | 0.752328 | 66 | 537 | 5.757576 | 0.5 | 0.039474 | 0.063158 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143389 | 537 | 13 | 88 | 41.307692 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.033457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c628b43cf9b0fb37bb58af6755daabef9e05b1e2 | 2,636 | py | Python | second/zp/config.py | zhangpur/second.pytorch | a2addd2d9f96126d4089427faf8db9607b413e17 | [
"MIT"
] | null | null | null | second/zp/config.py | zhangpur/second.pytorch | a2addd2d9f96126d4089427faf8db9607b413e17 | [
"MIT"
] | null | null | null | second/zp/config.py | zhangpur/second.pytorch | a2addd2d9f96126d4089427faf8db9607b413e17 | [
"MIT"
] | null | null | null | from second.zp.utils_zp import *
'''
g_data_root='/home/zp/data/nuscene/nuscene'
g_data_name='nuscene-trainval'
g_version='v1.0-trainval'
'''
g_data_root='/home/zp/data/nuscene/nuscene-mini'
g_data_name='nuscene-mini'
g_version='v1.0-mini'
g_DataPrepare_config=g_data_root + '/DataPrepare.config'
g_VoxelGenerator_confi... | 32.54321 | 89 | 0.665402 | 337 | 2,636 | 4.902077 | 0.305638 | 0.108959 | 0.205811 | 0.039952 | 0.134383 | 0.078692 | 0.039952 | 0.039952 | 0 | 0 | 0 | 0.017469 | 0.19651 | 2,636 | 80 | 90 | 32.95 | 0.762512 | 0.010622 | 0 | 0.347826 | 0 | 0 | 0.261809 | 0.054444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.014493 | 0 | 0.101449 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c628d640e4fd06ace30f86bf4dfc6b7cd4a832ef | 32,199 | py | Python | TAO/Firewall/BUZZDIRECTION/BUZZ_1120/LP/Scripts/Lp_UserInterface.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | TAO/Firewall/BUZZDIRECTION/BUZZ_1120/LP/Scripts/Lp_UserInterface.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | null | null | null | TAO/Firewall/BUZZDIRECTION/BUZZ_1120/LP/Scripts/Lp_UserInterface.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z | import cmd
import os
import Lp_FrontEndFunctions
import Lp_CursesDriver
import Lp_XmlParser
import Lp_RpcDispatcher
import string
import sys
import socket
import textwrap
import time
import subprocess
import signal
import platform
import threading
from datetime import datetime
BLOCKER_PORT = 1340
RPC_DISPATCH_POR... | 39.123937 | 123 | 0.497624 | 3,191 | 32,199 | 4.977437 | 0.179568 | 0.023547 | 0.029214 | 0.032299 | 0.262104 | 0.191903 | 0.167978 | 0.15696 | 0.12611 | 0.107473 | 0 | 0.019292 | 0.389888 | 32,199 | 822 | 124 | 39.171533 | 0.789208 | 0.091525 | 0 | 0.307942 | 0 | 0 | 0.1334 | 0.00709 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004862 | 0.025932 | null | null | 0.123177 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c62b6b1f6fc4a4593d05459cd17e5513cab47f19 | 2,205 | py | Python | desktop/core/ext-py/chardet-3.0.4/setup.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 1,511 | 2015-07-01T15:29:03.000Z | 2022-03-30T13:40:05.000Z | desktop/core/ext-py/chardet-3.0.4/setup.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,695 | 2015-07-01T16:01:35.000Z | 2022-03-31T19:17:44.000Z | desktop/core/ext-py/chardet-3.0.4/setup.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 540 | 2015-07-01T15:08:19.000Z | 2022-03-31T12:13:11.000Z | #!/usr/bin/env python
import re
import sys
from setuptools import find_packages, setup
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
# Get version without importing, which avoids dependency issues
def get_version():
with open('cha... | 38.684211 | 78 | 0.56644 | 217 | 2,205 | 5.658986 | 0.557604 | 0.139251 | 0.183225 | 0.105863 | 0.043974 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012862 | 0.294785 | 2,205 | 56 | 79 | 39.375 | 0.776849 | 0.037188 | 0 | 0 | 0 | 0 | 0.445545 | 0.053277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.066667 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c62c54cc76f0fcd254fd1edb608ab1982f3b42e8 | 1,868 | py | Python | src/radical/pilot/agent/launch_method/archive/dplace.py | eirrgang/radical.pilot | ceccd1867dd172935d602ff4c33a5ed4467e0dc8 | [
"MIT"
] | 1 | 2021-11-07T04:51:30.000Z | 2021-11-07T04:51:30.000Z | src/radical/pilot/agent/launch_method/archive/dplace.py | eirrgang/radical.pilot | ceccd1867dd172935d602ff4c33a5ed4467e0dc8 | [
"MIT"
] | null | null | null | src/radical/pilot/agent/launch_method/archive/dplace.py | eirrgang/radical.pilot | ceccd1867dd172935d602ff4c33a5ed4467e0dc8 | [
"MIT"
] | null | null | null |
__copyright__ = "Copyright 2016, http://radical.rutgers.edu"
__license__ = "MIT"
import radical.utils as ru
from .base import LaunchMethod
# ------------------------------------------------------------------------------
#
class DPlace(LaunchMethod):
# -------------------------------------------------------... | 31.661017 | 80 | 0.448608 | 165 | 1,868 | 4.793939 | 0.533333 | 0.069532 | 0.027813 | 0.045512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005124 | 0.268737 | 1,868 | 58 | 81 | 32.206897 | 0.573939 | 0.277837 | 0 | 0 | 0 | 0 | 0.14018 | 0 | 0 | 0 | 0 | 0.017241 | 0.037037 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c62e0e66546d914d98f2f915f0f9cc4cb0a15ccd | 4,271 | py | Python | Archive Formats/fmt_davidsonassoc_res.py | TheDeverEric/noesis-scripts | 0a96ccbcac304c91dc21d252e0e4c6f10e0aaa16 | [
"MIT"
] | null | null | null | Archive Formats/fmt_davidsonassoc_res.py | TheDeverEric/noesis-scripts | 0a96ccbcac304c91dc21d252e0e4c6f10e0aaa16 | [
"MIT"
] | null | null | null | Archive Formats/fmt_davidsonassoc_res.py | TheDeverEric/noesis-scripts | 0a96ccbcac304c91dc21d252e0e4c6f10e0aaa16 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Name: Davidson & Associates *.res
# Purpose: Extract Archive
#
# Author: Eric Van Hoven
#
# Created: 01/09/2017
# Copyright: (c) Eric Van Hoven 2017
# Licence: <MIT License>
#---------------------------... | 36.194915 | 81 | 0.421213 | 469 | 4,271 | 3.795309 | 0.200426 | 0.124719 | 0.110112 | 0.197753 | 0.567978 | 0.546629 | 0.494944 | 0.414045 | 0.361236 | 0.32809 | 0 | 0.052055 | 0.401779 | 4,271 | 117 | 82 | 36.504274 | 0.644618 | 0.105596 | 0 | 0.505376 | 0 | 0 | 0.031199 | 0 | 0 | 0 | 0.009767 | 0 | 0 | 1 | 0.021505 | false | 0 | 0.010753 | 0 | 0.064516 | 0.043011 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c643e8c05150782afcd3003ad500909907489985 | 4,582 | py | Python | capture.py | LEON6156SCOTT/Hand-Cricket | c5d66538446880966964eadc58e39fe03aecd1fc | [
"MIT"
] | 3 | 2021-01-31T04:48:53.000Z | 2021-02-17T05:15:10.000Z | capture.py | dpatel-8112/hand-cricket | e88dff33e2215c5e8a73690ce06b7c86309fd54d | [
"MIT"
] | null | null | null | capture.py | dpatel-8112/hand-cricket | e88dff33e2215c5e8a73690ce06b7c86309fd54d | [
"MIT"
] | 3 | 2021-01-31T04:49:09.000Z | 2021-05-03T15:59:48.000Z | import cv2 as cv
import numpy as np
import matplotlib.pyplot as plt
import os
class Capture:
def Collect(num_samples):
global one,two,three,four,five,none
capture = cv.VideoCapture(0)
capture.set(cv.CAP_PROP_FRAME_WIDTH, 1024)
capture.set(cv.CAP_PROP_FRAME_HEIGHT... | 29.947712 | 103 | 0.410956 | 466 | 4,582 | 3.961373 | 0.332618 | 0.073131 | 0.05688 | 0.065005 | 0.183099 | 0.050921 | 0 | 0 | 0 | 0 | 0 | 0.031181 | 0.503055 | 4,582 | 153 | 104 | 29.947712 | 0.779534 | 0.139895 | 0 | 0.130952 | 0 | 0 | 0.033146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.047619 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c644f0ddcd2301b8bf29ad85fabec4ff05aa6d7d | 576 | py | Python | wagtail_blog/admin.py | pizzapanther/wagtail-blog-app | ba8984a9ab7ff7d91927ba70b85bec40c3dbc025 | [
"MIT"
] | null | null | null | wagtail_blog/admin.py | pizzapanther/wagtail-blog-app | ba8984a9ab7ff7d91927ba70b85bec40c3dbc025 | [
"MIT"
] | null | null | null | wagtail_blog/admin.py | pizzapanther/wagtail-blog-app | ba8984a9ab7ff7d91927ba70b85bec40c3dbc025 | [
"MIT"
] | null | null | null | from wagtail.admin.edit_handlers import FieldPanel
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail_blog.models import BlogPage, BlogIndexPage
# Add your Wagtail panels here.
BlogIndexPage.content_panels = [
FieldPanel('title', classname="full title"),
FieldPanel('headline'),
]
BlogPa... | 26.181818 | 58 | 0.732639 | 59 | 576 | 7.050847 | 0.457627 | 0.079327 | 0.086538 | 0.134615 | 0.269231 | 0.269231 | 0.269231 | 0.269231 | 0 | 0 | 0 | 0 | 0.140625 | 576 | 21 | 59 | 27.428571 | 0.840404 | 0.050347 | 0 | 0.125 | 0 | 0 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d65d0c73215abff7c88e992f9d59aa792ae03fe9 | 968 | py | Python | porcupine/dirs.py | rscales02/porcupine | 91b3c90d19d2291c0a60ddb9dffac931147cde3c | [
"MIT"
] | null | null | null | porcupine/dirs.py | rscales02/porcupine | 91b3c90d19d2291c0a60ddb9dffac931147cde3c | [
"MIT"
] | null | null | null | porcupine/dirs.py | rscales02/porcupine | 91b3c90d19d2291c0a60ddb9dffac931147cde3c | [
"MIT"
] | null | null | null | # TODO: move this to __init__.py? this was in a separate file because
# setup.py used to import porcupine but it doesn't do it anymore
import os
import platform
import appdirs
from porcupine import __author__ as _author
if platform.system() in {'Windows', 'Darwin'}:
# these platforms like path names like "Prog... | 29.333333 | 73 | 0.743802 | 138 | 968 | 5.014493 | 0.586957 | 0.026012 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171488 | 968 | 32 | 74 | 30.25 | 0.862843 | 0.404959 | 0 | 0 | 0 | 0 | 0.066901 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d66645abc0c9dca87c1142c4568eb368bbd055bf | 219 | py | Python | Python3_Mundo1_Aula7/Desafio009.py | AgladeJesus/python | 16e4e5cc43aa987858a4719748708d6d5327d75d | [
"MIT"
] | null | null | null | Python3_Mundo1_Aula7/Desafio009.py | AgladeJesus/python | 16e4e5cc43aa987858a4719748708d6d5327d75d | [
"MIT"
] | null | null | null | Python3_Mundo1_Aula7/Desafio009.py | AgladeJesus/python | 16e4e5cc43aa987858a4719748708d6d5327d75d | [
"MIT"
] | null | null | null | a = int(input('Construa a tabuada do Número: '))
aux = 0
print('*' * 18)
print('Trabuada de {}'.format(a))
print('*' * 18)
while (aux <= 10):
print('{} X {:2} = {:4}'.format(a, aux, (a * aux)))
aux = aux + 1
| 18.25 | 55 | 0.511416 | 34 | 219 | 3.294118 | 0.588235 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.223744 | 219 | 11 | 56 | 19.909091 | 0.6 | 0 | 0 | 0.25 | 0 | 0 | 0.283105 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d667b11e070212e9dadf1c11643176e447a7dce0 | 1,345 | py | Python | custom_components/hue_sync_box/const.py | nitobuendia/hue-sync-box-custom-component | c8496a7776017dbf56dafec6cd9c411829e4a6ef | [
"Apache-2.0"
] | 8 | 2020-06-03T21:49:45.000Z | 2022-01-21T22:20:09.000Z | custom_components/hue_sync_box/const.py | nitobuendia/hue-sync-box-custom-component | c8496a7776017dbf56dafec6cd9c411829e4a6ef | [
"Apache-2.0"
] | 3 | 2020-06-03T12:33:10.000Z | 2020-11-04T01:34:04.000Z | custom_components/hue_sync_box/const.py | nitobuendia/hue-sync-box-custom-component | c8496a7776017dbf56dafec6cd9c411829e4a6ef | [
"Apache-2.0"
] | 2 | 2020-06-06T04:16:57.000Z | 2020-07-10T17:31:33.000Z | """Constants and common variables for Philips Hue Sync Box."""
from homeassistant import const
# Set up.
DOMAIN = 'hue_sync_box'
PLATFORMS = ['remote']
TOKEN_FILE = 'hue-sync-box-token-cache-{}'
# Platform config.
CONF_ENTITY_ID = const.CONF_ENTITY_ID
CONF_IP_ADDRESS = const.CONF_IP_ADDRESS
CONF_NAME = const.CONF_NA... | 29.23913 | 77 | 0.777695 | 189 | 1,345 | 5.121693 | 0.37037 | 0.049587 | 0.041322 | 0.035124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003347 | 0.111524 | 1,345 | 45 | 78 | 29.888889 | 0.806695 | 0.124907 | 0 | 0 | 0 | 0 | 0.23691 | 0.023176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064516 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d667c7e9cffe0e8ebddb738da85243c80be72c1b | 1,566 | py | Python | maskpw.py | harmony5/maskpw | 8672d338af03a7497dcb1bcedf860e26c4371d45 | [
"MIT"
] | null | null | null | maskpw.py | harmony5/maskpw | 8672d338af03a7497dcb1bcedf860e26c4371d45 | [
"MIT"
] | null | null | null | maskpw.py | harmony5/maskpw | 8672d338af03a7497dcb1bcedf860e26c4371d45 | [
"MIT"
] | null | null | null | """A simple library to ask the user for a password. Similar to getpass.getpass() but allows to specify a default mask (like '*' instead of blank)."""
__version__ = "0.5.5"
from sys import platform, stdin
if platform == "win32":
from msvcrt import getch as __getch
def getch():
return __getch().decode... | 25.672131 | 149 | 0.57599 | 189 | 1,566 | 4.656085 | 0.513228 | 0.027273 | 0.040909 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023701 | 0.299489 | 1,566 | 60 | 150 | 26.1 | 0.778487 | 0.203065 | 0 | 0.102564 | 0 | 0 | 0.070218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.205128 | 0.102564 | 0.025641 | 0.25641 | 0.128205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6687922bf42aa533dfa4ed7fba3a27695479b32 | 2,227 | py | Python | evaluation/__init__.py | Leinadh/PeruvianImageGenerator | 9bf11125f4ea3090e217cf15866ec19ce944f9c6 | [
"Apache-2.0"
] | 3 | 2020-06-30T04:44:31.000Z | 2020-06-30T04:44:55.000Z | evaluation/__init__.py | Leinadh/PeruvianImageGenerator | 9bf11125f4ea3090e217cf15866ec19ce944f9c6 | [
"Apache-2.0"
] | null | null | null | evaluation/__init__.py | Leinadh/PeruvianImageGenerator | 9bf11125f4ea3090e217cf15866ec19ce944f9c6 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler
from .utils_tsne import apply_tsne, generate_scatter
def tsne_evaluation(ls_feature_arrays, ls_array_names, pca_components=None, perplexity=30, n_iter=1000, save_image=False, output_dir='./', save_wandb=False, plot_title='t-SNE ev... | 42.018868 | 188 | 0.709026 | 324 | 2,227 | 4.487654 | 0.308642 | 0.071527 | 0.051582 | 0.065337 | 0.169188 | 0.148556 | 0.07978 | 0 | 0 | 0 | 0 | 0.004899 | 0.175123 | 2,227 | 52 | 189 | 42.826923 | 0.786609 | 0.191738 | 0 | 0 | 1 | 0 | 0.047754 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d66bc0464e4375612c9203812ed0b15fe93bf6f0 | 3,094 | py | Python | aiida_ase3/calculations.py | sudarshanv01/aiida-ase-test | 3fb7028a31b81654a1e4502fbb791b215b75ed69 | [
"MIT"
] | null | null | null | aiida_ase3/calculations.py | sudarshanv01/aiida-ase-test | 3fb7028a31b81654a1e4502fbb791b215b75ed69 | [
"MIT"
] | null | null | null | aiida_ase3/calculations.py | sudarshanv01/aiida-ase-test | 3fb7028a31b81654a1e4502fbb791b215b75ed69 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Calculations provided by aiida_ase3.
Register calculations via the "aiida.calculations" entry point in setup.json.
"""
from aiida.common import datastructures
from aiida.engine import CalcJob
from aiida.orm import SinglefileData, Str
from aiida.plugins import DataFactory
DiffParameters = D... | 39.164557 | 124 | 0.678087 | 372 | 3,094 | 5.543011 | 0.430108 | 0.030553 | 0.029098 | 0.036857 | 0.121242 | 0.049952 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.226244 | 3,094 | 78 | 125 | 39.666667 | 0.855472 | 0.314803 | 0 | 0 | 0 | 0 | 0.187313 | 0.040959 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d66df299c7b74899a4ee30dbd5d0c659c580427a | 1,928 | py | Python | pygomas/bdisoldier.py | sfp932705/pygomas | 8cdd7e973b8b4e8de467803c106ec44ca6b8bd03 | [
"MIT"
] | 3 | 2019-06-20T08:55:36.000Z | 2019-07-04T14:10:40.000Z | pygomas/bdisoldier.py | sfp932705/pygomas | 8cdd7e973b8b4e8de467803c106ec44ca6b8bd03 | [
"MIT"
] | null | null | null | pygomas/bdisoldier.py | sfp932705/pygomas | 8cdd7e973b8b4e8de467803c106ec44ca6b8bd03 | [
"MIT"
] | null | null | null | from collections import deque
from .vector import Vector3D
from .bditroop import BDITroop, CLASS_SOLDIER
from .config import BACKUP_SERVICE, DESTINATION, VELOCITY, HEADING
from agentspeak import Actions
from agentspeak import grounded
from agentspeak.stdlib import actions as asp_action
class BDISoldier(BDITroop):
... | 42.844444 | 119 | 0.631743 | 227 | 1,928 | 5.255507 | 0.286344 | 0.201174 | 0.154233 | 0.060352 | 0.134116 | 0.105616 | 0 | 0 | 0 | 0 | 0 | 0.007757 | 0.264523 | 1,928 | 44 | 120 | 43.818182 | 0.833568 | 0.00778 | 0 | 0 | 0 | 0 | 0.005244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.194444 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d670d5aa50884e432ae6064493a3517e18d5845d | 577 | py | Python | saleor/core/migrations/0005_alter_eventdelivery_webhook.py | eanknd/saleor | 08aa724176be00d7aaf654f14e9ae99dd4327f97 | [
"CC-BY-4.0"
] | 1,392 | 2021-10-06T15:54:28.000Z | 2022-03-31T20:50:55.000Z | saleor/core/migrations/0005_alter_eventdelivery_webhook.py | eanknd/saleor | 08aa724176be00d7aaf654f14e9ae99dd4327f97 | [
"CC-BY-4.0"
] | 888 | 2021-10-06T10:48:54.000Z | 2022-03-31T11:00:30.000Z | saleor/core/migrations/0005_alter_eventdelivery_webhook.py | eanknd/saleor | 08aa724176be00d7aaf654f14e9ae99dd4327f97 | [
"CC-BY-4.0"
] | 538 | 2021-10-07T16:21:27.000Z | 2022-03-31T22:58:57.000Z | # Generated by Django 3.2.12 on 2022-04-08 12:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("webhook", "0008_webhook_subscription_query"),
("core", "0004_delete_delivery_without_webhook"),
]
operatio... | 25.086957 | 81 | 0.622184 | 60 | 577 | 5.833333 | 0.633333 | 0.068571 | 0.08 | 0.125714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056738 | 0.266898 | 577 | 22 | 82 | 26.227273 | 0.770686 | 0.079723 | 0 | 0.125 | 1 | 0 | 0.213611 | 0.126654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d673c897a97167e0234738305af2c88177b02037 | 339 | py | Python | ExpenseProject/ExpenseApp/migrations/0016_remove_expensemodel_expenses.py | cs-fullstack-fall-2018/project3-django-psanon19 | 4df4459265c5d0b560dc4fa26b7da2c1b3bf9cff | [
"Apache-2.0"
] | null | null | null | ExpenseProject/ExpenseApp/migrations/0016_remove_expensemodel_expenses.py | cs-fullstack-fall-2018/project3-django-psanon19 | 4df4459265c5d0b560dc4fa26b7da2c1b3bf9cff | [
"Apache-2.0"
] | null | null | null | ExpenseProject/ExpenseApp/migrations/0016_remove_expensemodel_expenses.py | cs-fullstack-fall-2018/project3-django-psanon19 | 4df4459265c5d0b560dc4fa26b7da2c1b3bf9cff | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2018-10-27 04:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ExpenseApp', '0015_auto_20181026_1800'),
]
operations = [
migrations.RemoveField(
model_name='expensemodel',
name='expenses'... | 18.833333 | 50 | 0.60472 | 35 | 339 | 5.742857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128099 | 0.286136 | 339 | 17 | 51 | 19.941176 | 0.702479 | 0.132743 | 0 | 0 | 1 | 0 | 0.181507 | 0.078767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6823a832aea816c2f48825bcf38e6f4d87d49cc | 2,588 | py | Python | b3/guess_type.py | oddy/b3 | 5d295588389ce6873b087ceff24aa949c9f9ffc4 | [
"MIT"
] | 5 | 2020-06-25T02:24:29.000Z | 2020-07-06T15:23:26.000Z | b3/guess_type.py | oddy/b3 | 5d295588389ce6873b087ceff24aa949c9f9ffc4 | [
"MIT"
] | null | null | null | b3/guess_type.py | oddy/b3 | 5d295588389ce6873b087ceff24aa949c9f9ffc4 | [
"MIT"
] | null | null | null |
# Python-Obj to B3-Type guesser for composite_dynamic (pack)
import datetime, decimal
from six import PY2
from b3.datatypes import *
def guess_type(obj):
if isinstance(obj, bytes): # Note this will catch also *str* on python2. If you want unicode out, pass unicode in.
return B3_BYTES
... | 41.741935 | 135 | 0.668083 | 378 | 2,588 | 4.526455 | 0.481481 | 0.056108 | 0.078901 | 0.02104 | 0.024547 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019038 | 0.26932 | 2,588 | 61 | 136 | 42.42623 | 0.885775 | 0.548686 | 0 | 0.137931 | 0 | 0 | 0.044503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d682b75ed77e306a31960fd2f05b18dec13b96bd | 200 | py | Python | problem/01000~09999/02862/2862.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/01000~09999/02862/2862.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/01000~09999/02862/2862.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | def ans(n):
global fib
for i in range(1,99):
if fib[i]==n: return n
if fib[i+1]>n: return ans(n-fib[i])
fib=[1]*100
for i in range(2,100):
fib[i]=fib[i-1]+fib[i-2]
n=int(input())
print(ans(n)) | 18.181818 | 37 | 0.6 | 50 | 200 | 2.4 | 0.36 | 0.2 | 0.1 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08284 | 0.155 | 200 | 11 | 38 | 18.181818 | 0.627219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d684e2a6f1a8b1aae17eeb957d82a419425fab31 | 521 | py | Python | price_picker/models/shop.py | M0r13n/price_picker | aaa4e79496753bc3b61afbde6324868ee5c46aa5 | [
"MIT"
] | 3 | 2019-08-03T16:52:36.000Z | 2020-04-13T10:06:38.000Z | price_picker/models/shop.py | M0r13n/price_picker | aaa4e79496753bc3b61afbde6324868ee5c46aa5 | [
"MIT"
] | null | null | null | price_picker/models/shop.py | M0r13n/price_picker | aaa4e79496753bc3b61afbde6324868ee5c46aa5 | [
"MIT"
] | 1 | 2021-01-02T11:31:25.000Z | 2021-01-02T11:31:25.000Z | from price_picker.common.database import CRUDMixin
from price_picker import db
class Shop(CRUDMixin, db.Model):
""" Shops """
__tablename__ = 'shops'
name = db.Column(db.String(128), primary_key=True, unique=True, default="Zentrale")
@classmethod
def query_factory_all(cls):
# insert defau... | 24.809524 | 87 | 0.658349 | 68 | 521 | 4.720588 | 0.632353 | 0.056075 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007557 | 0.238004 | 521 | 20 | 88 | 26.05 | 0.801008 | 0.076775 | 0 | 0 | 0 | 0 | 0.027426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d6855a43a2ccf3a81f181c755f6b6e16d0e11895 | 7,462 | py | Python | bridgeClient.py | omega3love/BridgeProject | 35ba6d96f584dc11874cb053dda5bed0a47cd347 | [
"FTL"
] | null | null | null | bridgeClient.py | omega3love/BridgeProject | 35ba6d96f584dc11874cb053dda5bed0a47cd347 | [
"FTL"
] | null | null | null | bridgeClient.py | omega3love/BridgeProject | 35ba6d96f584dc11874cb053dda5bed0a47cd347 | [
"FTL"
] | null | null | null | #! /usr/bin/python
import socket
import threading
from time import sleep
import sys, os
import inputbox
import pygame
from bridgeSprites import Button
class userInterfaceWindow():
def __init__(self, screen):
self.screen = screen
self.clients = []
self.userName = inputbox.ask(screen, "Type your name ")
... | 27.535055 | 113 | 0.64728 | 963 | 7,462 | 4.971963 | 0.265836 | 0.01462 | 0.01462 | 0.022974 | 0.091061 | 0.063074 | 0.030911 | 0 | 0 | 0 | 0 | 0.017643 | 0.217636 | 7,462 | 270 | 114 | 27.637037 | 0.802501 | 0.092469 | 0 | 0.19598 | 0 | 0 | 0.08446 | 0.003156 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005025 | 0.035176 | null | null | 0.075377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d685af112d81faa0f634d5f48b27e861166261c2 | 2,812 | py | Python | class3/exercise2.py | befthimi/be_pynet_course | d5e384baf4d8ddbb99e348a66e8b688c82098f59 | [
"Apache-2.0"
] | null | null | null | class3/exercise2.py | befthimi/be_pynet_course | d5e384baf4d8ddbb99e348a66e8b688c82098f59 | [
"Apache-2.0"
] | null | null | null | class3/exercise2.py | befthimi/be_pynet_course | d5e384baf4d8ddbb99e348a66e8b688c82098f59 | [
"Apache-2.0"
] | 1 | 2020-06-03T08:50:12.000Z | 2020-06-03T08:50:12.000Z | #!/usr/bin/env python
"""
Script that graphs interface stats
"""
import time
import snmp_helper
import pygal
intfInOctets_fa4 = '1.3.6.1.2.1.2.2.1.10.5'
intfInUcastPkts_fa4 = '1.3.6.1.2.1.2.2.1.11.5'
intfOutOctets_fa4 = '1.3.6.1.2.1.2.2.1.16.5'
intfOutUcastPkts_fa4 = '1.3.6.1.2.1.2.2.1.17.5'
router1 = ('50.76.53.27', ... | 30.565217 | 97 | 0.698435 | 411 | 2,812 | 4.652068 | 0.364964 | 0.008368 | 0.01046 | 0.012552 | 0.242678 | 0.242678 | 0.242678 | 0.216527 | 0.130753 | 0.130753 | 0 | 0.055118 | 0.141892 | 2,812 | 91 | 98 | 30.901099 | 0.737257 | 0.194168 | 0 | 0 | 0 | 0.078431 | 0.172091 | 0.043393 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d68931defee18e31e403efa7119fcbbcac29b44e | 893 | py | Python | testapp/wagtail_wordpress_processor/management/commands/base_command.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_processor/management/commands/base_command.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_processor/management/commands/base_command.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | from django.core.management import BaseCommand
from wagtail_wordpress_importer.utils import spinner
class BaseProcessCommand(BaseCommand):
def output_start(self, message, newline=''):
self.stdout.write(message, ending=newline)
def output_message_success(self, message, newline=''):
self.stdou... | 31.892857 | 71 | 0.6271 | 100 | 893 | 5.56 | 0.41 | 0.080935 | 0.134892 | 0.158273 | 0.404676 | 0.404676 | 0.151079 | 0.151079 | 0 | 0 | 0 | 0 | 0.227324 | 893 | 27 | 72 | 33.074074 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.045913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d68a536157f9fd7d4662b09af86a14b1f0e44990 | 5,503 | py | Python | Labs/LineSweep/plots.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 10 | 2016-10-18T19:54:25.000Z | 2021-10-09T20:12:38.000Z | Labs/LineSweep/plots.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | null | null | null | Labs/LineSweep/plots.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 2 | 2017-05-14T16:07:59.000Z | 2020-06-20T09:05:06.000Z | # This plotting file is rather old code.
# It generates a full set of plots illustrating the two different linesweep
# algorithms on randomly chosen points.
# It should be updated at some point so that the random number generator
# is seeded with some specifically chosen seed that generates plots that
# illustrate the ... | 36.443709 | 118 | 0.580774 | 871 | 5,503 | 3.638347 | 0.237658 | 0.022089 | 0.03976 | 0.044178 | 0.429157 | 0.353424 | 0.292521 | 0.276112 | 0.238877 | 0.225623 | 0 | 0.030887 | 0.264583 | 5,503 | 150 | 119 | 36.686667 | 0.752162 | 0.242232 | 0 | 0.289474 | 1 | 0 | 0.018344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04386 | false | 0 | 0.04386 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d68d7b1197ee7c4dce2f2971b053d4887af55db6 | 955 | py | Python | setup.py | eshandas/simple_django_logger | a6d15ca1c1ded414ed8fe5cc0c4ca0c20a846582 | [
"MIT"
] | null | null | null | setup.py | eshandas/simple_django_logger | a6d15ca1c1ded414ed8fe5cc0c4ca0c20a846582 | [
"MIT"
] | 5 | 2020-02-11T23:15:07.000Z | 2021-06-10T20:52:39.000Z | setup.py | eshandas/simple_django_logger | a6d15ca1c1ded414ed8fe5cc0c4ca0c20a846582 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
# Read more here: https://pypi.org/project/twine/
setup(
name='simple_django_logger',
# packages=[
# 'simple_django_logger', # this must be the same as the name above
# 'simple_django_logger.middleware',
# 'simple_django_logger.migrations'],
... | 35.37037 | 115 | 0.657592 | 126 | 955 | 4.833333 | 0.547619 | 0.137931 | 0.17734 | 0.055829 | 0.141215 | 0.141215 | 0.141215 | 0.141215 | 0 | 0 | 0 | 0.023438 | 0.195812 | 955 | 26 | 116 | 36.730769 | 0.769531 | 0.273298 | 0 | 0 | 0 | 0.05 | 0.437956 | 0.10219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d692f8f38cc997b2f8bfdb6f4463f32491f25ba9 | 639 | py | Python | rotas/serializers.py | fchevitarese/routecalc | 4222d61511885acaad58595689af05eef5ef4218 | [
"MIT"
] | null | null | null | rotas/serializers.py | fchevitarese/routecalc | 4222d61511885acaad58595689af05eef5ef4218 | [
"MIT"
] | null | null | null | rotas/serializers.py | fchevitarese/routecalc | 4222d61511885acaad58595689af05eef5ef4218 | [
"MIT"
] | null | null | null | # encoding: utf-8
from rest_framework import serializers
from .models import Rota
class RotaSerializer(serializers.ModelSerializer):
class Meta:
model = Rota
fields = ('nome', 'origem', 'destino', 'distancia',
'created', 'updated')
class MenorRotaSerializer(serializers.Serializ... | 29.045455 | 59 | 0.699531 | 56 | 639 | 7.946429 | 0.571429 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001949 | 0.197183 | 639 | 21 | 60 | 30.428571 | 0.865497 | 0.023474 | 0 | 0 | 0 | 0 | 0.064309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d6986e27cf802a59743b1e891aaab14d1df9b133 | 2,715 | py | Python | backend/src/msg/jsonMsg.py | frost917/customer-manager | d7d4c16f99e1548989bff85c20c307a844711eda | [
"Apache-2.0"
] | null | null | null | backend/src/msg/jsonMsg.py | frost917/customer-manager | d7d4c16f99e1548989bff85c20c307a844711eda | [
"Apache-2.0"
] | 1 | 2021-09-18T05:56:45.000Z | 2021-09-18T05:56:45.000Z | backend/src/msg/jsonMsg.py | frost917/customer-manager | d7d4c16f99e1548989bff85c20c307a844711eda | [
"Apache-2.0"
] | null | null | null | import json
from datetime import datetime
# Dict in List
def authFailedJson():
payload = dict()
convDict = dict()
convList = list()
convDict['error'] = "AuthFailed"
convDict['msg'] = "Authentication Failed!"
convList.append(convDict)
payload['failed'] = convList
return str(json.dumps... | 22.438017 | 63 | 0.632413 | 274 | 2,715 | 6.270073 | 0.215328 | 0.064028 | 0.11525 | 0.151921 | 0.583236 | 0.583236 | 0.583236 | 0.583236 | 0.4156 | 0.4156 | 0 | 0 | 0.220626 | 2,715 | 121 | 64 | 22.438017 | 0.811437 | 0.00442 | 0 | 0.62069 | 0 | 0 | 0.17475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d69d1427809e16ff71adf65c1d277b74efb15e53 | 537 | py | Python | village_api/migrations/0008_alter_relationship_people.py | roseDickinson/dnd-village-api | ddcaf2ab9c1d496f150160ef8638526634752368 | [
"MIT"
] | 1 | 2021-08-10T21:40:35.000Z | 2021-08-10T21:40:35.000Z | village_api/migrations/0008_alter_relationship_people.py | roseDickinson/dnd-village-api | ddcaf2ab9c1d496f150160ef8638526634752368 | [
"MIT"
] | null | null | null | village_api/migrations/0008_alter_relationship_people.py | roseDickinson/dnd-village-api | ddcaf2ab9c1d496f150160ef8638526634752368 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-30 14:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("village_api", "0007_auto_20210830_1327"),
]
operations = [
migrations.AlterField(
model_name="relationship",
name="p... | 23.347826 | 51 | 0.56797 | 51 | 537 | 5.823529 | 0.784314 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085635 | 0.325885 | 537 | 22 | 52 | 24.409091 | 0.734807 | 0.083799 | 0 | 0.125 | 1 | 0 | 0.210204 | 0.046939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6b9635d03c20a241e2abb35126dd57faba06e46 | 811 | py | Python | 296-Best-Meeting-Point/Python/Solution01.py | Eroica-cpp/LeetCode | 07276bd11558f3d0e32bec768b09e886de145f9e | [
"CC-BY-3.0",
"MIT"
] | 7 | 2015-05-05T22:21:30.000Z | 2021-03-13T04:04:15.000Z | 296-Best-Meeting-Point/Python/Solution01.py | Eroica-cpp/LeetCode | 07276bd11558f3d0e32bec768b09e886de145f9e | [
"CC-BY-3.0",
"MIT"
] | null | null | null | 296-Best-Meeting-Point/Python/Solution01.py | Eroica-cpp/LeetCode | 07276bd11558f3d0e32bec768b09e886de145f9e | [
"CC-BY-3.0",
"MIT"
] | 2 | 2018-12-26T08:13:25.000Z | 2020-07-18T20:18:24.000Z | #!/usr/bin/python
"""
https://leetcode.com/problems/best-meeting-point/
Time O(n^2), Space O(n)
"""
class Solution(object):
def minTotalDistance(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
if not grid or not grid[0]: return
addr = []
m, n =... | 25.34375 | 69 | 0.491985 | 133 | 811 | 2.909774 | 0.368421 | 0.046512 | 0.046512 | 0.041344 | 0.093023 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 0.048913 | 0.319359 | 811 | 32 | 70 | 25.34375 | 0.652174 | 0.046856 | 0 | 0 | 0 | 0 | 0.012924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6ba5be930a7a3f8ad3c3a97a5f88e0d91793099 | 2,056 | py | Python | message_models.py | stefanSuYiGuo/FlaskAPI | b7a194391d481ffdcd542d24eedde3537f9d782e | [
"MIT"
] | null | null | null | message_models.py | stefanSuYiGuo/FlaskAPI | b7a194391d481ffdcd542d24eedde3537f9d782e | [
"MIT"
] | null | null | null | message_models.py | stefanSuYiGuo/FlaskAPI | b7a194391d481ffdcd542d24eedde3537f9d782e | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
from flask import Flask
from datetime import datetime
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///" + "E:/Moses/College_Life/Year3_2/Software_Development_Workshop_III/Code/practice1/second.db"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
app... | 33.704918 | 145 | 0.701362 | 278 | 2,056 | 4.97482 | 0.302158 | 0.092552 | 0.115691 | 0.078091 | 0.433839 | 0.433839 | 0.366594 | 0.276934 | 0.253073 | 0.201012 | 0 | 0.009169 | 0.151265 | 2,056 | 60 | 146 | 34.266667 | 0.783381 | 0.082198 | 0 | 0.230769 | 0 | 0 | 0.157388 | 0.075482 | 0.025641 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.076923 | 0 | 0.820513 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6bbce0090eceace8041216de150e51ec2e8444c | 3,786 | py | Python | Step10_test_ensemble.py | lyoshiwo/resume_job_matching | 3abc59d5011abc96d0aba96d35fe8ddebd5dda25 | [
"Apache-2.0"
] | 37 | 2016-07-22T03:52:54.000Z | 2021-08-30T13:44:01.000Z | Step10_test_ensemble.py | ezcareer/resume_job_matching | 3abc59d5011abc96d0aba96d35fe8ddebd5dda25 | [
"Apache-2.0"
] | 3 | 2017-02-09T22:58:06.000Z | 2019-07-10T01:42:09.000Z | Step10_test_ensemble.py | ezcareer/resume_job_matching | 3abc59d5011abc96d0aba96d35fe8ddebd5dda25 | [
"Apache-2.0"
] | 26 | 2017-01-08T05:23:10.000Z | 2021-12-20T10:18:42.000Z | # encoding=utf8
import numpy as np
from sklearn import cross_validation
import pandas as pd
import os
import time
from keras.models import Sequential, model_from_json
import util
def score_lists(list_1, list_2):
count = 0
total = len(list_1)
print total
for i in range(total):
if list_1[i] == l... | 38.632653 | 94 | 0.666931 | 602 | 3,786 | 3.878738 | 0.252492 | 0.057816 | 0.041113 | 0.051392 | 0.369165 | 0.369165 | 0.307495 | 0.214989 | 0.181585 | 0.181585 | 0 | 0.035761 | 0.194929 | 3,786 | 97 | 95 | 39.030928 | 0.730315 | 0.075806 | 0 | 0.051948 | 0 | 0 | 0.063396 | 0.013483 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6c65e57e0ed098807d853ba6fc1c8062316ebe8 | 3,437 | py | Python | helper/markup.py | sushi-irc/nigiri | 9e1137a80f350ea05ae76df93061d3dc188e1ba7 | [
"BSD-2-Clause"
] | 1 | 2017-07-24T19:31:19.000Z | 2017-07-24T19:31:19.000Z | helper/markup.py | sushi-irc/nigiri | 9e1137a80f350ea05ae76df93061d3dc188e1ba7 | [
"BSD-2-Clause"
] | null | null | null | helper/markup.py | sushi-irc/nigiri | 9e1137a80f350ea05ae76df93061d3dc188e1ba7 | [
"BSD-2-Clause"
] | 1 | 2019-01-31T19:16:16.000Z | 2019-01-31T19:16:16.000Z |
def get_occurances(haystack,needle,l=[],start=0,end=-1):
""" return a list with all indices of needle in haystack """
i = haystack.find(needle,start)
if i == -1: return l
return get_occurances(haystack,needle,l+[i],i+1)
def tuple_to_list(t):
""" Convert a markup tuple:
(text,[(color,pos),...])
To a markup ... | 24.034965 | 70 | 0.595578 | 535 | 3,437 | 3.747664 | 0.214953 | 0.053865 | 0.029925 | 0.03591 | 0.345636 | 0.247382 | 0.247382 | 0.172569 | 0.172569 | 0.140648 | 0 | 0.013181 | 0.183299 | 3,437 | 142 | 71 | 24.204225 | 0.701104 | 0.011347 | 0 | 0.293478 | 0 | 0 | 0.156299 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | null | null | 0 | 0 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6cba1917ffb02b7cd3b93a824a1ac1db2f02038 | 1,719 | py | Python | UE4Parse/Provider/Vfs/DirectoryStorageProvider.py | zbx911/pyUE4Parse | eb30d27a4341ad68a7104458a0fdfae6a360d153 | [
"MIT"
] | 13 | 2021-06-09T09:21:00.000Z | 2022-03-30T22:13:24.000Z | UE4Parse/Provider/Vfs/DirectoryStorageProvider.py | zbx911/pyUE4Parse | eb30d27a4341ad68a7104458a0fdfae6a360d153 | [
"MIT"
] | 3 | 2021-09-04T22:23:02.000Z | 2022-03-04T09:45:45.000Z | UE4Parse/Provider/Vfs/DirectoryStorageProvider.py | zbx911/pyUE4Parse | eb30d27a4341ad68a7104458a0fdfae6a360d153 | [
"MIT"
] | 6 | 2021-09-02T10:28:21.000Z | 2022-03-30T22:13:37.000Z | from functools import singledispatchmethod
from typing import Union, TYPE_CHECKING, List, Dict, Optional, Tuple
from .DirectoryStorage import DirectoryStorage
from ..Common import GameFile
from ...IoObjects.FImportedPackage import FPackageId
if TYPE_CHECKING:
from ...IO import FFileIoStoreReader
from ...PakFi... | 31.833333 | 105 | 0.662013 | 191 | 1,719 | 5.832461 | 0.308901 | 0.06912 | 0.043088 | 0.057451 | 0.276481 | 0.276481 | 0.248654 | 0.216338 | 0.216338 | 0.181329 | 0 | 0 | 0.260617 | 1,719 | 53 | 106 | 32.433962 | 0.876475 | 0 | 0 | 0.309524 | 0 | 0 | 0.015707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.547619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d6cd6aea5b21781c6a52e0b4e89c0caaee5c73ac | 1,389 | py | Python | almoxarifado/migrations/0013_auto_20171009_1843.py | rvmoura96/projeto-almoxarifado | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | [
"MIT"
] | 1 | 2019-05-24T17:39:01.000Z | 2019-05-24T17:39:01.000Z | almoxarifado/migrations/0013_auto_20171009_1843.py | rvmoura96/projeto-almoxarifado | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | [
"MIT"
] | null | null | null | almoxarifado/migrations/0013_auto_20171009_1843.py | rvmoura96/projeto-almoxarifado | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-09 21:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('almoxarifado', '0012_auto_20171009_1821'),
]
operations = [
m... | 42.090909 | 158 | 0.590353 | 126 | 1,389 | 6.373016 | 0.563492 | 0.0934 | 0.082192 | 0.064757 | 0.234122 | 0.234122 | 0.234122 | 0.234122 | 0.234122 | 0.234122 | 0 | 0.044487 | 0.25558 | 1,389 | 32 | 159 | 43.40625 | 0.732108 | 0.048956 | 0 | 0.08 | 1 | 0 | 0.208398 | 0.017885 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6d5ff78a1c2500ab9f3c80b9b788fe32710508f | 1,815 | py | Python | taiwanpeaks/peaks/models.py | bhomnick/taiwanpeaks | 0ac3aee6493bc5e982646efd4afad5ede5db005f | [
"MIT"
] | 1 | 2020-11-17T15:17:01.000Z | 2020-11-17T15:17:01.000Z | taiwanpeaks/peaks/models.py | bhomnick/taiwanpeaks | 0ac3aee6493bc5e982646efd4afad5ede5db005f | [
"MIT"
] | 16 | 2020-12-04T11:05:25.000Z | 2020-12-05T09:00:05.000Z | taiwanpeaks/peaks/models.py | bhomnick/taiwanpeaks | 0ac3aee6493bc5e982646efd4afad5ede5db005f | [
"MIT"
] | null | null | null | from django.db import models
from common import constants
class Peak(models.Model):
name = models.CharField(max_length=255)
slug = models.SlugField(unique=True)
name_zh = models.CharField(max_length=255, verbose_name='Name (中文)', help_text=(
"This peak's Chinese name, i.e. 南湖大山"))
height = mo... | 40.333333 | 114 | 0.704683 | 247 | 1,815 | 5.02834 | 0.445344 | 0.057971 | 0.057971 | 0.077295 | 0.236715 | 0.193237 | 0.193237 | 0.125604 | 0.125604 | 0.125604 | 0 | 0.013559 | 0.187328 | 1,815 | 44 | 115 | 41.25 | 0.828475 | 0.002755 | 0 | 0.088235 | 0 | 0.029412 | 0.257743 | 0.016593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.088235 | 0.676471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d6d6fb750180ece205973e32db09b105c80ac154 | 514 | py | Python | src/collect_results_mutable_bitmap.py | jermp/mutable_rank_select | 0b7d59d283cc752eac3778548672acdf7823d325 | [
"MIT"
] | 22 | 2020-09-29T07:40:07.000Z | 2022-02-17T23:45:28.000Z | src/collect_results_mutable_bitmap.py | kiminh/mutable_rank_select | 25eeb4071bd198e35e09359a75fe3fbc06f34b21 | [
"MIT"
] | null | null | null | src/collect_results_mutable_bitmap.py | kiminh/mutable_rank_select | 25eeb4071bd198e35e09359a75fe3fbc06f34b21 | [
"MIT"
] | 3 | 2020-09-29T10:38:38.000Z | 2021-07-26T03:20:22.000Z | import sys, os
output_filename = sys.argv[1]
types = [
"avx2_256_a",
"avx512_256_a",
"avx2_256_b",
"avx512_256_b",
"avx2_512_a",
"avx512_512_a",
"avx2_512_b",
"avx512_512_b",
"avx2_256_c",
"avx512_256_c"]
for t in types:
os.system("./perf_mutable_bitmap " + t + " flip 0.3 2>> " + output_filename + ".flip.txt")
... | 23.363636 | 98 | 0.651751 | 85 | 514 | 3.588235 | 0.341176 | 0.183607 | 0.118033 | 0.186885 | 0.442623 | 0.27541 | 0.190164 | 0 | 0 | 0 | 0 | 0.138568 | 0.157588 | 514 | 21 | 99 | 24.47619 | 0.56582 | 0 | 0 | 0 | 0 | 0 | 0.484436 | 0.122568 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6daa8f5ccd7dce93b9ead99394ae7a2a57bf95b | 3,941 | py | Python | Flask_security/flask_1.py | SAVE-POlNT/Flask_shared_auth | 95374bedfd914f7cbe34424619409ddc7e2ecb95 | [
"MIT"
] | 2 | 2020-10-27T14:56:39.000Z | 2021-12-07T13:00:59.000Z | Flask_security/flask_1.py | SAVE-POlNT/Flask_shared_auth | 95374bedfd914f7cbe34424619409ddc7e2ecb95 | [
"MIT"
] | null | null | null | Flask_security/flask_1.py | SAVE-POlNT/Flask_shared_auth | 95374bedfd914f7cbe34424619409ddc7e2ecb95 | [
"MIT"
] | null | null | null | from flask import Flask, redirect, url_for, render_template, request, session, url_for, flash
from captchacreater import create_image_captcha
from sendmail_func import sendMail, validMail
from TokenGenerator import getTokenUser, setToken, ChangeTokenUser
from mysqlhostedwithpython import getUserPassword, setUserDat... | 37.179245 | 146 | 0.598325 | 456 | 3,941 | 5.107456 | 0.302632 | 0.072134 | 0.094461 | 0.048089 | 0.270502 | 0.227565 | 0.091885 | 0.091885 | 0 | 0 | 0 | 0.018623 | 0.236996 | 3,941 | 105 | 147 | 37.533333 | 0.755903 | 0.00609 | 0 | 0.096386 | 0 | 0 | 0.163622 | 0.006179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.144578 | 0.144578 | 0.012048 | 0.349398 | 0.096386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6de9c1169e887eca336cb92869b544db4b46ed3 | 480 | py | Python | tripcore/inventory/migrations/0002_fixture_source.py | robotlightsyou/trip | 5a58babe399febb476cfb42a530ead20937597fd | [
"MIT"
] | null | null | null | tripcore/inventory/migrations/0002_fixture_source.py | robotlightsyou/trip | 5a58babe399febb476cfb42a530ead20937597fd | [
"MIT"
] | null | null | null | tripcore/inventory/migrations/0002_fixture_source.py | robotlightsyou/trip | 5a58babe399febb476cfb42a530ead20937597fd | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-17 20:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='fixture',
name='source',
... | 25.263158 | 154 | 0.597917 | 49 | 480 | 5.795918 | 0.755102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058011 | 0.245833 | 480 | 18 | 155 | 26.666667 | 0.726519 | 0.09375 | 0 | 0 | 1 | 0 | 0.198614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6e6ceef6e599caf236cd792e310118de765b012 | 474 | py | Python | project_name/settings/prod.py | ar4s/django-good-settings-template | 9f465361a0b3aeb08bf4f0ee2690a5f0952bbdd3 | [
"MIT"
] | 3 | 2016-10-15T18:52:09.000Z | 2017-02-04T07:07:15.000Z | project_name/settings/prod.py | ar4s/django-good-settings-template | 9f465361a0b3aeb08bf4f0ee2690a5f0952bbdd3 | [
"MIT"
] | null | null | null | project_name/settings/prod.py | ar4s/django-good-settings-template | 9f465361a0b3aeb08bf4f0ee2690a5f0952bbdd3 | [
"MIT"
] | null | null | null | from {{ project_name }}.settings.base import * # noqa
DEBUG = False
ALLOWED_HOSTS = ['{{ project_name }}.local']
ROOT_URLCONF = '{{ project_name }}.urls'
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True
X_FRAME_OPTIONS = 'DENY'
SECURE_SSL_REDIRECT = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_CONTENT_TYPE_NO... | 23.7 | 67 | 0.7827 | 65 | 474 | 5.276923 | 0.661538 | 0.09621 | 0.093294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116034 | 474 | 19 | 68 | 24.947368 | 0.818616 | 0.008439 | 0 | 0 | 0 | 0 | 0.209402 | 0.100427 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6e90ca78df35fc9a551f63bf42adf35795859be | 1,294 | py | Python | pagapp/service_pages/forms.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | pagapp/service_pages/forms.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | pagapp/service_pages/forms.py | eugeneandrienko/PyArtistsGallery | b75114955859d45d9dfb5c901213f25a6e09f488 | [
"MIT"
] | null | null | null | """Forms, which using in "first run" page."""
from flask_wtf import Form
from wtforms import SubmitField, StringField, PasswordField, TextAreaField
from wtforms.validators import DataRequired, EqualTo
class FirstRunForm(Form):
"""First-run form.
Form, which using in web page, which
shows at first run of... | 32.35 | 74 | 0.647604 | 114 | 1,294 | 7.315789 | 0.403509 | 0.131894 | 0.158273 | 0.095923 | 0.105516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001036 | 0.25425 | 1,294 | 39 | 75 | 33.179487 | 0.863212 | 0.098918 | 0 | 0.137931 | 0 | 0 | 0.24606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.310345 | 0.103448 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6f548e7f01a1da4ed24bbe693aac24e3c441cd0 | 11,940 | py | Python | CLI.py | Cryptoc1/CMS | 05f867b2cc4b0d40684059b600e35b479c107baf | [
"MIT"
] | 1 | 2015-03-24T05:21:54.000Z | 2015-03-24T05:21:54.000Z | CLI.py | Cryptoc1/CMS | 05f867b2cc4b0d40684059b600e35b479c107baf | [
"MIT"
] | 4 | 2015-01-27T17:53:23.000Z | 2015-02-01T19:54:30.000Z | CLI.py | Cryptoc1/CMS | 05f867b2cc4b0d40684059b600e35b479c107baf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from CMS import CMS
import sys
import os
# Initiate the CMS Class
manager = CMS(hostname="localhost", username="test", password="test123", db="CMS")
# Misc strings
tchar = ": "
working = tchar + "Working..."
# Checks if user input is an in-program command
def verify_input(cmd):
new_cmd = st... | 42.795699 | 217 | 0.552094 | 1,507 | 11,940 | 4.305906 | 0.143331 | 0.104793 | 0.046078 | 0.033287 | 0.514255 | 0.458776 | 0.411003 | 0.37186 | 0.337648 | 0.335799 | 0 | 0.00049 | 0.315662 | 11,940 | 278 | 218 | 42.94964 | 0.793661 | 0.056114 | 0 | 0.517928 | 0 | 0.011952 | 0.326048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003984 | 0.011952 | null | null | 0.326693 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6fc3049a49a39b90a00f7d33f6531de3096f159 | 500 | py | Python | boards/migrations/0002_board_category.py | AxioDL/axiodl-www | f5011f3ee3ad8e45b72884c6ea238fb4cea7929c | [
"MIT"
] | null | null | null | boards/migrations/0002_board_category.py | AxioDL/axiodl-www | f5011f3ee3ad8e45b72884c6ea238fb4cea7929c | [
"MIT"
] | 7 | 2021-03-18T23:27:44.000Z | 2022-03-11T23:52:23.000Z | boards/migrations/0002_board_category.py | AxioDL/axiodl-www | f5011f3ee3ad8e45b72884c6ea238fb4cea7929c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-09 17:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('boards', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='board',
... | 25 | 144 | 0.642 | 59 | 500 | 5.372881 | 0.661017 | 0.07571 | 0.088328 | 0.138801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049608 | 0.234 | 500 | 19 | 145 | 26.315789 | 0.778068 | 0.09 | 0 | 0 | 1 | 0 | 0.101545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6fd19e1a3336009f28a9d61374e30c956f808cc | 16,569 | py | Python | design.py | ilyxych96/ScanEP | daca880fcf9f186dd175b82fa8e1c80776c9e6e6 | [
"MIT"
] | 2 | 2020-08-16T06:39:18.000Z | 2021-05-03T11:39:32.000Z | design.py | ilyxych96/ScanEP | daca880fcf9f186dd175b82fa8e1c80776c9e6e6 | [
"MIT"
] | 2 | 2022-01-13T03:47:51.000Z | 2022-03-12T00:57:46.000Z | design.py | ilyxych96/ScanEP | daca880fcf9f186dd175b82fa8e1c80776c9e6e6 | [
"MIT"
] | 1 | 2020-08-25T00:20:27.000Z | 2020-08-25T00:20:27.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'design.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | 63.482759 | 290 | 0.640775 | 1,774 | 16,569 | 5.82018 | 0.085118 | 0.08891 | 0.113898 | 0.128136 | 0.557094 | 0.291913 | 0.01724 | 0 | 0 | 0 | 0 | 0.044288 | 0.176897 | 16,569 | 260 | 291 | 63.726923 | 0.712788 | 0.010864 | 0 | 0.008097 | 1 | 0 | 0.162821 | 0.071269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008097 | false | 0 | 0.004049 | 0 | 0.016194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba33640b845fe1710edd1263fa90d2214da751b9 | 9,719 | py | Python | main.py | steviezhang/COG403-Project | 4f7ba3e6ab760c219a4722c21350711ab072f82f | [
"Apache-1.1"
] | null | null | null | main.py | steviezhang/COG403-Project | 4f7ba3e6ab760c219a4722c21350711ab072f82f | [
"Apache-1.1"
] | null | null | null | main.py | steviezhang/COG403-Project | 4f7ba3e6ab760c219a4722c21350711ab072f82f | [
"Apache-1.1"
] | null | null | null | import numpy as np
import re
from nltk import Tree
from nltk import induce_pcfg
from nltk import Nonterminal
from nltk.parse.generate import generate
epsilon = 1e-20
class corpus:
# stores all sentence forms in data
def __init__(self):
self.sentence_forms = {}
for i in range(6): # init si... | 31.555195 | 146 | 0.564461 | 1,230 | 9,719 | 4.327642 | 0.184553 | 0.083036 | 0.073455 | 0.047342 | 0.236333 | 0.201014 | 0.166823 | 0.166823 | 0.151418 | 0.134135 | 0 | 0.018125 | 0.307439 | 9,719 | 307 | 147 | 31.65798 | 0.772694 | 0.080255 | 0 | 0.292887 | 1 | 0 | 0.036343 | 0.003029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054393 | false | 0 | 0.029289 | 0.008368 | 0.133891 | 0.041841 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba37657616231320b90e3ca5582011ae51d8375d | 2,877 | py | Python | Editor/pini/ATL.py | RangHo/pini-engine | e1407724de32a433b7b46e0ee2469240b70d960b | [
"MIT"
] | null | null | null | Editor/pini/ATL.py | RangHo/pini-engine | e1407724de32a433b7b46e0ee2469240b70d960b | [
"MIT"
] | null | null | null | Editor/pini/ATL.py | RangHo/pini-engine | e1407724de32a433b7b46e0ee2469240b70d960b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import math
M_PI_2 = math.pi/2.0
M_PI = math.pi
def interpolation(t,o1,o2):
return round(( 1 - t )*o1 + t*o2,2)
def linear(time) :
return time
def sineEaseIn(time):
return -1 * math.cos(time * M_PI_2) + 1
def sineEaseOut(time) :
... | 21.154412 | 97 | 0.693083 | 444 | 2,877 | 4.31982 | 0.252252 | 0.04171 | 0.050052 | 0.065693 | 0.160584 | 0.09854 | 0.055787 | 0.021898 | 0 | 0 | 0 | 0.016218 | 0.121307 | 2,877 | 135 | 98 | 21.311111 | 0.742484 | 0.016336 | 0 | 0.072072 | 0 | 0 | 0.026051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18018 | false | 0 | 0.027027 | 0.108108 | 0.342342 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ba3949b07159d8a545e8c858e6970f71b387618c | 554 | py | Python | setup.py | stweil/tensorflow_gpu_to_tensorflow | f0e7a644aca970e98fa5b1ae1e46fd15e2aedc28 | [
"Apache-2.0"
] | 2 | 2020-04-23T09:30:39.000Z | 2020-10-08T17:44:07.000Z | setup.py | stweil/tensorflow_gpu_to_tensorflow | f0e7a644aca970e98fa5b1ae1e46fd15e2aedc28 | [
"Apache-2.0"
] | null | null | null | setup.py | stweil/tensorflow_gpu_to_tensorflow | f0e7a644aca970e98fa5b1ae1e46fd15e2aedc28 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Dummy Python package for tensorflow-gpu
"""
import codecs
import setuptools
setuptools.setup(
name='tensorflow_gpu',
version='1.15.2',
description='dummy for tensorflow-gpu',
long_description=codecs.open('README.md', encoding='utf-8').read(),
long_description_content_ty... | 24.086957 | 71 | 0.68231 | 68 | 554 | 5.411765 | 0.691176 | 0.141304 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.162455 | 554 | 22 | 72 | 25.181818 | 0.775862 | 0.111913 | 0 | 0 | 0 | 0 | 0.367769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba3950293138df1b235e10dc0343e10a2d0752b1 | 439 | py | Python | ohjelma/migrations/0008_track_track_danceability.py | katrii/ohsiha | 257e15071e3887a3dd87bf598cdd02db6e1e46fe | [
"MIT"
] | null | null | null | ohjelma/migrations/0008_track_track_danceability.py | katrii/ohsiha | 257e15071e3887a3dd87bf598cdd02db6e1e46fe | [
"MIT"
] | null | null | null | ohjelma/migrations/0008_track_track_danceability.py | katrii/ohsiha | 257e15071e3887a3dd87bf598cdd02db6e1e46fe | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-04-11 18:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ohjelma', '0007_track_track_id'),
]
operations = [
migrations.AddField(
model_name='track',
name='track_danceability... | 21.95 | 62 | 0.605923 | 48 | 439 | 5.395833 | 0.770833 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070064 | 0.284738 | 439 | 19 | 63 | 23.105263 | 0.754777 | 0.102506 | 0 | 0 | 1 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba3974b9d90d9c8e422ca27f10585f44f60e8f91 | 786 | py | Python | gogolook/models/task.py | chenjr0719/Gogolook-Exercise | 864c4e6c06d42858f465e1986e931832594859e0 | [
"MIT"
] | null | null | null | gogolook/models/task.py | chenjr0719/Gogolook-Exercise | 864c4e6c06d42858f465e1986e931832594859e0 | [
"MIT"
] | 13 | 2022-02-16T15:30:10.000Z | 2022-02-20T08:30:29.000Z | gogolook/models/task.py | chenjr0719/Gogolook-Exercise | 864c4e6c06d42858f465e1986e931832594859e0 | [
"MIT"
] | null | null | null | from enum import IntEnum
from typing import Optional
from pydantic import Field
from sqlalchemy import Column, Enum, String
from gogolook.models import Base, BaseSchema
class TaskStatus(IntEnum):
Incomplete = 0
Complete = 1
class Task(Base):
name = Column(String(length=100))
status = Column(Enum(T... | 25.354839 | 74 | 0.727735 | 97 | 786 | 5.896907 | 0.360825 | 0.13986 | 0.166084 | 0.111888 | 0.276224 | 0.276224 | 0.276224 | 0.132867 | 0 | 0 | 0 | 0.00774 | 0.178117 | 786 | 30 | 75 | 26.2 | 0.877709 | 0 | 0 | 0 | 0 | 0 | 0.104326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ba3cc577432550c07729032ff5a895ea35ca90bf | 899 | py | Python | astroutils/writer_module.py | nithyanandan/AstroUtils | 97473f52d4247bb9c8507598899215d0662e8d6f | [
"MIT"
] | 1 | 2018-10-31T03:49:39.000Z | 2018-10-31T03:49:39.000Z | astroutils/writer_module.py | nithyanandan/AstroUtils | 97473f52d4247bb9c8507598899215d0662e8d6f | [
"MIT"
] | 5 | 2017-11-18T01:45:50.000Z | 2020-05-30T12:26:50.000Z | astroutils/writer_module.py | nithyanandan/AstroUtils | 97473f52d4247bb9c8507598899215d0662e8d6f | [
"MIT"
] | 1 | 2019-10-14T08:44:40.000Z | 2019-10-14T08:44:40.000Z | from blessings import Terminal
term = Terminal()
class Writer(object):
"""
---------------------------------------------------------------------------
Create an object with a write method that writes to a
specific place on the screen, defined at instantiation.
This is the glue between blessings ... | 29.966667 | 79 | 0.384872 | 69 | 899 | 4.956522 | 0.666667 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240267 | 899 | 29 | 80 | 31 | 0.500732 | 0.61624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba3e6f882956569f961b1c785b3e7a17c7f9793d | 576 | py | Python | 1201-1300/1215-Magical String/1215-Magical String.py | jiadaizhao/LintCode | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 1201-1300/1215-Magical String/1215-Magical String.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 1201-1300/1215-Magical String/1215-Magical String.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution:
"""
@param n: an integer
@return: the number of '1's in the first N number in the magical string S
"""
def magicalString(self, n):
# write your code here
if n == 0:
return 0
seed = list('122')
count = 1
i = 2
while len(seed... | 26.181818 | 77 | 0.414931 | 73 | 576 | 3.273973 | 0.493151 | 0.041841 | 0.066946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045307 | 0.463542 | 576 | 21 | 78 | 27.428571 | 0.728155 | 0.203125 | 0 | 0 | 0 | 0 | 0.013667 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba3f133ecd9fb728e46e4fc79ada11e7484148e2 | 3,897 | py | Python | minibench/benchmark.py | noirbizarre/minibench | a1ac66dc075181c62bb3c0d3a26beb5c46d5f4ab | [
"MIT"
] | 4 | 2015-11-19T09:42:01.000Z | 2021-12-30T06:18:02.000Z | minibench/benchmark.py | noirbizarre/minibench | a1ac66dc075181c62bb3c0d3a26beb5c46d5f4ab | [
"MIT"
] | null | null | null | minibench/benchmark.py | noirbizarre/minibench | a1ac66dc075181c62bb3c0d3a26beb5c46d5f4ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
import sys
from collections import namedtuple
from .utils import humanize
DEFAULT_TIMES = 5
if sys.platform == "win32":
# On Windows, the best timer is time.clock()
timer = time.clock
else:
# On most other platforms the best t... | 26.691781 | 76 | 0.569412 | 457 | 3,897 | 4.656455 | 0.249453 | 0.042293 | 0.039474 | 0.019737 | 0.139568 | 0.031015 | 0 | 0 | 0 | 0 | 0 | 0.002691 | 0.332564 | 3,897 | 145 | 77 | 26.875862 | 0.815456 | 0.155248 | 0 | 0.094737 | 0 | 0 | 0.012789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147368 | false | 0.073684 | 0.052632 | 0.010526 | 0.305263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ba5f8c54b58e2039ba5050a39da943245f582c52 | 568 | py | Python | conftest.py | d34dm8/chime | 1438245b3510b682345cd18f60150e975a54233d | [
"MIT"
] | 149 | 2020-10-05T13:13:38.000Z | 2022-03-30T11:59:27.000Z | conftest.py | d34dm8/chime | 1438245b3510b682345cd18f60150e975a54233d | [
"MIT"
] | 17 | 2020-10-05T20:43:15.000Z | 2021-11-14T16:15:00.000Z | conftest.py | d34dm8/chime | 1438245b3510b682345cd18f60150e975a54233d | [
"MIT"
] | 8 | 2020-10-05T21:03:49.000Z | 2022-02-03T17:46:01.000Z | import importlib
import pathlib
import tempfile
import _pytest.monkeypatch
import pytest
import chime
@pytest.fixture(scope='function', autouse=True)
def reload_chime():
importlib.reload(chime)
@pytest.fixture(scope='function', autouse=True)
def mock_pathlib_home(monkeypatch: _pytest.monkeypatch.MonkeyPatch):... | 25.818182 | 83 | 0.767606 | 71 | 568 | 5.957746 | 0.394366 | 0.082742 | 0.078014 | 0.108747 | 0.212766 | 0.212766 | 0.212766 | 0.212766 | 0 | 0 | 0 | 0 | 0.128521 | 568 | 21 | 84 | 27.047619 | 0.854545 | 0 | 0 | 0.133333 | 0 | 0 | 0.047535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.466667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ba60a6e988ca3407a19a72d7fe7fe9d52a6f5fc1 | 2,307 | py | Python | atropos/commands/error/reports.py | plijnzaad/atropos | dcc79d0aa89b5d2b87f02ee841525fa154898ae6 | [
"CC0-1.0"
] | null | null | null | atropos/commands/error/reports.py | plijnzaad/atropos | dcc79d0aa89b5d2b87f02ee841525fa154898ae6 | [
"CC0-1.0"
] | 1 | 2020-09-23T07:37:32.000Z | 2020-09-23T07:37:32.000Z | atropos/commands/error/reports.py | plijnzaad/atropos | dcc79d0aa89b5d2b87f02ee841525fa154898ae6 | [
"CC0-1.0"
] | null | null | null | """Report generator for the error command.
TODO: move reporting functionality out of the ErrorEstimator class.
"""
from itertools import repeat
from atropos.commands.reports import BaseReportGenerator
from atropos.io import open_output
from atropos.commands.legacy_report import Printer, TitlePrinter
class ReportGener... | 36.619048 | 84 | 0.641092 | 263 | 2,307 | 5.380228 | 0.326996 | 0.033922 | 0.036042 | 0.048763 | 0.128622 | 0.09894 | 0.09894 | 0.09894 | 0.09894 | 0.09894 | 0 | 0.006246 | 0.236671 | 2,307 | 62 | 85 | 37.209677 | 0.797274 | 0.046814 | 0 | 0.041667 | 0 | 0 | 0.110401 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.0625 | false | 0 | 0.083333 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba62fad903a85520d54d8e5c15dd90d984f9d167 | 4,071 | py | Python | pypy/objspace/std/iterobject.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/objspace/std/iterobject.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/objspace/std/iterobject.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | """
Reviewed 03-06-22
Sequence-iteration is correctly implemented, thoroughly
tested, and complete. The only missing feature is support
for function-iteration.
"""
from pypy.objspace.std.objspace import *
class W_AbstractSeqIterObject(W_Object):
from pypy.objspace.std.itertype import iter_typedef as typedef
... | 31.804688 | 76 | 0.704495 | 582 | 4,071 | 4.651203 | 0.170103 | 0.118212 | 0.039897 | 0.053195 | 0.602512 | 0.56003 | 0.532324 | 0.517178 | 0.393055 | 0.391577 | 0 | 0.007766 | 0.209285 | 4,071 | 127 | 77 | 32.055118 | 0.833178 | 0.014247 | 0 | 0.505263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031579 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba7117574bb20ecd7e041b405becc3a15e9db17c | 348 | py | Python | Homework/HW7.py | Javascript-void0/hxgv | 09d04a5bb4f74a476d652bfd8ae5ff56588593c4 | [
"MIT"
] | null | null | null | Homework/HW7.py | Javascript-void0/hxgv | 09d04a5bb4f74a476d652bfd8ae5ff56588593c4 | [
"MIT"
] | null | null | null | Homework/HW7.py | Javascript-void0/hxgv | 09d04a5bb4f74a476d652bfd8ae5ff56588593c4 | [
"MIT"
] | null | null | null | '''
num1=1
num2=1
num3=num1+num2
print(num3)
sum=num1+num2+num3
for i in range(1,18,1):
num1=num2
num2=num3
num3=num1+num2
if num3%2==0:
print(num3)
'''
'''
for i in range(1,101):
if 100%i==0:
print(i)
'''
num1=int(input("Please input a number: "))
for i in range(1,num1+1):
if... | 14.5 | 42 | 0.560345 | 65 | 348 | 3 | 0.323077 | 0.164103 | 0.092308 | 0.169231 | 0.225641 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.252874 | 348 | 24 | 43 | 14.5 | 0.596154 | 0.491379 | 0 | 0 | 0 | 0 | 0.216981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba7896e39b36a9f391aa37af0d8d529de9f57847 | 579 | py | Python | plugins/modules/files_attributes.py | manala/ansible-roles | 30dc7d0bcea10ac4b38c6ad85ad66dbd098131f4 | [
"MIT"
] | 138 | 2017-05-18T13:45:45.000Z | 2022-03-23T02:33:45.000Z | plugins/modules/files_attributes.py | manala/ansible-roles | 30dc7d0bcea10ac4b38c6ad85ad66dbd098131f4 | [
"MIT"
] | 159 | 2017-05-11T09:05:26.000Z | 2022-03-04T07:36:59.000Z | plugins/modules/files_attributes.py | manala/ansible-roles | 30dc7d0bcea10ac4b38c6ad85ad66dbd098131f4 | [
"MIT"
] | 35 | 2017-06-29T09:01:42.000Z | 2021-11-18T11:35:00.000Z | #!/usr/bin/python
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This is a virtual module that is entirely implemented as an action plugin and runs on the controller
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION =... | 22.269231 | 102 | 0.746114 | 80 | 579 | 5.2375 | 0.775 | 0.143198 | 0.105012 | 0.152745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008163 | 0.153713 | 579 | 25 | 103 | 23.16 | 0.846939 | 0.35924 | 0 | 0.125 | 0 | 0 | 0.625 | 0.081522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba79b2422cf56667368b3ef2dbac850bed5b6ef4 | 1,210 | py | Python | tests/ui/menus/test_opmenu.py | Hengle/Houdini-Toolbox | a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3 | [
"MIT"
] | 136 | 2015-01-03T04:03:23.000Z | 2022-02-07T11:08:57.000Z | tests/ui/menus/test_opmenu.py | Hengle/Houdini-Toolbox | a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3 | [
"MIT"
] | 11 | 2017-02-09T20:05:04.000Z | 2021-01-24T22:25:59.000Z | tests/ui/menus/test_opmenu.py | Hengle/Houdini-Toolbox | a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3 | [
"MIT"
] | 26 | 2015-08-18T12:11:02.000Z | 2020-12-19T01:53:31.000Z | """Tests for ht.ui.menus.opmenu module."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox
import ht.ui.menus.opmenu
# Houdini
import hou
# ====================================... | 28.809524 | 80 | 0.547934 | 126 | 1,210 | 4.960317 | 0.333333 | 0.0448 | 0.1008 | 0.168 | 0.5152 | 0.4384 | 0.4064 | 0.4064 | 0.2272 | 0.2272 | 0 | 0 | 0.106612 | 1,210 | 41 | 81 | 29.512195 | 0.578168 | 0.401653 | 0 | 0.266667 | 0 | 0 | 0.051355 | 0.039943 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba81f31f40fcfb95bb592d0946c0dd4a71c9a4b2 | 500 | py | Python | Curso_Em_Video_Python/ex013.py | ThallesTorres/Curso_Em_Video_Python | 95ffbff5a03f11fee41df746604dfe435f385a3b | [
"MIT"
] | null | null | null | Curso_Em_Video_Python/ex013.py | ThallesTorres/Curso_Em_Video_Python | 95ffbff5a03f11fee41df746604dfe435f385a3b | [
"MIT"
] | null | null | null | Curso_Em_Video_Python/ex013.py | ThallesTorres/Curso_Em_Video_Python | 95ffbff5a03f11fee41df746604dfe435f385a3b | [
"MIT"
] | null | null | null | print('''
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--Seja bem-vindo!
--Exercício 013
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
''')
salario = float(input('Digite o salário: R$'))
aumento = float(input('Digite a porcentagem do aumento: '))
total = salario * aumento / 100
input(f'Aumento: R${total:.2f} \nAumento + Salár... | 27.777778 | 79 | 0.452 | 45 | 500 | 5.022222 | 0.644444 | 0.088496 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.136 | 500 | 17 | 80 | 29.411765 | 0.50463 | 0 | 0 | 0.333333 | 0 | 0.066667 | 0.73706 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba83e623f6a24c365a0bdff2420df7abb9e275a9 | 54,639 | py | Python | PyLibFTDI/_ftd2xx64.py | paretech/PyLibFTDI | b0c3a1196e36a3820b950f1fd0cbd3a917365322 | [
"Unlicense"
] | 2 | 2019-03-04T16:10:28.000Z | 2020-01-29T22:36:53.000Z | PyLibFTDI/_ftd2xx64.py | paretech/PyLibFTDI | b0c3a1196e36a3820b950f1fd0cbd3a917365322 | [
"Unlicense"
] | null | null | null | PyLibFTDI/_ftd2xx64.py | paretech/PyLibFTDI | b0c3a1196e36a3820b950f1fd0cbd3a917365322 | [
"Unlicense"
] | null | null | null | # generated by 'clang2py'
# flags '-c -d -l ftd2xx64.dll ftd2xx.h -vvv -o _ftd2xx64.py'
# -*- coding: utf-8 -*-
#
# TARGET arch is: []
# WORD_SIZE is: 4
# POINTER_SIZE is: 8
# LONGDOUBLE_SIZE is: 8
#
import ctypes
# if local wordsize is same as target, keep ctypes pointer function.
if ctypes.sizeof(ctypes.c_void_p) =... | 42.192278 | 193 | 0.750984 | 7,002 | 54,639 | 5.424165 | 0.103113 | 0.071143 | 0.083096 | 0.052712 | 0.335387 | 0.237599 | 0.201843 | 0.181306 | 0.165798 | 0.141917 | 0 | 0.036548 | 0.124673 | 54,639 | 1,294 | 194 | 42.224884 | 0.757564 | 0.096122 | 0 | 0.219361 | 1 | 0 | 0.191095 | 0.024249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005149 | false | 0.00206 | 0.00206 | 0.00206 | 0.062822 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba87c6200c3589812eddf0e71c34e444b157cf48 | 3,098 | py | Python | nicos/services/daemon/auth/params.py | ebadkamil/nicos | 0355a970d627aae170c93292f08f95759c97f3b5 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos/services/daemon/auth/params.py | ebadkamil/nicos | 0355a970d627aae170c93292f08f95759c97f3b5 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 4 | 2019-11-08T10:18:16.000Z | 2021-01-13T13:07:29.000Z | nicos/services/daemon/auth/params.py | ISISComputingGroup/nicos | 94cb4d172815919481f8c6ee686f21ebb76f2068 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | # -*- coding: utf-8 -*-
# *****************************************************************************
# NICOS, the Networked Instrument Control System of the MLZ
# Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS)
#
# This program is free software; you can redistribute it and/or modify it under
# the t... | 37.780488 | 85 | 0.619109 | 408 | 3,098 | 4.654412 | 0.397059 | 0.040548 | 0.031596 | 0.030016 | 0.21327 | 0.16693 | 0.137441 | 0.137441 | 0.137441 | 0.083728 | 0 | 0.019393 | 0.234345 | 3,098 | 81 | 86 | 38.246914 | 0.781197 | 0.49419 | 0 | 0.151515 | 0 | 0 | 0.200957 | 0.015038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.151515 | 0.030303 | 0.030303 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ba8eb6b446da9b5861b5d55aaa9e826bc5dac1a4 | 894 | py | Python | tests/test_doctest.py | allaudet/python-diskcache | 2774689c60bac3ebd06246943bca2014779ee2c6 | [
"Apache-2.0"
] | null | null | null | tests/test_doctest.py | allaudet/python-diskcache | 2774689c60bac3ebd06246943bca2014779ee2c6 | [
"Apache-2.0"
] | null | null | null | tests/test_doctest.py | allaudet/python-diskcache | 2774689c60bac3ebd06246943bca2014779ee2c6 | [
"Apache-2.0"
] | null | null | null | import doctest
import shutil
import diskcache.core
import diskcache.djangocache
import diskcache.fanout
import diskcache.memo
import diskcache.persistent
def rmdir(directory):
try:
shutil.rmtree(directory)
except OSError:
pass
def test_core():
rmdir('/tmp/diskcache')
failures, _ = d... | 19.434783 | 56 | 0.696868 | 99 | 894 | 6.191919 | 0.232323 | 0.122349 | 0.138662 | 0.203915 | 0.535073 | 0.391517 | 0.391517 | 0 | 0 | 0 | 0 | 0.006935 | 0.193512 | 894 | 45 | 57 | 19.866667 | 0.843273 | 0 | 0 | 0.3125 | 0 | 0 | 0.0783 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.1875 | false | 0.03125 | 0.21875 | 0 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba902e13fa38f2d48dee6ee78ad8615cef0e6563 | 591 | py | Python | OverApp/migrations/0004_auto_20160617_1924.py | sheissage/overnightasiasg | 83351e51b26a0ff3759030d5165cc87e987ff07d | [
"Apache-2.0"
] | null | null | null | OverApp/migrations/0004_auto_20160617_1924.py | sheissage/overnightasiasg | 83351e51b26a0ff3759030d5165cc87e987ff07d | [
"Apache-2.0"
] | null | null | null | OverApp/migrations/0004_auto_20160617_1924.py | sheissage/overnightasiasg | 83351e51b26a0ff3759030d5165cc87e987ff07d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-17 19:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('OverApp', '0003_hotelavailability_currency'),
]
operations = [
migrations.Re... | 23.64 | 64 | 0.604061 | 58 | 591 | 5.982759 | 0.741379 | 0.051873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0.279188 | 591 | 24 | 65 | 24.625 | 0.765258 | 0.113367 | 0 | 0.235294 | 1 | 0 | 0.159309 | 0.059501 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba929360696b6edf5a6ea4d1c28a8dae5537d68d | 466 | py | Python | detect.py | nemero/py_neural | 87f151097f8c331a06f13b96c4cec9a1ee663abf | [
"MIT"
] | null | null | null | detect.py | nemero/py_neural | 87f151097f8c331a06f13b96c4cec9a1ee663abf | [
"MIT"
] | 1 | 2017-01-18T18:35:03.000Z | 2017-01-25T08:55:49.000Z | detect.py | nemero/py_neural | 87f151097f8c331a06f13b96c4cec9a1ee663abf | [
"MIT"
] | null | null | null | # coding: utf8
import numpy as np
from loadsample import *
np.set_printoptions(suppress=True)
def nonlin(x,deriv=False):
if(deriv==True):
return x*(1-x)
return 1/(1+np.exp(-x))
#load sinapse
syn0 = np.load('synapse/syn0.npy')
syn1 = np.load('synapse/syn1.npy')
X = np.array(collection,dtype=float)
# п... | 16.642857 | 36 | 0.684549 | 82 | 466 | 3.878049 | 0.536585 | 0.037736 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053846 | 0.16309 | 466 | 28 | 37 | 16.642857 | 0.761538 | 0.167382 | 0 | 0 | 0 | 0 | 0.083551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba97cdb62a5afe7e84e6d10f9deb473a487ebf38 | 12,194 | py | Python | Main.py | nntropy/HonoursProject | 7fa62ffb65b386706b9f99ccb83f20800393e077 | [
"Apache-2.0"
] | null | null | null | Main.py | nntropy/HonoursProject | 7fa62ffb65b386706b9f99ccb83f20800393e077 | [
"Apache-2.0"
] | null | null | null | Main.py | nntropy/HonoursProject | 7fa62ffb65b386706b9f99ccb83f20800393e077 | [
"Apache-2.0"
] | null | null | null | # this is the main method for my entire program.
import itertools
import math
import os
import sys
import numpy as np
import pandas as pd
import torch
import torch.utils.data
from Utility import feature_selection as fs
from Utility import ngram
from Utility.opcodeseq_creator import run_opcode_seq_creatio... | 44.181159 | 133 | 0.657044 | 1,496 | 12,194 | 5.143048 | 0.349599 | 0.028594 | 0.007798 | 0.012997 | 0.034832 | 0.024435 | 0.024435 | 0.024435 | 0.024435 | 0.011178 | 0 | 0.007192 | 0.224619 | 12,194 | 276 | 134 | 44.181159 | 0.806557 | 0.122519 | 0 | 0.035714 | 0 | 0 | 0.388277 | 0.177956 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005952 | 0.089286 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba9ea81348075859e6add3d9ac0ec7f1ce621f0f | 179 | py | Python | src/actions_server/__init__.py | rzarajczyk/actions-server | 88580df33ee9dd089dab364e9fd90952a607f03d | [
"MIT"
] | null | null | null | src/actions_server/__init__.py | rzarajczyk/actions-server | 88580df33ee9dd089dab364e9fd90952a607f03d | [
"MIT"
] | null | null | null | src/actions_server/__init__.py | rzarajczyk/actions-server | 88580df33ee9dd089dab364e9fd90952a607f03d | [
"MIT"
] | null | null | null | from .server import *
__all__ = [
'http_server',
'Response',
'Action',
'JsonGet',
'JsonPost',
'Redirect',
'StaticResources',
'ServerController'
]
| 13.769231 | 22 | 0.569832 | 13 | 179 | 7.461538 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273743 | 179 | 12 | 23 | 14.916667 | 0.746154 | 0 | 0 | 0 | 0 | 0 | 0.441341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baa77433e641424f6986c86518d3286d51a8882c | 662 | py | Python | my_pca.py | siddharthtelang/Face-and-Pose-Classification | 742953dd6d05791a9ee643248863e8d9d5a05b9a | [
"MIT"
] | null | null | null | my_pca.py | siddharthtelang/Face-and-Pose-Classification | 742953dd6d05791a9ee643248863e8d9d5a05b9a | [
"MIT"
] | null | null | null | my_pca.py | siddharthtelang/Face-and-Pose-Classification | 742953dd6d05791a9ee643248863e8d9d5a05b9a | [
"MIT"
] | null | null | null | from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import numpy as np
def get_min_dimensions(flattened):
pca = PCA().fit(flattened)
# plt.figure()
# plt.title('PCA')
# plt.xlabel('Dimensions')
# plt.ylabel('Variance Retention')
# plt.plot(pca.explained_variance_ratio_.cumsum(... | 30.090909 | 77 | 0.696375 | 89 | 662 | 5.022472 | 0.47191 | 0.040268 | 0.071588 | 0.111857 | 0.277405 | 0.138702 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.178248 | 662 | 21 | 78 | 31.52381 | 0.806985 | 0.231118 | 0 | 0 | 0 | 0 | 0.095618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
baaa839d3e982230b9fe73cd6d5e7dd4fc350545 | 1,474 | py | Python | tests/test_container_deps.py | hazbottles/flonb | 8cb1fd4926c8ab14cf579292b06f02ac4568a55e | [
"MIT"
] | 3 | 2020-11-02T14:32:11.000Z | 2022-02-03T04:38:53.000Z | tests/test_container_deps.py | hazbottles/flonb | 8cb1fd4926c8ab14cf579292b06f02ac4568a55e | [
"MIT"
] | 5 | 2021-07-28T02:00:48.000Z | 2021-07-28T02:44:45.000Z | tests/test_container_deps.py | hazbottles/flonb | 8cb1fd4926c8ab14cf579292b06f02ac4568a55e | [
"MIT"
] | null | null | null | import pytest
import flonb
def test_nested_list_deps():
@flonb.task_func()
def multiply(x, y):
return x * y
@flonb.task_func()
def collect(
container=flonb.Dep(
[[multiply.partial(x=x, y=y + 2) for x in range(3)] for y in range(2)]
)
):
return containe... | 21.057143 | 99 | 0.497965 | 207 | 1,474 | 3.468599 | 0.333333 | 0.02507 | 0.126741 | 0.155989 | 0.445682 | 0.311978 | 0.311978 | 0.311978 | 0.311978 | 0.311978 | 0 | 0.04772 | 0.360244 | 1,474 | 69 | 100 | 21.362319 | 0.71368 | 0.07327 | 0 | 0.518519 | 0 | 0 | 0.029347 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.185185 | false | 0 | 0.037037 | 0.12963 | 0.351852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
baaaaa85690bcd79d5052208eaadb37b07276d7b | 719 | py | Python | submissions/valid-parentheses/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | null | null | null | submissions/valid-parentheses/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | 1 | 2022-03-04T20:24:32.000Z | 2022-03-04T20:31:58.000Z | submissions/valid-parentheses/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/valid-parentheses
from collections import deque
class Solution:
def isValid(self, s: str):
if not s:
return True
N = len(s)
st = deque([s[0]])
for i in range(1, N):
if not st:
st.append(s[i])
else:... | 23.966667 | 51 | 0.346314 | 77 | 719 | 3.233766 | 0.480519 | 0.040161 | 0.084337 | 0.096386 | 0.11245 | 0.11245 | 0.11245 | 0.11245 | 0.11245 | 0 | 0 | 0.011461 | 0.514604 | 719 | 29 | 52 | 24.793103 | 0.702006 | 0.065369 | 0 | 0.291667 | 0 | 0 | 0.008955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bab1ab98b5b9a432147ce95b3a0dad2f4a850934 | 10,929 | py | Python | Efficiency Test/arcadameVM_dictionaries.py | bernardotc/Arcadame | 258a26498fc9de7f95c577704bba8c7709b2d4fc | [
"MIT"
] | null | null | null | Efficiency Test/arcadameVM_dictionaries.py | bernardotc/Arcadame | 258a26498fc9de7f95c577704bba8c7709b2d4fc | [
"MIT"
] | null | null | null | Efficiency Test/arcadameVM_dictionaries.py | bernardotc/Arcadame | 258a26498fc9de7f95c577704bba8c7709b2d4fc | [
"MIT"
] | null | null | null | # -----------------------------------------------------------------------------
# Bernardo Daniel Trevino Caballero A00813175
# Myriam Maria Gutierrez Aburto A00617060
# arcadame.py
#
# Virtual Machine for the languange Arcadame
# -----------------------------------------------------------------------------... | 33.835913 | 179 | 0.586238 | 1,037 | 10,929 | 6.16972 | 0.181292 | 0.044701 | 0.056268 | 0.041263 | 0.322757 | 0.205377 | 0.147234 | 0.137543 | 0.131291 | 0.114098 | 0 | 0.039651 | 0.275414 | 10,929 | 322 | 180 | 33.940994 | 0.768279 | 0.054442 | 0 | 0.311828 | 0 | 0 | 0.087787 | 0 | 0 | 0 | 0 | 0.003106 | 0 | 0 | null | null | 0 | 0.007168 | null | null | 0.086022 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bab3ff9be49b8a19139c53d2ee877f5f6476ae7c | 1,252 | py | Python | web/web/urls.py | danieltrt/UnchartIt_UI | dbaefcb68e8d1a3e48b9ee071a9918dcc6eceebe | [
"BSD-3-Clause-Clear"
] | 2 | 2020-09-27T14:40:28.000Z | 2022-01-20T14:52:27.000Z | web/web/urls.py | danieltrt/UnchartIt | dbaefcb68e8d1a3e48b9ee071a9918dcc6eceebe | [
"BSD-3-Clause-Clear"
] | null | null | null | web/web/urls.py | danieltrt/UnchartIt | dbaefcb68e8d1a3e48b9ee071a9918dcc6eceebe | [
"BSD-3-Clause-Clear"
] | null | null | null | """web URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | 37.939394 | 77 | 0.718051 | 177 | 1,252 | 5.033898 | 0.367232 | 0.06734 | 0.016835 | 0.026936 | 0.286195 | 0.286195 | 0.084175 | 0 | 0 | 0 | 0 | 0.007484 | 0.146166 | 1,252 | 33 | 78 | 37.939394 | 0.826006 | 0.494409 | 0 | 0 | 0 | 0 | 0.111643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bab6a18249c041770c616493b83bf7abb970132e | 3,538 | py | Python | 20180715/FeatureSelection/FeatureSelection.py | fengjiaxin/Home_Credit_Default_Risk | 3407e76b4e5cfb8dd6056d24675b80fe0e82c123 | [
"Apache-2.0"
] | 26 | 2018-06-13T07:34:16.000Z | 2020-12-07T16:38:25.000Z | 20180715/FeatureSelection/FeatureSelection.py | fengjiaxin/Home_Credit_Default_Risk | 3407e76b4e5cfb8dd6056d24675b80fe0e82c123 | [
"Apache-2.0"
] | 1 | 2019-05-02T12:48:31.000Z | 2019-05-25T09:06:22.000Z | 20180715/FeatureSelection/FeatureSelection.py | fengjiaxin/Home_Credit_Default_Risk | 3407e76b4e5cfb8dd6056d24675b80fe0e82c123 | [
"Apache-2.0"
] | 6 | 2018-08-02T11:03:33.000Z | 2021-11-09T10:42:11.000Z | # coding:utf-8
import os
import re
import sys
import tqdm
import numpy as np
import pandas as pd
from category_encoders import TargetEncoder
def filter_nan_feature(feature):
"""
:param feature: feature pd.Series
:return:
"""
return (np.sum(feature.isna()) / len(feature)) > 0.9
class FeatureSele... | 38.043011 | 113 | 0.667326 | 459 | 3,538 | 4.62963 | 0.196078 | 0.156706 | 0.188235 | 0.065882 | 0.554353 | 0.473882 | 0.353882 | 0.331294 | 0.249412 | 0.234353 | 0 | 0.004729 | 0.223007 | 3,538 | 93 | 114 | 38.043011 | 0.768279 | 0.033635 | 0 | 0.117647 | 0 | 0 | 0.047717 | 0.031222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.102941 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
babbbc3188b2ac7eb453bce93107324257a810eb | 265 | py | Python | bin/collect.py | nw-engineer/collectiontools | 7a5cf183c4f626e4ad21d218ebb99d2780f9f4e4 | [
"Apache-2.0"
] | 1 | 2021-11-16T16:43:03.000Z | 2021-11-16T16:43:03.000Z | bin/collect.py | nw-engineer/collectiontools | 7a5cf183c4f626e4ad21d218ebb99d2780f9f4e4 | [
"Apache-2.0"
] | null | null | null | bin/collect.py | nw-engineer/collectiontools | 7a5cf183c4f626e4ad21d218ebb99d2780f9f4e4 | [
"Apache-2.0"
] | null | null | null | import sys
import requests
from bs4 import BeautifulSoup
from urllib import request
args = sys.argv[1]
url = args
response = request.urlopen(url)
soup = BeautifulSoup(response, features = "html.parser")
response.close()
print(soup.title.text)
print(soup.pre.text)
| 20.384615 | 56 | 0.777358 | 38 | 265 | 5.421053 | 0.605263 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.116981 | 265 | 12 | 57 | 22.083333 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0.041509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bac5b4b38a78ca5bdb0f775ea7cef114d7faeffb | 2,768 | py | Python | main/python/model/Base.py | ShangxuanWu/MT_python | b64bea6e773d9f0df3f8f850252a909e6e4afff5 | [
"CNRI-Python"
] | null | null | null | main/python/model/Base.py | ShangxuanWu/MT_python | b64bea6e773d9f0df3f8f850252a909e6e4afff5 | [
"CNRI-Python"
] | null | null | null | main/python/model/Base.py | ShangxuanWu/MT_python | b64bea6e773d9f0df3f8f850252a909e6e4afff5 | [
"CNRI-Python"
] | null | null | null | # Shangxuan Wu @ Myraid of Things
# 31 Jun 2017
# add path for root ('tf_code/') directory if not in sys.path
import sys, os
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
if root_path not in sys.path
sys.path.append(root_path)
from main.python.utils impo... | 32.186047 | 105 | 0.67052 | 335 | 2,768 | 5.426866 | 0.41194 | 0.023102 | 0.107811 | 0.10231 | 0.053905 | 0.053905 | 0.031903 | 0.031903 | 0.031903 | 0.031903 | 0 | 0.002917 | 0.256864 | 2,768 | 86 | 106 | 32.186047 | 0.880895 | 0.240246 | 0 | 0.192308 | 0 | 0 | 0.02494 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | null | null | 0 | 0.115385 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bac65dbd6a7060ed2081b0cb0b52496151e704ac | 292 | py | Python | Software/__init__.py | justins0923/zephyrus-iaq | 10e5f14f4dc0d1d72a2eff928df4ad572fc99e4c | [
"MIT"
] | 1 | 2019-11-05T18:45:52.000Z | 2019-11-05T18:45:52.000Z | Software/__init__.py | justins0923/zephyrus-iaq | 10e5f14f4dc0d1d72a2eff928df4ad572fc99e4c | [
"MIT"
] | null | null | null | Software/__init__.py | justins0923/zephyrus-iaq | 10e5f14f4dc0d1d72a2eff928df4ad572fc99e4c | [
"MIT"
] | null | null | null | Software/
Config/
GUI/
IAQ_GUI.py
HAT/
IAQ_DAC43608.py
IAQ_Mux.py
Sensors/
IAQ_Sensor.py
IAQ_MqGas.py
third_party/
bme680-python
IAQ_AnalogPortController.py
IAQ_Exceptions.py
IAQ_FileHandler.py
IAQ_Logger.py
| 17.176471 | 31 | 0.60274 | 36 | 292 | 4.611111 | 0.527778 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.342466 | 292 | 16 | 32 | 18.25 | 0.822917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bac852e76d72f264f2be673496b458a4609e122d | 2,102 | py | Python | repoxplorer/controllers/tags.py | Priya-100/repoxplorer | 45fba33cf27702a56cea54cb9f7afa472ef5498c | [
"Apache-2.0"
] | 107 | 2016-05-05T19:41:12.000Z | 2022-01-29T22:49:03.000Z | repoxplorer/controllers/tags.py | Priya-100/repoxplorer | 45fba33cf27702a56cea54cb9f7afa472ef5498c | [
"Apache-2.0"
] | 68 | 2016-05-08T13:30:07.000Z | 2021-12-22T21:33:39.000Z | repoxplorer/controllers/tags.py | Priya-100/repoxplorer | 45fba33cf27702a56cea54cb9f7afa472ef5498c | [
"Apache-2.0"
] | 27 | 2018-08-31T09:27:41.000Z | 2022-02-17T03:35:53.000Z | # Copyright 2017, Fabien Boucher
# Copyright 2017, Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 36.877193 | 79 | 0.653663 | 279 | 2,102 | 4.870968 | 0.46595 | 0.04415 | 0.04415 | 0.023547 | 0.050037 | 0.050037 | 0.050037 | 0 | 0 | 0 | 0 | 0.008207 | 0.246432 | 2,102 | 56 | 80 | 37.535714 | 0.849747 | 0.334443 | 0 | 0.125 | 0 | 0 | 0.055033 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.03125 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bad719cf9311790e0960fabcfa0c5d3ced6ef911 | 1,392 | py | Python | pcdet/models/dense_heads/__init__.py | ocNflag/point2seq | 710686f576b3df5469a06c66860758b25f852dbd | [
"Apache-2.0"
] | 21 | 2022-03-24T09:37:38.000Z | 2022-03-31T13:21:54.000Z | pcdet/models/dense_heads/__init__.py | ocNflag/point2seq | 710686f576b3df5469a06c66860758b25f852dbd | [
"Apache-2.0"
] | null | null | null | pcdet/models/dense_heads/__init__.py | ocNflag/point2seq | 710686f576b3df5469a06c66860758b25f852dbd | [
"Apache-2.0"
] | 1 | 2022-03-24T09:37:48.000Z | 2022-03-24T09:37:48.000Z | from .anchor_head_multi import AnchorHeadMulti
from .anchor_head_single import AnchorHeadSingle
from .anchor_head_template import AnchorHeadTemplate
from .point_head_box import PointHeadBox
from .point_head_simple import PointHeadSimple
from .point_intra_part_head import PointIntraPartOffsetHead
from .anchor_head_seg i... | 33.142857 | 59 | 0.808908 | 135 | 1,392 | 8.074074 | 0.296296 | 0.100917 | 0.051376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019786 | 0.128592 | 1,392 | 41 | 60 | 33.95122 | 0.878813 | 0 | 0 | 0 | 0 | 0 | 0.165948 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.472222 | 0 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bad7d648118bd2858bf49d2a44a2f4cfe07ecd25 | 465 | py | Python | tests/factories/input/types/float_input.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 1 | 2020-12-30T12:43:34.000Z | 2020-12-30T12:43:34.000Z | tests/factories/input/types/float_input.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 59 | 2019-12-25T13:14:56.000Z | 2021-07-22T12:24:46.000Z | tests/factories/input/types/float_input.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 2 | 2020-05-24T06:44:27.000Z | 2020-07-09T15:47:31.000Z | from factory import SubFactory
from factory.django import DjangoModelFactory
from factory.faker import Faker
class FloatInputFactory(DjangoModelFactory):
run = SubFactory("tests.factories.run.RunFactory")
definition = SubFactory(
"tests.factories.input.definitions.float_input_definition.FloatInputDefi... | 31 | 94 | 0.765591 | 48 | 465 | 7.3125 | 0.5625 | 0.094017 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020305 | 0.152688 | 465 | 14 | 95 | 33.214286 | 0.870558 | 0 | 0 | 0 | 0 | 0 | 0.316129 | 0.301075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
bad8f5ba5bba6f1c09743a472987af8c5e7d904e | 291 | py | Python | tests/supply-test.py | perpetualCreations/bandage | 1b61b9b9ac68a5a59dbbb4b5586c22f6961e935b | [
"MIT"
] | 1 | 2021-03-21T05:04:42.000Z | 2021-03-21T05:04:42.000Z | tests/supply-test.py | perpetualCreations/bandage | 1b61b9b9ac68a5a59dbbb4b5586c22f6961e935b | [
"MIT"
] | null | null | null | tests/supply-test.py | perpetualCreations/bandage | 1b61b9b9ac68a5a59dbbb4b5586c22f6961e935b | [
"MIT"
] | null | null | null | """unit test for bandage.Supply"""
import bandage
supplier = bandage.Supply(
"https://github.com/perpetualCreations/bandage/releases/tag/BANDAGE",
"F://bandage//tests//test_target//VERSION")
print(supplier.realize())
print(supplier.pre_collect_dump())
print(supplier.version_gap)
| 24.25 | 73 | 0.752577 | 36 | 291 | 5.972222 | 0.638889 | 0.181395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085911 | 291 | 11 | 74 | 26.454545 | 0.808271 | 0.09622 | 0 | 0 | 0 | 0 | 0.412451 | 0.155642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
badae7fa2546703ec6a20b95cc69a793bfa6b940 | 492 | py | Python | desktop/core/ext-py/greenlet-0.3.1/tests/test_weakref.py | digideskio/hortonworks-sandbox | dd8e95c91faee3daa094707baeb94c3953b41efa | [
"Apache-2.0"
] | 19 | 2015-05-01T19:59:03.000Z | 2021-12-09T08:03:16.000Z | desktop/core/ext-py/greenlet-0.3.1/tests/test_weakref.py | digideskio/hortonworks-sandbox | dd8e95c91faee3daa094707baeb94c3953b41efa | [
"Apache-2.0"
] | 1 | 2018-01-03T15:26:49.000Z | 2018-01-03T15:26:49.000Z | desktop/core/ext-py/greenlet-0.3.1/tests/test_weakref.py | hortonworks/hortonworks-sandbox | dd8e95c91faee3daa094707baeb94c3953b41efa | [
"Apache-2.0"
] | 30 | 2015-03-25T19:40:07.000Z | 2021-05-28T22:59:26.000Z | import gc
import greenlet
import weakref
import unittest
class WeakRefTests(unittest.TestCase):
def test_dead_weakref(self):
def _dead_greenlet():
g = greenlet.greenlet(lambda:None)
g.switch()
return g
o = weakref.ref(_dead_greenlet())
gc.collect()
... | 24.6 | 46 | 0.617886 | 56 | 492 | 5.285714 | 0.392857 | 0.047297 | 0.074324 | 0.141892 | 0.256757 | 0.256757 | 0.256757 | 0 | 0 | 0 | 0 | 0 | 0.276423 | 492 | 19 | 47 | 25.894737 | 0.831461 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bade483fcb1821220372bd41e8ce8d6fdbb4b560 | 1,699 | py | Python | BendersDecomposition/cplex.py | prameshk/Discrete-Optimization | 7cfb1e0977ab071ba5faf2b515e7838ff09fe579 | [
"MIT"
] | 4 | 2021-06-16T07:04:08.000Z | 2021-11-08T21:35:01.000Z | BendersDecomposition/cplex.py | prameshk/Discrete-Optimization | 7cfb1e0977ab071ba5faf2b515e7838ff09fe579 | [
"MIT"
] | null | null | null | BendersDecomposition/cplex.py | prameshk/Discrete-Optimization | 7cfb1e0977ab071ba5faf2b515e7838ff09fe579 | [
"MIT"
] | 1 | 2021-11-08T21:51:30.000Z | 2021-11-08T21:51:30.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 30 22:26:17 2020
@author: Pramesh Kumar
"""
import numpy as np
import time
def generateFacilityLocationData(C, F):
# Unbounded ray instance seed 159
np.random.seed(15645)
p = np.random.randint(1000, size=(C, F))
f = np.random.randint(1000, size=(F))
... | 28.316667 | 126 | 0.493231 | 254 | 1,699 | 3.295276 | 0.350394 | 0.117085 | 0.057348 | 0.105137 | 0.344086 | 0.221027 | 0.221027 | 0.221027 | 0.221027 | 0.155317 | 0 | 0.043247 | 0.22425 | 1,699 | 59 | 127 | 28.79661 | 0.591806 | 0.111242 | 0 | 0.189189 | 1 | 0 | 0.013622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bae9abee735558f26edead261f576dc0f852beff | 380 | py | Python | script_napari.py | plotly/dash-3d-viz | 496d521ffb2f394a2f7a3a1b68c9d5776bf1a028 | [
"MIT"
] | 2 | 2020-06-04T20:56:52.000Z | 2020-06-05T11:06:44.000Z | script_napari.py | plotly/dash-3d-viz | 496d521ffb2f394a2f7a3a1b68c9d5776bf1a028 | [
"MIT"
] | 1 | 2020-06-16T20:31:57.000Z | 2020-06-17T15:00:53.000Z | script_napari.py | plotly/dash-3d-viz | 496d521ffb2f394a2f7a3a1b68c9d5776bf1a028 | [
"MIT"
] | null | null | null | import napari
from nilearn import image
from skimage import segmentation
img = image.image.load_img('assets/BraTS19_2013_10_1_flair.nii').get_data()
viewer = napari.view_image(img)
pix = segmentation.slic(img, n_segments=10000, compactness=0.002, multichannel=False,
)
pix_boundaries = segmenta... | 31.666667 | 85 | 0.768421 | 52 | 380 | 5.384615 | 0.653846 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.139474 | 380 | 11 | 86 | 34.545455 | 0.801223 | 0 | 0 | 0 | 0 | 0 | 0.089474 | 0.089474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
baec0cd869d7afb2b17b039efdaef8410a2bebc6 | 249 | py | Python | ws4py/_asyncio_compat.py | diveyez/WebSocket-for-Python | a3e6d157b7bb1da1009e66aa750170f1c07aa143 | [
"BSD-3-Clause"
] | 733 | 2015-01-02T12:11:25.000Z | 2022-03-20T21:00:45.000Z | ws4py/_asyncio_compat.py | diveyez/WebSocket-for-Python | a3e6d157b7bb1da1009e66aa750170f1c07aa143 | [
"BSD-3-Clause"
] | 124 | 2015-01-11T10:22:48.000Z | 2021-11-24T17:44:18.000Z | ws4py/_asyncio_compat.py | diveyez/WebSocket-for-Python | a3e6d157b7bb1da1009e66aa750170f1c07aa143 | [
"BSD-3-Clause"
] | 251 | 2015-01-11T09:39:16.000Z | 2022-02-22T17:22:20.000Z | """Provide compatibility over different versions of asyncio."""
import asyncio
if hasattr(asyncio, "async"):
# Compatibility for Python 3.3 and older
ensure_future = getattr(asyncio, "async")
else:
ensure_future = asyncio.ensure_future | 27.666667 | 63 | 0.742972 | 31 | 249 | 5.870968 | 0.645161 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.160643 | 249 | 9 | 64 | 27.666667 | 0.861244 | 0.389558 | 0 | 0 | 0 | 0 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baf129a810bf414995d2f5915ec8689447b32c3e | 1,093 | py | Python | beproductive/pomodoro.py | JohannesStutz/beproductive | 119e766ba4eb29d16908dd9ff2e9b677a9cec955 | [
"Apache-2.0"
] | 2 | 2021-02-01T23:36:38.000Z | 2021-03-08T04:26:37.000Z | beproductive/pomodoro.py | JohannesStutz/beproductive | 119e766ba4eb29d16908dd9ff2e9b677a9cec955 | [
"Apache-2.0"
] | null | null | null | beproductive/pomodoro.py | JohannesStutz/beproductive | 119e766ba4eb29d16908dd9ff2e9b677a9cec955 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 02_pomodoro.ipynb (unless otherwise specified).
__all__ = ['WORK_TIME', 'BREAK_TIME', 'POMODOROS', 'pomodoro']
# Cell
from time import sleep
from .blocker import *
import sys
WORK_TIME = 25 # minutes
BREAK_TIME = 5 # minutes
POMODOROS = 4
# Cell
def pomodoro... | 34.15625 | 113 | 0.63678 | 138 | 1,093 | 4.92029 | 0.449275 | 0.070692 | 0.057437 | 0.097202 | 0.082474 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0.017413 | 0.26441 | 1,093 | 32 | 114 | 34.15625 | 0.827114 | 0.105215 | 0 | 0.08 | 1 | 0 | 0.294055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baf43f38cc9b07342d1f1d2e40a5df32e2005cd5 | 453 | py | Python | AmexTest.py | n1cfury/ViolentPython | c758de753bd56fe8b5c5b6db6f0f1b134023bf6f | [
"MIT"
] | null | null | null | AmexTest.py | n1cfury/ViolentPython | c758de753bd56fe8b5c5b6db6f0f1b134023bf6f | [
"MIT"
] | null | null | null | AmexTest.py | n1cfury/ViolentPython | c758de753bd56fe8b5c5b6db6f0f1b134023bf6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
def banner():
print "[***] Amex finder p 176 [***]"
def findCreditCard(pkt):
americaRE = re.findall("3[47][0-9][13]".raw)
if americaRE:
print "[+] Found American Express Card: "+americaRE[0]
def main():
tests = []
tests.append("I would like to buy 1337 copies of that dvd")
test... | 22.65 | 60 | 0.668874 | 67 | 453 | 4.402985 | 0.731343 | 0.074576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08971 | 0.163355 | 453 | 19 | 61 | 23.842105 | 0.688654 | 0.04415 | 0 | 0 | 0 | 0 | 0.386574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baf5cd31e38dc263cdc4440453a88e75480f1571 | 7,049 | py | Python | analysis/export.py | sunlightlabs/regulations-scraper | 5f2644a3cf54f915d7d90957645073737ab91022 | [
"BSD-3-Clause"
] | 13 | 2015-09-28T16:59:31.000Z | 2020-06-20T01:23:13.000Z | analysis/export.py | sunlightlabs/regulations-scraper | 5f2644a3cf54f915d7d90957645073737ab91022 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T20:26:21.000Z | 2021-02-25T01:43:44.000Z | analysis/export.py | sunlightlabs/regulations-scraper | 5f2644a3cf54f915d7d90957645073737ab91022 | [
"BSD-3-Clause"
] | 6 | 2015-07-08T22:41:34.000Z | 2019-09-03T18:19:32.000Z | #!/usr/bin/env python
import sys
import os
import csv
import time
import multiprocessing
from Queue import Empty
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
import StringIO
pid = os.getpid()
import_start = time.time()
print '[%s] Loading trie...' % pid
from oxtail.... | 36.335052 | 183 | 0.632714 | 912 | 7,049 | 4.712719 | 0.22807 | 0.018613 | 0.02094 | 0.026524 | 0.359702 | 0.322476 | 0.277338 | 0.261982 | 0.246161 | 0.22429 | 0 | 0.003819 | 0.219889 | 7,049 | 193 | 184 | 36.523316 | 0.777778 | 0.036317 | 0 | 0.276596 | 0 | 0 | 0.194899 | 0.010025 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.099291 | null | null | 0.056738 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bafb09d54ced0389dfe8042f970928a1b6e44637 | 777 | py | Python | altair_recipes/stripplot.py | piccolbo/altair_recipes | d9013ba60373c353ea14ce192c7dc978cc6836e5 | [
"BSD-3-Clause"
] | 89 | 2018-08-15T16:49:16.000Z | 2022-03-30T12:22:46.000Z | altair_recipes/stripplot.py | piccolbo/altair_recipes | d9013ba60373c353ea14ce192c7dc978cc6836e5 | [
"BSD-3-Clause"
] | 16 | 2018-08-14T17:56:36.000Z | 2022-02-23T05:56:11.000Z | altair_recipes/stripplot.py | piccolbo/altair_recipes | d9013ba60373c353ea14ce192c7dc978cc6836e5 | [
"BSD-3-Clause"
] | 4 | 2018-11-19T05:00:21.000Z | 2020-02-28T19:16:54.000Z | """Generate stripplots."""
from .common import multivariate_preprocess
from .signatures import multivariate_recipe, opacity, color
import altair as alt
from autosig import autosig, Signature
@autosig(
multivariate_recipe
+ Signature(color=color(default=None, position=3), opacity=opacity(position=4))
)
def str... | 31.08 | 88 | 0.693694 | 100 | 777 | 5.29 | 0.51 | 0.039698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.182754 | 777 | 24 | 89 | 32.375 | 0.817323 | 0.054054 | 0 | 0 | 1 | 0 | 0.009669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2406dd887fe5b4ed719d2434768385bde8958704 | 3,281 | py | Python | glue_jupyter/widgets/tests/test_linked_dropdown.py | pkgw/glue-jupyter | f8fff629fa5859c69f9c71264042ff9c0e347076 | [
"BSD-3-Clause"
] | null | null | null | glue_jupyter/widgets/tests/test_linked_dropdown.py | pkgw/glue-jupyter | f8fff629fa5859c69f9c71264042ff9c0e347076 | [
"BSD-3-Clause"
] | null | null | null | glue_jupyter/widgets/tests/test_linked_dropdown.py | pkgw/glue-jupyter | f8fff629fa5859c69f9c71264042ff9c0e347076 | [
"BSD-3-Clause"
] | null | null | null | from glue.core.state_objects import State
from glue.core.data_combo_helper import ComponentIDComboHelper
from glue.external.echo import SelectionCallbackProperty
from ..linked_dropdown import LinkedDropdown, LinkedDropdownMaterial
class DummyState(State):
"""Mock state class for testing only."""
x_att = Sel... | 30.663551 | 87 | 0.689424 | 444 | 3,281 | 4.975225 | 0.204955 | 0.032594 | 0.069262 | 0.031689 | 0.582164 | 0.572657 | 0.525124 | 0.516976 | 0.429153 | 0.429153 | 0 | 0.004175 | 0.196891 | 3,281 | 106 | 88 | 30.95283 | 0.834156 | 0.122524 | 0 | 0.59322 | 0 | 0 | 0.060203 | 0 | 0 | 0 | 0 | 0 | 0.423729 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
240d3483ae4f14b0494d34d78828bf09f96b22a8 | 465 | py | Python | djangocms_newsletter/testsettings.py | nephila/djangocms-newsletter | 5ebd8d3e1e2c85b2791d0261a954469f2548c840 | [
"BSD-3-Clause"
] | null | null | null | djangocms_newsletter/testsettings.py | nephila/djangocms-newsletter | 5ebd8d3e1e2c85b2791d0261a954469f2548c840 | [
"BSD-3-Clause"
] | null | null | null | djangocms_newsletter/testsettings.py | nephila/djangocms-newsletter | 5ebd8d3e1e2c85b2791d0261a954469f2548c840 | [
"BSD-3-Clause"
] | 2 | 2021-03-15T13:33:53.000Z | 2021-05-18T20:34:47.000Z | """Settings for testing emencia.django.newsletter"""
SITE_ID = 1
USE_I18N = False
ROOT_URLCONF = 'emencia.django.newsletter.urls'
DATABASES = {'default': {'NAME': 'newsletter_tests.db',
'ENGINE': 'django.db.backends.sqlite3'}}
INSTALLED_APPS = ['django.contrib.contenttypes',
... | 27.352941 | 65 | 0.584946 | 44 | 465 | 6.068182 | 0.681818 | 0.146067 | 0.258427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.277419 | 465 | 16 | 66 | 29.0625 | 0.782738 | 0.098925 | 0 | 0 | 0 | 0 | 0.460048 | 0.261501 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2412e937f76bf39a77720b16f02c64cdeb94da86 | 855 | py | Python | MyExtenstion.extension/Gaochao.tab/Gaochao.panel/Wall_Modify.pulldown/Wall_CurtainWall_Test.pushbutton/script.py | gaochaowyq/MyPyRevitExtentision | 0c8b134744550889dd95b2709299b2ef5a0cea6a | [
"MIT"
] | null | null | null | MyExtenstion.extension/Gaochao.tab/Gaochao.panel/Wall_Modify.pulldown/Wall_CurtainWall_Test.pushbutton/script.py | gaochaowyq/MyPyRevitExtentision | 0c8b134744550889dd95b2709299b2ef5a0cea6a | [
"MIT"
] | null | null | null | MyExtenstion.extension/Gaochao.tab/Gaochao.panel/Wall_Modify.pulldown/Wall_CurtainWall_Test.pushbutton/script.py | gaochaowyq/MyPyRevitExtentision | 0c8b134744550889dd95b2709299b2ef5a0cea6a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__doc__="更具曲面与垂直线创建结构"
import System
from System.Collections.Generic import List, Dictionary,IList
import sys
import clr
import os
import rpw
from rpw import revit, db, ui,DB,UI
from rpw.ui.forms import FlexForm, Label, ComboBox, TextBox, TextBox,Separator, Button, Alert
import json
from MyLib... | 20.853659 | 93 | 0.804678 | 112 | 855 | 5.946429 | 0.535714 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002604 | 0.101754 | 855 | 41 | 94 | 20.853659 | 0.864583 | 0.064327 | 0 | 0 | 0 | 0 | 0.018821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2420d25edc02fc425d58bf39ce86f78c2a795cad | 325 | py | Python | blog/migrations/0003_remove_comment_approved_comment.py | noodleslove/django_blog | 301d3190e70e32fd4637720ae1ed58882ccda876 | [
"MIT"
] | null | null | null | blog/migrations/0003_remove_comment_approved_comment.py | noodleslove/django_blog | 301d3190e70e32fd4637720ae1ed58882ccda876 | [
"MIT"
] | 9 | 2020-08-16T08:04:41.000Z | 2022-03-12T00:44:59.000Z | blog/migrations/0003_remove_comment_approved_comment.py | noodleslove/django_blog | 301d3190e70e32fd4637720ae1ed58882ccda876 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-02 01:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_comment'),
]
operations = [
migrations.RemoveField(
model_name='comment',
name='approved_comment',
),
... | 18.055556 | 47 | 0.587692 | 34 | 325 | 5.529412 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.298462 | 325 | 17 | 48 | 19.117647 | 0.741228 | 0.138462 | 0 | 0 | 1 | 0 | 0.140288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2427de993e3f47e157e8a27409af3be831c1ba4d | 1,286 | py | Python | src/products/api/serializers.py | bchuey/justapair | 4d71e4b80c1d48679741b1751c7a04f358e0b6a4 | [
"MIT"
] | null | null | null | src/products/api/serializers.py | bchuey/justapair | 4d71e4b80c1d48679741b1751c7a04f358e0b6a4 | [
"MIT"
] | null | null | null | src/products/api/serializers.py | bchuey/justapair | 4d71e4b80c1d48679741b1751c7a04f358e0b6a4 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from products.models import Jean, Brand, Size, Style, Color
class BrandModelSerializer(serializers.ModelSerializer):
class Meta:
model = Brand
fields = [
'id',
'name',
]
class SizeModelSerializer(serializers.ModelSeria... | 18.911765 | 59 | 0.520995 | 92 | 1,286 | 7.228261 | 0.391304 | 0.195489 | 0.105263 | 0.210526 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.38958 | 1,286 | 67 | 60 | 19.19403 | 0.847134 | 0 | 0 | 0.3125 | 0 | 0 | 0.070762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
242b9e45000310ad143682612663be0dfb107314 | 8,882 | py | Python | operator_api/transactor/tasks/process_passive_transfer_finalizations.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 1 | 2021-08-04T06:09:46.000Z | 2021-08-04T06:09:46.000Z | operator_api/transactor/tasks/process_passive_transfer_finalizations.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 8 | 2020-11-01T19:48:21.000Z | 2022-02-10T14:12:25.000Z | operator_api/transactor/tasks/process_passive_transfer_finalizations.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 3 | 2020-11-01T15:59:56.000Z | 2021-09-16T07:18:18.000Z | from __future__ import absolute_import, unicode_literals
import logging
from django.conf import settings
from django.db import transaction, IntegrityError
from celery import shared_task
from celery.utils.log import get_task_logger
from contractor.interfaces import LocalViewInterface
from operator_api.crypto import h... | 40.743119 | 170 | 0.711101 | 988 | 8,882 | 6.069838 | 0.197368 | 0.037519 | 0.032016 | 0.034684 | 0.384359 | 0.221444 | 0.123729 | 0.093047 | 0.055361 | 0.020344 | 0 | 0.000575 | 0.216843 | 8,882 | 217 | 171 | 40.930876 | 0.861558 | 0.036816 | 0 | 0.228916 | 0 | 0 | 0.084738 | 0.004448 | 0 | 0 | 0 | 0.004608 | 0 | 1 | 0.024096 | false | 0.066265 | 0.072289 | 0 | 0.210843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
243131bd4bd5c1dfc4db15f9b978b0ccdee06977 | 851 | py | Python | lib/x509Support.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | null | null | null | lib/x509Support.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 3 | 2015-12-02T19:37:45.000Z | 2016-01-20T03:21:48.000Z | lib/x509Support.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 1 | 2015-12-01T23:02:41.000Z | 2015-12-01T23:02:41.000Z | import sys
import M2Crypto
def extract_DN(fname):
"""
Extract a Distinguished Name from an X.509 proxy.
@type fname: string
@param fname: Filename containing the X.509 proxy
"""
fd = open(fname,"r")
try:
data = fd.read()
finally:
fd.close()
while 1:
try:
... | 23.638889 | 65 | 0.541716 | 109 | 851 | 4.137615 | 0.642202 | 0.070953 | 0.039911 | 0.066519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023723 | 0.356052 | 851 | 35 | 66 | 24.314286 | 0.79927 | 0.096357 | 0 | 0.090909 | 0 | 0 | 0.095008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24318cc53a456f38e8fd47e63bf8cf78000efea4 | 496 | py | Python | saxo/Utils.py | ayxue/BaiduSaxoOpenAPI | d042366bb33ebdc4471b29e167b01c4cb7cb298d | [
"Apache-2.0"
] | null | null | null | saxo/Utils.py | ayxue/BaiduSaxoOpenAPI | d042366bb33ebdc4471b29e167b01c4cb7cb298d | [
"Apache-2.0"
] | null | null | null | saxo/Utils.py | ayxue/BaiduSaxoOpenAPI | d042366bb33ebdc4471b29e167b01c4cb7cb298d | [
"Apache-2.0"
] | null | null | null | from collections import namedtuple
class Utils:
def __init__(self):
pass
@staticmethod
def DicToObj(name, dic = {}):
keys = list(dic.keys())
vals = list(dic.values())
Data = namedtuple('data', keys)
return Data._make(vals)
@staticmethod
def DicToObjList(nam... | 24.8 | 54 | 0.5625 | 53 | 496 | 5.169811 | 0.584906 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324597 | 496 | 20 | 55 | 24.8 | 0.81791 | 0 | 0 | 0.117647 | 0 | 0 | 0.008048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2431b5a56f94a08acd174c2d3c95aea9a187bdfa | 1,168 | py | Python | All Python Practice - IT 89/Python psets/pset2/ps2a.py | mrouhi13/my-mit-python-practice | f3b29418576fec54d3f9f55155aa8f2096ad974a | [
"MIT"
] | null | null | null | All Python Practice - IT 89/Python psets/pset2/ps2a.py | mrouhi13/my-mit-python-practice | f3b29418576fec54d3f9f55155aa8f2096ad974a | [
"MIT"
] | null | null | null | All Python Practice - IT 89/Python psets/pset2/ps2a.py | mrouhi13/my-mit-python-practice | f3b29418576fec54d3f9f55155aa8f2096ad974a | [
"MIT"
] | null | null | null | #!/usr/bin/python
#----------------------------------------
# Name: ps2a.py
# Coded by Majid Roohi
# Last Modified: 03/12/2010 , 03:28 PM
# Description: -
#----------------------------------------
def Diophantine() :
'''Program take number of McNuggets from the user and test 0 to N (number of McNuggets) ... | 30.736842 | 145 | 0.455479 | 155 | 1,168 | 3.432258 | 0.509677 | 0.037594 | 0.095865 | 0.084586 | 0.216165 | 0.154135 | 0.045113 | 0 | 0 | 0 | 0 | 0.04742 | 0.38613 | 1,168 | 37 | 146 | 31.567568 | 0.694561 | 0.160103 | 0 | 0 | 0 | 0 | 0.167692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
243867cc13462e0b51862074214a0f0d1328286c | 503 | py | Python | shop/migrations/0034_auto_20180321_1311.py | sumangaire52/dammideal | 83c0a6e962b51405016ed83c4597ebcd9dee0d04 | [
"Apache-2.0"
] | null | null | null | shop/migrations/0034_auto_20180321_1311.py | sumangaire52/dammideal | 83c0a6e962b51405016ed83c4597ebcd9dee0d04 | [
"Apache-2.0"
] | 7 | 2020-06-05T17:55:00.000Z | 2022-01-13T00:44:26.000Z | shop/migrations/0034_auto_20180321_1311.py | sumangaire52/dammideal | 83c0a6e962b51405016ed83c4597ebcd9dee0d04 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.1 on 2018-03-21 07:26
from django.db import migrations
import django_resized.forms
class Migration(migrations.Migration):
dependencies = [
('shop', '0033_auto_20180321_1242'),
]
operations = [
migrations.AlterField(
model_name='carousal',
... | 25.15 | 148 | 0.646123 | 59 | 503 | 5.355932 | 0.813559 | 0.082278 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 0.234592 | 503 | 19 | 149 | 26.473684 | 0.711688 | 0.089463 | 0 | 0 | 1 | 0 | 0.089912 | 0.050439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2438e1e3b56ec7e46d207f4d8d21dee6ca8b3830 | 2,242 | py | Python | LAB/predictive_keyboard/medical/run_mimic.py | ipavlopoulos/lm | b9ad7d98be47c0f1a6b446a090d1fce488bb2e3f | [
"Apache-2.0"
] | null | null | null | LAB/predictive_keyboard/medical/run_mimic.py | ipavlopoulos/lm | b9ad7d98be47c0f1a6b446a090d1fce488bb2e3f | [
"Apache-2.0"
] | 5 | 2020-02-11T21:23:02.000Z | 2022-02-10T02:04:14.000Z | LAB/predictive_keyboard/medical/run_mimic.py | ipavlopoulos/lm | b9ad7d98be47c0f1a6b446a090d1fce488bb2e3f | [
"Apache-2.0"
] | 1 | 2020-09-25T15:47:08.000Z | 2020-09-25T15:47:08.000Z | import pandas as pd
from sklearn.model_selection import train_test_split
from markov import models as markov_models
from neural import models as neural_models
from collections import Counter
from scipy.stats import sem
from toolkit import *
# todo: add FLAGS
if __name__ == "main":
use_radiology_only = True
use... | 33.462687 | 110 | 0.67752 | 323 | 2,242 | 4.55418 | 0.362229 | 0.027192 | 0.019035 | 0.024473 | 0.093814 | 0.03399 | 0 | 0 | 0 | 0 | 0 | 0.018878 | 0.196699 | 2,242 | 66 | 111 | 33.969697 | 0.797335 | 0.123104 | 0 | 0 | 0 | 0.02381 | 0.134596 | 0.058854 | 0 | 0 | 0 | 0.015152 | 0.02381 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
243b2fd050a284e57fb7cc123d04a641abd1bd34 | 6,397 | py | Python | endpoint/endpoint.py | BU-NU-CLOUD-SP16/Container-Safety-Determination | e99a5039ddf1d27362fb6db0c1c1a69814bdc36d | [
"MIT"
] | 14 | 2016-05-26T23:12:24.000Z | 2022-03-13T18:58:06.000Z | endpoint/endpoint.py | miradam/docker-introspection | e99a5039ddf1d27362fb6db0c1c1a69814bdc36d | [
"MIT"
] | 4 | 2016-02-25T20:29:50.000Z | 2016-04-25T03:59:49.000Z | endpoint/endpoint.py | BU-NU-CLOUD-SP16/Container-Safety-Determination | e99a5039ddf1d27362fb6db0c1c1a69814bdc36d | [
"MIT"
] | 4 | 2016-06-20T19:40:10.000Z | 2021-07-26T13:13:21.000Z | #####################################################################
# File: endpoint.py
# Author: Rahul Sharma <rahuls@ccs.neu.edu>
# Desc: Configures a REST API endpoint listening on port configured.
# Captures the notifications sent by Docker registry v2,
# processes them and identifies the newly added ... | 31.357843 | 94 | 0.5859 | 784 | 6,397 | 4.630102 | 0.298469 | 0.033333 | 0.035813 | 0.015702 | 0.086501 | 0.062259 | 0.020386 | 0 | 0 | 0 | 0 | 0.006457 | 0.273722 | 6,397 | 203 | 95 | 31.512315 | 0.77486 | 0.182273 | 0 | 0.153285 | 0 | 0 | 0.137208 | 0.014235 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014599 | 0.094891 | null | null | 0.043796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.