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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5dc2e6166b4b9384fa40a72b981bd0a09d2f6a7c | 47,383 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/dhcpv6Relay_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/dhcpv6Relay_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/dhcpv6Relay_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class Dhcpv6Relay(Base):
__slots__ = ()
_SDM_NAME = 'dhcpv6Relay'
_SDM_ATT_MAP = {
'HeaderMessageType': 'dhcpv6Relay.header.messageType-1',
'HeaderHopCount': 'dhcpv6Relay.header.hopCount-2',
'HeaderLink... | 37.221524 | 134 | 0.672984 | 4,553 | 47,383 | 6.847573 | 0.080167 | 0.048369 | 0.070693 | 0.047952 | 0.704654 | 0.607082 | 0.548962 | 0.546525 | 0.521635 | 0.495141 | 0 | 0.014943 | 0.234493 | 47,383 | 1,272 | 135 | 37.250786 | 0.844591 | 0.151447 | 0 | 0.392427 | 0 | 0.020654 | 0.322224 | 0.253582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.199656 | false | 0 | 0.199656 | 0.001721 | 0.604131 | 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 |
5dc968405d5913d83a8eeb4b3e7494f31705d312 | 4,910 | py | Python | pysnmp/ASCEND-MIBIPSECSPD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ASCEND-MIBIPSECSPD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ASCEND-MIBIPSECSPD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ASCEND-MIBIPSECSPD-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBIPSECSPD-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:11:32 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 122.75 | 676 | 0.795316 | 525 | 4,910 | 7.346667 | 0.234286 | 0.092559 | 0.008556 | 0.011408 | 0.364273 | 0.292196 | 0.210008 | 0.15971 | 0.15971 | 0.15608 | 0 | 0.056893 | 0.069246 | 4,910 | 39 | 677 | 125.897436 | 0.78709 | 0.068839 | 0 | 0 | 0 | 0 | 0.225071 | 0.094894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032258 | 0.225806 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dc9cd4b619661db16e9ae6a999e60876bdce1fc | 844 | py | Python | pca/mnist_pca.py | Optimist-Prime/QML-for-MNIST-classification | 7513b3faa548166dba3df927a248e8c7f1ab2a15 | [
"BSD-3-Clause"
] | 1 | 2020-02-04T12:51:47.000Z | 2020-02-04T12:51:47.000Z | pca/mnist_pca.py | Optimist-Prime/QML-for-MNIST-classification | 7513b3faa548166dba3df927a248e8c7f1ab2a15 | [
"BSD-3-Clause"
] | null | null | null | pca/mnist_pca.py | Optimist-Prime/QML-for-MNIST-classification | 7513b3faa548166dba3df927a248e8c7f1ab2a15 | [
"BSD-3-Clause"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import pickle
from tools import normalize
from sklearn import svm, metrics
from tensorflow.examples.tutorials.mnist import input_data
from sklearn.decomposition import PCA
mnist = input_data.read_data_sets("MNIST_data/", one_hot=False)
X_train = np.vstack([img.reshap... | 29.103448 | 69 | 0.765403 | 144 | 844 | 4.277778 | 0.340278 | 0.064935 | 0.035714 | 0.058442 | 0.181818 | 0.181818 | 0.181818 | 0.103896 | 0.103896 | 0 | 0 | 0.005369 | 0.117299 | 844 | 28 | 70 | 30.142857 | 0.821477 | 0 | 0 | 0 | 0 | 0 | 0.054502 | 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 |
5dc9dbce131ddd968647ce225223856327dd9f90 | 356 | py | Python | examples/client.py | fdgonthier/node-abstractsocket | c35f289c65258c92166deaa9d167d5e198383a16 | [
"MIT"
] | 19 | 2015-03-30T16:08:13.000Z | 2021-09-17T18:43:47.000Z | examples/client.py | fdgonthier/node-abstractsocket | c35f289c65258c92166deaa9d167d5e198383a16 | [
"MIT"
] | 18 | 2015-03-11T10:12:51.000Z | 2020-09-07T11:02:49.000Z | examples/client.py | fdgonthier/node-abstractsocket | c35f289c65258c92166deaa9d167d5e198383a16 | [
"MIT"
] | 13 | 2015-03-11T10:05:00.000Z | 2020-05-19T22:38:36.000Z |
import socket
import sys
client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
client.connect('\x00foo')
try:
while True:
data = sys.stdin.readline()
client.send(data)
data = client.recv(1024)
if not data:
break
print 'Received data: %s' % data
except Key... | 17.8 | 58 | 0.623596 | 43 | 356 | 5.116279 | 0.651163 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023166 | 0.272472 | 356 | 19 | 59 | 18.736842 | 0.826255 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dca78387adf4403b8c5713da3b19e163ef202e3 | 10,767 | py | Python | debexpo/controllers/package.py | jadonk/debexpo | a022160492e40cd02bafc413a3cb009551fd6f8d | [
"MIT"
] | null | null | null | debexpo/controllers/package.py | jadonk/debexpo | a022160492e40cd02bafc413a3cb009551fd6f8d | [
"MIT"
] | null | null | null | debexpo/controllers/package.py | jadonk/debexpo | a022160492e40cd02bafc413a3cb009551fd6f8d | [
"MIT"
] | 2 | 2017-01-20T23:08:40.000Z | 2019-08-13T20:30:00.000Z | # -*- coding: utf-8 -*-
#
# package.py — Package controller
#
# This file is part of debexpo - https://alioth.debian.org/projects/debexpo/
#
# Copyright © 2008 Jonny Lamb <jonny@debian.org>
# Copyright © 2010 Jan Dittberner <jandd@debian.org>
# 2011 Arno Töll <debian@toell.net>
#
# Permission is... | 37.127586 | 125 | 0.625801 | 1,192 | 10,767 | 5.538591 | 0.249161 | 0.020903 | 0.023629 | 0.018176 | 0.35671 | 0.267495 | 0.240836 | 0.240836 | 0.210845 | 0.174493 | 0 | 0.005544 | 0.279651 | 10,767 | 289 | 126 | 37.256055 | 0.845023 | 0.144516 | 0 | 0.353933 | 0 | 0 | 0.144459 | 0.005316 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106742 | 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 |
5dd0cbb608b984ea3892034fe15cb047bc571c48 | 11,650 | py | Python | controllers/order_controller.py | alexmeigz/CS148_Project_Backend | 95c9981b9342b0509d5c58ea6e9f2a8b400d1444 | [
"Apache-2.0"
] | null | null | null | controllers/order_controller.py | alexmeigz/CS148_Project_Backend | 95c9981b9342b0509d5c58ea6e9f2a8b400d1444 | [
"Apache-2.0"
] | 13 | 2020-11-03T06:30:06.000Z | 2020-12-17T02:15:24.000Z | controllers/order_controller.py | alexmeigz/CS148_Project_Backend | 95c9981b9342b0509d5c58ea6e9f2a8b400d1444 | [
"Apache-2.0"
] | null | null | null | from flask import jsonify
from models import models
from controllers import base_controller
import time, datetime
from flask_login import current_user, login_user
from werkzeug.security import generate_password_hash, check_password_hash
def create(params):
#Initialize
response = {}
requiredFields = ["pro... | 39.358108 | 119 | 0.588069 | 1,209 | 11,650 | 5.557486 | 0.087676 | 0.025004 | 0.040631 | 0.060277 | 0.77199 | 0.697128 | 0.652925 | 0.626135 | 0.613484 | 0.609019 | 0 | 0.009248 | 0.303863 | 11,650 | 296 | 120 | 39.358108 | 0.819236 | 0.047983 | 0 | 0.669565 | 0 | 0 | 0.125554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026087 | false | 0.004348 | 0.026087 | 0 | 0.117391 | 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 |
5dd322871f3e5a7d8784e0e8ae87dd0e856af199 | 1,037 | py | Python | tests/test_pqctypes.py | jessicaaustin/CoTeDe | 0ca2a1c71de980d91262fd36fd5d8ab8cc09f019 | [
"BSD-3-Clause"
] | null | null | null | tests/test_pqctypes.py | jessicaaustin/CoTeDe | 0ca2a1c71de980d91262fd36fd5d8ab8cc09f019 | [
"BSD-3-Clause"
] | null | null | null | tests/test_pqctypes.py | jessicaaustin/CoTeDe | 0ca2a1c71de980d91262fd36fd5d8ab8cc09f019 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
""" Check the structure of a ProfileQC object
"""
# I should split in two tests, one for generic expected proprieties and
# contents, and another test for specific contents, like keys, and values
# itself. But this last one mu... | 30.5 | 75 | 0.626808 | 149 | 1,037 | 4.362416 | 0.496644 | 0.110769 | 0.083077 | 0.08 | 0.147692 | 0.124615 | 0.073846 | 0 | 0 | 0 | 0 | 0.005083 | 0.24108 | 1,037 | 33 | 76 | 31.424242 | 0.820839 | 0.337512 | 0 | 0 | 0 | 0 | 0.032641 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dd45305abb73a3b258fdd350b7eceb7fb05f0fc | 525 | py | Python | setup.py | tmick0/pymidisoundboard | 4c4caf14f3ae77ed39ff89b1f56746af6a989b1e | [
"MIT"
] | null | null | null | setup.py | tmick0/pymidisoundboard | 4c4caf14f3ae77ed39ff89b1f56746af6a989b1e | [
"MIT"
] | null | null | null | setup.py | tmick0/pymidisoundboard | 4c4caf14f3ae77ed39ff89b1f56746af6a989b1e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="pymidisoundboard",
version="0.0.1",
author="travis mick",
author_email="root@lo.calho.st",
description="gstreamer-based application that lets you use a midi controller as a soundboard",
packages=['pymidisoundboard'],
python_requires='>=3.8',
ins... | 37.5 | 123 | 0.68 | 72 | 525 | 4.888889 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.131429 | 525 | 13 | 124 | 40.384615 | 0.719298 | 0 | 0 | 0 | 0 | 0 | 0.546667 | 0.121905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dd76b203045654ce1eb42570321a97ace70da5b | 3,022 | py | Python | addons/validation.py | geoffrey0822/multilevellabel_NN | faec3303dac2376d6e8a761632aca31bc3868413 | [
"Apache-2.0"
] | null | null | null | addons/validation.py | geoffrey0822/multilevellabel_NN | faec3303dac2376d6e8a761632aca31bc3868413 | [
"Apache-2.0"
] | null | null | null | addons/validation.py | geoffrey0822/multilevellabel_NN | faec3303dac2376d6e8a761632aca31bc3868413 | [
"Apache-2.0"
] | null | null | null | import os,sys
import numpy as np
import cv2
import caffe
from sklearn.metrics import confusion_matrix
def printRow(fs,record):
for n in range(len(record)):
fs.write('%f'%record[n])
if n<len(record)-1:
fs.write(',')
fs.write('\n')
def preprocess(input,mode):
output=[]
if mod... | 27.472727 | 75 | 0.608868 | 462 | 3,022 | 3.898268 | 0.274892 | 0.042754 | 0.031094 | 0.026652 | 0.151027 | 0.151027 | 0.11327 | 0.11327 | 0.11327 | 0.11327 | 0 | 0.041032 | 0.217737 | 3,022 | 110 | 76 | 27.472727 | 0.720812 | 0.035076 | 0 | 0.06383 | 0 | 0 | 0.024047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053191 | null | null | 0.074468 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ddf99d70d37fac29bf4ebaa1bc621fa7b850a10 | 1,236 | py | Python | examples/mxnet/export.py | Hakuyume/onnx-chainer | 3c46bd692ef38a7c0f45a2a09795d2023364e12b | [
"MIT"
] | null | null | null | examples/mxnet/export.py | Hakuyume/onnx-chainer | 3c46bd692ef38a7c0f45a2a09795d2023364e12b | [
"MIT"
] | null | null | null | examples/mxnet/export.py | Hakuyume/onnx-chainer | 3c46bd692ef38a7c0f45a2a09795d2023364e12b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import namedtuple
import chainer
import chainer.links as L
import numpy as np
import mxnet as mx
import onnx_chainer
import onnx_mxnet
chainer.config.train = False
def save_as_onnx_then_import_from_mxnet(model, fn):
x = np.random.randn(1, 3, 224, ... | 23.320755 | 79 | 0.693366 | 183 | 1,236 | 4.409836 | 0.459016 | 0.022305 | 0.037175 | 0.052045 | 0.126394 | 0.126394 | 0.126394 | 0.126394 | 0 | 0 | 0 | 0.022505 | 0.173139 | 1,236 | 52 | 80 | 23.769231 | 0.767123 | 0.033981 | 0 | 0 | 0 | 0 | 0.048658 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.0625 | false | 0 | 0.34375 | 0 | 0.40625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5de07d49812d8679d7fa2ed51e806190ac46ebcb | 1,959 | py | Python | metapipe/models/job_template.py | TorkamaniLab/metapipe | 15592e5b0c217afb00ac03503f8d0d7453d4baf4 | [
"MIT"
] | 11 | 2016-01-26T06:47:05.000Z | 2022-02-23T19:12:00.000Z | metapipe/models/job_template.py | TorkamaniLab/metapipe | 15592e5b0c217afb00ac03503f8d0d7453d4baf4 | [
"MIT"
] | 44 | 2016-01-08T00:46:47.000Z | 2016-04-13T00:46:47.000Z | metapipe/models/job_template.py | TorkamaniLab/metapipe | 15592e5b0c217afb00ac03503f8d0d7453d4baf4 | [
"MIT"
] | 4 | 2015-10-30T19:24:13.000Z | 2020-01-25T02:56:53.000Z | """ A template that evaluates to muliple jobs and places them back on the queue.
author: Brian Schrader
since: 2016-02-19
"""
from .job import Job
class JobTemplate(Job):
def __init__(self, alias, command_template, depends_on, queue, job_class):
super(JobTemplate, self).__init__(alias, command_template,... | 29.681818 | 82 | 0.600817 | 256 | 1,959 | 4.40625 | 0.257813 | 0.06383 | 0.042553 | 0.053191 | 0.297872 | 0.205674 | 0.205674 | 0.141844 | 0.141844 | 0.056738 | 0 | 0.00813 | 0.309342 | 1,959 | 65 | 83 | 30.138462 | 0.825573 | 0.095967 | 0 | 0.204545 | 0 | 0 | 0.009776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.022727 | 0.045455 | 0.454545 | 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 |
5de8d9a71ede8110843d754124af41d4ae5d5584 | 1,364 | py | Python | database/connector.py | mrg2000/proyecto-travel.org-DBP | 86476ad051f499afe2f682d869da37ff71c8e218 | [
"MIT"
] | null | null | null | database/connector.py | mrg2000/proyecto-travel.org-DBP | 86476ad051f499afe2f682d869da37ff71c8e218 | [
"MIT"
] | null | null | null | database/connector.py | mrg2000/proyecto-travel.org-DBP | 86476ad051f499afe2f682d869da37ff71c8e218 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import DeclarativeMeta
import json
class Manager:
Base = declarative_base()
session = None
def createEngine(self):
#engine = create_e... | 34.974359 | 195 | 0.65176 | 143 | 1,364 | 6.097902 | 0.468531 | 0.06422 | 0.038991 | 0.06422 | 0.077982 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060516 | 0.260997 | 1,364 | 38 | 196 | 35.894737 | 0.804563 | 0.057918 | 0 | 0 | 0 | 0.033333 | 0.132399 | 0.125389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.166667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5dec86186ea4fb34bdefcdd716ef4925515c947c | 2,176 | py | Python | 0x07-python-test_driven_development/tests/6-max_integer_test.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | 0x07-python-test_driven_development/tests/6-max_integer_test.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | 0x07-python-test_driven_development/tests/6-max_integer_test.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""Unittest for max_integer([..])
"""
import unittest
max_integer = __import__('6-max_integer').max_integer
class TestMaxInteger(unittest.TestCase):
"""unittest class for max_integer"""
def test_module_docstring(self):
"""Tests for module docsting"""
m = __import__('6-max_in... | 30.222222 | 58 | 0.601563 | 292 | 2,176 | 4.260274 | 0.291096 | 0.136656 | 0.115756 | 0.120579 | 0.34164 | 0.34164 | 0.162379 | 0.138264 | 0.086817 | 0.059486 | 0 | 0.048065 | 0.263787 | 2,176 | 71 | 59 | 30.647887 | 0.728464 | 0.233915 | 0 | 0.04878 | 0 | 0 | 0.024451 | 0 | 0 | 0 | 0 | 0 | 0.292683 | 1 | 0.292683 | false | 0 | 0.073171 | 0 | 0.390244 | 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 |
5ded49a3a86527da2a7d1ad9c6d3f9a804a3791e | 1,689 | py | Python | setup.py | Bystroushaak/attribute_wrapper | 24892ccc5915f3b3cad5d621e7ddb453368664bc | [
"MIT"
] | null | null | null | setup.py | Bystroushaak/attribute_wrapper | 24892ccc5915f3b3cad5d621e7ddb453368664bc | [
"MIT"
] | 4 | 2015-01-24T10:29:28.000Z | 2020-09-26T08:03:08.000Z | setup.py | Bystroushaak/attribute_wrapper | 24892ccc5915f3b3cad5d621e7ddb453368664bc | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
from setuptools import setup, find_packages
# Variables ===================================================================
changelog = open('CHANGES.rst... | 24.128571 | 79 | 0.528715 | 170 | 1,689 | 5.170588 | 0.588235 | 0.051195 | 0.018203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006818 | 0.218472 | 1,689 | 69 | 80 | 24.478261 | 0.659091 | 0.182948 | 0 | 0.042553 | 0 | 0 | 0.280612 | 0.01895 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021277 | 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 |
5ded68db9437f45ecc0541814f418c3046ff37e6 | 1,225 | py | Python | super3d/plot_depth_var.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | 2 | 2015-09-18T00:17:16.000Z | 2019-02-06T04:41:29.000Z | super3d/plot_depth_var.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | super3d/plot_depth_var.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | import os;
import optparse;
import time;
import sys;
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cmt
import glob
dirs = [];
dirs.append("/Users/isa/Experiments/super3d/sr2_3scene_sr2_images");
dirs.append("/Users/isa/Experiments/super3d/scene_sr2_images");
dirs.append("/Users/isa/Ex... | 24.019608 | 90 | 0.622857 | 172 | 1,225 | 4.284884 | 0.47093 | 0.066486 | 0.061058 | 0.07327 | 0.184532 | 0.184532 | 0.135685 | 0.135685 | 0.135685 | 0 | 0 | 0.023429 | 0.233469 | 1,225 | 50 | 91 | 24.5 | 0.761448 | 0 | 0 | 0 | 0 | 0 | 0.234286 | 0.110204 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.228571 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5df00d510a2343c8c9453e526973be27c8e9ec8f | 641 | py | Python | run.py | vmalepati1/Hotel-Admin-Dashboard | 751e4af2ccdc72f703b81b934f6b60c8a1ad32b2 | [
"MIT"
] | null | null | null | run.py | vmalepati1/Hotel-Admin-Dashboard | 751e4af2ccdc72f703b81b934f6b60c8a1ad32b2 | [
"MIT"
] | null | null | null | run.py | vmalepati1/Hotel-Admin-Dashboard | 751e4af2ccdc72f703b81b934f6b60c8a1ad32b2 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
License: Commercial
Copyright (c) 2019 - present AppSeed.us
"""
from flask_migrate import Migrate
from os import environ
from sys import exit
from config import config_dict
from app import create_app, db
from app.base.momentjs import momentjs
get_config_mode = environ.get('APPSEED_CONFI... | 22.892857 | 74 | 0.75819 | 91 | 641 | 5.076923 | 0.505495 | 0.12987 | 0.056277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009025 | 0.135725 | 641 | 27 | 75 | 23.740741 | 0.82491 | 0.131045 | 0 | 0 | 0 | 0 | 0.185792 | 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 |
5df173a690678ba167ea2f2d173256295fec5e87 | 7,083 | py | Python | parse.py | wikkiewikkie/mobbagtools | d31d0befd186cd586ec2bef92b227fc58da49d8b | [
"MIT"
] | null | null | null | parse.py | wikkiewikkie/mobbagtools | d31d0befd186cd586ec2bef92b227fc58da49d8b | [
"MIT"
] | null | null | null | parse.py | wikkiewikkie/mobbagtools | d31d0befd186cd586ec2bef92b227fc58da49d8b | [
"MIT"
] | null | null | null | import sqlite3
import datetime
from collections import OrderedDict
from email import generator
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.utils import format_datetime
class MobilyzeCase(object):
d... | 32.049774 | 154 | 0.579274 | 825 | 7,083 | 4.808485 | 0.184242 | 0.025712 | 0.038316 | 0.025712 | 0.236703 | 0.225107 | 0.180489 | 0.13335 | 0.106126 | 0.078145 | 0 | 0.008047 | 0.298179 | 7,083 | 220 | 155 | 32.195455 | 0.789982 | 0 | 0 | 0.197368 | 0 | 0.013158 | 0.138696 | 0.027391 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059211 | null | null | 0.032895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5df773154b9710f51e7513824c56bb54088e2a8e | 851 | py | Python | tests/test_utils.py | Cloudac7/miko-analyzer | f5cb599b582c8ddc0926b111a6d04b836bb2ee4c | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | Cloudac7/miko-analyzer | f5cb599b582c8ddc0926b111a6d04b836bb2ee4c | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | Cloudac7/miko-analyzer | f5cb599b582c8ddc0926b111a6d04b836bb2ee4c | [
"Apache-2.0"
] | null | null | null | from miko.utils.lammps import *
def test_dict_lists_combination():
ori_dict = {
"param1": [0, 1, 2],
"param2": [3, 4],
"param3": [5, 6]
}
prod_dict_list = [
{"param1": 0, "param2": 3, "param3": 5},
{"param1": 0, "param2": 3, "param3": 6},
{"param1": 0, "para... | 34.04 | 61 | 0.474736 | 106 | 851 | 3.707547 | 0.226415 | 0.124682 | 0.198473 | 0.10687 | 0.776081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134647 | 0.284371 | 851 | 24 | 62 | 35.458333 | 0.510673 | 0 | 0 | 0 | 0 | 0 | 0.274971 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.090909 | 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 |
5df795957e38fca866082dac50eda0b272248b66 | 187 | py | Python | 002game_guessing.py | tedhie/Sandbox | 4c9f236639f834f89b1e5653b30a529ad1716e35 | [
"MIT"
] | 1 | 2021-07-07T18:17:48.000Z | 2021-07-07T18:17:48.000Z | 002game_guessing.py | tedhie/Sandbox | 4c9f236639f834f89b1e5653b30a529ad1716e35 | [
"MIT"
] | null | null | null | 002game_guessing.py | tedhie/Sandbox | 4c9f236639f834f89b1e5653b30a529ad1716e35 | [
"MIT"
] | null | null | null | import random
z=0
y=random.randint(1,10)
while z != 1:
x=int(input('Gissa nummret!'))
if x > y :
print('För högt')
elif x < y:
print('För lågt')
else:
print('Du vinner!')
z=1
| 14.384615 | 31 | 0.59893 | 35 | 187 | 3.2 | 0.657143 | 0.035714 | 0.125 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.208556 | 187 | 12 | 32 | 15.583333 | 0.716216 | 0 | 0 | 0 | 0 | 0 | 0.213904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dfdb8b609533cf7205635d05aaf9921bb743335 | 17,320 | py | Python | NewYorkBC/sine/setplot.py | YuchengZhang-hub/Tidal-examples | ca29c579404bdedc74ee17a22c616f12dd327d41 | [
"BSD-3-Clause"
] | null | null | null | NewYorkBC/sine/setplot.py | YuchengZhang-hub/Tidal-examples | ca29c579404bdedc74ee17a22c616f12dd327d41 | [
"BSD-3-Clause"
] | null | null | null | NewYorkBC/sine/setplot.py | YuchengZhang-hub/Tidal-examples | ca29c579404bdedc74ee17a22c616f12dd327d41 | [
"BSD-3-Clause"
] | null | null | null |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
from __future__ import absolute_import
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as... | 32.741021 | 79 | 0.626443 | 2,165 | 17,320 | 4.861432 | 0.171363 | 0.035344 | 0.017102 | 0.03848 | 0.693112 | 0.669454 | 0.662233 | 0.648361 | 0.625083 | 0.625083 | 0 | 0.043495 | 0.230081 | 17,320 | 528 | 80 | 32.80303 | 0.745782 | 0.15664 | 0 | 0.65097 | 0 | 0 | 0.072248 | 0.009126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033241 | false | 0.00277 | 0.058172 | 0 | 0.099723 | 0.019391 | 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 |
5dfe3ea1d6f15a6be92155f1b78d61c99175507e | 339 | py | Python | easy_thumbnails_admin/utils/json.py | Apkawa/easy-thumbnails-admin | 9d7a38f215cdac53a663b00f1d4ff3a3c2a54eb4 | [
"MIT"
] | null | null | null | easy_thumbnails_admin/utils/json.py | Apkawa/easy-thumbnails-admin | 9d7a38f215cdac53a663b00f1d4ff3a3c2a54eb4 | [
"MIT"
] | null | null | null | easy_thumbnails_admin/utils/json.py | Apkawa/easy-thumbnails-admin | 9d7a38f215cdac53a663b00f1d4ff3a3c2a54eb4 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
from django.core.serializers.json import DjangoJSONEncoder
class CustomJsonEncoder(DjangoJSONEncoder):
def default(self, o):
if hasattr(o, '__class__') and o.__class__.__name__ == '__proxy__':
return str(o)
return DjangoJSONEncode... | 30.818182 | 75 | 0.725664 | 39 | 339 | 5.769231 | 0.666667 | 0.097778 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00361 | 0.182891 | 339 | 10 | 76 | 33.9 | 0.808664 | 0.038348 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 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 |
5dff8b9139460b1a9661dfea05987d8c48a307db | 1,451 | py | Python | gitmodel/test/fields/models.py | douglaslassance/python-gitmodel | 730e62104d900d6c3450db5d4c2fa6dcfa0da03a | [
"BSD-3-Clause"
] | 14 | 2015-01-10T18:23:17.000Z | 2018-10-13T02:07:38.000Z | gitmodel/test/fields/models.py | douglaslassance/python-gitmodel | 730e62104d900d6c3450db5d4c2fa6dcfa0da03a | [
"BSD-3-Clause"
] | null | null | null | gitmodel/test/fields/models.py | douglaslassance/python-gitmodel | 730e62104d900d6c3450db5d4c2fa6dcfa0da03a | [
"BSD-3-Clause"
] | 3 | 2015-01-08T15:40:37.000Z | 2021-11-29T21:08:53.000Z | import pygit2
from gitmodel import fields
from gitmodel import models
class Person(models.GitModel):
slug = fields.SlugField()
first_name = fields.CharField()
last_name = fields.CharField()
email = fields.EmailField()
age = fields.IntegerField(required=False)
account_balance = fields.DecimalF... | 30.229167 | 68 | 0.73122 | 162 | 1,451 | 6.475309 | 0.41358 | 0.148713 | 0.07245 | 0.045758 | 0.129647 | 0.129647 | 0.129647 | 0.129647 | 0.129647 | 0.129647 | 0 | 0.001638 | 0.158511 | 1,451 | 47 | 69 | 30.87234 | 0.857494 | 0 | 0 | 0.166667 | 0 | 0 | 0.009649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027778 | 0.083333 | 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 |
b902cde2a15850cd981820243cf49e6903cd8367 | 477 | py | Python | src/olympia/addons/migrations/0018_auto_20200803_1311.py | osamamagdy/addons-server | f7326c94d1d40c71eca991242288edf799146182 | [
"BSD-3-Clause"
] | 843 | 2016-02-09T13:00:37.000Z | 2022-03-20T19:17:06.000Z | src/olympia/addons/migrations/0018_auto_20200803_1311.py | osamamagdy/addons-server | f7326c94d1d40c71eca991242288edf799146182 | [
"BSD-3-Clause"
] | 10,187 | 2016-02-05T23:51:05.000Z | 2022-03-31T15:24:44.000Z | src/olympia/addons/migrations/0018_auto_20200803_1311.py | osamamagdy/addons-server | f7326c94d1d40c71eca991242288edf799146182 | [
"BSD-3-Clause"
] | 551 | 2016-02-08T20:32:16.000Z | 2022-03-15T16:49:24.000Z | # Generated by Django 2.2.14 on 2020-08-03 13:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('addons', '0017_addonreviewerflags_notified_about_expiring_delayed_rejections'),
]
operations = [
migrations.AlterField(
model_n... | 25.105263 | 89 | 0.675052 | 48 | 477 | 6.479167 | 0.770833 | 0.083601 | 0.135048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054645 | 0.232704 | 477 | 18 | 90 | 26.5 | 0.795082 | 0.096436 | 0 | 0 | 1 | 0 | 0.293706 | 0.237762 | 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 |
b905642f3d30f79934524fbf474db158103d6ed8 | 1,111 | py | Python | examples/get_video_thumbnail.py | xDeathzone117x/ffm | 4cb7d26f55208b01b123f07b13108bf4143794e2 | [
"Apache-2.0"
] | 6,824 | 2017-05-23T20:14:33.000Z | 2022-03-31T11:52:34.000Z | examples/get_video_thumbnail.py | xDeathzone117x/ffm | 4cb7d26f55208b01b123f07b13108bf4143794e2 | [
"Apache-2.0"
] | 578 | 2017-05-24T09:23:24.000Z | 2022-03-30T22:12:46.000Z | examples/get_video_thumbnail.py | xDeathzone117x/ffm | 4cb7d26f55208b01b123f07b13108bf4143794e2 | [
"Apache-2.0"
] | 732 | 2017-05-23T20:14:31.000Z | 2022-03-24T03:31:50.000Z | #!/usr/bin/env python
from __future__ import unicode_literals, print_function
import argparse
import ffmpeg
import sys
parser = argparse.ArgumentParser(description='Generate video thumbnail')
parser.add_argument('in_filename', help='Input filename')
parser.add_argument('out_filename', help='Output filename')
parser.a... | 30.861111 | 87 | 0.684068 | 139 | 1,111 | 5.23741 | 0.489209 | 0.049451 | 0.093407 | 0.068681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0.19712 | 1,111 | 35 | 88 | 31.742857 | 0.807175 | 0.018002 | 0 | 0.071429 | 1 | 0 | 0.172477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.178571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b90994f6c46652c9acf0bcace6206135230ccf8d | 2,044 | py | Python | redleader/managers/elasticbeanstalk.py | mmcdermo/RedLeader | 13c5261e839fc3373a8de00d49187220778091a4 | [
"Apache-2.0"
] | null | null | null | redleader/managers/elasticbeanstalk.py | mmcdermo/RedLeader | 13c5261e839fc3373a8de00d49187220778091a4 | [
"Apache-2.0"
] | null | null | null | redleader/managers/elasticbeanstalk.py | mmcdermo/RedLeader | 13c5261e839fc3373a8de00d49187220778091a4 | [
"Apache-2.0"
] | null | null | null | import os.path
import os
import time
import tarfile
import random
from zipfile import ZipFile
import redleader.util as util
import botocore
class ElasticBeanstalkManager(object):
def __init__(self, context):
self._context = context
def upload_package(self, bucket_name, path, name):
print("Uplo... | 39.307692 | 120 | 0.63454 | 238 | 2,044 | 5.273109 | 0.382353 | 0.043028 | 0.047809 | 0.050996 | 0.208765 | 0.154582 | 0.065339 | 0.065339 | 0 | 0 | 0 | 0.00542 | 0.277887 | 2,044 | 51 | 121 | 40.078431 | 0.844851 | 0.072896 | 0 | 0 | 0 | 0 | 0.068747 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.097561 | false | 0 | 0.195122 | 0 | 0.365854 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b90ac6a5044be9df3b77ae59c87ce6b58a17078d | 373 | py | Python | basic-twisted/countdown.py | 116pythonZS/hxl-Twisted | 1bb8eb39d292a384739ac53fe28358f3c553843b | [
"MIT"
] | null | null | null | basic-twisted/countdown.py | 116pythonZS/hxl-Twisted | 1bb8eb39d292a384739ac53fe28358f3c553843b | [
"MIT"
] | null | null | null | basic-twisted/countdown.py | 116pythonZS/hxl-Twisted | 1bb8eb39d292a384739ac53fe28358f3c553843b | [
"MIT"
] | null | null | null |
class Countdown(object):
counter = 5
def count(self):
if self.counter == 0:
reactor.stop()
else:
print self.counter, '...'
self.counter -= 1
reactor.callLater(1, self.count)
from twisted.internet import reactor
reactor.callWhenRunning(Countdown(... | 19.631579 | 44 | 0.589812 | 41 | 373 | 5.365854 | 0.560976 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.286863 | 373 | 18 | 45 | 20.722222 | 0.81203 | 0 | 0 | 0 | 0 | 0 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b90dfd61b604dd2bcae7a33e8b13e204734b80bd | 11,822 | py | Python | accelbyte_py_sdk/api/iam/operations/o_auth2_0/token_grant_v3.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/iam/operations/o_auth2_0/token_grant_v3.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/iam/operations/o_auth2_0/token_grant_v3.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | # Auto-generated at 2021-09-27T17:01:25.398561+08:00
# from: Justice Iam Service (4.1.0)
# Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
# pylint: disable=duplicate-code
# pylint: ... | 33.873926 | 160 | 0.606919 | 1,323 | 11,822 | 5.216175 | 0.13681 | 0.033908 | 0.018258 | 0.032024 | 0.427184 | 0.25576 | 0.155485 | 0.132445 | 0.07825 | 0.060861 | 0 | 0.011153 | 0.302233 | 11,822 | 348 | 161 | 33.971264 | 0.825433 | 0.216968 | 0 | 0.215311 | 1 | 0 | 0.089427 | 0.003634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114833 | false | 0 | 0.028708 | 0.043062 | 0.354067 | 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 |
b90f5152095a18d997ddc3f2857f1561d24b129d | 1,684 | py | Python | render.py | em0sh/unrealcv-datagen | 32d03797f129482117eee1ea9e3c6ce35257c97e | [
"MIT"
] | null | null | null | render.py | em0sh/unrealcv-datagen | 32d03797f129482117eee1ea9e3c6ce35257c97e | [
"MIT"
] | null | null | null | render.py | em0sh/unrealcv-datagen | 32d03797f129482117eee1ea9e3c6ce35257c97e | [
"MIT"
] | null | null | null | # Standard libraries
from io import BytesIO
import math
import plot
# Libraries
import numpy as np
from PIL import Image
# Modules
import io
# TODO: This parameter needs to be tuned for each scene. This should be
# Distance beyond the object being measured for depth that should be ignored (skybox)
maxDist = 25
d... | 21.589744 | 95 | 0.729216 | 238 | 1,684 | 5.151261 | 0.453782 | 0.022023 | 0.041599 | 0.056281 | 0.063622 | 0.044046 | 0 | 0 | 0 | 0 | 0 | 0.005014 | 0.171021 | 1,684 | 77 | 96 | 21.87013 | 0.873209 | 0.349762 | 0 | 0 | 0 | 0 | 0.064972 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 1 | 0.135135 | false | 0 | 0.162162 | 0 | 0.297297 | 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 |
f8d42aabf0df9c5b029142ceef908fde3f2c2bba | 14,623 | py | Python | nitro/tcp.py | jmcvetta/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 28 | 2015-04-24T12:04:08.000Z | 2022-01-07T15:13:10.000Z | nitro/tcp.py | Magnus167/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 1 | 2015-12-09T10:21:59.000Z | 2015-12-16T05:38:55.000Z | nitro/tcp.py | Magnus167/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 18 | 2015-01-01T02:16:49.000Z | 2021-08-12T04:14:57.000Z | import sys, os
from struct import pack, unpack
from socket import socket, AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR, SO_ERROR
from socket import error as sock_error
from nitro.async import AsyncOp
from nitro.errors import *
def tcpListen( addr, reactor, callback ) :
l = TCPListener( reactor, callbac... | 36.017241 | 86 | 0.563427 | 1,306 | 14,623 | 6.250383 | 0.127106 | 0.038221 | 0.024011 | 0.026461 | 0.380987 | 0.309078 | 0.257381 | 0.22504 | 0.122014 | 0.108294 | 0 | 0.003803 | 0.352595 | 14,623 | 405 | 87 | 36.106173 | 0.858456 | 0 | 0 | 0.474138 | 0 | 0 | 0.00204 | 0 | 0 | 0 | 0 | 0 | 0.04023 | 0 | null | null | 0.002874 | 0.017241 | 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 |
f8d5ff1be0ba5fe2781aec5a7593ec77f4e64b86 | 1,360 | py | Python | homeassistant/components/orangepi_gpio/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 22,481 | 2020-03-02T13:09:59.000Z | 2022-03-31T23:34:28.000Z | homeassistant/components/orangepi_gpio/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/orangepi_gpio/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,411 | 2020-03-02T14:19:20.000Z | 2022-03-31T22:46:07.000Z | """Support for controlling GPIO pins of a Orange Pi."""
import logging
from OPi import GPIO
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
from .const import PIN_MODES
_LOGGER = logging.getLogger(__name__)
DOMAIN = "orangepi_gpio"
async def async_setup(hass, config):
"""... | 25.660377 | 83 | 0.704412 | 196 | 1,360 | 4.693878 | 0.372449 | 0.038043 | 0.026087 | 0.034783 | 0.126087 | 0.086957 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0.183824 | 1,360 | 52 | 84 | 26.153846 | 0.828829 | 0.170588 | 0 | 0 | 0 | 0 | 0.112381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0 | 0.48 | 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 |
f8dc1369323199950924f8a7fb3205f6881fc661 | 827 | py | Python | 2013-06-pyconca/fixme.py | jvns/talks | 49ab56217593db5be71ba800fbc0da4d532e33a3 | [
"MIT"
] | 28 | 2015-04-05T22:12:27.000Z | 2021-10-08T08:54:02.000Z | 2013-06-pyconca/fixme.py | jvns/talks | 49ab56217593db5be71ba800fbc0da4d532e33a3 | [
"MIT"
] | null | null | null | 2013-06-pyconca/fixme.py | jvns/talks | 49ab56217593db5be71ba800fbc0da4d532e33a3 | [
"MIT"
] | 29 | 2015-01-18T16:57:53.000Z | 2021-05-28T22:05:47.000Z | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Copyright (c) 2013 - Damián Avila
#
# Distributed under the terms of the Modified BSD License.
#
# A little snippet to fix @media print issue printing slides from IPython
#-------------------------------------------... | 30.62963 | 78 | 0.53688 | 100 | 827 | 4.4 | 0.67 | 0.045455 | 0.077273 | 0.095455 | 0.140909 | 0.140909 | 0.140909 | 0 | 0 | 0 | 0 | 0.020029 | 0.154776 | 827 | 26 | 79 | 31.807692 | 0.609442 | 0.407497 | 0 | 0 | 0 | 0 | 0.318087 | 0.143451 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8ddd78bf329399538e6bb345b3f196c54d4fe46 | 1,836 | py | Python | oscar/lib/python2.7/site-packages/django_tables2/export/views.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/django_tables2/export/views.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/django_tables2/export/views.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from .export import TableExport
class ExportMixin(object):
'''
Support various export formats for the table data.
`ExportMixin` looks for some attributes on the class to change it's behaviour:
Attributes:
export_trigger_param (str): is the... | 39.913043 | 97 | 0.666667 | 215 | 1,836 | 5.483721 | 0.372093 | 0.101781 | 0.045802 | 0.028838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260893 | 1,836 | 45 | 98 | 40.8 | 0.868828 | 0.445534 | 0 | 0 | 0 | 0 | 0.016502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.052632 | 0.631579 | 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 |
f8df7f3897159ad2dd5351787ea9498f0bff9491 | 3,749 | py | Python | cdn_so/bundle/wsgi/so.py | MobileCloudNetworking/cdnaas | a4b990bd2af6fcf368678cdcc2eb6b37acc19b4b | [
"Apache-2.0"
] | null | null | null | cdn_so/bundle/wsgi/so.py | MobileCloudNetworking/cdnaas | a4b990bd2af6fcf368678cdcc2eb6b37acc19b4b | [
"Apache-2.0"
] | null | null | null | cdn_so/bundle/wsgi/so.py | MobileCloudNetworking/cdnaas | a4b990bd2af6fcf368678cdcc2eb6b37acc19b4b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013-2015, Intel Performance Learning Solutions Ltd, Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 28.401515 | 102 | 0.595359 | 438 | 3,749 | 5.015982 | 0.440639 | 0.02731 | 0.016386 | 0.014565 | 0.185253 | 0.129267 | 0.11015 | 0.11015 | 0.11015 | 0.061903 | 0 | 0.008018 | 0.301414 | 3,749 | 131 | 103 | 28.618321 | 0.830851 | 0.38757 | 0 | 0.285714 | 0 | 0 | 0.113035 | 0 | 0 | 0 | 0 | 0.007634 | 0 | 1 | 0.183673 | false | 0.163265 | 0.122449 | 0 | 0.387755 | 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 |
f8e216b24f6c1a678eb211c0dac1a4396b4563f1 | 3,925 | py | Python | model_zoo/inflate_from_2d_model.py | bperez7/moments_models | d83e67b5d85f611ebf8dc10bc0d7569c962a37c2 | [
"BSD-2-Clause"
] | null | null | null | model_zoo/inflate_from_2d_model.py | bperez7/moments_models | d83e67b5d85f611ebf8dc10bc0d7569c962a37c2 | [
"BSD-2-Clause"
] | null | null | null | model_zoo/inflate_from_2d_model.py | bperez7/moments_models | d83e67b5d85f611ebf8dc10bc0d7569c962a37c2 | [
"BSD-2-Clause"
] | null | null | null | import torch
from collections import OrderedDict
def inflate_from_2d_model(state_dict_2d, state_dict_3d, skipped_keys=None, inflated_dim=2):
if skipped_keys is None:
skipped_keys = []
missed_keys = []
new_keys = []
for old_key in state_dict_2d.keys():
if old_key not in state_dict_3d.k... | 41.755319 | 98 | 0.611465 | 546 | 3,925 | 4.115385 | 0.203297 | 0.160214 | 0.096128 | 0.073431 | 0.289275 | 0.203382 | 0.147308 | 0.072096 | 0.037383 | 0.037383 | 0 | 0.012798 | 0.283312 | 3,925 | 93 | 99 | 42.204301 | 0.785994 | 0.139873 | 0 | 0.15493 | 0 | 0 | 0.04463 | 0 | 0 | 0 | 0 | 0.010753 | 0.028169 | 1 | 0.042254 | false | 0 | 0.028169 | 0 | 0.112676 | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f8e32279dc665b991724a9af71d90bbbf2d1a86b | 423 | py | Python | cajas/tenant/admin.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null | cajas/tenant/admin.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null | cajas/tenant/admin.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null |
from django.db import connection
from django.contrib import admin
from .models import Platform
@admin.register(Platform)
class TenantAdmin(admin.ModelAdmin):
list_display = ('name', 'schema_name', 'domain_url')
def get_queryset(self, request):
schema_name = connection.schema_name
if schema... | 23.5 | 65 | 0.702128 | 50 | 423 | 5.78 | 0.56 | 0.138408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200946 | 423 | 17 | 66 | 24.882353 | 0.85503 | 0 | 0 | 0 | 0 | 0 | 0.07346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f8e32a014b58c8fe0bb207b523e254a7d53cea00 | 2,467 | py | Python | tdapi/kb.py | borwick/tdapi | 1059eb79e78369a42b204471c0a0b5d4356e06f7 | [
"BSD-3-Clause"
] | 4 | 2016-02-11T21:42:08.000Z | 2020-12-15T18:56:58.000Z | tdapi/kb.py | borwick/tdapi | 1059eb79e78369a42b204471c0a0b5d4356e06f7 | [
"BSD-3-Clause"
] | 2 | 2018-05-16T20:57:03.000Z | 2021-11-16T18:10:24.000Z | tdapi/kb.py | borwick/tdapi | 1059eb79e78369a42b204471c0a0b5d4356e06f7 | [
"BSD-3-Clause"
] | null | null | null | import copy
import tdapi
import tdapi.obj
class TDKnowledgeArticleManager(tdapi.obj.TDObjectManager):
def search(self, data):
new_data = copy.deepcopy(data)
if not new_data.has_key('ReturnCount'):
new_data['ReturnCount'] = 100000
return [self.object_class(obj)
... | 29.722892 | 67 | 0.559384 | 272 | 2,467 | 4.808824 | 0.286765 | 0.06422 | 0.033639 | 0.043578 | 0.204128 | 0.108563 | 0.108563 | 0.108563 | 0.108563 | 0.108563 | 0 | 0.003727 | 0.347385 | 2,467 | 82 | 68 | 30.085366 | 0.808696 | 0.014187 | 0 | 0.171875 | 0 | 0 | 0.044463 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.125 | false | 0.015625 | 0.046875 | 0.03125 | 0.296875 | 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 |
f8e3db89d89dc6a9d4f9d975c895b3f61337a124 | 3,369 | py | Python | studentmithra/urls.py | vodnalasricharan/StudentMithra | bfe1f07d7c38a13c3e6690bfbb5be8c26b5b72a4 | [
"MIT"
] | 2 | 2021-07-28T03:53:28.000Z | 2021-07-29T06:27:09.000Z | studentmithra/urls.py | rsaikrishnagithub/StudentMithra | bfe1f07d7c38a13c3e6690bfbb5be8c26b5b72a4 | [
"MIT"
] | null | null | null | studentmithra/urls.py | rsaikrishnagithub/StudentMithra | bfe1f07d7c38a13c3e6690bfbb5be8c26b5b72a4 | [
"MIT"
] | 3 | 2021-07-27T13:46:18.000Z | 2021-07-29T06:24:09.000Z | """studentmithra URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | 44.92 | 156 | 0.700208 | 435 | 3,369 | 5.294253 | 0.257471 | 0.015632 | 0.051672 | 0.031264 | 0.18541 | 0.130699 | 0.032566 | 0 | 0 | 0 | 0 | 0.0034 | 0.127041 | 3,369 | 74 | 157 | 45.527027 | 0.779667 | 0.274859 | 0 | 0 | 0 | 0 | 0.352991 | 0.087399 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.128205 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f8ea03d537616f6b387b18a0d6895b0941121421 | 1,842 | py | Python | wpd.py | richteer/wpd | afddedc1f6120c3408b4a240ff09c9f716b337c5 | [
"BSD-3-Clause"
] | null | null | null | wpd.py | richteer/wpd | afddedc1f6120c3408b4a240ff09c9f716b337c5 | [
"BSD-3-Clause"
] | null | null | null | wpd.py | richteer/wpd | afddedc1f6120c3408b4a240ff09c9f716b337c5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import os
import json
import socket
import threading
import sys
import time
import random
class Wpd():
config = {}
pictures = {}
sock = None
def __init__(self, port):
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.bind(('', int(port))) # TODO: load from config
... | 23.922078 | 82 | 0.674267 | 270 | 1,842 | 4.492593 | 0.414815 | 0.026381 | 0.023083 | 0.031327 | 0.019786 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010316 | 0.15798 | 1,842 | 76 | 83 | 24.236842 | 0.77176 | 0.061889 | 0 | 0.067797 | 0 | 0 | 0.111949 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.152542 | false | 0 | 0.118644 | 0 | 0.355932 | 0.084746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f8ea34a7b126517455d7c514d5dfd529f1b7c5d3 | 552 | py | Python | main.py | alejandrosame/importilo | f07ce8a796b8f3936994fe732695536f4118cf41 | [
"MIT"
] | null | null | null | main.py | alejandrosame/importilo | f07ce8a796b8f3936994fe732695536f4118cf41 | [
"MIT"
] | null | null | null | main.py | alejandrosame/importilo | f07ce8a796b8f3936994fe732695536f4118cf41 | [
"MIT"
] | null | null | null | from typing import List, Optional
from enum import Enum
from fastapi import FastAPI, status
from pydantic import BaseModel
class Fonto(BaseModel):
nomo: str
priskribo: Optional[str] = None
fontoj = [{"nomo": "Meetup"}, {"nomo": "Duolingo"}]
class FontNomoj(str, Enum):
meetup = "meetup"
duolingo =... | 17.25 | 79 | 0.686594 | 70 | 552 | 5.342857 | 0.528571 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006593 | 0.175725 | 552 | 31 | 80 | 17.806452 | 0.815385 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
f8eb6dde8c0a61d1f30f0fb20cd673be3acbd42b | 1,161 | py | Python | tests/core/test_partition.py | tim-werner/kartothek | 06653e6e2fd39652874faf2bd20feca81ae52683 | [
"MIT"
] | null | null | null | tests/core/test_partition.py | tim-werner/kartothek | 06653e6e2fd39652874faf2bd20feca81ae52683 | [
"MIT"
] | null | null | null | tests/core/test_partition.py | tim-werner/kartothek | 06653e6e2fd39652874faf2bd20feca81ae52683 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from kartothek.core.partition import Partition
def test_roundtrip():
expected = {"files": {"Queejeb3": "file.parquet"}}
result = Partition.from_v2_dict("partition_label", expected).to_dict()
assert expected == result
def test_roundtrip_no_metadata():
expected ... | 29.769231 | 81 | 0.677003 | 135 | 1,161 | 5.592593 | 0.303704 | 0.148344 | 0.090066 | 0.127152 | 0.601325 | 0.516556 | 0.431788 | 0.388079 | 0.32053 | 0.32053 | 0 | 0.007136 | 0.155039 | 1,161 | 38 | 82 | 30.552632 | 0.762487 | 0.018088 | 0 | 0.333333 | 0 | 0 | 0.211775 | 0.027241 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.208333 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8ec46116d2543c6fe2dd59c1a317e662d5e6039 | 2,173 | py | Python | Python/Python Automation/Python Automation/File Locker/password_manager.py | Yuo86653/File-Locker-made-with-python | 90b98c98179f4c8859b59d26849659b7de607eb4 | [
"MIT"
] | null | null | null | Python/Python Automation/Python Automation/File Locker/password_manager.py | Yuo86653/File-Locker-made-with-python | 90b98c98179f4c8859b59d26849659b7de607eb4 | [
"MIT"
] | null | null | null | Python/Python Automation/Python Automation/File Locker/password_manager.py | Yuo86653/File-Locker-made-with-python | 90b98c98179f4c8859b59d26849659b7de607eb4 | [
"MIT"
] | null | null | null |
import sqlite3
from hashlib import sha256
ADMIN_PASSWORD = "123456"
connect = input("What is your password?\n")
while connect != ADMIN_PASSWORD:
connect = input("What is your password?\n")
if connect == "q":
break
conn = sqlite3.connect('pass_manager.db')
def create_password(pass_key, service, ad... | 31.492754 | 123 | 0.623562 | 285 | 2,173 | 4.592982 | 0.305263 | 0.068755 | 0.038197 | 0.032086 | 0.304813 | 0.304813 | 0.285714 | 0.23835 | 0.186402 | 0.186402 | 0 | 0.01747 | 0.236079 | 2,173 | 68 | 124 | 31.955882 | 0.771084 | 0 | 0 | 0.163265 | 0 | 0 | 0.246196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0.469388 | 0.040816 | 0.040816 | 0.204082 | 0.204082 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f8f3158760a3b0cd9a6e89f582068181be473c7d | 19,921 | py | Python | s3backuprestore/tagging.py | CologneBroadcastingCenter/s3-backup-restore | a2f6a0b4e8970db0575556561e4b9238430656f1 | [
"Apache-2.0"
] | null | null | null | s3backuprestore/tagging.py | CologneBroadcastingCenter/s3-backup-restore | a2f6a0b4e8970db0575556561e4b9238430656f1 | [
"Apache-2.0"
] | 3 | 2018-07-05T12:30:51.000Z | 2018-07-18T14:47:33.000Z | s3backuprestore/tagging.py | CologneBroadcastingCenter/s3-backup-restore | a2f6a0b4e8970db0575556561e4b9238430656f1 | [
"Apache-2.0"
] | 2 | 2018-12-11T17:11:55.000Z | 2019-02-10T12:28:20.000Z | import multiprocessing
import queue
import sys
import threading
import time
from random import randint
from datetime import datetime
from .cw import put_metric
from .log import logger
class _CheckDeletedTag(threading.Thread):
def __init__(self, config, check_deleted_tag_queue, restore_queue,
cw_... | 44.766292 | 82 | 0.510717 | 2,049 | 19,921 | 4.817472 | 0.119082 | 0.044575 | 0.044068 | 0.05268 | 0.743795 | 0.706311 | 0.664674 | 0.607639 | 0.598926 | 0.562456 | 0 | 0.0079 | 0.396315 | 19,921 | 444 | 83 | 44.867117 | 0.812905 | 0.15446 | 0 | 0.653495 | 0 | 0 | 0.127999 | 0.004212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024316 | false | 0 | 0.027356 | 0 | 0.06383 | 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 |
f8f32763efd6f6b18afbd78ffd262164b0e98c93 | 9,400 | py | Python | userbot/plugins/assistant/adminbot.py | justteen/BUZZ-USERBOT | 55651cce150e1d04d2c61efb2565ef9f46b42933 | [
"BSL-1.0"
] | null | null | null | userbot/plugins/assistant/adminbot.py | justteen/BUZZ-USERBOT | 55651cce150e1d04d2c61efb2565ef9f46b42933 | [
"BSL-1.0"
] | null | null | null | userbot/plugins/assistant/adminbot.py | justteen/BUZZ-USERBOT | 55651cce150e1d04d2c61efb2565ef9f46b42933 | [
"BSL-1.0"
] | null | null | null | from telethon import events
from telethon.errors import BadRequestError
from telethon.tl.functions.channels import EditAdminRequest, EditBannedRequest
from telethon.tl.functions.messages import UpdatePinnedMessageRequest
from telethon.tl.types import (
ChannelParticipantsAdmins,
ChatAdminRights,
ChatBannedR... | 29.652997 | 125 | 0.646489 | 1,193 | 9,400 | 4.978206 | 0.203688 | 0.070719 | 0.060616 | 0.015322 | 0.528035 | 0.446877 | 0.443004 | 0.359993 | 0.343492 | 0.343492 | 0 | 0.001428 | 0.255213 | 9,400 | 316 | 126 | 29.746835 | 0.845308 | 0.056277 | 0 | 0.507692 | 0 | 0.003846 | 0.129013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023077 | 0.019231 | 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 |
f8f4299ae3d9078c2f18ff8e273e3dd6308d9c87 | 416 | py | Python | code-tk/menub.py | shilpasayura/bk | 2b0a1aa9300da80e201264bcf80226b3c5ff4ad6 | [
"MIT"
] | 4 | 2018-09-08T10:30:27.000Z | 2021-07-23T07:59:24.000Z | code-tk/menub.py | shilpasayura/bk | 2b0a1aa9300da80e201264bcf80226b3c5ff4ad6 | [
"MIT"
] | null | null | null | code-tk/menub.py | shilpasayura/bk | 2b0a1aa9300da80e201264bcf80226b3c5ff4ad6 | [
"MIT"
] | 6 | 2018-09-07T05:54:17.000Z | 2021-07-23T07:59:25.000Z | from tkinter import *
import tkinter
top = Tk()
mb= Menubutton ( top, text="Food", relief=RAISED )
mb.grid()
mb.menu = Menu ( mb, tearoff = 0 )
mb["menu"] = mb.menu
mayoVar = IntVar()
ketchVar = IntVar()
mb.menu.add_checkbutton ( label="Rice",
variable=mayoVar )
mb.menu.add_check... | 19.809524 | 51 | 0.586538 | 50 | 416 | 4.84 | 0.52 | 0.123967 | 0.07438 | 0.165289 | 0.206612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003311 | 0.274038 | 416 | 20 | 52 | 20.8 | 0.798013 | 0 | 0 | 0 | 0 | 0 | 0.040865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
f8f42bb5c92c2b5c43d5bc8fa4770db223f3a8f4 | 414 | py | Python | leetcode/python/841_keys_and_rooms.py | VVKot/leetcode-solutions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | 4 | 2019-04-22T11:57:36.000Z | 2019-10-29T09:12:56.000Z | leetcode/python/841_keys_and_rooms.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | leetcode/python/841_keys_and_rooms.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | class Solution:
def canVisitAllRooms(self, rooms):
stack = [0]
visited = set(stack)
while stack:
curr = stack.pop()
for room in rooms[curr]:
if room not in visited:
stack.append(room)
visited.add(room)
... | 34.5 | 62 | 0.490338 | 44 | 414 | 4.613636 | 0.522727 | 0.098522 | 0.128079 | 0.17734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.415459 | 414 | 12 | 63 | 34.5 | 0.834711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 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 |
f8f6836ac65fdefcfe672f3711a7b1a7c02a145c | 4,203 | py | Python | Code/Experiment - create datasets/shuffle_prices_in_blocks.py | phuycke/Thesis | bafc63efcb617306c0d779973bfa297fd73cb64f | [
"MIT"
] | 1 | 2021-09-14T01:29:46.000Z | 2021-09-14T01:29:46.000Z | Code/Experiment - create datasets/shuffle_prices_in_blocks.py | phuycke/Thesis | bafc63efcb617306c0d779973bfa297fd73cb64f | [
"MIT"
] | null | null | null | Code/Experiment - create datasets/shuffle_prices_in_blocks.py | phuycke/Thesis | bafc63efcb617306c0d779973bfa297fd73cb64f | [
"MIT"
] | null | null | null | ##############
## Import ##
##############
from random import randint
from random import randrange, uniform
from random import shuffle
import os
import platform
import random
import numpy as np
import pandas as pd
##############
## set wd ##
##############
mydirectory = '/Users/Pieter/Dropbox/Academiejaar 2016-... | 22.121053 | 117 | 0.527005 | 484 | 4,203 | 4.561983 | 0.272727 | 0.02038 | 0.021739 | 0.014946 | 0.163043 | 0.126812 | 0.126812 | 0.126812 | 0.126812 | 0.126812 | 0 | 0.045991 | 0.192957 | 4,203 | 189 | 118 | 22.238095 | 0.604953 | 0.084463 | 0 | 0.339286 | 0 | 0.008929 | 0.111042 | 0.038161 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8faed690862f0828223873cf4d0693e720f6e68 | 2,340 | py | Python | Cinema/models/Projection.py | jmv21/oficial_project | 1098dde46a80cff312a25f30ed0e560ce2c21e2b | [
"MIT"
] | null | null | null | Cinema/models/Projection.py | jmv21/oficial_project | 1098dde46a80cff312a25f30ed0e560ce2c21e2b | [
"MIT"
] | null | null | null | Cinema/models/Projection.py | jmv21/oficial_project | 1098dde46a80cff312a25f30ed0e560ce2c21e2b | [
"MIT"
] | null | null | null | from datetime import datetime
from django.core.validators import MinValueValidator
from django.db import models
from django.core.exceptions import ValidationError
from .Actor import Discount
from .Hall import Hall, Seat
from .Movie import Movie
from .Time import Time
class Projection(models.Model):
hall = model... | 39.661017 | 103 | 0.681624 | 293 | 2,340 | 5.337884 | 0.324232 | 0.051151 | 0.044757 | 0.046036 | 0.205882 | 0.205882 | 0.205882 | 0.205882 | 0.15601 | 0.106138 | 0 | 0.005936 | 0.20812 | 2,340 | 58 | 104 | 40.344828 | 0.8381 | 0.082479 | 0 | 0.142857 | 0 | 0.02381 | 0.042464 | 0.012133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0.047619 | 0.690476 | 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 |
f8ffaf4bb9f9a48880029d327ee7a02201489254 | 22,760 | py | Python | Roku Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/dataAccess/indigosql.py | RogueProeliator/IndigoPlugins-Roku-Network-Remote | 3e8eb35d60f6f596e2782e715bf54396156e181e | [
"MIT"
] | 4 | 2016-08-11T15:57:04.000Z | 2020-02-18T19:18:02.000Z | Plex Media Server Manager.indigoPlugin/Contents/Server Plugin/RPFramework/dataAccess/indigosql.py | RogueProeliator/IndigoPlugins-Plex-Server-Manager-Plugin | cbfab0a9cca9fab5ebfa100cb586f571dba7f520 | [
"MIT"
] | 9 | 2016-07-10T03:27:02.000Z | 2019-06-15T04:42:40.000Z | Sharp TV Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/dataAccess/indigosql.py | RogueProeliator/IndigoPlugins-Sharp-TV-Network-Remote | 68ba834f68dfa665dabd96a5d466f7ca8350ced7 | [
"MIT"
] | 4 | 2016-06-20T11:49:53.000Z | 2018-07-01T16:52:14.000Z | #! /usr/bin/env python
#/////////////////////////////////////////////////////////////////////////////////////////
#/////////////////////////////////////////////////////////////////////////////////////////
# IndigoSql by RogueProeliator <adam.d.ashe@gmail.com>
# This file provides access to a SQL database in a standard ... | 47.318087 | 143 | 0.516344 | 2,152 | 22,760 | 5.391729 | 0.239312 | 0.039214 | 0.024821 | 0.018616 | 0.412221 | 0.352236 | 0.322848 | 0.27829 | 0.249074 | 0.2146 | 0 | 0.001056 | 0.126098 | 22,760 | 480 | 144 | 47.416667 | 0.582303 | 0.547759 | 0 | 0.433476 | 0 | 0 | 0.176741 | 0.016685 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025751 | 0.042918 | 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 |
5d07a184d5758e564318bf8421858baa4bdf79bf | 27,234 | py | Python | gfaqs.imp/constants.py | billyninja/gameworm | 013597120a3ec227f9164f48d8eb22e253cbdf54 | [
"Unlicense"
] | null | null | null | gfaqs.imp/constants.py | billyninja/gameworm | 013597120a3ec227f9164f48d8eb22e253cbdf54 | [
"Unlicense"
] | null | null | null | gfaqs.imp/constants.py | billyninja/gameworm | 013597120a3ec227f9164f48d8eb22e253cbdf54 | [
"Unlicense"
] | null | null | null | STORAGE_PARTIALS = "/tmp/gameworm_data_partials"
STORAGE_RAW = "/tmp/gameworm_data_raw"
GENRES = [
("All Categories", 0),
("Action", 54),
("Action >> Arcade", 289),
("Action >> Beat-'Em-Up", 318),
("Action >> Beat-'Em-Up >> 2D", 160),
("Action >> Beat-'Em-Up >> 3D", 216),
("Action >> Fight... | 30.982935 | 69 | 0.316626 | 1,760 | 27,234 | 4.882386 | 0.344318 | 0.025602 | 0.015129 | 0.00931 | 0.010241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081083 | 0.506389 | 27,234 | 878 | 70 | 31.018223 | 0.558134 | 0.001028 | 0 | 0.121387 | 0 | 0 | 0.321313 | 0.001801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002312 | false | 0 | 0.001156 | 0 | 0.003468 | 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 |
5d0af93e26e4b35c86b359bca54334bf99174db1 | 436 | py | Python | pandasaction/timeseries.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | 1 | 2017-02-13T10:25:11.000Z | 2017-02-13T10:25:11.000Z | pandasaction/timeseries.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | null | null | null | pandasaction/timeseries.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# rng = pd.date_range('1/1/2012', periods=100, freq='S')
# ts = pd.Series(np.random.randint(0,500,len(rng)), index=rng)
# print ts
# print ts.resample('5Min')
ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2... | 24.222222 | 84 | 0.633028 | 73 | 436 | 3.753425 | 0.520548 | 0.127737 | 0.080292 | 0.087591 | 0.226277 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076115 | 0.126147 | 436 | 17 | 85 | 25.647059 | 0.643045 | 0.511468 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5d14113cbc456ed3233ccfcc2d2a2fb5c64014c4 | 3,271 | py | Python | test/behave/steps/timer.py | qfruiti/mycroft-timer | 136c88b2ece119fdf7847b67334b7fb758a82377 | [
"Apache-2.0"
] | null | null | null | test/behave/steps/timer.py | qfruiti/mycroft-timer | 136c88b2ece119fdf7847b67334b7fb758a82377 | [
"Apache-2.0"
] | null | null | null | test/behave/steps/timer.py | qfruiti/mycroft-timer | 136c88b2ece119fdf7847b67334b7fb758a82377 | [
"Apache-2.0"
] | null | null | null | import time
from behave import given, then
from mycroft.audio import wait_while_speaking
from test.integrationtests.voight_kampff import (
emit_utterance,
wait_for_dialog)
@given('a {timer_length} timer is set')
@given('a timer is set for {timer_length}')
def given_set_timer_lenght(context, timer_le... | 32.71 | 74 | 0.633751 | 419 | 3,271 | 4.794749 | 0.238663 | 0.099552 | 0.045296 | 0.080139 | 0.446491 | 0.39323 | 0.39323 | 0.346939 | 0.230463 | 0.230463 | 0 | 0.005661 | 0.243962 | 3,271 | 99 | 75 | 33.040404 | 0.806712 | 0.005809 | 0 | 0.329114 | 0 | 0 | 0.275385 | 0.088923 | 0 | 0 | 0 | 0.010101 | 0.012658 | 1 | 0.101266 | false | 0 | 0.063291 | 0 | 0.189873 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d1c351f9267dcb25339f4831da48db12400c1fd | 1,549 | py | Python | krsh/cmd/cmd_configure.py | riiid/krsh | 2238daa591b19d88722892f9a9f6ada3fe83c742 | [
"Apache-2.0"
] | 133 | 2021-05-28T07:41:49.000Z | 2022-02-21T23:07:31.000Z | krsh/cmd/cmd_configure.py | DolceLatte/krsh | 2238daa591b19d88722892f9a9f6ada3fe83c742 | [
"Apache-2.0"
] | null | null | null | krsh/cmd/cmd_configure.py | DolceLatte/krsh | 2238daa591b19d88722892f9a9f6ada3fe83c742 | [
"Apache-2.0"
] | 7 | 2021-06-04T00:53:04.000Z | 2022-01-10T15:26:29.000Z | # Copyright 2021 AIOps Squad, Riiid Inc.
#
# 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 ... | 30.98 | 86 | 0.683667 | 212 | 1,549 | 4.933962 | 0.54717 | 0.057361 | 0.024857 | 0.030593 | 0.036329 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.204648 | 1,549 | 49 | 87 | 31.612245 | 0.842532 | 0.441575 | 0 | 0 | 0 | 0 | 0.183797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.380952 | 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 |
5d23e49e56f7f63e8e3304b06c3405ffbf4f1ce1 | 192 | py | Python | pyrob/samples/sample4.py | PeganovAnton/pyrob | 5e28beaa9a8b1320796b0bf4c700c941e609d700 | [
"MIT"
] | 5 | 2019-09-21T22:02:17.000Z | 2021-02-28T14:34:39.000Z | pyrob/samples/sample4.py | PeganovAnton/pyrob | 5e28beaa9a8b1320796b0bf4c700c941e609d700 | [
"MIT"
] | 2 | 2019-09-03T17:41:05.000Z | 2021-01-26T18:42:19.000Z | pyrob/samples/sample4.py | PeganovAnton/pyrob | 5e28beaa9a8b1320796b0bf4c700c941e609d700 | [
"MIT"
] | 4 | 2019-09-03T16:16:26.000Z | 2022-03-26T12:57:59.000Z | #!/usr/bin/python3
from pyrob.api import *
@task
def example1():
for i in range(5):
move_down()
move_right()
raise NotImplementedError()
run_tasks(verbose=True)
| 11.294118 | 31 | 0.630208 | 25 | 192 | 4.72 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.25 | 192 | 16 | 32 | 12 | 0.798611 | 0.088542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d2a485ff40750b5f53196ecf7f7ca5fce8854cb | 639 | py | Python | qualtrics_api_wrapper/__admin/__init__.py | wpriddy/qualtrics_wrappre | 59c32416798cd5dc6f8acea084f83f3c14b2ab6e | [
"MIT"
] | null | null | null | qualtrics_api_wrapper/__admin/__init__.py | wpriddy/qualtrics_wrappre | 59c32416798cd5dc6f8acea084f83f3c14b2ab6e | [
"MIT"
] | null | null | null | qualtrics_api_wrapper/__admin/__init__.py | wpriddy/qualtrics_wrappre | 59c32416798cd5dc6f8acea084f83f3c14b2ab6e | [
"MIT"
] | null | null | null | #%%
from qualtrics.__admin.internal_functions import mailing_list, save_settings, read_settings, _in_codes, find_args, _test_type, _is_float, _is_path, _is_file
from qualtrics.__admin.external_functions import generate_validation, reload_codes, add_survey, replacer
from qualtrics.__admin import __exceptions
from ... | 37.588235 | 157 | 0.782473 | 85 | 639 | 5.423529 | 0.552941 | 0.112798 | 0.156182 | 0.095445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13615 | 639 | 17 | 158 | 37.588235 | 0.835145 | 0.00626 | 0 | 0 | 0 | 0 | 0.059871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 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 |
5d2ba1d8d9afd12e4e0038fbed4a54a5da520427 | 725 | py | Python | examples/demolinks.py | scout-cool/Bubbletea | f0312d6f1c7fde4098d500e811f0503796973d07 | [
"Apache-2.0"
] | 10 | 2021-08-29T14:58:09.000Z | 2022-02-07T21:03:07.000Z | examples/demolinks.py | scout-cool/Bubbletea | f0312d6f1c7fde4098d500e811f0503796973d07 | [
"Apache-2.0"
] | null | null | null | examples/demolinks.py | scout-cool/Bubbletea | f0312d6f1c7fde4098d500e811f0503796973d07 | [
"Apache-2.0"
] | null | null | null | #####
# https://github.com/sushiswap/sushiswap-subgraph
# https://dev.sushi.com/api/overview
# https://github.com/sushiswap/sushiswap-analytics/blob/c6919d56523b4418d174224a6b8964982f2a7948/src/core/api/index.js
# CP_API_TOKEN = os.environ.get("cp_api_token")
#"https://gateway.thegraph.com/api/c8eae2e5ac9d2e9d5d5459c33... | 45.3125 | 126 | 0.748966 | 81 | 725 | 6.654321 | 0.493827 | 0.102041 | 0.089054 | 0.105751 | 0.296846 | 0.178108 | 0 | 0 | 0 | 0 | 0 | 0.106607 | 0.081379 | 725 | 15 | 127 | 48.333333 | 0.702703 | 0.602759 | 0 | 0 | 0 | 0 | 0.728625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d30bf3087f581f24465267e775cd664b3856c88 | 75,791 | py | Python | python-trunk/sfapi2/sflib/ZSI/wsdl2python.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-trunk/sfapi2/sflib/ZSI/wsdl2python.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-trunk/sfapi2/sflib/ZSI/wsdl2python.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | ############################################################################
# Joshua R. Boverhof, LBNL
# Monte M. Goode, LBNL
# David W. Robertson, LBNL
# See LBNLCopyright for copyright notice!
###########################################################################
import sys, re, weakref, string, warnings
... | 42.579213 | 161 | 0.436833 | 6,544 | 75,791 | 4.964089 | 0.115984 | 0.007265 | 0.00431 | 0.013298 | 0.409327 | 0.353948 | 0.30608 | 0.28096 | 0.258581 | 0.237156 | 0 | 0.007565 | 0.440131 | 75,791 | 1,779 | 162 | 42.603148 | 0.757995 | 0.048238 | 0 | 0.376623 | 0 | 0.021916 | 0.128971 | 0.023081 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010552 | 0.032468 | null | null | 0.002435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5d30cdc4c225b30a431c61207b0f4630cbc62480 | 337 | py | Python | example/django_example/consumer_test.py | mczerski/django-channels2-jsonrpc | 5bde9b906fb7a488eae76b0944acfe8911caa41f | [
"MIT"
] | 6 | 2019-12-11T17:53:27.000Z | 2021-06-28T12:07:01.000Z | example/django_example/consumer_test.py | mczerski/django-channels2-jsonrpc | 5bde9b906fb7a488eae76b0944acfe8911caa41f | [
"MIT"
] | 3 | 2020-01-21T21:08:54.000Z | 2021-07-21T09:02:42.000Z | example/django_example/consumer_test.py | mczerski/django-channels2-jsonrpc | 5bde9b906fb7a488eae76b0944acfe8911caa41f | [
"MIT"
] | 3 | 2020-02-04T17:01:53.000Z | 2021-08-31T11:28:35.000Z | from channels_jsonrpc import JsonRpcWebsocketConsumer
class JsonRpcConsumerTest(JsonRpcWebsocketConsumer):
@classmethod
def clean(cls):
"""
Clean the class method name for tests
:return: None
"""
if id(cls) in cls.available_rpc_methods:
del cls.available_rpc... | 28.083333 | 53 | 0.670623 | 36 | 337 | 6.138889 | 0.694444 | 0.045249 | 0.135747 | 0.199095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25816 | 337 | 12 | 54 | 28.083333 | 0.884 | 0.151335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
5d31bd70a4d27a8c9d2b3941e45ef8cae09a7699 | 2,528 | py | Python | django/contrib/auth/tests/management.py | mitar/django | aa757ac22de3e657df49086cf01a26f6c73b8dfb | [
"BSD-3-Clause"
] | 1 | 2016-05-09T02:41:07.000Z | 2016-05-09T02:41:07.000Z | django/contrib/auth/tests/management.py | akaihola/django | 169b1a404c8118bb75840523d5fb3543de9c8889 | [
"BSD-3-Clause"
] | null | null | null | django/contrib/auth/tests/management.py | akaihola/django | 169b1a404c8118bb75840523d5fb3543de9c8889 | [
"BSD-3-Clause"
] | null | null | null | from StringIO import StringIO
from django.contrib.auth import models, management
from django.contrib.auth.management.commands import changepassword
from django.test import TestCase
class GetDefaultUsernameTestCase(TestCase):
def setUp(self):
self._getpass_getuser = management.get_system_username
de... | 35.111111 | 122 | 0.682753 | 286 | 2,528 | 5.874126 | 0.335664 | 0.069643 | 0.056548 | 0.080357 | 0.317262 | 0.267857 | 0.157143 | 0.157143 | 0.095238 | 0.095238 | 0 | 0.001523 | 0.220728 | 2,528 | 71 | 123 | 35.605634 | 0.851269 | 0.106804 | 0 | 0.166667 | 0 | 0 | 0.10061 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.1875 | false | 0.291667 | 0.083333 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5d32b2988689ac50443267c2d4be8e86d8587374 | 1,502 | py | Python | Redis-API.py | FOlender/Redis-API | 025bd867eea40887873f727e0de3ba9ae509f943 | [
"Unlicense"
] | null | null | null | Redis-API.py | FOlender/Redis-API | 025bd867eea40887873f727e0de3ba9ae509f943 | [
"Unlicense"
] | null | null | null | Redis-API.py | FOlender/Redis-API | 025bd867eea40887873f727e0de3ba9ae509f943 | [
"Unlicense"
] | null | null | null | #import redis
from flask_redis import FlaskRedis
from flask import Flask, request, jsonify
app = Flask(__name__)
# Push
@app.route('/api/queue/push', methods=['POST'])
def queuepush():
# Capturo Mensaje
Mensaje = request.form
# TODO: Revisar falla de capturar de mensaje (Resuelto con modificacion del string del Re... | 30.04 | 97 | 0.715047 | 215 | 1,502 | 4.902326 | 0.455814 | 0.062619 | 0.031309 | 0.045541 | 0.055028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011774 | 0.151798 | 1,502 | 49 | 98 | 30.653061 | 0.815542 | 0.376831 | 0 | 0.142857 | 0 | 0 | 0.116304 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d40f23b643fa4bf9b605ddd02eb0883b6c10dfd | 1,857 | py | Python | scripts/create_fluseverity_figs/Supp_fall_summer_baselinebars.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | 3 | 2018-03-29T23:02:43.000Z | 2020-08-10T12:01:50.000Z | scripts/create_fluseverity_figs/Supp_fall_summer_baselinebars.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | null | null | null | scripts/create_fluseverity_figs/Supp_fall_summer_baselinebars.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | null | null | null | #!/usr/bin/python
##############################################
###Python template
###Author: Elizabeth Lee
###Date: 8/25/14
###Function: barplot comparing number of "any diagnosis" visits during the 7 week fall baseline (wks 40-6) and 7 week summer baseline (wks 33-39)
###Import data:
###Command Line: python Supp... | 28.569231 | 184 | 0.695207 | 267 | 1,857 | 4.726592 | 0.535581 | 0.015848 | 0.052298 | 0.041204 | 0.052298 | 0.052298 | 0 | 0 | 0 | 0 | 0 | 0.014572 | 0.113086 | 1,857 | 64 | 185 | 29.015625 | 0.75167 | 0.289176 | 0 | 0 | 0 | 0 | 0.252369 | 0.18174 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d427d8aa075d0b3f02d02f3aab02968d155b678 | 415 | py | Python | logkit/opsserver/migrations/0004_auto_20200324_2313.py | zhaheyan/logkit | 6f30a82aa88a5fff3a0b4160374de4482a4f5fb4 | [
"Apache-2.0"
] | null | null | null | logkit/opsserver/migrations/0004_auto_20200324_2313.py | zhaheyan/logkit | 6f30a82aa88a5fff3a0b4160374de4482a4f5fb4 | [
"Apache-2.0"
] | null | null | null | logkit/opsserver/migrations/0004_auto_20200324_2313.py | zhaheyan/logkit | 6f30a82aa88a5fff3a0b4160374de4482a4f5fb4 | [
"Apache-2.0"
] | 1 | 2020-03-21T02:16:13.000Z | 2020-03-21T02:16:13.000Z | # Generated by Django 3.0.4 on 2020-03-24 23:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('opsserver', '0003_auto_20200324_2307'),
]
operations = [
migrations.AlterField(
model_name='requestdata',
name='url'... | 21.842105 | 75 | 0.612048 | 46 | 415 | 5.413043 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115894 | 0.272289 | 415 | 18 | 76 | 23.055556 | 0.708609 | 0.108434 | 0 | 0 | 1 | 0 | 0.125 | 0.0625 | 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 |
5d45755065c593387e9c06446e640d5cac6d7c3a | 936 | py | Python | usaspending_api/references/tests/integration/filter_tree/psc/test_psc_irregular_cases.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | 217 | 2016-11-03T17:09:53.000Z | 2022-03-10T04:17:54.000Z | usaspending_api/references/tests/integration/filter_tree/psc/test_psc_irregular_cases.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | 622 | 2016-09-02T19:18:23.000Z | 2022-03-29T17:11:01.000Z | usaspending_api/references/tests/integration/filter_tree/psc/test_psc_irregular_cases.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | 93 | 2016-09-07T20:28:57.000Z | 2022-02-25T00:25:27.000Z | from rest_framework import status
base_query = "/api/v2/references/filter_tree/psc/"
def test_wrong_path_at_tier_one(client, basic_service):
resp = _call_and_expect_200(client, base_query + "Product/B/")
assert resp.json() == {"results": []}
def test_wrong_path_at_tier_two(client, basic_service):
resp ... | 31.2 | 82 | 0.723291 | 138 | 936 | 4.492754 | 0.384058 | 0.072581 | 0.104839 | 0.129032 | 0.658065 | 0.583871 | 0.503226 | 0.503226 | 0.503226 | 0.503226 | 0 | 0.028714 | 0.144231 | 936 | 29 | 83 | 32.275862 | 0.745318 | 0 | 0 | 0.222222 | 0 | 0 | 0.159188 | 0.063034 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.277778 | false | 0 | 0.055556 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d47426c30f1fa59acba06216b328060931f82b1 | 43,597 | py | Python | Lib/fontbakery/profiles/universal.py | vv-monsalve/fontbakery | 8551b89924b92a8e226519fda98a1955380ecbe9 | [
"Apache-2.0"
] | null | null | null | Lib/fontbakery/profiles/universal.py | vv-monsalve/fontbakery | 8551b89924b92a8e226519fda98a1955380ecbe9 | [
"Apache-2.0"
] | null | null | null | Lib/fontbakery/profiles/universal.py | vv-monsalve/fontbakery | 8551b89924b92a8e226519fda98a1955380ecbe9 | [
"Apache-2.0"
] | null | null | null | import os
from fontbakery.status import PASS, FAIL, WARN, ERROR, INFO, SKIP
from fontbakery.section import Section
from fontbakery.callable import condition, check, disable
from fontbakery.message import Message
from fontbakery.fonts_profile import profile_factory
from fontbakery.profiles.opentype import OPENTYPE_PROF... | 39.923993 | 479 | 0.594055 | 5,180 | 43,597 | 4.907143 | 0.17278 | 0.031591 | 0.039655 | 0.053071 | 0.355876 | 0.307723 | 0.224045 | 0.159172 | 0.126283 | 0.101105 | 0 | 0.017624 | 0.307613 | 43,597 | 1,091 | 480 | 39.960587 | 0.824389 | 0.09097 | 0 | 0.325146 | 0 | 0.02807 | 0.389214 | 0.068431 | 0 | 0 | 0.005933 | 0.000917 | 0 | 1 | 0.033918 | false | 0.05731 | 0.038596 | 0.00117 | 0.084211 | 0.004678 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5d49e1fb0b309e65a3debcf952c99a0c204b049a | 243 | py | Python | portfolio/base/admin.py | sashanksilwal/django-practice-projects | 2914ddc03b299b3ef55554424512ad69525ec4df | [
"MIT"
] | null | null | null | portfolio/base/admin.py | sashanksilwal/django-practice-projects | 2914ddc03b299b3ef55554424512ad69525ec4df | [
"MIT"
] | null | null | null | portfolio/base/admin.py | sashanksilwal/django-practice-projects | 2914ddc03b299b3ef55554424512ad69525ec4df | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Projects
admin.site.site_header = "Portfolio Admin"
@admin.register(Projects)
class AuthorAdmin(admin.ModelAdmin):
list_display = ['title', 'description']
list_filter = ['title']
| 22.090909 | 43 | 0.748971 | 29 | 243 | 6.172414 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 243 | 10 | 44 | 24.3 | 0.852381 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
5d4d5c9b7f795de47d10316d5cc33094ad69a7ae | 1,165 | py | Python | test/allMessage.py | vapolovenkov/ssh-Connection-In-Telegram | afeb20b4fca63c0f55b629eaee6efa2ce776eba9 | [
"MIT"
] | 22 | 2017-10-20T10:32:05.000Z | 2021-12-03T14:13:41.000Z | test/allMessage.py | vapolovenkov/ssh-Connection-In-Telegram | afeb20b4fca63c0f55b629eaee6efa2ce776eba9 | [
"MIT"
] | 4 | 2018-05-30T07:36:19.000Z | 2021-08-31T13:48:26.000Z | test/allMessage.py | vapolovenkov/ssh-Connection-In-Telegram | afeb20b4fca63c0f55b629eaee6efa2ce776eba9 | [
"MIT"
] | 8 | 2019-02-22T05:28:24.000Z | 2022-02-26T13:39:13.000Z | # -*- coding: utf-8 -*-
commands = {
'start_AfterAuthorized':
u'Welcome to remoteSsh_bot\n\n'
u'If you known password - use /on\n'
u'else - connect to admin',
'start_BeforeAuthorized':
u'Hello!\n'
... | 40.172414 | 82 | 0.483262 | 126 | 1,165 | 4.428571 | 0.428571 | 0.039427 | 0.043011 | 0.037634 | 0.197133 | 0.157706 | 0.157706 | 0.157706 | 0.157706 | 0.157706 | 0 | 0.001488 | 0.423176 | 1,165 | 29 | 83 | 40.172414 | 0.828869 | 0.018026 | 0 | 0.181818 | 0 | 0 | 0.568679 | 0.055993 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.136364 | 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 |
5d52d57e88d57202cd65b02b07af7869462bc94a | 2,813 | py | Python | mainapp/migrations/0001_initial.py | tum0xa/geekbrains-django2-homework | 55a7a0aa60da2978ab4abd5d2dacf7af21b301cc | [
"MIT"
] | null | null | null | mainapp/migrations/0001_initial.py | tum0xa/geekbrains-django2-homework | 55a7a0aa60da2978ab4abd5d2dacf7af21b301cc | [
"MIT"
] | null | null | null | mainapp/migrations/0001_initial.py | tum0xa/geekbrains-django2-homework | 55a7a0aa60da2978ab4abd5d2dacf7af21b301cc | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-12-04 17:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Banner',
fields=[
... | 52.092593 | 128 | 0.625667 | 299 | 2,813 | 5.725753 | 0.337793 | 0.115654 | 0.05257 | 0.056075 | 0.516939 | 0.5 | 0.5 | 0.446262 | 0.446262 | 0.446262 | 0 | 0.019096 | 0.236758 | 2,813 | 53 | 129 | 53.075472 | 0.778295 | 0.015997 | 0 | 0.391304 | 1 | 0 | 0.178959 | 0.008315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.130435 | 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 |
5d5c80435b3d581aa32b782914901cf166e17146 | 5,568 | py | Python | code/main.py | louay-rouabeh/Energy-Management-Live-Dashboard | cf321b99119bef252c6f6dee0f07bb8254a91149 | [
"MIT"
] | null | null | null | code/main.py | louay-rouabeh/Energy-Management-Live-Dashboard | cf321b99119bef252c6f6dee0f07bb8254a91149 | [
"MIT"
] | null | null | null | code/main.py | louay-rouabeh/Energy-Management-Live-Dashboard | cf321b99119bef252c6f6dee0f07bb8254a91149 | [
"MIT"
] | 2 | 2021-12-29T18:29:54.000Z | 2022-01-01T17:55:15.000Z | import dash
import dash_bootstrap_components as dbc
import dash_html_components as html
import dash_core_components as dcc
import plotly.graph_objs as go
from dash.dependencies import Input, Output
import pandas as pd
from upload import data_upload
first = pd.read_excel("consumption.xlsx", "FirstFloor")
app = dash.D... | 32.752941 | 100 | 0.359016 | 409 | 5,568 | 4.814181 | 0.364303 | 0.020315 | 0.020315 | 0.030472 | 0.269172 | 0.199086 | 0.199086 | 0.119858 | 0.087354 | 0.087354 | 0 | 0.037244 | 0.51778 | 5,568 | 169 | 101 | 32.946746 | 0.696089 | 0.022629 | 0 | 0.340741 | 0 | 0 | 0.170795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007407 | false | 0 | 0.059259 | 0 | 0.103704 | 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 |
5d5ea761992201f48ffcab03f04db69df12f3de7 | 11,357 | py | Python | error_detector/FormGenerator.py | bhecquet/yolo-training-data | eefcc36b6a583b3244104f462b08fe57eea6bd54 | [
"Apache-2.0"
] | 1 | 2021-08-11T01:00:22.000Z | 2021-08-11T01:00:22.000Z | error_detector/FormGenerator.py | bhecquet/yolo-training-data | eefcc36b6a583b3244104f462b08fe57eea6bd54 | [
"Apache-2.0"
] | null | null | null | error_detector/FormGenerator.py | bhecquet/yolo-training-data | eefcc36b6a583b3244104f462b08fe57eea6bd54 | [
"Apache-2.0"
] | null | null | null | '''
Created on 30 sept. 2021
@author: S047432
'''
import random
import os
from PIL import ImageFont
from form_generator.Form import Form
from form_generator.tools import generate_light_color, generate_very_light_color,\
generate_dark_color, compute_color_diff, generate_darker_color,\
generate_red_color, genera... | 51.858447 | 196 | 0.539491 | 1,195 | 11,357 | 4.805858 | 0.19749 | 0.036392 | 0.023681 | 0.016542 | 0.255441 | 0.184921 | 0.158454 | 0.148703 | 0.100644 | 0.060596 | 0 | 0.020482 | 0.389539 | 11,357 | 219 | 197 | 51.858447 | 0.807875 | 0.093687 | 0 | 0.174497 | 1 | 0 | 0.040854 | 0.00468 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013423 | false | 0.006711 | 0.073826 | 0 | 0.09396 | 0.013423 | 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 |
5d61c18e96146d4ed0c3a487a99ff5f9121130dd | 455 | py | Python | addons/datatask/client/datatask/run.py | aixieluo/giftware | 51166699cf75e3d6029fab47a65b092ad5c9f658 | [
"Apache-2.0"
] | null | null | null | addons/datatask/client/datatask/run.py | aixieluo/giftware | 51166699cf75e3d6029fab47a65b092ad5c9f658 | [
"Apache-2.0"
] | null | null | null | addons/datatask/client/datatask/run.py | aixieluo/giftware | 51166699cf75e3d6029fab47a65b092ad5c9f658 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
import worker
import configparser
import os
import sys
import const
cfgpath = os.path.join(const.ROOT_PATH, './config.ini')
conf = configparser.ConfigParser()
conf.read(cfgpath, encoding="utf-8")
tasks = conf.get('main', 'task').split(',')
for code in tasks:
token = co... | 22.75 | 56 | 0.663736 | 63 | 455 | 4.777778 | 0.507937 | 0.069767 | 0.07309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002695 | 0.184615 | 455 | 19 | 57 | 23.947368 | 0.808625 | 0 | 0 | 0 | 0 | 0 | 0.098851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5d62dcd5465046f5decc1b3ec4fd930b833c0945 | 2,158 | py | Python | dexy/commands/fcmds.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 136 | 2015-01-06T15:04:47.000Z | 2021-12-21T22:52:41.000Z | dexy/commands/fcmds.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 13 | 2015-01-26T14:06:58.000Z | 2020-03-27T21:16:10.000Z | dexy/commands/fcmds.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 34 | 2015-01-02T16:24:53.000Z | 2021-11-27T05:38:30.000Z | import dexy.filter
import inspect
def fcmds_command(
alias=False # Only print commands defined by this alias.
):
"""
Prints a list of available filter commands.
"""
if alias:
filter_instances = [dexy.filter.Filter.create_instance(alias)]
else:
filter_instances = dexy... | 35.966667 | 78 | 0.600556 | 248 | 2,158 | 4.983871 | 0.326613 | 0.101942 | 0.038835 | 0.040453 | 0.173139 | 0.135922 | 0.079288 | 0.079288 | 0.079288 | 0 | 0 | 0.000677 | 0.315107 | 2,158 | 59 | 79 | 36.576271 | 0.835589 | 0.135774 | 0 | 0.130435 | 0 | 0 | 0.078689 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0.152174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5d63edc0746f6d74d0df2f12a6291b5ef6f9827f | 2,082 | py | Python | Validation/CTPPS/test/simu/template_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 13 | 2015-11-30T15:49:45.000Z | 2022-02-08T16:11:30.000Z | Validation/CTPPS/test/simu/template_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 640 | 2015-02-11T18:55:47.000Z | 2022-03-31T14:12:23.000Z | Validation/CTPPS/test/simu/template_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 51 | 2015-08-11T21:01:40.000Z | 2022-03-30T07:31:34.000Z | import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_$ERA_cff import *
process = cms.Process('CTPPSTest', $ERA)
# load config
import Validation.CTPPS.simu_config.year_$CONFIG_cff as config
process.load("Validation.CTPPS.simu_config.year_$CONFIG_cff")
# minimal logger settings
process.MessageLogger = ... | 30.173913 | 93 | 0.788184 | 239 | 2,082 | 6.640167 | 0.32636 | 0.060491 | 0.070573 | 0.037807 | 0.168872 | 0.168872 | 0.168872 | 0.120983 | 0.120983 | 0.120983 | 0 | 0.022581 | 0.106628 | 2,082 | 69 | 94 | 30.173913 | 0.830645 | 0.064361 | 0 | 0.212766 | 0 | 0 | 0.158166 | 0.10304 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | 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 |
5d64b0f62274d1838cdf93e7515a41fe10408cd0 | 1,941 | py | Python | extra_keras_metrics/__init__.py | LucaCappelletti94/extra_keras_metrics | b37ce867acfa55e6d1225bab9bae1775778ee13f | [
"MIT"
] | 14 | 2019-06-14T10:37:11.000Z | 2021-09-17T11:42:48.000Z | extra_keras_metrics/__init__.py | LucaCappelletti94/extra_keras_metrics | b37ce867acfa55e6d1225bab9bae1775778ee13f | [
"MIT"
] | 5 | 2019-06-15T07:11:45.000Z | 2021-01-04T16:46:40.000Z | extra_keras_metrics/__init__.py | LucaCappelletti94/extra_keras_metrics | b37ce867acfa55e6d1225bab9bae1775778ee13f | [
"MIT"
] | 1 | 2019-12-02T08:00:25.000Z | 2019-12-02T08:00:25.000Z | """This package provides multiple metrics implemeted for Keras/Tensorflow."""
from .balanced_accuracy import BalancedAccuracy
from .diagnostic_odds_ratio import DiagnosticOddsRatio
from .f1score import F1Score
from .fallout import FallOut
from .false_discovery_rate import FalseDiscoveryRate
from .false_negatives_ratio ... | 36.622642 | 77 | 0.795466 | 172 | 1,941 | 8.674419 | 0.389535 | 0.051609 | 0.02681 | 0.032172 | 0.100536 | 0.100536 | 0.100536 | 0.100536 | 0.100536 | 0.100536 | 0 | 0.001816 | 0.148892 | 1,941 | 52 | 78 | 37.326923 | 0.901332 | 0.036579 | 0 | 0 | 0 | 0 | 0.231223 | 0.098176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.44 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5d65451e0506f398da1f783ff27bf6017555c82b | 3,882 | py | Python | Chapter06/tests/test_dependencies/test_users.py | ariwells2001/Python-Programming-Blueprints | 23981ab304e65bcc24560393c75fd5ee85c96ce5 | [
"MIT"
] | 72 | 2017-12-19T09:19:40.000Z | 2021-11-08T13:13:34.000Z | Chapter06/tests/test_dependencies/test_users.py | ariwells2001/Python-Programming-Blueprints | 23981ab304e65bcc24560393c75fd5ee85c96ce5 | [
"MIT"
] | 20 | 2018-03-21T01:15:27.000Z | 2021-09-08T00:59:40.000Z | Chapter06/tests/test_dependencies/test_users.py | ariwells2001/Python-Programming-Blueprints | 23981ab304e65bcc24560393c75fd5ee85c96ce5 | [
"MIT"
] | 53 | 2017-12-19T09:19:42.000Z | 2022-03-06T02:21:10.000Z | from mock import Mock, patch
import pytest
from temp_messenger.dependencies.users import (
CreateUserError,
AuthenticationError,
UserNotFound,
UserStore,
UserWrapper,
)
class TestUserStore:
def test_user_store(self, test_config):
user_store = UserStore()
user_store.container... | 28.970149 | 68 | 0.606131 | 436 | 3,882 | 5.172018 | 0.176606 | 0.097561 | 0.093126 | 0.113082 | 0.65765 | 0.636807 | 0.592905 | 0.537472 | 0.537472 | 0.537472 | 0 | 0.000362 | 0.289026 | 3,882 | 133 | 69 | 29.18797 | 0.816667 | 0 | 0 | 0.490385 | 0 | 0 | 0.176713 | 0.037609 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.096154 | false | 0.153846 | 0.028846 | 0.009615 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5d66f36e03e15dfc27a32a0eb2aad2318efabefd | 10,476 | py | Python | hexrd/material.py | johnkit/hexrd | c0f67a2f472bc0dea22930c654711ee6b97e7fe4 | [
"BSD-3-Clause"
] | null | null | null | hexrd/material.py | johnkit/hexrd | c0f67a2f472bc0dea22930c654711ee6b97e7fe4 | [
"BSD-3-Clause"
] | null | null | null | hexrd/material.py | johnkit/hexrd | c0f67a2f472bc0dea22930c654711ee6b97e7fe4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# =============================================================================
# Copyright (c) 2012, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
# Written by Joel Bernier <bernier2@llnl.gov> and others.
# LLNL-CODE-529294.
# All rights re... | 26.656489 | 79 | 0.569301 | 1,179 | 10,476 | 4.936387 | 0.289228 | 0.018557 | 0.016495 | 0.012027 | 0.048797 | 0.040034 | 0.02732 | 0 | 0 | 0 | 0 | 0.012168 | 0.301833 | 10,476 | 392 | 80 | 26.72449 | 0.783566 | 0.308515 | 0 | 0.180328 | 0 | 0 | 0.102462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125683 | false | 0.060109 | 0.032787 | 0.016393 | 0.371585 | 0.027322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
536f625d61b5b66e08e89f32dc15070820741058 | 70,644 | py | Python | SK_GPY_implementation/ptBayeslands_sur_tau.py | intelligentEarth/surrogateBayeslands | 24462cafed05ac0c377865d8fe039cafa0aa59d4 | [
"MIT"
] | 1 | 2021-07-12T13:54:01.000Z | 2021-07-12T13:54:01.000Z | SK_GPY_implementation/ptBayeslands_sur_tau.py | intelligentEarth/surrogateBayeslands | 24462cafed05ac0c377865d8fe039cafa0aa59d4 | [
"MIT"
] | null | null | null | SK_GPY_implementation/ptBayeslands_sur_tau.py | intelligentEarth/surrogateBayeslands | 24462cafed05ac0c377865d8fe039cafa0aa59d4 | [
"MIT"
] | null | null | null | #Main Contributer: Danial Azam Email: dazam92@gmail.com
import multiprocessing
import os
import sys
import time
import gc
import numpy as np
import random
import itertools
import operator
import math
# import cmocean as cmo
import copy
import collections
import fnmatch
import shutil
import plotly
import plotly.plotly... | 41.167832 | 229 | 0.685394 | 10,415 | 70,644 | 4.467115 | 0.102256 | 0.010081 | 0.011736 | 0.009135 | 0.521526 | 0.461515 | 0.412359 | 0.375153 | 0.343106 | 0.31093 | 0 | 0.02485 | 0.152936 | 70,644 | 1,716 | 230 | 41.167832 | 0.75264 | 0.185281 | 0 | 0.327227 | 0 | 0.003331 | 0.106504 | 0.029647 | 0.000833 | 0 | 0 | 0 | 0 | 0 | null | null | 0.000833 | 0.040799 | null | null | 0.029142 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
536f66d5824167a36aba92c561cb9ba409efa9d1 | 1,799 | py | Python | scripts/electric.py | malcolmpeacock/heat | 5ce998899d218b4915e54374c4a22f9f69f01b1a | [
"MIT"
] | 3 | 2020-10-16T09:39:55.000Z | 2020-12-08T15:31:43.000Z | scripts/electric.py | malcolmpeacock/heat | 5ce998899d218b4915e54374c4a22f9f69f01b1a | [
"MIT"
] | 1 | 2020-10-16T10:54:59.000Z | 2020-10-16T11:16:43.000Z | scripts/electric.py | malcolmpeacock/heat | 5ce998899d218b4915e54374c4a22f9f69f01b1a | [
"MIT"
] | 1 | 2020-10-16T10:24:56.000Z | 2020-10-16T10:24:56.000Z |
import os
import pandas as pd
from scripts.misc import localize
from scripts.misc import group_df_by_multiple_column_levels
# generate an electrity demand time series for the heat.
def finishing(cop, demand_space, demand_water, electric_parameters, country, correction=.85):
# Localize Timestamps (including da... | 36.714286 | 124 | 0.685937 | 230 | 1,799 | 5.169565 | 0.365217 | 0.025231 | 0.022708 | 0.042893 | 0.288478 | 0.268293 | 0.243902 | 0.185029 | 0.07233 | 0.07233 | 0 | 0.006954 | 0.200667 | 1,799 | 48 | 125 | 37.479167 | 0.819889 | 0.13841 | 0 | 0.066667 | 1 | 0 | 0.096628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
537017e90b29000416e05398cecc9645eedde14d | 10,842 | py | Python | check_procs/pexpect/ANSI.py | thomasvincent/MonitoringPlugins | b7662e78fe931ea5a5156d9fe15d647db6feb404 | [
"Apache-2.0"
] | 8 | 2021-11-26T06:19:06.000Z | 2022-01-11T01:30:11.000Z | check_procs/pexpect/ANSI.py | thomasvincent/MonitoringPlugins | b7662e78fe931ea5a5156d9fe15d647db6feb404 | [
"Apache-2.0"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | check_procs/pexpect/ANSI.py | thomasvincent/MonitoringPlugins | b7662e78fe931ea5a5156d9fe15d647db6feb404 | [
"Apache-2.0"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.000Z | """This implements an ANSI terminal emulator as a subclass of screen.
$Id: ANSI.py 491 2007-12-16 20:04:57Z noah $
"""
# references:
# http://www.retards.org/terminals/vt102.html
# http://vt100.net/docs/vt102-ug/contents.html
# http://vt100.net/docs/vt220-rm/
# http://www.termsys.demon.co.uk/vtansi.htm... | 32.364179 | 99 | 0.594632 | 1,487 | 10,842 | 4.211163 | 0.212508 | 0.077611 | 0.097732 | 0.179176 | 0.555573 | 0.486745 | 0.350687 | 0.268125 | 0.205046 | 0.196742 | 0 | 0.015371 | 0.255949 | 10,842 | 334 | 100 | 32.461078 | 0.760878 | 0.264342 | 0 | 0.244898 | 0 | 0 | 0.082262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158163 | false | 0.005102 | 0.020408 | 0 | 0.209184 | 0.010204 | 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 |
5377266ae9000ae77bebe5e86d222151d3dc5a26 | 712 | py | Python | features/depth_of_field/depth_of_field/blur_factor.py | fanzhikang/relaxrender | 39e040c9b2af716d80b4cd1941d7b6aa9e6ddc8b | [
"MIT"
] | null | null | null | features/depth_of_field/depth_of_field/blur_factor.py | fanzhikang/relaxrender | 39e040c9b2af716d80b4cd1941d7b6aa9e6ddc8b | [
"MIT"
] | null | null | null | features/depth_of_field/depth_of_field/blur_factor.py | fanzhikang/relaxrender | 39e040c9b2af716d80b4cd1941d7b6aa9e6ddc8b | [
"MIT"
] | 1 | 2018-06-10T04:07:29.000Z | 2018-06-10T04:07:29.000Z | from numpy import *
'''blur_factor
Deal with the depth axis from dimg, output image with blur_factor axis
args:
dimg: numpy.ndarray type. Image with a depth axis.
return:
fimg: numpy.ndarray type. Image with a blur_factor axis(total 4 axis).
Blur_factor decide how much a pix will be blur.
'''
def blur_... | 26.37037 | 76 | 0.661517 | 116 | 712 | 3.948276 | 0.405172 | 0.152838 | 0.091703 | 0.078603 | 0.187773 | 0.187773 | 0 | 0 | 0 | 0 | 0 | 0.018382 | 0.235955 | 712 | 26 | 77 | 27.384615 | 0.823529 | 0.271067 | 0 | 0 | 0 | 0 | 0.204969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5379527515f31b029a645f715751fdc6d0c6ce1c | 2,103 | py | Python | test/test_LightModel/test_Profiles/test_interpolation.py | jiwoncpark/lenstronomy | c1d12580f8d8cf1d065d80568a58c0694e23945a | [
"MIT"
] | 1 | 2020-07-31T07:55:17.000Z | 2020-07-31T07:55:17.000Z | test/test_LightModel/test_Profiles/test_interpolation.py | jiwoncpark/lenstronomy | c1d12580f8d8cf1d065d80568a58c0694e23945a | [
"MIT"
] | null | null | null | test/test_LightModel/test_Profiles/test_interpolation.py | jiwoncpark/lenstronomy | c1d12580f8d8cf1d065d80568a58c0694e23945a | [
"MIT"
] | 2 | 2020-10-26T10:45:11.000Z | 2021-03-04T12:25:19.000Z | import pytest
import numpy.testing as npt
from lenstronomy.LightModel.Profiles.interpolation import Interpol
from lenstronomy.LightModel.Profiles.gaussian import Gaussian
import lenstronomy.Util.util as util
class TestInterpol(object):
"""
class to test Shapelets
"""
def setup(self):
pass
... | 38.236364 | 98 | 0.608179 | 288 | 2,103 | 4.256944 | 0.211806 | 0.057096 | 0.045677 | 0.068516 | 0.645188 | 0.645188 | 0.645188 | 0.645188 | 0.645188 | 0.645188 | 0 | 0.032258 | 0.233476 | 2,103 | 54 | 99 | 38.944444 | 0.728288 | 0.015216 | 0 | 0.475 | 0 | 0 | 0.077794 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.075 | false | 0.025 | 0.125 | 0 | 0.225 | 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 |
537e0f2f7241e8b446c7a78bc918c0a2a71b762f | 1,016 | py | Python | torchgan/utils.py | winnerineast/torchgan | 77d0267dbac3381070ced279a17e5d96d9145ab7 | [
"MIT"
] | 1,300 | 2018-10-14T05:02:29.000Z | 2022-03-23T09:52:13.000Z | torchgan/utils.py | kumayu0108/torchgan | fe86d7cf6cac9b6676aa43b56eabc6b4d583bbcf | [
"MIT"
] | 102 | 2018-10-13T22:46:03.000Z | 2022-01-03T19:20:09.000Z | torchgan/utils.py | kumayu0108/torchgan | fe86d7cf6cac9b6676aa43b56eabc6b4d583bbcf | [
"MIT"
] | 164 | 2018-10-12T08:36:29.000Z | 2022-03-31T03:12:08.000Z | from pkgutil import iter_modules
import torch
def reduce(x, reduction=None):
r"""Applies reduction on a torch.Tensor.
Args:
x (torch.Tensor): The tensor on which reduction is to be applied.
reduction (str, optional): The reduction to be applied. If ``mean`` the mean value of the
... | 28.222222 | 100 | 0.645669 | 146 | 1,016 | 4.452055 | 0.438356 | 0.055385 | 0.033846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00271 | 0.273622 | 1,016 | 35 | 101 | 29.028571 | 0.878049 | 0.59252 | 0 | 0 | 0 | 0 | 0.020057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
537ea67880e35dfab1d8db4d04fdfa451cdaa973 | 401 | wsgi | Python | filesharing/apache/django.wsgi | Diablloo/File-sharing-serivice | c90689e101b816eb57d6758d44c121a5cb384563 | [
"BSD-3-Clause"
] | 22 | 2015-01-12T10:21:07.000Z | 2021-12-26T16:33:47.000Z | filesharing/apache/django.wsgi | Diablloo/File-sharing-serivice | c90689e101b816eb57d6758d44c121a5cb384563 | [
"BSD-3-Clause"
] | 1 | 2015-03-13T11:47:21.000Z | 2015-03-13T11:47:21.000Z | filesharing/apache/django.wsgi | Diablloo/File-sharing-serivice | c90689e101b816eb57d6758d44c121a5cb384563 | [
"BSD-3-Clause"
] | 9 | 2016-04-20T04:27:07.000Z | 2021-06-10T07:47:16.000Z | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../")))
os.environ['DJANGO_SETTINGS_MODULE'] = 'filesharing.settings'
sys.stdout = sys.stderr # Prevent crashes upon print
import d... | 25.0625 | 86 | 0.738155 | 58 | 401 | 4.931034 | 0.448276 | 0.125874 | 0.090909 | 0.097902 | 0.377622 | 0.377622 | 0.377622 | 0.377622 | 0.377622 | 0.377622 | 0 | 0.005435 | 0.082294 | 401 | 15 | 87 | 26.733333 | 0.771739 | 0.064838 | 0 | 0 | 0 | 0 | 0.137466 | 0.059299 | 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 |
53830675aac6af2171b50922898a812049885045 | 3,268 | py | Python | package/1request-advanced/CodeClass.py | HuangCongQing/-spider | 4415a964713d2b36f56f2bb533005488a78fba43 | [
"MIT"
] | 11 | 2018-06-01T12:31:22.000Z | 2022-03-27T05:17:01.000Z | package/1request-advanced/CodeClass.py | HuangCongQing/-spider | 4415a964713d2b36f56f2bb533005488a78fba43 | [
"MIT"
] | 4 | 2018-05-26T14:29:56.000Z | 2019-01-04T08:41:08.000Z | package/1request-advanced/CodeClass.py | HuangCongQing/-spider | 4415a964713d2b36f56f2bb533005488a78fba43 | [
"MIT"
] | 10 | 2018-06-01T12:33:36.000Z | 2021-03-14T02:23:52.000Z | import http.client, mimetypes, urllib, json, time, requests
##########################已失效############################################
class YDMHttp:
apiurl = 'http://api.yundama.com/api.php'
username = ''
password = ''
appid = ''
appkey = ''
def __init__(self, username, password, appid, appk... | 35.139785 | 111 | 0.518054 | 332 | 3,268 | 5.081325 | 0.198795 | 0.065205 | 0.071132 | 0.082988 | 0.410788 | 0.394784 | 0.375222 | 0.375222 | 0.375222 | 0.375222 | 0 | 0.012206 | 0.323133 | 3,268 | 93 | 112 | 35.139785 | 0.750452 | 0.000918 | 0 | 0.375 | 0 | 0 | 0.095119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1125 | false | 0.1 | 0.0125 | 0 | 0.4125 | 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 |
538491ffa03b2864b6a9631533e2eb5710573ef4 | 293 | py | Python | b3/actions/randomnodeBH.py | mdecourse/IKBT | ed62fd027ca34a59067cf30a6c3ab58c356c14fb | [
"BSD-3-Clause"
] | 129 | 2017-11-17T15:59:31.000Z | 2022-03-19T14:37:56.000Z | b3/actions/randomnodeBH.py | mdecourse/IKBT | ed62fd027ca34a59067cf30a6c3ab58c356c14fb | [
"BSD-3-Clause"
] | 36 | 2018-03-07T01:18:45.000Z | 2021-11-17T02:59:05.000Z | b3/actions/randomnodeBH.py | mdecourse/IKBT | ed62fd027ca34a59067cf30a6c3ab58c356c14fb | [
"BSD-3-Clause"
] | 33 | 2017-09-22T22:42:37.000Z | 2022-03-16T22:52:07.000Z | import b3
import random
__all__ = ['RandomNodeBH']
class RandomNode(b3.Action):
def tick(self, tick):
x = random.random()
if(x > 0.5):
return b3.SUCCESS
elif (0.5 < x < 0.75):
return b3.RUNNING
else:
return b3.FAILURE
| 16.277778 | 30 | 0.525597 | 37 | 293 | 4.054054 | 0.594595 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064171 | 0.361775 | 293 | 17 | 31 | 17.235294 | 0.737968 | 0 | 0 | 0 | 0 | 0 | 0.040956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
5386472b2890940903d7815f2c2d4838c8861f0c | 4,078 | py | Python | app/misc/inline_constructor/models/manager.py | vitaliy-ukiru/math-bot | 72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9 | [
"MIT"
] | 1 | 2021-12-11T07:41:38.000Z | 2021-12-11T07:41:38.000Z | app/misc/inline_constructor/models/manager.py | vitaliy-ukiru/math-bot | 72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9 | [
"MIT"
] | 8 | 2021-05-08T21:48:34.000Z | 2022-01-20T15:42:00.000Z | app/misc/inline_constructor/models/manager.py | vitaliy-ukiru/math-bot | 72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9 | [
"MIT"
] | null | null | null | __all__ = (
'ConstructorManager',
'BaseRequestConstructorManager',
'generate_buttons_from_json'
)
import logging
from typing import Optional, Union, Callable, Sequence
from aiogram.types import Message, Chat
from . import Button, ConstructedKeyboard, OperationType
from .sender import KeyboardSender
from ... | 35.77193 | 93 | 0.665768 | 490 | 4,078 | 5.295918 | 0.234694 | 0.041619 | 0.036609 | 0.035453 | 0.326782 | 0.314451 | 0.235067 | 0.235067 | 0.171869 | 0.171869 | 0 | 0.002229 | 0.230015 | 4,078 | 113 | 94 | 36.088496 | 0.824204 | 0.145414 | 0 | 0.157143 | 1 | 0 | 0.127691 | 0.039175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.085714 | 0.014286 | 0.328571 | 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 |
538df8bd7f31582e6980b39d3373ec957bc8488f | 1,389 | py | Python | karma/python/scharp.py | usc-isi-i2/scharp-models | 2b8d6ad3e658b1acb97d585e7b17ac524cd3c834 | [
"Apache-2.0"
] | null | null | null | karma/python/scharp.py | usc-isi-i2/scharp-models | 2b8d6ad3e658b1acb97d585e7b17ac524cd3c834 | [
"Apache-2.0"
] | null | null | null | karma/python/scharp.py | usc-isi-i2/scharp-models | 2b8d6ad3e658b1acb97d585e7b17ac524cd3c834 | [
"Apache-2.0"
] | null | null | null | def alpha_numeric(m):
return re.sub('[^A-Za-z0-9]+', ' ', m)
def uri_from_fields(fields):
string = '_'.join(alpha_numeric(f.strip().lower()) for f in fields)
if len(string) == len(fields)-1:
return ''
return string
def splitLocation(location):
return re.search('[NS]',location).start()
def getLatitude(s,l):
... | 24.803571 | 144 | 0.62923 | 211 | 1,389 | 4.109005 | 0.454976 | 0.041522 | 0.032295 | 0.096886 | 0.272203 | 0.272203 | 0.272203 | 0.272203 | 0.272203 | 0.272203 | 0 | 0.059216 | 0.136789 | 1,389 | 56 | 145 | 24.803571 | 0.663887 | 0 | 0 | 0.26087 | 0 | 0 | 0.167626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0 | 0.043478 | 0.543478 | 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 |
53901e45b9049b51842b0b5d18dee66c26dc8f45 | 3,241 | py | Python | Dockerfiles/agent/secrets-helper/test_readsecret.py | cakiwi/datadog-agent | 17f3ad7d4cdda08f3b99a5219a41060cdd3418d2 | [
"Apache-2.0"
] | 2 | 2018-11-12T22:00:56.000Z | 2019-11-07T22:14:23.000Z | Dockerfiles/agent/secrets-helper/test_readsecret.py | cakiwi/datadog-agent | 17f3ad7d4cdda08f3b99a5219a41060cdd3418d2 | [
"Apache-2.0"
] | 49 | 2018-10-02T18:14:58.000Z | 2022-01-20T21:06:31.000Z | Dockerfiles/agent/secrets-helper/test_readsecret.py | cakiwi/datadog-agent | 17f3ad7d4cdda08f3b99a5219a41060cdd3418d2 | [
"Apache-2.0"
] | 3 | 2019-05-10T13:06:59.000Z | 2020-05-21T17:29:33.000Z | #!/usr/bin/env python
import argparse
import shutil
import tempfile
import unittest
import os
from readsecret import list_secret_names, read_file, is_valid_folder
class TestListSecretNames(unittest.TestCase):
def test_invalid_output(self):
with self.assertRaisesRegex(ValueError, r"Expecting value: line ... | 33.412371 | 96 | 0.650725 | 403 | 3,241 | 5.069479 | 0.270471 | 0.083211 | 0.039158 | 0.070974 | 0.460597 | 0.379834 | 0.327949 | 0.327949 | 0.246696 | 0.246696 | 0 | 0.007949 | 0.223696 | 3,241 | 96 | 97 | 33.760417 | 0.804054 | 0.024992 | 0 | 0.228571 | 0 | 0 | 0.152945 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 1 | 0.214286 | false | 0 | 0.085714 | 0 | 0.342857 | 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 |
5390323e46f14add925363dadc20f07d7ebc0cd9 | 1,846 | py | Python | examples/sellar/run_server.py | OneraHub/WhatsOpt-Tutorial | 12d14e04defa1d44e43c47486801af4bf1284987 | [
"MIT"
] | 4 | 2019-03-29T20:36:27.000Z | 2021-09-14T23:34:30.000Z | examples/sellar/run_server.py | OneraHub/WhatsOpt-Tutorial | 12d14e04defa1d44e43c47486801af4bf1284987 | [
"MIT"
] | null | null | null | examples/sellar/run_server.py | OneraHub/WhatsOpt-Tutorial | 12d14e04defa1d44e43c47486801af4bf1284987 | [
"MIT"
] | 1 | 2021-07-01T09:10:56.000Z | 2021-07-01T09:10:56.000Z | # -*- coding: utf-8 -*-
"""
run_server.py generated by WhatsOpt.
"""
#!/usr/bin/env python
from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
from thrift.server import TServer
from server.sellar import Sellar as SellarService
from server.sellar_... | 26.371429 | 89 | 0.684724 | 202 | 1,846 | 6.108911 | 0.341584 | 0.032415 | 0.034036 | 0.048622 | 0.155592 | 0.155592 | 0 | 0 | 0 | 0 | 0 | 0.015983 | 0.220477 | 1,846 | 69 | 90 | 26.753623 | 0.841557 | 0.061213 | 0 | 0.069767 | 1 | 0 | 0.047093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.162791 | 0 | 0.418605 | 0.093023 | 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 |
539b452e250ed6e844a49c251150778f0e11a499 | 7,874 | py | Python | backend/tradingbot/models.py | webclinic017/WallStreetBots | f4f73539b080ce7667b52ee8195919ec4e7b79b8 | [
"MIT"
] | null | null | null | backend/tradingbot/models.py | webclinic017/WallStreetBots | f4f73539b080ce7667b52ee8195919ec4e7b79b8 | [
"MIT"
] | null | null | null | backend/tradingbot/models.py | webclinic017/WallStreetBots | f4f73539b080ce7667b52ee8195919ec4e7b79b8 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
from rest_framework import serializers
class News(models.Model):
"""News of a company"""
headline = models.TextField()
link = models.URLField(max_length=200) # default = 200
date = models.DateField(auto_now=False, auto_now_add=F... | 36.967136 | 120 | 0.651257 | 939 | 7,874 | 5.304579 | 0.200213 | 0.040153 | 0.025296 | 0.037944 | 0.36318 | 0.296527 | 0.25778 | 0.224453 | 0.224453 | 0.204979 | 0 | 0.006853 | 0.221615 | 7,874 | 212 | 121 | 37.141509 | 0.805841 | 0.088773 | 0 | 0.191489 | 0 | 0.028369 | 0.209204 | 0.022445 | 0 | 0 | 0 | 0.004717 | 0 | 1 | 0.070922 | false | 0 | 0.021277 | 0.056738 | 0.652482 | 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 |
53a62f7014223c7502b1a87c7e69f543de1f6492 | 835 | py | Python | tests/conftest.py | mysky528/flask-gentelella | 673f04a3b0f1257279edbff32722452e1b7ae677 | [
"MIT"
] | null | null | null | tests/conftest.py | mysky528/flask-gentelella | 673f04a3b0f1257279edbff32722452e1b7ae677 | [
"MIT"
] | null | null | null | tests/conftest.py | mysky528/flask-gentelella | 673f04a3b0f1257279edbff32722452e1b7ae677 | [
"MIT"
] | null | null | null | from os import remove
from os.path import abspath, dirname, join, pardir
from pytest import fixture
import sys
path_test = dirname(abspath(__file__))
path_parent = abspath(join(path_test, pardir))
path_app = join(path_parent, 'source')
if path_app not in sys.path:
sys.path.append(path_app)
from app import create_... | 25.30303 | 67 | 0.668263 | 112 | 835 | 4.785714 | 0.330357 | 0.059701 | 0.067164 | 0.067164 | 0.126866 | 0.126866 | 0.126866 | 0 | 0 | 0 | 0 | 0 | 0.183234 | 835 | 32 | 68 | 26.09375 | 0.785924 | 0 | 0 | 0.230769 | 0 | 0 | 0.108982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.192308 | 0 | 0.269231 | 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 |
53a98292dd9dc17ef8a66a7244f7ddd3782cbdc7 | 3,102 | py | Python | tests/test_koodo_notifier.py | zehengl/koodo-notifier | f6ddf35f8ad771eb9f54bb78195e349e0d1034d5 | [
"MIT"
] | null | null | null | tests/test_koodo_notifier.py | zehengl/koodo-notifier | f6ddf35f8ad771eb9f54bb78195e349e0d1034d5 | [
"MIT"
] | null | null | null | tests/test_koodo_notifier.py | zehengl/koodo-notifier | f6ddf35f8ad771eb9f54bb78195e349e0d1034d5 | [
"MIT"
] | null | null | null | import os
from datetime import datetime
import boto3
import rollbar
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
url_my_acct = "https://www.koodomobile.com/my-account"... | 28.722222 | 86 | 0.633462 | 371 | 3,102 | 5.032345 | 0.336927 | 0.03428 | 0.073915 | 0.08677 | 0.268345 | 0.242635 | 0.242635 | 0.242635 | 0.242635 | 0.242635 | 0 | 0.005565 | 0.246937 | 3,102 | 107 | 87 | 28.990654 | 0.793664 | 0.007415 | 0 | 0 | 0 | 0 | 0.120144 | 0.032321 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.013333 | false | 0.093333 | 0.106667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
53ad6c7e17fc37075e9cd2ce7afb88715d3786fb | 1,001 | py | Python | ilmo_app/migrations/0006_auto_20191002_1926.py | osakunta/django-ilmo-app | cdd8e44fbb09162439c97f1305323100cc1d2164 | [
"MIT"
] | 4 | 2018-12-13T20:58:28.000Z | 2022-02-15T20:54:03.000Z | ilmo_app/migrations/0006_auto_20191002_1926.py | osakunta/django-ilmo-app | cdd8e44fbb09162439c97f1305323100cc1d2164 | [
"MIT"
] | 19 | 2019-03-01T15:49:37.000Z | 2022-03-11T23:15:34.000Z | ilmo_app/migrations/0006_auto_20191002_1926.py | osakunta/django-ilmo-app | cdd8e44fbb09162439c97f1305323100cc1d2164 | [
"MIT"
] | 3 | 2019-04-12T23:57:16.000Z | 2020-03-18T09:26:46.000Z | # Generated by Django 2.1.13 on 2019-10-02 16:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ilmo_app', '0005_auto_20190304_1057'),
]
operations = [
migrations.AlterField(
model_name='eve... | 33.366667 | 153 | 0.635365 | 114 | 1,001 | 5.438596 | 0.429825 | 0.064516 | 0.090323 | 0.141935 | 0.432258 | 0.432258 | 0.248387 | 0.248387 | 0.248387 | 0.248387 | 0 | 0.041885 | 0.236763 | 1,001 | 29 | 154 | 34.517241 | 0.769634 | 0.045954 | 0 | 0.391304 | 1 | 0 | 0.149003 | 0.024134 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53af486fcb9977dfe28365bc37810cda39a03c55 | 7,837 | py | Python | mesh/lib/cert_pb2.py | unreality/nebula-mesh-admin | ad314225445a1489e611b8d0153344695e236392 | [
"MIT"
] | 25 | 2021-09-18T04:47:27.000Z | 2022-03-15T06:14:35.000Z | mesh/lib/cert_pb2.py | unreality/nebula-mesh-admin | ad314225445a1489e611b8d0153344695e236392 | [
"MIT"
] | 1 | 2022-02-22T16:47:09.000Z | 2022-02-22T16:47:09.000Z | mesh/lib/cert_pb2.py | unreality/nebula-mesh-admin | ad314225445a1489e611b8d0153344695e236392 | [
"MIT"
] | 3 | 2021-09-18T09:38:10.000Z | 2022-02-22T16:49:28.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cert.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf i... | 44.528409 | 626 | 0.762919 | 951 | 7,837 | 5.988433 | 0.162986 | 0.049166 | 0.076734 | 0.066374 | 0.555048 | 0.535382 | 0.5259 | 0.5259 | 0.512555 | 0.496049 | 0 | 0.034538 | 0.120709 | 7,837 | 175 | 627 | 44.782857 | 0.791902 | 0.043129 | 0 | 0.609272 | 1 | 0.006623 | 0.191398 | 0.157072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02649 | 0 | 0.02649 | 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 |
53af5e959941ec82f90f538f5d51c5c23e0bf825 | 3,392 | py | Python | tests/unit/whyis_test/autonomic/test_ontology_importer.py | tolulomo/whyis | eb50ab3301eb7efd27a1a3f6fb2305dedd910397 | [
"Apache-2.0"
] | 31 | 2018-05-30T02:41:23.000Z | 2021-10-17T01:25:20.000Z | tests/unit/whyis_test/autonomic/test_ontology_importer.py | tolulomo/whyis | eb50ab3301eb7efd27a1a3f6fb2305dedd910397 | [
"Apache-2.0"
] | 115 | 2018-04-07T00:59:11.000Z | 2022-03-02T03:06:45.000Z | tests/unit/whyis_test/autonomic/test_ontology_importer.py | tolulomo/whyis | eb50ab3301eb7efd27a1a3f6fb2305dedd910397 | [
"Apache-2.0"
] | 25 | 2018-04-07T00:49:55.000Z | 2021-09-28T14:29:18.000Z | import os
from base64 import b64encode
from rdflib import *
import json
from io import StringIO
from whyis import nanopub
from whyis import autonomic
from whyis.test.agent_unit_test_case import AgentUnitTestCase
import unittest
class OntologyImportAgentTestCase(AgentUnitTestCase):
def test_foaf_import(self):
... | 41.876543 | 131 | 0.642394 | 425 | 3,392 | 5.08 | 0.247059 | 0.032422 | 0.041686 | 0.055581 | 0.674386 | 0.659565 | 0.633627 | 0.59472 | 0.59472 | 0.565076 | 0 | 0.033843 | 0.189858 | 3,392 | 80 | 132 | 42.4 | 0.75182 | 0.123821 | 0 | 0.534483 | 0 | 0.137931 | 0.327598 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 1 | 0.068966 | false | 0 | 0.37931 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
53b55ac48b62e98b6fd8a6e6422df3cf35f7c205 | 2,772 | py | Python | ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/storm_yaml_utils.py | zyclove/ambari | 1032f0f54cb7b312b9a3b37570cd840f4e1e89d4 | [
"Apache-2.0"
] | null | null | null | ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/storm_yaml_utils.py | zyclove/ambari | 1032f0f54cb7b312b9a3b37570cd840f4e1e89d4 | [
"Apache-2.0"
] | null | null | null | ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/storm_yaml_utils.py | zyclove/ambari | 1032f0f54cb7b312b9a3b37570cd840f4e1e89d4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
"""
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"); yo... | 48.631579 | 266 | 0.755051 | 354 | 2,772 | 5.728814 | 0.387006 | 0.097633 | 0.086785 | 0.069034 | 0.331361 | 0.295858 | 0.241617 | 0.241617 | 0.145957 | 0.078895 | 0 | 0.002967 | 0.14899 | 2,772 | 56 | 267 | 49.5 | 0.856719 | 0.27886 | 0 | 0.096774 | 0 | 0.064516 | 0.327638 | 0.189447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.258065 | 0.032258 | 0.516129 | 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 |
53b84a0acc23aacb19afd663e73314520a75f402 | 477 | py | Python | 1_Fundamental Python Programming/1_1_Python Fundamentals/Boolean.py | NishkarshRaj/Python-Programming | 29506d8d7ed80730ce5cafd5945f83c81f003e68 | [
"Unlicense"
] | 6 | 2019-07-15T14:54:52.000Z | 2021-11-26T22:34:44.000Z | 1_Fundamental Python Programming/1_1_Python Fundamentals/Boolean.py | NishkarshRaj/Python-Programming | 29506d8d7ed80730ce5cafd5945f83c81f003e68 | [
"Unlicense"
] | 1 | 2019-07-15T14:53:35.000Z | 2019-07-15T14:53:35.000Z | 1_Fundamental Python Programming/1_1_Python Fundamentals/Boolean.py | NishkarshRaj/Python-Programming | 29506d8d7ed80730ce5cafd5945f83c81f003e68 | [
"Unlicense"
] | 2 | 2019-08-05T01:30:10.000Z | 2020-05-04T18:36:46.000Z | true = True;
false = False;
true1 = "True";
false1 = "False";
true2 = true; ''' I was trying to check if keyword is case sensitive which it is not but here the above defined variable value is taken which is bool
This technique can be used to define case insensitive keywords at start to py program.'''
false2 = false;
pr... | 31.8 | 149 | 0.735849 | 77 | 477 | 4.558442 | 0.545455 | 0.05698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029268 | 0.140461 | 477 | 14 | 150 | 34.071429 | 0.826829 | 0 | 0 | 0 | 0 | 0.076923 | 0.478992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
53c1d35c47ca09eed813f1d59f551f897c6536f6 | 799 | py | Python | Collection_Resources/Email_Integration.py | data4d/Data_Collect | 1e71c5f0dff1700b518f171abfcd61b327253601 | [
"MIT"
] | null | null | null | Collection_Resources/Email_Integration.py | data4d/Data_Collect | 1e71c5f0dff1700b518f171abfcd61b327253601 | [
"MIT"
] | null | null | null | Collection_Resources/Email_Integration.py | data4d/Data_Collect | 1e71c5f0dff1700b518f171abfcd61b327253601 | [
"MIT"
] | null | null | null | # Email Integration for Notifications
import sys
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
## Import Passwords - Importing Passwords from a file stored elsewhere on my computer
# sys.path.append('C:/Users/GTayl/Desktop/Finance Modeling')
# from passwords impo... | 27.551724 | 85 | 0.709637 | 101 | 799 | 5.594059 | 0.534653 | 0.074336 | 0.046018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004601 | 0.18398 | 799 | 29 | 86 | 27.551724 | 0.861963 | 0.265332 | 0 | 0 | 0 | 0 | 0.054983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.210526 | 0 | 0.263158 | 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 |
53c1f7e96c011171033eea051422640bfaac1c7e | 432 | py | Python | scripts/get_passing_tests.py | gokhankici/xenon | d749abd865f2017cda323cf63cf38b585de9e7af | [
"MIT"
] | 1 | 2021-11-08T19:37:38.000Z | 2021-11-08T19:37:38.000Z | scripts/get_passing_tests.py | gokhankici/xenon | d749abd865f2017cda323cf63cf38b585de9e7af | [
"MIT"
] | null | null | null | scripts/get_passing_tests.py | gokhankici/xenon | d749abd865f2017cda323cf63cf38b585de9e7af | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
FILENAME = "/tmp/passed"
bmks = []
with open(FILENAME, "r") as f:
for l in f:
[m, a] = l.split(" ")
t = (m, a.strip())
bmks.append(t)
def quote(s):
return '"{}"'.format(s)
indent = " "
output = '{}[ {}\n{}]'.format(indent, f'\n{indent}, '.join(f'("{m}", "{a}"... | 18.782609 | 103 | 0.520833 | 61 | 432 | 3.688525 | 0.557377 | 0.035556 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.219907 | 432 | 22 | 104 | 19.636364 | 0.664688 | 0.048611 | 0 | 0 | 0 | 0 | 0.249389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.214286 | 0 | 0.071429 | 0.142857 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
53c718797afa0f01fda353feaa58bcb22096291c | 2,292 | py | Python | botengine/QueryMessage.py | Manikumar1998/botengine-python-client | 1e602ddbc062ba32e57ffb23c3aa961fae5cefd5 | [
"Apache-2.0"
] | 2 | 2018-04-09T10:29:15.000Z | 2018-05-26T04:41:11.000Z | botengine/QueryMessage.py | Manikumar1998/botengine-python-client | 1e602ddbc062ba32e57ffb23c3aa961fae5cefd5 | [
"Apache-2.0"
] | null | null | null | botengine/QueryMessage.py | Manikumar1998/botengine-python-client | 1e602ddbc062ba32e57ffb23c3aa961fae5cefd5 | [
"Apache-2.0"
] | null | null | null | import json
import requests
class Message(object):
"""
Message request classes
Send simple text queries.
"""
@property
def query(self):
"""
Query parameter can be a string
Default equal None, The user should fill this field
before sending th... | 28.65 | 81 | 0.610384 | 246 | 2,292 | 5.471545 | 0.313008 | 0.106241 | 0.178306 | 0.106984 | 0.215453 | 0.193165 | 0.193165 | 0.062407 | 0 | 0 | 0 | 0.000632 | 0.309337 | 2,292 | 79 | 82 | 29.012658 | 0.849653 | 0.143543 | 0 | 0.066667 | 0 | 0 | 0.083193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.044444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53c7a92396e5cc66bddc52a357614e8b01971bbe | 1,038 | py | Python | scripts_FKEM/example_fang.py | c-d-leonard/N5K | 99d844621f2436aaf56fc98484e309043d4b7bd1 | [
"BSD-3-Clause"
] | null | null | null | scripts_FKEM/example_fang.py | c-d-leonard/N5K | 99d844621f2436aaf56fc98484e309043d4b7bd1 | [
"BSD-3-Clause"
] | null | null | null | scripts_FKEM/example_fang.py | c-d-leonard/N5K | 99d844621f2436aaf56fc98484e309043d4b7bd1 | [
"BSD-3-Clause"
] | null | null | null | import sys
sys.path.append("fftlogx/")
import numpy as np
import time
import n5k
import os
# First, generate benchmarks if you haven't done so yet.
if not os.path.isfile("tests/ccl_nonlim_fang_clgg.npz"):
cal_nl = n5k.N5KCalculatorFKEM("tests/config_nonlim_fang.yml")
cal_nl.setup()
cal_nl.run()
cal_nl... | 28.054054 | 82 | 0.72158 | 158 | 1,038 | 4.537975 | 0.493671 | 0.034868 | 0.04742 | 0.058577 | 0.195258 | 0.128312 | 0.128312 | 0 | 0 | 0 | 0 | 0.010239 | 0.153179 | 1,038 | 36 | 83 | 28.833333 | 0.805461 | 0.391137 | 0 | 0 | 1 | 0 | 0.293548 | 0.175806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53d200c08cadd3864ca3c8c91d26755fd926b70b | 1,205 | py | Python | data/script_data_format.py | jasonwbw/JustAPlaceholder | 13ebcd1aade3db302385a16d2dddc716cc2ab1ae | [
"Apache-2.0"
] | 1 | 2016-10-31T13:27:55.000Z | 2016-10-31T13:27:55.000Z | data/script_data_format.py | jasonwbw/JustAPlaceholder | 13ebcd1aade3db302385a16d2dddc716cc2ab1ae | [
"Apache-2.0"
] | null | null | null | data/script_data_format.py | jasonwbw/JustAPlaceholder | 13ebcd1aade3db302385a16d2dddc716cc2ab1ae | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# 重新编号UID和QID
def reorder(fin, fout, fmap):
print 'reorder %s to %s' % (fin, fout)
maps = {}
with open(fin, 'r') as fp:
with open(fout, 'w') as fo:
with open(fmap, 'w') as fo_map:
for i, line in enumerate(fp):
items = line.strip().split('\t', 1)
fo.write("%d\t%s\n" % (i, ... | 34.428571 | 110 | 0.624896 | 200 | 1,205 | 3.59 | 0.28 | 0.033426 | 0.091922 | 0.083565 | 0.350975 | 0.350975 | 0.155989 | 0.091922 | 0.091922 | 0.091922 | 0 | 0.017875 | 0.164315 | 1,205 | 34 | 111 | 35.441176 | 0.695134 | 0.028216 | 0 | 0.222222 | 0 | 0 | 0.30137 | 0.236301 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.