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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
298e79c626a55fe8dfcff016cb9ea11d5a41e136 | 883 | py | Python | tests/unit/test_shortcuts.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | 51 | 2016-08-23T15:33:09.000Z | 2022-02-04T23:12:01.000Z | tests/unit/test_shortcuts.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | 34 | 2016-09-08T07:17:27.000Z | 2021-09-06T21:54:41.000Z | tests/unit/test_shortcuts.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | 17 | 2016-11-28T14:12:04.000Z | 2022-01-26T11:13:24.000Z | import unittest
from evernotebot.bot.shortcuts import get_cached_object
class TestShortucts(unittest.TestCase):
def test_get_cached_object(self):
cache = {}
result = get_cached_object(cache, None, constructor=lambda: {"default": 1})
self.assertEqual(result, {"default": 1})
result ... | 33.961538 | 83 | 0.619479 | 102 | 883 | 5.215686 | 0.352941 | 0.118421 | 0.197368 | 0.18797 | 0.37594 | 0.101504 | 0 | 0 | 0 | 0 | 0 | 0.013534 | 0.246886 | 883 | 25 | 84 | 35.32 | 0.786466 | 0 | 0 | 0.190476 | 0 | 0 | 0.03288 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
299435518c2972aec69cc833de562af3dc7116c7 | 637 | py | Python | core/migrations/0007_auto_20200721_0435.py | Esatyilmaz0/MyBlogProject | 01997effa0fc51ea61626d90a05344364ff3b8f8 | [
"MIT"
] | null | null | null | core/migrations/0007_auto_20200721_0435.py | Esatyilmaz0/MyBlogProject | 01997effa0fc51ea61626d90a05344364ff3b8f8 | [
"MIT"
] | null | null | null | core/migrations/0007_auto_20200721_0435.py | Esatyilmaz0/MyBlogProject | 01997effa0fc51ea61626d90a05344364ff3b8f8 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-07-21 01:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0003_remove_userprofile_favourite_comments'),
('core', '0006_auto_20200319_1515'),
]
operations = [
migrations.RemoveField(
... | 21.965517 | 63 | 0.55102 | 56 | 637 | 6.107143 | 0.696429 | 0.096491 | 0.152047 | 0.175439 | 0.239766 | 0.239766 | 0 | 0 | 0 | 0 | 0 | 0.082547 | 0.33438 | 637 | 28 | 64 | 22.75 | 0.724057 | 0.070644 | 0 | 0.454545 | 1 | 0 | 0.19322 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
299add6c47dd59a09420b8e2fc812c658af1f3f0 | 231 | py | Python | utils/model_utils.py | cristyioan2000/mask_classification | f5451c18864eb60c7642614df62dcae9f0983910 | [
"MIT"
] | null | null | null | utils/model_utils.py | cristyioan2000/mask_classification | f5451c18864eb60c7642614df62dcae9f0983910 | [
"MIT"
] | null | null | null | utils/model_utils.py | cristyioan2000/mask_classification | f5451c18864eb60c7642614df62dcae9f0983910 | [
"MIT"
] | null | null | null | import torch
def init_model(model):
def init_all(model, init_func, *params, **kwargs):
for p in model.parameters():
init_func(p, *params, **kwargs)
init_all(model, torch.nn.init.normal_, mean=0., std=1)
| 33 | 58 | 0.645022 | 35 | 231 | 4.085714 | 0.542857 | 0.097902 | 0.167832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.207792 | 231 | 6 | 59 | 38.5 | 0.770492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
29a67706b5b64f2ffcff83a4f4fb155bb34a4d2f | 1,734 | py | Python | tests/test_initialize_wrapper.py | MattBlack85/django-db-logger | db2bf6e1835eb0c8dc6fd91fefee5b6eb2009b84 | [
"MIT"
] | null | null | null | tests/test_initialize_wrapper.py | MattBlack85/django-db-logger | db2bf6e1835eb0c8dc6fd91fefee5b6eb2009b84 | [
"MIT"
] | null | null | null | tests/test_initialize_wrapper.py | MattBlack85/django-db-logger | db2bf6e1835eb0c8dc6fd91fefee5b6eb2009b84 | [
"MIT"
] | null | null | null | import importlib
import sys
from django.core.exceptions import ImproperlyConfigured
from django.db.backends.utils import CursorDebugWrapper
from django.test import TestCase
from query_logger.wrapper import CursorLoggingWrapper
class InitializeWrapperTestCase(TestCase):
def test_debug_false_wrapper_active(self):... | 40.325581 | 100 | 0.700115 | 190 | 1,734 | 6.184211 | 0.310526 | 0.084255 | 0.055319 | 0.076596 | 0.453617 | 0.453617 | 0.398298 | 0.344681 | 0.302128 | 0.258723 | 0 | 0 | 0.238178 | 1,734 | 42 | 101 | 41.285714 | 0.889478 | 0.113033 | 0 | 0.275862 | 0 | 0 | 0.02392 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.137931 | false | 0 | 0.448276 | 0 | 0.62069 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
29a7f5c69d4cf57f1d1b965e1c54675e1d26a572 | 2,666 | py | Python | tests/test_search.py | 3lnc/elasticsearch-adsl | c5b33f880f9075a60704f49ee1868243e12ee2a2 | [
"MIT"
] | null | null | null | tests/test_search.py | 3lnc/elasticsearch-adsl | c5b33f880f9075a60704f49ee1868243e12ee2a2 | [
"MIT"
] | null | null | null | tests/test_search.py | 3lnc/elasticsearch-adsl | c5b33f880f9075a60704f49ee1868243e12ee2a2 | [
"MIT"
] | null | null | null | from elasticsearch_dsl.response import Hit, Response
from pytest import fixture, raises
from elasticsearch_adsl.search import Search
from elasticsearch_dsl.query import MatchAll
@fixture(autouse=True)
async def _test_data(aes, index_name, test_data):
return
async def test_count(index_name):
search = Search... | 28.666667 | 87 | 0.701425 | 389 | 2,666 | 4.683805 | 0.18509 | 0.118551 | 0.122942 | 0.153677 | 0.483535 | 0.36169 | 0.31449 | 0.256312 | 0.226125 | 0.182217 | 0 | 0.016887 | 0.17817 | 2,666 | 92 | 88 | 28.978261 | 0.814696 | 0.011628 | 0 | 0.177419 | 0 | 0 | 0.022788 | 0 | 0 | 0 | 0 | 0.01087 | 0.403226 | 1 | 0.016129 | false | 0 | 0.064516 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
29b0133565ad4687342895957da131f27da227d5 | 3,718 | py | Python | test/test_campaign.py | pchero/asterisk-outbound | 62c48abe83a7868c2af2519517081022a85cf503 | [
"BSD-2-Clause"
] | 12 | 2015-11-26T10:54:47.000Z | 2021-05-26T08:35:49.000Z | test/test_campaign.py | surereddy/asterisk-outbound | 62c48abe83a7868c2af2519517081022a85cf503 | [
"BSD-2-Clause"
] | 70 | 2015-11-23T09:31:51.000Z | 2017-01-20T20:47:58.000Z | test/test_campaign.py | surereddy/asterisk-outbound | 62c48abe83a7868c2af2519517081022a85cf503 | [
"BSD-2-Clause"
] | 5 | 2017-09-10T12:25:48.000Z | 2020-06-07T16:06:25.000Z | # test_campaign.py
# Created on: Nov 27, 2015
# Author: pchero
import common
import os
import sys
import uuid
def create_campaign():
# normal
ast = common.acli()
ast.conn()
ast.sendCmd("OutCampaignCreate")
return True
def main():
ret = create_campaign()
if ret != True:
... | 27.954887 | 79 | 0.55433 | 459 | 3,718 | 4.383442 | 0.174292 | 0.125249 | 0.049702 | 0.069583 | 0.580517 | 0.56163 | 0.523857 | 0.512922 | 0.470179 | 0.470179 | 0 | 0.009131 | 0.322485 | 3,718 | 132 | 80 | 28.166667 | 0.789599 | 0.038462 | 0 | 0.59434 | 0 | 0 | 0.268443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.103774 | 0.037736 | null | null | 0.132075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
29c7b29971cc8a32c4307b8b2911b83462168d0d | 1,914 | py | Python | bluebottle/files/migrations/0001_initial.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/files/migrations/0001_initial.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/files/migrations/0001_initial.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-03-29 10:00
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = Tr... | 39.875 | 170 | 0.614943 | 201 | 1,914 | 5.706468 | 0.358209 | 0.076722 | 0.036617 | 0.057541 | 0.657367 | 0.657367 | 0.657367 | 0.657367 | 0.657367 | 0.657367 | 0 | 0.01325 | 0.250784 | 1,914 | 47 | 171 | 40.723404 | 0.786611 | 0.035528 | 0 | 0.512821 | 1 | 0 | 0.078133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.25641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
29ca3def4fb1ef665ee707ee863131d651fea834 | 1,025 | py | Python | housemonitor/outputs/ioutput.py | gary-pickens/HouseMonitor | 4b169bdbeed9013e1824d4bb929970ae0c27a6c9 | [
"MIT"
] | 1 | 2021-06-28T06:52:03.000Z | 2021-06-28T06:52:03.000Z | housemonitor/outputs/ioutput.py | gary-pickens/HouseMonitor | 4b169bdbeed9013e1824d4bb929970ae0c27a6c9 | [
"MIT"
] | null | null | null | housemonitor/outputs/ioutput.py | gary-pickens/HouseMonitor | 4b169bdbeed9013e1824d4bb929970ae0c27a6c9 | [
"MIT"
] | null | null | null | '''
Created on Aug 5, 2012
@author: Gary
'''
import abc
from pubsub import pub
from housemonitor.lib.base import Base
class iOutput( Base ):
'''
This is an abstract class for outputting data.
'''
__metaclass__ = abc.ABCMeta
def __init__( self ):
'''
Constructor
'''
... | 23.837209 | 79 | 0.626341 | 123 | 1,025 | 5.105691 | 0.617886 | 0.031847 | 0.057325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006887 | 0.291707 | 1,025 | 42 | 80 | 24.404762 | 0.858127 | 0.494634 | 0 | 0 | 0 | 0 | 0.053708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
29d4fb824ad29915a7995c4b69020ab47560af0e | 370 | py | Python | metropol_abogados/services/PaymentService.py | carborgar/metropol | 1d08088417366bf9d2402625ba9e99379966442c | [
"MIT"
] | null | null | null | metropol_abogados/services/PaymentService.py | carborgar/metropol | 1d08088417366bf9d2402625ba9e99379966442c | [
"MIT"
] | null | null | null | metropol_abogados/services/PaymentService.py | carborgar/metropol | 1d08088417366bf9d2402625ba9e99379966442c | [
"MIT"
] | null | null | null | from metropol_abogados.models import Payment
def save_from_form(payment_form, budget, payment):
payment_form.cleaned_data.update({'budget': budget})
return Payment.objects.update_or_create(id=payment.id if payment else None, defaults=payment_form.cleaned_data)
def build_additional_data(payment):
return... | 30.833333 | 115 | 0.786486 | 51 | 370 | 5.470588 | 0.509804 | 0.11828 | 0.129032 | 0.157706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110811 | 370 | 11 | 116 | 33.636364 | 0.848024 | 0 | 0 | 0 | 0 | 0 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
29ec13b229c918a257aa18d13b05fc7251d632b2 | 612 | py | Python | codraft/tests/scenario_all_app.py | CODRA-Software/CodraFT | d3a6e7abbf001b8d0d288b23f7ff81fcaa3b3659 | [
"CECILL-B",
"BSD-3-Clause"
] | null | null | null | codraft/tests/scenario_all_app.py | CODRA-Software/CodraFT | d3a6e7abbf001b8d0d288b23f7ff81fcaa3b3659 | [
"CECILL-B",
"BSD-3-Clause"
] | null | null | null | codraft/tests/scenario_all_app.py | CODRA-Software/CodraFT | d3a6e7abbf001b8d0d288b23f7ff81fcaa3b3659 | [
"CECILL-B",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Licensed under the terms of the BSD 3-Clause or the CeCILL-B License
# (see codraft/__init__.py for details)
"""
Unit test scenario: all features
Maximizing test coverage.
"""
# pylint: disable=duplicate-code
from codraft.tests import codraft_app_context
from codraft.tests.scenario_ima_a... | 21.857143 | 70 | 0.736928 | 87 | 612 | 4.862069 | 0.574713 | 0.078014 | 0.113475 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003929 | 0.168301 | 612 | 27 | 71 | 22.666667 | 0.827112 | 0.405229 | 0 | 0 | 0 | 0 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
29fcae51bcd984d3b43a02d90077c31c46c539b3 | 702 | py | Python | tests/test_api.py | bonastreyair/iot-firmware | 123bd62082f8cdc4b45289e8fd75d59d8adb4881 | [
"MIT"
] | 1 | 2021-09-05T10:51:27.000Z | 2021-09-05T10:51:27.000Z | tests/test_api.py | bonastreyair/iot-firmware | 123bd62082f8cdc4b45289e8fd75d59d8adb4881 | [
"MIT"
] | 35 | 2021-09-05T09:30:50.000Z | 2022-03-28T21:14:37.000Z | tests/test_api.py | bonastreyair/iot-firmware | 123bd62082f8cdc4b45289e8fd75d59d8adb4881 | [
"MIT"
] | null | null | null | import pytest
from marshmallow import ValidationError
from iot_firmware.communications.schema import API_VERSION
from iot_firmware.communications.schema import Message
from iot_firmware.enums import MessageKey
from iot_firmware.enums import MessageType
def test_load_message():
message = Message.load({MessageKey.... | 30.521739 | 87 | 0.786325 | 84 | 702 | 6.416667 | 0.309524 | 0.051948 | 0.111317 | 0.107607 | 0.57885 | 0.482375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123932 | 702 | 22 | 88 | 31.909091 | 0.876423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
4b29fafbf8c401b6a76d245cbfd16bb28f280764 | 657 | py | Python | modal.py | nathan-yan/courier | 6c2a807f72dcb6b48c6ce7ceb76b18dfc46c3ba7 | [
"MIT"
] | null | null | null | modal.py | nathan-yan/courier | 6c2a807f72dcb6b48c6ce7ceb76b18dfc46c3ba7 | [
"MIT"
] | 1 | 2020-08-09T15:44:23.000Z | 2020-08-09T15:44:23.000Z | modal.py | nathan-yan/courier | 6c2a807f72dcb6b48c6ce7ceb76b18dfc46c3ba7 | [
"MIT"
] | null | null | null |
import hashlib
import webbrowser
import pprint as pp
import random
import math
import numpy as np
import time
import threading
import base64
import re
import pickle
import curses
from curses import wrapper
from curses.textpad import Textbox
import random
import locale
import emoji
import constants
from fbchat impo... | 18.25 | 71 | 0.748858 | 93 | 657 | 5.16129 | 0.494624 | 0.05 | 0.075 | 0.083333 | 0.154167 | 0.154167 | 0.154167 | 0.154167 | 0.154167 | 0 | 0 | 0.00381 | 0.200913 | 657 | 35 | 72 | 18.771429 | 0.910476 | 0.03653 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.814815 | 0 | 0.925926 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
d9a18f67f0faf2fba62ebdd8f3df6b268232e4ea | 14,991 | py | Python | easydo/Algorithm/M1809/crawling_finance_table_v1_7.py | jiper/easydo | d08862e4ba237d9f55e7b73d436f718f576e8b83 | [
"Apache-2.0"
] | 2 | 2018-11-21T07:10:26.000Z | 2019-11-14T07:34:28.000Z | easydo/Algorithm/M1809/crawling_finance_table_v1_7.py | jiper/easydo | d08862e4ba237d9f55e7b73d436f718f576e8b83 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:04:23.000Z | 2021-06-01T23:04:23.000Z | easydo/Algorithm/M1809/crawling_finance_table_v1_7.py | jiper/easydo | d08862e4ba237d9f55e7b73d436f718f576e8b83 | [
"Apache-2.0"
] | 3 | 2018-11-21T13:11:46.000Z | 2019-01-12T03:01:07.000Z | '''
类名:crawling_finance_table_v1.4
作者:徐抒田
日期:2018-1-4
描述:一个帮助你获取股票财报数据的小伙伴,实现了爬取福耀玻璃(600660)的利润表、资产负债表、现金流量表所有数据,并输出为csv格式的三张报表
方法: get_one_page->爬取一页网页数据
parse_one_page_zhengze-> 通过正则表达式整理数据(网页不规则使用)
parse_one_page_2017_zichanfuzhai->解析17年的资产负债表数据
parse_one_page_zichanfuzhai->解析资产负债表数据
parse_on... | 42.831429 | 203 | 0.489494 | 1,554 | 14,991 | 4.478121 | 0.144788 | 0.065527 | 0.09829 | 0.058198 | 0.750251 | 0.665325 | 0.661877 | 0.646357 | 0.626958 | 0.61187 | 0 | 0.033629 | 0.391035 | 14,991 | 350 | 204 | 42.831429 | 0.728667 | 0.14929 | 0 | 0.723982 | 0 | 0.022624 | 0.072895 | 0.009529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027149 | false | 0.0181 | 0.0181 | 0 | 0.076923 | 0.004525 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d9a19d0e0d848bfb6ea134ae137e1ea55d05c77e | 4,971 | py | Python | pysnmp/HUAWEI-NAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HUAWEI-NAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HUAWEI-NAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HUAWEI-NAP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-NAP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:35:39 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | 115.604651 | 545 | 0.765037 | 543 | 4,971 | 7 | 0.276243 | 0.00684 | 0.009471 | 0.012628 | 0.338332 | 0.217048 | 0.194949 | 0.178637 | 0.178637 | 0.178637 | 0 | 0.078578 | 0.083484 | 4,971 | 42 | 546 | 118.357143 | 0.755707 | 0.064776 | 0 | 0 | 0 | 0 | 0.203448 | 0.021336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.057143 | 0.2 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d9a9932d37cf3866280cd93bd5278af3eb217431 | 5,877 | py | Python | bw2data/query.py | ecoinvent/brightway2-data | 3aa42d93cb6ded0e8a8cb4162c052995ac7060d3 | [
"BSD-3-Clause"
] | null | null | null | bw2data/query.py | ecoinvent/brightway2-data | 3aa42d93cb6ded0e8a8cb4162c052995ac7060d3 | [
"BSD-3-Clause"
] | null | null | null | bw2data/query.py | ecoinvent/brightway2-data | 3aa42d93cb6ded0e8a8cb4162c052995ac7060d3 | [
"BSD-3-Clause"
] | null | null | null | import collections
import operator
import itertools
operators = {
"<": operator.lt,
"<=": operator.le,
"==": operator.eq,
"is": operator.eq, # Note: not pure python `is`!
"iis": lambda x, y: x.lower() == y.lower(),
"!=": operator.ne,
"<>": operator.ne,
"not": operator.ne,
"inot": l... | 29.238806 | 228 | 0.583801 | 734 | 5,877 | 4.581744 | 0.283379 | 0.044603 | 0.016652 | 0.016057 | 0.059768 | 0.053226 | 0.037169 | 0.037169 | 0 | 0 | 0 | 0.00118 | 0.278714 | 5,877 | 200 | 229 | 29.385 | 0.792168 | 0.412966 | 0 | 0.071429 | 0 | 0 | 0.071629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.010204 | 0.030612 | 0.102041 | 0.459184 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
d9b0b4128895c0554a73bb409d53a17e6e8dda93 | 3,146 | py | Python | src/mlsh_algo.py | gmorgachev/Meta-Learning-Shared-Hierarchies | b24c53dda04bb5cac83bd7dc4d62d3460efcca14 | [
"MIT"
] | 2 | 2020-05-25T00:58:14.000Z | 2022-03-11T08:55:29.000Z | src/mlsh_algo.py | gmorgachev/Meta-Learning-Shared-Hierarchies | b24c53dda04bb5cac83bd7dc4d62d3460efcca14 | [
"MIT"
] | null | null | null | src/mlsh_algo.py | gmorgachev/Meta-Learning-Shared-Hierarchies | b24c53dda04bb5cac83bd7dc4d62d3460efcca14 | [
"MIT"
] | 1 | 2021-06-03T16:23:49.000Z | 2021-06-03T16:23:49.000Z | import torch
import wandb
import numpy as np
from . import utils
def warmup(a2c, pool, n_iter, step_size, n_steps, n_env):
"""
Warmup period for master policy train
:param a2c: optimizer
:param pool: pool of environments
:param n_iter: number of optimizer step
:param step_size: master policy ... | 31.46 | 86 | 0.579466 | 409 | 3,146 | 4.202934 | 0.178484 | 0.029087 | 0.069808 | 0.032577 | 0.770215 | 0.770215 | 0.691099 | 0.691099 | 0.691099 | 0.691099 | 0 | 0.012195 | 0.322314 | 3,146 | 100 | 87 | 31.46 | 0.79409 | 0.211697 | 0 | 0.686567 | 0 | 0 | 0.040167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.059701 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
d9b1c8b3e243987dad130218f3685d3d0b0f0f2c | 2,022 | py | Python | cyclopeps/scripts/asep/conv_restart.py | philliphelms/cyclopeps | f024d827a7412f4d9df10d6b9453c2692b1a74c3 | [
"MIT"
] | null | null | null | cyclopeps/scripts/asep/conv_restart.py | philliphelms/cyclopeps | f024d827a7412f4d9df10d6b9453c2692b1a74c3 | [
"MIT"
] | null | null | null | cyclopeps/scripts/asep/conv_restart.py | philliphelms/cyclopeps | f024d827a7412f4d9df10d6b9453c2692b1a74c3 | [
"MIT"
] | null | null | null | from cyclopeps.tools.utils import *
from cyclopeps.tools.peps_tools import PEPS,load_peps
from cyclopeps.ops.asep import return_op
from cyclopeps.algs.tebd import run_tebd
from cyclopeps.algs.tebd import run_tebd
from sys import argv
import numpy as np
# Get input values
fname = argv[1]
Nx = int(argv[2])
Ny = int(argv... | 33.7 | 270 | 0.506924 | 429 | 2,022 | 2.347319 | 0.195804 | 0.057597 | 0.083416 | 0.139027 | 0.377358 | 0.317776 | 0.317776 | 0.317776 | 0.246276 | 0.246276 | 0 | 0.231627 | 0.246291 | 2,022 | 59 | 271 | 34.271186 | 0.429134 | 0.127102 | 0 | 0.04878 | 0 | 0 | 0.005698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.170732 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
d9b4038ddefb5649b820d846670aaab47a7a99b0 | 3,196 | py | Python | REST-Python2.7-demo/hbdm_api_demo.py | caesarding07/Futures-Python-demo | c7287cc00f3623e66d23325a06c5311b2aa0cb07 | [
"Apache-2.0"
] | 106 | 2018-11-09T06:09:41.000Z | 2022-01-04T15:45:11.000Z | REST-Python3.5-demo/hbdm_api_demo.py | liu071900/Futures-Python-demo | e2cc0efe791b67d70469076f1c71e2fdc8fd1a84 | [
"Apache-2.0"
] | 4 | 2019-05-20T03:08:56.000Z | 2021-08-01T15:12:44.000Z | REST-Python3.5-demo/hbdm_api_demo.py | liu071900/Futures-Python-demo | e2cc0efe791b67d70469076f1c71e2fdc8fd1a84 | [
"Apache-2.0"
] | 120 | 2018-11-16T20:08:56.000Z | 2021-12-21T11:07:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 17 15:48:13 2018
@author: zhaobo
"""
from HuobiDMService import HuobiDM
from pprint import pprint
#### input huobi dm url
URL = ''
#### input your access_key and secret_key below:
ACCESS_KEY = ''
SECRET_KEY = ''
dm = HuobiDM(URL, ACCESS_KEY, SE... | 28.535714 | 111 | 0.680538 | 424 | 3,196 | 4.877358 | 0.28066 | 0.092843 | 0.106383 | 0.183752 | 0.450677 | 0.352515 | 0.253868 | 0.224855 | 0.185687 | 0.117505 | 0 | 0.043638 | 0.146746 | 3,196 | 111 | 112 | 28.792793 | 0.714705 | 0.10388 | 0 | 0.066667 | 0 | 0 | 0.220733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.733333 | 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 | 1 | 0 | 2 |
d9b89098c09af5b5ec9339b914537f27e3c274f2 | 404 | py | Python | src/nlu/preprocessing/tokenizer.py | Joffreybvn/resa-chatbot | 3ca845d4264f29f49b5b0bcee39a0ece7f480f66 | [
"MIT"
] | null | null | null | src/nlu/preprocessing/tokenizer.py | Joffreybvn/resa-chatbot | 3ca845d4264f29f49b5b0bcee39a0ece7f480f66 | [
"MIT"
] | null | null | null | src/nlu/preprocessing/tokenizer.py | Joffreybvn/resa-chatbot | 3ca845d4264f29f49b5b0bcee39a0ece7f480f66 | [
"MIT"
] | 1 | 2021-02-03T18:43:38.000Z | 2021-02-03T18:43:38.000Z |
from transformers import BertTokenizer
from config import Config
config = Config()
class Tokenizer:
def __init__(self):
self.tokenizer = BertTokenizer.from_pretrained(config.MODEL_CLASSIFIER)
def get_dataset(self, text: str):
"""Return a torch Dataset from a given text."""
# Token... | 22.444444 | 79 | 0.70297 | 50 | 404 | 5.52 | 0.54 | 0.123188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215347 | 404 | 17 | 80 | 23.764706 | 0.870662 | 0.183168 | 0 | 0 | 0 | 0 | 0.006192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
d9b8bb9c785471b9c0f57f59b602eb06c0eb5d47 | 623 | py | Python | release/stubs.min/Wms/SharedInfra/Extensions.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/SharedInfra/Extensions.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/Wms/SharedInfra/Extensions.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Wms.SharedInfra.Extensions calls itself Extensions
# from Wms.SharedInfra,Version=1.23.1.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no important
from __init__ import *
# no functions
# classes
class ExceptionFormatters(object):
# no doc
def ZZZ(self):
"""hardc... | 22.25 | 75 | 0.739968 | 75 | 623 | 6.04 | 0.653333 | 0.06181 | 0.057395 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.141252 | 623 | 27 | 76 | 23.074074 | 0.828037 | 0.500803 | 0 | 0 | 0 | 0 | 0.06639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
d9d301ef8d3eadddd2adb5078c005c146f486866 | 20,721 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/rfc3918mixedclassthroughput_0bc84bbc09b86982f6afb967256416cc.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/rfc3918mixedclassthroughput_0bc84bbc09b86982f6afb967256416cc.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/rfc3918mixedclassthroughput_0bc84bbc09b86982f6afb967256416cc.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | 43.623158 | 204 | 0.649245 | 2,298 | 20,721 | 5.785466 | 0.129243 | 0.033847 | 0.01903 | 0.03287 | 0.694396 | 0.653253 | 0.626025 | 0.621662 | 0.562618 | 0.500564 | 0 | 0.022173 | 0.242556 | 20,721 | 474 | 205 | 43.71519 | 0.824912 | 0.572028 | 0 | 0.312977 | 0 | 0 | 0.070983 | 0.007509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21374 | false | 0.038168 | 0.061069 | 0 | 0.519084 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
d9dd580da4c1f51726a1c214d8a4aacbb759b267 | 73 | py | Python | lambdata/module_example.py | Fleekz/lambdata-fleekz | 0bc9c7a7c36aeb8afd8f9739d18821043f304ad2 | [
"MIT"
] | null | null | null | lambdata/module_example.py | Fleekz/lambdata-fleekz | 0bc9c7a7c36aeb8afd8f9739d18821043f304ad2 | [
"MIT"
] | null | null | null | lambdata/module_example.py | Fleekz/lambdata-fleekz | 0bc9c7a7c36aeb8afd8f9739d18821043f304ad2 | [
"MIT"
] | null | null | null | """Helper Functions"""
FAVORITE_CITIES = ['Boston', 'SLC', 'San Diego']
| 18.25 | 48 | 0.643836 | 8 | 73 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 73 | 3 | 49 | 24.333333 | 0.71875 | 0.219178 | 0 | 0 | 0 | 0 | 0.352941 | 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 | 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 | 2 |
d9e94e3bf0cad16c19872d49eb6832229170b318 | 1,285 | py | Python | qbosdk/apis/bills.py | fylein/qbo-sdk-py | 0ae26080b5c568a29f2b1d688c429ba03d393807 | [
"MIT"
] | null | null | null | qbosdk/apis/bills.py | fylein/qbo-sdk-py | 0ae26080b5c568a29f2b1d688c429ba03d393807 | [
"MIT"
] | 2 | 2021-05-04T14:21:54.000Z | 2021-08-31T11:10:44.000Z | qbosdk/apis/bills.py | fylein/qbo-sdk-py | 0ae26080b5c568a29f2b1d688c429ba03d393807 | [
"MIT"
] | 3 | 2020-01-08T04:44:16.000Z | 2020-12-16T17:26:23.000Z | """
Quickbooks Online Bills
"""
from typing import Dict
from .api_base import ApiBase
class Bills(ApiBase):
"""Class for Bill APIs."""
GET_BILLS = '/query?query=select * from Bill STARTPOSITION {0} MAXRESULTS 1000'
POST_BILL = '/bill?minorversion=38'
DELETE_BILL = '/bill?operation=delete'
GET_BIL... | 25.7 | 83 | 0.585214 | 161 | 1,285 | 4.484472 | 0.291925 | 0.066482 | 0.087258 | 0.030471 | 0.196676 | 0.196676 | 0.113573 | 0.113573 | 0.113573 | 0 | 0 | 0.010101 | 0.306615 | 1,285 | 49 | 84 | 26.22449 | 0.800224 | 0.264591 | 0 | 0 | 0 | 0 | 0.174745 | 0.054847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.789474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
d9ec24df0deb7b94f888c3fd4d35b9a1afeb3639 | 1,062 | py | Python | emacs/elisp/dsl.py | jlumpe/python-emacs | 42229fe06e6ca5a137c339561f99becac303ceb8 | [
"MIT"
] | 9 | 2019-09-13T23:40:11.000Z | 2022-02-18T19:56:22.000Z | emacs/elisp/dsl.py | jlumpe/python-emacs | 42229fe06e6ca5a137c339561f99becac303ceb8 | [
"MIT"
] | 1 | 2021-05-16T11:27:43.000Z | 2021-05-16T11:27:49.000Z | emacs/elisp/dsl.py | jlumpe/python-emacs | 42229fe06e6ca5a137c339561f99becac303ceb8 | [
"MIT"
] | 1 | 2020-01-02T11:22:00.000Z | 2020-01-02T11:22:00.000Z | """A DSL for writing Elisp in Python.
God help us all.
"""
from .ast import *
class ElispSingleton:
"""Class of the singleton :data:`.E`.
"""
__instance = None
def __new__(cls):
if cls.__instance is None:
cls.__instance = object.__new__(cls)
return cls.__instance
def __getitem__(self, name) -> Symbol... | 22.595745 | 62 | 0.701507 | 142 | 1,062 | 4.950704 | 0.492958 | 0.045519 | 0.072546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002262 | 0.167608 | 1,062 | 46 | 63 | 23.086957 | 0.792986 | 0.306968 | 0 | 0 | 0 | 0 | 0.005626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
d9f377263026353aed98f222c18078535dc23f40 | 414 | py | Python | hackerearth/pokemon.py | prabhugs/scripts | 113965717f96229d4c7f37bb324623ed80d45b02 | [
"Apache-2.0",
"MIT"
] | null | null | null | hackerearth/pokemon.py | prabhugs/scripts | 113965717f96229d4c7f37bb324623ed80d45b02 | [
"Apache-2.0",
"MIT"
] | null | null | null | hackerearth/pokemon.py | prabhugs/scripts | 113965717f96229d4c7f37bb324623ed80d45b02 | [
"Apache-2.0",
"MIT"
] | null | null | null | cases = int(raw_input())
for i in xrange(cases):
occur = int(raw_input())
flist = []
plist = []
for j in xrange(occur):
in_data = raw_input().split()
if in_data[0] != in_data[1]:
flist.append(in_data[0])
if in_data[1] in flist:
flist.remove(in... | 18.818182 | 38 | 0.502415 | 57 | 414 | 3.473684 | 0.385965 | 0.212121 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.362319 | 414 | 21 | 39 | 19.714286 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8a02e158df7479e701f98effc98764c71527a282 | 3,419 | py | Python | strategies/trading_strategy.py | algobuddies/scalpTrading | 364f3a317dc24e2a70b84f243098c4865c7e57d1 | [
"MIT"
] | null | null | null | strategies/trading_strategy.py | algobuddies/scalpTrading | 364f3a317dc24e2a70b84f243098c4865c7e57d1 | [
"MIT"
] | null | null | null | strategies/trading_strategy.py | algobuddies/scalpTrading | 364f3a317dc24e2a70b84f243098c4865c7e57d1 | [
"MIT"
] | 1 | 2021-11-09T23:00:41.000Z | 2021-11-09T23:00:41.000Z |
import pandas as pd
import numpy as np
from abc import ABCMeta, abstractmethod
from typing import Union, Callable, List
from environments.trading_environment import TradingEnvironment
from features.feature_pipeline import FeaturePipeline
class TradingStrategy(object, metaclass=ABCMeta):
"""An abstract trading... | 41.192771 | 152 | 0.682363 | 416 | 3,419 | 5.545673 | 0.283654 | 0.041612 | 0.027308 | 0.02254 | 0.397919 | 0.339835 | 0.339835 | 0.280884 | 0.242739 | 0.161248 | 0 | 0 | 0.252998 | 3,419 | 82 | 153 | 41.695122 | 0.903289 | 0.550746 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.214286 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
8a0fb74cc6e5020781f53d445df127bb06be6f4d | 868 | py | Python | src/dispatch/ticket/models.py | kstringlo/dispatch | 1384ee0816192375459cdf5c498b62350584b42d | [
"Apache-2.0"
] | 1 | 2020-07-20T23:03:51.000Z | 2020-07-20T23:03:51.000Z | src/dispatch/ticket/models.py | kstringlo/dispatch | 1384ee0816192375459cdf5c498b62350584b42d | [
"Apache-2.0"
] | 1 | 2020-04-22T03:29:06.000Z | 2020-04-22T03:29:06.000Z | src/dispatch/ticket/models.py | kstringlo/dispatch | 1384ee0816192375459cdf5c498b62350584b42d | [
"Apache-2.0"
] | null | null | null | from pydantic import validator
from typing import Optional
from sqlalchemy import Column, Integer
from dispatch.database import Base
from dispatch.messaging import INCIDENT_TICKET_DESCRIPTION
from dispatch.models import DispatchBase, ResourceMixin
class Ticket(Base, ResourceMixin):
id = Column(Integer, primary... | 20.186047 | 58 | 0.745392 | 97 | 868 | 6.587629 | 0.463918 | 0.056338 | 0.078247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173963 | 868 | 42 | 59 | 20.666667 | 0.891213 | 0.046083 | 0 | 0.166667 | 0 | 0 | 0.030414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.083333 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
8a27664b3f287ef7f2d06d572e50209e4a3f4014 | 1,259 | py | Python | tests/basetest.py | nullpsifer/cryptosploit | e33cfca07397c05dffa734274c202acc7ff597b4 | [
"MIT"
] | null | null | null | tests/basetest.py | nullpsifer/cryptosploit | e33cfca07397c05dffa734274c202acc7ff597b4 | [
"MIT"
] | null | null | null | tests/basetest.py | nullpsifer/cryptosploit | e33cfca07397c05dffa734274c202acc7ff597b4 | [
"MIT"
] | null | null | null | import shutil
import os
import atexit
import sys
from pathlib import Path
sys.path.append('../')
from interfaces import *
from states import AwaitingCommandState
class MockInterface(Interface):
handleCommandsCalled = False
showOptionsCalled = False
printHelpCalled = False
listModulesCalled = False
... | 23.754717 | 108 | 0.658459 | 129 | 1,259 | 6.348837 | 0.348837 | 0.06105 | 0.07326 | 0.051282 | 0.234432 | 0.173382 | 0.114774 | 0.114774 | 0.114774 | 0.114774 | 0 | 0 | 0.242256 | 1,259 | 53 | 109 | 23.754717 | 0.858491 | 0 | 0 | 0.108108 | 0 | 0 | 0.069048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.189189 | 0.054054 | 0.675676 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
8a28d50cb4491f8e1a13772beb407c0992f7b80e | 486 | py | Python | run_shell_cmd.py | poldrack/dtiqa | 3b44e3dbec4cace8fb4bb2fcdf43e4f64a649898 | [
"MIT"
] | 1 | 2016-02-03T20:51:20.000Z | 2016-02-03T20:51:20.000Z | run_shell_cmd.py | poldrack/dtiqa | 3b44e3dbec4cace8fb4bb2fcdf43e4f64a649898 | [
"MIT"
] | null | null | null | run_shell_cmd.py | poldrack/dtiqa | 3b44e3dbec4cace8fb4bb2fcdf43e4f64a649898 | [
"MIT"
] | null | null | null | import subprocess
def run_shell_cmd(cmd,echo=False,cwd=[]):
""" run a command in the shell using Popen
"""
stdout_holder=[]
if cwd:
process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,cwd=cwd)
else:
process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
... | 28.588235 | 83 | 0.646091 | 63 | 486 | 4.904762 | 0.460317 | 0.116505 | 0.142395 | 0.161812 | 0.349515 | 0.349515 | 0.349515 | 0.349515 | 0.349515 | 0 | 0 | 0 | 0.240741 | 486 | 16 | 84 | 30.375 | 0.837398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8a2e39a5ba67f00d68ae19f778818973d563118a | 359 | py | Python | apiblueprint_view/draughtsman/tests/test_draughtsman.py | chris48s/django-apiblueprint-view | 2656f308a9f63b232540a32881af8b98e4d91663 | [
"MIT"
] | 14 | 2017-11-09T22:33:31.000Z | 2021-12-22T05:03:13.000Z | apiblueprint_view/draughtsman/tests/test_draughtsman.py | chris48s/django-apiblueprint-view | 2656f308a9f63b232540a32881af8b98e4d91663 | [
"MIT"
] | 104 | 2017-07-31T20:33:47.000Z | 2022-02-21T21:05:09.000Z | apiblueprint_view/draughtsman/tests/test_draughtsman.py | chris48s/django-apiblueprint-view | 2656f308a9f63b232540a32881af8b98e4d91663 | [
"MIT"
] | 1 | 2018-03-25T04:29:16.000Z | 2018-03-25T04:29:16.000Z | import unittest
from refract.contrib.apielements import ParseResult
from apiblueprint_view import dm
class DraughtsmanTests(unittest.TestCase):
def test_parse_valid_blueprint(self):
parse_result = dm.parse("# My API")
self.assertIsInstance(parse_result, ParseResult)
self.assertEqual(par... | 25.642857 | 66 | 0.760446 | 43 | 359 | 6.186047 | 0.604651 | 0.12406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158774 | 359 | 13 | 67 | 27.615385 | 0.880795 | 0 | 0 | 0 | 0 | 0 | 0.038997 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8a326b149087d907dde1483407dbd97864ad7a37 | 758 | py | Python | account_details.py | arondasamuel123/PasswordLocker | 9dfcda39faf2520949575787a3322509aebf29d0 | [
"MIT"
] | null | null | null | account_details.py | arondasamuel123/PasswordLocker | 9dfcda39faf2520949575787a3322509aebf29d0 | [
"MIT"
] | null | null | null | account_details.py | arondasamuel123/PasswordLocker | 9dfcda39faf2520949575787a3322509aebf29d0 | [
"MIT"
] | null | null | null | class AccountDetails:
"""
Creating an instance of the account details of the user
"""
details_list = []
def __init__(self, acc_username, platform_name, acc_password):
self.acc_username = acc_username
self.platform_name = platform_name
self.acc_password = acc_password
... | 22.294118 | 66 | 0.662269 | 86 | 758 | 5.546512 | 0.383721 | 0.138365 | 0.062893 | 0.092243 | 0.134172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269129 | 758 | 34 | 67 | 22.294118 | 0.861011 | 0.072559 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.111111 | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8a5b4962891140001470c06ece06e738b4645b95 | 444 | py | Python | pylib/circuitpy_sim/board.py | kstillson/ktools | 99690e5a40a0b94545e766efddfd2e39ff8cc78e | [
"MIT"
] | null | null | null | pylib/circuitpy_sim/board.py | kstillson/ktools | 99690e5a40a0b94545e766efddfd2e39ff8cc78e | [
"MIT"
] | null | null | null | pylib/circuitpy_sim/board.py | kstillson/ktools | 99690e5a40a0b94545e766efddfd2e39ff8cc78e | [
"MIT"
] | null | null | null |
A0 = 0
A1 = 1
A2 = 2
A3 = 3
A4 = 4
A5 = 5
A6 = 6
A7 = 7
A8 = 8
A9 = 9
A10 = 10
A11 = 11
A12 = 12
A13 = 13
A14 = 14
A15 = 15
A16 = 16
A17 = 17
A18 = 18
A19 = 19
A20 = 20
D0 = 40
D1 = 41
D2 = 42
D3 = 43
D4 = 44
D5 = 45
D6 = 46
D7 = 47
D8 = 48
D9 = 49
D10 = 50
D11 = 51
D12 = 52
D13 = 53
D14 = 54
D15 = 55
D16 = 56
D17 = ... | 8.072727 | 15 | 0.547297 | 101 | 444 | 2.376238 | 0.970297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.541096 | 0.342342 | 444 | 54 | 16 | 8.222222 | 0.280822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
8a5c0cc98b5bc745f2cb3de342c09b114268ccc6 | 212 | py | Python | atividades/ex020.py | leonardoarthur/PythonAtividades | 9bb2b6e1d7788d99276730de5f199cb0e9ab782f | [
"MIT"
] | 1 | 2021-05-02T09:03:27.000Z | 2021-05-02T09:03:27.000Z | atividades/ex020.py | leonardoarthur/PythonAtividades | 9bb2b6e1d7788d99276730de5f199cb0e9ab782f | [
"MIT"
] | null | null | null | atividades/ex020.py | leonardoarthur/PythonAtividades | 9bb2b6e1d7788d99276730de5f199cb0e9ab782f | [
"MIT"
] | null | null | null | import random
n1 = input('aluno 1:')
n2 = input('aluno 2:')
n3 = input('aluno 3:')
n4 = input('aluno 4:')
lista = [n1, n2, n3, n4]
sorteados = random.shuffle(lista)
print('Os alunos sorteados são:')
print(lista)
| 21.2 | 33 | 0.65566 | 34 | 212 | 4.088235 | 0.558824 | 0.28777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.150943 | 212 | 9 | 34 | 23.555556 | 0.705556 | 0 | 0 | 0 | 0 | 0 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 1 | 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 | 2 |
8a5cf123d8c910c587199838de9dd38edb7f4ba3 | 172 | py | Python | mini-scripts/Python_-_Format_-_Strings_3.txt.py | Web-Dev-Collaborative/PYTHON_PRAC | 856f902fb43dcccae168d34ee6aacc02427a7ac6 | [
"MIT"
] | 5 | 2021-06-02T23:44:25.000Z | 2021-12-27T16:21:57.000Z | mini-scripts/Python_-_Format_-_Strings_3.txt.py | Web-Dev-Collaborative/PYTHON_PRAC | 856f902fb43dcccae168d34ee6aacc02427a7ac6 | [
"MIT"
] | 22 | 2021-05-31T01:33:25.000Z | 2021-10-18T18:32:39.000Z | mini-scripts/Python_-_Format_-_Strings_3.txt.py | Web-Dev-Collaborative/PYTHON_PRAC | 856f902fb43dcccae168d34ee6aacc02427a7ac6 | [
"MIT"
] | 3 | 2021-06-19T03:37:47.000Z | 2021-08-31T00:49:51.000Z | quantity = 3
itemno = 567
price = 49.95
myorder = "I want to pay {2} dollars for {0} pieces of item {1}."
print(myorder.format(quantity, itemno, price))
# Author: Bryan G
| 24.571429 | 65 | 0.686047 | 29 | 172 | 4.068966 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078014 | 0.180233 | 172 | 6 | 66 | 28.666667 | 0.758865 | 0.093023 | 0 | 0 | 0 | 0 | 0.344156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 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 | 2 |
8a61cdae14a3ae1842dff718eabf0c8833b50aa4 | 7,544 | py | Python | kopf/_cogs/aiokits/aioenums.py | bradfair/kopf | 06d00944be947bf63a56b10fd4fdc3269d48feb5 | [
"MIT"
] | 855 | 2020-08-19T09:40:38.000Z | 2022-03-31T19:13:29.000Z | kopf/_cogs/aiokits/aioenums.py | bradfair/kopf | 06d00944be947bf63a56b10fd4fdc3269d48feb5 | [
"MIT"
] | 715 | 2019-12-23T14:17:35.000Z | 2022-03-30T20:54:45.000Z | kopf/_cogs/aiokits/aioenums.py | bradfair/kopf | 06d00944be947bf63a56b10fd4fdc3269d48feb5 | [
"MIT"
] | 97 | 2019-04-25T09:32:54.000Z | 2022-03-30T10:15:30.000Z | import asyncio
import enum
import threading
import time
from typing import Awaitable, Generator, Generic, Optional, TypeVar
from kopf._cogs.aiokits import aiotasks
FlagReasonT = TypeVar('FlagReasonT', bound=enum.Flag)
class FlagSetter(Generic[FlagReasonT]):
"""
A boolean flag indicating that the daemon shou... | 42.621469 | 98 | 0.685445 | 1,000 | 7,544 | 5.078 | 0.311 | 0.021662 | 0.016739 | 0.018905 | 0.14809 | 0.13332 | 0.091375 | 0.073651 | 0.053564 | 0.053564 | 0 | 0.000514 | 0.227068 | 7,544 | 176 | 99 | 42.863636 | 0.870348 | 0.488998 | 0 | 0.117647 | 0 | 0 | 0.122108 | 0.055199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220588 | false | 0.014706 | 0.088235 | 0.088235 | 0.514706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
8a6f1ce392d5167dbc71bcec4318aa06f5ac1501 | 3,532 | py | Python | 6-Eyed-Spider-CLI.py | M507/6-Eyed-Spider | 3ea02c65369bac00972c993191400ff8c29ba7a9 | [
"MIT"
] | 15 | 2020-03-01T21:20:24.000Z | 2022-02-23T00:25:12.000Z | 6-Eyed-Spider-CLI.py | M507/Google-Chrome-keylogger-extension | 1b0cf634d600a4219d20c13f76d622449aeee959 | [
"MIT"
] | null | null | null | 6-Eyed-Spider-CLI.py | M507/Google-Chrome-keylogger-extension | 1b0cf634d600a4219d20c13f76d622449aeee959 | [
"MIT"
] | 4 | 2020-03-15T12:12:33.000Z | 2021-07-16T21:46:44.000Z | from cmd import Cmd
from Lib.Plugins.ESXI_UI import *
from Lib.Plugins.pfSense import *
class MyPrompt(Cmd):
prompt = '6-Eyed-Spider> '
intro = "Welcome! Type ? to list commands"
def do_exit(self, inp):
print("Bye")
#print("adding '{}'".format(inp))
return True
def help_exit(... | 31.81982 | 92 | 0.614383 | 484 | 3,532 | 4.227273 | 0.231405 | 0.058651 | 0.035191 | 0.026393 | 0.403226 | 0.294233 | 0.112414 | 0.112414 | 0.060606 | 0 | 0 | 0.04072 | 0.276897 | 3,532 | 111 | 93 | 31.81982 | 0.760376 | 0.120895 | 0 | 0.117647 | 0 | 0 | 0.291583 | 0.044756 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220588 | false | 0.058824 | 0.044118 | 0 | 0.338235 | 0.191176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8a7066d3eeae76c530bcf5b389cafe306f685864 | 1,198 | py | Python | setup.py | rezaabdullah/data_automation | 119711d7ae6280220c31bc5da5dc209f42754140 | [
"Apache-2.0"
] | null | null | null | setup.py | rezaabdullah/data_automation | 119711d7ae6280220c31bc5da5dc209f42754140 | [
"Apache-2.0"
] | null | null | null | setup.py | rezaabdullah/data_automation | 119711d7ae6280220c31bc5da5dc209f42754140 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = "lcp_efh_automation",
version = "0.0.1",
author = "Abdullah Reza",
author_email = "rashid.reza@lightcastlebd.com",
description = "Python script for data automation",
long_description = """
Python script for automa... | 37.4375 | 104 | 0.594324 | 124 | 1,198 | 5.66129 | 0.620968 | 0.059829 | 0.065527 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015495 | 0.299666 | 1,198 | 32 | 105 | 37.4375 | 0.821216 | 0.020868 | 0 | 0 | 0 | 0 | 0.625427 | 0.024744 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8a7cdd9f5fd918a386b8974955da7f7538123755 | 932 | py | Python | solutions/solution116.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | 3 | 2018-11-22T10:31:09.000Z | 2019-05-05T15:53:48.000Z | solutions/solution116.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | solutions/solution116.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | from data_structure.binary_tree_with_next import Node
class Solution:
def connect(self, root: 'Node') -> 'Node':
levels = []
def dfs(node: 'Node', deep: int):
if node is None:
return
if len(levels) == deep:
levels.append(node)
el... | 21.674419 | 53 | 0.439914 | 100 | 932 | 3.98 | 0.42 | 0.221106 | 0.211055 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019493 | 0.449571 | 932 | 42 | 54 | 22.190476 | 0.756335 | 0.017167 | 0 | 0.2 | 0 | 0 | 0.021882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.171429 | 0.028571 | 0 | 0 | 0 | null | 1 | 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 | 2 |
8a84310544afc97e28c517c0b6af0a9605f8b4db | 677 | py | Python | test/assembly/gyptest-assembly.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | test/assembly/gyptest-assembly.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 1,432 | 2017-06-21T04:08:48.000Z | 2020-08-25T16:21:15.000Z | test/assembly/gyptest-assembly.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
A basic test of compiling assembler files.
"""
import sys
import TestGyp
if sys.platform != 'win32':
# TODO(bradnelson): get this wo... | 21.15625 | 75 | 0.698671 | 100 | 677 | 4.69 | 0.67 | 0.093817 | 0.06823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.155096 | 677 | 31 | 76 | 21.83871 | 0.805944 | 0.385524 | 0 | 0 | 0 | 0 | 0.282178 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8a8839c52a5c158f3ac81b4f0e0bdb10301eea04 | 975 | py | Python | api/profile_api/signals.py | dgnsrekt/Spotifyle | 9ef10dc53d3117c1a0532c051fa41cc08fcfe4d4 | [
"MIT"
] | null | null | null | api/profile_api/signals.py | dgnsrekt/Spotifyle | 9ef10dc53d3117c1a0532c051fa41cc08fcfe4d4 | [
"MIT"
] | null | null | null | api/profile_api/signals.py | dgnsrekt/Spotifyle | 9ef10dc53d3117c1a0532c051fa41cc08fcfe4d4 | [
"MIT"
] | null | null | null | from django.db.models.signals import post_save
# from django.contrib.auth.models import User
from django.dispatch import receiver
import auth_api
from auth_api.spotify import create_spotify_session_with_token
from . import schemas
from .models import Profile
@receiver(post_save, sender=auth_api.models.SpotifyToken)... | 37.5 | 82 | 0.767179 | 137 | 975 | 5.291971 | 0.445255 | 0.048276 | 0.055172 | 0.066207 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001193 | 0.140513 | 975 | 25 | 83 | 39 | 0.863962 | 0.18359 | 0 | 0 | 0 | 0 | 0.036662 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8a8e430a20fc93a047ecdc7e3e61499eb2cc8604 | 339 | py | Python | samsung_multiroom/service/dlna/service.py | kusma/samsung_multiroom | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | [
"MIT"
] | 6 | 2019-04-05T19:10:39.000Z | 2021-11-23T17:26:49.000Z | samsung_multiroom/service/dlna/service.py | kusma/samsung_multiroom | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | [
"MIT"
] | 3 | 2020-09-25T06:58:00.000Z | 2021-12-13T19:57:50.000Z | samsung_multiroom/service/dlna/service.py | kusma/samsung_multiroom | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | [
"MIT"
] | 4 | 2019-04-05T18:58:11.000Z | 2021-07-22T19:54:56.000Z | """DLNA service."""
from ..service import Service
from .browser import DlnaBrowser
class DlnaService(Service):
"""
Dlna service.
"""
def __init__(self, api):
super().__init__(DlnaBrowser(api))
@property
def name(self):
"""
:returns: Name of the service
"""
... | 16.95 | 42 | 0.572271 | 34 | 339 | 5.470588 | 0.558824 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294985 | 339 | 19 | 43 | 17.842105 | 0.778243 | 0.168142 | 0 | 0 | 0 | 0 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
8a971b1d45f3cfad84cf2d52c83c98c63d65ae6b | 10,607 | py | Python | tests/test_i2c_device.py | cbajumpa/pi-top-Python-Common-Library | 28b0301de0c5468714518e669742ef6be7738ce6 | [
"Apache-2.0"
] | 1 | 2021-05-12T14:21:12.000Z | 2021-05-12T14:21:12.000Z | tests/test_i2c_device.py | cbajumpa/pi-top-Python-Common-Library | 28b0301de0c5468714518e669742ef6be7738ce6 | [
"Apache-2.0"
] | 10 | 2020-12-01T11:27:24.000Z | 2021-07-28T23:29:20.000Z | tests/test_i2c_device.py | cbajumpa/pi-top-Python-Common-Library | 28b0301de0c5468714518e669742ef6be7738ce6 | [
"Apache-2.0"
] | 1 | 2021-02-01T21:17:56.000Z | 2021-02-01T21:17:56.000Z | from unittest import TestCase, skip
from sys import modules
from unittest.mock import Mock
from parameterized import parameterized
mock_io = modules["io"] = Mock()
mock_logger = modules["pitopcommon.logger"] = Mock()
mock_lock = modules["pitopcommon.lock"] = Mock()
mock_fcntl = modules["fcntl"] = Mock()
mock_time = mo... | 35.59396 | 114 | 0.659753 | 1,308 | 10,607 | 4.90367 | 0.110092 | 0.077175 | 0.109448 | 0.05488 | 0.772997 | 0.725912 | 0.681166 | 0.673371 | 0.656221 | 0.634549 | 0 | 0.080148 | 0.237768 | 10,607 | 297 | 115 | 35.713805 | 0.713173 | 0.003583 | 0 | 0.483607 | 0 | 0 | 0.008518 | 0 | 0 | 0 | 0.068427 | 0 | 0.110656 | 1 | 0.094262 | false | 0 | 0.020492 | 0 | 0.131148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
8a9abff35deeef5f46fcfc807e34d808483b8c40 | 277 | py | Python | core/src/zeit/content/rawxml/browser/tests.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/content/rawxml/browser/tests.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | core/src/zeit/content/rawxml/browser/tests.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | import unittest
import zeit.cms.testing
import zeit.content.rawxml.tests
def test_suite():
suite = unittest.TestSuite()
suite.addTest(zeit.cms.testing.FunctionalDocFileSuite(
'README.txt',
layer=zeit.content.rawxml.tests.WSGI_LAYER))
return suite
| 23.083333 | 58 | 0.729242 | 34 | 277 | 5.882353 | 0.558824 | 0.1 | 0.14 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166065 | 277 | 11 | 59 | 25.181818 | 0.865801 | 0 | 0 | 0 | 0 | 0 | 0.036101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
8a9dc3dbc9f213d632fae2b8e07f89f7d0473b90 | 2,877 | py | Python | Client/Tools/ExcelTable/protobuf-2.5.0/python/google/protobuf/unittest_import_pb2.py | Sauske/Py2Excel | c6248c6d789c39d3d942cd93b7b3b369816b1f2f | [
"BSD-2-Clause"
] | 79 | 2015-01-13T22:35:25.000Z | 2022-02-21T10:58:02.000Z | Client/Tools/ExcelTable/protobuf-2.5.0/python/google/protobuf/unittest_import_pb2.py | Sauske/Py2Excel | c6248c6d789c39d3d942cd93b7b3b369816b1f2f | [
"BSD-2-Clause"
] | 10 | 2015-04-20T14:30:15.000Z | 2019-12-17T13:46:55.000Z | Client/Tools/ExcelTable/protobuf-2.5.0/python/google/protobuf/unittest_import_pb2.py | Sauske/Py2Excel | c6248c6d789c39d3d942cd93b7b3b369816b1f2f | [
"BSD-2-Clause"
] | 30 | 2015-04-03T18:28:29.000Z | 2020-06-03T07:16:07.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/unittest_import.proto
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
f... | 31.271739 | 349 | 0.771985 | 356 | 2,877 | 5.966292 | 0.317416 | 0.085687 | 0.113936 | 0.079096 | 0.263183 | 0.129944 | 0.054614 | 0.054614 | 0 | 0 | 0 | 0.03357 | 0.119917 | 2,877 | 91 | 350 | 31.615385 | 0.805292 | 0.087591 | 0 | 0.295775 | 1 | 0.014085 | 0.231386 | 0.205422 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.380282 | 0 | 0.422535 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
8abbeb886634697745cae76848bce37e9dbf743d | 1,305 | py | Python | BitsBack/main.py | deepaks4077/bits-back | 0d4355302eb4c5a18a229fa15a0a1caf8fe529d4 | [
"MIT"
] | null | null | null | BitsBack/main.py | deepaks4077/bits-back | 0d4355302eb4c5a18a229fa15a0a1caf8fe529d4 | [
"MIT"
] | null | null | null | BitsBack/main.py | deepaks4077/bits-back | 0d4355302eb4c5a18a229fa15a0a1caf8fe529d4 | [
"MIT"
] | null | null | null | """
The main testing coding is launched from here
"""
import datasets
from bin_minst_experiment import original_bernoulli_example, bernoulli_100_100_40_20_False_5, bernoulli_100_100_20_20_False_3
from bin_minst_experiment import bernoulli_100_150_20_20_False_5, bernoulli_100_150_40_20_False_5
from mnist_experim... | 35.27027 | 128 | 0.808429 | 215 | 1,305 | 4.297674 | 0.265116 | 0.113636 | 0.103896 | 0.064935 | 0.580087 | 0.496753 | 0.441558 | 0.214286 | 0 | 0 | 0 | 0.162872 | 0.124904 | 1,305 | 37 | 129 | 35.27027 | 0.646235 | 0.24751 | 0 | 0 | 0 | 0 | 0.228601 | 0.220251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | true | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
8ac060d98cee41d587a73898cec02b5d26d660e3 | 2,645 | py | Python | app.py | eddgr/nyc-csm | af9c1c5ae53ffbd5290c5964d0d29eb63ead2e7c | [
"MIT"
] | null | null | null | app.py | eddgr/nyc-csm | af9c1c5ae53ffbd5290c5964d0d29eb63ead2e7c | [
"MIT"
] | null | null | null | app.py | eddgr/nyc-csm | af9c1c5ae53ffbd5290c5964d0d29eb63ead2e7c | [
"MIT"
] | null | null | null | from collections import namedtuple
import os
import gspread
from flask import Flask, render_template, request
from generate_credentials import check_credentials, CREDENTIAL_FILENAME
OrganizeData = namedtuple(
'OrganizeData', ['cn_name', 'en_name', 'address', 'area', 'status',
'detail'])
d... | 31.488095 | 82 | 0.638941 | 314 | 2,645 | 5.111465 | 0.324841 | 0.056698 | 0.062305 | 0.062305 | 0.161994 | 0.128349 | 0.057321 | 0.057321 | 0 | 0 | 0 | 0.006646 | 0.260491 | 2,645 | 83 | 83 | 31.86747 | 0.813906 | 0.053308 | 0 | 0.071429 | 1 | 0 | 0.083966 | 0.017593 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.089286 | false | 0 | 0.089286 | 0.017857 | 0.321429 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8aca3c60b5a987b0d1bce35d3955f2d98f8bc286 | 1,462 | py | Python | env/Lib/site-packages/OpenGL/GLES2/OES/texture_float_linear.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 6 | 2020-04-28T12:11:44.000Z | 2021-05-27T06:41:20.000Z | env/Lib/site-packages/OpenGL/GLES2/OES/texture_float_linear.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | null | null | null | env/Lib/site-packages/OpenGL/GLES2/OES/texture_float_linear.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 13 | 2019-08-12T06:00:16.000Z | 2022-01-28T05:49:31.000Z | '''OpenGL extension OES.texture_float_linear
This module customises the behaviour of the
OpenGL.raw.GLES2.OES.texture_float_linear to provide a more
Python-friendly API
Overview (from the spec)
These extensions expand upon the OES_texture_half_float and
OES_texture_float extensions by allowing support for LINEA... | 38.473684 | 72 | 0.807114 | 208 | 1,462 | 5.543269 | 0.524038 | 0.060711 | 0.078057 | 0.091067 | 0.108413 | 0.108413 | 0.108413 | 0.078057 | 0.078057 | 0 | 0 | 0.016562 | 0.132695 | 1,462 | 38 | 73 | 38.473684 | 0.892744 | 0.776334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8acbf66bde740ab88c1c488a23970f265e6fe1ca | 479 | py | Python | test_autofit/integration/tests/searches/MultiNest.py | arfon/PyAutoFit | 5926b13eefd97e089ee468cbec33452766edbd22 | [
"MIT"
] | 1 | 2021-01-18T23:20:31.000Z | 2021-01-18T23:20:31.000Z | test_autofit/integration/tests/searches/MultiNest.py | arfon/PyAutoFit | 5926b13eefd97e089ee468cbec33452766edbd22 | [
"MIT"
] | null | null | null | test_autofit/integration/tests/searches/MultiNest.py | arfon/PyAutoFit | 5926b13eefd97e089ee468cbec33452766edbd22 | [
"MIT"
] | null | null | null | import autofit as af
from test_autofit.integration.src.phase import phase as ph
from test_autofit.integration.src.model import profiles
from test_autofit.integration.tests import runner
test_type = "searches"
data_name = "gaussian_x1"
phase = ph.Phase(
name="phase",
profiles=af.CollectionPriorModel(... | 25.210526 | 66 | 0.736952 | 61 | 479 | 5.491803 | 0.47541 | 0.071642 | 0.134328 | 0.232836 | 0.173134 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002506 | 0.167015 | 479 | 18 | 67 | 26.611111 | 0.837093 | 0 | 0 | 0 | 0 | 0 | 0.069414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
8ad24f7908049ed576d07927d1a523b8d970ea93 | 501 | py | Python | client-cli/tests/cli/cli_runner.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 3 | 2021-01-12T22:40:30.000Z | 2021-06-09T04:33:19.000Z | client-cli/tests/cli/cli_runner.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 12 | 2019-06-04T16:42:19.000Z | 2022-03-06T23:11:47.000Z | client-cli/tests/cli/cli_runner.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 1 | 2021-01-12T22:40:10.000Z | 2021-01-12T22:40:10.000Z | import click
from click.testing import CliRunner
class Runner:
def __init__(self, cli=None):
self.runner = CliRunner()
if cli:
self.cli = cli
else:
@click.group()
def empty_cli():
pass
self.cli = empty_cli
def with_comm... | 20.875 | 63 | 0.56487 | 61 | 501 | 4.508197 | 0.393443 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.341317 | 501 | 23 | 64 | 21.782609 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.117647 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8ad27527621f8b1a39fe3abc591d4b59cefd8287 | 14,169 | py | Python | rpython/rlib/buffer.py | muke101/pypy-llvm-backend | bfd8164d25416e7a2c22cea7cc5f5a19c593b1b1 | [
"Apache-2.0",
"OpenSSL"
] | 5 | 2022-02-24T00:37:44.000Z | 2022-02-24T22:05:50.000Z | rpython/rlib/buffer.py | muke101/pypy-llvm-backend | bfd8164d25416e7a2c22cea7cc5f5a19c593b1b1 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-03-30T18:08:41.000Z | 2021-03-30T18:08:41.000Z | rpython/rlib/buffer.py | muke101/pypy-llvm-backend | bfd8164d25416e7a2c22cea7cc5f5a19c593b1b1 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | """
Buffer protocol support.
"""
from rpython.rtyper.lltypesystem import lltype, llmemory, rffi
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.rstr import STR, copy_string_to_raw
from rpython.rtyper.lltypesystem.rlist import LIST_OF
from rpython.rtyper.annlowlevel import llstr... | 31.840449 | 82 | 0.632014 | 1,823 | 14,169 | 4.715304 | 0.151399 | 0.030247 | 0.022336 | 0.02443 | 0.479293 | 0.42322 | 0.33946 | 0.290368 | 0.256282 | 0.234877 | 0 | 0.004592 | 0.277648 | 14,169 | 444 | 83 | 31.912162 | 0.835271 | 0.156398 | 0 | 0.455782 | 0 | 0 | 0.037068 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.22449 | false | 0 | 0.044218 | 0.07483 | 0.530612 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
76dd0ed781286e81753efdd76d52ee245437e8e1 | 743 | py | Python | tests/test_checks.py | TenantBase/dj-stripe | c3fe9da9dd0e15fd714c95402b7672aac07d43e1 | [
"MIT"
] | null | null | null | tests/test_checks.py | TenantBase/dj-stripe | c3fe9da9dd0e15fd714c95402b7672aac07d43e1 | [
"MIT"
] | null | null | null | tests/test_checks.py | TenantBase/dj-stripe | c3fe9da9dd0e15fd714c95402b7672aac07d43e1 | [
"MIT"
] | null | null | null | # import pytest
# from django.core.checks import Error
# from django.test import TestCase, override_settings
# # errors = checked_object.check()
# # expected_errors = [
# # Error(
# # 'an error',
# # hint='A hint.',
# # obj=checked_object,
# # id='myapp.E001',
# # )
# # ]
# # se... | 21.852941 | 66 | 0.578735 | 87 | 743 | 4.701149 | 0.528736 | 0.05868 | 0.07335 | 0.07824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.281292 | 743 | 33 | 67 | 22.515152 | 0.749064 | 0.905787 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76dd43511c089704b442a15268ecca404f697662 | 59 | py | Python | learn/02week/code/lecture/staircase_live.py | tmax818/nucamp_intro_python | 6fac59f53054055ba4ab40559c44eba07b7f9fd6 | [
"MIT"
] | null | null | null | learn/02week/code/lecture/staircase_live.py | tmax818/nucamp_intro_python | 6fac59f53054055ba4ab40559c44eba07b7f9fd6 | [
"MIT"
] | null | null | null | learn/02week/code/lecture/staircase_live.py | tmax818/nucamp_intro_python | 6fac59f53054055ba4ab40559c44eba07b7f9fd6 | [
"MIT"
] | null | null | null | stars = "*"
for i in range(1, 10, 2):
print(stars * i)
| 14.75 | 25 | 0.525424 | 11 | 59 | 2.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.271186 | 59 | 3 | 26 | 19.666667 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
76e3bb07ba5bdb4d26044a26aeadc014dbd76d0a | 1,411 | py | Python | GauL/molecule_train.py | mrodobbe/naphtha-mixtures | a87a293906f3534c03bbcf1f11d468787fd3f3f2 | [
"MIT"
] | null | null | null | GauL/molecule_train.py | mrodobbe/naphtha-mixtures | a87a293906f3534c03bbcf1f11d468787fd3f3f2 | [
"MIT"
] | null | null | null | GauL/molecule_train.py | mrodobbe/naphtha-mixtures | a87a293906f3534c03bbcf1f11d468787fd3f3f2 | [
"MIT"
] | null | null | null | from src.representation import represent
import numpy as np
import sys
from GauL.GauLsrc.makeMolecule import molecule_list, normalize, input_checker, store_bad_molecules
from GauL.GauLsrc.crossDouble import training, write_statistics
from GauL.GauLsrc.gaussian import gmm
from GauL.GauLsrc.results_processing import trai... | 35.275 | 98 | 0.809355 | 190 | 1,411 | 5.757895 | 0.331579 | 0.073126 | 0.068556 | 0.054845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003987 | 0.111269 | 1,411 | 39 | 99 | 36.179487 | 0.868421 | 0.013466 | 0 | 0 | 0 | 0 | 0.003597 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
76eb4f8bd813481b0bb2efe19978b2793ac1e832 | 1,075 | py | Python | api/migrations/0001_initial.py | Team-JAM/back-end | 1c79c364ea115d0767026dbc04c3b38733503b2f | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | Team-JAM/back-end | 1c79c364ea115d0767026dbc04c3b38733503b2f | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | Team-JAM/back-end | 1c79c364ea115d0767026dbc04c3b38733503b2f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-01 21:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Room',
fields=[
('id', models.IntegerField(... | 35.833333 | 97 | 0.573023 | 109 | 1,075 | 5.568807 | 0.477064 | 0.177924 | 0.144975 | 0.164745 | 0.243822 | 0.243822 | 0.243822 | 0 | 0 | 0 | 0 | 0.032258 | 0.27907 | 1,075 | 29 | 98 | 37.068966 | 0.750968 | 0.04186 | 0 | 0 | 1 | 0 | 0.10214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.227273 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76eb920187176516bc536c3ba4f4f82031b3a6c1 | 1,379 | py | Python | eyra_tools/template/{{ cookiecutter.container_name }}/src/run_{{ cookiecutter.container_type }}.py | EYRA-Benchmark/eyra-submission | 7ea98a503dd1c428fae27533de9e7b61ee020f5c | [
"Apache-2.0"
] | 1 | 2019-08-06T14:35:45.000Z | 2019-08-06T14:35:45.000Z | eyra_tools/template/{{ cookiecutter.container_name }}/src/run_{{ cookiecutter.container_type }}.py | EYRA-Benchmark/eyra-submission | 7ea98a503dd1c428fae27533de9e7b61ee020f5c | [
"Apache-2.0"
] | 10 | 2019-07-22T15:12:19.000Z | 2019-08-28T13:39:15.000Z | eyra_tools/template/{{ cookiecutter.container_name }}/src/run_{{ cookiecutter.container_type }}.py | EYRA-Benchmark/eyra-submission | 7ea98a503dd1c428fae27533de9e7b61ee020f5c | [
"Apache-2.0"
] | 1 | 2019-07-24T12:08:45.000Z | 2019-07-24T12:08:45.000Z | from pathlib import Path
from {{ cookiecutter.container_type }} import my_{{ cookiecutter.container_type }}
class {{cookiecutter.container_type.capitalize()}}(object):
{%- if cookiecutter.container_type == 'evaluation' %}
def run(self, submission_file, test_gt_file, out_file):
{%- else %}
def run(self, test_f... | 37.27027 | 108 | 0.6686 | 172 | 1,379 | 5.098837 | 0.343023 | 0.063854 | 0.199544 | 0.09236 | 0.3626 | 0.119726 | 0.119726 | 0.119726 | 0 | 0 | 0 | 0 | 0.177665 | 1,379 | 36 | 109 | 38.305556 | 0.773369 | 0 | 0 | 0.416667 | 0 | 0 | 0.127168 | 0.020231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76ec4bed7bcb44d772474438b111df4667ac8cdd | 1,946 | py | Python | repominder/apps/core/migrations/0003_auto_20201122_0157.py | simon-weber/repominder | 2b86f84de919858c83997a9e21ef711e895c9e9d | [
"MIT"
] | 4 | 2017-12-16T19:28:04.000Z | 2018-10-15T06:46:09.000Z | repominder/apps/core/migrations/0003_auto_20201122_0157.py | simon-weber/repominder | 2b86f84de919858c83997a9e21ef711e895c9e9d | [
"MIT"
] | 3 | 2018-01-20T02:10:26.000Z | 2020-02-13T00:27:17.000Z | repominder/apps/core/migrations/0003_auto_20201122_0157.py | simon-weber/repominder | 2b86f84de919858c83997a9e21ef711e895c9e9d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.16 on 2020-11-22 01:57
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("core", "0002_releasewatch_exclude_pattern"),
]
operations = [
migrations.CreateModel(
name="In... | 29.044776 | 83 | 0.397739 | 126 | 1,946 | 6.02381 | 0.468254 | 0.042161 | 0.055336 | 0.086957 | 0.395257 | 0.395257 | 0.395257 | 0.395257 | 0.395257 | 0.395257 | 0 | 0.023933 | 0.506167 | 1,946 | 66 | 84 | 29.484848 | 0.765869 | 0.023638 | 0 | 0.533333 | 1 | 0 | 0.108535 | 0.017387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76ecccb774711c84dcfbea76a988b28c428a13d8 | 1,508 | py | Python | coconut/protos/runner/runner_pb2_grpc.py | importcjj/python-coconut | 60a84b45aabd99a0c92e79e8c40e714ce3f11090 | [
"MIT"
] | null | null | null | coconut/protos/runner/runner_pb2_grpc.py | importcjj/python-coconut | 60a84b45aabd99a0c92e79e8c40e714ce3f11090 | [
"MIT"
] | null | null | null | coconut/protos/runner/runner_pb2_grpc.py | importcjj/python-coconut | 60a84b45aabd99a0c92e79e8c40e714ce3f11090 | [
"MIT"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from coconut.protos.tasks import task_pb2 as coconut_dot_protos_dot_tasks_dot_task__pb2
class RunnerStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
... | 32.085106 | 98 | 0.762599 | 183 | 1,508 | 5.896175 | 0.371585 | 0.038925 | 0.074143 | 0.088044 | 0.385542 | 0.385542 | 0.385542 | 0.385542 | 0.305839 | 0.113068 | 0 | 0.004769 | 0.165782 | 1,508 | 46 | 99 | 32.782609 | 0.852941 | 0.187666 | 0 | 0.107143 | 1 | 0 | 0.056525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.107143 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0a142ab4ed8af53d953c42455f3853273d5c6076 | 119 | py | Python | software/metax/Formats.py | adellanno/MetaXcan | cfc9e369bbf5630e0c9488993cd877f231c5d02e | [
"MIT"
] | 83 | 2016-07-19T20:14:52.000Z | 2022-03-28T17:02:39.000Z | software/metax/Formats.py | adellanno/MetaXcan | cfc9e369bbf5630e0c9488993cd877f231c5d02e | [
"MIT"
] | 75 | 2016-02-25T16:43:17.000Z | 2022-03-30T14:19:03.000Z | software/metax/Formats.py | adellanno/MetaXcan | cfc9e369bbf5630e0c9488993cd877f231c5d02e | [
"MIT"
] | 71 | 2016-02-11T17:10:32.000Z | 2022-03-30T20:15:19.000Z | __author__ = 'heroico'
IMPUTE = "IMPUTE"
PrediXcan = "PrediXcan"
DatabaseFile = "DatabaseFile"
FlatFile = "FlatFile"
| 14.875 | 29 | 0.731092 | 10 | 119 | 8.3 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 119 | 7 | 30 | 17 | 0.813725 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 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 | 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 | 2 |
0a1b64f22fb194737555011c84e05344fce9f2f8 | 3,882 | py | Python | cms/utils/django_load.py | sofiareis/django-cms | d95250181b544d030215e4e7b183b98693996606 | [
"BSD-3-Clause"
] | null | null | null | cms/utils/django_load.py | sofiareis/django-cms | d95250181b544d030215e4e7b183b98693996606 | [
"BSD-3-Clause"
] | null | null | null | cms/utils/django_load.py | sofiareis/django-cms | d95250181b544d030215e4e7b183b98693996606 | [
"BSD-3-Clause"
] | 1 | 2018-12-10T13:34:52.000Z | 2018-12-10T13:34:52.000Z | # -*- coding: utf-8 -*-
"""
This is revision from 3058ab9d9d4875589638cc45e84b59e7e1d7c9c3 of
https://github.com/ojii/django-load.
ANY changes to this file, be it upstream fixes or changes for the cms *must* be
documented clearly within this file with comments.
For documentation on how to use the functions described ... | 31.560976 | 94 | 0.68135 | 538 | 3,882 | 4.797398 | 0.340149 | 0.027896 | 0.013948 | 0.022084 | 0.230143 | 0.179775 | 0.140256 | 0.140256 | 0.140256 | 0.140256 | 0 | 0.010448 | 0.235703 | 3,882 | 122 | 95 | 31.819672 | 0.859454 | 0.439464 | 0 | 0.12 | 0 | 0 | 0.078226 | 0.014948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.42 | 0 | 0.7 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0a1b6b2acd9b41438431b09acff4de18d2022871 | 429 | py | Python | server/test/modelstest.py | CodeForAfrica/word-embeddings-server | 797cf510749f41eaaaabd8757d3e5f5c1825b8ad | [
"MIT"
] | 1 | 2021-01-05T11:48:51.000Z | 2021-01-05T11:48:51.000Z | server/test/modelstest.py | CodeForAfrica/word-embeddings-server | 797cf510749f41eaaaabd8757d3e5f5c1825b8ad | [
"MIT"
] | 1 | 2020-11-20T09:31:22.000Z | 2020-11-20T09:31:22.000Z | server/test/modelstest.py | CodeForAfrica/word-embeddings-server | 797cf510749f41eaaaabd8757d3e5f5c1825b8ad | [
"MIT"
] | 1 | 2021-02-11T20:37:03.000Z | 2021-02-11T20:37:03.000Z | import unittest
import server.models
class ModelsTest(unittest.TestCase):
def testGoogleNewsModelLoad(self):
model = server.models.get_model(server.models.MODEL_GOOGLE_NEWS)
self.assertIsNotNone(model, "The GoogleNews model was None :-(")
def testModelLoadFails(self):
with self.asse... | 28.6 | 72 | 0.729604 | 48 | 429 | 6.4375 | 0.5625 | 0.194175 | 0.110032 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177156 | 429 | 14 | 73 | 30.642857 | 0.875354 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0a2263cc1f47a1b0789c2d4cbecac837b404bb76 | 1,872 | py | Python | run-length-encoding/run_length_encoding_test.py | matheussilvapb/exercism-python | 2466e97c051862a5a7bb95c1a57cdce33fdd727c | [
"MIT"
] | 1 | 2018-03-02T08:08:55.000Z | 2018-03-02T08:08:55.000Z | run-length-encoding/run_length_encoding_test.py | matheussilvapb/exercism-python | 2466e97c051862a5a7bb95c1a57cdce33fdd727c | [
"MIT"
] | null | null | null | run-length-encoding/run_length_encoding_test.py | matheussilvapb/exercism-python | 2466e97c051862a5a7bb95c1a57cdce33fdd727c | [
"MIT"
] | null | null | null | import unittest
from run_length_encoding import encode, decode
class WordCountTests(unittest.TestCase):
def test_encode_empty_string(self):
self.assertMultiLineEqual('', encode(''))
def test_encode_single_characters_only_are_encoded_without_count(self):
self.assertMultiLineEqual('XYZ', enco... | 34.666667 | 77 | 0.732906 | 192 | 1,872 | 6.765625 | 0.260417 | 0.070054 | 0.280216 | 0.13087 | 0.529638 | 0.39107 | 0.314088 | 0.314088 | 0.101617 | 0 | 0 | 0.021851 | 0.168803 | 1,872 | 53 | 78 | 35.320755 | 0.812982 | 0 | 0 | 0.057143 | 0 | 0 | 0.149573 | 0.056624 | 0 | 0 | 0 | 0 | 0.371429 | 1 | 0.371429 | false | 0 | 0.057143 | 0 | 0.457143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0a240836b4c1c20cd5af6d934505afdf00e2444b | 273 | py | Python | akshare/index/exceptions.py | J-Z-Z/akshare | 0a9ca71b381a272e2f56211e455ff2493dfed17a | [
"MIT"
] | 4,202 | 2019-10-01T08:55:03.000Z | 2021-09-21T07:15:57.000Z | akshare/index/exceptions.py | J-Z-Z/akshare | 0a9ca71b381a272e2f56211e455ff2493dfed17a | [
"MIT"
] | 438 | 2016-01-05T20:54:05.000Z | 2022-03-31T23:39:37.000Z | akshare/index/exceptions.py | J-Z-Z/akshare | 0a9ca71b381a272e2f56211e455ff2493dfed17a | [
"MIT"
] | 894 | 2019-10-09T08:14:01.000Z | 2021-09-20T02:51:54.000Z | class ResponseError(Exception):
"""Something was wrong with the response from Google"""
def __init__(self, message, response):
super(Exception, self).__init__(message)
# pass response so it can be handled upstream
self.response = response
| 30.333333 | 59 | 0.688645 | 32 | 273 | 5.625 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227106 | 273 | 8 | 60 | 34.125 | 0.853081 | 0.344322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0a268649dcdc4b47604a32d246efdfa9d450aac9 | 1,108 | py | Python | api_escola/escola/models.py | Jefferson472/django_rest_api | 0964d8cc1bccec7ea3a27d817ec8b75a38a37e35 | [
"MIT"
] | null | null | null | api_escola/escola/models.py | Jefferson472/django_rest_api | 0964d8cc1bccec7ea3a27d817ec8b75a38a37e35 | [
"MIT"
] | null | null | null | api_escola/escola/models.py | Jefferson472/django_rest_api | 0964d8cc1bccec7ea3a27d817ec8b75a38a37e35 | [
"MIT"
] | null | null | null | from django.db import models
class Aluno(models.Model):
nome = models.CharField(max_length=30)
rg = models.CharField(max_length=9)
cpf = models.CharField(max_length=11)
data_nascimento = models.DateField()
def __str__(self):
return self.nome
class Curso(models.Model):
NIVEL = (
... | 22.612245 | 62 | 0.584838 | 121 | 1,108 | 5.206612 | 0.446281 | 0.166667 | 0.2 | 0.266667 | 0.247619 | 0.101587 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0.283394 | 1,108 | 48 | 63 | 23.083333 | 0.778338 | 0 | 0 | 0.2 | 0 | 0 | 0.054152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.025 | 0.05 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
0a29a944944f7de35f5ebd0e74fc46fdcb4c4c10 | 201 | py | Python | asrtoolkit/data_handlers/data_handlers_common.py | greenkeytech/greenkey-asrtoolkit | f9a5990ee5c67b85dd8ff763777c986b03252ee5 | [
"Apache-2.0"
] | 31 | 2019-08-03T08:42:37.000Z | 2022-01-12T18:00:11.000Z | asrtoolkit/data_handlers/data_handlers_common.py | greenkeytech/greenkey-asrtoolkit | f9a5990ee5c67b85dd8ff763777c986b03252ee5 | [
"Apache-2.0"
] | 28 | 2019-07-29T17:58:17.000Z | 2021-08-20T14:30:25.000Z | asrtoolkit/data_handlers/data_handlers_common.py | kaleko/greenkey-asrtoolkit | a729e25ae9c1c65b3c9f25438eb67dba8d03a730 | [
"Apache-2.0"
] | 12 | 2019-07-29T13:16:41.000Z | 2022-02-20T21:19:35.000Z | #!/usr/bin/env python
"""
Module for common utils for file/data handlers
"""
separator = "\n"
def header():
" Returns header "
return ""
def footer():
" Returns footer "
return ""
| 11.823529 | 46 | 0.597015 | 24 | 201 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253731 | 201 | 16 | 47 | 12.5625 | 0.8 | 0.492537 | 0 | 0.285714 | 0 | 0 | 0.269841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0a2e17b1afbecba0cb4be9c42e269fb89549beb2 | 1,576 | py | Python | phaser-host/tests/test_api_stats.py | ongzhixian/Pycro | 89f4a4902b401a0ceb7dd6c905ec1da87982befd | [
"MIT"
] | null | null | null | phaser-host/tests/test_api_stats.py | ongzhixian/Pycro | 89f4a4902b401a0ceb7dd6c905ec1da87982befd | [
"MIT"
] | 9 | 2020-08-29T00:17:12.000Z | 2020-10-07T00:12:30.000Z | vcis/tests/test_api_stats.py | ongzhixian/Pycro | 89f4a4902b401a0ceb7dd6c905ec1da87982befd | [
"MIT"
] | null | null | null | import unittest
class api_stats_tests(unittest.TestCase):
"""
python -m unittest -v tests.test_api_stats.api_stats_tests
get_api_stats
update_api_stats
"""
def test_get_api_stats(self):
"""
python -m unittest -v tests.test_api_stats.api_stats_tests.test_get_api_stats
... | 29.735849 | 88 | 0.635152 | 206 | 1,576 | 4.417476 | 0.150485 | 0.29011 | 0.120879 | 0.07033 | 0.769231 | 0.746154 | 0.638462 | 0.518681 | 0.474725 | 0.474725 | 0 | 0.003552 | 0.285533 | 1,576 | 53 | 89 | 29.735849 | 0.804618 | 0.244289 | 0 | 0.1 | 0 | 0 | 0.100825 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
0a39e89b1cd3dc9cd30e9fae1cb9b668a53e3e96 | 2,604 | py | Python | Code/Base/py-parset/current/askap/parset/__init__.py | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Base/py-parset/current/askap/parset/__init__.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Base/py-parset/current/askap/parset/__init__.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | # Copyright (c) 2009 CSIRO
# Australia Telescope National Facility (ATNF)
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# PO Box 76, Epping NSW 1710, Australia
# atnf-enquiries@csiro.au
#
# This file is part of the ASKAP software distribution.
#
# The ASKAP software distribution is free softwar... | 40.6875 | 89 | 0.722734 | 368 | 2,604 | 5.067935 | 0.567935 | 0.041823 | 0.048257 | 0.050938 | 0.129759 | 0.115818 | 0 | 0 | 0 | 0 | 0 | 0.03587 | 0.207757 | 2,604 | 63 | 90 | 41.333333 | 0.868153 | 0.839862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0a41505fc3807d29d09de2068b2324eed48d701c | 311 | py | Python | es14/es05.py | lucafrance/practice-python-solutions | 613fa56029a8182d23b92be92c2d1d5abd0a8c78 | [
"Unlicense"
] | null | null | null | es14/es05.py | lucafrance/practice-python-solutions | 613fa56029a8182d23b92be92c2d1d5abd0a8c78 | [
"Unlicense"
] | null | null | null | es14/es05.py | lucafrance/practice-python-solutions | 613fa56029a8182d23b92be92c2d1d5abd0a8c78 | [
"Unlicense"
] | null | null | null | import common_functions as cm
def list_common_elements(list1, list2):
common = set()
for num in a + b:
if num in a and num in b:
common.add(num)
return list(common)
a = cm.random_integer_list()
b = cm.random_integer_list()
print(a)
print(b)
print(list_common_elements(a, b)) | 18.294118 | 39 | 0.662379 | 52 | 311 | 3.788462 | 0.442308 | 0.152284 | 0.182741 | 0.192893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.234727 | 311 | 17 | 40 | 18.294118 | 0.819328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
0a452cc415a278cd1363fe119862d6be8233e27d | 1,778 | py | Python | my_plugins/youcompleteme/third_party/ycmd/ycmd/tests/python/__init__.py | VirtualLG/vimrc | 33f961b0e465b852753479bc4aa0a32a6ff017cf | [
"MIT"
] | null | null | null | my_plugins/youcompleteme/third_party/ycmd/ycmd/tests/python/__init__.py | VirtualLG/vimrc | 33f961b0e465b852753479bc4aa0a32a6ff017cf | [
"MIT"
] | null | null | null | my_plugins/youcompleteme/third_party/ycmd/ycmd/tests/python/__init__.py | VirtualLG/vimrc | 33f961b0e465b852753479bc4aa0a32a6ff017cf | [
"MIT"
] | null | null | null | # Copyright (C) 2020 ycmd contributors
#
# This file is part of ycmd.
#
# ycmd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ycmd... | 30.655172 | 72 | 0.693476 | 225 | 1,778 | 5.364444 | 0.484444 | 0.037283 | 0.053024 | 0.047225 | 0.200497 | 0.135874 | 0.089478 | 0.089478 | 0.089478 | 0.089478 | 0 | 0.003647 | 0.228909 | 1,778 | 57 | 73 | 31.192982 | 0.876732 | 0.365017 | 0 | 0.275862 | 0 | 0 | 0.007194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.103448 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0a5af1554ee88e5994d35f2c5456ef1b711bf0e8 | 478 | py | Python | tellurium/tests/helpers.py | ShaikAsifullah/distributed-tellurium | 007e9b3842b614edd34908c001119c6da1d41897 | [
"Apache-2.0"
] | 1 | 2019-06-19T04:40:33.000Z | 2019-06-19T04:40:33.000Z | tellurium/tests/helpers.py | ShaikAsifullah/distributed-tellurium | 007e9b3842b614edd34908c001119c6da1d41897 | [
"Apache-2.0"
] | null | null | null | tellurium/tests/helpers.py | ShaikAsifullah/distributed-tellurium | 007e9b3842b614edd34908c001119c6da1d41897 | [
"Apache-2.0"
] | null | null | null | """
Helper functions for tests.
"""
import os
def filesInDirectory(directory, suffix):
""" Find files with given suffix in directory.
:param directory:
:param suffix:
:return:
:rtype:
"""
# FIXME: callable filter function
from os import walk
files = []
for (dirpath, dirnames, f... | 21.727273 | 73 | 0.650628 | 60 | 478 | 5.183333 | 0.566667 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238494 | 478 | 21 | 74 | 22.761905 | 0.854396 | 0.322176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0a611dbdad59d96c7b19447acf448b0400e5be39 | 405 | py | Python | tests/test_rankings.py | kcsparks/osrs_highscores | 77a7d57d4e3b2ac2aba1f7b5b5140a5cacc52d3c | [
"MIT"
] | null | null | null | tests/test_rankings.py | kcsparks/osrs_highscores | 77a7d57d4e3b2ac2aba1f7b5b5140a5cacc52d3c | [
"MIT"
] | null | null | null | tests/test_rankings.py | kcsparks/osrs_highscores | 77a7d57d4e3b2ac2aba1f7b5b5140a5cacc52d3c | [
"MIT"
] | null | null | null | import pytest
from osrs_highscores.rankings import Rankings
def test_lookup_skill():
rank = Rankings().get_rank_in_skill('attack', 1)
assert rank.rank == 1
def test_lookup_nonskill():
rank = Rankings().get_rank_in_target('clue_scrolls_all', 1)
assert rank.score != 0
def test_lookup_high_rank():
... | 22.5 | 63 | 0.723457 | 59 | 405 | 4.644068 | 0.440678 | 0.076642 | 0.142336 | 0.208029 | 0.266423 | 0.189781 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.162963 | 405 | 17 | 64 | 23.823529 | 0.772861 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6a68c000e19f43ccc7d209beb26fcde6bb20c4d9 | 3,347 | py | Python | benchmark/unicycle_optctrl.py | paLeziart/crocoddyl | c31a27432f9f2b365faec31b5e7cb37d90b7abb0 | [
"BSD-3-Clause"
] | 2 | 2020-09-23T12:57:29.000Z | 2021-05-30T16:27:14.000Z | benchmark/unicycle_optctrl.py | paLeziart/crocoddyl | c31a27432f9f2b365faec31b5e7cb37d90b7abb0 | [
"BSD-3-Clause"
] | null | null | null | benchmark/unicycle_optctrl.py | paLeziart/crocoddyl | c31a27432f9f2b365faec31b5e7cb37d90b7abb0 | [
"BSD-3-Clause"
] | 1 | 2021-03-26T14:31:17.000Z | 2021-03-26T14:31:17.000Z | import crocoddyl
from crocoddyl.utils import UnicycleDerived
import numpy as np
import os
import sys
import time
import subprocess
N = 200 # number of nodes
T = int(sys.argv[1]) if (len(sys.argv) > 1) else int(5e3) # number of trials
MAXITER = 1
CALLBACKS = False
def createProblem(model):
x0 = np.matrix([[1.],... | 35.989247 | 106 | 0.696445 | 425 | 3,347 | 5.317647 | 0.202353 | 0.102212 | 0.176549 | 0.175221 | 0.657522 | 0.657522 | 0.657522 | 0.657522 | 0.652655 | 0.652655 | 0 | 0.017544 | 0.165521 | 3,347 | 92 | 107 | 36.380435 | 0.791622 | 0.009561 | 0 | 0.52 | 0 | 0 | 0.091184 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.093333 | 0 | 0.2 | 0.146667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
6a6f09fa05c472f0c5507f4d21882a8ebbf1000a | 474 | py | Python | src/imglyb/config.py | hanslovsky/imglyb | e802a48f72b303fe501b0f31997234e33e382140 | [
"BSD-2-Clause"
] | 1 | 2018-07-11T03:43:10.000Z | 2018-07-11T03:43:10.000Z | src/imglyb/config.py | hanslovsky/imglyb | e802a48f72b303fe501b0f31997234e33e382140 | [
"BSD-2-Clause"
] | null | null | null | src/imglyb/config.py | hanslovsky/imglyb | e802a48f72b303fe501b0f31997234e33e382140 | [
"BSD-2-Clause"
] | null | null | null | import os
from setuptools_scm import get_version
version = get_version(root="../..", relative_to=__file__)
_default_imglib2_imglyb_version = "1.0.1"
_imglib2_imglyb_version = os.getenv(
"IMGLIB2_IMGLYB_VERSION", _default_imglib2_imglyb_version
)
def set_imglib2_imglyb_version(version):
global _imglib2_imgly... | 23.7 | 61 | 0.810127 | 61 | 474 | 5.655738 | 0.344262 | 0.376812 | 0.57971 | 0.156522 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.122363 | 474 | 19 | 62 | 24.947368 | 0.798077 | 0 | 0 | 0.153846 | 0 | 0 | 0.067511 | 0.046414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
6a7f85edf55e7c9672f284b04be7d6b1ee92ec7c | 228 | py | Python | uldaq-1.2.1/uldaq/utils.py | Novellogiampiero/RapLib | 614d25abf402052dcaf81aa72044e3a03cb014fa | [
"Apache-2.0"
] | null | null | null | uldaq-1.2.1/uldaq/utils.py | Novellogiampiero/RapLib | 614d25abf402052dcaf81aa72044e3a03cb014fa | [
"Apache-2.0"
] | null | null | null | uldaq-1.2.1/uldaq/utils.py | Novellogiampiero/RapLib | 614d25abf402052dcaf81aa72044e3a03cb014fa | [
"Apache-2.0"
] | null | null | null | """
Created on Feb 12 2018
@author: MCC
"""
def enum_mask_to_list(enum_type, mask):
enum_value_list = []
for opt in enum_type:
if opt & mask:
enum_value_list.append(opt)
return enum_value_list
| 16.285714 | 39 | 0.640351 | 35 | 228 | 3.857143 | 0.571429 | 0.2 | 0.288889 | 0.251852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 0.267544 | 228 | 13 | 40 | 17.538462 | 0.772455 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
6a8210c411e163982a440ef558653cb9d2418aa2 | 926 | py | Python | docs/customization.py | Vovcharaa/gidgethub | b95ee522c6de768994206dd1effe7e39327c805a | [
"Apache-2.0"
] | 2 | 2019-01-17T23:05:53.000Z | 2021-01-03T00:56:56.000Z | docs/customization.py | Vovcharaa/gidgethub | b95ee522c6de768994206dd1effe7e39327c805a | [
"Apache-2.0"
] | 6 | 2020-08-30T08:52:48.000Z | 2020-10-29T16:00:24.000Z | docs/customization.py | Smirenost/gidgethub | 27c104de7a3e1b3052fb252f11b61a8ee01691f1 | [
"Apache-2.0"
] | null | null | null | from sphinx import addnodes
from sphinx.domains.python import PyClassmember
class PyCoroutine(PyClassmember):
def handle_signature(self, sig, signode):
ret = super().handle_signature(sig, signode)
signode.insert(0, addnodes.desc_annotation("coroutine ", "coroutine "))
return ret
def r... | 28.9375 | 79 | 0.679266 | 101 | 926 | 6.108911 | 0.356436 | 0.097245 | 0.058347 | 0.071313 | 0.606159 | 0.606159 | 0.525122 | 0.525122 | 0.525122 | 0.525122 | 0 | 0.002747 | 0.213823 | 926 | 31 | 80 | 29.870968 | 0.84478 | 0 | 0 | 0.521739 | 0 | 0 | 0.105832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6a9256dcb37943208b808250ecc380946d92fdf6 | 199 | py | Python | Chapter 09/Chap09_Example9.14.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 09/Chap09_Example9.14.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 09/Chap09_Example9.14.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | try:
myfile1 = open("mywrite1.txt",'a')
num1 = myfile1.writelines(["Beginners ","are ","welcome ","here"])
print("Data written successfully from list")
finally:
myfile1.close()
| 28.428571 | 71 | 0.628141 | 22 | 199 | 5.681818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.19598 | 199 | 6 | 72 | 33.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.38342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 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 | 2 |
6ab4bd5f354b149993b9886e395a9a2550e5ca54 | 22,486 | py | Python | tests/data_context/test_data_context_in_code_config.py | jaidparmar/great_expectations | dac57e3638a0ca2c7adc62a8c0cee8525ea706a5 | [
"Apache-2.0"
] | null | null | null | tests/data_context/test_data_context_in_code_config.py | jaidparmar/great_expectations | dac57e3638a0ca2c7adc62a8c0cee8525ea706a5 | [
"Apache-2.0"
] | null | null | null | tests/data_context/test_data_context_in_code_config.py | jaidparmar/great_expectations | dac57e3638a0ca2c7adc62a8c0cee8525ea706a5 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, Optional, Set
import boto3
from moto import mock_s3
from great_expectations.data_context import BaseDataContext
from great_expectations.data_context.store import StoreBackend, TupleS3StoreBackend
from great_expectations.data_context.types.base import DataContextConfig
from tests.integration.u... | 37.352159 | 224 | 0.674953 | 2,437 | 22,486 | 5.812064 | 0.105868 | 0.076885 | 0.044479 | 0.05281 | 0.751977 | 0.717947 | 0.694154 | 0.674527 | 0.647416 | 0.641627 | 0 | 0.01284 | 0.255314 | 22,486 | 601 | 225 | 37.414309 | 0.833025 | 0.198612 | 0 | 0.544218 | 0 | 0 | 0.232015 | 0.100431 | 0 | 0 | 0 | 0 | 0.038549 | 1 | 0.020408 | false | 0 | 0.015873 | 0 | 0.043084 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
6ab58a5f1867a5c6f3f06316e508a37087c83344 | 1,282 | py | Python | cirq/line/placement/place.py | YZNIU/Cirq | 6c996e9fd57d0898c31c8ebbe7fe23f88aa96cf9 | [
"Apache-2.0"
] | null | null | null | cirq/line/placement/place.py | YZNIU/Cirq | 6c996e9fd57d0898c31c8ebbe7fe23f88aa96cf9 | [
"Apache-2.0"
] | null | null | null | cirq/line/placement/place.py | YZNIU/Cirq | 6c996e9fd57d0898c31c8ebbe7fe23f88aa96cf9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.611111 | 74 | 0.723089 | 161 | 1,282 | 5.732919 | 0.559006 | 0.065005 | 0.039003 | 0.068256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007952 | 0.215289 | 1,282 | 35 | 75 | 36.628571 | 0.909543 | 0.624025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6acca9909691b1c9f2ce996fc0799f34b83a765b | 203 | py | Python | packages/datacube_bigmart/datacube_bigmart/datasets/upload_s3.py | iameminmammadov/datacube_bigmart_lighthouse | 74de8e87bc0482845530c23871d1b113acc11a81 | [
"MIT"
] | null | null | null | packages/datacube_bigmart/datacube_bigmart/datasets/upload_s3.py | iameminmammadov/datacube_bigmart_lighthouse | 74de8e87bc0482845530c23871d1b113acc11a81 | [
"MIT"
] | null | null | null | packages/datacube_bigmart/datacube_bigmart/datasets/upload_s3.py | iameminmammadov/datacube_bigmart_lighthouse | 74de8e87bc0482845530c23871d1b113acc11a81 | [
"MIT"
] | null | null | null | import boto3
client_s3 = boto3.resource('s3')
client_s3.meta.client.upload_file('Train.csv', 'bigmart-dataset', 'Train.csv')
client_s3.meta.client.upload_file('Test.csv', 'bigmart-dataset', 'Test.csv')
| 33.833333 | 78 | 0.753695 | 31 | 203 | 4.774194 | 0.419355 | 0.162162 | 0.162162 | 0.243243 | 0.378378 | 0.378378 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.059113 | 203 | 5 | 79 | 40.6 | 0.743456 | 0 | 0 | 0 | 0 | 0 | 0.326733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
6acef31c76dbe70af844dc3c4db0213cfa99a70f | 530 | py | Python | whats_free_on_craigslist_app/migrations/0011_auto_20201203_0146.py | benfarmercode/whats-free-on-craigslist | 1b912024179362a4d7861326ba6d7a28fdbf2425 | [
"MIT"
] | null | null | null | whats_free_on_craigslist_app/migrations/0011_auto_20201203_0146.py | benfarmercode/whats-free-on-craigslist | 1b912024179362a4d7861326ba6d7a28fdbf2425 | [
"MIT"
] | null | null | null | whats_free_on_craigslist_app/migrations/0011_auto_20201203_0146.py | benfarmercode/whats-free-on-craigslist | 1b912024179362a4d7861326ba6d7a28fdbf2425 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-03 01:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('whats_free_on_craigslist_app', '0010_auto_20201202_2258'),
]
operations = [
migrations.AlterModelOptions(
name='listing',
op... | 24.090909 | 87 | 0.59434 | 51 | 530 | 5.980392 | 0.764706 | 0.177049 | 0.203279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080519 | 0.273585 | 530 | 21 | 88 | 25.238095 | 0.711688 | 0.084906 | 0 | 0.266667 | 1 | 0 | 0.254658 | 0.10559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6ad33b6b973de51942fcbf2c7eea3fd938c04d59 | 29,070 | py | Python | pandas/tseries/tests/test_daterange.py | augustoproiete-forks/pandas-dev--pandas | fcd73ad2e7482414b61d47056c6c9c220b11702c | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | pandas/tseries/tests/test_daterange.py | augustoproiete-forks/pandas-dev--pandas | fcd73ad2e7482414b61d47056c6c9c220b11702c | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | pandas/tseries/tests/test_daterange.py | augustoproiete-forks/pandas-dev--pandas | fcd73ad2e7482414b61d47056c6c9c220b11702c | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
from pandas.compat import range
import nose
import numpy as np
from pandas.core.index import Index
from pandas.tseries.index import DatetimeIndex
from pandas import Timestamp
from pandas.tseries.offsets import generate_range
from pandas.tseries.index import cdate_range, bdate_range, date... | 35.712531 | 79 | 0.59226 | 3,675 | 29,070 | 4.533605 | 0.090612 | 0.039914 | 0.027849 | 0.032411 | 0.801993 | 0.716164 | 0.684173 | 0.642879 | 0.601705 | 0.550747 | 0 | 0.072879 | 0.283488 | 29,070 | 813 | 80 | 35.756458 | 0.727015 | 0.028483 | 0 | 0.585448 | 0 | 0 | 0.061607 | 0 | 0 | 0 | 0 | 0 | 0.279188 | 1 | 0.118443 | false | 0 | 0.037225 | 0 | 0.160745 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
6adafa00e48b42bcd5886b3c8abc3f48438ae61e | 617 | py | Python | accounts/views/creator.py | vngrd-coop/vngrd | 7dfe110c35fea62d235610369ed9534a12a91730 | [
"MIT"
] | null | null | null | accounts/views/creator.py | vngrd-coop/vngrd | 7dfe110c35fea62d235610369ed9534a12a91730 | [
"MIT"
] | 10 | 2019-12-09T03:01:51.000Z | 2021-09-22T18:05:56.000Z | accounts/views/creator.py | vngrd-coop/vngrd | 7dfe110c35fea62d235610369ed9534a12a91730 | [
"MIT"
] | null | null | null | from django.contrib.auth import login, get_user_model
from django.shortcuts import redirect
from django.views.generic import CreateView
from ..forms import CreatorSignUpForm
from ..models import Creator
class SignUpCreatorView(CreateView):
model = get_user_model()
form_class = CreatorSignUpForm
template_n... | 29.380952 | 53 | 0.721232 | 75 | 617 | 5.76 | 0.506667 | 0.069444 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184765 | 617 | 20 | 54 | 30.85 | 0.858847 | 0 | 0 | 0 | 0 | 0 | 0.079417 | 0.047002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
6adb3c707753666f18580b48e84d9b61b9daffe8 | 537 | py | Python | Exe6_maior_entre_tres_numeros.py | lucaslk122/Exercicios_Python_estutura_decisao | 51a9699c5d85aa6cfb163d891c56e804a7255634 | [
"MIT"
] | null | null | null | Exe6_maior_entre_tres_numeros.py | lucaslk122/Exercicios_Python_estutura_decisao | 51a9699c5d85aa6cfb163d891c56e804a7255634 | [
"MIT"
] | null | null | null | Exe6_maior_entre_tres_numeros.py | lucaslk122/Exercicios_Python_estutura_decisao | 51a9699c5d85aa6cfb163d891c56e804a7255634 | [
"MIT"
] | null | null | null |
num1 = float(input("Digite um numero; "))
num2 = float(input("Digite um numero; "))
num3 = float(input("Digite um numero; "))
maior = max(num1,num2,num3)
print(f"O maior valor é {maior}")
"""
#Outra solução possivel
num1 = float(input("Digite um numero; "))
num2 = float(input("Digite um numero; "))
num3 = float(inpu... | 25.571429 | 41 | 0.648045 | 83 | 537 | 4.192771 | 0.240964 | 0.172414 | 0.275862 | 0.310345 | 0.706897 | 0.649425 | 0.649425 | 0.511494 | 0.511494 | 0.511494 | 0 | 0.045977 | 0.189944 | 537 | 21 | 42 | 25.571429 | 0.754023 | 0 | 0 | 0 | 0 | 0 | 0.405263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
6aec1c7e00e19930f0e1d41ff811ff9554185eef | 811 | py | Python | src/leetcode_1784_check_if_binary_string_has_at_most_one_segment_of_ones.py | yurirocha15/coding_practice | 952506932c47414da689454853ee745637413160 | [
"MIT"
] | 2 | 2020-12-08T13:59:10.000Z | 2021-05-01T05:07:39.000Z | src/leetcode_1784_check_if_binary_string_has_at_most_one_segment_of_ones.py | yurirocha15/coding_practice | 952506932c47414da689454853ee745637413160 | [
"MIT"
] | null | null | null | src/leetcode_1784_check_if_binary_string_has_at_most_one_segment_of_ones.py | yurirocha15/coding_practice | 952506932c47414da689454853ee745637413160 | [
"MIT"
] | 1 | 2021-05-02T17:42:02.000Z | 2021-05-02T17:42:02.000Z | # @l2g 1784 python3
# [1784] Check if Binary String Has at Most One Segment of Ones
# Difficulty: Easy
# https://leetcode.com/problems/check-if-binary-string-has-at-most-one-segment-of-ones
#
# Given a binary string s without leading zeros,
# return true if s contains at most one contiguous segment of ones.Othe... | 20.275 | 93 | 0.652281 | 123 | 811 | 4.227642 | 0.577236 | 0.069231 | 0.051923 | 0.073077 | 0.169231 | 0.169231 | 0.169231 | 0.169231 | 0.169231 | 0.169231 | 0 | 0.050536 | 0.194821 | 811 | 39 | 94 | 20.794872 | 0.745789 | 0.669544 | 0 | 0 | 0 | 0 | 0.112033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
0a77551d11fbf29097a1d22323281c2cb814da9a | 294 | py | Python | PlotUtils/test/python_test.py | yimuchen/UserUtils | 1a5c55d286f325424f4cfd23f22da63cfa6fb6a9 | [
"MIT"
] | null | null | null | PlotUtils/test/python_test.py | yimuchen/UserUtils | 1a5c55d286f325424f4cfd23f22da63cfa6fb6a9 | [
"MIT"
] | 1 | 2021-12-10T15:04:04.000Z | 2022-01-10T18:56:53.000Z | PlotUtils/test/python_test.py | yimuchen/UserUtils | 1a5c55d286f325424f4cfd23f22da63cfa6fb6a9 | [
"MIT"
] | 1 | 2018-06-05T14:08:08.000Z | 2018-06-05T14:08:08.000Z | #!/bin/env python
from UserUtils.PlotUtils import plt
import ROOT
#print(UserU)
c = plt.Simple1DCanvas()
hist = ROOT.TH1D("mytest","mytest",1,0,1)
c.Pad().PlotHist(hist,plt.PlotType(plt.hist),plt.EntryText("mytest"))
c.SaveAsPDF("MYTEST.pdf")
# SignalCompare1D(1,2);
#c.SaveAsPDF("MYTEST.pdf") | 26.727273 | 69 | 0.731293 | 45 | 294 | 4.777778 | 0.577778 | 0.065116 | 0.148837 | 0.176744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.068027 | 294 | 11 | 70 | 26.727273 | 0.755474 | 0.255102 | 0 | 0 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
0a795b1dfa21214dc37dc18271275689d063ac56 | 186 | py | Python | data_hyperparams/ml-100k.py | noveens/sampling_cf | e135819b1e7310ee58edbbd138f303e5240a2619 | [
"MIT"
] | 6 | 2022-01-14T13:38:03.000Z | 2022-03-01T17:57:09.000Z | data_hyperparams/ml-100k.py | noveens/sampling_cf | e135819b1e7310ee58edbbd138f303e5240a2619 | [
"MIT"
] | null | null | null | data_hyperparams/ml-100k.py | noveens/sampling_cf | e135819b1e7310ee58edbbd138f303e5240a2619 | [
"MIT"
] | null | null | null | hyper_params = {
'weight_decay': float(1e-6),
'epochs': 100,
'batch_size': 1024,
'validate_every': 5,
'early_stop': 5,
'max_seq_len': 100,
}
| 20.666667 | 35 | 0.510753 | 22 | 186 | 4 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112 | 0.327957 | 186 | 8 | 36 | 23.25 | 0.592 | 0 | 0 | 0 | 0 | 0 | 0.33871 | 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 | 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 | 2 |
0a83a3e97635ab6b0dd18ecdad0c663636dc325a | 654 | py | Python | cadt.py | azer0m/CADT | f46eaf140d6724976444ccfbc5092a185bc6eec5 | [
"MIT"
] | null | null | null | cadt.py | azer0m/CADT | f46eaf140d6724976444ccfbc5092a185bc6eec5 | [
"MIT"
] | null | null | null | cadt.py | azer0m/CADT | f46eaf140d6724976444ccfbc5092a185bc6eec5 | [
"MIT"
] | null | null | null | """
Author: Ahmed Malik
github: https://github.com/azer0m
"""
from cadtlib.fnxs import print_and_log
import os
from credentials import CANVAS_URL, ACCESS_TOKEN
from src.main import main
# Delete old output.log file
if os.path.isfile("output.log"):
print_and_log("Deleting old output.log file. . .")
# print("De... | 31.142857 | 68 | 0.711009 | 97 | 654 | 4.649485 | 0.484536 | 0.099778 | 0.079823 | 0.10643 | 0.203991 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001862 | 0.178899 | 654 | 21 | 69 | 31.142857 | 0.837989 | 0.282875 | 0 | 0 | 0 | 0 | 0.295652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0a908f560af14e95a0b4cccefcf63d8b3a9ba43c | 292 | py | Python | django_atlassian/admin.py | den-gts/django-atlassian | e1af49755e4a23cfed6d27de9a9967c1a8ce2af7 | [
"MIT"
] | 5 | 2019-01-21T07:56:15.000Z | 2020-11-16T03:32:29.000Z | django_atlassian/admin.py | deserat/django-atlassian | 5e54c4c0b1fbf64ce48f83776837fe959be1c253 | [
"MIT"
] | null | null | null | django_atlassian/admin.py | deserat/django-atlassian | 5e54c4c0b1fbf64ce48f83776837fe959be1c253 | [
"MIT"
] | 9 | 2019-09-19T14:28:25.000Z | 2021-12-15T06:32:46.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from django_atlassian.models.connect import SecurityContext
class SecurityContextAdmin(admin.ModelAdmin):
list_display = ['key']
admin.site.register(SecurityContext, SecurityContextAdmin)
| 26.545455 | 59 | 0.804795 | 32 | 292 | 7.125 | 0.71875 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.106164 | 292 | 10 | 60 | 29.2 | 0.869732 | 0.071918 | 0 | 0 | 0 | 0 | 0.011152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0a9544393aa09453289e27a3475c12a814ab0a77 | 1,570 | py | Python | bioblend/galaxy/config/__init__.py | abretaud/bioblend | e2407779207c60b4a1144c60421eac5f9095ce71 | [
"MIT"
] | null | null | null | bioblend/galaxy/config/__init__.py | abretaud/bioblend | e2407779207c60b4a1144c60421eac5f9095ce71 | [
"MIT"
] | null | null | null | bioblend/galaxy/config/__init__.py | abretaud/bioblend | e2407779207c60b4a1144c60421eac5f9095ce71 | [
"MIT"
] | null | null | null | """
Contains possible interaction dealing with Galaxy configuration.
"""
from bioblend.galaxy.client import Client
class ConfigClient(Client):
def __init__(self, galaxy_instance):
self.module = 'configuration'
super().__init__(galaxy_instance)
def get_config(self):
"""
Get a... | 30.192308 | 80 | 0.58535 | 171 | 1,570 | 5.122807 | 0.491228 | 0.079909 | 0.058219 | 0.038813 | 0.059361 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007346 | 0.306369 | 1,570 | 51 | 81 | 30.784314 | 0.797062 | 0.618471 | 0 | 0 | 0 | 0 | 0.057065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0a9657764b014ed45a3a15ea4a403f9b5b15cefb | 32,889 | py | Python | pysnmp-with-texts/HUAWEI-LI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HUAWEI-LI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HUAWEI-LI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HUAWEI-LI-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-LI-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:46:04 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 145.526549 | 2,955 | 0.78166 | 3,905 | 32,889 | 6.582843 | 0.118054 | 0.055551 | 0.097215 | 0.010737 | 0.481716 | 0.352914 | 0.299463 | 0.287754 | 0.254804 | 0.231852 | 0 | 0.062823 | 0.093496 | 32,889 | 225 | 2,956 | 146.173333 | 0.79939 | 0.00973 | 0 | 0.032558 | 0 | 0.097674 | 0.325522 | 0.03231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037209 | 0 | 0.055814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0a98531d9680abc2f898e237e4ac1f4a3d912d7b | 6,691 | py | Python | sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1 | 2021-09-16T02:33:52.000Z | 2021-09-16T02:33:52.000Z | sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2 | 2021-08-24T15:32:30.000Z | 2021-08-24T23:21:34.000Z | sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1 | 2016-04-19T22:15:47.000Z | 2016-04-19T22:15:47.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 56.70339 | 124 | 0.862651 | 466 | 6,691 | 11.935622 | 0.32618 | 0.152463 | 0.037397 | 0.046027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000162 | 0.080108 | 6,691 | 117 | 125 | 57.188034 | 0.903493 | 0.067553 | 0 | 0 | 0 | 0 | 0.256139 | 0.237201 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.490741 | 0 | 0.490741 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
0aa79d0b831f62e1ec79d031fff2b359c81f4bb7 | 688 | py | Python | ok_redirects/responses.py | LowerDeez/ok-redirects | 5eb317a8aeae70a4899a06c4eefa9a088f269a03 | [
"MIT"
] | 1 | 2021-01-04T08:58:09.000Z | 2021-01-04T08:58:09.000Z | ok_redirects/responses.py | LowerDeez/ok-redirects | 5eb317a8aeae70a4899a06c4eefa9a088f269a03 | [
"MIT"
] | null | null | null | ok_redirects/responses.py | LowerDeez/ok-redirects | 5eb317a8aeae70a4899a06c4eefa9a088f269a03 | [
"MIT"
] | null | null | null | from django.http.response import (
HttpResponseRedirectBase,
HttpResponseRedirect as HttpResponseTemporaryRedirect,
HttpResponsePermanentRedirect,
HttpResponseGone
)
__all__ = (
'HttpResponsePermanentRedirect',
'HttpResponseTemporaryRedirect',
'HttpResponseSeeOtherRedirect',
'HttpRespon... | 24.571429 | 68 | 0.805233 | 36 | 688 | 15.194444 | 0.583333 | 0.164534 | 0.186472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015177 | 0.138081 | 688 | 27 | 69 | 25.481481 | 0.907251 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.226744 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.35 | 0 | 0 | 0 | 1 | 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 | 2 |
0ab3784a91554a60e716ab973f33da220411b573 | 1,738 | py | Python | tests/validators/test_amino_acid_substitution.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | 1 | 2022-01-19T18:17:49.000Z | 2022-01-19T18:17:49.000Z | tests/validators/test_amino_acid_substitution.py | cancervariants/variation-normalization | 9c8fbab1562591ae9445d82ddd15df29f1ea1f5a | [
"MIT"
] | 99 | 2021-06-07T12:50:34.000Z | 2022-03-23T13:38:29.000Z | tests/validators/test_amino_acid_substitution.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | null | null | null | """Module for testing Amino Acid Substitution Validator."""
import unittest
from variation.validators import AminoAcidSubstitution
from variation.classifiers import AminoAcidSubstitutionClassifier
from .validator_base import ValidatorBase
from variation.tokenizers import GeneSymbol
from variation.tokenizers.caches impo... | 42.390244 | 75 | 0.750288 | 164 | 1,738 | 7.823171 | 0.402439 | 0.060795 | 0.049104 | 0.042089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001412 | 0.18527 | 1,738 | 40 | 76 | 43.45 | 0.904661 | 0.143268 | 0 | 0 | 0 | 0 | 0.015721 | 0.015721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.366667 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
0ac2571b4e3517d10a92d68b46e6f97b18f4b5e0 | 13,205 | py | Python | bindings/python/capstone/mips_const.py | joxeankoret/capstone | 367a4df66f6c8b9956b458180cb44249d9d120ac | [
"BSD-3-Clause"
] | 2 | 2020-01-05T11:23:50.000Z | 2021-07-07T10:08:53.000Z | bindings/python/capstone/mips_const.py | joxeankoret/capstone | 367a4df66f6c8b9956b458180cb44249d9d120ac | [
"BSD-3-Clause"
] | null | null | null | bindings/python/capstone/mips_const.py | joxeankoret/capstone | 367a4df66f6c8b9956b458180cb44249d9d120ac | [
"BSD-3-Clause"
] | null | null | null | # For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT [mips_const.py]
MIPS_OP_INVALID = 0
MIPS_OP_REG = 1
MIPS_OP_IMM = 2
MIPS_OP_MEM = 3
MIPS_REG_INVALID = 0
MIPS_REG_0 = 1
MIPS_REG_ZERO = MIPS_REG_0
MIPS_REG_1 = 1
MIPS_REG_AT = MIPS_REG_1
MIPS_REG_2 = 2
MIPS_REG_V0 = MIPS_REG_2
MIPS_REG_3 = 3
MIPS_REG_V1 = MIPS_R... | 20.346687 | 71 | 0.803635 | 2,771 | 13,205 | 3.297726 | 0.367016 | 0.350077 | 0.005253 | 0.002845 | 0.018385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167466 | 0.147141 | 13,205 | 648 | 72 | 20.378086 | 0.643935 | 0.005225 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ac4c8d8b14a27117811ace25269df80cfaeab50 | 8,638 | py | Python | sdk/python/pulumi_sakuracloud/__init__.py | sacloud/pulumi-sakuracloud | 3eff14c6ec8ef4ad6422e0cdf15585df67eb4d6e | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2019-12-07T07:46:05.000Z | 2020-12-19T02:41:42.000Z | sdk/python/pulumi_sakuracloud/__init__.py | sacloud/pulumi-sakuracloud | 3eff14c6ec8ef4ad6422e0cdf15585df67eb4d6e | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-09-11T04:41:06.000Z | 2021-10-19T07:50:34.000Z | sdk/python/pulumi_sakuracloud/__init__.py | sacloud/pulumi-sakuracloud | 3eff14c6ec8ef4ad6422e0cdf15585df67eb4d6e | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-09-08T05:38:16.000Z | 2021-06-24T01:32:47.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from . import _utilities
import typing
# Export this package's modules as members:
from .archive import *
from .archive_share import *
... | 21.758186 | 88 | 0.658486 | 876 | 8,638 | 6.355023 | 0.157534 | 0.122148 | 0.136519 | 0.146219 | 0.285791 | 0.285791 | 0 | 0 | 0 | 0 | 0 | 0.000832 | 0.165432 | 8,638 | 396 | 89 | 21.813131 | 0.771397 | 0.028595 | 0 | 0.291237 | 1 | 0 | 0.747645 | 0.315206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.188144 | 0 | 0.188144 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ac5ba142143b09e95ba6329f681a525d7d37b2e | 222 | py | Python | Python/Mundo 1/ex007.py | henrique-tavares/Coisas | f740518b1bedec5b0ea8c12ae07a2cac21eb51ae | [
"MIT"
] | 1 | 2020-02-07T20:39:26.000Z | 2020-02-07T20:39:26.000Z | Python/Mundo 1/ex007.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | Python/Mundo 1/ex007.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | n1 = float(input("Digite um número: "))
n2 = float(input("Digite outro: "))
if (n1.is_integer()): n1 = int(n1)
if (n2.is_integer()): n2 = int(n2)
print("A média entre {} e {} é igual a {:.2f}.".format(n1, n2, (n1+n2)/2)) | 31.714286 | 74 | 0.594595 | 40 | 222 | 3.25 | 0.55 | 0.153846 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 0.153153 | 222 | 7 | 74 | 31.714286 | 0.617021 | 0 | 0 | 0 | 0 | 0 | 0.318386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
0ad6e2f1d721077a6ceb957e9497449583b318e2 | 547 | py | Python | src/core/qr_decoder.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | 2 | 2022-03-05T18:54:15.000Z | 2022-03-24T12:19:22.000Z | src/core/qr_decoder.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | null | null | null | src/core/qr_decoder.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | null | null | null | # Created by Kelvin_Clark on 3/22/22, 5:31 PM
from typing import List, IO, Union
from PIL import Image
from pyzbar.pyzbar import Decoded, decode
from werkzeug.datastructures import FileStorage
def decode_qr_code(image: Union[str, IO[bytes], FileStorage]) -> List[Decoded]:
"""
Decodes a qr code image given it... | 34.1875 | 80 | 0.722121 | 87 | 547 | 4.505747 | 0.517241 | 0.045918 | 0.056122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017897 | 0.182815 | 547 | 15 | 81 | 36.466667 | 0.85906 | 0.457038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.666667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0ad7200a00c2773af739212907ce5cd9fd398dd3 | 1,120 | py | Python | deepsalience/old_experiments/multif0_exper8_2.py | gargrohin/ismir2017-deepsalience | b25e758c04f2313159094c7d29eeabef0665b5bf | [
"MIT"
] | 67 | 2017-07-16T01:14:45.000Z | 2022-03-04T15:29:48.000Z | deepsalience/old_experiments/multif0_exper8_2.py | gargrohin/ismir2017-deepsalience | b25e758c04f2313159094c7d29eeabef0665b5bf | [
"MIT"
] | 1 | 2017-08-26T12:45:25.000Z | 2018-09-14T14:51:13.000Z | deepsalience/old_experiments/multif0_exper8_2.py | gargrohin/ismir2017-deepsalience | b25e758c04f2313159094c7d29eeabef0665b5bf | [
"MIT"
] | 18 | 2017-07-18T05:17:10.000Z | 2022-01-13T13:27:19.000Z | from __future__ import print_function
import keras
from keras.models import Model
from keras.layers import Dense, Input, Reshape, Lambda
from keras.layers.convolutional import Conv2D
from keras import backend as K
import os
import experiment
def main():
save_key = os.path.basename(__file__).split('.')[0]
#... | 32.941176 | 86 | 0.669643 | 155 | 1,120 | 4.703226 | 0.419355 | 0.090535 | 0.17284 | 0.171468 | 0.233196 | 0.233196 | 0.192044 | 0.106996 | 0.106996 | 0 | 0 | 0.053079 | 0.158929 | 1,120 | 33 | 87 | 33.939394 | 0.720807 | 0.010714 | 0 | 0 | 0 | 0 | 0.095455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.391304 | 0.043478 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
0ad889e8c9adcb05742a43af0edc4ae6c4250978 | 331 | py | Python | alexa/PyEcho/TaskDeleteTest.py | peterhajas/control | 13a7eba287fc37f32ce1e99b8188ef4adb7b8441 | [
"BSD-2-Clause"
] | 2 | 2015-11-17T13:32:25.000Z | 2019-10-22T14:35:45.000Z | alexa/PyEcho/TaskDeleteTest.py | peterhajas/control | 13a7eba287fc37f32ce1e99b8188ef4adb7b8441 | [
"BSD-2-Clause"
] | null | null | null | alexa/PyEcho/TaskDeleteTest.py | peterhajas/control | 13a7eba287fc37f32ce1e99b8188ef4adb7b8441 | [
"BSD-2-Clause"
] | null | null | null | # A test script for PyEcho
# By Scott Vanderlind, December 31 2014
import PyEcho, getpass
email = raw_input("Email: ")
password = getpass.getpass()
echo = PyEcho.PyEcho(email, password)
if echo:
tasks = echo.tasks()
print tasks
for task in tasks:
res = echo.deleteTask(task)
print res
print... | 18.388889 | 39 | 0.679758 | 46 | 331 | 4.869565 | 0.565217 | 0.116071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.229607 | 331 | 17 | 40 | 19.470588 | 0.854902 | 0.187311 | 0 | 0 | 0 | 0 | 0.026415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.272727 | 0.090909 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0ad94c0fdc116c67eb4cbfdaab0d3d74aff18e4d | 243 | py | Python | setup.py | pnode-dev/pnode | be42bce4b2e904525c11bcaa952c269e4c8ad45c | [
"MIT"
] | 1 | 2022-03-14T21:18:21.000Z | 2022-03-14T21:18:21.000Z | setup.py | pnode-dev/pnode | be42bce4b2e904525c11bcaa952c269e4c8ad45c | [
"MIT"
] | null | null | null | setup.py | pnode-dev/pnode | be42bce4b2e904525c11bcaa952c269e4c8ad45c | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="pnode",
version="0.0.1",
description="PNODE",
url="",
packages=['pnode'],
install_requires=['torch>=0.4.1'],
classifiers=(
"Programming Language :: Python :: 3"),)
| 20.25 | 48 | 0.588477 | 26 | 243 | 5.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0.218107 | 243 | 11 | 49 | 22.090909 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0.27572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ae03e9166bd82ffb138e5567aac9b2619d7e28d | 432 | py | Python | tests/tests/travis_settings.py | darkslab/django-optimistic-lock | 9438f12fdaeef0bff3f3ccc74ab73bf54acdc9a0 | [
"BSD-2-Clause"
] | 81 | 2015-02-02T10:21:02.000Z | 2022-01-06T05:32:05.000Z | tests/tests/travis_settings.py | darkslab/django-optimistic-lock | 9438f12fdaeef0bff3f3ccc74ab73bf54acdc9a0 | [
"BSD-2-Clause"
] | 8 | 2015-01-14T17:32:11.000Z | 2020-12-08T09:40:17.000Z | tests/tests/travis_settings.py | darkslab/django-optimistic-lock | 9438f12fdaeef0bff3f3ccc74ab73bf54acdc9a0 | [
"BSD-2-Clause"
] | 19 | 2015-02-02T10:22:09.000Z | 2021-11-15T10:15:29.000Z | from __future__ import absolute_import
import os
from tests.settings import *
if os.environ['DB'] == 'sqlite':
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '',
}
}
else:
DATABASES = {
'default': {
'ENGINE': 'django.d... | 20.571429 | 63 | 0.506944 | 38 | 432 | 5.578947 | 0.657895 | 0.150943 | 0.207547 | 0.264151 | 0.358491 | 0.358491 | 0 | 0 | 0 | 0 | 0 | 0.007067 | 0.344907 | 432 | 20 | 64 | 21.6 | 0.742049 | 0 | 0 | 0.222222 | 0 | 0 | 0.291667 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.