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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
068b1f15c66f69ca8359ed327b55c6c6ff17f023 | 622 | py | Python | webapp/users/admin.py | Sollimann/momentum_web | f1fb50def9cc8cb59d2303a4b1dba580e32abbd4 | [
"Apache-2.0"
] | null | null | null | webapp/users/admin.py | Sollimann/momentum_web | f1fb50def9cc8cb59d2303a4b1dba580e32abbd4 | [
"Apache-2.0"
] | null | null | null | webapp/users/admin.py | Sollimann/momentum_web | f1fb50def9cc8cb59d2303a4b1dba580e32abbd4 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import User, Startup, Investor, Person, Industry, Sector, Status, Job, Type, Pub_or_priv, Field, Status_interest
# Register your models here.
admin.site.register(Job)
admin.site.register(Type)
admin.site.regist... | 27.043478 | 126 | 0.78135 | 86 | 622 | 5.581395 | 0.302326 | 0.225 | 0.425 | 0.095833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110932 | 622 | 22 | 127 | 28.272727 | 0.867993 | 0.041801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ebf5c15155770eb9ea5b52687c468532e0fca43a | 304 | py | Python | metarecord/admin/_common.py | kerkkoheiskanen/helerm | bdaf801a940d42325a1076b42bb0edef831fbac9 | [
"MIT"
] | null | null | null | metarecord/admin/_common.py | kerkkoheiskanen/helerm | bdaf801a940d42325a1076b42bb0edef831fbac9 | [
"MIT"
] | null | null | null | metarecord/admin/_common.py | kerkkoheiskanen/helerm | bdaf801a940d42325a1076b42bb0edef831fbac9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from metarecord.forms import UTF8HStoreField
class StructuralElementAdmin(admin.ModelAdmin):
def get_form(self, request, obj=None, **kwargs):
kwargs['field_classes'] = {'attributes': UTF8HStoreField}
return super().get_form(request, obj, **kwargs)
| 30.4 | 65 | 0.736842 | 34 | 304 | 6.5 | 0.705882 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.151316 | 304 | 9 | 66 | 33.777778 | 0.848837 | 0 | 0 | 0 | 0 | 0 | 0.075658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 3 |
ebf5dc6136a12e72129121bc1b222eb95eb94df8 | 393 | py | Python | metagrad/dataset.py | nlp-greyfoss/metagrad | 0f32f177ced1478f0c75ad37bace9a9fc4044ba3 | [
"MIT"
] | 7 | 2022-01-27T05:38:02.000Z | 2022-03-30T01:48:00.000Z | metagrad/dataset.py | nlp-greyfoss/metagrad | 0f32f177ced1478f0c75ad37bace9a9fc4044ba3 | [
"MIT"
] | null | null | null | metagrad/dataset.py | nlp-greyfoss/metagrad | 0f32f177ced1478f0c75ad37bace9a9fc4044ba3 | [
"MIT"
] | 2 | 2022-02-22T07:47:02.000Z | 2022-03-22T08:31:59.000Z | from metagrad.tensor import Tensor
class Dataset:
def __getitem__(self, index):
return NotImplementedError
class TensorDataset(Dataset):
def __init__(self, *tensors: Tensor) -> None:
self.tensors = tensors
def __getitem__(self, index):
return tuple(tensor[index] for tensor in s... | 20.684211 | 62 | 0.679389 | 46 | 393 | 5.456522 | 0.456522 | 0.175299 | 0.111554 | 0.151394 | 0.199203 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0033 | 0.229008 | 393 | 18 | 63 | 21.833333 | 0.825083 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
23103d4b9a02c082342855650c49eac36f3a18fd | 1,833 | py | Python | .venv/Lib/site-packages/networkx/algorithms/community/tests/test_modularity_max.py | VeikkaHimmi/Graph-based-Chess | 17ac9b3a04ddf8001a06062fd958b9c95b8dd0ef | [
"MIT"
] | 1 | 2021-08-29T15:23:24.000Z | 2021-08-29T15:23:24.000Z | .venv/Lib/site-packages/networkx/algorithms/community/tests/test_modularity_max.py | VeikkaHimmi/Graph-based-Chess | 17ac9b3a04ddf8001a06062fd958b9c95b8dd0ef | [
"MIT"
] | 25 | 2021-04-17T09:26:47.000Z | 2022-01-02T20:06:55.000Z | .venv/Lib/site-packages/networkx/algorithms/community/tests/test_modularity_max.py | VeikkaHimmi/Graph-based-Chess | 17ac9b3a04ddf8001a06062fd958b9c95b8dd0ef | [
"MIT"
] | 1 | 2021-07-13T21:21:14.000Z | 2021-07-13T21:21:14.000Z | import pytest
import networkx as nx
from networkx.algorithms.community import (
greedy_modularity_communities,
modularity,
naive_greedy_modularity_communities,
)
@pytest.mark.parametrize(
"func", (greedy_modularity_communities, naive_greedy_modularity_communities)
)
def test_modularity_communities(fu... | 32.157895 | 85 | 0.651391 | 260 | 1,833 | 4.426923 | 0.315385 | 0.237185 | 0.258036 | 0.170287 | 0.35013 | 0.320591 | 0.320591 | 0.320591 | 0.320591 | 0.320591 | 0 | 0.082877 | 0.203492 | 1,833 | 56 | 86 | 32.732143 | 0.705479 | 0 | 0 | 0.142857 | 0 | 0 | 0.012002 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
232e477bf5769f97e0803fd86d3d4ff95a4a4ba3 | 253 | py | Python | pyppeteer_stealth/navigator_languages.py | minhle2994/pyppeteer_stealth | ec3fc18f19a913608dc758ca3dbc53b78108e597 | [
"MIT"
] | 1 | 2021-03-19T06:47:45.000Z | 2021-03-19T06:47:45.000Z | pyppeteer_stealth/navigator_languages.py | minhle2994/pyppeteer_stealth | ec3fc18f19a913608dc758ca3dbc53b78108e597 | [
"MIT"
] | null | null | null | pyppeteer_stealth/navigator_languages.py | minhle2994/pyppeteer_stealth | ec3fc18f19a913608dc758ca3dbc53b78108e597 | [
"MIT"
] | 1 | 2021-03-16T18:29:59.000Z | 2021-03-16T18:29:59.000Z | from pyppeteer.page import Page
async def navigator_languages(page: Page) -> None:
await page.evaluateOnNewDocument(
"""
() => {
Object.defineProperty(navigator, 'languages', {
get: () => ['en-US', 'en']
})
}
"""
)
| 18.071429 | 51 | 0.565217 | 23 | 253 | 6.173913 | 0.695652 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 253 | 13 | 52 | 19.461538 | 0.759358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 3 |
235042c6b4d7d263aa03ae573a14b8d948cca641 | 5,250 | py | Python | control/RobotMessages.py | oholsen/hagedag | 4e2881fa1f636228e5cbe76e61fb4b224f0b1e4a | [
"Apache-2.0"
] | null | null | null | control/RobotMessages.py | oholsen/hagedag | 4e2881fa1f636228e5cbe76e61fb4b224f0b1e4a | [
"Apache-2.0"
] | null | null | null | control/RobotMessages.py | oholsen/hagedag | 4e2881fa1f636228e5cbe76e61fb4b224f0b1e4a | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import math
from abc import ABC
import RobotModel
def to_float(s: str) -> Optional[float]:
try:
return float(s)
except ValueError:
return None
def to_int(s: str) -> Optional[int]:
try:
return int(s)
except ValueError:
return None
class Fr... | 22.340426 | 99 | 0.630476 | 654 | 5,250 | 4.799694 | 0.151376 | 0.050972 | 0.052565 | 0.07136 | 0.434533 | 0.336731 | 0.241797 | 0.241797 | 0.186684 | 0.152596 | 0 | 0.007562 | 0.244381 | 5,250 | 234 | 100 | 22.435897 | 0.783716 | 0.030667 | 0 | 0.305732 | 0 | 0 | 0.072638 | 0.035236 | 0 | 0 | 0 | 0 | 0.006369 | 1 | 0.248408 | false | 0.038217 | 0.025478 | 0.11465 | 0.585987 | 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 | 1 | 0 | 0 | 3 |
2358429a00876fd3b1f543278688bfd4461e8adc | 143 | py | Python | wsgi.py | dankolbman/stoic-auth | b76a2c7c2afeae691d195354297bca56e0bb2b5a | [
"MIT"
] | null | null | null | wsgi.py | dankolbman/stoic-auth | b76a2c7c2afeae691d195354297bca56e0bb2b5a | [
"MIT"
] | 9 | 2017-05-02T02:41:16.000Z | 2017-06-26T11:44:37.000Z | wsgi.py | dankolbman/stoic-users | b76a2c7c2afeae691d195354297bca56e0bb2b5a | [
"MIT"
] | null | null | null | import os
from users import create_app
app = create_app(os.getenv('FLASK_CONFIG') or 'development')
if __name__ == "__main__":
app.run()
| 17.875 | 60 | 0.72028 | 21 | 143 | 4.380952 | 0.714286 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 143 | 7 | 61 | 20.428571 | 0.760331 | 0 | 0 | 0 | 0 | 0 | 0.216783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
23584b3b62fae5ca9662a57dfad682d88bbac0e6 | 16,527 | py | Python | pypinksign/pypinkseed.py | bandoche/PyPinkSign | ed1609a9bfdffbfff94cebbacae0984b90c03cad | [
"MIT"
] | 77 | 2015-06-03T15:43:13.000Z | 2022-03-13T06:27:31.000Z | pypinksign/pypinkseed.py | bandoche/PyPinkSign | ed1609a9bfdffbfff94cebbacae0984b90c03cad | [
"MIT"
] | 19 | 2015-06-04T08:47:29.000Z | 2022-01-18T00:15:03.000Z | pypinksign/pypinkseed.py | bandoche/PyPinkSign | ed1609a9bfdffbfff94cebbacae0984b90c03cad | [
"MIT"
] | 26 | 2015-06-09T04:03:21.000Z | 2021-11-10T13:39:41.000Z | # coding=utf-8
import logging
import struct
SS0 = [
0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0, 0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124,
0x1d4d515c, 0x03434340, 0x18081018, 0x1e0e121c, 0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360,
0x28082028, 0x04444044, 0x20002020, 0x1d8d919c, 0x20c0e0e0, 0x2... | 60.98524 | 112 | 0.744479 | 1,598 | 16,527 | 7.650814 | 0.717772 | 0.004417 | 0.001963 | 0.00409 | 0.048749 | 0.038443 | 0.035171 | 0.035171 | 0.031245 | 0.031245 | 0 | 0.53434 | 0.154232 | 16,527 | 270 | 113 | 61.211111 | 0.340321 | 0.003509 | 0 | 0.044843 | 0 | 0.017937 | 0.024719 | 0 | 0 | 0 | 0.636137 | 0 | 0 | 1 | 0.053812 | false | 0 | 0.008969 | 0.03139 | 0.112108 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
235acfb9d2e5f86bf0aed67d957e07a02a87cd2a | 133 | py | Python | src/speechless/utils/logging.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | 1 | 2022-03-17T14:51:41.000Z | 2022-03-17T14:51:41.000Z | src/speechless/utils/logging.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | 14 | 2021-06-23T02:27:22.000Z | 2021-11-27T15:43:39.000Z | src/speechless/utils/logging.py | Exepp/SpeechLess | 6e7424e979f39132650db0d7426c1e9449dc43b8 | [
"MIT"
] | null | null | null | import logging
NULL_LOGGER = logging.getLogger('null')
NULL_LOGGER.handlers = [logging.NullHandler()]
NULL_LOGGER.propagate = False
| 22.166667 | 46 | 0.796992 | 16 | 133 | 6.4375 | 0.5625 | 0.291262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090226 | 133 | 5 | 47 | 26.6 | 0.85124 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
236b9e74ff38d84a0ea66dcf8bb0aaacdade30d4 | 365 | py | Python | chatbot/ichatbot.py | squahtx/hal9000 | 80e13911d0cf240c786f016993cd18bb063e687f | [
"MIT"
] | null | null | null | chatbot/ichatbot.py | squahtx/hal9000 | 80e13911d0cf240c786f016993cd18bb063e687f | [
"MIT"
] | null | null | null | chatbot/ichatbot.py | squahtx/hal9000 | 80e13911d0cf240c786f016993cd18bb063e687f | [
"MIT"
] | null | null | null | from base import abstract
class IChatBot(object):
# Events
@property
def messageReceived(self): pass
# Chat Bot
@property
@abstract
def running(self): pass
@property
@abstract
def commandSystem(self): pass
@abstract
def run(self): pass
# Plugins
@abstract
def addPlugin(self, plugin): pass
@ab... | 14.038462 | 37 | 0.717808 | 45 | 365 | 5.822222 | 0.488889 | 0.209924 | 0.145038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189041 | 365 | 25 | 38 | 14.6 | 0.885135 | 0.063014 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.375 | 0.0625 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
237caaf4c69035d44b933a9f29b4bd854279e400 | 6,613 | py | Python | marvin.py | vrillusions/marvin-jabberbot | d4ba25184269a1569d503b9c66076aedd1d43a47 | [
"MIT"
] | 1 | 2017-09-13T14:24:30.000Z | 2017-09-13T14:24:30.000Z | marvin.py | vrillusions/marvin-jabberbot | d4ba25184269a1569d503b9c66076aedd1d43a47 | [
"MIT"
] | null | null | null | marvin.py | vrillusions/marvin-jabberbot | d4ba25184269a1569d503b9c66076aedd1d43a47 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# vim:ts=4:sw=4:expandtab:ft=python:fileencoding=utf-8
"""Marvin jabber bot.
A jabber bot made to play with jabber, python, etc and hopefully still be
useful.
@todo: use a decorator for admin commands
"""
#__version__ = "$Rev$"
import sys
sys.path.append('lib')
import datetime
import hashlib... | 35.175532 | 88 | 0.628157 | 784 | 6,613 | 5.227041 | 0.355867 | 0.026354 | 0.052709 | 0.027818 | 0.133236 | 0.0898 | 0.07223 | 0.053197 | 0.053197 | 0.025866 | 0 | 0.005062 | 0.253138 | 6,613 | 187 | 89 | 35.363636 | 0.824661 | 0.321488 | 0 | 0.089109 | 0 | 0 | 0.062731 | 0.01107 | 0 | 0 | 0 | 0.005348 | 0 | 1 | 0.227723 | false | 0.079208 | 0.089109 | 0 | 0.534653 | 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 | 1 | 0 | 0 | 3 |
88d833a3a567a1ecb02279a6f3d70a364d4f59be | 302 | py | Python | text/_cascade/formatting/viewport.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_cascade/formatting/viewport.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_cascade/formatting/viewport.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | from ..base import AtRule
"""
Viewport
Area of the canvas document intends to use.
"""
class Viewport(AtRule):
viewport_fit: property
user_zoom: property
orientation: property
min_zoom: property
height_at_viewport: type
width_at_viewport: type
zoom_at_viewport: type
| 14.380952 | 43 | 0.718543 | 39 | 302 | 5.333333 | 0.615385 | 0.144231 | 0.201923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218543 | 302 | 20 | 44 | 15.1 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
88e93c8b9ae0b34ff3ef98341a3972f64310c062 | 295 | py | Python | examples/idioms/programs/173.2427-format-a-number-with-grouped-thousands.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 31 | 2020-05-02T13:34:26.000Z | 2021-06-06T17:25:52.000Z | examples/idioms/programs/173.2427-format-a-number-with-grouped-thousands.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 108 | 2019-11-18T19:41:52.000Z | 2022-03-18T13:58:17.000Z | examples/idioms/programs/173.2427-format-a-number-with-grouped-thousands.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 4 | 2020-05-19T08:57:44.000Z | 2020-09-21T08:53:46.000Z | """Format a number with grouped thousands.
Number will be formatted with a comma separator between every group of thousands.
Source: cup
"""
# Implementation author: cup
# Created on 2018-09-17T20:09:08.888749Z
# Last modified on 2018-09-17T20:09:08.888749Z
# Version 1
print("f'{1000:,}'")
| 21.071429 | 81 | 0.738983 | 46 | 295 | 4.73913 | 0.717391 | 0.055046 | 0.073395 | 0.119266 | 0.220183 | 0.220183 | 0.220183 | 0 | 0 | 0 | 0 | 0.178571 | 0.145763 | 295 | 13 | 82 | 22.692308 | 0.686508 | 0.871186 | 0 | 0 | 0 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
88f4a2ea947ca50e16daec3ac4b2f5c0374005b8 | 199 | py | Python | problem0231.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0231.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0231.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #231 The prime factorisation of binomial coefficients - Project Euler
# https://projecteuler.net/problem=231
#
# Code by Kevin Marciniak
#
###########################
| 22.111111 | 71 | 0.542714 | 18 | 199 | 6 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.115578 | 199 | 8 | 72 | 24.875 | 0.579545 | 0.648241 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
88fd3f533d36eb7a8fc1a622764e12dbb3d01962 | 100 | py | Python | problem01.py | goznauk/ProjectEuler.py | f7118bc0ced3da79a7d9b67af120ad510498798d | [
"MIT"
] | null | null | null | problem01.py | goznauk/ProjectEuler.py | f7118bc0ced3da79a7d9b67af120ad510498798d | [
"MIT"
] | null | null | null | problem01.py | goznauk/ProjectEuler.py | f7118bc0ced3da79a7d9b67af120ad510498798d | [
"MIT"
] | null | null | null |
i = 1
sum = 0
for i in range(1000) :
if i%3==0 :
sum += i
elif i%5==0 :
sum += i
print sum
| 8.333333 | 22 | 0.49 | 23 | 100 | 2.130435 | 0.565217 | 0.163265 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 0.34 | 100 | 11 | 23 | 9.090909 | 0.590909 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc3769928efe814d68a7fb624a6a3e412219f568 | 1,816 | py | Python | src/excision_mail/user.py | Excision-Mail/excision-cli | de747b87f0064a55c85ccb027dba82734b2f76f0 | [
"0BSD"
] | 1 | 2022-02-27T12:56:17.000Z | 2022-02-27T12:56:17.000Z | src/excision_mail/user.py | Excision-Mail/excision-cli | de747b87f0064a55c85ccb027dba82734b2f76f0 | [
"0BSD"
] | null | null | null | src/excision_mail/user.py | Excision-Mail/excision-cli | de747b87f0064a55c85ccb027dba82734b2f76f0 | [
"0BSD"
] | null | null | null | import typing
from .UserManager import UserManager, UStat
from .utils import get_newpass
def user_add(user: str, **kwargs):
um = UserManager(**kwargs)
newpass = get_newpass()
um.user_add(user, newpass)
def user_delete(user: str, **kwargs):
um = UserManager(**kwargs)
um.user_delete(user)
def u... | 22.7 | 49 | 0.655286 | 241 | 1,816 | 4.825726 | 0.174274 | 0.144454 | 0.1135 | 0.226999 | 0.484953 | 0.404127 | 0.404127 | 0.404127 | 0.16853 | 0.16853 | 0 | 0 | 0.204295 | 1,816 | 79 | 50 | 22.987342 | 0.804844 | 0 | 0 | 0.264151 | 0 | 0 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0.113208 | 0.056604 | 0 | 0.283019 | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cc82120a61f0f0a695f2d31129a87b66aa9d1ac2 | 206 | py | Python | balebot/models/constants/errors.py | ehsanbarkhordar/reminder_bot | c72e664c71658dd2ec30bb610ffc836b53f000b9 | [
"MIT"
] | 24 | 2018-07-08T12:17:55.000Z | 2022-03-05T22:00:28.000Z | balebot/models/constants/errors.py | ehsanbarkhordar/reminder_bot | c72e664c71658dd2ec30bb610ffc836b53f000b9 | [
"MIT"
] | 21 | 2018-08-30T03:18:25.000Z | 2022-03-11T23:36:16.000Z | balebot/models/constants/errors.py | ehsanbarkhordar/reminder_bot | c72e664c71658dd2ec30bb610ffc836b53f000b9 | [
"MIT"
] | 12 | 2018-07-07T08:29:12.000Z | 2022-03-05T22:00:05.000Z | class Error:
none_or_invalid_attribute = "main attributes should have value."
unacceptable_json = "json input has unacceptable format."
unacceptable_object_type = "object has unacceptable type"
| 41.2 | 68 | 0.776699 | 25 | 206 | 6.16 | 0.72 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 206 | 4 | 69 | 51.5 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0.470874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
ccc0e578dddcec14d126f92746d3992338f73482 | 439 | py | Python | python/testbed/constant.py | LuaDist/lcms | f6473758511db915ff1762c4aa0115f5de414b3c | [
"MIT"
] | 7 | 2017-06-03T09:01:24.000Z | 2021-12-03T00:06:41.000Z | python/testbed/constant.py | LuaDist/lcms | f6473758511db915ff1762c4aa0115f5de414b3c | [
"MIT"
] | null | null | null | python/testbed/constant.py | LuaDist/lcms | f6473758511db915ff1762c4aa0115f5de414b3c | [
"MIT"
] | 7 | 2015-06-05T06:04:40.000Z | 2022-01-14T10:33:15.000Z |
#
# Sample: Constants
#
from lcms import *
print "D50=", cmsD50_XYZ()
print "D50=", cmsD50_xyY()
Lab = cmsCIELab(70, -3, 45)
print
print Lab
LCh = cmsCIELCh(0, 0, 0)
cmsLab2LCh(LCh, Lab)
print LCh
Lab2 = cmsCIELab(70, 3, 45)
print
print Lab, Lab2
print "dE (Lab) =", cmsDeltaE(Lab, Lab2)
print "dE (CIE94)=", c... | 14.16129 | 46 | 0.651481 | 64 | 439 | 4.4375 | 0.4375 | 0.123239 | 0.169014 | 0.197183 | 0.190141 | 0.190141 | 0.190141 | 0 | 0 | 0 | 0 | 0.089136 | 0.182232 | 439 | 30 | 47 | 14.633333 | 0.70195 | 0.038724 | 0 | 0.125 | 0 | 0 | 0.13012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.6875 | 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 | 1 | 0 | 3 |
aea092b47560bce9d3b91ec63b9c8ac8a00dc301 | 211 | py | Python | python/test.py | mohit2530/LawnSprinklerSystem | dbcc13ea97cf9216898518f4b4eeacb2a2e039df | [
"MIT"
] | 1 | 2020-06-07T03:56:32.000Z | 2020-06-07T03:56:32.000Z | python/test.py | mohit2530/LawnSprinklerSystem | dbcc13ea97cf9216898518f4b4eeacb2a2e039df | [
"MIT"
] | null | null | null | python/test.py | mohit2530/LawnSprinklerSystem | dbcc13ea97cf9216898518f4b4eeacb2a2e039df | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
channel = 21
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(channel, GPIO.OUT)
GPIO.output(channel, GPIO.HIGH)
#time.sleep(5)
#GPIO.output(channel, GPIO.LOW)
| 13.1875 | 31 | 0.748815 | 34 | 211 | 4.647059 | 0.529412 | 0.208861 | 0.21519 | 0.265823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016043 | 0.113744 | 211 | 15 | 32 | 14.066667 | 0.828877 | 0.203791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
aea702dcc09f29b5e785fc8134dedead52170f90 | 145 | py | Python | leimpy/__init__.py | mberz/leimpy | 80783bd73685c29680ca0d173d7e247e08fde8b0 | [
"MIT"
] | null | null | null | leimpy/__init__.py | mberz/leimpy | 80783bd73685c29680ca0d173d7e247e08fde8b0 | [
"MIT"
] | null | null | null | leimpy/__init__.py | mberz/leimpy | 80783bd73685c29680ca0d173d7e247e08fde8b0 | [
"MIT"
] | null | null | null | """Top-level package for leimpy."""
__author__ = """Marco Berzborn"""
__email__ = 'marco.berzborn@akustik.rwth-aachen.de'
__version__ = '0.0.0'
| 24.166667 | 51 | 0.703448 | 19 | 145 | 4.736842 | 0.789474 | 0.288889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.103448 | 145 | 5 | 52 | 29 | 0.669231 | 0.2 | 0 | 0 | 0 | 0 | 0.509091 | 0.336364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aea9cacfd1d4f1a413d1bb430f1a08ee6761f9be | 1,485 | py | Python | src/Node.py | LukasTinnes/VenturePainter | cb1f24fda2a43d402a9c5a401d713af0c950270b | [
"Unlicense"
] | 1 | 2020-05-29T21:09:33.000Z | 2020-05-29T21:09:33.000Z | src/Node.py | LukasTinnes/VenturePainter | cb1f24fda2a43d402a9c5a401d713af0c950270b | [
"Unlicense"
] | 3 | 2020-06-14T11:33:54.000Z | 2022-01-13T03:31:06.000Z | src/Node.py | LukasTinnes/VenturePainter | cb1f24fda2a43d402a9c5a401d713af0c950270b | [
"Unlicense"
] | null | null | null | class Node:
"""
A node in a graph
"""
def __init__(self, identifier):
"""
:param identifier: Identifier is hash of given Shape Object
"""
self.identifier = identifier
self.outgoing_pointers = []
self.incoming_pointers = []
def get_identifier(self):
... | 28.018868 | 81 | 0.584512 | 163 | 1,485 | 5.110429 | 0.282209 | 0.151261 | 0.120048 | 0.072029 | 0.120048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002028 | 0.336027 | 1,485 | 52 | 82 | 28.557692 | 0.842799 | 0.09899 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0 | 0.125 | 0.5625 | 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 | 1 | 0 | 0 | 3 |
aec4a874cf00905f1f3609980c64b8fe4ce94a76 | 245 | bzl | Python | tools/rules/cu.bzl | vuanvin/pytorch | 9267fd8d7395074001ad7cf2a8f28082dbff6b0b | [
"Intel"
] | 5 | 2018-04-24T13:41:12.000Z | 2019-07-09T07:32:09.000Z | tools/rules/cu.bzl | vuanvin/pytorch | 9267fd8d7395074001ad7cf2a8f28082dbff6b0b | [
"Intel"
] | 14 | 2021-10-14T06:58:50.000Z | 2021-12-17T11:51:07.000Z | tools/rules/cu.bzl | vuanvin/pytorch | 9267fd8d7395074001ad7cf2a8f28082dbff6b0b | [
"Intel"
] | 7 | 2020-08-31T22:49:59.000Z | 2020-09-15T14:29:07.000Z | load("@rules_cuda//cuda:defs.bzl", "cuda_library")
NVCC_COPTS = ["--expt-relaxed-constexpr", "--expt-extended-lambda"]
def cu_library(name, srcs, copts = [], **kwargs):
cuda_library(name, srcs = srcs, copts = NVCC_COPTS + copts, **kwargs)
| 35 | 73 | 0.681633 | 33 | 245 | 4.878788 | 0.545455 | 0.136646 | 0.186335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118367 | 245 | 6 | 74 | 40.833333 | 0.74537 | 0 | 0 | 0 | 0 | 0 | 0.342857 | 0.293878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aeeee5a10a98fab576ba078c87f67c66ea7ad43c | 58 | py | Python | autocert/__init__.py | peng22/auto-cert-edited | 074c54d5a75b1440f2e1eee666877748886163ca | [
"MIT"
] | 9 | 2016-12-12T13:56:43.000Z | 2021-03-06T20:33:52.000Z | autocert/__init__.py | peng22/auto-cert-edited | 074c54d5a75b1440f2e1eee666877748886163ca | [
"MIT"
] | null | null | null | autocert/__init__.py | peng22/auto-cert-edited | 074c54d5a75b1440f2e1eee666877748886163ca | [
"MIT"
] | 3 | 2017-09-21T10:18:34.000Z | 2020-05-28T10:48:24.000Z | default_app_config = 'autocert.apps.DjangoAutocertConfig'
| 29 | 57 | 0.862069 | 6 | 58 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 58 | 1 | 58 | 58 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0.586207 | 0.586207 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e029ee2752c82978beb3774ace29901f230219c | 887 | py | Python | moe/tests/bandit/__init__.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 966 | 2015-01-10T05:27:30.000Z | 2022-03-26T21:04:36.000Z | moe/tests/bandit/__init__.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 46 | 2015-01-16T22:33:08.000Z | 2019-09-04T16:33:27.000Z | moe/tests/bandit/__init__.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 143 | 2015-01-07T03:57:19.000Z | 2022-02-28T01:10:45.000Z | # -*- coding: utf-8 -*-
r"""Testing code for the (Python) bandit library.
Testing is done via the Testify package:
https://github.com/Yelp/Testify
This package includes:
* Test cases/test setup files
* Tests for bandit/epsilon: :mod:`moe.tests.bandit.epsilon`
* Tests for bandit/ucb: :mod:`moe.tests.bandit.ucb`
* Tes... | 32.851852 | 120 | 0.742954 | 138 | 887 | 4.724638 | 0.333333 | 0.101227 | 0.118098 | 0.182515 | 0.334356 | 0.263804 | 0.153374 | 0.153374 | 0.153374 | 0.153374 | 0 | 0.001272 | 0.113867 | 887 | 26 | 121 | 34.115385 | 0.828244 | 0.987599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e15f5b181e450626546e852845a4cbf81b6ec86 | 1,537 | py | Python | libs/helpers.py | ggarri/mgit | 50f412de8256250b9219bf68dccdfdba49f41883 | [
"BSD-2-Clause"
] | null | null | null | libs/helpers.py | ggarri/mgit | 50f412de8256250b9219bf68dccdfdba49f41883 | [
"BSD-2-Clause"
] | 13 | 2018-02-16T10:30:23.000Z | 2021-03-25T21:45:21.000Z | libs/helpers.py | ggarri/mgit | 50f412de8256250b9219bf68dccdfdba49f41883 | [
"BSD-2-Clause"
] | null | null | null | import multiprocessing
import traceback
from multiprocessing.pool import Pool
class Color():
_RED = "\033[1;31m"
_BLUE = "\033[1;34m"
_YELLOW = "\033[1;93m"
_CYAN = "\033[1;36xm"
_GREEN = "\033[0;32m"
_RESET = "\033[0;0m"
_BOLD = "\033[;1m"
_REVERSE = "\033[;7m"
@staticmethod
... | 26.964912 | 80 | 0.618738 | 192 | 1,537 | 4.807292 | 0.463542 | 0.043337 | 0.056338 | 0.061755 | 0.087757 | 0.087757 | 0 | 0 | 0 | 0 | 0 | 0.038087 | 0.265452 | 1,537 | 56 | 81 | 27.446429 | 0.779451 | 0.15745 | 0 | 0.102564 | 0 | 0 | 0.063665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0.153846 | 0.74359 | 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 | 1 | 0 | 0 | 3 |
4e3d5adf85688a5226e5acb33eb485f8354d99ba | 68 | py | Python | sphinx_paramlinks/__init__.py | sqlalchemyorg/sphinx-paramlinks | f68e675866b4f549a880e4a3e44da7f854fc6d7f | [
"MIT"
] | 7 | 2019-04-18T21:26:10.000Z | 2021-09-29T07:40:27.000Z | sphinx_paramlinks/__init__.py | sqlalchemyorg/sphinx-paramlinks | f68e675866b4f549a880e4a3e44da7f854fc6d7f | [
"MIT"
] | 13 | 2019-03-04T14:45:23.000Z | 2022-01-18T20:25:05.000Z | sphinx_paramlinks/__init__.py | sqlalchemyorg/sphinx-paramlinks | f68e675866b4f549a880e4a3e44da7f854fc6d7f | [
"MIT"
] | 4 | 2019-03-02T16:22:28.000Z | 2021-02-01T10:18:20.000Z | __version__ = "0.5.1"
from .sphinx_paramlinks import setup # noqa
| 17 | 44 | 0.735294 | 10 | 68 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.161765 | 68 | 3 | 45 | 22.666667 | 0.736842 | 0.058824 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9d8eec371082cc9063dffe5ca06657f41ba3c1ad | 446 | py | Python | powerline/matchers/vim.py | Tuxdude/powerline | 28c1d93b4e460bbc61be852f0ccf6c5416be4faf | [
"MIT"
] | null | null | null | powerline/matchers/vim.py | Tuxdude/powerline | 28c1d93b4e460bbc61be852f0ccf6c5416be4faf | [
"MIT"
] | null | null | null | powerline/matchers/vim.py | Tuxdude/powerline | 28c1d93b4e460bbc61be852f0ccf6c5416be4faf | [
"MIT"
] | null | null | null | # vim:fileencoding=utf-8:noet
from __future__ import absolute_import
import os
from powerline.bindings.vim import getbufvar
def help(matcher_info):
return str(getbufvar(matcher_info['bufnr'], '&buftype')) == 'help'
def cmdwin(matcher_info):
name = matcher_info['buffer'].name
return name and os.path.basename(na... | 22.3 | 71 | 0.744395 | 60 | 446 | 5.35 | 0.5 | 0.205607 | 0.105919 | 0.124611 | 0.323988 | 0.323988 | 0.323988 | 0.323988 | 0.323988 | 0 | 0 | 0.002525 | 0.112108 | 446 | 19 | 72 | 23.473684 | 0.808081 | 0.060538 | 0 | 0 | 0 | 0 | 0.139089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0.2 | 0.9 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9d9095023de48d4bc06f225573477bc60f8a82f6 | 5,648 | py | Python | cal_tools/model.py | JasonCozens/CalTools | 595e338faec3275481d5c0d39f95fd2783b58913 | [
"BSD-2-Clause"
] | null | null | null | cal_tools/model.py | JasonCozens/CalTools | 595e338faec3275481d5c0d39f95fd2783b58913 | [
"BSD-2-Clause"
] | null | null | null | cal_tools/model.py | JasonCozens/CalTools | 595e338faec3275481d5c0d39f95fd2783b58913 | [
"BSD-2-Clause"
] | null | null | null | """Model: A python model of RFC 5545.
=====================================
"""
__author__ = 'Jason'
import datetime
from icalendar import Calendar
from icalendar import Event
ARG_TYPE_INCORRECT = 'Argument should be of type {0}'
REQ_PROP_MISSING = 'Required property {0} is missing'
class CalendarModel():
"""R... | 16.660767 | 69 | 0.424929 | 465 | 5,648 | 5.053763 | 0.249462 | 0.149787 | 0.102128 | 0.131064 | 0.42766 | 0.278723 | 0.264681 | 0.09617 | 0.09617 | 0.051064 | 0 | 0.006153 | 0.453258 | 5,648 | 339 | 70 | 16.660767 | 0.754858 | 0.277975 | 0 | 0.512397 | 0 | 0 | 0.038691 | 0 | 0 | 0 | 0 | 0.047198 | 0.07438 | 1 | 0.289256 | false | 0.132231 | 0.024793 | 0 | 0.429752 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9dbf6549817cbb8a91095d7ff0194305d6aaaedc | 224 | py | Python | tests/test_model.py | Markovvn1/swipio-file-storage | 1eeb031f8afcbbf4056e35bda9ef7799c232724b | [
"Apache-2.0"
] | 29 | 2021-09-25T15:47:45.000Z | 2022-03-16T11:50:46.000Z | tests/test_model.py | Markovvn1/swipio-file-storage | 1eeb031f8afcbbf4056e35bda9ef7799c232724b | [
"Apache-2.0"
] | null | null | null | tests/test_model.py | Markovvn1/swipio-file-storage | 1eeb031f8afcbbf4056e35bda9ef7799c232724b | [
"Apache-2.0"
] | null | null | null | from file_storage.model import Model
def test_user(model: Model):
model.create_user('test01', 'kjhni3j')
assert model.get_user_id('test01', 'kjhni3j') == 1
assert model.get_user_id('test01', 'kjhni3u') is None
| 28 | 57 | 0.714286 | 33 | 224 | 4.636364 | 0.545455 | 0.130719 | 0.183007 | 0.235294 | 0.339869 | 0.339869 | 0 | 0 | 0 | 0 | 0 | 0.052356 | 0.147321 | 224 | 7 | 58 | 32 | 0.748691 | 0 | 0 | 0 | 0 | 0 | 0.174107 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9de34d9d02eaee4a8df729e621c7664b95353d4e | 1,641 | py | Python | scripts/tflite_model_tools/tflite/HardSwishOptions.py | LaudateCorpus1/edgeai-tidl-tools | d98789769a711e5a3700dfdc20d877073bd87da7 | [
"CNRI-Python"
] | 15 | 2021-09-05T03:43:54.000Z | 2022-03-29T14:17:29.000Z | scripts/tflite_model_tools/tflite/HardSwishOptions.py | LaudateCorpus1/edgeai-tidl-tools | d98789769a711e5a3700dfdc20d877073bd87da7 | [
"CNRI-Python"
] | 21 | 2021-09-01T06:58:31.000Z | 2022-03-31T06:33:15.000Z | scripts/tflite_model_tools/tflite/HardSwishOptions.py | LaudateCorpus1/edgeai-tidl-tools | d98789769a711e5a3700dfdc20d877073bd87da7 | [
"CNRI-Python"
] | 6 | 2021-09-22T06:44:19.000Z | 2022-02-07T06:28:35.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class HardSwishOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsHardSwishOptions(cls, buf, offset):
n = flatb... | 27.813559 | 114 | 0.701402 | 158 | 1,641 | 7.177215 | 0.405063 | 0.049383 | 0.021164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006216 | 0.215722 | 1,641 | 58 | 115 | 28.293103 | 0.874903 | 0.094455 | 0 | 0.157895 | 1 | 0 | 0.013523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.026316 | 0.078947 | 0.052632 | 0.578947 | 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 | 1 | 0 | 0 | 3 |
9df120bc9804daf1d86484050a366b8a48b201ef | 23 | py | Python | MetaScreener/external_sw/mgltools/MGLToolsPckgs/Support/version.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | MetaScreener/external_sw/mgltools/MGLToolsPckgs/Support/version.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | MetaScreener/external_sw/mgltools/MGLToolsPckgs/Support/version.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | __version__ = 'latest'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
d192d36a7c59bab97ec409aa7728d0bc8b73b447 | 745 | py | Python | test/ackermann/test_local_ackermann_recursive.py | inesucrvenom/mathfun | 00ad69530c0e49ed4d3ed3687c50f2dff225a919 | [
"MIT"
] | null | null | null | test/ackermann/test_local_ackermann_recursive.py | inesucrvenom/mathfun | 00ad69530c0e49ed4d3ed3687c50f2dff225a919 | [
"MIT"
] | null | null | null | test/ackermann/test_local_ackermann_recursive.py | inesucrvenom/mathfun | 00ad69530c0e49ed4d3ed3687c50f2dff225a919 | [
"MIT"
] | null | null | null | import unittest
from src.lambda_ackermann_recursive import ackermann
import test.ackermann.basetests_ackermann as BT
def call_function(a: int, b: int) -> int:
return ackermann(a, b)
class Test_ValidInput(unittest.TestCase, BT.ValidInput):
def base_function(self, a, b):
return call_function(a, b)
c... | 24.032258 | 70 | 0.731544 | 98 | 745 | 5.316327 | 0.377551 | 0.115163 | 0.074856 | 0.06334 | 0.191939 | 0.191939 | 0.191939 | 0.191939 | 0.191939 | 0.191939 | 0 | 0.006462 | 0.169128 | 745 | 31 | 71 | 24.032258 | 0.835218 | 0 | 0 | 0.222222 | 0 | 0 | 0.010724 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.277778 | false | 0 | 0.166667 | 0.166667 | 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 | 1 | 1 | 0 | 0 | 3 |
d1947d0b30da14be76b47d655c34c7362ffcb907 | 764 | py | Python | opps/articles/search_indexes.py | jeanmask/opps | 031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87 | [
"MIT"
] | 159 | 2015-01-03T16:36:35.000Z | 2022-03-29T20:50:13.000Z | opps/articles/search_indexes.py | jeanmask/opps | 031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87 | [
"MIT"
] | 81 | 2015-01-02T21:26:16.000Z | 2021-05-29T12:24:52.000Z | opps/articles/search_indexes.py | jeanmask/opps | 031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87 | [
"MIT"
] | 75 | 2015-01-23T13:41:03.000Z | 2021-09-24T03:45:23.000Z | # -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from haystack.indexes import Indexable
from opps.containers.search_indexes import ContainerIndex
from .models import Post, Album, Link
migration_date = getattr(settings, 'MIGRATION_DATE', None)
if migration_date:
m_date = ... | 20.648649 | 67 | 0.727749 | 98 | 764 | 5.540816 | 0.44898 | 0.095764 | 0.143646 | 0.160221 | 0.324125 | 0.243094 | 0.243094 | 0 | 0 | 0 | 0 | 0.00159 | 0.176702 | 764 | 36 | 68 | 21.222222 | 0.861685 | 0.027487 | 0 | 0.15 | 0 | 0 | 0.02969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0.15 | 0.7 | 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 | 1 | 1 | 0 | 0 | 3 |
d1bf5602426fbfd5e2db0c13f44a79d66ea7155c | 299 | py | Python | hackerrank/Algorithms/Fair Rations/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Fair Rations/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Fair Rations/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.fairRations([2, 3, 4, 5, 6]), 4)
def test_case_1(self):
self.assertEqual(solution.fairRations([1, 2]), 'NO')
if __name__ == '__main__':
unittest.main()
| 18.6875 | 66 | 0.662207 | 40 | 299 | 4.65 | 0.575 | 0.075269 | 0.11828 | 0.290323 | 0.408602 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041494 | 0.19398 | 299 | 15 | 67 | 19.933333 | 0.73029 | 0 | 0 | 0 | 0 | 0 | 0.033445 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d1c493bae01750d219a4f02a0d2ddf3e9e06f54b | 758 | py | Python | examples.py | CITGuru/cssjson | b51d3384642e0ec8625ff4e790a523cb848a25e7 | [
"MIT"
] | 4 | 2019-04-04T01:26:04.000Z | 2021-11-22T23:35:07.000Z | examples.py | CITGuru/cssjson | b51d3384642e0ec8625ff4e790a523cb848a25e7 | [
"MIT"
] | null | null | null | examples.py | CITGuru/cssjson | b51d3384642e0ec8625ff4e790a523cb848a25e7 | [
"MIT"
] | null | null | null | from cssjson import toJSON, toCSS
css = toJSON("example.css", path=True)
# print(css)
# json = toCSS({'rules': {u'.morris-hover.morris-default-style .morris-hover-row-label': {'attr': {u'font-weight': u'bold', u'margin': u'0.25em 0'}}, u'.morris-hover.morris-default-style': {'attr': {u'border-radius': u'10px', u'font-... | 94.75 | 640 | 0.649077 | 133 | 758 | 3.699248 | 0.43609 | 0.134146 | 0.097561 | 0.109756 | 0.227642 | 0.227642 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0.06087 | 0.08971 | 758 | 7 | 641 | 108.285714 | 0.652174 | 0.854881 | 0 | 0 | 0 | 0 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d1c8dafbcabaaad009617c7bbf6e5775e7e7e702 | 1,199 | py | Python | flaskd3/domains/repositoryif/data_source_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | flaskd3/domains/repositoryif/data_source_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | flaskd3/domains/repositoryif/data_source_repository.py | hohihohi/flask_ddd_sample | 34bd1af4614577be0a6b410250f2d58d2c6f3b93 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
# NOTE: domain service concern with domain and business logic, so call them and has responsibility.
class DataSourceRepositoryIF(metaclass=ABCMeta):
# find data source by id from database. This method should return data source object or None
@abstractmethod
def find... | 34.257143 | 103 | 0.723937 | 165 | 1,199 | 5.193939 | 0.290909 | 0.151692 | 0.126021 | 0.168028 | 0.551925 | 0.551925 | 0.512252 | 0.331389 | 0.184364 | 0.184364 | 0 | 0 | 0.233528 | 1,199 | 34 | 104 | 35.264706 | 0.932535 | 0.549625 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.3 | 0.05 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d1da50bbe125aec03fdc0a745255737e832493a4 | 1,332 | py | Python | musictools.py | kenmurrell/AraAraBot | 5d2845967ba6ab2fe946dcc9d70253e85899aee6 | [
"MIT"
] | null | null | null | musictools.py | kenmurrell/AraAraBot | 5d2845967ba6ab2fe946dcc9d70253e85899aee6 | [
"MIT"
] | null | null | null | musictools.py | kenmurrell/AraAraBot | 5d2845967ba6ab2fe946dcc9d70253e85899aee6 | [
"MIT"
] | null | null | null | import os
from datetime import timedelta
from typing import Any
class Track(object):
def __init__(self, id: str, title: str, url: str, duration: Any, filename: str):
self.id = id
self.title = title
self.url = url
self.duration = int(duration)
self.filename = filename
... | 25.615385 | 97 | 0.583333 | 162 | 1,332 | 4.740741 | 0.314815 | 0.09375 | 0.033854 | 0.044271 | 0.109375 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0.003148 | 0.284535 | 1,332 | 51 | 98 | 26.117647 | 0.802728 | 0 | 0 | 0.052632 | 0 | 0 | 0.073574 | 0.044294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0 | 0.078947 | 0.131579 | 0.552632 | 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 | 1 | 0 | 0 | 3 |
d1f0f3eeb92af56dee61c16766f1a1722f0deeae | 298 | py | Python | src/badgr/datasets/dataset.py | KaiW-53/badgr | 6184302f156a7bc624af57b2521b1e89ffd6523d | [
"MIT"
] | 110 | 2020-02-14T05:25:08.000Z | 2022-03-15T07:40:52.000Z | src/badgr/datasets/dataset.py | KaiW-53/badgr | 6184302f156a7bc624af57b2521b1e89ffd6523d | [
"MIT"
] | 15 | 2020-03-12T12:49:54.000Z | 2022-03-12T00:14:51.000Z | src/badgr/datasets/dataset.py | KaiW-53/badgr | 6184302f156a7bc624af57b2521b1e89ffd6523d | [
"MIT"
] | 38 | 2020-02-21T02:32:40.000Z | 2022-02-28T17:54:56.000Z | class Dataset(object):
def __init__(self, env_spec):
self._env_spec = env_spec
def get_batch(self, batch_size, horizon):
raise NotImplementedError
def get_batch_iterator(self, batch_size, horizon, randomize_order=False, is_tf=True):
raise NotImplementedError
| 27.090909 | 89 | 0.718121 | 38 | 298 | 5.236842 | 0.552632 | 0.105528 | 0.110553 | 0.201005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204698 | 298 | 10 | 90 | 29.8 | 0.839662 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d1fa1f600828ea34160aee8b2f390239887cb5dc | 87 | py | Python | hu_wiwi_grades/__init__.py | NDelventhal/hu_wiwi_grades | b66290a604697d615da07c1b75d9f97df9b97bd1 | [
"MIT"
] | 1 | 2020-10-28T17:15:20.000Z | 2020-10-28T17:15:20.000Z | hu_wiwi_grades/__init__.py | NDelventhal/hu_wiwi_grades | b66290a604697d615da07c1b75d9f97df9b97bd1 | [
"MIT"
] | null | null | null | hu_wiwi_grades/__init__.py | NDelventhal/hu_wiwi_grades | b66290a604697d615da07c1b75d9f97df9b97bd1 | [
"MIT"
] | null | null | null | from .hu_wiwi_grades import *
__version__ = '0.1.0'
__author__ = 'Niall Delventhal' | 21.75 | 31 | 0.724138 | 12 | 87 | 4.416667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.16092 | 87 | 4 | 31 | 21.75 | 0.684932 | 0 | 0 | 0 | 0 | 0 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ae1519ed5482310be0681e16e354248ad461cfae | 65 | py | Python | settings.py | SecurityCompass/LabServer | 757ce46146b39d1fbaf2f5400ff782a56b6de180 | [
"BSD-4-Clause"
] | 15 | 2015-03-28T12:40:08.000Z | 2020-08-27T09:01:00.000Z | settings.py | SecurityCompass/LabServer | 757ce46146b39d1fbaf2f5400ff782a56b6de180 | [
"BSD-4-Clause"
] | 2 | 2016-08-10T05:00:12.000Z | 2017-05-08T11:23:03.000Z | settings.py | SecurityCompass/LabServer | 757ce46146b39d1fbaf2f5400ff782a56b6de180 | [
"BSD-4-Clause"
] | 20 | 2015-01-10T21:32:28.000Z | 2022-02-27T14:28:40.000Z | import datetime
SESSION_LIFETIME = datetime.timedelta(minutes=5)
| 21.666667 | 48 | 0.846154 | 8 | 65 | 6.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.076923 | 65 | 2 | 49 | 32.5 | 0.883333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ae22b92b0c597ef83fc3894e6c96f13a5fe6ee0f | 251 | py | Python | news_search/utils/big2gbk.py | luzy99/news-spider | 397b355e56a3a39b98bc8710e523bab9e6bedc8d | [
"MIT"
] | 6 | 2020-12-21T07:35:06.000Z | 2022-01-03T09:07:36.000Z | news_search/utils/big2gbk.py | luzy99/news-spider | 397b355e56a3a39b98bc8710e523bab9e6bedc8d | [
"MIT"
] | 2 | 2020-12-21T07:35:02.000Z | 2022-02-26T14:25:23.000Z | news_search/utils/big2gbk.py | luzy99/news-spider | 397b355e56a3a39b98bc8710e523bab9e6bedc8d | [
"MIT"
] | 1 | 2022-01-03T09:07:37.000Z | 2022-01-03T09:07:37.000Z | from ..utils.langconv import Converter
def Traditional2Simplified(sentence):
'''
将sentence中的繁体字转为简体字
:param sentence: 待转换的句子
:return: 将句子中繁体字转换为简体字之后的句子
'''
sentence = Converter('zh-hans').convert(sentence)
return sentence | 25.1 | 53 | 0.713147 | 22 | 251 | 8.136364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.187251 | 251 | 10 | 54 | 25.1 | 0.872549 | 0.282869 | 0 | 0 | 0 | 0 | 0.044586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae24b71bafc9ef4a33f8e7a98d61884afa5b6ec1 | 12,600 | py | Python | Parser/language.py | JellevanCappelle/OrganisedAssembly | 171a7bb23b4681f6b489a4e30c438f3a5c599953 | [
"MIT"
] | null | null | null | Parser/language.py | JellevanCappelle/OrganisedAssembly | 171a7bb23b4681f6b489a4e30c438f3a5c599953 | [
"MIT"
] | null | null | null | Parser/language.py | JellevanCappelle/OrganisedAssembly | 171a7bb23b4681f6b489a4e30c438f3a5c599953 | [
"MIT"
] | null | null | null | from arpeggio import Optional, ZeroOrMore, OneOrMore, Sequence, Not, EOF
from arpeggio import RegExMatch as regex
from arpeggio import ParserPython
from arpeggio import NonTerminal
from arpeggio.export import PTDOTExporter
import sys
import json
# load instructions and other keywords
with open("keywords/keywords.txt",... | 48.461538 | 199 | 0.705317 | 1,342 | 12,600 | 6.611773 | 0.266766 | 0.025245 | 0.020286 | 0.004959 | 0.064465 | 0.040347 | 0.02795 | 0.016229 | 0 | 0 | 0 | 0.002282 | 0.130635 | 12,600 | 259 | 200 | 48.648649 | 0.807741 | 0.063254 | 0 | 0.014634 | 0 | 0 | 0.068869 | 0.008322 | 0 | 0 | 0 | 0.003861 | 0 | 1 | 0.614634 | false | 0 | 0.034146 | 0.6 | 0.668293 | 0.009756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
ae31be8e856a95060490f13ddb843abee281c1b1 | 149 | py | Python | music/index/urls.py | xeroCBW/music | ba73151b35dbc898cfb56f1576aa7695f2d61fe9 | [
"MIT"
] | null | null | null | music/index/urls.py | xeroCBW/music | ba73151b35dbc898cfb56f1576aa7695f2d61fe9 | [
"MIT"
] | null | null | null | music/index/urls.py | xeroCBW/music | ba73151b35dbc898cfb56f1576aa7695f2d61fe9 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf.urls import url,include
from . import views
urlpatterns = [
path('',views.indexView,name='index'),
] | 16.555556 | 40 | 0.744966 | 21 | 149 | 5.285714 | 0.619048 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127517 | 149 | 9 | 41 | 16.555556 | 0.853846 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ae4dcbc52db941dc67aff0c2860e366a5c3e5bf2 | 5,187 | py | Python | test/env.py | personnelink/shellish | f130599aabe1ed44323b2374c9e6c3b789f06517 | [
"MIT"
] | 4 | 2015-10-06T23:50:20.000Z | 2021-06-11T19:20:43.000Z | test/env.py | personnelink/shellish | f130599aabe1ed44323b2374c9e6c3b789f06517 | [
"MIT"
] | null | null | null | test/env.py | personnelink/shellish | f130599aabe1ed44323b2374c9e6c3b789f06517 | [
"MIT"
] | null | null | null | import shellish
import unittest
import os
class EnvTests(unittest.TestCase):
def setUp(self):
self.env_save = env = os.environ
os.environ = env.copy()
def tearDown(self):
os.environ = self.env_save
def setenv(self, key, value):
os.environ[key] = value
def test_simpl... | 40.523438 | 78 | 0.598226 | 674 | 5,187 | 4.437685 | 0.117211 | 0.140421 | 0.068205 | 0.100301 | 0.774992 | 0.752257 | 0.715814 | 0.65998 | 0.634905 | 0.630558 | 0 | 0.001525 | 0.241373 | 5,187 | 127 | 79 | 40.84252 | 0.758577 | 0.01523 | 0 | 0.580357 | 0 | 0 | 0.177151 | 0 | 0 | 0 | 0 | 0 | 0.258929 | 1 | 0.116071 | false | 0 | 0.026786 | 0 | 0.151786 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
ae521337f687430076fe39a23aa7b0ef18f830e4 | 830 | py | Python | job/migrations/0004_auto_20210302_0817.py | zakiladj/django-job-board | 1ca5297d5bb1cfbc3e58ad0db540e2c03e453622 | [
"MIT"
] | null | null | null | job/migrations/0004_auto_20210302_0817.py | zakiladj/django-job-board | 1ca5297d5bb1cfbc3e58ad0db540e2c03e453622 | [
"MIT"
] | null | null | null | job/migrations/0004_auto_20210302_0817.py | zakiladj/django-job-board | 1ca5297d5bb1cfbc3e58ad0db540e2c03e453622 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-02 08:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('job', '0003_job_discription'),
]
operations = [
migrations.AddField(
model_name='job',
name='experience',
... | 24.411765 | 54 | 0.542169 | 78 | 830 | 5.666667 | 0.512821 | 0.162896 | 0.208145 | 0.244344 | 0.447964 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0.040146 | 0.339759 | 830 | 33 | 55 | 25.151515 | 0.766423 | 0.054217 | 0 | 0.518519 | 1 | 0 | 0.0894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae81f849daed5b3ef1310ac1cc11d34560a76831 | 83 | py | Python | code/extract.py | kobigurk/hadeshash | 4f820638fd4d104ce970f42665ea8389428941a9 | [
"MIT"
] | null | null | null | code/extract.py | kobigurk/hadeshash | 4f820638fd4d104ce970f42665ea8389428941a9 | [
"MIT"
] | null | null | null | code/extract.py | kobigurk/hadeshash | 4f820638fd4d104ce970f42665ea8389428941a9 | [
"MIT"
] | null | null | null | import sys
array = eval(sys.argv[1])
index = int(sys.argv[2])
print(array[index])
| 13.833333 | 25 | 0.686747 | 15 | 83 | 3.8 | 0.666667 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.120482 | 83 | 5 | 26 | 16.6 | 0.753425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae93ce46e7d617099f65e817e3f5f9921c3d198e | 569 | py | Python | tests/test_json_field.py | mixcloud/django-extensions | 32d69b214cd4d2e8861f0e1dac8a9e2fc8112c92 | [
"MIT"
] | 1 | 2015-08-10T16:03:34.000Z | 2015-08-10T16:03:34.000Z | tests/test_json_field.py | mixcloud/django-extensions | 32d69b214cd4d2e8861f0e1dac8a9e2fc8112c92 | [
"MIT"
] | null | null | null | tests/test_json_field.py | mixcloud/django-extensions | 32d69b214cd4d2e8861f0e1dac8a9e2fc8112c92 | [
"MIT"
] | 1 | 2019-11-02T03:07:07.000Z | 2019-11-02T03:07:07.000Z | from django.test import TestCase
from .testapp.models import JSONFieldTestModel
class JsonFieldTest(TestCase):
def test_char_field_create(self):
j = JSONFieldTestModel.objects.create(a=6, j_field=dict(foo='bar'))
self.assertEqual(j.a, 6)
def test_default(self):
j = JSONFieldTestModel... | 29.947368 | 75 | 0.68717 | 75 | 569 | 5.066667 | 0.386667 | 0.078947 | 0.181579 | 0.236842 | 0.444737 | 0.328947 | 0.231579 | 0.231579 | 0.231579 | 0 | 0 | 0.008677 | 0.189807 | 569 | 18 | 76 | 31.611111 | 0.815618 | 0 | 0 | 0 | 0 | 0 | 0.005272 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae99fbdd88f77bd0e3bd6efbe884f2bbca0dc040 | 286 | py | Python | tests/features/swrl_parser.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | tests/features/swrl_parser.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | tests/features/swrl_parser.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | from lettuce import step, world
@step("the empty xml swrl document")
def step_impl(step):
"""
:type step lettuce.core.Step
"""
pass
@step("I retrieve (\d+)")
def step_impl(step, expected):
"""
:type step lettuce.core.Step
"""
assert int(expected) == 1 | 17.875 | 36 | 0.611888 | 39 | 286 | 4.435897 | 0.564103 | 0.080925 | 0.127168 | 0.17341 | 0.265896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.234266 | 286 | 16 | 37 | 17.875 | 0.785388 | 0.199301 | 0 | 0 | 0 | 0 | 0.21608 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ae9bd0aecf76dd350dbfdaab98699a2fd3a080de | 1,050 | py | Python | ezdisteach/formats/_odpcourse.py | call-learning/ez-disteach | 7636dfdbfb709769824266800ebba18be764ecc3 | [
"MIT"
] | null | null | null | ezdisteach/formats/_odpcourse.py | call-learning/ez-disteach | 7636dfdbfb709769824266800ebba18be764ecc3 | [
"MIT"
] | null | null | null | ezdisteach/formats/_odpcourse.py | call-learning/ez-disteach | 7636dfdbfb709769824266800ebba18be764ecc3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" EZDisTeach ODP Course format support
"""
from io import BufferedWriter
import zipfile
import tempfile
from odfdo import Document
title = 'odpcourse'
extensions = ('odp',)
def export_stream(model, **kwargs):
pass
def import_stream(model, in_stream, **kwargs):
from ezdisteach.lib... | 22.826087 | 68 | 0.674286 | 141 | 1,050 | 4.93617 | 0.489362 | 0.063218 | 0.056034 | 0.054598 | 0.146552 | 0.074713 | 0 | 0 | 0 | 0 | 0 | 0.00122 | 0.219048 | 1,050 | 45 | 69 | 23.333333 | 0.847561 | 0.266667 | 0 | 0.12 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.12 | 0.32 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
8833f27d96c22c3458969f7920839174a4ffbb04 | 8,680 | py | Python | recommend/eusolver/scripts/job_list_icfp_one_shot.py | jiry17/IntSy | 36333489b77ff2fbe84e6440be1f6b84eb61f29e | [
"MIT"
] | 7 | 2020-03-01T12:07:44.000Z | 2021-10-20T02:34:59.000Z | recommend/esolver/scripts/job_list_icfp_one_shot.py | jiry17/PolyGen | b384e478ec91299d6a14f4681ff3e0850911822b | [
"MIT"
] | 1 | 2020-05-25T22:08:35.000Z | 2020-05-25T22:08:35.000Z | recommend/eusolver/scripts/job_list_icfp_one_shot.py | jiry17/IntSy | 36333489b77ff2fbe84e6440be1f6b84eb61f29e | [
"MIT"
] | 1 | 2021-12-01T08:18:21.000Z | 2021-12-01T08:18:21.000Z | # job_list_one_shot.py ---
#
# Filename: job_list_one_shot.py
# Author: Abhishek Udupa
# Created: Tue Jan 26 15:13:19 2016 (-0500)
#
#
# Copyright (c) 2015, Abhishek Udupa, University of Pennsylvania
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permit... | 91.368421 | 139 | 0.679147 | 1,332 | 8,680 | 4.193694 | 0.153153 | 0.129073 | 0.143215 | 0.179019 | 0.715002 | 0.494271 | 0.494271 | 0.494271 | 0.486753 | 0.486753 | 0 | 0.136334 | 0.101728 | 8,680 | 94 | 140 | 92.340426 | 0.580095 | 0.213825 | 0 | 0 | 0 | 0 | 0.728037 | 0.383107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8837ad39acde490761f8eb38f1f73c2261c8bb92 | 704 | py | Python | telnet.py | melihteke/istihza | 473fc094229f985882dd4eb19190bdcaaf540fdd | [
"MIT"
] | null | null | null | telnet.py | melihteke/istihza | 473fc094229f985882dd4eb19190bdcaaf540fdd | [
"MIT"
] | null | null | null | telnet.py | melihteke/istihza | 473fc094229f985882dd4eb19190bdcaaf540fdd | [
"MIT"
] | null | null | null | import getpass
import telnetlib
HOST = "192.168.178.55"
user = input("Enter your telnet username: ")
password = getpass.getpass()
tn = telnetlib.Telnet(HOST)
tn.read_until(b"Username: ")
tn.write(user.encode('ascii') + b"\n")
if password:
tn.read_until(b"Password: ")
tn.write(password.encode('ascii') + b"\n"... | 24.275862 | 53 | 0.680398 | 144 | 704 | 3.305556 | 0.333333 | 0.191176 | 0.184874 | 0.207983 | 0.212185 | 0.212185 | 0.088235 | 0.088235 | 0 | 0 | 0 | 0.106349 | 0.105114 | 704 | 28 | 54 | 25.142857 | 0.649206 | 0 | 0 | 0 | 0 | 0 | 0.383523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.217391 | 0.086957 | 0 | 0.086957 | 0.043478 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
885172e6c8a759ae8c92f4d1bbabea08200991e9 | 160 | py | Python | system_test/utils/timeutils.py | OpenPOWER-BigData/HDP--kafka | 87d4fc2721658a342854bb1ce3c366bcb3ac1219 | [
"Apache-2.0"
] | null | null | null | system_test/utils/timeutils.py | OpenPOWER-BigData/HDP--kafka | 87d4fc2721658a342854bb1ce3c366bcb3ac1219 | [
"Apache-2.0"
] | null | null | null | system_test/utils/timeutils.py | OpenPOWER-BigData/HDP--kafka | 87d4fc2721658a342854bb1ce3c366bcb3ac1219 | [
"Apache-2.0"
] | null | null | null | import logging
import time
logger = logging.getLogger("namedLogger")
def sleep(secs):
logger.info("Sleeping for %d seconds.", secs)
time.sleep(secs)
| 16 | 49 | 0.7125 | 21 | 160 | 5.428571 | 0.666667 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 160 | 9 | 50 | 17.777778 | 0.850746 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
88537af77eb257c05e51b7eaaf9e88b1deb7291c | 151 | py | Python | Dataset/Leetcode/test/136/516.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/136/516.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/136/516.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def singleNumber(self, nums: List[int]) -> int:
a = itertools.accumulate(nums,lambda t,x:t^x)
return list(a)[-1]
| 25.166667 | 53 | 0.609272 | 22 | 151 | 4.181818 | 0.727273 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.238411 | 151 | 5 | 54 | 30.2 | 0.791304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
885de76375c8d740af85d3a0512ce4681e4bc81a | 176 | py | Python | minigest/docfisc/admin/fattura_riepilogo_iva.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | minigest/docfisc/admin/fattura_riepilogo_iva.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | 1 | 2021-09-22T19:10:20.000Z | 2021-09-22T19:10:20.000Z | minigest/docfisc/admin/fattura_riepilogo_iva.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | from django.contrib import admin
from ..models import FatturaRiepilogoIVA
class FatturaRiepilogoIVAAdmin(admin.StackedInline):
model = FatturaRiepilogoIVA
extra = 0
| 19.555556 | 52 | 0.795455 | 17 | 176 | 8.235294 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.153409 | 176 | 8 | 53 | 22 | 0.932886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
886702c11459b011afe2118a0a32eb0ae0729bf4 | 425 | py | Python | bioimageit_framework/framework/__init__.py | bioimageit/bioimageit_framework | 718e259d1490a8afc18794abae5a17eb41ada88f | [
"BSD-4-Clause"
] | null | null | null | bioimageit_framework/framework/__init__.py | bioimageit/bioimageit_framework | 718e259d1490a8afc18794abae5a17eb41ada88f | [
"BSD-4-Clause"
] | null | null | null | bioimageit_framework/framework/__init__.py | bioimageit/bioimageit_framework | 718e259d1490a8afc18794abae5a17eb41ada88f | [
"BSD-4-Clause"
] | null | null | null | from .exceptions import CommandArgsError
from .framework import (BiAction, BiContainer, BiActuator,
BiComponent, BiConnectome)
from .observer import (BiGuiObserver)
__all__ = ['CommandArgsError',
'BiObject',
'BiAction',
'BiContainer',
... | 30.357143 | 61 | 0.550588 | 25 | 425 | 9.2 | 0.56 | 0.165217 | 0.252174 | 0.347826 | 0.452174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.362353 | 425 | 13 | 62 | 32.692308 | 0.848708 | 0 | 0 | 0 | 0 | 0 | 0.209412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 3 |
8874947f5d54bdcebbc0269d0a29814f3e85156c | 651 | py | Python | app/forms.py | alexmacniven/mega-flask-blog | 6138a5b339d2c505707d16b124e3b9d69dbe23bd | [
"MIT"
] | null | null | null | app/forms.py | alexmacniven/mega-flask-blog | 6138a5b339d2c505707d16b124e3b9d69dbe23bd | [
"MIT"
] | null | null | null | app/forms.py | alexmacniven/mega-flask-blog | 6138a5b339d2c505707d16b124e3b9d69dbe23bd | [
"MIT"
] | null | null | null | # WTF uses a class to represent a traditional form.
# The class LoginForm describes the fields of our form. Note; we're
# paying no attention to the appearance of the form just yet.
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
# DataRequired ensures that a us... | 43.4 | 73 | 0.77573 | 82 | 651 | 6.134146 | 0.597561 | 0.055666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149002 | 651 | 14 | 74 | 46.5 | 0.907942 | 0.371736 | 0 | 0 | 0 | 0 | 0.084158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.375 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
887badb10aad64fce501f3d46c434e85e2dd88d2 | 1,906 | py | Python | torchaddons/distributions/_categorical.py | jakkes/torchaddons | 3a93b4c3ad026e208a3836c61159d9fd54694dd2 | [
"MIT"
] | null | null | null | torchaddons/distributions/_categorical.py | jakkes/torchaddons | 3a93b4c3ad026e208a3836c61159d9fd54694dd2 | [
"MIT"
] | null | null | null | torchaddons/distributions/_categorical.py | jakkes/torchaddons | 3a93b4c3ad026e208a3836c61159d9fd54694dd2 | [
"MIT"
] | null | null | null | from typing import Tuple
import torch
import torchaddons
from torchaddons import distributions
class Categorical(distributions.Base):
"""Categorical distribution."""
def __init__(self, probabilities: torch.Tensor) -> None:
"""Creates a categorical distribution.
Args:
probabilit... | 32.305085 | 91 | 0.657922 | 203 | 1,906 | 6.039409 | 0.330049 | 0.073409 | 0.034258 | 0.027732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00411 | 0.233998 | 1,906 | 58 | 92 | 32.862069 | 0.835616 | 0.121196 | 0 | 0.166667 | 0 | 0 | 0.073186 | 0.015375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.111111 | 0.138889 | 0.611111 | 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 | 1 | 0 | 0 | 3 |
889d41e73a80584b6a4009c626596eae5e82d357 | 280 | py | Python | granule_ingester/granule_ingester/writers/DataStore.py | kevinmarlis/incubator-sdap-ingester | 7ee17fdf16201c499f7bd35cf398844f2c70f046 | [
"Apache-2.0"
] | null | null | null | granule_ingester/granule_ingester/writers/DataStore.py | kevinmarlis/incubator-sdap-ingester | 7ee17fdf16201c499f7bd35cf398844f2c70f046 | [
"Apache-2.0"
] | 1 | 2021-05-03T22:13:11.000Z | 2021-05-03T22:13:11.000Z | granule_ingester/granule_ingester/writers/DataStore.py | kevinmarlis/incubator-sdap-ingester | 7ee17fdf16201c499f7bd35cf398844f2c70f046 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from nexusproto import DataTile_pb2 as nexusproto
from granule_ingester.healthcheck import HealthCheck
class DataStore(HealthCheck, ABC):
@abstractmethod
def save_data(self, nexus_tile: nexusproto.NexusTile) -> None:
pass
| 20 | 66 | 0.775 | 33 | 280 | 6.454545 | 0.666667 | 0.159624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.171429 | 280 | 13 | 67 | 21.538462 | 0.913793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
ee2d0ac8671e29603bfe74c0df09ec905ea9badc | 813 | py | Python | test/test_get_info_edit_page.py | smagdenko/addressbook | da7bcbfe7d5f565b4eb857dcdddd2a9699e5e5e6 | [
"Apache-2.0"
] | null | null | null | test/test_get_info_edit_page.py | smagdenko/addressbook | da7bcbfe7d5f565b4eb857dcdddd2a9699e5e5e6 | [
"Apache-2.0"
] | null | null | null | test/test_get_info_edit_page.py | smagdenko/addressbook | da7bcbfe7d5f565b4eb857dcdddd2a9699e5e5e6 | [
"Apache-2.0"
] | null | null | null |
def test_contacts_on_home_page(app):
contact_from_home_page = app.contact.get_contacts_list()[1]
contact_from_edit_page = app.contact.get_info_from_edit_page(1)
assert contact_from_edit_page.email_1 == contact_from_home_page.email_1
assert contact_from_edit_page.email_2 == contact_from_home_page.emai... | 40.65 | 83 | 0.826568 | 136 | 813 | 4.352941 | 0.161765 | 0.135135 | 0.202703 | 0.128378 | 0.800676 | 0.532095 | 0.383446 | 0.290541 | 0.290541 | 0.162162 | 0 | 0.013774 | 0.107011 | 813 | 19 | 84 | 42.789474 | 0.801653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee308495ab434d96e4af75e940fcb798d38f0b54 | 500 | py | Python | tests/integration/test_scheme.py | firefly-cpp/simframe | 63475e1cf41fcd6baa9c27fb1451c47a87d77ac7 | [
"BSD-3-Clause"
] | null | null | null | tests/integration/test_scheme.py | firefly-cpp/simframe | 63475e1cf41fcd6baa9c27fb1451c47a87d77ac7 | [
"BSD-3-Clause"
] | null | null | null | tests/integration/test_scheme.py | firefly-cpp/simframe | 63475e1cf41fcd6baa9c27fb1451c47a87d77ac7 | [
"BSD-3-Clause"
] | null | null | null | # Tests for Scheme class
import pytest
from simframe.integration import Scheme
def test_scheme_repr_str():
def f():
pass
s = Scheme(f)
assert isinstance(repr(s), str)
assert isinstance(str(s), str)
def test_scheme_attributes():
def f():
pass
with pytest.raises(TypeError):
... | 19.230769 | 39 | 0.634 | 65 | 500 | 4.8 | 0.384615 | 0.089744 | 0.076923 | 0.240385 | 0.288462 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262 | 500 | 25 | 40 | 20 | 0.845528 | 0.044 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ee54764370757a59f58a929c613972fb103f8ce4 | 2,542 | py | Python | ancilla/ancilla/foundation/node/api/api.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | 7 | 2020-03-31T19:52:59.000Z | 2021-05-21T08:38:47.000Z | ancilla/ancilla/foundation/node/api/api.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | 15 | 2020-04-01T13:52:07.000Z | 2020-04-01T13:52:11.000Z | ancilla/ancilla/foundation/node/api/api.py | frenzylabs/ancilla | 3469272f17e1a5092d033cdc099f86f3052e744f | [
"Apache-2.0"
] | null | null | null | '''
api.py
ancilla
Created by Kevin Musselman (kevin@frenzylabs.com) on 01/08/20
Copyright 2019 FrenzyLabs, LLC.
'''
import time
import json
from ...data.models import Service, ServiceAttachment
from ..response import AncillaError
class Api(object):
def __init__(self, service):
self.service = ... | 35.305556 | 120 | 0.667191 | 303 | 2,542 | 5.488449 | 0.267327 | 0.125676 | 0.067348 | 0.071557 | 0.337943 | 0.262177 | 0.197234 | 0.144318 | 0.098617 | 0.098617 | 0 | 0.006341 | 0.193548 | 2,542 | 72 | 121 | 35.305556 | 0.804878 | 0.118804 | 0 | 0 | 0 | 0 | 0.12702 | 0.016158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0.023256 | 0.093023 | 0.116279 | 0.534884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ee59c3299ce85a9172d9cdc7e2f6bf9c32d1c981 | 184 | py | Python | Python Programs/exception.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 77 | 2020-10-01T10:06:59.000Z | 2021-11-08T08:57:18.000Z | Python Programs/exception.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 46 | 2020-09-27T04:55:36.000Z | 2021-05-14T18:49:06.000Z | Python Programs/exception.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 327 | 2020-09-26T17:06:03.000Z | 2021-10-09T06:04:39.000Z | while True:
try:
num=int(input("Input your number: "))
print("Your number is {}".format(num))
break
except:
print("Please insert number!") | 26.285714 | 47 | 0.532609 | 21 | 184 | 4.666667 | 0.714286 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.331522 | 184 | 7 | 48 | 26.285714 | 0.796748 | 0 | 0 | 0 | 0 | 0 | 0.318436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee6744152186b56a2413dd80ca53002e96845e99 | 757 | py | Python | access_niu/components/__init__.py | accessai/access-niu | 221c37a628374d6303f269080619e748d86ca8e1 | [
"Apache-2.0"
] | 15 | 2019-04-21T06:21:05.000Z | 2019-07-15T09:31:59.000Z | access_niu/components/__init__.py | accessai/access-niu | 221c37a628374d6303f269080619e748d86ca8e1 | [
"Apache-2.0"
] | 18 | 2019-04-25T09:36:57.000Z | 2022-02-10T00:11:00.000Z | access_niu/components/__init__.py | accessai/access-niu | 221c37a628374d6303f269080619e748d86ca8e1 | [
"Apache-2.0"
] | 9 | 2019-05-03T16:04:54.000Z | 2019-07-15T07:58:03.000Z | import abc
from abc import ABCMeta
class Component(object):
__metaclass__ = ABCMeta
def __init__(self, **kwargs):
self._is_active = (
kwargs.get("active") if kwargs.get("active") is not None else True
)
@abc.abstractmethod
def name(self):
raise NotImplementedErro... | 18.463415 | 78 | 0.599736 | 86 | 757 | 5.081395 | 0.395349 | 0.1373 | 0.128146 | 0.077803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297226 | 757 | 40 | 79 | 18.925 | 0.821429 | 0 | 0 | 0.214286 | 0 | 0 | 0.015852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0.142857 | 0.071429 | 0.071429 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ee74d8312381b3dc6baa9e157f39a64cd21f9fab | 128 | py | Python | v2/backend/admin/__init__.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 558 | 2017-10-04T14:33:18.000Z | 2022-03-24T21:25:08.000Z | v2/backend/admin/__init__.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 22 | 2018-04-29T04:25:49.000Z | 2021-08-02T17:26:02.000Z | v2/backend/admin/__init__.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 127 | 2017-11-14T19:47:27.000Z | 2022-03-24T21:25:12.000Z | from backend.magic import Bundle
from .macro import macro
from .model_admin import ModelAdmin
admin_bundle = Bundle(__name__)
| 18.285714 | 35 | 0.820313 | 18 | 128 | 5.5 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132813 | 128 | 6 | 36 | 21.333333 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
c98c216decafb4265625c2c1a358c0317db04961 | 63 | py | Python | Aula Python/Aula 09 ex1.py | ayresmajor/Curso-python | 006229cec38ea365bf43b19e3ce93fbd32e1dca6 | [
"MIT"
] | null | null | null | Aula Python/Aula 09 ex1.py | ayresmajor/Curso-python | 006229cec38ea365bf43b19e3ce93fbd32e1dca6 | [
"MIT"
] | null | null | null | Aula Python/Aula 09 ex1.py | ayresmajor/Curso-python | 006229cec38ea365bf43b19e3ce93fbd32e1dca6 | [
"MIT"
] | null | null | null | frase = 'Curso em Vídeo Python'
print('-'.join(frase.split()))
| 21 | 31 | 0.666667 | 9 | 63 | 4.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 63 | 2 | 32 | 31.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.349206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
c99b68c40cc672d90fac6ad9450f20fefbd146ff | 215 | py | Python | run.py | marciks/flask-basic-skeleton | b53677598007295b602f52421b6defaabd30fc33 | [
"MIT"
] | null | null | null | run.py | marciks/flask-basic-skeleton | b53677598007295b602f52421b6defaabd30fc33 | [
"MIT"
] | null | null | null | run.py | marciks/flask-basic-skeleton | b53677598007295b602f52421b6defaabd30fc33 | [
"MIT"
] | null | null | null | # WSGI Server for Development
# Use this during development vs. apache. Can view via [url]:8001
# Run using virtualenv. 'env/bin/python run.py'
from app import app
app.run(host='127.0.0.1', port=5000, debug=True)
| 26.875 | 65 | 0.730233 | 38 | 215 | 4.131579 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076087 | 0.144186 | 215 | 7 | 66 | 30.714286 | 0.777174 | 0.637209 | 0 | 0 | 0 | 0 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c9b01a37b22b339d5207a9b783c9d7c5dc9c1b40 | 390 | py | Python | challenge-64/test_solver.py | mauricioklein/algorithm-exercises | 1be95762d000102795059255a0a0d2d21d4b67fc | [
"MIT"
] | 3 | 2019-12-03T11:40:36.000Z | 2020-06-28T19:39:51.000Z | challenge-64/test_solver.py | mauricioklein/algorithm-exercises | 1be95762d000102795059255a0a0d2d21d4b67fc | [
"MIT"
] | null | null | null | challenge-64/test_solver.py | mauricioklein/algorithm-exercises | 1be95762d000102795059255a0a0d2d21d4b67fc | [
"MIT"
] | null | null | null | import unittest
from solver import look_and_say
class TestSolver(unittest.TestCase):
def test_look_and_say(self):
self.assertEqual(look_and_say(1), "1")
self.assertEqual(look_and_say(2), "11")
self.assertEqual(look_and_say(3), "21")
self.assertEqual(look_and_say(4), "1211")
self.assertEqual(look_... | 27.857143 | 47 | 0.723077 | 58 | 390 | 4.465517 | 0.448276 | 0.189189 | 0.27027 | 0.42471 | 0.482625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059347 | 0.135897 | 390 | 13 | 48 | 30 | 0.709199 | 0 | 0 | 0 | 0 | 0 | 0.058974 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9cab525bd1fddfcb5bc7b9b2eb43f87ff68a0ca | 128 | py | Python | terrascript/data/external.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/external.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/external.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | # terrascript/data/external.py
import terrascript
class external(terrascript.Data):
pass
__all__ = [
"external",
]
| 9.846154 | 33 | 0.695313 | 13 | 128 | 6.538462 | 0.615385 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195313 | 128 | 12 | 34 | 10.666667 | 0.825243 | 0.21875 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c9f54bccef7846790fbd097eea3dead5e698e582 | 2,215 | py | Python | src/abaqus/Amplitude/DecayAmplitude.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Amplitude/DecayAmplitude.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Amplitude/DecayAmplitude.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .Amplitude import Amplitude
class DecayAmplitude(Amplitude):
"""The DecayAmplitude object defines an amplitude curve using an exponential decay.
The DecayAmplitude object is derived from the Amplitude object.
Notes
-----
This object can be accessed by:
.. ... | 27.345679 | 99 | 0.590519 | 218 | 2,215 | 5.963303 | 0.385321 | 0.07 | 0.049231 | 0.058462 | 0.327692 | 0.269231 | 0.215385 | 0.169231 | 0.169231 | 0.169231 | 0 | 0.002738 | 0.340406 | 2,215 | 80 | 100 | 27.6875 | 0.887064 | 0.646501 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a010ea36bc7820586b4a12c1e501c237d8f89dc1 | 1,016 | py | Python | stamper/views.py | uploadcare/stump | 8070ff42f01972fa86b4a2eaba580dad65482ef2 | [
"MIT"
] | null | null | null | stamper/views.py | uploadcare/stump | 8070ff42f01972fa86b4a2eaba580dad65482ef2 | [
"MIT"
] | null | null | null | stamper/views.py | uploadcare/stump | 8070ff42f01972fa86b4a2eaba580dad65482ef2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from django.views.generic import View
from django.utils import timezone
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import... | 28.222222 | 64 | 0.67815 | 125 | 1,016 | 5.448 | 0.488 | 0.117474 | 0.061674 | 0.088106 | 0.138032 | 0.138032 | 0.138032 | 0.138032 | 0 | 0 | 0 | 0.003916 | 0.246063 | 1,016 | 35 | 65 | 29.028571 | 0.885117 | 0 | 0 | 0.121212 | 0 | 0 | 0.011811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.060606 | 0.363636 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4e41bd6840c600f96f506c02b19f482db530fabd | 113 | py | Python | storyscript/compiler/semantics/__init__.py | marqov/storyscript | 4b99ff904305109cfb4310cb504127e2649ba44a | [
"MIT"
] | 1 | 2019-05-06T14:04:40.000Z | 2019-05-06T14:04:40.000Z | storyscript/compiler/semantics/__init__.py | marqov/storyscript | 4b99ff904305109cfb4310cb504127e2649ba44a | [
"MIT"
] | null | null | null | storyscript/compiler/semantics/__init__.py | marqov/storyscript | 4b99ff904305109cfb4310cb504127e2649ba44a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from storyscript.compiler.semantics.Semantics import Semantics
__all__ = ['Semantics']
| 18.833333 | 62 | 0.725664 | 12 | 113 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.123894 | 113 | 5 | 63 | 22.6 | 0.777778 | 0.185841 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4e46efae2c1395e883c864f7de109a9c519ce923 | 361 | py | Python | app.py | MHolmblad13/LoLCalcDash | 5bd128b668e471e27c212e7ec98d2e901f5cf629 | [
"MIT"
] | null | null | null | app.py | MHolmblad13/LoLCalcDash | 5bd128b668e471e27c212e7ec98d2e901f5cf629 | [
"MIT"
] | null | null | null | app.py | MHolmblad13/LoLCalcDash | 5bd128b668e471e27c212e7ec98d2e901f5cf629 | [
"MIT"
] | null | null | null | import dash
import dash_bootstrap_components as dbc
external_stylesheets = [dbc.themes.CERULEAN,'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets,#)
suppress_callback_exceptions=True)
server = app.se... | 36.1 | 122 | 0.772853 | 47 | 361 | 5.659574 | 0.659574 | 0.214286 | 0.195489 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.124654 | 361 | 10 | 123 | 36.1 | 0.829114 | 0.00277 | 0 | 0 | 0 | 0.142857 | 0.210826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
4e520f009051d990e05052ba8bfd9ecd76f3ce5b | 574 | py | Python | oceanAcouPy/__init__.py | IvanaEscobar/oceanAcouPy | 9ea11792dfe1cc0ba7004d23521fd222b4e949eb | [
"MIT"
] | null | null | null | oceanAcouPy/__init__.py | IvanaEscobar/oceanAcouPy | 9ea11792dfe1cc0ba7004d23521fd222b4e949eb | [
"MIT"
] | null | null | null | oceanAcouPy/__init__.py | IvanaEscobar/oceanAcouPy | 9ea11792dfe1cc0ba7004d23521fd222b4e949eb | [
"MIT"
] | null | null | null | from oceanAcouPy import attenuation
from oceanAcouPy import beamform
from oceanAcouPy import bottomLoss
from oceanAcouPy import moi
from oceanAcouPy import reflCoeff
from oceanAcouPy import soundSpeed
from oceanAcouPy import normalModes
from oceanAcouPy import detectThreshold
from oceanAcouPy import seafloor
from ocean... | 23.916667 | 39 | 0.695122 | 51 | 574 | 7.745098 | 0.27451 | 0.379747 | 0.531646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249129 | 574 | 23 | 40 | 24.956522 | 0.916473 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4e59986b53f605464a07f1bbecb62b406bd5491b | 3,082 | py | Python | tests/filters_test.py | ivan-californias/swcli | 2a7df6bbe3396f44458971a93bfa108f9ca34ddf | [
"MIT"
] | null | null | null | tests/filters_test.py | ivan-californias/swcli | 2a7df6bbe3396f44458971a93bfa108f9ca34ddf | [
"MIT"
] | null | null | null | tests/filters_test.py | ivan-californias/swcli | 2a7df6bbe3396f44458971a93bfa108f9ca34ddf | [
"MIT"
] | null | null | null | import unittest
from filters import Filters
from tests.data import data
class TestFilters(unittest.TestCase):
def setUp(self):
self.filters = Filters(None)
def test_filter_data_equal(self):
filtered = self.filters.filter_data(data, 'name', '=', 'John Doe')
self.assertEqual(len(filter... | 35.837209 | 108 | 0.64828 | 383 | 3,082 | 5.020888 | 0.180157 | 0.195008 | 0.167447 | 0.106084 | 0.791992 | 0.728029 | 0.690588 | 0.626625 | 0.605824 | 0.560062 | 0 | 0.014877 | 0.193056 | 3,082 | 85 | 109 | 36.258824 | 0.758343 | 0 | 0 | 0.396552 | 0 | 0 | 0.123297 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 1 | 0.224138 | false | 0 | 0.051724 | 0 | 0.293103 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e5c938b8291a028c03c153d39ede00ebb72405b | 87 | py | Python | SpeechSite/apps/Speech/apps.py | take2make/SpeechRecognitionSite | d43d6ad7021c0b22d304a7d7ee9a6e21992eeedc | [
"MIT"
] | null | null | null | SpeechSite/apps/Speech/apps.py | take2make/SpeechRecognitionSite | d43d6ad7021c0b22d304a7d7ee9a6e21992eeedc | [
"MIT"
] | null | null | null | SpeechSite/apps/Speech/apps.py | take2make/SpeechRecognitionSite | d43d6ad7021c0b22d304a7d7ee9a6e21992eeedc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SpeechConfig(AppConfig):
name = 'Speech'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4e61faeb55542a969e118a1d9a108e31dce3c9aa | 275 | py | Python | backend/groups/admin.py | donicrazy/ChatApp | ab129a9c0706bbb972cbce43283ba6e06d144635 | [
"MIT"
] | null | null | null | backend/groups/admin.py | donicrazy/ChatApp | ab129a9c0706bbb972cbce43283ba6e06d144635 | [
"MIT"
] | 7 | 2021-03-19T04:47:13.000Z | 2022-01-13T02:02:46.000Z | backend/groups/admin.py | donicrazy/ChatApp | ab129a9c0706bbb972cbce43283ba6e06d144635 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import (
ChatGroup,
GroupMembership,
GroupMessage,
GroupMessageInfo,
)
admin.site.register(ChatGroup)
admin.site.register(GroupMembership)
admin.site.register(GroupMessage)
admin.site.register(GroupMessageInfo)
| 19.642857 | 37 | 0.785455 | 28 | 275 | 7.714286 | 0.428571 | 0.166667 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 275 | 13 | 38 | 21.153846 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e7805e56ba88e9c912b30b8ebf98c4d4ef9ea0a | 153 | py | Python | niimpy/test_read_sql.py | AaltoRSE/niimpy | e0b6ea5c69e93676730af0b05f23322489fc1781 | [
"MIT"
] | null | null | null | niimpy/test_read_sql.py | AaltoRSE/niimpy | e0b6ea5c69e93676730af0b05f23322489fc1781 | [
"MIT"
] | null | null | null | niimpy/test_read_sql.py | AaltoRSE/niimpy | e0b6ea5c69e93676730af0b05f23322489fc1781 | [
"MIT"
] | null | null | null | import niimpy
from . import read
from . import sampledata
def test_read_sql():
data = niimpy.read_sql(sampledata.DATA, table='AwareScreen')
| 21.857143 | 64 | 0.718954 | 20 | 153 | 5.35 | 0.55 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189542 | 153 | 7 | 65 | 21.857143 | 0.862903 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0 | 0.8 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4eb1fce0d88ffc6ec03c8bfa6eb6b095eb4881ea | 879 | py | Python | test/test_test.py | otaithleigh/opswrapper | b3273a3e76d4b07f990fb6949f3a51d0ce6670f0 | [
"MIT"
] | 3 | 2020-04-07T06:43:42.000Z | 2021-12-13T16:45:03.000Z | test/test_test.py | otaithleigh/opswrapper | b3273a3e76d4b07f990fb6949f3a51d0ce6670f0 | [
"MIT"
] | null | null | null | test/test_test.py | otaithleigh/opswrapper | b3273a3e76d4b07f990fb6949f3a51d0ce6670f0 | [
"MIT"
] | null | null | null | from pytest import raises
from opswrapper import test
def test_standard():
generated = test.NormUnbalance(1e-8, 50).tcl_code()
expected = 'test NormUnbalance 1e-08 50 0 2'
assert generated == expected
def test_with_flags():
generated = test.NormUnbalance(1e-8, 50, 2, 2).tcl_code()
expected = 't... | 25.852941 | 75 | 0.687144 | 127 | 879 | 4.614173 | 0.307087 | 0.174061 | 0.040956 | 0.163823 | 0.645051 | 0.645051 | 0.53413 | 0.428328 | 0.259386 | 0.136519 | 0 | 0.074965 | 0.195677 | 879 | 33 | 76 | 26.636364 | 0.75389 | 0 | 0 | 0.181818 | 1 | 0 | 0.150171 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.318182 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ebddabe964222bc8c27e88b37dd7090307eb4e9 | 1,821 | py | Python | python/pyspark_hbase/sql/context.py | CrazyZero1/astro | 99cc67d3c279b86ad771e582eafdb79ded6d8d04 | [
"Apache-2.0"
] | 365 | 2015-07-23T01:34:46.000Z | 2022-03-09T23:40:58.000Z | python/pyspark_hbase/sql/context.py | CrazyZero1/astro | 99cc67d3c279b86ad771e582eafdb79ded6d8d04 | [
"Apache-2.0"
] | 30 | 2015-07-30T09:29:51.000Z | 2016-05-15T18:08:12.000Z | python/pyspark_hbase/sql/context.py | CrazyZero1/astro | 99cc67d3c279b86ad771e582eafdb79ded6d8d04 | [
"Apache-2.0"
] | 196 | 2015-07-16T07:01:27.000Z | 2022-02-27T10:16:21.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 35.705882 | 78 | 0.732015 | 244 | 1,821 | 5.286885 | 0.483607 | 0.048837 | 0.093023 | 0.024806 | 0.060465 | 0.060465 | 0.060465 | 0 | 0 | 0 | 0 | 0.003406 | 0.19385 | 1,821 | 50 | 79 | 36.42 | 0.875341 | 0.507963 | 0 | 0.105263 | 0 | 0 | 0.094186 | 0.048837 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.052632 | 0.526316 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ec13034e7bc4530b6ca7e00a16724b31a54d68f | 2,328 | py | Python | leetcode/google/tagged/medium/missing_ranges_test.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | 26 | 2019-06-07T05:29:47.000Z | 2022-03-19T15:32:27.000Z | leetcode/google/tagged/medium/missing_ranges_test.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | null | null | null | leetcode/google/tagged/medium/missing_ranges_test.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | 6 | 2019-10-10T06:39:28.000Z | 2020-05-12T19:50:55.000Z | import unittest
import missing_ranges as program
class TestCase(unittest.TestCase):
def setUp(self):
self.missing_range = program.Solution().findMissingRanges
self.t = self.assertMissingRange
def assertMissingRange(self, ranges, lower, upper, answer):
self.assertEqual(self.missing_rang... | 42.327273 | 128 | 0.468643 | 397 | 2,328 | 2.68262 | 0.173804 | 0.112676 | 0.028169 | 0.050704 | 0.432864 | 0.39061 | 0.379343 | 0.292019 | 0.215023 | 0.215023 | 0 | 0.253476 | 0.196735 | 2,328 | 54 | 129 | 43.111111 | 0.316043 | 0 | 0 | 0 | 0 | 0 | 0.174828 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ecb1827aee95ccc9210d2c90d07026b56eaa3c1 | 2,336 | py | Python | src/pymysql/connection.py | rrickgauer/pymysql | d935df4e6f5e5f6a5ba63f2a18f1cd4adc29f964 | [
"Apache-2.0"
] | null | null | null | src/pymysql/connection.py | rrickgauer/pymysql | d935df4e6f5e5f6a5ba63f2a18f1cd4adc29f964 | [
"Apache-2.0"
] | null | null | null | src/pymysql/connection.py | rrickgauer/pymysql | d935df4e6f5e5f6a5ba63f2a18f1cd4adc29f964 | [
"Apache-2.0"
] | null | null | null | import mysql.connector
from mysql.connector.cursor import MySQLCursor, MySQLCursorPrepared, MySQLCursorDict
from . import credentials as db_credentials
class ConnectionBase:
"""A MySQL database connection"""
#----------------------------------------------------------
# Constructor
#------------------... | 33.855072 | 84 | 0.411815 | 141 | 2,336 | 6.751773 | 0.319149 | 0.102941 | 0.07563 | 0.069328 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186644 | 2,336 | 68 | 85 | 34.352941 | 0.501053 | 0.488014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.04 | 0.12 | 0.12 | 0.64 | 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 | 1 | 0 | 0 | 3 |
4ed214adf5736ce907af1cb579910377466f0202 | 683 | py | Python | tests/optional-neg/test.py | lean-delivery/tf-readme-validator | 85f537be2299ff30b94a22b1a91c9b53dbd18675 | [
"Apache-2.0"
] | null | null | null | tests/optional-neg/test.py | lean-delivery/tf-readme-validator | 85f537be2299ff30b94a22b1a91c9b53dbd18675 | [
"Apache-2.0"
] | null | null | null | tests/optional-neg/test.py | lean-delivery/tf-readme-validator | 85f537be2299ff30b94a22b1a91c9b53dbd18675 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
import sys
sys.path.append('../../bin')
target = __import__('tf_readme_validator')
main = target.main
readme = target.cfg['readme']
class Test1(unittest.TestCase):
def test(self):
result = main()
self.assertEqual(result, 1)
self.assertEqual('ok' in ... | 26.269231 | 79 | 0.660322 | 84 | 683 | 5.202381 | 0.47619 | 0.20595 | 0.194508 | 0.217391 | 0.331808 | 0.2746 | 0 | 0 | 0 | 0 | 0 | 0.00361 | 0.188873 | 683 | 25 | 80 | 27.32 | 0.785199 | 0.029283 | 0 | 0 | 0 | 0 | 0.20997 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
4eda889281d9dc493072cdef52d2e90ec2a2c06d | 1,075 | py | Python | test/TestApp.py | quadrupleflame/Untitled | 022a80af4b0cde3144ac66f929ce31d95c08dd26 | [
"MIT"
] | null | null | null | test/TestApp.py | quadrupleflame/Untitled | 022a80af4b0cde3144ac66f929ce31d95c08dd26 | [
"MIT"
] | 12 | 2018-11-20T03:36:38.000Z | 2018-11-20T13:14:34.000Z | test/TestApp.py | quadrupleflame/Untitled | 022a80af4b0cde3144ac66f929ce31d95c08dd26 | [
"MIT"
] | null | null | null | import unittest
import os, sys
from flask import Flask
from app import auth, api, db, home, create_app
import threading
import pytest
import requests
global flask
@pytest.fixture()
def server():
flask = create_app()
flask.run(host="localhost", port=5000)
class TestApp(unittest.TestCase):
def setUp(self... | 21.078431 | 69 | 0.624186 | 136 | 1,075 | 4.816176 | 0.477941 | 0.053435 | 0.033588 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006227 | 0.253023 | 1,075 | 50 | 70 | 21.5 | 0.809465 | 0.15907 | 0 | 0.090909 | 0 | 0 | 0.055617 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 1 | 0.242424 | false | 0.090909 | 0.212121 | 0.030303 | 0.515152 | 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 | 1 | 0 | 0 | 3 |
14cfbb3b76c8d94e3ba1ed71447c7a8727442fdc | 90 | py | Python | watson-framework-archive/imcrypt/controllers/__init__.py | sigmundv/encrypt-image | b37bc93b56be1cc7934c44705df3ba52906fe18e | [
"BSD-2-Clause"
] | null | null | null | watson-framework-archive/imcrypt/controllers/__init__.py | sigmundv/encrypt-image | b37bc93b56be1cc7934c44705df3ba52906fe18e | [
"BSD-2-Clause"
] | null | null | null | watson-framework-archive/imcrypt/controllers/__init__.py | sigmundv/encrypt-image | b37bc93b56be1cc7934c44705df3ba52906fe18e | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from imcrypt.controllers.index import Index
__all__ = ['Index']
| 15 | 43 | 0.666667 | 11 | 90 | 5.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.155556 | 90 | 5 | 44 | 18 | 0.723684 | 0.233333 | 0 | 0 | 0 | 0 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
14f0afbfdf6b53b9209c175efd2c5d896b9641e4 | 114 | py | Python | socket-service/codenames.py | TheSmartMonkey/codename | a39946c8c705d50548f655838e4d32525c211e30 | [
"MIT"
] | 1 | 2021-01-09T17:45:40.000Z | 2021-01-09T17:45:40.000Z | socket-service/codenames.py | TheSmartMonkey/codename | a39946c8c705d50548f655838e4d32525c211e30 | [
"MIT"
] | null | null | null | socket-service/codenames.py | TheSmartMonkey/codename | a39946c8c705d50548f655838e4d32525c211e30 | [
"MIT"
] | null | null | null | import json
import sys
import os
import requests
class Codenames(object):
def __init__(self):
pass
| 10.363636 | 24 | 0.701754 | 15 | 114 | 5.066667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 114 | 10 | 25 | 11.4 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.571429 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
0903711d93b32a588dfc14efa2cf6125e04231a3 | 332 | py | Python | omsignal/utils/transform/__init__.py | eeishaan/ift6759-block1 | 59a7ff61c02b7ae5148a05b41e3aff3542e3c746 | [
"Apache-2.0"
] | null | null | null | omsignal/utils/transform/__init__.py | eeishaan/ift6759-block1 | 59a7ff61c02b7ae5148a05b41e3aff3542e3c746 | [
"Apache-2.0"
] | null | null | null | omsignal/utils/transform/__init__.py | eeishaan/ift6759-block1 | 59a7ff61c02b7ae5148a05b41e3aff3542e3c746 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from abc import ABC, abstractmethod
class OmTransform(ABC):
'''
Abstract base class for custom transformers
'''
@abstractmethod
def __call__(self, x):
pass
def state(self):
'''
This method should return the state of the transformer
'''
... | 17.473684 | 62 | 0.599398 | 37 | 332 | 5.27027 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004386 | 0.313253 | 332 | 18 | 63 | 18.444444 | 0.850877 | 0.361446 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
09138ac9dc59df7b41a01f3d4fae1c6df94e099d | 1,533 | py | Python | mason/clients/engines/scheduler.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 4 | 2021-04-12T17:49:34.000Z | 2022-01-23T19:54:29.000Z | mason/clients/engines/scheduler.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 24 | 2021-04-30T18:40:25.000Z | 2021-05-12T20:52:06.000Z | mason/clients/engines/scheduler.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 3 | 2021-04-12T19:40:43.000Z | 2021-09-07T21:56:36.000Z | from typing import Tuple, Optional, Union
from abc import abstractmethod
from mason.clients.base import Client
from mason.engines.scheduler.models.dags.client_dag import ClientDag
from mason.engines.scheduler.models.schedule import Schedule, InvalidSchedule
from mason.clients.response import Response
from mason.util.e... | 39.307692 | 180 | 0.754077 | 165 | 1,533 | 6.89697 | 0.30303 | 0.089631 | 0.13181 | 0.158172 | 0.435852 | 0.381371 | 0.337434 | 0.282074 | 0.223199 | 0.142355 | 0 | 0 | 0.165036 | 1,533 | 38 | 181 | 40.342105 | 0.889063 | 0.016308 | 0 | 0.423077 | 0 | 0 | 0.101729 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.230769 | false | 0 | 0.269231 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
092b5d67993ea744cb37a1b4efef2988f212b838 | 459 | py | Python | sql4json/sql4json.py | bheni/sql4json | ea4ffdcb4bc0f957da4bc92c76f5e52406964bfc | [
"Apache-2.0"
] | 7 | 2015-05-01T05:50:49.000Z | 2022-03-20T03:45:18.000Z | sql4json/sql4json.py | bheni/sql4json | ea4ffdcb4bc0f957da4bc92c76f5e52406964bfc | [
"Apache-2.0"
] | 1 | 2016-05-04T21:37:43.000Z | 2016-05-04T21:37:43.000Z | sql4json/sql4json.py | bheni/sql4json | ea4ffdcb4bc0f957da4bc92c76f5e52406964bfc | [
"Apache-2.0"
] | null | null | null | import json
from data_query_engine import DataQueryEngine
class Sql4Json(object):
def __init__(self, json_str, sql_str):
self.data = json.loads(json_str, encoding="latin1")
self.query_engine = DataQueryEngine(self.data, sql_str)
def get_results(self):
return self.query_engine.get_res... | 30.6 | 108 | 0.703704 | 61 | 459 | 4.95082 | 0.459016 | 0.145695 | 0.149007 | 0.119205 | 0.165563 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.176471 | 459 | 15 | 108 | 30.6 | 0.791005 | 0 | 0 | 0 | 0 | 0 | 0.019565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
09470992adb89f4cbc8258e18007c510bacc770f | 132 | py | Python | ifelse.py | chidanandpujar/Python_scripts | 0ee70e07ef4ab4d8c04955466ea9b305bdac0a53 | [
"Unlicense"
] | null | null | null | ifelse.py | chidanandpujar/Python_scripts | 0ee70e07ef4ab4d8c04955466ea9b305bdac0a53 | [
"Unlicense"
] | null | null | null | ifelse.py | chidanandpujar/Python_scripts | 0ee70e07ef4ab4d8c04955466ea9b305bdac0a53 | [
"Unlicense"
] | null | null | null | num=int(input("Enter number:"))
if (num > 0):
print(num,"is a positive number")
else:
print(num,"is not a positive number")
| 22 | 41 | 0.643939 | 22 | 132 | 3.863636 | 0.590909 | 0.188235 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.181818 | 132 | 5 | 42 | 26.4 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.431818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0959ea8d0dbdd1283bb93211fa2e7664e0b0e148 | 228 | py | Python | poplerGUI/ui_logic_sitechange.py | bibsian/lter | 5e5ac08b62e031ddabad490cc59db4a945ea20f6 | [
"MIT"
] | 5 | 2016-05-02T22:56:01.000Z | 2016-08-18T23:03:05.000Z | poplerGUI/ui_logic_sitechange.py | bibsian/lter | 5e5ac08b62e031ddabad490cc59db4a945ea20f6 | [
"MIT"
] | 11 | 2016-08-03T20:39:42.000Z | 2016-10-18T22:03:38.000Z | poplerGUI/ui_logic_sitechange.py | bibsian/database-development | 5e5ac08b62e031ddabad490cc59db4a945ea20f6 | [
"MIT"
] | null | null | null | from PyQt4 import QtGui
from Views import ui_dialog_sitechange as uichange
class TablePreview(QtGui.QDialog, uichange.Ui_Dialog):
def __init__(self, parent=None):
super().__init__(parent)
self.setupUi(self)
| 28.5 | 54 | 0.745614 | 30 | 228 | 5.3 | 0.666667 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.171053 | 228 | 7 | 55 | 32.571429 | 0.835979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 3 |
095e57c13b382eb52a527ce55a298ed55f3494ba | 218 | py | Python | models/__init__.py | kun-woo-park/Mobile_Stereo_Net_RealSense | 993e21f35bf4d8b8e060849301d42784f77e53d3 | [
"Apache-2.0"
] | 76 | 2021-08-24T01:39:17.000Z | 2022-03-17T02:23:46.000Z | models/__init__.py | kun-woo-park/Mobile_Stereo_Net_RealSense | 993e21f35bf4d8b8e060849301d42784f77e53d3 | [
"Apache-2.0"
] | 13 | 2021-09-05T18:30:26.000Z | 2022-02-24T15:13:59.000Z | models/__init__.py | kun-woo-park/Mobile_Stereo_Net_RealSense | 993e21f35bf4d8b8e060849301d42784f77e53d3 | [
"Apache-2.0"
] | 21 | 2021-08-23T09:24:27.000Z | 2022-03-29T04:10:32.000Z | # Copyright (c) 2021. All rights reserved.
from models.MSNet2D import MSNet2D
from models.MSNet3D import MSNet3D
from models.submodule import model_loss
__models__ = {
"MSNet2D": MSNet2D,
"MSNet3D": MSNet3D
}
| 21.8 | 42 | 0.752294 | 27 | 218 | 5.888889 | 0.518519 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065934 | 0.165138 | 218 | 9 | 43 | 24.222222 | 0.807692 | 0.183486 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
1194cf3137c7a5f30049a3a185f9e902ef6ede18 | 1,316 | py | Python | PositionalList.py | xliiauo/leetcode | e6c477802379168e084d076066f3b9e559dc553d | [
"MIT"
] | 1 | 2016-05-08T15:51:05.000Z | 2016-05-08T15:51:05.000Z | PositionalList.py | xliiauo/leetcode | e6c477802379168e084d076066f3b9e559dc553d | [
"MIT"
] | null | null | null | PositionalList.py | xliiauo/leetcode | e6c477802379168e084d076066f3b9e559dc553d | [
"MIT"
] | null | null | null | class _DoubleLinkedBase:
class _Node:
__slots__ = '_element', '_prev', '_next'
def __init__(self, element, prev, next):
self._element = element
self._prev = prev
self._next = next
def __init__(self):
self._header = self._Node(None, None, None)
... | 28 | 74 | 0.580547 | 154 | 1,316 | 4.538961 | 0.214286 | 0.080114 | 0.04721 | 0.042918 | 0.180258 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0.003359 | 0.321429 | 1,316 | 47 | 75 | 28 | 0.779395 | 0 | 0 | 0 | 0 | 0 | 0.013667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0 | 0.108108 | 0.513514 | 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 | 1 | 0 | 0 | 3 |
1196151bf092a455c2914325f794ac24175cfc91 | 472 | py | Python | tests/test_base_repository.py | mamerisawesome/coeusfactory | 73530e118a9354b8b91f8d4a59f7f025008f366d | [
"MIT"
] | 1 | 2020-02-19T03:03:32.000Z | 2020-02-19T03:03:32.000Z | tests/test_base_repository.py | mamerisawesome/coeusfactory | 73530e118a9354b8b91f8d4a59f7f025008f366d | [
"MIT"
] | null | null | null | tests/test_base_repository.py | mamerisawesome/coeusfactory | 73530e118a9354b8b91f8d4a59f7f025008f366d | [
"MIT"
] | null | null | null | def test_base_repository():
from coeusfactory.repositories.BaseRepository import BaseRepository
br = BaseRepository(model="test", name=__name__)
# return fails if no interface is created
assert not br.get_all()
assert not br.get_by_id(0)
assert not br.get({})
assert not br.add({})
asse... | 29.5 | 71 | 0.677966 | 69 | 472 | 4.449275 | 0.434783 | 0.263844 | 0.322476 | 0.136808 | 0.156352 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.205508 | 472 | 15 | 72 | 31.466667 | 0.810667 | 0.082627 | 0 | 0 | 0 | 0 | 0.009281 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11968a9ceff4c99e46aff148aafd52e3ca44c30a | 386 | py | Python | Module 03/DjangoDesignPatternsandBestPracticesSecondEdition_Code/src/sightings/admin.py | 74gigi8/Learning-Path-Learn-Web-Development-with-Python | aa7e7e46f21b631484ff800788482f1f21c13220 | [
"MIT"
] | 41 | 2018-06-22T03:41:10.000Z | 2022-03-21T19:59:53.000Z | Module 03/DjangoDesignPatternsandBestPracticesSecondEdition_Code/src/sightings/admin.py | 74gigi8/Learning-Path-Learn-Web-Development-with-Python | aa7e7e46f21b631484ff800788482f1f21c13220 | [
"MIT"
] | 6 | 2018-05-27T08:34:25.000Z | 2021-06-10T20:24:25.000Z | src/sightings/admin.py | fkallin/Superbook | a5874d3fbe04085cc4e62051c44a178a61dc289a | [
"MIT"
] | 26 | 2018-10-06T08:39:24.000Z | 2021-12-05T23:32:20.000Z | from django.contrib import admin
from . import models
class SightingAdmin(admin.ModelAdmin):
list_display = ('superhero', 'power', 'location', 'sighted_on')
date_hierarchy = 'sighted_on'
search_fields = ['superhero']
ordering = ['superhero']
admin.site.register(models.Origin)
admin.site.register(mod... | 25.733333 | 67 | 0.746114 | 44 | 386 | 6.431818 | 0.568182 | 0.095406 | 0.180212 | 0.243816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126943 | 386 | 14 | 68 | 27.571429 | 0.839763 | 0 | 0 | 0 | 0 | 0 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.7 | 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 | 1 | 0 | 0 | 3 |
11b1f4bbb9793ac47a00dbdc9f133afdfc71dc0f | 1,695 | py | Python | tests/metrics/test_metric.py | ad12/meddlr | dda5a4ad7855de3a34331c60599e3253f980e989 | [
"Apache-2.0"
] | 23 | 2021-11-05T02:00:01.000Z | 2022-03-21T15:35:38.000Z | tests/metrics/test_metric.py | ad12/meddlr | dda5a4ad7855de3a34331c60599e3253f980e989 | [
"Apache-2.0"
] | 29 | 2021-11-04T22:18:26.000Z | 2022-03-24T01:04:53.000Z | tests/metrics/test_metric.py | ad12/meddlr | dda5a4ad7855de3a34331c60599e3253f980e989 | [
"Apache-2.0"
] | 1 | 2022-01-25T22:34:51.000Z | 2022-01-25T22:34:51.000Z | import unittest
import torch
from meddlr.metrics import Metric
def metric_func(preds, targets, alpha, beta=0.1):
return (alpha / beta) * (targets - preds).mean(dim=tuple(range(2, len(preds) + 1)))
class MockMetric(Metric):
def func(self, preds, targets, alpha, beta=0.1):
# Return a BxC tensor
... | 28.25 | 87 | 0.587021 | 221 | 1,695 | 4.457014 | 0.21267 | 0.118782 | 0.207107 | 0.255838 | 0.714721 | 0.714721 | 0.683249 | 0.647716 | 0.586802 | 0.586802 | 0 | 0.039506 | 0.283186 | 1,695 | 59 | 88 | 28.728814 | 0.771193 | 0.011209 | 0 | 0.604651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 1 | 0.093023 | false | 0 | 0.069767 | 0.046512 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
11b55878b79f83db5dc75f278ef2c4c69313d9b9 | 179 | py | Python | Ex027.py | CaioBaima/cursoemvideo-python | e24460e5ec7ddc5721b7e0a2b4b750a045bce07e | [
"MIT"
] | null | null | null | Ex027.py | CaioBaima/cursoemvideo-python | e24460e5ec7ddc5721b7e0a2b4b750a045bce07e | [
"MIT"
] | null | null | null | Ex027.py | CaioBaima/cursoemvideo-python | e24460e5ec7ddc5721b7e0a2b4b750a045bce07e | [
"MIT"
] | null | null | null | nome = str(input('Digite o seu nome completo:\n'))
lista = nome.split()
print('Seu primeiro nome é:\n {}'.format(lista[0]))
print('Seu último nome é:\n {}'.format(lista[-1]))
| 35.8 | 52 | 0.642458 | 30 | 179 | 3.833333 | 0.566667 | 0.13913 | 0.104348 | 0.208696 | 0.295652 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.134078 | 179 | 4 | 53 | 44.75 | 0.729032 | 0 | 0 | 0 | 0 | 0 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
11d6174a1fcc9236b70ae5036be8db360dc6fdce | 273 | py | Python | Pacote Dawload/Projeto progamas Python/ex1041 Coordenadas de um ponto.py | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | [
"MIT"
] | 1 | 2020-12-11T23:22:20.000Z | 2020-12-11T23:22:20.000Z | Pacote Dawload/Projeto progamas Python/ex1041 Coordenadas de um ponto.py | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | [
"MIT"
] | null | null | null | Pacote Dawload/Projeto progamas Python/ex1041 Coordenadas de um ponto.py | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | [
"MIT"
] | null | null | null | #Ex 1041 Coordenadas de um ponto 10/04/2020
x, y = map(float, input().split())
if x > 0 and y > 0:
print('Q1')
elif x < 0 and y > 0:
print('Q2')
if x > 0 and y < 0:
print('Q4')
elif x < 0 and y < 0:
print('Q3')
elif x == 0 and y == 0:
print('Origem')
| 18.2 | 43 | 0.527473 | 55 | 273 | 2.618182 | 0.454545 | 0.069444 | 0.173611 | 0.208333 | 0.527778 | 0.527778 | 0.527778 | 0 | 0 | 0 | 0 | 0.134021 | 0.289377 | 273 | 14 | 44 | 19.5 | 0.608247 | 0.153846 | 0 | 0 | 0 | 0 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
11e2395c17af20cb94e18740a7a77f674974f264 | 501 | py | Python | riotwrapper/const/val_const.py | Victoraq/Riot-API-Wrapper | 7c5367314e60fbea333933bf0d6660f003dd2efc | [
"MIT"
] | null | null | null | riotwrapper/const/val_const.py | Victoraq/Riot-API-Wrapper | 7c5367314e60fbea333933bf0d6660f003dd2efc | [
"MIT"
] | null | null | null | riotwrapper/const/val_const.py | Victoraq/Riot-API-Wrapper | 7c5367314e60fbea333933bf0d6660f003dd2efc | [
"MIT"
] | null | null | null | # flake8: noqa
# fmt: off
"""List of Valorant API available regions and endpoints."""
REGION_URL = {
"BR": "https://br.api.riotgames.com",
"EUN": "https://eun.api.riotgames.com",
"AP": "https://ap.api.riotgames.com",
"KR": "https://kr.api.riotgames.com",
"LATAM": "https://latam.api.riotgames.com",... | 26.368421 | 64 | 0.626747 | 68 | 501 | 4.544118 | 0.441176 | 0.23301 | 0.291262 | 0.116505 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007009 | 0.145709 | 501 | 19 | 65 | 26.368421 | 0.714953 | 0.151697 | 0 | 0 | 0 | 0 | 0.677804 | 0.178998 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11f5dd718f0f2a03bc426b20a6b5ead465e2ec9e | 4,974 | py | Python | lunar_python/LunarTime.py | 6tail/lunar-python | 96e17121371009a524728d11c93d5a97119e27d5 | [
"MIT"
] | 61 | 2020-07-16T00:53:24.000Z | 2022-03-28T14:21:34.000Z | lunar_python/LunarTime.py | 6tail/lunar-python | 96e17121371009a524728d11c93d5a97119e27d5 | [
"MIT"
] | 4 | 2020-09-23T08:03:40.000Z | 2022-02-21T06:09:08.000Z | lunar_python/LunarTime.py | 6tail/lunar-python | 96e17121371009a524728d11c93d5a97119e27d5 | [
"MIT"
] | 25 | 2020-05-25T00:26:25.000Z | 2022-03-29T03:13:54.000Z | # -*- coding: utf-8 -*-
from . import NineStar
from .util import LunarUtil
class LunarTime:
"""
时辰
"""
def __init__(self, lunar_year, lunar_month, lunar_day, hour, minute, second):
from . import Lunar
self.__lunar = Lunar.fromYmdHms(lunar_year, lunar_month, lunar_day, hour, minute, se... | 28.751445 | 97 | 0.616405 | 556 | 4,974 | 5.320144 | 0.25 | 0.087897 | 0.128465 | 0.091278 | 0.283976 | 0.215348 | 0.105477 | 0.105477 | 0.091278 | 0.062204 | 0 | 0.019668 | 0.274226 | 4,974 | 172 | 98 | 28.918605 | 0.799723 | 0.019904 | 0 | 0.053571 | 0 | 0 | 0.012038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.330357 | false | 0 | 0.026786 | 0.241071 | 0.732143 | 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 | 1 | 0 | 0 | 3 |
11f6d2b3f9b1dfcf184b73c14314bb67a30f9916 | 117 | py | Python | web_scraping/ec2files/ec2file94.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T20:11:48.000Z | 2020-04-08T20:11:48.000Z | web_scraping/ec2files/ec2file94.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file94.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=167508, end=169289, max_iter=30, scraper_instance=94)
s.scrape_letterboxd() | 39 | 72 | 0.777778 | 18 | 117 | 4.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152381 | 0.102564 | 117 | 3 | 73 | 39 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.