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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24a7c26a34c846d339b7c04886f0979ebc5c3781 | 242 | py | Python | python/python-algorithm-intervew/17-sortation/0-bubble-sort.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | 1 | 2022-03-06T03:49:31.000Z | 2022-03-06T03:49:31.000Z | python/python-algorithm-intervew/17-sortation/0-bubble-sort.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | python/python-algorithm-intervew/17-sortation/0-bubble-sort.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | from typing import List
def bubble_sort(words: List[str]):
for i in range(1, len(words)):
for j in range(0, len(words) - 1):
if words[j] > words[j + 1]:
words[j], words[j + 1] = words[j + 1], words[j] | 30.25 | 63 | 0.528926 | 41 | 242 | 3.097561 | 0.439024 | 0.283465 | 0.165354 | 0.283465 | 0.307087 | 0.251969 | 0.251969 | 0 | 0 | 0 | 0 | 0.035928 | 0.309917 | 242 | 8 | 63 | 30.25 | 0.724551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24b94b7259c86d5a9d32d07a0c72b747f20ba4ad | 47 | py | Python | tulius/profile/api_urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2020-04-21T15:09:18.000Z | 2020-04-21T15:09:18.000Z | tulius/profile/api_urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 70 | 2019-04-10T22:32:32.000Z | 2022-03-11T23:12:54.000Z | tulius/profile/api_urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2019-04-12T14:55:39.000Z | 2019-04-12T14:55:39.000Z | app_name = 'tulius.profile'
urlpatterns = [
]
| 9.4 | 27 | 0.680851 | 5 | 47 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 4 | 28 | 11.75 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.297872 | 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 |
24cfd38c25cd8a02a6f1c77f151d9aa4fa930573 | 200 | py | Python | utils/bn_type.py | x-zho14/Swin-Transformer | 577cac5b94281dcf773e8f4ea97fd2162f1ed060 | [
"MIT"
] | null | null | null | utils/bn_type.py | x-zho14/Swin-Transformer | 577cac5b94281dcf773e8f4ea97fd2162f1ed060 | [
"MIT"
] | null | null | null | utils/bn_type.py | x-zho14/Swin-Transformer | 577cac5b94281dcf773e8f4ea97fd2162f1ed060 | [
"MIT"
] | null | null | null | import torch.nn as nn
LearnedBatchNorm = nn.BatchNorm2d
class NonAffineBatchNorm(nn.BatchNorm2d):
def __init__(self, dim):
super(NonAffineBatchNorm, self).__init__(dim, affine=False) | 33.333333 | 67 | 0.745 | 23 | 200 | 6.130435 | 0.652174 | 0.184397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.16 | 200 | 6 | 67 | 33.333333 | 0.827381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
24ea0879c385a88ad176e92078c350ae6cb749dd | 168 | py | Python | Projects/project04/top.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | 2 | 2019-02-13T17:49:18.000Z | 2020-09-30T04:51:53.000Z | Projects/project04/top.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | Projects/project04/top.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | from Stack import Stack
def main():
stack = Stack()
assert stack.top() == None
stack.push(1)
assert stack.top() == 1
stack.push(2)
assert stack.top() == 2
main() | 16.8 | 27 | 0.64881 | 27 | 168 | 4.037037 | 0.407407 | 0.302752 | 0.385321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.178571 | 168 | 10 | 28 | 16.8 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24ef902bd0cf1188f8de4032aa49277d0f11836b | 235 | py | Python | marketplace/admin.py | tanvirstreame/product-catalog-drf | c399d93489cdae7b50928eb58b3bda220ebc2537 | [
"MIT"
] | 1 | 2020-07-02T00:41:29.000Z | 2020-07-02T00:41:29.000Z | marketplace/admin.py | tanvirstreame/product-catalog-drf | c399d93489cdae7b50928eb58b3bda220ebc2537 | [
"MIT"
] | 5 | 2021-03-19T03:26:29.000Z | 2022-02-10T13:41:58.000Z | marketplace/admin.py | tanvirstreame/product-catalog-drf | c399d93489cdae7b50928eb58b3bda220ebc2537 | [
"MIT"
] | null | null | null | '''
This file should contain admin register
'''
from django.contrib import admin
from .models import (
Product,
PriceDateRange,
)
admin.site.register(Product)
admin.site.register(PriceDateRange)
# Register your models here.
| 15.666667 | 39 | 0.748936 | 28 | 235 | 6.285714 | 0.571429 | 0.102273 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157447 | 235 | 14 | 40 | 16.785714 | 0.888889 | 0.285106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
701d68c98d083a95800df99d8b1d1a393d52b409 | 135 | py | Python | spam.py | alanzhu07/music_tagger | c0420053f68367b94221d57e7cbbee7f42d0c96a | [
"MIT"
] | null | null | null | spam.py | alanzhu07/music_tagger | c0420053f68367b94221d57e7cbbee7f42d0c96a | [
"MIT"
] | null | null | null | spam.py | alanzhu07/music_tagger | c0420053f68367b94221d57e7cbbee7f42d0c96a | [
"MIT"
] | null | null | null | import predict
tagger = predict.Predictor()
tagger.setup()
result = tagger.predict("data/chaos.mp3", "Harmonic CNN", "")
print(result) | 22.5 | 61 | 0.733333 | 17 | 135 | 5.823529 | 0.705882 | 0.262626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.096296 | 135 | 6 | 62 | 22.5 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
7031f07966fbe773412c1a111a610231e95677c7 | 189 | py | Python | specutils/io/default_loaders/__init__.py | havok2063/specutils | 1532ceb781d2ff38f7bce0bbbcd57597055cbd4c | [
"BSD-3-Clause"
] | 118 | 2015-02-04T19:17:06.000Z | 2022-03-22T10:27:23.000Z | specutils/io/default_loaders/__init__.py | havok2063/specutils | 1532ceb781d2ff38f7bce0bbbcd57597055cbd4c | [
"BSD-3-Clause"
] | 728 | 2015-01-03T01:26:02.000Z | 2022-03-31T15:57:47.000Z | specutils/io/default_loaders/__init__.py | havok2063/specutils | 1532ceb781d2ff38f7bce0bbbcd57597055cbd4c | [
"BSD-3-Clause"
] | 99 | 2015-01-09T14:46:28.000Z | 2022-03-22T20:36:14.000Z | import os
import glob
from os.path import dirname, basename, isfile
modules = glob.glob(os.path.join(dirname(__file__), "*.py"))
__all__ = [basename(f)[:-3] for f in modules if isfile(f)]
| 27 | 60 | 0.719577 | 31 | 189 | 4.129032 | 0.580645 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.126984 | 189 | 6 | 61 | 31.5 | 0.769697 | 0 | 0 | 0 | 0 | 0 | 0.021164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 |
7044e6caa364a5293cefd83a7f7ecf95eed27c18 | 675 | py | Python | testing/vcs/test_vcs_png_set_size.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | testing/vcs/test_vcs_png_set_size.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | testing/vcs/test_vcs_png_set_size.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z | import vcs
import sys
import os
# This test checks that png size is indeed controled by user
import struct
def get_image_info(fnm):
data = open(fnm,"rb").read()
w, h = struct.unpack('>LL', data[16:24])
width = int(w)
height = int(h)
return width, height
x=vcs.init()
x.drawlogooff()
x.setantialiasing(0)
x.plot([1,2,3,4,5,4,3,2,1],bg=1)
fnm = "test_png_set_size.png"
x.png(fnm,width=15)
print get_image_info(fnm)
assert(get_image_info(fnm) == (15,11))
x.png(fnm,height=16)
print get_image_info(fnm)
assert(get_image_info(fnm) == (20,16))
x.png(fnm,width=15,height=12)
print get_image_info(fnm)
assert(get_image_info(fnm) == (15,12))
os.remove(fnm)
| 19.852941 | 60 | 0.694815 | 129 | 675 | 3.503876 | 0.426357 | 0.123894 | 0.185841 | 0.232301 | 0.34292 | 0.280973 | 0.280973 | 0.280973 | 0.280973 | 0.280973 | 0 | 0.060034 | 0.136296 | 675 | 33 | 61 | 20.454545 | 0.715266 | 0.085926 | 0 | 0.12 | 0 | 0 | 0.042276 | 0.034146 | 0 | 0 | 0 | 0 | 0.12 | 0 | null | null | 0 | 0.16 | null | null | 0.12 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
705c72c3ecc6916dff990d117ecde75286810ee0 | 444 | py | Python | arvestust/models/tests/follow.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | 1 | 2021-09-17T23:45:27.000Z | 2021-09-17T23:45:27.000Z | arvestust/models/tests/follow.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | 3 | 2020-07-25T05:40:54.000Z | 2020-08-11T04:01:19.000Z | arvestust/models/tests/follow.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from ..models.follow import Follow
class FollowTestCase(TestCase):
def setUp(self):
"""
Create objects here...
Example:
Follow.objects.create()
"""
pass
def test_create_follow(self):
"""
Run assertions here...
Example:
follow = Follow.objects.create()
self.assertEqual(follow.id, 1)
"""
pass
| 17.076923 | 40 | 0.54955 | 43 | 444 | 5.627907 | 0.511628 | 0.090909 | 0.140496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.344595 | 444 | 25 | 41 | 17.76 | 0.828179 | 0.344595 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
706f5aed2fcafb88dfbf3556469415e7af26c437 | 4,179 | py | Python | src/models/productionsnew.py | JTopanotti/pip-boy | d0151edef06e66a325caadc6a1d376a60e9b01be | [
"Apache-2.0"
] | null | null | null | src/models/productionsnew.py | JTopanotti/pip-boy | d0151edef06e66a325caadc6a1d376a60e9b01be | [
"Apache-2.0"
] | null | null | null | src/models/productionsnew.py | JTopanotti/pip-boy | d0151edef06e66a325caadc6a1d376a60e9b01be | [
"Apache-2.0"
] | null | null | null | productions = {
(52, 1): [1,25,47,53,49 ],
(53, 2): [54, 57,59,62,64],
(53, 3): [54,57,59,62,64],
(53, 4): [54,57,59,62,64],
(53, 5): [54,57,59,62,64],
(53, 6): [54,57,59,62,64],
(54, 2): [2,55,47],
(54, 3): [0],
(54, 4): [0],
(54, 5): [0],
(54, 6): [0],
(55, 25): [25,56],
(56, 39): [0],
(56, 46): [46,25,56],
(56, 47): [0],
(57, 3): [3,25,40,26,47,58],
(57, 4): [0],
(57, 5): [0],
(57, 6): [0],
(58, 4): [0],
(58, 5): [0],
(58, 6): [0],
(58, 25): [25,40,26,47,58],
(59, 4): [4,55,39,61,47,60],
(59, 5): [0],
(59, 6): [0],
(60, 5): [0],
(60, 6): [0],
(60, 25): [55,39,61,47,60],
(61, 8): [8],
(61, 9): [9,34,26,50,26,35,10,8],
(62, 5): [5,25,63,47,53,47,62],
(62, 6): [0],
(63, 36): [36,55,39,8,37],
(63, 39): [0],
(64, 6): [6,66,65,7],
(65, 7): [0],
(65, 47): [47,66,65],
(66, 6): [64],
(66, 7): [0],
(66, 11): [11,25,69],
(66, 12): [12,25 ],
(66, 13): [13,77,14,66,71],
(66, 15): [0],
(66, 16): [16,77,17,66],
(66, 18): [18,66,19,77],
(66, 19): [0],
(66, 20): [20,36,72,74,37],
(66, 21): [21,36,75,76,37],
(66, 25): [25,67],
(66, 27): [27,25,38,77,28,77,17,66],
(66, 29): [29,77,10,84,7 ],
(66, 47): [0],
(67, 34): [68,38,77],
(67, 38): [68,38,77],
(67, 39): [39,66],
(68, 34): [34,77,35],
(68, 38): [0],
(69, 7): [0],
(69, 15): [0],
(69, 19): [0],
(69, 36): [36,77,70,37],
(69, 47): [0],
(70, 37): [0],
(70, 46): [46,77,70 ],
(71, 7): [0],
(71, 15): [15,66],
(71, 19): [0],
(71, 47): [0],
(72, 25): [25,73],
(73, 7): [0],
(73, 10): [0],
(73, 14): [0],
(73, 15): [0],
(73, 17): [0],
(73, 19): [0],
(73, 22): [0],
(73, 23): [0],
(73, 28): [0],
(73, 30): [0],
(73, 31): [0],
(73, 32): [0],
(73, 33): [0],
(73, 34): [34,77,35],
(73, 35): [0],
(73, 37): [0],
(73, 40): [0],
(73, 41): [0],
(73, 42): [0],
(73, 43): [0],
(73, 44): [0],
(73, 45): [0],
(73, 46): [0],
(73, 47): [0],
(74, 37): [0],
(74, 46): [46,72,74],
(75, 24): [77],
(75, 25): [77],
(75, 26): [77],
(75, 30): [77],
(75, 31): [77],
(75, 36): [77],
(75, 48): [48],
(76, 37): [0],
(76, 46): [46,75,76],
(77, 24): [79,78 ],
(77, 25): [79,78 ],
(77, 26): [79,78 ],
(77, 30): [79,78 ],
(77, 31): [79,78 ],
(77, 36): [79,78 ],
(78, 7): [0],
(78, 10): [0],
(78, 14): [0],
(78, 15): [0],
(78, 17): [0],
(78, 19): [0],
(78, 28): [0],
(78, 35): [0],
(78, 37): [0],
(78, 40): [40,79],
(78, 41): [41,79],
(78, 42): [42,79],
(78, 43): [43,79],
(78, 44): [44,79 ],
(78, 45): [45,79],
(78, 46): [0],
(78, 47): [0],
(79, 24): [81,80],
(79, 25): [81,80],
(79, 26): [81,80],
(79, 30): [30,81,80],
(79, 31): [31,81,80],
(79, 36): [81,80],
(80, 7): [0],
(80, 10): [0],
(80, 14): [0],
(80, 15): [0],
(80, 17): [0],
(80, 19): [0],
(80, 22): [22,81,80],
(80, 28): [0],
(80, 30): [30,81,80],
(80, 31): [31,81,80],
(80, 35): [0],
(80, 37): [0],
(80, 40): [0],
(80, 41): [0],
(80, 42): [0],
(80, 43): [0],
(80, 44): [0],
(80, 45): [0],
(80, 46): [0],
(80, 47): [0],
(81, 24): [83,82 ],
(81, 25): [83,82 ],
(81, 26): [83,82 ],
(81, 36): [83,82 ],
(82, 7): [0],
(82, 10): [0],
(82, 14): [0],
(82, 15): [0],
(82, 17): [0],
(82, 19): [0],
(82, 22): [0],
(82, 23): [23,83,82],
(82, 28): [0],
(82, 30): [0],
(82, 31): [0],
(82, 32): [32,83,82],
(82, 33): [33,83,82],
(82, 35): [0],
(82, 37): [0],
(82, 40): [0],
(82, 41): [0],
(82, 42): [0],
(82, 43): [0],
(82, 44): [0],
(82, 45): [0],
(82, 46): [0],
(82, 47): [0],
(83, 24): [24,83],
(83, 25): [72],
(83, 26): [26],
(83, 36): [36,77,37],
(84, 26): [26,86,39,66,85],
(85, 7): [0],
(85, 47): [47,84],
(86, 39): [0],
(86, 46): [46,26,86]
} | 21.765625 | 40 | 0.318258 | 739 | 4,179 | 1.799729 | 0.117727 | 0.049624 | 0.022556 | 0.030075 | 0.073684 | 0.03609 | 0 | 0 | 0 | 0 | 0 | 0.466078 | 0.322805 | 4,179 | 192 | 41 | 21.765625 | 0.003887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
70856fc408b1d9ce0c39c9247fc08ef6c39a8875 | 19 | py | Python | master_mind/params.py | nariaki3551/master_mind | 365a11599d7979a1a9f222e61b4f27925d4dbb91 | [
"MIT"
] | 1 | 2021-05-20T09:16:08.000Z | 2021-05-20T09:16:08.000Z | master_mind/params.py | nariaki3551/master_mind | 365a11599d7979a1a9f222e61b4f27925d4dbb91 | [
"MIT"
] | null | null | null | master_mind/params.py | nariaki3551/master_mind | 365a11599d7979a1a9f222e61b4f27925d4dbb91 | [
"MIT"
] | null | null | null | max_sampling = 100
| 9.5 | 18 | 0.789474 | 3 | 19 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0.157895 | 19 | 1 | 19 | 19 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
709da2b57ccdc084a5130503c1f9936f15db24cd | 291 | py | Python | exercicios/ex007.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | exercicios/ex007.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | exercicios/ex007.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | # Média Aritmética
n1 = float(input('Digite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
m = (n1 + n2) / 2
print('== DADOS OBTIDOS ==')
print('Primeira nota: {:.1f}'.format(n1))
print('Segunda nota: {:.1f}'.format(n2))
print('A média alcançada foi de {:.1f}'.format(m))
| 32.333333 | 50 | 0.639175 | 44 | 291 | 4.227273 | 0.477273 | 0.129032 | 0.172043 | 0.182796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039841 | 0.137457 | 291 | 8 | 51 | 36.375 | 0.701195 | 0.054983 | 0 | 0 | 0 | 0 | 0.505495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 |
56332a165010efb1f40f06a7ccb50e202569d6d6 | 549 | py | Python | petisco/base/domain/message/not_implemented_message_bus.py | alice-biometrics/petisco | b96e697cc875f67a28e60b4fc0d9ed9fc646cd86 | [
"MIT"
] | 19 | 2019-11-01T09:27:17.000Z | 2021-12-15T10:52:31.000Z | petisco/base/domain/message/not_implemented_message_bus.py | alice-biometrics/petisco | b96e697cc875f67a28e60b4fc0d9ed9fc646cd86 | [
"MIT"
] | 68 | 2020-01-15T06:55:00.000Z | 2022-02-22T15:57:24.000Z | petisco/base/domain/message/not_implemented_message_bus.py | alice-biometrics/petisco | b96e697cc875f67a28e60b4fc0d9ed9fc646cd86 | [
"MIT"
] | 2 | 2019-11-19T10:40:25.000Z | 2019-11-28T07:12:07.000Z | from petisco.base.domain.message.message import Message
from petisco.base.domain.message.message_bus import MessageBus
class NotImplementedMessageBus(MessageBus):
def publish(self, message: Message):
self._check_is_message(message)
meta = self.get_configured_meta()
_ = message.update_meta(meta)
def retry_publish_only_on_store_queue(self, message: Message):
self._check_is_message(message)
meta = self.get_configured_meta()
_ = message.update_meta(meta)
def close(self):
pass
| 30.5 | 66 | 0.721311 | 67 | 549 | 5.61194 | 0.38806 | 0.223404 | 0.079787 | 0.111702 | 0.675532 | 0.675532 | 0.489362 | 0.489362 | 0.489362 | 0.489362 | 0 | 0 | 0.1949 | 549 | 17 | 67 | 32.294118 | 0.850679 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.153846 | 0 | 0.461538 | 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 |
563a3e1d63d94194a59fd4d7f592dcad8db88fcf | 473 | py | Python | csvtodb/Table.py | akk0ga/CsvToDB | 83e7c812a0a268323569021a5c3d16d7d46f89ed | [
"MIT"
] | 4 | 2021-05-24T12:18:40.000Z | 2021-07-26T08:38:35.000Z | gui/csvtodb/Table.py | akk0ga/CsvToDB | 83e7c812a0a268323569021a5c3d16d7d46f89ed | [
"MIT"
] | null | null | null | gui/csvtodb/Table.py | akk0ga/CsvToDB | 83e7c812a0a268323569021a5c3d16d7d46f89ed | [
"MIT"
] | null | null | null | import abc
from csvtodb.Csv import Csv
class Table:
def __repr__(self):
return 'interface to make sql table'
@abc.abstractmethod
def _build_table(self, csv: Csv, engine: str, temporary: bool) -> str:
"""
create new sql table
:param csv: Csv
:param engine: str
:param temporary: bool
:return: str
"""
pass
@abc.abstractmethod
def _define_col_type(self, csv: Csv):
pass
| 19.708333 | 74 | 0.58351 | 57 | 473 | 4.684211 | 0.491228 | 0.067416 | 0.149813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32981 | 473 | 23 | 75 | 20.565217 | 0.842271 | 0.194503 | 0 | 0.363636 | 0 | 0 | 0.083077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5646e8e6ba16cc6c303e072420c214c112055d17 | 171 | py | Python | mundo-1/ex002.py | PedroSantana2/exercicios-python-canal-curso-em-video | 154ae9771e88906c7fcef5efc5799e44acfc2ae3 | [
"MIT"
] | 1 | 2021-03-17T20:16:36.000Z | 2021-03-17T20:16:36.000Z | mundo-1/ex002.py | PedroSantana2/exercicios-python-canal-curso-em-video | 154ae9771e88906c7fcef5efc5799e44acfc2ae3 | [
"MIT"
] | null | null | null | mundo-1/ex002.py | PedroSantana2/exercicios-python-canal-curso-em-video | 154ae9771e88906c7fcef5efc5799e44acfc2ae3 | [
"MIT"
] | null | null | null | '''
Faça um programa que leia o nome de uma pessoa e mostre uma mensagem de boas-vindas.
'''
nome = input('Qual seu nome: ')
print('Olá {}! Seja bem vindo!'.format(nome))
| 28.5 | 84 | 0.684211 | 29 | 171 | 4.034483 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169591 | 171 | 5 | 85 | 34.2 | 0.823944 | 0.491228 | 0 | 0 | 0 | 0 | 0.481013 | 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 |
564d3983c15de3dc732d2d4deb246a2026f94918 | 1,426 | py | Python | utests/count_tokens.py | CreativeBlockchainDevelopers/tezos-artblocks | a25dee4cff6e3c0a49565435a473717b37af01eb | [
"MIT"
] | 2 | 2021-11-12T09:56:40.000Z | 2022-03-21T22:33:25.000Z | utests/count_tokens.py | CreativeBlockchainDevelopers/tezos-artblocks | a25dee4cff6e3c0a49565435a473717b37af01eb | [
"MIT"
] | null | null | null | utests/count_tokens.py | CreativeBlockchainDevelopers/tezos-artblocks | a25dee4cff6e3c0a49565435a473717b37af01eb | [
"MIT"
] | null | null | null | def run_tests_count_tokens(config):
scenario = sp.test_scenario()
admin, [alice, bob] = get_addresses()
scenario.h1("Tests count token")
#-----------------------------------------------------
scenario.h2("Nothing is minted")
contract = create_new_contract(config, admin, scenario, [])
count = contract.count_tokens()
scenario.verify(count == 0)
#-----------------------------------------------------
scenario.h2("One token is minted")
contract = create_new_contract(config, admin, scenario, [alice])
count = contract.count_tokens()
scenario.verify(count == 1)
#-----------------------------------------------------
scenario.h2("Two token are minted")
contract = create_new_contract(config, admin, scenario, [alice])
count = contract.count_tokens()
scenario.verify(count == 1)
contract.mint(1).run(sender=admin, amount=sp.mutez(1000000))
count = contract.count_tokens()
scenario.verify(count == 2)
#-----------------------------------------------------
scenario.h2("Mint fails are not counted as tokens")
config.max_editions = 2
contract = create_new_contract(config, admin, scenario, [alice, bob])
count = contract.count_tokens()
scenario.verify(count == 2)
contract.mint(1).run(sender=admin, amount=sp.mutez(1000000), valid=False)
count = contract.count_tokens()
scenario.verify(count == 2)
| 31 | 77 | 0.573633 | 152 | 1,426 | 5.25 | 0.282895 | 0.096491 | 0.135338 | 0.180451 | 0.714286 | 0.714286 | 0.714286 | 0.660401 | 0.433584 | 0.365915 | 0 | 0.023569 | 0.1669 | 1,426 | 45 | 78 | 31.688889 | 0.648148 | 0.148668 | 0 | 0.481481 | 0 | 0 | 0.090083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 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 |
567259bb377b016b63808c51c6e363d9e8dd7a48 | 480 | py | Python | djangosige/apps/cadastro/forms/__init__.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/cadastro/forms/__init__.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/cadastro/forms/__init__.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .pessoa_forms import PessoaJuridicaForm, PessoaFisicaForm
from .inline_formsets import EnderecoFormSet, TelefoneFormSet, EmailFormSet, SiteFormSet, BancoFormSet, DocumentoFormSet
from .empresa import EmpresaForm, MinhaEmpresaForm
from .cliente import ClienteForm
from .fornecedor import FornecedorForm
from .transportadora import TransportadoraForm, VeiculoFormSet
from .produto import ProdutoForm, CategoriaForm, UnidadeForm, MarcaForm
| 40 | 121 | 0.822917 | 44 | 480 | 8.931818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00237 | 0.120833 | 480 | 11 | 122 | 43.636364 | 0.92891 | 0.04375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5686c35d81d76b0082e44452984080591af76fd8 | 342 | py | Python | lib/last_bullet.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | lib/last_bullet.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | lib/last_bullet.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | def replay(adb):
adb.tap(1720, 1000)
def go_to_home(adb):
adb.tap(1961, 40)
def go_to_battle(adb):
adb.tap(1943, 928)
def go_to_event_battle(adb):
adb.tap(1900, 345)
def select_daily_event(adb):
adb.tap(313, 267)
def select_unit(adb):
adb.tap(1935, 935)
def sortie(adb):
adb.tap(1930, 947)
def stage_clear_ok(adb):
adb.tap(1958, 996)
| 20.117647 | 28 | 0.719298 | 68 | 342 | 3.441176 | 0.470588 | 0.205128 | 0.307692 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182119 | 0.116959 | 342 | 16 | 29 | 21.375 | 0.592715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5692dc922a0e2c74e645d7562d397d13b4ab812d | 872 | py | Python | goratings/interfaces/Storage.py | flovo/goratings | 50b5443b73daae64306e256205eabee8f4815c65 | [
"MIT"
] | 13 | 2020-07-02T16:43:12.000Z | 2021-12-12T00:12:48.000Z | goratings/interfaces/Storage.py | flovo/goratings | 50b5443b73daae64306e256205eabee8f4815c65 | [
"MIT"
] | 13 | 2020-07-05T10:06:42.000Z | 2022-02-27T10:03:24.000Z | goratings/interfaces/Storage.py | flovo/goratings | 50b5443b73daae64306e256205eabee8f4815c65 | [
"MIT"
] | 2 | 2020-07-04T11:19:37.000Z | 2021-01-15T16:46:32.000Z | import abc
from typing import Any, Dict
__all__ = ["Storage"]
class Storage(abc.ABC):
@abc.abstractmethod
def get(self, player_id: int) -> Any:
raise NotImplementedError
@abc.abstractmethod
def set(self, player_id: int, entry: Any) -> None:
raise NotImplementedError
@abc.abstractmethod
def get_set_count(self, player_id: int) -> int:
raise NotImplementedError
@abc.abstractmethod
def clear_set_count(self, player_id: int) -> None:
raise NotImplementedError
@abc.abstractmethod
def all_players(self) -> Dict[int, Any]:
raise NotImplementedError
@abc.abstractmethod
def get_timeout_flag(self, player_id: int) -> bool:
raise NotImplementedError
@abc.abstractmethod
def set_timeout_flag(self, player_id: int, tf: bool) -> None:
raise NotImplementedError
| 24.914286 | 65 | 0.682339 | 102 | 872 | 5.647059 | 0.27451 | 0.206597 | 0.243056 | 0.15625 | 0.684028 | 0.607639 | 0.173611 | 0 | 0 | 0 | 0 | 0 | 0.228211 | 872 | 34 | 66 | 25.647059 | 0.855869 | 0 | 0 | 0.56 | 0 | 0 | 0.008028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.08 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56a44d7643045f28de3b4e76878cded0c4718f41 | 394 | py | Python | listTesting.py | nawnaw1/PythonTesting | eade05cee4af0c2c0f805db6cf17ff9981f4688f | [
"MIT"
] | null | null | null | listTesting.py | nawnaw1/PythonTesting | eade05cee4af0c2c0f805db6cf17ff9981f4688f | [
"MIT"
] | null | null | null | listTesting.py | nawnaw1/PythonTesting | eade05cee4af0c2c0f805db6cf17ff9981f4688f | [
"MIT"
] | null | null | null | list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print(list) # Prints complete list
print(list[0]) # Prints first element of the list
print(list[1:3]) # Prints elements starting from 2nd till 3rd
print(list[2:]) # Prints elements starting from 3rd element
print(tinylist * 2) # Prints list two times
print(list + tinylist) # Prints concatenated lists | 49.25 | 65 | 0.672589 | 58 | 394 | 4.568966 | 0.5 | 0.169811 | 0.098113 | 0.196226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.208122 | 394 | 8 | 66 | 49.25 | 0.785256 | 0.472081 | 0 | 0 | 0 | 0 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 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 |
3b31388aa187866a89842f98f951d700702261ce | 14,765 | py | Python | tests/test_vsim.py | abs-tudelft/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 17 | 2019-06-06T06:28:38.000Z | 2021-04-23T09:52:10.000Z | tests/test_vsim.py | jonasjj/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 34 | 2019-06-17T11:55:28.000Z | 2020-10-01T11:27:49.000Z | tests/test_vsim.py | jvanstraten/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 1 | 2021-04-23T05:22:41.000Z | 2021-04-23T05:22:41.000Z | """Tests the vsim backend."""
from unittest import TestCase, skipIf
import os
import tempfile
from plumbum import local
from .common import run_vhdeps, MockMissingImport
DIR = os.path.realpath(os.path.dirname(__file__))
def vsim_installed():
"""Returns whether vsim is installed."""
try:
from plumbum.cmd import vsim #pylint: disable=W0611,C0415
return True
except ImportError:
return False
@skipIf(not vsim_installed(), 'missing vsim')
class TestVsimReal(TestCase):
"""Tests the vsim backend by actually invoking vsim and checking the test
suite result."""
def test_all_good(self):
"""Test running vsim on a single passing test case"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/all-good')
self.assertEqual(code, 0)
self.assertTrue('working!' in out)
self.assertTrue('PASSED work.test_tc' in out)
self.assertTrue('Test suite PASSED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/all-good'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/all-good'))
def test_multiple_per_file(self):
"""Test running vsim on a file with multiple test cases"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/complex/multi-tc-per-file')
self.assertEqual(code, 0)
self.assertTrue('working!' in out)
self.assertTrue('PASSED work.foo_tc' in out)
self.assertTrue('PASSED work.bar_tc' in out)
self.assertTrue('Test suite PASSED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/complex/multi-tc-per-file'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/complex/multi-tc-per-file'))
def test_failure(self):
"""Test running vsim on a single failing test case"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/failure')
self.assertNotEqual(code, 0)
self.assertTrue('uh oh!' in out)
self.assertTrue('FAILED work.test_tc' in out)
self.assertTrue('Test suite FAILED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/failure'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/failure'))
def test_timeout(self):
"""Test running vsim on a single test case that times out"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/timeout')
self.assertNotEqual(code, 0)
self.assertTrue('TIMEOUT work.test_tc' in out)
self.assertTrue('Test suite FAILED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/timeout'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/timeout'))
def test_infinite(self):
"""Test running vsim on a single test case that does not terminate"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/infinite')
self.assertNotEqual(code, 0)
self.assertTrue('TIMEOUT work.test_tc' in out)
self.assertTrue('Test suite FAILED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/infinite'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/infinite'))
def test_error(self):
"""Test running vsim on a single test case that fails to
elaborate"""
code, _, _ = run_vhdeps('vsim', '-i', DIR+'/simple/elab-error')
self.assertNotEqual(code, 0)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/elab-error'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/elab-error'))
def parse_error(self):
"""Test running vsim on a single test case that fails to compile"""
code, _, _ = run_vhdeps('vsim', '-i', DIR+'/simple/parse-error')
self.assertNotEqual(code, 0)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/parse-error'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/parse-error'))
def test_default_timeout_success(self):
"""Test running vsim on a single test case that does not have a
timeout specified, but succeeds within 1 ms"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/default-timeout-success')
self.assertEqual(code, 0)
self.assertTrue('PASSED work.test_tc' in out)
self.assertTrue('Test suite PASSED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/default-timeout-success'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/default-timeout-success'))
def test_default_timeout_too_short(self):
"""Test running vsim on a single test case that does not have a
timeout specified and takes longer than that to complete"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/default-timeout-too-short')
self.assertNotEqual(code, 0)
self.assertTrue('TIMEOUT work.test_tc' in out)
self.assertTrue('Test suite FAILED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/default-timeout-too-short'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/default-timeout-too-short'))
def test_multiple_ok(self):
"""Test running vsim on a test suite with multiple test cases that all
succeed"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/multiple-ok')
self.assertEqual(code, 0)
self.assertTrue('working!' in out)
self.assertTrue('PASSED work.foo_tc' in out)
self.assertTrue('PASSED work.bar_tc' in out)
self.assertTrue('Test suite PASSED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/multiple-ok'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/multiple-ok'))
def test_partial_failure(self):
"""Test running vsim on a test suite with multiple test cases of which
one fails"""
code, out, _ = run_vhdeps('vsim', '-i', DIR+'/simple/partial-failure')
self.assertEqual(code, 1)
self.assertTrue('working!' in out)
self.assertTrue('uh oh!' in out)
self.assertTrue('FAILED work.fail_tc' in out)
self.assertTrue('PASSED work.pass_tc' in out)
self.assertTrue('Test suite FAILED' in out)
self.assertFalse('modelsim.ini' in os.listdir(DIR+'/simple/partial-failure'))
self.assertFalse('vsim.wlf' in os.listdir(DIR+'/simple/partial-failure'))
def test_workdir(self):
"""Test the workdir for the test case for GHDL"""
with tempfile.TemporaryDirectory() as tempdir:
local['cp'](DIR+'/complex/file-io/test_tc.vhd', tempdir)
with local.cwd(tempdir):
code, _, _ = run_vhdeps('vsim')
self.assertEqual(code, 0)
self.assertEqual(sorted(os.listdir(tempdir)), ['output_file.txt', 'test_tc.vhd'])
class TestVsimMocked(TestCase):
"""Tests the vsim backend without calling a real vsim."""
def test_tcl_single(self):
"""Test TCL output for a single test case to stdout"""
code, out, _ = run_vhdeps('vsim', '--tcl', '-i', DIR+'/simple/all-good')
self.assertEqual(code, 0)
self.assertTrue('add_source {' + DIR + '/simple/all-good/test_tc.vhd} '
'{work} {-quiet -2008}' in out)
self.assertTrue('add_test {work} {test_tc} {' + DIR + '/simple/all-good}' in out)
def test_tcl_multi(self):
"""Test TCL output for a test suite to stdout"""
code, out, _ = run_vhdeps('vsim', '--tcl', '-i', DIR+'/simple/multi-version')
self.assertEqual(code, 0)
self.assertTrue('add_source {' + DIR + '/simple/multi-version/bar_tc.08.vhd} '
'{work} {-quiet -2008}' in out)
self.assertTrue('add_source {' + DIR + '/simple/multi-version/foo_tc.93.vhd} '
'{work} {-quiet -93}' in out)
self.assertTrue('add_test {work} {bar_tc} {' + DIR + '/simple/multi-version}' in out)
self.assertTrue('add_test {work} {foo_tc} {' + DIR + '/simple/multi-version}' in out)
def test_tcl_versions(self):
"""Test TCL output for a test suite with mixed VHDL versions to
stdout"""
code, out, _ = run_vhdeps('vsim', '--tcl', '-i', DIR+'/vsim/supported-versions')
self.assertEqual(code, 0)
self.assertTrue('add_source {' + DIR + '/vsim/supported-versions/a.87.vhd} '
'{work} {-quiet -87}' in out)
self.assertTrue('add_source {' + DIR + '/vsim/supported-versions/b.93.vhd} '
'{work} {-quiet -93}' in out)
self.assertTrue('add_source {' + DIR + '/vsim/supported-versions/c.02.vhd} '
'{work} {-quiet -2002}' in out)
self.assertTrue('add_source {' + DIR + '/vsim/supported-versions/test_tc.08.vhd} '
'{work} {-quiet -2008}' in out)
self.assertTrue('add_test {work} {test_tc} {' + DIR + '/vsim/supported-versions}' in out)
def test_tcl_vsim_flags(self):
"""Test vsim flags using -W and pragma"""
code, out, _ = run_vhdeps(
'vsim', '--tcl', '-i', DIR+'/vsim/flags',
'-Ws,-foo,-bar', '-Ws,-baz')
self.assertEqual(code, 0)
self.assertTrue('{1 ms} {-a -b -c -novopt -foo -bar -baz}' in out)
def test_tcl_vcom_flags(self):
"""Test vcom flags using -W and pragma"""
code, out, _ = run_vhdeps(
'vsim', '--tcl', '-i', DIR+'/vsim/flags',
'-Wc,-foo,-bar')
self.assertEqual(code, 0)
self.assertTrue('add_source {' + DIR + '/vsim/flags/test_tc.vhd} '
'{work} {-quiet -2008 -d -e -foo -bar}' in out)
def test_invalid_flags(self):
"""Test invalid flags for -W for vsim"""
code, _, err = run_vhdeps(
'vsim', '--tcl', '-i', DIR+'/simple/all-good',
'-Wx,-foo,-bar')
self.assertNotEqual(code, 0)
self.assertTrue('invalid value for -W' in err)
code, _, err = run_vhdeps(
'vsim', '--tcl', '-i', DIR+'/simple/all-good',
'-Ws')
self.assertNotEqual(code, 0)
self.assertTrue('invalid value for -W' in err)
def test_tcl_vcom_pragmas(self):
"""Test vsim-specific pragmas"""
code, out, _ = run_vhdeps(
'vsim', '--tcl', '-i', DIR+'/vsim/pragma-1')
self.assertEqual(code, 0)
self.assertTrue('} True True {hello.do}' in out)
code, out, _ = run_vhdeps(
'vsim', '--tcl', '-i', DIR+'/vsim/pragma-2')
self.assertEqual(code, 0)
self.assertTrue('} False False {}' in out)
def test_tcl_to_file(self):
"""Test TCL output to a file"""
with tempfile.TemporaryDirectory() as tempdir:
code, _, _ = run_vhdeps(
'vsim', '--tcl',
'-i', DIR+'/simple/all-good',
'-o', tempdir + '/sim.do')
self.assertEqual(code, 0)
self.assertTrue(os.path.isfile(tempdir + '/sim.do'))
def test_cleanup(self):
"""Test .cleanup file handling"""
with local.env(PATH=DIR+'/vsim/fake-vsim:' + local.env['PATH']):
with tempfile.TemporaryDirectory() as tempdir:
with local.cwd(tempdir):
with open('.cleanup', 'w') as fil:
fil.write(tempdir + '/test1\n')
fil.write(tempdir + '/test2\n')
with open('test1', 'w') as fil:
pass
code, _, _ = run_vhdeps(
'vsim', '--no-tempdir',
'-i', DIR+'/simple/all-good')
self.assertEqual(code, 0)
self.assertEqual(sorted(os.listdir(tempdir)), ['vsim.do', 'vsim.log'])
def test_unsupported_version(self):
"""Test unsupported VHDL versions"""
code, _, err = run_vhdeps('vsim', '--tcl', '-i', DIR+'/vsim/unsupported-version')
self.assertEqual(code, 1)
self.assertTrue('VHDL version 2012 is not supported' in err)
def test_no_vsim(self):
"""Test the error message that is generated when vsim is missing"""
with local.env(PATH=''):
code, _, err = run_vhdeps('vsim', '-i', DIR+'/simple/all-good')
self.assertEqual(code, 1)
self.assertTrue('no vsim-compatible simulator was found.' in err)
def test_no_plumbum(self):
"""Test the error message that is generated when plumbum is missing"""
with MockMissingImport('plumbum'):
code, _, err = run_vhdeps('vsim', '-i', DIR+'/simple/all-good')
self.assertEqual(code, 1)
self.assertTrue('the vsim backend requires plumbum to be installed' in err)
def test_gui_tempdir(self):
"""Test running (a fake) vsim in GUI mode in a temporary directory"""
with local.env(PATH=DIR+'/vsim/fake-vsim:' + local.env['PATH']):
with tempfile.TemporaryDirectory() as tempdir:
with local.cwd(tempdir):
code, out, _ = run_vhdeps('vsim', '--gui', '-i', DIR+'/simple/all-good')
self.assertEqual(code, 0)
self.assertTrue('executing do file' in out)
self.assertFalse('vsim.do' in os.listdir(tempdir))
self.assertFalse('vsim.log' in os.listdir(tempdir))
def test_gui_no_tempdir(self):
"""Test running (a fake) vsim in GUI mode in the working directory"""
with local.env(PATH=DIR+'/vsim/fake-vsim:' + local.env['PATH']):
with tempfile.TemporaryDirectory() as tempdir:
with local.cwd(tempdir):
code, out, _ = run_vhdeps(
'vsim', '--gui', '--no-tempdir', '-i', DIR+'/simple/all-good')
self.assertEqual(code, 0)
self.assertTrue('executing do file' in out)
with open(tempdir + '/vsim.log', 'r') as log_fildes:
with open(tempdir + '/vsim.do', 'r') as do_fildes:
self.assertEqual(log_fildes.read(), do_fildes.read())
def test_batch_no_tempdir(self):
"""Test running (a fake) vsim in batch mode in the working
directory"""
with local.env(PATH=DIR+'/vsim/fake-vsim:' + local.env['PATH']):
with tempfile.TemporaryDirectory() as tempdir:
with local.cwd(tempdir):
code, out, _ = run_vhdeps('vsim', '--no-tempdir', '-i', DIR+'/simple/all-good')
self.assertEqual(code, 0)
self.assertTrue('executing from stdin' in out)
with open(tempdir + '/vsim.log', 'r') as log_fildes:
self.assertTrue('add_test {work} {test_tc}' in log_fildes.read())
| 48.569079 | 99 | 0.589909 | 1,888 | 14,765 | 4.522775 | 0.114936 | 0.085256 | 0.037944 | 0.057852 | 0.764024 | 0.728657 | 0.683687 | 0.632041 | 0.597025 | 0.550416 | 0 | 0.007878 | 0.260616 | 14,765 | 303 | 100 | 48.729373 | 0.774297 | 0.117711 | 0 | 0.41048 | 0 | 0 | 0.255249 | 0.060339 | 0 | 0 | 0 | 0 | 0.471616 | 1 | 0.122271 | false | 0.052402 | 0.034935 | 0 | 0.174672 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3b3bac22c2eadb5573647ccb558c25be327ecf33 | 201 | py | Python | Python/Capitalize!/main.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | Python/Capitalize!/main.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | Python/Capitalize!/main.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | def solve(s):
word_list = s.split(' ')
name_capitalized = []
for word in word_list:
name_capitalized.append(word.capitalize())
word = ' '.join(name_capitalized)
return word
| 25.125 | 50 | 0.636816 | 25 | 201 | 4.92 | 0.56 | 0.365854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 201 | 7 | 51 | 28.714286 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
3b4aa7ec7f29648a248c231e74c21dc057178b2c | 168 | py | Python | pyeccodes/defs/grib2/local_98_42_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 7 | 2020-04-14T09:41:17.000Z | 2021-08-06T09:38:19.000Z | pyeccodes/defs/grib2/local_98_42_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | null | null | null | pyeccodes/defs/grib2/local_98_42_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 3 | 2020-04-30T12:44:48.000Z | 2020-12-15T08:40:26.000Z | import pyeccodes.accessors as _
def load(h):
h.add(_.Codetable('lcwfvSuiteName', 2, "grib2/lcwfv_suiteName.table"))
h.alias('mars.origin', 'lcwfvSuiteName')
| 21 | 74 | 0.708333 | 21 | 168 | 5.52381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.130952 | 168 | 7 | 75 | 24 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.392857 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b7990611d946520e88b9782c7e5f120dee360f3 | 108,572 | py | Python | algorithmn/medicalNewsLinksParser.py | Archeane/HackathonMatcher | e2c7522d38782143e92b312db8260317e43bfafe | [
"MIT"
] | null | null | null | algorithmn/medicalNewsLinksParser.py | Archeane/HackathonMatcher | e2c7522d38782143e92b312db8260317e43bfafe | [
"MIT"
] | null | null | null | algorithmn/medicalNewsLinksParser.py | Archeane/HackathonMatcher | e2c7522d38782143e92b312db8260317e43bfafe | [
"MIT"
] | null | null | null | from html.parser import HTMLParser
from bs4 import BeautifulSoup
import requests
f = open("newslinks.txt", "a")
links = []
class MyHTMLParser(HTMLParser):
def handle_starttag(self, tag, attrs):
if tag == "a":
links.append(attrs)
#print("Encountered a start tag:", attrs)
'''
def handle_endtag(self, tag):
def handle_data(self, data):
'''
parser = MyHTMLParser()
htmlstr = """<table class="wikitable sortable jquery-tablesorter">
<thead><tr>
<th class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Name</th>
<th class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Specialty</th>
<th class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Publisher</th>
<th class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">English</th>
<th class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Publication Dates
</th></tr></thead><tbody>
<tr>
<td><i><a href="/wiki/Academic_Medicine_(journal)" title="Academic Medicine (journal)">Academic Medicine</a></i></td>
<td>Academic medicine</td>
<td><a href="/wiki/Association_of_American_Medical_Colleges" title="Association of American Medical Colleges">Association of American Medical Colleges</a></td>
<td>English</td>
<td>1926-present
</td></tr>
<tr>
<td><i><a href="/wiki/ACIMED" class="mw-redirect" title="ACIMED">ACIMED</a></i></td>
<td>Medical informatics</td>
<td><a href="/w/index.php?title=National_Center_of_Information_on_Medical_Sciences_in_Cuba&action=edit&redlink=1" class="new" title="National Center of Information on Medical Sciences in Cuba (page does not exist)">National Center of Information on Medical Sciences in Cuba</a></td>
<td>Spanish</td>
<td>1993–present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_Anaesthesiologica_Scandinavica" title="Acta Anaesthesiologica Scandinavica">Acta Anaesthesiologica Scandinavica</a></i></td>
<td><a href="/wiki/Anaesthesiology" class="mw-redirect" title="Anaesthesiology">Anaesthesiology</a>, <a href="/wiki/Intensive_Care" class="mw-redirect" title="Intensive Care">Intensive Care</a></td>
<td><a href="/w/index.php?title=Scandinavian_Society_of_Anaesthesiology_and_Intensive_Care_Medicine&action=edit&redlink=1" class="new" title="Scandinavian Society of Anaesthesiology and Intensive Care Medicine (page does not exist)">Scandinavian Society of Anaesthesiology and Intensive Care Medicine</a></td>
<td>English</td>
<td>1957-present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_M%C3%A9dica_Portuguesa" title="Acta Médica Portuguesa">Acta Médica Portuguesa</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=Portuguese_Medical_Association&action=edit&redlink=1" class="new" title="Portuguese Medical Association (page does not exist)">Portuguese Medical Association</a></td>
<td>Portuguese</td>
<td>1979-present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_Neurologica_Scandinavica" title="Acta Neurologica Scandinavica">Acta Neurologica Scandinavica</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1925-present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_Orthopaedica_et_Traumatologica_Turcica" title="Acta Orthopaedica et Traumatologica Turcica">Acta Orthopaedica et Traumatologica Turcica</a></i></td>
<td>Orthopedics</td>
<td><a href="/w/index.php?title=Turkish_Association_of_Orthopaedics_and_Traumatology&action=edit&redlink=1" class="new" title="Turkish Association of Orthopaedics and Traumatology (page does not exist)">Turkish Association of Orthopaedics and Traumatology</a></td>
<td>English</td>
<td>1962-present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_Oto-Laryngologica" title="Acta Oto-Laryngologica">Acta Oto-Laryngologica</a></i></td>
<td>Otolaryngology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1918-present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_Paediatrica" title="Acta Paediatrica">Acta Paediatrica</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1921-present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_Psychiatrica_Scandinavica" title="Acta Psychiatrica Scandinavica">Acta Psychiatrica Scandinavica</a></i></td>
<td>Psychiatry</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1926-present
</td></tr>
<tr>
<td><i><a href="/wiki/Acta_Radiologica" title="Acta Radiologica">Acta Radiologica</a></i></td>
<td>Radiology</td>
<td><a href="/wiki/Sage_Publications" class="mw-redirect" title="Sage Publications">Sage Publications</a></td>
<td>English</td>
<td>1921-present
</td></tr>
<tr>
<td><i><a href="/wiki/Advances_in_Therapy" title="Advances in Therapy">Advances in Therapy</a></i></td>
<td>Clinical medicine</td>
<td><a href="/wiki/Springer_Science%2BBusiness_Media" title="Springer Science+Business Media">Springer Science+Business Media</a></td>
<td>English</td>
<td>1984-present
</td></tr>
<tr>
<td><i><a href="/wiki/African_Journal_of_Paediatric_Surgery" title="African Journal of Paediatric Surgery">African Journal of Paediatric Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/AIDS_(journal)" title="AIDS (journal)">AIDS</a></i></td>
<td>AIDS</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1987–present
</td></tr>
<tr>
<td><i><a href="/wiki/Alimentary_Pharmacology_%26_Therapeutics" title="Alimentary Pharmacology & Therapeutics">Alimentary Pharmacology & Therapeutics</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1987-present
</td></tr>
<tr>
<td><i><a href="/wiki/Alzheimer_Disease_and_Associated_Disorders" title="Alzheimer Disease and Associated Disorders">Alzheimer Disease and Associated Disorders</a></i></td>
<td>Alzheimer's</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1987-present
</td></tr>
<tr>
<td><i><a href="/wiki/Alzheimer%27s_Research_%26_Therapy" title="Alzheimer's Research & Therapy">Alzheimer's Research & Therapy</a></i></td>
<td>Alzheimer's</td>
<td><a href="/wiki/BioMed_Central" title="BioMed Central">BioMed Central</a></td>
<td>English</td>
<td>2009-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Family_Physician" title="American Family Physician">American Family Physician</a></i></td>
<td>Family medicine</td>
<td><a href="/wiki/American_Academy_of_Family_Physicians" title="American Academy of Family Physicians">American Academy of Family Physicians</a></td>
<td>English</td>
<td>1969-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Alzheimer%27s_Disease_%26_Other_Dementias" title="American Journal of Alzheimer's Disease & Other Dementias">American Journal of Alzheimer's Disease & Other Dementias</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1986-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Emergency_Medicine" title="American Journal of Emergency Medicine">American Journal of Emergency Medicine</a></i></td>
<td>Emergency medicine</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1983-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Gastroenterology" class="mw-redirect" title="American Journal of Gastroenterology">American Journal of Gastroenterology</a></i></td>
<td>Gastroenterology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1934-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Medical_Genetics" title="American Journal of Medical Genetics">American Journal of Medical Genetics</a></i></td>
<td>Genetics</td>
<td><a href="/wiki/Wiley-Liss" class="mw-redirect" title="Wiley-Liss">Wiley-Liss</a></td>
<td>English</td>
<td>1977-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_the_Medical_Sciences" class="mw-redirect" title="American Journal of the Medical Sciences">American Journal of the Medical Sciences</a></i></td>
<td>Medicine</td>
<td>Lippincott Williams & Wilkins</td>
<td>English</td>
<td>1820-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Obstetrics_and_Gynecology" title="American Journal of Obstetrics and Gynecology">American Journal of Obstetrics and Gynecology</a></i></td>
<td>Obstetrics and Gynecology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1920-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Public_Health" title="American Journal of Public Health">American Journal of Public Health</a></i></td>
<td>Public Health</td>
<td><a href="/wiki/American_Public_Health_Association" title="American Public Health Association">American Public Health Association</a></td>
<td>English</td>
<td>1911-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Roentgenology" title="American Journal of Roentgenology">American Journal of Roentgenology</a></i></td>
<td>Radiology</td>
<td><a href="/wiki/American_Roentgen_Ray_Society" title="American Roentgen Ray Society">American Roentgen Ray Society</a></td>
<td>English</td>
<td>1908-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_American_Journal_of_Surgical_Pathology" title="The American Journal of Surgical Pathology">The American Journal of Surgical Pathology</a></i></td>
<td>Surgery, Pathology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1977-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Translational_Research" title="American Journal of Translational Research">American Journal of Translational Research</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/E-Century_Publishing_Corporation" title="E-Century Publishing Corporation">e-Century Publishing Corporation</a></td>
<td>English</td>
<td>2009-present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Transplantation" title="American Journal of Transplantation">American Journal of Transplantation</a></i></td>
<td>Transplantation</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>2001–present
</td></tr>
<tr>
<td><i><a href="/wiki/American_Journal_of_Tropical_Medicine_and_Hygiene" class="mw-redirect" title="American Journal of Tropical Medicine and Hygiene">American Journal of Tropical Medicine and Hygiene</a></i></td>
<td>Tropical medicine</td>
<td><a href="/wiki/American_Society_of_Tropical_Medicine_and_Hygiene" title="American Society of Tropical Medicine and Hygiene">American Society of Tropical Medicine and Hygiene</a></td>
<td>English</td>
<td>1921-present
</td></tr>
<tr>
<td><i><a href="/wiki/Anaesthesia_(journal)" title="Anaesthesia (journal)">Anaesthesia</a></i></td>
<td>Anaesthesiology</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1946-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Cardiac_Anaesthesia" title="Annals of Cardiac Anaesthesia">Annals of Cardiac Anaesthesia</a></i></td>
<td>Anaesthesiology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1998-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Emergency_Medicine" title="Annals of Emergency Medicine">Annals of Emergency Medicine</a></i></td>
<td>Emergency medicine</td>
<td><a href="/wiki/Mosby_(publisher)" class="mw-redirect" title="Mosby (publisher)">Mosby</a></td>
<td>English</td>
<td>1972-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Family_Medicine" title="Annals of Family Medicine">Annals of Family Medicine</a></i></td>
<td>Family medicine</td>
<td>Annals of Family Medicine, Inc.</td>
<td>English</td>
<td>2003-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Human_Biology" title="Annals of Human Biology">Annals of Human Biology</a></i></td>
<td>Population biology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1974-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Human_Genetics" title="Annals of Human Genetics">Annals of Human Genetics</a></i></td>
<td>Human genetics</td>
<td><a href="/wiki/John_Wiley_%26_Sons" title="John Wiley & Sons">John Wiley & Sons</a></td>
<td>English</td>
<td>1925-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Internal_Medicine" title="Annals of Internal Medicine">Annals of Internal Medicine</a></i></td>
<td>Internal medicine</td>
<td><a href="/wiki/American_College_of_Physicians" title="American College of Physicians">American College of Physicians</a></td>
<td>English</td>
<td>1927-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Medicine" title="Annals of Medicine">Annals of Medicine</a></i></td>
<td>Internal medicine</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1969-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Pediatric_Cardiology" title="Annals of Pediatric Cardiology">Annals of Pediatric Cardiology</a></i></td>
<td>Pediatrics, Cardiology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Annals_of_Pharmacotherapy" class="mw-redirect" title="The Annals of Pharmacotherapy">The Annals of Pharmacotherapy</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1967-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Physical_and_Rehabilitation_Medicine" title="Annals of Physical and Rehabilitation Medicine">Annals of Physical and Rehabilitation Medicine</a></i></td>
<td>Rehabilitation</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1982-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_The_Royal_College_of_Surgeons_of_England" title="Annals of The Royal College of Surgeons of England">Annals of The Royal College of Surgeons of England</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/The_Royal_College_of_Surgeons_of_England" class="mw-redirect" title="The Royal College of Surgeons of England">The Royal College of Surgeons of England</a></td>
<td>English</td>
<td>1947-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annals_of_Surgery" title="Annals of Surgery">Annals of Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1885-present
</td></tr>
<tr>
<td><i><a href="/wiki/Annual_Review_of_Medicine" class="mw-redirect" title="Annual Review of Medicine">Annual Review of Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Annual_Reviews_(publisher)" title="Annual Reviews (publisher)">Annual Reviews</a></td>
<td>English</td>
<td>1950-present
</td></tr>
<tr>
<td><i><a href="/wiki/Archives_of_Disease_in_Childhood" title="Archives of Disease in Childhood">Archives of Disease in Childhood</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/BMJ_Group" class="mw-redirect" title="BMJ Group">BMJ Group</a></td>
<td>English</td>
<td>1926-present
</td></tr>
<tr>
<td><i><a href="/wiki/Archives_of_Osteoporosis" title="Archives of Osteoporosis">Archives of Osteoporosis</a></i></td>
<td>Bone Health</td>
<td><a href="/wiki/Springer_Science%2BBusiness_Media" title="Springer Science+Business Media">Springer Science+Business Media</a></td>
<td>English</td>
<td>2006-present
</td></tr>
<tr>
<td><i><a href="/wiki/Arteriosclerosis,_Thrombosis,_and_Vascular_Biology" title="Arteriosclerosis, Thrombosis, and Vascular Biology">Arteriosclerosis, Thrombosis, and Vascular Biology</a></i></td>
<td>Vascular biology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1981-present
</td></tr>
<tr>
<td><i><a href="/wiki/Asian_Cardiovascular_and_Thoracic_Annals" title="Asian Cardiovascular and Thoracic Annals">Asian Cardiovascular and Thoracic Annals</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1998–present
</td></tr>
<tr>
<td><i><a href="/wiki/Aviation,_Space,_and_Environmental_Medicine" title="Aviation, Space, and Environmental Medicine">Aviation, Space, and Environmental Medicine</a></i></td>
<td>Aviation medicine</td>
<td><a href="/wiki/Aerospace_Medical_Association" title="Aerospace Medical Association">Aerospace Medical Association</a></td>
<td>English</td>
<td>1930-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Dental_Journal" title="British Dental Journal">British Dental Journal</a></i></td>
<td>Dentistry</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1904-present
</td></tr>
<tr>
<td><i><a href="/wiki/Biological_Research_For_Nursing" class="mw-redirect" title="Biological Research For Nursing">Biological Research For Nursing</a></i></td>
<td>Nursing</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/Biology_of_the_Neonate" class="mw-redirect" title="Biology of the Neonate">Biology of the Neonate</a></i></td>
<td>Neonatology</td>
<td><a href="/w/index.php?title=Karger_Publications&action=edit&redlink=1" class="new" title="Karger Publications (page does not exist)">Karger Publications</a></td>
<td>English</td>
<td>1959-present
</td></tr>
<tr>
<td><i><a href="/wiki/Biomedical_Imaging_and_Intervention_Journal" title="Biomedical Imaging and Intervention Journal">Biomedical Imaging and Intervention Journal</a></i></td>
<td>Radiology</td>
<td><a href="/wiki/University_of_Malaysia" class="mw-redirect" title="University of Malaysia">University of Malaysia</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/BJUI" class="mw-redirect" title="BJUI">BJUI</a></i></td>
<td>Urology</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1929–present
</td></tr>
<tr>
<td><i><a href="/wiki/Blood_(journal)" title="Blood (journal)">Blood</a></i></td>
<td>Hematology</td>
<td><a href="/wiki/American_Society_of_Hematology" title="American Society of Hematology">American Society of Hematology</a></td>
<td>English</td>
<td>1946–present
</td></tr>
<tr>
<td><i><a href="/wiki/Bone_Marrow_Transplantation_(journal)" title="Bone Marrow Transplantation (journal)">Bone Marrow Transplantation</a></i></td>
<td>Transplantation</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1986-present
</td></tr>
<tr>
<td><i><a href="/wiki/BMC_Cancer" title="BMC Cancer">BMC Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/BioMed_Central" title="BioMed Central">BioMed Central</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/BMC_Medicine" title="BMC Medicine">BMC Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/BioMed_Central" title="BioMed Central">BioMed Central</a></td>
<td>English</td>
<td>2003-present
</td></tr>
<tr>
<td><i><a href="/wiki/BMJ" class="mw-redirect" title="BMJ">BMJ</a></i></td>
<td>Medicine</td>
<td>BMJ</td>
<td>English</td>
<td>1840-present
</td></tr>
<tr>
<td><i><a href="/wiki/Brain_(journal)" title="Brain (journal)">Brain</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></td>
<td>English</td>
<td>1878-present
</td></tr>
<tr>
<td><i><a href="/wiki/Brazilian_Journal_of_Medical_and_Biological_Research" title="Brazilian Journal of Medical and Biological Research">Brazilian Journal of Medical and Biological Research</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=Associa%C3%A7%C3%A3o_Brasileira_de_Divulga%C3%A7%C3%A3o_Cient%C3%ADfica&action=edit&redlink=1" class="new" title="Associação Brasileira de Divulgação Científica (page does not exist)">Associação Brasileira de Divulgação Científica</a></td>
<td>English</td>
<td>1968-present
</td></tr>
<tr>
<td><i><a href="/wiki/Breast_Cancer_Research_and_Treatment" title="Breast Cancer Research and Treatment">Breast Cancer Research and Treatment</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Springer_Netherlands" class="mw-redirect" title="Springer Netherlands">Springer Netherlands</a></td>
<td>English</td>
<td>1981-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Columbia_Medical_Journal" title="British Columbia Medical Journal">British Columbia Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/British_Columbia_Medical_Association" class="mw-redirect" title="British Columbia Medical Association">British Columbia Medical Association</a></td>
<td>English</td>
<td>1924-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Anaesthesia" title="British Journal of Anaesthesia">British Journal of Anaesthesia</a></i></td>
<td>Anaesthesiology</td>
<td><a href="/wiki/Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></td>
<td>English</td>
<td>1923-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Cancer" title="British Journal of Cancer">British Journal of Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1947-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Dermatology" title="British Journal of Dermatology">British Journal of Dermatology</a></i></td>
<td>Dermatology</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1888-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Diabetes_and_Vascular_Disease" title="British Journal of Diabetes and Vascular Disease">British Journal of Diabetes and Vascular Disease</a></i></td>
<td>Diabetes</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Medical_Practitioners" title="British Journal of Medical Practitioners">British Journal of Medical Practitioners</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=JMN_Medical_Education&action=edit&redlink=1" class="new" title="JMN Medical Education (page does not exist)">JMN Medical Education</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Ophthalmology" title="British Journal of Ophthalmology">British Journal of Ophthalmology</a></i></td>
<td>Ophthalmology</td>
<td><a href="/wiki/BMJ_Publishing_Group" class="mw-redirect" title="BMJ Publishing Group">BMJ Publishing Group</a></td>
<td>English</td>
<td>1917-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Sexual_Medicine" title="British Journal of Sexual Medicine">British Journal of Sexual Medicine</a></i></td>
<td>Sexual Health</td>
<td><a href="/wiki/Hayward_Medical_Communications" title="Hayward Medical Communications">Hayward Medical Communications</a></td>
<td>English</td>
<td>1973-present
</td></tr>
<tr>
<td><i><a href="/wiki/British_Journal_of_Surgery" title="British Journal of Surgery">British Journal of Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/John_Wiley_%26_Sons" title="John Wiley & Sons">John Wiley & Sons</a></td>
<td>English</td>
<td>1913-present
</td></tr>
<tr>
<td><i><a href="/wiki/Bulletin_of_the_World_Health_Organization" title="Bulletin of the World Health Organization">Bulletin of the World Health Organization</a></i></td>
<td>Global Health</td>
<td><a href="/wiki/World_Health_Organization" title="World Health Organization">World Health Organization</a></td>
<td>English</td>
<td>1947-present
</td></tr>
<tr>
<td><i><a href="/wiki/CA_%E2%80%93_A_Cancer_Journal_for_Clinicians" class="mw-redirect" title="CA – A Cancer Journal for Clinicians">CA – A Cancer Journal for Clinicians</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1950-present
</td></tr>
<tr>
<td><i><a href="/wiki/Calcified_Tissue_International" title="Calcified Tissue International">Calcified Tissue International</a></i></td>
<td>Bone Health</td>
<td><a href="/wiki/Springer_Science%2BBusiness_Media" title="Springer Science+Business Media">Springer Science+Business Media</a></td>
<td>English</td>
<td>1967-present
</td></tr>
<tr>
<td><i><a href="/wiki/Calicut_Medical_Journal" title="Calicut Medical Journal">Calicut Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Calicut_Medical_College" class="mw-redirect" title="Calicut Medical College">Calicut Medical College</a></td>
<td>English</td>
<td>2003-present
</td></tr>
<tr>
<td><i><a href="/wiki/Canadian_Journal_of_Gastroenterology_%26_Hepatology" class="mw-redirect" title="Canadian Journal of Gastroenterology & Hepatology">Canadian Journal of Gastroenterology & Hepatology</a></i></td>
<td>Gastroenterology, Hepatology</td>
<td><a href="/wiki/Pulsus_Group" title="Pulsus Group">Pulsus Group</a></td>
<td>English</td>
<td>1987-present
</td></tr>
<tr>
<td><i><a href="/wiki/Canadian_Journal_of_Infectious_Diseases_%26_Medical_Microbiology" class="mw-redirect" title="Canadian Journal of Infectious Diseases & Medical Microbiology">Canadian Journal of Infectious Diseases & Medical Microbiology</a></i></td>
<td>Infectious Disease</td>
<td><a href="/wiki/Pulsus_Group" title="Pulsus Group">Pulsus Group</a></td>
<td>English</td>
<td>1990-present
</td></tr>
<tr>
<td><i><a href="/wiki/Canadian_Medical_Association_Journal" title="Canadian Medical Association Journal">Canadian Medical Association Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Canadian_Medical_Association" title="Canadian Medical Association">Canadian Medical Association</a></td>
<td>English, French</td>
<td>1911-present
</td></tr>
<tr>
<td><i><a href="/wiki/Canadian_Respiratory_Journal" title="Canadian Respiratory Journal">Canadian Respiratory Journal</a></i></td>
<td>Respiratory Health</td>
<td><a href="/wiki/Pulsus_Group" title="Pulsus Group">Pulsus Group</a></td>
<td>English, French</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/Cancer_Medicine" title="Cancer Medicine">Cancer Medicine</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/John_Wiley_%26_Sons" title="John Wiley & Sons">John Wiley & Sons</a></td>
<td>English</td>
<td>2012-present
</td></tr>
<tr>
<td><i><a href="/wiki/Cardiology_(journal)" title="Cardiology (journal)">Cardiology</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/Karger" class="mw-redirect" title="Karger">Karger</a></td>
<td>English</td>
<td>1937-present
</td></tr>
<tr>
<td><i><a href="/wiki/Cardiovascular_Diabetology" title="Cardiovascular Diabetology">Cardiovascular Diabetology</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/BioMed_Central" title="BioMed Central">BioMed Central</a></td>
<td>English</td>
<td>2002-present
</td></tr>
<tr>
<td><i><a href="/wiki/Cephalalgia_(journal)" title="Cephalalgia (journal)">Cephalalgia</a></i></td>
<td>Headache</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1981-present
</td></tr>
<tr>
<td><i><a href="/wiki/Chest_(journal)" title="Chest (journal)">Chest</a></i></td>
<td>Cardiology, Respiratory Health</td>
<td><a href="/wiki/American_College_of_Chest_Physicians" title="American College of Chest Physicians">American College of Chest Physicians</a></td>
<td>English</td>
<td>1935-present
</td></tr>
<tr>
<td><i><a href="/wiki/Child:_Care,_Health_and_Development" title="Child: Care, Health and Development">Child: Care, Health and Development</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1975-present
</td></tr>
<tr>
<td><i><a href="/wiki/Chinese_Medical_Journal" title="Chinese Medical Journal">Chinese Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Chinese_Medical_Association" class="mw-redirect" title="Chinese Medical Association">Chinese Medical Association</a>, <a href="/w/index.php?title=Wolters_Kluwer_Medknow&action=edit&redlink=1" class="new" title="Wolters Kluwer Medknow (page does not exist)">Wolters Kluwer Medknow</a></td>
<td>English</td>
<td>1887-present
</td></tr>
<tr>
<td><i><a href="/wiki/Chronic_Illness_(journal)" title="Chronic Illness (journal)">Chronic Illness</a></i></td>
<td>Chronic Illness</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Circulation_(journal)" title="Circulation (journal)">Circulation</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1950-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Cleft_Palate-Craniofacial_Journal" title="The Cleft Palate-Craniofacial Journal">The Cleft Palate-Craniofacial Journal</a></i></td>
<td>Craniofacial Medicine</td>
<td><a href="/wiki/Allen_Press" title="Allen Press">Allen Press</a></td>
<td>English</td>
<td>1964-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Anatomy" title="Clinical Anatomy">Clinical Anatomy</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Wiley-Liss" class="mw-redirect" title="Wiley-Liss">Wiley-Liss</a></td>
<td>English</td>
<td>1988-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_and_Experimental_Gastroenterology" title="Clinical and Experimental Gastroenterology">Clinical and Experimental Gastroenterology</a></i></td>
<td>Gastroenterology</td>
<td><a href="/wiki/Dove_Medical_Press" title="Dove Medical Press">Dove Medical Press</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_and_Translational_Science" title="Clinical and Translational Science">Clinical and Translational Science</a></i>
</td>
<td>Medicine
</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a>
</td>
<td>English
</td>
<td>2008-Present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Breast_Cancer" title="Clinical Breast Cancer">Clinical Breast Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2000-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Case_Studies" title="Clinical Case Studies">Clinical Case Studies</a></i></td>
<td>Clinical medicine</td>
<td><a href="/wiki/Sage_Publications" class="mw-redirect" title="Sage Publications">Sage Publications</a></td>
<td>English</td>
<td>2002-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Chemistry_(journal)" title="Clinical Chemistry (journal)">Clinical Chemistry</a></i></td>
<td>Medicinal Chemistry</td>
<td><a href="/wiki/American_Association_for_Clinical_Chemistry" title="American Association for Clinical Chemistry">American Association for Clinical Chemistry</a></td>
<td>English</td>
<td>1955-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Colorectal_Cancer" title="Clinical Colorectal Cancer">Clinical Colorectal Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Gastroenterology_and_Hepatology" title="Clinical Gastroenterology and Hepatology">Clinical Gastroenterology and Hepatology</a></i></td>
<td>Gastroenterology, Hepatology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2003-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Genitourinary_Cancer" title="Clinical Genitourinary Cancer">Clinical Genitourinary Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2002-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Clinical_Journal_of_Pain" title="The Clinical Journal of Pain">The Clinical Journal of Pain</a></i></td>
<td>Pain Management</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1985-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Leukemia" title="Clinical Leukemia">Clinical Leukemia</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/CIG_Media_Group" title="CIG Media Group">CIG Media Group</a></td>
<td>English</td>
<td>2006-2009
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Lung_Cancer" title="Clinical Lung Cancer">Clinical Lung Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Lymphoma,_Myeloma_%26_Leukemia" title="Clinical Lymphoma, Myeloma & Leukemia">Clinical Lymphoma, Myeloma & Leukemia</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2000-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Medicine:_Oncology" class="mw-redirect" title="Clinical Medicine: Oncology">Clinical Medicine: Oncology</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Libertas_Academica" title="Libertas Academica">Libertas Academica</a></td>
<td>English</td>
<td>2007-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Microbiology_Reviews" title="Clinical Microbiology Reviews">Clinical Microbiology Reviews</a></i></td>
<td>Infectious Disease</td>
<td><a href="/wiki/American_Society_for_Microbiology" title="American Society for Microbiology">American Society for Microbiology</a></td>
<td>English</td>
<td>1988-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Ovarian_Cancer" class="mw-redirect" title="Clinical Ovarian Cancer">Clinical Ovarian Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Pharmacology:_Advances_and_Applications" title="Clinical Pharmacology: Advances and Applications">Clinical Pharmacology: Advances and Applications</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Dove_Medical_Press" title="Dove Medical Press">Dove Medical Press</a></td>
<td>English</td>
<td>2010-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Pharmacology_%26_Therapeutics" title="Clinical Pharmacology & Therapeutics">Clinical Pharmacology & Therapeutics</a></i>
</td>
<td>Pharmacology
</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a>
</td>
<td>English
</td>
<td>1960-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Science_(journal)" title="Clinical Science (journal)">Clinical Science</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Portland_Press" title="Portland Press">Portland Press</a></td>
<td>English</td>
<td>1909-present
</td></tr>
<tr>
<td><i><a href="/wiki/Clinical_Toxicology" title="Clinical Toxicology">Clinical Toxicology</a></i></td>
<td>Toxicology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1968-present
</td></tr>
<tr>
<td><i><a href="/wiki/Comprehensive_Therapy" title="Comprehensive Therapy">Comprehensive Therapy</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Humana_Press" title="Humana Press">Humana Press</a></td>
<td>English</td>
<td>1975-2010
</td></tr>
<tr>
<td><i><a href="/wiki/Contemporary_Clinical_Trials" title="Contemporary Clinical Trials">Contemporary Clinical Trials</a></i></td>
<td>Research Design</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1980-present
</td></tr>
<tr>
<td><i><a href="/wiki/COPD:_Journal_of_Chronic_Obstructive_Pulmonary_Disease" title="COPD: Journal of Chronic Obstructive Pulmonary Disease">COPD: Journal of Chronic Obstructive Pulmonary Disease</a></i></td>
<td>Respiratory Health</td>
<td><a href="/wiki/Informa_Healthcare" class="mw-redirect" title="Informa Healthcare">Informa Healthcare</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Critical_Care_Medicine" class="mw-redirect" title="Critical Care Medicine">Critical Care Medicine</a></i></td>
<td>Emergency Medicine</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1973-present
</td></tr>
<tr>
<td><i><a href="/wiki/Critical_Reviews_in_Microbiology" title="Critical Reviews in Microbiology">Critical Reviews in Microbiology</a></i></td>
<td>Infectious Disease</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1971-present
</td></tr>
<tr>
<td><i><a href="/wiki/Critical_Reviews_in_Oncogenesis" title="Critical Reviews in Oncogenesis">Critical Reviews in Oncogenesis</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/Critical_Reviews_in_Toxicology" title="Critical Reviews in Toxicology">Critical Reviews in Toxicology</a></i></td>
<td>Toxicology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1971-present
</td></tr>
<tr>
<td><i><a href="/wiki/Current_Gene_Therapy" title="Current Gene Therapy">Current Gene Therapy</a></i></td>
<td>Gene Therapy</td>
<td><a href="/wiki/Bentham_Science_Publishers" title="Bentham Science Publishers">Bentham Science Publishers</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/Current_Medical_Research_and_Opinion" title="Current Medical Research and Opinion">Current Medical Research and Opinion</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1972-present
</td></tr>
<tr>
<td><i><a href="/wiki/Current_Pain_and_Headache_Reports" title="Current Pain and Headache Reports">Current Pain and Headache Reports</a></i></td>
<td>Headache</td>
<td><a href="/wiki/Springer_Science%2BBusiness_Media" title="Springer Science+Business Media">Springer Science+Business Media</a></td>
<td>English</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/Cutaneous_and_Ocular_Toxicology" title="Cutaneous and Ocular Toxicology">Cutaneous and Ocular Toxicology</a></i></td>
<td>Toxicology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1982-present
</td></tr>
<tr>
<td><i><a href="/wiki/DARU_(journal)" class="mw-redirect" title="DARU (journal)">DARU Journal of Pharmaceutical Sciences</a></i></td>
<td>Pharmacy</td>
<td><a href="/wiki/BioMed_Central" title="BioMed Central">BioMed Central</a></td>
<td>English</td>
<td>1990-present
</td></tr>
<tr>
<td><i><a href="/wiki/Deutsche_Medizinische_Wochenschrift" title="Deutsche Medizinische Wochenschrift">Deutsche Medizinische Wochenschrift</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Thieme_Medical_Publishers" title="Thieme Medical Publishers">Thieme Medical Publishers</a></td>
<td>German</td>
<td>1875-present
</td></tr>
<tr>
<td><i><a href="/wiki/Developmental_Neurorehabilitation" title="Developmental Neurorehabilitation">Developmental Neurorehabilitation</a></i></td>
<td>Neurology, Pediatrics</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1997-present
</td></tr>
<tr>
<td><i><a href="/wiki/Diabetes_(journal)" title="Diabetes (journal)">Diabetes</a></i></td>
<td>Diabetes</td>
<td><a href="/wiki/American_Diabetes_Association" title="American Diabetes Association">American Diabetes Association</a></td>
<td>English</td>
<td>1952-present
</td></tr>
<tr>
<td><i><a href="/wiki/Diabetes_and_Vascular_Disease_Research" title="Diabetes and Vascular Disease Research">Diabetes and Vascular Disease Research</a></i></td>
<td>Diabetes</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Diabetes_Care" title="Diabetes Care">Diabetes Care</a></i></td>
<td>Diabetes</td>
<td><a href="/wiki/American_Diabetes_Association" title="American Diabetes Association">American Diabetes Association</a></td>
<td>English</td>
<td>1978-present
</td></tr>
<tr>
<td><i><a href="/wiki/Diabetes,_Metabolic_Syndrome_and_Obesity:_Targets_and_Therapy" title="Diabetes, Metabolic Syndrome and Obesity: Targets and Therapy">Diabetes, Metabolic Syndrome and Obesity: Targets and Therapy</a></i></td>
<td>Diabetes</td>
<td><a href="/wiki/Dove_Medical_Press" title="Dove Medical Press">Dove Medical Press</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Drug_and_Alcohol_Dependence_(journal)" title="Drug and Alcohol Dependence (journal)">Drug and Alcohol Dependence</a></i></td>
<td>Addiction</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1975-present
</td></tr>
<tr>
<td><i><a href="/wiki/Emergency_Medicine_Journal" title="Emergency Medicine Journal">Emergency Medicine Journal</a></i></td>
<td>Emergency Medicine</td>
<td><a href="/wiki/BMJ_Group" class="mw-redirect" title="BMJ Group">BMJ Group</a></td>
<td>English</td>
<td>1983-present
</td></tr>
<tr>
<td><i><a href="/wiki/Endocrinology_(journal)" title="Endocrinology (journal)">Endocrinology</a></i></td>
<td>Endocrinology</td>
<td><a href="/wiki/The_Endocrine_Society" class="mw-redirect" title="The Endocrine Society">The Endocrine Society</a></td>
<td>English</td>
<td>1917-present
</td></tr>
<tr>
<td><i><a href="/wiki/Epilepsy_Currents" title="Epilepsy Currents">Epilepsy Currents</a></i></td>
<td>Epilepsy</td>
<td><a href="/wiki/Allen_Press" title="Allen Press">Allen Press</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/European_Journal_of_Cancer_Prevention" title="European Journal of Cancer Prevention">European Journal of Cancer Prevention</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1991-present
</td></tr>
<tr>
<td><i><a href="/wiki/European_Journal_of_General_Practice" title="European Journal of General Practice">European Journal of General Practice</a></i></td>
<td>Family medicine</td>
<td><a href="/wiki/Taylor_%26_Francis" title="Taylor & Francis">Taylor & Francis</a></td>
<td>English</td>
<td>1995-present
</td></tr>
<tr>
<td><i><a href="/wiki/European_Journal_of_Medical_Research" title="European Journal of Medical Research">European Journal of Medical Research</a></i></td>
<td>Clinical research</td>
<td><a href="/wiki/BioMed_Central" title="BioMed Central">BioMed Central</a></td>
<td>English</td>
<td>1995-present
</td></tr>
<tr>
<td><i><a href="/wiki/European_Journal_of_Palliative_Care" title="European Journal of Palliative Care">European Journal of Palliative Care</a></i></td>
<td>Palliative Care</td>
<td><a href="/wiki/Hayward_Medical_Communications" title="Hayward Medical Communications">Hayward Medical Communications</a></td>
<td>English</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/European_Journal_of_Physiotherapy" title="European Journal of Physiotherapy">European Journal of Physiotherapy</a></i></td>
<td>Physical Therapy</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/European_Medical_Journal" title="European Medical Journal">European Medical Journal</a></i></td>
<td>Medicine</td>
<td>European Medical Journal</td>
<td>English</td>
<td>2012-present
</td></tr>
<tr>
<td><i><a href="/wiki/European_Radiology" title="European Radiology">European Radiology</a></i></td>
<td>Radiology</td>
<td><a href="/wiki/Springer_Science%2BBusiness_Media" title="Springer Science+Business Media">Springer Science+Business Media</a></td>
<td>English</td>
<td>1991-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Biological_Therapy" title="Expert Opinion on Biological Therapy">Expert Opinion on Biological Therapy</a></i></td>
<td>Therapeutics</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Drug_Delivery" title="Expert Opinion on Drug Delivery">Expert Opinion on Drug Delivery</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Drug_Discovery" title="Expert Opinion on Drug Discovery">Expert Opinion on Drug Discovery</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>2006-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Drug_Metabolism_%26_Toxicology" title="Expert Opinion on Drug Metabolism & Toxicology">Expert Opinion on Drug Metabolism & Toxicology</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Drug_Safety" title="Expert Opinion on Drug Safety">Expert Opinion on Drug Safety</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>2002-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Emerging_Drugs" title="Expert Opinion on Emerging Drugs">Expert Opinion on Emerging Drugs</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>1996-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Investigational_Drugs" title="Expert Opinion on Investigational Drugs">Expert Opinion on Investigational Drugs</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>1992-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Medical_Diagnostics" title="Expert Opinion on Medical Diagnostics">Expert Opinion on Medical Diagnostics</a></i></td>
<td>Diagnostics</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>2007-2013
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Pharmacotherapy" title="Expert Opinion on Pharmacotherapy">Expert Opinion on Pharmacotherapy</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Therapeutic_Patents" title="Expert Opinion on Therapeutic Patents">Expert Opinion on Therapeutic Patents</a></i></td>
<td>Patents</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>1991-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Opinion_on_Therapeutic_Targets" title="Expert Opinion on Therapeutic Targets">Expert Opinion on Therapeutic Targets</a></i></td>
<td>Drug design</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>1997-present
</td></tr>
<tr>
<td><i><a href="/wiki/Expert_Review_of_Clinical_Pharmacology" title="Expert Review of Clinical Pharmacology">Expert Review of Clinical Pharmacology</a></i></td>
<td>Clinical pharmacology</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Family_Practice_(journal)" title="Family Practice (journal)">Family Practice (journal)</a></i></td>
<td>Family medicine</td>
<td><a href="/wiki/Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></td>
<td>English</td>
<td>1984-present
</td></tr>
<tr>
<td><i><a href="/wiki/Future_Oncology" title="Future Oncology">Future Oncology</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Future_Medicine_Ltd" class="mw-redirect" title="Future Medicine Ltd">Future Medicine Ltd</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Gastroenterology_(journal)" title="Gastroenterology (journal)">Gastroenterology</a></i></td>
<td>Gastroenterology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1943-present
</td></tr>
<tr>
<td><i><a href="/wiki/Gynecologic_Oncology" class="mw-redirect" title="Gynecologic Oncology">Gynecologic Oncology</a></i></td>
<td>Oncology, Gynecology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1972-present
</td></tr>
<tr>
<td><i><a href="/wiki/Hand_Surgery_(journal)" title="Hand Surgery (journal)">Hand Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/World_Scientific" title="World Scientific">World Scientific</a></td>
<td>English</td>
<td>1996-present
</td></tr>
<tr>
<td><i><a href="/wiki/Harefuah" title="Harefuah">Harefuah</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Israel_Medical_Association" title="Israel Medical Association">Israel Medical Association</a></td>
<td>Hebrew</td>
<td>1920-present
</td></tr>
<tr>
<td><i><a href="/wiki/Heart_(journal)" title="Heart (journal)">Heart</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/BMJ_Group" class="mw-redirect" title="BMJ Group">BMJ Group</a></td>
<td>English</td>
<td>1939-present
</td></tr>
<tr>
<td><i><a href="/wiki/Hepatitis_Monthly" title="Hepatitis Monthly">Hepatitis Monthly</a></i></td>
<td>Hepatitis</td>
<td><a href="/wiki/Kowsar" title="Kowsar">Kowsar</a></td>
<td>English</td>
<td>2002-present
</td></tr>
<tr>
<td><i><a href="/wiki/Hormone_Research_(journal)" class="mw-redirect" title="Hormone Research (journal)">Hormone Research</a></i></td>
<td>Endocrinology</td>
<td><a href="/wiki/Karger_Publishers" title="Karger Publishers">Karger Publishers</a></td>
<td>English</td>
<td>1970-present
</td></tr>
<tr>
<td><i><a href="/wiki/Hospital_Practice" title="Hospital Practice">Hospital Practice</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Informa_Healthcare" class="mw-redirect" title="Informa Healthcare">Informa Healthcare</a></td>
<td>English</td>
<td>1966-present
</td></tr>
<tr>
<td><i><a href="/wiki/Human_Pathology" title="Human Pathology">Human Pathology</a></i></td>
<td>Pathology</td>
<td><a href="/wiki/Saunders" title="Saunders">Saunders</a></td>
<td>English</td>
<td>1970-present
</td></tr>
<tr>
<td><i><a href="/wiki/Human_Reproduction" class="mw-redirect" title="Human Reproduction">Human Reproduction</a></i></td>
<td>Reproductive medicine</td>
<td><a href="/wiki/Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></td>
<td>English</td>
<td>1986-present
</td></tr>
<tr>
<td><i><a href="/wiki/Hypertension_(journal)" title="Hypertension (journal)">Hypertension</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/American_Heart_Association" title="American Heart Association">American Heart Association</a></td>
<td>English</td>
<td>1979-present
</td></tr>
<tr>
<td><i><a href="/wiki/Immunogenetics_(journal)" title="Immunogenetics (journal)">Immunogenetics</a></i></td>
<td>Immunology, Genetics</td>
<td><a href="/wiki/Springer_Science%2BBusiness_Media" title="Springer Science+Business Media">Springer Science+Business Media</a></td>
<td>English</td>
<td>1974-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Anaesthesia" title="Indian Journal of Anaesthesia">Indian Journal of Anaesthesia</a></i></td>
<td>Anaesthesiology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>2002-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Dermatology" title="Indian Journal of Dermatology">Indian Journal of Dermatology</a></i></td>
<td>Dermatology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1955-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Dermatology,_Venereology_and_Leprology" title="Indian Journal of Dermatology, Venereology and Leprology">Indian Journal of Dermatology, Venereology and Leprology</a></i></td>
<td>Dermatology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1990-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Gastroenterology" title="Indian Journal of Gastroenterology">Indian Journal of Gastroenterology</a></i></td>
<td>Gastroenterology</td>
<td><a href="/w/index.php?title=Indian_Society_of_Gastroenterology&action=edit&redlink=1" class="new" title="Indian Society of Gastroenterology (page does not exist)">Indian Society of Gastroenterology</a></td>
<td>English</td>
<td>1982-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Medical_Microbiology" title="Indian Journal of Medical Microbiology">Indian Journal of Medical Microbiology</a></i></td>
<td>Infectious Disease</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1983-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Medical_Research" title="Indian Journal of Medical Research">Indian Journal of Medical Research</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1913-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Medical_Sciences" title="Indian Journal of Medical Sciences">Indian Journal of Medical Sciences</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1947-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Ophthalmology" title="Indian Journal of Ophthalmology">Indian Journal of Ophthalmology</a></i></td>
<td>Ophthalmology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1953-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Journal_of_Pharmacology" title="Indian Journal of Pharmacology">Indian Journal of Pharmacology</a></i></td>
<td>Pharmacology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1969-present
</td></tr>
<tr>
<td><i><a href="/wiki/Indian_Pacing_and_Electrophysiology_Journal" title="Indian Pacing and Electrophysiology Journal">Indian Pacing and Electrophysiology Journal</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/International_Archives_of_Medicine" title="International Archives of Medicine">International Archives of Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=IMed.pub&action=edit&redlink=1" class="new" title="IMed.pub (page does not exist)">iMed.pub</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/International_Journal_of_Geriatric_Psychiatry" title="International Journal of Geriatric Psychiatry">International Journal of Geriatric Psychiatry</a></i></td>
<td>Geriatrics, Psychology</td>
<td><a href="/wiki/John_Wiley_%26_Sons" title="John Wiley & Sons">John Wiley & Sons</a></td>
<td>English</td>
<td>1986-present
</td></tr>
<tr>
<td><i><a href="/wiki/International_Journal_of_Medical_Sciences" title="International Journal of Medical Sciences">International Journal of Medical Sciences</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Ivyspring_International_Publisher" title="Ivyspring International Publisher">Ivyspring International Publisher</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/International_Journal_of_Obesity" title="International Journal of Obesity">International Journal of Obesity</a></i></td>
<td>Obesity</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1977-present
</td></tr>
<tr>
<td><i><a href="/wiki/International_Journal_of_Psychoanalysis" class="mw-redirect" title="International Journal of Psychoanalysis">International Journal of Psychoanalysis</a></i></td>
<td>Psychology</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1920-present
</td></tr>
<tr>
<td><i><a href="/wiki/International_Journal_of_Speech-Language_Pathology" title="International Journal of Speech-Language Pathology">International Journal of Speech-Language Pathology</a></i></td>
<td>Speech Pathology</td>
<td><a href="/wiki/Informa" title="Informa">Informa</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/International_Journal_of_Surgery" title="International Journal of Surgery">International Journal of Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2003-present
</td></tr>
<tr>
<td><i><a href="/wiki/Investigative_Ophthalmology_%26_Visual_Science" title="Investigative Ophthalmology & Visual Science">Investigative Ophthalmology & Visual Science</a></i></td>
<td>Ophthalmology</td>
<td><a href="/w/index.php?title=Cadmus_(publisher)&action=edit&redlink=1" class="new" title="Cadmus (publisher) (page does not exist)">Cadmus</a></td>
<td>English</td>
<td>1976-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Israel_Journal_of_Psychiatry_and_Related_Sciences" class="mw-redirect" title="The Israel Journal of Psychiatry and Related Sciences">The Israel Journal of Psychiatry and Related Sciences</a></i></td>
<td>Psychiatry</td>
<td><a href="/w/index.php?title=Israel_Science_Publishers&action=edit&redlink=1" class="new" title="Israel Science Publishers (page does not exist)">Israel Science Publishers</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Israel_Medical_Association_Journal" title="Israel Medical Association Journal">Israel Medical Association Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Israel_Medical_Association" title="Israel Medical Association">Israel Medical Association</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_(journal)" title="JAMA (journal)">JAMA: The Journal of the American Medical Association</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1883-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Dermatology" title="JAMA Dermatology">JAMA Dermatology</a></i></td>
<td>Dermatology</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1960-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Facial_Plastic_Surgery" title="JAMA Facial Plastic Surgery">JAMA Facial Plastic Surgery</a></i></td>
<td>Plastic Surgery</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Internal_Medicine" title="JAMA Internal Medicine">JAMA Internal Medicine</a></i></td>
<td>Internal Medicine</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1908-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Neurology" title="JAMA Neurology">JAMA Neurology</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1960-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Ophthalmology" title="JAMA Ophthalmology">JAMA Ophthalmology</a></i></td>
<td>Ophthalmology</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1929-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Otolaryngology%E2%80%93Head_%26_Neck_Surgery" title="JAMA Otolaryngology–Head & Neck Surgery">JAMA Otolaryngology–Head & Neck Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1925-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Pediatrics" title="JAMA Pediatrics">JAMA Pediatrics</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1911-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Psychiatry" title="JAMA Psychiatry">JAMA Psychiatry</a></i></td>
<td>Psychiatry</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1959-present
</td></tr>
<tr>
<td><i><a href="/wiki/JAMA_Surgery" title="JAMA Surgery">JAMA Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/American_Medical_Association" title="American Medical Association">American Medical Association</a></td>
<td>English</td>
<td>1920-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Johns_Hopkins_Medical_Journal" title="The Johns Hopkins Medical Journal">The Johns Hopkins Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Johns_Hopkins_Press" class="mw-redirect" title="Johns Hopkins Press">Johns Hopkins Press</a></td>
<td>English</td>
<td>1889-1982
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Acquired_Immune_Deficiency_Syndromes" title="Journal of Acquired Immune Deficiency Syndromes">Journal of Acquired Immune Deficiency Syndromes</a></i></td>
<td>HIV/AIDS</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1988-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_the_American_College_of_Cardiology" title="Journal of the American College of Cardiology">Journal of the American College of Cardiology</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1983-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_the_American_Geriatrics_Society" title="Journal of the American Geriatrics Society">Journal of the American Geriatrics Society</a></i></td>
<td>Geriatrics</td>
<td><a href="/wiki/Blackwell_Science" class="mw-redirect" title="Blackwell Science">Blackwell Science</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_the_American_Osteopathic_Association" class="mw-redirect" title="Journal of the American Osteopathic Association">Journal of the American Osteopathic Association</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/American_Osteopathic_Association" title="American Osteopathic Association">American Osteopathic Association</a></td>
<td>English</td>
<td>1901-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Ayurveda_and_Integrative_Medicine" title="Journal of Ayurveda and Integrative Medicine">Journal of Ayurveda and Integrative Medicine</a></i></td>
<td>Integrative Medicine</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>2010-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Bone_and_Joint_Surgery" class="mw-redirect" title="Journal of Bone and Joint Surgery">Journal of Bone and Joint Surgery</a></i></td>
<td>Bone Health</td>
<td><a href="/w/index.php?title=The_Journal_of_Bone_and_Joint_Surgery,_Inc&action=edit&redlink=1" class="new" title="The Journal of Bone and Joint Surgery, Inc (page does not exist)">The Journal of Bone and Joint Surgery, Inc</a></td>
<td>English</td>
<td>1889-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Cachexia,_Sarcopenia_and_Muscle" title="Journal of Cachexia, Sarcopenia and Muscle">Journal of Cachexia, Sarcopenia and Muscle</a></i></td>
<td>Muscle Health</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>2010-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Cancer" title="Journal of Cancer">Journal of Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Ivyspring_International_Publisher" title="Ivyspring International Publisher">Ivyspring International Publisher</a></td>
<td>English</td>
<td>2010-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Cardiovascular_Translational_Research" title="Journal of Cardiovascular Translational Research">Journal of Cardiovascular Translational Research</a></i></td>
<td>Cardiology</td>
<td><a href="/w/index.php?title=International_Society_for_Cardiovascular_Translational_Research&action=edit&redlink=1" class="new" title="International Society for Cardiovascular Translational Research (page does not exist)">International Society for Cardiovascular Translational Research</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Clinical_Endocrinology_and_Metabolism" class="mw-redirect" title="Journal of Clinical Endocrinology and Metabolism">Journal of Clinical Endocrinology and Metabolism</a></i></td>
<td>Endocrinology</td>
<td><a href="/wiki/The_Endocrine_Society" class="mw-redirect" title="The Endocrine Society">The Endocrine Society</a></td>
<td>English</td>
<td>1941-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Clinical_Investigation" title="Journal of Clinical Investigation">Journal of Clinical Investigation</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/American_Society_for_Clinical_Investigation" title="American Society for Clinical Investigation">American Society for Clinical Investigation</a></td>
<td>English</td>
<td>1924-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Clinical_Oncology" title="Journal of Clinical Oncology">Journal of Clinical Oncology</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/American_Society_of_Clinical_Oncology" title="American Society of Clinical Oncology">American Society of Clinical Oncology</a></td>
<td>English</td>
<td>1983-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Clinical_Psychopharmacology" title="Journal of Clinical Psychopharmacology">Journal of Clinical Psychopharmacology</a></i></td>
<td>Psychology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1981-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Clinical_Sleep_Medicine" title="Journal of Clinical Sleep Medicine">Journal of Clinical Sleep Medicine</a></i></td>
<td><a href="/wiki/Sleep_medicine" title="Sleep medicine">Sleep medicine</a></td>
<td><a href="/wiki/American_Academy_of_Sleep_Medicine" title="American Academy of Sleep Medicine">American Academy of Sleep Medicine</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Experimental_Medicine" title="Journal of Experimental Medicine">Journal of Experimental Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Rockefeller_University_Press" title="Rockefeller University Press">Rockefeller University Press</a></td>
<td>English</td>
<td>1896-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journals_of_Gerontology" class="mw-redirect" title="Journals of Gerontology">Journals of Gerontology</a></i></td>
<td>Aging</td>
<td><a href="/wiki/Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></td>
<td>English</td>
<td>1946-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Hypertension" title="Journal of Hypertension">Journal of Hypertension</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1982-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Immunology" title="Journal of Immunology">Journal of Immunology</a></i></td>
<td>Immunology</td>
<td><a href="/wiki/The_American_Association_of_Immunologists" class="mw-redirect" title="The American Association of Immunologists">The American Association of Immunologists</a></td>
<td>English</td>
<td>1915-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Infection_in_Developing_Countries" title="Journal of Infection in Developing Countries">Journal of Infection in Developing Countries</a></i></td>
<td>Infectious Disease</td>
<td>Journal of Infection in Developing Countries</td>
<td>English</td>
<td>2006-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Internal_Medicine" title="Journal of Internal Medicine">Journal of Internal Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Wiley-Blackwell" title="Wiley-Blackwell">Wiley-Blackwell</a></td>
<td>English</td>
<td>1863-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Investigative_Dermatology" title="Journal of Investigative Dermatology">Journal of Investigative Dermatology</a></i></td>
<td>Dermatology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1938-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Medical_Biography" title="Journal of Medical Biography">Journal of Medical Biography</a></i></td>
<td>Medical Personnel</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1993-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Medical_Case_Reports" title="Journal of Medical Case Reports">Journal of Medical Case Reports</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/BioMed_Central" title="BioMed Central">BioMed Central</a></td>
<td>English</td>
<td>2007-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Medical_Economics" title="Journal of Medical Economics">Journal of Medical Economics</a></i></td>
<td>Medicine, Pharmacology</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1998-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Medical_Genetics" title="Journal of Medical Genetics">Journal of Medical Genetics</a></i></td>
<td>Genetics</td>
<td><a href="/wiki/BMJ_Group" class="mw-redirect" title="BMJ Group">BMJ Group</a></td>
<td>English</td>
<td>1964-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Journal_of_Medical_Practice_Management" title="The Journal of Medical Practice Management">The Journal of Medical Practice Management</a></i></td>
<td>Health Management</td>
<td><a href="/wiki/Greenbranch_Publishing" title="Greenbranch Publishing">Greenbranch Publishing</a></td>
<td>English</td>
<td>1984-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Medicine" title="Journal of Medicine">Journal of Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Karger_Publishers" title="Karger Publishers">Karger Publishers</a></td>
<td>English</td>
<td>1970-2004
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Nervous_and_Mental_Disease" class="mw-redirect" title="Journal of Nervous and Mental Disease">Journal of Nervous and Mental Disease</a></i></td>
<td>Psychiatry</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1874-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Occupational_and_Environmental_Medicine" title="Journal of Occupational and Environmental Medicine">Journal of Occupational and Environmental Medicine</a></i></td>
<td>Occupational Medicine</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1959-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Oncology_Practice" title="Journal of Oncology Practice">Journal of Oncology Practice</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/American_Society_of_Clinical_Oncology" title="American Society of Clinical Oncology">American Society of Clinical Oncology</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Pain_Research" title="Journal of Pain Research">Journal of Pain Research</a></i></td>
<td>Pain</td>
<td><a href="/wiki/Dove_Medical_Press" title="Dove Medical Press">Dove Medical Press</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Pakistan_Medical_Association" title="Journal of Pakistan Medical Association">Journal of Pakistan Medical Association</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=Pakistan_Medical_Association&action=edit&redlink=1" class="new" title="Pakistan Medical Association (page does not exist)">Pakistan Medical Association</a></td>
<td>English</td>
<td>1951-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Pediatric_Endocrinology_and_Metabolism" title="Journal of Pediatric Endocrinology and Metabolism">Journal of Pediatric Endocrinology and Metabolism</a></i></td>
<td>Endocrinology</td>
<td><a href="/wiki/Walter_de_Gruyter" title="Walter de Gruyter">Walter de Gruyter</a></td>
<td>English</td>
<td>1985-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Pediatric_Gastroenterology_and_Nutrition" title="Journal of Pediatric Gastroenterology and Nutrition">Journal of Pediatric Gastroenterology and Nutrition</a></i></td>
<td>Gastroenterology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1982-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Pediatric_Health_Care" title="Journal of Pediatric Health Care">Journal of Pediatric Health Care</a></i></td>
<td>Pediatrics</td>
<td>Elsevier</td>
<td>English</td>
<td>1987-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Pediatric_Orthopaedics_B" title="Journal of Pediatric Orthopaedics B">Journal of Pediatric Orthopaedics B</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1989-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Journal_of_Pediatrics" title="The Journal of Pediatrics">The Journal of Pediatrics</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1932-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Postgraduate_Medicine" title="Journal of Postgraduate Medicine">Journal of Postgraduate Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1955-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_the_Royal_College_of_Physicians_of_Edinburgh" title="Journal of the Royal College of Physicians of Edinburgh">Journal of the Royal College of Physicians of Edinburgh</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Royal_College_of_Physicians_of_Edinburgh" title="Royal College of Physicians of Edinburgh">Royal College of Physicians of Edinburgh</a></td>
<td>English</td>
<td>1971-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_the_Royal_Society_of_Medicine" title="Journal of the Royal Society of Medicine">Journal of the Royal Society of Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1809-present
</td></tr>
<tr>
<td><i><a href="/wiki/Journal_of_Studies_on_Alcohol_and_Drugs" title="Journal of Studies on Alcohol and Drugs">Journal of Studies on Alcohol and Drugs</a></i></td>
<td>Addiction</td>
<td><a href="/w/index.php?title=Alcohol_Research_Documentation&action=edit&redlink=1" class="new" title="Alcohol Research Documentation (page does not exist)">Alcohol Research Documentation</a></td>
<td>English</td>
<td>1940-present
</td></tr>
<tr>
<td><i><a href="/wiki/Korean_Journal_of_Anesthesiology" title="Korean Journal of Anesthesiology">Korean Journal of Anesthesiology</a></i></td>
<td>Anaesthesiology</td>
<td><a href="/w/index.php?title=Korean_Society_of_Anesthesiologists&action=edit&redlink=1" class="new" title="Korean Society of Anesthesiologists (page does not exist)">Korean Society of Anesthesiologists</a></td>
<td>English</td>
<td>1968-present
</td></tr>
<tr>
<td><i><a href="/wiki/L%C3%A4kartidningen" title="Läkartidningen">Läkartidningen</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=Swedish_Medical_Association&action=edit&redlink=1" class="new" title="Swedish Medical Association (page does not exist)">Swedish Medical Association</a></td>
<td>Swedish</td>
<td>1965-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Lancet" title="The Lancet">The Lancet</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1823-present
</td></tr>
<tr>
<td><i><a href="/wiki/Langenbeck%27s_Archives_of_Surgery" title="Langenbeck's Archives of Surgery">Langenbeck's Archives of Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/w/index.php?title=Spring_Science%2BBusiness_Media&action=edit&redlink=1" class="new" title="Spring Science+Business Media (page does not exist)">Spring Science+Business Media</a></td>
<td>English</td>
<td>1860-present
</td></tr>
<tr>
<td><i><a href="/wiki/Macedonian_Journal_of_Medical_Sciences" title="Macedonian Journal of Medical Sciences">Macedonian Journal of Medical Sciences</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=Institute_of_Immunobiology_and_Human_Genetics&action=edit&redlink=1" class="new" title="Institute of Immunobiology and Human Genetics (page does not exist)">Institute of Immunobiology and Human Genetics</a></td>
<td>English</td>
<td>2008-present
</td></tr>
<tr>
<td><i><a href="/wiki/Mayo_Clinic_Proceedings" title="Mayo Clinic Proceedings">Mayo Clinic Proceedings</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1926-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Medical_Journal_of_Australia" title="The Medical Journal of Australia">The Medical Journal of Australia</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=Australasian_Medical_Publishing_Company&action=edit&redlink=1" class="new" title="Australasian Medical Publishing Company (page does not exist)">Australasian Medical Publishing Company</a></td>
<td>English</td>
<td>1914-present
</td></tr>
<tr>
<td><i><a href="/wiki/Medical_Law_International" title="Medical Law International">Medical Law International</a></i></td>
<td>Medical Law, Bioethics</td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1993-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Medical_Letter_on_Drugs_and_Therapeutics" title="The Medical Letter on Drugs and Therapeutics">The Medical Letter on Drugs and Therapeutics</a></i></td>
<td>Pharmacology</td>
<td><a href="/w/index.php?title=The_Medical_letter,_Inc.&action=edit&redlink=1" class="new" title="The Medical letter, Inc. (page does not exist)">The Medical letter, Inc.</a></td>
<td>English</td>
<td>1959-present
</td></tr>
<tr>
<td><i><a href="/wiki/Medicine,_Conflict_and_Survival" title="Medicine, Conflict and Survival">Medicine, Conflict and Survival</a></i></td>
<td>Global Health</td>
<td><a href="/wiki/Taylor_and_Francis_Group" class="mw-redirect" title="Taylor and Francis Group">Taylor and Francis Group</a></td>
<td>English</td>
<td>1985-present
</td></tr>
<tr>
<td><i><a href="/wiki/Melanoma_Research" title="Melanoma Research">Melanoma Research</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Menopause_(journal)" title="Menopause (journal)">Menopause</a></i></td>
<td>Gynecology, Aging</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/Mens_Sana_Monographs" title="Mens Sana Monographs">Mens Sana Monographs</a></i></td>
<td>Mental Health</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>2003-present
</td></tr>
<tr>
<td><i><a href="/wiki/Middle_East_African_Journal_of_Ophthalmology" title="Middle East African Journal of Ophthalmology">Middle East African Journal of Ophthalmology</a></i></td>
<td>Ophthalmology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/Molecular_Medicine_(journal)" title="Molecular Medicine (journal)">Molecular Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/The_Feinstein_Institute_for_Medical_Research" class="mw-redirect" title="The Feinstein Institute for Medical Research">The Feinstein Institute for Medical Research</a></td>
<td>English</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/Mount_Sinai_Journal_of_Medicine" title="Mount Sinai Journal of Medicine">Mount Sinai Journal of Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/John_Wiley_%26_Sons" title="John Wiley & Sons">John Wiley & Sons</a></td>
<td>English</td>
<td>1934-2012
</td></tr>
<tr>
<td><i><a href="/wiki/Movement_Disorders_(journal)" title="Movement Disorders (journal)">Movement Disorders</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Wiley-Liss" class="mw-redirect" title="Wiley-Liss">Wiley-Liss</a></td>
<td>English</td>
<td>1986-present
</td></tr>
<tr>
<td><i><a href="/wiki/Myanmar_Medical_Journal" title="Myanmar Medical Journal">Myanmar Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Myanmar_Medical_Association" title="Myanmar Medical Association">Myanmar Medical Association</a></td>
<td>English</td>
<td>1953-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_National_Medical_Journal_of_India" title="The National Medical Journal of India">National Medical Journal of India</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=All_India_Institute_of_Medical_Sciences,_New_Delhi&action=edit&redlink=1" class="new" title="All India Institute of Medical Sciences, New Delhi (page does not exist)">All India Institute of Medical Sciences, New Delhi</a></td>
<td>English</td>
<td>1988-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Medicine" title="Nature Medicine">Nature Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1995-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Cancer" title="Nature Reviews Cancer">Nature Reviews Cancer</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Cardiology" title="Nature Reviews Cardiology">Nature Reviews Cardiology</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Clinical_Oncology" title="Nature Reviews Clinical Oncology">Nature Reviews Clinical Oncology</a></i></td>
<td>Oncology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Disease_Primers" title="Nature Reviews Disease Primers">Nature Reviews Disease Primers</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2015-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Gastroenterology_%26_Hepatology" title="Nature Reviews Gastroenterology & Hepatology">Nature Reviews Gastroenterology & Hepatology</a></i></td>
<td>Gastroenterology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Immunology" title="Nature Reviews Immunology">Nature Reviews Immunology</a></i></td>
<td>Immunology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Microbiology" title="Nature Reviews Microbiology">Nature Reviews Microbiology</a></i></td>
<td>Infectious Disease</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2003-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Nephrology" title="Nature Reviews Nephrology">Nature Reviews Nephrology</a></i></td>
<td>Nephrology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Neurology" title="Nature Reviews Neurology">Nature Reviews Neurology</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Neuroscience" title="Nature Reviews Neuroscience">Nature Reviews Neuroscience</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2000-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Rheumatology" title="Nature Reviews Rheumatology">Nature Reviews Rheumatology</a></i></td>
<td>Rheumatology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nature_Reviews_Urology" title="Nature Reviews Urology">Nature Reviews Urology</a></i></td>
<td>Urology</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nederlands_Tijdschrift_voor_Geneeskunde" title="Nederlands Tijdschrift voor Geneeskunde">Nederlands Tijdschrift voor Geneeskunde</a></i></td>
<td>Medicine</td>
<td><a href="/w/index.php?title=Vereniging_Nederlands_Tijdschrift_voor_Geneeskunde&action=edit&redlink=1" class="new" title="Vereniging Nederlands Tijdschrift voor Geneeskunde (page does not exist)">Vereniging Nederlands Tijdschrift voor Geneeskunde</a></td>
<td>Dutch</td>
<td>1857-present
</td></tr>
<tr>
<td><i><a href="/wiki/Neural_Regeneration_Research" title="Neural Regeneration Research">Neural Regeneration Research</a></i></td>
<td>Neurology</td>
<td><a href="/w/index.php?title=Publishing_House_of_Neural_Regeneration_Research&action=edit&redlink=1" class="new" title="Publishing House of Neural Regeneration Research (page does not exist)">Publishing House of Neural Regeneration Research</a></td>
<td>English</td>
<td>2006-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Neurologist" title="The Neurologist">The Neurologist</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1997-present
</td></tr>
<tr>
<td><i><a href="/wiki/Neurology_(journal)" title="Neurology (journal)">Neurology</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1951-present
</td></tr>
<tr>
<td><i><a href="/wiki/Neurology_India" title="Neurology India">Neurology India</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Medknow_Publications" title="Medknow Publications">Medknow Publications</a></td>
<td>English</td>
<td>1953-present
</td></tr>
<tr>
<td><i><a href="/wiki/Neuropsychiatric_Disease_and_Treatment" title="Neuropsychiatric Disease and Treatment">Neuropsychiatric Disease and Treatment</a></i></td>
<td>Neuropsychiatry</td>
<td>Dove Medical Press</td>
<td>English</td>
<td>2005-present
</td></tr>
<tr>
<td><i><a href="/wiki/Neuropsychiatry_(journal)" title="Neuropsychiatry (journal)">Neuropsychiatry</a></i></td>
<td>Neuropsychiatry</td>
<td><a href="/wiki/Pulsus_Group" title="Pulsus Group">Pulsus Group</a></td>
<td>English</td>
<td>2011-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_New_England_Journal_of_Medicine" title="The New England Journal of Medicine">The New England Journal of Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Massachusetts_Medical_Society" title="Massachusetts Medical Society">Massachusetts Medical Society</a></td>
<td>English</td>
<td>1812-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_New_Zealand_Medical_Journal" title="The New Zealand Medical Journal">The New Zealand Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/New_Zealand_Medical_Association" title="New Zealand Medical Association">New Zealand Medical Association</a></td>
<td>English</td>
<td>1887-present
</td></tr>
<tr>
<td><i><a href="/wiki/Nursing_Children_and_Young_People" title="Nursing Children and Young People">Nursing Children and Young People</a></i></td>
<td>Pediatrics, Nursing</td>
<td><a href="/wiki/RCN_Publishing" class="mw-redirect" title="RCN Publishing">RCN Publishing</a></td>
<td>English</td>
<td>1989-present
</td></tr>
<tr>
<td><i><a href="/wiki/Obstetrics_%26_Gynecology_(journal)" title="Obstetrics & Gynecology (journal)">Obstetrics and Gynecology</a></i></td>
<td>Obstetrics, Gynecology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1953-present
</td></tr>
<tr>
<td><i><a href="/wiki/Open_Medicine_(De_Gruyter_journal)" title="Open Medicine (De Gruyter journal)">Open Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Walter_de_Gruyter" title="Walter de Gruyter">Walter de Gruyter</a></td>
<td>English</td>
<td>2006-present
</td></tr>
<tr>
<td><i><a href="/wiki/Orbit_(journal)" title="Orbit (journal)">Orbit</a></i></td>
<td><a href="/wiki/Ophthalmology" title="Ophthalmology">Ophthalmology</a></td>
<td><a href="/wiki/Informa" title="Informa">Informa Healthcare</a></td>
<td>English</td>
<td>1982-present
</td></tr>
<tr>
<td><i><a href="/wiki/Osteoporosis_International" title="Osteoporosis International">Osteoporosis International</a></i></td>
<td>Bone Health</td>
<td><a href="/w/index.php?title=Spring_Science%2BBusiness_Media&action=edit&redlink=1" class="new" title="Spring Science+Business Media (page does not exist)">Spring Science+Business Media</a></td>
<td>English</td>
<td>1990-present
</td></tr>
<tr>
<td><i><a href="/wiki/Ostomy_Wound_Management" title="Ostomy Wound Management">Ostomy Wound Management</a></i></td>
<td>Wound care</td>
<td><a href="/w/index.php?title=HMP_Communications&action=edit&redlink=1" class="new" title="HMP Communications (page does not exist)">HMP Communications</a></td>
<td>English</td>
<td>1980-present
</td></tr>
<tr>
<td><i><a href="/wiki/Paediatrics_%26_Child_Health" title="Paediatrics & Child Health">Paediatrics & Child Health</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/Pulsus_Group" title="Pulsus Group">Pulsus Group</a></td>
<td>English</td>
<td>1996-present
</td></tr>
<tr>
<td><i><a href="/wiki/Pain_Research_%26_Management" title="Pain Research & Management">Pain Research & Management</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/Pulsus_Group" title="Pulsus Group">Pulsus Group</a></td>
<td>English, French</td>
<td>1996-present
</td></tr>
<tr>
<td><i><a href="/wiki/Pan_American_Journal_of_Public_Health" title="Pan American Journal of Public Health">Pan American Journal of Public Health</a></i></td>
<td>Public Health</td>
<td><a href="/wiki/Pan_American_Health_Organization" title="Pan American Health Organization">Pan American Health Organization</a></td>
<td>English, Portuguese, Spanish</td>
<td>1997-present
</td></tr>
<tr>
<td><i><a href="/wiki/Pathologica" title="Pathologica">Pathologica</a></i></td>
<td>Pathology</td>
<td><a href="/w/index.php?title=Societ%C3%A0_Anatomo_Patologi_Ospedalieri_Italiani&action=edit&redlink=1" class="new" title="Società Anatomo Patologi Ospedalieri Italiani (page does not exist)">Società Anatomo Patologi Ospedalieri Italiani</a></td>
<td>Italian, English</td>
<td>1908-present
</td></tr>
<tr>
<td><i><a href="/wiki/Pediatric_Research" title="Pediatric Research">Pediatric Research</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/Nature_Publishing_Group" title="Nature Publishing Group">Nature Publishing Group</a></td>
<td>English</td>
<td>1967-present
</td></tr>
<tr>
<td><i><a href="/wiki/Pediatrics_(journal)" title="Pediatrics (journal)">Pediatrics</a></i></td>
<td>Pediatrics</td>
<td><a href="/wiki/American_Academy_of_Pediatrics" title="American Academy of Pediatrics">American Academy of Pediatrics</a></td>
<td>English</td>
<td>1948-present
</td></tr>
<tr>
<td><i><a href="/wiki/Personalized_Medicine_(journal)" title="Personalized Medicine (journal)">Personalized Medicine</a></i></td>
<td><a href="/wiki/Personalized_Medicine" class="mw-redirect" title="Personalized Medicine">Personalized Medicine</a></td>
<td><a href="/wiki/Future_Medicine" title="Future Medicine">Future Medicine</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/The_Physician_and_Sportsmedicine" title="The Physician and Sportsmedicine">The Physician and Sportsmedicine</a></i></td>
<td>Sports Medicine</td>
<td><a href="/wiki/Informa_Healthcare" class="mw-redirect" title="Informa Healthcare">Informa Healthcare</a></td>
<td>English</td>
<td>1973-present
</td></tr>
<tr>
<td><i><a href="/wiki/Plastic_Surgery_(journal)" title="Plastic Surgery (journal)">Plastic Surgery</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/Pulsus_Group" title="Pulsus Group">Pulsus Group</a></td>
<td>English</td>
<td>1993-present
</td></tr>
<tr>
<td><i><a href="/wiki/PLoS_Medicine" class="mw-redirect" title="PLoS Medicine">PLoS Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Public_Library_of_Science" class="mw-redirect" title="Public Library of Science">Public Library of Science</a></td>
<td>English</td>
<td>2004-present
</td></tr>
<tr>
<td><i><a href="/wiki/PLoS_Neglected_Tropical_Diseases" class="mw-redirect" title="PLoS Neglected Tropical Diseases">PLoS Neglected Tropical Diseases</a></i></td>
<td>Global Health</td>
<td><a href="/wiki/Public_Library_of_Science" class="mw-redirect" title="Public Library of Science">Public Library of Science</a></td>
<td>English</td>
<td>2007-present
</td></tr>
<tr>
<td><i><a href="/wiki/Postgraduate_Medicine" title="Postgraduate Medicine">Postgraduate Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Informa_Healthcare" class="mw-redirect" title="Informa Healthcare">Informa Healthcare</a></td>
<td>English</td>
<td>1916-present
</td></tr>
<tr>
<td><i><a href="/wiki/Le_Practicien_en_Anesth%C3%A9sie_R%C3%A9animation" class="mw-redirect" title="Le Practicien en Anesthésie Réanimation">Le Practicien en Anesthésie Réanimation</a></i></td>
<td>Anaesthesiology</td>
<td><a href="/wiki/Elsevier_Masson" class="mw-redirect" title="Elsevier Masson">Elsevier Masson</a></td>
<td>English</td>
<td>1997-present
</td></tr>
<tr>
<td><i><a href="/wiki/Preventive_Medicine_(journal)" title="Preventive Medicine (journal)">Preventive Medicine</a></i></td>
<td>Preventative Medicine</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1972-present
</td></tr>
<tr>
<td><i><a href="/wiki/Primary_Dental_Journal" title="Primary Dental Journal">Primary Dental Journal</a></i></td>
<td>Dentistry</td>
<td><a href="/wiki/Faculty_of_General_Dental_Practice" title="Faculty of General Dental Practice">Faculty of General Dental Practice</a></td>
<td>English</td>
<td>1994-present
</td></tr>
<tr>
<td><i><a href="/wiki/Progress_in_Osteoporosis" class="mw-redirect" title="Progress in Osteoporosis">Progress in Osteoporosis</a></i></td>
<td>Bone Health</td>
<td><a href="/wiki/International_Osteoporosis_Foundation" title="International Osteoporosis Foundation">International Osteoporosis Foundation</a></td>
<td>English</td>
<td>2000-present
</td></tr>
<tr>
<td><i><a href="/wiki/Psychiatric_Genetics_(journal)" title="Psychiatric Genetics (journal)">Psychiatric Genetics</a></i></td>
<td>Psychiatry</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1990-present
</td></tr>
<tr>
<td><i><a href="/wiki/Psychosomatic_Medicine_(journal)" title="Psychosomatic Medicine (journal)">Psychosomatic Medicine</a></i></td>
<td>Psychology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1939-present
</td></tr>
<tr>
<td><i><a href="/wiki/QJM:_An_International_Journal_of_Medicine" class="mw-redirect" title="QJM: An International Journal of Medicine">QJM: An International Journal of Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></td>
<td>English</td>
<td>1907-present
</td></tr>
<tr>
<td><i><a href="/wiki/Radiology_(journal)" title="Radiology (journal)">Radiology</a></i></td>
<td>Radiology</td>
<td><a href="/wiki/Radiological_Society_of_North_America" title="Radiological Society of North America">Radiological Society of North America</a></td>
<td>English</td>
<td>1923-present
</td></tr>
<tr>
<td><i><a href="/wiki/Rambam_Maimonides_Medical_Journal" title="Rambam Maimonides Medical Journal">Rambam Maimonides Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Rambam_Health_Care_Campus" title="Rambam Health Care Campus">Rambam Health Care Campus</a></td>
<td>English</td>
<td>2010-present
</td></tr>
<tr>
<td><i><a href="/wiki/Rejuvenation_Research" title="Rejuvenation Research">Rejuvenation Research</a></i></td>
<td>Aging</td>
<td><a href="/wiki/Mary_Ann_Liebert" title="Mary Ann Liebert">Mary Ann Liebert</a></td>
<td>English</td>
<td>1998-present
</td></tr>
<tr>
<td><i><a href="/wiki/Research_and_Humanities_in_Medical_Education" title="Research and Humanities in Medical Education">Research and Humanities in Medical Education</a></i></td>
<td><a href="/wiki/Medical_humanities" title="Medical humanities">Medical humanities</a></td>
<td>Medical Humanities Group at the <a href="/wiki/University_College_of_Medical_Sciences" title="University College of Medical Sciences">University College of Medical Sciences</a></td>
<td>English</td>
<td>2014-present
</td></tr>
<tr>
<td><i><a href="/wiki/Revista_Pediatr%C3%ADa_de_Atenci%C3%B3n_Primaria" title="Revista Pediatría de Atención Primaria">Revista Pediatría de Atención Primaria</a></i></td>
<td>Pediatrics</td>
<td><a href="/w/index.php?title=Exlibris_Ediciones&action=edit&redlink=1" class="new" title="Exlibris Ediciones (page does not exist)">Exlibris Ediciones</a></td>
<td>English</td>
<td>1999-present
</td></tr>
<tr>
<td><i><a href="/wiki/Scandinavian_Journal_of_Infectious_Diseases" title="Scandinavian Journal of Infectious Diseases">Scandinavian Journal of Infectious Diseases</a></i></td>
<td>Infectious Disease</td>
<td><a href="/wiki/Informa_Healthcare" class="mw-redirect" title="Informa Healthcare">Informa Healthcare</a></td>
<td>English</td>
<td>1969-present
</td></tr>
<tr>
<td><i><a href="/wiki/Scandinavian_Journal_of_Occupational_Therapy" title="Scandinavian Journal of Occupational Therapy">Scandinavian Journal of Occupational Therapy</a></i></td>
<td>Occupational Therapy</td>
<td><a href="/wiki/Informa_Healthcare" class="mw-redirect" title="Informa Healthcare">Informa Healthcare</a></td>
<td>English</td>
<td>1993-present
</td></tr>
<tr>
<td><i><a href="/wiki/Scandinavian_Journal_of_Surgery" title="Scandinavian Journal of Surgery">Scandinavian Journal of Surgery</a></i></td>
<td><a href="/wiki/Surgery" title="Surgery">Surgery</a></td>
<td><a href="/wiki/SAGE_Publications" class="mw-redirect" title="SAGE Publications">SAGE Publications</a></td>
<td>English</td>
<td>1919-present
</td></tr>
<tr>
<td><i><a href="/wiki/Scientia_Pharmaceutica" title="Scientia Pharmaceutica">Scientia Pharmaceutica</a></i></td>
<td>Pharmacology</td>
<td><a href="/w/index.php?title=%C3%96sterreichische_Pharmazeutische_Gesellschaft&action=edit&redlink=1" class="new" title="Österreichische Pharmazeutische Gesellschaft (page does not exist)">Österreichische Pharmazeutische Gesellschaft</a></td>
<td>English, German</td>
<td>1930-present
</td></tr>
<tr>
<td><i><a href="/wiki/Seminars_in_Ophthalmology" title="Seminars in Ophthalmology">Seminars in Ophthalmology</a></i></td>
<td>Ophthalmology</td>
<td><a href="/wiki/Taylor_%26_Francis" title="Taylor & Francis">Taylor & Francis</a></td>
<td>English</td>
<td>1986-present
</td></tr>
<tr>
<td><i><a href="/wiki/Spine_(journal)" title="Spine (journal)">Spine</a></i></td>
<td>Orthopedics</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1976-present
</td></tr>
<tr>
<td><i><a href="/wiki/Statistics_in_Medicine_(journal)" title="Statistics in Medicine (journal)">Statistics in Medicine</a></i></td>
<td>Statistics</td>
<td><a href="/wiki/John_Wiley_%26_Sons" title="John Wiley & Sons">John Wiley & Sons</a></td>
<td>English</td>
<td>1982-present
</td></tr>
<tr>
<td><i><a href="/wiki/Stroke_(journal)" title="Stroke (journal)">Stroke</a></i></td>
<td>Cardiology</td>
<td><a href="/wiki/Lippincott_Williams_%26_Wilkins" title="Lippincott Williams & Wilkins">Lippincott Williams & Wilkins</a></td>
<td>English</td>
<td>1970-present
</td></tr>
<tr>
<td><i><a href="/wiki/Surgical_Endoscopy" title="Surgical Endoscopy">Surgical Endoscopy</a></i></td>
<td>Surgery</td>
<td><a href="/wiki/Springer_Science%2BBusiness_Media" title="Springer Science+Business Media">Springer Science+Business Media</a></td>
<td>English</td>
<td>1986-present
</td></tr>
<tr>
<td><i><a href="/wiki/TAF_Preventive_Medicine_Bulletin" title="TAF Preventive Medicine Bulletin">TAF Preventive Medicine Bulletin</a></i></td>
<td>Preventive Medicine</td>
<td><a href="/w/index.php?title=Gulhane_Askeri_Tip_Akademisi&action=edit&redlink=1" class="new" title="Gulhane Askeri Tip Akademisi (page does not exist)">Gulhane Askeri Tip Akademisi</a></td>
<td>English</td>
<td>2001-present
</td></tr>
<tr>
<td><i><a href="/wiki/Tehran_University_Medical_Journal" title="Tehran University Medical Journal">Tehran University Medical Journal</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/University_of_Tehran" title="University of Tehran">University of Tehran</a></td>
<td>English</td>
<td>1943-present
</td></tr>
<tr>
<td><i><a href="/w/index.php?title=The_Journal_of_Neurobehavioural_Sciences&action=edit&redlink=1" class="new" title="The Journal of Neurobehavioural Sciences (page does not exist)">The Journal of Neurobehavioural Sciences</a></i></td>
<td>Neurology</td>
<td><a href="/wiki/%C3%9Csk%C3%BCdar_University" title="Üsküdar University">Üsküdar University</a></td>
<td>English</td>
<td>2014-present
</td></tr>
<tr>
<td><i><a href="/wiki/Transactions_of_the_Royal_Society_of_Tropical_Medicine_and_Hygiene" title="Transactions of the Royal Society of Tropical Medicine and Hygiene">Transactions of the Royal Society of Tropical Medicine and Hygiene</a></i></td>
<td>Global Health</td>
<td><a href="/wiki/Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></td>
<td>English</td>
<td>1908-present
</td></tr>
<tr>
<td><i><a href="/wiki/Trends_(journals)" title="Trends (journals)">Trends in Molecular Medicine</a></i></td>
<td>Medicine</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1995-present
</td></tr>
<tr>
<td><i><a href="/wiki/Women%27s_Health_Issues_(journal)" title="Women's Health Issues (journal)">Women's Health Issues</a></i></td>
<td>Women's Health</td>
<td><a href="/wiki/Elsevier" title="Elsevier">Elsevier</a></td>
<td>English</td>
<td>1990-present
</td></tr></tbody><tfoot></tfoot></table>"""
parser.feed(htmlstr)
for link in links:
print(link)
'''
class MyHTMLParser2(HTMLParser):
def handle_starttag(self, tag, attrs):
if tag == "table":
if attrs[0][1] == "infobox hproduct":
print("Encountered a start tag:", attrs)
parser2 = MyHTMLParser2()
for link in links:
url = "http://en.wikipedia.org"+link[0][1]
try:
doc=requests.get(url)
htmltext = doc.text
#parser2.feed(htmltext)
soup = BeautifulSoup(htmltext, 'html.parser')
t = soup.find("table", {"class":"infobox hproduct"})
#print(t)
#table = soup.find(lambda tag: tag.name == "table" and tag.has_attr('class') and tag['class']=="infobox hproduct")
rows = t.findAll(lambda tag: tag.name == 'a')
for row in rows:
if row.getText() == "Journal homepage":
f.write(row['href'])
print(row['href'])
#rowstext = rows[0].getText()
what = soup.findAll("table", {"class": "infobox hproduct"})
#print(what[0])
table = BeautifulSoup(what[0], 'html.parser')
print(table)
table.prettify()
linksInTable = table.findAll("a")
print(linksInTable)
except:
continue
''' | 46.378471 | 317 | 0.730299 | 16,777 | 108,572 | 4.635692 | 0.046433 | 0.066038 | 0.070706 | 0.024764 | 0.761408 | 0.656102 | 0.603551 | 0.568668 | 0.549548 | 0.517493 | 0 | 0.014898 | 0.06894 | 108,572 | 2,341 | 318 | 46.378471 | 0.75437 | 0.000368 | 0 | 0.744728 | 0 | 0.267575 | 0.996512 | 0.362242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000439 | false | 0 | 0.001318 | 0 | 0.002197 | 0.000439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b7e7d2743ffbc0e77c3a7de9781212e278d3e4d | 5,665 | py | Python | Ranger/test/src/Collections/RangeMapTest.py | er432/Ranger | a583b332ffe0e5db9f60a5716c9a5504d91fbd39 | [
"BSD-3-Clause"
] | 2 | 2015-03-22T00:31:28.000Z | 2021-01-31T16:24:42.000Z | Ranger/test/src/Collections/RangeMapTest.py | er432/Ranger | a583b332ffe0e5db9f60a5716c9a5504d91fbd39 | [
"BSD-3-Clause"
] | 1 | 2015-10-06T00:43:51.000Z | 2015-10-06T02:36:36.000Z | Ranger/test/src/Collections/RangeMapTest.py | er432/Ranger | a583b332ffe0e5db9f60a5716c9a5504d91fbd39 | [
"BSD-3-Clause"
] | 2 | 2016-04-10T08:02:23.000Z | 2020-12-11T06:17:41.000Z | import unittest
from Ranger.src.Collections.RangeMap import RangeMap
from Ranger.src.Range.Range import Range
debug = False
class RangeMapTest(unittest.TestCase):
""" Unit Tests for RangeMap.py """
def test_contains(self):
if debug: print("Testing contains")
theMap = RangeMap()
theMap.put(Range.closed(3,5),'foo')
theMap.put(Range.closed(7,10),'bar')
self.assertTrue(theMap.contains(4))
self.assertFalse(theMap.contains(2))
self.assertTrue(theMap.contains(Range.closed(4,5)))
self.assertTrue(theMap.contains(Range.closed(8,9)))
self.assertFalse(theMap.contains(Range.closed(1,4)))
self.assertFalse(theMap.contains(Range.closed(6,6)))
self.assertFalse(theMap.contains(Range.closed(8,12)))
def test_overlaps(self):
if debug: print("Testing overlaps")
theMap = RangeMap()
theMap.put(Range.closed(3,5),'foo')
theMap.put(Range.closed(7,10),'bar')
self.assertTrue(theMap.overlaps(4))
self.assertFalse(theMap.overlaps(Range.closedOpen(1,3)))
self.assertFalse(theMap.overlaps(Range.open(5,7)))
self.assertFalse(theMap.overlaps(2))
self.assertTrue(theMap.overlaps(3))
self.assertTrue(theMap.overlaps(10))
self.assertTrue(theMap.overlaps(Range.closed(4,5)))
self.assertTrue(theMap.overlaps(Range.closed(8,9)))
self.assertTrue(theMap.overlaps(Range.closed(1,4)))
self.assertFalse(theMap.overlaps(Range.closed(6,6)))
self.assertTrue(theMap.overlaps(Range.closed(8,12)))
self.assertTrue(theMap.overlaps(Range.closed(1,12)))
def test_put(self):
if debug: print("Testing put")
rangeMap = RangeMap()
rangeMap.put(Range.closed(1,10),'foo')
self.assertEqual(rangeMap.ranges[0], Range.closed(1,10))
self.assertEqual(rangeMap.items[0], 'foo')
rangeMap.put(Range.open(3,6), 'bar')
self.assertEqual(rangeMap.ranges[0], Range.closed(1,3))
self.assertEqual(rangeMap.ranges[1], Range.open(3,6))
self.assertEqual(rangeMap.ranges[2], Range.closed(6,10))
self.assertEqual(rangeMap.items[0],'foo')
self.assertEqual(rangeMap.items[1], 'bar')
self.assertEqual(rangeMap.items[2],'foo')
rangeMap.put(Range.open(10,20), 'foo')
self.assertEqual(len(rangeMap),4)
self.assertEqual(rangeMap.ranges[3], Range.open(10,20))
self.assertEqual(rangeMap.items[0],'foo')
self.assertEqual(rangeMap.items[1], 'bar')
self.assertEqual(rangeMap.items[2],'foo')
self.assertEqual(rangeMap.items[3],'foo')
def test_remove(self):
if debug: print("Testing remove")
rangeMap = RangeMap()
rangeMap.put(Range.closed(1,10),'foo')
rangeMap.put(Range.open(3,6), 'bar')
rangeMap.put(Range.open(10,20), 'foo')
rangeMap.remove(Range.closed(5,11))
self.assertEqual(len(rangeMap), 3)
self.assertEqual(rangeMap.ranges[0], Range.closed(1,3))
self.assertEqual(rangeMap.ranges[1], Range.open(3,5))
self.assertEqual(rangeMap.ranges[2], Range.open(11,20))
self.assertEqual(rangeMap.items[0],'foo')
self.assertEqual(rangeMap.items[1], 'bar')
self.assertEqual(rangeMap.items[2],'foo')
rangeMap.remove(Range.closed(0,1))
self.assertEqual(len(rangeMap), 3)
self.assertEqual(rangeMap.ranges[0], Range.openClosed(1,3))
self.assertEqual(rangeMap.ranges[1], Range.open(3,5))
self.assertEqual(rangeMap.ranges[2], Range.open(11,20))
self.assertEqual(rangeMap.items[0],'foo')
self.assertEqual(rangeMap.items[1], 'bar')
self.assertEqual(rangeMap.items[2],'foo')
def test_get(self):
if debug: print("Testing get")
rangeMap = RangeMap()
rangeMap.put(Range.closed(1,10),'foo')
rangeMap.put(Range.open(3,6), 'bar')
rangeMap.put(Range.open(10,20), 'foo')
self.assertEqual(rangeMap.get(1),set(['foo']))
self.assertEquals(rangeMap.get(4),set(['bar']))
with self.assertRaises(KeyError):
rangeMap.get(20)
self.assertEqual(rangeMap.get(Range.closed(11,15)),set(['foo']))
self.assertEquals(rangeMap.get(Range.closed(5,15)),set(['foo','bar']))
with self.assertRaises(KeyError):
rangeMap.get(Range.closed(20,30))
self.assertEquals(rangeMap.get(Range.closed(15,100)),set(['foo']))
def test_whichOverlaps(self):
if debug: print("Testing whichOverlaps")
theMap = RangeMap()
theMap.put(Range.closed(3,5),'foo')
theMap.put(Range.closed(7,10),'bar')
self.assertEqual(theMap.whichOverlaps(4), set([Range.closed(3,5)]))
self.assertEqual(theMap.whichOverlaps(Range.closed(0,4)),
set([Range.closed(3,5)]))
self.assertEqual(theMap.whichOverlaps(Range.closed(4,5)),
set([Range.closed(3,5)]))
self.assertEqual(theMap.whichOverlaps(Range.closed(4,6)),
set([Range.closed(3,5)]))
self.assertEqual(theMap.whichOverlaps(Range.closed(6,7)),
set([Range.closed(7,10)]))
self.assertEqual(theMap.whichOverlaps(Range.closed(8,11)),
set([Range.closed(7,10)]))
self.assertEqual(theMap.whichOverlaps(Range.closed(12,15)),
set([]))
self.assertEqual(theMap.whichOverlaps(Range.closed(4,11)),
set([Range.closed(3,5), Range.closed(7,10)]))
if __name__ == "__main__":
debug = True
unittest.main(exit = False)
| 48.008475 | 78 | 0.625419 | 714 | 5,665 | 4.942577 | 0.095238 | 0.140266 | 0.175971 | 0.11108 | 0.805044 | 0.719467 | 0.617172 | 0.496741 | 0.476906 | 0.450553 | 0 | 0.04443 | 0.209356 | 5,665 | 117 | 79 | 48.418803 | 0.74347 | 0.00459 | 0 | 0.429825 | 0 | 0 | 0.035873 | 0 | 0 | 0 | 0 | 0 | 0.54386 | 1 | 0.052632 | false | 0 | 0.026316 | 0 | 0.087719 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b85b84bab57446648b0799d35094b6acd7c3dbb | 23,447 | py | Python | app.py | XiangLinMao/maolinebottest | 1caaf1fbb7a8d23a4208f6cb0283aea2a53cd46a | [
"MIT"
] | null | null | null | app.py | XiangLinMao/maolinebottest | 1caaf1fbb7a8d23a4208f6cb0283aea2a53cd46a | [
"MIT"
] | null | null | null | app.py | XiangLinMao/maolinebottest | 1caaf1fbb7a8d23a4208f6cb0283aea2a53cd46a | [
"MIT"
] | null | null | null | #-*-coding:utf-8 -*-
import requests, re, random, configparser, datetime, os
from pandas import Series, DataFrame
import pandas as pd
from bs4 import BeautifulSoup
from flask import Flask, request, abort
from imgurpython import ImgurClient
from linebot import (
LineBotApi, WebhookHandler
)
from linebot.exceptions import (
InvalidSignatureError
)
from linebot.models import *
app = Flask(__name__)
config = configparser.ConfigParser()
config.read("config.ini")
line_bot_api = LineBotApi(config['line_bot']['Channel_Access_Token'])
handler = WebhookHandler(config['line_bot']['Channel_Secret'])
@app.route("/callback", methods=['POST'])
def callback():
# get X-Line-Signature header value
signature = request.headers['X-Line-Signature']
# get request body as text
body = request.get_data(as_text=True)
# print("body:",body)
app.logger.info("Request body: " + body)
# handle webhook body
try:
handler.handle(body, signature)
except InvalidSignatureError:
abort(400)
return 'ok'
locallist = {'臺北市':'Taipei_City.htm', '新北市':'New_Taipei_City.htm',
'桃園市':'Taoyuan_City.htm', '臺中市':'Taichung_City.htm',
'臺南市':'Tainan_City.htm', '高雄市':'Kaohsiung_City.htm',
'基隆市':'Keelung_City.htm', '新竹市':'Hsinchu_City.htm',
'新竹縣':'Hsinchu_County.htm', '苗栗縣':'Miaoli_County.htm',
'彰化縣':'Changhua_County.htm', '南投縣':'Nantou_County.htm',
'雲林縣':'Yunlin_County.htm', '嘉義市':'Chiayi_City.htm',
'嘉義縣':'Chiayi_County.htm', '屏東縣':'Pingtung_County.htm',
'宜蘭縣':'Yilan_County.htm', '花蓮縣':'Hualien_County.htm',
'臺東縣':'Taitung_County.htm', '澎湖縣':'Penghu_County.htm',
'金門縣':'Kinmen_County.htm', '連江縣':'Lienchiang_County.htm',
'台北市':'Taipei_City.htm', '台中市':'Taichung_City.htm',
'台南市':'Tainan_City.htm', '台東縣':'Taitung_County.htm',
'馬祖':'Lienchiang_County.htm'}
taipeilist = {'台北市松山區':'6300100.htm', '台北市信義區':'6300200.htm','台北市大安區':'6300300.htm', '台北市中山區':'6300400.htm','台北市中正區':'6300500.htm', '台北市大同區':'6300600.htm',
'台北市萬華區':'6300700.htm', '台北市文山區':'6300800.htm','台北市南港區':'6300900.htm', '台北市內湖區':'6301000.htm','台北市士林區':'6301100.htm', '台北市北投區':'6301200.htm',
'臺北市松山區':'6300100.htm', '臺北市信義區':'6300200.htm','臺北市大安區':'6300300.htm', '臺北市中山區':'6300400.htm','臺北市中正區':'6300500.htm', '臺北市大同區':'6300600.htm',
'臺北市萬華區':'6300700.htm', '臺北市文山區':'6300800.htm','臺北市南港區':'6300900.htm', '臺北市內湖區':'6301000.htm','臺北市士林區':'6301100.htm', '臺北市北投區':'6301200.htm',
'松山區':'6300100.htm', '信義區':'6300200.htm','大安區':'6300300.htm', '中山區':'6300400.htm','中正區':'6300500.htm', '大同區':'6300600.htm',
'萬華區':'6300700.htm', '文山區':'6300800.htm','南港區':'6300900.htm', '內湖區':'6301000.htm','士林區':'6301100.htm', '北投區':'6301200.htm',
'台北松山':'6300100.htm', '台北信義':'6300200.htm','台北大安':'6300300.htm', '台北中山':'6300400.htm','台北中正':'6300500.htm', '台北大同':'6300600.htm',
'台北萬華':'6300700.htm', '台北文山':'6300800.htm','台北南港':'6300900.htm', '台北內湖':'6301000.htm','台北士林':'6301100.htm', '台北北投':'6301200.htm',
'基隆市中正區':'1001701.htm','基隆市七堵區':'1001702.htm','基隆市暖暖區':'1001703.htm','基隆市仁愛區':'1001704.htm','基隆市中山區':'1001705.htm','基隆市安樂區':'1001706.htm','基隆市信義區':'1001707.htm',
'基隆中正':'1001701.htm','基隆七堵':'1001703.htm','基隆暖暖':'1001703.htm','基隆仁愛':'1001704.htm','基隆中山':'1001705.htm','基隆安樂':'1001706.htm','基隆信義':'1001707.htm',
'新北市板橋區':'6500100.htm','新北市三重區':'6500200.htm','新北市中和區':'6500300.htm','新北市永和區':'6500400.htm','新北市新莊區':'6500500.htm','新北市新店區':'6500600.htm','新北市樹林區':'6500700.htm',
'新北市鶯歌區':'6500800.htm','新北市三峽區':'6500900.htm','新北市淡水區':'6501000.htm','新北市汐止區':'6501100.htm','新北市瑞芳區':'6501200.htm','新北市土城區':'6501300.htm','新北市蘆洲區':'6501400.htm',
'新北市五股區':'6501500.htm','新北市泰山區':'6501600.htm','新北市林口區':'6501700.htm','新北市深坑區':'6501800.htm','新北市石碇區':'6501900.htm','新北市坪林區':'6502000.htm','新北市三芝區':'6502100.htm',
'新北市石門區':'6502200.htm','新北市八里區':'6502300.htm','新北市平溪區':'6502400.htm','新北市雙溪區':'6502500.htm','新北市貢寮區':'6502600.htm','新北市金山區':'6502700.htm','新北市萬里區':'6502800.htm',
'新北市烏來區':'6502900.htm','新北板橋區':'6500100.htm','新北三重區':'6500200.htm','新北中和區':'6500300.htm','新北永和區':'6500400.htm','新北新莊區':'6500500.htm','新北新店區':'6500600.htm','新北樹林區':'6500700.htm',
'新北鶯歌區':'6500800.htm','新北三峽區':'6500900.htm','新北淡水區':'6501000.htm','新北汐止區':'6501100.htm','新北瑞芳區':'6501200.htm','新北土城區':'6501300.htm','新北蘆洲區':'6501400.htm',
'新北五股區':'6501500.htm','新北泰山區':'6501600.htm','新北林口區':'6501700.htm','新北深坑區':'6501800.htm','新北石碇區':'6501900.htm','新北坪林區':'6502000.htm','新北三芝區':'6502100.htm',
'新北石門區':'6502200.htm','新北八里區':'6502300.htm','新北平溪區':'6502400.htm','新北雙溪區':'6502500.htm','新北貢寮區':'6502600.htm','新北金山區':'6502700.htm','新北萬里區':'6502800.htm',
'新北烏來區':'6502900.htm','板橋區':'6500100.htm','三重區':'6500200.htm','中和區':'6500300.htm','永和區':'6500400.htm','新莊區':'6500500.htm','新店區':'6500600.htm','樹林區':'6500700.htm',
'鶯歌區':'6500800.htm','三峽區':'6500900.htm','淡水區':'6501000.htm','汐止區':'6501100.htm','瑞芳區':'6501200.htm','土城區':'6501300.htm','蘆洲區':'6501400.htm',
'五股區':'6501500.htm','泰山區':'6501600.htm','林口區':'6501700.htm','深坑區':'6501800.htm','石碇區':'6501900.htm','坪林區':'6502000.htm','三芝區':'6502100.htm',
'石門區':'6502200.htm','八里區':'6502300.htm','平溪區':'6502400.htm','雙溪區':'6502500.htm','貢寮區':'6502600.htm','金山區':'6502700.htm','萬里區':'6502800.htm',
'烏來區':'6502900.htm','板橋':'6500100.htm','三重':'6500200.htm','中和':'6500300.htm','永和':'6500400.htm','新莊':'6500500.htm','新店':'6500600.htm','樹林':'6500700.htm',
'鶯歌':'6500800.htm','三峽':'6500900.htm','淡水':'6501000.htm','汐止':'6501100.htm','瑞芳':'6501200.htm','土城':'6501300.htm','蘆洲':'6501400.htm',
'五股':'6501500.htm','泰山':'6501600.htm','林口':'6501700.htm','深坑':'6501800.htm','石碇':'6501900.htm','坪林':'6502000.htm','三芝':'6502100.htm',
'石門':'6502200.htm','八里':'6502300.htm','平溪':'6502400.htm','雙溪':'6502500.htm','貢寮':'6502600.htm','金山':'6502700.htm','萬里':'6502800.htm',
'烏來':'6502900.htm','桃園市桃園區':'6800100.htm','桃園市中壢區':'6800200.htm','桃園市大溪區':'6800300.htm','桃園市楊梅區':'6800400.htm','桃園市蘆竹區':'6800500.htm',
'桃園市大園區':'6800600.htm','桃園市龜山區':'6800700.htm','桃園市八德區':'6800800.htm','桃園市龍潭區':'6800900.htm','桃園市平鎮區':'6801000.htm','桃園市新屋區':'6801100.htm',
'桃園市觀音區':'6801200.htm','桃園市復興區':'6801300.htm','桃園區':'6800100.htm','中壢區':'6800200.htm','大溪區':'6800300.htm','楊梅區':'6800400.htm','蘆竹區':'6800500.htm',
'大園區':'6800600.htm','龜山區':'6800700.htm','八德區':'6800800.htm','龍潭區':'6800900.htm','平鎮區':'6801000.htm','新屋區':'6801100.htm',
'觀音區':'6801200.htm','復興區':'6801300.htm','桃園':'6800100.htm','中壢':'6800200.htm','大溪':'6800300.htm','楊梅':'6800400.htm','蘆竹':'6800500.htm',
'大園':'6800600.htm','龜山':'6800700.htm','八德':'6800800.htm','龍潭':'6800900.htm','平鎮':'6801000.htm','新屋':'6801100.htm',
'觀音':'6801200.htm','復興':'6801300.htm','新竹市東區':'1001801.htm','新竹市北區':'1001802.htm','新竹市香山區':'1001803.htm','東區':'1001801.htm','北區':'1001802.htm','新竹香山':'1001803.htm',
'連江縣南竿鄉':'0900701.htm','連江縣北竿鄉':'0900702.htm','連江縣莒光鄉':'0900703.htm','連江縣東引鄉':'0900704.htm','馬祖南竿鄉':'6801200.htm','馬祖北竿鄉':'6801300.htm','馬祖莒光鄉':'1001801.htm','馬祖東引鄉':'1001802.htm',
'南竿':'0900701.htm','北竿':'0900702.htm','莒光':'0900703.htm','東引':'0900704.htm','金門縣金城鎮':'0902001.htm','金門縣金沙鎮':'0902002.htm','金門縣金湖鎮':'0902003.htm','金門縣金寧鄉':'0902004.htm','金門縣烈嶼鄉':'0902005.htm','金門縣烏坵鄉':'0902006.htm',
'金城鎮':'0902001.htm','金沙鎮':'0902002.htm','金湖鎮':'0902003.htm','金寧鄉':'0902004.htm','烈嶼鄉':'0902005.htm','烏坵鄉':'0902006.htm','金城':'0902001.htm','金沙':'0902002.htm','金湖':'0902003.htm','金寧':'0902004.htm','烈嶼':'0902005.htm','烏坵':'0902006.htm',
'澎湖縣馬公市':'1001601.htm','澎湖縣湖西鄉':'1001602.htm','澎湖縣白沙鄉':'1001603.htm','澎湖縣西嶼鄉':'1001604.htm','澎湖縣望安鄉':'1001605.htm','澎湖縣七美鄉':'1001606.htm','馬公市':'1001601.htm','湖西鄉':'1001602.htm','白沙鄉':'1001603.htm','西嶼鄉':'1001604.htm','望安鄉':'1001605.htm','七美鄉':'1001606.htm',
'馬公':'1001601.htm','湖西':'1001602.htm','白沙':'1001603.htm','西嶼':'1001604.htm','望安':'1001605.htm','七美':'1001606.htm',
'宜蘭縣宜蘭市':'1000201.htm','宜蘭縣羅東鎮':'1000202.htm','宜蘭縣蘇澳鎮':'1000203.htm','宜蘭縣頭城鎮':'1000204.htm','宜蘭縣礁溪鄉':'1000205.htm','宜蘭縣壯圍鄉':'1000206.htm','宜蘭縣員山鄉':'1000207.htm','宜蘭縣冬山鄉':'1000208.htm','宜蘭縣五結鄉':'1000209.htm','宜蘭縣三星鄉':'1000210.htm','宜蘭縣大同鄉':'1000211.htm','宜蘭縣南澳鄉':'1000212.htm',
'宜蘭宜蘭':'1000201.htm','宜蘭羅東':'1000202.htm','宜蘭蘇澳':'1000203.htm','宜蘭頭城':'1000204.htm','宜蘭礁溪':'1000205.htm','宜蘭壯圍':'1000206.htm','宜蘭員山':'1000207.htm','宜蘭冬山':'1000208.htm','宜蘭五結':'1000209.htm','宜蘭三星':'1000210.htm','宜蘭大同':'1000211.htm','宜蘭南澳':'1000212.htm',
'宜蘭':'1000201.htm','羅東':'1000202.htm','蘇澳':'1000203.htm','頭城':'1000204.htm','礁溪':'1000205.htm','壯圍':'1000206.htm','員山':'1000207.htm','冬山':'1000208.htm','五結':'1000209.htm','三星':'1000210.htm','大同':'1000211.htm','南澳':'1000212.htm',
'花蓮縣花蓮市':'1001501.htm','花蓮縣鳳林鎮':'1001502.htm','花蓮縣玉里鎮':'1001503.htm','花蓮縣新城鄉':'1001504.htm','花蓮縣吉安鄉':'1001505.htm','花蓮縣壽豐鄉':'1001506.htm','花蓮縣光復鄉':'1001507.htm','花蓮縣豐濱鄉':'1001508.htm','花蓮縣瑞穗鄉':'1001509.htm','花蓮縣富里鄉':'1001510.htm','花蓮縣秀林鄉':'1001511.htm','花蓮縣萬榮鄉':'1001512.htm','花蓮縣卓溪鄉':'1001513.htm',
'花蓮市':'1001501.htm','鳳林鎮':'1001502.htm','玉里鎮':'1001503.htm','新城鄉':'1001504.htm','吉安鄉':'1001505.htm','壽豐鄉':'1001506.htm','光復鄉':'1001507.htm','豐濱鄉':'1001508.htm','瑞穗鄉':'1001509.htm','富里鄉':'1001510.htm','秀林鄉':'1001511.htm','萬榮鄉':'1001512.htm','卓溪鄉':'1001513.htm',
'花蓮':'1001501.htm','鳳林':'1001502.htm','玉里':'1001503.htm','新城':'1001504.htm','吉安':'1001505.htm','壽豐':'1001506.htm','光復':'1001507.htm','豐濱':'1001508.htm','瑞穗':'1001509.htm','富里':'1001510.htm','秀林':'1001511.htm','萬榮':'1001512.htm','卓溪':'1001513.htm',
'台東縣臺東市':'1001401.htm','台東縣成功鎮':'1001402.htm','台東縣關山鎮':'1001403.htm','台東縣卑南鄉':'1001404.htm','台東縣鹿野鄉':'1001405.htm','台東縣池上鄉':'1001406.htm','台東縣東河鄉':'1001407.htm','台東縣長濱鄉':'1001408.htm','台東縣太麻里鄉':'1001409.htm','台東縣大武鄉':'1001410.htm','台東縣綠島鄉':'1001411.htm','台東縣海端鄉':'1001412.htm','台東縣延平鄉':'1001413.htm','台東縣金峰鄉':'1001414.htm','台東縣達仁鄉':'1001415.htm','台東縣蘭嶼鄉':'1001416.htm',
'臺東縣臺東市':'1001401.htm','臺東縣成功鎮':'1001402.htm','臺東縣關山鎮':'1001403.htm','臺東縣卑南鄉':'1001404.htm','臺東縣鹿野鄉':'1001405.htm','臺東縣池上鄉':'1001406.htm','臺東縣東河鄉':'1001407.htm','臺東縣長濱鄉':'1001408.htm','臺東縣太麻里鄉':'1001409.htm','臺東縣大武鄉':'1001410.htm','臺東縣綠島鄉':'1001411.htm','臺東縣海端鄉':'1001412.htm','臺東縣延平鄉':'1001413.htm','臺東縣金峰鄉':'1001414.htm','臺東縣達仁鄉':'1001415.htm','臺東縣蘭嶼鄉':'1001416.htm',
'臺東成功':'1001402.htm','臺東關山':'1001403.htm','臺東卑南':'1001404.htm','臺東鹿野':'1001405.htm','臺東池上':'1001406.htm','臺東東河':'1001407.htm','臺東長濱':'1001408.htm','臺東太麻里':'1001409.htm','太麻里隔壁':'1001409.htm','臺東大武':'1001410.htm','臺東綠島':'1001411.htm','臺東海端':'1001412.htm','臺東延平':'1001413.htm','臺東金峰':'1001414.htm','臺東達仁':'1001415.htm','臺東蘭嶼':'1001416.htm',
'台東成功':'1001402.htm','台東關山':'1001403.htm','台東卑南':'1001404.htm','台東鹿野':'1001405.htm','台東池上':'1001406.htm','台東東河':'1001407.htm','台東長濱':'1001408.htm','台東太麻里':'1001409.htm','太麻里隔壁':'1001409.htm','台東大武':'1001410.htm','台東綠島':'1001411.htm','台東海端':'1001412.htm','台東延平':'1001413.htm','台東金峰':'1001414.htm','台東達仁':'1001415.htm','台東蘭嶼':'1001416.htm',
'臺東':'1001401.htm','台東':'1001401.htm','成功':'1001402.htm','關山':'1001403.htm','卑南':'1001404.htm','鹿野':'1001405.htm','池上':'1001406.htm','東河':'1001407.htm','長濱':'1001408.htm','太麻里':'1001409.htm','大武':'1001410.htm','綠島':'1001411.htm','海端':'1001412.htm','延平':'1001413.htm','金峰':'1001414.htm','達仁':'1001415.htm','蘭嶼':'1001416.htm',
'新竹縣竹北市':'1000401.htm','新竹縣竹東鎮':'1000402.htm','新竹縣新埔鎮':'1000403.htm','新竹縣關西鎮':'1000404.htm','新竹縣湖口鄉':'1000405.htm','新竹縣新豐鄉':'1000406.htm','新竹縣芎林鄉':'1000407.htm','新竹縣橫山鄉':'1000408.htm','新竹縣北埔鄉':'1000409.htm','新竹縣寶山鄉':'1000410.htm','新竹縣峨眉鄉':'1000411.htm','新竹縣尖石鄉':'1000412.htm','新竹縣五峰鄉':'1000413.htm',
'竹北市':'1000401.htm','竹東鎮':'1000402.htm','新埔鎮':'1000403.htm','關西鎮':'1000404.htm','湖口鄉':'1000405.htm','新豐鄉':'1000406.htm','芎林鄉':'1000407.htm','橫山鄉':'1000408.htm','北埔鄉':'1000409.htm','寶山鄉':'1000410.htm','峨眉鄉':'1000411.htm','尖石鄉':'1000412.htm','五峰鄉':'1000413.htm','竹北':'1001401.htm','竹東':'1000402.htm','新埔':'1000403.htm','關西':'1000404.htm','湖口':'1000405.htm','新豐':'1000406.htm','芎林':'1000407.htm','橫山':'1000408.htm','北埔':'1000409.htm','寶山':'1000410.htm','峨眉':'1000411.htm','尖石':'1000412.htm','五峰':'1000413.htm',
'苗栗縣苗栗市':'1000501.htm','苗栗縣苑裡鎮':'1000502.htm','苗栗縣通霄鎮':'1000503.htm','苗栗縣竹南鎮':'1000504.htm','苗栗縣頭份市':'1000505.htm','苗栗縣後龍鎮':'1000506.htm','苗栗縣卓蘭鎮':'1000507.htm','苗栗縣大湖鄉':'1000508.htm','苗栗縣公館鄉':'1000509.htm','苗栗縣銅鑼鄉':'1000510.htm','苗栗縣南庄鄉':'1000511.htm','苗栗縣頭屋鄉':'1000512.htm','苗栗縣三義鄉':'1000513.htm','苗栗縣西湖鄉':'1000515.htm','苗栗縣造橋鄉':'1000515.htm','苗栗縣三灣鄉':'1000516.htm','苗栗縣獅潭鄉':'1000517.htm','苗栗縣泰安鄉':'1000518.htm',
'苗栗市':'1000501.htm','苑裡鎮':'1000502.htm','通霄鎮':'1000503.htm','竹南鎮':'1000504.htm','頭份市':'1000505.htm','後龍鎮':'1000506.htm','卓蘭鎮':'1000507.htm','大湖鄉':'1000508.htm','公館鄉':'1000509.htm','銅鑼鄉':'1000510.htm','南庄鄉':'1000511.htm','頭屋鄉':'1000512.htm','三義鄉':'1000513.htm','西湖鄉':'1000515.htm','造橋鄉':'1000515.htm','三灣鄉':'1000516.htm','獅潭鄉':'1000517.htm','泰安鄉':'1000518.htm',
'苗栗':'1000501.htm','苑裡':'1000502.htm','通霄':'1000503.htm','竹南':'1000504.htm','頭份':'1000505.htm','後龍':'1000506.htm','卓蘭':'1000507.htm','大湖':'1000508.htm','公館':'1000509.htm','銅鑼':'1000510.htm','南庄':'1000511.htm','頭屋':'1000512.htm','三義':'1000513.htm','西湖':'1000515.htm','造橋':'1000515.htm','三灣':'1000516.htm','獅潭':'1000517.htm','泰安':'1000518.htm',
'南投縣南投市':'1000801.htm','南投縣埔里鎮':'1000802.htm','南投縣草屯鎮':'1000803.htm','南投縣竹山鎮':'1000804.htm','南投縣集集鎮':'1000805.htm','南投縣名間鄉':'1000806.htm','南投縣鹿谷鄉':'1000807.htm','南投縣中寮鄉':'1000808.htm','南投縣魚池鄉':'1000809.htm','南投縣國姓鄉':'1000810.htm','南投縣水里鄉':'1000811.htm','南投縣信義鄉':'1000812.htm','南投縣仁愛鄉':'1000813.htm',
'南投':'1000801.htm','埔里鎮':'1000802.htm','草屯鎮':'1000803.htm','竹山鎮':'1000804.htm','集集鎮':'1000805.htm','名間鄉':'1000806.htm','鹿谷鄉':'1000807.htm','中寮鄉':'1000808.htm','魚池鄉':'1000809.htm','國姓鄉':'1000810.htm','水里鄉':'1000811.htm','信義鄉':'1000812.htm','仁愛鄉':'1000813.htm','嘉義市東區':'1002001.htm','嘉義市西區':'1002002.htm','嘉義東區':'1002001.htm','嘉義西區':'1002002.htm',
'埔里':'1000802.htm','草屯':'1000803.htm','竹山':'1000804.htm','集集':'1000805.htm','名間':'1000806.htm','鹿谷':'1000807.htm','中寮':'1000808.htm','魚池':'1000809.htm','國姓':'1000810.htm','水里':'1000811.htm','信義':'1000812.htm','仁愛':'1000813.htm',
'台中市東區':'6600200.htm','台中市南區':'6600300.htm', '台中市西區':'6600400.htm','台中市北區':'6600500.htm', '台中市西屯區':'6600600.htm','台中市南屯區':'6600700.htm', '台中市北屯區':'6600800.htm','台中市豐原區':'6600900.htm', '台中市東勢區':'6601000.htm','台中市大甲區':'6601100.htm', '台中市清水區':'6601200.htm','台中市沙鹿區':'6601300.htm', '台中市梧棲區':'6601400.htm','台中市后里區':'6601500.htm', '台中市神岡區':'6601600.htm','台中市潭子區':'6601700.htm', '台中市大雅區':'6601800.htm',
'台中市新社區':'6601900.htm', '台中市石岡區':'6602000.htm','台中市外埔區':'6602100.htm', '台中市大安區':'6602200.htm','台中市烏日區':'6602300.htm', '台中市大肚區':'6602400.htm','台中市龍井區':'6602500.htm', '台中市霧峰區':'6602600.htm','台中市太平區':'6602700.htm', '台中市大里區':'6602800.htm','台中市和平區':'6602900.htm',
'臺中市東區':'6600200.htm','臺中市南區':'6600300.htm', '臺中市西區':'6600400.htm','臺中市北區':'6600500.htm', '臺中市西屯區':'6600600.htm','臺中市南屯區':'6600700.htm', '臺中市北屯區':'6600800.htm','臺中市豐原區':'6600900.htm', '臺中市東勢區':'6601000.htm','臺中市大甲區':'6601100.htm', '臺中市清水區':'6601200.htm','臺中市沙鹿區':'6601300.htm', '臺中市梧棲區':'6601400.htm','臺中市后里區':'6601500.htm', '臺中市神岡區':'6601600.htm','臺中市潭子區':'6601700.htm', '臺中市大雅區':'6601800.htm',
'臺中市新社區':'6601900.htm', '臺中市石岡區':'6602000.htm','臺中市外埔區':'6602100.htm', '臺中市大安區':'6602200.htm','臺中市烏日區':'6602300.htm', '臺中市大肚區':'6602400.htm','臺中市龍井區':'6602500.htm', '臺中市霧峰區':'6602600.htm','臺中市太平區':'6602700.htm', '臺中市大里區':'6602800.htm','臺中市和平區':'6602900.htm',
'臺中東區':'6600200.htm','臺中南區':'6600300.htm', '臺中西區':'6600400.htm','臺中北區':'6600500.htm', '臺中西屯區':'6600600.htm','臺中南屯區':'6600700.htm', '臺中北屯區':'6600800.htm','臺中豐原區':'6600900.htm', '臺中東勢區':'6601000.htm','臺中大甲區':'6601100.htm', '臺中清水區':'6601200.htm','臺中沙鹿區':'6601300.htm', '臺中梧棲區':'6601400.htm','臺中后里區':'6601500.htm', '臺中神岡區':'6601600.htm','臺中潭子區':'6601700.htm', '臺中大雅區':'6601800.htm',
'臺中新社區':'6601900.htm', '臺中石岡區':'6602000.htm','臺中外埔區':'6602100.htm', '臺中大安區':'6602200.htm','臺中烏日區':'6602300.htm', '臺中大肚區':'6602400.htm','臺中龍井區':'6602500.htm', '臺中霧峰區':'6602600.htm','臺中太平區':'6602700.htm', '臺中大里區':'6602800.htm','臺中和平區':'6602900.htm',
'台中東區':'6600200.htm','台中南區':'6600300.htm', '台中西區':'6600400.htm','台中北區':'6600500.htm', '台中西屯區':'6600600.htm','台中南屯區':'6600700.htm', '台中北屯區':'6600800.htm','台中豐原區':'6600900.htm', '台中東勢區':'6601000.htm','台中大甲區':'6601100.htm', '台中清水區':'6601200.htm','台中沙鹿區':'6601300.htm', '台中梧棲區':'6601400.htm','台中后里區':'6601500.htm', '台中神岡區':'6601600.htm','台中潭子區':'6601700.htm', '台中大雅區':'6601800.htm',
'台中新社區':'6601900.htm', '台中石岡區':'6602000.htm','台中外埔區':'6602100.htm', '台中大安區':'6602200.htm','台中烏日區':'6602300.htm', '台中大肚區':'6602400.htm','台中龍井區':'6602500.htm', '台中霧峰區':'6602600.htm','台中太平區':'6602700.htm', '台中大里區':'6602800.htm','台中和平區':'6602900.htm',
'台中東區':'6600200.htm','南區':'6600300.htm', '西區':'6600400.htm','北區':'6600500.htm', '西屯':'6600600.htm','南屯':'6600700.htm', '北屯':'6600800.htm','豐原':'6600900.htm', '東勢':'6601000.htm','大甲':'6601100.htm', '清水':'6601200.htm','沙鹿':'6601300.htm', '梧棲':'6601400.htm','后里':'6601500.htm', '神岡':'6601600.htm','潭子':'6601700.htm', '大雅':'6601800.htm',
'新社':'6601900.htm', '石岡':'6602000.htm','外埔':'6602100.htm','烏日':'6602300.htm', '大肚':'6602400.htm','龍井':'6602500.htm', '霧峰':'6602600.htm','太平':'6602700.htm', '大里':'6602800.htm','和平':'6602900.htm',
'彰化縣彰化市':'1000701.htm', '彰化縣鹿港鎮':'1000702.htm','彰化縣和美鎮':'1000703.htm', '彰化縣線西鄉':'1000704.htm','彰化縣伸港鄉':'1000705.htm', '彰化縣福興鄉':'1000706.htm','彰化縣秀水鄉':'1000707.htm', '彰化縣花壇鄉':'1000708.htm','彰化縣芬園鄉':'1000709.htm', '彰化縣員林市':'1000710.htm','彰化縣溪湖鎮':'1000711.htm', '彰化縣田中鎮':'1000712.htm','彰化縣大村鄉':'1000713.htm', '彰化縣埔鹽鄉':'1000714.htm','彰化縣埔心鄉':'1000715.htm', '彰化縣永靖鄉':'1000716.htm','彰化縣社頭鄉':'1000717.htm', '彰化縣二水鄉':'1000718.htm',
'彰化縣北斗鎮':'1000719.htm', '彰化縣二林鎮':'1000720.htm','彰化縣田尾鄉':'1000721.htm', '彰化縣埤頭鄉':'1000722.htm','彰化縣芳苑鄉':'1000723.htm', '彰化縣大城鄉':'1000724.htm','彰化縣竹塘鄉':'1000725.htm', '彰化縣溪州鄉':'1000726.htm',
'彰化市':'1000701.htm', '鹿港鎮':'1000702.htm','和美鎮':'1000703.htm', '線西鄉':'1000704.htm','伸港鄉':'1000705.htm', '福興鄉':'1000706.htm','秀水鄉':'1000707.htm', '花壇鄉':'1000708.htm','芬園鄉':'1000709.htm', '員林市':'1000710.htm','溪湖鎮':'1000711.htm', '田中鎮':'1000712.htm','大村鄉':'1000713.htm', '埔鹽鄉':'1000714.htm','埔心鄉':'1000715.htm', '永靖鄉':'1000716.htm','社頭鄉':'1000717.htm', '二水鄉':'1000718.htm',
'北斗鎮':'1000719.htm', '二林鎮':'1000720.htm','田尾鄉':'1000721.htm', '埤頭鄉':'1000722.htm','芳苑鄉':'1000723.htm', '大城鄉':'1000724.htm','竹塘鄉':'1000725.htm', '溪州鄉':'1000726.htm',
'鹿港':'1000702.htm','和美':'1000703.htm', '線西':'1000704.htm','伸港':'1000705.htm', '福興':'1000706.htm','秀水':'1000707.htm', '花壇':'1000708.htm','芬園':'1000709.htm', '員林':'1000710.htm','溪湖':'1000711.htm', '田中':'1000712.htm','大村':'1000713.htm', '埔鹽':'1000714.htm','埔心':'1000715.htm', '永靖':'1000716.htm','社頭':'1000717.htm', '二水':'1000718.htm',
'北斗':'1000719.htm', '二林':'1000720.htm','田尾':'1000721.htm', '埤頭':'1000722.htm','芳苑':'1000723.htm', '大城':'1000724.htm','竹塘鄉':'1000725.htm', '溪州鄉':'1000726.htm',
'雲林縣斗六市':'1000901.htm','雲林縣斗南鎮':'1000902.htm', '雲林縣虎尾鎮':'1000903.htm','雲林縣西螺鎮':'1000904.htm', '雲林縣土庫鎮':'1000905.htm','雲林縣':'1000906.htm', '雲林縣':'1000907.htm','雲林縣':'1000908.htm', '雲林縣':'1000909.htm','雲林縣':'1000910.htm', '雲林縣':'1000911.htm','雲林縣':'1000912.htm', '雲林縣':'1000913.htm','雲林縣':'1000914.htm', '雲林縣':'1000915.htm','雲林縣':'1000916.htm', '雲林縣':'1000917.htm',
'雲林縣':'1000918.htm', '雲林縣':'1000919.htm','雲林縣':'1000920.htm',}
@handler.add(JoinEvent)
def handle_join(event):
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(
text='Joined this ' + event.source.group_id))
@handler.add(MessageEvent, message=TextMessage)
def handle_message(event):
a = event.message.text.encode('utf-8')
if a in locallist:
baseurl = 'http://www.cwb.gov.tw/V7/forecast/taiwan/Keelung_City.htm'
url = 'http://www.cwb.gov.tw/V7/forecast/taiwan/'
resp = requests.get((url + locallist[a]))
resp.encoding ='utf-8'
soup = BeautifulSoup(resp.text, "lxml")
loc = soup.find_all('th')
tmp = soup.find_all('td')
wtr = soup.find_all('img')
a = loc[0].text
b = (loc[5].text).split(' ')[0]
c = tmp[0].text
d = wtr[0].get('alt')
e = tmp[2].text
f = tmp[3].text
content = a + b + u'的溫度: ' + c + u'℃ ' + u'天氣狀況:'+ d + u' 舒適度:' + e + u' 降雨機率:' + f
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = content))
if a in taipeilist:
url = 'http://www.cwb.gov.tw/V7/forecast/town368/7Day/'
loofficeurl = 'http://www.cwb.gov.tw/V7/forecast/town368/towns/'+ taipeilist[a] +'?layer=0&type=Weather&time=7Day'
respt = requests.get((url + taipeilist[a]))
respoff = requests.get((loofficeurl))
respt.encoding ='utf-8'
respoff.encoding ='utf-8'
soup = BeautifulSoup(respt.text, "lxml")
soupoff = BeautifulSoup(respoff.text, "lxml")
s = soup.find_all("td")
x = soupoff.find_all("a")
f = x[77].text.split(u'公')[0]
dat = soup.find_all('td')
a = dat[1].text
b = s[54].text
c = s[39].text
wtr = soup.find_all('img')
d = wtr[0].get('alt')
e = s[144].text
taipei = a + ','+ f + u'的一日氣象: ' + u'溫度:'+ b + u'~' + c + u'℃ ' + u'天氣狀況:'+ d + u' 降雨機率:' + e
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = taipei))
if event.message.text == u"你是誰":
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = u'我是新竹最帥阿麟開發的機器人~~'))
if event.message.text == u"怎麼切換中英文":
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = u'請找到鍵盤上的123旁邊的一個很像地球的標示,長按可以直接選擇~~'))
if event.message.text == u"桃園哪裡好玩":
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = u'賢·沙龍是你唯一的選擇!!'))
if event.message.text == u"彰化哪裡好玩":
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = u'去摸乳.....................巷啊!!'))
if event.message.text == u"三重哪裡好玩":
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = u'只能去找睿睿玩了~~~~~~'))
if event.message.text == u"沒錢怎麼辦":
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = u'政府立案,合法利息,找阿通,有保障!請撥打0913905990,阿通'))
if event.message.text == u"桃園要去哪裡買衣服":
line_bot_api.reply_message(
event.reply_token,
TextSendMessage(text = u'當然是找白富美闆娘囉,優質韓貨盡在KOREA HOME!!按讚我就不知道有沒有送東西惹https://www.facebook.com/KoreaHome.M/'))
if __name__ == '__main__':
app.run() | 106.577273 | 521 | 0.617009 | 3,070 | 23,447 | 4.681433 | 0.40684 | 0.00668 | 0.007654 | 0.010437 | 0.079321 | 0.056847 | 0.055177 | 0.055177 | 0.039452 | 0.039452 | 0 | 0.269818 | 0.1085 | 23,447 | 220 | 522 | 106.577273 | 0.4175 | 0.005033 | 0 | 0.121212 | 0 | 0 | 0.570675 | 0.008146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.045455 | 0 | 0.065657 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e6afab1416d39b3e9aa52da537e3a15fbbf734d | 1,141 | py | Python | model/project.py | FedorovskayaElena/Python2 | 0e69d2b8e25e658ae7a9d6075d750b4d2fdb2956 | [
"Apache-2.0"
] | null | null | null | model/project.py | FedorovskayaElena/Python2 | 0e69d2b8e25e658ae7a9d6075d750b4d2fdb2956 | [
"Apache-2.0"
] | null | null | null | model/project.py | FedorovskayaElena/Python2 | 0e69d2b8e25e658ae7a9d6075d750b4d2fdb2956 | [
"Apache-2.0"
] | null | null | null | import re
from sys import maxsize
# перед сравнением строк удаляем лишние пробелы в середине, в начале и в конце
def clear_extra_spaces(s):
return re.sub(" +", " ", s.strip())
class Project:
def __init__(self, pid=None, name=None, status=None, inherit=None, view_status=None, description=None):
self.pid = pid
self.name = name
self.status = status
self.inherit = inherit
self.view_status = view_status
self.description = description
def __repr__(self):
return "%s: %s" % (self.pid, self.name)
def __eq__(self, other):
return (self.pid is None or other.pid is None or str(self.pid) == str(other.pid)) and \
clear_extra_spaces(self.name) == clear_extra_spaces(other.name)
def pid_or_max(self):
if self.pid:
return int(self.pid)
else:
return maxsize
def clean_project(self):
if self.name is not None:
self.name = clear_extra_spaces(self.name)
if self.description is not None:
self.description = clear_extra_spaces(self.description)
return self
| 29.25641 | 107 | 0.628396 | 156 | 1,141 | 4.416667 | 0.307692 | 0.071118 | 0.11611 | 0.087083 | 0.104499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274321 | 1,141 | 38 | 108 | 30.026316 | 0.832126 | 0.066608 | 0 | 0 | 0 | 0 | 0.008467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.107143 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8e82217d0acb2ffc1ffc70d7601d96fc38c5f78b | 1,158 | py | Python | 0163.py | a143753/AOJ | a26b571dbdfa6fa98f8be44f560f24fa77f11025 | [
"Apache-2.0"
] | 1 | 2018-05-25T19:46:50.000Z | 2018-05-25T19:46:50.000Z | 0163.py | a143753/AOJ | a26b571dbdfa6fa98f8be44f560f24fa77f11025 | [
"Apache-2.0"
] | null | null | null | 0163.py | a143753/AOJ | a26b571dbdfa6fa98f8be44f560f24fa77f11025 | [
"Apache-2.0"
] | null | null | null | import math
t = [ [ None, 300, 500, 600, 700, 1350, 1650 ],
[ None, None, 350, 450, 600, 1150, 1500 ],
[ None, None, None, 250, 400, 1000, 1350 ],
[ None, None, None, None, 250, 850, 1300 ],
[ None, None, None, None, None, 600, 1150 ],
[ None, None, None, None, None, None, 500 ] ]
l = [ [ None, None, None, None, None, None, None ],
[ 6, None, None, None, None, None, None ],
[ 13, 7, None, None, None, None, None ],
[ 18, 12, 5, None, None, None, None ],
[ 23, 17, 10, 5, None, None, None ],
[ 43, 37, 30, 25, 20, None, None ],
[ 58, 52, 45, 40, 35, 15, None ] ]
def inside(h,m):
return h*60+m >= 17*60+30 and h*60+m <= 19*60+30
def discount(n):
return math.ceil(n / 2 / 50) * 50
while True:
d = int(input())
if d == 0:
break
[hd,md] = map(int,input().split())
a = int(input())
[ha,ma] = map(int,input().split())
tt = t[d-1][a-1]
ll = l[a-1][d-1]
if ( ( inside(hd,md) or inside(ha,ma) ) and (ll <= 40) ):
print(discount(tt))
else:
print(tt)
| 26.318182 | 61 | 0.462867 | 176 | 1,158 | 3.045455 | 0.420455 | 0.537313 | 0.559701 | 0.477612 | 0.216418 | 0.141791 | 0 | 0 | 0 | 0 | 0 | 0.181217 | 0.34715 | 1,158 | 43 | 62 | 26.930233 | 0.527778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.032258 | 0.064516 | 0.16129 | 0.064516 | 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 |
8e881b3b5e55b06d613a70b107b00e9a03e13676 | 1,289 | py | Python | trigger.py | shiyuechengineer/adventure-lab | 3cff04e1a2d1d6a01869fd0129c46e34ed27c7f0 | [
"MIT"
] | 11 | 2019-09-06T20:02:54.000Z | 2022-02-21T13:58:56.000Z | trigger.py | shiyuechengineer/adventure-lab | 3cff04e1a2d1d6a01869fd0129c46e34ed27c7f0 | [
"MIT"
] | null | null | null | trigger.py | shiyuechengineer/adventure-lab | 3cff04e1a2d1d6a01869fd0129c46e34ed27c7f0 | [
"MIT"
] | 4 | 2019-10-23T06:37:56.000Z | 2020-11-09T02:54:50.000Z | import meraki
from chatbot import *
SWITCH_SERIAL = 'Q2AB-1234-CDEF'
SWITCH_PORT = 8
# Disable port's PoE to trigger webhook alert
def disable_port(session, headers, payload, api_key):
response = meraki.getswitchportdetail(api_key, SWITCH_SERIAL, SWITCH_PORT)
if not response['enabled']:
post_message(session, headers, payload, 'Port already disabled!')
else:
response = meraki.updateswitchport(api_key, SWITCH_SERIAL, SWITCH_PORT, enabled=False)
if response['enabled']:
post_message(session, headers, payload, 'Something went wrong!')
else:
post_message(session, headers, payload, 'Disabled your switchport!')
# Enable port's PoE to undo above (and trigger another webhook)
def enable_port(session, headers, payload, api_key):
response = meraki.getswitchportdetail(api_key, SWITCH_SERIAL, SWITCH_PORT)
if response['enabled']:
post_message(session, headers, payload, 'Port already enabled!')
else:
response = meraki.updateswitchport(api_key, SWITCH_SERIAL, SWITCH_PORT, enabled=True)
if response['enabled']:
post_message(session, headers, payload, 'Enabled your switchport!')
else:
post_message(session, headers, payload, 'Something went wrong!')
| 39.060606 | 94 | 0.705974 | 153 | 1,289 | 5.79085 | 0.30719 | 0.126411 | 0.189616 | 0.1693 | 0.731377 | 0.731377 | 0.68623 | 0.68623 | 0.498871 | 0.367946 | 0 | 0.005797 | 0.197052 | 1,289 | 32 | 95 | 40.28125 | 0.850242 | 0.081458 | 0 | 0.458333 | 0 | 0 | 0.149026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
8e91211e46c2923a697e361e8b006f948c387caf | 339 | py | Python | exercicios-Python/ex046.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex046.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex046.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | import emoji
from time import sleep
print('\33[31m=' * 20, 'Contagem Regressiva para os Fogos de Artíficio', '=' * 20, '\33[m')
for c in range(10, -1, -1):
print(c)
sleep(1)
print(emoji.emojize('\33[34mOs fogos estão explodindo :fireworks:\33[m', use_aliases= True))
print('\33[35mBUM, BUM, BUM, BUM, BUM, BUM, BUM, POOW!!!\33[m') | 37.666667 | 92 | 0.657817 | 57 | 339 | 3.894737 | 0.596491 | 0.135135 | 0.162162 | 0.162162 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.150442 | 339 | 9 | 93 | 37.666667 | 0.677083 | 0 | 0 | 0 | 0 | 0.125 | 0.479412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
8ea4fa53e80eefe21c9cb16cbc6fd230887ab3d7 | 240 | py | Python | tutorials/W1D5_Regularization/solutions/W1D5_Tutorial2_Solution_519e352b.py | moekay/course-content-dl | 53e083d5d02d8fdc08a1bfb7740fd82116178fd0 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 473 | 2021-04-13T18:27:42.000Z | 2022-03-28T14:14:35.000Z | tutorials/W1D5_Regularization/solutions/W1D5_Tutorial2_Solution_519e352b.py | moekay/course-content-dl | 53e083d5d02d8fdc08a1bfb7740fd82116178fd0 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 399 | 2021-06-07T20:56:59.000Z | 2022-01-26T23:05:06.000Z | tutorials/W1D5_Regularization/solutions/W1D5_Tutorial2_Solution_519e352b.py | moekay/course-content-dl | 53e083d5d02d8fdc08a1bfb7740fd82116178fd0 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 170 | 2021-04-16T11:09:32.000Z | 2022-03-31T12:13:52.000Z |
"""
Regularization works by penalizing model complexity. If the initial model is not
complex enough to correctly describe the data then no amount of regularization
will help as the model needs to get more complex to improve, not less.
"""; | 40 | 80 | 0.791667 | 38 | 240 | 5 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 240 | 6 | 81 | 40 | 0.95 | 0.958333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
8ec5e855f199a2a4c3ac1c384086c95d9be1e566 | 6,951 | py | Python | src/amuse/test/suite/ext_tests/test_brokenimf.py | rknop/amuse | 85d5bdcc29cfc87dc69d91c264101fafd6658aec | [
"Apache-2.0"
] | 131 | 2015-06-04T09:06:57.000Z | 2022-02-01T12:11:29.000Z | src/amuse/test/suite/ext_tests/test_brokenimf.py | rknop/amuse | 85d5bdcc29cfc87dc69d91c264101fafd6658aec | [
"Apache-2.0"
] | 690 | 2015-10-17T12:18:08.000Z | 2022-03-31T16:15:58.000Z | src/amuse/test/suite/ext_tests/test_brokenimf.py | rieder/amuse | 3ac3b6b8f922643657279ddee5c8ab3fc0440d5e | [
"Apache-2.0"
] | 102 | 2015-01-22T10:00:29.000Z | 2022-02-09T13:29:43.000Z | import numpy
from amuse.test import amusetest
from amuse.units import units, nbody_system
from amuse.ic.brokenimf import *
# Instead of random, use evenly distributed numbers, just for testing
default_options = dict(random=False)
class TestMultiplePartIMF(amusetest.TestCase):
def test1(self):
print("Test MultiplePartIMF with default mass_boundaries and alphas, i.e. Salpeter")
instance = MultiplePartIMF(mass_max=100.0 | units.MSun)
self.assertEqual(instance.mass_boundaries, [0.1, 100.0] | units.MSun)
self.assertEqual(instance.alphas, [-2.35])
self.assertEqual(instance.number_of_bins, 1)
self.assertEqual(instance.fraction_per_bin, [1.0])
self.assertEqual(instance.cumulative_fractions, [0.0, 1.0])
self.assertAlmostEqual(instance.mass([0.0]), 0.1 | units.MSun)
self.assertAlmostEqual(instance.mass([1.0]), 100.0 | units.MSun)
self.assertAlmostEqual(instance.mass_mean(), 0.351 | units.MSun, 3)
def test2(self):
print("Test MultiplePartIMF with mass_boundaries and alphas")
instance = MultiplePartIMF(mass_boundaries = [1.0, 10.0, 100.0] | units.MSun,
alphas = [1.3, -3.3], **default_options)
self.assertEqual(instance.mass_boundaries, [1.0, 10.0, 100.0] | units.MSun)
self.assertEqual(instance.alphas, [1.3, -3.3])
self.assertEqual(instance.number_of_bins, 2)
self.assertAlmostEqual(instance.fraction_per_bin, numpy.array([0.5, 0.5]))
self.assertEqual(instance.cumulative_fractions, [0.0, 0.5, 1.0])
self.assertAlmostEqual(instance.mass([0.0]), 1.0 | units.MSun)
self.assertAlmostEqual(instance.mass([0.5]), 10.0 | units.MSun)
self.assertAlmostEqual(instance.mass([1.0]), 100.0 | units.MSun)
self.assertAlmostEqual(instance.mass_mean(), 11.9457684987 | units.MSun)
self.assertAlmostEqual(instance.mass_mean(), instance.next_mass(10000).mean(), 2)
def test3(self):
print("Test new_broken_power_law_mass_distribution with default mass_boundaries and alphas, i.e. Salpeter")
masses = new_broken_power_law_mass_distribution(10000, mass_max=100.0 | units.MSun, **default_options)
self.assertTrue((masses >= 0.1 | units.MSun).all())
self.assertTrue((masses <= 100.0 | units.MSun).all())
self.assertAlmostEqual(min(masses), 0.1 | units.MSun)
self.assertAlmostEqual(max(masses), 100.0 | units.MSun)
mass_mean = MultiplePartIMF(mass_boundaries=[0.1, 100.0]|units.MSun,
alphas=[-2.35]).mass_mean()
self.assertAlmostEqual(mass_mean, 0.35136877959 | units.MSun)
self.assertAlmostRelativeEqual(masses.mean(), 0.351 | units.MSun, 1)
def test4(self):
print("Test new_broken_power_law_mass_distribution with mass_boundaries and alphas")
masses = new_broken_power_law_mass_distribution(10000,
mass_boundaries = [1.0, 10.0, 100.0] | units.MSun,
alphas = [1.3, -3.3], **default_options)
self.assertTrue((masses >= 1.0 | units.MSun).all())
self.assertTrue((masses <= 100.0 | units.MSun).all())
self.assertAlmostEqual(min(masses), 1.0 | units.MSun)
self.assertAlmostEqual(max(masses), 100.0 | units.MSun)
mass_mean = MultiplePartIMF(mass_boundaries=[1.0, 10.0, 100.0]|units.MSun,
alphas=[1.3, -3.3]).mass_mean()
self.assertAlmostEqual(mass_mean, 11.9457684987 | units.MSun)
self.assertAlmostRelativeEqual(masses.mean(), 11.9457684987 | units.MSun, 1)
def test5(self):
print("Test new_scalo_mass_distribution")
masses = new_scalo_mass_distribution(10000, **default_options)
self.assertTrue((masses >= 0.1 | units.MSun).all())
self.assertTrue((masses <= 125.0 | units.MSun).all())
self.assertAlmostEqual(min(masses), 0.1 | units.MSun)
self.assertAlmostEqual(max(masses), 125.0 | units.MSun)
mass_mean = MultiplePartIMF(mass_boundaries=[0.10, 0.18, 0.42, 0.62, 1.18, 3.5, 125.0]|units.MSun,
alphas=[1.6, -1.01, -2.75, -2.08, -3.5, -2.63]).mass_mean()
self.assertAlmostEqual(mass_mean, 0.487756751788 | units.MSun)
self.assertAlmostRelativeEqual(masses.mean(), 0.487756751788 | units.MSun, 1)
def test6(self):
print("Test new_miller_scalo_mass_distribution")
masses = new_miller_scalo_mass_distribution(10000, **default_options)
self.assertTrue((masses >= 0.1 | units.MSun).all())
self.assertTrue((masses <= 125.0 | units.MSun).all())
self.assertAlmostEqual(min(masses), 0.1 | units.MSun)
self.assertAlmostEqual(max(masses), 125.0 | units.MSun)
mass_mean = MultiplePartIMF(mass_boundaries=[0.1, 1.0, 2.0, 10.0, 125.0]|units.MSun,
alphas=[-1.25, -2.0, -2.3, -3.3]).mass_mean()
self.assertAlmostEqual(mass_mean, 0.885783055149 | units.MSun)
self.assertAlmostRelativeEqual(masses.mean(), 0.885783055149 | units.MSun, 1)
def test7(self):
print("Test new_kroupa_mass_distribution")
masses = new_kroupa_mass_distribution(10000, **default_options)
self.assertTrue((masses >= 0.01 | units.MSun).all())
roundoff = 1.0 + 1.0e-12
self.assertTrue((masses <= (100.0 * roundoff) | units.MSun).all())
self.assertAlmostEqual(min(masses), 0.01 | units.MSun)
self.assertAlmostEqual(max(masses), 100.0 | units.MSun)
mass_mean = MultiplePartIMF(mass_boundaries=[0.01, 0.08, 0.5, 100.0]|units.MSun,
alphas=[-0.3, -1.3, -2.3]).mass_mean()
self.assertAlmostEqual(mass_mean, 0.376175542639 | units.MSun)
self.assertAlmostRelativeEqual(masses.mean(), 0.376175542639 | units.MSun, 1)
def test8(self):
print("Test with problematic alphas (new_salpeter_mass_distribution would give zero division errors)")
masses = new_broken_power_law_mass_distribution(10000,
mass_boundaries = [1.0, 10.0, 100.0] | units.MSun,
alphas = [-1, -2], **default_options)
self.assertTrue((masses >= 1.0 | units.MSun).all())
roundoff = 1.0 + 1.0e-12
self.assertTrue((masses <= (100.0 * roundoff) | units.MSun).all())
self.assertAlmostEqual(min(masses), 1.0 | units.MSun)
self.assertAlmostEqual(max(masses), 100.0 | units.MSun)
mass_mean = MultiplePartIMF(mass_boundaries=[1.0, 10.0, 100.0] | units.MSun,
alphas=[-1, -2]).mass_mean()
self.assertAlmostEqual(mass_mean, 10.0 | units.MSun)
self.assertAlmostRelativeEqual(masses.mean(), 10.0 | units.MSun, 1)
masses = new_broken_power_law_mass_distribution(101,
mass_boundaries = [1.0, 100.0] | units.MSun,
alphas = [-1], **default_options)
self.assertAlmostEqual(masses.median(), 10.0 | units.MSun)
| 52.659091 | 115 | 0.649978 | 911 | 6,951 | 4.835346 | 0.12404 | 0.118502 | 0.079455 | 0.059024 | 0.824291 | 0.734393 | 0.67605 | 0.5437 | 0.494892 | 0.434733 | 0 | 0.09271 | 0.208603 | 6,951 | 131 | 116 | 53.061069 | 0.708053 | 0.009639 | 0 | 0.317757 | 0 | 0 | 0.072228 | 0.028484 | 0 | 0 | 0 | 0 | 0.514019 | 1 | 0.074766 | false | 0 | 0.037383 | 0 | 0.121495 | 0.074766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8edbab107a884f193ccbf8429e75274bbf6174f2 | 1,355 | py | Python | pytablereader/tsv/core.py | sthagen/thombashi-pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 81 | 2017-03-18T02:57:29.000Z | 2022-03-26T16:54:59.000Z | pytablereader/tsv/core.py | sthagen/pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 4 | 2017-08-09T14:58:48.000Z | 2020-04-17T12:59:29.000Z | pytablereader/tsv/core.py | sthagen/pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 11 | 2017-05-02T16:23:59.000Z | 2021-12-10T15:05:39.000Z | """
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from .._validator import FileValidator, TextValidator
from ..csv.core import CsvTableFileLoader, CsvTableTextLoader
class TsvTableFileLoader(CsvTableFileLoader):
"""
Tab separated values (TSV) format file loader class.
:param str file_path: Path to the loading TSV file.
.. py:attribute:: table_name
Table name string. Defaults to ``%(filename)s``.
"""
@property
def format_name(self):
return "tsv"
def __init__(self, file_path, quoting_flags=None, type_hints=None, type_hint_rules=None):
super().__init__(file_path, quoting_flags, type_hints, type_hint_rules)
self.delimiter = "\t"
self._validator = FileValidator(file_path)
class TsvTableTextLoader(CsvTableTextLoader):
"""
Tab separated values (TSV) format text loader class.
:param str text: TSV text to load.
.. py:attribute:: table_name
Table name string. Defaults to ``%(format_name)s%(format_id)s``.
"""
@property
def format_name(self):
return "tsv"
def __init__(self, text, quoting_flags=None, type_hints=None, type_hint_rules=None):
super().__init__(text, quoting_flags, type_hints, type_hint_rules)
self.delimiter = "\t"
self._validator = TextValidator(text)
| 25.566038 | 93 | 0.683395 | 162 | 1,355 | 5.438272 | 0.345679 | 0.036322 | 0.059024 | 0.047673 | 0.531215 | 0.469921 | 0.469921 | 0.469921 | 0.469921 | 0.367764 | 0 | 0 | 0.206642 | 1,355 | 52 | 94 | 26.057692 | 0.819535 | 0.326199 | 0 | 0.444444 | 0 | 0 | 0.011751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8eed0bc88b891fa8bd253628d86f433ab13fdf46 | 126 | py | Python | backlogr/epics/apps.py | frnkn/backlogr_py | fa72d4bf84431d2c120199c7d2a37643e8a8bd98 | [
"Unlicense"
] | null | null | null | backlogr/epics/apps.py | frnkn/backlogr_py | fa72d4bf84431d2c120199c7d2a37643e8a8bd98 | [
"Unlicense"
] | null | null | null | backlogr/epics/apps.py | frnkn/backlogr_py | fa72d4bf84431d2c120199c7d2a37643e8a8bd98 | [
"Unlicense"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class EpicsConfig(AppConfig):
name = 'epics'
| 15.75 | 39 | 0.785714 | 15 | 126 | 6.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 7 | 40 | 18 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
d903728d6ee89902a0ea5aa0cf80d19906730328 | 153 | py | Python | test_ghost_net.py | houhaopeng/Person_reID_baseline_pytorch | 5a82874bb2aaf2993680d5ded7a9e3f69f4e01aa | [
"MIT"
] | null | null | null | test_ghost_net.py | houhaopeng/Person_reID_baseline_pytorch | 5a82874bb2aaf2993680d5ded7a9e3f69f4e01aa | [
"MIT"
] | null | null | null | test_ghost_net.py | houhaopeng/Person_reID_baseline_pytorch | 5a82874bb2aaf2993680d5ded7a9e3f69f4e01aa | [
"MIT"
] | null | null | null | import torch
from ghost_net import ghost_net
model = ghost_net(width_mult=1.0)
input = torch.randn(32,3,224,224)
y = model(input)
print(y)
print(model) | 17 | 33 | 0.75817 | 29 | 153 | 3.862069 | 0.586207 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 0.117647 | 153 | 9 | 34 | 17 | 0.748148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
d90d149fd9c7989c3b0ba0b2d4068c28944032e6 | 707 | py | Python | pipelines/fixtures.py | MrHenryD/data-integration | 3cadfab05e731932c7499e8af0ff11f25ddd7f3e | [
"MIT"
] | null | null | null | pipelines/fixtures.py | MrHenryD/data-integration | 3cadfab05e731932c7499e8af0ff11f25ddd7f3e | [
"MIT"
] | null | null | null | pipelines/fixtures.py | MrHenryD/data-integration | 3cadfab05e731932c7499e8af0ff11f25ddd7f3e | [
"MIT"
] | null | null | null | import random
from datetime import datetime
import pandas as pd
def sales(n: int = 100, start: int = 100) -> pd.DataFrame:
""" Generate Sales """
USERS = 12
PRODUCTS = 4
SUPPLIERS = 3
CAMPAIGNS = 3
records = []
for index in range(start, start + n):
sale_record = {
"id": random.randint(index),
"user_id": random.randint(1, USERS),
"product_id": random.randint(1, PRODUCTS),
"supplier_id": random.randint(1, SUPPLIERS),
"campaign_id": random.randint(1, CAMPAIGNS),
"sale_price": round(random.random() * 1000, 2),
"sales_ts": datetime.now()
}
return pd.DataFrame(records) | 26.185185 | 59 | 0.572843 | 83 | 707 | 4.795181 | 0.518072 | 0.100503 | 0.188442 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.298444 | 707 | 27 | 60 | 26.185185 | 0.762097 | 0.019802 | 0 | 0 | 1 | 0 | 0.086006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 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 |
d91e3c1a374ad7e6d5e2b549c7c22f7fee44e699 | 368 | py | Python | cpcforge/cpcforge/apps/frontend/urls.py | ptjung/cpcforge | f9bc3742207a1191cfcf6c122d95790bcbb56f5d | [
"MIT"
] | null | null | null | cpcforge/cpcforge/apps/frontend/urls.py | ptjung/cpcforge | f9bc3742207a1191cfcf6c122d95790bcbb56f5d | [
"MIT"
] | null | null | null | cpcforge/cpcforge/apps/frontend/urls.py | ptjung/cpcforge | f9bc3742207a1191cfcf6c122d95790bcbb56f5d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import index
urlpatterns = [
path('', index),
path('list', index),
path('create', index),
path('login', index),
path('signup', index),
path('platform/<str:handle>', index),
path('platform/<str:handle>/create', index),
path('platform/<str:handle>/problem/<str:probHandle>', index),
] | 28.307692 | 67 | 0.611413 | 43 | 368 | 5.232558 | 0.395349 | 0.28 | 0.226667 | 0.266667 | 0.346667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 368 | 13 | 68 | 28.307692 | 0.760135 | 0 | 0 | 0 | 0 | 0 | 0.32493 | 0.266106 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
d95ca75d4860b5938536bdf09e6999fb4d265df2 | 123 | py | Python | python/testData/highlighting/malformedStringEscaped.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/highlighting/malformedStringEscaped.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/highlighting/malformedStringEscaped.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | # missing last quote, escaped
a = 1 # make below not a doc comment
<error descr="Missing closing quote [']">'abc\'</error>
| 30.75 | 55 | 0.691057 | 19 | 123 | 4.473684 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.162602 | 123 | 3 | 56 | 41 | 0.815534 | 0.455285 | 0 | 0 | 0 | 0 | 0.453125 | 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 |
d9642bcd88fa882447ac89724d35e1050d826514 | 747 | py | Python | util/common.py | sunil16/token_pool | 57652b22072e8d03675e84226c93d0b8e9275890 | [
"MIT"
] | null | null | null | util/common.py | sunil16/token_pool | 57652b22072e8d03675e84226c93d0b8e9275890 | [
"MIT"
] | null | null | null | util/common.py | sunil16/token_pool | 57652b22072e8d03675e84226c93d0b8e9275890 | [
"MIT"
] | null | null | null | import json
from datetime import datetime
FORMAT = '%Y-%m-%d %H:%M:%S.%f'
def to_string(dict_obj = None): # converting dict to json string
return json.dumps(dict_obj)
def to_dict(dict_str = None): # converting json string to dict
return json.loads(dict_str)
def to_dict_colletion(collection = None): # converting collection of json string to dict
return map(lambda token: json.loads(token), collection)
def get_today_datetime():
return datetime.now()
def to_date(date_str = None):
return datetime.strptime(date_str, FORMAT)
def diff_with_today_times_secounds(p_date):
if type(p_date) == str or type(p_date) == unicode:
p_date = to_date(str(p_date))
return (get_today_datetime() - p_date).total_seconds()
| 29.88 | 88 | 0.726908 | 119 | 747 | 4.336134 | 0.369748 | 0.05814 | 0.034884 | 0.062016 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16332 | 747 | 24 | 89 | 31.125 | 0.8256 | 0.141901 | 0 | 0 | 0 | 0 | 0.031397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.117647 | 0.294118 | 0.823529 | 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 |
d970c2cdacecc79845daa415f11fef05b2b86d0a | 132 | py | Python | scrapera/image/tests/giphy_test.py | buckleyc/Scrapera | 1da0e82a2508fd04885b86c5c83df1e569cc27bd | [
"MIT"
] | null | null | null | scrapera/image/tests/giphy_test.py | buckleyc/Scrapera | 1da0e82a2508fd04885b86c5c83df1e569cc27bd | [
"MIT"
] | null | null | null | scrapera/image/tests/giphy_test.py | buckleyc/Scrapera | 1da0e82a2508fd04885b86c5c83df1e569cc27bd | [
"MIT"
] | null | null | null | from scrapera.image.giphy import GiphyScraper
scraper = GiphyScraper(r'path/to/chromedriver.exe')
scraper.scrape("hello there", 1)
| 26.4 | 51 | 0.795455 | 18 | 132 | 5.833333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.083333 | 132 | 4 | 52 | 33 | 0.859504 | 0 | 0 | 0 | 0 | 0 | 0.265152 | 0.181818 | 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 |
d9882db05097f18a7cf64fa2d62ce8b3d38ade3f | 177 | py | Python | histogram/generate_and_plot.py | aurusov/random_distributions | bd2d192da665452e0c10732051c5be814e6d1c00 | [
"MIT"
] | null | null | null | histogram/generate_and_plot.py | aurusov/random_distributions | bd2d192da665452e0c10732051c5be814e6d1c00 | [
"MIT"
] | null | null | null | histogram/generate_and_plot.py | aurusov/random_distributions | bd2d192da665452e0c10732051c5be814e6d1c00 | [
"MIT"
] | null | null | null | from numpy import random
from matplotlib import pyplot
random.seed(12345)
sequence = random.normal(size=1000000, loc=30, scale=5)
pyplot.hist(sequence, bins=20)
pyplot.show()
| 19.666667 | 55 | 0.779661 | 27 | 177 | 5.111111 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107595 | 0.107345 | 177 | 8 | 56 | 22.125 | 0.765823 | 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 |
794513a741e3a4d621c7107de5fc65808370b943 | 154 | py | Python | test/unit/_2020/test_day4.py | Justintime50/adventofcode-2020 | c0d68e7b43c9cbc71dc5c19891c63489087124a6 | [
"MIT"
] | 2 | 2020-12-05T13:25:36.000Z | 2020-12-06T21:59:05.000Z | test/unit/_2020/test_day4.py | Justintime50/adventofcode-2020 | c0d68e7b43c9cbc71dc5c19891c63489087124a6 | [
"MIT"
] | 1 | 2021-12-06T08:06:37.000Z | 2021-12-28T21:45:23.000Z | test/unit/_2020/test_day4.py | Justintime50/adventofcode-2020 | c0d68e7b43c9cbc71dc5c19891c63489087124a6 | [
"MIT"
] | 1 | 2020-12-08T22:45:44.000Z | 2020-12-08T22:45:44.000Z | from adventofcode._2020.day4.challenge import main
def test_input():
answer1, answer2 = main()
assert answer1 == 208
assert answer2 == 167
| 17.111111 | 50 | 0.694805 | 19 | 154 | 5.526316 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 0.214286 | 154 | 8 | 51 | 19.25 | 0.743802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | true | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7990aca46c15d463bfc45234ae14cec8c52c2f1a | 192 | py | Python | mmhoidet/core/hoi/samplers/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | 2 | 2021-09-06T13:09:42.000Z | 2021-09-15T09:18:00.000Z | mmhoidet/core/hoi/samplers/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | null | null | null | mmhoidet/core/hoi/samplers/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | null | null | null | from .base_sampler import BaseSampler
from .sampling_result import SamplingResult
from .pseudo_sampler import PseudoSampler
__all__ = [
'BaseSampler', 'SamplingResult', 'PseudoSampler'
]
| 24 | 52 | 0.802083 | 19 | 192 | 7.736842 | 0.578947 | 0.176871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 192 | 7 | 53 | 27.428571 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.197917 | 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 |
79a8c94266420145b333c0c41fb3a9b71a448a9a | 156 | py | Python | login.py | TomatoCastle/cards | b1679a5c13796d401879a5c7fe57684dc2fd3cd2 | [
"MIT"
] | null | null | null | login.py | TomatoCastle/cards | b1679a5c13796d401879a5c7fe57684dc2fd3cd2 | [
"MIT"
] | 3 | 2017-12-26T11:26:17.000Z | 2018-01-28T14:30:26.000Z | login.py | TomatoCastle/cards_web | b1679a5c13796d401879a5c7fe57684dc2fd3cd2 | [
"MIT"
] | null | null | null | from jinja2 import Environment, FileSystemLoader
a_env = Environment(loader=FileSystemLoader('./', encoding='utf8'))
tpl = a_env.get_template('login.html') | 39 | 67 | 0.782051 | 19 | 156 | 6.263158 | 0.789474 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.076923 | 156 | 4 | 68 | 39 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.101911 | 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 |
79cc2d3de61d46fa3bfe166c226d73ed99492d18 | 159 | py | Python | imgur_downloader/__init__.py | ib1984/imgur_downloader | aa6b76d14cd3b499f8af5fc7cdeb02286cbe2134 | [
"MIT"
] | 38 | 2016-09-23T00:26:13.000Z | 2022-02-03T04:03:18.000Z | imgur_downloader/__init__.py | ib1984/imgur_downloader | aa6b76d14cd3b499f8af5fc7cdeb02286cbe2134 | [
"MIT"
] | 22 | 2016-11-23T05:09:17.000Z | 2022-01-14T10:56:14.000Z | imgur_downloader/__init__.py | ib1984/imgur_downloader | aa6b76d14cd3b499f8af5fc7cdeb02286cbe2134 | [
"MIT"
] | 9 | 2017-06-13T20:39:15.000Z | 2022-02-19T15:22:28.000Z | from .imgurdownloader import ImgurDownloader # NOQA
# defining __version__ variable is pointless
__author__ = 'Alex Gisby <alex@solution10.com>'
__all__ = []
| 31.8 | 52 | 0.786164 | 17 | 159 | 6.647059 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.132075 | 159 | 4 | 53 | 39.75 | 0.804348 | 0.295597 | 0 | 0 | 0 | 0 | 0.293578 | 0.192661 | 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 |
8dacb91a5aea909b84e2142da51e6d77fdcf1938 | 177 | py | Python | GraphModels/Exceptions/ArestasIncompatibilityException.py | ErikDCAlmeida/LFA_Implemetation | 72e86b798b2e0124341d7d9076ee8376c0f93239 | [
"MIT"
] | null | null | null | GraphModels/Exceptions/ArestasIncompatibilityException.py | ErikDCAlmeida/LFA_Implemetation | 72e86b798b2e0124341d7d9076ee8376c0f93239 | [
"MIT"
] | null | null | null | GraphModels/Exceptions/ArestasIncompatibilityException.py | ErikDCAlmeida/LFA_Implemetation | 72e86b798b2e0124341d7d9076ee8376c0f93239 | [
"MIT"
] | null | null | null | #Classe usada para erros gerais relacionados as arestas
class ArestasIncompatibilityException(Exception):
def __init__(self,message :str):
super().__init__(message) | 35.4 | 55 | 0.774011 | 19 | 177 | 6.789474 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146893 | 177 | 5 | 56 | 35.4 | 0.854305 | 0.305085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8db1027ec34c5987f0919a452d729d34a32696aa | 2,277 | py | Python | pinax/apps/tasks/feeds.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | null | null | null | pinax/apps/tasks/feeds.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | null | null | null | pinax/apps/tasks/feeds.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | null | null | null | from datetime import datetime
from atomformat import Feed
from django.core.urlresolvers import reverse
from django.conf import settings
from django.template.defaultfilters import linebreaks, escape
from django.contrib.sites.models import Site
from pinax.apps.tasks.models import TaskHistory
ITEMS_PER_FEED = getattr(settings, "PINAX_ITEMS_PER_FEED", 20)
class BaseTaskFeed(Feed):
def item_id(self, item):
return "http://%s%s" % (
Site.objects.get_current().domain,
item.task.get_absolute_url(),
)
def item_title(self, item):
return item.summary
def item_updated(self, item):
return item.modified
def item_published(self, item):
return item.created
def item_content(self, item):
output = item.detail
if item.status:
output = "%s\n\nStatus: %s" % (output, item.status)
if item.comment:
output = "%s\n\nComment:\n%s" % (output, item.comment)
return {"type" : "html", }, linebreaks(escape(output))
def item_links(self, item):
return [{"href" : self.item_id(item)}]
def item_authors(self, item):
return [{"name" : item.owner.username}]
def feed_id(self):
return "http://%s/tasks/feeds/all/" % Site.objects.get_current().domain
def feed_title(self):
return "Tasks Changes"
def feed_updated(self):
qs = self.get_qs()
# We return an arbitrary date if there are no results, because there
# must be a feed_updated field as per the Atom specifications, however
# there is no real data to go by, and an arbitrary date can be static.
if qs.count() == 0:
return datetime(year=2008, month=7, day=1)
return qs.latest("modified").modified
def feed_links(self):
complete_url = "http://%s%s" % (
Site.objects.get_current().domain,
reverse("task_list"),
)
return ({"href": complete_url},)
def items(self):
return self.get_qs()[:ITEMS_PER_FEED]
def get_qs(self):
return TaskHistory.objects.filter(object_id__isnull=True).order_by("-modified")
class AllTaskFeed(BaseTaskFeed):
pass | 28.111111 | 87 | 0.619236 | 290 | 2,277 | 4.741379 | 0.396552 | 0.046545 | 0.061091 | 0.045818 | 0.067636 | 0.048 | 0.048 | 0.048 | 0 | 0 | 0 | 0.005405 | 0.268775 | 2,277 | 81 | 88 | 28.111111 | 0.82042 | 0.089592 | 0 | 0.038462 | 0 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.019231 | 0.134615 | 0.192308 | 0.692308 | 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 |
8db59ad767ca866816a196da3a6146244ffa5d3c | 195 | py | Python | 0-notes/job-search/Cracking the Coding Interview/C04TreesGraphs/questions/4.6-questions.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 0-notes/job-search/Cracking the Coding Interview/C04TreesGraphs/questions/4.6-questions.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 0-notes/job-search/Cracking the Coding Interview/C04TreesGraphs/questions/4.6-questions.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | # 4.6 Successor
# Write an algorithm to find the "next" node (i.e. in-order successor) of a given node in a binary
# search tree.
# You may assume that each node has a link to its parent.
| 27.857143 | 98 | 0.697436 | 37 | 195 | 3.675676 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.230769 | 195 | 6 | 99 | 32.5 | 0.893333 | 0.923077 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
8dcf3b5bf2e0c0172d8bac356bcd66452e75f58a | 308 | py | Python | ACME/utility/flipfb.py | mauriziokovacic/ACME | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 3 | 2019-10-23T23:10:55.000Z | 2021-09-01T07:30:14.000Z | ACME/utility/flipfb.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | null | null | null | ACME/utility/flipfb.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 1 | 2020-07-11T11:35:43.000Z | 2020-07-11T11:35:43.000Z | import torch
def flipfb(tensor):
"""
Flips a given tensor along the third dimension (front to back)
Parameters
----------
tensor
a tensor at least three-dimensional
Returns
-------
Tensor
the flipped tensor
"""
return torch.flip(tensor, dims=[2])
| 15.4 | 66 | 0.574675 | 35 | 308 | 5.057143 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.308442 | 308 | 19 | 67 | 16.210526 | 0.826291 | 0.581169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8ddcb05c29bb18134343b8ee26053ba402840a78 | 7,257 | py | Python | PyNORXTESTCASES.py | SparkDustJoe/PyNORX | bf20949c1ec38257c9f0089f978cda887a7a4d13 | [
"Unlicense"
] | 1 | 2021-11-30T09:05:01.000Z | 2021-11-30T09:05:01.000Z | PyNORXTESTCASES.py | SparkDustJoe/PyNORX | bf20949c1ec38257c9f0089f978cda887a7a4d13 | [
"Unlicense"
] | null | null | null | PyNORXTESTCASES.py | SparkDustJoe/PyNORX | bf20949c1ec38257c9f0089f978cda887a7a4d13 | [
"Unlicense"
] | null | null | null | from collections import namedtuple;
def PyNORXTestCases(word_width):
"""
Return list of namedtuple NorxTestCase 'H P T L R K IV C Tag' for either 32-bit or 64-bit flavor of NORX.
Header, Payload, Trailer, Lanes (Parallelism), Rounds, Key, IV/Nonce, Ciphertext, Tag
"""
NorxTestCase = namedtuple('TestCase', 'H P T L R K IV C Tag');
assert word_width in (32, 64);
K32 = bytearray(16);
K64 = bytearray(32);
N32 = bytearray(16);
N64 = bytearray(32);
X = bytearray(128);
for i in range(0, 128):
if (i < 32): K64[i] = i;
if (i < 16): K32[i] = i;
if (i < 32): N64[i] = i + 0x20;
if (i < 16): N32[i] = i + 0x20;
X[i] = i;
cases = []
if (word_width == 32):
cases.append(NorxTestCase( # 0
H=X[:], P=X[:], T=X[:],
L=1, R=4,
K=K32[:], IV=N32[:],
C=bytearray((0x6C, 0xE9, 0x4C, 0xB5, 0x48, 0xB2, 0x0F, 0xED, 0x7B, 0x68, 0xC6, 0xAC, 0x60, 0xAC, 0x4C, 0xB5,
0xEB, 0xB1, 0xF0, 0x9A, 0xEC, 0x5A, 0x75, 0x0E, 0xCF, 0x50, 0xEC, 0x0E, 0x64, 0x93, 0x8B, 0xF2,
0x40, 0x17, 0xA4, 0xFF, 0x06, 0x84, 0xF8, 0x08, 0xA6, 0x7C, 0x19, 0x6C, 0x31, 0xA0, 0xAF, 0x12,
0x56, 0x9B, 0xE5, 0xF7, 0xC5, 0x6A, 0xD3, 0xBC, 0xAC, 0x88, 0xDA, 0x36, 0x86, 0x57, 0x5F, 0x93,
0x43, 0x96, 0x8D, 0xA2, 0x20, 0x77, 0xEE, 0xCC, 0xE7, 0xD6, 0x63, 0x17, 0x49, 0x08, 0xA3, 0xF7,
0x3C, 0x9E, 0x9A, 0xC1, 0x49, 0xB5, 0xCE, 0x6B, 0xE6, 0x9C, 0x9E, 0x31, 0x7C, 0xD7, 0xE7, 0xE8,
0x0C, 0x85, 0x69, 0x97, 0x74, 0x02, 0x24, 0x41, 0x3A, 0xE0, 0x64, 0xA2, 0x5A, 0x81, 0x08, 0xB8,
0xD3, 0xA6, 0x85, 0x92, 0x74, 0xC7, 0x65, 0x86, 0xE2, 0x9C, 0x27, 0xED, 0x11, 0xFB, 0x71, 0x95)),
Tag=bytearray((0xD5, 0x54, 0xE4, 0xBC, 0x6B, 0x5B, 0xB7, 0x89, 0x54, 0x77, 0x59, 0xEA, 0xCD, 0xFF, 0xCF, 0x47))
));
cases.append(NorxTestCase( # 1
H=X[:], P=X[:], T=X[:],
L=1, R=6,
K=K32[:], IV=N32[:],
C=bytearray((0x20, 0x9B, 0x0B, 0x2A, 0xFE, 0x36, 0x2A, 0x83, 0x3B, 0xB1, 0x8A, 0xCF, 0x03, 0xE1, 0xD0, 0xC2,
0x7C, 0x69, 0x47, 0x52, 0x66, 0x79, 0x47, 0xFC, 0x73, 0x8C, 0x0E, 0x40, 0xE3, 0xD5, 0x97, 0xC2,
0x2D, 0x74, 0xE9, 0x06, 0xE8, 0xC4, 0x73, 0xAD, 0xF0, 0xDB, 0x63, 0x61, 0xD3, 0x97, 0x41, 0xC4,
0x26, 0x0F, 0xB3, 0xD3, 0x9F, 0x84, 0x22, 0xA3, 0xCF, 0xDF, 0x93, 0x0D, 0x2D, 0x17, 0x75, 0xEB,
0x3F, 0x97, 0x0E, 0x52, 0x95, 0x23, 0x07, 0xC9, 0xAA, 0x07, 0x3F, 0xC5, 0xE1, 0x19, 0xBA, 0xDF,
0xB2, 0xFF, 0x00, 0x9E, 0x69, 0x7C, 0x8E, 0x85, 0x61, 0x4F, 0x44, 0x78, 0xC5, 0x7B, 0xD2, 0xB4,
0xAC, 0xC5, 0x57, 0xF3, 0xD2, 0xDC, 0xE7, 0x11, 0xA5, 0x43, 0x0A, 0x48, 0x8C, 0x16, 0x63, 0xA2,
0x07, 0x67, 0x81, 0x48, 0x9A, 0xC7, 0x3A, 0x6B, 0xFB, 0x6A, 0xFE, 0x39, 0x6A, 0xE7, 0x9F, 0x97)),
Tag=bytearray((0xB3, 0xB1, 0x1A, 0x8F, 0x9A, 0x94, 0xF1, 0xB1, 0xAC, 0x18, 0x53, 0xE9, 0x4C, 0x43, 0x26, 0x4A))
));
elif (word_width == 64):
#64-bit with 16-byte keys
cases.append(NorxTestCase( # 0
H=X[:], P=X[:], T=X[:],
L=1, R=4,
K=K64[:], IV=N64[:],
C=bytearray((0xC0, 0x81, 0x6E, 0x50, 0x8A, 0xE4, 0xA0, 0x50, 0x0B, 0x93, 0x38, 0x7B, 0xBB, 0xAB, 0xC2, 0x41,
0xAC, 0x42, 0x38, 0x7E, 0xF5, 0xE8, 0xBF, 0x0E, 0xC3, 0x82, 0x6C, 0xED, 0xE1, 0x66, 0xA1, 0xD5,
0xCA, 0xA3, 0xE8, 0xD6, 0x2C, 0xD6, 0x41, 0xB3, 0xFA, 0xF2, 0xAA, 0x2A, 0xDD, 0xE3, 0xE5, 0xED,
0x0A, 0x13, 0xBD, 0x8B, 0x96, 0xD5, 0xF0, 0xFB, 0x7F, 0xE3, 0x9C, 0xA7, 0x80, 0x95, 0x31, 0x75,
0xE2, 0x45, 0xBC, 0x3E, 0x53, 0x4B, 0x80, 0x0E, 0x96, 0x46, 0x77, 0x1F, 0x13, 0xEA, 0x40, 0x85,
0xCB, 0x3E, 0x26, 0x7F, 0x10, 0x6F, 0x5F, 0x17, 0xA0, 0x64, 0xFF, 0x23, 0x4A, 0x02, 0x7C, 0x64,
0x4B, 0xE7, 0x86, 0x65, 0xDB, 0x1C, 0x46, 0xA4, 0xB0, 0x1A, 0x4F, 0xBF, 0x52, 0x76, 0xDF, 0xBD,
0x30, 0xEB, 0xBF, 0xB8, 0x84, 0x66, 0xF8, 0xDC, 0x89, 0x7A, 0x78, 0x16, 0xD0, 0xD0, 0x70, 0xD8 )),
Tag=bytearray((0xD1, 0xF2, 0xFA, 0x33, 0x05, 0xA3, 0x23, 0x76, 0xE2, 0x3A, 0x61, 0xD1, 0xC9, 0x89, 0x30, 0x3F,
0xBF, 0xBD, 0x93, 0x5A, 0xA5, 0x5B, 0x17, 0xE4, 0xE7, 0x25, 0x47, 0x33, 0xC4, 0x73, 0x40, 0x8E))
));
cases.append(NorxTestCase( # 1
H=X[:], P=X[:], T=X[:],
L=1, R=6,
K=K64[:], IV=N64[:],
C=bytearray((0x50, 0xCE, 0x69, 0x2C, 0x19, 0xCB, 0x91, 0x02, 0xC6, 0x12, 0x96, 0x6F, 0x0F, 0x62, 0x6B, 0x62,
0x96, 0xDE, 0x89, 0x27, 0x1C, 0x98, 0x29, 0x10, 0xAA, 0xC1, 0xC3, 0x55, 0x52, 0x2E, 0x8F, 0xA7,
0x13, 0x03, 0xF8, 0xD5, 0xC9, 0xDE, 0x39, 0x04, 0x84, 0xBA, 0x91, 0xA9, 0x94, 0xCF, 0xF9, 0x1B,
0xF7, 0x15, 0xD6, 0xCB, 0x22, 0xCC, 0x00, 0xF3, 0x64, 0x02, 0x10, 0x03, 0x17, 0x19, 0x61, 0x68,
0x72, 0x39, 0xDD, 0x94, 0x53, 0x02, 0x9B, 0x87, 0x85, 0x9C, 0x10, 0x93, 0x21, 0x13, 0x59, 0x40,
0xBC, 0x1B, 0xC8, 0x1A, 0x55, 0xA9, 0x51, 0xC7, 0x1B, 0x29, 0x42, 0xFF, 0xDE, 0xBF, 0x8D, 0x13,
0xC4, 0xF3, 0x87, 0x2B, 0x78, 0xD4, 0x50, 0x6F, 0x40, 0xDB, 0x65, 0x3C, 0xE3, 0xB8, 0xD2, 0xBE,
0xA7, 0xA2, 0xF9, 0xE9, 0x7F, 0xF4, 0x56, 0xB7, 0xF0, 0xDB, 0x8C, 0x92, 0x27, 0xE2, 0x2F, 0x23)),
Tag=bytearray((0xA0, 0xD1, 0x0D, 0x28, 0x52, 0x91, 0xBE, 0xDB, 0x7B, 0x7C, 0xBD, 0xC4, 0x7E, 0x0F, 0xE2, 0x38,
0x5B, 0xF5, 0x5B, 0xC5, 0xF0, 0x57, 0xBC, 0xAB, 0x2C, 0x57, 0xCC, 0xD0, 0x83, 0xD2, 0x9B, 0x2C))
));
cases.append(NorxTestCase( # 2
H=X[:], P=X[:], T=X[:],
L=4, R=4,
K=K64[:], IV=N64[:],
C=bytearray((0xB6, 0x5A, 0xD4, 0x9D, 0x08, 0x12, 0x87, 0x73, 0x03, 0x76, 0xA0, 0x38, 0xF1, 0x32, 0xB2, 0x0C,
0x33, 0xE5, 0x58, 0x30, 0x20, 0x27, 0xC0, 0xD9, 0x1C, 0x03, 0x0B, 0x9C, 0x7D, 0xDA, 0x19, 0xC7,
0x51, 0x1A, 0x4F, 0x02, 0x5A, 0xFD, 0x40, 0xFD, 0xA2, 0x95, 0xC9, 0x22, 0x29, 0xFA, 0xEA, 0x13,
0xA6, 0x14, 0x05, 0x36, 0x44, 0x0B, 0xEB, 0xFC, 0xD3, 0x62, 0x72, 0x5D, 0x9E, 0xE9, 0x0F, 0x2C,
0x2A, 0xAC, 0x10, 0x6B, 0x5F, 0x49, 0x86, 0x9B, 0x9F, 0xE2, 0x2C, 0xD9, 0xF1, 0x84, 0x84, 0xFC,
0x70, 0xC2, 0x22, 0x8C, 0x1D, 0xA3, 0x07, 0x21, 0x21, 0x97, 0x2C, 0x2B, 0xD9, 0x9A, 0x29, 0x2A,
0x15, 0x51, 0x52, 0xB1, 0x67, 0x72, 0x3F, 0xF7, 0xCD, 0xA5, 0xBB, 0xA3, 0xDA, 0x09, 0xE3, 0x69,
0xF2, 0x7B, 0xFE, 0x53, 0x88, 0x63, 0xFF, 0x56, 0x18, 0x40, 0x01, 0x28, 0x8C, 0xC1, 0xBE, 0xEC)),
Tag=bytearray((0x01, 0x61, 0x3B, 0x7E, 0x49, 0x80, 0x00, 0xA7, 0x67, 0xF5, 0xD5, 0x35, 0x3F, 0x8F, 0xFD, 0x99,
0x78, 0x72, 0x05, 0x7C, 0x1F, 0xDC, 0x50, 0x14, 0xCF, 0x82, 0x27, 0xEB, 0xB8, 0xA7, 0x5C, 0xAC))
));
else:
return None;
return cases;
if (__name__ == "__main__"):
print(len(PyNORXTestCases(32)));
print(len(PyNORXTestCases(64)));
print("PyNORXTestCases.py **NOT A STANDALONE MODULE!**");
| 66.577982 | 123 | 0.549538 | 1,027 | 7,257 | 3.87147 | 0.307692 | 0.002515 | 0.028924 | 0.00503 | 0.066398 | 0.066398 | 0.052817 | 0.051056 | 0.041247 | 0.035211 | 0 | 0.35788 | 0.292683 | 7,257 | 108 | 124 | 67.194444 | 0.416715 | 0.031142 | 0 | 0.244898 | 0 | 0 | 0.011847 | 0 | 0 | 0 | 0.439623 | 0 | 0.010204 | 1 | 0.010204 | false | 0 | 0.010204 | 0 | 0.040816 | 0.030612 | 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 |
5c047edb9eddf3a710dc5a3c9717feb311d1f758 | 714 | py | Python | tests/app_test.py | kevinsubieta/server_auth_module | aff8c1b3d73f079dc228c9052c54c37c5250eea7 | [
"Unlicense"
] | null | null | null | tests/app_test.py | kevinsubieta/server_auth_module | aff8c1b3d73f079dc228c9052c54c37c5250eea7 | [
"Unlicense"
] | null | null | null | tests/app_test.py | kevinsubieta/server_auth_module | aff8c1b3d73f079dc228c9052c54c37c5250eea7 | [
"Unlicense"
] | null | null | null | from unittest import TestCase
from application.validator import validate_password, MIN_PASSWORD_MSG, VALID, MAX_PASSWORD_MSG
class TestValidatePassword(TestCase):
def test_if_password_len_lower_than_min_len_given_return_min_password_msg(self):
min_len = 8
self.assertEqual(validate_password('abc', min_len, 9), MIN_PASSWORD_MSG % min_len)
def test_if_password_len_is_between_min_max_len_return_valid_msg(self):
self.assertEqual(validate_password('bc12345678', 8, 10), VALID)
def test_if_password_len_greater_than_max_len_return_max_password_msg(self):
max_len = 8
self.assertEqual(validate_password('abc1234567890', 8, max_len), MAX_PASSWORD_MSG % max_len)
| 42 | 100 | 0.792717 | 103 | 714 | 4.990291 | 0.320388 | 0.128405 | 0.081712 | 0.099222 | 0.252918 | 0.136187 | 0 | 0 | 0 | 0 | 0 | 0.040584 | 0.137255 | 714 | 16 | 101 | 44.625 | 0.793831 | 0 | 0 | 0 | 0 | 0 | 0.036415 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0.727273 | 0.181818 | 0 | 0.545455 | 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 |
5c11131adc775a326b26ac14bd81a00f3319ceae | 1,266 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class RichTextBoxSelectionTypes(Enum, IComparable, IFormattable, IConvertible):
"""
Specifies the type of selection in a System.Windows.Forms.RichTextBox control.
enum (flags) RichTextBoxSelectionTypes,values: Empty (0),MultiChar (4),MultiObject (8),Object (2),Text (1)
"""
def __eq__(self, *args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
def __format__(self, *args):
""" __format__(formattable: IFormattable,format: str) -> str """
pass
def __ge__(self, *args):
pass
def __gt__(self, *args):
pass
def __init__(self, *args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __le__(self, *args):
pass
def __lt__(self, *args):
pass
def __ne__(self, *args):
pass
def __reduce_ex__(self, *args):
pass
def __str__(self, *args):
pass
Empty = None
MultiChar = None
MultiObject = None
Object = None
Text = None
value__ = None
| 25.836735 | 221 | 0.583728 | 142 | 1,266 | 4.535211 | 0.401408 | 0.124224 | 0.130435 | 0.139752 | 0.200311 | 0.200311 | 0.200311 | 0.175466 | 0.175466 | 0.175466 | 0 | 0.005507 | 0.28278 | 1,266 | 48 | 222 | 26.375 | 0.703744 | 0.407583 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0.37037 | 0 | 0 | 0.62963 | 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 |
5c49312b753e5842cf915564812dcd5d844b41f6 | 140 | py | Python | web_interface/urls.py | MuhammadSalahAli/TolkProject | 38e655be8f1776c216f1e7b3a727b39a1ea06cfb | [
"MIT"
] | 36 | 2021-01-18T11:58:17.000Z | 2021-12-09T21:40:29.000Z | web_interface/urls.py | MuhammadSalahAli/TolkProject | 38e655be8f1776c216f1e7b3a727b39a1ea06cfb | [
"MIT"
] | 2 | 2021-07-02T04:07:58.000Z | 2021-08-22T21:23:33.000Z | web_interface/urls.py | MuhammadSalahAli/TolkProject | 38e655be8f1776c216f1e7b3a727b39a1ea06cfb | [
"MIT"
] | 7 | 2021-08-09T02:21:49.000Z | 2022-02-06T11:04:04.000Z | from django.urls import path
from web_interface import views
urlpatterns = [
path("", views.Interface.as_view(), name="interface"),
]
| 17.5 | 58 | 0.721429 | 18 | 140 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 140 | 7 | 59 | 20 | 0.831933 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 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 |
308c93a6ba883375b34e3052bd2ef8341ba558d9 | 672 | py | Python | tests/step06_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | tests/step06_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | tests/step06_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | from pathlib import Path
from step06 import simulate_life
TEST_INPUT = Path(__file__).parent / 'step06.txt'
REAL_INPUT = Path(__file__).parent.parent / 'src/step06.txt'
def test_step6():
school = simulate_life(TEST_INPUT, 18)
assert len(school) == 26
school = simulate_life(TEST_INPUT, 80)
assert len(school) == 5934
def test_step6_real_data():
school = simulate_life(REAL_INPUT, 80)
assert len(school) == 372300
def test_step6_part2():
school = simulate_life(TEST_INPUT, 256)
assert len(school) == 26984457539
def test_step6_part2_real_data():
school = simulate_life(REAL_INPUT, 256)
assert len(school) == 1675781200288
| 22.4 | 60 | 0.721726 | 93 | 672 | 4.88172 | 0.311828 | 0.15859 | 0.198238 | 0.185022 | 0.486784 | 0.154185 | 0.154185 | 0 | 0 | 0 | 0 | 0.108108 | 0.174107 | 672 | 29 | 61 | 23.172414 | 0.70991 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
30978e0f4974b4543ea2df9de169e48dded4f92e | 110 | py | Python | Day2/Q8.py | nkem1010/python-challenge-solutions | 203cedc691094a83b110fc75764aac51dbbc1a03 | [
"MIT"
] | 1 | 2020-05-24T21:53:59.000Z | 2020-05-24T21:53:59.000Z | Day2/Q8.py | nkem1010/python-challenge-solutions | 203cedc691094a83b110fc75764aac51dbbc1a03 | [
"MIT"
] | null | null | null | Day2/Q8.py | nkem1010/python-challenge-solutions | 203cedc691094a83b110fc75764aac51dbbc1a03 | [
"MIT"
] | null | null | null | color_list = ["Red","Green","White" ,"Black"]
first = color_list[0]
last = color_list[-1]
print(first,last) | 27.5 | 46 | 0.663636 | 17 | 110 | 4.117647 | 0.647059 | 0.385714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.118182 | 110 | 4 | 47 | 27.5 | 0.701031 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
30ac63ee815f6b6257d5ca6c9b8141ac0b46abe0 | 241 | py | Python | mirrorpool.py | whardier/MirrorPool | e1846e019907936d95a85ccf62b7e3abffa7e2f2 | [
"MIT"
] | 2 | 2015-09-24T00:26:36.000Z | 2017-12-03T01:02:18.000Z | mirrorpool.py | whardier/MirrorPool | e1846e019907936d95a85ccf62b7e3abffa7e2f2 | [
"MIT"
] | null | null | null | mirrorpool.py | whardier/MirrorPool | e1846e019907936d95a85ccf62b7e3abffa7e2f2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import settings
import proxies
import collectors
import interfaces
import datastores
if __name__ == '__main__':
import asyncore
import pprint
pprint.pprint(sys.modules)
asyncore.loop()
| 12.684211 | 28 | 0.767635 | 31 | 241 | 5.709677 | 0.612903 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161826 | 241 | 18 | 29 | 13.388889 | 0.876238 | 0.082988 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
30cffb1281a94344cc0553b224d09e2bc0e8aa04 | 1,733 | py | Python | PyJS/stringMethods.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | 5 | 2021-02-22T14:22:17.000Z | 2021-10-31T23:54:45.000Z | PyJS/stringMethods.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | null | null | null | PyJS/stringMethods.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | null | null | null | import forbiddenfruit as ff
@ff.curses(str, "length")
@property
def str_length(self) -> int:
return len(self)
@ff.curses(str, "search")
def str_search(self, other) -> int:
return self.find(other)
@ff.curses(str, "indexOf")
def str_indexOf(self, other, startPos:int=0) -> int:
return self[startPos:].find(other)
@ff.curses(str, "lastIndexOf")
def str_lastIndexOf(self, other, startPos:int=0) -> int:
return self[startPos:].rfind(other)
@ff.curses(str, "slice")
def str_slice(self, start=None, end=None) -> str:
if not start:
return self
if not end:
return self[start]
return self[start:end]
@ff.curses(str, "substring")
def str_substring(self, start=None, end=None) -> str:
if not start:
return self
if not end:
if start < 0: raise ValueError("str.substring() cannot take negative indexes.")
return self[start]
if start < 0 or end < 0: raise ValueError("str.substring() cannot take negative indexes.")
return self[start:end]
@ff.curses(str, "toUpperCase")
def str_toUpperCase(self) -> str:
return self.upper()
@ff.curses(str, "toLowerCase")
def str_toLowerCase(self) -> str:
return self.lower()
@ff.curses(str, "concat")
def str_concat(self, *other) -> str:
return self + ''.join(other)
@ff.curses(str, "trim")
def str_trim(self) -> str:
return self.strip()
@ff.curses(str, "padStart")
def str_padStart(self, maxLength:int, fillString) -> str:
return str(fillString)*(maxLength-1) + self
@ff.curses(str, "padEnd")
def str_padEnd(self, maxLength:int, fillString) -> str:
return self + str(fillString)*(maxLength-1)
@ff.curses(str, "charCodeAt")
def str_charCodeAt(self, index=0) -> int:
return ord(self[index]) | 27.078125 | 94 | 0.672822 | 249 | 1,733 | 4.630522 | 0.204819 | 0.121422 | 0.124024 | 0.055507 | 0.411969 | 0.377277 | 0.316565 | 0.279271 | 0.279271 | 0.206418 | 0 | 0.005575 | 0.171956 | 1,733 | 64 | 95 | 27.078125 | 0.797909 | 0 | 0 | 0.196078 | 0 | 0 | 0.109573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254902 | false | 0 | 0.019608 | 0.215686 | 0.607843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30fdc5b2796acf09385620ceb63d17091f5315e3 | 1,793 | py | Python | fabfile/__init__.py | sunilbasker-jnpr/contrail-fabric-utils | c5855bbc4b0cf64ff98e844a8e2c1c1705bbdf83 | [
"Apache-2.0"
] | null | null | null | fabfile/__init__.py | sunilbasker-jnpr/contrail-fabric-utils | c5855bbc4b0cf64ff98e844a8e2c1c1705bbdf83 | [
"Apache-2.0"
] | null | null | null | fabfile/__init__.py | sunilbasker-jnpr/contrail-fabric-utils | c5855bbc4b0cf64ff98e844a8e2c1c1705bbdf83 | [
"Apache-2.0"
] | 1 | 2020-08-25T12:48:58.000Z | 2020-08-25T12:48:58.000Z | """
This package implements a set of `fabric <http://www.fabfile.org>` tasks to
provision a Juniper VNS openstack cluster. These tasks can be used after the
cluster is imaged to launch role specific services. To perform this a testbed
specification file has be provided (for eg. `like this <testbeds/testbed_multibox_example.py>`
and `this <testbeds/testbed_singlebox_example.py>`).
This package contains tasks and utils pacakges.
tasks : Package containing various fab tasks in specific modules.
utils : Package containing common api's used by the tasks package..
"""
# Config module at fabfile/config.py to import testbed file and hold global
# vars that are shared across various modules in tasks and utisl packages.
from config import *
# Fabric tasks
from tasks.ntp import *
from tasks.tester import *
from tasks.install import *
from tasks.uninstall import *
from tasks.storage.install import *
from tasks.syslogs import *
from tasks.helpers import *
from tasks.provision import *
from tasks.storage.provision import *
from tasks.upgrade import *
from tasks.services import *
from tasks.misc import *
from tasks.storage.misc import *
from tasks.rabbitmq import *
from tasks.ha import *
from tasks.zookeeper import *
from tasks.backup_restore import *
from tasks.kernel import *
from tasks.issu_process import *
from tasks.ssl import *
# For contrail use
try:
from contraillabs.setup import *
from contraillabs.rdo import *
from contraillabs.utils import *
from contraillabs.vtb.vm import *
except ImportError:
pass
@task
def help(task_name):
try:
print("\n\nTask is at module: %s" % globals()[task_name].__module__)
print("\n\nUse: %s" % globals()[task_name].__doc__)
except KeyError:
print("\n\nUnknown task: %s" % task_name)
| 32.6 | 94 | 0.753486 | 260 | 1,793 | 5.126923 | 0.430769 | 0.165041 | 0.213803 | 0.049512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165644 | 1,793 | 54 | 95 | 33.203704 | 0.891043 | 0.422197 | 0 | 0.057143 | 0 | 0 | 0.053898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.028571 | 0.742857 | 0 | 0.771429 | 0.085714 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
eb58cf71049fa6869fca55428f0fc83bd044c37c | 169 | py | Python | bubble_sort/smalltest.py | BigShuang/Sort-Animation | 096ecedd25cf4035c4c35d1dc86a393276a48d76 | [
"MIT"
] | null | null | null | bubble_sort/smalltest.py | BigShuang/Sort-Animation | 096ecedd25cf4035c4c35d1dc86a393276a48d76 | [
"MIT"
] | null | null | null | bubble_sort/smalltest.py | BigShuang/Sort-Animation | 096ecedd25cf4035c4c35d1dc86a393276a48d76 | [
"MIT"
] | null | null | null | #usr/bin/env python
#-*- coding:utf-8- -*-
import pygame
pygame.init() # pygame初始化,必须有,且必须在开头
font = pygame.font.SysFont("Arial", 20)
# print(pygame.font.get_fonts()) | 21.125 | 39 | 0.692308 | 25 | 169 | 4.64 | 0.8 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.106509 | 169 | 8 | 40 | 21.125 | 0.748344 | 0.538462 | 0 | 0 | 0 | 0 | 0.066667 | 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 |
eb6783cb5fa09f3bac8d005c3192b67ab1153e44 | 1,233 | py | Python | api_emulator/account_service.py | Cray-HPE/Redfish-Interface-Emulator | 8209961a20ef9f9e7c7f64df3759197ac00a1ab9 | [
"FSFAP"
] | null | null | null | api_emulator/account_service.py | Cray-HPE/Redfish-Interface-Emulator | 8209961a20ef9f9e7c7f64df3759197ac00a1ab9 | [
"FSFAP"
] | 1 | 2022-03-08T22:20:28.000Z | 2022-03-08T22:20:28.000Z | api_emulator/account_service.py | Cray-HPE/Redfish-Interface-Emulator | 8209961a20ef9f9e7c7f64df3759197ac00a1ab9 | [
"FSFAP"
] | null | null | null | # Copyright Notice:
# Copyright 2016-2019 DMTF. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/blob/master/LICENSE.md
# Redfish Emulator Role Service.
# Temporary version, to be removed when AccountService goes dynamic
class AccountService(object):
def __init__(self):
self._accounts = { 'Administrator': 'Password',
'User': 'Password' }
self._roles = { 'Administrator': 'Admin',
'User': 'ReadOnlyUser' }
def checkPriviledgeLevel(self, user, level):
if self._roles[user] == level:
return True
else:
return False
def getPassword(self, username):
if username in self._accounts:
return self._accounts[username]
else:
return None
def checkPrivilege(self, privilege, username, errorResponse):
def wrap(func):
def inner(*args, **kwargs):
if self.checkPriviledgeLevel(username(), privilege):
return func(*args, **kwargs)
else:
return errorResponse()
return inner
return wrap
| 33.324324 | 130 | 0.591241 | 121 | 1,233 | 5.950413 | 0.561983 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.313869 | 1,233 | 36 | 131 | 34.25 | 0.840426 | 0.236821 | 0 | 0.12 | 0 | 0 | 0.071658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.12 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
eb81a495b6945489e29d6ce20939a23b28c1e302 | 1,675 | py | Python | notes/2018-02-23-spatio-angular-kernel/calculations/compare-ft/util.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | notes/2018-02-23-spatio-angular-kernel/calculations/compare-ft/util.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | notes/2018-02-23-spatio-angular-kernel/calculations/compare-ft/util.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | import numpy as np
from PIL import Image
from scipy import special
# PSF functions
def scalar_a(x):
if x == 0:
return 1.0
else:
return (special.jn(1,2*np.pi*x)/(np.pi*x))**2
a = np.vectorize(scalar_a)
def s_b(x, NA=0.8, n=1.33):
if x == 0:
return 0
else:
return (NA/n)**2*(special.jn(2,2*np.pi*x)/(np.pi*x))**2
b = np.vectorize(s_b)
def h00(x, NA=0.8, n=1.33):
return a(x) + 2*b(x, NA, n)
def h20(x, NA=0.8, n=1.33):
return (-a(x) + 4*b(x, NA, n))/np.sqrt(5)
# OTF functions
def myacos(x):
return np.nan_to_num(np.arccos(np.abs(x/2)))
def mysqrt(x):
return np.nan_to_num((np.abs(x/2))*np.sqrt(1 - (np.abs(x/2))**2))
def A(x):
return (2/np.pi)*(myacos(x) - mysqrt(x))
def B(x, NA=0.8, n=1.33):
N = (1/(np.pi))*((NA/n)**2)
poly = (3.0 - 2.0*(np.abs(x/2)**2))
return N*(myacos(x) - poly*mysqrt(x))
def H00(x, NA=0.8, n=1.33):
return (A(x) + 2*B(x, NA=NA, n=n))/(1 + (NA/n)**2)
def H20(x, NA=0.8, n=1.33):
return (-A(x) + 4*B(x, NA=NA, n=n))/(np.sqrt(5)*(1 + (NA/n)**2))
# File I/O
def save_tiff(image, filename):
im = Image.fromarray(image) # float32
im.save(filename, "TIFF")
def load_tiff(filename):
image = Image.open(filename, mode='r')
return np.array(image, dtype='float32')
def cs(arr):
return arr[:, np.int(arr.shape[0]/2)]
# Fourier transform
def myfft(image, pad=1000):
N = image.shape[0]
padded_image = np.pad(image, pad_width=pad, mode='constant')
F = np.fft.fftshift(
np.fft.fftn(
np.fft.ifftshift(padded_image)
))
xF = np.fft.fftshift(np.fft.fftfreq(2*pad + N, 4/N))
return xF, np.abs(F)
| 24.275362 | 69 | 0.562388 | 338 | 1,675 | 2.748521 | 0.233728 | 0.032293 | 0.025834 | 0.032293 | 0.273412 | 0.217438 | 0.208827 | 0.167923 | 0.12056 | 0.12056 | 0 | 0.065959 | 0.212537 | 1,675 | 68 | 70 | 24.632353 | 0.638362 | 0.037015 | 0 | 0.08 | 0 | 0 | 0.012446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.06 | 0.16 | 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 |
eba08e04a672866012eaf0468f2cf63bbae43929 | 2,305 | py | Python | fb_post_commenter_script.py | lwpamihiranga/python_fb_post_commentor | ead0a3c4f5bee30b59c7cbf1f3df7dc38ab63ac2 | [
"MIT"
] | 1 | 2020-05-07T09:15:33.000Z | 2020-05-07T09:15:33.000Z | fb_post_commenter_script.py | lwpamihiranga/python-fb-post-commentor | ead0a3c4f5bee30b59c7cbf1f3df7dc38ab63ac2 | [
"MIT"
] | null | null | null | fb_post_commenter_script.py | lwpamihiranga/python-fb-post-commentor | ead0a3c4f5bee30b59c7cbf1f3df7dc38ab63ac2 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from time import sleep
import time
username = "<put your fb account username here>"
password = "<put your account password here>"
# example
# username = "test@test.com"
# password = "12345"
options = Options()
options.add_argument('--disable-notifications')
options.add_argument('--no-sandbox')
options.add_argument('--disable-extensions')
# options.add_argument('--headless')
prefs = {'profile.default_content_setting_values.notifications': 2}
options.add_experimental_option('prefs', prefs)
driver = webdriver.Chrome(chrome_options=options)
driver.get("<put fb post link here>")
# example
# driver.get("https://www.facebook.com/test.user/posts/1726976090778944")
username_box = driver.find_element_by_id("email")
username_box.send_keys(username)
password_box = driver.find_element_by_id("pass")
password_box.send_keys(password)
login_btn = driver.find_element_by_xpath("/html/body/div[1]/div[2]/div/div/div[1]/div/div[2]/form/table/tbody/tr[2]/td[3]/label/input")
login_btn.submit()
time.sleep(10)
comment_div_select = driver.find_element_by_xpath('/html/body/div[1]/div[3]/div[1]/div/div[2]/div[2]/div[2]/div[2]/div/div/div/div/div/div/div/div[1]/div/div[2]/div[2]/form/div/div[3]/div[4]/div[2]/div/div/div/div/div/form/div')
comment_div_select.click()
time.sleep(5)
# in range give the comment limit. default is set as 100
for i in range(0, 100):
comment_div = driver.find_element_by_xpath('/html/body/div[1]/div[3]/div[1]/div/div[2]/div[2]/div[2]/div[2]/div/div/div/div/div/div/div/div[1]/div/div[2]/div[2]/form/div/div[3]/div[4]/div[2]/div/div/div/div/div/form/div/div/div[2]/div/div/div/div')
comment_div.send_keys('Comment ', i + 1)
# time.sleep(10) # uncomment here and give how many seconds you want to wait for every comment
comment_div.send_keys(Keys.ENTER)
time.sleep(2)
# comment_div = driver.find_element_by_xpath('/html/body/div[1]/div[3]/div[1]/div/div[2]/div[2]/div[2]/div[2]/div/div/div/div/div/div/div/div[1]/div/div[2]/div[2]/form/div/div[3]/div[4]/div[2]/div/div/div/div/div/form/div/div/div[2]/div/div/div/div')
# comment_div.send_keys('Comment 984')
# time.sleep(10)
# comment_div.send_keys(Keys.ENTER)
# time.sleep(20) | 44.326923 | 252 | 0.741432 | 413 | 2,305 | 4.016949 | 0.249395 | 0.198915 | 0.184448 | 0.166365 | 0.444244 | 0.424352 | 0.395419 | 0.385172 | 0.341772 | 0.341772 | 0 | 0.042194 | 0.07462 | 2,305 | 52 | 253 | 44.326923 | 0.735584 | 0.288503 | 0 | 0 | 0 | 0.1 | 0.422509 | 0.333948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ebb9d8c6f89c83ead90d143c8c519821d238ad09 | 375 | py | Python | tests/engine_tests/unit/repos/users/__init__.py | pitzer42/micro-tcg | eec416fb3b7b992a206ab900f3d85d172f494103 | [
"MIT"
] | null | null | null | tests/engine_tests/unit/repos/users/__init__.py | pitzer42/micro-tcg | eec416fb3b7b992a206ab900f3d85d172f494103 | [
"MIT"
] | 2 | 2019-06-25T02:15:10.000Z | 2019-06-25T02:22:14.000Z | tests/engine_tests/unit/repos/users/__init__.py | pitzer42/micro-tcg | eec416fb3b7b992a206ab900f3d85d172f494103 | [
"MIT"
] | 1 | 2019-06-12T00:35:41.000Z | 2019-06-12T00:35:41.000Z | from engine.models.user import User
user_data = {
User.__id_attr__: '123',
User.__name_attr__: 'tester',
User.__token_attr__: 'some_token',
User.__password_attr__: 'secret_password'
}
user_data_without_id = {
User.__id_attr__: None,
User.__name_attr__: 'tester',
User.__token_attr__: 'some_token',
User.__password_attr__: 'secret_password'
} | 25 | 45 | 0.72 | 48 | 375 | 4.625 | 0.354167 | 0.072072 | 0.09009 | 0.162162 | 0.630631 | 0.630631 | 0.630631 | 0.630631 | 0.630631 | 0.630631 | 0 | 0.009554 | 0.162667 | 375 | 15 | 46 | 25 | 0.697452 | 0 | 0 | 0.461538 | 0 | 0 | 0.172872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ebbaa666b451a8bcca6ea804702e3e76aeadfad1 | 2,775 | py | Python | 21-fs-ias-lec/03-BACnetCore/src/core/interface/feed.py | cn-uofbasel/BCN | 2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a | [
"MIT"
] | 8 | 2020-03-17T21:12:18.000Z | 2021-12-12T15:55:54.000Z | 21-fs-ias-lec/03-BACnetCore/src/core/interface/feed.py | cn-uofbasel/BCN | 2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a | [
"MIT"
] | 2 | 2021-07-19T06:18:43.000Z | 2022-02-10T12:17:58.000Z | 21-fs-ias-lec/03-BACnetCore/src/core/interface/feed.py | cn-uofbasel/BCN | 2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a | [
"MIT"
] | 25 | 2020-03-20T09:32:45.000Z | 2021-07-18T18:12:59.000Z | from .event import Event
class FeedMeta:
"""
This class represents the Metadata for every feed.
"""
def __init__(self, feed_name, public_key, signature_info):
self.feed_name = feed_name
self.public_key = public_key
self.signature_info = signature_info
def get_feed_name(self):
return self.feed_name
def get_public_key(self):
return self.public_key
def get_signature_info(self):
return self.signature_info
def __str__(self):
return f"--feed-name: {self.feed_name}\n--feed_id: {self.public_key}\n--signature-info: {self.signature_info}"
class Feed:
"""
This class is the base Interface class for every Feed.
"""
def __init__(self, feed_id, storage_controller):
self.feed_id = feed_id
self.strg_ctrl = storage_controller
# this is separated due to self.meta reference in get_feed_meta()
self.meta = None
self.meta = self.get_feed_meta()
def get_event(self, seq_num: int) -> Event:
"""
This method tries to get a certain event. UnknownFeedError or EventNotfoundError can raise.
"""
return self.strg_ctrl.get_event(seq_num, self.feed_id)
def get_current_seq_num(self):
"""
This method tries to get the current sequence number of this feed. -1 is returned when feed not known or no
event in database.
"""
return self.strg_ctrl.get_current_seq_num(self.feed_id)
def get_last_event(self):
"""
This method tries to get the latest event of this feed. Since it uses get_content(), UnknownFeedError
or EventNotfoundError can raise.
"""
return self.get_event(self.get_current_seq_num())
def get_feed_id(self):
"""
Returns the feed_id of this feed
"""
return self.feed_id
def get_feed_meta(self):
"""
Getter for the metadata of this feed. If the metadata is currently None(= not able to load it yet). Then try
to load it again. Anyway return self.meta.
"""
if self.meta is None:
self._reload_meta()
return self.meta
def _reload_meta(self):
"""
This method tries to extract the metadata of a feed from the last event of this feed. if this fails (ex when no
events of this feed are in the database) then return None
"""
try:
first_event = self.get_event(0)
name = self.strg_ctrl.get_name_by_feed_id(self.feed_id)
self.meta = FeedMeta(name, first_event.meta.feed_id, first_event.meta.signature_info)
except Exception:
self.meta = None
def __str__(self):
return f"\n****Feed****\n{str(self.meta)}"
| 32.267442 | 119 | 0.636396 | 393 | 2,775 | 4.262087 | 0.231552 | 0.042985 | 0.035821 | 0.040597 | 0.240597 | 0.155224 | 0.155224 | 0 | 0 | 0 | 0 | 0.001 | 0.278919 | 2,775 | 85 | 120 | 32.647059 | 0.836082 | 0.316757 | 0 | 0.097561 | 0 | 0.02439 | 0.077876 | 0.069027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0 | 0.02439 | 0.121951 | 0.634146 | 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 |
ebbbd16fc74d5b2cae8f343c1c891887aa6cd21b | 5,589 | py | Python | maya/debug/correctnessUtils.py | arjun-namdeo/py_stubs | 605bb167e239978f5417f3f1fc1f5c12e2a243cc | [
"MIT"
] | null | null | null | maya/debug/correctnessUtils.py | arjun-namdeo/py_stubs | 605bb167e239978f5417f3f1fc1f5c12e2a243cc | [
"MIT"
] | null | null | null | maya/debug/correctnessUtils.py | arjun-namdeo/py_stubs | 605bb167e239978f5417f3f1fc1f5c12e2a243cc | [
"MIT"
] | null | null | null | """
It is meant to be used by tests validating the correctness of evaluation, for
instance validating the correctness of evaluation under evaluation manager or
background evaluation.
Its main utility function is run_correctness_test().
If resultsPath is set then the graph output and differences are dumped to
files using that path as the base name. For example:
resultsPath = MyDirectory/emCorrecteness_animCone
reference results dump = MyDirectory/emCorrecteness_animCone.ref.txt
reference results image = MyDirectory/emCorrecteness_animCone.ref.png
${mode} results dump = MyDirectory/emCorrecteness_animCone.${mode}.txt
${mode} results image = MyDirectory/emCorrecteness_animCone.${mode}.png
If resultsPath is not set then no output is stored, everything is live.
The return value is a list of value pairs indicating number of differences
between the reference evaluation and the tested mode. e.g. if you requested 'ems'
mode then you would get back {'ems' : (0, 0, 0)} from a successful comparison.
If fileName is not set then the current scene is analyzed.
"""
from maya.debug.DGState import DGState
from maya.debug.TODO import TODO
from maya.debug.playbackModeManager import playbackModeManager
from maya.debug.emModeManager import emModeManager
class EmptyContext(object):
"""
Empty context class that performs no action on entry or exit.
"""
def __enter__(self):
pass
def __exit__(self, type, value, traceback):
pass
__dict__ = None
__weakref__ = None
def __find_em_plugs(ignored_nodes):
"""
Find all of the root level plugs that the EM will be marking
dirty. The passed-in dictionary will be populated by a list of
dictionaries.
em_plugs[NODE] = {DIRTY_PLUG_IN_NODE:True}
ignored_nodes = [NODES_TO_SKIP]
"""
pass
def run_correctness_test(referenceMode, modes, fileName=None, resultsPath=None, verbose=False, maxFrames=200, dataTypes=['matrix', 'vertex', 'screen'], emSetup=0):
"""
Evaluate the file in multiple modes and compare the results.
referenceMode: Mode to which other modes will be compared for correctness.
It's a string that can be passed to emModeManager.setMode()
function.
modes: List of modes to run the tests in. They must be have the following methods:
getTitle : returns a string describing the mode
getEmMode : returns a string to be passed to emModeManager.setMode()
before running the test.
getContext : returns a context object that can set extra state on enter
and reset it on exit (or None if not needed).
fileName: Name of file to load for comparison. None means use the current scene
resultsPath: Where to store the results. None means don't store anything
verbose: If True then dump the differing values when they are encountered
maxFrames: Maximum number of frames in the playback, to avoid long tests.
dataTypes: List of data types to include in the analysis. These are the possibilities:
matrix: Any attribute that returns a matrix
vector: Any attribute with type 3Double
vertex: Attributes on the mesh shape that hold vertex positions
number: Any attribute that returns a number
screen: Screenshot after the animation runs
emSetup: What to do before running an EM mode test, in bitfield combinations
CORRECTNESS_NO_SETUP Do nothing, just run playback
CORRECTNESS_DOUBLE_PLAYBACK Run playback twice to ensure graph is valid
CORRECTNESS_INVALIDATE Invalidate the graph to force rebuild
CORRECTNESS_LOAD Load the file between every mode's run
(Default is to just load once at the beginning.)
Returns a list of value tuples indicating the run mode and the number of
(additions,changes,removals) encountered in that mode. e.g. ['ems', (0,0,0)]
If verbose is true then instead of counts return a list of actual changes.
e.g. ['ems', ([], ["plug1,oldValue,newValue"], [])]
Changed values are a CSV 3-tuple with "plug name", "value in reference mode", "value in the named test mode"
in most cases.
In the special case of an image difference the plug name will be one
of the special ones below and the values will be those generated by the
comparison method used:
DGState.SCREENSHOT_PLUG_MD5 : md5 values when the image compare could not be done
DGState.SCREENSHOT_PLUG_MAG : md5 and image difference values from ImageMagick
DGState.SCREENSHOT_PLUG_IMF : md5 and image difference values from imf_diff
"""
pass
def __is_maya_file(path):
"""
Check to see if the given path is a Maya file. Only looks for native Maya
files ".ma" and ".mb", not other importable formats such as ".obj" or ".dxf"
"""
pass
def model_panel_visible():
"""
Return true if any model panel is currently visible. This includes
checking for GUI model and looking at the currently visible panels
to see if any of them are model panels.
"""
pass
CORRECTNESS_INVALIDATE = 2
CORRECTNESS_MAX_FRAMECOUNT = 200
CORRECTNESS_NO_SETUP = 0
CORRECTNESS_DOUBLE_PLAYBACK = 1
CORRECTNESS_LOAD = 4
| 38.280822 | 163 | 0.681338 | 756 | 5,589 | 4.952381 | 0.37963 | 0.009615 | 0.044071 | 0.013889 | 0.112179 | 0.01656 | 0 | 0 | 0 | 0 | 0 | 0.005868 | 0.268205 | 5,589 | 145 | 164 | 38.544828 | 0.909535 | 0.793165 | 0 | 0.25 | 0 | 0 | 0.020666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.166667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ebbec39c729b3dfb4542b0c4912bbf714be1b15e | 1,445 | py | Python | sentence_embeddings/abstract_sentence_embedding.py | UKPLab/conll2020-multilingual-sentence-probing | 64b915938205f2f9b7a023b8f4d580974d1e4d31 | [
"BSD-3-Clause"
] | 3 | 2020-10-07T15:45:08.000Z | 2021-06-15T14:03:08.000Z | sentence_embeddings/abstract_sentence_embedding.py | UKPLab/conll2020-multilingual-sentence-probing | 64b915938205f2f9b7a023b8f4d580974d1e4d31 | [
"BSD-3-Clause"
] | null | null | null | sentence_embeddings/abstract_sentence_embedding.py | UKPLab/conll2020-multilingual-sentence-probing | 64b915938205f2f9b7a023b8f4d580974d1e4d31 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T21:43:53.000Z | 2021-07-21T21:43:53.000Z | from abc import ABC, abstractmethod
import torch.nn as nn
import torch
class AbstractEmbedding(ABC):
"""
param word_embedding_size size of inputs (only used for pooling)
returns sentence embedding size
"""
@abstractmethod
def get_size(self, word_embedding_size: int) -> int:
pass
@abstractmethod
def get_name(self) -> str:
pass
@abstractmethod
def input_strings(self) -> bool:
pass
def get(self, sentence) -> torch.FloatTensor:
embedding = self.encode(sentence)
if torch.isnan(embedding).any():
raise ValueError('NaN in sentence embedding')
if isinstance(self, AbstractSentenceEncoder):
assert embedding.size(-1) == self.get_size(0)
return embedding
class AbstractPooling(AbstractEmbedding, nn.Module):
"""
Implement the embedding in the forward function
(basically, write a normal Pytorch Module)
"""
def encode(self, sentence: torch.FloatTensor) -> torch.FloatTensor:
embedding = self(sentence)
assert embeddings.size(-1) == self.get_size(sentence.size(-1))
return embeddings
def input_strings(self):
return False
class AbstractSentenceEncoder(AbstractEmbedding):
@abstractmethod
def encode(self, sentence: str) -> torch.FloatTensor:
"""
Implement embedding in this method
"""
pass
@abstractmethod
def to(self, device: torch.device) -> AbstractEmbedding:
pass
def input_strings(self):
return True
| 22.578125 | 69 | 0.706574 | 169 | 1,445 | 5.976331 | 0.378698 | 0.084158 | 0.062376 | 0.056436 | 0.081188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003445 | 0.19654 | 1,445 | 63 | 70 | 22.936508 | 0.866494 | 0.154325 | 0 | 0.333333 | 0 | 0 | 0.021204 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.25 | false | 0.138889 | 0.083333 | 0.055556 | 0.527778 | 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 |
ebcb0ed19c040d9c12bd2c3de022d5eaf6035573 | 410 | py | Python | mime/scene/marker.py | rjgpinel/mime-release | 26a850c4ba5b702b86d068995614163338fb01df | [
"MIT"
] | 13 | 2020-06-24T10:52:28.000Z | 2021-07-23T03:05:27.000Z | mime/scene/marker.py | rjgpinel/mime-release | 26a850c4ba5b702b86d068995614163338fb01df | [
"MIT"
] | 1 | 2020-08-18T12:45:15.000Z | 2020-08-18T12:45:15.000Z | mime/scene/marker.py | rjgpinel/mime-release | 26a850c4ba5b702b86d068995614163338fb01df | [
"MIT"
] | 3 | 2020-09-09T18:17:46.000Z | 2021-09-06T09:43:45.000Z | class Marker(object):
def __init__(self):
self._body = None
def make(self):
raise NotImplementedError
def update(self, marker):
pass
def show(self):
if self._body is None:
self._body = self.make()
self.update(self._body)
def hide(self):
if self._body is not None:
self._body.remove()
self._body = None
| 20.5 | 36 | 0.55122 | 50 | 410 | 4.3 | 0.38 | 0.260465 | 0.111628 | 0.130233 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35122 | 410 | 19 | 37 | 21.578947 | 0.808271 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ebd0671d356d54172a4beead6e328b1d884352c0 | 527 | py | Python | yuno/utils/annotations.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | 1 | 2022-02-25T13:39:18.000Z | 2022-02-25T13:39:18.000Z | yuno/utils/annotations.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | null | null | null | yuno/utils/annotations.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | null | null | null | """
annotations.py
Manages annotations utilities.
"""
import typing
class Default():
"""A default value for a function call"""
def __init__(self, value: typing.Any = None) -> None:
"""
A class representing the default value for any parameter in a function call
Parameters
-----------
`value`: Any
This is the default value
"""
self.value = value
def __repr__(self) -> str:
return "Default({value})".format(value=self.value)
| 20.269231 | 83 | 0.573055 | 59 | 527 | 4.983051 | 0.491525 | 0.163265 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305503 | 527 | 25 | 84 | 21.08 | 0.803279 | 0.442125 | 0 | 0 | 0 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ebd0cb1a562bf4ab9aa486fcfa09054e191a5100 | 218 | py | Python | lesson-04/homework/solution-01.py | Evgesha3425/lessons2 | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | 1 | 2021-11-14T13:06:45.000Z | 2021-11-14T13:06:45.000Z | lesson-04/homework/solution-01.py | Evgesha3425/lessons | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | null | null | null | lesson-04/homework/solution-01.py | Evgesha3425/lessons | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | null | null | null | """
Дан список my_list = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89], выведите все элементы, которые меньше 5.
"""
my_list = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
for i in my_list:
if i < 5:
print(i)
| 21.8 | 101 | 0.509174 | 44 | 218 | 2.454545 | 0.545455 | 0.166667 | 0.12963 | 0.148148 | 0.407407 | 0.407407 | 0.407407 | 0.407407 | 0.407407 | 0.407407 | 0 | 0.225166 | 0.307339 | 218 | 9 | 102 | 24.222222 | 0.490066 | 0.463303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ebdb78ed7d9c6b3e4ca85b3d442a86351cc8da7e | 3,079 | py | Python | utils/scripts/OOOlevelGen/src/sprite_templates/Snail.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprite_templates/Snail.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprite_templates/Snail.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | import MonsterBuilder
def create(lb,xpos):
xml = """
<level>
<!-- BEGIN Monster construction -->
<sprite shape="rect" type="Enemy.EnemySprite" x="178" y="26" width="295" height="54" angle="0" restitution="0.2" static="false" friction="0.01" density="3" setName="0" sheet="6" firstframe="snail_body.png" classname="SnailBodyPart" spritedata="Snail"/>
<sprite shape="circ" type="Enemy.EnemySprite" x="190" y="75" width="152" height="152" angle="0" restitution="0.2" static="false" friction="0.5" density="1" sheet="6" firstframe="snail_house.png" setName="1" classname="SnailLimb" spritedata="Snail"/>
<sprite shape="circ" type="Enemy.EnemySprite" x="29" y="110" width="30" height="30" angle="0" restitution="0.2" static="false" friction="0.5" density="1" sheet="6" firstframe="snail_eye.png" setName="2" classname="SnailLimb" spritedata="Snail"/>
<sprite shape="circ" type="Enemy.EnemySprite" x="66" y="114" width="28" height="28" angle="0" restitution="0.2" static="false" friction="0.5" density="1" sheet="6" firstframe="snail_eye.png" setName="3" classname="SnailLimb" spritedata="Snail"/>
<sprite type="Joints.DistanceJoint" id="4" body1="0" body2="2" damping="0.2" freq="20" texture_type="image" texture="snail_eye_joint_skin.png" texture_width="3" b1_Xoffset="-80" b1_Yoffset="-18" b2_Xoffset="-7" b2_Yoffset="0" bx="82" by="111" ax="158" ay="8"/>
<sprite type="Joints.DistanceJoint" id="5" body1="0" body2="2" damping="0.2" freq="20" texture_type="none" texture="rect.png" texture_width="20" b1_Xoffset="-143" b1_Yoffset="-16" b2_Xoffset="-7" b2_Yoffset="0" bx="82" by="111" ax="95" ay="10"/>
<sprite type="Joints.DistanceJoint" id="6" body1="0" body2="3" damping="0.2" freq="20" texture_type="none" texture="rect.png" texture_width="20" b1_Xoffset="-76" b1_Yoffset="0" b2_Xoffset="-8" b2_Yoffset="-1" bx="118" by="114" ax="162" ay="26"/>
<sprite type="Joints.DistanceJoint" id="7" body1="0" body2="3" damping="0.2" freq="20" texture_type="image" texture="snail_eye_joint_skin.png" texture_width="3" b1_Xoffset="-119" b1_Yoffset="-15" b2_Xoffset="-8" b2_Yoffset="-1" bx="118" by="114" ax="119" ay="11"/>
<sprite type="Joints.DistanceJoint" id="8" body1="0" body2="1" damping="0.2" freq="1" texture_type="none" texture="rect.png" texture_width="20" b1_Xoffset="-136" b1_Yoffset="-17" b2_Xoffset="-58" b2_Yoffset="32" bx="192" by="107" ax="102" ay="9"/>
<sprite type="Joints.DistanceJoint" id="9" body1="0" body2="1" damping="0.2" freq="1" texture_type="none" texture="rect.png" texture_width="20" b1_Xoffset="131" b1_Yoffset="-11" b2_Xoffset="57" b2_Yoffset="34" bx="307" by="109" ax="369" ay="15"/>
<sprite type="Joints.DistanceJoint" id="10" body1="1" body2="0" damping="0.2" freq="50" texture_type="image" texture="rect.png" texture_width="20" b1_Xoffset="51" b1_Yoffset="-43" b2_Xoffset="112" b2_Yoffset="-11" bx="350" by="15" ax="301" ay="32"/>
<!-- END Monster construction -->
</level>
"""
MonsterBuilder.createFromXMLString(lb,xpos,xml)
| 139.954545 | 272 | 0.669698 | 486 | 3,079 | 4.135802 | 0.248971 | 0.010945 | 0.055721 | 0.100995 | 0.682587 | 0.558209 | 0.558209 | 0.558209 | 0.539801 | 0.495025 | 0 | 0.108592 | 0.111725 | 3,079 | 22 | 273 | 139.954545 | 0.626325 | 0 | 0 | 0 | 0 | 0.55 | 0.961688 | 0.177922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ebdee73a5a8300aef7d4e0824e0946ec05ded86e | 373 | py | Python | uploader/gtimg.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 23 | 2020-07-12T07:23:11.000Z | 2022-02-11T09:56:45.000Z | uploader/gtimg.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 2 | 2021-07-25T07:01:14.000Z | 2021-09-01T12:17:49.000Z | uploader/gtimg.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 21 | 2020-07-23T15:27:37.000Z | 2022-03-08T02:44:49.000Z | from uploader import AbstractUploader
class Uploader(AbstractUploader):
@property
def request_url(self) -> str:
return 'https://om.qq.com/image/orginalupload'
@property
def file_key(self) -> str:
return 'Filedata'
@property
def parsed(self) -> str:
return self.request.json()['data']['url'].replace('http://', 'https://')
| 24.866667 | 80 | 0.632708 | 42 | 373 | 5.571429 | 0.619048 | 0.141026 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211796 | 373 | 14 | 81 | 26.642857 | 0.795918 | 0 | 0 | 0.272727 | 0 | 0 | 0.179625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
691388f78afaf1063a999add1a9b9e785616fb28 | 101 | py | Python | carpatclimapp/apps.py | dstojakovic/carpatclim-webapp | c920376c10b6695175b4539ab22d226ef5bbedd8 | [
"MIT"
] | null | null | null | carpatclimapp/apps.py | dstojakovic/carpatclim-webapp | c920376c10b6695175b4539ab22d226ef5bbedd8 | [
"MIT"
] | 7 | 2018-10-07T11:28:08.000Z | 2018-10-07T16:39:43.000Z | carpatclimapp/apps.py | dstojakovic/carpatclim-webapp | c920376c10b6695175b4539ab22d226ef5bbedd8 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CarpatclimappConfig(AppConfig):
name = 'carpatclimapp'
| 16.833333 | 37 | 0.782178 | 10 | 101 | 7.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 38 | 20.2 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 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 |
691d76c38de617384b37f6ff0f6cdc4e912fcbec | 16,163 | py | Python | expr_laplace.py | enosair/gdp-edgeworth | 8b502fe654c823a37495fa61d7c924daa7d6dd1e | [
"MIT"
] | 1 | 2021-12-01T19:12:36.000Z | 2021-12-01T19:12:36.000Z | expr_laplace.py | enosair/gdp-edgeworth | 8b502fe654c823a37495fa61d7c924daa7d6dd1e | [
"MIT"
] | null | null | null | expr_laplace.py | enosair/gdp-edgeworth | 8b502fe654c823a37495fa61d7c924daa7d6dd1e | [
"MIT"
] | 2 | 2020-07-20T23:57:46.000Z | 2021-05-07T14:53:06.000Z | import numpy as np
import matplotlib.pyplot as plt
import edgeworth
import scipy.stats
import time
import pickle
from matplotlib import rc
rc("text", usetex=True)
def run_expr(
dens_func_P,
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
use_cornish_fisher=False,
left=-np.inf,
right=np.inf,
title=None,
ax=None,
log_scale=False,
zoom_in=False,
):
print("$$$$$ n:{}".format(num_composition))
moments_P, errs = edgeworth.compute_moments(
log_likelihood_ratio_func, dens_func_P, max_order=4, left=left, right=right
)
kappas_P = edgeworth.compute_cumulants(moments_P)
moments_Q, errs = edgeworth.compute_moments(
log_likelihood_ratio_func, dens_func_Q, max_order=4, left=left, right=right
)
kappas_Q = edgeworth.compute_cumulants(moments_Q)
print("\t\tCumulants of Q: {}".format(kappas_Q))
print("\t\tCumulants of P: {}".format(kappas_P))
sigma_square_P = [kappas_P[1]] * num_composition
sigma_square_Q = [kappas_Q[1]] * num_composition
kappa_3_P = [kappas_P[2]] * num_composition
kappa_3_Q = [kappas_Q[2]] * num_composition
kappa_4_P = [kappas_P[3]] * num_composition
kappa_4_Q = [kappas_Q[3]] * num_composition
mu_f = (
(moments_Q[0] - moments_P[0]) / np.sqrt(kappas_P[1]) * np.sqrt(num_composition)
)
alpha = np.linspace(1e-7, 1 - 1e-7, 100)
print("\t\tmu_f:{}".format(mu_f))
start = time.time()
f_clt = edgeworth.compute_gdp_clt(alpha, mu_f)
clt_time = time.time() - start
print("\t\tCLT used {} seconds.".format(clt_time))
f_edgeworth = []
start = time.time()
for aa in alpha:
val = edgeworth.approx_f_edgeworth(
aa,
sigma_square_P,
sigma_square_Q,
kappa_3_P,
kappa_3_Q,
kappa_4_P,
kappa_4_Q,
mu_f,
use_cornish_fisher=use_cornish_fisher,
)
f_edgeworth.append(val)
edgeworth_time = time.time() - start
print("\t\tEdgeworth used {} seconds.".format(edgeworth_time))
f_edgeworth = np.array(f_edgeworth)
epsilon = np.linspace(-6, 6, 100)
start = time.time()
f_numerical, f_eps_delta, deltas = edgeworth.approx_f_numerical(
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
epsilon,
alpha=alpha,
left=left,
right=right,
)
numerical_time = time.time() - start
print("\t\tNumerical used {} seconds.".format(numerical_time))
if ax is not None:
line1, = ax.plot(alpha, f_numerical, linewidth=4, color="k", linestyle="-")
line2, = ax.plot(alpha, f_edgeworth, linewidth=4, color="r")
line3, = ax.plot(alpha, f_clt, linewidth=4, color="b", linestyle="--")
ax.set_xlabel(r"Type I Error", fontsize=30)
ax.set_ylabel(r"Type II Error", fontsize=30)
ax.xaxis.set_tick_params(size=18, labelsize=30)
ax.yaxis.set_tick_params(size=18, labelsize=30)
if title is not None:
ax.set_title(title, fontdict={"fontsize": 30})
if log_scale:
ax.set_yscale("log")
if zoom_in:
from mpl_toolkits.axes_grid1.inset_locator import (
zoomed_inset_axes,
mark_inset,
)
axins = zoomed_inset_axes(
ax, 1.8, loc=1
) # zoom-factor: 2.5, location: upper-left
axins.plot(alpha, f_numerical, linewidth=4, color="k", linestyle="-")
axins.plot(alpha, f_edgeworth, linewidth=4, color="r")
axins.plot(alpha, f_clt, linewidth=4, color="b", linestyle="--")
axins.set_xticks([])
axins.set_yticks([])
x1, x2, y1, y2 = 0.0, 0.35, 0, 0.4 # specify the limits
axins.set_xlim(x1, x2) # apply the x-limits
axins.set_ylim(y1, y2) # apply the y-limits
mark_inset(ax, axins, loc1=2, loc2=4, fc="none", ec="0.5")
else:
if num_composition == 1:
ax.legend(["numerical", "Edgeworth", "CLT"], prop={"size": 30})
pickle_out = open("laplace_primal_n{}.pickle".format(num_composition), "wb")
pickle.dump(
{
"f_numerical": f_numerical,
"f_edgeworth": f_edgeworth,
"f_eps_delta": f_eps_delta,
"f_clt": f_clt,
"epsilon": epsilon,
"deltas": deltas,
"clt_time": clt_time,
"edgeworth_time": edgeworth_time,
"numerical_time": numerical_time,
},
pickle_out,
)
pickle_out.close()
return clt_time, edgeworth_time, numerical_time, alpha, f_edgeworth
def run_expr_dual(
dens_func_P,
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
vertical_line_x=None,
use_cornish_fisher=False,
left=-np.inf,
right=np.inf,
title=None,
ax=None,
log_scale=False,
):
moments_P, errs = edgeworth.compute_moments(
log_likelihood_ratio_func, dens_func_P, max_order=4, left=left, right=right
)
kappas_P = edgeworth.compute_cumulants(moments_P)
# odd order moment will flip the sign under Q
moments_Q, errs = edgeworth.compute_moments(
log_likelihood_ratio_func, dens_func_Q, max_order=4, left=left, right=right
)
kappas_Q = edgeworth.compute_cumulants(moments_Q)
print("Cumulants of Q: {}".format(kappas_Q))
sigma_square_P = [kappas_P[1]] * num_composition
sigma_square_Q = [kappas_Q[1]] * num_composition
kappa_3_P = [kappas_P[2]] * num_composition
kappa_3_Q = [kappas_Q[2]] * num_composition
kappa_4_P = [kappas_P[3]] * num_composition
kappa_4_Q = [kappas_Q[3]] * num_composition
mu_f = (
(moments_Q[0] - moments_P[0]) / np.sqrt(kappas_P[1]) * np.sqrt(num_composition)
)
alpha = np.sort(
np.concatenate(
(
np.logspace(-8, -1, 100),
np.linspace(0.09, 0.99, 500),
1.0 - np.logspace(-8, -1, 200),
),
axis=None,
)
)
f_edgeworth = np.zeros(len(alpha))
start = time.time()
for ii in range(len(alpha)):
aa = alpha[ii]
val = edgeworth.approx_f_edgeworth(
aa,
sigma_square_P,
sigma_square_Q,
kappa_3_P,
kappa_3_Q,
kappa_4_P,
kappa_4_Q,
mu_f,
use_cornish_fisher=use_cornish_fisher,
)
f_edgeworth[ii] = val
edgeworth_time = time.time() - start
print("Edgeworth used {} seconds.".format(edgeworth_time))
epsilon = np.linspace(-6, 10, 100)
start = time.time()
f_numerical, f_eps_delta, deltas = edgeworth.approx_f_numerical(
dens_func_Q, log_likelihood_ratio_func, num_composition, epsilon, alpha=alpha
)
numerical_time = time.time() - start
print("Numerical used {} seconds.".format(numerical_time))
delta_clt = []
delta_edgeworth = []
for eps in epsilon:
delta_clt.append(
scipy.stats.norm.cdf(-eps / mu_f + mu_f / 2)
- np.exp(eps) * scipy.stats.norm.cdf(-eps / mu_f - mu_f / 2)
)
delta_edgeworth.append(
1 + edgeworth.compute_f_conjugate(-np.exp(eps), alpha, f_edgeworth)
)
if ax is not None:
line1, = ax.plot(epsilon, deltas, linewidth=4, color="k", linestyle="-")
line2, = ax.plot(epsilon, delta_edgeworth, linewidth=4, color="r")
line3, = ax.plot(epsilon, delta_clt, linewidth=4, color="b", linestyle="--")
if vertical_line_x is not None:
ax.axvline(
x=vertical_line_x,
ymin=-0.01,
ymax=0.95,
linewidth=4,
linestyle="-.",
color="darkgray",
)
ax.set_xlabel(r"$\epsilon$", fontsize=30)
ax.set_ylabel(r"$\delta(\epsilon)$", fontsize=30)
if num_composition == 1:
ax.legend(
["numerical", "Edgeworth", "CLT", r"$x=n\theta$"],
prop={"size": 30},
loc="lower left",
)
ax.xaxis.set_tick_params(size=18, labelsize=30)
ax.yaxis.set_tick_params(size=18, labelsize=30)
if log_scale:
ax.set_yscale("log")
if title is not None:
ax.set_title(title, fontdict={"fontsize": 30})
pickle_out = open("laplace_dual_n{}.pickle".format(num_composition), "wb")
pickle.dump(
{
"f_numerical": f_numerical,
"f_edgeworth": f_edgeworth,
"f_eps_delta": f_eps_delta,
"epsilon": epsilon,
"deltas": deltas,
"delta_clt": delta_clt,
"delta_edgeworth": delta_edgeworth,
"edgeworth_time": edgeworth_time,
"numerical_time": numerical_time,
},
pickle_out,
)
pickle_out.close()
# return alpha, f_edgeworth, f_clt, f_numerical
def compare_cornish_fisher(
dens_func_P,
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
left=-np.inf,
right=np.inf,
title=None,
ax=None,
):
moments_P, errs = edgeworth.compute_moments(
log_likelihood_ratio_func, dens_func_P, max_order=4, left=left, right=right
)
kappas_P = edgeworth.compute_cumulants(moments_P)
# odd order moment will flip the sign under Q
moments_Q, errs = edgeworth.compute_moments(
log_likelihood_ratio_func, dens_func_Q, max_order=4, left=left, right=right
)
kappas_Q = edgeworth.compute_cumulants(moments_Q)
print("Cumulants of Q: {}".format(kappas_Q))
sigma_square_P = [kappas_P[1]] * num_composition
sigma_square_Q = [kappas_Q[1]] * num_composition
kappa_3_P = [kappas_P[2]] * num_composition
kappa_3_Q = [kappas_Q[2]] * num_composition
kappa_4_P = [kappas_P[3]] * num_composition
kappa_4_Q = [kappas_Q[3]] * num_composition
mu_f = 2 * moments_P[0] / np.sqrt(kappas_P[1]) * np.sqrt(num_composition)
alpha = np.linspace(1e-7, 1 - 1e-7, 100)
f_edgeworth = []
f_cornish_fisher = []
for aa in alpha:
val = edgeworth.approx_f_edgeworth(
aa,
sigma_square_P,
sigma_square_Q,
kappa_3_P,
kappa_3_Q,
kappa_4_P,
kappa_4_Q,
mu_f,
use_cornish_fisher=False,
)
f_edgeworth.append(val)
val1 = edgeworth.approx_f_edgeworth(
aa,
sigma_square_P,
sigma_square_Q,
kappa_3_P,
kappa_3_Q,
kappa_4_P,
kappa_4_Q,
mu_f,
use_cornish_fisher=True,
)
f_cornish_fisher.append(val1)
if ax is not None:
line1, = ax.plot(alpha, f_edgeworth, color="r", linewidth=2)
line2, = ax.plot(
alpha, f_cornish_fisher, color="navy", linestyle="-.", linewidth=2
)
ax.legend(["Edgeworth Inverse", "Cornish_Fisher"], prop={"size": 20})
ax.xaxis.set_tick_params(size=10, labelsize=10)
ax.yaxis.set_tick_params(size=10, labelsize=10)
if title is not None:
ax.set_title(title, fontdict={"fontsize": 25})
def laplace_mu3_primal_all(num_compositions, save_fig=False):
fig, axs = plt.subplots(2, 2, figsize=(20, 20))
for ii in range(len(num_compositions)):
num_composition = num_compositions[ii]
mu = 3.0 / np.sqrt(num_composition)
def dens_func_p(x):
return 0.5 * np.exp(-np.abs(x))
def dens_func_q(x):
return 0.5 * np.exp(-np.abs(x + mu))
def log_likelihood_ratio_func(x):
"""
log_likelihood_ratio(x) = log(dens_func_q(x) / dens_func_p(x))
"""
return np.abs(x) - np.abs(x + mu)
run_expr(
dens_func_p,
dens_func_q,
log_likelihood_ratio_func,
num_composition,
title="n = {}".format(num_composition),
ax=axs[int(ii / 2)][ii % 2],
log_scale=False,
zoom_in=True if num_composition == 5 else False,
)
plt.show()
if save_fig:
fig.savefig("../tex/image/laplace_mu3_all.pdf", bbox_inches="tight")
def laplace_mu3_primal(num_composition, save_fig=False):
fig, axs = plt.subplots(1, 1, figsize=(10, 10))
mu = 3.0 / np.sqrt(num_composition)
def dens_func_P(x):
return 0.5 * np.exp(-np.abs(x))
def dens_func_Q(x):
return 0.5 * np.exp(-np.abs(x + mu))
def log_likelihood_ratio_func(x):
"""
log_likelihood_ratio(x) = log(dens_func_Q(x) / dens_func_P(x))
"""
return np.abs(x) - np.abs(x + mu)
_, _, _, alpha, f_edgeworth = run_expr(
dens_func_P, dens_func_Q, log_likelihood_ratio_func, num_composition, ax=axs
)
plt.show()
if save_fig:
fig.savefig(
"../tex/image/laplace_mu3_n{}.pdf".format(num_composition),
bbox_inches="tight",
)
return alpha, f_edgeworth
def laplace_mu3_dual(num_composition, save_fig=False, log_scale=False):
fig, axs = plt.subplots(1, 1, figsize=(10, 10))
mu = 3.0 / np.sqrt(num_composition)
def dens_func_P(x):
return 0.5 * np.exp(-np.abs(x))
def dens_func_Q(x):
return 0.5 * np.exp(-np.abs(x + mu))
def log_likelihood_ratio_func(x):
"""
log_likelihood_ratio(x) = log(dens_func_Q(x) / dens_func_P(x))
"""
return np.abs(x) - np.abs(x + mu)
run_expr_dual(
dens_func_P,
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
ax=axs,
log_scale=log_scale,
vertical_line_x=num_composition * mu,
)
plt.subplots_adjust(left=0.15)
plt.show()
if save_fig:
fig.savefig(
"../tex/image/laplace_mu3_n{}_dual.pdf".format(num_composition),
bbox_inches="tight",
)
def laplace_mu3_dual_all(num_compositions, save_fig=False, log_scale=False):
fig, axs = plt.subplots(2, 2, figsize=(20, 20))
for ii in range(len(num_compositions)):
num_composition = num_compositions[ii]
mu = 3.0 / np.sqrt(num_composition)
def dens_func_P(x):
return 0.5 * np.exp(-np.abs(x))
def dens_func_Q(x):
return 0.5 * np.exp(-np.abs(x + mu))
def log_likelihood_ratio_func(x):
"""
log_likelihood_ratio(x) = log(dens_func_Q(x) / dens_func_P(x))
"""
return np.abs(x) - np.abs(x + mu)
run_expr_dual(
dens_func_P,
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
title="n = {}".format(num_composition),
ax=axs[int(ii / 2)][ii % 2],
log_scale=log_scale,
vertical_line_x=num_composition * mu,
)
plt.show()
if save_fig:
fig.savefig("../tex/image/laplace_mu3_dual_all.pdf", bbox_inches="tight")
def laplace_cornish_fisher_vs_numerical_inverse():
num_compositions = [1, 2, 3, 4]
fig, axs = plt.subplots(1, 4, figsize=(40, 10))
for ii in range(len(num_compositions)):
num_composition = num_compositions[ii]
mu = 3.0 / np.sqrt(num_composition)
ax = axs[ii]
def dens_func_P(x):
return 0.5 * np.exp(-np.abs(x))
def dens_func_Q(x):
return 0.5 * np.exp(-np.abs(x + mu))
def log_likelihood_ratio_func(x):
"""
log_likelihood_ratio(x) = log(dens_func_Q(x) / dens_func_P(x))
"""
return np.abs(x) - np.abs(x + mu)
compare_cornish_fisher(
dens_func_P,
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
title="n = {}".format(num_composition),
ax=ax,
)
ax.tick_params(axis="x", labelsize=20, labelrotation=0)
ax.tick_params(axis="y", labelsize=20, labelrotation=0)
plt.show()
fig.savefig("../tex/image/cornish_fisher.pdf", bbox_inches="tight")
| 30.904398 | 87 | 0.586401 | 2,192 | 16,163 | 4.035128 | 0.104927 | 0.085472 | 0.052911 | 0.052233 | 0.775806 | 0.737253 | 0.711815 | 0.680158 | 0.659808 | 0.626569 | 0 | 0.026171 | 0.290788 | 16,163 | 522 | 88 | 30.963602 | 0.745442 | 0.033719 | 0 | 0.592506 | 0 | 0 | 0.059656 | 0.014025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053864 | false | 0 | 0.018735 | 0.023419 | 0.112412 | 0.025761 | 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 |
692b19278d00fde3f2b09fd29a172a04b1916b2e | 1,338 | py | Python | pyramid_cron/tests/test_unit.py | cartlogic/pyramid_cron | cfd523ffac021408def1226580a0329f57ad4119 | [
"MIT"
] | null | null | null | pyramid_cron/tests/test_unit.py | cartlogic/pyramid_cron | cfd523ffac021408def1226580a0329f57ad4119 | [
"MIT"
] | null | null | null | pyramid_cron/tests/test_unit.py | cartlogic/pyramid_cron | cfd523ffac021408def1226580a0329f57ad4119 | [
"MIT"
] | 1 | 2018-03-03T16:09:07.000Z | 2018-03-03T16:09:07.000Z | from datetime import datetime
from unittest import TestCase
from .. import Task
def noop():
pass
class TestUnit(TestCase):
def test_wildcard_everything(self):
task = Task(noop, min='*', hour='*', day='*', month='*', dow='*', idle=False)
self.assertTrue(task.check(datetime(2014, 3, 1, 17, 32)))
self.assertTrue(task.check(datetime(1961, 9, 3, 12, 17)))
self.assertTrue(task.check(datetime(2003, 12, 20, 4, 00)))
def test_specific_time(self):
task = Task(noop, min='*', hour=17, day='*', month='*', dow='*', idle=False)
self.assertTrue(task.check(datetime(2014, 3, 1, 17, 32)))
self.assertFalse(task.check(datetime(1961, 9, 3, 12, 17)))
self.assertFalse(task.check(datetime(2003, 12, 20, 4, 00)))
def test_complex(self):
task = Task(noop, min=range(0, 60, 10), hour=set([17, 11]),
day='*', month='*', dow='*', idle=False)
self.assertFalse(task.check(datetime(2014, 3, 1, 17, 32)))
self.assertFalse(task.check(datetime(1961, 9, 3, 12, 17)))
self.assertFalse(task.check(datetime(2003, 12, 20, 4, 00)))
self.assertTrue(task.check(datetime(2014, 3, 1, 17, 10)))
self.assertTrue(task.check(datetime(1961, 9, 3, 17, 30)))
self.assertTrue(task.check(datetime(2000, 8, 17, 17, 00)))
| 39.352941 | 85 | 0.605381 | 189 | 1,338 | 4.259259 | 0.259259 | 0.134161 | 0.253416 | 0.2 | 0.773913 | 0.685714 | 0.598758 | 0.598758 | 0.540373 | 0.453416 | 0 | 0.127238 | 0.207025 | 1,338 | 33 | 86 | 40.545455 | 0.63148 | 0 | 0 | 0.24 | 0 | 0 | 0.008969 | 0 | 0 | 0 | 0 | 0 | 0.48 | 1 | 0.16 | false | 0.04 | 0.12 | 0 | 0.32 | 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 |
6947f8d334df937e4122bff47806c2041f4e4f90 | 1,755 | py | Python | tests/core/conftest.py | geofferyj/web3.py | b406663f59d5b228487951f019eaf45b3eb9413b | [
"MIT"
] | 3 | 2022-03-19T08:14:29.000Z | 2022-03-31T12:05:19.000Z | tests/core/conftest.py | geofferyj/web3.py | b406663f59d5b228487951f019eaf45b3eb9413b | [
"MIT"
] | 1 | 2022-02-17T20:28:58.000Z | 2022-02-17T20:28:58.000Z | tests/core/conftest.py | geofferyj/web3.py | b406663f59d5b228487951f019eaf45b3eb9413b | [
"MIT"
] | 1 | 2022-03-20T11:54:03.000Z | 2022-03-20T11:54:03.000Z | import pytest
from web3.module import (
Module,
)
# --- inherit from `web3.module.Module` class --- #
@pytest.fixture(scope='module')
def module1():
class Module1(Module):
a = 'a'
@property
def b(self):
return 'b'
return Module1
@pytest.fixture(scope='module')
def module2():
class Module2(Module):
c = 'c'
@staticmethod
def d():
return 'd'
return Module2
@pytest.fixture(scope='module')
def module3():
class Module3(Module):
e = 'e'
return Module3
@pytest.fixture(scope='module')
def module4():
class Module4(Module):
f = 'f'
return Module4
# --- do not inherit from `web3.module.Module` class --- #
@pytest.fixture(scope='module')
def module1_unique():
# uses ``Web3`` instance by accepting it as first arg in the ``__init__()`` method
class Module1:
a = 'a'
def __init__(self, w3):
self._b = "b"
self.w3 = w3
def b(self):
return self._b
@property
def return_eth_chain_id(self):
return self.w3.eth.chain_id
return Module1
@pytest.fixture(scope='module')
def module2_unique():
class Module2:
c = 'c'
@staticmethod
def d():
return 'd'
return Module2
@pytest.fixture(scope='module')
def module3_unique():
class Module3:
e = 'e'
return Module3
@pytest.fixture(scope='module')
def module4_unique():
class Module4:
f = 'f'
return Module4
@pytest.fixture(scope='module')
def module_many_init_args():
class ModuleManyArgs:
def __init__(self, a, b):
self.a = a
self.b = b
return ModuleManyArgs
| 17.55 | 86 | 0.569231 | 207 | 1,755 | 4.705314 | 0.222222 | 0.120123 | 0.166324 | 0.221766 | 0.508214 | 0.480493 | 0.480493 | 0.480493 | 0.383984 | 0.383984 | 0 | 0.026294 | 0.306553 | 1,755 | 99 | 87 | 17.727273 | 0.774035 | 0.105413 | 0 | 0.514706 | 0 | 0 | 0.042199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.029412 | 0.073529 | 0.720588 | 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 |
694ed28cd8b75f8ffe4d89ecbb8a527e72085911 | 135 | py | Python | Ex 25.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | Ex 25.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | Ex 25.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | nome = str(input('digite um nome inteiro: ')).strip()
print('Esse nome contem a palavra bendel ? {} '.format('bendel'in nome.lower()))
| 45 | 80 | 0.681481 | 20 | 135 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125926 | 135 | 2 | 81 | 67.5 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0.511111 | 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 |
15ca3d75568d63467f1e7ebde80c94c896e44521 | 703 | py | Python | waterApp/migrations/0016_auto_20210914_1328.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0016_auto_20210914_1328.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0016_auto_20210914_1328.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-09-14 07:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('waterApp', '0015_auto_20210914_1323'),
]
operations = [
migrations.RemoveField(
model_name='gwmonitoringkobo',
name='id',
),
migrations.AlterField(
model_name='gwmonitoringkobo',
name='date',
field=models.DateField(default='2000-01-01'),
),
migrations.AlterField(
model_name='gwmonitoringkobo',
name='fid',
field=models.IntegerField(default=0, primary_key=True, serialize=False),
),
]
| 25.107143 | 84 | 0.58037 | 66 | 703 | 6.075758 | 0.666667 | 0.067332 | 0.187032 | 0.216958 | 0.244389 | 0.244389 | 0 | 0 | 0 | 0 | 0 | 0.079755 | 0.30441 | 703 | 27 | 85 | 26.037037 | 0.740286 | 0.061166 | 0 | 0.380952 | 1 | 0 | 0.148936 | 0.034954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15eefdd3128bab6afd5378d0d562fb662c595c6b | 477 | py | Python | pystratis/api/federationgateway/responsemodels/maturedblockdepositsmodel.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/federationgateway/responsemodels/maturedblockdepositsmodel.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/federationgateway/responsemodels/maturedblockdepositsmodel.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z | from typing import List
from pydantic import Field
from pystratis.api import Model
from pystratis.core import Deposit
from pystratis.api.global_responsemodels import MaturedBlockInfoModel
class MaturedBlockDepositsModel(Model):
"""A pydantic model for matured block deposits."""
deposits: List[Deposit] = Field(alias='deposits')
"""A list of deposits."""
block_info: MaturedBlockInfoModel = Field(alias='blockInfo')
"""Matured block information model."""
| 34.071429 | 69 | 0.767296 | 55 | 477 | 6.618182 | 0.472727 | 0.107143 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140461 | 477 | 13 | 70 | 36.692308 | 0.887805 | 0.092243 | 0 | 0 | 0 | 0 | 0.046703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c60dbe7be40dd2c4e84a18297c0210577f4c70a3 | 442 | py | Python | misc/filtering/filtermath.py | Stefanlarsson95/AMPI | b801511a7fc2e7bb2dbac7088cc21ded48693094 | [
"MIT"
] | 1 | 2019-08-18T15:22:29.000Z | 2019-08-18T15:22:29.000Z | misc/filtering/filtermath.py | Stefanlarsson95/AMPI | b801511a7fc2e7bb2dbac7088cc21ded48693094 | [
"MIT"
] | null | null | null | misc/filtering/filtermath.py | Stefanlarsson95/AMPI | b801511a7fc2e7bb2dbac7088cc21ded48693094 | [
"MIT"
] | null | null | null | '''
Created on 09.11.2013
Some basic math for magnitude and phase calculations
@author: matuschd
'''
import math
def magnitude_to_db(mag):
return 20*math.log10(mag)
def db_to_gain(db):
return pow(10,db/20)
'''
sum to signals with given db value
e.g. db_sum(-3,-3)=0
'''
def db_sum(db1,db2):
# convert to volt, add and then convert back to db
v1=db_to_gain(db1)
v2=db_to_gain(db2)
return magnitude_to_db(v1+v2)
| 15.785714 | 54 | 0.687783 | 82 | 442 | 3.560976 | 0.536585 | 0.041096 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07563 | 0.192308 | 442 | 27 | 55 | 16.37037 | 0.742297 | 0.325792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 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 |
c60f355de7d457094c0c28f4344e7080d1b6a2e5 | 646 | py | Python | tests/test_project.py | Vayel/projectile | f9a7cba9cc1f07f1e6ea8aad9e7567e0a3ba03e7 | [
"MIT"
] | null | null | null | tests/test_project.py | Vayel/projectile | f9a7cba9cc1f07f1e6ea8aad9e7567e0a3ba03e7 | [
"MIT"
] | 9 | 2016-12-28T20:36:57.000Z | 2017-01-04T15:29:41.000Z | tests/test_project.py | Vayel/projectile | f9a7cba9cc1f07f1e6ea8aad9e7567e0a3ba03e7 | [
"MIT"
] | null | null | null | import os
import pytest
from projectile.project import Project, ProjectExistsError
def test_create_project(project_folder):
p1 = Project('1', project_folder, 'pdf')
p2 = Project('2', project_folder, 'pdf')
p1_ = Project('1', project_folder, 'pdf')
def test_create_folder(project_folder):
Project('1', project_folder, 'pdf').create_folder()
assert os.path.exists(os.path.join(project_folder, '1'))
Project('2', project_folder, 'pdf').create_folder()
assert os.path.exists(os.path.join(project_folder, '2'))
with pytest.raises(ProjectExistsError):
Project('1', project_folder, 'pdf').create_folder()
| 28.086957 | 60 | 0.710526 | 85 | 646 | 5.188235 | 0.258824 | 0.294785 | 0.217687 | 0.190476 | 0.603175 | 0.530612 | 0.412698 | 0.312925 | 0.312925 | 0.312925 | 0 | 0.019892 | 0.143963 | 646 | 22 | 61 | 29.363636 | 0.777577 | 0 | 0 | 0.142857 | 0 | 0 | 0.040248 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.357143 | 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 |
c61af20884649e6364c6ebadef20abe201ec589c | 313 | py | Python | plugitin/finder/base.py | nickderobertis/plugin | 462311551e74ae2c3e4c3dd275b2221f2107f784 | [
"MIT"
] | null | null | null | plugitin/finder/base.py | nickderobertis/plugin | 462311551e74ae2c3e4c3dd275b2221f2107f784 | [
"MIT"
] | 1 | 2021-03-07T01:31:56.000Z | 2021-03-07T01:31:56.000Z | plugitin/finder/base.py | nickderobertis/plugin | 462311551e74ae2c3e4c3dd275b2221f2107f784 | [
"MIT"
] | null | null | null | from typing import Generator, TypeVar, Type, List
from typing_extensions import Protocol
T = TypeVar("T")
class PluginFinder(Protocol[T]):
metadata_class: Type[T]
def find(self) -> Generator[T, None, None]:
...
def find_all(self) -> List[T]:
return [item for item in self.find()]
| 20.866667 | 49 | 0.654952 | 43 | 313 | 4.697674 | 0.511628 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217252 | 313 | 14 | 50 | 22.357143 | 0.82449 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 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 |
c638e5985517f8883f530c92bd305bcf71afaf49 | 197 | py | Python | python/testData/inspections/PyTypeCheckerInspection/TypingNamedTupleAsParameter.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingNamedTupleAsParameter.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingNamedTupleAsParameter.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from typing import NamedTuple
nt = NamedTuple("name", [("field", str)])
def foo(x: nt):
pass
foo(<warning descr="Expected type 'name', got 'int' instead">5</warning>)
foo(nt(field = "f")) | 16.416667 | 73 | 0.639594 | 29 | 197 | 4.344828 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.162437 | 197 | 12 | 74 | 16.416667 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0.247475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.166667 | 0.166667 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c640ec7b52f220241eafeffb724fc73d4aeae38c | 588 | py | Python | WebApp/app/pages/IndexPage.py | abasu644/AIOPS_PLATFORM | 239885c9f3cb2f391e060321a01aa735e37fda72 | [
"MIT"
] | 75 | 2019-03-06T09:22:37.000Z | 2021-09-06T12:50:24.000Z | WebApp/app/pages/IndexPage.py | abasu644/AIOPS_PLATFORM | 239885c9f3cb2f391e060321a01aa735e37fda72 | [
"MIT"
] | 1 | 2019-05-10T08:37:45.000Z | 2019-05-10T08:37:45.000Z | WebApp/app/pages/IndexPage.py | abasu644/AIOPS_PLATFORM | 239885c9f3cb2f391e060321a01aa735e37fda72 | [
"MIT"
] | 30 | 2019-03-06T09:32:32.000Z | 2022-03-26T00:28:39.000Z | '''
IndexPage.py Lib
Written By Kyle Chen
Version 20190420v1
'''
# import buildin pkgs
import os
from flask_restful import Resource
from flask_login import login_required
from flask import render_template, Response
## import priviate pkgs
from app.models.User import User
from app import login_manager
## global values
## Index Class
class IndexPage(Resource):
## get method
@login_required
def get(self):
return(Response(render_template('Index.html')))
@login_manager.user_loader
def load_user(user_id):
return(User.getUser(user_id))
| 20.275862 | 55 | 0.731293 | 79 | 588 | 5.291139 | 0.518987 | 0.064593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018947 | 0.192177 | 588 | 28 | 56 | 21 | 0.861053 | 0.229592 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.461538 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
c654455f13f9d57a67a2b49201c1a66f70a64f50 | 2,362 | py | Python | Arrays and Strings/stringCompression.py | henryoliver/cracking-coding-interview-solutions | 240dc1d1676230e30363e931783f3166b2d69c28 | [
"MIT"
] | 2 | 2020-06-11T02:54:34.000Z | 2021-06-28T20:21:08.000Z | Arrays and Strings/stringCompression.py | henryoliver/cracking-coding-interview-solutions | 240dc1d1676230e30363e931783f3166b2d69c28 | [
"MIT"
] | null | null | null | Arrays and Strings/stringCompression.py | henryoliver/cracking-coding-interview-solutions | 240dc1d1676230e30363e931783f3166b2d69c28 | [
"MIT"
] | null | null | null | def stringCompression(string=''):
'''
Solution 1
Complexity Analysis
O(n) time | O(1) space
Perform basic string compression
string: string
return: string
'''
# Gracefully handle type and Falsy values
if (not isinstance(string, str) or string == ''):
print('Arguments should be a valid non-empty strings')
return False
compressedChars = [];
i = 0
while (i < len(string)):
charCount = 1
currentChar = string[i]
j = i + 1
while (j < len(string) and currentChar == string[j]):
j += 1
charCount += 1
compressedChars.extend([currentChar, str(charCount)])
i = j
return ''.join(compressedChars) if (len(compressedChars) < len(string)) else string
# Test cases (black box - unit testing)
testCases = [
# Normal
# Data that is typical (expected) and should be accepted by the system.
{ 'assert': stringCompression('abbcccdddd'), 'expected': 'a1b2c3d4' },
{ 'assert': stringCompression('aabcccccaaa'), 'expected': 'a2b1c5a3' },
{ 'assert': stringCompression('abcdefghijkl'), 'expected': 'abcdefghijkl' },
# Boundary data (extreme data, edge case)
# Data at the upper or lower limits of expectations that should be accepted by the system.
{ 'assert': stringCompression('a'), 'expected': 'a' },
{ 'assert': stringCompression('abcdefghijklmnopqrstuvxzyw'), 'expected': 'abcdefghijklmnopqrstuvxzyw' },
# Abnormal data (erroneous data)
# Data that falls outside of what is acceptable and should be rejected by the system.
{ 'assert': stringCompression(), 'expected': False },
{ 'assert': stringCompression(0), 'expected': False },
{ 'assert': stringCompression(''), 'expected': False },
{ 'assert': stringCompression([]), 'expected': False },
{ 'assert': stringCompression(()), 'expected': False },
{ 'assert': stringCompression({}), 'expected': False },
{ 'assert': stringCompression(None), 'expected': False },
{ 'assert': stringCompression(False), 'expected': False }
]
# Run tests
for (index, test) in enumerate(testCases):
print(f'# Test {index + 1}')
print(f'Actual: {test["assert"]}')
print(f'Expected: {test["expected"]}')
print('🤘 Test PASSED 🤘' if test["assert"] == test["expected"] else '👎 Test FAILED 👎', '\n')
| 32.805556 | 108 | 0.626588 | 249 | 2,362 | 5.959839 | 0.405622 | 0.201482 | 0.089623 | 0.169811 | 0.235849 | 0.228437 | 0.188679 | 0.188679 | 0.121294 | 0.121294 | 0 | 0.009269 | 0.223539 | 2,362 | 71 | 109 | 33.267606 | 0.79771 | 0.223963 | 0 | 0 | 0 | 0 | 0.256295 | 0.029099 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.027778 | false | 0.027778 | 0 | 0 | 0.083333 | 0.138889 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d65f9010900869d5f37ec436fb9eac3077f40d62 | 454 | py | Python | floodgate/server_state_machine/layer2_decoration_event/tell.py | muzudho/e-gov-vote-kifuwarabe-player-client | f33987ce5ffa4fc51f625787ed0e300fd9a2f02a | [
"MIT"
] | null | null | null | floodgate/server_state_machine/layer2_decoration_event/tell.py | muzudho/e-gov-vote-kifuwarabe-player-client | f33987ce5ffa4fc51f625787ed0e300fd9a2f02a | [
"MIT"
] | null | null | null | floodgate/server_state_machine/layer2_decoration_event/tell.py | muzudho/e-gov-vote-kifuwarabe-player-client | f33987ce5ffa4fc51f625787ed0e300fd9a2f02a | [
"MIT"
] | null | null | null | from app import app
from floodgate.server_state_machine.layer1_transition_map.tell import TellState as _TransitionState
def create():
"""ステート生成"""
return _DecoratedState()
class _DecoratedState(_TransitionState):
def __init__(self):
super().__init__()
def on_reject_c(self, req):
pass
def on_reject_s(self, req):
pass
def on_agree(self, req):
pass
def on_start(self, req):
pass
| 18.16 | 99 | 0.662996 | 56 | 454 | 4.982143 | 0.553571 | 0.071685 | 0.157706 | 0.150538 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.246696 | 454 | 24 | 100 | 18.916667 | 0.812866 | 0.013216 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.266667 | 0.133333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d668c9a6dbff7d2f46dcac8e1e2ad4a4e3e4b55a | 59 | py | Python | template.py | irhawks/flask-algorithm-services | 3d425a78de7d8cd667d702b09f3801bd3ea59b47 | [
"Apache-2.0"
] | null | null | null | template.py | irhawks/flask-algorithm-services | 3d425a78de7d8cd667d702b09f3801bd3ea59b47 | [
"Apache-2.0"
] | null | null | null | template.py | irhawks/flask-algorithm-services | 3d425a78de7d8cd667d702b09f3801bd3ea59b47 | [
"Apache-2.0"
] | null | null | null | language: openfaas-flask-template
fprocess: python main.py
| 19.666667 | 33 | 0.830508 | 8 | 59 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 59 | 2 | 34 | 29.5 | 0.907407 | 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 |
d6718035029c1edf59bb6320c61b8984d624e714 | 151 | py | Python | tests/usage.py | cirbuk/kublog | e72234244c6076b6ccba30ac991f98d03b085d15 | [
"MIT"
] | null | null | null | tests/usage.py | cirbuk/kublog | e72234244c6076b6ccba30ac991f98d03b085d15 | [
"MIT"
] | null | null | null | tests/usage.py | cirbuk/kublog | e72234244c6076b6ccba30ac991f98d03b085d15 | [
"MIT"
] | null | null | null | from kubric.logging import get_logger
logger = get_logger()
logger.debug("debug")
logger.info("info")
logger.warning("warning")
logger.error("error")
| 18.875 | 37 | 0.761589 | 21 | 151 | 5.380952 | 0.47619 | 0.159292 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07947 | 151 | 7 | 38 | 21.571429 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 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 |
d6a843ba879a768893977ae7335c2cf6698c60a9 | 12,027 | py | Python | src/compas_rv2/datastructures/meshmixin.py | tkmmark/compas-RV2 | bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3 | [
"MIT"
] | null | null | null | src/compas_rv2/datastructures/meshmixin.py | tkmmark/compas-RV2 | bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3 | [
"MIT"
] | null | null | null | src/compas_rv2/datastructures/meshmixin.py | tkmmark/compas-RV2 | bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
# from compas.utilities import pairwise
from compas.geometry import angle_vectors
__all__ = ['MeshMixin']
class MeshMixin(object):
"""Mixin for all mesh-based data structure in RV2."""
def edge_loop(self, uv):
if self.is_edge_on_boundary(*uv):
return self._edge_loop_on_boundary(uv)
edges = []
current, previous = uv
edges.append((previous, current))
while True:
if current == uv[1]:
break
if self.vertex_attribute(current, 'is_fixed'):
break
nbrs = self.vertex_neighbors(current, ordered=True)
if len(nbrs) != 4:
break
i = nbrs.index(previous)
previous = current
current = nbrs[i - 2]
edges.append((previous, current))
edges[:] = [(u, v) for v, u in edges[::-1]]
if edges[0][0] == edges[-1][1]:
return edges
previous, current = uv
while True:
if self.vertex_attribute(current, 'is_fixed'):
break
nbrs = self.vertex_neighbors(current, ordered=True)
if len(nbrs) != 4:
break
i = nbrs.index(previous)
previous = current
current = nbrs[i - 2]
edges.append((previous, current))
return edges
def _edge_loop_on_boundary(self, uv):
edges = []
current, previous = uv
edges.append((previous, current))
while True:
if current == uv[1]:
break
if self.vertex_attribute(current, 'is_fixed'):
break
nbrs = self.vertex_neighbors(current)
if len(nbrs) == 2:
break
nbr = None
for temp in nbrs:
if temp == previous:
continue
if self.is_edge_on_boundary(current, temp):
nbr = temp
break
if nbr is None:
break
previous, current = current, nbr
edges.append((previous, current))
edges[:] = [(u, v) for v, u in edges[::-1]]
if edges[0][0] == edges[-1][1]:
return edges
previous, current = uv
while True:
if self.vertex_attribute(current, 'is_fixed'):
break
nbrs = self.vertex_neighbors(current)
if len(nbrs) == 2:
break
nbr = None
for temp in nbrs:
if temp == previous:
continue
if self.is_edge_on_boundary(current, temp):
nbr = temp
break
if nbr is None:
break
previous, current = current, nbr
edges.append((previous, current))
return edges
def edge_strip(self, uv):
edges = []
v, u = uv
while True:
edges.append((u, v))
fkey = self.halfedge[u][v]
if fkey is None:
break
vertices = self.face_vertices(fkey)
if len(vertices) != 4:
break
i = vertices.index(u)
u = vertices[i - 1]
v = vertices[i - 2]
edges[:] = [(u, v) for v, u in edges[::-1]]
u, v = uv
while True:
fkey = self.halfedge[u][v]
if fkey is None:
break
vertices = self.face_vertices(fkey)
if len(vertices) != 4:
break
i = vertices.index(u)
u = vertices[i - 1]
v = vertices[i - 2]
edges.append((u, v))
return edges
def vertices_on_edge_loop(self, uv):
edges = self.edge_loop(uv)
if len(edges) == 1:
return edges[0]
vertices = [edge[0] for edge in edges]
if edges[-1][1] != edges[0][0]:
vertices.append(edges[-1][1])
return vertices
def corner_vertices(self, tol=160):
vkeys = []
for key in self.vertices_on_boundary():
if self.vertex_degree(key) == 2:
vkeys.append(key)
else:
nbrs = []
for nkey in self.vertex_neighbors(key):
if self.is_edge_on_boundary(key, nkey):
nbrs.append(nkey)
u = (self.edge_vector(key, nbrs[0]))
v = (self.edge_vector(key, nbrs[1]))
if angle_vectors(u, v, deg=True) < tol:
vkeys.append(key)
return vkeys
# def faces_on_edge_loop(self, uv):
# pass
# def faces_on_edge_strip(self, uv):
# pass
# def continuous_vertices_on_boundary(self, uv):
# vertices = []
# current, previous = uv
# vertices.append(current)
# if not self.vertex_attribute(current, 'is_fixed'):
# while True:
# nbrs = self.vertex_neighbors(current)
# for nbr in nbrs:
# if nbr == previous:
# continue
# if self.is_edge_on_boundary(current, nbr):
# vertices.append(nbr)
# break
# if vertices[-1] == vertices[0]:
# break
# if self.vertex_attribute(vertices[-1], 'is_fixed'):
# break
# previous = current
# current = nbr
# vertices[:] = vertices[::-1]
# previous, current = uv
# vertices.append(current)
# if not self.vertex_attribute(current, 'is_fixed'):
# while True:
# nbrs = self.vertex_neighbors(current)
# for nbr in nbrs:
# if nbr == previous:
# continue
# if self.is_edge_on_boundary(current, nbr):
# vertices.append(nbr)
# break
# if vertices[-1] == vertices[0]:
# break
# if self.vertex_attribute(vertices[-1], 'is_fixed'):
# break
# previous = current
# current = nbr
# return vertices
# def continuous_vertices(self, uv):
# """Ordered vertices along the direction of an edge.
# Note that the direction of an edge only makes sense in a quad patch
# of the diagram. Therefore, the search in either direction of the edge
# stops if the next encountered vertex is not 4-valent, or if it is on
# the boundary of the diagram.
# Parameters
# ----------
# uv : tuple
# The edge identifier.
# Returns
# -------
# list
# Ordered vertices along the direction of the edge.
# The first vertex is the vertex at the end of the u-direction.
# The last vertex is the vertex at the end of the v-direction.
# """
# valency = 4
# if self.is_edge_on_boundary(*uv):
# valency = 3
# vertices = []
# current, previous = uv
# while True:
# vertices.append(current)
# nbrs = self.vertex_neighbors(current, ordered=True)
# if len(nbrs) != valency:
# break
# i = nbrs.index(previous)
# previous = current
# current = nbrs[i - 2]
# if valency == 3 and not self.is_edge_on_boundary(previous, current):
# current = nbrs[i - 1]
# vertices[:] = vertices[::-1]
# previous, current = uv
# while True:
# vertices.append(current)
# nbrs = self.vertex_neighbors(current, ordered=True)
# if len(nbrs) != valency:
# break
# i = nbrs.index(previous)
# previous = current
# current = nbrs[i - 2]
# if valency == 3 and not self.is_edge_on_boundary(previous, current):
# current = nbrs[i - 1]
# return vertices
# def continuous_edges(self, uv):
# """Ordered edges along the direction of an edge.
# Note that the direction of an edge only makes sense in a quadpatch
# of the diagram. Therefore, the search in either direction of the edges
# stops if the opposite vertex of the next encountered edge is not
# 4-valent or if it lies on the boundary of the diagram.
# Parameters
# ----------
# uv : tuple
# The edge identifier.
# Returns
# -------
# list
# A list of ordered edge identifiers.
# Edges are aligned head-to-tail.
# Therefore, the orientation of the edges is not necessarily the same as in the diagram.
# The first edge is the edge at the end of the u-direction.
# The last edge is the edge at the end of the
# """
# vertices = self.continuous_vertices(uv)
# return list(pairwise(vertices))
# def parallel_edges(self, uv):
# """Edges parallel to an edge.
# Parallel edges only exist in a quadpatch of the diagram.
# The search in either direction stops as soon as the next edge
# is adjacent to a face that is not a quadrilateral or if it is on
# the boundary of the diagram.
# Parameters
# ----------
# uv : tuple
# The edge identifier.
# Returns
# -------
# list
# A list of parallel edges.
# """
# edges = []
# v, u = uv
# while True:
# fkey = self.halfedge[u][v]
# if fkey is None:
# break
# vertices = self.face_vertices(fkey)
# if len(vertices) != 4:
# break
# edges.append((u, v))
# i = vertices.index(u)
# u = vertices[i - 1]
# v = vertices[i - 2]
# edges[:] = edges[::-1]
# u, v = uv
# while True:
# fkey = self.halfedge[u][v]
# if fkey is None:
# break
# vertices = self.face_vertices(fkey)
# if len(vertices) != 4:
# break
# edges.append((u, v))
# i = vertices.index(u)
# u = vertices[i - 1]
# v = vertices[i - 2]
# return edges
# def parallel_faces(self, uv):
# """The faces along the direction of parallel edges.
# Parameters
# ----------
# uv : tuple
# The edge identifier.
# Returns
# -------
# list
# A list of parallel faces.
# """
# faces = []
# v, u = uv
# while True:
# fkey = self.halfedge[u][v]
# if fkey is None:
# break
# vertices = self.face_vertices(fkey)
# if len(vertices) != 4:
# break
# faces.append(fkey)
# i = vertices.index(u)
# u = vertices[i - 1]
# v = vertices[i - 2]
# faces[:] = faces[::-1]
# u, v = uv
# while True:
# fkey = self.halfedge[u][v]
# if fkey is None:
# break
# vertices = self.face_vertices(fkey)
# if len(vertices) != 4:
# break
# faces.append(fkey)
# i = vertices.index(u)
# u = vertices[i - 1]
# v = vertices[i - 2]
# return faces
# ==============================================================================
# Main
# ==============================================================================
if __name__ == '__main__':
pass
| 31.484293 | 100 | 0.469028 | 1,285 | 12,027 | 4.296498 | 0.105058 | 0.054338 | 0.039848 | 0.019562 | 0.73628 | 0.718167 | 0.683572 | 0.669444 | 0.662923 | 0.634849 | 0 | 0.010432 | 0.418143 | 12,027 | 381 | 101 | 31.566929 | 0.778508 | 0.512181 | 0 | 0.737226 | 0 | 0 | 0.008642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036496 | false | 0.007299 | 0.029197 | 0 | 0.138686 | 0.007299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6b05026ec9a125bbc74469dd8691cb3ddada74d | 195 | py | Python | shaman/providers/models.py | walidsa3d/shaman | 1e1ae9f418e0cd9afcd7bbd38827c8913520974b | [
"MIT"
] | 2 | 2015-07-15T21:21:52.000Z | 2021-11-29T02:34:27.000Z | shaman/providers/models.py | walidsa3d/movieinfo | 1e1ae9f418e0cd9afcd7bbd38827c8913520974b | [
"MIT"
] | null | null | null | shaman/providers/models.py | walidsa3d/movieinfo | 1e1ae9f418e0cd9afcd7bbd38827c8913520974b | [
"MIT"
] | null | null | null | class Movie(object):
def __init__(self):
self.title = ""
self.id = ""
self.plot = ""
self.year = ""
def __str__(self):
return str(self.__dict__)
| 17.727273 | 33 | 0.497436 | 21 | 195 | 4.047619 | 0.619048 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358974 | 195 | 10 | 34 | 19.5 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d6bceab6f8adfd45aa2d202c5e52510b4aada623 | 904 | py | Python | app/models.py | Aaron3c/fast-stream-postings | 38fcb7782f5979860dda66727fafc93748a1794a | [
"MIT"
] | null | null | null | app/models.py | Aaron3c/fast-stream-postings | 38fcb7782f5979860dda66727fafc93748a1794a | [
"MIT"
] | 56 | 2018-07-18T15:22:23.000Z | 2021-08-02T05:16:50.000Z | app/models.py | Aaron3c/fast-stream-postings | 38fcb7782f5979860dda66727fafc93748a1794a | [
"MIT"
] | 1 | 2018-08-01T12:55:46.000Z | 2018-08-01T12:55:46.000Z | import datetime
import random
import statistics
from typing import Dict, List, Any, Union, Set, Tuple
import sys
from sqlalchemy.ext.declarative import declarative_base, declared_attr
from app import db
from werkzeug.security import generate_password_hash, check_password_hash
from time import time
from flask import current_app, json
class Role(db.Model):
id = db.Column(db.String, primary_key=True)
title = db.Column(db.Text)
description = db.Column(db.Text)
deliverables = db.Column(db.Text)
specialism = db.Column(db.String)
family = db.Column(db.String)
organisation = db.Column(db.Text) # this should be linked to another table
address = db.Column(db.Text) # this should be linked to another table
def generate_key(self, prospective_key):
existing_keys = self.query(Role.id).all()
while prospective_key in existing_keys:
pass
| 30.133333 | 79 | 0.736726 | 131 | 904 | 4.984733 | 0.496183 | 0.098009 | 0.122511 | 0.107198 | 0.140888 | 0.140888 | 0.140888 | 0.140888 | 0.140888 | 0.140888 | 0 | 0 | 0.183628 | 904 | 29 | 80 | 31.172414 | 0.884824 | 0.085177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.434783 | 0 | 0.869565 | 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 |
d6e29e5e5f38329f6747473eb35b8565632517b0 | 159 | py | Python | lists_dictionary/Match Numbers.py | vasetousa/Python-fundamentals | 3180c03de28b4f4d36d966221719069a7e18e521 | [
"MIT"
] | null | null | null | lists_dictionary/Match Numbers.py | vasetousa/Python-fundamentals | 3180c03de28b4f4d36d966221719069a7e18e521 | [
"MIT"
] | null | null | null | lists_dictionary/Match Numbers.py | vasetousa/Python-fundamentals | 3180c03de28b4f4d36d966221719069a7e18e521 | [
"MIT"
] | null | null | null | import re
text = input()
pattern = r"(^|(?<=\s))-?\d+(\.\d+)?($|(?=\s))"
matched_text = [el.group() for el in re.finditer(pattern, text)]
print(*matched_text) | 26.5 | 64 | 0.584906 | 24 | 159 | 3.791667 | 0.625 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106918 | 159 | 6 | 65 | 26.5 | 0.640845 | 0 | 0 | 0 | 0 | 0 | 0.2125 | 0.2125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
d6e3f604a7ef9389614da322f0dc63f375f55691 | 787 | py | Python | leetcode/1009 Complement of Base 10 Integer.py | jaredliw/python-question-bank | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2021-04-08T07:49:15.000Z | 2021-04-08T07:49:15.000Z | leetcode/1009 Complement of Base 10 Integer.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | null | null | null | leetcode/1009 Complement of Base 10 Integer.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2022-01-23T02:12:24.000Z | 2022-01-23T02:12:24.000Z | class Solution(object):
def bitwiseComplement(self, N):
"""
:type N: int
:rtype: int
"""
# Runtime: 12 ms
# Memory: 13.4 MB
ans = 1
while ans < N:
ans <<= 1
ans += 1
return ans ^ N
from math import log
class Solution(object):
def bitwiseComplement(self, N):
"""
:type N: int
:rtype: int
"""
# Runtime: 8 ms
# Memory: 13.2 MB
return 1 if N == 0 else N ^ (2 ** int(log(N, 2) + 1) - 1)
class Solution(object):
def bitwiseComplement(self, N):
"""
:type N: int
:rtype: int
"""
# Runtime: 20 ms
# Memory: 13.4 MB
return 1 if N == 0 else N ^ (2 ** N.bit_length() - 1)
| 20.179487 | 65 | 0.443456 | 99 | 787 | 3.515152 | 0.333333 | 0.112069 | 0.163793 | 0.189655 | 0.755747 | 0.686782 | 0.686782 | 0.686782 | 0.686782 | 0.577586 | 0 | 0.060134 | 0.429479 | 787 | 38 | 66 | 20.710526 | 0.714922 | 0.212198 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.714286 | 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 |
d6edeed2f01557daeae83a5cfd095758898333a1 | 1,588 | py | Python | chemgrid_game/mol_archive.py | mekhlos/chemgrid | edc0110eeb9d5b9be68f669228e342839da90467 | [
"MIT"
] | null | null | null | chemgrid_game/mol_archive.py | mekhlos/chemgrid | edc0110eeb9d5b9be68f669228e342839da90467 | [
"MIT"
] | null | null | null | chemgrid_game/mol_archive.py | mekhlos/chemgrid | edc0110eeb9d5b9be68f669228e342839da90467 | [
"MIT"
] | null | null | null | from typing import Dict
from typing import List
from typing import Optional
import numpy as np
from chemgrid_game.chemistry.molecule import Molecule
class MolArchive:
def __init__(
self,
initial_mols: List[Molecule] = (),
max_len: Optional[int] = None
):
self.max_len = np.inf if max_len is None else max_len
self.hashes = []
self.hash2mol = {}
for mol in initial_mols:
self.add(mol)
def add(self, mol: Molecule, **kwargs):
self[hash(mol)] = mol
def get(self, mol_hash: Optional[int] = None, pos: Optional[int] = None) -> Molecule:
if mol_hash is None:
mol_hash = self.hashes[pos]
return self[mol_hash]
def get_molecules(self) -> List[Molecule]:
return [self[h] for h in self.hashes]
def get_dict(self, hashes: List[int]) -> Dict[int, Molecule]:
return {h: self[h] for h in hashes}
def __setitem__(self, mol_hash: int, molecule: Molecule):
if len(self) < self.max_len:
if mol_hash not in self.hash2mol:
self.hashes.append(mol_hash)
self.hash2mol[mol_hash] = molecule
def __getitem__(self, mol_hash) -> Molecule:
return self.hash2mol[mol_hash]
def __len__(self) -> int:
return len(self.hashes)
def __contains__(self, x) -> bool:
return x in self.hash2mol
def __repr__(self):
return f"{self.__class__.__name__} with {len(self)} molecules"
def reset(self):
self.hashes.clear()
self.hash2mol.clear()
| 26.915254 | 89 | 0.610831 | 212 | 1,588 | 4.330189 | 0.254717 | 0.076253 | 0.04793 | 0.019608 | 0.023965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005277 | 0.284005 | 1,588 | 58 | 90 | 27.37931 | 0.802111 | 0 | 0 | 0 | 0 | 0 | 0.032746 | 0.015743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.119048 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d6f6853b6614c6e3e2c38b3b833075ef7882142d | 305 | py | Python | PythonExercicios/ex013.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | PythonExercicios/ex013.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | PythonExercicios/ex013.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | # Faça um algoritmo que leia o salário de um
# funcionário e mostre seu novo salário com 15% de aumento.
s = float(input('Digite o valor do seu salário: '))
a = (15 / 100) * s
print('O seu novo salário é: {}.'.format(a + s))
print('\n' * 2)
print('O seu novo salário é: {}.'.format((15 / 100) * s + s))
| 33.888889 | 61 | 0.629508 | 55 | 305 | 3.490909 | 0.527273 | 0.109375 | 0.21875 | 0.135417 | 0.28125 | 0.28125 | 0.28125 | 0 | 0 | 0 | 0 | 0.053498 | 0.203279 | 305 | 8 | 62 | 38.125 | 0.736626 | 0.331148 | 0 | 0 | 0 | 0 | 0.412935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ba3be35cd94f144acc54870add58da6f00599afb | 234 | py | Python | Practice/ZOZ.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/ZOZ.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/ZOZ.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
n,k=map(int,input().split())
a=list(map(int,input().split()))
s=sum(a)
c=0
for i in range(n):
if(a[i]+k>s-a[i]):
#print([i])
c+=1
print(c) | 23.4 | 37 | 0.423077 | 40 | 234 | 2.45 | 0.475 | 0.244898 | 0.22449 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.346154 | 234 | 10 | 38 | 23.4 | 0.627451 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
ba464d37d7d84e2c61160a5e96122b6a66293439 | 25,854 | py | Python | rangeforce.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | rangeforce.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | rangeforce.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright © 2019-2020, Matjaž Guštin <dev@matjaz.it> <https://matjaz.it>.
# Released under the BSD 3-Clause License
"""Rangeforce, a developer-friendly check for "is this value
within the allowed range?" with user-friendly error messages.
Rangeforce aims to simplify the input validation process where the error
message of the exception is shown directly to the user and has to be
understandable, which may happened in a command line interface or when using
a Python program interactively from a Python shell.
For example:
value = int(input('How many hours per day do you sleep? '))
value = rangeforce.limited(value, 0, 24, name='Hours of sleep')
# Now value is valid. Otherwise an error message like this appears:
# rangeforce.RangeError: Hours of sleep must be in range [0, 24]. 25
found instead.
# Especially useful for values that need to fit within an integer type:
value = rangeforce.uint16(int(input('Type a 16-bit value: ')))
rangeforce.RangeError: Value must be in range [0, 65535]. 70000
found instead.
"""
import math
__VERSION__ = '1.1.0'
class RangeError(Exception):
"""Value outside of the allowed range.
A custom exception type raised by Rangeforce functions when the validation
of the values fails, that is when the values are not within the acceptable
bounds.
"""
pass
def clip(value, min, max):
"""Clips (limits) the value to the given limits.
The output is at least `min`, at most `max` and `value` if that value
is between the `min` and `max`.
Args:
value: to be limited to [min, max]
min: smallest acceptable value
max: greatest acceptable value
Returns:
the given value if within [min, max] or min if value is smaller than
min or max if value is greater than max.
"""
if value < min:
return min
elif value > max:
return max
else:
return value
def exactly(value, expected, name='Value', dtype=None, ex=RangeError):
"""Validates that value is exactly equal to another one.
If the value is valid, it returns the value itself: this is also the case
for comparing NaN to NaN, to avoid having a separate function for it.
In other words: exactly(NaN, NaN) is valid, does not raise exceptions.
If the value is not valid, it raises an exception of type ex with an
understandable error message that includes expected and failing value.
The name of the value can be altered for a customized error message.
The data type can be enforced if specified.
The exception class can be altered to a custom one.
Args:
value: the value to be validated to be within [min, max]
expected: only acceptable value. Not None. Can be NaN.
name: customizable name of the value that appears in the error message
dtype: optional data type the value has to be
ex: exception type to throw in case the value is out of range
Returns:
the given value if matching the expected value and, optionally, if of
the correct data type
Raises:
RangeError or type(ex): if the value is not matching the expected one.
TypeError: if the value is not of the acceptable data type, if
specified.
Examples:
>>> exactly(0.5, 0.5) # Valid value
0.5
>>> exactly(500, 30) # Incorrect value
rangeforce.RangeError: Value must be exactly 30. 500
found instead.
>>> exactly(50, 7, name='Days in a week')
rangeforce.RangeError: Days in a week must be exactly 7. 50 found
instead.
>>> exactly(42.0, math.nan)
rangeforce.RangeError: Value must be exactly NaN. 42.0
found instead..
>>> exactly(math.nan, math.nan) # Valid equality, also for NaN
nan
>>> exactly(7.0, 7, name='Days in a week', dtype=int)
TypeError: Days in a week must be of type int. float found
instead.
>>> exactly(7.0, 7, name='Days in a week', ex=ValueError)
ValueError: Days in a week must be exactly 7. 50 found instead.
"""
_validate_type(name, value, dtype)
try:
if math.isnan(expected):
if math.isnan(value):
# NaN is EQUAL to NaN for this function.
return value
else:
raise ex(
'{:} must be exactly NaN. '
'{:} found instead.'.format(name, value)
)
except TypeError:
# Suppress math.isnan() applied to non-floats and just go on.
pass
if value != expected:
raise ex(
'{:} must be exactly {:}. '
'{:} found instead.'.format(name, expected, value)
)
else:
return value
def limited(value, min, max, name='Value', dtype=None, ex=RangeError):
"""Validates that value is within the [min, max] interval.
If the value is valid, it returns the value itself.
If the value is not valid, it raises an exeption with an understandable
error message that includes expected range and failing value.
Either min or max can be set to None for an unbound validity interval, i.e.
the value only has to be smaller or greater than something, not within a
closed interval.
The name of the value can be altered for a customized error message.
The data type can be enforced if specified.
The exception class can be altered to a custom one.
Args:
value: the value to be validated to be within [min, max]
min: smallest acceptable value. Can be None if max is not None.
Can be +inf, -inf. Cannot be NaN. Must be <= max.
max: greatest acceptable value. Can be None if min is not None.
Can be +inf, -inf. Cannot be NaN. Must be >= min.
name: customizable name of the value that appears in the error message
dtype: optional data type the value has to be
ex: exception type to throw in case the value is out of range
Returns:
the given value if within [min, max] and, optionally, of the correct
data type
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not of the acceptable data type, if
specified.
ValueError: if the min, max extremes are not valid (e.g. both None,
min greater than max, NaN etc.)
Examples:
>>> limited(0.5, 0, 1) # Valid value
0.5
>>> limited(500, 0.1, 42) # Value out of range
rangeforce.RangeError: Value must be in range [0.1, -42]. 500
found instead.
>>> limited(50, 0, 24, name='Hours in a day')
rangeforce.RangeError: Hours in a day must be in range [0, 24]. 50
found instead.
>>> limited(-1, 0, None, name='Earth satellites')
rangeforce.RangeError: Earth satellites must be in range [0, +inf[.
-1 found instead.
>>> limited(1.1, 0, None, name='Earth satellites', dtype=int)
TypeError: Earth satellites must be of type int. float found
instead.
>>> limited(1.1, 0, None, name='Earth satellites', ex=ValueError)
ValueError: Earth satellites must be in range [0, +inf[. -1 found
instead.
"""
_validate_interval(min, max)
_validate_type(name, value, dtype)
if min is None and max is not None and (value > max or math.isnan(value)):
raise ex(
'{:} must be in range ]-inf, {:}]. '
'{:} found instead.'.format(name, max, value)
)
elif max is None and min is not None and (
value < min or math.isnan(value)):
raise ex(
'{:} must be in range [{:}, +inf[. '
'{:} found instead.'.format(name, min, value)
)
elif min is not None and max is not None and (
value < min or value > max or math.isnan(value)):
raise ex(
'{:} must be in range [{:}, {:}]. '
'{:} found instead.'.format(name, min, max, value)
)
else:
return value
def _validate_interval(min, max):
if min is None and max is None:
raise ValueError(
'[min, max] interval must be closed on at least one extreme.')
elif min is not None and math.isnan(min):
raise ValueError('NaN is not a valid interval lower bound.')
elif max is not None and math.isnan(max):
raise ValueError('NaN is not a valid interval upper bound.')
elif min is not None and max is not None and min > max:
raise ValueError(
'Interval extremes [{:}, {:}] not in order.'.format(min, max))
def _validate_type(name, value, dtype):
if dtype is not None and not isinstance(value, dtype):
raise TypeError(
'{:} must be of type {:}. '
'{:} found instead.'.format(name, dtype.__name__,
type(value).__name__)
)
def negative_int(value, name='Value', ex=RangeError):
"""Validates that value is negative (< 0) and of type int.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within ]-inf, 0[
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value if < 0
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, None, -1, name, dtype=int, ex=ex)
def nonpositive_int(value, name='Value', ex=RangeError):
"""Validates that value is non-positive (<= 0) and of type int.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within ]-inf, 0]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value if <= 0
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, None, 0, name, dtype=int, ex=ex)
def positive_int(value, name='Value', ex=RangeError):
"""Validates that value is positive (> 0) and of type int.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within ]0, +inf[
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value if > 0
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, 1, None, name, dtype=int, ex=ex)
def nonnegative_int(value, name='Value', ex=RangeError):
"""Validates that value is non-negative (>= 0) and of type int.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [0, +inf[
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value if >= 0
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, 0, None, name, dtype=int, ex=ex)
def uint8(value, name='Value', ex=RangeError):
"""Validates that value fits in an 8-bit unsigned integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [0, 255]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 8 bits (unsigned)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, 0, 0xFF, name, dtype=int, ex=ex)
def uint16(value, name='Value', ex=RangeError):
"""Validates that value fits in a 16-bit unsigned integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [0, 65535]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 16 bits (unsigned)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, 0, 0xFFFF, name, dtype=int, ex=ex)
def uint32(value, name='Value', ex=RangeError):
"""Validates that value fits in a 32-bit unsigned integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [0, 4294967295]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 32 bits (unsigned)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, 0, 0xFFFFFFFF, name, dtype=int, ex=ex)
def uint64(value, name='Value', ex=RangeError):
"""Validates that value fits in a 64-bit unsigned integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [0, 18446744073709551615]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 64 bits (unsigned)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, 0, 0xFFFFFFFFFFFFFFFF, name, dtype=int, ex=ex)
def uint_bits(value, bits, name='Value', ex=RangeError):
"""Validates that value fits in an unsigned integer of specified bitlength.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [0, 2**bits-1]
bits: integer, positive number of bits determining the size and thus
the range of the value
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in the given amount of bits
(unsigned)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, 0, (1 << bits) - 1, name, dtype=int, ex=ex)
def int8(value, name='Value', ex=RangeError):
"""Validates that value fits in an 8-bit signed integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [-128, 127]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 8 bits (signed)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, -0x80, 0x7F, name, dtype=int, ex=ex)
def int16(value, name='Value', ex=RangeError):
"""Validates that value fits in a 16-bit signed integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [-32768, 32767]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 16 bits (signed)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, -0x8000, 0x7FFF, name, dtype=int, ex=ex)
def int32(value, name='Value', ex=RangeError):
"""Validates that value fits in a 32-bit signed integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [-2147483648, 2147483647]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 32 bits (signed)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, -0x80000000, 0x7FFFFFFF, name, dtype=int, ex=ex)
def int64(value, name='Value', ex=RangeError):
"""Validates that value fits in a 16-bit signed integer.
If the value is valid, it returns the value itself.
If the value is not valid, it raises a RangeError with an understandable
error message that includes expected range and failing value.
Args:
value: the value to be validated to be within [-9223372036854775808,
9223372036854775807]
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given value can be expressed in 64 bits (signed)
Raises:
RangeError or type(ex): if the value is not within the acceptable
range.
TypeError: if the value is not an integer.
"""
return limited(value, -0x8000000000000000, 0x7FFFFFFFFFFFFFFF, name,
dtype=int, ex=ex)
def limited_len(sized, min, max, name='value', ex=RangeError):
"""Validates that value has a length within the [min, max] interval.
If the sized value is valid, it returns the value itself.
If the sized value is not valid, it raises an exception with an
understandable error message that includes expected length range and
failing sized value.
Either min or max can be set to None for an unbound validity
interval, i.e. the value only has to have a length smaller or greater than
something, not within a closed interval.
The name of the sized value can be altered for a customized error message.
The exception class can be altered to a custom one.
Args:
sized: the value whose length is to be validated to be within
[min, max]
min: smallest acceptable length. Can be None if max is not None.
Can be +inf, -inf. Cannot be NaN. Must be <= max and >= 0.
max: greatest acceptable length. Can be None if min is not None.
Can be +inf, -inf. Cannot be NaN. Must be >= min and >= 0.
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given sized value if has length within [min, max]
Raises:
RangeError or type(ex): if the value does not have a length within the
acceptable range.
ValueError: if the min, max extremes are not valid (e.g. negative,
both None, min greater than max, NaN etc.)
Examples:
>>> limited_len([1, 2, 3], 0, 10) # Valid value
[1, 2, 3]
>>> limited_len([1, 2, 3], 0, 2) # Value out of range
rangeforce.RangeError: Length of value must be in range [0,
2]. 3 found instead.
>>> limited_len([1, 2, 3, 4], 0, 3, name='groups')
rangeforce.RangeError: Length of groups must be in range [0,
3]. 4 found instead.
>>> limited_len([1, 2, 3], 10, None)
rangeforce.RangeError: Length of value must be in range [10,
+inf[. 3 found instead.
>>> limited_len([1, 2, 3], 10, 20, ex=ValueError)
ValueError: Length of value must be in range [10, 20]. 3 found
instead.
"""
_validate_non_negative_interval_extremes(min, max)
limited(len(sized), min, max, name='Length of ' + name, ex=ex)
return sized
def _validate_non_negative_interval_extremes(min, max):
if min is not None and min < 0:
raise ValueError(
'Length lower bound must be non-negative. '
'{:} found instead.'.format(min)
)
elif max is not None and max < 0:
raise ValueError(
'Length upper bound must be non-negative. '
'{:} found instead.'.format(max)
)
def exact_len(sized, expected, name='value', ex=RangeError):
"""Validates that value has an exact length.
If the sized value is valid, it returns the value itself.
If the sized value is not valid, it raises an exception with an
understandable error message that includes expected length and failing
sized value.
The name of the sized value can be altered for a customized error message.
The exception class can be altered to a custom one.
Args:
sized: the value whose length is to be validated to be exactly as
expected.
expected: only acceptable length. Must be an integer >= 0.
name: customizable name of the value that appears in the error message
ex: exception type to throw in case the value is out of range
Returns:
the given sized value if has length matching the expected
Raises:
RangeError or type(ex): if the value does not have a length matching
the expected.
TypeError: if the expected length is not an integer
ValueError: if the expected length is negative
Examples:
>>> exact_len([1, 2, 3], 3) # Valid value
[1, 2, 3]
>>> exact_len([1, 2, 3], 2)
rangeforce.RangeError: Length of value must be exactly 2. 3
found instead.
>>> exact_len([1], 2, name='pairs')
rangeforce.RangeError: Length of pairs must be exactly 2. 1
found instead.
>>> exact_len([1], 2, name='pairs', ex=ValueError)
ValueError: Length of pairs must be exactly 2. 1 found instead.
"""
length = len(sized)
_validate_expected_length(expected)
if length != expected:
raise ex(
'Length of {:} must be exactly {:}. '
'{:} found instead.'.format(name, expected, length)
)
return sized
def _validate_expected_length(expected):
if not isinstance(expected, int):
raise TypeError(
'Expected length must be an integer. '
'{:} found instead.'.format(type(expected).__name__)
)
elif expected < 0:
raise ValueError(
'Expected length must be non-negative. '
'{:} found instead.'.format(expected)
)
| 38.076583 | 79 | 0.631198 | 3,718 | 25,854 | 4.373857 | 0.080689 | 0.067888 | 0.04735 | 0.044275 | 0.775058 | 0.748862 | 0.709384 | 0.688538 | 0.642479 | 0.63178 | 0 | 0.023099 | 0.298406 | 25,854 | 678 | 80 | 38.132743 | 0.873367 | 0.72395 | 0 | 0.203008 | 0 | 0 | 0.151885 | 0 | 0 | 0 | 0.020467 | 0 | 0 | 1 | 0.165414 | false | 0.015038 | 0.007519 | 0 | 0.338346 | 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 |
ba55a554104f72540a912913049164e2cec80c99 | 164 | py | Python | examples/make_html.py | kazetof/fightml | 5ce43735709170e50373f7b97676ac7e38ab73e5 | [
"MIT"
] | 1 | 2019-10-05T14:28:15.000Z | 2019-10-05T14:28:15.000Z | examples/make_html.py | kazetof/fightml | 5ce43735709170e50373f7b97676ac7e38ab73e5 | [
"MIT"
] | null | null | null | examples/make_html.py | kazetof/fightml | 5ce43735709170e50373f7b97676ac7e38ab73e5 | [
"MIT"
] | null | null | null | root_dir = "./outputs"
from fig_html.utils import SampleFiguresMaker
SampleFiguresMaker().make(root_dir)
from fig_html import HTMLMaker
HTMLMaker().make(root_dir) | 23.428571 | 45 | 0.817073 | 22 | 164 | 5.863636 | 0.5 | 0.162791 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 164 | 7 | 46 | 23.428571 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 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 |
ba90dbea0d16894871d47a941b3b5762cc964501 | 6,163 | py | Python | benchmarks/adult/real_biased_removal_experiment/real_biased_removal_parallel.py | vsahil/influence-duplicate | ae5bc77be6dcb7d69054a520733c373d833552da | [
"MIT"
] | null | null | null | benchmarks/adult/real_biased_removal_experiment/real_biased_removal_parallel.py | vsahil/influence-duplicate | ae5bc77be6dcb7d69054a520733c373d833552da | [
"MIT"
] | null | null | null | benchmarks/adult/real_biased_removal_experiment/real_biased_removal_parallel.py | vsahil/influence-duplicate | ae5bc77be6dcb7d69054a520733c373d833552da | [
"MIT"
] | 1 | 2021-11-03T06:53:18.000Z | 2021-11-03T06:53:18.000Z | import sys, os
import multiprocessing, subprocess
# def bar(x):
# for i in range(x*10000000):
# pass
# print('%i done\n' % x, end='')
# return 0
from itertools import product
# def exclude_experiments():
# setting = int(sys.argv[1])
def experiment_command(setting, removal_percent):
# os.system(f"python train_all_permutations.py {index}")
# os.system(f"python -W ignore train_all_permutations.py {setting} {removal_percent}")
os.system(f"python remove_real_biased_points.py {setting} {removal_percent}")
# process = subprocess.check_output(['python', 'train_all_permutations.py', str(index)], stdout=subprocess.PIPE)
pool = multiprocessing.Pool(81)
# l = 20 * 3 * 2 * 2
l = [i for i in range(30, 33)] # upto 25% removal in steps of 0.2%
# mr = pool.map_async(run_command, l)
settings = [i for i in range(6, 12)] # we now only have 12 hyper-parameters
mr = pool.starmap_async(experiment_command, product(settings, l))
while not mr.ready():
sys.stdout.flush()
mr.wait(0.1)
print("DONE!")
# exclude_experiments()
# def reweighted_german_experiment():
# pool = multiprocessing.Pool(4)
# l = 20 * 3 * 2 * 2
# # remaining = [4, 5, 9, 10, 11, 16, 17, 21, 22, 23, 28, 29, 33, 34, 35, 40, 41, 45, 46, 47, 52, 53, 57, 58, 59, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239]
# # right_now = [4, 16, 28, 40, 52, 64, 69, 74, 79, 84, 89]
# # remaining = [5, 9, 10, 11, 17, 21, 22, 23, 29, 33, 34, 35, 41, 45, 46, 47, 53, 57, 58, 59, 65, 66, 67, 68, 70, 71, 72, 73, 75, 76, 77, 78, 80, 81, 82, 83, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144]
# # bad_remaining = [8, 10, 15, 17, 19, 21, 23, 24, 25, 26, 27, 28, 30, 32, 34, 46, 63, 65, 67, 69, 71, 75, 79, 86, 88, 90, 92, 94, 97, 105, 107, 108, 110, 112, 114, 118, 128, 132, 136, 138, 142, 146, 148, 150, 158, 163, 166, 167, 168, 169, 175, 180, 182, 184, 186, 188, 190, 192, 195, 196, 199, 200, 201, 202, 203, 208, 214, 228, 238, 239]
# # even_bad_remaining = [8, 10, 15, 17, 19, 21, 23, 24, 34, 63, 65, 67, 69, 71, 97, 105, 107, 132, 136, 138, 142, 166, 168, 180, 182, 184, 186, 188, 190, 192, 195, 196, 200, 201, 202, 228, 238]
# # even_bad_remaining = [27, 46, 75, 86, 88, 90, 92, 94, 108, 110, 112, 114, 118, 146, 148, 150, 163, 167, 208, 214, 239]
# # bad_pts = [8, 10, 15, 17, 19, 21, 23, 24, 34, 63, 65, 67, 69, 71, 97, 105, 107, 132, 136, 138, 142, 166, 168, 180, 182, 184, 186, 188, 190, 192, 195, 196, 200, 201, 202, 228, 238]
# run_for_sorted_points = [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 13, 14, 16, 18, 20, 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 64, 66, 68, 70, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98, 99, 100, 101, 102, 103, 104, 106, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 137, 139, 140, 141, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 183, 185, 187, 189, 191, 193, 194, 197, 198, 199, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 229, 230, 231, 232, 233, 234, 235, 236, 237, 239]
# assert(len(run_for_sorted_points) == 203)
# print(len(bad_remaining), len(even_bad_remaining))
# exit(0)
# remaining = remaining[:20]
# for tot in remaining:
# filename = f"discm_points_results/model{tot}_results.txt"
# if os.path.exists(filename):
# os.system(f'rm {filename}')
# num_cores = 11
# Parallel(n_jobs=num_cores)(delayed(run_command)(ind) for ind in remaining)
# def run_command(setting):
# os.system(f"python train_all_permutations.py {setting}")
# os.system(f"python train_german_credit.py {index}")
# process = subprocess.check_output(['python', 'train_all_permutations.py', str(index)], stdout=subprocess.PIPE)
# pool = multiprocessing.Pool(11)
# l = [i for i in range(240)]
# mr = pool.map_async(run_command, l)
# # # mr = pool.map_async(run_command, range(60, 72))
# while not mr.ready():
# sys.stdout.flush()
# mr.wait(0.1)
# print("DONE!")
# for i in remaining:
# p = multiprocessing.Process(target=run_command, args=(i,))
# p.start()
# p.join()
# def main():
# names = ['Brown', 'Wilson', 'Bartlett', 'Rivera', 'Molloy', 'Opie']
# # with multiprocessing.Pool(processes=3) as pool:
# # results = pool.starmap(merge_names, product(names, repeat=2))
# # print(results)
# pool = multiprocessing.Pool(11)
# # l = 20 * 3 * 2 * 2
# # l = [i for i in range(5)]
# mr = pool.starmap_async(merge_names, product(names, [i for i in range(7, 10)]))
# # mr = pool.map_async(merge_names, l)
# while not mr.ready():
# sys.stdout.flush()
# mr.wait(0.1)
# if __name__ == '__main__':
# reweighted_german_experiment()
| 64.197917 | 961 | 0.598085 | 1,100 | 6,163 | 3.284545 | 0.328182 | 0.00775 | 0.011625 | 0.018267 | 0.538611 | 0.492665 | 0.473014 | 0.43814 | 0.417658 | 0.395239 | 0 | 0.373165 | 0.215155 | 6,163 | 95 | 962 | 64.873684 | 0.373785 | 0.87717 | 0 | 0 | 0 | 0 | 0.10089 | 0.041543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bacb2bb2a915c243deb894777cd4d09a56423b30 | 1,286 | py | Python | exercises/point-mutations/point_mutations_test.py | haithamk/python-exercism | 8166a98ba771e0d527efdda421d3d9e741f0459b | [
"MIT"
] | 1 | 2021-05-15T19:59:04.000Z | 2021-05-15T19:59:04.000Z | exercises/point-mutations/point_mutations_test.py | toroad/python | ce085c81a82ae5fb460fe166323dbbaa5a2588c5 | [
"MIT"
] | null | null | null | exercises/point-mutations/point_mutations_test.py | toroad/python | ce085c81a82ae5fb460fe166323dbbaa5a2588c5 | [
"MIT"
] | 2 | 2018-03-03T08:32:12.000Z | 2019-08-22T11:55:53.000Z | import unittest
from point_mutations import hamming_distance
class DNATest(unittest.TestCase):
def test_no_difference_between_empty_strands(self):
self.assertEqual(hamming_distance('', ''), 0)
def test_no_difference_between_identical_strands(self):
self.assertEqual(hamming_distance('GGACTGA', 'GGACTGA'), 0)
def test_complete_hamming_distance_in_small_strand(self):
self.assertEqual(hamming_distance('ACT', 'GGA'), 3)
def test_hamming_distance_in_off_by_one_strand(self):
self.assertEqual(
hamming_distance('GGACGGATTCTGACCTGGACTAATTTTGGGG',
'AGGACGGATTCTGACCTGGACTAATTTTGGGG'), 19)
def test_small_hamming_distance_in_middle_somewhere(self):
self.assertEqual(hamming_distance('GGACG', 'GGTCG'), 1)
def test_larger_distance(self):
self.assertEqual(hamming_distance('ACCAGGG', 'ACTATGG'), 2)
def test_ignores_extra_length_on_other_strand_when_longer(self):
self.assertEqual(hamming_distance('AAACTAGGGG', 'AGGCTAGCGGTAGGAC'), 3)
def test_ignores_extra_length_on_original_strand_when_longer(self):
self.assertEqual(
hamming_distance('GACTACGGACAGGGTAGGGAAT', 'GACATCGCACACC'), 5)
if __name__ == '__main__':
unittest.main()
| 34.756757 | 79 | 0.732504 | 142 | 1,286 | 6.176056 | 0.422535 | 0.205245 | 0.173318 | 0.237172 | 0.497149 | 0.360319 | 0.114025 | 0.114025 | 0 | 0 | 0 | 0.008443 | 0.171073 | 1,286 | 36 | 80 | 35.722222 | 0.814259 | 0 | 0 | 0.083333 | 0 | 0 | 0.136858 | 0.066096 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bad8da8c74115adf04aff61e6ad4fdc3de47e1d4 | 122 | py | Python | sapsan/core/cli/templates/readme.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 11 | 2020-05-25T18:59:02.000Z | 2021-11-30T15:27:43.000Z | sapsan/core/cli/templates/readme.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 19 | 2020-04-17T05:54:09.000Z | 2021-09-14T05:24:17.000Z | sapsan/core/cli/templates/readme.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 3 | 2021-09-01T16:11:18.000Z | 2021-09-06T07:39:06.000Z | TEMPLATE = """
{name}
====
README
"""
def get_readme_template(name: str) -> str:
return TEMPLATE.format(name=name)
| 11.090909 | 42 | 0.639344 | 15 | 122 | 5.066667 | 0.533333 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172131 | 122 | 10 | 43 | 12.2 | 0.752475 | 0 | 0 | 0 | 0 | 0 | 0.172131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.