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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a49afb80789480d7cb57a77b968a1e32a26b82e3 | 806 | py | Python | app.py | iUwej/Remote-Logger-Server | 8adfd4b85e277ea7e4bd24c22462ff54f0ddedd8 | [
"Unlicense"
] | null | null | null | app.py | iUwej/Remote-Logger-Server | 8adfd4b85e277ea7e4bd24c22462ff54f0ddedd8 | [
"Unlicense"
] | null | null | null | app.py | iUwej/Remote-Logger-Server | 8adfd4b85e277ea7e4bd24c22462ff54f0ddedd8 | [
"Unlicense"
] | null | null | null |
from flask import Flask
from flask import request
from flask import jsonify
from flask_redis import FlaskRedis
app = Flask(__name__)
#provide the redis configuration in the app configs to use this
redis_store = FlaskRedis(app)
@app.route('/')
def index():
return 'Home to the remote logger'
@app.route('/loge... | 17.148936 | 63 | 0.705955 | 118 | 806 | 4.618644 | 0.491525 | 0.066055 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013255 | 0.157568 | 806 | 46 | 64 | 17.521739 | 0.789396 | 0.08933 | 0 | 0 | 0 | 0 | 0.142466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.16 | 0.04 | 0.44 | 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 | 0 | 0 | 1 | 0 |
a49de0a573a17e1a8abeb597091da40cf1ac2a4e | 2,529 | py | Python | DBProcessing/ProcessIphoneBackup.py | georgezywang/RealTime_Wechat_Analysis | baa9ba4a06d9d6b4ce13b951f1b3846ebd338ce8 | [
"MIT"
] | null | null | null | DBProcessing/ProcessIphoneBackup.py | georgezywang/RealTime_Wechat_Analysis | baa9ba4a06d9d6b4ce13b951f1b3846ebd338ce8 | [
"MIT"
] | null | null | null | DBProcessing/ProcessIphoneBackup.py | georgezywang/RealTime_Wechat_Analysis | baa9ba4a06d9d6b4ce13b951f1b3846ebd338ce8 | [
"MIT"
] | null | null | null | import sqlite3 as sqlite
import os
from Utils import *
iphoneBackupDir = "IphoneBackup"
m_nsAliasName = "wxid_t798rxqmvz7s11"
PARSED_DB_PATH = "DataStore/Contact.db"
PARSED_DATA_CONNECTION = ConnectNonEncryptedDB(PARSED_DB_PATH)
userAlias, userChatEncryption, userDB = GetUpdateContactInfo(PARSED_DATA_CONNECTION, m_ns... | 38.318182 | 123 | 0.594306 | 228 | 2,529 | 6.377193 | 0.368421 | 0.049519 | 0.068776 | 0.039202 | 0.093535 | 0.093535 | 0.093535 | 0.093535 | 0.066025 | 0.066025 | 0 | 0.013537 | 0.328193 | 2,529 | 65 | 124 | 38.907692 | 0.84226 | 0 | 0 | 0.04 | 0 | 0 | 0.373217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.06 | 0 | 0.14 | 0.02 | 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 | 0 | 1 | 0 |
a49f7d80f24b4797e2ac4f693214e1ea5cd6017e | 2,936 | py | Python | sohojoe_wrappers.py | Sohojoe/many_towers | 527b3c4b591a3d0919b76395ecfc22c4c0059b08 | [
"MIT"
] | null | null | null | sohojoe_wrappers.py | Sohojoe/many_towers | 527b3c4b591a3d0919b76395ecfc22c4c0059b08 | [
"MIT"
] | null | null | null | sohojoe_wrappers.py | Sohojoe/many_towers | 527b3c4b591a3d0919b76395ecfc22c4c0059b08 | [
"MIT"
] | null | null | null | import os
import gym
import numpy as np
def done_grading(env):
if hasattr(env, 'done_grading'):
return env.done_grading()
if hasattr(env, 'env'):
return done_grading(env.env)
if hasattr(env, '_env'):
return done_grading(env._env)
def is_grading(env):
if hasattr(env, 'is_gradin... | 32.988764 | 96 | 0.583447 | 388 | 2,936 | 4.193299 | 0.255155 | 0.073755 | 0.044253 | 0.036878 | 0.244622 | 0.195452 | 0.157345 | 0.11555 | 0.090965 | 0 | 0 | 0.027107 | 0.308924 | 2,936 | 88 | 97 | 33.363636 | 0.774766 | 0.070504 | 0 | 0.138889 | 0 | 0 | 0.028645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.013889 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
a4a374d1f47637ba07c0cd5f25d45e1f33628c90 | 1,466 | py | Python | jdcloud_sdk/services/asset/models/OperatingStatementVo.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 14 | 2018-04-19T09:53:56.000Z | 2022-01-27T06:05:48.000Z | jdcloud_sdk/services/asset/models/OperatingStatementVo.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 15 | 2018-09-11T05:39:54.000Z | 2021-07-02T12:38:02.000Z | jdcloud_sdk/services/asset/models/OperatingStatementVo.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 33 | 2018-04-20T05:29:16.000Z | 2022-02-17T09:10:05.000Z | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 38.578947 | 126 | 0.705321 | 202 | 1,466 | 5.09901 | 0.628713 | 0.058252 | 0.025243 | 0.031068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036114 | 0.206685 | 1,466 | 37 | 127 | 39.621622 | 0.849527 | 0.678035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a4a94de479ad444e62d5c5754fb01c753297dfe3 | 34,996 | py | Python | moya/tags/server.py | moyaproject/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 129 | 2015-02-16T12:02:50.000Z | 2021-11-06T00:20:01.000Z | moya/tags/server.py | liaohandel/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 5 | 2015-02-19T15:56:41.000Z | 2015-09-08T18:58:35.000Z | moya/tags/server.py | liaohandel/moya | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | [
"MIT"
] | 14 | 2015-02-19T17:20:34.000Z | 2022-03-28T01:38:09.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from ..elements import Attribute
from ..elements.elementbase import LogicElement
from ..tags.context import ContextElementBase, DataSetter
from .. import logic
from ..urlmapper import URLMapper, Missing... | 33.81256 | 213 | 0.566808 | 3,678 | 34,996 | 5.283578 | 0.126427 | 0.023054 | 0.022693 | 0.01235 | 0.297792 | 0.235784 | 0.195647 | 0.161118 | 0.133639 | 0.100242 | 0 | 0.001718 | 0.334695 | 34,996 | 1,034 | 214 | 33.845261 | 0.832925 | 0.068465 | 0 | 0.330909 | 0 | 0 | 0.098984 | 0.003128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042424 | false | 0.002424 | 0.046061 | 0.002424 | 0.213333 | 0.001212 | 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 | 0 | 1 | 0 |
8ef69a8e8cd014e8cddf55bfd7f3ad8fb1bda81e | 5,132 | py | Python | src/media/data/nouns.py | cjcodeproj/medialibrary | 466ba475561f7701fe41ebe196aaf789a0aa7237 | [
"MIT"
] | null | null | null | src/media/data/nouns.py | cjcodeproj/medialibrary | 466ba475561f7701fe41ebe196aaf789a0aa7237 | [
"MIT"
] | 29 | 2021-09-06T00:46:30.000Z | 2022-03-23T16:47:04.000Z | src/media/data/nouns.py | cjcodeproj/medialibrary | 466ba475561f7701fe41ebe196aaf789a0aa7237 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Objects for representation of proper nouns used in keywords.
'''
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-branches
# pylint: disable=too-many-instance-attributes
from media.xml.namespaces import Namespaces
class AbstractNoun():
'''
Root class for all noun... | 28.511111 | 66 | 0.567225 | 607 | 5,132 | 4.581549 | 0.228995 | 0.097087 | 0.074793 | 0.055016 | 0.347717 | 0.314635 | 0.277958 | 0.277958 | 0.236246 | 0.163251 | 0 | 0 | 0.33067 | 5,132 | 179 | 67 | 28.670391 | 0.809607 | 0.16855 | 0 | 0.336134 | 0 | 0 | 0.020369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12605 | false | 0 | 0.008403 | 0.042017 | 0.235294 | 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 | 0 | 0 | 1 | 0 |
8ef75298706c9e95500d4b99ead2e2f3a0f95ab6 | 1,325 | py | Python | get_together/views/utils.py | alysivji/GetTogether | 403d9945fff019701de41d081ad4452e771e1ce1 | [
"BSD-2-Clause"
] | 446 | 2018-01-21T09:22:41.000Z | 2022-03-25T17:46:12.000Z | get_together/views/utils.py | alysivji/GetTogether | 403d9945fff019701de41d081ad4452e771e1ce1 | [
"BSD-2-Clause"
] | 272 | 2018-01-03T16:55:39.000Z | 2022-03-11T23:12:30.000Z | get_together/views/utils.py | alysivji/GetTogether | 403d9945fff019701de41d081ad4452e771e1ce1 | [
"BSD-2-Clause"
] | 100 | 2018-01-27T02:04:15.000Z | 2021-09-09T09:02:21.000Z | import math
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from events.location import get_client_ip, get_geoip
from events.models import Team
KM_PER_DEGREE_LAT = 110.574
KM_PER_DEGREE_LNG = 111.320 # At the equator
DEFAULT_NEAR_DISTANCE = 100 # kilometeres
def get_nearb... | 33.974359 | 85 | 0.667925 | 186 | 1,325 | 4.467742 | 0.403226 | 0.075812 | 0.079422 | 0.081829 | 0.262335 | 0.226233 | 0.226233 | 0.226233 | 0.226233 | 0.144404 | 0 | 0.022931 | 0.243019 | 1,325 | 38 | 86 | 34.868421 | 0.805583 | 0.019623 | 0 | 0.125 | 0 | 0 | 0.051698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.28125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f103e29578195afcbfb92ba556cee4316213c6ba | 1,833 | py | Python | tests/python/unittest/test_infer_type.py | mozga-intel/incubator-mxnet | 7dcfedca704f39b4b9b7497dabf3fea47ad40df4 | [
"BSL-1.0",
"Apache-2.0"
] | 13 | 2017-08-11T05:19:48.000Z | 2020-05-12T02:09:27.000Z | tests/python/unittest/test_infer_type.py | mozga-intel/incubator-mxnet | 7dcfedca704f39b4b9b7497dabf3fea47ad40df4 | [
"BSL-1.0",
"Apache-2.0"
] | 4 | 2021-03-30T11:59:59.000Z | 2022-03-12T00:40:23.000Z | tests/python/unittest/test_infer_type.py | mozga-intel/incubator-mxnet | 7dcfedca704f39b4b9b7497dabf3fea47ad40df4 | [
"BSL-1.0",
"Apache-2.0"
] | 13 | 2016-11-10T06:38:46.000Z | 2021-03-18T21:26:11.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.327273 | 91 | 0.713039 | 279 | 1,833 | 4.609319 | 0.487455 | 0.021773 | 0.032659 | 0.051322 | 0.108865 | 0.043546 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.184397 | 1,833 | 54 | 92 | 33.944444 | 0.825418 | 0.420076 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1040870685ccb486372b534a48008c1e473c417 | 871 | py | Python | Examples/ReinforcementLearning/deeprl/env/env_factory.py | burhandodhy/CNTK | fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e | [
"MIT"
] | 17,702 | 2016-01-25T14:03:01.000Z | 2019-05-06T09:23:41.000Z | Examples/ReinforcementLearning/deeprl/env/env_factory.py | burhandodhy/CNTK | fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e | [
"MIT"
] | 3,489 | 2016-01-25T13:32:09.000Z | 2019-05-03T11:29:15.000Z | Examples/ReinforcementLearning/deeprl/env/env_factory.py | burhandodhy/CNTK | fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e | [
"MIT"
] | 5,180 | 2016-01-25T14:02:12.000Z | 2019-05-06T04:24:28.000Z | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
from gym import envs
from . import maze2d, puddleworld
def register_env(env_id):... | 29.033333 | 80 | 0.552239 | 97 | 871 | 4.804124 | 0.56701 | 0.064378 | 0.060086 | 0.06867 | 0.313305 | 0.313305 | 0.313305 | 0.145923 | 0.145923 | 0 | 0 | 0.032813 | 0.265212 | 871 | 29 | 81 | 30.034483 | 0.695313 | 0.259472 | 0 | 0.4 | 0 | 0 | 0.153125 | 0.042188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f104bbe2ef41441b68ca62399f90007c7e48f1ad | 2,599 | py | Python | labdrivers/version.py | pbnjeff89/labdrivers | 1091b9f746a5a011d94cd63abf5010fc8cde1556 | [
"MIT"
] | null | null | null | labdrivers/version.py | pbnjeff89/labdrivers | 1091b9f746a5a011d94cd63abf5010fc8cde1556 | [
"MIT"
] | null | null | null | labdrivers/version.py | pbnjeff89/labdrivers | 1091b9f746a5a011d94cd63abf5010fc8cde1556 | [
"MIT"
] | null | null | null | from os.path import join as pjoin
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 0
_version_minor = 9
_version_micro = 8 # use '' for first of series, number for 1 and above
_version_extra = 'dev'
# _version_extra = '' # Uncomment this for full releases
# Construct ful... | 32.4875 | 77 | 0.709504 | 319 | 2,599 | 5.626959 | 0.570533 | 0.026741 | 0.017827 | 0.030084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004286 | 0.191997 | 2,599 | 79 | 78 | 32.898734 | 0.850476 | 0.116199 | 0 | 0 | 0 | 0 | 0.591525 | 0.040192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016393 | 0 | 0.016393 | 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 | 0 | 0 | 1 | 0 |
f10572b5580f12fbec993a136bc3e170dbb62b5c | 10,347 | py | Python | experiments/gbnf/experiment/boosted_experiment.py | robert-giaquinto/survae_flows | 4d7dc638f77c48ad3c8393b967c33ac9dbad60fe | [
"MIT"
] | 2 | 2021-03-06T19:37:39.000Z | 2022-01-09T11:19:45.000Z | experiments/gbnf/experiment/boosted_experiment.py | robert-giaquinto/survae_flows | 4d7dc638f77c48ad3c8393b967c33ac9dbad60fe | [
"MIT"
] | null | null | null | experiments/gbnf/experiment/boosted_experiment.py | robert-giaquinto/survae_flows | 4d7dc638f77c48ad3c8393b967c33ac9dbad60fe | [
"MIT"
] | null | null | null | import torch
import torchvision.utils as vutils
import math
import numpy as np
from survae.distributions import DataParallelDistribution
from survae.utils import elbo_bpd
from .utils import get_args_table, clean_dict
# Path
import os
import time
from survae.data.path import get_survae_path
# Experiment
from .base im... | 45.183406 | 163 | 0.586837 | 1,234 | 10,347 | 4.689627 | 0.138574 | 0.048384 | 0.026611 | 0.033178 | 0.527562 | 0.488509 | 0.470192 | 0.460515 | 0.449974 | 0.418524 | 0 | 0.007769 | 0.303373 | 10,347 | 228 | 164 | 45.381579 | 0.795089 | 0.106311 | 0 | 0.354037 | 0 | 0 | 0.05379 | 0.033619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062112 | false | 0 | 0.093168 | 0 | 0.192547 | 0.031056 | 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 | 0 | 1 | 0 |
f105b721afb9f845c4e320b2b60eb5e5d9422cbd | 6,838 | py | Python | code4step2/data_registration.py | yukeyi/MCDS-Capstone | f7ce48fc5d3f5f96c1f29556585ed2338683c7d2 | [
"MIT"
] | null | null | null | code4step2/data_registration.py | yukeyi/MCDS-Capstone | f7ce48fc5d3f5f96c1f29556585ed2338683c7d2 | [
"MIT"
] | null | null | null | code4step2/data_registration.py | yukeyi/MCDS-Capstone | f7ce48fc5d3f5f96c1f29556585ed2338683c7d2 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
import xarray as xr
import pickle as pkl
from datetime import datetime
from scipy import ndimage as ndi
import SimpleITK as sitk
import skimage as skim
from skimage import feature, morphology
import glob
class RegHearts:
'''Class that generates liver masks for MRE ... | 45.586667 | 100 | 0.665107 | 722 | 6,838 | 6.121884 | 0.279778 | 0.033937 | 0.025339 | 0.027149 | 0.159276 | 0.080995 | 0.078281 | 0.043439 | 0.017647 | 0 | 0 | 0.022803 | 0.211173 | 6,838 | 149 | 101 | 45.892617 | 0.796626 | 0.200351 | 0 | 0.018868 | 0 | 0 | 0.122539 | 0.075621 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.103774 | 0 | 0.207547 | 0.037736 | 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 | 0 | 1 | 0 |
f10a2eb48e0f895a84465c9f5a4dec731cfd9d4c | 1,584 | py | Python | minicCompiler.py | CorentinGoet/miniC-Compiler | 8631b1ce47e9de1c3a3255d7c0a941242ad48292 | [
"MIT"
] | null | null | null | minicCompiler.py | CorentinGoet/miniC-Compiler | 8631b1ce47e9de1c3a3255d7c0a941242ad48292 | [
"MIT"
] | null | null | null | minicCompiler.py | CorentinGoet/miniC-Compiler | 8631b1ce47e9de1c3a3255d7c0a941242ad48292 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
@author Corentin Goetghebeur (github.com/CorentinGoet).
"""
from lexer_pkg.lexer import Lexer
from parser_pkg.parser import Parser
from CLI.CLIinterface import CLI
import sys
import os
from CLI.actions import Actions
from pretty_printer_pkg.pretty_printer import PrettyPrinter
def main():
... | 21.405405 | 64 | 0.614268 | 199 | 1,584 | 4.798995 | 0.40201 | 0.031414 | 0.071204 | 0.075393 | 0.146597 | 0.146597 | 0.146597 | 0.146597 | 0 | 0 | 0 | 0.00434 | 0.272727 | 1,584 | 73 | 65 | 21.69863 | 0.824653 | 0.07702 | 0 | 0.229167 | 0 | 0 | 0.137282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.145833 | 0 | 0.166667 | 0.1875 | 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 | 0 | 1 | 0 |
f110bbe65f1ea9ba273384dc8c0ede07db3a4131 | 1,025 | py | Python | QTM_F/1D/pH2/cor.py | binggu56/qmd | e2628710de15f8a8b9a1280fcf92f9e87559414c | [
"MIT"
] | null | null | null | QTM_F/1D/pH2/cor.py | binggu56/qmd | e2628710de15f8a8b9a1280fcf92f9e87559414c | [
"MIT"
] | null | null | null | QTM_F/1D/pH2/cor.py | binggu56/qmd | e2628710de15f8a8b9a1280fcf92f9e87559414c | [
"MIT"
] | null | null | null | ##!/usr/bin/python
import numpy as np
import pylab as plt
import matplotlib as mpl
import seaborn as sns
sns.set_context("poster",font_scale=1.5)
sns.set_style({'font.family':'Times New Roman'})
mpl.rcParams['lines.linewidth'] = 2
data = np.genfromtxt(fname='cor.dat')
ncols = data.shape[1]
#for x in range(1,ncol... | 25.625 | 64 | 0.633171 | 186 | 1,025 | 3.430108 | 0.403226 | 0.109718 | 0.137931 | 0.15047 | 0.429467 | 0.109718 | 0.109718 | 0.109718 | 0.109718 | 0.109718 | 0 | 0.049215 | 0.068293 | 1,025 | 39 | 65 | 26.282051 | 0.618848 | 0.29561 | 0 | 0 | 0 | 0 | 0.192686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 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 | 0 | 0 | 1 | 0 |
f111dbbb6122c9440b75b9f703c03c87600c2765 | 721 | py | Python | packages/pyright-internal/src/tests/samples/tuples10.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 4,391 | 2019-05-07T01:18:57.000Z | 2022-03-31T20:45:44.000Z | packages/pyright-internal/src/tests/samples/tuples10.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 2,740 | 2019-05-07T03:29:30.000Z | 2022-03-31T12:57:46.000Z | packages/pyright-internal/src/tests/samples/tuples10.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 455 | 2019-05-07T12:55:14.000Z | 2022-03-31T17:09:15.000Z | # This sample tests that inferred types for tuples strip
# literals under the appropriate circumstances.
from typing import List, Literal, Tuple
a1 = (1, 2)
t1: Literal["tuple[Literal[1], Literal[2]]"] = reveal_type(a1)
a2 = list((1, 2))
t2: Literal["list[int]"] = reveal_type(a2)
a3: List[Literal[1]] = list((1,))... | 23.258065 | 65 | 0.638003 | 114 | 721 | 3.973684 | 0.403509 | 0.14128 | 0.11479 | 0.119205 | 0.242826 | 0.12362 | 0 | 0 | 0 | 0 | 0 | 0.069079 | 0.156727 | 721 | 30 | 66 | 24.033333 | 0.675987 | 0.138696 | 0 | 0 | 0 | 0 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f113582e7cd0fe94674bc2e6c6d22332d46a63a0 | 5,027 | py | Python | chess/states/intro.py | cuiqui/chrisis | d824bde0bc4a3b9def86550f5bae0db6398f971e | [
"MIT"
] | null | null | null | chess/states/intro.py | cuiqui/chrisis | d824bde0bc4a3b9def86550f5bae0db6398f971e | [
"MIT"
] | null | null | null | chess/states/intro.py | cuiqui/chrisis | d824bde0bc4a3b9def86550f5bae0db6398f971e | [
"MIT"
] | null | null | null | import logging
from pathlib import Path
from dataclasses import dataclass
from typing import Union
import pygame as pg
import chess.settings as s
from chess.states.state import State
from chess.panels.intro.title import Title
from chess.panels.intro.menu import Menu
from chess.panels.console import Console
from chess... | 31.616352 | 88 | 0.539089 | 608 | 5,027 | 4.378289 | 0.279605 | 0.024793 | 0.022539 | 0.033058 | 0.279865 | 0.246056 | 0.246056 | 0.246056 | 0.207739 | 0.185199 | 0 | 0.018385 | 0.339964 | 5,027 | 158 | 89 | 31.816456 | 0.783906 | 0 | 0 | 0.258741 | 0 | 0.013986 | 0.065248 | 0.005172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055944 | false | 0 | 0.083916 | 0 | 0.202797 | 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 | 0 | 0 | 1 | 0 |
f114f18da4ab04c0defa026734c3b47686aa23f5 | 624 | py | Python | examples/custom_full_model_prediction.py | vickyvava/ImageAI | fc23bc1374d5a29f816c0895b37cb769b1766eac | [
"MIT"
] | 6 | 2019-09-03T01:45:20.000Z | 2021-09-08T09:07:49.000Z | examples/custom_full_model_prediction.py | vickyvava/ImageAI | fc23bc1374d5a29f816c0895b37cb769b1766eac | [
"MIT"
] | 3 | 2020-08-09T11:49:24.000Z | 2020-10-20T00:25:07.000Z | examples/custom_full_model_prediction.py | vickyvava/ImageAI | fc23bc1374d5a29f816c0895b37cb769b1766eac | [
"MIT"
] | 1 | 2019-12-30T18:56:05.000Z | 2019-12-30T18:56:05.000Z | from imageai.Prediction.Custom import CustomImagePrediction
import os
execution_path = os.getcwd()
predictor = CustomImagePrediction()
predictor.setModelPath(model_path=os.path.join(execution_path, "idenprof_full_resnet_ex-001_acc-0.119792.h5")) # Download the model via this link https://github.com/OlafenwaMoses/Ima... | 32.842105 | 209 | 0.820513 | 83 | 624 | 6.012048 | 0.638554 | 0.104208 | 0.06012 | 0.114228 | 0.170341 | 0.124249 | 0 | 0 | 0 | 0 | 0 | 0.027444 | 0.065705 | 624 | 18 | 210 | 34.666667 | 0.828473 | 0.153846 | 0 | 0 | 0 | 0 | 0.116635 | 0.082218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f116e25e44c1bee36f55a82c2b9058f44ab798b0 | 5,391 | py | Python | prometheus_ecs_discoverer/marshalling.py | lejmr/prometheus-ecs-discoverer | d4968c6e3f8588a9f64157462a82420d099ac583 | [
"Apache-2.0"
] | null | null | null | prometheus_ecs_discoverer/marshalling.py | lejmr/prometheus-ecs-discoverer | d4968c6e3f8588a9f64157462a82420d099ac583 | [
"Apache-2.0"
] | null | null | null | prometheus_ecs_discoverer/marshalling.py | lejmr/prometheus-ecs-discoverer | d4968c6e3f8588a9f64157462a82420d099ac583 | [
"Apache-2.0"
] | null | null | null | import json
import os
import re
from typing import Dict, List, Type
from loguru import logger
from prometheus_ecs_discoverer import s
from prometheus_ecs_discoverer.discovery import Target
# Copyright 2018, 2019 Signal Media Ltd. Licensed under the Apache License 2.0
# Modifications Copyright 2020 Tim Schwenke. Lice... | 27.932642 | 86 | 0.59488 | 623 | 5,391 | 4.969502 | 0.263242 | 0.01938 | 0.03876 | 0.017442 | 0.116925 | 0.106589 | 0.106589 | 0.086563 | 0.086563 | 0.086563 | 0 | 0.02194 | 0.298275 | 5,391 | 192 | 87 | 28.078125 | 0.796458 | 0.213689 | 0 | 0.134021 | 0 | 0 | 0.061526 | 0.014278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041237 | false | 0 | 0.072165 | 0 | 0.195876 | 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 | 0 | 0 | 1 | 0 |
f117d7f32926745dd2bc177a8ad4c629308d255f | 1,242 | py | Python | tests/mlflow/test_mlflow_logging.py | MuttData/soam | 65612a02552668c6721dc20e675654883391c3e9 | [
"Apache-2.0"
] | 1 | 2021-09-17T01:14:57.000Z | 2021-09-17T01:14:57.000Z | tests/mlflow/test_mlflow_logging.py | MuttData/soam | 65612a02552668c6721dc20e675654883391c3e9 | [
"Apache-2.0"
] | null | null | null | tests/mlflow/test_mlflow_logging.py | MuttData/soam | 65612a02552668c6721dc20e675654883391c3e9 | [
"Apache-2.0"
] | 1 | 2021-08-09T14:22:50.000Z | 2021-08-09T14:22:50.000Z | from unittest.mock import patch
import mlflow
from soam.core import SoamFlow
from soam.workflow import Slicer
from tests.helpers import sample_data_df # pylint: disable=unused-import
def test_simple_flow(sample_data_df, tmpdir): # pylint: disable=redefined-outer-name
tmp_path = "file://" + str(tmpdir) + "/mlr... | 40.064516 | 85 | 0.6562 | 166 | 1,242 | 4.692771 | 0.385542 | 0.032092 | 0.061617 | 0.084724 | 0.125802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.207729 | 1,242 | 30 | 86 | 41.4 | 0.787602 | 0.05314 | 0 | 0 | 0 | 0 | 0.198636 | 0.082694 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.230769 | 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 | 0 | 0 | 1 | 0 |
f11901c892a2e1651656900a41006977b1b933d2 | 1,609 | py | Python | emote_recognizer.py | realPanamo/EmoteRecognizer | 9467b7f673266b258fe2cfd76f49c3dd83b2839c | [
"MIT"
] | 2 | 2019-06-23T17:59:52.000Z | 2019-06-25T06:33:15.000Z | emote_recognizer.py | juliarn/EmoteRecognizer | 9467b7f673266b258fe2cfd76f49c3dd83b2839c | [
"MIT"
] | null | null | null | emote_recognizer.py | juliarn/EmoteRecognizer | 9467b7f673266b258fe2cfd76f49c3dd83b2839c | [
"MIT"
] | null | null | null | import enum
import cv2
import numpy
import requests
import config
from model.model import KerasModel
from model.training_data import TrainingData
class EmoteType(enum.Enum):
PEEPO = 0
KAPPA = 1
class EmoteRecognizer:
def __init__(self):
training_data = TrainingData(config.peepo_data_dir, conf... | 29.254545 | 108 | 0.683033 | 216 | 1,609 | 4.939815 | 0.402778 | 0.050609 | 0.042174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.241144 | 1,609 | 54 | 109 | 29.796296 | 0.864865 | 0.257303 | 0 | 0 | 0 | 0 | 0.004484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.269231 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f119173712c2b862677623c0eea51d0e26339373 | 633 | py | Python | Python/Supermarket-Queue.py | kbgoda/Codewars-Challenges | b163df4f0bb5ccf5b6482d26b7c1d1a4ec4e9683 | [
"MIT"
] | null | null | null | Python/Supermarket-Queue.py | kbgoda/Codewars-Challenges | b163df4f0bb5ccf5b6482d26b7c1d1a4ec4e9683 | [
"MIT"
] | null | null | null | Python/Supermarket-Queue.py | kbgoda/Codewars-Challenges | b163df4f0bb5ccf5b6482d26b7c1d1a4ec4e9683 | [
"MIT"
] | null | null | null | # Author: Karan Goda
# https://www.codewars.com/kata/57b06f90e298a7b53d000a86
def queue_time(customers, n):
# e.g. customers = [12, 13]
queues = []
if customers is [] or n <= 0:
return 0
elif n >= 1:
# E.g. for 3 queues (n = 3), value would be (0, 0, 0)
[queues.append(0) for queu... | 31.65 | 61 | 0.578199 | 100 | 633 | 3.62 | 0.46 | 0.099448 | 0.116022 | 0.124309 | 0.174033 | 0.174033 | 0.127072 | 0.127072 | 0.127072 | 0 | 0 | 0.099783 | 0.271722 | 633 | 19 | 62 | 33.315789 | 0.685466 | 0.298578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0.230769 | 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 | 0 | 1 | 0 |
f11a59c34afba587fb8aa830114d8088e1e90046 | 777 | py | Python | setup.py | mitchelllisle/monstermash | 724907514a9727a2970b3ddffe4d6fb2a490da48 | [
"MIT"
] | null | null | null | setup.py | mitchelllisle/monstermash | 724907514a9727a2970b3ddffe4d6fb2a490da48 | [
"MIT"
] | null | null | null | setup.py | mitchelllisle/monstermash | 724907514a9727a2970b3ddffe4d6fb2a490da48 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('requirements/requirements.txt') as f:
requirements = f.read().splitlines()
with open('requirements/requirements-test.txt') as f:
test_requirements = f.read().splitlines()
setup(
name='monstermash',
author='Mitchell Lisle',
author_email='m.... | 25.064516 | 56 | 0.666667 | 84 | 777 | 5.97619 | 0.607143 | 0.047809 | 0.079681 | 0.12749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008078 | 0.203346 | 777 | 30 | 57 | 25.9 | 0.802908 | 0 | 0 | 0 | 0 | 0 | 0.317889 | 0.1287 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f11a62a225b14fde953a537552d646f6d24b4f0a | 2,117 | py | Python | flatpickr/_base.py | maqnius/django-flatpickr | 92d5bbf9d4c0c01f904053b39f587053d072b45d | [
"MIT"
] | 40 | 2019-03-07T08:48:58.000Z | 2021-12-25T21:26:14.000Z | flatpickr/_base.py | maqnius/django-flatpickr | 92d5bbf9d4c0c01f904053b39f587053d072b45d | [
"MIT"
] | 6 | 2019-08-06T11:08:25.000Z | 2021-11-16T10:05:52.000Z | flatpickr/_base.py | maqnius/django-flatpickr | 92d5bbf9d4c0c01f904053b39f587053d072b45d | [
"MIT"
] | 8 | 2020-01-02T15:14:38.000Z | 2022-01-24T13:10:26.000Z | # -*- coding: utf-8 -*-
"""Contains Base Date-Picker input class for widgets of this package."""
from django.forms.widgets import DateTimeBaseInput
from flatpickr._settings import WidgetSettings
from flatpickr._media import WidgetMedia
from flatpickr._config import WidgetConfig
class BasePickerInput(DateTimeBaseInpu... | 34.145161 | 79 | 0.64478 | 257 | 2,117 | 5.120623 | 0.350195 | 0.058511 | 0.021277 | 0.028875 | 0.206687 | 0.179331 | 0.179331 | 0.179331 | 0.179331 | 0.179331 | 0 | 0.000633 | 0.253188 | 2,117 | 61 | 80 | 34.704918 | 0.831752 | 0.222957 | 0 | 0.055556 | 0 | 0 | 0.069211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f11f0d6ac32bd29c53535c13dbecdf64bee130f1 | 1,968 | py | Python | app/usr/lib/chewup/chewup/ui/indicator.py | samwhelp/util-chewup | aedcfe4a765218e11936dc4e5c259157635d7f41 | [
"MIT"
] | null | null | null | app/usr/lib/chewup/chewup/ui/indicator.py | samwhelp/util-chewup | aedcfe4a765218e11936dc4e5c259157635d7f41 | [
"MIT"
] | null | null | null | app/usr/lib/chewup/chewup/ui/indicator.py | samwhelp/util-chewup | aedcfe4a765218e11936dc4e5c259157635d7f41 | [
"MIT"
] | null | null | null |
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
gi.require_version('AppIndicator3', '0.1')
from gi.repository import AppIndicator3 as AppIndicator
class Indicator:
app = None
view = None
indicator = None
menu = None
icon_name_on_win_activate = 'empty'
icon_name_on_win_deactivate = '... | 23.710843 | 69 | 0.745427 | 293 | 1,968 | 4.716724 | 0.211604 | 0.04631 | 0.036179 | 0.047033 | 0.377713 | 0.240232 | 0.098408 | 0.098408 | 0.059334 | 0.059334 | 0 | 0.005862 | 0.13313 | 1,968 | 82 | 70 | 24 | 0.80422 | 0.022866 | 0 | 0.074074 | 0 | 0 | 0.067575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.37037 | 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 | 0 | 0 | 1 | 0 |
f11f62efb3e0225c391fb17a49be38c58be39674 | 4,779 | py | Python | mutation_lib_prep/cosmic_integrator.py | vrushali-broad/ctat-mutations | ba451dc36039f47e9c61b3ee76211070f6dc53a5 | [
"BSD-3-Clause"
] | null | null | null | mutation_lib_prep/cosmic_integrator.py | vrushali-broad/ctat-mutations | ba451dc36039f47e9c61b3ee76211070f6dc53a5 | [
"BSD-3-Clause"
] | null | null | null | mutation_lib_prep/cosmic_integrator.py | vrushali-broad/ctat-mutations | ba451dc36039f47e9c61b3ee76211070f6dc53a5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from __future__ import (absolute_import, division,
print_function, unicode_literals)
#import inspect
import os,sys
import csv
import argparse
import subprocess
import gzip
import glob
import logging
##
## This script decorates the Cosmic coding vari... | 38.853659 | 517 | 0.676292 | 619 | 4,779 | 5.105008 | 0.355412 | 0.020886 | 0.039873 | 0.029114 | 0.068354 | 0.021519 | 0 | 0 | 0 | 0 | 0 | 0.002524 | 0.170956 | 4,779 | 122 | 518 | 39.172131 | 0.795053 | 0.064658 | 0 | 0.050633 | 0 | 0.075949 | 0.37924 | 0.067843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012658 | 0.101266 | 0 | 0.101266 | 0.012658 | 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 | 0 | 1 | 0 |
f121b237306aa5803c642431f163fbdc7a638007 | 1,296 | py | Python | src/adversarial_q_learning/network/dqn.py | shuvoxcd01/neural_tic_tac_toe | a988230ff3dd0d882ebc0fb19630c9ff22fef629 | [
"Apache-2.0"
] | null | null | null | src/adversarial_q_learning/network/dqn.py | shuvoxcd01/neural_tic_tac_toe | a988230ff3dd0d882ebc0fb19630c9ff22fef629 | [
"Apache-2.0"
] | null | null | null | src/adversarial_q_learning/network/dqn.py | shuvoxcd01/neural_tic_tac_toe | a988230ff3dd0d882ebc0fb19630c9ff22fef629 | [
"Apache-2.0"
] | null | null | null | import os
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense, InputLayer, Flatten
from tensorflow.keras.models import clone_model
class DQN:
@staticmethod
def get_q_network(input_shape, num_actions):
model = Sequential()
model.add(InputLayer(input_shape=input_sh... | 28.173913 | 77 | 0.681327 | 163 | 1,296 | 5.202454 | 0.306748 | 0.09434 | 0.076651 | 0.106132 | 0.242925 | 0.242925 | 0.125 | 0.125 | 0.125 | 0.125 | 0 | 0.010924 | 0.222994 | 1,296 | 45 | 78 | 28.8 | 0.831182 | 0 | 0 | 0.181818 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.121212 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f122a05ae2a117a955547f6e8fd27731b4497e6e | 6,160 | py | Python | conmato/member.py | ngocbh/codeforces-management-tools | 4064cf3cf4bd9ffabdab15e4243e3fbe80a824ad | [
"MIT"
] | 6 | 2020-03-24T16:57:31.000Z | 2020-09-19T13:34:14.000Z | conmato/member.py | ngocjr7/codeforces-standings-crawler | 1bb8bf468299ea2c944a238627ee1516625cb91e | [
"MIT"
] | 1 | 2021-02-04T04:39:55.000Z | 2021-02-04T04:39:55.000Z | conmato/member.py | ngocjr7/codeforces-standings-crawler | 1bb8bf468299ea2c944a238627ee1516625cb91e | [
"MIT"
] | 1 | 2020-04-26T11:25:55.000Z | 2020-04-26T11:25:55.000Z | from __future__ import absolute_import
import re
import requests
import time
import random
from conmato.utils import *
def remove_participants(session, member, group_id=GROUP_ID):
url = MEMBERS_URL.format(group_id)
payload = {
'_tta': member['_tta'],
'action': 'removeMember',
'csrf... | 33.478261 | 101 | 0.601948 | 739 | 6,160 | 4.878214 | 0.188092 | 0.050485 | 0.033287 | 0.038835 | 0.570874 | 0.490985 | 0.386685 | 0.335922 | 0.275728 | 0.275728 | 0 | 0.014801 | 0.243182 | 6,160 | 183 | 102 | 33.661202 | 0.758473 | 0.037338 | 0 | 0.4 | 0 | 0 | 0.175103 | 0.009747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.035714 | 0.042857 | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 |
f123c50479e273b94aab8c70c02be92191fe755f | 6,620 | py | Python | canary/argument_pipeline/component_prediction.py | Open-Argumentation/Canary | 1a3128a5357f0428b7cb19d66b52e83dbe75fff0 | [
"MIT"
] | 3 | 2020-12-16T19:26:39.000Z | 2022-03-16T16:41:31.000Z | canary/argument_pipeline/component_prediction.py | Open-Argumentation/Canary | 1a3128a5357f0428b7cb19d66b52e83dbe75fff0 | [
"MIT"
] | 4 | 2021-05-25T13:28:40.000Z | 2022-01-15T12:44:54.000Z | canary/argument_pipeline/component_prediction.py | Open-Argumentation/Canary | 1a3128a5357f0428b7cb19d66b52e83dbe75fff0 | [
"MIT"
] | 2 | 2020-12-10T13:40:36.000Z | 2020-12-16T19:34:03.000Z | import pandas
from imblearn.over_sampling import RandomOverSampler
from nltk.tree import Tree
from scipy.sparse import hstack
from sklearn.base import TransformerMixin, BaseEstimator
from sklearn.feature_extraction import DictVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.pipeline i... | 36.373626 | 116 | 0.623112 | 688 | 6,620 | 5.731105 | 0.318314 | 0.012173 | 0.005072 | 0.014202 | 0.061882 | 0.017753 | 0 | 0 | 0 | 0 | 0 | 0.004391 | 0.277492 | 6,620 | 181 | 117 | 36.574586 | 0.819987 | 0.115408 | 0 | 0.016807 | 0 | 0 | 0.12615 | 0.03627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067227 | false | 0 | 0.142857 | 0 | 0.285714 | 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 | 0 | 0 | 1 | 0 |
f125c669b4d659e35b8a378e25dd4d527ec4dbd4 | 27,310 | py | Python | flask/lib/python3.8/site-packages/to/trainer.py | Otybrian/blogpost | 518599019e11cd7ee11e01470c4d51dfb4583274 | [
"MIT"
] | null | null | null | flask/lib/python3.8/site-packages/to/trainer.py | Otybrian/blogpost | 518599019e11cd7ee11e01470c4d51dfb4583274 | [
"MIT"
] | null | null | null | flask/lib/python3.8/site-packages/to/trainer.py | Otybrian/blogpost | 518599019e11cd7ee11e01470c4d51dfb4583274 | [
"MIT"
] | null | null | null | import re
import os
import traceback
import importlib.util
from prompt_toolkit import prompt
from prompt_toolkit.history import FileHistory
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory
from prompt_toolkit.validation import ValidationError
from colored import fg, bg, attr
import torch.optim as optim
... | 38.464789 | 119 | 0.528781 | 3,096 | 27,310 | 4.49677 | 0.112726 | 0.023632 | 0.01494 | 0.014869 | 0.323301 | 0.248958 | 0.21053 | 0.125916 | 0.08641 | 0.070177 | 0 | 0.010282 | 0.287733 | 27,310 | 709 | 120 | 38.519041 | 0.705429 | 0.078067 | 0 | 0.188433 | 0 | 0.007463 | 0.149425 | 0.004614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08209 | false | 0 | 0.037313 | 0.003731 | 0.20709 | 0.033582 | 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 | 0 | 1 | 0 |
f1266a803627ec1031a1ee5077266bcc7b6391cf | 1,420 | py | Python | lambdata/test_lambdata.py | leibo411/lambdata-leibo411 | 59b322e4e3e4d27970dea21efdecaa7d65029c7f | [
"MIT"
] | null | null | null | lambdata/test_lambdata.py | leibo411/lambdata-leibo411 | 59b322e4e3e4d27970dea21efdecaa7d65029c7f | [
"MIT"
] | null | null | null | lambdata/test_lambdata.py | leibo411/lambdata-leibo411 | 59b322e4e3e4d27970dea21efdecaa7d65029c7f | [
"MIT"
] | null | null | null | """Basic unit test for lambdata"""
import unittest
import random
from example_module import favorite_animals, colors, add, increment, becca, rand_num
class ExampleTests(unittest.TestCase):
"""Making sure examples work as expected"""
def test_add(self):
"""Testing that add works as expected"""
... | 23.278689 | 84 | 0.600704 | 170 | 1,420 | 4.876471 | 0.4 | 0.050663 | 0.084439 | 0.048251 | 0.055489 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044379 | 0.285915 | 1,420 | 60 | 85 | 23.666667 | 0.773176 | 0.179577 | 0 | 0 | 0 | 0 | 0.029464 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f1298764a70d48a5cc02427e03a11f21ba24e293 | 6,989 | py | Python | capt/function/push.py | tmanfree/capt | a6c1c12bb2677aef718f550c5fa7ffd4b71dedd4 | [
"MIT"
] | null | null | null | capt/function/push.py | tmanfree/capt | a6c1c12bb2677aef718f550c5fa7ffd4b71dedd4 | [
"MIT"
] | null | null | null | capt/function/push.py | tmanfree/capt | a6c1c12bb2677aef718f550c5fa7ffd4b71dedd4 | [
"MIT"
] | null | null | null |
# system imports
import sys
import os
import time
# local imports
from function.find import Find
from connector.switch import Switch
class Push:
def __init__(self):
self.find = Find()
def template(self, args, config, logger):
dev_id_list = []
address_list = []
try:
... | 41.35503 | 129 | 0.606954 | 939 | 6,989 | 4.336528 | 0.192758 | 0.053291 | 0.059676 | 0.031925 | 0.680501 | 0.654715 | 0.634578 | 0.617633 | 0.590128 | 0.590128 | 0 | 0.010222 | 0.272142 | 6,989 | 169 | 130 | 41.35503 | 0.79025 | 0.342681 | 0 | 0.333333 | 0 | 0 | 0.152743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.055556 | 0 | 0.188889 | 0.022222 | 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 | 0 | 1 | 0 |
f12a3ccfb07fc32ea4a8769b9c53d6c5dadcdff4 | 5,200 | py | Python | python/py_basic_ide/pyBASIC/parser.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | 3 | 2015-11-24T17:06:58.000Z | 2018-05-01T14:03:57.000Z | python/py_basic_ide/pyBASIC/parser.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | python/py_basic_ide/pyBASIC/parser.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
SHOW_ERRORS = True
import sys
def error_fx(text):
'''The default error handling, print the text to the console.
replace with your own function if you want, have it print to your
wx application or whatever.'''
sys.stderr.write(text)
def show_error(text):
'''
Send an error if SHO... | 26.804124 | 88 | 0.674808 | 768 | 5,200 | 4.449219 | 0.213542 | 0.044776 | 0.05736 | 0.038045 | 0.248756 | 0.127305 | 0.093649 | 0 | 0 | 0 | 0 | 0.000713 | 0.190385 | 5,200 | 193 | 89 | 26.943005 | 0.810926 | 0.230769 | 0 | 0.141509 | 0 | 0 | 0.181447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084906 | false | 0 | 0.009434 | 0.009434 | 0.179245 | 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 | 0 | 0 | 1 | 0 |
f12dc2176e2beefeeb42b25ea4471be881f3f01d | 1,316 | py | Python | Arays/6_Equilibrium index of an array_approach_2.py | sounak95/100_days_of_code | 50fbf088ce6ab2137aa216a30e3b3f828b278a22 | [
"Apache-2.0"
] | null | null | null | Arays/6_Equilibrium index of an array_approach_2.py | sounak95/100_days_of_code | 50fbf088ce6ab2137aa216a30e3b3f828b278a22 | [
"Apache-2.0"
] | null | null | null | Arays/6_Equilibrium index of an array_approach_2.py | sounak95/100_days_of_code | 50fbf088ce6ab2137aa216a30e3b3f828b278a22 | [
"Apache-2.0"
] | null | null | null | """
Description - Equilibrium index of an array is an index such that the sum of elements at lower indexes is equal to the sum of elements at higher indexes. We are given an Array of integers, We have to find out the first index i from left such that -
A[0] + A[1] + ... A[i-1] = A[i+1] + A[i+2] ... A[n-1]
Input
[-7, 1... | 23.087719 | 279 | 0.604103 | 250 | 1,316 | 3.168 | 0.384 | 0.012626 | 0.011364 | 0.040404 | 0.137626 | 0.082071 | 0.04798 | 0.04798 | 0.04798 | 0.04798 | 0 | 0.039874 | 0.275836 | 1,316 | 56 | 280 | 23.5 | 0.791186 | 0.794833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f12e84e71dc2614e3a6f1d2f7d671fe27072ff71 | 474 | py | Python | py_framework/wsgi.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | py_framework/wsgi.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | py_framework/wsgi.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | from wsgiref.simple_server import make_server
def application(envrion, start_response):
response_body = [
'{key}: {value}'.format(key=key, value=value) for key, value in sorted(envrion.items())
]
response_body = '\n'.join(response_body)
status = '200'
response_headers = [
('Conten... | 26.333333 | 95 | 0.670886 | 58 | 474 | 5.310345 | 0.637931 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020672 | 0.183544 | 474 | 18 | 96 | 26.333333 | 0.775194 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 | 0 | 0 | 1 | 0 |
f130b64b0ff7b024705421268b8468e5fc3ddf42 | 3,345 | py | Python | pomma/determine_symbols_and_max_repeats.py | NickleDave/pomma | e41dc4b354edb0c3a52685365fd79653e1930d43 | [
"BSD-3-Clause"
] | 1 | 2019-02-06T16:51:46.000Z | 2019-02-06T16:51:46.000Z | pomma/determine_symbols_and_max_repeats.py | NickleDave/pomma | e41dc4b354edb0c3a52685365fd79653e1930d43 | [
"BSD-3-Clause"
] | null | null | null | pomma/determine_symbols_and_max_repeats.py | NickleDave/pomma | e41dc4b354edb0c3a52685365fd79653e1930d43 | [
"BSD-3-Clause"
] | null | null | null | from itertools import groupby, chain
def determine_symbols_and_max_repeats(sequences):
"""determines unique set of symbols used in sequences, and maximum number
of repeats of those symbols (consecutive repeats, not just repeats in the
sense of occurrences). Any symbol with a maximum number of repeats > 1... | 41.8125 | 85 | 0.637668 | 439 | 3,345 | 4.697039 | 0.266515 | 0.053346 | 0.031523 | 0.038797 | 0.125121 | 0.093113 | 0.093113 | 0.026188 | 0 | 0 | 0 | 0.003861 | 0.303139 | 3,345 | 79 | 86 | 42.341772 | 0.880738 | 0.479223 | 0 | 0 | 0 | 0 | 0.069825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.083333 | 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 | 0 | 0 | 1 | 0 |
f130c55a426adac68bf09f355daa9ca3125bc0da | 292 | py | Python | week2/scripts/tb_publisher.py | ajaykrishna1878/Robotics-Automation-QSTP-2021 | f5b8626db20a60f9dd923bab5a0bec118d0abc67 | [
"MIT"
] | null | null | null | week2/scripts/tb_publisher.py | ajaykrishna1878/Robotics-Automation-QSTP-2021 | f5b8626db20a60f9dd923bab5a0bec118d0abc67 | [
"MIT"
] | null | null | null | week2/scripts/tb_publisher.py | ajaykrishna1878/Robotics-Automation-QSTP-2021 | f5b8626db20a60f9dd923bab5a0bec118d0abc67 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import rospy
from std_msgs.msg import Float32
rospy.init_node('radius_publisher')
pub = rospy.Publisher('/radius', Float32, queue_size=1)
rate = rospy.Rate(1)
if __name__ == '__main__':
while not rospy.is_shutdown():
pub.publish(0.5)
rate.sleep() | 22.461538 | 55 | 0.695205 | 43 | 292 | 4.418605 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036885 | 0.164384 | 292 | 13 | 56 | 22.461538 | 0.741803 | 0.071918 | 0 | 0 | 0 | 0 | 0.114391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 |
f1313cae1d8ecddeb5f75f139601242ca6ec08e2 | 3,330 | py | Python | exps/supp-synthetic/synth_utils.py | Viktour19/overlap-code | f5c6e63146a00f65710c38b9181bb9d12de6454f | [
"MIT"
] | 2 | 2020-07-09T03:15:58.000Z | 2022-03-09T11:57:17.000Z | exps/supp-synthetic/synth_utils.py | Viktour19/overlap-code | f5c6e63146a00f65710c38b9181bb9d12de6454f | [
"MIT"
] | null | null | null | exps/supp-synthetic/synth_utils.py | Viktour19/overlap-code | f5c6e63146a00f65710c38b9181bb9d12de6454f | [
"MIT"
] | 1 | 2021-05-18T11:55:04.000Z | 2021-05-18T11:55:04.000Z | import pandas as pd
import numpy as np
identity_func = lambda a, b: b
def compliance(D, R, inv_trans=lambda x,y : y):
ops = {'<=': (lambda x,y : x <= y),
'>': (lambda x,y : x > y),
'>=': (lambda x,y : x >= y),
'<': (lambda x,y : x < y),
'==': (lambda x,y : x == y),
... | 33.979592 | 85 | 0.58979 | 503 | 3,330 | 3.697813 | 0.270378 | 0.030645 | 0.034409 | 0.033871 | 0.305376 | 0.225806 | 0.17043 | 0.17043 | 0.17043 | 0.17043 | 0 | 0.009942 | 0.275075 | 3,330 | 97 | 86 | 34.329897 | 0.760563 | 0.168769 | 0 | 0.115942 | 0 | 0 | 0.074047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0 | 0.028986 | 0 | 0.173913 | 0.115942 | 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 | 0 | 1 | 0 |
f1378b6a473af8bf2230b8b3abb2ec910392d01c | 4,995 | py | Python | Data-Lake/etl.py | naderAsadi/Udacity-Data-Engineering-Projects | d12c42b3260379a470abd244f98a1fd5b32718f7 | [
"MIT"
] | 4 | 2020-10-03T18:14:20.000Z | 2021-11-01T08:15:32.000Z | Data-Lake/etl.py | naderAsadi/Udacity-Data-Engineering-Projects | d12c42b3260379a470abd244f98a1fd5b32718f7 | [
"MIT"
] | null | null | null | Data-Lake/etl.py | naderAsadi/Udacity-Data-Engineering-Projects | d12c42b3260379a470abd244f98a1fd5b32718f7 | [
"MIT"
] | null | null | null | import configparser
from datetime import datetime
import os
from pyspark.sql import SparkSession
from pyspark.sql.functions import udf, col, monotonically_increasing_id
from pyspark.sql.functions import year, month, dayofmonth, hour, weekofyear, date_format, dayofweek
from pyspark.sql.types import *
config = configpa... | 40.609756 | 140 | 0.646847 | 567 | 4,995 | 5.460317 | 0.255732 | 0.04522 | 0.030685 | 0.023256 | 0.235142 | 0.153747 | 0.117571 | 0.101421 | 0.069767 | 0.069767 | 0 | 0.002256 | 0.201401 | 4,995 | 122 | 141 | 40.942623 | 0.773878 | 0.110711 | 0 | 0 | 0 | 0 | 0.214987 | 0.036326 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.1 | 0 | 0.171429 | 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 | 0 | 0 | 1 | 0 |
f13af7308893eb6dd4208f6a9361b6902679648a | 433 | py | Python | pyxel_book/sample02.py | scnsh/pyxelGames | 058a4c0ad0b421cffc5746bfed2a6eddb3d85949 | [
"MIT"
] | null | null | null | pyxel_book/sample02.py | scnsh/pyxelGames | 058a4c0ad0b421cffc5746bfed2a6eddb3d85949 | [
"MIT"
] | null | null | null | pyxel_book/sample02.py | scnsh/pyxelGames | 058a4c0ad0b421cffc5746bfed2a6eddb3d85949 | [
"MIT"
] | null | null | null | import pyxel
WIDTH = 128
HEIGHT = 128
IMG_NO = 0
class App:
my_x = 0
my_y = 0
def __init__(self):
pyxel.init(WIDTH, HEIGHT)
pyxel.load("mychara.pyxres")
pyxel.run(self.update, self.draw)
def update(self):
self.my_x = pyxel.mouse_x
self.my_y = pyxel.mouse_y
... | 16.037037 | 64 | 0.575058 | 71 | 433 | 3.309859 | 0.380282 | 0.102128 | 0.051064 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056106 | 0.300231 | 433 | 26 | 65 | 16.653846 | 0.719472 | 0 | 0 | 0 | 0 | 0 | 0.032333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.388889 | 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 | 0 | 0 | 1 | 0 |
f13b704fd8d0df2530e8a9f2950ab903d8a850f5 | 44,784 | py | Python | Heavylifting.py | Dnshbbu/RulesView-Backend | 09d47e600f9a3e815b5c60241817ce4d98e7ba7b | [
"MIT"
] | null | null | null | Heavylifting.py | Dnshbbu/RulesView-Backend | 09d47e600f9a3e815b5c60241817ce4d98e7ba7b | [
"MIT"
] | null | null | null | Heavylifting.py | Dnshbbu/RulesView-Backend | 09d47e600f9a3e815b5c60241817ce4d98e7ba7b | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, abort, make_response
from flask_restful import Api, Resource, reqparse, fields, marshal, abort
from py2neo import *
import json
from flask_cors import CORS
from ipaddress import *
import werkzeug
import os
from netaddr import *
import re
import random
import time
import CSVSplit_genera... | 40.345946 | 174 | 0.49741 | 4,469 | 44,784 | 4.882524 | 0.104274 | 0.022686 | 0.025023 | 0.015811 | 0.634693 | 0.59583 | 0.572869 | 0.539459 | 0.521265 | 0.498671 | 0 | 0.0155 | 0.335901 | 44,784 | 1,109 | 175 | 40.382326 | 0.718167 | 0.093404 | 0 | 0.600454 | 0 | 0.00227 | 0.161986 | 0.039203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024972 | false | 0.031782 | 0.019296 | 0 | 0.057889 | 0.148695 | 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 | 0 | 1 | 0 |
f141c618f7f5e93e7eb5c8ee22854c6063df694c | 4,044 | py | Python | grabNdays.py | brianvan555/Stock | f0115ef0773153cd8df361556e398935cdd1bdde | [
"BSD-2-Clause"
] | null | null | null | grabNdays.py | brianvan555/Stock | f0115ef0773153cd8df361556e398935cdd1bdde | [
"BSD-2-Clause"
] | null | null | null | grabNdays.py | brianvan555/Stock | f0115ef0773153cd8df361556e398935cdd1bdde | [
"BSD-2-Clause"
] | null | null | null | # %%
import datetime
import time
import pandas as pd
from io import StringIO
from function_grab import grab_price
import numpy as np
import warnings
import random
data = {}
n_days = 120
date = datetime.datetime.now()
fail_count = 0
allow_continuous_fail_count = 15 # 近五年最長連續12天休市
while len(data) < n_day... | 29.955556 | 79 | 0.629327 | 575 | 4,044 | 4.347826 | 0.229565 | 0.04 | 0.056 | 0.022 | 0.3884 | 0.3708 | 0.3276 | 0.262 | 0.2048 | 0.2048 | 0 | 0.039531 | 0.199308 | 4,044 | 134 | 80 | 30.179104 | 0.732551 | 0.203759 | 0 | 0.294118 | 0 | 0 | 0.074254 | 0.015961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.094118 | 0 | 0.094118 | 0.070588 | 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 | 0 | 1 | 0 |
f14245be4031d7387f3b61db91e9fdbcd0da8f5b | 1,811 | py | Python | CONTENT/Resources/guides/__UNSORTED/297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | CONTENT/Resources/guides/__UNSORTED/297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | CONTENT/Resources/guides/__UNSORTED/297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
import json
class Codec:
def serialize(self, root):
"""Encodes a tree to a single string.
:type root: TreeNode
... | 24.146667 | 60 | 0.47101 | 184 | 1,811 | 4.592391 | 0.331522 | 0.028402 | 0.040237 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.414688 | 1,811 | 74 | 61 | 24.472973 | 0.785849 | 0.227499 | 0 | 0.130435 | 0 | 0 | 0.012938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.021739 | 0 | 0.217391 | 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 | 0 | 0 | 1 | 0 |
f14272e90c89cf6a167f3389d2119044ece31836 | 1,832 | py | Python | lhc/collections/interval_map.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | lhc/collections/interval_map.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | lhc/collections/interval_map.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | from collections import defaultdict
from lhc.interval import IntervalBinner
class IntervalMap(object):
def __init__(self, key_value_pairs=None):
self.len = 0
self.binner = IntervalBinner()
self.bins = defaultdict(list)
self.values = defaultdict(list)
if key_value_pairs is ... | 30.032787 | 84 | 0.556223 | 231 | 1,832 | 4.242424 | 0.238095 | 0.065306 | 0.040816 | 0.036735 | 0.326531 | 0.310204 | 0.261224 | 0.261224 | 0.261224 | 0.261224 | 0 | 0.003376 | 0.353166 | 1,832 | 60 | 85 | 30.533333 | 0.823629 | 0 | 0 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0.040816 | 0.020408 | 0.306122 | 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 | 0 | 0 | 1 | 0 |
f1432fbe7e4b709efdff7049c6c10eeddba93d8f | 11,788 | py | Python | bin/consolidate-preempted-logs.py | phyletica/ecoevolity-experiments | bb16e34c4c7495feaa68653df98d5fbead93cf44 | [
"CC-BY-4.0"
] | null | null | null | bin/consolidate-preempted-logs.py | phyletica/ecoevolity-experiments | bb16e34c4c7495feaa68653df98d5fbead93cf44 | [
"CC-BY-4.0"
] | null | null | null | bin/consolidate-preempted-logs.py | phyletica/ecoevolity-experiments | bb16e34c4c7495feaa68653df98d5fbead93cf44 | [
"CC-BY-4.0"
] | null | null | null | #! /usr/bin/env python
import sys
import os
import re
import glob
import argparse
import project_util
batch_number_pattern = re.compile(r'batch(?P<batch_number>\d+)')
sim_number_pattern = re.compile(r'-sim-(?P<sim_number>\d+)-')
run_number_pattern = re.compile(r'-run-(?P<sim_number>\d+)\.log')
def line_count(path)... | 49.529412 | 98 | 0.462335 | 1,220 | 11,788 | 4.160656 | 0.112295 | 0.045705 | 0.038416 | 0.026596 | 0.514972 | 0.439322 | 0.391056 | 0.349291 | 0.312254 | 0.287431 | 0 | 0.014264 | 0.446895 | 11,788 | 237 | 99 | 49.738397 | 0.764264 | 0.001781 | 0 | 0.384615 | 0 | 0 | 0.136325 | 0.036206 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.0181 | false | 0 | 0.027149 | 0 | 0.054299 | 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 | 0 | 0 | 1 | 0 |
f144647a79fb401204bd68db25162da1d4a3b39a | 303 | py | Python | web/util/dateutil.py | weerapatbook/studentmonitor | 82d3f5f3ce123b447ba4e4930765319734eab223 | [
"Apache-2.0"
] | null | null | null | web/util/dateutil.py | weerapatbook/studentmonitor | 82d3f5f3ce123b447ba4e4930765319734eab223 | [
"Apache-2.0"
] | 4 | 2020-02-12T00:58:14.000Z | 2021-06-10T21:43:33.000Z | web/util/dateutil.py | weerapatbook/studentmonitor | 82d3f5f3ce123b447ba4e4930765319734eab223 | [
"Apache-2.0"
] | null | null | null | import datetime
class DateUtil(object):
@classmethod
def convertDateToString(cls, date):
print(type(date))
value = ''
try:
value = date.strftime('%d/%m/%Y')
except Exception as ex:
print (ex)
value = date
return value
| 21.642857 | 45 | 0.528053 | 31 | 303 | 5.16129 | 0.741935 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.369637 | 303 | 13 | 46 | 23.307692 | 0.837696 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0.166667 | 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 | 0 | 1 | 0 |
f14589148cdcd887c0aef6b10b5a56f95ad59841 | 1,389 | py | Python | my_UpNDown/UpNDown_env.py | yifjiang/UCB-review | e5c96c0cf1977012edb7d6ea02ac5362e766980e | [
"MIT"
] | 6 | 2018-05-01T14:25:37.000Z | 2021-07-19T15:36:57.000Z | my_UpNDown/UpNDown_env.py | yifjiang/UCB-review | e5c96c0cf1977012edb7d6ea02ac5362e766980e | [
"MIT"
] | null | null | null | my_UpNDown/UpNDown_env.py | yifjiang/UCB-review | e5c96c0cf1977012edb7d6ea02ac5362e766980e | [
"MIT"
] | null | null | null | from gym.envs.atari.atari_env import AtariEnv
from gym import spaces
import numpy as np
class my_UpNDownEnv(AtariEnv):
def __init__(self):
super(my_UpNDownEnv, self).\
__init__(game = 'up_n_down', obs_type = 'image', frameskip = 1, repeat_action_probability = 0.25)
self.observation_space... | 38.583333 | 109 | 0.521238 | 170 | 1,389 | 4.052941 | 0.376471 | 0.087083 | 0.034833 | 0.060958 | 0.20029 | 0.148041 | 0.148041 | 0.148041 | 0.148041 | 0.148041 | 0 | 0.052332 | 0.367171 | 1,389 | 35 | 110 | 39.685714 | 0.731513 | 0.196544 | 0 | 0.086957 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.304348 | 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 | 0 | 0 | 1 | 0 |
f14691bf0dfdd285e473f195a1a0b4f5ae79472f | 3,813 | py | Python | src/anima_site.py | TheNetAdmin/AniMaid | 54e6b593f49561d7bfd08e117675f69ad059132a | [
"MIT"
] | null | null | null | src/anima_site.py | TheNetAdmin/AniMaid | 54e6b593f49561d7bfd08e117675f69ad059132a | [
"MIT"
] | 4 | 2021-04-01T00:36:06.000Z | 2021-12-11T02:08:49.000Z | src/anima_site.py | TheNetAdmin/AniMaid | 54e6b593f49561d7bfd08e117675f69ad059132a | [
"MIT"
] | null | null | null | import logging
import re
import requests
from dateutil.parser import parse as parse_time
from json import JSONDecodeError
class site:
def __init__(self):
pass
def parse_team(self, url: str) -> dict:
pass
class bangumi_moe_site(site):
def __init__(self):
self.logger = logging.ge... | 35.635514 | 159 | 0.552583 | 475 | 3,813 | 4.296842 | 0.284211 | 0.039686 | 0.034297 | 0.031357 | 0.250367 | 0.250367 | 0.208721 | 0.183244 | 0.151886 | 0.151886 | 0 | 0.008481 | 0.319696 | 3,813 | 106 | 160 | 35.971698 | 0.778335 | 0 | 0 | 0.208791 | 0 | 0.032967 | 0.275636 | 0.006294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087912 | false | 0.021978 | 0.054945 | 0 | 0.230769 | 0.065934 | 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 | 0 | 1 | 0 |
f147c644059fdd73863ea4fdd99a9a3c68be91b0 | 3,227 | py | Python | datareduction/TestLinearRegression.py | andresmasegosa/PRML-CoreSets | fb768debb15e3ff6f5b65b7224915a41c1493f3d | [
"MIT"
] | null | null | null | datareduction/TestLinearRegression.py | andresmasegosa/PRML-CoreSets | fb768debb15e3ff6f5b65b7224915a41c1493f3d | [
"MIT"
] | null | null | null | datareduction/TestLinearRegression.py | andresmasegosa/PRML-CoreSets | fb768debb15e3ff6f5b65b7224915a41c1493f3d | [
"MIT"
] | null | null | null | import inferpy as inf
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import numpy as np
from sklearn.cluster import KMeans
from datareduction.variational_linear_regressor_DR import VariationalLinearRegressor_DR
from prml.rv import VariationalGaussianMixture
from prml.features import Polynom... | 31.330097 | 164 | 0.704059 | 606 | 3,227 | 3.580858 | 0.20297 | 0.04977 | 0.018433 | 0.024885 | 0.384793 | 0.368664 | 0.343779 | 0.326267 | 0.304147 | 0.304147 | 0 | 0.035294 | 0.104431 | 3,227 | 102 | 165 | 31.637255 | 0.715571 | 0.356678 | 0 | 0 | 0 | 0 | 0.001954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.191489 | 0 | 0.191489 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f14b7fd1ac391cc7123c9a3508a739a92e9a94f9 | 1,277 | py | Python | fast/day02/day02.py | JerryDot/advent-2021-py | c3eb44b5989c276de0b5e721d3b8dfa1698796f1 | [
"MIT"
] | null | null | null | fast/day02/day02.py | JerryDot/advent-2021-py | c3eb44b5989c276de0b5e721d3b8dfa1698796f1 | [
"MIT"
] | null | null | null | fast/day02/day02.py | JerryDot/advent-2021-py | c3eb44b5989c276de0b5e721d3b8dfa1698796f1 | [
"MIT"
] | null | null | null | from typing import Iterable, List, Tuple
"""
----------> (1,0)
|
|
|
|
v
(0,1)
"""
def parse_input() -> List[Tuple[int, int]]:
with open('day02.txt', 'rb') as f:
INPUT = map(lambda x: x.strip(), map(lambda x: x.decode("utf-8"), f.readlines()))
moves = []
for entry in INPUT:
direction, siz... | 22.803571 | 89 | 0.539546 | 172 | 1,277 | 3.895349 | 0.348837 | 0.080597 | 0.059701 | 0.076119 | 0.425373 | 0.395522 | 0.308955 | 0.228358 | 0.228358 | 0.228358 | 0 | 0.033806 | 0.281911 | 1,277 | 55 | 90 | 23.218182 | 0.696838 | 0 | 0 | 0.228571 | 0 | 0 | 0.053485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.028571 | 0 | 0.2 | 0.057143 | 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 | 0 | 1 | 0 |
f14c0cd89a3a51b3ae10b34f33f09e21ce1188ac | 1,300 | py | Python | a.py | sarthak7838/Music-Recommender-Web-App | cda0d1a73915495b05ef9b094fad509f34afc2b6 | [
"MIT"
] | null | null | null | a.py | sarthak7838/Music-Recommender-Web-App | cda0d1a73915495b05ef9b094fad509f34afc2b6 | [
"MIT"
] | null | null | null | a.py | sarthak7838/Music-Recommender-Web-App | cda0d1a73915495b05ef9b094fad509f34afc2b6 | [
"MIT"
] | 1 | 2021-12-03T20:51:50.000Z | 2021-12-03T20:51:50.000Z | import requests as req
from bs4 import BeautifulSoup
import os
import os.path
import shutil
try:
r1=req.get("https://gaana.com/playlist/gaana-dj-best-of-badshah")
c1=r1.content
print(r)
soup1=BeautifulSoup(c1,"html.parser")
F1=soup1.find_all("a",{"class":"sng_c "})
#print(F1)
namelist=[]
#count=0
for i in F... | 19.402985 | 82 | 0.636923 | 211 | 1,300 | 3.895735 | 0.445498 | 0.025547 | 0.029197 | 0.03163 | 0.036496 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031732 | 0.151538 | 1,300 | 66 | 83 | 19.69697 | 0.713509 | 0.151538 | 0 | 0 | 0 | 0 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.151515 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f150530daa19fd258ee7528230b71a750194f14d | 1,041 | py | Python | data/transcoder_evaluation_gfg/python/NUMBER_SUBSTRINGS_DIVISIBLE_4_STRING_INTEGERS.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/NUMBER_SUBSTRINGS_DIVISIBLE_4_STRING_INTEGERS.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/NUMBER_SUBSTRINGS_DIVISIBLE_4_STRING_INTEGERS.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( s ) :
n = len ( s )
count = 0 ;
for i in range ( 0 , n , 1 ) :
if ( s [ i ] == '4' or s [ i ] =... | 26.692308 | 90 | 0.480307 | 137 | 1,041 | 3.525547 | 0.481752 | 0.020704 | 0.020704 | 0.045549 | 0.057971 | 0.057971 | 0.057971 | 0 | 0 | 0 | 0 | 0.104348 | 0.337176 | 1,041 | 39 | 91 | 26.692308 | 0.595652 | 0.177714 | 0 | 0 | 0 | 0 | 0.128386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.068966 | 0.034483 | 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 | 0 | 1 | 0 |
f156bf8245bfd78557645c9f4c7188cd9870a78f | 846 | py | Python | IPython/frontend/html/notebook/fabfile.py | 3kwa/ipython | a5922fd39ed4b2067d64b285125278a850bb129f | [
"BSD-3-Clause-Clear"
] | 1 | 2022-03-13T23:06:43.000Z | 2022-03-13T23:06:43.000Z | IPython/frontend/html/notebook/fabfile.py | 3kwa/ipython | a5922fd39ed4b2067d64b285125278a850bb129f | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/frontend/html/notebook/fabfile.py | 3kwa/ipython | a5922fd39ed4b2067d64b285125278a850bb129f | [
"BSD-3-Clause-Clear"
] | null | null | null | """ fabfile to prepare the notebook """
from fabric.api import local,lcd
from fabric.utils import abort
import os
static_dir = 'static'
components_dir = os.path.join(static_dir,'components')
def test_component(name):
if not os.path.exists(os.path.join(components_dir,name)):
components()
def components()... | 27.290323 | 93 | 0.674941 | 121 | 846 | 4.61157 | 0.413223 | 0.064516 | 0.035842 | 0.057348 | 0.075269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187943 | 846 | 30 | 94 | 28.2 | 0.812227 | 0.111111 | 0 | 0.1 | 0 | 0 | 0.180082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f15902568327420d51680a127a7bed4e1c5d6fac | 2,028 | py | Python | qchem/tests/test_molecular_hamiltonian.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 3 | 2021-02-22T18:30:55.000Z | 2021-02-23T10:54:58.000Z | qchem/tests/test_molecular_hamiltonian.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | null | null | null | qchem/tests/test_molecular_hamiltonian.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 1 | 2021-03-27T09:03:15.000Z | 2021-03-27T09:03:15.000Z | import os
import pytest
from pennylane import qchem
from pennylane.vqe import Hamiltonian
import numpy as np
symbols = ["C", "C", "N", "H", "H", "H", "H", "H"]
coordinates = np.array(
[
0.68219113,
-0.85415621,
-1.04123909,
-1.34926445,
0.23621577,
0.61794044,
... | 22.043478 | 95 | 0.569527 | 233 | 2,028 | 4.862661 | 0.476395 | 0.007061 | 0.007944 | 0.007061 | 0.068844 | 0.068844 | 0.068844 | 0.068844 | 0 | 0 | 0 | 0.172688 | 0.317554 | 2,028 | 91 | 96 | 22.285714 | 0.645954 | 0.149901 | 0 | 0 | 0 | 0 | 0.086166 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.012987 | false | 0 | 0.064935 | 0 | 0.077922 | 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 | 0 | 0 | 1 | 0 |
f1595406821dd1cc1d957a18aeecca6864b3bc11 | 1,106 | py | Python | lims_dashboard/utils.py | alneberg/lims_dashboard | 7a833a7d8e9548fb5012dad814e6c9b807454fe7 | [
"MIT"
] | null | null | null | lims_dashboard/utils.py | alneberg/lims_dashboard | 7a833a7d8e9548fb5012dad814e6c9b807454fe7 | [
"MIT"
] | null | null | null | lims_dashboard/utils.py | alneberg/lims_dashboard | 7a833a7d8e9548fb5012dad814e6c9b807454fe7 | [
"MIT"
] | null | null | null |
import os
import subprocess
import traceback
import logging
logger = logging.getLogger("lims_dashboard")
def run_script(app, name, options):
cwd = os.getcwd()
os.chdir('{0}/uploads'.format(app.root_path))
conf_obj = app.config['my_scripts'][name]
command = [':']
if conf_obj['type'] == 'python':
... | 30.722222 | 115 | 0.644665 | 134 | 1,106 | 5.208955 | 0.455224 | 0.08596 | 0.031519 | 0.051576 | 0.063037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002304 | 0.21519 | 1,106 | 35 | 116 | 31.6 | 0.801843 | 0.035262 | 0 | 0.071429 | 0 | 0 | 0.137218 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f15a182c95aa4785e3fe9ddf7f1191498aa88c8a | 5,152 | py | Python | chat/indico_chat/models/chatrooms.py | aristofanischionis/indico-plugins | abd67d8f5173aa0e2d80613cf8bef415e332d773 | [
"MIT"
] | null | null | null | chat/indico_chat/models/chatrooms.py | aristofanischionis/indico-plugins | abd67d8f5173aa0e2d80613cf8bef415e332d773 | [
"MIT"
] | null | null | null | chat/indico_chat/models/chatrooms.py | aristofanischionis/indico-plugins | abd67d8f5173aa0e2d80613cf8bef415e332d773 | [
"MIT"
] | null | null | null | # This file is part of the Indico plugins.
# Copyright (C) 2002 - 2019 CERN
#
# The Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License;
# see the LICENSE file for more details.
from __future__ import unicode_literals
from indico.core.db.sqlalchemy impor... | 26.694301 | 93 | 0.60132 | 598 | 5,152 | 5.053512 | 0.279264 | 0.034414 | 0.0364 | 0.015884 | 0.180675 | 0.143944 | 0.108206 | 0.027796 | 0 | 0 | 0 | 0.002218 | 0.299884 | 5,152 | 192 | 94 | 26.833333 | 0.835597 | 0.240101 | 0 | 0.343284 | 0 | 0 | 0.080369 | 0.019499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.014925 | 0.044776 | 0.029851 | 0.335821 | 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 | 0 | 0 | 1 | 0 |
f163e4eec92c5b9acccead12e1775a3ab901332a | 532 | py | Python | src/Blog/assets.py | sadmanbd/wagtailblog | adeccb29826200cb1bedc658a0f1c57c2f705d0e | [
"MIT"
] | 1 | 2020-04-20T05:38:01.000Z | 2020-04-20T05:38:01.000Z | src/Blog/assets.py | sadmanbd/wagtailblog | adeccb29826200cb1bedc658a0f1c57c2f705d0e | [
"MIT"
] | 8 | 2020-02-11T21:41:52.000Z | 2022-01-13T00:33:02.000Z | src/Blog/assets.py | sadmanbd/wagtailblog | adeccb29826200cb1bedc658a0f1c57c2f705d0e | [
"MIT"
] | null | null | null | from django.conf import settings
from django_assets import Bundle, register
from webassets.filter import get_filter
libsass = get_filter("libsass", style="compressed")
css_libs = Bundle(
settings.BASE_DIR + "/assets/styles/css/libs/normalize.css",
filters="cssutils",
output="css/libs.css"
)
css_custom ... | 21.28 | 64 | 0.716165 | 70 | 532 | 5.285714 | 0.371429 | 0.094595 | 0.086486 | 0.113514 | 0.178378 | 0.178378 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140977 | 532 | 24 | 65 | 22.166667 | 0.809628 | 0 | 0 | 0 | 0 | 0 | 0.270677 | 0.12406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 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 | 0 | 0 | 1 | 0 |
f165f215e0f29ecdf542caf1a3d19feab64687a9 | 2,864 | py | Python | lib/tools/job_launcher.py | anonconda/RTDmaker | ac2a070ba26933194aa13041e1fdf92cbc39f201 | [
"MIT"
] | 1 | 2021-04-13T18:30:14.000Z | 2021-04-13T18:30:14.000Z | lib/tools/job_launcher.py | anonconda/RTDmaker | ac2a070ba26933194aa13041e1fdf92cbc39f201 | [
"MIT"
] | null | null | null | lib/tools/job_launcher.py | anonconda/RTDmaker | ac2a070ba26933194aa13041e1fdf92cbc39f201 | [
"MIT"
] | null | null | null | import os
import sys
import time
import multiprocessing
from subprocess import Popen
from multiprocessing.pool import ThreadPool
def work(command, logfile, job_id, tot):
line_info = f'\n{time.asctime()} Starting Job {job_id} (out of {tot})'
line_command = f'\n{time.asctime()} Job {job_id} command: {command}\... | 34.506024 | 118 | 0.651885 | 432 | 2,864 | 4.19213 | 0.331019 | 0.019326 | 0.036444 | 0.035892 | 0.170072 | 0.170072 | 0.126449 | 0.103258 | 0.103258 | 0.051905 | 0 | 0.007273 | 0.231844 | 2,864 | 82 | 119 | 34.926829 | 0.815909 | 0.217877 | 0 | 0.203704 | 0 | 0 | 0.212108 | 0.034081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.148148 | 0.074074 | 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 | 0 | 1 | 0 |
f1698183cab47657356ca5d40e4c3268c220a1ca | 2,388 | py | Python | malware.py | c0zzy/semi-supervised-ann | 5b458774388d79f64b19ca696afb0d42ed403731 | [
"MIT"
] | null | null | null | malware.py | c0zzy/semi-supervised-ann | 5b458774388d79f64b19ca696afb0d42ed403731 | [
"MIT"
] | null | null | null | malware.py | c0zzy/semi-supervised-ann | 5b458774388d79f64b19ca696afb0d42ed403731 | [
"MIT"
] | null | null | null | import copy
from alg.semi_supervised import SemiSupervised
from lib.ops import evaluate
from lib.utils import load_avast_weeks_pca, parse_arguments
args = parse_arguments()
dataset_avast_pca = {
'name': 'avast_pca',
'input_size': 128,
'num_classes': 5,
'mlp_arch': [96, 64, 32],
'visualise_funcs':... | 27.767442 | 98 | 0.652429 | 366 | 2,388 | 3.986339 | 0.300546 | 0.030843 | 0.061686 | 0.027416 | 0.132968 | 0.132968 | 0.07608 | 0.056203 | 0.056203 | 0.056203 | 0 | 0.015625 | 0.222781 | 2,388 | 85 | 99 | 28.094118 | 0.770474 | 0.015075 | 0 | 0.030769 | 0 | 0 | 0.081702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.061538 | 0 | 0.138462 | 0.169231 | 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 | 0 | 1 | 0 |
f16aaf2fc0ac983255c89745ef68d2c5983e2b39 | 593 | py | Python | phishfry/remediation_result.py | krayzpipes/phishfry | 6da69548ae6970e2bc773d112509a7c94ce0e265 | [
"Apache-2.0"
] | null | null | null | phishfry/remediation_result.py | krayzpipes/phishfry | 6da69548ae6970e2bc773d112509a7c94ce0e265 | [
"Apache-2.0"
] | 3 | 2019-12-31T00:12:12.000Z | 2020-01-03T13:43:30.000Z | phishfry/remediation_result.py | krayzpipes/phishfry | 6da69548ae6970e2bc773d112509a7c94ce0e265 | [
"Apache-2.0"
] | 2 | 2019-02-12T21:01:20.000Z | 2019-04-22T17:41:46.000Z | import logging
log = logging.getLogger(__name__)
class RemediationResult(object):
def __init__(self, address, message_id, mailbox_type, action, success=True, message=None):
self.address = address
self.message_id = message_id
self.mailbox_type = mailbox_type
self.success = success
... | 28.238095 | 94 | 0.640809 | 66 | 593 | 5.545455 | 0.393939 | 0.120219 | 0.098361 | 0.120219 | 0.196721 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269815 | 593 | 20 | 95 | 29.65 | 0.845266 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 0 | 0 | 1 | 0 |
f16b40ca452b4c54cacfb36dfaca7d833512d61a | 10,452 | py | Python | psyIP.py | chocosobo/psypy | ebaa9e59a70117acf3182f86d7ab7fc3c40338c3 | [
"MIT"
] | 6 | 2015-07-24T05:08:52.000Z | 2017-12-08T04:39:22.000Z | psyIP.py | chocosobo/psypy | ebaa9e59a70117acf3182f86d7ab7fc3c40338c3 | [
"MIT"
] | 1 | 2017-08-23T21:40:17.000Z | 2017-09-27T00:32:55.000Z | psyIP.py | chocosobo/psypy | ebaa9e59a70117acf3182f86d7ab7fc3c40338c3 | [
"MIT"
] | 7 | 2019-09-14T18:16:05.000Z | 2021-11-26T15:34:26.000Z | import math as m
# All functions expect base SI units for any arguments given
# DBT - Dry bulb temperature - Degrees Rankine, R
# DPT - Dew point temperature - Degress Rankine, R
# H - Specific enthalpy - British thermal unit per pound mass,
# ... | 28.557377 | 80 | 0.540088 | 1,809 | 10,452 | 2.74848 | 0.096186 | 0.07321 | 0.066372 | 0.053097 | 0.707965 | 0.671158 | 0.648632 | 0.559936 | 0.540426 | 0.509453 | 0 | 0.065667 | 0.329793 | 10,452 | 365 | 81 | 28.635616 | 0.644111 | 0.116437 | 0 | 0.592357 | 0 | 0 | 0.01075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076433 | false | 0 | 0.003185 | 0.003185 | 0.16879 | 0.006369 | 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 | 0 | 1 | 0 |
f16b53621b6f62b6b1717b1dbba16b70894bb004 | 391 | py | Python | newday2/App/hello.py | greatfirsty/hellopython | f12aacf36b8f208d6c5622ffd6b4c1927f37b45a | [
"Apache-2.0"
] | 1 | 2019-05-04T01:25:43.000Z | 2019-05-04T01:25:43.000Z | newday2/App/hello.py | greatfirsty/hellopython | f12aacf36b8f208d6c5622ffd6b4c1927f37b45a | [
"Apache-2.0"
] | null | null | null | newday2/App/hello.py | greatfirsty/hellopython | f12aacf36b8f208d6c5622ffd6b4c1927f37b45a | [
"Apache-2.0"
] | null | null | null | import time
def total_time(fun):
def f():
before_time=time.time()
fun()
current_time=time.time()
t_time=current_time-before_time
print(t_time)
return f
@total_time
def add():
time.sleep(1)
return 3
#为函数添加装饰器,统计时间
@total_time
def sub():
print('睡不好')
time.sl... | 15.64 | 39 | 0.598465 | 56 | 391 | 3.875 | 0.446429 | 0.147465 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.2711 | 391 | 24 | 40 | 16.291667 | 0.74386 | 0.033248 | 0 | 0.095238 | 0 | 0 | 0.034574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.380952 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f16cd046c1d5bc8c482c76596f8d465b56eb49c5 | 667 | py | Python | too_simple_server/__main__.py | outcatcher/Simple-Mock-Webserver | 315bccca9dea9e821bb0a02878187058cd1fe38f | [
"MIT"
] | null | null | null | too_simple_server/__main__.py | outcatcher/Simple-Mock-Webserver | 315bccca9dea9e821bb0a02878187058cd1fe38f | [
"MIT"
] | 3 | 2019-09-04T13:22:46.000Z | 2019-09-13T09:35:51.000Z | too_simple_server/__main__.py | opentelekomcloud-infra/Simple-Mock-Webserver | 315bccca9dea9e821bb0a02878187058cd1fe38f | [
"MIT"
] | null | null | null | """Run server as module"""
from argparse import ArgumentParser
from too_simple_server.configuration import DEFAULT_CFG_PATH
from too_simple_server.run import main
AGP = ArgumentParser(description="Mock server with simple DB interactions")
AGP.add_argument("--debug", action="store_true", default=None)
AGP.add_argument... | 41.6875 | 100 | 0.758621 | 95 | 667 | 5.136842 | 0.463158 | 0.04918 | 0.114754 | 0.077869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106447 | 667 | 15 | 101 | 44.466667 | 0.818792 | 0.029985 | 0 | 0 | 0 | 0 | 0.25741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 |
f1729eaefd848cb322cd91bf8c15356b94b4a070 | 3,038 | py | Python | SIM_utils/SIM.py | facebookresearch/Project_FARSI | 12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4 | [
"MIT"
] | 14 | 2021-06-01T16:45:19.000Z | 2022-03-08T20:07:00.000Z | SIM_utils/SIM.py | facebookresearch/Project_FARSI | 12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4 | [
"MIT"
] | null | null | null | SIM_utils/SIM.py | facebookresearch/Project_FARSI | 12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4 | [
"MIT"
] | 3 | 2021-08-05T16:37:47.000Z | 2022-01-06T00:25:49.000Z | #Copyright (c) Facebook, Inc. and its affiliates.
#This source code is licensed under the MIT license found in the
#LICENSE file in the root directory of this source tree.
from SIM_utils.components.perf_sim import *
from SIM_utils.components.pow_sim import *
#from OSSIM_utils.components.pow_knob_sim import *
from desi... | 40.506667 | 114 | 0.629032 | 360 | 3,038 | 5.097222 | 0.35 | 0.032698 | 0.023978 | 0.034877 | 0.140599 | 0.140599 | 0.083924 | 0.083924 | 0 | 0 | 0 | 0.001272 | 0.223502 | 3,038 | 75 | 115 | 40.506667 | 0.7766 | 0.38183 | 0 | 0.05 | 0 | 0 | 0.036777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1 | 0 | 0.35 | 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 | 0 | 0 | 1 | 0 |
f1743c6ed7aff9eadd1ebcb064f885173f6e5cef | 5,992 | py | Python | netbox_graphql/tests/ipam/tests_vlans.py | ninech/django-netbox-graphql | 8383570bdf3a8ce8d9d912c5b8f7b053b31c7363 | [
"MIT"
] | 17 | 2017-08-17T02:38:09.000Z | 2022-01-05T15:36:20.000Z | netbox_graphql/tests/ipam/tests_vlans.py | ninech/django-netbox-graphql | 8383570bdf3a8ce8d9d912c5b8f7b053b31c7363 | [
"MIT"
] | 2 | 2017-09-13T14:53:56.000Z | 2018-02-08T14:06:54.000Z | netbox_graphql/tests/ipam/tests_vlans.py | ninech/django-netbox-graphql | 8383570bdf3a8ce8d9d912c5b8f7b053b31c7363 | [
"MIT"
] | 2 | 2020-03-04T11:51:10.000Z | 2021-03-11T19:24:37.000Z | from string import Template
from graphene.test import Client
from django.test import TestCase
from ipam.models import VLAN
from netbox_graphql.schema import schema
from netbox_graphql.tests.utils import obj_to_global_id
from netbox_graphql.tests.factories.ipam_factories import VLANFactory, RoleFactory
from netbox_g... | 30.571429 | 99 | 0.524866 | 570 | 5,992 | 5.370175 | 0.159649 | 0.032016 | 0.077752 | 0.100621 | 0.614832 | 0.508657 | 0.495263 | 0.442992 | 0.40967 | 0.370467 | 0 | 0.003165 | 0.367323 | 5,992 | 195 | 100 | 30.728205 | 0.804273 | 0 | 0 | 0.451807 | 0 | 0.012048 | 0.245995 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 1 | 0.114458 | false | 0 | 0.048193 | 0 | 0.192771 | 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 | 0 | 0 | 1 | 0 |
f175d2c9f715e287b74b3835941c2fefef41cc0e | 36,264 | py | Python | ncdiff/src/yang/ncdiff/gnmi.py | tahigash/yang | f74d4549421a4ca3b9bc9ee46194d9c3810fd32a | [
"Apache-2.0"
] | null | null | null | ncdiff/src/yang/ncdiff/gnmi.py | tahigash/yang | f74d4549421a4ca3b9bc9ee46194d9c3810fd32a | [
"Apache-2.0"
] | null | null | null | ncdiff/src/yang/ncdiff/gnmi.py | tahigash/yang | f74d4549421a4ca3b9bc9ee46194d9c3810fd32a | [
"Apache-2.0"
] | null | null | null | import re
import json
import logging
from lxml import etree
from copy import deepcopy
from xmljson import Parker
from ncclient import xml_
from xml.etree import ElementTree
from collections import OrderedDict, defaultdict
from .errors import ModelError
from .composer import Tag, Composer
from .calculator import BaseCa... | 41.875289 | 90 | 0.506866 | 4,144 | 36,264 | 4.230936 | 0.079151 | 0.033651 | 0.013688 | 0.013574 | 0.530029 | 0.445788 | 0.386357 | 0.352706 | 0.296127 | 0.251697 | 0 | 0.003807 | 0.405995 | 36,264 | 865 | 91 | 41.923699 | 0.81013 | 0.116259 | 0 | 0.415241 | 0 | 0 | 0.039971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068429 | false | 0 | 0.023328 | 0 | 0.209953 | 0.001555 | 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 | 0 | 1 | 0 |
f17945798753686fc982268f9cb799a7cdccba0f | 1,816 | py | Python | extensions/prefix_handler.py | Elfein7Night/ElfBot | 5967b2b87569badab3ad60d2ecaa139d86bbb093 | [
"MIT"
] | null | null | null | extensions/prefix_handler.py | Elfein7Night/ElfBot | 5967b2b87569badab3ad60d2ecaa139d86bbb093 | [
"MIT"
] | null | null | null | extensions/prefix_handler.py | Elfein7Night/ElfBot | 5967b2b87569badab3ad60d2ecaa139d86bbb093 | [
"MIT"
] | null | null | null | import logging
from discord import Message
from discord.ext.commands import Cog, Context, command, has_permissions, Bot
from utils.utils import log_event, db, get_dict
from extensions.extension_templates import DatabaseHandler
DEFAULT_PREFIX = '?'
PREFIXES_DB_KEY = 'prefixes_for_servers'
class PrefixDBHandler(Databa... | 34.923077 | 98 | 0.701542 | 250 | 1,816 | 4.88 | 0.372 | 0.051639 | 0.031967 | 0.02459 | 0.127049 | 0.045902 | 0.045902 | 0 | 0 | 0 | 0 | 0 | 0.180066 | 1,816 | 51 | 99 | 35.607843 | 0.819342 | 0.101872 | 0 | 0.060606 | 0 | 0 | 0.172721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.151515 | 0.030303 | 0.393939 | 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 | 0 | 0 | 1 | 0 |
f17b300d0d9a14ab776efbe26b4bf7268c4f862a | 4,116 | py | Python | snakeskin/config.py | healthverity/snakeskin-fabric | 31ba7fa5a71445eba76f89723c998d603704e0f9 | [
"Apache-2.0"
] | 5 | 2019-08-08T17:16:02.000Z | 2021-05-15T07:28:31.000Z | snakeskin/config.py | healthverity/snakeskin-fabric | 31ba7fa5a71445eba76f89723c998d603704e0f9 | [
"Apache-2.0"
] | 4 | 2019-08-20T15:07:12.000Z | 2020-07-31T17:50:51.000Z | snakeskin/config.py | healthverity/snakeskin-fabric | 31ba7fa5a71445eba76f89723c998d603704e0f9 | [
"Apache-2.0"
] | 2 | 2019-08-20T15:22:48.000Z | 2019-12-17T19:38:55.000Z | """
Blockchain configuration
"""
import os
import json
from dataclasses import dataclass, field, replace
from typing import List, Mapping, Optional
import yaml
import dacite
from .models import Peer, Channel, User, Orderer, ChaincodeSpec
from .models.gateway import Gateway
from .constants import ChaincodeLanguag... | 34.3 | 89 | 0.617104 | 502 | 4,116 | 4.992032 | 0.207171 | 0.021548 | 0.053073 | 0.04589 | 0.189944 | 0.122905 | 0.052674 | 0.052674 | 0.052674 | 0 | 0 | 0.00034 | 0.2845 | 4,116 | 119 | 90 | 34.588235 | 0.850594 | 0.107629 | 0 | 0.067416 | 0 | 0 | 0.067388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0 | 0.101124 | 0 | 0.41573 | 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 | 0 | 0 | 1 | 0 |
f17d0d49e5fc9b163d91e5df674590e6e4cad918 | 1,570 | py | Python | quantifier.py | daibiaoxuwu/cnn-text-classification-tf | 595008c44acef7fa4dd45d1d943f0b8314e6b635 | [
"Apache-2.0"
] | null | null | null | quantifier.py | daibiaoxuwu/cnn-text-classification-tf | 595008c44acef7fa4dd45d1d943f0b8314e6b635 | [
"Apache-2.0"
] | null | null | null | quantifier.py | daibiaoxuwu/cnn-text-classification-tf | 595008c44acef7fa4dd45d1d943f0b8314e6b635 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import nltk
from papersmith.editor.issue import Issue
def check(content):
cno=['many','few','a few','a number of','the number of','numbers of','a quantity of','quantities of','a good many','a great many','a large number of','a great number of','scores of','dozens of']
uno=['much','little','a... | 35.681818 | 264 | 0.564331 | 256 | 1,570 | 3.441406 | 0.339844 | 0.051078 | 0.079455 | 0.068104 | 0.118048 | 0.118048 | 0.068104 | 0.068104 | 0.068104 | 0.068104 | 0 | 0.022296 | 0.228662 | 1,570 | 43 | 265 | 36.511628 | 0.705202 | 0.013376 | 0 | 0.142857 | 0 | 0 | 0.276665 | 0.030381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.114286 | 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 | 0 | 0 | 1 | 0 |
f17d6fabf9fa920276d161547a20c9812814326f | 4,038 | py | Python | doc/ansible/__init__.py | jansenm/ansible-jenkins-roles | 73330c53d197b5161d2b46dd27aa609e03902485 | [
"BSD-3-Clause"
] | 10 | 2015-12-30T17:49:19.000Z | 2019-12-16T15:58:11.000Z | doc/ansible/__init__.py | jansenm/ansible-jenkins-roles | 73330c53d197b5161d2b46dd27aa609e03902485 | [
"BSD-3-Clause"
] | null | null | null | doc/ansible/__init__.py | jansenm/ansible-jenkins-roles | 73330c53d197b5161d2b46dd27aa609e03902485 | [
"BSD-3-Clause"
] | 8 | 2016-10-21T04:13:14.000Z | 2020-11-10T19:48:06.000Z | import docutils
import docutils.nodes
import docutils.parsers.rst
import docutils.parsers.rst.directives
import sphinx.addnodes
import sphinx.application
import sphinx.directives
import sphinx.domains
import sphinx.environment
import sphinx.locale
import sphinx.roles
import sphinx.util.compat
import sphinx.util.docfiel... | 28.041667 | 82 | 0.567112 | 398 | 4,038 | 5.668342 | 0.326633 | 0.053191 | 0.04211 | 0.031915 | 0.089096 | 0.080674 | 0.080674 | 0.080674 | 0.049645 | 0.049645 | 0 | 0.001078 | 0.311045 | 4,038 | 143 | 83 | 28.237762 | 0.809849 | 0.053739 | 0 | 0.085714 | 0 | 0 | 0.074698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07619 | false | 0 | 0.133333 | 0.009524 | 0.371429 | 0.047619 | 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 | 0 | 1 | 0 |
f17fd326827766f921f6b7614a4cdc197d55723b | 2,068 | py | Python | odps/pai/nodes/transform_nodes.py | ZZHGit/aliyun-odps-python-sdk | e1c39378863ec7a1947487acab38125ac77f178e | [
"Apache-2.0"
] | null | null | null | odps/pai/nodes/transform_nodes.py | ZZHGit/aliyun-odps-python-sdk | e1c39378863ec7a1947487acab38125ac77f178e | [
"Apache-2.0"
] | null | null | null | odps/pai/nodes/transform_nodes.py | ZZHGit/aliyun-odps-python-sdk | e1c39378863ec7a1947487acab38125ac77f178e | [
"Apache-2.0"
] | 1 | 2019-09-18T05:35:29.000Z | 2019-09-18T05:35:29.000Z | # encoding: utf-8
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Licens... | 50.439024 | 121 | 0.729207 | 256 | 2,068 | 5.726563 | 0.453125 | 0.040928 | 0.057299 | 0.060027 | 0.195089 | 0.195089 | 0.122783 | 0.122783 | 0 | 0 | 0 | 0.010545 | 0.174565 | 2,068 | 40 | 122 | 51.7 | 0.848272 | 0.37234 | 0 | 0 | 0 | 0 | 0.157031 | 0.032813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 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 | 0 | 0 | 1 | 0 |
f17fd5450289443b6d91376201627bb8e37f188a | 12,302 | py | Python | kk/api/views.py | icw82/django-kk | b84c41ceb9f6de4fc94ef4b353583bfec70d6fed | [
"MIT"
] | null | null | null | kk/api/views.py | icw82/django-kk | b84c41ceb9f6de4fc94ef4b353583bfec70d6fed | [
"MIT"
] | null | null | null | kk/api/views.py | icw82/django-kk | b84c41ceb9f6de4fc94ef4b353583bfec70d6fed | [
"MIT"
] | null | null | null | import re
import datetime
import time
import urllib
import json
from inspect import ismethod
from django.views import generic
from django.utils import timezone
from django.utils.decorators import classonlymethod
from django.db.models import (
Model, Manager, AutoField, CharField
)
from django.db.models.query impo... | 27.037363 | 78 | 0.520728 | 1,173 | 12,302 | 5.356351 | 0.179881 | 0.033424 | 0.016712 | 0.011459 | 0.172847 | 0.138469 | 0.120325 | 0.049976 | 0.039472 | 0.039472 | 0 | 0.003121 | 0.374898 | 12,302 | 454 | 79 | 27.096916 | 0.813914 | 0.139327 | 0 | 0.236111 | 0 | 0 | 0.021966 | 0 | 0 | 0 | 0 | 0.002203 | 0 | 1 | 0.076389 | false | 0.034722 | 0.055556 | 0 | 0.298611 | 0.013889 | 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 | 0 | 1 | 0 |
f182e3c76127620cdb609d77542bf57fc763d905 | 3,616 | py | Python | Scripts/generateOTTagsModule.py | justvanrossum/fontgoggles | 0054f17d3c82938f62468c0cdb7d90b68c76d396 | [
"Apache-2.0"
] | 308 | 2020-02-17T10:08:17.000Z | 2022-03-27T19:47:49.000Z | Scripts/generateOTTagsModule.py | justvanrossum/fontgoggles | 0054f17d3c82938f62468c0cdb7d90b68c76d396 | [
"Apache-2.0"
] | 147 | 2020-02-17T10:03:56.000Z | 2022-03-28T17:37:09.000Z | Scripts/generateOTTagsModule.py | justvanrossum/fontgoggles | 0054f17d3c82938f62468c0cdb7d90b68c76d396 | [
"Apache-2.0"
] | 41 | 2020-02-25T16:15:51.000Z | 2022-03-12T00:02:11.000Z | import os
import re
def parse(data):
start = data.find("<tbody>")
end = data.find("</tbody>")
data = data[start+7:end]
for chunk in re.findall(r"<tr>.+?</tr>", data, re.DOTALL):
fields = re.findall(r"<td>(.+?)</td>", chunk, re.DOTALL)
parsedFields = []
for field in fields:
... | 32 | 76 | 0.535675 | 412 | 3,616 | 4.660194 | 0.315534 | 0.015625 | 0.0375 | 0.04375 | 0.121875 | 0.121875 | 0.097917 | 0.097917 | 0.097917 | 0 | 0 | 0.011665 | 0.3125 | 3,616 | 112 | 77 | 32.285714 | 0.76066 | 0.059181 | 0 | 0.134021 | 0 | 0 | 0.188402 | 0.008243 | 0 | 0 | 0 | 0 | 0.030928 | 1 | 0.041237 | false | 0 | 0.051546 | 0 | 0.092784 | 0.206186 | 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 | 0 | 1 | 0 |
f183e8d9598657f18e0da5ccceacb5083a04c145 | 4,000 | py | Python | tests/test_request_logging_middleware.py | quoth/fastapi-cloud-logging | 680f5ab6d90a6d06d1037845a23f355cc6d3b0fe | [
"MIT"
] | null | null | null | tests/test_request_logging_middleware.py | quoth/fastapi-cloud-logging | 680f5ab6d90a6d06d1037845a23f355cc6d3b0fe | [
"MIT"
] | null | null | null | tests/test_request_logging_middleware.py | quoth/fastapi-cloud-logging | 680f5ab6d90a6d06d1037845a23f355cc6d3b0fe | [
"MIT"
] | null | null | null | import pytest
from fastapi import Request
from pytest_mock import MockerFixture
from starlette.datastructures import Headers
from fastapi_cloud_logging.request_logging_middleware import (
_FASTAPI_REQUEST_CONTEXT,
RequestLoggingMiddleware,
)
@pytest.fixture
def middleware(mocker: MockerFixture) -> RequestLog... | 30.075188 | 94 | 0.48975 | 357 | 4,000 | 5.29972 | 0.187675 | 0.133192 | 0.12685 | 0.02537 | 0.450846 | 0.386364 | 0.386364 | 0.377378 | 0.377378 | 0.360465 | 0 | 0.063544 | 0.38625 | 4,000 | 132 | 95 | 30.30303 | 0.707128 | 0 | 0 | 0.448 | 0 | 0 | 0.19275 | 0.02425 | 0 | 0 | 0 | 0 | 0.096 | 1 | 0.024 | false | 0 | 0.04 | 0.008 | 0.072 | 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 | 0 | 0 | 1 | 0 |
f186dbe8c5a6f32bd57f511982e06c3f8a0977c9 | 1,055 | py | Python | api/tests/snapshots/snap_test_api.py | City-of-Helsinki/notification-service-api | 1c4c6d900de5f2ce9ce9becb6774d10892084ede | [
"MIT"
] | null | null | null | api/tests/snapshots/snap_test_api.py | City-of-Helsinki/notification-service-api | 1c4c6d900de5f2ce9ce9becb6774d10892084ede | [
"MIT"
] | 17 | 2020-07-07T12:08:34.000Z | 2021-06-10T20:26:20.000Z | api/tests/snapshots/snap_test_api.py | City-of-Helsinki/notification-service-api | 1c4c6d900de5f2ce9ce9becb6774d10892084ede | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots["test_send_sms 1"] = {
"errors": [],
"messages": {"+358461231231": {"converted": "+358461231231", "status": "CREATED"}},
"warnings"... | 25.731707 | 87 | 0.563033 | 88 | 1,055 | 6.568182 | 0.522727 | 0.089965 | 0.179931 | 0.140138 | 0.484429 | 0.484429 | 0.484429 | 0.484429 | 0.484429 | 0.484429 | 0 | 0.144608 | 0.22654 | 1,055 | 40 | 88 | 26.375 | 0.563725 | 0.058768 | 0 | 0.34375 | 0 | 0 | 0.456566 | 0.071717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 | 0 | 0 | 1 | 0 |
f18777bf37a356b77a08bfd81442ba10cd669ef2 | 2,552 | py | Python | metrics.py | alexjercan/normals-estimation | 6f18f9248b7c01842f0d4ba57cde5227a893f506 | [
"MIT"
] | null | null | null | metrics.py | alexjercan/normals-estimation | 6f18f9248b7c01842f0d4ba57cde5227a893f506 | [
"MIT"
] | null | null | null | metrics.py | alexjercan/normals-estimation | 6f18f9248b7c01842f0d4ba57cde5227a893f506 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Developed by Alex Jercan <jercan_alex27@yahoo.com>
#
# References:
# - https://github.com/XinJCheng/CSPN/blob/b3e487bdcdcd8a63333656e69b3268698e543181/cspn_pytorch/utils.py#L19
# - https://web.eecs.umich.edu/~fouhey/2016/evalSN/evalSN.html
#
from math import radians
import torch
import torc... | 35.444444 | 138 | 0.653605 | 367 | 2,552 | 4.310627 | 0.318801 | 0.05689 | 0.03287 | 0.053097 | 0.120101 | 0.03287 | 0 | 0 | 0 | 0 | 0 | 0.046027 | 0.191223 | 2,552 | 72 | 139 | 35.444444 | 0.720446 | 0.104232 | 0 | 0 | 0 | 0.022222 | 0.121265 | 0.049649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.311111 | 0.044444 | 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 | 0 | 1 | 0 |
f188a72c45fc5d13f8ee8845ece06a14fed39304 | 2,088 | py | Python | pyfarm/models/statistics/task_count.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | pyfarm/models/statistics/task_count.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | pyfarm/models/statistics/task_count.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | # No shebang line, this module is meant to be imported
#
# Copyright 2015 Ambient Entertainment GmbH & Co. KG
#
# 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/lice... | 29.408451 | 77 | 0.690134 | 295 | 2,088 | 4.8 | 0.474576 | 0.039548 | 0.063559 | 0.060028 | 0.182203 | 0.115819 | 0.115819 | 0.115819 | 0.115819 | 0 | 0 | 0.004957 | 0.227011 | 2,088 | 70 | 78 | 29.828571 | 0.872367 | 0.429119 | 0 | 0.30303 | 0 | 0 | 0.243151 | 0.023116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.424242 | 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 | 0 | 0 | 1 | 0 |
f189b87dcc3283704fc6b747b9d51de15714a10a | 2,817 | py | Python | malware prediction.py | Highcourtdurai/AI-prediction | bea4c19c0c9bf3432be6cf61f9a4992d3070746c | [
"Apache-2.0"
] | null | null | null | malware prediction.py | Highcourtdurai/AI-prediction | bea4c19c0c9bf3432be6cf61f9a4992d3070746c | [
"Apache-2.0"
] | null | null | null | malware prediction.py | Highcourtdurai/AI-prediction | bea4c19c0c9bf3432be6cf61f9a4992d3070746c | [
"Apache-2.0"
] | null | null | null | import warnings
warnings.filterwarnings('ignore')
import pandas as pd
import numpy as np
import seaborn as sns
#from sklearn.svm import SVC
#from sklearn.model_selection import KFold
from sklearn import preprocessing
import matplotlib.pyplot as plt
data=pd.read_csv('android.csv')
print(data.shape)
da... | 23.475 | 102 | 0.746539 | 417 | 2,817 | 4.848921 | 0.280576 | 0.059842 | 0.034619 | 0.017804 | 0.176558 | 0.068249 | 0.068249 | 0.068249 | 0.037587 | 0 | 0 | 0.013952 | 0.134895 | 2,817 | 119 | 103 | 23.672269 | 0.815757 | 0.071707 | 0 | 0.15942 | 0 | 0 | 0.043024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.275362 | 0 | 0.275362 | 0.231884 | 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 | 0 | 1 | 0 |
f18ade7811c36ebc2634566008604890a3cd1f7b | 3,147 | py | Python | _unittests/ut_ipythonhelper/test_ipythonhelper.py | janjagusch/pyquickhelper | d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b | [
"MIT"
] | 18 | 2015-11-10T08:09:23.000Z | 2022-02-16T11:46:45.000Z | _unittests/ut_ipythonhelper/test_ipythonhelper.py | janjagusch/pyquickhelper | d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b | [
"MIT"
] | 321 | 2015-06-14T21:34:28.000Z | 2021-11-28T17:10:03.000Z | _unittests/ut_ipythonhelper/test_ipythonhelper.py | janjagusch/pyquickhelper | d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b | [
"MIT"
] | 10 | 2015-06-20T01:35:00.000Z | 2022-01-19T15:54:32.000Z | """
@brief test log(time=2s)
"""
import sys
import os
import unittest
from pyquickhelper.pycode import ExtTestCase
from pyquickhelper.ipythonhelper import AutoCompletion, AutoCompletionFile, MagicCommandParser, MagicClassWithHelpers, open_html_form
class TestAutoCompletion(ExtTestCase):
def test_completion... | 34.582418 | 133 | 0.57674 | 362 | 3,147 | 4.861878 | 0.328729 | 0.023864 | 0.006818 | 0.009091 | 0.195455 | 0.157955 | 0.157955 | 0.119318 | 0.119318 | 0.065909 | 0 | 0.013239 | 0.279949 | 3,147 | 90 | 134 | 34.966667 | 0.76346 | 0.017159 | 0 | 0.133333 | 0 | 0 | 0.158442 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 1 | 0.093333 | false | 0 | 0.066667 | 0.013333 | 0.186667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74af94c08770ecd85e6abea27c4f5fa08a581c3a | 1,479 | py | Python | dcm2lungwin.py | hbuck1996/CT-Window-adjustment | fc5387d42cb4f4299a074aad7aff43cf396578d3 | [
"MIT"
] | 1 | 2021-11-05T08:37:09.000Z | 2021-11-05T08:37:09.000Z | dcm2lungwin.py | hbuck1996/CT-Window-adjustment | fc5387d42cb4f4299a074aad7aff43cf396578d3 | [
"MIT"
] | null | null | null | dcm2lungwin.py | hbuck1996/CT-Window-adjustment | fc5387d42cb4f4299a074aad7aff43cf396578d3 | [
"MIT"
] | null | null | null | # -*- coding=utf-8 -*-
import pydicom
import os
import numpy
from os.path import splitext
import PIL.Image as Image
def getfile(file):
dcm = pydicom.dcmread(file)
img2 = dcm.pixel_array * dcm.RescaleSlope + dcm.RescaleIntercept
return img2
def get_window_size(window_type):
if window_type =='lung':#肺窗... | 26.890909 | 68 | 0.634212 | 213 | 1,479 | 4.258216 | 0.389671 | 0.084895 | 0.028666 | 0.041896 | 0.085998 | 0.035281 | 0.035281 | 0 | 0 | 0 | 0 | 0.03664 | 0.243408 | 1,479 | 54 | 69 | 27.388889 | 0.773905 | 0.024341 | 0 | 0 | 0 | 0 | 0.025748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.111111 | 0 | 0.244444 | 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 | 0 | 0 | 1 | 0 |
74b08192a0962af59339ae5fc75dfd53de367b84 | 1,600 | py | Python | utils/ansi_text.py | hkkwok/MachOTool | 469c0fd06199356fcc6d68809c7ba15a12eac1fd | [
"Apache-2.0"
] | 12 | 2016-01-08T22:35:14.000Z | 2019-07-29T11:50:41.000Z | utils/ansi_text.py | uvbs/MachOTool | 469c0fd06199356fcc6d68809c7ba15a12eac1fd | [
"Apache-2.0"
] | 2 | 2015-12-10T21:28:04.000Z | 2019-10-15T10:05:19.000Z | utils/ansi_text.py | uvbs/MachOTool | 469c0fd06199356fcc6d68809c7ba15a12eac1fd | [
"Apache-2.0"
] | 6 | 2016-10-10T05:29:41.000Z | 2019-10-15T09:59:17.000Z | class AnsiText(object):
ENABLE_COLOR = True
COLORS = {'black': 30,
'red': 31,
'green': 32,
'yellow': 33,
'blue': 34,
'magenta': 35,
'cyan': 36,
'white': 37}
BOLD = 1
UNDERLINE = 4
def __init__(self, ... | 30.769231 | 89 | 0.5025 | 180 | 1,600 | 4.383333 | 0.361111 | 0.057034 | 0.057034 | 0.072243 | 0.134347 | 0.096324 | 0.096324 | 0 | 0 | 0 | 0 | 0.020555 | 0.391875 | 1,600 | 51 | 90 | 31.372549 | 0.790339 | 0 | 0 | 0.085106 | 0 | 0 | 0.089375 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.042553 | false | 0 | 0 | 0 | 0.191489 | 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 | 0 | 0 | 1 | 0 |
74b378062d50de8d6fa4de92edd93991772320d6 | 330 | py | Python | Python/Learn Python The Hard Way/ex32.py | Vayne-Lover/Effective | 05f0a08bec8eb112fdb4e7a489d0e33bc81522ff | [
"MIT"
] | null | null | null | Python/Learn Python The Hard Way/ex32.py | Vayne-Lover/Effective | 05f0a08bec8eb112fdb4e7a489d0e33bc81522ff | [
"MIT"
] | null | null | null | Python/Learn Python The Hard Way/ex32.py | Vayne-Lover/Effective | 05f0a08bec8eb112fdb4e7a489d0e33bc81522ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
the_count = [1, 2, 3, 4, 5]
fruits = ['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
for i in the_count:
print(i)
for j in fruits:
print(j)
for k in change:
print(k)
element=[]
for i in range(6):
element.append(i)
for e in element:
... | 13.2 | 51 | 0.587879 | 56 | 330 | 3.428571 | 0.535714 | 0.083333 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03861 | 0.215152 | 330 | 24 | 52 | 13.75 | 0.702703 | 0.063636 | 0 | 0 | 0 | 0 | 0.149837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 | 0 | 1 | 0 |
74b3f7e3888622737e8eff19f6ae59cf2977b401 | 678 | py | Python | agr0_sh0p/sendemail/sg_verify.py | Mikhail-Kushnerev/agr0-sh0p | b0bea7aef7166ae04691a6b575658a1fb16543ca | [
"BSD-3-Clause"
] | null | null | null | agr0_sh0p/sendemail/sg_verify.py | Mikhail-Kushnerev/agr0-sh0p | b0bea7aef7166ae04691a6b575658a1fb16543ca | [
"BSD-3-Clause"
] | null | null | null | agr0_sh0p/sendemail/sg_verify.py | Mikhail-Kushnerev/agr0-sh0p | b0bea7aef7166ae04691a6b575658a1fb16543ca | [
"BSD-3-Clause"
] | null | null | null | # using SendGrid's Python Library
# https://github.com/sendgrid/sendgrid-python
import os
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail
APIKEY = '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'
message = Mail(
from_email='muxa2k11@gmail.com',
to_emails='... | 28.25 | 80 | 0.756637 | 85 | 678 | 5.976471 | 0.647059 | 0.076772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02931 | 0.144543 | 678 | 23 | 81 | 29.478261 | 0.846552 | 0.110619 | 0 | 0 | 0 | 0 | 0.338333 | 0.153333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.222222 | 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 | 0 | 1 | 0 |
74b48488924a2302ea18239cc158782bc978ef6c | 2,324 | py | Python | setup.py | rhys-newbury/swift | 60154b0441c468e3c15225c6820158d52ade98bf | [
"MIT"
] | 25 | 2020-10-09T05:20:21.000Z | 2022-02-27T19:28:14.000Z | setup.py | rhys-newbury/swift | 60154b0441c468e3c15225c6820158d52ade98bf | [
"MIT"
] | 19 | 2020-10-28T22:56:55.000Z | 2022-03-23T11:26:41.000Z | setup.py | rhys-newbury/swift | 60154b0441c468e3c15225c6820158d52ade98bf | [
"MIT"
] | 8 | 2021-03-02T16:13:46.000Z | 2021-12-22T10:50:35.000Z | from setuptools import setup, find_packages, Extension
from os import path
import os
# fmt: off
import pip
pip.main(['install', 'numpy>=1.18.0'])
import numpy
# fmt: on
here = path.abspath(path.dirname(__file__))
req = ["numpy>=1.18.0", "spatialgeometry>=0.2.0", "websockets"]
# Get the long description from the REA... | 29.794872 | 77 | 0.654905 | 285 | 2,324 | 5.235088 | 0.533333 | 0.050268 | 0.067024 | 0.069705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017486 | 0.212565 | 2,324 | 77 | 78 | 30.181818 | 0.797814 | 0.160499 | 0 | 0 | 0 | 0 | 0.345023 | 0.022176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.090909 | 0 | 0.127273 | 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 | 0 | 0 | 1 | 0 |
74ba731ff054eb15ac2f02bf27cba0343a1c4050 | 1,510 | py | Python | src/opera/parser/tosca/__init__.py | sstanovnik/xopera-opera | 06031d37268913c6ba6dbc30ec6b4acb3a17dc5a | [
"Apache-2.0"
] | null | null | null | src/opera/parser/tosca/__init__.py | sstanovnik/xopera-opera | 06031d37268913c6ba6dbc30ec6b4acb3a17dc5a | [
"Apache-2.0"
] | null | null | null | src/opera/parser/tosca/__init__.py | sstanovnik/xopera-opera | 06031d37268913c6ba6dbc30ec6b4acb3a17dc5a | [
"Apache-2.0"
] | null | null | null | from pathlib import PurePath
import importlib
from opera import stdlib
from opera.error import ParseError
from opera.parser import yaml
SUPPORTED_VERSIONS = dict(
tosca_simple_yaml_1_3="v_1_3",
)
def load(base_path, template_name):
with (base_path / template_name).open() as input_fd:
input_yaml = y... | 29.607843 | 70 | 0.662914 | 187 | 1,510 | 5.064171 | 0.374332 | 0.101373 | 0.053854 | 0.066526 | 0.050686 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005226 | 0.239735 | 1,510 | 50 | 71 | 30.2 | 0.819686 | 0 | 0 | 0.054054 | 0 | 0 | 0.110596 | 0.016556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.162162 | 0.027027 | 0.324324 | 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 | 0 | 0 | 1 | 0 |
74bab9faf0636dab82e5b1e9553de1e5cede8ce6 | 18,100 | py | Python | project/upload/views.py | beijbom/coralnet | c3f4a44eeb60cb41a079329a0068dc8b34096e89 | [
"BSD-2-Clause"
] | 31 | 2019-12-08T14:22:52.000Z | 2021-12-27T04:58:12.000Z | project/upload/views.py | beijbom/coralnet | c3f4a44eeb60cb41a079329a0068dc8b34096e89 | [
"BSD-2-Clause"
] | 193 | 2019-12-07T23:27:43.000Z | 2022-03-05T08:05:46.000Z | project/upload/views.py | beijbom/coralnet | c3f4a44eeb60cb41a079329a0068dc8b34096e89 | [
"BSD-2-Clause"
] | null | null | null | import json
from datetime import timedelta
from django.conf import settings
from django.http import HttpResponseRedirect, JsonResponse
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.utils.timezone import now
from accounts.utils import get_imported_user
from annotati... | 35.559921 | 88 | 0.673149 | 2,231 | 18,100 | 5.241147 | 0.161811 | 0.038998 | 0.043274 | 0.036945 | 0.499786 | 0.46515 | 0.430343 | 0.427948 | 0.40366 | 0.383477 | 0 | 0.003998 | 0.23989 | 18,100 | 508 | 89 | 35.629921 | 0.845908 | 0.172376 | 0 | 0.510324 | 0 | 0 | 0.126374 | 0.018596 | 0 | 0 | 0 | 0.001969 | 0 | 1 | 0.035398 | false | 0 | 0.135693 | 0 | 0.265487 | 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 | 0 | 0 | 1 | 0 |
74bb9cc1b76d05a1ca8fad8227db7488f5dc77ca | 3,846 | py | Python | medgen/annotate/variant.py | text2gene/medgen | e2327bdf8f2c9e35da177fbbd0d217790c0ae361 | [
"Apache-2.0"
] | null | null | null | medgen/annotate/variant.py | text2gene/medgen | e2327bdf8f2c9e35da177fbbd0d217790c0ae361 | [
"Apache-2.0"
] | null | null | null | medgen/annotate/variant.py | text2gene/medgen | e2327bdf8f2c9e35da177fbbd0d217790c0ae361 | [
"Apache-2.0"
] | null | null | null | """ Variant-level annotation functions requiring ClinvarDB and Metapub (NCBI/eutils). """
import requests, json, urllib
from metapub.text_mining import is_pmcid, is_ncbi_bookID
from metapub.pubmedcentral import get_pmid_for_otherid
from ..db.clinvar import ClinVarDB
from ..log import log
##########################... | 34.035398 | 110 | 0.583983 | 428 | 3,846 | 5.016355 | 0.287383 | 0.081975 | 0.018631 | 0.026083 | 0.296227 | 0.264555 | 0.161155 | 0.161155 | 0.133209 | 0.115976 | 0 | 0.00103 | 0.24285 | 3,846 | 112 | 111 | 34.339286 | 0.736264 | 0.191368 | 0 | 0.275862 | 0 | 0 | 0.137158 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.086207 | false | 0 | 0.086207 | 0 | 0.258621 | 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 | 0 | 0 | 1 | 0 |
74bbb875400925fd99ab218e4498bdd041de47bc | 6,049 | py | Python | microdf/custom_taxes.py | MaxGhenis/taxcalc-helpers | 85d2739d1c96882424cb51ef1806c9e51f88c085 | [
"MIT"
] | 6 | 2019-06-26T14:37:49.000Z | 2020-08-10T22:26:34.000Z | microdf/custom_taxes.py | MaxGhenis/taxcalc-helpers | 85d2739d1c96882424cb51ef1806c9e51f88c085 | [
"MIT"
] | 94 | 2019-06-22T14:57:58.000Z | 2020-09-08T16:35:38.000Z | microdf/custom_taxes.py | MaxGhenis/taxcalc-helpers | 85d2739d1c96882424cb51ef1806c9e51f88c085 | [
"MIT"
] | 6 | 2020-09-08T18:29:36.000Z | 2021-04-01T18:31:42.000Z | """
Functions and data for estimating taxes outside the income tax system.
Examples include value added tax, financial transaction tax, and carbon tax.
"""
import microdf as mdf
import numpy as np
import pandas as pd
# Source:
# https://www.taxpolicycenter.org/briefing-book/who-would-bear-burden-vat
VAT_INCIDENCE =... | 33.41989 | 119 | 0.65515 | 886 | 6,049 | 4.351016 | 0.226862 | 0.052918 | 0.031128 | 0.02179 | 0.473411 | 0.43917 | 0.431128 | 0.428794 | 0.428794 | 0.42594 | 0 | 0.042073 | 0.237725 | 6,049 | 180 | 120 | 33.605556 | 0.793971 | 0.551661 | 0 | 0.333333 | 0 | 0 | 0.066966 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 1 | 0.045977 | false | 0 | 0.034483 | 0 | 0.08046 | 0.011494 | 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 | 0 | 1 | 0 |
74bd2bcc47cfe5b8be22decac84de616312a386c | 9,067 | py | Python | system_c/scripts/combine_two_systems.py | hkayesh/depend_clean | 1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851 | [
"Apache-2.0"
] | null | null | null | system_c/scripts/combine_two_systems.py | hkayesh/depend_clean | 1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851 | [
"Apache-2.0"
] | null | null | null | system_c/scripts/combine_two_systems.py | hkayesh/depend_clean | 1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851 | [
"Apache-2.0"
] | null | null | null | from utilities import Utilities
# from comment_level_evaluation import CommentLevelEvaluation
import operator
class CombineSystems:
def __init__(self):
self.utilities = Utilities()
self.storage_path = 'comment-level-datasets-2/'
# self.storage_path = 'r-combine-outputs/'
# self.ra... | 38.419492 | 149 | 0.545715 | 1,062 | 9,067 | 4.46516 | 0.149718 | 0.035428 | 0.023619 | 0.015183 | 0.614509 | 0.548503 | 0.536061 | 0.51202 | 0.381274 | 0.381274 | 0 | 0.01872 | 0.351936 | 9,067 | 235 | 150 | 38.582979 | 0.788291 | 0.122532 | 0 | 0.412162 | 0 | 0 | 0.050366 | 0.003156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047297 | false | 0 | 0.013514 | 0 | 0.087838 | 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 | 0 | 0 | 1 | 0 |
74bdf4ce11cc1cf0cef84ffadb758b63eccf4b5b | 603 | py | Python | python/ops/lekcija 24/program01.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/ops/lekcija 24/program01.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/ops/lekcija 24/program01.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | import json
student = {
"ime" : "Milan",
"prezime" : "Tair",
"indeks" : 2008213514,
"ispiti" : [
{
"predmet" : "Programiranje 1",
"datum" : "2008-01-05",
"ocjena" : 10
},
{
"predmet" : "Informatika",
... | 20.1 | 44 | 0.480929 | 48 | 603 | 6.041667 | 0.604167 | 0.062069 | 0.075862 | 0.089655 | 0.144828 | 0.144828 | 0 | 0 | 0 | 0 | 0 | 0.081794 | 0.371476 | 603 | 29 | 45 | 20.793103 | 0.683377 | 0 | 0 | 0.24 | 0 | 0 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.08 | 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 | 0 | 1 | 0 |
74be7f88c0d0fd7163d55362678d0731ca6c0782 | 1,066 | py | Python | ___Python/Carsten/p11_Excel/m01_Excel_einlesen.py | uvenil/PythonKurs201806 | 85afa9c9515f5dd8bec0c546f077d8cc39568fe8 | [
"Apache-2.0"
] | null | null | null | ___Python/Carsten/p11_Excel/m01_Excel_einlesen.py | uvenil/PythonKurs201806 | 85afa9c9515f5dd8bec0c546f077d8cc39568fe8 | [
"Apache-2.0"
] | null | null | null | ___Python/Carsten/p11_Excel/m01_Excel_einlesen.py | uvenil/PythonKurs201806 | 85afa9c9515f5dd8bec0c546f077d8cc39568fe8 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import xlrd
import xlsxwriter
from p01_kennenlernen import meinebibliothek
df = pd.read_excel("O:\___Python\personen.xlsx") # importieren von excel nach python mit datumsangabe in Timestamp
print(df)
print()
df1 = pd.to_datetime(df["Geburtsdatum"]) # umwandeln von Timestamp in datetime
... | 34.387097 | 135 | 0.766417 | 132 | 1,066 | 6.098485 | 0.537879 | 0.026087 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.144465 | 1,066 | 30 | 136 | 35.533333 | 0.876096 | 0.401501 | 0 | 0.238095 | 0 | 0 | 0.191987 | 0.105175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74bf6f3b5de8a5799156e1034c8878c020d100c2 | 7,769 | py | Python | vmz_interface/extractor/build_lmdb.py | fksato/vmz_interface | 985e7129f4bf266a6226dbc2b7e108dafc8b917a | [
"Apache-2.0"
] | null | null | null | vmz_interface/extractor/build_lmdb.py | fksato/vmz_interface | 985e7129f4bf266a6226dbc2b7e108dafc8b917a | [
"Apache-2.0"
] | null | null | null | vmz_interface/extractor/build_lmdb.py | fksato/vmz_interface | 985e7129f4bf266a6226dbc2b7e108dafc8b917a | [
"Apache-2.0"
] | null | null | null | import os
import csv
import numpy as np
import pandas as pd
import pickle as pk
from glob import glob
from math import ceil
from vmz_interface.data.db_video_create import create_video_db
class VideoDBBuilder:
def __init__(self, stimulus_id, lmdb_path, temporal_depth, fpv=75, video_strt_offset=15
, clips_overlap... | 35.313636 | 164 | 0.740378 | 1,282 | 7,769 | 4.153666 | 0.170047 | 0.02554 | 0.013521 | 0.031925 | 0.281315 | 0.174648 | 0.150423 | 0.107793 | 0.049202 | 0.022911 | 0 | 0.008913 | 0.16244 | 7,769 | 219 | 165 | 35.474886 | 0.809436 | 0.197838 | 0 | 0.072464 | 0 | 0 | 0.098614 | 0.062037 | 0 | 0 | 0 | 0 | 0.036232 | 1 | 0.057971 | false | 0 | 0.057971 | 0 | 0.152174 | 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 | 0 | 0 | 1 | 0 |
74c04ac95cf162be1b2cc7dbd708d0513446fe97 | 13,038 | py | Python | tests/test_pyoidc_facade.py | Titotix/Flask-pyoidc | 87b8059617304ec634d7b6d3f5f649c40d9cdb4c | [
"Apache-2.0"
] | 64 | 2017-01-31T09:08:15.000Z | 2021-12-21T21:05:45.000Z | tests/test_pyoidc_facade.py | Titotix/Flask-pyoidc | 87b8059617304ec634d7b6d3f5f649c40d9cdb4c | [
"Apache-2.0"
] | 99 | 2017-02-08T22:38:54.000Z | 2022-03-31T22:03:27.000Z | tests/test_pyoidc_facade.py | Titotix/Flask-pyoidc | 87b8059617304ec634d7b6d3f5f649c40d9cdb4c | [
"Apache-2.0"
] | 33 | 2017-02-09T18:19:51.000Z | 2021-12-24T17:48:52.000Z | import time
import base64
import pytest
import responses
from oic.oic import AuthorizationResponse, AccessTokenResponse, TokenErrorResponse, OpenIDSchema, \
AuthorizationErrorResponse
from urllib.parse import parse_qsl, urlparse
from flask_pyoidc.provider_configuration import ProviderConfiguration, ClientMetadata... | 49.763359 | 118 | 0.649409 | 1,262 | 13,038 | 6.335182 | 0.12916 | 0.094059 | 0.052533 | 0.056035 | 0.596623 | 0.51257 | 0.430394 | 0.397498 | 0.353846 | 0.329581 | 0 | 0.004615 | 0.268753 | 13,038 | 261 | 119 | 49.954023 | 0.833963 | 0 | 0 | 0.321429 | 0 | 0 | 0.071253 | 0.004679 | 0 | 0 | 0 | 0 | 0.120536 | 1 | 0.089286 | false | 0 | 0.040179 | 0 | 0.165179 | 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 | 0 | 0 | 1 | 0 |
74c236bbb346149e0b60b81086ce4a68adb25d83 | 4,260 | py | Python | INIT.py | db260179/mullion | 3ed599f624ab308f5a6ffe4c51aa372252430aa1 | [
"WTFPL"
] | null | null | null | INIT.py | db260179/mullion | 3ed599f624ab308f5a6ffe4c51aa372252430aa1 | [
"WTFPL"
] | null | null | null | INIT.py | db260179/mullion | 3ed599f624ab308f5a6ffe4c51aa372252430aa1 | [
"WTFPL"
] | null | null | null | # Thanks to zecoxao and flatz <3
import struct
from binascii import unhexlify as uhx
from binascii import hexlify as hx
from Crypto.Cipher import AES
from Crypto.Hash import SHA, HMAC, CMAC
import os
import sys
EID1KEYS = [
'88228B0F92C4C36AF097F1FE948D27CE',
'5794BC8C2131B1E3E7EC61EF14C32EB5',
]
I... | 38.035714 | 129 | 0.559155 | 502 | 4,260 | 4.595618 | 0.219124 | 0.05635 | 0.073255 | 0.073255 | 0.398786 | 0.328132 | 0.328132 | 0.301691 | 0.301691 | 0.034677 | 0 | 0.135986 | 0.321596 | 4,260 | 112 | 130 | 38.035714 | 0.662284 | 0.007042 | 0 | 0.1 | 0 | 0 | 0.040797 | 0.031083 | 0 | 0 | 0.032783 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.077778 | 0.033333 | 0.155556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74c3c58b7c52752273d5091bfab02b92f9e98a85 | 10,549 | py | Python | dgi/code2graph/class_graph_builder.py | konveyor/tackle-data-gravity-insights | 97a3eb6a04a2bca7f7e3422581a8fad055d90c04 | [
"Apache-2.0"
] | 3 | 2022-03-28T20:54:34.000Z | 2022-03-31T15:14:39.000Z | dgi/code2graph/class_graph_builder.py | rofrano/tackle-data-gravity-insights | f734f023dc46ca8e038b5ba8029e5c1177a1d34f | [
"Apache-2.0"
] | 9 | 2022-03-01T13:29:50.000Z | 2022-03-31T13:04:36.000Z | dgi/code2graph/class_graph_builder.py | rofrano/tackle-data-gravity-insights | f734f023dc46ca8e038b5ba8029e5c1177a1d34f | [
"Apache-2.0"
] | 3 | 2022-03-28T14:41:45.000Z | 2022-03-30T19:17:31.000Z | ################################################################################
# Copyright IBM Corporation 2021, 2022
#
# 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.ap... | 40.263359 | 98 | 0.567921 | 1,168 | 10,549 | 4.864726 | 0.17637 | 0.063358 | 0.031679 | 0.029039 | 0.665611 | 0.583069 | 0.575678 | 0.541359 | 0.495952 | 0.424498 | 0 | 0.004943 | 0.328752 | 10,549 | 261 | 99 | 40.417625 | 0.797486 | 0.115177 | 0 | 0.472527 | 0 | 0 | 0.039695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.06044 | 0 | 0.10989 | 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 | 0 | 0 | 1 | 0 |
74c5c6595e58e5ebc6c9bd0923ccb47fb28a9fb2 | 3,025 | py | Python | tcfcli/cmds/local/common/options.py | dorasang/tcfcli | a24f14aa5a0281822de580479471bd3e83a8778b | [
"Apache-2.0"
] | 14 | 2019-03-01T09:47:36.000Z | 2019-11-28T01:58:54.000Z | tcfcli/cmds/local/common/options.py | dorasang/tcfcli | a24f14aa5a0281822de580479471bd3e83a8778b | [
"Apache-2.0"
] | 8 | 2019-03-12T10:22:53.000Z | 2020-08-20T08:15:51.000Z | tcfcli/cmds/local/common/options.py | dorasang/tcfcli | a24f14aa5a0281822de580479471bd3e83a8778b | [
"Apache-2.0"
] | 7 | 2019-03-01T09:47:52.000Z | 2020-06-13T12:14:48.000Z | import click
import os
_DEAFULT_TEMPLATE_FILE = 'template.[yaml|yml]'
def get_template_abspath(ctx, param, template_name):
if template_name == _DEAFULT_TEMPLATE_FILE:
template_name = 'template.yaml'
tmp = 'template.yml'
if os.path.exists(tmp):
template_name = tmp
return... | 32.880435 | 125 | 0.551736 | 326 | 3,025 | 4.97546 | 0.361963 | 0.101726 | 0.035142 | 0.033292 | 0.107275 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006021 | 0.341157 | 3,025 | 92 | 126 | 32.880435 | 0.807827 | 0.010579 | 0 | 0.063492 | 0 | 0 | 0.324043 | 0.016118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0.015873 | 0.031746 | 0 | 0.190476 | 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 | 0 | 0 | 1 | 0 |
74c8da5877fedaee54944d0a1f1f838582ece639 | 2,049 | py | Python | apis/news/query_helper.py | lannguyen0910/SAB | 12c787cf592cb26c2a91829038ad1c2f9bac1f16 | [
"MIT"
] | 3 | 2021-11-03T14:36:53.000Z | 2021-11-18T17:21:28.000Z | apis/news/query_helper.py | lannguyen0910/SAB | 12c787cf592cb26c2a91829038ad1c2f9bac1f16 | [
"MIT"
] | null | null | null | apis/news/query_helper.py | lannguyen0910/SAB | 12c787cf592cb26c2a91829038ad1c2f9bac1f16 | [
"MIT"
] | null | null | null | ERROR_TEXT = "Sources can not be set if country or category is set."
class QueryHelper(object):
def __init__(self, query=None, category=None, country=None,
sources=None, language=None, slack_channel=None):
"""Constructs the query helper object.
Args:
name: string, The... | 49.97561 | 87 | 0.617862 | 260 | 2,049 | 4.830769 | 0.403846 | 0.019904 | 0.022293 | 0.031051 | 0.111465 | 0.08121 | 0.039809 | 0 | 0 | 0 | 0 | 0.007948 | 0.324549 | 2,049 | 40 | 88 | 51.225 | 0.899566 | 0.632992 | 0 | 0 | 0 | 0 | 0.094474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74c973a8e5ee64795c61fcb8c64b1477242ab749 | 1,666 | py | Python | final_project/accounts/forms.py | W7SP/project_defense | 550152bd82998333444ace099c47feffffb6c3ab | [
"MIT"
] | null | null | null | final_project/accounts/forms.py | W7SP/project_defense | 550152bd82998333444ace099c47feffffb6c3ab | [
"MIT"
] | null | null | null | final_project/accounts/forms.py | W7SP/project_defense | 550152bd82998333444ace099c47feffffb6c3ab | [
"MIT"
] | null | null | null | from django.contrib.auth import forms as auth_forms, get_user_model
from django.core.validators import MinLengthValidator
from final_project.accounts.helpers import BootstrapFormMixin
from final_project.accounts.models import Profile
from django import forms
from final_project.main.validators import validate_only_let... | 29.75 | 76 | 0.67587 | 185 | 1,666 | 5.778378 | 0.362162 | 0.06174 | 0.084191 | 0.044902 | 0.063611 | 0.063611 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233493 | 1,666 | 55 | 77 | 30.290909 | 0.837118 | 0 | 0 | 0 | 0 | 0 | 0.039016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.386364 | 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 | 0 | 0 | 1 | 0 |
74c9ebcbbf685433e3347e934c9eb9cfdc882fb1 | 1,931 | py | Python | mobile-analytics/visualisations/funnel_plots.py | trangqdo/mobile-analytics | 097bb4596bb11ea186048ba5bc925e84c7fd37cc | [
"Apache-2.0"
] | null | null | null | mobile-analytics/visualisations/funnel_plots.py | trangqdo/mobile-analytics | 097bb4596bb11ea186048ba5bc925e84c7fd37cc | [
"Apache-2.0"
] | null | null | null | mobile-analytics/visualisations/funnel_plots.py | trangqdo/mobile-analytics | 097bb4596bb11ea186048ba5bc925e84c7fd37cc | [
"Apache-2.0"
] | null | null | null | from plotly import graph_objs as go
from stats.funnel import create_funnel_df, group_funnel_dfs
def plot_stacked_funnel(events, steps, col=None, from_date=None, to_date=None, step_interval=0):
"""
Function used for producing a funnel plot
:param events: (DataFrame)
events dataframe
... | 33.293103 | 118 | 0.520974 | 221 | 1,931 | 4.425339 | 0.457014 | 0.0409 | 0.046012 | 0.03681 | 0.055215 | 0.055215 | 0 | 0 | 0 | 0 | 0 | 0.011775 | 0.384257 | 1,931 | 57 | 119 | 33.877193 | 0.810765 | 0.252719 | 0 | 0 | 0 | 0 | 0.075215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74cb877c97af60c6e4b5a8e17a82bc5b28994b1e | 1,016 | py | Python | segregation/tests/test_local_relative_centralization.py | noahbouchier/segregation | 88bd9608251b8bc42eae9265adb7941279b9868c | [
"BSD-3-Clause"
] | 92 | 2019-02-17T02:36:29.000Z | 2022-01-22T04:29:10.000Z | segregation/tests/test_local_relative_centralization.py | noahbouchier/segregation | 88bd9608251b8bc42eae9265adb7941279b9868c | [
"BSD-3-Clause"
] | 128 | 2019-02-22T03:52:40.000Z | 2022-02-28T18:39:01.000Z | segregation/tests/test_local_relative_centralization.py | noahbouchier/segregation | 88bd9608251b8bc42eae9265adb7941279b9868c | [
"BSD-3-Clause"
] | 29 | 2019-02-17T02:36:50.000Z | 2022-03-17T04:15:49.000Z | import unittest
import geopandas as gpd
import numpy as np
from libpysal.examples import load_example
from segregation.local import LocalRelativeCentralization
class Local_Relative_Centralization_Tester(unittest.TestCase):
def test_Local_Relative_Centralization(self):
s_map = gpd.read_file(load_example("... | 29.028571 | 87 | 0.538386 | 95 | 1,016 | 5.505263 | 0.621053 | 0.042065 | 0.10325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148903 | 0.372047 | 1,016 | 34 | 88 | 29.882353 | 0.670846 | 0 | 0 | 0 | 0 | 0 | 0.065945 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.241379 | 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 | 0 | 0 | 1 | 0 |
74cf3cdf2e8551d93b756d1f90473ad3386552cc | 819 | py | Python | python3-ardubus/setup.py | rambo/arDuBUS | d68ec05d75b3f463254039b31c31afec7e752f83 | [
"MIT"
] | 3 | 2016-01-31T21:48:37.000Z | 2021-01-17T00:39:22.000Z | python3-ardubus/setup.py | rambo/arDuBUS | d68ec05d75b3f463254039b31c31afec7e752f83 | [
"MIT"
] | null | null | null | python3-ardubus/setup.py | rambo/arDuBUS | d68ec05d75b3f463254039b31c31afec7e752f83 | [
"MIT"
] | null | null | null | """Packaging script for ardubus"""
import os
import subprocess
import setuptools
GIT_VERSION = 'UNKNOWN'
try:
GIT_VERSION = subprocess.check_output(['git', 'rev-parse', '--verify', '--short', 'HEAD']).decode('ascii').strip()
except subprocess.CalledProcessError:
pass
setuptools.setup(
name='ardubus',
... | 31.5 | 118 | 0.695971 | 101 | 819 | 5.524752 | 0.683168 | 0.053763 | 0.046595 | 0.050179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008392 | 0.126984 | 819 | 25 | 119 | 32.76 | 0.772028 | 0.034188 | 0 | 0 | 0 | 0 | 0.289172 | 0.026752 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 |