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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f321971f2482b043a55fbe34d2eafae0c2378e59 | 1,797 | py | Python | saunter/providers/mysql_provider.py | timgates42/py.saunter | bdc8480b1453e082872c80d3382d42565b8ed9c0 | [
"Apache-2.0"
] | 50 | 2015-05-13T08:42:04.000Z | 2021-03-11T04:45:00.000Z | saunter/providers/mysql_provider.py | timgates42/py.saunter | bdc8480b1453e082872c80d3382d42565b8ed9c0 | [
"Apache-2.0"
] | 2 | 2016-04-11T16:33:50.000Z | 2017-04-06T20:50:07.000Z | saunter/providers/mysql_provider.py | timgates42/py.saunter | bdc8480b1453e082872c80d3382d42565b8ed9c0 | [
"Apache-2.0"
] | 25 | 2015-03-20T08:24:58.000Z | 2022-01-01T21:34:59.000Z | # Copyright 2013 Element 34
#
# 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, s... | 29.95 | 86 | 0.602671 | 216 | 1,797 | 4.962963 | 0.555556 | 0.05597 | 0.052239 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.259878 | 1,797 | 59 | 87 | 30.457627 | 0.795489 | 0.626043 | 0 | 0 | 0 | 0 | 0.123994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f3277c562bb40ff1b31b9eeb990e105920484113 | 497 | py | Python | backend/webapp/debug.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 14 | 2020-12-17T08:03:51.000Z | 2022-03-26T04:21:18.000Z | backend/webapp/debug.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 20 | 2020-12-15T12:02:56.000Z | 2021-05-19T23:37:34.000Z | backend/webapp/debug.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 12 | 2020-12-10T16:35:27.000Z | 2022-02-01T04:06:10.000Z | # Copyright (c) The Diem Core Contributors
# SPDX-License-Identifier: Apache-2.0
from typing import Union
from flask import (
Blueprint,
render_template,
)
from werkzeug.wrappers import Response
from wallet.storage import get_execution_logs
root = Blueprint("root", __name__, url_prefix="/")
@root.route("/e... | 24.85 | 60 | 0.748491 | 65 | 497 | 5.492308 | 0.6 | 0.182073 | 0.089636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004662 | 0.136821 | 497 | 19 | 61 | 26.157895 | 0.827506 | 0.152918 | 0 | 0 | 0 | 0 | 0.100478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b8242ba9873540a3dbca15f727f6c96c2a8fc842 | 467 | py | Python | bind/pyevt/pyevt/evt_data.py | harrywong/evt | 95985384619e0f5ff4021e8838d421ac4b4b946d | [
"BSD-3-Clause"
] | 1,411 | 2018-04-23T03:57:30.000Z | 2022-02-13T10:34:22.000Z | bind/pyevt/pyevt/evt_data.py | Zhang-Zexi/evt | e90fe4dbab4b9512d120c79f33ecc62791e088bd | [
"Apache-2.0"
] | 27 | 2018-06-11T10:34:42.000Z | 2019-07-27T08:50:02.000Z | bind/pyevt/pyevt/evt_data.py | Zhang-Zexi/evt | e90fe4dbab4b9512d120c79f33ecc62791e088bd | [
"Apache-2.0"
] | 364 | 2018-06-09T12:11:53.000Z | 2020-12-15T03:26:48.000Z | from io import StringIO
from . import evt_exception, libevt
class EvtData:
def __init__(self, data):
self.data = data
self.evt = libevt.check_lib_init()
def __del__(self):
ret = self.evt.lib.evt_free(self.data)
evt_exception.evt_exception_raiser(ret)
def to_hex_string(se... | 23.35 | 47 | 0.627409 | 65 | 467 | 4.246154 | 0.492308 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263383 | 467 | 19 | 48 | 24.578947 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b82a28f09a6d41a32b94d63039db8e8c0b537fd8 | 1,676 | py | Python | plot_averages.py | Seanny123/DeepSLAM | 75aded2b4005c1bf0f8eba566942de9d679add6d | [
"MIT"
] | 61 | 2016-06-22T07:31:39.000Z | 2021-07-30T02:41:59.000Z | plot_averages.py | Seanny123/DeepSLAM | 75aded2b4005c1bf0f8eba566942de9d679add6d | [
"MIT"
] | 4 | 2016-06-22T07:56:10.000Z | 2019-12-03T04:45:17.000Z | plot_averages.py | Seanny123/DeepSLAM | 75aded2b4005c1bf0f8eba566942de9d679add6d | [
"MIT"
] | 30 | 2016-12-20T02:11:39.000Z | 2021-12-03T07:10:29.000Z | # Create the bar chart for the averaging comparison
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(font_scale=1.5)
layer_names = ['GoogleNet Layer 1', 'AlexNet Layer 2',
'OverFeat Average', 'All Layers',
'Best Combination']
results = pd.DataFrame()
res... | 34.916667 | 55 | 0.466587 | 160 | 1,676 | 4.79375 | 0.40625 | 0.091265 | 0.130378 | 0.162973 | 0.397653 | 0.363755 | 0.318123 | 0.318123 | 0.318123 | 0.318123 | 0 | 0.089119 | 0.424224 | 1,676 | 47 | 56 | 35.659574 | 0.705699 | 0.029236 | 0 | 0.375 | 0 | 0 | 0.129231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075 | 0 | 0.075 | 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 |
b83de6bddf942e0ac30713cddc6cc3ca1d10a04a | 1,260 | py | Python | datacollection/mysite/polls/sheduled/client.py | slient2010/tools | 20811e600753a477512b9d2ceded48003654faf4 | [
"MIT"
] | null | null | null | datacollection/mysite/polls/sheduled/client.py | slient2010/tools | 20811e600753a477512b9d2ceded48003654faf4 | [
"MIT"
] | null | null | null | datacollection/mysite/polls/sheduled/client.py | slient2010/tools | 20811e600753a477512b9d2ceded48003654faf4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
#
# 说明: 客户端,集成到web或者独立使用。
#
#
import sys
import rpyc
from libs.libraries import *
from config import *
# import logging
# 常量定义,集成到web时候,可以不要config.py
# SECRET_KEY="asdfklasjdfkdsjkfjjiozji"
# SERVER='127.0.0.1'
# PORT=9911
# USER="admin"
# PASSWD="abcdefghijklmnopqrstuvwxyz... | 25.2 | 76 | 0.618254 | 146 | 1,260 | 5.232877 | 0.589041 | 0.058901 | 0.041885 | 0.054974 | 0.146597 | 0.070681 | 0 | 0 | 0 | 0 | 0 | 0.017297 | 0.265873 | 1,260 | 49 | 77 | 25.714286 | 0.808649 | 0.315079 | 0 | 0.307692 | 0 | 0 | 0.112426 | 0.043787 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.153846 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b83ded601f0beb7f3d68631a194963eca5fceedd | 1,417 | py | Python | src/writer.py | boconlonton/openpyxl-writer-sb | b115323c8394de7605d96ce0c7473739c1753b27 | [
"MIT"
] | null | null | null | src/writer.py | boconlonton/openpyxl-writer-sb | b115323c8394de7605d96ce0c7473739c1753b27 | [
"MIT"
] | null | null | null | src/writer.py | boconlonton/openpyxl-writer-sb | b115323c8394de7605d96ce0c7473739c1753b27 | [
"MIT"
] | null | null | null | from openpyxl import Workbook
class ExcelFile:
def __init__(self, name: str = 'user'):
self.wb = Workbook()
self.ws1 = self.wb.create_sheet('DATA')
self.ws2 = self.wb.create_sheet('PROVINCE')
self.ws2.sheet_properties.tabColor = "1072BA"
self.ws3 = self.wb.create_sheet('DI... | 41.676471 | 58 | 0.658433 | 178 | 1,417 | 5.05618 | 0.286517 | 0.08 | 0.146667 | 0.207778 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059246 | 0.213832 | 1,417 | 33 | 59 | 42.939394 | 0.748654 | 0 | 0 | 0 | 0 | 0 | 0.130558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.137931 | 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 |
b83f9252c5e29c622914508483ebda19f0459a82 | 4,840 | py | Python | src/handler.py | hmrc/aws-lambda-ec2-launch-checks | 94e98867d94d8a9fb7fb0af2712af5dc5c7f0f9a | [
"Apache-2.0"
] | 1 | 2021-06-15T10:33:26.000Z | 2021-06-15T10:33:26.000Z | src/handler.py | hmrc/aws-lambda-ec2-launch-checks | 94e98867d94d8a9fb7fb0af2712af5dc5c7f0f9a | [
"Apache-2.0"
] | 1 | 2021-07-29T08:44:43.000Z | 2021-07-29T08:44:43.000Z | src/handler.py | hmrc/aws-lambda-ec2-launch-checks | 94e98867d94d8a9fb7fb0af2712af5dc5c7f0f9a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import boto3
import json
import os
import requests
from aws_lambda_powertools import Logger
from botocore import exceptions
log_level = os.environ.get("LOG_LEVEL", "INFO")
logger = Logger(
service="aws-lambda-ec2-launch-checks",
level=log_level,
)
autoscaling_client = boto3.client(
... | 32.483221 | 100 | 0.680785 | 561 | 4,840 | 5.69697 | 0.28877 | 0.031289 | 0.030038 | 0.043805 | 0.211514 | 0.133605 | 0.094806 | 0.094806 | 0.04975 | 0.04975 | 0 | 0.0059 | 0.229545 | 4,840 | 148 | 101 | 32.702703 | 0.851167 | 0.037603 | 0 | 0.236842 | 0 | 0 | 0.294952 | 0.065091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0.087719 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b8410d9b1a511710c72e9d97a4574ed5ef3c5e35 | 855 | py | Python | src/embit/descriptor/base.py | stepansnigirev/krux | c0c90c3840a2baf617d0313b74f61619fbcd602a | [
"MIT"
] | null | null | null | src/embit/descriptor/base.py | stepansnigirev/krux | c0c90c3840a2baf617d0313b74f61619fbcd602a | [
"MIT"
] | null | null | null | src/embit/descriptor/base.py | stepansnigirev/krux | c0c90c3840a2baf617d0313b74f61619fbcd602a | [
"MIT"
] | null | null | null | try:
import uio as io
except ImportError:
import io
def read_until(s, chars=b",)(#"):
res = b""
chunk = b""
char = None
while True:
chunk = s.read(1)
if len(chunk) == 0:
return res, None
if chunk in chars:
return res, chunk
res += chunk
... | 20.357143 | 66 | 0.559064 | 107 | 855 | 4.308411 | 0.439252 | 0.058568 | 0.056399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00349 | 0.329825 | 855 | 41 | 67 | 20.853659 | 0.801047 | 0 | 0 | 0.151515 | 0 | 0 | 0.05614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.515152 | 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 |
b84ee38919079d31ceb82542cc48d4c410127a9c | 336 | py | Python | properties.py | AuthEceSoftEng/MiningSOAnswerEdits | 3353db1dabf592df5e4c569f6ebb6e1a752a4a24 | [
"Apache-2.0"
] | 1 | 2020-11-06T03:45:56.000Z | 2020-11-06T03:45:56.000Z | properties.py | AuthEceSoftEng/MiningSOAnswerEdits | 3353db1dabf592df5e4c569f6ebb6e1a752a4a24 | [
"Apache-2.0"
] | null | null | null | properties.py | AuthEceSoftEng/MiningSOAnswerEdits | 3353db1dabf592df5e4c569f6ebb6e1a752a4a24 | [
"Apache-2.0"
] | 2 | 2020-11-02T08:16:06.000Z | 2020-12-09T04:01:18.000Z | # DB settings
user = 'sotorrent'
password = 'password'
host = '127.0.0.1'
port = '3306'
database = 'sotorrent18_09'
# Data dump paths
data_dump_original_path = "/path/to/original/dump/"
data_dump_final_path = "/path/to/java/dump/"
data_path = "/path/to/data/"
sequence_extractor_path = "/path/to/SequenceExtr... | 25.846154 | 63 | 0.705357 | 49 | 336 | 4.632653 | 0.55102 | 0.140969 | 0.176211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055363 | 0.139881 | 336 | 12 | 64 | 28 | 0.730104 | 0.080357 | 0 | 0 | 0 | 0 | 0.455782 | 0.193878 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b84fc18c479bc01fefaab77e5d2d03f7f25a785e | 1,052 | py | Python | en-dncryption.py | mahmoud123hassan1/en-dncryption | ebbb759bbe1c59f5478dfbd02586185d914a961f | [
"Apache-2.0"
] | null | null | null | en-dncryption.py | mahmoud123hassan1/en-dncryption | ebbb759bbe1c59f5478dfbd02586185d914a961f | [
"Apache-2.0"
] | null | null | null | en-dncryption.py | mahmoud123hassan1/en-dncryption | ebbb759bbe1c59f5478dfbd02586185d914a961f | [
"Apache-2.0"
] | null | null | null | import os
os.system ('clear')
print ('welcome to rv en-dncryption')
print ''' \033[33m welcome wahit Hat islamic
Encrypt
Mahmoud Hassan
'''
print ''' \033[34m
+---------------------------------+
| [+] [+] |
| [+] Mahmoud Hassan [+... | 30.057143 | 67 | 0.419202 | 92 | 1,052 | 4.73913 | 0.456522 | 0.073395 | 0.06422 | 0.091743 | 0.243119 | 0.133028 | 0.133028 | 0 | 0 | 0 | 0 | 0.050926 | 0.38403 | 1,052 | 34 | 68 | 30.941176 | 0.621914 | 0 | 0 | 0.272727 | 0 | 0 | 0.589354 | 0.06654 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.212121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b850c2334e01dcb5fc4e26bd11b0ef7a1ce56a28 | 4,918 | py | Python | tika-similarity/solr_metadata_cluster.py | harshfatepuria/Scientific-Content-Enrichment-in-the-Text-Retrieval-Conference-TREC-Polar-Dynamic-Domain-Dataset | 0527c6358b555387934f566ac3947288c4c69901 | [
"Apache-2.0"
] | 1 | 2016-05-05T21:32:07.000Z | 2016-05-05T21:32:07.000Z | tika-similarity/solr_metadata_cluster.py | harshfatepuria/Scientific-Content-Enrichment-in-the-Text-Retrieval-Conference-TREC-Polar-Dynamic-Domain-Dataset | 0527c6358b555387934f566ac3947288c4c69901 | [
"Apache-2.0"
] | null | null | null | tika-similarity/solr_metadata_cluster.py | harshfatepuria/Scientific-Content-Enrichment-in-the-Text-Retrieval-Conference-TREC-Polar-Dynamic-Domain-Dataset | 0527c6358b555387934f566ac3947288c4c69901 | [
"Apache-2.0"
] | null | null | null | import urllib2
import json
from vector_ext import GeoVector, SweetVector, MeasurementVector, GrobidVector
import kmeans_ext
import argparse
def getJsonData(url):
data = urllib2.urlopen(url).read()
return json.loads(data)
def createVectors(json, vectorType):
vectors = []
for doc in json['response']['do... | 34.879433 | 125 | 0.575234 | 558 | 4,918 | 4.989247 | 0.261649 | 0.021552 | 0.03592 | 0.028736 | 0.198276 | 0.190014 | 0.190014 | 0.090517 | 0.031609 | 0 | 0 | 0.017807 | 0.280602 | 4,918 | 141 | 126 | 34.879433 | 0.769079 | 0.190728 | 0 | 0.021277 | 0 | 0.010638 | 0.156581 | 0.007564 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053191 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b850e6e2486c46a4353c8db18b64dcb1c7b0a302 | 742 | py | Python | python/selenium/four/booking/Filtrations.py | AgesX/JSX | c6f205a6b14926eccee180849ed40fed18835966 | [
"MIT"
] | null | null | null | python/selenium/four/booking/Filtrations.py | AgesX/JSX | c6f205a6b14926eccee180849ed40fed18835966 | [
"MIT"
] | null | null | null | python/selenium/four/booking/Filtrations.py | AgesX/JSX | c6f205a6b14926eccee180849ed40fed18835966 | [
"MIT"
] | null | null | null | from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webdriver import WebDriver
class BookingFiltration:
# constructor method
def __init__(self, driver: WebDriver):
self.driver = driver
def apply_star_rating(self, *star_vals):
star_box = self.driver.find_element(By.C... | 30.916667 | 115 | 0.690027 | 101 | 742 | 4.811881 | 0.455446 | 0.082305 | 0.080247 | 0.098765 | 0.1893 | 0.139918 | 0.139918 | 0 | 0 | 0 | 0 | 0 | 0.198113 | 742 | 23 | 116 | 32.26087 | 0.816807 | 0.051213 | 0 | 0 | 0 | 0 | 0.139168 | 0.111908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.461538 | 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 |
b856c2d813775e1947a76918325ff847bdce2ada | 11,898 | py | Python | client/commands/v2/tests/backend_arguments_test.py | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"MIT"
] | null | null | null | client/commands/v2/tests/backend_arguments_test.py | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"MIT"
] | 2 | 2021-08-21T07:50:23.000Z | 2022-02-27T21:33:33.000Z | client/commands/v2/tests/backend_arguments_test.py | PulkitMishra/pyre-check | 44a9707d4a43ec98ea1833ce42e36998e41bca68 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import tempfile
from pathlib import Path
import testslide
from .... import command_arguments, configuration
from ....tests import setup
from... | 40.195946 | 86 | 0.531098 | 1,006 | 11,898 | 5.982107 | 0.135189 | 0.073114 | 0.045862 | 0.024925 | 0.745929 | 0.70771 | 0.619309 | 0.571785 | 0.52991 | 0.513626 | 0 | 0.001831 | 0.357203 | 11,898 | 295 | 87 | 40.332203 | 0.785042 | 0.01412 | 0 | 0.505576 | 0 | 0 | 0.107719 | 0.007761 | 0 | 0 | 0 | 0 | 0.104089 | 1 | 0.052045 | false | 0 | 0.022305 | 0 | 0.078067 | 0 | 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 |
b8596b94544419243abd97078175846d8fd4e812 | 2,848 | py | Python | sudecode/sudecode.py | qubs/climate-data-auto-downloader | 850ba243892eb44ce2cd4c4467343fe857b490a8 | [
"Apache-2.0"
] | null | null | null | sudecode/sudecode.py | qubs/climate-data-auto-downloader | 850ba243892eb44ce2cd4c4467343fe857b490a8 | [
"Apache-2.0"
] | 2 | 2019-07-24T16:28:41.000Z | 2021-06-01T21:47:18.000Z | sudecode/sudecode.py | qubs/climate-data-auto-downloader | 850ba243892eb44ce2cd4c4467343fe857b490a8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
SATLINK_DATA_BUFFER_EMPTY = "SATLINK DATA BUFFER EMPTY"
def decode(encoded_message, bytes_per_value, num_sensors, num_readings):
message_start = 0
# Get to the beginning of the message proper.
while encoded_message[message_start] != "B":
message_st... | 33.904762 | 109 | 0.576545 | 364 | 2,848 | 4.277473 | 0.351648 | 0.057803 | 0.058446 | 0.042389 | 0.129737 | 0.080925 | 0.080925 | 0.080925 | 0.080925 | 0.080925 | 0 | 0.023367 | 0.338834 | 2,848 | 83 | 110 | 34.313253 | 0.803505 | 0.248244 | 0 | 0.173913 | 0 | 0 | 0.016925 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.065217 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b85dbd9af3c17923b3ecfe629fe94c3dc212d903 | 587 | py | Python | cellfinder_core/detect/filters/plane/classical_filter.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 5 | 2021-01-22T11:40:01.000Z | 2021-09-10T07:16:05.000Z | cellfinder_core/detect/filters/plane/classical_filter.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 38 | 2021-01-22T11:50:29.000Z | 2022-03-11T11:04:06.000Z | cellfinder_core/detect/filters/plane/classical_filter.py | npeschke/cellfinder-core | 7a86a7d2c879c94da529ec6140f7e5c3f02bf288 | [
"BSD-3-Clause"
] | 12 | 2021-06-18T09:57:24.000Z | 2022-03-06T13:03:18.000Z | import numpy as np
from scipy.ndimage.filters import gaussian_filter, laplace
from scipy.signal import medfilt2d
def enhance_peaks(img, clipping_value, gaussian_sigma=2.5):
type_in = img.dtype
filtered_img = medfilt2d(img.astype(np.float64))
filtered_img = gaussian_filter(filtered_img, gaussian_sigma)
... | 29.35 | 64 | 0.751278 | 83 | 587 | 5.060241 | 0.46988 | 0.314286 | 0.135714 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.168654 | 587 | 19 | 65 | 30.894737 | 0.844262 | 0.073254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 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 |
b86af4a95feb7410f9e58afaa873234d27e4db46 | 1,921 | py | Python | test/z_component_tests/test__lazy_dataframe.py | KIC/pandas_utils | 76b764e2f87c2e9bcee9a62cfe0b54e7fb046034 | [
"MIT"
] | 3 | 2019-12-05T11:56:26.000Z | 2021-08-07T08:06:37.000Z | test/z_component_tests/test__lazy_dataframe.py | KIC/pandas_utils | 76b764e2f87c2e9bcee9a62cfe0b54e7fb046034 | [
"MIT"
] | 6 | 2020-01-23T10:25:13.000Z | 2022-02-10T00:39:27.000Z | test/z_component_tests/test__lazy_dataframe.py | KIC/pandas_ml_utils | 76b764e2f87c2e9bcee9a62cfe0b54e7fb046034 | [
"MIT"
] | null | null | null | import logging
import unittest
import pandas as pd
from sklearn.neural_network import MLPClassifier
import pandas_ml_utils as pdu
from test.config import TEST_FILE
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
class LazyDataFrameTest(unittest.TestCase):
def test_fit_and_co(self):
"""give... | 29.553846 | 91 | 0.558563 | 233 | 1,921 | 4.450644 | 0.334764 | 0.046287 | 0.104147 | 0.023144 | 0.655738 | 0.655738 | 0.655738 | 0.655738 | 0.655738 | 0.655738 | 0 | 0.029784 | 0.300885 | 1,921 | 64 | 92 | 30.015625 | 0.742368 | 0.005726 | 0 | 0.347826 | 0 | 0 | 0.04521 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.195652 | 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 |
b873ed184445f189727342955f0bd2f3b924c3ab | 8,645 | py | Python | code/model/unet/old/unet.py | fegonda/icon_demo | d2d1b0148989187c1433597f9c3ae4357178c082 | [
"MIT"
] | null | null | null | code/model/unet/old/unet.py | fegonda/icon_demo | d2d1b0148989187c1433597f9c3ae4357178c082 | [
"MIT"
] | null | null | null | code/model/unet/old/unet.py | fegonda/icon_demo | d2d1b0148989187c1433597f9c3ae4357178c082 | [
"MIT"
] | null | null | null |
import os
import sys
base_path = os.path.dirname(__file__)
sys.path.insert(1,os.path.join(base_path, '../mlp'))
sys.path.insert(2,os.path.join(base_path, '../../common'))
sys.path.insert(3,os.path.join(base_path, '../../database'))
from db import DB
from paths import Paths
# yet another version of the IDSIA networ... | 36.020833 | 136 | 0.639098 | 1,151 | 8,645 | 4.622068 | 0.276281 | 0.028195 | 0.018797 | 0.021617 | 0.294925 | 0.250188 | 0.239098 | 0.221805 | 0.212218 | 0.183835 | 0 | 0.028211 | 0.257837 | 8,645 | 239 | 137 | 36.171548 | 0.800966 | 0.169346 | 0 | 0.183544 | 0 | 0 | 0.046333 | 0.00294 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.132911 | null | null | 0.088608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b87e6709420ba9750e64f14423a7f7769ddb2f8a | 1,149 | py | Python | wemeet/board/migrations/0001_initial.py | Ketan-Suthar/wemeet | 964d933de0e40dbf11256c612889d1aa54fe8377 | [
"MIT"
] | 2 | 2021-05-08T08:35:20.000Z | 2021-05-09T05:14:53.000Z | wemeet/board/migrations/0001_initial.py | Ketan-Suthar/wemeet | 964d933de0e40dbf11256c612889d1aa54fe8377 | [
"MIT"
] | null | null | null | wemeet/board/migrations/0001_initial.py | Ketan-Suthar/wemeet | 964d933de0e40dbf11256c612889d1aa54fe8377 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-06 11:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('glob... | 35.90625 | 123 | 0.629243 | 115 | 1,149 | 6.165217 | 0.565217 | 0.045134 | 0.059238 | 0.093089 | 0.234133 | 0.155148 | 0.155148 | 0.155148 | 0.155148 | 0.155148 | 0 | 0.048387 | 0.24456 | 1,149 | 31 | 124 | 37.064516 | 0.768433 | 0.039164 | 0 | 0 | 1 | 0 | 0.127949 | 0.040835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.291667 | 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 |
b8819d310b650c5d3d26b1b7c97ff8b038ecde83 | 495 | py | Python | tools/php2python.py | gravityrail/phply | 4781432f12aa8495e9f996d0d8528da5b1271617 | [
"BSD-3-Clause"
] | 202 | 2016-11-19T00:09:12.000Z | 2022-03-31T15:16:39.000Z | tools/php2python.py | gravityrail/phply | 4781432f12aa8495e9f996d0d8528da5b1271617 | [
"BSD-3-Clause"
] | 43 | 2016-11-07T21:21:05.000Z | 2021-03-08T09:16:56.000Z | tools/php2python.py | gravityrail/phply | 4781432f12aa8495e9f996d0d8528da5b1271617 | [
"BSD-3-Clause"
] | 47 | 2016-11-17T08:29:27.000Z | 2022-02-21T10:14:06.000Z | #!/usr/bin/env python
# php2python.py - Converts PHP to Python using unparse.py
# Usage: php2python.py < input.php > output.py
import sys
sys.path.append('..')
from phply.phplex import lexer
from phply.phpparse import make_parser
from phply import pythonast
from ast import Module
from unparse import Unparser
input... | 21.521739 | 59 | 0.749495 | 74 | 495 | 4.972973 | 0.5 | 0.07337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004751 | 0.149495 | 495 | 22 | 60 | 22.5 | 0.869359 | 0.244444 | 0 | 0 | 0 | 0 | 0.005391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 |
b88b6098806a790679f5333b4c951fe80240d7b2 | 657 | py | Python | oeeBackend/job_orders_data/admin.py | yamenmarquez/oee_django | b192ecab930aac0922599b6a8fadf7e92350e5a7 | [
"MIT"
] | null | null | null | oeeBackend/job_orders_data/admin.py | yamenmarquez/oee_django | b192ecab930aac0922599b6a8fadf7e92350e5a7 | [
"MIT"
] | null | null | null | oeeBackend/job_orders_data/admin.py | yamenmarquez/oee_django | b192ecab930aac0922599b6a8fadf7e92350e5a7 | [
"MIT"
] | 1 | 2018-09-13T22:36:55.000Z | 2018-09-13T22:36:55.000Z | from django.contrib import admin
from .models import JobOrderData
# Register your models here.
class JobOrderDataAdmin(admin.ModelAdmin):
list_display = ('id', 'job_order', 'shift', 'job_partial_status', 'packaged_qty',
'retention_samples_qty', 'reworked_qty', 'q_issues_qty', 'rejected_qty',
... | 50.538462 | 146 | 0.689498 | 71 | 657 | 6 | 0.676056 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 657 | 13 | 147 | 50.538462 | 0.80226 | 0.039574 | 0 | 0 | 0 | 0 | 0.444444 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.444444 | 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 |
b88c1bfa2657d704d6d3009bfae62863449580e7 | 4,875 | py | Python | python/dlxapi/models/balance_field_detail.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | python/dlxapi/models/balance_field_detail.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | 1 | 2020-08-20T17:31:43.000Z | 2020-08-20T17:31:43.000Z | python/dlxapi/models/balance_field_detail.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Decision Lens API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import... | 27.698864 | 119 | 0.58359 | 537 | 4,875 | 5.16946 | 0.216015 | 0.082133 | 0.103746 | 0.090778 | 0.379323 | 0.324568 | 0.307277 | 0.173991 | 0.064842 | 0.027378 | 0 | 0.014835 | 0.322462 | 4,875 | 175 | 120 | 27.857143 | 0.825613 | 0.298051 | 0 | 0.085366 | 1 | 0 | 0.039283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.04878 | 0 | 0.353659 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b88ccfb67b565c5547e79799c207ce4a910ca9b5 | 1,224 | py | Python | datasets/nhse_stats/transform.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | null | null | null | datasets/nhse_stats/transform.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 11 | 2015-03-02T16:30:20.000Z | 2016-11-29T12:16:15.000Z | datasets/nhse_stats/transform.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 2 | 2020-12-25T20:38:31.000Z | 2021-04-11T07:35:01.000Z | import hashlib
import os
import json
import ffs
from publish.lib.helpers import filename_for_resource, download_file
from publish.lib.upload import Uploader
def main(workspace):
DATA_DIR = ffs.Path(workspace) / 'data'
DATA_DIR.mkdir()
datasets = json.load(open(os.path.join(DATA_DIR, "metadata.json"), 'r... | 26.042553 | 76 | 0.584967 | 146 | 1,224 | 4.808219 | 0.458904 | 0.049858 | 0.039886 | 0.039886 | 0.094017 | 0.094017 | 0.094017 | 0.094017 | 0 | 0 | 0 | 0.002342 | 0.302288 | 1,224 | 46 | 77 | 26.608696 | 0.819672 | 0.028595 | 0 | 0 | 0 | 0 | 0.118787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.171429 | null | null | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b88f37579755da85bba5bd40019b65bfb2ee5993 | 243 | py | Python | app/schemas/user_serealize.py | Suspir0n/botTelegram | a37c7f06abc807a2f8221e1641e248e8989e3100 | [
"MIT"
] | null | null | null | app/schemas/user_serealize.py | Suspir0n/botTelegram | a37c7f06abc807a2f8221e1641e248e8989e3100 | [
"MIT"
] | null | null | null | app/schemas/user_serealize.py | Suspir0n/botTelegram | a37c7f06abc807a2f8221e1641e248e8989e3100 | [
"MIT"
] | null | null | null | from ..settings.config import ma
class UserSchema(ma.Schema):
class Meta:
fields = ('uid', 'active', 'deleted', 'createAt', 'updateAt', 'name', 'phone', 'chat_id')
user_schema = UserSchema()
users_schema = UserSchema(many=True) | 24.3 | 97 | 0.670782 | 29 | 243 | 5.517241 | 0.793103 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160494 | 243 | 10 | 98 | 24.3 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8912be5f1aa94fdf8e47f7f7f21c6fbd5b258af | 5,478 | py | Python | exercise002/vgrocery/view/confirmdialog.py | ViniciusMadureira/ifsp-oop2-exercise001 | c66727bfde82ee96b10b81a84f6b52bbcb62f68b | [
"CC0-1.0"
] | null | null | null | exercise002/vgrocery/view/confirmdialog.py | ViniciusMadureira/ifsp-oop2-exercise001 | c66727bfde82ee96b10b81a84f6b52bbcb62f68b | [
"CC0-1.0"
] | null | null | null | exercise002/vgrocery/view/confirmdialog.py | ViniciusMadureira/ifsp-oop2-exercise001 | c66727bfde82ee96b10b81a84f6b52bbcb62f68b | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'confirmdialog.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_dlgConfirm(object):
def setupUi(self, dlgConfirm):
... | 48.910714 | 134 | 0.707192 | 559 | 5,478 | 6.88551 | 0.291592 | 0.032736 | 0.022863 | 0.023902 | 0.314627 | 0.204209 | 0.151208 | 0.124708 | 0.115355 | 0.09457 | 0 | 0.030491 | 0.173786 | 5,478 | 111 | 135 | 49.351351 | 0.819929 | 0.034137 | 0 | 0.104167 | 1 | 0.020833 | 0.108062 | 0.019114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.03125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b893f8e63d2d54cdb82175349d4dd8271e56f6ac | 3,083 | py | Python | NNHedge/_utils/utils.py | guijinSON/NNHedge | 96ffb41abc1a02a3d2865bf239963c2afacae7cb | [
"Apache-2.0"
] | 16 | 2021-12-21T05:48:03.000Z | 2022-03-24T08:02:32.000Z | NNHedge/_utils/utils.py | guijinSON/NNHedge | 96ffb41abc1a02a3d2865bf239963c2afacae7cb | [
"Apache-2.0"
] | 1 | 2022-01-25T00:57:38.000Z | 2022-02-02T02:20:10.000Z | NNHedge/_utils/utils.py | guijinSON/NNHedge | 96ffb41abc1a02a3d2865bf239963c2afacae7cb | [
"Apache-2.0"
] | 3 | 2022-02-16T14:31:20.000Z | 2022-03-24T08:02:36.000Z | import torch
import numpy as np
import matplotlib.pyplot as plt
from .._instrunments.instrunments import geometric_brownian_motion, price_call_BS
from .data import generate_span_dataset
from .._train.dataloader import SpanDataset, get_dataloader
@torch.no_grad()
def plot_net_delta(model,train=False,epoch=None,PATH=... | 39.025316 | 99 | 0.655855 | 476 | 3,083 | 4.105042 | 0.304622 | 0.024565 | 0.024565 | 0.013818 | 0.250768 | 0.212897 | 0.212897 | 0.203685 | 0.203685 | 0.171443 | 0 | 0.052016 | 0.195589 | 3,083 | 78 | 100 | 39.525641 | 0.735887 | 0 | 0 | 0.208955 | 1 | 0 | 0.102173 | 0.021408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.089552 | 0.014925 | 0.238806 | 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 |
b89809b69222fe47038d3231eeac63f81be6d506 | 1,003 | py | Python | np/9_matplotlib/15_to_16_fill_between.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/9_matplotlib/15_to_16_fill_between.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/9_matplotlib/15_to_16_fill_between.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
Project : numpy
File Name : 15_to_16_fill_between
Author : Focus
Date : 8/24/2021 12:33 AM
Keywords : fill_between
Abstract :
Param :
Usage : py 15_to_16_fill_between
Reference :
"""
import pandas_datareader as pdr
import numpy as np
import matplotlib.pyplot as plt
from m... | 27.861111 | 99 | 0.72682 | 158 | 1,003 | 4.518987 | 0.506329 | 0.077031 | 0.079832 | 0.105042 | 0.215686 | 0.168067 | 0.168067 | 0.168067 | 0.168067 | 0.168067 | 0 | 0.050808 | 0.13659 | 1,003 | 35 | 100 | 28.657143 | 0.773672 | 0.220339 | 0 | 0 | 0 | 0 | 0.059432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.409091 | 0 | 0.409091 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b89dccfd59db1fb512497370187b454467e29c89 | 11,848 | py | Python | AlGDock/Integrators/SmartDarting/SmartDarting.py | CCBatIIT/AlGDock | 25c376e9d860d50696f5e20f1b107d289ec0903c | [
"MIT"
] | 15 | 2015-06-16T19:25:07.000Z | 2021-09-27T05:50:47.000Z | AlGDock/Integrators/SmartDarting/SmartDarting.py | biocheming/AlGDock | 25c376e9d860d50696f5e20f1b107d289ec0903c | [
"MIT"
] | 8 | 2015-05-06T21:05:09.000Z | 2022-03-11T09:51:45.000Z | AlGDock/Integrators/SmartDarting/SmartDarting.py | biocheming/AlGDock | 25c376e9d860d50696f5e20f1b107d289ec0903c | [
"MIT"
] | 23 | 2015-04-13T21:11:03.000Z | 2022-03-11T00:25:42.000Z | # This module implements a Smart Darting "integrator"
from MMTK import Configuration, Dynamics, Environment, Features, Trajectory, Units
import MMTK_dynamics
import numpy as np
R = 8.3144621*Units.J/Units.mol/Units.K
twoPi = 2*np.pi
#
# Smart Darting integrator
#
class SmartDartingIntegrator(Dynamics.Integrator):
... | 39.10231 | 133 | 0.657664 | 1,706 | 11,848 | 4.379836 | 0.155334 | 0.051526 | 0.018737 | 0.02409 | 0.351713 | 0.294968 | 0.205166 | 0.172778 | 0.153506 | 0.148688 | 0 | 0.011648 | 0.224679 | 11,848 | 303 | 134 | 39.10231 | 0.801764 | 0.146354 | 0 | 0.213636 | 0 | 0 | 0.031407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b89eb2e2d0b8f935494b3d406b4e41f78f56b717 | 594 | py | Python | bbb/tests/test_adc.py | jschornick/pybbb | 92b77abbccfccd673e02f84c1ae7915e34b3c906 | [
"MIT"
] | 1 | 2015-02-19T10:48:09.000Z | 2015-02-19T10:48:09.000Z | bbb/tests/test_adc.py | jschornick/pybbb | 92b77abbccfccd673e02f84c1ae7915e34b3c906 | [
"MIT"
] | null | null | null | bbb/tests/test_adc.py | jschornick/pybbb | 92b77abbccfccd673e02f84c1ae7915e34b3c906 | [
"MIT"
] | null | null | null | from unittest import TestCase, expectedFailure
from bbb import ADC
class TestADC(TestCase):
def test_init(self):
adc = ADC(0)
adc = ADC(0, repeat=3)
@expectedFailure
def test_init_with_source(self):
# can't test without mocking the filesystem due to glob
adc = ADC(0, sourc... | 25.826087 | 63 | 0.60101 | 74 | 594 | 4.743243 | 0.459459 | 0.102564 | 0.079772 | 0.25641 | 0.307692 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0.016908 | 0.30303 | 594 | 22 | 64 | 27 | 0.830918 | 0.089226 | 0 | 0.1875 | 0 | 0 | 0.011132 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.375 | 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 |
b8a223b26ea5ed2a993ea6d1b16075ab27268960 | 5,107 | py | Python | image_styler/__main__.py | james-mchugh/image-style-transfer | 1c48b25bb09deed4cd7c0869d493bfab91fc7d96 | [
"MIT"
] | null | null | null | image_styler/__main__.py | james-mchugh/image-style-transfer | 1c48b25bb09deed4cd7c0869d493bfab91fc7d96 | [
"MIT"
] | 4 | 2021-06-08T21:14:32.000Z | 2022-03-12T00:22:54.000Z | image_styler/__main__.py | james-mchugh/image-style-transfer | 1c48b25bb09deed4cd7c0869d493bfab91fc7d96 | [
"MIT"
] | null | null | null | """Generate a stylized image based on the provided images.
"""
# ----------------------------------------------------------------------
# imports
# ----------------------------------------------------------------------
# System level imports
import argparse
# Third party imports
import torch
# Local application im... | 42.206612 | 90 | 0.535539 | 514 | 5,107 | 5.171206 | 0.282101 | 0.054176 | 0.102333 | 0.036117 | 0.326561 | 0.235515 | 0.206923 | 0.163281 | 0.13243 | 0.13243 | 0 | 0.00058 | 0.324457 | 5,107 | 120 | 91 | 42.558333 | 0.769855 | 0.08224 | 0 | 0.075949 | 1 | 0 | 0.278313 | 0.00942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0.037975 | 0 | 0.050633 | 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 |
b8a5b2ef0a93ec67a01c6b1a8ff0ba84f3ef740a | 796 | py | Python | regtests/c++/let_styles.py | secureosv/pythia | 459f9e2bc0bb2da57e9fa8326697d9ef3386883a | [
"BSD-3-Clause"
] | 17 | 2015-12-13T23:11:31.000Z | 2020-07-19T00:40:18.000Z | regtests/c++/let_styles.py | secureosv/pythia | 459f9e2bc0bb2da57e9fa8326697d9ef3386883a | [
"BSD-3-Clause"
] | 8 | 2016-02-22T19:42:56.000Z | 2016-07-13T10:58:04.000Z | regtests/c++/let_styles.py | secureosv/pythia | 459f9e2bc0bb2da57e9fa8326697d9ef3386883a | [
"BSD-3-Clause"
] | 3 | 2016-04-11T20:34:31.000Z | 2021-03-12T10:33:02.000Z | '''
let syntax inspired by rust.
cdef syntax borrowed from cython.
'''
macro( NUM=100 ) ## becomes `#define NUM 100`
class Foo():
def __init__(self):
let self.data : [NUM]int
let Foos: []Foo
let TwentyFoos : [20]Foo
mycomp = []int()
twentyints = [20]int()
gFoo = Foo()
def main():
cdef int a=1
cdef int b=2... | 13.964912 | 46 | 0.646985 | 133 | 796 | 3.834586 | 0.338346 | 0.078431 | 0.031373 | 0.070588 | 0.098039 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0.053292 | 0.198492 | 796 | 56 | 47 | 14.214286 | 0.746082 | 0.030151 | 0 | 0.055556 | 0 | 0 | 0.032951 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8ac07e739851eea5351d136039ca3f45cb41f9f | 6,469 | py | Python | peeringdb_server/forms.py | CyberFlameGO/peeringdb | 83461deb58805fe1d83c5ff4276fa3bcb59a7323 | [
"BSD-2-Clause"
] | 224 | 2016-10-13T10:32:33.000Z | 2022-03-23T13:08:48.000Z | peeringdb_server/forms.py | CyberFlameGO/peeringdb | 83461deb58805fe1d83c5ff4276fa3bcb59a7323 | [
"BSD-2-Clause"
] | 1,063 | 2016-06-07T02:57:11.000Z | 2022-03-31T00:08:07.000Z | peeringdb_server/forms.py | CyberFlameGO/peeringdb | 83461deb58805fe1d83c5ff4276fa3bcb59a7323 | [
"BSD-2-Clause"
] | 92 | 2016-10-22T14:59:40.000Z | 2022-03-26T11:30:12.000Z | """
Custom django forms.
Note: This does not includes forms pointed directly
at the REST api to handle updates (such as /net, /ix, /fac or /org endpoints).
Look in rest.py and serializers.py for those.
"""
import os.path
import re
import uuid
import requests
from captcha.fields import CaptchaField
from captcha.mode... | 29.271493 | 85 | 0.608904 | 731 | 6,469 | 5.247606 | 0.294118 | 0.015641 | 0.046924 | 0.046924 | 0.085506 | 0.037539 | 0.019812 | 0 | 0 | 0 | 0 | 0.00353 | 0.299273 | 6,469 | 220 | 86 | 29.404545 | 0.842709 | 0.069099 | 0 | 0.1625 | 0 | 0 | 0.087883 | 0.006491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05625 | false | 0.0875 | 0.09375 | 0 | 0.41875 | 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 |
b8ac26255e38cacb750937586b6640369d9f9335 | 398 | py | Python | l5kit/l5kit/tests/evaluation/extract_ground_truth_test.py | xiaoxiaoheimei/l5kit | 1ea2f8cecfe7ad974419bf5c8519ab3a21300119 | [
"Apache-2.0"
] | 1 | 2021-12-04T17:48:53.000Z | 2021-12-04T17:48:53.000Z | l5kit/l5kit/tests/evaluation/extract_ground_truth_test.py | xiaoxiaoheimei/l5kit | 1ea2f8cecfe7ad974419bf5c8519ab3a21300119 | [
"Apache-2.0"
] | 1 | 2021-02-23T18:55:05.000Z | 2021-02-23T18:55:05.000Z | l5kit/l5kit/tests/evaluation/extract_ground_truth_test.py | xiaoxiaoheimei/l5kit | 1ea2f8cecfe7ad974419bf5c8519ab3a21300119 | [
"Apache-2.0"
] | 1 | 2020-12-07T22:40:54.000Z | 2020-12-07T22:40:54.000Z | from pathlib import Path
from l5kit.data import ChunkedDataset
from l5kit.evaluation import extract_ground_truth
def test_export_to_zarr(tmp_path: Path, zarr_dataset: ChunkedDataset) -> None:
tmp_path = tmp_path / "out.csv"
extract_ground_truth.export_zarr_to_csv(
zarr_dataset, str(tmp_path), future_... | 30.615385 | 86 | 0.778894 | 59 | 398 | 4.898305 | 0.559322 | 0.121107 | 0.124567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.148241 | 398 | 12 | 87 | 33.166667 | 0.834808 | 0 | 0 | 0 | 0 | 0 | 0.017588 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 |
b8b698861b2981902f68ebea240e391debd5a32c | 3,889 | py | Python | ppr-api/tests/unit/models/test_client_code.py | pwei1018/ppr | 1fdd2f1ad33217045404d7b872d9fad41a4c7da6 | [
"Apache-2.0"
] | null | null | null | ppr-api/tests/unit/models/test_client_code.py | pwei1018/ppr | 1fdd2f1ad33217045404d7b872d9fad41a4c7da6 | [
"Apache-2.0"
] | null | null | null | ppr-api/tests/unit/models/test_client_code.py | pwei1018/ppr | 1fdd2f1ad33217045404d7b872d9fad41a4c7da6 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2019 Province of British Columbia
#
# 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 agr... | 35.678899 | 95 | 0.653638 | 476 | 3,889 | 5.214286 | 0.321429 | 0.110798 | 0.072522 | 0.015713 | 0.357776 | 0.330782 | 0.265512 | 0.178888 | 0.178888 | 0.178888 | 0 | 0.018648 | 0.227822 | 3,889 | 108 | 96 | 36.009259 | 0.807526 | 0.270507 | 0 | 0.324324 | 0 | 0 | 0.230275 | 0.02392 | 0 | 0 | 0 | 0 | 0.405405 | 1 | 0.040541 | false | 0 | 0.027027 | 0 | 0.067568 | 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 |
b8bb0f6de45eba9d48459e47c6e4cc4fd3a6abc6 | 12,099 | py | Python | gitea_api/models/create_repo_option.py | awalker125/gitea-api | 2dea0493d4b6a92d6e63a7284afb2c80cbf35cf7 | [
"MIT"
] | null | null | null | gitea_api/models/create_repo_option.py | awalker125/gitea-api | 2dea0493d4b6a92d6e63a7284afb2c80cbf35cf7 | [
"MIT"
] | null | null | null | gitea_api/models/create_repo_option.py | awalker125/gitea-api | 2dea0493d4b6a92d6e63a7284afb2c80cbf35cf7 | [
"MIT"
] | 1 | 2022-01-27T14:12:40.000Z | 2022-01-27T14:12:40.000Z | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.15.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from gitea_api.configuration import Configuration
clas... | 29.224638 | 234 | 0.595917 | 1,353 | 12,099 | 5.205469 | 0.110865 | 0.069289 | 0.137441 | 0.121823 | 0.523215 | 0.433906 | 0.392162 | 0.280136 | 0.151498 | 0.030101 | 0 | 0.023723 | 0.317134 | 12,099 | 413 | 235 | 29.2954 | 0.828734 | 0.379205 | 0 | 0.08427 | 1 | 0 | 0.079596 | 0.003316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157303 | false | 0 | 0.022472 | 0 | 0.297753 | 0.011236 | 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 |
b8bb458b1bca67116eb6d7b2030b096e1414af65 | 589 | py | Python | python全栈/day43/day43-1 装饰器.py | Ringo-li/python_exercise_100 | 2c6c42b84a88ffbbac30c67ffbd7bad3418eda14 | [
"MIT"
] | null | null | null | python全栈/day43/day43-1 装饰器.py | Ringo-li/python_exercise_100 | 2c6c42b84a88ffbbac30c67ffbd7bad3418eda14 | [
"MIT"
] | null | null | null | python全栈/day43/day43-1 装饰器.py | Ringo-li/python_exercise_100 | 2c6c42b84a88ffbbac30c67ffbd7bad3418eda14 | [
"MIT"
] | null | null | null | # 装饰器作用:对已有函数进行额外功能扩展,本质上是一个闭包函数,也是一个函数嵌套
# 装饰器的执行时机:装饰器在加载代码时已经执行
# 装饰器特点:
# 1.不修改已有函数的源代码
# 2.不修改已有函数调用方式
# 3.给已有函数添加额外功能
def decorator(func): # 如果一个闭包函数有且仅有一个函数参数,那这个闭包函数称为装饰器
def inner():
# 在内部函数对已有函数进行调用
print("装饰器已经执行了") # 测试装饰器的执行时机:作为模块导入时,不用执行comment函数,装饰器在加载代码时已经执行
print("添加登录验证"... | 20.310345 | 74 | 0.714771 | 57 | 589 | 7.385965 | 0.631579 | 0.07601 | 0.109264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.169779 | 589 | 28 | 75 | 21.035714 | 0.848671 | 0.626486 | 0 | 0 | 0 | 0 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8bd296fe18cf3d83e350852ba70f69363815870 | 2,701 | py | Python | integration/driver/test.py | zimventures/libcloud | be0765df384f1baccde24539156119856cb96816 | [
"Apache-2.0"
] | 1,435 | 2015-01-07T05:32:51.000Z | 2022-03-25T19:39:34.000Z | integration/driver/test.py | zimventures/libcloud | be0765df384f1baccde24539156119856cb96816 | [
"Apache-2.0"
] | 1,158 | 2015-01-04T18:08:42.000Z | 2022-03-24T14:34:57.000Z | integration/driver/test.py | zimventures/libcloud | be0765df384f1baccde24539156119856cb96816 | [
"Apache-2.0"
] | 832 | 2015-01-05T09:20:21.000Z | 2022-03-24T19:22:19.000Z | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 35.077922 | 74 | 0.647538 | 327 | 2,701 | 5.235474 | 0.449541 | 0.035047 | 0.015187 | 0.018692 | 0.101636 | 0.101636 | 0 | 0 | 0 | 0 | 0 | 0.007511 | 0.260644 | 2,701 | 76 | 75 | 35.539474 | 0.849775 | 0.278415 | 0 | 0 | 0 | 0 | 0.079628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.042553 | 0.085106 | 0 | 0.531915 | 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 |
b8c3b26121c26e84ae988affe1cd82af8dd294d9 | 3,698 | py | Python | editer.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 5 | 2018-10-09T13:39:31.000Z | 2020-03-26T18:39:49.000Z | editer.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | editer.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 2 | 2018-10-09T13:39:36.000Z | 2018-10-09T23:18:39.000Z | ## {{{ http://code.activestate.com/recipes/578568/ (r1)
from Tkinter import *
from tkSimpleDialog import askstring
from tkFileDialog import asksaveasfilename
from tkMessageBox import askokcancel
class Quitter(Frame):
def __init__(self, parent=None):
Fr... | 40.637363 | 72 | 0.503515 | 378 | 3,698 | 4.812169 | 0.309524 | 0.08796 | 0.046179 | 0.028037 | 0.206157 | 0.101704 | 0.034085 | 0 | 0 | 0 | 0 | 0.008737 | 0.381017 | 3,698 | 91 | 73 | 40.637363 | 0.785933 | 0.024067 | 0 | 0.075949 | 0 | 0 | 0.034169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012658 | 0.050633 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8c44f9ee027e3785b07bad6d8bcbb55ad23ad28 | 1,540 | py | Python | forms_builder/forms/migrations/0007_files_migration.py | maqmigh/django-forms-builder | 1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98 | [
"BSD-2-Clause"
] | null | null | null | forms_builder/forms/migrations/0007_files_migration.py | maqmigh/django-forms-builder | 1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98 | [
"BSD-2-Clause"
] | null | null | null | forms_builder/forms/migrations/0007_files_migration.py | maqmigh/django-forms-builder | 1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-06 10:27
import os
from uuid import UUID
from django.db import migrations
from django.conf import settings
import os
from uuid import UUID
from django.conf import settings
from django.db import migrations
UPLOAD_ROOT = getattr(settings,"FORMS_BUILDER_UPLOAD_ROOT", None) or geta... | 28 | 130 | 0.583766 | 186 | 1,540 | 4.731183 | 0.44086 | 0.045455 | 0.027273 | 0.036364 | 0.186364 | 0.081818 | 0.081818 | 0.081818 | 0 | 0 | 0 | 0.019681 | 0.307143 | 1,540 | 54 | 131 | 28.518519 | 0.805061 | 0.050649 | 0 | 0.368421 | 1 | 0 | 0.089965 | 0.032526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.210526 | 0 | 0.315789 | 0.052632 | 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 |
b212306751359fcdbca6c6fd5de47049c6dbfe35 | 720 | py | Python | babiesManagerDjango/parents/views.py | FR98/uvg-web | 028dcf663f7a82998f974ad0e713c52952977637 | [
"MIT"
] | null | null | null | babiesManagerDjango/parents/views.py | FR98/uvg-web | 028dcf663f7a82998f974ad0e713c52952977637 | [
"MIT"
] | 5 | 2020-07-07T20:58:46.000Z | 2022-03-15T20:02:01.000Z | babiesManagerDjango/parents/views.py | FR98/uvg-web | 028dcf663f7a82998f974ad0e713c52952977637 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
from parents.models import Parent
from parents.serializers import ParentSerializer
from babies.serializers import BabySerializer
class ParentViewSet(viewse... | 25.714286 | 68 | 0.715278 | 81 | 720 | 6.283951 | 0.54321 | 0.047151 | 0.100196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 720 | 27 | 69 | 26.666667 | 0.877586 | 0 | 0 | 0 | 0 | 0 | 0.024011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b216d786d68f1777c859a9d225c3d7d90d9ace80 | 2,210 | py | Python | ITDCHelperModule.py | akalongman/sublimetext-itdchelper | c36c9ebdf4b05c02c846f32d2665734da4fa3661 | [
"MIT"
] | 1 | 2015-07-14T15:39:40.000Z | 2015-07-14T15:39:40.000Z | ITDCHelperModule.py | akalongman/sublimetext-itdchelper | c36c9ebdf4b05c02c846f32d2665734da4fa3661 | [
"MIT"
] | 3 | 2015-02-20T09:32:31.000Z | 2015-03-10T11:11:30.000Z | ITDCHelperModule.py | itdc/sublimetext-itdchelper | c36c9ebdf4b05c02c846f32d2665734da4fa3661 | [
"MIT"
] | null | null | null | # @package ITDCHelper
# @author Avtandil Kikabidze aka LONGMAN
# @copyright Copyright (c) 2008-2015, Avtandil Kikabidze (akalongman@gmail.com)
# @link http://long.ge
# @license http://opensource.org/licenses/mit-license.php The MIT License (MIT)
import sublime, sublime_plugin, os, re, sys
... | 29.864865 | 153 | 0.580543 | 264 | 2,210 | 4.715909 | 0.44697 | 0.048193 | 0.032129 | 0.019277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01433 | 0.273756 | 2,210 | 73 | 154 | 30.273973 | 0.761371 | 0.124434 | 0 | 0.122449 | 0 | 0 | 0.086618 | 0.012448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0.142857 | 0.040816 | 0 | 0.346939 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b21983758cf632fa68845a3082321f4b1e49b129 | 2,231 | py | Python | Script/DatabaseManager.py | biomathematicus/MathCurriculum | e558da75847f2e6e2ce0b3409a916c6a07ed557e | [
"CC0-1.0"
] | null | null | null | Script/DatabaseManager.py | biomathematicus/MathCurriculum | e558da75847f2e6e2ce0b3409a916c6a07ed557e | [
"CC0-1.0"
] | null | null | null | Script/DatabaseManager.py | biomathematicus/MathCurriculum | e558da75847f2e6e2ce0b3409a916c6a07ed557e | [
"CC0-1.0"
] | null | null | null | # Add path to the Class folder. All classes can now be imported directly
from sys import path
from os import getcwd
import sys
from networkx.drawing.layout import planar_layout
path.append(getcwd() + "/../Class")
from CurriculumDB import CurriculumDB
from CurriculumGraph import CurriculumGraph
# Load additional libr... | 40.563636 | 176 | 0.780368 | 334 | 2,231 | 5.107784 | 0.377246 | 0.089683 | 0.14068 | 0.154748 | 0.40973 | 0.387456 | 0.368699 | 0.330012 | 0.330012 | 0.209848 | 0 | 0.025549 | 0.122815 | 2,231 | 55 | 176 | 40.563636 | 0.846193 | 0.419095 | 0 | 0 | 0 | 0 | 0.412451 | 0.026459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.322581 | 0 | 0.322581 | 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 |
b21a7d8c18c838d2ae93f0a3ab7abcb9bcf4bc23 | 4,016 | py | Python | python/qicycling/vip.py | zimult/web_md | 851eb325260ba7e43e069906680ba68558bf6c47 | [
"Apache-2.0"
] | null | null | null | python/qicycling/vip.py | zimult/web_md | 851eb325260ba7e43e069906680ba68558bf6c47 | [
"Apache-2.0"
] | null | null | null | python/qicycling/vip.py | zimult/web_md | 851eb325260ba7e43e069906680ba68558bf6c47 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
# encoding:utf-8
import requests
import json
from bs4 import BeautifulSoup
from bs4 import NavigableString
import config
import db
import os
from PIL import Image
import sys
import cStringIO, urllib2
import time
import sync
import traceback
from fn import log, db_app, db_wp
from urllib import quote... | 31.873016 | 151 | 0.615538 | 544 | 4,016 | 4.345588 | 0.272059 | 0.064721 | 0.047377 | 0.053299 | 0.318105 | 0.265651 | 0.22335 | 0.22335 | 0.197124 | 0.159052 | 0 | 0.008403 | 0.259213 | 4,016 | 126 | 152 | 31.873016 | 0.786218 | 0.176295 | 0 | 0.05 | 0 | 0.05 | 0.24368 | 0.006397 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.0375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b220883512fbf262f57fd56f922fcf3d7a324ec9 | 1,263 | py | Python | convert-stdout-to-csv.py | suryabhupa/rllabplusplus | e1c83881d88204c74bd6dac56eb37c10599153f7 | [
"MIT"
] | null | null | null | convert-stdout-to-csv.py | suryabhupa/rllabplusplus | e1c83881d88204c74bd6dac56eb37c10599153f7 | [
"MIT"
] | null | null | null | convert-stdout-to-csv.py | suryabhupa/rllabplusplus | e1c83881d88204c74bd6dac56eb37c10599153f7 | [
"MIT"
] | null | null | null | import os
import sys
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib import colors as mcolors
import argparse
import glob
import numpy as np
import seaborn as sns
import scipy
from scipy.signal import savgol_filter
# Convert the nasty stdout files to CSV files
def main(fnames)... | 27.456522 | 91 | 0.625495 | 168 | 1,263 | 4.636905 | 0.5 | 0.041078 | 0.025674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003151 | 0.246239 | 1,263 | 45 | 92 | 28.066667 | 0.815126 | 0.08947 | 0 | 0 | 0 | 0 | 0.131878 | 0.021834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.030303 | 0.333333 | 0 | 0.363636 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b22782986284df5ff40ec96b6cbc541295c5f3aa | 552 | py | Python | hwilib/devices/trezorlib/messages/DebugLinkLog.py | tomatoskittles/HWI | ccb55228a80725ff85b96d55874acc688320b30b | [
"MIT"
] | 9 | 2019-04-23T01:10:28.000Z | 2022-02-21T02:25:06.000Z | hwilib/devices/trezorlib/messages/DebugLinkLog.py | tomatoskittles/HWI | ccb55228a80725ff85b96d55874acc688320b30b | [
"MIT"
] | 2 | 2020-07-27T10:05:36.000Z | 2020-12-01T11:46:20.000Z | hwilib/devices/trezorlib/messages/DebugLinkLog.py | tomatoskittles/HWI | ccb55228a80725ff85b96d55874acc688320b30b | [
"MIT"
] | 2 | 2020-02-17T15:32:29.000Z | 2020-06-18T15:13:16.000Z | # Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
class DebugLinkLog(p.MessageType):
MESSAGE_WIRE_TYPE = 104
def __init__(
self,
level: int = None,
bucket: str = None,
text: str = None,
) -> None:
self.level = level
self.bucket = bu... | 21.230769 | 44 | 0.528986 | 62 | 552 | 4.596774 | 0.612903 | 0.063158 | 0.091228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.355072 | 552 | 25 | 45 | 22.08 | 0.772472 | 0.074275 | 0 | 0 | 1 | 0 | 0.029528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0.052632 | 0.315789 | 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 |
b22abcab1b09814d3d173ede6d8604dd9962ed87 | 161 | py | Python | Mundo 2/ex048 Soma impares e multiplos de 3.py | AbelRapha/Python-Exercicios-CeV | 17e7055c982c8a1224992602ece50bae8eeee365 | [
"MIT"
] | null | null | null | Mundo 2/ex048 Soma impares e multiplos de 3.py | AbelRapha/Python-Exercicios-CeV | 17e7055c982c8a1224992602ece50bae8eeee365 | [
"MIT"
] | null | null | null | Mundo 2/ex048 Soma impares e multiplos de 3.py | AbelRapha/Python-Exercicios-CeV | 17e7055c982c8a1224992602ece50bae8eeee365 | [
"MIT"
] | null | null | null | impar = [count if count%3 ==0 else 0 for count in range(1,501,2)]
impar = list(filter(lambda a: a != 0, impar))
soma = sum(impar)
print(soma)
print(len(impar)) | 23 | 65 | 0.664596 | 31 | 161 | 3.451613 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.161491 | 161 | 7 | 66 | 23 | 0.725926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b22bf3a6e7f122979a7cad965f66eef2769da2c6 | 728 | py | Python | src/main.py | Florian201985/GGGC | b27b7386ce3df0be63fa977a3785e14761574a92 | [
"MIT"
] | null | null | null | src/main.py | Florian201985/GGGC | b27b7386ce3df0be63fa977a3785e14761574a92 | [
"MIT"
] | null | null | null | src/main.py | Florian201985/GGGC | b27b7386ce3df0be63fa977a3785e14761574a92 | [
"MIT"
] | null | null | null | from src import Parameter, Import
from src.Export import Export
from src.Flank import Flank
from src.Gear import Gear
control_file = Import.read_ini()
control_file_data = Import.read_ste(control_file)
z = control_file_data["number of teeth"]
mn = control_file_data["normal module"]
beta = control_file_data["helix angl... | 30.333333 | 72 | 0.791209 | 115 | 728 | 4.773913 | 0.278261 | 0.160291 | 0.163934 | 0.114754 | 0.123862 | 0.123862 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10989 | 728 | 23 | 73 | 31.652174 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0.126547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b22c567beacf3d25b15e01a920620e204e577fd1 | 892 | py | Python | setup.py | flyinactor91/avwx-api-core | bab9a5f4353d6aa6593ad9302934974e70c46ea9 | [
"MIT"
] | null | null | null | setup.py | flyinactor91/avwx-api-core | bab9a5f4353d6aa6593ad9302934974e70c46ea9 | [
"MIT"
] | null | null | null | setup.py | flyinactor91/avwx-api-core | bab9a5f4353d6aa6593ad9302934974e70c46ea9 | [
"MIT"
] | null | null | null | """
avwx_api_core Package Setup
"""
from setuptools import setup, find_namespace_packages
setup(
name="avwx-api-core",
version="0.1.0",
description="Core components for AVWX APIs",
url="https://github.com/avwx-rest/avwx-api-core",
author="Michael duPont",
author_email="michael@dupont.dev",
... | 26.235294 | 65 | 0.607623 | 112 | 892 | 4.705357 | 0.5625 | 0.066414 | 0.104364 | 0.068311 | 0.083491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041018 | 0.207399 | 892 | 33 | 66 | 27.030303 | 0.704385 | 0.030269 | 0 | 0.074074 | 0 | 0 | 0.449242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 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 |
b22c8d5d0ca16e2aefc064fe989dbf9afdf15ef4 | 3,137 | py | Python | tests/test_imputation/test_missing_indicator.py | noahjgreen295/feature_engine | 77248ade812f03bb1b9c0c129320f0c0baad61ed | [
"BSD-3-Clause"
] | 1 | 2021-12-17T21:54:47.000Z | 2021-12-17T21:54:47.000Z | tests/test_imputation/test_missing_indicator.py | noahjgreen295/feature_engine | 77248ade812f03bb1b9c0c129320f0c0baad61ed | [
"BSD-3-Clause"
] | 6 | 2021-12-08T12:41:19.000Z | 2021-12-22T23:34:39.000Z | tests/test_imputation/test_missing_indicator.py | noahjgreen295/feature_engine | 77248ade812f03bb1b9c0c129320f0c0baad61ed | [
"BSD-3-Clause"
] | null | null | null | import pytest
from feature_engine.imputation import AddMissingIndicator
def test_detect_variables_with_missing_data_when_variables_is_none(df_na):
# test case 1: automatically detect variables with missing data
imputer = AddMissingIndicator(missing_only=True, variables=None)
X_transformed = imputer.fit_t... | 36.905882 | 86 | 0.730316 | 428 | 3,137 | 5.018692 | 0.182243 | 0.094972 | 0.062849 | 0.075419 | 0.72067 | 0.629423 | 0.509777 | 0.460428 | 0.393389 | 0.364991 | 0 | 0.008321 | 0.157157 | 3,137 | 84 | 87 | 37.345238 | 0.804085 | 0.032515 | 0 | 0.293103 | 0 | 0 | 0.067987 | 0 | 0 | 0 | 0 | 0 | 0.465517 | 1 | 0.103448 | false | 0 | 0.034483 | 0 | 0.137931 | 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 |
b22e890d56215b907ef7d8993b030fd78a7d2d93 | 1,053 | py | Python | src/wq/core/cli.py | agaldemas/ngsi-timeseries-api | 0ef1e2dae2e22e8b033b0d7f92f57825c1f15bc1 | [
"MIT"
] | 25 | 2017-07-14T15:16:10.000Z | 2020-10-23T19:04:11.000Z | src/wq/core/cli.py | agaldemas/ngsi-timeseries-api | 0ef1e2dae2e22e8b033b0d7f92f57825c1f15bc1 | [
"MIT"
] | 346 | 2017-07-14T09:13:29.000Z | 2021-02-02T11:54:03.000Z | src/wq/core/cli.py | agaldemas/ngsi-timeseries-api | 0ef1e2dae2e22e8b033b0d7f92f57825c1f15bc1 | [
"MIT"
] | 76 | 2017-08-24T12:11:47.000Z | 2021-02-02T05:28:43.000Z | """
CLI for the QuantumLeap work queue.
"""
import click
from wq.core.rts import start
@click.group()
def main():
"""QuantumLeap Work Queue."""
pass
@main.command()
@click.option('--workers', '-w', type=int, default=None,
help='How many worker processes to service the queues.')
@click.option(... | 35.1 | 75 | 0.663818 | 144 | 1,053 | 4.763889 | 0.506944 | 0.06414 | 0.065598 | 0.052478 | 0.12828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207028 | 1,053 | 29 | 76 | 36.310345 | 0.821557 | 0.091168 | 0 | 0 | 0 | 0 | 0.356763 | 0.023429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b23230c43dfd929e0c6202cab3dc96b3bdaba8db | 263 | py | Python | flask_pg_extras/queries/table_est_row_count.py | karmingc/flask-pg-extras | 4a3c386324d4290feae95332e31557b3ef4b582f | [
"MIT"
] | 31 | 2020-08-11T16:59:59.000Z | 2022-03-19T20:25:54.000Z | flask_pg_extras/queries/table_est_row_count.py | karmingc/flask-pg-extras | 4a3c386324d4290feae95332e31557b3ef4b582f | [
"MIT"
] | 1 | 2022-03-24T18:06:11.000Z | 2022-03-28T23:53:53.000Z | flask_pg_extras/queries/table_est_row_count.py | karmingc/flask-pg-extras | 4a3c386324d4290feae95332e31557b3ef4b582f | [
"MIT"
] | 5 | 2020-08-17T21:44:25.000Z | 2022-03-24T15:06:10.000Z | from flask_pg_extras import db_execute_results
def query(db):
q = """
SELECT
relname AS name,
n_live_tup AS estimated_count
FROM
pg_stat_user_tables
ORDER BY
n_live_tup DESC;
"""
return db_execute_results(db, q)
| 16.4375 | 46 | 0.65019 | 39 | 263 | 4.025641 | 0.692308 | 0.11465 | 0.203822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292776 | 263 | 15 | 47 | 17.533333 | 0.844086 | 0 | 0 | 0 | 0 | 0 | 0.555133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 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 |
b234039de88c81cfc2a22bd2194eb43cb69cfdf0 | 398 | py | Python | tests/misc/save_test.py | VesnaBrucoms/ini-handler | 823a9567b503f8678495508863614ca59af9cdd4 | [
"MIT"
] | 1 | 2017-08-25T15:13:17.000Z | 2017-08-25T15:13:17.000Z | tests/misc/save_test.py | VesnaBrucoms/ini-handler | 823a9567b503f8678495508863614ca59af9cdd4 | [
"MIT"
] | null | null | null | tests/misc/save_test.py | VesnaBrucoms/ini-handler | 823a9567b503f8678495508863614ca59af9cdd4 | [
"MIT"
] | 1 | 2019-02-03T11:20:03.000Z | 2019-02-03T11:20:03.000Z | from ini_handler.vbini import Ini
if __name__ == '__main__':
ini_file = Ini()
ini_file['test'] = 'at top of file'
ini_file['set1'] = ['newSection', 'in newSection']
ini_file['set2'] = ('newSection', 'also newSection')
ini_file['bob'] = ['wizards', True]
ini_file['will'] = ['wizards', False]
... | 28.428571 | 56 | 0.635678 | 52 | 398 | 4.480769 | 0.519231 | 0.270386 | 0.145923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.190955 | 398 | 13 | 57 | 30.615385 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0.258794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 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 |
b235176c76c2396c9586b45a8546badf8213defa | 3,371 | py | Python | demo/apps/apijson_demo/dbinit.py | zhangchunlin/uliweb-apijson | 39a1c38045ae55d72f85f6e9e97f18af066b92cd | [
"BSD-3-Clause"
] | 103 | 2018-12-06T03:12:44.000Z | 2022-03-04T10:13:05.000Z | demo/apps/apijson_demo/dbinit.py | APIJSON/APIJSON-Python | 0fab1f3579610fb2d07e244099427429982c4c5f | [
"BSD-3-Clause"
] | 9 | 2019-04-26T07:57:18.000Z | 2021-12-07T08:46:47.000Z | demo/apps/apijson_demo/dbinit.py | zhangchunlin/uliweb-apijson | 39a1c38045ae55d72f85f6e9e97f18af066b92cd | [
"BSD-3-Clause"
] | 17 | 2018-12-06T03:12:49.000Z | 2022-01-20T10:10:56.000Z | #coding=utf-8
from uliweb import models
from uliweb.orm import set_dispatch_send
set_dispatch_send(False)
User = models.user
Privacy = models.privacy
Comment = models.comment
Moment = models.moment
user_list = [
{
"username": "admin",
"nickname": "Administrator",
"email": "admin@localhost... | 23.907801 | 68 | 0.498368 | 362 | 3,371 | 4.538674 | 0.226519 | 0.065733 | 0.025563 | 0.059647 | 0.296409 | 0.268411 | 0.213634 | 0.195983 | 0.195983 | 0.195983 | 0 | 0.043365 | 0.31593 | 3,371 | 140 | 69 | 24.078571 | 0.669124 | 0.00356 | 0 | 0.25 | 0 | 0 | 0.346635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054688 | 0.015625 | 0 | 0.015625 | 0.054688 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b236496a678006c0138c4bf96e6c0f8ceaa256b5 | 1,065 | py | Python | hypha/apply/users/migrations/0014_usersettings.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 20 | 2021-04-08T16:38:49.000Z | 2022-02-09T20:05:57.000Z | hypha/apply/users/migrations/0014_usersettings.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 1,098 | 2017-12-15T11:23:03.000Z | 2020-01-24T07:58:07.000Z | hypha/apply/users/migrations/0014_usersettings.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 17 | 2020-02-07T14:55:54.000Z | 2021-04-04T19:32:38.000Z | # Generated by Django 2.2.16 on 2020-09-16 09:36
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0045_assign_unlock_grouppagepermission'),
('users', '0013_add_approver_gr... | 35.5 | 131 | 0.618779 | 109 | 1,065 | 5.899083 | 0.633028 | 0.037325 | 0.043546 | 0.068429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034005 | 0.25446 | 1,065 | 29 | 132 | 36.724138 | 0.775819 | 0.043192 | 0 | 0 | 1 | 0 | 0.205506 | 0.05998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.26087 | 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 |
b23b19863d087e022d2383f885c451bcc814da9d | 5,840 | py | Python | tests/test_table_name.py | slicen/flask-sqlalchemy | f2af89736f799329b2f587129ae78e28b809f9ab | [
"BSD-3-Clause"
] | 1 | 2022-02-17T20:01:01.000Z | 2022-02-17T20:01:01.000Z | tests/test_table_name.py | kvesteri/flask-sqlalchemy | 222059e200e6b2e3b0ac57028b08290a648ae8ea | [
"BSD-3-Clause"
] | null | null | null | tests/test_table_name.py | kvesteri/flask-sqlalchemy | 222059e200e6b2e3b0ac57028b08290a648ae8ea | [
"BSD-3-Clause"
] | null | null | null | import inspect
import pytest
from sqlalchemy.exc import ArgumentError
from sqlalchemy.ext.declarative import declared_attr
def test_name(db):
class FOOBar(db.Model):
id = db.Column(db.Integer, primary_key=True)
class BazBar(db.Model):
id = db.Column(db.Integer, primary_key=True)
class H... | 25.840708 | 82 | 0.653938 | 760 | 5,840 | 4.719737 | 0.210526 | 0.066908 | 0.052969 | 0.056872 | 0.334541 | 0.303039 | 0.230555 | 0.230555 | 0.199888 | 0.190131 | 0 | 0.001812 | 0.244178 | 5,840 | 225 | 83 | 25.955556 | 0.810829 | 0.159075 | 0 | 0.328125 | 0 | 0 | 0.062111 | 0.004362 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.148438 | false | 0.054688 | 0.03125 | 0.023438 | 0.648438 | 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 |
b247f8e14e2309e2d91e68f0aa84caff40ea95b9 | 1,530 | py | Python | pengaduan/migrations/0003_auto_20200607_1639.py | Ekhel/WHISTLEBLOWER | 6cde13425165eeaa1601b00038664b977f16e61c | [
"MIT"
] | null | null | null | pengaduan/migrations/0003_auto_20200607_1639.py | Ekhel/WHISTLEBLOWER | 6cde13425165eeaa1601b00038664b977f16e61c | [
"MIT"
] | 7 | 2020-06-05T23:46:33.000Z | 2021-09-22T18:59:39.000Z | pengaduan/migrations/0003_auto_20200607_1639.py | jayapura-dev/backend-whistleblower | e6f0f6ae8aa837f90ce9406c5f68b045d137a3f2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-06-07 07:39
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('pengaduan', '0002_kategori'),
]
operations = [
migrations.AlterField(
model_name='kat... | 40.263158 | 118 | 0.594771 | 158 | 1,530 | 5.639241 | 0.487342 | 0.070707 | 0.10101 | 0.13468 | 0.215488 | 0.215488 | 0.215488 | 0.215488 | 0.215488 | 0.215488 | 0 | 0.031802 | 0.260131 | 1,530 | 37 | 119 | 41.351351 | 0.7553 | 0.028105 | 0 | 0.064516 | 1 | 0 | 0.138721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.193548 | 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 |
b24917182803cb94dd1e347f8d328c0dcd242113 | 2,559 | py | Python | sisosig/cli.py | jo-tham/sisosig | 8dcabe99f9ef114bb00e1e28ae9301a32fa5ee01 | [
"Apache-2.0"
] | null | null | null | sisosig/cli.py | jo-tham/sisosig | 8dcabe99f9ef114bb00e1e28ae9301a32fa5ee01 | [
"Apache-2.0"
] | null | null | null | sisosig/cli.py | jo-tham/sisosig | 8dcabe99f9ef114bb00e1e28ae9301a32fa5ee01 | [
"Apache-2.0"
] | null | null | null | # TODO: tabular (lat, long, date, nDayForecast, observation)
# for a bounding box
# benchmark writing single results to db with as_completed
# benchmark writing to db as callback
import os
import json
import click
from pymongo import MongoClient
from pymongo.errors import ConnectionFailure
from .sisosig import Darksky... | 34.581081 | 76 | 0.637358 | 328 | 2,559 | 4.856707 | 0.378049 | 0.069052 | 0.043942 | 0.022599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0045 | 0.218445 | 2,559 | 73 | 77 | 35.054795 | 0.792 | 0.093396 | 0 | 0 | 0 | 0 | 0.240693 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.035088 | false | 0.017544 | 0.105263 | 0 | 0.140351 | 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 |
b24965314e157b4d627648d7eb6cd8af7cc74eae | 7,690 | py | Python | yices/Yices.py | SRI-CSL/yices2_python_bindings | ff48993b6f620605afce12741f9afede94238627 | [
"MIT"
] | 8 | 2018-09-19T00:42:45.000Z | 2022-03-25T12:22:01.000Z | yices/Yices.py | SRI-CSL/yices2_python_bindings | ff48993b6f620605afce12741f9afede94238627 | [
"MIT"
] | 4 | 2020-06-05T21:44:14.000Z | 2021-12-06T17:24:31.000Z | yices/Yices.py | SRI-CSL/yices2_python_bindings | ff48993b6f620605afce12741f9afede94238627 | [
"MIT"
] | 3 | 2020-07-10T18:15:01.000Z | 2020-12-16T09:50:02.000Z | """Yices is the top level interface with the yices library."""
import yices_api as yapi
from .Profiler import Profiler, profile
class Yices:
"""A thin wrapper to the yices_api class used for things like profiling."""
version = yapi.yices_version
build_arch = yapi.yices_build_arch
build_mode = ... | 28.587361 | 121 | 0.642003 | 979 | 7,690 | 4.875383 | 0.213483 | 0.079195 | 0.097423 | 0.010266 | 0.447517 | 0.344437 | 0.27907 | 0.244291 | 0.20616 | 0.179761 | 0 | 0.00432 | 0.247464 | 7,690 | 268 | 122 | 28.69403 | 0.82046 | 0.311313 | 0 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.253333 | false | 0 | 0.013333 | 0.013333 | 0.506667 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b24f086cd9f0810b172f7f76df21a85d11f6bf16 | 550 | py | Python | Python/py_omniORB/example1.py | egustafson/sandbox | 9804e966347b33558b0497a04edb1a591d2d7773 | [
"Apache-2.0"
] | 2 | 2019-09-27T21:25:26.000Z | 2019-12-29T11:26:54.000Z | Python/py_omniORB/example1.py | egustafson/sandbox | 9804e966347b33558b0497a04edb1a591d2d7773 | [
"Apache-2.0"
] | 7 | 2020-08-11T17:32:14.000Z | 2020-08-11T17:32:39.000Z | Python/py_omniORB/example1.py | egustafson/sandbox | 9804e966347b33558b0497a04edb1a591d2d7773 | [
"Apache-2.0"
] | 2 | 2016-07-18T10:55:50.000Z | 2020-08-19T01:46:08.000Z | #!/usr/bin/env python
import sys
from omniORB import CORBA, PortableServer
import Example, Example__POA
class Echo_i (Example__POA.Echo):
def echoString(self, mesg):
print "echoString() called with message:", mesg
return mesg
orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
poa = orb.resolve_initial_... | 22 | 61 | 0.716364 | 77 | 550 | 4.935065 | 0.571429 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158182 | 550 | 24 | 62 | 22.916667 | 0.820734 | 0.036364 | 0 | 0 | 0 | 0 | 0.149338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b24f6d97e04c212686e908fc3fca4d6f104185c4 | 814 | py | Python | audio_handler/serializers.py | ankaisen/django-example-audio-handler | 06016ab63e407b88647894a98f1a27646c415ee4 | [
"MIT"
] | null | null | null | audio_handler/serializers.py | ankaisen/django-example-audio-handler | 06016ab63e407b88647894a98f1a27646c415ee4 | [
"MIT"
] | null | null | null | audio_handler/serializers.py | ankaisen/django-example-audio-handler | 06016ab63e407b88647894a98f1a27646c415ee4 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import User, Phrase, Audio
from .utils import get_mime_type
from django.conf import settings
from .tasks import audio_convert_task
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['id', 'uuid']
class PhraseSer... | 29.071429 | 104 | 0.684275 | 97 | 814 | 5.628866 | 0.463918 | 0.142857 | 0.076923 | 0.128205 | 0.14652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228501 | 814 | 27 | 105 | 30.148148 | 0.869427 | 0 | 0 | 0.227273 | 0 | 0 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.590909 | 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 |
b251ec1a4ee4a2695fdb01f3fde263320c25b371 | 1,249 | py | Python | mlkernels/kernels/posterior.py | vishalbelsare/mlkernels | a682de952cc35c123e4a4b177eaaee60da25e52e | [
"MIT"
] | 5 | 2021-02-25T21:46:00.000Z | 2021-08-21T12:22:37.000Z | mlkernels/kernels/posterior.py | vishalbelsare/mlkernels | a682de952cc35c123e4a4b177eaaee60da25e52e | [
"MIT"
] | 2 | 2021-06-01T14:10:07.000Z | 2021-10-02T16:53:31.000Z | mlkernels/kernels/posterior.py | vishalbelsare/mlkernels | a682de952cc35c123e4a4b177eaaee60da25e52e | [
"MIT"
] | 3 | 2021-06-08T13:30:31.000Z | 2021-08-21T12:23:06.000Z | import lab as B
from matrix import AbstractMatrix
from plum import convert
from . import _dispatch
from .. import Kernel
__all__ = ["PosteriorKernel"]
class PosteriorKernel(Kernel):
"""Posterior kernel.
Args:
k_ij (:class:`.kernel.Kernel`): Kernel between processes corresponding to the
... | 29.738095 | 85 | 0.648519 | 202 | 1,249 | 3.816832 | 0.242574 | 0.02594 | 0.020752 | 0.089494 | 0.407263 | 0.342412 | 0.342412 | 0.291829 | 0.291829 | 0.217899 | 0 | 0.001045 | 0.233787 | 1,249 | 41 | 86 | 30.463415 | 0.804598 | 0.393114 | 0 | 0.1 | 0 | 0 | 0.021097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0.05 | 0.55 | 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 |
b25e3c25f9e9f8dc5dfdd172fe219a9a736a77ee | 606 | py | Python | demo.py | garhwalinauna/docopt_demo | d496758dc10b29e2346fa01f34bb086a5fea0cd0 | [
"MIT"
] | null | null | null | demo.py | garhwalinauna/docopt_demo | d496758dc10b29e2346fa01f34bb086a5fea0cd0 | [
"MIT"
] | null | null | null | demo.py | garhwalinauna/docopt_demo | d496758dc10b29e2346fa01f34bb086a5fea0cd0 | [
"MIT"
] | null | null | null | # author: Rohit Rawat
# date: 2021-11-18
"""This script prints out docopt args.
Usage: demo.py <arg1> [<arg4>] --arg2=<arg2> [--arg3=<arg3>]
Options:
<arg1> Takes any value (this is a required positional argument)
--arg2=<arg2> Takes any value (this is a required option)
[--arg3=<arg3>] Takes any... | 24.24 | 75 | 0.641914 | 86 | 606 | 4.383721 | 0.5 | 0.084881 | 0.137931 | 0.180371 | 0.251989 | 0.201592 | 0.148541 | 0 | 0 | 0 | 0 | 0.044118 | 0.214521 | 606 | 24 | 76 | 25.25 | 0.747899 | 0.69967 | 0 | 0 | 0 | 0 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.375 | 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 |
b25e49246a2fda268291597144aed3f211c2f271 | 582 | py | Python | tests/admin_views/forms.py | ni-ning/django | 2e7ba6057cfc82a15a22b6021cd60cf307152e2d | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 61,676 | 2015-01-01T00:05:13.000Z | 2022-03-31T20:37:54.000Z | tests/admin_views/forms.py | ni-ning/django | 2e7ba6057cfc82a15a22b6021cd60cf307152e2d | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 8,884 | 2015-01-01T00:12:05.000Z | 2022-03-31T19:53:11.000Z | tests/admin_views/forms.py | mustafa0x/django | d7394cfa13a4d1a02356e3a83e10ec100fbb9948 | [
"BSD-3-Clause",
"0BSD"
] | 33,143 | 2015-01-01T02:04:52.000Z | 2022-03-31T19:42:46.000Z | from django.contrib.admin.forms import AdminAuthenticationForm
from django.contrib.admin.helpers import ActionForm
from django.core.exceptions import ValidationError
class CustomAdminAuthenticationForm(AdminAuthenticationForm):
class Media:
css = {'all': ('path/to/media.css',)}
def clean_username(se... | 27.714286 | 62 | 0.709622 | 61 | 582 | 6.737705 | 0.57377 | 0.072993 | 0.082725 | 0.107056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19244 | 582 | 20 | 63 | 29.1 | 0.874468 | 0 | 0 | 0.142857 | 0 | 0 | 0.121993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b25ef48013e45078a4ac2496e243a7fad1f34a3d | 4,783 | py | Python | test/test_lazy.py | heilerich/neurone_loader | 43e13709eec0d7105a8063ef8ab1ae8084395ea3 | [
"MIT"
] | 1 | 2019-06-24T14:56:17.000Z | 2019-06-24T14:56:17.000Z | test/test_lazy.py | heilerich/neurone_loader | 43e13709eec0d7105a8063ef8ab1ae8084395ea3 | [
"MIT"
] | 1 | 2019-08-25T12:24:19.000Z | 2019-08-25T12:40:22.000Z | test/test_lazy.py | heilerich/neurone_loader | 43e13709eec0d7105a8063ef8ab1ae8084395ea3 | [
"MIT"
] | 1 | 2019-10-04T15:11:25.000Z | 2019-10-04T15:11:25.000Z | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# This file (test_lazy.py) is part of neurone_loader -
# (https://www.github.com/heilerich/neurone_loader) -
# Copyright © 2019 Felix Heilmeyer. ... | 35.42963 | 92 | 0.606523 | 502 | 4,783 | 5.48008 | 0.203187 | 0.093057 | 0.071247 | 0.045802 | 0.559796 | 0.5249 | 0.503817 | 0.450018 | 0.387495 | 0.279898 | 0 | 0.001464 | 0.286013 | 4,783 | 134 | 93 | 35.69403 | 0.803807 | 0.172486 | 0 | 0.448276 | 0 | 0 | 0.021805 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 1 | 0.206897 | false | 0.011494 | 0.022989 | 0.045977 | 0.37931 | 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 |
b263fad419dbe7e6c121485f7f073db082120988 | 840 | py | Python | modules.py | S-Stanley/pusher | 754d31d7264ca79afe149446de088191e94b87f4 | [
"MIT"
] | null | null | null | modules.py | S-Stanley/pusher | 754d31d7264ca79afe149446de088191e94b87f4 | [
"MIT"
] | null | null | null | modules.py | S-Stanley/pusher | 754d31d7264ca79afe149446de088191e94b87f4 | [
"MIT"
] | null | null | null | import os
class Commit():
def __init__(self, message: str = 'PUSH made by pusher https://github.com/S-Stanley/pusher.git'):
self.message = message
@staticmethod
def check_repo():
files = os.popen('ls -a').read().split('\n')
if '.git' not in files:
os.popen('git init').read()
@staticmethod
def get_remot... | 30 | 98 | 0.634524 | 130 | 840 | 4.030769 | 0.369231 | 0.093511 | 0.057252 | 0.062977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165476 | 840 | 28 | 99 | 30 | 0.747504 | 0 | 0 | 0.086957 | 0 | 0.043478 | 0.31629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b275dbe9738e5db7f818112161b54bb35ab0e958 | 362 | py | Python | pysatNASA/__init__.py | landsito/pysatNASA | 8ebbad6e8447ed656641a4bbeb29e6a41f06bcc8 | [
"BSD-3-Clause"
] | 8 | 2021-01-02T11:38:00.000Z | 2022-01-20T16:55:11.000Z | pysatNASA/__init__.py | landsito/pysatNASA | 8ebbad6e8447ed656641a4bbeb29e6a41f06bcc8 | [
"BSD-3-Clause"
] | 82 | 2020-08-13T22:05:40.000Z | 2022-03-30T20:12:26.000Z | pysatNASA/__init__.py | landsito/pysatNASA | 8ebbad6e8447ed656641a4bbeb29e6a41f06bcc8 | [
"BSD-3-Clause"
] | 5 | 2020-09-17T22:47:02.000Z | 2022-03-30T04:40:47.000Z | import os
from pysatNASA import constellations # noqa F401
from pysatNASA import instruments # noqa F401
# set version
here = os.path.abspath(os.path.dirname(__file__))
version_filename = os.path.join(here, 'version.txt')
with open(version_filename, 'r') as version_file:
__version__ = version_file.read().strip()... | 32.909091 | 52 | 0.776243 | 51 | 362 | 5.235294 | 0.490196 | 0.067416 | 0.142322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018927 | 0.124309 | 362 | 10 | 53 | 36.2 | 0.823344 | 0.085635 | 0 | 0 | 0 | 0 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
b27c5264a59a3a5263699fa2befcb48c5a737a3e | 18,737 | py | Python | tests/test_algebra.py | mhostetter/quaternionic | 159ba7caa41afe33172373ebe4119209577812c1 | [
"MIT"
] | null | null | null | tests/test_algebra.py | mhostetter/quaternionic | 159ba7caa41afe33172373ebe4119209577812c1 | [
"MIT"
] | null | null | null | tests/test_algebra.py | mhostetter/quaternionic | 159ba7caa41afe33172373ebe4119209577812c1 | [
"MIT"
] | null | null | null | import warnings
import numpy as np
import quaternionic
import pytest
algebra_pyufuncs = type('AlgebraPyufuncs', (object,), dict())()
quaternionic.utilities.pyguvectorize_module_functions(quaternionic.algebra, algebra_pyufuncs)
def test_basis_multiplication():
# Basis components
one, i, j, k = tuple(quaterni... | 36.382524 | 141 | 0.603405 | 3,032 | 18,737 | 3.630607 | 0.076847 | 0.025073 | 0.051599 | 0.04742 | 0.682685 | 0.609375 | 0.565861 | 0.512355 | 0.497911 | 0.45694 | 0 | 0.031646 | 0.249506 | 18,737 | 514 | 142 | 36.453307 | 0.751173 | 0.07221 | 0 | 0.370455 | 0 | 0 | 0.006862 | 0 | 0 | 0 | 0 | 0 | 0.488636 | 1 | 0.040909 | false | 0 | 0.009091 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b27ccd8913d1f1baf0a161d28acf6fdcda06ceeb | 12,830 | py | Python | devices/debian.py | prplfoundation/boardfarm | c64c7e4ef58cb0089eee9528113bccee44c0fc82 | [
"BSD-3-Clause-Clear"
] | 5 | 2017-10-13T01:36:26.000Z | 2020-04-17T00:07:20.000Z | devices/debian.py | prplfoundation/boardfarm | c64c7e4ef58cb0089eee9528113bccee44c0fc82 | [
"BSD-3-Clause-Clear"
] | 3 | 2016-07-01T07:50:30.000Z | 2020-04-23T07:46:14.000Z | devices/debian.py | prplfoundation/boardfarm | c64c7e4ef58cb0089eee9528113bccee44c0fc82 | [
"BSD-3-Clause-Clear"
] | 3 | 2016-06-23T14:02:41.000Z | 2016-06-23T14:13:15.000Z | # Copyright (c) 2015
#
# All rights reserved.
#
# This file is distributed under the Clear BSD license.
# The full text can be found in LICENSE in the root directory.
import sys
import time
import pexpect
import base
from termcolor import colored, cprint
class DebianBox(base.BaseDevice):
'''
A linux machine... | 38.298507 | 132 | 0.575916 | 1,623 | 12,830 | 4.508934 | 0.216266 | 0.15414 | 0.128177 | 0.18311 | 0.506559 | 0.465291 | 0.435228 | 0.398333 | 0.304591 | 0.214403 | 0 | 0.032399 | 0.285503 | 12,830 | 334 | 133 | 38.413174 | 0.765899 | 0.050818 | 0 | 0.403509 | 0 | 0.031579 | 0.296607 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038596 | false | 0.035088 | 0.017544 | 0 | 0.070175 | 0.017544 | 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 |
b2860214f189e1c0d6f2e2dbc80e711f9a04f632 | 61,373 | py | Python | sample_mods/bfb/dae/bfb.py | kuanhanl/cappresse | 31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500 | [
"MIT"
] | 2 | 2019-09-26T20:56:06.000Z | 2019-11-18T21:03:27.000Z | sample_mods/bfb/dae/bfb.py | kuanhanl/cappresse | 31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500 | [
"MIT"
] | 6 | 2018-03-19T20:36:49.000Z | 2018-04-13T15:27:29.000Z | sample_mods/bfb/dae/bfb.py | kuanhanl/cappresse | 31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500 | [
"MIT"
] | 5 | 2018-10-04T18:51:02.000Z | 2020-07-02T15:31:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import division
from pyomo.environ import *
from pyomo.core.base import Param, ConcreteModel, Var, Constraint, Set, Suffix
from pyomo.core.kernel.numvalue import value
from pyomo.opt import ProblemFormat
from nmpc_mhe.a... | 49.335209 | 450 | 0.579962 | 11,828 | 61,373 | 2.80022 | 0.068904 | 0.065849 | 0.047704 | 0.057063 | 0.686181 | 0.658766 | 0.637934 | 0.613176 | 0.573594 | 0.541982 | 0 | 0.039406 | 0.235462 | 61,373 | 1,243 | 451 | 49.374899 | 0.666468 | 0 | 0 | 0.178082 | 0 | 0 | 0.022686 | 0.003192 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001142 | 0.015982 | null | null | 0.028539 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b286e3f981bb8071330dba75b00017b86b1fbb84 | 3,186 | py | Python | datacraft.py | Yann-girard/datacraft-docker-azure | a1a5dba7a0e3b653238e77bb5e9a44ab478363d1 | [
"Apache-2.0"
] | null | null | null | datacraft.py | Yann-girard/datacraft-docker-azure | a1a5dba7a0e3b653238e77bb5e9a44ab478363d1 | [
"Apache-2.0"
] | null | null | null | datacraft.py | Yann-girard/datacraft-docker-azure | a1a5dba7a0e3b653238e77bb5e9a44ab478363d1 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import streamlit as st
from utils.functions import (
add_polynomial_features,
generate_data,
get_model_tips,
get_model_url,
plot_decision_boundary_and_metrics,
train_model,
)
from utils.ui import (
dataset_selector,
footer,
generate_snippet,
polynomial_degree... | 23.6 | 88 | 0.634965 | 385 | 3,186 | 4.867532 | 0.249351 | 0.043223 | 0.048026 | 0.070971 | 0.322839 | 0.266275 | 0.251868 | 0.251868 | 0.240128 | 0.195304 | 0 | 0.006923 | 0.274639 | 3,186 | 134 | 89 | 23.776119 | 0.803548 | 0 | 0 | 0.295652 | 1 | 0 | 0.071877 | 0.007847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017391 | false | 0 | 0.034783 | 0 | 0.06087 | 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 |
b28d370a2345eb1fd1006e52061512d77d679a85 | 1,559 | py | Python | tests/test_connection.py | LimnoTech/ODM2PythonAPI | a5088ac8ecee9213e994fc0a71831825a9e05541 | [
"BSD-3-Clause"
] | 4 | 2018-11-30T04:04:16.000Z | 2021-07-09T07:29:23.000Z | tests/test_connection.py | LimnoTech/ODM2PythonAPI | a5088ac8ecee9213e994fc0a71831825a9e05541 | [
"BSD-3-Clause"
] | 156 | 2015-05-20T00:17:08.000Z | 2019-05-11T06:13:50.000Z | tests/test_connection.py | LimnoTech/ODM2PythonAPI | a5088ac8ecee9213e994fc0a71831825a9e05541 | [
"BSD-3-Clause"
] | 13 | 2015-06-28T04:16:05.000Z | 2020-04-02T08:08:19.000Z | from __future__ import (absolute_import, division, print_function)
from odm2api.ODMconnection import dbconnection
from odm2api.models import CVElevationDatum
import pytest
from sqlalchemy.engine import reflection
__author__ = 'valentine'
dbs_readonly = [
['mysql_odm2_odm', 'mysql', 'localhost', 'odm2', 'ODM',... | 28.345455 | 102 | 0.68762 | 194 | 1,559 | 5.319588 | 0.438144 | 0.067829 | 0.014535 | 0.017442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.172547 | 1,559 | 54 | 103 | 28.87037 | 0.784496 | 0 | 0 | 0.055556 | 0 | 0 | 0.200128 | 0.040411 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.138889 | false | 0.055556 | 0.138889 | 0.027778 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b292ce6fc022ca6f85b52aafabe521502fd3a366 | 6,833 | py | Python | ros/src/tl_detector/light_classification/tl_classifier.py | ngard/CarND-Capstone | 47a1a0770c96b5e6c615ab30ac6a69b1edf848a3 | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | ngard/CarND-Capstone | 47a1a0770c96b5e6c615ab30ac6a69b1edf848a3 | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | ngard/CarND-Capstone | 47a1a0770c96b5e6c615ab30ac6a69b1edf848a3 | [
"MIT"
] | null | null | null | import rospy
from styx_msgs.msg import TrafficLight
import cv2
import numpy as np
import tensorflow as tf
from keras.applications.imagenet_utils import preprocess_input
from keras.backend.tensorflow_backend import set_session
from ssd import SSD300
from ssd_utils import BBoxUtility
REMOTENESS_UNKNOWN = -1
class TLCla... | 39.726744 | 117 | 0.632811 | 807 | 6,833 | 5.101611 | 0.230483 | 0.028419 | 0.030605 | 0.050522 | 0.199174 | 0.096672 | 0.02769 | 0.02769 | 0 | 0 | 0 | 0.029173 | 0.277623 | 6,833 | 171 | 118 | 39.959064 | 0.804903 | 0.059857 | 0 | 0.085938 | 0 | 0 | 0.036409 | 0 | 0.007813 | 0 | 0 | 0.011696 | 0 | 1 | 0.03125 | false | 0 | 0.070313 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2930f5520095ff367c99ebc67846fb30caf59b4 | 49,974 | py | Python | aci_ftag_viewer.py | agccie/aci-ftag-viewer | c04b6983c317050cab28a7e745a7d66300636025 | [
"MIT"
] | 4 | 2019-01-22T09:47:28.000Z | 2021-09-28T12:25:00.000Z | aci_ftag_viewer.py | agccie/aci-ftag-viewer | c04b6983c317050cab28a7e745a7d66300636025 | [
"MIT"
] | null | null | null | aci_ftag_viewer.py | agccie/aci-ftag-viewer | c04b6983c317050cab28a7e745a7d66300636025 | [
"MIT"
] | null | null | null | #!/usr/bin/python2.7
import subprocess, sys, traceback, logging, os
import time, re, json
# ensure check_output is available
if not hasattr(subprocess, "check_output"):
m = """
When executing from the APIC, you must use the python2.7 library:
/usr/bin/python2.7 %s
""" % __file__
sys.exit(m)
#... | 42.065657 | 80 | 0.540221 | 6,341 | 49,974 | 4.10992 | 0.094149 | 0.024174 | 0.011972 | 0.006753 | 0.412647 | 0.339396 | 0.284486 | 0.25306 | 0.238517 | 0.215686 | 0 | 0.008757 | 0.337335 | 49,974 | 1,187 | 81 | 42.101095 | 0.778204 | 0.09555 | 0 | 0.326294 | 0 | 0.009504 | 0.181019 | 0.019964 | 0 | 0 | 0.000911 | 0 | 0.004224 | 0 | null | null | 0 | 0.006336 | null | null | 0.036959 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2948c150e9032254161a930a3d3785f44c44269 | 2,825 | py | Python | ngsutils/bed/subtract.py | bgruening/ngsutils | 417e90dc1918fb553dd84990f2c54bd8cea8f44d | [
"BSD-3-Clause"
] | 57 | 2015-03-09T01:26:45.000Z | 2022-02-22T07:26:01.000Z | ngsutils/bed/subtract.py | bgruening/ngsutils | 417e90dc1918fb553dd84990f2c54bd8cea8f44d | [
"BSD-3-Clause"
] | 33 | 2015-02-03T23:24:46.000Z | 2022-03-16T20:08:10.000Z | ngsutils/bed/subtract.py | bgruening/ngsutils | 417e90dc1918fb553dd84990f2c54bd8cea8f44d | [
"BSD-3-Clause"
] | 33 | 2015-01-18T16:47:47.000Z | 2022-02-22T07:28:09.000Z | #!/usr/bin/env python
## category General
## desc Subtracts one set of BED regions from another
'''
Removes overlaping BED regions from another BED file.
'''
import os
import sys
from ngsutils.bed import BedFile, BedStreamer
def usage(msg=None):
if msg:
print 'ERROR: %s' % msg
print __doc__
print... | 28.25 | 111 | 0.505133 | 297 | 2,825 | 4.757576 | 0.367003 | 0.046709 | 0.019816 | 0.029724 | 0.101203 | 0.032555 | 0.032555 | 0 | 0 | 0 | 0 | 0.014863 | 0.404602 | 2,825 | 99 | 112 | 28.535354 | 0.825208 | 0.059115 | 0 | 0.115942 | 0 | 0 | 0.100772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b294b015c35bb58e0342b6a9d67cef1388eb2d26 | 419 | py | Python | olc_webportalv2/cowbat/migrations/0024_auto_20200102_1817.py | OLC-Bioinformatics/olc_genomics_portal | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 3 | 2019-01-03T21:22:21.000Z | 2019-04-23T15:47:29.000Z | olc_webportalv2/cowbat/migrations/0024_auto_20200102_1817.py | OLC-Bioinformatics/olc_genomics_portal | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 49 | 2019-01-03T18:15:12.000Z | 2022-03-11T23:37:20.000Z | olc_webportalv2/cowbat/migrations/0024_auto_20200102_1817.py | OLC-Bioinformatics/olc_webportalv2 | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 58 | 2019-01-03T21:21:59.000Z | 2021-11-02T18:00:20.000Z | # Generated by Django 2.1.11 on 2020-01-02 18:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cowbat', '0023_auto_20191231_1345'),
]
operations = [
migrations.AlterField(
model_name='sequencingrun',
name='prog... | 22.052632 | 74 | 0.618138 | 44 | 419 | 5.772727 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114007 | 0.267303 | 419 | 18 | 75 | 23.277778 | 0.713355 | 0.109785 | 0 | 0 | 1 | 0 | 0.16442 | 0.061995 | 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 |
b29c0922b944bca5cdcacd85f74e735500a119c2 | 6,287 | py | Python | modules/utils.py | rotsee/protokollen | a001a1db86df57adcf5c53c95c4c2fae426340f1 | [
"MIT",
"Apache-2.0",
"CC0-1.0",
"Unlicense"
] | 4 | 2015-03-22T20:23:36.000Z | 2015-12-09T14:31:34.000Z | modules/utils.py | rotsee/protokollen | a001a1db86df57adcf5c53c95c4c2fae426340f1 | [
"MIT",
"Apache-2.0",
"CC0-1.0",
"Unlicense"
] | 4 | 2015-03-24T10:42:00.000Z | 2016-06-21T08:44:01.000Z | modules/utils.py | rotsee/protokollen | a001a1db86df57adcf5c53c95c4c2fae426340f1 | [
"MIT",
"Apache-2.0",
"CC0-1.0",
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
""" Utility functions to be used in several modules.
"""
import re
datePatterns = [
'((19|20)\d{2}-\d{1,2}-\d{1,2})', # 2014-03-24, 2014-3-24
'((19|20)\d{2}/\d{1,2}/\d{1,2})', # 2014/03/24 or 2014/3/24
'(\d{1,2}\.\d{1,2}\.(19|20)\d{2})', # 24.3.2014
'(\d{1,2}\s(januari|februa... | 32.076531 | 135 | 0.545888 | 800 | 6,287 | 4.1975 | 0.3825 | 0.004765 | 0.007147 | 0.008934 | 0.07832 | 0.071173 | 0.056581 | 0.056581 | 0.039309 | 0.039309 | 0 | 0.064469 | 0.343725 | 6,287 | 195 | 136 | 32.241026 | 0.749394 | 0.062669 | 0 | 0.190476 | 0 | 0.039683 | 0.160179 | 0.062192 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.007937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2a248fb2ab5e3b2a3c2f1a4d2fe082cfbbdf91e | 1,489 | py | Python | app/_test/suite/ext.auth.provider.ldap/test.py | ewie/gbd-websuite | 6f2814c7bb64d11cb5a0deec712df751718fb3e1 | [
"Apache-2.0"
] | null | null | null | app/_test/suite/ext.auth.provider.ldap/test.py | ewie/gbd-websuite | 6f2814c7bb64d11cb5a0deec712df751718fb3e1 | [
"Apache-2.0"
] | null | null | null | app/_test/suite/ext.auth.provider.ldap/test.py | ewie/gbd-websuite | 6f2814c7bb64d11cb5a0deec712df751718fb3e1 | [
"Apache-2.0"
] | null | null | null | import _test.util as u
BASE = '_/cmd/assetHttpGetPath/path/x.html/projectUid/'
def _access(cookies=None):
return [
u.req(BASE + 'user_project', cookies=cookies).status_code,
u.req(BASE + 'uid_project', cookies=cookies).status_code,
u.req(BASE + 'group_project', cookies=cookies).status_code... | 31.020833 | 72 | 0.622565 | 201 | 1,489 | 4.447761 | 0.21393 | 0.123043 | 0.03915 | 0.10962 | 0.693512 | 0.587248 | 0.517897 | 0.480984 | 0.350112 | 0.350112 | 0 | 0.066998 | 0.188046 | 1,489 | 47 | 73 | 31.680851 | 0.672457 | 0 | 0 | 0.272727 | 0 | 0 | 0.216253 | 0.030893 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.181818 | false | 0.212121 | 0.030303 | 0.030303 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b2a42f81a62752f7a3477c9b4b3dbfddba2e78eb | 493 | py | Python | liBlog/blogs/serivce.py | pylixm/liBlog | dcd3ff95161750c9680ac6ac418bee4ad8f2a350 | [
"MIT"
] | 7 | 2018-06-11T02:01:38.000Z | 2019-08-15T03:25:19.000Z | liBlog/blogs/serivce.py | pylixm/liBlog | dcd3ff95161750c9680ac6ac418bee4ad8f2a350 | [
"MIT"
] | 5 | 2020-02-12T00:49:26.000Z | 2021-09-07T23:58:28.000Z | liBlog/blogs/serivce.py | pylixm/liBlog | dcd3ff95161750c9680ac6ac418bee4ad8f2a350 | [
"MIT"
] | 1 | 2019-08-14T09:16:02.000Z | 2019-08-14T09:16:02.000Z | # -*- coding: utf-8 -*-
import mistune
from mistune_contrib.toc import TocMixin
from mistune_contrib.highlight import HighlightMixin
class TocRenderer(TocMixin, HighlightMixin, mistune.Renderer):
def header(self, text, level, raw=None):
rv = '<h%d id="toc-%s"><a href="#%s" class="headerlink"></a>%s</h%d>... | 32.866667 | 83 | 0.651116 | 69 | 493 | 4.565217 | 0.507246 | 0.088889 | 0.114286 | 0.101587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.196755 | 493 | 14 | 84 | 35.214286 | 0.790404 | 0.042596 | 0 | 0 | 0 | 0.1 | 0.13617 | 0.070213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
b2a6c546615261ca7bd237afa81ccf964c7e0060 | 390 | py | Python | delete_some_words.py | SummerHuiZhang/StarGAN_Norland | de56758fcdcd8d7c8e1fc8188dcb02e0c9d36df0 | [
"MIT"
] | null | null | null | delete_some_words.py | SummerHuiZhang/StarGAN_Norland | de56758fcdcd8d7c8e1fc8188dcb02e0c9d36df0 | [
"MIT"
] | 1 | 2019-10-19T10:41:10.000Z | 2019-10-21T03:03:20.000Z | delete_some_words.py | SummerHuiZhang/StarGAN_Norland | de56758fcdcd8d7c8e1fc8188dcb02e0c9d36df0 | [
"MIT"
] | null | null | null | import os
import sys
# usage: python delete_some_word.py *.txt word_to_delete
#temp_file=sys[1]
#word=sys[2]
with open('/home/timing/StarGAN_Norland/data/Norland/test/winter/test_winter.txt','r') as fpr:
content=fpr.read()
content = content.replace('./','')
print(content)
with open('/home/timing/StarGAN_Norland/data/N... | 30 | 94 | 0.753846 | 64 | 390 | 4.453125 | 0.53125 | 0.140351 | 0.084211 | 0.126316 | 0.463158 | 0.463158 | 0.463158 | 0.463158 | 0.463158 | 0.463158 | 0 | 0.00554 | 0.074359 | 390 | 12 | 95 | 32.5 | 0.783934 | 0.207692 | 0 | 0 | 0 | 0 | 0.467105 | 0.453947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2a9f38f093e8d2760dafde39e73598668e3ef54 | 5,435 | py | Python | setup.py | ValiMail/authentication-headers | 59da0a9b2a545711ab9ed2ed61e8dbca31751234 | [
"Zlib"
] | 11 | 2017-01-27T21:29:19.000Z | 2021-09-07T21:55:07.000Z | setup.py | ValiMail/authentication-headers | 59da0a9b2a545711ab9ed2ed61e8dbca31751234 | [
"Zlib"
] | 20 | 2020-01-10T23:52:36.000Z | 2022-01-17T23:36:38.000Z | setup.py | ValiMail/authentication-headers | 59da0a9b2a545711ab9ed2ed61e8dbca31751234 | [
"Zlib"
] | 4 | 2017-10-11T06:24:42.000Z | 2021-08-19T01:32:55.000Z | from setuptools import setup
import distutils.cmd
import distutils.log
import setuptools
import tempfile
import os
import sys
if sys.version_info[0] == 3:
from urllib import request
else:
import urllib as request
class UpdatePSDDMARCList(distutils.cmd.Command):
"""Update embedded copy of PSD DMARC participants... | 33.549383 | 380 | 0.634959 | 618 | 5,435 | 5.52589 | 0.354369 | 0.025769 | 0.038653 | 0.039531 | 0.360761 | 0.349634 | 0.329136 | 0.306296 | 0.306296 | 0.278184 | 0 | 0.010875 | 0.238638 | 5,435 | 161 | 381 | 33.757764 | 0.814403 | 0.073597 | 0 | 0.466667 | 0 | 0.007407 | 0.393456 | 0.051876 | 0 | 0 | 0 | 0 | 0.007407 | 1 | 0.066667 | false | 0.059259 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b2ac550678d972146bdb0deef242dcedda81f586 | 8,153 | py | Python | ssguan/ignitor/auth/service.py | samuelbaizg/ssguan | 97def0609d61e40472554464470758b5fb9eca35 | [
"Apache-2.0"
] | 1 | 2015-07-14T14:24:05.000Z | 2015-07-14T14:24:05.000Z | ssguan/ignitor/auth/service.py | samuelbaizg/ssguan | 97def0609d61e40472554464470758b5fb9eca35 | [
"Apache-2.0"
] | null | null | null | ssguan/ignitor/auth/service.py | samuelbaizg/ssguan | 97def0609d61e40472554464470758b5fb9eca35 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2015 www.suishouguan.com
#
# Licensed under the Private License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://github.com/samuelbaizg/ssguan/blob/master/LICENSE
#
# Unless ... | 38.098131 | 110 | 0.6562 | 1,059 | 8,153 | 4.809254 | 0.156752 | 0.041233 | 0.026507 | 0.028274 | 0.272531 | 0.213823 | 0.137836 | 0.09032 | 0.063224 | 0.047516 | 0 | 0.003755 | 0.248743 | 8,153 | 213 | 111 | 38.276995 | 0.827755 | 0.087943 | 0 | 0.247059 | 0 | 0 | 0.033958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094118 | false | 0.135294 | 0.041176 | 0 | 0.247059 | 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 |
b2acf560cd7d36fe6a912080299ecb04103bc879 | 12,683 | py | Python | _build/jupyter_execute/gps_soln.py | myamullaciencia/Bayesian-statistics | 1439716e377884465316cf9512f8e3a9199e79d6 | [
"Apache-2.0"
] | null | null | null | _build/jupyter_execute/gps_soln.py | myamullaciencia/Bayesian-statistics | 1439716e377884465316cf9512f8e3a9199e79d6 | [
"Apache-2.0"
] | null | null | null | _build/jupyter_execute/gps_soln.py | myamullaciencia/Bayesian-statistics | 1439716e377884465316cf9512f8e3a9199e79d6 | [
"Apache-2.0"
] | null | null | null | # Bite Size Bayes
Copyright 2020 Allen B. Downey
License: [Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
## Fixing GPS
The Global Positioning System (GPS) is widely... | 34.278378 | 361 | 0.758338 | 2,122 | 12,683 | 4.464656 | 0.189915 | 0.010555 | 0.010133 | 0.008866 | 0.190944 | 0.163711 | 0.127824 | 0.109035 | 0.109035 | 0.078847 | 0 | 0.015638 | 0.173145 | 12,683 | 369 | 362 | 34.371274 | 0.887766 | 0.010408 | 0 | 0.209945 | 0 | 0.055249 | 0.064832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022099 | 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 |
b2adfd4d8d4c2fc2c6608aba440d1731925c9d93 | 310 | py | Python | src/python/video_scripts/__init__.py | patczar/video-scripts | 8b6390cf778bada88bad5f452cc9a0bb86830b09 | [
"MIT"
] | null | null | null | src/python/video_scripts/__init__.py | patczar/video-scripts | 8b6390cf778bada88bad5f452cc9a0bb86830b09 | [
"MIT"
] | null | null | null | src/python/video_scripts/__init__.py | patczar/video-scripts | 8b6390cf778bada88bad5f452cc9a0bb86830b09 | [
"MIT"
] | null | null | null | # (c) Patryk Czarnik
# Distributed under MIT License. See LICENCE file in the root directory for details.
# A library of my video processing utilities using ffmpeg.
# The set of tools is specially addressed to processing of car camera videos.
# All submodules
__all__ = [
'settings',
'frames',
]
| 19.375 | 84 | 0.725806 | 43 | 310 | 5.139535 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209677 | 310 | 15 | 85 | 20.666667 | 0.902041 | 0.803226 | 0 | 0 | 0 | 0 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2b0259eb46adb6eee83ba09fa1652646a6e8822 | 4,339 | py | Python | osf/migrations/0108_auto_20180530_1310.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | osf/migrations/0108_auto_20180530_1310.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | osf/migrations/0108_auto_20180530_1310.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-30 18:10
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import osf.models.spam
import osf.utils.datetime_aware_jsonfiel... | 43.39 | 219 | 0.623416 | 415 | 4,339 | 6.33012 | 0.320482 | 0.030834 | 0.078797 | 0.092501 | 0.542444 | 0.531024 | 0.513514 | 0.399695 | 0.37914 | 0.37914 | 0 | 0.010201 | 0.254437 | 4,339 | 99 | 220 | 43.828283 | 0.801855 | 0.015902 | 0 | 0.467391 | 1 | 0 | 0.131708 | 0.011483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.119565 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a22f0c288c78e33a9e0eb6a9cc8015942f170b33 | 905 | py | Python | archive/pygame-cardgame-old-0-2/game.py | KingJellycycle/pygame-hexwar | db56d0bba0cc7430081bc6481402c8e998dcea6a | [
"MIT"
] | null | null | null | archive/pygame-cardgame-old-0-2/game.py | KingJellycycle/pygame-hexwar | db56d0bba0cc7430081bc6481402c8e998dcea6a | [
"MIT"
] | null | null | null | archive/pygame-cardgame-old-0-2/game.py | KingJellycycle/pygame-hexwar | db56d0bba0cc7430081bc6481402c8e998dcea6a | [
"MIT"
] | null | null | null | import pygame
from cardgame import *
from player import *
cardgame = cardgame()
playerone = player("Player1",cardgame.getStandard())
playertwo = player("Player2",cardgame.getStandard())
GS = 0
Phase = "Summon"
bg = pygame.image.load("./assets/images/board.png")
bgrect = bg.get_rect()
def draw(surface):
global G... | 19.673913 | 63 | 0.530387 | 105 | 905 | 4.561905 | 0.447619 | 0.050104 | 0.058455 | 0.070981 | 0.083507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049261 | 0.327072 | 905 | 46 | 64 | 19.673913 | 0.737274 | 0.092818 | 0 | 0.206897 | 0 | 0 | 0.074847 | 0.030675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.137931 | 0.103448 | 0 | 0.172414 | 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 |
a23b1341b4b299a746e0050f90550f356afcb9f1 | 251 | py | Python | indexing/jsonl2bulk-daily.py | joachimdraeger/elasticsearch-performance-experiments | 6a46fb52ca3f4f08333eb134337a1761a48637ab | [
"Unlicense"
] | 1 | 2018-11-27T20:47:57.000Z | 2018-11-27T20:47:57.000Z | indexing/jsonl2bulk-daily.py | joachimdraeger/elasticsearch-performance-experiments | 6a46fb52ca3f4f08333eb134337a1761a48637ab | [
"Unlicense"
] | null | null | null | indexing/jsonl2bulk-daily.py | joachimdraeger/elasticsearch-performance-experiments | 6a46fb52ca3f4f08333eb134337a1761a48637ab | [
"Unlicense"
] | null | null | null | import sys
import json
for line in sys.stdin:
doc = json.loads(line)
date = doc['published'][:10]
if date > "2015-09-01":
print('{ "index" : { "_index" : "articles-daily-' + date + '", "_type" : "_doc"}')
print(line[:-1])
| 25.1 | 90 | 0.541833 | 33 | 251 | 4.030303 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058201 | 0.247012 | 251 | 9 | 91 | 27.888889 | 0.645503 | 0 | 0 | 0 | 0 | 0 | 0.318725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 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 |
a23b7a360d33430b13c4e0ae2887d31be6cc2147 | 2,491 | py | Python | cmd2/__init__.py | shivanshcoder/cmd2 | 17146bcbd9dc32da28aa78d6ce90f0fc4b12baf4 | [
"MIT"
] | null | null | null | cmd2/__init__.py | shivanshcoder/cmd2 | 17146bcbd9dc32da28aa78d6ce90f0fc4b12baf4 | [
"MIT"
] | null | null | null | cmd2/__init__.py | shivanshcoder/cmd2 | 17146bcbd9dc32da28aa78d6ce90f0fc4b12baf4 | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8 -*-
# flake8: noqa F401
"""This simply imports certain things for backwards compatibility."""
import sys
# For python 3.8 and later
if sys.version_info >= (3, 8):
import importlib.metadata as importlib_metadata
else:
# For everyone else
import importlib_metadata
try:
__version__ ... | 27.076087 | 109 | 0.750301 | 271 | 2,491 | 6.627306 | 0.420664 | 0.047327 | 0.035635 | 0.066815 | 0.200445 | 0.167038 | 0.167038 | 0.121381 | 0.121381 | 0.121381 | 0 | 0.010685 | 0.173424 | 2,491 | 91 | 110 | 27.373626 | 0.861583 | 0.181453 | 0 | 0 | 0 | 0 | 0.229435 | 0.083746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015625 | 0.328125 | 0 | 0.328125 | 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 |
a241205062e25cc339510f11881f06bf21e76909 | 13,586 | py | Python | intersight/models/vnic_fc_if_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/vnic_fc_if_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/vnic_fc_if_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 35.941799 | 1,052 | 0.644413 | 1,603 | 13,586 | 5.303182 | 0.16781 | 0.041407 | 0.089401 | 0.081167 | 0.483237 | 0.416186 | 0.399482 | 0.249853 | 0.223738 | 0.136219 | 0 | 0.016542 | 0.283601 | 13,586 | 377 | 1,053 | 36.037135 | 0.856879 | 0.444723 | 0 | 0.069364 | 0 | 0 | 0.096587 | 0.02097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150289 | false | 0 | 0.023121 | 0 | 0.289017 | 0.011561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a24e0952da4f52c953ea5846d1dd861fe51cf418 | 1,094 | py | Python | sentence_transformers_extensions/callbacks/EarlyStopper.py | t-mesq/sentence-transformers | 5dbf13ce986e4d0938479a97e76077d396f47277 | [
"Apache-2.0"
] | null | null | null | sentence_transformers_extensions/callbacks/EarlyStopper.py | t-mesq/sentence-transformers | 5dbf13ce986e4d0938479a97e76077d396f47277 | [
"Apache-2.0"
] | null | null | null | sentence_transformers_extensions/callbacks/EarlyStopper.py | t-mesq/sentence-transformers | 5dbf13ce986e4d0938479a97e76077d396f47277 | [
"Apache-2.0"
] | null | null | null | from sentence_transformers_extensions.evaluation import MetricsScore
class EarlyStoppingException(Exception):
"""Controlled exception raised when model stops early.
Attributes:
salary -- input salary which caused the error
message -- explanation of the error
"""
def __init__(self, pa... | 33.151515 | 105 | 0.680073 | 136 | 1,094 | 5.198529 | 0.426471 | 0.079208 | 0.084866 | 0.101839 | 0.113154 | 0.065064 | 0 | 0 | 0 | 0 | 0 | 0.007177 | 0.235832 | 1,094 | 32 | 106 | 34.1875 | 0.838517 | 0.140768 | 0 | 0.111111 | 0 | 0 | 0.08615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.055556 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a24f9b08e8504851dcf803570613e87972b1841b | 2,960 | py | Python | trnanalysis/python/trna_keep_mature.py | Acribbs/trnamapper | db35e2eeec856d5e8f8a33d6fcb437c69f926ee6 | [
"MIT"
] | 1 | 2020-10-15T05:54:49.000Z | 2020-10-15T05:54:49.000Z | trnanalysis/python/trna_keep_mature.py | Acribbs/trnamapper | db35e2eeec856d5e8f8a33d6fcb437c69f926ee6 | [
"MIT"
] | 16 | 2019-06-07T09:28:55.000Z | 2020-03-16T08:17:44.000Z | trnanalysis/python/trna_keep_mature.py | Acribbs/trnamapper | db35e2eeec856d5e8f8a33d6fcb437c69f926ee6 | [
"MIT"
] | 2 | 2019-06-07T09:21:33.000Z | 2021-02-18T14:50:55.000Z | """trna_generate_bed.py - generate a bed file from a fasta file of pre-tRNAs
================================================================
Purpose
-------
This script takes as an input a fasta file of pre-tRNAs and will
generate a bed file using the name of each fasta read as the
chromosome name and will output th... | 25.299145 | 106 | 0.572635 | 378 | 2,960 | 4.42328 | 0.357143 | 0.023923 | 0.008971 | 0.009569 | 0.134569 | 0.134569 | 0.047249 | 0.006579 | 0.006579 | 0 | 0 | 0.003897 | 0.306419 | 2,960 | 116 | 107 | 25.517241 | 0.810521 | 0.375676 | 0 | 0.2 | 1 | 0.02 | 0.033954 | 0.013143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.1 | 0 | 0.12 | 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 |
a25b010134649399a8dde2aab90aefc016619c59 | 1,611 | py | Python | openstack/network/v2/host.py | teresa-ho/stx-openstacksdk | 7d723da3ffe9861e6e9abcaeadc1991689f782c5 | [
"Apache-2.0"
] | null | null | null | openstack/network/v2/host.py | teresa-ho/stx-openstacksdk | 7d723da3ffe9861e6e9abcaeadc1991689f782c5 | [
"Apache-2.0"
] | null | null | null | openstack/network/v2/host.py | teresa-ho/stx-openstacksdk | 7d723da3ffe9861e6e9abcaeadc1991689f782c5 | [
"Apache-2.0"
] | null | null | null | # 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, software
# distributed under t... | 33.5625 | 75 | 0.716325 | 228 | 1,611 | 4.986842 | 0.508772 | 0.094987 | 0.022867 | 0.028144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006982 | 0.199876 | 1,611 | 47 | 76 | 34.276596 | 0.875097 | 0.472377 | 0 | 0 | 0 | 0 | 0.093976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a263a87b3385cc13efe08d40258a64bdae081be3 | 1,037 | py | Python | Task1D.py | cued-ia-computing/flood-jw2190-lk476 | e58ac7a99e9c98fec610c568c4e36969f1fc3a39 | [
"MIT"
] | null | null | null | Task1D.py | cued-ia-computing/flood-jw2190-lk476 | e58ac7a99e9c98fec610c568c4e36969f1fc3a39 | [
"MIT"
] | null | null | null | Task1D.py | cued-ia-computing/flood-jw2190-lk476 | e58ac7a99e9c98fec610c568c4e36969f1fc3a39 | [
"MIT"
] | null | null | null | """tests geo.rivers_with_station function and station_by_river function"""
from floodsystem.geo import rivers_with_station
from floodsystem.geo import station_by_river
from floodsystem.stationdata import build_station_list
def run():
"""Requirements for Task 1D"""
# build list of stations
stations = bui... | 31.424242 | 85 | 0.722276 | 138 | 1,037 | 5.23913 | 0.362319 | 0.069156 | 0.094053 | 0.074689 | 0.095436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.165863 | 1,037 | 32 | 86 | 32.40625 | 0.830058 | 0.267117 | 0 | 0 | 0 | 0 | 0.268097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 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 |
a265b55af8f759d826b25751dff1d3b72a158ecb | 446 | py | Python | setup.py | Siddhant-K-code/wake_engine | cc7ad635dfbb7e1a5a20237c69f41db19e033a0f | [
"Apache-2.0"
] | 22 | 2020-12-06T03:22:29.000Z | 2022-03-08T02:03:25.000Z | setup.py | Siddhant-K-code/wake_engine | cc7ad635dfbb7e1a5a20237c69f41db19e033a0f | [
"Apache-2.0"
] | null | null | null | setup.py | Siddhant-K-code/wake_engine | cc7ad635dfbb7e1a5a20237c69f41db19e033a0f | [
"Apache-2.0"
] | 11 | 2020-12-08T05:04:06.000Z | 2022-01-05T00:57:11.000Z | from distutils.core import setup
from setuptools import find_packages
setup(
name="wakechess",
packages=find_packages(),
version="0.0.1",
license="Apache",
description="A bitboard-based chess engine",
author="Wes Doyle",
url="https://github.com/wesdoyle",
... | 26.235294 | 93 | 0.618834 | 48 | 446 | 5.6875 | 0.729167 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008746 | 0.230942 | 446 | 16 | 94 | 27.875 | 0.787172 | 0 | 0 | 0 | 0 | 0 | 0.316854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 |
a26644a84acd5f6b07d3022ec49475eb943ff38e | 8,521 | py | Python | attendees/persons/migrations/0013_folk_attendee_m2m.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | null | null | null | attendees/persons/migrations/0013_folk_attendee_m2m.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | 5 | 2022-01-21T03:26:40.000Z | 2022-02-04T17:32:16.000Z | attendees/persons/migrations/0013_folk_attendee_m2m.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-02 19:15
from attendees.persons.models.utility import Utility
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
('persons', '0011_attendance_m2m'),
]
operat... | 68.168 | 250 | 0.643352 | 895 | 8,521 | 5.944134 | 0.179888 | 0.02406 | 0.031579 | 0.029323 | 0.630827 | 0.530075 | 0.475188 | 0.45188 | 0.426692 | 0.358271 | 0 | 0.006855 | 0.212534 | 8,521 | 124 | 251 | 68.717742 | 0.785991 | 0.361695 | 0 | 0.32 | 1 | 0.026667 | 0.223396 | 0.027067 | 0.04 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053333 | 0 | 0.093333 | 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 |
a26bcb2198fefcd33b69e81e94ee17ebf241e33e | 2,447 | py | Python | direct/directutil/DistributedLargeBlobSender.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | 1 | 2020-03-12T16:44:10.000Z | 2020-03-12T16:44:10.000Z | direct/directutil/DistributedLargeBlobSender.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | direct/directutil/DistributedLargeBlobSender.py | theclashingfritz/Cog-Invasion-Online-Dump | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: direct.directutil.DistributedLargeBlobSender
from direct.distributed import DistributedObject
from direct.directnotify import DirectNoti... | 31.779221 | 104 | 0.661626 | 242 | 2,447 | 6.652893 | 0.421488 | 0.099379 | 0.091925 | 0.050932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02546 | 0.245607 | 2,447 | 77 | 105 | 31.779221 | 0.846696 | 0.089906 | 0 | 0.084746 | 0 | 0 | 0.044984 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0 | 0.067797 | 0.033898 | 0.389831 | 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 |
a26e410ae473da715dd42e23dcdd3838b668ea2b | 847 | py | Python | setup.py | yentenme/Mobile-YTN-Miner | 1b10bd5f0130643d446469f39d7873458ad7649f | [
"MIT"
] | null | null | null | setup.py | yentenme/Mobile-YTN-Miner | 1b10bd5f0130643d446469f39d7873458ad7649f | [
"MIT"
] | null | null | null | setup.py | yentenme/Mobile-YTN-Miner | 1b10bd5f0130643d446469f39d7873458ad7649f | [
"MIT"
] | null | null | null | from setuptools import setup, Extension
zny_yespower_0_5_module = Extension('zny_yespower_0_5',
sources = ['yespower-module.c',
'yespower.c',
'yespower-opt.c',
'sha256.c'
... | 44.578947 | 97 | 0.493506 | 87 | 847 | 4.528736 | 0.632184 | 0.137056 | 0.152284 | 0.164975 | 0.175127 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038911 | 0.393152 | 847 | 18 | 98 | 47.055556 | 0.727626 | 0 | 0 | 0 | 0 | 0 | 0.317592 | 0.028335 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 |
a279ca30327112fcc231090412cd31bee6d2af92 | 2,394 | py | Python | taiga_sprint_printer/prompts.py | lotrekagency/print_taiga_sprint | 9831ddbb89cb1d590535daf27867a833c37933e4 | [
"MIT"
] | 6 | 2018-05-17T15:37:36.000Z | 2019-10-28T21:33:34.000Z | taiga_sprint_printer/prompts.py | lotrekagency/print_taiga_sprint | 9831ddbb89cb1d590535daf27867a833c37933e4 | [
"MIT"
] | null | null | null | taiga_sprint_printer/prompts.py | lotrekagency/print_taiga_sprint | 9831ddbb89cb1d590535daf27867a833c37933e4 | [
"MIT"
] | null | null | null | import inquirer
from .errors import CancelledByUserError
def check_answer(answers):
if not answers:
raise CancelledByUserError()
def ask_credentials(default_host, default_user):
questions = [
inquirer.Text(
'host', message="Your taiga api host", default=default_host
),
... | 26.021739 | 78 | 0.62949 | 237 | 2,394 | 6.177215 | 0.232068 | 0.092213 | 0.086066 | 0.081967 | 0.260246 | 0.193306 | 0.193306 | 0.125 | 0.125 | 0 | 0 | 0.000572 | 0.269841 | 2,394 | 91 | 79 | 26.307692 | 0.836957 | 0 | 0 | 0.394737 | 0 | 0 | 0.146617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0.092105 | 0.026316 | 0 | 0.197368 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a27a0cc379c42c177f82ff4a878b4f4ca5070bfd | 2,903 | py | Python | pycspr/factory/accounts.py | sisco0/casper-python-sdk | 49dec3d56863c445e684961ae16b7b5b7d62b401 | [
"Apache-2.0"
] | null | null | null | pycspr/factory/accounts.py | sisco0/casper-python-sdk | 49dec3d56863c445e684961ae16b7b5b7d62b401 | [
"Apache-2.0"
] | null | null | null | pycspr/factory/accounts.py | sisco0/casper-python-sdk | 49dec3d56863c445e684961ae16b7b5b7d62b401 | [
"Apache-2.0"
] | null | null | null | import pathlib
import typing
from pycspr import crypto
from pycspr.types import PrivateKey
from pycspr.types import PublicKey
def create_private_key(algo: crypto.KeyAlgorithm, pvk: bytes, pbk: bytes) -> PrivateKey:
"""Returns an account holder's private key.
:param algo: ECC key algorithm identifier.
... | 30.239583 | 103 | 0.706166 | 398 | 2,903 | 5.032663 | 0.163317 | 0.085372 | 0.065901 | 0.065901 | 0.624064 | 0.496256 | 0.496256 | 0.436845 | 0.25312 | 0.207189 | 0 | 0.000861 | 0.199449 | 2,903 | 95 | 104 | 30.557895 | 0.861015 | 0.378918 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.178571 | 0 | 0.678571 | 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 |
a27acd58442a619effee8b512064bbcbdafe4e69 | 1,439 | py | Python | src/algo/handle_humbleswap.py | wengzilla/staketaxcsv | c52210106ec8194973f6ff178a307c77699e094e | [
"MIT"
] | 140 | 2021-12-11T23:37:46.000Z | 2022-03-29T23:04:36.000Z | src/algo/handle_humbleswap.py | wengzilla/staketaxcsv | c52210106ec8194973f6ff178a307c77699e094e | [
"MIT"
] | 80 | 2021-12-17T15:13:47.000Z | 2022-03-31T13:33:53.000Z | src/algo/handle_humbleswap.py | wengzilla/staketaxcsv | c52210106ec8194973f6ff178a307c77699e094e | [
"MIT"
] | 52 | 2021-12-12T00:37:17.000Z | 2022-03-29T23:25:09.000Z | from algo import constants as co
from algo.asset import Algo
from algo.handle_amm import (
handle_lp_add,
handle_lp_remove,
handle_swap,
is_simple_lp_add_group,
is_simple_lp_remove_group,
is_simple_swap_group
)
from algo.handle_simple import handle_participation_rewards, handle_unknown... | 29.979167 | 76 | 0.709521 | 189 | 1,439 | 5.074074 | 0.328042 | 0.050052 | 0.04171 | 0.07195 | 0.273201 | 0.192909 | 0.068822 | 0 | 0 | 0 | 0 | 0.007098 | 0.216817 | 1,439 | 47 | 77 | 30.617021 | 0.843833 | 0.04656 | 0 | 0.083333 | 0 | 0 | 0.040847 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a27d923f3b3c9800446e3f4feddb7d52277d1666 | 626 | py | Python | python/mcap/mcap0/serialization.py | jameskuszmaul-brt/mcap | bce6560d743359288a75c709ec16cd1c450069c9 | [
"Apache-2.0"
] | 46 | 2022-02-07T18:58:11.000Z | 2022-03-21T22:03:54.000Z | python/mcap/mcap0/serialization.py | jameskuszmaul-brt/mcap | bce6560d743359288a75c709ec16cd1c450069c9 | [
"Apache-2.0"
] | 135 | 2021-12-02T15:21:58.000Z | 2022-03-31T17:50:23.000Z | python/mcap/mcap0/serialization.py | jameskuszmaul-brt/mcap | bce6560d743359288a75c709ec16cd1c450069c9 | [
"Apache-2.0"
] | 4 | 2022-02-20T12:56:02.000Z | 2022-03-30T20:14:52.000Z | from typing import Any, Dict, Union
from .records import McapRecord
ValueType = Union[bytes, str, int, Dict[str, str]]
def normalize_value(value: ValueType) -> Any:
if isinstance(value, bytes):
return [normalize_value(v) for v in value]
if isinstance(value, int):
return str(value)
if isi... | 28.454545 | 82 | 0.670927 | 86 | 626 | 4.732558 | 0.348837 | 0.137592 | 0.125307 | 0.132678 | 0.113022 | 0.113022 | 0.113022 | 0.113022 | 0 | 0 | 0 | 0 | 0.20607 | 626 | 21 | 83 | 29.809524 | 0.818913 | 0 | 0 | 0 | 0 | 0 | 0.015974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
a27e06b3e2f52d6dff760865deaa217cc1ac3f47 | 656 | py | Python | questions/q71_string_to_integer/q71.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | questions/q71_string_to_integer/q71.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | 1 | 2021-05-15T07:56:51.000Z | 2021-05-15T07:56:51.000Z | questions/q71_string_to_integer/q71.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | class Solution:
def myAtoi(self, s: str) -> int:
i = 0
num = 0
while i < len(s) and s[i] == ' ' :
i += 1
sign = 1
if i < len(s) and s[i] == '-' :
sign = -1
i += 1
elif i < len(s) and s[i] == '+' :
sign = 1
... | 24.296296 | 52 | 0.317073 | 90 | 656 | 2.311111 | 0.277778 | 0.048077 | 0.096154 | 0.153846 | 0.432692 | 0.346154 | 0.163462 | 0.163462 | 0.163462 | 0.163462 | 0 | 0.108974 | 0.52439 | 656 | 26 | 53 | 25.230769 | 0.557692 | 0 | 0 | 0.285714 | 0 | 0 | 0.004573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.238095 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.