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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d242ed9d3520b1a1062f3207cee3beda75ae982b | 1,039 | py | Python | printapp/migrations/0002_auto_20180217_1917.py | sumanlearning/potpapa2018 | 1557dd5aca645cb55a08e5b92623804e51fa8dfe | [
"Unlicense"
] | null | null | null | printapp/migrations/0002_auto_20180217_1917.py | sumanlearning/potpapa2018 | 1557dd5aca645cb55a08e5b92623804e51fa8dfe | [
"Unlicense"
] | null | null | null | printapp/migrations/0002_auto_20180217_1917.py | sumanlearning/potpapa2018 | 1557dd5aca645cb55a08e5b92623804e51fa8dfe | [
"Unlicense"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-17 12:17
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('printapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='historybayar',
name=... | 29.685714 | 107 | 0.599615 | 105 | 1,039 | 5.790476 | 0.552381 | 0.131579 | 0.164474 | 0.190789 | 0.131579 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.283927 | 1,039 | 34 | 108 | 30.558824 | 0.784946 | 0.043311 | 0 | 0.357143 | 1 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0.035714 | 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 |
d24abb7e1be3b51950c14587cbae8b44aa330b06 | 5,676 | py | Python | h/security/predicates.py | hypothesis/h | 92c1a326c305a3d94fe48f87402135fd7beb6a20 | [
"BSD-2-Clause"
] | 2,103 | 2015-01-07T12:47:49.000Z | 2022-03-29T02:38:25.000Z | h/security/predicates.py | hypothesis/h | 92c1a326c305a3d94fe48f87402135fd7beb6a20 | [
"BSD-2-Clause"
] | 4,322 | 2015-01-04T17:18:01.000Z | 2022-03-31T17:06:02.000Z | h/security/predicates.py | hypothesis/h | 92c1a326c305a3d94fe48f87402135fd7beb6a20 | [
"BSD-2-Clause"
] | 389 | 2015-01-24T04:10:02.000Z | 2022-03-28T08:00:16.000Z | """
Define authorization predicates.
These are functions which accept an `Identity` object and a context object and
return a truthy value. These represent building blocks of our permission map
which define when people do, or don't have permissions.
For example a predicate might define "group_created_by_user" which is... | 27.687805 | 88 | 0.767442 | 730 | 5,676 | 5.787671 | 0.234247 | 0.085207 | 0.109349 | 0.066272 | 0.387456 | 0.284497 | 0.187456 | 0.106982 | 0 | 0 | 0 | 0 | 0.158562 | 5,676 | 204 | 89 | 27.823529 | 0.884631 | 0.263742 | 0 | 0.159574 | 0 | 0 | 0.011713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.308511 | false | 0 | 0.021277 | 0.244681 | 0.62766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d25d20d8eebe1fa8e5a33aad978f268f206cda23 | 602 | py | Python | xmrswap/interface_part.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-09-21T17:33:23.000Z | 2020-10-03T08:54:01.000Z | xmrswap/interface_part.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-10-03T09:18:48.000Z | 2020-10-13T19:58:34.000Z | xmrswap/interface_part.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2020 tecnovert
# Distributed under the MIT software license, see the accompanying
# file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php.
from .contrib.test_framework.messages import (
CTxOutPart,
)
from .interface_btc import BTCInte... | 22.296296 | 73 | 0.704319 | 70 | 602 | 5.928571 | 0.742857 | 0.079518 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016632 | 0.200997 | 602 | 26 | 74 | 23.153846 | 0.846154 | 0.345515 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010283 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d2657376a64e94e969ed1edf71ca0efd3af9b3de | 2,046 | py | Python | pytrek/settings/LimitsSettings.py | hasii2011/PyArcadeStarTrek | 370edbb62f15f69322aa7f109d6d36ebf20cbe4a | [
"MIT"
] | 1 | 2021-06-13T00:56:24.000Z | 2021-06-13T00:56:24.000Z | pytrek/settings/LimitsSettings.py | hasii2011/PyArcadeStarTrek | 370edbb62f15f69322aa7f109d6d36ebf20cbe4a | [
"MIT"
] | 94 | 2021-04-16T20:34:10.000Z | 2022-01-13T19:58:20.000Z | pytrek/settings/LimitsSettings.py | hasii2011/PyArcadeStarTrek | 370edbb62f15f69322aa7f109d6d36ebf20cbe4a | [
"MIT"
] | null | null | null |
from logging import Logger
from logging import getLogger
from pytrek.settings.BaseSubSetting import BaseSubSetting
from pytrek.settings.SettingsCommon import SettingsCommon
from pytrek.settings.SettingsCommon import SettingsNameValues
class LimitsSettings(BaseSubSetting):
LIMITS_SECTION: str = 'Limits'
MA... | 33.540984 | 133 | 0.729717 | 208 | 2,046 | 6.923077 | 0.274038 | 0.05 | 0.1125 | 0.059028 | 0.338194 | 0.257639 | 0.257639 | 0.257639 | 0.257639 | 0.257639 | 0 | 0.005418 | 0.188172 | 2,046 | 60 | 134 | 34.1 | 0.861529 | 0 | 0 | 0.125 | 0 | 0 | 0.050127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
d26eb1d2c5907c778452828f508b0d406c3d409a | 605 | py | Python | conduit_tests/fixtu.py | ArtuZi2/conduit | 804fc2b69dda7e244fc91025eb30ad1847b81f6a | [
"MIT"
] | null | null | null | conduit_tests/fixtu.py | ArtuZi2/conduit | 804fc2b69dda7e244fc91025eb30ad1847b81f6a | [
"MIT"
] | null | null | null | conduit_tests/fixtu.py | ArtuZi2/conduit | 804fc2b69dda7e244fc91025eb30ad1847b81f6a | [
"MIT"
] | null | null | null | import time
import pytest
# preparing selenium and chrome web driver manager
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
# importing os for environmental variable, and docker-compose up
import os
@pytest.fixture(scope=... | 28.809524 | 79 | 0.77686 | 71 | 605 | 6.577465 | 0.549296 | 0.051392 | 0.077088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00759 | 0.128926 | 605 | 20 | 80 | 30.25 | 0.878558 | 0.183471 | 0 | 0 | 0 | 0 | 0.10387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d276c726608d0b175c4c5a4e294d5b6baeab2166 | 377 | py | Python | templates/django/__APPNAME__/apps/utils/models.py | ba1dr/tplgenerator | f05b6f9a32cf825d326dd2faf551d1e156d2df37 | [
"MIT"
] | null | null | null | templates/django/__APPNAME__/apps/utils/models.py | ba1dr/tplgenerator | f05b6f9a32cf825d326dd2faf551d1e156d2df37 | [
"MIT"
] | null | null | null | templates/django/__APPNAME__/apps/utils/models.py | ba1dr/tplgenerator | f05b6f9a32cf825d326dd2faf551d1e156d2df37 | [
"MIT"
] | null | null | null |
from django.db import models
from django.core import signing
class PasswordMixin(object):
password_encrypted = models.CharField(max_length=128, null=False, blank=False)
@property
def password(self):
return signing.loads(self.password_encrypted)
@password.setter
def password(self, value)... | 23.5625 | 82 | 0.732095 | 46 | 377 | 5.913043 | 0.586957 | 0.1875 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.180371 | 377 | 15 | 83 | 25.133333 | 0.87055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.7 | 0.2 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
d27bf22d6bf897be8eacbdeb8156e0811b013b5d | 3,497 | py | Python | stressTest/stressTestPV.py | bhill-slac/epics-stress-tests | bf895cdf84e3ef16819204fbf49f2dd54c9473fb | [
"BSD-3-Clause-LBNL"
] | null | null | null | stressTest/stressTestPV.py | bhill-slac/epics-stress-tests | bf895cdf84e3ef16819204fbf49f2dd54c9473fb | [
"BSD-3-Clause-LBNL"
] | null | null | null | stressTest/stressTestPV.py | bhill-slac/epics-stress-tests | bf895cdf84e3ef16819204fbf49f2dd54c9473fb | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python3
class stressTestPV:
def __init__( self, pvName ):
self._pvName = pvName
self._tsValues = {} # Dict of collected values, keys are float timestamps
self._tsRates = {} # Dict of collection rates, keys are int secPastEpoch values
self._tsMissR... | 38.01087 | 98 | 0.543323 | 336 | 3,497 | 5.529762 | 0.282738 | 0.053821 | 0.067815 | 0.02422 | 0.114639 | 0.083423 | 0.059742 | 0 | 0 | 0 | 0 | 0.00887 | 0.387475 | 3,497 | 91 | 99 | 38.428571 | 0.858543 | 0.174721 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.186667 | false | 0 | 0 | 0.133333 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d282949426f3fae8441528c5a9f321ae9b759d68 | 324 | py | Python | transformers/transformers/data/processors/split_sentences.py | richardbaihe/segatron_aaai | 1739b667f2bee53541f00d227da8375543fe5f11 | [
"MIT"
] | 16 | 2020-12-22T07:35:20.000Z | 2022-02-09T19:49:02.000Z | transformers/transformers/data/processors/split_sentences.py | richardbaihe/segatron_aaai | 1739b667f2bee53541f00d227da8375543fe5f11 | [
"MIT"
] | 1 | 2021-12-21T14:33:15.000Z | 2021-12-27T20:40:39.000Z | transformers/transformers/data/processors/split_sentences.py | richardbaihe/segatron_aaai | 1739b667f2bee53541f00d227da8375543fe5f11 | [
"MIT"
] | 2 | 2020-12-22T08:46:01.000Z | 2021-01-09T14:50:12.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Time : 2020-04-13 21:19
# @Author : Richard Bai
# @EMail : he.bai@uwaterloo.ca
import nltk
import os
import json
def sentence_split(line):
sents = nltk.tokenize.sent_tokenize(line)
rnt = [sent.split() for sent in sents]
return rn... | 19.058824 | 49 | 0.608025 | 46 | 324 | 4.23913 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058333 | 0.259259 | 324 | 16 | 50 | 20.25 | 0.754167 | 0.410494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
96346b689665119bb71187a849bd5ed61453fc88 | 23,288 | py | Python | hkdataminer/utils/plot_.py | stephenliu1989/HK_DataMiner | 312d8244d33337971d81305ec7a9986427c669d9 | [
"Apache-2.0"
] | 3 | 2020-06-12T21:25:05.000Z | 2021-03-02T09:38:24.000Z | hkdataminer/utils/plot_.py | stephenliu1989/HK_DataMiner | 312d8244d33337971d81305ec7a9986427c669d9 | [
"Apache-2.0"
] | 1 | 2018-01-30T09:52:01.000Z | 2018-01-30T09:52:01.000Z | hkdataminer/utils/plot_.py | stephenliu1989/HK_DataMiner | 312d8244d33337971d81305ec7a9986427c669d9 | [
"Apache-2.0"
] | 1 | 2021-01-16T13:07:50.000Z | 2021-01-16T13:07:50.000Z | __author__ = 'stephen'
import numpy as np
import scipy.io
import scipy.sparse
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
import matplotlib.pylab as pylab
from .utils import get_subindices
import matplotlib.ticker as mtick
from collections import Counter
from s... | 38.556291 | 209 | 0.591635 | 3,425 | 23,288 | 3.905985 | 0.091095 | 0.009568 | 0.009643 | 0.00897 | 0.753476 | 0.729257 | 0.691135 | 0.649275 | 0.616759 | 0.607565 | 0 | 0.055339 | 0.238793 | 23,288 | 603 | 210 | 38.620232 | 0.699329 | 0.259318 | 0 | 0.588542 | 0 | 0 | 0.071953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033854 | false | 0 | 0.033854 | 0 | 0.067708 | 0.078125 | 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 |
963c73799bbdb00fb97205577d7028cae7121d80 | 1,535 | py | Python | tests/conftest.py | banteg/lido-vault | 702fa9c58a26c01c61b24489d18ea099e22e8b09 | [
"MIT"
] | 22 | 2020-12-19T10:07:38.000Z | 2022-01-03T03:28:08.000Z | tests/conftest.py | banteg/lido-vault | 702fa9c58a26c01c61b24489d18ea099e22e8b09 | [
"MIT"
] | 1 | 2020-12-23T22:32:42.000Z | 2020-12-23T22:35:56.000Z | tests/conftest.py | banteg/lido-vault | 702fa9c58a26c01c61b24489d18ea099e22e8b09 | [
"MIT"
] | 1 | 2020-12-21T08:45:07.000Z | 2020-12-21T08:45:07.000Z | import pytest
from brownie import Wei
@pytest.fixture(scope="function", autouse=True)
def shared_setup(fn_isolation):
pass
@pytest.fixture(scope='module')
def nocoiner(accounts, lido):
assert lido.balanceOf(accounts[9]) == 0
return accounts[9]
@pytest.fixture(scope='module')
def ape(accounts):
ret... | 25.583333 | 84 | 0.721173 | 190 | 1,535 | 5.663158 | 0.373684 | 0.084572 | 0.100372 | 0.111524 | 0.125465 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026336 | 0.158958 | 1,535 | 59 | 85 | 26.016949 | 0.807126 | 0 | 0 | 0.195122 | 0 | 0 | 0.069707 | 0.027362 | 0 | 0 | 0.027362 | 0 | 0.097561 | 1 | 0.243902 | false | 0.02439 | 0.04878 | 0.121951 | 0.487805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
9640feccc968d6a78b76b7178f48a08b2309b36c | 5,459 | py | Python | builder/action.py | nagisc007/storybuilder | 54b28934de8acedbe35930ce27e12a7e75f91be0 | [
"MIT"
] | null | null | null | builder/action.py | nagisc007/storybuilder | 54b28934de8acedbe35930ce27e12a7e75f91be0 | [
"MIT"
] | 176 | 2019-03-07T13:31:26.000Z | 2019-11-02T12:38:23.000Z | builder/action.py | nagisc007/storybuilder | 54b28934de8acedbe35930ce27e12a7e75f91be0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Define action class.
"""
from enum import Enum
from . import assertion
from .basedata import BaseData
from .description import Description, NoDesc, DescType
from .flag import Flag, NoFlag, NoDeflag
from .basesubject import NoSubject
from .person import Person
from .chara import Chara
from .wh... | 28.432292 | 87 | 0.605972 | 645 | 5,459 | 4.948837 | 0.186047 | 0.072055 | 0.048246 | 0.021617 | 0.152882 | 0.127193 | 0.050752 | 0.050752 | 0.050752 | 0 | 0 | 0.001284 | 0.286683 | 5,459 | 191 | 88 | 28.581152 | 0.818439 | 0.03627 | 0 | 0.236111 | 0 | 0 | 0.023372 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.194444 | false | 0 | 0.0625 | 0.104167 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
964481acbba226d6bc1f722acc9bd0960d9cebe5 | 936 | py | Python | Lesson3/coefficient_of_determination2.py | rmhyman/DataScience | c839c97c76f104ab298563a5c8b48f6d90be5f60 | [
"MIT"
] | 1 | 2015-09-17T18:49:09.000Z | 2015-09-17T18:49:09.000Z | Lesson3/coefficient_of_determination2.py | rmhyman/DataScience | c839c97c76f104ab298563a5c8b48f6d90be5f60 | [
"MIT"
] | null | null | null | Lesson3/coefficient_of_determination2.py | rmhyman/DataScience | c839c97c76f104ab298563a5c8b48f6d90be5f60 | [
"MIT"
] | null | null | null | import numpy as np
import scipy
import matplotlib.pyplot as plt
import sys
def compute_r_squared(data, predictions):
'''
In exercise 5, we calculated the R^2 value for you. But why don't you try and
and calculate the R^2 value yourself.
Given a list of original data points, and also a li... | 36 | 89 | 0.679487 | 142 | 936 | 4.450704 | 0.5 | 0.037975 | 0.015823 | 0.031646 | 0.212025 | 0.148734 | 0.148734 | 0.148734 | 0.148734 | 0 | 0 | 0.009682 | 0.227564 | 936 | 26 | 90 | 36 | 0.864454 | 0.602564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | 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 |
964683b856f9816db2cfc1191cef1b460b9b0c10 | 2,030 | py | Python | logsight/result/template.py | aiops/logsight-sdk-py | 35fd9f99eb03472dee7ae6a1639502b7ea0c485e | [
"MIT"
] | 1 | 2021-10-02T09:29:10.000Z | 2021-10-02T09:29:10.000Z | logsight/result/template.py | aiops/logsight-sdk-py | 35fd9f99eb03472dee7ae6a1639502b7ea0c485e | [
"MIT"
] | null | null | null | logsight/result/template.py | aiops/logsight-sdk-py | 35fd9f99eb03472dee7ae6a1639502b7ea0c485e | [
"MIT"
] | null | null | null |
class Template:
def __init__(self, data):
"""Class representing log templates.
Note:
Timestamps are represented in ISO format with timezone information.
e.g, 2021-10-07T13:18:09.178477+02:00.
"""
self._timestamp = data.get("@timestamp", None)
self.... | 25.375 | 79 | 0.567488 | 231 | 2,030 | 4.809524 | 0.34632 | 0.050405 | 0.029703 | 0.041404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037815 | 0.296552 | 2,030 | 79 | 80 | 25.696203 | 0.740196 | 0.348276 | 0 | 0.222222 | 0 | 0 | 0.063465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.027778 | 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 |
964933bf3abeb9eecd5bbbd430d2ba1f1f9daec5 | 142 | py | Python | Python practice/Mit opencourceware(2.7)/quiz1_p2.py | chiranjeevbitp/Python27new | d366efee57857402bae16cabf1df94c657490750 | [
"bzip2-1.0.6"
] | null | null | null | Python practice/Mit opencourceware(2.7)/quiz1_p2.py | chiranjeevbitp/Python27new | d366efee57857402bae16cabf1df94c657490750 | [
"bzip2-1.0.6"
] | null | null | null | Python practice/Mit opencourceware(2.7)/quiz1_p2.py | chiranjeevbitp/Python27new | d366efee57857402bae16cabf1df94c657490750 | [
"bzip2-1.0.6"
] | null | null | null | #import pdb
T = (0.1, 0.1)
x = 0.0
for i in range(len(T)):
for j in T:
x += i + j
print x
print i
#pdb.set_trace()
| 14.2 | 24 | 0.464789 | 30 | 142 | 2.166667 | 0.5 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.380282 | 142 | 9 | 25 | 15.777778 | 0.670455 | 0.176056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
964d60906285ddfcdeb808da94455db7bd3067ea | 5,998 | py | Python | meAdota/settings.py | guipeeix7/website | 4081899060e69688314a5577ceab5c7b840e7b7f | [
"MIT"
] | 6 | 2020-10-19T23:13:07.000Z | 2020-12-02T19:08:32.000Z | meAdota/settings.py | guipeeix7/website | 4081899060e69688314a5577ceab5c7b840e7b7f | [
"MIT"
] | 69 | 2020-10-23T03:52:47.000Z | 2020-12-04T01:12:49.000Z | meAdota/settings.py | guipeeix7/website | 4081899060e69688314a5577ceab5c7b840e7b7f | [
"MIT"
] | 1 | 2020-12-08T22:10:08.000Z | 2020-12-08T22:10:08.000Z | """
Django settings for meAdota project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | 27.140271 | 91 | 0.672391 | 636 | 5,998 | 6.183962 | 0.386792 | 0.056191 | 0.034579 | 0.044495 | 0.107551 | 0.107551 | 0.067887 | 0.067887 | 0.030511 | 0 | 0 | 0.007218 | 0.191564 | 5,998 | 220 | 92 | 27.263636 | 0.803877 | 0.207069 | 0 | 0.034014 | 1 | 0 | 0.507725 | 0.340529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068027 | 0.020408 | 0 | 0.020408 | 0 | 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 |
966233a14411c83da996b856512cb5f8c21c76c2 | 277 | py | Python | teachers/views.py | xuhairmeer/school-management | 36394c841a61e46bc00e1dc21bcfcdd5fa6f6918 | [
"bzip2-1.0.6"
] | null | null | null | teachers/views.py | xuhairmeer/school-management | 36394c841a61e46bc00e1dc21bcfcdd5fa6f6918 | [
"bzip2-1.0.6"
] | 9 | 2021-03-19T08:15:07.000Z | 2022-03-12T00:13:19.000Z | teachers/views.py | muhammadzuhair95/school-management | 36394c841a61e46bc00e1dc21bcfcdd5fa6f6918 | [
"bzip2-1.0.6"
] | null | null | null | # Create your views here.
from django.urls import reverse_lazy
from django.views import generic
from forms.forms import UserCreateForm
class SignUp(generic.CreateView):
form_class = UserCreateForm
success_url = reverse_lazy('home')
template_name = 'signup.html'
| 23.083333 | 38 | 0.776173 | 36 | 277 | 5.833333 | 0.638889 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155235 | 277 | 11 | 39 | 25.181818 | 0.897436 | 0.083032 | 0 | 0 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 |
966403bf90394bfb6b137e41500328a65675b400 | 822 | py | Python | zeromq/test/manifest.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | zeromq/test/manifest.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | zeromq/test/manifest.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | import os
import os.path
from datetime import datetime
import time
from stat import *
import pathlib
import json
def generateFileManifest(filename, manifest_filename=None):
string = ""
data = {}
if os.path.isfile(filename):
f = pathlib.Path(filename)
data[os.path.abspath(filename)] = {
... | 26.516129 | 102 | 0.611922 | 97 | 822 | 5.072165 | 0.391753 | 0.04065 | 0.056911 | 0.04065 | 0.126016 | 0.126016 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26399 | 822 | 30 | 103 | 27.4 | 0.813223 | 0 | 0 | 0 | 1 | 0 | 0.045012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.391304 | 0.043478 | 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 |
966a5cfd248281b2c96521b02313c0a59ac99d4a | 625 | py | Python | mutational_landscape/migrations/0003_auto_20220225_1650.py | protwis/Protwis | fdcad0a2790721b02c0d12d8de754313714c575e | [
"Apache-2.0"
] | null | null | null | mutational_landscape/migrations/0003_auto_20220225_1650.py | protwis/Protwis | fdcad0a2790721b02c0d12d8de754313714c575e | [
"Apache-2.0"
] | null | null | null | mutational_landscape/migrations/0003_auto_20220225_1650.py | protwis/Protwis | fdcad0a2790721b02c0d12d8de754313714c575e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.1 on 2022-02-25 15:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mutational_landscape', '0002_auto_20180117_1457'),
]
operations = [
migrations.RemoveField(
model_name='diseasemutations',
n... | 22.321429 | 60 | 0.5712 | 51 | 625 | 6.882353 | 0.647059 | 0.17094 | 0.148148 | 0.17094 | 0.2849 | 0.2849 | 0 | 0 | 0 | 0 | 0 | 0.07346 | 0.3248 | 625 | 27 | 61 | 23.148148 | 0.758294 | 0.072 | 0 | 0.47619 | 1 | 0 | 0.207612 | 0.039792 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
9683761b0e8ad668daa9ae8b7d5e998f46a35736 | 9,609 | py | Python | 2020/8/input.py | sishtiaq/aoc | 1c200ebed048bbd8ad6a684aaef8921d826f3d1b | [
"Apache-2.0"
] | null | null | null | 2020/8/input.py | sishtiaq/aoc | 1c200ebed048bbd8ad6a684aaef8921d826f3d1b | [
"Apache-2.0"
] | null | null | null | 2020/8/input.py | sishtiaq/aoc | 1c200ebed048bbd8ad6a684aaef8921d826f3d1b | [
"Apache-2.0"
] | null | null | null | test = [
'nop +0',
'acc +1',
'jmp +4',
'acc +3',
'jmp -3',
'acc -99',
'acc +1',
'jmp -4',
'acc +6',
]
actual = [
'acc +17',
'acc +37',
'acc -13',
'jmp +173',
'nop +100',
'acc -7',
'jmp +447',
'nop +283',
'acc +41',
'acc +32',
'jmp +1',... | 15.037559 | 15 | 0.338329 | 1,270 | 9,609 | 2.559843 | 0.18189 | 0.020917 | 0.022147 | 0.004922 | 0.042756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231141 | 0.397128 | 9,609 | 638 | 16 | 15.061129 | 0.330054 | 0 | 0 | 0.637363 | 0 | 0 | 0.469248 | 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 |
968a0ed358f9602c37b149e837fd6e25f4d5114f | 4,492 | py | Python | capnpy/segment/builder.py | GambitResearch/capnpy | 3b8d9ed0623e160f69dee07ec2fc6303683c2a3c | [
"MIT"
] | 45 | 2016-10-28T10:16:07.000Z | 2022-03-06T20:16:57.000Z | capnpy/segment/builder.py | GambitResearch/capnpy | 3b8d9ed0623e160f69dee07ec2fc6303683c2a3c | [
"MIT"
] | 42 | 2016-12-20T18:10:53.000Z | 2021-09-08T12:29:04.000Z | capnpy/segment/builder.py | GambitResearch/capnpy | 3b8d9ed0623e160f69dee07ec2fc6303683c2a3c | [
"MIT"
] | 21 | 2017-02-28T06:39:15.000Z | 2021-09-07T05:30:46.000Z | import struct
from six import binary_type
from capnpy import ptr
from capnpy.packing import mychr
from capnpy.printer import print_buffer
class SegmentBuilder(object):
def __init__(self, length=None):
self.buf = bytearray()
def get_length(self):
return len(self.buf)
def as_string(self):... | 33.274074 | 86 | 0.629564 | 663 | 4,492 | 4.075415 | 0.21267 | 0.048853 | 0.062176 | 0.065137 | 0.373427 | 0.351221 | 0.301999 | 0.287195 | 0.245744 | 0.197631 | 0 | 0.013927 | 0.264693 | 4,492 | 134 | 87 | 33.522388 | 0.804117 | 0.133348 | 0 | 0.091954 | 0 | 0 | 0.011637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.298851 | false | 0 | 0.08046 | 0.057471 | 0.528736 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
96935625868f5df6499326134d54ac7ad8bc8a3f | 1,172 | py | Python | samcli/cli/main.py | langn/aws-sam-cli | 160d87ff3c07f092315e1ac71ddc00257fde011b | [
"Apache-2.0"
] | null | null | null | samcli/cli/main.py | langn/aws-sam-cli | 160d87ff3c07f092315e1ac71ddc00257fde011b | [
"Apache-2.0"
] | 1 | 2018-05-23T19:51:18.000Z | 2018-05-23T19:51:18.000Z | samcli/cli/main.py | langn/aws-sam-cli | 160d87ff3c07f092315e1ac71ddc00257fde011b | [
"Apache-2.0"
] | null | null | null | """
Entry point for the CLI
"""
import logging
import click
from samcli import __version__
from .options import debug_option
from .context import Context
from .command import BaseCommand
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s', datefmt='%Y-%m-%d %... | 26.636364 | 116 | 0.740614 | 161 | 1,172 | 5.254658 | 0.559006 | 0.099291 | 0.092199 | 0.068558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168089 | 1,172 | 43 | 117 | 27.255814 | 0.867692 | 0.457338 | 0 | 0 | 0 | 0 | 0.081882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
9699da91536be3b5f7938a488f2471ecc9d269c7 | 1,318 | py | Python | app/web/obtain_url.py | gpp0725/EchoProxy | 0273f47397b76fa0292db267d99eeb9dccc4e869 | [
"Apache-2.0"
] | null | null | null | app/web/obtain_url.py | gpp0725/EchoProxy | 0273f47397b76fa0292db267d99eeb9dccc4e869 | [
"Apache-2.0"
] | null | null | null | app/web/obtain_url.py | gpp0725/EchoProxy | 0273f47397b76fa0292db267d99eeb9dccc4e869 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/3/4 0004 2:09
# @Author : Gpp
# @File : obtain_url.py
from app.web import api
from flask_restful import Resource
from flask import make_response, send_from_directory, jsonify
from app.helper.encrypt import two_encrypting
from app.crud.proxy_crud i... | 33.794872 | 113 | 0.707132 | 167 | 1,318 | 5.335329 | 0.42515 | 0.089787 | 0.058361 | 0.057239 | 0.287318 | 0.222222 | 0.222222 | 0.143659 | 0.143659 | 0.143659 | 0 | 0.013023 | 0.18437 | 1,318 | 38 | 114 | 34.684211 | 0.815814 | 0.322458 | 0 | 0 | 0 | 0 | 0.140411 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
969bb241fcdc0d7ab1f0ae016a66c74578107f98 | 639 | py | Python | AMAO/apps/Avaliacao/views/exibir.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | 2 | 2017-04-26T14:08:02.000Z | 2017-09-01T13:10:17.000Z | AMAO/apps/Avaliacao/views/exibir.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | AMAO/apps/Avaliacao/views/exibir.py | arruda/amao | 83648aa2c408b1450d721b3072dc9db4b53edbb8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from django.contrib.auth import login
from django.shortcuts import redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from Aluno.views.utils import aluno_exist
from annoying.decorators import render_to
from django.contrib... | 27.782609 | 57 | 0.791862 | 90 | 639 | 5.5 | 0.466667 | 0.10101 | 0.10303 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.117371 | 639 | 22 | 58 | 29.045455 | 0.870567 | 0.032864 | 0 | 0 | 0 | 0 | 0.034146 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.5625 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
969e2f3ff112021f4be66464e152ec69c802c02b | 320 | py | Python | connect/eaas/exceptions.py | bdjilka/connect-extension-runner | 7930b34dae92addb3807984fd553debc2b78ac23 | [
"Apache-2.0"
] | null | null | null | connect/eaas/exceptions.py | bdjilka/connect-extension-runner | 7930b34dae92addb3807984fd553debc2b78ac23 | [
"Apache-2.0"
] | null | null | null | connect/eaas/exceptions.py | bdjilka/connect-extension-runner | 7930b34dae92addb3807984fd553debc2b78ac23 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of the Ingram Micro CloudBlue Connect EaaS Extension Runner.
#
# Copyright (c) 2021 Ingram Micro. All Rights Reserved.
#
class EaaSError(Exception):
pass
class MaintenanceError(EaaSError):
pass
class CommunicationError(EaaSError):
pass
class StopBackoffError(EaaSError):
pass
| 16 | 80 | 0.74375 | 37 | 320 | 6.432432 | 0.702703 | 0.113445 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.1875 | 320 | 19 | 81 | 16.842105 | 0.9 | 0.4125 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
96a839ea7a6be1421d492c4092e290ebd78292b8 | 715 | py | Python | examples/wsgi_usage/apache_modwsgi_server_example.py | digimatspa/python-jsonrpc | 7f8a022c112f8957cee18c54fc48557690cfe417 | [
"MIT"
] | 97 | 2015-01-06T14:29:31.000Z | 2022-02-17T07:27:11.000Z | examples/wsgi_usage/apache_modwsgi_server_example.py | HoverHell/python-jsonrpc | 41bcd48dd7879ca780481605dc1ffb611ead9100 | [
"MIT"
] | 37 | 2015-01-03T11:00:48.000Z | 2021-04-23T06:12:45.000Z | examples/wsgi_usage/apache_modwsgi_server_example.py | HoverHell/python-jsonrpc | 41bcd48dd7879ca780481605dc1ffb611ead9100 | [
"MIT"
] | 63 | 2015-02-04T20:14:48.000Z | 2022-02-17T07:27:13.000Z | #!/usr/bin/env python
# coding: utf-8
# BEGIN --- required only for testing, remove in real world code --- BEGIN
import os
import sys
THISDIR = os.path.dirname(os.path.abspath(__file__))
APPDIR = os.path.abspath(os.path.join(THISDIR, os.path.pardir, os.path.pardir))
sys.path.insert(0, APPDIR)
# END --- required only f... | 21.029412 | 79 | 0.706294 | 99 | 715 | 5.050505 | 0.585859 | 0.072 | 0.06 | 0.088 | 0.172 | 0.172 | 0.172 | 0.172 | 0.172 | 0 | 0 | 0.003356 | 0.166434 | 715 | 33 | 80 | 21.666667 | 0.83557 | 0.346853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7382ea8531ce700712937018018e99ffb94c7c1d | 562 | py | Python | codepack/service/delivery_service/delivery_service.py | ihnokim/codepack | 9d043b2db977de503faf7f5f1370c1424c6cb19f | [
"MIT"
] | 2 | 2021-04-18T17:51:49.000Z | 2021-06-22T10:21:30.000Z | codepack/service/delivery_service/delivery_service.py | ihnokim/codepack | 9d043b2db977de503faf7f5f1370c1424c6cb19f | [
"MIT"
] | 24 | 2021-12-23T18:02:01.000Z | 2022-03-27T03:03:38.000Z | codepack/service/delivery_service/delivery_service.py | ihnokim/codepack | 9d043b2db977de503faf7f5f1370c1424c6cb19f | [
"MIT"
] | 1 | 2021-09-13T12:56:40.000Z | 2021-09-13T12:56:40.000Z | import abc
from codepack.service.service import Service
class DeliveryService(Service, metaclass=abc.ABCMeta):
def __init__(self):
super().__init__()
@abc.abstractmethod
def send(self, id, serial_number, item=None, timestamp=None):
"""send item"""
@abc.abstractmethod
def receive(... | 23.416667 | 65 | 0.658363 | 62 | 562 | 5.774194 | 0.435484 | 0.189944 | 0.223464 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218861 | 562 | 23 | 66 | 24.434783 | 0.81549 | 0.113879 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.153846 | 0 | 0.615385 | 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 |
7387856755f04e2fce184f38847164fa54bfabcd | 922 | py | Python | joplin_web/api.py | foxmask/joplin-web | eb261e515b9ecf9c878a1d6492aba06ddf6d97c6 | [
"BSD-3-Clause"
] | 382 | 2018-08-20T07:51:11.000Z | 2022-03-11T14:52:53.000Z | joplin_web/api.py | marph91/joplin-web | eb261e515b9ecf9c878a1d6492aba06ddf6d97c6 | [
"BSD-3-Clause"
] | 71 | 2018-10-01T07:01:20.000Z | 2022-02-22T07:17:47.000Z | joplin_web/api.py | marph91/joplin-web | eb261e515b9ecf9c878a1d6492aba06ddf6d97c6 | [
"BSD-3-Clause"
] | 67 | 2018-10-01T07:09:50.000Z | 2022-03-19T09:30:09.000Z | # coding: utf-8
"""
joplin-web
"""
from django.conf import settings
from django.http.response import JsonResponse
from django.urls import reverse
from joplin_api import JoplinApiSync
from joplin_web.utils import nb_notes_by_tag, nb_notes_by_folder
import logging
from rich import console
console = console.Console()
... | 24.918919 | 64 | 0.729935 | 131 | 922 | 4.946565 | 0.389313 | 0.04321 | 0.055556 | 0.037037 | 0.262346 | 0.262346 | 0.154321 | 0.154321 | 0.154321 | 0.154321 | 0 | 0.001297 | 0.163774 | 922 | 36 | 65 | 25.611111 | 0.83917 | 0.075922 | 0 | 0.190476 | 0 | 0 | 0.02934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.333333 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7398e8292797a50bf6c42c368fc2eb59c7ca47ec | 5,612 | py | Python | feeds.py | yoursantu/indiannewsplus | 252f0367b43ec2edea636157bcf2d8a92dda6f3f | [
"MIT"
] | null | null | null | feeds.py | yoursantu/indiannewsplus | 252f0367b43ec2edea636157bcf2d8a92dda6f3f | [
"MIT"
] | null | null | null | feeds.py | yoursantu/indiannewsplus | 252f0367b43ec2edea636157bcf2d8a92dda6f3f | [
"MIT"
] | null | null | null | """RSS feeds for the `multilingual_news` app."""
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.shortcuts import get_current_site
from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from django.utils.transl... | 37.66443 | 76 | 0.661083 | 710 | 5,612 | 5.049296 | 0.18169 | 0.03682 | 0.042678 | 0.046862 | 0.589121 | 0.546722 | 0.488982 | 0.430126 | 0.393305 | 0.393305 | 0 | 0.006023 | 0.230756 | 5,612 | 148 | 77 | 37.918919 | 0.824415 | 0.068603 | 0 | 0.377358 | 0 | 0 | 0.120723 | 0.057862 | 0 | 0 | 0 | 0.006757 | 0 | 1 | 0.216981 | false | 0 | 0.09434 | 0.075472 | 0.632075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
739b66623c870e2641dd70a59dd1c2539187536e | 1,161 | py | Python | tests/cli.py | chriswmackey/honeybee-radiance-folder | 5576df94d781fd131c683c8b05aa04ac42df34b8 | [
"MIT"
] | null | null | null | tests/cli.py | chriswmackey/honeybee-radiance-folder | 5576df94d781fd131c683c8b05aa04ac42df34b8 | [
"MIT"
] | 113 | 2019-07-18T03:38:26.000Z | 2022-03-26T03:26:06.000Z | tests/cli.py | chriswmackey/honeybee-radiance-folder | 5576df94d781fd131c683c8b05aa04ac42df34b8 | [
"MIT"
] | 6 | 2019-07-18T00:05:26.000Z | 2021-10-04T08:50:26.000Z | from click.testing import CliRunner
from honeybee_radiance_folder.cli import filter_json_file
import json
import os
def test_filter_file():
runner = CliRunner()
input_file = './tests/assets/project_folder/grid_info.json'
output_file = './tests/assets/temp/grid_filtered_0.json'
result = runner.invoke(
... | 29.769231 | 88 | 0.669251 | 155 | 1,161 | 4.767742 | 0.316129 | 0.135318 | 0.081191 | 0.08931 | 0.718539 | 0.718539 | 0.695535 | 0.695535 | 0.695535 | 0.695535 | 0 | 0.006637 | 0.221361 | 1,161 | 38 | 89 | 30.552632 | 0.810841 | 0.043928 | 0 | 0.5 | 0 | 0 | 0.227642 | 0.160795 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 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 |
739e6d0875de7997feffc9f90decf0de25b225f9 | 9,157 | py | Python | src/memberdef.py | alljoyn/devtools-codegen | 388cac15e584dce3040d5090e8f627e5360e5c0f | [
"0BSD"
] | null | null | null | src/memberdef.py | alljoyn/devtools-codegen | 388cac15e584dce3040d5090e8f627e5360e5c0f | [
"0BSD"
] | null | null | null | src/memberdef.py | alljoyn/devtools-codegen | 388cac15e584dce3040d5090e8f627e5360e5c0f | [
"0BSD"
] | null | null | null | # Copyright AllSeen Alliance. All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... | 33.177536 | 96 | 0.644207 | 1,249 | 9,157 | 4.552442 | 0.179343 | 0.014773 | 0.040626 | 0.039571 | 0.459374 | 0.368976 | 0.323954 | 0.238656 | 0.226521 | 0.214738 | 0 | 0.012602 | 0.237414 | 9,157 | 275 | 97 | 33.298182 | 0.801661 | 0.390849 | 0 | 0.181159 | 0 | 0 | 0.009222 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 1 | 0.23913 | false | 0 | 0.014493 | 0.021739 | 0.528986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
73a9cda8e0d2bd2c5fe35622d180c1e9b443a525 | 1,905 | py | Python | application/modules/post/windows-priv-check/wpc/report/issues.py | cys3c/viper-shell | e05a07362b7d1e6d73c302a24d2506846e43502c | [
"PSF-2.0",
"BSD-2-Clause"
] | 2 | 2018-06-30T03:21:30.000Z | 2020-03-22T02:31:02.000Z | application/modules/post/windows-priv-check/wpc/report/issues.py | cys3c/viper-shell | e05a07362b7d1e6d73c302a24d2506846e43502c | [
"PSF-2.0",
"BSD-2-Clause"
] | null | null | null | application/modules/post/windows-priv-check/wpc/report/issues.py | cys3c/viper-shell | e05a07362b7d1e6d73c302a24d2506846e43502c | [
"PSF-2.0",
"BSD-2-Clause"
] | 3 | 2017-11-15T11:08:20.000Z | 2020-03-22T02:31:03.000Z | from wpc.report.issue import issue
import xml.etree.cElementTree as etree
from lxml import etree as letree
from operator import itemgetter, attrgetter, methodcaller
# TODO should this class contain info about the scan? or define a new class called report?
# Version of script
# Date, time of audit
# Who the audit ran... | 31.229508 | 95 | 0.632546 | 277 | 1,905 | 4.191336 | 0.33213 | 0.02584 | 0.062016 | 0.017227 | 0.308355 | 0.27907 | 0.27907 | 0.27907 | 0.27907 | 0.27907 | 0 | 0 | 0.260892 | 1,905 | 60 | 96 | 31.75 | 0.824574 | 0.16273 | 0 | 0.285714 | 0 | 0 | 0.036593 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.214286 | false | 0 | 0.095238 | 0.02381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73ac2455924ff0001809acc001de20f6e6bc1656 | 813 | py | Python | neurokit2/microstates/__init__.py | danibene/NeuroKit | df0ab6696e7418cf8b8dcd3ed82dbf879fa61b3a | [
"MIT"
] | 1 | 2020-12-31T17:48:11.000Z | 2020-12-31T17:48:11.000Z | neurokit2/microstates/__init__.py | danibene/NeuroKit | df0ab6696e7418cf8b8dcd3ed82dbf879fa61b3a | [
"MIT"
] | null | null | null | neurokit2/microstates/__init__.py | danibene/NeuroKit | df0ab6696e7418cf8b8dcd3ed82dbf879fa61b3a | [
"MIT"
] | 2 | 2021-12-25T15:39:49.000Z | 2021-12-25T15:44:16.000Z | """Submodule for NeuroKit."""
from .microstates_clean import microstates_clean
from .microstates_peaks import microstates_peaks
from .microstates_static import microstates_static
from .microstates_dynamic import microstates_dynamic
from .microstates_complexity import microstates_complexity
from .microstates_segment im... | 35.347826 | 58 | 0.771218 | 76 | 813 | 7.842105 | 0.210526 | 0.22651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173432 | 813 | 22 | 59 | 36.954545 | 0.886905 | 0.02829 | 0 | 0 | 0 | 0 | 0.216837 | 0.056122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
73aed6f56861e4609809462a9a1cf35c41cc4da9 | 612 | py | Python | torchx/examples/apps/lightning_classy_vision/test/component_test.py | LaudateCorpus1/torchx | 9ee0fdbf63882ba836c00d7522f6850c0c6dc418 | [
"BSD-3-Clause"
] | 101 | 2021-06-12T20:00:09.000Z | 2022-03-31T11:14:35.000Z | torchx/examples/apps/lightning_classy_vision/test/component_test.py | LaudateCorpus1/torchx | 9ee0fdbf63882ba836c00d7522f6850c0c6dc418 | [
"BSD-3-Clause"
] | 340 | 2021-06-14T18:16:12.000Z | 2022-03-31T21:10:28.000Z | torchx/examples/apps/lightning_classy_vision/test/component_test.py | LaudateCorpus1/torchx | 9ee0fdbf63882ba836c00d7522f6850c0c6dc418 | [
"BSD-3-Clause"
] | 19 | 2021-06-13T06:17:21.000Z | 2022-03-28T19:28:00.000Z | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import torchx.examples.apps.lightning_classy_vision.component as lightning_classy_vision
from torchx.components... | 36 | 88 | 0.785948 | 78 | 612 | 6.012821 | 0.628205 | 0.127932 | 0.179104 | 0.085288 | 0.17484 | 0.17484 | 0.17484 | 0 | 0 | 0 | 0 | 0 | 0.142157 | 612 | 16 | 89 | 38.25 | 0.893333 | 0.321895 | 0 | 0 | 0 | 0 | 0.03912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
73b135f20a4d854cdb5b09c10b76e9756be5c474 | 161 | py | Python | shipfunk_python/__init__.py | vilkasgroup/shipfunk_python | cd8a5414bda7e9670511c52d0b4df2efd11ee5d9 | [
"MIT"
] | null | null | null | shipfunk_python/__init__.py | vilkasgroup/shipfunk_python | cd8a5414bda7e9670511c52d0b4df2efd11ee5d9 | [
"MIT"
] | 2 | 2018-01-16T07:32:18.000Z | 2018-01-17T07:29:41.000Z | shipfunk_python/__init__.py | vilkasgroup/shipfunk_python | cd8a5414bda7e9670511c52d0b4df2efd11ee5d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Shipfunk."""
__author__ = """Jaana Sarajärvi"""
__email__ = 'jaana.sarajarvi@vilkas.fi'
__version__ = '0.1.1'
| 20.125 | 39 | 0.652174 | 20 | 161 | 4.65 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.130435 | 161 | 7 | 40 | 23 | 0.635714 | 0.335404 | 0 | 0 | 0 | 0 | 0.445545 | 0.247525 | 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 |
73b14a8ac2d94f0475d3f40d5181eb41aedadcce | 638 | py | Python | vpc/nos/driver/ovs/ne.py | zhufawuwo/baton | 64c88750bc96b92e268b4903f34a1d5021c686f4 | [
"Apache-2.0"
] | null | null | null | vpc/nos/driver/ovs/ne.py | zhufawuwo/baton | 64c88750bc96b92e268b4903f34a1d5021c686f4 | [
"Apache-2.0"
] | null | null | null | vpc/nos/driver/ovs/ne.py | zhufawuwo/baton | 64c88750bc96b92e268b4903f34a1d5021c686f4 | [
"Apache-2.0"
] | null | null | null | #! python3
# coding: utf-8
from vpc.nos import NetworkElement,NetworkElementEvent,event_t,EventChain
class OVSEvent(NetworkElementEvent):
def __init__(self,ne_id,type):
super().__init__(ne_id,type)
class OVS(NetworkElement):
def __init__(self,channel,datapath):
super().__init__()
self... | 20.580645 | 73 | 0.653605 | 77 | 638 | 4.987013 | 0.467532 | 0.0625 | 0.057292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.23511 | 638 | 31 | 74 | 20.580645 | 0.782787 | 0.03605 | 0 | 0 | 0 | 0 | 0.013029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.052632 | 0.052632 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
73de5fb73d8473474f580b5f20b98adc8660e07b | 1,141 | py | Python | platypush/plugins/logger/__init__.py | BlackLight/runbullet | 8d26c8634d2677b4402f0a21b9ab8244b44640db | [
"MIT"
] | 3 | 2017-11-03T17:03:36.000Z | 2017-11-10T06:38:15.000Z | platypush/plugins/logger/__init__.py | BlackLight/runbullet | 8d26c8634d2677b4402f0a21b9ab8244b44640db | [
"MIT"
] | 14 | 2017-11-04T11:46:37.000Z | 2017-12-11T19:15:27.000Z | platypush/plugins/logger/__init__.py | BlackLight/runbullet | 8d26c8634d2677b4402f0a21b9ab8244b44640db | [
"MIT"
] | null | null | null | from platypush.plugins import Plugin, action
class LoggerPlugin(Plugin):
"""
Plugin to log traces on the standard Platypush logger
"""
@action
def trace(self, msg, *args, **kwargs):
"""
logger.trace wrapper
"""
self.logger.trace(msg, *args, **kwargs)
@action
... | 21.12963 | 57 | 0.531113 | 120 | 1,141 | 5.05 | 0.266667 | 0.19802 | 0.214521 | 0.140264 | 0.371287 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002564 | 0.316389 | 1,141 | 53 | 58 | 21.528302 | 0.774359 | 0.177914 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0 | 0.4 | 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 |
73df0b517cdf0b8ebc3a55ea196f1562c83f9f1c | 4,329 | py | Python | tests/test_bullet_train.py | masschallenge/bullet-train-python-client | bcec653c0b4ed65779ab4e1a2f809810c684be00 | [
"BSD-3-Clause"
] | null | null | null | tests/test_bullet_train.py | masschallenge/bullet-train-python-client | bcec653c0b4ed65779ab4e1a2f809810c684be00 | [
"BSD-3-Clause"
] | null | null | null | tests/test_bullet_train.py | masschallenge/bullet-train-python-client | bcec653c0b4ed65779ab4e1a2f809810c684be00 | [
"BSD-3-Clause"
] | null | null | null | import json
import logging
from unittest import mock, TestCase
from bullet_train import BulletTrain
import os
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
TEST_API_URL = 'https://test.bullet-train.io/api'
TEST_IDENTIFIER = 'test-identity'
TEST_FEATURE = 'test-feature'
class MockResponse:
... | 34.632 | 113 | 0.736891 | 599 | 4,329 | 4.951586 | 0.160267 | 0.066757 | 0.045853 | 0.064734 | 0.688132 | 0.653068 | 0.598449 | 0.583951 | 0.532367 | 0.497977 | 0 | 0.001929 | 0.161931 | 4,329 | 124 | 114 | 34.91129 | 0.815601 | 0.018249 | 0 | 0.26087 | 0 | 0 | 0.159934 | 0.122844 | 0 | 0 | 0 | 0 | 0.115942 | 1 | 0.26087 | false | 0 | 0.072464 | 0.101449 | 0.492754 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
73f42c1536b7cbae9884bce03cfe3067637e0ad1 | 3,681 | py | Python | get_stock_data.py | jeremychonggg/Alpaca-Trading-Bot | 82df00e327e2e55f5a0cdf85cd950c49c59bf669 | [
"MIT"
] | null | null | null | get_stock_data.py | jeremychonggg/Alpaca-Trading-Bot | 82df00e327e2e55f5a0cdf85cd950c49c59bf669 | [
"MIT"
] | null | null | null | get_stock_data.py | jeremychonggg/Alpaca-Trading-Bot | 82df00e327e2e55f5a0cdf85cd950c49c59bf669 | [
"MIT"
] | null | null | null | import json
import requests
import pandas as pd
import websocket
# Get Alpaca API Credential
endpoint = "https://data.alpaca.markets/v2"
headers = json.loads(open("key.txt", 'r').read())
def hist_data(symbols, start="2021-01-01", timeframe="1Hour", limit=50, end=""):
"""
returns historical b... | 39.159574 | 115 | 0.551481 | 451 | 3,681 | 4.343681 | 0.263858 | 0.067381 | 0.06636 | 0.042879 | 0.685043 | 0.685043 | 0.635018 | 0.635018 | 0.635018 | 0.635018 | 0 | 0.009705 | 0.30019 | 3,681 | 93 | 116 | 39.580645 | 0.750776 | 0.186906 | 0 | 0.728814 | 0 | 0 | 0.179099 | 0.009148 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0.016949 | 0.067797 | 0 | 0.135593 | 0.016949 | 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 |
fb53c7de261609a0deb36f13cdae3c4c1cc92433 | 789 | py | Python | Libraries/DUTs/Community/di_vsphere/pysphere/revertToNamedSnapshot.py | nneul/iTest-assets | 478659d176891e45d81f7fdb27440a86a21965bb | [
"MIT"
] | 10 | 2017-12-28T10:15:56.000Z | 2020-10-19T18:13:58.000Z | Libraries/DUTs/Community/di_vsphere/pysphere/revertToNamedSnapshot.py | nneul/iTest-assets | 478659d176891e45d81f7fdb27440a86a21965bb | [
"MIT"
] | 37 | 2018-03-07T00:48:37.000Z | 2021-03-22T20:03:48.000Z | Libraries/DUTs/Community/di_vsphere/pysphere/revertToNamedSnapshot.py | nneul/iTest-assets | 478659d176891e45d81f7fdb27440a86a21965bb | [
"MIT"
] | 27 | 2018-03-06T19:56:01.000Z | 2022-03-23T04:18:23.000Z | import sys
sys.path.append("./pysphere")
from pysphere import VIServer
from pysphere.resources.vi_exception import VIException, VIApiException, \
FaultTypes
import sys
if len(sys.argv) != 6:
sys.exit("error = please check arguments")
serverName = sys.argv[1]
login =... | 29.222222 | 75 | 0.673004 | 101 | 789 | 5.148515 | 0.544554 | 0.080769 | 0.042308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.219265 | 789 | 27 | 76 | 29.222222 | 0.832792 | 0 | 0 | 0.076923 | 0 | 0 | 0.13089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.076923 | 0.153846 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fb56b6a8fcadb6c716511c7be794553961db8e2e | 529 | py | Python | modules/api/functional_test/live_tests/conftest.py | exoego/vinyldns | aac4c2afe4c599ac8c96ad3a826f3a6dff887104 | [
"Apache-2.0"
] | null | null | null | modules/api/functional_test/live_tests/conftest.py | exoego/vinyldns | aac4c2afe4c599ac8c96ad3a826f3a6dff887104 | [
"Apache-2.0"
] | 1 | 2019-02-06T21:38:12.000Z | 2019-02-06T21:38:12.000Z | modules/api/functional_test/live_tests/conftest.py | exoego/vinyldns | aac4c2afe4c599ac8c96ad3a826f3a6dff887104 | [
"Apache-2.0"
] | null | null | null | import pytest
@pytest.fixture(scope="session")
def shared_zone_test_context(request):
from shared_zone_test_context import SharedZoneTestContext
ctx = SharedZoneTestContext()
def fin():
ctx.tear_down()
request.addfinalizer(fin)
return ctx
@pytest.fixture(scope="session")
def zone_hist... | 18.241379 | 62 | 0.725898 | 58 | 529 | 6.413793 | 0.362069 | 0.069892 | 0.096774 | 0.134409 | 0.344086 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190926 | 529 | 28 | 63 | 18.892857 | 0.869159 | 0 | 0 | 0.352941 | 0 | 0 | 0.026465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fb607c62040621d2cd1122da4b43413ea79de0be | 4,331 | py | Python | engine/resources.py | gerizim16/MP2_GRP19 | 591fbb47fec6c5471d4e63151f494641452b4cb7 | [
"CC0-1.0"
] | 1 | 2020-09-25T02:46:00.000Z | 2020-09-25T02:46:00.000Z | engine/resources.py | gerizim16/MP2_GRP19 | 591fbb47fec6c5471d4e63151f494641452b4cb7 | [
"CC0-1.0"
] | null | null | null | engine/resources.py | gerizim16/MP2_GRP19 | 591fbb47fec6c5471d4e63151f494641452b4cb7 | [
"CC0-1.0"
] | null | null | null | import pyglet
print('Loading resources')
def center_image(image):
"""Sets an image's anchor point to its center"""
image.anchor_x = image.width / 2
image.anchor_y = image.height / 2
# Tell pyglet where to find the resources
pyglet.resource.path = ['./resources', './resources/backgrounds']
pyglet.resource... | 30.286713 | 84 | 0.803048 | 658 | 4,331 | 4.972644 | 0.151976 | 0.16687 | 0.214853 | 0.242054 | 0.433374 | 0.178484 | 0.047677 | 0 | 0 | 0 | 0 | 0.009495 | 0.075964 | 4,331 | 142 | 85 | 30.5 | 0.808096 | 0.043177 | 0 | 0 | 0 | 0 | 0.153083 | 0.028053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010753 | false | 0 | 0.010753 | 0 | 0.021505 | 0.021505 | 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 |
fb705b9a868266542cc3de66cc5408c3859e9bcd | 617 | py | Python | messenger/helper/http/post.py | gellowmellow/python-messenger-bot | 01aaba569add8a6ed1349fc4774e3c7e64439dc0 | [
"MIT"
] | null | null | null | messenger/helper/http/post.py | gellowmellow/python-messenger-bot | 01aaba569add8a6ed1349fc4774e3c7e64439dc0 | [
"MIT"
] | null | null | null | messenger/helper/http/post.py | gellowmellow/python-messenger-bot | 01aaba569add8a6ed1349fc4774e3c7e64439dc0 | [
"MIT"
] | null | null | null | import requests
class Post:
def __init__(self, page_access_token, **kwargs):
self.page_access_token = page_access_token
return super().__init__(**kwargs)
def send(self, url, json):
try:
request_session = requests.Session()
params = {'access_token': se... | 30.85 | 87 | 0.593193 | 65 | 617 | 5.338462 | 0.4 | 0.158501 | 0.172911 | 0.164265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309562 | 617 | 20 | 88 | 30.85 | 0.812207 | 0 | 0 | 0 | 0 | 0 | 0.025932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb8cf968314b4148ab23bd50a8ea481955bbd517 | 963 | py | Python | {{cookiecutter.project_slug}}/sources/app/config/settings/components/security.py | AsheKR/cookiecutter-django | d0402aefcc2eeaffa747faa7ef50ad97286bfcca | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/sources/app/config/settings/components/security.py | AsheKR/cookiecutter-django | d0402aefcc2eeaffa747faa7ef50ad97286bfcca | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/sources/app/config/settings/components/security.py | AsheKR/cookiecutter-django | d0402aefcc2eeaffa747faa7ef50ad97286bfcca | [
"BSD-3-Clause"
] | null | null | null | # https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-ssl-redirect
SECURE_SSL_REDIRECT = True
# https://docs.djangoproject.com/en/dev/ref/settings/#session-cookie-secure
SES... | 53.5 | 86 | 0.805815 | 141 | 963 | 5.347518 | 0.241135 | 0.107427 | 0.262599 | 0.298408 | 0.591512 | 0.591512 | 0.591512 | 0.547745 | 0.547745 | 0.289125 | 0 | 0.008696 | 0.044652 | 963 | 17 | 87 | 56.647059 | 0.81087 | 0.685358 | 0 | 0 | 0 | 0 | 0.09507 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
fb90339a9b070648b3ffa1426d143af98658172e | 345 | py | Python | cc/apps/coder/admin.py | mavroskardia/codechallenge | a5fee4ba73be186d90daafca50819a6817ad3d27 | [
"MIT"
] | null | null | null | cc/apps/coder/admin.py | mavroskardia/codechallenge | a5fee4ba73be186d90daafca50819a6817ad3d27 | [
"MIT"
] | null | null | null | cc/apps/coder/admin.py | mavroskardia/codechallenge | a5fee4ba73be186d90daafca50819a6817ad3d27 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Coder, Level
class CoderAdmin(admin.ModelAdmin):
pass
class LevelAdmin(admin.ModelAdmin):
list_display_links = ('id',)
list_display = ('id', 'name', 'starting_xp')
list_editable = ('name', 'starting_xp')
admin.site.register(Coder, CoderAdmin)
admin.site.reg... | 20.294118 | 45 | 0.750725 | 44 | 345 | 5.75 | 0.522727 | 0.118577 | 0.110672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 345 | 16 | 46 | 21.5625 | 0.829508 | 0 | 0 | 0 | 0 | 0 | 0.098551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
fb9d867e25a8da5be0e4b33fa5b6bfbaf98a5fde | 298 | py | Python | bookmarks/images/signals.py | hiteshgarg14/Django-Social-Website | 750f3b6e457a0da84e3fe4eaa56f54cb007d9e1e | [
"MIT"
] | 1 | 2020-11-19T19:33:10.000Z | 2020-11-19T19:33:10.000Z | bookmarks/images/signals.py | hiteshgarg14/Django-Social-Website | 750f3b6e457a0da84e3fe4eaa56f54cb007d9e1e | [
"MIT"
] | null | null | null | bookmarks/images/signals.py | hiteshgarg14/Django-Social-Website | 750f3b6e457a0da84e3fe4eaa56f54cb007d9e1e | [
"MIT"
] | null | null | null | from django.db.models.signals import m2m_changed
from django.dispatch import receiver
from .models import Image
@receiver(m2m_changed, sender=Image.users_likes.through)
def users_like_changed(sender, instance, **kwargs):
instance.total_likes = instance.users_likes.count()
instance.save()
| 33.111111 | 56 | 0.802013 | 41 | 298 | 5.658537 | 0.536585 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007491 | 0.104027 | 298 | 8 | 57 | 37.25 | 0.861423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fba413cbbac04e4578ce84a8676b8bf632b9cb46 | 431 | py | Python | configs/production.py | syz247179876/Flask-Sports | ed2d21c5a6172e7b6f3fc479bd5114fdb171896d | [
"Apache-2.0"
] | 2 | 2020-12-02T14:20:44.000Z | 2020-12-08T15:36:51.000Z | configs/production.py | syz247179876/Flask-Sports | ed2d21c5a6172e7b6f3fc479bd5114fdb171896d | [
"Apache-2.0"
] | 1 | 2020-12-05T13:44:14.000Z | 2020-12-05T13:44:14.000Z | configs/production.py | syz247179876/Flask-Sports | ed2d21c5a6172e7b6f3fc479bd5114fdb171896d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/12/1 下午11:24
# @Author : 司云中
# @File : production.py
# @Software: Pycharm
from configs.default import DefaultConfig
class ProductionConfig(DefaultConfig):
"""the config of production env"""
DEBUG = False
TESTING = False
MONGODB_DB = ''
MONGODB_HOST = ''
... | 20.52381 | 41 | 0.656613 | 46 | 431 | 6.021739 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0.215777 | 431 | 20 | 42 | 21.55 | 0.784024 | 0.308585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fba528d6b9c993f8745f860d915d34b0353a4f4d | 426 | py | Python | glider/test/test_gliderRadio.py | ezeakeal/glider_drone | f0d5bb973d38245351a0fe1f4833827d94d0b0e4 | [
"Apache-2.0"
] | null | null | null | glider/test/test_gliderRadio.py | ezeakeal/glider_drone | f0d5bb973d38245351a0fe1f4833827d94d0b0e4 | [
"Apache-2.0"
] | null | null | null | glider/test/test_gliderRadio.py | ezeakeal/glider_drone | f0d5bb973d38245351a0fe1f4833827d94d0b0e4 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from glider.modules.glider_radio import GliderRadio
class TestGliderRadio(TestCase):
def setUp(self):
self.radio = GliderRadio(self.test_callback)
self.radio.start()
def tearDown(self):
self.radio.stop()
def test_callback(self, msgdict):
prin... | 23.666667 | 52 | 0.678404 | 52 | 426 | 5.442308 | 0.480769 | 0.127208 | 0.137809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213615 | 426 | 17 | 53 | 25.058824 | 0.844776 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fba67a228cffbfee38985da067132482c7b8a08a | 1,052 | py | Python | apps/warframes/migrations/0001_initial.py | tufbel/wFocus | ee0f02053b8a5bc9c40dd862306fc5df1a063b9d | [
"Apache-2.0"
] | null | null | null | apps/warframes/migrations/0001_initial.py | tufbel/wFocus | ee0f02053b8a5bc9c40dd862306fc5df1a063b9d | [
"Apache-2.0"
] | 11 | 2020-06-06T01:51:51.000Z | 2022-02-10T14:31:21.000Z | apps/warframes/migrations/0001_initial.py | tufbel/wFocus | ee0f02053b8a5bc9c40dd862306fc5df1a063b9d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.7 on 2019-12-15 12:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Warframe',
fields=[
('id', models.AutoField... | 32.875 | 76 | 0.543726 | 95 | 1,052 | 5.936842 | 0.557895 | 0.141844 | 0.163121 | 0.170213 | 0.154255 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03453 | 0.311787 | 1,052 | 31 | 77 | 33.935484 | 0.744475 | 0.042776 | 0 | 0 | 1 | 0 | 0.105473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.208333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fbbc3f98679b551d2bd048c8773e0364748a4e51 | 2,333 | py | Python | test/test_format.py | GuyTuval/msgpack-python | 8fb709f2e0438862020d8810fa70a81fb5dac7d4 | [
"Apache-2.0"
] | 1,252 | 2015-01-05T18:18:10.000Z | 2022-03-27T16:40:44.000Z | test/test_format.py | GuyTuval/msgpack-python | 8fb709f2e0438862020d8810fa70a81fb5dac7d4 | [
"Apache-2.0"
] | 298 | 2015-01-06T12:21:09.000Z | 2022-03-11T23:57:58.000Z | test/test_format.py | GuyTuval/msgpack-python | 8fb709f2e0438862020d8810fa70a81fb5dac7d4 | [
"Apache-2.0"
] | 199 | 2015-01-09T04:33:00.000Z | 2022-03-30T15:04:37.000Z | #!/usr/bin/env python
# coding: utf-8
from msgpack import unpackb
def check(src, should, use_list=0, raw=True):
assert unpackb(src, use_list=use_list, raw=raw, strict_map_key=False) == should
def testSimpleValue():
check(b"\x93\xc0\xc2\xc3", (None, False, True))
def testFixnum():
check(b"\x92\x93\x00... | 25.358696 | 88 | 0.533648 | 376 | 2,333 | 3.297872 | 0.239362 | 0.198387 | 0.123387 | 0.03871 | 0.360484 | 0.26129 | 0.141935 | 0.141935 | 0.141935 | 0.141935 | 0 | 0.203495 | 0.239606 | 2,333 | 91 | 89 | 25.637363 | 0.49549 | 0.014574 | 0 | 0.257576 | 0 | 0.151515 | 0.38485 | 0.316064 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.166667 | false | 0 | 0.015152 | 0 | 0.181818 | 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 |
fbc4fa09de1f509b411b286d8439548aa1647a45 | 544 | py | Python | config.py | Laikos38/rockopy | 3816ebb8466a27c65e76a387abc36c96df688ef7 | [
"CC0-1.0"
] | null | null | null | config.py | Laikos38/rockopy | 3816ebb8466a27c65e76a387abc36c96df688ef7 | [
"CC0-1.0"
] | null | null | null | config.py | Laikos38/rockopy | 3816ebb8466a27c65e76a387abc36c96df688ef7 | [
"CC0-1.0"
] | null | null | null | # =================================================
# SERVER CONFIGURATIONS
# =================================================
CLIENT_ID=''
CLIENT_SECRET=''
REDIRECT_URI='http://ROCKOPY/'
# =================================================
# SERVER CONFIGURATIONS
# =================================================
S... | 24.727273 | 51 | 0.318015 | 33 | 544 | 5.030303 | 0.787879 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022044 | 0.082721 | 544 | 21 | 52 | 25.904762 | 0.310621 | 0.722426 | 0 | 0 | 0 | 0 | 0.172662 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fbd3b3b8ed744c1417f498327a5a9678f19a086e | 327 | py | Python | keycache/util.py | psytron/keycache | 0b69e21719dbe76908476c01e3e487aae2612fd2 | [
"Apache-2.0"
] | 2 | 2020-04-27T07:48:54.000Z | 2020-10-21T17:47:54.000Z | keycache/util.py | psytron/keycache | 0b69e21719dbe76908476c01e3e487aae2612fd2 | [
"Apache-2.0"
] | null | null | null | keycache/util.py | psytron/keycache | 0b69e21719dbe76908476c01e3e487aae2612fd2 | [
"Apache-2.0"
] | null | null | null | import platform as p
import uuid
import hashlib
def basic():
sb = []
sb.append(p.node())
sb.append( ''.join([ x for x in p.architecture() ]) )
sb.append(p.machine())
sb.append(p.processor())
sb.append(p.system())
sb.append(str(uuid.getnode())) # MAC address
text = '.'.join(sb)
retu... | 21.8 | 57 | 0.599388 | 48 | 327 | 4.083333 | 0.520833 | 0.244898 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220183 | 327 | 15 | 58 | 21.8 | 0.768627 | 0.033639 | 0 | 0 | 0 | 0 | 0.003175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 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 |
837c932ac45c8e6207580a84130808a7f51d5177 | 685 | py | Python | django_sso_app/app/views.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | 1 | 2021-11-16T15:16:08.000Z | 2021-11-16T15:16:08.000Z | django_sso_app/app/views.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | django_sso_app/app/views.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect
from django.views import View
from ..core import app_settings
class AppLoginView(View):
def get(self, request, *args, **kwargs):
next = request.GET.get('next', '')
return HttpResponseRedirect(app_settings.REMOTE_LOGIN_URL + next)
class AppSignupView... | 26.346154 | 74 | 0.694891 | 81 | 685 | 5.753086 | 0.333333 | 0.094421 | 0.064378 | 0.090129 | 0.611588 | 0.611588 | 0.611588 | 0.611588 | 0.611588 | 0.611588 | 0 | 0 | 0.185401 | 685 | 25 | 75 | 27.4 | 0.835125 | 0 | 0 | 0.4 | 0 | 0 | 0.017518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8386475aa5d024fe1d36e6904efce3bbf70bc22b | 328 | py | Python | 2/week2/c.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | 2/week2/c.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | 2/week2/c.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | def som(a, b):
"""Bereken de som van twee getallen. Als de som groter is dan nul return je de som.
Als de som kleiner is dan nul, dan return je nul.
Args:
a (int): het eerste getal
b (int): het tweede getal
"""
pass
assert som(1, 2) == 3
assert som(-1, -2) == -3
assert som(0, ... | 20.5 | 87 | 0.570122 | 59 | 328 | 3.169492 | 0.491525 | 0.106952 | 0.085562 | 0.117647 | 0.176471 | 0.176471 | 0.176471 | 0 | 0 | 0 | 0 | 0.039823 | 0.310976 | 328 | 15 | 88 | 21.866667 | 0.787611 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
838edfd8c862125c349c121325bcacc9bf203166 | 1,177 | py | Python | tools/harness/tests/freemem.py | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 111 | 2015-02-03T02:57:27.000Z | 2022-03-01T23:57:09.000Z | tools/harness/tests/freemem.py | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 12 | 2016-03-22T14:44:32.000Z | 2020-03-18T13:30:29.000Z | tools/harness/tests/freemem.py | lambdaxymox/barrelfish | 06a9f54721a8d96874a8939d8973178a562c342f | [
"MIT"
] | 55 | 2015-02-03T05:28:12.000Z | 2022-03-31T05:00:03.000Z | ##########################################################################
# Copyright (c) 2009, ETH Zurich.
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE file.
# If you do not find this file, copies can be found by writing to:
# ETH Zurich D-INFK, Universitaetstrasse 6, CH... | 33.628571 | 80 | 0.605777 | 138 | 1,177 | 5.101449 | 0.623188 | 0.051136 | 0.053977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009574 | 0.201359 | 1,177 | 34 | 81 | 34.617647 | 0.739362 | 0.320306 | 0 | 0 | 0 | 0 | 0.042188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.157895 | 0.210526 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
83929360847de74ce432577b4612ddd776a07618 | 3,472 | py | Python | Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 17 | 2018-09-24T17:27:08.000Z | 2021-09-16T19:09:46.000Z | Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 4 | 2018-09-24T17:30:32.000Z | 2022-01-03T11:39:30.000Z | Protheus_WebApp/Modules/SIGAACD/ACDA035TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 18 | 2019-06-07T17:41:34.000Z | 2022-01-31T18:17:31.000Z | #//-------------------------------------------------------------------
#/*/{Protheus.doc} ACDA035 -
#
#@author PEDRO ANTONIO MISSAGLIA
#@since 23/09/2019
#@version P12
#
# CT001 - Inclusão de Lançamento de Inventário
# CT002 - Visão de um lançamento de inventário
# CT003 - Visualização das legendas
# CT0... | 27.125 | 88 | 0.692396 | 410 | 3,472 | 5.804878 | 0.307317 | 0.235714 | 0.201681 | 0.060504 | 0.505042 | 0.451261 | 0.279412 | 0.144958 | 0.144958 | 0.144958 | 0 | 0.067194 | 0.125576 | 3,472 | 128 | 89 | 27.125 | 0.716733 | 0.191244 | 0 | 0.4 | 0 | 0 | 0.179276 | 0.010757 | 0 | 0 | 0 | 0 | 0.093333 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.173333 | 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 |
8392df442da4b2f8acf4cb05c261720a7e2145a4 | 967 | py | Python | tests/unit/test_cust_driver.py | abreu4/jina | d1d045e9e0933dffb3bd668cb9cfebab6cd52202 | [
"Apache-2.0"
] | 2 | 2021-01-22T07:34:35.000Z | 2021-01-23T04:36:41.000Z | tests/unit/test_cust_driver.py | abreu4/jina | d1d045e9e0933dffb3bd668cb9cfebab6cd52202 | [
"Apache-2.0"
] | 1 | 2021-02-27T05:56:45.000Z | 2021-02-27T05:57:03.000Z | tests/unit/test_cust_driver.py | abreu4/jina | d1d045e9e0933dffb3bd668cb9cfebab6cd52202 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from jina import Flow, Document
from jina.executors import BaseExecutor
from jina.parsers import set_pea_parser
from jina.peapods.peas import BasePea
cur_dir = Path(__file__).parent
def test_load_executor_with_custom_driver():
with BaseExecutor.load_config(str(cur_dir / 'yaml/test-execu... | 31.193548 | 110 | 0.733195 | 141 | 967 | 4.751773 | 0.425532 | 0.089552 | 0.143284 | 0.143284 | 0.214925 | 0.214925 | 0.214925 | 0.214925 | 0.214925 | 0.214925 | 0 | 0.003632 | 0.145812 | 967 | 30 | 111 | 32.233333 | 0.807506 | 0.026887 | 0 | 0 | 0 | 0 | 0.198083 | 0.13099 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.210526 | false | 0.052632 | 0.263158 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8393065c4b6aeffae6a10f048cd67e3a8fa65388 | 373 | py | Python | 02-19-Cuma/forLoop.py | cihatdev/misha-staj | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | [
"MIT"
] | 9 | 2021-03-16T20:21:54.000Z | 2022-01-08T09:15:10.000Z | 02-19-Cuma/forLoop.py | cihatdev/misha-staj | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | [
"MIT"
] | 1 | 2021-02-28T21:27:17.000Z | 2021-02-28T21:27:17.000Z | 02-19-Cuma/forLoop.py | cihatdev/misha-staj | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | [
"MIT"
] | 1 | 2021-05-24T11:34:48.000Z | 2021-05-24T11:34:48.000Z | # for loops
# for letter in "Cihat Salik":
# print(letter)
friends = ["Hasan", "Mahmut", "Ali", "Veli"]
for friend in friends:
print(friend)
for index in range(3, 10):
print(index)
for index in range(len(friends)):
print(friends[index])
for index in range(5):
if index == 0:
print("Fi... | 15.541667 | 44 | 0.600536 | 52 | 373 | 4.307692 | 0.480769 | 0.107143 | 0.133929 | 0.200893 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017921 | 0.252011 | 373 | 23 | 45 | 16.217391 | 0.784946 | 0.150134 | 0 | 0 | 0 | 0 | 0.134185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 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 |
83a72aa00c8eb33d1a3ee2b6393e98bf6532dbf4 | 6,467 | py | Python | siqbal/hooks.py | smehata/siqbal | 8b6a21fb63c050237593c49757065198c0e2c54a | [
"MIT"
] | null | null | null | siqbal/hooks.py | smehata/siqbal | 8b6a21fb63c050237593c49757065198c0e2c54a | [
"MIT"
] | null | null | null | siqbal/hooks.py | smehata/siqbal | 8b6a21fb63c050237593c49757065198c0e2c54a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "SIqbal"
app_title = "SIqbal"
app_publisher = "RC"
app_description = "Customizations for SIqbal"
app_icon = "octicon octicon-file-directory"
app_color = "green"
app_email = "developer@rccorner.com"
app_l... | 28.117391 | 101 | 0.706355 | 789 | 6,467 | 5.518378 | 0.259823 | 0.051447 | 0.066146 | 0.053055 | 0.311438 | 0.192467 | 0.10588 | 0.079927 | 0.039963 | 0 | 0 | 0.000177 | 0.12587 | 6,467 | 229 | 102 | 28.240175 | 0.770034 | 0.4925 | 0 | 0.081395 | 0 | 0 | 0.680972 | 0.478384 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.023256 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83aba0fd5dc8afef0605fcfd0ba5992a35684f2e | 12,989 | py | Python | Speedo/plugins/animoji.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | Speedo/plugins/animoji.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | Speedo/plugins/animoji.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | 3 | 2021-10-12T08:17:01.000Z | 2021-12-21T01:17:54.000Z | import asyncio
from collections import deque
from . import *
@speedo.on(Speedo_cmd(pattern="think$", outgoing=True))
@speedo.on(sudo_cmd(pattern="think$", allow_sudo=True))
async def _(event):
if event.fwd_from:
return
event = await eor(event, "think")
deq = deque(list("🤔🧐🤔🧐🤔🧐"))
for _ ... | 26.781443 | 81 | 0.528755 | 1,791 | 12,989 | 3.98325 | 0.129537 | 0.053827 | 0.049061 | 0.057191 | 0.811326 | 0.783431 | 0.689655 | 0.608915 | 0.527754 | 0.524951 | 0 | 0.014193 | 0.267688 | 12,989 | 484 | 82 | 26.836777 | 0.682822 | 0 | 0 | 0.562642 | 0 | 0 | 0.151205 | 0.020325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006834 | 0 | 0.061503 | 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 |
83b09d2ad07562da3b8e8e789cc7815800d89928 | 1,338 | py | Python | jsonclasses_cli/package/swift/main_program_content.py | forever9717/jsonclasses-cli | b20d10cdf2d6c970a879e2a64f31555d4d808829 | [
"MIT"
] | null | null | null | jsonclasses_cli/package/swift/main_program_content.py | forever9717/jsonclasses-cli | b20d10cdf2d6c970a879e2a64f31555d4d808829 | [
"MIT"
] | null | null | null | jsonclasses_cli/package/swift/main_program_content.py | forever9717/jsonclasses-cli | b20d10cdf2d6c970a879e2a64f31555d4d808829 | [
"MIT"
] | null | null | null | from jsonclasses.cgraph import CGraph
from .import_lines import import_lines
from .string_query import string_query
from .int_query import int_query
from .float_query import float_query
from .bool_query import bool_query
from .sort_order import sort_order
from .data_enum import data_enum
from .data_class import data_cl... | 34.307692 | 64 | 0.724963 | 184 | 1,338 | 4.967391 | 0.282609 | 0.04814 | 0.032823 | 0.035011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01108 | 0.190583 | 1,338 | 38 | 65 | 35.210526 | 0.832872 | 0.013453 | 0 | 0 | 0 | 0 | 0.015933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
83b4ad592dcb04cd2de490a6b0d70c2d9d26c009 | 2,815 | py | Python | photos/models.py | kimutaimeshack/Instagram_clone | bdb035087f85fe055da29634cf7bc5dcb843897f | [
"MIT"
] | null | null | null | photos/models.py | kimutaimeshack/Instagram_clone | bdb035087f85fe055da29634cf7bc5dcb843897f | [
"MIT"
] | null | null | null | photos/models.py | kimutaimeshack/Instagram_clone | bdb035087f85fe055da29634cf7bc5dcb843897f | [
"MIT"
] | null | null | null | from django.db import models
import datetime as dt
from django.urls import reverse
# Create your models here.
class Editor(models.Model):
first_name = models.CharField(max_length =30 ,null=True)
last_name = models.CharField(max_length =30 ,null=True)
email = models.EmailField()
phone_number = models.Cha... | 29.946809 | 79 | 0.671403 | 351 | 2,815 | 5.179487 | 0.273504 | 0.070407 | 0.089109 | 0.118812 | 0.432343 | 0.430693 | 0.342134 | 0.226623 | 0.150715 | 0.150715 | 0 | 0.009959 | 0.215275 | 2,815 | 94 | 80 | 29.946809 | 0.813038 | 0.120782 | 0 | 0.306452 | 0 | 0 | 0.013409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177419 | false | 0 | 0.064516 | 0.112903 | 0.854839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
83c5d489d870a160b110a47da3fc244bdbe0bd80 | 4,699 | py | Python | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | Wrappers/Python/Testing/MasterTest.py | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | import os
location = os.path.join(os.path.dirname(__file__), 'Functions\\')
#location = 'Tests\\'
execfile(location + 'getVersion.py')
execfile(location + 'writeSBML.py')
#execfile(location + 'computeSteadyStateValues.py')
execfile(location + 'evalModel.py')
#execfile(location + 'getAvailableSymbols.py')
... | 44.330189 | 72 | 0.770377 | 415 | 4,699 | 8.713253 | 0.272289 | 0.442478 | 0.487832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000234 | 0.09236 | 4,699 | 106 | 73 | 44.330189 | 0.847597 | 0.222175 | 0 | 0 | 0 | 0 | 0.462695 | 0.280567 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012987 | 0 | 0.012987 | 0.025974 | 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 |
83cdd7dc6122382de1e26b815171dea31d9c7f62 | 917 | py | Python | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | rondgang/models.py | eternallyBaffled/rondgang | 6d0442279b60a75518579df88bfc53a57d98c2b3 | [
"MIT"
] | null | null | null | from datetime import date
from django.db import models
# Create your models here.
class Gemeente(models.Model):
naam_text = models.CharField(max_length=50)
deelgemeente_text = models.CharField(max_length=50)
class Segment(models.Model):
gemeente = models.CharField(max_length=55)
straat = models.CharF... | 28.65625 | 66 | 0.715376 | 115 | 917 | 5.556522 | 0.46087 | 0.117371 | 0.140845 | 0.187793 | 0.363067 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0.013228 | 0.175573 | 917 | 31 | 67 | 29.580645 | 0.832011 | 0.079607 | 0 | 0.190476 | 0 | 0 | 0.028537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0.047619 | 0.904762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
83d7cca1abc5dcfe213ee77fb80532cd598c02d8 | 1,642 | py | Python | card-games/lists.py | vietanhtran2710/python-exercism | 1f88dfca56928276ab81a274e8259ce465a2d425 | [
"MIT"
] | null | null | null | card-games/lists.py | vietanhtran2710/python-exercism | 1f88dfca56928276ab81a274e8259ce465a2d425 | [
"MIT"
] | null | null | null | card-games/lists.py | vietanhtran2710/python-exercism | 1f88dfca56928276ab81a274e8259ce465a2d425 | [
"MIT"
] | null | null | null | """
Card games exercise
"""
def get_rounds(number):
"""
:param number: int - current round number.
:return: list - current round and the two that follow.
"""
return [i + number for i in range(3)]
def concatenate_rounds(rounds_1, rounds_2):
"""
:param rounds_1: list - first rounds... | 20.78481 | 81 | 0.612667 | 229 | 1,642 | 4.292576 | 0.279476 | 0.035605 | 0.052899 | 0.069176 | 0.209563 | 0.209563 | 0.160732 | 0.160732 | 0.126144 | 0 | 0 | 0.016461 | 0.260049 | 1,642 | 78 | 82 | 21.051282 | 0.792593 | 0.448843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
83da20131082094621964e1f90f87f88548deff3 | 121 | py | Python | output/models/ms_data/regex/re_k14_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_k14_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_k14_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_k14_xsd.re_k14 import (
Regex,
Doc,
)
__all__ = [
"Regex",
"Doc",
]
| 12.1 | 59 | 0.603306 | 17 | 121 | 3.823529 | 0.705882 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.247934 | 121 | 9 | 60 | 13.444444 | 0.67033 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
83dc4959d0371e253276a653ff679aa4ad785db5 | 10,237 | py | Python | pyeventbus/tests/IO_performance_testing.py | n89nanda/EventBus | d1e35fa1ce9a2cb502404ecc2328c6c59745fce6 | [
"MIT"
] | 24 | 2018-02-02T03:12:05.000Z | 2021-11-11T10:06:22.000Z | pyeventbus/tests/IO_performance_testing.py | n89nanda/EventBus | d1e35fa1ce9a2cb502404ecc2328c6c59745fce6 | [
"MIT"
] | 2 | 2018-08-13T14:08:51.000Z | 2020-02-18T20:11:19.000Z | pyeventbus/tests/IO_performance_testing.py | n89nanda/EventBus | d1e35fa1ce9a2cb502404ecc2328c6c59745fce6 | [
"MIT"
] | 2 | 2020-01-17T12:47:30.000Z | 2020-05-05T14:10:10.000Z | from pyeventbus import *
from timeit import default_timer as timer
import numpy
import sys
from os import getcwd
import json
class Events:
class IOHeavyTestEvent:
start = 0
finish = 0
duration = 0
def __init__(self):
pass
def setStart(self, time):
sel... | 38.197761 | 111 | 0.62069 | 1,036 | 10,237 | 6.082046 | 0.09556 | 0.028567 | 0.047611 | 0.030947 | 0.699889 | 0.693382 | 0.693382 | 0.68386 | 0.662593 | 0.662593 | 0 | 0.015803 | 0.252027 | 10,237 | 267 | 112 | 38.340824 | 0.807105 | 0.017486 | 0 | 0.665179 | 0 | 0 | 0.152308 | 0.026363 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.03125 | 0.026786 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83dd12a100f10a5e78beecf49e3037dfe7dab6b8 | 79 | py | Python | hrsxrate.py | fabiovitoriano7/pythoncourse | cceb9b727abd15c4a63f08b5678b224011441997 | [
"MIT"
] | null | null | null | hrsxrate.py | fabiovitoriano7/pythoncourse | cceb9b727abd15c4a63f08b5678b224011441997 | [
"MIT"
] | null | null | null | hrsxrate.py | fabiovitoriano7/pythoncourse | cceb9b727abd15c4a63f08b5678b224011441997 | [
"MIT"
] | null | null | null | hrs = input("Enter Hours:")
rate=2.75
print ("Pay: " + str(float(rate) * hrs))
| 19.75 | 40 | 0.607595 | 13 | 79 | 3.692308 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.151899 | 79 | 3 | 41 | 26.333333 | 0.671642 | 0 | 0 | 0 | 0 | 0 | 0.21519 | 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 |
83f41e9d7d2619c0ed48dbceaafa749c11834cc5 | 1,431 | py | Python | Breeze18/Breeze/migrations/0006_auto_20180110_2205.py | Breeze18/Breeze | 4215776e2f02fab3ce357e67b3b6ca378742049c | [
"Apache-2.0"
] | null | null | null | Breeze18/Breeze/migrations/0006_auto_20180110_2205.py | Breeze18/Breeze | 4215776e2f02fab3ce357e67b3b6ca378742049c | [
"Apache-2.0"
] | 1 | 2017-11-09T13:07:24.000Z | 2018-01-29T04:31:26.000Z | Breeze18/Breeze/migrations/0006_auto_20180110_2205.py | Breeze18/Breeze | 4215776e2f02fab3ce357e67b3b6ca378742049c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-01-10 16:35
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Breeze', '0005_forgetpass'... | 30.446809 | 110 | 0.600978 | 140 | 1,431 | 5.978571 | 0.471429 | 0.133811 | 0.150538 | 0.179211 | 0.364397 | 0.308244 | 0.205496 | 0 | 0 | 0 | 0 | 0.031189 | 0.283019 | 1,431 | 46 | 111 | 31.108696 | 0.7846 | 0.047519 | 0 | 0.410256 | 1 | 0 | 0.122059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025641 | 0.102564 | 0 | 0.179487 | 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 |
f7b50b715b179630c9fcdafb1ce4cd54b3be0ee5 | 423 | py | Python | edm_web1/middleware/errors.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | edm_web1/middleware/errors.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | edm_web1/middleware/errors.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.http import HttpResponseForbidden
from django.template import loader
from django.utils.translation import ugettext_lazy as _
# 普通用户
def _requred_forbid(msg):
t = loader.get_template('limit_ip.html')
content = t.render({'message': msg })
return HttpResponseForbidden(cont... | 26.4375 | 55 | 0.754137 | 54 | 423 | 5.666667 | 0.666667 | 0.098039 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.134752 | 423 | 15 | 56 | 28.2 | 0.827869 | 0.061466 | 0 | 0 | 0 | 0 | 0.139949 | 0.058524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f7b9749cf050209379cfad2f528020cbb5090d82 | 263 | py | Python | feed/models.py | Lisgevan/DJANGO-101-PROJECT-COPY | 01655b30682efd435d91e85223af0fd6186e6a59 | [
"MIT"
] | null | null | null | feed/models.py | Lisgevan/DJANGO-101-PROJECT-COPY | 01655b30682efd435d91e85223af0fd6186e6a59 | [
"MIT"
] | null | null | null | feed/models.py | Lisgevan/DJANGO-101-PROJECT-COPY | 01655b30682efd435d91e85223af0fd6186e6a59 | [
"MIT"
] | null | null | null | from django.db import models
from sorl.thumbnail import ImageField
# Create your models here.
class Post(models.Model):
text = models.CharField(max_length=140, blank=False, null=False)
image = ImageField()
def __str__(self):
return self.text | 26.3 | 68 | 0.726236 | 36 | 263 | 5.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.18251 | 263 | 10 | 69 | 26.3 | 0.851163 | 0.091255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
f7c3c4d630855f49542b120f69474ebe854a401b | 310 | py | Python | toast/decorators/__init__.py | joshuaskelly/Toast | 741bc17992fd654c9834b080189eb800202ce999 | [
"MIT"
] | null | null | null | toast/decorators/__init__.py | joshuaskelly/Toast | 741bc17992fd654c9834b080189eb800202ce999 | [
"MIT"
] | null | null | null | toast/decorators/__init__.py | joshuaskelly/Toast | 741bc17992fd654c9834b080189eb800202ce999 | [
"MIT"
] | null | null | null | class call_if(object):
def __init__(self, cond):
self.condition = cond
def __call__(self, func):
def inner(*args, **kwargs):
if getattr(args[0], self.condition):
return func(*args, **kwargs)
else:
return None
return inner | 28.181818 | 48 | 0.525806 | 34 | 310 | 4.529412 | 0.529412 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.364516 | 310 | 11 | 49 | 28.181818 | 0.77665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 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 |
f7d2cd873463ee3cda95ca64c29e31dbdad2cad2 | 2,989 | py | Python | musicdb/restapi/migrations/0001_initial.py | alexebaker/django-music_database | cffa2574d894509b0eec7c71bd821cc0fd2f2cf7 | [
"MIT"
] | null | null | null | musicdb/restapi/migrations/0001_initial.py | alexebaker/django-music_database | cffa2574d894509b0eec7c71bd821cc0fd2f2cf7 | [
"MIT"
] | 7 | 2020-06-05T18:23:50.000Z | 2022-03-11T23:24:27.000Z | musicdb/restapi/migrations/0001_initial.py | alexebaker/django-music_database | cffa2574d894509b0eec7c71bd821cc0fd2f2cf7 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-05-01 05:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
... | 38.320513 | 136 | 0.556708 | 289 | 2,989 | 5.622837 | 0.249135 | 0.064615 | 0.077538 | 0.103385 | 0.691077 | 0.681846 | 0.615385 | 0.615385 | 0.615385 | 0.615385 | 0 | 0.014368 | 0.301439 | 2,989 | 77 | 137 | 38.818182 | 0.763889 | 0.015055 | 0 | 0.614286 | 1 | 0 | 0.087016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.085714 | 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 |
f7d411b7a1e10f51b58ab6692c180f5bbcd91a28 | 2,007 | py | Python | src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py | Idate96/Mimetic-Fem | 75ad3b982ef7ed7c6198f526d19dc460dec28f4d | [
"MIT"
] | null | null | null | src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py | Idate96/Mimetic-Fem | 75ad3b982ef7ed7c6198f526d19dc460dec28f4d | [
"MIT"
] | null | null | null | src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py | Idate96/Mimetic-Fem | 75ad3b982ef7ed7c6198f526d19dc460dec28f4d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
(SHORT NAME EXPLANATION)
>>>DOCTEST COMMANDS
(THE TEST ANSWER)
@author: Yi Zhang. Created on Mon Jul 10 20:12:27 2017
Department of Aerodynamics
Faculty of Aerospace Engineering
TU Delft
#SUMMARY----------------
#INPUTS-----------------
#ESSEN... | 22.3 | 78 | 0.619332 | 289 | 2,007 | 4.207612 | 0.363322 | 0.032895 | 0.026316 | 0.029605 | 0.425164 | 0.398026 | 0.398026 | 0.398026 | 0.375 | 0.375 | 0 | 0.03366 | 0.18585 | 2,007 | 89 | 79 | 22.550562 | 0.710526 | 0.249626 | 0 | 0 | 0 | 0 | 0.014665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.533333 | 0.133333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
f7d62d0a50f28ea90ec1747700a205b806ed75b7 | 2,684 | py | Python | allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py | donna-legal/allennlp | fd1e3cfaed07ec3ba03b922d12eee47f8be16837 | [
"Apache-2.0"
] | 1 | 2020-01-28T07:52:28.000Z | 2020-01-28T07:52:28.000Z | allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py | donna-legal/allennlp | fd1e3cfaed07ec3ba03b922d12eee47f8be16837 | [
"Apache-2.0"
] | null | null | null | allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py | donna-legal/allennlp | fd1e3cfaed07ec3ba03b922d12eee47f8be16837 | [
"Apache-2.0"
] | null | null | null | from allennlp.common.testing import AllenNlpTestCase
from allennlp.data.tokenizers import PretrainedTransformerTokenizer
class TestPretrainedTransformerTokenizer(AllenNlpTestCase):
def test_splits_roberta(self):
tokenizer = PretrainedTransformerTokenizer("roberta-base")
sentence = "A, <mask> Alle... | 28.252632 | 99 | 0.462742 | 217 | 2,684 | 5.585253 | 0.202765 | 0.041254 | 0.05363 | 0.086634 | 0.690594 | 0.690594 | 0.690594 | 0.673267 | 0.673267 | 0.673267 | 0 | 0.004923 | 0.39456 | 2,684 | 94 | 100 | 28.553191 | 0.740923 | 0.01006 | 0 | 0.702381 | 0 | 0 | 0.159382 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 1 | 0.035714 | false | 0 | 0.02381 | 0 | 0.071429 | 0 | 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 |
f7d6ae2f3cb3eec3b7e8a4d67b500afb529fc556 | 2,928 | py | Python | openmdao/api.py | ryanfarr01/blue | a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff | [
"Apache-2.0"
] | null | null | null | openmdao/api.py | ryanfarr01/blue | a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff | [
"Apache-2.0"
] | null | null | null | openmdao/api.py | ryanfarr01/blue | a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff | [
"Apache-2.0"
] | null | null | null | """Key OpenMDAO classes can be imported from here."""
# Core
from openmdao.core.problem import Problem
from openmdao.core.group import Group
from openmdao.core.parallel_group import ParallelGroup
from openmdao.core.explicitcomponent import ExplicitComponent
from openmdao.core.implicitcomponent import ImplicitComponent... | 41.828571 | 85 | 0.873634 | 330 | 2,928 | 7.618182 | 0.366667 | 0.186158 | 0.090692 | 0.059666 | 0.126492 | 0.099443 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084016 | 2,928 | 69 | 86 | 42.434783 | 0.93736 | 0.060792 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020833 | 0.854167 | 0 | 0.854167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7ea40e807af6204059adeba1056db95e63b5bcf | 492 | py | Python | plugins/hashsum_download/girder_hashsum_download/settings.py | JKitok/girder | 317962d155fc9811d25e5f33bd3e849c4ac96645 | [
"Apache-2.0"
] | 395 | 2015-01-12T19:20:13.000Z | 2022-03-30T05:40:40.000Z | plugins/hashsum_download/girder_hashsum_download/settings.py | JKitok/girder | 317962d155fc9811d25e5f33bd3e849c4ac96645 | [
"Apache-2.0"
] | 2,388 | 2015-01-01T20:09:19.000Z | 2022-03-29T16:49:14.000Z | plugins/hashsum_download/girder_hashsum_download/settings.py | JKitok/girder | 317962d155fc9811d25e5f33bd3e849c4ac96645 | [
"Apache-2.0"
] | 177 | 2015-01-04T14:47:00.000Z | 2022-03-25T09:01:51.000Z | from girder.exceptions import ValidationException
from girder.utility import setting_utilities
class PluginSettings:
AUTO_COMPUTE = 'hashsum_download.auto_compute'
@setting_utilities.default(PluginSettings.AUTO_COMPUTE)
def _defaultAutoCompute():
return False
@setting_utilities.validator(PluginSettings.AU... | 27.333333 | 85 | 0.802846 | 55 | 492 | 7 | 0.6 | 0.142857 | 0.194805 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 492 | 17 | 86 | 28.941176 | 0.891204 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.058943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f7f110d1e3f278e009edf38f3492952620bab08d | 619 | py | Python | bin/training_data/redmagic_ds_training_data.py | mclaughlin6464/pearce | 746f2bf4bf45e904d66996e003043661a01423ba | [
"MIT"
] | null | null | null | bin/training_data/redmagic_ds_training_data.py | mclaughlin6464/pearce | 746f2bf4bf45e904d66996e003043661a01423ba | [
"MIT"
] | 16 | 2016-11-04T22:24:32.000Z | 2018-05-01T22:53:39.000Z | bin/training_data/redmagic_ds_training_data.py | mclaughlin6464/pearce | 746f2bf4bf45e904d66996e003043661a01423ba | [
"MIT"
] | 3 | 2016-10-04T08:07:52.000Z | 2019-05-03T23:50:01.000Z | #!/.conda/envs/hodemulator/bin/python
from pearce.emulator import make_training_data
from pearce.emulator import DEFAULT_PARAMS as ordered_params
ordered_params['f_c'] = (0.05, .5)
ordered_params['logMmin'] = (11.5, 13.0)#(13.0, 14.5)
ordered_params['sigma_logM'] = (0.05, 1.0)
ordered_params['logM1'] = (12.0, 15.0)
ord... | 38.6875 | 96 | 0.726979 | 98 | 619 | 4.336735 | 0.479592 | 0.244706 | 0.098824 | 0.112941 | 0.089412 | 0.089412 | 0 | 0 | 0 | 0 | 0 | 0.077617 | 0.105008 | 619 | 15 | 97 | 41.266667 | 0.689531 | 0.077544 | 0 | 0 | 0 | 0 | 0.305115 | 0.252205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7fc84f573aa97d3b828afe66e29e4f49f7bb79c | 1,393 | py | Python | quantlab/COCO/utils/inference.py | lukasc-ch/QuantLab | 7ddcc51ec1131a58269768cd898ce04e8b49beb6 | [
"Apache-2.0"
] | 6 | 2019-05-24T17:39:07.000Z | 2021-11-06T22:19:55.000Z | quantlab/COCO/utils/inference.py | lukasc-ch/QuantLab | 7ddcc51ec1131a58269768cd898ce04e8b49beb6 | [
"Apache-2.0"
] | null | null | null | quantlab/COCO/utils/inference.py | lukasc-ch/QuantLab | 7ddcc51ec1131a58269768cd898ce04e8b49beb6 | [
"Apache-2.0"
] | 4 | 2019-05-24T17:39:15.000Z | 2021-04-02T07:13:11.000Z | import matplotlib.patches as patches
import matplotlib.pyplot as plt
import numpy as np
def view_instance(img, gt_label, pr_label=None):
img = img.cpu()
# gt_label = gt_label.cpu()
# pr_label = pr_label.cpu()
# c, h, w = img.shape
# with open('/home/spmatteo/MSDocuments/QuantLab/COCO/coco.names', ... | 42.212121 | 128 | 0.580761 | 191 | 1,393 | 4.183246 | 0.47644 | 0.030038 | 0.048811 | 0.045056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025194 | 0.259153 | 1,393 | 32 | 129 | 43.53125 | 0.749031 | 0.776023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7fcc0247bffa7d5ad90651380c319258f099e35 | 633 | py | Python | dockwidhistory.py | kimoamer/Clinic-Manager | 53184a4e8f369bf083109d065b2042fc7cf5bfbd | [
"MIT"
] | 3 | 2021-05-12T01:05:12.000Z | 2022-02-11T15:43:00.000Z | dockwidhistory.py | kimoamer/Clinic-Manager | 53184a4e8f369bf083109d065b2042fc7cf5bfbd | [
"MIT"
] | null | null | null | dockwidhistory.py | kimoamer/Clinic-Manager | 53184a4e8f369bf083109d065b2042fc7cf5bfbd | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import QDialog
from PyQt5.QtGui import QFont
from PyQt5.QtCore import Qt
from dockwina import Ui_Form as docka
class Dialog(QDialog, docka):
def __init__(self):
super(Dialog, self).__init__()
QDialog.__init__(self)
self.setupUi(self)
self.setWindowFlag... | 33.315789 | 51 | 0.665087 | 78 | 633 | 5.230769 | 0.423077 | 0.154412 | 0.235294 | 0.245098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.235387 | 633 | 18 | 52 | 35.166667 | 0.809917 | 0 | 0 | 0 | 0 | 0 | 0.011382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.352941 | 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 |
7907463be0399381dbb251da2399a40b35f47313 | 986 | py | Python | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py | opatua/cookiecutter-flask-api | 67e5a37ee2b8ca32823ac2f8051bab6653b3b44e | [
"MIT"
] | 2 | 2019-04-06T05:08:15.000Z | 2019-04-06T19:23:44.000Z | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py | opatua/cookiecutter-flask-api | 67e5a37ee2b8ca32823ac2f8051bab6653b3b44e | [
"MIT"
] | null | null | null | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py | opatua/cookiecutter-flask-api | 67e5a37ee2b8ca32823ac2f8051bab6653b3b44e | [
"MIT"
] | null | null | null | from flask import Flask
from flask_restful import Api
from flask_cors import CORS
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from {{cookiecutter.app_name}}.config import app_config
from {{cookiecutter.app_name}}.models import db, bcrypt
from {{cookiecutter.app_name}}.resources i... | 22.930233 | 63 | 0.704868 | 131 | 986 | 5.061069 | 0.312977 | 0.067873 | 0.11463 | 0.138763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193712 | 986 | 42 | 64 | 23.47619 | 0.833962 | 0.065923 | 0 | 0 | 0 | 0 | 0.039326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.36 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
79093ae44bacb9494b8349f6098239d9b14a8d37 | 567 | py | Python | Glyph-Builders/lowercase_from_upper.py | m4rc1e/mf-glyphs-scripts | c5ed026e5b72a886f1e574f85659cdcae041e66a | [
"MIT"
] | 27 | 2015-09-01T00:19:34.000Z | 2021-12-05T01:59:01.000Z | Glyph-Builders/lowercase_from_upper.py | m4rc1e/mf-glyphs-scripts | c5ed026e5b72a886f1e574f85659cdcae041e66a | [
"MIT"
] | 26 | 2016-01-03T09:31:39.000Z | 2018-06-01T18:05:58.000Z | Glyph-Builders/lowercase_from_upper.py | m4rc1e/mf-glyphs-scripts | c5ed026e5b72a886f1e574f85659cdcae041e66a | [
"MIT"
] | 7 | 2016-01-03T07:09:04.000Z | 2018-04-06T00:24:14.000Z | #MenuTitle: Generate lowercase from uppercase
"""
Generate lowercase a-z from uppercase A-Z
TODO (M Foley) Generate all lowercase glyphs, not just a-z
"""
font = Glyphs.font
glyphs = list('abcdefghijklmnopqrstuvwxyz')
masters = font.masters
for glyph_name in glyphs:
glyph = GSGlyph(glyph_name)
glyph.updateGl... | 24.652174 | 58 | 0.714286 | 73 | 567 | 5.479452 | 0.493151 | 0.015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.181658 | 567 | 22 | 59 | 25.772727 | 0.857759 | 0.257496 | 0 | 0 | 1 | 0 | 0.062954 | 0.062954 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7916e1c58cd3262cc6b3f5abd2ae3b7c7603279e | 9,607 | py | Python | users_django/users/tests/test_views.py | r-o-main/users-exercise | ecd6e33308140f72cb6c446e0e7e93f327b57a97 | [
"MIT"
] | null | null | null | users_django/users/tests/test_views.py | r-o-main/users-exercise | ecd6e33308140f72cb6c446e0e7e93f327b57a97 | [
"MIT"
] | null | null | null | users_django/users/tests/test_views.py | r-o-main/users-exercise | ecd6e33308140f72cb6c446e0e7e93f327b57a97 | [
"MIT"
] | null | null | null | from rest_framework.test import APIRequestFactory
from rest_framework import status
from django.test import TestCase
from django.urls import reverse
from ..models import User
from ..serializer import UserSerializer
from ..views import UserViewSet
import ipapi
class UsersApiRootTestCase(TestCase):
def test_api_ro... | 39.052846 | 108 | 0.65192 | 1,183 | 9,607 | 5.001691 | 0.125951 | 0.049011 | 0.052053 | 0.046138 | 0.756126 | 0.72148 | 0.659456 | 0.62819 | 0.606726 | 0.597938 | 0 | 0.020105 | 0.228583 | 9,607 | 245 | 109 | 39.212245 | 0.778303 | 0.054231 | 0 | 0.522727 | 0 | 0 | 0.108754 | 0.002444 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.079545 | false | 0.0625 | 0.045455 | 0 | 0.164773 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
791fc2d140f54e02c2b4d1000be7565797957857 | 136 | py | Python | gtf2bed/__init__.py | jvfe/gtf2bed | 7ac21759498ca9495030982d2a11c2a63149a75c | [
"BSD-3-Clause"
] | 1 | 2021-04-22T09:27:35.000Z | 2021-04-22T09:27:35.000Z | gtf2bed/__init__.py | jvfe/gtf2bed | 7ac21759498ca9495030982d2a11c2a63149a75c | [
"BSD-3-Clause"
] | null | null | null | gtf2bed/__init__.py | jvfe/gtf2bed | 7ac21759498ca9495030982d2a11c2a63149a75c | [
"BSD-3-Clause"
] | null | null | null | """Top-level package for gtf2bed."""
__author__ = """João Vitor F. Cavalcante"""
__email__ = "jvfecav@gmail.com"
__version__ = "0.1.0"
| 22.666667 | 43 | 0.683824 | 18 | 136 | 4.5 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033613 | 0.125 | 136 | 5 | 44 | 27.2 | 0.647059 | 0.220588 | 0 | 0 | 0 | 0 | 0.46 | 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 |
7922c3c12c906f5e3ff236bb30e73bcdb61a9ea9 | 477 | py | Python | setup.py | samytessier/group_9_mlops | 774f69354aeb5a9ddb59eb2cf5f8460832ab21b2 | [
"MIT"
] | 1 | 2022-01-20T02:18:16.000Z | 2022-01-20T02:18:16.000Z | setup.py | samytessier/group_9_mlops | 774f69354aeb5a9ddb59eb2cf5f8460832ab21b2 | [
"MIT"
] | 1 | 2022-01-08T17:18:04.000Z | 2022-01-08T17:18:04.000Z | setup.py | samytessier/group_9_mlops | 774f69354aeb5a9ddb59eb2cf5f8460832ab21b2 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='This MLOps project aims to use the Transformers framework from Hugging Face in order to tweak a pre-trained NLP model to accurately gauge the sentiment of an Amazon review (being able ... | 43.363636 | 305 | 0.742138 | 75 | 477 | 4.693333 | 0.746667 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010336 | 0.188679 | 477 | 10 | 306 | 47.7 | 0.899225 | 0 | 0 | 0 | 0 | 0.111111 | 0.656184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7926794343cfee2a3a93c437f389f8d256dd16f9 | 320 | py | Python | Community/get_audit_info/__init__.py | spenney-bc/gateway-workflows | 0311a9224b2d53c01689eb6a9a0a593177abed63 | [
"Apache-2.0"
] | 43 | 2017-12-04T17:38:24.000Z | 2021-12-29T09:17:17.000Z | Community/get_audit_info/__init__.py | spenney-bc/gateway-workflows | 0311a9224b2d53c01689eb6a9a0a593177abed63 | [
"Apache-2.0"
] | 49 | 2017-12-07T21:02:29.000Z | 2022-02-04T22:27:16.000Z | Community/get_audit_info/__init__.py | spenney-bc/gateway-workflows | 0311a9224b2d53c01689eb6a9a0a593177abed63 | [
"Apache-2.0"
] | 82 | 2017-12-04T17:56:00.000Z | 2021-12-29T09:17:21.000Z | # Copyright 2020 BlueCat Networks. All rights reserved.
# -*- coding: utf-8 -*-
type = 'ui'
sub_pages = [
{
'name' : 'get_audit_info_page',
'title' : u'Get Audit Info',
'endpoint' : 'get_audit_info/get_audit_info_endpoint',
'description' : u'get_audit_info'
},
]
| 24.615385 | 65 | 0.56875 | 37 | 320 | 4.621622 | 0.621622 | 0.233918 | 0.350877 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022026 | 0.290625 | 320 | 12 | 66 | 26.666667 | 0.731278 | 0.234375 | 0 | 0 | 0 | 0 | 0.475207 | 0.157025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
792b96690a5711f347a2fe1364e3eef792d1ebea | 1,393 | py | Python | corehq/apps/commtrack/resources/v0_1.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/commtrack/resources/v0_1.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/commtrack/resources/v0_1.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from tastypie import fields
from corehq.apps.api.resources.v0_1 import CustomResourceMeta, DomainAdminAuthentication
from corehq.apps.products.models import Product
from corehq.apps.api.util import get_object_or_not_exist
from corehq.apps.api.resources import HqBaseResource
"""
Implementation of the CommCare Supply A... | 36.657895 | 93 | 0.740847 | 166 | 1,393 | 6.114458 | 0.439759 | 0.082759 | 0.141872 | 0.078818 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002521 | 0.145729 | 1,393 | 37 | 94 | 37.648649 | 0.85042 | 0.008615 | 0 | 0 | 0 | 0 | 0.059856 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0.090909 | 0.863636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7937d7c40eebe24b6b2fbdc5b2fcb247cedd3bed | 1,211 | py | Python | lesson-12/ex1.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | lesson-12/ex1.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | lesson-12/ex1.py | alirsamar/intro-ml | 36450b26b7ea09472ccdd2a0abce51b6c3889a20 | [
"MIT"
] | null | null | null | # Explained Variance of Each PC
#### Boilerplate #################################################################
print __doc__
from time import time
import logging
import pylab as pl
import numpy as np
from sklearn.cross_validation import train_test_split
from sklearn.datasets import fetch_lfw_people
from sklearn... | 26.911111 | 90 | 0.720066 | 171 | 1,211 | 4.847953 | 0.491228 | 0.092883 | 0.033776 | 0.057901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.101569 | 1,211 | 44 | 91 | 27.522727 | 0.746324 | 0.046243 | 0 | 0 | 0 | 0 | 0.037328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.407407 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
793dd777651fda3f7f0226048a22a03099d8826c | 2,110 | py | Python | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | 1 | 2018-03-13T21:16:49.000Z | 2018-03-13T21:16:49.000Z | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | null | null | null | {{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py | digitalashes/django2.0-template | 4387c25fb94cbff4f201b279f2eefcb174658eff | [
"Apache-2.0"
] | null | null | null | {%- if cookiecutter.use_allauth == "y" and cookiecutter.use_rest == "y" %}
from django.contrib.auth import logout as auth_logout
from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import ugettext_lazy as _
from rest_auth.app_settings import create_token
from rest_auth.registration.views... | 27.763158 | 93 | 0.734597 | 238 | 2,110 | 6.327731 | 0.407563 | 0.037185 | 0.045153 | 0.037849 | 0.108234 | 0.108234 | 0.108234 | 0.108234 | 0.077025 | 0.077025 | 0 | 0.002894 | 0.181043 | 2,110 | 75 | 94 | 28.133333 | 0.868634 | 0 | 0 | 0.131579 | 0 | 0 | 0.044329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.105263 | 0.289474 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f70474925eb078c598d03d4255e4e76e7b6c9361 | 420 | py | Python | examples/function_examples/bpod_info.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 1 | 2021-01-18T08:18:22.000Z | 2021-01-18T08:18:22.000Z | examples/function_examples/bpod_info.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 1 | 2020-09-18T20:46:11.000Z | 2020-12-29T14:55:20.000Z | examples/function_examples/bpod_info.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 3 | 2020-09-12T15:32:11.000Z | 2022-03-11T23:08:03.000Z | # !/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Get hardware info from Bpod
"""
from pybpodapi.protocol import Bpod
from confapp import conf
my_bpod = Bpod()
my_bpod.close()
print("Target Bpod firmware version: ", conf.TARGET_BPOD_FIRMWARE_VERSION)
print("Firmware version (read from device): ", my_bpod.hardware.... | 21 | 81 | 0.742857 | 59 | 420 | 5.135593 | 0.440678 | 0.079208 | 0.118812 | 0.165017 | 0.231023 | 0.231023 | 0.231023 | 0 | 0 | 0 | 0 | 0.005464 | 0.128571 | 420 | 19 | 82 | 22.105263 | 0.822404 | 0.161905 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 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 |
f70e20602d9329f0b785241b32a1ae744bf6d702 | 119 | py | Python | number reverser.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | number reverser.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | number reverser.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | a = str(input('Enter the number you want to reverse:'))
b = (a[::-1])
c = int(b)
print('the reversed number is',c)
| 23.8 | 56 | 0.605042 | 22 | 119 | 3.272727 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.193277 | 119 | 4 | 57 | 29.75 | 0.739583 | 0 | 0 | 0 | 0 | 0 | 0.513043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
f719bed52604d78cd372c38b0ba41bc4f013d7b2 | 311 | py | Python | routes/show_bp.py | Silve1ra/fyyur | 580562cc592d587c9bed4f080b856664abb9f70d | [
"MIT"
] | 1 | 2021-09-17T11:56:38.000Z | 2021-09-17T11:56:38.000Z | routes/show_bp.py | Silve1ra/fyyur | 580562cc592d587c9bed4f080b856664abb9f70d | [
"MIT"
] | null | null | null | routes/show_bp.py | Silve1ra/fyyur | 580562cc592d587c9bed4f080b856664abb9f70d | [
"MIT"
] | null | null | null | from flask import Blueprint
from controllers.show import shows, create_shows, create_show_submission
show_bp = Blueprint('show_bp', __name__)
show_bp.route('/', methods=['GET'])(shows)
show_bp.route('/create', methods=['GET'])(create_shows)
show_bp.route('/create', methods=['POST'])(create_show_submission)
| 31.1 | 72 | 0.762058 | 43 | 311 | 5.162791 | 0.348837 | 0.135135 | 0.148649 | 0.144144 | 0.261261 | 0.261261 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073955 | 311 | 9 | 73 | 34.555556 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.102894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
f71b20c6a58525d0ad6e5a5b0ad92dbbdf9f5849 | 1,599 | py | Python | user/tests.py | Vr3n/django_react_cart_system | f6d2572b640f711ff9c7020641051e3f92c3dd59 | [
"MIT"
] | null | null | null | user/tests.py | Vr3n/django_react_cart_system | f6d2572b640f711ff9c7020641051e3f92c3dd59 | [
"MIT"
] | 3 | 2021-06-18T15:13:46.000Z | 2021-06-18T18:24:43.000Z | user/tests.py | Vr3n/django_react_cart_system | f6d2572b640f711ff9c7020641051e3f92c3dd59 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
# Create your tests here.
class UserManagersTests(TestCase):
def test_create_user(self):
User = get_user_model()
user = User.objects.create_user(
email="normal@user.com", password="testing@123")
s... | 34.76087 | 70 | 0.642276 | 174 | 1,599 | 5.770115 | 0.252874 | 0.059761 | 0.101594 | 0.104582 | 0.548805 | 0.384462 | 0.384462 | 0.247012 | 0.14741 | 0.14741 | 0 | 0.010067 | 0.254534 | 1,599 | 45 | 71 | 35.533333 | 0.832215 | 0.014384 | 0 | 0.315789 | 0 | 0 | 0.064803 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.052632 | false | 0.157895 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f735f8fc14c7fe9404c2a5d90d59491063b15f84 | 1,539 | py | Python | pygna/cli.py | Gee-3/pygna | 61f2128e918e423fef73d810e0c3af5761933096 | [
"MIT"
] | 32 | 2019-07-11T22:58:14.000Z | 2022-03-04T19:34:55.000Z | pygna/cli.py | Gee-3/pygna | 61f2128e918e423fef73d810e0c3af5761933096 | [
"MIT"
] | 3 | 2021-05-24T14:03:13.000Z | 2022-01-07T03:47:32.000Z | pygna/cli.py | Gee-3/pygna | 61f2128e918e423fef73d810e0c3af5761933096 | [
"MIT"
] | 5 | 2019-07-24T09:38:07.000Z | 2021-12-30T09:20:20.000Z | import logging
import argh
import pygna.command as cmd
import pygna.painter as paint
import pygna.utils as utils
import pygna.block_model as bm
import pygna.degree_model as dm
"""
autodoc
"""
logging.basicConfig(level=logging.INFO)
def main():
argh.dispatch_commands([
# network summary and graph file
... | 23.676923 | 43 | 0.654321 | 180 | 1,539 | 5.216667 | 0.416667 | 0.059638 | 0.079872 | 0.044728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000899 | 0.277453 | 1,539 | 64 | 44 | 24.046875 | 0.843525 | 0.082521 | 0 | 0 | 0 | 0 | 0.005844 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.023256 | true | 0 | 0.162791 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f74471527dea41ff8d2f932ecbb41c7a4779f9c6 | 894 | py | Python | native/release/test.py | ncbray/pystream | 70bba5646d6512adb6803564c22268d3424c66d8 | [
"Apache-2.0"
] | 6 | 2015-09-19T18:22:33.000Z | 2020-11-29T15:21:17.000Z | native/release/test.py | ncbray/pystream | 70bba5646d6512adb6803564c22268d3424c66d8 | [
"Apache-2.0"
] | 1 | 2015-08-04T08:03:46.000Z | 2015-08-04T08:03:46.000Z | native/release/test.py | ncbray/pystream | 70bba5646d6512adb6803564c22268d3424c66d8 | [
"Apache-2.0"
] | 1 | 2019-12-09T08:27:09.000Z | 2019-12-09T08:27:09.000Z | # Copyright 2011 Nicholas Bray
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 22.35 | 74 | 0.710291 | 162 | 894 | 3.919753 | 0.54321 | 0.094488 | 0.040945 | 0.050394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044959 | 0.178971 | 894 | 39 | 75 | 22.923077 | 0.820163 | 0.615213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f74b23abf6614d599940d2f82ff8df5980edce4e | 378 | py | Python | nmutant_model/retrain_mu_test0.py | asplos2020/DRTest | c3de497142d9b226e518a1a0f95f7350d2f7acd6 | [
"MIT"
] | 1 | 2021-04-01T07:31:17.000Z | 2021-04-01T07:31:17.000Z | nmutant_model/retrain_mu_test0.py | Justobe/DRTest | 85c3c9b2a46cafa7184130f2596c5f9eb3b20bff | [
"MIT"
] | null | null | null | nmutant_model/retrain_mu_test0.py | Justobe/DRTest | 85c3c9b2a46cafa7184130f2596c5f9eb3b20bff | [
"MIT"
] | 1 | 2020-12-24T12:12:54.000Z | 2020-12-24T12:12:54.000Z | import os
import numpy as np
import sys
sys.path.append("../")
for model in ['lenet1', 'lenet4', 'lenet5']:
for attack in ['fgsm', 'cw', 'jsma']:
for mu_var in ['gf', 'nai', 'ns', 'ws']:
os.system('CUDA_VISIBLE_DEVICES=0 python retrain_mu_mnist.py --datasets=mnist --attack=' + attack + ' --mode... | 42 | 178 | 0.600529 | 55 | 378 | 3.981818 | 0.672727 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.190476 | 378 | 9 | 178 | 42 | 0.696078 | 0 | 0 | 0 | 0 | 0 | 0.401055 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
f75e9b9f00f9f84646e14e8f9e1b2be7266630e1 | 365 | py | Python | fate/labeling/txt.py | Mattias1/fate | 10266406336bc4c683ff5b23af32ac3447f7f054 | [
"MIT"
] | null | null | null | fate/labeling/txt.py | Mattias1/fate | 10266406336bc4c683ff5b23af32ac3447f7f054 | [
"MIT"
] | null | null | null | fate/labeling/txt.py | Mattias1/fate | 10266406336bc4c683ff5b23af32ac3447f7f054 | [
"MIT"
] | null | null | null | import re
from .common import regex_labels, re_number, re_string
keywords = ['TODO']
re_keyword = re.compile(r'\b({})\b'.format('|'.join(keywords)))
def init(document):
document.OnGenerateLabeling.add(main)
def main(document):
regex_list = [(re_keyword, 'keyword'), (re_number, 'number'), (re_string, 'stri... | 22.8125 | 88 | 0.70137 | 49 | 365 | 5.020408 | 0.469388 | 0.089431 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128767 | 365 | 15 | 89 | 24.333333 | 0.773585 | 0 | 0 | 0 | 1 | 0 | 0.087671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7603cc1049048de6e8b2c24b0acac1e2d8f0746 | 490 | py | Python | Conteudo das Aulas/146/cgi-bin/cgi4_css_2.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/146/cgi-bin/cgi4_css_2.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/146/cgi-bin/cgi4_css_2.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import cgitb; cgitb.enable()
print('Content-type: text/html\n')
print(
"""<html>
<head>
<title>CGI 4 - CSS</title>
<link rel="stylesheet" type="text/css" href="../css/estilo1.css">
</head>
<body>
<h1>Colocando CSS em um script a parte</h1>
<hr>
<p>Ola imagens CGI!</p>
<di... | 18.846154 | 101 | 0.604082 | 72 | 490 | 4.111111 | 0.736111 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027431 | 0.181633 | 490 | 25 | 102 | 19.6 | 0.710723 | 0.040816 | 0 | 0 | 0 | 0 | 0.316456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
f77623537e19394a7aca74fbc25bffc73cb1952f | 584 | py | Python | Dataset/Leetcode/train/125/245.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/125/245.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/125/245.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, s: str) -> bool:
i=0
j = len(s)-1
#lower()把所有大写字母改成小写,其余不变
s = s.lower()
while i<j:
while not(97 <= ord(s[i]) <= 122 or 48 <= ord(s[i]) <= 57):
if i == j:
return True
i += 1
... | 26.545455 | 71 | 0.332192 | 76 | 584 | 2.552632 | 0.368421 | 0.082474 | 0.103093 | 0.134021 | 0.42268 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.527397 | 584 | 21 | 72 | 27.809524 | 0.615942 | 0.039384 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f77cc067eb5667c5dadfdaf7622c60b024ae8bc5 | 2,004 | py | Python | rlo/test/rlo/test_factory.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 31 | 2021-09-09T16:09:55.000Z | 2022-02-20T02:15:19.000Z | rlo/test/rlo/test_factory.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 40 | 2021-08-06T14:30:08.000Z | 2022-01-19T08:49:52.000Z | rlo/test/rlo/test_factory.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 5 | 2021-08-06T11:20:31.000Z | 2022-01-07T19:39:40.000Z | import pytest
from rlo import factory
@pytest.mark.parametrize("use_subtree_match_edges", [True, False])
@pytest.mark.parametrize("loss", ["pinball=0.6", "huber"])
def test_torch_model_from_config(use_subtree_match_edges, loss):
# Check we can construct a Model
config = {
"num_embeddings": 3,
... | 31.809524 | 68 | 0.657685 | 249 | 2,004 | 4.899598 | 0.285141 | 0.098361 | 0.147541 | 0.196721 | 0.731148 | 0.714754 | 0.690164 | 0.65082 | 0.559016 | 0.559016 | 0 | 0.023672 | 0.22006 | 2,004 | 62 | 69 | 32.322581 | 0.756878 | 0.055888 | 0 | 0.647059 | 0 | 0 | 0.334216 | 0.170021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.039216 | 0 | 0.098039 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
f78287f3fba8bcf7a557dbad608ff12faa053899 | 687 | py | Python | tests/test_gpcontrolset.py | waider/gopro-py-api | b18b5458f5bbe689f468842d6888104317786de8 | [
"MIT"
] | 1 | 2019-05-06T21:48:54.000Z | 2019-05-06T21:48:54.000Z | tests/test_gpcontrolset.py | waider/gopro-py-api | b18b5458f5bbe689f468842d6888104317786de8 | [
"MIT"
] | null | null | null | tests/test_gpcontrolset.py | waider/gopro-py-api | b18b5458f5bbe689f468842d6888104317786de8 | [
"MIT"
] | null | null | null | from .conftest import GoProCameraTest
from socket import timeout
from urllib import error
class GpControlSetTest(GoProCameraTest):
def test_gp_control_set(self):
# on success, this is an empty json blob
self.responses['/gp/gpControl/setting/foo/bar'] = '{}'
assert '{}' == self.goprocam.gp... | 34.35 | 76 | 0.676856 | 81 | 687 | 5.604938 | 0.419753 | 0.066079 | 0.059471 | 0.105727 | 0.557269 | 0.365639 | 0.365639 | 0 | 0 | 0 | 0 | 0 | 0.202329 | 687 | 19 | 77 | 36.157895 | 0.828467 | 0.055313 | 0 | 0 | 0 | 0 | 0.123648 | 0.089645 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.