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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c3771ed8c86e4df773d2ab895c0c06823f72333e | 367 | py | Python | app/__init__.py | amanjaiswalofficial/natalie-slack-bot | 431a231b24926e04e90d4fdc5f47343bb458d398 | [
"MIT"
] | 1 | 2020-07-07T17:37:08.000Z | 2020-07-07T17:37:08.000Z | app/__init__.py | amanjaiswalofficial/natalie-slack-bot | 431a231b24926e04e90d4fdc5f47343bb458d398 | [
"MIT"
] | 1 | 2021-12-13T20:42:16.000Z | 2021-12-13T20:42:16.000Z | app/__init__.py | amanjaiswalofficial/Natalie | 431a231b24926e04e90d4fdc5f47343bb458d398 | [
"MIT"
] | null | null | null | import json
from flask import Flask
from app.exception_handler import init_error_handler
from app.utils import validate_config
app = Flask(__name__, instance_relative_config=False)
with open('./config.json') as config_file:
config_values = json.load(config_file)
validate_config(config_values)
app.config.from_j... | 21.588235 | 53 | 0.80654 | 54 | 367 | 5.148148 | 0.407407 | 0.05036 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103542 | 367 | 16 | 54 | 22.9375 | 0.844985 | 0 | 0 | 0 | 0 | 0 | 0.073569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c37b866df93f67a64f5a4a9a4d45b7df952c3aca | 1,615 | py | Python | tests/test_remove.py | whalebot-helmsman/pykt-64 | ee5e0413cd850876d3abc438480fffea4f7b7517 | [
"BSD-3-Clause"
] | null | null | null | tests/test_remove.py | whalebot-helmsman/pykt-64 | ee5e0413cd850876d3abc438480fffea4f7b7517 | [
"BSD-3-Clause"
] | null | null | null | tests/test_remove.py | whalebot-helmsman/pykt-64 | ee5e0413cd850876d3abc438480fffea4f7b7517 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setup_teardown import clear, stop_db
from nose.tools import *
from pykt import KyotoTycoon, KTException
@raises(IOError)
def test_err_remove():
db = KyotoTycoon()
ret = db.remove("A")
@with_setup(setup = clear, teardown = stop_db)
def test_remove():
db = KyotoTycoon()
db =... | 21.824324 | 46 | 0.552941 | 235 | 1,615 | 3.642553 | 0.187234 | 0.081776 | 0.063084 | 0.063084 | 0.693925 | 0.64486 | 0.598131 | 0.55257 | 0.55257 | 0.55257 | 0 | 0.005872 | 0.26192 | 1,615 | 73 | 47 | 22.123288 | 0.712248 | 0.013003 | 0 | 0.730159 | 0 | 0 | 0.033962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c37c8e5fb84774fb49effbf7beb89458284979b2 | 530 | py | Python | peerdid/types.py | DenisRybas/peer-did-python | 071cf56705552214bbe467d14d6059bd52214b6a | [
"Apache-2.0"
] | null | null | null | peerdid/types.py | DenisRybas/peer-did-python | 071cf56705552214bbe467d14d6059bd52214b6a | [
"Apache-2.0"
] | null | null | null | peerdid/types.py | DenisRybas/peer-did-python | 071cf56705552214bbe467d14d6059bd52214b6a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from enum import Enum
class PublicKeyTypeAgreement(Enum):
X25519 = 0xec
class PublicKeyTypeAuthentication(Enum):
ED25519 = 0xed
SECP256K1 = 0xe7
class EncodingType(Enum):
BASE58 = 0
@dataclass
class PublicKeyAgreement:
encoding_type: EncodingType
encoded... | 15.588235 | 40 | 0.760377 | 52 | 530 | 7.653846 | 0.519231 | 0.070352 | 0.120603 | 0.155779 | 0.21608 | 0.21608 | 0.21608 | 0 | 0 | 0 | 0 | 0.049065 | 0.192453 | 530 | 33 | 41 | 16.060606 | 0.880841 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022642 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.809524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c37d95e04cf24edc4143f6121ed93407078463c9 | 1,866 | py | Python | plotly/streaming1.py | HeliosSource/website | 1a90b01cd0f52fe82bd3451cc298890af7eddff6 | [
"CC-BY-3.0"
] | null | null | null | plotly/streaming1.py | HeliosSource/website | 1a90b01cd0f52fe82bd3451cc298890af7eddff6 | [
"CC-BY-3.0"
] | null | null | null | plotly/streaming1.py | HeliosSource/website | 1a90b01cd0f52fe82bd3451cc298890af7eddff6 | [
"CC-BY-3.0"
] | null | null | null | import numpy as np
import plotly.plotly as py
import plotly.tools as tls
import plotly.graph_objs as go
stream_ids = tls.get_credentials_file()['stream_ids']
print stream_ids
# Get stream id from stream id list
stream_id = stream_ids[0]
# Make instance of stream id object
stream_1 = go.Stream(
token=stream_id,... | 25.916667 | 109 | 0.694534 | 314 | 1,866 | 4.079618 | 0.420382 | 0.062451 | 0.020297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018133 | 0.202036 | 1,866 | 72 | 110 | 25.916667 | 0.842176 | 0.485531 | 0 | 0 | 0 | 0 | 0.086354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c37e5d089155f70cfc3c21879df51387b4842d92 | 2,698 | py | Python | src/vec2.py | Jasonshengxi/Vectors | 6a925d61f8ab8d66dc8dd47950ac3bc3e32a0da5 | [
"MIT"
] | null | null | null | src/vec2.py | Jasonshengxi/Vectors | 6a925d61f8ab8d66dc8dd47950ac3bc3e32a0da5 | [
"MIT"
] | null | null | null | src/vec2.py | Jasonshengxi/Vectors | 6a925d61f8ab8d66dc8dd47950ac3bc3e32a0da5 | [
"MIT"
] | null | null | null | from math import sqrt
class Vec2:
def __init__(self, *args):
if len(args) == 1:
self.x = args[0][0]
self.y = args[0][1]
elif len(args) == 2:
self.x = args[0]
self.y = args[1]
else:
raise ValueError("Invalid Quantity of... | 33.725 | 90 | 0.525204 | 372 | 2,698 | 3.663978 | 0.145161 | 0.073368 | 0.080704 | 0.082172 | 0.711665 | 0.680117 | 0.636097 | 0.605282 | 0.557594 | 0.47102 | 0 | 0.025481 | 0.345441 | 2,698 | 79 | 91 | 34.151899 | 0.746319 | 0 | 0 | 0.384615 | 0 | 0 | 0.119893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.015385 | 0.092308 | 0.507692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5ee0a5a4e4bbe7b9b0b54c5dea6490871cba7286 | 2,741 | py | Python | LanguageConstructs/DataModel/MetaProgramming/Reflection/descriptor.py | ha-khan/PythonPractice | 31366d0a3380b168b96cf2e90cef3960efee8a7e | [
"MIT"
] | null | null | null | LanguageConstructs/DataModel/MetaProgramming/Reflection/descriptor.py | ha-khan/PythonPractice | 31366d0a3380b168b96cf2e90cef3960efee8a7e | [
"MIT"
] | null | null | null | LanguageConstructs/DataModel/MetaProgramming/Reflection/descriptor.py | ha-khan/PythonPractice | 31366d0a3380b168b96cf2e90cef3960efee8a7e | [
"MIT"
] | null | null | null |
def log(func):
def decorate(*args):
print('calling {} descriptor'.format(args[0].type))
func(*args)
return decorate
class Client():
"""
pattern
Client is a Descriptor class allows us to share access control logic across multiple independent instances.
use for d... | 28.852632 | 120 | 0.614739 | 338 | 2,741 | 4.760355 | 0.399408 | 0.004972 | 0.019888 | 0.018645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006218 | 0.295877 | 2,741 | 95 | 121 | 28.852632 | 0.827461 | 0.467348 | 0 | 0.054054 | 0 | 0 | 0.107595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0 | 0.054054 | 0.459459 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee32156b9d7e4ea46ae2d591d6892f9c1707b9b | 2,003 | py | Python | gen_train_eval.py | deep-bugs-jr/deep-bugs-jr | 86e75ee42411c3bfe8e37376a75f774b55b24255 | [
"MIT"
] | 2 | 2021-07-19T22:10:57.000Z | 2021-07-28T16:58:34.000Z | gen_train_eval.py | deep-bugs-jr/deep-bugs-jr | 86e75ee42411c3bfe8e37376a75f774b55b24255 | [
"MIT"
] | 12 | 2021-05-11T11:19:24.000Z | 2021-05-13T20:48:10.000Z | gen_train_eval.py | deep-bugs-jr/deep-bugs-jr | 86e75ee42411c3bfe8e37376a75f774b55b24255 | [
"MIT"
] | 2 | 2021-07-19T22:15:25.000Z | 2022-01-18T19:35:56.000Z | # part 3
"""
Using the function calls from Issue #10 and Word2Vec token-to-vector system from Issue #5, generate a full training/eval dataset for the JavaScript code corpus.
Something like:
positiveExample = Word2Vec(Token(fnName)) + Word2Vec(Token(arg1)) + Word2Vec(Token(arg2))
negativeExample = Word2Vec(Token(fnNam... | 31.793651 | 160 | 0.644034 | 260 | 2,003 | 4.788462 | 0.442308 | 0.073092 | 0.06747 | 0.043373 | 0.155823 | 0.104418 | 0.104418 | 0.104418 | 0.064257 | 0 | 0 | 0.028302 | 0.259111 | 2,003 | 62 | 161 | 32.306452 | 0.810647 | 0.438842 | 0 | 0.148148 | 1 | 0 | 0.049908 | 0.022181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee86b62be0cd7bc501ea4d27800bba3f39247cf | 13,753 | py | Python | .mywaflib/waflib/Tools/fc_config.py | nkuhlen/log-transform-kernel-density | 377e9196b95cfdc2d53db50796a030eb5d0f019a | [
"BSD-3-Clause"
] | null | null | null | .mywaflib/waflib/Tools/fc_config.py | nkuhlen/log-transform-kernel-density | 377e9196b95cfdc2d53db50796a030eb5d0f019a | [
"BSD-3-Clause"
] | null | null | null | .mywaflib/waflib/Tools/fc_config.py | nkuhlen/log-transform-kernel-density | 377e9196b95cfdc2d53db50796a030eb5d0f019a | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# encoding: utf-8
# DC 2008
# Thomas Nagy 2010 (ita)
"""
Fortran configuration helpers
"""
import re, os, sys, shlex
from waflib.Configure import conf
from waflib.TaskGen import feature, before_method
FC_FRAGMENT = ' program main\n end program main\n'
FC_FRAGMENT2 = ' ... | 28.832285 | 135 | 0.653894 | 2,033 | 13,753 | 4.273979 | 0.235612 | 0.012084 | 0.009322 | 0.010933 | 0.182645 | 0.101623 | 0.062263 | 0.031879 | 0.031879 | 0.01991 | 0 | 0.005192 | 0.173708 | 13,753 | 476 | 136 | 28.892857 | 0.759416 | 0.270559 | 0 | 0.28481 | 0 | 0 | 0.279898 | 0.037659 | 0 | 0 | 0 | 0.012605 | 0.003165 | 1 | 0.072785 | false | 0.018987 | 0.015823 | 0 | 0.142405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee997080fb8342486228d917cf912809d0388d6 | 6,997 | py | Python | logsight/incidents/incidents.py | aiops/logsight-sdk-py | 35fd9f99eb03472dee7ae6a1639502b7ea0c485e | [
"MIT"
] | 1 | 2021-10-02T09:29:10.000Z | 2021-10-02T09:29:10.000Z | logsight/incidents/incidents.py | aiops/logsight-sdk-py | 35fd9f99eb03472dee7ae6a1639502b7ea0c485e | [
"MIT"
] | null | null | null | logsight/incidents/incidents.py | aiops/logsight-sdk-py | 35fd9f99eb03472dee7ae6a1639502b7ea0c485e | [
"MIT"
] | null | null | null | import logsight.config
from logsight.endpoints import (PATH_POST_INCIDENTS,
PATH_GET_INCIDENT_ID,
PATH_DELETE_INCIDENT,
PATH_POST_INCIDENT_STATUS)
from logsight.api_client import APIClient
class LogsightIncidents(APIClient... | 33.639423 | 85 | 0.372731 | 427 | 6,997 | 5.95082 | 0.222482 | 0.070838 | 0.049193 | 0.078709 | 0.687918 | 0.646989 | 0.603699 | 0.577725 | 0.577725 | 0.577725 | 0 | 0.013114 | 0.531371 | 6,997 | 207 | 86 | 33.801932 | 0.761818 | 0.528798 | 0 | 0.381818 | 0 | 0 | 0.133127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.054545 | 0.018182 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eee319f7073d2c4f109290379ffd4870fd5599e | 314 | py | Python | Strings/1024 - Criptografia.py | PedroTejon/Beecrowd-Online-Judge-URI- | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | 2 | 2021-12-14T01:40:54.000Z | 2021-12-24T22:33:22.000Z | Strings/1024 - Criptografia.py | PedroTejon/Beecrowd-Online-Judge-URI | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | null | null | null | Strings/1024 - Criptografia.py | PedroTejon/Beecrowd-Online-Judge-URI | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | null | null | null | for x in range(int(input())):
a = input()
b = c = ''
for y in a:
b += chr(int(ord(y)) + 3) if y.isalpha() else y
for y in range(len(b) - 1, -1, -1):
c += b[y]
r = c[:int(len(c) / 2)]
for y in range(int(len(c) / 2), len(c)):
r += chr(int(ord(c[y])) - 1)
print(r)
| 26.166667 | 55 | 0.426752 | 62 | 314 | 2.16129 | 0.33871 | 0.156716 | 0.134328 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033654 | 0.33758 | 314 | 11 | 56 | 28.545455 | 0.610577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef55e1af288fc42d69478e9a6b507a6619d5aec | 2,372 | py | Python | arbitrage/config.py | sunxuetao/crypto-arbitrage-finder | 7df1420490db69ac448a335b0dd610b145ee4a45 | [
"Unlicense"
] | null | null | null | arbitrage/config.py | sunxuetao/crypto-arbitrage-finder | 7df1420490db69ac448a335b0dd610b145ee4a45 | [
"Unlicense"
] | null | null | null | arbitrage/config.py | sunxuetao/crypto-arbitrage-finder | 7df1420490db69ac448a335b0dd610b145ee4a45 | [
"Unlicense"
] | null | null | null | markets = [
"NEO/USDT",
"XTZ/USDT",
"LTC/USDT",
"EOS/USDT",
"ETC/USDT",
"DASH/USDT",
"ZIL/USDT"
]
exchanges=['bittrex', 'bitflyer', 'liquid', 'gateio', 'zb', 'bitfinex']
# observers if any
# ["Logger", "DetailedLogger", "TraderBot", "TraderBotSim", "HistoryDumper", "Emailer", "SpecializedTra... | 18.10687 | 111 | 0.723862 | 351 | 2,372 | 4.57265 | 0.413105 | 0.02243 | 0.013707 | 0.013707 | 0.012461 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056841 | 0.161889 | 2,372 | 130 | 112 | 18.246154 | 0.750503 | 0.151771 | 0 | 0 | 0 | 0 | 0.124054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.023529 | 0 | 0.023529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef607219e23956c1c1e256d81c8c03579ae7bd3 | 531 | py | Python | LeetCode/006. ZigZag Conversion.py | QinganZhao/LXXtCode | 9debb10f9d33dcdb3def9d141a638b8172d25ff3 | [
"MIT"
] | 3 | 2019-01-08T02:53:44.000Z | 2021-07-26T07:03:27.000Z | LeetCode/006. ZigZag Conversion.py | QinganZhao/LXXtCode | 9debb10f9d33dcdb3def9d141a638b8172d25ff3 | [
"MIT"
] | null | null | null | LeetCode/006. ZigZag Conversion.py | QinganZhao/LXXtCode | 9debb10f9d33dcdb3def9d141a638b8172d25ff3 | [
"MIT"
] | null | null | null | class Solution:
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
if numRows == 1:
return s
res = ''
for i in range(numRows):
for j in range(i, len(s), 2*(numRows-1)):
res += s[j]... | 25.285714 | 74 | 0.359699 | 63 | 531 | 3.031746 | 0.380952 | 0.125654 | 0.052356 | 0.104712 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.514124 | 531 | 20 | 75 | 26.55 | 0.705426 | 0.080979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef72e872d9998cae31abd87e4785d62bf876d1a | 770 | py | Python | setup.py | gtors/urler | 18fd686ab1cd9bca5c35a8fb3a45c5268f2be8ab | [
"MIT"
] | null | null | null | setup.py | gtors/urler | 18fd686ab1cd9bca5c35a8fb3a45c5268f2be8ab | [
"MIT"
] | null | null | null | setup.py | gtors/urler | 18fd686ab1cd9bca5c35a8fb3a45c5268f2be8ab | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
from urler import __version__
setup(
name='urler',
version=__version__,
description='A class for URL-building/parsing/manipulation',
long_description='',
url='https://github.com/gtors/urler',
license='MIT',
platforms=['any'],
packages=... | 25.666667 | 64 | 0.620779 | 79 | 770 | 5.898734 | 0.708861 | 0.060086 | 0.107296 | 0.111588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008503 | 0.236364 | 770 | 29 | 65 | 26.551724 | 0.784014 | 0.025974 | 0 | 0.076923 | 0 | 0 | 0.449933 | 0.077437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef81442f6ae5f7013064dc77d34510752e02c4f | 6,882 | py | Python | tools/test_shadownet.py | MittalNeha/CRNN_Tensorflow | 2121ac2fc4da62dae7797d08fea0c07339fe49e1 | [
"MIT"
] | null | null | null | tools/test_shadownet.py | MittalNeha/CRNN_Tensorflow | 2121ac2fc4da62dae7797d08fea0c07339fe49e1 | [
"MIT"
] | null | null | null | tools/test_shadownet.py | MittalNeha/CRNN_Tensorflow | 2121ac2fc4da62dae7797d08fea0c07339fe49e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 17-9-29 下午3:56
# @Author : MaybeShewill-CV
# @Site : https://github.com/MaybeShewill-CV/CRNN_Tensorflow
# @File : test_shadownet.py
# @IDE: PyCharm Community Edition
"""
Use shadow net to recognize the scene text of a single image
"""
import sys, os
sys.... | 27.75 | 98 | 0.646178 | 930 | 6,882 | 4.517204 | 0.253763 | 0.041895 | 0.031421 | 0.036658 | 0.709831 | 0.699595 | 0.695073 | 0.661747 | 0.661747 | 0.636991 | 0 | 0.015131 | 0.241354 | 6,882 | 247 | 99 | 27.862348 | 0.789504 | 0.106364 | 0 | 0.550336 | 0 | 0 | 0.085709 | 0.004696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026846 | false | 0 | 0.073826 | 0 | 0.134228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef847898366c70db657d455f770c50b1442fc2f | 2,147 | py | Python | Hackerrank/30DaysOfCode/Day11-2DArrays.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | Hackerrank/30DaysOfCode/Day11-2DArrays.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | Hackerrank/30DaysOfCode/Day11-2DArrays.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | """
Day 11: 2D Arrays
https://www.hackerrank.com/challenges/30-2d-arrays/problem?h_r=email&unlock_token=59e35b19c681be9c7bc460238fc1b1a1e7a4c728&utm_campaign=30_days_of_code_continuous&utm_medium=email&utm_source=daily_reminder
Objective
Today, we are building on our knowledge of arrays by adding another dimension. Che... | 21.686869 | 205 | 0.639963 | 454 | 2,147 | 2.984582 | 0.306167 | 0.118081 | 0.135055 | 0.126937 | 0.168266 | 0.127675 | 0.122509 | 0.111439 | 0.109225 | 0.101107 | 0 | 0.16193 | 0.295296 | 2,147 | 98 | 206 | 21.908163 | 0.733642 | 0.788542 | 0 | 0 | 0 | 0 | 0.017978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f015776d8f5659d936d78ebc87cdafaac24c8a2 | 1,606 | py | Python | attack/fastattack.py | ByungKwanLee/Super-Fast-Adversarial-Training | 4855d937c04b5086209ea9aab474207d7bba696b | [
"MIT"
] | 20 | 2022-02-15T09:44:55.000Z | 2022-03-13T07:31:33.000Z | attack/fastattack.py | ByungKwanLee/Super-Fast-Adversarial-Training | 4855d937c04b5086209ea9aab474207d7bba696b | [
"MIT"
] | null | null | null | attack/fastattack.py | ByungKwanLee/Super-Fast-Adversarial-Training | 4855d937c04b5086209ea9aab474207d7bba696b | [
"MIT"
] | null | null | null | from attack.libfastattack.FastFGSM import FastFGSM
from attack.libfastattack.FastFGSMTrain import FastFGSMTrain
from attack.libfastattack.FastMIM import FastMIM
from attack.libfastattack.FastBIM import FastBIM
from attack.libfastattack.FastPGD import FastPGD
from attack.libfastattack.FastCWLinf import FastCWLinf
... | 34.913043 | 85 | 0.671233 | 206 | 1,606 | 5.208738 | 0.276699 | 0.074557 | 0.102516 | 0.130475 | 0.215284 | 0.17987 | 0.135135 | 0.072693 | 0.072693 | 0.072693 | 0 | 0.02075 | 0.219801 | 1,606 | 45 | 86 | 35.688889 | 0.835595 | 0.027397 | 0 | 0 | 0 | 0 | 0.031064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.290323 | 0 | 0.645161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f03252e803525d13831d9f2b621fbf79f758927 | 348 | py | Python | lib/googlecloudsdk/compute/subcommands/firewalls/__init__.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/firewalls/__init__.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/firewalls/__init__.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | 1 | 2020-07-24T20:04:47.000Z | 2020-07-24T20:04:47.000Z | # Copyright 2014 Google Inc. All Rights Reserved.
"""Commands for reading and manipulating networks."""
from googlecloudsdk.calliope import base
class Firewalls(base.Group):
"""List, create, and delete Google Compute Engine firewalls."""
Firewalls.detailed_help = {
'brief': 'List, create, and delete Google C... | 24.857143 | 72 | 0.747126 | 42 | 348 | 6.166667 | 0.690476 | 0.07722 | 0.100386 | 0.146718 | 0.362934 | 0.362934 | 0.362934 | 0.362934 | 0 | 0 | 0 | 0.013514 | 0.149425 | 348 | 13 | 73 | 26.769231 | 0.861486 | 0.442529 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f05fd21c2e8866cd169b472501bebe47424f1a6 | 403 | py | Python | tests/test.py | turing-complet/fs-azureblob | b27549303a23fc016f67abff91a5cec2ab34e726 | [
"MIT"
] | 2 | 2021-12-21T10:44:29.000Z | 2022-01-04T17:25:12.000Z | tests/test.py | turing-complet/fs-azureblob | b27549303a23fc016f67abff91a5cec2ab34e726 | [
"MIT"
] | 11 | 2021-09-16T23:39:42.000Z | 2022-02-11T02:42:45.000Z | tests/test.py | turing-complet/fs-azureblob | b27549303a23fc016f67abff91a5cec2ab34e726 | [
"MIT"
] | 1 | 2021-11-07T22:15:57.000Z | 2021-11-07T22:15:57.000Z | import os
import unittest
import pytest
from fs.test import FSTestCases
from fs.azblob import BlobFS
@pytest.mark.creds
class TestBlobFS(FSTestCases, unittest.TestCase):
def make_fs(self):
account_name = "besciences"
container = "test3"
key = os.getenv("BLOB_ACCOUNT_KEY")
bfs = B... | 21.210526 | 50 | 0.679901 | 49 | 403 | 5.489796 | 0.591837 | 0.04461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.230769 | 403 | 18 | 51 | 22.388889 | 0.864516 | 0 | 0 | 0 | 0 | 0 | 0.079404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f0a2267fe1b34c031687f582a2654977802b591 | 2,413 | py | Python | static/extension/dynamic_scope/memberof_attribute.py | qbert2k/jans-setup | 6eef6d945b9b2c56ecc84aa469c59a9fcc091cbd | [
"MIT"
] | 4 | 2020-10-23T19:51:51.000Z | 2021-09-11T10:21:33.000Z | static/extension/dynamic_scope/memberof_attribute.py | qbert2k/jans-setup | 6eef6d945b9b2c56ecc84aa469c59a9fcc091cbd | [
"MIT"
] | 120 | 2020-11-26T18:17:18.000Z | 2022-01-12T12:39:38.000Z | static/extension/dynamic_scope/memberof_attribute.py | qbert2k/jans-setup | 6eef6d945b9b2c56ecc84aa469c59a9fcc091cbd | [
"MIT"
] | 15 | 2020-10-23T10:43:23.000Z | 2021-11-04T12:38:05.000Z | # oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
# Copyright (c) 2016, Janssen
#
# Author: Sahil Arora
#
from io.jans.model.custom.script.type.scope import DynamicScopeType
from io.jans.as.server.service import UserService
from io.jans.util import String... | 37.123077 | 106 | 0.682967 | 224 | 2,413 | 7.303571 | 0.5 | 0.018337 | 0.051956 | 0.07335 | 0.05379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00491 | 0.240365 | 2,413 | 64 | 107 | 37.703125 | 0.887616 | 0.15085 | 0 | 0.071429 | 0 | 0 | 0.119939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f1525d87d9c3aa29717f059ba246cf41646b787 | 1,133 | py | Python | havel_backend/apps/biographies/migrations/0001_initial.py | havelio/havel_backend | e9e2540219129e56bf0b6132c30e6effa2861840 | [
"MIT"
] | null | null | null | havel_backend/apps/biographies/migrations/0001_initial.py | havelio/havel_backend | e9e2540219129e56bf0b6132c30e6effa2861840 | [
"MIT"
] | null | null | null | havel_backend/apps/biographies/migrations/0001_initial.py | havelio/havel_backend | e9e2540219129e56bf0b6132c30e6effa2861840 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-08-08 06:10
from django.db import migrations, models
import django.utils.timezone
import markdownx.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Biography',
... | 37.766667 | 137 | 0.626655 | 115 | 1,133 | 6.086957 | 0.608696 | 0.051429 | 0.054286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031432 | 0.241836 | 1,133 | 29 | 138 | 39.068966 | 0.783469 | 0.039718 | 0 | 0 | 1 | 0 | 0.142726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f1a00e4cb31e12af244651d9ccc98c182915aee | 813 | py | Python | categories/migrations/0004_categoryicon.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | 3 | 2020-05-05T12:12:09.000Z | 2020-05-08T08:48:16.000Z | categories/migrations/0004_categoryicon.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | 160 | 2020-05-19T13:03:43.000Z | 2022-03-12T00:35:28.000Z | categories/migrations/0004_categoryicon.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-08-06 07:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('categories', '0003_auto_20200520_1539'),
]
operations = [
migrations.CreateModel(
name='CategoryIcon',
fields=[
... | 30.111111 | 88 | 0.563346 | 80 | 813 | 5.55 | 0.6375 | 0.036036 | 0.094595 | 0.112613 | 0.297297 | 0.171171 | 0.171171 | 0 | 0 | 0 | 0 | 0.067376 | 0.306273 | 813 | 26 | 89 | 31.269231 | 0.719858 | 0.056581 | 0 | 0 | 1 | 0 | 0.129412 | 0.030065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f1a1af41b6bd343273ed27d2f0071667bf19761 | 503 | py | Python | feder/letters/migrations/0007_letter_is_spam.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 16 | 2015-08-11T17:20:26.000Z | 2022-02-11T20:15:41.000Z | feder/letters/migrations/0007_letter_is_spam.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 534 | 2015-08-04T00:10:54.000Z | 2022-03-17T10:44:47.000Z | feder/letters/migrations/0007_letter_is_spam.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 10 | 2017-08-30T13:34:32.000Z | 2022-02-18T13:00:35.000Z | # Generated by Django 1.11.2 on 2017-08-10 21:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("letters", "0006_auto_20170808_0252")]
operations = [
migrations.AddField(
model_name="letter",
name="is_spam",
field... | 23.952381 | 71 | 0.536779 | 53 | 503 | 4.981132 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106825 | 0.33002 | 503 | 20 | 72 | 25.15 | 0.676558 | 0.091451 | 0 | 0 | 1 | 0 | 0.136264 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f1a230871969eb3569f459937d6df395376a0a6 | 1,696 | py | Python | jupiter/command/smart_list_tag_create.py | horia141/jupiter | 2c721d1d44e1cd2607ad9936e54a20ea254741dc | [
"MIT"
] | 15 | 2019-05-05T14:34:58.000Z | 2022-02-25T09:57:28.000Z | jupiter/command/smart_list_tag_create.py | horia141/jupiter | 2c721d1d44e1cd2607ad9936e54a20ea254741dc | [
"MIT"
] | 3 | 2020-02-22T16:09:39.000Z | 2021-12-18T21:33:06.000Z | jupiter/command/smart_list_tag_create.py | horia141/jupiter | 2c721d1d44e1cd2607ad9936e54a20ea254741dc | [
"MIT"
] | null | null | null | """UseCase for creating a smart list tag."""
import logging
from argparse import Namespace, ArgumentParser
from typing import Final
import jupiter.command.command as command
from jupiter.use_cases.smart_lists.tag.create import SmartListTagCreateUseCase
from jupiter.domain.smart_lists.smart_list_key import SmartListKey... | 38.545455 | 111 | 0.709906 | 212 | 1,696 | 5.490566 | 0.287736 | 0.108247 | 0.061856 | 0.033505 | 0.147766 | 0.11512 | 0.11512 | 0 | 0 | 0 | 0 | 0 | 0.189858 | 1,696 | 43 | 112 | 39.44186 | 0.847162 | 0.142099 | 0 | 0.076923 | 0 | 0 | 0.105004 | 0.014799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | 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 | 1 | 0 | 0 | 1 |
6f1c5346ff4966a5ddc76c385efb6136c4fc452f | 300 | py | Python | src/2_1.py | ytyaru/Python.DataClass.20210701133458 | af91085a3c8ac1cc08ada1b348b8de9116775639 | [
"CC0-1.0"
] | null | null | null | src/2_1.py | ytyaru/Python.DataClass.20210701133458 | af91085a3c8ac1cc08ada1b348b8de9116775639 | [
"CC0-1.0"
] | null | null | null | src/2_1.py | ytyaru/Python.DataClass.20210701133458 | af91085a3c8ac1cc08ada1b348b8de9116775639 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# coding: utf8
class MyData:
def __init__(self):
self.__private_prop = 'private!!'
d = MyData()
print(d._MyData__private_prop)
print(d.__private_prop) # AttributeError: 'MyData' object has no attribute '__private_prop'
d.__x = 1 # OK。メンバを追加する
print(d.__x) # OK
| 20 | 91 | 0.703333 | 43 | 300 | 4.418605 | 0.55814 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.163333 | 300 | 14 | 92 | 21.428571 | 0.74502 | 0.383333 | 0 | 0 | 0 | 0 | 0.050279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.375 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f1ccfa2f05bd6a24628700f6e93dd487b186a61 | 2,679 | py | Python | tensorflow/examples/saved_model/integration_tests/integration_scripts.py | yage99/tensorflow | c7fa71b32a3635eb25596ae80d007b41007769c4 | [
"Apache-2.0"
] | 78 | 2020-08-04T12:36:25.000Z | 2022-03-25T04:23:40.000Z | tensorflow/examples/saved_model/integration_tests/integration_scripts.py | yage99/tensorflow | c7fa71b32a3635eb25596ae80d007b41007769c4 | [
"Apache-2.0"
] | 10 | 2021-08-03T08:42:38.000Z | 2022-01-03T03:29:12.000Z | tensorflow/examples/saved_model/integration_tests/integration_scripts.py | yage99/tensorflow | c7fa71b32a3635eb25596ae80d007b41007769c4 | [
"Apache-2.0"
] | 28 | 2020-02-10T07:03:06.000Z | 2022-01-12T11:19:20.000Z | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 38.826087 | 108 | 0.734602 | 368 | 2,679 | 5.228261 | 0.505435 | 0.031185 | 0.024948 | 0.016632 | 0.034304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00488 | 0.158641 | 2,679 | 68 | 109 | 39.397059 | 0.848713 | 0.534901 | 0 | 0 | 0 | 0 | 0.084089 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.066667 | false | 0 | 0.366667 | 0 | 0.466667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f22e3c3ffb3f0942b80b0a752429f55cb5cf724 | 2,399 | py | Python | emukit/quadrature/measures/integration_measure.py | amzn/emukit | c45407440c02cd8c053efa0f1701e864cb030e25 | [
"Apache-2.0"
] | 272 | 2018-09-18T11:56:37.000Z | 2020-10-10T22:21:25.000Z | emukit/quadrature/measures/integration_measure.py | amzn/emukit | c45407440c02cd8c053efa0f1701e864cb030e25 | [
"Apache-2.0"
] | 278 | 2018-09-19T15:38:50.000Z | 2020-10-14T13:45:24.000Z | emukit/quadrature/measures/integration_measure.py | amzn/emukit | c45407440c02cd8c053efa0f1701e864cb030e25 | [
"Apache-2.0"
] | 88 | 2018-09-18T11:56:48.000Z | 2020-09-23T13:33:55.000Z | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from typing import Optional
import numpy as np
from ...core.optimization.context_manager import ContextManager
from ..typing import BoundsType
from .domain import BoxDomain
class IntegrationMeasure:
... | 32.863014 | 113 | 0.662776 | 296 | 2,399 | 5.290541 | 0.385135 | 0.091954 | 0.068966 | 0.033206 | 0.234994 | 0.177522 | 0.177522 | 0.134738 | 0.091954 | 0 | 0 | 0.003343 | 0.251772 | 2,399 | 72 | 114 | 33.319444 | 0.869081 | 0.527303 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.208333 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f250edfcf63abc69d63dd8b1a6cc70426843524 | 1,457 | py | Python | tests/test_pattern_utils.py | BesenbacherLab/kmerPaPa | adcee01e7268a023b2dc984e368b8e8201a9e381 | [
"MIT"
] | null | null | null | tests/test_pattern_utils.py | BesenbacherLab/kmerPaPa | adcee01e7268a023b2dc984e368b8e8201a9e381 | [
"MIT"
] | null | null | null | tests/test_pattern_utils.py | BesenbacherLab/kmerPaPa | adcee01e7268a023b2dc984e368b8e8201a9e381 | [
"MIT"
] | null | null | null | from kmerpapa.pattern_utils import *
def test_pattern_enumeration():
for general_pattern in ["NNMNN", "SWSW"]:
npat = pattern_max(general_pattern)
gppl = get_genpat_pos_level(general_pattern)
cgppl = get_cum_genpat_pos_level(general_pattern)
gen_pat_level = pattern_level(general_pa... | 50.241379 | 110 | 0.658202 | 190 | 1,457 | 4.694737 | 0.231579 | 0.204036 | 0.089686 | 0.053812 | 0.46861 | 0.365471 | 0.365471 | 0.365471 | 0.365471 | 0.365471 | 0 | 0.01104 | 0.253946 | 1,457 | 29 | 111 | 50.241379 | 0.809568 | 0.057653 | 0 | 0.416667 | 0 | 0 | 0.072105 | 0.03496 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f2744c06a092870ec1673fd524acd1a64ab0d9b | 577 | py | Python | scripts/slave/recipe_modules/emulator/config.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/emulator/config.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/emulator/config.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T11:05:06.000Z | 2020-07-23T11:05:06.000Z | from recipe_engine.config import config_item_context, ConfigGroup
from recipe_engine.config import Single
from recipe_engine.config_types import Path
def BaseConfig(**_kwargs):
return ConfigGroup(
install_emulator_deps_path = Single(Path),
avd_script_path = Single(Path),
)
config_ctx = config_item_context... | 32.055556 | 71 | 0.717504 | 73 | 577 | 5.342466 | 0.369863 | 0.076923 | 0.123077 | 0.169231 | 0.287179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171577 | 577 | 17 | 72 | 33.941176 | 0.8159 | 0 | 0 | 0 | 0 | 0 | 0.12825 | 0.041594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f27a0a8e5a1f73c3a3c539f1abfdd2534493f5b | 20,583 | py | Python | scripts/pipelines/Circ_nonCirc_Exon_Match.py | daaaaande/circs_snake | 941ba8e5bcdb63797d9957ccea988f245a61b922 | [
"MIT"
] | null | null | null | scripts/pipelines/Circ_nonCirc_Exon_Match.py | daaaaande/circs_snake | 941ba8e5bcdb63797d9957ccea988f245a61b922 | [
"MIT"
] | null | null | null | scripts/pipelines/Circ_nonCirc_Exon_Match.py | daaaaande/circs_snake | 941ba8e5bcdb63797d9957ccea988f245a61b922 | [
"MIT"
] | null | null | null | # given circRNA coordinates file and exon annotation gtf file, print out the adjacent exon coordinates and exon_id
import os
import re
import HTSeq
from IntervalTree import IntervalTree
class CircNonCircExon(object):
def __init__(self, tmp_dir):
self.tmp_dir = tmp_dir
def print_start_end_file(self... | 45.237363 | 139 | 0.531507 | 2,277 | 20,583 | 4.628898 | 0.149319 | 0.047438 | 0.034156 | 0.029886 | 0.257116 | 0.218596 | 0.17723 | 0.157875 | 0.13444 | 0.104459 | 0 | 0.010873 | 0.369966 | 20,583 | 454 | 140 | 45.337004 | 0.801897 | 0.177719 | 0 | 0.234421 | 0 | 0 | 0.051913 | 0 | 0.005935 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023739 | 0.011869 | null | null | 0.026706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f2b93222d2932b8ca44732cbb1baac689c4a9bc | 2,879 | py | Python | system/t05_snapshot/create.py | Yelp/aptly | 59a0c0140ba0f0f12554d57d99110511eb3e6229 | [
"MIT"
] | 1,035 | 2015-01-05T00:37:30.000Z | 2018-04-17T17:17:20.000Z | system/t05_snapshot/create.py | Yelp/aptly | 59a0c0140ba0f0f12554d57d99110511eb3e6229 | [
"MIT"
] | 502 | 2015-01-05T09:45:29.000Z | 2018-04-18T01:37:33.000Z | system/t05_snapshot/create.py | Yelp/aptly | 59a0c0140ba0f0f12554d57d99110511eb3e6229 | [
"MIT"
] | 198 | 2015-01-02T03:08:20.000Z | 2018-04-16T22:16:51.000Z | from lib import BaseTest
import re
class CreateSnapshot1Test(BaseTest):
"""
create snapshot: from mirror
"""
fixtureDB = True
runCmd = "aptly snapshot create snap1 from mirror wheezy-main"
def check(self):
def remove_created_at(s):
return re.sub(r"Created At: [0-9:A-Za-z -... | 26.412844 | 123 | 0.653352 | 341 | 2,879 | 5.43695 | 0.193548 | 0.105178 | 0.122977 | 0.121359 | 0.651564 | 0.560949 | 0.52589 | 0.504854 | 0.335491 | 0.335491 | 0 | 0.016033 | 0.241751 | 2,879 | 108 | 124 | 26.657407 | 0.833257 | 0.095519 | 0 | 0.45614 | 0 | 0 | 0.384522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.035088 | 0.052632 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f3091c15ada9a377d09a57cfeb7bac9eabbd13a | 1,034 | py | Python | glossy-gorillas/core/models/trader.py | fliepeltje/summer-code-jam-2020 | de1287b643b610d9c5df49778bfbeae5dd115df1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | glossy-gorillas/core/models/trader.py | fliepeltje/summer-code-jam-2020 | de1287b643b610d9c5df49778bfbeae5dd115df1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | glossy-gorillas/core/models/trader.py | fliepeltje/summer-code-jam-2020 | de1287b643b610d9c5df49778bfbeae5dd115df1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import gettext as _
from core.models.product import Product
class QuantityType(models.TextChoices):
COUNT = "C", _("Count")
WEIGHT_G = "G", _("Weight in Grams")
WEIGHT_KG = "K", _("Weight in Kilograms")... | 32.3125 | 88 | 0.723404 | 126 | 1,034 | 5.769841 | 0.484127 | 0.075653 | 0.057772 | 0.057772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001151 | 0.159574 | 1,034 | 31 | 89 | 33.354839 | 0.835443 | 0.094778 | 0 | 0 | 0 | 0 | 0.098378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f30dc45f64a7f26994e849df5f826428082404b | 473 | py | Python | src/client.py | ElDwarf/uhura | b079333bd9acbe5b211724357075e4e17530a56f | [
"MIT"
] | null | null | null | src/client.py | ElDwarf/uhura | b079333bd9acbe5b211724357075e4e17530a56f | [
"MIT"
] | null | null | null | src/client.py | ElDwarf/uhura | b079333bd9acbe5b211724357075e4e17530a56f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from socket import error
from server.setting import *
from socket import socket
from client.tools import Recive, Envia
HOST = '173.255.196.97'
#HOST = 'localhost'
PORT = 6031
connected = []
history = []
def main():
#Crea objeto socket
s = socket()
s.connect((HOST, PORT))
prin... | 16.892857 | 38 | 0.623679 | 64 | 473 | 4.484375 | 0.578125 | 0.167247 | 0.111498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049315 | 0.22833 | 473 | 27 | 39 | 17.518519 | 0.736986 | 0.120507 | 0 | 0 | 0 | 0 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f38643ba14464e0f5154a42ca2330d09c719073 | 8,977 | py | Python | GaussianLDA.py | mansweet/Gaussian-LDA-word2vec | da8b0e7a7462e50c1f84d649e06f6b667ebea5e4 | [
"Apache-2.0"
] | 53 | 2016-06-28T05:27:38.000Z | 2021-11-06T05:52:11.000Z | GaussianLDA.py | mansweet/Gaussian-LDA-word2vec | da8b0e7a7462e50c1f84d649e06f6b667ebea5e4 | [
"Apache-2.0"
] | 2 | 2016-12-03T00:12:41.000Z | 2018-08-28T19:09:57.000Z | GaussianLDA.py | mansweet/Gaussian-LDA-word2vec | da8b0e7a7462e50c1f84d649e06f6b667ebea5e4 | [
"Apache-2.0"
] | 22 | 2016-10-07T10:09:10.000Z | 2020-12-30T06:55:20.000Z | from __future__ import division
import gensim
import numpy as np
from numpy import log, pi, linalg, exp
from scipy.special import gamma, gammaln
import random
from collections import defaultdict
class Wishart(object):
def __init__(self, word_vecs):
self.nu = None
self.kappa = None
self.p... | 38.363248 | 148 | 0.614571 | 1,232 | 8,977 | 4.282468 | 0.202922 | 0.042456 | 0.039803 | 0.047763 | 0.23768 | 0.210576 | 0.164329 | 0.089272 | 0.073351 | 0.059325 | 0 | 0.008092 | 0.284171 | 8,977 | 234 | 149 | 38.363248 | 0.812947 | 0.121867 | 0 | 0.08642 | 0 | 0.006173 | 0.089242 | 0.009944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04321 | null | null | 0.117284 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f3b6abaa5abf9af28484d3828c8d25d1390aa72 | 6,646 | py | Python | tests/test_card.py | tammymakesthings/Tmt_CircuitPython_carddeck | 7a5d35020760c9d65d4152775b18acd4e178bbe8 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | tests/test_card.py | tammymakesthings/Tmt_CircuitPython_carddeck | 7a5d35020760c9d65d4152775b18acd4e178bbe8 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | tests/test_card.py | tammymakesthings/Tmt_CircuitPython_carddeck | 7a5d35020760c9d65d4152775b18acd4e178bbe8 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: Copyright (c) 2022 Tammy Cravit
#
# SPDX-License-Identifier: MIT
"""
CircuitPython Card Deck Library
"""
import pytest # pylint:disable=unused-import
from tmt_carddeck.card import Card
from tmt_carddeck.constants import FACE_DOWN, FACE_UP, ROTATION_0, ROTATION_180
# pylint:disable=no-s... | 34.082051 | 79 | 0.596148 | 910 | 6,646 | 4.115385 | 0.162637 | 0.08972 | 0.062483 | 0.048064 | 0.44032 | 0.370895 | 0.304406 | 0.208545 | 0.208545 | 0.110013 | 0 | 0.025921 | 0.256997 | 6,646 | 194 | 80 | 34.257732 | 0.732483 | 0.034908 | 0 | 0.236842 | 0 | 0 | 0.028607 | 0 | 0 | 0 | 0 | 0 | 0.480263 | 1 | 0.171053 | false | 0.013158 | 0.019737 | 0 | 0.197368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f3c453bececda2b10d261c0f1f947e2e7f7722b | 6,491 | py | Python | Backend/SihProject/proj/api/viewsets.py | rondon1947/RA26_Ctrl-Alt-Elite_WIMDR | cc88219fee93d8d9ec176609fe0b4fbe2ab4b2ac | [
"MIT"
] | 1 | 2020-10-06T03:57:28.000Z | 2020-10-06T03:57:28.000Z | Backend/SihProject/proj/api/viewsets.py | Amitdutta7/SIH2020 | 9c7448008aa294cc7c5ab40dcac66f30dec11988 | [
"MIT"
] | null | null | null | Backend/SihProject/proj/api/viewsets.py | Amitdutta7/SIH2020 | 9c7448008aa294cc7c5ab40dcac66f30dec11988 | [
"MIT"
] | 2 | 2020-08-05T19:34:19.000Z | 2020-08-18T15:51:42.000Z | from .serializer import AppUserSerializer, NGOUserSerializer, UserSerializer
from proj.models import AppUser, NGOUser
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication, SessionAuthentication
from rest_framework.permissions import IsAuthenticated, AllowAny
from rest_framew... | 34.163158 | 104 | 0.637498 | 656 | 6,491 | 6.233232 | 0.307927 | 0.037662 | 0.025679 | 0.104427 | 0.358034 | 0.311812 | 0.294204 | 0.252384 | 0.113964 | 0.113964 | 0 | 0.003091 | 0.252349 | 6,491 | 189 | 105 | 34.343915 | 0.839481 | 0.138654 | 0 | 0.388889 | 0 | 0 | 0.037201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.031746 | 0.150794 | 0 | 0.507937 | 0.063492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f3df436944d286a45e760dd3a95cfdec147dbeb | 312 | py | Python | titanic/db/loader.py | wojtekwalczak/kaggle_titanic | f13258dcb9e964bcad61609fdcc374e3db47824e | [
"Apache-2.0"
] | null | null | null | titanic/db/loader.py | wojtekwalczak/kaggle_titanic | f13258dcb9e964bcad61609fdcc374e3db47824e | [
"Apache-2.0"
] | null | null | null | titanic/db/loader.py | wojtekwalczak/kaggle_titanic | f13258dcb9e964bcad61609fdcc374e3db47824e | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from __future__ import print_function
import numpy as np
import pandas as pd
data = pd.read_csv('../../data/train.csv', dtype={"Age": np.float64})
features = data[['Pclass', 'Name', 'Age', 'SibSp', 'Parch', 'Fare', 'Cabin',
'Embarked', 'Sex']]
target = data.Survived.values
| 20.8 | 76 | 0.63141 | 42 | 312 | 4.547619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011719 | 0.179487 | 312 | 14 | 77 | 22.285714 | 0.734375 | 0.038462 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
6f3ffe2f143bd9d3bc607a3b169a7e00b5951fbc | 6,905 | py | Python | src/gamemap/zone.py | cfmcdonald-78/Hexcrawler | 79ca4ab9327abf08de1743612c23eb89aa53a2b9 | [
"MIT"
] | null | null | null | src/gamemap/zone.py | cfmcdonald-78/Hexcrawler | 79ca4ab9327abf08de1743612c23eb89aa53a2b9 | [
"MIT"
] | null | null | null | src/gamemap/zone.py | cfmcdonald-78/Hexcrawler | 79ca4ab9327abf08de1743612c23eb89aa53a2b9 | [
"MIT"
] | 1 | 2021-12-01T01:38:12.000Z | 2021-12-01T01:38:12.000Z | '''
Created on Jun 28, 2012
@author: Chris
'''
import random, math
import site_type, site, terrain, zone_type
from util.tools import Loc
import hexgrid
used_zone_names = {}
def compute_num_sites(land_hexes, site_frequency):
scale_factor = land_hexes / 100.0
min = math.ceil(site_frequency[0] * scale_factor)
... | 41.848485 | 151 | 0.632295 | 943 | 6,905 | 4.337222 | 0.18982 | 0.027384 | 0.032274 | 0.026406 | 0.189976 | 0.134719 | 0.101711 | 0.050367 | 0.035697 | 0.035697 | 0 | 0.004827 | 0.279942 | 6,905 | 165 | 152 | 41.848485 | 0.81778 | 0.151195 | 0 | 0.019048 | 0 | 0 | 0.012422 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0 | null | null | 0 | 0.038095 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f403b469da418c192f939481978586069871817 | 778 | py | Python | music21/test/warningMultiprocessTest.py | cuthbertLab/music21 | 1be16c255460107c10d7b4bc8eb77f0d115b5eac | [
"MIT"
] | 1,449 | 2015-01-09T15:53:56.000Z | 2022-03-31T18:24:46.000Z | venv/Lib/site-packages/music21/test/warningMultiprocessTest.py | alimirzazadeh/wolfGANg | 5bf56f7d8e6c1c283edb98bdaecfd5a606b4462c | [
"MIT"
] | 1,179 | 2015-01-07T17:07:54.000Z | 2022-03-31T16:46:02.000Z | music21/test/warningMultiprocessTest.py | cuthbertLab/music21 | 1be16c255460107c10d7b4bc8eb77f0d115b5eac | [
"MIT"
] | 393 | 2015-01-03T20:38:16.000Z | 2022-03-25T16:51:22.000Z | # -*- coding: utf-8 -*-
'''
Runs MultiprocessTest with all warnings including traceback...
'''
#
# https://stackoverflow.com/questions/22373927/get-traceback-of-warnings
import traceback
import warnings
import sys
def warn_with_traceback(message, category, filename, lineno, file=None, line=None):
log = file if ha... | 31.12 | 83 | 0.74036 | 91 | 778 | 6.186813 | 0.604396 | 0.049734 | 0.060391 | 0.10302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019727 | 0.152956 | 778 | 24 | 84 | 32.416667 | 0.834598 | 0.282776 | 0 | 0 | 0 | 0 | 0.047532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f49f9135abc0d1077b3cded204fc7368bf9598d | 2,335 | py | Python | touchdown/aws/kms/grant.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 14 | 2015-01-05T18:18:04.000Z | 2022-02-07T19:35:12.000Z | touchdown/aws/kms/grant.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 106 | 2015-01-06T00:17:13.000Z | 2019-09-07T00:35:32.000Z | touchdown/aws/kms/grant.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 5 | 2015-01-30T10:18:24.000Z | 2022-02-07T19:35:13.000Z | # Copyright 2015 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 28.13253 | 78 | 0.679229 | 259 | 2,335 | 6.034749 | 0.513514 | 0.038388 | 0.03263 | 0.020473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011136 | 0.230835 | 2,335 | 82 | 79 | 28.47561 | 0.859131 | 0.235546 | 0 | 0 | 0 | 0 | 0.160926 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.106383 | 0.021277 | 0.659574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f5167d05aaf235c11aec3332d7b4429f7d6f521 | 348 | py | Python | src/testoob/commandline/xml_option.py | sshyran/testoob | 729fa6a17660d0bd8c75907a89ed6998180b5765 | [
"Apache-2.0"
] | null | null | null | src/testoob/commandline/xml_option.py | sshyran/testoob | 729fa6a17660d0bd8c75907a89ed6998180b5765 | [
"Apache-2.0"
] | null | null | null | src/testoob/commandline/xml_option.py | sshyran/testoob | 729fa6a17660d0bd8c75907a89ed6998180b5765 | [
"Apache-2.0"
] | null | null | null | import parsing
parsing.parser.add_option("--xml", metavar="FILE", help="output results in XML")
def process_options(options):
if options.xml is not None:
from testoob.reporting import XMLFileReporter
parsing.kwargs["reporters"].append( XMLFileReporter(filename=options.xml) )
parsing.option_process... | 34.8 | 83 | 0.761494 | 43 | 348 | 6.069767 | 0.651163 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12931 | 348 | 9 | 84 | 38.666667 | 0.861386 | 0 | 0 | 0 | 0 | 0 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f57e067868ec0fe8e99941534b036fd7aaaa776 | 1,301 | py | Python | example_download_all.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | 1 | 2015-05-22T21:26:51.000Z | 2015-05-22T21:26:51.000Z | example_download_all.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | 6 | 2015-01-02T22:29:38.000Z | 2015-06-17T17:26:57.000Z | example_download_all.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Download all finished torrents that do not have label dllabel (if set)
# Assumes you have the aria2c executable in your path!
import time, sys, os
import jsit, aria
# Uncomment for debug output
#from log import *
#setLogLevel(DEBUG)
if len(sys.argv) < 3:
print "Call as %s <username> <passwor... | 27.104167 | 149 | 0.637202 | 186 | 1,301 | 4.456989 | 0.569892 | 0.050663 | 0.028951 | 0.028951 | 0.031363 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.228286 | 1,301 | 47 | 150 | 27.680851 | 0.813745 | 0.232898 | 0 | 0 | 0 | 0.038462 | 0.182002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.076923 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f5ec629f38a644caf5b5c2837f4f198169b107d | 1,525 | py | Python | cloudfile/cloudfile.py | takotab/cloudfile | 7b1af196619c0c7fdb1d3631e58d96fb3b947242 | [
"MIT"
] | null | null | null | cloudfile/cloudfile.py | takotab/cloudfile | 7b1af196619c0c7fdb1d3631e58d96fb3b947242 | [
"MIT"
] | 11 | 2019-06-11T12:54:41.000Z | 2021-02-08T20:31:09.000Z | cloudfile/cloudfile.py | takotab/cloudfile | 7b1af196619c0c7fdb1d3631e58d96fb3b947242 | [
"MIT"
] | null | null | null | import os
import json
class CloudFile(object):
def __init__(self, clouldfile="cloudfile.json", unit_test_link_dct=None):
self._cloudfile = clouldfile
self.service = None
if os.path.isfile(self._cloudfile):
self.dct = json.load(open(clouldfile, "r"))
else:
se... | 28.240741 | 135 | 0.598689 | 203 | 1,525 | 4.305419 | 0.300493 | 0.080092 | 0.04119 | 0.051487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294426 | 1,525 | 53 | 136 | 28.773585 | 0.812268 | 0 | 0 | 0.073171 | 0 | 0.02439 | 0.086557 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.219512 | false | 0 | 0.097561 | 0.073171 | 0.487805 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f64e64b1ecbce6dccb8c2a06cbce2c611ff4f12 | 1,181 | py | Python | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/api/common/views/user_view.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 6 | 2018-11-26T08:42:52.000Z | 2020-06-01T08:33:48.000Z | teamcat_service/doraemon/doraemon/api/common/views/user_view.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | null | null | null | teamcat_service/doraemon/doraemon/api/common/views/user_view.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 1 | 2019-01-22T06:45:36.000Z | 2019-01-22T06:45:36.000Z | #coding=utf-8
# coding=utf-8
'''
Created on 2014-1-5
@author: ETHAN
'''
from doraemon.home.models import Agent
from rest_framework import generics
from doraemon.api.common.serializer import user_serializer
from rest_framework.permissions import AllowAny
from rest_framework.authentication import SessionAuthentication,... | 25.673913 | 84 | 0.731583 | 129 | 1,181 | 6.534884 | 0.449612 | 0.02847 | 0.060498 | 0.03796 | 0.320285 | 0.320285 | 0.320285 | 0.320285 | 0.320285 | 0.320285 | 0 | 0.009298 | 0.180356 | 1,181 | 46 | 85 | 25.673913 | 0.86157 | 0.093988 | 0 | 0.272727 | 0 | 0 | 0.002907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.045455 | 0.863636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6f7079fa3065ee7bd1b044e4dc78f027ecef62c1 | 1,384 | py | Python | template3/apps/users/migrations/0001_initial.py | moshthepitt/django-template3 | f596a2d506c0a3270c9e47b6ce53485584db2071 | [
"MIT"
] | 1 | 2016-05-24T13:04:18.000Z | 2016-05-24T13:04:18.000Z | template3/apps/users/migrations/0001_initial.py | moshthepitt/django-template3 | f596a2d506c0a3270c9e47b6ce53485584db2071 | [
"MIT"
] | null | null | null | template3/apps/users/migrations/0001_initial.py | moshthepitt/django-template3 | f596a2d506c0a3270c9e47b6ce53485584db2071 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-26 15:00
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import django_extensions.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setti... | 32.186047 | 77 | 0.531792 | 120 | 1,384 | 5.966667 | 0.483333 | 0.061453 | 0.075419 | 0.100559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017123 | 0.367052 | 1,384 | 42 | 78 | 32.952381 | 0.800228 | 0.032514 | 0 | 0 | 1 | 0 | 0.08003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f78084d42646a94b04d4f0019540948967bf469 | 555 | py | Python | survey/migrations/0009_subquestion_kind.py | watchdogpolska/ankieta-rodzic-po-ludzku-nfz | 68b1d1ccac969ca51416761d1168678effb1e6c6 | [
"MIT"
] | null | null | null | survey/migrations/0009_subquestion_kind.py | watchdogpolska/ankieta-rodzic-po-ludzku-nfz | 68b1d1ccac969ca51416761d1168678effb1e6c6 | [
"MIT"
] | null | null | null | survey/migrations/0009_subquestion_kind.py | watchdogpolska/ankieta-rodzic-po-ludzku-nfz | 68b1d1ccac969ca51416761d1168678effb1e6c6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-19 09:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('survey', '0008_auto_20161119_0712'),
]
operations = [
migrations.AddField(
... | 26.428571 | 154 | 0.610811 | 62 | 555 | 5.306452 | 0.790323 | 0.048632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077647 | 0.234234 | 555 | 20 | 155 | 27.75 | 0.696471 | 0.122523 | 0 | 0 | 1 | 0 | 0.194215 | 0.047521 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f7abfac893a627597d8cb302a85082dadbb0f61 | 3,472 | py | Python | perlin3d.py | liorfrenkel1992/semantic_perlin | a86c18a9228fb7e9d02e5a6550ad914f78fda62b | [
"MIT"
] | null | null | null | perlin3d.py | liorfrenkel1992/semantic_perlin | a86c18a9228fb7e9d02e5a6550ad914f78fda62b | [
"MIT"
] | null | null | null | perlin3d.py | liorfrenkel1992/semantic_perlin | a86c18a9228fb7e9d02e5a6550ad914f78fda62b | [
"MIT"
] | null | null | null | import numpy as np
def generate_perlin_noise_3d(shape, res, tileable=(False, False, False)):
def f(t):
return 6*t**5 - 15*t**4 + 10*t**3
delta = (res[0] / shape[0], res[1] / shape[1], res[2] / shape[2])
d = (shape[0] // res[0], shape[1] // res[1], shape[2] // res[2])
grid = np.mgrid[0:res[0]:d... | 48.901408 | 126 | 0.510369 | 545 | 3,472 | 3.212844 | 0.194495 | 0.034266 | 0.050257 | 0.054826 | 0.333524 | 0.292404 | 0.252427 | 0.171331 | 0.164477 | 0.164477 | 0 | 0.111151 | 0.207085 | 3,472 | 70 | 127 | 49.6 | 0.524882 | 0.023618 | 0 | 0 | 1 | 0 | 0.002532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.053571 | 0.017857 | 0.160714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
488a1aa2fd026519e1cbb39793cd18d2891bdb36 | 54,797 | py | Python | txdav/caldav/datastore/scheduling/processing.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 462 | 2016-08-14T17:43:24.000Z | 2022-03-17T07:38:16.000Z | txdav/caldav/datastore/scheduling/processing.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 72 | 2016-09-01T23:19:35.000Z | 2020-02-05T02:09:26.000Z | txdav/caldav/datastore/scheduling/processing.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 171 | 2016-08-16T03:50:30.000Z | 2022-03-26T11:49:55.000Z | #
# Copyright (c) 2005-2017 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 50.597415 | 231 | 0.627352 | 5,811 | 54,797 | 5.865772 | 0.135949 | 0.036995 | 0.024644 | 0.016898 | 0.397084 | 0.346477 | 0.301795 | 0.262923 | 0.247844 | 0.236959 | 0 | 0.001658 | 0.295728 | 54,797 | 1,082 | 232 | 50.644177 | 0.881582 | 0.160885 | 0 | 0.353226 | 0 | 0.032258 | 0.111837 | 0.010465 | 0 | 0 | 0 | 0.002773 | 0 | 0 | null | null | 0.003226 | 0.03871 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
488b2789409ad4783bb8a76f59b2adafe6784a84 | 464 | py | Python | process/pre_process/_list_locales.py | shiqin-liu/global-indicators | 2c3e5f21e16ad8fafdf31b175a18dc83cc803587 | [
"MIT"
] | 3 | 2019-05-23T04:12:12.000Z | 2019-09-30T18:02:59.000Z | process/pre_process/_list_locales.py | nicholas-david/global-indicators | b3bf38597a9e8469264a353e8cadd91c06de628f | [
"MIT"
] | 2 | 2020-08-24T00:42:43.000Z | 2020-08-31T01:23:04.000Z | process/pre_process/_list_locales.py | nicholas-david/global-indicators | b3bf38597a9e8469264a353e8cadd91c06de628f | [
"MIT"
] | 3 | 2019-05-28T01:57:35.000Z | 2020-08-20T06:09:43.000Z | """
List locales
~~~~~~~~~~~~~~~~~
::
Script:
Purpose: List all study region locales names
Authors: Carl Higgs
"""
import os
import sys
import time
import pandas
def main():
xls = pandas.ExcelFile('./_project_configuration.xlsx')
df_local = pandas.read_excel(xls, 'region... | 17.846154 | 69 | 0.609914 | 54 | 464 | 4.962963 | 0.703704 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.237069 | 464 | 26 | 70 | 17.846154 | 0.751412 | 0.262931 | 0 | 0 | 0 | 0 | 0.172638 | 0.094463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
488ded9aa257c28be8627c56a646c4c693299dcb | 12,797 | py | Python | paxes_cinder/exception.py | windskyer/k_cinder | 000ee539ee4842a158071d26ee99d12c7c0a87da | [
"Apache-2.0"
] | null | null | null | paxes_cinder/exception.py | windskyer/k_cinder | 000ee539ee4842a158071d26ee99d12c7c0a87da | [
"Apache-2.0"
] | null | null | null | paxes_cinder/exception.py | windskyer/k_cinder | 000ee539ee4842a158071d26ee99d12c7c0a87da | [
"Apache-2.0"
] | null | null | null | #
#
# =================================================================
# =================================================================
from cinder.exception import *
class ZoneManagerException(CinderException):
message = _("Connection control failure: %(reason)s")
class FCZoneDriverException(CinderExcepti... | 35.060274 | 79 | 0.669688 | 1,536 | 12,797 | 5.494141 | 0.259766 | 0.026188 | 0.010428 | 0.021567 | 0.294111 | 0.249319 | 0.229174 | 0.224197 | 0.181775 | 0.171347 | 0 | 0 | 0.246308 | 12,797 | 365 | 80 | 35.060274 | 0.874961 | 0.457138 | 0 | 0.248 | 0 | 0 | 0.253994 | 0.009682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104 | false | 0 | 0.008 | 0 | 0.624 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4890cb9bb36535f21c543b37f41f5d7c98340871 | 1,370 | py | Python | tests/test_fill.py | AtteqCom/zsl_openapi | 0d9fac32ae3516b2f53a302716f162a4d688bed0 | [
"BSD-2-Clause"
] | null | null | null | tests/test_fill.py | AtteqCom/zsl_openapi | 0d9fac32ae3516b2f53a302716f162a4d688bed0 | [
"BSD-2-Clause"
] | null | null | null | tests/test_fill.py | AtteqCom/zsl_openapi | 0d9fac32ae3516b2f53a302716f162a4d688bed0 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
from builtins import * # NOQA
from io import BytesIO
from io import StringIO
from unittest.case import TestCase
from yaml_test_case import YAMLTestCase
... | 30.444444 | 79 | 0.728467 | 154 | 1,370 | 6.168831 | 0.396104 | 0.103158 | 0.067368 | 0.050526 | 0.193684 | 0.193684 | 0.128421 | 0.128421 | 0 | 0 | 0 | 0.001845 | 0.208759 | 1,370 | 44 | 80 | 31.136364 | 0.874539 | 0.00292 | 0 | 0.147059 | 0 | 0 | 0.075513 | 0.052786 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.411765 | 0 | 0.5 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4899e5595b7b1a551f62468df63e7f748bb75f83 | 1,063 | py | Python | tourist_app/migrations/0005_auto_20160624_1217.py | futerzak/topr | c42bc6c1dbc75cf96fe7e4b782aece75e1c56916 | [
"MIT"
] | null | null | null | tourist_app/migrations/0005_auto_20160624_1217.py | futerzak/topr | c42bc6c1dbc75cf96fe7e4b782aece75e1c56916 | [
"MIT"
] | null | null | null | tourist_app/migrations/0005_auto_20160624_1217.py | futerzak/topr | c42bc6c1dbc75cf96fe7e4b782aece75e1c56916 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-06-24 10:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tourist_app', '0004_auto_20160615_1855'),
]
operations = [
migrations.CreateMo... | 33.21875 | 231 | 0.585136 | 102 | 1,063 | 5.931373 | 0.784314 | 0.052893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 0.280339 | 1,063 | 31 | 232 | 34.290323 | 0.738562 | 0.061148 | 0 | 0.083333 | 1 | 0 | 0.269347 | 0.023116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48a19177b37f9ba1dac0edbc406e33640272b85b | 6,011 | py | Python | tests/string_operations.py | MosesSymeonidis/aggregation_builder | a1f4b580401d400c53206e9c020e413166254274 | [
"MIT"
] | 9 | 2017-12-08T17:31:23.000Z | 2021-05-07T01:07:12.000Z | tests/string_operations.py | MosesSymeonidis/aggregation_builder | a1f4b580401d400c53206e9c020e413166254274 | [
"MIT"
] | null | null | null | tests/string_operations.py | MosesSymeonidis/aggregation_builder | a1f4b580401d400c53206e9c020e413166254274 | [
"MIT"
] | null | null | null | from aggregation_builder import AggregationQueryBuilder
from aggregation_builder.operators import *
import unittest
class StringOperatorsTests(unittest.TestCase):
def test_concat(self):
query = [
{'$project': {'itemDescription': {'$concat': ["$item", " - ", "$description"]}}}
]
... | 32.144385 | 103 | 0.50158 | 492 | 6,011 | 5.890244 | 0.150407 | 0.115942 | 0.066253 | 0.182195 | 0.714976 | 0.640787 | 0.503796 | 0.461698 | 0.442029 | 0.418565 | 0 | 0.012072 | 0.338546 | 6,011 | 186 | 104 | 32.317204 | 0.716801 | 0 | 0 | 0.490566 | 0 | 0 | 0.163866 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 1 | 0.075472 | false | 0 | 0.018868 | 0 | 0.100629 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48a32c8c123eccbb24f631bb8a664aab18955ca0 | 2,841 | py | Python | interceptor/api/viewsets.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | null | null | null | interceptor/api/viewsets.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | null | null | null | interceptor/api/viewsets.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | 1 | 2020-08-21T01:35:09.000Z | 2020-08-21T01:35:09.000Z | from django.conf import settings
from rest_framework import authentication
from rest_framework.mixins import ListModelMixin, RetrieveModelMixin
from rest_framework.pagination import PageNumberPagination
from rest_framework.permissions import IsAuthenticated
from rest_framework.viewsets import GenericViewSet, ModelViewS... | 39.458333 | 114 | 0.772967 | 271 | 2,841 | 7.933579 | 0.302583 | 0.022791 | 0.039535 | 0.026512 | 0.12 | 0.096744 | 0.04093 | 0.04093 | 0.04093 | 0.04093 | 0 | 0 | 0.158043 | 2,841 | 71 | 115 | 40.014085 | 0.898829 | 0.025695 | 0 | 0.115385 | 0 | 0 | 0.027332 | 0.008746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.173077 | 0.019231 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
48aece83553a83ddd7b44f6b1dbb49c5ada527cf | 3,954 | py | Python | tests/unit/base_test.py | hiradyazdan/nginx-amplify-agent-health-check | 7aa0fa2aba082491b1b47c2b6189a9266245f647 | [
"MIT"
] | 2 | 2018-05-23T17:34:28.000Z | 2018-07-09T21:55:53.000Z | tests/unit/base_test.py | hiradyazdan/nginx-amplify-agent-health-check | 7aa0fa2aba082491b1b47c2b6189a9266245f647 | [
"MIT"
] | null | null | null | tests/unit/base_test.py | hiradyazdan/nginx-amplify-agent-health-check | 7aa0fa2aba082491b1b47c2b6189a9266245f647 | [
"MIT"
] | null | null | null | import mock
import pytest
import numpy as np
from amplifyhealthcheck.base import Base
from unittest import TestCase
xfail = pytest.mark.xfail
class BaseTestCase(TestCase):
def setup_method(self, method):
pass
def teardown_method(self, method):
pass
# @xfail
@mock.patch('os.stat')
... | 26.536913 | 119 | 0.634294 | 565 | 3,954 | 4.040708 | 0.155752 | 0.091984 | 0.087604 | 0.108191 | 0.446343 | 0.35392 | 0.325011 | 0.287779 | 0.25668 | 0.2523 | 0 | 0.012925 | 0.256449 | 3,954 | 148 | 120 | 26.716216 | 0.763605 | 0.010369 | 0 | 0.313725 | 0 | 0 | 0.22302 | 0.152525 | 0 | 0 | 0 | 0 | 0.078431 | 1 | 0.166667 | false | 0.107843 | 0.04902 | 0 | 0.22549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
48b0aaffae379f2078e6b2ebfd639f6d3b6ece34 | 1,864 | py | Python | margen/segment01/timespans.py | DaviRaubach/la_otra_margen | 5f7f2745d11a4dc6cd824236ad2af9af150289b2 | [
"CC0-1.0"
] | null | null | null | margen/segment01/timespans.py | DaviRaubach/la_otra_margen | 5f7f2745d11a4dc6cd824236ad2af9af150289b2 | [
"CC0-1.0"
] | null | null | null | margen/segment01/timespans.py | DaviRaubach/la_otra_margen | 5f7f2745d11a4dc6cd824236ad2af9af150289b2 | [
"CC0-1.0"
] | null | null | null | import muda
import math
import abjad
# timespans = muda.TimespanList(
# abjad.Timespan(0, 10))
# gtrI_durations_01 = muda.AnnotatedDuration((2, 4), annotation="matA")
# spans_01 = [abs(int(math.sin(1 / (21 * 1.3 * _)) * 1200)) for _ in range(-21, -1)]
# spans_02 = [abs(int(math.sin(1 / (21 * 1.5 * _)) * 1200)) ... | 27.411765 | 84 | 0.639485 | 244 | 1,864 | 4.680328 | 0.331967 | 0.02627 | 0.052539 | 0.099825 | 0.229422 | 0.115587 | 0.115587 | 0 | 0 | 0 | 0 | 0.066082 | 0.204399 | 1,864 | 67 | 85 | 27.820896 | 0.703978 | 0.417382 | 0 | 0.060606 | 0 | 0 | 0.016981 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48b0aec4452bd5258b89df710475e0259e858f53 | 595 | py | Python | bims/migrations/0084_taxongroup_category.py | Christiaanvdm/django-bims | f92a63156c711b2d53c5f8ea06867cd64cee9eb9 | [
"MIT"
] | null | null | null | bims/migrations/0084_taxongroup_category.py | Christiaanvdm/django-bims | f92a63156c711b2d53c5f8ea06867cd64cee9eb9 | [
"MIT"
] | null | null | null | bims/migrations/0084_taxongroup_category.py | Christiaanvdm/django-bims | f92a63156c711b2d53c5f8ea06867cd64cee9eb9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-12-05 05:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bims', '0083_auto_20181204_1111'),
]
operations = [
migrations.AddField(
... | 28.333333 | 192 | 0.65042 | 71 | 595 | 5.267606 | 0.704225 | 0.085562 | 0.069519 | 0.074866 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077419 | 0.218487 | 595 | 20 | 193 | 29.75 | 0.726882 | 0.115966 | 0 | 0 | 1 | 0 | 0.235182 | 0.043977 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48b386de681403e5004522c9a05c6806a345cad6 | 983 | py | Python | hackerrank/dp/candies.py | nicklambourne/hackerrank-solutions | 9536aa16a67325566e6d3ebea5d5f2c5bf12a05d | [
"MIT"
] | null | null | null | hackerrank/dp/candies.py | nicklambourne/hackerrank-solutions | 9536aa16a67325566e6d3ebea5d5f2c5bf12a05d | [
"MIT"
] | null | null | null | hackerrank/dp/candies.py | nicklambourne/hackerrank-solutions | 9536aa16a67325566e6d3ebea5d5f2c5bf12a05d | [
"MIT"
] | null | null | null | from typing import List, Tuple
def gather() -> Tuple[int, List[int]]:
n = int(input())
ranks = []
for _ in range(n):
ranks.append(int(input()))
return n, ranks
def candies(ranks: List[int], n: int) -> int:
candy_counts = [1] * n
# 1st pass: go left to right
for index in range(1, ... | 30.71875 | 81 | 0.589013 | 151 | 983 | 3.715232 | 0.324503 | 0.176471 | 0.199643 | 0.149733 | 0.329768 | 0.329768 | 0.329768 | 0.249554 | 0.124777 | 0.124777 | 0 | 0.028694 | 0.290946 | 983 | 31 | 82 | 31.709677 | 0.776184 | 0.217701 | 0 | 0 | 0 | 0 | 0.010485 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48b3c8b47b59dc5f088073fe1e252621a8adba88 | 467 | py | Python | wastd/users/migrations/0005_user_affiliation.py | ropable/wastd | 295c60760548d177859de9c0bebdae93342767d0 | [
"MIT"
] | 3 | 2020-07-23T06:37:43.000Z | 2022-01-27T09:40:40.000Z | wastd/users/migrations/0005_user_affiliation.py | ropable/wastd | 295c60760548d177859de9c0bebdae93342767d0 | [
"MIT"
] | 337 | 2018-07-12T05:56:29.000Z | 2022-03-30T02:40:41.000Z | wastd/users/migrations/0005_user_affiliation.py | florianm/wastd | e26bdd66fd082ae1ffbe7b72bc9e3b216fc24523 | [
"MIT"
] | 2 | 2020-02-24T00:05:46.000Z | 2020-07-15T07:02:29.000Z | # Generated by Django 2.1.7 on 2019-05-14 07:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20190301_0944'),
]
operations = [
migrations.AddField(
model_name='user',
name='affiliation',
... | 24.578947 | 132 | 0.633833 | 52 | 467 | 5.576923 | 0.788462 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088825 | 0.252677 | 467 | 18 | 133 | 25.944444 | 0.74212 | 0.09636 | 0 | 0 | 1 | 0 | 0.230952 | 0.054762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48b4b1a2c5f9a5fb3911c61b628af709239a2628 | 15,699 | py | Python | Utils/HandlerUtil.py | Nepomuceno/azure-linux-extensions | d12a6b4f8148301e2cc05ebc0953a324f859b8f7 | [
"Apache-2.0"
] | 2 | 2021-11-02T00:16:29.000Z | 2022-02-17T12:08:42.000Z | Utils/HandlerUtil.py | Nepomuceno/azure-linux-extensions | d12a6b4f8148301e2cc05ebc0953a324f859b8f7 | [
"Apache-2.0"
] | 3 | 2019-07-29T20:25:09.000Z | 2019-08-13T00:00:45.000Z | Utils/HandlerUtil.py | ChrisCoe/azure-linux-extensions | 1ca6fce15eca3ddefc33651b094c9a4b4e52fa31 | [
"Apache-2.0"
] | 1 | 2017-07-17T18:52:10.000Z | 2017-07-17T18:52:10.000Z | #
# Handler library for Linux IaaS
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 40.565891 | 636 | 0.643608 | 1,764 | 15,699 | 5.46542 | 0.181973 | 0.053625 | 0.018878 | 0.021575 | 0.220102 | 0.127062 | 0.0947 | 0.071984 | 0.056633 | 0.047298 | 0 | 0.014257 | 0.249379 | 15,699 | 387 | 637 | 40.565891 | 0.803802 | 0.044971 | 0 | 0.107143 | 0 | 0 | 0.138974 | 0.020142 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003571 | 0.042857 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48bbc659f3bb9753c818e7128786aab9e501b734 | 390 | py | Python | kagi/north/east/three.py | jedhsu/kagi | 1301f7fc437bb445118b25ca92324dbd58d6ad2d | [
"MIT"
] | null | null | null | kagi/north/east/three.py | jedhsu/kagi | 1301f7fc437bb445118b25ca92324dbd58d6ad2d | [
"MIT"
] | null | null | null | kagi/north/east/three.py | jedhsu/kagi | 1301f7fc437bb445118b25ca92324dbd58d6ad2d | [
"MIT"
] | null | null | null | """
*North-East 3* ⠨
The north-east three gi.
"""
from dataclasses import dataclass
from ...._gi import Gi
from ..._gi import StrismicGi
from ...east import EasternGi
from ..._number import ThreeGi
from .._gi import NorthernGi
__all__ = ["NorthEast3"]
@dataclass
class NorthEast3(
Gi,
StrismicGi,... | 13.448276 | 33 | 0.658974 | 45 | 390 | 5.555556 | 0.466667 | 0.072 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023179 | 0.225641 | 390 | 28 | 34 | 13.928571 | 0.801325 | 0.112821 | 0 | 0 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
48bd65d98e737a557e5b566f4be5b32afdb686a8 | 904 | py | Python | lib/linkedin/utils.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 206 | 2015-10-15T07:05:08.000Z | 2021-02-19T11:48:36.000Z | lib/linkedin/utils.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 8 | 2017-10-16T10:18:31.000Z | 2022-03-09T14:24:27.000Z | lib/linkedin/utils.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 61 | 2015-10-15T08:12:44.000Z | 2022-03-10T12:25:06.000Z | # Python Standard Library Imports
import json
# Third Party (PyPI) Imports
import requests
from requests_oauthlib import OAuth1
# Django Imports
from django.conf import settings
# HTK Imports
from htk.lib.linkedin.constants import *
def get_profile_data(resource_owner_key, resource_owner_secret):
oauth = OAuth... | 28.25 | 93 | 0.764381 | 113 | 904 | 5.79646 | 0.451327 | 0.119084 | 0.073282 | 0.109924 | 0.131298 | 0.10687 | 0 | 0 | 0 | 0 | 0 | 0.002692 | 0.178097 | 904 | 31 | 94 | 29.16129 | 0.878869 | 0.193584 | 0 | 0 | 0 | 0 | 0.001385 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c21d850b6762b46a97de3607d05618fbb5802b | 527 | py | Python | exer95+funcoes.py | vnnstar/Python-Mundo3-CursoEmVideo | cfb51a39f0240857469473a1f21970d3fb4b6076 | [
"MIT"
] | null | null | null | exer95+funcoes.py | vnnstar/Python-Mundo3-CursoEmVideo | cfb51a39f0240857469473a1f21970d3fb4b6076 | [
"MIT"
] | null | null | null | exer95+funcoes.py | vnnstar/Python-Mundo3-CursoEmVideo | cfb51a39f0240857469473a1f21970d3fb4b6076 | [
"MIT"
] | null | null | null | def calc_area(base, altura):
re = base * altura
return f'{re}m²'
def escreva(msg):
print('~' * len(msg))
print(msg)
print('~' * len(msg))
def contagem(inicial, final, pulo):
for x in range(1, 10+1):
print(x, end=' ')
print()
for x in range(10, 0, -2):
print(x, end=' '... | 17.566667 | 41 | 0.527514 | 79 | 527 | 3.392405 | 0.455696 | 0.089552 | 0.067164 | 0.123134 | 0.186567 | 0.186567 | 0.186567 | 0.186567 | 0 | 0 | 0 | 0.040214 | 0.29222 | 527 | 29 | 42 | 18.172414 | 0.678284 | 0 | 0 | 0.333333 | 0 | 0 | 0.066414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.190476 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
48ca26e5cdef3b6c5b1d0f68991802d458177d2f | 482 | py | Python | setup.py | equinor/curvy | 791a2202f02fd0c86797d7052deeca50333e66f6 | [
"MIT"
] | 3 | 2021-03-17T01:00:50.000Z | 2021-06-20T03:17:50.000Z | setup.py | Statoil/curvy | 791a2202f02fd0c86797d7052deeca50333e66f6 | [
"MIT"
] | 1 | 2022-02-11T16:57:29.000Z | 2022-02-13T19:56:59.000Z | setup.py | Statoil/curvy | 791a2202f02fd0c86797d7052deeca50333e66f6 | [
"MIT"
] | 3 | 2019-03-11T12:17:03.000Z | 2022-02-15T03:37:27.000Z | from setuptools import setup
setup(
name='curvy',
version='0.1dev',
packages=['curvy',],
license='MIT',
long_description=open('README.md').read(),
keyswords='smooth curve curves interpolation swap forward prices price python forecast spline electricity gas market maximum smoothness',
author... | 26.777778 | 141 | 0.649378 | 51 | 482 | 6.078431 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.224066 | 482 | 18 | 142 | 26.777778 | 0.823529 | 0.024896 | 0 | 0 | 0 | 0 | 0.4329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48cb2379533c919102d2b9e151c2140291615924 | 696 | py | Python | src/smriti/models.py | Namrata7199/NITK-Student-Council-Website | 17007730a5a10f2fadf9926aa3e60ef5b90b35dd | [
"MIT"
] | 7 | 2016-04-06T19:10:09.000Z | 2016-12-07T17:11:05.000Z | src/smriti/models.py | Namrata7199/NITK-Student-Council-Website | 17007730a5a10f2fadf9926aa3e60ef5b90b35dd | [
"MIT"
] | 35 | 2015-12-02T12:01:48.000Z | 2018-03-02T05:53:20.000Z | src/smriti/models.py | devmonster423/django-student-web | a6201eca8903c5ce97969dc86c1ec6cb4755f66c | [
"MIT"
] | 16 | 2016-06-27T18:57:08.000Z | 2018-06-14T05:35:15.000Z | from django.db import models
from django_markdown.models import MarkdownField
from django.conf import settings
# Create your models here.
class Testimonial(models.Model):
testimonial_to = models.ForeignKey(settings.AUTH_USER_MODEL,related_name="receiver")
created_by = models.ForeignKey(settings.AUTH_USER_MODE... | 34.8 | 97 | 0.737069 | 87 | 696 | 5.609195 | 0.528736 | 0.061475 | 0.098361 | 0.114754 | 0.196721 | 0.196721 | 0.196721 | 0.196721 | 0 | 0 | 0 | 0 | 0.159483 | 696 | 19 | 98 | 36.631579 | 0.834188 | 0.034483 | 0 | 0 | 0 | 0 | 0.092537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.071429 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
48cf1b5ddc23631f9780f93da9490a8974c47ddb | 1,060 | py | Python | lib/jammy/models/azurefirewall/azure_firewall_sku_py3.py | girishmotwani/jammy | 58ca1e741800781e6bebc761a0a8e4d4f8ef9bfb | [
"MIT"
] | 2 | 2020-11-06T07:46:37.000Z | 2021-01-14T01:41:04.000Z | lib/jammy/models/azurefirewall/azure_firewall_sku_py3.py | girishmotwani/jammy | 58ca1e741800781e6bebc761a0a8e4d4f8ef9bfb | [
"MIT"
] | 3 | 2020-12-28T20:43:11.000Z | 2020-12-28T20:45:25.000Z | lib/jammy/models/azurefirewall/azure_firewall_sku_py3.py | girishmotwani/jammy | 58ca1e741800781e6bebc761a0a8e4d4f8ef9bfb | [
"MIT"
] | 1 | 2021-01-14T01:41:10.000Z | 2021-01-14T01:41:10.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 34.193548 | 76 | 0.564151 | 111 | 1,060 | 5.279279 | 0.558559 | 0.020478 | 0.046075 | 0.087031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001163 | 0.188679 | 1,060 | 30 | 77 | 35.333333 | 0.680233 | 0.599057 | 0 | 0 | 1 | 0 | 0.093506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48d8de2194fca6d5c5f24f73e93c890fd8daafe6 | 588 | py | Python | clearblade/Code.py | sraman0302/ClearBlade-Python-SDK | bde192ef86969c8d1c592f7697ca104bc2362408 | [
"Apache-2.0"
] | 2 | 2018-05-10T18:38:04.000Z | 2020-12-19T08:14:21.000Z | clearblade/Code.py | sraman0302/ClearBlade-Python-SDK | bde192ef86969c8d1c592f7697ca104bc2362408 | [
"Apache-2.0"
] | 6 | 2018-01-13T17:05:51.000Z | 2021-09-01T18:25:41.000Z | clearblade/Code.py | sraman0302/ClearBlade-Python-SDK | bde192ef86969c8d1c592f7697ca104bc2362408 | [
"Apache-2.0"
] | 4 | 2018-11-08T21:18:08.000Z | 2021-05-10T01:07:14.000Z | from __future__ import absolute_import
from . import cbLogs
from . import restcall
class Service():
def __init__(self, system, name):
self.name = name
self.url = system.url + "/api/v/1/code/" + system.systemKey + "/" + name
self.sslVerify = system.sslVerify
def execute(self, authentic... | 28 | 112 | 0.666667 | 69 | 588 | 5.492754 | 0.463768 | 0.063325 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002179 | 0.219388 | 588 | 20 | 113 | 29.4 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.062925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
48dcbe5d2630c149bd442425dd9092e0a9b21404 | 4,579 | py | Python | shapecutter/providers/geometry.py | informatics-lab/shapecutter | f974ec3b5858203bb3312463ebb55d33096cb798 | [
"BSD-3-Clause"
] | null | null | null | shapecutter/providers/geometry.py | informatics-lab/shapecutter | f974ec3b5858203bb3312463ebb55d33096cb798 | [
"BSD-3-Clause"
] | null | null | null | shapecutter/providers/geometry.py | informatics-lab/shapecutter | f974ec3b5858203bb3312463ebb55d33096cb798 | [
"BSD-3-Clause"
] | null | null | null | """Provider classes for different pythonic representations of shapely geometries."""
import cartopy.io.shapereader as shpreader
import geopandas as gpd
class _GeometryProvider(object):
def __init__(self, geometry_source):
self._geometry_source = geometry_source
@property
def geometry_source(self... | 35.223077 | 94 | 0.673073 | 566 | 4,579 | 5.106007 | 0.234982 | 0.13564 | 0.099654 | 0.027682 | 0.358824 | 0.312111 | 0.268512 | 0.232872 | 0.180277 | 0.143945 | 0 | 0.001139 | 0.233239 | 4,579 | 129 | 95 | 35.496124 | 0.821988 | 0.106355 | 0 | 0.326087 | 0 | 0 | 0.064365 | 0.005672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.021739 | 0.021739 | 0.467391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48dd26561c3e539a2e498ff253dbaac0b85f1642 | 441 | py | Python | allowIpAwsSecurityGroup.py | rafaelklock/allowme | 954ee76191e9c7efb3ffb57c8d3b837fd4f8ff09 | [
"Apache-2.0"
] | null | null | null | allowIpAwsSecurityGroup.py | rafaelklock/allowme | 954ee76191e9c7efb3ffb57c8d3b837fd4f8ff09 | [
"Apache-2.0"
] | 1 | 2020-05-10T12:56:44.000Z | 2020-05-10T12:56:44.000Z | allowIpAwsSecurityGroup.py | rafaelklock/allowme | 954ee76191e9c7efb3ffb57c8d3b837fd4f8ff09 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import boto3
import sys
# by Rafael Klock
ec2 = boto3.client('ec2')
security_group_id = 'sg-080ce2a7c35e04bca'
ip_allow = sys.argv[1]
retorno = ec2.authorize_security_group_ingress(
GroupId=security_group_id,
IpPermissions=[
{'IpProtocol': '-1',
'IpRanges'... | 17.64 | 47 | 0.605442 | 47 | 441 | 5.489362 | 0.680851 | 0.151163 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049844 | 0.272109 | 441 | 24 | 48 | 18.375 | 0.753894 | 0.072562 | 0 | 0 | 0 | 0 | 0.19656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48e02c5e8b02d6b42bedda2b71993936b99d1fa9 | 13,242 | py | Python | sympy/core/tests/test_functions.py | minrk/sympy | 1cc6e3837b8ed20ba52ea97298f31aa08b43c508 | [
"BSD-3-Clause"
] | null | null | null | sympy/core/tests/test_functions.py | minrk/sympy | 1cc6e3837b8ed20ba52ea97298f31aa08b43c508 | [
"BSD-3-Clause"
] | null | null | null | sympy/core/tests/test_functions.py | minrk/sympy | 1cc6e3837b8ed20ba52ea97298f31aa08b43c508 | [
"BSD-3-Clause"
] | null | null | null | from sympy import (Lambda, Symbol, Function, Derivative, Subs, sqrt,
log, exp, Rational, Float, sin, cos, acos, diff, I, re, im,
oo, zoo, nan, E, expand, pi, O, Sum, S, polygamma, loggamma,
Tuple, Dummy)
from sympy.utilities.pytest import XFAIL, raises
from sympy.abc import x, y, n
from sympy.co... | 35.406417 | 107 | 0.545084 | 2,433 | 13,242 | 2.918619 | 0.081792 | 0.031263 | 0.013942 | 0.011829 | 0.494297 | 0.380651 | 0.308266 | 0.236446 | 0.202225 | 0.140262 | 0 | 0.054324 | 0.229875 | 13,242 | 373 | 108 | 35.50134 | 0.641989 | 0.021976 | 0 | 0.13 | 0 | 0.003333 | 0.036015 | 0.009661 | 0 | 0 | 0 | 0 | 0.52 | 1 | 0.106667 | false | 0 | 0.023333 | 0.006667 | 0.143333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48e1e1b1118e95a52ed88ce3cbca0476924237c5 | 377 | py | Python | src/app.py | StrinTH/DrHelp | 76cdcd549f6c8ad6315e5c4557793c622a833c6a | [
"MIT"
] | 1 | 2021-12-02T15:04:08.000Z | 2021-12-02T15:04:08.000Z | src/app.py | StrinTH/DrHelp | 76cdcd549f6c8ad6315e5c4557793c622a833c6a | [
"MIT"
] | null | null | null | src/app.py | StrinTH/DrHelp | 76cdcd549f6c8ad6315e5c4557793c622a833c6a | [
"MIT"
] | 1 | 2021-12-02T15:04:09.000Z | 2021-12-02T15:04:09.000Z | import sys
from shell_manager import main_function
from formal import formal
if __name__ == "__main__":
#main()
try:
if sys.argv[1] == "-v" or sys.argv[1] == "--version":
print(formal())
print('BSFramework v0.6')
if sys.argv[1] == "--shell":
main_function()
... | 29 | 61 | 0.559682 | 46 | 377 | 4.347826 | 0.543478 | 0.105 | 0.12 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018797 | 0.29443 | 377 | 13 | 62 | 29 | 0.733083 | 0.015915 | 0 | 0 | 0 | 0 | 0.185984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48e7338f8cdbe57d51c9602439628f42836a4379 | 18,825 | py | Python | dpa/product/action/create.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 55 | 2015-07-15T02:33:55.000Z | 2020-12-28T08:02:54.000Z | dpa/product/action/create.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 5 | 2015-07-11T03:21:10.000Z | 2016-12-27T12:20:07.000Z | dpa/product/action/create.py | Clemson-DPA/dpa-pipe | 2482b8a0fd96dc19c0be4e82c3eaf0508914a968 | [
"MIT"
] | 12 | 2015-07-08T04:48:39.000Z | 2020-06-27T11:35:58.000Z |
# -----------------------------------------------------------------------------
import os
from dpa.action import Action, ActionError, ActionAborted
from dpa.location import current_location_code
from dpa.product import Product, ProductError, validate_product_name
from dpa.product.version import ProductVersion, Produ... | 33.616071 | 80 | 0.471448 | 1,563 | 18,825 | 5.479846 | 0.141395 | 0.051372 | 0.022417 | 0.025686 | 0.324343 | 0.277758 | 0.235727 | 0.205137 | 0.149329 | 0.10718 | 0 | 0.002468 | 0.332802 | 18,825 | 559 | 81 | 33.676208 | 0.679459 | 0.137424 | 0 | 0.298329 | 0 | 0 | 0.112191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033413 | null | null | 0.026253 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48eb360bd992d779ae0cf79c1fdf8b41030ddfda | 2,160 | py | Python | AxProf/AxProfGenerators.py | rod-lin/AxProf | 97d93880688de37df3261ce550555889f3ec3ef8 | [
"Apache-2.0"
] | 6 | 2019-03-13T19:10:08.000Z | 2021-12-27T19:10:27.000Z | AxProf/AxProfGenerators.py | rod-lin/AxProf | 97d93880688de37df3261ce550555889f3ec3ef8 | [
"Apache-2.0"
] | null | null | null | AxProf/AxProfGenerators.py | rod-lin/AxProf | 97d93880688de37df3261ce550555889f3ec3ef8 | [
"Apache-2.0"
] | 2 | 2019-09-22T18:02:52.000Z | 2021-06-26T06:07:22.000Z | # data generators for AxProf
import numpy as np
import random
import math
from AxProfUtil import writeDataToFile
import scipy
# Generates numbers of the form a*i+b for i in [0..length)
def linearGenerator(length, a, b):
output = length * [0]
for i in range(length):
output[i] = a * i + b
return output
# G... | 27.341772 | 78 | 0.723611 | 319 | 2,160 | 4.84953 | 0.394984 | 0.023271 | 0.015514 | 0.021332 | 0.104719 | 0.090498 | 0.090498 | 0.05947 | 0.05947 | 0.05947 | 0 | 0.013046 | 0.183796 | 2,160 | 78 | 79 | 27.692308 | 0.864436 | 0.358796 | 0 | 0.173913 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.108696 | 0.021739 | 0.456522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48ec66daf6fd3b6667bbad948e475305e8552316 | 694 | py | Python | sample_project/sample_content/migrations/0002_myprofile_systematics.py | zentrumnawi/solid-backend | 0a6ac51608d4c713903856bb9b0cbf0068aa472c | [
"MIT"
] | 1 | 2021-01-24T11:54:01.000Z | 2021-01-24T11:54:01.000Z | sample_project/sample_content/migrations/0002_myprofile_systematics.py | zentrumnawi/solid-backend | 0a6ac51608d4c713903856bb9b0cbf0068aa472c | [
"MIT"
] | 112 | 2020-04-22T10:07:03.000Z | 2022-03-29T15:25:26.000Z | sample_project/sample_content/migrations/0002_myprofile_systematics.py | zentrumnawi/solid-backend | 0a6ac51608d4c713903856bb9b0cbf0068aa472c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.9 on 2021-01-10 17:30
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("content", "0001_create_tree_node_model"),
("sample_content", "0001_initial"),
]
operations = [
migr... | 25.703704 | 63 | 0.572046 | 69 | 694 | 5.594203 | 0.695652 | 0.062176 | 0.072539 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048626 | 0.318444 | 694 | 26 | 64 | 26.692308 | 0.767442 | 0.064842 | 0 | 0.1 | 1 | 0 | 0.185471 | 0.041731 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48ec950ba5cda102a327dcdd042b206f50991e90 | 5,417 | py | Python | backtracking/match_parenthesis.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | backtracking/match_parenthesis.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | backtracking/match_parenthesis.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | def generate_parentheses(n):
"""
generate all the different ways you can have n parentheses
- nested
- adjacent
- mixture
each of the combos is a str
return an array of all the strings
good case of backtracking
n = 3
two unique chars to wrry abouyt = '(' and ')'
... | 32.830303 | 88 | 0.425881 | 493 | 5,417 | 4.543611 | 0.269777 | 0.066964 | 0.069643 | 0.038839 | 0.142857 | 0.058929 | 0.058929 | 0.058929 | 0.058929 | 0.058929 | 0 | 0.015868 | 0.418313 | 5,417 | 164 | 89 | 33.030488 | 0.695017 | 0.353701 | 0 | 0.188679 | 1 | 0 | 0.007042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0 | 0 | 0.150943 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48faebe4d849896f03efe5641eadd237dc067cd0 | 6,840 | py | Python | code/util.py | taipahuchu/language-Identification- | 68660bc110d374f0d8802b942792b15f8782e647 | [
"Unlicense"
] | 13 | 2016-10-12T17:20:55.000Z | 2021-07-13T10:19:23.000Z | code/util.py | taipahuchu/language-Identification- | 68660bc110d374f0d8802b942792b15f8782e647 | [
"Unlicense"
] | 2 | 2019-03-28T03:06:54.000Z | 2019-04-04T20:54:43.000Z | code/util.py | taipahuchu/language-Identification- | 68660bc110d374f0d8802b942792b15f8782e647 | [
"Unlicense"
] | 4 | 2018-07-05T05:50:34.000Z | 2019-09-01T20:21:50.000Z | # Misc. helper functions go in this file.
import collections
import numpy as np
import os
import random
import sys
# Need to use these three lines to import pyplot with a good font
import matplotlib
matplotlib.rc('font', family='DejaVu Sans')
from matplotlib import pyplot
def Metrics(preds, labs, show=True):
"""Pr... | 23.66782 | 73 | 0.586257 | 956 | 6,840 | 4.144351 | 0.393305 | 0.016153 | 0.014134 | 0.017415 | 0.086825 | 0.069662 | 0.069662 | 0.03685 | 0.023725 | 0 | 0 | 0.019142 | 0.236257 | 6,840 | 288 | 74 | 23.75 | 0.73928 | 0.056725 | 0 | 0.119403 | 0 | 0.00995 | 0.168718 | 0.010862 | 0 | 0 | 0.000724 | 0 | 0 | 0 | null | null | 0 | 0.034826 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b03ff2a07a3a25ac71f005665dd87bd66df1472 | 63,172 | py | Python | pygbe/tree/FMMutils.py | intendo/pygbe | 6ac43ebfb3a4d342a380d7938af119cfba587746 | [
"BSD-3-Clause"
] | 36 | 2015-02-17T15:45:23.000Z | 2019-10-28T15:14:23.000Z | pygbe/tree/FMMutils.py | intendo/pygbe | 6ac43ebfb3a4d342a380d7938af119cfba587746 | [
"BSD-3-Clause"
] | 48 | 2016-02-04T22:50:36.000Z | 2019-06-25T17:01:06.000Z | pygbe/tree/FMMutils.py | intendo/pygbe | 6ac43ebfb3a4d342a380d7938af119cfba587746 | [
"BSD-3-Clause"
] | 26 | 2015-05-15T22:14:50.000Z | 2019-02-07T19:00:47.000Z | """
It contains the functions to build the tree and compute all the interactions.
"""
import time
import numpy
from scipy.special import comb
# Wrapped code
from pygbe.tree.multipole import multipole_c, setIndex, getIndex_arr, multipole_sort, multipoleKt_sort
from pygbe.tree.direct import direct_c, direct_sort, direct... | 37.963942 | 108 | 0.583455 | 8,406 | 63,172 | 4.318582 | 0.064478 | 0.021073 | 0.031954 | 0.029089 | 0.75544 | 0.72558 | 0.686353 | 0.658449 | 0.627706 | 0.591841 | 0 | 0.012841 | 0.32201 | 63,172 | 1,663 | 109 | 37.986771 | 0.834742 | 0.451355 | 0 | 0.458955 | 0 | 0 | 0.002148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032338 | false | 0 | 0.008706 | 0 | 0.062189 | 0.001244 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b082908d6e7c22af87646b1ca0d80c6b23e0467 | 8,700 | py | Python | mimic3models/phenotyping/main.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | 11 | 2019-10-16T15:34:19.000Z | 2022-03-31T10:50:44.000Z | mimic3models/phenotyping/main.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | null | null | null | mimic3models/phenotyping/main.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | 4 | 2019-05-24T11:50:35.000Z | 2021-02-23T07:01:14.000Z | import numpy as np
import argparse
import time
import os
import importlib
from mimic3benchmark.readers import PhenotypingReader
from mimic3models.preprocessing import Discretizer, Normalizer
from mimic3models import metrics
from mimic3models.phenotyping import utils
parser = argparse.ArgumentParser()
parser.add_argu... | 39.189189 | 95 | 0.614828 | 1,102 | 8,700 | 4.627042 | 0.202359 | 0.030006 | 0.056678 | 0.009414 | 0.249461 | 0.225927 | 0.183565 | 0.165915 | 0.162385 | 0.162385 | 0 | 0.012152 | 0.252759 | 8,700 | 222 | 96 | 39.189189 | 0.772189 | 0.011954 | 0 | 0.183908 | 0 | 0.011494 | 0.197277 | 0.056215 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057471 | null | null | 0.074713 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b0a1f8e0098d3123555548b66b0f8ac07cdfe18 | 8,632 | py | Python | lib/metrics.py | fulinjie/vaapi-fits | e8574fbbc2454c518770b90ff578732bdb6d898c | [
"BSD-3-Clause"
] | null | null | null | lib/metrics.py | fulinjie/vaapi-fits | e8574fbbc2454c518770b90ff578732bdb6d898c | [
"BSD-3-Clause"
] | null | null | null | lib/metrics.py | fulinjie/vaapi-fits | e8574fbbc2454c518770b90ff578732bdb6d898c | [
"BSD-3-Clause"
] | null | null | null | ###
### Copyright (C) 2018-2019 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
import hashlib
import itertools
import os
import skimage.measure
from common import get_media, memoize, timefn
from framereader import FrameReaders
@timefn("md5")
def md5(filename, chunksize = 4096, numbytes = -1):
... | 32.821293 | 102 | 0.637859 | 1,165 | 8,632 | 4.596567 | 0.220601 | 0.023903 | 0.047059 | 0.040336 | 0.343604 | 0.267227 | 0.238655 | 0.228945 | 0.204855 | 0.204855 | 0 | 0.035693 | 0.208063 | 8,632 | 262 | 103 | 32.946565 | 0.747659 | 0.083063 | 0 | 0.165049 | 0 | 0 | 0.064561 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0 | null | null | 0 | 0.029126 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b0dbb58cb2e77b0c306a72f8344e573ab95df48 | 635 | py | Python | UVa 11349 symmetric matrix/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 11349 symmetric matrix/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 11349 symmetric matrix/sample/main.py | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | import math
import sys
def symM(matrix, n):
flag = True
for x in range(n & 1 + n >> 1):
for y in range(n):
flag &= (matrix[x][y] == matrix[n - 1 - x][n - 1 - y])
if not flag:
break
if not flag:
break
return flag
sys.stdin = open('input.... | 23.518519 | 66 | 0.492913 | 95 | 635 | 3.273684 | 0.421053 | 0.032154 | 0.038585 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02148 | 0.340157 | 635 | 26 | 67 | 24.423077 | 0.720764 | 0 | 0 | 0.181818 | 0 | 0 | 0.085039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b10097bbff4ed649c0a439469d36c604d9dd37c | 1,649 | py | Python | sdk/python/pulumi_aws/inspector/resource_group.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/inspector/resource_group.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/inspector/resource_group.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class ResourceGroup(pulumi.CustomResource):
"""
Provides a Inspector resource group
""... | 33.653061 | 93 | 0.615525 | 186 | 1,649 | 5.086022 | 0.44086 | 0.073996 | 0.069767 | 0.063425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001714 | 0.292298 | 1,649 | 48 | 94 | 34.354167 | 0.808912 | 0.17829 | 0 | 0 | 1 | 0 | 0.217709 | 0.033306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b15c6bdb31615e302a0a8e6794261b6cacf9e6e | 896 | py | Python | MongoDB_University/M101P_MongoDB_for_Developers/Chapter_3_Schema_Design/homework_3_1/hw_3_1.py | onyb/mooca | ec231e41fd061a96a268052e2362fbec5e2db373 | [
"MIT"
] | null | null | null | MongoDB_University/M101P_MongoDB_for_Developers/Chapter_3_Schema_Design/homework_3_1/hw_3_1.py | onyb/mooca | ec231e41fd061a96a268052e2362fbec5e2db373 | [
"MIT"
] | null | null | null | MongoDB_University/M101P_MongoDB_for_Developers/Chapter_3_Schema_Design/homework_3_1/hw_3_1.py | onyb/mooca | ec231e41fd061a96a268052e2362fbec5e2db373 | [
"MIT"
] | null | null | null | import pymongo
import sys
# establish a connection to the database
connection = pymongo.MongoClient("mongodb://localhost")
# get a handle to the school database
db=connection.school
scores = db.students
def update():
try:
cursor = scores.find({})
except Exception as e:
print "Unexpected erro... | 24.216216 | 72 | 0.495536 | 92 | 896 | 4.73913 | 0.48913 | 0.110092 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001808 | 0.382813 | 896 | 36 | 73 | 24.888889 | 0.786618 | 0.082589 | 0 | 0 | 0 | 0 | 0.118437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b2240ccbd035d2a6ec31ee2bc2ba31c900fb483 | 264 | py | Python | tests/bots/economy/test_indices.py | swipswaps/OpenBBTerminal | 9d33f638f10fdbc77ae461b1838462571faee138 | [
"MIT"
] | null | null | null | tests/bots/economy/test_indices.py | swipswaps/OpenBBTerminal | 9d33f638f10fdbc77ae461b1838462571faee138 | [
"MIT"
] | null | null | null | tests/bots/economy/test_indices.py | swipswaps/OpenBBTerminal | 9d33f638f10fdbc77ae461b1838462571faee138 | [
"MIT"
] | null | null | null | import pytest
from bots.economy.indices import indices_command
@pytest.mark.bots
@pytest.mark.vcr
def test_indices_command(mocker, recorder):
mocker.patch("bots.helpers.uuid_get", return_value="1")
value = indices_command()
recorder.capture(value)
| 20.307692 | 59 | 0.765152 | 36 | 264 | 5.444444 | 0.583333 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.125 | 264 | 12 | 60 | 22 | 0.844156 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2885186c3bf5e2788a569ec93acb91c6648589a | 618 | py | Python | algorithms/backtracking/string_permutation.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | 1 | 2019-04-18T03:29:02.000Z | 2019-04-18T03:29:02.000Z | algorithms/backtracking/string_permutation.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | null | null | null | algorithms/backtracking/string_permutation.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | null | null | null | """
Print all permutations of a string
"""
def permutate(str_list: list, start: int, end: int) -> None:
"""
Time Complexity: O(n*n!)
"""
if start == end:
print("".join(str_list)) # O(n)
else:
for i in range(start, end + 1):
str_list[start], str_list[i] = str_list[i], s... | 25.75 | 71 | 0.572816 | 89 | 618 | 3.764045 | 0.393258 | 0.229851 | 0.179104 | 0.131343 | 0.238806 | 0.238806 | 0.238806 | 0.238806 | 0.238806 | 0.238806 | 0 | 0.013129 | 0.260518 | 618 | 23 | 72 | 26.869565 | 0.719912 | 0.105178 | 0 | 0.153846 | 0 | 0 | 0.101887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.230769 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d29334b858b1578aa54041f939b62d2f9aec0e37 | 220 | py | Python | QueueTrigger/__init__.py | dongheeHwang/functions-docs-python | 9a645bceaefb9a96f722ac7778d6c4ca750ef28a | [
"MIT"
] | 3 | 2021-08-12T07:58:38.000Z | 2022-02-12T21:28:06.000Z | QueueTrigger/__init__.py | dongheeHwang/functions-docs-python | 9a645bceaefb9a96f722ac7778d6c4ca750ef28a | [
"MIT"
] | null | null | null | QueueTrigger/__init__.py | dongheeHwang/functions-docs-python | 9a645bceaefb9a96f722ac7778d6c4ca750ef28a | [
"MIT"
] | 9 | 2020-02-18T18:07:50.000Z | 2022-02-10T10:51:01.000Z | import logging
import azure.functions as func
def main(msg: func.QueueMessage) -> None:
value = msg.get_body().decode('utf-8')
logging.info('Python queue trigger function processed a queue item: %s', value)
| 20 | 83 | 0.713636 | 32 | 220 | 4.875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.168182 | 220 | 10 | 84 | 22 | 0.846995 | 0 | 0 | 0 | 0 | 0 | 0.277273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d2939190ddce5ebca1594b792681bcc15bba036d | 1,191 | py | Python | Moudle/Weaver/Weaver_OA_V8_sqlinjection.py | WingsSec/Meppo | 454aa6ce6cc3e93cadb2dc0c455c56fa5e0f1a94 | [
"MIT"
] | 60 | 2022-03-22T02:40:41.000Z | 2022-03-29T06:23:57.000Z | Moudle/Weaver/Weaver_OA_V8_sqlinjection.py | BambooLove/Meppo | 96e023c0b07c09f334b44fcfb9abfe741a082f0f | [
"MIT"
] | null | null | null | Moudle/Weaver/Weaver_OA_V8_sqlinjection.py | BambooLove/Meppo | 96e023c0b07c09f334b44fcfb9abfe741a082f0f | [
"MIT"
] | 9 | 2022-03-22T12:10:44.000Z | 2022-03-25T07:37:01.000Z | #!/usr/bin/env python3
# _*_ coding:utf-8 _*_
import requests
from Config.config_requests import headers
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
##########################################################################... | 35.029412 | 123 | 0.528128 | 117 | 1,191 | 5.213675 | 0.683761 | 0.052459 | 0.07541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027163 | 0.165407 | 1,191 | 34 | 124 | 35.029412 | 0.586519 | 0.039463 | 0 | 0 | 0 | 0.041667 | 0.241685 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.083333 | 0.125 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d29b84e9285c0087df65af2f10f77a1a6cadfc6a | 2,504 | py | Python | tools/linear_algebra/data_structures/global_matrix/IS.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | tools/linear_algebra/data_structures/global_matrix/IS.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | tools/linear_algebra/data_structures/global_matrix/IS.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null |
from root.config.main import rAnk, mAster_rank, cOmm, MPI
from screws.freeze.main import FrozenOnly
class ___GM_IS___(FrozenOnly):
def __init__(self, gm):
self._gm_ = gm
self._regularly_distributed_ = False
self._freeze_self_()
@property
def globally_empty(self):
"""I am... | 35.771429 | 105 | 0.574681 | 301 | 2,504 | 4.481728 | 0.342193 | 0.222387 | 0.124537 | 0.037806 | 0.191253 | 0.096368 | 0.096368 | 0.069681 | 0.069681 | 0.069681 | 0 | 0.003595 | 0.333466 | 2,504 | 70 | 106 | 35.771429 | 0.804673 | 0.229633 | 0 | 0.204545 | 0 | 0 | 0.105431 | 0.039404 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.136364 | false | 0.022727 | 0.045455 | 0 | 0.295455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d29cec4b090d2cf7fe2e9d817f9cad63a39c404b | 2,540 | py | Python | burgers1d/analytical.py | jkfids/PINN-burgers | 6887aa007e6048485d1874779258b621781f4fef | [
"MIT"
] | 1 | 2021-04-09T04:02:03.000Z | 2021-04-09T04:02:03.000Z | burgers1d/analytical.py | jkfids/pinn-burgers | 6887aa007e6048485d1874779258b621781f4fef | [
"MIT"
] | 1 | 2021-03-21T23:30:28.000Z | 2021-03-21T23:30:28.000Z | burgers1d/analytical.py | jkfids/PINN-burgers | 6887aa007e6048485d1874779258b621781f4fef | [
"MIT"
] | 2 | 2021-05-23T23:04:34.000Z | 2021-05-31T06:26:46.000Z | # -*- coding: utf-8 -*-
"""
@author: Fidel
Generates analytical solutions to the 1D Burgers equation for PINN training
data and analytics. Check GitHub for the original paper.
"""
import numpy as np
import pandas as pd
from scipy import integrate
from matplotlib import pyplot as plt
# Initialize matrice... | 32.987013 | 79 | 0.594094 | 469 | 2,540 | 3.132196 | 0.311301 | 0.013615 | 0.027229 | 0.030633 | 0.1484 | 0.080327 | 0.058543 | 0.058543 | 0.035398 | 0.035398 | 0 | 0.047497 | 0.229134 | 2,540 | 77 | 80 | 32.987013 | 0.702758 | 0.20315 | 0 | 0 | 1 | 0 | 0.066701 | 0.010858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0.055556 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d29db064ab327d8b8b5a063eeb7be6ba56bc54ac | 2,133 | py | Python | bonus/config.py | OTCGO/SYNC_NEO | c54f65a1d87b815108697d66d55505038395131a | [
"MIT"
] | 6 | 2018-03-08T03:03:08.000Z | 2018-08-17T06:18:37.000Z | bonus/config.py | OTCGO/SYNC_NEO | c54f65a1d87b815108697d66d55505038395131a | [
"MIT"
] | 1 | 2018-04-08T15:02:07.000Z | 2018-04-08T15:02:07.000Z | bonus/config.py | OTCGO/SYNC_NEO | c54f65a1d87b815108697d66d55505038395131a | [
"MIT"
] | 2 | 2018-04-20T09:50:03.000Z | 2018-10-17T14:53:35.000Z | #! /usr/bin/env python3
# coding: utf-8
# flow@SEA
# Licensed under the MIT License.
import os
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv(), override=True)
class Config:
@staticmethod
def get_mysql_args():
return {
'host': os.environ.get('MYSQLHOST'),
... | 27.346154 | 57 | 0.459916 | 238 | 2,133 | 3.962185 | 0.495798 | 0.085896 | 0.114528 | 0.073171 | 0.050901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154688 | 0.399906 | 2,133 | 77 | 58 | 27.701299 | 0.582031 | 0.054384 | 0 | 0.126984 | 0 | 0 | 0.185721 | 0.023465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | true | 0.015873 | 0.031746 | 0.063492 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d29dd3ec86d766cc4303e49050c700814eebe7c7 | 1,519 | py | Python | Crypto/ECC/ECDLP_script/bruteforce.py | kamithanthanh/hacmao.github.io | 87b06df827cc65f737831301bae1d5f3a2d014ff | [
"MIT"
] | 1 | 2019-09-27T13:23:00.000Z | 2019-09-27T13:23:00.000Z | Crypto/ECC/ECDLP_script/bruteforce.py | kamithanthanh/hacmao.github.io | 87b06df827cc65f737831301bae1d5f3a2d014ff | [
"MIT"
] | null | null | null | Crypto/ECC/ECDLP_script/bruteforce.py | kamithanthanh/hacmao.github.io | 87b06df827cc65f737831301bae1d5f3a2d014ff | [
"MIT"
] | 1 | 2019-08-25T09:17:07.000Z | 2019-08-25T09:17:07.000Z | from sage.all import *
import random
def brute_ecdlp(P, Q, E):
"""
Brute Force algorithm to solve ECDLP and retrieve value of secret key `x`.
Use only if group is very small.
Includes memoization for faster computation
[Warning]: Tested for Weierstrass Curves only
:parameters:
E : sage.... | 29.211538 | 98 | 0.577354 | 217 | 1,519 | 3.912442 | 0.43318 | 0.051826 | 0.067138 | 0.088339 | 0.209658 | 0.146054 | 0.146054 | 0.146054 | 0.146054 | 0 | 0 | 0.028074 | 0.319947 | 1,519 | 51 | 99 | 29.784314 | 0.793804 | 0 | 0 | 0.176471 | 0 | 0 | 0.130282 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a2c924990b2a9b0d3c2caf2a048e61b81f7b90 | 1,129 | py | Python | tinycord/middleware/message_delete.py | HazemMeqdad/TinyCord | 1d85a9e3523c01af2f34303b6f49778d4347356e | [
"MIT"
] | null | null | null | tinycord/middleware/message_delete.py | HazemMeqdad/TinyCord | 1d85a9e3523c01af2f34303b6f49778d4347356e | [
"MIT"
] | null | null | null | tinycord/middleware/message_delete.py | HazemMeqdad/TinyCord | 1d85a9e3523c01af2f34303b6f49778d4347356e | [
"MIT"
] | null | null | null | import typing
if typing.TYPE_CHECKING:
from ..client import Client
from ..core import Gateway, GatewayDispatch
from ..models import Message
async def message_delete(client: "Client", gateway: "Gateway", event: "GatewayDispatch") -> typing.List[typing.Awaitable]:
"""
|coro|
This event ... | 28.225 | 122 | 0.608503 | 127 | 1,129 | 5.362205 | 0.433071 | 0.058737 | 0.058737 | 0.044053 | 0.073421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290523 | 1,129 | 40 | 123 | 28.225 | 0.850187 | 0.018601 | 0 | 0 | 0 | 0 | 0.08561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a2f82bcf0bc7d70b8556b32e9f0a6c3c8cd469 | 3,597 | py | Python | scripts/tool_dl/toolchains.py | andersdra/docker-mplabx | bc56289725a66b7f71575a33a2aaff1e67a8e966 | [
"MIT"
] | 5 | 2019-12-02T15:45:37.000Z | 2022-01-19T12:02:47.000Z | scripts/tool_dl/toolchains.py | andersdra/docker-mplabx | bc56289725a66b7f71575a33a2aaff1e67a8e966 | [
"MIT"
] | 2 | 2019-12-03T10:10:06.000Z | 2020-03-14T18:29:03.000Z | scripts/tool_dl/toolchains.py | andersdra/docker-mplabx | bc56289725a66b7f71575a33a2aaff1e67a8e966 | [
"MIT"
] | 1 | 2019-12-03T10:12:32.000Z | 2019-12-03T10:12:32.000Z | #!/usr/bin/env python3
# selenium powered downloader for microchip toolchains
# needs a valid microchip user
import os
import sys
import pickle
import multiprocessing as mp
from time import sleep
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.firefo... | 35.97 | 166 | 0.724215 | 462 | 3,597 | 5.45671 | 0.354978 | 0.03213 | 0.0476 | 0.06426 | 0.268941 | 0.201111 | 0.169377 | 0.144784 | 0.144784 | 0.144784 | 0 | 0.009493 | 0.150681 | 3,597 | 99 | 167 | 36.333333 | 0.815712 | 0.05866 | 0 | 0.025974 | 0 | 0.012987 | 0.248521 | 0.110947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0.051948 | 0.103896 | 0 | 0.168831 | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a2f8c341c2f1a80fa6cb0ca48c0cc29fdfa1c6 | 1,154 | py | Python | generator/apigen/Generator.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | 1 | 2017-05-26T00:18:26.000Z | 2017-05-26T00:18:26.000Z | generator/apigen/Generator.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | generator/apigen/Generator.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | """
A Generator to generate the lower level API bindings for scripting cmake commands
"""
import os
from apigen.Logger import Logger
from apigen.CommandParser import CommandParser
from jinja2 import Environment, FileSystemLoader
class Generator(object):
def __init__(self):
super().__init__()
self... | 36.0625 | 92 | 0.688042 | 127 | 1,154 | 6.023622 | 0.503937 | 0.086275 | 0.115033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001114 | 0.221837 | 1,154 | 31 | 93 | 37.225806 | 0.85078 | 0.101386 | 0 | 0 | 1 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a3c39c8b4a59fc2d829e16aa89411cd5fb6602 | 214 | py | Python | sum_of_1d_array.py | fajarmuslim/competitive_programming | faab2bed8496cf54f35ce6e4ad2ae2eb598e0e3c | [
"MIT"
] | null | null | null | sum_of_1d_array.py | fajarmuslim/competitive_programming | faab2bed8496cf54f35ce6e4ad2ae2eb598e0e3c | [
"MIT"
] | null | null | null | sum_of_1d_array.py | fajarmuslim/competitive_programming | faab2bed8496cf54f35ce6e4ad2ae2eb598e0e3c | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def runningSum(self, nums: List[int]) -> List[int]:
res = []
for i in range(len(nums)):
res.append(sum(nums[0 : i + 1]))
return res | 21.4 | 55 | 0.546729 | 30 | 214 | 3.9 | 0.733333 | 0.119658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.317757 | 214 | 10 | 56 | 21.4 | 0.787671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2a6d601da866ab0ce592c0306405dcf826a1dc7 | 7,628 | py | Python | accounts/forms.py | utkarsh23/endorsity-club | 7b3684856f9e14284d9998931b7124505376ca5a | [
"MIT"
] | null | null | null | accounts/forms.py | utkarsh23/endorsity-club | 7b3684856f9e14284d9998931b7124505376ca5a | [
"MIT"
] | null | null | null | accounts/forms.py | utkarsh23/endorsity-club | 7b3684856f9e14284d9998931b7124505376ca5a | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import get_user_model, password_validation
from django.contrib.auth.forms import (
PasswordResetForm,
ReadOnlyPasswordHashField,
)
from django.contrib.auth.tokens import default_token_generator
from django.contrib.sites.shortcuts import get_current_site
from dja... | 37.392157 | 90 | 0.662821 | 874 | 7,628 | 5.575515 | 0.23913 | 0.072235 | 0.034886 | 0.050893 | 0.365483 | 0.324646 | 0.274164 | 0.274164 | 0.274164 | 0.252822 | 0 | 0.006661 | 0.252098 | 7,628 | 203 | 91 | 37.576355 | 0.847502 | 0.097666 | 0 | 0.319444 | 0 | 0 | 0.113777 | 0.011334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0.180556 | 0.083333 | 0.006944 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a8382ebd3c79fcb7b84259b6c8c531b8cc95c9 | 471 | py | Python | software/firmware/boot.py | andreacorbo/Buoy_Controller_Async_v1 | 4c6a038f87e129c84fa6833e0be30c3ffdaff967 | [
"MIT"
] | null | null | null | software/firmware/boot.py | andreacorbo/Buoy_Controller_Async_v1 | 4c6a038f87e129c84fa6833e0be30c3ffdaff967 | [
"MIT"
] | null | null | null | software/firmware/boot.py | andreacorbo/Buoy_Controller_Async_v1 | 4c6a038f87e129c84fa6833e0be30c3ffdaff967 | [
"MIT"
] | null | null | null | # boot.py
# MIT license; Copyright (c) 2020 Andrea Corbo
import os
import pyb
pyb.freq(84000000) # Sets main clock to reduce power consumption.
pyb.fault_debug(False) # Restart after a hard-fault.
pyb.usb_mode("VCP+MSC") # Sets usb device to act only as virtual com port, needed
#... | 27.705882 | 83 | 0.653928 | 72 | 471 | 4.25 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033994 | 0.250531 | 471 | 16 | 84 | 29.4375 | 0.832861 | 0.52017 | 0 | 0 | 0 | 0 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2a869e958540277b89387cd5ae1fcf74bfa3def | 6,780 | py | Python | originalCode_JMG/data/dataimportBackUpOldCode.py | dataforgoodfr/batch9_validalab | f333bea8203fd1e4ed098b6e2d51a7f7b05ae530 | [
"MIT"
] | null | null | null | originalCode_JMG/data/dataimportBackUpOldCode.py | dataforgoodfr/batch9_validalab | f333bea8203fd1e4ed098b6e2d51a7f7b05ae530 | [
"MIT"
] | null | null | null | originalCode_JMG/data/dataimportBackUpOldCode.py | dataforgoodfr/batch9_validalab | f333bea8203fd1e4ed098b6e2d51a7f7b05ae530 | [
"MIT"
] | 1 | 2021-04-19T21:27:58.000Z | 2021-04-19T21:27:58.000Z | import networkx as nx
from py2neo import Graph, Node, Relationship
import pandas as pd
import random
graph = Graph("bolt://localhost:7687", auth=("neo4j", "Password"))
# TODO:
- ça à l'air de marcher pour les nodes, check que les rel D0 sont pas effacées quand rel D1 importé
- voir comment réimporter les D0 quan... | 29.098712 | 144 | 0.604867 | 892 | 6,780 | 4.413677 | 0.227578 | 0.042672 | 0.06477 | 0.039116 | 0.436881 | 0.394463 | 0.300991 | 0.261113 | 0.184912 | 0.139192 | 0 | 0.029475 | 0.174336 | 6,780 | 232 | 145 | 29.224138 | 0.673812 | 0.083333 | 0 | 0.269737 | 0 | 0.026316 | 0.21462 | 0.082459 | 0 | 0 | 0 | 0.00431 | 0 | 0 | null | null | 0.013158 | 0.039474 | null | null | 0.046053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2b014e8c136a1522a3076f813e163781ad5ea5f | 1,170 | py | Python | setup.py | danlamanna/multinet | 22a0b375e00b81421ae2323ced4ffce1b86c4677 | [
"Apache-2.0"
] | null | null | null | setup.py | danlamanna/multinet | 22a0b375e00b81421ae2323ced4ffce1b86c4677 | [
"Apache-2.0"
] | null | null | null | setup.py | danlamanna/multinet | 22a0b375e00b81421ae2323ced4ffce1b86c4677 | [
"Apache-2.0"
] | null | null | null | """This is the setup module for the multinet package."""
from setuptools import setup, find_packages
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = []
setup(
author="MultiNet Team",
author_email="multinet@multinet.app",
classifiers=[
"Development Status :: ... | 31.621622 | 61 | 0.647009 | 130 | 1,170 | 5.723077 | 0.561538 | 0.153226 | 0.201613 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017372 | 0.212821 | 1,170 | 36 | 62 | 32.5 | 0.790445 | 0.042735 | 0 | 0 | 0 | 0 | 0.4614 | 0.018851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2b2bf63b9a60b05466be67dfdf17145a2ab6137 | 3,797 | py | Python | d42.py | device42/d42_saltstack_external_pillar | 3c95e50ee1e74870f5ba31192b310b6282120d11 | [
"MIT"
] | 3 | 2017-11-16T17:29:52.000Z | 2019-04-09T08:07:49.000Z | d42.py | device42/d42_saltstack_external_pillar | 3c95e50ee1e74870f5ba31192b310b6282120d11 | [
"MIT"
] | 3 | 2017-11-29T23:08:14.000Z | 2021-04-15T07:05:02.000Z | d42.py | device42/d42_saltstack_external_pillar | 3c95e50ee1e74870f5ba31192b310b6282120d11 | [
"MIT"
] | 3 | 2017-11-29T14:52:19.000Z | 2021-07-12T17:05:18.000Z | #!/usr/bin/python
import csv, json, os
import logging
# This is the main external pillar script
log = logging.getLogger(__name__)
CUR_DIR = os.path.dirname(os.path.abspath(__file__))
# check to ensure requests + yaml are available
try:
import requests
REQUESTS_LOADED = True
except ImportError:
REQUESTS_LOADE... | 26.739437 | 131 | 0.636028 | 499 | 3,797 | 4.709419 | 0.320641 | 0.02383 | 0.028085 | 0.022979 | 0.084255 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0.009609 | 0.232552 | 3,797 | 141 | 132 | 26.929078 | 0.796843 | 0.075323 | 0 | 0.12931 | 0 | 0 | 0.139309 | 0.020268 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008621 | 0.051724 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2b68d96d5e34d3eb9445fe0bfb5c69f2adebb12 | 1,716 | py | Python | deeppavlov/models/tokenizers/nltk_tokenizer.py | ineersa/DeepPavlov | 8200bf9a0f0b378baad4ee0eb75b59453f516004 | [
"Apache-2.0"
] | 1 | 2019-09-09T20:21:30.000Z | 2019-09-09T20:21:30.000Z | deeppavlov/models/tokenizers/nltk_tokenizer.py | ineersa/DeepPavlov | 8200bf9a0f0b378baad4ee0eb75b59453f516004 | [
"Apache-2.0"
] | null | null | null | deeppavlov/models/tokenizers/nltk_tokenizer.py | ineersa/DeepPavlov | 8200bf9a0f0b378baad4ee0eb75b59453f516004 | [
"Apache-2.0"
] | 1 | 2019-03-17T13:47:44.000Z | 2019-03-17T13:47:44.000Z | # Copyright 2017 Neural Networks and Deep Learning lab, MIPT
#
# 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 applicab... | 33.647059 | 99 | 0.692308 | 220 | 1,716 | 5.354545 | 0.55 | 0.050934 | 0.022071 | 0.027165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006047 | 0.229021 | 1,716 | 50 | 100 | 34.32 | 0.884354 | 0.52331 | 0 | 0 | 0 | 0 | 0.105624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2bf8b74cebf9db7bf33dfa7717c477ab0e204b2 | 470 | py | Python | scripts/CheckPython.py | ZMen9/Hammer | 69284f8f804504ca87d6404250d433fb99156f5a | [
"Apache-2.0"
] | null | null | null | scripts/CheckPython.py | ZMen9/Hammer | 69284f8f804504ca87d6404250d433fb99156f5a | [
"Apache-2.0"
] | 1 | 2020-08-11T16:59:46.000Z | 2020-08-20T07:46:21.000Z | scripts/CheckPython.py | ZMen9/Hammer | 69284f8f804504ca87d6404250d433fb99156f5a | [
"Apache-2.0"
] | null | null | null | import subprocess
import pkg_resources
def install(package):
print(f"Installing {package} module...")
subprocess.check_call(['python', '-m', 'pip', 'install', package])
def ValidatePackage(package):
required = { package }
installed = {pkg.key for pkg in pkg_resources.working_set}
missing = require... | 26.111111 | 70 | 0.7 | 50 | 470 | 6.5 | 0.6 | 0.129231 | 0.104615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176596 | 470 | 18 | 71 | 26.111111 | 0.839793 | 0 | 0 | 0 | 0 | 0 | 0.14862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.