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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
215079a9c7eadfd3e8a78a41c34289c25ac04f75 | 5,403 | py | Python | tests/test_datetime.py | mamh-mixed/loguru | 22396695b9d8be9a46eca371279df7c427b27f61 | [
"MIT"
] | null | null | null | tests/test_datetime.py | mamh-mixed/loguru | 22396695b9d8be9a46eca371279df7c427b27f61 | [
"MIT"
] | null | null | null | tests/test_datetime.py | mamh-mixed/loguru | 22396695b9d8be9a46eca371279df7c427b27f61 | [
"MIT"
] | null | null | null | import datetime
import re
import sys
import freezegun
import pytest
from loguru import logger
if sys.version_info < (3, 6):
UTC_NAME = "UTC+00:00"
else:
UTC_NAME = "UTC"
@pytest.mark.parametrize(
"time_format, date, timezone, expected",
[
(
"%Y-%m-%d %H-%M-%S %f %Z %z",
... | 34.634615 | 95 | 0.489728 | 844 | 5,403 | 3.078199 | 0.175355 | 0.032333 | 0.049269 | 0.053888 | 0.572363 | 0.492302 | 0.465358 | 0.424557 | 0.421863 | 0.403772 | 0 | 0.280317 | 0.299463 | 5,403 | 155 | 96 | 34.858065 | 0.406077 | 0 | 0 | 0.313869 | 0 | 0 | 0.401814 | 0.011475 | 0 | 0 | 0 | 0 | 0.051095 | 1 | 0.043796 | false | 0 | 0.043796 | 0 | 0.087591 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2157f3814f7d8209f817a39c3187e97678374518 | 829 | py | Python | pysatSeasons/__init__.py | pysat/pysatSeasons | b6f8b51908c6ac882bd3e04d7b378aea7e9a29e0 | [
"BSD-3-Clause"
] | 1 | 2022-01-20T16:54:14.000Z | 2022-01-20T16:54:14.000Z | pysatSeasons/__init__.py | pysat/pysatSeasons | b6f8b51908c6ac882bd3e04d7b378aea7e9a29e0 | [
"BSD-3-Clause"
] | 20 | 2019-09-18T18:36:17.000Z | 2022-03-25T15:20:45.000Z | pysatSeasons/__init__.py | pysat/pysatSeasons | b6f8b51908c6ac882bd3e04d7b378aea7e9a29e0 | [
"BSD-3-Clause"
] | 1 | 2021-08-19T21:23:25.000Z | 2021-08-19T21:23:25.000Z | """
pysatSeasons is a pysat module that provides
the interface to perform seasonal analysis on
data managed by pysat. These analysis methods
are independent of instrument type.
Main Features
-------------
- Seasonal averaging routine for 1D and 2D data.
- Occurrence probability routines, daily or by orbit.
- Scatterp... | 29.607143 | 63 | 0.758745 | 120 | 829 | 5.125 | 0.65 | 0.104065 | 0.107317 | 0.117073 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025788 | 0.158022 | 829 | 27 | 64 | 30.703704 | 0.855301 | 0.588661 | 0 | 0 | 0 | 0 | 0.033639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
215ddbe5f26e8bb8a19212d071a47be6b9e84f1f | 552 | py | Python | Practise/Python/Collections/collections.Counter().py | FurkhanShaikh/HackerRank-My-Solutions | 3498d15f5cb218200d9f0548cfe938a0aaab9b27 | [
"MIT"
] | null | null | null | Practise/Python/Collections/collections.Counter().py | FurkhanShaikh/HackerRank-My-Solutions | 3498d15f5cb218200d9f0548cfe938a0aaab9b27 | [
"MIT"
] | null | null | null | Practise/Python/Collections/collections.Counter().py | FurkhanShaikh/HackerRank-My-Solutions | 3498d15f5cb218200d9f0548cfe938a0aaab9b27 | [
"MIT"
] | null | null | null | #problem link : https://www.hackerrank.com/challenges/collections-counter/problem
# Enter your code here. Read input from STDIN. Print output to STDOUT
from collections import Counter
X = int(raw_input())
sizes = map(int,raw_input().split())
cust = int(raw_input())
desired =[]
for i in range(cust):
temp = map(int,... | 26.285714 | 81 | 0.666667 | 83 | 552 | 4.385542 | 0.506024 | 0.065934 | 0.120879 | 0.076923 | 0.104396 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.188406 | 552 | 20 | 82 | 27.6 | 0.796875 | 0.268116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2165794335ca95279cca6df02ac540918b551bc8 | 1,096 | py | Python | event_loop/cancel_task.py | lishulongVI/Ilhabela | 12e97ad2c239038bca0aaecc037beba7f7d3715a | [
"MIT"
] | null | null | null | event_loop/cancel_task.py | lishulongVI/Ilhabela | 12e97ad2c239038bca0aaecc037beba7f7d3715a | [
"MIT"
] | null | null | null | event_loop/cancel_task.py | lishulongVI/Ilhabela | 12e97ad2c239038bca0aaecc037beba7f7d3715a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@contact: lishulong.never@gmail.com
@time: 2019/3/25 下午9:43
"""
import asyncio
async def consume():
print('start consume...')
await asyncio.sleep(10)
print('end consume...')
if __name__ == '__main__':
tasks = [consume() for i in range(10)]
loop = asyncio.get_event_... | 15.884058 | 59 | 0.663321 | 144 | 1,096 | 4.930556 | 0.402778 | 0.169014 | 0.197183 | 0.253521 | 0.377465 | 0.377465 | 0.377465 | 0.377465 | 0.377465 | 0.377465 | 0 | 0.017381 | 0.212591 | 1,096 | 68 | 60 | 16.117647 | 0.80533 | 0.074818 | 0 | 0 | 0 | 0 | 0.090573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.210526 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2169433be713fc577361a94f5719a5780017349f | 1,238 | py | Python | Study/interesting_program/test.py | pynickle/awesome-python-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 21 | 2019-06-02T01:55:14.000Z | 2022-01-08T22:35:31.000Z | Study/interesting_program/test.py | code-nick-python/awesome-daily-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 3 | 2019-06-02T01:55:17.000Z | 2019-06-14T12:32:06.000Z | Study/interesting_program/test.py | code-nick-python/awesome-daily-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 16 | 2019-06-23T13:00:04.000Z | 2021-09-18T06:09:58.000Z | """
Copyright: Copyright (c) 2019
License : WTFPL License
owner : pynickle
title : amazing-python study projects
description : projects for studying python
"""
import sys
import io
import unittest
import importlib
def stub_stdin(testcase_inst, inputs):
stdin = sys.stdin
def cleanup():
sys.stdin = std... | 24.76 | 75 | 0.679321 | 185 | 1,238 | 4.454054 | 0.416216 | 0.072816 | 0.084951 | 0.072816 | 0.140777 | 0.050971 | 0.050971 | 0 | 0 | 0 | 0 | 0.04572 | 0.169628 | 1,238 | 49 | 76 | 25.265306 | 0.755837 | 0.121971 | 0 | 0.121212 | 0 | 0.030303 | 0.134384 | 0.031511 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.181818 | false | 0 | 0.333333 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
216c3e584bf0ccf79b7676172b319c96938d2937 | 189 | py | Python | pythontutorials/Udacity/CS101/Lesson 02 - Problem Set/Q6-Bodacious Udacity.py | JoseALermaIII/python-tutorials | 9d6cb78beec0bb55e27c49da1217317ba4d5f4fc | [
"MIT"
] | 2 | 2017-04-20T02:57:19.000Z | 2018-10-12T20:15:47.000Z | pythontutorials/Udacity/CS101/Lesson 02 - Problem Set/Q6-Bodacious Udacity.py | JoseALermaIII/python-tutorials | 9d6cb78beec0bb55e27c49da1217317ba4d5f4fc | [
"MIT"
] | 8 | 2021-03-18T21:50:16.000Z | 2022-03-11T23:38:01.000Z | pythontutorials/Udacity/CS101/Lesson 02 - Problem Set/Q6-Bodacious Udacity.py | JoseALermaIII/python-tutorials | 9d6cb78beec0bb55e27c49da1217317ba4d5f4fc | [
"MIT"
] | 3 | 2018-08-30T20:30:50.000Z | 2022-01-18T13:40:51.000Z | # Given the variables s and t defined as:
s = 'udacity'
t = 'bodacious'
# write Python code that prints out udacious
# without using any quote characters in
# your code.
print s[0] + t[2:]
| 23.625 | 44 | 0.708995 | 32 | 189 | 4.1875 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.195767 | 189 | 7 | 45 | 27 | 0.868421 | 0.693122 | 0 | 0 | 0 | 0 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dcd4fad7ef29868c6597c0320970ff225d173cc6 | 602 | py | Python | ver_colores.py | maltenzo/surrendeador | a3a0acbcaafa1ddec451cfaa6a75d850904a01e4 | [
"MIT"
] | null | null | null | ver_colores.py | maltenzo/surrendeador | a3a0acbcaafa1ddec451cfaa6a75d850904a01e4 | [
"MIT"
] | null | null | null | ver_colores.py | maltenzo/surrendeador | a3a0acbcaafa1ddec451cfaa6a75d850904a01e4 | [
"MIT"
] | null | null | null | import mouse
import keyboard
from PIL import Image
import pyscreenshot
from time import sleep
import os
def ver():
while True:
img = pyscreenshot.grab()
width, height = img.size
pixel_values = list(img.getdata())
print (pixel_values[width*mouse.get_position()[1]+mouse.get_position()[0]])
... | 25.083333 | 81 | 0.679402 | 80 | 602 | 4.975 | 0.3875 | 0.100503 | 0.201005 | 0.120603 | 0.562814 | 0.562814 | 0.562814 | 0.562814 | 0.562814 | 0.562814 | 0 | 0.008247 | 0.194352 | 602 | 23 | 82 | 26.173913 | 0.812371 | 0.044851 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.473684 | 0.105263 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
dce816b69b0582baaf4d9c46666864b3035d5fab | 931 | py | Python | lib/west_tools/westpa/reweight/__init__.py | ajoshpratt/westpa | 545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218 | [
"MIT"
] | 1 | 2019-12-21T09:11:54.000Z | 2019-12-21T09:11:54.000Z | lib/west_tools/westpa/reweight/__init__.py | astatide/westpa | 545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218 | [
"MIT"
] | 1 | 2020-04-14T20:49:38.000Z | 2020-04-14T20:49:38.000Z | lib/west_tools/westpa/reweight/__init__.py | ajoshpratt/westpa | 545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218 | [
"MIT"
] | 1 | 2020-04-14T20:42:11.000Z | 2020-04-14T20:42:11.000Z | # Copyright (C) 2017 Matthew C. Zwier and Lillian T. Chong
#
# This file is part of WESTPA.
#
# WESTPA is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any... | 33.25 | 72 | 0.765843 | 144 | 931 | 4.888889 | 0.631944 | 0.021307 | 0.055398 | 0.080966 | 0.116477 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0.00646 | 0.168636 | 931 | 27 | 73 | 34.481481 | 0.903101 | 0.790548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0d0ada3c223ce67e0153b8f576b9926c738f9141 | 21,631 | py | Python | pysnmp/CISCO-EMBEDDED-EVENT-MGR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-EMBEDDED-EVENT-MGR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-EMBEDDED-EVENT-MGR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-EMBEDDED-EVENT-MGR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-EMBEDDED-EVENT-MGR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:39:13 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 142.309211 | 3,183 | 0.773473 | 2,287 | 21,631 | 7.314823 | 0.092261 | 0.010282 | 0.074242 | 0.086616 | 0.458366 | 0.392552 | 0.339231 | 0.327754 | 0.287824 | 0.282563 | 0 | 0.073487 | 0.075863 | 21,631 | 151 | 3,184 | 143.251656 | 0.763382 | 0.01618 | 0 | 0.056738 | 0 | 0 | 0.225978 | 0.158565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056738 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d0b5671587550eca8af9d7486e1e9c27446306c | 277 | py | Python | src/util_walk_sftp.py | Chrisebell24/walk_sftp | 65dcb4e4231fabe8f8d9f2a6b595371c31ddc0d6 | [
"MIT"
] | null | null | null | src/util_walk_sftp.py | Chrisebell24/walk_sftp | 65dcb4e4231fabe8f8d9f2a6b595371c31ddc0d6 | [
"MIT"
] | null | null | null | src/util_walk_sftp.py | Chrisebell24/walk_sftp | 65dcb4e4231fabe8f8d9f2a6b595371c31ddc0d6 | [
"MIT"
] | null | null | null | import paramiko
class _FastTransport(paramiko.Transport):
def __init__(self, sock):
super(_FastTransport, self).__init__(sock)
self.window_size = 2147483647
self.packetizer.REKEY_BYTES = pow(2, 40)
self.packetizer.REKEY_PACKETS = pow(2, 40) | 34.625 | 50 | 0.696751 | 33 | 277 | 5.454545 | 0.606061 | 0.155556 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072398 | 0.202166 | 277 | 8 | 51 | 34.625 | 0.742081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d246003e8c49782d663db0652fc20c6c7b5ad5f | 426 | py | Python | orders/urls.py | techonerd/kobbyshop | e79f009f75f576fdc2e8ac037781f5817a2e255f | [
"MIT"
] | 4 | 2021-11-25T15:45:31.000Z | 2022-01-11T21:31:56.000Z | orders/urls.py | KwabenaYeboah/kobbyshop | 850a04b24fafa8aa538fdbf039a0e8fafc3ebfc2 | [
"MIT"
] | 1 | 2021-12-30T08:18:28.000Z | 2021-12-30T08:18:28.000Z | orders/urls.py | techonerd/kobbyshop | e79f009f75f576fdc2e8ac037781f5817a2e255f | [
"MIT"
] | 2 | 2021-12-26T05:11:00.000Z | 2021-12-30T08:18:13.000Z | from django.urls import path
from django.utils.translation import gettext_lazy as _
from .views import create_order_view, order_detail_view, generate_order_pdf_view
urlpatterns = [
path('admin/order/<int:order_id>/', order_detail_view, name='admin_order_detail'),
path('admin/order/<int:order_id>/pdf/', genera... | 38.727273 | 96 | 0.7723 | 62 | 426 | 4.919355 | 0.354839 | 0.108197 | 0.157377 | 0.131148 | 0.157377 | 0.157377 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100939 | 426 | 10 | 97 | 42.6 | 0.796345 | 0 | 0 | 0 | 1 | 0 | 0.248826 | 0.13615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b48fbff20842d5dc1be80ae2543317f479252cd3 | 99 | py | Python | args.py | NiranjanVRam/spotify-downloader | f20580dbb6fa6ebc00e7935f233f5a87e9762d18 | [
"MIT"
] | 7 | 2020-12-27T13:38:38.000Z | 2022-03-06T16:34:18.000Z | args.py | NiranjanVRam/spotify-downloader | f20580dbb6fa6ebc00e7935f233f5a87e9762d18 | [
"MIT"
] | 2 | 2021-10-03T10:56:12.000Z | 2021-10-10T23:43:14.000Z | args.py | NiranjanVRam/spotify-downloader | f20580dbb6fa6ebc00e7935f233f5a87e9762d18 | [
"MIT"
] | 5 | 2021-03-31T11:38:59.000Z | 2021-12-30T02:36:40.000Z | clientId = 'CLIENT_ID'
clientSecret = 'CLIENT_SECRET'
geniusToken = 'GENIUS_TOKEN'
bitrate = '320' | 19.8 | 30 | 0.757576 | 11 | 99 | 6.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.121212 | 99 | 5 | 31 | 19.8 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.37 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b49f409da0defa952f5265984dc68c10a3ae4ba5 | 1,811 | py | Python | rlkit/envs/non_mujoco_half_cheetah_vel.py | hammer-wang/FOCAL-ICLR | 4d19149f86acc1d6b987c93cdd3a9d957535c5e3 | [
"MIT"
] | 24 | 2021-03-24T07:14:52.000Z | 2022-03-17T08:15:44.000Z | rlkit/envs/non_mujoco_half_cheetah_vel.py | hammer-wang/FOCAL-ICLR | 4d19149f86acc1d6b987c93cdd3a9d957535c5e3 | [
"MIT"
] | 4 | 2021-06-18T16:38:38.000Z | 2022-03-18T11:04:45.000Z | rlkit/envs/non_mujoco_half_cheetah_vel.py | hammer-wang/FOCAL-ICLR | 4d19149f86acc1d6b987c93cdd3a9d957535c5e3 | [
"MIT"
] | 6 | 2021-04-12T18:49:47.000Z | 2021-09-07T05:33:22.000Z | import numpy as np
from gym import spaces
from gym import Env
#from rlkit.envs.mujoco.half_cheetah import HalfCheetahEnv
from rlkit.envs import register_env
@register_env('cheetah-vel')
class HalfCheetahVelEnv(Env):
def __init__(self, task={}, n_tasks=2, randomize_tasks=True, max_episode_steps=200):
... | 28.746032 | 89 | 0.605191 | 245 | 1,811 | 4.257143 | 0.334694 | 0.053691 | 0.042186 | 0.057526 | 0.044104 | 0.044104 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.282165 | 1,811 | 62 | 90 | 29.209677 | 0.782308 | 0.056875 | 0 | 0.155556 | 0 | 0 | 0.048662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.066667 | 0.088889 | 0.066667 | 0.444444 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b4b539761e3c4833580192978074b62223577348 | 393 | py | Python | tests/sdk/test_util.py | unparalleled-js/py42 | 8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1 | [
"MIT"
] | 1 | 2020-08-18T22:00:22.000Z | 2020-08-18T22:00:22.000Z | tests/sdk/test_util.py | unparalleled-js/py42 | 8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1 | [
"MIT"
] | null | null | null | tests/sdk/test_util.py | unparalleled-js/py42 | 8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1 | [
"MIT"
] | 1 | 2021-05-10T23:33:34.000Z | 2021-05-10T23:33:34.000Z | from datetime import datetime
import py42.util as util
def test_convert_timestamp_to_str_returns_expected_str():
assert util.convert_timestamp_to_str(235123656) == "1977-06-14T08:07:36.000Z"
def test_convert_datetime_to_timestamp_str_returns_expected_str():
d = datetime(2020, 4, 19, 13, 3, 2, 3)
assert... | 30.230769 | 82 | 0.78117 | 64 | 393 | 4.453125 | 0.515625 | 0.098246 | 0.098246 | 0.147368 | 0.203509 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164265 | 0.117048 | 393 | 12 | 83 | 32.75 | 0.657061 | 0 | 0 | 0 | 0 | 0 | 0.122137 | 0.122137 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b4c44cb204c3826e5c1e00d10a308dfe64d24ddf | 386 | py | Python | _solved/_solutions/visualization_02_seaborn14.py | jorisvandenbossche/ICES-python-data | 63864947657f37cb26cb4e2dcd67ff106dffe9cd | [
"BSD-3-Clause"
] | 1 | 2022-03-02T17:41:46.000Z | 2022-03-02T17:41:46.000Z | notebooks/_solutions/visualization_02_seaborn14.py | jorisvandenbossche/ICES-python-data | 63864947657f37cb26cb4e2dcd67ff106dffe9cd | [
"BSD-3-Clause"
] | 1 | 2022-03-14T15:15:53.000Z | 2022-03-14T15:15:53.000Z | notebooks/_solutions/visualization_02_seaborn14.py | jorisvandenbossche/ICES-python-data | 63864947657f37cb26cb4e2dcd67ff106dffe9cd | [
"BSD-3-Clause"
] | null | null | null | # Optional solution with tidy data representation (providing x and y)
monthly_victim_counts_melt = monthly_victim_counts.reset_index().melt(
id_vars="datetime", var_name="victim_type", value_name="count"
)
sns.relplot(
data=monthly_victim_counts_melt,
x="datetime",
y="count",
hue="victim_type",
... | 27.571429 | 70 | 0.712435 | 52 | 386 | 5.019231 | 0.673077 | 0.149425 | 0.218391 | 0.176245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006154 | 0.158031 | 386 | 14 | 71 | 27.571429 | 0.796923 | 0.173575 | 0 | 0 | 0 | 0 | 0.194969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4cc52d37e832307c2b993281014ae5693bca403 | 281 | py | Python | recipes/transabyss/setup.py | ieguinoa/bioconda-recipes | da8a66ec30d36273a8cdf8783a26604f23c45534 | [
"MIT"
] | null | null | null | recipes/transabyss/setup.py | ieguinoa/bioconda-recipes | da8a66ec30d36273a8cdf8783a26604f23c45534 | [
"MIT"
] | null | null | null | recipes/transabyss/setup.py | ieguinoa/bioconda-recipes | da8a66ec30d36273a8cdf8783a26604f23c45534 | [
"MIT"
] | null | null | null | import subprocess
from setuptools import setup, find_packages, Extension
setup(
name='transabyss',
version='1.54',
author='transabyss',
license='Free Software License',
packages=['transabyss'],
scripts=['scripts/transabyss', 'scripts/transabyss-merge'],
)
| 23.416667 | 63 | 0.704626 | 29 | 281 | 6.793103 | 0.655172 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.156584 | 281 | 11 | 64 | 25.545455 | 0.818565 | 0 | 0 | 0 | 0 | 0 | 0.345196 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4d5ab68cc4a4cd64dc0ee44aa2eb3eb7b21a324 | 1,195 | py | Python | pykeyset/core/font/font.py | staticintlucas/pykeyset | 8581252c85dfceebe22926af4640164a0895e7a0 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-06T16:43:25.000Z | 2021-07-06T16:43:25.000Z | pykeyset/core/font/font.py | staticintlucas/pykeyset | 8581252c85dfceebe22926af4640164a0895e7a0 | [
"Apache-2.0",
"MIT"
] | null | null | null | pykeyset/core/font/font.py | staticintlucas/pykeyset | 8581252c85dfceebe22926af4640164a0895e7a0 | [
"Apache-2.0",
"MIT"
] | null | null | null | from typing import Optional
from .glyph import Glyph
class Font:
def __init__(
self,
name: str,
em_size: float,
cap_height: float,
x_height: float,
line_height: float,
slope: float,
char_spacing: float,
):
raise NotImplementedError
... | 25.978261 | 97 | 0.632636 | 151 | 1,195 | 4.907285 | 0.410596 | 0.194332 | 0.182186 | 0.08637 | 0.202429 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295397 | 1,195 | 45 | 98 | 26.555556 | 0.880048 | 0.316318 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4db052ea80413d8736cb6f07460bcb08f08dc7f | 540 | py | Python | Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | # The following comments couldn't be translated into the new config version:
#------------------------------------------------
#AlCaReco filtering for phi symmetry calibration:
#------------------------------------------------
#
# Passes events that are coming from the online phi-symmetry stream
#
#
import FWCore.P... | 24.545455 | 76 | 0.633333 | 54 | 540 | 6.277778 | 0.796296 | 0.064897 | 0.182891 | 0.20059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127778 | 540 | 21 | 77 | 25.714286 | 0.719745 | 0.525926 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4e36d17dc528299318c8cd10e36c599f350d3dc | 1,172 | py | Python | annofabcli/filesystem/subcommand_filesystem.py | kurusugawa-computer/annofab-cli | 8edad492d439bc8fe64e9471464f545d07aba8b7 | [
"MIT"
] | 9 | 2019-07-22T23:54:05.000Z | 2020-11-05T06:26:04.000Z | annofabcli/filesystem/subcommand_filesystem.py | kurusugawa-computer/annofab-cli | 8edad492d439bc8fe64e9471464f545d07aba8b7 | [
"MIT"
] | 389 | 2019-07-03T04:39:11.000Z | 2022-03-28T14:06:11.000Z | annofabcli/filesystem/subcommand_filesystem.py | kurusugawa-computer/annofab-cli | 8edad492d439bc8fe64e9471464f545d07aba8b7 | [
"MIT"
] | 1 | 2021-08-30T14:22:04.000Z | 2021-08-30T14:22:04.000Z | import argparse
from typing import Optional
import annofabcli
import annofabcli.common.cli
import annofabcli.filesystem.draw_annotation
import annofabcli.filesystem.filter_annotation
import annofabcli.filesystem.mask_user_info
import annofabcli.filesystem.merge_annotation
import annofabcli.filesystem.write_annotation_... | 33.485714 | 86 | 0.817406 | 129 | 1,172 | 7.193798 | 0.302326 | 0.215517 | 0.143319 | 0.125 | 0.3125 | 0.158405 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113481 | 1,172 | 34 | 87 | 34.470588 | 0.893167 | 0.007679 | 0 | 0 | 0 | 0 | 0.063738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.36 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b4e6b497acf3eb5e2c7697b0aabc3286bf901091 | 2,557 | py | Python | craedl/errors.py | AnotherGroupChat/craedl-sdk-python | 57eec7ad4013e693740ad40190d5817984721fde | [
"Apache-2.0"
] | null | null | null | craedl/errors.py | AnotherGroupChat/craedl-sdk-python | 57eec7ad4013e693740ad40190d5817984721fde | [
"Apache-2.0"
] | null | null | null | craedl/errors.py | AnotherGroupChat/craedl-sdk-python | 57eec7ad4013e693740ad40190d5817984721fde | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Johns Hopkins University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 36.528571 | 111 | 0.717247 | 330 | 2,557 | 5.360606 | 0.384848 | 0.093273 | 0.062182 | 0.137366 | 0.395704 | 0.383267 | 0.368005 | 0.296778 | 0.216507 | 0.075749 | 0 | 0.003899 | 0.197497 | 2,557 | 69 | 112 | 37.057971 | 0.858187 | 0.2456 | 0 | 0.414634 | 0 | 0 | 0.323391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0 | 0.02439 | 0.073171 | 0.658537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b4f29d97ffa1af1c0c768796e62188143ad7c066 | 461 | py | Python | datamanager/interfaces/abstract_resource_resolver.py | alghimo/data-manager | 98c54934cb704c4e980acdfcc2206d740dd1ec03 | [
"Apache-2.0"
] | 1 | 2021-05-22T08:37:17.000Z | 2021-05-22T08:37:17.000Z | datamanager/interfaces/abstract_resource_resolver.py | alghimo/data-manager | 98c54934cb704c4e980acdfcc2206d740dd1ec03 | [
"Apache-2.0"
] | null | null | null | datamanager/interfaces/abstract_resource_resolver.py | alghimo/data-manager | 98c54934cb704c4e980acdfcc2206d740dd1ec03 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import TypeVar, Generic
T = TypeVar("T")
class AbstractResourceResolver(Generic[T], ABC):
"""
The resolver takes care of creating fully qualified names from resource keys.
For instance, when working with files this would be the file path, when working
w... | 30.733333 | 83 | 0.709328 | 63 | 461 | 5.190476 | 0.698413 | 0.04893 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219089 | 461 | 15 | 84 | 30.733333 | 0.908333 | 0.479393 | 0 | 0 | 0 | 0 | 0.004608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
b4f450aa99093525879013746d82ec4c365abcd8 | 3,409 | py | Python | synergy/db/model/job.py | eggsandbeer/scheduler | 18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82 | [
"BSD-3-Clause"
] | null | null | null | synergy/db/model/job.py | eggsandbeer/scheduler | 18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82 | [
"BSD-3-Clause"
] | null | null | null | synergy/db/model/job.py | eggsandbeer/scheduler | 18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'Bohdan Mushkevych'
from odm.document import BaseDocument
from odm.fields import StringField, ObjectIdField, ListField, IntegerField
MAX_NUMBER_OF_LOG_ENTRIES = 32
TIMEPERIOD = 'timeperiod'
PROCESS_NAME = 'process_name'
START_OBJ_ID = 'start_obj_id'
END_OBJ_ID = 'end_obj_id'
STATE = 'state'
RELATED_UNIT_... | 34.09 | 116 | 0.7445 | 474 | 3,409 | 5.103376 | 0.301688 | 0.026044 | 0.052088 | 0.062836 | 0.195122 | 0.058702 | 0.037205 | 0.037205 | 0.037205 | 0 | 0 | 0.001808 | 0.188618 | 3,409 | 99 | 117 | 34.434343 | 0.87274 | 0.345556 | 0 | 0.133333 | 0 | 0 | 0.091198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.033333 | 0.15 | 0.516667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
b4f93b9450eed02e00244a8c824d6cbeda2da9f1 | 1,432 | py | Python | simtbx/diffBragg/attr_list.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | simtbx/diffBragg/attr_list.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | simtbx/diffBragg/attr_list.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import division
"""
critical properties of diffBragg objects which should be logged for reproducibility
"""
# TODO : implement a savestate and getstate for these objects
# attrs of diffBragg() instances
DIFFBRAGG_ATTRS = [
'Amatrix',
'Bmatrix',
'Ncells_abc',
'Ncells_abc_aniso',
'Ncells_def',
'N... | 18.842105 | 83 | 0.74162 | 171 | 1,432 | 5.766082 | 0.649123 | 0.036511 | 0.042596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000796 | 0.122207 | 1,432 | 75 | 84 | 19.093333 | 0.783612 | 0.130587 | 0 | 0.032258 | 0 | 0 | 0.660574 | 0.122715 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0 | false | 0 | 0.016129 | 0 | 0.016129 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3712e528ebc57eaa9774a8a00d9c212c77e54ca6 | 4,627 | py | Python | ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py | chrisyo99/ENCODN | 578a5eb87b68e4ba5ebb1c87808ad04aa160df5e | [
"MIT"
] | 6 | 2020-10-07T13:09:38.000Z | 2021-01-16T17:16:51.000Z | ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py | chrisyo99/ENCODN | 578a5eb87b68e4ba5ebb1c87808ad04aa160df5e | [
"MIT"
] | 27 | 2020-10-09T09:14:23.000Z | 2021-01-22T07:16:43.000Z | ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py | chrisyo99/ENCODN | 578a5eb87b68e4ba5ebb1c87808ad04aa160df5e | [
"MIT"
] | 14 | 2020-10-07T14:25:59.000Z | 2021-02-21T16:54:37.000Z | """
Information on the Rozier Cipher can be found at:
https://www.dcode.fr/rozier-cipher
ROZIER.py
Written by: MrLukeKR
Updated: 16/10/2020
"""
# The Rozier cipher needs a string based key, which can be constant for ease
# or changed for each message, for better security
constant_key = "DCODE"
def encrypt(plaintext:... | 40.234783 | 80 | 0.685758 | 656 | 4,627 | 4.765244 | 0.199695 | 0.034549 | 0.021113 | 0.03263 | 0.743442 | 0.716571 | 0.679463 | 0.679463 | 0.65643 | 0.65643 | 0 | 0.004107 | 0.263238 | 4,627 | 114 | 81 | 40.587719 | 0.912878 | 0.620488 | 0 | 0.413793 | 0 | 0 | 0.005402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37142a2768a71aca4c786f5f03f214574e278dfd | 3,324 | py | Python | tests/highlevel/simpler-deepcell.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 15 | 2017-06-07T12:49:12.000Z | 2020-07-25T18:06:04.000Z | tests/highlevel/simpler-deepcell.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 110 | 2016-06-21T23:20:44.000Z | 2022-02-24T16:15:22.000Z | tests/highlevel/simpler-deepcell.py | sjdv1982/seamless | 1b814341e74a56333c163f10e6f6ceab508b7df9 | [
"MIT"
] | 6 | 2016-06-21T11:19:22.000Z | 2019-01-21T13:45:39.000Z | from seamless.highlevel import Context
from pprint import pprint
ctx = Context()
ctx.a = 12
ctx.compute()
print(ctx.a.value)
print(ctx.a.schema) # None
def triple_it(a):
return 3 * a
def triple_it_b(a, b):
print("RUN!")
return 3 * a + b
ctx.transform = triple_it
ctx.transform.debug.direct_print = True
... | 30.777778 | 134 | 0.73225 | 483 | 3,324 | 5.00207 | 0.161491 | 0.258278 | 0.117964 | 0.081954 | 0.726821 | 0.681291 | 0.542219 | 0.473924 | 0.305464 | 0.282699 | 0 | 0.009774 | 0.107401 | 3,324 | 107 | 135 | 31.065421 | 0.804516 | 0.140193 | 0 | 0.560976 | 0 | 0 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.02439 | 0.012195 | 0.073171 | 0.585366 | 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 | 1 | 0 | 2 |
371f8ef580118827f3f0d0fba4c653c6f27eaf69 | 740 | py | Python | setup.py | Mattjez914/Blackjack_Microchallenge | c4f60b62a3ada14663eb30ce72563af994e1eda4 | [
"Apache-2.0"
] | null | null | null | setup.py | Mattjez914/Blackjack_Microchallenge | c4f60b62a3ada14663eb30ce72563af994e1eda4 | [
"Apache-2.0"
] | null | null | null | setup.py | Mattjez914/Blackjack_Microchallenge | c4f60b62a3ada14663eb30ce72563af994e1eda4 | [
"Apache-2.0"
] | 1 | 2019-04-17T06:12:23.000Z | 2019-04-17T06:12:23.000Z | import learntools
from setuptools import setup
from setuptools import find_packages
setup(name='learntools',
version=learntools.__version__,
description='Utilities for Kaggle Learn exercises',
url='http://github.com/kaggle/learntools',
author='Dan Becker',
author_email='dan@kaggle.com',
... | 38.947368 | 120 | 0.737838 | 105 | 740 | 5.12381 | 0.657143 | 0.052045 | 0.074349 | 0.092937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.164865 | 740 | 19 | 121 | 38.947368 | 0.864078 | 0.271622 | 0 | 0 | 0 | 0 | 0.242086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
372e7aa4b02b743d5cd7b6c3f4b391ee437c82f6 | 256 | py | Python | earth_engine/apps.py | ecsnavarretemit/sarai-satellite-analysis-backend | 73de6c4cac37889efff49b9be085f3c733e27702 | [
"MIT"
] | null | null | null | earth_engine/apps.py | ecsnavarretemit/sarai-satellite-analysis-backend | 73de6c4cac37889efff49b9be085f3c733e27702 | [
"MIT"
] | null | null | null | earth_engine/apps.py | ecsnavarretemit/sarai-satellite-analysis-backend | 73de6c4cac37889efff49b9be085f3c733e27702 | [
"MIT"
] | null | null | null | # admin.py
#
# Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
# Licensed under MIT
# Version 0.0.0
from __future__ import unicode_literals
from django.apps import AppConfig
class EarthEngineConfig(AppConfig):
name = 'earth_engine'
| 18.285714 | 65 | 0.769531 | 34 | 256 | 5.617647 | 0.852941 | 0.020942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.144531 | 256 | 13 | 66 | 19.692308 | 0.853881 | 0.410156 | 0 | 0 | 0 | 0 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
37324e5514d40a1e4f6fc7ae82b9119d2c9de22e | 2,249 | py | Python | templates/fastApiService/zarubaServiceName/main.py | state-alchemists/zaruba | 2c689c920df3589168ec81664b92110021892464 | [
"Apache-2.0"
] | 39 | 2020-03-13T19:41:11.000Z | 2022-02-14T02:01:00.000Z | templates/fastApiService/zarubaServiceName/main.py | state-alchemists/zaruba | 2c689c920df3589168ec81664b92110021892464 | [
"Apache-2.0"
] | 5 | 2020-08-01T08:55:48.000Z | 2022-02-10T00:55:39.000Z | templates/fastApiService/zarubaServiceName/main.py | state-alchemists/zaruba | 2c689c920df3589168ec81664b92110021892464 | [
"Apache-2.0"
] | 4 | 2020-11-10T20:45:12.000Z | 2021-03-18T06:18:55.000Z | from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from sqlalchemy import create_engine
from helpers.transport import RMQEventMap, KafkaEventMap, get_rmq_connection_parameters, get_kafka_connection_parameters
from configs.helper import get_abs_static_dir, create_message_bus, create_rpc
import os
... | 48.891304 | 120 | 0.803468 | 308 | 2,249 | 5.38961 | 0.237013 | 0.077108 | 0.13494 | 0.20241 | 0.442771 | 0.442771 | 0.226506 | 0.046988 | 0 | 0 | 0 | 0.005834 | 0.085371 | 2,249 | 46 | 121 | 48.891304 | 0.801167 | 0 | 0 | 0 | 0 | 0 | 0.306667 | 0.262222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.153846 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2ea653e279e69de83e480c6b72197a40442f52f8 | 435 | py | Python | scripts/classtest.py | alandegenhart/neuropy | a9f7b735da78a5296f648cb3bb94c1c31843c668 | [
"MIT"
] | 1 | 2020-09-03T19:33:48.000Z | 2020-09-03T19:33:48.000Z | scripts/classtest.py | alandegenhart/neuropy | a9f7b735da78a5296f648cb3bb94c1c31843c668 | [
"MIT"
] | null | null | null | scripts/classtest.py | alandegenhart/neuropy | a9f7b735da78a5296f648cb3bb94c1c31843c668 | [
"MIT"
] | null | null | null | """Class static method test"""
class TestClass():
"""Test class"""
def __init__(self, a=1, b=2):
self.a = a
self.b = b
def add(self):
return self.a + self.b
@staticmethod
def static_add(a, b):
return 2 * a + 2 * b
def add2(self):
return self.static_a... | 16.730769 | 46 | 0.528736 | 66 | 435 | 3.272727 | 0.318182 | 0.092593 | 0.083333 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.310345 | 435 | 25 | 47 | 17.4 | 0.693333 | 0.08046 | 0 | 0 | 0 | 0 | 0.020566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.2 | 0.533333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
2ea9eb3263cf5ab011a34c951f427040e1522b17 | 29,789 | py | Python | q_dic.py | 1ahmedg/quote-script | 852d7bb88d5edc282080a9f86387df67eab270ed | [
"MIT"
] | null | null | null | q_dic.py | 1ahmedg/quote-script | 852d7bb88d5edc282080a9f86387df67eab270ed | [
"MIT"
] | null | null | null | q_dic.py | 1ahmedg/quote-script | 852d7bb88d5edc282080a9f86387df67eab270ed | [
"MIT"
] | null | null | null | # Quotes from: https://www.notion.so/Quotes-by-Naval-Ravikant-3edaf88cfc914b06a98b58b62b6dc222
dic = [\
"Read what you love until you love to read.",\
"True Wisdom Comes From Understanding, Not Memorization.",\
"Meditation is the art of doing nothing. You cannot do meditation. By definition, if you’re doing some... | 61.168378 | 376 | 0.757629 | 5,200 | 29,789 | 4.348269 | 0.233269 | 0.011278 | 0.004334 | 0.004776 | 0.171952 | 0.148246 | 0.131971 | 0.121888 | 0.119057 | 0.104905 | 0 | 0.001563 | 0.183658 | 29,789 | 487 | 377 | 61.168378 | 0.926515 | 0.016046 | 0 | 0.033195 | 0 | 0.543568 | 0.948679 | 0.000785 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037344 | 0.053942 | 0 | 0.053942 | 0.008299 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ebc95c774511889dc90b69ea08be7978a3d36fc | 2,147 | py | Python | example/infer.py | johnson7788/OpenNRE | dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0 | [
"MIT"
] | 5 | 2021-05-20T02:29:34.000Z | 2021-12-21T13:37:39.000Z | example/infer.py | johnson7788/OpenNRE | dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0 | [
"MIT"
] | null | null | null | example/infer.py | johnson7788/OpenNRE | dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0 | [
"MIT"
] | 4 | 2021-06-09T07:40:52.000Z | 2022-03-11T01:16:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2021/3/15 10:40 上午
# @File : infer.py
# @Author: johnson
# @Contact : github: johnson7788
# @Desc : 推理模型
import opennre
def infer_wiki80_cnn_softmax():
model = opennre.get_model('wiki80_cnn_softmax')
result = model.infer({
... | 38.339286 | 143 | 0.567303 | 273 | 2,147 | 4.289377 | 0.249084 | 0.056362 | 0.064048 | 0.085397 | 0.795901 | 0.773698 | 0.643894 | 0.643894 | 0.643894 | 0.643894 | 0 | 0.055811 | 0.290638 | 2,147 | 56 | 144 | 38.339286 | 0.713066 | 0.105729 | 0 | 0.606061 | 0 | 0.151515 | 0.363973 | 0.026413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.181818 | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ec96efd7987b372b655db0ecf660d386e3c6beb | 6,736 | py | Python | nova/virt/libvirt/storage/dmcrypt.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/virt/libvirt/storage/dmcrypt.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/virt/libvirt/storage/dmcrypt.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory'
nl|'\n'
comment|'# All Rights Reserved'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with t... | 15.556582 | 320 | 0.621734 | 992 | 6,736 | 4.176411 | 0.214718 | 0.076756 | 0.060343 | 0.054067 | 0.389331 | 0.331644 | 0.279025 | 0.209269 | 0.171856 | 0.171856 | 0 | 0.002722 | 0.127227 | 6,736 | 432 | 321 | 15.592593 | 0.70199 | 0 | 0 | 0.814815 | 0 | 0.006944 | 0.474169 | 0.013955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.013889 | 0 | 0.013889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ee1f5707dc3b138efdc660027411aa4640b57d7 | 801 | py | Python | cdchanger/urls.py | mnosinov/cdchanger | 7dc4db3849e135c813d4a46287bdb7cb8b1547d6 | [
"MIT"
] | null | null | null | cdchanger/urls.py | mnosinov/cdchanger | 7dc4db3849e135c813d4a46287bdb7cb8b1547d6 | [
"MIT"
] | null | null | null | cdchanger/urls.py | mnosinov/cdchanger | 7dc4db3849e135c813d4a46287bdb7cb8b1547d6 | [
"MIT"
] | null | null | null | from django.urls import path
from django.views.generic import TemplateView
from .views import CdchangerListView, CdchangerWizard
urlpatterns = [
path('', TemplateView.as_view(template_name='cdchanger/index.html'), name='index'),
path('cdchangers', CdchangerListView.as_view(), name='cdchangers'),
path('cdc... | 50.0625 | 110 | 0.739076 | 89 | 801 | 6.561798 | 0.348315 | 0.071918 | 0.085616 | 0.097603 | 0.19863 | 0.19863 | 0.19863 | 0.19863 | 0.19863 | 0 | 0 | 0 | 0.09613 | 801 | 15 | 111 | 53.4 | 0.80663 | 0.353308 | 0 | 0 | 0 | 0 | 0.206628 | 0.044834 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2ee7856345c9fb44d682f93c6f98e331db8127ea | 270 | py | Python | app/questionnaire_state/state_section.py | qateam123/eq | 704757952323647d659c49a71975c56406ff4047 | [
"MIT"
] | null | null | null | app/questionnaire_state/state_section.py | qateam123/eq | 704757952323647d659c49a71975c56406ff4047 | [
"MIT"
] | 8 | 2020-03-24T15:24:18.000Z | 2022-03-02T04:32:56.000Z | app/questionnaire_state/state_section.py | qateam123/eq | 704757952323647d659c49a71975c56406ff4047 | [
"MIT"
] | null | null | null | from app.questionnaire_state.state_item import StateItem
class StateSection(StateItem):
def __init__(self, item_id, schema_item):
super().__init__(item_id=item_id, schema_item=schema_item)
self.questions = []
self.children = self.questions
| 30 | 66 | 0.72963 | 34 | 270 | 5.323529 | 0.5 | 0.099448 | 0.132597 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 270 | 8 | 67 | 33.75 | 0.815315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ee93559b4c44d3a539288935e7f1d8e903dfc6a | 14,221 | py | Python | electrical_simulation/miasole_module_two.py | architecture-building-systems/bipv-tool | 3ae73a541754e5215dfd39ef837d72f4b80ef967 | [
"MIT"
] | 4 | 2019-02-18T14:10:49.000Z | 2021-04-23T09:03:13.000Z | electrical_simulation/miasole_module_two.py | architecture-building-systems/bipv-tool | 3ae73a541754e5215dfd39ef837d72f4b80ef967 | [
"MIT"
] | 1 | 2018-08-16T13:27:15.000Z | 2018-08-16T13:27:16.000Z | electrical_simulation/miasole_module_two.py | architecture-building-systems/bipv-tool | 3ae73a541754e5215dfd39ef837d72f4b80ef967 | [
"MIT"
] | null | null | null | import numpy as np
import pvlib.pvsystem as pvsyst
import interconnection as connect
import matplotlib.pyplot as plt
def calculate_reverse_scaling_factor(voltages, breakdown_voltage, miller_exponent):
"""
:param voltages: numpy array of voltages
:param breakdown_voltage: the minimum voltage before the ave... | 52.283088 | 134 | 0.664932 | 1,778 | 14,221 | 4.974691 | 0.172103 | 0.022951 | 0.023742 | 0.013454 | 0.361108 | 0.282872 | 0.212889 | 0.135105 | 0.119729 | 0.076993 | 0 | 0.008562 | 0.277266 | 14,221 | 271 | 135 | 52.476015 | 0.852014 | 0.118557 | 0 | 0.08871 | 0 | 0 | 0.031563 | 0.014866 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.072581 | 0.032258 | null | null | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2eebbacb5df6c83ca0a014890b1d4f2d50ccc8e9 | 228 | py | Python | tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | 1 | 2021-02-05T13:19:58.000Z | 2021-02-05T13:19:58.000Z | tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null |
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY
short_version = '1.9.0'
version = '1.9.0'
full_version = '1.9.0'
git_revision = '07601a64cdfeb1c0247bde1294ad6380413cab66'
release = True
if not release:
version = full_version
| 20.727273 | 57 | 0.745614 | 33 | 228 | 5.030303 | 0.636364 | 0.144578 | 0.162651 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176166 | 0.153509 | 228 | 10 | 58 | 22.8 | 0.683938 | 0.184211 | 0 | 0 | 1 | 0 | 0.300546 | 0.218579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2efec4d7645754973922248e12f2e9e6fd0b48f4 | 746 | py | Python | demo/examples/radio/application.py | haizzus/FPGA-radio | 7b7811091bafb2865bccb8aef9f4a53f7b43089e | [
"MIT"
] | 53 | 2016-10-15T17:13:19.000Z | 2022-03-27T02:24:50.000Z | demo/examples/radio/application.py | dawsonjon/FPGA-radio | 7b7811091bafb2865bccb8aef9f4a53f7b43089e | [
"MIT"
] | null | null | null | demo/examples/radio/application.py | dawsonjon/FPGA-radio | 7b7811091bafb2865bccb8aef9f4a53f7b43089e | [
"MIT"
] | 10 | 2017-03-17T11:16:01.000Z | 2022-03-30T05:00:05.000Z | from demo.components.server import server
from chips.api.api import *
def application(chip):
eth = Component("application.c")
eth(
chip,
inputs = {
"eth_in" : chip.inputs["input_eth_rx"],
"am_in" : chip.inputs["input_radio_am"],
"fm_in" : chip.inputs["input... | 32.434783 | 73 | 0.576408 | 85 | 746 | 4.741176 | 0.341176 | 0.124069 | 0.210918 | 0.198511 | 0.233251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.281501 | 746 | 22 | 74 | 33.909091 | 0.729478 | 0 | 0 | 0 | 0 | 0 | 0.306971 | 0.067024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2eff7f3dafd4df68788f8af91c9f219b3565485e | 227 | py | Python | Xiecheng/__init__.py | scottyyf/MultiWorker | 4abd361c3053140be6453d6e6e30f5c31a189e79 | [
"Apache-2.0"
] | 2 | 2021-12-14T10:46:14.000Z | 2021-12-14T10:47:00.000Z | Xiecheng/__init__.py | scottyyf/MultiWorker | 4abd361c3053140be6453d6e6e30f5c31a189e79 | [
"Apache-2.0"
] | 9 | 2021-12-06T06:16:15.000Z | 2021-12-20T06:39:50.000Z | Xiecheng/__init__.py | scottyyf/MultiWorker | 4abd361c3053140be6453d6e6e30f5c31a189e79 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
File: __init__.py.py
Author: Scott Yang(Scott)
Email: yangyingfa@skybility.com
Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved.
Description:
"""
| 20.636364 | 79 | 0.709251 | 31 | 227 | 5.064516 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.123348 | 227 | 10 | 80 | 22.7 | 0.763819 | 0.942731 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c09a4a2e41ca60c7d6287eab58dfe9fe3c0167c | 680 | py | Python | gatewayconfig/bluetooth/descriptors/utf8_format_descriptor.py | AndriiIevdoshenko/hm-config | f513d72dd8c67c040310d78071d8ac2de418d0d6 | [
"MIT"
] | 7 | 2021-07-09T16:54:39.000Z | 2022-02-18T09:07:54.000Z | gatewayconfig/bluetooth/descriptors/utf8_format_descriptor.py | AndriiIevdoshenko/hm-config | f513d72dd8c67c040310d78071d8ac2de418d0d6 | [
"MIT"
] | 137 | 2021-02-05T21:53:35.000Z | 2022-03-31T23:31:54.000Z | gatewayconfig/bluetooth/descriptors/utf8_format_descriptor.py | AndriiIevdoshenko/hm-config | f513d72dd8c67c040310d78071d8ac2de418d0d6 | [
"MIT"
] | 16 | 2021-02-15T11:25:37.000Z | 2022-01-17T07:53:38.000Z | import dbus
from lib.cputemp.service import Descriptor
import gatewayconfig.constants as constants
class UTF8FormatDescriptor(Descriptor):
def __init__(self, characteristic):
Descriptor.__init__(
self, constants.PRESENTATION_FORMAT_DESCRIPTOR_UUID,
["read"],
... | 27.2 | 68 | 0.638235 | 72 | 680 | 5.875 | 0.402778 | 0.182033 | 0.248227 | 0.314421 | 0.316785 | 0.316785 | 0.316785 | 0.316785 | 0.316785 | 0.316785 | 0 | 0.043651 | 0.258824 | 680 | 24 | 69 | 28.333333 | 0.795635 | 0 | 0 | 0.263158 | 0 | 0 | 0.005882 | 0 | 0 | 0 | 0.041176 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c1069139cd713638cf5bbb933fb4bfc312c6f46 | 2,225 | py | Python | e_fun_calls.py | panamantis/gretnet_api | 7b30e3ca07992c52478de90cca94e18c1a1fa9f3 | [
"MIT"
] | null | null | null | e_fun_calls.py | panamantis/gretnet_api | 7b30e3ca07992c52478de90cca94e18c1a1fa9f3 | [
"MIT"
] | null | null | null | e_fun_calls.py | panamantis/gretnet_api | 7b30e3ca07992c52478de90cca94e18c1a1fa9f3 | [
"MIT"
] | null | null | null | import sys,os
import time
import datetime
import random
import re
import json
import requests
from flask import Flask, jsonify
from flasgger import Swagger # pip install flasgger
from flasgger import swag_from
from flask import request
from api_helper import GretNet_API_Helper
LOCAL_PATH = os.path.abspath(os.... | 11.410256 | 60 | 0.412135 | 179 | 2,225 | 4.944134 | 0.513966 | 0.031638 | 0.044068 | 0.031638 | 0.051977 | 0.051977 | 0 | 0 | 0 | 0 | 0 | 0.015903 | 0.519551 | 2,225 | 194 | 61 | 11.469072 | 0.811974 | 0.265169 | 0 | 0 | 0 | 0 | 0.025457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0.375 | 0.03125 | 0.5 | 0.03125 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
2c2e48e936899f7a8f86e2d400517f71ba883959 | 941 | py | Python | models.py | jarbaugh5/laundry_stats | 39e79854728e1c8012b2876bb3e3f93f48b42e04 | [
"Apache-2.0"
] | null | null | null | models.py | jarbaugh5/laundry_stats | 39e79854728e1c8012b2876bb3e3f93f48b42e04 | [
"Apache-2.0"
] | null | null | null | models.py | jarbaugh5/laundry_stats | 39e79854728e1c8012b2876bb3e3f93f48b42e04 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.types import DateTime
Base = declarative_base()
class Building(Base):
__tablename__ = "buildings"
id = Column(Integer, primary_key=True)
name = Column(String)
class MachineT... | 26.885714 | 58 | 0.724761 | 104 | 941 | 6.326923 | 0.326923 | 0.217325 | 0.113982 | 0.133739 | 0.240122 | 0.240122 | 0.151976 | 0.151976 | 0.151976 | 0.151976 | 0 | 0 | 0.171095 | 941 | 35 | 59 | 26.885714 | 0.84359 | 0 | 0 | 0.24 | 0 | 0 | 0.083864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.96 | 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 | 1 | 0 | 0 | 2 |
2c2f9b90ebf5604014575bad5dad0fa9a8c11c47 | 857 | py | Python | dsvfile/Models/FactorySystem/AssemblerComponent.py | phoenixx-666/dsvread | 8a073c12343b2f0d34f9b728282dfefe10999f24 | [
"MIT"
] | 2 | 2021-03-01T19:57:20.000Z | 2021-08-02T20:54:48.000Z | dsvfile/Models/FactorySystem/AssemblerComponent.py | phoenixx-666/dsvread | 8a073c12343b2f0d34f9b728282dfefe10999f24 | [
"MIT"
] | null | null | null | dsvfile/Models/FactorySystem/AssemblerComponent.py | phoenixx-666/dsvread | 8a073c12343b2f0d34f9b728282dfefe10999f24 | [
"MIT"
] | null | null | null | from ...Fields import BoolField, ConditionalBlockStart
from ...Fields.Enums import ERecipe, ERecipeType
from ...Func import g
from . import Model, Int32Field, ArrayField
class AssemblerComponent(Model):
version = Int32Field()
id = Int32Field()
entityId = Int32Field()
pcId = Int32Field()
replicatin... | 31.740741 | 87 | 0.719953 | 75 | 857 | 8.2 | 0.493333 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044349 | 0.184364 | 857 | 26 | 88 | 32.961538 | 0.835479 | 0 | 0 | 0 | 0 | 0 | 0.009335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 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 | 1 | 0 | 0 | 2 |
2581eb1b55c042ee77c302c7a30814d99058fc85 | 2,901 | py | Python | chaospy/distributions/collection/gamma.py | lblonk/chaospy | 1759a4307c6134b74ce63ff44973195f1e185f94 | [
"MIT"
] | 1 | 2020-04-29T20:53:25.000Z | 2020-04-29T20:53:25.000Z | chaospy/distributions/collection/gamma.py | agonzs11/Polinomio-del-caos | 5a415ece07e6535488174bac69a6c0fcc2ca272d | [
"MIT"
] | null | null | null | chaospy/distributions/collection/gamma.py | agonzs11/Polinomio-del-caos | 5a415ece07e6535488174bac69a6c0fcc2ca272d | [
"MIT"
] | null | null | null | """Gamma distribution."""
import numpy
from scipy import special
from ..baseclass import Dist
from ..operators.addition import Add
class gamma(Dist):
def __init__(self, a=1):
Dist.__init__(self, a=a)
def _pdf(self, x, a):
return x**(a-1)*numpy.e**(-x) / special.gamma(a)
def _cdf(self, ... | 27.367925 | 69 | 0.536711 | 403 | 2,901 | 3.781638 | 0.228288 | 0.03937 | 0.064961 | 0.068898 | 0.437008 | 0.437008 | 0.379265 | 0.360892 | 0.322835 | 0.270341 | 0 | 0.087229 | 0.284729 | 2,901 | 105 | 70 | 27.628571 | 0.647229 | 0.563599 | 0 | 0 | 0 | 0 | 0.023992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.233333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
25873fb3ea0c2524e1adfd5dff21649fc4c13e56 | 9,844 | py | Python | mrobpy/examples/vis_utils.py | miloserdova-l/mrob | 48bef772ba3158d2122991069196d6efd4a39f8c | [
"Apache-2.0"
] | 12 | 2020-09-22T15:33:48.000Z | 2022-03-02T17:27:39.000Z | mrobpy/examples/vis_utils.py | MobileRoboticsSkoltech/mrob | 7668a3ee35345c4878aa86fff082cc017992d205 | [
"Apache-2.0"
] | 46 | 2020-09-22T15:47:08.000Z | 2022-01-22T10:56:44.000Z | mrobpy/examples/vis_utils.py | MobileRoboticsSkoltech/mrob | 7668a3ee35345c4878aa86fff082cc017992d205 | [
"Apache-2.0"
] | 9 | 2020-09-22T15:59:33.000Z | 2021-12-20T20:15:16.000Z | import numpy as np
import pandas as pd
import mrob
from test_utils import get_mc
from sys import platform
import matplotlib
if platform == "darwin":
matplotlib.use('PS')
import matplotlib.pyplot as plt
# Here the Cholesky decomposition for singular covariance matrix is implemented
def cholesky(sigma):
# o... | 29.650602 | 109 | 0.548151 | 1,604 | 9,844 | 3.313591 | 0.096633 | 0.019944 | 0.034243 | 0.034619 | 0.718532 | 0.711947 | 0.702728 | 0.667168 | 0.586642 | 0.55936 | 0 | 0.038813 | 0.267168 | 9,844 | 331 | 110 | 29.740181 | 0.697948 | 0.078119 | 0 | 0.553571 | 0 | 0 | 0.028922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.089286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2589eb77b53e81f30f42249e4a59f220a70d8f3e | 573 | py | Python | api/tf_auth/migrations/0009_populate_username.py | prattl/teamfinder-web | 85ded666879c2ee4b51cb59ffdedc2dedbfd9c7e | [
"Apache-2.0"
] | 9 | 2017-04-10T09:40:01.000Z | 2020-01-31T17:15:41.000Z | api/tf_auth/migrations/0009_populate_username.py | prattl/teamfinder-web | 85ded666879c2ee4b51cb59ffdedc2dedbfd9c7e | [
"Apache-2.0"
] | 19 | 2017-02-22T16:26:02.000Z | 2020-02-04T16:08:16.000Z | api/tf_auth/migrations/0009_populate_username.py | prattl/teamfinder-web | 85ded666879c2ee4b51cb59ffdedc2dedbfd9c7e | [
"Apache-2.0"
] | 3 | 2017-04-17T06:37:58.000Z | 2021-04-09T18:16:28.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-04-17 00:30
from __future__ import unicode_literals
from django.db import migrations
def forwards(apps, schema_editor):
TFUser = apps.get_model('tf_auth.TFUser')
for user in TFUser.objects.all():
try:
user.username = user.playe... | 21.222222 | 65 | 0.649215 | 69 | 573 | 5.217391 | 0.73913 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076037 | 0.242583 | 573 | 26 | 66 | 22.038462 | 0.753456 | 0.118674 | 0 | 0 | 1 | 0 | 0.087649 | 0.045817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
25976939b96e834c2bfbe96de1759d0543a5294c | 254 | py | Python | server/src/models/embedded_models/method_step_embedded_model.py | minhman727/miao-nutrition-assistant | c0f999756ae1a03371975be03ec7b7470f4b39e2 | [
"MIT"
] | null | null | null | server/src/models/embedded_models/method_step_embedded_model.py | minhman727/miao-nutrition-assistant | c0f999756ae1a03371975be03ec7b7470f4b39e2 | [
"MIT"
] | null | null | null | server/src/models/embedded_models/method_step_embedded_model.py | minhman727/miao-nutrition-assistant | c0f999756ae1a03371975be03ec7b7470f4b39e2 | [
"MIT"
] | null | null | null | from mongoengine import *
class MethodStep(EmbeddedDocument):
description = StringField(require=True)
images = ListField(ImageField(db_alias="miao"), null=True)
meta = {
"db_alias": "miao",
"collection": "method_steps"
} | 25.4 | 62 | 0.661417 | 25 | 254 | 6.6 | 0.84 | 0.084848 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212598 | 254 | 10 | 63 | 25.4 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0.14902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
259fbbdca0af61061f255ad37e3048c4085965f8 | 307 | py | Python | src/briefcase/apps/spreadsheet/events.py | Briefcase/Briefcase | 34403c69c19cee1e682293a2c3c3f17c631b9246 | [
"BSD-2-Clause"
] | 2 | 2017-10-19T15:39:31.000Z | 2022-02-09T02:59:27.000Z | src/briefcase/apps/spreadsheet/events.py | Briefcase/Briefcase | 34403c69c19cee1e682293a2c3c3f17c631b9246 | [
"BSD-2-Clause"
] | 2 | 2021-06-16T02:08:42.000Z | 2021-12-06T07:43:32.000Z | src/briefcase/apps/spreadsheet/events.py | Briefcase/Briefcase | 34403c69c19cee1e682293a2c3c3f17c631b9246 | [
"BSD-2-Clause"
] | 2 | 2016-05-25T07:28:13.000Z | 2021-04-02T03:55:08.000Z | def onMessage(request, message, socket):
print "ON MESSAGE! :" + message
socket.sendToMe("Hello Back!")
pass
def onConnect(requestData):
#socket.sendToAll("Test All")
#socket.sendToAllButMe("Test Not Me")
#socket.sendToMe("Test Me")
return True
def onDisconnect():
pass | 23.615385 | 41 | 0.661238 | 35 | 307 | 5.8 | 0.628571 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208469 | 307 | 13 | 42 | 23.615385 | 0.835391 | 0.29316 | 0 | 0.25 | 0 | 0 | 0.111628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.25 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
25a41d20123f1a8a57294e429d62e5549539156f | 518 | py | Python | utils/sqlite.py | ztytotoro/python-scripts | a337abd6c2705483d3167f611d671a2b7ee517f7 | [
"MIT"
] | null | null | null | utils/sqlite.py | ztytotoro/python-scripts | a337abd6c2705483d3167f611d671a2b7ee517f7 | [
"MIT"
] | null | null | null | utils/sqlite.py | ztytotoro/python-scripts | a337abd6c2705483d3167f611d671a2b7ee517f7 | [
"MIT"
] | null | null | null | # 导入:
from sqlalchemy import Column, String, create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# 创建对象的基类:
Base = declarative_base()
# 定义Project对象:
class Project(Base):
# 表的名字:
__tablename__ = 'project'
# 表的结构:
id = Column(String(20), primar... | 21.583333 | 63 | 0.737452 | 59 | 518 | 6.322034 | 0.627119 | 0.112601 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018223 | 0.15251 | 518 | 24 | 64 | 21.583333 | 0.831435 | 0.119691 | 0 | 0 | 0 | 0 | 0.140312 | 0.124722 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
25c1cb3bad57e1815eb464351a2379c671232a0c | 334 | py | Python | en_fila/apps/management/migrations/0004_remove_employee_employee_passcode.py | puertoricanDev/En_fila | cf2551190be61f6a6ce705cccf35734edc682eef | [
"MIT"
] | null | null | null | en_fila/apps/management/migrations/0004_remove_employee_employee_passcode.py | puertoricanDev/En_fila | cf2551190be61f6a6ce705cccf35734edc682eef | [
"MIT"
] | null | null | null | en_fila/apps/management/migrations/0004_remove_employee_employee_passcode.py | puertoricanDev/En_fila | cf2551190be61f6a6ce705cccf35734edc682eef | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-11-16 20:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('management', '0003_employee'),
]
operations = [
migrations.RemoveField(
model_name='employee',
name='employee_passcode',
... | 18.555556 | 47 | 0.598802 | 34 | 334 | 5.794118 | 0.794118 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080169 | 0.290419 | 334 | 17 | 48 | 19.647059 | 0.751055 | 0.134731 | 0 | 0 | 1 | 0 | 0.167247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
25c4fd8ace573f044a14fdb19367fd2f41c3ec1f | 8,229 | py | Python | install/app_store/tk-nuke-writenode/v1.2.0/app.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-nuke-writenode/v1.2.0/app.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-nuke-writenode/v1.2.0/app.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | 1 | 2020-02-15T10:42:56.000Z | 2020-02-15T10:42:56.000Z | # Copyright (c) 2013 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to t... | 34.004132 | 89 | 0.652813 | 1,023 | 8,229 | 4.946237 | 0.226784 | 0.076482 | 0.10751 | 0.110672 | 0.431621 | 0.314032 | 0.258893 | 0.205731 | 0.187352 | 0.178459 | 0 | 0.000849 | 0.28436 | 8,229 | 241 | 90 | 34.145228 | 0.85838 | 0.36505 | 0 | 0.025 | 0 | 0 | 0.03081 | 0.011386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.0625 | 0 | 0.575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
25d3f23269643ac6a6edc73c74d7612fd5227b4e | 6,741 | py | Python | ooobuild/lo/ucb/x_simple_file_access.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/ucb/x_simple_file_access.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/ucb/x_simple_file_access.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 35.478947 | 206 | 0.645305 | 720 | 6,741 | 5.963889 | 0.301389 | 0.048905 | 0.081509 | 0.057522 | 0.459013 | 0.459013 | 0.425012 | 0.418724 | 0.404285 | 0.404285 | 0 | 0.016426 | 0.250408 | 6,741 | 189 | 207 | 35.666667 | 0.833366 | 0.54443 | 0 | 0.340426 | 0 | 0 | 0.103844 | 0.060981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.340426 | false | 0 | 0.170213 | 0 | 0.617021 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
25e918b72fd4f7774d359e037858b76d4d02a0ff | 4,891 | py | Python | manifest-build-tools/application/generate_manifest.py | dalebremner/on-tools | 18b826bca2a3608c5b50116ec710bbeb630a586e | [
"Apache-2.0"
] | 4 | 2015-12-08T20:02:53.000Z | 2019-03-08T07:42:24.000Z | manifest-build-tools/application/generate_manifest.py | dalebremner/on-tools | 18b826bca2a3608c5b50116ec710bbeb630a586e | [
"Apache-2.0"
] | 48 | 2016-01-28T23:50:38.000Z | 2017-10-20T13:38:03.000Z | manifest-build-tools/application/generate_manifest.py | dalebremner/on-tools | 18b826bca2a3608c5b50116ec710bbeb630a586e | [
"Apache-2.0"
] | 38 | 2015-11-02T23:49:37.000Z | 2021-05-27T01:24:03.000Z | #!/usr/bin/env python
# Copyright 2016, DELLEMC, Inc.
"""
The script generate a new manifest for a new branch according to another manifest.
For example,
new branch: release/branch-1.2.3
date: 2016-12-15 00:00:00
The generated new manifest: branch-1.2.3-20161215
usage:
./on-tools/manifest-build-tools/HWIMO-BUILD on-... | 36.774436 | 159 | 0.605193 | 598 | 4,891 | 4.859532 | 0.29097 | 0.021679 | 0.04095 | 0.020647 | 0.220922 | 0.147626 | 0.120785 | 0.110117 | 0.110117 | 0.0819 | 0 | 0.028283 | 0.291556 | 4,891 | 132 | 160 | 37.05303 | 0.81039 | 0.013494 | 0 | 0.3 | 1 | 0.0125 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1125 | null | null | 0.025 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
25f57628f67d79914ee5503f127fa52f25876ffe | 424 | py | Python | utils/logger.py | FFTYYY/RoR_relation_extraction | a099e98f3708a39debeed4dc522ff57c4f6b960d | [
"MIT"
] | 25 | 2020-06-09T01:25:14.000Z | 2021-12-22T10:47:18.000Z | utils/logger.py | FFTYYY/RoR_relation_extraction | a099e98f3708a39debeed4dc522ff57c4f6b960d | [
"MIT"
] | 7 | 2020-06-21T08:32:26.000Z | 2021-08-04T08:39:10.000Z | utils/logger.py | FFTYYY/RoR_relation_extraction | a099e98f3708a39debeed4dc522ff57c4f6b960d | [
"MIT"
] | 3 | 2020-06-18T16:47:31.000Z | 2021-08-10T01:04:16.000Z | from .watch_time import time_str
import fitlog
class Logger:
def __init__(self , fil_path = None):
self.log_fil = open(fil_path , "w" , encoding = "utf-8")
def nolog(self , cont = ""):
pass
def log_print(self , cont = ""):
self.log_fil.write(cont + "\n")
self.log_fil.flush()
print (cont)
fitlog.add_t... | 21.2 | 58 | 0.650943 | 67 | 424 | 3.835821 | 0.447761 | 0.108949 | 0.116732 | 0.116732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002899 | 0.186321 | 424 | 19 | 59 | 22.315789 | 0.742029 | 0 | 0 | 0 | 0 | 0 | 0.025943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0.142857 | 0 | 0.5 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
25fb9da113f8ffe313c22811acf787eb03963979 | 2,233 | py | Python | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/share/nslcd-utils/users.py | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/share/nslcd-utils/users.py | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/share/nslcd-utils/users.py | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# users.py - functions for validating the user to change information for
#
# Copyright (C) 2013 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# ... | 36.606557 | 76 | 0.652485 | 324 | 2,233 | 4.481481 | 0.475309 | 0.024105 | 0.024793 | 0.039256 | 0.068871 | 0.068871 | 0.046832 | 0 | 0 | 0 | 0 | 0.012939 | 0.273175 | 2,233 | 60 | 77 | 37.216667 | 0.881701 | 0.55262 | 0 | 0 | 0 | 0 | 0.089864 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.115385 | false | 0.230769 | 0.153846 | 0 | 0.346154 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
25ffe35e8c78cb6840c07e1ba30975649c994db9 | 1,077 | py | Python | python_to_you/models/profile.py | jacksonsr45/python_to_you | f0016e0450f3f2a4ba1f592baff8a9c28ffeaec7 | [
"MIT"
] | 1 | 2021-05-11T12:09:00.000Z | 2021-05-11T12:09:00.000Z | python_to_you/models/profile.py | jacksonsr45/python_to_you | f0016e0450f3f2a4ba1f592baff8a9c28ffeaec7 | [
"MIT"
] | null | null | null | python_to_you/models/profile.py | jacksonsr45/python_to_you | f0016e0450f3f2a4ba1f592baff8a9c28ffeaec7 | [
"MIT"
] | null | null | null | import datetime
from python_to_you.extensions.database import db
from sqlalchemy_serializer import SerializerMixin
class Profile(db.Model, SerializerMixin):
__tablename__ = 'profiles'
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.ForeignKey('users.id', ondelete="CASCADE"))
addres... | 41.423077 | 79 | 0.724234 | 146 | 1,077 | 5.184932 | 0.308219 | 0.15852 | 0.198151 | 0.126816 | 0.65786 | 0.417437 | 0.356671 | 0.356671 | 0.269485 | 0.269485 | 0 | 0.019313 | 0.134633 | 1,077 | 26 | 80 | 41.423077 | 0.792918 | 0 | 0 | 0.272727 | 0 | 0 | 0.069573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d303609067dd385ae7d7e794011ee33a46b6f186 | 861 | py | Python | boofuzz/boofuzz/primitives/simple.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:01.000Z | 2021-06-04T14:27:15.000Z | boofuzz/boofuzz/primitives/simple.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | null | null | null | boofuzz/boofuzz/primitives/simple.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:09.000Z | 2021-06-04T14:27:21.000Z | from ..fuzzable import Fuzzable
class Simple(Fuzzable):
"""Simple bytes value with manually specified fuzz values only.
:type name: str, optional
:param name: Name, for referencing later. Names should always be provided, but if not, a default name will be given,
defaults to None
:type default... | 43.05 | 120 | 0.724739 | 120 | 861 | 5.05 | 0.475 | 0.115512 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 861 | 19 | 121 | 45.315789 | 0.86944 | 0.628339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d32efdf87fa01cecf781b9df68da523858dc7395 | 446 | py | Python | github/joeynmt/vizseq/__init__.py | shania3322/joeynmt | 5afe9d00930f19949b2078141771bf4621f6e9ae | [
"Apache-2.0"
] | null | null | null | github/joeynmt/vizseq/__init__.py | shania3322/joeynmt | 5afe9d00930f19949b2078141771bf4621f6e9ae | [
"Apache-2.0"
] | null | null | null | github/joeynmt/vizseq/__init__.py | shania3322/joeynmt | 5afe9d00930f19949b2078141771bf4621f6e9ae | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import os.path as op
from pathlib import Path
FILE_ROOT = Path(__file__).parent
with open(op.join(FILE_ROOT, ... | 26.235294 | 62 | 0.724215 | 69 | 446 | 4.521739 | 0.623188 | 0.064103 | 0.096154 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199552 | 446 | 16 | 63 | 27.875 | 0.87395 | 0.414798 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d32f5b9d04aa58bad6be7d58f09474c29bae63fc | 428 | py | Python | invest_app/investlib/yfhelper.py | bdastur/builder | e05c013d01c4e82340879289940b3029fc6de266 | [
"Apache-2.0"
] | null | null | null | invest_app/investlib/yfhelper.py | bdastur/builder | e05c013d01c4e82340879289940b3029fc6de266 | [
"Apache-2.0"
] | null | null | null | invest_app/investlib/yfhelper.py | bdastur/builder | e05c013d01c4e82340879289940b3029fc6de266 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import yahoofinancials
def get_historical_price_data(ticker_symbol,
start_date, end_date,
frequency='weekly'):
'''
The API returns historical price data.
'''
yf = yahoofinancials.YahooFinancials... | 22.526316 | 72 | 0.619159 | 46 | 428 | 5.5 | 0.565217 | 0.177866 | 0.225296 | 0.173913 | 0.197628 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003279 | 0.287383 | 428 | 18 | 73 | 23.777778 | 0.82623 | 0.189252 | 0 | 0 | 0 | 0 | 0.018293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d33381d94db212c012354ecf16f4b8a33084a29c | 301 | py | Python | SchoolManagement/ServerRestAPI/admin.py | amiremohamadi/django-restful-api | 13dd5de4f16b5529556118a3469680c42e6e8c42 | [
"MIT"
] | 4 | 2019-05-26T18:08:44.000Z | 2019-07-05T10:45:24.000Z | SchoolManagement/ServerRestAPI/admin.py | amiremohamadi/django-restful-api | 13dd5de4f16b5529556118a3469680c42e6e8c42 | [
"MIT"
] | null | null | null | SchoolManagement/ServerRestAPI/admin.py | amiremohamadi/django-restful-api | 13dd5de4f16b5529556118a3469680c42e6e8c42 | [
"MIT"
] | 2 | 2020-05-31T20:38:59.000Z | 2020-10-07T11:16:52.000Z | from django.contrib import admin
from ServerRestAPI.models import (
Student, Teacher, StudentLecture,
TeacherLecture, Lecture
)
admin.site.register(Student)
admin.site.register(Teacher)
admin.site.register(StudentLecture)
admin.site.register(TeacherLecture)
admin.site.register(Lecture) | 25.083333 | 38 | 0.797342 | 34 | 301 | 7.058824 | 0.411765 | 0.1875 | 0.354167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109635 | 301 | 12 | 39 | 25.083333 | 0.895522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d33e1e636ee5da0369711e6dc257901496e19cc2 | 486 | py | Python | julie/physics/velocity.py | MarcelloBB/julieutils | cffba53a1561d05660c2274ce0a9485bf9e0ddcf | [
"MIT"
] | 2 | 2021-08-23T15:16:43.000Z | 2021-11-01T15:29:02.000Z | julie/physics/velocity.py | MarcelloBB/julieutils | cffba53a1561d05660c2274ce0a9485bf9e0ddcf | [
"MIT"
] | null | null | null | julie/physics/velocity.py | MarcelloBB/julieutils | cffba53a1561d05660c2274ce0a9485bf9e0ddcf | [
"MIT"
] | null | null | null |
def average_speed(s1 : float, s0 : float, t1 : float, t0 : float) -> float:
"""
[FUNC] average_speed:
Returns the average speed.
Where:
Delta Space = (space1[s1] - space0[s0])
Delta Time = (time1[t1] - time0[t0])
"""
return ((s1-s0)/(t1-t0));
def average_acceleration(v1 : flo... | 22.090909 | 82 | 0.576132 | 61 | 486 | 4.508197 | 0.377049 | 0.130909 | 0.087273 | 0.101818 | 0.254545 | 0.254545 | 0.254545 | 0.254545 | 0 | 0 | 0 | 0.066667 | 0.259259 | 486 | 22 | 83 | 22.090909 | 0.697222 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d3531e57298807b91066e04d1ce5acf961f78599 | 4,566 | py | Python | src/zope/app/publisher/interfaces/ftp.py | zopefoundation/zope.app.publisher | 7c7aea272a8c4cd10ef97264f8f48766368ceefb | [
"ZPL-2.1"
] | 1 | 2019-12-04T12:52:44.000Z | 2019-12-04T12:52:44.000Z | src/zope/app/publisher/interfaces/ftp.py | zopefoundation/zope.app.publisher | 7c7aea272a8c4cd10ef97264f8f48766368ceefb | [
"ZPL-2.1"
] | 6 | 2017-05-05T11:53:40.000Z | 2020-06-08T13:49:42.000Z | src/zope/app/publisher/interfaces/ftp.py | zopefoundation/zope.app.publisher | 7c7aea272a8c4cd10ef97264f8f48766368ceefb | [
"ZPL-2.1"
] | 2 | 2015-04-03T08:00:16.000Z | 2020-06-09T10:06:15.000Z | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | 25.50838 | 78 | 0.597678 | 599 | 4,566 | 4.537563 | 0.323873 | 0.038631 | 0.036056 | 0.01766 | 0.201987 | 0.173289 | 0.153422 | 0.153422 | 0.126932 | 0.066225 | 0 | 0.004136 | 0.311651 | 4,566 | 178 | 79 | 25.651685 | 0.860643 | 0.689444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.866667 | false | 0 | 0.066667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d3891e3d0186411e4c72b16b384e7e13ef7cce0a | 395 | py | Python | tests/test_msal.py | narongdejsrn/django-rest-framework-msal | 0e969aadf7a681b24b630c008f05be1d339d0df4 | [
"MIT"
] | 3 | 2020-04-22T01:56:41.000Z | 2021-06-22T15:21:57.000Z | tests/test_msal.py | narongdejsrn/django-rest-framework-msal | 0e969aadf7a681b24b630c008f05be1d339d0df4 | [
"MIT"
] | 2 | 2021-01-08T09:04:16.000Z | 2021-07-20T19:43:15.000Z | tests/test_msal.py | narongdejsrn/django-rest-framework-msal | 0e969aadf7a681b24b630c008f05be1d339d0df4 | [
"MIT"
] | 4 | 2020-05-25T07:34:37.000Z | 2021-06-11T07:37:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test-msal
------------
Tests for MSAL Connection
"""
from django.test import TestCase
from drf_msal_jwt.utils import build_auth_url
class TestMSAL(TestCase):
def setUp(self):
pass
def test_login_url(self):
login_url = build_auth_url()
... | 14.62963 | 45 | 0.637975 | 52 | 395 | 4.653846 | 0.596154 | 0.099174 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003279 | 0.227848 | 395 | 26 | 46 | 15.192308 | 0.790164 | 0.232911 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.3 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d391cc09726af2cc48341fbff68008cd2eedea8a | 8,451 | py | Python | test/testfiles.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 2 | 2015-12-01T10:52:36.000Z | 2021-04-20T05:15:01.000Z | test/testfiles.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 4 | 2016-07-18T18:28:24.000Z | 2016-07-19T08:30:14.000Z | test/testfiles.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 3 | 2015-07-15T21:08:19.000Z | 2021-02-25T09:39:12.000Z | from testframework import *
import os
import vb2py.utils
PATH = vb2py.utils.rootPath()
# << File tests >> (1 of 14)
# Open with Input
tests.append((r"""
Open "%s" For Input As #3
Input #3, a
Input #3, b
Input #3, c, d, e
Input #3, f, g
Close #3
""" % vb2py.utils.relativePath("test/testread.txt"), {'a' : 'Can you hear ... | 20.121429 | 83 | 0.595196 | 1,370 | 8,451 | 3.613139 | 0.120438 | 0.066667 | 0.137778 | 0.162828 | 0.682828 | 0.618788 | 0.592727 | 0.568283 | 0.549495 | 0.488081 | 0 | 0.04427 | 0.187433 | 8,451 | 419 | 84 | 20.169451 | 0.676569 | 0.128506 | 0 | 0.578035 | 0 | 0 | 0.56561 | 0.036222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017341 | 0.011561 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d396697591d214281a9fa0a4c6107036bc957349 | 964 | py | Python | tests/test_cron.py | acuros/noopy | aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23 | [
"MIT"
] | 11 | 2016-01-16T06:00:39.000Z | 2016-05-24T02:25:58.000Z | tests/test_cron.py | acuros/noopy | aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23 | [
"MIT"
] | 4 | 2016-01-23T07:00:47.000Z | 2016-05-09T02:49:26.000Z | tests/test_cron.py | acuros/noopy | aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23 | [
"MIT"
] | null | null | null | import pytest
from noopy.cron.rule import RateEventRule, BaseEventRule, TimeEventRule
from noopy.decorators import cron
@pytest.fixture
def rate_5_mins_rule():
return RateEventRule('5MinsRateRule', value=5)
@pytest.fixture
def time_5pm_rule():
return TimeEventRule('5pmRule', '* 17 * * * *')
@pytest.fixtu... | 25.368421 | 71 | 0.724066 | 125 | 964 | 5.408 | 0.344 | 0.133136 | 0.130178 | 0.159763 | 0.213018 | 0.112426 | 0.112426 | 0 | 0 | 0 | 0 | 0.026829 | 0.149378 | 964 | 37 | 72 | 26.054054 | 0.797561 | 0 | 0 | 0.208333 | 0 | 0 | 0.078838 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d3a5d6c9ee0959d8b6a152abcf1fe990458d7e86 | 1,519 | py | Python | src/box.py | ertugrullKara/GarbageDetector | 68e267e4036ef05c603c1193462b5230b6751857 | [
"MIT"
] | 1 | 2019-05-21T01:06:42.000Z | 2019-05-21T01:06:42.000Z | src/box.py | ertugrullKara/GarbageDetector | 68e267e4036ef05c603c1193462b5230b6751857 | [
"MIT"
] | 8 | 2020-01-28T21:41:58.000Z | 2022-03-11T23:17:50.000Z | src/box.py | ertugrullKara/GarbageDetector | 68e267e4036ef05c603c1193462b5230b6751857 | [
"MIT"
] | null | null | null | import numpy as np
class BoundBox:
"""
Adopted from https://github.com/thtrieu/darkflow/blob/master/darkflow/utils/box.py
"""
def __init__(self, obj_prob, probs=None, box_coord=[float() for i in range(4)]):
self.x, self.y = float(box_coord[0]), float(box_coord[1])
self.w, self.h =... | 23.015152 | 90 | 0.581962 | 259 | 1,519 | 3.305019 | 0.320463 | 0.014019 | 0.060748 | 0.059579 | 0.042056 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033667 | 0.276498 | 1,519 | 65 | 91 | 23.369231 | 0.745223 | 0.096116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.023256 | 0.116279 | 0.534884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d3a9236251a872a4b147f5fa34a60d6f71d1589b | 667 | py | Python | unit_workaround.py | ltfish/nose2 | e47363dad10056cf906daf387613c21d74f37e56 | [
"BSD-2-Clause"
] | null | null | null | unit_workaround.py | ltfish/nose2 | e47363dad10056cf906daf387613c21d74f37e56 | [
"BSD-2-Clause"
] | null | null | null | unit_workaround.py | ltfish/nose2 | e47363dad10056cf906daf387613c21d74f37e56 | [
"BSD-2-Clause"
] | null | null | null | """
Python 2.7 Multiprocessing Unittest workaround.
=====================================================================
Due the manner in which multiprocessing is handled on windows
and the fact that __main__.py are actually called __main__
This workaround bypasses the fact that the calling unittest
script is called... | 29 | 69 | 0.704648 | 93 | 667 | 4.795699 | 0.623656 | 0.008969 | 0.049327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019164 | 0.13943 | 667 | 22 | 70 | 30.318182 | 0.75784 | 0.745127 | 0 | 0 | 0 | 0 | 0.049689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6c921bf76ccad8c233e5e7ae6b187fed9a3a6457 | 1,500 | py | Python | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/bidspace/AllBidsList.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | 1 | 2022-02-17T19:14:46.000Z | 2022-02-17T19:14:46.000Z | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/bidspace/AllBidsList.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | null | null | null | src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/bidspace/AllBidsList.py | HahaBill/CollaborativeAI | f771cd2f34774c74c58e49a7e983d6244ea35eff | [
"MIT"
] | null | null | null | from typing import Dict, List
from tudelft.utilities.immutablelist.AbstractImmutableList import AbstractImmutableList
from tudelft.utilities.immutablelist.ImmutableList import ImmutableList
from tudelft.utilities.immutablelist.Outer import Outer
from geniusweb.issuevalue.Bid import Bid
from geniusweb.issuevalue.Domai... | 34.090909 | 95 | 0.696 | 176 | 1,500 | 5.869318 | 0.380682 | 0.038722 | 0.058083 | 0.095837 | 0.152953 | 0.152953 | 0.152953 | 0.110358 | 0.110358 | 0.110358 | 0 | 0 | 0.215333 | 1,500 | 43 | 96 | 34.883721 | 0.877655 | 0.208667 | 0 | 0 | 0 | 0 | 0.00983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.318182 | 0.045455 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6c9355764a56246685f8f050d7a2762e9242d568 | 18,061 | py | Python | broker/jobs/tests/handover.py | yiu31802/ave | e46fc357f9464d5beaf42568a74bb95e6b1b8037 | [
"BSD-3-Clause"
] | 17 | 2016-11-16T08:09:49.000Z | 2021-08-12T06:38:09.000Z | broker/jobs/tests/handover.py | yiu31802/ave | e46fc357f9464d5beaf42568a74bb95e6b1b8037 | [
"BSD-3-Clause"
] | null | null | null | broker/jobs/tests/handover.py | yiu31802/ave | e46fc357f9464d5beaf42568a74bb95e6b1b8037 | [
"BSD-3-Clause"
] | 12 | 2016-11-20T15:34:03.000Z | 2020-08-04T00:26:11.000Z | # Copyright (C) 2013 Sony Mobile Communications AB.
# All rights, including trade secret rights, reserved.
import json
import time
import traceback
from ave.network.process import Process
from ave.network.exceptions import *
from ave.broker._broker import validate_serialized, RemoteBroker, Broker
from ave.brok... | 31.410435 | 82 | 0.634406 | 2,335 | 18,061 | 4.820128 | 0.130621 | 0.026388 | 0.02932 | 0.046912 | 0.670369 | 0.627277 | 0.580098 | 0.543403 | 0.481919 | 0.451177 | 0 | 0.014058 | 0.251703 | 18,061 | 574 | 83 | 31.465157 | 0.81872 | 0.178229 | 0 | 0.729412 | 0 | 0 | 0.119491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021176 | 0.021176 | null | null | 0.108235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6c9b0dde5a35f728bc75ac22cfb8000971c95236 | 487 | py | Python | gehomesdk/erd/converters/advantium/erd_advantium_cook_time_remaining_converter.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | gehomesdk/erd/converters/advantium/erd_advantium_cook_time_remaining_converter.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | gehomesdk/erd/converters/advantium/erd_advantium_cook_time_remaining_converter.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | from datetime import timedelta
from typing import Optional
from ..abstract import ErdReadOnlyConverter
from ..primitives import *
from gehomesdk.erd.values.advantium import ErdAdvantiumCookTimeMinMax
class ErdAdvantiumCookTimeRemainingConverter(ErdReadOnlyConverter[Optional[timedelta]]):
def erd_decode(self, valu... | 40.583333 | 88 | 0.786448 | 56 | 487 | 6.767857 | 0.660714 | 0.08971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.137577 | 487 | 11 | 89 | 44.272727 | 0.885714 | 0.129363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.625 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6c9bda41584725dcd1301c29489ba97f22a43be2 | 973 | py | Python | tools/telemetry/telemetry/value/trace_unittest.py | sunjc53yy/chromium | 049b380040949089c2a6e447b0cd0ac3c4ece38e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/value/trace_unittest.py | sunjc53yy/chromium | 049b380040949089c2a6e447b0cd0ac3c4ece38e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/value/trace_unittest.py | sunjc53yy/chromium | 049b380040949089c2a6e447b0cd0ac3c4ece38e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import unittest
from telemetry.page import page_set
from telemetry.timeline import tracing_timeline_data
from telemetry.value import trace
class ... | 30.40625 | 73 | 0.749229 | 133 | 973 | 5.338346 | 0.533835 | 0.069014 | 0.077465 | 0.169014 | 0.207042 | 0.207042 | 0.140845 | 0 | 0 | 0 | 0 | 0.005995 | 0.142857 | 973 | 31 | 74 | 31.387097 | 0.845324 | 0.159301 | 0 | 0 | 0 | 0 | 0.083538 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.142857 | false | 0 | 0.238095 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6ca2d2810d7b2ee27e8d82d4f639f5656c914f18 | 358 | py | Python | garbage/reddit_Prog_Chal.py | wolfdale/Spaghetti-code | 9e395345e1420b9db021b21131601191a869db1d | [
"MIT"
] | 1 | 2018-05-18T16:07:11.000Z | 2018-05-18T16:07:11.000Z | garbage/reddit_Prog_Chal.py | wolfdale/Spaghetti-code | 9e395345e1420b9db021b21131601191a869db1d | [
"MIT"
] | 5 | 2015-12-03T16:12:38.000Z | 2020-05-05T14:07:00.000Z | garbage/reddit_Prog_Chal.py | wolfdale/Spaghetti-code | 9e395345e1420b9db021b21131601191a869db1d | [
"MIT"
] | null | null | null | #[2015-10-26] Challenge #238 [Easy] Consonants and Vowels
v=['a','e','i','o','u']
c=['b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z']
import random
string = raw_input()
word=[]
for i in range (len(string)):
if string[i] == 'v':
word.append(random.choice(v))
else:
word.append(ra... | 23.866667 | 87 | 0.544693 | 67 | 358 | 2.895522 | 0.761194 | 0.103093 | 0.164948 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034268 | 0.103352 | 358 | 14 | 88 | 25.571429 | 0.570093 | 0.153631 | 0 | 0 | 0 | 0 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6ca602af912019bb59f184594f1a127acfb73000 | 222 | py | Python | fund/items.py | suddi/fundscraper | 8cd1962c643abe3a2bd3a5540550003550ed7201 | [
"Apache-2.0"
] | 1 | 2021-10-30T16:09:34.000Z | 2021-10-30T16:09:34.000Z | fund/items.py | suddi/fundscraper | 8cd1962c643abe3a2bd3a5540550003550ed7201 | [
"Apache-2.0"
] | 1 | 2022-03-02T14:55:09.000Z | 2022-03-02T14:55:09.000Z | fund/items.py | suddi/fundscraper | 8cd1962c643abe3a2bd3a5540550003550ed7201 | [
"Apache-2.0"
] | 2 | 2019-02-25T02:47:07.000Z | 2019-09-17T19:20:07.000Z | from scrapy.item import Field, Item
# pylint: disable-msg=too-many-ancestors
class FundItem(Item):
code = Field()
name = Field()
tier = Field()
start_date = Field()
date = Field()
price = Field()
| 18.5 | 40 | 0.626126 | 28 | 222 | 4.928571 | 0.678571 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 222 | 11 | 41 | 20.181818 | 0.821429 | 0.171171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6cbfc8dcd6d97cc1be61ed0f0e63d726c3f60f59 | 111 | py | Python | exercicios/ex110/teste.py | Matheus1199/python | c87859d4bf63ba0edea43d864fcbce4915da7e6a | [
"MIT"
] | null | null | null | exercicios/ex110/teste.py | Matheus1199/python | c87859d4bf63ba0edea43d864fcbce4915da7e6a | [
"MIT"
] | null | null | null | exercicios/ex110/teste.py | Matheus1199/python | c87859d4bf63ba0edea43d864fcbce4915da7e6a | [
"MIT"
] | null | null | null | import moeda
p = float(input('Digite o preço: '))
t = int(input('Qual o valor da taxa? '))
moeda.resumo(p, t)
| 18.5 | 40 | 0.648649 | 20 | 111 | 3.6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 111 | 5 | 41 | 22.2 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.342342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6cd9738ccb60421cba8abd71ab88a5dfd1c7df96 | 303 | py | Python | django_country/middleware.py | ColorGenomics/django-country | 1d272a196d998e21bb8d407e2657b88211f35232 | [
"Apache-2.0"
] | 4 | 2015-08-23T16:52:13.000Z | 2016-07-16T21:39:59.000Z | django_country/middleware.py | ColorGenomics/django-country | 1d272a196d998e21bb8d407e2657b88211f35232 | [
"Apache-2.0"
] | 2 | 2016-02-04T15:58:06.000Z | 2016-02-04T16:29:18.000Z | django_country/middleware.py | color/django-country | 1d272a196d998e21bb8d407e2657b88211f35232 | [
"Apache-2.0"
] | 2 | 2018-05-15T09:10:03.000Z | 2019-03-08T14:49:44.000Z | # -*- coding: utf-8 -*-
from . import geo
class CountryMiddleware(object):
"""
This is a middleware that parses a request
and decides which country the request came from.
"""
def process_request(self, request):
request.COUNTRY_CODE = geo.get_country_from_request(request)
| 23.307692 | 68 | 0.686469 | 39 | 303 | 5.205128 | 0.692308 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.217822 | 303 | 12 | 69 | 25.25 | 0.852321 | 0.376238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6cdc218d274321607edc4aee95141af773ac7b6c | 681 | py | Python | electionleaflets/apps/constituencies/templatetags/constituency_tags.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | null | null | null | electionleaflets/apps/constituencies/templatetags/constituency_tags.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | 23 | 2015-02-19T14:02:23.000Z | 2015-04-30T11:14:01.000Z | electionleaflets/apps/constituencies/templatetags/constituency_tags.py | electionleaflets/electionleaflets | 4110e96a3035c32d0b6ff3c9f832c5e003728170 | [
"MIT"
] | 2 | 2015-02-02T19:39:54.000Z | 2017-02-08T09:19:53.000Z | from django import template
from django.conf import settings
from leaflets.models import Leaflet
from constituencies.models import Constituency
register = template.Library()
@register.inclusion_tag('constituencies/ordered_list.html')
def constituency_list_by_count():
constituencies = Constituency.objects.all().or... | 42.5625 | 84 | 0.785609 | 81 | 681 | 6.407407 | 0.419753 | 0.061657 | 0.077071 | 0.131021 | 0.339114 | 0.235067 | 0.235067 | 0.235067 | 0.235067 | 0.235067 | 0 | 0.011475 | 0.104258 | 681 | 16 | 84 | 42.5625 | 0.839344 | 0 | 0 | 0.153846 | 0 | 0 | 0.174487 | 0.09824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6ce68ade0975f3498a289cd7d8896318aa38df5e | 1,027 | py | Python | Curso em Video/Desafio_023.py | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | Curso em Video/Desafio_023.py | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | Curso em Video/Desafio_023.py | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | numero = input('\nInsira um numero de 0 a 9999: \n')
if not numero.isnumeric():
print('Condição inválida, insira apenas números\n')
elif len(numero) == 1:
print('\nA unidade do número {} é {}\n'.format(numero, numero[-1]))
elif len(numero) == 2:
print('\nA unidade do número {} é {}'.format(numero, n... | 48.904762 | 76 | 0.605648 | 155 | 1,027 | 4.012903 | 0.264516 | 0.212219 | 0.144695 | 0.144695 | 0.638264 | 0.638264 | 0.586817 | 0.435691 | 0.435691 | 0.435691 | 0 | 0.022919 | 0.192795 | 1,027 | 20 | 77 | 51.35 | 0.727382 | 0 | 0 | 0.263158 | 0 | 0 | 0.406157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.631579 | 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 | 1 | 0 | 2 |
6ced9767f09be94c059293ba0ec574ce1794fa54 | 215 | py | Python | 30.strings/16.replace.py | robinson-1985/python-zero-dnc | df510d67e453611fcd320df1397cdb9ca47fecb8 | [
"MIT"
] | null | null | null | 30.strings/16.replace.py | robinson-1985/python-zero-dnc | df510d67e453611fcd320df1397cdb9ca47fecb8 | [
"MIT"
] | null | null | null | 30.strings/16.replace.py | robinson-1985/python-zero-dnc | df510d67e453611fcd320df1397cdb9ca47fecb8 | [
"MIT"
] | null | null | null | # 15. replace() -> Altera determinado valor de uma string por outro. Troca uma string por outra.
texto = 'vou Treinar todo Dia Python'
print(texto.replace('vou','Vamos'))
print(texto.replace('Python','Algoritmos')) | 43 | 96 | 0.734884 | 31 | 215 | 5.096774 | 0.677419 | 0.113924 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010582 | 0.12093 | 215 | 5 | 97 | 43 | 0.825397 | 0.437209 | 0 | 0 | 0 | 0 | 0.425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 2 |
6cf05f1a7f8d9e9c0505d52939240080210e4ca9 | 3,877 | py | Python | tools/collect_bot_info.py | Dalanar/DotA2DraftBot | 6ff222782a6c40d99004eeee101ca912e6e8dd11 | [
"MIT"
] | 1 | 2017-01-12T07:13:28.000Z | 2017-01-12T07:13:28.000Z | tools/collect_bot_info.py | Dalanar/DotA2DraftBot | 6ff222782a6c40d99004eeee101ca912e6e8dd11 | [
"MIT"
] | 2 | 2017-01-02T08:55:13.000Z | 2017-01-10T14:48:56.000Z | tools/collect_bot_info.py | Dalanar/DotA2DraftBot | 6ff222782a6c40d99004eeee101ca912e6e8dd11 | [
"MIT"
] | 1 | 2019-07-04T20:03:22.000Z | 2019-07-04T20:03:22.000Z | import vdf
implemented_bots = set([
'npc_dota_hero_axe',
'npc_dota_hero_bane',
'npc_dota_hero_bounty_hunter',
'npc_dota_hero_bloodseeker',
'npc_dota_hero_bristleback',
'npc_dota_hero_chaos_knight',
'npc_dota_hero_crystal_maiden',
'npc_dota_hero_dazzle',
'npc_dota_hero_death... | 37.640777 | 150 | 0.605107 | 494 | 3,877 | 4.348178 | 0.291498 | 0.127095 | 0.199721 | 0.044693 | 0.194134 | 0.141993 | 0.098696 | 0.098696 | 0.098696 | 0.098696 | 0 | 0.002826 | 0.269796 | 3,877 | 102 | 151 | 38.009804 | 0.755917 | 0.029146 | 0 | 0.095745 | 0 | 0.021277 | 0.356772 | 0.178659 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010638 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f0096648e2874f2a1dd4b98ee0c9a0e98ee7fdb | 2,006 | py | Python | sleepcounter/hardware_a/mocks.py | daveshed/sleepcounter-hardware-a | 8f8729b9e29b37d3f12b156dfd5b2cb277b1524d | [
"MIT"
] | null | null | null | sleepcounter/hardware_a/mocks.py | daveshed/sleepcounter-hardware-a | 8f8729b9e29b37d3f12b156dfd5b2cb277b1524d | [
"MIT"
] | null | null | null | sleepcounter/hardware_a/mocks.py | daveshed/sleepcounter-hardware-a | 8f8729b9e29b37d3f12b156dfd5b2cb277b1524d | [
"MIT"
] | null | null | null | """Mock hardware implementation"""
import logging
from stage import exceptions
from unittest.mock import Mock
LOGGER = logging.getLogger("mock")
class MockStage:
"""A mock implemenation of a stepper motor driven linear stage"""
MAX_POS = 100
MIN_POS = 0
def __init__(self):
self._position = _... | 23.057471 | 69 | 0.589232 | 231 | 2,006 | 4.891775 | 0.350649 | 0.053097 | 0.029204 | 0.035398 | 0.097345 | 0.056637 | 0.056637 | 0 | 0 | 0 | 0 | 0.005814 | 0.314058 | 2,006 | 86 | 70 | 23.325581 | 0.815407 | 0.182951 | 0 | 0.183673 | 0 | 0 | 0.091272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.061224 | 0 | 0.530612 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9f02894ebc954a270f5715baabf264b3e5cc54c2 | 7,513 | py | Python | app.py | gborn/Generating-Multiple-Choice-Questions-From-Any-Text | 521c9297d3115a89e3ff8a74230d3b8390aa57d8 | [
"MIT"
] | 1 | 2022-01-29T04:26:41.000Z | 2022-01-29T04:26:41.000Z | app.py | gborn/Generating-Multiple-Choice-Questions-From-Any-Text | 521c9297d3115a89e3ff8a74230d3b8390aa57d8 | [
"MIT"
] | null | null | null | app.py | gborn/Generating-Multiple-Choice-Questions-From-Any-Text | 521c9297d3115a89e3ff8a74230d3b8390aa57d8 | [
"MIT"
] | null | null | null |
from src.answerkey import AnswerKey
from src.model import Model, unmasker
import streamlit as st
PAGE_CONFIG = {"page_title":"MCQ-App by Glad Nayak","page_icon":":white_check_mark:"}
st.set_page_config(**PAGE_CONFIG)
def render_input():
"""
Renders text area for input, and button
"""
# source of defa... | 98.855263 | 1,344 | 0.763077 | 1,117 | 7,513 | 5.089526 | 0.433303 | 0.007916 | 0.00985 | 0.01161 | 0.049604 | 0.022164 | 0.013369 | 0 | 0 | 0 | 0 | 0.007515 | 0.185279 | 7,513 | 76 | 1,345 | 98.855263 | 0.921255 | 0.025023 | 0 | 0 | 0 | 0.148936 | 0.770905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f11ad86c1a7f6d1888aeabc2cabec9e7fdb4c14 | 842 | py | Python | tests.py | fredrikaverpil/python-rust | 06bedd1b3bea93af3eaafb0154447a18aba56118 | [
"MIT"
] | 1 | 2021-09-23T19:30:04.000Z | 2021-09-23T19:30:04.000Z | tests.py | fredrikaverpil/python-rust | 06bedd1b3bea93af3eaafb0154447a18aba56118 | [
"MIT"
] | null | null | null | tests.py | fredrikaverpil/python-rust | 06bedd1b3bea93af3eaafb0154447a18aba56118 | [
"MIT"
] | null | null | null | import re
import string
import random
import mylib
# Python ZIP version
def count_doubles(val):
total = 0
# there is an improved version later on this post
for c1, c2 in zip(val, val[1:]):
if c1 == c2:
total += 1
return total
# Python REGEXP version
double_re = re.compile(r'(?=(.... | 21.05 | 74 | 0.693587 | 126 | 842 | 4.5 | 0.47619 | 0.10582 | 0.079365 | 0.070547 | 0.077601 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023704 | 0.198337 | 842 | 39 | 75 | 21.589744 | 0.816296 | 0.168646 | 0 | 0 | 0 | 0 | 0.053314 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.26087 | false | 0 | 0.173913 | 0.043478 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9f14982bbe3f83710d22b85ba6beb2a13fe3b1e7 | 329 | py | Python | feapder/network/user_pool/__init__.py | ibryang/feapder | 14b1c1e9bd0953ea8af102d6d220fed4b79d0a5c | [
"MIT"
] | 876 | 2021-02-09T11:08:04.000Z | 2022-03-31T21:14:11.000Z | feapder/network/user_pool/__init__.py | ibryang/feapder | 14b1c1e9bd0953ea8af102d6d220fed4b79d0a5c | [
"MIT"
] | 94 | 2021-02-20T07:59:28.000Z | 2022-03-28T09:54:53.000Z | feapder/network/user_pool/__init__.py | ibryang/feapder | 14b1c1e9bd0953ea8af102d6d220fed4b79d0a5c | [
"MIT"
] | 172 | 2021-02-22T08:24:44.000Z | 2022-03-29T08:15:27.000Z | __all__ = [
"GuestUserPool",
"GuestUser",
"NormalUserPool",
"NormalUser",
"GoldUserPool",
"GoldUser",
"GoldUserStatus",
]
from .gold_user_pool import GoldUserPool, GoldUser, GoldUserStatus
from .guest_user_pool import GuestUserPool, GuestUser
from .normal_user_pool import NormalUserPool, No... | 23.5 | 66 | 0.735562 | 30 | 329 | 7.733333 | 0.5 | 0.103448 | 0.181034 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 329 | 13 | 67 | 25.307692 | 0.849817 | 0 | 0 | 0 | 0 | 0 | 0.243161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f16b7604472b4df4adc8e900195443eaeab2e23 | 1,235 | py | Python | lib/sxc/actuator.py | GoogleCloudPlatform/SourceXCloud | c1397e5b9a6989fc4adf54d7957f73a95c5bcdc8 | [
"Apache-2.0"
] | 3 | 2017-11-29T16:15:21.000Z | 2021-10-09T18:32:16.000Z | lib/sxc/actuator.py | GoogleCloudPlatform/SourceXCloud | c1397e5b9a6989fc4adf54d7957f73a95c5bcdc8 | [
"Apache-2.0"
] | null | null | null | lib/sxc/actuator.py | GoogleCloudPlatform/SourceXCloud | c1397e5b9a6989fc4adf54d7957f73a95c5bcdc8 | [
"Apache-2.0"
] | 3 | 2016-07-12T02:10:35.000Z | 2021-03-21T10:24:19.000Z | # Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 30.875 | 74 | 0.704453 | 170 | 1,235 | 5.035294 | 0.588235 | 0.070093 | 0.05257 | 0.037383 | 0.056075 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0.008138 | 0.204049 | 1,235 | 39 | 75 | 31.666667 | 0.862665 | 0.540891 | 0 | 0.142857 | 0 | 0 | 0.007435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9f1c2546b04d443c1ae8a04369e0722359f68afc | 728 | py | Python | app/main/forms.py | Ag-nes/Blog | 3c8c3f50b2eb6dffe19392179b4c2fda1718e926 | [
"MIT"
] | null | null | null | app/main/forms.py | Ag-nes/Blog | 3c8c3f50b2eb6dffe19392179b4c2fda1718e926 | [
"MIT"
] | null | null | null | app/main/forms.py | Ag-nes/Blog | 3c8c3f50b2eb6dffe19392179b4c2fda1718e926 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SelectField ,SubmitField
from wtforms.validators import input_required
class EditProfile(FlaskForm):
about = TextAreaField('Tell us about yourself.',validators = [input_required()])
submit = SubmitField('Update')
class UpdatePos... | 31.652174 | 84 | 0.75 | 76 | 728 | 7.078947 | 0.421053 | 0.120818 | 0.171004 | 0.215613 | 0.33829 | 0.189591 | 0.189591 | 0 | 0 | 0 | 0 | 0 | 0.138736 | 728 | 23 | 85 | 31.652174 | 0.858054 | 0 | 0 | 0.133333 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9f1edfe99b6308d3d2554579aa4a79c439a3f872 | 199 | py | Python | abc130/b/b.py | KeiNishikawa218/atcoder | 0af5e091f8b1fd64d5ca7b46b06b9356eacfe601 | [
"MIT"
] | null | null | null | abc130/b/b.py | KeiNishikawa218/atcoder | 0af5e091f8b1fd64d5ca7b46b06b9356eacfe601 | [
"MIT"
] | null | null | null | abc130/b/b.py | KeiNishikawa218/atcoder | 0af5e091f8b1fd64d5ca7b46b06b9356eacfe601 | [
"MIT"
] | null | null | null | n, x = map(int, input().split())
ll = list(map(int, input().split()))
ans = 1
d_p = 0
d_c = 0
for i in range(n):
d_c = d_p + ll[i]
if d_c <= x:
ans += 1
d_p = d_c
print(ans) | 13.266667 | 37 | 0.487437 | 43 | 199 | 2.093023 | 0.465116 | 0.088889 | 0.244444 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.316583 | 199 | 15 | 38 | 13.266667 | 0.632353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f2a3bd086cb47aeb604a357b7d551f9109fd29b | 3,362 | py | Python | examples/crankd/sample-of-events/generate-event-plist.py | timgates42/pymacadmin | d4913a45497aebbcf9ba5c28c7b064d6442e0a2e | [
"Apache-2.0"
] | 112 | 2015-05-21T11:28:06.000Z | 2021-11-24T02:21:14.000Z | examples/crankd/sample-of-events/generate-event-plist.py | timgates42/pymacadmin | d4913a45497aebbcf9ba5c28c7b064d6442e0a2e | [
"Apache-2.0"
] | 14 | 2015-05-20T16:41:42.000Z | 2019-08-31T13:06:18.000Z | examples/crankd/sample-of-events/generate-event-plist.py | timgates42/pymacadmin | d4913a45497aebbcf9ba5c28c7b064d6442e0a2e | [
"Apache-2.0"
] | 17 | 2015-06-03T20:51:49.000Z | 2021-12-22T22:58:25.000Z | #!/usr/bin/env python
"""
Generates a list of OS X system events into a plist for crankd.
This is designed to create a large (but probably not comprehensive) sample
of the events generated by Mac OS X that crankd can tap into. The generated
file will call the 'tunnel.sh' as the command for each event; said fail can
... | 31.12963 | 102 | 0.674004 | 376 | 3,362 | 5.968085 | 0.393617 | 0.032086 | 0.023173 | 0.030303 | 0.117201 | 0.086898 | 0.07041 | 0.040998 | 0.040998 | 0 | 0 | 0.003478 | 0.23022 | 3,362 | 107 | 103 | 31.420561 | 0.863601 | 0.093694 | 0 | 0.090909 | 1 | 0.022727 | 0.241808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f385adb32c54c2cf674753727414734f8446d67 | 2,150 | py | Python | www/wotd/models.py | nullsym/sachiye | f08d890697b7da502e329d40dbf774c4c8af187d | [
"MIT"
] | null | null | null | www/wotd/models.py | nullsym/sachiye | f08d890697b7da502e329d40dbf774c4c8af187d | [
"MIT"
] | null | null | null | www/wotd/models.py | nullsym/sachiye | f08d890697b7da502e329d40dbf774c4c8af187d | [
"MIT"
] | null | null | null | # Imports from our app
from wotd import db, app
# Flask-Login works via the LoginManager class: Thus, we need
# to start things off by telling LoginManager about our Flask app
from flask_login import LoginManager
login_manager = LoginManager(app)
login_manager.init_app(app)
# Password hashing
from werkzeug.security im... | 35.245902 | 79 | 0.709767 | 313 | 2,150 | 4.773163 | 0.373802 | 0.048193 | 0.060241 | 0.074967 | 0.077644 | 0.077644 | 0 | 0 | 0 | 0 | 0 | 0.003948 | 0.175349 | 2,150 | 61 | 80 | 35.245902 | 0.838691 | 0.273953 | 0 | 0.055556 | 0 | 0 | 0.03628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0.194444 | 0.166667 | 0.138889 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
9f400427c659e5c8d5c0f656dfde230a04071a6b | 9,932 | py | Python | Yuanjunling1/boss-xiadan.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | Yuanjunling1/boss-xiadan.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | Yuanjunling1/boss-xiadan.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | 58.423529 | 154 | 0.700665 | 1,346 | 9,932 | 4.86107 | 0.160475 | 0.163075 | 0.192725 | 0.278771 | 0.756228 | 0.693871 | 0.545468 | 0.473483 | 0.283968 | 0.244842 | 0 | 0.020355 | 0.149215 | 9,932 | 169 | 155 | 58.769231 | 0.753965 | 0.010169 | 0 | 0.198718 | 0 | 0.070513 | 0.251339 | 0.115733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032051 | false | 0.012821 | 0.044872 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f43ce6631e7319b1bcdc1a179c864fd23965ec3 | 1,367 | gyp | Python | binding.gyp | jacobsologub/gif2webp | 15e006074557f12863a7ac295ea8d2a9e771dd9a | [
"MIT"
] | 11 | 2015-09-23T08:47:00.000Z | 2022-01-11T09:47:57.000Z | binding.gyp | jacobsologub/gif2webp | 15e006074557f12863a7ac295ea8d2a9e771dd9a | [
"MIT"
] | 2 | 2015-04-23T06:28:00.000Z | 2017-05-09T16:46:45.000Z | binding.gyp | jacobsologub/gif2webp | 15e006074557f12863a7ac295ea8d2a9e771dd9a | [
"MIT"
] | 3 | 2015-12-01T23:12:21.000Z | 2019-03-01T01:51:22.000Z | {
"variables": {
"HEROKU%": '<!(echo $HEROKU)'
},
"targets": [
{
"target_name": "gif2webp",
"defines": [
],
"sources": [
"src/gif2webp.cpp",
"src/webp/example_util.cpp",
"src/web... | 26.288462 | 49 | 0.21068 | 54 | 1,367 | 5.240741 | 0.5 | 0.123675 | 0.106007 | 0.09894 | 0.416961 | 0.416961 | 0.416961 | 0.416961 | 0.416961 | 0.416961 | 0 | 0.009009 | 0.675201 | 1,367 | 52 | 50 | 26.288462 | 0.628378 | 0 | 0 | 0.395833 | 0 | 0 | 0.239766 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f4848fb1e1f8c151bf749c7d7992e896b000b74 | 344 | py | Python | settings.py | nopogo/twitchplaysturtle | 247ce20be55082b6675aebea56c4a264493c0218 | [
"MIT"
] | null | null | null | settings.py | nopogo/twitchplaysturtle | 247ce20be55082b6675aebea56c4a264493c0218 | [
"MIT"
] | null | null | null | settings.py | nopogo/twitchplaysturtle | 247ce20be55082b6675aebea56c4a264493c0218 | [
"MIT"
] | null | null | null | import secrets
channel_name = "nopogo_tv"
server_ip = "0.0.0.0"
server_port = 8000
channel_id = 28092036
ws_host = "wss://pubsub-edge.twitch.tv"
ws_local = secrets.local_ip
topics = [
"channel-bits-events-v2.{}".format(channel_id),
"channel-points-channel-v1.{}".format(channel_id),
"channel-subscribe-events-v1.{}... | 21.5 | 52 | 0.726744 | 52 | 344 | 4.596154 | 0.538462 | 0.150628 | 0.188285 | 0.1841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06129 | 0.098837 | 344 | 15 | 53 | 22.933333 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.367347 | 0.3207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f57dc161a4c2f57109ec9b96b98cf65e6091f2e | 6,203 | py | Python | tests/binding/test_binders_errors.py | jimcarreer/dinao | ab9514d81ffff2d3e8717f26403c3b73f388739d | [
"MIT"
] | 1 | 2021-01-27T08:09:31.000Z | 2021-01-27T08:09:31.000Z | tests/binding/test_binders_errors.py | jimcarreer/dinao | ab9514d81ffff2d3e8717f26403c3b73f388739d | [
"MIT"
] | 34 | 2020-12-18T19:40:26.000Z | 2022-03-05T13:06:37.000Z | tests/binding/test_binders_errors.py | jimcarreer/dinao | ab9514d81ffff2d3e8717f26403c3b73f388739d | [
"MIT"
] | 1 | 2021-01-27T08:12:15.000Z | 2021-01-27T08:12:15.000Z | """Tests various errors that can be thrown by binding."""
from typing import Generator, List, Tuple, Union
from dinao.backend import Connection
from dinao.binding import FunctionBinder
from dinao.binding.binders import BoundedGeneratingQuery
from dinao.binding.errors import (
BadReturnTypeError,
CannotInferMa... | 38.055215 | 114 | 0.715138 | 758 | 6,203 | 5.687335 | 0.204485 | 0.041754 | 0.060311 | 0.051264 | 0.561587 | 0.519833 | 0.509859 | 0.428671 | 0.356762 | 0.281141 | 0 | 0.004998 | 0.193616 | 6,203 | 162 | 115 | 38.290123 | 0.856857 | 0.184588 | 0 | 0.397959 | 0 | 0 | 0.143459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234694 | false | 0.132653 | 0.081633 | 0 | 0.316327 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9f58b4292a34cd1938789d7e2e28f7021f2ddc09 | 80 | py | Python | nfbackend/env_vars.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | 2 | 2022-01-06T08:18:29.000Z | 2022-01-06T08:19:09.000Z | nfbackend/env_vars.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | null | null | null | nfbackend/env_vars.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | null | null | null | seaweedfs_master = "http://localhost:9333" #do not add slash to end (after port) | 80 | 80 | 0.75 | 13 | 80 | 4.538462 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.125 | 80 | 1 | 80 | 80 | 0.785714 | 0.45 | 0 | 0 | 0 | 0 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f5af16633fdf3d87fecf487badb15528c65c1ec | 5,018 | py | Python | tests/oleform/test_basic.py | tirkarthi/oletools | 8b97e45bffe22f18363fd58431bbae4613296103 | [
"BSD-2-Clause"
] | 1 | 2020-12-05T10:30:06.000Z | 2020-12-05T10:30:06.000Z | tests/oleform/test_basic.py | tirkarthi/oletools | 8b97e45bffe22f18363fd58431bbae4613296103 | [
"BSD-2-Clause"
] | null | null | null | tests/oleform/test_basic.py | tirkarthi/oletools | 8b97e45bffe22f18363fd58431bbae4613296103 | [
"BSD-2-Clause"
] | null | null | null | """ Test oleform basic functionality """
import unittest
from os.path import join
import sys
# Directory with test data, independent of current working directory
from tests.test_utils import DATA_BASE_DIR
if sys.version_info[0] <= 2:
from oletools.olevba import VBA_Parser
else:
from oletools.olevba3 import V... | 147.588235 | 4,099 | 0.646273 | 616 | 5,018 | 5.146104 | 0.232143 | 0.097161 | 0.117981 | 0.124921 | 0.565615 | 0.548896 | 0.472871 | 0.433754 | 0.399369 | 0.355521 | 0 | 0.039211 | 0.120765 | 5,018 | 33 | 4,100 | 152.060606 | 0.679284 | 0.043244 | 0 | 0 | 0 | 0 | 0.482989 | 0.004383 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.3 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f64787f57a24c0791b4e390dd80153d89d86f8d | 12,181 | py | Python | geonet/region.py | bbengfort/geonet | 05b96f44834bdb39444ad73d7a6c863f3d55326f | [
"MIT"
] | 1 | 2018-03-28T15:12:28.000Z | 2018-03-28T15:12:28.000Z | geonet/region.py | bbengfort/geonet | 05b96f44834bdb39444ad73d7a6c863f3d55326f | [
"MIT"
] | 1 | 2018-01-26T15:21:13.000Z | 2018-02-02T22:04:59.000Z | geonet/region.py | bbengfort/geonet | 05b96f44834bdb39444ad73d7a6c863f3d55326f | [
"MIT"
] | null | null | null | # geonet.region
# Interface for managing region objects
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Wed Jan 17 06:49:35 2018 -0500
#
# ID: region.py [] benjamin@bengfort.com $
"""
Interface for managing region objects
"""
##########################################################################... | 31.233333 | 78 | 0.588868 | 1,345 | 12,181 | 5.270632 | 0.194052 | 0.03047 | 0.031175 | 0.038934 | 0.312738 | 0.248272 | 0.22683 | 0.176047 | 0.176047 | 0.176047 | 0 | 0.003667 | 0.283638 | 12,181 | 389 | 79 | 31.313625 | 0.808733 | 0.04819 | 0 | 0.194444 | 0 | 0 | 0.058165 | 0 | 0 | 0 | 0 | 0.017995 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.005556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f93b5cf954b2bbc0f4e0034fb5c50850b8a9553 | 1,539 | py | Python | DLmodules/usermessage.py | egg0001/telegram-e-hentaiDL-bot | 83200df4c9d35abaf308fc27b2f83d6452f86555 | [
"WTFPL"
] | 7 | 2019-04-07T06:42:09.000Z | 2021-01-11T15:58:28.000Z | DLmodules/usermessage.py | egg0001/telegram-e-hentaiDL-bot | 83200df4c9d35abaf308fc27b2f83d6452f86555 | [
"WTFPL"
] | 1 | 2020-02-24T09:16:54.000Z | 2020-03-07T20:37:15.000Z | DLmodules/usermessage.py | egg0001/telegram-e-hentaiDL-bot | 83200df4c9d35abaf308fc27b2f83d6452f86555 | [
"WTFPL"
] | 2 | 2020-02-03T14:16:55.000Z | 2020-07-09T04:49:01.000Z | #!/usr/bin/python3
#-----------------bot session-------------------
UserCancel = 'You have cancel the process.'
welcomeMessage = ('User identity conformed, please input gallery urls ' +
'and use space to separate them'
)
denyMessage = 'You are not the admin of this bot, conversatio... | 34.2 | 84 | 0.59974 | 157 | 1,539 | 5.878981 | 0.66879 | 0.03467 | 0.03467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00317 | 0.179987 | 1,539 | 44 | 85 | 34.977273 | 0.728209 | 0.234568 | 0 | 0 | 0 | 0 | 0.650726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9f94cec9c4b9cf4433cbe35153ebec1175aa197a | 1,964 | py | Python | tests/ec2/test_ec2_clients.py | paulhutchings/beartype-boto3-example | d69298d9444d578799e2a17cb63de11474b2278a | [
"MIT"
] | 3 | 2021-11-16T06:21:11.000Z | 2021-11-22T08:59:11.000Z | tests/ec2/test_ec2_clients.py | paulhutchings/beartype-boto3-example | d69298d9444d578799e2a17cb63de11474b2278a | [
"MIT"
] | 9 | 2021-11-19T03:29:00.000Z | 2021-12-30T23:54:47.000Z | tests/ec2/test_ec2_clients.py | paulhutchings/beartype-boto3-example | d69298d9444d578799e2a17cb63de11474b2278a | [
"MIT"
] | null | null | null | import pytest
from bearboto3.ec2 import (
EC2Client,
EC2ServiceResource,
)
from beartype import beartype
from beartype.roar import (
BeartypeCallHintPepParamException,
BeartypeCallHintPepReturnException,
BeartypeDecorHintPep484585Exception,
)
# ============================
# EC2Client
# ==========... | 20.040816 | 81 | 0.658859 | 187 | 1,964 | 6.57754 | 0.139037 | 0.045528 | 0.065041 | 0.052033 | 0.754472 | 0.59187 | 0.518699 | 0.386992 | 0 | 0 | 0 | 0.036625 | 0.221487 | 1,964 | 97 | 82 | 20.247423 | 0.767822 | 0.07332 | 0 | 0.542373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271186 | false | 0.135593 | 0.067797 | 0.067797 | 0.40678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9f952aae828334e0efd2771e093d18d52c4ad4a7 | 230 | py | Python | solutions/130_solution_05.py | UFResearchComputing/py4ai | db7f80614f26274ec18556d56ea9f549c463165a | [
"CC-BY-4.0"
] | null | null | null | solutions/130_solution_05.py | UFResearchComputing/py4ai | db7f80614f26274ec18556d56ea9f549c463165a | [
"CC-BY-4.0"
] | null | null | null | solutions/130_solution_05.py | UFResearchComputing/py4ai | db7f80614f26274ec18556d56ea9f549c463165a | [
"CC-BY-4.0"
] | 1 | 2021-04-27T09:50:54.000Z | 2021-04-27T09:50:54.000Z | def first_negative(values):
for v in values:
if v<0:
return v
# If an empty list is passed to this function, it returns `None`:
my_list = []
print(first_negative(my_list)
| 23 | 66 | 0.552174 | 32 | 230 | 3.84375 | 0.71875 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.373913 | 230 | 10 | 67 | 23 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f95821914a38c9e5fa3635e4ff975b40a81a782 | 680 | py | Python | .config/qtile/modules/core/screens.py | jx11r/dotfiles | fcc925dd184892198deae60e4113c215fccfa7a9 | [
"MIT"
] | 7 | 2021-09-11T00:27:23.000Z | 2022-01-26T12:50:31.000Z | .config/qtile/modules/core/screens.py | jx11r/dotfiles | fcc925dd184892198deae60e4113c215fccfa7a9 | [
"MIT"
] | null | null | null | .config/qtile/modules/core/screens.py | jx11r/dotfiles | fcc925dd184892198deae60e4113c215fccfa7a9 | [
"MIT"
] | 2 | 2022-01-09T16:51:41.000Z | 2022-01-26T21:35:05.000Z | # --==[ Screens ]==--
from libqtile import bar
from libqtile.config import Screen
from ..utils.settings import wallpaper
from ..extras.widgets import widgets
screens = [
Screen(
wallpaper = wallpaper,
wallpaper_mode = 'fill',
top = bar.Bar(
# Source in widgets.py
w... | 18.378378 | 38 | 0.489706 | 60 | 680 | 5.516667 | 0.5 | 0.217523 | 0.145015 | 0.199396 | 0.302115 | 0.302115 | 0.302115 | 0.302115 | 0.302115 | 0 | 0 | 0.042079 | 0.405882 | 680 | 36 | 39 | 18.888889 | 0.777228 | 0.15 | 0 | 0.428571 | 0 | 0 | 0.029825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f97eda032d59779e4adc2cc5c75750de6d24a2c | 723 | py | Python | intermol/forces/torsion_torsion_CMAP.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | intermol/forces/torsion_torsion_CMAP.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | intermol/forces/torsion_torsion_CMAP.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | from intermol.decorators import *
class TorsionTorsionCMAP(object):
@accepts_compatible_units(None, None, None, None, None, None, None, None,
None, None)
def __init__(self, atom1, atom2, atom3, atom4, atom5, atom6, atom7, atom8, type, chart):
"""
"""
self.type = type
... | 30.125 | 134 | 0.605809 | 87 | 723 | 4.965517 | 0.298851 | 0.166667 | 0.222222 | 0.259259 | 0.092593 | 0.092593 | 0.092593 | 0.092593 | 0.092593 | 0 | 0 | 0.061776 | 0.283541 | 723 | 23 | 135 | 31.434783 | 0.772201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.058824 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9fa75ad8fd9d506ae24046c05570702c53d633a2 | 11,695 | py | Python | preprocess.py | sdc17/NaivePinYin | 30301de4289d022160e121338c1b9e337f6ed5af | [
"MIT"
] | null | null | null | preprocess.py | sdc17/NaivePinYin | 30301de4289d022160e121338c1b9e337f6ed5af | [
"MIT"
] | null | null | null | preprocess.py | sdc17/NaivePinYin | 30301de4289d022160e121338c1b9e337f6ed5af | [
"MIT"
] | null | null | null | #-*- coding : utf-8-*-
import os
import json
import yaml
import glob
import jieba
import pickle
import datetime
import argparse
from collections import Counter
from concurrent.futures import ProcessPoolExecutor, Executor, as_completed
def task_one_gram(news):
gram1 = {}
with open('./training/pinyin_table/一二... | 33.319088 | 119 | 0.524583 | 1,635 | 11,695 | 3.653211 | 0.100917 | 0.026787 | 0.054244 | 0.039176 | 0.77415 | 0.753725 | 0.732798 | 0.667504 | 0.628327 | 0.569228 | 0 | 0.034758 | 0.313638 | 11,695 | 350 | 120 | 33.414286 | 0.709356 | 0.126037 | 0 | 0.566038 | 0 | 0 | 0.089055 | 0.022362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.037736 | 0 | 0.09434 | 0.026415 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.