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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb315158162ce2402ce6764027f9d796e399e43d | 637 | py | Python | example/test_to_pandas.py | hjbolide/pdf-table-extract | f099d1d6bc368a7d656199210da8246d3555a37a | [
"MIT"
] | null | null | null | example/test_to_pandas.py | hjbolide/pdf-table-extract | f099d1d6bc368a7d656199210da8246d3555a37a | [
"MIT"
] | null | null | null | example/test_to_pandas.py | hjbolide/pdf-table-extract | f099d1d6bc368a7d656199210da8246d3555a37a | [
"MIT"
] | 1 | 2019-09-15T22:48:54.000Z | 2019-09-15T22:48:54.000Z | import pandas as pd
import pdftableextract as pdf
pages = ["1"]
cells = [pdf.process_page("example.pdf",p) for p in pages]
#flatten the cells structure
cells = [item for sublist in cells for item in sublist ]
#without any options, process_page picks up a blank table at the top of the page.
#so choose table '1'
li = ... | 30.333333 | 95 | 0.717425 | 119 | 637 | 3.806723 | 0.504202 | 0.02649 | 0.01766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024575 | 0.169545 | 637 | 20 | 96 | 31.85 | 0.831758 | 0.488226 | 0 | 0 | 0 | 0 | 0.037618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb3319e226a2e41120132b2c883929f2e6c64c37 | 1,406 | py | Python | rangersdk/dslclient/dsl_sign.py | volcengine/datafinder-sdk-openapi-py | d2422dcbde83c3787098a974048f8c0a2e867f8b | [
"Apache-2.0"
] | null | null | null | rangersdk/dslclient/dsl_sign.py | volcengine/datafinder-sdk-openapi-py | d2422dcbde83c3787098a974048f8c0a2e867f8b | [
"Apache-2.0"
] | null | null | null | rangersdk/dslclient/dsl_sign.py | volcengine/datafinder-sdk-openapi-py | d2422dcbde83c3787098a974048f8c0a2e867f8b | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
import time
import hashlib
import hmac
def _sha256_hmac(key, data):
return hmac.new(str.encode(key, 'utf-8'), str.encode(data, 'utf-8'), hashlib.sha256).hexdigest()
def _do_sign(ak, sk, expiration, text):
sign_key_info = 'ak-v1/%s/%d/%d' % (ak, int(time.time()), expiration)
sign_key = ... | 26.037037 | 100 | 0.678521 | 191 | 1,406 | 4.743456 | 0.272251 | 0.038631 | 0.02649 | 0.059603 | 0.1766 | 0.130243 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.186344 | 1,406 | 53 | 101 | 26.528302 | 0.777972 | 0.010669 | 0 | 0.055556 | 0 | 0 | 0.077754 | 0.015119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb386c484fc28462adb9b7b3cd58bdd8d82e828d | 2,538 | py | Python | tests/test_utils.py | emillion/zimsoap | d1ea2eb4d50f263c9a16e5549af03f1eff3e295e | [
"Apache-2.0"
] | 11 | 2015-02-15T23:52:56.000Z | 2021-05-06T18:05:24.000Z | tests/test_utils.py | emillion/zimsoap | d1ea2eb4d50f263c9a16e5549af03f1eff3e295e | [
"Apache-2.0"
] | 25 | 2015-01-14T11:27:51.000Z | 2016-09-07T14:06:52.000Z | tests/test_utils.py | emillion/zimsoap | d1ea2eb4d50f263c9a16e5549af03f1eff3e295e | [
"Apache-2.0"
] | 10 | 2015-08-12T14:45:17.000Z | 2021-12-08T23:40:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
""" Unittests for zimsoap.utils """
import unittest
from six import text_type
import zimsoap
from zimsoap import utils
class ZimsoapUtilsTests(unittest.TestCase):
def testValidZuuid(self):
self.assertTrue(zimsoap.uti... | 30.578313 | 73 | 0.598109 | 289 | 2,538 | 5.051903 | 0.32872 | 0.060274 | 0.05274 | 0.05137 | 0.316438 | 0.25411 | 0.053425 | 0.053425 | 0 | 0 | 0 | 0.063191 | 0.251773 | 2,538 | 82 | 74 | 30.95122 | 0.705635 | 0.046493 | 0 | 0 | 0 | 0 | 0.163721 | 0.088384 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.210526 | false | 0 | 0.087719 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb3eb120c9211a8489be79e4d12ed48e82484c17 | 8,020 | py | Python | bcblib/scripts/generate_synth_lesions.py | chrisfoulon/BCBGLib | 42d15380dbfc6842cb162b233c2d5d17f7ccf48e | [
"BSD-3-Clause"
] | null | null | null | bcblib/scripts/generate_synth_lesions.py | chrisfoulon/BCBGLib | 42d15380dbfc6842cb162b233c2d5d17f7ccf48e | [
"BSD-3-Clause"
] | null | null | null | bcblib/scripts/generate_synth_lesions.py | chrisfoulon/BCBGLib | 42d15380dbfc6842cb162b233c2d5d17f7ccf48e | [
"BSD-3-Clause"
] | null | null | null | """
Generate matched synthetic lesions dataset
Authors: Chris Foulon & Michel Thiebaut de Scotten
"""
import os
import argparse
import random
import numpy as np
import json
import csv
import nibabel as nib
import nilearn
from nilearn.masking import compute_multi_background_mask, intersect_masks
from nilearn.image imp... | 47.176471 | 120 | 0.632294 | 1,115 | 8,020 | 4.326457 | 0.265471 | 0.017413 | 0.014511 | 0.017413 | 0.148632 | 0.089967 | 0.049959 | 0.049959 | 0.044362 | 0.031095 | 0 | 0.057431 | 0.246633 | 8,020 | 169 | 121 | 47.455621 | 0.74098 | 0.112718 | 0 | 0.074627 | 1 | 0 | 0.126673 | 0.006059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037313 | false | 0 | 0.08209 | 0 | 0.149254 | 0.044776 | 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 |
bb4381beaf1611f364d321fa772787668cc25c4e | 1,213 | py | Python | util.py | mobarski/smash | a3e622019ea5e0d77232d3d37531ef6b3add2dd4 | [
"MIT"
] | null | null | null | util.py | mobarski/smash | a3e622019ea5e0d77232d3d37531ef6b3add2dd4 | [
"MIT"
] | null | null | null | util.py | mobarski/smash | a3e622019ea5e0d77232d3d37531ef6b3add2dd4 | [
"MIT"
] | null | null | null | import re
def flag(value):
"convert value to integer bool type"
s = str(value).strip().lower()
is_true = s in "yes y true t on 1".split(' ')
return int(is_true)
def join(lst,dlm='',fmt="{0}",strip=True):
if strip:
lst = [x.strip() if hasattr(x,"strip") else x for x in lst]
return dlm.join([fmt.format(x) for x... | 23.326923 | 61 | 0.638912 | 207 | 1,213 | 3.52657 | 0.352657 | 0.068493 | 0.024658 | 0.019178 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010848 | 0.164056 | 1,213 | 51 | 62 | 23.784314 | 0.709073 | 0.116241 | 0 | 0.073171 | 0 | 0 | 0.115455 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.146341 | false | 0.02439 | 0.02439 | 0 | 0.292683 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bb49921d1bbc530e8bea213f23ca7223cc9394ad | 3,907 | py | Python | src/wai/common/cli/util/_flags.py | waikato-datamining/wai-common | bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34 | [
"MIT"
] | null | null | null | src/wai/common/cli/util/_flags.py | waikato-datamining/wai-common | bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34 | [
"MIT"
] | 8 | 2020-07-01T02:11:31.000Z | 2020-12-17T01:57:17.000Z | src/wai/common/cli/util/_flags.py | waikato-datamining/wai-common | bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34 | [
"MIT"
] | null | null | null | """
Module for utilities for dealing with flags.
"""
from typing import Optional
from ..constants import SHORT_FLAG_PREFIX, LONG_FLAG_PREFIX
def is_flag(flag: str) -> bool:
"""
Checks if the given string is a valid short/long flag.
:param flag: The string to check.
:return: True if it is a... | 29.598485 | 96 | 0.62324 | 582 | 3,907 | 4.068729 | 0.151203 | 0.079814 | 0.040541 | 0.040541 | 0.57897 | 0.527027 | 0.45228 | 0.405405 | 0.327703 | 0.296453 | 0 | 0.00357 | 0.283082 | 3,907 | 131 | 97 | 29.824427 | 0.841842 | 0.402355 | 0 | 0.093023 | 0 | 0 | 0.301312 | 0.019681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.046512 | 0 | 0.627907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb4f205475c0730cfad75a74f963e5e0da723302 | 17,414 | py | Python | plugins/modules/oci_network_drg_attachment_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_network_drg_attachment_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_network_drg_attachment_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 41.461905 | 160 | 0.614506 | 1,896 | 17,414 | 5.512131 | 0.185654 | 0.024113 | 0.03081 | 0.044015 | 0.569802 | 0.522438 | 0.450962 | 0.372309 | 0.342551 | 0.323988 | 0 | 0.011248 | 0.295452 | 17,414 | 419 | 161 | 41.560859 | 0.840574 | 0.023774 | 0 | 0.338624 | 0 | 0.068783 | 0.804627 | 0.091712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013228 | false | 0.002646 | 0.015873 | 0.007937 | 0.044974 | 0.002646 | 0 | 0 | 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 |
bb50bd453f436af374d4821d4b1002c1f256a445 | 1,921 | py | Python | src/models.py | kazqvaizer/where_is_the_cash_tinkoffski_bot | a4284d570b58458db27fbe7ba8334f59d61ece56 | [
"MIT"
] | 2 | 2022-03-17T07:08:29.000Z | 2022-03-27T06:50:31.000Z | src/models.py | kazqvaizer/where_is_the_cash_tinkoffski_bot | a4284d570b58458db27fbe7ba8334f59d61ece56 | [
"MIT"
] | null | null | null | src/models.py | kazqvaizer/where_is_the_cash_tinkoffski_bot | a4284d570b58458db27fbe7ba8334f59d61ece56 | [
"MIT"
] | 1 | 2022-03-30T20:20:00.000Z | 2022-03-30T20:20:00.000Z | from datetime import datetime
import peewee as pw
from envparse import env
from telegram.update import Update
env.read_envfile()
db = pw.SqliteDatabase(env("DATABASE_URL"))
def _utcnow():
return datetime.utcnow()
class BaseModel(pw.Model):
created = pw.DateTimeField(default=_utcnow)
modified = pw.Dat... | 26.680556 | 71 | 0.678293 | 236 | 1,921 | 5.330508 | 0.300847 | 0.050874 | 0.059618 | 0.075517 | 0.143879 | 0.101749 | 0 | 0 | 0 | 0 | 0 | 0.000665 | 0.217074 | 1,921 | 71 | 72 | 27.056338 | 0.835771 | 0 | 0 | 0.039216 | 0 | 0 | 0.016137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.078431 | 0.039216 | 0.607843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
246fc8d306ede79c462b4c25c2a43427bef0a0cf | 335 | py | Python | setup.py | HelloChatterbox/padacioso | 76ea623efda67f87588ca7a75b15edbe83aca03b | [
"Apache-2.0"
] | null | null | null | setup.py | HelloChatterbox/padacioso | 76ea623efda67f87588ca7a75b15edbe83aca03b | [
"Apache-2.0"
] | null | null | null | setup.py | HelloChatterbox/padacioso | 76ea623efda67f87588ca7a75b15edbe83aca03b | [
"Apache-2.0"
] | 1 | 2021-04-30T03:14:36.000Z | 2021-04-30T03:14:36.000Z | from setuptools import setup
setup(
name='padacioso',
version='0.1.1',
packages=['padacioso'],
url='https://github.com/OpenJarbas/padacioso',
license='apache-2.0',
author='jarbasai',
author_email='jarbasai@mailfence.com',
install_requires=["simplematch"],
description='dead simple in... | 23.928571 | 50 | 0.677612 | 38 | 335 | 5.921053 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.164179 | 335 | 13 | 51 | 25.769231 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.41194 | 0.065672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24740d4817e885213631ae5e1929f8061e1da2c7 | 1,634 | py | Python | andreas/models/post.py | maaaks/andreas | a76b64bf63647c553d0b8401e03d1f518b51d349 | [
"MIT"
] | 1 | 2017-04-27T08:26:32.000Z | 2017-04-27T08:26:32.000Z | andreas/models/post.py | maaaks/andreas | a76b64bf63647c553d0b8401e03d1f518b51d349 | [
"MIT"
] | 1 | 2017-04-28T08:18:12.000Z | 2017-04-30T11:05:45.000Z | andreas/models/post.py | maaaks/andreas | a76b64bf63647c553d0b8401e03d1f518b51d349 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Any, Dict, Iterable
from peewee import Check, DateTimeField, ForeignKeyField, PrimaryKeyField, TextField, fn
from playhouse.postgres_ext import BinaryJSONField
from andreas.db.model import Model
from andreas.models.server import Server
from andreas.models.user import U... | 34.041667 | 115 | 0.657283 | 206 | 1,634 | 5.184466 | 0.567961 | 0.030899 | 0.031835 | 0.05618 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242962 | 1,634 | 48 | 116 | 34.041667 | 0.863379 | 0 | 0 | 0 | 0 | 0 | 0.086299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.259259 | 0.037037 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
24820fea819fb3990b43d524d9a2362883121a63 | 5,582 | py | Python | recgraph/crawler/wiki_crawler.py | R4chel/RecommendationGraph | dd614b5e3dbcab835b8920ba87ad95ae766e8d98 | [
"MIT"
] | 1 | 2015-11-30T01:34:09.000Z | 2015-11-30T01:34:09.000Z | recgraph/crawler/wiki_crawler.py | R4chel/RecommendationGraph | dd614b5e3dbcab835b8920ba87ad95ae766e8d98 | [
"MIT"
] | null | null | null | recgraph/crawler/wiki_crawler.py | R4chel/RecommendationGraph | dd614b5e3dbcab835b8920ba87ad95ae766e8d98 | [
"MIT"
] | null | null | null | '''
Created July 28, 2014
@author Adam Campbell, Rachel Ehrlich, Max Fowler
'''
import re
import unicodedata
import time
from py2neo import neo4j
from recgraph.settings import GRAPHDB
from enum import Enum
import pywikibot
SITE = pywikibot.getSite('en')
def crawl_pages(pages_to_crawl, depth_remaining, color=Fals... | 31.715909 | 105 | 0.63239 | 684 | 5,582 | 4.913743 | 0.209064 | 0.027075 | 0.028563 | 0.038679 | 0.284737 | 0.249926 | 0.19518 | 0.155906 | 0.155906 | 0.116632 | 0 | 0.00722 | 0.255643 | 5,582 | 175 | 106 | 31.897143 | 0.801685 | 0.00412 | 0 | 0.139706 | 0 | 0 | 0.079664 | 0.008953 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051471 | null | null | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2482b7ef3f1deb886237b0e26066c222ca2d9b91 | 452 | py | Python | cloud-runner/tests/my-mini-project/mini_project/script_local.py | flegac/deep-experiments | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | [
"MIT"
] | null | null | null | cloud-runner/tests/my-mini-project/mini_project/script_local.py | flegac/deep-experiments | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | [
"MIT"
] | null | null | null | cloud-runner/tests/my-mini-project/mini_project/script_local.py | flegac/deep-experiments | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | [
"MIT"
] | null | null | null | import json
from surili_core.pipelines import pipeline, step
from surili_core.surili_io.storage_io import StorageExport
from surili_core.workspace import Workspace
with open('config.json') as _:
config = json.load(_)
if __name__ == "__main__":
_ = Workspace.from_path('/tmp/.workspace/my_workspace')
pipel... | 26.588235 | 91 | 0.699115 | 56 | 452 | 5.25 | 0.571429 | 0.102041 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.181416 | 452 | 16 | 92 | 28.25 | 0.789189 | 0 | 0 | 0 | 0 | 0 | 0.183628 | 0.126106 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2485abe07c4a9ed84ff3e2f3176c701697e3d07e | 338 | py | Python | onlinestudies/migrations/0003_remove_course_instructor.py | exo3106/onlineStudies | 1400c4fdd01ff759daa3a3b6f927f7f1dc3aa977 | [
"Apache-2.0"
] | null | null | null | onlinestudies/migrations/0003_remove_course_instructor.py | exo3106/onlineStudies | 1400c4fdd01ff759daa3a3b6f927f7f1dc3aa977 | [
"Apache-2.0"
] | null | null | null | onlinestudies/migrations/0003_remove_course_instructor.py | exo3106/onlineStudies | 1400c4fdd01ff759daa3a3b6f927f7f1dc3aa977 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-15 15:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('onlinestudies', '0002_auto_20211115_1529'),
]
operations = [
migrations.RemoveField(
model_name='course',
name='instructor',... | 18.777778 | 53 | 0.60355 | 35 | 338 | 5.714286 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128631 | 0.286982 | 338 | 17 | 54 | 19.882353 | 0.701245 | 0.133136 | 0 | 0 | 1 | 0 | 0.178694 | 0.079038 | 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 |
2486c067205c83576f8abd540e98501cd46a443e | 3,887 | py | Python | performance.py | brennanmcfarland/arctic-flaming-monkey-typhoon | ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0 | [
"MIT"
] | null | null | null | performance.py | brennanmcfarland/arctic-flaming-monkey-typhoon | ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0 | [
"MIT"
] | null | null | null | performance.py | brennanmcfarland/arctic-flaming-monkey-typhoon | ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0 | [
"MIT"
] | null | null | null | import torch.backends as backends
import torch.cuda as cuda
import torch.nn as nn
import torch.utils.checkpoint as torchcheckpoint
from typing import Callable, Any, Union, List
from __types import Module
# TODO: move feature maps out of VRAM
# - https://medium.com/syncedreview/how-to-train-a-very-large-and-deep-mo... | 45.197674 | 119 | 0.712889 | 516 | 3,887 | 5.294574 | 0.468992 | 0.071742 | 0.029283 | 0.016837 | 0.02489 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009606 | 0.223308 | 3,887 | 85 | 120 | 45.729412 | 0.89533 | 0.450476 | 0 | 0 | 0 | 0 | 0.089573 | 0 | 0 | 0 | 0 | 0.011765 | 0.021739 | 1 | 0.130435 | false | 0 | 0.130435 | 0.043478 | 0.391304 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24875ab2ac4eece688733d496fb80c6bc8c88b6d | 7,014 | py | Python | app/user/tests/test_user_api.py | Nishita7/recipe-app-api | 8b56dec9421527488878474b6186281dae0ded1a | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | Nishita7/recipe-app-api | 8b56dec9421527488878474b6186281dae0ded1a | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | Nishita7/recipe-app-api | 8b56dec9421527488878474b6186281dae0ded1a | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
CREATE_USER_URL = reverse('user:create')
TOKEN_URL = reverse('user:token')
ME_URL = reverse('user:me')
def create_user(**params)... | 41.017544 | 79 | 0.625749 | 841 | 7,014 | 5.061831 | 0.230678 | 0.035236 | 0.05074 | 0.074935 | 0.380785 | 0.34179 | 0.320179 | 0.261687 | 0.252055 | 0.206249 | 0 | 0.008022 | 0.271315 | 7,014 | 170 | 80 | 41.258824 | 0.824888 | 0.243228 | 0 | 0.428571 | 0 | 0 | 0.093882 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.133929 | false | 0.133929 | 0.044643 | 0 | 0.205357 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2488ce8425d2e054e070d5ab91ce24fb8d65c416 | 527 | py | Python | gs/download.py | sim-pluh-fy/activemq-client | d234f736580c660c6aa8fcfd12bf8d3bb1b9d8f4 | [
"Unlicense"
] | 1 | 2016-05-16T19:03:14.000Z | 2016-05-16T19:03:14.000Z | gs/download.py | sim-pluh-fy/activemq-client | d234f736580c660c6aa8fcfd12bf8d3bb1b9d8f4 | [
"Unlicense"
] | null | null | null | gs/download.py | sim-pluh-fy/activemq-client | d234f736580c660c6aa8fcfd12bf8d3bb1b9d8f4 | [
"Unlicense"
] | null | null | null | import StringIO
import string
import json
import urllib
import os,sys,boto
from boto.gs.connection import GSConnection
from boto.s3.key import Key
import constants
# make connection to Google
conn = boto.connect_gs(constants.GS_ACCESS_KEY,constants.GS_SECRET_KEY)
in_message = sys.argv[1]
message = json.loads(urllib.... | 18.172414 | 71 | 0.793169 | 80 | 527 | 5.075 | 0.4625 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004283 | 0.113852 | 527 | 28 | 72 | 18.821429 | 0.865096 | 0.047438 | 0 | 0 | 0 | 0 | 0.024292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
248f27b7d4bc103eff185e9978065f54efa29a84 | 870 | py | Python | PacketSniffingMITM/packet-sniffer.py | Unshifted1337/Hacks | 28cfc9c29d4b2497feba9df2733fad1809834b20 | [
"MIT"
] | 1 | 2021-06-14T15:38:52.000Z | 2021-06-14T15:38:52.000Z | PacketSniffingMITM/packet-sniffer.py | retq/Hacks | 28cfc9c29d4b2497feba9df2733fad1809834b20 | [
"MIT"
] | null | null | null | PacketSniffingMITM/packet-sniffer.py | retq/Hacks | 28cfc9c29d4b2497feba9df2733fad1809834b20 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import scapy.all as scapy
from scapy.layers import http
def sniff(interface):
scapy.sniff(iface=interface, store=False, prn=process_sniffed_packet,)
def get_login_info(packet):
if packet.haslayer(scapy.Raw):
load = packet[scapy.Raw].load
keywords = ["username", "user",... | 27.1875 | 86 | 0.642529 | 110 | 870 | 4.972727 | 0.454545 | 0.082267 | 0.073126 | 0.065814 | 0.073126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225287 | 870 | 31 | 87 | 28.064516 | 0.811573 | 0.022989 | 0 | 0 | 0 | 0 | 0.144876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.1 | 0.1 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2490f16f4b6d805c9ded3e33d08dba95ee3583b5 | 2,243 | py | Python | core/blog/migrations/0001_initial.py | AliBigdeli/Django-Advance-Blog | 27d346129dba5860f32ca2f0a8d9f99c88e5d39e | [
"MIT"
] | 2 | 2022-01-11T20:26:43.000Z | 2022-02-06T05:37:36.000Z | core/blog/migrations/0001_initial.py | AliBigdeli/Django-Advance-Blog | 27d346129dba5860f32ca2f0a8d9f99c88e5d39e | [
"MIT"
] | null | null | null | core/blog/migrations/0001_initial.py | AliBigdeli/Django-Advance-Blog | 27d346129dba5860f32ca2f0a8d9f99c88e5d39e | [
"MIT"
] | null | null | null | # Generated by Django 3.2.11 on 2022-01-20 12:14
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),
]
op... | 31.152778 | 75 | 0.413286 | 158 | 2,243 | 5.721519 | 0.455696 | 0.035398 | 0.04646 | 0.073009 | 0.373894 | 0.247788 | 0.181416 | 0.181416 | 0.181416 | 0.181416 | 0 | 0.019214 | 0.489523 | 2,243 | 71 | 76 | 31.591549 | 0.770306 | 0.020508 | 0 | 0.484375 | 1 | 0 | 0.051025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046875 | 0 | 0.109375 | 0 | 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 |
24962a2c766bfce5a127c84798b7a59dbb08771f | 433 | py | Python | annotater/memetext/migrations/0009_annotationbatch_batch_message_expanded.py | stricoff92/annotater | 8ca471477e2d567945e14f09d3d763d379e7587e | [
"MIT"
] | null | null | null | annotater/memetext/migrations/0009_annotationbatch_batch_message_expanded.py | stricoff92/annotater | 8ca471477e2d567945e14f09d3d763d379e7587e | [
"MIT"
] | null | null | null | annotater/memetext/migrations/0009_annotationbatch_batch_message_expanded.py | stricoff92/annotater | 8ca471477e2d567945e14f09d3d763d379e7587e | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-19 15:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('memetext', '0008_alter_controlannotation_s3_image'),
]
operations = [
migrations.AddField(
model_name='annotationbatch',
... | 22.789474 | 62 | 0.630485 | 45 | 433 | 5.911111 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062305 | 0.258661 | 433 | 18 | 63 | 24.055556 | 0.766355 | 0.103926 | 0 | 0 | 1 | 0 | 0.212435 | 0.15285 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24a1beb04d78c9055b8d16f760cde5375a4543f8 | 1,028 | py | Python | user_profiles/migrations/0001_initial.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | user_profiles/migrations/0001_initial.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | user_profiles/migrations/0001_initial.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-10-08 21:46
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),
]
ope... | 36.714286 | 205 | 0.627432 | 113 | 1,028 | 5.575221 | 0.619469 | 0.038095 | 0.044444 | 0.069841 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022585 | 0.224708 | 1,028 | 27 | 206 | 38.074074 | 0.76788 | 0.043774 | 0 | 0 | 1 | 0 | 0.11315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.35 | 0 | 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 |
24a67de3c1366cca4b3cca2b7e840fc5db76549f | 883 | py | Python | xbrl/xml/report/trrcollection.py | blinkace/pxp | 9155103dc166674137bd0e2fddb609ca44875761 | [
"MIT"
] | 1 | 2022-01-27T14:53:23.000Z | 2022-01-27T14:53:23.000Z | xbrl/xml/report/trrcollection.py | blinkace/pxp | 9155103dc166674137bd0e2fddb609ca44875761 | [
"MIT"
] | null | null | null | xbrl/xml/report/trrcollection.py | blinkace/pxp | 9155103dc166674137bd0e2fddb609ca44875761 | [
"MIT"
] | null | null | null | from .trrv1pr import TRRv1PR
from .trrv1 import TRRv1
from .trrv2 import TRRv2
from .trrv3 import TRRv3
from .trrv4 import TRRv4
from .trrv5 import TRRv5
from xbrl.xbrlerror import XBRLError
class TRRCollection:
def __init__(self):
self.registries = dict()
def addRegistry(self, registry):
se... | 26.757576 | 120 | 0.702152 | 98 | 883 | 6.285714 | 0.357143 | 0.126623 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025496 | 0.200453 | 883 | 32 | 121 | 27.59375 | 0.847026 | 0 | 0 | 0 | 0 | 0 | 0.07701 | 0.032843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.269231 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24aad602b84a2da3949fac218f9a0c3dad567d9c | 1,305 | py | Python | candy.py | KevinLuo41/LeetCodeInPython | 051e1aab9bab17b0d63b4ca73473a7a00899a16a | [
"Apache-2.0"
] | 19 | 2015-01-19T19:36:09.000Z | 2020-03-18T03:10:12.000Z | candy.py | CodingVault/LeetCodeInPython | 051e1aab9bab17b0d63b4ca73473a7a00899a16a | [
"Apache-2.0"
] | null | null | null | candy.py | CodingVault/LeetCodeInPython | 051e1aab9bab17b0d63b4ca73473a7a00899a16a | [
"Apache-2.0"
] | 12 | 2015-04-25T14:20:38.000Z | 2020-09-27T04:59:59.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
candy.py
Created by Shengwei on 2014-07-22.
"""
# https://oj.leetcode.com/problems/candy/
# tags: hard, array, greedy, logic
"""
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the follo... | 29 | 81 | 0.610728 | 187 | 1,305 | 4.262032 | 0.55615 | 0.060226 | 0.037641 | 0.045169 | 0.122961 | 0.080301 | 0.080301 | 0 | 0 | 0 | 0 | 0.032804 | 0.275862 | 1,305 | 44 | 82 | 29.659091 | 0.810582 | 0.321839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.083333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24b0fa1c93a3675014eec186b6ed61fefe8cbc13 | 369 | py | Python | src/vocgui/migrations/0006_auto_20200825_1216.py | mael-fosso/visual-vocabulary-trainer | 1a4547dc73a1eb8df6cbacf3adbdc066b9ae2296 | [
"Apache-2.0"
] | 14 | 2021-03-10T14:20:34.000Z | 2021-11-20T11:42:06.000Z | src/vocgui/migrations/0006_auto_20200825_1216.py | mael-fosso/visual-vocabulary-trainer | 1a4547dc73a1eb8df6cbacf3adbdc066b9ae2296 | [
"Apache-2.0"
] | 149 | 2020-12-18T18:11:16.000Z | 2022-03-30T10:06:11.000Z | src/vocgui/migrations/0006_auto_20200825_1216.py | mael-fosso/visual-vocabulary-trainer | 1a4547dc73a1eb8df6cbacf3adbdc066b9ae2296 | [
"Apache-2.0"
] | 3 | 2021-04-19T15:49:18.000Z | 2022-02-14T09:04:43.000Z | # Generated by Django 3.1 on 2020-08-25 12:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vocgui', '0005_auto_20200825_1210'),
]
operations = [
migrations.RenameField(
model_name='alternativeword',
old_name='word',
... | 19.421053 | 46 | 0.593496 | 39 | 369 | 5.435897 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11583 | 0.298103 | 369 | 18 | 47 | 20.5 | 0.702703 | 0.116531 | 0 | 0 | 1 | 0 | 0.17284 | 0.070988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24b3c4c17f610c94a54f7dbc403eea1034c551f7 | 2,668 | py | Python | tools/DataBase/Definition/CompanyEarnings.py | hidura/sugelico | d3c76f358a788d5f3a891cf0a7dd7420ac3a7845 | [
"MIT"
] | null | null | null | tools/DataBase/Definition/CompanyEarnings.py | hidura/sugelico | d3c76f358a788d5f3a891cf0a7dd7420ac3a7845 | [
"MIT"
] | null | null | null | tools/DataBase/Definition/CompanyEarnings.py | hidura/sugelico | d3c76f358a788d5f3a891cf0a7dd7420ac3a7845 | [
"MIT"
] | null | null | null | ## This table will store the daily company earnings
## Of every branch inside the company.
from tools.DataBase.Connect import conection
__maintainer__ = 'Diego Hidalgo'
__email__ = 'diego@sugelico.com'
__date__ = '1/23/2019'
from sqlalchemy import Column, BIGINT, MetaData, Table
from sqlalchemy.dialects.mysql.base im... | 37.577465 | 94 | 0.652549 | 311 | 2,668 | 5.202572 | 0.302251 | 0.083436 | 0.148331 | 0.190358 | 0.355995 | 0.31026 | 0.254635 | 0.254635 | 0.23115 | 0.23115 | 0 | 0.008962 | 0.205397 | 2,668 | 70 | 95 | 38.114286 | 0.754245 | 0.031484 | 0 | 0.122449 | 0 | 0 | 0.117191 | 0.044626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0.020408 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24b52f65b858c493360acac87ba52677b69c05c0 | 3,097 | py | Python | Codepaste/settings.py | codepaste-ml/CodepasteDjango | 680e348f1462855e47e838b7e6608a2d0871d5e9 | [
"MIT"
] | 2 | 2020-02-08T20:01:19.000Z | 2020-05-15T22:34:28.000Z | Codepaste/settings.py | codepaste-ml/CodepasteDjango | 680e348f1462855e47e838b7e6608a2d0871d5e9 | [
"MIT"
] | 10 | 2019-10-26T20:29:36.000Z | 2021-03-29T21:46:19.000Z | Codepaste/settings.py | DarkKeks/Codepaste | 680e348f1462855e47e838b7e6608a2d0871d5e9 | [
"MIT"
] | 2 | 2019-10-26T20:37:21.000Z | 2019-10-27T04:25:38.000Z | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
HOST_SCHEME = 'https://'
PARENT_HOST = os.environ.get('DOMAIN')
SITE_DOMAIN = HOST_SCHEME + PARENT_HOST
SECRET_KEY = os.environ.get('SECRET_KEY')
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
DEBUG = os.environ.get("D... | 25.385246 | 91 | 0.674847 | 309 | 3,097 | 6.563107 | 0.38835 | 0.096154 | 0.053254 | 0.04931 | 0.121795 | 0.097633 | 0 | 0 | 0 | 0 | 0 | 0.002778 | 0.186309 | 3,097 | 121 | 92 | 25.595041 | 0.801984 | 0 | 0 | 0.021277 | 0 | 0 | 0.516952 | 0.39393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06383 | 0.010638 | 0 | 0.010638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24b547277ac050707d451a2b3d37611f2bc6e6a6 | 1,741 | py | Python | blog/forms.py | naritotakizawa/django-torina-blog | c90bdef64c09e1877898a5844bbcc8751eff0b2e | [
"MIT"
] | 46 | 2017-05-18T04:22:33.000Z | 2021-07-01T08:31:10.000Z | blog/forms.py | naritotakizawa/django-torina-blog | c90bdef64c09e1877898a5844bbcc8751eff0b2e | [
"MIT"
] | 45 | 2017-05-17T12:19:32.000Z | 2018-09-28T00:31:52.000Z | blog/forms.py | naritotakizawa/django-torina-blog | c90bdef64c09e1877898a5844bbcc8751eff0b2e | [
"MIT"
] | 9 | 2017-09-27T15:45:20.000Z | 2020-05-04T08:21:59.000Z | from django import forms
from django.contrib.contenttypes.forms import generic_inlineformset_factory
from .models import Comment, ReComment, File
from .fields import SimpleCaptchaField
class PostSerachForm(forms.Form):
"""記事検索フォーム"""
keyword = forms.CharField(
label='キーワード', required=False,
w... | 26.784615 | 79 | 0.552556 | 149 | 1,741 | 6.422819 | 0.362416 | 0.094044 | 0.131661 | 0.197492 | 0.529781 | 0.529781 | 0.529781 | 0.486938 | 0.486938 | 0.486938 | 0 | 0.001645 | 0.301551 | 1,741 | 65 | 80 | 26.784615 | 0.785362 | 0.01838 | 0 | 0.571429 | 0 | 0 | 0.144628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081633 | 0 | 0.244898 | 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 |
24b6a2337d60b8799ab0db187af3290e820b254e | 7,881 | py | Python | venv/lib/python3.8/site-packages/zeroconf/_cache.py | vsevolodpohvalenko/home-assistant | 4ae19b7d5d843c65ba700922c1814755257eb4e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/zeroconf/_cache.py | vsevolodpohvalenko/home-assistant | 4ae19b7d5d843c65ba700922c1814755257eb4e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/zeroconf/_cache.py | vsevolodpohvalenko/home-assistant | 4ae19b7d5d843c65ba700922c1814755257eb4e0 | [
"Apache-2.0"
] | null | null | null | """ Multicast DNS Service Discovery for Python, v0.14-wmcbrine
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine
This module provides a framework for the use of DNS Service Discovery
using IP multicast.
This library is free software; you can redistribute it and/or
modify it under the terms of... | 37.528571 | 108 | 0.654485 | 1,048 | 7,881 | 4.808206 | 0.224237 | 0.023219 | 0.011113 | 0.015281 | 0.377059 | 0.353642 | 0.302044 | 0.255408 | 0.245485 | 0.20123 | 0 | 0.004129 | 0.26253 | 7,881 | 209 | 109 | 37.708134 | 0.86287 | 0.395128 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.056818 | 0 | 0.443182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24c267a5973ea1d59edf078dc539ac84fa087342 | 1,169 | py | Python | src/word/count_words.py | TEI-EAJ/auto_aozora_tei | 5535abef680a1e186f8a7dc6efc30a1dcf4efeec | [
"CC0-1.0"
] | 3 | 2019-02-12T13:28:22.000Z | 2021-07-25T20:58:07.000Z | src/word/count_words.py | TEI-EAJ/auto_aozora_tei | 5535abef680a1e186f8a7dc6efc30a1dcf4efeec | [
"CC0-1.0"
] | null | null | null | src/word/count_words.py | TEI-EAJ/auto_aozora_tei | 5535abef680a1e186f8a7dc6efc30a1dcf4efeec | [
"CC0-1.0"
] | 1 | 2019-02-12T22:04:00.000Z | 2019-02-12T22:04:00.000Z | import xml.etree.ElementTree as ET
from bs4 import BeautifulSoup
import re
import os
import glob
from lxml import etree
import sys
from io import StringIO
import json
from rdflib import URIRef, BNode, Literal
from rdflib import Graph
g = Graph()
files = glob.glob("../../docs/data/*/files/*.xml")
prefix = ".//{http:/... | 23.38 | 87 | 0.632164 | 179 | 1,169 | 4.055866 | 0.486034 | 0.028926 | 0.044077 | 0.030303 | 0.049587 | 0.049587 | 0.049587 | 0.049587 | 0 | 0 | 0 | 0.016878 | 0.18905 | 1,169 | 49 | 88 | 23.857143 | 0.748945 | 0 | 0 | 0 | 0 | 0 | 0.167665 | 0.024808 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.323529 | 0 | 0.323529 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
24c8fcda2b50a54f4fee1fd7957bfd457ed73cf4 | 1,004 | py | Python | scripts/midigen.py | mjbremer/metalpedal | d78bb69dc660e52cb8aa097570352b492be6f1e6 | [
"MIT"
] | null | null | null | scripts/midigen.py | mjbremer/metalpedal | d78bb69dc660e52cb8aa097570352b492be6f1e6 | [
"MIT"
] | 1 | 2021-09-14T01:56:00.000Z | 2021-11-03T20:35:27.000Z | scripts/midigen.py | mjbremer/MIDIGuitar | ed68c18b771eb884286f7661f846929002d15619 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# Usage: midigen.py <MIDI FILE> <OUTPUT FILE>
# Given a MIDI file, generate a corresponding function using MIDI_On, MIDI_Off, and HAL_Delay functions
# Matthew Bremer and Mikey Brewer 2020
from mido import MidiFile
from sys import argv
if (len(argv) < 3):
print("Usage: midigen.py <MIDI FILE>... | 25.1 | 103 | 0.578685 | 136 | 1,004 | 4.191176 | 0.507353 | 0.070175 | 0.049123 | 0.063158 | 0.112281 | 0.112281 | 0.112281 | 0 | 0 | 0 | 0 | 0.018131 | 0.285857 | 1,004 | 39 | 104 | 25.74359 | 0.776848 | 0.203187 | 0 | 0 | 1 | 0 | 0.138191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.16 | 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 |
24ce3caf7b0978677dfff917f0b0f607883678bd | 977 | py | Python | app/migrations/0001_initial.py | njokuifeanyigerald/url-shortener | 537a9f66d6f6c85ae65431f17c7e5339499418c1 | [
"MIT"
] | 2 | 2021-05-25T11:43:47.000Z | 2021-07-10T06:17:33.000Z | app/migrations/0001_initial.py | njokuifeanyigerald/url-shortener | 537a9f66d6f6c85ae65431f17c7e5339499418c1 | [
"MIT"
] | null | null | null | app/migrations/0001_initial.py | njokuifeanyigerald/url-shortener | 537a9f66d6f6c85ae65431f17c7e5339499418c1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-07-06 08:57
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),
]
ope... | 33.689655 | 141 | 0.628454 | 109 | 977 | 5.513761 | 0.577982 | 0.039933 | 0.046589 | 0.073211 | 0.08985 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.24565 | 977 | 28 | 142 | 34.892857 | 0.785617 | 0.046059 | 0 | 0 | 1 | 0 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24d6f19ae449ec78426021c5bedd9718d93f7164 | 1,321 | py | Python | src/algorithms/ParticleFilter.py | JeremySilverTongue/trundl | 7eebab826feacea365dfb279f707d9cfbfb86eb2 | [
"MIT"
] | null | null | null | src/algorithms/ParticleFilter.py | JeremySilverTongue/trundl | 7eebab826feacea365dfb279f707d9cfbfb86eb2 | [
"MIT"
] | null | null | null | src/algorithms/ParticleFilter.py | JeremySilverTongue/trundl | 7eebab826feacea365dfb279f707d9cfbfb86eb2 | [
"MIT"
] | null | null | null | import random
class ParticleFilter:
def __init__(self, prior_distribution, particle_count=1000):
self.particle_count = particle_count
self.particles = [prior_distribution() for _ in xrange(particle_count)]
def move(self, movement, movement_model):
self.particles = [movement_model(part... | 37.742857 | 96 | 0.637396 | 159 | 1,321 | 5.144654 | 0.383648 | 0.111247 | 0.08313 | 0.041565 | 0.06357 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014583 | 0.273278 | 1,321 | 34 | 97 | 38.852941 | 0.8375 | 0 | 0 | 0 | 0 | 0 | 0.023038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24e3157d115081bcb6f061dce308ab2e35bd706f | 199 | py | Python | text/src/autogluon/text/text_prediction/constants.py | huibinshen/autogluon | 18c182c90df89762a916128327a6792b8887c5c6 | [
"Apache-2.0"
] | 1 | 2022-02-19T13:22:26.000Z | 2022-02-19T13:22:26.000Z | text/src/autogluon/text/text_prediction/constants.py | huibinshen/autogluon | 18c182c90df89762a916128327a6792b8887c5c6 | [
"Apache-2.0"
] | null | null | null | text/src/autogluon/text/text_prediction/constants.py | huibinshen/autogluon | 18c182c90df89762a916128327a6792b8887c5c6 | [
"Apache-2.0"
] | null | null | null | # Column/Label Types
NULL = 'null'
CATEGORICAL = 'categorical'
TEXT = 'text'
NUMERICAL = 'numerical'
ENTITY = 'entity'
# Feature Types
ARRAY = 'array'
# backend
PYTORCH = "pytorch"
MXNET = "mxnet"
| 14.214286 | 27 | 0.688442 | 22 | 199 | 6.227273 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170854 | 199 | 13 | 28 | 15.307692 | 0.830303 | 0.201005 | 0 | 0 | 0 | 0 | 0.329032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
24e7039ac1f5609787a28c4e4b72b1a8010988bb | 2,453 | py | Python | py/tbf/ping/ping_pb2_grpc.py | thebigfundamental/idl | 0dd33b46fb809d0c13e29b8121024b74220eae4d | [
"MIT"
] | null | null | null | py/tbf/ping/ping_pb2_grpc.py | thebigfundamental/idl | 0dd33b46fb809d0c13e29b8121024b74220eae4d | [
"MIT"
] | null | null | null | py/tbf/ping/ping_pb2_grpc.py | thebigfundamental/idl | 0dd33b46fb809d0c13e29b8121024b74220eae4d | [
"MIT"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from tbf.ping import ping_pb2 as tbf_dot_ping_dot_ping__pb2
class PingServiceStub(object):
"""Missing associated documentation comment in .proto file."""
... | 36.61194 | 98 | 0.675907 | 257 | 2,453 | 6.132296 | 0.361868 | 0.062183 | 0.044416 | 0.057741 | 0.331853 | 0.331853 | 0.319162 | 0.220812 | 0.072335 | 0 | 0 | 0.004322 | 0.245414 | 2,453 | 66 | 99 | 37.166667 | 0.84711 | 0.18671 | 0 | 0 | 1 | 0 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0.02381 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24f0f8db230cda963c7500228189ad654ebdecd7 | 376 | py | Python | tools/please_pex/custom_interpreter_test.py | raboof/please | b316f5ef9e2f763d18a3450696b386bdc1ae6d59 | [
"Apache-2.0"
] | null | null | null | tools/please_pex/custom_interpreter_test.py | raboof/please | b316f5ef9e2f763d18a3450696b386bdc1ae6d59 | [
"Apache-2.0"
] | null | null | null | tools/please_pex/custom_interpreter_test.py | raboof/please | b316f5ef9e2f763d18a3450696b386bdc1ae6d59 | [
"Apache-2.0"
] | 1 | 2018-07-27T09:05:49.000Z | 2018-07-27T09:05:49.000Z | """Test that our pexer is capable of building .pex files with custom interpreters."""
import platform
import unittest
class CustomInterpreterTest(unittest.TestCase):
def testInterpreterIsPyPy(self):
"""Test that this is being run with PyPy."""
self.assertEqual('PyPy', platform.python_implementat... | 23.5 | 85 | 0.720745 | 43 | 376 | 6.093023 | 0.744186 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175532 | 376 | 15 | 86 | 25.066667 | 0.845161 | 0.31383 | 0 | 0 | 0 | 0 | 0.048583 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
24f267fc5148c3429278b7e979f5203149f1c1c1 | 993 | py | Python | utils/utils.py | sajadn/Exemplar-VAE | 4dbd0913d315db6ef9e3b5a689fae4140add2323 | [
"MIT"
] | 60 | 2020-11-13T14:16:30.000Z | 2022-02-02T17:12:40.000Z | utils/utils.py | Tubbz-alt/Exemplar-VAE | 4dbd0913d315db6ef9e3b5a689fae4140add2323 | [
"MIT"
] | 3 | 2020-05-31T06:22:05.000Z | 2020-12-22T05:09:00.000Z | utils/utils.py | Tubbz-alt/Exemplar-VAE | 4dbd0913d315db6ef9e3b5a689fae4140add2323 | [
"MIT"
] | 6 | 2020-12-11T02:38:04.000Z | 2021-11-16T01:53:03.000Z | import torch
import os
def importing_model(args):
if args.model_name == 'vae':
from models.VAE import VAE
elif args.model_name == 'hvae_2level':
from models.HVAE_2level import VAE
elif args.model_name == 'convhvae_2level':
from models.convHVAE_2level import VAE
elif args.model_n... | 30.090909 | 58 | 0.696878 | 138 | 993 | 4.804348 | 0.289855 | 0.081448 | 0.117647 | 0.128205 | 0.223228 | 0.223228 | 0.184012 | 0 | 0 | 0 | 0 | 0.005122 | 0.213494 | 993 | 32 | 59 | 31.03125 | 0.84379 | 0 | 0 | 0 | 0 | 0 | 0.098691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24f7d5bf49f84590efc001f3b78f3b197f28032d | 9,096 | py | Python | tests/st/fallback/test_graph_fallback_print.py | Shigangli/mindspore | 351ce03fb2721335695afd77e8535d15670571f4 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | tests/st/fallback/test_graph_fallback_print.py | Shigangli/mindspore | 351ce03fb2721335695afd77e8535d15670571f4 | [
"Apache-2.0"
] | null | null | null | tests/st/fallback/test_graph_fallback_print.py | Shigangli/mindspore | 351ce03fb2721335695afd77e8535d15670571f4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021-2022 Huawei Technologies Co., Ltd
#
# 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 agre... | 25.840909 | 108 | 0.583223 | 1,278 | 9,096 | 4.003912 | 0.14554 | 0.009771 | 0.014657 | 0.019543 | 0.683213 | 0.680086 | 0.672269 | 0.642369 | 0.609341 | 0.609341 | 0 | 0.038148 | 0.270888 | 9,096 | 351 | 109 | 25.91453 | 0.733414 | 0.1781 | 0 | 0.636364 | 0 | 0.018182 | 0.103343 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 1 | 0.136364 | false | 0 | 0.045455 | 0.004545 | 0.25 | 0.227273 | 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 |
24fb0de7ebd07960f5f86cd3a31d966c383b8583 | 221 | py | Python | settings.py | thinkingmachines/linksight-api-client | 239b8f98977c2c6a5a2f55af9ac94614ecc31886 | [
"MIT"
] | 2 | 2018-11-22T04:56:31.000Z | 2021-04-20T08:25:00.000Z | settings.py | thinkingmachines/linksight-api-client | 239b8f98977c2c6a5a2f55af9ac94614ecc31886 | [
"MIT"
] | 19 | 2018-11-29T08:17:05.000Z | 2019-02-04T03:51:18.000Z | settings.py | thinkingmachines/linksight-api-client | 239b8f98977c2c6a5a2f55af9ac94614ecc31886 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Settings for python-dotenv"""
# Import standard library
from pathlib import Path
# Import from package
from dotenv import load_dotenv
env_path = Path('.') / '.env'
load_dotenv(verbose=True)
| 17 | 32 | 0.705882 | 30 | 221 | 5.1 | 0.6 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.153846 | 221 | 12 | 33 | 18.416667 | 0.812834 | 0.420814 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
24fed3be9f86c8ea638171c18bd51ffbf94b53b5 | 163 | py | Python | ABC167/B.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | ABC167/B.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | ABC167/B.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | def main():
a,b,c,k = map(int,input().split())
ans = 0
ans += min(a, k)
ans -= max(0, k-a-b)
print(ans)
if __name__ == "__main__":
main() | 16.3 | 38 | 0.484663 | 28 | 163 | 2.535714 | 0.607143 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.288344 | 163 | 10 | 39 | 16.3 | 0.594828 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 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 |
24ffee2681cce2cfedf636453b98c2dcfb4fb858 | 857 | py | Python | viewer/contents/views.py | jeuvreyl/viewer-django | c2f2c89cefa214ee040469f1f90756b9a3876d59 | [
"BSD-3-Clause"
] | null | null | null | viewer/contents/views.py | jeuvreyl/viewer-django | c2f2c89cefa214ee040469f1f90756b9a3876d59 | [
"BSD-3-Clause"
] | null | null | null | viewer/contents/views.py | jeuvreyl/viewer-django | c2f2c89cefa214ee040469f1f90756b9a3876d59 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.core.urlresolvers import reverse
from django.views.generic import DetailView, ListView, UpdateView
from .models import UploadedFile
from braces.views import LoginRequiredMixin
class UploadedFileDetail(LoginRequiredMixin, De... | 27.645161 | 69 | 0.731622 | 94 | 857 | 6.510638 | 0.56383 | 0.083333 | 0.068627 | 0.084967 | 0.150327 | 0.150327 | 0.150327 | 0.150327 | 0.150327 | 0 | 0 | 0.001437 | 0.187865 | 857 | 30 | 70 | 28.566667 | 0.877874 | 0.099183 | 0 | 0.368421 | 0 | 0 | 0.057217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0.052632 | 0.947368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70088bf89ed334c9e9541c55063010aaf3920d75 | 9,352 | py | Python | LLC_Membranes/setup/gentop.py | shirtsgroup/LLC_Membranes | e94694f298909352d7e9d912625314a1e46aa5b6 | [
"MIT"
] | 4 | 2019-06-18T15:26:49.000Z | 2021-08-11T18:57:39.000Z | LLC_Membranes/setup/gentop.py | shirtsgroup/LLC_Membranes | e94694f298909352d7e9d912625314a1e46aa5b6 | [
"MIT"
] | 2 | 2019-08-22T20:11:46.000Z | 2019-08-22T22:35:17.000Z | LLC_Membranes/setup/gentop.py | shirtsgroup/LLC_Membranes | e94694f298909352d7e9d912625314a1e46aa5b6 | [
"MIT"
] | 4 | 2019-07-06T15:41:53.000Z | 2021-01-27T17:59:13.000Z | #!/usr/bin/env python
import argparse
import mdtraj as md
import os
from LLC_Membranes.llclib import topology
def initialize():
parser = argparse.ArgumentParser(description='Generate topology file from coordinate file.')
parser.add_argument('-g', '--gro', help='Name of coordinate file to write topology fil... | 38.485597 | 143 | 0.576347 | 1,128 | 9,352 | 4.679965 | 0.173759 | 0.035802 | 0.018564 | 0.019322 | 0.334154 | 0.303277 | 0.280356 | 0.268611 | 0.268611 | 0.268611 | 0 | 0.005353 | 0.320787 | 9,352 | 242 | 144 | 38.644628 | 0.825724 | 0.246364 | 0 | 0.291667 | 1 | 0 | 0.130897 | 0.003145 | 0 | 0 | 0 | 0.004132 | 0 | 1 | 0.034722 | false | 0 | 0.027778 | 0 | 0.076389 | 0 | 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 |
700c737fe82fe36deb35134cfb12375238bf8789 | 1,310 | py | Python | tests/profanity_analyzer/cases/case_noqa.py | saroad2/jonahlint | 163f28d781da457938ee893bf00e3918c178ba06 | [
"Apache-2.0"
] | null | null | null | tests/profanity_analyzer/cases/case_noqa.py | saroad2/jonahlint | 163f28d781da457938ee893bf00e3918c178ba06 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:26:09.000Z | 2022-01-19T15:16:55.000Z | tests/profanity_analyzer/cases/case_noqa.py | saroad2/jonahlint | 163f28d781da457938ee893bf00e3918c178ba06 | [
"Apache-2.0"
] | null | null | null | from jonahlint.profanity_report import ProfanityReport
def case_ignore_profanity_in_assignment():
code = """nitch = 23 # noqa: JON301"""
reports = []
return code, reports
def case_ignore_profanity_in_function_name():
code = """def nitch(a): # noqa: JON101
pass
"""
reports = []
re... | 20.793651 | 65 | 0.561832 | 133 | 1,310 | 5.308271 | 0.330827 | 0.049575 | 0.120397 | 0.113314 | 0.667139 | 0.548159 | 0.548159 | 0.495751 | 0.379603 | 0.379603 | 0 | 0.032147 | 0.335115 | 1,310 | 62 | 66 | 21.129032 | 0.778416 | 0 | 0 | 0.659574 | 0 | 0 | 0.291603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.085106 | 0.021277 | 0 | 0.234043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
700e6bcfe82e3b550c74a98193011da65eedb786 | 275 | py | Python | student-work/yerim/exercism/python/isogram/isogram.py | developerQuinnZ/this_will_work | 5587a9fd030b47f9df6514e45c887b6872d2a4a1 | [
"MIT"
] | null | null | null | student-work/yerim/exercism/python/isogram/isogram.py | developerQuinnZ/this_will_work | 5587a9fd030b47f9df6514e45c887b6872d2a4a1 | [
"MIT"
] | null | null | null | student-work/yerim/exercism/python/isogram/isogram.py | developerQuinnZ/this_will_work | 5587a9fd030b47f9df6514e45c887b6872d2a4a1 | [
"MIT"
] | null | null | null | import re
def is_isogram(string):
string = re.split(' |-', string)
string = ''.join(string)
string = string.lower()
unique_letters = {letter for letter in string}
if len(unique_letters) == len(string):
return True
else:
return False
| 21.153846 | 50 | 0.614545 | 34 | 275 | 4.882353 | 0.588235 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265455 | 275 | 12 | 51 | 22.916667 | 0.821782 | 0 | 0 | 0 | 0 | 0 | 0.010909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 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 |
7010f1a4392691f6545b6c7f94a38ec3263e03aa | 949 | py | Python | tests/test_utils.py | JusteGA1/lt-booking-scraper | 3d4603028d29809ee68c558fec7405a7d3204571 | [
"MIT"
] | null | null | null | tests/test_utils.py | JusteGA1/lt-booking-scraper | 3d4603028d29809ee68c558fec7405a7d3204571 | [
"MIT"
] | null | null | null | tests/test_utils.py | JusteGA1/lt-booking-scraper | 3d4603028d29809ee68c558fec7405a7d3204571 | [
"MIT"
] | null | null | null | import pytest
from datetime import datetime, timedelta
from lt_booking_scraper.utils import extract_number, validate_date, generate_headers
def test_generate_headers_accept():
header = generate_headers()
assert 'Accept' in header
def test_generate_headers_user_agent():
header = generate_headers()
a... | 24.973684 | 84 | 0.694415 | 133 | 949 | 4.759399 | 0.330827 | 0.022117 | 0.050553 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021684 | 0.173867 | 949 | 37 | 85 | 25.648649 | 0.785714 | 0 | 0 | 0.153846 | 1 | 0 | 0.124341 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.192308 | false | 0 | 0.115385 | 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 |
70121e612790f7c106075d30cafa07803fbdde55 | 221 | py | Python | run.py | brians-bytes/emulator-datastore-viewer | 247f69d53389d1846a5802e08870dcf570859cac | [
"MIT"
] | null | null | null | run.py | brians-bytes/emulator-datastore-viewer | 247f69d53389d1846a5802e08870dcf570859cac | [
"MIT"
] | null | null | null | run.py | brians-bytes/emulator-datastore-viewer | 247f69d53389d1846a5802e08870dcf570859cac | [
"MIT"
] | null | null | null | import os
from viewer import app
def main():
port = os.environ.get('PORT', 5000)
host = os.environ.get('HOST', 'localhost')
app.run(host=host, port=port, debug=True)
if __name__ == '__main__':
main()
| 15.785714 | 46 | 0.633484 | 32 | 221 | 4.125 | 0.5625 | 0.136364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.20362 | 221 | 13 | 47 | 17 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.113122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
7013a9b09fff94af145b323233083094acaa5d0a | 81,819 | py | Python | rlscope/parser/tasks.py | UofT-EcoSystem/rlscope | cdd9bbdc2a3a832be24f20105b8c9fe28149cb63 | [
"Apache-2.0"
] | 35 | 2021-01-26T22:34:17.000Z | 2022-03-02T01:25:11.000Z | rlscope/parser/tasks.py | UofT-EcoSystem/rlscope | cdd9bbdc2a3a832be24f20105b8c9fe28149cb63 | [
"Apache-2.0"
] | 1 | 2022-03-15T01:40:03.000Z | 2022-03-15T01:40:03.000Z | rlscope/parser/tasks.py | UofT-EcoSystem/rlscope | cdd9bbdc2a3a832be24f20105b8c9fe28149cb63 | [
"Apache-2.0"
] | 1 | 2021-03-17T08:49:07.000Z | 2021-03-17T08:49:07.000Z | """
Define ``--task`` arguments for the ``rls-run`` command.
RL-Scope uses the luigi DAG execution framework internally for
running scripts for processing trace files and creating plots.
This allows us to have a single command (``rls-run``) for various tasks,
and allows specifying task specific command line arguments
... | 45.153974 | 244 | 0.700424 | 9,477 | 81,819 | 5.814709 | 0.098449 | 0.019599 | 0.034479 | 0.015243 | 0.616176 | 0.56669 | 0.547762 | 0.520252 | 0.509745 | 0.49089 | 0 | 0.00317 | 0.217284 | 81,819 | 1,811 | 245 | 45.178907 | 0.85731 | 0.195297 | 0 | 0.518549 | 0 | 0.012366 | 0.245944 | 0.028682 | 0 | 0 | 0 | 0.001104 | 0.004122 | 1 | 0.094806 | false | 0.011542 | 0.023908 | 0.04122 | 0.507007 | 0.009893 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70166e89ca9e96d8cfd33a7f2ea3aa806759c99a | 4,476 | py | Python | telemanom/channel.py | sedgewickmm18/telemanom | 5d80cac442784c588fbed62c8bb8fb7f875f6cdf | [
"Apache-2.0"
] | null | null | null | telemanom/channel.py | sedgewickmm18/telemanom | 5d80cac442784c588fbed62c8bb8fb7f875f6cdf | [
"Apache-2.0"
] | null | null | null | telemanom/channel.py | sedgewickmm18/telemanom | 5d80cac442784c588fbed62c8bb8fb7f875f6cdf | [
"Apache-2.0"
] | null | null | null | import numpy as np
import scipy as sp
import os
import logging
logger = logging.getLogger('telemanom')
class Channel:
def __init__(self, config, chan_id):
"""
Load and reshape channel values (predicted and actual).
Args:
config (obj): Config object containing parameters for p... | 34.167939 | 108 | 0.554736 | 564 | 4,476 | 4.294326 | 0.257092 | 0.053675 | 0.034682 | 0.063584 | 0.287366 | 0.217176 | 0.209744 | 0.129645 | 0.077622 | 0.077622 | 0 | 0.006102 | 0.340929 | 4,476 | 130 | 109 | 34.430769 | 0.814915 | 0.265639 | 0 | 0.166667 | 0 | 0 | 0.072368 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.051282 | false | 0.051282 | 0.051282 | 0 | 0.128205 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
701da70d7304177054f2d8fe3b0c42670f78afbd | 971 | py | Python | mds/migrations/0003_post_index_device_events.py | Polyconseil/django-mds | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 15 | 2019-01-02T13:44:29.000Z | 2020-09-03T16:39:46.000Z | mds/migrations/0003_post_index_device_events.py | Polyconseil/django-mds | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 44 | 2018-11-30T11:04:03.000Z | 2020-01-21T17:21:39.000Z | mds/migrations/0003_post_index_device_events.py | Polyconseil/midas | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 5 | 2019-04-23T16:22:49.000Z | 2021-03-21T07:45:38.000Z | # Generated by Django 2.2.7 on 2020-01-06 17:15
from django.db import migrations, models
class Migration(migrations.Migration):
atomic = False
dependencies = [
("mds", "0002_pre_compliance_extra"),
]
operations = [
migrations.SeparateDatabaseAndState(
database_operations... | 30.34375 | 167 | 0.516993 | 82 | 971 | 5.914634 | 0.658537 | 0.123711 | 0.061856 | 0.090722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031773 | 0.38414 | 971 | 31 | 168 | 31.322581 | 0.779264 | 0.046344 | 0 | 0.208333 | 1 | 0 | 0.101673 | 0.06435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7022a763b50e78a9913f16f4511d6a5858484b5c | 1,973 | py | Python | k-distribution/src/main/scripts/lib/pyk/definition.py | nrdxp/k | 548dd10044e11955ca0ca0fbe528d428e970f525 | [
"BSD-3-Clause"
] | 404 | 2015-01-03T10:03:12.000Z | 2022-01-20T19:32:08.000Z | k-distribution/src/main/scripts/lib/pyk/definition.py | nrdxp/k | 548dd10044e11955ca0ca0fbe528d428e970f525 | [
"BSD-3-Clause"
] | 2,370 | 2015-01-02T14:51:59.000Z | 2022-01-25T19:09:01.000Z | k-distribution/src/main/scripts/lib/pyk/definition.py | nrdxp/k | 548dd10044e11955ca0ca0fbe528d428e970f525 | [
"BSD-3-Clause"
] | 162 | 2015-02-09T16:30:57.000Z | 2022-01-24T09:05:47.000Z | #!/usr/bin/env python3
import sys
import subprocess
from .kast import *
from .kastManip import *
from .kast import _notif, _warning, _fatal
def ruleHasId(sentence, ruleIds):
if isKRule(sentence):
ruleId = getAttribute(sentence, 'UNIQUE_ID')
return ruleId is not None and ruleId in ruleId... | 35.872727 | 99 | 0.699949 | 213 | 1,973 | 6.384977 | 0.333333 | 0.066912 | 0.020588 | 0.022059 | 0.117647 | 0.086765 | 0.086765 | 0.086765 | 0 | 0 | 0 | 0.00064 | 0.207805 | 1,973 | 54 | 100 | 36.537037 | 0.869482 | 0.010644 | 0 | 0.088889 | 0 | 0 | 0.058944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.133333 | 0 | 0.511111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7024b0db92aa1c93b80803e4a6fc27ce1bb052a4 | 915 | py | Python | frappe-bench/apps/erpnext/erpnext/tests/utils.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/tests/utils.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/tests/utils.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def create_test_contact_and_address():
frappe.db.sql('delete from tabContact')
frappe.db.sql('delete from tabAddress')
frappe.db.sql(... | 24.72973 | 68 | 0.725683 | 120 | 915 | 5.3 | 0.5 | 0.051887 | 0.051887 | 0.080189 | 0.341195 | 0.169811 | 0.169811 | 0.169811 | 0.169811 | 0.169811 | 0 | 0.022959 | 0.143169 | 915 | 36 | 69 | 25.416667 | 0.788265 | 0.133333 | 0 | 0.413793 | 0 | 0 | 0.353165 | 0.041772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | true | 0 | 0.068966 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70256210034bb441d40f908bc787e7148c3047d4 | 3,332 | py | Python | tests/test_tokenizer.py | abhaykumarPS/lunr.py | a0bd7d5d92a4d23022e30a173a5f1aa53fe8b502 | [
"MIT"
] | 128 | 2018-01-29T18:04:22.000Z | 2022-03-13T19:44:37.000Z | tests/test_tokenizer.py | abhaykumarPS/lunr.py | a0bd7d5d92a4d23022e30a173a5f1aa53fe8b502 | [
"MIT"
] | 86 | 2018-04-15T16:02:04.000Z | 2022-03-22T09:17:14.000Z | tests/test_tokenizer.py | abhaykumarPS/lunr.py | a0bd7d5d92a4d23022e30a173a5f1aa53fe8b502 | [
"MIT"
] | 15 | 2018-09-23T20:49:40.000Z | 2022-03-24T07:40:32.000Z | import re
import pytest
from lunr.tokenizer import Tokenizer
class TestTokenizer:
def test_splitting_into_tokens(self):
tokenizer = Tokenizer("foo bar baz")
tokens = [str(token) for token in tokenizer]
assert tokens == ["foo", "bar", "baz"]
def test_run_downcases_tokens(self):
... | 35.073684 | 88 | 0.62455 | 411 | 3,332 | 4.863747 | 0.19708 | 0.126063 | 0.090045 | 0.093547 | 0.632816 | 0.6008 | 0.529765 | 0.49925 | 0.49925 | 0.456728 | 0 | 0.011386 | 0.235594 | 3,332 | 94 | 89 | 35.446809 | 0.773459 | 0 | 0 | 0.352941 | 0 | 0 | 0.094838 | 0 | 0 | 0 | 0 | 0 | 0.323529 | 1 | 0.264706 | false | 0 | 0.044118 | 0.014706 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7026f03d78be3efe39ba89329fa1097b76d52136 | 1,644 | py | Python | samples/python_extension/src/main/python/setup.py | MaTriXy/kotlin-native | 9d9ebe75928a52cd7712f35779307398d249736c | [
"Apache-2.0"
] | 1 | 2019-05-16T23:18:14.000Z | 2019-05-16T23:18:14.000Z | samples/python_extension/src/main/python/setup.py | nacersalaheddine/kotlin-native | 2934588bbed99b7dbb4c8949c6d580da3d9cdf49 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | samples/python_extension/src/main/python/setup.py | nacersalaheddine/kotlin-native | 2934588bbed99b7dbb4c8949c6d580da3d9cdf49 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-05-30T14:37:11.000Z | 2019-06-11T07:54:35.000Z | #!/usr/bin/python
#
# Copyright 2010-2017 JetBrains s.r.o.
#
# 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... | 37.363636 | 129 | 0.689173 | 219 | 1,644 | 5.105023 | 0.584475 | 0.053667 | 0.023256 | 0.028623 | 0.048301 | 0.048301 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.20073 | 1,644 | 44 | 130 | 37.363636 | 0.837139 | 0.582725 | 0 | 0 | 0 | 0 | 0.292793 | 0.039039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7028ed17736ec80e79ef352e3b89cafbebc19a88 | 733 | py | Python | classes/threader.py | dyyyni/PythonScriptsFunctions | 8cf49bf6338c5456a714d838a4a35dcab0f1b04b | [
"MIT"
] | null | null | null | classes/threader.py | dyyyni/PythonScriptsFunctions | 8cf49bf6338c5456a714d838a4a35dcab0f1b04b | [
"MIT"
] | null | null | null | classes/threader.py | dyyyni/PythonScriptsFunctions | 8cf49bf6338c5456a714d838a4a35dcab0f1b04b | [
"MIT"
] | null | null | null | import threading
# This class is used to make the (already quite simple) threading of python
# even easier. The thread class takes in the thread name and the functions
# that need threading.
# Use :
# 1. define your functions
# 2. make thread objects with your functions
# 3. run the threads as needed
class thread(t... | 23.645161 | 75 | 0.706685 | 96 | 733 | 5.28125 | 0.510417 | 0.078895 | 0.055227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017007 | 0.197817 | 733 | 31 | 76 | 23.645161 | 0.845238 | 0.369714 | 0 | 0 | 0 | 0 | 0.081319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.375 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7036e7d545a2b303b26f8db666b9cc95018823ae | 1,437 | py | Python | mopack/sources/system.py | jimporter/mopack | e912be11528645f5463e7873b5470c420b698418 | [
"BSD-3-Clause"
] | null | null | null | mopack/sources/system.py | jimporter/mopack | e912be11528645f5463e7873b5470c420b698418 | [
"BSD-3-Clause"
] | 17 | 2020-07-23T20:28:36.000Z | 2022-03-04T04:33:55.000Z | mopack/sources/system.py | jimporter/mopack | e912be11528645f5463e7873b5470c420b698418 | [
"BSD-3-Clause"
] | 1 | 2020-11-04T03:51:20.000Z | 2020-11-04T03:51:20.000Z | from . import BinaryPackage
from .. import log
from ..types import FieldKeyError, Unset
class SystemPackage(BinaryPackage):
source = 'system'
_version = 1
@staticmethod
def upgrade(config, version):
return config
def __init__(self, name, *, version=Unset, auto_link=Unset,
... | 32.659091 | 73 | 0.621434 | 155 | 1,437 | 5.541935 | 0.380645 | 0.027939 | 0.034924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000951 | 0.268615 | 1,437 | 43 | 74 | 33.418605 | 0.816365 | 0 | 0 | 0 | 0 | 0 | 0.137787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.058824 | 0.088235 | 0.029412 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
703ca1f63824c185bd6c8f0a5b88cdff724a2a69 | 777 | py | Python | openpeerpower/components/axis/const.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | openpeerpower/components/axis/const.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | openpeerpower/components/axis/const.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Constants for the Axis component."""
import logging
from openpeerpower.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
from openpeerpower.components.camera import DOMAIN as CAMERA_DOMAIN
from openpeerpower.components.light import DOMAIN as LIGHT_DOMAIN
from openpeerpower.components.switch import DOMA... | 29.884615 | 81 | 0.827542 | 101 | 777 | 6.059406 | 0.376238 | 0.111111 | 0.176471 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001441 | 0.106821 | 777 | 25 | 82 | 31.08 | 0.880403 | 0.042471 | 0 | 0 | 0 | 0 | 0.128726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 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 |
703ccd9b077021573896ce5b702f71224fbc6b35 | 2,472 | py | Python | chaosmonkey/dal/plan_model.py | BBVA/chaos-monkey-engine | f4f5fbe04b57e82b3ce1bba5469c27a2ba89ea01 | [
"Apache-2.0"
] | 52 | 2017-02-08T13:44:13.000Z | 2021-03-13T12:50:01.000Z | chaosmonkey/dal/plan_model.py | BBVA/chaos-monkey-engine | f4f5fbe04b57e82b3ce1bba5469c27a2ba89ea01 | [
"Apache-2.0"
] | 11 | 2017-03-23T15:56:09.000Z | 2019-11-01T15:03:35.000Z | chaosmonkey/dal/plan_model.py | BBVA/chaos-monkey-engine | f4f5fbe04b57e82b3ce1bba5469c27a2ba89ea01 | [
"Apache-2.0"
] | 9 | 2017-03-23T15:49:09.000Z | 2019-06-18T08:55:21.000Z | from datetime import datetime
from uuid import uuid4
from sqlalchemy.orm import relationship
from flask import request
from chaosmonkey.api.hal import BaseDocument, Link
from chaosmonkey.dal.database import db
from chaosmonkey.dal.executor_model import Executor
class Plan(db.Model):
"""
Store information abou... | 35.314286 | 114 | 0.651699 | 315 | 2,472 | 4.987302 | 0.35873 | 0.04965 | 0.025461 | 0.036283 | 0.084023 | 0.084023 | 0.045831 | 0.045831 | 0 | 0 | 0 | 0.004182 | 0.226133 | 2,472 | 69 | 115 | 35.826087 | 0.817041 | 0.20267 | 0 | 0 | 0 | 0 | 0.080569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.162791 | 0.023256 | 0.534884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70407658617a95522e87057a56294f90e4d4819c | 400 | py | Python | pty/t5piotr.py | Rydeness/ptychogpu | 337d136b1b738ddbc3241144e49fa0129b7bcac1 | [
"MIT"
] | 1 | 2021-09-14T01:28:50.000Z | 2021-09-14T01:28:50.000Z | pty/t5piotr.py | Rydeness/ptychogpu | 337d136b1b738ddbc3241144e49fa0129b7bcac1 | [
"MIT"
] | null | null | null | pty/t5piotr.py | Rydeness/ptychogpu | 337d136b1b738ddbc3241144e49fa0129b7bcac1 | [
"MIT"
] | 2 | 2021-09-14T01:28:42.000Z | 2021-09-16T00:08:59.000Z | import time
import numpy as np
import acc_image_utils_piotr as acc
ori_size = 64
new_size = 32
n1 = np.zeros((ori_size,ori_size,ori_size,ori_size),dtype=np.float32)
loop_tester = 3
tsum = 0.0
for ii in range(loop_tester):
t1 = -time.time()
n2 = acc.cupy_jit_resizer4D(n1,(new_size,new_size))
t1 += time.time... | 25 | 69 | 0.6875 | 74 | 400 | 3.486486 | 0.486486 | 0.162791 | 0.116279 | 0.162791 | 0.108527 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0.053412 | 0.1575 | 400 | 15 | 70 | 26.666667 | 0.712166 | 0 | 0 | 0 | 0 | 0 | 0.0225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0.071429 | 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 |
7045160ab34214332fa572d5ed60015c6c9d36e9 | 561 | py | Python | instance/config.py | d-kahara/store_manager_api | b2a1df2318c3e7ffb7d89bfc03ef0381379e1556 | [
"MIT"
] | 1 | 2019-07-02T12:22:34.000Z | 2019-07-02T12:22:34.000Z | instance/config.py | d-kahara/store_manager_api | b2a1df2318c3e7ffb7d89bfc03ef0381379e1556 | [
"MIT"
] | 2 | 2018-10-24T09:14:42.000Z | 2018-11-02T08:08:40.000Z | instance/config.py | d-kahara/store_manager_api | b2a1df2318c3e7ffb7d89bfc03ef0381379e1556 | [
"MIT"
] | 2 | 2018-10-21T13:09:46.000Z | 2018-10-27T11:44:14.000Z | import os
class Config:
SECRET_KEY = os.getenv('SECRET_KEY', 'kaharakey')
DEBUG = False
class DevelopmentConfig(Config):
DATABASE_URL = os.environ['DATABASE_URL']
DEBUG = True
class TestingConfig(Config):
DEBUG = True
TESTING = True
DATABASE_URL = os.getenv('DATABASE_TEST_URI')
... | 15.162162 | 53 | 0.702317 | 61 | 561 | 6.262295 | 0.459016 | 0.070681 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213904 | 561 | 36 | 54 | 15.583333 | 0.866213 | 0 | 0 | 0.2 | 0 | 0 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7046ff5cb4476e71435c295c15e7dfe422944707 | 570 | py | Python | u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/resnet_test.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 45 | 2015-04-26T04:45:51.000Z | 2022-01-24T15:03:55.000Z | u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/resnet_test.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 8 | 2018-07-20T20:54:51.000Z | 2020-06-12T05:36:04.000Z | u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/resnet_test.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 22 | 2018-05-21T23:57:20.000Z | 2022-02-21T00:48:32.000Z | import nose.tools as nt
import numpy as np
import theano
import theano.tensor as T
import treeano
import treeano.nodes as tn
from treeano.sandbox.nodes import resnet
fX = theano.config.floatX
def test_zero_last_axis_partition_node():
network = tn.SequentialNode(
"s",
[tn.InputNode("i", shape=(No... | 23.75 | 72 | 0.663158 | 84 | 570 | 4.404762 | 0.583333 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017429 | 0.194737 | 570 | 23 | 73 | 24.782609 | 0.788671 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7047bb14535210c97d1d029f6fd92b25e359aa5f | 9,917 | py | Python | ddcm/TCPService/TCPRPC.py | SkyZH/ddcm-protocol | 676a4ccff8783badf8d518c359d44e7454e1588c | [
"BSD-3-Clause"
] | 4 | 2019-12-27T03:40:49.000Z | 2021-05-29T17:02:49.000Z | ddcm/TCPService/TCPRPC.py | SkyZH/ddcm-protocol | 676a4ccff8783badf8d518c359d44e7454e1588c | [
"BSD-3-Clause"
] | 7 | 2016-01-24T14:36:56.000Z | 2018-08-16T13:10:35.000Z | ddcm/TCPService/TCPRPC.py | skyzh/ddcm-protocol | 676a4ccff8783badf8d518c359d44e7454e1588c | [
"BSD-3-Clause"
] | null | null | null | import struct
import json
import socket
from .. import const
from ..Remote import Remote
from ..Node import Node
class TCPRPC(object):
def __init__(self, service, loop):
self.service = service
self.loop = loop
def pack_ping(self, local, remote, echo):
"""Pack Ping Message
Ar... | 29.253687 | 77 | 0.550166 | 1,105 | 9,917 | 4.849774 | 0.082353 | 0.04721 | 0.094421 | 0.05822 | 0.737264 | 0.723456 | 0.666915 | 0.604777 | 0.531256 | 0.470424 | 0 | 0.005784 | 0.354946 | 9,917 | 338 | 78 | 29.340237 | 0.831952 | 0.17475 | 0 | 0.455959 | 0 | 0 | 0.004213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072539 | false | 0 | 0.031088 | 0.010363 | 0.290155 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
704a6615a92fb518de17a2b0d46d73002fb5ce7b | 703 | py | Python | src/mobu/autostart.py | lsst-sqre/sciencemonkey | 02638bb883093c4c225251d32d0b01fe79778c2a | [
"MIT"
] | null | null | null | src/mobu/autostart.py | lsst-sqre/sciencemonkey | 02638bb883093c4c225251d32d0b01fe79778c2a | [
"MIT"
] | 26 | 2021-02-18T03:44:39.000Z | 2022-03-21T19:34:52.000Z | src/mobu/autostart.py | lsst-sqre/sciencemonkey | 02638bb883093c4c225251d32d0b01fe79778c2a | [
"MIT"
] | null | null | null | """Support for automatically starting flocks."""
from __future__ import annotations
import yaml
from .config import config
from .dependencies.manager import monkey_business_manager
from .models.flock import FlockConfig
async def autostart() -> None:
"""Automatically start configured flocks.
This function ... | 26.037037 | 73 | 0.739687 | 89 | 703 | 5.674157 | 0.561798 | 0.055446 | 0.083168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192034 | 703 | 26 | 74 | 27.038462 | 0.889085 | 0.059744 | 0 | 0 | 0 | 0 | 0.001938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
704d995b6e4c898442d2b0cb5b6f8c22aeec852d | 682 | py | Python | desafio039.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | desafio039.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | desafio039.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | from datetime import date
atual = date.today().year
nascimento = int(input('Informe o ano de seu nascimento: '))
idade = atual - nascimento
if idade==18:
print('Você tem {}. É hora de se alistar no serviço militar'.format(idade))
elif idade<18:
saldo = 18-idade
print('Você tem {}. Ainda faltam {} anos par s... | 42.625 | 115 | 0.677419 | 103 | 682 | 4.485437 | 0.446602 | 0.097403 | 0.077922 | 0.142857 | 0.331169 | 0.248918 | 0.248918 | 0 | 0 | 0 | 0 | 0.014625 | 0.197947 | 682 | 16 | 116 | 42.625 | 0.829982 | 0 | 0 | 0 | 0 | 0 | 0.439239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.0625 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
704e4c0e8ac772db773bd605ab8b3b3197099e14 | 1,690 | py | Python | backend_rest/sales/admin.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | backend_rest/sales/admin.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | 33 | 2020-03-14T17:29:33.000Z | 2022-03-12T00:19:30.000Z | backend_rest/sales/admin.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
@admin.register(models.Sale)
class SaleAdmin(admin.ModelAdmin):
list_display = ['id', 'sales_order', 'customer_name', 'destination', 'agent']
search_fields = ['sales_order', 'customer_name']
list_filter = ['destination']
@admin.register(models.Docume... | 36.73913 | 112 | 0.702959 | 204 | 1,690 | 5.47549 | 0.357843 | 0.053715 | 0.085049 | 0.116383 | 0.130707 | 0.082363 | 0.082363 | 0.082363 | 0.082363 | 0 | 0 | 0.004848 | 0.145562 | 1,690 | 45 | 113 | 37.555556 | 0.768698 | 0 | 0 | 0 | 0 | 0 | 0.315976 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0.030303 | 0.787879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7054b1a1c314ddd398289cf0645dd5f1a3eb8789 | 2,103 | py | Python | docs/test.py | steven-hh-ding/OD1NF1ST | 730d8690d745f80dcda6deb27a424b5254243de8 | [
"Apache-2.0"
] | null | null | null | docs/test.py | steven-hh-ding/OD1NF1ST | 730d8690d745f80dcda6deb27a424b5254243de8 | [
"Apache-2.0"
] | 1 | 2021-11-16T20:18:58.000Z | 2021-11-16T20:18:58.000Z | docs/test.py | steven-hh-ding/OD1NF1ST | 730d8690d745f80dcda6deb27a424b5254243de8 | [
"Apache-2.0"
] | 1 | 2021-11-16T00:42:48.000Z | 2021-11-16T00:42:48.000Z | # The ability for a terminal to operate and behave like a BC or an RT.
# The ability for a terminal to send words (commands/data/status) at the same time as another terminal.
# The ability for a terminal to play the role of a BC and an RT at the same time.
# The ability to simulate the collision of messages.
# The abil... | 20.821782 | 103 | 0.591536 | 304 | 2,103 | 3.944079 | 0.328947 | 0.046706 | 0.050042 | 0.046706 | 0.301918 | 0.226022 | 0.038365 | 0 | 0 | 0 | 0 | 0.015873 | 0.310984 | 2,103 | 100 | 104 | 21.03 | 0.811594 | 0.256301 | 0 | 0.265306 | 0 | 0 | 0.016098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.040816 | 0 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
705b05b7e5e47676675adae51537a927093171d4 | 487 | py | Python | Exercicios Estruturas Logicas e Condicionais/exercicio 01 - secao 05.py | cristinamais/exercicios_python | 8a09b0b68ffaa62d13afb952998e890a79667c7e | [
"MIT"
] | null | null | null | Exercicios Estruturas Logicas e Condicionais/exercicio 01 - secao 05.py | cristinamais/exercicios_python | 8a09b0b68ffaa62d13afb952998e890a79667c7e | [
"MIT"
] | null | null | null | Exercicios Estruturas Logicas e Condicionais/exercicio 01 - secao 05.py | cristinamais/exercicios_python | 8a09b0b68ffaa62d13afb952998e890a79667c7e | [
"MIT"
] | null | null | null | """
1 - Faça um programa que receba dois números e mostre qual deles é o maior.
"""
numero1 = int(input("Digite o primeiro número: "))
numero2 = int(input("Digite o segundo número: "))
if numero1 > numero2:
print(f"Entre os números {numero1} e {numero2} .O número maior é: {numero1}")
elif numero1 == numero2:
... | 32.466667 | 81 | 0.681725 | 75 | 487 | 4.426667 | 0.4 | 0.054217 | 0.099398 | 0.11747 | 0.560241 | 0.560241 | 0.560241 | 0.560241 | 0.560241 | 0.560241 | 0 | 0.040201 | 0.182752 | 487 | 14 | 82 | 34.785714 | 0.79397 | 0.154004 | 0 | 0.25 | 0 | 0 | 0.623762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 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 |
70651821032bc9b41cdefc051c5077114661727b | 1,332 | py | Python | Algorithms_medium/0692. Top K Frequent Words.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_medium/0692. Top K Frequent Words.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_medium/0692. Top K Frequent Words.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
692. Top K Frequent Words
Given a non-empty list of words, return the k most frequent elements.
Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then the word with the lower alphabetical order comes first.
Example 1:
Input: ["i", "love", "leetcode", "i", "lov... | 39.176471 | 164 | 0.629129 | 201 | 1,332 | 4.169154 | 0.447761 | 0.046539 | 0.052506 | 0.066826 | 0.171838 | 0.171838 | 0.171838 | 0.171838 | 0.171838 | 0.171838 | 0 | 0.013449 | 0.218468 | 1,332 | 34 | 165 | 39.176471 | 0.791547 | 0.620871 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
706fac6b2ed26726c10b32c9acea6bc351a8d643 | 1,218 | py | Python | src/py-opentimelineio/opentimelineio/algorithms/timeline_algo.py | michdolan/OpenTimelineIO | 1ec6f07f1af525ba4ca0aa91e01e5939d6237f01 | [
"Apache-2.0"
] | null | null | null | src/py-opentimelineio/opentimelineio/algorithms/timeline_algo.py | michdolan/OpenTimelineIO | 1ec6f07f1af525ba4ca0aa91e01e5939d6237f01 | [
"Apache-2.0"
] | 4 | 2022-03-09T22:28:42.000Z | 2022-03-14T15:16:50.000Z | src/py-opentimelineio/opentimelineio/algorithms/timeline_algo.py | michdolan/OpenTimelineIO | 1ec6f07f1af525ba4ca0aa91e01e5939d6237f01 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the OpenTimelineIO project
"""Algorithms for timeline objects."""
import copy
from . import (
track_algo
)
def timeline_trimmed_to_range(in_timeline, trim_range):
"""Returns a new timeline that is a copy of the in_timeline, but with items
... | 33.833333 | 79 | 0.707718 | 177 | 1,218 | 4.694915 | 0.474576 | 0.064982 | 0.043321 | 0.045728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002153 | 0.237274 | 1,218 | 35 | 80 | 34.8 | 0.892357 | 0.607553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70728d7b7b00728131c8d8d667898130591d21f3 | 1,051 | py | Python | tests/unit/test_crawling_data_mapper.py | play-code-tools/crawling-gocd | 4e2bae3c8bfeb091e49979dac785c96d22b90688 | [
"MIT"
] | null | null | null | tests/unit/test_crawling_data_mapper.py | play-code-tools/crawling-gocd | 4e2bae3c8bfeb091e49979dac785c96d22b90688 | [
"MIT"
] | 1 | 2020-03-18T13:30:05.000Z | 2020-03-18T13:30:05.000Z | tests/unit/test_crawling_data_mapper.py | play-code-tools/crawling-gocd | 4e2bae3c8bfeb091e49979dac785c96d22b90688 | [
"MIT"
] | null | null | null | import unittest
import json
import tests.unit.test_fixture as fixture
from crawling_gocd.crawler import CrawlingDataMapper
from crawling_gocd.gocd_domain import PipelineHistory, StageHistory
class CrawlingDataMapperTest(unittest.TestCase):
def setUp(self):
filePage1 = "tests/unit/resources/pipeline_history... | 42.04 | 72 | 0.697431 | 103 | 1,051 | 6.92233 | 0.563107 | 0.100982 | 0.044881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058275 | 0.183635 | 1,051 | 25 | 73 | 42.04 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.170152 | 0.044677 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.090909 | false | 0.227273 | 0.227273 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
70735587359e7a5d23de28ea1bca71626c698aad | 637 | py | Python | web/app/djrq/templates/statstemplates/topx.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 1 | 2016-11-23T20:50:00.000Z | 2016-11-23T20:50:00.000Z | web/app/djrq/templates/statstemplates/topx.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 15 | 2017-01-15T04:18:40.000Z | 2017-02-25T04:13:06.000Z | web/app/djrq/templates/statstemplates/topx.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | null | null | null | #encoding: cinje
: from ..helpers.helpers import request_link, aa_link
: from .. import table_args, caption_args
: def topx ctx, limit=10
<div class='table-responsive'>
<table #{table_args}>
<caption #{caption_args}>Top ${limit} Artists</caption>
<tr><th>#</th><th>Artist</th><th>Songs</th></tr>
: for c, r in e... | 26.541667 | 85 | 0.634223 | 102 | 637 | 3.852941 | 0.480392 | 0.030534 | 0.081425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.156986 | 637 | 23 | 86 | 27.695652 | 0.709497 | 0.175824 | 0 | 0.15 | 0 | 0 | 0.082534 | 0.040307 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
7078bbc6585c404f32b617fdd868e106a4e750b9 | 501 | py | Python | carPooling/migrations/0011_carpoolingrecdetail_c_id.py | yangtao4389/pinche | 81463761058f67d47cea980f29a061b1e1b2d08a | [
"Apache-2.0"
] | 1 | 2020-09-30T01:27:57.000Z | 2020-09-30T01:27:57.000Z | carPooling/migrations/0011_carpoolingrecdetail_c_id.py | yangtao4389/pinche | 81463761058f67d47cea980f29a061b1e1b2d08a | [
"Apache-2.0"
] | 9 | 2020-06-05T19:51:33.000Z | 2022-03-11T23:40:25.000Z | carPooling/migrations/0011_carpoolingrecdetail_c_id.py | yangtao4389/pinche | 81463761058f67d47cea980f29a061b1e1b2d08a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.4 on 2019-02-22 14:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carPooling', '0010_auto_20190222_1358'),
]
operations = [
migrations.AddField(
model_name='carpoolingrecdetail',
nam... | 25.05 | 117 | 0.628743 | 56 | 501 | 5.464286 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091153 | 0.255489 | 501 | 19 | 118 | 26.368421 | 0.729223 | 0.08982 | 0 | 0 | 1 | 0 | 0.143172 | 0.050661 | 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 |
707d26086191123479b4bbda47ab869d6798e0c5 | 328 | py | Python | src/artists/migrations/0003_auto_20191025_0454.py | slee981/sos-music-project | fe1ec7f636ce71ebc4571637c07ce0eff0ee9398 | [
"MIT"
] | null | null | null | src/artists/migrations/0003_auto_20191025_0454.py | slee981/sos-music-project | fe1ec7f636ce71ebc4571637c07ce0eff0ee9398 | [
"MIT"
] | 11 | 2020-06-06T01:26:28.000Z | 2022-02-10T14:58:01.000Z | src/artists/migrations/0003_auto_20191025_0454.py | slee981/sos-music-project | fe1ec7f636ce71ebc4571637c07ce0eff0ee9398 | [
"MIT"
] | 1 | 2020-03-03T02:15:47.000Z | 2020-03-03T02:15:47.000Z | # Generated by Django 2.2.1 on 2019-10-25 04:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('artists', '0002_auto_20191025_0444'),
]
operations = [
migrations.AlterModelTable(
name='artist',
table='artists',
)... | 18.222222 | 47 | 0.591463 | 34 | 328 | 5.617647 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134199 | 0.295732 | 328 | 17 | 48 | 19.294118 | 0.692641 | 0.137195 | 0 | 0 | 1 | 0 | 0.153025 | 0.081851 | 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 |
707e0a033f0b78a5e8e96c602eb1a40f0b008c6d | 620 | py | Python | tests/datasets/test_usstocks.py | vishalbelsare/epymetheus-1 | 0b6f9a1072754c6ade1aa4d7b07d8ffe6a5eeb4c | [
"BSD-3-Clause"
] | 26 | 2021-04-28T13:54:26.000Z | 2022-02-28T23:18:31.000Z | tests/datasets/test_usstocks.py | vishalbelsare/epymetheus-1 | 0b6f9a1072754c6ade1aa4d7b07d8ffe6a5eeb4c | [
"BSD-3-Clause"
] | 152 | 2019-12-24T09:52:10.000Z | 2021-04-28T12:25:11.000Z | tests/datasets/test_usstocks.py | vishalbelsare/epymetheus-1 | 0b6f9a1072754c6ade1aa4d7b07d8ffe6a5eeb4c | [
"BSD-3-Clause"
] | 8 | 2021-04-30T06:49:48.000Z | 2021-12-30T21:11:55.000Z | import numpy as np
import pytest # noqa: F401
from pandas_datareader._utils import RemoteDataError
from epymetheus.datasets import fetch_usstocks
# --------------------------------------------------------------------------------
def test_toomanyasset():
"""
Test if fetch_usstocks raises ValueError
when... | 24.8 | 82 | 0.609677 | 70 | 620 | 5.242857 | 0.642857 | 0.141689 | 0.076294 | 0.108992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015936 | 0.190323 | 620 | 24 | 83 | 25.833333 | 0.715139 | 0.256452 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7085812716fb4d2f66be23b4f86fe1ec64421b64 | 648 | py | Python | tests/data/from_ocean_optics.py | untzag/WrightTools | 05480d2f91ceeca422d9e5ac381fce1840207cb0 | [
"MIT"
] | 12 | 2017-07-11T15:58:12.000Z | 2021-05-10T20:33:26.000Z | tests/data/from_ocean_optics.py | untzag/WrightTools | 05480d2f91ceeca422d9e5ac381fce1840207cb0 | [
"MIT"
] | 808 | 2015-04-12T00:36:08.000Z | 2022-03-27T21:06:06.000Z | tests/data/from_ocean_optics.py | untzag/WrightTools | 05480d2f91ceeca422d9e5ac381fce1840207cb0 | [
"MIT"
] | 9 | 2017-07-22T18:54:23.000Z | 2022-02-17T20:31:05.000Z | """Test from_ocean_optics."""
# --- import --------------------------------------------------------------------------------------
import WrightTools as wt
from WrightTools import datasets
# --- test ----------------------------------------------------------------------------------------
def test_tsunami_scope()... | 24 | 99 | 0.387346 | 48 | 648 | 4.854167 | 0.520833 | 0.141631 | 0.128755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.123457 | 648 | 26 | 100 | 24.923077 | 0.403169 | 0.490741 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
708863661abc5a6b4cca198091e8027e07e349f1 | 457 | py | Python | tests/test_streaming.py | MartinKliemank/lettuce | ee1b4dbfdbcf1bd87ac6b867b091a923d033403e | [
"MIT"
] | 2 | 2020-03-29T12:16:35.000Z | 2021-06-11T12:43:26.000Z | tests/test_streaming.py | MartinKliemank/lettuce | ee1b4dbfdbcf1bd87ac6b867b091a923d033403e | [
"MIT"
] | null | null | null | tests/test_streaming.py | MartinKliemank/lettuce | ee1b4dbfdbcf1bd87ac6b867b091a923d033403e | [
"MIT"
] | 1 | 2021-05-10T08:46:29.000Z | 2021-05-10T08:46:29.000Z | """
Tests for streaming operators.
"""
from lettuce import StandardStreaming
import pytest
import copy
def test_standard_streaming_x3(f_all_lattices):
"""Streaming three times on a 3^D grid gives the original distribution functions."""
f, lattice = f_all_lattices
f_old = copy.copy(f.cpu().numpy())
... | 19.869565 | 88 | 0.717724 | 61 | 457 | 5.229508 | 0.57377 | 0.025078 | 0.075235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005277 | 0.170678 | 457 | 22 | 89 | 20.772727 | 0.836412 | 0.238512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
70999e79ac6b71a11ed52848615f2cdb844b58e0 | 2,792 | py | Python | checks.d/oom.py | borgified/datadog-checks | 77331df7a53bb8c0ba7193fd44bf863f60ad8646 | [
"MIT"
] | 100 | 2016-07-23T02:50:03.000Z | 2020-09-26T09:26:06.000Z | checks.d/oom.py | skatlapa/datadog-checks | b62d44e9ad5557757e14caf2fe58aec2804696fa | [
"MIT"
] | 71 | 2016-07-27T13:24:03.000Z | 2021-01-07T23:27:09.000Z | checks.d/oom.py | skatlapa/datadog-checks | b62d44e9ad5557757e14caf2fe58aec2804696fa | [
"MIT"
] | 25 | 2016-09-27T22:58:25.000Z | 2020-05-08T07:41:26.000Z | # Add lib/ to the import path:
import sys
import os
agent_lib_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../lib')
sys.path.insert(1, agent_lib_dir)
import re
import errno
from checks import AgentCheck
from helpers import reverse_readline
class OOM(AgentCheck):
def check(self, instance):
... | 36.736842 | 104 | 0.531877 | 307 | 2,792 | 4.7557 | 0.462541 | 0.034247 | 0.032877 | 0.045205 | 0.065068 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0.002377 | 0.397206 | 2,792 | 75 | 105 | 37.226667 | 0.865122 | 0.21884 | 0 | 0.104167 | 0 | 0 | 0.070507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
709ad9a55922f338a3c53019eca4db530bb9aa86 | 6,497 | py | Python | puma/helpers/testing/logging/capture_logs.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | puma/helpers/testing/logging/capture_logs.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | 13 | 2020-05-04T14:14:58.000Z | 2020-07-29T16:37:03.000Z | puma/helpers/testing/logging/capture_logs.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | import logging
import queue
from logging import LogRecord
from typing import Any, List, Optional, Set, Sized
from puma.context import Exit_1, Exit_2, Exit_3
from puma.logging import LogLevel, Logging, ManagedProcessLogQueue
class CapturedRecords(Sized):
"""Represents the log records captured by CaptureLogContext... | 52.821138 | 167 | 0.705402 | 848 | 6,497 | 5.159198 | 0.242925 | 0.053486 | 0.0384 | 0.0224 | 0.3696 | 0.309029 | 0.272229 | 0.258057 | 0.221943 | 0.201371 | 0 | 0.001932 | 0.203171 | 6,497 | 122 | 168 | 53.254098 | 0.843152 | 0.259812 | 0 | 0.051948 | 0 | 0 | 0.042054 | 0.013948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246753 | false | 0 | 0.077922 | 0.012987 | 0.519481 | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70a00d747c7f15c8300fa9093dada83aa8b8ffe7 | 273 | py | Python | Exercicios-Mundo1/ex028.py | WeDias/RespCEV | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | [
"MIT"
] | 1 | 2021-02-19T05:13:31.000Z | 2021-02-19T05:13:31.000Z | Exercicios-Mundo1/ex028.py | WeDias/RespCEV | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | [
"MIT"
] | null | null | null | Exercicios-Mundo1/ex028.py | WeDias/RespCEV | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | [
"MIT"
] | null | null | null | import random
user = int(input('Digite um Número de 0 a 5: '))
pc = random.randint(0, 5)
if user == pc:
print('O Computador esolheu o Número {}\nPARABENS! VOCÊ ACERTOU !'.format(pc))
else:
print('O Computador escolheu o Número {}\nVOCÊ PERDEU !'.format(pc))
| 34.125 | 83 | 0.659341 | 42 | 273 | 4.285714 | 0.642857 | 0.066667 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.194139 | 273 | 7 | 84 | 39 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
70a2c8339e1c8f5e2e170eeeda0d31e3b0dcb75e | 782 | py | Python | conanfile.py | matt1795/stm32 | c79cb9d3cb972d6151c2c9fa8180da534e8f6f41 | [
"MIT"
] | null | null | null | conanfile.py | matt1795/stm32 | c79cb9d3cb972d6151c2c9fa8180da534e8f6f41 | [
"MIT"
] | null | null | null | conanfile.py | matt1795/stm32 | c79cb9d3cb972d6151c2c9fa8180da534e8f6f41 | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake, tools
class Stm32Conan(ConanFile):
name = "stm32"
version = "0.1"
license = "MIT"
author = "Matthew Knight"
url = "https://github.com/matt1795/stm32"
description = "Example program for an STM32"
topics = ("embedded", "mcu", "stm32")
generators = "cma... | 28.962963 | 83 | 0.634271 | 89 | 782 | 5.494382 | 0.685393 | 0.07362 | 0.06544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053156 | 0.230179 | 782 | 26 | 84 | 30.076923 | 0.759136 | 0 | 0 | 0 | 0 | 0 | 0.306905 | 0.121483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
560942e0138f1e2489ef1757a52e426c151b5938 | 774 | py | Python | patent_part.py | patent-python/patent-generator | 3b5e5102b04eb13913a49a0c9c42922a80d645a9 | [
"MIT"
] | 109 | 2015-01-12T03:23:35.000Z | 2022-02-08T22:32:52.000Z | patent_part.py | patent-python/patent-generator | 3b5e5102b04eb13913a49a0c9c42922a80d645a9 | [
"MIT"
] | 2 | 2015-06-02T01:18:12.000Z | 2021-05-17T11:45:32.000Z | patent_part.py | antiboredom/patent-generator | 3b5e5102b04eb13913a49a0c9c42922a80d645a9 | [
"MIT"
] | 28 | 2015-01-05T19:45:44.000Z | 2022-03-13T23:37:10.000Z | import re
def get_pars(text):
pars = re.findall(r'\[[0-9]+\]\n*(.*)', text)
pars = [p.strip() for p in pars]
return pars
def get_claims(text):
claims = re.findall(r'.*claim.*', text, re.IGNORECASE)
return claims
def get_claim_body(text):
match = re.search(r'^claim[s*]$', text, re.IGNORECASE |... | 19.846154 | 73 | 0.569767 | 104 | 774 | 4.086538 | 0.375 | 0.042353 | 0.042353 | 0.075294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00531 | 0.270026 | 774 | 38 | 74 | 20.368421 | 0.746903 | 0 | 0 | 0.074074 | 0 | 0 | 0.095731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5609a805363b8db0623f78c5421c6989c35c73a1 | 6,479 | py | Python | UnsupervisedLearning/03. Fuzzy-C-Means/PlotFunctions.py | datamonday/ML-Algorithm-Source-Code | b5fb23c4a9dee3428b07d78f707749600617e4af | [
"MIT"
] | 9 | 2021-06-09T14:00:49.000Z | 2022-03-31T13:56:49.000Z | UnsupervisedLearning/03. Fuzzy-C-Means/PlotFunctions.py | datamonday/ML-Algorithm-Source-Code | b5fb23c4a9dee3428b07d78f707749600617e4af | [
"MIT"
] | 1 | 2021-11-11T06:35:31.000Z | 2021-11-11T06:35:31.000Z | UnsupervisedLearning/03. Fuzzy-C-Means/PlotFunctions.py | datamonday/ML-Algorithm-Source-Code | b5fb23c4a9dee3428b07d78f707749600617e4af | [
"MIT"
] | 2 | 2021-12-22T12:30:06.000Z | 2022-02-15T07:26:08.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 5 00:24:23 2021
@author: 34123
"""
import matplotlib.pyplot as plt
import numpy as np
import random
from scipy.stats import multivariate_normal
def plot_random_init_iris_sepal(df_full):
sepal_df = df_full.iloc[:,0:2]
sepal_df = np.array(sepal_df)
m1 = ... | 34.280423 | 89 | 0.593301 | 1,004 | 6,479 | 3.681275 | 0.136454 | 0.045455 | 0.022727 | 0.051948 | 0.755411 | 0.739448 | 0.631764 | 0.560877 | 0.502435 | 0.502435 | 0 | 0.055408 | 0.242321 | 6,479 | 188 | 90 | 34.462766 | 0.697494 | 0.038123 | 0 | 0.577778 | 0 | 0 | 0.037019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02963 | false | 0 | 0.02963 | 0 | 0.059259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5615ef3ce5332dc5f0b35b0e61393c9e1f1f8da3 | 2,867 | py | Python | web/http_server_post_example.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | web/http_server_post_example.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | web/http_server_post_example.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | '''
-----------------------------------------------------------
BaseHTTPServer - base classes for implementing web servers:
-----------------------------------------------------------
Purpose: BaseHTTPServer includes classes that can form the basis of a web server.
Available In: 1.4 and later
BaseHTTPServer uses clas... | 42.791045 | 81 | 0.61737 | 354 | 2,867 | 4.923729 | 0.454802 | 0.030981 | 0.048193 | 0.018359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004984 | 0.230206 | 2,867 | 67 | 82 | 42.791045 | 0.784776 | 0.169864 | 0 | 0 | 0 | 0 | 0.143472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
561b84a92616394ace4620b0e983a4bcae7823b7 | 1,048 | py | Python | logic_bank/rule_type/parent_cascade.py | valhuber/LogicBank | 0df8790395fe260778e910badcc15fba49c23e96 | [
"BSD-3-Clause"
] | 39 | 2020-10-14T02:23:59.000Z | 2022-02-11T14:08:46.000Z | logic_bank/rule_type/parent_cascade.py | valhuber/LogicBank | 0df8790395fe260778e910badcc15fba49c23e96 | [
"BSD-3-Clause"
] | 7 | 2020-10-14T23:59:49.000Z | 2022-03-16T16:25:43.000Z | logic_bank/rule_type/parent_cascade.py | valhuber/LogicBank | 0df8790395fe260778e910badcc15fba49c23e96 | [
"BSD-3-Clause"
] | 7 | 2020-10-17T02:59:51.000Z | 2022-03-26T08:56:46.000Z | from enum import Enum
import logic_bank.exec_row_logic.logic_row as LogicRow
from logic_bank.rule_bank.rule_bank import RuleBank
from logic_bank.rule_type.abstractrule import AbstractRule
class ParentCascade(AbstractRule):
def __init__(self, validate: object,
error_msg: str = "Unable to delete... | 29.111111 | 75 | 0.65458 | 118 | 1,048 | 5.525424 | 0.440678 | 0.04908 | 0.039877 | 0.052147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256679 | 1,048 | 35 | 76 | 29.942857 | 0.83697 | 0 | 0 | 0 | 0 | 0 | 0.121183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.153846 | 0.038462 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
561dc41cab8dc5d30bae1eb294290e1c43c84078 | 463 | py | Python | register/management/commands/populate_nights_meals.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | register/management/commands/populate_nights_meals.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | register/management/commands/populate_nights_meals.py | Ajuajmal/heroku | f23aad8c392a273caf0da39cedeec4746ded29dc | [
"0BSD"
] | null | null | null | from django.core.management.base import BaseCommand
from dc18.dates import nights, meals
from register.models import AccommNight, Meal
class Command(BaseCommand):
help = 'Create Meal and Night objects in the DB'
def handle(self, *args, **options):
for night in nights(orga=True):
AccommNi... | 30.866667 | 60 | 0.706263 | 65 | 463 | 4.969231 | 0.553846 | 0.06192 | 0.074303 | 0.111455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00542 | 0.203024 | 463 | 14 | 61 | 33.071429 | 0.869919 | 0 | 0 | 0 | 0 | 0 | 0.084233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
561e4cf48bcfa4adcdbfe29adc8ad4d59124cd57 | 734 | py | Python | setup.py | gcpartners/DSStoreParser | 495485b263adfb56f13bca0c68d640b2e462948b | [
"Apache-2.0"
] | 3 | 2019-08-27T01:55:15.000Z | 2020-03-26T19:38:19.000Z | setup.py | gcpartners/DSStoreParser | 495485b263adfb56f13bca0c68d640b2e462948b | [
"Apache-2.0"
] | null | null | null | setup.py | gcpartners/DSStoreParser | 495485b263adfb56f13bca0c68d640b2e462948b | [
"Apache-2.0"
] | 1 | 2021-02-18T01:14:29.000Z | 2021-02-18T01:14:29.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import find_packages, setup
except ImportError:
from distutils.core import find_packages, setup
setup(
name='ds_store_parser',
version='0.1.2',
description='A .DS_Store Parser',
author = 'G-C Partners, LLC'... | 21.588235 | 54 | 0.633515 | 89 | 734 | 5.044944 | 0.730337 | 0.062361 | 0.080178 | 0.10245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008881 | 0.23297 | 734 | 33 | 55 | 22.242424 | 0.788632 | 0.057221 | 0 | 0.068966 | 0 | 0 | 0.298551 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.172414 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
561e8a1ca93de2ba976e033517291b86c19a43fb | 2,081 | py | Python | sanalberto/migrations/0001_initial.py | DarkoR12/dafi-system | f923ea4273b04f7acc7016b2f7d03e51eb00b85b | [
"MIT"
] | 7 | 2019-08-03T12:25:18.000Z | 2021-11-02T12:51:33.000Z | sanalberto/migrations/0001_initial.py | DarkoR12/dafi-system | f923ea4273b04f7acc7016b2f7d03e51eb00b85b | [
"MIT"
] | 11 | 2019-08-20T17:07:37.000Z | 2021-11-23T14:26:07.000Z | sanalberto/migrations/0001_initial.py | DarkoR12/dafi-system | f923ea4273b04f7acc7016b2f7d03e51eb00b85b | [
"MIT"
] | 4 | 2020-04-06T11:33:02.000Z | 2021-10-31T09:10:53.000Z | # Generated by Django 2.1.13 on 2020-10-08 20:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('clubs', '0006_club_slug_unique'),
migrations.swappable_depende... | 38.537037 | 170 | 0.592023 | 206 | 2,081 | 5.820388 | 0.407767 | 0.119266 | 0.046706 | 0.073395 | 0.370309 | 0.370309 | 0.370309 | 0.370309 | 0.330275 | 0.236864 | 0 | 0.015262 | 0.275829 | 2,081 | 53 | 171 | 39.264151 | 0.780358 | 0.022105 | 0 | 0.391304 | 1 | 0 | 0.13576 | 0.01033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.152174 | 0 | 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 |
562199f181ed18f68cba7f85f9f841ac974a68d4 | 2,236 | py | Python | test.py | wxppl/cfpb | 3ce74213ca07555b3b7426f2bfa5800bfa9dd8ee | [
"CC0-1.0"
] | 2 | 2018-07-26T19:47:04.000Z | 2019-02-25T00:48:07.000Z | test.py | wxppl/cfpb | 3ce74213ca07555b3b7426f2bfa5800bfa9dd8ee | [
"CC0-1.0"
] | 10 | 2015-12-08T13:09:30.000Z | 2015-12-17T14:47:49.000Z | test.py | wxppl/cfpb | 3ce74213ca07555b3b7426f2bfa5800bfa9dd8ee | [
"CC0-1.0"
] | 4 | 2017-07-14T03:07:11.000Z | 2021-02-20T10:49:03.000Z | import argparse
import os
import random
import pick_rand
import Zip_Backfill
import Self_Check
import Google_Check
#command line parser
parser = argparse.ArgumentParser(description = 'Tests zip_backfill accuraccy on a number of rows randomly selected from every file, choose one flag')
parser.add_argument('input', hel... | 35.492063 | 149 | 0.762075 | 353 | 2,236 | 4.691218 | 0.271955 | 0.048913 | 0.092391 | 0.036232 | 0.2343 | 0.210749 | 0.18901 | 0.104469 | 0.104469 | 0.104469 | 0 | 0.017463 | 0.129249 | 2,236 | 63 | 150 | 35.492063 | 0.833077 | 0.059481 | 0 | 0.054054 | 0 | 0 | 0.324917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.216216 | null | null | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56234a915253d8cca359ce8096411e3ccdfe2880 | 462 | py | Python | b2s/b2s.py | nunorc/astromlp-models | 32356d50f9aa45c123df51cdaffb5547c4791248 | [
"MIT"
] | null | null | null | b2s/b2s.py | nunorc/astromlp-models | 32356d50f9aa45c123df51cdaffb5547c4791248 | [
"MIT"
] | null | null | null | b2s/b2s.py | nunorc/astromlp-models | 32356d50f9aa45c123df51cdaffb5547c4791248 | [
"MIT"
] | null | null | null |
import tensorflow as tf
from astromlp.sdss.shared import CLASSES
def model(norm):
bands = tf.keras.Input(shape=(5), name='bands')
x = norm(bands)
x = tf.keras.layers.Dense(32, activation='relu')(x)
x = tf.keras.layers.Dense(32, activation='relu')(x)
subclass = tf.keras.layers.Dense(len(CLASSES['su... | 33 | 104 | 0.683983 | 67 | 462 | 4.716418 | 0.462687 | 0.110759 | 0.123418 | 0.170886 | 0.227848 | 0.227848 | 0.227848 | 0.227848 | 0.227848 | 0 | 0 | 0.015228 | 0.147186 | 462 | 14 | 105 | 33 | 0.786802 | 0 | 0 | 0.2 | 0 | 0 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
562544640ea7ad205283c3fbd1b3b8727eb1bef9 | 7,012 | py | Python | tests.py | Riaz1729/preconditions | 5af8feb0372ef6bb33b4fd686a30da95cabb6840 | [
"MIT"
] | 5 | 2016-05-27T12:41:03.000Z | 2020-09-02T18:03:55.000Z | tests.py | Riaz1729/preconditions | 5af8feb0372ef6bb33b4fd686a30da95cabb6840 | [
"MIT"
] | 2 | 2015-06-27T19:11:24.000Z | 2018-05-31T12:10:30.000Z | tests.py | Riaz1729/preconditions | 5af8feb0372ef6bb33b4fd686a30da95cabb6840 | [
"MIT"
] | 4 | 2015-05-20T04:27:54.000Z | 2019-03-30T12:36:27.000Z | from unittest import TestCase, main
from preconditions import PreconditionError, preconditions
class PreconditionTestBase (TestCase):
def assertPreconditionFails(self, target, *args, **kw):
self.assertRaises(PreconditionError, target, *args, **kw)
def assertPreconditionFailsRegexp(self, rgx, target,... | 27.073359 | 78 | 0.563177 | 805 | 7,012 | 4.759006 | 0.159006 | 0.036544 | 0.036544 | 0.016445 | 0.44923 | 0.351083 | 0.288697 | 0.257896 | 0.257896 | 0.239102 | 0 | 0.015041 | 0.317313 | 7,012 | 258 | 79 | 27.178295 | 0.785252 | 0.007844 | 0 | 0.331461 | 0 | 0.005618 | 0.104847 | 0.016827 | 0 | 0 | 0 | 0 | 0.252809 | 1 | 0.224719 | false | 0 | 0.011236 | 0.073034 | 0.370787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56307db0a48757846def01068f4fd055ed13040b | 450 | py | Python | utils.py | strawhatboy/KGQR | f06754db1ed875aaadb812612cf4a0dd79cb1d23 | [
"MIT"
] | 8 | 2021-07-23T08:37:57.000Z | 2022-03-08T08:04:55.000Z | utils.py | strawhatboy/KGQR | f06754db1ed875aaadb812612cf4a0dd79cb1d23 | [
"MIT"
] | 1 | 2021-11-23T11:01:50.000Z | 2021-11-23T11:01:50.000Z | utils.py | strawhatboy/KGQR | f06754db1ed875aaadb812612cf4a0dd79cb1d23 | [
"MIT"
] | 2 | 2021-08-01T15:53:18.000Z | 2021-12-12T10:48:52.000Z | import pickle
def pickle_dump(file_path, file):
with open(file_path, 'wb') as f:
pickle.dump(file, f)
# print(f'Logging Info - Saved: {file_path}')
def pickle_load(file_path):
try:
with open(file_path, 'rb') as f:
obj = pickle.load(f)
# print(f'Logging Info - Loaded: ... | 23.684211 | 60 | 0.595556 | 64 | 450 | 4.046875 | 0.40625 | 0.216216 | 0.150579 | 0.123552 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 450 | 18 | 61 | 25 | 0.796923 | 0.308889 | 0 | 0 | 0 | 0 | 0.013029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
56363a545d0b4782032c89e0869f3949b01017eb | 1,581 | py | Python | functions.py | Alex-Skp/udacity-capstone-project | a322f01658a425a21c76c5a139be07621936ebb0 | [
"Apache-2.0"
] | null | null | null | functions.py | Alex-Skp/udacity-capstone-project | a322f01658a425a21c76c5a139be07621936ebb0 | [
"Apache-2.0"
] | null | null | null | functions.py | Alex-Skp/udacity-capstone-project | a322f01658a425a21c76c5a139be07621936ebb0 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import os
def generate_grid_dataframe(from_x,
to_x,
from_y,
to_y,
inc_x,
inc_y,
precision):
"""
This function will generat... | 27.258621 | 78 | 0.507906 | 235 | 1,581 | 3.234043 | 0.238298 | 0.027632 | 0.031579 | 0.039474 | 0.3 | 0.3 | 0.3 | 0.165789 | 0.165789 | 0 | 0 | 0.009484 | 0.399747 | 1,581 | 57 | 79 | 27.736842 | 0.791359 | 0.343454 | 0 | 0 | 1 | 0 | 0.047035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.111111 | 0 | 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 |
56460af826ba8ab997b5fa35f3a1d3dd7d8804cb | 4,707 | py | Python | ansys/dpf/core/operators/scoping/elemental_from_mesh.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 11 | 2021-01-31T15:50:02.000Z | 2021-10-01T23:15:38.000Z | ansys/dpf/core/operators/scoping/elemental_from_mesh.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 46 | 2021-01-14T05:00:50.000Z | 2021-10-06T18:30:37.000Z | ansys/dpf/core/operators/scoping/elemental_from_mesh.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 3 | 2021-06-30T07:18:30.000Z | 2021-09-15T08:43:11.000Z | """
elemental_from_mesh
===================
"""
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import Output, _Outputs, _modify_output_spec_with_one_type
from ansys.dpf.core.operators.specification import PinSpecification, Specification
"""... | 30.764706 | 142 | 0.616741 | 508 | 4,707 | 5.478346 | 0.179134 | 0.070068 | 0.091628 | 0.045275 | 0.365792 | 0.365792 | 0.333812 | 0.306504 | 0.306504 | 0.306504 | 0 | 0.002006 | 0.258551 | 4,707 | 152 | 143 | 30.967105 | 0.795415 | 0.426386 | 0 | 0.181818 | 0 | 0 | 0.067219 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.090909 | 0.022727 | 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 |
56466fcde91601393f6ec10208b5990d0e662544 | 6,669 | py | Python | legacy/printCutFlow.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | legacy/printCutFlow.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | legacy/printCutFlow.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | '''
Created on Dec 1, 2011
@author: Lukasz Kreczko
Email: Lukasz.Kreczko@cern.ch
The AnalysisTools produce a 2D histogram with the cut flow for each sample which is saved in the histogram file
First dimension is the cut-stage, second dimension the jet-bin (== 1, ==2, ==3, >=4)
printCutFlow reads 2D histogram
output... | 43.875 | 160 | 0.581197 | 736 | 6,669 | 5.186141 | 0.263587 | 0.011003 | 0.010217 | 0.012575 | 0.297354 | 0.230286 | 0.192036 | 0.192036 | 0.192036 | 0.192036 | 0 | 0.01971 | 0.277253 | 6,669 | 151 | 161 | 44.165563 | 0.772199 | 0.035088 | 0 | 0.298387 | 0 | 0.032258 | 0.262671 | 0.07545 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056452 | null | null | 0.08871 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
564c444d6842d7b969c8c8b52a92285353949c5f | 3,981 | py | Python | angola_erp/angola_erpnext/doctype/app_theme/app_theme.py | resourcefactors/angola_erp | 8cbe1f655f11807769ddf16872f074e3a80e655b | [
"MIT"
] | 4 | 2019-06-12T06:54:10.000Z | 2021-08-28T06:07:42.000Z | angola_erp/angola_erpnext/doctype/app_theme/app_theme.py | proenterprise/angola_erp | 1c171362b132e567390cf702e6ebd72577297cdf | [
"MIT"
] | 4 | 2017-08-24T17:33:45.000Z | 2017-09-24T16:54:01.000Z | angola_erp/angola_erpnext/doctype/app_theme/app_theme.py | proenterprise/angola_erp | 1c171362b132e567390cf702e6ebd72577297cdf | [
"MIT"
] | 4 | 2018-02-10T21:08:10.000Z | 2021-08-28T06:08:11.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Helio de Jesus and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
import os
class AppTheme(Document):
def validate(self):
#self.validat... | 30.159091 | 221 | 0.73474 | 567 | 3,981 | 4.931217 | 0.276896 | 0.085837 | 0.055079 | 0.042918 | 0.393777 | 0.303648 | 0.258941 | 0.258941 | 0.226753 | 0.172389 | 0 | 0.016784 | 0.146948 | 3,981 | 131 | 222 | 30.389313 | 0.806537 | 0.106757 | 0 | 0.126582 | 0 | 0.012658 | 0.222739 | 0.019827 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012658 | 0.088608 | null | null | 0.177215 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5650926dbc0ea972d508448d5690a1af2d670274 | 5,464 | py | Python | flask_app.py | a-poor/SlcRegistrationConference | b589f21b7ad01b650ff0779880befd0fee41814b | [
"MIT"
] | null | null | null | flask_app.py | a-poor/SlcRegistrationConference | b589f21b7ad01b650ff0779880befd0fee41814b | [
"MIT"
] | null | null | null | flask_app.py | a-poor/SlcRegistrationConference | b589f21b7ad01b650ff0779880befd0fee41814b | [
"MIT"
] | null | null | null | """
SLC Flask Registration
Created by Austin Poor
Repo: https://github.com/a-poor/SlcRegistrationConference
"""
from flask import Flask, render_template, request, flash, session, escape, redirect, url_for
from RegDB import RegDB
DB_PATH = 'db/slc_reg.db'
app = Flask(__name__)
app.secret_key = b'\x06t\... | 30.870056 | 148 | 0.598829 | 660 | 5,464 | 4.833333 | 0.224242 | 0.041379 | 0.026332 | 0.018809 | 0.252665 | 0.214107 | 0.160815 | 0.139498 | 0.108777 | 0.08558 | 0 | 0.00578 | 0.271779 | 5,464 | 176 | 149 | 31.045455 | 0.795929 | 0.04612 | 0 | 0.373239 | 0 | 0.007042 | 0.139781 | 0.009998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0.056338 | 0.014085 | 0.014085 | 0.161972 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56655b937e373f8ad897c1c6005cb34dc7bfef38 | 4,268 | py | Python | WebApp/process_control/forms.py | ResoluteFPGrenada/GrenadaIntranetSite | 841394a8073606c7a26ddf85a3976c6b4373bda9 | [
"MIT"
] | null | null | null | WebApp/process_control/forms.py | ResoluteFPGrenada/GrenadaIntranetSite | 841394a8073606c7a26ddf85a3976c6b4373bda9 | [
"MIT"
] | 5 | 2021-03-20T03:48:30.000Z | 2022-03-12T00:28:34.000Z | WebApp/process_control/forms.py | ResoluteFPGrenada/GrenadaIntranetSite | 841394a8073606c7a26ddf85a3976c6b4373bda9 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import (StringField, IntegerField, SubmitField, SelectField, TextAreaField, DecimalField)
from wtforms.validators import DataRequired, Length, ValidationError
from WebApp.api.sqlite_tool import sqlite_api
db = "./app/WebApp/... | 36.169492 | 123 | 0.624414 | 393 | 4,268 | 6.689567 | 0.254453 | 0.133891 | 0.020921 | 0.033473 | 0.670978 | 0.649296 | 0.532902 | 0.532902 | 0.515785 | 0.515785 | 0 | 0 | 0.266401 | 4,268 | 117 | 124 | 36.478632 | 0.839668 | 0 | 0 | 0.556962 | 0 | 0 | 0.225867 | 0.008201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.063291 | 0 | 0.56962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5665aaa210596ba7830b262335f88f038b0889a6 | 1,744 | py | Python | Armazenamento: Listas/Varias notas.py | abraaogleiber/Python3 | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | 1 | 2021-03-24T23:40:20.000Z | 2021-03-24T23:40:20.000Z | Armazenamento: Listas/Varias notas.py | abraaogleiber/Python_Sequencial_Procedural | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | Armazenamento: Listas/Varias notas.py | abraaogleiber/Python_Sequencial_Procedural | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | """
Programa 104
Área de estudos.
data 05.12.2020 (Indefinida) Hs
@Autor: Abraão A. Silva
"""
# Usamos o modulo matemático, para truncar valores flutuantes.
import math # utilizando o método "trunc".
# Minha variável de armazenamento de dados.
notas = list()
soma = 0
while True: # Corpo principal, usado para ... | 33.538462 | 110 | 0.638188 | 247 | 1,744 | 4.506073 | 0.538462 | 0.026954 | 0.010782 | 0.019766 | 0.032345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020721 | 0.252867 | 1,744 | 51 | 111 | 34.196078 | 0.833461 | 0.50172 | 0 | 0.071429 | 0 | 0 | 0.244104 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.321429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
566632be2038413ce2231689992f9e117f1de7c9 | 3,159 | py | Python | obstructx/db_introspect.py | donalm/obstructx | 521ef26e125680f9e8dc665c75bd56a6e72c194a | [
"MIT"
] | null | null | null | obstructx/db_introspect.py | donalm/obstructx | 521ef26e125680f9e8dc665c75bd56a6e72c194a | [
"MIT"
] | null | null | null | obstructx/db_introspect.py | donalm/obstructx | 521ef26e125680f9e8dc665c75bd56a6e72c194a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
queries={}
queries["list_databases"] = """
SELECT
datname
FROM
pg_database
WHERE
datistemplate = false"""
queries["list_tables"] = """
SELECT
table_catalog,
table_name
FROM
information_schema.tables
WHERE
table_schema='public'
AND
table_type='BASE TABLE'
order by... | 23.574627 | 81 | 0.59101 | 374 | 3,159 | 4.772727 | 0.283422 | 0.05042 | 0.035294 | 0.02577 | 0.115406 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0.002335 | 0.322254 | 3,159 | 133 | 82 | 23.75188 | 0.831387 | 0.006331 | 0 | 0.252033 | 0 | 0 | 0.916507 | 0.081262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00813 | 0 | 0.00813 | 0 | 0 | 0 | 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 |
5668783a79cee9a15c673da57e5176a0cbd37e87 | 351 | py | Python | paranuara/citizens/urls.py | SPLAYER-HD/Paranuara | 5a42f23d761e16e3b486ba04d9185551614f06a5 | [
"MIT"
] | null | null | null | paranuara/citizens/urls.py | SPLAYER-HD/Paranuara | 5a42f23d761e16e3b486ba04d9185551614f06a5 | [
"MIT"
] | 4 | 2021-06-08T20:53:43.000Z | 2022-03-12T00:13:51.000Z | paranuara/citizens/urls.py | SPLAYER-HD/RestServiceDjango | 5a42f23d761e16e3b486ba04d9185551614f06a5 | [
"MIT"
] | null | null | null | """Citizens URLs."""
# Django
from django.urls import include, path
# Django REST Framework
from rest_framework.routers import DefaultRouter
# Views
from .views import citizens as citizens_views
router = DefaultRouter()
router.register(r'citizens', citizens_views.CitizenViewSet, basename='citizen')
urlpatterns = [p... | 23.4 | 79 | 0.777778 | 42 | 351 | 6.428571 | 0.47619 | 0.096296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 351 | 14 | 80 | 25.071429 | 0.865385 | 0.14245 | 0 | 0 | 0 | 0 | 0.051195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
566c4e893eb306917cbae5e86afeca43f7231fd9 | 12,760 | py | Python | parse_sifts.py | hackathonismb/Molecular-Sentry | dd1daef93c5c550ee0afca4d727ef34bb9d04fd9 | [
"MIT"
] | null | null | null | parse_sifts.py | hackathonismb/Molecular-Sentry | dd1daef93c5c550ee0afca4d727ef34bb9d04fd9 | [
"MIT"
] | null | null | null | parse_sifts.py | hackathonismb/Molecular-Sentry | dd1daef93c5c550ee0afca4d727ef34bb9d04fd9 | [
"MIT"
] | null | null | null | # #!/home/exec/anaconda3/bin/python
# -*- coding: utf-8 -*-
# curl --silent ftp://ftp.ebi.ac.uk/pub/databases/msd/sifts/xml/3sn6.xml.gz | gunzip | python2 parse_sifts.py 1> 3sn6.tsv 2> /dev/null
# Generated Thu Nov 20 17:12:58 2014 by generateDS.py version 2.13a.
#
# Command line options:
# ('-f', '')
# ('-o', 's... | 41.428571 | 134 | 0.520063 | 1,331 | 12,760 | 4.738542 | 0.170548 | 0.152687 | 0.053591 | 0.049945 | 0.708578 | 0.698113 | 0.628032 | 0.560488 | 0.554622 | 0.548597 | 0 | 0.02657 | 0.383542 | 12,760 | 307 | 135 | 41.563518 | 0.775235 | 0 | 0 | 0.572464 | 0 | 0.003623 | 0.053173 | 0.00809 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003623 | 0.123188 | null | null | 0.018116 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
566c918cea47575a72721da7f0b6f32de1ea18db | 533 | py | Python | tests/cases/sequence/finite/test.py | aarongaut/nextsong | 05639d3aba2ef31721fd2533ca804a0d32e64ebf | [
"MIT"
] | null | null | null | tests/cases/sequence/finite/test.py | aarongaut/nextsong | 05639d3aba2ef31721fd2533ca804a0d32e64ebf | [
"MIT"
] | null | null | null | tests/cases/sequence/finite/test.py | aarongaut/nextsong | 05639d3aba2ef31721fd2533ca804a0d32e64ebf | [
"MIT"
] | null | null | null | from nextsong.sequence import FiniteSequence as S
import random
assert list(S()) == []
assert list(S(10, 20, 30, 40, 50, 60)) == [10, 20, 30, 40, 50, 60]
for seed in [42, 43, 44, 45]:
print(f"testing seed {seed}")
random.seed(seed)
assert list(S(10, 20, 30, 40, portion=0)) == []
assert len(list(S(10, ... | 28.052632 | 68 | 0.549719 | 92 | 533 | 3.184783 | 0.369565 | 0.102389 | 0.102389 | 0.136519 | 0.389079 | 0.389079 | 0.334471 | 0.249147 | 0 | 0 | 0 | 0.205514 | 0.251407 | 533 | 18 | 69 | 29.611111 | 0.528822 | 0 | 0 | 0 | 0 | 0 | 0.035647 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.0625 | 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 |
566fa8be5364cf5144f699490ad79ec9c626faed | 1,337 | py | Python | semantic_git/help.py | mese79/semantic_git | 2b804fbe6b393b2b2e55824ec4cf2e10f70bed20 | [
"MIT"
] | 3 | 2022-02-01T19:38:59.000Z | 2022-02-01T23:10:46.000Z | semantic_git/help.py | mese79/semantic_git | 2b804fbe6b393b2b2e55824ec4cf2e10f70bed20 | [
"MIT"
] | null | null | null | semantic_git/help.py | mese79/semantic_git | 2b804fbe6b393b2b2e55824ec4cf2e10f70bed20 | [
"MIT"
] | null | null | null | from colorama import Fore, Back
RESET = Fore.RESET
BLUE = Fore.BLUE
class Text:
BOLD = '\033[1m'
OFF = '\033[0m'
base = f"""
{Fore.GREEN}Semantic Git{RESET}
Plain english commands for git!
usage: sgit [--help] [--demo] [command ...]
example: sgit undo all changes
positional arguments:
command yo... | 29.065217 | 97 | 0.675393 | 193 | 1,337 | 4.678756 | 0.476684 | 0.062016 | 0.053156 | 0.066445 | 0.081949 | 0.081949 | 0.081949 | 0.081949 | 0.081949 | 0 | 0 | 0.007913 | 0.243829 | 1,337 | 45 | 98 | 29.711111 | 0.885262 | 0 | 0 | 0.0625 | 0 | 0 | 0.882573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.