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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ad624595b489df5bf6bb84174882c2e7e694d74 | 1,226 | py | Python | flaskblog/__init__.py | rhythmrx9/moodash | 5f5ee5e329b0eebf066e6cda85d9370be87fd7db | [
"MIT"
] | null | null | null | flaskblog/__init__.py | rhythmrx9/moodash | 5f5ee5e329b0eebf066e6cda85d9370be87fd7db | [
"MIT"
] | null | null | null | flaskblog/__init__.py | rhythmrx9/moodash | 5f5ee5e329b0eebf066e6cda85d9370be87fd7db | [
"MIT"
] | 1 | 2022-03-18T04:27:12.000Z | 2022-03-18T04:27:12.000Z | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy # ORM
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
from flaskblog.config import Config
mail = Mail()
db = SQLAlchemy() # db instance
bcrypt = Bcrypt() # for hashing passwords
login_manager ... | 30.65 | 104 | 0.765905 | 167 | 1,226 | 5.461078 | 0.347305 | 0.085526 | 0.04386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168026 | 1,226 | 39 | 105 | 31.435897 | 0.894118 | 0.225938 | 0 | 0 | 0 | 0 | 0.016043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.37931 | 0 | 0.448276 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ad7946051aeb7e2f81a0b8b870e261164d03311 | 928 | py | Python | src/sentry/api/endpoints/organization_config_repositories.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 2 | 2019-03-04T12:45:54.000Z | 2019-03-04T12:45:55.000Z | src/sentry/api/endpoints/organization_config_repositories.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 196 | 2019-06-10T08:34:10.000Z | 2022-02-22T01:26:13.000Z | src/sentry/api/endpoints/organization_config_repositories.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 1 | 2017-02-09T06:36:57.000Z | 2017-02-09T06:36:57.000Z | from __future__ import absolute_import
from rest_framework.response import Response
from sentry.api.bases.organization import OrganizationEndpoint
from sentry.plugins import bindings
class OrganizationConfigRepositoriesEndpoint(OrganizationEndpoint):
def get(self, request, organization):
provider_bindi... | 30.933333 | 73 | 0.608836 | 84 | 928 | 6.535714 | 0.511905 | 0.091075 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31681 | 928 | 29 | 74 | 32 | 0.865931 | 0.052802 | 0 | 0 | 0 | 0 | 0.058153 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ad8a3e63ed521bfee79a2868ba193eeaab25231 | 6,395 | py | Python | ATVSettings.py | jimbojsb/PlexConnect | ff52fc39b1dbc914f05521f4293461c2cfc16273 | [
"MIT"
] | 1 | 2016-09-07T00:18:40.000Z | 2016-09-07T00:18:40.000Z | ATVSettings.py | jimbojsb/PlexConnect | ff52fc39b1dbc914f05521f4293461c2cfc16273 | [
"MIT"
] | null | null | null | ATVSettings.py | jimbojsb/PlexConnect | ff52fc39b1dbc914f05521f4293461c2cfc16273 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
from os import sep
import ConfigParser
import fnmatch
from Debug import * # dprint()
options = { \
'libraryview' :('List', 'Grid', 'Bookcase'), \
'movieview' :('Grid', 'List', 'Detailed List'), \
'homevideoview' :('Grid', 'List', 'Detailed List'), \
... | 35.331492 | 116 | 0.555278 | 628 | 6,395 | 5.531847 | 0.285032 | 0.066206 | 0.044329 | 0.056419 | 0.286989 | 0.234024 | 0.120322 | 0.120322 | 0.099021 | 0.099021 | 0 | 0.034657 | 0.287099 | 6,395 | 180 | 117 | 35.527778 | 0.727352 | 0.042533 | 0 | 0.126866 | 0 | 0 | 0.291162 | 0.042881 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037313 | null | null | 0.11194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6adbfd93713476941281773de7d0fe3c425758a6 | 11,334 | py | Python | pysflib/tests/test_sfredmine.py | softwarefactory-project/pysflib | 7392453ac7591c5cb7a95e6ff828cd303600fb48 | [
"Apache-2.0"
] | 1 | 2015-05-07T11:44:48.000Z | 2015-05-07T11:44:48.000Z | pysflib/tests/test_sfredmine.py | enovance/pysflib | 095a36a38c617538040e3abc5c46c92bd2b23da8 | [
"Apache-2.0"
] | null | null | null | pysflib/tests/test_sfredmine.py | enovance/pysflib | 095a36a38c617538040e3abc5c46c92bd2b23da8 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 41.977778 | 79 | 0.604553 | 1,268 | 11,334 | 5.212145 | 0.149054 | 0.039038 | 0.089575 | 0.134362 | 0.746406 | 0.706461 | 0.64745 | 0.580723 | 0.517325 | 0.485399 | 0 | 0.009605 | 0.283483 | 11,334 | 269 | 80 | 42.133829 | 0.804211 | 0.056026 | 0 | 0.460829 | 0 | 0 | 0.180363 | 0.141333 | 0 | 0 | 0 | 0 | 0.207373 | 1 | 0.175115 | false | 0 | 0.018433 | 0.02765 | 0.299539 | 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 |
6ade03465b79ac910f27a5e8a185aa95e78222ff | 21,030 | py | Python | aiida/transport/__init__.py | BIGDATA2015-AIIDA-EXTENSION/query_engine | d1cfc7cfe6084854005d2376e3825310c66876b5 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | aiida/transport/__init__.py | BIGDATA2015-AIIDA-EXTENSION/query_engine | d1cfc7cfe6084854005d2376e3825310c66876b5 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | aiida/transport/__init__.py | BIGDATA2015-AIIDA-EXTENSION/query_engine | d1cfc7cfe6084854005d2376e3825310c66876b5 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import aiida.common
from aiida.common.exceptions import InternalError
from aiida.common.extendeddicts import FixedFieldsAttributeDict
import os,re,fnmatch,sys # for glob commands
__copyright__ = u"Copyright (c), 2015, ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE (Theory and Simulation of Materials... | 32.808112 | 392 | 0.608369 | 2,494 | 21,030 | 5.060144 | 0.207298 | 0.023455 | 0.064184 | 0.012678 | 0.315135 | 0.257924 | 0.225357 | 0.195087 | 0.167829 | 0.160856 | 0 | 0.005391 | 0.32078 | 21,030 | 640 | 393 | 32.859375 | 0.878115 | 0.480552 | 0 | 0.279188 | 0 | 0.005076 | 0.100609 | 0.005283 | 0 | 0 | 0 | 0.003125 | 0 | 1 | 0.248731 | false | 0.005076 | 0.045685 | 0.015228 | 0.436548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ae02844da12f115cccd6d31d63b4ae1889a3763 | 8,206 | py | Python | bot.py | NeoMahler/rc-vikidia | de34eee7b7474951c4c9da8a2518059792f3b67f | [
"MIT"
] | null | null | null | bot.py | NeoMahler/rc-vikidia | de34eee7b7474951c4c9da8a2518059792f3b67f | [
"MIT"
] | null | null | null | bot.py | NeoMahler/rc-vikidia | de34eee7b7474951c4c9da8a2518059792f3b67f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys, os, re, threading, imp
import irc
home = os.getcwd()
def decode(bytes):
try: text = bytes.decode('utf-8')
except UnicodeDecodeError:
try: text = bytes.decode('iso-8859-1')
except UnicodeDecodeError:
text = bytes.decode('cp1252')
return text
class Ph... | 36.798206 | 79 | 0.524982 | 917 | 8,206 | 4.633588 | 0.198473 | 0.030595 | 0.025418 | 0.023535 | 0.216992 | 0.180748 | 0.104966 | 0.068016 | 0.04048 | 0.024476 | 0 | 0.00467 | 0.347672 | 8,206 | 222 | 80 | 36.963964 | 0.78909 | 0.036315 | 0 | 0.096591 | 0 | 0 | 0.045708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005682 | 0.011364 | null | null | 0.028409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ae2dbbf7c08d3f79b113cdc972c1e7e59e99962 | 743 | py | Python | scripts/python/s3list-old.py | kalantal/s3-tests | a6a5d51bad33e1f2f54c8622e7b8958cfe9b1350 | [
"MIT"
] | 2 | 2019-10-30T20:28:25.000Z | 2020-04-18T08:35:38.000Z | scripts/python/s3list-old.py | kalantal/s3-tests | a6a5d51bad33e1f2f54c8622e7b8958cfe9b1350 | [
"MIT"
] | null | null | null | scripts/python/s3list-old.py | kalantal/s3-tests | a6a5d51bad33e1f2f54c8622e7b8958cfe9b1350 | [
"MIT"
] | null | null | null | #!/bin/env python
import boto3
from pprint import pprint
def main():
def enumerate_s3_buckets():
print "Bucket list:"
s3 = boto3.resource('s3')
endpoint_url = 's3.amazonaws.com',
for bucket in s3.buckets.all():
print "s3://" + ("{}".format(bucket.name))
enumerate_... | 25.62069 | 100 | 0.567968 | 86 | 743 | 4.686047 | 0.337209 | 0.109181 | 0.069479 | 0.114144 | 0.342432 | 0.342432 | 0.342432 | 0.342432 | 0.342432 | 0.342432 | 0 | 0.031599 | 0.275908 | 743 | 28 | 101 | 26.535714 | 0.717472 | 0.021534 | 0 | 0.285714 | 0 | 0 | 0.11708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ae4874e178f03ae84cc6758d50859179fa16ab7 | 3,102 | py | Python | src/GaussianDistributionGenerator.py | jachallbound/kmeans_python | 0fba1c19354800dc20e8280304c318107763f48f | [
"MIT"
] | null | null | null | src/GaussianDistributionGenerator.py | jachallbound/kmeans_python | 0fba1c19354800dc20e8280304c318107763f48f | [
"MIT"
] | null | null | null | src/GaussianDistributionGenerator.py | jachallbound/kmeans_python | 0fba1c19354800dc20e8280304c318107763f48f | [
"MIT"
] | null | null | null | import numpy as np
import numpy.random as npr
def generate_gaussian_data(D,
ndim,
samples,
priors = None,
means = None,
covs = None
):
"""Generate D N-di... | 39.265823 | 91 | 0.592199 | 398 | 3,102 | 4.552764 | 0.321608 | 0.016556 | 0.01766 | 0.013245 | 0.113687 | 0.029801 | 0 | 0 | 0 | 0 | 0 | 0.013017 | 0.306576 | 3,102 | 78 | 92 | 39.769231 | 0.829382 | 0.36009 | 0 | 0.047619 | 1 | 0 | 0.150933 | 0.0112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0.02381 | 0.047619 | 0 | 0.095238 | 0 | 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 |
6ae5cba4fb26b18dd3ce755ebc2dc9050761845f | 26,087 | py | Python | client/deploy_utils.py | jackode/minos | 797a13241da825b704e54492791b0777e2013279 | [
"Apache-2.0"
] | 1 | 2015-11-05T21:29:08.000Z | 2015-11-05T21:29:08.000Z | client/deploy_utils.py | jackode/minos | 797a13241da825b704e54492791b0777e2013279 | [
"Apache-2.0"
] | null | null | null | client/deploy_utils.py | jackode/minos | 797a13241da825b704e54492791b0777e2013279 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import ConfigParser
import argparse
import cStringIO
import deploy_config
import getpass
import hashlib
import os
import pprint
import re
import service_config
import socket
import string
import subprocess
import sys
import telnetlib
import tempfile
import time
import uuid
from datetime import d... | 33.147395 | 94 | 0.706942 | 3,596 | 26,087 | 4.951057 | 0.119299 | 0.037239 | 0.021344 | 0.014154 | 0.470681 | 0.407324 | 0.364188 | 0.326219 | 0.29381 | 0.271344 | 0 | 0.004932 | 0.191628 | 26,087 | 786 | 95 | 33.189567 | 0.83934 | 0.018247 | 0 | 0.23608 | 0 | 0.002227 | 0.140622 | 0.016297 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.03118 | 0.048998 | null | null | 0.138085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6aee45e7402f31a4aaf53191d6cc5bd4763b070c | 9,936 | py | Python | tests/test_certificate_handler.py | flamestro/cert-issuer | b5fa4373a5c0ce3ebdf0b409118b95544375ed9b | [
"MIT"
] | 2 | 2019-12-19T18:18:45.000Z | 2019-12-19T18:19:23.000Z | tests/test_certificate_handler.py | flamestro/cert-issuer | b5fa4373a5c0ce3ebdf0b409118b95544375ed9b | [
"MIT"
] | 13 | 2020-01-14T09:59:06.000Z | 2020-02-16T12:38:26.000Z | tests/test_certificate_handler.py | BlockcertsSmartContract/cert-issuer | b5fa4373a5c0ce3ebdf0b409118b95544375ed9b | [
"MIT"
] | null | null | null | import unittest
import mock
import json
import io
from pycoin.serialize import b2h
from mock import patch, mock_open
from cert_issuer.certificate_handlers import CertificateWebV2Handler, CertificateV2Handler, CertificateBatchHandler, CertificateHandler, CertificateBatchWebHandler
from cert_issuer.merkle_tree_generato... | 39.272727 | 163 | 0.653482 | 926 | 9,936 | 6.605832 | 0.147948 | 0.062776 | 0.07896 | 0.021579 | 0.660781 | 0.618113 | 0.618113 | 0.618113 | 0.618113 | 0.609286 | 0 | 0.072683 | 0.260568 | 9,936 | 252 | 164 | 39.428571 | 0.759902 | 0 | 0 | 0.522843 | 0 | 0 | 0.159622 | 0.11101 | 0 | 0 | 0 | 0 | 0.076142 | 1 | 0.086294 | false | 0.015228 | 0.050761 | 0 | 0.172589 | 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 |
6af067f0d0873178de41701ffa3c759b38a7e393 | 1,135 | py | Python | test_split.py | purpleP/python-split | 40aee20e918a1f0670fa8de4a770323d466642ae | [
"MIT"
] | null | null | null | test_split.py | purpleP/python-split | 40aee20e918a1f0670fa8de4a770323d466642ae | [
"MIT"
] | null | null | null | test_split.py | purpleP/python-split | 40aee20e918a1f0670fa8de4a770323d466642ae | [
"MIT"
] | null | null | null | from itertools import chain, repeat
from hypothesis import given
import hypothesis.strategies as st
import pytest
from split import chunks, groupby, partition, split
expected_keys = (1, 2, 3, 4, 5)
expected_groups = ((1, 1), (2, 2), (3, 3), (4, 4), (5, 5))
def call(*args, **kwargs):
return args, kwargs
@p... | 21.415094 | 84 | 0.635242 | 173 | 1,135 | 4.092486 | 0.32948 | 0.049435 | 0.008475 | 0.011299 | 0.101695 | 0.087571 | 0.087571 | 0.087571 | 0 | 0 | 0 | 0.046892 | 0.19207 | 1,135 | 52 | 85 | 21.826923 | 0.725191 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.225806 | false | 0 | 0.16129 | 0.064516 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a7207a080154d4dbb0ecb8af1d2e4adebb25f2a | 4,870 | py | Python | sdk/python/pulumi_azure_nextgen/authorization/latest/get_management_lock_at_subscription_level.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_nextgen/authorization/latest/get_management_lock_at_subscription_level.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_nextgen/authorization/latest/get_management_lock_at_subscription_level.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 36.616541 | 283 | 0.66037 | 544 | 4,870 | 5.722426 | 0.262868 | 0.020238 | 0.030838 | 0.057822 | 0.241889 | 0.181497 | 0.146804 | 0.086091 | 0.086091 | 0.086091 | 0 | 0.003253 | 0.242505 | 4,870 | 132 | 284 | 36.893939 | 0.840607 | 0.162218 | 0 | 0.141176 | 1 | 0.023529 | 0.229231 | 0.10641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105882 | false | 0 | 0.070588 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a730f7879c47bc726db12d84241ddd377f04449 | 3,143 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/modules/windows/win_share.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/ansible/modules/windows/win_share.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | ansible/ansible/modules/windows/win_share.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Hans-Joachim Kliemeck <git@kliemeck.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported... | 26.411765 | 135 | 0.671333 | 417 | 3,143 | 5.028777 | 0.429257 | 0.026705 | 0.041965 | 0.049595 | 0.205055 | 0.181211 | 0.181211 | 0.109681 | 0 | 0 | 0 | 0.01218 | 0.242444 | 3,143 | 118 | 136 | 26.635593 | 0.868543 | 0.060452 | 0 | 0.373832 | 0 | 0.028037 | 0.94744 | 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 |
0a78dc249db8f08f853c1d24bfd30a7d789032cf | 3,043 | py | Python | get-commit-gitname/getGitName.py | firebird519/python | d61b0d4e7c9d7fa36cd6d6bdd7e82c7e5de5fed1 | [
"Apache-2.0"
] | null | null | null | get-commit-gitname/getGitName.py | firebird519/python | d61b0d4e7c9d7fa36cd6d6bdd7e82c7e5de5fed1 | [
"Apache-2.0"
] | null | null | null | get-commit-gitname/getGitName.py | firebird519/python | d61b0d4e7c9d7fa36cd6d6bdd7e82c7e5de5fed1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# pythond version: 2.7.10
import os
import sys,urllib,string,re
import urllib2
import webbrowser
DEBUG = 1
URL_COMMIT_DETAILS_PRE = 'http://review.sonyericsson.net/changes/'
URL_END = 'detail?O=404'
GIT_NAME_KEY = 'project'
#browserCookie.py is necessary for this import.
try:
from browserCo... | 20.842466 | 111 | 0.679921 | 407 | 3,043 | 5.031941 | 0.420147 | 0.020508 | 0.041016 | 0.025391 | 0.022461 | 0.022461 | 0 | 0 | 0 | 0 | 0 | 0.021086 | 0.158396 | 3,043 | 145 | 112 | 20.986207 | 0.778602 | 0.144923 | 0 | 0.2 | 0 | 0.011111 | 0.195896 | 0.029423 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a7baa34c66117395969d33dd17e16a39cf28fe5 | 6,397 | py | Python | Test_BattleShip.py | Philipsty/BattleShip | 6f92295a6c4df65a1bb4c6239b3c2c4134c00468 | [
"MIT"
] | null | null | null | Test_BattleShip.py | Philipsty/BattleShip | 6f92295a6c4df65a1bb4c6239b3c2c4134c00468 | [
"MIT"
] | null | null | null | Test_BattleShip.py | Philipsty/BattleShip | 6f92295a6c4df65a1bb4c6239b3c2c4134c00468 | [
"MIT"
] | null | null | null | #Tyler Philips
#!/usr/bin/env python
import unittest
from PointT import*
from Board import*
from Ships import*
from BattleShip import*
# Tyler Philips
#April 1 the work being submitted is your own individual work
class Test_BattleShip(unittest.TestCase):
#pointT tests#############################################... | 37.409357 | 118 | 0.578396 | 896 | 6,397 | 4.082589 | 0.133929 | 0.021323 | 0.065063 | 0.084199 | 0.584746 | 0.573264 | 0.564516 | 0.564516 | 0.484691 | 0.406506 | 0 | 0.02542 | 0.274347 | 6,397 | 171 | 119 | 37.409357 | 0.762602 | 0.381898 | 0 | 0.268817 | 0 | 0 | 0.123284 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.150538 | false | 0.150538 | 0.053763 | 0 | 0.215054 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a7c3798ffff161d6361ceb2dc3607b49fba41f9 | 1,904 | py | Python | src/main/test/runall.py | abrami/uima-ducc | bf3ed51b1d070761557f660ddc684f851d7b6061 | [
"Apache-2.0"
] | 8 | 2015-07-08T17:53:46.000Z | 2021-11-10T19:00:35.000Z | src/main/test/runall.py | abrami/uima-ducc | bf3ed51b1d070761557f660ddc684f851d7b6061 | [
"Apache-2.0"
] | 2 | 2021-08-25T15:57:48.000Z | 2022-02-01T01:12:04.000Z | src/main/test/runall.py | abrami/uima-ducc | bf3ed51b1d070761557f660ddc684f851d7b6061 | [
"Apache-2.0"
] | 21 | 2015-12-09T21:48:28.000Z | 2021-11-10T19:00:23.000Z | #!/usr/bin/env python
# -----------------------------------------------------------------------
# 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 l... | 31.213115 | 100 | 0.607668 | 256 | 1,904 | 4.472656 | 0.476563 | 0.083843 | 0.030568 | 0.048035 | 0.062009 | 0.062009 | 0.045415 | 0 | 0 | 0 | 0 | 0.004692 | 0.216387 | 1,904 | 60 | 101 | 31.733333 | 0.762735 | 0.482668 | 0 | 0 | 0 | 0 | 0.295031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a7d60c0ec0611787702e09686d324fad39f5670 | 2,881 | py | Python | datadog_checks_dev/setup.py | remicalixte/integrations-core | b115e18c52820fe1a92495f538fdc14ddf83cfe1 | [
"BSD-3-Clause"
] | null | null | null | datadog_checks_dev/setup.py | remicalixte/integrations-core | b115e18c52820fe1a92495f538fdc14ddf83cfe1 | [
"BSD-3-Clause"
] | null | null | null | datadog_checks_dev/setup.py | remicalixte/integrations-core | b115e18c52820fe1a92495f538fdc14ddf83cfe1 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from io import open
from os import path
from setuptools import setup
HERE = path.dirname(path.abspath(__file__))
with open(path.join(HERE, 'datadog_checks', 'dev', '__about__.py'), 'r', encoding='utf-8'... | 29.701031 | 96 | 0.571677 | 335 | 2,881 | 4.80597 | 0.501493 | 0.080745 | 0.059627 | 0.02795 | 0.106211 | 0.063354 | 0 | 0 | 0 | 0 | 0 | 0.040509 | 0.263103 | 2,881 | 96 | 97 | 30.010417 | 0.717852 | 0.072891 | 0 | 0 | 0 | 0.012195 | 0.468093 | 0.052928 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0 | false | 0 | 0.036585 | 0 | 0.036585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0a7dadc22e3bd2c209cd4c290aa7aa0f3fa91392 | 30,555 | py | Python | test/steps/steps.py | jannotti/py-algorand-sdk | 08fb4307c73aa4a8a8d5cb6c082ba29b7381dcfc | [
"MIT"
] | null | null | null | test/steps/steps.py | jannotti/py-algorand-sdk | 08fb4307c73aa4a8a8d5cb6c082ba29b7381dcfc | [
"MIT"
] | null | null | null | test/steps/steps.py | jannotti/py-algorand-sdk | 08fb4307c73aa4a8a8d5cb6c082ba29b7381dcfc | [
"MIT"
] | null | null | null | from behave import given, when, then
import base64
from algosdk import kmd
from algosdk.future import transaction
from algosdk import encoding
from algosdk import algod
from algosdk import account
from algosdk import mnemonic
from algosdk import wallet
from algosdk import auction
from algosdk import util
from algosdk i... | 33.104009 | 219 | 0.726559 | 4,236 | 30,555 | 5.097734 | 0.087347 | 0.014587 | 0.016718 | 0.020839 | 0.530101 | 0.442438 | 0.385477 | 0.310457 | 0.273224 | 0.229323 | 0 | 0.007153 | 0.153494 | 30,555 | 922 | 220 | 33.139913 | 0.827721 | 0.012437 | 0 | 0.253086 | 0 | 0.003086 | 0.191428 | 0.002983 | 0 | 0 | 0 | 0 | 0.058642 | 1 | 0.20216 | false | 0.001543 | 0.037037 | 0 | 0.239198 | 0.003086 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a83b91b73d82124d74834782c540cad32926494 | 615 | py | Python | exam/mainapp/urls.py | malfin/exam_project | 8b707ff6cbd09b096273a97165adc15c28f838e0 | [
"Apache-2.0"
] | null | null | null | exam/mainapp/urls.py | malfin/exam_project | 8b707ff6cbd09b096273a97165adc15c28f838e0 | [
"Apache-2.0"
] | null | null | null | exam/mainapp/urls.py | malfin/exam_project | 8b707ff6cbd09b096273a97165adc15c28f838e0 | [
"Apache-2.0"
] | null | null | null | from django.urls import path, re_path
app_name = 'mainapp'
import mainapp.views as mainapp
urlpatterns = [
path('', mainapp.index, name='index'),
path('about/', mainapp.about, name='about'),
path('find/', mainapp.find, name='find'),
path('select-products/<int:pk>/', mainapp.select_product, name='sele... | 34.166667 | 97 | 0.678049 | 85 | 615 | 4.682353 | 0.294118 | 0.180905 | 0.281407 | 0.158291 | 0.419598 | 0.419598 | 0.419598 | 0.419598 | 0.321608 | 0.321608 | 0 | 0 | 0.117073 | 615 | 17 | 98 | 36.176471 | 0.732965 | 0.286179 | 0 | 0 | 0 | 0 | 0.245413 | 0.057339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
0a85a67f7be4142c652e4e31e3679f3f1c461fb5 | 1,934 | py | Python | h/views.py | metasj/h | 5506f8d894ab60502d0499fdf141d22b54909511 | [
"MIT"
] | 1 | 2021-02-24T11:06:44.000Z | 2021-02-24T11:06:44.000Z | h/views.py | metasj/h | 5506f8d894ab60502d0499fdf141d22b54909511 | [
"MIT"
] | null | null | null | h/views.py | metasj/h | 5506f8d894ab60502d0499fdf141d22b54909511 | [
"MIT"
] | 1 | 2021-02-24T11:06:51.000Z | 2021-02-24T11:06:51.000Z | __all__ = ['BaseController']
import json
from pyramid.renderers import render
from pyramid.view import view_config
from horus.views import BaseController
@view_config(http_cache=(0, {'must-revalidate': True}),
renderer='templates/embed.txt', route_name='embed')
def embed(request, standalone=True):
... | 24.175 | 78 | 0.627715 | 207 | 1,934 | 5.700483 | 0.333333 | 0.068644 | 0.065254 | 0.10678 | 0.44661 | 0.427119 | 0.413559 | 0.069492 | 0 | 0 | 0 | 0.001361 | 0.240434 | 1,934 | 79 | 79 | 24.481013 | 0.801906 | 0 | 0 | 0.333333 | 0 | 0 | 0.307135 | 0.12151 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.063492 | 0.015873 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a89affe9a9a060e4db91290c358ae082f9001cd | 1,312 | py | Python | hapic/__init__.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 20 | 2017-10-13T11:23:33.000Z | 2021-12-09T12:42:06.000Z | hapic/__init__.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 130 | 2017-10-10T15:09:13.000Z | 2021-12-30T10:36:08.000Z | hapic/__init__.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 7 | 2017-10-17T07:24:42.000Z | 2021-09-16T14:33:17.000Z | # -*- coding: utf-8 -*-
from hapic.data import HapicData # noqa: F401
from hapic.hapic import Hapic
from hapic.infos import __version__ # noqa: F401
# To make a default hapic instance, must determine processor
try:
from hapic.processor.marshmallow import MarshmallowProcessor
default_processor_class = Marshm... | 35.459459 | 64 | 0.833079 | 169 | 1,312 | 5.976331 | 0.301775 | 0.20198 | 0.10099 | 0.041584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006045 | 0.117378 | 1,312 | 36 | 65 | 36.444444 | 0.866149 | 0.077744 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.241379 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a8cd44eca0e6a443ac4b7800e14685eecd87d28 | 837 | py | Python | project_euler_52.py | andrazm123/Project-Euler | 260a46810bce73e1079c13518ae94732c8cb1acb | [
"MIT"
] | null | null | null | project_euler_52.py | andrazm123/Project-Euler | 260a46810bce73e1079c13518ae94732c8cb1acb | [
"MIT"
] | null | null | null | project_euler_52.py | andrazm123/Project-Euler | 260a46810bce73e1079c13518ae94732c8cb1acb | [
"MIT"
] | null | null | null | def ali_sta_seznama_enaka(sez1, sez2):
slo1 = {}
slo2 = {}
for i in sez1:
slo1[i] = slo1.get(i, 0) + 1
for i in sez2:
slo2[i] = slo2.get(i, 0) + 1
if slo1 == slo2:
return True
else:
return False
def permutacijsko_stevilo():
x = 1
while True:
sez1 ... | 31 | 197 | 0.557945 | 141 | 837 | 3.170213 | 0.269504 | 0.080537 | 0.174497 | 0.241611 | 0.514541 | 0.514541 | 0 | 0 | 0 | 0 | 0 | 0.068063 | 0.315412 | 837 | 27 | 198 | 31 | 0.712042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.208333 | 0.041667 | 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 |
0a9322b39783b7c4184f384be1e87968bed4913f | 2,896 | py | Python | json5/tokenizer.py | FlorianLudwig/json-five | b13cc74aa334b471473811e486746b9104e81fe0 | [
"Apache-2.0"
] | 13 | 2020-05-18T22:30:26.000Z | 2022-02-15T13:15:34.000Z | json5/tokenizer.py | FlorianLudwig/json-five | b13cc74aa334b471473811e486746b9104e81fe0 | [
"Apache-2.0"
] | 23 | 2020-05-19T06:22:16.000Z | 2021-08-05T00:59:47.000Z | json5/tokenizer.py | FlorianLudwig/json-five | b13cc74aa334b471473811e486746b9104e81fe0 | [
"Apache-2.0"
] | 1 | 2021-07-31T18:10:01.000Z | 2021-07-31T18:10:01.000Z | import regex as re
import sys
from sly import Lexer
from sly.lex import Token
from json5.utils import JSON5DecodeError
import logging
logger = logging.getLogger(__name__)
# logger.addHandler(logging.StreamHandler(stream=sys.stderr))
# logger.setLevel(level=logging.DEBUG)
class JSON5Token(Token):
'''
Representa... | 28.392157 | 112 | 0.547652 | 340 | 2,896 | 4.532353 | 0.370588 | 0.057106 | 0.044127 | 0.037638 | 0.051914 | 0.051914 | 0.051914 | 0.051914 | 0.051914 | 0.051914 | 0 | 0.025432 | 0.280387 | 2,896 | 101 | 113 | 28.673267 | 0.714012 | 0.070787 | 0 | 0.05 | 0 | 0.0375 | 0.183078 | 0.078248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0875 | false | 0 | 0.075 | 0.0125 | 0.525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a933bc410db495e1ba85a08cae25e479ce1adef | 14,301 | py | Python | src/BTSolver.py | MysteryLEE/Sudoku_JiaweiLi | f52354adfbb69d0e3700ca77f02910f4638c2741 | [
"MIT"
] | null | null | null | src/BTSolver.py | MysteryLEE/Sudoku_JiaweiLi | f52354adfbb69d0e3700ca77f02910f4638c2741 | [
"MIT"
] | null | null | null | src/BTSolver.py | MysteryLEE/Sudoku_JiaweiLi | f52354adfbb69d0e3700ca77f02910f4638c2741 | [
"MIT"
] | null | null | null | import SudokuBoard
import Variable
import Domain
import Trail
import Constraint
import ConstraintNetwork
import time
import random
class BTSolver:
# ==================================================================
# Constructors
# ==================================================================
d... | 36.953488 | 176 | 0.543668 | 1,470 | 14,301 | 5.227211 | 0.179592 | 0.019521 | 0.015226 | 0.02733 | 0.421916 | 0.380401 | 0.351379 | 0.33316 | 0.31481 | 0.304138 | 0 | 0.004319 | 0.3362 | 14,301 | 386 | 177 | 37.049223 | 0.80512 | 0.14013 | 0 | 0.36 | 0 | 0 | 0.013014 | 0.004663 | 0 | 0 | 0 | 0.023316 | 0 | 1 | 0.084444 | false | 0 | 0.035556 | 0.017778 | 0.297778 | 0.004444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0a9385f3741cc1e2e9f0bd5b924885b26c06967c | 788 | py | Python | src/grok/tests/viewlet/viewlet_render_and_template.py | zopefoundation/grok | 9c29591071aff824e6ef72acf8137bb21c0ea861 | [
"ZPL-2.1"
] | 21 | 2015-11-06T08:54:43.000Z | 2021-08-15T13:41:13.000Z | src/grok/tests/viewlet/viewlet_render_and_template.py | zopefoundation/grok | 9c29591071aff824e6ef72acf8137bb21c0ea861 | [
"ZPL-2.1"
] | 8 | 2016-03-18T14:25:17.000Z | 2020-06-10T23:17:26.000Z | src/grok/tests/viewlet/viewlet_render_and_template.py | zopefoundation/grok | 9c29591071aff824e6ef72acf8137bb21c0ea861 | [
"ZPL-2.1"
] | 13 | 2015-09-19T22:42:44.000Z | 2022-01-24T18:55:20.000Z | """
A viewlet is not allowed to define its own render method and have a template
associated with it at the same time.
>>> grok.testing.grok(__name__)
Traceback (most recent call last):
...
zope.configuration.config.ConfigurationExecutionError: martian.error.GrokError: Multiple possible ways to render viewlet... | 30.307692 | 253 | 0.751269 | 104 | 788 | 5.625 | 0.567308 | 0.061538 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004532 | 0.159898 | 788 | 25 | 254 | 31.52 | 0.879154 | 0.582487 | 0 | 0.2 | 0 | 0 | 0.115265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a94c42606472e2d6db453bcd02e5cd6167be095 | 537 | py | Python | ganonymizer-v3/app/api/router.py | MSec-H2020/GANonymizer | 3bacfbf2593e5ba9e4a8f4d654f53c8df0e55174 | [
"Apache-2.0"
] | null | null | null | ganonymizer-v3/app/api/router.py | MSec-H2020/GANonymizer | 3bacfbf2593e5ba9e4a8f4d654f53c8df0e55174 | [
"Apache-2.0"
] | null | null | null | ganonymizer-v3/app/api/router.py | MSec-H2020/GANonymizer | 3bacfbf2593e5ba9e4a8f4d654f53c8df0e55174 | [
"Apache-2.0"
] | null | null | null | from flask import request
from api import app
from api import controller as controller
from api import middleware as middleware
from api.gano import load_config, load_model
@app.before_first_request
def init():
load_config()
load_model()
@app.route("/health")
def health():
return controller.health()
... | 20.653846 | 59 | 0.731844 | 75 | 537 | 5.106667 | 0.453333 | 0.073107 | 0.101828 | 0.099217 | 0.114883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.147114 | 537 | 25 | 60 | 21.48 | 0.827511 | 0 | 0 | 0 | 0 | 0 | 0.124767 | 0.05959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.277778 | 0.055556 | 0.555556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0aa02e9d4de41be371d6f5773b8b7e1e8c417a79 | 2,781 | py | Python | goose/commits.py | eBay/goose | 765c9e9079703cf7e263d1dd4a3b1633b75a7259 | [
"MIT"
] | 6 | 2022-03-14T15:40:14.000Z | 2022-03-31T00:54:34.000Z | goose/commits.py | eBay/goose | 765c9e9079703cf7e263d1dd4a3b1633b75a7259 | [
"MIT"
] | 7 | 2022-03-11T23:04:08.000Z | 2022-03-16T19:44:25.000Z | goose/commits.py | eBay/goose | 765c9e9079703cf7e263d1dd4a3b1633b75a7259 | [
"MIT"
] | null | null | null | import tempfile
from typing import Tuple, Set, Dict, Iterable, Optional
from urllib import parse
from git import Repo
from .github_client import create_authenticated_repo_url
GONE_SHA = '0000000000000000000000000000000000000000'
def prune_dotgit_suffix(url: str) -> str:
'if the string ends with .git, remove that... | 30.56044 | 94 | 0.606257 | 358 | 2,781 | 4.555866 | 0.382682 | 0.044145 | 0.026977 | 0.036787 | 0.053955 | 0.025751 | 0 | 0 | 0 | 0 | 0 | 0.02359 | 0.298813 | 2,781 | 90 | 95 | 30.9 | 0.812821 | 0.16361 | 0 | 0.065574 | 0 | 0 | 0.038839 | 0.017072 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.147541 | false | 0 | 0.081967 | 0.032787 | 0.409836 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0aa2d422429ec3c6e6960ce6617d194b4cc9a8b7 | 8,166 | py | Python | swagger_client/models/ont.py | ESIPFed/corpy | e1eec577f15934c6969784c4025d2c29eb7c32ca | [
"Apache-2.0"
] | null | null | null | swagger_client/models/ont.py | ESIPFed/corpy | e1eec577f15934c6969784c4025d2c29eb7c32ca | [
"Apache-2.0"
] | null | null | null | swagger_client/models/ont.py | ESIPFed/corpy | e1eec577f15934c6969784c4025d2c29eb7c32ca | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
ORR API Documentation
The main ORR documentation is located at: https://mmisw.org/orrdoc/ __Please note__: - The ORR API is approaching a stable version but is still work in progress. Please [let us know](https://github.com/mmisw/mmiorr-docs/issues) if you have any questions or sugges... | 30.022059 | 1,724 | 0.579721 | 1,028 | 8,166 | 4.523346 | 0.233463 | 0.037419 | 0.054194 | 0.05871 | 0.26086 | 0.208387 | 0.203871 | 0.147527 | 0.084516 | 0.033118 | 0 | 0.014477 | 0.323292 | 8,166 | 271 | 1,725 | 30.132841 | 0.827 | 0.443669 | 0 | 0.075 | 0 | 0 | 0.047392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.025 | 0 | 0.325 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aa2f9758b144de140a80c7d4e67fc2cc776c079 | 430 | py | Python | school/simpleApi/migrations/0005_alter_gradeable_grading_datetime.py | kiarashplusplus/PaperPileSchool | 40f91eea15d743bd22f918cec42e9c778b3d6d7d | [
"MIT"
] | null | null | null | school/simpleApi/migrations/0005_alter_gradeable_grading_datetime.py | kiarashplusplus/PaperPileSchool | 40f91eea15d743bd22f918cec42e9c778b3d6d7d | [
"MIT"
] | null | null | null | school/simpleApi/migrations/0005_alter_gradeable_grading_datetime.py | kiarashplusplus/PaperPileSchool | 40f91eea15d743bd22f918cec42e9c778b3d6d7d | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-07-07 21:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('simpleApi', '0004_alter_gradeable_submission_datetime'),
]
operations = [
migrations.AlterField(
model_name='gradeable',
... | 22.631579 | 66 | 0.632558 | 45 | 430 | 5.911111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059748 | 0.260465 | 430 | 18 | 67 | 23.888889 | 0.77673 | 0.104651 | 0 | 0 | 1 | 0 | 0.193211 | 0.104439 | 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 |
0aa3f97cc8be95152bf981ef9fbb5d89de848a88 | 2,020 | py | Python | tests/test_noise.py | theorashid/tinygp | 992eb3db76587c62a27330835f91541b00acde8f | [
"MIT"
] | null | null | null | tests/test_noise.py | theorashid/tinygp | 992eb3db76587c62a27330835f91541b00acde8f | [
"MIT"
] | null | null | null | tests/test_noise.py | theorashid/tinygp | 992eb3db76587c62a27330835f91541b00acde8f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# mypy: ignore-errors
import jax.numpy as jnp
import numpy as np
import tinygp
def check_noise_model(noise, dense_rep):
random = np.random.default_rng(6675)
np.testing.assert_allclose(noise.diagonal(), jnp.diag(dense_rep))
np.testing.assert_allclose(noise + np.zeros_like(dense_r... | 28.055556 | 75 | 0.65099 | 313 | 2,020 | 4.044728 | 0.236422 | 0.094787 | 0.118483 | 0.181675 | 0.442338 | 0.28515 | 0.240126 | 0.157978 | 0.063191 | 0 | 0 | 0.032766 | 0.214356 | 2,020 | 71 | 76 | 28.450704 | 0.764965 | 0.063366 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.081633 | false | 0.020408 | 0.061224 | 0 | 0.142857 | 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 |
0aa5a4088b1e64623d732261d77dc9e790ceca65 | 1,977 | py | Python | announceGatewayTraffic.py | freifunk-saar/AlfredGatewayTrafficAnnounce | f09ebf2903df8c6e1440728de9c49e0dceb06b40 | [
"MIT"
] | null | null | null | announceGatewayTraffic.py | freifunk-saar/AlfredGatewayTrafficAnnounce | f09ebf2903df8c6e1440728de9c49e0dceb06b40 | [
"MIT"
] | null | null | null | announceGatewayTraffic.py | freifunk-saar/AlfredGatewayTrafficAnnounce | f09ebf2903df8c6e1440728de9c49e0dceb06b40 | [
"MIT"
] | null | null | null | import json
import subprocess
import argparse
from xml.dom import minidom
class GatewayStat():
def __init__(self):
self.hour = []
self.day = []
self.month = []
def dump(self):
dumpRet = {}
dumpRet['hour'] = self.hour
dumpRet['day'] = self.day
dumpRet['month'] = self.month
return dumpRet
def getText... | 29.073529 | 79 | 0.682853 | 244 | 1,977 | 5.495902 | 0.254098 | 0.11484 | 0.085757 | 0.123043 | 0.138702 | 0.129754 | 0 | 0 | 0 | 0 | 0 | 0.008762 | 0.134041 | 1,977 | 67 | 80 | 29.507463 | 0.774533 | 0 | 0 | 0 | 0 | 0 | 0.059252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0aa5cedfe07b6400afa3ab12ba3b2603875954bb | 11,960 | py | Python | src/nlafl/emnist_sample.py | nlafl/Network-Level-Adversaries-in-Federated-Learning | aa40a630ab70eba9406c84dff4cfe5825805f8ba | [
"MIT"
] | null | null | null | src/nlafl/emnist_sample.py | nlafl/Network-Level-Adversaries-in-Federated-Learning | aa40a630ab70eba9406c84dff4cfe5825805f8ba | [
"MIT"
] | null | null | null | src/nlafl/emnist_sample.py | nlafl/Network-Level-Adversaries-in-Federated-Learning | aa40a630ab70eba9406c84dff4cfe5825805f8ba | [
"MIT"
] | null | null | null | import os
import random
import numpy as np
from nlafl import common
def load_emnist():
""" Load the EMNIST dataet
Returns:
tuple: tuple of numpy arrays trn_x, trn_y, tst_x, tst_y
"""
trn_x = np.load(os.path.expanduser(common.emnist_trn_x_pth))
trn_y = np.load(os.path.expanduser(common... | 33.785311 | 108 | 0.629264 | 1,733 | 11,960 | 4.153491 | 0.110214 | 0.04279 | 0.009725 | 0.015282 | 0.701306 | 0.678105 | 0.66449 | 0.648652 | 0.616699 | 0.608919 | 0 | 0.009359 | 0.276338 | 11,960 | 353 | 109 | 33.88102 | 0.822299 | 0.373411 | 0 | 0.644068 | 0 | 0 | 0.039349 | 0 | 0 | 0 | 0 | 0 | 0.039548 | 1 | 0.028249 | false | 0 | 0.022599 | 0 | 0.079096 | 0.050847 | 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 |
0aa60751fabf9ed51304c34dceea90cfee1da443 | 1,327 | py | Python | part_07.py | vu-univ-3360-5360/assignment-02-jacobberk15 | a27d6227db672e232b925e05d2063e3af315ad66 | [
"MIT"
] | null | null | null | part_07.py | vu-univ-3360-5360/assignment-02-jacobberk15 | a27d6227db672e232b925e05d2063e3af315ad66 | [
"MIT"
] | null | null | null | part_07.py | vu-univ-3360-5360/assignment-02-jacobberk15 | a27d6227db672e232b925e05d2063e3af315ad66 | [
"MIT"
] | null | null | null | # userid: berkj
# Email: jacob.berk@vanderbilt.edu
# Assignment Number: assignment1
# Honor statement: I pledge on my honor that I have neither given nor
# received unauthorized aid on this assignment.
# Exercise 6:
# datadotworld module has been imported as dw
import datadotworld as dw
## Complete the SQL query to ... | 55.291667 | 241 | 0.785983 | 196 | 1,327 | 5.295918 | 0.505102 | 0.030829 | 0.075145 | 0.095376 | 0.156069 | 0.156069 | 0.156069 | 0 | 0 | 0 | 0 | 0.008658 | 0.129616 | 1,327 | 23 | 242 | 57.695652 | 0.890043 | 0.660136 | 0 | 0 | 0 | 0.166667 | 0.618391 | 0.101149 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aa6a494299059be3fa9c4dfeeb2ff77a967611e | 6,276 | py | Python | tests/test_json_loader.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 2,293 | 2015-08-14T22:39:31.000Z | 2022-03-31T12:44:49.000Z | tests/test_json_loader.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 676 | 2015-08-20T19:29:56.000Z | 2022-03-31T13:45:51.000Z | tests/test_json_loader.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 255 | 2015-12-02T21:16:33.000Z | 2022-03-20T22:03:46.000Z | import json
import pytest
from dynaconf import LazySettings
from dynaconf.loaders.json_loader import DynaconfEncoder
from dynaconf.loaders.json_loader import load
from dynaconf.strategies.filtering import PrefixFilter
settings = LazySettings(environments=True, ENV_FOR_DYNACONF="PRODUCTION")
JSON = """
{
"a": ... | 27.286957 | 73 | 0.640854 | 713 | 6,276 | 5.520337 | 0.186536 | 0.174289 | 0.101626 | 0.091463 | 0.591463 | 0.580793 | 0.548272 | 0.518801 | 0.499238 | 0.447663 | 0 | 0.024231 | 0.217495 | 6,276 | 229 | 74 | 27.406114 | 0.777235 | 0.051147 | 0 | 0.435754 | 0 | 0 | 0.278763 | 0.029059 | 0 | 0 | 0 | 0 | 0.284916 | 1 | 0.083799 | false | 0.061453 | 0.03352 | 0.005587 | 0.139665 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0aa7054f9d9ac3b7a46825cb7d9733456786a342 | 381 | py | Python | www/config_default.py | kubertalk/kublog | 44c055ae8141ad6c62e0241f05c8393dc5c0f870 | [
"MIT"
] | null | null | null | www/config_default.py | kubertalk/kublog | 44c055ae8141ad6c62e0241f05c8393dc5c0f870 | [
"MIT"
] | null | null | null | www/config_default.py | kubertalk/kublog | 44c055ae8141ad6c62e0241f05c8393dc5c0f870 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Default configurations.
默认的配置文件应该完全符合本地开发环境,这样,无需任何设置,就可以立刻启动服务器
'''
__author__ = 'Kubert'
configs = {
'debug': True,
'db': {
'host': '127.0.0.1',
'port': 3306,
'user': 'www-data',
'password': 'www-data',
'db': 'awesome... | 17.318182 | 40 | 0.501312 | 37 | 381 | 5.054054 | 0.864865 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.283465 | 381 | 22 | 41 | 17.318182 | 0.641026 | 0.283465 | 0 | 0 | 0 | 0 | 0.328302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 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 |
0aa72d7152b9c993fa4f5b202d5b36415041b2ca | 4,687 | py | Python | test.py | hyperthunk/commons | 70bd89ed6d14463c6ede458f8ca4d6f681c8da51 | [
"BSD-3-Clause"
] | null | null | null | test.py | hyperthunk/commons | 70bd89ed6d14463c6ede458f8ca4d6f681c8da51 | [
"BSD-3-Clause"
] | null | null | null | test.py | hyperthunk/commons | 70bd89ed6d14463c6ede458f8ca4d6f681c8da51 | [
"BSD-3-Clause"
] | 1 | 2018-09-19T01:05:53.000Z | 2018-09-19T01:05:53.000Z | #!/usr/bin/env python
# this line is required to get nose to run parallel tests
_multiprocess_can_split_ = True
import sys, random
from functools import partial
from itertools import starmap
import qc
from qc import *
from commons.text import *
from commons.matchers import *
forall.verbose = '-q' in sys.argv
forall ... | 28.932099 | 95 | 0.516108 | 460 | 4,687 | 5.130435 | 0.552174 | 0.025424 | 0.011441 | 0.022034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007668 | 0.332195 | 4,687 | 161 | 96 | 29.111801 | 0.746326 | 0.028163 | 0 | 0.016129 | 0 | 0 | 0.202768 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0 | null | null | 0 | 0.072581 | 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 |
0aa77e6a087dc194bac80ffb9b29a42d0428a288 | 2,493 | py | Python | utils/hparams.py | choiHkk/Tacotron | 2e4bc90a9f900fed016dbc8b66e2d848c3b99f7b | [
"MIT"
] | null | null | null | utils/hparams.py | choiHkk/Tacotron | 2e4bc90a9f900fed016dbc8b66e2d848c3b99f7b | [
"MIT"
] | null | null | null | utils/hparams.py | choiHkk/Tacotron | 2e4bc90a9f900fed016dbc8b66e2d848c3b99f7b | [
"MIT"
] | null | null | null | import os, torch
user_id = os.getcwd().split('/')[2]
# user_id = os.getcwd().split('\')[2]
class Hparams():
# speaker name
speaker = 'KSS1'
# Audio Pre-processing
origin_sample_rate = 44100
sample_rate = 24000
trim_top_db = 35
n_fft = sample_rate // 20
hop_length =... | 27.097826 | 82 | 0.600882 | 356 | 2,493 | 3.882022 | 0.432584 | 0.043415 | 0.032562 | 0.047033 | 0.199711 | 0.120116 | 0 | 0 | 0 | 0 | 0 | 0.080296 | 0.295628 | 2,493 | 91 | 83 | 27.395604 | 0.70672 | 0.083434 | 0 | 0 | 0 | 0 | 0.023853 | 0 | 0 | 0 | 0.016514 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.985075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ab06361b178546c232f4883bd57d28dd1e53f07 | 3,763 | py | Python | deps/v8/tools/testrunner/objects/testcase.py | zeusdeux/node | 8182ec094d25f86d57803a2c17e3847f98050e94 | [
"Artistic-2.0"
] | 239 | 2016-04-01T14:49:28.000Z | 2022-01-19T21:15:11.000Z | deps/v8/tools/testrunner/objects/testcase.py | zeusdeux/node | 8182ec094d25f86d57803a2c17e3847f98050e94 | [
"Artistic-2.0"
] | 8 | 2016-03-11T13:32:38.000Z | 2016-03-11T15:08:03.000Z | deps/v8/tools/testrunner/objects/testcase.py | zeusdeux/node | 8182ec094d25f86d57803a2c17e3847f98050e94 | [
"Artistic-2.0"
] | 11 | 2016-09-08T01:05:45.000Z | 2021-09-28T07:45:05.000Z | # Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | 42.280899 | 78 | 0.703694 | 522 | 3,763 | 5.065134 | 0.411877 | 0.027231 | 0.015885 | 0.017398 | 0.069592 | 0.051437 | 0.051437 | 0.051437 | 0.051437 | 0.051437 | 0 | 0.005739 | 0.212862 | 3,763 | 88 | 79 | 42.761364 | 0.886901 | 0.569758 | 0 | 0 | 0 | 0 | 0.005161 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 1 | 0.209302 | false | 0 | 0.023256 | 0.046512 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ab0ecadf56c05454392425f627195f72234aeb8 | 365 | py | Python | py_server/db_config.py | Makoto-hr-jp/makoto-site | 2521b5f6a82db7a249c2c84c1ca5b07721ec1157 | [
"MIT"
] | null | null | null | py_server/db_config.py | Makoto-hr-jp/makoto-site | 2521b5f6a82db7a249c2c84c1ca5b07721ec1157 | [
"MIT"
] | 7 | 2020-06-18T15:06:03.000Z | 2022-02-26T10:02:35.000Z | py_server/db_config.py | Makoto-hr-jp/makoto-site | 2521b5f6a82db7a249c2c84c1ca5b07721ec1157 | [
"MIT"
] | null | null | null | '''
Autor: TM
Svrha: Upravljanje konfiguracijom za mysql
'''
import json
def make_db_cfg(file):
cfg={'user':input("user: "),
'password':input("pass: "),
'host':input("host: ")}
with open(file,"w") as f:
f.write(json.dumps(cfg))
def get_db_cfg(file):
with open(file,"r") as f:
... | 19.210526 | 42 | 0.578082 | 53 | 365 | 3.90566 | 0.603774 | 0.048309 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235616 | 365 | 18 | 43 | 20.277778 | 0.741935 | 0.145205 | 0 | 0 | 0 | 0 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0ab11b7c5417ecca530c280fa53b02b0013b65b5 | 11,055 | py | Python | openmc/stats/multivariate.py | ethanio12345/OpenMC | 3b0c044974c59773dac4e3ce261a87e18fc53de5 | [
"MIT"
] | null | null | null | openmc/stats/multivariate.py | ethanio12345/OpenMC | 3b0c044974c59773dac4e3ce261a87e18fc53de5 | [
"MIT"
] | null | null | null | openmc/stats/multivariate.py | ethanio12345/OpenMC | 3b0c044974c59773dac4e3ce261a87e18fc53de5 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from collections import Iterable
from math import pi
from numbers import Real
import sys
from xml.etree import ElementTree as ET
from six import add_metaclass
import numpy as np
import openmc.checkvalue as cv
from openmc.stats.univariate import Univariate, Uniform
@add_metacl... | 27.363861 | 80 | 0.636816 | 1,316 | 11,055 | 5.207447 | 0.135258 | 0.042025 | 0.022764 | 0.048154 | 0.466365 | 0.397198 | 0.379542 | 0.369327 | 0.350941 | 0.328615 | 0 | 0.002356 | 0.270375 | 11,055 | 403 | 81 | 27.431762 | 0.84726 | 0.392944 | 0 | 0.270115 | 0 | 0 | 0.06406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.005747 | 0.057471 | 0.068966 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ab3da07cdce7855f2666f1caab18074082d78b2 | 1,727 | py | Python | src/ostorlab/agent/message/proto/v2/scan_pb2.py | bbhunter/ostorlab | 968fe4e5b927c0cd159594c13b73f95b71150154 | [
"Apache-2.0"
] | 113 | 2022-02-21T09:30:14.000Z | 2022-03-31T21:54:26.000Z | src/ostorlab/agent/message/proto/v2/scan_pb2.py | bbhunter/ostorlab | 968fe4e5b927c0cd159594c13b73f95b71150154 | [
"Apache-2.0"
] | 2 | 2022-02-25T10:56:55.000Z | 2022-03-24T13:08:06.000Z | src/ostorlab/agent/message/proto/v2/scan_pb2.py | bbhunter/ostorlab | 968fe4e5b927c0cd159594c13b73f95b71150154 | [
"Apache-2.0"
] | 20 | 2022-02-28T14:25:04.000Z | 2022-03-30T23:01:11.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: v2/scan.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as... | 27.854839 | 96 | 0.701795 | 216 | 1,727 | 5.319444 | 0.458333 | 0.034813 | 0.062663 | 0.083551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024718 | 0.180081 | 1,727 | 61 | 97 | 28.311475 | 0.786723 | 0.112334 | 0 | 0.085106 | 1 | 0.021277 | 0.089718 | 0.040602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.106383 | 0 | 0.106383 | 0 | 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 |
0ab7fe961bff7d287b6cf15a0fdf58c8c19eae64 | 481 | py | Python | apps/hosts/migrations/Add_blank_in_host_team_URL.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 1,470 | 2016-10-21T01:21:45.000Z | 2022-03-30T14:08:29.000Z | apps/hosts/migrations/Add_blank_in_host_team_URL.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 2,594 | 2016-11-02T03:36:01.000Z | 2022-03-31T15:30:04.000Z | apps/hosts/migrations/Add_blank_in_host_team_URL.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 865 | 2016-11-09T17:46:32.000Z | 2022-03-30T13:06:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-01-10 18:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("hosts", "0003_challengehostteam_team_url")]
operations = [
migrations.AlterField(
... | 25.315789 | 76 | 0.656965 | 54 | 481 | 5.648148 | 0.796296 | 0.045902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069705 | 0.224532 | 481 | 18 | 77 | 26.722222 | 0.747989 | 0.143451 | 0 | 0 | 1 | 0 | 0.149144 | 0.075795 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ab921e832a4ee43ed95cd68503a19b17e0ab8d3 | 634 | py | Python | tests/test_deserialization.py | cariad/differently | 9b7ee809e687d02466b79e175b6ff20b82abb89c | [
"MIT"
] | null | null | null | tests/test_deserialization.py | cariad/differently | 9b7ee809e687d02466b79e175b6ff20b82abb89c | [
"MIT"
] | 7 | 2021-08-31T20:26:32.000Z | 2021-10-30T16:19:44.000Z | tests/test_deserialization.py | cariad/differently | 9b7ee809e687d02466b79e175b6ff20b82abb89c | [
"MIT"
] | null | null | null | from typing import Any, Tuple, Type
from pytest import mark
from differently.deserialization import deserialize_value
from differently.json_differently import JsonDifferently
from differently.list_differently import ListDifferently
from differently.yaml_differently import YamlDifferently
@mark.parametrize(
"v, ... | 26.416667 | 62 | 0.695584 | 68 | 634 | 6.382353 | 0.411765 | 0.138249 | 0.078341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175079 | 634 | 23 | 63 | 27.565217 | 0.829828 | 0 | 0 | 0 | 0 | 0 | 0.067823 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0abce016047167b00962b6e5dc116a89dffa01e9 | 1,218 | py | Python | Test.py | bosstb/SpringGetInsights | ef120786bde6b2561491003af0a86ba1b6307934 | [
"MIT"
] | null | null | null | Test.py | bosstb/SpringGetInsights | ef120786bde6b2561491003af0a86ba1b6307934 | [
"MIT"
] | null | null | null | Test.py | bosstb/SpringGetInsights | ef120786bde6b2561491003af0a86ba1b6307934 | [
"MIT"
] | null | null | null | #coding=utf-8
from datetime import datetime
import random
import xml.dom.minidom
import requests
#生成100个随机0,1之间的浮点数序列l
l=0.1
l = random.randint(1, 100)
l=float(l)/100
print datetime.today()
proxy = {
"http": "http://localhost:1080",
"https": "https://localhost:1080"
}
r = requests.get("https://www.google.com.hk... | 32.918919 | 78 | 0.681445 | 139 | 1,218 | 5.971223 | 0.402878 | 0.166265 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052936 | 0.146962 | 1,218 | 36 | 79 | 33.833333 | 0.74591 | 0.059934 | 0 | 0 | 0 | 0 | 0.391762 | 0.188431 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0abf549cc1d068a7de793d02a2fcafcf14f599cc | 1,120 | py | Python | rootfs/api/models/key.py | aledbf/deis-workflow | c371950f79583d60f0f17adada44a18e5fccbb0d | [
"Apache-2.0"
] | null | null | null | rootfs/api/models/key.py | aledbf/deis-workflow | c371950f79583d60f0f17adada44a18e5fccbb0d | [
"Apache-2.0"
] | null | null | null | rootfs/api/models/key.py | aledbf/deis-workflow | c371950f79583d60f0f17adada44a18e5fccbb0d | [
"Apache-2.0"
] | null | null | null | import base64
from django.conf import settings
from django.db import models
from rest_framework.exceptions import ValidationError
from api.models import UuidAuditedModel
from api.utils import fingerprint
def validate_base64(value):
"""Check that value contains only valid base64 characters."""
try:
b... | 30.27027 | 81 | 0.702679 | 137 | 1,120 | 5.642336 | 0.540146 | 0.03881 | 0.046572 | 0.062096 | 0.069858 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027263 | 0.18125 | 1,120 | 36 | 82 | 31.111111 | 0.815703 | 0.066071 | 0 | 0 | 0 | 0 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.041667 | 0.708333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ac0c582e4b0839eddbbdab3955e9df7624f2564 | 617 | py | Python | setup.py | Apostolos-Delis/printc | 9457fca9b9eb8c7829a3de8755360e4e9857dab0 | [
"Apache-2.0"
] | 1 | 2021-06-01T15:47:37.000Z | 2021-06-01T15:47:37.000Z | setup.py | Apostolos-Delis/printc | 9457fca9b9eb8c7829a3de8755360e4e9857dab0 | [
"Apache-2.0"
] | 2 | 2019-08-29T01:31:10.000Z | 2019-08-29T01:34:06.000Z | setup.py | Apostolos-Delis/printc | 9457fca9b9eb8c7829a3de8755360e4e9857dab0 | [
"Apache-2.0"
] | 2 | 2019-08-29T01:29:23.000Z | 2019-08-29T01:33:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup script for installing printc on a computer
"""
from distutils.core import setup
import printc
setup(
name='printc',
version=printc.__version__,
author='Apostolos Delis',
author_email='apost.delis@gmail.com',
description='Printing and debugg... | 24.68 | 78 | 0.662885 | 73 | 617 | 5.493151 | 0.684932 | 0.064838 | 0.109726 | 0.154613 | 0.199501 | 0.199501 | 0 | 0 | 0 | 0 | 0 | 0.002075 | 0.218801 | 617 | 24 | 79 | 25.708333 | 0.829876 | 0.147488 | 0 | 0 | 0 | 0 | 0.423598 | 0.040619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ace65a6208638c8a70de54f72027073ab3737d1 | 984 | py | Python | leetcode/81.py | Cannizza-zzk/python_review | 5a04b3dbc8baa835780c039386529e20e69af81c | [
"Apache-2.0"
] | null | null | null | leetcode/81.py | Cannizza-zzk/python_review | 5a04b3dbc8baa835780c039386529e20e69af81c | [
"Apache-2.0"
] | null | null | null | leetcode/81.py | Cannizza-zzk/python_review | 5a04b3dbc8baa835780c039386529e20e69af81c | [
"Apache-2.0"
] | null | null | null | class Solution:
def search(self, nums: List[int], target: int) -> bool:
start_idx = 0
for i in range(len(nums)-1):
if nums[i] > nums[i + 1]:
start_idx = i + 1
break
originList = nums[start_idx:] + nums[:start_idx]
... | 33.931034 | 101 | 0.466463 | 108 | 984 | 4.212963 | 0.296296 | 0.281319 | 0.118681 | 0.101099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018083 | 0.438008 | 984 | 28 | 102 | 35.142857 | 0.804702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aced04d6536c4b908083891f7697c002e6b8a7e | 1,200 | py | Python | tests/test_tagging.py | IwoHerka/sexpr | 28e32f543a127bbbf832b2dba7cb93f9e57db3b6 | [
"MIT"
] | 7 | 2018-07-22T09:05:12.000Z | 2021-01-07T16:38:11.000Z | tests/test_tagging.py | IwoHerka/sexpr | 28e32f543a127bbbf832b2dba7cb93f9e57db3b6 | [
"MIT"
] | 15 | 2018-06-24T14:41:26.000Z | 2021-03-25T21:51:12.000Z | tests/test_tagging.py | IwoHerka/sexpr | 28e32f543a127bbbf832b2dba7cb93f9e57db3b6 | [
"MIT"
] | null | null | null | from sexpr import Grammar, Sexpr, load, register
def setup_function():
Grammar.registered_tags = {}
grammar = load('''
root:
exp1
rules:
exp:
- exp1
- exp2
exp1:
[ false ]
exp2:
[ exp3 ]
exp3:
[ exp4 ]
... | 17.142857 | 61 | 0.573333 | 146 | 1,200 | 4.623288 | 0.226027 | 0.074074 | 0.103704 | 0.071111 | 0.133333 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0.045184 | 0.299167 | 1,200 | 69 | 62 | 17.391304 | 0.757432 | 0 | 0 | 0.212766 | 0 | 0 | 0.215 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.06383 | false | 0.085106 | 0.021277 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0acfa998c6215821136da3c89e5f975a9f24d74b | 13,128 | py | Python | src/barril/units/_tests/test_posc_additional_units.py | arthursoprana/barril | 87ebd247c3c3fa422f4ab3b5acdefbe9e85145c7 | [
"MIT"
] | 27 | 2018-09-21T18:11:47.000Z | 2021-10-05T23:32:30.000Z | src/barril/units/_tests/test_posc_additional_units.py | arthursoprana/barril | 87ebd247c3c3fa422f4ab3b5acdefbe9e85145c7 | [
"MIT"
] | 43 | 2018-09-04T18:43:38.000Z | 2021-06-18T20:41:08.000Z | src/barril/units/_tests/test_posc_additional_units.py | arthursoprana/barril | 87ebd247c3c3fa422f4ab3b5acdefbe9e85145c7 | [
"MIT"
] | 9 | 2018-09-21T14:20:14.000Z | 2020-02-20T11:31:47.000Z | import pytest
from pytest import approx
from barril import units
@pytest.fixture
def db():
db = units.UnitDatabase.GetSingleton()
yield db
def testTransmissibility(db):
converted = db.Convert("transmissibility", "cp.m3/day/bar", "cp.bbl/day/psi", 1.0)
assert approx(converted) == 0.433667315
def t... | 36.773109 | 100 | 0.65745 | 1,900 | 13,128 | 4.505263 | 0.167368 | 0.128972 | 0.060514 | 0.090771 | 0.527336 | 0.408178 | 0.335981 | 0.28014 | 0.23785 | 0.182944 | 0 | 0.094724 | 0.159659 | 13,128 | 356 | 101 | 36.876404 | 0.6812 | 0.01592 | 0 | 0.064935 | 0 | 0 | 0.234725 | 0.001626 | 0 | 0 | 0 | 0 | 0.419913 | 1 | 0.186147 | false | 0 | 0.021645 | 0.004329 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ad43efcc948b5bc27ed34a8e3660723b03401c8 | 5,297 | py | Python | levels/07_net_namespace/rd.py | bijugs/rubber-docker | 4088ab6a993e1105ec8e42f22ac9aadf6b4252ba | [
"MIT"
] | null | null | null | levels/07_net_namespace/rd.py | bijugs/rubber-docker | 4088ab6a993e1105ec8e42f22ac9aadf6b4252ba | [
"MIT"
] | null | null | null | levels/07_net_namespace/rd.py | bijugs/rubber-docker | 4088ab6a993e1105ec8e42f22ac9aadf6b4252ba | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
"""Docker From Scratch Workshop - Level 7: Add network namespace.
Goal: Have your own NICs.
"""
from __future__ import print_function
import linux
import tarfile
import uuid
import click
import os
import stat
def _get_image_path(image_name, image_dir, image_suffix='tar'):
return os.pa... | 36.034014 | 79 | 0.670568 | 749 | 5,297 | 4.515354 | 0.299065 | 0.028386 | 0.035482 | 0.035186 | 0.24453 | 0.136901 | 0.11916 | 0.107629 | 0.062685 | 0.034891 | 0 | 0.008243 | 0.198414 | 5,297 | 146 | 80 | 36.280822 | 0.788271 | 0.126487 | 0 | 0 | 0 | 0 | 0.115197 | 0.013514 | 0 | 0 | 0 | 0.006849 | 0.01087 | 0 | null | null | 0.01087 | 0.076087 | null | null | 0.032609 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ad623089e59cd884480dfa97d2b3ea954125ea8 | 2,354 | py | Python | tests/test_flags.py | VulcanClimateModeling/fv3gfs-wrapper | 9d62bbfa85e9f6304522022656afe6629fd1c8e1 | [
"BSD-3-Clause"
] | 19 | 2021-01-05T20:55:05.000Z | 2021-09-03T16:36:31.000Z | tests/test_flags.py | VulcanClimateModeling/fv3gfs-wrapper | 9d62bbfa85e9f6304522022656afe6629fd1c8e1 | [
"BSD-3-Clause"
] | 94 | 2020-11-18T21:08:21.000Z | 2021-07-29T13:54:32.000Z | tests/test_flags.py | VulcanClimateModeling/fv3gfs-wrapper | 9d62bbfa85e9f6304522022656afe6629fd1c8e1 | [
"BSD-3-Clause"
] | 2 | 2021-04-16T13:23:13.000Z | 2021-08-25T13:58:00.000Z | import unittest
import os
import numpy as np
import fv3gfs.wrapper
import fv3gfs.util
from fv3gfs.wrapper._properties import FLAGSTRUCT_PROPERTIES
from mpi4py import MPI
from util import get_default_config, generate_data_dict, main
test_dir = os.path.dirname(os.path.abspath(__file__))
FORTRAN_TO_PYTHON_TYPE = {"integ... | 34.617647 | 88 | 0.700085 | 295 | 2,354 | 5.298305 | 0.359322 | 0.058221 | 0.057582 | 0.06142 | 0.223289 | 0.101727 | 0.101727 | 0.101727 | 0.101727 | 0 | 0 | 0.009688 | 0.210705 | 2,354 | 67 | 89 | 35.134328 | 0.831539 | 0.110875 | 0 | 0.041667 | 0 | 0 | 0.042471 | 0.015927 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.208333 | false | 0.020833 | 0.166667 | 0 | 0.395833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ad958262f80c31bb307bc9d03d074c2658383a0 | 2,209 | py | Python | src/models/ResnetFrozenWrapper.py | askarum/CS547project | 73e8da0d4113f9ec3be374958da9dc165212d722 | [
"MIT"
] | null | null | null | src/models/ResnetFrozenWrapper.py | askarum/CS547project | 73e8da0d4113f9ec3be374958da9dc165212d722 | [
"MIT"
] | 3 | 2021-05-15T03:15:45.000Z | 2021-05-15T03:16:36.000Z | src/models/ResnetFrozenWrapper.py | askarum/CS547project | 73e8da0d4113f9ec3be374958da9dc165212d722 | [
"MIT"
] | null | null | null | #This is just initial experiment code for now.
import torchvision as tv
import torch
import torchvision.models as models
import torchvision.models as tvmodels
import torch.nn.functional as tnnf
import models.resnet_factory as resnet_factory
#write models here
class ResnetFrozenWrapper(torch.nn.Module):
def __in... | 33.469697 | 119 | 0.707107 | 290 | 2,209 | 5.210345 | 0.468966 | 0.041694 | 0.030443 | 0.033091 | 0.027796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013279 | 0.215935 | 2,209 | 65 | 120 | 33.984615 | 0.859122 | 0.309642 | 0 | 0 | 0 | 0 | 0.016578 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.064516 | false | 0 | 0.225806 | 0 | 0.354839 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0adf89e1d40c5ea2cd8b2e280f525a65d1e6c8b7 | 11,905 | py | Python | Lib/lib2to3/main.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/lib2to3/main.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/lib2to3/main.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | """
Main program dla 2to3.
"""
z __future__ zaimportuj with_statement, print_function
zaimportuj sys
zaimportuj os
zaimportuj difflib
zaimportuj logging
zaimportuj shutil
zaimportuj optparse
z . zaimportuj refactor
def diff_texts(a, b, filename):
"""Return a unified diff of two strings."""
a = a.splitlines... | 44.256506 | 85 | 0.60378 | 1,409 | 11,905 | 4.968062 | 0.236338 | 0.029571 | 0.039429 | 0.019 | 0.137 | 0.100143 | 0.051429 | 0.039143 | 0.039143 | 0.027429 | 0 | 0.002779 | 0.304746 | 11,905 | 268 | 86 | 44.421642 | 0.842938 | 0.046871 | 0 | 0.123077 | 0 | 0 | 0.177079 | 0.007313 | 0 | 0 | 0 | 0 | 0.005128 | 0 | null | null | 0 | 0.041026 | null | null | 0.082051 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ae79b962c07fc9f6956cba3a8537d83eb764450 | 4,881 | py | Python | web_monitor/get_north_index_recover.py | seanpquinn/augerta | 43862fd6b5360c9b7c5a7b3502fb7738ea2e8d75 | [
"Apache-2.0"
] | null | null | null | web_monitor/get_north_index_recover.py | seanpquinn/augerta | 43862fd6b5360c9b7c5a7b3502fb7738ea2e8d75 | [
"Apache-2.0"
] | null | null | null | web_monitor/get_north_index_recover.py | seanpquinn/augerta | 43862fd6b5360c9b7c5a7b3502fb7738ea2e8d75 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Case Western Reserve University 2015
# This software is distributed under Apache License 2.0
# Consult the file LICENSE.txt
# Author: Sean Quinn spq@case.edu
# Dec 14 2016
# PYTHON 2
import os
import numpy as np
import subprocess as sp
import sys
import time
import datetime as dt
fdate = "20161215"
yr... | 33.204082 | 104 | 0.650891 | 885 | 4,881 | 3.40452 | 0.211299 | 0.027879 | 0.035845 | 0.029871 | 0.560903 | 0.5307 | 0.477929 | 0.450714 | 0.440093 | 0.418188 | 0 | 0.042476 | 0.155911 | 4,881 | 147 | 105 | 33.204082 | 0.688835 | 0.087277 | 0 | 0.424 | 0 | 0.016 | 0.237784 | 0.099527 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048 | null | null | 0.024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ae8610175997c58416ad506a2be04aeef4ec00d | 63,784 | py | Python | python-modules/twisted/twisted/mail/smtp.py | stormtheh4ck3r/python-for-android | b9ea9161392f60566b81482b1e25cd77004d5c45 | [
"Apache-2.0"
] | 267 | 2015-03-22T15:23:48.000Z | 2022-03-05T21:57:34.000Z | python-modules/twisted/twisted/mail/smtp.py | rockyzhang/zhangyanhit-python-for-android-mips | 799dd5ca16f72135f2eab71e144a68842e2aaee0 | [
"Apache-2.0"
] | 133 | 2015-03-21T15:13:43.000Z | 2021-12-11T23:37:58.000Z | python-modules/twisted/twisted/mail/smtp.py | rockyzhang/zhangyanhit-python-for-android-mips | 799dd5ca16f72135f2eab71e144a68842e2aaee0 | [
"Apache-2.0"
] | 119 | 2015-04-28T16:07:10.000Z | 2022-03-18T03:49:48.000Z | # -*- test-case-name: twisted.mail.test.test_smtp -*-
# Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Simple Mail Transfer Protocol implementation.
"""
import time, re, base64, types, socket, os, random, rfc822
import binascii
from email.base64MIME import encode as encode_base64
... | 33.048705 | 113 | 0.592453 | 7,157 | 63,784 | 5.218388 | 0.146989 | 0.010282 | 0.008996 | 0.007952 | 0.213532 | 0.175351 | 0.149834 | 0.129244 | 0.106083 | 0.096417 | 0 | 0.010367 | 0.314938 | 63,784 | 1,929 | 114 | 33.065837 | 0.844356 | 0.062696 | 0 | 0.302897 | 0 | 0 | 0.066789 | 0.002068 | 0 | 0 | 0 | 0 | 0.000878 | 0 | null | null | 0.00439 | 0.022827 | 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 |
0ae8e795dde1d2fb3dbc0b39eaaaa81f23020442 | 1,213 | py | Python | notifications/migrations/0002_auto_20170603_1644.py | LinuxOSsk/Shakal-NG | c4091c7972cffd86f64aa9f9a058d2907a56e5eb | [
"MIT"
] | 10 | 2016-02-06T15:40:30.000Z | 2018-09-27T15:15:13.000Z | notifications/migrations/0002_auto_20170603_1644.py | LinuxOSsk/Shakal-NG | c4091c7972cffd86f64aa9f9a058d2907a56e5eb | [
"MIT"
] | 94 | 2016-02-04T18:39:36.000Z | 2022-01-20T05:25:00.000Z | notifications/migrations/0002_auto_20170603_1644.py | LinuxOSsk/Shakal-NG | c4091c7972cffd86f64aa9f9a058d2907a56e5eb | [
"MIT"
] | 8 | 2016-05-10T20:29:53.000Z | 2021-02-07T00:50:31.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-03 14:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('notifications', '0001_initial'),
]
operations = [
migrations.AlterField... | 31.102564 | 181 | 0.685903 | 146 | 1,213 | 5.582192 | 0.534247 | 0.039264 | 0.051534 | 0.080982 | 0.306748 | 0.306748 | 0.166871 | 0.166871 | 0.166871 | 0.166871 | 0 | 0.020794 | 0.127782 | 1,213 | 38 | 182 | 31.921053 | 0.749527 | 0.056059 | 0 | 0.40625 | 1 | 0 | 0.210158 | 0.021016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0aec92de3995451a5cb5970424e9fd6558417241 | 2,876 | py | Python | xsdata_attrs/compat.py | tefra/xsdata-attrs | ad9dea56441ea6922f4dbe0cc669e07b18f7231d | [
"MIT"
] | 1 | 2021-08-03T19:19:15.000Z | 2021-08-03T19:19:15.000Z | xsdata_attrs/compat.py | tefra/xsdata-attrs | ad9dea56441ea6922f4dbe0cc669e07b18f7231d | [
"MIT"
] | 9 | 2021-06-13T21:15:31.000Z | 2021-11-02T15:10:47.000Z | xsdata_attrs/compat.py | tefra/xsdata-attrs | ad9dea56441ea6922f4dbe0cc669e07b18f7231d | [
"MIT"
] | null | null | null | from typing import Any
from typing import Dict
from typing import Generic
from typing import List
from typing import Optional
from typing import Tuple
from typing import Type
from typing import TypeVar
import attr
from xsdata.exceptions import XmlContextError
from xsdata.formats.dataclass.compat import ClassType
from ... | 27.653846 | 87 | 0.643255 | 383 | 2,876 | 4.788512 | 0.26893 | 0.043621 | 0.069793 | 0.037077 | 0.131952 | 0.103599 | 0.04253 | 0.04253 | 0 | 0 | 0 | 0.001393 | 0.251043 | 2,876 | 103 | 88 | 27.92233 | 0.850046 | 0.19541 | 0 | 0.096774 | 0 | 0 | 0.025835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.193548 | 0.048387 | 0.645161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0aedd94c027afe3de9a3f005554b8eb01a2fd32d | 654 | py | Python | volumes/mgmt/web/housekeeper_web/list_schedules.py | jojees/housekeeper | f51e64344f8d598f355282726b6bcc9950550a9f | [
"MIT"
] | null | null | null | volumes/mgmt/web/housekeeper_web/list_schedules.py | jojees/housekeeper | f51e64344f8d598f355282726b6bcc9950550a9f | [
"MIT"
] | null | null | null | volumes/mgmt/web/housekeeper_web/list_schedules.py | jojees/housekeeper | f51e64344f8d598f355282726b6bcc9950550a9f | [
"MIT"
] | 4 | 2017-05-16T07:43:52.000Z | 2017-05-16T11:09:25.000Z | import requests
import json
# Update to match your API key
API_KEY = 'iqKb9TBxJWekjzaKJGKM'
# Update to match your chosen parameters
QUERY = ''
def list_schedules():
url = 'https://api.pagerduty.com/schedules'
headers = {
'Accept': 'application/vnd.pagerduty+json;version=2',
'Authorization':... | 23.357143 | 68 | 0.66208 | 78 | 654 | 5.384615 | 0.512821 | 0.042857 | 0.061905 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003839 | 0.203364 | 654 | 27 | 69 | 24.222222 | 0.802303 | 0.102446 | 0 | 0 | 0 | 0 | 0.298456 | 0.068611 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0af36046ac963fc2f8e085817ab07210e81d1f14 | 1,327 | py | Python | nipype/interfaces/nitime/tests/test_auto_CoherenceAnalyzer.py | PAmcconnell/nipype | 39fbd5411a844ce7c023964d3295eb7643b95af5 | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/nitime/tests/test_auto_CoherenceAnalyzer.py | PAmcconnell/nipype | 39fbd5411a844ce7c023964d3295eb7643b95af5 | [
"Apache-2.0"
] | 2 | 2018-04-26T12:09:32.000Z | 2018-04-27T06:36:49.000Z | nipype/interfaces/nitime/tests/test_auto_CoherenceAnalyzer.py | PAmcconnell/nipype | 39fbd5411a844ce7c023964d3295eb7643b95af5 | [
"Apache-2.0"
] | 1 | 2019-11-14T14:16:57.000Z | 2019-11-14T14:16:57.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..analysis import CoherenceAnalyzer
def test_CoherenceAnalyzer_inputs():
input_map = dict(
NFFT=dict(usedefault=True, ),
TR=dict(),
figure_type=dict(usedefault=True, ),
frequency_range=dict(usedefault=True, ),
in_TS... | 34.025641 | 67 | 0.637528 | 148 | 1,327 | 5.547297 | 0.358108 | 0.119367 | 0.153471 | 0.08039 | 0.192448 | 0.192448 | 0.133983 | 0.133983 | 0.133983 | 0.133983 | 0 | 0 | 0.238885 | 1,327 | 38 | 68 | 34.921053 | 0.812871 | 0.038433 | 0 | 0.060606 | 1 | 0 | 0.00157 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.060606 | false | 0 | 0.030303 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0af486d9611ce0590a5f2be412822bb282f4397a | 4,194 | py | Python | geetools/tests/image.py | bworstell/gee_tools | 4123395cf5bad39f20613afb37d041186d9516fe | [
"MIT"
] | 4 | 2019-01-21T04:51:21.000Z | 2021-12-01T15:05:32.000Z | geetools/tests/image.py | bworstell/gee_tools | 4123395cf5bad39f20613afb37d041186d9516fe | [
"MIT"
] | 8 | 2020-03-24T16:44:12.000Z | 2022-03-11T23:39:32.000Z | geetools/tests/image.py | bworstell/gee_tools | 4123395cf5bad39f20613afb37d041186d9516fe | [
"MIT"
] | 2 | 2020-04-18T16:44:40.000Z | 2021-03-31T02:11:26.000Z | # coding=utf-8
import unittest
import ee
from .. import tools
ee.Initialize()
class TestImages(unittest.TestCase):
def setUp(self):
self.l8SR = ee.Image("LANDSAT/LC8_SR/LC82310772014043")
self.p_l8SR_cloud = ee.Geometry.Point([-65.8109, -25.0185])
self.p_l8SR_no_cloud = ee.Geometry.Point(... | 36.469565 | 85 | 0.58989 | 534 | 4,194 | 4.529963 | 0.220974 | 0.167425 | 0.078545 | 0.036379 | 0.340223 | 0.242662 | 0.242662 | 0.198016 | 0.176519 | 0.106656 | 0 | 0.066688 | 0.249165 | 4,194 | 115 | 86 | 36.469565 | 0.701493 | 0.064139 | 0 | 0.083333 | 0 | 0 | 0.086656 | 0.007924 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.111111 | false | 0.097222 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0afc62d44849f9e9c2d239379d269ef84e147694 | 1,577 | py | Python | datasets/__init__.py | divyam3897/UCL | 2aaef6f0495dceb5e850c6eccc642c492579e892 | [
"MIT"
] | 18 | 2022-02-21T20:45:38.000Z | 2022-03-24T23:27:12.000Z | datasets/__init__.py | divyam3897/UCL | 2aaef6f0495dceb5e850c6eccc642c492579e892 | [
"MIT"
] | null | null | null | datasets/__init__.py | divyam3897/UCL | 2aaef6f0495dceb5e850c6eccc642c492579e892 | [
"MIT"
] | 8 | 2022-02-24T13:02:11.000Z | 2022-03-28T08:44:48.000Z | # Copyright 2020-present, Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, Simone Calderara.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
from datasets.seq_mnist import SequentialMNIST
from datasets.seq_fmn... | 35.840909 | 107 | 0.786937 | 181 | 1,577 | 6.779006 | 0.403315 | 0.06846 | 0.07335 | 0.02934 | 0.164629 | 0.164629 | 0.164629 | 0.164629 | 0.164629 | 0.164629 | 0 | 0.017897 | 0.149651 | 1,577 | 43 | 108 | 36.674419 | 0.897092 | 0.320228 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.391304 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0afcc3ef404462bee9a9f8a25cc26ab2d7de0757 | 1,360 | py | Python | pyblog/models.py | Saidounelson/blog | f7f4f3be79766c580e4a68ceff24ed70aca381b0 | [
"MIT"
] | null | null | null | pyblog/models.py | Saidounelson/blog | f7f4f3be79766c580e4a68ceff24ed70aca381b0 | [
"MIT"
] | 6 | 2020-06-05T20:09:41.000Z | 2021-09-22T18:07:40.000Z | pyblog/models.py | Saidounelson/blog | f7f4f3be79766c580e4a68ceff24ed70aca381b0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class PostCategory(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return self.name
class Post(models.Model):
title = models.CharField(max_length=100)
category = models.... | 31.627907 | 98 | 0.691912 | 161 | 1,360 | 5.57764 | 0.36646 | 0.083519 | 0.100223 | 0.13363 | 0.346325 | 0.218263 | 0.14922 | 0.14922 | 0.14922 | 0.14922 | 0 | 0.015399 | 0.188235 | 1,360 | 43 | 99 | 31.627907 | 0.798007 | 0.015441 | 0 | 0.16129 | 0 | 0 | 0.059791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.064516 | 0.096774 | 0.870968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e4064b15ca7e38d1be02c7f4b94fed387a690660 | 604 | py | Python | setup.py | jlapolla/scriptutils | 1078385f70b903039474230a9f146c0e34c61059 | [
"MIT"
] | null | null | null | setup.py | jlapolla/scriptutils | 1078385f70b903039474230a9f146c0e34c61059 | [
"MIT"
] | null | null | null | setup.py | jlapolla/scriptutils | 1078385f70b903039474230a9f146c0e34c61059 | [
"MIT"
] | null | null | null | # For general information, refer to:
# https://docs.python.org/3.6/distutils/index.html
# https://docs.python.org/3.6/distributing/index.html#distributing-index
# https://setuptools.readthedocs.io/en/latest/index.html
#
# For arguments to setup(), refer to:
# https://docs.python.org/3.6/distutils/apiref.html#distutils.... | 30.2 | 92 | 0.738411 | 86 | 604 | 5.151163 | 0.488372 | 0.060948 | 0.10158 | 0.121896 | 0.370203 | 0.370203 | 0.162528 | 0.162528 | 0.162528 | 0 | 0 | 0.018248 | 0.092715 | 604 | 19 | 93 | 31.789474 | 0.790146 | 0.668874 | 0 | 0 | 0 | 0 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c13394e3c6fa02f420729ee7c2720240d04a234 | 460 | py | Python | setup.py | simon-schaefer/crosswordpy | f70b3d5a5a18dfe8cd046c30533bb0baec052f42 | [
"MIT"
] | null | null | null | setup.py | simon-schaefer/crosswordpy | f70b3d5a5a18dfe8cd046c30533bb0baec052f42 | [
"MIT"
] | null | null | null | setup.py | simon-schaefer/crosswordpy | f70b3d5a5a18dfe8cd046c30533bb0baec052f42 | [
"MIT"
] | null | null | null | from setuptools import find_packages
from setuptools import setup
setup(
name='crosswordpy',
version='0.0.1',
packages=find_packages(),
install_requires=('numpy', 'pytest', 'flask', 'flask-wtf', 'wtforms', 'pillow', 'gunicorn'),
author='Simon Schaefer',
author_email='simon.k.schaefer@gmail.com... | 28.75 | 96 | 0.693478 | 55 | 460 | 5.727273 | 0.709091 | 0.088889 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007653 | 0.147826 | 460 | 15 | 97 | 30.666667 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.41087 | 0.056522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c1b6e5985baa739fc3a4d0340ab9854327d7ca6 | 2,979 | py | Python | python_utils/pycaffe_utils.py | xzabg/fast-adversarial | ceef377c4457365832f76df242f9f92cce4f2d0e | [
"BSD-2-Clause"
] | 520 | 2017-04-11T04:55:42.000Z | 2022-03-29T12:24:21.000Z | python_utils/pycaffe_utils.py | xzabg/fast-adversarial | ceef377c4457365832f76df242f9f92cce4f2d0e | [
"BSD-2-Clause"
] | 25 | 2017-04-17T08:13:17.000Z | 2020-11-03T20:24:47.000Z | python_utils/pycaffe_utils.py | xzabg/fast-adversarial | ceef377c4457365832f76df242f9f92cce4f2d0e | [
"BSD-2-Clause"
] | 202 | 2017-04-11T05:35:13.000Z | 2022-02-14T23:34:20.000Z | # ---------------------------------------------------------
# Copyright (c) 2015, Saurabh Gupta
#
# Licensed under The MIT License [see LICENSE for details]
# ---------------------------------------------------------
import caffe, yaml
def net_surgery(net, json_file_or_dict):
# Load the JSON file
if isinst... | 43.173913 | 122 | 0.554549 | 386 | 2,979 | 4.088083 | 0.233161 | 0.065906 | 0.039924 | 0.035488 | 0.26109 | 0.124208 | 0.082383 | 0.082383 | 0.082383 | 0.046895 | 0 | 0.003835 | 0.299765 | 2,979 | 68 | 123 | 43.808824 | 0.752637 | 0.111782 | 0 | 0.044444 | 0 | 0.044444 | 0.188307 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | null | null | 0 | 0.022222 | null | null | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c2210695cfed85fdc90444aa0ee0d2ca2b10e44 | 2,405 | py | Python | test/dev/test_02_transcode.py | Fluorescence-Tools/tttrlib | 891db80ddc5e6a1098faa62bd336df11b060e041 | [
"BSD-3-Clause"
] | 9 | 2019-11-27T13:00:54.000Z | 2022-03-31T15:37:29.000Z | test/dev/test_02_transcode.py | Fluorescence-Tools/tttrlib | 891db80ddc5e6a1098faa62bd336df11b060e041 | [
"BSD-3-Clause"
] | 6 | 2019-10-31T23:59:56.000Z | 2022-03-31T15:33:06.000Z | test/dev/test_02_transcode.py | Fluorescence-Tools/tttrlib | 891db80ddc5e6a1098faa62bd336df11b060e041 | [
"BSD-3-Clause"
] | 1 | 2019-07-28T20:21:43.000Z | 2019-07-28T20:21:43.000Z | from __future__ import division
import json
import tempfile
import unittest
import tttrlib
import numpy as np
print("Test: ", __file__)
settings = json.load(open(file="./test/settings.json"))
test_files = settings["test_files"]
class Tests(unittest.TestCase):
@unittest.expectedFailure
def test_reading(sel... | 35.895522 | 89 | 0.63659 | 284 | 2,405 | 5.179577 | 0.257042 | 0.101971 | 0.115568 | 0.169952 | 0.613188 | 0.577158 | 0.577158 | 0.577158 | 0.577158 | 0.577158 | 0 | 0.01123 | 0.259459 | 2,405 | 66 | 90 | 36.439394 | 0.814711 | 0.239917 | 0 | 0.133333 | 0 | 0 | 0.041896 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.222222 | 0.022222 | 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 |
7c24e0e7bd87da7dcf0d17237156e3ed8a9c914a | 682 | py | Python | packages/postgres-database/src/simcore_postgres_database/migration/versions/cfd1c43b5d33_migrate_workbench_state_enum.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 25 | 2018-04-13T12:44:12.000Z | 2022-03-12T15:01:17.000Z | packages/postgres-database/src/simcore_postgres_database/migration/versions/cfd1c43b5d33_migrate_workbench_state_enum.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 2,553 | 2018-01-18T17:11:55.000Z | 2022-03-31T16:26:40.000Z | packages/postgres-database/src/simcore_postgres_database/migration/versions/cfd1c43b5d33_migrate_workbench_state_enum.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | 20 | 2018-01-18T19:45:33.000Z | 2022-03-29T07:08:47.000Z | """migrate workbench state enum
Revision ID: cfd1c43b5d33
Revises: c8a7073deebb
Create Date: 2020-11-17 16:42:32.511722+00:00
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cfd1c43b5d33'
down_revision = 'c8a7073deebb'
branch_labels = None
depends_on = None
... | 19.485714 | 84 | 0.653959 | 79 | 682 | 5.594937 | 0.734177 | 0.040724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086142 | 0.217009 | 682 | 34 | 85 | 20.058824 | 0.741573 | 0.35044 | 0 | 0 | 0 | 0 | 0.092664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c2e75e756de8e4de83c10f4300702b280819d86 | 842 | py | Python | mood_sense/migrations/0010_auto_20191024_2234.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | null | null | null | mood_sense/migrations/0010_auto_20191024_2234.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | 9 | 2021-03-19T08:05:00.000Z | 2022-03-12T00:15:53.000Z | mood_sense/migrations/0010_auto_20191024_2234.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-24 22:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mood_sense', '0009_auto_20191024_2225'),
]
operations = [
migrations.AlterField(
model_name='mood',
name='characteri... | 44.315789 | 497 | 0.647268 | 84 | 842 | 6.416667 | 0.630952 | 0.022263 | 0.096475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049133 | 0.178147 | 842 | 18 | 498 | 46.777778 | 0.729769 | 0.053444 | 0 | 0 | 1 | 0 | 0.447799 | 0.028931 | 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 |
7c3118d9405439567865bd6b2cc7ef29c1315793 | 2,354 | py | Python | hellman.py | shamrickus/HellmanSort | 5a42eac054642612b949313fb59abbce7a2f5274 | [
"Apache-2.0"
] | null | null | null | hellman.py | shamrickus/HellmanSort | 5a42eac054642612b949313fb59abbce7a2f5274 | [
"Apache-2.0"
] | null | null | null | hellman.py | shamrickus/HellmanSort | 5a42eac054642612b949313fb59abbce7a2f5274 | [
"Apache-2.0"
] | null | null | null | import urllib2, re, sys
from HTMLParser import HTMLParser
from lxml import html
class MyHTMLParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.begin = False
self.beginA = False
self.entries = []
self.curDate = 0
#Checks if we have a goal div
def checkMatch(self, tag, clas, attr):
i... | 27.057471 | 202 | 0.669499 | 349 | 2,354 | 4.449857 | 0.375358 | 0.028976 | 0.015454 | 0.014166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012873 | 0.175021 | 2,354 | 86 | 203 | 27.372093 | 0.786818 | 0.234494 | 0 | 0.125 | 0 | 0 | 0.103525 | 0.012871 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c32bc1b9484affc2aae793e26eb2cd239e507d5 | 16,529 | py | Python | build/android/gyp/util/build_utils.py | TwistedCore/external_v8 | c6725dab9be251fbfc6fd7d53c3513a23e78c36c | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | build/android/gyp/util/build_utils.py | TwistedCore/external_v8 | c6725dab9be251fbfc6fd7d53c3513a23e78c36c | [
"BSD-3-Clause"
] | null | null | null | build/android/gyp/util/build_utils.py | TwistedCore/external_v8 | c6725dab9be251fbfc6fd7d53c3513a23e78c36c | [
"BSD-3-Clause"
] | 4 | 2016-09-01T22:40:40.000Z | 2017-06-03T21:49:47.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import ast
import contextlib
import fnmatch
import json
import os
import pipes
import re
import shlex
import shutil
import stat
import subprocess
import sys
... | 31.304924 | 80 | 0.695686 | 2,347 | 16,529 | 4.760119 | 0.245846 | 0.012352 | 0.005371 | 0.010741 | 0.046008 | 0.011815 | 0 | 0 | 0 | 0 | 0 | 0.004499 | 0.206667 | 16,529 | 527 | 81 | 31.364326 | 0.84748 | 0.126807 | 0 | 0.053125 | 0 | 0 | 0.047846 | 0.007733 | 0 | 0 | 0 | 0.003795 | 0.00625 | 0 | null | null | 0.0125 | 0.05 | null | null | 0.01875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c352f71031259ab8fd6ff90bdc3b8ea88cda427 | 1,410 | py | Python | Task2E.py | yanndivet/FloodWarningSystem | 0723bd19a5d38b14775b54036b7bff33eb8b26c0 | [
"MIT"
] | null | null | null | Task2E.py | yanndivet/FloodWarningSystem | 0723bd19a5d38b14775b54036b7bff33eb8b26c0 | [
"MIT"
] | null | null | null | Task2E.py | yanndivet/FloodWarningSystem | 0723bd19a5d38b14775b54036b7bff33eb8b26c0 | [
"MIT"
] | 1 | 2022-02-25T16:09:15.000Z | 2022-02-25T16:09:15.000Z | from lib2to3.pgen2.tokenize import StopTokenizing
from floodsystem.stationdata import build_station_list, update_water_levels
from floodsystem.flood import stations_level_over_threshold
from floodsystem.datafetcher import fetch_measure_levels
from floodsystem.plot import plot_water_levels
import datetime
import matplot... | 35.25 | 129 | 0.697163 | 188 | 1,410 | 4.968085 | 0.409574 | 0.0803 | 0.04818 | 0.06424 | 0.070664 | 0.070664 | 0 | 0 | 0 | 0 | 0 | 0.015525 | 0.223404 | 1,410 | 39 | 130 | 36.153846 | 0.837443 | 0.056028 | 0 | 0.121212 | 0 | 0 | 0.055639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.242424 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c35ed297f92cf4cdda4ef5587dc61f5f2ee186e | 547 | py | Python | openacademy/model/openacademy_session.py | gpedroarena/openacademy-project | 92df6fb7589bcd6fd58657c5d7a7d0c62003935d | [
"Apache-2.0"
] | null | null | null | openacademy/model/openacademy_session.py | gpedroarena/openacademy-project | 92df6fb7589bcd6fd58657c5d7a7d0c62003935d | [
"Apache-2.0"
] | null | null | null | openacademy/model/openacademy_session.py | gpedroarena/openacademy-project | 92df6fb7589bcd6fd58657c5d7a7d0c62003935d | [
"Apache-2.0"
] | null | null | null | from openerp import fields,models
class Session(models.Model):
_name = 'openacademy.session'
name = fields.Char(required=True)
start_date = fields.Date()
duration = fields.Float(digits=(6, 2), help="Duration in days")
seats = fields.Integer(string="Number of seats")
instructor_id = fields.Man... | 36.466667 | 71 | 0.707495 | 66 | 547 | 5.787879 | 0.606061 | 0.062827 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010799 | 0.153565 | 547 | 14 | 72 | 39.071429 | 0.814255 | 0 | 0 | 0 | 0 | 0 | 0.223035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c37b24efde250cfd387354cb70689cc1a8e8777 | 750 | py | Python | push_notifications/migrations/0003_auto_20191114_0024.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 12 | 2017-08-30T18:21:00.000Z | 2021-12-09T04:04:17.000Z | push_notifications/migrations/0003_auto_20191114_0024.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 424 | 2017-08-08T18:32:14.000Z | 2022-03-30T21:42:51.000Z | push_notifications/migrations/0003_auto_20191114_0024.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 7 | 2017-09-29T21:14:37.000Z | 2019-12-30T21:07:37.000Z | # Generated by Django 2.2.4 on 2019-11-14 00:24
import common.models
from django.db import migrations, models
import push_notifications.validation
class Migration(migrations.Migration):
dependencies = [
('push_notifications', '0002_auto_20191112_2120'),
]
operations = [
migrations.AddFi... | 28.846154 | 160 | 0.666667 | 76 | 750 | 6.407895 | 0.671053 | 0.104723 | 0.110883 | 0.13963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05913 | 0.233333 | 750 | 25 | 161 | 30 | 0.787826 | 0.06 | 0 | 0.210526 | 1 | 0 | 0.135135 | 0.092461 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c3cb2f817b68679d1a529e4ed7acc6dd75b8ca9 | 4,454 | py | Python | maestros/urls.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | null | null | null | maestros/urls.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | 1 | 2018-09-27T12:07:19.000Z | 2018-10-08T15:56:30.000Z | maestros/urls.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | 1 | 2018-10-12T13:41:20.000Z | 2018-10-12T13:41:20.000Z | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include
from siva.utils import make_url_list
from maestros.views import *
__author__ = 'julian'
#lista_urls=('terceros','personal','actividades','unidades','parametrosanalisis','catalogoequipos','tipostemperaturas','zonas','tiposmedidasactuacion','ti... | 32.75 | 296 | 0.612034 | 407 | 4,454 | 6.501229 | 0.213759 | 0.060469 | 0.049131 | 0.036281 | 0.406274 | 0.341648 | 0.341648 | 0.226002 | 0.226002 | 0.226002 | 0 | 0.000289 | 0.222272 | 4,454 | 136 | 297 | 32.75 | 0.763568 | 0.084868 | 0 | 0.382609 | 0 | 0 | 0.358055 | 0.215864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.078261 | 0.026087 | 0 | 0.026087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c3cd4282419d827fd891b55e97febbda64a72da | 993 | py | Python | Unit_1/zipPasswdAttack.py | Cl0udG0d/pythonStunt | 17442761081595c612e14463ebe088539f608a33 | [
"MIT"
] | 6 | 2021-01-29T15:41:49.000Z | 2021-09-10T08:03:03.000Z | Unit_1/zipPasswdAttack.py | Cl0udG0d/pythonStunt | 17442761081595c612e14463ebe088539f608a33 | [
"MIT"
] | null | null | null | Unit_1/zipPasswdAttack.py | Cl0udG0d/pythonStunt | 17442761081595c612e14463ebe088539f608a33 | [
"MIT"
] | 1 | 2021-02-23T06:20:18.000Z | 2021-02-23T06:20:18.000Z | import zipfile
import optparse
from threading import Thread
def extractFile(zFile,password):
try:
# print(password)
zFile.extractall(pwd=password.encode(encoding='utf-8', errors = 'strict'))
print("[+] Found password {}".format(password))
except Exception as e:
pass
... | 30.090909 | 83 | 0.630413 | 118 | 993 | 5.211864 | 0.550847 | 0.042276 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002581 | 0.219537 | 993 | 33 | 84 | 30.090909 | 0.790968 | 0.015106 | 0 | 0 | 0 | 0 | 0.113228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.296296 | 0.111111 | 0 | 0.222222 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c4c6abc7331a5bb95792375f38f83edb0c24ef4 | 234,432 | py | Python | moltemplate/force_fields/convert_MSI_files_to_LT_files/msifrc2lt.py | ifas-vn/moltemplate | acf05a97d986a7e34c30535f7748e27564b3dd1a | [
"BSD-3-Clause"
] | 1 | 2021-11-23T12:43:09.000Z | 2021-11-23T12:43:09.000Z | moltemplate/force_fields/convert_MSI_files_to_LT_files/msifrc2lt.py | ifas-vn/moltemplate | acf05a97d986a7e34c30535f7748e27564b3dd1a | [
"BSD-3-Clause"
] | null | null | null | moltemplate/force_fields/convert_MSI_files_to_LT_files/msifrc2lt.py | ifas-vn/moltemplate | acf05a97d986a7e34c30535f7748e27564b3dd1a | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# Author: Andrew Jewett (jewett.aij at g mail)
# License: 3-clause BSD License (See LICENSE.TXT)
# Copyright (c) 2017, California Institute of Technology
# All rights reserved.
"""
This standalone python script can be used to convert force-field data
in FRC files (a.k.a. "MSI", "Accelrys", "BI... | 51.671148 | 148 | 0.473212 | 23,479 | 234,432 | 4.546744 | 0.057882 | 0.022707 | 0.005339 | 0.005845 | 0.613285 | 0.54347 | 0.488932 | 0.426845 | 0.382134 | 0.341967 | 0 | 0.032459 | 0.419926 | 234,432 | 4,536 | 149 | 51.68254 | 0.752559 | 0.165076 | 0 | 0.393036 | 0 | 0.004017 | 0.103086 | 0.007965 | 0 | 0 | 0 | 0 | 0.021426 | 0 | null | null | 0.003013 | 0.003013 | 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 |
7c4fd00580d38bc3a3f965548ba60b81e5b090d4 | 618 | py | Python | cry/extra/solver/solve.py | wani-hackase/wanictf21spring-writeup | f5a8c84a1dd887a9cad49a9946b9b7aea512bcab | [
"MIT"
] | 14 | 2021-05-02T11:10:44.000Z | 2021-05-23T05:33:07.000Z | cry/extra/solver/solve.py | wani-hackase/wanictf21spring-writeup | f5a8c84a1dd887a9cad49a9946b9b7aea512bcab | [
"MIT"
] | null | null | null | cry/extra/solver/solve.py | wani-hackase/wanictf21spring-writeup | f5a8c84a1dd887a9cad49a9946b9b7aea512bcab | [
"MIT"
] | 3 | 2021-05-15T07:15:20.000Z | 2021-11-04T04:52:14.000Z | import gmpy2
from Crypto.Util.number import long_to_bytes
with open("../file/output.txt") as f:
N = int(f.readline().split(" = ")[-1])
M = int(f.readline().split(" = ")[-1])
e = int(f.readline().split(" = ")[-1])
c = int(f.readline().split(" = ")[-1])
def solve_quad_equation(a, b, c):
d = gmpy2.i... | 22.888889 | 50 | 0.508091 | 111 | 618 | 2.756757 | 0.405405 | 0.052288 | 0.156863 | 0.222222 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040426 | 0.239482 | 618 | 26 | 51 | 23.769231 | 0.610638 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0.052632 | 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 |
7c50930046355e4e848ae564cca5db90f1280d55 | 514 | py | Python | django_orm/postgresql/sql/aggregates.py | cr8ivecodesmith/django-orm-extensions-save22 | caac321ec9b52fbb64af7a859bfd989831e024ff | [
"BSD-3-Clause"
] | 3 | 2015-05-18T13:51:32.000Z | 2015-05-18T14:39:09.000Z | django_orm/postgresql/sql/aggregates.py | cr8ivecodesmith/django-orm-extensions-save22 | caac321ec9b52fbb64af7a859bfd989831e024ff | [
"BSD-3-Clause"
] | null | null | null | django_orm/postgresql/sql/aggregates.py | cr8ivecodesmith/django-orm-extensions-save22 | caac321ec9b52fbb64af7a859bfd989831e024ff | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db.models.sql import aggregates
from django.db import models
class ArrayLength(aggregates.Aggregate):
sql_function = 'array_length'
sql_template = '%(function)s(%(field)s, 1)'
is_computed = True
def __init__(self, col, source=None, is_summary=False, **extra):
... | 32.125 | 80 | 0.659533 | 68 | 514 | 4.720588 | 0.529412 | 0.102804 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.198444 | 514 | 15 | 81 | 34.266667 | 0.774272 | 0.040856 | 0 | 0 | 0 | 0 | 0.09776 | 0.046843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c5e3bcdb537b20d98a1e464236bfc233e598beb | 2,026 | py | Python | src/spn/structure/leaves/parametric/Moment.py | AmurG/SPFlow | ab28dd4af9ed722ace69c6b290cf0a279bbda39e | [
"Apache-2.0"
] | null | null | null | src/spn/structure/leaves/parametric/Moment.py | AmurG/SPFlow | ab28dd4af9ed722ace69c6b290cf0a279bbda39e | [
"Apache-2.0"
] | null | null | null | src/spn/structure/leaves/parametric/Moment.py | AmurG/SPFlow | ab28dd4af9ed722ace69c6b290cf0a279bbda39e | [
"Apache-2.0"
] | null | null | null | """
Created on April 15, 2018
@author: Alejandro Molina
"""
from spn.algorithms.stats.Moments import add_node_moment
from spn.structure.leaves.parametric.Parametric import *
import numpy as np
import logging
logger = logging.getLogger(__name__)
def parametric_moment(node, order=1):
if order > 1:
return N... | 29.362319 | 76 | 0.699408 | 235 | 2,026 | 5.834043 | 0.302128 | 0.163384 | 0.123268 | 0.184537 | 0.383662 | 0.09628 | 0 | 0 | 0 | 0 | 0 | 0.008816 | 0.21619 | 2,026 | 68 | 77 | 29.794118 | 0.854534 | 0.025173 | 0 | 0.061224 | 0 | 0 | 0.04423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0 | 0.326531 | 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 |
7c5e9a29307c269424312c298220e97aee853426 | 6,928 | py | Python | scripts/objparse.py | Ridhii/SyncdSim | 4cd120e9f7d4db348d405db4608ef9c6f9499d01 | [
"BSD-3-Clause"
] | 50 | 2015-10-21T23:16:35.000Z | 2021-09-27T12:52:04.000Z | scripts/objparse.py | Ridhii/SyncdSim | 4cd120e9f7d4db348d405db4608ef9c6f9499d01 | [
"BSD-3-Clause"
] | 187 | 2015-01-08T22:24:54.000Z | 2020-04-17T17:23:50.000Z | scripts/objparse.py | Ridhii/SyncdSim | 4cd120e9f7d4db348d405db4608ef9c6f9499d01 | [
"BSD-3-Clause"
] | 25 | 2015-11-02T17:54:49.000Z | 2020-06-16T07:28:11.000Z | #!/usr/bin/env python
# Input: Executable file produced by the marker front end (ContechMarkFE)
# Output: Allows simulators to look up machine code & memory addresses per basic block.
import sys
import argparse
import os
from util import *
class Instruction:
def __init__(self, addr, bytes, reads, writes, asm):
... | 28.393443 | 148 | 0.660219 | 956 | 6,928 | 4.735356 | 0.276151 | 0.015463 | 0.007952 | 0.014137 | 0.1723 | 0.122377 | 0.107798 | 0.107798 | 0.091451 | 0.063618 | 0 | 0.022569 | 0.232535 | 6,928 | 243 | 149 | 28.510288 | 0.828851 | 0.269197 | 0 | 0.2 | 0 | 0.014286 | 0.19003 | 0.017547 | 0 | 0 | 0 | 0.004115 | 0 | 0 | null | null | 0.014286 | 0.028571 | 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 |
7c647f890761a0dcb7dab384d747b5ff0b99a4d9 | 4,855 | py | Python | src/easimpconf/_utils.py | andreas19/easimpconf | d1bbf7002172a4d049ba20dcac82a439efe02f8e | [
"BSD-3-Clause"
] | null | null | null | src/easimpconf/_utils.py | andreas19/easimpconf | d1bbf7002172a4d049ba20dcac82a439efe02f8e | [
"BSD-3-Clause"
] | null | null | null | src/easimpconf/_utils.py | andreas19/easimpconf | d1bbf7002172a4d049ba20dcac82a439efe02f8e | [
"BSD-3-Clause"
] | null | null | null | """Utils module."""
__all__ = ['convert_choice', 'convert_loglevel', 'convert_predicate',
'convert_string', 'create_getter', 'create_setter', 'create_deleter']
def convert_choice(choices, *, converter=None, default=None):
"""Return a function that can be used as a converter.
For an example see th... | 32.366667 | 80 | 0.621009 | 620 | 4,855 | 4.806452 | 0.262903 | 0.014094 | 0.020134 | 0.026846 | 0.331544 | 0.310403 | 0.265772 | 0.265772 | 0.254362 | 0.254362 | 0 | 0.009083 | 0.274356 | 4,855 | 149 | 81 | 32.583893 | 0.836787 | 0.502369 | 0 | 0.311475 | 0 | 0 | 0.125347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0 | 0.016393 | 0.42623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c6a4e2c48d710dee76c5fd50fc41cafc499ce33 | 6,147 | py | Python | restorething/rtlog.py | madmickstar/restorething | 6ed2173cb04f775731f5b997a3596c9e43e6e1cc | [
"MIT"
] | 3 | 2017-02-21T06:36:11.000Z | 2017-11-21T04:28:30.000Z | restorething/rtlog.py | madmickstar/restorething | 6ed2173cb04f775731f5b997a3596c9e43e6e1cc | [
"MIT"
] | 4 | 2017-04-01T14:54:13.000Z | 2018-10-23T11:03:16.000Z | restorething/rtlog.py | madmickstar/restorething | 6ed2173cb04f775731f5b997a3596c9e43e6e1cc | [
"MIT"
] | 2 | 2017-03-07T14:12:48.000Z | 2018-10-23T07:02:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
import rttools
import ConfigParser
from ConfigParser import RawConfigParser
def validate_ini(logging_file):
''' Validate the retrieved INI file, review sections and some fields '''
parser = ConfigParser.RawConfigParser(allow_no_valu... | 40.176471 | 109 | 0.628925 | 767 | 6,147 | 4.860495 | 0.168188 | 0.079667 | 0.081545 | 0.020923 | 0.479614 | 0.414968 | 0.281384 | 0.229345 | 0.229345 | 0.204667 | 0 | 0.004151 | 0.216203 | 6,147 | 152 | 110 | 40.440789 | 0.769614 | 0.011876 | 0 | 0.173913 | 0 | 0 | 0.355256 | 0.013465 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052174 | null | null | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c706834099c3e1dee17bedb53af990bda9525fa | 5,377 | py | Python | razor/driver.py | Tubbz-alt/OCCAM | 9efa1dbecf2bba4bffc1a23c8a05ac1560e22f4a | [
"BSD-3-Clause"
] | 1 | 2021-04-27T01:33:01.000Z | 2021-04-27T01:33:01.000Z | razor/driver.py | Tubbz-alt/OCCAM | 9efa1dbecf2bba4bffc1a23c8a05ac1560e22f4a | [
"BSD-3-Clause"
] | null | null | null | razor/driver.py | Tubbz-alt/OCCAM | 9efa1dbecf2bba4bffc1a23c8a05ac1560e22f4a | [
"BSD-3-Clause"
] | null | null | null | """
OCCAM
Copyright (c) 2011-2017, SRI International
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of con... | 29.872222 | 82 | 0.635484 | 712 | 5,377 | 4.706461 | 0.324438 | 0.028648 | 0.017905 | 0.020292 | 0.231871 | 0.17547 | 0.124142 | 0.124142 | 0.124142 | 0.124142 | 0 | 0.005942 | 0.248838 | 5,377 | 179 | 83 | 30.039106 | 0.823719 | 0.027711 | 0 | 0.164948 | 0 | 0 | 0.082746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061856 | null | null | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c71b3ed4dc9e81c2775057317004becc3ee9fd6 | 2,286 | py | Python | tests/test_scan.py | toastisme/dxtbx | fc24e215a8052e7e17be4ad4b41f9dbb474d852a | [
"BSD-3-Clause"
] | null | null | null | tests/test_scan.py | toastisme/dxtbx | fc24e215a8052e7e17be4ad4b41f9dbb474d852a | [
"BSD-3-Clause"
] | null | null | null | tests/test_scan.py | toastisme/dxtbx | fc24e215a8052e7e17be4ad4b41f9dbb474d852a | [
"BSD-3-Clause"
] | null | null | null | import os
import pytest
from dxtbx.model.scan_helpers import scan_helper_image_files
from dxtbx.model.sequence import SequenceFactory
@pytest.fixture
def image_test_dir(tmp_path):
"""Create a sequence of 20 'images' for scan tests to pick up"""
for i in range(1, 21):
image_file = tmp_path / f"image_... | 24.847826 | 88 | 0.648294 | 307 | 2,286 | 4.482085 | 0.2443 | 0.103924 | 0.151163 | 0.174419 | 0.4375 | 0.412791 | 0.351017 | 0.351017 | 0.262355 | 0.15189 | 0 | 0.034742 | 0.244532 | 2,286 | 91 | 89 | 25.120879 | 0.762015 | 0.061242 | 0 | 0.098361 | 0 | 0 | 0.067136 | 0.010329 | 0 | 0 | 0 | 0 | 0.147541 | 1 | 0.04918 | false | 0 | 0.065574 | 0 | 0.131148 | 0.016393 | 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 |
7c723a4562c7382487e84a94270f9c4094b2cd28 | 1,549 | py | Python | st_library/core/dataprovider/structured_data/structured_data.py | vartagg/dataprovider-py | e392af3dab21c99c51a32345710fcd0dc4023462 | [
"Apache-2.0"
] | null | null | null | st_library/core/dataprovider/structured_data/structured_data.py | vartagg/dataprovider-py | e392af3dab21c99c51a32345710fcd0dc4023462 | [
"Apache-2.0"
] | null | null | null | st_library/core/dataprovider/structured_data/structured_data.py | vartagg/dataprovider-py | e392af3dab21c99c51a32345710fcd0dc4023462 | [
"Apache-2.0"
] | null | null | null | from st_library.core.dataprovider.structured_data.table import Table
class StructuredData(object):
"""
A Category for work with structured data
Attributes
----------
Table : object
The :class:`~st_library.core.dataprovider.structured_data.table.Table` class itself
Examples
------... | 25.393443 | 99 | 0.583602 | 175 | 1,549 | 4.908571 | 0.308571 | 0.073341 | 0.069849 | 0.079162 | 0.509895 | 0.509895 | 0.509895 | 0.407451 | 0.407451 | 0.407451 | 0 | 0 | 0.289864 | 1,549 | 60 | 100 | 25.816667 | 0.780909 | 0.514526 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c72e997cd9171e411ff18cb982c02d2501b7345 | 4,450 | py | Python | proyecto_final/encuestas/views.py | wzorroman/proy_ccbv | 7b090923b06251b28d545d29e92b1b933de0515f | [
"MIT"
] | null | null | null | proyecto_final/encuestas/views.py | wzorroman/proy_ccbv | 7b090923b06251b28d545d29e92b1b933de0515f | [
"MIT"
] | null | null | null | proyecto_final/encuestas/views.py | wzorroman/proy_ccbv | 7b090923b06251b28d545d29e92b1b933de0515f | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth import logout
from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
from django.urls import reverse
from django.contri... | 33.208955 | 99 | 0.675955 | 492 | 4,450 | 5.910569 | 0.231707 | 0.037827 | 0.038514 | 0.023384 | 0.405777 | 0.389271 | 0.367263 | 0.367263 | 0.34044 | 0.34044 | 0 | 0.002606 | 0.224045 | 4,450 | 133 | 100 | 33.458647 | 0.83956 | 0 | 0 | 0.451923 | 0 | 0 | 0.141348 | 0.038202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.125 | 0.009615 | 0.509615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c73aef2e2c1f676e54418adfb65167f56830887 | 988 | py | Python | sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/operations/__init__.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/operations/__init__.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/operations/__init__.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 39.52 | 105 | 0.695344 | 83 | 988 | 8.048193 | 0.662651 | 0.095808 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001135 | 0.1083 | 988 | 24 | 106 | 41.166667 | 0.757094 | 0.45749 | 0 | 0 | 0 | 0 | 0.234286 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c741c1a4739c73e5803d5a5e2a8ea4b654ee102 | 1,090 | py | Python | tests/example/factories/configurable_widgets_admin_mixin_factories.py | frankhood/django-admin-utils | c6cd6f8fcabb22459d89857bf280263d17cae83a | [
"MIT"
] | null | null | null | tests/example/factories/configurable_widgets_admin_mixin_factories.py | frankhood/django-admin-utils | c6cd6f8fcabb22459d89857bf280263d17cae83a | [
"MIT"
] | null | null | null | tests/example/factories/configurable_widgets_admin_mixin_factories.py | frankhood/django-admin-utils | c6cd6f8fcabb22459d89857bf280263d17cae83a | [
"MIT"
] | null | null | null | import factory.django
from tests.example.models import ConfigurableWidgetsExampleModel, \
ConfigurableWidgetsExampleM2MModel, ConfigurableWidgetsExampleFKModel
class ConfigurableWidgetsExampleM2MModelFactory(factory.django.DjangoModelFactory):
test_text = factory.Faker("word")
class Meta:
model... | 28.684211 | 83 | 0.744954 | 92 | 1,090 | 8.673913 | 0.456522 | 0.065163 | 0.116541 | 0.131579 | 0.241855 | 0.241855 | 0.241855 | 0.241855 | 0.172932 | 0.172932 | 0 | 0.011351 | 0.191743 | 1,090 | 38 | 84 | 28.684211 | 0.894438 | 0.022936 | 0 | 0.26087 | 0 | 0 | 0.011278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c791069cbe27d6b73d19d073b93362131386a81 | 850 | py | Python | bell2014/krahenbuhl2013/setup.py | tatsy/intrinsic | b9b96093082e732d1efb16ec56a0196ddf2ea16b | [
"MIT"
] | null | null | null | bell2014/krahenbuhl2013/setup.py | tatsy/intrinsic | b9b96093082e732d1efb16ec56a0196ddf2ea16b | [
"MIT"
] | null | null | null | bell2014/krahenbuhl2013/setup.py | tatsy/intrinsic | b9b96093082e732d1efb16ec56a0196ddf2ea16b | [
"MIT"
] | null | null | null | from __future__ import print_function
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import cythonize
import numpy
except ImportError:
print("You must have Cython >=0.17 and NumPy to build!")
import sys
sys.exit(1)
setup(
ext_modules... | 25 | 60 | 0.544706 | 83 | 850 | 5.46988 | 0.566265 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023381 | 0.345882 | 850 | 33 | 61 | 25.757576 | 0.793165 | 0 | 0 | 0.064516 | 0 | 0 | 0.287805 | 0.086585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.225806 | 0 | 0.225806 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c7dcd68221d77b5679cc099fff1a526063297b4 | 3,080 | py | Python | koku/reporting/migrations/0185_partition_ocp_on_x_tables.py | pavanyadavalli/koku | 88e2d679148d0e4735c5018faada638f73d4dc5c | [
"Apache-2.0"
] | 2 | 2022-01-12T03:42:39.000Z | 2022-01-12T03:42:40.000Z | koku/reporting/migrations/0185_partition_ocp_on_x_tables.py | pavanyadavalli/koku | 88e2d679148d0e4735c5018faada638f73d4dc5c | [
"Apache-2.0"
] | null | null | null | koku/reporting/migrations/0185_partition_ocp_on_x_tables.py | pavanyadavalli/koku | 88e2d679148d0e4735c5018faada638f73d4dc5c | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
# Generated by Django 3.1.10 on 2021-05-17 19:48
from django.db import migrations
from koku import pg_partition as ppart
def convert_table_to_partitioned(apps, schema_editor, table_name):
# Resolve the current schema name
target_schema =... | 40.526316 | 113 | 0.770779 | 369 | 3,080 | 6.092141 | 0.314363 | 0.04048 | 0.104093 | 0.088078 | 0.51468 | 0.492883 | 0.464858 | 0.425267 | 0.375445 | 0.375445 | 0 | 0.010313 | 0.15 | 3,080 | 75 | 114 | 41.066667 | 0.848358 | 0.149026 | 0 | 0.133333 | 1 | 0 | 0.183282 | 0.13727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.044444 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7e2683b7ce39582a5df9dbc7477aef2d4ee360 | 757 | py | Python | ivy/functional/backends/jax/searching.py | sohil-hub/ivy | c3ecbc1a7e1429dcd9034f50d0250016290a6aff | [
"Apache-2.0"
] | 1 | 2022-03-10T19:36:02.000Z | 2022-03-10T19:36:02.000Z | ivy/functional/backends/jax/searching.py | sohil-hub/ivy | c3ecbc1a7e1429dcd9034f50d0250016290a6aff | [
"Apache-2.0"
] | null | null | null | ivy/functional/backends/jax/searching.py | sohil-hub/ivy | c3ecbc1a7e1429dcd9034f50d0250016290a6aff | [
"Apache-2.0"
] | null | null | null | import jax.numpy as jnp
from ivy.functional.backends.jax import JaxArray
from typing import Optional
def argmax(
x: JaxArray,
axis: Optional[int] = None,
out: Optional[JaxArray] = None,
keepdims: bool = False
) -> JaxArray:
return jnp.argmax(x, axis=axis, out=out, keepdims=keepdims)
def argm... | 21.628571 | 63 | 0.622193 | 92 | 757 | 5.119565 | 0.315217 | 0.118896 | 0.144374 | 0.089172 | 0.505308 | 0.505308 | 0.505308 | 0.505308 | 0.360934 | 0.360934 | 0 | 0.007168 | 0.26288 | 757 | 34 | 64 | 22.264706 | 0.836918 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.125 | 0.166667 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7c80382d7bd3722424eaefe91cbab74ef724a226 | 736 | py | Python | stringsAndLoops.py | davidbmar/stringsAndLoops | 2e70648ec11b86ab0ba85f7a8c268e8c752941b3 | [
"Apache-2.0"
] | null | null | null | stringsAndLoops.py | davidbmar/stringsAndLoops | 2e70648ec11b86ab0ba85f7a8c268e8c752941b3 | [
"Apache-2.0"
] | null | null | null | stringsAndLoops.py | davidbmar/stringsAndLoops | 2e70648ec11b86ab0ba85f7a8c268e8c752941b3 | [
"Apache-2.0"
] | null | null | null | import sys
# Enter your code here. Read input from STDIN. Print output to STDOUT
if __name__ == '__main__':
a = int(raw_input())
for i in range(a):
myline = raw_input()
numChars=len(myline)
evenString=[]
oddString=[]
for j in range (numChars):
evenCounter=0;
... | 30.666667 | 69 | 0.53125 | 87 | 736 | 4.37931 | 0.448276 | 0.073491 | 0.146982 | 0.057743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008351 | 0.349185 | 736 | 23 | 70 | 32 | 0.787056 | 0.110054 | 0 | 0 | 0 | 0 | 0.016897 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7c8203daa5532a9fd6febcb3865cd4dae4d40078 | 3,063 | py | Python | gaphor/core/modeling/tests/test_diagram.py | vanillajonathan/gaphor | d39f436aea7d667c194dd62c6ae79411c23a3b26 | [
"Apache-2.0"
] | 867 | 2018-01-09T00:19:09.000Z | 2022-03-31T02:49:23.000Z | gaphor/core/modeling/tests/test_diagram.py | vanillajonathan/gaphor | d39f436aea7d667c194dd62c6ae79411c23a3b26 | [
"Apache-2.0"
] | 790 | 2018-01-13T23:47:07.000Z | 2022-03-31T16:04:27.000Z | gaphor/core/modeling/tests/test_diagram.py | vanillajonathan/gaphor | d39f436aea7d667c194dd62c6ae79411c23a3b26 | [
"Apache-2.0"
] | 117 | 2018-01-09T02:24:49.000Z | 2022-03-23T08:07:42.000Z | import gaphas
import pytest
from gaphor.core.modeling import Diagram, Presentation, StyleSheet
class Example(gaphas.Element, Presentation):
def __init__(self, diagram, id):
super().__init__(connections=diagram.connections, diagram=diagram, id=id)
def unlink(self):
self.test_unlinked = True
... | 25.31405 | 81 | 0.740777 | 380 | 3,063 | 5.678947 | 0.207895 | 0.084337 | 0.074143 | 0.07507 | 0.466172 | 0.407785 | 0.407785 | 0.250232 | 0.250232 | 0.250232 | 0 | 0.004314 | 0.167483 | 3,063 | 120 | 82 | 25.525 | 0.841961 | 0 | 0 | 0.369863 | 0 | 0 | 0.003265 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 1 | 0.232877 | false | 0 | 0.041096 | 0.013699 | 0.328767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c8ae4b6fb1120b4df412b6359c0c55f0f05a6b8 | 1,621 | py | Python | wordlist-to-diceware.py | jacksingleton/diceware | 3f5f339b296276efe755ec6eb6596359b66e0b47 | [
"Unlicense"
] | null | null | null | wordlist-to-diceware.py | jacksingleton/diceware | 3f5f339b296276efe755ec6eb6596359b66e0b47 | [
"Unlicense"
] | null | null | null | wordlist-to-diceware.py | jacksingleton/diceware | 3f5f339b296276efe755ec6eb6596359b66e0b47 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from itertools import *
from pprint import pprint
import sys
def lowercase_words(fp):
for line in fp.readlines():
yield line.rstrip('\n').lower()
def words_from_file(filename):
with open(filename) as fp:
return list(lowercase_words(fp))
def good_words():
def only_a... | 27.948276 | 81 | 0.642196 | 239 | 1,621 | 4.158996 | 0.355649 | 0.072435 | 0.090543 | 0.016097 | 0.06841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014988 | 0.259099 | 1,621 | 57 | 82 | 28.438596 | 0.812656 | 0.012955 | 0 | 0 | 0 | 0 | 0.094434 | 0.01626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.068182 | 0.068182 | 0.477273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8b0e8c546b031b0394a848d3369c0ab86cd86e | 5,272 | py | Python | src/sentry/receivers/core.py | Casecommons/sentry | b69a2373a658c5c775671fe9985c3fa4f2eafcfd | [
"BSD-3-Clause"
] | null | null | null | src/sentry/receivers/core.py | Casecommons/sentry | b69a2373a658c5c775671fe9985c3fa4f2eafcfd | [
"BSD-3-Clause"
] | null | null | null | src/sentry/receivers/core.py | Casecommons/sentry | b69a2373a658c5c775671fe9985c3fa4f2eafcfd | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.contrib.auth.signals import user_logged_in
from django.db.models.signals import post_syncdb, post_save, pre_delete
from pkg_resources import parse_version as Version
from sentry.constants import MEMBER_OWNER
from sentry.db.models import update
from sentry.db.models.utils im... | 26.09901 | 93 | 0.681904 | 647 | 5,272 | 5.347759 | 0.222566 | 0.026012 | 0.015029 | 0.019653 | 0.227457 | 0.15 | 0.068786 | 0.068786 | 0.045087 | 0.045087 | 0 | 0.001457 | 0.218703 | 5,272 | 201 | 94 | 26.228856 | 0.838553 | 0.040592 | 0 | 0.237179 | 0 | 0 | 0.073253 | 0.033855 | 0 | 0 | 0 | 0.004975 | 0 | 0 | null | null | 0 | 0.089744 | null | null | 0.00641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c8cc69fda5aacd89205c333e8c95e030713938c | 1,611 | py | Python | unidist/cli/base/runner.py | no-ponomarev/unidist | fb434c444ca5d10d857dec3456a7fcce51069a64 | [
"Apache-2.0"
] | 14 | 2021-11-08T19:39:17.000Z | 2022-03-12T06:00:49.000Z | unidist/cli/base/runner.py | no-ponomarev/unidist | fb434c444ca5d10d857dec3456a7fcce51069a64 | [
"Apache-2.0"
] | 102 | 2021-11-09T10:00:18.000Z | 2022-03-29T11:18:15.000Z | unidist/cli/base/runner.py | no-ponomarev/unidist | fb434c444ca5d10d857dec3456a7fcce51069a64 | [
"Apache-2.0"
] | 4 | 2021-11-08T19:47:31.000Z | 2022-01-18T12:42:43.000Z | # Copyright (C) 2021-2022 Modin authors
#
# SPDX-License-Identifier: Apache-2.0
"""``BackendRunner`` class functionality."""
import os
import subprocess
from unidist.cli.base.utils import Defaults
class BackendRunner:
"""
Base class for any unidist backend runner.
Parameters
----------
**cli_k... | 27.775862 | 76 | 0.615146 | 189 | 1,611 | 5.100529 | 0.412698 | 0.065353 | 0.049793 | 0.062241 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.264432 | 1,611 | 57 | 77 | 28.263158 | 0.805063 | 0.320919 | 0 | 0 | 0 | 0 | 0.060914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c8cf1eaf00c4cf9d35be9e246a395edd078380e | 21,438 | py | Python | test/py/ganeti.hypervisor.hv_kvm_unittest.py | jenshadlich/ganeti | a800ae4732d2c2b2b004601369ef26ab2882c4b7 | [
"BSD-2-Clause"
] | 1 | 2019-11-15T14:48:55.000Z | 2019-11-15T14:48:55.000Z | test/py/ganeti.hypervisor.hv_kvm_unittest.py | jenshadlich/ganeti | a800ae4732d2c2b2b004601369ef26ab2882c4b7 | [
"BSD-2-Clause"
] | null | null | null | test/py/ganeti.hypervisor.hv_kvm_unittest.py | jenshadlich/ganeti | a800ae4732d2c2b2b004601369ef26ab2882c4b7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
#
# Copyright (C) 2010, 2011 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this l... | 34.521739 | 80 | 0.663541 | 2,503 | 21,438 | 5.538953 | 0.228925 | 0.015147 | 0.010098 | 0.016445 | 0.419071 | 0.372043 | 0.299048 | 0.238171 | 0.230381 | 0.20665 | 0 | 0.025142 | 0.21891 | 21,438 | 620 | 81 | 34.577419 | 0.802807 | 0.097351 | 0 | 0.247191 | 0 | 0 | 0.122688 | 0.039256 | 0 | 0 | 0.000324 | 0 | 0.119101 | 0 | null | null | 0 | 0.044944 | 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 |
7c8fc83e0ad7078ac64f1f01fd612b8c4f939f4a | 1,201 | py | Python | humblecritic/humblebundle/builder.py | witekbobrowski/humblecritic | 08ff00e4e233c251453f20bac2593be70235fac8 | [
"MIT"
] | 3 | 2018-02-24T12:23:21.000Z | 2018-10-15T11:18:17.000Z | humblecritic/humblebundle/builder.py | witekbobrowski/humblecritic | 08ff00e4e233c251453f20bac2593be70235fac8 | [
"MIT"
] | 1 | 2018-02-24T20:24:57.000Z | 2018-02-24T21:35:58.000Z | humblecritic/humblebundle/builder.py | witekbobrowski/humblecritic | 08ff00e4e233c251453f20bac2593be70235fac8 | [
"MIT"
] | 1 | 2018-02-27T16:07:28.000Z | 2018-02-27T16:07:28.000Z | #!/usr/bin/env python3
# -*- coding : utf-8 -*-
# Author: Witek Bobrowski
from . import scraper
from .bundle import Bundle
from .bundle import BundleType
from .tier import Tier
from .item import Item
def construct_bundle(builder):
builder.new_bundle()
builder.build_url()
builder.build_title()
builder... | 24.510204 | 72 | 0.6403 | 154 | 1,201 | 4.837662 | 0.25974 | 0.080537 | 0.075168 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002222 | 0.250624 | 1,201 | 48 | 73 | 25.020833 | 0.825556 | 0.056619 | 0 | 0 | 0 | 0 | 0.013274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.147059 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c956ee487bea187a3da940daa946fd3f980f3db | 10,917 | py | Python | Lib/lib-tk/turtle.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 5 | 2022-03-26T21:53:36.000Z | 2022-03-30T21:47:20.000Z | Lib/lib-tk/turtle.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 6 | 2020-11-18T15:48:14.000Z | 2021-05-03T21:20:50.000Z | Lib/lib-tk/turtle.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 2 | 2015-07-16T08:14:13.000Z | 2022-03-27T01:55:17.000Z | # LogoMation-like turtle graphics
from math import * # Also for export
import Tkinter
class Error(Exception):
pass
class RawPen:
def __init__(self, canvas):
self._canvas = canvas
self._items = []
self._tracing = 1
self.degrees()
self.reset()
def degrees(self, full... | 31.735465 | 76 | 0.464871 | 1,160 | 10,917 | 4.2 | 0.169828 | 0.047209 | 0.029557 | 0.032841 | 0.264368 | 0.176929 | 0.170361 | 0.139163 | 0.134647 | 0.120484 | 0 | 0.027432 | 0.425666 | 10,917 | 343 | 77 | 31.827988 | 0.749601 | 0.024182 | 0 | 0.384106 | 0 | 0 | 0.02547 | 0 | 0 | 0 | 0 | 0 | 0.009934 | 0 | null | null | 0.003311 | 0.006623 | 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 |
7c97b10bff8e3c678c7031fe72bf2c7da1efd0e8 | 7,630 | py | Python | sharefun/script/spider/crawller.py | Fansion/sharefun | 1e6bf742f5921d8dd464ba6074d6c18859118714 | [
"MIT"
] | 1 | 2015-01-17T03:17:48.000Z | 2015-01-17T03:17:48.000Z | sharefun/script/spider/crawller.py | Fansion/sharefun | 1e6bf742f5921d8dd464ba6074d6c18859118714 | [
"MIT"
] | null | null | null | sharefun/script/spider/crawller.py | Fansion/sharefun | 1e6bf742f5921d8dd464ba6074d6c18859118714 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'frank'
"""爬取douban.com相关页面提取work数据
适用于beautifulsoup3
改动两点:
1. find_all 改成 findAll
2. get_text 改成 getText
"""
import os
import sys
from urllib import urlretrieve, urlopen
from BeautifulSoup import BeautifulSoup
from spider_config import *
from python_mysql import *
import dateti... | 35.654206 | 251 | 0.600786 | 925 | 7,630 | 4.751351 | 0.259459 | 0.032765 | 0.026621 | 0.029124 | 0.301251 | 0.219568 | 0.123777 | 0.095563 | 0.085552 | 0.085552 | 0 | 0.005511 | 0.262779 | 7,630 | 213 | 252 | 35.821596 | 0.775822 | 0.127261 | 0 | 0.097222 | 0 | 0 | 0.083935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020833 | 0.048611 | null | null | 0.034722 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.