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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3bab2d583dbdb20d52e61488899227c07f7c4954 | 30,867 | py | Python | blocks/bricks/sequence_generators.py | KIKOcaoyue/blocks | dfbeb400cfacfc1abe75e377cc03c1bf61b9c2fa | [
"BSD-3-Clause"
] | 1,067 | 2015-05-16T23:39:15.000Z | 2019-02-10T13:33:00.000Z | blocks/bricks/sequence_generators.py | loveisbasa/blocks | 7f380deec8f810b390880e6a4de836115e6e478d | [
"BSD-3-Clause"
] | 577 | 2015-05-16T18:52:53.000Z | 2018-11-27T15:31:09.000Z | blocks/bricks/sequence_generators.py | loveisbasa/blocks | 7f380deec8f810b390880e6a4de836115e6e478d | [
"BSD-3-Clause"
] | 379 | 2015-05-21T03:24:04.000Z | 2019-01-29T02:55:00.000Z | """Sequence generation framework.
Recurrent networks are often used to generate/model sequences.
Examples include language modelling, machine translation, handwriting
synthesis, etc.. A typical pattern in this context is that
sequence elements are generated one often another, and every generated
element is fed back in... | 35.357388 | 78 | 0.655846 | 3,626 | 30,867 | 5.458632 | 0.146167 | 0.015157 | 0.006568 | 0.008488 | 0.272773 | 0.196282 | 0.160915 | 0.129036 | 0.089122 | 0.046481 | 0 | 0.002169 | 0.253021 | 30,867 | 872 | 79 | 35.397936 | 0.856269 | 0.450028 | 0 | 0.305949 | 1 | 0 | 0.023152 | 0 | 0 | 0 | 0 | 0.002294 | 0.002833 | 1 | 0.169972 | false | 0.025496 | 0.031161 | 0.073654 | 0.368272 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3bb3f6ef40737ea90a9f45f3effca880da0d4227 | 154 | py | Python | lambdata-mkhalil/my_script.py | mkhalil7625/lambdata-mkhalil | 87f74166a3ae4f4cc92733cb5fc0c15e3b32f565 | [
"MIT"
] | null | null | null | lambdata-mkhalil/my_script.py | mkhalil7625/lambdata-mkhalil | 87f74166a3ae4f4cc92733cb5fc0c15e3b32f565 | [
"MIT"
] | null | null | null | lambdata-mkhalil/my_script.py | mkhalil7625/lambdata-mkhalil | 87f74166a3ae4f4cc92733cb5fc0c15e3b32f565 | [
"MIT"
] | null | null | null | import pandas as pd
from my_mod import enlarge
print("Hello!")
df = pd.DataFrame({"a":[1,2,3], "b":[4,5,6]})
print(df.head())
x = 11
print(enlarge(x)) | 14 | 45 | 0.62987 | 30 | 154 | 3.2 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06015 | 0.136364 | 154 | 11 | 46 | 14 | 0.661654 | 0 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3bbaa7105c8bdb5d9e446a53505849bc8d258fd0 | 2,479 | py | Python | src/aiotube/playlist.py | jnsougata/AioTube | 719bc52e442d06f922ada65da7650cfb92a0f237 | [
"MIT"
] | 4 | 2021-10-02T07:01:22.000Z | 2021-12-30T08:27:36.000Z | src/aiotube/playlist.py | jnsougata/AioTube | 719bc52e442d06f922ada65da7650cfb92a0f237 | [
"MIT"
] | 2 | 2021-11-18T20:21:39.000Z | 2021-12-27T17:12:17.000Z | src/aiotube/playlist.py | jnsougata/AioTube | 719bc52e442d06f922ada65da7650cfb92a0f237 | [
"MIT"
] | 3 | 2021-10-01T03:21:33.000Z | 2021-12-21T20:49:30.000Z | from ._threads import _Thread
from .utils import filter
from .videobulk import _VideoBulk
from ._http import _get_playlist_data
from ._rgxs import _PlaylistPatterns as rgx
from typing import List, Optional, Dict, Any
class Playlist:
__HEAD = 'https://www.youtube.com/playlist?list='
def __init__(self, playli... | 27.853933 | 90 | 0.592981 | 295 | 2,479 | 4.766102 | 0.240678 | 0.068279 | 0.068279 | 0.081792 | 0.187055 | 0.083926 | 0.041252 | 0 | 0 | 0 | 0 | 0.004592 | 0.297297 | 2,479 | 89 | 91 | 27.853933 | 0.802526 | 0.132715 | 0 | 0.122449 | 0 | 0 | 0.077929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0.122449 | 0.020408 | 0.510204 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3bbcc2fb4051ff428b3a3b66b12c0e4e0235c79c | 1,092 | py | Python | download_stock_data.py | dabideee13/Price-Pattern-Prediction | 632d961fc08777adab8eeb7ecbf16ac7cc71a3a7 | [
"MIT"
] | null | null | null | download_stock_data.py | dabideee13/Price-Pattern-Prediction | 632d961fc08777adab8eeb7ecbf16ac7cc71a3a7 | [
"MIT"
] | null | null | null | download_stock_data.py | dabideee13/Price-Pattern-Prediction | 632d961fc08777adab8eeb7ecbf16ac7cc71a3a7 | [
"MIT"
] | null | null | null | #!/opt/anaconda3/bin/python
# -*- coding: utf-8 -*-
"""
Get Stock Data
"""
import time
import pandas as pd
import yfinance as yf
if __name__ == '__main__':
# Path to file
# TODO: make directory if directory doesn't exist
f_file = "/Users/d.e.magno/Datasets/raw_stocks_new.csv"
# TODO: need to ... | 24.266667 | 77 | 0.598901 | 140 | 1,092 | 4.485714 | 0.528571 | 0.050955 | 0.062102 | 0.038217 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005109 | 0.282967 | 1,092 | 44 | 78 | 24.818182 | 0.796935 | 0.157509 | 0 | 0 | 0 | 0 | 0.174393 | 0.098234 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0 | false | 0.04 | 0.12 | 0 | 0.12 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3bc0be85bb851d619749be911d22c015dc81cc08 | 26,696 | py | Python | pyinstagram/base.py | alessandrocucci/PyInstagram | cd8f30b8c470a8cdcd8da801af897e4d14f7a677 | [
"MIT"
] | 1 | 2019-05-03T17:46:02.000Z | 2019-05-03T17:46:02.000Z | pyinstagram/base.py | alessandrocucci/PyInstagram | cd8f30b8c470a8cdcd8da801af897e4d14f7a677 | [
"MIT"
] | 1 | 2021-06-01T21:51:23.000Z | 2021-06-01T21:51:23.000Z | pyinstagram/base.py | alessandrocucci/PyInstagram | cd8f30b8c470a8cdcd8da801af897e4d14f7a677 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
from datetime import datetime
from operator import itemgetter
import requests
import time
from pyinstagram.model import Media
from .exceptions import OAuthException, PyInstagramException
from .oauth import OAuth
from .constants import API_URL
from .utils import DESAdapter
class... | 44.271973 | 661 | 0.523599 | 2,756 | 26,696 | 4.933962 | 0.234035 | 0.012355 | 0.027504 | 0.029122 | 0.470952 | 0.440285 | 0.412855 | 0.395279 | 0.353876 | 0.340491 | 0 | 0.104754 | 0.388523 | 26,696 | 602 | 662 | 44.345515 | 0.727824 | 0.480784 | 0 | 0.454902 | 0 | 0 | 0.144811 | 0.031886 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.05098 | false | 0 | 0.039216 | 0 | 0.152941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3bc47ccda883fce926fb879e2f171e425ac7191d | 1,959 | py | Python | login/models.py | zcw576020095/netsysyconfig_platform | d47be2c5b3418d59a226cb9e135972160e51df00 | [
"Unlicense"
] | 1 | 2022-03-25T07:49:10.000Z | 2022-03-25T07:49:10.000Z | login/models.py | zcw576020095/netsysyconfig_platform | d47be2c5b3418d59a226cb9e135972160e51df00 | [
"Unlicense"
] | null | null | null | login/models.py | zcw576020095/netsysyconfig_platform | d47be2c5b3418d59a226cb9e135972160e51df00 | [
"Unlicense"
] | null | null | null | from django.db import models
# Create your models here.
class User(models.Model):
gender = (
('male',"男"),
('female',"女")
)
name = models.CharField(max_length=128,unique=True)
password = models.CharField(max_length=256)
email = models.EmailField(unique=True)
sex = models.CharF... | 27.591549 | 78 | 0.669219 | 230 | 1,959 | 5.421739 | 0.321739 | 0.105854 | 0.086608 | 0.115477 | 0.446672 | 0.317562 | 0.275862 | 0.214916 | 0 | 0 | 0 | 0.013566 | 0.209801 | 1,959 | 71 | 79 | 27.591549 | 0.79199 | 0.017356 | 0 | 0.25 | 0 | 0 | 0.079688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.020833 | 0.020833 | 0.083333 | 0.645833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3bc648d7577a48d53c343d95dc1ac69b209de7c4 | 11,380 | py | Python | subscribe/models.py | jonge-democraten/dyonisos | bebc5b28761bd5e036e4e6e219b5474d901026c3 | [
"MIT"
] | null | null | null | subscribe/models.py | jonge-democraten/dyonisos | bebc5b28761bd5e036e4e6e219b5474d901026c3 | [
"MIT"
] | 10 | 2016-10-31T21:14:06.000Z | 2021-01-07T22:34:42.000Z | subscribe/models.py | jonge-democraten/dyonisos | bebc5b28761bd5e036e4e6e219b5474d901026c3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2011,2014 Floor Terra <floort@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS ... | 37.682119 | 228 | 0.644991 | 1,381 | 11,380 | 5.177408 | 0.242578 | 0.022378 | 0.027972 | 0.033566 | 0.276783 | 0.242238 | 0.14042 | 0.112727 | 0.058182 | 0.046154 | 0 | 0.010979 | 0.231634 | 11,380 | 301 | 229 | 37.807309 | 0.806725 | 0.075747 | 0 | 0.239316 | 0 | 0.004274 | 0.133657 | 0.019815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132479 | false | 0 | 0.025641 | 0.064103 | 0.529915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3bcd4cf0614ab6f7c88bcffd7170ce176a5a3489 | 305 | py | Python | tests/text_processors/test_json_text_processor.py | lyteloli/NekoGram | f077471000b40a74e0eb4e98dfb570b5e34d23ab | [
"MIT"
] | 8 | 2020-08-21T07:43:52.000Z | 2022-01-27T06:48:01.000Z | tests/text_processors/test_json_text_processor.py | lyteloli/NekoGram | f077471000b40a74e0eb4e98dfb570b5e34d23ab | [
"MIT"
] | null | null | null | tests/text_processors/test_json_text_processor.py | lyteloli/NekoGram | f077471000b40a74e0eb4e98dfb570b5e34d23ab | [
"MIT"
] | 1 | 2022-01-27T06:48:02.000Z | 2022-01-27T06:48:02.000Z | from NekoGram import Neko, Bot
import json
def test_json_text_processor():
neko = Neko(bot=Bot(token='0:0', validate_token=False), validate_text_names=False)
raw_json = '{"x": {"text": "hello"} }'
neko.add_texts(texts=raw_json, lang='en')
assert neko.texts['en'] == json.loads(raw_json)
| 30.5 | 86 | 0.688525 | 47 | 305 | 4.255319 | 0.510638 | 0.105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.144262 | 305 | 9 | 87 | 33.888889 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.104918 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3bcdd1ca315307c12c5399ab4a8df2ed64ad6708 | 7,960 | py | Python | itdagene/app/meetings/migrations/0001_initial.py | itdagene-ntnu/itdagene | b972cd3d803debccebbc33641397a39834b8d69a | [
"MIT"
] | 9 | 2018-10-17T20:58:09.000Z | 2021-12-16T16:16:45.000Z | itdagene/app/meetings/migrations/0001_initial.py | itdagene-ntnu/itdagene | b972cd3d803debccebbc33641397a39834b8d69a | [
"MIT"
] | 177 | 2018-10-27T18:15:56.000Z | 2022-03-28T04:29:06.000Z | itdagene/app/meetings/migrations/0001_initial.py | itdagene-ntnu/itdagene | b972cd3d803debccebbc33641397a39834b8d69a | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
operations = [
migrations.CreateModel(
name="Meeting",
... | 35.695067 | 87 | 0.358417 | 473 | 7,960 | 5.818182 | 0.211416 | 0.083939 | 0.055959 | 0.076308 | 0.533794 | 0.476381 | 0.415334 | 0.415334 | 0.415334 | 0.383358 | 0 | 0.003375 | 0.553266 | 7,960 | 222 | 88 | 35.855856 | 0.770529 | 0 | 0 | 0.663594 | 0 | 0 | 0.08593 | 0.002638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013825 | 0 | 0.02765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3bd3be55e7aed0ec74f1031095e8ca063b4aa8fd | 515 | py | Python | Applied Project/Web/app/config.py | rebeccabernie/CurrencyAnalyser | 1f57e5b5fee854912c205cb98f57c980027f0a03 | [
"MIT"
] | 27 | 2018-06-22T18:49:52.000Z | 2022-02-18T07:58:48.000Z | Applied Project/Web/app/config.py | taraokelly/CurrencyAnalyser | 1f57e5b5fee854912c205cb98f57c980027f0a03 | [
"MIT"
] | 10 | 2020-01-28T22:24:22.000Z | 2022-02-10T13:11:32.000Z | Applied Project/Web/app/config.py | taraokelly/CurrencyAnalyser | 1f57e5b5fee854912c205cb98f57c980027f0a03 | [
"MIT"
] | 6 | 2018-05-02T16:43:45.000Z | 2020-11-17T18:00:36.000Z | """ Global Flask Application Settings """
import os
from app import app
class Config(object):
DEBUG = False
TESTING = False
PRODUCTION = False
class Development(Config):
MODE = 'Development'
DEBUG = True
class Production(Config):
MODE = 'Production'
DEBUG = False
PRODUCTION = True... | 19.074074 | 69 | 0.700971 | 63 | 515 | 5.650794 | 0.396825 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192233 | 515 | 26 | 70 | 19.807692 | 0.855769 | 0.2 | 0 | 0.133333 | 0 | 0 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3bd4ef311d3ceb65a757cf2dcd1641a9fa9f94c6 | 5,420 | py | Python | app/v2/resources/users.py | fabischolasi/fast-food-fast-v1 | 492f0bdaaeadf12089a200a9b64bdfc22cd03d0c | [
"MIT"
] | 1 | 2019-10-16T07:56:31.000Z | 2019-10-16T07:56:31.000Z | app/v2/resources/users.py | fabzer0/FastFoodAPI | 492f0bdaaeadf12089a200a9b64bdfc22cd03d0c | [
"MIT"
] | null | null | null | app/v2/resources/users.py | fabzer0/FastFoodAPI | 492f0bdaaeadf12089a200a9b64bdfc22cd03d0c | [
"MIT"
] | null | null | null | from flask import Blueprint, jsonify, make_response
from flask_restful import Resource, Api, reqparse, inputs
from ..models.decorators import admin_required
from ..models.models import UserModel
import os
class SignUp(Resource):
def __init__(self):
"""
Validates both json and form-data input
... | 38.992806 | 132 | 0.587823 | 596 | 5,420 | 5.206376 | 0.20302 | 0.038672 | 0.052208 | 0.07251 | 0.56816 | 0.458911 | 0.398324 | 0.331292 | 0.262005 | 0.204641 | 0 | 0.010753 | 0.279336 | 5,420 | 138 | 133 | 39.275362 | 0.783666 | 0.010886 | 0 | 0.477477 | 0 | 0.018018 | 0.182725 | 0.018818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.162162 | 0.045045 | 0 | 0.252252 | 0.018018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3bdfdc921f29e9f07e8dacf34bfc075882611de3 | 1,368 | py | Python | syd/syd_stitch_image.py | OpenSyd/syd | 0f7478c7dedb623ab955e906c103cb64a7abb4b3 | [
"Apache-2.0"
] | 4 | 2015-07-29T19:10:35.000Z | 2020-11-17T07:48:41.000Z | syd/syd_stitch_image.py | OpenSyd/syd | 0f7478c7dedb623ab955e906c103cb64a7abb4b3 | [
"Apache-2.0"
] | 9 | 2015-05-14T09:07:37.000Z | 2022-03-15T10:13:59.000Z | syd/syd_stitch_image.py | OpenSyd/syd | 0f7478c7dedb623ab955e906c103cb64a7abb4b3 | [
"Apache-2.0"
] | 3 | 2016-09-07T06:26:52.000Z | 2016-10-04T12:29:03.000Z | #!/usr/bin/env python3
import itk
import syd
# -----------------------------------------------------------------------------
def stitch_image(db, image1, image2):
print('image1', image1)
print('image2', image2)
im1 = syd.read_itk_image(db, image1)
im2 = syd.read_itk_image(db, image2)
im = stitch... | 23.186441 | 79 | 0.557749 | 164 | 1,368 | 4.597561 | 0.359756 | 0.04244 | 0.015915 | 0.039788 | 0.129973 | 0.03183 | 0.03183 | 0.03183 | 0 | 0 | 0 | 0.05597 | 0.216374 | 1,368 | 58 | 80 | 23.586207 | 0.647388 | 0.240497 | 0 | 0 | 0 | 0 | 0.032132 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0.21875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3be559b23f04ad4fbb4310964aaa62522258d721 | 8,529 | py | Python | mayan/apps/linking/api_views.py | darrenflexxu/Mayan-EDMS | 6707365bfacd137e625ddc1b990168012246fa07 | [
"Apache-2.0"
] | null | null | null | mayan/apps/linking/api_views.py | darrenflexxu/Mayan-EDMS | 6707365bfacd137e625ddc1b990168012246fa07 | [
"Apache-2.0"
] | 5 | 2021-03-19T22:59:52.000Z | 2022-03-12T00:13:16.000Z | mayan/apps/linking/api_views.py | Sumit-Kumar-Jha/mayan | 5b7ddeccf080b9e41cc1074c70e27dfe447be19f | [
"Apache-2.0"
] | 1 | 2020-07-29T21:03:27.000Z | 2020-07-29T21:03:27.000Z | from __future__ import absolute_import, unicode_literals
from django.shortcuts import get_object_or_404
from mayan.apps.acls.models import AccessControlList
from mayan.apps.documents.models import Document
from mayan.apps.documents.permissions import permission_document_view
from mayan.apps.rest_api import generics
... | 30.569892 | 85 | 0.653183 | 866 | 8,529 | 6.193995 | 0.117783 | 0.088926 | 0.060216 | 0.034303 | 0.746085 | 0.731357 | 0.691089 | 0.678784 | 0.625466 | 0.587435 | 0 | 0.003349 | 0.264861 | 8,529 | 278 | 86 | 30.679856 | 0.852153 | 0.115019 | 0 | 0.568182 | 0 | 0 | 0.020151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.051136 | 0.028409 | 0.426136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3becb3cb8a9347c5c892e9c12331df179e27be0f | 406 | py | Python | game/migrations/0011_onlinegame_playersready.py | dimamelnik22/drawfulru | da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8 | [
"Apache-2.0"
] | null | null | null | game/migrations/0011_onlinegame_playersready.py | dimamelnik22/drawfulru | da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8 | [
"Apache-2.0"
] | 7 | 2020-06-05T20:14:47.000Z | 2021-09-22T18:18:06.000Z | game/migrations/0011_onlinegame_playersready.py | dimamelnik22/drawfulru | da2d21ef4c0b6776fc7c1059dbdf617f591c4ef8 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0 on 2019-12-23 06:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0010_auto_20191223_0818'),
]
operations = [
migrations.AddField(
model_name='onlinegame',
name='... | 21.368421 | 50 | 0.576355 | 40 | 406 | 5.75 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111913 | 0.317734 | 406 | 18 | 51 | 22.555556 | 0.718412 | 0.105911 | 0 | 0 | 1 | 0 | 0.142857 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3bf70a1a9f2bab5e2d13cf95f5bb6e7cbc23fec9 | 3,582 | py | Python | examples/pipeline.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | null | null | null | examples/pipeline.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | null | null | null | examples/pipeline.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | null | null | null | from arekit.common.data.input.providers.label.multiple import MultipleLabelProvider
from arekit.common.data.row_ids.multiple import MultipleIDProvider
from arekit.common.data.storages.base import BaseRowsStorage
from arekit.common.data.views.samples import BaseSampleStorageView
from arekit.common.experiment.data_type i... | 40.704545 | 105 | 0.769961 | 397 | 3,582 | 6.715365 | 0.390428 | 0.063766 | 0.070143 | 0.093773 | 0.109152 | 0.052513 | 0 | 0 | 0 | 0 | 0 | 0.001652 | 0.155221 | 3,582 | 87 | 106 | 41.172414 | 0.879379 | 0.047739 | 0 | 0 | 0 | 0 | 0.01909 | 0 | 0 | 0 | 0 | 0.011494 | 0.015625 | 1 | 0.015625 | false | 0 | 0.296875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3bf87ad7597d41df2c5bff20fab72d6e34dbefa1 | 2,443 | py | Python | src/PointClasses/Bisector.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 41 | 2021-11-24T05:54:08.000Z | 2022-03-26T10:19:30.000Z | src/PointClasses/Bisector.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 1 | 2022-02-28T04:34:51.000Z | 2022-03-07T10:49:27.000Z | src/PointClasses/Bisector.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 10 | 2021-11-24T07:35:17.000Z | 2022-03-25T18:42:14.000Z | from Point import Point
import Constant as c
from GeometryMath import bisector_point
class Bisector(Point):
def __init__(self, item):
"""Construct Bisector."""
Point.__init__(self, item)
self.item["sub_type"] = c.Point.Definition.BISECTOR
def tikzify(self):
return '\\tkzDefLin... | 40.04918 | 119 | 0.56447 | 287 | 2,443 | 4.665505 | 0.289199 | 0.059746 | 0.080657 | 0.040329 | 0.182226 | 0.125467 | 0.085138 | 0.085138 | 0.085138 | 0.085138 | 0 | 0.002989 | 0.315186 | 2,443 | 60 | 120 | 40.716667 | 0.79737 | 0.121163 | 0 | 0.181818 | 0 | 0 | 0.081461 | 0.02294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.068182 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3bfc6525bf99e8218a93653bc016cb8baae15ea1 | 3,803 | py | Python | networkx/classes/tests/test_digraph_historical.py | KyleBenson/networkx | 26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a | [
"BSD-3-Clause"
] | null | null | null | networkx/classes/tests/test_digraph_historical.py | KyleBenson/networkx | 26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a | [
"BSD-3-Clause"
] | null | null | null | networkx/classes/tests/test_digraph_historical.py | KyleBenson/networkx | 26ccb4a380ba0e5304d7bbff53eb9859c6e4c93a | [
"BSD-3-Clause"
] | 1 | 2019-01-30T17:57:36.000Z | 2019-01-30T17:57:36.000Z | #!/usr/bin/env python
"""Original NetworkX graph tests"""
from nose.tools import *
import networkx
import networkx as nx
from networkx.testing.utils import *
from historical_tests import HistoricalTests
class TestDiGraphHistorical(HistoricalTests):
def setUp(self):
HistoricalTests.setUp(self)
sel... | 34.889908 | 79 | 0.519853 | 547 | 3,803 | 3.468007 | 0.137112 | 0.139167 | 0.197153 | 0.14233 | 0.639431 | 0.639431 | 0.596205 | 0.414866 | 0.397997 | 0.384291 | 0 | 0.023454 | 0.260058 | 3,803 | 108 | 80 | 35.212963 | 0.650675 | 0.013148 | 0 | 0.517647 | 0 | 0 | 0.029899 | 0 | 0 | 0 | 0 | 0 | 0.376471 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.188235 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce017638896c04f18c2cb7532f41f9850780cdae | 28,484 | py | Python | nimbleclient/v1/api/groups.py | prachiruparelia-hpe/nimble-python-sdk | a3e99d89e647291caf7936300ae853d21d94d6e5 | [
"Apache-2.0"
] | 1 | 2020-05-28T19:48:59.000Z | 2020-05-28T19:48:59.000Z | nimbleclient/v1/api/groups.py | prachiruparelia-hpe/nimble-python-sdk | a3e99d89e647291caf7936300ae853d21d94d6e5 | [
"Apache-2.0"
] | null | null | null | nimbleclient/v1/api/groups.py | prachiruparelia-hpe/nimble-python-sdk | a3e99d89e647291caf7936300ae853d21d94d6e5 | [
"Apache-2.0"
] | null | null | null | #
# © Copyright 2020 Hewlett Packard Enterprise Development LP
#
# This file was auto-generated by the Python SDK generator; DO NOT EDIT.
#
from ...resource import Resource, Collection
from ...exceptions import NimOSAPIOperationUnsupported
class Group(Resource):
"""Group is a collection of arrays operating ... | 44.5759 | 179 | 0.584082 | 3,172 | 28,484 | 5.084174 | 0.144388 | 0.041173 | 0.026043 | 0.029764 | 0.621132 | 0.568178 | 0.520804 | 0.470267 | 0.446456 | 0.429962 | 0 | 0.000833 | 0.367645 | 28,484 | 638 | 180 | 44.645768 | 0.894459 | 0.674168 | 0 | 0.563319 | 1 | 0 | 0.046565 | 0.015748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148472 | false | 0.034935 | 0.008734 | 0 | 0.305677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce0ca8f2fe98f3ab332870eee82d60c59dac39aa | 719 | py | Python | setup.py | DewMaple/toolkit | a1f04d1b53420c64e15f684c83acb54276031346 | [
"BSD-3-Clause"
] | null | null | null | setup.py | DewMaple/toolkit | a1f04d1b53420c64e15f684c83acb54276031346 | [
"BSD-3-Clause"
] | null | null | null | setup.py | DewMaple/toolkit | a1f04d1b53420c64e15f684c83acb54276031346 | [
"BSD-3-Clause"
] | null | null | null | # from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='py-toolkit',
version='0.0.3',
packages=find_packages(exclude=("tests",)),
url='https://github.com/DewMaple/toolkit',
description='python toolkit for common usage',
author='DewMaple',
author_email='de... | 28.76 | 68 | 0.631433 | 80 | 719 | 5.6 | 0.625 | 0.073661 | 0.09375 | 0.147321 | 0.194196 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008726 | 0.20306 | 719 | 25 | 69 | 28.76 | 0.773124 | 0.044506 | 0 | 0 | 0 | 0 | 0.424198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce0da279383850a16ffabcd3fe15ce7341142e46 | 3,934 | py | Python | ui.py | xKynn/zerox-assistant | 292525bf55cd08f930338310869dba1c25a00cf4 | [
"MIT"
] | 1 | 2021-11-07T14:49:13.000Z | 2021-11-07T14:49:13.000Z | ui.py | xKynn/pyTunes | 292525bf55cd08f930338310869dba1c25a00cf4 | [
"MIT"
] | null | null | null | ui.py | xKynn/pyTunes | 292525bf55cd08f930338310869dba1c25a00cf4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'hnc.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, Q... | 42.76087 | 87 | 0.543976 | 383 | 3,934 | 5.54047 | 0.417755 | 0.059378 | 0.039585 | 0.014138 | 0.103676 | 0.069746 | 0.042413 | 0.042413 | 0.042413 | 0.042413 | 0 | 0.05253 | 0.341891 | 3,934 | 92 | 88 | 42.76087 | 0.767092 | 0.068124 | 0 | 0.082192 | 1 | 0 | 0.15824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09589 | false | 0 | 0.013699 | 0 | 0.123288 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce1627eb06d19834ba84ea0cd7b1055080fe6187 | 595 | py | Python | oandapy/exceptions.py | extreme4all/oandapy | 48dcfbe154316a83ca6e62e6b939062165cabc3e | [
"MIT"
] | null | null | null | oandapy/exceptions.py | extreme4all/oandapy | 48dcfbe154316a83ca6e62e6b939062165cabc3e | [
"MIT"
] | null | null | null | oandapy/exceptions.py | extreme4all/oandapy | 48dcfbe154316a83ca6e62e6b939062165cabc3e | [
"MIT"
] | null | null | null | """Exceptions."""
class OandaError(Exception):
""" Generic error class, catches oanda response errors
"""
def __init__(self, error_response):
self.error_response = error_response
msg = f"OANDA API returned error code {error_response['code']} ({error_response['message']}) "
super... | 29.75 | 103 | 0.67563 | 65 | 595 | 5.861538 | 0.476923 | 0.170604 | 0.057743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198319 | 595 | 19 | 104 | 31.315789 | 0.798742 | 0.196639 | 0 | 0 | 0 | 0 | 0.275488 | 0.114967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce1a18c48b194d0b3451c941f83d9e8945a1714d | 4,139 | py | Python | tests/system/post_cars_positive_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 8 | 2020-03-17T09:15:28.000Z | 2022-01-29T19:50:45.000Z | tests/system/post_cars_positive_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 1 | 2021-06-02T00:26:58.000Z | 2021-06-02T00:26:58.000Z | tests/system/post_cars_positive_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 1 | 2021-11-22T16:10:27.000Z | 2021-11-22T16:10:27.000Z | #!/path/to/interpreter
"""
Flask App REST API testing: POST
"""
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
import allure
import requests
from tests.system.base_test import BaseTestCase
from api.cars_app import USER_LIST
@allure.epic('Simpl... | 31.59542 | 64 | 0.490457 | 390 | 4,139 | 5.110256 | 0.269231 | 0.060211 | 0.084295 | 0.080281 | 0.576016 | 0.566984 | 0.557953 | 0.550928 | 0.540893 | 0.540893 | 0 | 0.006444 | 0.400097 | 4,139 | 130 | 65 | 31.838462 | 0.796214 | 0.090602 | 0 | 0.558442 | 0 | 0 | 0.157997 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 1 | 0.051948 | false | 0.077922 | 0.051948 | 0 | 0.116883 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ce1f98db217162180757b8a6044a17804f866924 | 4,794 | py | Python | imblearn/combine/tests/test_smote_enn.py | themrzmaster/imbalanced-learn | e1be8695b22ca58aa5443057b9ae3f2885a45d60 | [
"MIT"
] | 2 | 2019-09-14T23:23:35.000Z | 2019-09-16T18:17:19.000Z | imblearn/combine/tests/test_smote_enn.py | themrzmaster/imbalanced-learn | e1be8695b22ca58aa5443057b9ae3f2885a45d60 | [
"MIT"
] | null | null | null | imblearn/combine/tests/test_smote_enn.py | themrzmaster/imbalanced-learn | e1be8695b22ca58aa5443057b9ae3f2885a45d60 | [
"MIT"
] | 1 | 2021-04-23T04:46:10.000Z | 2021-04-23T04:46:10.000Z | """Test the module SMOTE ENN."""
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
# Christos Aridas
# License: MIT
import pytest
import numpy as np
from sklearn.utils.testing import assert_allclose, assert_array_equal
from imblearn.combine import SMOTEENN
from imblearn.under_sampling import EditedNear... | 38.047619 | 79 | 0.635378 | 697 | 4,794 | 4.173601 | 0.20373 | 0.012375 | 0.011344 | 0.055689 | 0.627363 | 0.594706 | 0.569268 | 0.545892 | 0.545892 | 0.497078 | 0 | 0.265414 | 0.211723 | 4,794 | 125 | 80 | 38.352 | 0.504366 | 0.036713 | 0 | 0.42268 | 0 | 0 | 0.019314 | 0 | 0 | 0 | 0 | 0 | 0.175258 | 1 | 0.072165 | false | 0.010309 | 0.061856 | 0 | 0.134021 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce25004f312bc46b4d6a3d278373562bc87e4202 | 316 | py | Python | apps/listings/migrations/0002_remove_post_author.py | favours-io/favours | 6f26a207d2684e752857aa21e5fafa607a4707e6 | [
"MIT"
] | 11 | 2020-07-23T19:07:32.000Z | 2021-11-18T17:16:29.000Z | apps/listings/migrations/0002_remove_post_author.py | favours-io/favours | 6f26a207d2684e752857aa21e5fafa607a4707e6 | [
"MIT"
] | 16 | 2020-08-29T01:57:05.000Z | 2022-01-13T03:16:41.000Z | apps/listings/migrations/0002_remove_post_author.py | favours-io/favours | 6f26a207d2684e752857aa21e5fafa607a4707e6 | [
"MIT"
] | 4 | 2020-09-18T18:40:12.000Z | 2021-11-09T06:36:36.000Z | # Generated by Django 3.0.7 on 2020-09-22 05:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('listings', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='author',
),
]
| 17.555556 | 47 | 0.575949 | 33 | 316 | 5.454545 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086758 | 0.306962 | 316 | 17 | 48 | 18.588235 | 0.73516 | 0.142405 | 0 | 0 | 1 | 0 | 0.111524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce2810e264659103f1cf2c4c793eb498a673a023 | 2,990 | py | Python | workflower/services/workflow/loader.py | dmenezesgabriel/workflower | db2358abdd2d133b85baea726e013e71171e5cf3 | [
"MIT"
] | null | null | null | workflower/services/workflow/loader.py | dmenezesgabriel/workflower | db2358abdd2d133b85baea726e013e71171e5cf3 | [
"MIT"
] | null | null | null | workflower/services/workflow/loader.py | dmenezesgabriel/workflower | db2358abdd2d133b85baea726e013e71171e5cf3 | [
"MIT"
] | null | null | null | import logging
import os
import traceback
from typing import List
from workflower.adapters.sqlalchemy.setup import Session
from workflower.adapters.sqlalchemy.unit_of_work import SqlAlchemyUnitOfWork
from workflower.application.event.commands import CreateEventCommand
from workflower.application.workflow.commands impo... | 32.5 | 79 | 0.596321 | 285 | 2,990 | 6.098246 | 0.326316 | 0.040276 | 0.025892 | 0.036824 | 0.128884 | 0.128884 | 0.087457 | 0.051784 | 0.051784 | 0.051784 | 0 | 0.000987 | 0.322408 | 2,990 | 91 | 80 | 32.857143 | 0.856861 | 0.103679 | 0 | 0.061538 | 0 | 0 | 0.072368 | 0.009288 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.061538 | false | 0 | 0.138462 | 0.015385 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce282fdf98dc253cf62921347890761e924022a6 | 1,211 | py | Python | lfs/portlet/models/pages.py | zhammami/django-lfs | b921295e71fe827377a67b5e7ae1a8bf7f72a1e6 | [
"BSD-3-Clause"
] | null | null | null | lfs/portlet/models/pages.py | zhammami/django-lfs | b921295e71fe827377a67b5e7ae1a8bf7f72a1e6 | [
"BSD-3-Clause"
] | null | null | null | lfs/portlet/models/pages.py | zhammami/django-lfs | b921295e71fe827377a67b5e7ae1a8bf7f72a1e6 | [
"BSD-3-Clause"
] | null | null | null | # django imports
from django import forms
from django.conf import settings
from django.core.cache import cache
from django.template.loader import render_to_string
# portlets imports
from portlets.models import Portlet
# lfs imports
from lfs.page.models import Page
class PagesPortlet(Portlet):
"""Portlet to disp... | 24.714286 | 85 | 0.641618 | 144 | 1,211 | 5.277778 | 0.430556 | 0.052632 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255987 | 1,211 | 48 | 86 | 25.229167 | 0.843507 | 0.119736 | 0 | 0.071429 | 0 | 0 | 0.054389 | 0.021947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.214286 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ce2b25ff23e864e881234a2380df580d2b3d114d | 829 | py | Python | feed/models.py | kassupto007/photo-sharing-app | 97ed237815134fd3d53431be348a050c505db499 | [
"Apache-2.0"
] | null | null | null | feed/models.py | kassupto007/photo-sharing-app | 97ed237815134fd3d53431be348a050c505db499 | [
"Apache-2.0"
] | null | null | null | feed/models.py | kassupto007/photo-sharing-app | 97ed237815134fd3d53431be348a050c505db499 | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
from django.db import models
from django.utils import timezone
from users.models import Profile
class Post(models.Model):
description = models.CharField(max_length=255)
picture = models.ImageField(upload_to='posts', blank=True)
date_posted = models.DateTimeField(auto_now_a... | 37.681818 | 106 | 0.77684 | 112 | 829 | 5.535714 | 0.428571 | 0.045161 | 0.067742 | 0.101613 | 0.496774 | 0.409677 | 0.409677 | 0.145161 | 0.145161 | 0 | 0 | 0.008287 | 0.126659 | 829 | 21 | 107 | 39.47619 | 0.848066 | 0 | 0 | 0 | 0 | 0 | 0.025332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0.0625 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ce31a76d07584d9441c2b8024946e9ee56bc2a7f | 8,286 | py | Python | regulations/tests/layers_toc_applier_tests.py | contolini/regulations-site | c31a9ce3097910877657f61b4c19a4ccbd0f967f | [
"CC0-1.0"
] | 18 | 2015-01-14T15:58:45.000Z | 2019-08-17T06:15:59.000Z | regulations/tests/layers_toc_applier_tests.py | contolini/regulations-site | c31a9ce3097910877657f61b4c19a4ccbd0f967f | [
"CC0-1.0"
] | 142 | 2015-01-08T15:28:50.000Z | 2018-07-16T16:48:07.000Z | regulations/tests/layers_toc_applier_tests.py | contolini/regulations-site | c31a9ce3097910877657f61b4c19a4ccbd0f967f | [
"CC0-1.0"
] | 45 | 2015-01-26T16:24:46.000Z | 2021-02-20T10:50:59.000Z | from unittest import TestCase
from regulations.generator.layers.toc_applier import *
class TableOfContentsLayerTest(TestCase):
def test_section(self):
toc = TableOfContentsLayer(None)
el = {}
toc.section(el, {'index': ['1']})
self.assertEqual({}, el)
toc.section(el, {'in... | 40.223301 | 79 | 0.506758 | 867 | 8,286 | 4.743945 | 0.102653 | 0.145879 | 0.053732 | 0.046195 | 0.787503 | 0.722101 | 0.682956 | 0.664478 | 0.61415 | 0.580112 | 0 | 0.05777 | 0.285542 | 8,286 | 205 | 80 | 40.419512 | 0.636993 | 0 | 0 | 0.634831 | 0 | 0 | 0.240043 | 0 | 0 | 0 | 0 | 0 | 0.258427 | 1 | 0.039326 | false | 0 | 0.011236 | 0 | 0.05618 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce35c483fa1d1e28e070fa3ddb8145549538c79c | 14,508 | py | Python | eventmanager/events/tests.py | karinakozarova/EventManager | b09fa7a788b4aa11761fc34096cc711304c288c7 | [
"MIT"
] | 4 | 2019-01-06T16:58:20.000Z | 2019-04-08T10:20:46.000Z | eventmanager/events/tests.py | EventManagerTeam/EventManager | b09fa7a788b4aa11761fc34096cc711304c288c7 | [
"MIT"
] | 297 | 2018-11-14T13:59:19.000Z | 2022-03-11T23:33:28.000Z | eventmanager/events/tests.py | karinakozarova/EventManager | b09fa7a788b4aa11761fc34096cc711304c288c7 | [
"MIT"
] | 1 | 2019-04-22T15:17:32.000Z | 2019-04-22T15:17:32.000Z | import datetime
import unittest
from accounts.models import AccountDetails
from categories.models import Category
from django.contrib.auth.models import User
from django.test import Client
from django.test import TestCase
from django.urls import reverse
from events.models import Comment
from events.models import E... | 30.543158 | 79 | 0.565826 | 1,447 | 14,508 | 5.50311 | 0.10159 | 0.034284 | 0.032651 | 0.040563 | 0.756373 | 0.698857 | 0.615095 | 0.572523 | 0.488886 | 0.449705 | 0 | 0.01409 | 0.324924 | 14,508 | 474 | 80 | 30.607595 | 0.798959 | 0.029915 | 0 | 0.607692 | 0 | 0 | 0.128023 | 0.02404 | 0 | 0 | 0 | 0.00211 | 0.071795 | 1 | 0.107692 | false | 0.058974 | 0.030769 | 0 | 0.148718 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ce378179f8b40837991f7c71e128ec7eb52c6132 | 1,023 | py | Python | game.py | gustavonaldoni/command-line-hangman | a740a446ce1dfad2100ab7e6ea1db817c6a57a47 | [
"MIT"
] | null | null | null | game.py | gustavonaldoni/command-line-hangman | a740a446ce1dfad2100ab7e6ea1db817c6a57a47 | [
"MIT"
] | null | null | null | game.py | gustavonaldoni/command-line-hangman | a740a446ce1dfad2100ab7e6ea1db817c6a57a47 | [
"MIT"
] | null | null | null | from capture_words import capture_words_from_file
import random
def find_letter_indexes(letter, word):
indexes = []
for index, l in enumerate(word):
if l == letter:
indexes.append(index)
return indexes
def convert_word_to_asterisks(word):
final_word = '*' * len(word)
return... | 21.765957 | 72 | 0.691105 | 141 | 1,023 | 4.666667 | 0.29078 | 0.121581 | 0.121581 | 0.095745 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001287 | 0.240469 | 1,023 | 47 | 73 | 21.765957 | 0.84556 | 0 | 0 | 0.2 | 0 | 0 | 0.000977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ce3b5d59730c0d6fb21fce8076ca9f2a4f217a30 | 2,506 | py | Python | hr_attendance_ex/models/sql_ser_config.py | alexhong121/odoo_model | 4eff41c672bd03084eaa6eae81c8f3d359c2fb8d | [
"MIT"
] | null | null | null | hr_attendance_ex/models/sql_ser_config.py | alexhong121/odoo_model | 4eff41c672bd03084eaa6eae81c8f3d359c2fb8d | [
"MIT"
] | null | null | null | hr_attendance_ex/models/sql_ser_config.py | alexhong121/odoo_model | 4eff41c672bd03084eaa6eae81c8f3d359c2fb8d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
# import pyodbc
from odoo import models, fields, api, _
from odoo.exceptions import UserError, AccessError, MissingError
_logger = logging.getLogger(__name__)
class SQLConfig(models.Model):
_name = 'sql.config'
_description='sql_config'
_sql_constraints = [('check_... | 32.973684 | 111 | 0.602554 | 284 | 2,506 | 5.161972 | 0.415493 | 0.040928 | 0.065484 | 0.030696 | 0.103683 | 0.103683 | 0.05457 | 0.05457 | 0.05457 | 0 | 0 | 0.007451 | 0.2502 | 2,506 | 75 | 112 | 33.413333 | 0.772751 | 0.018356 | 0 | 0.034483 | 0 | 0.017241 | 0.226069 | 0.046843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.051724 | 0.051724 | 0 | 0.396552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ce40a683df91507328100c3fd2d4f4e66c206aad | 4,981 | py | Python | application/helper/connection_check.py | HarshadKavathiya/acciom | 10e4d813c897bcf0078ab350d9432117cb708d1a | [
"MIT"
] | null | null | null | application/helper/connection_check.py | HarshadKavathiya/acciom | 10e4d813c897bcf0078ab350d9432117cb708d1a | [
"MIT"
] | 9 | 2019-07-23T09:55:15.000Z | 2022-02-19T01:45:12.000Z | application/helper/connection_check.py | accionlabs/acciom | 889958c0f8ec1d74db1958d0a6473c4678eaab3f | [
"MIT"
] | 21 | 2019-07-20T04:47:23.000Z | 2020-01-07T06:55:42.000Z | import cx_Oracle
import psycopg2
import pymysql
import pyodbc
from application.common.constants import APIMessages, SupportedDBType, \
GenericStrings
def connection_check(db_type_id, db_hostname, db_username, db_password,
db_name):
"""
Helper method to check the database connectivity... | 43.313043 | 79 | 0.609717 | 547 | 4,981 | 5.281536 | 0.190128 | 0.09415 | 0.027691 | 0.050883 | 0.617515 | 0.535826 | 0.450675 | 0.441675 | 0.389754 | 0.334372 | 0 | 0.005337 | 0.322827 | 4,981 | 114 | 80 | 43.692982 | 0.851171 | 0.109617 | 0 | 0.473118 | 0 | 0 | 0.018041 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.010753 | false | 0.064516 | 0.053763 | 0 | 0.27957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cbea98388f135a070422bda42a79198d77ccf817 | 546 | py | Python | 10_Exceptions_and_Errors/internal.py | MANOJPATRA1991/Python-Beyond-the-Basics | aed7bfd35e33c2b1759b48e1c89314aa149c56d0 | [
"MIT"
] | null | null | null | 10_Exceptions_and_Errors/internal.py | MANOJPATRA1991/Python-Beyond-the-Basics | aed7bfd35e33c2b1759b48e1c89314aa149c56d0 | [
"MIT"
] | null | null | null | 10_Exceptions_and_Errors/internal.py | MANOJPATRA1991/Python-Beyond-the-Basics | aed7bfd35e33c2b1759b48e1c89314aa149c56d0 | [
"MIT"
] | null | null | null | def modulus_three(n):
r = n % 3
if r == 0:
print("Multiple of 3")
elif r == 1:
print("Remainder 1")
else:
assert r == 2, "Remainder is not 2"
print("Remainder 2")
def modulus_four(n):
r = n % 4
if r == 0:
print("Multiple of 4")
elif r == 1:
p... | 20.222222 | 48 | 0.507326 | 77 | 546 | 3.454545 | 0.376623 | 0.263158 | 0.022556 | 0.067669 | 0.300752 | 0.300752 | 0 | 0 | 0 | 0 | 0 | 0.051136 | 0.355311 | 546 | 27 | 49 | 20.222222 | 0.704545 | 0 | 0 | 0.434783 | 0 | 0 | 0.239488 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.086957 | 0.347826 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbeb6bdd865a57de9bfabcbd439111e0ae5d40b5 | 1,080 | py | Python | bot.py | m2Link/YouTube-Video-Search | 0512ea220af271dc1853925026f31c32990fa4ff | [
"MIT"
] | 9 | 2021-09-30T06:25:03.000Z | 2022-02-10T05:45:23.000Z | bot.py | m2Link/YouTube-Video-Search | 0512ea220af271dc1853925026f31c32990fa4ff | [
"MIT"
] | null | null | null | bot.py | m2Link/YouTube-Video-Search | 0512ea220af271dc1853925026f31c32990fa4ff | [
"MIT"
] | 7 | 2021-09-30T06:24:56.000Z | 2022-02-10T04:52:10.000Z | from pyrogram import Client ,filters
import os
from py_youtube import Data, Search
from pyrogram.types import *
TOKEN = os.environ.get("TOKEN", "")
APP_ID = int(os.environ.get("APP_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
app = Client( "yt-search",
bot_token = TOKEN, api_id =API_ID , api_hash =... | 22.5 | 78 | 0.609259 | 140 | 1,080 | 4.578571 | 0.442857 | 0.043682 | 0.056162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001245 | 0.256481 | 1,080 | 47 | 79 | 22.978723 | 0.797011 | 0 | 0 | 0.171429 | 0 | 0 | 0.112963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.057143 | 0.114286 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cbf29fc594fa3d410506fc9b2b10ddf99a2f2899 | 1,569 | py | Python | test/const.py | DaniFdezAlvarez/shexerp3 | 80c3bdaac856a88d53359f5996477994774d34e2 | [
"Apache-2.0"
] | 3 | 2019-06-24T18:13:06.000Z | 2020-08-06T03:08:23.000Z | test/const.py | DaniFdezAlvarez/shexerp3 | 80c3bdaac856a88d53359f5996477994774d34e2 | [
"Apache-2.0"
] | 109 | 2019-05-22T11:53:05.000Z | 2021-03-15T11:09:18.000Z | test/const.py | DaniFdezAlvarez/shexerp3 | 80c3bdaac856a88d53359f5996477994774d34e2 | [
"Apache-2.0"
] | 2 | 2019-10-23T13:06:31.000Z | 2020-07-31T09:59:15.000Z | BASE_FILES = "C:\\Users\\Dani\\repos-git\\shexerp3\\test\\t_files\\"
BASE_FILES_GENERAL = BASE_FILES + "general\\"
G1 = BASE_FILES + "t_graph_1.ttl"
G1_NT = BASE_FILES + "t_graph_1.nt"
G1_TSVO_SPO = BASE_FILES + "t_graph_1.tsv"
G1_JSON_LD = BASE_FILES + "t_graph_1.json"
G1_XML = BASE_FILES + "t_graph_1.xml"
G1_N3 = B... | 42.405405 | 86 | 0.560867 | 228 | 1,569 | 3.662281 | 0.263158 | 0.100599 | 0.129341 | 0.172455 | 0.722156 | 0.542515 | 0.491018 | 0.457485 | 0.42515 | 0.42515 | 0 | 0.084448 | 0.237731 | 1,569 | 36 | 87 | 43.583333 | 0.613712 | 0.464627 | 0 | 0 | 0 | 0 | 0.467722 | 0.102314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0.058824 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbf53d52cd9777aefd5d176bd11a75c4a1b54abc | 303 | py | Python | Aula 07/ex6.py | diegorafaelvieira/Programacao-1 | 657a974f1215cec4aed68603e738d9a135131545 | [
"MIT"
] | null | null | null | Aula 07/ex6.py | diegorafaelvieira/Programacao-1 | 657a974f1215cec4aed68603e738d9a135131545 | [
"MIT"
] | null | null | null | Aula 07/ex6.py | diegorafaelvieira/Programacao-1 | 657a974f1215cec4aed68603e738d9a135131545 | [
"MIT"
] | null | null | null | val = int(input("Valor:"))
soma = val
maior = val
menor = val
for i in range(0,9):
val = int(input("Valor:"))
if val>maior:
maior = val
if val<menor:
menor=val
soma+=val
print("O maior valor é:",maior)
print("O menor valor é:",menor)
print("A média é:",(soma/10))
| 16.833333 | 31 | 0.570957 | 50 | 303 | 3.46 | 0.4 | 0.069364 | 0.127168 | 0.184971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0.257426 | 303 | 17 | 32 | 17.823529 | 0.751111 | 0 | 0 | 0.428571 | 0 | 0 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbf6bbc96905dc1f309f486dc863edc389cd8386 | 1,550 | py | Python | anchore/anchore-modules/queries/show-familytree.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 401 | 2016-06-16T15:29:48.000Z | 2022-03-24T10:05:16.000Z | anchore/anchore-modules/queries/show-familytree.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 63 | 2016-06-16T21:10:27.000Z | 2020-07-01T06:57:27.000Z | anchore/anchore-modules/queries/show-familytree.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 64 | 2016-06-16T13:05:57.000Z | 2021-07-16T10:03:45.000Z | #!/usr/bin/env python
import sys
import os
import re
import json
import traceback
import anchore.anchore_utils
# main routine
try:
config = anchore.anchore_utils.init_query_cmdline(sys.argv, "params: all\nhelp: shows dockerfile lines.")
except Exception as err:
print str(err)
sys.exit(1)
if not config:... | 22.794118 | 132 | 0.645806 | 203 | 1,550 | 4.82266 | 0.463054 | 0.085802 | 0.116445 | 0.040858 | 0.069459 | 0.069459 | 0 | 0 | 0 | 0 | 0 | 0.004223 | 0.236129 | 1,550 | 67 | 133 | 23.134328 | 0.822635 | 0.051613 | 0 | 0.204545 | 0 | 0 | 0.202869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.159091 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbfa1107b8b7c29048f818cde663861f0e4ac256 | 761 | py | Python | tests/test_binary_tree.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 8 | 2021-08-08T06:06:39.000Z | 2022-02-04T18:30:38.000Z | tests/test_binary_tree.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 1 | 2022-01-04T02:01:36.000Z | 2022-01-04T02:01:36.000Z | tests/test_binary_tree.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 2 | 2021-08-18T12:28:40.000Z | 2022-01-03T23:56:41.000Z | import os
import pytest
from dsplot.errors import InputException
from dsplot.tree import BinaryTree
def test_binary_tree():
tree = BinaryTree(nodes=[5, 4, 8, 11, None, 13, 4, 7, 2, None, None, 5, 1])
assert tree.root.val == 5
assert tree.root.right.left.val == 13
assert tree.root.right.right.left.v... | 29.269231 | 79 | 0.628121 | 129 | 761 | 3.674419 | 0.379845 | 0.147679 | 0.06962 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088333 | 0.211564 | 761 | 25 | 80 | 30.44 | 0.701667 | 0 | 0 | 0 | 0 | 0 | 0.114323 | 0.031537 | 0 | 0 | 0 | 0 | 0.470588 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0210ff2439d9da24bc21178720c18eee48ba770a | 1,224 | py | Python | COT/tests/test_doctests.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 81 | 2015-01-18T22:31:42.000Z | 2022-03-14T12:34:33.000Z | COT/tests/test_doctests.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 67 | 2015-01-05T15:24:39.000Z | 2021-08-16T12:44:58.000Z | COT/tests/test_doctests.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 20 | 2015-07-09T14:20:25.000Z | 2021-09-18T17:59:57.000Z | #!/usr/bin/env python
#
# test_doctests.py - test runner for COT doctests
#
# July 2016, Glenn F. Matthews
# Copyright (c) 2016-2017 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/COPYRIGHT.txt.
#
# This ... | 33.081081 | 78 | 0.750817 | 177 | 1,224 | 5.169492 | 0.491525 | 0.022951 | 0.028415 | 0.034973 | 0.222951 | 0.181421 | 0.181421 | 0.181421 | 0.181421 | 0.181421 | 0 | 0.011583 | 0.153595 | 1,224 | 36 | 79 | 34 | 0.871622 | 0.681373 | 0 | 0 | 0 | 0 | 0.098315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0211dbc40a6aa48e66ae666cbc2afb8294c1a296 | 297 | py | Python | apps/core/urls.py | tayyabRazzaq/opl-platform | 37b0efdb9327253a144c50bfd192132fac732619 | [
"MIT"
] | 2 | 2019-04-03T04:04:53.000Z | 2019-04-28T16:13:56.000Z | apps/core/urls.py | tayyabRazzaq/opl-platform | 37b0efdb9327253a144c50bfd192132fac732619 | [
"MIT"
] | 8 | 2021-06-04T21:57:30.000Z | 2022-03-11T23:48:38.000Z | apps/core/urls.py | tayyab-razzaq/opl-platform | 37b0efdb9327253a144c50bfd192132fac732619 | [
"MIT"
] | 7 | 2019-03-12T19:39:08.000Z | 2021-04-15T05:25:59.000Z | """ Here all the blog's urls routes will be mapped """
from django.urls import path
from django.conf.urls import include, url
from . import views
app_name = 'core'
urlpatterns = [
# path('', views.home, name='home-page'),
url(r'^api/', include('apps.core.api.urls', namespace='api')),
]
| 24.75 | 66 | 0.670034 | 45 | 297 | 4.4 | 0.622222 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 297 | 11 | 67 | 27 | 0.795181 | 0.296296 | 0 | 0 | 0 | 0 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
02154f47c33721ccd238e5aa1dcf948b5ec4704f | 1,308 | py | Python | Tools/RaiseCheck.py | 17320692835RGF/buptoj | 3d1e4719d757b4f0199e4451be7c0bee28e7c3ca | [
"MIT"
] | null | null | null | Tools/RaiseCheck.py | 17320692835RGF/buptoj | 3d1e4719d757b4f0199e4451be7c0bee28e7c3ca | [
"MIT"
] | null | null | null | Tools/RaiseCheck.py | 17320692835RGF/buptoj | 3d1e4719d757b4f0199e4451be7c0bee28e7c3ca | [
"MIT"
] | null | null | null |
import MySQLdb
from queue import Queue
import socket
import json
from time import sleep
import threading
import os
queue = Queue() # 全局判题列表
myjsonfile = open("./setting.json", 'r')
judgerjson = json.loads(myjsonfile.read())
if os.environ.get("DB_USER"):
judgerjson["db_ip"] = os.environ.get(... | 22.169492 | 96 | 0.603211 | 183 | 1,308 | 4.229508 | 0.393443 | 0.139535 | 0.077519 | 0.090439 | 0.18863 | 0.170543 | 0.170543 | 0.093023 | 0.093023 | 0.093023 | 0 | 0.011893 | 0.228593 | 1,308 | 58 | 97 | 22.551724 | 0.755203 | 0.004587 | 0 | 0.157895 | 0 | 0 | 0.154281 | 0.018578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.184211 | 0 | 0.184211 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
021c36744a33f4725dc24d93c0aa09acf81e97bf | 2,193 | py | Python | tictac/tictac/cli.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | tictac/tictac/cli.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | tictac/tictac/cli.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | import click
from random import randrange
from tictac import Tictac
@click.group()
def tictac():
pass
@tictac.command(name="games", help="Returns all started games, order by when they were created")
def view_games():
tictac_class = Tictac()
click.echo(tictac_class.view_games())
@tictac.command(name="... | 33.227273 | 96 | 0.645691 | 286 | 2,193 | 4.727273 | 0.346154 | 0.105769 | 0.037722 | 0.029586 | 0.106509 | 0.060651 | 0.060651 | 0.060651 | 0 | 0 | 0 | 0.006716 | 0.253078 | 2,193 | 65 | 97 | 33.738462 | 0.818681 | 0.046968 | 0 | 0.106383 | 0 | 0 | 0.224353 | 0.010547 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.085106 | false | 0.021277 | 0.06383 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
022e5e8924eb3bc3c0fcb9bc827782f367ea128d | 565 | py | Python | homework5/app/config.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework5/app/config.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework5/app/config.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | 2 | 2021-08-29T15:01:39.000Z | 2022-02-23T18:48:21.000Z | from typing import Any
from pydantic import BaseSettings
from .utils import singleton_cache
class Settings(BaseSettings):
TESTING: bool = False
SQLALCHEMY_DATABASE_URI: str = 'sqlite:///db.sqlite3'
FIRST_SUPERUSER: str = 'admin'
FIRST_SUPERUSER_PASSWORD: str = 'admin'
FIRST_SUPERUSER_ROLE: str... | 20.178571 | 57 | 0.699115 | 68 | 565 | 5.573529 | 0.632353 | 0.110818 | 0.068602 | 0.116095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0.210619 | 565 | 27 | 58 | 20.925926 | 0.840807 | 0 | 0 | 0 | 0 | 0 | 0.083186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.176471 | 0.058824 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0232d872e8633ddbe199a54a9b7cd036c696f627 | 458 | py | Python | user/migrations/0017_auto_20200812_2149.py | Muia23/Grammer | dcc26937d88382c1da36a5f72306e6de367e90a3 | [
"Unlicense"
] | null | null | null | user/migrations/0017_auto_20200812_2149.py | Muia23/Grammer | dcc26937d88382c1da36a5f72306e6de367e90a3 | [
"Unlicense"
] | null | null | null | user/migrations/0017_auto_20200812_2149.py | Muia23/Grammer | dcc26937d88382c1da36a5f72306e6de367e90a3 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-08-12 18:49
from __future__ import unicode_literals
from django.db import migrations
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('user', '0016_post_likes'),
]
operations = [
migrations.Alter... | 20.818182 | 55 | 0.617904 | 51 | 458 | 5.392157 | 0.803922 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065282 | 0.264192 | 458 | 21 | 56 | 21.809524 | 0.750742 | 0.150655 | 0 | 0 | 1 | 0 | 0.07513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02339931b6a314a7b42357abbf8fe125695e6d76 | 533 | py | Python | ocr.py | PI2-Braille-printer/OCR | 25511596efbe5e408fe43a92c0d04e513d7fea39 | [
"MIT"
] | null | null | null | ocr.py | PI2-Braille-printer/OCR | 25511596efbe5e408fe43a92c0d04e513d7fea39 | [
"MIT"
] | 6 | 2021-03-18T20:56:22.000Z | 2022-03-11T23:28:10.000Z | ocr.py | PI2-Braille-printer/OCR | 25511596efbe5e408fe43a92c0d04e513d7fea39 | [
"MIT"
] | null | null | null | from PIL import Image, ImageEnhance
import pytesseract
import os
#image = Image.open('f_test.jpg')
#enhance = ImageEnhance.Contrast(image)
#new_image = enhance.enhance(1.5)
#new_image.save('f_test__c_2.jpg')
for x in range(0,3):
os.system('./textcleaner -g -s 2 -a 1 ./Images/test_crop_'+str(x)+'.jpg ./Images/test_cr... | 31.352941 | 110 | 0.739212 | 88 | 533 | 4.227273 | 0.465909 | 0.16129 | 0.112903 | 0.137097 | 0.166667 | 0.11828 | 0.11828 | 0 | 0 | 0 | 0 | 0.014344 | 0.084428 | 533 | 16 | 111 | 33.3125 | 0.747951 | 0.360225 | 0 | 0 | 0 | 0 | 0.310448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0236d5c96173fb20b1c62f540c0341822dff9bf5 | 788 | py | Python | test/point_test.py | markupCode/computational-geometry | 9a0a63a0b0c86e0618c18f82283b41baded21c50 | [
"MIT"
] | null | null | null | test/point_test.py | markupCode/computational-geometry | 9a0a63a0b0c86e0618c18f82283b41baded21c50 | [
"MIT"
] | null | null | null | test/point_test.py | markupCode/computational-geometry | 9a0a63a0b0c86e0618c18f82283b41baded21c50 | [
"MIT"
] | null | null | null | import unittest
from geometry.point import Point
class TestPoint(unittest.TestCase):
def get_points(self):
return [
Point(0, 0),
Point(1, 1),
Point(0, 1),
Point(-1, 1),
Point(-1, 0),
Point(-1, -1),
Point(1, -1)
]... | 23.878788 | 50 | 0.549492 | 100 | 788 | 4.14 | 0.32 | 0.115942 | 0.355072 | 0.086957 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068716 | 0.298223 | 788 | 32 | 51 | 24.625 | 0.679928 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 1 | 0.083333 | false | 0 | 0.083333 | 0.041667 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
023b3b94e54c17d3e9f985c30a7d72a9e9d96bce | 573 | py | Python | Qcover/backends/__init__.py | BAQIS-Quantum/Qcover | ca3776ed73fefa0cfef08042143a8cf842f8dad5 | [
"Apache-2.0"
] | 38 | 2021-12-22T03:12:01.000Z | 2022-03-17T06:57:10.000Z | Qcover/backends/__init__.py | BAQIS-Quantum/Qcover | ca3776ed73fefa0cfef08042143a8cf842f8dad5 | [
"Apache-2.0"
] | null | null | null | Qcover/backends/__init__.py | BAQIS-Quantum/Qcover | ca3776ed73fefa0cfef08042143a8cf842f8dad5 | [
"Apache-2.0"
] | 13 | 2021-12-22T07:32:44.000Z | 2022-02-28T06:47:41.000Z | from .backend import Backend
from .circuitbyqiskit import CircuitByQiskit
from .circuitbyprojectq import CircuitByProjectq
from .circuitbycirq import CircuitByCirq
from .circuitbyqulacs import CircuitByQulacs
# from .circuitbytket import CircuitByTket
from .circuitbytensor import CircuitByTensor
from .circuitbyq... | 27.285714 | 49 | 0.767888 | 45 | 573 | 9.688889 | 0.311111 | 0.087156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167539 | 573 | 20 | 50 | 28.65 | 0.914046 | 0.069808 | 0 | 0 | 0 | 0 | 0.197652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
024430ea1d89420e6939d1c770a6a86ca49668e5 | 4,626 | py | Python | example/F3Dp/F3D_syn.py | Chunfang/defmod-swpc | 74fe7c02b24a46aa24bca7438738aa5adb72e2b6 | [
"MIT"
] | 26 | 2017-05-12T08:11:57.000Z | 2022-03-06T01:44:24.000Z | example/F3Dp/F3D_syn.py | Soengmou/defmod-swpc | 75740fca3b36107e9d18201a5623c955f6010740 | [
"MIT"
] | 4 | 2019-09-11T15:35:16.000Z | 2020-06-23T10:49:34.000Z | example/F3Dp/F3D_syn.py | Chunfang/defmod-swpc | 74fe7c02b24a46aa24bca7438738aa5adb72e2b6 | [
"MIT"
] | 8 | 2017-05-22T18:40:13.000Z | 2021-02-10T08:04:39.000Z | #!/usr/bin/env python
import numpy as np
import os,sys
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as plt
import argparse
ap=argparse.ArgumentParser()
ap.add_argument('-vis') # 1 plot cropped point cloud
ap.add_argument('-refine') # 1 refine mesh
ap.add_argument('-clean') # 1 remove tmp... | 34.266667 | 115 | 0.635754 | 884 | 4,626 | 3.222851 | 0.270362 | 0.09828 | 0.025272 | 0.009828 | 0.147069 | 0.113373 | 0.077571 | 0.07722 | 0.07722 | 0.058968 | 0 | 0.085096 | 0.141375 | 4,626 | 134 | 116 | 34.522388 | 0.632175 | 0.115435 | 0 | 0.053097 | 0 | 0 | 0.086626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.079646 | null | null | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0244e0d25129f6105b7892408951f27b584d128e | 2,850 | py | Python | fltk/util/data_loader_utils.py | tudelft-eemcs-dml/fltk-testbed-gr-5 | 72afa24a37cd1f8f5f49665c83ccbd730d76ad21 | [
"BSD-2-Clause"
] | null | null | null | fltk/util/data_loader_utils.py | tudelft-eemcs-dml/fltk-testbed-gr-5 | 72afa24a37cd1f8f5f49665c83ccbd730d76ad21 | [
"BSD-2-Clause"
] | 2 | 2021-05-11T12:48:14.000Z | 2021-05-11T12:49:24.000Z | fltk/util/data_loader_utils.py | tudelft-eemcs-dml/fltk-testbed-gr-5 | 72afa24a37cd1f8f5f49665c83ccbd730d76ad21 | [
"BSD-2-Clause"
] | 2 | 2021-05-03T17:40:18.000Z | 2021-05-11T09:34:30.000Z | import numpy
from torch.utils.data import DataLoader
import os
import pickle
import random
from ..datasets import Dataset
def generate_data_loaders_from_distributed_dataset(distributed_dataset, batch_size):
"""
Generate data loaders from a distributed dataset.
:param distributed_dataset: Distributed data... | 31.318681 | 138 | 0.729825 | 407 | 2,850 | 4.845209 | 0.194103 | 0.116633 | 0.049696 | 0.040568 | 0.486308 | 0.466024 | 0.364097 | 0.314402 | 0.278905 | 0.270791 | 0 | 0.001715 | 0.181754 | 2,850 | 90 | 139 | 31.666667 | 0.843911 | 0.19193 | 0 | 0.085106 | 1 | 0 | 0.099001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.12766 | 0.021277 | 0.489362 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
024c6205dd81c6aee9436b9f31977f458d63fa70 | 3,384 | py | Python | tools/test.py | EMinsight/MPh | 2b967b77352f9ce7effcd50ad4774bf5eaf731ea | [
"MIT"
] | null | null | null | tools/test.py | EMinsight/MPh | 2b967b77352f9ce7effcd50ad4774bf5eaf731ea | [
"MIT"
] | null | null | null | tools/test.py | EMinsight/MPh | 2b967b77352f9ce7effcd50ad4774bf5eaf731ea | [
"MIT"
] | null | null | null | """
Runs all tests in the intended order.
Each test script (in the `tests` folder) contains a group of tests.
These scripts must be run in separate processes as most of them start
and stop the Java virtual machine, which can only be done once per
process. This is why simply calling pyTest (with `python -m pytes... | 36 | 76 | 0.636525 | 460 | 3,384 | 4.647826 | 0.41087 | 0.025257 | 0.031805 | 0.014032 | 0.029935 | 0.029935 | 0 | 0 | 0 | 0 | 0 | 0.004023 | 0.265366 | 3,384 | 93 | 77 | 36.387097 | 0.855591 | 0.060284 | 0 | 0.105263 | 0 | 0 | 0.201523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017544 | 0.122807 | null | null | 0.087719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0254feaa1c998dfb2faf7f35247b0cc22066d85a | 326 | py | Python | main/migrations_old/0007_remove_profile_rated_recipes.py | ggetzie/nnr | a8b1b1d771027edee2c19062f39fa982cfd024b0 | [
"MIT"
] | null | null | null | main/migrations_old/0007_remove_profile_rated_recipes.py | ggetzie/nnr | a8b1b1d771027edee2c19062f39fa982cfd024b0 | [
"MIT"
] | 5 | 2020-07-28T12:41:50.000Z | 2022-01-21T23:27:15.000Z | main/migrations_old/0007_remove_profile_rated_recipes.py | ggetzie/nnr | a8b1b1d771027edee2c19062f39fa982cfd024b0 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-09-29 13:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0006_recipe_tags'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='rated_recipes',
),
... | 18.111111 | 47 | 0.588957 | 35 | 326 | 5.371429 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082969 | 0.297546 | 326 | 17 | 48 | 19.176471 | 0.737991 | 0.138037 | 0 | 0 | 1 | 0 | 0.143369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02591832a76c44befd1384a4984c9e645f451a38 | 3,077 | py | Python | conference_lib/confemailrecipients.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | conference_lib/confemailrecipients.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | 1 | 2020-02-05T13:00:29.000Z | 2020-02-05T13:00:29.000Z | conference_lib/confemailrecipients.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | #-----------------------------------------------------
# Mimas: conference submission and review system
# (c) Allan Kelly 2016-2020 http://www.allankelly.net
# Licensed under MIT License, see LICENSE file
# -----------------------------------------------------
# System imports
# Google imports
from google.appengine.e... | 40.486842 | 109 | 0.653559 | 325 | 3,077 | 5.990769 | 0.32 | 0.053929 | 0.093477 | 0.032871 | 0.213148 | 0.148433 | 0.135593 | 0.063688 | 0.046225 | 0.046225 | 0 | 0.003705 | 0.210595 | 3,077 | 75 | 110 | 41.026667 | 0.797859 | 0.113422 | 0 | 0.08 | 0 | 0 | 0.129139 | 0.014349 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.1 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0259bea6f07ec94194968114adbb7688e3c79035 | 236 | py | Python | basic/Pyshop/products/models.py | IsAlbertLiu/Python-basics | 49c0c93fb7d1abb70548854b69346eb5837ba00d | [
"MIT"
] | null | null | null | basic/Pyshop/products/models.py | IsAlbertLiu/Python-basics | 49c0c93fb7d1abb70548854b69346eb5837ba00d | [
"MIT"
] | null | null | null | basic/Pyshop/products/models.py | IsAlbertLiu/Python-basics | 49c0c93fb7d1abb70548854b69346eb5837ba00d | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Product(models.Model):
name = models.CharField(max_length=255)
price = models.FloatField()
stack = models.IntegerField()
image_url = models.CharField(2083)
| 23.6 | 43 | 0.724576 | 30 | 236 | 5.633333 | 0.766667 | 0.177515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035897 | 0.173729 | 236 | 9 | 44 | 26.222222 | 0.830769 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
0259fbe373b86b3d2859b384b23af03bfb7c829a | 758 | py | Python | examples/delta_setitem/001_check_setitem.py | pkicsiny/xpart | cddf3eb65ffc198c22dd37204139ce3177a9bd96 | [
"MIT"
] | null | null | null | examples/delta_setitem/001_check_setitem.py | pkicsiny/xpart | cddf3eb65ffc198c22dd37204139ce3177a9bd96 | [
"MIT"
] | null | null | null | examples/delta_setitem/001_check_setitem.py | pkicsiny/xpart | cddf3eb65ffc198c22dd37204139ce3177a9bd96 | [
"MIT"
] | null | null | null | import numpy as np
import xpart as xp
import xobjects as xo
#context = xo.ContextPyopencl()
context = xo.ContextCpu()
ctx2np = context.nparray_from_context_array
particles = xp.Particles(_context=context, p0c=26e9, delta=[1,2,3])
assert ctx2np(particles.delta[2]) == 3
assert np.isclose(ctx2np(particles.rvv[2]), 1.00... | 32.956522 | 82 | 0.726913 | 121 | 758 | 4.512397 | 0.322314 | 0.128205 | 0.082418 | 0.115385 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 0.114776 | 758 | 22 | 83 | 34.454545 | 0.731744 | 0.039578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
025e3d2d32267b02443190a02969375302ba67a9 | 978 | py | Python | ietf/review/migrations/0020_auto_20191115_2059.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 25 | 2022-03-05T08:26:52.000Z | 2022-03-30T15:45:42.000Z | ietf/review/migrations/0020_auto_20191115_2059.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 219 | 2022-03-04T17:29:12.000Z | 2022-03-31T21:16:14.000Z | ietf/review/migrations/0020_auto_20191115_2059.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 22 | 2022-03-04T15:34:34.000Z | 2022-03-28T13:30:59.000Z | # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-11-15 20:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('review', '0019_auto_20191023_0829'),
]
operations = [
m... | 36.222222 | 231 | 0.677914 | 125 | 978 | 5.16 | 0.536 | 0.046512 | 0.049612 | 0.055814 | 0.443411 | 0.443411 | 0.232558 | 0.232558 | 0.232558 | 0.232558 | 0 | 0.055851 | 0.231084 | 978 | 26 | 232 | 37.615385 | 0.801862 | 0.127812 | 0 | 0.352941 | 1 | 0.058824 | 0.426384 | 0.155477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
025e72e9d1d41e03246451d111dab4b24c0f7bd1 | 442 | py | Python | AlgoExpert/PalindromeCheck.py | akhil-ece/160Days | 545d1c70c79c6ef2341137a88e6a09f81f330ea4 | [
"MIT"
] | null | null | null | AlgoExpert/PalindromeCheck.py | akhil-ece/160Days | 545d1c70c79c6ef2341137a88e6a09f81f330ea4 | [
"MIT"
] | null | null | null | AlgoExpert/PalindromeCheck.py | akhil-ece/160Days | 545d1c70c79c6ef2341137a88e6a09f81f330ea4 | [
"MIT"
] | null | null | null | def isPalindrome(string, i = 0):
j = len(string) - 1 -i
return True if i > j else string[i] == string[j] and isPalindrome(string, i+1)
def isPalindrome(string):
return string == string[::-1]
def isPalindromeUsingIndexes(string):
lIx = 0
rIdx = len(string) -1
while lIx < rIdx:
if(string... | 24.555556 | 82 | 0.561086 | 58 | 442 | 4.275862 | 0.310345 | 0.217742 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026403 | 0.31448 | 442 | 17 | 83 | 26 | 0.792079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.066667 | 0.466667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02623225e5d363b265ee6e56ba38be5191b44c1f | 435 | py | Python | scripts/issues/issue6.py | slamer59/awesome-panel | 91c30bd6d6859eadf9c65b1e143952f7e64d5290 | [
"Apache-2.0"
] | 179 | 2019-12-04T14:54:53.000Z | 2022-03-30T09:08:38.000Z | scripts/issues/issue6.py | slamer59/awesome-panel | 91c30bd6d6859eadf9c65b1e143952f7e64d5290 | [
"Apache-2.0"
] | 62 | 2019-12-14T16:51:28.000Z | 2022-03-19T18:47:12.000Z | scripts/issues/issue6.py | slamer59/awesome-panel | 91c30bd6d6859eadf9c65b1e143952f7e64d5290 | [
"Apache-2.0"
] | 35 | 2019-12-08T13:19:53.000Z | 2022-03-25T10:33:02.000Z | import panel as pn
def main():
text_error = """
This is not formatted correctly by Markdown due to the indentation!"""
text_ok = """
This is formatted correctly by Markdown!
"""
app = pn.Column(
pn.pane.Markdown(text_error),
pn.pane.HTML(
"<hr>",
si... | 19.772727 | 75 | 0.542529 | 51 | 435 | 4.509804 | 0.588235 | 0.078261 | 0.173913 | 0.243478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.337931 | 435 | 21 | 76 | 20.714286 | 0.798611 | 0 | 0 | 0 | 0 | 0 | 0.316425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
026b557b15ada072d61283c89f10a088c8637df4 | 1,416 | py | Python | webapp/app.py | aleksandergurin/news | 9e7d3c35857600445cb6df42ba18d289dc0e37a9 | [
"BSD-3-Clause"
] | 3 | 2015-08-20T11:08:28.000Z | 2018-01-28T21:22:53.000Z | webapp/app.py | aleksandergurin/news | 9e7d3c35857600445cb6df42ba18d289dc0e37a9 | [
"BSD-3-Clause"
] | null | null | null | webapp/app.py | aleksandergurin/news | 9e7d3c35857600445cb6df42ba18d289dc0e37a9 | [
"BSD-3-Clause"
] | null | null | null |
from flask import Flask, render_template
from config import configs
from .extensions import login_manager, db
from .account import account
from .frontend import frontend
from webapp.session import RedisSessionInterface
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(configs[config_n... | 24.413793 | 80 | 0.711864 | 184 | 1,416 | 5.271739 | 0.282609 | 0.072165 | 0.053608 | 0.086598 | 0.11134 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031304 | 0.187853 | 1,416 | 57 | 81 | 24.842105 | 0.812174 | 0 | 0 | 0 | 0 | 0 | 0.053004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.175 | 0.1 | 0.525 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
027194484ee86822b39b3b119ff07d71c83e4daa | 895 | py | Python | setup.py | oleks/gigalixir-cli | d1b1c303e24be548ddc895165e34652c378f4347 | [
"MIT"
] | null | null | null | setup.py | oleks/gigalixir-cli | d1b1c303e24be548ddc895165e34652c378f4347 | [
"MIT"
] | null | null | null | setup.py | oleks/gigalixir-cli | d1b1c303e24be548ddc895165e34652c378f4347 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='gigalixir',
url='https://github.com/gigalixir/gigalixir-cli',
author='Jesse Shieh',
author_email='jesse@gigalixir.com',
version='1.1.10',
packages=find_packages(),
include_package_data=True,
install_requires=[
'click~=6.7'... | 20.813953 | 53 | 0.492737 | 85 | 895 | 5.035294 | 0.658824 | 0.056075 | 0.098131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037543 | 0.345251 | 895 | 42 | 54 | 21.309524 | 0.692833 | 0 | 0 | 0.268293 | 0 | 0 | 0.348603 | 0.025698 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.02439 | 0 | 0.02439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02723743e00e16a13861c25c7c9d6a4bb4b3f93e | 254 | py | Python | runTest.py | Amedeo91/cushypost_integration | fc7ffc9daf535ed5bcfdee4933a7a57340a583b2 | [
"MIT"
] | 1 | 2021-10-06T06:23:40.000Z | 2021-10-06T06:23:40.000Z | runTest.py | Amedeo91/cushypost_integration | fc7ffc9daf535ed5bcfdee4933a7a57340a583b2 | [
"MIT"
] | null | null | null | runTest.py | Amedeo91/cushypost_integration | fc7ffc9daf535ed5bcfdee4933a7a57340a583b2 | [
"MIT"
] | null | null | null | import os
import unittest
dir_path = os.path.dirname(os.path.realpath(__file__))
suite = unittest.TestLoader().discover(dir_path, pattern='test_*.py')
result = unittest.TextTestRunner(verbosity=3).run(suite)
print(result)
assert result.wasSuccessful()
| 25.4 | 69 | 0.787402 | 34 | 254 | 5.676471 | 0.647059 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.074803 | 254 | 9 | 70 | 28.222222 | 0.817021 | 0 | 0 | 0 | 0 | 0 | 0.035433 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0273c9fe7bf28f09a7dc46bd636570ab46c8a8fa | 611 | py | Python | FusionIIIT/applications/gymkhana/migrations/0007_auto_20200608_2210.py | sabhishekpratap5/sonarcubeTest2 | 9bd8105e457f6feb8c38fa94b335e54783fca99e | [
"bzip2-1.0.6"
] | 2 | 2020-01-24T16:34:54.000Z | 2020-08-01T05:09:24.000Z | FusionIIIT/applications/gymkhana/migrations/0007_auto_20200608_2210.py | sabhishekpratap5/sonarcubeTest2 | 9bd8105e457f6feb8c38fa94b335e54783fca99e | [
"bzip2-1.0.6"
] | 1 | 2021-05-05T09:50:22.000Z | 2021-05-05T09:50:22.000Z | FusionIIIT/applications/gymkhana/migrations/0007_auto_20200608_2210.py | sabhishekpratap5/sonarcubeTest2 | 9bd8105e457f6feb8c38fa94b335e54783fca99e | [
"bzip2-1.0.6"
] | 4 | 2020-01-16T17:00:08.000Z | 2020-06-30T15:58:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-06-08 22:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gymkhana', '0006_form_available'),
]
operations = [
migrations.RemoveField... | 24.44 | 101 | 0.610475 | 65 | 611 | 5.538462 | 0.753846 | 0.108333 | 0.072222 | 0.122222 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.273322 | 611 | 24 | 102 | 25.458333 | 0.743243 | 0.11293 | 0 | 0.235294 | 1 | 0 | 0.113173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02869a45220bc3cd768ae9f192b46417fa96c690 | 4,354 | py | Python | plugin_manager/accounts/models.py | ahharu/plugin-manager | 43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb | [
"MIT"
] | null | null | null | plugin_manager/accounts/models.py | ahharu/plugin-manager | 43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb | [
"MIT"
] | null | null | null | plugin_manager/accounts/models.py | ahharu/plugin-manager | 43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb | [
"MIT"
] | null | null | null | """
Custom user model for deployments.
"""
import urllib
import hashlib
import base64
import random
from authtools.models import AbstractEmailUser
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.db.models.signals import post_save
from .managers import DeployUserManage... | 29.221477 | 78 | 0.595315 | 472 | 4,354 | 5.366525 | 0.341102 | 0.035531 | 0.014212 | 0.025266 | 0.121595 | 0.076589 | 0.05685 | 0.0379 | 0 | 0 | 0 | 0.00801 | 0.283188 | 4,354 | 148 | 79 | 29.418919 | 0.803589 | 0.064079 | 0 | 0.07767 | 0 | 0 | 0.11611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097087 | false | 0 | 0.116505 | 0.019417 | 0.61165 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
028a79224d1b3b0d7d2cc26a3b2408f89ff5f8c5 | 7,252 | py | Python | lstm_toyexample.py | dsriaditya999/LSTM-Toy-Example | 850f7923122b547c1fd25b3b1dc739e8c5db2570 | [
"MIT"
] | null | null | null | lstm_toyexample.py | dsriaditya999/LSTM-Toy-Example | 850f7923122b547c1fd25b3b1dc739e8c5db2570 | [
"MIT"
] | null | null | null | lstm_toyexample.py | dsriaditya999/LSTM-Toy-Example | 850f7923122b547c1fd25b3b1dc739e8c5db2570 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Importing Libraries
"""
# Commented out IPython magic to ensure Python compatibility.
import torch
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import torch.nn as nn
from tqdm import tqdm_notebook
from sklearn.preprocessing import MinMaxScaler... | 34.046948 | 212 | 0.734694 | 1,088 | 7,252 | 4.765625 | 0.264706 | 0.020829 | 0.031823 | 0.027772 | 0.199421 | 0.164899 | 0.164899 | 0.152941 | 0.140598 | 0.140598 | 0 | 0.018936 | 0.162576 | 7,252 | 212 | 213 | 34.207547 | 0.834843 | 0.280612 | 0 | 0.27027 | 0 | 0 | 0.066943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.081081 | 0 | 0 | 0.054054 | 0.144144 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
65f47a4c6cbf9c3cbfef8996d91a66023d1ce4f0 | 1,475 | py | Python | leetcode/minimumAreaRectangle.py | federicoemartinez/problem_solving | d0352f76bc21ed67d6851a159a00f70a892934b9 | [
"MIT"
] | null | null | null | leetcode/minimumAreaRectangle.py | federicoemartinez/problem_solving | d0352f76bc21ed67d6851a159a00f70a892934b9 | [
"MIT"
] | null | null | null | leetcode/minimumAreaRectangle.py | federicoemartinez/problem_solving | d0352f76bc21ed67d6851a159a00f70a892934b9 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/minimum-area-rectangle/description/
"""
Given a set of points in the xy-plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes.
If there isn't any rectangle, return 0.
Example 1:
Input: [[1,1],[1,3],[3,1],[3,3],[2,2]]
Outp... | 27.314815 | 147 | 0.553898 | 232 | 1,475 | 3.387931 | 0.323276 | 0.050891 | 0.063613 | 0.05598 | 0.14631 | 0.033079 | 0.033079 | 0.033079 | 0.033079 | 0 | 0 | 0.05315 | 0.311186 | 1,475 | 53 | 148 | 27.830189 | 0.720472 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a0258dc0630fde008fae59e8ca2f2322000aca2 | 732 | py | Python | UnitTests/FullAtomModel/PDB2Coords/test.py | dendisuhubdy/TorchProteinLibrary | 89f0f6c311658b9313484cd92804682a251b1b97 | [
"MIT"
] | null | null | null | UnitTests/FullAtomModel/PDB2Coords/test.py | dendisuhubdy/TorchProteinLibrary | 89f0f6c311658b9313484cd92804682a251b1b97 | [
"MIT"
] | null | null | null | UnitTests/FullAtomModel/PDB2Coords/test.py | dendisuhubdy/TorchProteinLibrary | 89f0f6c311658b9313484cd92804682a251b1b97 | [
"MIT"
] | null | null | null | import sys
import os
import matplotlib.pylab as plt
import numpy as np
import mpl_toolkits.mplot3d.axes3d as p3
import seaborn as sea
import torch
from TorchProteinLibrary import FullAtomModel
if __name__=='__main__':
# p2c = FullAtomModel.PDB2Coords.PDB2CoordsBiopython()
p2c = FullAtomModel.PDB2CoordsUnorde... | 24.4 | 58 | 0.674863 | 99 | 732 | 4.858586 | 0.575758 | 0.056133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035593 | 0.193989 | 732 | 29 | 59 | 25.241379 | 0.779661 | 0.071038 | 0 | 0 | 0 | 0 | 0.030973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a054c6f2f48cad9dc180b59f6e0034f5b144f73 | 331 | py | Python | codes/day06/03.py | Youngfellows/HPyBaseCode | 94d11872795d85b8c4387b650e82edcd20da0667 | [
"Apache-2.0"
] | null | null | null | codes/day06/03.py | Youngfellows/HPyBaseCode | 94d11872795d85b8c4387b650e82edcd20da0667 | [
"Apache-2.0"
] | null | null | null | codes/day06/03.py | Youngfellows/HPyBaseCode | 94d11872795d85b8c4387b650e82edcd20da0667 | [
"Apache-2.0"
] | null | null | null | class Dog:
def __init__(self, newColor):
self.color = newColor
def bark(self):
print("---旺旺叫----")
def printColor(self):
print("颜色为:%s"%self.color)
def test(AAA):
AAA.printColor()
wangcai = Dog("白")
#wangcai.printColor()
xiaoqiang = Dog("黑")
#xiaoqiang.printColor()
tes... | 15.045455 | 34 | 0.592145 | 39 | 331 | 4.923077 | 0.487179 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232628 | 331 | 21 | 35 | 15.761905 | 0.755906 | 0.126888 | 0 | 0 | 0 | 0 | 0.062718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.416667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a0e75196f538319c5078d09117599bf367b0df0 | 1,208 | py | Python | app/api/utlis/models.py | jurekpawlikowski/flask-boilerplate | 15b7e6c4e0241a7d59dbca543e023a22b17b9903 | [
"MIT"
] | 3 | 2017-08-05T08:57:37.000Z | 2021-03-03T09:09:03.000Z | app/api/utlis/models.py | jurekpawlikowski/flask-boilerplate | 15b7e6c4e0241a7d59dbca543e023a22b17b9903 | [
"MIT"
] | null | null | null | app/api/utlis/models.py | jurekpawlikowski/flask-boilerplate | 15b7e6c4e0241a7d59dbca543e023a22b17b9903 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
from sqlalchemy.event import listen
from app.factory import db
class BaseModel(db.Model):
"""
Base model with `created_at` and `updated_at` fields
"""
__abstract__ = True
fields_to_serialize = []
created_at = db.Col... | 23.686275 | 80 | 0.647351 | 148 | 1,208 | 5.121622 | 0.432432 | 0.07124 | 0.068602 | 0.031662 | 0.14248 | 0.14248 | 0.14248 | 0.14248 | 0.14248 | 0.14248 | 0 | 0.001095 | 0.244205 | 1,208 | 50 | 81 | 24.16 | 0.829135 | 0.096026 | 0 | 0.071429 | 0 | 0 | 0.012264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0.035714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a0fd6978a62253af90bdbf0d79e056e97e5921d | 1,391 | py | Python | source/tweaks/cms_plugins.py | mverleg/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | null | null | null | source/tweaks/cms_plugins.py | mverleg/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | 142 | 2015-06-05T07:53:09.000Z | 2020-03-31T18:37:07.000Z | source/tweaks/cms_plugins.py | mdilli/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | null | null | null |
"""
Raw HTML widget.
Adapted/copied from https://github.com/makukha/cmsplugin-raw-html
"""
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.template import Template
from django.utils.safestring import mark_safe
from .models import RawHtmlModel, CMSMember
from django.utils.... | 24.839286 | 79 | 0.757009 | 177 | 1,391 | 5.836158 | 0.457627 | 0.038722 | 0.025169 | 0.038722 | 0.172314 | 0.172314 | 0.100678 | 0.100678 | 0 | 0 | 0 | 0 | 0.145219 | 1,391 | 55 | 80 | 25.290909 | 0.868797 | 0.217829 | 0 | 0.121212 | 0 | 0 | 0.079812 | 0.022535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.181818 | 0 | 0.606061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a1046d61cc7585c8ffb76dc65a2afa1c14d62a9 | 3,296 | py | Python | tests/test_trackings.py | EugeneLiu/aftership-sdk-python | 37184272869452734d616b31295a4ac883051f5d | [
"MIT"
] | null | null | null | tests/test_trackings.py | EugeneLiu/aftership-sdk-python | 37184272869452734d616b31295a4ac883051f5d | [
"MIT"
] | null | null | null | tests/test_trackings.py | EugeneLiu/aftership-sdk-python | 37184272869452734d616b31295a4ac883051f5d | [
"MIT"
] | null | null | null | from unittest import TestCase, mock
import pytest
from requests import Response
import aftership
class TrackingTestCase(TestCase):
def setUp(self):
self.slug = "4px"
self.tracking_number = "HH19260817"
self.tracking_id = "k5lh7dy7vvqeck71p5loe011"
@pytest.mark.vcr()
def test_cre... | 34.694737 | 116 | 0.681129 | 365 | 3,296 | 5.89589 | 0.158904 | 0.083643 | 0.078532 | 0.096654 | 0.725372 | 0.67658 | 0.657993 | 0.654275 | 0.654275 | 0.654275 | 0 | 0.019806 | 0.21875 | 3,296 | 94 | 117 | 35.06383 | 0.815922 | 0.0446 | 0 | 0.527778 | 0 | 0 | 0.065183 | 0.024165 | 0 | 0 | 0 | 0 | 0.013889 | 1 | 0.194444 | false | 0 | 0.055556 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a118345944c61aa57f158d2bab247572f49c59f | 353 | py | Python | images/auth-service/settings.d/00-settings.py | ESGF/esgf-docker | 95f5b76c85be65920810795484786a13865f4ac1 | [
"Apache-2.0"
] | 3 | 2018-04-16T00:58:30.000Z | 2020-10-07T17:58:02.000Z | images/auth-service/settings.d/00-settings.py | ESGF/esgf-docker | 95f5b76c85be65920810795484786a13865f4ac1 | [
"Apache-2.0"
] | 115 | 2017-01-10T20:12:42.000Z | 2021-03-03T16:11:48.000Z | images/auth-service/settings.d/00-settings.py | ESGF/esgf-docker | 95f5b76c85be65920810795484786a13865f4ac1 | [
"Apache-2.0"
] | 21 | 2017-08-28T15:20:24.000Z | 2021-02-09T00:08:49.000Z | # Application definition
INSTALLED_APPS = [
'django.contrib.staticfiles',
'django.contrib.sessions',
'authenticate',
]
ROOT_URLCONF = 'auth_service.urls'
WSGI_APPLICATION = 'auth_service.wsgi.application'
# Use a non database session engine
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookie... | 23.533333 | 66 | 0.776204 | 40 | 353 | 6.625 | 0.675 | 0.14717 | 0.158491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124646 | 353 | 14 | 67 | 25.214286 | 0.857605 | 0.15864 | 0 | 0 | 0 | 0 | 0.52381 | 0.42517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a13150c841953f716f3e772e7c48bc269734ed8 | 3,701 | py | Python | rackspace/heat_store/catalog/tests.py | rohithkumar-rackspace/rcbops | fb690bc528499bbf9aebba3ab0cce0b4dffd9e35 | [
"Apache-2.0"
] | null | null | null | rackspace/heat_store/catalog/tests.py | rohithkumar-rackspace/rcbops | fb690bc528499bbf9aebba3ab0cce0b4dffd9e35 | [
"Apache-2.0"
] | null | null | null | rackspace/heat_store/catalog/tests.py | rohithkumar-rackspace/rcbops | fb690bc528499bbf9aebba3ab0cce0b4dffd9e35 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
import mox
import six.moves.urllib.request as urlrequest
from six import StringIO
from solution import Solution
class TestSolution(unittest.TestCase):
def setUp(self):
self.mox = mox.Mox()
pass
def tearDown(self):
self.mox.VerifyAll()
se... | 39.795699 | 80 | 0.599838 | 428 | 3,701 | 5.058411 | 0.313084 | 0.138568 | 0.106697 | 0.040647 | 0.236028 | 0.138568 | 0.138568 | 0.064665 | 0 | 0 | 0 | 0.014446 | 0.251824 | 3,701 | 92 | 81 | 40.228261 | 0.767425 | 0.025128 | 0 | 0.056338 | 0 | 0 | 0.228849 | 0.048544 | 0 | 0 | 0 | 0 | 0.450704 | 1 | 0.070423 | false | 0.014085 | 0.070423 | 0 | 0.15493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a18641e63b3fcad6914df89d4ba92c48cbaed17 | 951 | py | Python | source/odp/migrations/0003_auto_20201121_0919.py | kssvrk/BhoonidhiODP | e222087629250ea4ccd1ae8d8903d9ff400c13b4 | [
"BSD-3-Clause"
] | null | null | null | source/odp/migrations/0003_auto_20201121_0919.py | kssvrk/BhoonidhiODP | e222087629250ea4ccd1ae8d8903d9ff400c13b4 | [
"BSD-3-Clause"
] | null | null | null | source/odp/migrations/0003_auto_20201121_0919.py | kssvrk/BhoonidhiODP | e222087629250ea4ccd1ae8d8903d9ff400c13b4 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-21 09:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('odp', '0002_auto_20201121_0659'),
]
operations = [
migrations.CreateModel(
name='ProcessGroup',
fields=[
... | 32.793103 | 114 | 0.59306 | 97 | 951 | 5.639175 | 0.618557 | 0.054845 | 0.076782 | 0.091408 | 0.102377 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055313 | 0.277603 | 951 | 28 | 115 | 33.964286 | 0.740902 | 0.047319 | 0 | 0.090909 | 1 | 0 | 0.142699 | 0.025442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a1bae372e9a9d499e2d0814cd4b789a6fdb51ad | 2,072 | py | Python | test/test_thirty.py | jakubtuchol/dailycodingproblem | 9f0f3193f1746e949e16febace5aa5622dc5d4dc | [
"MIT"
] | 1 | 2020-10-13T20:54:37.000Z | 2020-10-13T20:54:37.000Z | test/test_thirty.py | jakubtuchol/dailycodingproblem | 9f0f3193f1746e949e16febace5aa5622dc5d4dc | [
"MIT"
] | null | null | null | test/test_thirty.py | jakubtuchol/dailycodingproblem | 9f0f3193f1746e949e16febace5aa5622dc5d4dc | [
"MIT"
] | null | null | null | from src.thirty import edit_distance
from src.thirty import find_second_largest_node
from src.thirty import make_palindrome
from src.thirty import powerset
from src.data_structures import BinaryNode
class TestEditDistance:
"""
Problem #31
"""
def test_provided_example(self):
assert 3 == edit_... | 22.769231 | 55 | 0.605695 | 247 | 2,072 | 4.854251 | 0.295547 | 0.070058 | 0.070892 | 0.087573 | 0.241868 | 0.152627 | 0.099249 | 0.099249 | 0.070058 | 0.070058 | 0 | 0.026684 | 0.276544 | 2,072 | 90 | 56 | 23.022222 | 0.773182 | 0.022683 | 0 | 0.134615 | 0 | 0 | 0.035132 | 0 | 0 | 0 | 0 | 0 | 0.288462 | 1 | 0.230769 | false | 0 | 0.096154 | 0 | 0.403846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a1be255168c22e03a6a98004add6394315035a9 | 3,947 | py | Python | src/google_music_proto/musicmanager/utils.py | ddboline/google-music-proto | d3af3a1fe911edcd083482c9a6e8bde5a2902462 | [
"MIT"
] | null | null | null | src/google_music_proto/musicmanager/utils.py | ddboline/google-music-proto | d3af3a1fe911edcd083482c9a6e8bde5a2902462 | [
"MIT"
] | null | null | null | src/google_music_proto/musicmanager/utils.py | ddboline/google-music-proto | d3af3a1fe911edcd083482c9a6e8bde5a2902462 | [
"MIT"
] | null | null | null | __all__ = [
'generate_client_id',
'get_album_art',
'get_transcoder',
'transcode_to_mp3',
]
import os
import shutil
import subprocess
from base64 import b64encode
from binascii import unhexlify
from hashlib import md5
import audio_metadata
# The id is found by: getting md5sum of audio, base64 encode md5sum, remo... | 23.777108 | 91 | 0.701292 | 527 | 3,947 | 5.096774 | 0.294118 | 0.040953 | 0.037975 | 0.035369 | 0.166418 | 0.095309 | 0.049888 | 0.049888 | 0.049888 | 0.049888 | 0 | 0.013198 | 0.174563 | 3,947 | 165 | 92 | 23.921212 | 0.811234 | 0.074487 | 0 | 0.129032 | 1 | 0.008065 | 0.16168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0 | 0.056452 | 0 | 0.137097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a1c4a115bd07e61146d8a14b7bb3639da60f1ea | 8,731 | py | Python | Other/SocialNetwork/Solver.py | lesyk/Evolife | 8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a | [
"MIT"
] | null | null | null | Other/SocialNetwork/Solver.py | lesyk/Evolife | 8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a | [
"MIT"
] | null | null | null | Other/SocialNetwork/Solver.py | lesyk/Evolife | 8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a | [
"MIT"
] | null | null | null | ## {{{ http://code.activestate.com/recipes/303396/ (r1)
'''equation solver using attributes and introspection'''
from __future__ import division
class Solver(object):
'''takes a function, named arg value (opt.) and returns a Solver object'''
def __init__(self,f,**args):
self._f=f
self._args={}
# ... | 31.293907 | 195 | 0.611499 | 1,451 | 8,731 | 3.603722 | 0.166782 | 0.008797 | 0.019889 | 0.012048 | 0.284949 | 0.222796 | 0.174221 | 0.139224 | 0.130426 | 0.122012 | 0 | 0.057446 | 0.212461 | 8,731 | 278 | 196 | 31.406475 | 0.703025 | 0.268125 | 0 | 0.159509 | 0 | 0 | 0.034809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006135 | null | null | 0.042945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a1cb185553a265ef90a6017854334865e3cc339 | 304 | py | Python | python_docs/05Functions/01Definition.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_docs/05Functions/01Definition.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_docs/05Functions/01Definition.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | # Definição de função
def soma(a2, b2): # Os parâmetros aqui precisam ter outro nome
print(f'A = {a2} e B = {b2}')
s = a2 + b2
print(f'A soma vale A + B = {s}')
# Programa principal
a = int(input('Digite um valor para A: '))
b = int(input('Digite um valor para B: '))
soma(a, b)
| 25.333333 | 63 | 0.582237 | 53 | 304 | 3.339623 | 0.54717 | 0.033898 | 0.079096 | 0.180791 | 0.282486 | 0.282486 | 0 | 0 | 0 | 0 | 0 | 0.026906 | 0.266447 | 304 | 11 | 64 | 27.636364 | 0.766816 | 0.266447 | 0 | 0 | 0 | 0 | 0.432692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a1d0c02ec27af98a78a24a6f4e896b2268b6a0f | 852 | py | Python | python/number.py | Dahercode/datalumni-test | 9587400bddafd1c32e97655727c5d3dbbfd17574 | [
"MIT"
] | 1 | 2020-02-18T16:56:38.000Z | 2020-02-18T16:56:38.000Z | python/number.py | Dahercode/datalumni-test | 9587400bddafd1c32e97655727c5d3dbbfd17574 | [
"MIT"
] | null | null | null | python/number.py | Dahercode/datalumni-test | 9587400bddafd1c32e97655727c5d3dbbfd17574 | [
"MIT"
] | null | null | null | # Your code goes here
tab=[]
for i in range(1000) :
tab.append(i)
tab2=[]
for i in range(len(tab)):
if sum([ int(c) for c in str(tab[i]) ]) <= 10:
tab2.append(tab[i])
tab3=[]
for i in range(len(tab2)):
a=str(tab2[i])
if a[len(a)-2] == '4':
tab3.append(tab2[i])
tab4=[]
for i in range(l... | 18.933333 | 53 | 0.543427 | 160 | 852 | 2.88125 | 0.25 | 0.060738 | 0.091106 | 0.167028 | 0.182213 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072617 | 0.224178 | 852 | 44 | 54 | 19.363636 | 0.624811 | 0.0223 | 0 | 0 | 0 | 0 | 0.055355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a2032ec76e617ec97b415d06f3a42408d534a65 | 635 | py | Python | restbed/core/api.py | mr-tenders/restbed | 68d36536286203048ce01f1467d3db7ee108bebb | [
"MIT"
] | null | null | null | restbed/core/api.py | mr-tenders/restbed | 68d36536286203048ce01f1467d3db7ee108bebb | [
"MIT"
] | null | null | null | restbed/core/api.py | mr-tenders/restbed | 68d36536286203048ce01f1467d3db7ee108bebb | [
"MIT"
] | null | null | null | """
restbed core api
"""
import pyinsane2
from typing import List
class CoreApi(object):
scanner: pyinsane2.Scanner = None
scan_session: pyinsane2.ScanSession = None
@staticmethod
def initialize():
"""
initialize SANE, don't call if unit testing
(well that's the hope...)
... | 22.678571 | 63 | 0.63937 | 73 | 635 | 5.465753 | 0.60274 | 0.110276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016985 | 0.258268 | 635 | 27 | 64 | 23.518519 | 0.830149 | 0.135433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a20458f16a895f14563ad81b494f0d3c1292dbf | 736 | py | Python | secure_notes_client/thread_pool.py | rlee287/secure-notes-client | 56d5fcce1d2eeb46de22aac63131fe7214b6f185 | [
"MIT"
] | null | null | null | secure_notes_client/thread_pool.py | rlee287/secure-notes-client | 56d5fcce1d2eeb46de22aac63131fe7214b6f185 | [
"MIT"
] | 4 | 2019-07-10T01:34:12.000Z | 2019-08-20T01:52:31.000Z | secure_notes_client/thread_pool.py | rlee287/secure-notes-client | 56d5fcce1d2eeb46de22aac63131fe7214b6f185 | [
"MIT"
] | null | null | null | from concurrent.futures import ThreadPoolExecutor
import time
from PySide2.QtCore import QCoreApplication
thread_pool=None
def init_thread_pool():
global thread_pool
thread_pool=ThreadPoolExecutor()
def deinit_thread_pool():
global thread_pool
thread_pool.shutdown()
def submit_task(function,*args,*... | 26.285714 | 58 | 0.762228 | 96 | 736 | 5.625 | 0.479167 | 0.185185 | 0.133333 | 0.081481 | 0.259259 | 0.259259 | 0.133333 | 0 | 0 | 0 | 0 | 0.004792 | 0.149457 | 736 | 27 | 59 | 27.259259 | 0.857827 | 0.070652 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a24938eab3876854f2631917fd72abe26cefe64 | 1,518 | py | Python | quandl_data_retriever/server.py | fabiomolinar/quandl-data-retriever | d9359922cb222ac519f7d9e4dd892bbcf6b1b2d0 | [
"MIT"
] | null | null | null | quandl_data_retriever/server.py | fabiomolinar/quandl-data-retriever | d9359922cb222ac519f7d9e4dd892bbcf6b1b2d0 | [
"MIT"
] | null | null | null | quandl_data_retriever/server.py | fabiomolinar/quandl-data-retriever | d9359922cb222ac519f7d9e4dd892bbcf6b1b2d0 | [
"MIT"
] | null | null | null | """ Server module
Quandl API limits:
Authenticated users have a limit of 300 calls per 10 seconds,
2,000 calls per 10 minutes and a limit of 50,000 calls per day.
"""
import urllib
import logging
from twisted.internet import reactor
from twisted.web.client import Agent, readBody
from . import settings
from . import... | 26.172414 | 94 | 0.614625 | 187 | 1,518 | 4.850267 | 0.491979 | 0.044101 | 0.039691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022079 | 0.283926 | 1,518 | 58 | 95 | 26.172414 | 0.812328 | 0.120553 | 0 | 0.047619 | 0 | 0 | 0.09262 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.095238 | false | 0.047619 | 0.166667 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a2a01adbfb1b632775069e902a5a1facd9c2f69 | 3,308 | py | Python | birdsong_recognition/dataset.py | YingyingF/birdsong_recognition | 4f8a2ccb900898a02d4454a5f1c206125f23fa44 | [
"Apache-2.0"
] | null | null | null | birdsong_recognition/dataset.py | YingyingF/birdsong_recognition | 4f8a2ccb900898a02d4454a5f1c206125f23fa44 | [
"Apache-2.0"
] | null | null | null | birdsong_recognition/dataset.py | YingyingF/birdsong_recognition | 4f8a2ccb900898a02d4454a5f1c206125f23fa44 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: dataset.ipynb (unless otherwise specified).
__all__ = ['load_mp3', 'get_sample_label', 'preprocess_file', 'pad_by_zeros', 'split_file_by_window_size',
'wrapper_split_file_by_window_size', 'create_dataset_fixed_size', 'get_spectrogram', 'add_channel_dim']
# Cell
d... | 39.380952 | 145 | 0.703144 | 470 | 3,308 | 4.668085 | 0.257447 | 0.075205 | 0.050137 | 0.038742 | 0.28897 | 0.195989 | 0.147675 | 0.118505 | 0.084777 | 0.084777 | 0 | 0.013026 | 0.187727 | 3,308 | 84 | 146 | 39.380952 | 0.803498 | 0.101874 | 0 | 0.135593 | 1 | 0 | 0.0558 | 0.028069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0 | 0 | 0.305085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a2aef76ad354c4dafd74c644c7cdf56a923d14d | 749 | py | Python | test/test_api_data_utils.py | onap/optf-osdf | 2b9e7f4fca3d510a201283a8561f6ff3424f5fd6 | [
"Apache-2.0"
] | 3 | 2019-04-15T13:33:57.000Z | 2019-10-21T17:19:19.000Z | test/test_api_data_utils.py | onap/optf-osdf | 2b9e7f4fca3d510a201283a8561f6ff3424f5fd6 | [
"Apache-2.0"
] | null | null | null | test/test_api_data_utils.py | onap/optf-osdf | 2b9e7f4fca3d510a201283a8561f6ff3424f5fd6 | [
"Apache-2.0"
] | null | null | null | import json
import os
from osdf.utils import api_data_utils
from collections import defaultdict
BASE_DIR = os.path.dirname(__file__)
with open(os.path.join(BASE_DIR, "placement-tests/request.json")) as json_data:
req_json = json.load(json_data)
class TestVersioninfo():
#
# Tests for api_data_utils.py
#
d... | 34.045455 | 147 | 0.750334 | 97 | 749 | 5.43299 | 0.474227 | 0.083491 | 0.113852 | 0.072106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012598 | 0.152203 | 749 | 21 | 148 | 35.666667 | 0.817323 | 0.210948 | 0 | 0 | 0 | 0 | 0.220513 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a2e4a10cc2ee782907da20e988df75437125628 | 751 | py | Python | duplicate_csv.py | AronFreyr/de1-project | 9e95346db9a6955ee017d59c73c83251d529d8ff | [
"Apache-2.0"
] | null | null | null | duplicate_csv.py | AronFreyr/de1-project | 9e95346db9a6955ee017d59c73c83251d529d8ff | [
"Apache-2.0"
] | null | null | null | duplicate_csv.py | AronFreyr/de1-project | 9e95346db9a6955ee017d59c73c83251d529d8ff | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[7]:
import os
write_to_csv_file = 'million_song_subset.csv'
csv_file_read = open(write_to_csv_file,'r')
csv_file_write = open(write_to_csv_file,'a')
while True:
next_line = csv_file_read.readline()
if not next_line:
break
csv_file_size = os.pat... | 17.465116 | 64 | 0.660453 | 115 | 751 | 3.982609 | 0.452174 | 0.213974 | 0.087336 | 0.122271 | 0.161572 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034423 | 0.226365 | 751 | 42 | 65 | 17.880952 | 0.753873 | 0.142477 | 0 | 0.111111 | 0 | 0 | 0.089764 | 0.03622 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.111111 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a3220a6933b741f74449b702618162293bca339 | 1,944 | py | Python | tests/settings.py | matrixorz/firefly | fb8082ccc525bf7b266960ae49fc0b15e522fd92 | [
"MIT"
] | 247 | 2015-04-13T05:58:10.000Z | 2021-01-21T07:31:58.000Z | tests/settings.py | qiluosheng/firefly | fb8082ccc525bf7b266960ae49fc0b15e522fd92 | [
"MIT"
] | 57 | 2015-04-13T15:10:50.000Z | 2016-04-08T09:15:27.000Z | tests/settings.py | qiluosheng/firefly | fb8082ccc525bf7b266960ae49fc0b15e522fd92 | [
"MIT"
] | 94 | 2015-04-12T06:03:30.000Z | 2020-05-11T14:26:56.000Z | # coding=utf-8
DEBUG = True
TESTING = True
SECRET_KEY = 'secret_key for test'
# mongodb
MONGODB_SETTINGS = {
'db': 'firefly_test',
'username': '',
'password': '',
'host': '127.0.0.1',
'port': 27017
}
# redis cache
CACHE_TYPE = 'redis'
CACHE_REDIS_HOST = '127.0.0.1'
CACHE_REDIS_PORT = 6379
CACHE_R... | 25.578947 | 67 | 0.679012 | 233 | 1,944 | 5.523605 | 0.420601 | 0.058275 | 0.06216 | 0.090132 | 0.065268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06206 | 0.195988 | 1,944 | 75 | 68 | 25.92 | 0.746001 | 0.21965 | 0 | 0 | 0 | 0 | 0.414162 | 0.209753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.106383 | 0 | 0 | 0 | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a36eda2f990b0b613ca5b9070e7a670400461bc | 1,806 | py | Python | mbed_connector_api/tests/mock_data.py | ARMmbed/mbed-connector-python | a5024a01dc67cc192c8bf7a70b251fcf0a3f279b | [
"Apache-2.0"
] | 2 | 2017-01-05T07:16:03.000Z | 2018-09-04T02:26:19.000Z | mbed_connector_api/tests/mock_data.py | ARMmbed/mbed-connector-python | a5024a01dc67cc192c8bf7a70b251fcf0a3f279b | [
"Apache-2.0"
] | 13 | 2016-02-29T17:31:56.000Z | 2017-02-07T22:46:17.000Z | mbed_connector_api/tests/mock_data.py | ARMmbed/mbed-connector-python | a5024a01dc67cc192c8bf7a70b251fcf0a3f279b | [
"Apache-2.0"
] | 2 | 2017-02-07T22:10:41.000Z | 2017-03-06T06:38:58.000Z | # Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
class mockData:
"""dictionary of mocking data for the mocking tests"""
# dictionary to hold the mock data
_data={}
# function to add mock data to the _mock_data dictionary
def _add(se... | 42 | 448 | 0.613511 | 251 | 1,806 | 4.330677 | 0.338645 | 0.066237 | 0.099356 | 0.110396 | 0.23827 | 0.23827 | 0.139834 | 0.071757 | 0.071757 | 0.071757 | 0 | 0.070006 | 0.137874 | 1,806 | 42 | 449 | 43 | 0.628131 | 0.250831 | 0 | 0 | 0 | 0.136364 | 0.566125 | 0.466357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.090909 | 0.409091 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a37802b395a4a964c1285e03e992f8b1712b575 | 2,134 | py | Python | examples/demo/eager_demo/src/demo_1_pybullet.py | eager-dev/eager | f10ccbd7452acb3a29881ecd95c759f632c91da9 | [
"Apache-2.0"
] | 16 | 2021-07-02T14:48:53.000Z | 2022-02-23T02:53:01.000Z | examples/demo/eager_demo/src/demo_1_pybullet.py | eager-dev/eager | f10ccbd7452acb3a29881ecd95c759f632c91da9 | [
"Apache-2.0"
] | 37 | 2021-06-30T12:10:29.000Z | 2022-02-02T09:46:34.000Z | examples/demo/eager_demo/src/demo_1_pybullet.py | eager-dev/eager | f10ccbd7452acb3a29881ecd95c759f632c91da9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import rospy
# Import eager packages
from eager_core.utils.file_utils import launch_roscore, load_yaml
from eager_core.eager_env import EagerEnv
from eager_core.objects import Object
from eager_core.wrappers.flatten import Flatten
from eager_bridge_pybullet.pybullet_engine import PyBulletEngine... | 33.873016 | 110 | 0.627929 | 241 | 2,134 | 5.377593 | 0.46473 | 0.041667 | 0.040123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018843 | 0.278819 | 2,134 | 62 | 111 | 34.419355 | 0.823262 | 0.182755 | 0 | 0.04878 | 0 | 0 | 0.084296 | 0.012702 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0 | 0.170732 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a48f16367b8db551ede0ba75c39ecf9f879f676 | 646 | py | Python | setup.py | jhakonen/wotdisttools | 2194761baaf1f6ade5fa740d134553b77300211b | [
"MIT"
] | 9 | 2019-08-15T14:59:39.000Z | 2021-06-24T22:03:31.000Z | setup.py | jhakonen/wotdisttools | 2194761baaf1f6ade5fa740d134553b77300211b | [
"MIT"
] | 1 | 2019-08-06T19:22:44.000Z | 2019-08-11T09:23:31.000Z | setup.py | jhakonen/setuptools-wotmod | 2194761baaf1f6ade5fa740d134553b77300211b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='setuptools-wotmod',
version='0.2',
packages=find_packages(),
description='setuptools integration for creating World of Tanks mods',
long_description=open('README.md').read(),
author='jhakonen',
url='https://gith... | 24.846154 | 74 | 0.630031 | 69 | 646 | 5.753623 | 0.710145 | 0.120907 | 0.085642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.224458 | 646 | 25 | 75 | 25.84 | 0.786427 | 0.03096 | 0 | 0.090909 | 0 | 0 | 0.4064 | 0.0688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a4bcf1b59efc03b155e47a1a800ec05299ddea9 | 258 | py | Python | lab1/lab1/views/home.py | ZerocksX/Service-Oriented-Computing-2019 | eac6b0e9a40eed76b452f6524fd899e7107b0f69 | [
"Apache-2.0"
] | null | null | null | lab1/lab1/views/home.py | ZerocksX/Service-Oriented-Computing-2019 | eac6b0e9a40eed76b452f6524fd899e7107b0f69 | [
"Apache-2.0"
] | null | null | null | lab1/lab1/views/home.py | ZerocksX/Service-Oriented-Computing-2019 | eac6b0e9a40eed76b452f6524fd899e7107b0f69 | [
"Apache-2.0"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render, redirect
from lab1.views import login
def docs(request):
if not request.user.is_authenticated:
return redirect(login.login_view)
return render(request, 'docs.html')
| 23.454545 | 45 | 0.763566 | 35 | 258 | 5.571429 | 0.628571 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.162791 | 258 | 10 | 46 | 25.8 | 0.898148 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a4ed98e41bcfbfb4f87bc36a45fc26e1aa68177 | 1,015 | py | Python | client_code/utils/__init__.py | daviesian/anvil-extras | 84fd5ca5144808d4ce2b333995e801a4ddff60e6 | [
"MIT"
] | null | null | null | client_code/utils/__init__.py | daviesian/anvil-extras | 84fd5ca5144808d4ce2b333995e801a4ddff60e6 | [
"MIT"
] | null | null | null | client_code/utils/__init__.py | daviesian/anvil-extras | 84fd5ca5144808d4ce2b333995e801a4ddff60e6 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
#
# Copyright (c) 2021 The Anvil Extras project team members listed at
# https://github.com/anvilistas/anvil-extras/graphs/contributors
#
# This software is published at https://github.com/anvilistas/anvil-extras
from functools import cache
__version__ = "1.4.0"
def __dir__():
ret... | 26.710526 | 83 | 0.715271 | 120 | 1,015 | 5.758333 | 0.508333 | 0.121563 | 0.092619 | 0.04631 | 0.107091 | 0.107091 | 0.107091 | 0 | 0 | 0 | 0 | 0.008685 | 0.205911 | 1,015 | 37 | 84 | 27.432432 | 0.848635 | 0.296552 | 0 | 0 | 0 | 0 | 0.165722 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a50e3662524ec61048e74d97bc09d7305717136 | 7,018 | py | Python | tests/test_utils.py | h4ck3rm1k3/requests | 46184236dc177fb68c7863445609149d0ac243ea | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | h4ck3rm1k3/requests | 46184236dc177fb68c7863445609149d0ac243ea | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | h4ck3rm1k3/requests | 46184236dc177fb68c7863445609149d0ac243ea | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import os
from io import BytesIO
import pytest
from requests import compat
from requests.utils import (
address_in_network, dotted_netmask,
get_auth_from_url, get_encodings_from_content,
get_environ_proxies, guess_filename,
is_ipv4_address, is_valid_cidr, requote_uri,
select_proxy, ... | 30.25 | 95 | 0.58008 | 853 | 7,018 | 4.644783 | 0.228605 | 0.033569 | 0.063604 | 0.012115 | 0.293286 | 0.220091 | 0.163301 | 0.146138 | 0.085815 | 0.054518 | 0 | 0.050896 | 0.260901 | 7,018 | 231 | 96 | 30.380952 | 0.712936 | 0.078655 | 0 | 0.234286 | 0 | 0.022857 | 0.26703 | 0.05661 | 0 | 0 | 0 | 0 | 0.125714 | 1 | 0.114286 | false | 0.091429 | 0.034286 | 0 | 0.188571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a54ab45f8f150e828680b7baff870b193da03be | 6,448 | py | Python | ggpy/cruft/grammar.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | 1 | 2015-01-26T19:07:45.000Z | 2015-01-26T19:07:45.000Z | ggpy/cruft/grammar.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | ggpy/cruft/grammar.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# package: org.ggp.base.util.symbol.grammar
import threading
class SymbolFormatException(Exception):
source = ''
def __init__(self, message, source):
super(SymbolFormatException, self).__init__(message)
self.source = source
def getSource(self):
return self.s... | 32.079602 | 100 | 0.622519 | 781 | 6,448 | 5.06146 | 0.341869 | 0.031875 | 0.031875 | 0.042499 | 0.060966 | 0.058437 | 0 | 0 | 0 | 0 | 0 | 0.001947 | 0.283189 | 6,448 | 200 | 101 | 32.24 | 0.85331 | 0.432072 | 0 | 0.227723 | 0 | 0 | 0.020384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207921 | false | 0.009901 | 0.009901 | 0.049505 | 0.49505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a57e614d9b55b36163878bad041ba8ed0614d30 | 948 | py | Python | cortical/models/context.py | npd15393/ResumeMiner | 9644ae97aaad869c3739b2b7b92e4e5a6f857206 | [
"BSD-2-Clause"
] | null | null | null | cortical/models/context.py | npd15393/ResumeMiner | 9644ae97aaad869c3739b2b7b92e4e5a6f857206 | [
"BSD-2-Clause"
] | null | null | null | cortical/models/context.py | npd15393/ResumeMiner | 9644ae97aaad869c3739b2b7b92e4e5a6f857206 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
/*******************************************************************************
* Copyright (c) cortical.io GmbH. All rights reserved.
*
* This software is confidential and proprietary information.
* You shall use it only in accordance with the terms of the
* license agreement you ente... | 43.090909 | 117 | 0.597046 | 101 | 948 | 5.504951 | 0.564356 | 0.064748 | 0.053957 | 0.07554 | 0.07554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172996 | 948 | 21 | 118 | 45.142857 | 0.709184 | 0.584388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
5a5cd7e8aa4acb388f0ef7bcdc817349add0a810 | 1,212 | py | Python | web/hottubapi.py | pwschuurman/hottub_controller | be9faeabcaf9f5bb7aba3ec03eba60276b27cf80 | [
"MIT"
] | 1 | 2020-06-03T18:32:50.000Z | 2020-06-03T18:32:50.000Z | web/hottubapi.py | pwschuurman/hottub_controller | be9faeabcaf9f5bb7aba3ec03eba60276b27cf80 | [
"MIT"
] | null | null | null | web/hottubapi.py | pwschuurman/hottub_controller | be9faeabcaf9f5bb7aba3ec03eba60276b27cf80 | [
"MIT"
] | null | null | null | from gpioapi import GpioAPI
import rx
MAX_TEMP = 38
COOL_TEMP = 30
class HotTubAPI:
def __init__(self):
self.gpioapi = GpioAPI(None)
def transmissions(self):
return self.gpioapi.transmission_subject
def heat_up(self):
reached_max_temp = self.gpioapi.transmission_subject.pipe(
op.filter(lamb... | 24.734694 | 82 | 0.710396 | 184 | 1,212 | 4.407609 | 0.255435 | 0.108508 | 0.092478 | 0.103576 | 0.540074 | 0.421702 | 0.364982 | 0.364982 | 0.276202 | 0.276202 | 0 | 0.014099 | 0.180693 | 1,212 | 48 | 83 | 25.25 | 0.802618 | 0.079208 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.060606 | 0.030303 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a5e3e187f9834c9b5e31410232316fcaa6ec9f3 | 7,711 | py | Python | src/biocluster_pipeline.py | zocean/Norma | 4c45c1540f7d7d13f9b71a6772044d3772a451f8 | [
"MIT"
] | 1 | 2020-02-17T22:59:46.000Z | 2020-02-17T22:59:46.000Z | src/biocluster_pipeline.py | zocean/Norma | 4c45c1540f7d7d13f9b71a6772044d3772a451f8 | [
"MIT"
] | null | null | null | src/biocluster_pipeline.py | zocean/Norma | 4c45c1540f7d7d13f9b71a6772044d3772a451f8 | [
"MIT"
] | 2 | 2020-02-24T02:54:04.000Z | 2020-07-07T22:16:35.000Z | #!/usr/bin/python
# Programmer : Yang Zhang
# Contact: zocean636@gmail.com
# Last-modified: 24 Jan 2019 15:20:08
import os,sys,argparse
def parse_arg():
''' This Function Parse the Argument '''
p=argparse.ArgumentParser( description = 'Example: %(prog)s -h', epilog='Library dependency :')
p.add_argument(... | 46.451807 | 191 | 0.625989 | 1,074 | 7,711 | 4.260708 | 0.163873 | 0.047421 | 0.067308 | 0.031469 | 0.434004 | 0.356425 | 0.313156 | 0.257649 | 0.239729 | 0.214598 | 0 | 0.009296 | 0.246661 | 7,711 | 165 | 192 | 46.733333 | 0.778447 | 0.036182 | 0 | 0.23741 | 0 | 0.021583 | 0.184592 | 0 | 0.014388 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007194 | null | null | 0.165468 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a5f41145e46fd5342cd880863fcd045e36493b6 | 268 | py | Python | inmembrane/plugins/__init__.py | pansapiens/inmembrane | 382eee3b2bacc9c567f65d7c48f1ddf9a86c253c | [
"BSD-2-Clause"
] | 4 | 2015-03-09T02:08:34.000Z | 2021-02-06T13:52:21.000Z | inmembrane/plugins/__init__.py | pansapiens/inmembrane | 382eee3b2bacc9c567f65d7c48f1ddf9a86c253c | [
"BSD-2-Clause"
] | 5 | 2015-01-29T03:36:04.000Z | 2021-12-08T07:20:42.000Z | inmembrane/plugins/__init__.py | pansapiens/inmembrane | 382eee3b2bacc9c567f65d7c48f1ddf9a86c253c | [
"BSD-2-Clause"
] | 6 | 2015-03-09T02:08:43.000Z | 2021-06-07T17:33:16.000Z | # This little bit of magic fills the __all__ list
# with every plugin name, and means that calling:
# from plugins import *
# within inmembrane.py will import every plugin
import pkgutil
__all__ = []
for p in pkgutil.iter_modules(__path__):
__all__.append(p[1])
| 26.8 | 50 | 0.75 | 41 | 268 | 4.487805 | 0.804878 | 0.119565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.175373 | 268 | 9 | 51 | 29.777778 | 0.828054 | 0.61194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
5a65af496e71e8ad9c61c888ed0b5d903da6928e | 343 | py | Python | company_logo.py | DomirScire/HackerRank_answers | 0432185a472aeae7062cf4e406d0e7a5ed2cc979 | [
"MIT"
] | 1 | 2021-03-19T13:05:16.000Z | 2021-03-19T13:05:16.000Z | company_logo.py | DomirScire/HackerRank_answers | 0432185a472aeae7062cf4e406d0e7a5ed2cc979 | [
"MIT"
] | null | null | null | company_logo.py | DomirScire/HackerRank_answers | 0432185a472aeae7062cf4e406d0e7a5ed2cc979 | [
"MIT"
] | null | null | null | # DomirScire
import math
import os
import random
import re
import sys
import collections
if __name__ == '__main__':
s = sorted(input().strip())
s_counter = collections.Counter(s).most_common()
s_counter = sorted(s_counter, key=lambda x: (x[1] * -1, x[0]))
for i in range(0, 3):
print(s_counter[i... | 22.866667 | 66 | 0.661808 | 55 | 343 | 3.872727 | 0.527273 | 0.187793 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02518 | 0.189504 | 343 | 14 | 67 | 24.5 | 0.741007 | 0.029155 | 0 | 0 | 0 | 0 | 0.024169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a6ebd896d0065716f83ceee55fedb02e43d2b47 | 17,814 | py | Python | cosmic-core/systemvm/patches/centos7/opt/cosmic/router/bin/cs/firewall.py | sanderv32/cosmic | 9a9d86500b67255a1c743a9438a05c0d969fd210 | [
"Apache-2.0"
] | 64 | 2016-01-30T13:31:00.000Z | 2022-02-21T02:13:25.000Z | cosmic-core/systemvm/patches/centos7/opt/cosmic/router/bin/cs/firewall.py | sanderv32/cosmic | 9a9d86500b67255a1c743a9438a05c0d969fd210 | [
"Apache-2.0"
] | 525 | 2016-01-22T10:46:31.000Z | 2022-02-23T11:08:01.000Z | cosmic-core/systemvm/patches/centos7/opt/cosmic/router/bin/cs/firewall.py | sanderv32/cosmic | 9a9d86500b67255a1c743a9438a05c0d969fd210 | [
"Apache-2.0"
] | 25 | 2016-01-13T16:46:46.000Z | 2021-07-23T15:22:27.000Z | import logging
from jinja2 import Environment, FileSystemLoader
import utils
class Firewall:
def __init__(self, config):
self.config = config
self.jinja_env = Environment(
loader=FileSystemLoader('/opt/cosmic/router/bin/cs/templates'),
trim_blocks=True,
lstr... | 57.650485 | 140 | 0.544179 | 2,374 | 17,814 | 3.997051 | 0.098989 | 0.085994 | 0.072083 | 0.085362 | 0.745811 | 0.734008 | 0.669407 | 0.619243 | 0.559701 | 0.502477 | 0 | 0.025791 | 0.281745 | 17,814 | 308 | 141 | 57.837662 | 0.715826 | 0.040137 | 0 | 0.219828 | 0 | 0.133621 | 0.382926 | 0.002049 | 0 | 0 | 0.003806 | 0 | 0 | 1 | 0.047414 | false | 0.00431 | 0.012931 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a6f7399d0e46958326d190fed0176f8bf1bbfef | 468 | py | Python | core/migrations/0012_alter_preco_categoria.py | thiagofreitascarneiro/Projeto_Fusion | 4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9 | [
"MIT"
] | null | null | null | core/migrations/0012_alter_preco_categoria.py | thiagofreitascarneiro/Projeto_Fusion | 4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9 | [
"MIT"
] | null | null | null | core/migrations/0012_alter_preco_categoria.py | thiagofreitascarneiro/Projeto_Fusion | 4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-05 19:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0011_auto_20210905_1619'),
]
operations = [
migrations.AlterField(
model_name='preco',
name='categoria',
... | 24.631579 | 133 | 0.587607 | 52 | 468 | 5.173077 | 0.846154 | 0.096654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094286 | 0.252137 | 468 | 18 | 134 | 26 | 0.674286 | 0.096154 | 0 | 0 | 1 | 0 | 0.159145 | 0.054632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a78040379a605d417a65ff4123fa8c2e73e5ad9 | 3,393 | py | Python | src/financial_statements/old/balance_sheet.py | LeanderLXZ/intelligent-analysis-of-financial-statements | 38bab5bea3c2f22f71020020c8325f6b6b014853 | [
"Apache-2.0"
] | null | null | null | src/financial_statements/old/balance_sheet.py | LeanderLXZ/intelligent-analysis-of-financial-statements | 38bab5bea3c2f22f71020020c8325f6b6b014853 | [
"Apache-2.0"
] | null | null | null | src/financial_statements/old/balance_sheet.py | LeanderLXZ/intelligent-analysis-of-financial-statements | 38bab5bea3c2f22f71020020c8325f6b6b014853 | [
"Apache-2.0"
] | 1 | 2021-12-15T02:09:16.000Z | 2021-12-15T02:09:16.000Z | import time
import threading
import argparse
import tushare as ts
import numpy as np
import pandas as pd
from pandas import datetime as dt
from tqdm import tqdm
from utils import *
with open('../../tushare_token.txt', 'r') as f:
token = f.readline()
ts.set_token(token)
tushare_api = ts.pro_api()
# 股票列表
df_list ... | 44.644737 | 80 | 0.72178 | 516 | 3,393 | 4.257752 | 0.443798 | 0.01502 | 0.009103 | 0.010014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001791 | 0.177424 | 3,393 | 76 | 81 | 44.644737 | 0.785382 | 0.002947 | 0 | 0 | 0 | 0 | 0.632653 | 0.056492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.134328 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a7f6cebc7d1d5a0a12a5527001bd5fbb8d22d54 | 568 | py | Python | DiplomaProject/office/admin.py | iamgo100/diploma | fc7314468631bf43774b4678890d2a315658713c | [
"MIT"
] | null | null | null | DiplomaProject/office/admin.py | iamgo100/diploma | fc7314468631bf43774b4678890d2a315658713c | [
"MIT"
] | null | null | null | DiplomaProject/office/admin.py | iamgo100/diploma | fc7314468631bf43774b4678890d2a315658713c | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Shift, Service, Appointment
class ShiftAdmin(admin.ModelAdmin):
fields = ['date', 'master', 'room']
list_display = ('date', 'master', 'status')
class ServicetAdmin(admin.ModelAdmin):
list_display = ('service_name', 'cost', 'duration', 'room')
... | 35.5 | 66 | 0.713028 | 61 | 568 | 6.57377 | 0.459016 | 0.112219 | 0.127182 | 0.129676 | 0.164589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139085 | 568 | 16 | 67 | 35.5 | 0.820041 | 0 | 0 | 0 | 0 | 0 | 0.151625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.