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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
131f864c5952156d9ae58992e261b91e85db12b1 | 430 | py | Python | 0_build_binaries.py | ucsb-seclab/hacrs-input-generator | 7de089518541e3d0841622bcd3c950c7d83adc33 | [
"BSD-2-Clause"
] | 3 | 2019-12-20T02:04:42.000Z | 2019-12-20T02:04:51.000Z | 0_build_binaries.py | ucsb-seclab/hacrs-input-generator | 7de089518541e3d0841622bcd3c950c7d83adc33 | [
"BSD-2-Clause"
] | null | null | null | 0_build_binaries.py | ucsb-seclab/hacrs-input-generator | 7de089518541e3d0841622bcd3c950c7d83adc33 | [
"BSD-2-Clause"
] | null | null | null | from config import *
for event in EVENTS:
challenges_dir = get_challenges_dir(VAGRANT_BASE_DIR, event)
if not os.path.isdir(challenges_dir):
continue
for challenge_name in os.listdir(challenges_dir):
challenge_dir = os.path.join(challenges_dir, challenge_name)
if not os.path.isdir(... | 28.666667 | 68 | 0.683721 | 58 | 430 | 4.844828 | 0.448276 | 0.231317 | 0.049822 | 0.078292 | 0.113879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 430 | 14 | 69 | 30.714286 | 0.851515 | 0 | 0 | 0.181818 | 0 | 0 | 0.04186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
13235371bfea6c031aadf2adac8c62469410e18f | 198 | py | Python | tests/error/list_multiplier.py | ktok07b6/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 83 | 2015-11-30T09:59:13.000Z | 2021-08-03T09:12:28.000Z | tests/error/list_multiplier.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 4 | 2017-02-10T01:43:11.000Z | 2020-07-14T03:52:25.000Z | tests/error/list_multiplier.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 11 | 2016-11-18T14:39:15.000Z | 2021-02-23T10:05:20.000Z | #Type of sequence multiplier must be constant
from polyphony import testbench
def list_multiplier(x):
l = [1, 2, 3] * x
return l[0]
@testbench
def test():
list_multiplier(5)
test() | 13.2 | 45 | 0.676768 | 30 | 198 | 4.4 | 0.733333 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0.222222 | 198 | 15 | 46 | 13.2 | 0.824675 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
132583d5181b6340301f7e31107b48604504dd19 | 430 | py | Python | WellOiled_App/migrations/0002_register_job_title.py | MichellePeruskie/Well-Oiled | c2fc55aaa3f994ebd72f49e8b184cf5479c5dfa6 | [
"MIT"
] | null | null | null | WellOiled_App/migrations/0002_register_job_title.py | MichellePeruskie/Well-Oiled | c2fc55aaa3f994ebd72f49e8b184cf5479c5dfa6 | [
"MIT"
] | null | null | null | WellOiled_App/migrations/0002_register_job_title.py | MichellePeruskie/Well-Oiled | c2fc55aaa3f994ebd72f49e8b184cf5479c5dfa6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-12-07 20:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('WellOiled_App', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='register',
name='job_title',
... | 21.5 | 62 | 0.6 | 46 | 430 | 5.478261 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072131 | 0.290698 | 430 | 19 | 63 | 22.631579 | 0.754098 | 0.1 | 0 | 0 | 1 | 0 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
132614fbe27e33abdd1f09a7d44188956c70bf8e | 582 | py | Python | geninfo/info/migrations/0007_auto_20210316_2110.py | genomika/geninfo | 0604bf65c57847500db84523a2c8707a12f7a5a8 | [
"MIT"
] | 3 | 2022-02-15T15:33:44.000Z | 2022-02-16T15:31:28.000Z | geninfo/info/migrations/0007_auto_20210316_2110.py | genomika/geninfo | 0604bf65c57847500db84523a2c8707a12f7a5a8 | [
"MIT"
] | null | null | null | geninfo/info/migrations/0007_auto_20210316_2110.py | genomika/geninfo | 0604bf65c57847500db84523a2c8707a12f7a5a8 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2021-03-16 21:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("info", "0006_incident_incident_impact"),
]
operations = [
migrations.AlterField(
model_name="incident",
name="incident... | 24.25 | 68 | 0.539519 | 54 | 582 | 5.685185 | 0.796296 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.338488 | 582 | 23 | 69 | 25.304348 | 0.745455 | 0.073883 | 0 | 0.117647 | 1 | 0 | 0.189944 | 0.054004 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1326dd86382988f1a8ce17fc802a5aefac9317c0 | 11,101 | py | Python | test/lib/exabgp.py | SergeyVystoropskyi/gobgp | 25428e881edbf4205f2bb3fa707e9538ce3b4432 | [
"Apache-2.0"
] | 41 | 2017-09-26T00:30:38.000Z | 2021-08-24T02:36:41.000Z | test/lib/exabgp.py | SergeyVystoropskyi/gobgp | 25428e881edbf4205f2bb3fa707e9538ce3b4432 | [
"Apache-2.0"
] | 7 | 2019-06-27T21:57:57.000Z | 2021-05-04T20:29:25.000Z | test/lib/exabgp.py | SergeyVystoropskyi/gobgp | 25428e881edbf4205f2bb3fa707e9538ce3b4432 | [
"Apache-2.0"
] | 18 | 2017-10-19T12:12:52.000Z | 2020-12-31T05:09:58.000Z | # Copyright (C) 2015 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 35.580128 | 134 | 0.535447 | 1,318 | 11,101 | 4.389226 | 0.218513 | 0.025411 | 0.011409 | 0.01815 | 0.219188 | 0.179084 | 0.150043 | 0.120311 | 0.107865 | 0.095765 | 0 | 0.019154 | 0.322764 | 11,101 | 311 | 135 | 35.694534 | 0.750333 | 0.117287 | 0 | 0.186957 | 0 | 0.013043 | 0.159394 | 0.010961 | 0 | 0 | 0 | 0 | 0.008696 | 0 | null | null | 0.017391 | 0.013043 | null | null | 0.017391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
132908c2a5e8d0f95f69a0fc4e0423d78cf4790d | 2,529 | py | Python | src/rogerthat/bizz/forms/exceptions.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/forms/exceptions.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/forms/exceptions.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 37.746269 | 123 | 0.686042 | 285 | 2,529 | 5.814035 | 0.42807 | 0.029572 | 0.04647 | 0.090525 | 0.212432 | 0.19312 | 0.098974 | 0 | 0 | 0 | 0 | 0.008235 | 0.231712 | 2,529 | 66 | 124 | 38.318182 | 0.84457 | 0.23962 | 0 | 0.066667 | 0 | 0 | 0.104407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.033333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
132da8cdf1889ac442c1121d5b78e86729fc09a6 | 1,266 | py | Python | models/user.py | marcosrodg/teste | 09c1288a27d2d7a3db23c24e73c844e1c7be1b59 | [
"MIT"
] | null | null | null | models/user.py | marcosrodg/teste | 09c1288a27d2d7a3db23c24e73c844e1c7be1b59 | [
"MIT"
] | null | null | null | models/user.py | marcosrodg/teste | 09c1288a27d2d7a3db23c24e73c844e1c7be1b59 | [
"MIT"
] | null | null | null | from sql_alchemy import banco
import hashlib
class UserModel(banco.Model):
__tablename__ = 'users'
user_id = banco.Column(banco.Integer, primary_key=True)
login = banco.Column(banco.String(50))
password = banco.Column(banco.String(128))
def __init__(self,login,password):
self.logi... | 23.444444 | 59 | 0.559242 | 150 | 1,266 | 4.56 | 0.386667 | 0.052632 | 0.093567 | 0.064327 | 0.149123 | 0.090643 | 0.090643 | 0 | 0 | 0 | 0 | 0.010702 | 0.335703 | 1,266 | 54 | 60 | 23.444444 | 0.802616 | 0 | 0 | 0.243902 | 0 | 0 | 0.017364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0.073171 | 0.04878 | 0.02439 | 0.487805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
132e7bc402a2ce56f2f55fe5e47b69da44c4f8b6 | 3,383 | py | Python | nipype/interfaces/fsl/tests/test_auto_BET.py | moloney/nipype | a7a9c85c79cb1412ba03406074f83200447ef50b | [
"Apache-2.0"
] | 7 | 2017-02-17T08:54:26.000Z | 2022-03-10T20:57:23.000Z | nipype/interfaces/fsl/tests/test_auto_BET.py | moloney/nipype | a7a9c85c79cb1412ba03406074f83200447ef50b | [
"Apache-2.0"
] | 1 | 2016-04-25T15:07:09.000Z | 2016-04-25T15:07:09.000Z | nipype/interfaces/fsl/tests/test_auto_BET.py | moloney/nipype | a7a9c85c79cb1412ba03406074f83200447ef50b | [
"Apache-2.0"
] | 2 | 2017-09-23T16:22:00.000Z | 2019-08-01T14:18:52.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..preprocess import BET
def test_BET_inputs():
input_map = dict(
args=dict(argstr='%s', ),
center=dict(
argstr='-c %s',
units='voxels',
),
environ=dict(
... | 30.754545 | 67 | 0.496896 | 336 | 3,383 | 4.8125 | 0.303571 | 0.123686 | 0.082251 | 0.099567 | 0.400742 | 0.400742 | 0.371058 | 0.337662 | 0.337662 | 0.337662 | 0 | 0.008593 | 0.346438 | 3,383 | 109 | 68 | 31.036697 | 0.72275 | 0.015075 | 0 | 0.375 | 1 | 0 | 0.153754 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.019231 | false | 0 | 0.019231 | 0 | 0.038462 | 0 | 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 |
13384f1ba745817c0ab5fb22c7b2b44ee2941dab | 3,046 | py | Python | src/main/resources/cloudfoundry/discover-services-metadata.py | xebialabs-community/xld-cloud-foundry-plugin | ab1b5a9d6c5cbce607011afbc5d64beacc5b0405 | [
"MIT"
] | 1 | 2015-01-05T14:31:52.000Z | 2015-01-05T14:31:52.000Z | src/main/resources/cloudfoundry/discover-services-metadata.py | xebialabs-community/xld-cloud-foundry-plugin | ab1b5a9d6c5cbce607011afbc5d64beacc5b0405 | [
"MIT"
] | 2 | 2017-06-01T16:02:08.000Z | 2017-12-12T22:35:33.000Z | src/main/resources/cloudfoundry/discover-services-metadata.py | xebialabs-community/xld-cloud-foundry-plugin | ab1b5a9d6c5cbce607011afbc5d64beacc5b0405 | [
"MIT"
] | 3 | 2015-01-19T10:25:33.000Z | 2016-12-08T17:09:15.000Z | #
# Copyright 2019 XEBIALABS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli... | 49.129032 | 462 | 0.747538 | 392 | 3,046 | 5.757653 | 0.466837 | 0.03899 | 0.035445 | 0.024812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007037 | 0.16021 | 3,046 | 61 | 463 | 49.934426 | 0.875293 | 0.343073 | 0 | 0 | 0 | 0 | 0.246107 | 0.025113 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02381 | 0.119048 | null | null | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13395374466aa5007de0a56acaafc11c4ada4b6f | 5,636 | py | Python | grades.py | kjiwa/grade-statistics | f94c39fb6f8ddc4347df10a1ddad4db8c793d323 | [
"MIT"
] | 1 | 2020-10-25T21:25:49.000Z | 2020-10-25T21:25:49.000Z | grades.py | kjiwa/grade-statistics | f94c39fb6f8ddc4347df10a1ddad4db8c793d323 | [
"MIT"
] | null | null | null | grades.py | kjiwa/grade-statistics | f94c39fb6f8ddc4347df10a1ddad4db8c793d323 | [
"MIT"
] | null | null | null | """A module that computes statistics for grades received in a set of courses."""
import argparse
import collections
import csv
import random
import matplotlib.pyplot
import numpy
import tabulate
_Course = collections.namedtuple('Course', ['code', 'grades'])
def _course_cmp(x, y):
"""A comparator function for cou... | 31.311111 | 89 | 0.623847 | 737 | 5,636 | 4.667571 | 0.283582 | 0.05814 | 0.011337 | 0.010465 | 0.210174 | 0.153198 | 0.121512 | 0.117151 | 0.053488 | 0 | 0 | 0.024099 | 0.271114 | 5,636 | 179 | 90 | 31.486034 | 0.813291 | 0.009936 | 0 | 0.122449 | 0 | 0 | 0.140888 | 0.007044 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
133be0d942c3b60e9f3fc7274cd2b0ee28dcb3de | 1,463 | py | Python | build/scripts-3.6/blat.py | summerela/ShortStack | 1e0655705858e125c67c2ef70b44b9e0d1d5ec65 | [
"MIT"
] | null | null | null | build/scripts-3.6/blat.py | summerela/ShortStack | 1e0655705858e125c67c2ef70b44b9e0d1d5ec65 | [
"MIT"
] | null | null | null | build/scripts-3.6/blat.py | summerela/ShortStack | 1e0655705858e125c67c2ef70b44b9e0d1d5ec65 | [
"MIT"
] | null | null | null | import mysql.connector
cnx = mysql.connector.connect(user='nanostring', password = 'user', host='Loki', database='BISProd')
cursor = cnx.cursor()
import os,sys
from BIS_py import percentID,generate_coords
genome = 'hg38'
fname = sys.argv[1]
seqs = {}
f=open(fname,'r')
out = open('to_blat.fsa','w')
for line in f:
... | 26.6 | 100 | 0.629528 | 226 | 1,463 | 4.013274 | 0.411504 | 0.030871 | 0.017641 | 0.022051 | 0.083793 | 0.050717 | 0.050717 | 0 | 0 | 0 | 0 | 0.006612 | 0.172932 | 1,463 | 54 | 101 | 27.092593 | 0.742975 | 0 | 0 | 0.170213 | 1 | 0 | 0.196856 | 0.037594 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.021277 | 0.06383 | 0 | 0.06383 | 0 | 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 |
133f2f297f1419decf5e500f5d262c8e630dc34f | 2,326 | py | Python | tests/test_views/test_record.py | tulibraries/combine | eb100ea17193d65485aa6c4a7f05a41b4cab7515 | [
"MIT"
] | 1 | 2019-08-20T19:52:32.000Z | 2019-08-20T19:52:32.000Z | tests/test_views/test_record.py | tulibraries/combine | eb100ea17193d65485aa6c4a7f05a41b4cab7515 | [
"MIT"
] | 2 | 2019-08-29T17:40:31.000Z | 2019-09-09T15:31:37.000Z | tests/test_views/test_record.py | tulibraries/combine | eb100ea17193d65485aa6c4a7f05a41b4cab7515 | [
"MIT"
] | null | null | null | from django.test import Client, TestCase
from core.models import ValidationScenario
from tests.utils import TestConfiguration, TEST_DOCUMENT
class RecordTestCase(TestCase):
def setUp(self):
self.config = TestConfiguration()
self.client = Client()
self.client.force_login(self.config.user)
... | 46.52 | 111 | 0.659501 | 278 | 2,326 | 5.352518 | 0.248201 | 0.087366 | 0.11828 | 0.09879 | 0.469758 | 0.40457 | 0.40457 | 0.379032 | 0.331989 | 0.275538 | 0 | 0.002734 | 0.213672 | 2,326 | 49 | 112 | 47.469388 | 0.810826 | 0 | 0 | 0.051282 | 0 | 0.025641 | 0.273001 | 0.140585 | 0 | 0 | 0 | 0 | 0.205128 | 1 | 0.205128 | false | 0.025641 | 0.076923 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1341ac4d38b8fda3bf9982fdf4b559b6ffc792e4 | 7,383 | py | Python | sdk/python/pulumi_azure_native/media/v20200201preview/media_graph.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/media/v20200201preview/media_graph.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/media/v20200201preview/media_graph.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # 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... | 40.565934 | 372 | 0.63592 | 809 | 7,383 | 5.526576 | 0.18665 | 0.044285 | 0.031313 | 0.033997 | 0.410199 | 0.322747 | 0.256989 | 0.193693 | 0.088571 | 0.05189 | 0 | 0.006067 | 0.263308 | 7,383 | 181 | 373 | 40.790055 | 0.815959 | 0.198971 | 0 | 0.147826 | 1 | 0 | 0.182307 | 0.068768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104348 | false | 0.008696 | 0.069565 | 0.017391 | 0.278261 | 0 | 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 |
1345a7b0d13023e0b6866110976ebf517603c3ec | 11,037 | py | Python | simulator.py | giridharavinash/Extreme-Tic-Tac-Toe | 848def83d4b05acf64f31d5777385ec2074507da | [
"MIT"
] | null | null | null | simulator.py | giridharavinash/Extreme-Tic-Tac-Toe | 848def83d4b05acf64f31d5777385ec2074507da | [
"MIT"
] | null | null | null | simulator.py | giridharavinash/Extreme-Tic-Tac-Toe | 848def83d4b05acf64f31d5777385ec2074507da | [
"MIT"
] | 1 | 2019-03-02T09:52:41.000Z | 2019-03-02T09:52:41.000Z | import sys
import random
import signal
import time
import copy
import traceback
import team59
TIME = 16
MAX_PTS = 68
class TimedOutExc(Exception):
pass
def handler(signum, frame):
#print 'Signal handler called with signal', signum
raise TimedOutExc()
class Random_Player():
def __init__(self):
pass
def move(... | 29.432 | 142 | 0.61176 | 1,981 | 11,037 | 3.298334 | 0.109036 | 0.009795 | 0.018978 | 0.020202 | 0.423018 | 0.34022 | 0.29446 | 0.242118 | 0.223141 | 0.212886 | 0 | 0.046251 | 0.21446 | 11,037 | 374 | 143 | 29.510695 | 0.707382 | 0.143698 | 0 | 0.381443 | 0 | 0.058419 | 0.074471 | 0.004143 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010309 | 0.024055 | null | null | 0.109966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1347b887819e92cb3187f76f5288ba75f36d35de | 889 | py | Python | src/lithopscloud/modules/gen2/image.py | Cohen-J-Omer/lithopscloud | bc897ae3952e0faca42581846a8b3169a0b5b49f | [
"Apache-2.0"
] | 2 | 2021-08-22T04:36:34.000Z | 2021-11-08T16:02:57.000Z | src/lithopscloud/modules/gen2/image.py | Cohen-J-Omer/lithopscloud | bc897ae3952e0faca42581846a8b3169a0b5b49f | [
"Apache-2.0"
] | null | null | null | src/lithopscloud/modules/gen2/image.py | Cohen-J-Omer/lithopscloud | bc897ae3952e0faca42581846a8b3169a0b5b49f | [
"Apache-2.0"
] | 1 | 2021-08-22T08:45:19.000Z | 2021-08-22T08:45:19.000Z | from lithopscloud.modules.config_builder import ConfigBuilder, update_decorator, spinner
from typing import Any, Dict
from lithopscloud.modules.utils import find_obj, find_default
class ImageConfig(ConfigBuilder):
def __init__(self, base_config: Dict[str, Any]) -> None:
super().__init__(base_config)
... | 35.56 | 147 | 0.71766 | 118 | 889 | 5.118644 | 0.5 | 0.099338 | 0.076159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028689 | 0.176603 | 889 | 24 | 148 | 37.041667 | 0.796448 | 0 | 0 | 0 | 0 | 0 | 0.176802 | 0.088964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 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 |
1354fdbbd1e7efdeaa6b5a009d465cf64c03e5f9 | 1,244 | py | Python | tests/metadata/test_dist_info.py | sputt/qer | ad6a09feddd56059cba5147b0d8341975149e1e6 | [
"MIT"
] | 6 | 2019-02-19T11:54:45.000Z | 2019-07-01T20:17:43.000Z | tests/metadata/test_dist_info.py | sputt/req-compile | d6a54bb4fecd2de7f380e2c8e3ab602ecaa1cb18 | [
"MIT"
] | 9 | 2019-11-04T19:25:19.000Z | 2021-12-20T21:48:54.000Z | tests/metadata/test_dist_info.py | sputt/qer | ad6a09feddd56059cba5147b0d8341975149e1e6 | [
"MIT"
] | 1 | 2020-08-20T20:31:28.000Z | 2020-08-20T20:31:28.000Z | import os
from req_compile.metadata.dist_info import _find_dist_info_metadata
def test_wheel_with_vendored():
"""Verify that a wheel that contains vendored dist-info directories uses the correct one"""
namelist_raw = open(
os.path.join(os.path.dirname(__file__), "pex-listing.txt")
).readlines()
... | 29.619048 | 95 | 0.655949 | 165 | 1,244 | 4.642424 | 0.412121 | 0.146214 | 0.250653 | 0.156658 | 0.456919 | 0.373368 | 0.211488 | 0.211488 | 0.133159 | 0.133159 | 0 | 0.006116 | 0.211415 | 1,244 | 41 | 96 | 30.341463 | 0.77472 | 0.155949 | 0 | 0.25 | 0 | 0 | 0.24178 | 0.15087 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
1355e1cafeed0d479ee857c1442eab9af4293e71 | 4,840 | py | Python | bench.py | claytonbrown/simhash-db-py | f9feca5b09cf094c65548c53ad596ab07cf41639 | [
"MIT"
] | 51 | 2015-01-12T02:10:29.000Z | 2021-09-25T08:51:37.000Z | bench.py | claytonbrown/simhash-db-py | f9feca5b09cf094c65548c53ad596ab07cf41639 | [
"MIT"
] | 5 | 2015-01-15T15:42:37.000Z | 2018-02-18T06:46:51.000Z | bench.py | claytonbrown/simhash-db-py | f9feca5b09cf094c65548c53ad596ab07cf41639 | [
"MIT"
] | 21 | 2015-05-01T15:06:39.000Z | 2021-07-29T01:12:37.000Z | #! /usr/bin/env python
'''This is a utility to run a benchmark against a backend'''
import os
import time
import psutil
import random
import argparse
from simhash_db import Client, GeneralException
parser = argparse.ArgumentParser(description='Run benchmarks on simhash_db')
parser.add_argument('--count', type=int, d... | 36.119403 | 79 | 0.646074 | 712 | 4,840 | 4.331461 | 0.280899 | 0.032101 | 0.038586 | 0.017834 | 0.369001 | 0.30415 | 0.289235 | 0.289235 | 0.289235 | 0.261997 | 0 | 0.020049 | 0.237397 | 4,840 | 133 | 80 | 36.390977 | 0.815497 | 0.085537 | 0 | 0.295455 | 0 | 0.045455 | 0.225593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.079545 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
135cfc2965cdf05086e5ddc1337299a407e97920 | 662 | py | Python | data_loader/data_loaders.py | arslansadiq/Combustion-Model | a193008f4285d792662155675ed75dcff1add61c | [
"MIT"
] | 3 | 2019-03-26T14:12:10.000Z | 2020-08-11T05:14:08.000Z | data_loader/data_loaders.py | arslansadiq/Combustion-Model | a193008f4285d792662155675ed75dcff1add61c | [
"MIT"
] | null | null | null | data_loader/data_loaders.py | arslansadiq/Combustion-Model | a193008f4285d792662155675ed75dcff1add61c | [
"MIT"
] | 1 | 2019-03-12T19:28:49.000Z | 2019-03-12T19:28:49.000Z | from base import BaseDataLoader
from data_loader.combustion_data import combustion_data
class CombustiontDataLoader(BaseDataLoader):
#Combustion data loading demo using BaseDataLoader
def __init__(self, data_dir, batch_size, shuffle, validation_split, num_workers, training=True):
... | 36.777778 | 117 | 0.696375 | 70 | 662 | 6.271429 | 0.414286 | 0.159453 | 0.075171 | 0.113895 | 0.387244 | 0.387244 | 0.186788 | 0 | 0 | 0 | 0 | 0 | 0.238671 | 662 | 18 | 117 | 36.777778 | 0.871032 | 0.149547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1360ab0f7eac02c361baf9bea73e94f0130e8706 | 2,074 | py | Python | pdmreader/models.py | bianjp/pdmreader | efb77df7239de1736b7d82e7987101c984996125 | [
"MIT"
] | 5 | 2018-09-01T22:58:13.000Z | 2020-02-27T17:04:28.000Z | pdmreader/models.py | bianjp/pdmreader | efb77df7239de1736b7d82e7987101c984996125 | [
"MIT"
] | null | null | null | pdmreader/models.py | bianjp/pdmreader | efb77df7239de1736b7d82e7987101c984996125 | [
"MIT"
] | 3 | 2019-04-06T12:47:17.000Z | 2019-12-17T10:58:07.000Z | from dataclasses import dataclass
from typing import List, Optional
import re
class TypeUtil:
numeric_types = ('number', 'numeric', 'float', 'double', 'integer', 'decimal')
string_types = ('char', 'clob')
@staticmethod
def is_numeric(data_type):
for type_keyword in TypeUtil.numeric_types:
... | 19.752381 | 82 | 0.611379 | 249 | 2,074 | 4.955823 | 0.26506 | 0.079417 | 0.042139 | 0.048622 | 0.316045 | 0.246353 | 0.13128 | 0.079417 | 0.079417 | 0.079417 | 0 | 0 | 0.289778 | 2,074 | 104 | 83 | 19.942308 | 0.837746 | 0.022662 | 0 | 0.43038 | 0 | 0 | 0.033103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0 | 0.037975 | 0.037975 | 0.772152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13648781d24fdc2a5d94aff0811c80750e62eafd | 3,405 | py | Python | 13392_CODES/Attachments/m05_02_functions_params.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | 4 | 2019-05-04T00:33:25.000Z | 2021-05-29T20:37:59.000Z | 13392_CODES/Attachments/m05_02_functions_params.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | null | null | null | 13392_CODES/Attachments/m05_02_functions_params.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | 3 | 2020-05-05T13:14:28.000Z | 2022-02-03T16:18:37.000Z | from operator import itemgetter
from pprint import pprint
def print_header(name, account_no, balance):
print("name:", name, " account:", account_no, " original balance:", "$" + str(balance))
def read_charges(charges_file):
charges = list()
charges_dict = dict()
for charge_stri... | 33.382353 | 107 | 0.582379 | 387 | 3,405 | 4.870801 | 0.196382 | 0.153846 | 0.059416 | 0.07321 | 0.424403 | 0.276393 | 0.205305 | 0.205305 | 0.17878 | 0.17878 | 0 | 0.024476 | 0.244053 | 3,405 | 101 | 108 | 33.712871 | 0.707848 | 0.043465 | 0 | 0.285714 | 0 | 0.031746 | 0.248096 | 0.021891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.031746 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
13661b444e154b9402cdd5d28212940d2560c5cb | 24,077 | py | Python | core/script/cli/cli.py | sbworth/getnoc | a9a5647df31822062db3db7afe7ae1c005d166f7 | [
"BSD-3-Clause"
] | null | null | null | core/script/cli/cli.py | sbworth/getnoc | a9a5647df31822062db3db7afe7ae1c005d166f7 | [
"BSD-3-Clause"
] | null | null | null | core/script/cli/cli.py | sbworth/getnoc | a9a5647df31822062db3db7afe7ae1c005d166f7 | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------
# CLI FSM
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Python modules
impor... | 38.64687 | 98 | 0.543174 | 2,564 | 24,077 | 4.926677 | 0.138846 | 0.039186 | 0.026124 | 0.01425 | 0.363521 | 0.273116 | 0.23583 | 0.199018 | 0.17139 | 0.17139 | 0 | 0.003423 | 0.356897 | 24,077 | 622 | 99 | 38.709003 | 0.812387 | 0.061469 | 0 | 0.275591 | 0 | 0 | 0.057548 | 0.002063 | 0 | 0 | 0 | 0.003215 | 0 | 1 | 0.025591 | false | 0.051181 | 0.025591 | 0.001969 | 0.090551 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1375c2d833ca2b1dec40e4e18e6825d5239aa48e | 488 | py | Python | anchore_engine/subsys/events/services.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | anchore_engine/subsys/events/services.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | anchore_engine/subsys/events/services.py | bjwschaap/anchore-engine | 0aba1d12d79f63c5919ad301cecc5bd5cc09325a | [
"Apache-2.0"
] | null | null | null | from .common import Event
_service_resource_type = 'service'
class ServiceOrphanedEvent(Event):
__event_type__ = 'service_orphaned'
__resource_type__ = _service_resource_type
def __init__(self, user_id, name, host, url, cause):
super(ServiceOrphanedEvent, self).__init__(user_id=user_id, level='E... | 37.538462 | 127 | 0.672131 | 54 | 488 | 5.5 | 0.444444 | 0.121212 | 0.127946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223361 | 488 | 12 | 128 | 40.666667 | 0.783641 | 0 | 0 | 0 | 0 | 0 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13798e500bf2a01c3d073473db508c9e98b7166b | 3,119 | py | Python | eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/mask_quality.py | psnehal/MethylSig | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | [
"CC-BY-3.0"
] | null | null | null | eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/mask_quality.py | psnehal/MethylSig | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | [
"CC-BY-3.0"
] | null | null | null | eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/mask_quality.py | psnehal/MethylSig | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | [
"CC-BY-3.0"
] | null | null | null | #!/afs/bx.psu.edu/project/pythons/py2.7-linux-x86_64-ucs2/bin/python2.7
"""
Masks an AXT or MAF file based on quality (from a binned_array) and
outputs AXT or MAF.
Binned array form of quality scores can be generated with `qv_to_bqv.py`.
usage: %prog input output
-i, --input=N: Format of input (axt or maf)
-... | 31.505051 | 104 | 0.612376 | 379 | 3,119 | 4.941953 | 0.39314 | 0.026161 | 0.059797 | 0.018153 | 0.130272 | 0.086492 | 0.052322 | 0.052322 | 0.052322 | 0.052322 | 0 | 0.013228 | 0.272844 | 3,119 | 98 | 105 | 31.826531 | 0.81261 | 0.046489 | 0 | 0.131148 | 0 | 0 | 0.044147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114754 | null | null | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
137cb0a45ddce2785b9367302548c64fa1527e8d | 11,318 | py | Python | simulation_2DoF_Arm_physics.py | ricardodeazambuja/IJCNN2017 | 817165185de6152041bbaf21cbad6d12fb58f064 | [
"MIT"
] | 3 | 2020-07-18T14:30:15.000Z | 2021-07-29T12:52:51.000Z | simulation_2DoF_Arm_physics.py | ricardodeazambuja/IJCNN2017 | 817165185de6152041bbaf21cbad6d12fb58f064 | [
"MIT"
] | 1 | 2021-01-18T06:06:02.000Z | 2021-01-18T09:39:56.000Z | simulation_2DoF_Arm_physics.py | ricardodeazambuja/IJCNN2017 | 817165185de6152041bbaf21cbad6d12fb58f064 | [
"MIT"
] | null | null | null |
# 2 DOF Simulator module
# Strongly based on http://www.gribblelab.org/compneuro/index.html
import numpy
# forward kinematics
def joints_to_hand(A,aparams):
"""
Given joint angles A=(a1,a2) and anthropometric params aparams,
returns hand position H=(hx,hy) and elbow position E=(ex,ey)
Note1: A must b... | 38.760274 | 167 | 0.591094 | 1,974 | 11,318 | 3.354103 | 0.196049 | 0.011479 | 0.008609 | 0.005437 | 0.485123 | 0.440115 | 0.426975 | 0.40734 | 0.377133 | 0.354176 | 0 | 0.070506 | 0.226807 | 11,318 | 292 | 168 | 38.760274 | 0.686093 | 0.247482 | 0 | 0.395062 | 0 | 0 | 0.037255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067901 | null | null | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1381bf4388d84d8a3397209a9e9a57bde263ff30 | 1,198 | py | Python | demos/namegens/combine.py | quetzle/gridironglory | 6af1c5bc09f4129c6922351fe225a4bccd33dd04 | [
"MIT"
] | null | null | null | demos/namegens/combine.py | quetzle/gridironglory | 6af1c5bc09f4129c6922351fe225a4bccd33dd04 | [
"MIT"
] | null | null | null | demos/namegens/combine.py | quetzle/gridironglory | 6af1c5bc09f4129c6922351fe225a4bccd33dd04 | [
"MIT"
] | null | null | null | import random
def length(fname):
with open(fname) as f:
for i, l in enumerate(f):
pass
return i
print 'First names:', length('names.txt') + 1
print 'Last names:', length('last.txt') + 1
print 'Cities:', length('cities.txt') + 1
print 'Team names:', length('teams.txt') + 1
print 'Positions:... | 30.717949 | 69 | 0.605175 | 183 | 1,198 | 3.95082 | 0.256831 | 0.027663 | 0.096819 | 0.138313 | 0.138313 | 0.138313 | 0 | 0 | 0 | 0 | 0 | 0.010194 | 0.181135 | 1,198 | 38 | 70 | 31.526316 | 0.726809 | 0 | 0 | 0.057143 | 0 | 0 | 0.179466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.028571 | null | null | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
138236418e643e8d15fac6802b37743b1cf66ac3 | 1,445 | py | Python | 24_Day_Statistics/NumPy Statistical Functions with Example.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 24_Day_Statistics/NumPy Statistical Functions with Example.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | 24_Day_Statistics/NumPy Statistical Functions with Example.py | diegofregolente/30-Days-Of-Python | e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import statistics
import matplotlib.pyplot as plt
import seaborn as sns
np_normal_dis = np.random.normal(5, 0.5, 100)
print(np_normal_dis.min())
print(np_normal_dis.max())
print(np_normal_dis.mean())
# print(np_normal_dis.median()) # not working
print(np_normal_dis.std())
two_dimension_array = np.... | 28.9 | 92 | 0.715571 | 271 | 1,445 | 3.660517 | 0.261993 | 0.11996 | 0.166331 | 0.096774 | 0.430444 | 0.351815 | 0.290323 | 0.290323 | 0.290323 | 0.15121 | 0 | 0.04465 | 0.101038 | 1,445 | 49 | 93 | 29.489796 | 0.719015 | 0.113495 | 0 | 0.054054 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.135135 | 0 | 0.135135 | 0.675676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
13877f217f0ecdd3299bcbe8e879dbdfd77cb3a5 | 3,697 | py | Python | FWCore/GuiBrowsers/python/Vispa/Gui/SimpleDraggableTreeWidget.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | FWCore/GuiBrowsers/python/Vispa/Gui/SimpleDraggableTreeWidget.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | FWCore/GuiBrowsers/python/Vispa/Gui/SimpleDraggableTreeWidget.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | from PyQt4.QtCore import QMimeData, QByteArray, Qt, QSize, QPoint, QVariant,SIGNAL
from PyQt4.QtGui import QTreeWidget, QImage, QDrag, QPixmap, QIcon, QPalette, QColor,QTreeWidgetItem
import logging
class SimpleDraggableTreeWidget(QTreeWidget):
""" TreeWidget suitable for holding a list of strings.
"""
MI... | 38.510417 | 126 | 0.62429 | 374 | 3,697 | 6.088235 | 0.409091 | 0.036891 | 0.020202 | 0.023715 | 0.054458 | 0.032499 | 0.032499 | 0 | 0 | 0 | 0 | 0.006336 | 0.274276 | 3,697 | 96 | 127 | 38.510417 | 0.842341 | 0.041385 | 0 | 0.033898 | 0 | 0 | 0.018705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050847 | 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 |
138e269210f2a60ca7c4bbb22563b2b141341d70 | 1,308 | py | Python | cryptsenal/vigenere.py | AoWangPhilly/cryptsenal | d2717a0e8ba0ec01a0401f8164b55df04de567cd | [
"MIT"
] | null | null | null | cryptsenal/vigenere.py | AoWangPhilly/cryptsenal | d2717a0e8ba0ec01a0401f8164b55df04de567cd | [
"MIT"
] | 4 | 2019-12-28T19:33:07.000Z | 2019-12-28T19:34:29.000Z | cryptsenal/vigenere.py | AoWangPhilly/cryptsenal | d2717a0e8ba0ec01a0401f8164b55df04de567cd | [
"MIT"
] | null | null | null | """
description: vigenere cipher
author: ao wang
date: june 16, 2020
"""
from cryptsenal.cipher import Cipher
class Vigenere(Cipher):
"""The Vigenere Cipher class
:param text: the plain/cipher text
:type text: str
:param key: the cipher key
:type key: str
"""
def __init__(self, text, ke... | 25.647059 | 101 | 0.60474 | 156 | 1,308 | 4.942308 | 0.352564 | 0.045396 | 0.036316 | 0.038911 | 0.360571 | 0.360571 | 0.360571 | 0.360571 | 0.360571 | 0.360571 | 0 | 0.006224 | 0.262997 | 1,308 | 50 | 102 | 26.16 | 0.793568 | 0.277523 | 0 | 0.315789 | 0 | 0 | 0.077556 | 0.032902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.052632 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
138fa902e03dcc50fe19d1f09f64399ccb797466 | 2,012 | py | Python | flocker/common/process.py | stackriot/flocker | eaa586248986d7cd681c99c948546c2b507e44de | [
"Apache-2.0"
] | 2,690 | 2015-01-02T11:12:11.000Z | 2022-03-15T15:41:51.000Z | flocker/common/process.py | stackriot/flocker | eaa586248986d7cd681c99c948546c2b507e44de | [
"Apache-2.0"
] | 2,102 | 2015-01-02T18:49:40.000Z | 2021-01-21T18:49:47.000Z | flocker/common/process.py | stackriot/flocker | eaa586248986d7cd681c99c948546c2b507e44de | [
"Apache-2.0"
] | 333 | 2015-01-10T01:44:01.000Z | 2022-03-08T15:03:04.000Z | # Copyright ClusterHQ Inc. See LICENSE file for details.
"""
Subprocess utilities.
"""
from subprocess import PIPE, STDOUT, CalledProcessError, Popen
from eliot import Message, start_action
from pyrsistent import PClass, field
class _CalledProcessError(CalledProcessError):
"""
Just like ``CalledProcessErro... | 31.4375 | 79 | 0.655567 | 230 | 2,012 | 5.647826 | 0.430435 | 0.036952 | 0.034642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246024 | 2,012 | 63 | 80 | 31.936508 | 0.856295 | 0.303678 | 0 | 0 | 0 | 0 | 0.033258 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
139489563351377c196291d45a363c4e3b0a0307 | 1,941 | py | Python | registrations/admin.py | IFRCGo/go-api | 6acd84df479f0cf46553029ababa1e7753f86550 | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | registrations/admin.py | IFRCGo/go-api | 6acd84df479f0cf46553029ababa1e7753f86550 | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | registrations/admin.py | IFRCGo/go-api | 6acd84df479f0cf46553029ababa1e7753f86550 | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | from django.contrib import admin
from api.logger import logger
from api.models import User
import registrations.models as models
from reversion_compare.admin import CompareVersionAdmin
class PendingAdmin(CompareVersionAdmin):
search_fields = ('user__username', 'user__email', 'admin_contact_1', 'admin_contact_2')
... | 35.290909 | 91 | 0.663575 | 237 | 1,941 | 5.194093 | 0.35865 | 0.038993 | 0.029245 | 0.029245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00538 | 0.2339 | 1,941 | 54 | 92 | 35.944444 | 0.822461 | 0.020608 | 0 | 0.047619 | 0 | 0 | 0.210637 | 0.034229 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.119048 | 0.071429 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1395fc5c077b23678d25860e29ab33d453dab670 | 246 | py | Python | training/Euler/4.py | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 68 | 2017-10-08T04:44:23.000Z | 2019-08-06T20:15:02.000Z | training/Euler/4.py | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | null | null | null | training/Euler/4.py | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 18 | 2017-05-31T02:52:23.000Z | 2019-07-05T09:18:34.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def isPalindrome(n):
return str(n) == str(n)[::-1]
ans = 0
for i in range(100, 1000):
for j in range(i, 1000):
if (isPalindrome(i * j)):
ans = max(ans, i * j)
print(ans)
| 18.923077 | 33 | 0.52439 | 41 | 246 | 3.146341 | 0.609756 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078212 | 0.272358 | 246 | 12 | 34 | 20.5 | 0.642458 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
1396bccb91bf5d1aa6d0e602f86e2ad4ab84e246 | 2,051 | py | Python | toontown/coghq/DistributedBattleFactory.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | toontown/coghq/DistributedBattleFactory.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | toontown/coghq/DistributedBattleFactory.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | from panda3d.core import *
from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle
from direct.directnotify import DirectNotifyGlobal
from toontown.toon import TTEmote
from otp.avatar import Emote
from toontown.battle import SuitBattleGloba... | 41.02 | 116 | 0.745002 | 195 | 2,051 | 7.764103 | 0.420513 | 0.047556 | 0.027741 | 0.025099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002341 | 0.166748 | 2,051 | 49 | 117 | 41.857143 | 0.883558 | 0 | 0 | 0.045455 | 0 | 0 | 0.090687 | 0.024378 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.340909 | 0 | 0.477273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13981f074f67b6e9d0aae355528b4b5b372c8cc0 | 1,410 | py | Python | src/__init__.py | alexshelto/DD-PlayerFinder | 7c8e9a6df9135eef12120af7c73fe11e10d67403 | [
"MIT"
] | 3 | 2020-02-11T16:32:06.000Z | 2020-04-21T16:37:31.000Z | src/__init__.py | alexshelto/DD-PlayerFinder | 7c8e9a6df9135eef12120af7c73fe11e10d67403 | [
"MIT"
] | 15 | 2020-02-11T16:31:18.000Z | 2022-03-12T00:15:55.000Z | src/__init__.py | alexshelto/DD-PlayerFinder | 7c8e9a6df9135eef12120af7c73fe11e10d67403 | [
"MIT"
] | 2 | 2020-02-11T16:39:12.000Z | 2020-02-11T18:07:02.000Z | # init.py file
# file gathers all of the templates and forms to create the flask application
# the function of this file is called in the exported flask app file: run.py
#
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from... | 27.115385 | 109 | 0.765957 | 200 | 1,410 | 5.275 | 0.38 | 0.042654 | 0.037915 | 0.036019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173759 | 1,410 | 51 | 110 | 27.647059 | 0.905579 | 0.346809 | 0 | 0 | 0 | 0 | 0.019912 | 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 |
13983dbf5f8ad0d5aef123cf9ba82bd166d5416a | 275 | py | Python | projetinhos/ex#6 - dobro, triplo e raiz quadrada.py | dani-fn/Projetinhos_Python | 692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb | [
"MIT"
] | null | null | null | projetinhos/ex#6 - dobro, triplo e raiz quadrada.py | dani-fn/Projetinhos_Python | 692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb | [
"MIT"
] | null | null | null | projetinhos/ex#6 - dobro, triplo e raiz quadrada.py | dani-fn/Projetinhos_Python | 692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb | [
"MIT"
] | null | null | null | print('Me de um valor e eu te darei o seu dobro, triplo e sua raiz quadrada')
n = int(input('Digite um número'))
dob = n * 2
tri = n * 3
sr = pow(n, (1/2))
print('O dobro de {} é {} \nO triplo de {} é {} \nA raiz quadrada de {} é {:.6f}'.format(n, dob, n, tri, n, sr))
| 39.285714 | 113 | 0.578182 | 56 | 275 | 2.839286 | 0.589286 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.236364 | 275 | 6 | 114 | 45.833333 | 0.733333 | 0 | 0 | 0 | 0 | 0.166667 | 0.583643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
139bf9520a662512f247eb58f87fce889d4c95bc | 950 | py | Python | src/sentry/utils/raven.py | arsh-co/sentry | 7a83a7e8a13047a9471756d679e2deb596cc2ca1 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/utils/raven.py | arsh-co/sentry | 7a83a7e8a13047a9471756d679e2deb596cc2ca1 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/utils/raven.py | arsh-co/sentry | 7a83a7e8a13047a9471756d679e2deb596cc2ca1 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, print_function
from django.conf import settings
from raven.contrib.django.client import DjangoClient
from sentry.coreapi import insert_data_to_database
from sentry.event_manager import EventManager
class SentryInternalClient(DjangoClient):
def is_enabled(self):
if... | 32.758621 | 79 | 0.658947 | 112 | 950 | 5.410714 | 0.633929 | 0.033003 | 0.039604 | 0.066007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272632 | 950 | 28 | 80 | 33.928571 | 0.87699 | 0.082105 | 0 | 0 | 0 | 0 | 0.070196 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0 | 0.47619 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
139d2822aa23d2bea578f87b24bfff0ba5d87c0e | 2,566 | py | Python | modules/data_handler/instances/experiment.py | tamslo/koala | 9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c | [
"MIT"
] | null | null | null | modules/data_handler/instances/experiment.py | tamslo/koala | 9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c | [
"MIT"
] | null | null | null | modules/data_handler/instances/experiment.py | tamslo/koala | 9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c | [
"MIT"
] | null | null | null | from time import localtime
from services import get_services
from .base_instance import BaseInstance
class Experiment(BaseInstance):
def setup(self):
self.content["status"] = self.constants["experiment"]["WAITING"]
super().setup()
def action_id(self, action):
return self.content["pipel... | 35.638889 | 89 | 0.637178 | 304 | 2,566 | 5.1875 | 0.236842 | 0.090679 | 0.096386 | 0.066582 | 0.199746 | 0.152188 | 0.126823 | 0.071021 | 0.071021 | 0 | 0 | 0.002024 | 0.22993 | 2,566 | 71 | 90 | 36.140845 | 0.796053 | 0 | 0 | 0.122807 | 0 | 0 | 0.113016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0.052632 | 0.017544 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
139f1d4b2c15ee12e70b687f027c59364b4a9d32 | 276 | py | Python | brml/myzeros.py | herupraptono/pybrml | 42fa70f17c303943447816234a87b3c5815f12bb | [
"CNRI-Python"
] | 136 | 2015-02-15T15:10:56.000Z | 2022-03-09T10:08:17.000Z | brml/myzeros.py | herupraptono/pybrml | 42fa70f17c303943447816234a87b3c5815f12bb | [
"CNRI-Python"
] | null | null | null | brml/myzeros.py | herupraptono/pybrml | 42fa70f17c303943447816234a87b3c5815f12bb | [
"CNRI-Python"
] | 43 | 2015-02-15T15:11:25.000Z | 2021-07-16T15:08:10.000Z | #!/usr/bin/env python
"""
same as myzeros() in MATLAB
MYZEROS same as zeros(x) but if x is a scalar interprets as zeros([x 1])
"""
import numpy as np
def myzeros(x):
print "x =", x
x = np.array(x)
if x.size > 1:
out=np.zeros(x)
else:
out=np.zeros((x,1))
return out
| 16.235294 | 72 | 0.634058 | 55 | 276 | 3.181818 | 0.509091 | 0.137143 | 0.091429 | 0.125714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 0.202899 | 276 | 16 | 73 | 17.25 | 0.781818 | 0.072464 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13a0ece67c5bc1bed62791d69cc5e5d8e13811ff | 4,833 | py | Python | source/automated_test/bemio/data_structures/wave_excitation.py | NREL/OpenWARP | ca49c4cbde17e0cead69bd9e55a81d5c0fafe4df | [
"Apache-2.0"
] | 22 | 2015-06-22T07:35:04.000Z | 2021-07-23T05:10:09.000Z | source/automated_test/bemio/data_structures/wave_excitation.py | yuyihsiang/OpenWARP | d3f8c9c377e5dbe4f838888667f37b975b924c7c | [
"Apache-2.0"
] | 9 | 2015-07-30T20:01:35.000Z | 2020-08-28T17:29:18.000Z | Contest_Output/Test_Case_Implementations/Part1/source/automated_test/bemio/data_structures/wave_excitation.py | NREL/OpenWARP | ca49c4cbde17e0cead69bd9e55a81d5c0fafe4df | [
"Apache-2.0"
] | 13 | 2016-04-01T07:45:27.000Z | 2021-04-06T08:33:33.000Z | import numpy as np
from scipy import interpolate
from progressbar import ProgressBar, Bar, Percentage
class ImpulseResponseFunction(object):
'''Internal bemio object to contain impulse response function (IRF) data
'''
pass
class WaveElevationTimeSeries(object):
'''Internal bemio object to contain wave... | 38.975806 | 191 | 0.670391 | 620 | 4,833 | 5.101613 | 0.209677 | 0.118558 | 0.091369 | 0.051217 | 0.289282 | 0.230161 | 0.155549 | 0.122036 | 0.122036 | 0.103067 | 0 | 0.00273 | 0.242086 | 4,833 | 123 | 192 | 39.292683 | 0.86077 | 0.6048 | 0 | 0.1 | 0 | 0 | 0.002384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13a5a3a43374d4d6999054a4a1be7345b8a0129d | 354 | py | Python | Python-code-snippets-101-200/162-A-Z Of Python Standard Library.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | Python-code-snippets-101-200/162-A-Z Of Python Standard Library.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | Python-code-snippets-101-200/162-A-Z Of Python Standard Library.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | """
Python code snippets vol 33:
162-A-Z list of Python standard library
stevepython.wordpress.com
pip3 install stdlib-list
source:
https://python-stdlib-list.readthedocs.io/en/latest/usage.html
"""
from stdlib_list import stdlib_list
libs = stdlib_list("3.6")#change the 3.6 to version of Python required.
print('[... | 20.823529 | 71 | 0.740113 | 58 | 354 | 4.465517 | 0.724138 | 0.19305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 0.118644 | 354 | 16 | 72 | 22.125 | 0.798077 | 0.675141 | 0 | 0 | 0 | 0 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
13b1da7ddb9057e35fe1ece90a5e8a7e70f930af | 11,424 | py | Python | sdk/python/pulumi_aws_native/ec2/transit_gateway_multicast_group_member.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/ec2/transit_gateway_multicast_group_member.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/ec2/transit_gateway_multicast_group_member.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.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, overload
from .. import _utilities
__a... | 43.437262 | 164 | 0.673582 | 1,248 | 11,424 | 5.754808 | 0.123397 | 0.077973 | 0.099276 | 0.092871 | 0.666667 | 0.598997 | 0.56029 | 0.519215 | 0.482874 | 0.463659 | 0 | 0.000458 | 0.236082 | 11,424 | 262 | 165 | 43.603053 | 0.822505 | 0.221289 | 0 | 0.396226 | 1 | 0 | 0.17241 | 0.071668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144654 | false | 0.006289 | 0.031447 | 0 | 0.283019 | 0 | 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 |
13bbf4671fe8f7955bd1e9e6ce09a9cb998a0577 | 7,532 | py | Python | django_dbaccounting/tests/test_models.py | robml/django_dbaccounting | d39466d71151b6e28a6b959001dcd5cfe56b4f4b | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 4 | 2021-02-11T16:35:07.000Z | 2021-07-08T15:35:55.000Z | tests/test_models.py | di/django_dbaccounting | 26bb794649b92c71a5e18d74c0388d3f1fbdd06d | [
"BSD-3-Clause"
] | 2 | 2021-07-08T14:55:07.000Z | 2021-07-08T17:23:38.000Z | tests/test_models.py | di/django_dbaccounting | 26bb794649b92c71a5e18d74c0388d3f1fbdd06d | [
"BSD-3-Clause"
] | 3 | 2020-03-08T18:10:52.000Z | 2021-12-19T18:16:39.000Z | from django.test import TestCase
from django.db import IntegrityError
from dbaccounting.models import AccountType,Account,Transaction
# Create your tests here.
class AccountTypeTest(TestCase):
@classmethod
def setUpTestData(cls):
AccountType.objects.create(name = "Assets",bal_type = "D")
Accou... | 39.025907 | 120 | 0.667021 | 1,010 | 7,532 | 4.744554 | 0.108911 | 0.075125 | 0.09015 | 0.092237 | 0.743948 | 0.692195 | 0.59182 | 0.478506 | 0.40025 | 0.376669 | 0 | 0.012166 | 0.214286 | 7,532 | 192 | 121 | 39.229167 | 0.797567 | 0.023367 | 0 | 0.395973 | 0 | 0.006711 | 0.06108 | 0 | 0 | 0 | 0 | 0 | 0.228188 | 1 | 0.248322 | false | 0 | 0.020134 | 0 | 0.288591 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13c21f6ab4cf8fbf469917cd0764c2090e0c5dde | 4,474 | py | Python | tests/test_models.py | chris-santiago/tsfeast | a4177ecd23d2c55fd959f8d4cd011a15f5c57da6 | [
"MIT"
] | null | null | null | tests/test_models.py | chris-santiago/tsfeast | a4177ecd23d2c55fd959f8d4cd011a15f5c57da6 | [
"MIT"
] | 7 | 2021-08-04T18:10:55.000Z | 2021-08-21T20:36:59.000Z | tests/test_models.py | chris-santiago/tsfeast | a4177ecd23d2c55fd959f8d4cd011a15f5c57da6 | [
"MIT"
] | 2 | 2021-08-11T05:58:46.000Z | 2021-12-17T22:09:59.000Z | import numpy as np
import pandas as pd
import pytest
from statsmodels.iolib.summary import Summary
from statsmodels.tsa.holtwinters import ExponentialSmoothing
from statsmodels.tsa.statespace.sarimax import SARIMAX
from tsfeast.models import ARMARegressor, TSARegressor
VALID = {
'arma': {
'fit': np.array(... | 35.507937 | 79 | 0.595217 | 525 | 4,474 | 4.965714 | 0.192381 | 0.025316 | 0.073648 | 0.054852 | 0.553893 | 0.545455 | 0.532796 | 0.518987 | 0.447257 | 0.393556 | 0 | 0.256191 | 0.268887 | 4,474 | 125 | 80 | 35.792 | 0.540813 | 0 | 0 | 0.389381 | 0 | 0 | 0.046267 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 1 | 0.070796 | false | 0 | 0.061947 | 0 | 0.150442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
13c67bddcea8c91b7caf7905776b40086c29dabe | 534 | py | Python | weather.py | tmptknn/mukina | ff9489d8387d78481e8522c9307cfa7004e67833 | [
"MIT"
] | null | null | null | weather.py | tmptknn/mukina | ff9489d8387d78481e8522c9307cfa7004e67833 | [
"MIT"
] | null | null | null | weather.py | tmptknn/mukina | ff9489d8387d78481e8522c9307cfa7004e67833 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import requests, urllib, time
def get_weather ():
url = 'http://api.wunderground.com/api/yourapikeyhere/forecast/lang:FI/q/FI/Jyvaskyla.json'
r = requests.get(url)
j = r.json()
#print(j)
co = j['forecast']['txt_forecast']['forecastday']
#for x in range(0,1)... | 24.272727 | 101 | 0.58427 | 76 | 534 | 4.039474 | 0.552632 | 0.029316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018957 | 0.209738 | 534 | 21 | 102 | 25.428571 | 0.706161 | 0.202247 | 0 | 0 | 0 | 0.090909 | 0.358396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13c908b1a2a225b0537ec1e9d198d812844e13c6 | 3,270 | py | Python | AdminServer/handlers/EditAdminHandler.py | valiro21/mlc | 428719b8589b3ca9922ae0c6fa527f47f8a98690 | [
"MIT"
] | null | null | null | AdminServer/handlers/EditAdminHandler.py | valiro21/mlc | 428719b8589b3ca9922ae0c6fa527f47f8a98690 | [
"MIT"
] | null | null | null | AdminServer/handlers/EditAdminHandler.py | valiro21/mlc | 428719b8589b3ca9922ae0c6fa527f47f8a98690 | [
"MIT"
] | null | null | null | # Copyright © 2017 Alexandru Miron <mironalex96@gmail.com>
# Copyright © 2017 Cosmin Pascaru <cosmin.pascaru2@gmail.com>
import traceback
import tornado.web
import bcrypt
from tornado.web import HTTPError
from AdminServer.handlers.BaseHandler import BaseHandler
from DB.Entities.Permission import Permission
from DB.En... | 31.142857 | 78 | 0.570031 | 335 | 3,270 | 5.420896 | 0.346269 | 0.034692 | 0.049559 | 0.030837 | 0.030837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009799 | 0.344648 | 3,270 | 104 | 79 | 31.442308 | 0.836678 | 0.051682 | 0 | 0.126984 | 0 | 0 | 0.047046 | 0.007904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0.079365 | 0.126984 | 0 | 0.174603 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13cd33b5ffddba8e1212e5bf8736f7e410aed10e | 1,196 | py | Python | backend/finanzza/transactions/migrations/0001_initial.py | phattp/finanzza | 4acedd2cdff8a6352ba11366586b15df588e4a94 | [
"MIT"
] | null | null | null | backend/finanzza/transactions/migrations/0001_initial.py | phattp/finanzza | 4acedd2cdff8a6352ba11366586b15df588e4a94 | [
"MIT"
] | null | null | null | backend/finanzza/transactions/migrations/0001_initial.py | phattp/finanzza | 4acedd2cdff8a6352ba11366586b15df588e4a94 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-04-09 05:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 38.580645 | 147 | 0.630435 | 128 | 1,196 | 5.734375 | 0.585938 | 0.032698 | 0.038147 | 0.059946 | 0.076294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.233278 | 1,196 | 30 | 148 | 39.866667 | 0.777535 | 0.035953 | 0 | 0 | 1 | 0 | 0.095569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13ce85aa857df675e45ddfef0f621dcf1bdf43a5 | 1,246 | py | Python | test/test-avahi.py | glimchb/nvme-stas | 6f0345aa15ee35ebc8c510c1a1f81272fa6ced5b | [
"Apache-2.0"
] | null | null | null | test/test-avahi.py | glimchb/nvme-stas | 6f0345aa15ee35ebc8c510c1a1f81272fa6ced5b | [
"Apache-2.0"
] | null | null | null | test/test-avahi.py | glimchb/nvme-stas | 6f0345aa15ee35ebc8c510c1a1f81272fa6ced5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import os
import unittest
from staslib import stas, avahi
import dasbus.connection
class Test(unittest.TestCase):
'''Unit tests for class Avahi'''
def test_new(self):
sysbus = dasbus.connection.SystemMessageBus()
srv = avahi.Avahi(sysbus, lambda:"ok")
self.assertEqua... | 42.965517 | 113 | 0.664526 | 148 | 1,246 | 5.47973 | 0.445946 | 0.147965 | 0.088779 | 0.054254 | 0.404439 | 0.404439 | 0.404439 | 0.31566 | 0.221948 | 0.221948 | 0 | 0.007897 | 0.186998 | 1,246 | 28 | 114 | 44.5 | 0.792695 | 0.035313 | 0 | 0.086957 | 0 | 0 | 0.179766 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13d347d092a084cb5f8902fb2364c941e0577440 | 1,068 | py | Python | django_rest_webhooks/admin.py | leanrank/rest-hooks | cb53fc66a33af1cb72ab6248af58b1673e30ebce | [
"0BSD"
] | null | null | null | django_rest_webhooks/admin.py | leanrank/rest-hooks | cb53fc66a33af1cb72ab6248af58b1673e30ebce | [
"0BSD"
] | null | null | null | django_rest_webhooks/admin.py | leanrank/rest-hooks | cb53fc66a33af1cb72ab6248af58b1673e30ebce | [
"0BSD"
] | null | null | null | from django.contrib import admin
from django.conf import settings
from django import forms
from django_rest_webhooks.utils import get_hook_model
if getattr(settings, "HOOK_EVENTS", None) is None:
raise Exception("You need to define settings.HOOK_EVENTS!")
HookModel = get_hook_model()
class HookForm(forms.Model... | 25.428571 | 81 | 0.688202 | 137 | 1,068 | 5.175182 | 0.49635 | 0.056417 | 0.076164 | 0.070522 | 0.081805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20412 | 1,068 | 41 | 82 | 26.04878 | 0.834118 | 0.103933 | 0 | 0 | 0 | 0 | 0.092176 | 0.022508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.041667 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
13d57ea520958f2d4be1b3f8055d93084c7f3157 | 481 | py | Python | package/migrations/0012_alter_package_repo_description.py | ryancheley/djangopackages | ea5bd4b91291698165b5a0fb16560741904e272c | [
"MIT"
] | null | null | null | package/migrations/0012_alter_package_repo_description.py | ryancheley/djangopackages | ea5bd4b91291698165b5a0fb16560741904e272c | [
"MIT"
] | null | null | null | package/migrations/0012_alter_package_repo_description.py | ryancheley/djangopackages | ea5bd4b91291698165b5a0fb16560741904e272c | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-07 20:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("package", "0011_package_date_repo_archived"),
]
operations = [
migrations.AlterField(
model_name="package",
name="re... | 22.904762 | 75 | 0.596674 | 50 | 481 | 5.58 | 0.76 | 0.057348 | 0.136201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065282 | 0.299376 | 481 | 20 | 76 | 24.05 | 0.762611 | 0.093555 | 0 | 0.142857 | 1 | 0 | 0.177419 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13d7a1969bd108ebf263850e8337a2df45d9017b | 2,490 | py | Python | pgoapi/protos/pogoprotos/inventory/applied_items_pb2.py | z3cr3t/api | 960c0c10a76e1f46e99de7f8de8644b00cf95d0d | [
"MIT"
] | null | null | null | pgoapi/protos/pogoprotos/inventory/applied_items_pb2.py | z3cr3t/api | 960c0c10a76e1f46e99de7f8de8644b00cf95d0d | [
"MIT"
] | null | null | null | pgoapi/protos/pogoprotos/inventory/applied_items_pb2.py | z3cr3t/api | 960c0c10a76e1f46e99de7f8de8644b00cf95d0d | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/inventory/applied_items.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.pr... | 34.109589 | 245 | 0.76747 | 290 | 2,490 | 6.255172 | 0.37931 | 0.115215 | 0.071665 | 0.066152 | 0.215546 | 0.075524 | 0.075524 | 0.054024 | 0 | 0 | 0 | 0.02214 | 0.129317 | 2,490 | 72 | 246 | 34.583333 | 0.814576 | 0.100402 | 0 | 0.113208 | 1 | 0 | 0.141998 | 0.10407 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.132075 | 0 | 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 |
13d840517f83369d3be841c2b89f27b57aec2a32 | 1,369 | py | Python | user_test.py | paulmburu08/Lockpass | 107821de90602ba97e436de1aecb7ecc17ab9643 | [
"MIT"
] | null | null | null | user_test.py | paulmburu08/Lockpass | 107821de90602ba97e436de1aecb7ecc17ab9643 | [
"MIT"
] | null | null | null | user_test.py | paulmburu08/Lockpass | 107821de90602ba97e436de1aecb7ecc17ab9643 | [
"MIT"
] | null | null | null | import unittest
from user import User
class UserTest(unittest.TestCase):
def setUp(self):
'''
Set up method to run before each test cases.
'''
self.new_user = User('Paul','Mburu','paulmburu08@gmail.com','python34562')
def tearDown(self):
'''
tearDown metho... | 27.38 | 86 | 0.633309 | 175 | 1,369 | 4.742857 | 0.36 | 0.075904 | 0.106024 | 0.106024 | 0.348193 | 0.222892 | 0.177108 | 0.091566 | 0 | 0 | 0 | 0.015889 | 0.264427 | 1,369 | 49 | 87 | 27.938776 | 0.808342 | 0.252009 | 0 | 0.095238 | 0 | 0 | 0.1 | 0.046667 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.238095 | false | 0.047619 | 0.095238 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13dcff5d38401105c54fd8f218ca7737d020829b | 389 | py | Python | transcrypt/development/manual_tests/transcrypt_and_python_results_differ/results.py | JMCanning78/Transcrypt | 8a8dabe831240414fdf1d5027fa2b0d71ab45d05 | [
"Apache-2.0"
] | 1 | 2017-08-11T01:51:51.000Z | 2017-08-11T01:51:51.000Z | transcrypt/development/manual_tests/transcrypt_and_python_results_differ/results.py | JMCanning78/Transcrypt | 8a8dabe831240414fdf1d5027fa2b0d71ab45d05 | [
"Apache-2.0"
] | 2 | 2021-03-11T02:24:48.000Z | 2021-05-11T20:29:52.000Z | transcrypt/development/manual_tests/transcrypt_and_python_results_differ/results.py | JMCanning78/Transcrypt | 8a8dabe831240414fdf1d5027fa2b0d71ab45d05 | [
"Apache-2.0"
] | 1 | 2021-02-07T00:22:12.000Z | 2021-02-07T00:22:12.000Z | '''
Test to find out if we can determine correctly wether we are in the Transcrypt/JavaScript or the CPython environment
'''
from org.transcrypt.stubs.browser import __envir__, __pragma__
if __envir__.executor_name == __envir__.transpiler_name:
document.getElementById ('output') .innerHTML = 'Using Transcrypt'
... | 29.923077 | 116 | 0.766067 | 48 | 389 | 5.666667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138817 | 389 | 12 | 117 | 32.416667 | 0.81194 | 0.298201 | 0 | 0 | 0 | 0 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13de1a752110e866d0011f0fbecee3a107a314a6 | 561 | py | Python | pgdrive/tests/test_top_down_rendering/profile_map_generation.py | gamecraftCZ/pgdrive | 11fbb5a5ca1dc354d755f00eb282bcffe5720bcc | [
"Apache-2.0"
] | null | null | null | pgdrive/tests/test_top_down_rendering/profile_map_generation.py | gamecraftCZ/pgdrive | 11fbb5a5ca1dc354d755f00eb282bcffe5720bcc | [
"Apache-2.0"
] | null | null | null | pgdrive/tests/test_top_down_rendering/profile_map_generation.py | gamecraftCZ/pgdrive | 11fbb5a5ca1dc354d755f00eb282bcffe5720bcc | [
"Apache-2.0"
] | null | null | null | from pgdrive import PGDriveEnv
from pgdrive.scene_creator.map import Map, MapGenerateMethod
if __name__ == '__main__':
env = PGDriveEnv(
dict(
environment_num=1,
map_config={
Map.GENERATE_METHOD: MapGenerateMethod.BIG_BLOCK_SEQUENCE,
Map.GENERATE_PARA... | 28.05 | 74 | 0.552585 | 60 | 561 | 4.866667 | 0.65 | 0.075342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021918 | 0.349376 | 561 | 19 | 75 | 29.526316 | 0.778082 | 0 | 0 | 0 | 1 | 0 | 0.067736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13de2ed00433a9e91fde0011d4eef0b0d917edfb | 694 | py | Python | sensors/migrations/0010_auto_20170227_1358.py | briansok/derpi | 0e111a84b17ce8caeb60d2899957a0a24cab47b3 | [
"MIT"
] | null | null | null | sensors/migrations/0010_auto_20170227_1358.py | briansok/derpi | 0e111a84b17ce8caeb60d2899957a0a24cab47b3 | [
"MIT"
] | null | null | null | sensors/migrations/0010_auto_20170227_1358.py | briansok/derpi | 0e111a84b17ce8caeb60d2899957a0a24cab47b3 | [
"MIT"
] | 1 | 2019-03-07T04:30:36.000Z | 2019-03-07T04:30:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-27 12:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sensors', '0009_auto_20170216_1405'),
]
operations = [
migrations.RenameFie... | 26.692308 | 146 | 0.585014 | 75 | 694 | 5.226667 | 0.76 | 0.045918 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067194 | 0.270893 | 694 | 25 | 147 | 27.76 | 0.70751 | 0.097983 | 0 | 0.222222 | 1 | 0 | 0.182986 | 0.036918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13e25a6054645f2e3811dcbf12d352e76c541180 | 65,370 | py | Python | generate-GTFS-shapes/scripts/Step1_MakeShapesFC.py | d-wasserman/public-transit-tools | e9b2eb6e0a8ac81344fa144ff6333686349614f6 | [
"Apache-2.0"
] | 130 | 2015-11-04T21:19:37.000Z | 2022-03-05T20:36:33.000Z | generate-GTFS-shapes/scripts/Step1_MakeShapesFC.py | d-wasserman/public-transit-tools | e9b2eb6e0a8ac81344fa144ff6333686349614f6 | [
"Apache-2.0"
] | 101 | 2015-11-09T14:37:41.000Z | 2021-11-12T01:43:53.000Z | generate-GTFS-shapes/scripts/Step1_MakeShapesFC.py | d-wasserman/public-transit-tools | e9b2eb6e0a8ac81344fa144ff6333686349614f6 | [
"Apache-2.0"
] | 63 | 2015-11-10T18:01:35.000Z | 2022-03-27T19:20:51.000Z | ###############################################################################
## Tool name: Generate GTFS Route Shapes
## Step 1: Generate Shapes on Map
## Creator: Melinda Morang, Esri
## Last updated: 4 September 2019
###############################################################################
''' This too... | 46.165254 | 191 | 0.603365 | 7,574 | 65,370 | 5.078426 | 0.127146 | 0.011101 | 0.018537 | 0.014559 | 0.36811 | 0.318298 | 0.267263 | 0.230865 | 0.220388 | 0.21394 | 0 | 0.011681 | 0.30592 | 65,370 | 1,415 | 192 | 46.19788 | 0.836066 | 0.19411 | 0 | 0.339796 | 1 | 0.020408 | 0.131086 | 0.004653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.003061 | 0.004082 | 0 | 0.031633 | 0 | 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 |
13e3500040f170df6a6f9075486e9fb692d5b4c9 | 1,243 | py | Python | examples/automation.py | fakhrirofi/twit-webhook | 11c1bb11ae9f573c853b748415e30c3a7517e416 | [
"MIT"
] | 2 | 2021-06-05T12:57:09.000Z | 2021-06-07T11:57:31.000Z | examples/automation.py | fakhrirofi/twit-webhook | 11c1bb11ae9f573c853b748415e30c3a7517e416 | [
"MIT"
] | null | null | null | examples/automation.py | fakhrirofi/twit-webhook | 11c1bb11ae9f573c853b748415e30c3a7517e416 | [
"MIT"
] | null | null | null | from dotenv import load_dotenv
from pprint import pprint
from webhook import Event
import os
import json
from threading import Thread
from pyngrok import ngrok
from time import sleep
from twitivity import Activity
load_dotenv(".env")
http = ngrok.connect(8080, bind_tls=True)
URL = http.public_url
# function that wil... | 26.446809 | 140 | 0.744972 | 179 | 1,243 | 5.03352 | 0.502793 | 0.059933 | 0.056604 | 0.035516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008396 | 0.13757 | 1,243 | 46 | 141 | 27.021739 | 0.83209 | 0.2679 | 0 | 0 | 0 | 0 | 0.177329 | 0.047138 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.03125 | false | 0 | 0.28125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13e5521b6f135c533d8305c7dd6ca9e52d3938c8 | 486 | py | Python | setup.py | tayihakakpo/logs | 0ce6b55032190de04bc7d374f1c26cf499c8972e | [
"MIT"
] | null | null | null | setup.py | tayihakakpo/logs | 0ce6b55032190de04bc7d374f1c26cf499c8972e | [
"MIT"
] | null | null | null | setup.py | tayihakakpo/logs | 0ce6b55032190de04bc7d374f1c26cf499c8972e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from setuptools import setup
import logs
def readme():
with open('README.rst') as f:
return f.read()
setup(
name="logs",
author="Thomas Ayih-Akakpo",
author_email="thomas.ayihakakpo@gmail.com",
version=logs.__version__,
py_modules=['logs'],
... | 17.357143 | 50 | 0.660494 | 62 | 486 | 5.032258 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002545 | 0.191358 | 486 | 27 | 51 | 18 | 0.791349 | 0.074074 | 0 | 0 | 0 | 0 | 0.259508 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | true | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13e5523641ccb387f4337114a457458e28982486 | 637 | py | Python | webdriver_controller/config.py | lcmtwn/webdriver_controller | e1fb207c5dcb6d03ac92472ae90c26b99c07ce47 | [
"MIT"
] | null | null | null | webdriver_controller/config.py | lcmtwn/webdriver_controller | e1fb207c5dcb6d03ac92472ae90c26b99c07ce47 | [
"MIT"
] | null | null | null | webdriver_controller/config.py | lcmtwn/webdriver_controller | e1fb207c5dcb6d03ac92472ae90c26b99c07ce47 | [
"MIT"
] | null | null | null | from pathlib import Path
STORAGE_URLS = {
'selenium': 'https://selenium-release.storage.googleapis.com/',
'chromedriver': 'https://chromedriver.storage.googleapis.com/',
'geckodriver': 'https://github.com/mozilla/geckodriver/releases/download'
}
INSTALLATION_FOLDER = Path('{}{}'.format(Path.cwd(), '/drive... | 39.8125 | 77 | 0.734694 | 64 | 637 | 7.140625 | 0.4375 | 0.196937 | 0.210066 | 0.140044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 637 | 15 | 78 | 42.466667 | 0.781197 | 0 | 0 | 0 | 0 | 0 | 0.392465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
13f5255d300e0f58cec798896b46e840534a7557 | 550 | py | Python | All Stars Pattern/Hill Pattern.py | jxmked/C-language | 00ec9fd270fc25e5f6c73217d28e5ba5a66d7374 | [
"MIT"
] | 1 | 2022-02-22T19:27:12.000Z | 2022-02-22T19:27:12.000Z | All Stars Pattern/Hill Pattern.py | jxmked/C-language | 00ec9fd270fc25e5f6c73217d28e5ba5a66d7374 | [
"MIT"
] | null | null | null | All Stars Pattern/Hill Pattern.py | jxmked/C-language | 00ec9fd270fc25e5f6c73217d28e5ba5a66d7374 | [
"MIT"
] | null | null | null |
"""
Hill Pattern
"""
print("")
n = 5
# Method 1
print("Method 1")
for a in range(n):
for b in range(a, n):
print(" ", end="")
for c in range(a + 1):
print(" * ", end="")
for d in range(a):
print(" * ", end="")
print("")
print("\n*~*~*~*~*~*~*~*~*~*~*... | 11.702128 | 36 | 0.403636 | 70 | 550 | 3.171429 | 0.328571 | 0.157658 | 0.108108 | 0.099099 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019337 | 0.341818 | 550 | 47 | 37 | 11.702128 | 0.593923 | 0.056364 | 0 | 0.388889 | 0 | 0 | 0.133479 | 0.059081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
13f8e0145a3cff52cc8c47b017793bbaaecc84ff | 650 | py | Python | main_agent.py | ut-ras/r5-2019 | 4e91e86c86bfbdd8d4639b0994e96e890a2f741e | [
"MIT"
] | 5 | 2018-09-20T01:02:24.000Z | 2019-01-29T05:48:04.000Z | main_agent.py | ut-ras/r5-2019 | 4e91e86c86bfbdd8d4639b0994e96e890a2f741e | [
"MIT"
] | 18 | 2018-10-12T01:10:01.000Z | 2019-02-07T01:44:42.000Z | main_agent.py | ut-ras/r5-2019 | 4e91e86c86bfbdd8d4639b0994e96e890a2f741e | [
"MIT"
] | 1 | 2018-11-16T01:00:41.000Z | 2018-11-16T01:00:41.000Z | r"""Main loop for each swarm agent
___ _ _
/ __|_ __ ____ _ _ _ _ __ /_\ __ _ ___ _ _| |_
\__ \ V V / _` | '_| ' \ / _ \/ _` / -_) ' \ _|
|___/\_/\_/\__,_|_| |_|_|_| /_/ \_\__, \___|_||_\__|
|___/
"""
from .control.task_manager... | 25 | 53 | 0.496923 | 45 | 650 | 5.444444 | 0.688889 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.364615 | 650 | 25 | 54 | 26 | 0.59322 | 0.449231 | 0 | 0 | 0 | 0 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b920bbd1c21cbfa7cdc711c46ee1a4c68be43786 | 1,776 | py | Python | argumented.py | borntyping/python-argumented | 4e982a33863d86548e92683a7a2601dd72f86be5 | [
"MIT"
] | null | null | null | argumented.py | borntyping/python-argumented | 4e982a33863d86548e92683a7a2601dd72f86be5 | [
"MIT"
] | null | null | null | argumented.py | borntyping/python-argumented | 4e982a33863d86548e92683a7a2601dd72f86be5 | [
"MIT"
] | null | null | null | """
Pack and unpack functions into a set of wrapped functions with set arguments
"""
__all__ = ['unpack_arguments', 'argument', 'argument_list', 'argument_tuples']
from functools import wraps
def unpack_arguments(cls):
"""
Unpacks any function in the class that has a list of argumented functions
The argumented ... | 31.157895 | 78 | 0.726351 | 256 | 1,776 | 4.847656 | 0.3125 | 0.073328 | 0.041096 | 0.053183 | 0.136181 | 0.136181 | 0.114424 | 0.069299 | 0 | 0 | 0 | 0 | 0.168356 | 1,776 | 56 | 79 | 31.714286 | 0.840217 | 0.444257 | 0 | 0 | 0 | 0 | 0.086724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.043478 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9210546bcba365bca56f09393402f94e701f987 | 2,135 | py | Python | setup.py | gekco/commandment | 17c1dbe3f5301eab0f950f82608c231c15a3ff43 | [
"MIT"
] | 138 | 2017-11-21T17:57:59.000Z | 2022-02-16T13:08:39.000Z | setup.py | gekco/commandment | 17c1dbe3f5301eab0f950f82608c231c15a3ff43 | [
"MIT"
] | 24 | 2017-11-12T01:42:13.000Z | 2022-02-24T21:53:28.000Z | setup.py | gekco/commandment | 17c1dbe3f5301eab0f950f82608c231c15a3ff43 | [
"MIT"
] | 35 | 2017-11-15T12:14:44.000Z | 2022-02-26T00:44:36.000Z | from setuptools import setup, find_packages
setup(
name="commandment",
version="0.1",
description="Commandment is an Open Source Apple MDM server with support for managing iOS and macOS devices",
packages=['commandment'],
include_package_data=True,
author="mosen",
license="MIT",
url="htt... | 27.371795 | 113 | 0.512412 | 253 | 2,135 | 4.280632 | 0.490119 | 0.00554 | 0.00554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08445 | 0.301171 | 2,135 | 77 | 114 | 27.727273 | 0.641421 | 0 | 0 | 0.053333 | 0 | 0 | 0.506329 | 0.150023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.013333 | 0.013333 | 0 | 0.013333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b92261281c14bd142371c7e65c744ae93a2e674d | 6,076 | py | Python | app/api/v2/atbds.py | NASA-IMPACT/nasa-apt | 986f187f9471ba02eaf8187358f09a31029a0c14 | [
"Apache-2.0"
] | 3 | 2022-02-16T23:58:19.000Z | 2022-03-31T00:07:40.000Z | app/api/v2/atbds.py | NASA-IMPACT/nasa-apt | 986f187f9471ba02eaf8187358f09a31029a0c14 | [
"Apache-2.0"
] | 17 | 2022-02-23T16:57:28.000Z | 2022-03-31T15:27:49.000Z | app/api/v2/atbds.py | NASA-IMPACT/nasa-apt | 986f187f9471ba02eaf8187358f09a31029a0c14 | [
"Apache-2.0"
] | null | null | null | """ATBDs endpoint."""
import datetime
from typing import List
from sqlalchemy import exc
from app.crud.atbds import crud_atbds
from app.db.db_session import DbSession, get_db_session
from app.permissions import check_atbd_permissions, filter_atbd_versions
from app.schemas import atbds, users
from app.search.elasticse... | 32.843243 | 86 | 0.703423 | 831 | 6,076 | 4.972323 | 0.203369 | 0.026137 | 0.020329 | 0.038964 | 0.459342 | 0.458132 | 0.419167 | 0.388674 | 0.333253 | 0.333253 | 0 | 0.008853 | 0.200625 | 6,076 | 184 | 87 | 33.021739 | 0.841878 | 0.180876 | 0 | 0.449612 | 0 | 0 | 0.086186 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.046512 | false | 0 | 0.085271 | 0 | 0.178295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b928d79d56c8540959b19525326a6cf179c5b05e | 23,763 | py | Python | venv/lib/python3.7/site-packages/twilio/rest/api/v2010/account/message/__init__.py | Andre-Williams22/bot_detector | f803791a3c8f474cbb53a38e53af45ad5937184c | [
"MIT"
] | 1 | 2019-12-30T21:46:55.000Z | 2019-12-30T21:46:55.000Z | twilio/rest/api/v2010/account/message/__init__.py | Sephra1/twilio-python | 7dd04209e2d38a31c2783ee8f8ae8be6222a43f2 | [
"MIT"
] | 7 | 2020-06-06T01:19:11.000Z | 2021-06-10T19:42:05.000Z | twilio/rest/api/v2010/account/message/__init__.py | Sephra1/twilio-python | 7dd04209e2d38a31c2783ee8f8ae8be6222a43f2 | [
"MIT"
] | null | null | null | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import serialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import... | 34.240634 | 138 | 0.619661 | 2,641 | 23,763 | 5.430897 | 0.124574 | 0.025657 | 0.030816 | 0.042669 | 0.596946 | 0.572753 | 0.529387 | 0.480443 | 0.463501 | 0.441609 | 0 | 0.012508 | 0.286748 | 23,763 | 693 | 139 | 34.290043 | 0.833737 | 0.410302 | 0 | 0.325 | 1 | 0 | 0.112027 | 0.022762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167857 | false | 0 | 0.032143 | 0 | 0.385714 | 0 | 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 |
b932a4e781f2239851f4f6eaacf9ffb8f41dc092 | 2,818 | py | Python | PyBioMed/test/test_PyInteration.py | Bibyutatsu/PyBioMed | 263429e5ffa2ac7bf32ccb6fac969a12ce6cf637 | [
"BSD-3-Clause"
] | 90 | 2016-12-23T05:36:15.000Z | 2022-03-19T21:00:46.000Z | PyBioMed/test/test_PyInteration.py | Bibyutatsu/PyBioMed | 263429e5ffa2ac7bf32ccb6fac969a12ce6cf637 | [
"BSD-3-Clause"
] | 9 | 2019-04-24T08:16:22.000Z | 2022-03-28T03:38:02.000Z | PyBioMed/test/test_PyInteration.py | Bibyutatsu/PyBioMed | 263429e5ffa2ac7bf32ccb6fac969a12ce6cf637 | [
"BSD-3-Clause"
] | 52 | 2017-03-24T15:50:47.000Z | 2022-03-28T13:46:59.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2016-2017, Zhijiang Yao, Jie Dong and Dongsheng Cao
# All rights reserved.
# This file is part of the PyBioMed.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the PyBioMed source tree.
"""
The s... | 30.630435 | 83 | 0.631654 | 295 | 2,818 | 5.840678 | 0.389831 | 0.038305 | 0.059199 | 0.069646 | 0.326175 | 0.159025 | 0.098085 | 0 | 0 | 0 | 0 | 0.02016 | 0.155075 | 2,818 | 91 | 84 | 30.967033 | 0.703486 | 0.153655 | 0 | 0.12766 | 0 | 0 | 0.319831 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.170213 | 0 | 0.191489 | 0.425532 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b9334cd162bdca6464394b535b520e4e2e53efdc | 1,747 | py | Python | batchopt/optimizers/sine_cosine_algorithm.py | pfnet-research/batch-metaheuristics | 202372a4ef4439cceb71e71092487c9173fd367c | [
"MIT"
] | 7 | 2021-01-22T05:00:18.000Z | 2022-02-26T12:41:07.000Z | batchopt/optimizers/sine_cosine_algorithm.py | pfnet-research/batch-metaheuristics | 202372a4ef4439cceb71e71092487c9173fd367c | [
"MIT"
] | null | null | null | batchopt/optimizers/sine_cosine_algorithm.py | pfnet-research/batch-metaheuristics | 202372a4ef4439cceb71e71092487c9173fd367c | [
"MIT"
] | null | null | null | from copy import deepcopy
import numpy as np
from batchopt.optimizers.base_optimizer import BaseOptimizer, RandomRelocator
class SineCosineAlgorithm(BaseOptimizer):
"""
Sine-Cosine Algorithm
"""
A = 2.0
def __init__(
self,
domain_range,
log=True,
epoch=750,
... | 34.94 | 86 | 0.643961 | 232 | 1,747 | 4.612069 | 0.366379 | 0.06729 | 0.061682 | 0.070093 | 0.227103 | 0.227103 | 0.178505 | 0.178505 | 0.126168 | 0.126168 | 0 | 0.028266 | 0.250716 | 1,747 | 49 | 87 | 35.653061 | 0.789152 | 0.190612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0.03125 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b939663bc2188d8cf54678f5d616f8d829e4cb45 | 2,108 | py | Python | neutron/tests/unit/ml2/drivers/brocade/test_brocade_l3_plugin.py | alliedtelesis/neutron | 80c9ab86edb922dcd27aaa8c5b99731097e52652 | [
"Apache-2.0"
] | null | null | null | neutron/tests/unit/ml2/drivers/brocade/test_brocade_l3_plugin.py | alliedtelesis/neutron | 80c9ab86edb922dcd27aaa8c5b99731097e52652 | [
"Apache-2.0"
] | null | null | null | neutron/tests/unit/ml2/drivers/brocade/test_brocade_l3_plugin.py | alliedtelesis/neutron | 80c9ab86edb922dcd27aaa8c5b99731097e52652 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 36.344828 | 73 | 0.685958 | 261 | 2,108 | 5.35249 | 0.467433 | 0.042949 | 0.028633 | 0.048676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014233 | 0.233397 | 2,108 | 57 | 74 | 36.982456 | 0.850248 | 0.265655 | 0 | 0 | 0 | 0 | 0.114304 | 0.069889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.266667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b941e41ae08a04d2102392a0c162e38827b38704 | 10,870 | py | Python | openstack_auth/forms.py | nicozhang/horizon | 49df5cffd84b6d9da4e5926afd12e0a92737d740 | [
"Apache-2.0"
] | null | null | null | openstack_auth/forms.py | nicozhang/horizon | 49df5cffd84b6d9da4e5926afd12e0a92737d740 | [
"Apache-2.0"
] | null | null | null | openstack_auth/forms.py | nicozhang/horizon | 49df5cffd84b6d9da4e5926afd12e0a92737d740 | [
"Apache-2.0"
] | 1 | 2020-04-21T22:12:55.000Z | 2020-04-21T22:12:55.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | 43.134921 | 79 | 0.617387 | 1,188 | 10,870 | 5.492424 | 0.234848 | 0.032184 | 0.03433 | 0.028199 | 0.314483 | 0.272337 | 0.240766 | 0.226667 | 0.226667 | 0.191111 | 0 | 0.002196 | 0.287764 | 10,870 | 251 | 80 | 43.306773 | 0.84061 | 0.168721 | 0 | 0.395604 | 0 | 0 | 0.135682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049451 | false | 0.175824 | 0.06044 | 0.010989 | 0.203297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9435a7759eb9e8ae9326dc6937f0b44861d8922 | 459 | py | Python | setup.py | mrmch/pyrelate | cb2dbbd895564f7bf6e3b59040412091ce4af080 | [
"MIT"
] | 1 | 2017-01-25T21:40:45.000Z | 2017-01-25T21:40:45.000Z | setup.py | mrmch/pyrelate | cb2dbbd895564f7bf6e3b59040412091ce4af080 | [
"MIT"
] | null | null | null | setup.py | mrmch/pyrelate | cb2dbbd895564f7bf6e3b59040412091ce4af080 | [
"MIT"
] | null | null | null | from distutils.core import setup
from setuptools import find_packages
setup(
name='pyrelate',
version='1.0.0',
author='sendwithus',
author_email='matt@sendwithus.com',
packages=find_packages(),
scripts=[],
url='https://github.com/mrmch/pyrelate',
license='LICENSE.txt',
description='... | 24.157895 | 49 | 0.662309 | 55 | 459 | 5.436364 | 0.709091 | 0.080268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016086 | 0.187364 | 459 | 18 | 50 | 25.5 | 0.785523 | 0 | 0 | 0 | 0 | 0 | 0.309368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b94542bbf02c58882a3f0704c26d61a327ed3430 | 1,130 | py | Python | admin/config/dump_config.py | biosimulations/hsds | bd5b659c4fcc60c4a2791b2f39750faaa9098d09 | [
"Apache-2.0"
] | 76 | 2019-01-03T18:14:01.000Z | 2022-03-28T20:09:42.000Z | admin/config/dump_config.py | biosimulations/hsds | bd5b659c4fcc60c4a2791b2f39750faaa9098d09 | [
"Apache-2.0"
] | 104 | 2019-01-01T17:09:52.000Z | 2022-03-31T17:53:48.000Z | admin/config/dump_config.py | biosimulations/hsds | bd5b659c4fcc60c4a2791b2f39750faaa9098d09 | [
"Apache-2.0"
] | 41 | 2019-01-30T13:58:16.000Z | 2022-02-23T13:13:01.000Z | # this script can be used to validate the config and override yamls
import yaml
yml_file = "config.yml"
try:
with open(yml_file, "r") as f:
<<<<<<< HEAD
yml_config = yaml.load(f)
=======
yml_config = yaml.safe_load(f)
>>>>>>> master
except FileNotFoundError as fnfe:
msg = f"Unable to find conf... | 24.565217 | 67 | 0.622124 | 164 | 1,130 | 4.189024 | 0.292683 | 0.052402 | 0.075691 | 0.040757 | 0.544396 | 0.509461 | 0.509461 | 0.509461 | 0.509461 | 0.509461 | 0 | 0 | 0.232743 | 1,130 | 45 | 68 | 25.111111 | 0.792388 | 0.057522 | 0 | 0.55 | 0 | 0 | 0.206021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9456bb53d3712851432e164374f9b687c0f3881 | 2,319 | py | Python | vote/admin/votes.py | The-Politico/politico-civic-vote | 49348f6c8137c07e4602da184aa500cbcc09affc | [
"MIT"
] | null | null | null | vote/admin/votes.py | The-Politico/politico-civic-vote | 49348f6c8137c07e4602da184aa500cbcc09affc | [
"MIT"
] | 4 | 2018-06-27T16:56:29.000Z | 2021-06-10T20:41:56.000Z | vote/admin/votes.py | The-Politico/politico-civic-vote | 49348f6c8137c07e4602da184aa500cbcc09affc | [
"MIT"
] | null | null | null | from django import forms
from django.contrib import admin
from election.models import CandidateElection
class CustomModelChoiceField(forms.ModelChoiceField):
def label_from_instance(self, obj):
return '{} ({}): {} {}'.format(
obj.candidate.person.full_name,
obj.candidate.party.ap_... | 27.282353 | 73 | 0.639931 | 219 | 2,319 | 6.356164 | 0.287671 | 0.18319 | 0.161638 | 0.068966 | 0.364943 | 0.303161 | 0.148707 | 0 | 0 | 0 | 0 | 0 | 0.254851 | 2,319 | 84 | 74 | 27.607143 | 0.805556 | 0 | 0 | 0.086957 | 0 | 0 | 0.272962 | 0.16947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0 | 0.043478 | 0.101449 | 0.42029 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b947b53adf289c0d4abc42f10665617742b45d6e | 2,033 | py | Python | tests/fudged_files.py | movermeyer/foundry | 731405b838d4109e61cc08c28851bdca4dfce460 | [
"MIT"
] | 3 | 2015-02-06T19:43:38.000Z | 2018-08-13T16:15:00.000Z | tests/fudged_files.py | movermeyer/foundry | 731405b838d4109e61cc08c28851bdca4dfce460 | [
"MIT"
] | 3 | 2015-02-06T20:04:44.000Z | 2021-03-25T21:27:35.000Z | tests/fudged_files.py | movermeyer/foundry | 731405b838d4109e61cc08c28851bdca4dfce460 | [
"MIT"
] | 2 | 2015-02-06T19:43:24.000Z | 2018-03-05T00:47:28.000Z | import os
from contextlib import contextmanager
from io import StringIO
from copy import deepcopy
def fake_file_factory(fudged_files):
@contextmanager
def fake_file(filename, method='r'):
content = fudged_files.get(
os.path.relpath(
filename,
os.path.join(os... | 19.548077 | 62 | 0.608952 | 273 | 2,033 | 4.399267 | 0.443223 | 0.052456 | 0.023314 | 0.022481 | 0.218984 | 0.202331 | 0.202331 | 0.106578 | 0.106578 | 0.106578 | 0 | 0.091683 | 0.248893 | 2,033 | 103 | 63 | 19.737864 | 0.694826 | 0 | 0 | 0.142857 | 0 | 0 | 0.650271 | 0.022627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0 | 0.043956 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b94f79aa78fcaa2b0ec690dfc692ac07fb205afd | 253 | py | Python | python/bob/bob.py | rootulp/exercism | 312a053ad1d375752acf0fce062ee7b9c643a149 | [
"MIT"
] | 41 | 2015-02-09T18:08:45.000Z | 2022-03-06T15:23:32.000Z | python/bob/bob.py | DucChuyenSoftwareEngineer/exercism | fb7820a1ba162b888a39f1b86cbe5d3ca3b15d4f | [
"MIT"
] | 21 | 2019-12-28T17:47:06.000Z | 2021-02-27T19:43:00.000Z | python/bob/bob.py | DucChuyenSoftwareEngineer/exercism | fb7820a1ba162b888a39f1b86cbe5d3ca3b15d4f | [
"MIT"
] | 18 | 2016-04-29T14:35:12.000Z | 2021-06-23T07:32:29.000Z | def hey(phrase):
phrase = phrase.strip()
if not phrase:
return "Fine. Be that way!"
elif phrase.isupper():
return "Whoa, chill out!"
elif phrase.endswith("?"):
return "Sure."
else:
return 'Whatever.'
| 21.083333 | 35 | 0.55336 | 29 | 253 | 4.827586 | 0.689655 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312253 | 253 | 11 | 36 | 23 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.193676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b952f619ff1ef0e97a1e28039fc21fe7b744dda1 | 4,224 | py | Python | src/scripts/cluster-analysis.py | ai-ku/upos_2014 | f4723cac53b4d550d2b0c613c9577eb247c7ff4a | [
"MIT"
] | 1 | 2015-06-06T07:13:43.000Z | 2015-06-06T07:13:43.000Z | src/scripts/cluster-analysis.py | ai-ku/upos_2014 | f4723cac53b4d550d2b0c613c9577eb247c7ff4a | [
"MIT"
] | null | null | null | src/scripts/cluster-analysis.py | ai-ku/upos_2014 | f4723cac53b4d550d2b0c613c9577eb247c7ff4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# # Sample Usage
# # /work/_upos_new/run/enw[141]$ ./cluster-analysis.py enw.words.gz enw.pos.gz
# # >>> load enw.pos.gz
# # Loaded enw.pos.gz
# # >>> load type.out.gz
# # Loaded type.out.gz
# # >>> perp
# # -inf <= perp <= inf
# # -inf <= count <= inf
# # 1173766 (100.00%)
# # enw.pos.gz: 1
# ... | 29.957447 | 89 | 0.533381 | 610 | 4,224 | 3.639344 | 0.221311 | 0.010811 | 0.014414 | 0.017568 | 0.29009 | 0.280631 | 0.260811 | 0.246847 | 0.246847 | 0.246847 | 0 | 0.025565 | 0.277699 | 4,224 | 140 | 90 | 30.171429 | 0.702065 | 0.078835 | 0 | 0.306306 | 0 | 0.018018 | 0.080487 | 0.030538 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036036 | null | null | 0.126126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b957010a887d99cf440bbb73b677393304c64dd0 | 7,389 | py | Python | mcts_pure.py | awesome-archive/AlphaZero_Gomoku | 8015a52370f34ed8df54dd81e998a2a7de98d481 | [
"MIT"
] | 1 | 2018-02-27T07:40:14.000Z | 2018-02-27T07:40:14.000Z | mcts_pure.py | awesome-archive/AlphaZero_Gomoku | 8015a52370f34ed8df54dd81e998a2a7de98d481 | [
"MIT"
] | 1 | 2021-03-24T12:32:28.000Z | 2021-03-24T12:32:28.000Z | mcts_pure.py | wangmengzhi/AlphaZero_Gomoku | 5e61d8ff0622a773b219e07a1333ed70719170fa | [
"MIT"
] | 1 | 2019-04-01T12:40:32.000Z | 2019-04-01T12:40:32.000Z | # -*- coding: utf-8 -*-
"""
A pure implementation of the Monte Carlo Tree Search (MCTS)
@author: Junxiao Song
"""
import numpy as np
import copy
from operator import itemgetter
def rollout_policy_fn(board):
"""rollout_policy_fn -- a coarse, fast version of policy_fn used in the rollout phase."""
# rollout ra... | 37.318182 | 109 | 0.616592 | 1,013 | 7,389 | 4.327739 | 0.244817 | 0.013686 | 0.014827 | 0.009124 | 0.150776 | 0.128193 | 0.072993 | 0.064781 | 0.064781 | 0.021898 | 0 | 0.009436 | 0.297199 | 7,389 | 198 | 110 | 37.318182 | 0.834778 | 0.388957 | 0 | 0.138614 | 0 | 0 | 0.017362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207921 | false | 0 | 0.029703 | 0.029703 | 0.386139 | 0.019802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b95cb525e003421e5bff644a7d62d701f55d9023 | 5,104 | py | Python | gmn/src/d1_gmn/app/management/commands/view-cert.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 15 | 2016-10-28T13:56:52.000Z | 2022-01-31T19:07:49.000Z | gmn/src/d1_gmn/app/management/commands/view-cert.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 56 | 2017-03-16T03:52:32.000Z | 2022-03-12T01:05:28.000Z | gmn/src/d1_gmn/app/management/commands/view-cert.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 11 | 2016-05-31T16:22:02.000Z | 2020-10-05T14:37:10.000Z | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | 34.486486 | 100 | 0.673002 | 671 | 5,104 | 5.011923 | 0.345753 | 0.023788 | 0.023788 | 0.029141 | 0.390723 | 0.37526 | 0.329765 | 0.3146 | 0.306572 | 0.306572 | 0 | 0.014469 | 0.268809 | 5,104 | 147 | 101 | 34.721088 | 0.886656 | 0.343652 | 0 | 0 | 0 | 0 | 0.136441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.344828 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b95d11419517cd70fd50b603e1462e5b28a21ad0 | 11,434 | py | Python | basinmaker/arcgisguiwarpper/arcgis_basinmaker_old/ModifiCatchment.py | dustming/basinmaker | 9a49f4aa3daabf98fb1af61423e4c54309bd1417 | [
"Artistic-2.0"
] | 4 | 2021-04-07T19:26:55.000Z | 2022-03-26T01:03:54.000Z | basinmaker/arcgisguiwarpper/arcgis_basinmaker_old/ModifiCatchment.py | dustming/basinmaker | 9a49f4aa3daabf98fb1af61423e4c54309bd1417 | [
"Artistic-2.0"
] | 4 | 2021-04-08T04:31:06.000Z | 2021-04-09T15:02:50.000Z | basinmaker/arcgisguiwarpper/arcgis_basinmaker_old/ModifiCatchment.py | dustming/basinmaker | 9a49f4aa3daabf98fb1af61423e4c54309bd1417 | [
"Artistic-2.0"
] | null | null | null | def Nextcell(N_dir,N_row,N_col):
if N_dir[N_row,N_col] == 1:
N_nrow = N_row + 0
N_ncol = N_col + 1
elif N_dir[N_row,N_col] == 2:
N_nrow = N_row + 1
N_ncol = N_col + 1
elif N_dir[N_row,N_col] == 4:
N_nrow = N_row + 1
N_ncol = N_col + 0
elif N_dir[N_row,N_co... | 45.015748 | 172 | 0.606874 | 1,393 | 11,434 | 4.856425 | 0.202441 | 0.010052 | 0.006652 | 0.010643 | 0.425277 | 0.315595 | 0.257206 | 0.206356 | 0.193348 | 0.193348 | 0 | 0.023408 | 0.226605 | 11,434 | 253 | 173 | 45.193676 | 0.741604 | 0.049851 | 0 | 0.286957 | 0 | 0 | 0.118698 | 0.003929 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06087 | null | null | 0.004348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b961d6f10d6832681cb2dd06d14cdf275346957c | 304 | py | Python | src/a2-chat_program_FIFOs/fifo/mkfifo.py | Raymundo1/xinlei-Project_OS | 18093b015c641e45165966eab86f8f8aa3210736 | [
"MIT"
] | 1 | 2018-01-09T19:01:13.000Z | 2018-01-09T19:01:13.000Z | src/a2-chat_program_FIFOs/fifo/mkfifo.py | Raymundo1/xinlei-Project_OS | 18093b015c641e45165966eab86f8f8aa3210736 | [
"MIT"
] | null | null | null | src/a2-chat_program_FIFOs/fifo/mkfifo.py | Raymundo1/xinlei-Project_OS | 18093b015c641e45165966eab86f8f8aa3210736 | [
"MIT"
] | null | null | null | """
Author: Ray Chen
"""
import os
base_name = raw_input("Please enter your baseName: ")
for i in range(1,6):
fifo_in_name = base_name + "-" + str(i) + ".in"
fifo_out_name = base_name + "-" + str(i) + ".out"
os.system("mkfifo " + fifo_in_name)
os.system("mkfifo " + fifo_out_name)
| 17.882353 | 53 | 0.605263 | 47 | 304 | 3.659574 | 0.510638 | 0.139535 | 0.116279 | 0.174419 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.220395 | 304 | 16 | 54 | 19 | 0.7173 | 0.052632 | 0 | 0 | 0 | 0 | 0.184116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
b964e818ef6a90a965d69e774da7ce0ecef7ca15 | 27,253 | py | Python | src/ui_files/tlb6700_gui_1um.py | suryajb/instrumet_control | 96c209bc8d6a43d61fe3853e151ab01b93cc41e8 | [
"MIT"
] | 1 | 2022-03-08T18:59:32.000Z | 2022-03-08T18:59:32.000Z | src/ui_files/tlb6700_gui_1um.py | suryajb/instrument_control | 96c209bc8d6a43d61fe3853e151ab01b93cc41e8 | [
"MIT"
] | null | null | null | src/ui_files/tlb6700_gui_1um.py | suryajb/instrument_control | 96c209bc8d6a43d61fe3853e151ab01b93cc41e8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'tlb6700_gui_1um.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 i... | 69.346056 | 194 | 0.719554 | 3,347 | 27,253 | 5.608007 | 0.105766 | 0.067022 | 0.086734 | 0.042621 | 0.541183 | 0.414438 | 0.352211 | 0.27464 | 0.200693 | 0.124347 | 0 | 0.039216 | 0.159762 | 27,253 | 392 | 195 | 69.522959 | 0.780471 | 0.010274 | 0 | 0.058201 | 1 | 0.002646 | 0.113762 | 0.012757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005291 | false | 0 | 0.007937 | 0 | 0.015873 | 0 | 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 |
b96f7eb9880905f6172650c839e6473fb176b750 | 1,208 | py | Python | backend/migrations/versions/a81e5dd18927_create_table_user.py | flaviogf/match_games | 7d2c2f35749715f36855031911ba67690cea8cb1 | [
"MIT"
] | null | null | null | backend/migrations/versions/a81e5dd18927_create_table_user.py | flaviogf/match_games | 7d2c2f35749715f36855031911ba67690cea8cb1 | [
"MIT"
] | null | null | null | backend/migrations/versions/a81e5dd18927_create_table_user.py | flaviogf/match_games | 7d2c2f35749715f36855031911ba67690cea8cb1 | [
"MIT"
] | null | null | null | """create table user
Revision ID: a81e5dd18927
Revises:
Create Date: 2019-08-10 13:31:22.349098
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'a81e5dd18927'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
op.create_table('user'... | 28.093023 | 53 | 0.418874 | 103 | 1,208 | 4.854369 | 0.495146 | 0.096 | 0.11 | 0.19 | 0.288 | 0.192 | 0.192 | 0 | 0 | 0 | 0 | 0.082258 | 0.486755 | 1,208 | 42 | 54 | 28.761905 | 0.724194 | 0.110099 | 0 | 0.275862 | 0 | 0 | 0.055295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.034483 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9722ec355e50fd20f6dc101dcab9f59dd40389f | 4,253 | py | Python | tests/sentry/event_manager/interfaces/test_debug_meta.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 2 | 2019-03-04T12:45:54.000Z | 2019-03-04T12:45:55.000Z | tests/sentry/event_manager/interfaces/test_debug_meta.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 196 | 2019-06-10T08:34:10.000Z | 2022-02-22T01:26:13.000Z | tests/sentry/event_manager/interfaces/test_debug_meta.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 1 | 2017-02-09T06:36:57.000Z | 2017-02-09T06:36:57.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import pytest
from sentry.models import Event
from sentry.event_manager import EventManager
@pytest.fixture
def make_debug_meta_snapshot(insta_snapshot):
def inner(data):
mgr = EventManager(data={"debug_meta": data})
mgr.normalize()... | 28.543624 | 88 | 0.478016 | 364 | 4,253 | 5.291209 | 0.307692 | 0.070093 | 0.087747 | 0.141745 | 0.72378 | 0.692627 | 0.673936 | 0.657321 | 0.657321 | 0.657321 | 0 | 0.110543 | 0.402304 | 4,253 | 148 | 89 | 28.736486 | 0.647128 | 0.019045 | 0 | 0.515625 | 0 | 0 | 0.265052 | 0.118014 | 0 | 0 | 0.005277 | 0.006757 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.101563 | 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 |
b9741e30946266318be3ba22aaaf00b1ae3e27d0 | 397 | py | Python | employee_portal/employee_information_site/migrations/0009_auto_20210324_2117.py | Dmitriy200123/employee_portal | e06c2cfc03a5d046d5846186249c2140e7ba7814 | [
"MIT"
] | null | null | null | employee_portal/employee_information_site/migrations/0009_auto_20210324_2117.py | Dmitriy200123/employee_portal | e06c2cfc03a5d046d5846186249c2140e7ba7814 | [
"MIT"
] | null | null | null | employee_portal/employee_information_site/migrations/0009_auto_20210324_2117.py | Dmitriy200123/employee_portal | e06c2cfc03a5d046d5846186249c2140e7ba7814 | [
"MIT"
] | 1 | 2021-07-28T14:48:40.000Z | 2021-07-28T14:48:40.000Z | # Generated by Django 3.1.7 on 2021-03-24 16:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employee_information_site', '0008_auto_20210324_2116'),
]
operations = [
migrations.AlterModelOptions(
name='employee',
opti... | 22.055556 | 75 | 0.619647 | 40 | 397 | 6 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104377 | 0.251889 | 397 | 17 | 76 | 23.352941 | 0.703704 | 0.11335 | 0 | 0 | 1 | 0 | 0.262857 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9769125de11a43ad8485cb18ba2c2414bd91776 | 2,652 | py | Python | lib/args.py | lukwam/gcp-tools | 0a81b5653faf853c3b4939542127618cbdd4f5d4 | [
"MIT"
] | 18 | 2017-02-16T15:22:50.000Z | 2021-01-04T10:03:06.000Z | lib/args.py | lukwam/gcp-tools | 0a81b5653faf853c3b4939542127618cbdd4f5d4 | [
"MIT"
] | 3 | 2017-06-12T22:18:26.000Z | 2018-04-02T03:07:11.000Z | lib/args.py | lukwam/gcp-tools | 0a81b5653faf853c3b4939542127618cbdd4f5d4 | [
"MIT"
] | 10 | 2017-06-15T03:10:52.000Z | 2022-03-16T03:52:47.000Z | #!/usr/bin/env python
"""Functions for working with command-line arguments."""
def create_arg_parser():
"""Return an parser that handles all the arguments."""
import argparse
# create a new argument parser
parser = argparse.ArgumentParser(
description='Create projects'
)
apis_example... | 22.474576 | 76 | 0.548643 | 270 | 2,652 | 5.27037 | 0.37037 | 0.082221 | 0.155306 | 0.185524 | 0.253689 | 0.107519 | 0.056219 | 0 | 0 | 0 | 0 | 0.022976 | 0.310709 | 2,652 | 117 | 77 | 22.666667 | 0.75547 | 0.06825 | 0 | 0.382979 | 0 | 0 | 0.323027 | 0.085435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0.010638 | 0 | 0.031915 | 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 |
b9878f79e652ab6e7f5eb93d8437f4216f752f36 | 10,344 | py | Python | digi/models.py | HotStew/digihel | 3a53f6542b41c64c818fa34cc0709cdbfb8055db | [
"MIT"
] | null | null | null | digi/models.py | HotStew/digihel | 3a53f6542b41c64c818fa34cc0709cdbfb8055db | [
"MIT"
] | null | null | null | digi/models.py | HotStew/digihel | 3a53f6542b41c64c818fa34cc0709cdbfb8055db | [
"MIT"
] | null | null | null | from blog.models import BlogCategory, BlogIndexPage, BlogPage
from django.db import models
from django.utils.translation import ugettext_lazy as _
from modelcluster.fields import ParentalKey
from modelcluster.models import ClusterableModel
from wagtail.admin.edit_handlers import (
FieldPanel, InlinePanel, MultiFiel... | 33.367742 | 118 | 0.670437 | 1,103 | 10,344 | 6.095195 | 0.206709 | 0.044623 | 0.038673 | 0.050573 | 0.419604 | 0.380931 | 0.327532 | 0.286479 | 0.229957 | 0.193664 | 0 | 0.006803 | 0.204176 | 10,344 | 309 | 119 | 33.475728 | 0.809888 | 0.002224 | 0 | 0.295547 | 0 | 0 | 0.111929 | 0.006881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068826 | false | 0 | 0.068826 | 0.052632 | 0.562753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9905cb71c940236a66d891a9bfd1c016b766f8c | 1,389 | py | Python | tests/api/test_moon_api.py | doobrie/flask-api-template | f816d8af8633f5eabb9c8b611841a77cf6cd7c9b | [
"MIT"
] | null | null | null | tests/api/test_moon_api.py | doobrie/flask-api-template | f816d8af8633f5eabb9c8b611841a77cf6cd7c9b | [
"MIT"
] | null | null | null | tests/api/test_moon_api.py | doobrie/flask-api-template | f816d8af8633f5eabb9c8b611841a77cf6cd7c9b | [
"MIT"
] | null | null | null | from application.factory import create_app
import pytest
from ..context import application
@pytest.fixture
def client():
return create_app().test_client()
def test_home_route(client):
response = client.get('/moon/')
assert response.get_json() == 'Moon API', 'Route should return "Moon API"'
... | 37.540541 | 95 | 0.676746 | 191 | 1,389 | 4.78534 | 0.240838 | 0.108315 | 0.147702 | 0.11488 | 0.42779 | 0.251641 | 0.159737 | 0.080963 | 0 | 0 | 0 | 0.029488 | 0.169906 | 1,389 | 36 | 96 | 38.583333 | 0.763226 | 0 | 0 | 0 | 0 | 0 | 0.281596 | 0.016999 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.192308 | false | 0 | 0.115385 | 0.038462 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
b998260b58a21c3a4487ea6d7b726cd8c5c8a265 | 1,247 | py | Python | tests/test_boolean.py | sobolevn/phantom-types | f9a5fe6ad2cb340a812d644f1c0eb8953deb7bce | [
"MIT"
] | 75 | 2020-04-02T08:42:29.000Z | 2022-03-30T14:12:47.000Z | tests/test_boolean.py | sobolevn/phantom-types | f9a5fe6ad2cb340a812d644f1c0eb8953deb7bce | [
"MIT"
] | 136 | 2020-03-26T21:35:58.000Z | 2022-03-22T08:49:14.000Z | tests/test_boolean.py | antonagestam/dependent-types | 0461b69c5f38579183b47d40c139e914314e7cd9 | [
"MIT"
] | 4 | 2021-07-06T05:29:29.000Z | 2022-03-09T19:28:50.000Z | import pytest
from phantom.boolean import Falsy
from phantom.boolean import Truthy
parametrize_truthy = pytest.mark.parametrize("v", (object(), ("a",), 1, True))
parametrize_falsy = pytest.mark.parametrize("v", ((), 0, False))
class TestTruthy:
@parametrize_truthy
def test_truthy_value_is_instance(self, v):... | 27.108696 | 78 | 0.710505 | 160 | 1,247 | 5.2625 | 0.21875 | 0.066508 | 0.092637 | 0.135392 | 0.674584 | 0.527316 | 0.527316 | 0.306413 | 0.218527 | 0.218527 | 0 | 0.002008 | 0.201283 | 1,247 | 45 | 79 | 27.711111 | 0.843373 | 0 | 0 | 0.363636 | 0 | 0 | 0.002406 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.242424 | false | 0 | 0.090909 | 0 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b99d1bbb728a1e20501dc061d7ad0991a96f814a | 3,376 | py | Python | mnist_to_svhn/main_mnist_to_svhn.py | guy-oren/OneShotTranslationExt | b4a8c54105f7f41e71f86a6aa285ec702fee09eb | [
"MIT"
] | 2 | 2018-11-12T20:29:49.000Z | 2019-01-18T15:16:08.000Z | mnist_to_svhn/main_mnist_to_svhn.py | guy-oren/OneShotTranslationExt | b4a8c54105f7f41e71f86a6aa285ec702fee09eb | [
"MIT"
] | null | null | null | mnist_to_svhn/main_mnist_to_svhn.py | guy-oren/OneShotTranslationExt | b4a8c54105f7f41e71f86a6aa285ec702fee09eb | [
"MIT"
] | null | null | null | import argparse
import logging
import os
from torch.backends import cudnn
from data_loader_svhn_mnist import get_loader
from solver_mnist_to_svhn import Solver
def str2bool(v):
return v.lower() in ('true')
def main(config):
svhn_loader, mnist_loader, svhn_test_loader, mnist_test_loader = get_loader(config)... | 40.190476 | 87 | 0.712974 | 467 | 3,376 | 4.91863 | 0.259101 | 0.129299 | 0.244232 | 0.052242 | 0.291685 | 0.21158 | 0.191554 | 0.088376 | 0.034828 | 0 | 0 | 0.020261 | 0.137441 | 3,376 | 83 | 88 | 40.674699 | 0.768544 | 0.025178 | 0 | 0 | 0 | 0 | 0.163725 | 0.017651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.095238 | 0.015873 | 0.142857 | 0.015873 | 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 |
b99fcd7f6235ce92970bccc05f454c1d1a24a50f | 1,330 | py | Python | bin/sympy_time.py | Michal-Gagala/sympy | 3cc756c2af73b5506102abaeefd1b654e286e2c8 | [
"MIT"
] | null | null | null | bin/sympy_time.py | Michal-Gagala/sympy | 3cc756c2af73b5506102abaeefd1b654e286e2c8 | [
"MIT"
] | null | null | null | bin/sympy_time.py | Michal-Gagala/sympy | 3cc756c2af73b5506102abaeefd1b654e286e2c8 | [
"MIT"
] | null | null | null | from __future__ import print_function
import time
from get_sympy import path_hack
path_hack()
seen = set()
import_order = []
elapsed_times = {}
level = 0
parent = None
children = {}
def new_import(name, globals={}, locals={}, fromlist=[]):
global level, parent
if name in seen:
retur... | 25.09434 | 76 | 0.62782 | 172 | 1,330 | 4.604651 | 0.302326 | 0.055556 | 0.064394 | 0.087121 | 0.203283 | 0.164141 | 0.078283 | 0 | 0 | 0 | 0 | 0.012758 | 0.233835 | 1,330 | 52 | 77 | 25.576923 | 0.764475 | 0 | 0 | 0.046512 | 0 | 0 | 0.057903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.302326 | 0 | 0.372093 | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9a052e8e8b7422cc339fde25d1760ee92cbcbd2 | 558 | py | Python | FlclModbusService/examples/walchem/test_gateway.py | fieldcloud/ModbusService | 203f17e88ef5b58d3de4b1a9f231d324924bb51d | [
"MIT"
] | null | null | null | FlclModbusService/examples/walchem/test_gateway.py | fieldcloud/ModbusService | 203f17e88ef5b58d3de4b1a9f231d324924bb51d | [
"MIT"
] | null | null | null | FlclModbusService/examples/walchem/test_gateway.py | fieldcloud/ModbusService | 203f17e88ef5b58d3de4b1a9f231d324924bb51d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from FlclModbus.FlclModbusGateway import FlclModbusGateway
from twisted.internet import reactor, defer
import sys
@defer.inlineCallbacks
def _test(gtw):
print 'do action'
r = yield gtw.execute_action('test1', 'demo_1')
print 'result:'
print r
print 'action done'
try:
... | 20.666667 | 58 | 0.673835 | 66 | 558 | 5.515152 | 0.651515 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006865 | 0.216846 | 558 | 26 | 59 | 21.461538 | 0.826087 | 0.035842 | 0 | 0 | 0 | 0 | 0.158582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.15 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9a1456bb8ebe3561646f12a66d1bd035a2612ee | 3,038 | py | Python | social_auth/fields.py | thesealion/django-social-auth | 1ce88367fa65fa6c1c8a8dd08b47aa2b10ca77e5 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | social_auth/fields.py | thesealion/django-social-auth | 1ce88367fa65fa6c1c8a8dd08b47aa2b10ca77e5 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | social_auth/fields.py | thesealion/django-social-auth | 1ce88367fa65fa6c1c8a8dd08b47aa2b10ca77e5 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | import json
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.encoding import smart_unicode
class SubfieldBase(type):
"""
A metaclass for custom Field subclasses. This ensures the model's attribute
has the descriptor protocol attached to it.
"""
def ... | 31.978947 | 79 | 0.647136 | 383 | 3,038 | 4.950392 | 0.32376 | 0.050633 | 0.07173 | 0.033228 | 0.173523 | 0.12289 | 0.12289 | 0.093354 | 0.093354 | 0.066456 | 0 | 0 | 0.268598 | 3,038 | 94 | 80 | 32.319149 | 0.853285 | 0 | 0 | 0.245283 | 0 | 0 | 0.009364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | 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 |
b9a751a376da8f68933a541cd8a7c7e27073bcec | 7,364 | py | Python | scripts/dvrk_psm_test.py | jhu-dvrk/ros2_dvrk_python | a0bcf4562cbec103aa31ba2d38eec2479a06986c | [
"MIT"
] | null | null | null | scripts/dvrk_psm_test.py | jhu-dvrk/ros2_dvrk_python | a0bcf4562cbec103aa31ba2d38eec2479a06986c | [
"MIT"
] | null | null | null | scripts/dvrk_psm_test.py | jhu-dvrk/ros2_dvrk_python | a0bcf4562cbec103aa31ba2d38eec2479a06986c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Author: Anton Deguet
# Date: 2015-02-22
# (C) Copyright 2015-2022 Johns Hopkins University (JHU), All Rights Reserved.
# --- begin cisst license - do not edit ---
# This software is provided "as is" under an open source license, with
# no warranty. The complete license can be found in licen... | 36.636816 | 126 | 0.618821 | 999 | 7,364 | 4.456456 | 0.268268 | 0.051887 | 0.026954 | 0.039308 | 0.32053 | 0.276954 | 0.21451 | 0.169137 | 0.16195 | 0.115004 | 0 | 0.020367 | 0.266567 | 7,364 | 200 | 127 | 36.82 | 0.803925 | 0.208447 | 0 | 0.231343 | 1 | 0 | 0.169287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0.007463 | 0.067164 | 0 | 0.119403 | 0.171642 | 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 |
b9a7d3077d2458ac12c88675558024a685783d6f | 1,275 | py | Python | apps/data_taking_scripts/2018-05-efield3/heterodyne_scan_measurement_roach2.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | apps/data_taking_scripts/2018-05-efield3/heterodyne_scan_measurement_roach2.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | apps/data_taking_scripts/2018-05-efield3/heterodyne_scan_measurement_roach2.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | import time
import numpy as np
from kid_readout.interactive import *
from kid_readout.measurement import acquire
from kid_readout.roach import r2heterodyne, attenuator, hardware_tools
logger.setLevel(logging.DEBUG)
setup = hardware.Hardware()
ri = hardware_tools.r2h14_with_mk2(initialize=True, use_config=False)
r... | 26.020408 | 107 | 0.697255 | 204 | 1,275 | 4.176471 | 0.514706 | 0.035211 | 0.049296 | 0.030516 | 0.117371 | 0.056338 | 0.056338 | 0.056338 | 0.056338 | 0 | 0 | 0.054579 | 0.152157 | 1,275 | 49 | 108 | 26.020408 | 0.73358 | 0.04 | 0 | 0 | 0 | 0 | 0.064595 | 0.02453 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9a889806a53f4507212d8aa93d01730615f4b61 | 282 | py | Python | exercicios/ex031.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | exercicios/ex031.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | exercicios/ex031.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | distancia = int(input('qual a distância da sua viagem em km?: '))
if distancia <= 200:
valor = distancia * 0.50
else:
valor = distancia * 0.45
print('você esta preste a iniciar uma viagem de {}Km.'.format(distancia))
print('e o preço de sua viagem sera de {}'.format(valor)) | 40.285714 | 73 | 0.684397 | 46 | 282 | 4.195652 | 0.652174 | 0.093264 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.180851 | 282 | 7 | 74 | 40.285714 | 0.796537 | 0 | 0 | 0 | 0 | 0 | 0.420495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b5a2cb650de0028f3b2df5d2a206f43aa1a7d9 | 800 | py | Python | nz_django/day5/orm_homework/front/models.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | null | null | null | nz_django/day5/orm_homework/front/models.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 27 | 2020-02-12T07:55:58.000Z | 2022-03-12T00:19:09.000Z | nz_django/day5/orm_homework/front/models.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 2 | 2020-02-18T01:54:55.000Z | 2020-02-21T11:36:28.000Z | from django.db import models
class Student(models.Model):
"""学生表"""
name = models.CharField(max_length=100)
gender = models.SmallIntegerField()
class Meta:
db_table = 'student'
class Course(models.Model):
"""课程表"""
name = models.CharField(max_length=100)
teacher = models.ForeignKe... | 24.242424 | 78 | 0.66 | 96 | 800 | 5.385417 | 0.34375 | 0.085106 | 0.085106 | 0.123791 | 0.179884 | 0.179884 | 0 | 0 | 0 | 0 | 0 | 0.014129 | 0.20375 | 800 | 32 | 79 | 25 | 0.797488 | 0.01875 | 0 | 0.333333 | 0 | 0 | 0.058901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.809524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9b61815280f87ba4d640ad5183bd142d4f73f2c | 1,874 | py | Python | trove/tests/scenario/runners/instance_upgrade_runners.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 1 | 2017-11-24T10:28:48.000Z | 2017-11-24T10:28:48.000Z | trove/tests/scenario/runners/instance_upgrade_runners.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | trove/tests/scenario/runners/instance_upgrade_runners.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Copyright 2015 Tesora Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 39.041667 | 78 | 0.728922 | 254 | 1,874 | 5.153543 | 0.440945 | 0.045837 | 0.061115 | 0.055004 | 0.273491 | 0.215432 | 0.153552 | 0.153552 | 0.153552 | 0.153552 | 0 | 0.007261 | 0.191569 | 1,874 | 47 | 79 | 39.87234 | 0.856766 | 0.31857 | 0 | 0.125 | 0 | 0 | 0.034865 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.208333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b676180514403ee5adcf6658b10f89d41b4e86 | 538 | py | Python | setup.py | jkclem/chowtest | f73f185dadcbb14e567ce65f942e6c8bdb432d4d | [
"MIT"
] | 8 | 2019-09-25T10:32:27.000Z | 2022-03-29T17:08:07.000Z | setup.py | jkclem/chowtest | f73f185dadcbb14e567ce65f942e6c8bdb432d4d | [
"MIT"
] | 2 | 2021-03-03T13:19:28.000Z | 2022-03-21T18:04:27.000Z | setup.py | jkclem/chowtest | f73f185dadcbb14e567ce65f942e6c8bdb432d4d | [
"MIT"
] | 5 | 2020-02-19T18:08:09.000Z | 2022-03-07T14:52:27.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 20 12:18:17 2019
@author: jkcle
"""
from setuptools import setup
setup(name='chowtest',
version=' 1.0',
description='Package to test for structural breaks at a specified date.',
url='https://github.com/jkclem/chowtest',
author='John ... | 25.619048 | 80 | 0.592937 | 62 | 538 | 5.096774 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0475 | 0.256506 | 538 | 21 | 81 | 25.619048 | 0.7425 | 0.137546 | 0 | 0 | 0 | 0 | 0.400458 | 0.05492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9bd365e4b475acf4f8514ec4e26a45ec0e010f9 | 887 | py | Python | cloudinary/compat.py | ilyatikhonov/pycloudinary | ae9db89c47bf0636b33e29377b8ee38be5973b99 | [
"MIT"
] | null | null | null | cloudinary/compat.py | ilyatikhonov/pycloudinary | ae9db89c47bf0636b33e29377b8ee38be5973b99 | [
"MIT"
] | null | null | null | cloudinary/compat.py | ilyatikhonov/pycloudinary | ae9db89c47bf0636b33e29377b8ee38be5973b99 | [
"MIT"
] | null | null | null | # Copyright Cloudinary
import six.moves.urllib.parse
urlencode = six.moves.urllib.parse.urlencode
unquote = six.moves.urllib.parse.unquote
urlparse = six.moves.urllib.parse.urlparse
parse_qs = six.moves.urllib.parse.parse_qs
quote_plus = six.moves.urllib.parse.quote_plus
httplib = six.moves.http_client
from six import ... | 26.088235 | 52 | 0.72717 | 125 | 887 | 5.04 | 0.416 | 0.114286 | 0.155556 | 0.180952 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.1646 | 887 | 33 | 53 | 26.878788 | 0.842105 | 0.022548 | 0 | 0.142857 | 0 | 0 | 0.013873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.071429 | 0.214286 | 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 |
b9bdb4b3893c9e108851f3b6d5f4a7477d711bb6 | 9,179 | py | Python | dev/csg/ray.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | dev/csg/ray.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | dev/csg/ray.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | #!/usr/bin/env python
#
# Copyright (c) 2019 Opticks Team. All Rights Reserved.
#
# This file is part of Opticks
# (see https://bitbucket.org/simoncblyth/opticks).
#
# 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... | 27.564565 | 110 | 0.535897 | 1,437 | 9,179 | 3.320111 | 0.179541 | 0.010061 | 0.029344 | 0.015091 | 0.355481 | 0.291553 | 0.259904 | 0.237267 | 0.21463 | 0.197233 | 0 | 0.050985 | 0.30341 | 9,179 | 332 | 111 | 27.64759 | 0.695183 | 0.101754 | 0 | 0.30303 | 0 | 0.005051 | 0.01614 | 0.00654 | 0 | 0 | 0.001252 | 0 | 0.015152 | 0 | null | null | 0.030303 | 0.015152 | null | null | 0.005051 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9bf270dd952fc6509f72675e18d86f9983b6910 | 1,458 | py | Python | validation/conformations/generateTrajectoryWithDiffuseClusters.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 10 | 2015-03-07T09:00:06.000Z | 2019-01-25T15:00:59.000Z | validation/conformations/generateTrajectoryWithDiffuseClusters.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 6 | 2015-01-08T11:17:14.000Z | 2018-10-08T15:17:32.000Z | validation/conformations/generateTrajectoryWithDiffuseClusters.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 11 | 2015-03-02T11:13:24.000Z | 2022-02-22T16:21:56.000Z | """
Created on 10/09/2012
@author: victor
"""
import sys
import prody
import numpy
import numpy.random
from validation.conformations.generateTrajectoryWithNaturalClusters import preprocess_pdb,\
print_matrix
MIN_SIMILARITY = 0.05
MAX_SIMILARITY = 0.6
MAX_TRIES = 20
if __name__ == '__main__':
pdb, input_coor... | 35.560976 | 111 | 0.687929 | 173 | 1,458 | 5.572254 | 0.485549 | 0.067427 | 0.020747 | 0.03527 | 0.047718 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015901 | 0.223594 | 1,458 | 40 | 112 | 36.45 | 0.835689 | 0.144719 | 0 | 0 | 1 | 0 | 0.018578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 0 | 0.192308 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c0ad64f1cf1762d81e40dce740e5bcd040f4a2 | 297 | py | Python | app/appCore.py | julienkellerhals/OverView | b9058290cd07869ee6122aee311d466e3abc3e0b | [
"MIT"
] | null | null | null | app/appCore.py | julienkellerhals/OverView | b9058290cd07869ee6122aee311d466e3abc3e0b | [
"MIT"
] | 7 | 2020-07-17T06:42:37.000Z | 2022-02-26T11:37:24.000Z | app/appCore.py | julienkellerhals/OverView | b9058290cd07869ee6122aee311d466e3abc3e0b | [
"MIT"
] | null | null | null | from flask import Flask
from flask_cors import CORS
app = Flask(__name__)
cors = CORS(app, resources={r"/*": {"origins": "*"}})
@app.route("/")
def hello():
return 'Hi from root'
@app.route('/connector/<conn>')
def createCon(conn):
return conn
if __name__ == "__main__":
app.run()
| 17.470588 | 53 | 0.643098 | 40 | 297 | 4.45 | 0.525 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16835 | 297 | 16 | 54 | 18.5625 | 0.720648 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b9c323248989f8a2a2e31881bb52f577606c1a26 | 2,783 | py | Python | bikeshed/update/updateBackRefs.py | tidoust/bikeshed | 39652c9ea7fd5d09639da5e1182cd481b0c5ae70 | [
"CC0-1.0"
] | null | null | null | bikeshed/update/updateBackRefs.py | tidoust/bikeshed | 39652c9ea7fd5d09639da5e1182cd481b0c5ae70 | [
"CC0-1.0"
] | null | null | null | bikeshed/update/updateBackRefs.py | tidoust/bikeshed | 39652c9ea7fd5d09639da5e1182cd481b0c5ae70 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import io
import json
import re
import os
import urllib2
from collections import defaultdict
from contextlib import closing
from .. import biblio
from .. import config
from ..htmlhelpers import *
from ..apiclient.apiclient import apiclient
from ... | 30.922222 | 96 | 0.592167 | 305 | 2,783 | 5.367213 | 0.455738 | 0.015272 | 0.012217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009684 | 0.295005 | 2,783 | 90 | 97 | 30.922222 | 0.824669 | 0.045275 | 0 | 0 | 0 | 0 | 0.055011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.202703 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.